@things-factory/meta-ui 6.1.36 → 6.1.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/client/actions/main.js +4 -4
  2. package/client/component/filter/filter-form-meta-code-select.js +10 -10
  3. package/client/component/filter/filter-form-meta-object-select.js +9 -9
  4. package/client/component/filter/filter-grist-meta-code-select.js +9 -9
  5. package/client/component/filter/filter-grist-meta-object-select.js +9 -9
  6. package/client/component/grist/editor/grist-editor-code-input.js +6 -6
  7. package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
  8. package/client/component/grist/editor/grist-editor-meta-object-selector.js +7 -7
  9. package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
  10. package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
  11. package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
  12. package/client/component/popup/code-input-editor-popup.js +10 -10
  13. package/client/component/popup/meta-object-selector-popup.js +11 -11
  14. package/client/mixin/meta-base-mixin.js +1 -1
  15. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  16. package/client/mixin/meta-button-mixin.js +1 -1
  17. package/client/mixin/meta-form-mixin.js +1 -1
  18. package/client/mixin/meta-grist-tab-mixin.js +1 -1
  19. package/client/mixin/meta-main-tab-mixin.js +1 -1
  20. package/client/mixin/meta-master-detail-mixin.js +1 -1
  21. package/client/mixin/meta-service-mixin.js +1 -1
  22. package/client/mixin/meta-tab-detail-mixin.js +1 -1
  23. package/client/mixin/meta-tab-mixin.js +1 -1
  24. package/client/pages/activity/meta-activity-list-page.js +6 -6
  25. package/client/pages/activity/meta-activity-viewer-element.js +2 -2
  26. package/client/pages/activity/meta-activity-writer-element.js +3 -3
  27. package/client/pages/activity/meta-activiy-mixin.js +3 -3
  28. package/client/pages/entity/config-entity.js +29 -29
  29. package/client/pages/entity/main-menu-selector.js +8 -8
  30. package/client/pages/history/history-copy-list-popup.js +6 -6
  31. package/client/pages/history/history-json-list-popup.js +6 -6
  32. package/client/pages/loading-page.js +5 -5
  33. package/client/pages/menu/dynamic-menu-template.js +7 -7
  34. package/client/pages/menu/dynamic-menu.js +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/grist-default-value.js +1 -1
  53. package/client/utils/meta-api.js +1 -1
  54. package/client/utils/meta-crypto.js +1 -1
  55. package/client/utils/meta-ui-util.js +103 -103
  56. package/client/utils/service-util.js +13 -13
  57. package/client/utils/terms-util.js +2 -2
  58. package/client/utils/ui-util.js +1 -1
  59. package/client/utils/value-util.js +1 -1
  60. package/client/viewparts/dynamic-menu-landscape-styles.js +2 -2
  61. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  62. package/client/viewparts/dynamic-menu-part.js +10 -10
  63. package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
  64. package/client/viewparts/dynamic-menu-portrait.js +9 -9
  65. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  66. package/package.json +2 -2
  67. package/server/activity/CommonActivity.js +2 -2
  68. package/server/constants/error-code.js +1 -1
  69. package/server/errors/license-error.js +1 -1
  70. package/server/routes.js +1 -1
  71. package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
  72. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  73. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  74. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  75. package/server/service/grid-personalize/grid-personalize.js +1 -1
  76. package/server/service/meta-activity/meta-activity-mutation.js +1 -1
  77. package/server/service/meta-activity/meta-activity-query.js +1 -1
  78. package/server/service/meta-activity/meta-activity-type.js +1 -1
  79. package/server/service/meta-secret/meta-resolver.js +1 -1
  80. package/server/service/set-translations/set-translation-resolver.js +1 -1
  81. package/server/service/work-code/work-code-mutation.js +1 -1
  82. package/server/service/work-code/work-code-query.js +1 -1
  83. package/server/service/work-code/work-code-type.js +1 -1
  84. package/server/service/work-code/work-code.js +1 -1
  85. package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
  86. package/server/service/work-code-detail/work-code-detail-query.js +1 -1
  87. package/server/service/work-code-detail/work-code-detail-type.js +1 -1
  88. package/server/service/work-code-detail/work-code-detail.js +1 -1
