@things-factory/meta-ui 6.1.33 → 6.1.35

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 (89) hide show
  1. package/client/actions/main.js +4 -4
  2. package/client/bootstrap.js +5 -2
  3. package/client/component/filter/filter-form-meta-code-select.js +9 -9
  4. package/client/component/filter/filter-form-meta-object-select.js +10 -10
  5. package/client/component/filter/filter-grist-meta-code-select.js +10 -10
  6. package/client/component/filter/filter-grist-meta-object-select.js +9 -9
  7. package/client/component/grist/editor/grist-editor-code-input.js +6 -6
  8. package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
  9. package/client/component/grist/editor/grist-editor-meta-object-selector.js +7 -7
  10. package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
  11. package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
  12. package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
  13. package/client/component/popup/code-input-editor-popup.js +10 -10
  14. package/client/component/popup/meta-object-selector-popup.js +11 -11
  15. package/client/mixin/meta-base-mixin.js +1 -1
  16. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  17. package/client/mixin/meta-button-mixin.js +1 -1
  18. package/client/mixin/meta-form-mixin.js +1 -1
  19. package/client/mixin/meta-grist-tab-mixin.js +1 -1
  20. package/client/mixin/meta-main-tab-mixin.js +1 -1
  21. package/client/mixin/meta-master-detail-mixin.js +1 -1
  22. package/client/mixin/meta-service-mixin.js +1 -1
  23. package/client/mixin/meta-tab-detail-mixin.js +1 -1
  24. package/client/mixin/meta-tab-mixin.js +1 -1
  25. package/client/pages/activity/meta-activity-list-page.js +5 -5
  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 +28 -28
  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 +5 -5
  33. package/client/pages/loading-page.js +5 -5
  34. package/client/pages/menu/dynamic-menu-template.js +7 -7
  35. package/client/pages/menu/dynamic-menu.js +16 -16
  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/grist-default-value.js +1 -0
  54. package/client/utils/meta-api.js +1 -1
  55. package/client/utils/meta-crypto.js +1 -1
  56. package/client/utils/meta-ui-util.js +103 -103
  57. package/client/utils/service-util.js +13 -13
  58. package/client/utils/terms-util.js +2 -2
  59. package/client/utils/ui-util.js +1 -1
  60. package/client/utils/value-util.js +1 -1
  61. package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
  62. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  63. package/client/viewparts/dynamic-menu-part.js +12 -12
  64. package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
  65. package/client/viewparts/dynamic-menu-portrait.js +9 -9
  66. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  67. package/package.json +2 -2
  68. package/server/activity/CommonActivity.js +2 -2
  69. package/server/constants/error-code.js +1 -1
  70. package/server/errors/license-error.js +1 -1
  71. package/server/routes.js +1 -1
  72. package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
  73. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  74. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  75. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  76. package/server/service/grid-personalize/grid-personalize.js +1 -1
  77. package/server/service/meta-activity/meta-activity-mutation.js +1 -1
  78. package/server/service/meta-activity/meta-activity-query.js +1 -1
  79. package/server/service/meta-activity/meta-activity-type.js +1 -1
  80. package/server/service/meta-secret/meta-resolver.js +1 -1
  81. package/server/service/set-translations/set-translation-resolver.js +1 -1
  82. package/server/service/work-code/work-code-mutation.js +1 -1
  83. package/server/service/work-code/work-code-query.js +1 -1
  84. package/server/service/work-code/work-code-type.js +1 -1
  85. package/server/service/work-code/work-code.js +1 -1
  86. package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
  87. package/server/service/work-code-detail/work-code-detail-query.js +1 -1
  88. package/server/service/work-code-detail/work-code-detail-type.js +1 -1
  89. package/server/service/work-code-detail/work-code-detail.js +1 -1
@@ -1,4 +1,4 @@
1
- const a0_0x167882=a0_0x157c;(function(_0x3d3dd2,_0x182643){const _0x5de46f=a0_0x157c,_0xa86cb7=_0x3d3dd2();while(!![]){try{const _0x583964=parseInt(_0x5de46f(0x219))/0x1*(parseInt(_0x5de46f(0x1d3))/0x2)+parseInt(_0x5de46f(0x21e))/0x3+-parseInt(_0x5de46f(0x1f1))/0x4+parseInt(_0x5de46f(0x208))/0x5*(-parseInt(_0x5de46f(0x1ee))/0x6)+-parseInt(_0x5de46f(0x216))/0x7*(parseInt(_0x5de46f(0x1fe))/0x8)+-parseInt(_0x5de46f(0x223))/0x9+parseInt(_0x5de46f(0x21b))/0xa;if(_0x583964===_0x182643)break;else _0xa86cb7['push'](_0xa86cb7['shift']());}catch(_0x4f72ea){_0xa86cb7['push'](_0xa86cb7['shift']());}}}(a0_0x1128,0xdce6a));function a0_0x157c(_0x24f012,_0x49f9ff){const _0x1128d2=a0_0x1128();return a0_0x157c=function(_0x157c54,_0x19dabe){_0x157c54=_0x157c54-0x1d3;let _0x2af792=_0x1128d2[_0x157c54];return _0x2af792;},a0_0x157c(_0x24f012,_0x49f9ff);}import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';function a0_0x1128(){const _0x33c207=['confirmCallback','filter','tText','args','define','type','search','getGristGuttersConfig','record','includes','columns','meta-code-selector','272seAemb','forEach','push','render','search_hidden_fields','getSelectColumns','firstUpdated','getGristMetaObjectOptions','GRID','gridConfig','10QNtiwD','name','LIST','filters','string','clickCancel','query','info','gql','selectRecord','NOTHING_SELECTED','scenario','nameField','menu_template','273133fOKajZ','options','left','1706187lBOfCu','sorters','5104640XSVlRg','code','selected','2452602xfhxtj','connectedCallback','dispField','getGristSelectableConfig','getGristColumnConfig2','3071466ikVJiP','cancel','2GMSWDw','keys','length','clickEmpty','resource-object','clickSelect','getCodeByScenario','hidden','filterFields','grist','getParams','handlers','meta-object-selector','getCodeSelectorData','resource-code-selector','basicArgs','bind','fetchHandler','showToast','shadowRoot','rows','values','tButton','codeField','getCodeByEntity','select-row-toggle','select','335190QwUBfi','#ox-grist','codes','1398900LLvxbh'];a0_0x1128=function(){return _0x33c207;};return a0_0x1128();}export class MetaObjectSelectorPopup extends LitElement{static ['styles']=[CommonGristStyles,ButtonContainerStyles,css`
1
+ const a0_0x2a5336=a0_0x1e8c;(function(_0x3979e5,_0x3e5b2a){const _0x58f2c4=a0_0x1e8c,_0x12ff0c=_0x3979e5();while(!![]){try{const _0x15be4b=-parseInt(_0x58f2c4(0x16f))/0x1+parseInt(_0x58f2c4(0x182))/0x2+parseInt(_0x58f2c4(0x199))/0x3*(-parseInt(_0x58f2c4(0x1a4))/0x4)+parseInt(_0x58f2c4(0x14c))/0x5*(-parseInt(_0x58f2c4(0x196))/0x6)+-parseInt(_0x58f2c4(0x19c))/0x7*(-parseInt(_0x58f2c4(0x169))/0x8)+parseInt(_0x58f2c4(0x197))/0x9+parseInt(_0x58f2c4(0x151))/0xa;if(_0x15be4b===_0x3e5b2a)break;else _0x12ff0c['push'](_0x12ff0c['shift']());}catch(_0x4031ab){_0x12ff0c['push'](_0x12ff0c['shift']());}}}(a0_0x5bdf,0x81eb6));import{css,html,LitElement}from'lit';function a0_0x5bdf(){const _0x1e2860=['showToast','GRID','clickCancel','gridConfig','codes','41460AgBeGe','getGristPagination100Config','2347830hUbnzo','search','filters','appendable','includes','22881570nTzYOO','string','meta-','connectedCallback','values','dispField','tText','codeField','selectRecord','select-row-toggle','gql','filter','menu','searchByPagination','confirmCallback','clickEmpty','left','forEach','search_hidden_fields','fetchHandler','record','meta-code-selector','push','basicArgs','1072nyzqgq','args','columns','hidden','grist','sorters','782433GBaXAi','isArray','queryName','empty','type','after_set_fields','keys','resource-code-selector','handlers','filterFields','resource-object','rows','querySelector','menu_template','LIST','selected','length','bind','getGristSelectableConfig','118892SbiEPx','getGristColumnConfig2','define','name','tButton','#ox-grist','getSelectColumns','code','meta-object-selector','getGristGuttersConfig','NOTHING_SELECTED','options','select','firstUpdated','getParams','info','startsWith','nameField','meta-object-selector-popup','entity','12DFMFZe','2327391mkEXhX','getGristMetaObjectOptions','201aydqLf','getCodeByScenario','styles','17864fqvCQw','align','query'];a0_0x5bdf=function(){return _0x1e2860;};return a0_0x5bdf();}import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';function a0_0x1e8c(_0x31d8cf,_0x3e59a0){const _0x5bdf7e=a0_0x5bdf();return a0_0x1e8c=function(_0x1e8ccf,_0x2c0128){_0x1e8ccf=_0x1e8ccf-0x14c;let _0x2b3090=_0x5bdf7e[_0x1e8ccf];return _0x2b3090;},a0_0x1e8c(_0x31d8cf,_0x3e59a0);}import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class MetaObjectSelectorPopup extends LitElement{static [a0_0x2a5336(0x19b)]=[CommonGristStyles,ButtonContainerStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -17,9 +17,9 @@ const a0_0x167882=a0_0x157c;(function(_0x3d3dd2,_0x182643){const _0x5de46f=a0_0x
17
17
  display: flex;
18
18
  margin-left: auto;
19
19
  }
20
- `];async['connectedCallback'](){const _0x42754c=a0_0x157c;this[_0x42754c(0x202)]=this['options'][_0x42754c(0x20b)]?this[_0x42754c(0x217)][_0x42754c(0x20b)]:this[_0x42754c(0x1e2)]&&this[_0x42754c(0x1e2)][_0x42754c(0x20b)]?this[_0x42754c(0x1e2)][_0x42754c(0x20b)]:[];let _0x514d71=this[_0x42754c(0x217)][_0x42754c(0x21a)]?this['options'][_0x42754c(0x21a)]:this[_0x42754c(0x1e2)]&&this[_0x42754c(0x1e2)][_0x42754c(0x21a)]?this['basicArgs'][_0x42754c(0x21a)]:[],_0xcb50eb=this[_0x42754c(0x217)][_0x42754c(0x1db)]?this[_0x42754c(0x217)][_0x42754c(0x1db)]:this['options']['menu_template']?.[_0x42754c(0x1f8)]&&this[_0x42754c(0x217)][_0x42754c(0x215)]?.[_0x42754c(0x1f8)][_0x42754c(0x1d5)]>0x0?this[_0x42754c(0x217)][_0x42754c(0x215)][_0x42754c(0x1f8)]:[],_0x53853c=this[_0x42754c(0x217)][_0x42754c(0x1ed)];if(!_0xcb50eb||0x0==_0xcb50eb[_0x42754c(0x1d5)]){let _0x39eb57;this[_0x42754c(0x217)][_0x42754c(0x1ea)]&&(_0x39eb57=this[_0x42754c(0x217)][_0x42754c(0x1ea)]),this[_0x42754c(0x217)][_0x42754c(0x214)]&&(_0x39eb57=this['options'][_0x42754c(0x214)]),_0x39eb57&&_0xcb50eb[_0x42754c(0x200)]({'name':_0x39eb57,'operator':'eq'});}let _0x2f2189=[...MetaApi[_0x42754c(0x1f9)](!0x0,!0x1)];if(_0x53853c&&_0x53853c[_0x42754c(0x1d5)]>0x0)for(let _0x309e38=0x0;_0x309e38<_0x53853c[_0x42754c(0x1d5)];_0x309e38++){let {type:_0x427838=_0x42754c(0x20c),name:_0x29f1c9,hidden:_0x3dd8bc=!0x1,record:_0x48498b={'align':'left'},header:_0x41cdf9,sortable:_0x15679d=!0x1,width:_0x159a71=0x87,options:_0xb0f49a,select_opt:_0x2a0b46,object_opt:_0xbf8a6e}=_0x53853c[_0x309e38];if(_0x2a0b46&&(_0xb0f49a=_0x2a0b46),_0xbf8a6e&&(_0xb0f49a=_0xbf8a6e),[_0x42754c(0x1d7),'object'][_0x42754c(0x1fb)](_0x427838)?_0x427838='meta-object-selector':[_0x42754c(0x1e1)][_0x42754c(0x1fb)](_0x427838)&&(_0x427838='meta-code-selector'),'id'==_0x29f1c9)_0x2f2189[_0x42754c(0x200)]({'type':_0x42754c(0x20c),'name':_0x29f1c9,'hidden':!0x0});else{let _0x1e927e=MetaApi[_0x42754c(0x222)](_0x427838,_0x29f1c9,_0x41cdf9||_0x29f1c9,_0x48498b['align']?_0x48498b['align']:_0x42754c(0x218),!0x1,_0x15679d,_0x159a71);_0x427838['startsWith']('meta-')&&_0xbf8a6e&&_0xbf8a6e['menu']&&(_0xb0f49a=await MetaUiUtil[_0x42754c(0x205)](_0x427838,_0xb0f49a)),_0x42754c(0x1ed)===_0x427838?Array['isArray'](_0xb0f49a)?_0x1e927e[_0x42754c(0x1fa)][_0x42754c(0x217)]=_0xb0f49a:_0x42754c(0x21c)===_0xb0f49a[_0x42754c(0x1f7)]?_0x1e927e[_0x42754c(0x1fa)][_0x42754c(0x217)]=await ServiceUtil[_0x42754c(0x1e0)](_0xb0f49a[_0x42754c(0x1e8)]?_0xb0f49a[_0x42754c(0x1e8)]:_0xb0f49a[_0x42754c(0x209)]):_0x42754c(0x213)===_0xb0f49a[_0x42754c(0x1f7)]?_0x1e927e['record']['options']=await ServiceUtil[_0x42754c(0x1d9)](_0xb0f49a['name'],_0xb0f49a[_0x42754c(0x1f5)]):'entity'===_0xb0f49a['type']&&(_0x1e927e['record'][_0x42754c(0x217)]=await ServiceUtil[_0x42754c(0x1eb)](_0xb0f49a[_0x42754c(0x1f5)])):_0x42754c(0x1df)===_0x427838?_0x1e927e[_0x42754c(0x1fa)]['options']={..._0xb0f49a}:_0x42754c(0x1fd)==_0x427838&&(_0xb0f49a[_0x42754c(0x220)]&&(_0xb0f49a[_0x42754c(0x1f0)]=await ServiceUtil[_0x42754c(0x1eb)](_0xb0f49a)),_0x1e927e[_0x42754c(0x1fa)][_0x42754c(0x217)]={..._0xb0f49a}),_0x1e927e[_0x42754c(0x1da)]=_0x3dd8bc,_0x2f2189[_0x42754c(0x200)](_0x1e927e);}}else _0x2f2189['push'](MetaApi[_0x42754c(0x222)]('string',this[_0x42754c(0x217)][_0x42754c(0x1ea)],this[_0x42754c(0x217)][_0x42754c(0x1ea)],_0x42754c(0x218),!0x1,!0x0,0xb4)),this[_0x42754c(0x217)]['dispField']&&_0x2f2189['push'](MetaApi['getGristColumnConfig2'](_0x42754c(0x20c),this[_0x42754c(0x217)][_0x42754c(0x220)],this[_0x42754c(0x217)][_0x42754c(0x220)],_0x42754c(0x218),!0x1,!0x0,0x12c));_0x2f2189[_0x42754c(0x1ff)](_0x3c6c0b=>{const _0x3f327b=_0x42754c;let _0x1cb2e8=_0xcb50eb[_0x3f327b(0x1f3)](_0x4cbe75=>_0x3f327b(0x20c)==typeof _0x4cbe75?_0x3c6c0b[_0x3f327b(0x209)]==_0x4cbe75:_0x3c6c0b[_0x3f327b(0x209)]==_0x4cbe75[_0x3f327b(0x209)]);_0x1cb2e8&&_0x1cb2e8[_0x3f327b(0x1d5)]>0x0&&(_0x3c6c0b['filter']=_0x3f327b(0x20c)==typeof _0x1cb2e8[0x0]?_0x3f327b(0x1f8):_0x1cb2e8[0x0]);});let _0x360c73={'rows':MetaApi[_0x42754c(0x221)](!0x1),'pagination':MetaApi['getGristPagination100Config'](),'columns':_0x2f2189,'sorters':[..._0x514d71]};_0x360c73[_0x42754c(0x1e7)][_0x42754c(0x1de)]={'click':_0x42754c(0x1ec),'dblclick':(_0x224aac,_0x502ee6,_0x4dc756,_0x259e04,_0x2f2b3d,_0xecd086)=>{const _0x5a8c18=_0x42754c;this[_0x5a8c18(0x211)](_0x259e04);}},_0x360c73[_0x42754c(0x1e7)]['appendable']=!0x1,this[_0x42754c(0x207)]=_0x360c73,await super[_0x42754c(0x21f)]();}async[a0_0x167882(0x204)](){const _0x112df1=a0_0x167882;await super[_0x112df1(0x204)]();}[a0_0x167882(0x201)](){const _0x29981c=a0_0x167882;return html`
21
- <ox-grist id="ox-grist" .config=${this[_0x29981c(0x207)]} .mode=${isMobileDevice()?_0x29981c(0x20a):_0x29981c(0x206)} auto-fetch
22
- .fetchHandler=${this[_0x29981c(0x1e4)][_0x29981c(0x1e3)](this)}>
20
+ `];async[a0_0x2a5336(0x154)](){const _0xa4b5d2=a0_0x2a5336;this[_0xa4b5d2(0x163)]=this[_0xa4b5d2(0x18d)][_0xa4b5d2(0x14e)]?this[_0xa4b5d2(0x18d)][_0xa4b5d2(0x14e)]:this[_0xa4b5d2(0x168)]&&this[_0xa4b5d2(0x168)][_0xa4b5d2(0x14e)]?this['basicArgs'][_0xa4b5d2(0x14e)]:[];let _0x5687b3=this[_0xa4b5d2(0x18d)][_0xa4b5d2(0x16e)]?this['options'][_0xa4b5d2(0x16e)]:this['basicArgs']&&this[_0xa4b5d2(0x168)][_0xa4b5d2(0x16e)]?this[_0xa4b5d2(0x168)][_0xa4b5d2(0x16e)]:[],_0x4ac178=this['options'][_0xa4b5d2(0x178)]?this['options'][_0xa4b5d2(0x178)]:this[_0xa4b5d2(0x18d)][_0xa4b5d2(0x17c)]?.['search']&&this['options'][_0xa4b5d2(0x17c)]?.[_0xa4b5d2(0x14d)]['length']>0x0?this['options']['menu_template']['search']:[],_0x4d75fe=this[_0xa4b5d2(0x18d)][_0xa4b5d2(0x18e)];if(!_0x4ac178||0x0==_0x4ac178[_0xa4b5d2(0x17f)]){let _0x31492d;this[_0xa4b5d2(0x18d)][_0xa4b5d2(0x158)]&&(_0x31492d=this[_0xa4b5d2(0x18d)]['codeField']),this[_0xa4b5d2(0x18d)][_0xa4b5d2(0x193)]&&(_0x31492d=this['options'][_0xa4b5d2(0x193)]),_0x31492d&&_0x4ac178[_0xa4b5d2(0x167)]({'name':_0x31492d,'operator':'eq'});}let _0x12a87f=[...MetaApi[_0xa4b5d2(0x18b)](!0x0,!0x1)];if(_0x4d75fe&&_0x4d75fe['length']>0x0)for(let _0x18197d=0x0;_0x18197d<_0x4d75fe[_0xa4b5d2(0x17f)];_0x18197d++){let {type:_0x5cc32e=_0xa4b5d2(0x152),name:_0x27d5d5,hidden:_0x33ec91=!0x1,record:_0x39751c={'align':'left'},header:_0x4f662c,sortable:_0x4e25e1=!0x1,width:_0xce1ef0=0x87,options:_0x1ba7ec,select_opt:_0x19778b,object_opt:_0x28a5db}=_0x4d75fe[_0x18197d];if(_0x19778b&&(_0x1ba7ec=_0x19778b),_0x28a5db&&(_0x1ba7ec=_0x28a5db),[_0xa4b5d2(0x179),'object'][_0xa4b5d2(0x150)](_0x5cc32e)?_0x5cc32e=_0xa4b5d2(0x18a):[_0xa4b5d2(0x176)][_0xa4b5d2(0x150)](_0x5cc32e)&&(_0x5cc32e=_0xa4b5d2(0x166)),'id'==_0x27d5d5)_0x12a87f[_0xa4b5d2(0x167)]({'type':_0xa4b5d2(0x152),'name':_0x27d5d5,'hidden':!0x0});else{let _0x2a4058=MetaApi[_0xa4b5d2(0x183)](_0x5cc32e,_0x27d5d5,_0x4f662c||_0x27d5d5,_0x39751c['align']?_0x39751c[_0xa4b5d2(0x19d)]:_0xa4b5d2(0x161),!0x1,_0x4e25e1,_0xce1ef0);_0x5cc32e[_0xa4b5d2(0x192)](_0xa4b5d2(0x153))&&_0x28a5db&&_0x28a5db[_0xa4b5d2(0x15d)]&&(_0x1ba7ec=await MetaUiUtil[_0xa4b5d2(0x198)](_0x5cc32e,_0x1ba7ec)),_0xa4b5d2(0x18e)===_0x5cc32e?Array[_0xa4b5d2(0x170)](_0x1ba7ec)?_0x2a4058[_0xa4b5d2(0x165)]['options']=_0x1ba7ec:_0xa4b5d2(0x189)===_0x1ba7ec['type']?_0x2a4058[_0xa4b5d2(0x165)]['options']=await ServiceUtil['getCodeSelectorData'](_0x1ba7ec['values']?_0x1ba7ec[_0xa4b5d2(0x155)]:_0x1ba7ec[_0xa4b5d2(0x185)]):'scenario'===_0x1ba7ec['type']?_0x2a4058[_0xa4b5d2(0x165)][_0xa4b5d2(0x18d)]=await ServiceUtil[_0xa4b5d2(0x19a)](_0x1ba7ec[_0xa4b5d2(0x185)],_0x1ba7ec[_0xa4b5d2(0x16a)]):_0xa4b5d2(0x195)===_0x1ba7ec[_0xa4b5d2(0x173)]&&(_0x2a4058['record'][_0xa4b5d2(0x18d)]=await ServiceUtil['getCodeByEntity'](_0x1ba7ec['args'])):_0xa4b5d2(0x18a)===_0x5cc32e?_0x2a4058['record'][_0xa4b5d2(0x18d)]={..._0x1ba7ec}:_0xa4b5d2(0x166)==_0x5cc32e&&(_0x1ba7ec[_0xa4b5d2(0x156)]&&(_0x1ba7ec[_0xa4b5d2(0x1a3)]=await ServiceUtil['getCodeByEntity'](_0x1ba7ec)),_0x2a4058[_0xa4b5d2(0x165)]['options']={..._0x1ba7ec}),_0x2a4058[_0xa4b5d2(0x16c)]=_0x33ec91,_0x12a87f[_0xa4b5d2(0x167)](_0x2a4058);}}else _0x12a87f[_0xa4b5d2(0x167)](MetaApi[_0xa4b5d2(0x183)](_0xa4b5d2(0x152),this['options'][_0xa4b5d2(0x158)],this[_0xa4b5d2(0x18d)][_0xa4b5d2(0x158)],'left',!0x1,!0x0,0xb4)),this['options'][_0xa4b5d2(0x156)]&&_0x12a87f[_0xa4b5d2(0x167)](MetaApi[_0xa4b5d2(0x183)](_0xa4b5d2(0x152),this[_0xa4b5d2(0x18d)][_0xa4b5d2(0x156)],this['options'][_0xa4b5d2(0x156)],_0xa4b5d2(0x161),!0x1,!0x0,0x12c));_0x12a87f['forEach'](_0x3c8028=>{const _0xc334a=_0xa4b5d2;let _0x4ff7e0=_0x4ac178[_0xc334a(0x15c)](_0x312bb8=>_0xc334a(0x152)==typeof _0x312bb8?_0x3c8028[_0xc334a(0x185)]==_0x312bb8:_0x3c8028[_0xc334a(0x185)]==_0x312bb8[_0xc334a(0x185)]);_0x4ff7e0&&_0x4ff7e0[_0xc334a(0x17f)]>0x0&&(_0x3c8028[_0xc334a(0x15c)]=_0xc334a(0x152)==typeof _0x4ff7e0[0x0]?_0xc334a(0x14d):_0x4ff7e0[0x0]);});let _0x3ca8d3={'rows':MetaApi[_0xa4b5d2(0x181)](!0x1),'pagination':MetaApi[_0xa4b5d2(0x1a5)](),'columns':_0x12a87f,'sorters':[..._0x5687b3]};_0x3ca8d3[_0xa4b5d2(0x17a)][_0xa4b5d2(0x177)]={'click':_0xa4b5d2(0x15a),'dblclick':(_0x427759,_0x2444bb,_0xa66f23,_0x1f4d86,_0x8e95cc,_0x4fa726)=>{this['selectRecord'](_0x1f4d86);}},_0x3ca8d3['rows'][_0xa4b5d2(0x14f)]=!0x1,this['gridConfig']=_0x3ca8d3,await super['connectedCallback']();}async['firstUpdated'](){const _0x1e0e1f=a0_0x2a5336;await super[_0x1e0e1f(0x18f)]();}['render'](){const _0x41bbd7=a0_0x2a5336;return html`
21
+ <ox-grist id="ox-grist" .config=${this[_0x41bbd7(0x1a2)]} .mode=${isMobileDevice()?_0x41bbd7(0x17d):_0x41bbd7(0x1a0)} auto-fetch
22
+ .fetchHandler=${this[_0x41bbd7(0x164)][_0x41bbd7(0x180)](this)}>
23
23
  <div slot="headroom">
