@things-factory/meta-ui 6.1.23 → 6.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/client/actions/main.js +4 -4
  2. package/client/bootstrap.js +3 -1
  3. package/client/component/filter/filter-form-meta-code-select.js +9 -9
  4. package/client/component/filter/filter-form-meta-object-select.js +9 -9
  5. package/client/component/filter/filter-grist-meta-code-select.js +9 -9
  6. package/client/component/filter/filter-grist-meta-object-select.js +9 -9
  7. package/client/component/grist/editor/grist-editor-code-input.js +6 -6
  8. package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
  9. package/client/component/grist/editor/grist-editor-meta-object-selector.js +7 -7
  10. package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
  11. package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
  12. package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
  13. package/client/component/popup/code-input-editor-popup.js +10 -10
  14. package/client/component/popup/meta-object-selector-popup.js +11 -11
  15. package/client/mixin/meta-base-mixin.js +1 -1
  16. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  17. package/client/mixin/meta-button-mixin.js +1 -1
  18. package/client/mixin/meta-form-mixin.js +1 -1
  19. package/client/mixin/meta-grist-tab-mixin.js +1 -1
  20. package/client/mixin/meta-main-tab-mixin.js +1 -1
  21. package/client/mixin/meta-master-detail-mixin.js +1 -1
  22. package/client/mixin/meta-service-mixin.js +1 -1
  23. package/client/mixin/meta-tab-detail-mixin.js +1 -1
  24. package/client/mixin/meta-tab-mixin.js +1 -1
  25. package/client/pages/activity/meta-activity-list-page.js +6 -6
  26. package/client/pages/activity/meta-activity-viewer-element.js +3 -3
  27. package/client/pages/activity/meta-activity-writer-element.js +3 -3
  28. package/client/pages/activity/meta-activiy-mixin.js +3 -3
  29. package/client/pages/entity/config-entity.js +29 -29
  30. package/client/pages/entity/main-menu-selector.js +8 -8
  31. package/client/pages/history/history-copy-list-popup.js +6 -6
  32. package/client/pages/history/history-json-list-popup.js +6 -6
  33. package/client/pages/loading-page.js +5 -5
  34. package/client/pages/menu/dynamic-menu-template.js +7 -7
  35. package/client/pages/menu/dynamic-menu.js +15 -15
  36. package/client/pages/meta-form-element.js +1 -1
  37. package/client/pages/meta-grist-element.js +1 -1
  38. package/client/pages/meta-grist-page.js +1 -1
  39. package/client/pages/meta-grist-tab-element.js +1 -1
  40. package/client/pages/meta-grist-tab-page.js +1 -1
  41. package/client/pages/meta-main-tab-element.js +1 -1
  42. package/client/pages/meta-main-tab-page.js +1 -1
  43. package/client/pages/meta-master-detail-element.js +1 -1
  44. package/client/pages/meta-master-detail-page.js +1 -1
  45. package/client/pages/meta-tab-detail-element.js +1 -1
  46. package/client/pages/meta-tab-detail-page.js +1 -1
  47. package/client/pages/meta-tab-element.js +1 -1
  48. package/client/pages/personalize/personal-column-selector.js +11 -11
  49. package/client/pages/terms/config-terminology.js +6 -6
  50. package/client/pages/work-code/work-code-detail-popup.js +1 -1
  51. package/client/pages/work-code/work-code-page.js +1 -1
  52. package/client/reducers/main.js +1 -1
  53. package/client/utils/meta-api.js +1 -1
  54. package/client/utils/meta-crypto.js +1 -1
  55. package/client/utils/meta-ui-util.js +103 -103
  56. package/client/utils/service-util.js +13 -13
  57. package/client/utils/terms-util.js +2 -2
  58. package/client/utils/ui-util.js +1 -1
  59. package/client/utils/value-util.js +1 -1
  60. package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
  61. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  62. package/client/viewparts/dynamic-menu-part.js +12 -12
  63. package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
  64. package/client/viewparts/dynamic-menu-portrait.js +9 -9
  65. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  66. package/package.json +2 -2
  67. package/server/activity/CommonActivity.js +2 -2
  68. package/server/constants/error-code.js +1 -1
  69. package/server/errors/license-error.js +1 -1
  70. package/server/routes.js +1 -1
  71. package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
  72. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  73. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  74. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  75. package/server/service/grid-personalize/grid-personalize.js +1 -1
  76. package/server/service/meta-activity/meta-activity-mutation.js +1 -1
  77. package/server/service/meta-activity/meta-activity-query.js +1 -1
  78. package/server/service/meta-activity/meta-activity-type.js +1 -1
  79. package/server/service/meta-secret/meta-resolver.js +1 -1
  80. package/server/service/set-translations/set-translation-resolver.js +1 -1
  81. package/server/service/work-code/work-code-mutation.js +1 -1
  82. package/server/service/work-code/work-code-query.js +1 -1
  83. package/server/service/work-code/work-code-type.js +1 -1
  84. package/server/service/work-code/work-code.js +1 -1
  85. package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
  86. package/server/service/work-code-detail/work-code-detail-query.js +1 -1
  87. package/server/service/work-code-detail/work-code-detail-type.js +1 -1
  88. package/server/service/work-code-detail/work-code-detail.js +1 -1
@@ -1,4 +1,4 @@
1
- const a0_0x19477b=a0_0x5e5d;(function(_0xfb4a86,_0x419d58){const _0x40492d=a0_0x5e5d,_0x279c3f=_0xfb4a86();while(!![]){try{const _0x45d9e9=parseInt(_0x40492d(0x165))/0x1*(parseInt(_0x40492d(0x15e))/0x2)+-parseInt(_0x40492d(0x1a9))/0x3+-parseInt(_0x40492d(0x15c))/0x4+-parseInt(_0x40492d(0x15f))/0x5*(parseInt(_0x40492d(0x191))/0x6)+-parseInt(_0x40492d(0x19a))/0x7+parseInt(_0x40492d(0x16b))/0x8*(parseInt(_0x40492d(0x18e))/0x9)+parseInt(_0x40492d(0x16f))/0xa;if(_0x45d9e9===_0x419d58)break;else _0x279c3f['push'](_0x279c3f['shift']());}catch(_0x4263e9){_0x279c3f['push'](_0x279c3f['shift']());}}}(a0_0x5a64,0xdf540));import{css,html,LitElement}from'lit';function a0_0x5e5d(_0x3480de,_0x323e39){const _0x5a643a=a0_0x5a64();return a0_0x5e5d=function(_0x5e5d6e,_0x6a4af3){_0x5e5d6e=_0x5e5d6e-0x15c;let _0x3425af=_0x5a643a[_0x5e5d6e];return _0x3425af;},a0_0x5e5d(_0x3480de,_0x323e39);}import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';function a0_0x5a64(){const _0x5c8b5e=['cancel','getGristColumnConfig2','selected','getCodeByScenario','fetchHandler','rows','814677KNjcOM','columns','nameField','handlers','render','getParams','meta-','push','gql','keys','meta-object-selector-popup','3058908zeOhYC','firstUpdated','4698xFFVet','5350NlyKzB','align','filterFields','filters','styles','getGristPagination100Config','716UewaPP','select','string','forEach','after_set_fields','search','20328qKtazn','confirmCallback','hidden','name','20088030vNzsHC','GRID','bind','info','code','tButton','search_hidden_fields','includes','getCodeSelectorData','meta-object-selector','#ox-grist','resource-object','getGristMetaObjectOptions','scenario','options','meta-code-selector','define','querySelector','menu_template','NOTHING_SELECTED','queryName','query','shadowRoot','getGristSelectableConfig','args','select-row-toggle','searchByPagination','codeField','getGristGuttersConfig','grist','tText','3006jiVHmP','type','left','6234iEFSGI','selectRecord','filter','resource-code-selector','values','clickCancel','record','clickEmpty','empty','10336291EEgZQk','basicArgs','dispField','connectedCallback','menu','length','sorters','getSelectColumns','isArray'];a0_0x5a64=function(){return _0x5c8b5e;};return a0_0x5a64();}import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class MetaObjectSelectorPopup extends LitElement{static [a0_0x19477b(0x163)]=[CommonGristStyles,ButtonContainerStyles,css`
1
+ const a0_0x8bcbdb=a0_0x3dbf;(function(_0x1610ea,_0x3fd2c5){const _0x5407dc=a0_0x3dbf,_0x574262=_0x1610ea();while(!![]){try{const _0x4c138b=-parseInt(_0x5407dc(0xf2))/0x1*(-parseInt(_0x5407dc(0xf1))/0x2)+-parseInt(_0x5407dc(0x126))/0x3*(-parseInt(_0x5407dc(0x112))/0x4)+parseInt(_0x5407dc(0x109))/0x5+-parseInt(_0x5407dc(0x122))/0x6*(parseInt(_0x5407dc(0x123))/0x7)+parseInt(_0x5407dc(0x117))/0x8*(-parseInt(_0x5407dc(0x136))/0x9)+parseInt(_0x5407dc(0x10d))/0xa+-parseInt(_0x5407dc(0x108))/0xb*(-parseInt(_0x5407dc(0x10b))/0xc);if(_0x4c138b===_0x3fd2c5)break;else _0x574262['push'](_0x574262['shift']());}catch(_0x2769db){_0x574262['push'](_0x574262['shift']());}}}(a0_0x374b,0x50c51));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';function a0_0x374b(){const _0x3d2a59=['render','20sYQRbz','getCodeSelectorData','getSelectColumns','firstUpdated','info','32KtzyUL','getCodeByScenario','clickEmpty','LIST','appendable','grist','getGristSelectableConfig','select','scenario','length','getGristMetaObjectOptions','150BkYhZX','124859XLYEQf','gridConfig','NOTHING_SELECTED','318258Cgtwoz','sorters','bind','confirmCallback','forEach','#ox-grist','meta-code-selector','align','getGristColumnConfig2','basicArgs','select-row-toggle','includes','gql','push','code','nameField','765639HAWFvh','connectedCallback','empty','resource-code-selector','clickSelect','tText','name','search_hidden_fields','filters','getParams','showToast','query','clickCancel','after_set_fields','options','meta-object-selector-popup','resource-object','60qnlTBH','1201rYTUpt','args','codeField','querySelector','getCodeByEntity','hidden','search','record','entity','meta-object-selector','type','tButton','filter','columns','filterFields','values','left','queryName','styles','menu_template','define','startsWith','1771HlsoLj','110970ZsYYeA','string','25032QdRwEV','rows','1925420QfNMpT','getGristPagination100Config','searchByPagination','dispField'];a0_0x374b=function(){return _0x3d2a59;};return a0_0x374b();}import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';function a0_0x3dbf(_0x37489d,_0x237a27){const _0x374b25=a0_0x374b();return a0_0x3dbf=function(_0x3dbff3,_0x1e8775){_0x3dbff3=_0x3dbff3-0xe9;let _0x44bfe5=_0x374b25[_0x3dbff3];return _0x44bfe5;},a0_0x3dbf(_0x37489d,_0x237a27);}export class MetaObjectSelectorPopup extends LitElement{static [a0_0x8bcbdb(0x104)]=[CommonGristStyles,ButtonContainerStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -17,9 +17,9 @@ const a0_0x19477b=a0_0x5e5d;(function(_0xfb4a86,_0x419d58){const _0x40492d=a0_0x
17
17
  display: flex;
18
18
  margin-left: auto;
19
19
  }
20
- `];async[a0_0x19477b(0x19d)](){const _0x1e1513=a0_0x19477b;this[_0x1e1513(0x175)]=this[_0x1e1513(0x17d)][_0x1e1513(0x162)]?this['options']['filters']:this[_0x1e1513(0x19b)]&&this[_0x1e1513(0x19b)][_0x1e1513(0x162)]?this['basicArgs']['filters']:[];let _0x446d33=this[_0x1e1513(0x17d)][_0x1e1513(0x1a0)]?this[_0x1e1513(0x17d)][_0x1e1513(0x1a0)]:this[_0x1e1513(0x19b)]&&this[_0x1e1513(0x19b)][_0x1e1513(0x1a0)]?this[_0x1e1513(0x19b)]['sorters']:[],_0x309dc8=this['options'][_0x1e1513(0x161)]?this[_0x1e1513(0x17d)][_0x1e1513(0x161)]:this[_0x1e1513(0x17d)][_0x1e1513(0x181)]?.[_0x1e1513(0x16a)]&&this[_0x1e1513(0x17d)][_0x1e1513(0x181)]?.['search'][_0x1e1513(0x19f)]>0x0?this[_0x1e1513(0x17d)][_0x1e1513(0x181)][_0x1e1513(0x16a)]:[],_0xc41dca=this[_0x1e1513(0x17d)][_0x1e1513(0x166)];if(!_0x309dc8||0x0==_0x309dc8['length']){let _0x542016;this['options'][_0x1e1513(0x18a)]&&(_0x542016=this['options']['codeField']),this[_0x1e1513(0x17d)][_0x1e1513(0x1ab)]&&(_0x542016=this['options'][_0x1e1513(0x1ab)]),_0x542016&&_0x309dc8[_0x1e1513(0x1b0)]({'name':_0x542016,'operator':'eq'});}let _0x33b80b=[...MetaApi[_0x1e1513(0x18b)](!0x0,!0x1)];if(_0xc41dca&&_0xc41dca['length']>0x0)for(let _0x547836=0x0;_0x547836<_0xc41dca[_0x1e1513(0x19f)];_0x547836++){let {type:_0x1cccf1=_0x1e1513(0x167),name:_0x560c73,hidden:_0x5aaa99=!0x1,record:_0x451782={'align':'left'},header:_0x32ac43,sortable:_0x58cd94=!0x1,width:_0x184e09=0x87,options:_0x4e67f9,select_opt:_0x1492be,object_opt:_0xe660d9}=_0xc41dca[_0x547836];if(_0x1492be&&(_0x4e67f9=_0x1492be),_0xe660d9&&(_0x4e67f9=_0xe660d9),[_0x1e1513(0x17a),'object'][_0x1e1513(0x176)](_0x1cccf1)?_0x1cccf1=_0x1e1513(0x178):[_0x1e1513(0x194)][_0x1e1513(0x176)](_0x1cccf1)&&(_0x1cccf1=_0x1e1513(0x17e)),'id'==_0x560c73)_0x33b80b[_0x1e1513(0x1b0)]({'type':_0x1e1513(0x167),'name':_0x560c73,'hidden':!0x0});else{let _0x27dd76=MetaApi[_0x1e1513(0x1a4)](_0x1cccf1,_0x560c73,_0x32ac43||_0x560c73,_0x451782[_0x1e1513(0x160)]?_0x451782[_0x1e1513(0x160)]:_0x1e1513(0x190),!0x1,_0x58cd94,_0x184e09);_0x1cccf1['startsWith'](_0x1e1513(0x1af))&&_0xe660d9&&_0xe660d9[_0x1e1513(0x19e)]&&(_0x4e67f9=await MetaUiUtil[_0x1e1513(0x17b)](_0x1cccf1,_0x4e67f9)),_0x1e1513(0x166)===_0x1cccf1?Array[_0x1e1513(0x1a2)](_0x4e67f9)?_0x27dd76[_0x1e1513(0x197)][_0x1e1513(0x17d)]=_0x4e67f9:_0x1e1513(0x173)===_0x4e67f9[_0x1e1513(0x18f)]?_0x27dd76[_0x1e1513(0x197)][_0x1e1513(0x17d)]=await ServiceUtil[_0x1e1513(0x177)](_0x4e67f9['values']?_0x4e67f9[_0x1e1513(0x195)]:_0x4e67f9[_0x1e1513(0x16e)]):_0x1e1513(0x17c)===_0x4e67f9[_0x1e1513(0x18f)]?_0x27dd76[_0x1e1513(0x197)][_0x1e1513(0x17d)]=await ServiceUtil[_0x1e1513(0x1a6)](_0x4e67f9[_0x1e1513(0x16e)],_0x4e67f9[_0x1e1513(0x187)]):'entity'===_0x4e67f9[_0x1e1513(0x18f)]&&(_0x27dd76[_0x1e1513(0x197)][_0x1e1513(0x17d)]=await ServiceUtil['getCodeByEntity'](_0x4e67f9['args'])):_0x1e1513(0x178)===_0x1cccf1?_0x27dd76[_0x1e1513(0x197)]['options']={..._0x4e67f9}:_0x1e1513(0x17e)==_0x1cccf1&&(_0x4e67f9[_0x1e1513(0x19c)]&&(_0x4e67f9['codes']=await ServiceUtil['getCodeByEntity'](_0x4e67f9)),_0x27dd76[_0x1e1513(0x197)]['options']={..._0x4e67f9}),_0x27dd76[_0x1e1513(0x16d)]=_0x5aaa99,_0x33b80b['push'](_0x27dd76);}}else _0x33b80b[_0x1e1513(0x1b0)](MetaApi[_0x1e1513(0x1a4)](_0x1e1513(0x167),this['options'][_0x1e1513(0x18a)],this['options'][_0x1e1513(0x18a)],_0x1e1513(0x190),!0x1,!0x0,0xb4)),this[_0x1e1513(0x17d)][_0x1e1513(0x19c)]&&_0x33b80b[_0x1e1513(0x1b0)](MetaApi['getGristColumnConfig2'](_0x1e1513(0x167),this[_0x1e1513(0x17d)]['dispField'],this[_0x1e1513(0x17d)]['dispField'],_0x1e1513(0x190),!0x1,!0x0,0x12c));_0x33b80b[_0x1e1513(0x168)](_0x5c1f79=>{const _0x53982d=_0x1e1513;let _0x3bce81=_0x309dc8['filter'](_0x443ef0=>_0x53982d(0x167)==typeof _0x443ef0?_0x5c1f79['name']==_0x443ef0:_0x5c1f79[_0x53982d(0x16e)]==_0x443ef0[_0x53982d(0x16e)]);_0x3bce81&&_0x3bce81['length']>0x0&&(_0x5c1f79[_0x53982d(0x193)]='string'==typeof _0x3bce81[0x0]?_0x53982d(0x16a):_0x3bce81[0x0]);});let _0x18a4ad={'rows':MetaApi[_0x1e1513(0x186)](!0x1),'pagination':MetaApi[_0x1e1513(0x164)](),'columns':_0x33b80b,'sorters':[..._0x446d33]};_0x18a4ad['rows'][_0x1e1513(0x1ac)]={'click':_0x1e1513(0x188),'dblclick':(_0x2907d8,_0x21c816,_0x2e58d9,_0x58c2be,_0x22ad56,_0x557e91)=>{this['selectRecord'](_0x58c2be);}},_0x18a4ad[_0x1e1513(0x1a8)]['appendable']=!0x1,this['gridConfig']=_0x18a4ad,await super[_0x1e1513(0x19d)]();}async[a0_0x19477b(0x15d)](){const _0x139cc1=a0_0x19477b;await super[_0x139cc1(0x15d)]();}[a0_0x19477b(0x1ad)](){const _0x444e6c=a0_0x19477b;return html`
21
- <ox-grist id="ox-grist" .config=${this['gridConfig']} .mode=${isMobileDevice()?'LIST':_0x444e6c(0x170)} auto-fetch
22
- .fetchHandler=${this[_0x444e6c(0x1a7)][_0x444e6c(0x171)](this)}>
20
+ `];async[a0_0x8bcbdb(0x137)](){const _0x5d16f2=a0_0x8bcbdb;this['search_hidden_fields']=this[_0x5d16f2(0xee)]['filters']?this['options'][_0x5d16f2(0x13e)]:this[_0x5d16f2(0x12f)]&&this[_0x5d16f2(0x12f)][_0x5d16f2(0x13e)]?this['basicArgs'][_0x5d16f2(0x13e)]:[];let _0x12f14f=this[_0x5d16f2(0xee)]['sorters']?this[_0x5d16f2(0xee)][_0x5d16f2(0x127)]:this[_0x5d16f2(0x12f)]&&this[_0x5d16f2(0x12f)][_0x5d16f2(0x127)]?this[_0x5d16f2(0x12f)][_0x5d16f2(0x127)]:[],_0x4ac5dc=this[_0x5d16f2(0xee)][_0x5d16f2(0x100)]?this[_0x5d16f2(0xee)]['filterFields']:this[_0x5d16f2(0xee)][_0x5d16f2(0x105)]?.[_0x5d16f2(0xf8)]&&this[_0x5d16f2(0xee)][_0x5d16f2(0x105)]?.['search'][_0x5d16f2(0x120)]>0x0?this['options'][_0x5d16f2(0x105)]['search']:[],_0x16d596=this['options'][_0x5d16f2(0x11e)];if(!_0x4ac5dc||0x0==_0x4ac5dc[_0x5d16f2(0x120)]){let _0xb4cf7e;this[_0x5d16f2(0xee)][_0x5d16f2(0xf4)]&&(_0xb4cf7e=this[_0x5d16f2(0xee)][_0x5d16f2(0xf4)]),this[_0x5d16f2(0xee)][_0x5d16f2(0x135)]&&(_0xb4cf7e=this[_0x5d16f2(0xee)]['nameField']),_0xb4cf7e&&_0x4ac5dc[_0x5d16f2(0x133)]({'name':_0xb4cf7e,'operator':'eq'});}let _0x4496f0=[...MetaApi['getGristGuttersConfig'](!0x0,!0x1)];if(_0x16d596&&_0x16d596['length']>0x0)for(let _0x594507=0x0;_0x594507<_0x16d596[_0x5d16f2(0x120)];_0x594507++){let {type:_0x1ae393='string',name:_0x3612e6,hidden:_0x523088=!0x1,record:_0x3132a4={'align':_0x5d16f2(0x102)},header:_0x44b3d6,sortable:_0x17c37e=!0x1,width:_0x1686c7=0x87,options:_0x442d9f,select_opt:_0x1d83f2,object_opt:_0x2c133b}=_0x16d596[_0x594507];if(_0x1d83f2&&(_0x442d9f=_0x1d83f2),_0x2c133b&&(_0x442d9f=_0x2c133b),[_0x5d16f2(0xf0),'object'][_0x5d16f2(0x131)](_0x1ae393)?_0x1ae393=_0x5d16f2(0xfb):[_0x5d16f2(0x139)][_0x5d16f2(0x131)](_0x1ae393)&&(_0x1ae393=_0x5d16f2(0x12c)),'id'==_0x3612e6)_0x4496f0[_0x5d16f2(0x133)]({'type':_0x5d16f2(0x10a),'name':_0x3612e6,'hidden':!0x0});else{let _0x594228=MetaApi['getGristColumnConfig2'](_0x1ae393,_0x3612e6,_0x44b3d6||_0x3612e6,_0x3132a4[_0x5d16f2(0x12d)]?_0x3132a4[_0x5d16f2(0x12d)]:_0x5d16f2(0x102),!0x1,_0x17c37e,_0x1686c7);_0x1ae393[_0x5d16f2(0x107)]('meta-')&&_0x2c133b&&_0x2c133b['menu']&&(_0x442d9f=await MetaUiUtil[_0x5d16f2(0x121)](_0x1ae393,_0x442d9f)),_0x5d16f2(0x11e)===_0x1ae393?Array['isArray'](_0x442d9f)?_0x594228[_0x5d16f2(0xf9)][_0x5d16f2(0xee)]=_0x442d9f:_0x5d16f2(0x134)===_0x442d9f[_0x5d16f2(0xfc)]?_0x594228[_0x5d16f2(0xf9)][_0x5d16f2(0xee)]=await ServiceUtil[_0x5d16f2(0x113)](_0x442d9f[_0x5d16f2(0x101)]?_0x442d9f[_0x5d16f2(0x101)]:_0x442d9f[_0x5d16f2(0x13c)]):_0x5d16f2(0x11f)===_0x442d9f[_0x5d16f2(0xfc)]?_0x594228['record'][_0x5d16f2(0xee)]=await ServiceUtil[_0x5d16f2(0x118)](_0x442d9f['name'],_0x442d9f[_0x5d16f2(0xf3)]):_0x5d16f2(0xfa)===_0x442d9f[_0x5d16f2(0xfc)]&&(_0x594228['record']['options']=await ServiceUtil[_0x5d16f2(0xf6)](_0x442d9f['args'])):_0x5d16f2(0xfb)===_0x1ae393?_0x594228[_0x5d16f2(0xf9)]['options']={..._0x442d9f}:_0x5d16f2(0x12c)==_0x1ae393&&(_0x442d9f[_0x5d16f2(0x110)]&&(_0x442d9f['codes']=await ServiceUtil[_0x5d16f2(0xf6)](_0x442d9f)),_0x594228[_0x5d16f2(0xf9)][_0x5d16f2(0xee)]={..._0x442d9f}),_0x594228[_0x5d16f2(0xf7)]=_0x523088,_0x4496f0['push'](_0x594228);}}else _0x4496f0['push'](MetaApi['getGristColumnConfig2']('string',this['options'][_0x5d16f2(0xf4)],this[_0x5d16f2(0xee)][_0x5d16f2(0xf4)],_0x5d16f2(0x102),!0x1,!0x0,0xb4)),this['options']['dispField']&&_0x4496f0['push'](MetaApi[_0x5d16f2(0x12e)](_0x5d16f2(0x10a),this[_0x5d16f2(0xee)][_0x5d16f2(0x110)],this[_0x5d16f2(0xee)]['dispField'],_0x5d16f2(0x102),!0x1,!0x0,0x12c));_0x4496f0[_0x5d16f2(0x12a)](_0x344d26=>{const _0x335627=_0x5d16f2;let _0x52179d=_0x4ac5dc[_0x335627(0xfe)](_0x443fd7=>_0x335627(0x10a)==typeof _0x443fd7?_0x344d26[_0x335627(0x13c)]==_0x443fd7:_0x344d26[_0x335627(0x13c)]==_0x443fd7[_0x335627(0x13c)]);_0x52179d&&_0x52179d[_0x335627(0x120)]>0x0&&(_0x344d26[_0x335627(0xfe)]=_0x335627(0x10a)==typeof _0x52179d[0x0]?_0x335627(0xf8):_0x52179d[0x0]);});let _0x290bf0={'rows':MetaApi[_0x5d16f2(0x11d)](!0x1),'pagination':MetaApi[_0x5d16f2(0x10e)](),'columns':_0x4496f0,'sorters':[..._0x12f14f]};_0x290bf0[_0x5d16f2(0x10c)]['handlers']={'click':_0x5d16f2(0x130),'dblclick':(_0x511f46,_0xd43652,_0x4bb0e6,_0x2ca8e9,_0x4153d3,_0x38eec4)=>{this['selectRecord'](_0x2ca8e9);}},_0x290bf0['rows'][_0x5d16f2(0x11b)]=!0x1,this[_0x5d16f2(0x124)]=_0x290bf0,await super[_0x5d16f2(0x137)]();}async['firstUpdated'](){const _0x1cccb2=a0_0x8bcbdb;await super[_0x1cccb2(0x115)]();}[a0_0x8bcbdb(0x111)](){const _0x21977b=a0_0x8bcbdb;return html`
21
+ <ox-grist id="ox-grist" .config=${this[_0x21977b(0x124)]} .mode=${isMobileDevice()?_0x21977b(0x11a):'GRID'} auto-fetch
22
+ .fetchHandler=${this['fetchHandler']['bind'](this)}>
23
23
  <div slot="headroom">
