@things-factory/meta-ui 6.1.33 → 6.1.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/client/actions/main.js +4 -4
  2. package/client/component/filter/filter-form-meta-code-select.js +9 -9
  3. package/client/component/filter/filter-form-meta-object-select.js +10 -10
  4. package/client/component/filter/filter-grist-meta-code-select.js +10 -10
  5. package/client/component/filter/filter-grist-meta-object-select.js +9 -9
  6. package/client/component/grist/editor/grist-editor-code-input.js +6 -6
  7. package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
  8. package/client/component/grist/editor/grist-editor-meta-object-selector.js +7 -7
  9. package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
  10. package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
  11. package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
  12. package/client/component/popup/code-input-editor-popup.js +10 -10
  13. package/client/component/popup/meta-object-selector-popup.js +11 -11
  14. package/client/mixin/meta-base-mixin.js +1 -1
  15. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  16. package/client/mixin/meta-button-mixin.js +1 -1
  17. package/client/mixin/meta-form-mixin.js +1 -1
  18. package/client/mixin/meta-grist-tab-mixin.js +1 -1
  19. package/client/mixin/meta-main-tab-mixin.js +1 -1
  20. package/client/mixin/meta-master-detail-mixin.js +1 -1
  21. package/client/mixin/meta-service-mixin.js +1 -1
  22. package/client/mixin/meta-tab-detail-mixin.js +1 -1
  23. package/client/mixin/meta-tab-mixin.js +1 -1
  24. package/client/pages/activity/meta-activity-list-page.js +6 -6
  25. package/client/pages/activity/meta-activity-viewer-element.js +3 -3
  26. package/client/pages/activity/meta-activity-writer-element.js +3 -3
  27. package/client/pages/activity/meta-activiy-mixin.js +3 -3
  28. package/client/pages/entity/config-entity.js +27 -27
  29. package/client/pages/entity/main-menu-selector.js +8 -8
  30. package/client/pages/history/history-copy-list-popup.js +6 -6
  31. package/client/pages/history/history-json-list-popup.js +6 -6
  32. package/client/pages/loading-page.js +5 -5
  33. package/client/pages/menu/dynamic-menu-template.js +7 -7
  34. package/client/pages/menu/dynamic-menu.js +16 -16
  35. package/client/pages/meta-form-element.js +1 -1
  36. package/client/pages/meta-grist-element.js +1 -1
  37. package/client/pages/meta-grist-page.js +1 -1
  38. package/client/pages/meta-grist-tab-element.js +1 -1
  39. package/client/pages/meta-grist-tab-page.js +1 -1
  40. package/client/pages/meta-main-tab-element.js +1 -1
  41. package/client/pages/meta-main-tab-page.js +1 -1
  42. package/client/pages/meta-master-detail-element.js +1 -1
  43. package/client/pages/meta-master-detail-page.js +1 -1
  44. package/client/pages/meta-tab-detail-element.js +1 -1
  45. package/client/pages/meta-tab-detail-page.js +1 -1
  46. package/client/pages/meta-tab-element.js +1 -1
  47. package/client/pages/personalize/personal-column-selector.js +11 -11
  48. package/client/pages/terms/config-terminology.js +6 -6
  49. package/client/pages/work-code/work-code-detail-popup.js +1 -1
  50. package/client/pages/work-code/work-code-page.js +1 -1
  51. package/client/reducers/main.js +1 -1
  52. package/client/utils/meta-api.js +1 -1
  53. package/client/utils/meta-crypto.js +1 -1
  54. package/client/utils/meta-ui-util.js +103 -103
  55. package/client/utils/service-util.js +13 -13
  56. package/client/utils/terms-util.js +2 -2
  57. package/client/utils/ui-util.js +1 -1
  58. package/client/utils/value-util.js +1 -1
  59. package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
  60. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  61. package/client/viewparts/dynamic-menu-part.js +12 -12
  62. package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
  63. package/client/viewparts/dynamic-menu-portrait.js +9 -9
  64. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  65. package/package.json +2 -2
  66. package/server/activity/CommonActivity.js +2 -2
  67. package/server/constants/error-code.js +1 -1
  68. package/server/errors/license-error.js +1 -1
  69. package/server/routes.js +1 -1
  70. package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
  71. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  72. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  73. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  74. package/server/service/grid-personalize/grid-personalize.js +1 -1
  75. package/server/service/meta-activity/meta-activity-mutation.js +1 -1
  76. package/server/service/meta-activity/meta-activity-query.js +1 -1
  77. package/server/service/meta-activity/meta-activity-type.js +1 -1
  78. package/server/service/meta-secret/meta-resolver.js +1 -1
  79. package/server/service/set-translations/set-translation-resolver.js +1 -1
  80. package/server/service/work-code/work-code-mutation.js +1 -1
  81. package/server/service/work-code/work-code-query.js +1 -1
  82. package/server/service/work-code/work-code-type.js +1 -1
  83. package/server/service/work-code/work-code.js +1 -1
  84. package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
  85. package/server/service/work-code-detail/work-code-detail-query.js +1 -1
  86. package/server/service/work-code-detail/work-code-detail-type.js +1 -1
  87. package/server/service/work-code-detail/work-code-detail.js +1 -1
@@ -1,4 +1,4 @@
1
- const a0_0x167882=a0_0x157c;(function(_0x3d3dd2,_0x182643){const _0x5de46f=a0_0x157c,_0xa86cb7=_0x3d3dd2();while(!![]){try{const _0x583964=parseInt(_0x5de46f(0x219))/0x1*(parseInt(_0x5de46f(0x1d3))/0x2)+parseInt(_0x5de46f(0x21e))/0x3+-parseInt(_0x5de46f(0x1f1))/0x4+parseInt(_0x5de46f(0x208))/0x5*(-parseInt(_0x5de46f(0x1ee))/0x6)+-parseInt(_0x5de46f(0x216))/0x7*(parseInt(_0x5de46f(0x1fe))/0x8)+-parseInt(_0x5de46f(0x223))/0x9+parseInt(_0x5de46f(0x21b))/0xa;if(_0x583964===_0x182643)break;else _0xa86cb7['push'](_0xa86cb7['shift']());}catch(_0x4f72ea){_0xa86cb7['push'](_0xa86cb7['shift']());}}}(a0_0x1128,0xdce6a));function a0_0x157c(_0x24f012,_0x49f9ff){const _0x1128d2=a0_0x1128();return a0_0x157c=function(_0x157c54,_0x19dabe){_0x157c54=_0x157c54-0x1d3;let _0x2af792=_0x1128d2[_0x157c54];return _0x2af792;},a0_0x157c(_0x24f012,_0x49f9ff);}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';import{closePopup}from'@operato/popup';function a0_0x1128(){const _0x33c207=['confirmCallback','filter','tText','args','define','type','search','getGristGuttersConfig','record','includes','columns','meta-code-selector','272seAemb','forEach','push','render','search_hidden_fields','getSelectColumns','firstUpdated','getGristMetaObjectOptions','GRID','gridConfig','10QNtiwD','name','LIST','filters','string','clickCancel','query','info','gql','selectRecord','NOTHING_SELECTED','scenario','nameField','menu_template','273133fOKajZ','options','left','1706187lBOfCu','sorters','5104640XSVlRg','code','selected','2452602xfhxtj','connectedCallback','dispField','getGristSelectableConfig','getGristColumnConfig2','3071466ikVJiP','cancel','2GMSWDw','keys','length','clickEmpty','resource-object','clickSelect','getCodeByScenario','hidden','filterFields','grist','getParams','handlers','meta-object-selector','getCodeSelectorData','resource-code-selector','basicArgs','bind','fetchHandler','showToast','shadowRoot','rows','values','tButton','codeField','getCodeByEntity','select-row-toggle','select','335190QwUBfi','#ox-grist','codes','1398900LLvxbh'];a0_0x1128=function(){return _0x33c207;};return a0_0x1128();}export class MetaObjectSelectorPopup extends LitElement{static ['styles']=[CommonGristStyles,ButtonContainerStyles,css`
1
+ const a0_0x3d82bd=a0_0x4d7d;(function(_0x439483,_0x401a7e){const _0x3f61c9=a0_0x4d7d,_0x2997ff=_0x439483();while(!![]){try{const _0x82f891=-parseInt(_0x3f61c9(0xc7))/0x1*(parseInt(_0x3f61c9(0x9b))/0x2)+-parseInt(_0x3f61c9(0xd6))/0x3+-parseInt(_0x3f61c9(0xb1))/0x4+-parseInt(_0x3f61c9(0xc8))/0x5+-parseInt(_0x3f61c9(0xa2))/0x6*(-parseInt(_0x3f61c9(0xac))/0x7)+-parseInt(_0x3f61c9(0xad))/0x8+parseInt(_0x3f61c9(0xd9))/0x9;if(_0x82f891===_0x401a7e)break;else _0x2997ff['push'](_0x2997ff['shift']());}catch(_0xdb259a){_0x2997ff['push'](_0x2997ff['shift']());}}}(a0_0x5656,0xadcd0));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';function a0_0x5656(){const _0x20cae8=['codes','LIST','dispField','confirmCallback','getGristGuttersConfig','clickSelect','1wfczUP','6863210OnzbGv','NOTHING_SELECTED','#ox-grist','left','getGristSelectableConfig','select','meta-code-selector','gql','name','getCodeByEntity','selectRecord','basicArgs','sorters','columns','323586DhncYT','values','hidden','30263391ttShXp','align','getGristColumnConfig2','clickCancel','getGristMetaObjectOptions','filters','resource-code-selector','query','handlers','bind','gridConfig','searchByPagination','string','queryName','define','includes','search_hidden_fields','1611484HryfiK','record','isArray','entity','menu_template','forEach','meta-object-selector-popup','7164RdlNJa','filter','meta-','getSelectColumns','rows','resource-object','getCodeByScenario','meta-object-selector','nameField','tButton','4690oNSvAW','1756616PrYqqV','getCodeSelectorData','keys','shadowRoot','3779472QoOOgp','fetchHandler','querySelector','scenario','object','clickEmpty','codeField','push','type','getParams','search','firstUpdated','length','empty','options','grist'];a0_0x5656=function(){return _0x20cae8;};return a0_0x5656();}import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';function a0_0x4d7d(_0x659cf4,_0x5d613a){const _0x5656f4=a0_0x5656();return a0_0x4d7d=function(_0x4d7dc6,_0x1b9b63){_0x4d7dc6=_0x4d7dc6-0x9a;let _0x3d2a22=_0x5656f4[_0x4d7dc6];return _0x3d2a22;},a0_0x4d7d(_0x659cf4,_0x5d613a);}export class MetaObjectSelectorPopup extends LitElement{static ['styles']=[CommonGristStyles,ButtonContainerStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -17,9 +17,9 @@ const a0_0x167882=a0_0x157c;(function(_0x3d3dd2,_0x182643){const _0x5de46f=a0_0x
17
17
  display: flex;
18
18
  margin-left: auto;
19
19
  }