24
24
  <div id="filters">
25
25
  <ox-filters-form></ox-filters-form>
@@ -27,14 +27,14 @@ const a0_0x167882=a0_0x157c;(function(_0x3d3dd2,_0x182643){const _0x5de46f=a0_0x
27
27
  </div>
28
28
  </ox-grist>
29
29
  <div id="button-container" class="button-container">
30
- <mwc-button raised label="${TermsUtil[_0x29981c(0x1e9)]('empty')}" style="margin-left:7px;margin-top:7px;"
31
- @click=${this[_0x29981c(0x1d6)][_0x29981c(0x1e3)](this)}>
30
+ <mwc-button raised label="${TermsUtil['tButton'](_0x41bbd7(0x172))}" style="margin-left:7px;margin-top:7px;"
31
+ @click=${this[_0x41bbd7(0x160)][_0x41bbd7(0x180)](this)}>
32
32
  </mwc-button>
33
- <mwc-button raised label="${TermsUtil['tButton'](_0x29981c(0x224))}" style="margin-left:7px;margin-top:7px;"
34
- @click=${this['clickCancel']['bind'](this)}>
33
+ <mwc-button raised label="${TermsUtil[_0x41bbd7(0x186)]('cancel')}" style="margin-left:7px;margin-top:7px;"
34
+ @click=${this[_0x41bbd7(0x1a1)][_0x41bbd7(0x180)](this)}>
35
35
  </mwc-button>
36
- <mwc-button raised label="${TermsUtil[_0x29981c(0x1e9)]('select')}" style="margin-left:7px;margin-top:7px;"
37
- @click=${this[_0x29981c(0x1d8)][_0x29981c(0x1e3)](this)}>
36
+ <mwc-button raised label="${TermsUtil['tButton'](_0x41bbd7(0x18e))}" style="margin-left:7px;margin-top:7px;"
37
+ @click=${this['clickSelect']['bind'](this)}>
38
38
  </mwc-button>
39
39
  </div>
40
- `;}get['grist'](){const _0x3f8e10=a0_0x167882;return this[_0x3f8e10(0x1e6)]['querySelector'](_0x3f8e10(0x1ef));}async[a0_0x167882(0x1e4)]({page:_0x34d878=0x0,limit:_0x676149=0x0,sorters:_0x8f646e=[],filters:_0x319dc6=[]}){const _0x2c19fa=a0_0x167882;let _0xe66872=[...this[_0x2c19fa(0x202)]];_0x319dc6[_0x2c19fa(0x1ff)](_0x1a8d57=>{const _0x39dc57=_0x2c19fa;let _0x77a063=_0xe66872[_0x39dc57(0x1f3)](_0x3fd5f3=>_0x1a8d57['name']==_0x3fd5f3[_0x39dc57(0x209)]);_0x77a063&&_0x77a063[_0x39dc57(0x1d5)]>0x0&&delete _0xe66872[_0x1a8d57[_0x39dc57(0x209)]],_0xe66872[_0x39dc57(0x200)](_0x1a8d57);});let _0x5c7a59=ValueUtil[_0x2c19fa(0x1dd)](this[_0x2c19fa(0x217)]['menu_template']&&this[_0x2c19fa(0x217)][_0x2c19fa(0x215)][_0x2c19fa(0x210)]||{},_0x2c19fa(0x20e),'after_set_fields'),_0x56caad=Object[_0x2c19fa(0x1d4)](_0x5c7a59||{}),_0x4db14a=MetaApi[_0x2c19fa(0x203)](this['gridConfig'][_0x2c19fa(0x1fc)][_0x2c19fa(0x1f3)](_0x4b598e=>!_0x56caad[_0x2c19fa(0x1fb)](_0x4b598e[_0x2c19fa(0x209)])));return await MetaApi['searchByPagination'](this['options']['queryName'],_0xe66872,_0x8f646e,_0x34d878,_0x676149,_0x4db14a);}async['clickEmpty'](_0x205521){const _0x3b3217=a0_0x167882;this[_0x3b3217(0x1f2)]&&this[_0x3b3217(0x1f2)](null),closePopup(this);}async[a0_0x167882(0x20d)](_0x52280c){closePopup(this);}async[a0_0x167882(0x1d8)](_0xf0b172){const _0x9b5336=a0_0x167882;let _0x23f2ce=this[_0x9b5336(0x1dc)][_0x9b5336(0x21d)];_0x23f2ce&&0x0!=_0x23f2ce['length']?this[_0x9b5336(0x211)](_0x23f2ce[0x0]):MetaApi[_0x9b5336(0x1e5)](_0x9b5336(0x20f),TermsUtil[_0x9b5336(0x1f4)](_0x9b5336(0x212)));}async[a0_0x167882(0x211)](_0x55128f){const _0x129ebd=a0_0x167882;this[_0x129ebd(0x1f2)]&&this['confirmCallback'](_0x55128f),closePopup(this);}}customElements[a0_0x167882(0x1f6)]('meta-object-selector-popup',MetaObjectSelectorPopup);
40
+ `;}get[a0_0x2a5336(0x16d)](){const _0x487e5f=a0_0x2a5336;return this['shadowRoot'][_0x487e5f(0x17b)](_0x487e5f(0x187));}async['fetchHandler']({page:_0x1ec9cf=0x0,limit:_0x2b74f9=0x0,sorters:_0x167acc=[],filters:_0x24a79a=[]}){const _0x4ba95b=a0_0x2a5336;let _0x10d573=[...this[_0x4ba95b(0x163)]];_0x24a79a[_0x4ba95b(0x162)](_0x1ce3ff=>{const _0x2b8eb7=_0x4ba95b;let _0x449268=_0x10d573[_0x2b8eb7(0x15c)](_0x1ccc59=>_0x1ce3ff['name']==_0x1ccc59[_0x2b8eb7(0x185)]);_0x449268&&_0x449268[_0x2b8eb7(0x17f)]>0x0&&delete _0x10d573[_0x1ce3ff['name']],_0x10d573['push'](_0x1ce3ff);});let _0x33a67d=ValueUtil[_0x4ba95b(0x190)](this[_0x4ba95b(0x18d)][_0x4ba95b(0x17c)]&&this[_0x4ba95b(0x18d)][_0x4ba95b(0x17c)][_0x4ba95b(0x15b)]||{},_0x4ba95b(0x19e),_0x4ba95b(0x174)),_0x46bae7=Object[_0x4ba95b(0x175)](_0x33a67d||{}),_0x200ac3=MetaApi[_0x4ba95b(0x188)](this['gridConfig'][_0x4ba95b(0x16b)][_0x4ba95b(0x15c)](_0x2c82c2=>!_0x46bae7[_0x4ba95b(0x150)](_0x2c82c2[_0x4ba95b(0x185)])));return await MetaApi[_0x4ba95b(0x15e)](this[_0x4ba95b(0x18d)][_0x4ba95b(0x171)],_0x10d573,_0x167acc,_0x1ec9cf,_0x2b74f9,_0x200ac3);}async[a0_0x2a5336(0x160)](_0x44598c){const _0x43ba30=a0_0x2a5336;this[_0x43ba30(0x15f)]&&this[_0x43ba30(0x15f)](null),closePopup(this);}async[a0_0x2a5336(0x1a1)](_0x2ace2a){closePopup(this);}async['clickSelect'](_0x463b96){const _0x4616ea=a0_0x2a5336;let _0x2293a8=this[_0x4616ea(0x16d)][_0x4616ea(0x17e)];_0x2293a8&&0x0!=_0x2293a8[_0x4616ea(0x17f)]?this[_0x4616ea(0x159)](_0x2293a8[0x0]):MetaApi[_0x4616ea(0x19f)](_0x4616ea(0x191),TermsUtil[_0x4616ea(0x157)](_0x4616ea(0x18c)));}async[a0_0x2a5336(0x159)](_0x94e75b){const _0x54a83b=a0_0x2a5336;this[_0x54a83b(0x15f)]&&this[_0x54a83b(0x15f)](_0x94e75b),closePopup(this);}}customElements[a0_0x2a5336(0x184)](a0_0x2a5336(0x194),MetaObjectSelectorPopup);
@@ -1 +1 @@
1
- const a0_0x483193=a0_0x59dd;(function(_0x9dd19f,_0x2977e7){const _0x4a7711=a0_0x59dd,_0x33c26b=_0x9dd19f();while(!![]){try{const _0x336050=parseInt(_0x4a7711(0xdb))/0x1*(-parseInt(_0x4a7711(0xbf))/0x2)+-parseInt(_0x4a7711(0xd6))/0x3+-parseInt(_0x4a7711(0xc6))/0x4*(-parseInt(_0x4a7711(0xee))/0x5)+parseInt(_0x4a7711(0xf0))/0x6*(parseInt(_0x4a7711(0xe4))/0x7)+parseInt(_0x4a7711(0xe9))/0x8*(-parseInt(_0x4a7711(0xfe))/0x9)+parseInt(_0x4a7711(0xcf))/0xa*(parseInt(_0x4a7711(0xfa))/0xb)+parseInt(_0x4a7711(0xf1))/0xc;if(_0x336050===_0x2977e7)break;else _0x33c26b['push'](_0x33c26b['shift']());}catch(_0x19fc59){_0x33c26b['push'](_0x33c26b['shift']());}}}(a0_0x5ae3,0xeb74b));function a0_0x59dd(_0x50a5e6,_0x476613){const _0x5ae389=a0_0x5ae3();return a0_0x59dd=function(_0x59dd64,_0x8228e6){_0x59dd64=_0x59dd64-0xbf;let _0x42b290=_0x5ae389[_0x59dd64];return _0x42b290;},a0_0x59dd(_0x50a5e6,_0x476613);}import{MetaApi}from'./../utils/meta-api';function a0_0x5ae3(){const _0x455c10=['parseBasicServiceConfigs','etc','errors','tagName','excuteOpenPopupButtonClick','title_detail','fieldChangeHandlers','toLowerCase','10vVgoqv','isElement','parseBasicFormConfigs','setParentId','executeCallScenarioButtonClick','addEventListener','split','871716AVuoeE','etcConfig','startsWith','after','parent_id','1GModIn','parseBasicGridConfigs','menu','dispatchEvent','fetch','properties','grist','data','keys','79121sxFBNI','body','detail','includes','meta-form-','12042080qqyANt','params','field-change','form-field-change','menuInfo','5840gjlewp','filterForm','636wuNpos','2243556FvAeba','parseBasicButtonConfigs','isNotEmpty','active','dataChangeEventHandler','lifecycle','is_detail','title','connectedCallback','2890547NRwAiD','isEmpty','parseBasicTabConfigs','data-changed','9Ciibfu','1078302BWAckX','isDetail','getParams','is_popup','isPage','name','fetchHandler','5656Zypdyz'];a0_0x5ae3=function(){return _0x455c10;};return a0_0x5ae3();}import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x182614=>class extends _0x182614{static get[a0_0x483193(0xe0)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x2c3eac=>Boolean(_0x2c3eac)},'is_popup':{'type':Boolean,'converter':_0x53d157=>Boolean(_0x53d157)},'is_activity':{'type':Boolean,'converter':_0x563ea7=>Boolean(_0x563ea7)},'is_readonly':{'type':Boolean,'converter':_0x818dc7=>Boolean(_0x818dc7)}};}get[a0_0x483193(0xd0)](){const _0x173251=a0_0x483193;return!0x0===this[_0x173251(0xf7)]||!0x0===this[_0x173251(0xc2)];}get[a0_0x483193(0xc0)](){const _0x458375=a0_0x483193;return!ValueUtil[_0x458375(0xfb)](this[_0x458375(0xf7)])&&this[_0x458375(0xf7)];}async['dataChangeEventHandler'](_0x5f501d){const _0x2de2f0=a0_0x483193;let {after:_0x3ed18c,before:_0x5c23b6,column:_0x16a0ec,record:_0x4ddcd8,row:_0x48fa70}=_0x5f501d[_0x2de2f0(0xe6)],_0x2080eb=_0x16a0ec[_0x2de2f0(0xc4)];if(Object[_0x2de2f0(0xe3)](this['fieldChangeHandlers']||{})[_0x2de2f0(0xe7)](_0x2080eb)){let _0x9c4ca1,_0x34de0f=(await MetaApi['callScenario'](void 0x0,this[_0x2de2f0(0xcd)][_0x2080eb],{'columnName':_0x2080eb,'column':_0x16a0ec,'record':_0x4ddcd8,'after':_0x3ed18c,'before':_0x5c23b6,'row':_0x48fa70},!0x1))[_0x2de2f0(0xe2)]['runScenario'][_0x2de2f0(0xe2)]['result'];if(!_0x34de0f)return;_0x9c4ca1=this[_0x2de2f0(0xe1)]?this[_0x2de2f0(0xe1)][_0x2de2f0(0xe1)][_0x2de2f0(0xe5)]:this,Object[_0x2de2f0(0xe3)](_0x34de0f)['forEach'](_0x69769d=>{const _0x12a437=_0x2de2f0;_0x9c4ca1[_0x12a437(0xde)](new CustomEvent(_0x12a437(0xeb),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x4ddcd8,'row':_0x48fa70,'after':_0x34de0f[_0x69769d],'before':_0x4ddcd8[_0x69769d],'column':{'name':_0x69769d}}}));});}this[_0x2de2f0(0xde)](new CustomEvent(_0x2de2f0(0xfd),{'bubbles':!0x0,'composed':!0x0,'detail':_0x5f501d[_0x2de2f0(0xe6)]}));}async[a0_0x483193(0xf9)](){const _0x54a3e8=a0_0x483193;super[_0x54a3e8(0xf9)]&&await super[_0x54a3e8(0xf9)](),this[_0x54a3e8(0xca)][_0x54a3e8(0xce)]()[_0x54a3e8(0xd8)](_0x54a3e8(0xe8))?this[_0x54a3e8(0xd4)](_0x54a3e8(0xec),async _0x3efd32=>{const _0x52c20e=_0x54a3e8;await this[_0x52c20e(0xf5)](_0x3efd32);}):this['addEventListener'](_0x54a3e8(0xeb),async _0x208d8c=>{const _0x32c826=_0x54a3e8;await this[_0x32c826(0xf5)](_0x208d8c);});}async['pageUpdated'](_0x14752d,_0x199afd,_0x3f6e3a){const _0x5b68bb=a0_0x483193;let _0x16e5ec=this[_0x5b68bb(0xf6)]?.[_0x5b68bb(0xea)]?this['lifecycle']['params']:{};this[_0x5b68bb(0xc3)]&&this[_0x5b68bb(0xf4)]&&0x0==_0x3f6e3a[_0x5b68bb(0xf4)]&&ValueUtil[_0x5b68bb(0xf3)](_0x16e5ec)&&this[_0x5b68bb(0xdf)]();}get['isPopup'](){const _0x22a589=a0_0x483193;return!ValueUtil[_0x22a589(0xfb)](this[_0x22a589(0xc2)])&&this[_0x22a589(0xc2)];}get['isPage'](){const _0x4c88ab=a0_0x483193;return!this[_0x4c88ab(0xf7)]&&!this[_0x4c88ab(0xc2)];}async['getAndParseMenuMeta'](){const _0xd7434=a0_0x483193;let _0x12c8ff=await MetaApi['getMenuMeta'](this);_0x12c8ff&&(this[_0xd7434(0xed)]=_0x12c8ff[_0xd7434(0xdd)],this[_0xd7434(0xd7)]=_0x12c8ff[_0xd7434(0xc8)],this[_0xd7434(0xdc)]&&this[_0xd7434(0xdc)](_0x12c8ff),this[_0xd7434(0xc7)]&&this[_0xd7434(0xc7)](_0x12c8ff),this[_0xd7434(0xd1)]&&this['parseBasicFormConfigs'](_0x12c8ff),this[_0xd7434(0xfc)]&&this[_0xd7434(0xfc)](_0x12c8ff),this[_0xd7434(0xf2)]&&this[_0xd7434(0xf2)](_0x12c8ff));}async[a0_0x483193(0xdf)](){const _0x2fde54=a0_0x483193;ValueUtil[_0x2fde54(0xf3)](this['grist'])?this[_0x2fde54(0xe1)][_0x2fde54(0xdf)]():(ValueUtil[_0x2fde54(0xf3)](this[_0x2fde54(0xef)])||this[_0x2fde54(0xc5)])&&await this[_0x2fde54(0xc5)]();}async[a0_0x483193(0xcb)](_0x361414,_0x5f017f,_0x41bdc4){const _0x3aaa79=a0_0x483193;let _0x496bb0=TermsUtil['tTitle'](_0x361414[_0x3aaa79(0xf8)]);ValueUtil[_0x3aaa79(0xf3)](_0x361414[_0x3aaa79(0xcc)])&&(_0x496bb0=_0x496bb0+'-'+ValueUtil[_0x3aaa79(0xc1)](_0x5f017f,..._0x361414[_0x3aaa79(0xcc)][_0x3aaa79(0xd5)]('.'))),MetaApi['openDynamicPopup'](_0x496bb0,_0x361414,_0x5f017f,_0x41bdc4);}async[a0_0x483193(0xd3)](_0x2ff323,_0x2b0971,_0x55ea83){const _0x15f263=a0_0x483193;let _0x3cff20=await MetaApi['callScenario'](_0x2ff323[_0x15f263(0xc4)],_0x2ff323[_0x15f263(0xc4)],_0x2b0971);!0x1!==_0x3cff20&&!_0x3cff20[_0x15f263(0xc9)]&&ValueUtil[_0x15f263(0xf3)](_0x2ff323[_0x15f263(0xd9)])&&_0x55ea83();}[a0_0x483193(0xd2)](_0x21e91d){const _0x46a744=a0_0x483193;this[_0x46a744(0xda)]=_0x21e91d,this[_0x46a744(0xdf)]();}};
1
+ const a0_0x289660=a0_0x4474;(function(_0x45819e,_0x3c50cb){const _0x3f4ff7=a0_0x4474,_0x17ef52=_0x45819e();while(!![]){try{const _0x476be6=-parseInt(_0x3f4ff7(0x12d))/0x1+-parseInt(_0x3f4ff7(0x146))/0x2*(parseInt(_0x3f4ff7(0x126))/0x3)+-parseInt(_0x3f4ff7(0x155))/0x4+-parseInt(_0x3f4ff7(0x148))/0x5+-parseInt(_0x3f4ff7(0x12f))/0x6+parseInt(_0x3f4ff7(0x15a))/0x7*(-parseInt(_0x3f4ff7(0x132))/0x8)+parseInt(_0x3f4ff7(0x15b))/0x9;if(_0x476be6===_0x3c50cb)break;else _0x17ef52['push'](_0x17ef52['shift']());}catch(_0x42500a){_0x17ef52['push'](_0x17ef52['shift']());}}}(a0_0x4b16,0x1a3a4));function a0_0x4474(_0x437d83,_0x128c77){const _0x4b169e=a0_0x4b16();return a0_0x4474=function(_0x447432,_0x57e621){_0x447432=_0x447432-0x125;let _0x672ddc=_0x4b169e[_0x447432];return _0x672ddc;},a0_0x4474(_0x437d83,_0x128c77);}function a0_0x4b16(){const _0x1fac8b=['form-field-change','lifecycle','openDynamicPopup','grist','detail','parseBasicServiceConfigs','includes','menu','connectedCallback','title_detail','fieldChangeHandlers','165060BvKXtl','toLowerCase','getParams','parseBasicFormConfigs','callScenario','94339fsXvks','5996592oKpUjG','isElement','tTitle','etc','etcConfig','parseBasicButtonConfigs','pageUpdated','name','378057idOPmp','excuteOpenPopupButtonClick','runScenario','meta-form-','active','body','field-change','148677klPAEe','isNotEmpty','70326aLKjIj','properties','menuInfo','80XGEbcD','keys','data','data-changed','is_popup','fetchHandler','split','parent_id','isPopup','addEventListener','isPage','parseBasicTabConfigs','isEmpty','parseBasicGridConfigs','isDetail','errors','fetch','is_detail','dataChangeEventHandler','params','2qTIdXx','dispatchEvent','482040ODPyCy','filterForm'];a0_0x4b16=function(){return _0x1fac8b;};return a0_0x4b16();}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x175f24=>class extends _0x175f24{static get[a0_0x289660(0x130)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x28e14f=>Boolean(_0x28e14f)},'is_popup':{'type':Boolean,'converter':_0x121841=>Boolean(_0x121841)},'is_activity':{'type':Boolean,'converter':_0x56245f=>Boolean(_0x56245f)},'is_readonly':{'type':Boolean,'converter':_0x2048ec=>Boolean(_0x2048ec)}};}get[a0_0x289660(0x15c)](){const _0x487d48=a0_0x289660;return!0x0===this[_0x487d48(0x143)]||!0x0===this['is_popup'];}get[a0_0x289660(0x140)](){const _0xdc86ff=a0_0x289660;return!ValueUtil[_0xdc86ff(0x13e)](this[_0xdc86ff(0x143)])&&this[_0xdc86ff(0x143)];}async[a0_0x289660(0x144)](_0x5f4dea){const _0xab6171=a0_0x289660;let {after:_0x39c974,before:_0x5b72b8,column:_0x4c8dba,record:_0x4f425c,row:_0x4dc200}=_0x5f4dea[_0xab6171(0x14e)],_0x4034b9=_0x4c8dba[_0xab6171(0x125)];if(Object[_0xab6171(0x133)](this['fieldChangeHandlers']||{})[_0xab6171(0x150)](_0x4034b9)){let _0x367de0,_0xd65ba4=(await MetaApi[_0xab6171(0x159)](void 0x0,this[_0xab6171(0x154)][_0x4034b9],{'columnName':_0x4034b9,'column':_0x4c8dba,'record':_0x4f425c,'after':_0x39c974,'before':_0x5b72b8,'row':_0x4dc200},!0x1))[_0xab6171(0x134)][_0xab6171(0x128)][_0xab6171(0x134)]['result'];if(!_0xd65ba4)return;_0x367de0=this[_0xab6171(0x14d)]?this[_0xab6171(0x14d)][_0xab6171(0x14d)][_0xab6171(0x12b)]:this,Object[_0xab6171(0x133)](_0xd65ba4)['forEach'](_0x27f7bf=>{const _0x17ba52=_0xab6171;_0x367de0[_0x17ba52(0x147)](new CustomEvent(_0x17ba52(0x12c),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x4f425c,'row':_0x4dc200,'after':_0xd65ba4[_0x27f7bf],'before':_0x4f425c[_0x27f7bf],'column':{'name':_0x27f7bf}}}));});}this['dispatchEvent'](new CustomEvent(_0xab6171(0x135),{'bubbles':!0x0,'composed':!0x0,'detail':_0x5f4dea[_0xab6171(0x14e)]}));}async[a0_0x289660(0x152)](){const _0x153f42=a0_0x289660;super[_0x153f42(0x152)]&&await super[_0x153f42(0x152)](),this['tagName'][_0x153f42(0x156)]()['startsWith'](_0x153f42(0x129))?this[_0x153f42(0x13b)](_0x153f42(0x14a),async _0x2f6b7a=>{const _0x61319a=_0x153f42;await this[_0x61319a(0x144)](_0x2f6b7a);}):this[_0x153f42(0x13b)](_0x153f42(0x12c),async _0x17c9fc=>{const _0x56b33f=_0x153f42;await this[_0x56b33f(0x144)](_0x17c9fc);});}async[a0_0x289660(0x161)](_0x1804e3,_0x1b2ff2,_0x3b3ed7){const _0x48ef52=a0_0x289660;let _0x14cb85=this[_0x48ef52(0x14b)]?.[_0x48ef52(0x145)]?this[_0x48ef52(0x14b)]['params']:{};this['isPage']&&this['active']&&0x0==_0x3b3ed7[_0x48ef52(0x12a)]&&ValueUtil['isNotEmpty'](_0x14cb85)&&this[_0x48ef52(0x142)]();}get[a0_0x289660(0x13a)](){const _0x198bd6=a0_0x289660;return!ValueUtil[_0x198bd6(0x13e)](this['is_popup'])&&this['is_popup'];}get[a0_0x289660(0x13c)](){const _0x3b3c17=a0_0x289660;return!this[_0x3b3c17(0x143)]&&!this[_0x3b3c17(0x136)];}async['getAndParseMenuMeta'](){const _0x47af29=a0_0x289660;let _0x37afda=await MetaApi['getMenuMeta'](this);_0x37afda&&(this[_0x47af29(0x131)]=_0x37afda[_0x47af29(0x151)],this[_0x47af29(0x15f)]=_0x37afda[_0x47af29(0x15e)],this[_0x47af29(0x13f)]&&this['parseBasicGridConfigs'](_0x37afda),this[_0x47af29(0x14f)]&&this[_0x47af29(0x14f)](_0x37afda),this['parseBasicFormConfigs']&&this[_0x47af29(0x158)](_0x37afda),this[_0x47af29(0x13d)]&&this[_0x47af29(0x13d)](_0x37afda),this['parseBasicButtonConfigs']&&this[_0x47af29(0x160)](_0x37afda));}async[a0_0x289660(0x142)](){const _0x132ba8=a0_0x289660;ValueUtil[_0x132ba8(0x12e)](this[_0x132ba8(0x14d)])?this[_0x132ba8(0x14d)][_0x132ba8(0x142)]():(ValueUtil[_0x132ba8(0x12e)](this[_0x132ba8(0x149)])||this[_0x132ba8(0x137)])&&await this[_0x132ba8(0x137)]();}async[a0_0x289660(0x127)](_0x14d28f,_0x1e95df,_0x5511d8){const _0x122cfa=a0_0x289660;let _0x816645=TermsUtil[_0x122cfa(0x15d)](_0x14d28f['title']);ValueUtil[_0x122cfa(0x12e)](_0x14d28f[_0x122cfa(0x153)])&&(_0x816645=_0x816645+'-'+ValueUtil[_0x122cfa(0x157)](_0x1e95df,..._0x14d28f[_0x122cfa(0x153)][_0x122cfa(0x138)]('.'))),MetaApi[_0x122cfa(0x14c)](_0x816645,_0x14d28f,_0x1e95df,_0x5511d8);}async['executeCallScenarioButtonClick'](_0xf7bbf7,_0x3f1450,_0x5eec69){const _0x45888a=a0_0x289660;let _0x6c401=await MetaApi[_0x45888a(0x159)](_0xf7bbf7[_0x45888a(0x125)],_0xf7bbf7[_0x45888a(0x125)],_0x3f1450);!0x1!==_0x6c401&&!_0x6c401[_0x45888a(0x141)]&&ValueUtil[_0x45888a(0x12e)](_0xf7bbf7['after'])&&_0x5eec69();}['setParentId'](_0x45640b){const _0x5b8015=a0_0x289660;this[_0x5b8015(0x139)]=_0x45640b,this[_0x5b8015(0x142)]();}};
@@ -1,4 +1,4 @@
1
- function a0_0x48ce(){const _0x1363f4=['stringify','parseGristConfigs','getData','1960042fsFvYd','parseGridConfigSet','parseBasicGridConfigs','getSelectedIdList','menuInfo','isNotEmpty','deleteByIds','941240eQImKf','getBasicGristHtml','findOne','parse','gridColumnConfig','clear','save','find','ox-filters-form','context','147KELoFo','renderRoot','querySelector','205HQePSS','pageInitialized','exportableData','render','ox-grist','63Arkrxx','grid','grist','startsWith','gridEmphasized','131952nikGzv','connectedCallback','126702xwGExV','keys','getAndParseMenuMeta','shadowRoot','searchConfig','forEach','firstUpdated','patchesForUpdateMultiple','gristId','gridConfig','updateMultiple','dataSet','delete','records','24195850fWgQeA','import','isPage','fetch','4460391HEEnqx','data','getParams','grid_column','81857TVxrqE','filterFormId','export','title'];a0_0x48ce=function(){return _0x1363f4;};return a0_0x48ce();}const a0_0x5b4065=a0_0xa1b3;(function(_0x84dd27,_0x305496){const _0x28f7d2=a0_0xa1b3,_0x1f786e=_0x84dd27();while(!![]){try{const _0x533ff7=parseInt(_0x28f7d2(0x1ec))/0x1+-parseInt(_0x28f7d2(0x1f3))/0x2+parseInt(_0x28f7d2(0x1e8))/0x3+-parseInt(_0x28f7d2(0x1d4))/0x4*(-parseInt(_0x28f7d2(0x1ca))/0x5)+-parseInt(_0x28f7d2(0x1d6))/0x6*(-parseInt(_0x28f7d2(0x204))/0x7)+-parseInt(_0x28f7d2(0x1fa))/0x8*(-parseInt(_0x28f7d2(0x1cf))/0x9)+-parseInt(_0x28f7d2(0x1e4))/0xa;if(_0x533ff7===_0x305496)break;else _0x1f786e['push'](_0x1f786e['shift']());}catch(_0x1ef13a){_0x1f786e['push'](_0x1f786e['shift']());}}}(a0_0x48ce,0xc0876));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0xa1b3(_0x13abbf,_0x1d6527){const _0x48ce3b=a0_0x48ce();return a0_0xa1b3=function(_0xa1b384,_0x4f0615){_0xa1b384=_0xa1b384-0x1ca;let _0x5b9b27=_0x48ce3b[_0xa1b384];return _0x5b9b27;},a0_0xa1b3(_0x13abbf,_0x1d6527);}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x4c4145=>class extends MetaButtonMixin(_0x4c4145){static get['styles'](){return MetaApi['getBasicGristStyles']();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x5b4065(0x1d1)](){const _0x388fd7=a0_0x5b4065;return this[_0x388fd7(0x205)]?.[_0x388fd7(0x206)](this[_0x388fd7(0x1de)]);}get['filterForm'](){const _0x172f74=a0_0x5b4065;return this[_0x172f74(0x1d9)]?.[_0x172f74(0x206)](this[_0x172f74(0x1ed)]);}get[a0_0x5b4065(0x203)](){return MetaUiUtil['getContextObject'](this);}async[a0_0x5b4065(0x1d5)](){const _0x590855=a0_0x5b4065;this['gristId']=_0x590855(0x1ce),this[_0x590855(0x1ed)]=_0x590855(0x202),await this[_0x590855(0x1d8)](),this['isElement']&&await this[_0x590855(0x1f1)](),this['activityDataSet']&&(this[_0x590855(0x1e1)]=this['activityDataSet']),super[_0x590855(0x1d5)]&&await super[_0x590855(0x1d5)]();}async[a0_0x5b4065(0x1dc)](){const _0x524109=a0_0x5b4065;super[_0x524109(0x1dc)]&&await super[_0x524109(0x1dc)]();}async[a0_0x5b4065(0x1cb)](){const _0x149f40=a0_0x5b4065;this[_0x149f40(0x1e6)]&&await this[_0x149f40(0x1f1)](),super[_0x149f40(0x1cb)]&&await super[_0x149f40(0x1cb)]();}[a0_0x5b4065(0x1cd)](){const _0x57e25e=a0_0x5b4065;return html`
2
- ${MetaApi[_0x57e25e(0x1fb)](this)}
3
- ${this[_0x57e25e(0x1e6)]?html``:MetaUiUtil['getButtonContainer'](this)}
4
- `;}[a0_0x5b4065(0x1f5)](_0x5b5d0b){const _0x2ca958=a0_0x5b4065;this[_0x2ca958(0x1df)]=_0x5b5d0b[_0x2ca958(0x1d0)],this[_0x2ca958(0x1fe)]=_0x5b5d0b[_0x2ca958(0x1eb)],this[_0x2ca958(0x1da)]=_0x5b5d0b['search'],this[_0x2ca958(0x1d3)]=_0x5b5d0b[_0x2ca958(0x1d3)];}async[a0_0x5b4065(0x1f1)](){const _0x17811b=a0_0x5b4065;this['gristConfigSet']=await MetaApi[_0x17811b(0x1f4)](this);}async[a0_0x5b4065(0x1e7)](){const _0x4d40c0=a0_0x5b4065;await this[_0x4d40c0(0x1d1)][_0x4d40c0(0x1e7)]();}async[a0_0x5b4065(0x200)](){const _0x517451=a0_0x5b4065;let _0x4be8a1=MetaApi[_0x517451(0x1dd)](this[_0x517451(0x1d1)]);!!ValueUtil[_0x517451(0x1f8)](_0x4be8a1)&&await this[_0x517451(0x1e0)](_0x4be8a1)&&this[_0x517451(0x1e7)]();}async[a0_0x5b4065(0x201)](){const _0x564a3d=a0_0x5b4065;let _0x5e23c7=MetaApi['getSelectedIdList'](this[_0x564a3d(0x1d1)],!0x0);return ValueUtil[_0x564a3d(0x1f8)](_0x5e23c7)?await this[_0x564a3d(0x1fc)](_0x5e23c7[0x0]):{};}async[a0_0x5b4065(0x1e2)](){const _0x44e278=a0_0x5b4065;let _0x4ebd42=MetaApi[_0x44e278(0x1f6)](this[_0x44e278(0x1d1)],!0x0);!!ValueUtil[_0x44e278(0x1f8)](_0x4ebd42)&&await this[_0x44e278(0x1f9)](_0x4ebd42)&&this[_0x44e278(0x1e7)]();}async[a0_0x5b4065(0x1ee)](){const _0x598a50=a0_0x5b4065;let _0x41036a=TermsUtil['tTitle'](ValueUtil[_0x598a50(0x1ea)](this[_0x598a50(0x1f7)],_0x598a50(0x1ef)));return await MetaApi[_0x598a50(0x1cc)](this['isElement'],_0x41036a,this[_0x598a50(0x1d1)]);}async[a0_0x5b4065(0x1e5)](){}async[a0_0x5b4065(0x1ff)](){const _0x50a716=a0_0x5b4065;this[_0x50a716(0x1d1)]&&(this['grist'][_0x50a716(0x1e9)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x5b4065(0x1f2)](){const _0x577606=a0_0x5b4065;let _0x3f7b3e=this['grist']['___data'][_0x577606(0x1e3)];return _0x3f7b3e=JSON[_0x577606(0x1fd)](JSON[_0x577606(0x1f0)](_0x3f7b3e)),_0x3f7b3e[_0x577606(0x1db)](_0x32f11c=>{const _0x2ef496=_0x577606;Object[_0x2ef496(0x1d7)](_0x32f11c)[_0x2ef496(0x1db)](_0x139702=>{const _0x41b25e=_0x2ef496;_0x139702[_0x41b25e(0x1d2)]('__')&&delete _0x32f11c[_0x139702];});}),_0x3f7b3e;}};
1
+ const a0_0x18d367=a0_0x17cc;(function(_0xcb715b,_0x4ecf93){const _0x528d14=a0_0x17cc,_0x2c2059=_0xcb715b();while(!![]){try{const _0x21c782=-parseInt(_0x528d14(0xca))/0x1+parseInt(_0x528d14(0xbf))/0x2*(parseInt(_0x528d14(0xd6))/0x3)+parseInt(_0x528d14(0xc7))/0x4*(parseInt(_0x528d14(0xd5))/0x5)+-parseInt(_0x528d14(0xda))/0x6+-parseInt(_0x528d14(0xde))/0x7*(-parseInt(_0x528d14(0xac))/0x8)+parseInt(_0x528d14(0xd0))/0x9*(-parseInt(_0x528d14(0xc5))/0xa)+-parseInt(_0x528d14(0xd7))/0xb*(parseInt(_0x528d14(0xb9))/0xc);if(_0x21c782===_0x4ecf93)break;else _0x2c2059['push'](_0x2c2059['shift']());}catch(_0x5cbf86){_0x2c2059['push'](_0x2c2059['shift']());}}}(a0_0x42a0,0x364b3));function a0_0x17cc(_0x4787f0,_0x1c33e9){const _0x42a0fa=a0_0x42a0();return a0_0x17cc=function(_0x17cca7,_0x2d3fd3){_0x17cca7=_0x17cca7-0xa9;let _0x398dcb=_0x42a0fa[_0x17cca7];return _0x398dcb;},a0_0x17cc(_0x4787f0,_0x1c33e9);}import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x113d04=>class extends MetaButtonMixin(_0x113d04){static get[a0_0x18d367(0xb5)](){const _0x447725=a0_0x18d367;return MetaApi[_0x447725(0xcb)]();}static get[a0_0x18d367(0xc8)](){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_0x18d367(0xb7)](){const _0x5f2d75=a0_0x18d367;return this[_0x5f2d75(0xbb)]?.['querySelector'](this[_0x5f2d75(0xc3)]);}get[a0_0x18d367(0xe2)](){const _0x101d8a=a0_0x18d367;return this['shadowRoot']?.[_0x101d8a(0xb2)](this[_0x101d8a(0xb3)]);}get[a0_0x18d367(0xcc)](){const _0x2ca854=a0_0x18d367;return MetaUiUtil[_0x2ca854(0xab)](this);}async[a0_0x18d367(0xb0)](){const _0x4c4451=a0_0x18d367;this[_0x4c4451(0xc3)]=_0x4c4451(0xd9),this[_0x4c4451(0xb3)]=_0x4c4451(0xb6),await this[_0x4c4451(0xc4)](),this['isElement']&&await this['parseGristConfigs'](),this[_0x4c4451(0xcd)]&&(this[_0x4c4451(0xad)]=this[_0x4c4451(0xcd)]),super[_0x4c4451(0xb0)]&&await super['connectedCallback']();}async[a0_0x18d367(0xe4)](){const _0x2ae3e7=a0_0x18d367;super[_0x2ae3e7(0xe4)]&&await super[_0x2ae3e7(0xe4)]();}async['pageInitialized'](){const _0x57cc87=a0_0x18d367;this[_0x57cc87(0xdd)]&&await this[_0x57cc87(0xdf)](),super[_0x57cc87(0xd3)]&&await super[_0x57cc87(0xd3)]();}['render'](){const _0x4a98b0=a0_0x18d367;return html`
2
+ ${MetaApi[_0x4a98b0(0xcf)](this)}
3
+ ${this[_0x4a98b0(0xdd)]?html``:MetaUiUtil[_0x4a98b0(0xe1)](this)}
4
+ `;}[a0_0x18d367(0xe3)](_0x58aa20){const _0xaeda06=a0_0x18d367;this['gridConfig']=_0x58aa20['grid'],this['gridColumnConfig']=_0x58aa20[_0xaeda06(0xb1)],this['searchConfig']=_0x58aa20[_0xaeda06(0xdb)],this[_0xaeda06(0xc2)]=_0x58aa20[_0xaeda06(0xc2)];}async[a0_0x18d367(0xdf)](){this['gristConfigSet']=await MetaApi['parseGridConfigSet'](this);}async['fetch'](){const _0x2e717f=a0_0x18d367;await this[_0x2e717f(0xb7)][_0x2e717f(0xce)]();}async[a0_0x18d367(0xbc)](){const _0x52a0d4=a0_0x18d367;let _0x5e6b3e=MetaApi['patchesForUpdateMultiple'](this['grist']);!!ValueUtil[_0x52a0d4(0xd4)](_0x5e6b3e)&&await this[_0x52a0d4(0xba)](_0x5e6b3e)&&this[_0x52a0d4(0xce)]();}async[a0_0x18d367(0xd2)](){const _0x3fd435=a0_0x18d367;let _0x33dab9=MetaApi['getSelectedIdList'](this[_0x3fd435(0xb7)],!0x0);return ValueUtil[_0x3fd435(0xd4)](_0x33dab9)?await this[_0x3fd435(0xe0)](_0x33dab9[0x0]):{};}async[a0_0x18d367(0xc6)](){const _0x1e1cd0=a0_0x18d367;let _0x3e487f=MetaApi[_0x1e1cd0(0xc9)](this[_0x1e1cd0(0xb7)],!0x0);!!ValueUtil[_0x1e1cd0(0xd4)](_0x3e487f)&&await this['deleteByIds'](_0x3e487f)&&this[_0x1e1cd0(0xce)]();}async['export'](){const _0x313ab3=a0_0x18d367;let _0x2879ef=TermsUtil['tTitle'](ValueUtil[_0x313ab3(0xa9)](this['menuInfo'],_0x313ab3(0xaf)));return await MetaApi['exportableData'](this[_0x313ab3(0xb8)],_0x2879ef,this['grist']);}async[a0_0x18d367(0xbd)](){}async[a0_0x18d367(0xc1)](){const _0x3e6f46=a0_0x18d367;this[_0x3e6f46(0xb7)]&&(this[_0x3e6f46(0xb7)][_0x3e6f46(0xbe)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0x3d9b0d=a0_0x18d367;let _0x462b1a=this[_0x3d9b0d(0xb7)][_0x3d9b0d(0xdc)][_0x3d9b0d(0xd8)];return _0x462b1a=JSON[_0x3d9b0d(0xb4)](JSON[_0x3d9b0d(0xae)](_0x462b1a)),_0x462b1a[_0x3d9b0d(0xd1)](_0x1c8dd0=>{const _0x269f82=_0x3d9b0d;Object[_0x269f82(0xaa)](_0x1c8dd0)[_0x269f82(0xd1)](_0x52fdc8=>{const _0xa0b3ea=_0x269f82;_0x52fdc8[_0xa0b3ea(0xc0)]('__')&&delete _0x1c8dd0[_0x52fdc8];});}),_0x462b1a;}};function a0_0x42a0(){const _0x118ec1=['72787UdopnC','records','ox-grist','37158hdVaUW','search','___data','isPage','435799oEnsXm','parseGristConfigs','findOne','getButtonContainer','filterForm','parseBasicGridConfigs','firstUpdated','getParams','keys','getContextObject','40KveZbw','dataSet','stringify','title','connectedCallback','grid_column','querySelector','filterFormId','parse','styles','ox-filters-form','grist','isElement','156smAYNw','updateMultiple','renderRoot','save','import','data','308408oAGRUR','startsWith','clear','gridEmphasized','gristId','getAndParseMenuMeta','3441580MFrIhR','delete','1760684IKBPAX','properties','getSelectedIdList','246901KdqQDc','getBasicGristStyles','context','activityDataSet','fetch','getBasicGristHtml','9NdswXa','forEach','find','pageInitialized','isNotEmpty','5UBwAgD','3LjUBgX'];a0_0x42a0=function(){return _0x118ec1;};return a0_0x42a0();}
@@ -1 +1 @@
1
- const a0_0xe20506=a0_0x5abb;function a0_0x5abb(_0x2cbdd4,_0x3a1755){const _0x4f6f0c=a0_0x4f6f();return a0_0x5abb=function(_0x5abbb8,_0x3862bc){_0x5abbb8=_0x5abbb8-0x191;let _0x134754=_0x4f6f0c[_0x5abbb8];return _0x134754;},a0_0x5abb(_0x2cbdd4,_0x3a1755);}(function(_0xce7e2f,_0x19c9bf){const _0x2f4bff=a0_0x5abb,_0x238a96=_0xce7e2f();while(!![]){try{const _0x1ad952=-parseInt(_0x2f4bff(0x192))/0x1+-parseInt(_0x2f4bff(0x1a4))/0x2+parseInt(_0x2f4bff(0x195))/0x3+parseInt(_0x2f4bff(0x19a))/0x4*(parseInt(_0x2f4bff(0x1a6))/0x5)+-parseInt(_0x2f4bff(0x1aa))/0x6*(-parseInt(_0x2f4bff(0x1ab))/0x7)+-parseInt(_0x2f4bff(0x19b))/0x8+-parseInt(_0x2f4bff(0x194))/0x9*(-parseInt(_0x2f4bff(0x198))/0xa);if(_0x1ad952===_0x19c9bf)break;else _0x238a96['push'](_0x238a96['shift']());}catch(_0x458a16){_0x238a96['push'](_0x238a96['shift']());}}}(a0_0x4f6f,0x90dae));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';function a0_0x4f6f(){const _0x369cb5=['122075vDwBbS','getBasicButtonHandler','2192913NcFfMA','957546PyKEls','customButtonHandler','getCustomButtonContainerStyles','40YdvjHO','getContextButtons','1407188rhoaBI','9233152HvUUxl','getCustomButtonContainerStyle','properties','isButtonExist','import','useButtonImport','gristButtonHandler','getButtonActionHandler','getButtonContainer','1071882slOfeQ','useButtonAdd','5eHBZiS','buttonConfig','export','useButtonExport','1519758rVOUON','21bzrvvX','button'];a0_0x4f6f=function(){return _0x369cb5;};return a0_0x4f6f();}export const MetaButtonMixin=_0x5c7ba4=>class extends MetaServiceMixin(_0x5c7ba4){static get[a0_0xe20506(0x19d)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0xe20506(0x19c)](){const _0x5449e0=a0_0xe20506;return MetaUiUtil[_0x5449e0(0x197)]();}[a0_0xe20506(0x199)](){const _0x402cb4=a0_0xe20506;return MetaUiUtil[_0x402cb4(0x199)](this);}[a0_0xe20506(0x1a3)](){return this['isPage']?html``:MetaUiUtil['getButtonContainer'](this);}async[a0_0xe20506(0x193)](_0x1a675d,_0x24e0bd,_0x3e383d){const _0x4d7663=a0_0xe20506;return await MetaUiUtil[_0x4d7663(0x1a2)](this,_0x1a675d,_0x24e0bd,_0x3e383d);}async[a0_0xe20506(0x196)](_0x2549d7){const _0xb88949=a0_0xe20506;await MetaUiUtil[_0xb88949(0x196)](this,_0x2549d7);}async[a0_0xe20506(0x1a1)](_0x4b7a6f,_0x33fada){const _0x3134a1=a0_0xe20506;await MetaUiUtil[_0x3134a1(0x1a1)](this,_0x4b7a6f,_0x33fada);}['parseBasicButtonConfigs'](_0x438395){const _0x294044=a0_0xe20506;this[_0x294044(0x1a7)]=_0x438395[_0x294044(0x191)],this[_0x294044(0x1a0)]=MetaUiUtil[_0x294044(0x19e)](this[_0x294044(0x1a7)],_0x294044(0x19f)),this[_0x294044(0x1a9)]=MetaUiUtil[_0x294044(0x19e)](this['buttonConfig'],_0x294044(0x1a8)),this[_0x294044(0x1a5)]=MetaUiUtil['isButtonExist'](this[_0x294044(0x1a7)],'add');}};
1
+ function a0_0x335d(_0x3301be,_0x3adf7d){const _0x5904b3=a0_0x5904();return a0_0x335d=function(_0x335d72,_0x2d85bb){_0x335d72=_0x335d72-0x118;let _0x2015ce=_0x5904b3[_0x335d72];return _0x2015ce;},a0_0x335d(_0x3301be,_0x3adf7d);}const a0_0x3ef503=a0_0x335d;(function(_0x2828bf,_0x1c7136){const _0x319717=a0_0x335d,_0x32893d=_0x2828bf();while(!![]){try{const _0x3732d7=parseInt(_0x319717(0x119))/0x1+parseInt(_0x319717(0x11c))/0x2*(-parseInt(_0x319717(0x12d))/0x3)+parseInt(_0x319717(0x127))/0x4*(parseInt(_0x319717(0x11a))/0x5)+parseInt(_0x319717(0x129))/0x6+-parseInt(_0x319717(0x131))/0x7*(-parseInt(_0x319717(0x118))/0x8)+-parseInt(_0x319717(0x128))/0x9+parseInt(_0x319717(0x125))/0xa*(-parseInt(_0x319717(0x11e))/0xb);if(_0x3732d7===_0x1c7136)break;else _0x32893d['push'](_0x32893d['shift']());}catch(_0x2f599f){_0x32893d['push'](_0x32893d['shift']());}}}(a0_0x5904,0xc8c37));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x5904(){const _0x186f82=['useButtonExport','getContextButtons','getButtonActionHandler','8gPtojv','349671WgLZQh','5458315dfrpBn','customButtonHandler','3106lcSGAJ','getButtonContainer','44KOTjyn','isButtonExist','useButtonImport','parseBasicButtonConfigs','getCustomButtonContainerStyle','gristButtonHandler','add','1909660XGsoif','getCustomButtonContainerStyles','4ixHwZn','7779573cwQwZq','6091434JKlpyt','buttonConfig','import','getBasicButtonHandler','3138YbSuym','properties','useButtonAdd','export','11329171NhzQPL'];a0_0x5904=function(){return _0x186f82;};return a0_0x5904();}import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x55921c=>class extends MetaServiceMixin(_0x55921c){static get[a0_0x3ef503(0x12e)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x3ef503(0x122)](){const _0x46204b=a0_0x3ef503;return MetaUiUtil[_0x46204b(0x126)]();}[a0_0x3ef503(0x133)](){return MetaUiUtil['getContextButtons'](this);}[a0_0x3ef503(0x11d)](){return this['isPage']?html``:MetaUiUtil['getButtonContainer'](this);}async[a0_0x3ef503(0x12c)](_0x439077,_0xe9ed45,_0x270c97){const _0x293cfa=a0_0x3ef503;return await MetaUiUtil[_0x293cfa(0x134)](this,_0x439077,_0xe9ed45,_0x270c97);}async[a0_0x3ef503(0x11b)](_0x1a60d1){await MetaUiUtil['customButtonHandler'](this,_0x1a60d1);}async['gristButtonHandler'](_0x1ea2a5,_0x2a91de){const _0x4b164e=a0_0x3ef503;await MetaUiUtil[_0x4b164e(0x123)](this,_0x1ea2a5,_0x2a91de);}[a0_0x3ef503(0x121)](_0x229be2){const _0x1442fb=a0_0x3ef503;this[_0x1442fb(0x12a)]=_0x229be2['button'],this[_0x1442fb(0x120)]=MetaUiUtil[_0x1442fb(0x11f)](this[_0x1442fb(0x12a)],_0x1442fb(0x12b)),this[_0x1442fb(0x132)]=MetaUiUtil[_0x1442fb(0x11f)](this['buttonConfig'],_0x1442fb(0x130)),this[_0x1442fb(0x12f)]=MetaUiUtil[_0x1442fb(0x11f)](this[_0x1442fb(0x12a)],_0x1442fb(0x124));}};
@@ -1 +1 @@
1
- const a0_0x35379e=a0_0x2502;(function(_0xcdf427,_0x24d376){const _0x583eda=a0_0x2502,_0x577f59=_0xcdf427();while(!![]){try{const _0x5c8d12=-parseInt(_0x583eda(0xdd))/0x1+-parseInt(_0x583eda(0xd8))/0x2*(parseInt(_0x583eda(0xac))/0x3)+-parseInt(_0x583eda(0x8f))/0x4+parseInt(_0x583eda(0xc2))/0x5*(parseInt(_0x583eda(0xaf))/0x6)+parseInt(_0x583eda(0xd4))/0x7+parseInt(_0x583eda(0xbe))/0x8*(-parseInt(_0x583eda(0xdf))/0x9)+parseInt(_0x583eda(0x9d))/0xa;if(_0x5c8d12===_0x24d376)break;else _0x577f59['push'](_0x577f59['shift']());}catch(_0x54b9a3){_0x577f59['push'](_0x577f59['shift']());}}}(a0_0x389c,0xc33ff));function a0_0x389c(){const _0x915472=['pageInitialized','isEquals','addEventListener','setAttribute','dataSet','2376536RowLsu','parseFormConfigs','formRenderConfig','firstUpdated','map','stopPropagation','orgData','true','__dirtyfields__','isElement','removeGarbageData','keys','check-mandatory-field','detail','13955730MjvINJ','parent_id','isNotEmpty','currentTarget','is_activity','formColumnConfig','function','target','key','startsWith','connectedCallback','confirm','dirtyData','title.info','form','138BUtrIL','Escape','button','1992WAqvrH','editing','fetch','context','form-field-change','patchData','field-change','properties','forEach','Esc','assign','after','getAndParseMenuMeta','findOne','activityDataSet','88Oapxip','name','code-input','filter','18265uNHPUK','dispatchEvent','click','__origin__','clear','OX-GRID-FIELD','currentData','getBasicFormHtml','save','editable','column','formConfigSet','grid_column','header','text.NOTHING_CHANGED','info','focus','isEmpty','5447351kRBdHZ','__dirty__','getBasicFormStyles','record','51176DaVROP','keydown','getContextObject','Enter','activity','144956cJRDKN','tText','548739mIhsXB','showAlertPopup','parseFormConfigSet','cuFlag','render'];a0_0x389c=function(){return _0x915472;};return a0_0x389c();}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x2502(_0x2058e1,_0x102194){const _0x389cd2=a0_0x389c();return a0_0x2502=function(_0x2502b9,_0x457b1e){_0x2502b9=_0x2502b9-0x88;let _0x174930=_0x389cd2[_0x2502b9];return _0x174930;},a0_0x2502(_0x2058e1,_0x102194);}import{ValueUtil}from'../utils/value-util';import{UiUtil}from'../utils/ui-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x39bf2b=>class extends MetaButtonMixin(_0x39bf2b){static get['styles'](){const _0x452cd1=a0_0x2502;return MetaApi[_0x452cd1(0xd6)]();}static get[a0_0x35379e(0xb6)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x35379e(0xb2)](){const _0x2074dc=a0_0x35379e;return MetaUiUtil[_0x2074dc(0xda)](this);}async[a0_0x35379e(0xa7)](){const _0x128130=a0_0x35379e;await this[_0x128130(0xbb)](),this['isElement']&&await this['parseFormConfigs'](),this[_0x128130(0xbd)]&&(this[_0x128130(0x8e)]=this[_0x128130(0xbd)]),!0x0!==this[_0x128130(0xa1)]||this[_0x128130(0x9e)]||(this[_0x128130(0x9e)]=_0x128130(0xdc)),super[_0x128130(0xa7)]&&await super[_0x128130(0xa7)](),this[_0x128130(0x98)]&&await this['fetch'](),this['renderRoot'][_0x128130(0x8c)](_0x128130(0xd9),_0x5c1f7c=>{const _0x2b0c55=_0x128130;switch(_0x5c1f7c[_0x2b0c55(0xa5)]){case _0x2b0c55(0xb8):case _0x2b0c55(0xad):case _0x2b0c55(0xdb):this[_0x2b0c55(0xd2)](),this['currentTarget']&&this['currentTarget']['removeAttribute'](_0x2b0c55(0xb0)),this[_0x2b0c55(0xa0)]=null;}}),this['renderRoot']['addEventListener'](_0x128130(0xc4),_0x2ac4f0=>{const _0xc37b81=_0x128130;_0x2ac4f0[_0xc37b81(0x94)]();let _0x46ab4a=_0x2ac4f0[_0xc37b81(0xa4)];if(this[_0xc37b81(0xa0)]&&(this[_0xc37b81(0xd2)](),this[_0xc37b81(0xa0)]['removeAttribute'](_0xc37b81(0xb0))),_0xc37b81(0xc7)!==_0x46ab4a['tagName']||!_0x46ab4a[_0xc37b81(0xcc)][_0xc37b81(0xd7)][_0xc37b81(0xcb)])return this[_0xc37b81(0xd2)](),void(this[_0xc37b81(0xa0)]=null);this[_0xc37b81(0xa0)]=_0x46ab4a,_0x46ab4a[_0xc37b81(0x8d)](_0xc37b81(0xb0),_0xc37b81(0x96));}),this[_0x128130(0x8c)](_0x128130(0xb5),_0x15f517=>{const _0x5966f6=_0x128130;var {after:_0x5ca716,before:_0x3d2383,column:_0x52d0f7,record:_0x39491f,row:_0x56ee22}=_0x15f517[_0x5966f6(0x9c)];if(ValueUtil['isEquals'](_0x5ca716,_0x3d2383))return;var _0x26a2da=_0x52d0f7['validation'];if(_0x26a2da&&_0x5966f6(0xa3)==typeof _0x26a2da&&!_0x26a2da['call'](this,_0x5ca716,_0x3d2383,_0x39491f,_0x52d0f7))return;let _0x5ce7a1=_0x52d0f7[_0x5966f6(0xbf)];_0x39491f[_0x5ce7a1]=_0x5ca716,_0x39491f[_0x5966f6(0x97)]=_0x39491f[_0x5966f6(0x97)]||{},_0x39491f['__origin__']=_0x39491f[_0x5966f6(0xc5)]||{},_0x39491f['__dirtyfields__'][_0x5ce7a1]={'before':_0x39491f[_0x5966f6(0xc5)][_0x5ce7a1],'after':_0x39491f[_0x5ce7a1]},ValueUtil[_0x5966f6(0x8b)](_0x39491f[_0x5966f6(0x97)][_0x5ce7a1]['before'],_0x39491f['__dirtyfields__'][_0x5ce7a1][_0x5966f6(0xba)])&&delete _0x39491f[_0x5966f6(0x97)][_0x5ce7a1],ValueUtil[_0x5966f6(0x9f)](_0x39491f[_0x5966f6(0x97)])?_0x39491f[_0x5966f6(0xd5)]='M':_0x39491f[_0x5966f6(0xd5)]='',this[_0x5966f6(0xd7)]={..._0x39491f},this[_0x5966f6(0xc3)](new CustomEvent(_0x5966f6(0xb3),{'bubbles':!0x0,'composed':!0x0,'detail':_0x15f517[_0x5966f6(0x9c)]}));});}async[a0_0x35379e(0x92)](){const _0x407fb6=a0_0x35379e;super['firstUpdated']&&await super[_0x407fb6(0x92)]();}async['pageInitialized'](){const _0x2698ed=a0_0x35379e;this['isPage']&&await this[_0x2698ed(0x90)](),super[_0x2698ed(0x8a)]&&await super['pageInitialized'](),this['isPage']&&await this[_0x2698ed(0xb1)]();}[a0_0x35379e(0x89)](){const _0x4d6cdf=a0_0x35379e;return MetaApi[_0x4d6cdf(0xc9)](this);}['parseBasicFormConfigs'](_0x34c746){const _0x467be8=a0_0x35379e;this[_0x467be8(0xa2)]=_0x34c746[_0x467be8(0xce)],this[_0x467be8(0x91)]=_0x34c746[_0x467be8(0xab)],_0x34c746[_0x467be8(0xae)]=_0x34c746['button']['filter'](_0x1da61b=>'save'==_0x1da61b[_0x467be8(0xbf)]);}async['parseFormConfigs'](){const _0x2ff1f3=a0_0x35379e;this[_0x2ff1f3(0xcd)]=await MetaApi[_0x2ff1f3(0xe1)](this);}get[a0_0x35379e(0x95)](){const _0x292f13=a0_0x35379e;return this[_0x292f13(0x99)](this[_0x292f13(0xd7)][_0x292f13(0xc5)]);}get[a0_0x35379e(0xa9)](){const _0x18796d=a0_0x35379e;if(ValueUtil['isEmpty']((this[_0x18796d(0xd7)]||{})['__dirtyfields__']))return{};let _0x32ac92={};return Object['entries'](this[_0x18796d(0xd7)][_0x18796d(0x97)])[_0x18796d(0x93)](([_0x347d45,_0x4884b5])=>{const _0x483004=_0x18796d;0x0==_0x347d45[_0x483004(0xa6)]('__')&&(_0x32ac92[_0x347d45]=_0x4884b5[_0x483004(0xba)]);}),_0x32ac92;}get[a0_0x35379e(0xc8)](){const _0x2f53c7=a0_0x35379e;return this['removeGarbageData'](this[_0x2f53c7(0xd7)]);}[a0_0x35379e(0x99)](_0x4cf52a){const _0x3e882e=a0_0x35379e;let _0xc9cde1={};if(_0x4cf52a)return Object['entries'](_0x4cf52a)[_0x3e882e(0x93)](([_0x229f43,_0x55d557])=>{0x0==_0x229f43['startsWith']('__')&&(_0xc9cde1[_0x229f43]=_0x55d557);}),_0xc9cde1;}get[a0_0x35379e(0xb4)](){const _0x2a1d7a=a0_0x35379e;let _0x5e3ee0=this[_0x2a1d7a(0xa9)],_0x5d96b6=this[_0x2a1d7a(0xd7)],_0x36f325=(this[_0x2a1d7a(0xa2)]||[])[_0x2a1d7a(0xc1)](_0x1c63a3=>_0x2a1d7a(0xc0)===_0x1c63a3['type'])[_0x2a1d7a(0x93)](_0xb0daed=>_0xb0daed[_0x2a1d7a(0xbf)]);if(!ValueUtil[_0x2a1d7a(0xd3)](_0x5e3ee0))return ValueUtil[_0x2a1d7a(0x9f)](_0x5d96b6['id'])?(_0x5e3ee0['id']=_0x5d96b6['id'],_0x5e3ee0['cuFlag']='M'):_0x5e3ee0[_0x2a1d7a(0x88)]='+',Object[_0x2a1d7a(0x9a)](_0x5e3ee0)[_0x2a1d7a(0xb7)](_0x184092=>{'object'==typeof _0x5e3ee0[_0x184092]&&0x0==_0x36f325['includes'](_0x184092)&&(_0x5e3ee0[_0x184092]={'id':_0x5e3ee0[_0x184092]['id']});}),[_0x5e3ee0];}async[a0_0x35379e(0xb1)](){const _0x5ad5c6=a0_0x35379e;if(ValueUtil[_0x5ad5c6(0xd3)](this[_0x5ad5c6(0x9e)]))return;let _0x5d21d3=await this[_0x5ad5c6(0xbc)](this['parent_id']);_0x5d21d3['__seq__']=0x1;let _0x121bc2={};Object[_0x5ad5c6(0xb9)](_0x121bc2,_0x5d21d3),_0x5d21d3[_0x5ad5c6(0xc5)]=_0x121bc2,this[_0x5ad5c6(0xd7)]={..._0x5d21d3};}async[a0_0x35379e(0xca)](){const _0x1a0a3f=a0_0x35379e;let _0x57edbd=this[_0x1a0a3f(0xb4)];if(ValueUtil[_0x1a0a3f(0xd3)](_0x57edbd))return void MetaApi[_0x1a0a3f(0xe0)](_0x1a0a3f(0xaa),_0x1a0a3f(0xd0));let _0x34017b={};(this[_0x1a0a3f(0xa2)]||[])[_0x1a0a3f(0xc1)](_0x59bc97=>!0x0===_0x59bc97['mandatory'])[_0x1a0a3f(0xb7)](_0x239e2f=>{const _0x5a8e5a=_0x1a0a3f;_0x34017b[_0x239e2f[_0x5a8e5a(0xbf)]]=_0x239e2f[_0x5a8e5a(0xcf)];});for(let _0x1450e8 in _0x34017b)if(!_0x57edbd[0x0][_0x1450e8])return void UiUtil['showAlertPopup']('text.check-mandatory',TermsUtil[_0x1a0a3f(0xde)](_0x1a0a3f(0x9b),{'x':TermsUtil['tLabel'](_0x34017b[_0x1450e8])}),_0x1a0a3f(0xd1),_0x1a0a3f(0xa8));let _0x54ff65=await this['updateMultiple'](_0x57edbd);return _0x54ff65&&await this[_0x1a0a3f(0xb1)](),_0x54ff65;}async[a0_0x35379e(0xc6)](){const _0x5be5b7=a0_0x35379e;this[_0x5be5b7(0xd7)]&&(this[_0x5be5b7(0xd7)]={});}['getData'](){const _0x8e8bf6=a0_0x35379e;return this[_0x8e8bf6(0xc8)]||{};}};
1
+ const a0_0x300f65=a0_0x2c52;(function(_0x433959,_0x360e4e){const _0x1930d3=a0_0x2c52,_0x137b51=_0x433959();while(!![]){try{const _0x3324d5=parseInt(_0x1930d3(0x1e6))/0x1*(-parseInt(_0x1930d3(0x207))/0x2)+-parseInt(_0x1930d3(0x1fa))/0x3*(parseInt(_0x1930d3(0x1d2))/0x4)+parseInt(_0x1930d3(0x1fd))/0x5+parseInt(_0x1930d3(0x1ff))/0x6*(parseInt(_0x1930d3(0x1d6))/0x7)+-parseInt(_0x1930d3(0x1c7))/0x8*(parseInt(_0x1930d3(0x1ba))/0x9)+-parseInt(_0x1930d3(0x209))/0xa+parseInt(_0x1930d3(0x1c6))/0xb;if(_0x3324d5===_0x360e4e)break;else _0x137b51['push'](_0x137b51['shift']());}catch(_0x4f56c1){_0x137b51['push'](_0x137b51['shift']());}}}(a0_0x59dd,0x2e1c2));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x2c52(_0x27841a,_0x5f4ca7){const _0x59dd45=a0_0x59dd();return a0_0x2c52=function(_0x2c52eb,_0x18f8ad){_0x2c52eb=_0x2c52eb-0x1b3;let _0x49e72f=_0x59dd45[_0x2c52eb];return _0x49e72f;},a0_0x2c52(_0x27841a,_0x5f4ca7);}function a0_0x59dd(){const _0x1a6e8e=['text.NOTHING_CHANGED','tText','removeAttribute','patchData','activityDataSet','text.check-mandatory','header','title.info','firstUpdated','currentData','fetch','entries','9UXUwEA','after','getBasicFormHtml','currentTarget','Esc','button','styles','detail','__origin__','Enter','filter','formColumnConfig','6686614vpgWLT','331928ofBTwE','render','confirm','__seq__','cuFlag','is_activity','click','check-mandatory-field','true','showAlertPopup','dataSet','4gEKstH','mandatory','form','editing','140TDvulw','map','connectedCallback','forEach','dirtyData','save','addEventListener','isPage','parseBasicFormConfigs','validation','renderRoot','OX-GRID-FIELD','formRenderConfig','parseFormConfigs','findOne','assign','63873cQMfZb','isEmpty','isElement','call','type','keydown','context','isEquals','getData','function','clear','form-field-change','name','record','getBasicFormStyles','includes','parent_id','object','__dirtyfields__','target','571953wDgdiJ','key','setAttribute','145925hGAAdj','orgData','10008touLbp','pageInitialized','before','removeGarbageData','tLabel','grid_column','startsWith','focus','2DLDOgR','isNotEmpty','1855380hKhnfD'];a0_0x59dd=function(){return _0x1a6e8e;};return a0_0x59dd();}import{ValueUtil}from'../utils/value-util';import{UiUtil}from'../utils/ui-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x164c54=>class extends MetaButtonMixin(_0x164c54){static get[a0_0x300f65(0x1c0)](){const _0x15d148=a0_0x300f65;return MetaApi[_0x15d148(0x1f4)]();}static get['properties'](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x300f65(0x1ec)](){return MetaUiUtil['getContextObject'](this);}async[a0_0x300f65(0x1d8)](){const _0x725ad2=a0_0x300f65;await this['getAndParseMenuMeta'](),this[_0x725ad2(0x1e8)]&&await this[_0x725ad2(0x1e3)](),this['activityDataSet']&&(this[_0x725ad2(0x1d1)]=this[_0x725ad2(0x20e)]),!0x0!==this[_0x725ad2(0x1cc)]||this[_0x725ad2(0x1f6)]||(this[_0x725ad2(0x1f6)]='activity'),super['connectedCallback']&&await super[_0x725ad2(0x1d8)](),this[_0x725ad2(0x1e8)]&&await this[_0x725ad2(0x1b8)](),this[_0x725ad2(0x1e0)][_0x725ad2(0x1dc)](_0x725ad2(0x1eb),_0x2ac5af=>{const _0x374231=_0x725ad2;switch(_0x2ac5af[_0x374231(0x1fb)]){case _0x374231(0x1be):case'Escape':case _0x374231(0x1c3):this['focus'](),this[_0x374231(0x1bd)]&&this[_0x374231(0x1bd)][_0x374231(0x20c)](_0x374231(0x1d5)),this[_0x374231(0x1bd)]=null;}}),this[_0x725ad2(0x1e0)]['addEventListener'](_0x725ad2(0x1cd),_0x8e6882=>{const _0x267431=_0x725ad2;_0x8e6882['stopPropagation']();let _0x192c9f=_0x8e6882[_0x267431(0x1f9)];if(this[_0x267431(0x1bd)]&&(this[_0x267431(0x206)](),this[_0x267431(0x1bd)][_0x267431(0x20c)]('editing')),_0x267431(0x1e1)!==_0x192c9f['tagName']||!_0x192c9f['column'][_0x267431(0x1f3)]['editable'])return this['focus'](),void(this[_0x267431(0x1bd)]=null);this[_0x267431(0x1bd)]=_0x192c9f,_0x192c9f[_0x267431(0x1fc)](_0x267431(0x1d5),_0x267431(0x1cf));}),this[_0x725ad2(0x1dc)]('field-change',_0x5db8fa=>{const _0x2fda9a=_0x725ad2;var {after:_0x46af9c,before:_0x19b3d8,column:_0x1e7cb6,record:_0x4b0008,row:_0x82ff9e}=_0x5db8fa[_0x2fda9a(0x1c1)];if(ValueUtil[_0x2fda9a(0x1ed)](_0x46af9c,_0x19b3d8))return;var _0x460752=_0x1e7cb6[_0x2fda9a(0x1df)];if(_0x460752&&_0x2fda9a(0x1ef)==typeof _0x460752&&!_0x460752[_0x2fda9a(0x1e9)](this,_0x46af9c,_0x19b3d8,_0x4b0008,_0x1e7cb6))return;let _0x501320=_0x1e7cb6[_0x2fda9a(0x1f2)];_0x4b0008[_0x501320]=_0x46af9c,_0x4b0008[_0x2fda9a(0x1f8)]=_0x4b0008['__dirtyfields__']||{},_0x4b0008[_0x2fda9a(0x1c2)]=_0x4b0008['__origin__']||{},_0x4b0008[_0x2fda9a(0x1f8)][_0x501320]={'before':_0x4b0008[_0x2fda9a(0x1c2)][_0x501320],'after':_0x4b0008[_0x501320]},ValueUtil['isEquals'](_0x4b0008['__dirtyfields__'][_0x501320][_0x2fda9a(0x201)],_0x4b0008[_0x2fda9a(0x1f8)][_0x501320][_0x2fda9a(0x1bb)])&&delete _0x4b0008[_0x2fda9a(0x1f8)][_0x501320],ValueUtil[_0x2fda9a(0x208)](_0x4b0008[_0x2fda9a(0x1f8)])?_0x4b0008['__dirty__']='M':_0x4b0008['__dirty__']='',this[_0x2fda9a(0x1f3)]={..._0x4b0008},this['dispatchEvent'](new CustomEvent(_0x2fda9a(0x1f1),{'bubbles':!0x0,'composed':!0x0,'detail':_0x5db8fa['detail']}));});}async[a0_0x300f65(0x1b6)](){const _0xe443a4=a0_0x300f65;super[_0xe443a4(0x1b6)]&&await super[_0xe443a4(0x1b6)]();}async['pageInitialized'](){const _0x4e7c4f=a0_0x300f65;this[_0x4e7c4f(0x1dd)]&&await this[_0x4e7c4f(0x1e3)](),super[_0x4e7c4f(0x200)]&&await super[_0x4e7c4f(0x200)](),this['isPage']&&await this[_0x4e7c4f(0x1b8)]();}[a0_0x300f65(0x1c8)](){const _0x54bd27=a0_0x300f65;return MetaApi[_0x54bd27(0x1bc)](this);}[a0_0x300f65(0x1de)](_0x334165){const _0x323621=a0_0x300f65;this['formColumnConfig']=_0x334165[_0x323621(0x204)],this[_0x323621(0x1e2)]=_0x334165[_0x323621(0x1d4)],_0x334165[_0x323621(0x1bf)]=_0x334165[_0x323621(0x1bf)][_0x323621(0x1c4)](_0x4a2a0a=>_0x323621(0x1db)==_0x4a2a0a[_0x323621(0x1f2)]);}async[a0_0x300f65(0x1e3)](){this['formConfigSet']=await MetaApi['parseFormConfigSet'](this);}get[a0_0x300f65(0x1fe)](){const _0x567639=a0_0x300f65;return this[_0x567639(0x202)](this['record'][_0x567639(0x1c2)]);}get[a0_0x300f65(0x1da)](){const _0x5bdd80=a0_0x300f65;if(ValueUtil[_0x5bdd80(0x1e7)]((this[_0x5bdd80(0x1f3)]||{})[_0x5bdd80(0x1f8)]))return{};let _0x51a203={};return Object[_0x5bdd80(0x1b9)](this[_0x5bdd80(0x1f3)][_0x5bdd80(0x1f8)])[_0x5bdd80(0x1d7)](([_0x370c64,_0xcaa677])=>{const _0x11054a=_0x5bdd80;0x0==_0x370c64[_0x11054a(0x205)]('__')&&(_0x51a203[_0x370c64]=_0xcaa677[_0x11054a(0x1bb)]);}),_0x51a203;}get['currentData'](){const _0x120940=a0_0x300f65;return this[_0x120940(0x202)](this[_0x120940(0x1f3)]);}[a0_0x300f65(0x202)](_0x2aa726){const _0x3a39f6=a0_0x300f65;let _0x42bb40={};if(_0x2aa726)return Object[_0x3a39f6(0x1b9)](_0x2aa726)[_0x3a39f6(0x1d7)](([_0x3f9ada,_0x5a61cf])=>{0x0==_0x3f9ada['startsWith']('__')&&(_0x42bb40[_0x3f9ada]=_0x5a61cf);}),_0x42bb40;}get[a0_0x300f65(0x20d)](){const _0x518cde=a0_0x300f65;let _0x592476=this['dirtyData'],_0x5b0e45=this[_0x518cde(0x1f3)],_0x350037=(this[_0x518cde(0x1c5)]||[])[_0x518cde(0x1c4)](_0x52ef8c=>'code-input'===_0x52ef8c[_0x518cde(0x1ea)])[_0x518cde(0x1d7)](_0xc852f1=>_0xc852f1[_0x518cde(0x1f2)]);if(!ValueUtil[_0x518cde(0x1e7)](_0x592476))return ValueUtil[_0x518cde(0x208)](_0x5b0e45['id'])?(_0x592476['id']=_0x5b0e45['id'],_0x592476[_0x518cde(0x1cb)]='M'):_0x592476[_0x518cde(0x1cb)]='+',Object['keys'](_0x592476)[_0x518cde(0x1d9)](_0x3c9487=>{const _0x3437c1=_0x518cde;_0x3437c1(0x1f7)==typeof _0x592476[_0x3c9487]&&0x0==_0x350037[_0x3437c1(0x1f5)](_0x3c9487)&&(_0x592476[_0x3c9487]={'id':_0x592476[_0x3c9487]['id']});}),[_0x592476];}async[a0_0x300f65(0x1b8)](){const _0x46bb71=a0_0x300f65;if(ValueUtil[_0x46bb71(0x1e7)](this[_0x46bb71(0x1f6)]))return;let _0x5e16e9=await this[_0x46bb71(0x1e4)](this[_0x46bb71(0x1f6)]);_0x5e16e9[_0x46bb71(0x1ca)]=0x1;let _0x59c458={};Object[_0x46bb71(0x1e5)](_0x59c458,_0x5e16e9),_0x5e16e9[_0x46bb71(0x1c2)]=_0x59c458,this[_0x46bb71(0x1f3)]={..._0x5e16e9};}async[a0_0x300f65(0x1db)](){const _0xe71fa6=a0_0x300f65;let _0x5ba24d=this[_0xe71fa6(0x20d)];if(ValueUtil[_0xe71fa6(0x1e7)](_0x5ba24d))return void MetaApi[_0xe71fa6(0x1d0)](_0xe71fa6(0x1b5),_0xe71fa6(0x20a));let _0x18f359={};(this[_0xe71fa6(0x1c5)]||[])['filter'](_0x34764f=>!0x0===_0x34764f[_0xe71fa6(0x1d3)])[_0xe71fa6(0x1d9)](_0x5b0528=>{const _0x1a90e9=_0xe71fa6;_0x18f359[_0x5b0528['name']]=_0x5b0528[_0x1a90e9(0x1b4)];});let _0x4234e4=this[_0xe71fa6(0x1b7)];for(let _0xa7907f in _0x18f359)if(!_0x4234e4[_0xa7907f])return void UiUtil[_0xe71fa6(0x1d0)](_0xe71fa6(0x1b3),TermsUtil[_0xe71fa6(0x20b)](_0xe71fa6(0x1ce),{'x':TermsUtil[_0xe71fa6(0x203)](_0x18f359[_0xa7907f])}),'info',_0xe71fa6(0x1c9));let _0x2eda16=await this['updateMultiple'](_0x5ba24d);return _0x2eda16&&await this[_0xe71fa6(0x1b8)](),_0x2eda16;}async[a0_0x300f65(0x1f0)](){const _0x4cd70=a0_0x300f65;this[_0x4cd70(0x1f3)]&&(this['record']={});}[a0_0x300f65(0x1ee)](){const _0x3e7866=a0_0x300f65;return this[_0x3e7866(0x1b7)]||{};}};
@@ -1 +1 @@
1
- function a0_0x1685(_0x55d1f4,_0x3f448f){const _0x24e054=a0_0x24e0();return a0_0x1685=function(_0x16859a,_0x503c85){_0x16859a=_0x16859a-0x66;let _0x38c70f=_0x24e054[_0x16859a];return _0x38c70f;},a0_0x1685(_0x55d1f4,_0x3f448f);}const a0_0xcf95e5=a0_0x1685;(function(_0x1a935d,_0x4bfd8d){const _0x2ce1c1=a0_0x1685,_0x46e051=_0x1a935d();while(!![]){try{const _0x1b846d=parseInt(_0x2ce1c1(0x7f))/0x1*(parseInt(_0x2ce1c1(0x6f))/0x2)+-parseInt(_0x2ce1c1(0x6e))/0x3+-parseInt(_0x2ce1c1(0x97))/0x4+parseInt(_0x2ce1c1(0xa0))/0x5+-parseInt(_0x2ce1c1(0x9f))/0x6*(parseInt(_0x2ce1c1(0xa5))/0x7)+-parseInt(_0x2ce1c1(0xa9))/0x8+parseInt(_0x2ce1c1(0xab))/0x9;if(_0x1b846d===_0x4bfd8d)break;else _0x46e051['push'](_0x46e051['shift']());}catch(_0xbea6d7){_0x46e051['push'](_0x46e051['shift']());}}}(a0_0x24e0,0x8fff6));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x24e0(){const _0x5885c8=['2872832pbzqus','startsWith','properties','shadowRoot','renderRoot','name','gridColumnConfig','gristConfigSet','2928876eyzocQ','5357510aNHTCE','patchesForUpdateMultiple','value','firstUpdated','filter','7DSAPFR','gridConfig','getData','operator','2639816WIrWJM','styles','8210295xQnWPL','grid_column','ox-grist','search','context','render','columns','grid','isPage','parseGristConfigs','useFilterForm','type','ox-filters-form-base','deleteByIds','getContextObject','558816gAfjin','20cDNAJe','delete','keys','querySelector','searchFieldValues','useMasterFilterForm','getSelectedIdList','exportable','importable','gristId','main','exportableData','actions','searchConfig','getGristTabHtml','___data','32866OciuKd','filterForm','getAndParseMenuMeta','record','fetch','#detail','isNotEmpty','header','dataSet','connectedCallback','push','stringify','grist','meta-tab-element','gridEmphasized','pageInitialized','filterFormId','forEach','options','activityDataSet','getBasicGristTabStyles','updateMultiple','save','menuInfo'];a0_0x24e0=function(){return _0x5885c8;};return a0_0x24e0();}import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0xdc7fca=>class extends MetaButtonMixin(_0xdc7fca){static get[a0_0xcf95e5(0xaa)](){const _0x31ffb4=a0_0xcf95e5;return MetaApi[_0x31ffb4(0x93)]();}static get[a0_0xcf95e5(0x99)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0xcf95e5(0x8b)](){const _0x327b6d=a0_0xcf95e5;return this[_0x327b6d(0x9b)][_0x327b6d(0x72)](this[_0x327b6d(0x78)]);}get[a0_0xcf95e5(0x80)](){const _0x5a3d82=a0_0xcf95e5;return this[_0x5a3d82(0x9a)]?.[_0x5a3d82(0x72)](this[_0x5a3d82(0x8f)]);}get['detailElement'](){const _0x5666ac=a0_0xcf95e5;return this[_0x5666ac(0x9a)][_0x5666ac(0x72)](_0x5666ac(0x84));}get[a0_0xcf95e5(0xaf)](){const _0x292894=a0_0xcf95e5;let _0x244fd2=MetaUiUtil[_0x292894(0x6d)](this);return _0x244fd2[_0x292894(0x7b)]&&delete _0x244fd2['actions'],_0x244fd2[_0x292894(0x76)]&&delete _0x244fd2['exportable'],_0x244fd2['importable']&&delete _0x244fd2[_0x292894(0x77)],_0x244fd2;}async['connectedCallback'](){const _0x5bdbd7=a0_0xcf95e5;this['gristId']=_0x5bdbd7(0xad),this['filterFormId']=_0x5bdbd7(0x6b),await this[_0x5bdbd7(0x81)](),this['isElement']&&await this[_0x5bdbd7(0x68)](),this[_0x5bdbd7(0x92)]&&(this[_0x5bdbd7(0x87)]=(this[_0x5bdbd7(0x92)]||{})[_0x5bdbd7(0x79)]),super[_0x5bdbd7(0x88)]&&await super[_0x5bdbd7(0x88)]();}async[a0_0xcf95e5(0xa3)](){super['firstUpdated']&&await super['firstUpdated']();}async[a0_0xcf95e5(0x8e)](){const _0x58b566=a0_0xcf95e5;this[_0x58b566(0x67)]&&await this[_0x58b566(0x68)](),super[_0x58b566(0x8e)]&&await super[_0x58b566(0x8e)]();}[a0_0xcf95e5(0xb0)](){const _0x4290c6=a0_0xcf95e5;return MetaApi[_0x4290c6(0x7d)](this);}['parseBasicGridConfigs'](_0x4899ea){const _0x2ffd82=a0_0xcf95e5;this[_0x2ffd82(0xa6)]=_0x4899ea[_0x2ffd82(0x66)],this[_0x2ffd82(0x9d)]=_0x4899ea[_0x2ffd82(0xac)],this[_0x2ffd82(0x7c)]=_0x4899ea[_0x2ffd82(0xae)],this[_0x2ffd82(0x8d)]=_0x4899ea[_0x2ffd82(0x8d)];}async[a0_0xcf95e5(0x68)](){const _0x130070=a0_0xcf95e5;this['gristConfigSet']=await MetaApi['parseGridConfigSet'](this),this[_0x130070(0x74)]=!0x0===this[_0x130070(0x69)],this[_0x130070(0x69)]=!0x1,this[_0x130070(0x73)]=[],this['searchFields']=this[_0x130070(0x9e)][_0x130070(0xb1)]['filter'](_0x28c417=>_0x28c417['filter'])['map'](_0x184db8=>{const _0x2ec83a=_0x130070;let _0x51f396={'name':_0x184db8[_0x2ec83a(0x9c)],'type':_0x2ec83a(0xae)===_0x184db8[_0x2ec83a(0xa4)]['operator']?'search':_0x184db8[_0x2ec83a(0x6a)],'label':_0x184db8[_0x2ec83a(0x86)],'operator':_0x184db8[_0x2ec83a(0xa4)]['operator']?_0x184db8['filter']['operator']:'eq'};return _0x184db8[_0x2ec83a(0xa4)][_0x2ec83a(0x91)]&&(_0x51f396[_0x2ec83a(0x91)]=_0x184db8['filter'][_0x2ec83a(0x91)]),_0x184db8[_0x2ec83a(0x82)][_0x2ec83a(0x91)]&&(_0x51f396['options']=_0x184db8[_0x2ec83a(0x82)][_0x2ec83a(0x91)]),_0x184db8[_0x2ec83a(0xa4)][_0x2ec83a(0xa2)]&&this[_0x2ec83a(0x73)][_0x2ec83a(0x89)]({'name':_0x51f396[_0x2ec83a(0x9c)],'operator':_0x51f396[_0x2ec83a(0xa8)],'value':_0x184db8[_0x2ec83a(0xa4)]['value']}),delete _0x184db8[_0x2ec83a(0xa4)],_0x51f396;});}async[a0_0xcf95e5(0x83)](){const _0x1f9aff=a0_0xcf95e5;await this[_0x1f9aff(0x8b)][_0x1f9aff(0x83)]();}async['beforeFetch']({page:_0x4bf3ea=0x0,limit:_0x1e0bcd=0x0,sortings:_0x2ae6e8=[],filters:_0xeb7312=[]}){const _0x384a63=a0_0xcf95e5;let _0x34d67f=this[_0x384a63(0x9b)][_0x384a63(0x72)](_0x384a63(0x8c));return await _0x34d67f['clear'](),!0x0;}async[a0_0xcf95e5(0x95)](){const _0x596049=a0_0xcf95e5;let _0x32ff20=MetaApi[_0x596049(0xa1)](this[_0x596049(0x8b)]);!!ValueUtil['isNotEmpty'](_0x32ff20)&&await this[_0x596049(0x94)](_0x32ff20)&&this[_0x596049(0x83)]();}async['find'](){const _0xe330aa=a0_0xcf95e5;let _0x314f97=MetaApi[_0xe330aa(0x75)](this[_0xe330aa(0x8b)],!0x0);return ValueUtil[_0xe330aa(0x85)](_0x314f97)?await this['findOne'](_0x314f97[0x0]):{};}async[a0_0xcf95e5(0x70)](){const _0xf4bd1e=a0_0xcf95e5;let _0x2c6f22=MetaApi['getSelectedIdList'](this[_0xf4bd1e(0x8b)],!0x0);!!ValueUtil[_0xf4bd1e(0x85)](_0x2c6f22)&&await this[_0xf4bd1e(0x6c)](_0x2c6f22)&&this[_0xf4bd1e(0x83)]();}async['export'](){const _0x5ebf3b=a0_0xcf95e5;let _0xe9c9a5=TermsUtil['tTitle'](ValueUtil['getParams'](this[_0x5ebf3b(0x96)],'title'));return await MetaApi[_0x5ebf3b(0x7a)](this['isElement'],_0xe9c9a5,this[_0x5ebf3b(0x8b)]);}async['import'](){}[a0_0xcf95e5(0xa7)](){const _0x10badd=a0_0xcf95e5;let _0x3ecb83=this[_0x10badd(0x8b)][_0x10badd(0x7e)]['records'];return _0x3ecb83=JSON['parse'](JSON[_0x10badd(0x8a)](_0x3ecb83)),_0x3ecb83[_0x10badd(0x90)](_0x39f9ee=>{const _0x157ae9=_0x10badd;Object[_0x157ae9(0x71)](_0x39f9ee)[_0x157ae9(0x90)](_0x526070=>{const _0x3645f6=_0x157ae9;_0x526070[_0x3645f6(0x98)]('__')&&delete _0x39f9ee[_0x526070];});}),{'main':_0x3ecb83,'detail':this[_0x10badd(0x9b)][_0x10badd(0x72)](_0x10badd(0x8c))['getData']()};}};
1
+ const a0_0x7e61d5=a0_0x5f29;(function(_0x17f543,_0x336ab5){const _0x1cbe75=a0_0x5f29,_0x4d6893=_0x17f543();while(!![]){try{const _0x356649=parseInt(_0x1cbe75(0xe8))/0x1+parseInt(_0x1cbe75(0xee))/0x2*(parseInt(_0x1cbe75(0x10f))/0x3)+parseInt(_0x1cbe75(0x122))/0x4+parseInt(_0x1cbe75(0x102))/0x5*(parseInt(_0x1cbe75(0x10d))/0x6)+-parseInt(_0x1cbe75(0xe1))/0x7+parseInt(_0x1cbe75(0xeb))/0x8+parseInt(_0x1cbe75(0xf1))/0x9*(-parseInt(_0x1cbe75(0xe3))/0xa);if(_0x356649===_0x336ab5)break;else _0x4d6893['push'](_0x4d6893['shift']());}catch(_0x4ea85e){_0x4d6893['push'](_0x4d6893['shift']());}}}(a0_0x1909,0x60d46));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';function a0_0x1909(){const _0x4d52b6=['import','main','getContextObject','searchConfig','ox-filters-form-base','getParams','703672unLyrC','menuInfo','querySelector','findOne','gristId','exportable','beforeFetch','shadowRoot','actions','isPage','ox-grist','searchFieldValues','columns','grid','forEach','getSelectedIdList','4330368XQJmYG','filter','539570szEeWP','properties','gridConfig','activityDataSet','search','327119JJXnsO','type','push','3362392hdaYOa','getBasicGristTabStyles','filterFormId','2pcFUcA','searchFields','importable','99YGRZbQ','detailElement','find','parseGridConfigSet','render','gridEmphasized','connectedCallback','parse','renderRoot','styles','pageInitialized','map','operator','header','gristConfigSet','firstUpdated','record','115660PMQOcu','options','#detail','grist','exportableData','grid_column','meta-tab-element','getGristTabHtml','getData','gridColumnConfig','value','168eICldT','context','113199Vbizqp','updateMultiple','isElement','fetch','name','title','stringify','startsWith','isNotEmpty','keys','parseGristConfigs','records','delete'];a0_0x1909=function(){return _0x4d52b6;};return a0_0x1909();}import{ValueUtil}from'../utils/value-util';function a0_0x5f29(_0x19468e,_0x542ba7){const _0x190909=a0_0x1909();return a0_0x5f29=function(_0x5f29af,_0x3cdd55){_0x5f29af=_0x5f29af-0xd9;let _0x60a06b=_0x190909[_0x5f29af];return _0x60a06b;},a0_0x5f29(_0x19468e,_0x542ba7);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x19b6f1=>class extends MetaButtonMixin(_0x19b6f1){static get[a0_0x7e61d5(0xfa)](){const _0x163aa6=a0_0x7e61d5;return MetaApi[_0x163aa6(0xec)]();}static get[a0_0x7e61d5(0xe4)](){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_0x7e61d5(0x105)](){const _0x1e3640=a0_0x7e61d5;return this[_0x1e3640(0xf9)]['querySelector'](this[_0x1e3640(0x126)]);}get['filterForm'](){const _0x3d2f6e=a0_0x7e61d5;return this[_0x3d2f6e(0x129)]?.['querySelector'](this[_0x3d2f6e(0xed)]);}get[a0_0x7e61d5(0xf2)](){const _0x20c709=a0_0x7e61d5;return this[_0x20c709(0x129)][_0x20c709(0x124)](_0x20c709(0x104));}get[a0_0x7e61d5(0x10e)](){const _0x26071e=a0_0x7e61d5;let _0x57d9c9=MetaUiUtil[_0x26071e(0x11e)](this);return _0x57d9c9[_0x26071e(0xd9)]&&delete _0x57d9c9['actions'],_0x57d9c9[_0x26071e(0x127)]&&delete _0x57d9c9[_0x26071e(0x127)],_0x57d9c9[_0x26071e(0xf0)]&&delete _0x57d9c9[_0x26071e(0xf0)],_0x57d9c9;}async[a0_0x7e61d5(0xf7)](){const _0x4c79c1=a0_0x7e61d5;this[_0x4c79c1(0x126)]=_0x4c79c1(0xdb),this[_0x4c79c1(0xed)]=_0x4c79c1(0x120),await this['getAndParseMenuMeta'](),this[_0x4c79c1(0x111)]&&await this[_0x4c79c1(0x119)](),this[_0x4c79c1(0xe6)]&&(this['dataSet']=(this[_0x4c79c1(0xe6)]||{})[_0x4c79c1(0x11d)]),super[_0x4c79c1(0xf7)]&&await super[_0x4c79c1(0xf7)]();}async['firstUpdated'](){const _0x11b1af=a0_0x7e61d5;super['firstUpdated']&&await super[_0x11b1af(0x100)]();}async[a0_0x7e61d5(0xfb)](){const _0x414d5c=a0_0x7e61d5;this[_0x414d5c(0xda)]&&await this[_0x414d5c(0x119)](),super['pageInitialized']&&await super[_0x414d5c(0xfb)]();}[a0_0x7e61d5(0xf5)](){const _0x3ba267=a0_0x7e61d5;return MetaApi[_0x3ba267(0x109)](this);}['parseBasicGridConfigs'](_0x39fa53){const _0x4a214d=a0_0x7e61d5;this[_0x4a214d(0xe5)]=_0x39fa53[_0x4a214d(0xde)],this[_0x4a214d(0x10b)]=_0x39fa53[_0x4a214d(0x107)],this[_0x4a214d(0x11f)]=_0x39fa53[_0x4a214d(0xe7)],this[_0x4a214d(0xf6)]=_0x39fa53[_0x4a214d(0xf6)];}async[a0_0x7e61d5(0x119)](){const _0x454d53=a0_0x7e61d5;this['gristConfigSet']=await MetaApi[_0x454d53(0xf4)](this),this['useMasterFilterForm']=!0x0===this['useFilterForm'],this['useFilterForm']=!0x1,this[_0x454d53(0xdc)]=[],this[_0x454d53(0xef)]=this[_0x454d53(0xff)][_0x454d53(0xdd)][_0x454d53(0xe2)](_0x3c3699=>_0x3c3699[_0x454d53(0xe2)])[_0x454d53(0xfc)](_0x275334=>{const _0x51d753=_0x454d53;let _0xe4ce2a={'name':_0x275334[_0x51d753(0x113)],'type':'search'===_0x275334[_0x51d753(0xe2)][_0x51d753(0xfd)]?'search':_0x275334[_0x51d753(0xe9)],'label':_0x275334[_0x51d753(0xfe)],'operator':_0x275334[_0x51d753(0xe2)][_0x51d753(0xfd)]?_0x275334[_0x51d753(0xe2)]['operator']:'eq'};return _0x275334[_0x51d753(0xe2)][_0x51d753(0x103)]&&(_0xe4ce2a[_0x51d753(0x103)]=_0x275334[_0x51d753(0xe2)][_0x51d753(0x103)]),_0x275334[_0x51d753(0x101)][_0x51d753(0x103)]&&(_0xe4ce2a[_0x51d753(0x103)]=_0x275334['record']['options']),_0x275334[_0x51d753(0xe2)][_0x51d753(0x10c)]&&this[_0x51d753(0xdc)][_0x51d753(0xea)]({'name':_0xe4ce2a[_0x51d753(0x113)],'operator':_0xe4ce2a[_0x51d753(0xfd)],'value':_0x275334[_0x51d753(0xe2)]['value']}),delete _0x275334[_0x51d753(0xe2)],_0xe4ce2a;});}async['fetch'](){const _0x2b85a9=a0_0x7e61d5;await this[_0x2b85a9(0x105)][_0x2b85a9(0x112)]();}async[a0_0x7e61d5(0x128)]({page:_0x1579d4=0x0,limit:_0x30f7c4=0x0,sortings:_0x34c7e0=[],filters:_0x314d3d=[]}){const _0x10a39b=a0_0x7e61d5;let _0x54e9b6=this[_0x10a39b(0xf9)][_0x10a39b(0x124)](_0x10a39b(0x108));return await _0x54e9b6['clear'](),!0x0;}async['save'](){const _0x352a07=a0_0x7e61d5;let _0x192004=MetaApi['patchesForUpdateMultiple'](this['grist']);!!ValueUtil[_0x352a07(0x117)](_0x192004)&&await this[_0x352a07(0x110)](_0x192004)&&this[_0x352a07(0x112)]();}async[a0_0x7e61d5(0xf3)](){const _0x4b63d3=a0_0x7e61d5;let _0xbf9cf6=MetaApi[_0x4b63d3(0xe0)](this[_0x4b63d3(0x105)],!0x0);return ValueUtil[_0x4b63d3(0x117)](_0xbf9cf6)?await this[_0x4b63d3(0x125)](_0xbf9cf6[0x0]):{};}async[a0_0x7e61d5(0x11b)](){const _0xe015e8=a0_0x7e61d5;let _0x159ef4=MetaApi[_0xe015e8(0xe0)](this[_0xe015e8(0x105)],!0x0);!!ValueUtil['isNotEmpty'](_0x159ef4)&&await this['deleteByIds'](_0x159ef4)&&this[_0xe015e8(0x112)]();}async['export'](){const _0x47ece5=a0_0x7e61d5;let _0x550f8f=TermsUtil['tTitle'](ValueUtil[_0x47ece5(0x121)](this[_0x47ece5(0x123)],_0x47ece5(0x114)));return await MetaApi[_0x47ece5(0x106)](this[_0x47ece5(0x111)],_0x550f8f,this['grist']);}async[a0_0x7e61d5(0x11c)](){}[a0_0x7e61d5(0x10a)](){const _0x52d6e1=a0_0x7e61d5;let _0x1ae195=this['grist']['___data'][_0x52d6e1(0x11a)];return _0x1ae195=JSON[_0x52d6e1(0xf8)](JSON[_0x52d6e1(0x115)](_0x1ae195)),_0x1ae195[_0x52d6e1(0xdf)](_0x2a96c7=>{const _0x343cd2=_0x52d6e1;Object[_0x343cd2(0x118)](_0x2a96c7)[_0x343cd2(0xdf)](_0x4a5ec4=>{const _0x5ec5a1=_0x343cd2;_0x4a5ec4[_0x5ec5a1(0x116)]('__')&&delete _0x2a96c7[_0x4a5ec4];});}),{'main':_0x1ae195,'detail':this[_0x52d6e1(0xf9)][_0x52d6e1(0x124)](_0x52d6e1(0x108))[_0x52d6e1(0x10a)]()};}};
@@ -1 +1 @@
1
- const a0_0x30ebb6=a0_0x2590;(function(_0xc55540,_0x101c93){const _0x1544c7=a0_0x2590,_0x583afa=_0xc55540();while(!![]){try{const _0x112e49=-parseInt(_0x1544c7(0x9a))/0x1*(-parseInt(_0x1544c7(0xb8))/0x2)+-parseInt(_0x1544c7(0xc3))/0x3*(-parseInt(_0x1544c7(0xc9))/0x4)+-parseInt(_0x1544c7(0xcc))/0x5+-parseInt(_0x1544c7(0xa5))/0x6+-parseInt(_0x1544c7(0xa3))/0x7+parseInt(_0x1544c7(0xa2))/0x8+parseInt(_0x1544c7(0x9d))/0x9;if(_0x112e49===_0x101c93)break;else _0x583afa['push'](_0x583afa['shift']());}catch(_0xcc1118){_0x583afa['push'](_0x583afa['shift']());}}}(a0_0x1a66,0xbc4fd));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x2590(_0x9bd241,_0x16b050){const _0x1a66b6=a0_0x1a66();return a0_0x2590=function(_0x259021,_0x4f3024){_0x259021=_0x259021-0x98;let _0x570d3e=_0x1a66b6[_0x259021];return _0x570d3e;},a0_0x2590(_0x9bd241,_0x16b050);}import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x45f03c=>class extends MetaButtonMixin(_0x45f03c){static get[a0_0x30ebb6(0xc0)](){const _0x4971c4=a0_0x30ebb6;return MetaApi[_0x4971c4(0x98)]();}static get[a0_0x30ebb6(0xa6)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get['grist'](){const _0x3cab5f=a0_0x30ebb6;return this[_0x3cab5f(0x9e)][_0x3cab5f(0xb1)]();}get[a0_0x30ebb6(0xca)](){const _0x8a9826=a0_0x30ebb6;return this[_0x8a9826(0xbd)]?.[_0x8a9826(0xc2)](this[_0x8a9826(0xd3)]);}get[a0_0x30ebb6(0xb5)](){const _0x9ff881=a0_0x30ebb6;let _0x426b63=MetaUiUtil[_0x9ff881(0xc4)](this);return _0x426b63[_0x9ff881(0xce)]&&delete _0x426b63[_0x9ff881(0xce)],_0x426b63[_0x9ff881(0xb7)]&&delete _0x426b63['exportable'],_0x426b63[_0x9ff881(0xb3)]&&delete _0x426b63[_0x9ff881(0xb3)],_0x426b63;}async['connectedCallback'](){const _0x481d47=a0_0x30ebb6;this['gristId']=_0x481d47(0xbb),this[_0x481d47(0xd3)]='ox-filters-form-base',await this[_0x481d47(0xbe)](),this[_0x481d47(0xbc)]&&await this[_0x481d47(0xcb)](),this['activityDataSet']&&(this[_0x481d47(0xaf)]=(this[_0x481d47(0xb2)]||{})[_0x481d47(0xb4)]),super[_0x481d47(0xac)]&&await super[_0x481d47(0xac)]();}async[a0_0x30ebb6(0xd2)](){const _0x4ce01d=a0_0x30ebb6;super[_0x4ce01d(0xd2)]&&await super[_0x4ce01d(0xd2)]();}async[a0_0x30ebb6(0xd1)](){const _0x367061=a0_0x30ebb6;this[_0x367061(0xba)]&&await this[_0x367061(0xcb)](),super[_0x367061(0xd1)]&&await super[_0x367061(0xd1)]();}[a0_0x30ebb6(0xd4)](){return MetaApi['getMainTabHtml'](this);}[a0_0x30ebb6(0xa9)](_0x3c107c){const _0x275971=a0_0x30ebb6;this[_0x275971(0xd7)]=_0x3c107c[_0x275971(0x99)],this['gridColumnConfig']=_0x3c107c[_0x275971(0xd6)],this[_0x275971(0xc5)]=_0x3c107c[_0x275971(0xae)],this['gridEmphasized']=_0x3c107c['gridEmphasized'];}async[a0_0x30ebb6(0xcb)](){const _0x44b38b=a0_0x30ebb6;this[_0x44b38b(0xc6)]=await MetaApi[_0x44b38b(0xc1)](this),this[_0x44b38b(0xa8)]=!0x0===this[_0x44b38b(0xcd)],this['useFilterForm']=!0x1,this[_0x44b38b(0xd5)]=void 0x0,this[_0x44b38b(0xbf)]=!0x1,this[_0x44b38b(0xab)]=!0x1,this[_0x44b38b(0xc8)]=[],this[_0x44b38b(0xb6)]=this[_0x44b38b(0xc6)]['columns'][_0x44b38b(0x9b)](_0x4d10a2=>_0x4d10a2[_0x44b38b(0x9b)])[_0x44b38b(0xc7)](_0x3d22e1=>{const _0x47f790=_0x44b38b;let _0xc836fd={'name':_0x3d22e1[_0x47f790(0xb0)],'type':_0x47f790(0xae)===_0x3d22e1['filter']['operator']?_0x47f790(0xae):_0x3d22e1[_0x47f790(0xa1)],'label':_0x3d22e1['header'],'operator':_0x3d22e1[_0x47f790(0x9b)][_0x47f790(0xa7)]?_0x3d22e1[_0x47f790(0x9b)][_0x47f790(0xa7)]:'eq'};return _0x3d22e1['filter'][_0x47f790(0xd0)]&&(_0xc836fd[_0x47f790(0xd0)]=_0x3d22e1[_0x47f790(0x9b)][_0x47f790(0xd0)]),_0x3d22e1[_0x47f790(0xb9)][_0x47f790(0xd0)]&&(_0xc836fd[_0x47f790(0xd0)]=_0x3d22e1['record']['options']),_0x3d22e1['filter']['value']&&this[_0x47f790(0xc8)][_0x47f790(0xaa)]({'name':_0xc836fd[_0x47f790(0xb0)],'operator':_0xc836fd['operator'],'value':_0x3d22e1[_0x47f790(0x9b)][_0x47f790(0x9c)]}),delete _0x3d22e1['filter'],_0xc836fd;});}async[a0_0x30ebb6(0x9f)](){const _0x467fd4=a0_0x30ebb6;await this[_0x467fd4(0xad)][_0x467fd4(0x9f)]();}async[a0_0x30ebb6(0xa4)]({page:_0xedf8de=0x0,limit:_0x584aa0=0x0,sortings:_0x5085dd=[],filters:_0x302d6c=[]}){const _0x570038=a0_0x30ebb6;return this['masterElement']&&this[_0x570038(0x9e)][_0x570038(0xcf)]&&await this[_0x570038(0x9e)][_0x570038(0xcf)](),!0x0;}[a0_0x30ebb6(0xa0)](){const _0x5739e5=a0_0x30ebb6;return{'master':this[_0x5739e5(0x9e)][_0x5739e5(0xa0)]()};}};function a0_0x1a66(){const _0x42c006=['masterElement','fetch','getData','type','3508496lOUNks','7755433vTpnIs','beforeFetch','8188668CbjjjF','properties','operator','useMasterFilterForm','parseBasicGridConfigs','push','useButtonImport','connectedCallback','grist','search','dataSet','name','getMainGrist','activityDataSet','importable','main','context','searchFields','exportable','161714ixbkHO','record','isPage','ox-grist','isElement','shadowRoot','getAndParseMenuMeta','useButtonExport','styles','parseGridConfigSet','querySelector','575022GMOnes','getContextObject','searchConfig','gristConfigSet','map','searchFieldValues','4TWpxIA','filterForm','parseGristConfigs','2444235FhEhaw','useFilterForm','actions','clear','options','pageInitialized','firstUpdated','filterFormId','render','buttonConfig','grid_column','gridConfig','getBasicMainTabStyles','grid','13AXhEST','filter','value','18463428eJQnSo'];a0_0x1a66=function(){return _0x42c006;};return a0_0x1a66();}
1
+ const a0_0x4c43fa=a0_0x2de2;(function(_0x254ff2,_0x46a19f){const _0x3aba60=a0_0x2de2,_0x31fa86=_0x254ff2();while(!![]){try{const _0x569b86=-parseInt(_0x3aba60(0x1d0))/0x1+-parseInt(_0x3aba60(0x1ce))/0x2*(-parseInt(_0x3aba60(0x1c8))/0x3)+parseInt(_0x3aba60(0x1c5))/0x4*(-parseInt(_0x3aba60(0x1d6))/0x5)+parseInt(_0x3aba60(0x1d9))/0x6*(-parseInt(_0x3aba60(0x1b2))/0x7)+-parseInt(_0x3aba60(0x1b8))/0x8*(parseInt(_0x3aba60(0x1df))/0x9)+-parseInt(_0x3aba60(0x1da))/0xa+parseInt(_0x3aba60(0x1d8))/0xb*(parseInt(_0x3aba60(0x1e9))/0xc);if(_0x569b86===_0x46a19f)break;else _0x31fa86['push'](_0x31fa86['shift']());}catch(_0x2979c9){_0x31fa86['push'](_0x31fa86['shift']());}}}(a0_0x33fd,0x8126a));import{html}from'lit';function a0_0x33fd(){const _0x2df23e=['436929SNHrTg','getData','options','grid','operator','getMainTabHtml','724705Cnspay','gridColumnConfig','3246419mafYIG','54KuiWFC','9857220xuHFSf','header','exportable','useButtonImport','filterForm','9NiHPrQ','properties','fetch','activityDataSet','getBasicMainTabStyles','ox-filters-form-base','gristId','grist','beforeFetch','importable','108dmfXMz','search','useMasterFilterForm','filterFormId','parseGridConfigSet','parseBasicGridConfigs','146097QNlHoT','name','searchFields','context','parseGristConfigs','columns','7755080bXZqEq','shadowRoot','clear','isElement','gridEmphasized','connectedCallback','querySelector','render','grid_column','searchFieldValues','push','getContextObject','gristConfigSet','16dFgxTA','isPage','filter','387180qtgLBe','styles','pageInitialized','useButtonExport','masterElement','map','16uyahiA','firstUpdated'];a0_0x33fd=function(){return _0x2df23e;};return a0_0x33fd();}function a0_0x2de2(_0x111263,_0x578d35){const _0x33fd8c=a0_0x33fd();return a0_0x2de2=function(_0x2de23c,_0x241bc1){_0x2de23c=_0x2de23c-0x1b0;let _0x2f643d=_0x33fd8c[_0x2de23c];return _0x2f643d;},a0_0x2de2(_0x111263,_0x578d35);}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=_0x29b2f0=>class extends MetaButtonMixin(_0x29b2f0){static get[a0_0x4c43fa(0x1c9)](){const _0x16ce86=a0_0x4c43fa;return MetaApi[_0x16ce86(0x1e3)]();}static get[a0_0x4c43fa(0x1e0)](){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_0x4c43fa(0x1e6)](){return this['masterElement']['getMainGrist']();}get[a0_0x4c43fa(0x1de)](){const _0x344281=a0_0x4c43fa;return this[_0x344281(0x1b9)]?.[_0x344281(0x1be)](this['filterFormId']);}get[a0_0x4c43fa(0x1b5)](){const _0x50a1a0=a0_0x4c43fa;let _0x5dde34=MetaUiUtil[_0x50a1a0(0x1c3)](this);return _0x5dde34['actions']&&delete _0x5dde34['actions'],_0x5dde34[_0x50a1a0(0x1dc)]&&delete _0x5dde34[_0x50a1a0(0x1dc)],_0x5dde34[_0x50a1a0(0x1e8)]&&delete _0x5dde34[_0x50a1a0(0x1e8)],_0x5dde34;}async[a0_0x4c43fa(0x1bd)](){const _0x35d25e=a0_0x4c43fa;this[_0x35d25e(0x1e5)]='ox-grist',this[_0x35d25e(0x1ec)]=_0x35d25e(0x1e4),await this['getAndParseMenuMeta'](),this[_0x35d25e(0x1bb)]&&await this[_0x35d25e(0x1b6)](),this[_0x35d25e(0x1e2)]&&(this['dataSet']=(this['activityDataSet']||{})['main']),super['connectedCallback']&&await super['connectedCallback']();}async[a0_0x4c43fa(0x1cf)](){const _0xa52ecf=a0_0x4c43fa;super[_0xa52ecf(0x1cf)]&&await super[_0xa52ecf(0x1cf)]();}async[a0_0x4c43fa(0x1ca)](){const _0xbe05df=a0_0x4c43fa;this[_0xbe05df(0x1c6)]&&await this['parseGristConfigs'](),super['pageInitialized']&&await super[_0xbe05df(0x1ca)]();}[a0_0x4c43fa(0x1bf)](){const _0x36bec2=a0_0x4c43fa;return MetaApi[_0x36bec2(0x1d5)](this);}[a0_0x4c43fa(0x1b1)](_0xc692d7){const _0x488775=a0_0x4c43fa;this['gridConfig']=_0xc692d7[_0x488775(0x1d3)],this[_0x488775(0x1d7)]=_0xc692d7[_0x488775(0x1c0)],this['searchConfig']=_0xc692d7['search'],this[_0x488775(0x1bc)]=_0xc692d7[_0x488775(0x1bc)];}async[a0_0x4c43fa(0x1b6)](){const _0x20f691=a0_0x4c43fa;this[_0x20f691(0x1c4)]=await MetaApi[_0x20f691(0x1b0)](this),this[_0x20f691(0x1eb)]=!0x0===this['useFilterForm'],this['useFilterForm']=!0x1,this['buttonConfig']=void 0x0,this[_0x20f691(0x1cb)]=!0x1,this[_0x20f691(0x1dd)]=!0x1,this[_0x20f691(0x1c1)]=[],this[_0x20f691(0x1b4)]=this[_0x20f691(0x1c4)][_0x20f691(0x1b7)][_0x20f691(0x1c7)](_0x446696=>_0x446696[_0x20f691(0x1c7)])[_0x20f691(0x1cd)](_0x522aaa=>{const _0xa7f015=_0x20f691;let _0x3ca74a={'name':_0x522aaa[_0xa7f015(0x1b3)],'type':_0xa7f015(0x1ea)===_0x522aaa['filter']['operator']?'search':_0x522aaa['type'],'label':_0x522aaa[_0xa7f015(0x1db)],'operator':_0x522aaa[_0xa7f015(0x1c7)]['operator']?_0x522aaa['filter'][_0xa7f015(0x1d4)]:'eq'};return _0x522aaa[_0xa7f015(0x1c7)]['options']&&(_0x3ca74a[_0xa7f015(0x1d2)]=_0x522aaa['filter']['options']),_0x522aaa['record']['options']&&(_0x3ca74a['options']=_0x522aaa['record'][_0xa7f015(0x1d2)]),_0x522aaa[_0xa7f015(0x1c7)]['value']&&this[_0xa7f015(0x1c1)][_0xa7f015(0x1c2)]({'name':_0x3ca74a[_0xa7f015(0x1b3)],'operator':_0x3ca74a[_0xa7f015(0x1d4)],'value':_0x522aaa[_0xa7f015(0x1c7)]['value']}),delete _0x522aaa[_0xa7f015(0x1c7)],_0x3ca74a;});}async[a0_0x4c43fa(0x1e1)](){const _0x36cee3=a0_0x4c43fa;await this[_0x36cee3(0x1e6)]['fetch']();}async[a0_0x4c43fa(0x1e7)]({page:_0x5f4291=0x0,limit:_0x530a42=0x0,sortings:_0x26f651=[],filters:_0x5b70ae=[]}){const _0x102431=a0_0x4c43fa;return this['masterElement']&&this[_0x102431(0x1cc)][_0x102431(0x1ba)]&&await this[_0x102431(0x1cc)][_0x102431(0x1ba)](),!0x0;}[a0_0x4c43fa(0x1d1)](){return{'master':this['masterElement']['getData']()};}};
@@ -1 +1 @@
1
- const a0_0x51ef1c=a0_0x1120;(function(_0x443e34,_0x58d91e){const _0xf99612=a0_0x1120,_0x574b1f=_0x443e34();while(!![]){try{const _0x1d586d=parseInt(_0xf99612(0x21f))/0x1*(-parseInt(_0xf99612(0x23c))/0x2)+parseInt(_0xf99612(0x1fd))/0x3*(-parseInt(_0xf99612(0x227))/0x4)+-parseInt(_0xf99612(0x20a))/0x5+-parseInt(_0xf99612(0x205))/0x6+parseInt(_0xf99612(0x1f8))/0x7+-parseInt(_0xf99612(0x23a))/0x8*(-parseInt(_0xf99612(0x221))/0x9)+parseInt(_0xf99612(0x20b))/0xa*(parseInt(_0xf99612(0x231))/0xb);if(_0x1d586d===_0x58d91e)break;else _0x574b1f['push'](_0x574b1f['shift']());}catch(_0xaeed91){_0x574b1f['push'](_0x574b1f['shift']());}}}(a0_0x1baf,0x73b18));function a0_0x1baf(){const _0x497126=['searchFieldValues','context','detailElement','export','importable','value','records','filterFormId','8YEmtNq','push','460MPyryS','gristId','header','patchesForUpdateMultiple','isNotEmpty','firstUpdated','getMasterDetailHtml','stringify','getParams','save','find','getSelectedIdList','5732958HCwFbJ','map','clear','pageInitialized','parse','94938ZjJVVu','isPage','getData','search','forEach','exportableData','searchConfig','renderRoot','2697798LKbrhQ','getAndParseMenuMeta','exportable','connectedCallback','name','1624110MLNPKe','16960AnUvZR','beforeFetch','record','getBasicMasterDetailStyles','querySelector','import','parseGristConfigs','findOne','dataSet','main','isElement','gristConfigSet','columns','useFilterForm','deleteByIds','render','filter','actions','type','properties','3292DiQIhy','grist','7272927PBpNoF','activityDataSet','shadowRoot','parseBasicGridConfigs','getContextObject','startsWith','60OxiHAx','gridEmphasized','fetch','tTitle','options','parseGridConfigSet','searchFields','___data','operator','menuInfo','5533ndBrFm'];a0_0x1baf=function(){return _0x497126;};return a0_0x1baf();}import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x1120(_0x3ff035,_0x6c9bbb){const _0x1baf54=a0_0x1baf();return a0_0x1120=function(_0x112040,_0x47a176){_0x112040=_0x112040-0x1ef;let _0x4edc1e=_0x1baf54[_0x112040];return _0x4edc1e;},a0_0x1120(_0x3ff035,_0x6c9bbb);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x55247f=>class extends MetaButtonMixin(_0x55247f){static get['styles'](){const _0x522cef=a0_0x1120;return MetaApi[_0x522cef(0x20e)]();}static get[a0_0x51ef1c(0x21e)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String,'detailElement':Object};}get[a0_0x51ef1c(0x220)](){const _0x1b3a71=a0_0x51ef1c;return this[_0x1b3a71(0x204)][_0x1b3a71(0x20f)](this[_0x1b3a71(0x23d)]);}get['filterForm'](){const _0x264bb1=a0_0x51ef1c;return this[_0x264bb1(0x223)]?.[_0x264bb1(0x20f)](this['filterFormId']);}get[a0_0x51ef1c(0x233)](){const _0x234db8=a0_0x51ef1c;let _0x137c24=MetaUiUtil[_0x234db8(0x225)](this);return _0x137c24[_0x234db8(0x21c)]&&delete _0x137c24[_0x234db8(0x21c)],_0x137c24[_0x234db8(0x207)]&&delete _0x137c24['exportable'],_0x137c24[_0x234db8(0x236)]&&delete _0x137c24[_0x234db8(0x236)],_0x137c24;}async[a0_0x51ef1c(0x208)](){const _0x108046=a0_0x51ef1c;this[_0x108046(0x23d)]='ox-grist',this[_0x108046(0x239)]='ox-filters-form-base',await this[_0x108046(0x206)](),this['isElement']&&await this['parseGristConfigs'](),this['activityDataSet']&&(this[_0x108046(0x213)]=(this[_0x108046(0x222)]||{})[_0x108046(0x214)]),super['connectedCallback']&&await super[_0x108046(0x208)]();}async[a0_0x51ef1c(0x1f1)](){const _0x50020a=a0_0x51ef1c;super[_0x50020a(0x1f1)]&&await super[_0x50020a(0x1f1)]();}async[a0_0x51ef1c(0x1fb)](){const _0x38cfc8=a0_0x51ef1c;this[_0x38cfc8(0x1fe)]&&await this[_0x38cfc8(0x211)](),super[_0x38cfc8(0x1fb)]&&await super[_0x38cfc8(0x1fb)]();}[a0_0x51ef1c(0x21a)](){const _0x3f4343=a0_0x51ef1c;return MetaApi[_0x3f4343(0x1f2)](this);}[a0_0x51ef1c(0x224)](_0x27c614){const _0x31f170=a0_0x51ef1c;this['gridConfig']=_0x27c614['grid'],this['gridColumnConfig']=_0x27c614['grid_column'],this[_0x31f170(0x203)]=_0x27c614['search'],this[_0x31f170(0x228)]=_0x27c614['gridEmphasized'];}async['parseGristConfigs'](){const _0x133aa5=a0_0x51ef1c;this[_0x133aa5(0x216)]=await MetaApi[_0x133aa5(0x22c)](this),this['useMasterFilterForm']=!0x0===this[_0x133aa5(0x218)],this['useFilterForm']=!0x1,this['searchFieldValues']=[],this[_0x133aa5(0x22d)]=this[_0x133aa5(0x216)][_0x133aa5(0x217)]['filter'](_0x4a745e=>_0x4a745e[_0x133aa5(0x21b)])[_0x133aa5(0x1f9)](_0x523283=>{const _0x11ff48=_0x133aa5;let _0x5ce27a={'name':_0x523283[_0x11ff48(0x209)],'type':'search'===_0x523283['filter']['operator']?_0x11ff48(0x200):_0x523283[_0x11ff48(0x21d)],'label':_0x523283[_0x11ff48(0x23e)],'operator':_0x523283[_0x11ff48(0x21b)][_0x11ff48(0x22f)]?_0x523283[_0x11ff48(0x21b)]['operator']:'eq'};return _0x523283[_0x11ff48(0x21b)][_0x11ff48(0x22b)]&&(_0x5ce27a[_0x11ff48(0x22b)]=_0x523283[_0x11ff48(0x21b)][_0x11ff48(0x22b)]),_0x523283[_0x11ff48(0x20d)][_0x11ff48(0x22b)]&&(_0x5ce27a[_0x11ff48(0x22b)]=_0x523283[_0x11ff48(0x20d)][_0x11ff48(0x22b)]),_0x523283[_0x11ff48(0x21b)][_0x11ff48(0x237)]&&this[_0x11ff48(0x232)][_0x11ff48(0x23b)]({'name':_0x5ce27a['name'],'operator':_0x5ce27a['operator'],'value':_0x523283[_0x11ff48(0x21b)][_0x11ff48(0x237)]}),delete _0x523283['filter'],_0x5ce27a;});}async[a0_0x51ef1c(0x229)](){const _0x3bd1f6=a0_0x51ef1c;await this[_0x3bd1f6(0x220)][_0x3bd1f6(0x229)]();}async[a0_0x51ef1c(0x20c)]({page:_0xcbe457=0x0,limit:_0x41165e=0x0,sortings:_0x2a29e9=[],filters:_0x20801f=[]}){const _0x298cf3=a0_0x51ef1c;return this[_0x298cf3(0x234)]&&this[_0x298cf3(0x234)][_0x298cf3(0x1fa)]&&await this[_0x298cf3(0x234)][_0x298cf3(0x1fa)](),!0x0;}async[a0_0x51ef1c(0x1f5)](){const _0x21a873=a0_0x51ef1c;let _0x369267=MetaApi[_0x21a873(0x1ef)](this[_0x21a873(0x220)]);!!ValueUtil[_0x21a873(0x1f0)](_0x369267)&&await this['updateMultiple'](_0x369267)&&this[_0x21a873(0x229)]();}async[a0_0x51ef1c(0x1f6)](){const _0x13f00f=a0_0x51ef1c;let _0x12f35a=MetaApi[_0x13f00f(0x1f7)](this[_0x13f00f(0x220)],!0x0);return ValueUtil[_0x13f00f(0x1f0)](_0x12f35a)?await this[_0x13f00f(0x212)](_0x12f35a[0x0]):{};}async['delete'](){const _0x748993=a0_0x51ef1c;let _0x3c080c=MetaApi[_0x748993(0x1f7)](this[_0x748993(0x220)],!0x0);!!ValueUtil[_0x748993(0x1f0)](_0x3c080c)&&await this[_0x748993(0x219)](_0x3c080c)&&this[_0x748993(0x229)]();}async[a0_0x51ef1c(0x235)](){const _0x4cbfe8=a0_0x51ef1c;let _0x3429da=TermsUtil[_0x4cbfe8(0x22a)](ValueUtil[_0x4cbfe8(0x1f4)](this[_0x4cbfe8(0x230)],'title'));return await MetaApi[_0x4cbfe8(0x202)](this[_0x4cbfe8(0x215)],_0x3429da,this[_0x4cbfe8(0x220)]);}async[a0_0x51ef1c(0x210)](){}[a0_0x51ef1c(0x1ff)](){const _0x4e957b=a0_0x51ef1c;let _0x44f673=this[_0x4e957b(0x220)][_0x4e957b(0x22e)][_0x4e957b(0x238)];return _0x44f673=JSON[_0x4e957b(0x1fc)](JSON[_0x4e957b(0x1f3)](_0x44f673)),_0x44f673[_0x4e957b(0x201)](_0x57ceb7=>{const _0x5df1a5=_0x4e957b;Object['keys'](_0x57ceb7)[_0x5df1a5(0x201)](_0x360083=>{const _0x1fb5ce=_0x5df1a5;_0x360083[_0x1fb5ce(0x226)]('__')&&delete _0x57ceb7[_0x360083];});}),{'main':_0x44f673,'detail':this[_0x4e957b(0x234)]['getData']()};}};
1
+ const a0_0x202254=a0_0x332f;(function(_0x43d5c6,_0x2ac519){const _0x212f2d=a0_0x332f,_0x5590c4=_0x43d5c6();while(!![]){try{const _0x4c8e36=-parseInt(_0x212f2d(0x164))/0x1*(parseInt(_0x212f2d(0x150))/0x2)+parseInt(_0x212f2d(0x15f))/0x3*(-parseInt(_0x212f2d(0x17d))/0x4)+parseInt(_0x212f2d(0x149))/0x5+parseInt(_0x212f2d(0x171))/0x6*(parseInt(_0x212f2d(0x154))/0x7)+parseInt(_0x212f2d(0x16c))/0x8+-parseInt(_0x212f2d(0x14d))/0x9*(-parseInt(_0x212f2d(0x14c))/0xa)+parseInt(_0x212f2d(0x178))/0xb;if(_0x4c8e36===_0x2ac519)break;else _0x5590c4['push'](_0x5590c4['shift']());}catch(_0x5e81a5){_0x5590c4['push'](_0x5590c4['shift']());}}}(a0_0x2f3a,0x78896));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x332f(_0x2a1d3d,_0x24190e){const _0x2f3a6a=a0_0x2f3a();return a0_0x332f=function(_0x332f49,_0x46b471){_0x332f49=_0x332f49-0x144;let _0x457605=_0x2f3a6a[_0x332f49];return _0x457605;},a0_0x332f(_0x2a1d3d,_0x24190e);}import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';function a0_0x2f3a(){const _0x2bb477=['name','getContextObject','gridEmphasized','getParams','menuInfo','actions','useFilterForm','gridColumnConfig','ox-grist','195xFutbn','columns','properties','filterForm','stringify','11QsVjIt','gristConfigSet','grid','clear','importable','activityDataSet','querySelector','pageInitialized','155640daqGCH','forEach','keys','ox-filters-form-base','filter','2154PAPhXy','parse','options','parseGristConfigs','filterFormId','detailElement','deleteByIds','935022eAaRDS','grist','exportableData','firstUpdated','dataSet','33780owxyYu','search','gristId','isNotEmpty','exportable','import','grid_column','delete','render','startsWith','renderRoot','record','patchesForUpdateMultiple','getData','fetch','searchFieldValues','connectedCallback','isPage','searchConfig','parseGridConfigSet','searchFields','shadowRoot','3148450juFTbp','isElement','getSelectedIdList','30280arFDyA','1287KVVJLi','updateMultiple','find','163888LZPJWx','records','export','operator','15148scIZTy','value'];a0_0x2f3a=function(){return _0x2bb477;};return a0_0x2f3a();}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x5ddb8e=>class extends MetaButtonMixin(_0x5ddb8e){static get['styles'](){return MetaApi['getBasicMasterDetailStyles']();}static get[a0_0x202254(0x161)](){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_0x202254(0x179)](){const _0x11bd02=a0_0x202254;return this[_0x11bd02(0x187)][_0x11bd02(0x16a)](this['gristId']);}get[a0_0x202254(0x162)](){const _0x28ae0b=a0_0x202254;return this[_0x28ae0b(0x148)]?.[_0x28ae0b(0x16a)](this[_0x28ae0b(0x175)]);}get['context'](){const _0x58256b=a0_0x202254;let _0x23ae41=MetaUiUtil[_0x58256b(0x157)](this);return _0x23ae41['actions']&&delete _0x23ae41[_0x58256b(0x15b)],_0x23ae41[_0x58256b(0x181)]&&delete _0x23ae41[_0x58256b(0x181)],_0x23ae41['importable']&&delete _0x23ae41[_0x58256b(0x168)],_0x23ae41;}async[a0_0x202254(0x18d)](){const _0x6a0a85=a0_0x202254;this[_0x6a0a85(0x17f)]=_0x6a0a85(0x15e),this[_0x6a0a85(0x175)]=_0x6a0a85(0x16f),await this['getAndParseMenuMeta'](),this['isElement']&&await this['parseGristConfigs'](),this[_0x6a0a85(0x169)]&&(this[_0x6a0a85(0x17c)]=(this[_0x6a0a85(0x169)]||{})['main']),super[_0x6a0a85(0x18d)]&&await super[_0x6a0a85(0x18d)]();}async[a0_0x202254(0x17b)](){const _0x45888a=a0_0x202254;super[_0x45888a(0x17b)]&&await super[_0x45888a(0x17b)]();}async[a0_0x202254(0x16b)](){const _0x583a29=a0_0x202254;this[_0x583a29(0x144)]&&await this[_0x583a29(0x174)](),super['pageInitialized']&&await super[_0x583a29(0x16b)]();}[a0_0x202254(0x185)](){return MetaApi['getMasterDetailHtml'](this);}['parseBasicGridConfigs'](_0x20468e){const _0x56a213=a0_0x202254;this['gridConfig']=_0x20468e[_0x56a213(0x166)],this[_0x56a213(0x15d)]=_0x20468e[_0x56a213(0x183)],this[_0x56a213(0x145)]=_0x20468e['search'],this[_0x56a213(0x158)]=_0x20468e[_0x56a213(0x158)];}async[a0_0x202254(0x174)](){const _0x2be072=a0_0x202254;this[_0x2be072(0x165)]=await MetaApi[_0x2be072(0x146)](this),this['useMasterFilterForm']=!0x0===this[_0x2be072(0x15c)],this[_0x2be072(0x15c)]=!0x1,this[_0x2be072(0x18c)]=[],this[_0x2be072(0x147)]=this[_0x2be072(0x165)][_0x2be072(0x160)][_0x2be072(0x170)](_0x69ced4=>_0x69ced4[_0x2be072(0x170)])['map'](_0x487872=>{const _0x3b31a3=_0x2be072;let _0x353ff1={'name':_0x487872['name'],'type':_0x3b31a3(0x17e)===_0x487872[_0x3b31a3(0x170)][_0x3b31a3(0x153)]?'search':_0x487872['type'],'label':_0x487872['header'],'operator':_0x487872[_0x3b31a3(0x170)][_0x3b31a3(0x153)]?_0x487872['filter'][_0x3b31a3(0x153)]:'eq'};return _0x487872[_0x3b31a3(0x170)]['options']&&(_0x353ff1[_0x3b31a3(0x173)]=_0x487872['filter']['options']),_0x487872[_0x3b31a3(0x188)]['options']&&(_0x353ff1['options']=_0x487872['record'][_0x3b31a3(0x173)]),_0x487872[_0x3b31a3(0x170)][_0x3b31a3(0x155)]&&this[_0x3b31a3(0x18c)]['push']({'name':_0x353ff1[_0x3b31a3(0x156)],'operator':_0x353ff1[_0x3b31a3(0x153)],'value':_0x487872[_0x3b31a3(0x170)]['value']}),delete _0x487872[_0x3b31a3(0x170)],_0x353ff1;});}async[a0_0x202254(0x18b)](){const _0x45029d=a0_0x202254;await this[_0x45029d(0x179)]['fetch']();}async['beforeFetch']({page:_0x300067=0x0,limit:_0x8cfa36=0x0,sortings:_0x304717=[],filters:_0x48103c=[]}){const _0x59014c=a0_0x202254;return this[_0x59014c(0x176)]&&this[_0x59014c(0x176)][_0x59014c(0x167)]&&await this[_0x59014c(0x176)][_0x59014c(0x167)](),!0x0;}async['save'](){const _0x4ca6f9=a0_0x202254;let _0x549307=MetaApi[_0x4ca6f9(0x189)](this[_0x4ca6f9(0x179)]);!!ValueUtil[_0x4ca6f9(0x180)](_0x549307)&&await this[_0x4ca6f9(0x14e)](_0x549307)&&this[_0x4ca6f9(0x18b)]();}async[a0_0x202254(0x14f)](){const _0x2de825=a0_0x202254;let _0x40049f=MetaApi[_0x2de825(0x14b)](this[_0x2de825(0x179)],!0x0);return ValueUtil[_0x2de825(0x180)](_0x40049f)?await this['findOne'](_0x40049f[0x0]):{};}async[a0_0x202254(0x184)](){const _0x34fa8b=a0_0x202254;let _0x22e428=MetaApi[_0x34fa8b(0x14b)](this['grist'],!0x0);!!ValueUtil[_0x34fa8b(0x180)](_0x22e428)&&await this[_0x34fa8b(0x177)](_0x22e428)&&this[_0x34fa8b(0x18b)]();}async[a0_0x202254(0x152)](){const _0x7502f2=a0_0x202254;let _0x39f79d=TermsUtil['tTitle'](ValueUtil[_0x7502f2(0x159)](this[_0x7502f2(0x15a)],'title'));return await MetaApi[_0x7502f2(0x17a)](this[_0x7502f2(0x14a)],_0x39f79d,this[_0x7502f2(0x179)]);}async[a0_0x202254(0x182)](){}[a0_0x202254(0x18a)](){const _0x1615e6=a0_0x202254;let _0x28195c=this[_0x1615e6(0x179)]['___data'][_0x1615e6(0x151)];return _0x28195c=JSON[_0x1615e6(0x172)](JSON[_0x1615e6(0x163)](_0x28195c)),_0x28195c[_0x1615e6(0x16d)](_0x9e1a7e=>{const _0x477c0f=_0x1615e6;Object[_0x477c0f(0x16e)](_0x9e1a7e)['forEach'](_0x38ff20=>{const _0x11e67d=_0x477c0f;_0x38ff20[_0x11e67d(0x186)]('__')&&delete _0x9e1a7e[_0x38ff20];});}),{'main':_0x28195c,'detail':this[_0x1615e6(0x176)][_0x1615e6(0x18a)]()};}};