@things-factory/meta-ui 6.1.29 → 6.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/client/actions/main.js +4 -4
  2. package/client/component/filter/filter-form-meta-code-select.js +10 -10
  3. package/client/component/filter/filter-form-meta-object-select.js +9 -9
  4. package/client/component/filter/filter-grist-meta-code-select.js +9 -9
  5. package/client/component/filter/filter-grist-meta-object-select.js +9 -9
  6. package/client/component/grist/editor/grist-editor-code-input.js +6 -6
  7. package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
  8. package/client/component/grist/editor/grist-editor-meta-object-selector.js +7 -7
  9. package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
  10. package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
  11. package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
  12. package/client/component/popup/code-input-editor-popup.js +10 -10
  13. package/client/component/popup/meta-object-selector-popup.js +11 -11
  14. package/client/mixin/meta-base-mixin.js +1 -1
  15. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  16. package/client/mixin/meta-button-mixin.js +1 -1
  17. package/client/mixin/meta-form-mixin.js +1 -1
  18. package/client/mixin/meta-grist-tab-mixin.js +1 -1
  19. package/client/mixin/meta-main-tab-mixin.js +1 -1
  20. package/client/mixin/meta-master-detail-mixin.js +1 -1
  21. package/client/mixin/meta-service-mixin.js +1 -1
  22. package/client/mixin/meta-tab-detail-mixin.js +1 -1
  23. package/client/mixin/meta-tab-mixin.js +1 -1
  24. package/client/pages/activity/meta-activity-list-page.js +6 -6
  25. package/client/pages/activity/meta-activity-viewer-element.js +3 -3
  26. package/client/pages/activity/meta-activity-writer-element.js +3 -3
  27. package/client/pages/activity/meta-activiy-mixin.js +3 -3
  28. package/client/pages/entity/config-entity.js +29 -29
  29. package/client/pages/entity/main-menu-selector.js +8 -8
  30. package/client/pages/history/history-copy-list-popup.js +6 -6
  31. package/client/pages/history/history-json-list-popup.js +6 -6
  32. package/client/pages/loading-page.js +5 -5
  33. package/client/pages/menu/dynamic-menu-template.js +7 -7
  34. package/client/pages/menu/dynamic-menu.js +16 -15
  35. package/client/pages/meta-form-element.js +1 -1
  36. package/client/pages/meta-grist-element.js +1 -1
  37. package/client/pages/meta-grist-page.js +1 -1
  38. package/client/pages/meta-grist-tab-element.js +1 -1
  39. package/client/pages/meta-grist-tab-page.js +1 -1
  40. package/client/pages/meta-main-tab-element.js +1 -1
  41. package/client/pages/meta-main-tab-page.js +1 -1
  42. package/client/pages/meta-master-detail-element.js +1 -1
  43. package/client/pages/meta-master-detail-page.js +1 -1
  44. package/client/pages/meta-tab-detail-element.js +1 -1
  45. package/client/pages/meta-tab-detail-page.js +1 -1
  46. package/client/pages/meta-tab-element.js +1 -1
  47. package/client/pages/personalize/personal-column-selector.js +11 -11
  48. package/client/pages/terms/config-terminology.js +6 -6
  49. package/client/pages/work-code/work-code-detail-popup.js +1 -1
  50. package/client/pages/work-code/work-code-page.js +1 -1
  51. package/client/reducers/main.js +1 -1
  52. package/client/utils/meta-api.js +1 -1
  53. package/client/utils/meta-crypto.js +1 -1
  54. package/client/utils/meta-ui-util.js +102 -102
  55. package/client/utils/service-util.js +13 -13
  56. package/client/utils/terms-util.js +2 -2
  57. package/client/utils/ui-util.js +1 -1
  58. package/client/utils/value-util.js +1 -1
  59. package/client/viewparts/dynamic-menu-landscape-styles.js +2 -2
  60. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  61. package/client/viewparts/dynamic-menu-part.js +12 -12
  62. package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
  63. package/client/viewparts/dynamic-menu-portrait.js +9 -9
  64. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  65. package/package.json +2 -2
  66. package/server/activity/CommonActivity.js +2 -2
  67. package/server/constants/error-code.js +1 -1
  68. package/server/errors/license-error.js +1 -1
  69. package/server/routes.js +1 -1
  70. package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
  71. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  72. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  73. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  74. package/server/service/grid-personalize/grid-personalize.js +1 -1
  75. package/server/service/meta-activity/meta-activity-mutation.js +1 -1
  76. package/server/service/meta-activity/meta-activity-query.js +1 -1
  77. package/server/service/meta-activity/meta-activity-type.js +1 -1
  78. package/server/service/meta-secret/meta-resolver.js +1 -1
  79. package/server/service/set-translations/set-translation-resolver.js +1 -1
  80. package/server/service/work-code/work-code-mutation.js +1 -1
  81. package/server/service/work-code/work-code-query.js +1 -1
  82. package/server/service/work-code/work-code-type.js +1 -1
  83. package/server/service/work-code/work-code.js +1 -1
  84. package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
  85. package/server/service/work-code-detail/work-code-detail-query.js +1 -1
  86. package/server/service/work-code-detail/work-code-detail-type.js +1 -1
  87. package/server/service/work-code-detail/work-code-detail.js +1 -1