24
24
  <div id="filters">
25
25
  <ox-filters-form></ox-filters-form>
@@ -27,14 +27,14 @@ const a0_0x19477b=a0_0x5e5d;(function(_0xfb4a86,_0x419d58){const _0x40492d=a0_0x
27
27
  </div>
28
28
  </ox-grist>
29
29
  <div id="button-container" class="button-container">
30
- <mwc-button raised label="${TermsUtil[_0x444e6c(0x174)](_0x444e6c(0x199))}" style="margin-left:7px;margin-top:7px;"
31
- @click=${this[_0x444e6c(0x198)][_0x444e6c(0x171)](this)}>
30
+ <mwc-button raised label="${TermsUtil['tButton'](_0x21977b(0x138))}" style="margin-left:7px;margin-top:7px;"
31
+ @click=${this['clickEmpty']['bind'](this)}>
32
32
  </mwc-button>
33
- <mwc-button raised label="${TermsUtil[_0x444e6c(0x174)](_0x444e6c(0x1a3))}" style="margin-left:7px;margin-top:7px;"
34
- @click=${this['clickCancel'][_0x444e6c(0x171)](this)}>
33
+ <mwc-button raised label="${TermsUtil[_0x21977b(0xfd)]('cancel')}" style="margin-left:7px;margin-top:7px;"
34
+ @click=${this[_0x21977b(0xec)][_0x21977b(0x128)](this)}>
35
35
  </mwc-button>
36
- <mwc-button raised label="${TermsUtil['tButton']('select')}" style="margin-left:7px;margin-top:7px;"
37
- @click=${this['clickSelect']['bind'](this)}>
36
+ <mwc-button raised label="${TermsUtil[_0x21977b(0xfd)](_0x21977b(0x11e))}" style="margin-left:7px;margin-top:7px;"
37
+ @click=${this[_0x21977b(0x13a)]['bind'](this)}>
38
38
  </mwc-button>
39
39
  </div>
40
- `;}get[a0_0x19477b(0x18c)](){const _0x1b1782=a0_0x19477b;return this[_0x1b1782(0x185)][_0x1b1782(0x180)](_0x1b1782(0x179));}async[a0_0x19477b(0x1a7)]({page:_0x413149=0x0,limit:_0x30e0b2=0x0,sorters:_0x509b6b=[],filters:_0x64ffb3=[]}){const _0x23051d=a0_0x19477b;let _0x380cda=[...this[_0x23051d(0x175)]];_0x64ffb3[_0x23051d(0x168)](_0x55e368=>{const _0x1edeb7=_0x23051d;let _0x459434=_0x380cda[_0x1edeb7(0x193)](_0x272179=>_0x55e368[_0x1edeb7(0x16e)]==_0x272179[_0x1edeb7(0x16e)]);_0x459434&&_0x459434['length']>0x0&&delete _0x380cda[_0x55e368[_0x1edeb7(0x16e)]],_0x380cda[_0x1edeb7(0x1b0)](_0x55e368);});let _0x708a40=ValueUtil[_0x23051d(0x1ae)](this[_0x23051d(0x17d)]['menu_template']&&this['options'][_0x23051d(0x181)][_0x23051d(0x1b1)]||{},_0x23051d(0x184),_0x23051d(0x169)),_0xbacbbf=Object[_0x23051d(0x1b2)](_0x708a40||{}),_0x437763=MetaApi[_0x23051d(0x1a1)](this['gridConfig'][_0x23051d(0x1aa)][_0x23051d(0x193)](_0x5486ac=>!_0xbacbbf[_0x23051d(0x176)](_0x5486ac[_0x23051d(0x16e)])));return await MetaApi[_0x23051d(0x189)](this['options'][_0x23051d(0x183)],_0x380cda,_0x509b6b,_0x413149,_0x30e0b2,_0x437763);}async[a0_0x19477b(0x198)](_0x29ea56){const _0xd96fd3=a0_0x19477b;this[_0xd96fd3(0x16c)]&&this[_0xd96fd3(0x16c)](null),closePopup(this);}async[a0_0x19477b(0x196)](_0xcaab0a){closePopup(this);}async['clickSelect'](_0x1240e1){const _0x12ab75=a0_0x19477b;let _0x34fd5b=this[_0x12ab75(0x18c)][_0x12ab75(0x1a5)];_0x34fd5b&&0x0!=_0x34fd5b['length']?this[_0x12ab75(0x192)](_0x34fd5b[0x0]):MetaApi['showToast'](_0x12ab75(0x172),TermsUtil[_0x12ab75(0x18d)](_0x12ab75(0x182)));}async[a0_0x19477b(0x192)](_0x4ad984){const _0x232584=a0_0x19477b;this[_0x232584(0x16c)]&&this[_0x232584(0x16c)](_0x4ad984),closePopup(this);}}customElements[a0_0x19477b(0x17f)](a0_0x19477b(0x1b3),MetaObjectSelectorPopup);
40
+ `;}get['grist'](){const _0x47d0cd=a0_0x8bcbdb;return this['shadowRoot'][_0x47d0cd(0xf5)](_0x47d0cd(0x12b));}async['fetchHandler']({page:_0x1c46be=0x0,limit:_0x33d59f=0x0,sorters:_0x5af861=[],filters:_0x3ecb11=[]}){const _0x8c2626=a0_0x8bcbdb;let _0xbe98b9=[...this[_0x8c2626(0x13d)]];_0x3ecb11['forEach'](_0x447ee5=>{const _0x5db891=_0x8c2626;let _0x3bca35=_0xbe98b9[_0x5db891(0xfe)](_0x18740b=>_0x447ee5[_0x5db891(0x13c)]==_0x18740b['name']);_0x3bca35&&_0x3bca35[_0x5db891(0x120)]>0x0&&delete _0xbe98b9[_0x447ee5['name']],_0xbe98b9[_0x5db891(0x133)](_0x447ee5);});let _0x763c36=ValueUtil[_0x8c2626(0xe9)](this[_0x8c2626(0xee)][_0x8c2626(0x105)]&&this['options'][_0x8c2626(0x105)][_0x8c2626(0x132)]||{},_0x8c2626(0xeb),_0x8c2626(0xed)),_0xa85943=Object['keys'](_0x763c36||{}),_0x58f0ec=MetaApi[_0x8c2626(0x114)](this['gridConfig'][_0x8c2626(0xff)][_0x8c2626(0xfe)](_0x441467=>!_0xa85943[_0x8c2626(0x131)](_0x441467[_0x8c2626(0x13c)])));return await MetaApi[_0x8c2626(0x10f)](this[_0x8c2626(0xee)][_0x8c2626(0x103)],_0xbe98b9,_0x5af861,_0x1c46be,_0x33d59f,_0x58f0ec);}async[a0_0x8bcbdb(0x119)](_0x38d505){const _0xebac4d=a0_0x8bcbdb;this[_0xebac4d(0x129)]&&this[_0xebac4d(0x129)](null),closePopup(this);}async['clickCancel'](_0x3d6905){closePopup(this);}async[a0_0x8bcbdb(0x13a)](_0x323d99){const _0x4a8ec9=a0_0x8bcbdb;let _0x37167c=this[_0x4a8ec9(0x11c)]['selected'];_0x37167c&&0x0!=_0x37167c[_0x4a8ec9(0x120)]?this['selectRecord'](_0x37167c[0x0]):MetaApi[_0x4a8ec9(0xea)](_0x4a8ec9(0x116),TermsUtil[_0x4a8ec9(0x13b)](_0x4a8ec9(0x125)));}async['selectRecord'](_0x12e2a2){const _0x33aa5c=a0_0x8bcbdb;this[_0x33aa5c(0x129)]&&this['confirmCallback'](_0x12e2a2),closePopup(this);}}customElements[a0_0x8bcbdb(0x106)](a0_0x8bcbdb(0xef),MetaObjectSelectorPopup);
@@ -1 +1 @@
1
- const a0_0x43f0b0=a0_0xd324;(function(_0x2017ff,_0x20f407){const _0xba411b=a0_0xd324,_0xa41d78=_0x2017ff();while(!![]){try{const _0x4954db=parseInt(_0xba411b(0xb8))/0x1*(parseInt(_0xba411b(0xb9))/0x2)+-parseInt(_0xba411b(0xe9))/0x3*(-parseInt(_0xba411b(0xc7))/0x4)+-parseInt(_0xba411b(0xcb))/0x5*(-parseInt(_0xba411b(0xe4))/0x6)+-parseInt(_0xba411b(0xe1))/0x7+-parseInt(_0xba411b(0xc1))/0x8+-parseInt(_0xba411b(0xbe))/0x9+parseInt(_0xba411b(0xad))/0xa;if(_0x4954db===_0x20f407)break;else _0xa41d78['push'](_0xa41d78['shift']());}catch(_0x8c5b72){_0xa41d78['push'](_0xa41d78['shift']());}}}(a0_0x58eb,0xf37e1));function a0_0xd324(_0x67578d,_0x53d16f){const _0x58eb28=a0_0x58eb();return a0_0xd324=function(_0xd3241a,_0x503972){_0xd3241a=_0xd3241a-0xac;let _0xe9ac63=_0x58eb28[_0xd3241a];return _0xe9ac63;},a0_0xd324(_0x67578d,_0x53d16f);}function a0_0x58eb(){const _0x531df0=['dataChangeEventHandler','split','toLowerCase','10294599aNlBBU','keys','connectedCallback','6540TmkEQE','name','setParentId','menu','is_detail','5931561gYnWsJ','meta-form-','data-changed','getAndParseMenuMeta','isEmpty','5266890CCWYVG','parent_id','fetchHandler','detail','params','body','executeCallScenarioButtonClick','parseBasicFormConfigs','isDetail','properties','grist','35927XYjtkS','36RFKzrR','isPage','isNotEmpty','runScenario','errors','6785280wgqvNa','after','getMenuMeta','10547120TFrPRT','parseBasicGridConfigs','tTitle','tagName','forEach','filterForm','4kDXCIs','data','title_detail','title','6375VPOSjE','includes','parseBasicButtonConfigs','pageUpdated','is_popup','parseBasicTabConfigs','field-change','parseBasicServiceConfigs','fetch','openDynamicPopup','fieldChangeHandlers','result','addEventListener','etcConfig','isElement','callScenario','etc','form-field-change','lifecycle'];a0_0x58eb=function(){return _0x531df0;};return a0_0x58eb();}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x3687d2=>class extends _0x3687d2{static get[a0_0x43f0b0(0xb6)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x10bcd5=>Boolean(_0x10bcd5)},'is_popup':{'type':Boolean,'converter':_0x30b977=>Boolean(_0x30b977)},'is_activity':{'type':Boolean,'converter':_0x122621=>Boolean(_0x122621)},'is_readonly':{'type':Boolean,'converter':_0x2c11f2=>Boolean(_0x2c11f2)}};}get[a0_0x43f0b0(0xd9)](){const _0x363d55=a0_0x43f0b0;return!0x0===this['is_detail']||!0x0===this[_0x363d55(0xcf)];}get[a0_0x43f0b0(0xb5)](){const _0x3546a5=a0_0x43f0b0;return!ValueUtil[_0x3546a5(0xac)](this[_0x3546a5(0xe8)])&&this[_0x3546a5(0xe8)];}async[a0_0x43f0b0(0xde)](_0x36142a){const _0x2bfd02=a0_0x43f0b0;let {after:_0x43b5c2,before:_0x2ad71d,column:_0x76041f,record:_0x171b66,row:_0x55f504}=_0x36142a['detail'],_0x26faa5=_0x76041f['name'];if(Object['keys'](this[_0x2bfd02(0xd5)]||{})[_0x2bfd02(0xcc)](_0x26faa5)){let _0x3360bc,_0x4f2840=(await MetaApi[_0x2bfd02(0xda)](void 0x0,this[_0x2bfd02(0xd5)][_0x26faa5],{'columnName':_0x26faa5,'column':_0x76041f,'record':_0x171b66,'after':_0x43b5c2,'before':_0x2ad71d,'row':_0x55f504},!0x1))['data'][_0x2bfd02(0xbc)][_0x2bfd02(0xc8)][_0x2bfd02(0xd6)];if(!_0x4f2840)return;_0x3360bc=this['grist']?this['grist'][_0x2bfd02(0xb7)][_0x2bfd02(0xb2)]:this,Object[_0x2bfd02(0xe2)](_0x4f2840)[_0x2bfd02(0xc5)](_0x34bd96=>{const _0x553c18=_0x2bfd02;_0x3360bc['dispatchEvent'](new CustomEvent(_0x553c18(0xd1),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x171b66,'row':_0x55f504,'after':_0x4f2840[_0x34bd96],'before':_0x171b66[_0x34bd96],'column':{'name':_0x34bd96}}}));});}this['dispatchEvent'](new CustomEvent(_0x2bfd02(0xeb),{'bubbles':!0x0,'composed':!0x0,'detail':_0x36142a[_0x2bfd02(0xb0)]}));}async[a0_0x43f0b0(0xe3)](){const _0x541add=a0_0x43f0b0;super[_0x541add(0xe3)]&&await super[_0x541add(0xe3)](),this[_0x541add(0xc4)][_0x541add(0xe0)]()['startsWith'](_0x541add(0xea))?this[_0x541add(0xd7)](_0x541add(0xdc),async _0x301c98=>{await this['dataChangeEventHandler'](_0x301c98);}):this[_0x541add(0xd7)]('field-change',async _0x4a4322=>{const _0x82672c=_0x541add;await this[_0x82672c(0xde)](_0x4a4322);});}async[a0_0x43f0b0(0xce)](_0x15852f,_0x58819b,_0x1c3ecf){const _0x589fb7=a0_0x43f0b0;let _0x18204e=this['lifecycle']?.[_0x589fb7(0xb1)]?this[_0x589fb7(0xdd)]['params']:{};this[_0x589fb7(0xba)]&&this['active']&&0x0==_0x1c3ecf['active']&&ValueUtil[_0x589fb7(0xbb)](_0x18204e)&&this[_0x589fb7(0xd3)]();}get['isPopup'](){const _0x12869e=a0_0x43f0b0;return!ValueUtil[_0x12869e(0xac)](this[_0x12869e(0xcf)])&&this['is_popup'];}get[a0_0x43f0b0(0xba)](){const _0x2156f4=a0_0x43f0b0;return!this['is_detail']&&!this[_0x2156f4(0xcf)];}async[a0_0x43f0b0(0xec)](){const _0xee38f=a0_0x43f0b0;let _0x249492=await MetaApi[_0xee38f(0xc0)](this);_0x249492&&(this['menuInfo']=_0x249492[_0xee38f(0xe7)],this[_0xee38f(0xd8)]=_0x249492[_0xee38f(0xdb)],this['parseBasicGridConfigs']&&this[_0xee38f(0xc2)](_0x249492),this[_0xee38f(0xd2)]&&this[_0xee38f(0xd2)](_0x249492),this[_0xee38f(0xb4)]&&this[_0xee38f(0xb4)](_0x249492),this[_0xee38f(0xd0)]&&this[_0xee38f(0xd0)](_0x249492),this[_0xee38f(0xcd)]&&this[_0xee38f(0xcd)](_0x249492));}async['fetch'](){const _0x4c0c1b=a0_0x43f0b0;ValueUtil[_0x4c0c1b(0xbb)](this[_0x4c0c1b(0xb7)])?this['grist'][_0x4c0c1b(0xd3)]():(ValueUtil[_0x4c0c1b(0xbb)](this[_0x4c0c1b(0xc6)])||this['fetchHandler'])&&await this[_0x4c0c1b(0xaf)]();}async['excuteOpenPopupButtonClick'](_0x4eb542,_0x1caddb,_0x2460d6){const _0x1bb69e=a0_0x43f0b0;let _0x18284f=TermsUtil[_0x1bb69e(0xc3)](_0x4eb542[_0x1bb69e(0xca)]);ValueUtil[_0x1bb69e(0xbb)](_0x4eb542[_0x1bb69e(0xc9)])&&(_0x18284f=_0x18284f+'-'+ValueUtil['getParams'](_0x1caddb,..._0x4eb542[_0x1bb69e(0xc9)][_0x1bb69e(0xdf)]('.'))),MetaApi[_0x1bb69e(0xd4)](_0x18284f,_0x4eb542,_0x1caddb,_0x2460d6);}async[a0_0x43f0b0(0xb3)](_0xcd81c7,_0x4807d6,_0x25df30){const _0xc49962=a0_0x43f0b0;let _0xbba2c8=await MetaApi[_0xc49962(0xda)](_0xcd81c7[_0xc49962(0xe5)],_0xcd81c7[_0xc49962(0xe5)],_0x4807d6);!0x1!==_0xbba2c8&&!_0xbba2c8[_0xc49962(0xbd)]&&ValueUtil[_0xc49962(0xbb)](_0xcd81c7[_0xc49962(0xbf)])&&_0x25df30();}[a0_0x43f0b0(0xe6)](_0x5f35cf){const _0x3c1a4c=a0_0x43f0b0;this[_0x3c1a4c(0xae)]=_0x5f35cf,this['fetch']();}};
1
+ function a0_0x52af(_0x41fab5,_0x169e67){const _0x23b904=a0_0x23b9();return a0_0x52af=function(_0x52af03,_0x40c0a3){_0x52af03=_0x52af03-0x145;let _0x4dd75e=_0x23b904[_0x52af03];return _0x4dd75e;},a0_0x52af(_0x41fab5,_0x169e67);}function a0_0x23b9(){const _0x5d12eb=['isNotEmpty','menuInfo','params','is_popup','143988iMXBVa','body','parseBasicButtonConfigs','is_detail','isEmpty','tagName','fetch','3WsoFBH','getAndParseMenuMeta','field-change','isDetail','parseBasicGridConfigs','active','dataChangeEventHandler','runScenario','210974bBVNvu','properties','etcConfig','188405npqTAd','grist','connectedCallback','532160fsjjBS','executeCallScenarioButtonClick','title','parent_id','286328cspYzJ','split','includes','form-field-change','callScenario','menu','result','parseBasicFormConfigs','fieldChangeHandlers','parseBasicTabConfigs','errors','fetchHandler','965600IYXRzy','dispatchEvent','setParentId','name','etc','parseBasicServiceConfigs','after','142722IDWkHd','openDynamicPopup','getParams','isPopup','data-changed','keys','lifecycle','detail','getMenuMeta'];a0_0x23b9=function(){return _0x5d12eb;};return a0_0x23b9();}const a0_0x21720b=a0_0x52af;(function(_0x1f0278,_0x66d6a5){const _0x31d5e5=a0_0x52af,_0x44e5ef=_0x1f0278();while(!![]){try{const _0x38d366=parseInt(_0x31d5e5(0x161))/0x1+-parseInt(_0x31d5e5(0x15e))/0x2+parseInt(_0x31d5e5(0x156))/0x3*(-parseInt(_0x31d5e5(0x14f))/0x4)+parseInt(_0x31d5e5(0x174))/0x5+-parseInt(_0x31d5e5(0x17b))/0x6+-parseInt(_0x31d5e5(0x168))/0x7+-parseInt(_0x31d5e5(0x164))/0x8;if(_0x38d366===_0x66d6a5)break;else _0x44e5ef['push'](_0x44e5ef['shift']());}catch(_0x41ce4a){_0x44e5ef['push'](_0x44e5ef['shift']());}}}(a0_0x23b9,0x1a91e));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x1f790e=>class extends _0x1f790e{static get[a0_0x21720b(0x15f)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0xad5fdf=>Boolean(_0xad5fdf)},'is_popup':{'type':Boolean,'converter':_0x164338=>Boolean(_0x164338)},'is_activity':{'type':Boolean,'converter':_0x34c4b5=>Boolean(_0x34c4b5)},'is_readonly':{'type':Boolean,'converter':_0x5b3bee=>Boolean(_0x5b3bee)}};}get['isElement'](){const _0x5d72d7=a0_0x21720b;return!0x0===this[_0x5d72d7(0x152)]||!0x0===this[_0x5d72d7(0x14e)];}get[a0_0x21720b(0x159)](){const _0x38a0d1=a0_0x21720b;return!ValueUtil[_0x38a0d1(0x153)](this[_0x38a0d1(0x152)])&&this[_0x38a0d1(0x152)];}async['dataChangeEventHandler'](_0x21ef31){const _0xf6c1a7=a0_0x21720b;let {after:_0x2fb8e2,before:_0x20404e,column:_0x2e7085,record:_0x2ad8f6,row:_0x9c601b}=_0x21ef31[_0xf6c1a7(0x149)],_0x1427e5=_0x2e7085[_0xf6c1a7(0x177)];if(Object[_0xf6c1a7(0x147)](this[_0xf6c1a7(0x170)]||{})[_0xf6c1a7(0x16a)](_0x1427e5)){let _0x4da859,_0x569623=(await MetaApi[_0xf6c1a7(0x16c)](void 0x0,this[_0xf6c1a7(0x170)][_0x1427e5],{'columnName':_0x1427e5,'column':_0x2e7085,'record':_0x2ad8f6,'after':_0x2fb8e2,'before':_0x20404e,'row':_0x9c601b},!0x1))['data'][_0xf6c1a7(0x15d)]['data'][_0xf6c1a7(0x16e)];if(!_0x569623)return;_0x4da859=this[_0xf6c1a7(0x162)]?this[_0xf6c1a7(0x162)][_0xf6c1a7(0x162)][_0xf6c1a7(0x150)]:this,Object[_0xf6c1a7(0x147)](_0x569623)['forEach'](_0x18d46c=>{const _0x3aa852=_0xf6c1a7;_0x4da859[_0x3aa852(0x175)](new CustomEvent(_0x3aa852(0x158),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x2ad8f6,'row':_0x9c601b,'after':_0x569623[_0x18d46c],'before':_0x2ad8f6[_0x18d46c],'column':{'name':_0x18d46c}}}));});}this[_0xf6c1a7(0x175)](new CustomEvent(_0xf6c1a7(0x146),{'bubbles':!0x0,'composed':!0x0,'detail':_0x21ef31[_0xf6c1a7(0x149)]}));}async['connectedCallback'](){const _0x33a671=a0_0x21720b;super[_0x33a671(0x163)]&&await super[_0x33a671(0x163)](),this[_0x33a671(0x154)]['toLowerCase']()['startsWith']('meta-form-')?this['addEventListener'](_0x33a671(0x16b),async _0x21e963=>{const _0x3cb8e5=_0x33a671;await this[_0x3cb8e5(0x15c)](_0x21e963);}):this['addEventListener'](_0x33a671(0x158),async _0x790cb0=>{await this['dataChangeEventHandler'](_0x790cb0);});}async['pageUpdated'](_0x578c17,_0x58a1a9,_0x4321a0){const _0x4fe71e=a0_0x21720b;let _0x1e9f29=this[_0x4fe71e(0x148)]?.[_0x4fe71e(0x14d)]?this['lifecycle'][_0x4fe71e(0x14d)]:{};this['isPage']&&this[_0x4fe71e(0x15b)]&&0x0==_0x4321a0[_0x4fe71e(0x15b)]&&ValueUtil[_0x4fe71e(0x14b)](_0x1e9f29)&&this[_0x4fe71e(0x155)]();}get[a0_0x21720b(0x145)](){const _0xef9e09=a0_0x21720b;return!ValueUtil[_0xef9e09(0x153)](this[_0xef9e09(0x14e)])&&this[_0xef9e09(0x14e)];}get['isPage'](){const _0x7cda32=a0_0x21720b;return!this[_0x7cda32(0x152)]&&!this[_0x7cda32(0x14e)];}async[a0_0x21720b(0x157)](){const _0x3d0f91=a0_0x21720b;let _0x10cf49=await MetaApi[_0x3d0f91(0x14a)](this);_0x10cf49&&(this[_0x3d0f91(0x14c)]=_0x10cf49[_0x3d0f91(0x16d)],this[_0x3d0f91(0x160)]=_0x10cf49[_0x3d0f91(0x178)],this[_0x3d0f91(0x15a)]&&this['parseBasicGridConfigs'](_0x10cf49),this[_0x3d0f91(0x179)]&&this[_0x3d0f91(0x179)](_0x10cf49),this['parseBasicFormConfigs']&&this[_0x3d0f91(0x16f)](_0x10cf49),this[_0x3d0f91(0x171)]&&this[_0x3d0f91(0x171)](_0x10cf49),this[_0x3d0f91(0x151)]&&this[_0x3d0f91(0x151)](_0x10cf49));}async['fetch'](){const _0xa12ff=a0_0x21720b;ValueUtil[_0xa12ff(0x14b)](this[_0xa12ff(0x162)])?this[_0xa12ff(0x162)][_0xa12ff(0x155)]():(ValueUtil[_0xa12ff(0x14b)](this['filterForm'])||this[_0xa12ff(0x173)])&&await this['fetchHandler']();}async['excuteOpenPopupButtonClick'](_0x2fba18,_0x1eead2,_0x531213){const _0x566ce0=a0_0x21720b;let _0x24d421=TermsUtil['tTitle'](_0x2fba18[_0x566ce0(0x166)]);ValueUtil[_0x566ce0(0x14b)](_0x2fba18['title_detail'])&&(_0x24d421=_0x24d421+'-'+ValueUtil[_0x566ce0(0x17d)](_0x1eead2,..._0x2fba18['title_detail'][_0x566ce0(0x169)]('.'))),MetaApi[_0x566ce0(0x17c)](_0x24d421,_0x2fba18,_0x1eead2,_0x531213);}async[a0_0x21720b(0x165)](_0x4e9940,_0x5bdea7,_0x1d38f7){const _0x44e244=a0_0x21720b;let _0x2801ef=await MetaApi[_0x44e244(0x16c)](_0x4e9940['name'],_0x4e9940[_0x44e244(0x177)],_0x5bdea7);!0x1!==_0x2801ef&&!_0x2801ef[_0x44e244(0x172)]&&ValueUtil[_0x44e244(0x14b)](_0x4e9940[_0x44e244(0x17a)])&&_0x1d38f7();}[a0_0x21720b(0x176)](_0x456f15){const _0x4935ec=a0_0x21720b;this[_0x4935ec(0x167)]=_0x456f15,this['fetch']();}};
@@ -1,4 +1,4 @@
1
- const a0_0x39fe47=a0_0x34a7;(function(_0x5ead3c,_0x222179){const _0x2f81de=a0_0x34a7,_0x7c2248=_0x5ead3c();while(!![]){try{const _0x4734ef=-parseInt(_0x2f81de(0xa9))/0x1*(-parseInt(_0x2f81de(0xb8))/0x2)+parseInt(_0x2f81de(0x9e))/0x3+parseInt(_0x2f81de(0xd0))/0x4+parseInt(_0x2f81de(0x9b))/0x5*(parseInt(_0x2f81de(0xba))/0x6)+parseInt(_0x2f81de(0xcf))/0x7*(parseInt(_0x2f81de(0xc3))/0x8)+-parseInt(_0x2f81de(0xad))/0x9*(parseInt(_0x2f81de(0x9c))/0xa)+-parseInt(_0x2f81de(0xa8))/0xb;if(_0x4734ef===_0x222179)break;else _0x7c2248['push'](_0x7c2248['shift']());}catch(_0x1cb595){_0x7c2248['push'](_0x7c2248['shift']());}}}(a0_0x4339,0x9ccb5));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x34a7(_0x97a287,_0x4dc77e){const _0x43392a=a0_0x4339();return a0_0x34a7=function(_0x34a74f,_0x268f93){_0x34a74f=_0x34a74f-0x98;let _0x3dc3e7=_0x43392a[_0x34a74f];return _0x3dc3e7;},a0_0x34a7(_0x97a287,_0x4dc77e);}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';function a0_0x4339(){const _0x54a6d4=['36756929EjUBBJ','513808FflqBC','renderRoot','exportableData','grist','4199418zgLztc','patchesForUpdateMultiple','title','searchConfig','getAndParseMenuMeta','tTitle','deleteByIds','isNotEmpty','records','keys','gristId','4iWfTZp','gridEmphasized','138mHIuva','querySelector','pageInitialized','gridConfig','parseGristConfigs','shadowRoot','grid_column','parseBasicGridConfigs','getParams','32guPIub','getData','activityDataSet','updateMultiple','styles','filterFormId','fetch','parse','menuInfo','isElement','data','getBasicGristHtml','1225966aMOuQM','4428516ZdGTyN','export','isPage','connectedCallback','context','filterForm','parseGridConfigSet','startsWith','firstUpdated','render','properties','forEach','gridColumnConfig','ox-grist','248350NecFIt','10zyuiAM','search','1417989CPBNjh','grid','dataSet','find','ox-filters-form','clear','delete','___data','getBasicGristStyles','findOne'];a0_0x4339=function(){return _0x54a6d4;};return a0_0x4339();}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x2bf422=>class extends MetaButtonMixin(_0x2bf422){static get[a0_0x39fe47(0xc7)](){const _0x3c68de=a0_0x39fe47;return MetaApi[_0x3c68de(0xa6)]();}static get[a0_0x39fe47(0xda)](){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 _0x5b47ce=a0_0x39fe47;return this[_0x5b47ce(0xaa)]?.[_0x5b47ce(0xbb)](this[_0x5b47ce(0xb7)]);}get[a0_0x39fe47(0xd5)](){const _0x17ae66=a0_0x39fe47;return this[_0x17ae66(0xbf)]?.[_0x17ae66(0xbb)](this[_0x17ae66(0xc8)]);}get[a0_0x39fe47(0xd4)](){return MetaUiUtil['getContextObject'](this);}async['connectedCallback'](){const _0x2613e9=a0_0x39fe47;this[_0x2613e9(0xb7)]=_0x2613e9(0x9a),this[_0x2613e9(0xc8)]=_0x2613e9(0xa2),await this[_0x2613e9(0xb1)](),this[_0x2613e9(0xcc)]&&await this[_0x2613e9(0xbe)](),this[_0x2613e9(0xc5)]&&(this[_0x2613e9(0xa0)]=this['activityDataSet']),super[_0x2613e9(0xd3)]&&await super['connectedCallback']();}async[a0_0x39fe47(0xd8)](){const _0x2fd0c5=a0_0x39fe47;super[_0x2fd0c5(0xd8)]&&await super['firstUpdated']();}async[a0_0x39fe47(0xbc)](){const _0x1697d3=a0_0x39fe47;this[_0x1697d3(0xd2)]&&await this[_0x1697d3(0xbe)](),super[_0x1697d3(0xbc)]&&await super['pageInitialized']();}[a0_0x39fe47(0xd9)](){const _0x55cbbe=a0_0x39fe47;return html`
2
- ${MetaApi[_0x55cbbe(0xce)](this)}
3
- ${this[_0x55cbbe(0xd2)]?html``:MetaUiUtil['getButtonContainer'](this)}
4
- `;}[a0_0x39fe47(0xc1)](_0x23185f){const _0x1508c5=a0_0x39fe47;this[_0x1508c5(0xbd)]=_0x23185f[_0x1508c5(0x9f)],this[_0x1508c5(0x99)]=_0x23185f[_0x1508c5(0xc0)],this[_0x1508c5(0xb0)]=_0x23185f[_0x1508c5(0x9d)],this[_0x1508c5(0xb9)]=_0x23185f[_0x1508c5(0xb9)];}async['parseGristConfigs'](){const _0x4b61b3=a0_0x39fe47;this['gristConfigSet']=await MetaApi[_0x4b61b3(0xd6)](this);}async['fetch'](){const _0x497492=a0_0x39fe47;await this[_0x497492(0xac)][_0x497492(0xc9)]();}async['save'](){const _0x14b8c6=a0_0x39fe47;let _0x2c84be=MetaApi[_0x14b8c6(0xae)](this[_0x14b8c6(0xac)]);!!ValueUtil[_0x14b8c6(0xb4)](_0x2c84be)&&await this[_0x14b8c6(0xc6)](_0x2c84be)&&this[_0x14b8c6(0xc9)]();}async[a0_0x39fe47(0xa1)](){const _0x1aba43=a0_0x39fe47;let _0x1baa7b=MetaApi['getSelectedIdList'](this['grist'],!0x0);return ValueUtil[_0x1aba43(0xb4)](_0x1baa7b)?await this[_0x1aba43(0xa7)](_0x1baa7b[0x0]):{};}async[a0_0x39fe47(0xa4)](){const _0x3b3afc=a0_0x39fe47;let _0x242283=MetaApi['getSelectedIdList'](this[_0x3b3afc(0xac)],!0x0);!!ValueUtil[_0x3b3afc(0xb4)](_0x242283)&&await this[_0x3b3afc(0xb3)](_0x242283)&&this[_0x3b3afc(0xc9)]();}async[a0_0x39fe47(0xd1)](){const _0x32585e=a0_0x39fe47;let _0x28aed6=TermsUtil[_0x32585e(0xb2)](ValueUtil[_0x32585e(0xc2)](this[_0x32585e(0xcb)],_0x32585e(0xaf)));return await MetaApi[_0x32585e(0xab)](this[_0x32585e(0xcc)],_0x28aed6,this[_0x32585e(0xac)]);}async['import'](){}async[a0_0x39fe47(0xa3)](){const _0x4979d8=a0_0x39fe47;this['grist']&&(this['grist'][_0x4979d8(0xcd)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x39fe47(0xc4)](){const _0x360216=a0_0x39fe47;let _0x5282cb=this[_0x360216(0xac)][_0x360216(0xa5)][_0x360216(0xb5)];return _0x5282cb=JSON[_0x360216(0xca)](JSON['stringify'](_0x5282cb)),_0x5282cb[_0x360216(0x98)](_0x2c82e7=>{const _0x694ad=_0x360216;Object[_0x694ad(0xb6)](_0x2c82e7)['forEach'](_0x1e61d7=>{const _0x24b16b=_0x694ad;_0x1e61d7[_0x24b16b(0xd7)]('__')&&delete _0x2c82e7[_0x1e61d7];});}),_0x5282cb;}};
1
+ const a0_0x238d7f=a0_0x110e;(function(_0x55fd7c,_0x4a0aa1){const _0x130798=a0_0x110e,_0x4d7c6d=_0x55fd7c();while(!![]){try{const _0x1fa6b7=-parseInt(_0x130798(0x1cd))/0x1*(-parseInt(_0x130798(0x1f8))/0x2)+-parseInt(_0x130798(0x1f3))/0x3*(parseInt(_0x130798(0x1bc))/0x4)+parseInt(_0x130798(0x1ec))/0x5+-parseInt(_0x130798(0x1f1))/0x6+parseInt(_0x130798(0x1ca))/0x7+parseInt(_0x130798(0x1f7))/0x8+parseInt(_0x130798(0x1da))/0x9;if(_0x1fa6b7===_0x4a0aa1)break;else _0x4d7c6d['push'](_0x4d7c6d['shift']());}catch(_0xf2f45c){_0x4d7c6d['push'](_0x4d7c6d['shift']());}}}(a0_0x3e67,0xa13bc));import{html}from'lit';function a0_0x110e(_0x8edf71,_0x476f3f){const _0x3e67a0=a0_0x3e67();return a0_0x110e=function(_0x110e27,_0x1dee80){_0x110e27=_0x110e27-0x1ba;let _0x25a193=_0x3e67a0[_0x110e27];return _0x25a193;},a0_0x110e(_0x8edf71,_0x476f3f);}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x3e67(){const _0x421a13=['gristConfigSet','isNotEmpty','startsWith','exportableData','import','parseGristConfigs','7579386koRGYB','grid_column','getParams','context','updateMultiple','getSelectedIdList','grid','parseBasicGridConfigs','renderRoot','getContextObject','title','grist','delete','firstUpdated','searchConfig','querySelector','find','search','589750BXkPPx','ox-grist','gristId','dataSet','shadowRoot','7451406XSryMb','parseGridConfigSet','207mMvTWf','getBasicGristHtml','stringify','filterFormId','6680032cXJtKp','34TTCIpp','render','findOne','records','76420UpBfcd','styles','fetch','gridEmphasized','getAndParseMenuMeta','patchesForUpdateMultiple','menuInfo','isPage','save','pageInitialized','data','forEach','export','getBasicGristStyles','3047352UIrsms','parse','keys','58242RPkCUU','filterForm','clear','deleteByIds','activityDataSet','isElement','connectedCallback'];a0_0x3e67=function(){return _0x421a13;};return a0_0x3e67();}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x230712=>class extends MetaButtonMixin(_0x230712){static get[a0_0x238d7f(0x1bd)](){const _0x24b2b7=a0_0x238d7f;return MetaApi[_0x24b2b7(0x1c9)]();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x238d7f(0x1e5)](){const _0xce47bc=a0_0x238d7f;return this[_0xce47bc(0x1e2)]?.[_0xce47bc(0x1e9)](this[_0xce47bc(0x1ee)]);}get[a0_0x238d7f(0x1ce)](){const _0x5806b0=a0_0x238d7f;return this[_0x5806b0(0x1f0)]?.[_0x5806b0(0x1e9)](this[_0x5806b0(0x1f6)]);}get[a0_0x238d7f(0x1dd)](){const _0x2f0cb3=a0_0x238d7f;return MetaUiUtil[_0x2f0cb3(0x1e3)](this);}async[a0_0x238d7f(0x1d3)](){const _0x365c75=a0_0x238d7f;this[_0x365c75(0x1ee)]=_0x365c75(0x1ed),this['filterFormId']='ox-filters-form',await this[_0x365c75(0x1c0)](),this['isElement']&&await this['parseGristConfigs'](),this[_0x365c75(0x1d1)]&&(this[_0x365c75(0x1ef)]=this[_0x365c75(0x1d1)]),super['connectedCallback']&&await super[_0x365c75(0x1d3)]();}async[a0_0x238d7f(0x1e7)](){const _0x5af90e=a0_0x238d7f;super[_0x5af90e(0x1e7)]&&await super[_0x5af90e(0x1e7)]();}async[a0_0x238d7f(0x1c5)](){const _0xa1dac8=a0_0x238d7f;this[_0xa1dac8(0x1c3)]&&await this['parseGristConfigs'](),super[_0xa1dac8(0x1c5)]&&await super[_0xa1dac8(0x1c5)]();}[a0_0x238d7f(0x1f9)](){const _0x4fdfe3=a0_0x238d7f;return html`
2
+ ${MetaApi[_0x4fdfe3(0x1f4)](this)}
3
+ ${this[_0x4fdfe3(0x1c3)]?html``:MetaUiUtil['getButtonContainer'](this)}
4
+ `;}[a0_0x238d7f(0x1e1)](_0x3067df){const _0x8628eb=a0_0x238d7f;this['gridConfig']=_0x3067df[_0x8628eb(0x1e0)],this['gridColumnConfig']=_0x3067df[_0x8628eb(0x1db)],this[_0x8628eb(0x1e8)]=_0x3067df[_0x8628eb(0x1eb)],this[_0x8628eb(0x1bf)]=_0x3067df[_0x8628eb(0x1bf)];}async[a0_0x238d7f(0x1d9)](){const _0x158bcb=a0_0x238d7f;this[_0x158bcb(0x1d4)]=await MetaApi[_0x158bcb(0x1f2)](this);}async[a0_0x238d7f(0x1be)](){const _0x3abaa4=a0_0x238d7f;await this[_0x3abaa4(0x1e5)][_0x3abaa4(0x1be)]();}async[a0_0x238d7f(0x1c4)](){const _0x43bd8e=a0_0x238d7f;let _0x26e304=MetaApi[_0x43bd8e(0x1c1)](this[_0x43bd8e(0x1e5)]);!!ValueUtil[_0x43bd8e(0x1d5)](_0x26e304)&&await this[_0x43bd8e(0x1de)](_0x26e304)&&this[_0x43bd8e(0x1be)]();}async[a0_0x238d7f(0x1ea)](){const _0x1df5bc=a0_0x238d7f;let _0x5198a3=MetaApi[_0x1df5bc(0x1df)](this['grist'],!0x0);return ValueUtil['isNotEmpty'](_0x5198a3)?await this[_0x1df5bc(0x1ba)](_0x5198a3[0x0]):{};}async[a0_0x238d7f(0x1e6)](){const _0x2fa3a7=a0_0x238d7f;let _0x3639c9=MetaApi[_0x2fa3a7(0x1df)](this[_0x2fa3a7(0x1e5)],!0x0);!!ValueUtil[_0x2fa3a7(0x1d5)](_0x3639c9)&&await this[_0x2fa3a7(0x1d0)](_0x3639c9)&&this[_0x2fa3a7(0x1be)]();}async[a0_0x238d7f(0x1c8)](){const _0x334244=a0_0x238d7f;let _0x59ff2d=TermsUtil['tTitle'](ValueUtil[_0x334244(0x1dc)](this[_0x334244(0x1c2)],_0x334244(0x1e4)));return await MetaApi[_0x334244(0x1d7)](this[_0x334244(0x1d2)],_0x59ff2d,this[_0x334244(0x1e5)]);}async[a0_0x238d7f(0x1d8)](){}async[a0_0x238d7f(0x1cf)](){const _0xa0bde0=a0_0x238d7f;this[_0xa0bde0(0x1e5)]&&(this[_0xa0bde0(0x1e5)][_0xa0bde0(0x1c6)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0x260498=a0_0x238d7f;let _0x2384c9=this[_0x260498(0x1e5)]['___data'][_0x260498(0x1bb)];return _0x2384c9=JSON[_0x260498(0x1cb)](JSON[_0x260498(0x1f5)](_0x2384c9)),_0x2384c9[_0x260498(0x1c7)](_0x1195df=>{const _0x2b3c20=_0x260498;Object[_0x2b3c20(0x1cc)](_0x1195df)[_0x2b3c20(0x1c7)](_0x5b58df=>{const _0x2d9806=_0x2b3c20;_0x5b58df[_0x2d9806(0x1d6)]('__')&&delete _0x1195df[_0x5b58df];});}),_0x2384c9;}};
@@ -1 +1 @@
1
- function a0_0x5164(){const _0x415844=['customButtonHandler','useButtonImport','buttonConfig','409932WixlIz','export','getBasicButtonHandler','714445GkTWeR','getContextButtons','3430944pmRRQM','useButtonExport','3fOpPpp','isButtonExist','getButtonContainer','9CssyxE','273046BFZJWx','4494610HCWOYP','getCustomButtonContainerStyles','9102980haCoZM','gristButtonHandler','4cNPJvR','isPage','properties','4966549rVAGoR','useButtonAdd','button','parseBasicButtonConfigs','import','getCustomButtonContainerStyle'];a0_0x5164=function(){return _0x415844;};return a0_0x5164();}const a0_0x5cb7df=a0_0x211d;(function(_0x6674d4,_0x19bc5e){const _0x4f13c3=a0_0x211d,_0x515e0c=_0x6674d4();while(!![]){try{const _0x1d1119=parseInt(_0x4f13c3(0xaf))/0x1+parseInt(_0x4f13c3(0xb7))/0x2*(parseInt(_0x4f13c3(0xb3))/0x3)+-parseInt(_0x4f13c3(0xbc))/0x4*(parseInt(_0x4f13c3(0xb8))/0x5)+-parseInt(_0x4f13c3(0xac))/0x6+-parseInt(_0x4f13c3(0xa3))/0x7+parseInt(_0x4f13c3(0xb1))/0x8+-parseInt(_0x4f13c3(0xb6))/0x9*(-parseInt(_0x4f13c3(0xba))/0xa);if(_0x1d1119===_0x19bc5e)break;else _0x515e0c['push'](_0x515e0c['shift']());}catch(_0x4fc43f){_0x515e0c['push'](_0x515e0c['shift']());}}}(a0_0x5164,0x7d567));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';function a0_0x211d(_0x1523f3,_0x1c1093){const _0x51649b=a0_0x5164();return a0_0x211d=function(_0x211dab,_0x22bd5c){_0x211dab=_0x211dab-0xa2;let _0xeec65e=_0x51649b[_0x211dab];return _0xeec65e;},a0_0x211d(_0x1523f3,_0x1c1093);}export const MetaButtonMixin=_0x268c45=>class extends MetaServiceMixin(_0x268c45){static get[a0_0x5cb7df(0xa2)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x5cb7df(0xa8)](){const _0x53b42d=a0_0x5cb7df;return MetaUiUtil[_0x53b42d(0xb9)]();}[a0_0x5cb7df(0xb0)](){const _0x30b085=a0_0x5cb7df;return MetaUiUtil[_0x30b085(0xb0)](this);}[a0_0x5cb7df(0xb5)](){const _0x2e2f4a=a0_0x5cb7df;return this[_0x2e2f4a(0xbd)]?html``:MetaUiUtil[_0x2e2f4a(0xb5)](this);}async[a0_0x5cb7df(0xae)](_0x5e8477,_0x44c18f,_0x50a0f3){return await MetaUiUtil['getButtonActionHandler'](this,_0x5e8477,_0x44c18f,_0x50a0f3);}async['customButtonHandler'](_0x3c600a){const _0x91203a=a0_0x5cb7df;await MetaUiUtil[_0x91203a(0xa9)](this,_0x3c600a);}async[a0_0x5cb7df(0xbb)](_0x347d8f,_0x273ce1){const _0xfc3c56=a0_0x5cb7df;await MetaUiUtil[_0xfc3c56(0xbb)](this,_0x347d8f,_0x273ce1);}[a0_0x5cb7df(0xa6)](_0x4d43f4){const _0x5b1dce=a0_0x5cb7df;this['buttonConfig']=_0x4d43f4[_0x5b1dce(0xa5)],this[_0x5b1dce(0xaa)]=MetaUiUtil[_0x5b1dce(0xb4)](this[_0x5b1dce(0xab)],_0x5b1dce(0xa7)),this[_0x5b1dce(0xb2)]=MetaUiUtil[_0x5b1dce(0xb4)](this[_0x5b1dce(0xab)],_0x5b1dce(0xad)),this[_0x5b1dce(0xa4)]=MetaUiUtil[_0x5b1dce(0xb4)](this[_0x5b1dce(0xab)],'add');}};
1
+ const a0_0x14b8e1=a0_0x2b40;function a0_0x24ee(){const _0x2de476=['getButtonActionHandler','2052681PPmgHE','isButtonExist','add','gristButtonHandler','231QwOEeP','button','5317056hfYVUM','5PvmMzS','2103858qFJKVy','buttonConfig','8863019xxNGEZ','import','2490572otzwaB','isPage','parseBasicButtonConfigs','getButtonContainer','getContextButtons','5PEfuTi','useButtonImport','363208sbTTLo','useButtonExport','getCustomButtonContainerStyle','getBasicButtonHandler','20GXtnVc','properties','getCustomButtonContainerStyles','customButtonHandler','2866HpiKWn','useButtonAdd'];a0_0x24ee=function(){return _0x2de476;};return a0_0x24ee();}(function(_0x57c773,_0x4af23f){const _0x200eab=a0_0x2b40,_0x322d35=_0x57c773();while(!![]){try{const _0x578189=parseInt(_0x200eab(0x1b7))/0x1*(-parseInt(_0x200eab(0x1ad))/0x2)+-parseInt(_0x200eab(0x1b0))/0x3+parseInt(_0x200eab(0x1bc))/0x4+-parseInt(_0x200eab(0x1a3))/0x5*(-parseInt(_0x200eab(0x1b8))/0x6)+parseInt(_0x200eab(0x1b4))/0x7*(parseInt(_0x200eab(0x1a5))/0x8)+parseInt(_0x200eab(0x1b6))/0x9+parseInt(_0x200eab(0x1a9))/0xa*(-parseInt(_0x200eab(0x1ba))/0xb);if(_0x578189===_0x4af23f)break;else _0x322d35['push'](_0x322d35['shift']());}catch(_0x1a9674){_0x322d35['push'](_0x322d35['shift']());}}}(a0_0x24ee,0xb969d));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x2b40(_0x3149c6,_0x359b88){const _0x24ee77=a0_0x24ee();return a0_0x2b40=function(_0x2b4022,_0x5c2193){_0x2b4022=_0x2b4022-0x1a3;let _0x43c1de=_0x24ee77[_0x2b4022];return _0x43c1de;},a0_0x2b40(_0x3149c6,_0x359b88);}import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x3e16dc=>class extends MetaServiceMixin(_0x3e16dc){static get[a0_0x14b8e1(0x1aa)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x14b8e1(0x1a7)](){const _0x828b81=a0_0x14b8e1;return MetaUiUtil[_0x828b81(0x1ab)]();}[a0_0x14b8e1(0x1c0)](){const _0x2b78e0=a0_0x14b8e1;return MetaUiUtil[_0x2b78e0(0x1c0)](this);}[a0_0x14b8e1(0x1bf)](){const _0x262c8e=a0_0x14b8e1;return this[_0x262c8e(0x1bd)]?html``:MetaUiUtil[_0x262c8e(0x1bf)](this);}async[a0_0x14b8e1(0x1a8)](_0x3a5d4f,_0x4bf457,_0x1e990b){const _0x3b3f96=a0_0x14b8e1;return await MetaUiUtil[_0x3b3f96(0x1af)](this,_0x3a5d4f,_0x4bf457,_0x1e990b);}async['customButtonHandler'](_0x2631cb){const _0x1d959d=a0_0x14b8e1;await MetaUiUtil[_0x1d959d(0x1ac)](this,_0x2631cb);}async[a0_0x14b8e1(0x1b3)](_0x790307,_0x148ae6){const _0x5df825=a0_0x14b8e1;await MetaUiUtil[_0x5df825(0x1b3)](this,_0x790307,_0x148ae6);}[a0_0x14b8e1(0x1be)](_0x535cd3){const _0x25fdd9=a0_0x14b8e1;this[_0x25fdd9(0x1b9)]=_0x535cd3[_0x25fdd9(0x1b5)],this[_0x25fdd9(0x1a4)]=MetaUiUtil[_0x25fdd9(0x1b1)](this[_0x25fdd9(0x1b9)],_0x25fdd9(0x1bb)),this[_0x25fdd9(0x1a6)]=MetaUiUtil[_0x25fdd9(0x1b1)](this[_0x25fdd9(0x1b9)],'export'),this[_0x25fdd9(0x1ae)]=MetaUiUtil[_0x25fdd9(0x1b1)](this['buttonConfig'],_0x25fdd9(0x1b2));}};
@@ -1 +1 @@
1
- const a0_0x357d27=a0_0x4dda;(function(_0x44134e,_0x4a43b6){const _0x2c687a=a0_0x4dda,_0x186e3c=_0x44134e();while(!![]){try{const _0x2ca88a=parseInt(_0x2c687a(0x13b))/0x1*(parseInt(_0x2c687a(0x183))/0x2)+-parseInt(_0x2c687a(0x173))/0x3*(parseInt(_0x2c687a(0x148))/0x4)+parseInt(_0x2c687a(0x17c))/0x5+parseInt(_0x2c687a(0x162))/0x6*(-parseInt(_0x2c687a(0x131))/0x7)+parseInt(_0x2c687a(0x145))/0x8+-parseInt(_0x2c687a(0x134))/0x9*(parseInt(_0x2c687a(0x12f))/0xa)+-parseInt(_0x2c687a(0x13a))/0xb*(-parseInt(_0x2c687a(0x151))/0xc);if(_0x2ca88a===_0x4a43b6)break;else _0x186e3c['push'](_0x186e3c['shift']());}catch(_0x30a6c8){_0x186e3c['push'](_0x186e3c['shift']());}}}(a0_0x30e2,0xd3a6f));import{MetaApi}from'../utils/meta-api';function a0_0x30e2(){const _0x1754bf=['call','120gCiIaw','true','currentData','getBasicFormStyles','save','parent_id','record','addEventListener','clear','before','isEmpty','pageInitialized','isEquals','formRenderConfig','Enter','__dirtyfields__','focus','791022avjtnO','activityDataSet','getData','column','filter','parseBasicFormConfigs','entries','map','Esc','editing','formColumnConfig','grid_column','isElement','button','setAttribute','Escape','context','176934iehunV','detail','render','removeAttribute','object','removeGarbageData','function','dataSet','__seq__','6819590mUfkRy','__dirty__','formConfigSet','currentTarget','cuFlag','firstUpdated','keys','290044XiJXVa','click','stopPropagation','renderRoot','validation','460gJyKmd','startsWith','7mlCjHr','form-field-change','after','229266msmCBZ','fetch','dirtyData','getContextObject','is_activity','getAndParseMenuMeta','833503JEqZuv','8GbzlUZ','properties','isPage','dispatchEvent','orgData','isNotEmpty','parseFormConfigs','title.info','target','assign','4792848UgSecO','patchData','OX-GRID-FIELD','116aDqoUJ','tagName','connectedCallback','activity','key','__origin__','updateMultiple','getBasicFormHtml'];a0_0x30e2=function(){return _0x1754bf;};return a0_0x30e2();}function a0_0x4dda(_0x564601,_0x53f8dc){const _0x30e2e4=a0_0x30e2();return a0_0x4dda=function(_0x4ddaa6,_0x27ee01){_0x4ddaa6=_0x4ddaa6-0x12c;let _0x5779d5=_0x30e2e4[_0x4ddaa6];return _0x5779d5;},a0_0x4dda(_0x564601,_0x53f8dc);}import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x469c16=>class extends MetaButtonMixin(_0x469c16){static get['styles'](){const _0x27c835=a0_0x4dda;return MetaApi[_0x27c835(0x154)]();}static get[a0_0x357d27(0x13c)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x357d27(0x172)](){const _0x497f34=a0_0x357d27;return MetaUiUtil[_0x497f34(0x137)](this);}async[a0_0x357d27(0x14a)](){const _0x27b966=a0_0x357d27;await this[_0x27b966(0x139)](),this[_0x27b966(0x16e)]&&await this['parseFormConfigs'](),this[_0x27b966(0x163)]&&(this[_0x27b966(0x17a)]=this[_0x27b966(0x163)]),!0x0!==this[_0x27b966(0x138)]||this[_0x27b966(0x156)]||(this['parent_id']=_0x27b966(0x14b)),super[_0x27b966(0x14a)]&&await super['connectedCallback'](),this['isElement']&&await this[_0x27b966(0x135)](),this[_0x27b966(0x12d)][_0x27b966(0x158)]('keydown',_0x162fde=>{const _0x4f4f26=_0x27b966;switch(_0x162fde[_0x4f4f26(0x14c)]){case _0x4f4f26(0x16a):case _0x4f4f26(0x171):case _0x4f4f26(0x15f):this[_0x4f4f26(0x161)](),this[_0x4f4f26(0x17f)]&&this[_0x4f4f26(0x17f)]['removeAttribute'](_0x4f4f26(0x16b)),this[_0x4f4f26(0x17f)]=null;}}),this[_0x27b966(0x12d)][_0x27b966(0x158)](_0x27b966(0x184),_0x38d780=>{const _0x5a4a8c=_0x27b966;_0x38d780[_0x5a4a8c(0x12c)]();let _0x1283fa=_0x38d780[_0x5a4a8c(0x143)];if(this['currentTarget']&&(this['focus'](),this[_0x5a4a8c(0x17f)][_0x5a4a8c(0x176)](_0x5a4a8c(0x16b))),_0x5a4a8c(0x147)!==_0x1283fa[_0x5a4a8c(0x149)]||!_0x1283fa[_0x5a4a8c(0x165)]['record']['editable'])return this[_0x5a4a8c(0x161)](),void(this[_0x5a4a8c(0x17f)]=null);this['currentTarget']=_0x1283fa,_0x1283fa[_0x5a4a8c(0x170)](_0x5a4a8c(0x16b),_0x5a4a8c(0x152));}),this['addEventListener']('field-change',_0xfa7420=>{const _0x1961e6=_0x27b966;var {after:_0x3230eb,before:_0x1e72c6,column:_0x5df079,record:_0x5ba934,row:_0x37543e}=_0xfa7420[_0x1961e6(0x174)];if(ValueUtil[_0x1961e6(0x15d)](_0x3230eb,_0x1e72c6))return;var _0x28e42c=_0x5df079[_0x1961e6(0x12e)];if(_0x28e42c&&_0x1961e6(0x179)==typeof _0x28e42c&&!_0x28e42c[_0x1961e6(0x150)](this,_0x3230eb,_0x1e72c6,_0x5ba934,_0x5df079))return;let _0x24110e=_0x5df079['name'];_0x5ba934[_0x24110e]=_0x3230eb,_0x5ba934['__dirtyfields__']=_0x5ba934[_0x1961e6(0x160)]||{},_0x5ba934[_0x1961e6(0x14d)]=_0x5ba934[_0x1961e6(0x14d)]||{},_0x5ba934[_0x1961e6(0x160)][_0x24110e]={'before':_0x5ba934[_0x1961e6(0x14d)][_0x24110e],'after':_0x5ba934[_0x24110e]},ValueUtil[_0x1961e6(0x15d)](_0x5ba934[_0x1961e6(0x160)][_0x24110e][_0x1961e6(0x15a)],_0x5ba934['__dirtyfields__'][_0x24110e][_0x1961e6(0x133)])&&delete _0x5ba934[_0x1961e6(0x160)][_0x24110e],ValueUtil[_0x1961e6(0x140)](_0x5ba934['__dirtyfields__'])?_0x5ba934['__dirty__']='M':_0x5ba934[_0x1961e6(0x17d)]='',this['record']={..._0x5ba934},this[_0x1961e6(0x13e)](new CustomEvent(_0x1961e6(0x132),{'bubbles':!0x0,'composed':!0x0,'detail':_0xfa7420['detail']}));});}async[a0_0x357d27(0x181)](){const _0x2d3e23=a0_0x357d27;super['firstUpdated']&&await super[_0x2d3e23(0x181)]();}async['pageInitialized'](){const _0x4efeab=a0_0x357d27;this[_0x4efeab(0x13d)]&&await this[_0x4efeab(0x141)](),super[_0x4efeab(0x15c)]&&await super[_0x4efeab(0x15c)](),this[_0x4efeab(0x13d)]&&await this[_0x4efeab(0x135)]();}[a0_0x357d27(0x175)](){const _0x4f22be=a0_0x357d27;return MetaApi[_0x4f22be(0x14f)](this);}[a0_0x357d27(0x167)](_0x53506a){const _0x5c5e98=a0_0x357d27;this[_0x5c5e98(0x16c)]=_0x53506a[_0x5c5e98(0x16d)],this[_0x5c5e98(0x15e)]=_0x53506a['form'],_0x53506a[_0x5c5e98(0x16f)]=_0x53506a['button'][_0x5c5e98(0x166)](_0xad5b55=>_0x5c5e98(0x155)==_0xad5b55['name']);}async[a0_0x357d27(0x141)](){const _0x10f3dc=a0_0x357d27;this[_0x10f3dc(0x17e)]=await MetaApi['parseFormConfigSet'](this);}get[a0_0x357d27(0x13f)](){const _0x242f90=a0_0x357d27;return this['removeGarbageData'](this['record'][_0x242f90(0x14d)]);}get['dirtyData'](){const _0x43c13e=a0_0x357d27;if(ValueUtil[_0x43c13e(0x15b)](this[_0x43c13e(0x157)][_0x43c13e(0x160)]))return{};let _0x3b8e2c={};return Object[_0x43c13e(0x168)](this[_0x43c13e(0x157)][_0x43c13e(0x160)])['map'](([_0x2a8bbd,_0x53d148])=>{const _0x455022=_0x43c13e;0x0==_0x2a8bbd[_0x455022(0x130)]('__')&&(_0x3b8e2c[_0x2a8bbd]=_0x53d148['after']);}),_0x3b8e2c;}get['currentData'](){const _0x27e02f=a0_0x357d27;return this[_0x27e02f(0x178)](this[_0x27e02f(0x157)]);}[a0_0x357d27(0x178)](_0x20e2ba){const _0x1786da=a0_0x357d27;let _0x5acfb2={};if(_0x20e2ba)return Object[_0x1786da(0x168)](_0x20e2ba)[_0x1786da(0x169)](([_0x2899bb,_0x2e1648])=>{0x0==_0x2899bb['startsWith']('__')&&(_0x5acfb2[_0x2899bb]=_0x2e1648);}),_0x5acfb2;}get[a0_0x357d27(0x146)](){const _0x1fa4da=a0_0x357d27;let _0x8f6d5d=this[_0x1fa4da(0x136)],_0x3d58b6=this[_0x1fa4da(0x157)];return ValueUtil[_0x1fa4da(0x15b)](_0x8f6d5d)?[]:(ValueUtil[_0x1fa4da(0x140)](_0x3d58b6['id'])?(_0x8f6d5d['id']=_0x3d58b6['id'],_0x8f6d5d['cuFlag']='M'):_0x8f6d5d[_0x1fa4da(0x180)]='+',Object[_0x1fa4da(0x182)](_0x8f6d5d)['forEach'](_0x21727b=>{const _0x55e85f=_0x1fa4da;_0x55e85f(0x177)==typeof _0x8f6d5d[_0x21727b]&&(_0x8f6d5d[_0x21727b]={'id':_0x8f6d5d[_0x21727b]['id']});}),[_0x8f6d5d]);}async[a0_0x357d27(0x135)](){const _0x55cdff=a0_0x357d27;if(ValueUtil[_0x55cdff(0x15b)](this[_0x55cdff(0x156)]))return;let _0x3e2954=await this['findOne'](this[_0x55cdff(0x156)]);_0x3e2954[_0x55cdff(0x17b)]=0x1;let _0x4d4978={};Object[_0x55cdff(0x144)](_0x4d4978,_0x3e2954),_0x3e2954[_0x55cdff(0x14d)]=_0x4d4978,this['record']={..._0x3e2954};}async[a0_0x357d27(0x155)](){const _0x3460bc=a0_0x357d27;let _0x2a75ee=this[_0x3460bc(0x146)];if(ValueUtil[_0x3460bc(0x15b)](_0x2a75ee))return void MetaApi['showAlertPopup'](_0x3460bc(0x142),'text.NOTHING_CHANGED');let _0xc87e73=await this[_0x3460bc(0x14e)](_0x2a75ee);return _0xc87e73&&await this[_0x3460bc(0x135)](),_0xc87e73;}async[a0_0x357d27(0x159)](){const _0x383552=a0_0x357d27;this[_0x383552(0x157)]&&(this['record']={});}[a0_0x357d27(0x164)](){const _0x11b5d7=a0_0x357d27;return this[_0x11b5d7(0x153)]||{};}};
1
+ const a0_0x503c2b=a0_0x4828;function a0_0x4828(_0x3410fd,_0x272535){const _0x3b067f=a0_0x3b06();return a0_0x4828=function(_0x4828f0,_0x5f1ba2){_0x4828f0=_0x4828f0-0x19c;let _0x403b5f=_0x3b067f[_0x4828f0];return _0x403b5f;},a0_0x4828(_0x3410fd,_0x272535);}(function(_0x23b905,_0x201a14){const _0x1b0e41=a0_0x4828,_0x31bc20=_0x23b905();while(!![]){try{const _0x38d463=-parseInt(_0x1b0e41(0x1df))/0x1+-parseInt(_0x1b0e41(0x1ed))/0x2*(parseInt(_0x1b0e41(0x1da))/0x3)+-parseInt(_0x1b0e41(0x1ea))/0x4*(-parseInt(_0x1b0e41(0x1a3))/0x5)+parseInt(_0x1b0e41(0x1ae))/0x6+-parseInt(_0x1b0e41(0x1bc))/0x7*(-parseInt(_0x1b0e41(0x1bf))/0x8)+-parseInt(_0x1b0e41(0x1c9))/0x9*(-parseInt(_0x1b0e41(0x1c8))/0xa)+-parseInt(_0x1b0e41(0x1e8))/0xb*(parseInt(_0x1b0e41(0x1b0))/0xc);if(_0x38d463===_0x201a14)break;else _0x31bc20['push'](_0x31bc20['shift']());}catch(_0x129c79){_0x31bc20['push'](_0x31bc20['shift']());}}}(a0_0x3b06,0xb046b));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x3b06(){const _0x5406dd=['validation','keydown','styles','fetch','function','11dbGkbJ','map','8ssMAzT','forEach','parseFormConfigSet','129922bVZNHV','cuFlag','removeAttribute','pageInitialized','parent_id','click','isNotEmpty','__origin__','clear','dirtyData','title.info','entries','dispatchEvent','1451735PfeXPK','connectedCallback','true','activityDataSet','updateMultiple','getData','filter','isPage','startsWith','removeGarbageData','patchData','2392524xixQMa','formColumnConfig','6296580aHkAbs','currentData','properties','name','before','parseFormConfigs','parseBasicFormConfigs','renderRoot','getBasicFormStyles','detail','firstUpdated','text.NOTHING_CHANGED','361389sZTVJq','getAndParseMenuMeta','isElement','184vHAsnS','record','getContextObject','grid_column','OX-GRID-FIELD','target','call','isEquals','activity','370FpSWRp','145305rBPMvq','addEventListener','form','button','editing','__dirty__','after','isEmpty','showAlertPopup','is_activity','form-field-change','context','currentTarget','Escape','formConfigSet','keys','focus','66EDLoFG','save','tagName','assign','stopPropagation','88350ZGOUts','column','__dirtyfields__','field-change'];a0_0x3b06=function(){return _0x5406dd;};return a0_0x3b06();}export const MetaFormMixin=_0xef566b=>class extends MetaButtonMixin(_0xef566b){static get[a0_0x503c2b(0x1e5)](){const _0x225000=a0_0x503c2b;return MetaApi[_0x225000(0x1b8)]();}static get[a0_0x503c2b(0x1b2)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x503c2b(0x1d4)](){const _0x3c640e=a0_0x503c2b;return MetaUiUtil[_0x3c640e(0x1c1)](this);}async[a0_0x503c2b(0x1a4)](){const _0x30752c=a0_0x503c2b;await this[_0x30752c(0x1bd)](),this[_0x30752c(0x1be)]&&await this['parseFormConfigs'](),this[_0x30752c(0x1a6)]&&(this['dataSet']=this[_0x30752c(0x1a6)]),!0x0!==this[_0x30752c(0x1d2)]||this[_0x30752c(0x1f1)]||(this[_0x30752c(0x1f1)]=_0x30752c(0x1c7)),super[_0x30752c(0x1a4)]&&await super[_0x30752c(0x1a4)](),this['isElement']&&await this[_0x30752c(0x1e6)](),this[_0x30752c(0x1b7)][_0x30752c(0x1ca)](_0x30752c(0x1e4),_0x3f0be7=>{const _0x2ae5ed=_0x30752c;switch(_0x3f0be7['key']){case'Esc':case _0x2ae5ed(0x1d6):case'Enter':this[_0x2ae5ed(0x1d9)](),this[_0x2ae5ed(0x1d5)]&&this[_0x2ae5ed(0x1d5)]['removeAttribute']('editing'),this['currentTarget']=null;}}),this[_0x30752c(0x1b7)][_0x30752c(0x1ca)](_0x30752c(0x1f2),_0x2d7782=>{const _0x597b1d=_0x30752c;_0x2d7782[_0x597b1d(0x1de)]();let _0x168182=_0x2d7782[_0x597b1d(0x1c4)];if(this[_0x597b1d(0x1d5)]&&(this[_0x597b1d(0x1d9)](),this['currentTarget'][_0x597b1d(0x1ef)](_0x597b1d(0x1cd))),_0x597b1d(0x1c3)!==_0x168182[_0x597b1d(0x1dc)]||!_0x168182[_0x597b1d(0x1e0)]['record']['editable'])return this[_0x597b1d(0x1d9)](),void(this['currentTarget']=null);this[_0x597b1d(0x1d5)]=_0x168182,_0x168182['setAttribute'](_0x597b1d(0x1cd),_0x597b1d(0x1a5));}),this[_0x30752c(0x1ca)](_0x30752c(0x1e2),_0x3f4bca=>{const _0x3e90f4=_0x30752c;var {after:_0x1926b0,before:_0x50b53f,column:_0x163dcb,record:_0x170392,row:_0x20a1a9}=_0x3f4bca[_0x3e90f4(0x1b9)];if(ValueUtil[_0x3e90f4(0x1c6)](_0x1926b0,_0x50b53f))return;var _0x56e6a7=_0x163dcb[_0x3e90f4(0x1e3)];if(_0x56e6a7&&_0x3e90f4(0x1e7)==typeof _0x56e6a7&&!_0x56e6a7[_0x3e90f4(0x1c5)](this,_0x1926b0,_0x50b53f,_0x170392,_0x163dcb))return;let _0x22744b=_0x163dcb['name'];_0x170392[_0x22744b]=_0x1926b0,_0x170392['__dirtyfields__']=_0x170392['__dirtyfields__']||{},_0x170392[_0x3e90f4(0x19d)]=_0x170392['__origin__']||{},_0x170392[_0x3e90f4(0x1e1)][_0x22744b]={'before':_0x170392['__origin__'][_0x22744b],'after':_0x170392[_0x22744b]},ValueUtil[_0x3e90f4(0x1c6)](_0x170392[_0x3e90f4(0x1e1)][_0x22744b][_0x3e90f4(0x1b4)],_0x170392[_0x3e90f4(0x1e1)][_0x22744b][_0x3e90f4(0x1cf)])&&delete _0x170392[_0x3e90f4(0x1e1)][_0x22744b],ValueUtil[_0x3e90f4(0x19c)](_0x170392[_0x3e90f4(0x1e1)])?_0x170392[_0x3e90f4(0x1ce)]='M':_0x170392[_0x3e90f4(0x1ce)]='',this[_0x3e90f4(0x1c0)]={..._0x170392},this[_0x3e90f4(0x1a2)](new CustomEvent(_0x3e90f4(0x1d3),{'bubbles':!0x0,'composed':!0x0,'detail':_0x3f4bca[_0x3e90f4(0x1b9)]}));});}async[a0_0x503c2b(0x1ba)](){const _0x41fd05=a0_0x503c2b;super[_0x41fd05(0x1ba)]&&await super[_0x41fd05(0x1ba)]();}async[a0_0x503c2b(0x1f0)](){const _0x265ab4=a0_0x503c2b;this['isPage']&&await this[_0x265ab4(0x1b5)](),super[_0x265ab4(0x1f0)]&&await super[_0x265ab4(0x1f0)](),this[_0x265ab4(0x1aa)]&&await this[_0x265ab4(0x1e6)]();}['render'](){return MetaApi['getBasicFormHtml'](this);}[a0_0x503c2b(0x1b6)](_0x3bcaae){const _0x1e9fb5=a0_0x503c2b;this[_0x1e9fb5(0x1af)]=_0x3bcaae[_0x1e9fb5(0x1c2)],this['formRenderConfig']=_0x3bcaae[_0x1e9fb5(0x1cb)],_0x3bcaae[_0x1e9fb5(0x1cc)]=_0x3bcaae['button'][_0x1e9fb5(0x1a9)](_0x378937=>_0x1e9fb5(0x1db)==_0x378937[_0x1e9fb5(0x1b3)]);}async[a0_0x503c2b(0x1b5)](){const _0x557e52=a0_0x503c2b;this[_0x557e52(0x1d7)]=await MetaApi[_0x557e52(0x1ec)](this);}get['orgData'](){const _0x3b2c0c=a0_0x503c2b;return this[_0x3b2c0c(0x1ac)](this[_0x3b2c0c(0x1c0)][_0x3b2c0c(0x19d)]);}get[a0_0x503c2b(0x19f)](){const _0x3ea020=a0_0x503c2b;if(ValueUtil[_0x3ea020(0x1d0)](this[_0x3ea020(0x1c0)][_0x3ea020(0x1e1)]))return{};let _0x28b344={};return Object[_0x3ea020(0x1a1)](this[_0x3ea020(0x1c0)][_0x3ea020(0x1e1)])[_0x3ea020(0x1e9)](([_0x3fb418,_0x391b65])=>{const _0x27f6b6=_0x3ea020;0x0==_0x3fb418[_0x27f6b6(0x1ab)]('__')&&(_0x28b344[_0x3fb418]=_0x391b65[_0x27f6b6(0x1cf)]);}),_0x28b344;}get['currentData'](){const _0x105f25=a0_0x503c2b;return this[_0x105f25(0x1ac)](this['record']);}['removeGarbageData'](_0x2a97b7){const _0x142e06=a0_0x503c2b;let _0x2c9f4d={};if(_0x2a97b7)return Object[_0x142e06(0x1a1)](_0x2a97b7)['map'](([_0x2bff53,_0x33f113])=>{const _0x4e63dd=_0x142e06;0x0==_0x2bff53[_0x4e63dd(0x1ab)]('__')&&(_0x2c9f4d[_0x2bff53]=_0x33f113);}),_0x2c9f4d;}get[a0_0x503c2b(0x1ad)](){const _0x3aa4b4=a0_0x503c2b;let _0x4af961=this[_0x3aa4b4(0x19f)],_0x19e38c=this[_0x3aa4b4(0x1c0)];return ValueUtil['isEmpty'](_0x4af961)?[]:(ValueUtil[_0x3aa4b4(0x19c)](_0x19e38c['id'])?(_0x4af961['id']=_0x19e38c['id'],_0x4af961['cuFlag']='M'):_0x4af961[_0x3aa4b4(0x1ee)]='+',Object[_0x3aa4b4(0x1d8)](_0x4af961)[_0x3aa4b4(0x1eb)](_0x3663b0=>{'object'==typeof _0x4af961[_0x3663b0]&&(_0x4af961[_0x3663b0]={'id':_0x4af961[_0x3663b0]['id']});}),[_0x4af961]);}async[a0_0x503c2b(0x1e6)](){const _0x291e8a=a0_0x503c2b;if(ValueUtil[_0x291e8a(0x1d0)](this['parent_id']))return;let _0x6a9acd=await this['findOne'](this[_0x291e8a(0x1f1)]);_0x6a9acd['__seq__']=0x1;let _0x13a27f={};Object[_0x291e8a(0x1dd)](_0x13a27f,_0x6a9acd),_0x6a9acd[_0x291e8a(0x19d)]=_0x13a27f,this[_0x291e8a(0x1c0)]={..._0x6a9acd};}async['save'](){const _0x1ae6b5=a0_0x503c2b;let _0x187ca5=this[_0x1ae6b5(0x1ad)];if(ValueUtil[_0x1ae6b5(0x1d0)](_0x187ca5))return void MetaApi[_0x1ae6b5(0x1d1)](_0x1ae6b5(0x1a0),_0x1ae6b5(0x1bb));let _0x320d3d=await this[_0x1ae6b5(0x1a7)](_0x187ca5);return _0x320d3d&&await this[_0x1ae6b5(0x1e6)](),_0x320d3d;}async[a0_0x503c2b(0x19e)](){const _0x165451=a0_0x503c2b;this[_0x165451(0x1c0)]&&(this[_0x165451(0x1c0)]={});}[a0_0x503c2b(0x1a8)](){const _0x1f1eff=a0_0x503c2b;return this[_0x1f1eff(0x1b1)]||{};}};
@@ -1 +1 @@
1
- const a0_0x4b10e5=a0_0x4d5c;(function(_0x5e5f51,_0x285e88){const _0x4e9d36=a0_0x4d5c,_0x26b0e3=_0x5e5f51();while(!![]){try{const _0x130baa=parseInt(_0x4e9d36(0xe8))/0x1*(parseInt(_0x4e9d36(0xee))/0x2)+parseInt(_0x4e9d36(0xc1))/0x3+-parseInt(_0x4e9d36(0xd1))/0x4*(-parseInt(_0x4e9d36(0xcb))/0x5)+parseInt(_0x4e9d36(0xbc))/0x6+-parseInt(_0x4e9d36(0xf9))/0x7+parseInt(_0x4e9d36(0xe5))/0x8+-parseInt(_0x4e9d36(0xc2))/0x9;if(_0x130baa===_0x285e88)break;else _0x26b0e3['push'](_0x26b0e3['shift']());}catch(_0x2ee3a1){_0x26b0e3['push'](_0x26b0e3['shift']());}}}(a0_0x2542,0x22276));import{html}from'lit';function a0_0x2542(){const _0x2c65dc=['gridConfig','delete','searchConfig','querySelector','gristConfigSet','findOne','701532dqvxfn','searchFieldValues','activityDataSet','getData','parse','536580tipShF','3660489cQtElP','isNotEmpty','record','push','getBasicGristTabStyles','menuInfo','clear','getAndParseMenuMeta','firstUpdated','475TISzGV','main','columns','value','context','getParams','4060MmqXcM','grid_column','options','ox-filters-form-base','searchFields','find','updateMultiple','parseGristConfigs','gridEmphasized','deleteByIds','___data','header','filter','title','meta-tab-element','grist','dataSet','renderRoot','save','getSelectedIdList','1600256GCDjLT','useFilterForm','search','229FCHxGa','tTitle','render','importable','startsWith','gridColumnConfig','1804eFhRQQ','gristId','pageInitialized','detailElement','filterFormId','filterForm','exportableData','parseBasicGridConfigs','isPage','stringify','isElement','1765274VMvmhq','name','parseGridConfigSet','getGristTabHtml','connectedCallback','#detail','actions','fetch','forEach','operator','beforeFetch','records','shadowRoot','patchesForUpdateMultiple'];a0_0x2542=function(){return _0x2c65dc;};return a0_0x2542();}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x4d5c(_0x1baa5f,_0x397f4f){const _0x25427b=a0_0x2542();return a0_0x4d5c=function(_0x4d5c80,_0x6614bd){_0x4d5c80=_0x4d5c80-0xb5;let _0x64e2fc=_0x25427b[_0x4d5c80];return _0x64e2fc;},a0_0x4d5c(_0x1baa5f,_0x397f4f);}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=_0x9d2799=>class extends MetaButtonMixin(_0x9d2799){static get['styles'](){const _0x570d64=a0_0x4d5c;return MetaApi[_0x570d64(0xc6)]();}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_0x4b10e5(0xe0)](){const _0x21e89b=a0_0x4b10e5;return this[_0x21e89b(0xe2)]['querySelector'](this[_0x21e89b(0xef)]);}get[a0_0x4b10e5(0xf3)](){const _0x1839d8=a0_0x4b10e5;return this[_0x1839d8(0x105)]?.[_0x1839d8(0xb9)](this[_0x1839d8(0xf2)]);}get[a0_0x4b10e5(0xf1)](){const _0x1e8214=a0_0x4b10e5;return this[_0x1e8214(0x105)]['querySelector'](_0x1e8214(0xfe));}get[a0_0x4b10e5(0xcf)](){const _0x2fad82=a0_0x4b10e5;let _0x2ce93d=MetaUiUtil['getContextObject'](this);return _0x2ce93d[_0x2fad82(0xff)]&&delete _0x2ce93d[_0x2fad82(0xff)],_0x2ce93d['exportable']&&delete _0x2ce93d['exportable'],_0x2ce93d[_0x2fad82(0xeb)]&&delete _0x2ce93d['importable'],_0x2ce93d;}async[a0_0x4b10e5(0xfd)](){const _0x32ea7=a0_0x4b10e5;this[_0x32ea7(0xef)]='ox-grist',this[_0x32ea7(0xf2)]=_0x32ea7(0xd4),await this[_0x32ea7(0xc9)](),this['isElement']&&await this[_0x32ea7(0xd8)](),this[_0x32ea7(0xbe)]&&(this[_0x32ea7(0xe1)]=(this[_0x32ea7(0xbe)]||{})[_0x32ea7(0xcc)]),super['connectedCallback']&&await super[_0x32ea7(0xfd)]();}async[a0_0x4b10e5(0xca)](){const _0x35defd=a0_0x4b10e5;super[_0x35defd(0xca)]&&await super[_0x35defd(0xca)]();}async[a0_0x4b10e5(0xf0)](){const _0x36116a=a0_0x4b10e5;this[_0x36116a(0xf6)]&&await this[_0x36116a(0xd8)](),super[_0x36116a(0xf0)]&&await super[_0x36116a(0xf0)]();}[a0_0x4b10e5(0xea)](){const _0x110868=a0_0x4b10e5;return MetaApi[_0x110868(0xfc)](this);}[a0_0x4b10e5(0xf5)](_0x104c21){const _0x23bfef=a0_0x4b10e5;this[_0x23bfef(0xb6)]=_0x104c21['grid'],this[_0x23bfef(0xed)]=_0x104c21[_0x23bfef(0xd2)],this[_0x23bfef(0xb8)]=_0x104c21['search'],this['gridEmphasized']=_0x104c21[_0x23bfef(0xd9)];}async[a0_0x4b10e5(0xd8)](){const _0x19d805=a0_0x4b10e5;this[_0x19d805(0xba)]=await MetaApi[_0x19d805(0xfb)](this),this['useMasterFilterForm']=!0x0===this[_0x19d805(0xe6)],this['useFilterForm']=!0x1,this[_0x19d805(0xbd)]=[],this[_0x19d805(0xd5)]=this['gristConfigSet'][_0x19d805(0xcd)]['filter'](_0x23fbe5=>_0x23fbe5[_0x19d805(0xdd)])['map'](_0x8e8352=>{const _0x9c13f0=_0x19d805;let _0x5fe3e2={'name':_0x8e8352[_0x9c13f0(0xfa)],'type':_0x9c13f0(0xe7)===_0x8e8352[_0x9c13f0(0xdd)]['operator']?_0x9c13f0(0xe7):_0x8e8352['type'],'label':_0x8e8352[_0x9c13f0(0xdc)],'operator':_0x8e8352[_0x9c13f0(0xdd)][_0x9c13f0(0x102)]?_0x8e8352[_0x9c13f0(0xdd)][_0x9c13f0(0x102)]:'eq'};return _0x8e8352[_0x9c13f0(0xdd)][_0x9c13f0(0xd3)]&&(_0x5fe3e2['options']=_0x8e8352['filter']['options']),_0x8e8352[_0x9c13f0(0xc4)]['options']&&(_0x5fe3e2['options']=_0x8e8352['record'][_0x9c13f0(0xd3)]),_0x8e8352[_0x9c13f0(0xdd)][_0x9c13f0(0xce)]&&this['searchFieldValues'][_0x9c13f0(0xc5)]({'name':_0x5fe3e2[_0x9c13f0(0xfa)],'operator':_0x5fe3e2[_0x9c13f0(0x102)],'value':_0x8e8352['filter'][_0x9c13f0(0xce)]}),delete _0x8e8352[_0x9c13f0(0xdd)],_0x5fe3e2;});}async[a0_0x4b10e5(0x100)](){await this['grist']['fetch']();}async[a0_0x4b10e5(0x103)]({page:_0x4382cf=0x0,limit:_0x3e23c4=0x0,sortings:_0x2378cb=[],filters:_0x2d865b=[]}){const _0x2b1e82=a0_0x4b10e5;let _0x1c8d4e=this[_0x2b1e82(0xe2)][_0x2b1e82(0xb9)](_0x2b1e82(0xdf));return await _0x1c8d4e[_0x2b1e82(0xc8)](),!0x0;}async[a0_0x4b10e5(0xe3)](){const _0x396942=a0_0x4b10e5;let _0x40a431=MetaApi[_0x396942(0xb5)](this[_0x396942(0xe0)]);!!ValueUtil[_0x396942(0xc3)](_0x40a431)&&await this[_0x396942(0xd7)](_0x40a431)&&this[_0x396942(0x100)]();}async[a0_0x4b10e5(0xd6)](){const _0x2d199c=a0_0x4b10e5;let _0x1acdbf=MetaApi[_0x2d199c(0xe4)](this[_0x2d199c(0xe0)],!0x0);return ValueUtil['isNotEmpty'](_0x1acdbf)?await this[_0x2d199c(0xbb)](_0x1acdbf[0x0]):{};}async[a0_0x4b10e5(0xb7)](){const _0x18dd03=a0_0x4b10e5;let _0x309db0=MetaApi[_0x18dd03(0xe4)](this[_0x18dd03(0xe0)],!0x0);!!ValueUtil['isNotEmpty'](_0x309db0)&&await this[_0x18dd03(0xda)](_0x309db0)&&this['fetch']();}async['export'](){const _0x121c5b=a0_0x4b10e5;let _0xcd3061=TermsUtil[_0x121c5b(0xe9)](ValueUtil[_0x121c5b(0xd0)](this[_0x121c5b(0xc7)],_0x121c5b(0xde)));return await MetaApi[_0x121c5b(0xf4)](this[_0x121c5b(0xf8)],_0xcd3061,this[_0x121c5b(0xe0)]);}async['import'](){}['getData'](){const _0x251540=a0_0x4b10e5;let _0x353bf8=this[_0x251540(0xe0)][_0x251540(0xdb)][_0x251540(0x104)];return _0x353bf8=JSON[_0x251540(0xc0)](JSON[_0x251540(0xf7)](_0x353bf8)),_0x353bf8[_0x251540(0x101)](_0x2a76ba=>{const _0x42afe9=_0x251540;Object['keys'](_0x2a76ba)[_0x42afe9(0x101)](_0x2ab531=>{const _0x3b0e85=_0x42afe9;_0x2ab531[_0x3b0e85(0xec)]('__')&&delete _0x2a76ba[_0x2ab531];});}),{'main':_0x353bf8,'detail':this['renderRoot'][_0x251540(0xb9)](_0x251540(0xdf))[_0x251540(0xbf)]()};}};
1
+ const a0_0x533a7d=a0_0x1251;(function(_0x6fc222,_0x1303eb){const _0x28aecb=a0_0x1251,_0x5c51e3=_0x6fc222();while(!![]){try{const _0x3a486a=-parseInt(_0x28aecb(0xe2))/0x1*(parseInt(_0x28aecb(0xcd))/0x2)+parseInt(_0x28aecb(0xc9))/0x3+parseInt(_0x28aecb(0xdc))/0x4+parseInt(_0x28aecb(0xbe))/0x5+-parseInt(_0x28aecb(0xad))/0x6*(-parseInt(_0x28aecb(0xc8))/0x7)+-parseInt(_0x28aecb(0x9a))/0x8+-parseInt(_0x28aecb(0xe0))/0x9;if(_0x3a486a===_0x1303eb)break;else _0x5c51e3['push'](_0x5c51e3['shift']());}catch(_0x463f96){_0x5c51e3['push'](_0x5c51e3['shift']());}}}(a0_0x3b4a,0x2ef6e));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x3b4a(){const _0x4da0b4=['tTitle','shadowRoot','clear','getContextObject','firstUpdated','filterForm','type','1637514pyPsdM','pageInitialized','gridConfig','connectedCallback','detailElement','columns','keys','gristConfigSet','main','meta-tab-element','deleteByIds','find','parseBasicGridConfigs','search','context','getParams','findOne','581045jigCeg','startsWith','isElement','gristId','beforeFetch','updateMultiple','renderRoot','grid','options','grist','7zebpnu','587679pYnbvu','getBasicGristTabStyles','exportableData','ox-grist','28XAUsWh','records','searchFieldValues','ox-filters-form-base','grid_column','map','header','fetch','importable','gridEmphasized','getSelectedIdList','dataSet','isPage','title','getAndParseMenuMeta','846496fqDftg','actions','parseGridConfigSet','operator','3898557KStgvU','isNotEmpty','5509KLlJsn','getGristTabHtml','save','filter','push','menuInfo','value','getData','properties','parse','751840mKegTt','querySelector','parseGristConfigs','render','forEach','useFilterForm','delete','filterFormId','import','#detail','useMasterFilterForm','name'];a0_0x3b4a=function(){return _0x4da0b4;};return a0_0x3b4a();}import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x1251(_0x248936,_0x4b4f0c){const _0x3b4adc=a0_0x3b4a();return a0_0x1251=function(_0x1251d5,_0xe3180e){_0x1251d5=_0x1251d5-0x97;let _0x510504=_0x3b4adc[_0x1251d5];return _0x510504;},a0_0x1251(_0x248936,_0x4b4f0c);}export const MetaGristTabMixin=_0xb53c5b=>class extends MetaButtonMixin(_0xb53c5b){static get['styles'](){const _0x3b93ad=a0_0x1251;return MetaApi[_0x3b93ad(0xca)]();}static get[a0_0x533a7d(0x98)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x533a7d(0xc7)](){const _0x108803=a0_0x533a7d;return this[_0x108803(0xc4)][_0x108803(0x9b)](this[_0x108803(0xc1)]);}get[a0_0x533a7d(0xab)](){const _0x5f559d=a0_0x533a7d;return this[_0x5f559d(0xa7)]?.[_0x5f559d(0x9b)](this[_0x5f559d(0xa1)]);}get[a0_0x533a7d(0xb1)](){const _0x4e86b3=a0_0x533a7d;return this[_0x4e86b3(0xa7)]['querySelector'](_0x4e86b3(0xa3));}get[a0_0x533a7d(0xbb)](){const _0x593dc2=a0_0x533a7d;let _0x55f635=MetaUiUtil[_0x593dc2(0xa9)](this);return _0x55f635[_0x593dc2(0xdd)]&&delete _0x55f635[_0x593dc2(0xdd)],_0x55f635['exportable']&&delete _0x55f635['exportable'],_0x55f635[_0x593dc2(0xd5)]&&delete _0x55f635[_0x593dc2(0xd5)],_0x55f635;}async[a0_0x533a7d(0xb0)](){const _0x2e2b67=a0_0x533a7d;this[_0x2e2b67(0xc1)]=_0x2e2b67(0xcc),this['filterFormId']=_0x2e2b67(0xd0),await this[_0x2e2b67(0xdb)](),this[_0x2e2b67(0xc0)]&&await this[_0x2e2b67(0x9c)](),this['activityDataSet']&&(this[_0x2e2b67(0xd8)]=(this['activityDataSet']||{})[_0x2e2b67(0xb5)]),super[_0x2e2b67(0xb0)]&&await super['connectedCallback']();}async[a0_0x533a7d(0xaa)](){const _0x250d55=a0_0x533a7d;super[_0x250d55(0xaa)]&&await super[_0x250d55(0xaa)]();}async[a0_0x533a7d(0xae)](){const _0x175f7a=a0_0x533a7d;this[_0x175f7a(0xd9)]&&await this[_0x175f7a(0x9c)](),super[_0x175f7a(0xae)]&&await super[_0x175f7a(0xae)]();}[a0_0x533a7d(0x9d)](){const _0x46ad96=a0_0x533a7d;return MetaApi[_0x46ad96(0xe3)](this);}[a0_0x533a7d(0xb9)](_0x383f2d){const _0x359b9a=a0_0x533a7d;this[_0x359b9a(0xaf)]=_0x383f2d[_0x359b9a(0xc5)],this['gridColumnConfig']=_0x383f2d[_0x359b9a(0xd1)],this['searchConfig']=_0x383f2d[_0x359b9a(0xba)],this[_0x359b9a(0xd6)]=_0x383f2d[_0x359b9a(0xd6)];}async[a0_0x533a7d(0x9c)](){const _0x4c5cd8=a0_0x533a7d;this[_0x4c5cd8(0xb4)]=await MetaApi[_0x4c5cd8(0xde)](this),this[_0x4c5cd8(0xa4)]=!0x0===this[_0x4c5cd8(0x9f)],this[_0x4c5cd8(0x9f)]=!0x1,this[_0x4c5cd8(0xcf)]=[],this['searchFields']=this['gristConfigSet'][_0x4c5cd8(0xb2)][_0x4c5cd8(0xe5)](_0x3f07a5=>_0x3f07a5['filter'])[_0x4c5cd8(0xd2)](_0x1c4c8c=>{const _0x2d4886=_0x4c5cd8;let _0x228e81={'name':_0x1c4c8c['name'],'type':_0x2d4886(0xba)===_0x1c4c8c[_0x2d4886(0xe5)]['operator']?_0x2d4886(0xba):_0x1c4c8c[_0x2d4886(0xac)],'label':_0x1c4c8c[_0x2d4886(0xd3)],'operator':_0x1c4c8c['filter'][_0x2d4886(0xdf)]?_0x1c4c8c[_0x2d4886(0xe5)][_0x2d4886(0xdf)]:'eq'};return _0x1c4c8c[_0x2d4886(0xe5)][_0x2d4886(0xc6)]&&(_0x228e81[_0x2d4886(0xc6)]=_0x1c4c8c[_0x2d4886(0xe5)][_0x2d4886(0xc6)]),_0x1c4c8c['record'][_0x2d4886(0xc6)]&&(_0x228e81[_0x2d4886(0xc6)]=_0x1c4c8c['record'][_0x2d4886(0xc6)]),_0x1c4c8c[_0x2d4886(0xe5)][_0x2d4886(0xe8)]&&this[_0x2d4886(0xcf)][_0x2d4886(0xe6)]({'name':_0x228e81[_0x2d4886(0xa5)],'operator':_0x228e81['operator'],'value':_0x1c4c8c[_0x2d4886(0xe5)][_0x2d4886(0xe8)]}),delete _0x1c4c8c[_0x2d4886(0xe5)],_0x228e81;});}async[a0_0x533a7d(0xd4)](){const _0x148489=a0_0x533a7d;await this[_0x148489(0xc7)][_0x148489(0xd4)]();}async[a0_0x533a7d(0xc2)]({page:_0x5ad7fe=0x0,limit:_0x688615=0x0,sortings:_0x2a6ac2=[],filters:_0x41f9a3=[]}){const _0x171659=a0_0x533a7d;let _0x224db5=this[_0x171659(0xc4)]['querySelector'](_0x171659(0xb6));return await _0x224db5[_0x171659(0xa8)](),!0x0;}async[a0_0x533a7d(0xe4)](){const _0x3eecdc=a0_0x533a7d;let _0x234234=MetaApi['patchesForUpdateMultiple'](this[_0x3eecdc(0xc7)]);!!ValueUtil[_0x3eecdc(0xe1)](_0x234234)&&await this[_0x3eecdc(0xc3)](_0x234234)&&this[_0x3eecdc(0xd4)]();}async[a0_0x533a7d(0xb8)](){const _0x5e994c=a0_0x533a7d;let _0x15bf70=MetaApi[_0x5e994c(0xd7)](this['grist'],!0x0);return ValueUtil[_0x5e994c(0xe1)](_0x15bf70)?await this[_0x5e994c(0xbd)](_0x15bf70[0x0]):{};}async[a0_0x533a7d(0xa0)](){const _0x3ce3ca=a0_0x533a7d;let _0x2ad351=MetaApi['getSelectedIdList'](this[_0x3ce3ca(0xc7)],!0x0);!!ValueUtil['isNotEmpty'](_0x2ad351)&&await this[_0x3ce3ca(0xb7)](_0x2ad351)&&this[_0x3ce3ca(0xd4)]();}async['export'](){const _0x44c1f8=a0_0x533a7d;let _0x4e12a2=TermsUtil[_0x44c1f8(0xa6)](ValueUtil[_0x44c1f8(0xbc)](this[_0x44c1f8(0xe7)],_0x44c1f8(0xda)));return await MetaApi[_0x44c1f8(0xcb)](this['isElement'],_0x4e12a2,this[_0x44c1f8(0xc7)]);}async[a0_0x533a7d(0xa2)](){}[a0_0x533a7d(0x97)](){const _0x328016=a0_0x533a7d;let _0x25b391=this[_0x328016(0xc7)]['___data'][_0x328016(0xce)];return _0x25b391=JSON[_0x328016(0x99)](JSON['stringify'](_0x25b391)),_0x25b391['forEach'](_0x20e198=>{const _0x532059=_0x328016;Object[_0x532059(0xb3)](_0x20e198)[_0x532059(0x9e)](_0x58857f=>{const _0x310931=_0x532059;_0x58857f[_0x310931(0xbf)]('__')&&delete _0x20e198[_0x58857f];});}),{'main':_0x25b391,'detail':this[_0x328016(0xc4)][_0x328016(0x9b)](_0x328016(0xb6))[_0x328016(0x97)]()};}};
@@ -1 +1 @@
1
- function a0_0x38d6(_0x307dd0,_0x1cd7e7){const _0x27cde9=a0_0x27cd();return a0_0x38d6=function(_0x38d6f7,_0x4b4d3c){_0x38d6f7=_0x38d6f7-0x1b8;let _0x126f29=_0x27cde9[_0x38d6f7];return _0x126f29;},a0_0x38d6(_0x307dd0,_0x1cd7e7);}const a0_0x4f7846=a0_0x38d6;(function(_0x488533,_0x308de8){const _0x42252b=a0_0x38d6,_0x3c5dfd=_0x488533();while(!![]){try{const _0x52362a=parseInt(_0x42252b(0x1e1))/0x1+parseInt(_0x42252b(0x1c9))/0x2*(parseInt(_0x42252b(0x1b9))/0x3)+parseInt(_0x42252b(0x1e2))/0x4*(-parseInt(_0x42252b(0x1eb))/0x5)+parseInt(_0x42252b(0x1f0))/0x6*(parseInt(_0x42252b(0x1c0))/0x7)+parseInt(_0x42252b(0x1cd))/0x8*(-parseInt(_0x42252b(0x1dc))/0x9)+parseInt(_0x42252b(0x1e4))/0xa*(parseInt(_0x42252b(0x1ed))/0xb)+parseInt(_0x42252b(0x1be))/0xc*(parseInt(_0x42252b(0x1d8))/0xd);if(_0x52362a===_0x308de8)break;else _0x3c5dfd['push'](_0x3c5dfd['shift']());}catch(_0xac6ef3){_0x3c5dfd['push'](_0x3c5dfd['shift']());}}}(a0_0x27cd,0x54948));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x42332e=>class extends MetaButtonMixin(_0x42332e){static get[a0_0x4f7846(0x1da)](){const _0x66988e=a0_0x4f7846;return MetaApi[_0x66988e(0x1c3)]();}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_0x4f7846(0x1e3)](){const _0x58f1fd=a0_0x4f7846;return this['masterElement'][_0x58f1fd(0x1e6)]();}get[a0_0x4f7846(0x1c4)](){const _0xcc9fa=a0_0x4f7846;return this[_0xcc9fa(0x1e7)]?.['querySelector'](this[_0xcc9fa(0x1f3)]);}get[a0_0x4f7846(0x1cb)](){const _0x11a50c=a0_0x4f7846;let _0x207ab7=MetaUiUtil[_0x11a50c(0x1d4)](this);return _0x207ab7[_0x11a50c(0x1ca)]&&delete _0x207ab7[_0x11a50c(0x1ca)],_0x207ab7[_0x11a50c(0x1d2)]&&delete _0x207ab7[_0x11a50c(0x1d2)],_0x207ab7[_0x11a50c(0x1cc)]&&delete _0x207ab7[_0x11a50c(0x1cc)],_0x207ab7;}async[a0_0x4f7846(0x1ea)](){const _0x2961b7=a0_0x4f7846;this[_0x2961b7(0x1c5)]='ox-grist',this[_0x2961b7(0x1f3)]=_0x2961b7(0x1bb),await this[_0x2961b7(0x1e0)](),this[_0x2961b7(0x1de)]&&await this[_0x2961b7(0x1df)](),this['activityDataSet']&&(this[_0x2961b7(0x1d0)]=(this[_0x2961b7(0x1b8)]||{})['main']),super[_0x2961b7(0x1ea)]&&await super['connectedCallback']();}async['firstUpdated'](){const _0x41d565=a0_0x4f7846;super[_0x41d565(0x1db)]&&await super['firstUpdated']();}async[a0_0x4f7846(0x1c6)](){const _0x472111=a0_0x4f7846;this[_0x472111(0x1e5)]&&await this[_0x472111(0x1df)](),super[_0x472111(0x1c6)]&&await super[_0x472111(0x1c6)]();}[a0_0x4f7846(0x1ba)](){const _0x31dd02=a0_0x4f7846;return MetaApi[_0x31dd02(0x1f1)](this);}['parseBasicGridConfigs'](_0x517f68){const _0x44c9ce=a0_0x4f7846;this[_0x44c9ce(0x1bf)]=_0x517f68['grid'],this['gridColumnConfig']=_0x517f68[_0x44c9ce(0x1bc)],this['searchConfig']=_0x517f68['search'],this[_0x44c9ce(0x1c7)]=_0x517f68['gridEmphasized'];}async[a0_0x4f7846(0x1df)](){const _0x29b37b=a0_0x4f7846;this[_0x29b37b(0x1d9)]=await MetaApi[_0x29b37b(0x1bd)](this),this['useMasterFilterForm']=!0x0===this[_0x29b37b(0x1c2)],this[_0x29b37b(0x1c2)]=!0x1,this[_0x29b37b(0x1e8)]=void 0x0,this[_0x29b37b(0x1f2)]=!0x1,this['useButtonImport']=!0x1,this[_0x29b37b(0x1dd)]=[],this['searchFields']=this[_0x29b37b(0x1d9)]['columns'][_0x29b37b(0x1d6)](_0x460595=>_0x460595['filter'])[_0x29b37b(0x1ec)](_0x5a7530=>{const _0x276c62=_0x29b37b;let _0x277ef1={'name':_0x5a7530['name'],'type':_0x276c62(0x1ce)===_0x5a7530[_0x276c62(0x1d6)]['operator']?_0x276c62(0x1ce):_0x5a7530[_0x276c62(0x1ef)],'label':_0x5a7530[_0x276c62(0x1c1)],'operator':_0x5a7530[_0x276c62(0x1d6)][_0x276c62(0x1e9)]?_0x5a7530[_0x276c62(0x1d6)][_0x276c62(0x1e9)]:'eq'};return _0x5a7530[_0x276c62(0x1d6)][_0x276c62(0x1cf)]&&(_0x277ef1[_0x276c62(0x1cf)]=_0x5a7530[_0x276c62(0x1d6)]['options']),_0x5a7530['record']['options']&&(_0x277ef1['options']=_0x5a7530['record'][_0x276c62(0x1cf)]),_0x5a7530[_0x276c62(0x1d6)][_0x276c62(0x1d3)]&&this[_0x276c62(0x1dd)][_0x276c62(0x1c8)]({'name':_0x277ef1['name'],'operator':_0x277ef1[_0x276c62(0x1e9)],'value':_0x5a7530[_0x276c62(0x1d6)]['value']}),delete _0x5a7530['filter'],_0x277ef1;});}async[a0_0x4f7846(0x1d7)](){const _0x2de043=a0_0x4f7846;await this[_0x2de043(0x1e3)][_0x2de043(0x1d7)]();}async[a0_0x4f7846(0x1d1)]({page:_0x4a26cb=0x0,limit:_0x394a72=0x0,sortings:_0x415cd4=[],filters:_0x2a6e07=[]}){const _0x22ee08=a0_0x4f7846;return this[_0x22ee08(0x1d5)]&&this[_0x22ee08(0x1d5)]['clear']&&await this[_0x22ee08(0x1d5)]['clear'](),!0x0;}[a0_0x4f7846(0x1ee)](){const _0x58c65e=a0_0x4f7846;return{'master':this['masterElement'][_0x58c65e(0x1ee)]()};}};function a0_0x27cd(){const _0x35ed3e=['getMainTabHtml','useButtonExport','filterFormId','activityDataSet','18807tgLuRW','render','ox-filters-form-base','grid_column','parseGridConfigSet','12KGcrDa','gridConfig','7ekhiAo','header','useFilterForm','getBasicMainTabStyles','filterForm','gristId','pageInitialized','gridEmphasized','push','92qoxoNC','actions','context','importable','8jHLBEd','search','options','dataSet','beforeFetch','exportable','value','getContextObject','masterElement','filter','fetch','168493GcZWPO','gristConfigSet','styles','firstUpdated','4629078lAESpf','searchFieldValues','isElement','parseGristConfigs','getAndParseMenuMeta','528878WlsNFI','2359096mHCzhQ','grist','48260hSeSDI','isPage','getMainGrist','shadowRoot','buttonConfig','operator','connectedCallback','5AZFiQX','map','121dkLEbz','getData','type','3403542FxTZQs'];a0_0x27cd=function(){return _0x35ed3e;};return a0_0x27cd();}
1
+ const a0_0xa227ae=a0_0x41f8;(function(_0x13a40a,_0x9cc1d5){const _0x5f3944=a0_0x41f8,_0x56c332=_0x13a40a();while(!![]){try{const _0x5bea01=-parseInt(_0x5f3944(0xfe))/0x1*(parseInt(_0x5f3944(0x101))/0x2)+-parseInt(_0x5f3944(0x109))/0x3+-parseInt(_0x5f3944(0x110))/0x4+-parseInt(_0x5f3944(0xf7))/0x5+parseInt(_0x5f3944(0xee))/0x6+parseInt(_0x5f3944(0xe3))/0x7+parseInt(_0x5f3944(0x108))/0x8*(parseInt(_0x5f3944(0xf5))/0x9);if(_0x5bea01===_0x9cc1d5)break;else _0x56c332['push'](_0x56c332['shift']());}catch(_0x434261){_0x56c332['push'](_0x56c332['shift']());}}}(a0_0x135d,0x86f7b));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x41f8(_0x2860d3,_0x3d56bc){const _0x135de7=a0_0x135d();return a0_0x41f8=function(_0x41f89b,_0x192cdf){_0x41f89b=_0x41f89b-0xd7;let _0x20a9e1=_0x135de7[_0x41f89b];return _0x20a9e1;},a0_0x41f8(_0x2860d3,_0x3d56bc);}import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x425e61=>class extends MetaButtonMixin(_0x425e61){static get[a0_0xa227ae(0xf1)](){const _0x1a0c47=a0_0xa227ae;return MetaApi[_0x1a0c47(0xf9)]();}static get[a0_0xa227ae(0x10b)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0xa227ae(0x111)](){const _0x353e61=a0_0xa227ae;return this[_0x353e61(0xfc)][_0x353e61(0xe2)]();}get[a0_0xa227ae(0xeb)](){const _0x3663d5=a0_0xa227ae;return this['shadowRoot']?.[_0x3663d5(0xdd)](this['filterFormId']);}get[a0_0xa227ae(0xdf)](){const _0x168106=a0_0xa227ae;let _0xb4032=MetaUiUtil['getContextObject'](this);return _0xb4032['actions']&&delete _0xb4032[_0x168106(0xf3)],_0xb4032[_0x168106(0xe0)]&&delete _0xb4032[_0x168106(0xe0)],_0xb4032[_0x168106(0x102)]&&delete _0xb4032[_0x168106(0x102)],_0xb4032;}async[a0_0xa227ae(0xe9)](){const _0x1ffa08=a0_0xa227ae;this['gristId']=_0x1ffa08(0x105),this['filterFormId']=_0x1ffa08(0xe6),await this[_0x1ffa08(0x10a)](),this[_0x1ffa08(0xfb)]&&await this[_0x1ffa08(0x112)](),this['activityDataSet']&&(this['dataSet']=(this[_0x1ffa08(0x103)]||{})['main']),super[_0x1ffa08(0xe9)]&&await super[_0x1ffa08(0xe9)]();}async['firstUpdated'](){const _0x305677=a0_0xa227ae;super[_0x305677(0xff)]&&await super[_0x305677(0xff)]();}async[a0_0xa227ae(0x10c)](){const _0x46e1fc=a0_0xa227ae;this[_0x46e1fc(0x10d)]&&await this['parseGristConfigs'](),super[_0x46e1fc(0x10c)]&&await super[_0x46e1fc(0x10c)]();}['render'](){const _0x26c6e0=a0_0xa227ae;return MetaApi[_0x26c6e0(0xf0)](this);}[a0_0xa227ae(0xe7)](_0xbaa7){const _0x9e0b8b=a0_0xa227ae;this[_0x9e0b8b(0xf8)]=_0xbaa7[_0x9e0b8b(0xd9)],this['gridColumnConfig']=_0xbaa7[_0x9e0b8b(0x107)],this['searchConfig']=_0xbaa7['search'],this[_0x9e0b8b(0xec)]=_0xbaa7[_0x9e0b8b(0xec)];}async['parseGristConfigs'](){const _0x113501=a0_0xa227ae;this[_0x113501(0x113)]=await MetaApi[_0x113501(0xf4)](this),this[_0x113501(0xda)]=!0x0===this[_0x113501(0xef)],this[_0x113501(0xef)]=!0x1,this[_0x113501(0x10e)]=void 0x0,this['useButtonExport']=!0x1,this[_0x113501(0xea)]=!0x1,this[_0x113501(0x100)]=[],this[_0x113501(0xde)]=this[_0x113501(0x113)][_0x113501(0xd7)][_0x113501(0xfd)](_0xf18928=>_0xf18928[_0x113501(0xfd)])[_0x113501(0xdc)](_0x386b50=>{const _0x3acae2=_0x113501;let _0x44b82a={'name':_0x386b50['name'],'type':_0x3acae2(0xdb)===_0x386b50['filter'][_0x3acae2(0xe1)]?_0x3acae2(0xdb):_0x386b50[_0x3acae2(0xe5)],'label':_0x386b50[_0x3acae2(0xd8)],'operator':_0x386b50[_0x3acae2(0xfd)][_0x3acae2(0xe1)]?_0x386b50[_0x3acae2(0xfd)][_0x3acae2(0xe1)]:'eq'};return _0x386b50[_0x3acae2(0xfd)][_0x3acae2(0xfa)]&&(_0x44b82a['options']=_0x386b50['filter'][_0x3acae2(0xfa)]),_0x386b50[_0x3acae2(0xe4)]['options']&&(_0x44b82a[_0x3acae2(0xfa)]=_0x386b50[_0x3acae2(0xe4)][_0x3acae2(0xfa)]),_0x386b50[_0x3acae2(0xfd)]['value']&&this[_0x3acae2(0x100)][_0x3acae2(0xe8)]({'name':_0x44b82a[_0x3acae2(0xed)],'operator':_0x44b82a[_0x3acae2(0xe1)],'value':_0x386b50['filter'][_0x3acae2(0x106)]}),delete _0x386b50[_0x3acae2(0xfd)],_0x44b82a;});}async[a0_0xa227ae(0xf2)](){const _0x5cb3e9=a0_0xa227ae;await this[_0x5cb3e9(0x111)][_0x5cb3e9(0xf2)]();}async[a0_0xa227ae(0xf6)]({page:_0x19af78=0x0,limit:_0xe445c2=0x0,sortings:_0x4a7733=[],filters:_0x1850f8=[]}){const _0x4e3703=a0_0xa227ae;return this[_0x4e3703(0xfc)]&&this[_0x4e3703(0xfc)]['clear']&&await this[_0x4e3703(0xfc)][_0x4e3703(0x10f)](),!0x0;}[a0_0xa227ae(0x104)](){const _0x4d4df7=a0_0xa227ae;return{'master':this['masterElement'][_0x4d4df7(0x104)]()};}};function a0_0x135d(){const _0x3b5bc1=['302DxgSFI','importable','activityDataSet','getData','ox-grist','value','grid_column','8ZfvqMb','1366347OHiRUD','getAndParseMenuMeta','properties','pageInitialized','isPage','buttonConfig','clear','2093788vpWDmk','grist','parseGristConfigs','gristConfigSet','columns','header','grid','useMasterFilterForm','search','map','querySelector','searchFields','context','exportable','operator','getMainGrist','3259186adgQKW','record','type','ox-filters-form-base','parseBasicGridConfigs','push','connectedCallback','useButtonImport','filterForm','gridEmphasized','name','412536dWHgkc','useFilterForm','getMainTabHtml','styles','fetch','actions','parseGridConfigSet','24474897SWZCzP','beforeFetch','5343435qLJhZc','gridConfig','getBasicMainTabStyles','options','isElement','masterElement','filter','4327PjABZP','firstUpdated','searchFieldValues'];a0_0x135d=function(){return _0x3b5bc1;};return a0_0x135d();}
@@ -1 +1 @@
1
- const a0_0x1d93d2=a0_0x3157;(function(_0x19d176,_0x1b08d6){const _0x79a937=a0_0x3157,_0x3f8b58=_0x19d176();while(!![]){try{const _0x18cf93=parseInt(_0x79a937(0x1c7))/0x1+-parseInt(_0x79a937(0x1bb))/0x2+parseInt(_0x79a937(0x1df))/0x3*(parseInt(_0x79a937(0x1fb))/0x4)+parseInt(_0x79a937(0x1dc))/0x5*(parseInt(_0x79a937(0x1e6))/0x6)+parseInt(_0x79a937(0x1db))/0x7+-parseInt(_0x79a937(0x208))/0x8*(-parseInt(_0x79a937(0x207))/0x9)+-parseInt(_0x79a937(0x1f0))/0xa;if(_0x18cf93===_0x1b08d6)break;else _0x3f8b58['push'](_0x3f8b58['shift']());}catch(_0x1868ea){_0x3f8b58['push'](_0x3f8b58['shift']());}}}(a0_0x3162,0xac0a4));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x3157(_0x263a1c,_0x54876a){const _0x3162ad=a0_0x3162();return a0_0x3157=function(_0x31578c,_0x29740e){_0x31578c=_0x31578c-0x1bb;let _0x4d3f1c=_0x3162ad[_0x31578c];return _0x4d3f1c;},a0_0x3157(_0x263a1c,_0x54876a);}import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x3162(){const _0x4ee49d=['getParams','value','delete','11586580mDBUsr','gristConfigSet','stringify','header','parseGridConfigSet','operator','shadowRoot','record','forEach','gridColumnConfig','parseGristConfigs','716MOPyBC','title','renderRoot','actions','exportable','searchFields','firstUpdated','querySelector','useFilterForm','grid','filter','render','83178TrzjGz','536teNwDn','1441732bBxidh','type','parseBasicGridConfigs','ox-grist','pageInitialized','gridEmphasized','searchFieldValues','save','getSelectedIdList','parse','isPage','menuInfo','140027oXiARF','styles','searchConfig','keys','getData','filterForm','isNotEmpty','filterFormId','dataSet','records','gridConfig','fetch','context','connectedCallback','importable','search','getAndParseMenuMeta','activityDataSet','exportableData','___data','72835FKKyWr','1945TMKVCG','getContextObject','beforeFetch','11733Dwitcs','push','detailElement','gristId','clear','isElement','updateMultiple','17190YlQzdB','find','options','tTitle','name','grist','patchesForUpdateMultiple'];a0_0x3162=function(){return _0x4ee49d;};return a0_0x3162();}export const MetaMasterDetailMixin=_0x308262=>class extends MetaButtonMixin(_0x308262){static get[a0_0x1d93d2(0x1c8)](){return MetaApi['getBasicMasterDetailStyles']();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String,'detailElement':Object};}get[a0_0x1d93d2(0x1eb)](){const _0x510678=a0_0x1d93d2;return this[_0x510678(0x1fd)]['querySelector'](this['gristId']);}get[a0_0x1d93d2(0x1cc)](){const _0x379055=a0_0x1d93d2;return this[_0x379055(0x1f6)]?.[_0x379055(0x202)](this[_0x379055(0x1ce)]);}get[a0_0x1d93d2(0x1d3)](){const _0xe70aee=a0_0x1d93d2;let _0x4ff89a=MetaUiUtil[_0xe70aee(0x1dd)](this);return _0x4ff89a[_0xe70aee(0x1fe)]&&delete _0x4ff89a[_0xe70aee(0x1fe)],_0x4ff89a[_0xe70aee(0x1ff)]&&delete _0x4ff89a[_0xe70aee(0x1ff)],_0x4ff89a['importable']&&delete _0x4ff89a[_0xe70aee(0x1d5)],_0x4ff89a;}async[a0_0x1d93d2(0x1d4)](){const _0x5a07a9=a0_0x1d93d2;this[_0x5a07a9(0x1e2)]=_0x5a07a9(0x1be),this['filterFormId']='ox-filters-form-base',await this[_0x5a07a9(0x1d7)](),this[_0x5a07a9(0x1e4)]&&await this[_0x5a07a9(0x1fa)](),this['activityDataSet']&&(this[_0x5a07a9(0x1cf)]=(this[_0x5a07a9(0x1d8)]||{})['main']),super['connectedCallback']&&await super['connectedCallback']();}async['firstUpdated'](){const _0xddae1f=a0_0x1d93d2;super[_0xddae1f(0x201)]&&await super[_0xddae1f(0x201)]();}async['pageInitialized'](){const _0x871302=a0_0x1d93d2;this[_0x871302(0x1c5)]&&await this[_0x871302(0x1fa)](),super[_0x871302(0x1bf)]&&await super['pageInitialized']();}[a0_0x1d93d2(0x206)](){return MetaApi['getMasterDetailHtml'](this);}[a0_0x1d93d2(0x1bd)](_0x2ac597){const _0x5820dc=a0_0x1d93d2;this[_0x5820dc(0x1d1)]=_0x2ac597[_0x5820dc(0x204)],this[_0x5820dc(0x1f9)]=_0x2ac597['grid_column'],this[_0x5820dc(0x1c9)]=_0x2ac597[_0x5820dc(0x1d6)],this['gridEmphasized']=_0x2ac597[_0x5820dc(0x1c0)];}async['parseGristConfigs'](){const _0x5e9f3e=a0_0x1d93d2;this[_0x5e9f3e(0x1f1)]=await MetaApi[_0x5e9f3e(0x1f4)](this),this['useMasterFilterForm']=!0x0===this[_0x5e9f3e(0x203)],this[_0x5e9f3e(0x203)]=!0x1,this[_0x5e9f3e(0x1c1)]=[],this[_0x5e9f3e(0x200)]=this[_0x5e9f3e(0x1f1)]['columns'][_0x5e9f3e(0x205)](_0x28b17d=>_0x28b17d[_0x5e9f3e(0x205)])['map'](_0x16fa83=>{const _0x37f891=_0x5e9f3e;let _0x5cbc6d={'name':_0x16fa83[_0x37f891(0x1ea)],'type':'search'===_0x16fa83[_0x37f891(0x205)][_0x37f891(0x1f5)]?_0x37f891(0x1d6):_0x16fa83[_0x37f891(0x1bc)],'label':_0x16fa83[_0x37f891(0x1f3)],'operator':_0x16fa83[_0x37f891(0x205)]['operator']?_0x16fa83[_0x37f891(0x205)][_0x37f891(0x1f5)]:'eq'};return _0x16fa83['filter'][_0x37f891(0x1e8)]&&(_0x5cbc6d[_0x37f891(0x1e8)]=_0x16fa83[_0x37f891(0x205)][_0x37f891(0x1e8)]),_0x16fa83['record'][_0x37f891(0x1e8)]&&(_0x5cbc6d[_0x37f891(0x1e8)]=_0x16fa83[_0x37f891(0x1f7)]['options']),_0x16fa83[_0x37f891(0x205)][_0x37f891(0x1ee)]&&this[_0x37f891(0x1c1)][_0x37f891(0x1e0)]({'name':_0x5cbc6d['name'],'operator':_0x5cbc6d[_0x37f891(0x1f5)],'value':_0x16fa83[_0x37f891(0x205)][_0x37f891(0x1ee)]}),delete _0x16fa83['filter'],_0x5cbc6d;});}async['fetch'](){const _0x30ff53=a0_0x1d93d2;await this[_0x30ff53(0x1eb)]['fetch']();}async[a0_0x1d93d2(0x1de)]({page:_0x489751=0x0,limit:_0x3b16b2=0x0,sortings:_0x3c2db9=[],filters:_0x48c986=[]}){const _0xd68655=a0_0x1d93d2;return this[_0xd68655(0x1e1)]&&this[_0xd68655(0x1e1)][_0xd68655(0x1e3)]&&await this[_0xd68655(0x1e1)][_0xd68655(0x1e3)](),!0x0;}async[a0_0x1d93d2(0x1c2)](){const _0x13a190=a0_0x1d93d2;let _0x500d7a=MetaApi[_0x13a190(0x1ec)](this[_0x13a190(0x1eb)]);!!ValueUtil[_0x13a190(0x1cd)](_0x500d7a)&&await this[_0x13a190(0x1e5)](_0x500d7a)&&this[_0x13a190(0x1d2)]();}async[a0_0x1d93d2(0x1e7)](){const _0x345476=a0_0x1d93d2;let _0x247a4f=MetaApi[_0x345476(0x1c3)](this[_0x345476(0x1eb)],!0x0);return ValueUtil[_0x345476(0x1cd)](_0x247a4f)?await this['findOne'](_0x247a4f[0x0]):{};}async[a0_0x1d93d2(0x1ef)](){const _0x4a0eb6=a0_0x1d93d2;let _0x1d9cd1=MetaApi[_0x4a0eb6(0x1c3)](this['grist'],!0x0);!!ValueUtil[_0x4a0eb6(0x1cd)](_0x1d9cd1)&&await this['deleteByIds'](_0x1d9cd1)&&this[_0x4a0eb6(0x1d2)]();}async['export'](){const _0x18809d=a0_0x1d93d2;let _0x30deda=TermsUtil[_0x18809d(0x1e9)](ValueUtil[_0x18809d(0x1ed)](this[_0x18809d(0x1c6)],_0x18809d(0x1fc)));return await MetaApi[_0x18809d(0x1d9)](this[_0x18809d(0x1e4)],_0x30deda,this[_0x18809d(0x1eb)]);}async['import'](){}[a0_0x1d93d2(0x1cb)](){const _0x438909=a0_0x1d93d2;let _0x4be7de=this[_0x438909(0x1eb)][_0x438909(0x1da)][_0x438909(0x1d0)];return _0x4be7de=JSON[_0x438909(0x1c4)](JSON[_0x438909(0x1f2)](_0x4be7de)),_0x4be7de[_0x438909(0x1f8)](_0x53bcdf=>{const _0x170560=_0x438909;Object[_0x170560(0x1ca)](_0x53bcdf)[_0x170560(0x1f8)](_0x54317f=>{_0x54317f['startsWith']('__')&&delete _0x53bcdf[_0x54317f];});}),{'main':_0x4be7de,'detail':this[_0x438909(0x1e1)][_0x438909(0x1cb)]()};}};
1
+ const a0_0x2d1ab0=a0_0x27ce;(function(_0x469acb,_0x4201f4){const _0x1d40c4=a0_0x27ce,_0x2f60d3=_0x469acb();while(!![]){try{const _0x176da8=parseInt(_0x1d40c4(0x123))/0x1+-parseInt(_0x1d40c4(0xe9))/0x2+-parseInt(_0x1d40c4(0xf8))/0x3*(-parseInt(_0x1d40c4(0xf7))/0x4)+parseInt(_0x1d40c4(0x10a))/0x5*(-parseInt(_0x1d40c4(0x11d))/0x6)+-parseInt(_0x1d40c4(0x121))/0x7*(-parseInt(_0x1d40c4(0x102))/0x8)+-parseInt(_0x1d40c4(0xf9))/0x9*(-parseInt(_0x1d40c4(0x139))/0xa)+-parseInt(_0x1d40c4(0xe7))/0xb;if(_0x176da8===_0x4201f4)break;else _0x2f60d3['push'](_0x2f60d3['shift']());}catch(_0x5adef2){_0x2f60d3['push'](_0x2f60d3['shift']());}}}(a0_0xa5a7,0xc134a));import{html}from'lit';function a0_0x27ce(_0x250f5b,_0x3a4336){const _0xa5a79f=a0_0xa5a7();return a0_0x27ce=function(_0x27ce3c,_0xa8093){_0x27ce3c=_0x27ce3c-0xe7;let _0x33bd10=_0xa5a79f[_0x27ce3c];return _0x33bd10;},a0_0x27ce(_0x250f5b,_0x3a4336);}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0xa5a7(){const _0x8b8522=['fetch','gristId','patchesForUpdateMultiple','firstUpdated','options','gridEmphasized','startsWith','ox-grist','dataSet','record','parseGridConfigSet','___data','282nsOKfD','useFilterForm','clear','renderRoot','7ubXQtR','parseBasicGridConfigs','498745HYRuBU','tTitle','parseGristConfigs','find','pageInitialized','searchFields','records','querySelector','getContextObject','importable','actions','filterForm','grist','value','forEach','getData','stringify','title','map','gridColumnConfig','menuInfo','grid','100pBsEnb','search','9960676xZgWgp','getAndParseMenuMeta','2230274kTLLWu','push','delete','getBasicMasterDetailStyles','operator','isElement','detailElement','getMasterDetailHtml','activityDataSet','keys','connectedCallback','import','render','save','224cjXBJC','25230mAhUHr','882873ZuXzdA','gridConfig','parse','searchFieldValues','exportable','type','filter','beforeFetch','isNotEmpty','7437112mpGuQU','getSelectedIdList','exportableData','searchConfig','name','context','updateMultiple','gristConfigSet','7265dXLHys','findOne','properties','columns','useMasterFilterForm','styles','shadowRoot'];a0_0xa5a7=function(){return _0x8b8522;};return a0_0xa5a7();}import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x5afe19=>class extends MetaButtonMixin(_0x5afe19){static get[a0_0x2d1ab0(0x10f)](){const _0x5f1fa4=a0_0x2d1ab0;return MetaApi[_0x5f1fa4(0xec)]();}static get[a0_0x2d1ab0(0x10c)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String,'detailElement':Object};}get['grist'](){const _0x34dab7=a0_0x2d1ab0;return this[_0x34dab7(0x120)][_0x34dab7(0x12a)](this[_0x34dab7(0x112)]);}get[a0_0x2d1ab0(0x12e)](){const _0x44ac79=a0_0x2d1ab0;return this[_0x44ac79(0x110)]?.[_0x44ac79(0x12a)](this['filterFormId']);}get[a0_0x2d1ab0(0x107)](){const _0x377f96=a0_0x2d1ab0;let _0x4907bf=MetaUiUtil[_0x377f96(0x12b)](this);return _0x4907bf[_0x377f96(0x12d)]&&delete _0x4907bf[_0x377f96(0x12d)],_0x4907bf[_0x377f96(0xfd)]&&delete _0x4907bf['exportable'],_0x4907bf['importable']&&delete _0x4907bf[_0x377f96(0x12c)],_0x4907bf;}async['connectedCallback'](){const _0x1a6347=a0_0x2d1ab0;this[_0x1a6347(0x112)]=_0x1a6347(0x118),this['filterFormId']='ox-filters-form-base',await this[_0x1a6347(0xe8)](),this['isElement']&&await this[_0x1a6347(0x125)](),this[_0x1a6347(0xf1)]&&(this[_0x1a6347(0x119)]=(this[_0x1a6347(0xf1)]||{})['main']),super[_0x1a6347(0xf3)]&&await super[_0x1a6347(0xf3)]();}async[a0_0x2d1ab0(0x114)](){const _0x23bce4=a0_0x2d1ab0;super['firstUpdated']&&await super[_0x23bce4(0x114)]();}async[a0_0x2d1ab0(0x127)](){const _0xedfb46=a0_0x2d1ab0;this['isPage']&&await this['parseGristConfigs'](),super[_0xedfb46(0x127)]&&await super[_0xedfb46(0x127)]();}[a0_0x2d1ab0(0xf5)](){const _0x573ea3=a0_0x2d1ab0;return MetaApi[_0x573ea3(0xf0)](this);}[a0_0x2d1ab0(0x122)](_0x2f7644){const _0x2dcfe9=a0_0x2d1ab0;this[_0x2dcfe9(0xfa)]=_0x2f7644[_0x2dcfe9(0x138)],this[_0x2dcfe9(0x136)]=_0x2f7644['grid_column'],this[_0x2dcfe9(0x105)]=_0x2f7644[_0x2dcfe9(0x13a)],this[_0x2dcfe9(0x116)]=_0x2f7644[_0x2dcfe9(0x116)];}async['parseGristConfigs'](){const _0x3a91ab=a0_0x2d1ab0;this[_0x3a91ab(0x109)]=await MetaApi[_0x3a91ab(0x11b)](this),this[_0x3a91ab(0x10e)]=!0x0===this['useFilterForm'],this[_0x3a91ab(0x11e)]=!0x1,this[_0x3a91ab(0xfc)]=[],this[_0x3a91ab(0x128)]=this['gristConfigSet'][_0x3a91ab(0x10d)][_0x3a91ab(0xff)](_0x392ac7=>_0x392ac7[_0x3a91ab(0xff)])[_0x3a91ab(0x135)](_0x117d83=>{const _0x2fecd0=_0x3a91ab;let _0x5d23e8={'name':_0x117d83[_0x2fecd0(0x106)],'type':_0x2fecd0(0x13a)===_0x117d83[_0x2fecd0(0xff)]['operator']?_0x2fecd0(0x13a):_0x117d83[_0x2fecd0(0xfe)],'label':_0x117d83['header'],'operator':_0x117d83[_0x2fecd0(0xff)][_0x2fecd0(0xed)]?_0x117d83[_0x2fecd0(0xff)][_0x2fecd0(0xed)]:'eq'};return _0x117d83[_0x2fecd0(0xff)][_0x2fecd0(0x115)]&&(_0x5d23e8[_0x2fecd0(0x115)]=_0x117d83[_0x2fecd0(0xff)]['options']),_0x117d83[_0x2fecd0(0x11a)][_0x2fecd0(0x115)]&&(_0x5d23e8['options']=_0x117d83[_0x2fecd0(0x11a)][_0x2fecd0(0x115)]),_0x117d83[_0x2fecd0(0xff)][_0x2fecd0(0x130)]&&this[_0x2fecd0(0xfc)][_0x2fecd0(0xea)]({'name':_0x5d23e8[_0x2fecd0(0x106)],'operator':_0x5d23e8[_0x2fecd0(0xed)],'value':_0x117d83['filter'][_0x2fecd0(0x130)]}),delete _0x117d83[_0x2fecd0(0xff)],_0x5d23e8;});}async[a0_0x2d1ab0(0x111)](){const _0x46cd5a=a0_0x2d1ab0;await this[_0x46cd5a(0x12f)]['fetch']();}async[a0_0x2d1ab0(0x100)]({page:_0x5e645d=0x0,limit:_0xd82770=0x0,sortings:_0xcc7072=[],filters:_0x2eb0d2=[]}){const _0x5d94d4=a0_0x2d1ab0;return this['detailElement']&&this[_0x5d94d4(0xef)][_0x5d94d4(0x11f)]&&await this['detailElement'][_0x5d94d4(0x11f)](),!0x0;}async[a0_0x2d1ab0(0xf6)](){const _0x44c4d5=a0_0x2d1ab0;let _0x452138=MetaApi[_0x44c4d5(0x113)](this[_0x44c4d5(0x12f)]);!!ValueUtil[_0x44c4d5(0x101)](_0x452138)&&await this[_0x44c4d5(0x108)](_0x452138)&&this[_0x44c4d5(0x111)]();}async[a0_0x2d1ab0(0x126)](){const _0x51f18c=a0_0x2d1ab0;let _0x1db4cf=MetaApi[_0x51f18c(0x103)](this[_0x51f18c(0x12f)],!0x0);return ValueUtil[_0x51f18c(0x101)](_0x1db4cf)?await this[_0x51f18c(0x10b)](_0x1db4cf[0x0]):{};}async[a0_0x2d1ab0(0xeb)](){const _0x2cb9fc=a0_0x2d1ab0;let _0x2803a2=MetaApi[_0x2cb9fc(0x103)](this['grist'],!0x0);!!ValueUtil[_0x2cb9fc(0x101)](_0x2803a2)&&await this['deleteByIds'](_0x2803a2)&&this[_0x2cb9fc(0x111)]();}async['export'](){const _0xe497da=a0_0x2d1ab0;let _0xeb2581=TermsUtil[_0xe497da(0x124)](ValueUtil['getParams'](this[_0xe497da(0x137)],_0xe497da(0x134)));return await MetaApi[_0xe497da(0x104)](this[_0xe497da(0xee)],_0xeb2581,this[_0xe497da(0x12f)]);}async[a0_0x2d1ab0(0xf4)](){}['getData'](){const _0x2d0f33=a0_0x2d1ab0;let _0x4b2dc7=this[_0x2d0f33(0x12f)][_0x2d0f33(0x11c)][_0x2d0f33(0x129)];return _0x4b2dc7=JSON[_0x2d0f33(0xfb)](JSON[_0x2d0f33(0x133)](_0x4b2dc7)),_0x4b2dc7[_0x2d0f33(0x131)](_0x2989a9=>{const _0x2c0811=_0x2d0f33;Object[_0x2c0811(0xf2)](_0x2989a9)[_0x2c0811(0x131)](_0x5edb6e=>{const _0x5f20b2=_0x2c0811;_0x5edb6e[_0x5f20b2(0x117)]('__')&&delete _0x2989a9[_0x5edb6e];});}),{'main':_0x4b2dc7,'detail':this['detailElement'][_0x2d0f33(0x132)]()};}};