@things-factory/meta-ui 6.1.40 → 6.1.41

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 (90) 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 +2 -2
  27. package/client/pages/activity/meta-activiy-mixin.js +3 -3
  28. package/client/pages/entity/config-entity.js +28 -28
  29. package/client/pages/entity/main-menu-selector.js +8 -8
  30. package/client/pages/history/history-copy-list-popup.js +6 -6
  31. package/client/pages/history/history-json-list-popup.js +6 -6
  32. package/client/pages/loading-page.js +5 -5
  33. package/client/pages/menu/dynamic-menu-template.js +7 -7
  34. package/client/pages/menu/dynamic-menu.js +16 -16
  35. package/client/pages/meta-form-element.js +1 -1
  36. package/client/pages/meta-grist-element.js +1 -1
  37. package/client/pages/meta-grist-page.js +1 -1
  38. package/client/pages/meta-grist-tab-element.js +1 -1
  39. package/client/pages/meta-grist-tab-page.js +1 -1
  40. package/client/pages/meta-main-tab-element.js +1 -1
  41. package/client/pages/meta-main-tab-page.js +1 -1
  42. package/client/pages/meta-master-detail-element.js +1 -1
  43. package/client/pages/meta-master-detail-page.js +1 -1
  44. package/client/pages/meta-tab-detail-element.js +1 -1
  45. package/client/pages/meta-tab-detail-page.js +1 -1
  46. package/client/pages/meta-tab-element.js +1 -1
  47. package/client/pages/personalize/personal-column-selector.js +11 -11
  48. package/client/pages/terms/config-terminology.js +6 -6
  49. package/client/pages/work-code/work-code-detail-popup.js +1 -1
  50. package/client/pages/work-code/work-code-page.js +1 -1
  51. package/client/reducers/main.js +1 -1
  52. package/client/utils/grist-default-value.js +1 -1
  53. package/client/utils/meta-api.js +1 -1
  54. package/client/utils/meta-crypto.js +1 -1
  55. package/client/utils/meta-ui-util.js +100 -100
  56. package/client/utils/service-util.js +13 -13
  57. package/client/utils/terms-util.js +2 -2
  58. package/client/utils/ui-util.js +1 -1
  59. package/client/utils/value-util.js +1 -1
  60. package/client/viewparts/dynamic-menu-landscape-styles.js +2 -2
  61. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  62. package/client/viewparts/dynamic-menu-part.js +12 -12
  63. package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
  64. package/client/viewparts/dynamic-menu-portrait.js +9 -9
  65. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  66. package/package.json +2 -2
  67. package/server/activity/CommonActivity.js +2 -2
  68. package/server/constants/error-code.js +1 -1
  69. package/server/errors/license-error.js +1 -1
  70. package/server/routes.js +1 -1
  71. package/server/service/dynamic-menu/dynamic-menu-query.js +1 -1
  72. package/server/service/dynamic-menu/dynamic-menu-type.js +1 -1
  73. package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
  74. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  75. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  76. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  77. package/server/service/grid-personalize/grid-personalize.js +1 -1
  78. package/server/service/meta-activity/meta-activity-mutation.js +1 -1
  79. package/server/service/meta-activity/meta-activity-query.js +1 -1
  80. package/server/service/meta-activity/meta-activity-type.js +1 -1
  81. package/server/service/meta-secret/meta-resolver.js +1 -1
  82. package/server/service/set-translations/set-translation-resolver.js +1 -1
  83. package/server/service/work-code/work-code-mutation.js +1 -1
  84. package/server/service/work-code/work-code-query.js +1 -1
  85. package/server/service/work-code/work-code-type.js +1 -1
  86. package/server/service/work-code/work-code.js +1 -1
  87. package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
  88. package/server/service/work-code-detail/work-code-detail-query.js +1 -1
  89. package/server/service/work-code-detail/work-code-detail-type.js +1 -1
  90. package/server/service/work-code-detail/work-code-detail.js +1 -1
@@ -1,4 +1,4 @@
1
- const a0_0x352a53=a0_0x4969;(function(_0x482482,_0x5977a1){const _0x54074e=a0_0x4969,_0x231f89=_0x482482();while(!![]){try{const _0x40b6d3=-parseInt(_0x54074e(0x198))/0x1*(parseInt(_0x54074e(0x1dd))/0x2)+parseInt(_0x54074e(0x1d1))/0x3*(parseInt(_0x54074e(0x191))/0x4)+-parseInt(_0x54074e(0x1d7))/0x5+parseInt(_0x54074e(0x1de))/0x6*(parseInt(_0x54074e(0x19e))/0x7)+-parseInt(_0x54074e(0x1b4))/0x8+parseInt(_0x54074e(0x1d5))/0x9+parseInt(_0x54074e(0x1b9))/0xa;if(_0x40b6d3===_0x5977a1)break;else _0x231f89['push'](_0x231f89['shift']());}catch(_0x3b1f7f){_0x231f89['push'](_0x231f89['shift']());}}}(a0_0x362a,0x35bd1));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';function a0_0x4969(_0x395423,_0x3e4917){const _0x362a34=a0_0x362a();return a0_0x4969=function(_0x496935,_0x12ef61){_0x496935=_0x496935-0x18f;let _0x2be6b9=_0x362a34[_0x496935];return _0x2be6b9;},a0_0x4969(_0x395423,_0x3e4917);}import{closePopup}from'@operato/popup';function a0_0x362a(){const _0x217055=['hidden','meta-object-selector','45722gZgbLn','62214XLErPC','forEach','gridConfig','args','after_set_fields','render','basicArgs','query','record','meta-code-selector','getGristColumnConfig2','getCodeByScenario','type','filters','40TptKJv','includes','cancel','length','nameField','push','dispField','4jYpeAv','values','getGristPagination100Config','clickCancel','GRID','codes','147ghFguE','left','getParams','empty','scenario','tButton','querySelector','grist','meta-','filter','selected','shadowRoot','resource-object','keys','getGristMetaObjectOptions','menu_template','object','showToast','columns','tText','search','connectedCallback','3241696lXnBUa','NOTHING_SELECTED','resource-code-selector','codeField','bind','3907020Rimdve','confirmCallback','entity','select-row-toggle','options','handlers','fetchHandler','info','select','getGristSelectableConfig','selectRecord','code','getCodeByEntity','clickEmpty','styles','align','search_hidden_fields','string','name','clickSelect','isArray','getGristGuttersConfig','sorters','firstUpdated','117642jBgypB','menu','getCodeSelectorData','filterFields','891882oBbMTS','startsWith','1914600UmKUgq','appendable','#ox-grist','rows'];a0_0x362a=function(){return _0x217055;};return a0_0x362a();}export class MetaObjectSelectorPopup extends LitElement{static [a0_0x352a53(0x1c7)]=[CommonGristStyles,ButtonContainerStyles,css`
1
+ const a0_0x46f6ab=a0_0x2436;(function(_0x399072,_0x56796d){const _0x5b28fc=a0_0x2436,_0x437a24=_0x399072();while(!![]){try{const _0x4df6de=parseInt(_0x5b28fc(0xf6))/0x1+-parseInt(_0x5b28fc(0xf4))/0x2+-parseInt(_0x5b28fc(0xfa))/0x3+parseInt(_0x5b28fc(0xf3))/0x4*(parseInt(_0x5b28fc(0x125))/0x5)+parseInt(_0x5b28fc(0x128))/0x6*(-parseInt(_0x5b28fc(0xe7))/0x7)+-parseInt(_0x5b28fc(0x10d))/0x8+parseInt(_0x5b28fc(0x132))/0x9;if(_0x4df6de===_0x56796d)break;else _0x437a24['push'](_0x437a24['shift']());}catch(_0x3e3ce9){_0x437a24['push'](_0x437a24['shift']());}}}(a0_0x57ea,0x92c59));function a0_0x57ea(){const _0x4fb445=['hidden','getGristPagination100Config','2740674haKQKE','type','filters','confirmCallback','firstUpdated','filterFields','handlers','getCodeSelectorData','grist','startsWith','gridConfig','select','rows','LIST','resource-object','clickSelect','getParams','push','define','7800128VOMNZk','tText','appendable','selected','meta-code-selector','includes','args','connectedCallback','fetchHandler','shadowRoot','dispField','querySelector','searchByPagination','values','clickCancel','queryName','search_hidden_fields','search','string','bind','meta-object-selector','record','getCodeByEntity','meta-','4405vFTIRP','render','options','296382bwFJzE','object','keys','length','basicArgs','sorters','nameField','codeField','columns','gql','18408888axssLG','getSelectColumns','tButton','showToast','align','scenario','getGristColumnConfig2','filter','name','forEach','63EyJApz','GRID','getGristMetaObjectOptions','selectRecord','NOTHING_SELECTED','left','query','info','styles','menu_template','clickEmpty','after_set_fields','2944MYQkuv','1275864VDWaMk','menu','878408EcwQLr','meta-object-selector-popup'];a0_0x57ea=function(){return _0x4fb445;};return a0_0x57ea();}import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';function a0_0x2436(_0x1b9698,_0x571507){const _0x57ea19=a0_0x57ea();return a0_0x2436=function(_0x24363f,_0xf4dbe7){_0x24363f=_0x24363f-0xe4;let _0x595063=_0x57ea19[_0x24363f];return _0x595063;},a0_0x2436(_0x1b9698,_0x571507);}import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class MetaObjectSelectorPopup extends LitElement{static [a0_0x46f6ab(0xef)]=[CommonGristStyles,ButtonContainerStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -17,9 +17,9 @@ const a0_0x352a53=a0_0x4969;(function(_0x482482,_0x5977a1){const _0x54074e=a0_0x
17
17
  display: flex;
18
18
  margin-left: auto;
19
19
  }
20
- `];async['connectedCallback'](){const _0x94057f=a0_0x352a53;this[_0x94057f(0x1c9)]=this['options']['filters']?this[_0x94057f(0x1bd)][_0x94057f(0x190)]:this[_0x94057f(0x1e4)]&&this['basicArgs'][_0x94057f(0x190)]?this[_0x94057f(0x1e4)][_0x94057f(0x190)]:[];let _0x109a27=this[_0x94057f(0x1bd)][_0x94057f(0x1cf)]?this['options']['sorters']:this[_0x94057f(0x1e4)]&&this[_0x94057f(0x1e4)]['sorters']?this['basicArgs']['sorters']:[],_0x2e5b9a=this[_0x94057f(0x1bd)][_0x94057f(0x1d4)]?this[_0x94057f(0x1bd)][_0x94057f(0x1d4)]:this[_0x94057f(0x1bd)][_0x94057f(0x1ad)]?.['search']&&this[_0x94057f(0x1bd)][_0x94057f(0x1ad)]?.[_0x94057f(0x1b2)]['length']>0x0?this[_0x94057f(0x1bd)][_0x94057f(0x1ad)]['search']:[],_0x3a78fa=this['options'][_0x94057f(0x1c1)];if(!_0x2e5b9a||0x0==_0x2e5b9a['length']){let _0x547f79;this[_0x94057f(0x1bd)][_0x94057f(0x1b7)]&&(_0x547f79=this[_0x94057f(0x1bd)][_0x94057f(0x1b7)]),this[_0x94057f(0x1bd)][_0x94057f(0x195)]&&(_0x547f79=this['options']['nameField']),_0x547f79&&_0x2e5b9a[_0x94057f(0x196)]({'name':_0x547f79,'operator':'eq'});}let _0x2e5623=[...MetaApi[_0x94057f(0x1ce)](!0x0,!0x1)];if(_0x3a78fa&&_0x3a78fa[_0x94057f(0x194)]>0x0)for(let _0x43113b=0x0;_0x43113b<_0x3a78fa[_0x94057f(0x194)];_0x43113b++){let {type:_0x48863c=_0x94057f(0x1ca),name:_0x1d1698,hidden:_0x3d2ff8=!0x1,record:_0x19dfba={'align':'left'},header:_0xb67b67,sortable:_0x1c3764=!0x1,width:_0x59d42d=0x87,options:_0x1a62ad,select_opt:_0x28bc63,object_opt:_0x2c31eb}=_0x3a78fa[_0x43113b];if(_0x28bc63&&(_0x1a62ad=_0x28bc63),_0x2c31eb&&(_0x1a62ad=_0x2c31eb),[_0x94057f(0x1aa),_0x94057f(0x1ae)][_0x94057f(0x192)](_0x48863c)?_0x48863c=_0x94057f(0x1dc):[_0x94057f(0x1b6)][_0x94057f(0x192)](_0x48863c)&&(_0x48863c=_0x94057f(0x1e7)),'id'==_0x1d1698)_0x2e5623[_0x94057f(0x196)]({'type':_0x94057f(0x1ca),'name':_0x1d1698,'hidden':!0x0});else{let _0x3a0966=MetaApi[_0x94057f(0x1e8)](_0x48863c,_0x1d1698,_0xb67b67||_0x1d1698,_0x19dfba[_0x94057f(0x1c8)]?_0x19dfba[_0x94057f(0x1c8)]:_0x94057f(0x19f),!0x1,_0x1c3764,_0x59d42d);_0x48863c[_0x94057f(0x1d6)](_0x94057f(0x1a6))&&_0x2c31eb&&_0x2c31eb[_0x94057f(0x1d2)]&&(_0x1a62ad=await MetaUiUtil[_0x94057f(0x1ac)](_0x48863c,_0x1a62ad)),'select'===_0x48863c?Array[_0x94057f(0x1cd)](_0x1a62ad)?_0x3a0966[_0x94057f(0x1e6)]['options']=_0x1a62ad:_0x94057f(0x1c4)===_0x1a62ad[_0x94057f(0x18f)]?_0x3a0966[_0x94057f(0x1e6)][_0x94057f(0x1bd)]=await ServiceUtil[_0x94057f(0x1d3)](_0x1a62ad[_0x94057f(0x199)]?_0x1a62ad[_0x94057f(0x199)]:_0x1a62ad[_0x94057f(0x1cb)]):_0x94057f(0x1a2)===_0x1a62ad['type']?_0x3a0966['record'][_0x94057f(0x1bd)]=await ServiceUtil[_0x94057f(0x1e9)](_0x1a62ad[_0x94057f(0x1cb)],_0x1a62ad[_0x94057f(0x1e1)]):_0x94057f(0x1bb)===_0x1a62ad['type']&&(_0x3a0966[_0x94057f(0x1e6)][_0x94057f(0x1bd)]=await ServiceUtil[_0x94057f(0x1c5)](_0x1a62ad['args'])):_0x94057f(0x1dc)===_0x48863c?_0x3a0966['record']['options']={..._0x1a62ad}:'meta-code-selector'==_0x48863c&&(_0x1a62ad[_0x94057f(0x197)]&&(_0x1a62ad[_0x94057f(0x19d)]=await ServiceUtil[_0x94057f(0x1c5)](_0x1a62ad)),_0x3a0966[_0x94057f(0x1e6)][_0x94057f(0x1bd)]={..._0x1a62ad}),_0x3a0966[_0x94057f(0x1db)]=_0x3d2ff8,_0x2e5623[_0x94057f(0x196)](_0x3a0966);}}else _0x2e5623[_0x94057f(0x196)](MetaApi[_0x94057f(0x1e8)]('string',this['options']['codeField'],this['options']['codeField'],_0x94057f(0x19f),!0x1,!0x0,0xb4)),this[_0x94057f(0x1bd)][_0x94057f(0x197)]&&_0x2e5623['push'](MetaApi['getGristColumnConfig2'](_0x94057f(0x1ca),this['options'][_0x94057f(0x197)],this[_0x94057f(0x1bd)][_0x94057f(0x197)],_0x94057f(0x19f),!0x1,!0x0,0x12c));_0x2e5623[_0x94057f(0x1df)](_0x103fe6=>{const _0x1a4c3a=_0x94057f;let _0xf380e0=_0x2e5b9a[_0x1a4c3a(0x1a7)](_0x9d2bae=>_0x1a4c3a(0x1ca)==typeof _0x9d2bae?_0x103fe6[_0x1a4c3a(0x1cb)]==_0x9d2bae:_0x103fe6[_0x1a4c3a(0x1cb)]==_0x9d2bae[_0x1a4c3a(0x1cb)]);_0xf380e0&&_0xf380e0['length']>0x0&&(_0x103fe6[_0x1a4c3a(0x1a7)]='string'==typeof _0xf380e0[0x0]?_0x1a4c3a(0x1b2):_0xf380e0[0x0]);});let _0xbf95a3={'rows':MetaApi[_0x94057f(0x1c2)](!0x1),'pagination':MetaApi[_0x94057f(0x19a)](),'columns':_0x2e5623,'sorters':[..._0x109a27]};_0xbf95a3[_0x94057f(0x1da)][_0x94057f(0x1be)]={'click':_0x94057f(0x1bc),'dblclick':(_0x3f3c6d,_0x534257,_0x221ec6,_0x1bcf44,_0x30bd60,_0x1aa346)=>{const _0x3db20c=_0x94057f;this[_0x3db20c(0x1c3)](_0x1bcf44);}},_0xbf95a3[_0x94057f(0x1da)][_0x94057f(0x1d8)]=!0x1,this['gridConfig']=_0xbf95a3,await super[_0x94057f(0x1b3)]();}async[a0_0x352a53(0x1d0)](){const _0xb25ce9=a0_0x352a53;await super[_0xb25ce9(0x1d0)]();}[a0_0x352a53(0x1e3)](){const _0x218d55=a0_0x352a53;return html`
21
- <ox-grist id="ox-grist" .config=${this[_0x218d55(0x1e0)]} .mode=${isMobileDevice()?'LIST':_0x218d55(0x19c)} auto-fetch
22
- .fetchHandler=${this[_0x218d55(0x1bf)][_0x218d55(0x1b8)](this)}>
20
+ `];async['connectedCallback'](){const _0x3e61dc=a0_0x46f6ab;this[_0x3e61dc(0x11d)]=this[_0x3e61dc(0x127)][_0x3e61dc(0xfc)]?this[_0x3e61dc(0x127)][_0x3e61dc(0xfc)]:this[_0x3e61dc(0x12c)]&&this[_0x3e61dc(0x12c)][_0x3e61dc(0xfc)]?this[_0x3e61dc(0x12c)][_0x3e61dc(0xfc)]:[];let _0x465f1d=this[_0x3e61dc(0x127)][_0x3e61dc(0x12d)]?this['options'][_0x3e61dc(0x12d)]:this[_0x3e61dc(0x12c)]&&this[_0x3e61dc(0x12c)][_0x3e61dc(0x12d)]?this[_0x3e61dc(0x12c)][_0x3e61dc(0x12d)]:[],_0x5768cd=this['options'][_0x3e61dc(0xff)]?this['options'][_0x3e61dc(0xff)]:this[_0x3e61dc(0x127)][_0x3e61dc(0xf0)]?.[_0x3e61dc(0x11e)]&&this[_0x3e61dc(0x127)]['menu_template']?.[_0x3e61dc(0x11e)]['length']>0x0?this[_0x3e61dc(0x127)][_0x3e61dc(0xf0)]['search']:[],_0x5dd4d7=this[_0x3e61dc(0x127)][_0x3e61dc(0x105)];if(!_0x5768cd||0x0==_0x5768cd[_0x3e61dc(0x12b)]){let _0x219f14;this[_0x3e61dc(0x127)][_0x3e61dc(0x12f)]&&(_0x219f14=this[_0x3e61dc(0x127)][_0x3e61dc(0x12f)]),this[_0x3e61dc(0x127)]['nameField']&&(_0x219f14=this[_0x3e61dc(0x127)][_0x3e61dc(0x12e)]),_0x219f14&&_0x5768cd['push']({'name':_0x219f14,'operator':'eq'});}let _0x4c061d=[...MetaApi['getGristGuttersConfig'](!0x0,!0x1)];if(_0x5dd4d7&&_0x5dd4d7['length']>0x0)for(let _0x37b389=0x0;_0x37b389<_0x5dd4d7[_0x3e61dc(0x12b)];_0x37b389++){let {type:_0x3bb858='string',name:_0xf10023,hidden:_0x59c373=!0x1,record:_0x4f33dd={'align':'left'},header:_0x48ca54,sortable:_0x5a648b=!0x1,width:_0x441ae5=0x87,options:_0x377db0,select_opt:_0x2dac83,object_opt:_0x547f5f}=_0x5dd4d7[_0x37b389];if(_0x2dac83&&(_0x377db0=_0x2dac83),_0x547f5f&&(_0x377db0=_0x547f5f),[_0x3e61dc(0x108),_0x3e61dc(0x129)]['includes'](_0x3bb858)?_0x3bb858='meta-object-selector':['resource-code-selector'][_0x3e61dc(0x112)](_0x3bb858)&&(_0x3bb858=_0x3e61dc(0x111)),'id'==_0xf10023)_0x4c061d[_0x3e61dc(0x10b)]({'type':'string','name':_0xf10023,'hidden':!0x0});else{let _0x5f4fab=MetaApi[_0x3e61dc(0x138)](_0x3bb858,_0xf10023,_0x48ca54||_0xf10023,_0x4f33dd[_0x3e61dc(0x136)]?_0x4f33dd['align']:_0x3e61dc(0xec),!0x1,_0x5a648b,_0x441ae5);_0x3bb858[_0x3e61dc(0x103)](_0x3e61dc(0x124))&&_0x547f5f&&_0x547f5f[_0x3e61dc(0xf5)]&&(_0x377db0=await MetaUiUtil[_0x3e61dc(0xe9)](_0x3bb858,_0x377db0)),_0x3e61dc(0x105)===_0x3bb858?Array['isArray'](_0x377db0)?_0x5f4fab['record']['options']=_0x377db0:'code'===_0x377db0[_0x3e61dc(0xfb)]?_0x5f4fab[_0x3e61dc(0x122)][_0x3e61dc(0x127)]=await ServiceUtil[_0x3e61dc(0x101)](_0x377db0[_0x3e61dc(0x11a)]?_0x377db0[_0x3e61dc(0x11a)]:_0x377db0['name']):_0x3e61dc(0x137)===_0x377db0[_0x3e61dc(0xfb)]?_0x5f4fab[_0x3e61dc(0x122)][_0x3e61dc(0x127)]=await ServiceUtil['getCodeByScenario'](_0x377db0['name'],_0x377db0[_0x3e61dc(0x113)]):'entity'===_0x377db0['type']&&(_0x5f4fab['record'][_0x3e61dc(0x127)]=await ServiceUtil[_0x3e61dc(0x123)](_0x377db0['args'])):_0x3e61dc(0x121)===_0x3bb858?_0x5f4fab[_0x3e61dc(0x122)][_0x3e61dc(0x127)]={..._0x377db0}:_0x3e61dc(0x111)==_0x3bb858&&(_0x377db0[_0x3e61dc(0x117)]&&(_0x377db0['codes']=await ServiceUtil[_0x3e61dc(0x123)](_0x377db0)),_0x5f4fab['record']['options']={..._0x377db0}),_0x5f4fab[_0x3e61dc(0xf8)]=_0x59c373,_0x4c061d[_0x3e61dc(0x10b)](_0x5f4fab);}}else _0x4c061d[_0x3e61dc(0x10b)](MetaApi[_0x3e61dc(0x138)](_0x3e61dc(0x11f),this[_0x3e61dc(0x127)][_0x3e61dc(0x12f)],this[_0x3e61dc(0x127)][_0x3e61dc(0x12f)],'left',!0x1,!0x0,0xb4)),this[_0x3e61dc(0x127)][_0x3e61dc(0x117)]&&_0x4c061d[_0x3e61dc(0x10b)](MetaApi[_0x3e61dc(0x138)](_0x3e61dc(0x11f),this[_0x3e61dc(0x127)][_0x3e61dc(0x117)],this[_0x3e61dc(0x127)][_0x3e61dc(0x117)],_0x3e61dc(0xec),!0x1,!0x0,0x12c));_0x4c061d[_0x3e61dc(0xe6)](_0x5bbbc7=>{const _0x2c56bc=_0x3e61dc;let _0x4b1d59=_0x5768cd['filter'](_0x171868=>_0x2c56bc(0x11f)==typeof _0x171868?_0x5bbbc7[_0x2c56bc(0xe5)]==_0x171868:_0x5bbbc7[_0x2c56bc(0xe5)]==_0x171868[_0x2c56bc(0xe5)]);_0x4b1d59&&_0x4b1d59[_0x2c56bc(0x12b)]>0x0&&(_0x5bbbc7[_0x2c56bc(0xe4)]='string'==typeof _0x4b1d59[0x0]?'search':_0x4b1d59[0x0]);});let _0x51bad7={'rows':MetaApi['getGristSelectableConfig'](!0x1),'pagination':MetaApi[_0x3e61dc(0xf9)](),'columns':_0x4c061d,'sorters':[..._0x465f1d]};_0x51bad7[_0x3e61dc(0x106)][_0x3e61dc(0x100)]={'click':'select-row-toggle','dblclick':(_0xb87045,_0x555b7b,_0xc56a14,_0x233550,_0xaebb86,_0x3d5a97)=>{const _0x321337=_0x3e61dc;this[_0x321337(0xea)](_0x233550);}},_0x51bad7[_0x3e61dc(0x106)][_0x3e61dc(0x10f)]=!0x1,this[_0x3e61dc(0x104)]=_0x51bad7,await super[_0x3e61dc(0x114)]();}async[a0_0x46f6ab(0xfe)](){const _0x3fc722=a0_0x46f6ab;await super[_0x3fc722(0xfe)]();}[a0_0x46f6ab(0x126)](){const _0x4bcb43=a0_0x46f6ab;return html`
21
+ <ox-grist id="ox-grist" .config=${this[_0x4bcb43(0x104)]} .mode=${isMobileDevice()?_0x4bcb43(0x107):_0x4bcb43(0xe8)} auto-fetch
22
+ .fetchHandler=${this[_0x4bcb43(0x115)]['bind'](this)}>
23
23
  <div slot="headroom">