@@ -1,4 +1,4 @@
1
- const a0_0x74c404=a0_0x5e66;(function(_0x86ef6e,_0x3d212a){const _0x5748e2=a0_0x5e66,_0x7d59b1=_0x86ef6e();while(!![]){try{const _0x53c2d7=parseInt(_0x5748e2(0x175))/0x1+parseInt(_0x5748e2(0x130))/0x2*(-parseInt(_0x5748e2(0x162))/0x3)+-parseInt(_0x5748e2(0x14e))/0x4*(-parseInt(_0x5748e2(0x174))/0x5)+-parseInt(_0x5748e2(0x17c))/0x6+parseInt(_0x5748e2(0x16a))/0x7*(-parseInt(_0x5748e2(0x16e))/0x8)+-parseInt(_0x5748e2(0x140))/0x9+parseInt(_0x5748e2(0x167))/0xa;if(_0x53c2d7===_0x3d212a)break;else _0x7d59b1['push'](_0x7d59b1['shift']());}catch(_0x28736a){_0x7d59b1['push'](_0x7d59b1['shift']());}}}(a0_0x59a0,0x99d32));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';function a0_0x5e66(_0x4f1245,_0x452001){const _0x59a0cc=a0_0x59a0();return a0_0x5e66=function(_0x5e666c,_0x40cdb8){_0x5e666c=_0x5e666c-0x12a;let _0x51f780=_0x59a0cc[_0x5e666c];return _0x51f780;},a0_0x5e66(_0x4f1245,_0x452001);}import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';function a0_0x59a0(){const _0x52616d=['render','codeField','keys','cancel','gql','search','showToast','filterFields','tButton','string','clickEmpty','searchByPagination','5673294beSNzt','getCodeByScenario','menu','NOTHING_SELECTED','args','selectRecord','dispField','nameField','name','search_hidden_fields','connectedCallback','record','styles','getParams','45104YCvPsk','sorters','clickSelect','meta-object-selector','querySelector','align','columns','grist','#ox-grist','meta-object-selector-popup','getCodeByEntity','length','options','GRID','forEach','empty','menu_template','basicArgs','define','getGristPagination100Config','5406XppHuY','meta-','getGristMetaObjectOptions','gridConfig','hidden','29543230ARIfQy','getGristGuttersConfig','handlers','76951UPOWmN','values','fetchHandler','confirmCallback','536jFpNTV','firstUpdated','clickCancel','getGristSelectableConfig','select','getGristColumnConfig2','290XbQMWC','356851OMNpMq','left','rows','queryName','code','filter','filters','6695238dMMPsc','selected','includes','scenario','tText','push','info','type','946ACLjDv','meta-code-selector','bind','query'];a0_0x59a0=function(){return _0x52616d;};return a0_0x59a0();}import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class MetaObjectSelectorPopup extends LitElement{static [a0_0x74c404(0x14c)]=[CommonGristStyles,ButtonContainerStyles,css`
1
+ function a0_0x35dc(){const _0x500916=['5wOsLta','GRID','nameField','menu_template','resource-object','getGristGuttersConfig','11030asFwbV','tText','6zcLTGK','fetchHandler','meta-object-selector','define','LIST','querySelector','length','bind','1977488BCGmuR','#ox-grist','tButton','cancel','code','keys','connectedCallback','dispField','handlers','NOTHING_SELECTED','entity','resource-code-selector','hidden','getGristSelectableConfig','string','clickCancel','gridConfig','selectRecord','3299116lEHYgW','select','left','showToast','meta-object-selector-popup','codeField','getGristColumnConfig2','align','filter','includes','6234tiZmXo','sorters','46477959XIGnDl','getCodeByEntity','appendable','12trOzza','menu','grist','basicArgs','record','search_hidden_fields','803467etVkGP','isArray','gql','startsWith','2605767NnANnW','getSelectColumns','search','getGristMetaObjectOptions','selected','179EPqBWt','options','firstUpdated','8091bSExmG','getCodeSelectorData','clickSelect','query','name','object','meta-code-selector','getParams','scenario','getCodeByScenario','codes','args','type','confirmCallback','forEach','values','clickEmpty','searchByPagination','push','filters'];a0_0x35dc=function(){return _0x500916;};return a0_0x35dc();}const a0_0x31de60=a0_0x43c7;(function(_0xcd6021,_0x3b2d8b){const _0x5c1b0a=a0_0x43c7,_0x3dde1e=_0xcd6021();while(!![]){try{const _0xb11354=-parseInt(_0x5c1b0a(0x212))/0x1*(parseInt(_0x5c1b0a(0x1fe))/0x2)+-parseInt(_0x5c1b0a(0x20d))/0x3+-parseInt(_0x5c1b0a(0x1f4))/0x4*(parseInt(_0x5c1b0a(0x1d2))/0x5)+parseInt(_0x5c1b0a(0x1da))/0x6*(-parseInt(_0x5c1b0a(0x209))/0x7)+-parseInt(_0x5c1b0a(0x1e2))/0x8+-parseInt(_0x5c1b0a(0x215))/0x9*(parseInt(_0x5c1b0a(0x1d8))/0xa)+-parseInt(_0x5c1b0a(0x200))/0xb*(-parseInt(_0x5c1b0a(0x203))/0xc);if(_0xb11354===_0x3b2d8b)break;else _0x3dde1e['push'](_0x3dde1e['shift']());}catch(_0xcafc37){_0x3dde1e['push'](_0x3dde1e['shift']());}}}(a0_0x35dc,0x9776a));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_0x43c7(_0x1256bf,_0x18be5b){const _0x35dc7e=a0_0x35dc();return a0_0x43c7=function(_0x43c768,_0x1bfd60){_0x43c768=_0x43c768-0x1ca;let _0x5ac491=_0x35dc7e[_0x43c768];return _0x5ac491;},a0_0x43c7(_0x1256bf,_0x18be5b);}export class MetaObjectSelectorPopup extends LitElement{static ['styles']=[CommonGristStyles,ButtonContainerStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -17,9 +17,9 @@ const a0_0x74c404=a0_0x5e66;(function(_0x86ef6e,_0x3d212a){const _0x5748e2=a0_0x
17
17
  display: flex;
18
18
  margin-left: auto;
19
19
  }
20
- `];async[a0_0x74c404(0x14a)](){const _0x5b6e52=a0_0x74c404;this[_0x5b6e52(0x149)]=this[_0x5b6e52(0x15a)][_0x5b6e52(0x17b)]?this['options'][_0x5b6e52(0x17b)]:this['basicArgs']&&this[_0x5b6e52(0x15f)][_0x5b6e52(0x17b)]?this[_0x5b6e52(0x15f)][_0x5b6e52(0x17b)]:[];let _0x32d9e1=this[_0x5b6e52(0x15a)]['sorters']?this[_0x5b6e52(0x15a)][_0x5b6e52(0x14f)]:this[_0x5b6e52(0x15f)]&&this['basicArgs'][_0x5b6e52(0x14f)]?this[_0x5b6e52(0x15f)]['sorters']:[],_0x29a118=this[_0x5b6e52(0x15a)][_0x5b6e52(0x13b)]?this[_0x5b6e52(0x15a)][_0x5b6e52(0x13b)]:this['options']['menu_template']?.['search']&&this[_0x5b6e52(0x15a)]['menu_template']?.[_0x5b6e52(0x139)][_0x5b6e52(0x159)]>0x0?this[_0x5b6e52(0x15a)][_0x5b6e52(0x15e)][_0x5b6e52(0x139)]:[],_0x2ad1a2=this['options']['select'];if(!_0x29a118||0x0==_0x29a118['length']){let _0x260fcd;this[_0x5b6e52(0x15a)][_0x5b6e52(0x135)]&&(_0x260fcd=this[_0x5b6e52(0x15a)][_0x5b6e52(0x135)]),this[_0x5b6e52(0x15a)]['nameField']&&(_0x260fcd=this['options'][_0x5b6e52(0x147)]),_0x260fcd&&_0x29a118['push']({'name':_0x260fcd,'operator':'eq'});}let _0x2d617d=[...MetaApi[_0x5b6e52(0x168)](!0x0,!0x1)];if(_0x2ad1a2&&_0x2ad1a2[_0x5b6e52(0x159)]>0x0)for(let _0x42ea4a=0x0;_0x42ea4a<_0x2ad1a2['length'];_0x42ea4a++){let {type:_0x42da89=_0x5b6e52(0x13d),name:_0x1e1309,hidden:_0x9304e6=!0x1,record:_0x5f3fcc={'align':_0x5b6e52(0x176)},header:_0x195b65,sortable:_0x31e4da=!0x1,width:_0x3fec42=0x87,options:_0x2b4257,select_opt:_0x488330,object_opt:_0x2167d1}=_0x2ad1a2[_0x42ea4a];if(_0x488330&&(_0x2b4257=_0x488330),_0x2167d1&&(_0x2b4257=_0x2167d1),['resource-object','object'][_0x5b6e52(0x12a)](_0x42da89)?_0x42da89=_0x5b6e52(0x151):['resource-code-selector'][_0x5b6e52(0x12a)](_0x42da89)&&(_0x42da89=_0x5b6e52(0x131)),'id'==_0x1e1309)_0x2d617d[_0x5b6e52(0x12d)]({'type':'string','name':_0x1e1309,'hidden':!0x0});else{let _0x235b9a=MetaApi[_0x5b6e52(0x173)](_0x42da89,_0x1e1309,_0x195b65||_0x1e1309,_0x5f3fcc[_0x5b6e52(0x153)]?_0x5f3fcc[_0x5b6e52(0x153)]:_0x5b6e52(0x176),!0x1,_0x31e4da,_0x3fec42);_0x42da89['startsWith'](_0x5b6e52(0x163))&&_0x2167d1&&_0x2167d1[_0x5b6e52(0x142)]&&(_0x2b4257=await MetaUiUtil[_0x5b6e52(0x164)](_0x42da89,_0x2b4257)),_0x5b6e52(0x172)===_0x42da89?Array['isArray'](_0x2b4257)?_0x235b9a[_0x5b6e52(0x14b)][_0x5b6e52(0x15a)]=_0x2b4257:_0x5b6e52(0x179)===_0x2b4257[_0x5b6e52(0x12f)]?_0x235b9a[_0x5b6e52(0x14b)][_0x5b6e52(0x15a)]=await ServiceUtil['getCodeSelectorData'](_0x2b4257[_0x5b6e52(0x16b)]?_0x2b4257[_0x5b6e52(0x16b)]:_0x2b4257[_0x5b6e52(0x148)]):_0x5b6e52(0x12b)===_0x2b4257[_0x5b6e52(0x12f)]?_0x235b9a['record']['options']=await ServiceUtil[_0x5b6e52(0x141)](_0x2b4257[_0x5b6e52(0x148)],_0x2b4257[_0x5b6e52(0x144)]):'entity'===_0x2b4257['type']&&(_0x235b9a['record'][_0x5b6e52(0x15a)]=await ServiceUtil[_0x5b6e52(0x158)](_0x2b4257[_0x5b6e52(0x144)])):_0x5b6e52(0x151)===_0x42da89?_0x235b9a[_0x5b6e52(0x14b)]['options']={..._0x2b4257}:_0x5b6e52(0x131)==_0x42da89&&(_0x2b4257[_0x5b6e52(0x146)]&&(_0x2b4257['codes']=await ServiceUtil[_0x5b6e52(0x158)](_0x2b4257)),_0x235b9a['record']['options']={..._0x2b4257}),_0x235b9a[_0x5b6e52(0x166)]=_0x9304e6,_0x2d617d['push'](_0x235b9a);}}else _0x2d617d['push'](MetaApi['getGristColumnConfig2']('string',this[_0x5b6e52(0x15a)][_0x5b6e52(0x135)],this[_0x5b6e52(0x15a)]['codeField'],_0x5b6e52(0x176),!0x1,!0x0,0xb4)),this[_0x5b6e52(0x15a)][_0x5b6e52(0x146)]&&_0x2d617d[_0x5b6e52(0x12d)](MetaApi['getGristColumnConfig2'](_0x5b6e52(0x13d),this[_0x5b6e52(0x15a)]['dispField'],this[_0x5b6e52(0x15a)][_0x5b6e52(0x146)],'left',!0x1,!0x0,0x12c));_0x2d617d[_0x5b6e52(0x15c)](_0x4f5efe=>{const _0x379acd=_0x5b6e52;let _0x45d3b5=_0x29a118[_0x379acd(0x17a)](_0x2105e3=>_0x379acd(0x13d)==typeof _0x2105e3?_0x4f5efe[_0x379acd(0x148)]==_0x2105e3:_0x4f5efe[_0x379acd(0x148)]==_0x2105e3[_0x379acd(0x148)]);_0x45d3b5&&_0x45d3b5[_0x379acd(0x159)]>0x0&&(_0x4f5efe[_0x379acd(0x17a)]=_0x379acd(0x13d)==typeof _0x45d3b5[0x0]?_0x379acd(0x139):_0x45d3b5[0x0]);});let _0x17f435={'rows':MetaApi[_0x5b6e52(0x171)](!0x1),'pagination':MetaApi[_0x5b6e52(0x161)](),'columns':_0x2d617d,'sorters':[..._0x32d9e1]};_0x17f435[_0x5b6e52(0x177)][_0x5b6e52(0x169)]={'click':'select-row-toggle','dblclick':(_0x41199f,_0x1d6be0,_0x4e9bad,_0x2758e7,_0xa6a0d1,_0x320037)=>{this['selectRecord'](_0x2758e7);}},_0x17f435[_0x5b6e52(0x177)]['appendable']=!0x1,this['gridConfig']=_0x17f435,await super['connectedCallback']();}async[a0_0x74c404(0x16f)](){const _0x49166d=a0_0x74c404;await super[_0x49166d(0x16f)]();}[a0_0x74c404(0x134)](){const _0x34cacb=a0_0x74c404;return html`
21
- <ox-grist id="ox-grist" .config=${this[_0x34cacb(0x165)]} .mode=${isMobileDevice()?'LIST':_0x34cacb(0x15b)} auto-fetch
22
- .fetchHandler=${this[_0x34cacb(0x16c)][_0x34cacb(0x132)](this)}>
20
+ `];async[a0_0x31de60(0x1e8)](){const _0x214232=a0_0x31de60;this[_0x214232(0x208)]=this[_0x214232(0x213)][_0x214232(0x1d1)]?this['options'][_0x214232(0x1d1)]:this[_0x214232(0x206)]&&this[_0x214232(0x206)][_0x214232(0x1d1)]?this['basicArgs'][_0x214232(0x1d1)]:[];let _0x3b8c24=this[_0x214232(0x213)]['sorters']?this[_0x214232(0x213)][_0x214232(0x1ff)]:this['basicArgs']&&this[_0x214232(0x206)][_0x214232(0x1ff)]?this[_0x214232(0x206)][_0x214232(0x1ff)]:[],_0x55a3e0=this[_0x214232(0x213)]['filterFields']?this[_0x214232(0x213)]['filterFields']:this[_0x214232(0x213)][_0x214232(0x1d5)]?.['search']&&this[_0x214232(0x213)][_0x214232(0x1d5)]?.[_0x214232(0x20f)][_0x214232(0x1e0)]>0x0?this[_0x214232(0x213)][_0x214232(0x1d5)]['search']:[],_0x5eae22=this[_0x214232(0x213)]['select'];if(!_0x55a3e0||0x0==_0x55a3e0[_0x214232(0x1e0)]){let _0xd3cf73;this[_0x214232(0x213)]['codeField']&&(_0xd3cf73=this[_0x214232(0x213)]['codeField']),this[_0x214232(0x213)][_0x214232(0x1d4)]&&(_0xd3cf73=this[_0x214232(0x213)]['nameField']),_0xd3cf73&&_0x55a3e0[_0x214232(0x1d0)]({'name':_0xd3cf73,'operator':'eq'});}let _0x5de0d5=[...MetaApi[_0x214232(0x1d7)](!0x0,!0x1)];if(_0x5eae22&&_0x5eae22[_0x214232(0x1e0)]>0x0)for(let _0x34071b=0x0;_0x34071b<_0x5eae22['length'];_0x34071b++){let {type:_0x54a1d2=_0x214232(0x1f0),name:_0xc89d84,hidden:_0x5ba808=!0x1,record:_0x54122b={'align':_0x214232(0x1f6)},header:_0x389617,sortable:_0x20386e=!0x1,width:_0x6abd98=0x87,options:_0x48a5a0,select_opt:_0x17c465,object_opt:_0x3158e9}=_0x5eae22[_0x34071b];if(_0x17c465&&(_0x48a5a0=_0x17c465),_0x3158e9&&(_0x48a5a0=_0x3158e9),[_0x214232(0x1d6),_0x214232(0x21a)][_0x214232(0x1fd)](_0x54a1d2)?_0x54a1d2=_0x214232(0x1dc):[_0x214232(0x1ed)]['includes'](_0x54a1d2)&&(_0x54a1d2=_0x214232(0x21b)),'id'==_0xc89d84)_0x5de0d5['push']({'type':'string','name':_0xc89d84,'hidden':!0x0});else{let _0xed4698=MetaApi['getGristColumnConfig2'](_0x54a1d2,_0xc89d84,_0x389617||_0xc89d84,_0x54122b[_0x214232(0x1fb)]?_0x54122b[_0x214232(0x1fb)]:_0x214232(0x1f6),!0x1,_0x20386e,_0x6abd98);_0x54a1d2[_0x214232(0x20c)]('meta-')&&_0x3158e9&&_0x3158e9[_0x214232(0x204)]&&(_0x48a5a0=await MetaUiUtil[_0x214232(0x210)](_0x54a1d2,_0x48a5a0)),'select'===_0x54a1d2?Array[_0x214232(0x20a)](_0x48a5a0)?_0xed4698['record'][_0x214232(0x213)]=_0x48a5a0:_0x214232(0x1e6)===_0x48a5a0['type']?_0xed4698[_0x214232(0x207)]['options']=await ServiceUtil[_0x214232(0x216)](_0x48a5a0['values']?_0x48a5a0[_0x214232(0x1cd)]:_0x48a5a0[_0x214232(0x219)]):_0x214232(0x21d)===_0x48a5a0[_0x214232(0x1ca)]?_0xed4698[_0x214232(0x207)][_0x214232(0x213)]=await ServiceUtil[_0x214232(0x21e)](_0x48a5a0[_0x214232(0x219)],_0x48a5a0[_0x214232(0x220)]):_0x214232(0x1ec)===_0x48a5a0[_0x214232(0x1ca)]&&(_0xed4698[_0x214232(0x207)]['options']=await ServiceUtil[_0x214232(0x201)](_0x48a5a0['args'])):'meta-object-selector'===_0x54a1d2?_0xed4698['record'][_0x214232(0x213)]={..._0x48a5a0}:_0x214232(0x21b)==_0x54a1d2&&(_0x48a5a0[_0x214232(0x1e9)]&&(_0x48a5a0[_0x214232(0x21f)]=await ServiceUtil[_0x214232(0x201)](_0x48a5a0)),_0xed4698[_0x214232(0x207)][_0x214232(0x213)]={..._0x48a5a0}),_0xed4698[_0x214232(0x1ee)]=_0x5ba808,_0x5de0d5[_0x214232(0x1d0)](_0xed4698);}}else _0x5de0d5[_0x214232(0x1d0)](MetaApi[_0x214232(0x1fa)](_0x214232(0x1f0),this['options'][_0x214232(0x1f9)],this['options']['codeField'],_0x214232(0x1f6),!0x1,!0x0,0xb4)),this[_0x214232(0x213)][_0x214232(0x1e9)]&&_0x5de0d5['push'](MetaApi['getGristColumnConfig2']('string',this[_0x214232(0x213)][_0x214232(0x1e9)],this[_0x214232(0x213)]['dispField'],_0x214232(0x1f6),!0x1,!0x0,0x12c));_0x5de0d5[_0x214232(0x1cc)](_0x381032=>{const _0x2cf3f4=_0x214232;let _0x3ddb93=_0x55a3e0[_0x2cf3f4(0x1fc)](_0x150ac0=>_0x2cf3f4(0x1f0)==typeof _0x150ac0?_0x381032['name']==_0x150ac0:_0x381032[_0x2cf3f4(0x219)]==_0x150ac0[_0x2cf3f4(0x219)]);_0x3ddb93&&_0x3ddb93[_0x2cf3f4(0x1e0)]>0x0&&(_0x381032[_0x2cf3f4(0x1fc)]=_0x2cf3f4(0x1f0)==typeof _0x3ddb93[0x0]?_0x2cf3f4(0x20f):_0x3ddb93[0x0]);});let _0x3f0de9={'rows':MetaApi[_0x214232(0x1ef)](!0x1),'pagination':MetaApi['getGristPagination100Config'](),'columns':_0x5de0d5,'sorters':[..._0x3b8c24]};_0x3f0de9['rows'][_0x214232(0x1ea)]={'click':'select-row-toggle','dblclick':(_0x2165a0,_0xbf42ff,_0x30f1ba,_0x4ec997,_0x2dbdf0,_0x32c7e7)=>{const _0x1739ae=_0x214232;this[_0x1739ae(0x1f3)](_0x4ec997);}},_0x3f0de9['rows'][_0x214232(0x202)]=!0x1,this['gridConfig']=_0x3f0de9,await super[_0x214232(0x1e8)]();}async['firstUpdated'](){const _0x19bbed=a0_0x31de60;await super[_0x19bbed(0x214)]();}['render'](){const _0x5e76e8=a0_0x31de60;return html`
21
+ <ox-grist id="ox-grist" .config=${this[_0x5e76e8(0x1f2)]} .mode=${isMobileDevice()?_0x5e76e8(0x1de):_0x5e76e8(0x1d3)} auto-fetch
22
+ .fetchHandler=${this[_0x5e76e8(0x1db)][_0x5e76e8(0x1e1)](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_0x74c404=a0_0x5e66;(function(_0x86ef6e,_0x3d212a){const _0x5748e2=a0_0x
27
27
  </div>
28
28
  </ox-grist>
29
29
  <div id="button-container" class="button-container">
30
- <mwc-button raised label="${TermsUtil['tButton'](_0x34cacb(0x15d))}" style="margin-left:7px;margin-top:7px;"
31
- @click=${this[_0x34cacb(0x13e)]['bind'](this)}>
30
+ <mwc-button raised label="${TermsUtil['tButton']('empty')}" style="margin-left:7px;margin-top:7px;"
31
+ @click=${this[_0x5e76e8(0x1ce)][_0x5e76e8(0x1e1)](this)}>
32
32
  </mwc-button>
33
- <mwc-button raised label="${TermsUtil[_0x34cacb(0x13c)](_0x34cacb(0x137))}" style="margin-left:7px;margin-top:7px;"
34
- @click=${this[_0x34cacb(0x170)]['bind'](this)}>
33
+ <mwc-button raised label="${TermsUtil[_0x5e76e8(0x1e4)](_0x5e76e8(0x1e5))}" style="margin-left:7px;margin-top:7px;"
34
+ @click=${this['clickCancel'][_0x5e76e8(0x1e1)](this)}>
35
35
  </mwc-button>
36
- <mwc-button raised label="${TermsUtil[_0x34cacb(0x13c)](_0x34cacb(0x172))}" style="margin-left:7px;margin-top:7px;"
37
- @click=${this[_0x34cacb(0x150)][_0x34cacb(0x132)](this)}>
36
+ <mwc-button raised label="${TermsUtil['tButton'](_0x5e76e8(0x1f5))}" style="margin-left:7px;margin-top:7px;"
37
+ @click=${this[_0x5e76e8(0x217)][_0x5e76e8(0x1e1)](this)}>
38
38
  </mwc-button>
39
39
  </div>
40
- `;}get[a0_0x74c404(0x155)](){const _0xe7ecbb=a0_0x74c404;return this['shadowRoot'][_0xe7ecbb(0x152)](_0xe7ecbb(0x156));}async[a0_0x74c404(0x16c)]({page:_0x1deab9=0x0,limit:_0x58c18b=0x0,sorters:_0x5a6c8a=[],filters:_0x4cd356=[]}){const _0x5aea9c=a0_0x74c404;let _0xfd2fe3=[...this['search_hidden_fields']];_0x4cd356['forEach'](_0x4cf18f=>{const _0x41b0df=a0_0x5e66;let _0x5986da=_0xfd2fe3[_0x41b0df(0x17a)](_0x499e6e=>_0x4cf18f[_0x41b0df(0x148)]==_0x499e6e[_0x41b0df(0x148)]);_0x5986da&&_0x5986da[_0x41b0df(0x159)]>0x0&&delete _0xfd2fe3[_0x4cf18f[_0x41b0df(0x148)]],_0xfd2fe3[_0x41b0df(0x12d)](_0x4cf18f);});let _0x157dcc=ValueUtil[_0x5aea9c(0x14d)](this['options'][_0x5aea9c(0x15e)]&&this['options'][_0x5aea9c(0x15e)][_0x5aea9c(0x138)]||{},_0x5aea9c(0x133),'after_set_fields'),_0x3d2619=Object[_0x5aea9c(0x136)](_0x157dcc||{}),_0x5ad4e6=MetaApi['getSelectColumns'](this[_0x5aea9c(0x165)][_0x5aea9c(0x154)]['filter'](_0x407065=>!_0x3d2619[_0x5aea9c(0x12a)](_0x407065['name'])));return await MetaApi[_0x5aea9c(0x13f)](this['options'][_0x5aea9c(0x178)],_0xfd2fe3,_0x5a6c8a,_0x1deab9,_0x58c18b,_0x5ad4e6);}async[a0_0x74c404(0x13e)](_0x5b5628){const _0x2b6551=a0_0x74c404;this[_0x2b6551(0x16d)]&&this['confirmCallback'](null),closePopup(this);}async[a0_0x74c404(0x170)](_0x162feb){closePopup(this);}async[a0_0x74c404(0x150)](_0x59d439){const _0x587a86=a0_0x74c404;let _0x5d98b7=this['grist'][_0x587a86(0x17d)];_0x5d98b7&&0x0!=_0x5d98b7[_0x587a86(0x159)]?this[_0x587a86(0x145)](_0x5d98b7[0x0]):MetaApi[_0x587a86(0x13a)](_0x587a86(0x12e),TermsUtil[_0x587a86(0x12c)](_0x587a86(0x143)));}async[a0_0x74c404(0x145)](_0x4118df){const _0x1862db=a0_0x74c404;this[_0x1862db(0x16d)]&&this[_0x1862db(0x16d)](_0x4118df),closePopup(this);}}customElements[a0_0x74c404(0x160)](a0_0x74c404(0x157),MetaObjectSelectorPopup);
40
+ `;}get[a0_0x31de60(0x205)](){const _0x31c756=a0_0x31de60;return this['shadowRoot'][_0x31c756(0x1df)](_0x31c756(0x1e3));}async[a0_0x31de60(0x1db)]({page:_0x539b62=0x0,limit:_0x3d4050=0x0,sorters:_0xa080a8=[],filters:_0x2d5cb5=[]}){const _0x33c091=a0_0x31de60;let _0x42d707=[...this[_0x33c091(0x208)]];_0x2d5cb5[_0x33c091(0x1cc)](_0x5ce8f6=>{const _0x269f9e=_0x33c091;let _0x50a418=_0x42d707[_0x269f9e(0x1fc)](_0x15486b=>_0x5ce8f6[_0x269f9e(0x219)]==_0x15486b['name']);_0x50a418&&_0x50a418['length']>0x0&&delete _0x42d707[_0x5ce8f6[_0x269f9e(0x219)]],_0x42d707[_0x269f9e(0x1d0)](_0x5ce8f6);});let _0x25af12=ValueUtil[_0x33c091(0x21c)](this[_0x33c091(0x213)][_0x33c091(0x1d5)]&&this['options'][_0x33c091(0x1d5)][_0x33c091(0x20b)]||{},_0x33c091(0x218),'after_set_fields'),_0x16c860=Object[_0x33c091(0x1e7)](_0x25af12||{}),_0x945dab=MetaApi[_0x33c091(0x20e)](this[_0x33c091(0x1f2)]['columns'][_0x33c091(0x1fc)](_0x3c8b45=>!_0x16c860[_0x33c091(0x1fd)](_0x3c8b45[_0x33c091(0x219)])));return await MetaApi[_0x33c091(0x1cf)](this[_0x33c091(0x213)]['queryName'],_0x42d707,_0xa080a8,_0x539b62,_0x3d4050,_0x945dab);}async[a0_0x31de60(0x1ce)](_0x2b59a6){const _0x1208ee=a0_0x31de60;this['confirmCallback']&&this[_0x1208ee(0x1cb)](null),closePopup(this);}async[a0_0x31de60(0x1f1)](_0x1c924c){closePopup(this);}async[a0_0x31de60(0x217)](_0x39a6af){const _0x2bbb42=a0_0x31de60;let _0xa1581b=this['grist'][_0x2bbb42(0x211)];_0xa1581b&&0x0!=_0xa1581b[_0x2bbb42(0x1e0)]?this['selectRecord'](_0xa1581b[0x0]):MetaApi[_0x2bbb42(0x1f7)]('info',TermsUtil[_0x2bbb42(0x1d9)](_0x2bbb42(0x1eb)));}async[a0_0x31de60(0x1f3)](_0x4462ff){const _0x47c3f8=a0_0x31de60;this[_0x47c3f8(0x1cb)]&&this['confirmCallback'](_0x4462ff),closePopup(this);}}customElements[a0_0x31de60(0x1dd)](a0_0x31de60(0x1f8),MetaObjectSelectorPopup);
@@ -1 +1 @@
1
- const a0_0x14f876=a0_0xcd8d;(function(_0x43b5e9,_0x372dd8){const _0x2a7307=a0_0xcd8d,_0x2f1b76=_0x43b5e9();while(!![]){try{const _0x2d5b22=-parseInt(_0x2a7307(0xc1))/0x1*(parseInt(_0x2a7307(0xc5))/0x2)+-parseInt(_0x2a7307(0xa6))/0x3+-parseInt(_0x2a7307(0xbb))/0x4*(-parseInt(_0x2a7307(0xb3))/0x5)+-parseInt(_0x2a7307(0x8f))/0x6+parseInt(_0x2a7307(0xa7))/0x7+-parseInt(_0x2a7307(0x92))/0x8*(-parseInt(_0x2a7307(0xa8))/0x9)+-parseInt(_0x2a7307(0xb8))/0xa*(-parseInt(_0x2a7307(0xad))/0xb);if(_0x2d5b22===_0x372dd8)break;else _0x2f1b76['push'](_0x2f1b76['shift']());}catch(_0x4ecc63){_0x2f1b76['push'](_0x2f1b76['shift']());}}}(a0_0x4978,0xec9f4));import{MetaApi}from'./../utils/meta-api';function a0_0x4978(){const _0x1c9450=['fetchHandler','pageUpdated','is_popup','data','fieldChangeHandlers','isPage','fetch','name','result','title_detail','isPopup','etc','isEmpty','parent_id','field-change','etcConfig','1455942oYVFvr','10820180hRPoED','9WPGamI','active','startsWith','params','isNotEmpty','862994mvsbiJ','parseBasicTabConfigs','properties','keys','parseBasicFormConfigs','is_detail','9165zvwlTO','tagName','addEventListener','connectedCallback','body','110QkaiTs','toLowerCase','parseBasicServiceConfigs','940Yenswt','parseBasicGridConfigs','executeCallScenarioButtonClick','lifecycle','filterForm','title','22183XdHQua','parseBasicButtonConfigs','forEach','runScenario','6vsqgdw','callScenario','dataChangeEventHandler','grist','excuteOpenPopupButtonClick','dispatchEvent','detail','split','8715606RVKRNs','openDynamicPopup','getMenuMeta','1073432aulZGQ','isDetail','menuInfo','errors'];a0_0x4978=function(){return _0x1c9450;};return a0_0x4978();}import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';function a0_0xcd8d(_0x7801f1,_0x18c21a){const _0x497884=a0_0x4978();return a0_0xcd8d=function(_0xcd8d64,_0x1032e0){_0xcd8d64=_0xcd8d64-0x8a;let _0x5c25cf=_0x497884[_0xcd8d64];return _0x5c25cf;},a0_0xcd8d(_0x7801f1,_0x18c21a);}export const MetaBaseMixin=_0x446dba=>class extends _0x446dba{static get[a0_0x14f876(0xaf)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x49ed75=>Boolean(_0x49ed75)},'is_popup':{'type':Boolean,'converter':_0x34c4f9=>Boolean(_0x34c4f9)},'is_activity':{'type':Boolean,'converter':_0x44fdad=>Boolean(_0x44fdad)},'is_readonly':{'type':Boolean,'converter':_0x2d494d=>Boolean(_0x2d494d)}};}get['isElement'](){const _0x264a58=a0_0x14f876;return!0x0===this[_0x264a58(0xb2)]||!0x0===this[_0x264a58(0x98)];}get[a0_0x14f876(0x93)](){const _0x5397a7=a0_0x14f876;return!ValueUtil['isEmpty'](this['is_detail'])&&this[_0x5397a7(0xb2)];}async[a0_0x14f876(0xc7)](_0x338db4){const _0xa13f3e=a0_0x14f876;let {after:_0xa26389,before:_0x7ccbea,column:_0x188750,record:_0x4d0421,row:_0xa8d8b8}=_0x338db4[_0xa13f3e(0x8d)],_0x4bcc56=_0x188750[_0xa13f3e(0x9d)];if(Object['keys'](this[_0xa13f3e(0x9a)]||{})['includes'](_0x4bcc56)){let _0x2aedb2,_0x244511=(await MetaApi[_0xa13f3e(0xc6)](void 0x0,this[_0xa13f3e(0x9a)][_0x4bcc56],{'columnName':_0x4bcc56,'column':_0x188750,'record':_0x4d0421,'after':_0xa26389,'before':_0x7ccbea,'row':_0xa8d8b8},!0x1))[_0xa13f3e(0x99)][_0xa13f3e(0xc4)][_0xa13f3e(0x99)][_0xa13f3e(0x9e)];if(!_0x244511)return;_0x2aedb2=this['grist']?this['grist'][_0xa13f3e(0x8a)][_0xa13f3e(0xb7)]:this,Object[_0xa13f3e(0xb0)](_0x244511)[_0xa13f3e(0xc3)](_0x15b50e=>{const _0xce1248=_0xa13f3e;_0x2aedb2[_0xce1248(0x8c)](new CustomEvent(_0xce1248(0xa4),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x4d0421,'row':_0xa8d8b8,'after':_0x244511[_0x15b50e],'before':_0x4d0421[_0x15b50e],'column':{'name':_0x15b50e}}}));});}this['dispatchEvent'](new CustomEvent('data-changed',{'bubbles':!0x0,'composed':!0x0,'detail':_0x338db4[_0xa13f3e(0x8d)]}));}async[a0_0x14f876(0xb6)](){const _0x4938d5=a0_0x14f876;super['connectedCallback']&&await super[_0x4938d5(0xb6)](),this[_0x4938d5(0xb4)][_0x4938d5(0xb9)]()[_0x4938d5(0xaa)]('meta-form-')?this[_0x4938d5(0xb5)]('form-field-change',async _0xe7d2b9=>{const _0x496d8c=_0x4938d5;await this[_0x496d8c(0xc7)](_0xe7d2b9);}):this[_0x4938d5(0xb5)]('field-change',async _0x1ecc16=>{const _0x1da5c1=_0x4938d5;await this[_0x1da5c1(0xc7)](_0x1ecc16);});}async[a0_0x14f876(0x97)](_0x55dda7,_0x2248d4,_0x26bd79){const _0x35cc6a=a0_0x14f876;let _0x262440=this[_0x35cc6a(0xbe)]?.[_0x35cc6a(0xab)]?this[_0x35cc6a(0xbe)]['params']:{};this['isPage']&&this[_0x35cc6a(0xa9)]&&0x0==_0x26bd79[_0x35cc6a(0xa9)]&&ValueUtil[_0x35cc6a(0xac)](_0x262440)&&this[_0x35cc6a(0x9c)]();}get[a0_0x14f876(0xa0)](){const _0x38801b=a0_0x14f876;return!ValueUtil[_0x38801b(0xa2)](this[_0x38801b(0x98)])&&this[_0x38801b(0x98)];}get[a0_0x14f876(0x9b)](){const _0x492570=a0_0x14f876;return!this[_0x492570(0xb2)]&&!this[_0x492570(0x98)];}async['getAndParseMenuMeta'](){const _0x231e5e=a0_0x14f876;let _0x244d45=await MetaApi[_0x231e5e(0x91)](this);_0x244d45&&(this[_0x231e5e(0x94)]=_0x244d45['menu'],this[_0x231e5e(0xa5)]=_0x244d45[_0x231e5e(0xa1)],this['parseBasicGridConfigs']&&this[_0x231e5e(0xbc)](_0x244d45),this['parseBasicServiceConfigs']&&this[_0x231e5e(0xba)](_0x244d45),this['parseBasicFormConfigs']&&this[_0x231e5e(0xb1)](_0x244d45),this[_0x231e5e(0xae)]&&this[_0x231e5e(0xae)](_0x244d45),this['parseBasicButtonConfigs']&&this[_0x231e5e(0xc2)](_0x244d45));}async[a0_0x14f876(0x9c)](){const _0x471a4d=a0_0x14f876;ValueUtil[_0x471a4d(0xac)](this[_0x471a4d(0x8a)])?this[_0x471a4d(0x8a)][_0x471a4d(0x9c)]():(ValueUtil[_0x471a4d(0xac)](this[_0x471a4d(0xbf)])||this[_0x471a4d(0x96)])&&await this[_0x471a4d(0x96)]();}async[a0_0x14f876(0x8b)](_0x4fc880,_0x398c07,_0x120308){const _0x1d7ae5=a0_0x14f876;let _0x5650e6=TermsUtil['tTitle'](_0x4fc880[_0x1d7ae5(0xc0)]);ValueUtil[_0x1d7ae5(0xac)](_0x4fc880['title_detail'])&&(_0x5650e6=_0x5650e6+'-'+ValueUtil['getParams'](_0x398c07,..._0x4fc880[_0x1d7ae5(0x9f)][_0x1d7ae5(0x8e)]('.'))),MetaApi[_0x1d7ae5(0x90)](_0x5650e6,_0x4fc880,_0x398c07,_0x120308);}async[a0_0x14f876(0xbd)](_0x4d3a09,_0x320b5e,_0x4ee1bb){const _0x579772=a0_0x14f876;let _0x1904ed=await MetaApi['callScenario'](_0x4d3a09[_0x579772(0x9d)],_0x4d3a09[_0x579772(0x9d)],_0x320b5e);!0x1!==_0x1904ed&&!_0x1904ed[_0x579772(0x95)]&&ValueUtil[_0x579772(0xac)](_0x4d3a09['after'])&&_0x4ee1bb();}['setParentId'](_0xd76877){const _0x453524=a0_0x14f876;this[_0x453524(0xa3)]=_0xd76877,this[_0x453524(0x9c)]();}};
1
+ const a0_0x38bdb9=a0_0x53e4;function a0_0x3916(){const _0x4fe433=['parseBasicServiceConfigs','lifecycle','meta-form-','6045083XncVOo','includes','addEventListener','30QyzvUN','detail','isElement','is_detail','fetchHandler','1778BucbTQ','active','errors','excuteOpenPopupButtonClick','forEach','runScenario','split','parseBasicButtonConfigs','isPopup','startsWith','grist','after','toLowerCase','keys','field-change','menu','11865266EjnkmC','tTitle','data-changed','params','1106127DXFDtY','getMenuMeta','tagName','isEmpty','parseBasicTabConfigs','etc','264iAiynI','4650628lKQOtz','getAndParseMenuMeta','result','535050KitBso','5XjeSOg','openDynamicPopup','parseBasicGridConfigs','body','connectedCallback','parent_id','2879669FggItU','parseBasicFormConfigs','dispatchEvent','name','fetch','isPage','executeCallScenarioButtonClick','6MCVkIc','title','isNotEmpty','dataChangeEventHandler','is_popup','737gojWmc','properties','data','fieldChangeHandlers','64usZTyW'];a0_0x3916=function(){return _0x4fe433;};return a0_0x3916();}function a0_0x53e4(_0x180e5c,_0x57cf94){const _0x391639=a0_0x3916();return a0_0x53e4=function(_0x53e411,_0x1f7397){_0x53e411=_0x53e411-0xc4;let _0x2aefbc=_0x391639[_0x53e411];return _0x2aefbc;},a0_0x53e4(_0x180e5c,_0x57cf94);}(function(_0x3ad413,_0x5058d1){const _0x479dc5=a0_0x53e4,_0x150050=_0x3ad413();while(!![]){try{const _0x5addb3=-parseInt(_0x479dc5(0xc5))/0x1*(parseInt(_0x479dc5(0xd5))/0x2)+parseInt(_0x479dc5(0xf3))/0x3+parseInt(_0x479dc5(0xf0))/0x4*(-parseInt(_0x479dc5(0xf4))/0x5)+parseInt(_0x479dc5(0x101))/0x6*(-parseInt(_0x479dc5(0xe5))/0x7)+-parseInt(_0x479dc5(0xc9))/0x8*(-parseInt(_0x479dc5(0xe9))/0x9)+parseInt(_0x479dc5(0xd0))/0xa*(-parseInt(_0x479dc5(0xcd))/0xb)+parseInt(_0x479dc5(0xef))/0xc*(parseInt(_0x479dc5(0xfa))/0xd);if(_0x5addb3===_0x5058d1)break;else _0x150050['push'](_0x150050['shift']());}catch(_0x50b18f){_0x150050['push'](_0x150050['shift']());}}}(a0_0x3916,0xd5361));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x1a3972=>class extends _0x1a3972{static get[a0_0x38bdb9(0xc6)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x1a7ecd=>Boolean(_0x1a7ecd)},'is_popup':{'type':Boolean,'converter':_0x1e9eba=>Boolean(_0x1e9eba)},'is_activity':{'type':Boolean,'converter':_0x3f9ee8=>Boolean(_0x3f9ee8)},'is_readonly':{'type':Boolean,'converter':_0x4473c0=>Boolean(_0x4473c0)}};}get[a0_0x38bdb9(0xd2)](){const _0x5f4cc1=a0_0x38bdb9;return!0x0===this[_0x5f4cc1(0xd3)]||!0x0===this['is_popup'];}get['isDetail'](){const _0x47f4d8=a0_0x38bdb9;return!ValueUtil[_0x47f4d8(0xec)](this[_0x47f4d8(0xd3)])&&this['is_detail'];}async[a0_0x38bdb9(0x104)](_0x5d4bc6){const _0x4dc5c2=a0_0x38bdb9;let {after:_0x338f2c,before:_0x2a7e33,column:_0xc41ae0,record:_0x4ceeab,row:_0x19226c}=_0x5d4bc6[_0x4dc5c2(0xd1)],_0x2b609f=_0xc41ae0['name'];if(Object[_0x4dc5c2(0xe2)](this['fieldChangeHandlers']||{})[_0x4dc5c2(0xce)](_0x2b609f)){let _0x3015ad,_0x1838f4=(await MetaApi['callScenario'](void 0x0,this[_0x4dc5c2(0xc8)][_0x2b609f],{'columnName':_0x2b609f,'column':_0xc41ae0,'record':_0x4ceeab,'after':_0x338f2c,'before':_0x2a7e33,'row':_0x19226c},!0x1))[_0x4dc5c2(0xc7)][_0x4dc5c2(0xda)]['data'][_0x4dc5c2(0xf2)];if(!_0x1838f4)return;_0x3015ad=this[_0x4dc5c2(0xdf)]?this['grist']['grist'][_0x4dc5c2(0xf7)]:this,Object[_0x4dc5c2(0xe2)](_0x1838f4)[_0x4dc5c2(0xd9)](_0x36a083=>{const _0x1e179a=_0x4dc5c2;_0x3015ad[_0x1e179a(0xfc)](new CustomEvent(_0x1e179a(0xe3),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x4ceeab,'row':_0x19226c,'after':_0x1838f4[_0x36a083],'before':_0x4ceeab[_0x36a083],'column':{'name':_0x36a083}}}));});}this[_0x4dc5c2(0xfc)](new CustomEvent(_0x4dc5c2(0xe7),{'bubbles':!0x0,'composed':!0x0,'detail':_0x5d4bc6['detail']}));}async[a0_0x38bdb9(0xf8)](){const _0x16b286=a0_0x38bdb9;super[_0x16b286(0xf8)]&&await super['connectedCallback'](),this[_0x16b286(0xeb)][_0x16b286(0xe1)]()[_0x16b286(0xde)](_0x16b286(0xcc))?this[_0x16b286(0xcf)]('form-field-change',async _0x54a4d6=>{const _0x2058a9=_0x16b286;await this[_0x2058a9(0x104)](_0x54a4d6);}):this[_0x16b286(0xcf)](_0x16b286(0xe3),async _0x598383=>{const _0x133c31=_0x16b286;await this[_0x133c31(0x104)](_0x598383);});}async['pageUpdated'](_0x19990e,_0x39e323,_0x302695){const _0x235403=a0_0x38bdb9;let _0x58afdc=this[_0x235403(0xcb)]?.[_0x235403(0xe8)]?this[_0x235403(0xcb)][_0x235403(0xe8)]:{};this['isPage']&&this['active']&&0x0==_0x302695[_0x235403(0xd6)]&&ValueUtil[_0x235403(0x103)](_0x58afdc)&&this[_0x235403(0xfe)]();}get[a0_0x38bdb9(0xdd)](){const _0xc05566=a0_0x38bdb9;return!ValueUtil[_0xc05566(0xec)](this[_0xc05566(0xc4)])&&this[_0xc05566(0xc4)];}get[a0_0x38bdb9(0xff)](){const _0x19d4aa=a0_0x38bdb9;return!this[_0x19d4aa(0xd3)]&&!this[_0x19d4aa(0xc4)];}async[a0_0x38bdb9(0xf1)](){const _0x4518c4=a0_0x38bdb9;let _0x3b3e71=await MetaApi[_0x4518c4(0xea)](this);_0x3b3e71&&(this['menuInfo']=_0x3b3e71[_0x4518c4(0xe4)],this['etcConfig']=_0x3b3e71[_0x4518c4(0xee)],this[_0x4518c4(0xf6)]&&this[_0x4518c4(0xf6)](_0x3b3e71),this[_0x4518c4(0xca)]&&this[_0x4518c4(0xca)](_0x3b3e71),this[_0x4518c4(0xfb)]&&this[_0x4518c4(0xfb)](_0x3b3e71),this[_0x4518c4(0xed)]&&this[_0x4518c4(0xed)](_0x3b3e71),this[_0x4518c4(0xdc)]&&this['parseBasicButtonConfigs'](_0x3b3e71));}async[a0_0x38bdb9(0xfe)](){const _0x362b33=a0_0x38bdb9;ValueUtil[_0x362b33(0x103)](this['grist'])?this[_0x362b33(0xdf)]['fetch']():(ValueUtil[_0x362b33(0x103)](this['filterForm'])||this[_0x362b33(0xd4)])&&await this[_0x362b33(0xd4)]();}async[a0_0x38bdb9(0xd8)](_0x329fb4,_0x568ef8,_0x2c03d0){const _0x57adba=a0_0x38bdb9;let _0x1d8a48=TermsUtil[_0x57adba(0xe6)](_0x329fb4[_0x57adba(0x102)]);ValueUtil['isNotEmpty'](_0x329fb4['title_detail'])&&(_0x1d8a48=_0x1d8a48+'-'+ValueUtil['getParams'](_0x568ef8,..._0x329fb4['title_detail'][_0x57adba(0xdb)]('.'))),MetaApi[_0x57adba(0xf5)](_0x1d8a48,_0x329fb4,_0x568ef8,_0x2c03d0);}async[a0_0x38bdb9(0x100)](_0x589b61,_0x5bcba9,_0x465a64){const _0x30c9be=a0_0x38bdb9;let _0x29767b=await MetaApi['callScenario'](_0x589b61[_0x30c9be(0xfd)],_0x589b61[_0x30c9be(0xfd)],_0x5bcba9);!0x1!==_0x29767b&&!_0x29767b[_0x30c9be(0xd7)]&&ValueUtil[_0x30c9be(0x103)](_0x589b61[_0x30c9be(0xe0)])&&_0x465a64();}['setParentId'](_0x14df4b){const _0x336402=a0_0x38bdb9;this[_0x336402(0xf9)]=_0x14df4b,this[_0x336402(0xfe)]();}};
@@ -1,4 +1,4 @@
1
- const a0_0x4d05bc=a0_0x2242;(function(_0x3ec226,_0x21b257){const _0x5d3bb1=a0_0x2242,_0x3e5411=_0x3ec226();while(!![]){try{const _0x5872c9=-parseInt(_0x5d3bb1(0x131))/0x1*(-parseInt(_0x5d3bb1(0x145))/0x2)+parseInt(_0x5d3bb1(0x135))/0x3+-parseInt(_0x5d3bb1(0x13b))/0x4*(-parseInt(_0x5d3bb1(0x124))/0x5)+parseInt(_0x5d3bb1(0x140))/0x6+-parseInt(_0x5d3bb1(0x146))/0x7+parseInt(_0x5d3bb1(0x157))/0x8+-parseInt(_0x5d3bb1(0x120))/0x9;if(_0x5872c9===_0x21b257)break;else _0x3e5411['push'](_0x3e5411['shift']());}catch(_0x4f1a8c){_0x3e5411['push'](_0x3e5411['shift']());}}}(a0_0x7d2c,0x2b6c9));function a0_0x7d2c(){const _0x1e8686=['grist','16ZgQUGY','gridConfig','renderRoot','exportableData','find','825036ifXyZz','getBasicGristStyles','styles','import','data','7838NKAyiY','2326247omymDU','getSelectedIdList','getBasicGristHtml','save','fetch','gristId','pageInitialized','gridColumnConfig','search','parseGridConfigSet','forEach','keys','gristConfigSet','searchConfig','isNotEmpty','isPage','records','1032936WFaCQf','parseBasicGridConfigs','firstUpdated','900063BBFAHQ','querySelector','stringify','connectedCallback','1055rtIJOj','___data','startsWith','title','parseGristConfigs','tTitle','export','gridEmphasized','grid','clear','dataSet','getButtonContainer','activityDataSet','83aZZSem','ox-grist','isElement','menuInfo','52347FoAFMc','filterForm','findOne','shadowRoot','updateMultiple'];a0_0x7d2c=function(){return _0x1e8686;};return a0_0x7d2c();}import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x2242(_0x41c8af,_0x5c02f6){const _0x7d2c0f=a0_0x7d2c();return a0_0x2242=function(_0x22426a,_0xf9835c){_0x22426a=_0x22426a-0x11f;let _0x522b1=_0x7d2c0f[_0x22426a];return _0x522b1;},a0_0x2242(_0x41c8af,_0x5c02f6);}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=_0x3b4818=>class extends MetaButtonMixin(_0x3b4818){static get[a0_0x4d05bc(0x142)](){const _0x117c4f=a0_0x4d05bc;return MetaApi[_0x117c4f(0x141)]();}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_0x4d05bc(0x13a)](){const _0x466b09=a0_0x4d05bc;return this[_0x466b09(0x13d)]?.['querySelector'](this[_0x466b09(0x14b)]);}get[a0_0x4d05bc(0x136)](){const _0x582b13=a0_0x4d05bc;return this[_0x582b13(0x138)]?.[_0x582b13(0x121)](this['filterFormId']);}get['context'](){return MetaUiUtil['getContextObject'](this);}async['connectedCallback'](){const _0x4b111b=a0_0x4d05bc;this[_0x4b111b(0x14b)]=_0x4b111b(0x132),this['filterFormId']='ox-filters-form',await this['getAndParseMenuMeta'](),this[_0x4b111b(0x133)]&&await this['parseGristConfigs'](),this['activityDataSet']&&(this[_0x4b111b(0x12e)]=this[_0x4b111b(0x130)]),super[_0x4b111b(0x123)]&&await super[_0x4b111b(0x123)]();}async[a0_0x4d05bc(0x11f)](){const _0x40f00b=a0_0x4d05bc;super['firstUpdated']&&await super[_0x40f00b(0x11f)]();}async[a0_0x4d05bc(0x14c)](){const _0x580047=a0_0x4d05bc;this[_0x580047(0x155)]&&await this[_0x580047(0x128)](),super[_0x580047(0x14c)]&&await super[_0x580047(0x14c)]();}['render'](){const _0xf0ddad=a0_0x4d05bc;return html`
2
- ${MetaApi[_0xf0ddad(0x148)](this)}
3
- ${this[_0xf0ddad(0x155)]?html``:MetaUiUtil[_0xf0ddad(0x12f)](this)}
4
- `;}[a0_0x4d05bc(0x158)](_0x31e96c){const _0x3ec8a0=a0_0x4d05bc;this[_0x3ec8a0(0x13c)]=_0x31e96c[_0x3ec8a0(0x12c)],this[_0x3ec8a0(0x14d)]=_0x31e96c['grid_column'],this[_0x3ec8a0(0x153)]=_0x31e96c[_0x3ec8a0(0x14e)],this[_0x3ec8a0(0x12b)]=_0x31e96c[_0x3ec8a0(0x12b)];}async[a0_0x4d05bc(0x128)](){const _0x22dbb0=a0_0x4d05bc;this[_0x22dbb0(0x152)]=await MetaApi[_0x22dbb0(0x14f)](this);}async[a0_0x4d05bc(0x14a)](){const _0x443863=a0_0x4d05bc;await this[_0x443863(0x13a)][_0x443863(0x14a)]();}async[a0_0x4d05bc(0x149)](){const _0x1220a7=a0_0x4d05bc;let _0x157278=MetaApi['patchesForUpdateMultiple'](this[_0x1220a7(0x13a)]);!!ValueUtil[_0x1220a7(0x154)](_0x157278)&&await this[_0x1220a7(0x139)](_0x157278)&&this[_0x1220a7(0x14a)]();}async[a0_0x4d05bc(0x13f)](){const _0x56ef98=a0_0x4d05bc;let _0x15787c=MetaApi['getSelectedIdList'](this[_0x56ef98(0x13a)],!0x0);return ValueUtil[_0x56ef98(0x154)](_0x15787c)?await this[_0x56ef98(0x137)](_0x15787c[0x0]):{};}async['delete'](){const _0x5604bb=a0_0x4d05bc;let _0x290f36=MetaApi[_0x5604bb(0x147)](this[_0x5604bb(0x13a)],!0x0);!!ValueUtil[_0x5604bb(0x154)](_0x290f36)&&await this['deleteByIds'](_0x290f36)&&this[_0x5604bb(0x14a)]();}async[a0_0x4d05bc(0x12a)](){const _0x42bf62=a0_0x4d05bc;let _0x1fb504=TermsUtil[_0x42bf62(0x129)](ValueUtil['getParams'](this[_0x42bf62(0x134)],_0x42bf62(0x127)));return await MetaApi[_0x42bf62(0x13e)](this['isElement'],_0x1fb504,this[_0x42bf62(0x13a)]);}async[a0_0x4d05bc(0x143)](){}async[a0_0x4d05bc(0x12d)](){const _0x61486e=a0_0x4d05bc;this['grist']&&(this[_0x61486e(0x13a)][_0x61486e(0x144)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0xf754e0=a0_0x4d05bc;let _0x1db083=this[_0xf754e0(0x13a)][_0xf754e0(0x125)][_0xf754e0(0x156)];return _0x1db083=JSON['parse'](JSON[_0xf754e0(0x122)](_0x1db083)),_0x1db083[_0xf754e0(0x150)](_0x32e2b9=>{const _0x442ade=_0xf754e0;Object[_0x442ade(0x151)](_0x32e2b9)['forEach'](_0x129700=>{const _0x53dcda=_0x442ade;_0x129700[_0x53dcda(0x126)]('__')&&delete _0x32e2b9[_0x129700];});}),_0x1db083;}};
1
+ const a0_0xe6d1da=a0_0x4de3;(function(_0x2c0abc,_0x4d7bd0){const _0x4573f1=a0_0x4de3,_0x195b1b=_0x2c0abc();while(!![]){try{const _0x976506=-parseInt(_0x4573f1(0x224))/0x1*(-parseInt(_0x4573f1(0x1f1))/0x2)+-parseInt(_0x4573f1(0x202))/0x3+parseInt(_0x4573f1(0x20b))/0x4*(-parseInt(_0x4573f1(0x20d))/0x5)+-parseInt(_0x4573f1(0x209))/0x6+parseInt(_0x4573f1(0x1f5))/0x7*(-parseInt(_0x4573f1(0x200))/0x8)+-parseInt(_0x4573f1(0x1fc))/0x9*(parseInt(_0x4573f1(0x1f9))/0xa)+parseInt(_0x4573f1(0x211))/0xb;if(_0x976506===_0x4d7bd0)break;else _0x195b1b['push'](_0x195b1b['shift']());}catch(_0x24cdda){_0x195b1b['push'](_0x195b1b['shift']());}}}(a0_0xb1e0,0xbdbdf));import{html}from'lit';function a0_0xb1e0(){const _0x3ba495=['find','menuInfo','renderRoot','279277lSEnMw','findOne','filterFormId','isNotEmpty','render','gristId','getParams','updateMultiple','exportableData','2hvacKu','keys','patchesForUpdateMultiple','export','371lWoRdV','styles','fetch','isPage','13371410oETfVC','pageInitialized','parseGristConfigs','9rtOZSk','forEach','getData','import','6152Pxtchr','___data','1117143qjNSIZ','search','save','querySelector','firstUpdated','clear','startsWith','6627834ztFHzl','grist','2348qEiXku','stringify','6245ShPqVD','gridColumnConfig','gridEmphasized','isElement','44945857FGhBAB','connectedCallback','getButtonContainer','getSelectedIdList','grid_column','context','filterForm','getBasicGristStyles','deleteByIds','getContextObject','getBasicGristHtml','gridConfig','dataSet','delete','getAndParseMenuMeta','gristConfigSet'];a0_0xb1e0=function(){return _0x3ba495;};return a0_0xb1e0();}function a0_0x4de3(_0x52130d,_0x173444){const _0xb1e01c=a0_0xb1e0();return a0_0x4de3=function(_0x4de37d,_0x245ce8){_0x4de37d=_0x4de37d-0x1ea;let _0x16e750=_0xb1e01c[_0x4de37d];return _0x16e750;},a0_0x4de3(_0x52130d,_0x173444);}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=_0x34fc51=>class extends MetaButtonMixin(_0x34fc51){static get[a0_0xe6d1da(0x1f6)](){const _0x11cc61=a0_0xe6d1da;return MetaApi[_0x11cc61(0x218)]();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get['grist'](){const _0x4a3b4f=a0_0xe6d1da;return this[_0x4a3b4f(0x223)]?.[_0x4a3b4f(0x205)](this[_0x4a3b4f(0x1ed)]);}get[a0_0xe6d1da(0x217)](){const _0x4cbc61=a0_0xe6d1da;return this['shadowRoot']?.[_0x4cbc61(0x205)](this[_0x4cbc61(0x1ea)]);}get[a0_0xe6d1da(0x216)](){const _0x338bbe=a0_0xe6d1da;return MetaUiUtil[_0x338bbe(0x21a)](this);}async[a0_0xe6d1da(0x212)](){const _0x4b2124=a0_0xe6d1da;this[_0x4b2124(0x1ed)]='ox-grist',this[_0x4b2124(0x1ea)]='ox-filters-form',await this[_0x4b2124(0x21f)](),this[_0x4b2124(0x210)]&&await this[_0x4b2124(0x1fb)](),this['activityDataSet']&&(this[_0x4b2124(0x21d)]=this['activityDataSet']),super[_0x4b2124(0x212)]&&await super['connectedCallback']();}async['firstUpdated'](){const _0x3d23a0=a0_0xe6d1da;super[_0x3d23a0(0x206)]&&await super['firstUpdated']();}async[a0_0xe6d1da(0x1fa)](){const _0x441871=a0_0xe6d1da;this[_0x441871(0x1f8)]&&await this[_0x441871(0x1fb)](),super['pageInitialized']&&await super['pageInitialized']();}[a0_0xe6d1da(0x1ec)](){const _0xfacd22=a0_0xe6d1da;return html`
2
+ ${MetaApi[_0xfacd22(0x21b)](this)}
3
+ ${this[_0xfacd22(0x1f8)]?html``:MetaUiUtil[_0xfacd22(0x213)](this)}
4
+ `;}['parseBasicGridConfigs'](_0x42e37c){const _0x421f69=a0_0xe6d1da;this[_0x421f69(0x21c)]=_0x42e37c['grid'],this[_0x421f69(0x20e)]=_0x42e37c[_0x421f69(0x215)],this['searchConfig']=_0x42e37c[_0x421f69(0x203)],this[_0x421f69(0x20f)]=_0x42e37c['gridEmphasized'];}async[a0_0xe6d1da(0x1fb)](){const _0x3f33ee=a0_0xe6d1da;this[_0x3f33ee(0x220)]=await MetaApi['parseGridConfigSet'](this);}async[a0_0xe6d1da(0x1f7)](){const _0x10fe93=a0_0xe6d1da;await this['grist'][_0x10fe93(0x1f7)]();}async[a0_0xe6d1da(0x204)](){const _0x343e7e=a0_0xe6d1da;let _0x5113f9=MetaApi[_0x343e7e(0x1f3)](this[_0x343e7e(0x20a)]);!!ValueUtil['isNotEmpty'](_0x5113f9)&&await this[_0x343e7e(0x1ef)](_0x5113f9)&&this[_0x343e7e(0x1f7)]();}async[a0_0xe6d1da(0x221)](){const _0x36cdea=a0_0xe6d1da;let _0x3debff=MetaApi[_0x36cdea(0x214)](this[_0x36cdea(0x20a)],!0x0);return ValueUtil[_0x36cdea(0x1eb)](_0x3debff)?await this[_0x36cdea(0x225)](_0x3debff[0x0]):{};}async[a0_0xe6d1da(0x21e)](){const _0x371dc0=a0_0xe6d1da;let _0x46b5bf=MetaApi[_0x371dc0(0x214)](this[_0x371dc0(0x20a)],!0x0);!!ValueUtil['isNotEmpty'](_0x46b5bf)&&await this[_0x371dc0(0x219)](_0x46b5bf)&&this[_0x371dc0(0x1f7)]();}async[a0_0xe6d1da(0x1f4)](){const _0x2a3972=a0_0xe6d1da;let _0x10074f=TermsUtil['tTitle'](ValueUtil[_0x2a3972(0x1ee)](this[_0x2a3972(0x222)],'title'));return await MetaApi[_0x2a3972(0x1f0)](this['isElement'],_0x10074f,this[_0x2a3972(0x20a)]);}async[a0_0xe6d1da(0x1ff)](){}async[a0_0xe6d1da(0x207)](){const _0x4c54eb=a0_0xe6d1da;this[_0x4c54eb(0x20a)]&&(this['grist']['data']={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0xe6d1da(0x1fe)](){const _0x39e564=a0_0xe6d1da;let _0x18c432=this[_0x39e564(0x20a)][_0x39e564(0x201)]['records'];return _0x18c432=JSON['parse'](JSON[_0x39e564(0x20c)](_0x18c432)),_0x18c432[_0x39e564(0x1fd)](_0x1e10c9=>{const _0x4930e1=_0x39e564;Object[_0x4930e1(0x1f2)](_0x1e10c9)['forEach'](_0x4a417e=>{const _0x5c5bcf=_0x4930e1;_0x4a417e[_0x5c5bcf(0x208)]('__')&&delete _0x1e10c9[_0x4a417e];});}),_0x18c432;}};
@@ -1 +1 @@
1
- function a0_0x5089(){const _0x2998fe=['7sGDINk','6214668OFGVlA','useButtonExport','gristButtonHandler','136232BCkkDj','button','56896JMTHWr','getButtonActionHandler','useButtonImport','useButtonAdd','import','properties','getContextButtons','50QsJWlu','getButtonContainer','getCustomButtonContainerStyle','170qqrGNr','5475993zvpJZq','389730EeDfsS','export','buttonConfig','customButtonHandler','315ICUGTN','add','parseBasicButtonConfigs','5592323IVZqOH','10711323Tuftbf','isButtonExist'];a0_0x5089=function(){return _0x2998fe;};return a0_0x5089();}const a0_0x3acca8=a0_0x127a;(function(_0x563b12,_0x14be28){const _0x78e8da=a0_0x127a,_0x545be3=_0x563b12();while(!![]){try{const _0x5bb875=parseInt(_0x78e8da(0x11e))/0x1*(-parseInt(_0x78e8da(0x114))/0x2)+-parseInt(_0x78e8da(0x113))/0x3+parseInt(_0x78e8da(0x124))/0x4*(parseInt(_0x78e8da(0x112))/0x5)+-parseInt(_0x78e8da(0x11f))/0x6+parseInt(_0x78e8da(0x11c))/0x7+parseInt(_0x78e8da(0x122))/0x8*(parseInt(_0x78e8da(0x118))/0x9)+parseInt(_0x78e8da(0x10f))/0xa*(parseInt(_0x78e8da(0x11b))/0xb);if(_0x5bb875===_0x14be28)break;else _0x545be3['push'](_0x545be3['shift']());}catch(_0x141729){_0x545be3['push'](_0x545be3['shift']());}}}(a0_0x5089,0xe239d));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';function a0_0x127a(_0x18ae00,_0x16584b){const _0x508918=a0_0x5089();return a0_0x127a=function(_0x127ab8,_0x4c608e){_0x127ab8=_0x127ab8-0x10a;let _0x4553bf=_0x508918[_0x127ab8];return _0x4553bf;},a0_0x127a(_0x18ae00,_0x16584b);}export const MetaButtonMixin=_0x5e5acc=>class extends MetaServiceMixin(_0x5e5acc){static get[a0_0x3acca8(0x10d)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x3acca8(0x111)](){return MetaUiUtil['getCustomButtonContainerStyles']();}[a0_0x3acca8(0x10e)](){const _0xabbc34=a0_0x3acca8;return MetaUiUtil[_0xabbc34(0x10e)](this);}[a0_0x3acca8(0x110)](){return this['isPage']?html``:MetaUiUtil['getButtonContainer'](this);}async['getBasicButtonHandler'](_0x49c23f,_0x461a45,_0x357d05){const _0x5234e4=a0_0x3acca8;return await MetaUiUtil[_0x5234e4(0x125)](this,_0x49c23f,_0x461a45,_0x357d05);}async[a0_0x3acca8(0x117)](_0x28a0ab){const _0x2fbeb4=a0_0x3acca8;await MetaUiUtil[_0x2fbeb4(0x117)](this,_0x28a0ab);}async[a0_0x3acca8(0x121)](_0x206b50,_0x45336a){const _0x2c9f2f=a0_0x3acca8;await MetaUiUtil[_0x2c9f2f(0x121)](this,_0x206b50,_0x45336a);}[a0_0x3acca8(0x11a)](_0x4a01ed){const _0x303e58=a0_0x3acca8;this['buttonConfig']=_0x4a01ed[_0x303e58(0x123)],this[_0x303e58(0x10a)]=MetaUiUtil[_0x303e58(0x11d)](this[_0x303e58(0x116)],_0x303e58(0x10c)),this[_0x303e58(0x120)]=MetaUiUtil[_0x303e58(0x11d)](this[_0x303e58(0x116)],_0x303e58(0x115)),this[_0x303e58(0x10b)]=MetaUiUtil['isButtonExist'](this['buttonConfig'],_0x303e58(0x119));}};
1
+ const a0_0x5b8eb1=a0_0x39fa;(function(_0x54c38a,_0x58de34){const _0x220611=a0_0x39fa,_0x664ada=_0x54c38a();while(!![]){try{const _0xc06cfd=-parseInt(_0x220611(0x14d))/0x1*(parseInt(_0x220611(0x148))/0x2)+-parseInt(_0x220611(0x13b))/0x3*(-parseInt(_0x220611(0x138))/0x4)+parseInt(_0x220611(0x147))/0x5+parseInt(_0x220611(0x13f))/0x6*(parseInt(_0x220611(0x139))/0x7)+-parseInt(_0x220611(0x14e))/0x8+-parseInt(_0x220611(0x135))/0x9*(-parseInt(_0x220611(0x13c))/0xa)+parseInt(_0x220611(0x137))/0xb*(-parseInt(_0x220611(0x14c))/0xc);if(_0xc06cfd===_0x58de34)break;else _0x664ada['push'](_0x664ada['shift']());}catch(_0x2abc1b){_0x664ada['push'](_0x664ada['shift']());}}}(a0_0x30f2,0x3d1b2));function a0_0x39fa(_0x187b28,_0x489759){const _0x30f2b2=a0_0x30f2();return a0_0x39fa=function(_0x39facf,_0x1f6fdd){_0x39facf=_0x39facf-0x133;let _0x3851df=_0x30f2b2[_0x39facf];return _0x3851df;},a0_0x39fa(_0x187b28,_0x489759);}import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';function a0_0x30f2(){const _0x3d8ca4=['buttonConfig','getButtonContainer','parseBasicButtonConfigs','809628UxlPyb','757LakBid','1682584hOXQvE','getButtonActionHandler','isPage','155934VOQpQi','getContextButtons','99wvcZTC','416RlzDUT','7QrGcFE','useButtonAdd','11553BfXkKc','160WlSLMg','customButtonHandler','properties','2504910WTxuMD','isButtonExist','gristButtonHandler','button','getBasicButtonHandler','export','add','getCustomButtonContainerStyle','729910cqnhWq','458qWxsYx'];a0_0x30f2=function(){return _0x3d8ca4;};return a0_0x30f2();}export const MetaButtonMixin=_0x4ae350=>class extends MetaServiceMixin(_0x4ae350){static get[a0_0x5b8eb1(0x13e)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x5b8eb1(0x146)](){return MetaUiUtil['getCustomButtonContainerStyles']();}[a0_0x5b8eb1(0x136)](){const _0x3a4df0=a0_0x5b8eb1;return MetaUiUtil[_0x3a4df0(0x136)](this);}[a0_0x5b8eb1(0x14a)](){const _0x556dcb=a0_0x5b8eb1;return this[_0x556dcb(0x134)]?html``:MetaUiUtil[_0x556dcb(0x14a)](this);}async[a0_0x5b8eb1(0x143)](_0x6dd3f3,_0x33cfcb,_0x4821e0){const _0x35165f=a0_0x5b8eb1;return await MetaUiUtil[_0x35165f(0x133)](this,_0x6dd3f3,_0x33cfcb,_0x4821e0);}async[a0_0x5b8eb1(0x13d)](_0x41956d){const _0x3cd0dd=a0_0x5b8eb1;await MetaUiUtil[_0x3cd0dd(0x13d)](this,_0x41956d);}async[a0_0x5b8eb1(0x141)](_0x4c1788,_0x19ba35){const _0x10c659=a0_0x5b8eb1;await MetaUiUtil[_0x10c659(0x141)](this,_0x4c1788,_0x19ba35);}[a0_0x5b8eb1(0x14b)](_0x1e48af){const _0x1dc34d=a0_0x5b8eb1;this['buttonConfig']=_0x1e48af[_0x1dc34d(0x142)],this['useButtonImport']=MetaUiUtil[_0x1dc34d(0x140)](this[_0x1dc34d(0x149)],'import'),this['useButtonExport']=MetaUiUtil['isButtonExist'](this[_0x1dc34d(0x149)],_0x1dc34d(0x144)),this[_0x1dc34d(0x13a)]=MetaUiUtil[_0x1dc34d(0x140)](this[_0x1dc34d(0x149)],_0x1dc34d(0x145));}};
@@ -1 +1 @@
1
- function a0_0x1543(){const _0x292902=['removeAttribute','patchData','call','name','firstUpdated','styles','editing','record','target','showAlertPopup','dispatchEvent','currentData','before','9730800HvLGWe','formRenderConfig','column','parseFormConfigs','cuFlag','formConfigSet','__dirtyfields__','isPage','context','pageInitialized','__origin__','editable','form-field-change','field-change','text.NOTHING_CHANGED','__dirty__','key','759380ORkVlf','stopPropagation','isEquals','activityDataSet','save','getBasicFormStyles','updateMultiple','activity','keys','entries','tagName','Esc','focus','dataSet','title.info','34446mKuiNt','parent_id','button','Escape','click','Enter','formColumnConfig','currentTarget','1060581xmcaYJ','dirtyData','findOne','getData','addEventListener','parseFormConfigSet','setAttribute','1147572KBXITh','1261132RiBhUt','OX-GRID-FIELD','getContextObject','validation','connectedCallback','isElement','startsWith','__seq__','filter','after','map','removeGarbageData','3633609uMPypN','detail','form','2XYbfSa','forEach','orgData','fetch','renderRoot','isEmpty','assign'];a0_0x1543=function(){return _0x292902;};return a0_0x1543();}const a0_0x3ca3f1=a0_0x9cb6;(function(_0x4010eb,_0x2a56b4){const _0x581ec5=a0_0x9cb6,_0x4c3e71=_0x4010eb();while(!![]){try{const _0x731e31=-parseInt(_0x581ec5(0xa9))/0x1+-parseInt(_0x581ec5(0x75))/0x2*(-parseInt(_0x581ec5(0xb1))/0x3)+-parseInt(_0x581ec5(0xb9))/0x4+-parseInt(_0x581ec5(0x9a))/0x5+-parseInt(_0x581ec5(0xb8))/0x6+-parseInt(_0x581ec5(0x72))/0x7+parseInt(_0x581ec5(0x89))/0x8;if(_0x731e31===_0x2a56b4)break;else _0x4c3e71['push'](_0x4c3e71['shift']());}catch(_0x37b575){_0x4c3e71['push'](_0x4c3e71['shift']());}}}(a0_0x1543,0x57623));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x9cb6(_0x273779,_0x146add){const _0x1543b8=a0_0x1543();return a0_0x9cb6=function(_0x9cb605,_0x2e743f){_0x9cb605=_0x9cb605-0x69;let _0x34c716=_0x1543b8[_0x9cb605];return _0x34c716;},a0_0x9cb6(_0x273779,_0x146add);}import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x2fd5cd=>class extends MetaButtonMixin(_0x2fd5cd){static get[a0_0x3ca3f1(0x81)](){const _0x5e1348=a0_0x3ca3f1;return MetaApi[_0x5e1348(0x9f)]();}static get['properties'](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x3ca3f1(0x91)](){const _0x9b10ae=a0_0x3ca3f1;return MetaUiUtil[_0x9b10ae(0xbb)](this);}async[a0_0x3ca3f1(0x6a)](){const _0x312dac=a0_0x3ca3f1;await this['getAndParseMenuMeta'](),this[_0x312dac(0x6b)]&&await this[_0x312dac(0x8c)](),this[_0x312dac(0x9d)]&&(this[_0x312dac(0xa7)]=this[_0x312dac(0x9d)]),!0x0!==this['is_activity']||this[_0x312dac(0xaa)]||(this[_0x312dac(0xaa)]=_0x312dac(0xa1)),super['connectedCallback']&&await super[_0x312dac(0x6a)](),this[_0x312dac(0x6b)]&&await this['fetch'](),this['renderRoot'][_0x312dac(0xb5)]('keydown',_0x4e77b8=>{const _0x304504=_0x312dac;switch(_0x4e77b8[_0x304504(0x99)]){case _0x304504(0xa5):case _0x304504(0xac):case _0x304504(0xae):this['focus'](),this[_0x304504(0xb0)]&&this[_0x304504(0xb0)][_0x304504(0x7c)](_0x304504(0x82)),this[_0x304504(0xb0)]=null;}}),this[_0x312dac(0x79)]['addEventListener'](_0x312dac(0xad),_0x110566=>{const _0x3126e5=_0x312dac;_0x110566[_0x3126e5(0x9b)]();let _0x184501=_0x110566[_0x3126e5(0x84)];if(this[_0x3126e5(0xb0)]&&(this[_0x3126e5(0xa6)](),this[_0x3126e5(0xb0)][_0x3126e5(0x7c)](_0x3126e5(0x82))),_0x3126e5(0xba)!==_0x184501[_0x3126e5(0xa4)]||!_0x184501[_0x3126e5(0x8b)][_0x3126e5(0x83)][_0x3126e5(0x94)])return this['focus'](),void(this[_0x3126e5(0xb0)]=null);this['currentTarget']=_0x184501,_0x184501[_0x3126e5(0xb7)]('editing','true');}),this[_0x312dac(0xb5)](_0x312dac(0x96),_0x424ed5=>{const _0x5e8d12=_0x312dac;var {after:_0x51b0d9,before:_0x8da7bc,column:_0x573aaa,record:_0x58287d,row:_0x395007}=_0x424ed5[_0x5e8d12(0x73)];if(ValueUtil['isEquals'](_0x51b0d9,_0x8da7bc))return;var _0x2934b0=_0x573aaa[_0x5e8d12(0x69)];if(_0x2934b0&&'function'==typeof _0x2934b0&&!_0x2934b0[_0x5e8d12(0x7e)](this,_0x51b0d9,_0x8da7bc,_0x58287d,_0x573aaa))return;let _0x163b77=_0x573aaa[_0x5e8d12(0x7f)];_0x58287d[_0x163b77]=_0x51b0d9,_0x58287d[_0x5e8d12(0x8f)]=_0x58287d[_0x5e8d12(0x8f)]||{},_0x58287d[_0x5e8d12(0x93)]=_0x58287d[_0x5e8d12(0x93)]||{},_0x58287d[_0x5e8d12(0x8f)][_0x163b77]={'before':_0x58287d[_0x5e8d12(0x93)][_0x163b77],'after':_0x58287d[_0x163b77]},ValueUtil[_0x5e8d12(0x9c)](_0x58287d['__dirtyfields__'][_0x163b77][_0x5e8d12(0x88)],_0x58287d[_0x5e8d12(0x8f)][_0x163b77][_0x5e8d12(0x6f)])&&delete _0x58287d[_0x5e8d12(0x8f)][_0x163b77],ValueUtil['isNotEmpty'](_0x58287d[_0x5e8d12(0x8f)])?_0x58287d[_0x5e8d12(0x98)]='M':_0x58287d['__dirty__']='',this[_0x5e8d12(0x83)]={..._0x58287d},this[_0x5e8d12(0x86)](new CustomEvent(_0x5e8d12(0x95),{'bubbles':!0x0,'composed':!0x0,'detail':_0x424ed5['detail']}));});}async[a0_0x3ca3f1(0x80)](){const _0x218f37=a0_0x3ca3f1;super[_0x218f37(0x80)]&&await super[_0x218f37(0x80)]();}async[a0_0x3ca3f1(0x92)](){const _0x506852=a0_0x3ca3f1;this[_0x506852(0x90)]&&await this[_0x506852(0x8c)](),super['pageInitialized']&&await super[_0x506852(0x92)](),this[_0x506852(0x90)]&&await this[_0x506852(0x78)]();}['render'](){return MetaApi['getBasicFormHtml'](this);}['parseBasicFormConfigs'](_0x340298){const _0x5ac4db=a0_0x3ca3f1;this[_0x5ac4db(0xaf)]=_0x340298['grid_column'],this[_0x5ac4db(0x8a)]=_0x340298[_0x5ac4db(0x74)],_0x340298[_0x5ac4db(0xab)]=_0x340298[_0x5ac4db(0xab)][_0x5ac4db(0x6e)](_0x4e63c5=>'save'==_0x4e63c5['name']);}async['parseFormConfigs'](){const _0x4c93e9=a0_0x3ca3f1;this[_0x4c93e9(0x8e)]=await MetaApi[_0x4c93e9(0xb6)](this);}get[a0_0x3ca3f1(0x77)](){const _0xc85a95=a0_0x3ca3f1;return this[_0xc85a95(0x71)](this[_0xc85a95(0x83)]['__origin__']);}get[a0_0x3ca3f1(0xb2)](){const _0x501ea3=a0_0x3ca3f1;if(ValueUtil['isEmpty'](this['record']['__dirtyfields__']))return{};let _0x489fa6={};return Object[_0x501ea3(0xa3)](this['record']['__dirtyfields__'])['map'](([_0x4adfd6,_0x251b42])=>{const _0x41b302=_0x501ea3;0x0==_0x4adfd6[_0x41b302(0x6c)]('__')&&(_0x489fa6[_0x4adfd6]=_0x251b42[_0x41b302(0x6f)]);}),_0x489fa6;}get[a0_0x3ca3f1(0x87)](){const _0x5cd96b=a0_0x3ca3f1;return this[_0x5cd96b(0x71)](this[_0x5cd96b(0x83)]);}[a0_0x3ca3f1(0x71)](_0x304c93){const _0x192ab9=a0_0x3ca3f1;let _0x4f4f05={};if(_0x304c93)return Object[_0x192ab9(0xa3)](_0x304c93)[_0x192ab9(0x70)](([_0x16a474,_0x2bb6bf])=>{const _0x4e3eef=_0x192ab9;0x0==_0x16a474[_0x4e3eef(0x6c)]('__')&&(_0x4f4f05[_0x16a474]=_0x2bb6bf);}),_0x4f4f05;}get[a0_0x3ca3f1(0x7d)](){const _0xc1daa6=a0_0x3ca3f1;let _0x11cc22=this['dirtyData'],_0x4e0209=this[_0xc1daa6(0x83)];return ValueUtil['isEmpty'](_0x11cc22)?[]:(ValueUtil['isNotEmpty'](_0x4e0209['id'])?(_0x11cc22['id']=_0x4e0209['id'],_0x11cc22[_0xc1daa6(0x8d)]='M'):_0x11cc22[_0xc1daa6(0x8d)]='+',Object[_0xc1daa6(0xa2)](_0x11cc22)[_0xc1daa6(0x76)](_0x58be34=>{'object'==typeof _0x11cc22[_0x58be34]&&(_0x11cc22[_0x58be34]={'id':_0x11cc22[_0x58be34]['id']});}),[_0x11cc22]);}async[a0_0x3ca3f1(0x78)](){const _0x4de0d1=a0_0x3ca3f1;if(ValueUtil[_0x4de0d1(0x7a)](this[_0x4de0d1(0xaa)]))return;let _0x39e1bf=await this[_0x4de0d1(0xb3)](this[_0x4de0d1(0xaa)]);_0x39e1bf[_0x4de0d1(0x6d)]=0x1;let _0xfef31a={};Object[_0x4de0d1(0x7b)](_0xfef31a,_0x39e1bf),_0x39e1bf['__origin__']=_0xfef31a,this[_0x4de0d1(0x83)]={..._0x39e1bf};}async[a0_0x3ca3f1(0x9e)](){const _0x21ed3e=a0_0x3ca3f1;let _0x3affdf=this[_0x21ed3e(0x7d)];if(ValueUtil[_0x21ed3e(0x7a)](_0x3affdf))return void MetaApi[_0x21ed3e(0x85)](_0x21ed3e(0xa8),_0x21ed3e(0x97));let _0x113d71=await this[_0x21ed3e(0xa0)](_0x3affdf);return _0x113d71&&await this['fetch'](),_0x113d71;}async['clear'](){const _0x527eae=a0_0x3ca3f1;this['record']&&(this[_0x527eae(0x83)]={});}[a0_0x3ca3f1(0xb4)](){const _0x3af2c0=a0_0x3ca3f1;return this[_0x3af2c0(0x87)]||{};}};
1
+ const a0_0x3965da=a0_0x5cdc;(function(_0x182a5c,_0x406096){const _0x3e737c=a0_0x5cdc,_0x522479=_0x182a5c();while(!![]){try{const _0x3d290a=-parseInt(_0x3e737c(0x11e))/0x1*(-parseInt(_0x3e737c(0x15d))/0x2)+parseInt(_0x3e737c(0x13a))/0x3*(-parseInt(_0x3e737c(0x121))/0x4)+parseInt(_0x3e737c(0x14b))/0x5*(parseInt(_0x3e737c(0x11f))/0x6)+-parseInt(_0x3e737c(0x120))/0x7+-parseInt(_0x3e737c(0x118))/0x8+parseInt(_0x3e737c(0x130))/0x9*(-parseInt(_0x3e737c(0x135))/0xa)+parseInt(_0x3e737c(0x159))/0xb*(parseInt(_0x3e737c(0x13b))/0xc);if(_0x3d290a===_0x406096)break;else _0x522479['push'](_0x522479['shift']());}catch(_0xb45189){_0x522479['push'](_0x522479['shift']());}}}(a0_0x4011,0x9b22f));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x4011(){const _0x1642d1=['getData','24oNgArx','12uizLRl','save','currentData','editable','tagName','dirtyData','formConfigSet','isEquals','removeGarbageData','formRenderConfig','detail','OX-GRID-FIELD','showAlertPopup','getBasicFormHtml','object','findOne','81400esRAXx','validation','editing','cuFlag','parent_id','isEmpty','isElement','__origin__','clear','renderRoot','true','field-change','keys','parseFormConfigs','10924331MVnHPc','Escape','formColumnConfig','setAttribute','2vZGgpC','button','key','context','fetch','currentTarget','parseBasicFormConfigs','keydown','patchData','is_activity','__dirtyfields__','__seq__','focus','firstUpdated','target','record','1255464XBPfae','title.info','isPage','updateMultiple','connectedCallback','orgData','809887GzTZwL','156lkHFnK','4196227nrJUqc','118268KibwDE','startsWith','call','name','properties','dispatchEvent','__dirty__','dataSet','pageInitialized','addEventListener','isNotEmpty','stopPropagation','entries','activityDataSet','column','23499yRWMVq','function','render','parseFormConfigSet','map','2290iDgcTL','getAndParseMenuMeta','forEach','removeAttribute'];a0_0x4011=function(){return _0x1642d1;};return a0_0x4011();}function a0_0x5cdc(_0x14a204,_0x5ad31c){const _0x4011c7=a0_0x4011();return a0_0x5cdc=function(_0x5cdcb2,_0x2ea124){_0x5cdcb2=_0x5cdcb2-0x110;let _0x403535=_0x4011c7[_0x5cdcb2];return _0x403535;},a0_0x5cdc(_0x14a204,_0x5ad31c);}export const MetaFormMixin=_0x4dd958=>class extends MetaButtonMixin(_0x4dd958){static get['styles'](){return MetaApi['getBasicFormStyles']();}static get[a0_0x3965da(0x125)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x3965da(0x160)](){return MetaUiUtil['getContextObject'](this);}async['connectedCallback'](){const _0x36f1cf=a0_0x3965da;await this[_0x36f1cf(0x136)](),this[_0x36f1cf(0x151)]&&await this[_0x36f1cf(0x158)](),this[_0x36f1cf(0x12e)]&&(this[_0x36f1cf(0x128)]=this['activityDataSet']),!0x0!==this[_0x36f1cf(0x111)]||this['parent_id']||(this['parent_id']='activity'),super[_0x36f1cf(0x11c)]&&await super['connectedCallback'](),this[_0x36f1cf(0x151)]&&await this['fetch'](),this['renderRoot'][_0x36f1cf(0x12a)](_0x36f1cf(0x164),_0x3182bf=>{const _0x1d885b=_0x36f1cf;switch(_0x3182bf[_0x1d885b(0x15f)]){case'Esc':case _0x1d885b(0x15a):case'Enter':this[_0x1d885b(0x114)](),this[_0x1d885b(0x162)]&&this[_0x1d885b(0x162)]['removeAttribute'](_0x1d885b(0x14d)),this['currentTarget']=null;}}),this[_0x36f1cf(0x154)][_0x36f1cf(0x12a)]('click',_0x19787c=>{const _0x46c393=_0x36f1cf;_0x19787c[_0x46c393(0x12c)]();let _0x499810=_0x19787c[_0x46c393(0x116)];if(this[_0x46c393(0x162)]&&(this[_0x46c393(0x114)](),this[_0x46c393(0x162)][_0x46c393(0x138)](_0x46c393(0x14d))),_0x46c393(0x146)!==_0x499810[_0x46c393(0x13f)]||!_0x499810[_0x46c393(0x12f)][_0x46c393(0x117)][_0x46c393(0x13e)])return this[_0x46c393(0x114)](),void(this[_0x46c393(0x162)]=null);this['currentTarget']=_0x499810,_0x499810[_0x46c393(0x15c)](_0x46c393(0x14d),_0x46c393(0x155));}),this[_0x36f1cf(0x12a)](_0x36f1cf(0x156),_0x5a31a3=>{const _0x2f0694=_0x36f1cf;var {after:_0x1706f7,before:_0x1840d8,column:_0x1a6dbe,record:_0x2f89de,row:_0x4f706b}=_0x5a31a3['detail'];if(ValueUtil['isEquals'](_0x1706f7,_0x1840d8))return;var _0x4326a5=_0x1a6dbe[_0x2f0694(0x14c)];if(_0x4326a5&&_0x2f0694(0x131)==typeof _0x4326a5&&!_0x4326a5[_0x2f0694(0x123)](this,_0x1706f7,_0x1840d8,_0x2f89de,_0x1a6dbe))return;let _0x5ad862=_0x1a6dbe[_0x2f0694(0x124)];_0x2f89de[_0x5ad862]=_0x1706f7,_0x2f89de[_0x2f0694(0x112)]=_0x2f89de[_0x2f0694(0x112)]||{},_0x2f89de['__origin__']=_0x2f89de[_0x2f0694(0x152)]||{},_0x2f89de[_0x2f0694(0x112)][_0x5ad862]={'before':_0x2f89de[_0x2f0694(0x152)][_0x5ad862],'after':_0x2f89de[_0x5ad862]},ValueUtil[_0x2f0694(0x142)](_0x2f89de[_0x2f0694(0x112)][_0x5ad862]['before'],_0x2f89de[_0x2f0694(0x112)][_0x5ad862]['after'])&&delete _0x2f89de[_0x2f0694(0x112)][_0x5ad862],ValueUtil[_0x2f0694(0x12b)](_0x2f89de['__dirtyfields__'])?_0x2f89de[_0x2f0694(0x127)]='M':_0x2f89de[_0x2f0694(0x127)]='',this['record']={..._0x2f89de},this[_0x2f0694(0x126)](new CustomEvent('form-field-change',{'bubbles':!0x0,'composed':!0x0,'detail':_0x5a31a3[_0x2f0694(0x145)]}));});}async[a0_0x3965da(0x115)](){const _0x368fe1=a0_0x3965da;super[_0x368fe1(0x115)]&&await super[_0x368fe1(0x115)]();}async[a0_0x3965da(0x129)](){const _0x3249d8=a0_0x3965da;this[_0x3249d8(0x11a)]&&await this[_0x3249d8(0x158)](),super[_0x3249d8(0x129)]&&await super['pageInitialized'](),this['isPage']&&await this[_0x3249d8(0x161)]();}[a0_0x3965da(0x132)](){const _0x33994d=a0_0x3965da;return MetaApi[_0x33994d(0x148)](this);}[a0_0x3965da(0x163)](_0x1ce93f){const _0xcb494b=a0_0x3965da;this[_0xcb494b(0x15b)]=_0x1ce93f['grid_column'],this[_0xcb494b(0x144)]=_0x1ce93f['form'],_0x1ce93f[_0xcb494b(0x15e)]=_0x1ce93f[_0xcb494b(0x15e)]['filter'](_0x216c07=>_0xcb494b(0x13c)==_0x216c07[_0xcb494b(0x124)]);}async['parseFormConfigs'](){const _0x5b6067=a0_0x3965da;this[_0x5b6067(0x141)]=await MetaApi[_0x5b6067(0x133)](this);}get[a0_0x3965da(0x11d)](){const _0x28af10=a0_0x3965da;return this[_0x28af10(0x143)](this[_0x28af10(0x117)][_0x28af10(0x152)]);}get['dirtyData'](){const _0x194d90=a0_0x3965da;if(ValueUtil[_0x194d90(0x150)](this[_0x194d90(0x117)][_0x194d90(0x112)]))return{};let _0x3e820b={};return Object[_0x194d90(0x12d)](this[_0x194d90(0x117)][_0x194d90(0x112)])[_0x194d90(0x134)](([_0x24902e,_0x48f6f7])=>{const _0x126017=_0x194d90;0x0==_0x24902e[_0x126017(0x122)]('__')&&(_0x3e820b[_0x24902e]=_0x48f6f7['after']);}),_0x3e820b;}get[a0_0x3965da(0x13d)](){const _0x273517=a0_0x3965da;return this[_0x273517(0x143)](this[_0x273517(0x117)]);}[a0_0x3965da(0x143)](_0x384411){const _0x42308d=a0_0x3965da;let _0x1d48bb={};if(_0x384411)return Object[_0x42308d(0x12d)](_0x384411)[_0x42308d(0x134)](([_0xc294aa,_0xddfee9])=>{const _0x36c4c8=_0x42308d;0x0==_0xc294aa[_0x36c4c8(0x122)]('__')&&(_0x1d48bb[_0xc294aa]=_0xddfee9);}),_0x1d48bb;}get[a0_0x3965da(0x110)](){const _0x24e497=a0_0x3965da;let _0x319573=this[_0x24e497(0x140)],_0x1f0e8a=this['record'];return ValueUtil['isEmpty'](_0x319573)?[]:(ValueUtil['isNotEmpty'](_0x1f0e8a['id'])?(_0x319573['id']=_0x1f0e8a['id'],_0x319573[_0x24e497(0x14e)]='M'):_0x319573[_0x24e497(0x14e)]='+',Object[_0x24e497(0x157)](_0x319573)[_0x24e497(0x137)](_0x58a67d=>{const _0x40c722=_0x24e497;_0x40c722(0x149)==typeof _0x319573[_0x58a67d]&&(_0x319573[_0x58a67d]={'id':_0x319573[_0x58a67d]['id']});}),[_0x319573]);}async[a0_0x3965da(0x161)](){const _0x291a73=a0_0x3965da;if(ValueUtil[_0x291a73(0x150)](this[_0x291a73(0x14f)]))return;let _0x5986c2=await this[_0x291a73(0x14a)](this[_0x291a73(0x14f)]);_0x5986c2[_0x291a73(0x113)]=0x1;let _0x1199ef={};Object['assign'](_0x1199ef,_0x5986c2),_0x5986c2['__origin__']=_0x1199ef,this[_0x291a73(0x117)]={..._0x5986c2};}async[a0_0x3965da(0x13c)](){const _0x39ae5c=a0_0x3965da;let _0x23d1af=this['patchData'];if(ValueUtil[_0x39ae5c(0x150)](_0x23d1af))return void MetaApi[_0x39ae5c(0x147)](_0x39ae5c(0x119),'text.NOTHING_CHANGED');let _0xa0afa6=await this[_0x39ae5c(0x11b)](_0x23d1af);return _0xa0afa6&&await this[_0x39ae5c(0x161)](),_0xa0afa6;}async[a0_0x3965da(0x153)](){const _0x1eb39e=a0_0x3965da;this[_0x1eb39e(0x117)]&&(this[_0x1eb39e(0x117)]={});}[a0_0x3965da(0x139)](){const _0x30d200=a0_0x3965da;return this[_0x30d200(0x13d)]||{};}};
@@ -1 +1 @@
1
- const a0_0x5d44bf=a0_0x2fdb;(function(_0x5c4e54,_0x31cfcc){const _0x16f1c9=a0_0x2fdb,_0x14a585=_0x5c4e54();while(!![]){try{const _0x41ecff=parseInt(_0x16f1c9(0x1eb))/0x1+parseInt(_0x16f1c9(0x1d9))/0x2+-parseInt(_0x16f1c9(0x1c2))/0x3+parseInt(_0x16f1c9(0x1ff))/0x4+parseInt(_0x16f1c9(0x1c8))/0x5+-parseInt(_0x16f1c9(0x1bf))/0x6+parseInt(_0x16f1c9(0x1bd))/0x7*(parseInt(_0x16f1c9(0x1f1))/0x8);if(_0x41ecff===_0x31cfcc)break;else _0x14a585['push'](_0x14a585['shift']());}catch(_0x32c756){_0x14a585['push'](_0x14a585['shift']());}}}(a0_0x1754,0xb6f54));function a0_0x1754(){const _0xac1d15=['pageInitialized','dataSet','title','grid','main','searchConfig','ox-filters-form-base','filter','header','grid_column','parse','___data','name','startsWith','408787wbnwWy','gridConfig','meta-tab-element','push','forEach','importable','119760bkHoig','parseBasicGridConfigs','filterFormId','activityDataSet','#detail','fetch','delete','styles','parseGristConfigs','grist','getParams','options','gridEmphasized','isElement','2307448eAVbQY','searchFields','getSelectedIdList','firstUpdated','tTitle','value','columns','isNotEmpty','detailElement','connectedCallback','getGristTabHtml','shadowRoot','gristId','getData','ox-grist','records','385qTbinV','actions','7603452bexrNj','render','menuInfo','3912381QWvcpe','map','properties','searchFieldValues','renderRoot','gristConfigSet','508790ZfMBhx','export','beforeFetch','gridColumnConfig','exportable','filterForm','save','findOne','operator','getAndParseMenuMeta','record','getBasicGristTabStyles','useFilterForm','patchesForUpdateMultiple','import','context','parseGridConfigSet','2820016GyeFOT','search','querySelector','type'];a0_0x1754=function(){return _0xac1d15;};return a0_0x1754();}import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';function a0_0x2fdb(_0x58908b,_0x2f1000){const _0x1754bc=a0_0x1754();return a0_0x2fdb=function(_0x2fdbd8,_0x25e74e){_0x2fdbd8=_0x2fdbd8-0x1b7;let _0x5165ba=_0x1754bc[_0x2fdbd8];return _0x5165ba;},a0_0x2fdb(_0x58908b,_0x2f1000);}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x423a56=>class extends MetaButtonMixin(_0x423a56){static get[a0_0x5d44bf(0x1f8)](){const _0x518e42=a0_0x5d44bf;return MetaApi[_0x518e42(0x1d3)]();}static get[a0_0x5d44bf(0x1c4)](){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_0x5d44bf(0x1fa)](){const _0x582ede=a0_0x5d44bf;return this['renderRoot'][_0x582ede(0x1db)](this['gristId']);}get[a0_0x5d44bf(0x1cd)](){const _0x2fb8b5=a0_0x5d44bf;return this[_0x2fb8b5(0x1b8)]?.[_0x2fb8b5(0x1db)](this[_0x2fb8b5(0x1f3)]);}get[a0_0x5d44bf(0x207)](){const _0xc095f9=a0_0x5d44bf;return this['shadowRoot']['querySelector'](_0xc095f9(0x1f5));}get[a0_0x5d44bf(0x1d7)](){const _0x1fdca7=a0_0x5d44bf;let _0x1d6d1f=MetaUiUtil['getContextObject'](this);return _0x1d6d1f[_0x1fdca7(0x1be)]&&delete _0x1d6d1f[_0x1fdca7(0x1be)],_0x1d6d1f[_0x1fdca7(0x1cc)]&&delete _0x1d6d1f[_0x1fdca7(0x1cc)],_0x1d6d1f[_0x1fdca7(0x1f0)]&&delete _0x1d6d1f[_0x1fdca7(0x1f0)],_0x1d6d1f;}async['connectedCallback'](){const _0x5870f1=a0_0x5d44bf;this[_0x5870f1(0x1b9)]=_0x5870f1(0x1bb),this[_0x5870f1(0x1f3)]=_0x5870f1(0x1e3),await this[_0x5870f1(0x1d1)](),this[_0x5870f1(0x1fe)]&&await this[_0x5870f1(0x1f9)](),this[_0x5870f1(0x1f4)]&&(this[_0x5870f1(0x1de)]=(this[_0x5870f1(0x1f4)]||{})[_0x5870f1(0x1e1)]),super[_0x5870f1(0x208)]&&await super[_0x5870f1(0x208)]();}async[a0_0x5d44bf(0x202)](){const _0x43de22=a0_0x5d44bf;super[_0x43de22(0x202)]&&await super[_0x43de22(0x202)]();}async[a0_0x5d44bf(0x1dd)](){const _0x38d920=a0_0x5d44bf;this['isPage']&&await this[_0x38d920(0x1f9)](),super[_0x38d920(0x1dd)]&&await super['pageInitialized']();}[a0_0x5d44bf(0x1c0)](){const _0x626353=a0_0x5d44bf;return MetaApi[_0x626353(0x1b7)](this);}[a0_0x5d44bf(0x1f2)](_0x1bbcf1){const _0x2c6ce0=a0_0x5d44bf;this[_0x2c6ce0(0x1ec)]=_0x1bbcf1[_0x2c6ce0(0x1e0)],this[_0x2c6ce0(0x1cb)]=_0x1bbcf1[_0x2c6ce0(0x1e6)],this[_0x2c6ce0(0x1e2)]=_0x1bbcf1['search'],this[_0x2c6ce0(0x1fd)]=_0x1bbcf1['gridEmphasized'];}async[a0_0x5d44bf(0x1f9)](){const _0x49dc0d=a0_0x5d44bf;this[_0x49dc0d(0x1c7)]=await MetaApi[_0x49dc0d(0x1d8)](this),this['useMasterFilterForm']=!0x0===this[_0x49dc0d(0x1d4)],this['useFilterForm']=!0x1,this[_0x49dc0d(0x1c5)]=[],this[_0x49dc0d(0x200)]=this[_0x49dc0d(0x1c7)][_0x49dc0d(0x205)][_0x49dc0d(0x1e4)](_0x44587e=>_0x44587e[_0x49dc0d(0x1e4)])[_0x49dc0d(0x1c3)](_0x54a835=>{const _0x2a5bcc=_0x49dc0d;let _0x38be27={'name':_0x54a835[_0x2a5bcc(0x1e9)],'type':_0x2a5bcc(0x1da)===_0x54a835['filter'][_0x2a5bcc(0x1d0)]?_0x2a5bcc(0x1da):_0x54a835[_0x2a5bcc(0x1dc)],'label':_0x54a835[_0x2a5bcc(0x1e5)],'operator':_0x54a835[_0x2a5bcc(0x1e4)][_0x2a5bcc(0x1d0)]?_0x54a835[_0x2a5bcc(0x1e4)][_0x2a5bcc(0x1d0)]:'eq'};return _0x54a835[_0x2a5bcc(0x1e4)][_0x2a5bcc(0x1fc)]&&(_0x38be27['options']=_0x54a835['filter'][_0x2a5bcc(0x1fc)]),_0x54a835['record'][_0x2a5bcc(0x1fc)]&&(_0x38be27[_0x2a5bcc(0x1fc)]=_0x54a835[_0x2a5bcc(0x1d2)][_0x2a5bcc(0x1fc)]),_0x54a835[_0x2a5bcc(0x1e4)][_0x2a5bcc(0x204)]&&this['searchFieldValues'][_0x2a5bcc(0x1ee)]({'name':_0x38be27[_0x2a5bcc(0x1e9)],'operator':_0x38be27[_0x2a5bcc(0x1d0)],'value':_0x54a835[_0x2a5bcc(0x1e4)][_0x2a5bcc(0x204)]}),delete _0x54a835['filter'],_0x38be27;});}async[a0_0x5d44bf(0x1f6)](){const _0x246c25=a0_0x5d44bf;await this[_0x246c25(0x1fa)][_0x246c25(0x1f6)]();}async[a0_0x5d44bf(0x1ca)]({page:_0x479aa9=0x0,limit:_0x2414c4=0x0,sortings:_0x5e20b0=[],filters:_0x4749e7=[]}){const _0x260486=a0_0x5d44bf;let _0x411a98=this[_0x260486(0x1c6)][_0x260486(0x1db)](_0x260486(0x1ed));return await _0x411a98['clear'](),!0x0;}async[a0_0x5d44bf(0x1ce)](){const _0x3349a6=a0_0x5d44bf;let _0x26a60e=MetaApi[_0x3349a6(0x1d5)](this[_0x3349a6(0x1fa)]);!!ValueUtil['isNotEmpty'](_0x26a60e)&&await this['updateMultiple'](_0x26a60e)&&this[_0x3349a6(0x1f6)]();}async['find'](){const _0x15e9b4=a0_0x5d44bf;let _0x189cfc=MetaApi[_0x15e9b4(0x201)](this[_0x15e9b4(0x1fa)],!0x0);return ValueUtil['isNotEmpty'](_0x189cfc)?await this[_0x15e9b4(0x1cf)](_0x189cfc[0x0]):{};}async[a0_0x5d44bf(0x1f7)](){const _0x2af36e=a0_0x5d44bf;let _0x3a68e6=MetaApi['getSelectedIdList'](this[_0x2af36e(0x1fa)],!0x0);!!ValueUtil[_0x2af36e(0x206)](_0x3a68e6)&&await this['deleteByIds'](_0x3a68e6)&&this[_0x2af36e(0x1f6)]();}async[a0_0x5d44bf(0x1c9)](){const _0x5ba8c3=a0_0x5d44bf;let _0x1efead=TermsUtil[_0x5ba8c3(0x203)](ValueUtil[_0x5ba8c3(0x1fb)](this[_0x5ba8c3(0x1c1)],_0x5ba8c3(0x1df)));return await MetaApi['exportableData'](this['isElement'],_0x1efead,this['grist']);}async[a0_0x5d44bf(0x1d6)](){}[a0_0x5d44bf(0x1ba)](){const _0x19748e=a0_0x5d44bf;let _0x412d70=this[_0x19748e(0x1fa)][_0x19748e(0x1e8)][_0x19748e(0x1bc)];return _0x412d70=JSON[_0x19748e(0x1e7)](JSON['stringify'](_0x412d70)),_0x412d70[_0x19748e(0x1ef)](_0x4e9e81=>{const _0x4c89f7=_0x19748e;Object['keys'](_0x4e9e81)[_0x4c89f7(0x1ef)](_0x1bb206=>{const _0x2a6021=_0x4c89f7;_0x1bb206[_0x2a6021(0x1ea)]('__')&&delete _0x4e9e81[_0x1bb206];});}),{'main':_0x412d70,'detail':this[_0x19748e(0x1c6)][_0x19748e(0x1db)](_0x19748e(0x1ed))[_0x19748e(0x1ba)]()};}};
1
+ const a0_0x1a77dd=a0_0x9997;(function(_0x2b1c95,_0x29cdb6){const _0x30fd51=a0_0x9997,_0x2b12d0=_0x2b1c95();while(!![]){try{const _0xd32154=-parseInt(_0x30fd51(0x1fa))/0x1*(parseInt(_0x30fd51(0x207))/0x2)+-parseInt(_0x30fd51(0x238))/0x3+parseInt(_0x30fd51(0x20d))/0x4+parseInt(_0x30fd51(0x21d))/0x5*(parseInt(_0x30fd51(0x1f4))/0x6)+-parseInt(_0x30fd51(0x1fc))/0x7*(parseInt(_0x30fd51(0x22a))/0x8)+-parseInt(_0x30fd51(0x22e))/0x9+parseInt(_0x30fd51(0x1fd))/0xa*(parseInt(_0x30fd51(0x240))/0xb);if(_0xd32154===_0x29cdb6)break;else _0x2b12d0['push'](_0x2b12d0['shift']());}catch(_0x287786){_0x2b12d0['push'](_0x2b12d0['shift']());}}}(a0_0x75f2,0x80d87));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x9997(_0x4abb92,_0x4005fc){const _0x75f208=a0_0x75f2();return a0_0x9997=function(_0x99974c,_0x5ed803){_0x99974c=_0x99974c-0x1f1;let _0x8a8261=_0x75f208[_0x99974c];return _0x8a8261;},a0_0x9997(_0x4abb92,_0x4005fc);}export const MetaGristTabMixin=_0x3a4afd=>class extends MetaButtonMixin(_0x3a4afd){static get[a0_0x1a77dd(0x21b)](){const _0x5cdcc3=a0_0x1a77dd;return MetaApi[_0x5cdcc3(0x209)]();}static get[a0_0x1a77dd(0x22d)](){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_0x1a77dd(0x216)](){const _0x3d0c2a=a0_0x1a77dd;return this[_0x3d0c2a(0x1f3)][_0x3d0c2a(0x239)](this['gristId']);}get[a0_0x1a77dd(0x234)](){const _0x55ee88=a0_0x1a77dd;return this['shadowRoot']?.[_0x55ee88(0x239)](this[_0x55ee88(0x23d)]);}get['detailElement'](){const _0x55a463=a0_0x1a77dd;return this[_0x55a463(0x202)]['querySelector']('#detail');}get[a0_0x1a77dd(0x1f8)](){const _0xee2894=a0_0x1a77dd;let _0x1cb4ca=MetaUiUtil[_0xee2894(0x225)](this);return _0x1cb4ca[_0xee2894(0x1f5)]&&delete _0x1cb4ca[_0xee2894(0x1f5)],_0x1cb4ca[_0xee2894(0x228)]&&delete _0x1cb4ca['exportable'],_0x1cb4ca[_0xee2894(0x223)]&&delete _0x1cb4ca['importable'],_0x1cb4ca;}async[a0_0x1a77dd(0x204)](){const _0x231d03=a0_0x1a77dd;this['gristId']='ox-grist',this[_0x231d03(0x23d)]=_0x231d03(0x224),await this[_0x231d03(0x222)](),this[_0x231d03(0x20a)]&&await this['parseGristConfigs'](),this[_0x231d03(0x231)]&&(this[_0x231d03(0x1f9)]=(this[_0x231d03(0x231)]||{})['main']),super[_0x231d03(0x204)]&&await super[_0x231d03(0x204)]();}async['firstUpdated'](){const _0x588305=a0_0x1a77dd;super[_0x588305(0x20b)]&&await super[_0x588305(0x20b)]();}async[a0_0x1a77dd(0x232)](){const _0x2c8a53=a0_0x1a77dd;this['isPage']&&await this[_0x2c8a53(0x233)](),super['pageInitialized']&&await super[_0x2c8a53(0x232)]();}[a0_0x1a77dd(0x200)](){const _0x3e4301=a0_0x1a77dd;return MetaApi[_0x3e4301(0x229)](this);}[a0_0x1a77dd(0x213)](_0x5a9cdf){const _0xa26e48=a0_0x1a77dd;this[_0xa26e48(0x23a)]=_0x5a9cdf[_0xa26e48(0x208)],this[_0xa26e48(0x23b)]=_0x5a9cdf[_0xa26e48(0x1ff)],this[_0xa26e48(0x1f6)]=_0x5a9cdf[_0xa26e48(0x217)],this[_0xa26e48(0x206)]=_0x5a9cdf[_0xa26e48(0x206)];}async[a0_0x1a77dd(0x233)](){const _0x52985e=a0_0x1a77dd;this['gristConfigSet']=await MetaApi['parseGridConfigSet'](this),this[_0x52985e(0x1fe)]=!0x0===this['useFilterForm'],this[_0x52985e(0x218)]=!0x1,this[_0x52985e(0x23e)]=[],this[_0x52985e(0x214)]=this['gristConfigSet'][_0x52985e(0x1fb)][_0x52985e(0x23f)](_0x2fa625=>_0x2fa625[_0x52985e(0x23f)])[_0x52985e(0x205)](_0x3ae0b1=>{const _0x53aef1=_0x52985e;let _0x609a8b={'name':_0x3ae0b1[_0x53aef1(0x226)],'type':_0x53aef1(0x217)===_0x3ae0b1[_0x53aef1(0x23f)][_0x53aef1(0x22f)]?'search':_0x3ae0b1[_0x53aef1(0x21a)],'label':_0x3ae0b1[_0x53aef1(0x220)],'operator':_0x3ae0b1[_0x53aef1(0x23f)][_0x53aef1(0x22f)]?_0x3ae0b1[_0x53aef1(0x23f)][_0x53aef1(0x22f)]:'eq'};return _0x3ae0b1[_0x53aef1(0x23f)][_0x53aef1(0x215)]&&(_0x609a8b[_0x53aef1(0x215)]=_0x3ae0b1['filter'][_0x53aef1(0x215)]),_0x3ae0b1[_0x53aef1(0x22c)][_0x53aef1(0x215)]&&(_0x609a8b[_0x53aef1(0x215)]=_0x3ae0b1[_0x53aef1(0x22c)]['options']),_0x3ae0b1['filter'][_0x53aef1(0x20c)]&&this[_0x53aef1(0x23e)]['push']({'name':_0x609a8b[_0x53aef1(0x226)],'operator':_0x609a8b[_0x53aef1(0x22f)],'value':_0x3ae0b1['filter'][_0x53aef1(0x20c)]}),delete _0x3ae0b1[_0x53aef1(0x23f)],_0x609a8b;});}async[a0_0x1a77dd(0x203)](){const _0x1b8664=a0_0x1a77dd;await this['grist'][_0x1b8664(0x203)]();}async['beforeFetch']({page:_0x2dbe84=0x0,limit:_0x2b1d4a=0x0,sortings:_0x849d87=[],filters:_0x3ab0c0=[]}){const _0x4fdfa2=a0_0x1a77dd;let _0x5c526c=this[_0x4fdfa2(0x1f3)][_0x4fdfa2(0x239)](_0x4fdfa2(0x212));return await _0x5c526c['clear'](),!0x0;}async[a0_0x1a77dd(0x21f)](){const _0x41fd17=a0_0x1a77dd;let _0x13cc0c=MetaApi[_0x41fd17(0x237)](this[_0x41fd17(0x216)]);!!ValueUtil[_0x41fd17(0x236)](_0x13cc0c)&&await this[_0x41fd17(0x235)](_0x13cc0c)&&this[_0x41fd17(0x203)]();}async['find'](){const _0x1c1e46=a0_0x1a77dd;let _0x142e0a=MetaApi['getSelectedIdList'](this['grist'],!0x0);return ValueUtil[_0x1c1e46(0x236)](_0x142e0a)?await this['findOne'](_0x142e0a[0x0]):{};}async[a0_0x1a77dd(0x22b)](){const _0xadc905=a0_0x1a77dd;let _0x30fce0=MetaApi[_0xadc905(0x21c)](this[_0xadc905(0x216)],!0x0);!!ValueUtil[_0xadc905(0x236)](_0x30fce0)&&await this[_0xadc905(0x20e)](_0x30fce0)&&this[_0xadc905(0x203)]();}async[a0_0x1a77dd(0x20f)](){const _0x1996aa=a0_0x1a77dd;let _0x5cd093=TermsUtil[_0x1996aa(0x211)](ValueUtil[_0x1996aa(0x1f7)](this['menuInfo'],_0x1996aa(0x210)));return await MetaApi[_0x1996aa(0x1f1)](this[_0x1996aa(0x20a)],_0x5cd093,this[_0x1996aa(0x216)]);}async[a0_0x1a77dd(0x201)](){}[a0_0x1a77dd(0x219)](){const _0x3efc24=a0_0x1a77dd;let _0x536967=this[_0x3efc24(0x216)][_0x3efc24(0x23c)][_0x3efc24(0x1f2)];return _0x536967=JSON[_0x3efc24(0x227)](JSON[_0x3efc24(0x230)](_0x536967)),_0x536967[_0x3efc24(0x221)](_0x102816=>{const _0xf7a686=_0x3efc24;Object[_0xf7a686(0x21e)](_0x102816)['forEach'](_0x201706=>{_0x201706['startsWith']('__')&&delete _0x102816[_0x201706];});}),{'main':_0x536967,'detail':this[_0x3efc24(0x1f3)]['querySelector'](_0x3efc24(0x212))[_0x3efc24(0x219)]()};}};function a0_0x75f2(){const _0x3197cc=['styles','getSelectedIdList','3560XXUnCU','keys','save','header','forEach','getAndParseMenuMeta','importable','ox-filters-form-base','getContextObject','name','parse','exportable','getGristTabHtml','8nJrqKG','delete','record','properties','2320245YmlhkI','operator','stringify','activityDataSet','pageInitialized','parseGristConfigs','filterForm','updateMultiple','isNotEmpty','patchesForUpdateMultiple','1344015dBblEO','querySelector','gridConfig','gridColumnConfig','___data','filterFormId','searchFieldValues','filter','16183156bxTrEe','exportableData','records','renderRoot','444qVqOQY','actions','searchConfig','getParams','context','dataSet','3938CmuYhv','columns','1106882wnhwiS','10KOHFUy','useMasterFilterForm','grid_column','render','import','shadowRoot','fetch','connectedCallback','map','gridEmphasized','346CTbGnb','grid','getBasicGristTabStyles','isElement','firstUpdated','value','2196308KQsIKh','deleteByIds','export','title','tTitle','meta-tab-element','parseBasicGridConfigs','searchFields','options','grist','search','useFilterForm','getData','type'];a0_0x75f2=function(){return _0x3197cc;};return a0_0x75f2();}
@@ -1 +1 @@
1
- const a0_0xc1d73b=a0_0x57f2;(function(_0x2939af,_0x1755d5){const _0x27bc9b=a0_0x57f2,_0x101f18=_0x2939af();while(!![]){try{const _0x1f5f02=-parseInt(_0x27bc9b(0x16c))/0x1+parseInt(_0x27bc9b(0x195))/0x2+parseInt(_0x27bc9b(0x16d))/0x3+parseInt(_0x27bc9b(0x169))/0x4+-parseInt(_0x27bc9b(0x194))/0x5+-parseInt(_0x27bc9b(0x192))/0x6+-parseInt(_0x27bc9b(0x17e))/0x7*(-parseInt(_0x27bc9b(0x18d))/0x8);if(_0x1f5f02===_0x1755d5)break;else _0x101f18['push'](_0x101f18['shift']());}catch(_0x12e0e6){_0x101f18['push'](_0x101f18['shift']());}}}(a0_0xc2a4,0xcaa18));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x57f2(_0xf49ac0,_0x45b735){const _0xc2a42f=a0_0xc2a4();return a0_0x57f2=function(_0x57f2bb,_0x569381){_0x57f2bb=_0x57f2bb-0x161;let _0x921376=_0xc2a42f[_0x57f2bb];return _0x921376;},a0_0x57f2(_0xf49ac0,_0x45b735);}import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';function a0_0xc2a4(){const _0x36e564=['connectedCallback','map','push','dataSet','options','1387099aRCXjf','value','context','searchConfig','masterElement','actions','header','activityDataSet','useMasterFilterForm','type','gristId','getBasicMainTabStyles','useFilterForm','buttonConfig','getMainGrist','112AVuvRP','grist','gridColumnConfig','grid_column','parseGristConfigs','4157262skBKim','getAndParseMenuMeta','6517570WuhLUj','18124kPOQHe','getMainTabHtml','isPage','ox-filters-form-base','search','firstUpdated','gristConfigSet','main','useButtonImport','gridEmphasized','parseGridConfigSet','ox-grist','importable','render','pageInitialized','searchFieldValues','beforeFetch','663764XooXiA','fetch','properties','201975URiEkE','237423hziafJ','filterForm','clear','name','columns','shadowRoot','filter','operator','getContextObject','exportable','record','filterFormId'];a0_0xc2a4=function(){return _0x36e564;};return a0_0xc2a4();}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x53c698=>class extends MetaButtonMixin(_0x53c698){static get['styles'](){const _0x437a7c=a0_0x57f2;return MetaApi[_0x437a7c(0x189)]();}static get[a0_0xc1d73b(0x16b)](){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_0xc1d73b(0x18e)](){const _0x58e457=a0_0xc1d73b;return this['masterElement'][_0x58e457(0x18c)]();}get[a0_0xc1d73b(0x16e)](){const _0x45225c=a0_0xc1d73b;return this[_0x45225c(0x172)]?.['querySelector'](this[_0x45225c(0x178)]);}get[a0_0xc1d73b(0x180)](){const _0x11035c=a0_0xc1d73b;let _0x27c267=MetaUiUtil[_0x11035c(0x175)](this);return _0x27c267[_0x11035c(0x183)]&&delete _0x27c267[_0x11035c(0x183)],_0x27c267['exportable']&&delete _0x27c267[_0x11035c(0x176)],_0x27c267[_0x11035c(0x164)]&&delete _0x27c267[_0x11035c(0x164)],_0x27c267;}async[a0_0xc1d73b(0x179)](){const _0x1a3e5f=a0_0xc1d73b;this[_0x1a3e5f(0x188)]=_0x1a3e5f(0x163),this[_0x1a3e5f(0x178)]=_0x1a3e5f(0x198),await this[_0x1a3e5f(0x193)](),this['isElement']&&await this[_0x1a3e5f(0x191)](),this[_0x1a3e5f(0x185)]&&(this[_0x1a3e5f(0x17c)]=(this['activityDataSet']||{})[_0x1a3e5f(0x19c)]),super[_0x1a3e5f(0x179)]&&await super[_0x1a3e5f(0x179)]();}async[a0_0xc1d73b(0x19a)](){const _0x49784c=a0_0xc1d73b;super['firstUpdated']&&await super[_0x49784c(0x19a)]();}async[a0_0xc1d73b(0x166)](){const _0x560007=a0_0xc1d73b;this[_0x560007(0x197)]&&await this[_0x560007(0x191)](),super[_0x560007(0x166)]&&await super[_0x560007(0x166)]();}[a0_0xc1d73b(0x165)](){const _0x3b193d=a0_0xc1d73b;return MetaApi[_0x3b193d(0x196)](this);}['parseBasicGridConfigs'](_0x29ffe1){const _0x97941e=a0_0xc1d73b;this['gridConfig']=_0x29ffe1['grid'],this[_0x97941e(0x18f)]=_0x29ffe1[_0x97941e(0x190)],this[_0x97941e(0x181)]=_0x29ffe1['search'],this[_0x97941e(0x161)]=_0x29ffe1['gridEmphasized'];}async[a0_0xc1d73b(0x191)](){const _0xc5093e=a0_0xc1d73b;this[_0xc5093e(0x19b)]=await MetaApi[_0xc5093e(0x162)](this),this[_0xc5093e(0x186)]=!0x0===this['useFilterForm'],this[_0xc5093e(0x18a)]=!0x1,this[_0xc5093e(0x18b)]=void 0x0,this['useButtonExport']=!0x1,this[_0xc5093e(0x19d)]=!0x1,this[_0xc5093e(0x167)]=[],this['searchFields']=this[_0xc5093e(0x19b)][_0xc5093e(0x171)]['filter'](_0xd97951=>_0xd97951[_0xc5093e(0x173)])[_0xc5093e(0x17a)](_0x2cb34d=>{const _0x46ee9c=_0xc5093e;let _0x8537b6={'name':_0x2cb34d['name'],'type':_0x46ee9c(0x199)===_0x2cb34d['filter'][_0x46ee9c(0x174)]?_0x46ee9c(0x199):_0x2cb34d[_0x46ee9c(0x187)],'label':_0x2cb34d[_0x46ee9c(0x184)],'operator':_0x2cb34d['filter'][_0x46ee9c(0x174)]?_0x2cb34d[_0x46ee9c(0x173)][_0x46ee9c(0x174)]:'eq'};return _0x2cb34d[_0x46ee9c(0x173)][_0x46ee9c(0x17d)]&&(_0x8537b6['options']=_0x2cb34d[_0x46ee9c(0x173)]['options']),_0x2cb34d[_0x46ee9c(0x177)][_0x46ee9c(0x17d)]&&(_0x8537b6[_0x46ee9c(0x17d)]=_0x2cb34d[_0x46ee9c(0x177)][_0x46ee9c(0x17d)]),_0x2cb34d[_0x46ee9c(0x173)][_0x46ee9c(0x17f)]&&this['searchFieldValues'][_0x46ee9c(0x17b)]({'name':_0x8537b6[_0x46ee9c(0x170)],'operator':_0x8537b6[_0x46ee9c(0x174)],'value':_0x2cb34d['filter'][_0x46ee9c(0x17f)]}),delete _0x2cb34d[_0x46ee9c(0x173)],_0x8537b6;});}async[a0_0xc1d73b(0x16a)](){const _0xfcebb5=a0_0xc1d73b;await this[_0xfcebb5(0x18e)][_0xfcebb5(0x16a)]();}async[a0_0xc1d73b(0x168)]({page:_0x302780=0x0,limit:_0x2e553d=0x0,sortings:_0x5354af=[],filters:_0x106510=[]}){const _0x26ac23=a0_0xc1d73b;return this[_0x26ac23(0x182)]&&this[_0x26ac23(0x182)][_0x26ac23(0x16f)]&&await this[_0x26ac23(0x182)][_0x26ac23(0x16f)](),!0x0;}['getData'](){const _0x4b6b25=a0_0xc1d73b;return{'master':this[_0x4b6b25(0x182)]['getData']()};}};
1
+ function a0_0x5295(){const _0x577915=['getMainTabHtml','6245855jnSGpo','gridConfig','71042XOcMAU','useButtonExport','options','header','2162460VoqTRS','ox-grist','shadowRoot','masterElement','getBasicMainTabStyles','searchConfig','filterFormId','type','isElement','parseGristConfigs','useMasterFilterForm','map','5831HJZHRX','75933wYmQJL','searchFieldValues','operator','39KOrnqI','name','gristId','context','activityDataSet','buttonConfig','getAndParseMenuMeta','dataSet','2391868kjGDjJ','value','columns','pageInitialized','properties','getData','filter','getContextObject','5hlCiMN','importable','record','clear','firstUpdated','fetch','filterForm','actions','3570ydUcPs','315169VnJcvX','push','search','styles','useFilterForm','exportable','useButtonImport','parseBasicGridConfigs','grid','144tlhEAJ','grist','gristConfigSet','grid_column','connectedCallback','ox-filters-form-base','gridEmphasized'];a0_0x5295=function(){return _0x577915;};return a0_0x5295();}const a0_0x2c50fa=a0_0x3d76;(function(_0x549598,_0x4489cf){const _0x3d8e19=a0_0x3d76,_0x322227=_0x549598();while(!![]){try{const _0x428a24=parseInt(_0x3d8e19(0xf5))/0x1+parseInt(_0x3d8e19(0x108))/0x2*(parseInt(_0x3d8e19(0xdc))/0x3)+-parseInt(_0x3d8e19(0xe4))/0x4*(parseInt(_0x3d8e19(0xec))/0x5)+-parseInt(_0x3d8e19(0xf4))/0x6*(parseInt(_0x3d8e19(0xd8))/0x7)+parseInt(_0x3d8e19(0xfe))/0x8*(-parseInt(_0x3d8e19(0xd9))/0x9)+parseInt(_0x3d8e19(0xcc))/0xa+parseInt(_0x3d8e19(0x106))/0xb;if(_0x428a24===_0x4489cf)break;else _0x322227['push'](_0x322227['shift']());}catch(_0x28e687){_0x322227['push'](_0x322227['shift']());}}}(a0_0x5295,0x4d085));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x3d76(_0x37f0e4,_0x2a5649){const _0x5295cc=a0_0x5295();return a0_0x3d76=function(_0x3d767f,_0x5be084){_0x3d767f=_0x3d767f-0xcb;let _0x2ee611=_0x5295cc[_0x3d767f];return _0x2ee611;},a0_0x3d76(_0x37f0e4,_0x2a5649);}export const MetaMainTabMixin=_0x56d918=>class extends MetaButtonMixin(_0x56d918){static get[a0_0x2c50fa(0xf8)](){const _0x51d8c9=a0_0x2c50fa;return MetaApi[_0x51d8c9(0xd0)]();}static get[a0_0x2c50fa(0xe8)](){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_0x2c50fa(0xff)](){const _0x1fac67=a0_0x2c50fa;return this[_0x1fac67(0xcf)]['getMainGrist']();}get[a0_0x2c50fa(0xf2)](){const _0x4d1ac1=a0_0x2c50fa;return this[_0x4d1ac1(0xce)]?.['querySelector'](this['filterFormId']);}get[a0_0x2c50fa(0xdf)](){const _0x1662fb=a0_0x2c50fa;let _0x2a6fad=MetaUiUtil[_0x1662fb(0xeb)](this);return _0x2a6fad[_0x1662fb(0xf3)]&&delete _0x2a6fad['actions'],_0x2a6fad[_0x1662fb(0xfa)]&&delete _0x2a6fad[_0x1662fb(0xfa)],_0x2a6fad[_0x1662fb(0xed)]&&delete _0x2a6fad['importable'],_0x2a6fad;}async[a0_0x2c50fa(0x102)](){const _0x28773b=a0_0x2c50fa;this[_0x28773b(0xde)]=_0x28773b(0xcd),this[_0x28773b(0xd2)]=_0x28773b(0x103),await this[_0x28773b(0xe2)](),this[_0x28773b(0xd4)]&&await this['parseGristConfigs'](),this[_0x28773b(0xe0)]&&(this[_0x28773b(0xe3)]=(this[_0x28773b(0xe0)]||{})['main']),super[_0x28773b(0x102)]&&await super[_0x28773b(0x102)]();}async[a0_0x2c50fa(0xf0)](){const _0x5aecf1=a0_0x2c50fa;super[_0x5aecf1(0xf0)]&&await super[_0x5aecf1(0xf0)]();}async[a0_0x2c50fa(0xe7)](){const _0x1a5d12=a0_0x2c50fa;this['isPage']&&await this[_0x1a5d12(0xd5)](),super[_0x1a5d12(0xe7)]&&await super[_0x1a5d12(0xe7)]();}['render'](){const _0x1b873d=a0_0x2c50fa;return MetaApi[_0x1b873d(0x105)](this);}[a0_0x2c50fa(0xfc)](_0x4b12de){const _0x2632ce=a0_0x2c50fa;this[_0x2632ce(0x107)]=_0x4b12de[_0x2632ce(0xfd)],this['gridColumnConfig']=_0x4b12de[_0x2632ce(0x101)],this[_0x2632ce(0xd1)]=_0x4b12de[_0x2632ce(0xf7)],this[_0x2632ce(0x104)]=_0x4b12de[_0x2632ce(0x104)];}async[a0_0x2c50fa(0xd5)](){const _0x8ad3b8=a0_0x2c50fa;this[_0x8ad3b8(0x100)]=await MetaApi['parseGridConfigSet'](this),this[_0x8ad3b8(0xd6)]=!0x0===this[_0x8ad3b8(0xf9)],this[_0x8ad3b8(0xf9)]=!0x1,this[_0x8ad3b8(0xe1)]=void 0x0,this[_0x8ad3b8(0x109)]=!0x1,this[_0x8ad3b8(0xfb)]=!0x1,this[_0x8ad3b8(0xda)]=[],this['searchFields']=this[_0x8ad3b8(0x100)][_0x8ad3b8(0xe6)][_0x8ad3b8(0xea)](_0x148ef6=>_0x148ef6['filter'])[_0x8ad3b8(0xd7)](_0x426bea=>{const _0x35d69d=_0x8ad3b8;let _0x48e4a6={'name':_0x426bea[_0x35d69d(0xdd)],'type':_0x35d69d(0xf7)===_0x426bea['filter'][_0x35d69d(0xdb)]?_0x35d69d(0xf7):_0x426bea[_0x35d69d(0xd3)],'label':_0x426bea[_0x35d69d(0xcb)],'operator':_0x426bea[_0x35d69d(0xea)][_0x35d69d(0xdb)]?_0x426bea[_0x35d69d(0xea)][_0x35d69d(0xdb)]:'eq'};return _0x426bea['filter'][_0x35d69d(0x10a)]&&(_0x48e4a6[_0x35d69d(0x10a)]=_0x426bea[_0x35d69d(0xea)][_0x35d69d(0x10a)]),_0x426bea[_0x35d69d(0xee)][_0x35d69d(0x10a)]&&(_0x48e4a6['options']=_0x426bea['record']['options']),_0x426bea['filter'][_0x35d69d(0xe5)]&&this[_0x35d69d(0xda)][_0x35d69d(0xf6)]({'name':_0x48e4a6[_0x35d69d(0xdd)],'operator':_0x48e4a6[_0x35d69d(0xdb)],'value':_0x426bea['filter'][_0x35d69d(0xe5)]}),delete _0x426bea[_0x35d69d(0xea)],_0x48e4a6;});}async['fetch'](){const _0x1d2d92=a0_0x2c50fa;await this['grist'][_0x1d2d92(0xf1)]();}async['beforeFetch']({page:_0x25acd8=0x0,limit:_0x4c4685=0x0,sortings:_0x5958ef=[],filters:_0x1c6b52=[]}){const _0x1c1cb4=a0_0x2c50fa;return this[_0x1c1cb4(0xcf)]&&this[_0x1c1cb4(0xcf)][_0x1c1cb4(0xef)]&&await this[_0x1c1cb4(0xcf)]['clear'](),!0x0;}[a0_0x2c50fa(0xe9)](){const _0x39ee12=a0_0x2c50fa;return{'master':this[_0x39ee12(0xcf)][_0x39ee12(0xe9)]()};}};
@@ -1 +1 @@
1
- const a0_0x387709=a0_0xd1de;(function(_0x32ef27,_0x37242f){const _0x16ab82=a0_0xd1de,_0x3a93bd=_0x32ef27();while(!![]){try{const _0x1cb09d=parseInt(_0x16ab82(0x15f))/0x1*(-parseInt(_0x16ab82(0x151))/0x2)+-parseInt(_0x16ab82(0x154))/0x3+parseInt(_0x16ab82(0x145))/0x4+-parseInt(_0x16ab82(0x16a))/0x5+-parseInt(_0x16ab82(0x13a))/0x6*(parseInt(_0x16ab82(0x162))/0x7)+parseInt(_0x16ab82(0x14d))/0x8*(parseInt(_0x16ab82(0x158))/0x9)+-parseInt(_0x16ab82(0x163))/0xa*(-parseInt(_0x16ab82(0x134))/0xb);if(_0x1cb09d===_0x37242f)break;else _0x3a93bd['push'](_0x3a93bd['shift']());}catch(_0x523a0f){_0x3a93bd['push'](_0x3a93bd['shift']());}}}(a0_0x4717,0x44f0c));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0xd1de(_0x33cafd,_0x4fdb8b){const _0x471723=a0_0x4717();return a0_0xd1de=function(_0xd1ded7,_0x311bab){_0xd1ded7=_0xd1ded7-0x12a;let _0x20d58f=_0x471723[_0xd1ded7];return _0x20d58f;},a0_0xd1de(_0x33cafd,_0x4fdb8b);}function a0_0x4717(){const _0x57c2a7=['menuInfo','searchConfig','325752mgcqDq','options','findOne','grist','1498uNMOSr','find','gridColumnConfig','796386FhHTNy','operator','gridConfig','save','27fjlmdG','search','filter','keys','ox-filters-form-base','forEach','stringify','511DBXAAS','patchesForUpdateMultiple','gristId','1722651AOKLoC','51560OEKKKK','grid_column','grid','startsWith','fetch','exportableData','dataSet','1678375JbJaFc','gristConfigSet','import','deleteByIds','ox-grist','updateMultiple','parseGristConfigs','export','activityDataSet','record','detailElement','isNotEmpty','gridEmphasized','connectedCallback','clear','importable','value','searchFieldValues','columns','2299rAfZQK','firstUpdated','getMasterDetailHtml','actions','shadowRoot','getParams','12NVUEgz','main','getSelectedIdList','getData','parse','filterFormId','isElement','useFilterForm','records','pageInitialized','getBasicMasterDetailStyles','2234724QPKKyu','querySelector','exportable','parseGridConfigSet','useMasterFilterForm','isPage'];a0_0x4717=function(){return _0x57c2a7;};return a0_0x4717();}export const MetaMasterDetailMixin=_0x419bda=>class extends MetaButtonMixin(_0x419bda){static get['styles'](){const _0x34732b=a0_0xd1de;return MetaApi[_0x34732b(0x144)]();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String,'detailElement':Object};}get[a0_0x387709(0x150)](){const _0x1b02ea=a0_0x387709;return this['renderRoot'][_0x1b02ea(0x146)](this[_0x1b02ea(0x161)]);}get['filterForm'](){const _0x3314da=a0_0x387709;return this[_0x3314da(0x138)]?.[_0x3314da(0x146)](this[_0x3314da(0x13f)]);}get['context'](){const _0x27dc8d=a0_0x387709;let _0x1618dc=MetaUiUtil['getContextObject'](this);return _0x1618dc[_0x27dc8d(0x137)]&&delete _0x1618dc['actions'],_0x1618dc[_0x27dc8d(0x147)]&&delete _0x1618dc['exportable'],_0x1618dc['importable']&&delete _0x1618dc[_0x27dc8d(0x130)],_0x1618dc;}async[a0_0x387709(0x12e)](){const _0x38a386=a0_0x387709;this[_0x38a386(0x161)]=_0x38a386(0x16e),this[_0x38a386(0x13f)]=_0x38a386(0x15c),await this['getAndParseMenuMeta'](),this['isElement']&&await this[_0x38a386(0x170)](),this[_0x38a386(0x172)]&&(this[_0x38a386(0x169)]=(this[_0x38a386(0x172)]||{})[_0x38a386(0x13b)]),super[_0x38a386(0x12e)]&&await super[_0x38a386(0x12e)]();}async[a0_0x387709(0x135)](){const _0x464d1e=a0_0x387709;super[_0x464d1e(0x135)]&&await super['firstUpdated']();}async[a0_0x387709(0x143)](){const _0x3fc3fd=a0_0x387709;this[_0x3fc3fd(0x14a)]&&await this[_0x3fc3fd(0x170)](),super[_0x3fc3fd(0x143)]&&await super[_0x3fc3fd(0x143)]();}['render'](){const _0x538abc=a0_0x387709;return MetaApi[_0x538abc(0x136)](this);}['parseBasicGridConfigs'](_0x2d1c29){const _0x3cb4d9=a0_0x387709;this[_0x3cb4d9(0x156)]=_0x2d1c29[_0x3cb4d9(0x165)],this[_0x3cb4d9(0x153)]=_0x2d1c29[_0x3cb4d9(0x164)],this[_0x3cb4d9(0x14c)]=_0x2d1c29[_0x3cb4d9(0x159)],this[_0x3cb4d9(0x12d)]=_0x2d1c29[_0x3cb4d9(0x12d)];}async[a0_0x387709(0x170)](){const _0x254f8f=a0_0x387709;this[_0x254f8f(0x16b)]=await MetaApi[_0x254f8f(0x148)](this),this[_0x254f8f(0x149)]=!0x0===this[_0x254f8f(0x141)],this[_0x254f8f(0x141)]=!0x1,this[_0x254f8f(0x132)]=[],this['searchFields']=this[_0x254f8f(0x16b)][_0x254f8f(0x133)][_0x254f8f(0x15a)](_0x3ca9fe=>_0x3ca9fe['filter'])['map'](_0xc858c5=>{const _0x34ee44=_0x254f8f;let _0x1d480d={'name':_0xc858c5['name'],'type':'search'===_0xc858c5[_0x34ee44(0x15a)][_0x34ee44(0x155)]?_0x34ee44(0x159):_0xc858c5['type'],'label':_0xc858c5['header'],'operator':_0xc858c5[_0x34ee44(0x15a)][_0x34ee44(0x155)]?_0xc858c5[_0x34ee44(0x15a)]['operator']:'eq'};return _0xc858c5[_0x34ee44(0x15a)]['options']&&(_0x1d480d[_0x34ee44(0x14e)]=_0xc858c5[_0x34ee44(0x15a)][_0x34ee44(0x14e)]),_0xc858c5[_0x34ee44(0x12a)]['options']&&(_0x1d480d['options']=_0xc858c5['record'][_0x34ee44(0x14e)]),_0xc858c5[_0x34ee44(0x15a)][_0x34ee44(0x131)]&&this[_0x34ee44(0x132)]['push']({'name':_0x1d480d['name'],'operator':_0x1d480d[_0x34ee44(0x155)],'value':_0xc858c5[_0x34ee44(0x15a)]['value']}),delete _0xc858c5[_0x34ee44(0x15a)],_0x1d480d;});}async[a0_0x387709(0x167)](){const _0x35fb91=a0_0x387709;await this[_0x35fb91(0x150)][_0x35fb91(0x167)]();}async['beforeFetch']({page:_0x27b495=0x0,limit:_0x21abb7=0x0,sortings:_0x40f294=[],filters:_0x1af819=[]}){const _0x41d86d=a0_0x387709;return this[_0x41d86d(0x12b)]&&this[_0x41d86d(0x12b)]['clear']&&await this[_0x41d86d(0x12b)][_0x41d86d(0x12f)](),!0x0;}async[a0_0x387709(0x157)](){const _0x3aab92=a0_0x387709;let _0x17a969=MetaApi[_0x3aab92(0x160)](this['grist']);!!ValueUtil[_0x3aab92(0x12c)](_0x17a969)&&await this[_0x3aab92(0x16f)](_0x17a969)&&this[_0x3aab92(0x167)]();}async[a0_0x387709(0x152)](){const _0x584127=a0_0x387709;let _0x504a0e=MetaApi[_0x584127(0x13c)](this['grist'],!0x0);return ValueUtil[_0x584127(0x12c)](_0x504a0e)?await this[_0x584127(0x14f)](_0x504a0e[0x0]):{};}async['delete'](){const _0x308814=a0_0x387709;let _0x25564e=MetaApi[_0x308814(0x13c)](this[_0x308814(0x150)],!0x0);!!ValueUtil[_0x308814(0x12c)](_0x25564e)&&await this[_0x308814(0x16d)](_0x25564e)&&this[_0x308814(0x167)]();}async[a0_0x387709(0x171)](){const _0x42ada2=a0_0x387709;let _0x6b6ca3=TermsUtil['tTitle'](ValueUtil[_0x42ada2(0x139)](this[_0x42ada2(0x14b)],'title'));return await MetaApi[_0x42ada2(0x168)](this[_0x42ada2(0x140)],_0x6b6ca3,this[_0x42ada2(0x150)]);}async[a0_0x387709(0x16c)](){}[a0_0x387709(0x13d)](){const _0x1a7e4f=a0_0x387709;let _0x35f211=this[_0x1a7e4f(0x150)]['___data'][_0x1a7e4f(0x142)];return _0x35f211=JSON[_0x1a7e4f(0x13e)](JSON[_0x1a7e4f(0x15e)](_0x35f211)),_0x35f211[_0x1a7e4f(0x15d)](_0x4e52bf=>{const _0x4e29a1=_0x1a7e4f;Object[_0x4e29a1(0x15b)](_0x4e52bf)[_0x4e29a1(0x15d)](_0xd2b992=>{const _0x1fe430=_0x4e29a1;_0xd2b992[_0x1fe430(0x166)]('__')&&delete _0x4e52bf[_0xd2b992];});}),{'main':_0x35f211,'detail':this[_0x1a7e4f(0x12b)]['getData']()};}};
1
+ const a0_0x16677e=a0_0x1e5c;(function(_0x48f5c9,_0x20ee07){const _0x4b602b=a0_0x1e5c,_0x203cca=_0x48f5c9();while(!![]){try{const _0x513914=-parseInt(_0x4b602b(0x1e2))/0x1*(parseInt(_0x4b602b(0x1f9))/0x2)+parseInt(_0x4b602b(0x1d3))/0x3+-parseInt(_0x4b602b(0x1d7))/0x4+parseInt(_0x4b602b(0x1f3))/0x5+parseInt(_0x4b602b(0x1f4))/0x6*(-parseInt(_0x4b602b(0x1fb))/0x7)+-parseInt(_0x4b602b(0x1d9))/0x8*(-parseInt(_0x4b602b(0x1c6))/0x9)+parseInt(_0x4b602b(0x1f2))/0xa;if(_0x513914===_0x20ee07)break;else _0x203cca['push'](_0x203cca['shift']());}catch(_0x55123f){_0x203cca['push'](_0x203cca['shift']());}}}(a0_0x57c7,0xac0d8));function a0_0x57c7(){const _0xce88af=['gridConfig','firstUpdated','deleteByIds','importable','185508TbErLb','pageInitialized','forEach','detailElement','grid_column','ox-filters-form-base','tTitle','actions','getParams','shadowRoot','searchFields','getData','styles','1820142CsxkpS','name','searchConfig','isNotEmpty','1753804riLvnk','clear','96PWblNH','options','records','fetch','gridEmphasized','import','useFilterForm','grid','filter','109YSlEZn','gristId','map','beforeFetch','find','value','push','context','searchFieldValues','exportable','getSelectedIdList','columns','connectedCallback','operator','ox-grist','menuInfo','5413600vHGHwg','2194895WCnmeY','1794DTLRrj','isElement','exportableData','gristConfigSet','parseGridConfigSet','2078PmXvMN','grist','13531tLjBnA','filterForm','delete','filterFormId','___data','parseGristConfigs','getMasterDetailHtml','startsWith','getBasicMasterDetailStyles','save','activityDataSet','record','type','properties','useMasterFilterForm'];a0_0x57c7=function(){return _0xce88af;};return a0_0x57c7();}import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x1e5c(_0xf94d68,_0x2560b5){const _0x57c74d=a0_0x57c7();return a0_0x1e5c=function(_0x1e5c8e,_0x20e44e){_0x1e5c8e=_0x1e5c8e-0x1c2;let _0x32e555=_0x57c74d[_0x1e5c8e];return _0x32e555;},a0_0x1e5c(_0xf94d68,_0x2560b5);}export const MetaMasterDetailMixin=_0x10f3e0=>class extends MetaButtonMixin(_0x10f3e0){static get[a0_0x16677e(0x1d2)](){const _0x4c75f8=a0_0x16677e;return MetaApi[_0x4c75f8(0x203)]();}static get[a0_0x16677e(0x208)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String,'detailElement':Object};}get['grist'](){const _0x215f87=a0_0x16677e;return this['renderRoot']['querySelector'](this[_0x215f87(0x1e3)]);}get[a0_0x16677e(0x1fc)](){const _0x16e5e0=a0_0x16677e;return this[_0x16e5e0(0x1cf)]?.['querySelector'](this[_0x16e5e0(0x1fe)]);}get[a0_0x16677e(0x1e9)](){const _0x41a0ca=a0_0x16677e;let _0x1e7353=MetaUiUtil['getContextObject'](this);return _0x1e7353[_0x41a0ca(0x1cd)]&&delete _0x1e7353[_0x41a0ca(0x1cd)],_0x1e7353[_0x41a0ca(0x1eb)]&&delete _0x1e7353['exportable'],_0x1e7353[_0x41a0ca(0x1c5)]&&delete _0x1e7353[_0x41a0ca(0x1c5)],_0x1e7353;}async[a0_0x16677e(0x1ee)](){const _0x1d2637=a0_0x16677e;this['gristId']=_0x1d2637(0x1f0),this[_0x1d2637(0x1fe)]=_0x1d2637(0x1cb),await this['getAndParseMenuMeta'](),this['isElement']&&await this[_0x1d2637(0x200)](),this[_0x1d2637(0x205)]&&(this['dataSet']=(this[_0x1d2637(0x205)]||{})['main']),super[_0x1d2637(0x1ee)]&&await super[_0x1d2637(0x1ee)]();}async['firstUpdated'](){const _0x14f1cc=a0_0x16677e;super[_0x14f1cc(0x1c3)]&&await super[_0x14f1cc(0x1c3)]();}async[a0_0x16677e(0x1c7)](){const _0x20c67f=a0_0x16677e;this['isPage']&&await this[_0x20c67f(0x200)](),super[_0x20c67f(0x1c7)]&&await super[_0x20c67f(0x1c7)]();}['render'](){const _0x4aa191=a0_0x16677e;return MetaApi[_0x4aa191(0x201)](this);}['parseBasicGridConfigs'](_0x214526){const _0x2ecc10=a0_0x16677e;this[_0x2ecc10(0x1c2)]=_0x214526[_0x2ecc10(0x1e0)],this['gridColumnConfig']=_0x214526[_0x2ecc10(0x1ca)],this[_0x2ecc10(0x1d5)]=_0x214526['search'],this[_0x2ecc10(0x1dd)]=_0x214526['gridEmphasized'];}async[a0_0x16677e(0x200)](){const _0x592a12=a0_0x16677e;this[_0x592a12(0x1f7)]=await MetaApi[_0x592a12(0x1f8)](this),this[_0x592a12(0x209)]=!0x0===this[_0x592a12(0x1df)],this[_0x592a12(0x1df)]=!0x1,this[_0x592a12(0x1ea)]=[],this[_0x592a12(0x1d0)]=this[_0x592a12(0x1f7)][_0x592a12(0x1ed)]['filter'](_0x29f07a=>_0x29f07a[_0x592a12(0x1e1)])[_0x592a12(0x1e4)](_0x52dcde=>{const _0x4d8777=_0x592a12;let _0x845288={'name':_0x52dcde['name'],'type':'search'===_0x52dcde[_0x4d8777(0x1e1)][_0x4d8777(0x1ef)]?'search':_0x52dcde[_0x4d8777(0x207)],'label':_0x52dcde['header'],'operator':_0x52dcde[_0x4d8777(0x1e1)][_0x4d8777(0x1ef)]?_0x52dcde['filter'][_0x4d8777(0x1ef)]:'eq'};return _0x52dcde[_0x4d8777(0x1e1)][_0x4d8777(0x1da)]&&(_0x845288[_0x4d8777(0x1da)]=_0x52dcde['filter'][_0x4d8777(0x1da)]),_0x52dcde[_0x4d8777(0x206)]['options']&&(_0x845288[_0x4d8777(0x1da)]=_0x52dcde[_0x4d8777(0x206)][_0x4d8777(0x1da)]),_0x52dcde[_0x4d8777(0x1e1)][_0x4d8777(0x1e7)]&&this[_0x4d8777(0x1ea)][_0x4d8777(0x1e8)]({'name':_0x845288[_0x4d8777(0x1d4)],'operator':_0x845288[_0x4d8777(0x1ef)],'value':_0x52dcde['filter'][_0x4d8777(0x1e7)]}),delete _0x52dcde[_0x4d8777(0x1e1)],_0x845288;});}async['fetch'](){const _0x21985b=a0_0x16677e;await this[_0x21985b(0x1fa)][_0x21985b(0x1dc)]();}async[a0_0x16677e(0x1e5)]({page:_0x1c5d2c=0x0,limit:_0x3b4708=0x0,sortings:_0x30a9b9=[],filters:_0x2a3272=[]}){const _0x198d17=a0_0x16677e;return this[_0x198d17(0x1c9)]&&this['detailElement'][_0x198d17(0x1d8)]&&await this[_0x198d17(0x1c9)][_0x198d17(0x1d8)](),!0x0;}async[a0_0x16677e(0x204)](){const _0x36e7fe=a0_0x16677e;let _0x4b23f6=MetaApi['patchesForUpdateMultiple'](this['grist']);!!ValueUtil['isNotEmpty'](_0x4b23f6)&&await this['updateMultiple'](_0x4b23f6)&&this[_0x36e7fe(0x1dc)]();}async[a0_0x16677e(0x1e6)](){const _0xf261aa=a0_0x16677e;let _0x391737=MetaApi['getSelectedIdList'](this[_0xf261aa(0x1fa)],!0x0);return ValueUtil[_0xf261aa(0x1d6)](_0x391737)?await this['findOne'](_0x391737[0x0]):{};}async[a0_0x16677e(0x1fd)](){const _0x102a2c=a0_0x16677e;let _0x9a67e2=MetaApi[_0x102a2c(0x1ec)](this[_0x102a2c(0x1fa)],!0x0);!!ValueUtil[_0x102a2c(0x1d6)](_0x9a67e2)&&await this[_0x102a2c(0x1c4)](_0x9a67e2)&&this[_0x102a2c(0x1dc)]();}async['export'](){const _0x258b74=a0_0x16677e;let _0x5bfbc2=TermsUtil[_0x258b74(0x1cc)](ValueUtil[_0x258b74(0x1ce)](this[_0x258b74(0x1f1)],'title'));return await MetaApi[_0x258b74(0x1f6)](this[_0x258b74(0x1f5)],_0x5bfbc2,this['grist']);}async[a0_0x16677e(0x1de)](){}[a0_0x16677e(0x1d1)](){const _0x34e7f6=a0_0x16677e;let _0x3a61df=this['grist'][_0x34e7f6(0x1ff)][_0x34e7f6(0x1db)];return _0x3a61df=JSON['parse'](JSON['stringify'](_0x3a61df)),_0x3a61df[_0x34e7f6(0x1c8)](_0x59b034=>{const _0x496027=_0x34e7f6;Object['keys'](_0x59b034)[_0x496027(0x1c8)](_0x5bc60f=>{const _0x426ac7=_0x496027;_0x5bc60f[_0x426ac7(0x202)]('__')&&delete _0x59b034[_0x5bc60f];});}),{'main':_0x3a61df,'detail':this[_0x34e7f6(0x1c9)]['getData']()};}};
@@ -1 +1 @@
1
- const a0_0x7266b7=a0_0x2ab2;(function(_0x385f12,_0x579a17){const _0x140c5c=a0_0x2ab2,_0x2e7f74=_0x385f12();while(!![]){try{const _0x1d85cc=-parseInt(_0x140c5c(0x17d))/0x1+-parseInt(_0x140c5c(0x17f))/0x2*(parseInt(_0x140c5c(0x183))/0x3)+parseInt(_0x140c5c(0x17e))/0x4*(parseInt(_0x140c5c(0x163))/0x5)+parseInt(_0x140c5c(0x169))/0x6+-parseInt(_0x140c5c(0x157))/0x7+-parseInt(_0x140c5c(0x180))/0x8+parseInt(_0x140c5c(0x159))/0x9*(parseInt(_0x140c5c(0x15d))/0xa);if(_0x1d85cc===_0x579a17)break;else _0x2e7f74['push'](_0x2e7f74['shift']());}catch(_0x18dc75){_0x2e7f74['push'](_0x2e7f74['shift']());}}}(a0_0x38a3,0x2904d));import{adjustFilters}from'@operato/utils';function a0_0x2ab2(_0x41bb1e,_0x48e01e){const _0x38a348=a0_0x38a3();return a0_0x2ab2=function(_0x2ab234,_0x1f8fed){_0x2ab234=_0x2ab234-0x146;let _0x232aca=_0x38a348[_0x2ab234];return _0x232aca;},a0_0x2ab2(_0x41bb1e,_0x48e01e);}import{MetaBaseMixin}from'./meta-base-mixin';function a0_0x38a3(){const _0x1af2a5=['dataSet','skip_fields','6AOAovS','map','isNotEmpty','mutation','searchByPagination','gristConfigSet','parent_id','filterForm','afterFetch','fetchHandler','isArray','gqlInfo','deleteByIds','getPageNavigateParams','replace','gql','parse','updateMultiple','1033298uffhHZ','after_set_fields','18NqGPVz','formConfigSet','delete','mainFilterForm','2447160gqefEU','query','records','getParams','filter','func','555650HkkWov','push','is_activity','multiple','lifecycle','keys','321318BYVbeq','name','params','columns','forEach','data','runScenario','length','infinityPage','pass','includes','list_func','findOne','getQueryFilters','getSelectColumns','deleteListByIds','split','parseBasicServiceConfigs','result','value','46652qINSFj','8oSlkQG','101914NAfMfA','2408416gAsucg'];a0_0x38a3=function(){return _0x1af2a5;};return a0_0x38a3();}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';export const MetaServiceMixin=_0x59ae72=>class extends MetaBaseMixin(_0x59ae72){static get['properties'](){return{'gqlInfo':Object};}[a0_0x7266b7(0x17a)](_0x4a7a54){const _0x360656=a0_0x7266b7;this[_0x360656(0x150)]=_0x4a7a54[_0x360656(0x154)];}async[a0_0x7266b7(0x14e)]({page:_0x541490=0x0,limit:_0x22760c=0x0,sortings:_0xcba15f=[],filters:_0x226e58=[]}){const _0x5f019f=a0_0x7266b7;if(this[_0x5f019f(0x165)])return{'total':0x0,'records':this[_0x5f019f(0x181)]||[]};if(!0x0===this[_0x5f019f(0x171)]&&(_0x541490=0x0,_0x22760c=0x0),this['beforeFetch']&&0x0==await this['beforeFetch']({'page':_0x541490,'limit':_0x22760c,'sortings':_0xcba15f,'filters':_0x226e58}))return;if(!this['gristConfigSet'])return{'total':0x0,'records':[]};let _0x1eb92a=ValueUtil['isEmpty'](_0x226e58)?this[_0x5f019f(0x15c)]?await this['mainFilterForm'][_0x5f019f(0x176)]()||[]:await this[_0x5f019f(0x14c)]?.['getQueryFilters']()||[]:_0x226e58,_0x5c481c=ValueUtil['getParams'](this['gqlInfo'],_0x5f019f(0x15e),_0x5f019f(0x174)),_0x431269=ValueUtil['getParams'](this['gqlInfo'],_0x5f019f(0x15e),'filters'),_0x56c2a4=ValueUtil[_0x5f019f(0x160)](this[_0x5f019f(0x150)],_0x5f019f(0x15e),_0x5f019f(0x158));if(ValueUtil[_0x5f019f(0x147)](_0x431269)&&(_0x1eb92a=adjustFilters(_0x1eb92a,_0x431269)),_0x1eb92a['push'](...this['getPageNavigateParams']()),this['isElement']&&!this['mainFilterForm']){let _0x143d57=ValueUtil[_0x5f019f(0x160)](this['gqlInfo'],_0x5f019f(0x15e),_0x5f019f(0x14b));if(!ValueUtil[_0x5f019f(0x147)](_0x143d57)||!ValueUtil[_0x5f019f(0x147)](this['parent_id']))return{'total':0x0,'records':[]};_0x1eb92a=adjustFilters(_0x1eb92a,[{'name':_0x143d57,'operator':'eq','value':this[_0x5f019f(0x14b)]}]);}let _0x43ad3a=Object[_0x5f019f(0x168)](_0x56c2a4||{}),_0x326cf2=MetaApi[_0x5f019f(0x177)](this['gristConfigSet'][_0x5f019f(0x16c)][_0x5f019f(0x161)](_0xea73b9=>!_0x43ad3a['includes'](_0xea73b9[_0x5f019f(0x16a)]))),_0x32bb90={};if(_0x5c481c[_0x5f019f(0x173)]('$')){let _0x19da99=_0x5c481c[_0x5f019f(0x153)]('$','');_0x32bb90=(await MetaApi['callScenario'](void 0x0,_0x19da99,{'filters':_0x1eb92a,'pagination':{'page':_0x541490,'limit':_0x22760c},'sortings':_0xcba15f},!0x1))[_0x5f019f(0x16e)]['runScenario'][_0x5f019f(0x16e)][_0x5f019f(0x17b)];}else _0x32bb90=await MetaApi[_0x5f019f(0x149)](_0x5c481c,_0x1eb92a,_0xcba15f,_0x541490,_0x22760c,_0x326cf2);if(this[_0x5f019f(0x14d)]){let _0x2fb3ed=await this[_0x5f019f(0x14d)]({'page':_0x541490,'limit':_0x22760c,'sortings':_0xcba15f,'filters':_0x226e58},_0x32bb90);if(_0x2fb3ed)return _0x2fb3ed;}return ValueUtil['isNotEmpty'](_0x56c2a4)&&ValueUtil[_0x5f019f(0x147)](_0x32bb90)&&ValueUtil[_0x5f019f(0x147)](_0x32bb90[_0x5f019f(0x15f)])&&_0x32bb90[_0x5f019f(0x15f)]['map'](_0x1066b3=>(_0x43ad3a['forEach'](_0x248a38=>{const _0x475bf5=_0x5f019f;_0x1066b3[_0x248a38]=ValueUtil['getParams'](_0x1066b3,..._0x56c2a4[_0x248a38][_0x475bf5(0x179)]('.'));}),_0x1066b3)),_0x32bb90;}[a0_0x7266b7(0x152)](){const _0x256512=a0_0x7266b7;if(0x0==this['isPage'])return[];let _0x4a549d=this[_0x256512(0x167)]?.[_0x256512(0x16b)]?this[_0x256512(0x167)]['params']:{};if(!_0x4a549d['pass'])return[];let _0x458bc4=_0x4a549d[_0x256512(0x172)],_0x529654=JSON[_0x256512(0x155)](_0x458bc4),_0x39a8f2=0x1==_0x529654[_0x256512(0x170)]?'eq':'in',_0x502fab={},_0xf30b64=[];return Object[_0x256512(0x168)](_0x529654[0x0])[_0x256512(0x16d)](_0x143b6c=>{_0x502fab[_0x143b6c]={'name':_0x143b6c,'operator':_0x39a8f2,'value':'eq'===_0x39a8f2?_0x529654[0x0][_0x143b6c]:[]};}),_0x529654[_0x256512(0x170)]>0x1&&_0x529654[_0x256512(0x16d)](_0x3a1061=>{const _0x493000=_0x256512;Object[_0x493000(0x168)](_0x3a1061)[_0x493000(0x16d)](_0x51d41e=>{const _0x399133=_0x493000;_0x502fab[_0x51d41e][_0x399133(0x17c)]['push'](_0x3a1061[_0x51d41e]);});}),Object[_0x256512(0x168)](_0x502fab)[_0x256512(0x16d)](_0x41d0ce=>{const _0x966cf6=_0x256512;_0xf30b64[_0x966cf6(0x164)](_0x502fab[_0x41d0ce]);}),_0xf30b64;}async[a0_0x7266b7(0x175)](_0x4b87b5){const _0x468274=a0_0x7266b7;if(this[_0x468274(0x165)])return this['dataSet']||{};let _0x1ea3fe=ValueUtil[_0x468274(0x160)](this[_0x468274(0x150)],_0x468274(0x15e),'find_one_func'),_0x2720d5=ValueUtil[_0x468274(0x160)](this['gqlInfo'],_0x468274(0x15e),_0x468274(0x158)),_0x234485=Object[_0x468274(0x168)](_0x2720d5||{}),_0x143986=MetaApi['getSelectColumns']((this['gristConfigSet']?this[_0x468274(0x14a)]:{'columns':this[_0x468274(0x15a)]})[_0x468274(0x16c)][_0x468274(0x161)](_0x542aa0=>!_0x234485[_0x468274(0x173)](_0x542aa0[_0x468274(0x16a)]))),_0x395bda={};if(_0x1ea3fe[_0x468274(0x173)]('$')){let _0x5a6652=_0x1ea3fe[_0x468274(0x153)]('$',''),_0x1c8bf4=await MetaApi['callScenario'](void 0x0,_0x5a6652,{'id':_0x4b87b5},!0x1);_0x395bda=_0x1c8bf4[_0x468274(0x16e)][_0x468274(0x16f)][_0x468274(0x16e)][_0x468274(0x17b)];}else _0x395bda=await MetaApi[_0x468274(0x175)](_0x1ea3fe,_0x4b87b5,_0x143986);return ValueUtil[_0x468274(0x147)](_0x2720d5)&&ValueUtil[_0x468274(0x147)](_0x395bda)&&_0x234485['forEach'](_0x2d3d11=>{const _0x4b5f9c=_0x468274;_0x395bda[_0x2d3d11]=ValueUtil[_0x4b5f9c(0x160)](_0x395bda,..._0x2720d5[_0x2d3d11][_0x4b5f9c(0x179)]('.'));}),_0x395bda;}async[a0_0x7266b7(0x151)](_0x23f1d9){const _0x126676=a0_0x7266b7;let _0x463298=ValueUtil[_0x126676(0x160)](this[_0x126676(0x150)],'mutation',_0x126676(0x15b),_0x126676(0x162));return await MetaApi[_0x126676(0x178)](_0x23f1d9,_0x463298);}async['updateMultiple'](_0x41f3ac){const _0x4c5587=a0_0x7266b7;let _0x5e4f42=ValueUtil[_0x4c5587(0x160)](this[_0x4c5587(0x150)],_0x4c5587(0x148),_0x4c5587(0x166),_0x4c5587(0x162)),_0x23f982=ValueUtil['getParams'](this[_0x4c5587(0x150)],'mutation',_0x4c5587(0x166),_0x4c5587(0x182));if(ValueUtil[_0x4c5587(0x147)](_0x23f982)&&(_0x23f982=_0x23f982[_0x4c5587(0x146)](_0x5aed3c=>_0x5aed3c[_0x4c5587(0x173)]('.')?_0x5aed3c['split']('.'):_0x5aed3c),_0x41f3ac=_0x41f3ac['map'](_0xaa39d3=>(_0x23f982[_0x4c5587(0x16d)](_0x2c6684=>{const _0x183613=_0x4c5587;Array[_0x183613(0x14f)](_0x2c6684)?delete _0xaa39d3[_0x2c6684[0x0]][_0x2c6684[0x1]]:delete _0xaa39d3[_0x2c6684];}),_0xaa39d3))),this['isElement']&&ValueUtil[_0x4c5587(0x147)](this['parent_id'])){let _0x42fbaa=ValueUtil[_0x4c5587(0x160)](this[_0x4c5587(0x150)],'mutation','multiple','parent_id');ValueUtil['isNotEmpty'](_0x42fbaa)&&_0x41f3ac['forEach'](_0x25ec48=>{const _0x5ecb11=_0x4c5587;if(_0x42fbaa[_0x5ecb11(0x173)]('.')){let _0x20e691=_0x42fbaa[_0x5ecb11(0x179)]('.');_0x25ec48[_0x20e691[0x0]]={},_0x25ec48[_0x20e691[0x0]][_0x20e691[0x1]]=this[_0x5ecb11(0x14b)];}else _0x25ec48[_0x42fbaa]=this[_0x5ecb11(0x14b)];});}return await MetaApi[_0x4c5587(0x156)](_0x5e4f42,_0x41f3ac);}};
1
+ const a0_0x5b452b=a0_0x42e5;(function(_0x23c89c,_0x3906a3){const _0x20c5f0=a0_0x42e5,_0x29ef26=_0x23c89c();while(!![]){try{const _0x4cb824=parseInt(_0x20c5f0(0x1c4))/0x1+-parseInt(_0x20c5f0(0x1ab))/0x2+-parseInt(_0x20c5f0(0x1c3))/0x3*(parseInt(_0x20c5f0(0x198))/0x4)+parseInt(_0x20c5f0(0x1a0))/0x5*(parseInt(_0x20c5f0(0x195))/0x6)+parseInt(_0x20c5f0(0x1be))/0x7*(-parseInt(_0x20c5f0(0x1cc))/0x8)+parseInt(_0x20c5f0(0x1b8))/0x9*(parseInt(_0x20c5f0(0x1c1))/0xa)+parseInt(_0x20c5f0(0x19f))/0xb*(-parseInt(_0x20c5f0(0x1ac))/0xc);if(_0x4cb824===_0x3906a3)break;else _0x29ef26['push'](_0x29ef26['shift']());}catch(_0x5d1ae0){_0x29ef26['push'](_0x29ef26['shift']());}}}(a0_0x4151,0xd42d2));import{adjustFilters}from'@operato/utils';import{MetaBaseMixin}from'./meta-base-mixin';import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';function a0_0x42e5(_0x575141,_0x3d8e9e){const _0x415191=a0_0x4151();return a0_0x42e5=function(_0x42e5fd,_0x4fb49a){_0x42e5fd=_0x42e5fd-0x192;let _0x44780a=_0x415191[_0x42e5fd];return _0x44780a;},a0_0x42e5(_0x575141,_0x3d8e9e);}export const MetaServiceMixin=_0x572128=>class extends MetaBaseMixin(_0x572128){static get[a0_0x5b452b(0x1bc)](){return{'gqlInfo':Object};}[a0_0x5b452b(0x197)](_0x295b43){const _0x1168ce=a0_0x5b452b;this[_0x1168ce(0x1ad)]=_0x295b43[_0x1168ce(0x1c0)];}async[a0_0x5b452b(0x1cd)]({page:_0x3ef58a=0x0,limit:_0x2c782d=0x0,sortings:_0x32d400=[],filters:_0x441505=[]}){const _0x2f4025=a0_0x5b452b;if(this['is_activity'])return{'total':0x0,'records':this[_0x2f4025(0x1af)]||[]};if(!0x0===this[_0x2f4025(0x1a9)]&&(_0x3ef58a=0x0,_0x2c782d=0x0),this[_0x2f4025(0x1a5)]&&0x0==await this[_0x2f4025(0x1a5)]({'page':_0x3ef58a,'limit':_0x2c782d,'sortings':_0x32d400,'filters':_0x441505}))return;if(!this[_0x2f4025(0x1c7)])return{'total':0x0,'records':[]};let _0x48a1b7=ValueUtil[_0x2f4025(0x1cf)](_0x441505)?this[_0x2f4025(0x1d0)]?await this['mainFilterForm'][_0x2f4025(0x1b5)]()||[]:await this[_0x2f4025(0x1b0)]?.[_0x2f4025(0x1b5)]()||[]:_0x441505,_0x2e0933=ValueUtil[_0x2f4025(0x192)](this['gqlInfo'],_0x2f4025(0x1ae),_0x2f4025(0x196)),_0x401f53=ValueUtil['getParams'](this[_0x2f4025(0x1ad)],_0x2f4025(0x1ae),_0x2f4025(0x1a6)),_0x23b775=ValueUtil['getParams'](this[_0x2f4025(0x1ad)],_0x2f4025(0x1ae),_0x2f4025(0x1d1));if(ValueUtil['isNotEmpty'](_0x401f53)&&(_0x48a1b7=adjustFilters(_0x48a1b7,_0x401f53)),_0x48a1b7[_0x2f4025(0x1c5)](...this[_0x2f4025(0x19e)]()),this[_0x2f4025(0x1c2)]&&!this['mainFilterForm']){let _0x3071c5=ValueUtil[_0x2f4025(0x192)](this[_0x2f4025(0x1ad)],'query','parent_id');if(!ValueUtil[_0x2f4025(0x1ce)](_0x3071c5)||!ValueUtil['isNotEmpty'](this[_0x2f4025(0x19a)]))return{'total':0x0,'records':[]};_0x48a1b7=adjustFilters(_0x48a1b7,[{'name':_0x3071c5,'operator':'eq','value':this[_0x2f4025(0x19a)]}]);}let _0x34594d=Object[_0x2f4025(0x1d2)](_0x23b775||{}),_0x5a7c24=MetaApi[_0x2f4025(0x1a7)](this[_0x2f4025(0x1c7)]['columns'][_0x2f4025(0x1a1)](_0x448351=>!_0x34594d[_0x2f4025(0x1b7)](_0x448351['name']))),_0x57daee={};if(_0x2e0933[_0x2f4025(0x1b7)]('$')){let _0x4425d2=_0x2e0933[_0x2f4025(0x1c6)]('$','');_0x57daee=(await MetaApi['callScenario'](void 0x0,_0x4425d2,{'filters':_0x48a1b7,'pagination':{'page':_0x3ef58a,'limit':_0x2c782d},'sortings':_0x32d400},!0x1))['data']['runScenario'][_0x2f4025(0x1a2)][_0x2f4025(0x1b9)];}else _0x57daee=await MetaApi[_0x2f4025(0x193)](_0x2e0933,_0x48a1b7,_0x32d400,_0x3ef58a,_0x2c782d,_0x5a7c24);if(this[_0x2f4025(0x19d)]){let _0x201fd0=await this[_0x2f4025(0x19d)]({'page':_0x3ef58a,'limit':_0x2c782d,'sortings':_0x32d400,'filters':_0x441505},_0x57daee);if(_0x201fd0)return _0x201fd0;}return ValueUtil[_0x2f4025(0x1ce)](_0x23b775)&&ValueUtil[_0x2f4025(0x1ce)](_0x57daee)&&ValueUtil[_0x2f4025(0x1ce)](_0x57daee[_0x2f4025(0x1b4)])&&_0x57daee[_0x2f4025(0x1b4)][_0x2f4025(0x19b)](_0x57f726=>(_0x34594d[_0x2f4025(0x199)](_0x517193=>{_0x57f726[_0x517193]=ValueUtil['getParams'](_0x57f726,..._0x23b775[_0x517193]['split']('.'));}),_0x57f726)),_0x57daee;}[a0_0x5b452b(0x19e)](){const _0x3368c9=a0_0x5b452b;if(0x0==this['isPage'])return[];let _0x3b61e0=this[_0x3368c9(0x1ca)]?.['params']?this['lifecycle'][_0x3368c9(0x1cb)]:{};if(!_0x3b61e0[_0x3368c9(0x1b1)])return[];let _0x34de13=_0x3b61e0[_0x3368c9(0x1b1)],_0x3d75b5=JSON[_0x3368c9(0x19c)](_0x34de13),_0x2e7d17=0x1==_0x3d75b5[_0x3368c9(0x1b6)]?'eq':'in',_0x4f24bf={},_0xd0313c=[];return Object[_0x3368c9(0x1d2)](_0x3d75b5[0x0])[_0x3368c9(0x199)](_0x4ee540=>{_0x4f24bf[_0x4ee540]={'name':_0x4ee540,'operator':_0x2e7d17,'value':'eq'===_0x2e7d17?_0x3d75b5[0x0][_0x4ee540]:[]};}),_0x3d75b5[_0x3368c9(0x1b6)]>0x1&&_0x3d75b5[_0x3368c9(0x199)](_0x397254=>{const _0x5abfc9=_0x3368c9;Object[_0x5abfc9(0x1d2)](_0x397254)[_0x5abfc9(0x199)](_0x2ee0be=>{const _0x569e04=_0x5abfc9;_0x4f24bf[_0x2ee0be]['value'][_0x569e04(0x1c5)](_0x397254[_0x2ee0be]);});}),Object[_0x3368c9(0x1d2)](_0x4f24bf)[_0x3368c9(0x199)](_0x5014a2=>{_0xd0313c['push'](_0x4f24bf[_0x5014a2]);}),_0xd0313c;}async['findOne'](_0x5c6e26){const _0x111e9b=a0_0x5b452b;if(this[_0x111e9b(0x1b3)])return this['dataSet']||{};let _0x4416b1=ValueUtil[_0x111e9b(0x192)](this['gqlInfo'],_0x111e9b(0x1ae),'find_one_func'),_0x5cf411=ValueUtil[_0x111e9b(0x192)](this[_0x111e9b(0x1ad)],_0x111e9b(0x1ae),'after_set_fields'),_0x134454=Object[_0x111e9b(0x1d2)](_0x5cf411||{}),_0x45bed2=MetaApi[_0x111e9b(0x1a7)]((this[_0x111e9b(0x1c7)]?this[_0x111e9b(0x1c7)]:{'columns':this[_0x111e9b(0x1aa)]})[_0x111e9b(0x1bf)][_0x111e9b(0x1a1)](_0x421990=>!_0x134454['includes'](_0x421990['name']))),_0x3f531e={};if(_0x4416b1[_0x111e9b(0x1b7)]('$')){let _0x9b62bd=_0x4416b1[_0x111e9b(0x1c6)]('$',''),_0xc909fa=await MetaApi['callScenario'](void 0x0,_0x9b62bd,{'id':_0x5c6e26},!0x1);_0x3f531e=_0xc909fa[_0x111e9b(0x1a2)][_0x111e9b(0x1c8)][_0x111e9b(0x1a2)][_0x111e9b(0x1b9)];}else _0x3f531e=await MetaApi[_0x111e9b(0x1bd)](_0x4416b1,_0x5c6e26,_0x45bed2);return ValueUtil[_0x111e9b(0x1ce)](_0x5cf411)&&ValueUtil['isNotEmpty'](_0x3f531e)&&_0x134454[_0x111e9b(0x199)](_0x4222ad=>{const _0x1b9ba8=_0x111e9b;_0x3f531e[_0x4222ad]=ValueUtil[_0x1b9ba8(0x192)](_0x3f531e,..._0x5cf411[_0x4222ad][_0x1b9ba8(0x1a4)]('.'));}),_0x3f531e;}async[a0_0x5b452b(0x194)](_0x4d0fa6){const _0x3befec=a0_0x5b452b;let _0x402e12=ValueUtil['getParams'](this['gqlInfo'],_0x3befec(0x1b2),_0x3befec(0x1a8),_0x3befec(0x1a3));return await MetaApi[_0x3befec(0x1bb)](_0x4d0fa6,_0x402e12);}async[a0_0x5b452b(0x1ba)](_0x158696){const _0x152eef=a0_0x5b452b;let _0x33afa6=ValueUtil[_0x152eef(0x192)](this[_0x152eef(0x1ad)],'mutation','multiple',_0x152eef(0x1a3)),_0x5720e4=ValueUtil[_0x152eef(0x192)](this[_0x152eef(0x1ad)],_0x152eef(0x1b2),_0x152eef(0x1c9),'skip_fields');if(ValueUtil[_0x152eef(0x1ce)](_0x5720e4)&&(_0x5720e4=_0x5720e4[_0x152eef(0x19b)](_0x2e306e=>_0x2e306e[_0x152eef(0x1b7)]('.')?_0x2e306e[_0x152eef(0x1a4)]('.'):_0x2e306e),_0x158696=_0x158696[_0x152eef(0x19b)](_0xf1a54b=>(_0x5720e4[_0x152eef(0x199)](_0x22d0b0=>{Array['isArray'](_0x22d0b0)?delete _0xf1a54b[_0x22d0b0[0x0]][_0x22d0b0[0x1]]:delete _0xf1a54b[_0x22d0b0];}),_0xf1a54b))),this['isElement']&&ValueUtil[_0x152eef(0x1ce)](this[_0x152eef(0x19a)])){let _0x13aaa1=ValueUtil['getParams'](this['gqlInfo'],_0x152eef(0x1b2),_0x152eef(0x1c9),_0x152eef(0x19a));ValueUtil[_0x152eef(0x1ce)](_0x13aaa1)&&_0x158696[_0x152eef(0x199)](_0x280971=>{const _0x389f48=_0x152eef;if(_0x13aaa1['includes']('.')){let _0xa7fee3=_0x13aaa1[_0x389f48(0x1a4)]('.');_0x280971[_0xa7fee3[0x0]]={},_0x280971[_0xa7fee3[0x0]][_0xa7fee3[0x1]]=this[_0x389f48(0x19a)];}else _0x280971[_0x13aaa1]=this[_0x389f48(0x19a)];});}return await MetaApi['updateMultiple'](_0x33afa6,_0x158696);}};function a0_0x4151(){const _0x335acd=['getParams','searchByPagination','deleteByIds','5413026FkYVpa','list_func','parseBasicServiceConfigs','8KPqTig','forEach','parent_id','map','parse','afterFetch','getPageNavigateParams','3301936befnfT','5KDeupI','filter','data','func','split','beforeFetch','filters','getSelectColumns','delete','infinityPage','formConfigSet','1690966eYxJxe','24cRmqEh','gqlInfo','query','dataSet','filterForm','pass','mutation','is_activity','records','getQueryFilters','length','includes','1836BkXVZM','result','updateMultiple','deleteListByIds','properties','findOne','116879DIuxhn','columns','gql','83660sYGTqg','isElement','767658TlIrfh','501695mozbKJ','push','replace','gristConfigSet','runScenario','multiple','lifecycle','params','136BskSwn','fetchHandler','isNotEmpty','isEmpty','mainFilterForm','after_set_fields','keys'];a0_0x4151=function(){return _0x335acd;};return a0_0x4151();}