@things-factory/meta-ui 6.1.40 → 6.1.42

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 +6 -6
  9. package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
  10. package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
  11. package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
  12. package/client/component/popup/code-input-editor-popup.js +10 -10
  13. package/client/component/popup/meta-object-selector-popup.js +11 -11
  14. package/client/mixin/meta-base-mixin.js +1 -1
  15. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  16. package/client/mixin/meta-button-mixin.js +1 -1
  17. package/client/mixin/meta-form-mixin.js +1 -1
  18. package/client/mixin/meta-grist-tab-mixin.js +1 -1
  19. package/client/mixin/meta-main-tab-mixin.js +1 -1
  20. package/client/mixin/meta-master-detail-mixin.js +1 -1
  21. package/client/mixin/meta-service-mixin.js +1 -1
  22. package/client/mixin/meta-tab-detail-mixin.js +1 -1
  23. package/client/mixin/meta-tab-mixin.js +1 -1
  24. package/client/pages/activity/meta-activity-list-page.js +6 -6
  25. package/client/pages/activity/meta-activity-viewer-element.js +3 -3
  26. package/client/pages/activity/meta-activity-writer-element.js +3 -3
  27. package/client/pages/activity/meta-activiy-mixin.js +3 -3
  28. package/client/pages/entity/config-entity.js +29 -29
  29. package/client/pages/entity/main-menu-selector.js +8 -8
  30. package/client/pages/history/history-copy-list-popup.js +5 -5
  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 +15 -15
  35. package/client/pages/meta-form-element.js +1 -1
  36. package/client/pages/meta-grist-element.js +1 -1
  37. package/client/pages/meta-grist-page.js +1 -1
  38. package/client/pages/meta-grist-tab-element.js +1 -1
  39. package/client/pages/meta-grist-tab-page.js +1 -1
  40. package/client/pages/meta-main-tab-element.js +1 -1
  41. package/client/pages/meta-main-tab-page.js +1 -1
  42. package/client/pages/meta-master-detail-element.js +1 -1
  43. package/client/pages/meta-master-detail-page.js +1 -1
  44. package/client/pages/meta-tab-detail-element.js +1 -1
  45. package/client/pages/meta-tab-detail-page.js +1 -1
  46. package/client/pages/meta-tab-element.js +1 -1
  47. package/client/pages/personalize/personal-column-selector.js +11 -11
  48. package/client/pages/terms/config-terminology.js +6 -6
  49. package/client/pages/work-code/work-code-detail-popup.js +1 -1
  50. package/client/pages/work-code/work-code-page.js +1 -1
  51. package/client/reducers/main.js +1 -1
  52. package/client/utils/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 +103 -103
  56. package/client/utils/service-util.js +13 -13
  57. package/client/utils/terms-util.js +2 -2
  58. package/client/utils/ui-util.js +1 -1
  59. package/client/utils/value-util.js +1 -1
  60. package/client/viewparts/dynamic-menu-landscape-styles.js +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_0x114d16=a0_0x17b0;(function(_0x3a0bab,_0x43af24){const _0x23029d=a0_0x17b0,_0x89b5f9=_0x3a0bab();while(!![]){try{const _0xd36b8c=parseInt(_0x23029d(0x1f4))/0x1*(-parseInt(_0x23029d(0x20f))/0x2)+-parseInt(_0x23029d(0x215))/0x3+parseInt(_0x23029d(0x226))/0x4*(-parseInt(_0x23029d(0x220))/0x5)+parseInt(_0x23029d(0x1ed))/0x6*(-parseInt(_0x23029d(0x227))/0x7)+parseInt(_0x23029d(0x21a))/0x8*(-parseInt(_0x23029d(0x236))/0x9)+-parseInt(_0x23029d(0x1ee))/0xa*(-parseInt(_0x23029d(0x23e))/0xb)+parseInt(_0x23029d(0x22a))/0xc;if(_0xd36b8c===_0x43af24)break;else _0x89b5f9['push'](_0x89b5f9['shift']());}catch(_0x96ce5f){_0x89b5f9['push'](_0x89b5f9['shift']());}}}(a0_0x1fe7,0xa6f82));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';function a0_0x1fe7(){const _0x557683=['cancel','string','selectRecord','forEach','tButton','entity','left','name','codes','rows','fetchHandler','getGristPagination100Config','62652tJKIgi','columns','selected','menu_template','queryName','keys','3631311HVUgyJ','meta-code-selector','args','codeField','firstUpdated','173760DASuKH','confirmCallback','clickSelect','after_set_fields','showToast','tText','5CZRRHz','length','handlers','nameField','resource-object','object','4837852cUJeXf','497441kgWKAd','gql','clickCancel','34570500ihAQQa','#ox-grist','meta-object-selector','connectedCallback','gridConfig','sorters','select','push','hidden','shadowRoot','define','filterFields','144ZVAdVY','includes','isArray','filter','getGristGuttersConfig','options','align','NOTHING_SELECTED','8779584btHVZz','appendable','select-row-toggle','getCodeByScenario','getCodeSelectorData','bind','scenario','record','6zXpsjf','10dHxwqP','clickEmpty','dispField','search_hidden_fields','grist','render','5muDsvC','meta-','type','getGristSelectableConfig','getGristMetaObjectOptions','getCodeByEntity','values','getParams','menu','search','getGristColumnConfig2','filters','startsWith','code','basicArgs'];a0_0x1fe7=function(){return _0x557683;};return a0_0x1fe7();}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 ['styles']=[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[a0_0x114d16(0x22d)](){const _0x235cb8=a0_0x114d16;this[_0x235cb8(0x1f1)]=this[_0x235cb8(0x23b)][_0x235cb8(0x1ff)]?this[_0x235cb8(0x23b)][_0x235cb8(0x1ff)]:this[_0x235cb8(0x202)]&&this[_0x235cb8(0x202)][_0x235cb8(0x1ff)]?this[_0x235cb8(0x202)]['filters']:[];let _0x216bcd=this[_0x235cb8(0x23b)]['sorters']?this[_0x235cb8(0x23b)][_0x235cb8(0x22f)]:this['basicArgs']&&this[_0x235cb8(0x202)]['sorters']?this[_0x235cb8(0x202)][_0x235cb8(0x22f)]:[],_0x330261=this[_0x235cb8(0x23b)][_0x235cb8(0x235)]?this[_0x235cb8(0x23b)]['filterFields']:this[_0x235cb8(0x23b)][_0x235cb8(0x212)]?.[_0x235cb8(0x1fd)]&&this['options'][_0x235cb8(0x212)]?.[_0x235cb8(0x1fd)][_0x235cb8(0x221)]>0x0?this[_0x235cb8(0x23b)]['menu_template'][_0x235cb8(0x1fd)]:[],_0x5a4a16=this[_0x235cb8(0x23b)]['select'];if(!_0x330261||0x0==_0x330261[_0x235cb8(0x221)]){let _0xa80597;this[_0x235cb8(0x23b)]['codeField']&&(_0xa80597=this['options'][_0x235cb8(0x218)]),this['options'][_0x235cb8(0x223)]&&(_0xa80597=this[_0x235cb8(0x23b)][_0x235cb8(0x223)]),_0xa80597&&_0x330261[_0x235cb8(0x231)]({'name':_0xa80597,'operator':'eq'});}let _0x5dcfda=[...MetaApi[_0x235cb8(0x23a)](!0x0,!0x1)];if(_0x5a4a16&&_0x5a4a16['length']>0x0)for(let _0x45a88e=0x0;_0x45a88e<_0x5a4a16[_0x235cb8(0x221)];_0x45a88e++){let {type:_0x10e150=_0x235cb8(0x204),name:_0x3d9531,hidden:_0x1c949a=!0x1,record:_0x798a59={'align':'left'},header:_0x360d67,sortable:_0x1e49b4=!0x1,width:_0x543e9c=0x87,options:_0x33ab39,select_opt:_0x3f2eae,object_opt:_0x5c924d}=_0x5a4a16[_0x45a88e];if(_0x3f2eae&&(_0x33ab39=_0x3f2eae),_0x5c924d&&(_0x33ab39=_0x5c924d),[_0x235cb8(0x224),_0x235cb8(0x225)][_0x235cb8(0x237)](_0x10e150)?_0x10e150=_0x235cb8(0x22c):['resource-code-selector'][_0x235cb8(0x237)](_0x10e150)&&(_0x10e150='meta-code-selector'),'id'==_0x3d9531)_0x5dcfda['push']({'type':'string','name':_0x3d9531,'hidden':!0x0});else{let _0x14674e=MetaApi[_0x235cb8(0x1fe)](_0x10e150,_0x3d9531,_0x360d67||_0x3d9531,_0x798a59[_0x235cb8(0x23c)]?_0x798a59['align']:_0x235cb8(0x209),!0x1,_0x1e49b4,_0x543e9c);_0x10e150[_0x235cb8(0x200)](_0x235cb8(0x1f5))&&_0x5c924d&&_0x5c924d[_0x235cb8(0x1fc)]&&(_0x33ab39=await MetaUiUtil[_0x235cb8(0x1f8)](_0x10e150,_0x33ab39)),_0x235cb8(0x230)===_0x10e150?Array[_0x235cb8(0x238)](_0x33ab39)?_0x14674e['record'][_0x235cb8(0x23b)]=_0x33ab39:_0x235cb8(0x201)===_0x33ab39[_0x235cb8(0x1f6)]?_0x14674e['record'][_0x235cb8(0x23b)]=await ServiceUtil[_0x235cb8(0x242)](_0x33ab39['values']?_0x33ab39[_0x235cb8(0x1fa)]:_0x33ab39[_0x235cb8(0x20a)]):_0x235cb8(0x244)===_0x33ab39['type']?_0x14674e[_0x235cb8(0x1ec)][_0x235cb8(0x23b)]=await ServiceUtil[_0x235cb8(0x241)](_0x33ab39[_0x235cb8(0x20a)],_0x33ab39[_0x235cb8(0x217)]):_0x235cb8(0x208)===_0x33ab39[_0x235cb8(0x1f6)]&&(_0x14674e[_0x235cb8(0x1ec)][_0x235cb8(0x23b)]=await ServiceUtil[_0x235cb8(0x1f9)](_0x33ab39[_0x235cb8(0x217)])):_0x235cb8(0x22c)===_0x10e150?_0x14674e[_0x235cb8(0x1ec)]['options']={..._0x33ab39}:_0x235cb8(0x216)==_0x10e150&&(_0x33ab39[_0x235cb8(0x1f0)]&&(_0x33ab39[_0x235cb8(0x20b)]=await ServiceUtil[_0x235cb8(0x1f9)](_0x33ab39)),_0x14674e[_0x235cb8(0x1ec)][_0x235cb8(0x23b)]={..._0x33ab39}),_0x14674e[_0x235cb8(0x232)]=_0x1c949a,_0x5dcfda[_0x235cb8(0x231)](_0x14674e);}}else _0x5dcfda[_0x235cb8(0x231)](MetaApi[_0x235cb8(0x1fe)](_0x235cb8(0x204),this[_0x235cb8(0x23b)][_0x235cb8(0x218)],this[_0x235cb8(0x23b)][_0x235cb8(0x218)],'left',!0x1,!0x0,0xb4)),this[_0x235cb8(0x23b)][_0x235cb8(0x1f0)]&&_0x5dcfda['push'](MetaApi[_0x235cb8(0x1fe)]('string',this[_0x235cb8(0x23b)][_0x235cb8(0x1f0)],this['options'][_0x235cb8(0x1f0)],_0x235cb8(0x209),!0x1,!0x0,0x12c));_0x5dcfda[_0x235cb8(0x206)](_0x193026=>{const _0x2ad357=_0x235cb8;let _0x20860b=_0x330261[_0x2ad357(0x239)](_0x1a7371=>_0x2ad357(0x204)==typeof _0x1a7371?_0x193026[_0x2ad357(0x20a)]==_0x1a7371:_0x193026[_0x2ad357(0x20a)]==_0x1a7371[_0x2ad357(0x20a)]);_0x20860b&&_0x20860b[_0x2ad357(0x221)]>0x0&&(_0x193026[_0x2ad357(0x239)]=_0x2ad357(0x204)==typeof _0x20860b[0x0]?_0x2ad357(0x1fd):_0x20860b[0x0]);});let _0x4e4a4b={'rows':MetaApi[_0x235cb8(0x1f7)](!0x1),'pagination':MetaApi[_0x235cb8(0x20e)](),'columns':_0x5dcfda,'sorters':[..._0x216bcd]};_0x4e4a4b[_0x235cb8(0x20c)][_0x235cb8(0x222)]={'click':_0x235cb8(0x240),'dblclick':(_0x45437a,_0x3e1306,_0x4661bb,_0x28c314,_0x20da94,_0x456458)=>{this['selectRecord'](_0x28c314);}},_0x4e4a4b[_0x235cb8(0x20c)][_0x235cb8(0x23f)]=!0x1,this[_0x235cb8(0x22e)]=_0x4e4a4b,await super[_0x235cb8(0x22d)]();}async[a0_0x114d16(0x219)](){const _0x1a2e94=a0_0x114d16;await super[_0x1a2e94(0x219)]();}[a0_0x114d16(0x1f3)](){const _0x2425e5=a0_0x114d16;return html`