24
24
  <div id="filters">
25
25
  <ox-filters-form></ox-filters-form>
@@ -27,14 +27,14 @@ const a0_0x352a53=a0_0x4969;(function(_0x482482,_0x5977a1){const _0x54074e=a0_0x
27
27
  </div>
28
28
  </ox-grist>
29
29
  <div id="button-container" class="button-container">
30
- <mwc-button raised label="${TermsUtil[_0x218d55(0x1a3)](_0x218d55(0x1a1))}" style="margin-left:7px;margin-top:7px;"
31
- @click=${this[_0x218d55(0x1c6)][_0x218d55(0x1b8)](this)}>
30
+ <mwc-button raised label="${TermsUtil[_0x4bcb43(0x134)]('empty')}" style="margin-left:7px;margin-top:7px;"
31
+ @click=${this[_0x4bcb43(0xf1)][_0x4bcb43(0x120)](this)}>
32
32
  </mwc-button>
33
- <mwc-button raised label="${TermsUtil[_0x218d55(0x1a3)](_0x218d55(0x193))}" style="margin-left:7px;margin-top:7px;"
34
- @click=${this[_0x218d55(0x19b)]['bind'](this)}>
33
+ <mwc-button raised label="${TermsUtil[_0x4bcb43(0x134)]('cancel')}" style="margin-left:7px;margin-top:7px;"
34
+ @click=${this[_0x4bcb43(0x11b)][_0x4bcb43(0x120)](this)}>
35
35
  </mwc-button>
36
- <mwc-button raised label="${TermsUtil['tButton'](_0x218d55(0x1c1))}" style="margin-left:7px;margin-top:7px;"
37
- @click=${this[_0x218d55(0x1cc)]['bind'](this)}>
36
+ <mwc-button raised label="${TermsUtil[_0x4bcb43(0x134)](_0x4bcb43(0x105))}" style="margin-left:7px;margin-top:7px;"
37
+ @click=${this[_0x4bcb43(0x109)][_0x4bcb43(0x120)](this)}>
38
38
  </mwc-button>
39
39
  </div>
40
- `;}get[a0_0x352a53(0x1a5)](){const _0x56ddb8=a0_0x352a53;return this[_0x56ddb8(0x1a9)][_0x56ddb8(0x1a4)](_0x56ddb8(0x1d9));}async['fetchHandler']({page:_0x492529=0x0,limit:_0x1a74cf=0x0,sorters:_0x48ea03=[],filters:_0x23795b=[]}){const _0x4d4329=a0_0x352a53;let _0x3133b8=[...this[_0x4d4329(0x1c9)]];_0x23795b[_0x4d4329(0x1df)](_0x4d8d8d=>{const _0x393ef6=_0x4d4329;let _0x477236=_0x3133b8[_0x393ef6(0x1a7)](_0x34cd63=>_0x4d8d8d['name']==_0x34cd63[_0x393ef6(0x1cb)]);_0x477236&&_0x477236[_0x393ef6(0x194)]>0x0&&delete _0x3133b8[_0x4d8d8d[_0x393ef6(0x1cb)]],_0x3133b8[_0x393ef6(0x196)](_0x4d8d8d);});let _0x342e25=ValueUtil[_0x4d4329(0x1a0)](this[_0x4d4329(0x1bd)]['menu_template']&&this[_0x4d4329(0x1bd)][_0x4d4329(0x1ad)]['gql']||{},_0x4d4329(0x1e5),_0x4d4329(0x1e2)),_0x189e72=Object[_0x4d4329(0x1ab)](_0x342e25||{}),_0x56772d=MetaApi['getSelectColumns'](this[_0x4d4329(0x1e0)][_0x4d4329(0x1b0)][_0x4d4329(0x1a7)](_0x3efbd1=>!_0x189e72[_0x4d4329(0x192)](_0x3efbd1[_0x4d4329(0x1cb)])));return await MetaApi['searchByPagination'](this['options']['queryName'],_0x3133b8,_0x48ea03,_0x492529,_0x1a74cf,_0x56772d);}async['clickEmpty'](_0x8d347c){const _0x170906=a0_0x352a53;this[_0x170906(0x1ba)]&&this[_0x170906(0x1ba)](null),closePopup(this);}async[a0_0x352a53(0x19b)](_0x4604cf){closePopup(this);}async[a0_0x352a53(0x1cc)](_0x47b2c7){const _0x19349c=a0_0x352a53;let _0x40c72d=this[_0x19349c(0x1a5)][_0x19349c(0x1a8)];_0x40c72d&&0x0!=_0x40c72d['length']?this[_0x19349c(0x1c3)](_0x40c72d[0x0]):MetaApi[_0x19349c(0x1af)](_0x19349c(0x1c0),TermsUtil[_0x19349c(0x1b1)](_0x19349c(0x1b5)));}async['selectRecord'](_0x3c0d23){const _0x303258=a0_0x352a53;this['confirmCallback']&&this[_0x303258(0x1ba)](_0x3c0d23),closePopup(this);}}customElements['define']('meta-object-selector-popup',MetaObjectSelectorPopup);
40
+ `;}get[a0_0x46f6ab(0x102)](){const _0x4b63ff=a0_0x46f6ab;return this[_0x4b63ff(0x116)][_0x4b63ff(0x118)]('#ox-grist');}async['fetchHandler']({page:_0x32ec53=0x0,limit:_0x377e87=0x0,sorters:_0x19d34d=[],filters:_0x4b0244=[]}){const _0x4c33ee=a0_0x46f6ab;let _0x1efbb0=[...this['search_hidden_fields']];_0x4b0244[_0x4c33ee(0xe6)](_0x366734=>{const _0x1d644c=_0x4c33ee;let _0x375593=_0x1efbb0[_0x1d644c(0xe4)](_0xfb3516=>_0x366734[_0x1d644c(0xe5)]==_0xfb3516['name']);_0x375593&&_0x375593[_0x1d644c(0x12b)]>0x0&&delete _0x1efbb0[_0x366734[_0x1d644c(0xe5)]],_0x1efbb0[_0x1d644c(0x10b)](_0x366734);});let _0x20a4d0=ValueUtil[_0x4c33ee(0x10a)](this[_0x4c33ee(0x127)][_0x4c33ee(0xf0)]&&this[_0x4c33ee(0x127)]['menu_template'][_0x4c33ee(0x131)]||{},_0x4c33ee(0xed),_0x4c33ee(0xf2)),_0xf4229=Object[_0x4c33ee(0x12a)](_0x20a4d0||{}),_0x31ae20=MetaApi[_0x4c33ee(0x133)](this[_0x4c33ee(0x104)][_0x4c33ee(0x130)][_0x4c33ee(0xe4)](_0xf718bd=>!_0xf4229[_0x4c33ee(0x112)](_0xf718bd[_0x4c33ee(0xe5)])));return await MetaApi[_0x4c33ee(0x119)](this['options'][_0x4c33ee(0x11c)],_0x1efbb0,_0x19d34d,_0x32ec53,_0x377e87,_0x31ae20);}async[a0_0x46f6ab(0xf1)](_0xb59300){const _0xcd54f6=a0_0x46f6ab;this['confirmCallback']&&this[_0xcd54f6(0xfd)](null),closePopup(this);}async[a0_0x46f6ab(0x11b)](_0x125100){closePopup(this);}async[a0_0x46f6ab(0x109)](_0x4db2f8){const _0x2d57da=a0_0x46f6ab;let _0x5be305=this[_0x2d57da(0x102)][_0x2d57da(0x110)];_0x5be305&&0x0!=_0x5be305[_0x2d57da(0x12b)]?this[_0x2d57da(0xea)](_0x5be305[0x0]):MetaApi[_0x2d57da(0x135)](_0x2d57da(0xee),TermsUtil[_0x2d57da(0x10e)](_0x2d57da(0xeb)));}async['selectRecord'](_0x2e4f5d){const _0x402885=a0_0x46f6ab;this['confirmCallback']&&this[_0x402885(0xfd)](_0x2e4f5d),closePopup(this);}}customElements[a0_0x46f6ab(0x10c)](a0_0x46f6ab(0xf7),MetaObjectSelectorPopup);
@@ -1 +1 @@
1
- const a0_0x307e5b=a0_0x222c;function a0_0x222c(_0x4c813c,_0x3a8240){const _0x2fc487=a0_0x2fc4();return a0_0x222c=function(_0x222cec,_0x260cc1){_0x222cec=_0x222cec-0x1df;let _0x30b550=_0x2fc487[_0x222cec];return _0x30b550;},a0_0x222c(_0x4c813c,_0x3a8240);}(function(_0x407dfc,_0x4858d2){const _0x25288f=a0_0x222c,_0x238e09=_0x407dfc();while(!![]){try{const _0x10416e=parseInt(_0x25288f(0x221))/0x1+-parseInt(_0x25288f(0x20c))/0x2+-parseInt(_0x25288f(0x1ea))/0x3+parseInt(_0x25288f(0x1fb))/0x4*(parseInt(_0x25288f(0x1ed))/0x5)+-parseInt(_0x25288f(0x21d))/0x6+parseInt(_0x25288f(0x1ee))/0x7*(parseInt(_0x25288f(0x21c))/0x8)+-parseInt(_0x25288f(0x1fa))/0x9*(-parseInt(_0x25288f(0x1f8))/0xa);if(_0x10416e===_0x4858d2)break;else _0x238e09['push'](_0x238e09['shift']());}catch(_0x4107d5){_0x238e09['push'](_0x238e09['shift']());}}}(a0_0x2fc4,0x3e87a));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x4e5e0c=>class extends _0x4e5e0c{static get[a0_0x307e5b(0x212)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x175120=>Boolean(_0x175120)},'is_popup':{'type':Boolean,'converter':_0x57e9bb=>Boolean(_0x57e9bb)},'is_activity':{'type':Boolean,'converter':_0x4e7716=>Boolean(_0x4e7716)},'is_readonly':{'type':Boolean,'converter':_0x16211e=>Boolean(_0x16211e)}};}get[a0_0x307e5b(0x208)](){return!0x0===this['is_detail']||!0x0===this['is_popup'];}get[a0_0x307e5b(0x220)](){const _0x149dd8=a0_0x307e5b;return!ValueUtil['isEmpty'](this[_0x149dd8(0x1f6)])&&this[_0x149dd8(0x1f6)];}async[a0_0x307e5b(0x1ef)](_0x2c9ee8){const _0x5d406c=a0_0x307e5b;let {after:_0x1a3dbd,before:_0x48820c,column:_0x3ca8ec,record:_0x2f8689,row:_0x3c95cb}=_0x2c9ee8[_0x5d406c(0x1fc)],_0x1290af=_0x3ca8ec[_0x5d406c(0x206)];if(Object['keys'](this[_0x5d406c(0x214)]||{})['includes'](_0x1290af)){let _0x29b7d2,_0x2cb0d1=(await MetaApi[_0x5d406c(0x1e7)](void 0x0,this[_0x5d406c(0x214)][_0x1290af],{'columnName':_0x1290af,'column':_0x3ca8ec,'record':_0x2f8689,'after':_0x1a3dbd,'before':_0x48820c,'row':_0x3c95cb},!0x1))['data'][_0x5d406c(0x1f0)][_0x5d406c(0x200)][_0x5d406c(0x1ff)];if(!_0x2cb0d1)return;_0x29b7d2=this[_0x5d406c(0x1f5)]?this[_0x5d406c(0x1f5)][_0x5d406c(0x1f5)]['body']:this,Object['keys'](_0x2cb0d1)[_0x5d406c(0x210)](_0x79a6f4=>{const _0xec2596=_0x5d406c;_0x29b7d2[_0xec2596(0x202)](new CustomEvent(_0xec2596(0x1e6),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x2f8689,'row':_0x3c95cb,'after':_0x2cb0d1[_0x79a6f4],'before':_0x2f8689[_0x79a6f4],'column':{'name':_0x79a6f4}}}));});}this[_0x5d406c(0x202)](new CustomEvent(_0x5d406c(0x1eb),{'bubbles':!0x0,'composed':!0x0,'detail':_0x2c9ee8[_0x5d406c(0x1fc)]}));}async[a0_0x307e5b(0x1ec)](){const _0x5aca82=a0_0x307e5b;super[_0x5aca82(0x1ec)]&&await super['connectedCallback'](),this['tagName'][_0x5aca82(0x21b)]()[_0x5aca82(0x205)](_0x5aca82(0x207))?this[_0x5aca82(0x218)](_0x5aca82(0x201),async _0xc0409b=>{const _0x527317=_0x5aca82;await this[_0x527317(0x1ef)](_0xc0409b);}):this[_0x5aca82(0x218)](_0x5aca82(0x1e6),async _0x478a07=>{const _0x1b0ce7=_0x5aca82;await this[_0x1b0ce7(0x1ef)](_0x478a07);});}async[a0_0x307e5b(0x204)](_0x4b429a,_0x47e6ca,_0xd17596){const _0x11eba7=a0_0x307e5b;let _0x121ef4=this['lifecycle']?.[_0x11eba7(0x1e8)]?this['lifecycle']['params']:{};this[_0x11eba7(0x1f4)]&&this[_0x11eba7(0x20f)]&&0x0==_0xd17596[_0x11eba7(0x20f)]&&ValueUtil['isNotEmpty'](_0x121ef4)&&this[_0x11eba7(0x1e2)]();}get[a0_0x307e5b(0x211)](){const _0xd01436=a0_0x307e5b;return!ValueUtil[_0xd01436(0x1f1)](this['is_popup'])&&this[_0xd01436(0x213)];}get[a0_0x307e5b(0x1f4)](){const _0x2886b3=a0_0x307e5b;return!this['is_detail']&&!this[_0x2886b3(0x213)];}async[a0_0x307e5b(0x203)](){const _0xd574f3=a0_0x307e5b;let _0x41a84c=await MetaApi[_0xd574f3(0x20a)](this);_0x41a84c&&(this[_0xd574f3(0x1e9)]=_0x41a84c[_0xd574f3(0x1f3)],this[_0xd574f3(0x1e5)]=_0x41a84c[_0xd574f3(0x20d)],this[_0xd574f3(0x1f2)]&&this[_0xd574f3(0x1f2)](_0x41a84c),this[_0xd574f3(0x216)]&&this[_0xd574f3(0x216)](_0x41a84c),this[_0xd574f3(0x219)]&&this[_0xd574f3(0x219)](_0x41a84c),this[_0xd574f3(0x20e)]&&this[_0xd574f3(0x20e)](_0x41a84c),this[_0xd574f3(0x215)]&&this[_0xd574f3(0x215)](_0x41a84c));}async[a0_0x307e5b(0x1e2)](){const _0x4e6850=a0_0x307e5b;ValueUtil[_0x4e6850(0x1fd)](this[_0x4e6850(0x1f5)])?this[_0x4e6850(0x1f5)][_0x4e6850(0x1e2)]():(ValueUtil[_0x4e6850(0x1fd)](this[_0x4e6850(0x1e4)])||this[_0x4e6850(0x1e3)])&&await this['fetchHandler']();}async[a0_0x307e5b(0x1fe)](_0x39a167,_0x3fcac6,_0x14e907){const _0x34ffc6=a0_0x307e5b;let _0x5ddba7=TermsUtil[_0x34ffc6(0x1df)](_0x39a167[_0x34ffc6(0x217)]);ValueUtil['isNotEmpty'](_0x39a167[_0x34ffc6(0x209)])&&(_0x5ddba7=_0x5ddba7+'-'+ValueUtil[_0x34ffc6(0x1f9)](_0x3fcac6,..._0x39a167['title_detail'][_0x34ffc6(0x21f)]('.'))),MetaApi[_0x34ffc6(0x21e)](_0x5ddba7,_0x39a167,_0x3fcac6,_0x14e907);}async[a0_0x307e5b(0x1f7)](_0x300a94,_0x4d21cf,_0x48a810){const _0x4a389c=a0_0x307e5b;let _0x3208ac=await MetaApi['callScenario'](_0x300a94[_0x4a389c(0x206)],_0x300a94[_0x4a389c(0x206)],_0x4d21cf);!0x1!==_0x3208ac&&!_0x3208ac[_0x4a389c(0x1e1)]&&ValueUtil[_0x4a389c(0x1fd)](_0x300a94[_0x4a389c(0x1e0)])&&_0x48a810();}[a0_0x307e5b(0x20b)](_0x173f05){const _0x47f215=a0_0x307e5b;this[_0x47f215(0x21a)]=_0x173f05,this[_0x47f215(0x1e2)]();}};function a0_0x2fc4(){const _0x34b4ea=['runScenario','isEmpty','parseBasicGridConfigs','menu','isPage','grist','is_detail','executeCallScenarioButtonClick','45080usebAt','getParams','909AsWLSv','4VBJxZu','detail','isNotEmpty','excuteOpenPopupButtonClick','result','data','form-field-change','dispatchEvent','getAndParseMenuMeta','pageUpdated','startsWith','name','meta-form-','isElement','title_detail','getMenuMeta','setParentId','986400HwPbqU','etc','parseBasicTabConfigs','active','forEach','isPopup','properties','is_popup','fieldChangeHandlers','parseBasicButtonConfigs','parseBasicServiceConfigs','title','addEventListener','parseBasicFormConfigs','parent_id','toLowerCase','61128hjvWLK','1261212LHWgLF','openDynamicPopup','split','isDetail','440829DmxEil','tTitle','after','errors','fetch','fetchHandler','filterForm','etcConfig','field-change','callScenario','params','menuInfo','784140InFQNX','data-changed','connectedCallback','1279990PyXExl','63TdhyAu','dataChangeEventHandler'];a0_0x2fc4=function(){return _0x34b4ea;};return a0_0x2fc4();}
1
+ const a0_0x5f4293=a0_0x48d2;function a0_0x48d2(_0x163078,_0x32906d){const _0x67db16=a0_0x67db();return a0_0x48d2=function(_0x48d2c0,_0x51f334){_0x48d2c0=_0x48d2c0-0x1c7;let _0x18c96c=_0x67db16[_0x48d2c0];return _0x18c96c;},a0_0x48d2(_0x163078,_0x32906d);}(function(_0x148149,_0x1e2f23){const _0x4b3c12=a0_0x48d2,_0x289f78=_0x148149();while(!![]){try{const _0x2d4f35=parseInt(_0x4b3c12(0x1e7))/0x1+parseInt(_0x4b3c12(0x1ef))/0x2*(-parseInt(_0x4b3c12(0x1d2))/0x3)+-parseInt(_0x4b3c12(0x1cd))/0x4+parseInt(_0x4b3c12(0x1e5))/0x5+parseInt(_0x4b3c12(0x1e9))/0x6+parseInt(_0x4b3c12(0x1d0))/0x7+-parseInt(_0x4b3c12(0x1db))/0x8;if(_0x2d4f35===_0x1e2f23)break;else _0x289f78['push'](_0x289f78['shift']());}catch(_0x56d904){_0x289f78['push'](_0x289f78['shift']());}}}(a0_0x67db,0x3b9c8));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x2b2223=>class extends _0x2b2223{static get['properties'](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x308c94=>Boolean(_0x308c94)},'is_popup':{'type':Boolean,'converter':_0x2553d5=>Boolean(_0x2553d5)},'is_activity':{'type':Boolean,'converter':_0x5cfbd6=>Boolean(_0x5cfbd6)},'is_readonly':{'type':Boolean,'converter':_0x50daed=>Boolean(_0x50daed)}};}get[a0_0x5f4293(0x1ce)](){const _0x45c211=a0_0x5f4293;return!0x0===this[_0x45c211(0x1fc)]||!0x0===this['is_popup'];}get[a0_0x5f4293(0x1d6)](){const _0xe3c15b=a0_0x5f4293;return!ValueUtil[_0xe3c15b(0x1c9)](this[_0xe3c15b(0x1fc)])&&this[_0xe3c15b(0x1fc)];}async[a0_0x5f4293(0x1ca)](_0x5bb995){const _0x24e899=a0_0x5f4293;let {after:_0x19b5b4,before:_0x45a888,column:_0x439abf,record:_0x292d8d,row:_0x52c476}=_0x5bb995[_0x24e899(0x1f8)],_0x192f2c=_0x439abf[_0x24e899(0x1da)];if(Object[_0x24e899(0x1e1)](this[_0x24e899(0x1d3)]||{})[_0x24e899(0x1c7)](_0x192f2c)){let _0x54f083,_0x43b0fc=(await MetaApi[_0x24e899(0x1eb)](void 0x0,this[_0x24e899(0x1d3)][_0x192f2c],{'columnName':_0x192f2c,'column':_0x439abf,'record':_0x292d8d,'after':_0x19b5b4,'before':_0x45a888,'row':_0x52c476},!0x1))[_0x24e899(0x1fb)][_0x24e899(0x1c8)]['data'][_0x24e899(0x1e0)];if(!_0x43b0fc)return;_0x54f083=this[_0x24e899(0x1f1)]?this['grist'][_0x24e899(0x1f1)][_0x24e899(0x1cc)]:this,Object[_0x24e899(0x1e1)](_0x43b0fc)[_0x24e899(0x1cb)](_0x1db411=>{const _0x4490e8=_0x24e899;_0x54f083[_0x4490e8(0x1e8)](new CustomEvent(_0x4490e8(0x1d9),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x292d8d,'row':_0x52c476,'after':_0x43b0fc[_0x1db411],'before':_0x292d8d[_0x1db411],'column':{'name':_0x1db411}}}));});}this['dispatchEvent'](new CustomEvent(_0x24e899(0x1e2),{'bubbles':!0x0,'composed':!0x0,'detail':_0x5bb995[_0x24e899(0x1f8)]}));}async[a0_0x5f4293(0x1d8)](){const _0x11875e=a0_0x5f4293;super['connectedCallback']&&await super[_0x11875e(0x1d8)](),this[_0x11875e(0x1e4)][_0x11875e(0x1e3)]()['startsWith'](_0x11875e(0x1ff))?this['addEventListener'](_0x11875e(0x1d5),async _0xe34f5d=>{const _0x1128df=_0x11875e;await this[_0x1128df(0x1ca)](_0xe34f5d);}):this[_0x11875e(0x1d1)](_0x11875e(0x1d9),async _0xdec439=>{const _0x217424=_0x11875e;await this[_0x217424(0x1ca)](_0xdec439);});}async[a0_0x5f4293(0x1f2)](_0x31cbc0,_0x3deb5d,_0x758941){const _0x12918b=a0_0x5f4293;let _0x50e213=this[_0x12918b(0x1f0)]?.[_0x12918b(0x1f4)]?this[_0x12918b(0x1f0)][_0x12918b(0x1f4)]:{};this[_0x12918b(0x1dd)]&&this[_0x12918b(0x1df)]&&0x0==_0x758941['active']&&ValueUtil[_0x12918b(0x1f5)](_0x50e213)&&this[_0x12918b(0x1fd)]();}get['isPopup'](){const _0x3ebf61=a0_0x5f4293;return!ValueUtil[_0x3ebf61(0x1c9)](this[_0x3ebf61(0x1f6)])&&this[_0x3ebf61(0x1f6)];}get[a0_0x5f4293(0x1dd)](){const _0x5290b5=a0_0x5f4293;return!this[_0x5290b5(0x1fc)]&&!this[_0x5290b5(0x1f6)];}async[a0_0x5f4293(0x1fe)](){const _0x580200=a0_0x5f4293;let _0x28c792=await MetaApi['getMenuMeta'](this);_0x28c792&&(this['menuInfo']=_0x28c792[_0x580200(0x1ed)],this[_0x580200(0x1de)]=_0x28c792[_0x580200(0x1f3)],this['parseBasicGridConfigs']&&this['parseBasicGridConfigs'](_0x28c792),this[_0x580200(0x1f9)]&&this[_0x580200(0x1f9)](_0x28c792),this[_0x580200(0x1dc)]&&this[_0x580200(0x1dc)](_0x28c792),this[_0x580200(0x1ec)]&&this[_0x580200(0x1ec)](_0x28c792),this[_0x580200(0x1cf)]&&this[_0x580200(0x1cf)](_0x28c792));}async['fetch'](){const _0x400c41=a0_0x5f4293;ValueUtil[_0x400c41(0x1f5)](this['grist'])?this[_0x400c41(0x1f1)]['fetch']():(ValueUtil[_0x400c41(0x1f5)](this['filterForm'])||this[_0x400c41(0x1f7)])&&await this['fetchHandler']();}async[a0_0x5f4293(0x1d4)](_0x34fa03,_0x38eade,_0x3586ec){const _0x1294d9=a0_0x5f4293;let _0x115a6f=TermsUtil['tTitle'](_0x34fa03['title']);ValueUtil['isNotEmpty'](_0x34fa03[_0x1294d9(0x1e6)])&&(_0x115a6f=_0x115a6f+'-'+ValueUtil['getParams'](_0x38eade,..._0x34fa03[_0x1294d9(0x1e6)]['split']('.'))),MetaApi['openDynamicPopup'](_0x115a6f,_0x34fa03,_0x38eade,_0x3586ec);}async[a0_0x5f4293(0x1ee)](_0x24c609,_0xba5de7,_0x4110bf){const _0x77c093=a0_0x5f4293;let _0x4eecba=await MetaApi['callScenario'](_0x24c609[_0x77c093(0x1da)],_0x24c609['name'],_0xba5de7);!0x1!==_0x4eecba&&!_0x4eecba[_0x77c093(0x1ea)]&&ValueUtil[_0x77c093(0x1f5)](_0x24c609[_0x77c093(0x1d7)])&&_0x4110bf();}['setParentId'](_0x353805){const _0x25d374=a0_0x5f4293;this[_0x25d374(0x1fa)]=_0x353805,this['fetch']();}};function a0_0x67db(){const _0x184f61=['tagName','2246545KKbyLT','title_detail','424632knCCEp','dispatchEvent','2454870tMHHHN','errors','callScenario','parseBasicTabConfigs','menu','executeCallScenarioButtonClick','44978wPGRjT','lifecycle','grist','pageUpdated','etc','params','isNotEmpty','is_popup','fetchHandler','detail','parseBasicServiceConfigs','parent_id','data','is_detail','fetch','getAndParseMenuMeta','meta-form-','includes','runScenario','isEmpty','dataChangeEventHandler','forEach','body','778536ulJhUa','isElement','parseBasicButtonConfigs','1339107jVpepT','addEventListener','3Juigte','fieldChangeHandlers','excuteOpenPopupButtonClick','form-field-change','isDetail','after','connectedCallback','field-change','name','8104768CfhCYD','parseBasicFormConfigs','isPage','etcConfig','active','result','keys','data-changed','toLowerCase'];a0_0x67db=function(){return _0x184f61;};return a0_0x67db();}
@@ -1,4 +1,4 @@
1
- const a0_0x1fc123=a0_0x1a67;(function(_0x4ab35b,_0x429440){const _0x1d37a0=a0_0x1a67,_0x4774b4=_0x4ab35b();while(!![]){try{const _0x4a5935=parseInt(_0x1d37a0(0xdb))/0x1*(parseInt(_0x1d37a0(0xd2))/0x2)+-parseInt(_0x1d37a0(0xcb))/0x3+-parseInt(_0x1d37a0(0x102))/0x4*(parseInt(_0x1d37a0(0xf6))/0x5)+parseInt(_0x1d37a0(0xd0))/0x6*(parseInt(_0x1d37a0(0xda))/0x7)+parseInt(_0x1d37a0(0xf9))/0x8+parseInt(_0x1d37a0(0xdf))/0x9*(-parseInt(_0x1d37a0(0xcf))/0xa)+parseInt(_0x1d37a0(0xe0))/0xb*(-parseInt(_0x1d37a0(0xd9))/0xc);if(_0x4a5935===_0x429440)break;else _0x4774b4['push'](_0x4774b4['shift']());}catch(_0x56c5ec){_0x4774b4['push'](_0x4774b4['shift']());}}}(a0_0x1357,0x4ac76));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x1a67(_0x15f47a,_0x25c9d8){const _0x13575a=a0_0x1357();return a0_0x1a67=function(_0x1a6743,_0x332f87){_0x1a6743=_0x1a6743-0xca;let _0x40fdd7=_0x13575a[_0x1a6743];return _0x40fdd7;},a0_0x1a67(_0x15f47a,_0x25c9d8);}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=_0x50d068=>class extends MetaButtonMixin(_0x50d068){static get[a0_0x1fc123(0xe9)](){const _0xfc3b6a=a0_0x1fc123;return MetaApi[_0xfc3b6a(0xf4)]();}static get[a0_0x1fc123(0x101)](){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_0x1fc123(0xe8)](){const _0x112a9c=a0_0x1fc123;return this['renderRoot']?.[_0x112a9c(0xe4)](this['gristId']);}get['filterForm'](){const _0x30054a=a0_0x1fc123;return this[_0x30054a(0xf8)]?.['querySelector'](this[_0x30054a(0xde)]);}get[a0_0x1fc123(0xec)](){const _0x4795a3=a0_0x1fc123;return MetaUiUtil[_0x4795a3(0xd8)](this);}async[a0_0x1fc123(0xe3)](){const _0x30d2a3=a0_0x1fc123;this['gristId']='ox-grist',this[_0x30d2a3(0xde)]=_0x30d2a3(0xf1),await this[_0x30d2a3(0xfc)](),this[_0x30d2a3(0xce)]&&await this[_0x30d2a3(0xfe)](),this[_0x30d2a3(0xd7)]&&(this['dataSet']=this['activityDataSet']),super[_0x30d2a3(0xe3)]&&await super['connectedCallback']();}async[a0_0x1fc123(0xf7)](){const _0x3ac540=a0_0x1fc123;super[_0x3ac540(0xf7)]&&await super[_0x3ac540(0xf7)]();}async[a0_0x1fc123(0xe6)](){const _0x1852ff=a0_0x1fc123;this[_0x1852ff(0xf5)]&&await this[_0x1852ff(0xfe)](),super['pageInitialized']&&await super['pageInitialized']();}[a0_0x1fc123(0xcc)](){const _0x3f0bcd=a0_0x1fc123;return html`
2
- ${MetaApi['getBasicGristHtml'](this)}
3
- ${this[_0x3f0bcd(0xf5)]?html``:MetaUiUtil[_0x3f0bcd(0x104)](this)}
4
- `;}['parseBasicGridConfigs'](_0x154112){const _0x190838=a0_0x1fc123;this[_0x190838(0x100)]=_0x154112['grid'],this[_0x190838(0x105)]=_0x154112[_0x190838(0xe5)],this['searchConfig']=_0x154112[_0x190838(0xf2)],this[_0x190838(0xe7)]=_0x154112[_0x190838(0xe7)];}async[a0_0x1fc123(0xfe)](){const _0x4d1a9d=a0_0x1fc123;this['gristConfigSet']=await MetaApi[_0x4d1a9d(0xca)](this);}async[a0_0x1fc123(0xd3)](){const _0x24b1ad=a0_0x1fc123;await this[_0x24b1ad(0xe8)][_0x24b1ad(0xd3)]();}async[a0_0x1fc123(0xf3)](){const _0x3ed149=a0_0x1fc123;let _0x1da669=MetaApi[_0x3ed149(0xe2)](this[_0x3ed149(0xe8)]);!!ValueUtil[_0x3ed149(0xd4)](_0x1da669)&&await this[_0x3ed149(0xfb)](_0x1da669)&&this[_0x3ed149(0xd3)]();}async[a0_0x1fc123(0xdd)](){const _0x3c8bad=a0_0x1fc123;let _0x1554e5=MetaApi['getSelectedIdList'](this[_0x3c8bad(0xe8)],!0x0);return ValueUtil[_0x3c8bad(0xd4)](_0x1554e5)?await this[_0x3c8bad(0xe1)](_0x1554e5[0x0]):{};}async[a0_0x1fc123(0xff)](){const _0x5bdee1=a0_0x1fc123;let _0x41bb25=MetaApi['getSelectedIdList'](this[_0x5bdee1(0xe8)],!0x0);!!ValueUtil[_0x5bdee1(0xd4)](_0x41bb25)&&await this['deleteByIds'](_0x41bb25)&&this['fetch']();}async[a0_0x1fc123(0xd5)](){const _0x8db143=a0_0x1fc123;let _0x1dd62e=TermsUtil[_0x8db143(0xd6)](ValueUtil[_0x8db143(0xcd)](this['menuInfo'],_0x8db143(0xeb)));return await MetaApi[_0x8db143(0xea)](this[_0x8db143(0xce)],_0x1dd62e,this[_0x8db143(0xe8)]);}async[a0_0x1fc123(0x103)](){}async[a0_0x1fc123(0xee)](){const _0x150d5f=a0_0x1fc123;this['grist']&&(this[_0x150d5f(0xe8)][_0x150d5f(0xfa)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x1fc123(0xdc)](){const _0x4b63ab=a0_0x1fc123;let _0x5c9554=this[_0x4b63ab(0xe8)][_0x4b63ab(0xd1)][_0x4b63ab(0xef)];return _0x5c9554=JSON['parse'](JSON['stringify'](_0x5c9554)),_0x5c9554[_0x4b63ab(0xfd)](_0x5c008f=>{const _0x3f913a=_0x4b63ab;Object[_0x3f913a(0xed)](_0x5c008f)[_0x3f913a(0xfd)](_0x3ddcce=>{const _0x5ae1af=_0x3f913a;_0x3ddcce[_0x5ae1af(0xf0)]('__')&&delete _0x5c008f[_0x3ddcce];});}),_0x5c9554;}};function a0_0x1357(){const _0x5d5322=['getBasicGristStyles','isPage','1240165WQElHd','firstUpdated','shadowRoot','3792504ZOUlrN','data','updateMultiple','getAndParseMenuMeta','forEach','parseGristConfigs','delete','gridConfig','properties','8rdeAmJ','import','getButtonContainer','gridColumnConfig','parseGridConfigSet','807423SdWxQp','render','getParams','isElement','30FnrnlV','30ogeZPp','___data','8xHEhad','fetch','isNotEmpty','export','tTitle','activityDataSet','getContextObject','524136RyLEdP','334691yPDEmB','142962pOOxBI','getData','find','filterFormId','509391ROQafG','11DaVFTa','findOne','patchesForUpdateMultiple','connectedCallback','querySelector','grid_column','pageInitialized','gridEmphasized','grist','styles','exportableData','title','context','keys','clear','records','startsWith','ox-filters-form','search','save'];a0_0x1357=function(){return _0x5d5322;};return a0_0x1357();}
1
+ const a0_0x22a95e=a0_0x3391;(function(_0x5e3387,_0x6bde50){const _0x4fb08f=a0_0x3391,_0x3c97bf=_0x5e3387();while(!![]){try{const _0xa27ee=-parseInt(_0x4fb08f(0x208))/0x1+-parseInt(_0x4fb08f(0x214))/0x2*(parseInt(_0x4fb08f(0x1ef))/0x3)+parseInt(_0x4fb08f(0x21a))/0x4*(parseInt(_0x4fb08f(0x1fe))/0x5)+-parseInt(_0x4fb08f(0x207))/0x6+-parseInt(_0x4fb08f(0x218))/0x7*(-parseInt(_0x4fb08f(0x1f9))/0x8)+-parseInt(_0x4fb08f(0x215))/0x9*(parseInt(_0x4fb08f(0x202))/0xa)+-parseInt(_0x4fb08f(0x221))/0xb*(-parseInt(_0x4fb08f(0x1ed))/0xc);if(_0xa27ee===_0x6bde50)break;else _0x3c97bf['push'](_0x3c97bf['shift']());}catch(_0x4feff3){_0x3c97bf['push'](_0x3c97bf['shift']());}}}(a0_0x1f8b,0x5ca85));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x1f8b(){const _0x121f3d=['search','updateMultiple','render','find','parseGristConfigs','192yWuALd','searchConfig','9DpGYkz','getBasicGristStyles','isNotEmpty','gridColumnConfig','getData','ox-grist','___data','filterForm','import','parse','200stZdDP','patchesForUpdateMultiple','data','forEach','records','3568750WcrxnE','gridEmphasized','dataSet','grid_column','3414820OlUFso','gristConfigSet','title','styles','startsWith','471330mnnnLG','526462WfhSME','getSelectedIdList','pageInitialized','context','isPage','firstUpdated','isElement','getBasicGristHtml','gristId','querySelector','stringify','getButtonContainer','220646gebufQ','9mACrPi','keys','exportableData','155141XHJitD','tTitle','4VScugz','connectedCallback','fetch','parseBasicGridConfigs','findOne','getContextObject','export','267553NJvsPs','parseGridConfigSet','menuInfo','grist'];a0_0x1f8b=function(){return _0x121f3d;};return a0_0x1f8b();}import{TermsUtil}from'../utils/terms-util';function a0_0x3391(_0x542d0d,_0x151f7b){const _0x1f8b5e=a0_0x1f8b();return a0_0x3391=function(_0x339118,_0x330c69){_0x339118=_0x339118-0x1e8;let _0x5bb262=_0x1f8b5e[_0x339118];return _0x5bb262;},a0_0x3391(_0x542d0d,_0x151f7b);}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0xae1908=>class extends MetaButtonMixin(_0xae1908){static get[a0_0x22a95e(0x205)](){const _0x35e2b3=a0_0x22a95e;return MetaApi[_0x35e2b3(0x1f0)]();}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_0x22a95e(0x224)](){const _0x41bac5=a0_0x22a95e;return this['renderRoot']?.[_0x41bac5(0x211)](this[_0x41bac5(0x210)]);}get[a0_0x22a95e(0x1f6)](){const _0x775588=a0_0x22a95e;return this['shadowRoot']?.[_0x775588(0x211)](this['filterFormId']);}get[a0_0x22a95e(0x20b)](){const _0x3d0f2b=a0_0x22a95e;return MetaUiUtil[_0x3d0f2b(0x21f)](this);}async[a0_0x22a95e(0x21b)](){const _0x4f8834=a0_0x22a95e;this[_0x4f8834(0x210)]=_0x4f8834(0x1f4),this['filterFormId']='ox-filters-form',await this['getAndParseMenuMeta'](),this[_0x4f8834(0x20e)]&&await this[_0x4f8834(0x1ec)](),this['activityDataSet']&&(this[_0x4f8834(0x200)]=this['activityDataSet']),super[_0x4f8834(0x21b)]&&await super[_0x4f8834(0x21b)]();}async[a0_0x22a95e(0x20d)](){const _0x342db3=a0_0x22a95e;super[_0x342db3(0x20d)]&&await super[_0x342db3(0x20d)]();}async[a0_0x22a95e(0x20a)](){const _0x4e36b0=a0_0x22a95e;this[_0x4e36b0(0x20c)]&&await this['parseGristConfigs'](),super[_0x4e36b0(0x20a)]&&await super['pageInitialized']();}[a0_0x22a95e(0x1ea)](){const _0x3d658f=a0_0x22a95e;return html`
2
+ ${MetaApi[_0x3d658f(0x20f)](this)}
3
+ ${this[_0x3d658f(0x20c)]?html``:MetaUiUtil[_0x3d658f(0x213)](this)}
4
+ `;}[a0_0x22a95e(0x21d)](_0x5fbd0b){const _0x38cdcd=a0_0x22a95e;this['gridConfig']=_0x5fbd0b['grid'],this[_0x38cdcd(0x1f2)]=_0x5fbd0b[_0x38cdcd(0x201)],this[_0x38cdcd(0x1ee)]=_0x5fbd0b[_0x38cdcd(0x1e8)],this[_0x38cdcd(0x1ff)]=_0x5fbd0b[_0x38cdcd(0x1ff)];}async[a0_0x22a95e(0x1ec)](){const _0x51f4d0=a0_0x22a95e;this[_0x51f4d0(0x203)]=await MetaApi[_0x51f4d0(0x222)](this);}async[a0_0x22a95e(0x21c)](){const _0x1b0289=a0_0x22a95e;await this[_0x1b0289(0x224)][_0x1b0289(0x21c)]();}async['save'](){const _0x65dd55=a0_0x22a95e;let _0x5f03ad=MetaApi[_0x65dd55(0x1fa)](this[_0x65dd55(0x224)]);!!ValueUtil['isNotEmpty'](_0x5f03ad)&&await this[_0x65dd55(0x1e9)](_0x5f03ad)&&this[_0x65dd55(0x21c)]();}async[a0_0x22a95e(0x1eb)](){const _0x1dbca1=a0_0x22a95e;let _0xf58343=MetaApi[_0x1dbca1(0x209)](this['grist'],!0x0);return ValueUtil[_0x1dbca1(0x1f1)](_0xf58343)?await this[_0x1dbca1(0x21e)](_0xf58343[0x0]):{};}async['delete'](){const _0x316f79=a0_0x22a95e;let _0x5dfaee=MetaApi[_0x316f79(0x209)](this[_0x316f79(0x224)],!0x0);!!ValueUtil['isNotEmpty'](_0x5dfaee)&&await this['deleteByIds'](_0x5dfaee)&&this[_0x316f79(0x21c)]();}async[a0_0x22a95e(0x220)](){const _0x4ad802=a0_0x22a95e;let _0x52cf4e=TermsUtil[_0x4ad802(0x219)](ValueUtil['getParams'](this[_0x4ad802(0x223)],_0x4ad802(0x204)));return await MetaApi[_0x4ad802(0x217)](this['isElement'],_0x52cf4e,this['grist']);}async[a0_0x22a95e(0x1f7)](){}async['clear'](){const _0x568503=a0_0x22a95e;this[_0x568503(0x224)]&&(this[_0x568503(0x224)][_0x568503(0x1fb)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x22a95e(0x1f3)](){const _0x5cf217=a0_0x22a95e;let _0x3554a7=this['grist'][_0x5cf217(0x1f5)][_0x5cf217(0x1fd)];return _0x3554a7=JSON[_0x5cf217(0x1f8)](JSON[_0x5cf217(0x212)](_0x3554a7)),_0x3554a7[_0x5cf217(0x1fc)](_0x44de35=>{const _0x5bb0fc=_0x5cf217;Object[_0x5bb0fc(0x216)](_0x44de35)[_0x5bb0fc(0x1fc)](_0x2849fb=>{const _0x16f9d4=_0x5bb0fc;_0x2849fb[_0x16f9d4(0x206)]('__')&&delete _0x44de35[_0x2849fb];});}),_0x3554a7;}};
@@ -1 +1 @@
1
- function a0_0x7001(_0xabbb30,_0x155395){const _0x31fd48=a0_0x31fd();return a0_0x7001=function(_0x70013d,_0x51135f){_0x70013d=_0x70013d-0xf0;let _0x38fa6b=_0x31fd48[_0x70013d];return _0x38fa6b;},a0_0x7001(_0xabbb30,_0x155395);}function a0_0x31fd(){const _0x57d286=['getContextButtons','getBasicButtonHandler','parseBasicButtonConfigs','6132402gWADJU','useButtonImport','getCustomButtonContainerStyle','getButtonActionHandler','512tvwpAD','11220636IJmreJ','customButtonHandler','properties','isButtonExist','30jzMhcw','1662924Zrdljj','413915QGUAsl','gristButtonHandler','buttonConfig','10THMtUC','9401KiteTc','useButtonAdd','11zULLxy','useButtonExport','6849020bRWDaT','43717igXRAA','3rDYGaG','isPage'];a0_0x31fd=function(){return _0x57d286;};return a0_0x31fd();}const a0_0x1b947f=a0_0x7001;(function(_0x1d6399,_0x41c342){const _0x435aac=a0_0x7001,_0x25e68c=_0x1d6399();while(!![]){try{const _0x55bb9a=parseInt(_0x435aac(0xf7))/0x1*(parseInt(_0x435aac(0xf1))/0x2)+-parseInt(_0x435aac(0xf8))/0x3*(parseInt(_0x435aac(0x107))/0x4)+-parseInt(_0x435aac(0x108))/0x5*(parseInt(_0x435aac(0x106))/0x6)+parseInt(_0x435aac(0xf2))/0x7*(parseInt(_0x435aac(0x101))/0x8)+parseInt(_0x435aac(0xfd))/0x9+parseInt(_0x435aac(0xf6))/0xa*(-parseInt(_0x435aac(0xf4))/0xb)+parseInt(_0x435aac(0x102))/0xc;if(_0x55bb9a===_0x41c342)break;else _0x25e68c['push'](_0x25e68c['shift']());}catch(_0x4d1e5a){_0x25e68c['push'](_0x25e68c['shift']());}}}(a0_0x31fd,0x63394));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x2a9565=>class extends MetaServiceMixin(_0x2a9565){static get[a0_0x1b947f(0x104)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x1b947f(0xff)](){return MetaUiUtil['getCustomButtonContainerStyles']();}[a0_0x1b947f(0xfa)](){const _0x146b59=a0_0x1b947f;return MetaUiUtil[_0x146b59(0xfa)](this);}['getButtonContainer'](){const _0x37b475=a0_0x1b947f;return this[_0x37b475(0xf9)]?html``:MetaUiUtil['getButtonContainer'](this);}async[a0_0x1b947f(0xfb)](_0x46006d,_0x216dd5,_0x5c2400){const _0x13cf24=a0_0x1b947f;return await MetaUiUtil[_0x13cf24(0x100)](this,_0x46006d,_0x216dd5,_0x5c2400);}async[a0_0x1b947f(0x103)](_0x2765b6){await MetaUiUtil['customButtonHandler'](this,_0x2765b6);}async[a0_0x1b947f(0x109)](_0x57fc31,_0x37bb7c){const _0x311dd3=a0_0x1b947f;await MetaUiUtil[_0x311dd3(0x109)](this,_0x57fc31,_0x37bb7c);}[a0_0x1b947f(0xfc)](_0x1092b3){const _0x143de9=a0_0x1b947f;this['buttonConfig']=_0x1092b3['button'],this[_0x143de9(0xfe)]=MetaUiUtil['isButtonExist'](this['buttonConfig'],'import'),this[_0x143de9(0xf5)]=MetaUiUtil[_0x143de9(0x105)](this[_0x143de9(0xf0)],'export'),this[_0x143de9(0xf3)]=MetaUiUtil[_0x143de9(0x105)](this[_0x143de9(0xf0)],'add');}};
1
+ const a0_0x17c3d9=a0_0x4a6c;(function(_0xb180ba,_0x2680ab){const _0x133ff8=a0_0x4a6c,_0x5001a4=_0xb180ba();while(!![]){try{const _0x1ff65d=parseInt(_0x133ff8(0x162))/0x1*(parseInt(_0x133ff8(0x168))/0x2)+-parseInt(_0x133ff8(0x160))/0x3*(parseInt(_0x133ff8(0x153))/0x4)+parseInt(_0x133ff8(0x154))/0x5+parseInt(_0x133ff8(0x156))/0x6*(parseInt(_0x133ff8(0x167))/0x7)+parseInt(_0x133ff8(0x15e))/0x8*(-parseInt(_0x133ff8(0x163))/0x9)+-parseInt(_0x133ff8(0x15b))/0xa*(-parseInt(_0x133ff8(0x15c))/0xb)+-parseInt(_0x133ff8(0x159))/0xc;if(_0x1ff65d===_0x2680ab)break;else _0x5001a4['push'](_0x5001a4['shift']());}catch(_0xa59db){_0x5001a4['push'](_0x5001a4['shift']());}}}(a0_0x4c9e,0x4ed8c));import{html}from'lit';function a0_0x4a6c(_0x42d3b4,_0x2982bc){const _0x4c9e46=a0_0x4c9e();return a0_0x4a6c=function(_0x4a6c9e,_0x2f0843){_0x4a6c9e=_0x4a6c9e-0x151;let _0x4ef96a=_0x4c9e46[_0x4a6c9e];return _0x4ef96a;},a0_0x4a6c(_0x42d3b4,_0x2982bc);}import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';function a0_0x4c9e(){const _0x18fe3c=['690tUeLkR','20361DIKrtC','isButtonExist','297744ZlclSF','getContextButtons','3jdjKcp','import','5RgfZfg','36BBEaUn','useButtonImport','buttonConfig','add','14raahLh','184502ZZNMAU','useButtonExport','customButtonHandler','properties','export','getCustomButtonContainerStyles','2578372VLSfvR','2363950YLtHgR','getCustomButtonContainerStyle','584772liDinW','getButtonContainer','getButtonActionHandler','1683204uFGdxt','parseBasicButtonConfigs'];a0_0x4c9e=function(){return _0x18fe3c;};return a0_0x4c9e();}export const MetaButtonMixin=_0x17854b=>class extends MetaServiceMixin(_0x17854b){static get[a0_0x17c3d9(0x16b)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x17c3d9(0x155)](){const _0x334074=a0_0x17c3d9;return MetaUiUtil[_0x334074(0x152)]();}[a0_0x17c3d9(0x15f)](){const _0x9ca5d4=a0_0x17c3d9;return MetaUiUtil[_0x9ca5d4(0x15f)](this);}[a0_0x17c3d9(0x157)](){const _0x4ca22b=a0_0x17c3d9;return this['isPage']?html``:MetaUiUtil[_0x4ca22b(0x157)](this);}async['getBasicButtonHandler'](_0x28bfae,_0x2dadbd,_0x31513c){const _0x3d0496=a0_0x17c3d9;return await MetaUiUtil[_0x3d0496(0x158)](this,_0x28bfae,_0x2dadbd,_0x31513c);}async[a0_0x17c3d9(0x16a)](_0x3c208e){const _0x485857=a0_0x17c3d9;await MetaUiUtil[_0x485857(0x16a)](this,_0x3c208e);}async['gristButtonHandler'](_0x23bd58,_0x458778){await MetaUiUtil['gristButtonHandler'](this,_0x23bd58,_0x458778);}[a0_0x17c3d9(0x15a)](_0x41f37d){const _0x342ae2=a0_0x17c3d9;this[_0x342ae2(0x165)]=_0x41f37d['button'],this[_0x342ae2(0x164)]=MetaUiUtil[_0x342ae2(0x15d)](this[_0x342ae2(0x165)],_0x342ae2(0x161)),this[_0x342ae2(0x169)]=MetaUiUtil[_0x342ae2(0x15d)](this[_0x342ae2(0x165)],_0x342ae2(0x151)),this['useButtonAdd']=MetaUiUtil[_0x342ae2(0x15d)](this[_0x342ae2(0x165)],_0x342ae2(0x166));}};
@@ -1 +1 @@
1
- const a0_0x54e70f=a0_0x5dcb;(function(_0x31559b,_0x384dbb){const _0x303a5a=a0_0x5dcb,_0x3c3ea8=_0x31559b();while(!![]){try{const _0x594c85=parseInt(_0x303a5a(0x1f0))/0x1*(-parseInt(_0x303a5a(0x1ab))/0x2)+parseInt(_0x303a5a(0x1ec))/0x3*(parseInt(_0x303a5a(0x1c4))/0x4)+parseInt(_0x303a5a(0x1e7))/0x5*(parseInt(_0x303a5a(0x1a9))/0x6)+-parseInt(_0x303a5a(0x1c0))/0x7+-parseInt(_0x303a5a(0x1af))/0x8+parseInt(_0x303a5a(0x1b7))/0x9+parseInt(_0x303a5a(0x1ae))/0xa;if(_0x594c85===_0x384dbb)break;else _0x3c3ea8['push'](_0x3c3ea8['shift']());}catch(_0x585114){_0x3c3ea8['push'](_0x3c3ea8['shift']());}}}(a0_0x9a62,0xa9afd));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x9a62(){const _0x2ed0c5=['dispatchEvent','mandatory','renderRoot','confirm','Escape','entries','grid_column','parent_id','firstUpdated','formConfigSet','target','filter','styles','save','27996MmYprF','currentTarget','451054zQiJoM','isEmpty','__dirty__','53910yFbRzP','5915312AkUfQE','column','field-change','focus','after','is_activity','check-mandatory-field','__dirtyfields__','11256003XETIIj','formColumnConfig','getData','getContextObject','cuFlag','getBasicFormStyles','true','parseBasicFormConfigs','header','2469089XlXGuX','activityDataSet','before','__origin__','3764luJABx','isPage','call','dataSet','button','formRenderConfig','editable','text.NOTHING_CHANGED','removeGarbageData','forEach','type','isEquals','patchData','detail','pageInitialized','keydown','render','click','getBasicFormHtml','Enter','context','isNotEmpty','connectedCallback','currentData','findOne','getAndParseMenuMeta','updateMultiple','removeAttribute','code-input','name','dirtyData','startsWith','parseFormConfigSet','isElement','record','110JuQYbs','info','tText','clear','map','2085PiVcpC','text.check-mandatory','Esc','setAttribute','1CbbERA','validation','includes','editing','parseFormConfigs','addEventListener','properties'];a0_0x9a62=function(){return _0x2ed0c5;};return a0_0x9a62();}import{ValueUtil}from'../utils/value-util';import{UiUtil}from'../utils/ui-util';function a0_0x5dcb(_0x133464,_0x36e159){const _0x9a62b7=a0_0x9a62();return a0_0x5dcb=function(_0x5dcbe8,_0x3e625a){_0x5dcbe8=_0x5dcbe8-0x19e;let _0x4bc35f=_0x9a62b7[_0x5dcbe8];return _0x4bc35f;},a0_0x5dcb(_0x133464,_0x36e159);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x13015d=>class extends MetaButtonMixin(_0x13015d){static get[a0_0x54e70f(0x1a7)](){const _0x55bf84=a0_0x54e70f;return MetaApi[_0x55bf84(0x1bc)]();}static get[a0_0x54e70f(0x1f6)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x54e70f(0x1d8)](){const _0x90cb9a=a0_0x54e70f;return MetaUiUtil[_0x90cb9a(0x1ba)](this);}async[a0_0x54e70f(0x1da)](){const _0x480717=a0_0x54e70f;await this[_0x480717(0x1dd)](),this[_0x480717(0x1e5)]&&await this[_0x480717(0x1f4)](),this['activityDataSet']&&(this[_0x480717(0x1c7)]=this[_0x480717(0x1c1)]),!0x0!==this[_0x480717(0x1b4)]||this[_0x480717(0x1a2)]||(this[_0x480717(0x1a2)]='activity'),super[_0x480717(0x1da)]&&await super['connectedCallback'](),this[_0x480717(0x1e5)]&&await this['fetch'](),this[_0x480717(0x1f9)]['addEventListener'](_0x480717(0x1d3),_0x38137d=>{const _0x48827e=_0x480717;switch(_0x38137d['key']){case _0x48827e(0x1ee):case _0x48827e(0x19f):case _0x48827e(0x1d7):this[_0x48827e(0x1b2)](),this[_0x48827e(0x1aa)]&&this[_0x48827e(0x1aa)][_0x48827e(0x1df)](_0x48827e(0x1f3)),this['currentTarget']=null;}}),this[_0x480717(0x1f9)][_0x480717(0x1f5)](_0x480717(0x1d5),_0x588996=>{const _0x5e1c9c=_0x480717;_0x588996['stopPropagation']();let _0x3a556c=_0x588996[_0x5e1c9c(0x1a5)];if(this[_0x5e1c9c(0x1aa)]&&(this[_0x5e1c9c(0x1b2)](),this[_0x5e1c9c(0x1aa)][_0x5e1c9c(0x1df)](_0x5e1c9c(0x1f3))),'OX-GRID-FIELD'!==_0x3a556c['tagName']||!_0x3a556c[_0x5e1c9c(0x1b0)][_0x5e1c9c(0x1e6)][_0x5e1c9c(0x1ca)])return this[_0x5e1c9c(0x1b2)](),void(this['currentTarget']=null);this[_0x5e1c9c(0x1aa)]=_0x3a556c,_0x3a556c[_0x5e1c9c(0x1ef)](_0x5e1c9c(0x1f3),_0x5e1c9c(0x1bd));}),this[_0x480717(0x1f5)](_0x480717(0x1b1),_0x599e24=>{const _0x2a16cc=_0x480717;var {after:_0x26675f,before:_0x13a157,column:_0x2c318b,record:_0x43debf,row:_0x826573}=_0x599e24[_0x2a16cc(0x1d1)];if(ValueUtil[_0x2a16cc(0x1cf)](_0x26675f,_0x13a157))return;var _0x1a5ed1=_0x2c318b[_0x2a16cc(0x1f1)];if(_0x1a5ed1&&'function'==typeof _0x1a5ed1&&!_0x1a5ed1[_0x2a16cc(0x1c6)](this,_0x26675f,_0x13a157,_0x43debf,_0x2c318b))return;let _0x19b385=_0x2c318b[_0x2a16cc(0x1e1)];_0x43debf[_0x19b385]=_0x26675f,_0x43debf[_0x2a16cc(0x1b6)]=_0x43debf[_0x2a16cc(0x1b6)]||{},_0x43debf['__origin__']=_0x43debf[_0x2a16cc(0x1c3)]||{},_0x43debf[_0x2a16cc(0x1b6)][_0x19b385]={'before':_0x43debf[_0x2a16cc(0x1c3)][_0x19b385],'after':_0x43debf[_0x19b385]},ValueUtil[_0x2a16cc(0x1cf)](_0x43debf[_0x2a16cc(0x1b6)][_0x19b385][_0x2a16cc(0x1c2)],_0x43debf[_0x2a16cc(0x1b6)][_0x19b385][_0x2a16cc(0x1b3)])&&delete _0x43debf[_0x2a16cc(0x1b6)][_0x19b385],ValueUtil[_0x2a16cc(0x1d9)](_0x43debf[_0x2a16cc(0x1b6)])?_0x43debf[_0x2a16cc(0x1ad)]='M':_0x43debf[_0x2a16cc(0x1ad)]='',this['record']={..._0x43debf},this[_0x2a16cc(0x1f7)](new CustomEvent('form-field-change',{'bubbles':!0x0,'composed':!0x0,'detail':_0x599e24[_0x2a16cc(0x1d1)]}));});}async[a0_0x54e70f(0x1a3)](){super['firstUpdated']&&await super['firstUpdated']();}async[a0_0x54e70f(0x1d2)](){const _0x5aa94f=a0_0x54e70f;this[_0x5aa94f(0x1c5)]&&await this[_0x5aa94f(0x1f4)](),super[_0x5aa94f(0x1d2)]&&await super[_0x5aa94f(0x1d2)](),this[_0x5aa94f(0x1c5)]&&await this['fetch']();}[a0_0x54e70f(0x1d4)](){const _0x41be67=a0_0x54e70f;return MetaApi[_0x41be67(0x1d6)](this);}[a0_0x54e70f(0x1be)](_0x942fec){const _0xa610c3=a0_0x54e70f;this[_0xa610c3(0x1b8)]=_0x942fec[_0xa610c3(0x1a1)],this[_0xa610c3(0x1c9)]=_0x942fec['form'],_0x942fec[_0xa610c3(0x1c8)]=_0x942fec[_0xa610c3(0x1c8)][_0xa610c3(0x1a6)](_0x357de2=>_0xa610c3(0x1a8)==_0x357de2[_0xa610c3(0x1e1)]);}async[a0_0x54e70f(0x1f4)](){const _0x25dbb6=a0_0x54e70f;this[_0x25dbb6(0x1a4)]=await MetaApi[_0x25dbb6(0x1e4)](this);}get['orgData'](){const _0x2f5df8=a0_0x54e70f;return this[_0x2f5df8(0x1cc)](this[_0x2f5df8(0x1e6)][_0x2f5df8(0x1c3)]);}get[a0_0x54e70f(0x1e2)](){const _0xdb99be=a0_0x54e70f;if(ValueUtil[_0xdb99be(0x1ac)]((this[_0xdb99be(0x1e6)]||{})['__dirtyfields__']))return{};let _0x2b600f={};return Object['entries'](this[_0xdb99be(0x1e6)]['__dirtyfields__'])[_0xdb99be(0x1eb)](([_0xe35ff7,_0x23f950])=>{const _0x53e12e=_0xdb99be;0x0==_0xe35ff7[_0x53e12e(0x1e3)]('__')&&(_0x2b600f[_0xe35ff7]=_0x23f950[_0x53e12e(0x1b3)]);}),_0x2b600f;}get[a0_0x54e70f(0x1db)](){const _0x30bce4=a0_0x54e70f;return this[_0x30bce4(0x1cc)](this[_0x30bce4(0x1e6)]);}['removeGarbageData'](_0x4ba57a){const _0x56802c=a0_0x54e70f;let _0x348df2={};if(_0x4ba57a)return Object[_0x56802c(0x1a0)](_0x4ba57a)['map'](([_0x270a6e,_0x450062])=>{const _0x81dfde=_0x56802c;0x0==_0x270a6e[_0x81dfde(0x1e3)]('__')&&(_0x348df2[_0x270a6e]=_0x450062);}),_0x348df2;}get[a0_0x54e70f(0x1d0)](){const _0x435d66=a0_0x54e70f;let _0x3eeb17=this['dirtyData'],_0x1065d1=this[_0x435d66(0x1e6)],_0x53a05f=(this['formColumnConfig']||[])[_0x435d66(0x1a6)](_0x4121a4=>_0x435d66(0x1e0)===_0x4121a4[_0x435d66(0x1ce)])[_0x435d66(0x1eb)](_0x3fb201=>_0x3fb201[_0x435d66(0x1e1)]);if(!ValueUtil[_0x435d66(0x1ac)](_0x3eeb17))return ValueUtil[_0x435d66(0x1d9)](_0x1065d1['id'])?(_0x3eeb17['id']=_0x1065d1['id'],_0x3eeb17[_0x435d66(0x1bb)]='M'):_0x3eeb17[_0x435d66(0x1bb)]='+',Object['keys'](_0x3eeb17)[_0x435d66(0x1cd)](_0x5d7147=>{const _0x2fde06=_0x435d66;'object'==typeof _0x3eeb17[_0x5d7147]&&0x0==_0x53a05f[_0x2fde06(0x1f2)](_0x5d7147)&&(_0x3eeb17[_0x5d7147]={'id':_0x3eeb17[_0x5d7147]['id']});}),[_0x3eeb17];}async['fetch'](){const _0x2c788f=a0_0x54e70f;if(ValueUtil[_0x2c788f(0x1ac)](this[_0x2c788f(0x1a2)]))return;let _0x1c81ae=await this[_0x2c788f(0x1dc)](this[_0x2c788f(0x1a2)]);_0x1c81ae['__seq__']=0x1;let _0x230958={};Object['assign'](_0x230958,_0x1c81ae),_0x1c81ae[_0x2c788f(0x1c3)]=_0x230958,this[_0x2c788f(0x1e6)]={..._0x1c81ae};}async[a0_0x54e70f(0x1a8)](){const _0x57addc=a0_0x54e70f;let _0x1fb218=this['patchData'];if(ValueUtil[_0x57addc(0x1ac)](_0x1fb218))return void MetaApi['showAlertPopup']('title.info',_0x57addc(0x1cb));let _0x1f3631={};(this['formColumnConfig']||[])[_0x57addc(0x1a6)](_0xb4f1bb=>!0x0===_0xb4f1bb[_0x57addc(0x1f8)])[_0x57addc(0x1cd)](_0x406390=>{const _0x4a1f57=_0x57addc;_0x1f3631[_0x406390[_0x4a1f57(0x1e1)]]=_0x406390[_0x4a1f57(0x1bf)];});let _0x501e85=this[_0x57addc(0x1db)];for(let _0x4de29c in _0x1f3631)if(void 0x0===_0x501e85[_0x4de29c]||''==_0x501e85[_0x4de29c])return void UiUtil['showAlertPopup'](_0x57addc(0x1ed),TermsUtil[_0x57addc(0x1e9)](_0x57addc(0x1b5),{'x':TermsUtil['tLabel'](_0x1f3631[_0x4de29c])}),_0x57addc(0x1e8),_0x57addc(0x19e));let _0x56c9a7=await this[_0x57addc(0x1de)](_0x1fb218);return _0x56c9a7&&await this['fetch'](),_0x56c9a7;}async[a0_0x54e70f(0x1ea)](){const _0x2d39e7=a0_0x54e70f;this['record']&&(this[_0x2d39e7(0x1e6)]={});}[a0_0x54e70f(0x1b9)](){const _0x37513f=a0_0x54e70f;return this[_0x37513f(0x1db)]||{};}};
1
+ const a0_0x1470ca=a0_0x533b;(function(_0x3f29e3,_0x6f0641){const _0x431a73=a0_0x533b,_0x3ac442=_0x3f29e3();while(!![]){try{const _0x3545d9=parseInt(_0x431a73(0x1f7))/0x1+-parseInt(_0x431a73(0x21c))/0x2+-parseInt(_0x431a73(0x237))/0x3+-parseInt(_0x431a73(0x207))/0x4*(parseInt(_0x431a73(0x1f9))/0x5)+-parseInt(_0x431a73(0x22f))/0x6*(-parseInt(_0x431a73(0x224))/0x7)+-parseInt(_0x431a73(0x240))/0x8*(-parseInt(_0x431a73(0x23b))/0x9)+parseInt(_0x431a73(0x219))/0xa*(parseInt(_0x431a73(0x201))/0xb);if(_0x3545d9===_0x6f0641)break;else _0x3ac442['push'](_0x3ac442['shift']());}catch(_0xd29f2d){_0x3ac442['push'](_0x3ac442['shift']());}}}(a0_0x5580,0x6c130));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x533b(_0x5113fc,_0x2acc83){const _0x5580bf=a0_0x5580();return a0_0x533b=function(_0x533bbf,_0xa4c120){_0x533bbf=_0x533bbf-0x1ee;let _0x17672e=_0x5580bf[_0x533bbf];return _0x17672e;},a0_0x533b(_0x5113fc,_0x2acc83);}import{UiUtil}from'../utils/ui-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x1866fe=>class extends MetaButtonMixin(_0x1866fe){static get['styles'](){return MetaApi['getBasicFormStyles']();}static get['properties'](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get['context'](){return MetaUiUtil['getContextObject'](this);}async[a0_0x1470ca(0x241)](){const _0xab972c=a0_0x1470ca;await this[_0xab972c(0x21b)](),this[_0xab972c(0x23a)]&&await this['parseFormConfigs'](),this[_0xab972c(0x23f)]&&(this[_0xab972c(0x21d)]=this[_0xab972c(0x23f)]),!0x0!==this[_0xab972c(0x232)]||this[_0xab972c(0x211)]||(this['parent_id']=_0xab972c(0x21e)),super[_0xab972c(0x241)]&&await super[_0xab972c(0x241)](),this[_0xab972c(0x23a)]&&await this[_0xab972c(0x218)](),this[_0xab972c(0x20c)][_0xab972c(0x221)]('keydown',_0x1e66c6=>{const _0xcc2e3d=_0xab972c;switch(_0x1e66c6['key']){case'Esc':case _0xcc2e3d(0x22a):case _0xcc2e3d(0x20f):this['focus'](),this[_0xcc2e3d(0x239)]&&this[_0xcc2e3d(0x239)][_0xcc2e3d(0x23c)](_0xcc2e3d(0x210)),this[_0xcc2e3d(0x239)]=null;}}),this[_0xab972c(0x20c)][_0xab972c(0x221)](_0xab972c(0x22d),_0x2a88fb=>{const _0x24aaeb=_0xab972c;_0x2a88fb[_0x24aaeb(0x228)]();let _0x46392=_0x2a88fb[_0x24aaeb(0x220)];if(this[_0x24aaeb(0x239)]&&(this[_0x24aaeb(0x1f3)](),this[_0x24aaeb(0x239)][_0x24aaeb(0x23c)](_0x24aaeb(0x210))),_0x24aaeb(0x1f6)!==_0x46392[_0x24aaeb(0x202)]||!_0x46392[_0x24aaeb(0x200)][_0x24aaeb(0x1fc)]['editable'])return this['focus'](),void(this[_0x24aaeb(0x239)]=null);this[_0x24aaeb(0x239)]=_0x46392,_0x46392[_0x24aaeb(0x23d)](_0x24aaeb(0x210),_0x24aaeb(0x234));}),this[_0xab972c(0x221)](_0xab972c(0x225),_0x105050=>{const _0x29aed=_0xab972c;var {after:_0x313a5c,before:_0x342947,column:_0x31b0f9,record:_0x1abdb4,row:_0x74f1ad}=_0x105050[_0x29aed(0x20e)];if(ValueUtil[_0x29aed(0x209)](_0x313a5c,_0x342947))return;var _0x3e2639=_0x31b0f9[_0x29aed(0x22b)];if(_0x3e2639&&'function'==typeof _0x3e2639&&!_0x3e2639[_0x29aed(0x20b)](this,_0x313a5c,_0x342947,_0x1abdb4,_0x31b0f9))return;let _0x199c0d=_0x31b0f9['name'];_0x1abdb4[_0x199c0d]=_0x313a5c,_0x1abdb4['__dirtyfields__']=_0x1abdb4['__dirtyfields__']||{},_0x1abdb4[_0x29aed(0x1ff)]=_0x1abdb4[_0x29aed(0x1ff)]||{},_0x1abdb4['__dirtyfields__'][_0x199c0d]={'before':_0x1abdb4[_0x29aed(0x1ff)][_0x199c0d],'after':_0x1abdb4[_0x199c0d]},ValueUtil[_0x29aed(0x209)](_0x1abdb4[_0x29aed(0x235)][_0x199c0d][_0x29aed(0x231)],_0x1abdb4[_0x29aed(0x235)][_0x199c0d]['after'])&&delete _0x1abdb4['__dirtyfields__'][_0x199c0d],ValueUtil[_0x29aed(0x226)](_0x1abdb4[_0x29aed(0x235)])?_0x1abdb4[_0x29aed(0x230)]='M':_0x1abdb4['__dirty__']='',this['record']={..._0x1abdb4},this['dispatchEvent'](new CustomEvent(_0x29aed(0x217),{'bubbles':!0x0,'composed':!0x0,'detail':_0x105050[_0x29aed(0x20e)]}));});}async[a0_0x1470ca(0x223)](){const _0x407a09=a0_0x1470ca;super[_0x407a09(0x223)]&&await super[_0x407a09(0x223)]();}async['pageInitialized'](){const _0x32bc38=a0_0x1470ca;this[_0x32bc38(0x204)]&&await this['parseFormConfigs'](),super[_0x32bc38(0x222)]&&await super['pageInitialized'](),this[_0x32bc38(0x204)]&&await this[_0x32bc38(0x218)]();}[a0_0x1470ca(0x20a)](){const _0x36a5c7=a0_0x1470ca;return MetaApi[_0x36a5c7(0x1fd)](this);}[a0_0x1470ca(0x208)](_0x2ffbf5){const _0x2d82f5=a0_0x1470ca;this[_0x2d82f5(0x22c)]=_0x2ffbf5[_0x2d82f5(0x22e)],this[_0x2d82f5(0x1ef)]=_0x2ffbf5['form'],_0x2ffbf5[_0x2d82f5(0x205)]=_0x2ffbf5[_0x2d82f5(0x205)][_0x2d82f5(0x203)](_0x381e40=>'save'==_0x381e40[_0x2d82f5(0x229)]);}async[a0_0x1470ca(0x216)](){const _0x4d2f3c=a0_0x1470ca;this[_0x4d2f3c(0x238)]=await MetaApi['parseFormConfigSet'](this);}get['orgData'](){const _0x11d029=a0_0x1470ca;return this[_0x11d029(0x245)](this[_0x11d029(0x1fc)][_0x11d029(0x1ff)]);}get[a0_0x1470ca(0x213)](){const _0x4e8503=a0_0x1470ca;if(ValueUtil[_0x4e8503(0x1fb)]((this[_0x4e8503(0x1fc)]||{})[_0x4e8503(0x235)]))return{};let _0x2b079e={};return Object[_0x4e8503(0x23e)](this[_0x4e8503(0x1fc)][_0x4e8503(0x235)])[_0x4e8503(0x1fe)](([_0x9143e8,_0xe27a5b])=>{const _0x136634=_0x4e8503;0x0==_0x9143e8[_0x136634(0x1f2)]('__')&&(_0x2b079e[_0x9143e8]=_0xe27a5b['after']);}),_0x2b079e;}get[a0_0x1470ca(0x1f5)](){const _0x38a2e9=a0_0x1470ca;return this[_0x38a2e9(0x245)](this[_0x38a2e9(0x1fc)]);}[a0_0x1470ca(0x245)](_0x34bde6){const _0xe67a30=a0_0x1470ca;let _0x2a6c00={};if(_0x34bde6)return Object['entries'](_0x34bde6)[_0xe67a30(0x1fe)](([_0x1b4aeb,_0x4cf109])=>{const _0x5b6b3a=_0xe67a30;0x0==_0x1b4aeb[_0x5b6b3a(0x1f2)]('__')&&(_0x2a6c00[_0x1b4aeb]=_0x4cf109);}),_0x2a6c00;}get[a0_0x1470ca(0x1f4)](){const _0x47c1ae=a0_0x1470ca;let _0x387eaa=this['dirtyData'],_0x3859e7=this[_0x47c1ae(0x1fc)],_0x10b904=(this[_0x47c1ae(0x22c)]||[])[_0x47c1ae(0x203)](_0xa9145d=>_0x47c1ae(0x1f1)===_0xa9145d[_0x47c1ae(0x227)])[_0x47c1ae(0x1fe)](_0x38c454=>_0x38c454[_0x47c1ae(0x229)]);if(!ValueUtil[_0x47c1ae(0x1fb)](_0x387eaa))return ValueUtil[_0x47c1ae(0x226)](_0x3859e7['id'])?(_0x387eaa['id']=_0x3859e7['id'],_0x387eaa[_0x47c1ae(0x21f)]='M'):_0x387eaa[_0x47c1ae(0x21f)]='+',Object[_0x47c1ae(0x242)](_0x387eaa)['forEach'](_0xc3e27a=>{const _0xb3e78d=_0x47c1ae;_0xb3e78d(0x215)==typeof _0x387eaa[_0xc3e27a]&&0x0==_0x10b904['includes'](_0xc3e27a)&&(_0x387eaa[_0xc3e27a]={'id':_0x387eaa[_0xc3e27a]['id']});}),[_0x387eaa];}async['fetch'](){const _0x3059a8=a0_0x1470ca;if(ValueUtil[_0x3059a8(0x1fb)](this['parent_id']))return;let _0x54ddf7=await this['findOne'](this[_0x3059a8(0x211)]);_0x54ddf7[_0x3059a8(0x1f8)]=0x1;let _0x7f826={};Object['assign'](_0x7f826,_0x54ddf7),_0x54ddf7[_0x3059a8(0x1ff)]=_0x7f826,this[_0x3059a8(0x1fc)]={..._0x54ddf7};}async['save'](){const _0x39cf2a=a0_0x1470ca;let _0x29be40=this[_0x39cf2a(0x1f4)];if(ValueUtil[_0x39cf2a(0x1fb)](_0x29be40))return void MetaApi[_0x39cf2a(0x1f0)](_0x39cf2a(0x244),_0x39cf2a(0x21a));let _0x3cdf48={};(this[_0x39cf2a(0x22c)]||[])[_0x39cf2a(0x203)](_0x2cafcf=>!0x0===_0x2cafcf[_0x39cf2a(0x214)])[_0x39cf2a(0x243)](_0x300ec4=>{const _0x2ea6dd=_0x39cf2a;_0x3cdf48[_0x300ec4[_0x2ea6dd(0x229)]]=_0x300ec4[_0x2ea6dd(0x20d)];});let _0x22516b=this[_0x39cf2a(0x1f5)];for(let _0x51dd9f in _0x3cdf48)if(void 0x0===_0x22516b[_0x51dd9f]||''==_0x22516b[_0x51dd9f])return void UiUtil[_0x39cf2a(0x1f0)](_0x39cf2a(0x1fa),TermsUtil[_0x39cf2a(0x233)]('check-mandatory-field',{'x':TermsUtil[_0x39cf2a(0x236)](_0x3cdf48[_0x51dd9f])}),_0x39cf2a(0x206),_0x39cf2a(0x212));let _0x50aa2c=await this['updateMultiple'](_0x29be40);return _0x50aa2c&&await this[_0x39cf2a(0x218)](),_0x50aa2c;}async['clear'](){const _0x1e8e5a=a0_0x1470ca;this[_0x1e8e5a(0x1fc)]&&(this['record']={});}[a0_0x1470ca(0x1ee)](){const _0x38bf3d=a0_0x1470ca;return this[_0x38bf3d(0x1f5)]||{};}};function a0_0x5580(){const _0x4c67b6=['render','call','renderRoot','header','detail','Enter','editing','parent_id','confirm','dirtyData','mandatory','object','parseFormConfigs','form-field-change','fetch','50OmMXvB','text.NOTHING_CHANGED','getAndParseMenuMeta','753918hhHPfr','dataSet','activity','cuFlag','target','addEventListener','pageInitialized','firstUpdated','28VPLpjD','field-change','isNotEmpty','type','stopPropagation','name','Escape','validation','formColumnConfig','click','grid_column','1005258xOqnVI','__dirty__','before','is_activity','tText','true','__dirtyfields__','tLabel','1548615imoZHd','formConfigSet','currentTarget','isElement','9YdVFXD','removeAttribute','setAttribute','entries','activityDataSet','342344lShsEH','connectedCallback','keys','forEach','title.info','removeGarbageData','getData','formRenderConfig','showAlertPopup','code-input','startsWith','focus','patchData','currentData','OX-GRID-FIELD','738490LMWlyn','__seq__','384365dflzpT','text.check-mandatory','isEmpty','record','getBasicFormHtml','map','__origin__','column','1098603msTOnE','tagName','filter','isPage','button','info','32ZWYuAV','parseBasicFormConfigs','isEquals'];a0_0x5580=function(){return _0x4c67b6;};return a0_0x5580();}
@@ -1 +1 @@
1
- const a0_0x5640a1=a0_0x205a;function a0_0x205a(_0x4d64c8,_0x421462){const _0x17e551=a0_0x17e5();return a0_0x205a=function(_0x205aea,_0x2aa043){_0x205aea=_0x205aea-0x170;let _0x144012=_0x17e551[_0x205aea];return _0x144012;},a0_0x205a(_0x4d64c8,_0x421462);}(function(_0x47664a,_0x1e04f1){const _0xdfc6b4=a0_0x205a,_0x21069c=_0x47664a();while(!![]){try{const _0x5d2dd0=-parseInt(_0xdfc6b4(0x181))/0x1+parseInt(_0xdfc6b4(0x1a1))/0x2*(parseInt(_0xdfc6b4(0x1ba))/0x3)+parseInt(_0xdfc6b4(0x199))/0x4*(parseInt(_0xdfc6b4(0x1ab))/0x5)+-parseInt(_0xdfc6b4(0x1ae))/0x6+-parseInt(_0xdfc6b4(0x197))/0x7*(parseInt(_0xdfc6b4(0x187))/0x8)+parseInt(_0xdfc6b4(0x1a9))/0x9*(parseInt(_0xdfc6b4(0x195))/0xa)+parseInt(_0xdfc6b4(0x19a))/0xb*(parseInt(_0xdfc6b4(0x1b3))/0xc);if(_0x5d2dd0===_0x1e04f1)break;else _0x21069c['push'](_0x21069c['shift']());}catch(_0x1c9936){_0x21069c['push'](_0x21069c['shift']());}}}(a0_0x17e5,0x92924));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x17e5(){const _0x144c92=['grid_column','fetch','meta-tab-element','getBasicGristTabStyles','header','getContextObject','shadowRoot','863083vnGkpG','grist','gridEmphasized','renderRoot','tTitle','stringify','24zmWhdq','actions','ox-filters-form-base','querySelector','exportableData','deleteByIds','keys','firstUpdated','parse','record','properties','menuInfo','startsWith','styles','4020kwMvoO','#detail','1593116QPFNTI','beforeFetch','180508WSpSZa','319rRzUZH','push','parseGridConfigSet','options','parseGristConfigs','gridConfig','useMasterFilterForm','395638yqTYBV','delete','activityDataSet','isElement','render','value','updateMultiple','main','5823IkehqS','detailElement','70WrBMPX','getData','gristId','2807358ADciNL','operator','searchConfig','search','searchFields','467076RxDiVx','getParams','gristConfigSet','pageInitialized','filterForm','import','map','9tRREgQ','filterFormId','name','connectedCallback','importable','context','searchFieldValues','grid','isPage','filter','clear','findOne','exportable','type','useFilterForm','find'];a0_0x17e5=function(){return _0x144c92;};return a0_0x17e5();}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x1cf4c8=>class extends MetaButtonMixin(_0x1cf4c8){static get[a0_0x5640a1(0x194)](){const _0x23c72c=a0_0x5640a1;return MetaApi[_0x23c72c(0x17d)]();}static get[a0_0x5640a1(0x191)](){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_0x5640a1(0x182)](){const _0x41d55f=a0_0x5640a1;return this[_0x41d55f(0x184)]['querySelector'](this[_0x41d55f(0x1ad)]);}get[a0_0x5640a1(0x1b7)](){const _0x26fb54=a0_0x5640a1;return this[_0x26fb54(0x180)]?.[_0x26fb54(0x18a)](this[_0x26fb54(0x1bb)]);}get[a0_0x5640a1(0x1aa)](){const _0x4a9ba9=a0_0x5640a1;return this[_0x4a9ba9(0x180)]['querySelector'](_0x4a9ba9(0x196));}get[a0_0x5640a1(0x1bf)](){const _0x429677=a0_0x5640a1;let _0x29b925=MetaUiUtil[_0x429677(0x17f)](this);return _0x29b925[_0x429677(0x188)]&&delete _0x29b925[_0x429677(0x188)],_0x29b925[_0x429677(0x176)]&&delete _0x29b925[_0x429677(0x176)],_0x29b925[_0x429677(0x1be)]&&delete _0x29b925['importable'],_0x29b925;}async[a0_0x5640a1(0x1bd)](){const _0x299be6=a0_0x5640a1;this[_0x299be6(0x1ad)]='ox-grist',this['filterFormId']=_0x299be6(0x189),await this['getAndParseMenuMeta'](),this[_0x299be6(0x1a4)]&&await this[_0x299be6(0x19e)](),this[_0x299be6(0x1a3)]&&(this['dataSet']=(this['activityDataSet']||{})[_0x299be6(0x1a8)]),super[_0x299be6(0x1bd)]&&await super[_0x299be6(0x1bd)]();}async[a0_0x5640a1(0x18e)](){const _0x76d029=a0_0x5640a1;super[_0x76d029(0x18e)]&&await super['firstUpdated']();}async[a0_0x5640a1(0x1b6)](){const _0x4b79cf=a0_0x5640a1;this[_0x4b79cf(0x172)]&&await this[_0x4b79cf(0x19e)](),super[_0x4b79cf(0x1b6)]&&await super[_0x4b79cf(0x1b6)]();}[a0_0x5640a1(0x1a5)](){return MetaApi['getGristTabHtml'](this);}['parseBasicGridConfigs'](_0x2f47c6){const _0x3622b2=a0_0x5640a1;this[_0x3622b2(0x19f)]=_0x2f47c6[_0x3622b2(0x171)],this['gridColumnConfig']=_0x2f47c6[_0x3622b2(0x17a)],this[_0x3622b2(0x1b0)]=_0x2f47c6['search'],this[_0x3622b2(0x183)]=_0x2f47c6['gridEmphasized'];}async[a0_0x5640a1(0x19e)](){const _0x6e0c8a=a0_0x5640a1;this['gristConfigSet']=await MetaApi[_0x6e0c8a(0x19c)](this),this[_0x6e0c8a(0x1a0)]=!0x0===this[_0x6e0c8a(0x178)],this[_0x6e0c8a(0x178)]=!0x1,this[_0x6e0c8a(0x170)]=[],this[_0x6e0c8a(0x1b2)]=this[_0x6e0c8a(0x1b5)]['columns'][_0x6e0c8a(0x173)](_0x5de5e9=>_0x5de5e9[_0x6e0c8a(0x173)])[_0x6e0c8a(0x1b9)](_0x1cf3bb=>{const _0x56ebaa=_0x6e0c8a;let _0x474ace={'name':_0x1cf3bb[_0x56ebaa(0x1bc)],'type':_0x56ebaa(0x1b1)===_0x1cf3bb[_0x56ebaa(0x173)][_0x56ebaa(0x1af)]?_0x56ebaa(0x1b1):_0x1cf3bb[_0x56ebaa(0x177)],'label':_0x1cf3bb[_0x56ebaa(0x17e)],'operator':_0x1cf3bb['filter'][_0x56ebaa(0x1af)]?_0x1cf3bb[_0x56ebaa(0x173)][_0x56ebaa(0x1af)]:'eq'};return _0x1cf3bb[_0x56ebaa(0x173)][_0x56ebaa(0x19d)]&&(_0x474ace[_0x56ebaa(0x19d)]=_0x1cf3bb[_0x56ebaa(0x173)][_0x56ebaa(0x19d)]),_0x1cf3bb[_0x56ebaa(0x190)][_0x56ebaa(0x19d)]&&(_0x474ace[_0x56ebaa(0x19d)]=_0x1cf3bb[_0x56ebaa(0x190)][_0x56ebaa(0x19d)]),_0x1cf3bb[_0x56ebaa(0x173)][_0x56ebaa(0x1a6)]&&this['searchFieldValues'][_0x56ebaa(0x19b)]({'name':_0x474ace[_0x56ebaa(0x1bc)],'operator':_0x474ace[_0x56ebaa(0x1af)],'value':_0x1cf3bb[_0x56ebaa(0x173)][_0x56ebaa(0x1a6)]}),delete _0x1cf3bb[_0x56ebaa(0x173)],_0x474ace;});}async[a0_0x5640a1(0x17b)](){const _0x570907=a0_0x5640a1;await this[_0x570907(0x182)][_0x570907(0x17b)]();}async[a0_0x5640a1(0x198)]({page:_0x43219a=0x0,limit:_0x225f60=0x0,sortings:_0x30cc68=[],filters:_0x1d0b43=[]}){const _0x4f4ac5=a0_0x5640a1;let _0x36cfe1=this['renderRoot']['querySelector'](_0x4f4ac5(0x17c));return await _0x36cfe1[_0x4f4ac5(0x174)](),!0x0;}async['save'](){const _0x51cf1e=a0_0x5640a1;let _0x4ce3d9=MetaApi['patchesForUpdateMultiple'](this[_0x51cf1e(0x182)]);!!ValueUtil['isNotEmpty'](_0x4ce3d9)&&await this[_0x51cf1e(0x1a7)](_0x4ce3d9)&&this['fetch']();}async[a0_0x5640a1(0x179)](){const _0x33812d=a0_0x5640a1;let _0x50e5ee=MetaApi['getSelectedIdList'](this[_0x33812d(0x182)],!0x0);return ValueUtil['isNotEmpty'](_0x50e5ee)?await this[_0x33812d(0x175)](_0x50e5ee[0x0]):{};}async[a0_0x5640a1(0x1a2)](){const _0x1a63c8=a0_0x5640a1;let _0x29c8d7=MetaApi['getSelectedIdList'](this[_0x1a63c8(0x182)],!0x0);!!ValueUtil['isNotEmpty'](_0x29c8d7)&&await this[_0x1a63c8(0x18c)](_0x29c8d7)&&this[_0x1a63c8(0x17b)]();}async['export'](){const _0x507026=a0_0x5640a1;let _0x4b8a9f=TermsUtil[_0x507026(0x185)](ValueUtil[_0x507026(0x1b4)](this[_0x507026(0x192)],'title'));return await MetaApi[_0x507026(0x18b)](this['isElement'],_0x4b8a9f,this[_0x507026(0x182)]);}async[a0_0x5640a1(0x1b8)](){}[a0_0x5640a1(0x1ac)](){const _0x2d6831=a0_0x5640a1;let _0x11f1c5=this[_0x2d6831(0x182)]['___data']['records'];return _0x11f1c5=JSON[_0x2d6831(0x18f)](JSON[_0x2d6831(0x186)](_0x11f1c5)),_0x11f1c5['forEach'](_0x3560f2=>{const _0x5a4e1f=_0x2d6831;Object[_0x5a4e1f(0x18d)](_0x3560f2)['forEach'](_0x488a55=>{const _0x5f0203=_0x5a4e1f;_0x488a55[_0x5f0203(0x193)]('__')&&delete _0x3560f2[_0x488a55];});}),{'main':_0x11f1c5,'detail':this[_0x2d6831(0x184)]['querySelector']('meta-tab-element')[_0x2d6831(0x1ac)]()};}};
1
+ const a0_0x1e0294=a0_0x5c0c;(function(_0x152e8f,_0x48be93){const _0x51c921=a0_0x5c0c,_0x120fa6=_0x152e8f();while(!![]){try{const _0x6b8b47=parseInt(_0x51c921(0x1ac))/0x1*(parseInt(_0x51c921(0x187))/0x2)+-parseInt(_0x51c921(0x18b))/0x3+-parseInt(_0x51c921(0x1c8))/0x4+-parseInt(_0x51c921(0x186))/0x5*(-parseInt(_0x51c921(0x1bd))/0x6)+-parseInt(_0x51c921(0x19f))/0x7+parseInt(_0x51c921(0x190))/0x8*(parseInt(_0x51c921(0x1a9))/0x9)+parseInt(_0x51c921(0x1c0))/0xa;if(_0x6b8b47===_0x48be93)break;else _0x120fa6['push'](_0x120fa6['shift']());}catch(_0x5885fe){_0x120fa6['push'](_0x120fa6['shift']());}}}(a0_0x368c,0xbf4a1));function a0_0x5c0c(_0x38e09f,_0x5089d1){const _0x368c54=a0_0x368c();return a0_0x5c0c=function(_0x5c0cbb,_0x32d3fc){_0x5c0cbb=_0x5c0cbb-0x17e;let _0x389ac5=_0x368c54[_0x5c0cbb];return _0x389ac5;},a0_0x5c0c(_0x38e09f,_0x5089d1);}import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x368c(){const _0x21bd4c=['export','name','gridColumnConfig','styles','isPage','searchFieldValues','startsWith','beforeFetch','6syIeKN','save','isNotEmpty','3603000EvzbpM','patchesForUpdateMultiple','clear','querySelector','gristId','gristConfigSet','activityDataSet','context','1137564ucIpIn','exportable','getSelectedIdList','detailElement','import','header','title','gridEmphasized','filterFormId','isElement','6546515oWchWF','6aWtdEY','filter','properties','renderRoot','4036389wXSPJz','getAndParseMenuMeta','find','render','connectedCallback','407656awggXD','getBasicGristTabStyles','___data','findOne','forEach','keys','main','dataSet','menuInfo','ox-filters-form-base','type','push','parseGristConfigs','parseBasicGridConfigs','firstUpdated','6730808mSyRIj','deleteByIds','meta-tab-element','useFilterForm','search','exportableData','parseGridConfigSet','options','grist','tTitle','171OZXCjs','record','value','245711mnBDug','importable','map','gridConfig','shadowRoot','fetch','actions','operator','getContextObject'];a0_0x368c=function(){return _0x21bd4c;};return a0_0x368c();}import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x48b74a=>class extends MetaButtonMixin(_0x48b74a){static get[a0_0x1e0294(0x1b8)](){const _0xc6f33f=a0_0x1e0294;return MetaApi[_0xc6f33f(0x191)]();}static get[a0_0x1e0294(0x189)](){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_0x1e0294(0x1a7)](){const _0xa3204a=a0_0x1e0294;return this[_0xa3204a(0x18a)][_0xa3204a(0x1c3)](this[_0xa3204a(0x1c4)]);}get['filterForm'](){const _0x2edf55=a0_0x1e0294;return this[_0x2edf55(0x1b0)]?.[_0x2edf55(0x1c3)](this['filterFormId']);}get[a0_0x1e0294(0x17f)](){const _0x5741ed=a0_0x1e0294;return this['shadowRoot'][_0x5741ed(0x1c3)]('#detail');}get[a0_0x1e0294(0x1c7)](){const _0x2456ea=a0_0x1e0294;let _0x31fd40=MetaUiUtil[_0x2456ea(0x1b4)](this);return _0x31fd40[_0x2456ea(0x1b2)]&&delete _0x31fd40['actions'],_0x31fd40[_0x2456ea(0x1c9)]&&delete _0x31fd40[_0x2456ea(0x1c9)],_0x31fd40[_0x2456ea(0x1ad)]&&delete _0x31fd40[_0x2456ea(0x1ad)],_0x31fd40;}async['connectedCallback'](){const _0x17d806=a0_0x1e0294;this[_0x17d806(0x1c4)]='ox-grist',this[_0x17d806(0x184)]=_0x17d806(0x199),await this[_0x17d806(0x18c)](),this['isElement']&&await this[_0x17d806(0x19c)](),this[_0x17d806(0x1c6)]&&(this[_0x17d806(0x197)]=(this[_0x17d806(0x1c6)]||{})[_0x17d806(0x196)]),super[_0x17d806(0x18f)]&&await super['connectedCallback']();}async[a0_0x1e0294(0x19e)](){const _0x2692d8=a0_0x1e0294;super[_0x2692d8(0x19e)]&&await super[_0x2692d8(0x19e)]();}async['pageInitialized'](){const _0x10ba29=a0_0x1e0294;this[_0x10ba29(0x1b9)]&&await this[_0x10ba29(0x19c)](),super['pageInitialized']&&await super['pageInitialized']();}[a0_0x1e0294(0x18e)](){return MetaApi['getGristTabHtml'](this);}[a0_0x1e0294(0x19d)](_0x268599){const _0x4f87ef=a0_0x1e0294;this[_0x4f87ef(0x1af)]=_0x268599['grid'],this[_0x4f87ef(0x1b7)]=_0x268599['grid_column'],this['searchConfig']=_0x268599[_0x4f87ef(0x1a3)],this[_0x4f87ef(0x183)]=_0x268599[_0x4f87ef(0x183)];}async[a0_0x1e0294(0x19c)](){const _0x455e70=a0_0x1e0294;this[_0x455e70(0x1c5)]=await MetaApi[_0x455e70(0x1a5)](this),this['useMasterFilterForm']=!0x0===this[_0x455e70(0x1a2)],this[_0x455e70(0x1a2)]=!0x1,this['searchFieldValues']=[],this['searchFields']=this[_0x455e70(0x1c5)]['columns'][_0x455e70(0x188)](_0x3596aa=>_0x3596aa[_0x455e70(0x188)])[_0x455e70(0x1ae)](_0x51843c=>{const _0x4cc295=_0x455e70;let _0x1afb85={'name':_0x51843c[_0x4cc295(0x1b6)],'type':_0x4cc295(0x1a3)===_0x51843c[_0x4cc295(0x188)][_0x4cc295(0x1b3)]?_0x4cc295(0x1a3):_0x51843c[_0x4cc295(0x19a)],'label':_0x51843c[_0x4cc295(0x181)],'operator':_0x51843c[_0x4cc295(0x188)][_0x4cc295(0x1b3)]?_0x51843c[_0x4cc295(0x188)]['operator']:'eq'};return _0x51843c[_0x4cc295(0x188)]['options']&&(_0x1afb85[_0x4cc295(0x1a6)]=_0x51843c[_0x4cc295(0x188)][_0x4cc295(0x1a6)]),_0x51843c[_0x4cc295(0x1aa)][_0x4cc295(0x1a6)]&&(_0x1afb85['options']=_0x51843c['record']['options']),_0x51843c[_0x4cc295(0x188)][_0x4cc295(0x1ab)]&&this[_0x4cc295(0x1ba)][_0x4cc295(0x19b)]({'name':_0x1afb85['name'],'operator':_0x1afb85[_0x4cc295(0x1b3)],'value':_0x51843c[_0x4cc295(0x188)][_0x4cc295(0x1ab)]}),delete _0x51843c[_0x4cc295(0x188)],_0x1afb85;});}async[a0_0x1e0294(0x1b1)](){const _0x49942d=a0_0x1e0294;await this[_0x49942d(0x1a7)][_0x49942d(0x1b1)]();}async[a0_0x1e0294(0x1bc)]({page:_0x51a24e=0x0,limit:_0x13a81d=0x0,sortings:_0x5b0248=[],filters:_0x2a82d8=[]}){const _0x1bd418=a0_0x1e0294;let _0x5f4bb7=this[_0x1bd418(0x18a)][_0x1bd418(0x1c3)](_0x1bd418(0x1a1));return await _0x5f4bb7[_0x1bd418(0x1c2)](),!0x0;}async[a0_0x1e0294(0x1be)](){const _0x12915e=a0_0x1e0294;let _0x1c6c5b=MetaApi[_0x12915e(0x1c1)](this[_0x12915e(0x1a7)]);!!ValueUtil[_0x12915e(0x1bf)](_0x1c6c5b)&&await this['updateMultiple'](_0x1c6c5b)&&this['fetch']();}async[a0_0x1e0294(0x18d)](){const _0x25000b=a0_0x1e0294;let _0x530dc2=MetaApi[_0x25000b(0x17e)](this[_0x25000b(0x1a7)],!0x0);return ValueUtil[_0x25000b(0x1bf)](_0x530dc2)?await this[_0x25000b(0x193)](_0x530dc2[0x0]):{};}async['delete'](){const _0x8b08b=a0_0x1e0294;let _0x26c4c0=MetaApi[_0x8b08b(0x17e)](this[_0x8b08b(0x1a7)],!0x0);!!ValueUtil[_0x8b08b(0x1bf)](_0x26c4c0)&&await this[_0x8b08b(0x1a0)](_0x26c4c0)&&this[_0x8b08b(0x1b1)]();}async[a0_0x1e0294(0x1b5)](){const _0x2a5b42=a0_0x1e0294;let _0x954ce2=TermsUtil[_0x2a5b42(0x1a8)](ValueUtil['getParams'](this[_0x2a5b42(0x198)],_0x2a5b42(0x182)));return await MetaApi[_0x2a5b42(0x1a4)](this[_0x2a5b42(0x185)],_0x954ce2,this[_0x2a5b42(0x1a7)]);}async[a0_0x1e0294(0x180)](){}['getData'](){const _0x58fc77=a0_0x1e0294;let _0x4f8b33=this[_0x58fc77(0x1a7)][_0x58fc77(0x192)]['records'];return _0x4f8b33=JSON['parse'](JSON['stringify'](_0x4f8b33)),_0x4f8b33['forEach'](_0x394caf=>{const _0x53e237=_0x58fc77;Object[_0x53e237(0x195)](_0x394caf)[_0x53e237(0x194)](_0x51af5d=>{const _0x26c0e7=_0x53e237;_0x51af5d[_0x26c0e7(0x1bb)]('__')&&delete _0x394caf[_0x51af5d];});}),{'main':_0x4f8b33,'detail':this[_0x58fc77(0x18a)][_0x58fc77(0x1c3)](_0x58fc77(0x1a1))['getData']()};}};
@@ -1 +1 @@
1
- function a0_0x1b7a(){const _0x4e9d9d=['querySelector','ox-filters-form-base','isPage','560911clXoZA','2807328rsFkvi','grist','gridEmphasized','351244WRBDLi','name','pageInitialized','searchFieldValues','parseGristConfigs','useButtonExport','getMainTabHtml','main','ox-grist','gridColumnConfig','type','fetch','21024kOdDoA','options','useMasterFilterForm','masterElement','value','search','grid','record','useFilterForm','map','parseGridConfigSet','operator','filterFormId','searchFields','header','properties','grid_column','1107632ornhed','132vwgCsB','connectedCallback','parseBasicGridConfigs','activityDataSet','2715965dHiWET','1116045bVeuIW','clear','filter','getData','exportable','isElement','importable','styles','firstUpdated','filterForm','beforeFetch','push','render','getContextObject'];a0_0x1b7a=function(){return _0x4e9d9d;};return a0_0x1b7a();}const a0_0x4c2f95=a0_0x2523;(function(_0x4ab6e7,_0x21aa87){const _0x38ba9e=a0_0x2523,_0x4e0151=_0x4ab6e7();while(!![]){try{const _0x39736d=-parseInt(_0x38ba9e(0x1dd))/0x1+-parseInt(_0x38ba9e(0x1ff))/0x2*(-parseInt(_0x38ba9e(0x1ed))/0x3)+-parseInt(_0x38ba9e(0x1e1))/0x4+-parseInt(_0x38ba9e(0x204))/0x5+parseInt(_0x38ba9e(0x1de))/0x6+parseInt(_0x38ba9e(0x203))/0x7+-parseInt(_0x38ba9e(0x1fe))/0x8;if(_0x39736d===_0x21aa87)break;else _0x4e0151['push'](_0x4e0151['shift']());}catch(_0x189148){_0x4e0151['push'](_0x4e0151['shift']());}}}(a0_0x1b7a,0x4b33a));function a0_0x2523(_0x280877,_0x2a5aad){const _0x1b7a78=a0_0x1b7a();return a0_0x2523=function(_0x25236f,_0x176d85){_0x25236f=_0x25236f-0x1db;let _0x394340=_0x1b7a78[_0x25236f];return _0x394340;},a0_0x2523(_0x280877,_0x2a5aad);}import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x19d610=>class extends MetaButtonMixin(_0x19d610){static get[a0_0x4c2f95(0x20b)](){return MetaApi['getBasicMainTabStyles']();}static get[a0_0x4c2f95(0x1fc)](){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_0x4c2f95(0x1df)](){const _0x17a2b2=a0_0x4c2f95;return this[_0x17a2b2(0x1f0)]['getMainGrist']();}get[a0_0x4c2f95(0x20d)](){const _0x3b6a00=a0_0x4c2f95;return this['shadowRoot']?.[_0x3b6a00(0x212)](this[_0x3b6a00(0x1f9)]);}get['context'](){const _0x44cf22=a0_0x4c2f95;let _0x4abdea=MetaUiUtil[_0x44cf22(0x211)](this);return _0x4abdea['actions']&&delete _0x4abdea['actions'],_0x4abdea['exportable']&&delete _0x4abdea[_0x44cf22(0x208)],_0x4abdea[_0x44cf22(0x20a)]&&delete _0x4abdea[_0x44cf22(0x20a)],_0x4abdea;}async[a0_0x4c2f95(0x200)](){const _0x41e474=a0_0x4c2f95;this['gristId']=_0x41e474(0x1e9),this[_0x41e474(0x1f9)]=_0x41e474(0x1db),await this['getAndParseMenuMeta'](),this[_0x41e474(0x209)]&&await this[_0x41e474(0x1e5)](),this['activityDataSet']&&(this['dataSet']=(this[_0x41e474(0x202)]||{})[_0x41e474(0x1e8)]),super[_0x41e474(0x200)]&&await super[_0x41e474(0x200)]();}async['firstUpdated'](){const _0x1a6a45=a0_0x4c2f95;super[_0x1a6a45(0x20c)]&&await super['firstUpdated']();}async[a0_0x4c2f95(0x1e3)](){const _0x58016f=a0_0x4c2f95;this[_0x58016f(0x1dc)]&&await this[_0x58016f(0x1e5)](),super['pageInitialized']&&await super['pageInitialized']();}[a0_0x4c2f95(0x210)](){const _0x2717aa=a0_0x4c2f95;return MetaApi[_0x2717aa(0x1e7)](this);}[a0_0x4c2f95(0x201)](_0x2f14e4){const _0x5dcde1=a0_0x4c2f95;this['gridConfig']=_0x2f14e4[_0x5dcde1(0x1f3)],this[_0x5dcde1(0x1ea)]=_0x2f14e4[_0x5dcde1(0x1fd)],this['searchConfig']=_0x2f14e4[_0x5dcde1(0x1f2)],this[_0x5dcde1(0x1e0)]=_0x2f14e4[_0x5dcde1(0x1e0)];}async[a0_0x4c2f95(0x1e5)](){const _0x3d8587=a0_0x4c2f95;this['gristConfigSet']=await MetaApi[_0x3d8587(0x1f7)](this),this[_0x3d8587(0x1ef)]=!0x0===this[_0x3d8587(0x1f5)],this[_0x3d8587(0x1f5)]=!0x1,this['buttonConfig']=void 0x0,this[_0x3d8587(0x1e6)]=!0x1,this['useButtonImport']=!0x1,this[_0x3d8587(0x1e4)]=[],this[_0x3d8587(0x1fa)]=this['gristConfigSet']['columns']['filter'](_0x34c09d=>_0x34c09d[_0x3d8587(0x206)])[_0x3d8587(0x1f6)](_0x5208bc=>{const _0x100927=_0x3d8587;let _0x319ad5={'name':_0x5208bc[_0x100927(0x1e2)],'type':_0x100927(0x1f2)===_0x5208bc[_0x100927(0x206)][_0x100927(0x1f8)]?'search':_0x5208bc[_0x100927(0x1eb)],'label':_0x5208bc[_0x100927(0x1fb)],'operator':_0x5208bc[_0x100927(0x206)][_0x100927(0x1f8)]?_0x5208bc[_0x100927(0x206)][_0x100927(0x1f8)]:'eq'};return _0x5208bc[_0x100927(0x206)]['options']&&(_0x319ad5[_0x100927(0x1ee)]=_0x5208bc['filter'][_0x100927(0x1ee)]),_0x5208bc[_0x100927(0x1f4)][_0x100927(0x1ee)]&&(_0x319ad5[_0x100927(0x1ee)]=_0x5208bc[_0x100927(0x1f4)][_0x100927(0x1ee)]),_0x5208bc[_0x100927(0x206)][_0x100927(0x1f1)]&&this[_0x100927(0x1e4)][_0x100927(0x20f)]({'name':_0x319ad5['name'],'operator':_0x319ad5[_0x100927(0x1f8)],'value':_0x5208bc['filter'][_0x100927(0x1f1)]}),delete _0x5208bc['filter'],_0x319ad5;});}async[a0_0x4c2f95(0x1ec)](){const _0x2725a5=a0_0x4c2f95;await this[_0x2725a5(0x1df)][_0x2725a5(0x1ec)]();}async[a0_0x4c2f95(0x20e)]({page:_0x469e14=0x0,limit:_0x1c675a=0x0,sortings:_0x397792=[],filters:_0x5ce1c9=[]}){const _0x2ee09e=a0_0x4c2f95;return this[_0x2ee09e(0x1f0)]&&this[_0x2ee09e(0x1f0)][_0x2ee09e(0x205)]&&await this[_0x2ee09e(0x1f0)][_0x2ee09e(0x205)](),!0x0;}['getData'](){const _0x4bbb39=a0_0x4c2f95;return{'master':this[_0x4bbb39(0x1f0)][_0x4bbb39(0x207)]()};}};
1
+ const a0_0x4c278f=a0_0x2189;(function(_0x135a74,_0x1c6d43){const _0x58d083=a0_0x2189,_0x5683f9=_0x135a74();while(!![]){try{const _0x15f9d7=parseInt(_0x58d083(0xff))/0x1+-parseInt(_0x58d083(0xf6))/0x2+-parseInt(_0x58d083(0xe9))/0x3*(parseInt(_0x58d083(0xd5))/0x4)+-parseInt(_0x58d083(0xe6))/0x5+parseInt(_0x58d083(0xee))/0x6+parseInt(_0x58d083(0xfa))/0x7+-parseInt(_0x58d083(0xf4))/0x8;if(_0x15f9d7===_0x1c6d43)break;else _0x5683f9['push'](_0x5683f9['shift']());}catch(_0x43524d){_0x5683f9['push'](_0x5683f9['shift']());}}}(a0_0x5a90,0x984b6));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x2189(_0x353cbe,_0xb3fd5e){const _0x5a902e=a0_0x5a90();return a0_0x2189=function(_0x21898c,_0xfd69fd){_0x21898c=_0x21898c-0xc8;let _0x5003b7=_0x5a902e[_0x21898c];return _0x5003b7;},a0_0x2189(_0x353cbe,_0xb3fd5e);}import{UiUtil}from'../utils/ui-util';function a0_0x5a90(){const _0x26a8f5=['1097181WKJhUA','gristConfigSet','getContextObject','getBasicMainTabStyles','connectedCallback','activityDataSet','pageInitialized','masterElement','gridEmphasized','getMainTabHtml','beforeFetch','record','filterForm','parseGridConfigSet','4524148iVAYCo','operator','ox-filters-form-base','grist','clear','render','importable','searchFieldValues','querySelector','getAndParseMenuMeta','getData','properties','gridConfig','map','filter','shadowRoot','name','340295ogCHkm','type','search','3mRRudS','ox-grist','firstUpdated','context','filterFormId','149370GPiUNT','actions','gridColumnConfig','useButtonImport','grid_column','isPage','1219656UtmVSO','parseBasicGridConfigs','305744hZLnzy','buttonConfig','getMainGrist','push','7043029fHRWMw','options','dataSet','value','parseGristConfigs'];a0_0x5a90=function(){return _0x26a8f5;};return a0_0x5a90();}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x21b7a5=>class extends MetaButtonMixin(_0x21b7a5){static get['styles'](){const _0x315fb8=a0_0x2189;return MetaApi[_0x315fb8(0xca)]();}static get[a0_0x4c278f(0xe0)](){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_0x4c278f(0xd8)](){const _0x1b14a5=a0_0x4c278f;return this['masterElement'][_0x1b14a5(0xf8)]();}get[a0_0x4c278f(0xd3)](){const _0x2cac88=a0_0x4c278f;return this[_0x2cac88(0xe4)]?.[_0x2cac88(0xdd)](this['filterFormId']);}get[a0_0x4c278f(0xec)](){const _0x354203=a0_0x4c278f;let _0x3f1cc2=MetaUiUtil[_0x354203(0xc9)](this);return _0x3f1cc2[_0x354203(0xef)]&&delete _0x3f1cc2[_0x354203(0xef)],_0x3f1cc2['exportable']&&delete _0x3f1cc2['exportable'],_0x3f1cc2[_0x354203(0xdb)]&&delete _0x3f1cc2[_0x354203(0xdb)],_0x3f1cc2;}async['connectedCallback'](){const _0x142a96=a0_0x4c278f;this['gristId']=_0x142a96(0xea),this[_0x142a96(0xed)]=_0x142a96(0xd7),await this[_0x142a96(0xde)](),this['isElement']&&await this[_0x142a96(0xfe)](),this[_0x142a96(0xcc)]&&(this[_0x142a96(0xfc)]=(this['activityDataSet']||{})['main']),super[_0x142a96(0xcb)]&&await super[_0x142a96(0xcb)]();}async[a0_0x4c278f(0xeb)](){const _0xa66c10=a0_0x4c278f;super[_0xa66c10(0xeb)]&&await super[_0xa66c10(0xeb)]();}async[a0_0x4c278f(0xcd)](){const _0x4d0f3d=a0_0x4c278f;this[_0x4d0f3d(0xf3)]&&await this[_0x4d0f3d(0xfe)](),super['pageInitialized']&&await super[_0x4d0f3d(0xcd)]();}[a0_0x4c278f(0xda)](){const _0x5cfd00=a0_0x4c278f;return MetaApi[_0x5cfd00(0xd0)](this);}[a0_0x4c278f(0xf5)](_0x47a2d6){const _0x12b876=a0_0x4c278f;this[_0x12b876(0xe1)]=_0x47a2d6['grid'],this[_0x12b876(0xf0)]=_0x47a2d6[_0x12b876(0xf2)],this['searchConfig']=_0x47a2d6[_0x12b876(0xe8)],this[_0x12b876(0xcf)]=_0x47a2d6[_0x12b876(0xcf)];}async[a0_0x4c278f(0xfe)](){const _0x7965aa=a0_0x4c278f;this[_0x7965aa(0xc8)]=await MetaApi[_0x7965aa(0xd4)](this),this['useMasterFilterForm']=!0x0===this['useFilterForm'],this['useFilterForm']=!0x1,this[_0x7965aa(0xf7)]=void 0x0,this['useButtonExport']=!0x1,this[_0x7965aa(0xf1)]=!0x1,this[_0x7965aa(0xdc)]=[],this['searchFields']=this[_0x7965aa(0xc8)]['columns'][_0x7965aa(0xe3)](_0x305c56=>_0x305c56[_0x7965aa(0xe3)])[_0x7965aa(0xe2)](_0x36abaf=>{const _0x16046f=_0x7965aa;let _0xa4d480={'name':_0x36abaf[_0x16046f(0xe5)],'type':_0x16046f(0xe8)===_0x36abaf[_0x16046f(0xe3)][_0x16046f(0xd6)]?_0x16046f(0xe8):_0x36abaf[_0x16046f(0xe7)],'label':_0x36abaf['header'],'operator':_0x36abaf[_0x16046f(0xe3)][_0x16046f(0xd6)]?_0x36abaf[_0x16046f(0xe3)][_0x16046f(0xd6)]:'eq'};return _0x36abaf[_0x16046f(0xe3)][_0x16046f(0xfb)]&&(_0xa4d480[_0x16046f(0xfb)]=_0x36abaf[_0x16046f(0xe3)][_0x16046f(0xfb)]),_0x36abaf[_0x16046f(0xd2)][_0x16046f(0xfb)]&&(_0xa4d480[_0x16046f(0xfb)]=_0x36abaf[_0x16046f(0xd2)][_0x16046f(0xfb)]),_0x36abaf[_0x16046f(0xe3)]['value']&&this[_0x16046f(0xdc)][_0x16046f(0xf9)]({'name':_0xa4d480['name'],'operator':_0xa4d480[_0x16046f(0xd6)],'value':_0x36abaf[_0x16046f(0xe3)][_0x16046f(0xfd)]}),delete _0x36abaf[_0x16046f(0xe3)],_0xa4d480;});}async['fetch'](){const _0x4a49b0=a0_0x4c278f;await this[_0x4a49b0(0xd8)]['fetch']();}async[a0_0x4c278f(0xd1)]({page:_0x3c596b=0x0,limit:_0x3b1dda=0x0,sortings:_0x1a3013=[],filters:_0x586bc7=[]}){const _0x24f22d=a0_0x4c278f;return this[_0x24f22d(0xce)]&&this['masterElement'][_0x24f22d(0xd9)]&&await this[_0x24f22d(0xce)][_0x24f22d(0xd9)](),!0x0;}[a0_0x4c278f(0xdf)](){const _0x3ab6f9=a0_0x4c278f;return{'master':this[_0x3ab6f9(0xce)][_0x3ab6f9(0xdf)]()};}};
@@ -1 +1 @@
1
- const a0_0x32abab=a0_0x3850;(function(_0x564090,_0x53fca1){const _0x2b6512=a0_0x3850,_0x11164e=_0x564090();while(!![]){try{const _0x41d1d6=parseInt(_0x2b6512(0x120))/0x1*(-parseInt(_0x2b6512(0x111))/0x2)+parseInt(_0x2b6512(0x110))/0x3*(parseInt(_0x2b6512(0x11b))/0x4)+parseInt(_0x2b6512(0x124))/0x5*(-parseInt(_0x2b6512(0x128))/0x6)+parseInt(_0x2b6512(0x142))/0x7+parseInt(_0x2b6512(0x114))/0x8*(parseInt(_0x2b6512(0x132))/0x9)+parseInt(_0x2b6512(0x138))/0xa+-parseInt(_0x2b6512(0x13f))/0xb;if(_0x41d1d6===_0x53fca1)break;else _0x11164e['push'](_0x11164e['shift']());}catch(_0x4d114e){_0x11164e['push'](_0x11164e['shift']());}}}(a0_0x3d98,0x8ee68));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x3850(_0x1078db,_0x19ed01){const _0x3d984d=a0_0x3d98();return a0_0x3850=function(_0x3850fc,_0xa976dd){_0x3850fc=_0x3850fc-0x10a;let _0x36839e=_0x3d984d[_0x3850fc];return _0x36839e;},a0_0x3850(_0x1078db,_0x19ed01);}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_0x3d98(){const _0x32c7a4=['tTitle','main','___data','gridConfig','ox-filters-form-base','record','forEach','save','querySelector','menuInfo','beforeFetch','pageInitialized','patchesForUpdateMultiple','actions','renderRoot','parseGristConfigs','getMasterDetailHtml','export','isElement','2586UAiYuY','120066ORMmsu','searchConfig','header','6766528hlGRIZ','push','render','stringify','operator','value','firstUpdated','724Rkqksl','updateMultiple','parse','keys','options','1DxxqfK','gristConfigSet','importable','grid_column','945OicgeZ','useFilterForm','exportable','parseGridConfigSet','36618FSQphH','gridEmphasized','findOne','fetch','detailElement','getParams','getBasicMasterDetailStyles','isNotEmpty','type','clear','9IONvoE','records','searchFieldValues','name','grist','grid','4090970XbisGA','styles','getData','connectedCallback','startsWith','gristId','shadowRoot','6510735WfpQBQ','useMasterFilterForm','getSelectedIdList','6858390nahfvI','exportableData','filterFormId','isPage','search','import','searchFields','getAndParseMenuMeta','filter','delete'];a0_0x3d98=function(){return _0x32c7a4;};return a0_0x3d98();}export const MetaMasterDetailMixin=_0x13fdb2=>class extends MetaButtonMixin(_0x13fdb2){static get[a0_0x32abab(0x139)](){const _0x5402ad=a0_0x32abab;return MetaApi[_0x5402ad(0x12e)]();}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_0x32abab(0x136)](){const _0x8d1e61=a0_0x32abab;return this[_0x8d1e61(0x10b)][_0x8d1e61(0x154)](this[_0x8d1e61(0x13d)]);}get['filterForm'](){const _0x533473=a0_0x32abab;return this[_0x533473(0x13e)]?.[_0x533473(0x154)](this[_0x533473(0x144)]);}get['context'](){const _0x5f5b55=a0_0x32abab;let _0x48448f=MetaUiUtil['getContextObject'](this);return _0x48448f[_0x5f5b55(0x10a)]&&delete _0x48448f[_0x5f5b55(0x10a)],_0x48448f[_0x5f5b55(0x126)]&&delete _0x48448f[_0x5f5b55(0x126)],_0x48448f[_0x5f5b55(0x122)]&&delete _0x48448f[_0x5f5b55(0x122)],_0x48448f;}async['connectedCallback'](){const _0x1efeae=a0_0x32abab;this[_0x1efeae(0x13d)]='ox-grist',this[_0x1efeae(0x144)]=_0x1efeae(0x150),await this[_0x1efeae(0x149)](),this['isElement']&&await this['parseGristConfigs'](),this['activityDataSet']&&(this['dataSet']=(this['activityDataSet']||{})[_0x1efeae(0x14d)]),super[_0x1efeae(0x13b)]&&await super['connectedCallback']();}async[a0_0x32abab(0x11a)](){const _0x5517cb=a0_0x32abab;super[_0x5517cb(0x11a)]&&await super[_0x5517cb(0x11a)]();}async['pageInitialized'](){const _0x9230e6=a0_0x32abab;this[_0x9230e6(0x145)]&&await this[_0x9230e6(0x10c)](),super[_0x9230e6(0x157)]&&await super[_0x9230e6(0x157)]();}[a0_0x32abab(0x116)](){const _0x5f4c56=a0_0x32abab;return MetaApi[_0x5f4c56(0x10d)](this);}['parseBasicGridConfigs'](_0x59f381){const _0x4f5f74=a0_0x32abab;this[_0x4f5f74(0x14f)]=_0x59f381[_0x4f5f74(0x137)],this['gridColumnConfig']=_0x59f381[_0x4f5f74(0x123)],this[_0x4f5f74(0x112)]=_0x59f381[_0x4f5f74(0x146)],this[_0x4f5f74(0x129)]=_0x59f381[_0x4f5f74(0x129)];}async[a0_0x32abab(0x10c)](){const _0xd78bbc=a0_0x32abab;this[_0xd78bbc(0x121)]=await MetaApi[_0xd78bbc(0x127)](this),this[_0xd78bbc(0x140)]=!0x0===this[_0xd78bbc(0x125)],this[_0xd78bbc(0x125)]=!0x1,this[_0xd78bbc(0x134)]=[],this[_0xd78bbc(0x148)]=this[_0xd78bbc(0x121)]['columns'][_0xd78bbc(0x14a)](_0x3c3039=>_0x3c3039[_0xd78bbc(0x14a)])['map'](_0x19322b=>{const _0x2578b5=_0xd78bbc;let _0x1b8d78={'name':_0x19322b[_0x2578b5(0x135)],'type':_0x2578b5(0x146)===_0x19322b[_0x2578b5(0x14a)][_0x2578b5(0x118)]?'search':_0x19322b[_0x2578b5(0x130)],'label':_0x19322b[_0x2578b5(0x113)],'operator':_0x19322b['filter']['operator']?_0x19322b[_0x2578b5(0x14a)][_0x2578b5(0x118)]:'eq'};return _0x19322b['filter'][_0x2578b5(0x11f)]&&(_0x1b8d78['options']=_0x19322b[_0x2578b5(0x14a)]['options']),_0x19322b[_0x2578b5(0x151)][_0x2578b5(0x11f)]&&(_0x1b8d78[_0x2578b5(0x11f)]=_0x19322b[_0x2578b5(0x151)][_0x2578b5(0x11f)]),_0x19322b['filter'][_0x2578b5(0x119)]&&this[_0x2578b5(0x134)][_0x2578b5(0x115)]({'name':_0x1b8d78[_0x2578b5(0x135)],'operator':_0x1b8d78[_0x2578b5(0x118)],'value':_0x19322b[_0x2578b5(0x14a)][_0x2578b5(0x119)]}),delete _0x19322b[_0x2578b5(0x14a)],_0x1b8d78;});}async[a0_0x32abab(0x12b)](){const _0x39b3d1=a0_0x32abab;await this[_0x39b3d1(0x136)][_0x39b3d1(0x12b)]();}async[a0_0x32abab(0x156)]({page:_0x47ec2d=0x0,limit:_0xb92464=0x0,sortings:_0x5d59c4=[],filters:_0x3c56a5=[]}){const _0x1104fb=a0_0x32abab;return this[_0x1104fb(0x12c)]&&this[_0x1104fb(0x12c)][_0x1104fb(0x131)]&&await this['detailElement'][_0x1104fb(0x131)](),!0x0;}async[a0_0x32abab(0x153)](){const _0x2455f1=a0_0x32abab;let _0x1f3452=MetaApi[_0x2455f1(0x158)](this[_0x2455f1(0x136)]);!!ValueUtil[_0x2455f1(0x12f)](_0x1f3452)&&await this[_0x2455f1(0x11c)](_0x1f3452)&&this[_0x2455f1(0x12b)]();}async['find'](){const _0x3aa6bd=a0_0x32abab;let _0x28573f=MetaApi['getSelectedIdList'](this[_0x3aa6bd(0x136)],!0x0);return ValueUtil[_0x3aa6bd(0x12f)](_0x28573f)?await this[_0x3aa6bd(0x12a)](_0x28573f[0x0]):{};}async[a0_0x32abab(0x14b)](){const _0x53d622=a0_0x32abab;let _0x57fc01=MetaApi[_0x53d622(0x141)](this['grist'],!0x0);!!ValueUtil['isNotEmpty'](_0x57fc01)&&await this['deleteByIds'](_0x57fc01)&&this[_0x53d622(0x12b)]();}async[a0_0x32abab(0x10e)](){const _0x19a086=a0_0x32abab;let _0x59e639=TermsUtil[_0x19a086(0x14c)](ValueUtil[_0x19a086(0x12d)](this[_0x19a086(0x155)],'title'));return await MetaApi[_0x19a086(0x143)](this[_0x19a086(0x10f)],_0x59e639,this['grist']);}async[a0_0x32abab(0x147)](){}['getData'](){const _0x4fc0a9=a0_0x32abab;let _0x52029d=this[_0x4fc0a9(0x136)][_0x4fc0a9(0x14e)][_0x4fc0a9(0x133)];return _0x52029d=JSON[_0x4fc0a9(0x11d)](JSON[_0x4fc0a9(0x117)](_0x52029d)),_0x52029d[_0x4fc0a9(0x152)](_0x3b5181=>{const _0x1b2bd0=_0x4fc0a9;Object[_0x1b2bd0(0x11e)](_0x3b5181)[_0x1b2bd0(0x152)](_0x479cb9=>{const _0x3d05ad=_0x1b2bd0;_0x479cb9[_0x3d05ad(0x13c)]('__')&&delete _0x3b5181[_0x479cb9];});}),{'main':_0x52029d,'detail':this[_0x4fc0a9(0x12c)][_0x4fc0a9(0x13a)]()};}};
1
+ const a0_0x744355=a0_0x499f;(function(_0x5f10ad,_0x34de1b){const _0x2b55a7=a0_0x499f,_0x378ad2=_0x5f10ad();while(!![]){try{const _0x308532=-parseInt(_0x2b55a7(0x197))/0x1+parseInt(_0x2b55a7(0x1d9))/0x2+parseInt(_0x2b55a7(0x1c4))/0x3*(parseInt(_0x2b55a7(0x1a3))/0x4)+parseInt(_0x2b55a7(0x1ca))/0x5+parseInt(_0x2b55a7(0x1db))/0x6+-parseInt(_0x2b55a7(0x1a9))/0x7*(-parseInt(_0x2b55a7(0x1bc))/0x8)+-parseInt(_0x2b55a7(0x1d7))/0x9;if(_0x308532===_0x34de1b)break;else _0x378ad2['push'](_0x378ad2['shift']());}catch(_0x16badc){_0x378ad2['push'](_0x378ad2['shift']());}}}(a0_0x2f8a,0x60477));import{html}from'lit';function a0_0x499f(_0x2bee55,_0x440078){const _0x2f8aec=a0_0x2f8a();return a0_0x499f=function(_0x499fea,_0xfbc2ed){_0x499fea=_0x499fea-0x194;let _0x5249ce=_0x2f8aec[_0x499fea];return _0x5249ce;},a0_0x499f(_0x2bee55,_0x440078);}function a0_0x2f8a(){const _0xecf2aa=['541428DKZuXC','getAndParseMenuMeta','push','type','forEach','searchFieldValues','isElement','find','actions','gristConfigSet','getSelectedIdList','filterForm','1756fgmeaw','gridEmphasized','searchConfig','name','fetch','export','7vCqLXi','value','header','ox-grist','updateMultiple','startsWith','main','options','exportableData','gristId','parseGristConfigs','delete','operator','detailElement','render','connectedCallback','grid_column','patchesForUpdateMultiple','useMasterFilterForm','1721576zSTEyq','tTitle','search','useFilterForm','grist','title','records','context','426NkOCcS','parseGridConfigSet','record','findOne','gridConfig','activityDataSet','626885QhRCIe','getContextObject','filter','renderRoot','import','parseBasicGridConfigs','importable','save','menuInfo','firstUpdated','exportable','properties','getParams','4100400KCmmFS','beforeFetch','830392JLgAOo','shadowRoot','3439674hvENLo','ox-filters-form-base','filterFormId','clear','___data','pageInitialized','deleteByIds','querySelector','getMasterDetailHtml','getBasicMasterDetailStyles','map'];a0_0x2f8a=function(){return _0xecf2aa;};return a0_0x2f8a();}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x165bed=>class extends MetaButtonMixin(_0x165bed){static get['styles'](){const _0x5cb51a=a0_0x499f;return MetaApi[_0x5cb51a(0x195)]();}static get[a0_0x744355(0x1d5)](){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_0x744355(0x1c0)](){const _0x5bef30=a0_0x744355;return this[_0x5bef30(0x1cd)][_0x5bef30(0x1e2)](this[_0x5bef30(0x1b2)]);}get[a0_0x744355(0x1a2)](){const _0x168b31=a0_0x744355;return this[_0x168b31(0x1da)]?.[_0x168b31(0x1e2)](this[_0x168b31(0x1dd)]);}get[a0_0x744355(0x1c3)](){const _0x2a2c7c=a0_0x744355;let _0x477565=MetaUiUtil[_0x2a2c7c(0x1cb)](this);return _0x477565[_0x2a2c7c(0x19f)]&&delete _0x477565['actions'],_0x477565[_0x2a2c7c(0x1d4)]&&delete _0x477565['exportable'],_0x477565[_0x2a2c7c(0x1d0)]&&delete _0x477565['importable'],_0x477565;}async['connectedCallback'](){const _0x367665=a0_0x744355;this['gristId']=_0x367665(0x1ac),this[_0x367665(0x1dd)]=_0x367665(0x1dc),await this[_0x367665(0x198)](),this['isElement']&&await this[_0x367665(0x1b3)](),this[_0x367665(0x1c9)]&&(this['dataSet']=(this[_0x367665(0x1c9)]||{})[_0x367665(0x1af)]),super[_0x367665(0x1b8)]&&await super[_0x367665(0x1b8)]();}async['firstUpdated'](){const _0x397d3e=a0_0x744355;super[_0x397d3e(0x1d3)]&&await super['firstUpdated']();}async['pageInitialized'](){const _0x4056af=a0_0x744355;this['isPage']&&await this[_0x4056af(0x1b3)](),super[_0x4056af(0x1e0)]&&await super['pageInitialized']();}[a0_0x744355(0x1b7)](){const _0x54c7f8=a0_0x744355;return MetaApi[_0x54c7f8(0x194)](this);}[a0_0x744355(0x1cf)](_0x2b3ebf){const _0x34452a=a0_0x744355;this[_0x34452a(0x1c8)]=_0x2b3ebf['grid'],this['gridColumnConfig']=_0x2b3ebf[_0x34452a(0x1b9)],this[_0x34452a(0x1a5)]=_0x2b3ebf[_0x34452a(0x1be)],this[_0x34452a(0x1a4)]=_0x2b3ebf[_0x34452a(0x1a4)];}async[a0_0x744355(0x1b3)](){const _0x39cbe6=a0_0x744355;this[_0x39cbe6(0x1a0)]=await MetaApi[_0x39cbe6(0x1c5)](this),this[_0x39cbe6(0x1bb)]=!0x0===this[_0x39cbe6(0x1bf)],this['useFilterForm']=!0x1,this[_0x39cbe6(0x19c)]=[],this['searchFields']=this[_0x39cbe6(0x1a0)]['columns'][_0x39cbe6(0x1cc)](_0xb9dfba=>_0xb9dfba['filter'])[_0x39cbe6(0x196)](_0x3ffe71=>{const _0x201b76=_0x39cbe6;let _0x395eab={'name':_0x3ffe71[_0x201b76(0x1a6)],'type':_0x201b76(0x1be)===_0x3ffe71[_0x201b76(0x1cc)]['operator']?_0x201b76(0x1be):_0x3ffe71[_0x201b76(0x19a)],'label':_0x3ffe71[_0x201b76(0x1ab)],'operator':_0x3ffe71[_0x201b76(0x1cc)][_0x201b76(0x1b5)]?_0x3ffe71['filter']['operator']:'eq'};return _0x3ffe71[_0x201b76(0x1cc)][_0x201b76(0x1b0)]&&(_0x395eab[_0x201b76(0x1b0)]=_0x3ffe71[_0x201b76(0x1cc)]['options']),_0x3ffe71[_0x201b76(0x1c6)][_0x201b76(0x1b0)]&&(_0x395eab[_0x201b76(0x1b0)]=_0x3ffe71[_0x201b76(0x1c6)][_0x201b76(0x1b0)]),_0x3ffe71[_0x201b76(0x1cc)][_0x201b76(0x1aa)]&&this['searchFieldValues'][_0x201b76(0x199)]({'name':_0x395eab[_0x201b76(0x1a6)],'operator':_0x395eab[_0x201b76(0x1b5)],'value':_0x3ffe71[_0x201b76(0x1cc)][_0x201b76(0x1aa)]}),delete _0x3ffe71[_0x201b76(0x1cc)],_0x395eab;});}async['fetch'](){const _0x4608f0=a0_0x744355;await this['grist'][_0x4608f0(0x1a7)]();}async[a0_0x744355(0x1d8)]({page:_0x1a7018=0x0,limit:_0x4d2f4f=0x0,sortings:_0x260246=[],filters:_0x8b899e=[]}){const _0x3a4e7a=a0_0x744355;return this['detailElement']&&this[_0x3a4e7a(0x1b6)][_0x3a4e7a(0x1de)]&&await this['detailElement']['clear'](),!0x0;}async[a0_0x744355(0x1d1)](){const _0x10cb94=a0_0x744355;let _0x43bb58=MetaApi[_0x10cb94(0x1ba)](this[_0x10cb94(0x1c0)]);!!ValueUtil['isNotEmpty'](_0x43bb58)&&await this[_0x10cb94(0x1ad)](_0x43bb58)&&this[_0x10cb94(0x1a7)]();}async[a0_0x744355(0x19e)](){const _0x2f487e=a0_0x744355;let _0x5a0a79=MetaApi[_0x2f487e(0x1a1)](this[_0x2f487e(0x1c0)],!0x0);return ValueUtil['isNotEmpty'](_0x5a0a79)?await this[_0x2f487e(0x1c7)](_0x5a0a79[0x0]):{};}async[a0_0x744355(0x1b4)](){const _0x2f5756=a0_0x744355;let _0x539b5d=MetaApi[_0x2f5756(0x1a1)](this['grist'],!0x0);!!ValueUtil['isNotEmpty'](_0x539b5d)&&await this[_0x2f5756(0x1e1)](_0x539b5d)&&this[_0x2f5756(0x1a7)]();}async[a0_0x744355(0x1a8)](){const _0x1a0895=a0_0x744355;let _0x337c3d=TermsUtil[_0x1a0895(0x1bd)](ValueUtil[_0x1a0895(0x1d6)](this[_0x1a0895(0x1d2)],_0x1a0895(0x1c1)));return await MetaApi[_0x1a0895(0x1b1)](this[_0x1a0895(0x19d)],_0x337c3d,this[_0x1a0895(0x1c0)]);}async[a0_0x744355(0x1ce)](){}['getData'](){const _0xd5750f=a0_0x744355;let _0x78b793=this[_0xd5750f(0x1c0)][_0xd5750f(0x1df)][_0xd5750f(0x1c2)];return _0x78b793=JSON['parse'](JSON['stringify'](_0x78b793)),_0x78b793[_0xd5750f(0x19b)](_0x3707aa=>{Object['keys'](_0x3707aa)['forEach'](_0x2e37da=>{const _0x1c2f9a=a0_0x499f;_0x2e37da[_0x1c2f9a(0x1ae)]('__')&&delete _0x3707aa[_0x2e37da];});}),{'main':_0x78b793,'detail':this['detailElement']['getData']()};}};