20
- `];async['connectedCallback'](){const _0x42754c=a0_0x157c;this[_0x42754c(0x202)]=this['options'][_0x42754c(0x20b)]?this[_0x42754c(0x217)][_0x42754c(0x20b)]:this[_0x42754c(0x1e2)]&&this[_0x42754c(0x1e2)][_0x42754c(0x20b)]?this[_0x42754c(0x1e2)][_0x42754c(0x20b)]:[];let _0x514d71=this[_0x42754c(0x217)][_0x42754c(0x21a)]?this['options'][_0x42754c(0x21a)]:this[_0x42754c(0x1e2)]&&this[_0x42754c(0x1e2)][_0x42754c(0x21a)]?this['basicArgs'][_0x42754c(0x21a)]:[],_0xcb50eb=this[_0x42754c(0x217)][_0x42754c(0x1db)]?this[_0x42754c(0x217)][_0x42754c(0x1db)]:this['options']['menu_template']?.[_0x42754c(0x1f8)]&&this[_0x42754c(0x217)][_0x42754c(0x215)]?.[_0x42754c(0x1f8)][_0x42754c(0x1d5)]>0x0?this[_0x42754c(0x217)][_0x42754c(0x215)][_0x42754c(0x1f8)]:[],_0x53853c=this[_0x42754c(0x217)][_0x42754c(0x1ed)];if(!_0xcb50eb||0x0==_0xcb50eb[_0x42754c(0x1d5)]){let _0x39eb57;this[_0x42754c(0x217)][_0x42754c(0x1ea)]&&(_0x39eb57=this[_0x42754c(0x217)][_0x42754c(0x1ea)]),this[_0x42754c(0x217)][_0x42754c(0x214)]&&(_0x39eb57=this['options'][_0x42754c(0x214)]),_0x39eb57&&_0xcb50eb[_0x42754c(0x200)]({'name':_0x39eb57,'operator':'eq'});}let _0x2f2189=[...MetaApi[_0x42754c(0x1f9)](!0x0,!0x1)];if(_0x53853c&&_0x53853c[_0x42754c(0x1d5)]>0x0)for(let _0x309e38=0x0;_0x309e38<_0x53853c[_0x42754c(0x1d5)];_0x309e38++){let {type:_0x427838=_0x42754c(0x20c),name:_0x29f1c9,hidden:_0x3dd8bc=!0x1,record:_0x48498b={'align':'left'},header:_0x41cdf9,sortable:_0x15679d=!0x1,width:_0x159a71=0x87,options:_0xb0f49a,select_opt:_0x2a0b46,object_opt:_0xbf8a6e}=_0x53853c[_0x309e38];if(_0x2a0b46&&(_0xb0f49a=_0x2a0b46),_0xbf8a6e&&(_0xb0f49a=_0xbf8a6e),[_0x42754c(0x1d7),'object'][_0x42754c(0x1fb)](_0x427838)?_0x427838='meta-object-selector':[_0x42754c(0x1e1)][_0x42754c(0x1fb)](_0x427838)&&(_0x427838='meta-code-selector'),'id'==_0x29f1c9)_0x2f2189[_0x42754c(0x200)]({'type':_0x42754c(0x20c),'name':_0x29f1c9,'hidden':!0x0});else{let _0x1e927e=MetaApi[_0x42754c(0x222)](_0x427838,_0x29f1c9,_0x41cdf9||_0x29f1c9,_0x48498b['align']?_0x48498b['align']:_0x42754c(0x218),!0x1,_0x15679d,_0x159a71);_0x427838['startsWith']('meta-')&&_0xbf8a6e&&_0xbf8a6e['menu']&&(_0xb0f49a=await MetaUiUtil[_0x42754c(0x205)](_0x427838,_0xb0f49a)),_0x42754c(0x1ed)===_0x427838?Array['isArray'](_0xb0f49a)?_0x1e927e[_0x42754c(0x1fa)][_0x42754c(0x217)]=_0xb0f49a:_0x42754c(0x21c)===_0xb0f49a[_0x42754c(0x1f7)]?_0x1e927e[_0x42754c(0x1fa)][_0x42754c(0x217)]=await ServiceUtil[_0x42754c(0x1e0)](_0xb0f49a[_0x42754c(0x1e8)]?_0xb0f49a[_0x42754c(0x1e8)]:_0xb0f49a[_0x42754c(0x209)]):_0x42754c(0x213)===_0xb0f49a[_0x42754c(0x1f7)]?_0x1e927e['record']['options']=await ServiceUtil[_0x42754c(0x1d9)](_0xb0f49a['name'],_0xb0f49a[_0x42754c(0x1f5)]):'entity'===_0xb0f49a['type']&&(_0x1e927e['record'][_0x42754c(0x217)]=await ServiceUtil[_0x42754c(0x1eb)](_0xb0f49a[_0x42754c(0x1f5)])):_0x42754c(0x1df)===_0x427838?_0x1e927e[_0x42754c(0x1fa)]['options']={..._0xb0f49a}:_0x42754c(0x1fd)==_0x427838&&(_0xb0f49a[_0x42754c(0x220)]&&(_0xb0f49a[_0x42754c(0x1f0)]=await ServiceUtil[_0x42754c(0x1eb)](_0xb0f49a)),_0x1e927e[_0x42754c(0x1fa)][_0x42754c(0x217)]={..._0xb0f49a}),_0x1e927e[_0x42754c(0x1da)]=_0x3dd8bc,_0x2f2189[_0x42754c(0x200)](_0x1e927e);}}else _0x2f2189['push'](MetaApi[_0x42754c(0x222)]('string',this[_0x42754c(0x217)][_0x42754c(0x1ea)],this[_0x42754c(0x217)][_0x42754c(0x1ea)],_0x42754c(0x218),!0x1,!0x0,0xb4)),this[_0x42754c(0x217)]['dispField']&&_0x2f2189['push'](MetaApi['getGristColumnConfig2'](_0x42754c(0x20c),this[_0x42754c(0x217)][_0x42754c(0x220)],this[_0x42754c(0x217)][_0x42754c(0x220)],_0x42754c(0x218),!0x1,!0x0,0x12c));_0x2f2189[_0x42754c(0x1ff)](_0x3c6c0b=>{const _0x3f327b=_0x42754c;let _0x1cb2e8=_0xcb50eb[_0x3f327b(0x1f3)](_0x4cbe75=>_0x3f327b(0x20c)==typeof _0x4cbe75?_0x3c6c0b[_0x3f327b(0x209)]==_0x4cbe75:_0x3c6c0b[_0x3f327b(0x209)]==_0x4cbe75[_0x3f327b(0x209)]);_0x1cb2e8&&_0x1cb2e8[_0x3f327b(0x1d5)]>0x0&&(_0x3c6c0b['filter']=_0x3f327b(0x20c)==typeof _0x1cb2e8[0x0]?_0x3f327b(0x1f8):_0x1cb2e8[0x0]);});let _0x360c73={'rows':MetaApi[_0x42754c(0x221)](!0x1),'pagination':MetaApi['getGristPagination100Config'](),'columns':_0x2f2189,'sorters':[..._0x514d71]};_0x360c73[_0x42754c(0x1e7)][_0x42754c(0x1de)]={'click':_0x42754c(0x1ec),'dblclick':(_0x224aac,_0x502ee6,_0x4dc756,_0x259e04,_0x2f2b3d,_0xecd086)=>{const _0x5a8c18=_0x42754c;this[_0x5a8c18(0x211)](_0x259e04);}},_0x360c73[_0x42754c(0x1e7)]['appendable']=!0x1,this[_0x42754c(0x207)]=_0x360c73,await super[_0x42754c(0x21f)]();}async[a0_0x167882(0x204)](){const _0x112df1=a0_0x167882;await super[_0x112df1(0x204)]();}[a0_0x167882(0x201)](){const _0x29981c=a0_0x167882;return html`
21
- <ox-grist id="ox-grist" .config=${this[_0x29981c(0x207)]} .mode=${isMobileDevice()?_0x29981c(0x20a):_0x29981c(0x206)} auto-fetch
22
- .fetchHandler=${this[_0x29981c(0x1e4)][_0x29981c(0x1e3)](this)}>
20
+ `];async['connectedCallback'](){const _0x4530fc=a0_0x4d7d;this[_0x4530fc(0x9a)]=this['options'][_0x4530fc(0xde)]?this[_0x4530fc(0xbf)]['filters']:this[_0x4530fc(0xd3)]&&this[_0x4530fc(0xd3)][_0x4530fc(0xde)]?this[_0x4530fc(0xd3)]['filters']:[];let _0xcf7df0=this[_0x4530fc(0xbf)]['sorters']?this['options']['sorters']:this[_0x4530fc(0xd3)]&&this[_0x4530fc(0xd3)][_0x4530fc(0xd4)]?this[_0x4530fc(0xd3)]['sorters']:[],_0x31f28a=this[_0x4530fc(0xbf)]['filterFields']?this[_0x4530fc(0xbf)]['filterFields']:this['options'][_0x4530fc(0x9f)]?.[_0x4530fc(0xbb)]&&this[_0x4530fc(0xbf)][_0x4530fc(0x9f)]?.['search'][_0x4530fc(0xbd)]>0x0?this[_0x4530fc(0xbf)][_0x4530fc(0x9f)][_0x4530fc(0xbb)]:[],_0x1f15a3=this[_0x4530fc(0xbf)][_0x4530fc(0xcd)];if(!_0x31f28a||0x0==_0x31f28a[_0x4530fc(0xbd)]){let _0x20c92b;this[_0x4530fc(0xbf)][_0x4530fc(0xb7)]&&(_0x20c92b=this[_0x4530fc(0xbf)][_0x4530fc(0xb7)]),this[_0x4530fc(0xbf)][_0x4530fc(0xaa)]&&(_0x20c92b=this['options'][_0x4530fc(0xaa)]),_0x20c92b&&_0x31f28a['push']({'name':_0x20c92b,'operator':'eq'});}let _0x24c538=[...MetaApi[_0x4530fc(0xc5)](!0x0,!0x1)];if(_0x1f15a3&&_0x1f15a3[_0x4530fc(0xbd)]>0x0)for(let _0xc18f95=0x0;_0xc18f95<_0x1f15a3[_0x4530fc(0xbd)];_0xc18f95++){let {type:_0x5ef265='string',name:_0x5c7bd8,hidden:_0x58c58c=!0x1,record:_0x401e9f={'align':_0x4530fc(0xcb)},header:_0x57050e,sortable:_0x1b995a=!0x1,width:_0x4ab720=0x87,options:_0x2c5196,select_opt:_0x1b1421,object_opt:_0x2b8008}=_0x1f15a3[_0xc18f95];if(_0x1b1421&&(_0x2c5196=_0x1b1421),_0x2b8008&&(_0x2c5196=_0x2b8008),[_0x4530fc(0xa7),_0x4530fc(0xb5)][_0x4530fc(0xe8)](_0x5ef265)?_0x5ef265=_0x4530fc(0xa9):[_0x4530fc(0xdf)]['includes'](_0x5ef265)&&(_0x5ef265=_0x4530fc(0xce)),'id'==_0x5c7bd8)_0x24c538[_0x4530fc(0xb8)]({'type':_0x4530fc(0xe5),'name':_0x5c7bd8,'hidden':!0x0});else{let _0x14dd2f=MetaApi[_0x4530fc(0xdb)](_0x5ef265,_0x5c7bd8,_0x57050e||_0x5c7bd8,_0x401e9f[_0x4530fc(0xda)]?_0x401e9f[_0x4530fc(0xda)]:_0x4530fc(0xcb),!0x1,_0x1b995a,_0x4ab720);_0x5ef265['startsWith'](_0x4530fc(0xa4))&&_0x2b8008&&_0x2b8008['menu']&&(_0x2c5196=await MetaUiUtil[_0x4530fc(0xdd)](_0x5ef265,_0x2c5196)),_0x4530fc(0xcd)===_0x5ef265?Array[_0x4530fc(0x9d)](_0x2c5196)?_0x14dd2f[_0x4530fc(0x9c)][_0x4530fc(0xbf)]=_0x2c5196:'code'===_0x2c5196[_0x4530fc(0xb9)]?_0x14dd2f['record'][_0x4530fc(0xbf)]=await ServiceUtil[_0x4530fc(0xae)](_0x2c5196[_0x4530fc(0xd7)]?_0x2c5196[_0x4530fc(0xd7)]:_0x2c5196[_0x4530fc(0xd0)]):_0x4530fc(0xb4)===_0x2c5196[_0x4530fc(0xb9)]?_0x14dd2f[_0x4530fc(0x9c)][_0x4530fc(0xbf)]=await ServiceUtil[_0x4530fc(0xa8)](_0x2c5196[_0x4530fc(0xd0)],_0x2c5196['args']):_0x4530fc(0x9e)===_0x2c5196[_0x4530fc(0xb9)]&&(_0x14dd2f[_0x4530fc(0x9c)][_0x4530fc(0xbf)]=await ServiceUtil[_0x4530fc(0xd1)](_0x2c5196['args'])):_0x4530fc(0xa9)===_0x5ef265?_0x14dd2f[_0x4530fc(0x9c)]['options']={..._0x2c5196}:'meta-code-selector'==_0x5ef265&&(_0x2c5196[_0x4530fc(0xc3)]&&(_0x2c5196[_0x4530fc(0xc1)]=await ServiceUtil['getCodeByEntity'](_0x2c5196)),_0x14dd2f['record'][_0x4530fc(0xbf)]={..._0x2c5196}),_0x14dd2f[_0x4530fc(0xd8)]=_0x58c58c,_0x24c538[_0x4530fc(0xb8)](_0x14dd2f);}}else _0x24c538[_0x4530fc(0xb8)](MetaApi[_0x4530fc(0xdb)](_0x4530fc(0xe5),this[_0x4530fc(0xbf)][_0x4530fc(0xb7)],this[_0x4530fc(0xbf)][_0x4530fc(0xb7)],_0x4530fc(0xcb),!0x1,!0x0,0xb4)),this['options']['dispField']&&_0x24c538[_0x4530fc(0xb8)](MetaApi['getGristColumnConfig2']('string',this[_0x4530fc(0xbf)][_0x4530fc(0xc3)],this[_0x4530fc(0xbf)][_0x4530fc(0xc3)],_0x4530fc(0xcb),!0x1,!0x0,0x12c));_0x24c538[_0x4530fc(0xa0)](_0x15b5c5=>{const _0xfe3c5b=_0x4530fc;let _0x3b0a73=_0x31f28a[_0xfe3c5b(0xa3)](_0x274cbb=>_0xfe3c5b(0xe5)==typeof _0x274cbb?_0x15b5c5[_0xfe3c5b(0xd0)]==_0x274cbb:_0x15b5c5[_0xfe3c5b(0xd0)]==_0x274cbb[_0xfe3c5b(0xd0)]);_0x3b0a73&&_0x3b0a73[_0xfe3c5b(0xbd)]>0x0&&(_0x15b5c5[_0xfe3c5b(0xa3)]='string'==typeof _0x3b0a73[0x0]?_0xfe3c5b(0xbb):_0x3b0a73[0x0]);});let _0x201023={'rows':MetaApi[_0x4530fc(0xcc)](!0x1),'pagination':MetaApi['getGristPagination100Config'](),'columns':_0x24c538,'sorters':[..._0xcf7df0]};_0x201023[_0x4530fc(0xa6)][_0x4530fc(0xe1)]={'click':'select-row-toggle','dblclick':(_0x1c2c3f,_0x2d3a14,_0x224306,_0x23c0af,_0x2635c7,_0x197b37)=>{const _0x403588=_0x4530fc;this[_0x403588(0xd2)](_0x23c0af);}},_0x201023[_0x4530fc(0xa6)]['appendable']=!0x1,this[_0x4530fc(0xe3)]=_0x201023,await super['connectedCallback']();}async[a0_0x3d82bd(0xbc)](){await super['firstUpdated']();}['render'](){const _0x387c80=a0_0x3d82bd;return html`
21
+ <ox-grist id="ox-grist" .config=${this[_0x387c80(0xe3)]} .mode=${isMobileDevice()?_0x387c80(0xc2):'GRID'} auto-fetch
22
+ .fetchHandler=${this[_0x387c80(0xb2)]['bind'](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_0x167882=a0_0x157c;(function(_0x3d3dd2,_0x182643){const _0x5de46f=a0_0x
27
27
  </div>
28
28
  </ox-grist>
29
29
  <div id="button-container" class="button-container">
30
- <mwc-button raised label="${TermsUtil[_0x29981c(0x1e9)]('empty')}" style="margin-left:7px;margin-top:7px;"
31
- @click=${this[_0x29981c(0x1d6)][_0x29981c(0x1e3)](this)}>
30
+ <mwc-button raised label="${TermsUtil[_0x387c80(0xab)](_0x387c80(0xbe))}" style="margin-left:7px;margin-top:7px;"
31
+ @click=${this[_0x387c80(0xb6)]['bind'](this)}>
32
32
  </mwc-button>
33
- <mwc-button raised label="${TermsUtil['tButton'](_0x29981c(0x224))}" style="margin-left:7px;margin-top:7px;"
34
- @click=${this['clickCancel']['bind'](this)}>
33
+ <mwc-button raised label="${TermsUtil[_0x387c80(0xab)]('cancel')}" style="margin-left:7px;margin-top:7px;"
34
+ @click=${this[_0x387c80(0xdc)][_0x387c80(0xe2)](this)}>
35
35
  </mwc-button>
36
- <mwc-button raised label="${TermsUtil[_0x29981c(0x1e9)]('select')}" style="margin-left:7px;margin-top:7px;"
37
- @click=${this[_0x29981c(0x1d8)][_0x29981c(0x1e3)](this)}>
36
+ <mwc-button raised label="${TermsUtil['tButton']('select')}" style="margin-left:7px;margin-top:7px;"
37
+ @click=${this[_0x387c80(0xc6)][_0x387c80(0xe2)](this)}>
38
38
  </mwc-button>
39
39
  </div>
40
- `;}get['grist'](){const _0x3f8e10=a0_0x167882;return this[_0x3f8e10(0x1e6)]['querySelector'](_0x3f8e10(0x1ef));}async[a0_0x167882(0x1e4)]({page:_0x34d878=0x0,limit:_0x676149=0x0,sorters:_0x8f646e=[],filters:_0x319dc6=[]}){const _0x2c19fa=a0_0x167882;let _0xe66872=[...this[_0x2c19fa(0x202)]];_0x319dc6[_0x2c19fa(0x1ff)](_0x1a8d57=>{const _0x39dc57=_0x2c19fa;let _0x77a063=_0xe66872[_0x39dc57(0x1f3)](_0x3fd5f3=>_0x1a8d57['name']==_0x3fd5f3[_0x39dc57(0x209)]);_0x77a063&&_0x77a063[_0x39dc57(0x1d5)]>0x0&&delete _0xe66872[_0x1a8d57[_0x39dc57(0x209)]],_0xe66872[_0x39dc57(0x200)](_0x1a8d57);});let _0x5c7a59=ValueUtil[_0x2c19fa(0x1dd)](this[_0x2c19fa(0x217)]['menu_template']&&this[_0x2c19fa(0x217)][_0x2c19fa(0x215)][_0x2c19fa(0x210)]||{},_0x2c19fa(0x20e),'after_set_fields'),_0x56caad=Object[_0x2c19fa(0x1d4)](_0x5c7a59||{}),_0x4db14a=MetaApi[_0x2c19fa(0x203)](this['gridConfig'][_0x2c19fa(0x1fc)][_0x2c19fa(0x1f3)](_0x4b598e=>!_0x56caad[_0x2c19fa(0x1fb)](_0x4b598e[_0x2c19fa(0x209)])));return await MetaApi['searchByPagination'](this['options']['queryName'],_0xe66872,_0x8f646e,_0x34d878,_0x676149,_0x4db14a);}async['clickEmpty'](_0x205521){const _0x3b3217=a0_0x167882;this[_0x3b3217(0x1f2)]&&this[_0x3b3217(0x1f2)](null),closePopup(this);}async[a0_0x167882(0x20d)](_0x52280c){closePopup(this);}async[a0_0x167882(0x1d8)](_0xf0b172){const _0x9b5336=a0_0x167882;let _0x23f2ce=this[_0x9b5336(0x1dc)][_0x9b5336(0x21d)];_0x23f2ce&&0x0!=_0x23f2ce['length']?this[_0x9b5336(0x211)](_0x23f2ce[0x0]):MetaApi[_0x9b5336(0x1e5)](_0x9b5336(0x20f),TermsUtil[_0x9b5336(0x1f4)](_0x9b5336(0x212)));}async[a0_0x167882(0x211)](_0x55128f){const _0x129ebd=a0_0x167882;this[_0x129ebd(0x1f2)]&&this['confirmCallback'](_0x55128f),closePopup(this);}}customElements[a0_0x167882(0x1f6)]('meta-object-selector-popup',MetaObjectSelectorPopup);
40
+ `;}get[a0_0x3d82bd(0xc0)](){const _0x59bb50=a0_0x3d82bd;return this[_0x59bb50(0xb0)][_0x59bb50(0xb3)](_0x59bb50(0xca));}async['fetchHandler']({page:_0x208469=0x0,limit:_0x43bc2b=0x0,sorters:_0x43933c=[],filters:_0xe35523=[]}){const _0x1d10c0=a0_0x3d82bd;let _0x112c76=[...this[_0x1d10c0(0x9a)]];_0xe35523[_0x1d10c0(0xa0)](_0x1d6bda=>{const _0x46e278=_0x1d10c0;let _0x14bf1c=_0x112c76[_0x46e278(0xa3)](_0x52bce7=>_0x1d6bda[_0x46e278(0xd0)]==_0x52bce7['name']);_0x14bf1c&&_0x14bf1c[_0x46e278(0xbd)]>0x0&&delete _0x112c76[_0x1d6bda[_0x46e278(0xd0)]],_0x112c76[_0x46e278(0xb8)](_0x1d6bda);});let _0x4d6fe8=ValueUtil[_0x1d10c0(0xba)](this[_0x1d10c0(0xbf)][_0x1d10c0(0x9f)]&&this['options'][_0x1d10c0(0x9f)][_0x1d10c0(0xcf)]||{},_0x1d10c0(0xe0),'after_set_fields'),_0x3be052=Object[_0x1d10c0(0xaf)](_0x4d6fe8||{}),_0x595b7f=MetaApi[_0x1d10c0(0xa5)](this[_0x1d10c0(0xe3)][_0x1d10c0(0xd5)]['filter'](_0x4d883e=>!_0x3be052[_0x1d10c0(0xe8)](_0x4d883e['name'])));return await MetaApi[_0x1d10c0(0xe4)](this[_0x1d10c0(0xbf)][_0x1d10c0(0xe6)],_0x112c76,_0x43933c,_0x208469,_0x43bc2b,_0x595b7f);}async[a0_0x3d82bd(0xb6)](_0x59968a){const _0xe94b29=a0_0x3d82bd;this[_0xe94b29(0xc4)]&&this[_0xe94b29(0xc4)](null),closePopup(this);}async[a0_0x3d82bd(0xdc)](_0x3c12f1){closePopup(this);}async[a0_0x3d82bd(0xc6)](_0x5549de){const _0x5ae92d=a0_0x3d82bd;let _0x1c32a0=this['grist']['selected'];_0x1c32a0&&0x0!=_0x1c32a0['length']?this[_0x5ae92d(0xd2)](_0x1c32a0[0x0]):MetaApi['showToast']('info',TermsUtil['tText'](_0x5ae92d(0xc9)));}async[a0_0x3d82bd(0xd2)](_0x2492d9){const _0x18e528=a0_0x3d82bd;this[_0x18e528(0xc4)]&&this[_0x18e528(0xc4)](_0x2492d9),closePopup(this);}}customElements[a0_0x3d82bd(0xe7)](a0_0x3d82bd(0xa1),MetaObjectSelectorPopup);
@@ -1 +1 @@
1
- const a0_0x483193=a0_0x59dd;(function(_0x9dd19f,_0x2977e7){const _0x4a7711=a0_0x59dd,_0x33c26b=_0x9dd19f();while(!![]){try{const _0x336050=parseInt(_0x4a7711(0xdb))/0x1*(-parseInt(_0x4a7711(0xbf))/0x2)+-parseInt(_0x4a7711(0xd6))/0x3+-parseInt(_0x4a7711(0xc6))/0x4*(-parseInt(_0x4a7711(0xee))/0x5)+parseInt(_0x4a7711(0xf0))/0x6*(parseInt(_0x4a7711(0xe4))/0x7)+parseInt(_0x4a7711(0xe9))/0x8*(-parseInt(_0x4a7711(0xfe))/0x9)+parseInt(_0x4a7711(0xcf))/0xa*(parseInt(_0x4a7711(0xfa))/0xb)+parseInt(_0x4a7711(0xf1))/0xc;if(_0x336050===_0x2977e7)break;else _0x33c26b['push'](_0x33c26b['shift']());}catch(_0x19fc59){_0x33c26b['push'](_0x33c26b['shift']());}}}(a0_0x5ae3,0xeb74b));function a0_0x59dd(_0x50a5e6,_0x476613){const _0x5ae389=a0_0x5ae3();return a0_0x59dd=function(_0x59dd64,_0x8228e6){_0x59dd64=_0x59dd64-0xbf;let _0x42b290=_0x5ae389[_0x59dd64];return _0x42b290;},a0_0x59dd(_0x50a5e6,_0x476613);}import{MetaApi}from'./../utils/meta-api';function a0_0x5ae3(){const _0x455c10=['parseBasicServiceConfigs','etc','errors','tagName','excuteOpenPopupButtonClick','title_detail','fieldChangeHandlers','toLowerCase','10vVgoqv','isElement','parseBasicFormConfigs','setParentId','executeCallScenarioButtonClick','addEventListener','split','871716AVuoeE','etcConfig','startsWith','after','parent_id','1GModIn','parseBasicGridConfigs','menu','dispatchEvent','fetch','properties','grist','data','keys','79121sxFBNI','body','detail','includes','meta-form-','12042080qqyANt','params','field-change','form-field-change','menuInfo','5840gjlewp','filterForm','636wuNpos','2243556FvAeba','parseBasicButtonConfigs','isNotEmpty','active','dataChangeEventHandler','lifecycle','is_detail','title','connectedCallback','2890547NRwAiD','isEmpty','parseBasicTabConfigs','data-changed','9Ciibfu','1078302BWAckX','isDetail','getParams','is_popup','isPage','name','fetchHandler','5656Zypdyz'];a0_0x5ae3=function(){return _0x455c10;};return a0_0x5ae3();}import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x182614=>class extends _0x182614{static get[a0_0x483193(0xe0)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x2c3eac=>Boolean(_0x2c3eac)},'is_popup':{'type':Boolean,'converter':_0x53d157=>Boolean(_0x53d157)},'is_activity':{'type':Boolean,'converter':_0x563ea7=>Boolean(_0x563ea7)},'is_readonly':{'type':Boolean,'converter':_0x818dc7=>Boolean(_0x818dc7)}};}get[a0_0x483193(0xd0)](){const _0x173251=a0_0x483193;return!0x0===this[_0x173251(0xf7)]||!0x0===this[_0x173251(0xc2)];}get[a0_0x483193(0xc0)](){const _0x458375=a0_0x483193;return!ValueUtil[_0x458375(0xfb)](this[_0x458375(0xf7)])&&this[_0x458375(0xf7)];}async['dataChangeEventHandler'](_0x5f501d){const _0x2de2f0=a0_0x483193;let {after:_0x3ed18c,before:_0x5c23b6,column:_0x16a0ec,record:_0x4ddcd8,row:_0x48fa70}=_0x5f501d[_0x2de2f0(0xe6)],_0x2080eb=_0x16a0ec[_0x2de2f0(0xc4)];if(Object[_0x2de2f0(0xe3)](this['fieldChangeHandlers']||{})[_0x2de2f0(0xe7)](_0x2080eb)){let _0x9c4ca1,_0x34de0f=(await MetaApi['callScenario'](void 0x0,this[_0x2de2f0(0xcd)][_0x2080eb],{'columnName':_0x2080eb,'column':_0x16a0ec,'record':_0x4ddcd8,'after':_0x3ed18c,'before':_0x5c23b6,'row':_0x48fa70},!0x1))[_0x2de2f0(0xe2)]['runScenario'][_0x2de2f0(0xe2)]['result'];if(!_0x34de0f)return;_0x9c4ca1=this[_0x2de2f0(0xe1)]?this[_0x2de2f0(0xe1)][_0x2de2f0(0xe1)][_0x2de2f0(0xe5)]:this,Object[_0x2de2f0(0xe3)](_0x34de0f)['forEach'](_0x69769d=>{const _0x12a437=_0x2de2f0;_0x9c4ca1[_0x12a437(0xde)](new CustomEvent(_0x12a437(0xeb),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x4ddcd8,'row':_0x48fa70,'after':_0x34de0f[_0x69769d],'before':_0x4ddcd8[_0x69769d],'column':{'name':_0x69769d}}}));});}this[_0x2de2f0(0xde)](new CustomEvent(_0x2de2f0(0xfd),{'bubbles':!0x0,'composed':!0x0,'detail':_0x5f501d[_0x2de2f0(0xe6)]}));}async[a0_0x483193(0xf9)](){const _0x54a3e8=a0_0x483193;super[_0x54a3e8(0xf9)]&&await super[_0x54a3e8(0xf9)](),this[_0x54a3e8(0xca)][_0x54a3e8(0xce)]()[_0x54a3e8(0xd8)](_0x54a3e8(0xe8))?this[_0x54a3e8(0xd4)](_0x54a3e8(0xec),async _0x3efd32=>{const _0x52c20e=_0x54a3e8;await this[_0x52c20e(0xf5)](_0x3efd32);}):this['addEventListener'](_0x54a3e8(0xeb),async _0x208d8c=>{const _0x32c826=_0x54a3e8;await this[_0x32c826(0xf5)](_0x208d8c);});}async['pageUpdated'](_0x14752d,_0x199afd,_0x3f6e3a){const _0x5b68bb=a0_0x483193;let _0x16e5ec=this[_0x5b68bb(0xf6)]?.[_0x5b68bb(0xea)]?this['lifecycle']['params']:{};this[_0x5b68bb(0xc3)]&&this[_0x5b68bb(0xf4)]&&0x0==_0x3f6e3a[_0x5b68bb(0xf4)]&&ValueUtil[_0x5b68bb(0xf3)](_0x16e5ec)&&this[_0x5b68bb(0xdf)]();}get['isPopup'](){const _0x22a589=a0_0x483193;return!ValueUtil[_0x22a589(0xfb)](this[_0x22a589(0xc2)])&&this[_0x22a589(0xc2)];}get['isPage'](){const _0x4c88ab=a0_0x483193;return!this[_0x4c88ab(0xf7)]&&!this[_0x4c88ab(0xc2)];}async['getAndParseMenuMeta'](){const _0xd7434=a0_0x483193;let _0x12c8ff=await MetaApi['getMenuMeta'](this);_0x12c8ff&&(this[_0xd7434(0xed)]=_0x12c8ff[_0xd7434(0xdd)],this[_0xd7434(0xd7)]=_0x12c8ff[_0xd7434(0xc8)],this[_0xd7434(0xdc)]&&this[_0xd7434(0xdc)](_0x12c8ff),this[_0xd7434(0xc7)]&&this[_0xd7434(0xc7)](_0x12c8ff),this[_0xd7434(0xd1)]&&this['parseBasicFormConfigs'](_0x12c8ff),this[_0xd7434(0xfc)]&&this[_0xd7434(0xfc)](_0x12c8ff),this[_0xd7434(0xf2)]&&this[_0xd7434(0xf2)](_0x12c8ff));}async[a0_0x483193(0xdf)](){const _0x2fde54=a0_0x483193;ValueUtil[_0x2fde54(0xf3)](this['grist'])?this[_0x2fde54(0xe1)][_0x2fde54(0xdf)]():(ValueUtil[_0x2fde54(0xf3)](this[_0x2fde54(0xef)])||this[_0x2fde54(0xc5)])&&await this[_0x2fde54(0xc5)]();}async[a0_0x483193(0xcb)](_0x361414,_0x5f017f,_0x41bdc4){const _0x3aaa79=a0_0x483193;let _0x496bb0=TermsUtil['tTitle'](_0x361414[_0x3aaa79(0xf8)]);ValueUtil[_0x3aaa79(0xf3)](_0x361414[_0x3aaa79(0xcc)])&&(_0x496bb0=_0x496bb0+'-'+ValueUtil[_0x3aaa79(0xc1)](_0x5f017f,..._0x361414[_0x3aaa79(0xcc)][_0x3aaa79(0xd5)]('.'))),MetaApi['openDynamicPopup'](_0x496bb0,_0x361414,_0x5f017f,_0x41bdc4);}async[a0_0x483193(0xd3)](_0x2ff323,_0x2b0971,_0x55ea83){const _0x15f263=a0_0x483193;let _0x3cff20=await MetaApi['callScenario'](_0x2ff323[_0x15f263(0xc4)],_0x2ff323[_0x15f263(0xc4)],_0x2b0971);!0x1!==_0x3cff20&&!_0x3cff20[_0x15f263(0xc9)]&&ValueUtil[_0x15f263(0xf3)](_0x2ff323[_0x15f263(0xd9)])&&_0x55ea83();}[a0_0x483193(0xd2)](_0x21e91d){const _0x46a744=a0_0x483193;this[_0x46a744(0xda)]=_0x21e91d,this[_0x46a744(0xdf)]();}};
1
+ function a0_0x54f5(_0x163dd0,_0x43dd3f){const _0x58393b=a0_0x5839();return a0_0x54f5=function(_0x54f5a4,_0x17fefa){_0x54f5a4=_0x54f5a4-0x118;let _0x25fc07=_0x58393b[_0x54f5a4];return _0x25fc07;},a0_0x54f5(_0x163dd0,_0x43dd3f);}const a0_0x26ceaa=a0_0x54f5;function a0_0x5839(){const _0x18d366=['5EUxsjn','parseBasicFormConfigs','split','isEmpty','isPopup','setParentId','params','21798410gLrwKg','after','pageUpdated','errors','active','getParams','fieldChangeHandlers','detail','isPage','parseBasicButtonConfigs','field-change','tTitle','8ZSIyfx','startsWith','filterForm','includes','isElement','dataChangeEventHandler','dispatchEvent','parseBasicGridConfigs','callScenario','188052pDOMAv','connectedCallback','parseBasicTabConfigs','form-field-change','etcConfig','name','1702764JYkLvt','204669PzCZnv','parseBasicServiceConfigs','executeCallScenarioButtonClick','getMenuMeta','is_detail','98JoASVT','fetchHandler','title','2584796QatMWx','menu','isNotEmpty','forEach','parent_id','etc','tagName','grist','openDynamicPopup','keys','addEventListener','menuInfo','toLowerCase','data','meta-form-','763722RVbgUu','fetch','557324ZmcVnQ','data-changed','title_detail','lifecycle','is_popup'];a0_0x5839=function(){return _0x18d366;};return a0_0x5839();}(function(_0x27cb95,_0x12494b){const _0x31567b=a0_0x54f5,_0x1458ec=_0x27cb95();while(!![]){try{const _0x3ac505=-parseInt(_0x31567b(0x122))/0x1+-parseInt(_0x31567b(0x124))/0x2+-parseInt(_0x31567b(0x14b))/0x3+parseInt(_0x31567b(0x154))/0x4*(-parseInt(_0x31567b(0x129))/0x5)+parseInt(_0x31567b(0x145))/0x6*(parseInt(_0x31567b(0x151))/0x7)+-parseInt(_0x31567b(0x13c))/0x8*(-parseInt(_0x31567b(0x14c))/0x9)+parseInt(_0x31567b(0x130))/0xa;if(_0x3ac505===_0x12494b)break;else _0x1458ec['push'](_0x1458ec['shift']());}catch(_0x3a77be){_0x1458ec['push'](_0x1458ec['shift']());}}}(a0_0x5839,0x5e0af));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x177f36=>class extends _0x177f36{static get['properties'](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x23db6d=>Boolean(_0x23db6d)},'is_popup':{'type':Boolean,'converter':_0x45d1cd=>Boolean(_0x45d1cd)},'is_activity':{'type':Boolean,'converter':_0x3d428b=>Boolean(_0x3d428b)},'is_readonly':{'type':Boolean,'converter':_0x22b57f=>Boolean(_0x22b57f)}};}get[a0_0x26ceaa(0x140)](){const _0x52e729=a0_0x26ceaa;return!0x0===this[_0x52e729(0x150)]||!0x0===this['is_popup'];}get['isDetail'](){const _0x339010=a0_0x26ceaa;return!ValueUtil[_0x339010(0x12c)](this['is_detail'])&&this[_0x339010(0x150)];}async[a0_0x26ceaa(0x141)](_0x30a751){const _0x20dd6f=a0_0x26ceaa;let {after:_0x3e0898,before:_0x46af57,column:_0x373b67,record:_0x3b9398,row:_0x2d3c7c}=_0x30a751[_0x20dd6f(0x137)],_0x3b1893=_0x373b67['name'];if(Object[_0x20dd6f(0x11c)](this[_0x20dd6f(0x136)]||{})[_0x20dd6f(0x13f)](_0x3b1893)){let _0x923a75,_0x51bfdd=(await MetaApi[_0x20dd6f(0x144)](void 0x0,this[_0x20dd6f(0x136)][_0x3b1893],{'columnName':_0x3b1893,'column':_0x373b67,'record':_0x3b9398,'after':_0x3e0898,'before':_0x46af57,'row':_0x2d3c7c},!0x1))[_0x20dd6f(0x120)]['runScenario'][_0x20dd6f(0x120)]['result'];if(!_0x51bfdd)return;_0x923a75=this[_0x20dd6f(0x11a)]?this[_0x20dd6f(0x11a)][_0x20dd6f(0x11a)]['body']:this,Object[_0x20dd6f(0x11c)](_0x51bfdd)[_0x20dd6f(0x157)](_0x241c70=>{const _0x5dde1d=_0x20dd6f;_0x923a75[_0x5dde1d(0x142)](new CustomEvent(_0x5dde1d(0x13a),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x3b9398,'row':_0x2d3c7c,'after':_0x51bfdd[_0x241c70],'before':_0x3b9398[_0x241c70],'column':{'name':_0x241c70}}}));});}this[_0x20dd6f(0x142)](new CustomEvent(_0x20dd6f(0x125),{'bubbles':!0x0,'composed':!0x0,'detail':_0x30a751['detail']}));}async[a0_0x26ceaa(0x146)](){const _0x52813b=a0_0x26ceaa;super[_0x52813b(0x146)]&&await super[_0x52813b(0x146)](),this[_0x52813b(0x119)][_0x52813b(0x11f)]()[_0x52813b(0x13d)](_0x52813b(0x121))?this[_0x52813b(0x11d)](_0x52813b(0x148),async _0x5d9abf=>{const _0x9dc00c=_0x52813b;await this[_0x9dc00c(0x141)](_0x5d9abf);}):this[_0x52813b(0x11d)]('field-change',async _0x4f19a9=>{const _0x55bc69=_0x52813b;await this[_0x55bc69(0x141)](_0x4f19a9);});}async[a0_0x26ceaa(0x132)](_0x3c9190,_0x5ec4c4,_0x539cc5){const _0x390a31=a0_0x26ceaa;let _0x16e173=this[_0x390a31(0x127)]?.[_0x390a31(0x12f)]?this[_0x390a31(0x127)][_0x390a31(0x12f)]:{};this[_0x390a31(0x138)]&&this[_0x390a31(0x134)]&&0x0==_0x539cc5[_0x390a31(0x134)]&&ValueUtil[_0x390a31(0x156)](_0x16e173)&&this['fetch']();}get[a0_0x26ceaa(0x12d)](){const _0x3f5759=a0_0x26ceaa;return!ValueUtil[_0x3f5759(0x12c)](this[_0x3f5759(0x128)])&&this[_0x3f5759(0x128)];}get[a0_0x26ceaa(0x138)](){const _0x47bba9=a0_0x26ceaa;return!this[_0x47bba9(0x150)]&&!this[_0x47bba9(0x128)];}async['getAndParseMenuMeta'](){const _0x20ba33=a0_0x26ceaa;let _0x9bdb25=await MetaApi[_0x20ba33(0x14f)](this);_0x9bdb25&&(this[_0x20ba33(0x11e)]=_0x9bdb25[_0x20ba33(0x155)],this[_0x20ba33(0x149)]=_0x9bdb25[_0x20ba33(0x118)],this['parseBasicGridConfigs']&&this[_0x20ba33(0x143)](_0x9bdb25),this[_0x20ba33(0x14d)]&&this[_0x20ba33(0x14d)](_0x9bdb25),this['parseBasicFormConfigs']&&this[_0x20ba33(0x12a)](_0x9bdb25),this[_0x20ba33(0x147)]&&this[_0x20ba33(0x147)](_0x9bdb25),this['parseBasicButtonConfigs']&&this[_0x20ba33(0x139)](_0x9bdb25));}async[a0_0x26ceaa(0x123)](){const _0x24948b=a0_0x26ceaa;ValueUtil[_0x24948b(0x156)](this[_0x24948b(0x11a)])?this[_0x24948b(0x11a)]['fetch']():(ValueUtil[_0x24948b(0x156)](this[_0x24948b(0x13e)])||this[_0x24948b(0x152)])&&await this[_0x24948b(0x152)]();}async['excuteOpenPopupButtonClick'](_0x428963,_0x3236da,_0x13d7f9){const _0x4f7eaa=a0_0x26ceaa;let _0x14d403=TermsUtil[_0x4f7eaa(0x13b)](_0x428963[_0x4f7eaa(0x153)]);ValueUtil[_0x4f7eaa(0x156)](_0x428963[_0x4f7eaa(0x126)])&&(_0x14d403=_0x14d403+'-'+ValueUtil[_0x4f7eaa(0x135)](_0x3236da,..._0x428963[_0x4f7eaa(0x126)][_0x4f7eaa(0x12b)]('.'))),MetaApi[_0x4f7eaa(0x11b)](_0x14d403,_0x428963,_0x3236da,_0x13d7f9);}async[a0_0x26ceaa(0x14e)](_0x318286,_0x59e1d8,_0x22d799){const _0x1d8655=a0_0x26ceaa;let _0x31c85c=await MetaApi[_0x1d8655(0x144)](_0x318286[_0x1d8655(0x14a)],_0x318286['name'],_0x59e1d8);!0x1!==_0x31c85c&&!_0x31c85c[_0x1d8655(0x133)]&&ValueUtil[_0x1d8655(0x156)](_0x318286[_0x1d8655(0x131)])&&_0x22d799();}[a0_0x26ceaa(0x12e)](_0x530dab){const _0x52c98a=a0_0x26ceaa;this[_0x52c98a(0x158)]=_0x530dab,this[_0x52c98a(0x123)]();}};
@@ -1,4 +1,4 @@
1
- function a0_0x48ce(){const _0x1363f4=['stringify','parseGristConfigs','getData','1960042fsFvYd','parseGridConfigSet','parseBasicGridConfigs','getSelectedIdList','menuInfo','isNotEmpty','deleteByIds','941240eQImKf','getBasicGristHtml','findOne','parse','gridColumnConfig','clear','save','find','ox-filters-form','context','147KELoFo','renderRoot','querySelector','205HQePSS','pageInitialized','exportableData','render','ox-grist','63Arkrxx','grid','grist','startsWith','gridEmphasized','131952nikGzv','connectedCallback','126702xwGExV','keys','getAndParseMenuMeta','shadowRoot','searchConfig','forEach','firstUpdated','patchesForUpdateMultiple','gristId','gridConfig','updateMultiple','dataSet','delete','records','24195850fWgQeA','import','isPage','fetch','4460391HEEnqx','data','getParams','grid_column','81857TVxrqE','filterFormId','export','title'];a0_0x48ce=function(){return _0x1363f4;};return a0_0x48ce();}const a0_0x5b4065=a0_0xa1b3;(function(_0x84dd27,_0x305496){const _0x28f7d2=a0_0xa1b3,_0x1f786e=_0x84dd27();while(!![]){try{const _0x533ff7=parseInt(_0x28f7d2(0x1ec))/0x1+-parseInt(_0x28f7d2(0x1f3))/0x2+parseInt(_0x28f7d2(0x1e8))/0x3+-parseInt(_0x28f7d2(0x1d4))/0x4*(-parseInt(_0x28f7d2(0x1ca))/0x5)+-parseInt(_0x28f7d2(0x1d6))/0x6*(-parseInt(_0x28f7d2(0x204))/0x7)+-parseInt(_0x28f7d2(0x1fa))/0x8*(-parseInt(_0x28f7d2(0x1cf))/0x9)+-parseInt(_0x28f7d2(0x1e4))/0xa;if(_0x533ff7===_0x305496)break;else _0x1f786e['push'](_0x1f786e['shift']());}catch(_0x1ef13a){_0x1f786e['push'](_0x1f786e['shift']());}}}(a0_0x48ce,0xc0876));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0xa1b3(_0x13abbf,_0x1d6527){const _0x48ce3b=a0_0x48ce();return a0_0xa1b3=function(_0xa1b384,_0x4f0615){_0xa1b384=_0xa1b384-0x1ca;let _0x5b9b27=_0x48ce3b[_0xa1b384];return _0x5b9b27;},a0_0xa1b3(_0x13abbf,_0x1d6527);}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x4c4145=>class extends MetaButtonMixin(_0x4c4145){static get['styles'](){return MetaApi['getBasicGristStyles']();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x5b4065(0x1d1)](){const _0x388fd7=a0_0x5b4065;return this[_0x388fd7(0x205)]?.[_0x388fd7(0x206)](this[_0x388fd7(0x1de)]);}get['filterForm'](){const _0x172f74=a0_0x5b4065;return this[_0x172f74(0x1d9)]?.[_0x172f74(0x206)](this[_0x172f74(0x1ed)]);}get[a0_0x5b4065(0x203)](){return MetaUiUtil['getContextObject'](this);}async[a0_0x5b4065(0x1d5)](){const _0x590855=a0_0x5b4065;this['gristId']=_0x590855(0x1ce),this[_0x590855(0x1ed)]=_0x590855(0x202),await this[_0x590855(0x1d8)](),this['isElement']&&await this[_0x590855(0x1f1)](),this['activityDataSet']&&(this[_0x590855(0x1e1)]=this['activityDataSet']),super[_0x590855(0x1d5)]&&await super[_0x590855(0x1d5)]();}async[a0_0x5b4065(0x1dc)](){const _0x524109=a0_0x5b4065;super[_0x524109(0x1dc)]&&await super[_0x524109(0x1dc)]();}async[a0_0x5b4065(0x1cb)](){const _0x149f40=a0_0x5b4065;this[_0x149f40(0x1e6)]&&await this[_0x149f40(0x1f1)](),super[_0x149f40(0x1cb)]&&await super[_0x149f40(0x1cb)]();}[a0_0x5b4065(0x1cd)](){const _0x57e25e=a0_0x5b4065;return html`
2
- ${MetaApi[_0x57e25e(0x1fb)](this)}
3
- ${this[_0x57e25e(0x1e6)]?html``:MetaUiUtil['getButtonContainer'](this)}
4
- `;}[a0_0x5b4065(0x1f5)](_0x5b5d0b){const _0x2ca958=a0_0x5b4065;this[_0x2ca958(0x1df)]=_0x5b5d0b[_0x2ca958(0x1d0)],this[_0x2ca958(0x1fe)]=_0x5b5d0b[_0x2ca958(0x1eb)],this[_0x2ca958(0x1da)]=_0x5b5d0b['search'],this[_0x2ca958(0x1d3)]=_0x5b5d0b[_0x2ca958(0x1d3)];}async[a0_0x5b4065(0x1f1)](){const _0x17811b=a0_0x5b4065;this['gristConfigSet']=await MetaApi[_0x17811b(0x1f4)](this);}async[a0_0x5b4065(0x1e7)](){const _0x4d40c0=a0_0x5b4065;await this[_0x4d40c0(0x1d1)][_0x4d40c0(0x1e7)]();}async[a0_0x5b4065(0x200)](){const _0x517451=a0_0x5b4065;let _0x4be8a1=MetaApi[_0x517451(0x1dd)](this[_0x517451(0x1d1)]);!!ValueUtil[_0x517451(0x1f8)](_0x4be8a1)&&await this[_0x517451(0x1e0)](_0x4be8a1)&&this[_0x517451(0x1e7)]();}async[a0_0x5b4065(0x201)](){const _0x564a3d=a0_0x5b4065;let _0x5e23c7=MetaApi['getSelectedIdList'](this[_0x564a3d(0x1d1)],!0x0);return ValueUtil[_0x564a3d(0x1f8)](_0x5e23c7)?await this[_0x564a3d(0x1fc)](_0x5e23c7[0x0]):{};}async[a0_0x5b4065(0x1e2)](){const _0x44e278=a0_0x5b4065;let _0x4ebd42=MetaApi[_0x44e278(0x1f6)](this[_0x44e278(0x1d1)],!0x0);!!ValueUtil[_0x44e278(0x1f8)](_0x4ebd42)&&await this[_0x44e278(0x1f9)](_0x4ebd42)&&this[_0x44e278(0x1e7)]();}async[a0_0x5b4065(0x1ee)](){const _0x598a50=a0_0x5b4065;let _0x41036a=TermsUtil['tTitle'](ValueUtil[_0x598a50(0x1ea)](this[_0x598a50(0x1f7)],_0x598a50(0x1ef)));return await MetaApi[_0x598a50(0x1cc)](this['isElement'],_0x41036a,this[_0x598a50(0x1d1)]);}async[a0_0x5b4065(0x1e5)](){}async[a0_0x5b4065(0x1ff)](){const _0x50a716=a0_0x5b4065;this[_0x50a716(0x1d1)]&&(this['grist'][_0x50a716(0x1e9)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x5b4065(0x1f2)](){const _0x577606=a0_0x5b4065;let _0x3f7b3e=this['grist']['___data'][_0x577606(0x1e3)];return _0x3f7b3e=JSON[_0x577606(0x1fd)](JSON[_0x577606(0x1f0)](_0x3f7b3e)),_0x3f7b3e[_0x577606(0x1db)](_0x32f11c=>{const _0x2ef496=_0x577606;Object[_0x2ef496(0x1d7)](_0x32f11c)[_0x2ef496(0x1db)](_0x139702=>{const _0x41b25e=_0x2ef496;_0x139702[_0x41b25e(0x1d2)]('__')&&delete _0x32f11c[_0x139702];});}),_0x3f7b3e;}};
1
+ const a0_0x14d901=a0_0x2f9b;(function(_0x12a197,_0x26375d){const _0x3ce551=a0_0x2f9b,_0x14b574=_0x12a197();while(!![]){try{const _0x3fd7be=parseInt(_0x3ce551(0x89))/0x1*(parseInt(_0x3ce551(0x7e))/0x2)+-parseInt(_0x3ce551(0x70))/0x3*(parseInt(_0x3ce551(0x73))/0x4)+parseInt(_0x3ce551(0x90))/0x5+parseInt(_0x3ce551(0x7c))/0x6*(parseInt(_0x3ce551(0x6c))/0x7)+-parseInt(_0x3ce551(0x84))/0x8*(-parseInt(_0x3ce551(0x6e))/0x9)+-parseInt(_0x3ce551(0x71))/0xa+parseInt(_0x3ce551(0x9d))/0xb*(-parseInt(_0x3ce551(0x75))/0xc);if(_0x3fd7be===_0x26375d)break;else _0x14b574['push'](_0x14b574['shift']());}catch(_0x354c40){_0x14b574['push'](_0x14b574['shift']());}}}(a0_0x3da3,0x6fccd));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';function a0_0x2f9b(_0x57f4c2,_0x2190b0){const _0x3da36c=a0_0x3da3();return a0_0x2f9b=function(_0x2f9bf4,_0x24b884){_0x2f9bf4=_0x2f9bf4-0x6a;let _0xf10958=_0x3da36c[_0x2f9bf4];return _0xf10958;},a0_0x2f9b(_0x57f4c2,_0x2190b0);}function a0_0x3da3(){const _0x353990=['gristConfigSet','shadowRoot','gridColumnConfig','save','3795485OJUenU','gridEmphasized','stringify','querySelector','getParams','getSelectedIdList','searchConfig','getData','startsWith','findOne','search','gristId','records','22clwoQU','import','isPage','patchesForUpdateMultiple','activityDataSet','export','grid','updateMultiple','fetch','find','parse','exportableData','parseBasicGridConfigs','filterForm','7omZdlb','clear','168183zTmkJE','firstUpdated','254964JzGlWo','5209310dQHVts','forEach','28IaruOV','grist','3682572SHhAMt','isElement','styles','parseGristConfigs','ox-filters-form','context','properties','3486918zZHFoM','getButtonContainer','110WqEIlw','tTitle','___data','connectedCallback','deleteByIds','delete','328sLuRFU','renderRoot','pageInitialized','getContextObject','filterFormId','1475GnMonv','isNotEmpty','ox-grist'];a0_0x3da3=function(){return _0x353990;};return a0_0x3da3();}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x86d3d5=>class extends MetaButtonMixin(_0x86d3d5){static get[a0_0x14d901(0x77)](){return MetaApi['getBasicGristStyles']();}static get[a0_0x14d901(0x7b)](){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 _0x17f95e=a0_0x14d901;return this[_0x17f95e(0x85)]?.['querySelector'](this[_0x17f95e(0x9b)]);}get[a0_0x14d901(0x6b)](){const _0x54181f=a0_0x14d901;return this[_0x54181f(0x8d)]?.[_0x54181f(0x93)](this['filterFormId']);}get[a0_0x14d901(0x7a)](){const _0x4c6a06=a0_0x14d901;return MetaUiUtil[_0x4c6a06(0x87)](this);}async[a0_0x14d901(0x81)](){const _0x44874d=a0_0x14d901;this['gristId']=_0x44874d(0x8b),this[_0x44874d(0x88)]=_0x44874d(0x79),await this['getAndParseMenuMeta'](),this[_0x44874d(0x76)]&&await this[_0x44874d(0x78)](),this[_0x44874d(0xa1)]&&(this['dataSet']=this[_0x44874d(0xa1)]),super[_0x44874d(0x81)]&&await super[_0x44874d(0x81)]();}async[a0_0x14d901(0x6f)](){const _0xf87f6f=a0_0x14d901;super[_0xf87f6f(0x6f)]&&await super[_0xf87f6f(0x6f)]();}async['pageInitialized'](){const _0x2d1bf4=a0_0x14d901;this[_0x2d1bf4(0x9f)]&&await this['parseGristConfigs'](),super[_0x2d1bf4(0x86)]&&await super['pageInitialized']();}['render'](){const _0x25d51f=a0_0x14d901;return html`
2
+ ${MetaApi['getBasicGristHtml'](this)}
3
+ ${this['isPage']?html``:MetaUiUtil[_0x25d51f(0x7d)](this)}
4
+ `;}[a0_0x14d901(0x6a)](_0x316d3f){const _0x10243c=a0_0x14d901;this['gridConfig']=_0x316d3f[_0x10243c(0xa3)],this[_0x10243c(0x8e)]=_0x316d3f['grid_column'],this[_0x10243c(0x96)]=_0x316d3f[_0x10243c(0x9a)],this[_0x10243c(0x91)]=_0x316d3f['gridEmphasized'];}async['parseGristConfigs'](){const _0x3dee3a=a0_0x14d901;this[_0x3dee3a(0x8c)]=await MetaApi['parseGridConfigSet'](this);}async[a0_0x14d901(0xa5)](){const _0x5a940c=a0_0x14d901;await this[_0x5a940c(0x74)]['fetch']();}async[a0_0x14d901(0x8f)](){const _0x32c47a=a0_0x14d901;let _0x72e0b8=MetaApi[_0x32c47a(0xa0)](this[_0x32c47a(0x74)]);!!ValueUtil[_0x32c47a(0x8a)](_0x72e0b8)&&await this[_0x32c47a(0xa4)](_0x72e0b8)&&this[_0x32c47a(0xa5)]();}async[a0_0x14d901(0xa6)](){const _0x25308e=a0_0x14d901;let _0x1b0711=MetaApi[_0x25308e(0x95)](this[_0x25308e(0x74)],!0x0);return ValueUtil['isNotEmpty'](_0x1b0711)?await this[_0x25308e(0x99)](_0x1b0711[0x0]):{};}async[a0_0x14d901(0x83)](){const _0x416d83=a0_0x14d901;let _0x5520b6=MetaApi[_0x416d83(0x95)](this[_0x416d83(0x74)],!0x0);!!ValueUtil[_0x416d83(0x8a)](_0x5520b6)&&await this[_0x416d83(0x82)](_0x5520b6)&&this[_0x416d83(0xa5)]();}async[a0_0x14d901(0xa2)](){const _0x34636e=a0_0x14d901;let _0x586a82=TermsUtil[_0x34636e(0x7f)](ValueUtil[_0x34636e(0x94)](this['menuInfo'],'title'));return await MetaApi[_0x34636e(0xa8)](this[_0x34636e(0x76)],_0x586a82,this['grist']);}async[a0_0x14d901(0x9e)](){}async[a0_0x14d901(0x6d)](){const _0x50ca49=a0_0x14d901;this[_0x50ca49(0x74)]&&(this['grist']['data']={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x14d901(0x97)](){const _0x41a7b0=a0_0x14d901;let _0x5233c8=this['grist'][_0x41a7b0(0x80)][_0x41a7b0(0x9c)];return _0x5233c8=JSON[_0x41a7b0(0xa7)](JSON[_0x41a7b0(0x92)](_0x5233c8)),_0x5233c8[_0x41a7b0(0x72)](_0x5a77b6=>{Object['keys'](_0x5a77b6)['forEach'](_0x4a1cc6=>{const _0x2bb457=a0_0x2f9b;_0x4a1cc6[_0x2bb457(0x98)]('__')&&delete _0x5a77b6[_0x4a1cc6];});}),_0x5233c8;}};
@@ -1 +1 @@
1
- const a0_0xe20506=a0_0x5abb;function a0_0x5abb(_0x2cbdd4,_0x3a1755){const _0x4f6f0c=a0_0x4f6f();return a0_0x5abb=function(_0x5abbb8,_0x3862bc){_0x5abbb8=_0x5abbb8-0x191;let _0x134754=_0x4f6f0c[_0x5abbb8];return _0x134754;},a0_0x5abb(_0x2cbdd4,_0x3a1755);}(function(_0xce7e2f,_0x19c9bf){const _0x2f4bff=a0_0x5abb,_0x238a96=_0xce7e2f();while(!![]){try{const _0x1ad952=-parseInt(_0x2f4bff(0x192))/0x1+-parseInt(_0x2f4bff(0x1a4))/0x2+parseInt(_0x2f4bff(0x195))/0x3+parseInt(_0x2f4bff(0x19a))/0x4*(parseInt(_0x2f4bff(0x1a6))/0x5)+-parseInt(_0x2f4bff(0x1aa))/0x6*(-parseInt(_0x2f4bff(0x1ab))/0x7)+-parseInt(_0x2f4bff(0x19b))/0x8+-parseInt(_0x2f4bff(0x194))/0x9*(-parseInt(_0x2f4bff(0x198))/0xa);if(_0x1ad952===_0x19c9bf)break;else _0x238a96['push'](_0x238a96['shift']());}catch(_0x458a16){_0x238a96['push'](_0x238a96['shift']());}}}(a0_0x4f6f,0x90dae));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';function a0_0x4f6f(){const _0x369cb5=['122075vDwBbS','getBasicButtonHandler','2192913NcFfMA','957546PyKEls','customButtonHandler','getCustomButtonContainerStyles','40YdvjHO','getContextButtons','1407188rhoaBI','9233152HvUUxl','getCustomButtonContainerStyle','properties','isButtonExist','import','useButtonImport','gristButtonHandler','getButtonActionHandler','getButtonContainer','1071882slOfeQ','useButtonAdd','5eHBZiS','buttonConfig','export','useButtonExport','1519758rVOUON','21bzrvvX','button'];a0_0x4f6f=function(){return _0x369cb5;};return a0_0x4f6f();}export const MetaButtonMixin=_0x5c7ba4=>class extends MetaServiceMixin(_0x5c7ba4){static get[a0_0xe20506(0x19d)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0xe20506(0x19c)](){const _0x5449e0=a0_0xe20506;return MetaUiUtil[_0x5449e0(0x197)]();}[a0_0xe20506(0x199)](){const _0x402cb4=a0_0xe20506;return MetaUiUtil[_0x402cb4(0x199)](this);}[a0_0xe20506(0x1a3)](){return this['isPage']?html``:MetaUiUtil['getButtonContainer'](this);}async[a0_0xe20506(0x193)](_0x1a675d,_0x24e0bd,_0x3e383d){const _0x4d7663=a0_0xe20506;return await MetaUiUtil[_0x4d7663(0x1a2)](this,_0x1a675d,_0x24e0bd,_0x3e383d);}async[a0_0xe20506(0x196)](_0x2549d7){const _0xb88949=a0_0xe20506;await MetaUiUtil[_0xb88949(0x196)](this,_0x2549d7);}async[a0_0xe20506(0x1a1)](_0x4b7a6f,_0x33fada){const _0x3134a1=a0_0xe20506;await MetaUiUtil[_0x3134a1(0x1a1)](this,_0x4b7a6f,_0x33fada);}['parseBasicButtonConfigs'](_0x438395){const _0x294044=a0_0xe20506;this[_0x294044(0x1a7)]=_0x438395[_0x294044(0x191)],this[_0x294044(0x1a0)]=MetaUiUtil[_0x294044(0x19e)](this[_0x294044(0x1a7)],_0x294044(0x19f)),this[_0x294044(0x1a9)]=MetaUiUtil[_0x294044(0x19e)](this['buttonConfig'],_0x294044(0x1a8)),this[_0x294044(0x1a5)]=MetaUiUtil['isButtonExist'](this[_0x294044(0x1a7)],'add');}};
1
+ const a0_0x551491=a0_0x15d3;(function(_0x264a8e,_0x3b5da2){const _0x4c77e8=a0_0x15d3,_0x246710=_0x264a8e();while(!![]){try{const _0x13c43d=-parseInt(_0x4c77e8(0x8b))/0x1*(parseInt(_0x4c77e8(0x87))/0x2)+-parseInt(_0x4c77e8(0x85))/0x3*(-parseInt(_0x4c77e8(0x75))/0x4)+-parseInt(_0x4c77e8(0x8d))/0x5+-parseInt(_0x4c77e8(0x88))/0x6*(parseInt(_0x4c77e8(0x77))/0x7)+parseInt(_0x4c77e8(0x7e))/0x8+parseInt(_0x4c77e8(0x79))/0x9*(-parseInt(_0x4c77e8(0x80))/0xa)+parseInt(_0x4c77e8(0x89))/0xb;if(_0x13c43d===_0x3b5da2)break;else _0x246710['push'](_0x246710['shift']());}catch(_0x1a10ae){_0x246710['push'](_0x246710['shift']());}}}(a0_0x2146,0x7c6aa));function a0_0x15d3(_0x3750ca,_0x126fa8){const _0x214613=a0_0x2146();return a0_0x15d3=function(_0x15d399,_0x29a158){_0x15d399=_0x15d399-0x75;let _0x17d2b9=_0x214613[_0x15d399];return _0x17d2b9;},a0_0x15d3(_0x3750ca,_0x126fa8);}import{html}from'lit';function a0_0x2146(){const _0x4ba779=['getButtonContainer','gristButtonHandler','getBasicButtonHandler','4214144dJFXuI','getButtonActionHandler','117110JTIehq','button','isButtonExist','useButtonExport','buttonConfig','6027rZqNWR','getCustomButtonContainerStyles','234avlSZK','36XCxdSJ','13469742oraLci','parseBasicButtonConfigs','2073wXvRYn','getContextButtons','1491400NqVHDz','useButtonAdd','2004tbvfOp','getCustomButtonContainerStyle','871577fOKsbS','customButtonHandler','738PtEMeC','properties'];a0_0x2146=function(){return _0x4ba779;};return a0_0x2146();}import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x20022e=>class extends MetaServiceMixin(_0x20022e){static get[a0_0x551491(0x7a)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x551491(0x76)](){const _0xd869be=a0_0x551491;return MetaUiUtil[_0xd869be(0x86)]();}['getContextButtons'](){const _0x4462f2=a0_0x551491;return MetaUiUtil[_0x4462f2(0x8c)](this);}[a0_0x551491(0x7b)](){const _0x15e0ec=a0_0x551491;return this['isPage']?html``:MetaUiUtil[_0x15e0ec(0x7b)](this);}async[a0_0x551491(0x7d)](_0x4f3a62,_0x1a1014,_0x450c2a){const _0x36218b=a0_0x551491;return await MetaUiUtil[_0x36218b(0x7f)](this,_0x4f3a62,_0x1a1014,_0x450c2a);}async[a0_0x551491(0x78)](_0x3032af){await MetaUiUtil['customButtonHandler'](this,_0x3032af);}async[a0_0x551491(0x7c)](_0x1b2ef2,_0x290c1d){const _0x3dc489=a0_0x551491;await MetaUiUtil[_0x3dc489(0x7c)](this,_0x1b2ef2,_0x290c1d);}[a0_0x551491(0x8a)](_0x341cb0){const _0xccc664=a0_0x551491;this[_0xccc664(0x84)]=_0x341cb0[_0xccc664(0x81)],this['useButtonImport']=MetaUiUtil[_0xccc664(0x82)](this[_0xccc664(0x84)],'import'),this[_0xccc664(0x83)]=MetaUiUtil[_0xccc664(0x82)](this[_0xccc664(0x84)],'export'),this[_0xccc664(0x8e)]=MetaUiUtil['isButtonExist'](this[_0xccc664(0x84)],'add');}};
@@ -1 +1 @@
1
- const a0_0x35379e=a0_0x2502;(function(_0xcdf427,_0x24d376){const _0x583eda=a0_0x2502,_0x577f59=_0xcdf427();while(!![]){try{const _0x5c8d12=-parseInt(_0x583eda(0xdd))/0x1+-parseInt(_0x583eda(0xd8))/0x2*(parseInt(_0x583eda(0xac))/0x3)+-parseInt(_0x583eda(0x8f))/0x4+parseInt(_0x583eda(0xc2))/0x5*(parseInt(_0x583eda(0xaf))/0x6)+parseInt(_0x583eda(0xd4))/0x7+parseInt(_0x583eda(0xbe))/0x8*(-parseInt(_0x583eda(0xdf))/0x9)+parseInt(_0x583eda(0x9d))/0xa;if(_0x5c8d12===_0x24d376)break;else _0x577f59['push'](_0x577f59['shift']());}catch(_0x54b9a3){_0x577f59['push'](_0x577f59['shift']());}}}(a0_0x389c,0xc33ff));function a0_0x389c(){const _0x915472=['pageInitialized','isEquals','addEventListener','setAttribute','dataSet','2376536RowLsu','parseFormConfigs','formRenderConfig','firstUpdated','map','stopPropagation','orgData','true','__dirtyfields__','isElement','removeGarbageData','keys','check-mandatory-field','detail','13955730MjvINJ','parent_id','isNotEmpty','currentTarget','is_activity','formColumnConfig','function','target','key','startsWith','connectedCallback','confirm','dirtyData','title.info','form','138BUtrIL','Escape','button','1992WAqvrH','editing','fetch','context','form-field-change','patchData','field-change','properties','forEach','Esc','assign','after','getAndParseMenuMeta','findOne','activityDataSet','88Oapxip','name','code-input','filter','18265uNHPUK','dispatchEvent','click','__origin__','clear','OX-GRID-FIELD','currentData','getBasicFormHtml','save','editable','column','formConfigSet','grid_column','header','text.NOTHING_CHANGED','info','focus','isEmpty','5447351kRBdHZ','__dirty__','getBasicFormStyles','record','51176DaVROP','keydown','getContextObject','Enter','activity','144956cJRDKN','tText','548739mIhsXB','showAlertPopup','parseFormConfigSet','cuFlag','render'];a0_0x389c=function(){return _0x915472;};return a0_0x389c();}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x2502(_0x2058e1,_0x102194){const _0x389cd2=a0_0x389c();return a0_0x2502=function(_0x2502b9,_0x457b1e){_0x2502b9=_0x2502b9-0x88;let _0x174930=_0x389cd2[_0x2502b9];return _0x174930;},a0_0x2502(_0x2058e1,_0x102194);}import{ValueUtil}from'../utils/value-util';import{UiUtil}from'../utils/ui-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x39bf2b=>class extends MetaButtonMixin(_0x39bf2b){static get['styles'](){const _0x452cd1=a0_0x2502;return MetaApi[_0x452cd1(0xd6)]();}static get[a0_0x35379e(0xb6)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x35379e(0xb2)](){const _0x2074dc=a0_0x35379e;return MetaUiUtil[_0x2074dc(0xda)](this);}async[a0_0x35379e(0xa7)](){const _0x128130=a0_0x35379e;await this[_0x128130(0xbb)](),this['isElement']&&await this['parseFormConfigs'](),this[_0x128130(0xbd)]&&(this[_0x128130(0x8e)]=this[_0x128130(0xbd)]),!0x0!==this[_0x128130(0xa1)]||this[_0x128130(0x9e)]||(this[_0x128130(0x9e)]=_0x128130(0xdc)),super[_0x128130(0xa7)]&&await super[_0x128130(0xa7)](),this[_0x128130(0x98)]&&await this['fetch'](),this['renderRoot'][_0x128130(0x8c)](_0x128130(0xd9),_0x5c1f7c=>{const _0x2b0c55=_0x128130;switch(_0x5c1f7c[_0x2b0c55(0xa5)]){case _0x2b0c55(0xb8):case _0x2b0c55(0xad):case _0x2b0c55(0xdb):this[_0x2b0c55(0xd2)](),this['currentTarget']&&this['currentTarget']['removeAttribute'](_0x2b0c55(0xb0)),this[_0x2b0c55(0xa0)]=null;}}),this['renderRoot']['addEventListener'](_0x128130(0xc4),_0x2ac4f0=>{const _0xc37b81=_0x128130;_0x2ac4f0[_0xc37b81(0x94)]();let _0x46ab4a=_0x2ac4f0[_0xc37b81(0xa4)];if(this[_0xc37b81(0xa0)]&&(this[_0xc37b81(0xd2)](),this[_0xc37b81(0xa0)]['removeAttribute'](_0xc37b81(0xb0))),_0xc37b81(0xc7)!==_0x46ab4a['tagName']||!_0x46ab4a[_0xc37b81(0xcc)][_0xc37b81(0xd7)][_0xc37b81(0xcb)])return this[_0xc37b81(0xd2)](),void(this[_0xc37b81(0xa0)]=null);this[_0xc37b81(0xa0)]=_0x46ab4a,_0x46ab4a[_0xc37b81(0x8d)](_0xc37b81(0xb0),_0xc37b81(0x96));}),this[_0x128130(0x8c)](_0x128130(0xb5),_0x15f517=>{const _0x5966f6=_0x128130;var {after:_0x5ca716,before:_0x3d2383,column:_0x52d0f7,record:_0x39491f,row:_0x56ee22}=_0x15f517[_0x5966f6(0x9c)];if(ValueUtil['isEquals'](_0x5ca716,_0x3d2383))return;var _0x26a2da=_0x52d0f7['validation'];if(_0x26a2da&&_0x5966f6(0xa3)==typeof _0x26a2da&&!_0x26a2da['call'](this,_0x5ca716,_0x3d2383,_0x39491f,_0x52d0f7))return;let _0x5ce7a1=_0x52d0f7[_0x5966f6(0xbf)];_0x39491f[_0x5ce7a1]=_0x5ca716,_0x39491f[_0x5966f6(0x97)]=_0x39491f[_0x5966f6(0x97)]||{},_0x39491f['__origin__']=_0x39491f[_0x5966f6(0xc5)]||{},_0x39491f['__dirtyfields__'][_0x5ce7a1]={'before':_0x39491f[_0x5966f6(0xc5)][_0x5ce7a1],'after':_0x39491f[_0x5ce7a1]},ValueUtil[_0x5966f6(0x8b)](_0x39491f[_0x5966f6(0x97)][_0x5ce7a1]['before'],_0x39491f['__dirtyfields__'][_0x5ce7a1][_0x5966f6(0xba)])&&delete _0x39491f[_0x5966f6(0x97)][_0x5ce7a1],ValueUtil[_0x5966f6(0x9f)](_0x39491f[_0x5966f6(0x97)])?_0x39491f[_0x5966f6(0xd5)]='M':_0x39491f[_0x5966f6(0xd5)]='',this[_0x5966f6(0xd7)]={..._0x39491f},this[_0x5966f6(0xc3)](new CustomEvent(_0x5966f6(0xb3),{'bubbles':!0x0,'composed':!0x0,'detail':_0x15f517[_0x5966f6(0x9c)]}));});}async[a0_0x35379e(0x92)](){const _0x407fb6=a0_0x35379e;super['firstUpdated']&&await super[_0x407fb6(0x92)]();}async['pageInitialized'](){const _0x2698ed=a0_0x35379e;this['isPage']&&await this[_0x2698ed(0x90)](),super[_0x2698ed(0x8a)]&&await super['pageInitialized'](),this['isPage']&&await this[_0x2698ed(0xb1)]();}[a0_0x35379e(0x89)](){const _0x4d6cdf=a0_0x35379e;return MetaApi[_0x4d6cdf(0xc9)](this);}['parseBasicFormConfigs'](_0x34c746){const _0x467be8=a0_0x35379e;this[_0x467be8(0xa2)]=_0x34c746[_0x467be8(0xce)],this[_0x467be8(0x91)]=_0x34c746[_0x467be8(0xab)],_0x34c746[_0x467be8(0xae)]=_0x34c746['button']['filter'](_0x1da61b=>'save'==_0x1da61b[_0x467be8(0xbf)]);}async['parseFormConfigs'](){const _0x2ff1f3=a0_0x35379e;this[_0x2ff1f3(0xcd)]=await MetaApi[_0x2ff1f3(0xe1)](this);}get[a0_0x35379e(0x95)](){const _0x292f13=a0_0x35379e;return this[_0x292f13(0x99)](this[_0x292f13(0xd7)][_0x292f13(0xc5)]);}get[a0_0x35379e(0xa9)](){const _0x18796d=a0_0x35379e;if(ValueUtil['isEmpty']((this[_0x18796d(0xd7)]||{})['__dirtyfields__']))return{};let _0x32ac92={};return Object['entries'](this[_0x18796d(0xd7)][_0x18796d(0x97)])[_0x18796d(0x93)](([_0x347d45,_0x4884b5])=>{const _0x483004=_0x18796d;0x0==_0x347d45[_0x483004(0xa6)]('__')&&(_0x32ac92[_0x347d45]=_0x4884b5[_0x483004(0xba)]);}),_0x32ac92;}get[a0_0x35379e(0xc8)](){const _0x2f53c7=a0_0x35379e;return this['removeGarbageData'](this[_0x2f53c7(0xd7)]);}[a0_0x35379e(0x99)](_0x4cf52a){const _0x3e882e=a0_0x35379e;let _0xc9cde1={};if(_0x4cf52a)return Object['entries'](_0x4cf52a)[_0x3e882e(0x93)](([_0x229f43,_0x55d557])=>{0x0==_0x229f43['startsWith']('__')&&(_0xc9cde1[_0x229f43]=_0x55d557);}),_0xc9cde1;}get[a0_0x35379e(0xb4)](){const _0x2a1d7a=a0_0x35379e;let _0x5e3ee0=this[_0x2a1d7a(0xa9)],_0x5d96b6=this[_0x2a1d7a(0xd7)],_0x36f325=(this[_0x2a1d7a(0xa2)]||[])[_0x2a1d7a(0xc1)](_0x1c63a3=>_0x2a1d7a(0xc0)===_0x1c63a3['type'])[_0x2a1d7a(0x93)](_0xb0daed=>_0xb0daed[_0x2a1d7a(0xbf)]);if(!ValueUtil[_0x2a1d7a(0xd3)](_0x5e3ee0))return ValueUtil[_0x2a1d7a(0x9f)](_0x5d96b6['id'])?(_0x5e3ee0['id']=_0x5d96b6['id'],_0x5e3ee0['cuFlag']='M'):_0x5e3ee0[_0x2a1d7a(0x88)]='+',Object[_0x2a1d7a(0x9a)](_0x5e3ee0)[_0x2a1d7a(0xb7)](_0x184092=>{'object'==typeof _0x5e3ee0[_0x184092]&&0x0==_0x36f325['includes'](_0x184092)&&(_0x5e3ee0[_0x184092]={'id':_0x5e3ee0[_0x184092]['id']});}),[_0x5e3ee0];}async[a0_0x35379e(0xb1)](){const _0x5ad5c6=a0_0x35379e;if(ValueUtil[_0x5ad5c6(0xd3)](this[_0x5ad5c6(0x9e)]))return;let _0x5d21d3=await this[_0x5ad5c6(0xbc)](this['parent_id']);_0x5d21d3['__seq__']=0x1;let _0x121bc2={};Object[_0x5ad5c6(0xb9)](_0x121bc2,_0x5d21d3),_0x5d21d3[_0x5ad5c6(0xc5)]=_0x121bc2,this[_0x5ad5c6(0xd7)]={..._0x5d21d3};}async[a0_0x35379e(0xca)](){const _0x1a0a3f=a0_0x35379e;let _0x57edbd=this[_0x1a0a3f(0xb4)];if(ValueUtil[_0x1a0a3f(0xd3)](_0x57edbd))return void MetaApi[_0x1a0a3f(0xe0)](_0x1a0a3f(0xaa),_0x1a0a3f(0xd0));let _0x34017b={};(this[_0x1a0a3f(0xa2)]||[])[_0x1a0a3f(0xc1)](_0x59bc97=>!0x0===_0x59bc97['mandatory'])[_0x1a0a3f(0xb7)](_0x239e2f=>{const _0x5a8e5a=_0x1a0a3f;_0x34017b[_0x239e2f[_0x5a8e5a(0xbf)]]=_0x239e2f[_0x5a8e5a(0xcf)];});for(let _0x1450e8 in _0x34017b)if(!_0x57edbd[0x0][_0x1450e8])return void UiUtil['showAlertPopup']('text.check-mandatory',TermsUtil[_0x1a0a3f(0xde)](_0x1a0a3f(0x9b),{'x':TermsUtil['tLabel'](_0x34017b[_0x1450e8])}),_0x1a0a3f(0xd1),_0x1a0a3f(0xa8));let _0x54ff65=await this['updateMultiple'](_0x57edbd);return _0x54ff65&&await this[_0x1a0a3f(0xb1)](),_0x54ff65;}async[a0_0x35379e(0xc6)](){const _0x5be5b7=a0_0x35379e;this[_0x5be5b7(0xd7)]&&(this[_0x5be5b7(0xd7)]={});}['getData'](){const _0x8e8bf6=a0_0x35379e;return this[_0x8e8bf6(0xc8)]||{};}};
1
+ function a0_0x2a30(_0x4468dd,_0x27626e){const _0xbb0bd0=a0_0xbb0b();return a0_0x2a30=function(_0x2a30bf,_0x1ac2b9){_0x2a30bf=_0x2a30bf-0x10f;let _0x18caa7=_0xbb0bd0[_0x2a30bf];return _0x18caa7;},a0_0x2a30(_0x4468dd,_0x27626e);}function a0_0xbb0b(){const _0xda0497=['Esc','1185hyBWzm','filter','renderRoot','40909wHEmVM','isEquals','13bIsZWu','3726CjcXii','is_activity','8186660lJrwuo','forEach','before','function','dataSet','form','showAlertPopup','formColumnConfig','key','patchData','pageInitialized','assign','9AbmYTH','name','dispatchEvent','104pkHnsd','18812PWDDmw','getBasicFormHtml','parent_id','removeAttribute','addEventListener','activityDataSet','record','code-input','cuFlag','dirtyData','true','fetch','after','currentData','52700354RkOvSc','49fmECYO','parseFormConfigs','3000PLOAry','text.check-mandatory','formConfigSet','isPage','column','header','__dirty__','entries','keydown','stopPropagation','__seq__','578008iDcCLg','text.NOTHING_CHANGED','button','keys','__dirtyfields__','findOne','12ojGTCF','startsWith','target','editing','connectedCallback','call','field-change','editable','styles','isEmpty','tagName','__origin__','tLabel','context','firstUpdated','map','804759STMoNb','focus','updateMultiple','getAndParseMenuMeta','currentTarget','check-mandatory-field','removeGarbageData','getData','type','isElement'];a0_0xbb0b=function(){return _0xda0497;};return a0_0xbb0b();}const a0_0x392abf=a0_0x2a30;(function(_0x300425,_0x2402f4){const _0x5cbbb7=a0_0x2a30,_0xcfc05e=_0x300425();while(!![]){try{const _0x4d5c9d=-parseInt(_0x5cbbb7(0x14f))/0x1*(parseInt(_0x5cbbb7(0x150))/0x2)+-parseInt(_0x5cbbb7(0x12d))/0x3*(parseInt(_0x5cbbb7(0x11d))/0x4)+-parseInt(_0x5cbbb7(0x138))/0x5*(parseInt(_0x5cbbb7(0x13e))/0x6)+-parseInt(_0x5cbbb7(0x15f))/0x7*(-parseInt(_0x5cbbb7(0x117))/0x8)+parseInt(_0x5cbbb7(0x14c))/0x9*(-parseInt(_0x5cbbb7(0x140))/0xa)+-parseInt(_0x5cbbb7(0x13b))/0xb*(parseInt(_0x5cbbb7(0x161))/0xc)+-parseInt(_0x5cbbb7(0x13d))/0xd*(-parseInt(_0x5cbbb7(0x15e))/0xe);if(_0x4d5c9d===_0x2402f4)break;else _0xcfc05e['push'](_0xcfc05e['shift']());}catch(_0x192251){_0xcfc05e['push'](_0xcfc05e['shift']());}}}(a0_0xbb0b,0x90684));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';export const MetaFormMixin=_0x37266e=>class extends MetaButtonMixin(_0x37266e){static get[a0_0x392abf(0x125)](){return MetaApi['getBasicFormStyles']();}static get['properties'](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x392abf(0x12a)](){return MetaUiUtil['getContextObject'](this);}async[a0_0x392abf(0x121)](){const _0x4a0619=a0_0x392abf;await this[_0x4a0619(0x130)](),this[_0x4a0619(0x136)]&&await this['parseFormConfigs'](),this[_0x4a0619(0x155)]&&(this[_0x4a0619(0x144)]=this[_0x4a0619(0x155)]),!0x0!==this[_0x4a0619(0x13f)]||this[_0x4a0619(0x152)]||(this['parent_id']='activity'),super[_0x4a0619(0x121)]&&await super[_0x4a0619(0x121)](),this[_0x4a0619(0x136)]&&await this[_0x4a0619(0x15b)](),this[_0x4a0619(0x13a)][_0x4a0619(0x154)](_0x4a0619(0x114),_0x49a433=>{const _0x23787f=_0x4a0619;switch(_0x49a433[_0x23787f(0x148)]){case _0x23787f(0x137):case'Escape':case'Enter':this[_0x23787f(0x12e)](),this[_0x23787f(0x131)]&&this[_0x23787f(0x131)]['removeAttribute'](_0x23787f(0x120)),this[_0x23787f(0x131)]=null;}}),this[_0x4a0619(0x13a)][_0x4a0619(0x154)]('click',_0x119fcd=>{const _0x3d82de=_0x4a0619;_0x119fcd[_0x3d82de(0x115)]();let _0xf61cd4=_0x119fcd[_0x3d82de(0x11f)];if(this['currentTarget']&&(this[_0x3d82de(0x12e)](),this[_0x3d82de(0x131)][_0x3d82de(0x153)]('editing')),'OX-GRID-FIELD'!==_0xf61cd4[_0x3d82de(0x127)]||!_0xf61cd4[_0x3d82de(0x110)]['record'][_0x3d82de(0x124)])return this[_0x3d82de(0x12e)](),void(this[_0x3d82de(0x131)]=null);this[_0x3d82de(0x131)]=_0xf61cd4,_0xf61cd4['setAttribute'](_0x3d82de(0x120),_0x3d82de(0x15a));}),this['addEventListener'](_0x4a0619(0x123),_0x1cb711=>{const _0x1cad8d=_0x4a0619;var {after:_0x3b68ec,before:_0x2305a8,column:_0x452a66,record:_0x4fd450,row:_0x1d686f}=_0x1cb711['detail'];if(ValueUtil[_0x1cad8d(0x13c)](_0x3b68ec,_0x2305a8))return;var _0x51484a=_0x452a66['validation'];if(_0x51484a&&_0x1cad8d(0x143)==typeof _0x51484a&&!_0x51484a[_0x1cad8d(0x122)](this,_0x3b68ec,_0x2305a8,_0x4fd450,_0x452a66))return;let _0x335eec=_0x452a66[_0x1cad8d(0x14d)];_0x4fd450[_0x335eec]=_0x3b68ec,_0x4fd450['__dirtyfields__']=_0x4fd450[_0x1cad8d(0x11b)]||{},_0x4fd450[_0x1cad8d(0x128)]=_0x4fd450[_0x1cad8d(0x128)]||{},_0x4fd450[_0x1cad8d(0x11b)][_0x335eec]={'before':_0x4fd450['__origin__'][_0x335eec],'after':_0x4fd450[_0x335eec]},ValueUtil[_0x1cad8d(0x13c)](_0x4fd450[_0x1cad8d(0x11b)][_0x335eec][_0x1cad8d(0x142)],_0x4fd450[_0x1cad8d(0x11b)][_0x335eec][_0x1cad8d(0x15c)])&&delete _0x4fd450[_0x1cad8d(0x11b)][_0x335eec],ValueUtil['isNotEmpty'](_0x4fd450['__dirtyfields__'])?_0x4fd450['__dirty__']='M':_0x4fd450[_0x1cad8d(0x112)]='',this['record']={..._0x4fd450},this[_0x1cad8d(0x14e)](new CustomEvent('form-field-change',{'bubbles':!0x0,'composed':!0x0,'detail':_0x1cb711['detail']}));});}async[a0_0x392abf(0x12b)](){const _0x1174eb=a0_0x392abf;super[_0x1174eb(0x12b)]&&await super['firstUpdated']();}async[a0_0x392abf(0x14a)](){const _0x523d96=a0_0x392abf;this[_0x523d96(0x10f)]&&await this[_0x523d96(0x160)](),super[_0x523d96(0x14a)]&&await super[_0x523d96(0x14a)](),this[_0x523d96(0x10f)]&&await this[_0x523d96(0x15b)]();}['render'](){const _0x5d3403=a0_0x392abf;return MetaApi[_0x5d3403(0x151)](this);}['parseBasicFormConfigs'](_0x362877){const _0x47ed42=a0_0x392abf;this[_0x47ed42(0x147)]=_0x362877['grid_column'],this['formRenderConfig']=_0x362877[_0x47ed42(0x145)],_0x362877[_0x47ed42(0x119)]=_0x362877[_0x47ed42(0x119)]['filter'](_0x5c6ce2=>'save'==_0x5c6ce2[_0x47ed42(0x14d)]);}async[a0_0x392abf(0x160)](){const _0x1d2c2b=a0_0x392abf;this[_0x1d2c2b(0x163)]=await MetaApi['parseFormConfigSet'](this);}get['orgData'](){const _0xad0df6=a0_0x392abf;return this[_0xad0df6(0x133)](this[_0xad0df6(0x156)]['__origin__']);}get[a0_0x392abf(0x159)](){const _0x161c39=a0_0x392abf;if(ValueUtil[_0x161c39(0x126)]((this['record']||{})[_0x161c39(0x11b)]))return{};let _0xd70938={};return Object[_0x161c39(0x113)](this[_0x161c39(0x156)][_0x161c39(0x11b)])[_0x161c39(0x12c)](([_0x4a7387,_0x1a2766])=>{const _0x10c64a=_0x161c39;0x0==_0x4a7387[_0x10c64a(0x11e)]('__')&&(_0xd70938[_0x4a7387]=_0x1a2766['after']);}),_0xd70938;}get[a0_0x392abf(0x15d)](){const _0x5a2420=a0_0x392abf;return this[_0x5a2420(0x133)](this[_0x5a2420(0x156)]);}[a0_0x392abf(0x133)](_0x426c0d){const _0x3c930d=a0_0x392abf;let _0xeac590={};if(_0x426c0d)return Object[_0x3c930d(0x113)](_0x426c0d)[_0x3c930d(0x12c)](([_0x10f957,_0x2bdf7b])=>{0x0==_0x10f957['startsWith']('__')&&(_0xeac590[_0x10f957]=_0x2bdf7b);}),_0xeac590;}get['patchData'](){const _0x34332f=a0_0x392abf;let _0x192b7a=this[_0x34332f(0x159)],_0x5b1a44=this[_0x34332f(0x156)],_0x5edcab=(this[_0x34332f(0x147)]||[])[_0x34332f(0x139)](_0x5124b7=>_0x34332f(0x157)===_0x5124b7[_0x34332f(0x135)])[_0x34332f(0x12c)](_0x4ee951=>_0x4ee951[_0x34332f(0x14d)]);if(!ValueUtil[_0x34332f(0x126)](_0x192b7a))return ValueUtil['isNotEmpty'](_0x5b1a44['id'])?(_0x192b7a['id']=_0x5b1a44['id'],_0x192b7a[_0x34332f(0x158)]='M'):_0x192b7a[_0x34332f(0x158)]='+',Object[_0x34332f(0x11a)](_0x192b7a)[_0x34332f(0x141)](_0xd52098=>{'object'==typeof _0x192b7a[_0xd52098]&&0x0==_0x5edcab['includes'](_0xd52098)&&(_0x192b7a[_0xd52098]={'id':_0x192b7a[_0xd52098]['id']});}),[_0x192b7a];}async[a0_0x392abf(0x15b)](){const _0x2d2e49=a0_0x392abf;if(ValueUtil['isEmpty'](this[_0x2d2e49(0x152)]))return;let _0x180219=await this[_0x2d2e49(0x11c)](this[_0x2d2e49(0x152)]);_0x180219[_0x2d2e49(0x116)]=0x1;let _0x4516c9={};Object[_0x2d2e49(0x14b)](_0x4516c9,_0x180219),_0x180219['__origin__']=_0x4516c9,this[_0x2d2e49(0x156)]={..._0x180219};}async['save'](){const _0x2d7627=a0_0x392abf;let _0x5dddc2=this[_0x2d7627(0x149)];if(ValueUtil[_0x2d7627(0x126)](_0x5dddc2))return void MetaApi['showAlertPopup']('title.info',_0x2d7627(0x118));let _0x458269={};(this[_0x2d7627(0x147)]||[])[_0x2d7627(0x139)](_0x3744fd=>!0x0===_0x3744fd['mandatory'])[_0x2d7627(0x141)](_0x1ee013=>{const _0x49f7de=_0x2d7627;_0x458269[_0x1ee013[_0x49f7de(0x14d)]]=_0x1ee013[_0x49f7de(0x111)];});let _0x11ef4b=this[_0x2d7627(0x15d)];for(let _0x2139c7 in _0x458269)if(!_0x11ef4b[_0x2139c7])return void UiUtil[_0x2d7627(0x146)](_0x2d7627(0x162),TermsUtil['tText'](_0x2d7627(0x132),{'x':TermsUtil[_0x2d7627(0x129)](_0x458269[_0x2139c7])}),'info','confirm');let _0x77be73=await this[_0x2d7627(0x12f)](_0x5dddc2);return _0x77be73&&await this[_0x2d7627(0x15b)](),_0x77be73;}async['clear'](){const _0x2847e1=a0_0x392abf;this[_0x2847e1(0x156)]&&(this['record']={});}[a0_0x392abf(0x134)](){return this['currentData']||{};}};
@@ -1 +1 @@
1
- function a0_0x1685(_0x55d1f4,_0x3f448f){const _0x24e054=a0_0x24e0();return a0_0x1685=function(_0x16859a,_0x503c85){_0x16859a=_0x16859a-0x66;let _0x38c70f=_0x24e054[_0x16859a];return _0x38c70f;},a0_0x1685(_0x55d1f4,_0x3f448f);}const a0_0xcf95e5=a0_0x1685;(function(_0x1a935d,_0x4bfd8d){const _0x2ce1c1=a0_0x1685,_0x46e051=_0x1a935d();while(!![]){try{const _0x1b846d=parseInt(_0x2ce1c1(0x7f))/0x1*(parseInt(_0x2ce1c1(0x6f))/0x2)+-parseInt(_0x2ce1c1(0x6e))/0x3+-parseInt(_0x2ce1c1(0x97))/0x4+parseInt(_0x2ce1c1(0xa0))/0x5+-parseInt(_0x2ce1c1(0x9f))/0x6*(parseInt(_0x2ce1c1(0xa5))/0x7)+-parseInt(_0x2ce1c1(0xa9))/0x8+parseInt(_0x2ce1c1(0xab))/0x9;if(_0x1b846d===_0x4bfd8d)break;else _0x46e051['push'](_0x46e051['shift']());}catch(_0xbea6d7){_0x46e051['push'](_0x46e051['shift']());}}}(a0_0x24e0,0x8fff6));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x24e0(){const _0x5885c8=['2872832pbzqus','startsWith','properties','shadowRoot','renderRoot','name','gridColumnConfig','gristConfigSet','2928876eyzocQ','5357510aNHTCE','patchesForUpdateMultiple','value','firstUpdated','filter','7DSAPFR','gridConfig','getData','operator','2639816WIrWJM','styles','8210295xQnWPL','grid_column','ox-grist','search','context','render','columns','grid','isPage','parseGristConfigs','useFilterForm','type','ox-filters-form-base','deleteByIds','getContextObject','558816gAfjin','20cDNAJe','delete','keys','querySelector','searchFieldValues','useMasterFilterForm','getSelectedIdList','exportable','importable','gristId','main','exportableData','actions','searchConfig','getGristTabHtml','___data','32866OciuKd','filterForm','getAndParseMenuMeta','record','fetch','#detail','isNotEmpty','header','dataSet','connectedCallback','push','stringify','grist','meta-tab-element','gridEmphasized','pageInitialized','filterFormId','forEach','options','activityDataSet','getBasicGristTabStyles','updateMultiple','save','menuInfo'];a0_0x24e0=function(){return _0x5885c8;};return a0_0x24e0();}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=_0xdc7fca=>class extends MetaButtonMixin(_0xdc7fca){static get[a0_0xcf95e5(0xaa)](){const _0x31ffb4=a0_0xcf95e5;return MetaApi[_0x31ffb4(0x93)]();}static get[a0_0xcf95e5(0x99)](){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_0xcf95e5(0x8b)](){const _0x327b6d=a0_0xcf95e5;return this[_0x327b6d(0x9b)][_0x327b6d(0x72)](this[_0x327b6d(0x78)]);}get[a0_0xcf95e5(0x80)](){const _0x5a3d82=a0_0xcf95e5;return this[_0x5a3d82(0x9a)]?.[_0x5a3d82(0x72)](this[_0x5a3d82(0x8f)]);}get['detailElement'](){const _0x5666ac=a0_0xcf95e5;return this[_0x5666ac(0x9a)][_0x5666ac(0x72)](_0x5666ac(0x84));}get[a0_0xcf95e5(0xaf)](){const _0x292894=a0_0xcf95e5;let _0x244fd2=MetaUiUtil[_0x292894(0x6d)](this);return _0x244fd2[_0x292894(0x7b)]&&delete _0x244fd2['actions'],_0x244fd2[_0x292894(0x76)]&&delete _0x244fd2['exportable'],_0x244fd2['importable']&&delete _0x244fd2[_0x292894(0x77)],_0x244fd2;}async['connectedCallback'](){const _0x5bdbd7=a0_0xcf95e5;this['gristId']=_0x5bdbd7(0xad),this['filterFormId']=_0x5bdbd7(0x6b),await this[_0x5bdbd7(0x81)](),this['isElement']&&await this[_0x5bdbd7(0x68)](),this[_0x5bdbd7(0x92)]&&(this[_0x5bdbd7(0x87)]=(this[_0x5bdbd7(0x92)]||{})[_0x5bdbd7(0x79)]),super[_0x5bdbd7(0x88)]&&await super[_0x5bdbd7(0x88)]();}async[a0_0xcf95e5(0xa3)](){super['firstUpdated']&&await super['firstUpdated']();}async[a0_0xcf95e5(0x8e)](){const _0x58b566=a0_0xcf95e5;this[_0x58b566(0x67)]&&await this[_0x58b566(0x68)](),super[_0x58b566(0x8e)]&&await super[_0x58b566(0x8e)]();}[a0_0xcf95e5(0xb0)](){const _0x4290c6=a0_0xcf95e5;return MetaApi[_0x4290c6(0x7d)](this);}['parseBasicGridConfigs'](_0x4899ea){const _0x2ffd82=a0_0xcf95e5;this[_0x2ffd82(0xa6)]=_0x4899ea[_0x2ffd82(0x66)],this[_0x2ffd82(0x9d)]=_0x4899ea[_0x2ffd82(0xac)],this[_0x2ffd82(0x7c)]=_0x4899ea[_0x2ffd82(0xae)],this[_0x2ffd82(0x8d)]=_0x4899ea[_0x2ffd82(0x8d)];}async[a0_0xcf95e5(0x68)](){const _0x130070=a0_0xcf95e5;this['gristConfigSet']=await MetaApi['parseGridConfigSet'](this),this[_0x130070(0x74)]=!0x0===this[_0x130070(0x69)],this[_0x130070(0x69)]=!0x1,this[_0x130070(0x73)]=[],this['searchFields']=this[_0x130070(0x9e)][_0x130070(0xb1)]['filter'](_0x28c417=>_0x28c417['filter'])['map'](_0x184db8=>{const _0x2ec83a=_0x130070;let _0x51f396={'name':_0x184db8[_0x2ec83a(0x9c)],'type':_0x2ec83a(0xae)===_0x184db8[_0x2ec83a(0xa4)]['operator']?'search':_0x184db8[_0x2ec83a(0x6a)],'label':_0x184db8[_0x2ec83a(0x86)],'operator':_0x184db8[_0x2ec83a(0xa4)]['operator']?_0x184db8['filter']['operator']:'eq'};return _0x184db8[_0x2ec83a(0xa4)][_0x2ec83a(0x91)]&&(_0x51f396[_0x2ec83a(0x91)]=_0x184db8['filter'][_0x2ec83a(0x91)]),_0x184db8[_0x2ec83a(0x82)][_0x2ec83a(0x91)]&&(_0x51f396['options']=_0x184db8[_0x2ec83a(0x82)][_0x2ec83a(0x91)]),_0x184db8[_0x2ec83a(0xa4)][_0x2ec83a(0xa2)]&&this[_0x2ec83a(0x73)][_0x2ec83a(0x89)]({'name':_0x51f396[_0x2ec83a(0x9c)],'operator':_0x51f396[_0x2ec83a(0xa8)],'value':_0x184db8[_0x2ec83a(0xa4)]['value']}),delete _0x184db8[_0x2ec83a(0xa4)],_0x51f396;});}async[a0_0xcf95e5(0x83)](){const _0x1f9aff=a0_0xcf95e5;await this[_0x1f9aff(0x8b)][_0x1f9aff(0x83)]();}async['beforeFetch']({page:_0x4bf3ea=0x0,limit:_0x1e0bcd=0x0,sortings:_0x2ae6e8=[],filters:_0xeb7312=[]}){const _0x384a63=a0_0xcf95e5;let _0x34d67f=this[_0x384a63(0x9b)][_0x384a63(0x72)](_0x384a63(0x8c));return await _0x34d67f['clear'](),!0x0;}async[a0_0xcf95e5(0x95)](){const _0x596049=a0_0xcf95e5;let _0x32ff20=MetaApi[_0x596049(0xa1)](this[_0x596049(0x8b)]);!!ValueUtil['isNotEmpty'](_0x32ff20)&&await this[_0x596049(0x94)](_0x32ff20)&&this[_0x596049(0x83)]();}async['find'](){const _0xe330aa=a0_0xcf95e5;let _0x314f97=MetaApi[_0xe330aa(0x75)](this[_0xe330aa(0x8b)],!0x0);return ValueUtil[_0xe330aa(0x85)](_0x314f97)?await this['findOne'](_0x314f97[0x0]):{};}async[a0_0xcf95e5(0x70)](){const _0xf4bd1e=a0_0xcf95e5;let _0x2c6f22=MetaApi['getSelectedIdList'](this[_0xf4bd1e(0x8b)],!0x0);!!ValueUtil[_0xf4bd1e(0x85)](_0x2c6f22)&&await this[_0xf4bd1e(0x6c)](_0x2c6f22)&&this[_0xf4bd1e(0x83)]();}async['export'](){const _0x5ebf3b=a0_0xcf95e5;let _0xe9c9a5=TermsUtil['tTitle'](ValueUtil['getParams'](this[_0x5ebf3b(0x96)],'title'));return await MetaApi[_0x5ebf3b(0x7a)](this['isElement'],_0xe9c9a5,this[_0x5ebf3b(0x8b)]);}async['import'](){}[a0_0xcf95e5(0xa7)](){const _0x10badd=a0_0xcf95e5;let _0x3ecb83=this[_0x10badd(0x8b)][_0x10badd(0x7e)]['records'];return _0x3ecb83=JSON['parse'](JSON[_0x10badd(0x8a)](_0x3ecb83)),_0x3ecb83[_0x10badd(0x90)](_0x39f9ee=>{const _0x157ae9=_0x10badd;Object[_0x157ae9(0x71)](_0x39f9ee)[_0x157ae9(0x90)](_0x526070=>{const _0x3645f6=_0x157ae9;_0x526070[_0x3645f6(0x98)]('__')&&delete _0x39f9ee[_0x526070];});}),{'main':_0x3ecb83,'detail':this[_0x10badd(0x9b)][_0x10badd(0x72)](_0x10badd(0x8c))['getData']()};}};
1
+ const a0_0x620c4a=a0_0x85ea;function a0_0x85ea(_0x65ca56,_0x341938){const _0xfb39bf=a0_0xfb39();return a0_0x85ea=function(_0x85eaa8,_0x2cde48){_0x85eaa8=_0x85eaa8-0x1a6;let _0x4ea0ab=_0xfb39bf[_0x85eaa8];return _0x4ea0ab;},a0_0x85ea(_0x65ca56,_0x341938);}(function(_0x16fda8,_0x570323){const _0x2a707d=a0_0x85ea,_0x27dc49=_0x16fda8();while(!![]){try{const _0x5d0937=parseInt(_0x2a707d(0x1bd))/0x1+-parseInt(_0x2a707d(0x1ce))/0x2+-parseInt(_0x2a707d(0x1d2))/0x3+-parseInt(_0x2a707d(0x1ef))/0x4*(parseInt(_0x2a707d(0x1d9))/0x5)+parseInt(_0x2a707d(0x1db))/0x6+-parseInt(_0x2a707d(0x1eb))/0x7+-parseInt(_0x2a707d(0x1c7))/0x8*(-parseInt(_0x2a707d(0x1b8))/0x9);if(_0x5d0937===_0x570323)break;else _0x27dc49['push'](_0x27dc49['shift']());}catch(_0x5f1d61){_0x27dc49['push'](_0x27dc49['shift']());}}}(a0_0xfb39,0x38014));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0xfb39(){const _0x16c85d=['parseGristConfigs','gridEmphasized','name','189dASkQC','filterFormId','grid_column','gristId','isPage','211766epXfvd','deleteByIds','find','importable','pageInitialized','export','keys','getBasicGristTabStyles','searchFieldValues','connectedCallback','239912POyIKJ','gristConfigSet','grid','isNotEmpty','type','updateMultiple','filterForm','176454dYwNDV','shadowRoot','firstUpdated','ox-filters-form-base','1339737zlwgHl','useMasterFilterForm','render','useFilterForm','getGristTabHtml','fetch','activityDataSet','5BJgAeU','parse','2692884fagbvQ','ox-grist','records','getData','save','operator','map','clear','tTitle','options','search','getParams','record','querySelector','value','___data','1460410koDPDH','filter','parseGridConfigSet','getAndParseMenuMeta','1270068MbLeYD','styles','#detail','context','columns','menuInfo','delete','isElement','header','renderRoot','gridConfig','exportableData','exportable','meta-tab-element','forEach','import','stringify','grist','searchConfig','getSelectedIdList'];a0_0xfb39=function(){return _0x16c85d;};return a0_0xfb39();}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=_0x4a98bc=>class extends MetaButtonMixin(_0x4a98bc){static get[a0_0x620c4a(0x1f0)](){const _0x2e50bf=a0_0x620c4a;return MetaApi[_0x2e50bf(0x1c4)]();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get['grist'](){const _0x4f0e62=a0_0x620c4a;return this[_0x4f0e62(0x1aa)][_0x4f0e62(0x1e8)](this[_0x4f0e62(0x1bb)]);}get[a0_0x620c4a(0x1cd)](){const _0x52dc21=a0_0x620c4a;return this[_0x52dc21(0x1cf)]?.[_0x52dc21(0x1e8)](this[_0x52dc21(0x1b9)]);}get['detailElement'](){const _0x364eac=a0_0x620c4a;return this[_0x364eac(0x1cf)][_0x364eac(0x1e8)](_0x364eac(0x1f1));}get[a0_0x620c4a(0x1f2)](){const _0xf07a48=a0_0x620c4a;let _0x507f35=MetaUiUtil['getContextObject'](this);return _0x507f35['actions']&&delete _0x507f35['actions'],_0x507f35['exportable']&&delete _0x507f35[_0xf07a48(0x1ad)],_0x507f35[_0xf07a48(0x1c0)]&&delete _0x507f35[_0xf07a48(0x1c0)],_0x507f35;}async[a0_0x620c4a(0x1c6)](){const _0x2b9df0=a0_0x620c4a;this[_0x2b9df0(0x1bb)]=_0x2b9df0(0x1dc),this[_0x2b9df0(0x1b9)]=_0x2b9df0(0x1d1),await this[_0x2b9df0(0x1ee)](),this[_0x2b9df0(0x1a8)]&&await this[_0x2b9df0(0x1b5)](),this[_0x2b9df0(0x1d8)]&&(this['dataSet']=(this['activityDataSet']||{})['main']),super[_0x2b9df0(0x1c6)]&&await super[_0x2b9df0(0x1c6)]();}async[a0_0x620c4a(0x1d0)](){const _0x594453=a0_0x620c4a;super[_0x594453(0x1d0)]&&await super[_0x594453(0x1d0)]();}async[a0_0x620c4a(0x1c1)](){const _0x11689d=a0_0x620c4a;this[_0x11689d(0x1bc)]&&await this['parseGristConfigs'](),super[_0x11689d(0x1c1)]&&await super['pageInitialized']();}[a0_0x620c4a(0x1d4)](){const _0x817284=a0_0x620c4a;return MetaApi[_0x817284(0x1d6)](this);}['parseBasicGridConfigs'](_0x2be9b8){const _0x5e0db1=a0_0x620c4a;this[_0x5e0db1(0x1ab)]=_0x2be9b8[_0x5e0db1(0x1c9)],this['gridColumnConfig']=_0x2be9b8[_0x5e0db1(0x1ba)],this[_0x5e0db1(0x1b3)]=_0x2be9b8[_0x5e0db1(0x1e5)],this[_0x5e0db1(0x1b6)]=_0x2be9b8[_0x5e0db1(0x1b6)];}async[a0_0x620c4a(0x1b5)](){const _0x42188e=a0_0x620c4a;this[_0x42188e(0x1c8)]=await MetaApi[_0x42188e(0x1ed)](this),this[_0x42188e(0x1d3)]=!0x0===this['useFilterForm'],this[_0x42188e(0x1d5)]=!0x1,this[_0x42188e(0x1c5)]=[],this['searchFields']=this[_0x42188e(0x1c8)][_0x42188e(0x1f3)][_0x42188e(0x1ec)](_0x5eecbd=>_0x5eecbd['filter'])[_0x42188e(0x1e1)](_0x29a090=>{const _0x19fca4=_0x42188e;let _0x49a76f={'name':_0x29a090['name'],'type':'search'===_0x29a090[_0x19fca4(0x1ec)][_0x19fca4(0x1e0)]?_0x19fca4(0x1e5):_0x29a090[_0x19fca4(0x1cb)],'label':_0x29a090[_0x19fca4(0x1a9)],'operator':_0x29a090[_0x19fca4(0x1ec)]['operator']?_0x29a090['filter'][_0x19fca4(0x1e0)]:'eq'};return _0x29a090[_0x19fca4(0x1ec)][_0x19fca4(0x1e4)]&&(_0x49a76f[_0x19fca4(0x1e4)]=_0x29a090[_0x19fca4(0x1ec)]['options']),_0x29a090[_0x19fca4(0x1e7)][_0x19fca4(0x1e4)]&&(_0x49a76f[_0x19fca4(0x1e4)]=_0x29a090[_0x19fca4(0x1e7)]['options']),_0x29a090[_0x19fca4(0x1ec)][_0x19fca4(0x1e9)]&&this[_0x19fca4(0x1c5)]['push']({'name':_0x49a76f[_0x19fca4(0x1b7)],'operator':_0x49a76f['operator'],'value':_0x29a090[_0x19fca4(0x1ec)][_0x19fca4(0x1e9)]}),delete _0x29a090['filter'],_0x49a76f;});}async['fetch'](){const _0x3fd784=a0_0x620c4a;await this[_0x3fd784(0x1b2)]['fetch']();}async['beforeFetch']({page:_0x2eceb1=0x0,limit:_0x46aca7=0x0,sortings:_0x7ea6c9=[],filters:_0xa3bd86=[]}){const _0x311d79=a0_0x620c4a;let _0x3b9a02=this['renderRoot'][_0x311d79(0x1e8)]('meta-tab-element');return await _0x3b9a02[_0x311d79(0x1e2)](),!0x0;}async[a0_0x620c4a(0x1df)](){const _0x44622d=a0_0x620c4a;let _0x1dda6b=MetaApi['patchesForUpdateMultiple'](this['grist']);!!ValueUtil[_0x44622d(0x1ca)](_0x1dda6b)&&await this[_0x44622d(0x1cc)](_0x1dda6b)&&this[_0x44622d(0x1d7)]();}async[a0_0x620c4a(0x1bf)](){const _0x3d36fc=a0_0x620c4a;let _0x5f0de2=MetaApi[_0x3d36fc(0x1b4)](this['grist'],!0x0);return ValueUtil[_0x3d36fc(0x1ca)](_0x5f0de2)?await this['findOne'](_0x5f0de2[0x0]):{};}async[a0_0x620c4a(0x1a7)](){const _0x6cadb=a0_0x620c4a;let _0x3040e7=MetaApi[_0x6cadb(0x1b4)](this[_0x6cadb(0x1b2)],!0x0);!!ValueUtil['isNotEmpty'](_0x3040e7)&&await this[_0x6cadb(0x1be)](_0x3040e7)&&this[_0x6cadb(0x1d7)]();}async[a0_0x620c4a(0x1c2)](){const _0x65d251=a0_0x620c4a;let _0x519d97=TermsUtil[_0x65d251(0x1e3)](ValueUtil[_0x65d251(0x1e6)](this[_0x65d251(0x1a6)],'title'));return await MetaApi[_0x65d251(0x1ac)](this[_0x65d251(0x1a8)],_0x519d97,this[_0x65d251(0x1b2)]);}async[a0_0x620c4a(0x1b0)](){}[a0_0x620c4a(0x1de)](){const _0x502c0d=a0_0x620c4a;let _0x4c37d3=this['grist'][_0x502c0d(0x1ea)][_0x502c0d(0x1dd)];return _0x4c37d3=JSON[_0x502c0d(0x1da)](JSON[_0x502c0d(0x1b1)](_0x4c37d3)),_0x4c37d3[_0x502c0d(0x1af)](_0x21a8ca=>{const _0x214cbf=_0x502c0d;Object[_0x214cbf(0x1c3)](_0x21a8ca)[_0x214cbf(0x1af)](_0x29a34f=>{_0x29a34f['startsWith']('__')&&delete _0x21a8ca[_0x29a34f];});}),{'main':_0x4c37d3,'detail':this[_0x502c0d(0x1aa)][_0x502c0d(0x1e8)](_0x502c0d(0x1ae))[_0x502c0d(0x1de)]()};}};
@@ -1 +1 @@
1
- const a0_0x30ebb6=a0_0x2590;(function(_0xc55540,_0x101c93){const _0x1544c7=a0_0x2590,_0x583afa=_0xc55540();while(!![]){try{const _0x112e49=-parseInt(_0x1544c7(0x9a))/0x1*(-parseInt(_0x1544c7(0xb8))/0x2)+-parseInt(_0x1544c7(0xc3))/0x3*(-parseInt(_0x1544c7(0xc9))/0x4)+-parseInt(_0x1544c7(0xcc))/0x5+-parseInt(_0x1544c7(0xa5))/0x6+-parseInt(_0x1544c7(0xa3))/0x7+parseInt(_0x1544c7(0xa2))/0x8+parseInt(_0x1544c7(0x9d))/0x9;if(_0x112e49===_0x101c93)break;else _0x583afa['push'](_0x583afa['shift']());}catch(_0xcc1118){_0x583afa['push'](_0x583afa['shift']());}}}(a0_0x1a66,0xbc4fd));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x2590(_0x9bd241,_0x16b050){const _0x1a66b6=a0_0x1a66();return a0_0x2590=function(_0x259021,_0x4f3024){_0x259021=_0x259021-0x98;let _0x570d3e=_0x1a66b6[_0x259021];return _0x570d3e;},a0_0x2590(_0x9bd241,_0x16b050);}import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x45f03c=>class extends MetaButtonMixin(_0x45f03c){static get[a0_0x30ebb6(0xc0)](){const _0x4971c4=a0_0x30ebb6;return MetaApi[_0x4971c4(0x98)]();}static get[a0_0x30ebb6(0xa6)](){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 _0x3cab5f=a0_0x30ebb6;return this[_0x3cab5f(0x9e)][_0x3cab5f(0xb1)]();}get[a0_0x30ebb6(0xca)](){const _0x8a9826=a0_0x30ebb6;return this[_0x8a9826(0xbd)]?.[_0x8a9826(0xc2)](this[_0x8a9826(0xd3)]);}get[a0_0x30ebb6(0xb5)](){const _0x9ff881=a0_0x30ebb6;let _0x426b63=MetaUiUtil[_0x9ff881(0xc4)](this);return _0x426b63[_0x9ff881(0xce)]&&delete _0x426b63[_0x9ff881(0xce)],_0x426b63[_0x9ff881(0xb7)]&&delete _0x426b63['exportable'],_0x426b63[_0x9ff881(0xb3)]&&delete _0x426b63[_0x9ff881(0xb3)],_0x426b63;}async['connectedCallback'](){const _0x481d47=a0_0x30ebb6;this['gristId']=_0x481d47(0xbb),this[_0x481d47(0xd3)]='ox-filters-form-base',await this[_0x481d47(0xbe)](),this[_0x481d47(0xbc)]&&await this[_0x481d47(0xcb)](),this['activityDataSet']&&(this[_0x481d47(0xaf)]=(this[_0x481d47(0xb2)]||{})[_0x481d47(0xb4)]),super[_0x481d47(0xac)]&&await super[_0x481d47(0xac)]();}async[a0_0x30ebb6(0xd2)](){const _0x4ce01d=a0_0x30ebb6;super[_0x4ce01d(0xd2)]&&await super[_0x4ce01d(0xd2)]();}async[a0_0x30ebb6(0xd1)](){const _0x367061=a0_0x30ebb6;this[_0x367061(0xba)]&&await this[_0x367061(0xcb)](),super[_0x367061(0xd1)]&&await super[_0x367061(0xd1)]();}[a0_0x30ebb6(0xd4)](){return MetaApi['getMainTabHtml'](this);}[a0_0x30ebb6(0xa9)](_0x3c107c){const _0x275971=a0_0x30ebb6;this[_0x275971(0xd7)]=_0x3c107c[_0x275971(0x99)],this['gridColumnConfig']=_0x3c107c[_0x275971(0xd6)],this[_0x275971(0xc5)]=_0x3c107c[_0x275971(0xae)],this['gridEmphasized']=_0x3c107c['gridEmphasized'];}async[a0_0x30ebb6(0xcb)](){const _0x44b38b=a0_0x30ebb6;this[_0x44b38b(0xc6)]=await MetaApi[_0x44b38b(0xc1)](this),this[_0x44b38b(0xa8)]=!0x0===this[_0x44b38b(0xcd)],this['useFilterForm']=!0x1,this[_0x44b38b(0xd5)]=void 0x0,this[_0x44b38b(0xbf)]=!0x1,this[_0x44b38b(0xab)]=!0x1,this[_0x44b38b(0xc8)]=[],this[_0x44b38b(0xb6)]=this[_0x44b38b(0xc6)]['columns'][_0x44b38b(0x9b)](_0x4d10a2=>_0x4d10a2[_0x44b38b(0x9b)])[_0x44b38b(0xc7)](_0x3d22e1=>{const _0x47f790=_0x44b38b;let _0xc836fd={'name':_0x3d22e1[_0x47f790(0xb0)],'type':_0x47f790(0xae)===_0x3d22e1['filter']['operator']?_0x47f790(0xae):_0x3d22e1[_0x47f790(0xa1)],'label':_0x3d22e1['header'],'operator':_0x3d22e1[_0x47f790(0x9b)][_0x47f790(0xa7)]?_0x3d22e1[_0x47f790(0x9b)][_0x47f790(0xa7)]:'eq'};return _0x3d22e1['filter'][_0x47f790(0xd0)]&&(_0xc836fd[_0x47f790(0xd0)]=_0x3d22e1[_0x47f790(0x9b)][_0x47f790(0xd0)]),_0x3d22e1[_0x47f790(0xb9)][_0x47f790(0xd0)]&&(_0xc836fd[_0x47f790(0xd0)]=_0x3d22e1['record']['options']),_0x3d22e1['filter']['value']&&this[_0x47f790(0xc8)][_0x47f790(0xaa)]({'name':_0xc836fd[_0x47f790(0xb0)],'operator':_0xc836fd['operator'],'value':_0x3d22e1[_0x47f790(0x9b)][_0x47f790(0x9c)]}),delete _0x3d22e1['filter'],_0xc836fd;});}async[a0_0x30ebb6(0x9f)](){const _0x467fd4=a0_0x30ebb6;await this[_0x467fd4(0xad)][_0x467fd4(0x9f)]();}async[a0_0x30ebb6(0xa4)]({page:_0xedf8de=0x0,limit:_0x584aa0=0x0,sortings:_0x5085dd=[],filters:_0x302d6c=[]}){const _0x570038=a0_0x30ebb6;return this['masterElement']&&this[_0x570038(0x9e)][_0x570038(0xcf)]&&await this[_0x570038(0x9e)][_0x570038(0xcf)](),!0x0;}[a0_0x30ebb6(0xa0)](){const _0x5739e5=a0_0x30ebb6;return{'master':this[_0x5739e5(0x9e)][_0x5739e5(0xa0)]()};}};function a0_0x1a66(){const _0x42c006=['masterElement','fetch','getData','type','3508496lOUNks','7755433vTpnIs','beforeFetch','8188668CbjjjF','properties','operator','useMasterFilterForm','parseBasicGridConfigs','push','useButtonImport','connectedCallback','grist','search','dataSet','name','getMainGrist','activityDataSet','importable','main','context','searchFields','exportable','161714ixbkHO','record','isPage','ox-grist','isElement','shadowRoot','getAndParseMenuMeta','useButtonExport','styles','parseGridConfigSet','querySelector','575022GMOnes','getContextObject','searchConfig','gristConfigSet','map','searchFieldValues','4TWpxIA','filterForm','parseGristConfigs','2444235FhEhaw','useFilterForm','actions','clear','options','pageInitialized','firstUpdated','filterFormId','render','buttonConfig','grid_column','gridConfig','getBasicMainTabStyles','grid','13AXhEST','filter','value','18463428eJQnSo'];a0_0x1a66=function(){return _0x42c006;};return a0_0x1a66();}
1
+ const a0_0x35afcc=a0_0xbdf9;(function(_0x4c0749,_0x2cc35c){const _0x4696e8=a0_0xbdf9,_0x314c41=_0x4c0749();while(!![]){try{const _0x3ccd12=parseInt(_0x4696e8(0xc4))/0x1*(-parseInt(_0x4696e8(0x8e))/0x2)+-parseInt(_0x4696e8(0xb6))/0x3*(-parseInt(_0x4696e8(0xc1))/0x4)+parseInt(_0x4696e8(0x96))/0x5+-parseInt(_0x4696e8(0xb2))/0x6*(-parseInt(_0x4696e8(0x91))/0x7)+-parseInt(_0x4696e8(0xa5))/0x8*(-parseInt(_0x4696e8(0xb5))/0x9)+-parseInt(_0x4696e8(0xbc))/0xa+-parseInt(_0x4696e8(0xbf))/0xb;if(_0x3ccd12===_0x2cc35c)break;else _0x314c41['push'](_0x314c41['shift']());}catch(_0x1efc9e){_0x314c41['push'](_0x314c41['shift']());}}}(a0_0x2ca7,0x37282));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_0xbdf9(_0x557ced,_0x43da83){const _0x2ca71c=a0_0x2ca7();return a0_0xbdf9=function(_0xbdf9bd,_0x9c8f3f){_0xbdf9bd=_0xbdf9bd-0x87;let _0x1d4258=_0x2ca71c[_0xbdf9bd];return _0x1d4258;},a0_0xbdf9(_0x557ced,_0x43da83);}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x2ca7(){const _0xf5d3c0=['parseGridConfigSet','3489387gXcQpK','useFilterForm','52qqIZDu','getAndParseMenuMeta','type','67227TypNAD','render','isPage','grid_column','ox-filters-form-base','options','dataSet','search','getData','6OtkXCv','actions','context','11053aukimD','connectedCallback','getBasicMainTabStyles','getMainTabHtml','buttonConfig','1791030BbkzYV','header','record','gridEmphasized','querySelector','map','exportable','shadowRoot','value','pageInitialized','filterFormId','push','gridColumnConfig','useMasterFilterForm','name','32XVUrji','grist','fetch','searchFieldValues','beforeFetch','activityDataSet','operator','importable','firstUpdated','gristId','ox-grist','main','clear','1512VLTUjr','searchFields','gristConfigSet','425043rdoKZS','34509pZsOHm','filter','masterElement','searchConfig','getMainGrist','gridConfig','3497410YDmAql','parseGristConfigs'];a0_0x2ca7=function(){return _0xf5d3c0;};return a0_0x2ca7();}export const MetaMainTabMixin=_0x1b8d6b=>class extends MetaButtonMixin(_0x1b8d6b){static get['styles'](){const _0x116ca8=a0_0xbdf9;return MetaApi[_0x116ca8(0x93)]();}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_0x35afcc(0xa6)](){const _0x24b423=a0_0x35afcc;return this['masterElement'][_0x24b423(0xba)]();}get['filterForm'](){const _0x4278e8=a0_0x35afcc;return this[_0x4278e8(0x9d)]?.[_0x4278e8(0x9a)](this[_0x4278e8(0xa0)]);}get[a0_0x35afcc(0x90)](){const _0x193a43=a0_0x35afcc;let _0x1c10b3=MetaUiUtil['getContextObject'](this);return _0x1c10b3['actions']&&delete _0x1c10b3[_0x193a43(0x8f)],_0x1c10b3[_0x193a43(0x9c)]&&delete _0x1c10b3[_0x193a43(0x9c)],_0x1c10b3[_0x193a43(0xac)]&&delete _0x1c10b3['importable'],_0x1c10b3;}async[a0_0x35afcc(0x92)](){const _0x19ee02=a0_0x35afcc;this[_0x19ee02(0xae)]=_0x19ee02(0xaf),this[_0x19ee02(0xa0)]=_0x19ee02(0x89),await this[_0x19ee02(0xc2)](),this['isElement']&&await this[_0x19ee02(0xbd)](),this['activityDataSet']&&(this[_0x19ee02(0x8b)]=(this[_0x19ee02(0xaa)]||{})[_0x19ee02(0xb0)]),super[_0x19ee02(0x92)]&&await super[_0x19ee02(0x92)]();}async['firstUpdated'](){const _0x2163c8=a0_0x35afcc;super[_0x2163c8(0xad)]&&await super[_0x2163c8(0xad)]();}async[a0_0x35afcc(0x9f)](){const _0x506a62=a0_0x35afcc;this[_0x506a62(0x87)]&&await this['parseGristConfigs'](),super[_0x506a62(0x9f)]&&await super[_0x506a62(0x9f)]();}[a0_0x35afcc(0xc5)](){const _0x5025e0=a0_0x35afcc;return MetaApi[_0x5025e0(0x94)](this);}['parseBasicGridConfigs'](_0x5cc460){const _0x16ccd6=a0_0x35afcc;this[_0x16ccd6(0xbb)]=_0x5cc460['grid'],this[_0x16ccd6(0xa2)]=_0x5cc460[_0x16ccd6(0x88)],this[_0x16ccd6(0xb9)]=_0x5cc460[_0x16ccd6(0x8c)],this[_0x16ccd6(0x99)]=_0x5cc460[_0x16ccd6(0x99)];}async[a0_0x35afcc(0xbd)](){const _0x2a23da=a0_0x35afcc;this[_0x2a23da(0xb4)]=await MetaApi[_0x2a23da(0xbe)](this),this[_0x2a23da(0xa3)]=!0x0===this['useFilterForm'],this[_0x2a23da(0xc0)]=!0x1,this[_0x2a23da(0x95)]=void 0x0,this['useButtonExport']=!0x1,this['useButtonImport']=!0x1,this['searchFieldValues']=[],this[_0x2a23da(0xb3)]=this['gristConfigSet']['columns']['filter'](_0x1db027=>_0x1db027['filter'])[_0x2a23da(0x9b)](_0x56c6e8=>{const _0x1dd2f7=_0x2a23da;let _0x2edefc={'name':_0x56c6e8[_0x1dd2f7(0xa4)],'type':'search'===_0x56c6e8[_0x1dd2f7(0xb7)]['operator']?'search':_0x56c6e8[_0x1dd2f7(0xc3)],'label':_0x56c6e8[_0x1dd2f7(0x97)],'operator':_0x56c6e8['filter'][_0x1dd2f7(0xab)]?_0x56c6e8[_0x1dd2f7(0xb7)][_0x1dd2f7(0xab)]:'eq'};return _0x56c6e8[_0x1dd2f7(0xb7)][_0x1dd2f7(0x8a)]&&(_0x2edefc[_0x1dd2f7(0x8a)]=_0x56c6e8[_0x1dd2f7(0xb7)]['options']),_0x56c6e8[_0x1dd2f7(0x98)][_0x1dd2f7(0x8a)]&&(_0x2edefc[_0x1dd2f7(0x8a)]=_0x56c6e8[_0x1dd2f7(0x98)]['options']),_0x56c6e8[_0x1dd2f7(0xb7)]['value']&&this[_0x1dd2f7(0xa8)][_0x1dd2f7(0xa1)]({'name':_0x2edefc[_0x1dd2f7(0xa4)],'operator':_0x2edefc[_0x1dd2f7(0xab)],'value':_0x56c6e8['filter'][_0x1dd2f7(0x9e)]}),delete _0x56c6e8[_0x1dd2f7(0xb7)],_0x2edefc;});}async[a0_0x35afcc(0xa7)](){const _0x1498d0=a0_0x35afcc;await this[_0x1498d0(0xa6)][_0x1498d0(0xa7)]();}async[a0_0x35afcc(0xa9)]({page:_0x38fbb7=0x0,limit:_0x167f68=0x0,sortings:_0x3f5f18=[],filters:_0x2e8b5c=[]}){const _0x20d0b2=a0_0x35afcc;return this[_0x20d0b2(0xb8)]&&this[_0x20d0b2(0xb8)][_0x20d0b2(0xb1)]&&await this[_0x20d0b2(0xb8)][_0x20d0b2(0xb1)](),!0x0;}[a0_0x35afcc(0x8d)](){const _0x31c8d5=a0_0x35afcc;return{'master':this[_0x31c8d5(0xb8)]['getData']()};}};
@@ -1 +1 @@
1
- const a0_0x51ef1c=a0_0x1120;(function(_0x443e34,_0x58d91e){const _0xf99612=a0_0x1120,_0x574b1f=_0x443e34();while(!![]){try{const _0x1d586d=parseInt(_0xf99612(0x21f))/0x1*(-parseInt(_0xf99612(0x23c))/0x2)+parseInt(_0xf99612(0x1fd))/0x3*(-parseInt(_0xf99612(0x227))/0x4)+-parseInt(_0xf99612(0x20a))/0x5+-parseInt(_0xf99612(0x205))/0x6+parseInt(_0xf99612(0x1f8))/0x7+-parseInt(_0xf99612(0x23a))/0x8*(-parseInt(_0xf99612(0x221))/0x9)+parseInt(_0xf99612(0x20b))/0xa*(parseInt(_0xf99612(0x231))/0xb);if(_0x1d586d===_0x58d91e)break;else _0x574b1f['push'](_0x574b1f['shift']());}catch(_0xaeed91){_0x574b1f['push'](_0x574b1f['shift']());}}}(a0_0x1baf,0x73b18));function a0_0x1baf(){const _0x497126=['searchFieldValues','context','detailElement','export','importable','value','records','filterFormId','8YEmtNq','push','460MPyryS','gristId','header','patchesForUpdateMultiple','isNotEmpty','firstUpdated','getMasterDetailHtml','stringify','getParams','save','find','getSelectedIdList','5732958HCwFbJ','map','clear','pageInitialized','parse','94938ZjJVVu','isPage','getData','search','forEach','exportableData','searchConfig','renderRoot','2697798LKbrhQ','getAndParseMenuMeta','exportable','connectedCallback','name','1624110MLNPKe','16960AnUvZR','beforeFetch','record','getBasicMasterDetailStyles','querySelector','import','parseGristConfigs','findOne','dataSet','main','isElement','gristConfigSet','columns','useFilterForm','deleteByIds','render','filter','actions','type','properties','3292DiQIhy','grist','7272927PBpNoF','activityDataSet','shadowRoot','parseBasicGridConfigs','getContextObject','startsWith','60OxiHAx','gridEmphasized','fetch','tTitle','options','parseGridConfigSet','searchFields','___data','operator','menuInfo','5533ndBrFm'];a0_0x1baf=function(){return _0x497126;};return a0_0x1baf();}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_0x1120(_0x3ff035,_0x6c9bbb){const _0x1baf54=a0_0x1baf();return a0_0x1120=function(_0x112040,_0x47a176){_0x112040=_0x112040-0x1ef;let _0x4edc1e=_0x1baf54[_0x112040];return _0x4edc1e;},a0_0x1120(_0x3ff035,_0x6c9bbb);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x55247f=>class extends MetaButtonMixin(_0x55247f){static get['styles'](){const _0x522cef=a0_0x1120;return MetaApi[_0x522cef(0x20e)]();}static get[a0_0x51ef1c(0x21e)](){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_0x51ef1c(0x220)](){const _0x1b3a71=a0_0x51ef1c;return this[_0x1b3a71(0x204)][_0x1b3a71(0x20f)](this[_0x1b3a71(0x23d)]);}get['filterForm'](){const _0x264bb1=a0_0x51ef1c;return this[_0x264bb1(0x223)]?.[_0x264bb1(0x20f)](this['filterFormId']);}get[a0_0x51ef1c(0x233)](){const _0x234db8=a0_0x51ef1c;let _0x137c24=MetaUiUtil[_0x234db8(0x225)](this);return _0x137c24[_0x234db8(0x21c)]&&delete _0x137c24[_0x234db8(0x21c)],_0x137c24[_0x234db8(0x207)]&&delete _0x137c24['exportable'],_0x137c24[_0x234db8(0x236)]&&delete _0x137c24[_0x234db8(0x236)],_0x137c24;}async[a0_0x51ef1c(0x208)](){const _0x108046=a0_0x51ef1c;this[_0x108046(0x23d)]='ox-grist',this[_0x108046(0x239)]='ox-filters-form-base',await this[_0x108046(0x206)](),this['isElement']&&await this['parseGristConfigs'](),this['activityDataSet']&&(this[_0x108046(0x213)]=(this[_0x108046(0x222)]||{})[_0x108046(0x214)]),super['connectedCallback']&&await super[_0x108046(0x208)]();}async[a0_0x51ef1c(0x1f1)](){const _0x50020a=a0_0x51ef1c;super[_0x50020a(0x1f1)]&&await super[_0x50020a(0x1f1)]();}async[a0_0x51ef1c(0x1fb)](){const _0x38cfc8=a0_0x51ef1c;this[_0x38cfc8(0x1fe)]&&await this[_0x38cfc8(0x211)](),super[_0x38cfc8(0x1fb)]&&await super[_0x38cfc8(0x1fb)]();}[a0_0x51ef1c(0x21a)](){const _0x3f4343=a0_0x51ef1c;return MetaApi[_0x3f4343(0x1f2)](this);}[a0_0x51ef1c(0x224)](_0x27c614){const _0x31f170=a0_0x51ef1c;this['gridConfig']=_0x27c614['grid'],this['gridColumnConfig']=_0x27c614['grid_column'],this[_0x31f170(0x203)]=_0x27c614['search'],this[_0x31f170(0x228)]=_0x27c614['gridEmphasized'];}async['parseGristConfigs'](){const _0x133aa5=a0_0x51ef1c;this[_0x133aa5(0x216)]=await MetaApi[_0x133aa5(0x22c)](this),this['useMasterFilterForm']=!0x0===this[_0x133aa5(0x218)],this['useFilterForm']=!0x1,this['searchFieldValues']=[],this[_0x133aa5(0x22d)]=this[_0x133aa5(0x216)][_0x133aa5(0x217)]['filter'](_0x4a745e=>_0x4a745e[_0x133aa5(0x21b)])[_0x133aa5(0x1f9)](_0x523283=>{const _0x11ff48=_0x133aa5;let _0x5ce27a={'name':_0x523283[_0x11ff48(0x209)],'type':'search'===_0x523283['filter']['operator']?_0x11ff48(0x200):_0x523283[_0x11ff48(0x21d)],'label':_0x523283[_0x11ff48(0x23e)],'operator':_0x523283[_0x11ff48(0x21b)][_0x11ff48(0x22f)]?_0x523283[_0x11ff48(0x21b)]['operator']:'eq'};return _0x523283[_0x11ff48(0x21b)][_0x11ff48(0x22b)]&&(_0x5ce27a[_0x11ff48(0x22b)]=_0x523283[_0x11ff48(0x21b)][_0x11ff48(0x22b)]),_0x523283[_0x11ff48(0x20d)][_0x11ff48(0x22b)]&&(_0x5ce27a[_0x11ff48(0x22b)]=_0x523283[_0x11ff48(0x20d)][_0x11ff48(0x22b)]),_0x523283[_0x11ff48(0x21b)][_0x11ff48(0x237)]&&this[_0x11ff48(0x232)][_0x11ff48(0x23b)]({'name':_0x5ce27a['name'],'operator':_0x5ce27a['operator'],'value':_0x523283[_0x11ff48(0x21b)][_0x11ff48(0x237)]}),delete _0x523283['filter'],_0x5ce27a;});}async[a0_0x51ef1c(0x229)](){const _0x3bd1f6=a0_0x51ef1c;await this[_0x3bd1f6(0x220)][_0x3bd1f6(0x229)]();}async[a0_0x51ef1c(0x20c)]({page:_0xcbe457=0x0,limit:_0x41165e=0x0,sortings:_0x2a29e9=[],filters:_0x20801f=[]}){const _0x298cf3=a0_0x51ef1c;return this[_0x298cf3(0x234)]&&this[_0x298cf3(0x234)][_0x298cf3(0x1fa)]&&await this[_0x298cf3(0x234)][_0x298cf3(0x1fa)](),!0x0;}async[a0_0x51ef1c(0x1f5)](){const _0x21a873=a0_0x51ef1c;let _0x369267=MetaApi[_0x21a873(0x1ef)](this[_0x21a873(0x220)]);!!ValueUtil[_0x21a873(0x1f0)](_0x369267)&&await this['updateMultiple'](_0x369267)&&this[_0x21a873(0x229)]();}async[a0_0x51ef1c(0x1f6)](){const _0x13f00f=a0_0x51ef1c;let _0x12f35a=MetaApi[_0x13f00f(0x1f7)](this[_0x13f00f(0x220)],!0x0);return ValueUtil[_0x13f00f(0x1f0)](_0x12f35a)?await this[_0x13f00f(0x212)](_0x12f35a[0x0]):{};}async['delete'](){const _0x748993=a0_0x51ef1c;let _0x3c080c=MetaApi[_0x748993(0x1f7)](this[_0x748993(0x220)],!0x0);!!ValueUtil[_0x748993(0x1f0)](_0x3c080c)&&await this[_0x748993(0x219)](_0x3c080c)&&this[_0x748993(0x229)]();}async[a0_0x51ef1c(0x235)](){const _0x4cbfe8=a0_0x51ef1c;let _0x3429da=TermsUtil[_0x4cbfe8(0x22a)](ValueUtil[_0x4cbfe8(0x1f4)](this[_0x4cbfe8(0x230)],'title'));return await MetaApi[_0x4cbfe8(0x202)](this[_0x4cbfe8(0x215)],_0x3429da,this[_0x4cbfe8(0x220)]);}async[a0_0x51ef1c(0x210)](){}[a0_0x51ef1c(0x1ff)](){const _0x4e957b=a0_0x51ef1c;let _0x44f673=this[_0x4e957b(0x220)][_0x4e957b(0x22e)][_0x4e957b(0x238)];return _0x44f673=JSON[_0x4e957b(0x1fc)](JSON[_0x4e957b(0x1f3)](_0x44f673)),_0x44f673[_0x4e957b(0x201)](_0x57ceb7=>{const _0x5df1a5=_0x4e957b;Object['keys'](_0x57ceb7)[_0x5df1a5(0x201)](_0x360083=>{const _0x1fb5ce=_0x5df1a5;_0x360083[_0x1fb5ce(0x226)]('__')&&delete _0x57ceb7[_0x360083];});}),{'main':_0x44f673,'detail':this[_0x4e957b(0x234)]['getData']()};}};
1
+ const a0_0xe92108=a0_0x4cdd;(function(_0x16b113,_0x53534d){const _0x4c21da=a0_0x4cdd,_0x397b37=_0x16b113();while(!![]){try{const _0x9fdd4c=parseInt(_0x4c21da(0x186))/0x1*(-parseInt(_0x4c21da(0x193))/0x2)+parseInt(_0x4c21da(0x171))/0x3+-parseInt(_0x4c21da(0x18c))/0x4*(-parseInt(_0x4c21da(0x195))/0x5)+parseInt(_0x4c21da(0x1b2))/0x6*(parseInt(_0x4c21da(0x184))/0x7)+-parseInt(_0x4c21da(0x16e))/0x8+-parseInt(_0x4c21da(0x183))/0x9*(-parseInt(_0x4c21da(0x19e))/0xa)+-parseInt(_0x4c21da(0x19f))/0xb*(-parseInt(_0x4c21da(0x189))/0xc);if(_0x9fdd4c===_0x53534d)break;else _0x397b37['push'](_0x397b37['shift']());}catch(_0x4bbd72){_0x397b37['push'](_0x397b37['shift']());}}}(a0_0x5034,0x8055e));function a0_0x4cdd(_0x5f47ea,_0x2643ee){const _0x5034ff=a0_0x5034();return a0_0x4cdd=function(_0x4cddee,_0x1f7b88){_0x4cddee=_0x4cddee-0x16c;let _0x50e6c2=_0x5034ff[_0x4cddee];return _0x50e6c2;},a0_0x4cdd(_0x5f47ea,_0x2643ee);}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 MetaMasterDetailMixin=_0x50a4b6=>class extends MetaButtonMixin(_0x50a4b6){static get['styles'](){const _0x179328=a0_0x4cdd;return MetaApi[_0x179328(0x1aa)]();}static get[a0_0xe92108(0x179)](){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_0xe92108(0x18b)](){const _0x34135a=a0_0xe92108;return this[_0x34135a(0x1b6)][_0x34135a(0x178)](this['gristId']);}get[a0_0xe92108(0x1ae)](){const _0x3f46db=a0_0xe92108;return this[_0x3f46db(0x18d)]?.[_0x3f46db(0x178)](this['filterFormId']);}get[a0_0xe92108(0x1b4)](){const _0x562b14=a0_0xe92108;let _0x3d5692=MetaUiUtil['getContextObject'](this);return _0x3d5692['actions']&&delete _0x3d5692[_0x562b14(0x18a)],_0x3d5692[_0x562b14(0x192)]&&delete _0x3d5692[_0x562b14(0x192)],_0x3d5692['importable']&&delete _0x3d5692['importable'],_0x3d5692;}async['connectedCallback'](){const _0x37f054=a0_0xe92108;this['gristId']='ox-grist',this[_0x37f054(0x16c)]=_0x37f054(0x188),await this[_0x37f054(0x187)](),this[_0x37f054(0x181)]&&await this['parseGristConfigs'](),this['activityDataSet']&&(this[_0x37f054(0x1af)]=(this[_0x37f054(0x18f)]||{})[_0x37f054(0x1b3)]),super['connectedCallback']&&await super[_0x37f054(0x17c)]();}async[a0_0xe92108(0x1a7)](){const _0x467833=a0_0xe92108;super['firstUpdated']&&await super[_0x467833(0x1a7)]();}async[a0_0xe92108(0x177)](){const _0x471dca=a0_0xe92108;this[_0x471dca(0x19b)]&&await this[_0x471dca(0x1a4)](),super[_0x471dca(0x177)]&&await super['pageInitialized']();}['render'](){return MetaApi['getMasterDetailHtml'](this);}[a0_0xe92108(0x16f)](_0x1b59e6){const _0x14c820=a0_0xe92108;this[_0x14c820(0x16d)]=_0x1b59e6[_0x14c820(0x176)],this['gridColumnConfig']=_0x1b59e6['grid_column'],this['searchConfig']=_0x1b59e6[_0x14c820(0x1b5)],this['gridEmphasized']=_0x1b59e6[_0x14c820(0x1a5)];}async['parseGristConfigs'](){const _0x3ed2d2=a0_0xe92108;this[_0x3ed2d2(0x191)]=await MetaApi[_0x3ed2d2(0x198)](this),this[_0x3ed2d2(0x17f)]=!0x0===this['useFilterForm'],this[_0x3ed2d2(0x1b0)]=!0x1,this['searchFieldValues']=[],this[_0x3ed2d2(0x1a2)]=this[_0x3ed2d2(0x191)][_0x3ed2d2(0x1ad)][_0x3ed2d2(0x17b)](_0x27d361=>_0x27d361[_0x3ed2d2(0x17b)])['map'](_0x5c4e33=>{const _0x2380d2=_0x3ed2d2;let _0x4e3142={'name':_0x5c4e33[_0x2380d2(0x1a9)],'type':_0x2380d2(0x1b5)===_0x5c4e33[_0x2380d2(0x17b)][_0x2380d2(0x1ab)]?'search':_0x5c4e33[_0x2380d2(0x182)],'label':_0x5c4e33['header'],'operator':_0x5c4e33['filter'][_0x2380d2(0x1ab)]?_0x5c4e33[_0x2380d2(0x17b)]['operator']:'eq'};return _0x5c4e33[_0x2380d2(0x17b)][_0x2380d2(0x17e)]&&(_0x4e3142['options']=_0x5c4e33['filter'][_0x2380d2(0x17e)]),_0x5c4e33[_0x2380d2(0x196)][_0x2380d2(0x17e)]&&(_0x4e3142['options']=_0x5c4e33[_0x2380d2(0x196)][_0x2380d2(0x17e)]),_0x5c4e33[_0x2380d2(0x17b)][_0x2380d2(0x19a)]&&this[_0x2380d2(0x17a)]['push']({'name':_0x4e3142['name'],'operator':_0x4e3142[_0x2380d2(0x1ab)],'value':_0x5c4e33['filter'][_0x2380d2(0x19a)]}),delete _0x5c4e33[_0x2380d2(0x17b)],_0x4e3142;});}async[a0_0xe92108(0x1a6)](){const _0x4eb870=a0_0xe92108;await this[_0x4eb870(0x18b)][_0x4eb870(0x1a6)]();}async[a0_0xe92108(0x19c)]({page:_0x250e3d=0x0,limit:_0x449497=0x0,sortings:_0x4b2c91=[],filters:_0xe4db04=[]}){const _0x4df0a1=a0_0xe92108;return this[_0x4df0a1(0x180)]&&this['detailElement'][_0x4df0a1(0x174)]&&await this[_0x4df0a1(0x180)][_0x4df0a1(0x174)](),!0x0;}async[a0_0xe92108(0x1ac)](){const _0x532fe0=a0_0xe92108;let _0x2bea70=MetaApi[_0x532fe0(0x197)](this['grist']);!!ValueUtil['isNotEmpty'](_0x2bea70)&&await this[_0x532fe0(0x1a8)](_0x2bea70)&&this['fetch']();}async[a0_0xe92108(0x1a0)](){const _0x46514b=a0_0xe92108;let _0x563b04=MetaApi[_0x46514b(0x1b1)](this[_0x46514b(0x18b)],!0x0);return ValueUtil[_0x46514b(0x1a1)](_0x563b04)?await this['findOne'](_0x563b04[0x0]):{};}async[a0_0xe92108(0x1a3)](){const _0x1456c7=a0_0xe92108;let _0x4b656d=MetaApi[_0x1456c7(0x1b1)](this[_0x1456c7(0x18b)],!0x0);!!ValueUtil['isNotEmpty'](_0x4b656d)&&await this[_0x1456c7(0x173)](_0x4b656d)&&this['fetch']();}async[a0_0xe92108(0x172)](){const _0x5ba948=a0_0xe92108;let _0x1ff880=TermsUtil[_0x5ba948(0x18e)](ValueUtil[_0x5ba948(0x199)](this[_0x5ba948(0x19d)],'title'));return await MetaApi['exportableData'](this['isElement'],_0x1ff880,this[_0x5ba948(0x18b)]);}async['import'](){}[a0_0xe92108(0x170)](){const _0x1d3264=a0_0xe92108;let _0xf5163a=this['grist']['___data'][_0x1d3264(0x185)];return _0xf5163a=JSON['parse'](JSON[_0x1d3264(0x175)](_0xf5163a)),_0xf5163a[_0x1d3264(0x194)](_0x28be15=>{const _0x2217c6=_0x1d3264;Object[_0x2217c6(0x190)](_0x28be15)[_0x2217c6(0x194)](_0x2c88e5=>{const _0x15ebe4=_0x2217c6;_0x2c88e5[_0x15ebe4(0x17d)]('__')&&delete _0x28be15[_0x2c88e5];});}),{'main':_0xf5163a,'detail':this[_0x1d3264(0x180)][_0x1d3264(0x170)]()};}};function a0_0x5034(){const _0x13ed0d=['forEach','755tuqAZj','record','patchesForUpdateMultiple','parseGridConfigSet','getParams','value','isPage','beforeFetch','menuInfo','1176630XvjMYe','11CBCjth','find','isNotEmpty','searchFields','delete','parseGristConfigs','gridEmphasized','fetch','firstUpdated','updateMultiple','name','getBasicMasterDetailStyles','operator','save','columns','filterForm','dataSet','useFilterForm','getSelectedIdList','2628258NUXjAl','main','context','search','renderRoot','filterFormId','gridConfig','3841632aziHQn','parseBasicGridConfigs','getData','969969ZUfRkH','export','deleteByIds','clear','stringify','grid','pageInitialized','querySelector','properties','searchFieldValues','filter','connectedCallback','startsWith','options','useMasterFilterForm','detailElement','isElement','type','27eaVnfI','7yDXwwD','records','538907FnyytR','getAndParseMenuMeta','ox-filters-form-base','749172ZWArBA','actions','grist','9748RxJWgn','shadowRoot','tTitle','activityDataSet','keys','gristConfigSet','exportable','2FfukGP'];a0_0x5034=function(){return _0x13ed0d;};return a0_0x5034();}