21
+ <ox-grist id="ox-grist" .config=${this['gridConfig']} .mode=${isMobileDevice()?'LIST':'GRID'} auto-fetch
22
+ .fetchHandler=${this[_0x2425e5(0x20d)][_0x2425e5(0x243)](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[_0x2425e5(0x207)]('empty')}" style="margin-left:7px;margin-top:7px;"
31
+ @click=${this[_0x2425e5(0x1ef)][_0x2425e5(0x243)](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[_0x2425e5(0x207)](_0x2425e5(0x203))}" style="margin-left:7px;margin-top:7px;"
34
+ @click=${this[_0x2425e5(0x229)]['bind'](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[_0x2425e5(0x207)](_0x2425e5(0x230))}" style="margin-left:7px;margin-top:7px;"
37
+ @click=${this[_0x2425e5(0x21c)][_0x2425e5(0x243)](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_0x114d16(0x1f2)](){const _0x407b57=a0_0x114d16;return this[_0x407b57(0x233)]['querySelector'](_0x407b57(0x22b));}async[a0_0x114d16(0x20d)]({page:_0x41fd37=0x0,limit:_0x598586=0x0,sorters:_0x5dce6c=[],filters:_0x4ab3c2=[]}){const _0x236313=a0_0x114d16;let _0x5d8853=[...this[_0x236313(0x1f1)]];_0x4ab3c2[_0x236313(0x206)](_0x3170f4=>{const _0x226d06=_0x236313;let _0x326cbf=_0x5d8853[_0x226d06(0x239)](_0x1a94a6=>_0x3170f4['name']==_0x1a94a6[_0x226d06(0x20a)]);_0x326cbf&&_0x326cbf[_0x226d06(0x221)]>0x0&&delete _0x5d8853[_0x3170f4[_0x226d06(0x20a)]],_0x5d8853['push'](_0x3170f4);});let _0xe2d4ae=ValueUtil[_0x236313(0x1fb)](this[_0x236313(0x23b)][_0x236313(0x212)]&&this['options']['menu_template'][_0x236313(0x228)]||{},'query',_0x236313(0x21d)),_0x6a19ec=Object[_0x236313(0x214)](_0xe2d4ae||{}),_0x4e7e74=MetaApi['getSelectColumns'](this[_0x236313(0x22e)][_0x236313(0x210)][_0x236313(0x239)](_0x10896d=>!_0x6a19ec[_0x236313(0x237)](_0x10896d['name'])));return await MetaApi['searchByPagination'](this[_0x236313(0x23b)][_0x236313(0x213)],_0x5d8853,_0x5dce6c,_0x41fd37,_0x598586,_0x4e7e74);}async[a0_0x114d16(0x1ef)](_0x36600f){const _0x2f568e=a0_0x114d16;this[_0x2f568e(0x21b)]&&this['confirmCallback'](null),closePopup(this);}async[a0_0x114d16(0x229)](_0x1b9b86){closePopup(this);}async[a0_0x114d16(0x21c)](_0x3696c1){const _0x93a734=a0_0x114d16;let _0x12c634=this[_0x93a734(0x1f2)][_0x93a734(0x211)];_0x12c634&&0x0!=_0x12c634[_0x93a734(0x221)]?this[_0x93a734(0x205)](_0x12c634[0x0]):MetaApi[_0x93a734(0x21e)]('info',TermsUtil[_0x93a734(0x21f)](_0x93a734(0x23d)));}async[a0_0x114d16(0x205)](_0x220590){const _0x261618=a0_0x114d16;this[_0x261618(0x21b)]&&this[_0x261618(0x21b)](_0x220590),closePopup(this);}}function a0_0x17b0(_0x2951fb,_0x430e61){const _0x1fe711=a0_0x1fe7();return a0_0x17b0=function(_0x17b0fc,_0x27ea0d){_0x17b0fc=_0x17b0fc-0x1ec;let _0x5790e5=_0x1fe711[_0x17b0fc];return _0x5790e5;},a0_0x17b0(_0x2951fb,_0x430e61);}customElements[a0_0x114d16(0x234)]('meta-object-selector-popup',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_0x478d5a=a0_0xbdbc;(function(_0x2326c8,_0x422a33){const _0x243679=a0_0xbdbc,_0x3970bf=_0x2326c8();while(!![]){try{const _0x2e9cdc=-parseInt(_0x243679(0x72))/0x1+parseInt(_0x243679(0x8a))/0x2*(-parseInt(_0x243679(0xaa))/0x3)+-parseInt(_0x243679(0xa7))/0x4+parseInt(_0x243679(0x89))/0x5+parseInt(_0x243679(0x78))/0x6*(-parseInt(_0x243679(0xa5))/0x7)+parseInt(_0x243679(0x76))/0x8*(parseInt(_0x243679(0x97))/0x9)+parseInt(_0x243679(0x9b))/0xa*(parseInt(_0x243679(0x79))/0xb);if(_0x2e9cdc===_0x422a33)break;else _0x3970bf['push'](_0x3970bf['shift']());}catch(_0x1cd6a4){_0x3970bf['push'](_0x3970bf['shift']());}}}(a0_0x5d23,0xbfdf2));function a0_0xbdbc(_0x35c306,_0x1b0cdd){const _0x5d23a6=a0_0x5d23();return a0_0xbdbc=function(_0xbdbc72,_0x24c9c8){_0xbdbc72=_0xbdbc72-0x71;let _0x52d84a=_0x5d23a6[_0xbdbc72];return _0x52d84a;},a0_0xbdbc(_0x35c306,_0x1b0cdd);}import{MetaApi}from'./../utils/meta-api';function a0_0x5d23(){const _0x347cd6=['properties','lifecycle','parseBasicGridConfigs','title','isDetail','after','menu','fetch','callScenario','fieldChangeHandlers','getMenuMeta','meta-form-','7573400VEMwko','1863754bRpbfA','isPage','is_detail','active','tagName','parseBasicButtonConfigs','startsWith','dataChangeEventHandler','data','keys','grist','connectedCallback','fetchHandler','144IyhHUg','executeCallScenarioButtonClick','detail','menuInfo','25387790DwranK','includes','parent_id','name','field-change','is_popup','isPopup','parseBasicTabConfigs','dispatchEvent','parseBasicServiceConfigs','203427lSPlSE','etcConfig','4259828RwXULx','form-field-change','isElement','3jGHCni','excuteOpenPopupButtonClick','forEach','body','setParentId','params','isEmpty','1308430LbFkvI','split','isNotEmpty','runScenario','207752TJrQxN','toLowerCase','78bmjuHL','11jvGNZn','parseBasicFormConfigs','errors','title_detail'];a0_0x5d23=function(){return _0x347cd6;};return a0_0x5d23();}import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x4da3a9=>class extends _0x4da3a9{static get[a0_0x478d5a(0x7d)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x50b02a=>Boolean(_0x50b02a)},'is_popup':{'type':Boolean,'converter':_0x396f4c=>Boolean(_0x396f4c)},'is_activity':{'type':Boolean,'converter':_0x11421c=>Boolean(_0x11421c)},'is_readonly':{'type':Boolean,'converter':_0x49df68=>Boolean(_0x49df68)}};}get[a0_0x478d5a(0xa9)](){const _0x5ebd48=a0_0x478d5a;return!0x0===this[_0x5ebd48(0x8c)]||!0x0===this[_0x5ebd48(0xa0)];}get[a0_0x478d5a(0x81)](){const _0x211992=a0_0x478d5a;return!ValueUtil['isEmpty'](this[_0x211992(0x8c)])&&this[_0x211992(0x8c)];}async[a0_0x478d5a(0x91)](_0x2ff75f){const _0x30ba87=a0_0x478d5a;let {after:_0x336bb5,before:_0x3c07f9,column:_0x59d968,record:_0x299ffa,row:_0x41aeee}=_0x2ff75f[_0x30ba87(0x99)],_0x1d1867=_0x59d968[_0x30ba87(0x9e)];if(Object[_0x30ba87(0x93)](this['fieldChangeHandlers']||{})[_0x30ba87(0x9c)](_0x1d1867)){let _0x1afa51,_0x2e8339=(await MetaApi[_0x30ba87(0x85)](void 0x0,this[_0x30ba87(0x86)][_0x1d1867],{'columnName':_0x1d1867,'column':_0x59d968,'record':_0x299ffa,'after':_0x336bb5,'before':_0x3c07f9,'row':_0x41aeee},!0x1))[_0x30ba87(0x92)][_0x30ba87(0x75)][_0x30ba87(0x92)]['result'];if(!_0x2e8339)return;_0x1afa51=this[_0x30ba87(0x94)]?this[_0x30ba87(0x94)][_0x30ba87(0x94)][_0x30ba87(0xad)]:this,Object[_0x30ba87(0x93)](_0x2e8339)[_0x30ba87(0xac)](_0x16dfb3=>{const _0x17f8d2=_0x30ba87;_0x1afa51[_0x17f8d2(0xa3)](new CustomEvent(_0x17f8d2(0x9f),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x299ffa,'row':_0x41aeee,'after':_0x2e8339[_0x16dfb3],'before':_0x299ffa[_0x16dfb3],'column':{'name':_0x16dfb3}}}));});}this[_0x30ba87(0xa3)](new CustomEvent('data-changed',{'bubbles':!0x0,'composed':!0x0,'detail':_0x2ff75f[_0x30ba87(0x99)]}));}async[a0_0x478d5a(0x95)](){const _0x594aff=a0_0x478d5a;super['connectedCallback']&&await super[_0x594aff(0x95)](),this[_0x594aff(0x8e)][_0x594aff(0x77)]()[_0x594aff(0x90)](_0x594aff(0x88))?this['addEventListener'](_0x594aff(0xa8),async _0x3c6c01=>{const _0x49eeeb=_0x594aff;await this[_0x49eeeb(0x91)](_0x3c6c01);}):this['addEventListener']('field-change',async _0x285a73=>{const _0x95b508=_0x594aff;await this[_0x95b508(0x91)](_0x285a73);});}async['pageUpdated'](_0x43ea23,_0x294d2e,_0x2be2b8){const _0x216ed4=a0_0x478d5a;let _0x343a86=this[_0x216ed4(0x7e)]?.[_0x216ed4(0xaf)]?this[_0x216ed4(0x7e)]['params']:{};this[_0x216ed4(0x8b)]&&this[_0x216ed4(0x8d)]&&0x0==_0x2be2b8['active']&&ValueUtil[_0x216ed4(0x74)](_0x343a86)&&this['fetch']();}get[a0_0x478d5a(0xa1)](){const _0x29d084=a0_0x478d5a;return!ValueUtil[_0x29d084(0x71)](this[_0x29d084(0xa0)])&&this[_0x29d084(0xa0)];}get[a0_0x478d5a(0x8b)](){return!this['is_detail']&&!this['is_popup'];}async['getAndParseMenuMeta'](){const _0x2f3b2f=a0_0x478d5a;let _0x258bf9=await MetaApi[_0x2f3b2f(0x87)](this);_0x258bf9&&(this[_0x2f3b2f(0x9a)]=_0x258bf9[_0x2f3b2f(0x83)],this[_0x2f3b2f(0xa6)]=_0x258bf9['etc'],this[_0x2f3b2f(0x7f)]&&this[_0x2f3b2f(0x7f)](_0x258bf9),this[_0x2f3b2f(0xa4)]&&this['parseBasicServiceConfigs'](_0x258bf9),this['parseBasicFormConfigs']&&this[_0x2f3b2f(0x7a)](_0x258bf9),this[_0x2f3b2f(0xa2)]&&this[_0x2f3b2f(0xa2)](_0x258bf9),this[_0x2f3b2f(0x8f)]&&this['parseBasicButtonConfigs'](_0x258bf9));}async[a0_0x478d5a(0x84)](){const _0x3ea611=a0_0x478d5a;ValueUtil[_0x3ea611(0x74)](this[_0x3ea611(0x94)])?this[_0x3ea611(0x94)][_0x3ea611(0x84)]():(ValueUtil['isNotEmpty'](this['filterForm'])||this[_0x3ea611(0x96)])&&await this[_0x3ea611(0x96)]();}async[a0_0x478d5a(0xab)](_0xbf7fdc,_0x1ef028,_0x246390){const _0x59501b=a0_0x478d5a;let _0x152375=TermsUtil['tTitle'](_0xbf7fdc[_0x59501b(0x80)]);ValueUtil['isNotEmpty'](_0xbf7fdc[_0x59501b(0x7c)])&&(_0x152375=_0x152375+'-'+ValueUtil['getParams'](_0x1ef028,..._0xbf7fdc[_0x59501b(0x7c)][_0x59501b(0x73)]('.'))),MetaApi['openDynamicPopup'](_0x152375,_0xbf7fdc,_0x1ef028,_0x246390);}async[a0_0x478d5a(0x98)](_0x5ee77f,_0x17e0be,_0x5a5629){const _0x348d69=a0_0x478d5a;let _0x2d2611=await MetaApi[_0x348d69(0x85)](_0x5ee77f[_0x348d69(0x9e)],_0x5ee77f[_0x348d69(0x9e)],_0x17e0be);!0x1!==_0x2d2611&&!_0x2d2611[_0x348d69(0x7b)]&&ValueUtil[_0x348d69(0x74)](_0x5ee77f[_0x348d69(0x82)])&&_0x5a5629();}[a0_0x478d5a(0xae)](_0x1d7bd2){const _0x47c27a=a0_0x478d5a;this[_0x47c27a(0x9d)]=_0x1d7bd2,this[_0x47c27a(0x84)]();}};
@@ -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_0x3214bf=a0_0x4257;(function(_0x138739,_0x2aea88){const _0x24d105=a0_0x4257,_0x214753=_0x138739();while(!![]){try{const _0x516cb3=parseInt(_0x24d105(0xd7))/0x1*(parseInt(_0x24d105(0xdf))/0x2)+parseInt(_0x24d105(0xef))/0x3*(parseInt(_0x24d105(0xfe))/0x4)+parseInt(_0x24d105(0xc8))/0x5+parseInt(_0x24d105(0xdb))/0x6+parseInt(_0x24d105(0xda))/0x7+parseInt(_0x24d105(0xcc))/0x8+-parseInt(_0x24d105(0xea))/0x9;if(_0x516cb3===_0x2aea88)break;else _0x214753['push'](_0x214753['shift']());}catch(_0x76c109){_0x214753['push'](_0x214753['shift']());}}}(a0_0x5df4,0xca6a7));function a0_0x5df4(){const _0x1e4d2d=['findOne','exportableData','renderRoot','getButtonContainer','getData','parseGridConfigSet','searchConfig','parseBasicGridConfigs','ox-filters-form','53707698bckVyE','connectedCallback','grid','search','pageInitialized','6ubVToq','gristId','forEach','patchesForUpdateMultiple','activityDataSet','getContextObject','getBasicGristStyles','save','getParams','isNotEmpty','properties','export','gridColumnConfig','isElement','shadowRoot','1812180kBrxnB','filterForm','delete','getSelectedIdList','gridEmphasized','deleteByIds','import','getBasicGristHtml','querySelector','6726635lRtMkl','menuInfo','filterFormId','find','11131696aziskH','startsWith','data','parseGristConfigs','getAndParseMenuMeta','render','isPage','firstUpdated','records','grist','keys','632941UejGoA','styles','gristConfigSet','10995278OzwFFu','5700258CArXVa','grid_column','dataSet','ox-grist','2tNgKzU','fetch'];a0_0x5df4=function(){return _0x1e4d2d;};return a0_0x5df4();}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_0x4257(_0x5d6392,_0x5b563a){const _0x5df45f=a0_0x5df4();return a0_0x4257=function(_0x425730,_0x1b17b1){_0x425730=_0x425730-0xc5;let _0x28008a=_0x5df45f[_0x425730];return _0x28008a;},a0_0x4257(_0x5d6392,_0x5b563a);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x546e79=>class extends MetaButtonMixin(_0x546e79){static get[a0_0x3214bf(0xd8)](){const _0xcd8425=a0_0x3214bf;return MetaApi[_0xcd8425(0xf5)]();}static get[a0_0x3214bf(0xf9)](){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_0x3214bf(0xd5)](){const _0x3d5c84=a0_0x3214bf;return this[_0x3d5c84(0xe3)]?.[_0x3d5c84(0xc7)](this[_0x3d5c84(0xf0)]);}get[a0_0x3214bf(0xff)](){const _0x3f4956=a0_0x3214bf;return this[_0x3f4956(0xfd)]?.[_0x3f4956(0xc7)](this[_0x3f4956(0xca)]);}get['context'](){const _0x37ef6c=a0_0x3214bf;return MetaUiUtil[_0x37ef6c(0xf4)](this);}async[a0_0x3214bf(0xeb)](){const _0x186ede=a0_0x3214bf;this['gristId']=_0x186ede(0xde),this[_0x186ede(0xca)]=_0x186ede(0xe9),await this[_0x186ede(0xd0)](),this[_0x186ede(0xfc)]&&await this[_0x186ede(0xcf)](),this[_0x186ede(0xf3)]&&(this[_0x186ede(0xdd)]=this['activityDataSet']),super[_0x186ede(0xeb)]&&await super[_0x186ede(0xeb)]();}async[a0_0x3214bf(0xd3)](){const _0x307f44=a0_0x3214bf;super[_0x307f44(0xd3)]&&await super[_0x307f44(0xd3)]();}async[a0_0x3214bf(0xee)](){const _0x40d426=a0_0x3214bf;this[_0x40d426(0xd2)]&&await this[_0x40d426(0xcf)](),super[_0x40d426(0xee)]&&await super['pageInitialized']();}[a0_0x3214bf(0xd1)](){const _0x1891f6=a0_0x3214bf;return html`
2
+ ${MetaApi[_0x1891f6(0xc6)](this)}
3
+ ${this[_0x1891f6(0xd2)]?html``:MetaUiUtil[_0x1891f6(0xe4)](this)}
4
+ `;}[a0_0x3214bf(0xe8)](_0x5015cf){const _0x41ea90=a0_0x3214bf;this['gridConfig']=_0x5015cf[_0x41ea90(0xec)],this[_0x41ea90(0xfb)]=_0x5015cf[_0x41ea90(0xdc)],this[_0x41ea90(0xe7)]=_0x5015cf[_0x41ea90(0xed)],this[_0x41ea90(0x102)]=_0x5015cf[_0x41ea90(0x102)];}async[a0_0x3214bf(0xcf)](){const _0x22af48=a0_0x3214bf;this[_0x22af48(0xd9)]=await MetaApi[_0x22af48(0xe6)](this);}async['fetch'](){const _0x474e5d=a0_0x3214bf;await this[_0x474e5d(0xd5)][_0x474e5d(0xe0)]();}async[a0_0x3214bf(0xf6)](){const _0x1eb14f=a0_0x3214bf;let _0x6c6454=MetaApi[_0x1eb14f(0xf2)](this[_0x1eb14f(0xd5)]);!!ValueUtil[_0x1eb14f(0xf8)](_0x6c6454)&&await this['updateMultiple'](_0x6c6454)&&this[_0x1eb14f(0xe0)]();}async[a0_0x3214bf(0xcb)](){const _0x1e7ab3=a0_0x3214bf;let _0x755aa=MetaApi['getSelectedIdList'](this[_0x1e7ab3(0xd5)],!0x0);return ValueUtil[_0x1e7ab3(0xf8)](_0x755aa)?await this[_0x1e7ab3(0xe1)](_0x755aa[0x0]):{};}async[a0_0x3214bf(0x100)](){const _0x4afd1a=a0_0x3214bf;let _0x8f60ed=MetaApi[_0x4afd1a(0x101)](this[_0x4afd1a(0xd5)],!0x0);!!ValueUtil[_0x4afd1a(0xf8)](_0x8f60ed)&&await this[_0x4afd1a(0x103)](_0x8f60ed)&&this[_0x4afd1a(0xe0)]();}async[a0_0x3214bf(0xfa)](){const _0x4359d8=a0_0x3214bf;let _0x303345=TermsUtil['tTitle'](ValueUtil[_0x4359d8(0xf7)](this[_0x4359d8(0xc9)],'title'));return await MetaApi[_0x4359d8(0xe2)](this[_0x4359d8(0xfc)],_0x303345,this[_0x4359d8(0xd5)]);}async[a0_0x3214bf(0xc5)](){}async['clear'](){const _0x3ec817=a0_0x3214bf;this[_0x3ec817(0xd5)]&&(this[_0x3ec817(0xd5)][_0x3ec817(0xce)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x3214bf(0xe5)](){const _0x113cc9=a0_0x3214bf;let _0x16c972=this['grist']['___data'][_0x113cc9(0xd4)];return _0x16c972=JSON['parse'](JSON['stringify'](_0x16c972)),_0x16c972[_0x113cc9(0xf1)](_0x4e1672=>{const _0x157282=_0x113cc9;Object[_0x157282(0xd6)](_0x4e1672)[_0x157282(0xf1)](_0x3993f1=>{const _0x348c52=_0x157282;_0x3993f1[_0x348c52(0xcd)]('__')&&delete _0x4e1672[_0x3993f1];});}),_0x16c972;}};
@@ -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
+ function a0_0x2fb1(_0x5de94b,_0x1f2ed9){const _0x1b9f38=a0_0x1b9f();return a0_0x2fb1=function(_0x2fb187,_0x55efa5){_0x2fb187=_0x2fb187-0x17a;let _0x1179b9=_0x1b9f38[_0x2fb187];return _0x1179b9;},a0_0x2fb1(_0x5de94b,_0x1f2ed9);}const a0_0x118934=a0_0x2fb1;function a0_0x1b9f(){const _0x337bb5=['getCustomButtonContainerStyle','getContextButtons','isPage','122188PtXrJM','parseBasicButtonConfigs','193972fSBdCk','330pVsjYy','isButtonExist','11333128qMxkXs','17ixVzHt','gristButtonHandler','getBasicButtonHandler','305XNJGrZ','button','9WjbZYh','buttonConfig','2120650RfuwGS','1418292vvWxOV','useButtonImport','import','37690NAFKUV','export','getButtonActionHandler','getButtonContainer','120381SyMeaQ','useButtonExport','customButtonHandler','add'];a0_0x1b9f=function(){return _0x337bb5;};return a0_0x1b9f();}(function(_0x1faf82,_0x554754){const _0x2d7596=a0_0x2fb1,_0x8c1e9c=_0x1faf82();while(!![]){try{const _0x466e94=parseInt(_0x2d7596(0x195))/0x1*(-parseInt(_0x2d7596(0x191))/0x2)+-parseInt(_0x2d7596(0x188))/0x3+parseInt(_0x2d7596(0x18f))/0x4*(parseInt(_0x2d7596(0x17c))/0x5)+-parseInt(_0x2d7596(0x181))/0x6+-parseInt(_0x2d7596(0x180))/0x7+parseInt(_0x2d7596(0x194))/0x8*(parseInt(_0x2d7596(0x17e))/0x9)+-parseInt(_0x2d7596(0x184))/0xa*(parseInt(_0x2d7596(0x192))/0xb);if(_0x466e94===_0x554754)break;else _0x8c1e9c['push'](_0x8c1e9c['shift']());}catch(_0x462771){_0x8c1e9c['push'](_0x8c1e9c['shift']());}}}(a0_0x1b9f,0xe52dd));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x2b5766=>class extends MetaServiceMixin(_0x2b5766){static get['properties'](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x118934(0x18c)](){return MetaUiUtil['getCustomButtonContainerStyles']();}[a0_0x118934(0x18d)](){return MetaUiUtil['getContextButtons'](this);}[a0_0x118934(0x187)](){const _0x216c66=a0_0x118934;return this[_0x216c66(0x18e)]?html``:MetaUiUtil[_0x216c66(0x187)](this);}async[a0_0x118934(0x17b)](_0x44e461,_0x4b49d0,_0x322d33){const _0x2cc328=a0_0x118934;return await MetaUiUtil[_0x2cc328(0x186)](this,_0x44e461,_0x4b49d0,_0x322d33);}async[a0_0x118934(0x18a)](_0x21dc5f){const _0x42f197=a0_0x118934;await MetaUiUtil[_0x42f197(0x18a)](this,_0x21dc5f);}async[a0_0x118934(0x17a)](_0x4c1357,_0x4aaec8){const _0x53700d=a0_0x118934;await MetaUiUtil[_0x53700d(0x17a)](this,_0x4c1357,_0x4aaec8);}[a0_0x118934(0x190)](_0x450c17){const _0x4a9f12=a0_0x118934;this[_0x4a9f12(0x17f)]=_0x450c17[_0x4a9f12(0x17d)],this[_0x4a9f12(0x182)]=MetaUiUtil[_0x4a9f12(0x193)](this[_0x4a9f12(0x17f)],_0x4a9f12(0x183)),this[_0x4a9f12(0x189)]=MetaUiUtil[_0x4a9f12(0x193)](this[_0x4a9f12(0x17f)],_0x4a9f12(0x185)),this['useButtonAdd']=MetaUiUtil[_0x4a9f12(0x193)](this['buttonConfig'],_0x4a9f12(0x18b));}};
@@ -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_0x16bf3c=a0_0x44f3;(function(_0x5537e2,_0x2d9cd0){const _0x2905ee=a0_0x44f3,_0x3be336=_0x5537e2();while(!![]){try{const _0x488b4c=-parseInt(_0x2905ee(0x1fd))/0x1*(-parseInt(_0x2905ee(0x207))/0x2)+-parseInt(_0x2905ee(0x1fb))/0x3+parseInt(_0x2905ee(0x203))/0x4*(-parseInt(_0x2905ee(0x230))/0x5)+-parseInt(_0x2905ee(0x20b))/0x6*(parseInt(_0x2905ee(0x22d))/0x7)+parseInt(_0x2905ee(0x210))/0x8*(parseInt(_0x2905ee(0x212))/0x9)+-parseInt(_0x2905ee(0x1fa))/0xa*(-parseInt(_0x2905ee(0x1e0))/0xb)+parseInt(_0x2905ee(0x224))/0xc*(parseInt(_0x2905ee(0x202))/0xd);if(_0x488b4c===_0x2d9cd0)break;else _0x3be336['push'](_0x3be336['shift']());}catch(_0x3d9e10){_0x3be336['push'](_0x3be336['shift']());}}}(a0_0x1600,0x3a024));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x44f3(_0x44051f,_0x500f88){const _0x16004d=a0_0x1600();return a0_0x44f3=function(_0x44f3be,_0x516404){_0x44f3be=_0x44f3be-0x1dd;let _0x2ce02b=_0x16004d[_0x44f3be];return _0x2ce02b;},a0_0x44f3(_0x44051f,_0x500f88);}import{ValueUtil}from'../utils/value-util';import{UiUtil}from'../utils/ui-util';function a0_0x1600(){const _0x487144=['form-field-change','filter','styles','save','__dirtyfields__','cuFlag','getAndParseMenuMeta','parseBasicFormConfigs','entries','isEquals','editable','column','findOne','formRenderConfig','3510230eKXbwX','744441rwDenw','dispatchEvent','95MiBxMu','isNotEmpty','dataSet','Escape','__seq__','5695703qRIGXS','16jyXIgO','formColumnConfig','setAttribute','properties','3616EulBsb','Esc','orgData','true','385908rcMSQO','focus','formConfigSet','tText','tLabel','75064ACyTIR','button','9IrMfcr','getBasicFormHtml','clear','header','OX-GRID-FIELD','record','keydown','__dirty__','before','field-change','removeGarbageData','isElement','patchData','assign','activityDataSet','pageInitialized','parseFormConfigs','updateMultiple','12jpPuHT','isPage','stopPropagation','getData','detail','connectedCallback','currentTarget','addEventListener','isEmpty','7enUPnH','after','title.info','525285tHimVO','forEach','parent_id','validation','renderRoot','keys','name','text.check-mandatory','editing','target','__origin__','startsWith','fetch','map','function','confirm','grid_column','form','11eNxozt','info','click','getContextObject','render','currentData','dirtyData','is_activity','firstUpdated','removeAttribute','code-input','object'];a0_0x1600=function(){return _0x487144;};return a0_0x1600();}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x2df28e=>class extends MetaButtonMixin(_0x2df28e){static get[a0_0x16bf3c(0x1ee)](){return MetaApi['getBasicFormStyles']();}static get[a0_0x16bf3c(0x206)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get['context'](){const _0x1b775c=a0_0x16bf3c;return MetaUiUtil[_0x1b775c(0x1e3)](this);}async[a0_0x16bf3c(0x229)](){const _0x511240=a0_0x16bf3c;await this[_0x511240(0x1f2)](),this[_0x511240(0x21d)]&&await this['parseFormConfigs'](),this[_0x511240(0x220)]&&(this[_0x511240(0x1ff)]=this[_0x511240(0x220)]),!0x0!==this[_0x511240(0x1e7)]||this[_0x511240(0x232)]||(this['parent_id']='activity'),super[_0x511240(0x229)]&&await super['connectedCallback'](),this[_0x511240(0x21d)]&&await this[_0x511240(0x23c)](),this[_0x511240(0x234)][_0x511240(0x22b)](_0x511240(0x218),_0x134384=>{const _0x53bce9=_0x511240;switch(_0x134384['key']){case _0x53bce9(0x208):case _0x53bce9(0x200):case'Enter':this[_0x53bce9(0x20c)](),this['currentTarget']&&this[_0x53bce9(0x22a)][_0x53bce9(0x1e9)](_0x53bce9(0x238)),this['currentTarget']=null;}}),this[_0x511240(0x234)][_0x511240(0x22b)](_0x511240(0x1e2),_0x548465=>{const _0x38821c=_0x511240;_0x548465[_0x38821c(0x226)]();let _0x1916d7=_0x548465[_0x38821c(0x239)];if(this[_0x38821c(0x22a)]&&(this[_0x38821c(0x20c)](),this[_0x38821c(0x22a)]['removeAttribute']('editing')),_0x38821c(0x216)!==_0x1916d7['tagName']||!_0x1916d7[_0x38821c(0x1f7)][_0x38821c(0x217)][_0x38821c(0x1f6)])return this[_0x38821c(0x20c)](),void(this[_0x38821c(0x22a)]=null);this[_0x38821c(0x22a)]=_0x1916d7,_0x1916d7[_0x38821c(0x205)](_0x38821c(0x238),_0x38821c(0x20a));}),this[_0x511240(0x22b)](_0x511240(0x21b),_0x2a1b70=>{const _0x572eab=_0x511240;var {after:_0x1e0424,before:_0x38d53d,column:_0x2b3fb4,record:_0x533b0b,row:_0x2f80a8}=_0x2a1b70[_0x572eab(0x228)];if(ValueUtil[_0x572eab(0x1f5)](_0x1e0424,_0x38d53d))return;var _0x1d17b2=_0x2b3fb4[_0x572eab(0x233)];if(_0x1d17b2&&_0x572eab(0x23e)==typeof _0x1d17b2&&!_0x1d17b2['call'](this,_0x1e0424,_0x38d53d,_0x533b0b,_0x2b3fb4))return;let _0x1b4f41=_0x2b3fb4[_0x572eab(0x236)];_0x533b0b[_0x1b4f41]=_0x1e0424,_0x533b0b['__dirtyfields__']=_0x533b0b[_0x572eab(0x1f0)]||{},_0x533b0b['__origin__']=_0x533b0b[_0x572eab(0x23a)]||{},_0x533b0b[_0x572eab(0x1f0)][_0x1b4f41]={'before':_0x533b0b[_0x572eab(0x23a)][_0x1b4f41],'after':_0x533b0b[_0x1b4f41]},ValueUtil[_0x572eab(0x1f5)](_0x533b0b[_0x572eab(0x1f0)][_0x1b4f41][_0x572eab(0x21a)],_0x533b0b['__dirtyfields__'][_0x1b4f41]['after'])&&delete _0x533b0b[_0x572eab(0x1f0)][_0x1b4f41],ValueUtil[_0x572eab(0x1fe)](_0x533b0b[_0x572eab(0x1f0)])?_0x533b0b[_0x572eab(0x219)]='M':_0x533b0b[_0x572eab(0x219)]='',this['record']={..._0x533b0b},this[_0x572eab(0x1fc)](new CustomEvent(_0x572eab(0x1ec),{'bubbles':!0x0,'composed':!0x0,'detail':_0x2a1b70[_0x572eab(0x228)]}));});}async[a0_0x16bf3c(0x1e8)](){const _0x13fd2a=a0_0x16bf3c;super[_0x13fd2a(0x1e8)]&&await super[_0x13fd2a(0x1e8)]();}async[a0_0x16bf3c(0x221)](){const _0x387232=a0_0x16bf3c;this[_0x387232(0x225)]&&await this[_0x387232(0x222)](),super[_0x387232(0x221)]&&await super[_0x387232(0x221)](),this[_0x387232(0x225)]&&await this[_0x387232(0x23c)]();}[a0_0x16bf3c(0x1e4)](){const _0x36e26e=a0_0x16bf3c;return MetaApi[_0x36e26e(0x213)](this);}[a0_0x16bf3c(0x1f3)](_0xd467ed){const _0x236e45=a0_0x16bf3c;this['formColumnConfig']=_0xd467ed[_0x236e45(0x1de)],this[_0x236e45(0x1f9)]=_0xd467ed[_0x236e45(0x1df)],_0xd467ed[_0x236e45(0x211)]=_0xd467ed[_0x236e45(0x211)]['filter'](_0x361ace=>_0x236e45(0x1ef)==_0x361ace[_0x236e45(0x236)]);}async['parseFormConfigs'](){const _0x36ef88=a0_0x16bf3c;this[_0x36ef88(0x20d)]=await MetaApi['parseFormConfigSet'](this);}get[a0_0x16bf3c(0x209)](){const _0x14ec1c=a0_0x16bf3c;return this[_0x14ec1c(0x21c)](this[_0x14ec1c(0x217)][_0x14ec1c(0x23a)]);}get[a0_0x16bf3c(0x1e6)](){const _0x3fb96b=a0_0x16bf3c;if(ValueUtil[_0x3fb96b(0x22c)]((this[_0x3fb96b(0x217)]||{})[_0x3fb96b(0x1f0)]))return{};let _0x158b00={};return Object[_0x3fb96b(0x1f4)](this[_0x3fb96b(0x217)][_0x3fb96b(0x1f0)])[_0x3fb96b(0x23d)](([_0x254e40,_0x101e34])=>{const _0x5bc956=_0x3fb96b;0x0==_0x254e40[_0x5bc956(0x23b)]('__')&&(_0x158b00[_0x254e40]=_0x101e34[_0x5bc956(0x22e)]);}),_0x158b00;}get[a0_0x16bf3c(0x1e5)](){const _0x49d359=a0_0x16bf3c;return this[_0x49d359(0x21c)](this['record']);}[a0_0x16bf3c(0x21c)](_0xd53dd0){const _0x139071=a0_0x16bf3c;let _0x34ccca={};if(_0xd53dd0)return Object[_0x139071(0x1f4)](_0xd53dd0)[_0x139071(0x23d)](([_0x2f3363,_0x1b1fc3])=>{0x0==_0x2f3363['startsWith']('__')&&(_0x34ccca[_0x2f3363]=_0x1b1fc3);}),_0x34ccca;}get[a0_0x16bf3c(0x21e)](){const _0x16386e=a0_0x16bf3c;let _0x49b488=this['dirtyData'],_0x56bd2a=this['record'],_0x214ffd=(this[_0x16386e(0x204)]||[])['filter'](_0x208ec8=>_0x16386e(0x1ea)===_0x208ec8['type'])['map'](_0x503999=>_0x503999[_0x16386e(0x236)]);if(!ValueUtil['isEmpty'](_0x49b488))return ValueUtil['isNotEmpty'](_0x56bd2a['id'])?(_0x49b488['id']=_0x56bd2a['id'],_0x49b488[_0x16386e(0x1f1)]='M'):_0x49b488['cuFlag']='+',Object[_0x16386e(0x235)](_0x49b488)[_0x16386e(0x231)](_0x22e520=>{const _0x13b8d5=_0x16386e;_0x13b8d5(0x1eb)==typeof _0x49b488[_0x22e520]&&0x0==_0x214ffd['includes'](_0x22e520)&&(_0x49b488[_0x22e520]={'id':_0x49b488[_0x22e520]['id']});}),[_0x49b488];}async[a0_0x16bf3c(0x23c)](){const _0x38a162=a0_0x16bf3c;if(ValueUtil[_0x38a162(0x22c)](this[_0x38a162(0x232)]))return;let _0x4961a0=await this[_0x38a162(0x1f8)](this[_0x38a162(0x232)]);_0x4961a0[_0x38a162(0x201)]=0x1;let _0x316932={};Object[_0x38a162(0x21f)](_0x316932,_0x4961a0),_0x4961a0[_0x38a162(0x23a)]=_0x316932,this[_0x38a162(0x217)]={..._0x4961a0};}async['save'](){const _0x2a2f8e=a0_0x16bf3c;let _0x135e57=this[_0x2a2f8e(0x21e)];if(ValueUtil[_0x2a2f8e(0x22c)](_0x135e57))return void MetaApi['showAlertPopup'](_0x2a2f8e(0x22f),'text.NOTHING_CHANGED');let _0x2d1bfa={};(this[_0x2a2f8e(0x204)]||[])[_0x2a2f8e(0x1ed)](_0x4e6a41=>!0x0===_0x4e6a41['mandatory'])[_0x2a2f8e(0x231)](_0x5f21e5=>{const _0x53e5d9=_0x2a2f8e;_0x2d1bfa[_0x5f21e5[_0x53e5d9(0x236)]]=_0x5f21e5[_0x53e5d9(0x215)];});let _0x3b8f9=this[_0x2a2f8e(0x1e5)];for(let _0x3b2aa2 in _0x2d1bfa)if(void 0x0===_0x3b8f9[_0x3b2aa2]||''==_0x3b8f9[_0x3b2aa2])return void UiUtil['showAlertPopup'](_0x2a2f8e(0x237),TermsUtil[_0x2a2f8e(0x20e)]('check-mandatory-field',{'x':TermsUtil[_0x2a2f8e(0x20f)](_0x2d1bfa[_0x3b2aa2])}),_0x2a2f8e(0x1e1),_0x2a2f8e(0x1dd));let _0x55a255=await this[_0x2a2f8e(0x223)](_0x135e57);return _0x55a255&&await this[_0x2a2f8e(0x23c)](),_0x55a255;}async[a0_0x16bf3c(0x214)](){const _0x46a1e3=a0_0x16bf3c;this['record']&&(this[_0x46a1e3(0x217)]={});}[a0_0x16bf3c(0x227)](){const _0x394ea8=a0_0x16bf3c;return this[_0x394ea8(0x1e5)]||{};}};
@@ -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_0x5d9683=a0_0x257f;function a0_0x3637(){const _0x35cb11=['options','delete','gridEmphasized','stringify','6zFSRbn','ox-filters-form-base','columns','parse','779295UGNxTS','name','getSelectedIdList','activityDataSet','type','render','isPage','getParams','push','actions','querySelector','deleteByIds','connectedCallback','patchesForUpdateMultiple','findOne','menuInfo','parseGristConfigs','records','searchFieldValues','renderRoot','forEach','4330016JAHqBM','543545BvRFkA','main','firstUpdated','useFilterForm','searchFields','exportable','exportableData','filter','operator','gristId','keys','header','useMasterFilterForm','gridColumnConfig','2213104lyMqcB','context','getData','363JlPDIl','value','gristConfigSet','isElement','fetch','ox-grist','startsWith','map','3769647fdIiBB','isNotEmpty','918SFgMdF','getBasicGristTabStyles','clear','grist','12904CxlgcS','parseGridConfigSet','214520jhBpFC','pageInitialized','title','export','tTitle','search','record','meta-tab-element','grid','properties','dataSet','styles','filterFormId','getAndParseMenuMeta','importable','shadowRoot','#detail','searchConfig','___data'];a0_0x3637=function(){return _0x35cb11;};return a0_0x3637();}(function(_0x587abc,_0x44d98c){const _0x2f6820=a0_0x257f,_0x374224=_0x587abc();while(!![]){try{const _0x40c10b=parseInt(_0x2f6820(0xb7))/0x1+parseInt(_0x2f6820(0xd6))/0x2*(-parseInt(_0x2f6820(0xc8))/0x3)+-parseInt(_0x2f6820(0xc5))/0x4+parseInt(_0x2f6820(0xa1))/0x5+-parseInt(_0x2f6820(0x9d))/0x6*(parseInt(_0x2f6820(0xd0))/0x7)+-parseInt(_0x2f6820(0xb6))/0x8+parseInt(_0x2f6820(0xd2))/0x9*(parseInt(_0x2f6820(0xd8))/0xa);if(_0x40c10b===_0x44d98c)break;else _0x374224['push'](_0x374224['shift']());}catch(_0xa0843e){_0x374224['push'](_0x374224['shift']());}}}(a0_0x3637,0x73aa7));function a0_0x257f(_0x436d35,_0x36fc8f){const _0x363732=a0_0x3637();return a0_0x257f=function(_0x257f4f,_0x4a79c2){_0x257f4f=_0x257f4f-0x8f;let _0x1c42b6=_0x363732[_0x257f4f];return _0x1c42b6;},a0_0x257f(_0x436d35,_0x36fc8f);}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 MetaGristTabMixin=_0x23d91f=>class extends MetaButtonMixin(_0x23d91f){static get[a0_0x5d9683(0x91)](){const _0x3999d2=a0_0x5d9683;return MetaApi[_0x3999d2(0xd3)]();}static get[a0_0x5d9683(0x8f)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get['grist'](){const _0x4f026d=a0_0x5d9683;return this[_0x4f026d(0xb4)][_0x4f026d(0xab)](this[_0x4f026d(0xc0)]);}get['filterForm'](){const _0x2b2eb7=a0_0x5d9683;return this[_0x2b2eb7(0x95)]?.[_0x2b2eb7(0xab)](this[_0x2b2eb7(0x92)]);}get['detailElement'](){const _0x2719e1=a0_0x5d9683;return this[_0x2719e1(0x95)]['querySelector'](_0x2719e1(0x96));}get[a0_0x5d9683(0xc6)](){const _0x18c007=a0_0x5d9683;let _0xf6a619=MetaUiUtil['getContextObject'](this);return _0xf6a619[_0x18c007(0xaa)]&&delete _0xf6a619[_0x18c007(0xaa)],_0xf6a619[_0x18c007(0xbc)]&&delete _0xf6a619[_0x18c007(0xbc)],_0xf6a619[_0x18c007(0x94)]&&delete _0xf6a619[_0x18c007(0x94)],_0xf6a619;}async[a0_0x5d9683(0xad)](){const _0x5e1697=a0_0x5d9683;this[_0x5e1697(0xc0)]=_0x5e1697(0xcd),this[_0x5e1697(0x92)]=_0x5e1697(0x9e),await this[_0x5e1697(0x93)](),this[_0x5e1697(0xcb)]&&await this[_0x5e1697(0xb1)](),this[_0x5e1697(0xa4)]&&(this[_0x5e1697(0x90)]=(this[_0x5e1697(0xa4)]||{})[_0x5e1697(0xb8)]),super['connectedCallback']&&await super[_0x5e1697(0xad)]();}async[a0_0x5d9683(0xb9)](){const _0x3538fb=a0_0x5d9683;super[_0x3538fb(0xb9)]&&await super[_0x3538fb(0xb9)]();}async[a0_0x5d9683(0xd9)](){const _0x423d44=a0_0x5d9683;this[_0x423d44(0xa7)]&&await this['parseGristConfigs'](),super[_0x423d44(0xd9)]&&await super[_0x423d44(0xd9)]();}[a0_0x5d9683(0xa6)](){return MetaApi['getGristTabHtml'](this);}['parseBasicGridConfigs'](_0x450320){const _0x3636e3=a0_0x5d9683;this['gridConfig']=_0x450320[_0x3636e3(0xe0)],this[_0x3636e3(0xc4)]=_0x450320['grid_column'],this[_0x3636e3(0x97)]=_0x450320[_0x3636e3(0xdd)],this[_0x3636e3(0x9b)]=_0x450320[_0x3636e3(0x9b)];}async[a0_0x5d9683(0xb1)](){const _0x2dfd87=a0_0x5d9683;this['gristConfigSet']=await MetaApi[_0x2dfd87(0xd7)](this),this[_0x2dfd87(0xc3)]=!0x0===this[_0x2dfd87(0xba)],this[_0x2dfd87(0xba)]=!0x1,this[_0x2dfd87(0xb3)]=[],this[_0x2dfd87(0xbb)]=this[_0x2dfd87(0xca)][_0x2dfd87(0x9f)][_0x2dfd87(0xbe)](_0x4b717d=>_0x4b717d[_0x2dfd87(0xbe)])[_0x2dfd87(0xcf)](_0x44ecdb=>{const _0x3b8198=_0x2dfd87;let _0x2729b5={'name':_0x44ecdb['name'],'type':_0x3b8198(0xdd)===_0x44ecdb[_0x3b8198(0xbe)]['operator']?_0x3b8198(0xdd):_0x44ecdb[_0x3b8198(0xa5)],'label':_0x44ecdb[_0x3b8198(0xc2)],'operator':_0x44ecdb[_0x3b8198(0xbe)][_0x3b8198(0xbf)]?_0x44ecdb[_0x3b8198(0xbe)][_0x3b8198(0xbf)]:'eq'};return _0x44ecdb[_0x3b8198(0xbe)]['options']&&(_0x2729b5['options']=_0x44ecdb[_0x3b8198(0xbe)][_0x3b8198(0x99)]),_0x44ecdb['record']['options']&&(_0x2729b5[_0x3b8198(0x99)]=_0x44ecdb[_0x3b8198(0xde)]['options']),_0x44ecdb[_0x3b8198(0xbe)][_0x3b8198(0xc9)]&&this['searchFieldValues'][_0x3b8198(0xa9)]({'name':_0x2729b5[_0x3b8198(0xa2)],'operator':_0x2729b5[_0x3b8198(0xbf)],'value':_0x44ecdb['filter']['value']}),delete _0x44ecdb['filter'],_0x2729b5;});}async[a0_0x5d9683(0xcc)](){const _0x55f23c=a0_0x5d9683;await this[_0x55f23c(0xd5)][_0x55f23c(0xcc)]();}async['beforeFetch']({page:_0x5efeef=0x0,limit:_0x3b1f1c=0x0,sortings:_0xc594e2=[],filters:_0x25421a=[]}){const _0x4276ad=a0_0x5d9683;let _0x375bbd=this[_0x4276ad(0xb4)][_0x4276ad(0xab)]('meta-tab-element');return await _0x375bbd[_0x4276ad(0xd4)](),!0x0;}async['save'](){const _0x5ab2a3=a0_0x5d9683;let _0x13b444=MetaApi[_0x5ab2a3(0xae)](this[_0x5ab2a3(0xd5)]);!!ValueUtil[_0x5ab2a3(0xd1)](_0x13b444)&&await this['updateMultiple'](_0x13b444)&&this['fetch']();}async['find'](){const _0x2d3d05=a0_0x5d9683;let _0x2c62bd=MetaApi[_0x2d3d05(0xa3)](this[_0x2d3d05(0xd5)],!0x0);return ValueUtil[_0x2d3d05(0xd1)](_0x2c62bd)?await this[_0x2d3d05(0xaf)](_0x2c62bd[0x0]):{};}async[a0_0x5d9683(0x9a)](){const _0x59f276=a0_0x5d9683;let _0x1f67cf=MetaApi[_0x59f276(0xa3)](this[_0x59f276(0xd5)],!0x0);!!ValueUtil[_0x59f276(0xd1)](_0x1f67cf)&&await this[_0x59f276(0xac)](_0x1f67cf)&&this[_0x59f276(0xcc)]();}async[a0_0x5d9683(0xdb)](){const _0x25f2a2=a0_0x5d9683;let _0x2f24ed=TermsUtil[_0x25f2a2(0xdc)](ValueUtil[_0x25f2a2(0xa8)](this[_0x25f2a2(0xb0)],_0x25f2a2(0xda)));return await MetaApi[_0x25f2a2(0xbd)](this['isElement'],_0x2f24ed,this['grist']);}async['import'](){}[a0_0x5d9683(0xc7)](){const _0x5f4dc6=a0_0x5d9683;let _0x53009d=this[_0x5f4dc6(0xd5)][_0x5f4dc6(0x98)][_0x5f4dc6(0xb2)];return _0x53009d=JSON[_0x5f4dc6(0xa0)](JSON[_0x5f4dc6(0x9c)](_0x53009d)),_0x53009d[_0x5f4dc6(0xb5)](_0x281681=>{const _0x34d812=_0x5f4dc6;Object[_0x34d812(0xc1)](_0x281681)['forEach'](_0x26817c=>{const _0x43f6ea=_0x34d812;_0x26817c[_0x43f6ea(0xce)]('__')&&delete _0x281681[_0x26817c];});}),{'main':_0x53009d,'detail':this[_0x5f4dc6(0xb4)]['querySelector'](_0x5f4dc6(0xdf))[_0x5f4dc6(0xc7)]()};}};
@@ -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_0x15579c=a0_0xa8ce;(function(_0x9df5c6,_0x108ad6){const _0x5d0c34=a0_0xa8ce,_0x2e69d0=_0x9df5c6();while(!![]){try{const _0x179553=-parseInt(_0x5d0c34(0x1d8))/0x1*(-parseInt(_0x5d0c34(0x1fd))/0x2)+parseInt(_0x5d0c34(0x1db))/0x3*(parseInt(_0x5d0c34(0x1fb))/0x4)+-parseInt(_0x5d0c34(0x1fa))/0x5*(parseInt(_0x5d0c34(0x1e2))/0x6)+-parseInt(_0x5d0c34(0x1e5))/0x7*(-parseInt(_0x5d0c34(0x1f0))/0x8)+parseInt(_0x5d0c34(0x1f6))/0x9*(-parseInt(_0x5d0c34(0x1f2))/0xa)+-parseInt(_0x5d0c34(0x1f7))/0xb+parseInt(_0x5d0c34(0x1f9))/0xc*(-parseInt(_0x5d0c34(0x20c))/0xd);if(_0x179553===_0x108ad6)break;else _0x2e69d0['push'](_0x2e69d0['shift']());}catch(_0x21d148){_0x2e69d0['push'](_0x2e69d0['shift']());}}}(a0_0x40bd,0x5cfd9));function a0_0xa8ce(_0x269ec3,_0x5c7723){const _0x40bd19=a0_0x40bd();return a0_0xa8ce=function(_0xa8ce6,_0x78ed4d){_0xa8ce6=_0xa8ce6-0x1d7;let _0x129c84=_0x40bd19[_0xa8ce6];return _0x129c84;},a0_0xa8ce(_0x269ec3,_0x5c7723);}import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x40bd(){const _0x284529=['styles','fetch','operator','searchConfig','searchFieldValues','gridEmphasized','parseBasicGridConfigs','8zgilNp','importable','170970bdAxBk','search','gristConfigSet','header','54BMqSZX','1791295fiamXH','filterFormId','17988KyuOFM','680450RefRWN','222328LPIKwz','type','24406fvpNCr','firstUpdated','querySelector','beforeFetch','gridColumnConfig','getContextObject','getMainGrist','clear','value','filterForm','shadowRoot','filter','masterElement','getBasicMainTabStyles','connectedCallback','663SLIxbr','push','useFilterForm','useButtonImport','ox-grist','pageInitialized','getAndParseMenuMeta','grist','name','ox-filters-form-base','actions','46NdHlhn','parseGristConfigs','isElement','6aqAqxF','getData','record','gristId','activityDataSet','options','columns','12INSlwu','useButtonExport','properties','2257101iPqWNS','grid_column','searchFields','parseGridConfigSet'];a0_0x40bd=function(){return _0x284529;};return a0_0x40bd();}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=_0x4cccbb=>class extends MetaButtonMixin(_0x4cccbb){static get[a0_0x15579c(0x1e9)](){const _0x384226=a0_0x15579c;return MetaApi[_0x384226(0x20a)]();}static get[a0_0x15579c(0x1e4)](){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_0x15579c(0x213)](){const _0x58174f=a0_0x15579c;return this[_0x58174f(0x209)][_0x58174f(0x203)]();}get[a0_0x15579c(0x206)](){const _0x1ff6b4=a0_0x15579c;return this[_0x1ff6b4(0x207)]?.[_0x1ff6b4(0x1ff)](this[_0x1ff6b4(0x1f8)]);}get['context'](){const _0x4bfb75=a0_0x15579c;let _0x741e29=MetaUiUtil[_0x4bfb75(0x202)](this);return _0x741e29['actions']&&delete _0x741e29[_0x4bfb75(0x1d7)],_0x741e29['exportable']&&delete _0x741e29['exportable'],_0x741e29[_0x4bfb75(0x1f1)]&&delete _0x741e29['importable'],_0x741e29;}async[a0_0x15579c(0x20b)](){const _0x450665=a0_0x15579c;this[_0x450665(0x1de)]=_0x450665(0x210),this[_0x450665(0x1f8)]=_0x450665(0x215),await this[_0x450665(0x212)](),this[_0x450665(0x1da)]&&await this[_0x450665(0x1d9)](),this['activityDataSet']&&(this['dataSet']=(this[_0x450665(0x1df)]||{})['main']),super[_0x450665(0x20b)]&&await super['connectedCallback']();}async[a0_0x15579c(0x1fe)](){const _0x4fea00=a0_0x15579c;super[_0x4fea00(0x1fe)]&&await super[_0x4fea00(0x1fe)]();}async[a0_0x15579c(0x211)](){const _0x12e52b=a0_0x15579c;this['isPage']&&await this[_0x12e52b(0x1d9)](),super['pageInitialized']&&await super['pageInitialized']();}['render'](){return MetaApi['getMainTabHtml'](this);}[a0_0x15579c(0x1ef)](_0x24cded){const _0x184529=a0_0x15579c;this['gridConfig']=_0x24cded['grid'],this[_0x184529(0x201)]=_0x24cded[_0x184529(0x1e6)],this[_0x184529(0x1ec)]=_0x24cded[_0x184529(0x1f3)],this[_0x184529(0x1ee)]=_0x24cded[_0x184529(0x1ee)];}async[a0_0x15579c(0x1d9)](){const _0x3fff9f=a0_0x15579c;this['gristConfigSet']=await MetaApi[_0x3fff9f(0x1e8)](this),this['useMasterFilterForm']=!0x0===this[_0x3fff9f(0x20e)],this[_0x3fff9f(0x20e)]=!0x1,this['buttonConfig']=void 0x0,this[_0x3fff9f(0x1e3)]=!0x1,this[_0x3fff9f(0x20f)]=!0x1,this[_0x3fff9f(0x1ed)]=[],this[_0x3fff9f(0x1e7)]=this[_0x3fff9f(0x1f4)][_0x3fff9f(0x1e1)][_0x3fff9f(0x208)](_0x3186a7=>_0x3186a7[_0x3fff9f(0x208)])['map'](_0x5ca9a2=>{const _0x22d956=_0x3fff9f;let _0x3de8df={'name':_0x5ca9a2[_0x22d956(0x214)],'type':_0x22d956(0x1f3)===_0x5ca9a2[_0x22d956(0x208)]['operator']?_0x22d956(0x1f3):_0x5ca9a2[_0x22d956(0x1fc)],'label':_0x5ca9a2[_0x22d956(0x1f5)],'operator':_0x5ca9a2['filter'][_0x22d956(0x1eb)]?_0x5ca9a2[_0x22d956(0x208)][_0x22d956(0x1eb)]:'eq'};return _0x5ca9a2[_0x22d956(0x208)]['options']&&(_0x3de8df[_0x22d956(0x1e0)]=_0x5ca9a2[_0x22d956(0x208)][_0x22d956(0x1e0)]),_0x5ca9a2['record']['options']&&(_0x3de8df[_0x22d956(0x1e0)]=_0x5ca9a2[_0x22d956(0x1dd)][_0x22d956(0x1e0)]),_0x5ca9a2[_0x22d956(0x208)][_0x22d956(0x205)]&&this[_0x22d956(0x1ed)][_0x22d956(0x20d)]({'name':_0x3de8df[_0x22d956(0x214)],'operator':_0x3de8df[_0x22d956(0x1eb)],'value':_0x5ca9a2['filter']['value']}),delete _0x5ca9a2['filter'],_0x3de8df;});}async[a0_0x15579c(0x1ea)](){const _0x2ae409=a0_0x15579c;await this[_0x2ae409(0x213)]['fetch']();}async[a0_0x15579c(0x200)]({page:_0x3226ca=0x0,limit:_0x519991=0x0,sortings:_0x3cef73=[],filters:_0x47aafb=[]}){const _0x2955dd=a0_0x15579c;return this[_0x2955dd(0x209)]&&this[_0x2955dd(0x209)][_0x2955dd(0x204)]&&await this[_0x2955dd(0x209)][_0x2955dd(0x204)](),!0x0;}[a0_0x15579c(0x1dc)](){const _0x2254db=a0_0x15579c;return{'master':this[_0x2254db(0x209)]['getData']()};}};
@@ -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_0x99624a=a0_0x30df;(function(_0x3a1c01,_0x5a06dd){const _0x1a6e0a=a0_0x30df,_0x3389e3=_0x3a1c01();while(!![]){try{const _0x5e914f=parseInt(_0x1a6e0a(0xe8))/0x1*(-parseInt(_0x1a6e0a(0x11b))/0x2)+-parseInt(_0x1a6e0a(0xea))/0x3*(parseInt(_0x1a6e0a(0xf8))/0x4)+parseInt(_0x1a6e0a(0xef))/0x5+parseInt(_0x1a6e0a(0x104))/0x6+-parseInt(_0x1a6e0a(0x11e))/0x7+-parseInt(_0x1a6e0a(0xfc))/0x8+parseInt(_0x1a6e0a(0xfa))/0x9*(parseInt(_0x1a6e0a(0x118))/0xa);if(_0x5e914f===_0x5a06dd)break;else _0x3389e3['push'](_0x3389e3['shift']());}catch(_0x5a8dcd){_0x3389e3['push'](_0x3389e3['shift']());}}}(a0_0x53e4,0x58dc1));import{html}from'lit';function a0_0x53e4(){const _0x30e6e9=['gristId','gristConfigSet','name','map','detailElement','keys','16270JRZczU','activityDataSet','getData','324878aLTiKG','grid','type','916461WujLDk','options','find','pageInitialized','parseBasicGridConfigs','main','filter','fetch','searchFieldValues','clear','actions','forEach','gridEmphasized','grist','3rdIeKm','importable','444126jRosSB','delete','records','connectedCallback','properties','1571765eDkpGF','operator','patchesForUpdateMultiple','startsWith','filterForm','findOne','tTitle','title','getMasterDetailHtml','4pAbhAT','search','2835keexja','gridConfig','1315896gXosAr','isNotEmpty','render','parseGridConfigSet','import','parseGristConfigs','isElement','getSelectedIdList','2807280PuJngO','renderRoot','value','filterFormId','searchFields','shadowRoot','menuInfo','useMasterFilterForm','save','useFilterForm','context','exportableData','record','querySelector'];a0_0x53e4=function(){return _0x30e6e9;};return a0_0x53e4();}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x30df(_0x36aa04,_0x54e784){const _0x53e48d=a0_0x53e4();return a0_0x30df=function(_0x30df8c,_0x549ad3){_0x30df8c=_0x30df8c-0xe1;let _0x33ed7b=_0x53e48d[_0x30df8c];return _0x33ed7b;},a0_0x30df(_0x36aa04,_0x54e784);}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=_0xea8c41=>class extends MetaButtonMixin(_0xea8c41){static get['styles'](){return MetaApi['getBasicMasterDetailStyles']();}static get[a0_0x99624a(0xee)](){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_0x99624a(0xe7)](){const _0x4d472e=a0_0x99624a;return this[_0x4d472e(0x105)][_0x4d472e(0x111)](this[_0x4d472e(0x112)]);}get[a0_0x99624a(0xf3)](){const _0x25010e=a0_0x99624a;return this[_0x25010e(0x109)]?.[_0x25010e(0x111)](this[_0x25010e(0x107)]);}get[a0_0x99624a(0x10e)](){const _0x4b104f=a0_0x99624a;let _0x14b0fe=MetaUiUtil['getContextObject'](this);return _0x14b0fe[_0x4b104f(0xe4)]&&delete _0x14b0fe[_0x4b104f(0xe4)],_0x14b0fe['exportable']&&delete _0x14b0fe['exportable'],_0x14b0fe[_0x4b104f(0xe9)]&&delete _0x14b0fe[_0x4b104f(0xe9)],_0x14b0fe;}async[a0_0x99624a(0xed)](){const _0x218988=a0_0x99624a;this['gristId']='ox-grist',this[_0x218988(0x107)]='ox-filters-form-base',await this['getAndParseMenuMeta'](),this[_0x218988(0x102)]&&await this['parseGristConfigs'](),this[_0x218988(0x119)]&&(this['dataSet']=(this['activityDataSet']||{})[_0x218988(0x123)]),super[_0x218988(0xed)]&&await super['connectedCallback']();}async['firstUpdated'](){super['firstUpdated']&&await super['firstUpdated']();}async[a0_0x99624a(0x121)](){const _0x37757e=a0_0x99624a;this['isPage']&&await this[_0x37757e(0x101)](),super[_0x37757e(0x121)]&&await super[_0x37757e(0x121)]();}[a0_0x99624a(0xfe)](){const _0x5d0c3d=a0_0x99624a;return MetaApi[_0x5d0c3d(0xf7)](this);}[a0_0x99624a(0x122)](_0x2a9c99){const _0x2a041b=a0_0x99624a;this[_0x2a041b(0xfb)]=_0x2a9c99[_0x2a041b(0x11c)],this['gridColumnConfig']=_0x2a9c99['grid_column'],this['searchConfig']=_0x2a9c99[_0x2a041b(0xf9)],this[_0x2a041b(0xe6)]=_0x2a9c99[_0x2a041b(0xe6)];}async['parseGristConfigs'](){const _0x36d565=a0_0x99624a;this[_0x36d565(0x113)]=await MetaApi[_0x36d565(0xff)](this),this[_0x36d565(0x10b)]=!0x0===this[_0x36d565(0x10d)],this[_0x36d565(0x10d)]=!0x1,this[_0x36d565(0xe2)]=[],this[_0x36d565(0x108)]=this['gristConfigSet']['columns'][_0x36d565(0x124)](_0x3e275b=>_0x3e275b[_0x36d565(0x124)])[_0x36d565(0x115)](_0x499da2=>{const _0x2892d7=_0x36d565;let _0x287d6b={'name':_0x499da2[_0x2892d7(0x114)],'type':'search'===_0x499da2[_0x2892d7(0x124)][_0x2892d7(0xf0)]?_0x2892d7(0xf9):_0x499da2[_0x2892d7(0x11d)],'label':_0x499da2['header'],'operator':_0x499da2[_0x2892d7(0x124)][_0x2892d7(0xf0)]?_0x499da2[_0x2892d7(0x124)][_0x2892d7(0xf0)]:'eq'};return _0x499da2[_0x2892d7(0x124)]['options']&&(_0x287d6b['options']=_0x499da2[_0x2892d7(0x124)][_0x2892d7(0x11f)]),_0x499da2[_0x2892d7(0x110)]['options']&&(_0x287d6b[_0x2892d7(0x11f)]=_0x499da2['record'][_0x2892d7(0x11f)]),_0x499da2['filter'][_0x2892d7(0x106)]&&this[_0x2892d7(0xe2)]['push']({'name':_0x287d6b[_0x2892d7(0x114)],'operator':_0x287d6b['operator'],'value':_0x499da2[_0x2892d7(0x124)]['value']}),delete _0x499da2[_0x2892d7(0x124)],_0x287d6b;});}async[a0_0x99624a(0xe1)](){const _0x895e0a=a0_0x99624a;await this[_0x895e0a(0xe7)][_0x895e0a(0xe1)]();}async['beforeFetch']({page:_0x5dee15=0x0,limit:_0x5dedb0=0x0,sortings:_0x1f59a5=[],filters:_0x5ac0d4=[]}){const _0x313cbe=a0_0x99624a;return this[_0x313cbe(0x116)]&&this[_0x313cbe(0x116)][_0x313cbe(0xe3)]&&await this[_0x313cbe(0x116)]['clear'](),!0x0;}async[a0_0x99624a(0x10c)](){const _0x27b591=a0_0x99624a;let _0x18a05c=MetaApi[_0x27b591(0xf1)](this[_0x27b591(0xe7)]);!!ValueUtil[_0x27b591(0xfd)](_0x18a05c)&&await this['updateMultiple'](_0x18a05c)&&this[_0x27b591(0xe1)]();}async[a0_0x99624a(0x120)](){const _0x4b2889=a0_0x99624a;let _0x4bd5a4=MetaApi['getSelectedIdList'](this[_0x4b2889(0xe7)],!0x0);return ValueUtil[_0x4b2889(0xfd)](_0x4bd5a4)?await this[_0x4b2889(0xf4)](_0x4bd5a4[0x0]):{};}async[a0_0x99624a(0xeb)](){const _0x40646a=a0_0x99624a;let _0x39b407=MetaApi[_0x40646a(0x103)](this['grist'],!0x0);!!ValueUtil[_0x40646a(0xfd)](_0x39b407)&&await this['deleteByIds'](_0x39b407)&&this['fetch']();}async['export'](){const _0x1d516c=a0_0x99624a;let _0x3c6a30=TermsUtil[_0x1d516c(0xf5)](ValueUtil['getParams'](this[_0x1d516c(0x10a)],_0x1d516c(0xf6)));return await MetaApi[_0x1d516c(0x10f)](this['isElement'],_0x3c6a30,this[_0x1d516c(0xe7)]);}async[a0_0x99624a(0x100)](){}[a0_0x99624a(0x11a)](){const _0x25709d=a0_0x99624a;let _0x473b43=this['grist']['___data'][_0x25709d(0xec)];return _0x473b43=JSON['parse'](JSON['stringify'](_0x473b43)),_0x473b43[_0x25709d(0xe5)](_0x578e78=>{const _0x42d444=_0x25709d;Object[_0x42d444(0x117)](_0x578e78)[_0x42d444(0xe5)](_0x52c3f1=>{const _0x559310=_0x42d444;_0x52c3f1[_0x559310(0xf2)]('__')&&delete _0x578e78[_0x52c3f1];});}),{'main':_0x473b43,'detail':this['detailElement'][_0x25709d(0x11a)]()};}};