@@ -1,4 +1,4 @@
1
- const a0_0x4f5dd4=a0_0x39bc;(function(_0x13946b,_0x4b06a0){const _0x17e957=a0_0x39bc,_0x4007d5=_0x13946b();while(!![]){try{const _0x5ad86c=parseInt(_0x17e957(0x98))/0x1*(parseInt(_0x17e957(0xb1))/0x2)+-parseInt(_0x17e957(0x9b))/0x3*(-parseInt(_0x17e957(0xb4))/0x4)+-parseInt(_0x17e957(0x93))/0x5*(-parseInt(_0x17e957(0xc7))/0x6)+-parseInt(_0x17e957(0xc8))/0x7+parseInt(_0x17e957(0xc0))/0x8+parseInt(_0x17e957(0x9d))/0x9*(parseInt(_0x17e957(0xb9))/0xa)+-parseInt(_0x17e957(0xd3))/0xb*(parseInt(_0x17e957(0x9e))/0xc);if(_0x5ad86c===_0x4b06a0)break;else _0x4007d5['push'](_0x4007d5['shift']());}catch(_0x892ea9){_0x4007d5['push'](_0x4007d5['shift']());}}}(a0_0x1a55,0x908e5));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';function a0_0x1a55(){const _0x3aa0f8=['includes','values','sorters','menu_template','name','15VAygJE','align','dispField','bind','shadowRoot','320kvHugW','handlers','columns','87ciUxRe','keys','9773109mwDTuq','36aKzjYd','define','connectedCallback','clickEmpty','meta-code-selector','styles','select','select-row-toggle','query','getCodeSelectorData','empty','meta-object-selector','isArray','filters','getSelectColumns','left','NOTHING_SELECTED','clickSelect','appendable','720noBusq','meta-object-selector-popup','tText','129004JRjYyo','getParams','showToast','codes','search_hidden_fields','10ColHWv','getGristGuttersConfig','#ox-grist','nameField','grist','info','basicArgs','4139944ctfgLG','filter','tButton','clickCancel','code','push','confirmCallback','780468lHtNuv','7156408NwMNID','gridConfig','codeField','record','meta-','fetchHandler','search','object','selectRecord','getCodeByScenario','filterFields','5242094HNpBPb','queryName','string','forEach','args','getGristColumnConfig2','firstUpdated','type','options','length','gql','rows'];a0_0x1a55=function(){return _0x3aa0f8;};return a0_0x1a55();}function a0_0x39bc(_0x5b350e,_0x37ba64){const _0x1a55cb=a0_0x1a55();return a0_0x39bc=function(_0x39bc72,_0x4f7ff4){_0x39bc72=_0x39bc72-0x8f;let _0x43ccff=_0x1a55cb[_0x39bc72];return _0x43ccff;},a0_0x39bc(_0x5b350e,_0x37ba64);}import{closePopup}from'@operato/popup';export class MetaObjectSelectorPopup extends LitElement{static [a0_0x4f5dd4(0xa3)]=[CommonGristStyles,ButtonContainerStyles,css`
1
+ function a0_0x4062(){const _0x1883df=['record','tButton','dispField','codeField','entity','string','connectedCallback','getGristGuttersConfig','NOTHING_SELECTED','basicArgs','meta-object-selector-popup','567OWolQX','tText','rows','1288721ftnPWm','filters','select','forEach','resource-code-selector','sorters','getGristSelectableConfig','3Yciura','menu_template','querySelector','scenario','render','6164415GvVAcG','keys','33126NtrvMY','search','gql','values','columns','confirmCallback','meta-object-selector','args','options','nameField','startsWith','filter','meta-code-selector','codes','menu','getSelectColumns','length','getGristColumnConfig2','GRID','9vbrTMc','#ox-grist','search_hidden_fields','bind','getCodeByEntity','grist','gridConfig','includes','handlers','styles','info','clickEmpty','getCodeSelectorData','fetchHandler','clickCancel','getParams','meta-','3792548QupeqO','17696570iTNpjq','3432342DKlnKL','type','selectRecord','clickSelect','empty','code','LIST','9178824UdDOFB','isArray','after_set_fields','push','left','resource-object','filterFields','name','select-row-toggle','object','appendable','selected','align'];a0_0x4062=function(){return _0x1883df;};return a0_0x4062();}const a0_0x326179=a0_0x23a3;(function(_0x565f82,_0x261be7){const _0x5d916f=a0_0x23a3,_0x2b4dc7=_0x565f82();while(!![]){try{const _0x8a327b=parseInt(_0x5d916f(0x12c))/0x1+-parseInt(_0x5d916f(0x10a))/0x2+parseInt(_0x5d916f(0x133))/0x3*(-parseInt(_0x5d916f(0x108))/0x4)+parseInt(_0x5d916f(0x138))/0x5+parseInt(_0x5d916f(0x13a))/0x6*(parseInt(_0x5d916f(0x129))/0x7)+-parseInt(_0x5d916f(0x111))/0x8+parseInt(_0x5d916f(0x14d))/0x9*(parseInt(_0x5d916f(0x109))/0xa);if(_0x8a327b===_0x261be7)break;else _0x2b4dc7['push'](_0x2b4dc7['shift']());}catch(_0x1f2006){_0x2b4dc7['push'](_0x2b4dc7['shift']());}}}(a0_0x4062,0xe2451));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_0x23a3(_0x5c3967,_0x5129fc){const _0x40623b=a0_0x4062();return a0_0x23a3=function(_0x23a373,_0x4d6a2a){_0x23a373=_0x23a373-0xfc;let _0x3168f9=_0x40623b[_0x23a373];return _0x3168f9;},a0_0x23a3(_0x5c3967,_0x5129fc);}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 [a0_0x326179(0x100)]=[CommonGristStyles,ButtonContainerStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -17,9 +17,9 @@ const a0_0x4f5dd4=a0_0x39bc;(function(_0x13946b,_0x4b06a0){const _0x17e957=a0_0x
17
17
  display: flex;
18
18
  margin-left: auto;
19
19
  }
20
- `];async[a0_0x4f5dd4(0xa0)](){const _0x56f6a2=a0_0x4f5dd4;this[_0x56f6a2(0xb8)]=this[_0x56f6a2(0xdb)][_0x56f6a2(0xab)]?this[_0x56f6a2(0xdb)][_0x56f6a2(0xab)]:this[_0x56f6a2(0xbf)]&&this[_0x56f6a2(0xbf)][_0x56f6a2(0xab)]?this[_0x56f6a2(0xbf)][_0x56f6a2(0xab)]:[];let _0x5d0f3d=this[_0x56f6a2(0xdb)][_0x56f6a2(0x90)]?this['options'][_0x56f6a2(0x90)]:this[_0x56f6a2(0xbf)]&&this[_0x56f6a2(0xbf)][_0x56f6a2(0x90)]?this[_0x56f6a2(0xbf)][_0x56f6a2(0x90)]:[],_0x6368da=this[_0x56f6a2(0xdb)][_0x56f6a2(0xd2)]?this['options'][_0x56f6a2(0xd2)]:this[_0x56f6a2(0xdb)][_0x56f6a2(0x91)]?.[_0x56f6a2(0xce)]&&this[_0x56f6a2(0xdb)][_0x56f6a2(0x91)]?.['search']['length']>0x0?this[_0x56f6a2(0xdb)][_0x56f6a2(0x91)][_0x56f6a2(0xce)]:[],_0x23444b=this[_0x56f6a2(0xdb)]['select'];if(!_0x6368da||0x0==_0x6368da[_0x56f6a2(0xdc)]){let _0x5f08bc;this[_0x56f6a2(0xdb)][_0x56f6a2(0xca)]&&(_0x5f08bc=this[_0x56f6a2(0xdb)][_0x56f6a2(0xca)]),this[_0x56f6a2(0xdb)]['nameField']&&(_0x5f08bc=this[_0x56f6a2(0xdb)][_0x56f6a2(0xbc)]),_0x5f08bc&&_0x6368da['push']({'name':_0x5f08bc,'operator':'eq'});}let _0x2e7ed6=[...MetaApi[_0x56f6a2(0xba)](!0x0,!0x1)];if(_0x23444b&&_0x23444b[_0x56f6a2(0xdc)]>0x0)for(let _0x2c0637=0x0;_0x2c0637<_0x23444b[_0x56f6a2(0xdc)];_0x2c0637++){let {type:_0x34922f='string',name:_0x5b0ae0,hidden:_0x1977df=!0x1,record:_0x198cf4={'align':_0x56f6a2(0xad)},header:_0x9476d8,sortable:_0x2f6df9=!0x1,width:_0x27db06=0x87,options:_0x294608,select_opt:_0x50a272,object_opt:_0x1db6c}=_0x23444b[_0x2c0637];if(_0x50a272&&(_0x294608=_0x50a272),_0x1db6c&&(_0x294608=_0x1db6c),['resource-object',_0x56f6a2(0xcf)][_0x56f6a2(0xdf)](_0x34922f)?_0x34922f='meta-object-selector':['resource-code-selector']['includes'](_0x34922f)&&(_0x34922f='meta-code-selector'),'id'==_0x5b0ae0)_0x2e7ed6[_0x56f6a2(0xc5)]({'type':'string','name':_0x5b0ae0,'hidden':!0x0});else{let _0xa5153f=MetaApi[_0x56f6a2(0xd8)](_0x34922f,_0x5b0ae0,_0x9476d8||_0x5b0ae0,_0x198cf4[_0x56f6a2(0x94)]?_0x198cf4['align']:_0x56f6a2(0xad),!0x1,_0x2f6df9,_0x27db06);_0x34922f['startsWith'](_0x56f6a2(0xcc))&&_0x1db6c&&_0x1db6c['menu']&&(_0x294608=await MetaUiUtil['getGristMetaObjectOptions'](_0x34922f,_0x294608)),_0x56f6a2(0xa4)===_0x34922f?Array[_0x56f6a2(0xaa)](_0x294608)?_0xa5153f[_0x56f6a2(0xcb)][_0x56f6a2(0xdb)]=_0x294608:_0x56f6a2(0xc4)===_0x294608['type']?_0xa5153f[_0x56f6a2(0xcb)]['options']=await ServiceUtil[_0x56f6a2(0xa7)](_0x294608[_0x56f6a2(0x8f)]?_0x294608[_0x56f6a2(0x8f)]:_0x294608[_0x56f6a2(0x92)]):'scenario'===_0x294608[_0x56f6a2(0xda)]?_0xa5153f[_0x56f6a2(0xcb)][_0x56f6a2(0xdb)]=await ServiceUtil[_0x56f6a2(0xd1)](_0x294608['name'],_0x294608[_0x56f6a2(0xd7)]):'entity'===_0x294608[_0x56f6a2(0xda)]&&(_0xa5153f[_0x56f6a2(0xcb)][_0x56f6a2(0xdb)]=await ServiceUtil['getCodeByEntity'](_0x294608[_0x56f6a2(0xd7)])):_0x56f6a2(0xa9)===_0x34922f?_0xa5153f['record'][_0x56f6a2(0xdb)]={..._0x294608}:_0x56f6a2(0xa2)==_0x34922f&&(_0x294608[_0x56f6a2(0x95)]&&(_0x294608[_0x56f6a2(0xb7)]=await ServiceUtil['getCodeByEntity'](_0x294608)),_0xa5153f['record'][_0x56f6a2(0xdb)]={..._0x294608}),_0xa5153f['hidden']=_0x1977df,_0x2e7ed6[_0x56f6a2(0xc5)](_0xa5153f);}}else _0x2e7ed6['push'](MetaApi[_0x56f6a2(0xd8)]('string',this['options'][_0x56f6a2(0xca)],this['options'][_0x56f6a2(0xca)],_0x56f6a2(0xad),!0x1,!0x0,0xb4)),this[_0x56f6a2(0xdb)][_0x56f6a2(0x95)]&&_0x2e7ed6['push'](MetaApi['getGristColumnConfig2'](_0x56f6a2(0xd5),this[_0x56f6a2(0xdb)][_0x56f6a2(0x95)],this[_0x56f6a2(0xdb)][_0x56f6a2(0x95)],_0x56f6a2(0xad),!0x1,!0x0,0x12c));_0x2e7ed6[_0x56f6a2(0xd6)](_0x1a6f2b=>{const _0x4c5a78=_0x56f6a2;let _0x70bb5b=_0x6368da[_0x4c5a78(0xc1)](_0x35257b=>'string'==typeof _0x35257b?_0x1a6f2b[_0x4c5a78(0x92)]==_0x35257b:_0x1a6f2b[_0x4c5a78(0x92)]==_0x35257b[_0x4c5a78(0x92)]);_0x70bb5b&&_0x70bb5b['length']>0x0&&(_0x1a6f2b['filter']=_0x4c5a78(0xd5)==typeof _0x70bb5b[0x0]?_0x4c5a78(0xce):_0x70bb5b[0x0]);});let _0x4609a3={'rows':MetaApi['getGristSelectableConfig'](!0x1),'pagination':MetaApi['getGristPagination100Config'](),'columns':_0x2e7ed6,'sorters':[..._0x5d0f3d]};_0x4609a3['rows'][_0x56f6a2(0x99)]={'click':_0x56f6a2(0xa5),'dblclick':(_0x42e66b,_0x1bc6d5,_0x158642,_0x18d67f,_0xa55c55,_0x4e7da6)=>{const _0x38eca7=_0x56f6a2;this[_0x38eca7(0xd0)](_0x18d67f);}},_0x4609a3[_0x56f6a2(0xde)][_0x56f6a2(0xb0)]=!0x1,this['gridConfig']=_0x4609a3,await super[_0x56f6a2(0xa0)]();}async[a0_0x4f5dd4(0xd9)](){const _0x2eeb57=a0_0x4f5dd4;await super[_0x2eeb57(0xd9)]();}['render'](){const _0x53ff6b=a0_0x4f5dd4;return html`
21
- <ox-grist id="ox-grist" .config=${this[_0x53ff6b(0xc9)]} .mode=${isMobileDevice()?'LIST':'GRID'} auto-fetch
22
- .fetchHandler=${this[_0x53ff6b(0xcd)]['bind'](this)}>
20
+ `];async[a0_0x326179(0x124)](){const _0x2b81be=a0_0x326179;this[_0x2b81be(0x14f)]=this[_0x2b81be(0x142)]['filters']?this[_0x2b81be(0x142)][_0x2b81be(0x12d)]:this[_0x2b81be(0x127)]&&this[_0x2b81be(0x127)][_0x2b81be(0x12d)]?this['basicArgs'][_0x2b81be(0x12d)]:[];let _0x5bad3b=this[_0x2b81be(0x142)][_0x2b81be(0x131)]?this['options'][_0x2b81be(0x131)]:this[_0x2b81be(0x127)]&&this[_0x2b81be(0x127)][_0x2b81be(0x131)]?this[_0x2b81be(0x127)][_0x2b81be(0x131)]:[],_0x3a3610=this[_0x2b81be(0x142)][_0x2b81be(0x117)]?this[_0x2b81be(0x142)][_0x2b81be(0x117)]:this[_0x2b81be(0x142)][_0x2b81be(0x134)]?.[_0x2b81be(0x13b)]&&this['options']['menu_template']?.[_0x2b81be(0x13b)][_0x2b81be(0x14a)]>0x0?this[_0x2b81be(0x142)][_0x2b81be(0x134)]['search']:[],_0x5bb70e=this[_0x2b81be(0x142)][_0x2b81be(0x12e)];if(!_0x3a3610||0x0==_0x3a3610[_0x2b81be(0x14a)]){let _0x5ed16b;this[_0x2b81be(0x142)][_0x2b81be(0x121)]&&(_0x5ed16b=this[_0x2b81be(0x142)]['codeField']),this[_0x2b81be(0x142)][_0x2b81be(0x143)]&&(_0x5ed16b=this[_0x2b81be(0x142)][_0x2b81be(0x143)]),_0x5ed16b&&_0x3a3610[_0x2b81be(0x114)]({'name':_0x5ed16b,'operator':'eq'});}let _0xdaa1cc=[...MetaApi[_0x2b81be(0x125)](!0x0,!0x1)];if(_0x5bb70e&&_0x5bb70e[_0x2b81be(0x14a)]>0x0)for(let _0x282655=0x0;_0x282655<_0x5bb70e[_0x2b81be(0x14a)];_0x282655++){let {type:_0x38aa5c=_0x2b81be(0x123),name:_0xaf0173,hidden:_0x51889d=!0x1,record:_0x9d5083={'align':_0x2b81be(0x115)},header:_0x34e801,sortable:_0x4646ca=!0x1,width:_0x185cee=0x87,options:_0x1090ca,select_opt:_0x123eb9,object_opt:_0x3b21cd}=_0x5bb70e[_0x282655];if(_0x123eb9&&(_0x1090ca=_0x123eb9),_0x3b21cd&&(_0x1090ca=_0x3b21cd),[_0x2b81be(0x116),_0x2b81be(0x11a)][_0x2b81be(0xfe)](_0x38aa5c)?_0x38aa5c=_0x2b81be(0x140):[_0x2b81be(0x130)][_0x2b81be(0xfe)](_0x38aa5c)&&(_0x38aa5c=_0x2b81be(0x146)),'id'==_0xaf0173)_0xdaa1cc['push']({'type':_0x2b81be(0x123),'name':_0xaf0173,'hidden':!0x0});else{let _0x597588=MetaApi[_0x2b81be(0x14b)](_0x38aa5c,_0xaf0173,_0x34e801||_0xaf0173,_0x9d5083['align']?_0x9d5083[_0x2b81be(0x11d)]:_0x2b81be(0x115),!0x1,_0x4646ca,_0x185cee);_0x38aa5c[_0x2b81be(0x144)](_0x2b81be(0x107))&&_0x3b21cd&&_0x3b21cd[_0x2b81be(0x148)]&&(_0x1090ca=await MetaUiUtil['getGristMetaObjectOptions'](_0x38aa5c,_0x1090ca)),_0x2b81be(0x12e)===_0x38aa5c?Array[_0x2b81be(0x112)](_0x1090ca)?_0x597588[_0x2b81be(0x11e)]['options']=_0x1090ca:_0x2b81be(0x10f)===_0x1090ca[_0x2b81be(0x10b)]?_0x597588[_0x2b81be(0x11e)][_0x2b81be(0x142)]=await ServiceUtil[_0x2b81be(0x103)](_0x1090ca[_0x2b81be(0x13d)]?_0x1090ca[_0x2b81be(0x13d)]:_0x1090ca['name']):_0x2b81be(0x136)===_0x1090ca[_0x2b81be(0x10b)]?_0x597588['record']['options']=await ServiceUtil['getCodeByScenario'](_0x1090ca[_0x2b81be(0x118)],_0x1090ca[_0x2b81be(0x141)]):_0x2b81be(0x122)===_0x1090ca['type']&&(_0x597588[_0x2b81be(0x11e)]['options']=await ServiceUtil[_0x2b81be(0x151)](_0x1090ca['args'])):_0x2b81be(0x140)===_0x38aa5c?_0x597588[_0x2b81be(0x11e)][_0x2b81be(0x142)]={..._0x1090ca}:_0x2b81be(0x146)==_0x38aa5c&&(_0x1090ca['dispField']&&(_0x1090ca[_0x2b81be(0x147)]=await ServiceUtil['getCodeByEntity'](_0x1090ca)),_0x597588[_0x2b81be(0x11e)][_0x2b81be(0x142)]={..._0x1090ca}),_0x597588['hidden']=_0x51889d,_0xdaa1cc[_0x2b81be(0x114)](_0x597588);}}else _0xdaa1cc[_0x2b81be(0x114)](MetaApi[_0x2b81be(0x14b)](_0x2b81be(0x123),this[_0x2b81be(0x142)]['codeField'],this['options'][_0x2b81be(0x121)],_0x2b81be(0x115),!0x1,!0x0,0xb4)),this[_0x2b81be(0x142)][_0x2b81be(0x120)]&&_0xdaa1cc[_0x2b81be(0x114)](MetaApi[_0x2b81be(0x14b)](_0x2b81be(0x123),this[_0x2b81be(0x142)][_0x2b81be(0x120)],this[_0x2b81be(0x142)]['dispField'],'left',!0x1,!0x0,0x12c));_0xdaa1cc['forEach'](_0x5247b1=>{const _0x423398=_0x2b81be;let _0x2128e6=_0x3a3610[_0x423398(0x145)](_0x5f57bd=>_0x423398(0x123)==typeof _0x5f57bd?_0x5247b1[_0x423398(0x118)]==_0x5f57bd:_0x5247b1['name']==_0x5f57bd[_0x423398(0x118)]);_0x2128e6&&_0x2128e6[_0x423398(0x14a)]>0x0&&(_0x5247b1['filter']=_0x423398(0x123)==typeof _0x2128e6[0x0]?_0x423398(0x13b):_0x2128e6[0x0]);});let _0x378ddc={'rows':MetaApi[_0x2b81be(0x132)](!0x1),'pagination':MetaApi['getGristPagination100Config'](),'columns':_0xdaa1cc,'sorters':[..._0x5bad3b]};_0x378ddc[_0x2b81be(0x12b)][_0x2b81be(0xff)]={'click':_0x2b81be(0x119),'dblclick':(_0x2e1517,_0xfcbfe4,_0x2d4b3a,_0x2f0e40,_0x1d3375,_0x34ca67)=>{const _0x3c597a=_0x2b81be;this[_0x3c597a(0x10c)](_0x2f0e40);}},_0x378ddc[_0x2b81be(0x12b)][_0x2b81be(0x11b)]=!0x1,this[_0x2b81be(0xfd)]=_0x378ddc,await super[_0x2b81be(0x124)]();}async['firstUpdated'](){await super['firstUpdated']();}[a0_0x326179(0x137)](){const _0x37c0f7=a0_0x326179;return html`
21
+ <ox-grist id="ox-grist" .config=${this[_0x37c0f7(0xfd)]} .mode=${isMobileDevice()?_0x37c0f7(0x110):_0x37c0f7(0x14c)} auto-fetch
22
+ .fetchHandler=${this[_0x37c0f7(0x104)][_0x37c0f7(0x150)](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_0x4f5dd4=a0_0x39bc;(function(_0x13946b,_0x4b06a0){const _0x17e957=a0_0x
27
27
  </div>
28
28
  </ox-grist>
29
29
  <div id="button-container" class="button-container">
30
- <mwc-button raised label="${TermsUtil[_0x53ff6b(0xc2)](_0x53ff6b(0xa8))}" style="margin-left:7px;margin-top:7px;"
31
- @click=${this[_0x53ff6b(0xa1)]['bind'](this)}>
30
+ <mwc-button raised label="${TermsUtil[_0x37c0f7(0x11f)](_0x37c0f7(0x10e))}" style="margin-left:7px;margin-top:7px;"
31
+ @click=${this[_0x37c0f7(0x102)][_0x37c0f7(0x150)](this)}>
32
32
  </mwc-button>
33
- <mwc-button raised label="${TermsUtil[_0x53ff6b(0xc2)]('cancel')}" style="margin-left:7px;margin-top:7px;"
34
- @click=${this[_0x53ff6b(0xc3)][_0x53ff6b(0x96)](this)}>
33
+ <mwc-button raised label="${TermsUtil[_0x37c0f7(0x11f)]('cancel')}" style="margin-left:7px;margin-top:7px;"
34
+ @click=${this[_0x37c0f7(0x105)][_0x37c0f7(0x150)](this)}>
35
35
  </mwc-button>
36
- <mwc-button raised label="${TermsUtil[_0x53ff6b(0xc2)]('select')}" style="margin-left:7px;margin-top:7px;"
37
- @click=${this['clickSelect']['bind'](this)}>
36
+ <mwc-button raised label="${TermsUtil[_0x37c0f7(0x11f)](_0x37c0f7(0x12e))}" style="margin-left:7px;margin-top:7px;"
37
+ @click=${this[_0x37c0f7(0x10d)]['bind'](this)}>
38
38
  </mwc-button>
39
39
  </div>
40
- `;}get[a0_0x4f5dd4(0xbd)](){const _0x122851=a0_0x4f5dd4;return this[_0x122851(0x97)]['querySelector'](_0x122851(0xbb));}async[a0_0x4f5dd4(0xcd)]({page:_0x3a2f0e=0x0,limit:_0x4596cf=0x0,sorters:_0x1d3c9c=[],filters:_0x5bce02=[]}){const _0x153ef0=a0_0x4f5dd4;let _0x32606b=[...this[_0x153ef0(0xb8)]];_0x5bce02[_0x153ef0(0xd6)](_0x2c5471=>{const _0x392335=_0x153ef0;let _0x591d57=_0x32606b[_0x392335(0xc1)](_0x26b761=>_0x2c5471[_0x392335(0x92)]==_0x26b761[_0x392335(0x92)]);_0x591d57&&_0x591d57['length']>0x0&&delete _0x32606b[_0x2c5471[_0x392335(0x92)]],_0x32606b[_0x392335(0xc5)](_0x2c5471);});let _0x6ac3a5=ValueUtil[_0x153ef0(0xb5)](this[_0x153ef0(0xdb)]['menu_template']&&this[_0x153ef0(0xdb)]['menu_template'][_0x153ef0(0xdd)]||{},_0x153ef0(0xa6),'after_set_fields'),_0x49432c=Object[_0x153ef0(0x9c)](_0x6ac3a5||{}),_0x295e6f=MetaApi[_0x153ef0(0xac)](this[_0x153ef0(0xc9)][_0x153ef0(0x9a)]['filter'](_0x31c42f=>!_0x49432c[_0x153ef0(0xdf)](_0x31c42f[_0x153ef0(0x92)])));return await MetaApi['searchByPagination'](this[_0x153ef0(0xdb)][_0x153ef0(0xd4)],_0x32606b,_0x1d3c9c,_0x3a2f0e,_0x4596cf,_0x295e6f);}async[a0_0x4f5dd4(0xa1)](_0x4a2d92){const _0x2f9fe7=a0_0x4f5dd4;this['confirmCallback']&&this[_0x2f9fe7(0xc6)](null),closePopup(this);}async[a0_0x4f5dd4(0xc3)](_0x49a033){closePopup(this);}async[a0_0x4f5dd4(0xaf)](_0x3a9ac3){const _0x13e729=a0_0x4f5dd4;let _0x49c0d3=this[_0x13e729(0xbd)]['selected'];_0x49c0d3&&0x0!=_0x49c0d3[_0x13e729(0xdc)]?this['selectRecord'](_0x49c0d3[0x0]):MetaApi[_0x13e729(0xb6)](_0x13e729(0xbe),TermsUtil[_0x13e729(0xb3)](_0x13e729(0xae)));}async[a0_0x4f5dd4(0xd0)](_0x24036b){const _0x2dfcd4=a0_0x4f5dd4;this[_0x2dfcd4(0xc6)]&&this[_0x2dfcd4(0xc6)](_0x24036b),closePopup(this);}}customElements[a0_0x4f5dd4(0x9f)](a0_0x4f5dd4(0xb2),MetaObjectSelectorPopup);
40
+ `;}get['grist'](){const _0x2d0901=a0_0x326179;return this['shadowRoot'][_0x2d0901(0x135)](_0x2d0901(0x14e));}async[a0_0x326179(0x104)]({page:_0x44c061=0x0,limit:_0x399a06=0x0,sorters:_0x40be05=[],filters:_0x31fb91=[]}){const _0x4d39e3=a0_0x326179;let _0x22e55a=[...this[_0x4d39e3(0x14f)]];_0x31fb91[_0x4d39e3(0x12f)](_0x5819c4=>{const _0x2c8cca=_0x4d39e3;let _0x5b948d=_0x22e55a[_0x2c8cca(0x145)](_0xb6ec5d=>_0x5819c4[_0x2c8cca(0x118)]==_0xb6ec5d[_0x2c8cca(0x118)]);_0x5b948d&&_0x5b948d[_0x2c8cca(0x14a)]>0x0&&delete _0x22e55a[_0x5819c4[_0x2c8cca(0x118)]],_0x22e55a[_0x2c8cca(0x114)](_0x5819c4);});let _0x5d0994=ValueUtil[_0x4d39e3(0x106)](this[_0x4d39e3(0x142)]['menu_template']&&this[_0x4d39e3(0x142)]['menu_template'][_0x4d39e3(0x13c)]||{},'query',_0x4d39e3(0x113)),_0x187cb5=Object[_0x4d39e3(0x139)](_0x5d0994||{}),_0x378e5a=MetaApi[_0x4d39e3(0x149)](this['gridConfig'][_0x4d39e3(0x13e)][_0x4d39e3(0x145)](_0x5db031=>!_0x187cb5[_0x4d39e3(0xfe)](_0x5db031[_0x4d39e3(0x118)])));return await MetaApi['searchByPagination'](this[_0x4d39e3(0x142)]['queryName'],_0x22e55a,_0x40be05,_0x44c061,_0x399a06,_0x378e5a);}async['clickEmpty'](_0x187115){const _0x1a0e35=a0_0x326179;this[_0x1a0e35(0x13f)]&&this[_0x1a0e35(0x13f)](null),closePopup(this);}async['clickCancel'](_0x17df02){closePopup(this);}async[a0_0x326179(0x10d)](_0x242da3){const _0x17f067=a0_0x326179;let _0x1d25ee=this[_0x17f067(0xfc)][_0x17f067(0x11c)];_0x1d25ee&&0x0!=_0x1d25ee[_0x17f067(0x14a)]?this['selectRecord'](_0x1d25ee[0x0]):MetaApi['showToast'](_0x17f067(0x101),TermsUtil[_0x17f067(0x12a)](_0x17f067(0x126)));}async[a0_0x326179(0x10c)](_0x3dcf90){const _0x3d8206=a0_0x326179;this[_0x3d8206(0x13f)]&&this[_0x3d8206(0x13f)](_0x3dcf90),closePopup(this);}}customElements['define'](a0_0x326179(0x128),MetaObjectSelectorPopup);
@@ -1 +1 @@
1
- const a0_0x28f930=a0_0x77ef;(function(_0xb7e278,_0x2cb0af){const _0x335b5d=a0_0x77ef,_0x4c5bb6=_0xb7e278();while(!![]){try{const _0x192561=-parseInt(_0x335b5d(0x218))/0x1+-parseInt(_0x335b5d(0x1e5))/0x2*(-parseInt(_0x335b5d(0x1ff))/0x3)+-parseInt(_0x335b5d(0x1fd))/0x4*(parseInt(_0x335b5d(0x1fc))/0x5)+parseInt(_0x335b5d(0x1f5))/0x6+-parseInt(_0x335b5d(0x201))/0x7+parseInt(_0x335b5d(0x20d))/0x8+parseInt(_0x335b5d(0x217))/0x9*(parseInt(_0x335b5d(0x1e9))/0xa);if(_0x192561===_0x2cb0af)break;else _0x4c5bb6['push'](_0x4c5bb6['shift']());}catch(_0x4c1235){_0x4c5bb6['push'](_0x4c5bb6['shift']());}}}(a0_0x5d7c,0xe5ee1));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';function a0_0x5d7c(){const _0xfbca8f=['isNotEmpty','5507265XwkRdb','isElement','1580579UnuSPD','menuInfo','is_detail','tTitle','title','grist','tagName','parseBasicGridConfigs','etcConfig','result','title_detail','etc','3751248WsrlFS','keys','addEventListener','getMenuMeta','isDetail','parseBasicTabConfigs','connectedCallback','toLowerCase','fieldChangeHandlers','excuteOpenPopupButtonClick','99qcPPAM','296443gzLAOp','runScenario','is_popup','properties','detail','startsWith','parseBasicButtonConfigs','form-field-change','field-change','filterForm','fetchHandler','params','isEmpty','isPopup','isPage','2cHEMFe','data-changed','openDynamicPopup','parseBasicFormConfigs','565090LKnoCd','executeCallScenarioButtonClick','setParentId','dispatchEvent','lifecycle','pageUpdated','active','dataChangeEventHandler','after','getAndParseMenuMeta','name','parent_id','1881144qDskxO','parseBasicServiceConfigs','forEach','data','body','errors','fetch','72185cvFcVY','492BaUzjL'];a0_0x5d7c=function(){return _0xfbca8f;};return a0_0x5d7c();}function a0_0x77ef(_0x2e8a4a,_0xf681ef){const _0x5d7cdc=a0_0x5d7c();return a0_0x77ef=function(_0x77ef96,_0x55d547){_0x77ef96=_0x77ef96-0x1df;let _0x3794ac=_0x5d7cdc[_0x77ef96];return _0x3794ac;},a0_0x77ef(_0x2e8a4a,_0xf681ef);}export const MetaBaseMixin=_0x4e5026=>class extends _0x4e5026{static get[a0_0x28f930(0x21b)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x133b34=>Boolean(_0x133b34)},'is_popup':{'type':Boolean,'converter':_0x2dd480=>Boolean(_0x2dd480)},'is_activity':{'type':Boolean,'converter':_0x53d5a6=>Boolean(_0x53d5a6)},'is_readonly':{'type':Boolean,'converter':_0x3ada0c=>Boolean(_0x3ada0c)}};}get[a0_0x28f930(0x200)](){const _0x599710=a0_0x28f930;return!0x0===this['is_detail']||!0x0===this[_0x599710(0x21a)];}get[a0_0x28f930(0x211)](){const _0x1f54fa=a0_0x28f930;return!ValueUtil[_0x1f54fa(0x1e2)](this[_0x1f54fa(0x203)])&&this[_0x1f54fa(0x203)];}async[a0_0x28f930(0x1f0)](_0x3fda33){const _0x507f27=a0_0x28f930;let {after:_0x418d0e,before:_0x5b6606,column:_0x88c6f8,record:_0x1976e6,row:_0x2d3864}=_0x3fda33[_0x507f27(0x21c)],_0x4cd4d4=_0x88c6f8[_0x507f27(0x1f3)];if(Object[_0x507f27(0x20e)](this[_0x507f27(0x215)]||{})['includes'](_0x4cd4d4)){let _0x1981a7,_0x5cf9f3=(await MetaApi['callScenario'](void 0x0,this[_0x507f27(0x215)][_0x4cd4d4],{'columnName':_0x4cd4d4,'column':_0x88c6f8,'record':_0x1976e6,'after':_0x418d0e,'before':_0x5b6606,'row':_0x2d3864},!0x1))['data'][_0x507f27(0x219)][_0x507f27(0x1f8)][_0x507f27(0x20a)];if(!_0x5cf9f3)return;_0x1981a7=this[_0x507f27(0x206)]?this[_0x507f27(0x206)][_0x507f27(0x206)][_0x507f27(0x1f9)]:this,Object[_0x507f27(0x20e)](_0x5cf9f3)[_0x507f27(0x1f7)](_0x3b740f=>{const _0x40addb=_0x507f27;_0x1981a7[_0x40addb(0x1ec)](new CustomEvent(_0x40addb(0x220),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x1976e6,'row':_0x2d3864,'after':_0x5cf9f3[_0x3b740f],'before':_0x1976e6[_0x3b740f],'column':{'name':_0x3b740f}}}));});}this[_0x507f27(0x1ec)](new CustomEvent(_0x507f27(0x1e6),{'bubbles':!0x0,'composed':!0x0,'detail':_0x3fda33[_0x507f27(0x21c)]}));}async[a0_0x28f930(0x213)](){const _0x1afcc4=a0_0x28f930;super[_0x1afcc4(0x213)]&&await super['connectedCallback'](),this[_0x1afcc4(0x207)][_0x1afcc4(0x214)]()[_0x1afcc4(0x21d)]('meta-form-')?this[_0x1afcc4(0x20f)](_0x1afcc4(0x21f),async _0x15f716=>{const _0x38406f=_0x1afcc4;await this[_0x38406f(0x1f0)](_0x15f716);}):this[_0x1afcc4(0x20f)]('field-change',async _0x5a38b8=>{const _0x5e88cd=_0x1afcc4;await this[_0x5e88cd(0x1f0)](_0x5a38b8);});}async[a0_0x28f930(0x1ee)](_0x4807bf,_0x222ec2,_0x57edc0){const _0x422cd1=a0_0x28f930;let _0x8b8898=this[_0x422cd1(0x1ed)]?.[_0x422cd1(0x1e1)]?this[_0x422cd1(0x1ed)][_0x422cd1(0x1e1)]:{};this['isPage']&&this[_0x422cd1(0x1ef)]&&0x0==_0x57edc0[_0x422cd1(0x1ef)]&&ValueUtil[_0x422cd1(0x1fe)](_0x8b8898)&&this[_0x422cd1(0x1fb)]();}get[a0_0x28f930(0x1e3)](){const _0x245d17=a0_0x28f930;return!ValueUtil[_0x245d17(0x1e2)](this[_0x245d17(0x21a)])&&this[_0x245d17(0x21a)];}get[a0_0x28f930(0x1e4)](){return!this['is_detail']&&!this['is_popup'];}async[a0_0x28f930(0x1f2)](){const _0x53c040=a0_0x28f930;let _0x596117=await MetaApi[_0x53c040(0x210)](this);_0x596117&&(this[_0x53c040(0x202)]=_0x596117['menu'],this[_0x53c040(0x209)]=_0x596117[_0x53c040(0x20c)],this['parseBasicGridConfigs']&&this[_0x53c040(0x208)](_0x596117),this[_0x53c040(0x1f6)]&&this['parseBasicServiceConfigs'](_0x596117),this['parseBasicFormConfigs']&&this[_0x53c040(0x1e8)](_0x596117),this[_0x53c040(0x212)]&&this[_0x53c040(0x212)](_0x596117),this[_0x53c040(0x21e)]&&this['parseBasicButtonConfigs'](_0x596117));}async[a0_0x28f930(0x1fb)](){const _0x25066a=a0_0x28f930;ValueUtil[_0x25066a(0x1fe)](this[_0x25066a(0x206)])?this[_0x25066a(0x206)][_0x25066a(0x1fb)]():(ValueUtil[_0x25066a(0x1fe)](this[_0x25066a(0x1df)])||this[_0x25066a(0x1e0)])&&await this['fetchHandler']();}async[a0_0x28f930(0x216)](_0x55021f,_0x32f678,_0x3fa8da){const _0x1b51f5=a0_0x28f930;let _0x52a560=TermsUtil[_0x1b51f5(0x204)](_0x55021f[_0x1b51f5(0x205)]);ValueUtil[_0x1b51f5(0x1fe)](_0x55021f[_0x1b51f5(0x20b)])&&(_0x52a560=_0x52a560+'-'+ValueUtil['getParams'](_0x32f678,..._0x55021f['title_detail']['split']('.'))),MetaApi[_0x1b51f5(0x1e7)](_0x52a560,_0x55021f,_0x32f678,_0x3fa8da);}async[a0_0x28f930(0x1ea)](_0x306e4e,_0x4abf89,_0x574e8b){const _0x15f107=a0_0x28f930;let _0x1bc784=await MetaApi['callScenario'](_0x306e4e['name'],_0x306e4e[_0x15f107(0x1f3)],_0x4abf89);!0x1!==_0x1bc784&&!_0x1bc784[_0x15f107(0x1fa)]&&ValueUtil[_0x15f107(0x1fe)](_0x306e4e[_0x15f107(0x1f1)])&&_0x574e8b();}[a0_0x28f930(0x1eb)](_0x34e90b){const _0x319ffd=a0_0x28f930;this[_0x319ffd(0x1f4)]=_0x34e90b,this[_0x319ffd(0x1fb)]();}};
1
+ const a0_0x3159ff=a0_0x34ec;(function(_0x1a8cbb,_0x218f20){const _0x32528c=a0_0x34ec,_0x17707e=_0x1a8cbb();while(!![]){try{const _0x5b2e11=parseInt(_0x32528c(0xab))/0x1*(parseInt(_0x32528c(0x71))/0x2)+parseInt(_0x32528c(0x8c))/0x3*(-parseInt(_0x32528c(0x82))/0x4)+parseInt(_0x32528c(0x9a))/0x5*(-parseInt(_0x32528c(0x89))/0x6)+parseInt(_0x32528c(0xac))/0x7*(parseInt(_0x32528c(0x7d))/0x8)+-parseInt(_0x32528c(0x93))/0x9*(-parseInt(_0x32528c(0x73))/0xa)+parseInt(_0x32528c(0x7a))/0xb*(parseInt(_0x32528c(0x72))/0xc)+-parseInt(_0x32528c(0x90))/0xd*(parseInt(_0x32528c(0x8f))/0xe);if(_0x5b2e11===_0x218f20)break;else _0x17707e['push'](_0x17707e['shift']());}catch(_0x2bc803){_0x17707e['push'](_0x17707e['shift']());}}}(a0_0x6586,0x9a549));import{MetaApi}from'./../utils/meta-api';function a0_0x6586(){const _0x16fc3c=['getAndParseMenuMeta','includes','callScenario','dataChangeEventHandler','connectedCallback','active','fieldChangeHandlers','parseBasicServiceConfigs','850412xNijTC','4999771HezFbg','setParentId','parent_id','menuInfo','2JYAlKz','708htvUkT','51310ppNmuv','fetchHandler','excuteOpenPopupButtonClick','errors','openDynamicPopup','isDetail','parseBasicFormConfigs','211277HOhpiC','body','lifecycle','8xsGzYk','fetch','etcConfig','menu','isNotEmpty','236792BHcECT','executeCallScenarioButtonClick','grist','isEmpty','parseBasicGridConfigs','isPage','form-field-change','199866bOjNtn','params','pageUpdated','9cOGFAd','title_detail','parseBasicTabConfigs','14PGuqZS','20429279cACeeY','properties','is_popup','1548XgzoGp','getParams','addEventListener','toLowerCase','getMenuMeta','field-change','keys','180VMSWJU','dispatchEvent','name','is_detail','split','parseBasicButtonConfigs','isPopup','data','forEach'];a0_0x6586=function(){return _0x16fc3c;};return a0_0x6586();}import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';function a0_0x34ec(_0x21b540,_0xe314ec){const _0x6586fb=a0_0x6586();return a0_0x34ec=function(_0x34ecc7,_0x1089d2){_0x34ecc7=_0x34ecc7-0x71;let _0x692dfb=_0x6586fb[_0x34ecc7];return _0x692dfb;},a0_0x34ec(_0x21b540,_0xe314ec);}export const MetaBaseMixin=_0x2d6f0d=>class extends _0x2d6f0d{static get[a0_0x3159ff(0x91)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x17b4bf=>Boolean(_0x17b4bf)},'is_popup':{'type':Boolean,'converter':_0x3bb508=>Boolean(_0x3bb508)},'is_activity':{'type':Boolean,'converter':_0x3b1882=>Boolean(_0x3b1882)},'is_readonly':{'type':Boolean,'converter':_0x4c5210=>Boolean(_0x4c5210)}};}get['isElement'](){const _0xe7a90e=a0_0x3159ff;return!0x0===this['is_detail']||!0x0===this[_0xe7a90e(0x92)];}get[a0_0x3159ff(0x78)](){const _0x12608b=a0_0x3159ff;return!ValueUtil[_0x12608b(0x85)](this[_0x12608b(0x9d)])&&this[_0x12608b(0x9d)];}async[a0_0x3159ff(0xa6)](_0x3084b4){const _0x343999=a0_0x3159ff;let {after:_0xf493af,before:_0x32c2e9,column:_0x446a43,record:_0x3d6d7a,row:_0x5c3b66}=_0x3084b4['detail'],_0x2dd69e=_0x446a43[_0x343999(0x9c)];if(Object[_0x343999(0x99)](this[_0x343999(0xa9)]||{})[_0x343999(0xa4)](_0x2dd69e)){let _0x54c4b8,_0x1ea928=(await MetaApi[_0x343999(0xa5)](void 0x0,this[_0x343999(0xa9)][_0x2dd69e],{'columnName':_0x2dd69e,'column':_0x446a43,'record':_0x3d6d7a,'after':_0xf493af,'before':_0x32c2e9,'row':_0x5c3b66},!0x1))[_0x343999(0xa1)]['runScenario'][_0x343999(0xa1)]['result'];if(!_0x1ea928)return;_0x54c4b8=this['grist']?this[_0x343999(0x84)]['grist'][_0x343999(0x7b)]:this,Object[_0x343999(0x99)](_0x1ea928)[_0x343999(0xa2)](_0x4c1f7e=>{const _0x53505d=_0x343999;_0x54c4b8['dispatchEvent'](new CustomEvent(_0x53505d(0x98),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x3d6d7a,'row':_0x5c3b66,'after':_0x1ea928[_0x4c1f7e],'before':_0x3d6d7a[_0x4c1f7e],'column':{'name':_0x4c1f7e}}}));});}this[_0x343999(0x9b)](new CustomEvent('data-changed',{'bubbles':!0x0,'composed':!0x0,'detail':_0x3084b4['detail']}));}async['connectedCallback'](){const _0x1c8400=a0_0x3159ff;super[_0x1c8400(0xa7)]&&await super[_0x1c8400(0xa7)](),this['tagName'][_0x1c8400(0x96)]()['startsWith']('meta-form-')?this['addEventListener'](_0x1c8400(0x88),async _0x465eae=>{await this['dataChangeEventHandler'](_0x465eae);}):this[_0x1c8400(0x95)](_0x1c8400(0x98),async _0x9aa6e1=>{const _0x40a108=_0x1c8400;await this[_0x40a108(0xa6)](_0x9aa6e1);});}async[a0_0x3159ff(0x8b)](_0x492b80,_0x16822d,_0x242e70){const _0x3b9e7f=a0_0x3159ff;let _0x32757d=this[_0x3b9e7f(0x7c)]?.[_0x3b9e7f(0x8a)]?this[_0x3b9e7f(0x7c)][_0x3b9e7f(0x8a)]:{};this[_0x3b9e7f(0x87)]&&this[_0x3b9e7f(0xa8)]&&0x0==_0x242e70['active']&&ValueUtil[_0x3b9e7f(0x81)](_0x32757d)&&this[_0x3b9e7f(0x7e)]();}get[a0_0x3159ff(0xa0)](){const _0x12aabc=a0_0x3159ff;return!ValueUtil['isEmpty'](this[_0x12aabc(0x92)])&&this[_0x12aabc(0x92)];}get['isPage'](){const _0x216660=a0_0x3159ff;return!this[_0x216660(0x9d)]&&!this[_0x216660(0x92)];}async[a0_0x3159ff(0xa3)](){const _0xb31ba2=a0_0x3159ff;let _0x464b0d=await MetaApi[_0xb31ba2(0x97)](this);_0x464b0d&&(this[_0xb31ba2(0xaf)]=_0x464b0d[_0xb31ba2(0x80)],this[_0xb31ba2(0x7f)]=_0x464b0d['etc'],this[_0xb31ba2(0x86)]&&this[_0xb31ba2(0x86)](_0x464b0d),this['parseBasicServiceConfigs']&&this[_0xb31ba2(0xaa)](_0x464b0d),this[_0xb31ba2(0x79)]&&this[_0xb31ba2(0x79)](_0x464b0d),this[_0xb31ba2(0x8e)]&&this[_0xb31ba2(0x8e)](_0x464b0d),this[_0xb31ba2(0x9f)]&&this[_0xb31ba2(0x9f)](_0x464b0d));}async[a0_0x3159ff(0x7e)](){const _0x4dab5f=a0_0x3159ff;ValueUtil['isNotEmpty'](this[_0x4dab5f(0x84)])?this[_0x4dab5f(0x84)][_0x4dab5f(0x7e)]():(ValueUtil[_0x4dab5f(0x81)](this['filterForm'])||this[_0x4dab5f(0x74)])&&await this['fetchHandler']();}async[a0_0x3159ff(0x75)](_0x177e7c,_0x564a3a,_0x18fb64){const _0xb8a5d=a0_0x3159ff;let _0x435c7b=TermsUtil['tTitle'](_0x177e7c['title']);ValueUtil[_0xb8a5d(0x81)](_0x177e7c[_0xb8a5d(0x8d)])&&(_0x435c7b=_0x435c7b+'-'+ValueUtil[_0xb8a5d(0x94)](_0x564a3a,..._0x177e7c[_0xb8a5d(0x8d)][_0xb8a5d(0x9e)]('.'))),MetaApi[_0xb8a5d(0x77)](_0x435c7b,_0x177e7c,_0x564a3a,_0x18fb64);}async[a0_0x3159ff(0x83)](_0x43c519,_0xf38aab,_0x28b709){const _0x5517fe=a0_0x3159ff;let _0xb31ea6=await MetaApi[_0x5517fe(0xa5)](_0x43c519['name'],_0x43c519[_0x5517fe(0x9c)],_0xf38aab);!0x1!==_0xb31ea6&&!_0xb31ea6[_0x5517fe(0x76)]&&ValueUtil[_0x5517fe(0x81)](_0x43c519['after'])&&_0x28b709();}[a0_0x3159ff(0xad)](_0x5891e0){const _0x5287fb=a0_0x3159ff;this[_0x5287fb(0xae)]=_0x5891e0,this['fetch']();}};
@@ -1,4 +1,4 @@
1
- const a0_0x28e203=a0_0x321f;(function(_0x3f17a0,_0x37bd1){const _0x3d65f5=a0_0x321f,_0x29df11=_0x3f17a0();while(!![]){try{const _0x3bd8b0=-parseInt(_0x3d65f5(0x6c))/0x1*(parseInt(_0x3d65f5(0x75))/0x2)+-parseInt(_0x3d65f5(0x79))/0x3+-parseInt(_0x3d65f5(0x78))/0x4+parseInt(_0x3d65f5(0x77))/0x5+-parseInt(_0x3d65f5(0x7a))/0x6+-parseInt(_0x3d65f5(0x6b))/0x7+parseInt(_0x3d65f5(0x90))/0x8;if(_0x3bd8b0===_0x37bd1)break;else _0x29df11['push'](_0x29df11['shift']());}catch(_0x59d02a){_0x29df11['push'](_0x29df11['shift']());}}}(a0_0x2854,0x2c786));import{html}from'lit';function a0_0x321f(_0x265f4d,_0x59cb45){const _0x285445=a0_0x2854();return a0_0x321f=function(_0x321f7d,_0x5a140d){_0x321f7d=_0x321f7d-0x67;let _0x1a36fa=_0x285445[_0x321f7d];return _0x1a36fa;},a0_0x321f(_0x265f4d,_0x59cb45);}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x2854(){const _0x52414f=['9822608FciuoQ','renderRoot','deleteByIds','connectedCallback','parseGristConfigs','___data','getBasicGristHtml','clear','save','export','shadowRoot','getButtonContainer','exportableData','getBasicGristStyles','isElement','ox-grist','getParams','parseBasicGridConfigs','2532593EwfusJ','57529kKnRoc','render','context','firstUpdated','menuInfo','gridColumnConfig','pageInitialized','getSelectedIdList','startsWith','10oKWJen','parseGridConfigSet','1439700iaBXWq','820852DNvKZg','850218RJQtmN','1173318LyyxPp','forEach','patchesForUpdateMultiple','dataSet','getContextObject','isNotEmpty','grid_column','gristId','isPage','activityDataSet','import','properties','gridEmphasized','grist','search','keys','querySelector','findOne','fetch','parse','gridConfig','searchConfig'];a0_0x2854=function(){return _0x52414f;};return a0_0x2854();}export const MetaBasicGristMixin=_0x3e256f=>class extends MetaButtonMixin(_0x3e256f){static get['styles'](){const _0x2a80fc=a0_0x321f;return MetaApi[_0x2a80fc(0x9d)]();}static get[a0_0x28e203(0x85)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get['grist'](){const _0xe4021e=a0_0x28e203;return this[_0xe4021e(0x91)]?.[_0xe4021e(0x8a)](this[_0xe4021e(0x81)]);}get['filterForm'](){const _0x170bad=a0_0x28e203;return this[_0x170bad(0x9a)]?.['querySelector'](this['filterFormId']);}get[a0_0x28e203(0x6e)](){const _0x4c2aac=a0_0x28e203;return MetaUiUtil[_0x4c2aac(0x7e)](this);}async['connectedCallback'](){const _0x259ab1=a0_0x28e203;this[_0x259ab1(0x81)]=_0x259ab1(0x68),this['filterFormId']='ox-filters-form',await this['getAndParseMenuMeta'](),this['isElement']&&await this['parseGristConfigs'](),this[_0x259ab1(0x83)]&&(this[_0x259ab1(0x7d)]=this['activityDataSet']),super[_0x259ab1(0x93)]&&await super[_0x259ab1(0x93)]();}async[a0_0x28e203(0x6f)](){const _0x2612b7=a0_0x28e203;super[_0x2612b7(0x6f)]&&await super[_0x2612b7(0x6f)]();}async[a0_0x28e203(0x72)](){const _0x5c6db8=a0_0x28e203;this[_0x5c6db8(0x82)]&&await this[_0x5c6db8(0x94)](),super[_0x5c6db8(0x72)]&&await super['pageInitialized']();}[a0_0x28e203(0x6d)](){const _0x159700=a0_0x28e203;return html`
2
- ${MetaApi[_0x159700(0x96)](this)}
3
- ${this['isPage']?html``:MetaUiUtil[_0x159700(0x9b)](this)}
4
- `;}[a0_0x28e203(0x6a)](_0x334ad5){const _0x22e85d=a0_0x28e203;this[_0x22e85d(0x8e)]=_0x334ad5['grid'],this[_0x22e85d(0x71)]=_0x334ad5[_0x22e85d(0x80)],this[_0x22e85d(0x8f)]=_0x334ad5[_0x22e85d(0x88)],this[_0x22e85d(0x86)]=_0x334ad5['gridEmphasized'];}async['parseGristConfigs'](){const _0x4a6162=a0_0x28e203;this['gristConfigSet']=await MetaApi[_0x4a6162(0x76)](this);}async['fetch'](){const _0x3dbd50=a0_0x28e203;await this['grist'][_0x3dbd50(0x8c)]();}async[a0_0x28e203(0x98)](){const _0x1ff1fe=a0_0x28e203;let _0x270ad5=MetaApi[_0x1ff1fe(0x7c)](this[_0x1ff1fe(0x87)]);!!ValueUtil[_0x1ff1fe(0x7f)](_0x270ad5)&&await this['updateMultiple'](_0x270ad5)&&this[_0x1ff1fe(0x8c)]();}async['find'](){const _0x21be5d=a0_0x28e203;let _0x381004=MetaApi[_0x21be5d(0x73)](this[_0x21be5d(0x87)],!0x0);return ValueUtil[_0x21be5d(0x7f)](_0x381004)?await this[_0x21be5d(0x8b)](_0x381004[0x0]):{};}async['delete'](){const _0x22f962=a0_0x28e203;let _0x1f5a9a=MetaApi[_0x22f962(0x73)](this[_0x22f962(0x87)],!0x0);!!ValueUtil[_0x22f962(0x7f)](_0x1f5a9a)&&await this[_0x22f962(0x92)](_0x1f5a9a)&&this['fetch']();}async[a0_0x28e203(0x99)](){const _0xa44e1c=a0_0x28e203;let _0x56dfd4=TermsUtil['tTitle'](ValueUtil[_0xa44e1c(0x69)](this[_0xa44e1c(0x70)],'title'));return await MetaApi[_0xa44e1c(0x9c)](this[_0xa44e1c(0x67)],_0x56dfd4,this['grist']);}async[a0_0x28e203(0x84)](){}async[a0_0x28e203(0x97)](){const _0xb84392=a0_0x28e203;this['grist']&&(this[_0xb84392(0x87)]['data']={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0x1ed333=a0_0x28e203;let _0x7dfb34=this['grist'][_0x1ed333(0x95)]['records'];return _0x7dfb34=JSON[_0x1ed333(0x8d)](JSON['stringify'](_0x7dfb34)),_0x7dfb34[_0x1ed333(0x7b)](_0x474a90=>{const _0x3e031b=_0x1ed333;Object[_0x3e031b(0x89)](_0x474a90)[_0x3e031b(0x7b)](_0x613bdd=>{const _0x401b02=_0x3e031b;_0x613bdd[_0x401b02(0x74)]('__')&&delete _0x474a90[_0x613bdd];});}),_0x7dfb34;}};
1
+ const a0_0x2f7eb7=a0_0x173f;(function(_0x27fcc2,_0x2715e4){const _0x57caca=a0_0x173f,_0x315007=_0x27fcc2();while(!![]){try{const _0x30ec06=parseInt(_0x57caca(0x20d))/0x1*(parseInt(_0x57caca(0x1e1))/0x2)+-parseInt(_0x57caca(0x20f))/0x3+-parseInt(_0x57caca(0x207))/0x4+-parseInt(_0x57caca(0x1de))/0x5+parseInt(_0x57caca(0x214))/0x6+-parseInt(_0x57caca(0x20b))/0x7*(parseInt(_0x57caca(0x212))/0x8)+parseInt(_0x57caca(0x1f4))/0x9;if(_0x30ec06===_0x2715e4)break;else _0x315007['push'](_0x315007['shift']());}catch(_0xbc5239){_0x315007['push'](_0x315007['shift']());}}}(a0_0x5f48,0x28c16));import{html}from'lit';function a0_0x5f48(){const _0x40060d=['activityDataSet','firstUpdated','delete','connectedCallback','deleteByIds','getData','869828uEYGZk','parseGristConfigs','getSelectedIdList','gridEmphasized','2653lSkxyV','import','10093hQgIfU','parseBasicGridConfigs','339225hahhgi','getBasicGristStyles','clear','4568LamJnz','grist','1425960ewjBub','searchConfig','updateMultiple','isNotEmpty','dataSet','filterForm','1236215DttIwT','grid_column','gridColumnConfig','38kUSiQi','styles','find','querySelector','context','isElement','filterFormId','render','getButtonContainer','renderRoot','pageInitialized','ox-filters-form','search','fetch','gristId','forEach','shadowRoot','export','getAndParseMenuMeta','4785219MuYwkY','tTitle','title','getParams','gridConfig','isPage','grid','stringify','patchesForUpdateMultiple','getContextObject','parse','save','menuInfo'];a0_0x5f48=function(){return _0x40060d;};return a0_0x5f48();}import{MetaApi}from'../utils/meta-api';function a0_0x173f(_0x3fff9f,_0x298a09){const _0x5f4818=a0_0x5f48();return a0_0x173f=function(_0x173ff7,_0x19996e){_0x173ff7=_0x173ff7-0x1d9;let _0x46d1a1=_0x5f4818[_0x173ff7];return _0x46d1a1;},a0_0x173f(_0x3fff9f,_0x298a09);}import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x7fe333=>class extends MetaButtonMixin(_0x7fe333){static get[a0_0x2f7eb7(0x1e2)](){const _0x35f2c3=a0_0x2f7eb7;return MetaApi[_0x35f2c3(0x210)]();}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_0x2f7eb7(0x213)](){const _0x59110b=a0_0x2f7eb7;return this[_0x59110b(0x1ea)]?.[_0x59110b(0x1e4)](this[_0x59110b(0x1ef)]);}get[a0_0x2f7eb7(0x1dd)](){const _0x536d8d=a0_0x2f7eb7;return this[_0x536d8d(0x1f1)]?.[_0x536d8d(0x1e4)](this['filterFormId']);}get[a0_0x2f7eb7(0x1e5)](){const _0x44d034=a0_0x2f7eb7;return MetaUiUtil[_0x44d034(0x1fd)](this);}async[a0_0x2f7eb7(0x204)](){const _0x2a6c45=a0_0x2f7eb7;this[_0x2a6c45(0x1ef)]='ox-grist',this[_0x2a6c45(0x1e7)]=_0x2a6c45(0x1ec),await this[_0x2a6c45(0x1f3)](),this[_0x2a6c45(0x1e6)]&&await this[_0x2a6c45(0x208)](),this['activityDataSet']&&(this[_0x2a6c45(0x1dc)]=this[_0x2a6c45(0x201)]),super[_0x2a6c45(0x204)]&&await super['connectedCallback']();}async[a0_0x2f7eb7(0x202)](){const _0x3d6171=a0_0x2f7eb7;super[_0x3d6171(0x202)]&&await super['firstUpdated']();}async[a0_0x2f7eb7(0x1eb)](){const _0x151681=a0_0x2f7eb7;this['isPage']&&await this['parseGristConfigs'](),super[_0x151681(0x1eb)]&&await super[_0x151681(0x1eb)]();}[a0_0x2f7eb7(0x1e8)](){const _0x5487df=a0_0x2f7eb7;return html`
2
+ ${MetaApi['getBasicGristHtml'](this)}
3
+ ${this[_0x5487df(0x1f9)]?html``:MetaUiUtil[_0x5487df(0x1e9)](this)}
4
+ `;}[a0_0x2f7eb7(0x20e)](_0x3af7ae){const _0x8c8fbe=a0_0x2f7eb7;this[_0x8c8fbe(0x1f8)]=_0x3af7ae[_0x8c8fbe(0x1fa)],this[_0x8c8fbe(0x1e0)]=_0x3af7ae[_0x8c8fbe(0x1df)],this[_0x8c8fbe(0x1d9)]=_0x3af7ae[_0x8c8fbe(0x1ed)],this[_0x8c8fbe(0x20a)]=_0x3af7ae[_0x8c8fbe(0x20a)];}async[a0_0x2f7eb7(0x208)](){this['gristConfigSet']=await MetaApi['parseGridConfigSet'](this);}async[a0_0x2f7eb7(0x1ee)](){const _0x14a051=a0_0x2f7eb7;await this[_0x14a051(0x213)][_0x14a051(0x1ee)]();}async[a0_0x2f7eb7(0x1ff)](){const _0xfdd1e7=a0_0x2f7eb7;let _0x67c7af=MetaApi[_0xfdd1e7(0x1fc)](this[_0xfdd1e7(0x213)]);!!ValueUtil[_0xfdd1e7(0x1db)](_0x67c7af)&&await this[_0xfdd1e7(0x1da)](_0x67c7af)&&this[_0xfdd1e7(0x1ee)]();}async[a0_0x2f7eb7(0x1e3)](){const _0x2e9bfb=a0_0x2f7eb7;let _0x4f3044=MetaApi[_0x2e9bfb(0x209)](this[_0x2e9bfb(0x213)],!0x0);return ValueUtil[_0x2e9bfb(0x1db)](_0x4f3044)?await this['findOne'](_0x4f3044[0x0]):{};}async[a0_0x2f7eb7(0x203)](){const _0x449042=a0_0x2f7eb7;let _0x115797=MetaApi['getSelectedIdList'](this[_0x449042(0x213)],!0x0);!!ValueUtil[_0x449042(0x1db)](_0x115797)&&await this[_0x449042(0x205)](_0x115797)&&this['fetch']();}async[a0_0x2f7eb7(0x1f2)](){const _0x1a8f8e=a0_0x2f7eb7;let _0x1c96d8=TermsUtil[_0x1a8f8e(0x1f5)](ValueUtil[_0x1a8f8e(0x1f7)](this[_0x1a8f8e(0x200)],_0x1a8f8e(0x1f6)));return await MetaApi['exportableData'](this[_0x1a8f8e(0x1e6)],_0x1c96d8,this[_0x1a8f8e(0x213)]);}async[a0_0x2f7eb7(0x20c)](){}async[a0_0x2f7eb7(0x211)](){const _0x45d568=a0_0x2f7eb7;this[_0x45d568(0x213)]&&(this[_0x45d568(0x213)]['data']={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x2f7eb7(0x206)](){const _0x467c26=a0_0x2f7eb7;let _0x4e28b5=this[_0x467c26(0x213)]['___data']['records'];return _0x4e28b5=JSON[_0x467c26(0x1fe)](JSON[_0x467c26(0x1fb)](_0x4e28b5)),_0x4e28b5[_0x467c26(0x1f0)](_0x4e112b=>{Object['keys'](_0x4e112b)['forEach'](_0x2d95b9=>{_0x2d95b9['startsWith']('__')&&delete _0x4e112b[_0x2d95b9];});}),_0x4e28b5;}};
@@ -1 +1 @@
1
- const a0_0x1b5dd=a0_0x3c31;function a0_0x4886(){const _0x4e6909=['286BsaKee','305723lgCSzm','getButtonContainer','175040GHcMFJ','customButtonHandler','5052sIejVX','getBasicButtonHandler','gristButtonHandler','161091mLQKVI','310667RojAfi','4902495fSehSq','buttonConfig','65377TBcRcP','useButtonImport','getCustomButtonContainerStyle','174KEtdyG','parseBasicButtonConfigs','add','1109799IoeAHi','useButtonExport','isButtonExist','properties','getCustomButtonContainerStyles','8KOwMUq','useButtonAdd','6msaIlO','456RgUbZn','export'];a0_0x4886=function(){return _0x4e6909;};return a0_0x4886();}(function(_0x41a695,_0x20a930){const _0x1226b4=a0_0x3c31,_0x39cf95=_0x41a695();while(!![]){try{const _0x9ea89d=parseInt(_0x1226b4(0x74))/0x1*(parseInt(_0x1226b4(0x70))/0x2)+-parseInt(_0x1226b4(0x69))/0x3*(parseInt(_0x1226b4(0x6e))/0x4)+parseInt(_0x1226b4(0x7d))/0x5+-parseInt(_0x1226b4(0x82))/0x6*(-parseInt(_0x1226b4(0x7c))/0x7)+parseInt(_0x1226b4(0x71))/0x8*(parseInt(_0x1226b4(0x7b))/0x9)+-parseInt(_0x1226b4(0x76))/0xa*(parseInt(_0x1226b4(0x73))/0xb)+parseInt(_0x1226b4(0x78))/0xc*(-parseInt(_0x1226b4(0x7f))/0xd);if(_0x9ea89d===_0x20a930)break;else _0x39cf95['push'](_0x39cf95['shift']());}catch(_0x322ef9){_0x39cf95['push'](_0x39cf95['shift']());}}}(a0_0x4886,0xd9f6d));import{html}from'lit';function a0_0x3c31(_0x16a784,_0x3f1ee2){const _0x488675=a0_0x4886();return a0_0x3c31=function(_0x3c3118,_0x4938a9){_0x3c3118=_0x3c3118-0x68;let _0x4d0db6=_0x488675[_0x3c3118];return _0x4d0db6;},a0_0x3c31(_0x16a784,_0x3f1ee2);}import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x2c123a=>class extends MetaServiceMixin(_0x2c123a){static get[a0_0x1b5dd(0x6c)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x1b5dd(0x81)](){const _0x154948=a0_0x1b5dd;return MetaUiUtil[_0x154948(0x6d)]();}['getContextButtons'](){return MetaUiUtil['getContextButtons'](this);}[a0_0x1b5dd(0x75)](){const _0x253fa8=a0_0x1b5dd;return this['isPage']?html``:MetaUiUtil[_0x253fa8(0x75)](this);}async[a0_0x1b5dd(0x79)](_0x580f35,_0x2f2eca,_0x5f0625){return await MetaUiUtil['getButtonActionHandler'](this,_0x580f35,_0x2f2eca,_0x5f0625);}async[a0_0x1b5dd(0x77)](_0x4f7f10){const _0x271b7f=a0_0x1b5dd;await MetaUiUtil[_0x271b7f(0x77)](this,_0x4f7f10);}async[a0_0x1b5dd(0x7a)](_0x3c0f21,_0x5830aa){const _0x51f845=a0_0x1b5dd;await MetaUiUtil[_0x51f845(0x7a)](this,_0x3c0f21,_0x5830aa);}[a0_0x1b5dd(0x83)](_0xdde3e3){const _0xa3ba0d=a0_0x1b5dd;this[_0xa3ba0d(0x7e)]=_0xdde3e3['button'],this[_0xa3ba0d(0x80)]=MetaUiUtil[_0xa3ba0d(0x6b)](this['buttonConfig'],'import'),this[_0xa3ba0d(0x6a)]=MetaUiUtil[_0xa3ba0d(0x6b)](this[_0xa3ba0d(0x7e)],_0xa3ba0d(0x72)),this[_0xa3ba0d(0x6f)]=MetaUiUtil[_0xa3ba0d(0x6b)](this[_0xa3ba0d(0x7e)],_0xa3ba0d(0x68));}};
1
+ function a0_0x33f3(_0x5b8ffa,_0x532290){const _0x44b183=a0_0x44b1();return a0_0x33f3=function(_0x33f370,_0xf95445){_0x33f370=_0x33f370-0xf0;let _0x1efc8b=_0x44b183[_0x33f370];return _0x1efc8b;},a0_0x33f3(_0x5b8ffa,_0x532290);}function a0_0x44b1(){const _0x28dad1=['getCustomButtonContainerStyle','customButtonHandler','getContextButtons','getButtonActionHandler','button','2718BFSgib','3357936TOGuuz','useButtonExport','7bQemIE','gristButtonHandler','8854328bryquH','export','76292hoKIZC','properties','2218226xdFLGB','useButtonAdd','310jNulbd','import','buttonConfig','isButtonExist','414604eIGGbW','parseBasicButtonConfigs','141490rDeUQg','getButtonContainer','4698867UaWZHm'];a0_0x44b1=function(){return _0x28dad1;};return a0_0x44b1();}const a0_0x33931=a0_0x33f3;(function(_0x51051b,_0x437417){const _0x27ec80=a0_0x33f3,_0x1b9647=_0x51051b();while(!![]){try{const _0x408ae6=-parseInt(_0x27ec80(0xf0))/0x1+parseInt(_0x27ec80(0x103))/0x2+parseInt(_0x27ec80(0xf4))/0x3+parseInt(_0x27ec80(0x101))/0x4*(parseInt(_0x27ec80(0x105))/0x5)+parseInt(_0x27ec80(0xfb))/0x6+-parseInt(_0x27ec80(0xfd))/0x7*(-parseInt(_0x27ec80(0xff))/0x8)+parseInt(_0x27ec80(0xfa))/0x9*(-parseInt(_0x27ec80(0xf2))/0xa);if(_0x408ae6===_0x437417)break;else _0x1b9647['push'](_0x1b9647['shift']());}catch(_0x44bb3f){_0x1b9647['push'](_0x1b9647['shift']());}}}(a0_0x44b1,0xcc4a5));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x236315=>class extends MetaServiceMixin(_0x236315){static get[a0_0x33931(0x102)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x33931(0xf5)](){return MetaUiUtil['getCustomButtonContainerStyles']();}['getContextButtons'](){const _0x2716fc=a0_0x33931;return MetaUiUtil[_0x2716fc(0xf7)](this);}[a0_0x33931(0xf3)](){return this['isPage']?html``:MetaUiUtil['getButtonContainer'](this);}async['getBasicButtonHandler'](_0x41ea8d,_0x5089a0,_0x4baf0a){const _0x8e25ca=a0_0x33931;return await MetaUiUtil[_0x8e25ca(0xf8)](this,_0x41ea8d,_0x5089a0,_0x4baf0a);}async[a0_0x33931(0xf6)](_0x1ca149){const _0x4db253=a0_0x33931;await MetaUiUtil[_0x4db253(0xf6)](this,_0x1ca149);}async[a0_0x33931(0xfe)](_0x9c9395,_0x4c141a){const _0x406a0d=a0_0x33931;await MetaUiUtil[_0x406a0d(0xfe)](this,_0x9c9395,_0x4c141a);}[a0_0x33931(0xf1)](_0x5b73f6){const _0x3feeaa=a0_0x33931;this[_0x3feeaa(0x107)]=_0x5b73f6[_0x3feeaa(0xf9)],this['useButtonImport']=MetaUiUtil['isButtonExist'](this[_0x3feeaa(0x107)],_0x3feeaa(0x106)),this[_0x3feeaa(0xfc)]=MetaUiUtil['isButtonExist'](this[_0x3feeaa(0x107)],_0x3feeaa(0x100)),this[_0x3feeaa(0x104)]=MetaUiUtil[_0x3feeaa(0x108)](this[_0x3feeaa(0x107)],'add');}};
@@ -1 +1 @@
1
- const a0_0x598c3f=a0_0x2c73;function a0_0x2c73(_0x4cd26b,_0x598760){const _0x290f16=a0_0x290f();return a0_0x2c73=function(_0x2c7378,_0x12c076){_0x2c7378=_0x2c7378-0xbf;let _0x5ec4b7=_0x290f16[_0x2c7378];return _0x5ec4b7;},a0_0x2c73(_0x4cd26b,_0x598760);}(function(_0x585ede,_0x539c1f){const _0x4e0639=a0_0x2c73,_0xa793d4=_0x585ede();while(!![]){try{const _0x19d076=parseInt(_0x4e0639(0xf0))/0x1*(parseInt(_0x4e0639(0xff))/0x2)+-parseInt(_0x4e0639(0xdb))/0x3*(parseInt(_0x4e0639(0xf6))/0x4)+-parseInt(_0x4e0639(0xd2))/0x5*(-parseInt(_0x4e0639(0xfb))/0x6)+-parseInt(_0x4e0639(0xee))/0x7+-parseInt(_0x4e0639(0x111))/0x8*(parseInt(_0x4e0639(0xc8))/0x9)+parseInt(_0x4e0639(0xd8))/0xa+-parseInt(_0x4e0639(0x109))/0xb*(-parseInt(_0x4e0639(0xe2))/0xc);if(_0x19d076===_0x539c1f)break;else _0xa793d4['push'](_0xa793d4['shift']());}catch(_0xc53b65){_0xa793d4['push'](_0xa793d4['shift']());}}}(a0_0x290f,0xb9d2d));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{UiUtil}from'../utils/ui-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x290f(){const _0x308df2=['isPage','validation','983184WZZmzS','is_activity','mandatory','form-field-change','2kGZWtE','isNotEmpty','formConfigSet','click','renderRoot','orgData','save','currentTarget','parseBasicFormConfigs','getAndParseMenuMeta','275ihvxXn','firstUpdated','name','pageInitialized','parseFormConfigSet','addEventListener','findOne','startsWith','967088wFlUpT','isEmpty','removeGarbageData','editing','Esc','__dirty__','fetch','clear','detail','keydown','activity','__dirtyfields__','entries','true','text.NOTHING_CHANGED','form','tText','forEach','81zeKVlp','target','currentData','context','text.check-mandatory','showAlertPopup','Escape','button','dispatchEvent','dirtyData','35hiLvKI','column','map','record','header','confirm','105920NFreXO','parent_id','field-change','862713HinHSl','cuFlag','key','tLabel','title.info','patchData','connectedCallback','945912oQDmBW','removeAttribute','formColumnConfig','formRenderConfig','info','assign','focus','tagName','isElement','updateMultiple','grid_column','properties','1405026NsqsSZ','object','71819UyPJaa','dataSet','call','parseFormConfigs','isEquals','activityDataSet','16oHOlBn','__origin__','filter'];a0_0x290f=function(){return _0x308df2;};return a0_0x290f();}export const MetaFormMixin=_0x29da70=>class extends MetaButtonMixin(_0x29da70){static get['styles'](){return MetaApi['getBasicFormStyles']();}static get[a0_0x598c3f(0xed)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x598c3f(0xcb)](){return MetaUiUtil['getContextObject'](this);}async[a0_0x598c3f(0xe1)](){const _0x12a774=a0_0x598c3f;await this[_0x12a774(0x108)](),this[_0x12a774(0xea)]&&await this[_0x12a774(0xf3)](),this[_0x12a774(0xf5)]&&(this[_0x12a774(0xf1)]=this[_0x12a774(0xf5)]),!0x0!==this[_0x12a774(0xfc)]||this[_0x12a774(0xd9)]||(this[_0x12a774(0xd9)]=_0x12a774(0xc0)),super[_0x12a774(0xe1)]&&await super[_0x12a774(0xe1)](),this[_0x12a774(0xea)]&&await this['fetch'](),this['renderRoot'][_0x12a774(0x10e)](_0x12a774(0xbf),_0x2eb0f5=>{const _0x5a8977=_0x12a774;switch(_0x2eb0f5[_0x5a8977(0xdd)]){case _0x5a8977(0x115):case _0x5a8977(0xce):case'Enter':this[_0x5a8977(0xe8)](),this[_0x5a8977(0x106)]&&this[_0x5a8977(0x106)][_0x5a8977(0xe3)]('editing'),this[_0x5a8977(0x106)]=null;}}),this[_0x12a774(0x103)][_0x12a774(0x10e)](_0x12a774(0x102),_0xebaf89=>{const _0x24bd49=_0x12a774;_0xebaf89['stopPropagation']();let _0x3d773b=_0xebaf89[_0x24bd49(0xc9)];if(this[_0x24bd49(0x106)]&&(this['focus'](),this[_0x24bd49(0x106)]['removeAttribute'](_0x24bd49(0x114))),'OX-GRID-FIELD'!==_0x3d773b[_0x24bd49(0xe9)]||!_0x3d773b[_0x24bd49(0xd3)]['record']['editable'])return this['focus'](),void(this[_0x24bd49(0x106)]=null);this[_0x24bd49(0x106)]=_0x3d773b,_0x3d773b['setAttribute'](_0x24bd49(0x114),_0x24bd49(0xc3));}),this['addEventListener'](_0x12a774(0xda),_0x439178=>{const _0x3929e1=_0x12a774;var {after:_0x428260,before:_0x4b9294,column:_0x3ecb9c,record:_0x10c81c,row:_0x23ca8b}=_0x439178[_0x3929e1(0x119)];if(ValueUtil[_0x3929e1(0xf4)](_0x428260,_0x4b9294))return;var _0x6712d2=_0x3ecb9c[_0x3929e1(0xfa)];if(_0x6712d2&&'function'==typeof _0x6712d2&&!_0x6712d2[_0x3929e1(0xf2)](this,_0x428260,_0x4b9294,_0x10c81c,_0x3ecb9c))return;let _0x32f0c7=_0x3ecb9c[_0x3929e1(0x10b)];_0x10c81c[_0x32f0c7]=_0x428260,_0x10c81c[_0x3929e1(0xc1)]=_0x10c81c['__dirtyfields__']||{},_0x10c81c[_0x3929e1(0xf7)]=_0x10c81c[_0x3929e1(0xf7)]||{},_0x10c81c[_0x3929e1(0xc1)][_0x32f0c7]={'before':_0x10c81c[_0x3929e1(0xf7)][_0x32f0c7],'after':_0x10c81c[_0x32f0c7]},ValueUtil[_0x3929e1(0xf4)](_0x10c81c[_0x3929e1(0xc1)][_0x32f0c7]['before'],_0x10c81c[_0x3929e1(0xc1)][_0x32f0c7]['after'])&&delete _0x10c81c[_0x3929e1(0xc1)][_0x32f0c7],ValueUtil[_0x3929e1(0x100)](_0x10c81c[_0x3929e1(0xc1)])?_0x10c81c['__dirty__']='M':_0x10c81c[_0x3929e1(0x116)]='',this[_0x3929e1(0xd5)]={..._0x10c81c},this[_0x3929e1(0xd0)](new CustomEvent(_0x3929e1(0xfe),{'bubbles':!0x0,'composed':!0x0,'detail':_0x439178[_0x3929e1(0x119)]}));});}async[a0_0x598c3f(0x10a)](){const _0x3c1988=a0_0x598c3f;super[_0x3c1988(0x10a)]&&await super[_0x3c1988(0x10a)]();}async[a0_0x598c3f(0x10c)](){const _0x452035=a0_0x598c3f;this['isPage']&&await this['parseFormConfigs'](),super['pageInitialized']&&await super[_0x452035(0x10c)](),this[_0x452035(0xf9)]&&await this[_0x452035(0x117)]();}['render'](){return MetaApi['getBasicFormHtml'](this);}[a0_0x598c3f(0x107)](_0x5f3aaa){const _0x67e285=a0_0x598c3f;this[_0x67e285(0xe4)]=_0x5f3aaa[_0x67e285(0xec)],this[_0x67e285(0xe5)]=_0x5f3aaa[_0x67e285(0xc5)],_0x5f3aaa[_0x67e285(0xcf)]=_0x5f3aaa[_0x67e285(0xcf)]['filter'](_0x1acba9=>_0x67e285(0x105)==_0x1acba9['name']);}async[a0_0x598c3f(0xf3)](){const _0x5cddd2=a0_0x598c3f;this[_0x5cddd2(0x101)]=await MetaApi[_0x5cddd2(0x10d)](this);}get[a0_0x598c3f(0x104)](){const _0x2ef924=a0_0x598c3f;return this[_0x2ef924(0x113)](this[_0x2ef924(0xd5)]['__origin__']);}get[a0_0x598c3f(0xd1)](){const _0x32ccda=a0_0x598c3f;if(ValueUtil[_0x32ccda(0x112)]((this[_0x32ccda(0xd5)]||{})[_0x32ccda(0xc1)]))return{};let _0x5707be={};return Object['entries'](this['record'][_0x32ccda(0xc1)])['map'](([_0xd8fac,_0x1ec77a])=>{const _0x35e197=_0x32ccda;0x0==_0xd8fac[_0x35e197(0x110)]('__')&&(_0x5707be[_0xd8fac]=_0x1ec77a['after']);}),_0x5707be;}get[a0_0x598c3f(0xca)](){const _0x77afff=a0_0x598c3f;return this[_0x77afff(0x113)](this['record']);}[a0_0x598c3f(0x113)](_0x2e281a){const _0x15ef5d=a0_0x598c3f;let _0x5e2a61={};if(_0x2e281a)return Object[_0x15ef5d(0xc2)](_0x2e281a)[_0x15ef5d(0xd4)](([_0x21c855,_0x5e7edc])=>{const _0x44816f=_0x15ef5d;0x0==_0x21c855[_0x44816f(0x110)]('__')&&(_0x5e2a61[_0x21c855]=_0x5e7edc);}),_0x5e2a61;}get[a0_0x598c3f(0xe0)](){const _0x398a85=a0_0x598c3f;let _0x5c93e8=this[_0x398a85(0xd1)],_0x598589=this[_0x398a85(0xd5)],_0x48cfcc=(this['formColumnConfig']||[])[_0x398a85(0xf8)](_0x455c07=>'code-input'===_0x455c07['type'])[_0x398a85(0xd4)](_0x43d24f=>_0x43d24f[_0x398a85(0x10b)]);if(!ValueUtil[_0x398a85(0x112)](_0x5c93e8))return ValueUtil['isNotEmpty'](_0x598589['id'])?(_0x5c93e8['id']=_0x598589['id'],_0x5c93e8['cuFlag']='M'):_0x5c93e8[_0x398a85(0xdc)]='+',Object['keys'](_0x5c93e8)[_0x398a85(0xc7)](_0x15a986=>{const _0x5932b2=_0x398a85;_0x5932b2(0xef)==typeof _0x5c93e8[_0x15a986]&&0x0==_0x48cfcc['includes'](_0x15a986)&&(_0x5c93e8[_0x15a986]={'id':_0x5c93e8[_0x15a986]['id']});}),[_0x5c93e8];}async[a0_0x598c3f(0x117)](){const _0x3af663=a0_0x598c3f;if(ValueUtil['isEmpty'](this['parent_id']))return;let _0x24c33a=await this[_0x3af663(0x10f)](this[_0x3af663(0xd9)]);_0x24c33a['__seq__']=0x1;let _0x2c6d92={};Object[_0x3af663(0xe7)](_0x2c6d92,_0x24c33a),_0x24c33a[_0x3af663(0xf7)]=_0x2c6d92,this[_0x3af663(0xd5)]={..._0x24c33a};}async[a0_0x598c3f(0x105)](){const _0xb3e136=a0_0x598c3f;let _0x1836bc=this[_0xb3e136(0xe0)];if(ValueUtil[_0xb3e136(0x112)](_0x1836bc))return void MetaApi['showAlertPopup'](_0xb3e136(0xdf),_0xb3e136(0xc4));let _0x17f660={};(this[_0xb3e136(0xe4)]||[])[_0xb3e136(0xf8)](_0x180dfa=>!0x0===_0x180dfa[_0xb3e136(0xfd)])['forEach'](_0x1f555b=>{const _0x4e955e=_0xb3e136;_0x17f660[_0x1f555b[_0x4e955e(0x10b)]]=_0x1f555b[_0x4e955e(0xd6)];});let _0x32be81=this[_0xb3e136(0xca)];for(let _0x574230 in _0x17f660)if(!_0x32be81[_0x574230])return void UiUtil[_0xb3e136(0xcd)](_0xb3e136(0xcc),TermsUtil[_0xb3e136(0xc6)]('check-mandatory-field',{'x':TermsUtil[_0xb3e136(0xde)](_0x17f660[_0x574230])}),_0xb3e136(0xe6),_0xb3e136(0xd7));let _0x46c793=await this[_0xb3e136(0xeb)](_0x1836bc);return _0x46c793&&await this[_0xb3e136(0x117)](),_0x46c793;}async[a0_0x598c3f(0x118)](){const _0x441624=a0_0x598c3f;this[_0x441624(0xd5)]&&(this[_0x441624(0xd5)]={});}['getData'](){return this['currentData']||{};}};
1
+ const a0_0x1ef3b8=a0_0x2465;(function(_0x10d6d1,_0x352ba1){const _0x580331=a0_0x2465,_0x45cdf9=_0x10d6d1();while(!![]){try{const _0x531501=-parseInt(_0x580331(0x1e2))/0x1+-parseInt(_0x580331(0x1eb))/0x2*(-parseInt(_0x580331(0x1ea))/0x3)+-parseInt(_0x580331(0x1d5))/0x4+-parseInt(_0x580331(0x1bd))/0x5*(-parseInt(_0x580331(0x1f2))/0x6)+-parseInt(_0x580331(0x1c4))/0x7*(-parseInt(_0x580331(0x211))/0x8)+parseInt(_0x580331(0x1f5))/0x9+-parseInt(_0x580331(0x216))/0xa;if(_0x531501===_0x352ba1)break;else _0x45cdf9['push'](_0x45cdf9['shift']());}catch(_0x3a10bf){_0x45cdf9['push'](_0x45cdf9['shift']());}}}(a0_0x3235,0x9caca));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x2465(_0x5d3b7a,_0x222dc4){const _0x32359=a0_0x3235();return a0_0x2465=function(_0x2465c1,_0x13cb0f){_0x2465c1=_0x2465c1-0x1bd;let _0x351386=_0x32359[_0x2465c1];return _0x351386;},a0_0x2465(_0x5d3b7a,_0x222dc4);}import{UiUtil}from'../utils/ui-util';import{TermsUtil}from'../utils/terms-util';function a0_0x3235(){const _0x2fed0f=['editable','isNotEmpty','49nlcpZK','editing','formRenderConfig','text.NOTHING_CHANGED','save','isPage','properties','patchData','assign','activity','isEmpty','column','button','connectedCallback','currentData','orgData','dataSet','2789892qQqvMk','isEquals','getAndParseMenuMeta','Esc','render','activityDataSet','form-field-change','removeGarbageData','header','validation','addEventListener','findOne','__origin__','488327WRyQto','focus','__dirty__','field-change','keydown','entries','info','filter','15DBDAKq','495002XhOfUM','keys','parseBasicFormConfigs','tagName','code-input','form','firstUpdated','3004026AjHxUF','getBasicFormStyles','cuFlag','9478017HCYphz','removeAttribute','record','detail','formColumnConfig','styles','tText','stopPropagation','getContextObject','true','isElement','OX-GRID-FIELD','grid_column','includes','getBasicFormHtml','pageInitialized','dirtyData','getData','renderRoot','forEach','dispatchEvent','updateMultiple','is_activity','__seq__','tLabel','map','fetch','currentTarget','1260776nBjNEQ','parent_id','parseFormConfigs','__dirtyfields__','target','20669300ykvfTA','function','5qBRqmO','confirm','name','showAlertPopup','after'];a0_0x3235=function(){return _0x2fed0f;};return a0_0x3235();}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x55c201=>class extends MetaButtonMixin(_0x55c201){static get[a0_0x1ef3b8(0x1fa)](){const _0x9887f3=a0_0x1ef3b8;return MetaApi[_0x9887f3(0x1f3)]();}static get[a0_0x1ef3b8(0x1ca)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get['context'](){const _0x25b735=a0_0x1ef3b8;return MetaUiUtil[_0x25b735(0x1fd)](this);}async[a0_0x1ef3b8(0x1d1)](){const _0x9f8474=a0_0x1ef3b8;await this[_0x9f8474(0x1d7)](),this['isElement']&&await this[_0x9f8474(0x213)](),this[_0x9f8474(0x1da)]&&(this[_0x9f8474(0x1d4)]=this[_0x9f8474(0x1da)]),!0x0!==this[_0x9f8474(0x20b)]||this[_0x9f8474(0x212)]||(this[_0x9f8474(0x212)]=_0x9f8474(0x1cd)),super[_0x9f8474(0x1d1)]&&await super[_0x9f8474(0x1d1)](),this[_0x9f8474(0x1ff)]&&await this[_0x9f8474(0x20f)](),this[_0x9f8474(0x207)][_0x9f8474(0x1df)](_0x9f8474(0x1e6),_0xb02207=>{const _0x20c7d6=_0x9f8474;switch(_0xb02207['key']){case _0x20c7d6(0x1d8):case'Escape':case'Enter':this['focus'](),this[_0x20c7d6(0x210)]&&this[_0x20c7d6(0x210)]['removeAttribute'](_0x20c7d6(0x1c5)),this[_0x20c7d6(0x210)]=null;}}),this[_0x9f8474(0x207)][_0x9f8474(0x1df)]('click',_0x49e50e=>{const _0xd2c9c3=_0x9f8474;_0x49e50e[_0xd2c9c3(0x1fc)]();let _0x3cc85b=_0x49e50e[_0xd2c9c3(0x215)];if(this[_0xd2c9c3(0x210)]&&(this[_0xd2c9c3(0x1e3)](),this[_0xd2c9c3(0x210)][_0xd2c9c3(0x1f6)]('editing')),_0xd2c9c3(0x200)!==_0x3cc85b[_0xd2c9c3(0x1ee)]||!_0x3cc85b[_0xd2c9c3(0x1cf)][_0xd2c9c3(0x1f7)][_0xd2c9c3(0x1c2)])return this[_0xd2c9c3(0x1e3)](),void(this[_0xd2c9c3(0x210)]=null);this[_0xd2c9c3(0x210)]=_0x3cc85b,_0x3cc85b['setAttribute'](_0xd2c9c3(0x1c5),_0xd2c9c3(0x1fe));}),this['addEventListener'](_0x9f8474(0x1e5),_0x213069=>{const _0x519937=_0x9f8474;var {after:_0x47c767,before:_0x3fcdf8,column:_0xc4c86,record:_0x160dd3,row:_0x4e1759}=_0x213069[_0x519937(0x1f8)];if(ValueUtil[_0x519937(0x1d6)](_0x47c767,_0x3fcdf8))return;var _0x42a0be=_0xc4c86[_0x519937(0x1de)];if(_0x42a0be&&_0x519937(0x217)==typeof _0x42a0be&&!_0x42a0be['call'](this,_0x47c767,_0x3fcdf8,_0x160dd3,_0xc4c86))return;let _0x382366=_0xc4c86[_0x519937(0x1bf)];_0x160dd3[_0x382366]=_0x47c767,_0x160dd3['__dirtyfields__']=_0x160dd3[_0x519937(0x214)]||{},_0x160dd3[_0x519937(0x1e1)]=_0x160dd3['__origin__']||{},_0x160dd3[_0x519937(0x214)][_0x382366]={'before':_0x160dd3['__origin__'][_0x382366],'after':_0x160dd3[_0x382366]},ValueUtil['isEquals'](_0x160dd3[_0x519937(0x214)][_0x382366]['before'],_0x160dd3[_0x519937(0x214)][_0x382366][_0x519937(0x1c1)])&&delete _0x160dd3[_0x519937(0x214)][_0x382366],ValueUtil[_0x519937(0x1c3)](_0x160dd3['__dirtyfields__'])?_0x160dd3['__dirty__']='M':_0x160dd3[_0x519937(0x1e4)]='',this[_0x519937(0x1f7)]={..._0x160dd3},this[_0x519937(0x209)](new CustomEvent(_0x519937(0x1db),{'bubbles':!0x0,'composed':!0x0,'detail':_0x213069[_0x519937(0x1f8)]}));});}async[a0_0x1ef3b8(0x1f1)](){const _0x6d889c=a0_0x1ef3b8;super[_0x6d889c(0x1f1)]&&await super[_0x6d889c(0x1f1)]();}async[a0_0x1ef3b8(0x204)](){const _0x31bef3=a0_0x1ef3b8;this['isPage']&&await this['parseFormConfigs'](),super[_0x31bef3(0x204)]&&await super[_0x31bef3(0x204)](),this[_0x31bef3(0x1c9)]&&await this[_0x31bef3(0x20f)]();}[a0_0x1ef3b8(0x1d9)](){const _0x1424da=a0_0x1ef3b8;return MetaApi[_0x1424da(0x203)](this);}[a0_0x1ef3b8(0x1ed)](_0x16ce86){const _0x4d4dfc=a0_0x1ef3b8;this[_0x4d4dfc(0x1f9)]=_0x16ce86[_0x4d4dfc(0x201)],this[_0x4d4dfc(0x1c6)]=_0x16ce86[_0x4d4dfc(0x1f0)],_0x16ce86[_0x4d4dfc(0x1d0)]=_0x16ce86[_0x4d4dfc(0x1d0)][_0x4d4dfc(0x1e9)](_0x377c77=>_0x4d4dfc(0x1c8)==_0x377c77[_0x4d4dfc(0x1bf)]);}async[a0_0x1ef3b8(0x213)](){this['formConfigSet']=await MetaApi['parseFormConfigSet'](this);}get[a0_0x1ef3b8(0x1d3)](){const _0xee76a2=a0_0x1ef3b8;return this['removeGarbageData'](this['record'][_0xee76a2(0x1e1)]);}get[a0_0x1ef3b8(0x205)](){const _0x443680=a0_0x1ef3b8;if(ValueUtil[_0x443680(0x1ce)]((this[_0x443680(0x1f7)]||{})[_0x443680(0x214)]))return{};let _0x50aae6={};return Object['entries'](this[_0x443680(0x1f7)]['__dirtyfields__'])['map'](([_0x521189,_0x43cd48])=>{0x0==_0x521189['startsWith']('__')&&(_0x50aae6[_0x521189]=_0x43cd48['after']);}),_0x50aae6;}get[a0_0x1ef3b8(0x1d2)](){const _0x2faaea=a0_0x1ef3b8;return this[_0x2faaea(0x1dc)](this['record']);}[a0_0x1ef3b8(0x1dc)](_0x261047){const _0x1fc4a5=a0_0x1ef3b8;let _0x13d7fb={};if(_0x261047)return Object[_0x1fc4a5(0x1e7)](_0x261047)[_0x1fc4a5(0x20e)](([_0x3fe0a8,_0x484393])=>{0x0==_0x3fe0a8['startsWith']('__')&&(_0x13d7fb[_0x3fe0a8]=_0x484393);}),_0x13d7fb;}get['patchData'](){const _0x1184fb=a0_0x1ef3b8;let _0x536720=this[_0x1184fb(0x205)],_0x512fdc=this['record'],_0x4deca3=(this['formColumnConfig']||[])[_0x1184fb(0x1e9)](_0x778378=>_0x1184fb(0x1ef)===_0x778378['type'])[_0x1184fb(0x20e)](_0x58d2c7=>_0x58d2c7['name']);if(!ValueUtil[_0x1184fb(0x1ce)](_0x536720))return ValueUtil[_0x1184fb(0x1c3)](_0x512fdc['id'])?(_0x536720['id']=_0x512fdc['id'],_0x536720[_0x1184fb(0x1f4)]='M'):_0x536720[_0x1184fb(0x1f4)]='+',Object[_0x1184fb(0x1ec)](_0x536720)[_0x1184fb(0x208)](_0x4dcba0=>{const _0x312c20=_0x1184fb;'object'==typeof _0x536720[_0x4dcba0]&&0x0==_0x4deca3[_0x312c20(0x202)](_0x4dcba0)&&(_0x536720[_0x4dcba0]={'id':_0x536720[_0x4dcba0]['id']});}),[_0x536720];}async[a0_0x1ef3b8(0x20f)](){const _0x11760d=a0_0x1ef3b8;if(ValueUtil['isEmpty'](this[_0x11760d(0x212)]))return;let _0x168b8b=await this[_0x11760d(0x1e0)](this[_0x11760d(0x212)]);_0x168b8b[_0x11760d(0x20c)]=0x1;let _0x593e19={};Object[_0x11760d(0x1cc)](_0x593e19,_0x168b8b),_0x168b8b[_0x11760d(0x1e1)]=_0x593e19,this[_0x11760d(0x1f7)]={..._0x168b8b};}async[a0_0x1ef3b8(0x1c8)](){const _0x546c60=a0_0x1ef3b8;let _0x52ff7a=this[_0x546c60(0x1cb)];if(ValueUtil['isEmpty'](_0x52ff7a))return void MetaApi[_0x546c60(0x1c0)]('title.info',_0x546c60(0x1c7));let _0x509ec0={};(this['formColumnConfig']||[])[_0x546c60(0x1e9)](_0x5dd5b3=>!0x0===_0x5dd5b3['mandatory'])[_0x546c60(0x208)](_0x2ef38b=>{const _0x4ebe1a=_0x546c60;_0x509ec0[_0x2ef38b[_0x4ebe1a(0x1bf)]]=_0x2ef38b[_0x4ebe1a(0x1dd)];});let _0x45de7a=this[_0x546c60(0x1d2)];for(let _0xa2cbd7 in _0x509ec0)if(void 0x0===_0x45de7a[_0xa2cbd7]||''==_0x45de7a[_0xa2cbd7])return void UiUtil[_0x546c60(0x1c0)]('text.check-mandatory',TermsUtil[_0x546c60(0x1fb)]('check-mandatory-field',{'x':TermsUtil[_0x546c60(0x20d)](_0x509ec0[_0xa2cbd7])}),_0x546c60(0x1e8),_0x546c60(0x1be));let _0x1bb33d=await this[_0x546c60(0x20a)](_0x52ff7a);return _0x1bb33d&&await this[_0x546c60(0x20f)](),_0x1bb33d;}async['clear'](){const _0x1f0f11=a0_0x1ef3b8;this[_0x1f0f11(0x1f7)]&&(this[_0x1f0f11(0x1f7)]={});}[a0_0x1ef3b8(0x206)](){return this['currentData']||{};}};
@@ -1 +1 @@
1
- const a0_0x233815=a0_0x1eac;(function(_0x1a8f9a,_0x5ac4f5){const _0x1edffd=a0_0x1eac,_0x5bf74b=_0x1a8f9a();while(!![]){try{const _0x16c981=parseInt(_0x1edffd(0x19d))/0x1+-parseInt(_0x1edffd(0x1ab))/0x2*(-parseInt(_0x1edffd(0x1d6))/0x3)+-parseInt(_0x1edffd(0x1a7))/0x4*(parseInt(_0x1edffd(0x19e))/0x5)+parseInt(_0x1edffd(0x1d2))/0x6+-parseInt(_0x1edffd(0x1b2))/0x7+parseInt(_0x1edffd(0x1a1))/0x8+parseInt(_0x1edffd(0x1d0))/0x9;if(_0x16c981===_0x5ac4f5)break;else _0x5bf74b['push'](_0x5bf74b['shift']());}catch(_0x3ebf86){_0x5bf74b['push'](_0x5bf74b['shift']());}}}(a0_0x137a,0x8a85b));function a0_0x1eac(_0x43621b,_0x547163){const _0x137afa=a0_0x137a();return a0_0x1eac=function(_0x1eac2f,_0x2c2fa1){_0x1eac2f=_0x1eac2f-0x18f;let _0x377714=_0x137afa[_0x1eac2f];return _0x377714;},a0_0x1eac(_0x43621b,_0x547163);}function a0_0x137a(){const _0x21f520=['record','export','querySelector','updateMultiple','isElement','dataSet','searchFields','activityDataSet','grid','tTitle','firstUpdated','pageInitialized','keys','useFilterForm','type','getSelectedIdList','filterForm','4863384DrDiiX','context','2606358FZDjEo','find','map','stringify','19701nrbLky','ox-grist','isPage','gridColumnConfig','columns','search','exportableData','fetch','parseGridConfigSet','styles','useMasterFilterForm','properties','actions','searchConfig','grist','patchesForUpdateMultiple','223587SBBZYT','4813730gQPUOR','searchFieldValues','records','3991680XWcALZ','forEach','startsWith','parse','gristId','findOne','4gTukis','connectedCallback','options','header','98yCRpUr','importable','name','getData','filter','import','gridEmphasized','3422762KqEcAt','menuInfo','render','save','parseGristConfigs','filterFormId','shadowRoot','renderRoot','gristConfigSet','operator','delete','exportable','clear'];a0_0x137a=function(){return _0x21f520;};return a0_0x137a();}import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x5312f9=>class extends MetaButtonMixin(_0x5312f9){static get[a0_0x233815(0x196)](){return MetaApi['getBasicGristTabStyles']();}static get[a0_0x233815(0x198)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get['grist'](){const _0xb060a=a0_0x233815;return this[_0xb060a(0x1b9)][_0xb060a(0x1c1)](this[_0xb060a(0x1a5)]);}get[a0_0x233815(0x1cf)](){const _0x3a3a75=a0_0x233815;return this[_0x3a3a75(0x1b8)]?.[_0x3a3a75(0x1c1)](this[_0x3a3a75(0x1b7)]);}get['detailElement'](){const _0x5c76f5=a0_0x233815;return this[_0x5c76f5(0x1b8)]['querySelector']('#detail');}get[a0_0x233815(0x1d1)](){const _0xd52634=a0_0x233815;let _0x27d8f0=MetaUiUtil['getContextObject'](this);return _0x27d8f0[_0xd52634(0x199)]&&delete _0x27d8f0[_0xd52634(0x199)],_0x27d8f0[_0xd52634(0x1bd)]&&delete _0x27d8f0[_0xd52634(0x1bd)],_0x27d8f0[_0xd52634(0x1ac)]&&delete _0x27d8f0[_0xd52634(0x1ac)],_0x27d8f0;}async[a0_0x233815(0x1a8)](){const _0x5dc591=a0_0x233815;this[_0x5dc591(0x1a5)]=_0x5dc591(0x1d7),this[_0x5dc591(0x1b7)]='ox-filters-form-base',await this['getAndParseMenuMeta'](),this[_0x5dc591(0x1c3)]&&await this[_0x5dc591(0x1b6)](),this[_0x5dc591(0x1c6)]&&(this[_0x5dc591(0x1c4)]=(this[_0x5dc591(0x1c6)]||{})['main']),super[_0x5dc591(0x1a8)]&&await super[_0x5dc591(0x1a8)]();}async['firstUpdated'](){const _0x594ce3=a0_0x233815;super[_0x594ce3(0x1c9)]&&await super[_0x594ce3(0x1c9)]();}async['pageInitialized'](){const _0x4c2eb2=a0_0x233815;this[_0x4c2eb2(0x18f)]&&await this[_0x4c2eb2(0x1b6)](),super[_0x4c2eb2(0x1ca)]&&await super[_0x4c2eb2(0x1ca)]();}[a0_0x233815(0x1b4)](){return MetaApi['getGristTabHtml'](this);}['parseBasicGridConfigs'](_0x1aa4c5){const _0x5609f1=a0_0x233815;this['gridConfig']=_0x1aa4c5[_0x5609f1(0x1c7)],this[_0x5609f1(0x190)]=_0x1aa4c5['grid_column'],this[_0x5609f1(0x19a)]=_0x1aa4c5[_0x5609f1(0x192)],this['gridEmphasized']=_0x1aa4c5[_0x5609f1(0x1b1)];}async[a0_0x233815(0x1b6)](){const _0x2a7762=a0_0x233815;this[_0x2a7762(0x1ba)]=await MetaApi[_0x2a7762(0x195)](this),this[_0x2a7762(0x197)]=!0x0===this[_0x2a7762(0x1cc)],this[_0x2a7762(0x1cc)]=!0x1,this[_0x2a7762(0x19f)]=[],this[_0x2a7762(0x1c5)]=this[_0x2a7762(0x1ba)][_0x2a7762(0x191)][_0x2a7762(0x1af)](_0x29b8a6=>_0x29b8a6[_0x2a7762(0x1af)])[_0x2a7762(0x1d4)](_0x52366d=>{const _0x11c69b=_0x2a7762;let _0x46866d={'name':_0x52366d['name'],'type':'search'===_0x52366d[_0x11c69b(0x1af)][_0x11c69b(0x1bb)]?'search':_0x52366d[_0x11c69b(0x1cd)],'label':_0x52366d[_0x11c69b(0x1aa)],'operator':_0x52366d[_0x11c69b(0x1af)][_0x11c69b(0x1bb)]?_0x52366d[_0x11c69b(0x1af)][_0x11c69b(0x1bb)]:'eq'};return _0x52366d[_0x11c69b(0x1af)][_0x11c69b(0x1a9)]&&(_0x46866d[_0x11c69b(0x1a9)]=_0x52366d[_0x11c69b(0x1af)][_0x11c69b(0x1a9)]),_0x52366d[_0x11c69b(0x1bf)][_0x11c69b(0x1a9)]&&(_0x46866d[_0x11c69b(0x1a9)]=_0x52366d['record'][_0x11c69b(0x1a9)]),_0x52366d['filter']['value']&&this[_0x11c69b(0x19f)]['push']({'name':_0x46866d[_0x11c69b(0x1ad)],'operator':_0x46866d[_0x11c69b(0x1bb)],'value':_0x52366d[_0x11c69b(0x1af)]['value']}),delete _0x52366d[_0x11c69b(0x1af)],_0x46866d;});}async[a0_0x233815(0x194)](){const _0x35c936=a0_0x233815;await this[_0x35c936(0x19b)]['fetch']();}async['beforeFetch']({page:_0x15d4c0=0x0,limit:_0x47dc8a=0x0,sortings:_0x17ac49=[],filters:_0x3093cd=[]}){const _0x9d42dd=a0_0x233815;let _0x1a4a72=this[_0x9d42dd(0x1b9)]['querySelector']('meta-tab-element');return await _0x1a4a72[_0x9d42dd(0x1be)](),!0x0;}async[a0_0x233815(0x1b5)](){const _0x47e667=a0_0x233815;let _0x538322=MetaApi[_0x47e667(0x19c)](this[_0x47e667(0x19b)]);!!ValueUtil['isNotEmpty'](_0x538322)&&await this[_0x47e667(0x1c2)](_0x538322)&&this[_0x47e667(0x194)]();}async[a0_0x233815(0x1d3)](){const _0x216941=a0_0x233815;let _0x192508=MetaApi['getSelectedIdList'](this[_0x216941(0x19b)],!0x0);return ValueUtil['isNotEmpty'](_0x192508)?await this[_0x216941(0x1a6)](_0x192508[0x0]):{};}async[a0_0x233815(0x1bc)](){const _0x573d50=a0_0x233815;let _0x11abc9=MetaApi[_0x573d50(0x1ce)](this['grist'],!0x0);!!ValueUtil['isNotEmpty'](_0x11abc9)&&await this['deleteByIds'](_0x11abc9)&&this['fetch']();}async[a0_0x233815(0x1c0)](){const _0xcf16ba=a0_0x233815;let _0x2d9cdb=TermsUtil[_0xcf16ba(0x1c8)](ValueUtil['getParams'](this[_0xcf16ba(0x1b3)],'title'));return await MetaApi[_0xcf16ba(0x193)](this[_0xcf16ba(0x1c3)],_0x2d9cdb,this[_0xcf16ba(0x19b)]);}async[a0_0x233815(0x1b0)](){}['getData'](){const _0x13befc=a0_0x233815;let _0x210696=this[_0x13befc(0x19b)]['___data'][_0x13befc(0x1a0)];return _0x210696=JSON[_0x13befc(0x1a4)](JSON[_0x13befc(0x1d5)](_0x210696)),_0x210696['forEach'](_0x4c62ff=>{const _0x418e88=_0x13befc;Object[_0x418e88(0x1cb)](_0x4c62ff)[_0x418e88(0x1a2)](_0x4ab043=>{const _0x4da7fe=_0x418e88;_0x4ab043[_0x4da7fe(0x1a3)]('__')&&delete _0x4c62ff[_0x4ab043];});}),{'main':_0x210696,'detail':this[_0x13befc(0x1b9)][_0x13befc(0x1c1)]('meta-tab-element')[_0x13befc(0x1ae)]()};}};
1
+ const a0_0x2bcc65=a0_0x587b;(function(_0x36f4d6,_0x56bff9){const _0x5aa6a4=a0_0x587b,_0x4dbaf9=_0x36f4d6();while(!![]){try{const _0x5ab884=-parseInt(_0x5aa6a4(0xcc))/0x1*(-parseInt(_0x5aa6a4(0xfc))/0x2)+-parseInt(_0x5aa6a4(0xdb))/0x3*(parseInt(_0x5aa6a4(0xca))/0x4)+-parseInt(_0x5aa6a4(0xd8))/0x5*(parseInt(_0x5aa6a4(0xef))/0x6)+parseInt(_0x5aa6a4(0xfb))/0x7+-parseInt(_0x5aa6a4(0xbb))/0x8+-parseInt(_0x5aa6a4(0xc7))/0x9*(parseInt(_0x5aa6a4(0xf8))/0xa)+parseInt(_0x5aa6a4(0xc0))/0xb;if(_0x5ab884===_0x56bff9)break;else _0x4dbaf9['push'](_0x4dbaf9['shift']());}catch(_0x131341){_0x4dbaf9['push'](_0x4dbaf9['shift']());}}}(a0_0x1a19,0xd6e2c));function a0_0x1a19(){const _0x4e73e6=['records','useMasterFilterForm','1160829WTgYOb','parseGristConfigs','ox-grist','4OiMyFF','gridColumnConfig','1PdQiYZ','getData','#detail','firstUpdated','searchFieldValues','deleteByIds','ox-filters-form-base','search','getContextObject','importable','searchConfig','keys','10DVTxEf','styles','value','4260297yFfkYE','export','grist','activityDataSet','save','filterFormId','getSelectedIdList','fetch','delete','isPage','columns','name','shadowRoot','dataSet','grid','beforeFetch','actions','isElement','gristId','clear','2395584IhNOfI','gridEmphasized','filter','main','grid_column','findOne','render','parseBasicGridConfigs','___data','10BEyZlk','pageInitialized','record','12068749AiAzuJ','1159874ttHWMe','menuInfo','searchFields','updateMultiple','type','header','getBasicGristTabStyles','renderRoot','isNotEmpty','operator','useFilterForm','map','connectedCallback','1998376PZYRMD','tTitle','querySelector','push','properties','12908863buZcfn','exportable','gristConfigSet','forEach','options'];a0_0x1a19=function(){return _0x4e73e6;};return a0_0x1a19();}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_0x587b(_0x5ddd6c,_0xc6ed09){const _0x1a19b3=a0_0x1a19();return a0_0x587b=function(_0x587bbf,_0x2a44c1){_0x587bbf=_0x587bbf-0xb6;let _0x2c7eb5=_0x1a19b3[_0x587bbf];return _0x2c7eb5;},a0_0x587b(_0x5ddd6c,_0xc6ed09);}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x11a91b=>class extends MetaButtonMixin(_0x11a91b){static get[a0_0x2bcc65(0xd9)](){const _0x1cf59a=a0_0x2bcc65;return MetaApi[_0x1cf59a(0x102)]();}static get[a0_0x2bcc65(0xbf)](){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_0x2bcc65(0xdd)](){const _0x2a7a48=a0_0x2bcc65;return this[_0x2a7a48(0x103)][_0x2a7a48(0xbd)](this[_0x2a7a48(0xed)]);}get['filterForm'](){const _0x526e46=a0_0x2bcc65;return this['shadowRoot']?.[_0x526e46(0xbd)](this[_0x526e46(0xe0)]);}get['detailElement'](){const _0x290c89=a0_0x2bcc65;return this[_0x290c89(0xe7)][_0x290c89(0xbd)](_0x290c89(0xce));}get['context'](){const _0x1831ac=a0_0x2bcc65;let _0x42b2d1=MetaUiUtil[_0x1831ac(0xd4)](this);return _0x42b2d1[_0x1831ac(0xeb)]&&delete _0x42b2d1['actions'],_0x42b2d1[_0x1831ac(0xc1)]&&delete _0x42b2d1[_0x1831ac(0xc1)],_0x42b2d1[_0x1831ac(0xd5)]&&delete _0x42b2d1[_0x1831ac(0xd5)],_0x42b2d1;}async[a0_0x2bcc65(0xba)](){const _0x31a50a=a0_0x2bcc65;this[_0x31a50a(0xed)]=_0x31a50a(0xc9),this[_0x31a50a(0xe0)]=_0x31a50a(0xd2),await this['getAndParseMenuMeta'](),this['isElement']&&await this[_0x31a50a(0xc8)](),this[_0x31a50a(0xde)]&&(this[_0x31a50a(0xe8)]=(this['activityDataSet']||{})[_0x31a50a(0xf2)]),super[_0x31a50a(0xba)]&&await super['connectedCallback']();}async[a0_0x2bcc65(0xcf)](){const _0x5be645=a0_0x2bcc65;super['firstUpdated']&&await super[_0x5be645(0xcf)]();}async['pageInitialized'](){const _0x57e469=a0_0x2bcc65;this[_0x57e469(0xe4)]&&await this[_0x57e469(0xc8)](),super['pageInitialized']&&await super[_0x57e469(0xf9)]();}[a0_0x2bcc65(0xf5)](){return MetaApi['getGristTabHtml'](this);}[a0_0x2bcc65(0xf6)](_0x3c7a2a){const _0xc880f4=a0_0x2bcc65;this['gridConfig']=_0x3c7a2a[_0xc880f4(0xe9)],this[_0xc880f4(0xcb)]=_0x3c7a2a[_0xc880f4(0xf3)],this[_0xc880f4(0xd6)]=_0x3c7a2a[_0xc880f4(0xd3)],this[_0xc880f4(0xf0)]=_0x3c7a2a['gridEmphasized'];}async[a0_0x2bcc65(0xc8)](){const _0x150eb5=a0_0x2bcc65;this['gristConfigSet']=await MetaApi['parseGridConfigSet'](this),this[_0x150eb5(0xc6)]=!0x0===this[_0x150eb5(0xb8)],this[_0x150eb5(0xb8)]=!0x1,this[_0x150eb5(0xd0)]=[],this[_0x150eb5(0xfe)]=this[_0x150eb5(0xc2)][_0x150eb5(0xe5)]['filter'](_0x4cce01=>_0x4cce01[_0x150eb5(0xf1)])[_0x150eb5(0xb9)](_0x536948=>{const _0x4eb451=_0x150eb5;let _0x13c224={'name':_0x536948[_0x4eb451(0xe6)],'type':'search'===_0x536948[_0x4eb451(0xf1)][_0x4eb451(0xb7)]?'search':_0x536948[_0x4eb451(0x100)],'label':_0x536948[_0x4eb451(0x101)],'operator':_0x536948[_0x4eb451(0xf1)][_0x4eb451(0xb7)]?_0x536948[_0x4eb451(0xf1)][_0x4eb451(0xb7)]:'eq'};return _0x536948[_0x4eb451(0xf1)][_0x4eb451(0xc4)]&&(_0x13c224['options']=_0x536948[_0x4eb451(0xf1)][_0x4eb451(0xc4)]),_0x536948[_0x4eb451(0xfa)][_0x4eb451(0xc4)]&&(_0x13c224[_0x4eb451(0xc4)]=_0x536948['record'][_0x4eb451(0xc4)]),_0x536948['filter'][_0x4eb451(0xda)]&&this[_0x4eb451(0xd0)][_0x4eb451(0xbe)]({'name':_0x13c224[_0x4eb451(0xe6)],'operator':_0x13c224['operator'],'value':_0x536948[_0x4eb451(0xf1)][_0x4eb451(0xda)]}),delete _0x536948[_0x4eb451(0xf1)],_0x13c224;});}async[a0_0x2bcc65(0xe2)](){const _0x516ead=a0_0x2bcc65;await this[_0x516ead(0xdd)][_0x516ead(0xe2)]();}async[a0_0x2bcc65(0xea)]({page:_0x2bd4bb=0x0,limit:_0x1e9fca=0x0,sortings:_0x43dea7=[],filters:_0x384432=[]}){const _0xe1b357=a0_0x2bcc65;let _0x25723f=this['renderRoot'][_0xe1b357(0xbd)]('meta-tab-element');return await _0x25723f[_0xe1b357(0xee)](),!0x0;}async[a0_0x2bcc65(0xdf)](){const _0x320791=a0_0x2bcc65;let _0x51d14c=MetaApi['patchesForUpdateMultiple'](this[_0x320791(0xdd)]);!!ValueUtil[_0x320791(0xb6)](_0x51d14c)&&await this[_0x320791(0xff)](_0x51d14c)&&this[_0x320791(0xe2)]();}async['find'](){const _0x2eb222=a0_0x2bcc65;let _0xc0ae71=MetaApi[_0x2eb222(0xe1)](this['grist'],!0x0);return ValueUtil[_0x2eb222(0xb6)](_0xc0ae71)?await this[_0x2eb222(0xf4)](_0xc0ae71[0x0]):{};}async[a0_0x2bcc65(0xe3)](){const _0x50e893=a0_0x2bcc65;let _0x315dd8=MetaApi[_0x50e893(0xe1)](this['grist'],!0x0);!!ValueUtil[_0x50e893(0xb6)](_0x315dd8)&&await this[_0x50e893(0xd1)](_0x315dd8)&&this[_0x50e893(0xe2)]();}async[a0_0x2bcc65(0xdc)](){const _0x2dd4bd=a0_0x2bcc65;let _0x4b6e43=TermsUtil[_0x2dd4bd(0xbc)](ValueUtil['getParams'](this[_0x2dd4bd(0xfd)],'title'));return await MetaApi['exportableData'](this[_0x2dd4bd(0xec)],_0x4b6e43,this['grist']);}async['import'](){}['getData'](){const _0x20f14c=a0_0x2bcc65;let _0x33dbf0=this[_0x20f14c(0xdd)][_0x20f14c(0xf7)][_0x20f14c(0xc5)];return _0x33dbf0=JSON['parse'](JSON['stringify'](_0x33dbf0)),_0x33dbf0['forEach'](_0x1f1b02=>{const _0xf0dd86=_0x20f14c;Object[_0xf0dd86(0xd7)](_0x1f1b02)[_0xf0dd86(0xc3)](_0x60ae7f=>{_0x60ae7f['startsWith']('__')&&delete _0x1f1b02[_0x60ae7f];});}),{'main':_0x33dbf0,'detail':this[_0x20f14c(0x103)][_0x20f14c(0xbd)]('meta-tab-element')[_0x20f14c(0xcd)]()};}};
@@ -1 +1 @@
1
- const a0_0x2aabee=a0_0x469a;(function(_0x44ef82,_0x3384fa){const _0x2c3881=a0_0x469a,_0x40d688=_0x44ef82();while(!![]){try{const _0x3f38c7=parseInt(_0x2c3881(0x100))/0x1+-parseInt(_0x2c3881(0x118))/0x2*(parseInt(_0x2c3881(0xf3))/0x3)+-parseInt(_0x2c3881(0x103))/0x4+-parseInt(_0x2c3881(0xfa))/0x5+parseInt(_0x2c3881(0x11f))/0x6+parseInt(_0x2c3881(0x101))/0x7+parseInt(_0x2c3881(0x122))/0x8*(parseInt(_0x2c3881(0xf6))/0x9);if(_0x3f38c7===_0x3384fa)break;else _0x40d688['push'](_0x40d688['shift']());}catch(_0x21168d){_0x40d688['push'](_0x40d688['shift']());}}}(a0_0x2eab,0xc84c2));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x469a(_0x244fd9,_0x2640d2){const _0x2eab78=a0_0x2eab();return a0_0x469a=function(_0x469a02,_0x38f543){_0x469a02=_0x469a02-0xe8;let _0xbd26cc=_0x2eab78[_0x469a02];return _0xbd26cc;},a0_0x469a(_0x244fd9,_0x2640d2);}import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x2eab(){const _0x5c07fe=['importable','filterFormId','gristConfigSet','masterElement','exportable','useMasterFilterForm','pageInitialized','useButtonExport','parseGridConfigSet','isElement','buttonConfig','push','beforeFetch','type','62229DmEZlO','search','useFilterForm','370935FOUwdQ','grist','operator','clear','3562515UaqktZ','gristId','columns','dataSet','filter','isPage','1529083CqjCWp','2725296fPLZgo','value','4425428XTxvqu','name','parseGristConfigs','querySelector','gridEmphasized','connectedCallback','searchFields','getMainTabHtml','properties','filterForm','fetch','searchFieldValues','context','gridColumnConfig','getAndParseMenuMeta','firstUpdated','map','record','getBasicMainTabStyles','ox-filters-form-base','options','14Abbhwe','grid_column','parseBasicGridConfigs','main','actions','render','activityDataSet','497898LbiImE','gridConfig','getData','152rFTrqM'];a0_0x2eab=function(){return _0x5c07fe;};return a0_0x2eab();}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0xa14727=>class extends MetaButtonMixin(_0xa14727){static get['styles'](){const _0x278f7b=a0_0x469a;return MetaApi[_0x278f7b(0x115)]();}static get[a0_0x2aabee(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_0x2aabee(0xf7)](){const _0x4398b9=a0_0x2aabee;return this[_0x4398b9(0xe8)]['getMainGrist']();}get[a0_0x2aabee(0x10c)](){const _0x2e2ddb=a0_0x2aabee;return this['shadowRoot']?.[_0x2e2ddb(0x106)](this[_0x2e2ddb(0x124)]);}get[a0_0x2aabee(0x10f)](){const _0x4dc72b=a0_0x2aabee;let _0x2e17da=MetaUiUtil['getContextObject'](this);return _0x2e17da[_0x4dc72b(0x11c)]&&delete _0x2e17da['actions'],_0x2e17da['exportable']&&delete _0x2e17da[_0x4dc72b(0xe9)],_0x2e17da[_0x4dc72b(0x123)]&&delete _0x2e17da[_0x4dc72b(0x123)],_0x2e17da;}async[a0_0x2aabee(0x108)](){const _0x2774c4=a0_0x2aabee;this[_0x2774c4(0xfb)]='ox-grist',this[_0x2774c4(0x124)]=_0x2774c4(0x116),await this[_0x2774c4(0x111)](),this[_0x2774c4(0xee)]&&await this[_0x2774c4(0x105)](),this[_0x2774c4(0x11e)]&&(this[_0x2774c4(0xfd)]=(this[_0x2774c4(0x11e)]||{})[_0x2774c4(0x11b)]),super[_0x2774c4(0x108)]&&await super[_0x2774c4(0x108)]();}async[a0_0x2aabee(0x112)](){super['firstUpdated']&&await super['firstUpdated']();}async[a0_0x2aabee(0xeb)](){const _0x28af33=a0_0x2aabee;this[_0x28af33(0xff)]&&await this['parseGristConfigs'](),super[_0x28af33(0xeb)]&&await super[_0x28af33(0xeb)]();}[a0_0x2aabee(0x11d)](){const _0x5cdc68=a0_0x2aabee;return MetaApi[_0x5cdc68(0x10a)](this);}[a0_0x2aabee(0x11a)](_0x49b489){const _0x5ee6f2=a0_0x2aabee;this[_0x5ee6f2(0x120)]=_0x49b489['grid'],this[_0x5ee6f2(0x110)]=_0x49b489[_0x5ee6f2(0x119)],this['searchConfig']=_0x49b489[_0x5ee6f2(0xf4)],this[_0x5ee6f2(0x107)]=_0x49b489[_0x5ee6f2(0x107)];}async[a0_0x2aabee(0x105)](){const _0x3b425b=a0_0x2aabee;this[_0x3b425b(0x125)]=await MetaApi[_0x3b425b(0xed)](this),this[_0x3b425b(0xea)]=!0x0===this[_0x3b425b(0xf5)],this['useFilterForm']=!0x1,this[_0x3b425b(0xef)]=void 0x0,this[_0x3b425b(0xec)]=!0x1,this['useButtonImport']=!0x1,this[_0x3b425b(0x10e)]=[],this[_0x3b425b(0x109)]=this[_0x3b425b(0x125)][_0x3b425b(0xfc)][_0x3b425b(0xfe)](_0x160353=>_0x160353['filter'])[_0x3b425b(0x113)](_0x563f5e=>{const _0x376603=_0x3b425b;let _0x567ab4={'name':_0x563f5e[_0x376603(0x104)],'type':_0x376603(0xf4)===_0x563f5e[_0x376603(0xfe)][_0x376603(0xf8)]?_0x376603(0xf4):_0x563f5e[_0x376603(0xf2)],'label':_0x563f5e['header'],'operator':_0x563f5e['filter'][_0x376603(0xf8)]?_0x563f5e[_0x376603(0xfe)][_0x376603(0xf8)]:'eq'};return _0x563f5e[_0x376603(0xfe)][_0x376603(0x117)]&&(_0x567ab4[_0x376603(0x117)]=_0x563f5e[_0x376603(0xfe)][_0x376603(0x117)]),_0x563f5e['record'][_0x376603(0x117)]&&(_0x567ab4[_0x376603(0x117)]=_0x563f5e[_0x376603(0x114)][_0x376603(0x117)]),_0x563f5e['filter'][_0x376603(0x102)]&&this[_0x376603(0x10e)][_0x376603(0xf0)]({'name':_0x567ab4['name'],'operator':_0x567ab4[_0x376603(0xf8)],'value':_0x563f5e[_0x376603(0xfe)][_0x376603(0x102)]}),delete _0x563f5e[_0x376603(0xfe)],_0x567ab4;});}async[a0_0x2aabee(0x10d)](){const _0x397c7d=a0_0x2aabee;await this['grist'][_0x397c7d(0x10d)]();}async[a0_0x2aabee(0xf1)]({page:_0x38dd89=0x0,limit:_0x533286=0x0,sortings:_0x2d54e9=[],filters:_0x1b45bd=[]}){const _0x3db886=a0_0x2aabee;return this[_0x3db886(0xe8)]&&this[_0x3db886(0xe8)][_0x3db886(0xf9)]&&await this[_0x3db886(0xe8)][_0x3db886(0xf9)](),!0x0;}['getData'](){const _0x4a6203=a0_0x2aabee;return{'master':this[_0x4a6203(0xe8)][_0x4a6203(0x121)]()};}};
1
+ const a0_0x51d44b=a0_0x2050;function a0_0x2050(_0x33e130,_0x1c7bbf){const _0x207d0b=a0_0x207d();return a0_0x2050=function(_0x205018,_0x2dea59){_0x205018=_0x205018-0xf4;let _0x3ec56a=_0x207d0b[_0x205018];return _0x3ec56a;},a0_0x2050(_0x33e130,_0x1c7bbf);}(function(_0x3750db,_0x4b1415){const _0x370dd9=a0_0x2050,_0x569941=_0x3750db();while(!![]){try{const _0x4e1c2c=-parseInt(_0x370dd9(0x11e))/0x1*(parseInt(_0x370dd9(0x132))/0x2)+-parseInt(_0x370dd9(0x12f))/0x3*(parseInt(_0x370dd9(0xf7))/0x4)+-parseInt(_0x370dd9(0x121))/0x5*(parseInt(_0x370dd9(0x117))/0x6)+-parseInt(_0x370dd9(0x10e))/0x7*(parseInt(_0x370dd9(0x102))/0x8)+-parseInt(_0x370dd9(0x101))/0x9+parseInt(_0x370dd9(0x12e))/0xa+-parseInt(_0x370dd9(0x129))/0xb*(-parseInt(_0x370dd9(0xf5))/0xc);if(_0x4e1c2c===_0x4b1415)break;else _0x569941['push'](_0x569941['shift']());}catch(_0x3705f0){_0x569941['push'](_0x569941['shift']());}}}(a0_0x207d,0x9caad));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x207d(){const _0x2ea494=['render','map','useButtonImport','searchConfig','ox-grist','value','shadowRoot','gristId','gridConfig','search','operator','7QjFWvp','grid_column','columns','getData','context','header','grist','gridColumnConfig','pageInitialized','60954thsoVV','dataSet','getBasicMainTabStyles','parseBasicGridConfigs','buttonConfig','push','name','636333tlCmuE','filter','useMasterFilterForm','5odaMPj','type','useFilterForm','querySelector','exportable','connectedCallback','filterFormId','parseGristConfigs','134420OpuKvt','filterForm','searchFieldValues','gridEmphasized','importable','169250yqkbQT','45TQSOcA','masterElement','actions','2pKchTO','clear','beforeFetch','2460vyARlR','gristConfigSet','133560bLSZIy','getAndParseMenuMeta','isPage','useButtonExport','fetch','ox-filters-form-base','options','getMainGrist','main','firstUpdated','5955732Dajtwo','569808LkhCQD'];a0_0x207d=function(){return _0x2ea494;};return a0_0x207d();}export const MetaMainTabMixin=_0x4f22a2=>class extends MetaButtonMixin(_0x4f22a2){static get['styles'](){const _0x18e249=a0_0x2050;return MetaApi[_0x18e249(0x119)]();}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_0x51d44b(0x114)](){const _0x17fa3f=a0_0x51d44b;return this['masterElement'][_0x17fa3f(0xfe)]();}get[a0_0x51d44b(0x12a)](){const _0xb204cc=a0_0x51d44b;return this[_0xb204cc(0x109)]?.[_0xb204cc(0x124)](this[_0xb204cc(0x127)]);}get[a0_0x51d44b(0x112)](){const _0x506cb6=a0_0x51d44b;let _0x3eb140=MetaUiUtil['getContextObject'](this);return _0x3eb140[_0x506cb6(0x131)]&&delete _0x3eb140['actions'],_0x3eb140[_0x506cb6(0x125)]&&delete _0x3eb140[_0x506cb6(0x125)],_0x3eb140[_0x506cb6(0x12d)]&&delete _0x3eb140['importable'],_0x3eb140;}async[a0_0x51d44b(0x126)](){const _0x5a212c=a0_0x51d44b;this[_0x5a212c(0x10a)]=_0x5a212c(0x107),this[_0x5a212c(0x127)]=_0x5a212c(0xfc),await this[_0x5a212c(0xf8)](),this['isElement']&&await this['parseGristConfigs'](),this['activityDataSet']&&(this[_0x5a212c(0x118)]=(this['activityDataSet']||{})[_0x5a212c(0xff)]),super[_0x5a212c(0x126)]&&await super[_0x5a212c(0x126)]();}async['firstUpdated'](){const _0x9a8781=a0_0x51d44b;super[_0x9a8781(0x100)]&&await super[_0x9a8781(0x100)]();}async[a0_0x51d44b(0x116)](){const _0x312a99=a0_0x51d44b;this[_0x312a99(0xf9)]&&await this[_0x312a99(0x128)](),super['pageInitialized']&&await super['pageInitialized']();}[a0_0x51d44b(0x103)](){return MetaApi['getMainTabHtml'](this);}[a0_0x51d44b(0x11a)](_0x4da5fe){const _0x385fa2=a0_0x51d44b;this[_0x385fa2(0x10b)]=_0x4da5fe['grid'],this[_0x385fa2(0x115)]=_0x4da5fe[_0x385fa2(0x10f)],this[_0x385fa2(0x106)]=_0x4da5fe[_0x385fa2(0x10c)],this[_0x385fa2(0x12c)]=_0x4da5fe[_0x385fa2(0x12c)];}async[a0_0x51d44b(0x128)](){const _0x1581bd=a0_0x51d44b;this[_0x1581bd(0xf6)]=await MetaApi['parseGridConfigSet'](this),this[_0x1581bd(0x120)]=!0x0===this[_0x1581bd(0x123)],this[_0x1581bd(0x123)]=!0x1,this[_0x1581bd(0x11b)]=void 0x0,this[_0x1581bd(0xfa)]=!0x1,this[_0x1581bd(0x105)]=!0x1,this['searchFieldValues']=[],this['searchFields']=this[_0x1581bd(0xf6)][_0x1581bd(0x110)][_0x1581bd(0x11f)](_0x5dfd56=>_0x5dfd56[_0x1581bd(0x11f)])[_0x1581bd(0x104)](_0x232e75=>{const _0x4de70e=_0x1581bd;let _0x11627b={'name':_0x232e75[_0x4de70e(0x11d)],'type':_0x4de70e(0x10c)===_0x232e75[_0x4de70e(0x11f)][_0x4de70e(0x10d)]?_0x4de70e(0x10c):_0x232e75[_0x4de70e(0x122)],'label':_0x232e75[_0x4de70e(0x113)],'operator':_0x232e75[_0x4de70e(0x11f)][_0x4de70e(0x10d)]?_0x232e75[_0x4de70e(0x11f)][_0x4de70e(0x10d)]:'eq'};return _0x232e75[_0x4de70e(0x11f)]['options']&&(_0x11627b['options']=_0x232e75[_0x4de70e(0x11f)][_0x4de70e(0xfd)]),_0x232e75['record'][_0x4de70e(0xfd)]&&(_0x11627b[_0x4de70e(0xfd)]=_0x232e75['record'][_0x4de70e(0xfd)]),_0x232e75[_0x4de70e(0x11f)][_0x4de70e(0x108)]&&this[_0x4de70e(0x12b)][_0x4de70e(0x11c)]({'name':_0x11627b[_0x4de70e(0x11d)],'operator':_0x11627b['operator'],'value':_0x232e75['filter'][_0x4de70e(0x108)]}),delete _0x232e75['filter'],_0x11627b;});}async[a0_0x51d44b(0xfb)](){const _0x428183=a0_0x51d44b;await this[_0x428183(0x114)]['fetch']();}async[a0_0x51d44b(0xf4)]({page:_0x3d79c8=0x0,limit:_0x2efa72=0x0,sortings:_0x2bc8d7=[],filters:_0x15ce73=[]}){const _0x1550ea=a0_0x51d44b;return this[_0x1550ea(0x130)]&&this[_0x1550ea(0x130)][_0x1550ea(0x133)]&&await this[_0x1550ea(0x130)]['clear'](),!0x0;}[a0_0x51d44b(0x111)](){return{'master':this['masterElement']['getData']()};}};
@@ -1 +1 @@
1
- const a0_0xbd5dae=a0_0x3404;(function(_0x1e9595,_0x190c97){const _0x79f5bd=a0_0x3404,_0x236366=_0x1e9595();while(!![]){try{const _0x37c2fe=parseInt(_0x79f5bd(0x174))/0x1+-parseInt(_0x79f5bd(0x175))/0x2+parseInt(_0x79f5bd(0x166))/0x3*(-parseInt(_0x79f5bd(0x18e))/0x4)+parseInt(_0x79f5bd(0x1a7))/0x5*(-parseInt(_0x79f5bd(0x171))/0x6)+parseInt(_0x79f5bd(0x19d))/0x7*(parseInt(_0x79f5bd(0x16b))/0x8)+-parseInt(_0x79f5bd(0x189))/0x9+parseInt(_0x79f5bd(0x162))/0xa*(parseInt(_0x79f5bd(0x16a))/0xb);if(_0x37c2fe===_0x190c97)break;else _0x236366['push'](_0x236366['shift']());}catch(_0x1dae80){_0x236366['push'](_0x236366['shift']());}}}(a0_0x5944,0x58264));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x3404(_0x479f61,_0x3715f1){const _0x594484=a0_0x5944();return a0_0x3404=function(_0x340425,_0x17302a){_0x340425=_0x340425-0x161;let _0x355217=_0x594484[_0x340425];return _0x355217;},a0_0x3404(_0x479f61,_0x3715f1);}import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x5944(){const _0x160b19=['getParams','gristConfigSet','context','properties','getMasterDetailHtml','delete','getContextObject','parseGridConfigSet','3084795GmyUlG','searchFieldValues','search','exportable','header','4DtMPtM','importable','ox-grist','firstUpdated','querySelector','records','getData','beforeFetch','useFilterForm','columns','type','ox-filters-form-base','operator','menuInfo','fetch','60179Xpnlee','import','isPage','pageInitialized','isNotEmpty','dataSet','tTitle','startsWith','grist','parseBasicGridConfigs','25IXlNoQ','save','shadowRoot','actions','parseGristConfigs','clear','stringify','forEach','getAndParseMenuMeta','patchesForUpdateMultiple','renderRoot','8290hbLsKk','filter','searchFields','deleteByIds','1807851VkiaWm','detailElement','options','updateMultiple','15763pLJotU','664bvIcNg','filterForm','find','filterFormId','gristId','title','598008YcBKOG','gridConfig','exportableData','581744wIclFN','1356960BQYCHD','push','connectedCallback','name','isElement','getBasicMasterDetailStyles','searchConfig','gridEmphasized','export','activityDataSet','styles','findOne'];a0_0x5944=function(){return _0x160b19;};return a0_0x5944();}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x328d54=>class extends MetaButtonMixin(_0x328d54){static get[a0_0xbd5dae(0x17f)](){const _0x367ec8=a0_0xbd5dae;return MetaApi[_0x367ec8(0x17a)]();}static get[a0_0xbd5dae(0x184)](){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_0xbd5dae(0x1a5)](){const _0xbca84b=a0_0xbd5dae;return this[_0xbca84b(0x161)][_0xbca84b(0x192)](this[_0xbca84b(0x16f)]);}get[a0_0xbd5dae(0x16c)](){const _0x2e153c=a0_0xbd5dae;return this[_0x2e153c(0x1a9)]?.['querySelector'](this[_0x2e153c(0x16e)]);}get[a0_0xbd5dae(0x183)](){const _0x528b47=a0_0xbd5dae;let _0x3c73a4=MetaUiUtil[_0x528b47(0x187)](this);return _0x3c73a4[_0x528b47(0x1aa)]&&delete _0x3c73a4['actions'],_0x3c73a4[_0x528b47(0x18c)]&&delete _0x3c73a4[_0x528b47(0x18c)],_0x3c73a4[_0x528b47(0x18f)]&&delete _0x3c73a4[_0x528b47(0x18f)],_0x3c73a4;}async[a0_0xbd5dae(0x177)](){const _0x3ee0d6=a0_0xbd5dae;this['gristId']=_0x3ee0d6(0x190),this[_0x3ee0d6(0x16e)]=_0x3ee0d6(0x199),await this[_0x3ee0d6(0x1af)](),this[_0x3ee0d6(0x179)]&&await this[_0x3ee0d6(0x1ab)](),this[_0x3ee0d6(0x17e)]&&(this[_0x3ee0d6(0x1a2)]=(this[_0x3ee0d6(0x17e)]||{})['main']),super[_0x3ee0d6(0x177)]&&await super[_0x3ee0d6(0x177)]();}async[a0_0xbd5dae(0x191)](){const _0x1a1550=a0_0xbd5dae;super[_0x1a1550(0x191)]&&await super[_0x1a1550(0x191)]();}async[a0_0xbd5dae(0x1a0)](){const _0x5af0d6=a0_0xbd5dae;this[_0x5af0d6(0x19f)]&&await this['parseGristConfigs'](),super[_0x5af0d6(0x1a0)]&&await super[_0x5af0d6(0x1a0)]();}['render'](){const _0x140b28=a0_0xbd5dae;return MetaApi[_0x140b28(0x185)](this);}[a0_0xbd5dae(0x1a6)](_0x1f562d){const _0x9bf7eb=a0_0xbd5dae;this[_0x9bf7eb(0x172)]=_0x1f562d['grid'],this['gridColumnConfig']=_0x1f562d['grid_column'],this[_0x9bf7eb(0x17b)]=_0x1f562d[_0x9bf7eb(0x18b)],this[_0x9bf7eb(0x17c)]=_0x1f562d[_0x9bf7eb(0x17c)];}async['parseGristConfigs'](){const _0x5936db=a0_0xbd5dae;this['gristConfigSet']=await MetaApi[_0x5936db(0x188)](this),this['useMasterFilterForm']=!0x0===this[_0x5936db(0x196)],this[_0x5936db(0x196)]=!0x1,this['searchFieldValues']=[],this[_0x5936db(0x164)]=this[_0x5936db(0x182)][_0x5936db(0x197)][_0x5936db(0x163)](_0x4da7ac=>_0x4da7ac[_0x5936db(0x163)])['map'](_0x3ee8ab=>{const _0x5c8393=_0x5936db;let _0xf44b41={'name':_0x3ee8ab['name'],'type':_0x5c8393(0x18b)===_0x3ee8ab[_0x5c8393(0x163)]['operator']?_0x5c8393(0x18b):_0x3ee8ab[_0x5c8393(0x198)],'label':_0x3ee8ab[_0x5c8393(0x18d)],'operator':_0x3ee8ab[_0x5c8393(0x163)]['operator']?_0x3ee8ab[_0x5c8393(0x163)][_0x5c8393(0x19a)]:'eq'};return _0x3ee8ab['filter'][_0x5c8393(0x168)]&&(_0xf44b41['options']=_0x3ee8ab[_0x5c8393(0x163)]['options']),_0x3ee8ab['record'][_0x5c8393(0x168)]&&(_0xf44b41[_0x5c8393(0x168)]=_0x3ee8ab['record']['options']),_0x3ee8ab[_0x5c8393(0x163)]['value']&&this[_0x5c8393(0x18a)][_0x5c8393(0x176)]({'name':_0xf44b41[_0x5c8393(0x178)],'operator':_0xf44b41['operator'],'value':_0x3ee8ab[_0x5c8393(0x163)]['value']}),delete _0x3ee8ab[_0x5c8393(0x163)],_0xf44b41;});}async[a0_0xbd5dae(0x19c)](){const _0x251125=a0_0xbd5dae;await this[_0x251125(0x1a5)][_0x251125(0x19c)]();}async[a0_0xbd5dae(0x195)]({page:_0x1b597f=0x0,limit:_0x281072=0x0,sortings:_0x48667b=[],filters:_0x258a1c=[]}){const _0x5cddb8=a0_0xbd5dae;return this[_0x5cddb8(0x167)]&&this[_0x5cddb8(0x167)][_0x5cddb8(0x1ac)]&&await this[_0x5cddb8(0x167)][_0x5cddb8(0x1ac)](),!0x0;}async[a0_0xbd5dae(0x1a8)](){const _0x2c3a09=a0_0xbd5dae;let _0x506849=MetaApi[_0x2c3a09(0x1b0)](this['grist']);!!ValueUtil[_0x2c3a09(0x1a1)](_0x506849)&&await this[_0x2c3a09(0x169)](_0x506849)&&this[_0x2c3a09(0x19c)]();}async[a0_0xbd5dae(0x16d)](){const _0xe06297=a0_0xbd5dae;let _0x8cb714=MetaApi['getSelectedIdList'](this[_0xe06297(0x1a5)],!0x0);return ValueUtil[_0xe06297(0x1a1)](_0x8cb714)?await this[_0xe06297(0x180)](_0x8cb714[0x0]):{};}async[a0_0xbd5dae(0x186)](){const _0x22e297=a0_0xbd5dae;let _0x2c820b=MetaApi['getSelectedIdList'](this[_0x22e297(0x1a5)],!0x0);!!ValueUtil[_0x22e297(0x1a1)](_0x2c820b)&&await this[_0x22e297(0x165)](_0x2c820b)&&this[_0x22e297(0x19c)]();}async[a0_0xbd5dae(0x17d)](){const _0x4baba4=a0_0xbd5dae;let _0x33e22a=TermsUtil[_0x4baba4(0x1a3)](ValueUtil[_0x4baba4(0x181)](this[_0x4baba4(0x19b)],_0x4baba4(0x170)));return await MetaApi[_0x4baba4(0x173)](this['isElement'],_0x33e22a,this[_0x4baba4(0x1a5)]);}async[a0_0xbd5dae(0x19e)](){}['getData'](){const _0xa9c2c3=a0_0xbd5dae;let _0x509ef8=this['grist']['___data'][_0xa9c2c3(0x193)];return _0x509ef8=JSON['parse'](JSON[_0xa9c2c3(0x1ad)](_0x509ef8)),_0x509ef8[_0xa9c2c3(0x1ae)](_0x1a06d9=>{const _0x3d3835=_0xa9c2c3;Object['keys'](_0x1a06d9)[_0x3d3835(0x1ae)](_0x149e91=>{const _0x56eef6=_0x3d3835;_0x149e91[_0x56eef6(0x1a4)]('__')&&delete _0x1a06d9[_0x149e91];});}),{'main':_0x509ef8,'detail':this[_0xa9c2c3(0x167)][_0xa9c2c3(0x194)]()};}};
1
+ const a0_0x437794=a0_0x2d72;(function(_0x4f3a5c,_0x103b3b){const _0x2b9b04=a0_0x2d72,_0x151e44=_0x4f3a5c();while(!![]){try{const _0x1d545a=parseInt(_0x2b9b04(0xd8))/0x1*(parseInt(_0x2b9b04(0xd9))/0x2)+-parseInt(_0x2b9b04(0xd7))/0x3*(parseInt(_0x2b9b04(0xe4))/0x4)+parseInt(_0x2b9b04(0xe2))/0x5*(-parseInt(_0x2b9b04(0xcd))/0x6)+-parseInt(_0x2b9b04(0xef))/0x7+-parseInt(_0x2b9b04(0xae))/0x8*(parseInt(_0x2b9b04(0xb7))/0x9)+parseInt(_0x2b9b04(0xdb))/0xa+-parseInt(_0x2b9b04(0xf1))/0xb*(-parseInt(_0x2b9b04(0xaa))/0xc);if(_0x1d545a===_0x103b3b)break;else _0x151e44['push'](_0x151e44['shift']());}catch(_0x210021){_0x151e44['push'](_0x151e44['shift']());}}}(a0_0x8a25,0x48700));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_0x8a25(){const _0x4bdab8=['options','isPage','push','properties','filter','shadowRoot','36ZbIRCw','getMasterDetailHtml','ox-filters-form-base','___data','1436696nlEJCM','searchConfig','operator','value','find','gridEmphasized','clear','gridColumnConfig','detailElement','9WUFKdT','map','grist','actions','menuInfo','parseBasicGridConfigs','gristConfigSet','header','tTitle','pageInitialized','useMasterFilterForm','gristId','dataSet','isElement','type','search','forEach','grid','import','name','getBasicMasterDetailStyles','exportableData','3756eSykYe','gridConfig','columns','title','useFilterForm','keys','stringify','querySelector','main','startsWith','1631499ZXmCkU','2LLOozC','53434yZhLXK','firstUpdated','574660ffzbDp','record','beforeFetch','save','findOne','updateMultiple','patchesForUpdateMultiple','2330UbEKYn','getContextObject','4dHnqHu','importable','connectedCallback','activityDataSet','searchFieldValues','parseGristConfigs','delete','getData','parseGridConfigSet','filterFormId','parse','2454137rAYwYN','fetch','5688947Ssxypl','records','exportable'];a0_0x8a25=function(){return _0x4bdab8;};return a0_0x8a25();}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x2d72(_0x37e136,_0x122a7c){const _0x8a2503=a0_0x8a25();return a0_0x2d72=function(_0x2d722f,_0x5d482a){_0x2d722f=_0x2d722f-0xa9;let _0x233202=_0x8a2503[_0x2d722f];return _0x233202;},a0_0x2d72(_0x37e136,_0x122a7c);}export const MetaMasterDetailMixin=_0x617e8c=>class extends MetaButtonMixin(_0x617e8c){static get['styles'](){const _0x229e8b=a0_0x2d72;return MetaApi[_0x229e8b(0xcb)]();}static get[a0_0x437794(0xf7)](){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 _0x4c5f5c=a0_0x437794;return this['renderRoot'][_0x4c5f5c(0xd4)](this[_0x4c5f5c(0xc2)]);}get['filterForm'](){const _0x1d672c=a0_0x437794;return this[_0x1d672c(0xa9)]?.[_0x1d672c(0xd4)](this[_0x1d672c(0xed)]);}get['context'](){const _0x1cb302=a0_0x437794;let _0x568a59=MetaUiUtil[_0x1cb302(0xe3)](this);return _0x568a59[_0x1cb302(0xba)]&&delete _0x568a59[_0x1cb302(0xba)],_0x568a59[_0x1cb302(0xf3)]&&delete _0x568a59[_0x1cb302(0xf3)],_0x568a59[_0x1cb302(0xe5)]&&delete _0x568a59['importable'],_0x568a59;}async[a0_0x437794(0xe6)](){const _0x4a2f5d=a0_0x437794;this['gristId']='ox-grist',this[_0x4a2f5d(0xed)]=_0x4a2f5d(0xac),await this['getAndParseMenuMeta'](),this[_0x4a2f5d(0xc4)]&&await this['parseGristConfigs'](),this[_0x4a2f5d(0xe7)]&&(this[_0x4a2f5d(0xc3)]=(this[_0x4a2f5d(0xe7)]||{})[_0x4a2f5d(0xd5)]),super[_0x4a2f5d(0xe6)]&&await super[_0x4a2f5d(0xe6)]();}async[a0_0x437794(0xda)](){const _0x39e064=a0_0x437794;super[_0x39e064(0xda)]&&await super[_0x39e064(0xda)]();}async[a0_0x437794(0xc0)](){const _0x1db8a4=a0_0x437794;this[_0x1db8a4(0xf5)]&&await this[_0x1db8a4(0xe9)](),super[_0x1db8a4(0xc0)]&&await super[_0x1db8a4(0xc0)]();}['render'](){const _0x20fc43=a0_0x437794;return MetaApi[_0x20fc43(0xab)](this);}[a0_0x437794(0xbc)](_0x4caf0e){const _0x2f2795=a0_0x437794;this[_0x2f2795(0xce)]=_0x4caf0e[_0x2f2795(0xc8)],this[_0x2f2795(0xb5)]=_0x4caf0e['grid_column'],this[_0x2f2795(0xaf)]=_0x4caf0e['search'],this['gridEmphasized']=_0x4caf0e[_0x2f2795(0xb3)];}async['parseGristConfigs'](){const _0x42ff82=a0_0x437794;this[_0x42ff82(0xbd)]=await MetaApi[_0x42ff82(0xec)](this),this[_0x42ff82(0xc1)]=!0x0===this['useFilterForm'],this[_0x42ff82(0xd1)]=!0x1,this['searchFieldValues']=[],this['searchFields']=this['gristConfigSet'][_0x42ff82(0xcf)][_0x42ff82(0xf8)](_0x32133f=>_0x32133f['filter'])[_0x42ff82(0xb8)](_0x41eef1=>{const _0x5c842c=_0x42ff82;let _0x235375={'name':_0x41eef1[_0x5c842c(0xca)],'type':_0x5c842c(0xc6)===_0x41eef1[_0x5c842c(0xf8)][_0x5c842c(0xb0)]?_0x5c842c(0xc6):_0x41eef1[_0x5c842c(0xc5)],'label':_0x41eef1[_0x5c842c(0xbe)],'operator':_0x41eef1[_0x5c842c(0xf8)]['operator']?_0x41eef1[_0x5c842c(0xf8)]['operator']:'eq'};return _0x41eef1[_0x5c842c(0xf8)][_0x5c842c(0xf4)]&&(_0x235375[_0x5c842c(0xf4)]=_0x41eef1[_0x5c842c(0xf8)][_0x5c842c(0xf4)]),_0x41eef1['record']['options']&&(_0x235375[_0x5c842c(0xf4)]=_0x41eef1[_0x5c842c(0xdc)][_0x5c842c(0xf4)]),_0x41eef1[_0x5c842c(0xf8)][_0x5c842c(0xb1)]&&this[_0x5c842c(0xe8)][_0x5c842c(0xf6)]({'name':_0x235375[_0x5c842c(0xca)],'operator':_0x235375[_0x5c842c(0xb0)],'value':_0x41eef1[_0x5c842c(0xf8)]['value']}),delete _0x41eef1[_0x5c842c(0xf8)],_0x235375;});}async[a0_0x437794(0xf0)](){const _0x2b8a67=a0_0x437794;await this[_0x2b8a67(0xb9)]['fetch']();}async[a0_0x437794(0xdd)]({page:_0x5729b1=0x0,limit:_0x3b9f7f=0x0,sortings:_0x5da840=[],filters:_0x4a42d4=[]}){const _0x55337e=a0_0x437794;return this['detailElement']&&this[_0x55337e(0xb6)][_0x55337e(0xb4)]&&await this['detailElement']['clear'](),!0x0;}async[a0_0x437794(0xde)](){const _0x2358e8=a0_0x437794;let _0x424066=MetaApi[_0x2358e8(0xe1)](this[_0x2358e8(0xb9)]);!!ValueUtil['isNotEmpty'](_0x424066)&&await this[_0x2358e8(0xe0)](_0x424066)&&this[_0x2358e8(0xf0)]();}async[a0_0x437794(0xb2)](){const _0x1e7b7b=a0_0x437794;let _0x1d80a1=MetaApi['getSelectedIdList'](this[_0x1e7b7b(0xb9)],!0x0);return ValueUtil['isNotEmpty'](_0x1d80a1)?await this[_0x1e7b7b(0xdf)](_0x1d80a1[0x0]):{};}async[a0_0x437794(0xea)](){const _0x1b9870=a0_0x437794;let _0x188b69=MetaApi['getSelectedIdList'](this[_0x1b9870(0xb9)],!0x0);!!ValueUtil['isNotEmpty'](_0x188b69)&&await this['deleteByIds'](_0x188b69)&&this[_0x1b9870(0xf0)]();}async['export'](){const _0x3adbea=a0_0x437794;let _0x5a8daa=TermsUtil[_0x3adbea(0xbf)](ValueUtil['getParams'](this[_0x3adbea(0xbb)],_0x3adbea(0xd0)));return await MetaApi[_0x3adbea(0xcc)](this['isElement'],_0x5a8daa,this[_0x3adbea(0xb9)]);}async[a0_0x437794(0xc9)](){}[a0_0x437794(0xeb)](){const _0x213d4e=a0_0x437794;let _0x245241=this[_0x213d4e(0xb9)][_0x213d4e(0xad)][_0x213d4e(0xf2)];return _0x245241=JSON[_0x213d4e(0xee)](JSON[_0x213d4e(0xd3)](_0x245241)),_0x245241['forEach'](_0x1e1971=>{const _0x16c668=_0x213d4e;Object[_0x16c668(0xd2)](_0x1e1971)[_0x16c668(0xc7)](_0x384941=>{const _0x30c1d6=_0x16c668;_0x384941[_0x30c1d6(0xd6)]('__')&&delete _0x1e1971[_0x384941];});}),{'main':_0x245241,'detail':this[_0x213d4e(0xb6)]['getData']()};}};