@things-factory/meta-ui 6.1.48 → 6.1.49

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 (91) hide show
  1. package/client/actions/main.js +4 -4
  2. package/client/component/filter/filter-form-meta-code-select.js +9 -9
  3. package/client/component/filter/filter-form-meta-object-select.js +10 -10
  4. package/client/component/filter/filter-grist-meta-code-select.js +9 -9
  5. package/client/component/filter/filter-grist-meta-object-select.js +9 -9
  6. package/client/component/grist/editor/grist-editor-code-input.js +6 -6
  7. package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
  8. package/client/component/grist/editor/grist-editor-meta-object-selector.js +7 -7
  9. package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
  10. package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
  11. package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
  12. package/client/component/popup/code-input-editor-popup.js +10 -10
  13. package/client/component/popup/meta-object-selector-popup.js +11 -11
  14. package/client/mixin/meta-base-mixin.js +1 -1
  15. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  16. package/client/mixin/meta-button-mixin.js +1 -1
  17. package/client/mixin/meta-form-mixin.js +1 -1
  18. package/client/mixin/meta-grist-tab-mixin.js +1 -1
  19. package/client/mixin/meta-main-tab-mixin.js +1 -1
  20. package/client/mixin/meta-master-detail-mixin.js +1 -1
  21. package/client/mixin/meta-service-mixin.js +1 -1
  22. package/client/mixin/meta-tab-detail-mixin.js +1 -1
  23. package/client/mixin/meta-tab-mixin.js +1 -1
  24. package/client/pages/activity/meta-activity-list-page.js +6 -6
  25. package/client/pages/activity/meta-activity-viewer-element.js +3 -3
  26. package/client/pages/activity/meta-activity-writer-element.js +3 -3
  27. package/client/pages/activity/meta-activiy-mixin.js +3 -3
  28. package/client/pages/entity/config-entity.js +29 -29
  29. package/client/pages/entity/main-menu-selector.js +8 -8
  30. package/client/pages/history/history-copy-list-popup.js +6 -6
  31. package/client/pages/history/history-json-list-popup.js +4 -4
  32. package/client/pages/loading-page.js +5 -5
  33. package/client/pages/menu/dynamic-menu-template.js +7 -7
  34. package/client/pages/menu/dynamic-menu.js +16 -16
  35. package/client/pages/menu/export-menu-popup.js +6 -6
  36. package/client/pages/meta-form-element.js +1 -1
  37. package/client/pages/meta-grist-element.js +1 -1
  38. package/client/pages/meta-grist-page.js +1 -1
  39. package/client/pages/meta-grist-tab-element.js +1 -1
  40. package/client/pages/meta-grist-tab-page.js +1 -1
  41. package/client/pages/meta-main-tab-element.js +1 -1
  42. package/client/pages/meta-main-tab-page.js +1 -1
  43. package/client/pages/meta-master-detail-element.js +1 -1
  44. package/client/pages/meta-master-detail-page.js +1 -1
  45. package/client/pages/meta-tab-detail-element.js +1 -1
  46. package/client/pages/meta-tab-detail-page.js +1 -1
  47. package/client/pages/meta-tab-element.js +1 -1
  48. package/client/pages/personalize/personal-column-selector.js +11 -11
  49. package/client/pages/terms/config-terminology.js +5 -5
  50. package/client/pages/work-code/work-code-detail-popup.js +1 -1
  51. package/client/pages/work-code/work-code-page.js +1 -1
  52. package/client/reducers/main.js +1 -1
  53. package/client/utils/grist-default-value.js +1 -1
  54. package/client/utils/meta-api.js +1 -1
  55. package/client/utils/meta-crypto.js +1 -1
  56. package/client/utils/meta-ui-util.js +103 -103
  57. package/client/utils/service-util.js +13 -13
  58. package/client/utils/terms-util.js +2 -2
  59. package/client/utils/ui-util.js +1 -1
  60. package/client/utils/value-util.js +1 -1
  61. package/client/viewparts/dynamic-menu-landscape-styles.js +2 -2
  62. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  63. package/client/viewparts/dynamic-menu-part.js +11 -11
  64. package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
  65. package/client/viewparts/dynamic-menu-portrait.js +9 -9
  66. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  67. package/package.json +2 -2
  68. package/server/activity/CommonActivity.js +2 -2
  69. package/server/constants/error-code.js +1 -1
  70. package/server/errors/license-error.js +1 -1
  71. package/server/routes.js +1 -1
  72. package/server/service/dynamic-menu/dynamic-menu-query.js +1 -1
  73. package/server/service/dynamic-menu/dynamic-menu-type.js +1 -1
  74. package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
  75. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  76. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  77. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  78. package/server/service/grid-personalize/grid-personalize.js +1 -1
  79. package/server/service/meta-activity/meta-activity-mutation.js +1 -1
  80. package/server/service/meta-activity/meta-activity-query.js +1 -1
  81. package/server/service/meta-activity/meta-activity-type.js +1 -1
  82. package/server/service/meta-secret/meta-resolver.js +1 -1
  83. package/server/service/set-translations/set-translation-resolver.js +1 -1
  84. package/server/service/work-code/work-code-mutation.js +1 -1
  85. package/server/service/work-code/work-code-query.js +1 -1
  86. package/server/service/work-code/work-code-type.js +1 -1
  87. package/server/service/work-code/work-code.js +1 -1
  88. package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
  89. package/server/service/work-code-detail/work-code-detail-query.js +1 -1
  90. package/server/service/work-code-detail/work-code-detail-type.js +1 -1
  91. package/server/service/work-code-detail/work-code-detail.js +1 -1
@@ -1,4 +1,4 @@
1
- const a0_0x5e6acd=a0_0x5bd7;(function(_0x21a502,_0x35f158){const _0xdd66f0=a0_0x5bd7,_0x586784=_0x21a502();while(!![]){try{const _0x79a6e8=parseInt(_0xdd66f0(0x12b))/0x1*(-parseInt(_0xdd66f0(0x117))/0x2)+-parseInt(_0xdd66f0(0x11c))/0x3+-parseInt(_0xdd66f0(0x144))/0x4*(-parseInt(_0xdd66f0(0x132))/0x5)+-parseInt(_0xdd66f0(0x126))/0x6*(-parseInt(_0xdd66f0(0x116))/0x7)+-parseInt(_0xdd66f0(0x14e))/0x8+-parseInt(_0xdd66f0(0x166))/0x9*(-parseInt(_0xdd66f0(0x118))/0xa)+-parseInt(_0xdd66f0(0x122))/0xb;if(_0x79a6e8===_0x35f158)break;else _0x586784['push'](_0x586784['shift']());}catch(_0x2344de){_0x586784['push'](_0x586784['shift']());}}}(a0_0x1561,0x79bb6));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';function a0_0x1561(){const _0xf9755a=['fetchHandler','after_set_fields','search_hidden_fields','clickCancel','shadowRoot','4257333MIdMsa','length','getCodeByScenario','querySelector','selectRecord','meta-object-selector','args','bind','771260iDFhcX','1732HVWpzu','20LCAVAi','getCodeSelectorData','query','columns','1478910ReOkTB','name','dispField','LIST','styles','getGristPagination100Config','4504313VmKkex','codeField','left','filterFields','42MEgtnm','getCodeByEntity','push','grist','startsWith','1057fCCZuY','basicArgs','isArray','confirmCallback','object','select-row-toggle','getSelectColumns','526690JtTckt','getGristGuttersConfig','firstUpdated','record','appendable','type','connectedCallback','nameField','string','cancel','#ox-grist','values','clickSelect','menu_template','options','search','define','queryName','24tBujNY','filters','filter','NOTHING_SELECTED','rows','GRID','info','showToast','forEach','align','263464rXZURh','getGristColumnConfig2','meta-','resource-code-selector','tText','render','select','getGristSelectableConfig','codes','searchByPagination','includes','scenario','clickEmpty','gridConfig','keys','getGristMetaObjectOptions','tButton','sorters','meta-code-selector'];a0_0x1561=function(){return _0xf9755a;};return a0_0x1561();}import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';function a0_0x5bd7(_0x35db47,_0x4b51ad){const _0x156120=a0_0x1561();return a0_0x5bd7=function(_0x5bd7f9,_0x3d5577){_0x5bd7f9=_0x5bd7f9-0x10f;let _0x50e600=_0x156120[_0x5bd7f9];return _0x50e600;},a0_0x5bd7(_0x35db47,_0x4b51ad);}import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class MetaObjectSelectorPopup extends LitElement{static [a0_0x5e6acd(0x120)]=[CommonGristStyles,ButtonContainerStyles,css`
1
+ const a0_0x505b5c=a0_0x5263;function a0_0x5263(_0x556bf0,_0x367cd3){const _0x4acb14=a0_0x4acb();return a0_0x5263=function(_0x526349,_0x54455b){_0x526349=_0x526349-0x172;let _0x49c0c7=_0x4acb14[_0x526349];return _0x49c0c7;},a0_0x5263(_0x556bf0,_0x367cd3);}(function(_0x24de14,_0x3461be){const _0xd20f92=a0_0x5263,_0x345a47=_0x24de14();while(!![]){try{const _0x528e93=-parseInt(_0xd20f92(0x190))/0x1+-parseInt(_0xd20f92(0x174))/0x2*(parseInt(_0xd20f92(0x18c))/0x3)+-parseInt(_0xd20f92(0x1a4))/0x4+parseInt(_0xd20f92(0x1ac))/0x5*(parseInt(_0xd20f92(0x17a))/0x6)+-parseInt(_0xd20f92(0x1a9))/0x7*(-parseInt(_0xd20f92(0x181))/0x8)+-parseInt(_0xd20f92(0x19f))/0x9+-parseInt(_0xd20f92(0x18a))/0xa*(-parseInt(_0xd20f92(0x182))/0xb);if(_0x528e93===_0x3461be)break;else _0x345a47['push'](_0x345a47['shift']());}catch(_0x46146f){_0x345a47['push'](_0x345a47['shift']());}}}(a0_0x4acb,0xb4ad1));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';function a0_0x4acb(){const _0x2d051c=['getGristSelectableConfig','styles','rows','meta-object-selector-popup','clickEmpty','getCodeByEntity','searchByPagination','filters','keys','string','includes','showToast','record','forEach','object','filterFields','options','resource-code-selector','getGristColumnConfig2','args','confirmCallback','tText','348514xwwyYN','#ox-grist','bind','codes','type','entity','132DKlILr','meta-object-selector','menu_template','hidden','querySelector','clickCancel','clickSelect','31128XczGWh','27984NOZBUU','gridConfig','after_set_fields','grist','connectedCallback','values','scenario','align','10310PdpSUF','tButton','3VmeMoe','left','search_hidden_fields','selectRecord','1383967rIIWfv','push','search','fetchHandler','render','handlers','columns','GRID','name','meta-code-selector','getGristPagination100Config','gql','selected','appendable','getGristMetaObjectOptions','5516919XaHZfB','empty','codeField','queryName','NOTHING_SELECTED','1880436TirxLF','basicArgs','query','firstUpdated','resource-object','1351WBfQso','getSelectColumns','sorters','1715xSIdBZ','meta-','dispField','getGristGuttersConfig','filter','menu','info','cancel','length','shadowRoot','select','code'];a0_0x4acb=function(){return _0x2d051c;};return a0_0x4acb();}import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class MetaObjectSelectorPopup extends LitElement{static [a0_0x505b5c(0x1b9)]=[CommonGristStyles,ButtonContainerStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -17,9 +17,9 @@ const a0_0x5e6acd=a0_0x5bd7;(function(_0x21a502,_0x35f158){const _0xdd66f0=a0_0x
17
17
  display: flex;
18
18
  margin-left: auto;
19
19
  }
20
- `];async['connectedCallback'](){const _0x3e0c4c=a0_0x5e6acd;this[_0x3e0c4c(0x163)]=this[_0x3e0c4c(0x140)][_0x3e0c4c(0x145)]?this[_0x3e0c4c(0x140)]['filters']:this[_0x3e0c4c(0x12c)]&&this[_0x3e0c4c(0x12c)][_0x3e0c4c(0x145)]?this['basicArgs'][_0x3e0c4c(0x145)]:[];let _0x54fa62=this[_0x3e0c4c(0x140)][_0x3e0c4c(0x15f)]?this['options'][_0x3e0c4c(0x15f)]:this['basicArgs']&&this[_0x3e0c4c(0x12c)][_0x3e0c4c(0x15f)]?this[_0x3e0c4c(0x12c)][_0x3e0c4c(0x15f)]:[],_0x2910ce=this[_0x3e0c4c(0x140)][_0x3e0c4c(0x125)]?this[_0x3e0c4c(0x140)][_0x3e0c4c(0x125)]:this[_0x3e0c4c(0x140)][_0x3e0c4c(0x13f)]?.[_0x3e0c4c(0x141)]&&this['options']['menu_template']?.[_0x3e0c4c(0x141)][_0x3e0c4c(0x10f)]>0x0?this[_0x3e0c4c(0x140)]['menu_template']['search']:[],_0x40a660=this[_0x3e0c4c(0x140)]['select'];if(!_0x2910ce||0x0==_0x2910ce[_0x3e0c4c(0x10f)]){let _0x110598;this[_0x3e0c4c(0x140)][_0x3e0c4c(0x123)]&&(_0x110598=this[_0x3e0c4c(0x140)][_0x3e0c4c(0x123)]),this['options'][_0x3e0c4c(0x139)]&&(_0x110598=this[_0x3e0c4c(0x140)]['nameField']),_0x110598&&_0x2910ce[_0x3e0c4c(0x128)]({'name':_0x110598,'operator':'eq'});}let _0x5e62f7=[...MetaApi[_0x3e0c4c(0x133)](!0x0,!0x1)];if(_0x40a660&&_0x40a660[_0x3e0c4c(0x10f)]>0x0)for(let _0x5b8b64=0x0;_0x5b8b64<_0x40a660[_0x3e0c4c(0x10f)];_0x5b8b64++){let {type:_0x25f0fb=_0x3e0c4c(0x13a),name:_0x42bb61,hidden:_0x1bf9d5=!0x1,record:_0x1e268b={'align':'left'},header:_0x59ab18,sortable:_0x1c51da=!0x1,width:_0x51b367=0x87,options:_0x162ef3,select_opt:_0x39f37a,object_opt:_0xb119eb}=_0x40a660[_0x5b8b64];if(_0x39f37a&&(_0x162ef3=_0x39f37a),_0xb119eb&&(_0x162ef3=_0xb119eb),['resource-object',_0x3e0c4c(0x12f)][_0x3e0c4c(0x158)](_0x25f0fb)?_0x25f0fb=_0x3e0c4c(0x113):[_0x3e0c4c(0x151)][_0x3e0c4c(0x158)](_0x25f0fb)&&(_0x25f0fb=_0x3e0c4c(0x160)),'id'==_0x42bb61)_0x5e62f7[_0x3e0c4c(0x128)]({'type':_0x3e0c4c(0x13a),'name':_0x42bb61,'hidden':!0x0});else{let _0x33753c=MetaApi[_0x3e0c4c(0x14f)](_0x25f0fb,_0x42bb61,_0x59ab18||_0x42bb61,_0x1e268b[_0x3e0c4c(0x14d)]?_0x1e268b[_0x3e0c4c(0x14d)]:_0x3e0c4c(0x124),!0x1,_0x1c51da,_0x51b367);_0x25f0fb[_0x3e0c4c(0x12a)](_0x3e0c4c(0x150))&&_0xb119eb&&_0xb119eb['menu']&&(_0x162ef3=await MetaUiUtil[_0x3e0c4c(0x15d)](_0x25f0fb,_0x162ef3)),_0x3e0c4c(0x154)===_0x25f0fb?Array[_0x3e0c4c(0x12d)](_0x162ef3)?_0x33753c[_0x3e0c4c(0x135)]['options']=_0x162ef3:'code'===_0x162ef3[_0x3e0c4c(0x137)]?_0x33753c[_0x3e0c4c(0x135)][_0x3e0c4c(0x140)]=await ServiceUtil[_0x3e0c4c(0x119)](_0x162ef3['values']?_0x162ef3[_0x3e0c4c(0x13d)]:_0x162ef3[_0x3e0c4c(0x11d)]):_0x3e0c4c(0x159)===_0x162ef3[_0x3e0c4c(0x137)]?_0x33753c[_0x3e0c4c(0x135)]['options']=await ServiceUtil[_0x3e0c4c(0x110)](_0x162ef3['name'],_0x162ef3[_0x3e0c4c(0x114)]):'entity'===_0x162ef3[_0x3e0c4c(0x137)]&&(_0x33753c[_0x3e0c4c(0x135)][_0x3e0c4c(0x140)]=await ServiceUtil['getCodeByEntity'](_0x162ef3[_0x3e0c4c(0x114)])):_0x3e0c4c(0x113)===_0x25f0fb?_0x33753c[_0x3e0c4c(0x135)][_0x3e0c4c(0x140)]={..._0x162ef3}:'meta-code-selector'==_0x25f0fb&&(_0x162ef3[_0x3e0c4c(0x11e)]&&(_0x162ef3[_0x3e0c4c(0x156)]=await ServiceUtil[_0x3e0c4c(0x127)](_0x162ef3)),_0x33753c[_0x3e0c4c(0x135)]['options']={..._0x162ef3}),_0x33753c['hidden']=_0x1bf9d5,_0x5e62f7['push'](_0x33753c);}}else _0x5e62f7['push'](MetaApi[_0x3e0c4c(0x14f)](_0x3e0c4c(0x13a),this[_0x3e0c4c(0x140)][_0x3e0c4c(0x123)],this['options'][_0x3e0c4c(0x123)],_0x3e0c4c(0x124),!0x1,!0x0,0xb4)),this[_0x3e0c4c(0x140)]['dispField']&&_0x5e62f7[_0x3e0c4c(0x128)](MetaApi[_0x3e0c4c(0x14f)](_0x3e0c4c(0x13a),this[_0x3e0c4c(0x140)][_0x3e0c4c(0x11e)],this['options'][_0x3e0c4c(0x11e)],'left',!0x1,!0x0,0x12c));_0x5e62f7[_0x3e0c4c(0x14c)](_0xfab375=>{const _0x7992d4=_0x3e0c4c;let _0x2f9685=_0x2910ce[_0x7992d4(0x146)](_0x1286e2=>_0x7992d4(0x13a)==typeof _0x1286e2?_0xfab375[_0x7992d4(0x11d)]==_0x1286e2:_0xfab375['name']==_0x1286e2[_0x7992d4(0x11d)]);_0x2f9685&&_0x2f9685['length']>0x0&&(_0xfab375[_0x7992d4(0x146)]=_0x7992d4(0x13a)==typeof _0x2f9685[0x0]?_0x7992d4(0x141):_0x2f9685[0x0]);});let _0x437bdf={'rows':MetaApi[_0x3e0c4c(0x155)](!0x1),'pagination':MetaApi[_0x3e0c4c(0x121)](),'columns':_0x5e62f7,'sorters':[..._0x54fa62]};_0x437bdf['rows']['handlers']={'click':_0x3e0c4c(0x130),'dblclick':(_0x1c4ea6,_0x38b4c8,_0x1f9b14,_0x2fe00a,_0x4fdf5c,_0x4ba4f5)=>{const _0x2079a8=_0x3e0c4c;this[_0x2079a8(0x112)](_0x2fe00a);}},_0x437bdf[_0x3e0c4c(0x148)][_0x3e0c4c(0x136)]=!0x1,this[_0x3e0c4c(0x15b)]=_0x437bdf,await super[_0x3e0c4c(0x138)]();}async[a0_0x5e6acd(0x134)](){await super['firstUpdated']();}[a0_0x5e6acd(0x153)](){const _0x3e13e0=a0_0x5e6acd;return html`
21
- <ox-grist id="ox-grist" .config=${this[_0x3e13e0(0x15b)]} .mode=${isMobileDevice()?_0x3e13e0(0x11f):_0x3e13e0(0x149)} auto-fetch
22
- .fetchHandler=${this[_0x3e13e0(0x161)][_0x3e13e0(0x115)](this)}>
20
+ `];async['connectedCallback'](){const _0x54d60e=a0_0x505b5c;this[_0x54d60e(0x18e)]=this[_0x54d60e(0x1c8)][_0x54d60e(0x1bf)]?this['options'][_0x54d60e(0x1bf)]:this['basicArgs']&&this['basicArgs'][_0x54d60e(0x1bf)]?this['basicArgs'][_0x54d60e(0x1bf)]:[];let _0x3146df=this['options'][_0x54d60e(0x1ab)]?this[_0x54d60e(0x1c8)][_0x54d60e(0x1ab)]:this[_0x54d60e(0x1a5)]&&this[_0x54d60e(0x1a5)][_0x54d60e(0x1ab)]?this[_0x54d60e(0x1a5)][_0x54d60e(0x1ab)]:[],_0x1960ef=this['options'][_0x54d60e(0x1c7)]?this[_0x54d60e(0x1c8)][_0x54d60e(0x1c7)]:this[_0x54d60e(0x1c8)]['menu_template']?.[_0x54d60e(0x192)]&&this['options'][_0x54d60e(0x17c)]?.[_0x54d60e(0x192)][_0x54d60e(0x1b4)]>0x0?this['options'][_0x54d60e(0x17c)][_0x54d60e(0x192)]:[],_0x4770df=this[_0x54d60e(0x1c8)][_0x54d60e(0x1b6)];if(!_0x1960ef||0x0==_0x1960ef[_0x54d60e(0x1b4)]){let _0x12b39b;this[_0x54d60e(0x1c8)][_0x54d60e(0x1a1)]&&(_0x12b39b=this[_0x54d60e(0x1c8)][_0x54d60e(0x1a1)]),this[_0x54d60e(0x1c8)]['nameField']&&(_0x12b39b=this['options']['nameField']),_0x12b39b&&_0x1960ef[_0x54d60e(0x191)]({'name':_0x12b39b,'operator':'eq'});}let _0x2e3d63=[...MetaApi[_0x54d60e(0x1af)](!0x0,!0x1)];if(_0x4770df&&_0x4770df[_0x54d60e(0x1b4)]>0x0)for(let _0x534070=0x0;_0x534070<_0x4770df[_0x54d60e(0x1b4)];_0x534070++){let {type:_0x1a9963=_0x54d60e(0x1c1),name:_0xa7fc6a,hidden:_0x16e47b=!0x1,record:_0xf17dfc={'align':_0x54d60e(0x18d)},header:_0x341041,sortable:_0x3ef73f=!0x1,width:_0x34517d=0x87,options:_0x135f41,select_opt:_0x397817,object_opt:_0x2d9fb2}=_0x4770df[_0x534070];if(_0x397817&&(_0x135f41=_0x397817),_0x2d9fb2&&(_0x135f41=_0x2d9fb2),[_0x54d60e(0x1a8),_0x54d60e(0x1c6)][_0x54d60e(0x1c2)](_0x1a9963)?_0x1a9963='meta-object-selector':[_0x54d60e(0x1c9)][_0x54d60e(0x1c2)](_0x1a9963)&&(_0x1a9963=_0x54d60e(0x199)),'id'==_0xa7fc6a)_0x2e3d63[_0x54d60e(0x191)]({'type':_0x54d60e(0x1c1),'name':_0xa7fc6a,'hidden':!0x0});else{let _0x4cc14f=MetaApi[_0x54d60e(0x1ca)](_0x1a9963,_0xa7fc6a,_0x341041||_0xa7fc6a,_0xf17dfc[_0x54d60e(0x189)]?_0xf17dfc[_0x54d60e(0x189)]:_0x54d60e(0x18d),!0x1,_0x3ef73f,_0x34517d);_0x1a9963['startsWith'](_0x54d60e(0x1ad))&&_0x2d9fb2&&_0x2d9fb2[_0x54d60e(0x1b1)]&&(_0x135f41=await MetaUiUtil[_0x54d60e(0x19e)](_0x1a9963,_0x135f41)),'select'===_0x1a9963?Array['isArray'](_0x135f41)?_0x4cc14f[_0x54d60e(0x1c4)]['options']=_0x135f41:_0x54d60e(0x1b7)===_0x135f41['type']?_0x4cc14f['record']['options']=await ServiceUtil['getCodeSelectorData'](_0x135f41[_0x54d60e(0x187)]?_0x135f41['values']:_0x135f41['name']):_0x54d60e(0x188)===_0x135f41[_0x54d60e(0x178)]?_0x4cc14f[_0x54d60e(0x1c4)][_0x54d60e(0x1c8)]=await ServiceUtil['getCodeByScenario'](_0x135f41[_0x54d60e(0x198)],_0x135f41[_0x54d60e(0x1cb)]):_0x54d60e(0x179)===_0x135f41[_0x54d60e(0x178)]&&(_0x4cc14f['record'][_0x54d60e(0x1c8)]=await ServiceUtil[_0x54d60e(0x1bd)](_0x135f41[_0x54d60e(0x1cb)])):_0x54d60e(0x17b)===_0x1a9963?_0x4cc14f[_0x54d60e(0x1c4)]['options']={..._0x135f41}:_0x54d60e(0x199)==_0x1a9963&&(_0x135f41[_0x54d60e(0x1ae)]&&(_0x135f41[_0x54d60e(0x177)]=await ServiceUtil[_0x54d60e(0x1bd)](_0x135f41)),_0x4cc14f['record'][_0x54d60e(0x1c8)]={..._0x135f41}),_0x4cc14f[_0x54d60e(0x17d)]=_0x16e47b,_0x2e3d63[_0x54d60e(0x191)](_0x4cc14f);}}else _0x2e3d63['push'](MetaApi[_0x54d60e(0x1ca)](_0x54d60e(0x1c1),this[_0x54d60e(0x1c8)][_0x54d60e(0x1a1)],this[_0x54d60e(0x1c8)][_0x54d60e(0x1a1)],_0x54d60e(0x18d),!0x1,!0x0,0xb4)),this[_0x54d60e(0x1c8)][_0x54d60e(0x1ae)]&&_0x2e3d63[_0x54d60e(0x191)](MetaApi[_0x54d60e(0x1ca)](_0x54d60e(0x1c1),this[_0x54d60e(0x1c8)][_0x54d60e(0x1ae)],this[_0x54d60e(0x1c8)][_0x54d60e(0x1ae)],'left',!0x1,!0x0,0x12c));_0x2e3d63['forEach'](_0x1d0184=>{const _0x18e0e4=_0x54d60e;let _0x488ae4=_0x1960ef[_0x18e0e4(0x1b0)](_0x353be4=>_0x18e0e4(0x1c1)==typeof _0x353be4?_0x1d0184[_0x18e0e4(0x198)]==_0x353be4:_0x1d0184[_0x18e0e4(0x198)]==_0x353be4[_0x18e0e4(0x198)]);_0x488ae4&&_0x488ae4[_0x18e0e4(0x1b4)]>0x0&&(_0x1d0184[_0x18e0e4(0x1b0)]='string'==typeof _0x488ae4[0x0]?_0x18e0e4(0x192):_0x488ae4[0x0]);});let _0x4b1a04={'rows':MetaApi[_0x54d60e(0x1b8)](!0x1),'pagination':MetaApi[_0x54d60e(0x19a)](),'columns':_0x2e3d63,'sorters':[..._0x3146df]};_0x4b1a04['rows'][_0x54d60e(0x195)]={'click':'select-row-toggle','dblclick':(_0xe5a65d,_0x522029,_0xd02162,_0x430aaf,_0x526574,_0x2ce5c6)=>{const _0x4bf4c9=_0x54d60e;this[_0x4bf4c9(0x18f)](_0x430aaf);}},_0x4b1a04[_0x54d60e(0x1ba)][_0x54d60e(0x19d)]=!0x1,this[_0x54d60e(0x183)]=_0x4b1a04,await super[_0x54d60e(0x186)]();}async[a0_0x505b5c(0x1a7)](){const _0x24db11=a0_0x505b5c;await super[_0x24db11(0x1a7)]();}[a0_0x505b5c(0x194)](){const _0x48623f=a0_0x505b5c;return html`
21
+ <ox-grist id="ox-grist" .config=${this[_0x48623f(0x183)]} .mode=${isMobileDevice()?'LIST':_0x48623f(0x197)} auto-fetch
22
+ .fetchHandler=${this[_0x48623f(0x193)][_0x48623f(0x176)](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_0x5e6acd=a0_0x5bd7;(function(_0x21a502,_0x35f158){const _0xdd66f0=a0_0x
27
27
  </div>
28
28
  </ox-grist>
29
29
  <div id="button-container" class="button-container">
30
- <mwc-button raised label="${TermsUtil[_0x3e13e0(0x15e)]('empty')}" style="margin-left:7px;margin-top:7px;"
31
- @click=${this[_0x3e13e0(0x15a)][_0x3e13e0(0x115)](this)}>
30
+ <mwc-button raised label="${TermsUtil[_0x48623f(0x18b)](_0x48623f(0x1a0))}" style="margin-left:7px;margin-top:7px;"
31
+ @click=${this['clickEmpty']['bind'](this)}>
32
32
  </mwc-button>
33
- <mwc-button raised label="${TermsUtil['tButton'](_0x3e13e0(0x13b))}" style="margin-left:7px;margin-top:7px;"
34
- @click=${this[_0x3e13e0(0x164)]['bind'](this)}>
33
+ <mwc-button raised label="${TermsUtil['tButton'](_0x48623f(0x1b3))}" style="margin-left:7px;margin-top:7px;"
34
+ @click=${this['clickCancel'][_0x48623f(0x176)](this)}>
35
35
  </mwc-button>
36
- <mwc-button raised label="${TermsUtil[_0x3e13e0(0x15e)](_0x3e13e0(0x154))}" style="margin-left:7px;margin-top:7px;"
37
- @click=${this[_0x3e13e0(0x13e)][_0x3e13e0(0x115)](this)}>
36
+ <mwc-button raised label="${TermsUtil[_0x48623f(0x18b)](_0x48623f(0x1b6))}" style="margin-left:7px;margin-top:7px;"
37
+ @click=${this['clickSelect'][_0x48623f(0x176)](this)}>
38
38
  </mwc-button>
39
39
  </div>
40
- `;}get[a0_0x5e6acd(0x129)](){const _0x264f6e=a0_0x5e6acd;return this[_0x264f6e(0x165)][_0x264f6e(0x111)](_0x264f6e(0x13c));}async[a0_0x5e6acd(0x161)]({page:_0x2b12c5=0x0,limit:_0x822515=0x0,sorters:_0x3ca15a=[],filters:_0x2f00d4=[]}){const _0x11ee39=a0_0x5e6acd;let _0x29e62d=[...this['search_hidden_fields']];_0x2f00d4['forEach'](_0x3b73b6=>{const _0x982114=a0_0x5bd7;let _0xd26410=_0x29e62d[_0x982114(0x146)](_0x2602a0=>_0x3b73b6['name']==_0x2602a0[_0x982114(0x11d)]);_0xd26410&&_0xd26410[_0x982114(0x10f)]>0x0&&delete _0x29e62d[_0x3b73b6['name']],_0x29e62d[_0x982114(0x128)](_0x3b73b6);});let _0x5ef97e=ValueUtil['getParams'](this['options'][_0x11ee39(0x13f)]&&this[_0x11ee39(0x140)][_0x11ee39(0x13f)]['gql']||{},_0x11ee39(0x11a),_0x11ee39(0x162)),_0xa719d6=Object[_0x11ee39(0x15c)](_0x5ef97e||{}),_0x1c7c01=MetaApi[_0x11ee39(0x131)](this[_0x11ee39(0x15b)][_0x11ee39(0x11b)][_0x11ee39(0x146)](_0x4b8dd4=>!_0xa719d6['includes'](_0x4b8dd4[_0x11ee39(0x11d)])));return await MetaApi[_0x11ee39(0x157)](this[_0x11ee39(0x140)][_0x11ee39(0x143)],_0x29e62d,_0x3ca15a,_0x2b12c5,_0x822515,_0x1c7c01);}async['clickEmpty'](_0x1d7c69){const _0x5ab861=a0_0x5e6acd;this[_0x5ab861(0x12e)]&&this[_0x5ab861(0x12e)](null),closePopup(this);}async[a0_0x5e6acd(0x164)](_0x30e080){closePopup(this);}async[a0_0x5e6acd(0x13e)](_0x6599b9){const _0x300784=a0_0x5e6acd;let _0x2a4495=this['grist']['selected'];_0x2a4495&&0x0!=_0x2a4495[_0x300784(0x10f)]?this['selectRecord'](_0x2a4495[0x0]):MetaApi[_0x300784(0x14b)](_0x300784(0x14a),TermsUtil[_0x300784(0x152)](_0x300784(0x147)));}async['selectRecord'](_0x2d0332){const _0x546e0e=a0_0x5e6acd;this['confirmCallback']&&this[_0x546e0e(0x12e)](_0x2d0332),closePopup(this);}}customElements[a0_0x5e6acd(0x142)]('meta-object-selector-popup',MetaObjectSelectorPopup);
40
+ `;}get['grist'](){const _0x464015=a0_0x505b5c;return this[_0x464015(0x1b5)][_0x464015(0x17e)](_0x464015(0x175));}async[a0_0x505b5c(0x193)]({page:_0x4282ae=0x0,limit:_0x6ee75e=0x0,sorters:_0xdb84ab=[],filters:_0x3b2a20=[]}){const _0x1b1615=a0_0x505b5c;let _0x2af291=[...this['search_hidden_fields']];_0x3b2a20[_0x1b1615(0x1c5)](_0x4587a5=>{const _0x2dc16d=_0x1b1615;let _0x494665=_0x2af291[_0x2dc16d(0x1b0)](_0x24027d=>_0x4587a5[_0x2dc16d(0x198)]==_0x24027d[_0x2dc16d(0x198)]);_0x494665&&_0x494665[_0x2dc16d(0x1b4)]>0x0&&delete _0x2af291[_0x4587a5[_0x2dc16d(0x198)]],_0x2af291[_0x2dc16d(0x191)](_0x4587a5);});let _0x19b285=ValueUtil['getParams'](this[_0x1b1615(0x1c8)]['menu_template']&&this['options']['menu_template'][_0x1b1615(0x19b)]||{},_0x1b1615(0x1a6),_0x1b1615(0x184)),_0x56c681=Object[_0x1b1615(0x1c0)](_0x19b285||{}),_0x35c1b4=MetaApi[_0x1b1615(0x1aa)](this[_0x1b1615(0x183)][_0x1b1615(0x196)]['filter'](_0x5586c2=>!_0x56c681[_0x1b1615(0x1c2)](_0x5586c2[_0x1b1615(0x198)])));return await MetaApi[_0x1b1615(0x1be)](this[_0x1b1615(0x1c8)][_0x1b1615(0x1a2)],_0x2af291,_0xdb84ab,_0x4282ae,_0x6ee75e,_0x35c1b4);}async[a0_0x505b5c(0x1bc)](_0x2b3d47){const _0x487eee=a0_0x505b5c;this[_0x487eee(0x172)]&&this[_0x487eee(0x172)](null),closePopup(this);}async[a0_0x505b5c(0x17f)](_0x4e667e){closePopup(this);}async[a0_0x505b5c(0x180)](_0x5b3cb3){const _0x161bc5=a0_0x505b5c;let _0x3a4e6e=this[_0x161bc5(0x185)][_0x161bc5(0x19c)];_0x3a4e6e&&0x0!=_0x3a4e6e[_0x161bc5(0x1b4)]?this['selectRecord'](_0x3a4e6e[0x0]):MetaApi[_0x161bc5(0x1c3)](_0x161bc5(0x1b2),TermsUtil[_0x161bc5(0x173)](_0x161bc5(0x1a3)));}async[a0_0x505b5c(0x18f)](_0x305ef0){this['confirmCallback']&&this['confirmCallback'](_0x305ef0),closePopup(this);}}customElements['define'](a0_0x505b5c(0x1bb),MetaObjectSelectorPopup);
@@ -1 +1 @@
1
- const a0_0x89c338=a0_0x3149;function a0_0x3149(_0x5bbd45,_0x5ef74f){const _0x3fe1a6=a0_0x3fe1();return a0_0x3149=function(_0x31499b,_0x141cc7){_0x31499b=_0x31499b-0x193;let _0x2089e5=_0x3fe1a6[_0x31499b];return _0x2089e5;},a0_0x3149(_0x5bbd45,_0x5ef74f);}(function(_0x5b0732,_0xcc3d08){const _0x21fa7d=a0_0x3149,_0x3ef17d=_0x5b0732();while(!![]){try{const _0x1a9c79=parseInt(_0x21fa7d(0x1ce))/0x1+parseInt(_0x21fa7d(0x19d))/0x2*(-parseInt(_0x21fa7d(0x1bf))/0x3)+-parseInt(_0x21fa7d(0x1ca))/0x4*(-parseInt(_0x21fa7d(0x1ac))/0x5)+parseInt(_0x21fa7d(0x198))/0x6+parseInt(_0x21fa7d(0x194))/0x7+-parseInt(_0x21fa7d(0x1c3))/0x8*(-parseInt(_0x21fa7d(0x1a7))/0x9)+parseInt(_0x21fa7d(0x1b5))/0xa*(-parseInt(_0x21fa7d(0x1af))/0xb);if(_0x1a9c79===_0xcc3d08)break;else _0x3ef17d['push'](_0x3ef17d['shift']());}catch(_0x3c414c){_0x3ef17d['push'](_0x3ef17d['shift']());}}}(a0_0x3fe1,0x3b34d));import{MetaApi}from'./../utils/meta-api';function a0_0x3fe1(){const _0x806a88=['parseBasicGridConfigs','addEventListener','includes','fetch','parseBasicFormConfigs','meta-form-','getAndParseMenuMeta','3452013jSvtMP','isPage','is_detail','grist','isPopup','565YnRYQn','filterForm','detail','11bLcjDi','connectedCallback','is_popup','after','parseBasicButtonConfigs','keys','9600080EPvooE','name','fieldChangeHandlers','parseBasicServiceConfigs','field-change','callScenario','pageUpdated','lifecycle','data-changed','excuteOpenPopupButtonClick','36258IwCrEP','menu','parseBasicTabConfigs','executeCallScenarioButtonClick','8amUsCy','etcConfig','dataChangeEventHandler','parent_id','params','runScenario','active','12184bsNWZB','result','data','split','117172zrhsxY','getMenuMeta','1059639Tggqzn','title_detail','isDetail','openDynamicPopup','2179986IFieEe','isElement','properties','fetchHandler','isEmpty','26zKHdTX','isNotEmpty','toLowerCase'];a0_0x3fe1=function(){return _0x806a88;};return a0_0x3fe1();}import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x19eae4=>class extends _0x19eae4{static get[a0_0x89c338(0x19a)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x22eacc=>Boolean(_0x22eacc)},'is_popup':{'type':Boolean,'converter':_0x3874b7=>Boolean(_0x3874b7)},'is_activity':{'type':Boolean,'converter':_0x55e37c=>Boolean(_0x55e37c)},'is_readonly':{'type':Boolean,'converter':_0x4426b1=>Boolean(_0x4426b1)}};}get[a0_0x89c338(0x199)](){const _0x11107f=a0_0x89c338;return!0x0===this['is_detail']||!0x0===this[_0x11107f(0x1b1)];}get[a0_0x89c338(0x196)](){const _0x310b1d=a0_0x89c338;return!ValueUtil[_0x310b1d(0x19c)](this[_0x310b1d(0x1a9)])&&this['is_detail'];}async['dataChangeEventHandler'](_0x3bc061){const _0x1f3c72=a0_0x89c338;let {after:_0x381e20,before:_0x30bb83,column:_0x2fbf25,record:_0x368ce3,row:_0x448bb0}=_0x3bc061['detail'],_0x59ea00=_0x2fbf25[_0x1f3c72(0x1b6)];if(Object['keys'](this[_0x1f3c72(0x1b7)]||{})[_0x1f3c72(0x1a2)](_0x59ea00)){let _0x569c0a,_0x1dc128=(await MetaApi[_0x1f3c72(0x1ba)](void 0x0,this[_0x1f3c72(0x1b7)][_0x59ea00],{'columnName':_0x59ea00,'column':_0x2fbf25,'record':_0x368ce3,'after':_0x381e20,'before':_0x30bb83,'row':_0x448bb0,'parentId':this[_0x1f3c72(0x1c6)]?this[_0x1f3c72(0x1c6)]:''},!0x1))[_0x1f3c72(0x1cc)][_0x1f3c72(0x1c8)][_0x1f3c72(0x1cc)][_0x1f3c72(0x1cb)];if(!_0x1dc128)return;_0x569c0a=this['grist']?this['grist'][_0x1f3c72(0x1aa)]['body']:this,Object[_0x1f3c72(0x1b4)](_0x1dc128)['forEach'](_0x3bdd89=>{const _0x39287f=_0x1f3c72;_0x569c0a['dispatchEvent'](new CustomEvent(_0x39287f(0x1b9),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x368ce3,'row':_0x448bb0,'after':_0x1dc128[_0x3bdd89],'before':_0x368ce3[_0x3bdd89],'column':{'name':_0x3bdd89}}}));});}this['dispatchEvent'](new CustomEvent(_0x1f3c72(0x1bd),{'bubbles':!0x0,'composed':!0x0,'detail':_0x3bc061[_0x1f3c72(0x1ae)]}));}async[a0_0x89c338(0x1b0)](){const _0x5eb74a=a0_0x89c338;super['connectedCallback']&&await super['connectedCallback'](),this['tagName'][_0x5eb74a(0x19f)]()['startsWith'](_0x5eb74a(0x1a5))?this[_0x5eb74a(0x1a1)]('form-field-change',async _0x3b787d=>{const _0x5c6ba2=_0x5eb74a;await this[_0x5c6ba2(0x1c5)](_0x3b787d);}):this[_0x5eb74a(0x1a1)](_0x5eb74a(0x1b9),async _0x3b3f1c=>{const _0x5daf5d=_0x5eb74a;await this[_0x5daf5d(0x1c5)](_0x3b3f1c);});}async[a0_0x89c338(0x1bb)](_0x51209d,_0x1f9a05,_0x16e5c3){const _0x18d473=a0_0x89c338;let _0x161797=this['lifecycle']?.['params']?this[_0x18d473(0x1bc)][_0x18d473(0x1c7)]:{};this[_0x18d473(0x1a8)]&&this[_0x18d473(0x1c9)]&&0x0==_0x16e5c3[_0x18d473(0x1c9)]&&ValueUtil[_0x18d473(0x19e)](_0x161797)&&this[_0x18d473(0x1a3)]();}get[a0_0x89c338(0x1ab)](){const _0x53ed6b=a0_0x89c338;return!ValueUtil['isEmpty'](this['is_popup'])&&this[_0x53ed6b(0x1b1)];}get[a0_0x89c338(0x1a8)](){const _0x558dbf=a0_0x89c338;return!this[_0x558dbf(0x1a9)]&&!this[_0x558dbf(0x1b1)];}async[a0_0x89c338(0x1a6)](){const _0x3e1f79=a0_0x89c338;let _0x2b3b2c=await MetaApi[_0x3e1f79(0x193)](this);_0x2b3b2c&&(this['menuInfo']=_0x2b3b2c[_0x3e1f79(0x1c0)],this[_0x3e1f79(0x1c4)]=_0x2b3b2c['etc'],this[_0x3e1f79(0x1a0)]&&this['parseBasicGridConfigs'](_0x2b3b2c),this[_0x3e1f79(0x1b8)]&&this['parseBasicServiceConfigs'](_0x2b3b2c),this[_0x3e1f79(0x1a4)]&&this[_0x3e1f79(0x1a4)](_0x2b3b2c),this[_0x3e1f79(0x1c1)]&&this[_0x3e1f79(0x1c1)](_0x2b3b2c),this[_0x3e1f79(0x1b3)]&&this[_0x3e1f79(0x1b3)](_0x2b3b2c));}async[a0_0x89c338(0x1a3)](){const _0x5b0b02=a0_0x89c338;ValueUtil[_0x5b0b02(0x19e)](this[_0x5b0b02(0x1aa)])?this[_0x5b0b02(0x1aa)][_0x5b0b02(0x1a3)]():(ValueUtil[_0x5b0b02(0x19e)](this[_0x5b0b02(0x1ad)])||this[_0x5b0b02(0x19b)])&&await this[_0x5b0b02(0x19b)]();}async[a0_0x89c338(0x1be)](_0x4bfa3c,_0x53386d,_0x4f42f8){const _0x102f0c=a0_0x89c338;let _0x23ecd8=TermsUtil['tTitle'](_0x4bfa3c['title']);ValueUtil[_0x102f0c(0x19e)](_0x4bfa3c[_0x102f0c(0x195)])&&(_0x23ecd8=_0x23ecd8+'-'+ValueUtil['getParams'](_0x53386d,..._0x4bfa3c[_0x102f0c(0x195)][_0x102f0c(0x1cd)]('.'))),MetaApi[_0x102f0c(0x197)](_0x23ecd8,_0x4bfa3c,_0x53386d,_0x4f42f8);}async[a0_0x89c338(0x1c2)](_0x511679,_0x1204f5,_0x107035){const _0x3142a9=a0_0x89c338;let _0x4915d5=await MetaApi[_0x3142a9(0x1ba)](_0x511679[_0x3142a9(0x1b6)],_0x511679[_0x3142a9(0x1b6)],_0x1204f5);!0x1!==_0x4915d5&&!_0x4915d5['errors']&&ValueUtil[_0x3142a9(0x19e)](_0x511679[_0x3142a9(0x1b2)])&&_0x107035();}['setParentId'](_0x6ea1f2){const _0x13bbfc=a0_0x89c338;this['parent_id']=_0x6ea1f2,this[_0x13bbfc(0x1a3)]();}};
1
+ const a0_0x3bbd92=a0_0x3cda;(function(_0x2868d4,_0x65ab23){const _0x1085dd=a0_0x3cda,_0x91ef15=_0x2868d4();while(!![]){try{const _0x53b5bd=parseInt(_0x1085dd(0x10a))/0x1*(parseInt(_0x1085dd(0x111))/0x2)+-parseInt(_0x1085dd(0x116))/0x3*(parseInt(_0x1085dd(0x10f))/0x4)+parseInt(_0x1085dd(0x114))/0x5+-parseInt(_0x1085dd(0x11d))/0x6+-parseInt(_0x1085dd(0x10b))/0x7+parseInt(_0x1085dd(0x11a))/0x8*(-parseInt(_0x1085dd(0x10e))/0x9)+parseInt(_0x1085dd(0x11e))/0xa;if(_0x53b5bd===_0x65ab23)break;else _0x91ef15['push'](_0x91ef15['shift']());}catch(_0x43855e){_0x91ef15['push'](_0x91ef15['shift']());}}}(a0_0x201b,0xce6f0));import{MetaApi}from'./../utils/meta-api';function a0_0x3cda(_0x5ba113,_0x18a101){const _0x201b66=a0_0x201b();return a0_0x3cda=function(_0x3cdae0,_0x1c2860){_0x3cdae0=_0x3cdae0-0x104;let _0x4cfcd5=_0x201b66[_0x3cdae0];return _0x4cfcd5;},a0_0x3cda(_0x5ba113,_0x18a101);}import{ValueUtil}from'./../utils/value-util';function a0_0x201b(){const _0x42e5f0=['name','isNotEmpty','fetchHandler','parseBasicTabConfigs','connectedCallback','pageUpdated','addEventListener','fetch','executeCallScenarioButtonClick','filterForm','getParams','active','grist','errors','3LPWeYL','25193lKowvD','split','dataChangeEventHandler','8901vRduQT','100444iQfhtz','menu','377760wDXwKH','etc','isEmpty','1711455BQCqkJ','is_popup','42QVMmqB','includes','dispatchEvent','isPage','7800yckobK','field-change','parseBasicFormConfigs','7093626FAWdcm','24383200FhMIrO','parseBasicButtonConfigs','isElement','isDetail','properties','form-field-change','params','is_detail','keys','parent_id','title','parseBasicServiceConfigs','getAndParseMenuMeta','body','excuteOpenPopupButtonClick','callScenario','etcConfig','getMenuMeta','lifecycle','tTitle','data','after','detail','fieldChangeHandlers','parseBasicGridConfigs','setParentId','runScenario','openDynamicPopup'];a0_0x201b=function(){return _0x42e5f0;};return a0_0x201b();}import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x2b49af=>class extends _0x2b49af{static get[a0_0x3bbd92(0x122)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x210e5e=>Boolean(_0x210e5e)},'is_popup':{'type':Boolean,'converter':_0x49e5bf=>Boolean(_0x49e5bf)},'is_activity':{'type':Boolean,'converter':_0x153424=>Boolean(_0x153424)},'is_readonly':{'type':Boolean,'converter':_0x45fb01=>Boolean(_0x45fb01)}};}get[a0_0x3bbd92(0x120)](){const _0x49b431=a0_0x3bbd92;return!0x0===this[_0x49b431(0x125)]||!0x0===this[_0x49b431(0x115)];}get[a0_0x3bbd92(0x121)](){const _0x335201=a0_0x3bbd92;return!ValueUtil[_0x335201(0x113)](this['is_detail'])&&this[_0x335201(0x125)];}async[a0_0x3bbd92(0x10d)](_0x35b1d0){const _0x3e0da0=a0_0x3bbd92;let {after:_0x28b668,before:_0x242e09,column:_0xae1fd3,record:_0x4e1e62,row:_0xae4b46}=_0x35b1d0[_0x3e0da0(0x134)],_0x8d7400=_0xae1fd3['name'];if(Object['keys'](this[_0x3e0da0(0x135)]||{})[_0x3e0da0(0x117)](_0x8d7400)){let _0x1d3ae8,_0x57ef2a=(await MetaApi[_0x3e0da0(0x12d)](void 0x0,this['fieldChangeHandlers'][_0x8d7400],{'columnName':_0x8d7400,'column':_0xae1fd3,'record':_0x4e1e62,'after':_0x28b668,'before':_0x242e09,'row':_0xae4b46,'parentId':this[_0x3e0da0(0x127)]?this[_0x3e0da0(0x127)]:''},!0x1))[_0x3e0da0(0x132)][_0x3e0da0(0x138)][_0x3e0da0(0x132)]['result'];if(!_0x57ef2a)return;_0x1d3ae8=this['grist']?this['grist'][_0x3e0da0(0x108)][_0x3e0da0(0x12b)]:this,Object[_0x3e0da0(0x126)](_0x57ef2a)['forEach'](_0xa58c6a=>{const _0x20aec8=_0x3e0da0;_0x1d3ae8['dispatchEvent'](new CustomEvent(_0x20aec8(0x11b),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x4e1e62,'row':_0xae4b46,'after':_0x57ef2a[_0xa58c6a],'before':_0x4e1e62[_0xa58c6a],'column':{'name':_0xa58c6a}}}));});}this[_0x3e0da0(0x118)](new CustomEvent('data-changed',{'bubbles':!0x0,'composed':!0x0,'detail':_0x35b1d0[_0x3e0da0(0x134)]}));}async[a0_0x3bbd92(0x13e)](){const _0x264336=a0_0x3bbd92;super[_0x264336(0x13e)]&&await super['connectedCallback'](),this['tagName']['toLowerCase']()['startsWith']('meta-form-')?this[_0x264336(0x140)](_0x264336(0x123),async _0x9718ce=>{await this['dataChangeEventHandler'](_0x9718ce);}):this[_0x264336(0x140)](_0x264336(0x11b),async _0x318533=>{const _0x337b95=_0x264336;await this[_0x337b95(0x10d)](_0x318533);});}async[a0_0x3bbd92(0x13f)](_0x394eff,_0x5cf734,_0x5049aa){const _0x4b2710=a0_0x3bbd92;let _0x1ae7e8=this['lifecycle']?.[_0x4b2710(0x124)]?this[_0x4b2710(0x130)][_0x4b2710(0x124)]:{};this[_0x4b2710(0x119)]&&this[_0x4b2710(0x107)]&&0x0==_0x5049aa[_0x4b2710(0x107)]&&ValueUtil[_0x4b2710(0x13b)](_0x1ae7e8)&&this['fetch']();}get['isPopup'](){const _0x4c938b=a0_0x3bbd92;return!ValueUtil[_0x4c938b(0x113)](this[_0x4c938b(0x115)])&&this['is_popup'];}get[a0_0x3bbd92(0x119)](){const _0x1f03d4=a0_0x3bbd92;return!this[_0x1f03d4(0x125)]&&!this[_0x1f03d4(0x115)];}async[a0_0x3bbd92(0x12a)](){const _0x54d6ef=a0_0x3bbd92;let _0x3962f5=await MetaApi[_0x54d6ef(0x12f)](this);_0x3962f5&&(this['menuInfo']=_0x3962f5[_0x54d6ef(0x110)],this[_0x54d6ef(0x12e)]=_0x3962f5[_0x54d6ef(0x112)],this[_0x54d6ef(0x136)]&&this[_0x54d6ef(0x136)](_0x3962f5),this[_0x54d6ef(0x129)]&&this[_0x54d6ef(0x129)](_0x3962f5),this[_0x54d6ef(0x11c)]&&this[_0x54d6ef(0x11c)](_0x3962f5),this[_0x54d6ef(0x13d)]&&this[_0x54d6ef(0x13d)](_0x3962f5),this[_0x54d6ef(0x11f)]&&this[_0x54d6ef(0x11f)](_0x3962f5));}async[a0_0x3bbd92(0x141)](){const _0xa4b8e6=a0_0x3bbd92;ValueUtil[_0xa4b8e6(0x13b)](this[_0xa4b8e6(0x108)])?this['grist']['fetch']():(ValueUtil[_0xa4b8e6(0x13b)](this[_0xa4b8e6(0x105)])||this[_0xa4b8e6(0x13c)])&&await this[_0xa4b8e6(0x13c)]();}async[a0_0x3bbd92(0x12c)](_0x52d8a4,_0x52b685,_0x3df5d4){const _0x59060a=a0_0x3bbd92;let _0x7119b4=TermsUtil[_0x59060a(0x131)](_0x52d8a4[_0x59060a(0x128)]);ValueUtil[_0x59060a(0x13b)](_0x52d8a4['title_detail'])&&(_0x7119b4=_0x7119b4+'-'+ValueUtil[_0x59060a(0x106)](_0x52b685,..._0x52d8a4['title_detail'][_0x59060a(0x10c)]('.'))),MetaApi[_0x59060a(0x139)](_0x7119b4,_0x52d8a4,_0x52b685,_0x3df5d4);}async[a0_0x3bbd92(0x104)](_0x1a08e1,_0x92c5c1,_0x5ab1fd){const _0x5b9b10=a0_0x3bbd92;let _0x4ea066=await MetaApi[_0x5b9b10(0x12d)](_0x1a08e1[_0x5b9b10(0x13a)],_0x1a08e1[_0x5b9b10(0x13a)],_0x92c5c1);!0x1!==_0x4ea066&&!_0x4ea066[_0x5b9b10(0x109)]&&ValueUtil[_0x5b9b10(0x13b)](_0x1a08e1[_0x5b9b10(0x133)])&&_0x5ab1fd();}[a0_0x3bbd92(0x137)](_0x5247e6){const _0x5c940d=a0_0x3bbd92;this[_0x5c940d(0x127)]=_0x5247e6,this[_0x5c940d(0x141)]();}};
@@ -1,4 +1,4 @@
1
- const a0_0x1391b6=a0_0x400e;(function(_0x1492e6,_0x15e2a0){const _0x1794a8=a0_0x400e,_0x38d030=_0x1492e6();while(!![]){try{const _0x357e56=-parseInt(_0x1794a8(0x113))/0x1+parseInt(_0x1794a8(0x111))/0x2*(-parseInt(_0x1794a8(0x10a))/0x3)+-parseInt(_0x1794a8(0xfe))/0x4+-parseInt(_0x1794a8(0x107))/0x5*(-parseInt(_0x1794a8(0xf1))/0x6)+-parseInt(_0x1794a8(0x106))/0x7+-parseInt(_0x1794a8(0x108))/0x8*(parseInt(_0x1794a8(0x104))/0x9)+parseInt(_0x1794a8(0xfc))/0xa;if(_0x357e56===_0x15e2a0)break;else _0x38d030['push'](_0x38d030['shift']());}catch(_0x1f9abc){_0x38d030['push'](_0x38d030['shift']());}}}(a0_0x533e,0x1e8ed));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x400e(_0x508636,_0x291316){const _0x533e88=a0_0x533e();return a0_0x400e=function(_0x400ed8,_0x4080ba){_0x400ed8=_0x400ed8-0xdf;let _0x43f009=_0x533e88[_0x400ed8];return _0x43f009;},a0_0x400e(_0x508636,_0x291316);}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';function a0_0x533e(){const _0x5b92ca=['isElement','startsWith','export','gridConfig','forEach','keys','12udUlIm','render','title','getAndParseMenuMeta','pageInitialized','search','filterFormId','getParams','filterForm','getData','shadowRoot','6535440RktvHj','deleteByIds','816260ALqsdS','gridEmphasized','ox-grist','renderRoot','fetch','getBasicGristHtml','9zHDznp','styles','680785GYywZu','372270wLwNxI','512576NizGmu','ox-filters-form','423cBIVuQ','records','___data','firstUpdated','exportableData','context','querySelector','3278GEallJ','gridColumnConfig','80796KyOkWD','findOne','isNotEmpty','grid_column','activityDataSet','getSelectedIdList','parseGristConfigs','gristId','save','gristConfigSet','stringify','getContextObject','isPage','patchesForUpdateMultiple','grist','searchConfig','parseGridConfigSet','getButtonContainer','clear','import'];a0_0x533e=function(){return _0x5b92ca;};return a0_0x533e();}export const MetaBasicGristMixin=_0x2fd817=>class extends MetaButtonMixin(_0x2fd817){static get[a0_0x1391b6(0x105)](){return MetaApi['getBasicGristStyles']();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x1391b6(0xe5)](){const _0x48bb05=a0_0x1391b6;return this[_0x48bb05(0x101)]?.[_0x48bb05(0x110)](this['gristId']);}get[a0_0x1391b6(0xf9)](){const _0x2c3d06=a0_0x1391b6;return this[_0x2c3d06(0xfb)]?.[_0x2c3d06(0x110)](this['filterFormId']);}get[a0_0x1391b6(0x10f)](){const _0x8b4309=a0_0x1391b6;return MetaUiUtil[_0x8b4309(0xe2)](this);}async['connectedCallback'](){const _0x52a3fc=a0_0x1391b6;this[_0x52a3fc(0x11a)]=_0x52a3fc(0x100),this[_0x52a3fc(0xf7)]=_0x52a3fc(0x109),await this[_0x52a3fc(0xf4)](),this[_0x52a3fc(0xeb)]&&await this[_0x52a3fc(0x119)](),this['activityDataSet']&&(this['dataSet']=this[_0x52a3fc(0x117)]),super['connectedCallback']&&await super['connectedCallback']();}async[a0_0x1391b6(0x10d)](){const _0x55a0ff=a0_0x1391b6;super[_0x55a0ff(0x10d)]&&await super['firstUpdated']();}async[a0_0x1391b6(0xf5)](){const _0xf172ec=a0_0x1391b6;this[_0xf172ec(0xe3)]&&await this['parseGristConfigs'](),super[_0xf172ec(0xf5)]&&await super[_0xf172ec(0xf5)]();}[a0_0x1391b6(0xf2)](){const _0x3e2c81=a0_0x1391b6;return html`
2
- ${MetaApi[_0x3e2c81(0x103)](this)}
3
- ${this['isPage']?html``:MetaUiUtil[_0x3e2c81(0xe8)](this)}
4
- `;}['parseBasicGridConfigs'](_0x267878){const _0xd69edb=a0_0x1391b6;this[_0xd69edb(0xee)]=_0x267878['grid'],this[_0xd69edb(0x112)]=_0x267878[_0xd69edb(0x116)],this[_0xd69edb(0xe6)]=_0x267878[_0xd69edb(0xf6)],this[_0xd69edb(0xff)]=_0x267878[_0xd69edb(0xff)];}async['parseGristConfigs'](){const _0x58e053=a0_0x1391b6;this[_0x58e053(0xe0)]=await MetaApi[_0x58e053(0xe7)](this);}async['fetch'](){const _0x1fbf66=a0_0x1391b6;await this[_0x1fbf66(0xe5)][_0x1fbf66(0x102)]();}async[a0_0x1391b6(0xdf)](){const _0x3e843d=a0_0x1391b6;let _0x505774=MetaApi[_0x3e843d(0xe4)](this[_0x3e843d(0xe5)]);!!ValueUtil[_0x3e843d(0x115)](_0x505774)&&await this['updateMultiple'](_0x505774)&&this[_0x3e843d(0x102)]();}async['find'](){const _0x162ed6=a0_0x1391b6;let _0x194924=MetaApi[_0x162ed6(0x118)](this['grist'],!0x0);return ValueUtil[_0x162ed6(0x115)](_0x194924)?await this[_0x162ed6(0x114)](_0x194924[0x0]):{};}async['delete'](){const _0x1969a0=a0_0x1391b6;let _0x180e6f=MetaApi['getSelectedIdList'](this[_0x1969a0(0xe5)],!0x0);!!ValueUtil[_0x1969a0(0x115)](_0x180e6f)&&await this[_0x1969a0(0xfd)](_0x180e6f)&&this[_0x1969a0(0x102)]();}async[a0_0x1391b6(0xed)](){const _0x149d0b=a0_0x1391b6;let _0x4498e2=TermsUtil['tTitle'](ValueUtil[_0x149d0b(0xf8)](this['menuInfo'],_0x149d0b(0xf3)));return await MetaApi[_0x149d0b(0x10e)](this['isElement'],_0x4498e2,this[_0x149d0b(0xe5)]);}async[a0_0x1391b6(0xea)](){}async[a0_0x1391b6(0xe9)](){const _0x25365e=a0_0x1391b6;this[_0x25365e(0xe5)]&&(this['grist']['data']={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x1391b6(0xfa)](){const _0x1bf8e2=a0_0x1391b6;let _0x5d1db3=this['grist'][_0x1bf8e2(0x10c)][_0x1bf8e2(0x10b)];return _0x5d1db3=JSON['parse'](JSON[_0x1bf8e2(0xe1)](_0x5d1db3)),_0x5d1db3[_0x1bf8e2(0xef)](_0x27ad7a=>{const _0xc4e641=_0x1bf8e2;Object[_0xc4e641(0xf0)](_0x27ad7a)[_0xc4e641(0xef)](_0x20bbf4=>{const _0x49bb5b=_0xc4e641;_0x20bbf4[_0x49bb5b(0xec)]('__')&&delete _0x27ad7a[_0x20bbf4];});}),_0x5d1db3;}};
1
+ const a0_0x16911d=a0_0x1986;(function(_0x35c0e5,_0xc07807){const _0x44fdc8=a0_0x1986,_0x24daab=_0x35c0e5();while(!![]){try{const _0x16464c=-parseInt(_0x44fdc8(0x9f))/0x1*(parseInt(_0x44fdc8(0x92))/0x2)+parseInt(_0x44fdc8(0x8a))/0x3+-parseInt(_0x44fdc8(0x87))/0x4*(-parseInt(_0x44fdc8(0xa0))/0x5)+-parseInt(_0x44fdc8(0xb9))/0x6+parseInt(_0x44fdc8(0xa1))/0x7*(-parseInt(_0x44fdc8(0xb3))/0x8)+-parseInt(_0x44fdc8(0xbd))/0x9*(parseInt(_0x44fdc8(0x99))/0xa)+parseInt(_0x44fdc8(0xc4))/0xb;if(_0x16464c===_0xc07807)break;else _0x24daab['push'](_0x24daab['shift']());}catch(_0x34af08){_0x24daab['push'](_0x24daab['shift']());}}}(a0_0x510c,0x7920d));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x1986(_0x12f188,_0x4b2f2b){const _0x510cbb=a0_0x510c();return a0_0x1986=function(_0x198613,_0x39714d){_0x198613=_0x198613-0x86;let _0x31b801=_0x510cbb[_0x198613];return _0x31b801;},a0_0x1986(_0x12f188,_0x4b2f2b);}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';function a0_0x510c(){const _0x4a75c8=['1628392AMCPot','gristConfigSet','save','getData','querySelector','stringify','connectedCallback','1037950jvxQbL','getButtonContainer','parseGristConfigs','clear','renderRoot','___data','1bDafev','1730gqqvvr','210otonVT','data','filterFormId','grist','find','updateMultiple','gridEmphasized','getParams','grid_column','dataSet','render','findOne','getSelectedIdList','getContextObject','grid','firstUpdated','exportableData','getBasicGristStyles','47648SbNVGX','gristId','forEach','pageInitialized','isElement','menuInfo','696786aDCWEZ','styles','ox-filters-form','title','9HbyJxX','isNotEmpty','shadowRoot','fetch','parse','keys','isPage','3636743BQquTh','parseBasicGridConfigs','9336HPYalg','context','startsWith','1712298JgCklB','records','activityDataSet','searchConfig','import','filterForm','ox-grist','getBasicGristHtml'];a0_0x510c=function(){return _0x4a75c8;};return a0_0x510c();}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x592122=>class extends MetaButtonMixin(_0x592122){static get[a0_0x16911d(0xba)](){const _0x17f826=a0_0x16911d;return MetaApi[_0x17f826(0xb2)]();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x16911d(0xa4)](){const _0x3592fd=a0_0x16911d;return this[_0x3592fd(0x9d)]?.[_0x3592fd(0x96)](this[_0x3592fd(0xb4)]);}get[a0_0x16911d(0x8f)](){const _0x3fee0d=a0_0x16911d;return this[_0x3fee0d(0xbf)]?.[_0x3fee0d(0x96)](this[_0x3fee0d(0xa3)]);}get[a0_0x16911d(0x88)](){const _0x17f7b0=a0_0x16911d;return MetaUiUtil[_0x17f7b0(0xae)](this);}async[a0_0x16911d(0x98)](){const _0x546efb=a0_0x16911d;this[_0x546efb(0xb4)]=_0x546efb(0x90),this[_0x546efb(0xa3)]=_0x546efb(0xbb),await this['getAndParseMenuMeta'](),this[_0x546efb(0xb7)]&&await this[_0x546efb(0x9b)](),this['activityDataSet']&&(this[_0x546efb(0xaa)]=this[_0x546efb(0x8c)]),super[_0x546efb(0x98)]&&await super[_0x546efb(0x98)]();}async['firstUpdated'](){const _0x305ec7=a0_0x16911d;super[_0x305ec7(0xb0)]&&await super['firstUpdated']();}async['pageInitialized'](){const _0xa3b62e=a0_0x16911d;this[_0xa3b62e(0xc3)]&&await this[_0xa3b62e(0x9b)](),super[_0xa3b62e(0xb6)]&&await super['pageInitialized']();}[a0_0x16911d(0xab)](){const _0xa1ba30=a0_0x16911d;return html`
2
+ ${MetaApi[_0xa1ba30(0x91)](this)}
3
+ ${this[_0xa1ba30(0xc3)]?html``:MetaUiUtil[_0xa1ba30(0x9a)](this)}
4
+ `;}[a0_0x16911d(0x86)](_0x1c120f){const _0x3d57c0=a0_0x16911d;this['gridConfig']=_0x1c120f[_0x3d57c0(0xaf)],this['gridColumnConfig']=_0x1c120f[_0x3d57c0(0xa9)],this[_0x3d57c0(0x8d)]=_0x1c120f['search'],this[_0x3d57c0(0xa7)]=_0x1c120f[_0x3d57c0(0xa7)];}async[a0_0x16911d(0x9b)](){const _0x41dade=a0_0x16911d;this[_0x41dade(0x93)]=await MetaApi['parseGridConfigSet'](this);}async[a0_0x16911d(0xc0)](){const _0x2da2f8=a0_0x16911d;await this[_0x2da2f8(0xa4)][_0x2da2f8(0xc0)]();}async[a0_0x16911d(0x94)](){const _0x58431d=a0_0x16911d;let _0x2ac481=MetaApi['patchesForUpdateMultiple'](this[_0x58431d(0xa4)]);!!ValueUtil[_0x58431d(0xbe)](_0x2ac481)&&await this[_0x58431d(0xa6)](_0x2ac481)&&this['fetch']();}async[a0_0x16911d(0xa5)](){const _0x74eaea=a0_0x16911d;let _0x1fc3d0=MetaApi[_0x74eaea(0xad)](this[_0x74eaea(0xa4)],!0x0);return ValueUtil[_0x74eaea(0xbe)](_0x1fc3d0)?await this[_0x74eaea(0xac)](_0x1fc3d0[0x0]):{};}async['delete'](){const _0x266e7e=a0_0x16911d;let _0x5cac93=MetaApi[_0x266e7e(0xad)](this[_0x266e7e(0xa4)],!0x0);!!ValueUtil['isNotEmpty'](_0x5cac93)&&await this['deleteByIds'](_0x5cac93)&&this[_0x266e7e(0xc0)]();}async['export'](){const _0x8bd7bf=a0_0x16911d;let _0xd774cb=TermsUtil['tTitle'](ValueUtil[_0x8bd7bf(0xa8)](this[_0x8bd7bf(0xb8)],_0x8bd7bf(0xbc)));return await MetaApi[_0x8bd7bf(0xb1)](this[_0x8bd7bf(0xb7)],_0xd774cb,this['grist']);}async[a0_0x16911d(0x8e)](){}async[a0_0x16911d(0x9c)](){const _0x5b97db=a0_0x16911d;this[_0x5b97db(0xa4)]&&(this['grist'][_0x5b97db(0xa2)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x16911d(0x95)](){const _0x2bbf82=a0_0x16911d;let _0x6c9937=this['grist'][_0x2bbf82(0x9e)][_0x2bbf82(0x8b)];return _0x6c9937=JSON[_0x2bbf82(0xc1)](JSON[_0x2bbf82(0x97)](_0x6c9937)),_0x6c9937[_0x2bbf82(0xb5)](_0x25dc37=>{const _0x314a21=_0x2bbf82;Object[_0x314a21(0xc2)](_0x25dc37)[_0x314a21(0xb5)](_0x1cbdc2=>{const _0xc49bf9=_0x314a21;_0x1cbdc2[_0xc49bf9(0x89)]('__')&&delete _0x25dc37[_0x1cbdc2];});}),_0x6c9937;}};
@@ -1 +1 @@
1
- const a0_0x3f0260=a0_0x542e;(function(_0x1a46d2,_0x3227fc){const _0x4aa621=a0_0x542e,_0x4d26d3=_0x1a46d2();while(!![]){try{const _0x142131=-parseInt(_0x4aa621(0xc5))/0x1*(-parseInt(_0x4aa621(0xe1))/0x2)+parseInt(_0x4aa621(0xc8))/0x3+-parseInt(_0x4aa621(0xd9))/0x4*(-parseInt(_0x4aa621(0xc9))/0x5)+parseInt(_0x4aa621(0xcf))/0x6*(-parseInt(_0x4aa621(0xd2))/0x7)+parseInt(_0x4aa621(0xcd))/0x8*(parseInt(_0x4aa621(0xd5))/0x9)+-parseInt(_0x4aa621(0xdc))/0xa+parseInt(_0x4aa621(0xd1))/0xb;if(_0x142131===_0x3227fc)break;else _0x4d26d3['push'](_0x4d26d3['shift']());}catch(_0x52f985){_0x4d26d3['push'](_0x4d26d3['shift']());}}}(a0_0xe52f,0xacd37));function a0_0x542e(_0x55b27d,_0x4c6b78){const _0xe52f7b=a0_0xe52f();return a0_0x542e=function(_0x542e67,_0x156391){_0x542e67=_0x542e67-0xc3;let _0x1a1eea=_0xe52f7b[_0x542e67];return _0x1a1eea;},a0_0x542e(_0x55b27d,_0x4c6b78);}function a0_0xe52f(){const _0x6d0b02=['32UNWIXH','buttonConfig','useButtonExport','3916450diMzuH','getCustomButtonContainerStyles','isButtonExist','gristButtonHandler','getContextButtons','2DLxVBv','import','getButtonActionHandler','98834pbWqgi','properties','button','380100mdJieB','701380BFdhMJ','getButtonContainer','getCustomButtonContainerStyle','export','3208KfnQQZ','customButtonHandler','7040766FGkDjo','parseBasicButtonConfigs','1845470bAvxLX','7CIwtgi','useButtonAdd','isPage','17001XJinKD','useButtonImport','getBasicButtonHandler','add'];a0_0xe52f=function(){return _0x6d0b02;};return a0_0xe52f();}import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x51c1ec=>class extends MetaServiceMixin(_0x51c1ec){static get[a0_0x3f0260(0xc6)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x3f0260(0xcb)](){const _0x21fe09=a0_0x3f0260;return MetaUiUtil[_0x21fe09(0xdd)]();}[a0_0x3f0260(0xe0)](){const _0xb08fef=a0_0x3f0260;return MetaUiUtil[_0xb08fef(0xe0)](this);}[a0_0x3f0260(0xca)](){const _0x5bd188=a0_0x3f0260;return this[_0x5bd188(0xd4)]?html``:MetaUiUtil[_0x5bd188(0xca)](this);}async[a0_0x3f0260(0xd7)](_0x282d06,_0x296136,_0x220fbd){const _0x21cb3e=a0_0x3f0260;return await MetaUiUtil[_0x21cb3e(0xc4)](this,_0x282d06,_0x296136,_0x220fbd);}async[a0_0x3f0260(0xce)](_0x16ebc4){const _0x2276c4=a0_0x3f0260;await MetaUiUtil[_0x2276c4(0xce)](this,_0x16ebc4);}async[a0_0x3f0260(0xdf)](_0x347c31,_0xe21ac7){const _0x5f4edf=a0_0x3f0260;await MetaUiUtil[_0x5f4edf(0xdf)](this,_0x347c31,_0xe21ac7);}[a0_0x3f0260(0xd0)](_0x17cb00){const _0x74418b=a0_0x3f0260;this[_0x74418b(0xda)]=_0x17cb00[_0x74418b(0xc7)],this[_0x74418b(0xd6)]=MetaUiUtil[_0x74418b(0xde)](this[_0x74418b(0xda)],_0x74418b(0xc3)),this[_0x74418b(0xdb)]=MetaUiUtil[_0x74418b(0xde)](this['buttonConfig'],_0x74418b(0xcc)),this[_0x74418b(0xd3)]=MetaUiUtil[_0x74418b(0xde)](this[_0x74418b(0xda)],_0x74418b(0xd8));}};
1
+ const a0_0x914282=a0_0x2d6c;(function(_0x1178cb,_0x19538a){const _0x16d76c=a0_0x2d6c,_0x165628=_0x1178cb();while(!![]){try{const _0x31481f=-parseInt(_0x16d76c(0x1cc))/0x1*(-parseInt(_0x16d76c(0x1cf))/0x2)+-parseInt(_0x16d76c(0x1d6))/0x3*(-parseInt(_0x16d76c(0x1d5))/0x4)+parseInt(_0x16d76c(0x1be))/0x5+parseInt(_0x16d76c(0x1d1))/0x6+-parseInt(_0x16d76c(0x1c8))/0x7*(parseInt(_0x16d76c(0x1bd))/0x8)+parseInt(_0x16d76c(0x1d2))/0x9*(-parseInt(_0x16d76c(0x1bc))/0xa)+-parseInt(_0x16d76c(0x1c9))/0xb*(-parseInt(_0x16d76c(0x1d0))/0xc);if(_0x31481f===_0x19538a)break;else _0x165628['push'](_0x165628['shift']());}catch(_0x10b085){_0x165628['push'](_0x165628['shift']());}}}(a0_0x3518,0x8ff54));function a0_0x2d6c(_0x5c9356,_0x22241e){const _0x3518a5=a0_0x3518();return a0_0x2d6c=function(_0x2d6c85,_0x4bc9a3){_0x2d6c85=_0x2d6c85-0x1bc;let _0x1c4a0e=_0x3518a5[_0x2d6c85];return _0x1c4a0e;},a0_0x2d6c(_0x5c9356,_0x22241e);}import{html}from'lit';function a0_0x3518(){const _0x1736a2=['536496RjIHPg','19017RcJOFl','parseBasicButtonConfigs','isButtonExist','11948tAMiZD','177NNRvYK','4840oRsRJA','264lqnSaN','2802290ZoIBqi','getContextButtons','useButtonAdd','getButtonContainer','button','customButtonHandler','getBasicButtonHandler','add','export','buttonConfig','75159VRITUm','99YFhjZI','getButtonActionHandler','getCustomButtonContainerStyle','23doTPnQ','useButtonImport','gristButtonHandler','186WSrxZc','1517892aeXvbD'];a0_0x3518=function(){return _0x1736a2;};return a0_0x3518();}import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x5b1bae=>class extends MetaServiceMixin(_0x5b1bae){static get['properties'](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x914282(0x1cb)](){return MetaUiUtil['getCustomButtonContainerStyles']();}['getContextButtons'](){const _0x36f143=a0_0x914282;return MetaUiUtil[_0x36f143(0x1bf)](this);}['getButtonContainer'](){const _0x5f0f38=a0_0x914282;return this['isPage']?html``:MetaUiUtil[_0x5f0f38(0x1c1)](this);}async[a0_0x914282(0x1c4)](_0x4cea9f,_0x4d4642,_0x5f405e){const _0x54a360=a0_0x914282;return await MetaUiUtil[_0x54a360(0x1ca)](this,_0x4cea9f,_0x4d4642,_0x5f405e);}async[a0_0x914282(0x1c3)](_0x420f25){await MetaUiUtil['customButtonHandler'](this,_0x420f25);}async['gristButtonHandler'](_0x26a023,_0x21676b){const _0x3c3235=a0_0x914282;await MetaUiUtil[_0x3c3235(0x1ce)](this,_0x26a023,_0x21676b);}[a0_0x914282(0x1d3)](_0x2de3f9){const _0x261580=a0_0x914282;this[_0x261580(0x1c7)]=_0x2de3f9[_0x261580(0x1c2)],this[_0x261580(0x1cd)]=MetaUiUtil[_0x261580(0x1d4)](this['buttonConfig'],'import'),this['useButtonExport']=MetaUiUtil['isButtonExist'](this[_0x261580(0x1c7)],_0x261580(0x1c6)),this[_0x261580(0x1c0)]=MetaUiUtil['isButtonExist'](this['buttonConfig'],_0x261580(0x1c5));}};
@@ -1 +1 @@
1
- const a0_0x162d6d=a0_0x5afa;(function(_0xaff18b,_0x6fa6ee){const _0x5d2198=a0_0x5afa,_0x59b671=_0xaff18b();while(!![]){try{const _0x46322c=-parseInt(_0x5d2198(0x1c4))/0x1+-parseInt(_0x5d2198(0x1d0))/0x2*(parseInt(_0x5d2198(0x1fb))/0x3)+-parseInt(_0x5d2198(0x212))/0x4+parseInt(_0x5d2198(0x1c6))/0x5*(parseInt(_0x5d2198(0x1c1))/0x6)+parseInt(_0x5d2198(0x1c0))/0x7*(-parseInt(_0x5d2198(0x205))/0x8)+-parseInt(_0x5d2198(0x215))/0x9*(parseInt(_0x5d2198(0x1f8))/0xa)+parseInt(_0x5d2198(0x217))/0xb;if(_0x46322c===_0x6fa6ee)break;else _0x59b671['push'](_0x59b671['shift']());}catch(_0x5ab42f){_0x59b671['push'](_0x59b671['shift']());}}}(a0_0x1bc0,0x6a09e));function a0_0x5afa(_0x4eb9d5,_0x5bd4df){const _0x1bc009=a0_0x1bc0();return a0_0x5afa=function(_0x5afab3,_0x3d5dc7){_0x5afab3=_0x5afab3-0x1b6;let _0xf28a39=_0x1bc009[_0x5afab3];return _0xf28a39;},a0_0x5afa(_0x4eb9d5,_0x5bd4df);}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x1bc0(){const _0x33882a=['9FbkPVZ','startsWith','25683614Cfyqqm','formRenderConfig','object','name','stopPropagation','connectedCallback','currentData','confirm','__dirty__','field-change','detail','136283vXzFQN','17628FXqDGJ','focus','findOne','50785rUhFMU','tText','115uTgovH','assign','call','key','styles','getData','showAlertPopup','dataSet','form','__origin__','6becJaw','check-mandatory-field','cuFlag','pageInitialized','info','tLabel','mandatory','isPage','dispatchEvent','parseFormConfigSet','render','orgData','grid_column','filter','__dirtyfields__','title.info','record','column','activityDataSet','tagName','text.check-mandatory','dirtyData','parent_id','Esc','isNotEmpty','currentTarget','fetch','activity','clear','firstUpdated','text.NOTHING_CHANGED','isEmpty','editable','isElement','code-input','patchData','editing','keys','OX-GRID-FIELD','forEach','8239010aGybeh','Escape','map','210981dDnlHc','formConfigSet','renderRoot','click','removeAttribute','is_activity','entries','parseBasicFormConfigs','addEventListener','type','24qswdHc','isEquals','target','before','save','getBasicFormStyles','formColumnConfig','parseFormConfigs','function','after','setAttribute','removeGarbageData','properties','3296160oxapkt','form-field-change','context'];a0_0x1bc0=function(){return _0x33882a;};return a0_0x1bc0();}import{ValueUtil}from'../utils/value-util';import{UiUtil}from'../utils/ui-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x594f29=>class extends MetaButtonMixin(_0x594f29){static get[a0_0x162d6d(0x1ca)](){const _0x490724=a0_0x162d6d;return MetaApi[_0x490724(0x20a)]();}static get[a0_0x162d6d(0x211)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x162d6d(0x214)](){return MetaUiUtil['getContextObject'](this);}async[a0_0x162d6d(0x1ba)](){const _0x3ec4c0=a0_0x162d6d;await this['getAndParseMenuMeta'](),this[_0x3ec4c0(0x1f1)]&&await this[_0x3ec4c0(0x20c)](),this[_0x3ec4c0(0x1e2)]&&(this[_0x3ec4c0(0x1cd)]=this[_0x3ec4c0(0x1e2)]),!0x0!==this[_0x3ec4c0(0x200)]||this[_0x3ec4c0(0x1e6)]||(this['parent_id']=_0x3ec4c0(0x1eb)),super[_0x3ec4c0(0x1ba)]&&await super['connectedCallback'](),this[_0x3ec4c0(0x1f1)]&&await this[_0x3ec4c0(0x1ea)](),this[_0x3ec4c0(0x1fd)][_0x3ec4c0(0x203)]('keydown',_0x4d040e=>{const _0x5001c2=_0x3ec4c0;switch(_0x4d040e[_0x5001c2(0x1c9)]){case _0x5001c2(0x1e7):case _0x5001c2(0x1f9):case'Enter':this[_0x5001c2(0x1c2)](),this[_0x5001c2(0x1e9)]&&this[_0x5001c2(0x1e9)][_0x5001c2(0x1ff)](_0x5001c2(0x1f4)),this['currentTarget']=null;}}),this[_0x3ec4c0(0x1fd)][_0x3ec4c0(0x203)](_0x3ec4c0(0x1fe),_0x6d5bee=>{const _0x5edf82=_0x3ec4c0;_0x6d5bee[_0x5edf82(0x1b9)]();let _0x2e8884=_0x6d5bee[_0x5edf82(0x207)];if(this[_0x5edf82(0x1e9)]&&(this[_0x5edf82(0x1c2)](),this[_0x5edf82(0x1e9)][_0x5edf82(0x1ff)](_0x5edf82(0x1f4))),_0x5edf82(0x1f6)!==_0x2e8884[_0x5edf82(0x1e3)]||!_0x2e8884[_0x5edf82(0x1e1)][_0x5edf82(0x1e0)][_0x5edf82(0x1f0)])return this[_0x5edf82(0x1c2)](),void(this['currentTarget']=null);this['currentTarget']=_0x2e8884,_0x2e8884[_0x5edf82(0x20f)](_0x5edf82(0x1f4),'true');}),this['addEventListener'](_0x3ec4c0(0x1be),_0x20f902=>{const _0x492c47=_0x3ec4c0;var {after:_0xc3c7b7,before:_0x3fb74a,column:_0x5a2569,record:_0x4b181e,row:_0x91561e}=_0x20f902[_0x492c47(0x1bf)];if(ValueUtil[_0x492c47(0x206)](_0xc3c7b7,_0x3fb74a))return;var _0x360320=_0x5a2569['validation'];if(_0x360320&&_0x492c47(0x20d)==typeof _0x360320&&!_0x360320[_0x492c47(0x1c8)](this,_0xc3c7b7,_0x3fb74a,_0x4b181e,_0x5a2569))return;let _0x18a8b3=_0x5a2569[_0x492c47(0x1b8)];_0x4b181e[_0x18a8b3]=_0xc3c7b7,_0x4b181e['__dirtyfields__']=_0x4b181e[_0x492c47(0x1de)]||{},_0x4b181e['__origin__']=_0x4b181e['__origin__']||{},_0x4b181e[_0x492c47(0x1de)][_0x18a8b3]={'before':_0x4b181e[_0x492c47(0x1cf)][_0x18a8b3],'after':_0x4b181e[_0x18a8b3]},ValueUtil[_0x492c47(0x206)](_0x4b181e[_0x492c47(0x1de)][_0x18a8b3][_0x492c47(0x208)],_0x4b181e[_0x492c47(0x1de)][_0x18a8b3]['after'])&&delete _0x4b181e[_0x492c47(0x1de)][_0x18a8b3],ValueUtil[_0x492c47(0x1e8)](_0x4b181e[_0x492c47(0x1de)])?_0x4b181e[_0x492c47(0x1bd)]='M':_0x4b181e[_0x492c47(0x1bd)]='',this[_0x492c47(0x1e0)]={..._0x4b181e},this[_0x492c47(0x1d8)](new CustomEvent(_0x492c47(0x213),{'bubbles':!0x0,'composed':!0x0,'detail':_0x20f902[_0x492c47(0x1bf)]}));});}async[a0_0x162d6d(0x1ed)](){const _0x552865=a0_0x162d6d;super[_0x552865(0x1ed)]&&await super['firstUpdated']();}async[a0_0x162d6d(0x1d3)](){const _0x289379=a0_0x162d6d;this[_0x289379(0x1d7)]&&await this['parseFormConfigs'](),super[_0x289379(0x1d3)]&&await super['pageInitialized'](),this['isPage']&&await this[_0x289379(0x1ea)]();}[a0_0x162d6d(0x1da)](){return MetaApi['getBasicFormHtml'](this);}[a0_0x162d6d(0x202)](_0x300fa3){const _0x253a2e=a0_0x162d6d;this[_0x253a2e(0x20b)]=_0x300fa3[_0x253a2e(0x1dc)],this[_0x253a2e(0x1b6)]=_0x300fa3[_0x253a2e(0x1ce)],_0x300fa3['button']=_0x300fa3['button']['filter'](_0x2a0b7e=>_0x253a2e(0x209)==_0x2a0b7e[_0x253a2e(0x1b8)]);}async[a0_0x162d6d(0x20c)](){const _0x3fa8ae=a0_0x162d6d;this[_0x3fa8ae(0x1fc)]=await MetaApi[_0x3fa8ae(0x1d9)](this);}get[a0_0x162d6d(0x1db)](){const _0x586c34=a0_0x162d6d;return this['removeGarbageData'](this[_0x586c34(0x1e0)][_0x586c34(0x1cf)]);}get[a0_0x162d6d(0x1e5)](){const _0x5c3e0c=a0_0x162d6d;if(ValueUtil[_0x5c3e0c(0x1ef)]((this['record']||{})[_0x5c3e0c(0x1de)]))return{};let _0x4b6f0f={};return Object[_0x5c3e0c(0x201)](this[_0x5c3e0c(0x1e0)][_0x5c3e0c(0x1de)])[_0x5c3e0c(0x1fa)](([_0x4fbb79,_0x4ef358])=>{const _0x36a54e=_0x5c3e0c;0x0==_0x4fbb79[_0x36a54e(0x216)]('__')&&(_0x4b6f0f[_0x4fbb79]=_0x4ef358[_0x36a54e(0x20e)]);}),_0x4b6f0f;}get[a0_0x162d6d(0x1bb)](){const _0x5852f1=a0_0x162d6d;return this[_0x5852f1(0x210)](this['record']);}[a0_0x162d6d(0x210)](_0xabf81a){const _0x3bcf13=a0_0x162d6d;let _0x5166f7={};if(_0xabf81a)return Object[_0x3bcf13(0x201)](_0xabf81a)[_0x3bcf13(0x1fa)](([_0x559bcf,_0x34cc53])=>{0x0==_0x559bcf['startsWith']('__')&&(_0x5166f7[_0x559bcf]=_0x34cc53);}),_0x5166f7;}get[a0_0x162d6d(0x1f3)](){const _0x399985=a0_0x162d6d;let _0x2a8622=this[_0x399985(0x1e5)],_0x53306a=this['record'],_0x4e96be=(this[_0x399985(0x20b)]||[])[_0x399985(0x1dd)](_0x45df5a=>_0x399985(0x1f2)===_0x45df5a[_0x399985(0x204)])[_0x399985(0x1fa)](_0x3d35bb=>_0x3d35bb['name']);if(!ValueUtil[_0x399985(0x1ef)](_0x2a8622))return ValueUtil['isNotEmpty'](_0x53306a['id'])?(_0x2a8622['id']=_0x53306a['id'],_0x2a8622['cuFlag']='M'):_0x2a8622[_0x399985(0x1d2)]='+',Object[_0x399985(0x1f5)](_0x2a8622)[_0x399985(0x1f7)](_0x23947b=>{const _0x2cf5f5=_0x399985;_0x2cf5f5(0x1b7)==typeof _0x2a8622[_0x23947b]&&0x0==_0x4e96be['includes'](_0x23947b)&&(_0x2a8622[_0x23947b]={'id':_0x2a8622[_0x23947b]['id']});}),[_0x2a8622];}async[a0_0x162d6d(0x1ea)](){const _0x15c893=a0_0x162d6d;if(ValueUtil['isEmpty'](this[_0x15c893(0x1e6)]))return;let _0x371ccf=await this[_0x15c893(0x1c3)](this[_0x15c893(0x1e6)]);_0x371ccf['__seq__']=0x1;let _0x50c93b={};Object[_0x15c893(0x1c7)](_0x50c93b,_0x371ccf),_0x371ccf[_0x15c893(0x1cf)]=_0x50c93b,this['record']={..._0x371ccf};}async[a0_0x162d6d(0x209)](){const _0x32e209=a0_0x162d6d;let _0x2e421e=this[_0x32e209(0x1f3)];if(ValueUtil[_0x32e209(0x1ef)](_0x2e421e))return void MetaApi[_0x32e209(0x1cc)](_0x32e209(0x1df),_0x32e209(0x1ee));let _0x16f48c={};(this['formColumnConfig']||[])[_0x32e209(0x1dd)](_0x45769e=>!0x0===_0x45769e[_0x32e209(0x1d6)])[_0x32e209(0x1f7)](_0x4dbd3f=>{const _0x209648=_0x32e209;_0x16f48c[_0x4dbd3f[_0x209648(0x1b8)]]=_0x4dbd3f['header'];});let _0x5f01b6=this[_0x32e209(0x1bb)];for(let _0x5f486c in _0x16f48c)if(void 0x0===_0x5f01b6[_0x5f486c]||''==_0x5f01b6[_0x5f486c])return void UiUtil['showAlertPopup'](_0x32e209(0x1e4),TermsUtil[_0x32e209(0x1c5)](_0x32e209(0x1d1),{'x':TermsUtil[_0x32e209(0x1d5)](_0x16f48c[_0x5f486c])}),_0x32e209(0x1d4),_0x32e209(0x1bc));let _0x2b1afa=await this['updateMultiple'](_0x2e421e);return _0x2b1afa&&await this[_0x32e209(0x1ea)](),_0x2b1afa;}async[a0_0x162d6d(0x1ec)](){const _0x37c086=a0_0x162d6d;this[_0x37c086(0x1e0)]&&(this['record']={});}[a0_0x162d6d(0x1cb)](){const _0x4aea74=a0_0x162d6d;return this[_0x4aea74(0x1bb)]||{};}};
1
+ const a0_0x7b9f7e=a0_0x2ceb;(function(_0x2289b7,_0x350fa4){const _0x51cb25=a0_0x2ceb,_0x2877fb=_0x2289b7();while(!![]){try{const _0x3510e0=-parseInt(_0x51cb25(0x12d))/0x1+-parseInt(_0x51cb25(0x152))/0x2+parseInt(_0x51cb25(0x10b))/0x3*(-parseInt(_0x51cb25(0x147))/0x4)+parseInt(_0x51cb25(0x15e))/0x5*(parseInt(_0x51cb25(0x13f))/0x6)+-parseInt(_0x51cb25(0x11f))/0x7*(parseInt(_0x51cb25(0x15d))/0x8)+parseInt(_0x51cb25(0x153))/0x9*(parseInt(_0x51cb25(0x159))/0xa)+parseInt(_0x51cb25(0x115))/0xb*(parseInt(_0x51cb25(0x103))/0xc);if(_0x3510e0===_0x350fa4)break;else _0x2877fb['push'](_0x2877fb['shift']());}catch(_0xfd6e24){_0x2877fb['push'](_0x2877fb['shift']());}}}(a0_0x2b0d,0x74056));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{UiUtil}from'../utils/ui-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x2ceb(_0x2ddd8c,_0xc6a6b0){const _0x2b0d9e=a0_0x2b0d();return a0_0x2ceb=function(_0x2ceb43,_0x16b365){_0x2ceb43=_0x2ceb43-0x102;let _0x5d0d47=_0x2b0d9e[_0x2ceb43];return _0x5d0d47;},a0_0x2ceb(_0x2ddd8c,_0xc6a6b0);}function a0_0x2b0d(){const _0x4def3f=['entries','name','map','isEquals','before','__seq__','15tkjStv','formConfigSet','parseFormConfigs','assign','forEach','dataSet','formColumnConfig','filter','target','patchData','1529XBkWhc','isNotEmpty','__origin__','is_activity','firstUpdated','function','isEmpty','validation','title.info','info','1822261xrTErX','check-mandatory-field','isPage','mandatory','button','cuFlag','editable','render','orgData','parseBasicFormConfigs','removeAttribute','header','setAttribute','pageInitialized','863556BwsgWV','styles','updateMultiple','currentData','parseFormConfigSet','connectedCallback','grid_column','confirm','activity','call','stopPropagation','save','isElement','context','Escape','true','object','keydown','6HxkqiC','record','clear','currentTarget','getBasicFormHtml','getContextObject','findOne','OX-GRID-FIELD','88604TGISiA','renderRoot','formRenderConfig','text.check-mandatory','text.NOTHING_CHANGED','form','__dirtyfields__','keys','getBasicFormStyles','removeGarbageData','editing','617240hEPVUi','498969rGUxNP','addEventListener','fetch','__dirty__','dispatchEvent','tagName','130SUVoyS','activityDataSet','properties','parent_id','16QrAxMb','476845XNqMqt','after','dirtyData','focus','showAlertPopup','126276hgeHUt','tLabel'];a0_0x2b0d=function(){return _0x4def3f;};return a0_0x2b0d();}export const MetaFormMixin=_0x51114e=>class extends MetaButtonMixin(_0x51114e){static get[a0_0x7b9f7e(0x12e)](){const _0x465f09=a0_0x7b9f7e;return MetaApi[_0x465f09(0x14f)]();}static get[a0_0x7b9f7e(0x15b)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x7b9f7e(0x13a)](){const _0x197df5=a0_0x7b9f7e;return MetaUiUtil[_0x197df5(0x144)](this);}async[a0_0x7b9f7e(0x132)](){const _0x45f5e1=a0_0x7b9f7e;await this['getAndParseMenuMeta'](),this[_0x45f5e1(0x139)]&&await this[_0x45f5e1(0x10d)](),this[_0x45f5e1(0x15a)]&&(this[_0x45f5e1(0x110)]=this[_0x45f5e1(0x15a)]),!0x0!==this[_0x45f5e1(0x118)]||this[_0x45f5e1(0x15c)]||(this[_0x45f5e1(0x15c)]=_0x45f5e1(0x135)),super[_0x45f5e1(0x132)]&&await super[_0x45f5e1(0x132)](),this[_0x45f5e1(0x139)]&&await this[_0x45f5e1(0x155)](),this[_0x45f5e1(0x148)][_0x45f5e1(0x154)](_0x45f5e1(0x13e),_0x195e82=>{const _0x591c63=_0x45f5e1;switch(_0x195e82['key']){case'Esc':case _0x591c63(0x13b):case'Enter':this['focus'](),this[_0x591c63(0x142)]&&this['currentTarget'][_0x591c63(0x129)](_0x591c63(0x151)),this[_0x591c63(0x142)]=null;}}),this[_0x45f5e1(0x148)][_0x45f5e1(0x154)]('click',_0x576291=>{const _0x248ec5=_0x45f5e1;_0x576291[_0x248ec5(0x137)]();let _0x2db630=_0x576291[_0x248ec5(0x113)];if(this[_0x248ec5(0x142)]&&(this['focus'](),this[_0x248ec5(0x142)][_0x248ec5(0x129)](_0x248ec5(0x151))),_0x248ec5(0x146)!==_0x2db630[_0x248ec5(0x158)]||!_0x2db630['column']['record'][_0x248ec5(0x125)])return this[_0x248ec5(0x161)](),void(this[_0x248ec5(0x142)]=null);this[_0x248ec5(0x142)]=_0x2db630,_0x2db630[_0x248ec5(0x12b)]('editing',_0x248ec5(0x13c));}),this[_0x45f5e1(0x154)]('field-change',_0x4035c1=>{const _0x519bed=_0x45f5e1;var {after:_0x2daf80,before:_0x5349e7,column:_0x3822db,record:_0x2b47b6,row:_0x25543b}=_0x4035c1['detail'];if(ValueUtil[_0x519bed(0x108)](_0x2daf80,_0x5349e7))return;var _0x378e14=_0x3822db[_0x519bed(0x11c)];if(_0x378e14&&_0x519bed(0x11a)==typeof _0x378e14&&!_0x378e14[_0x519bed(0x136)](this,_0x2daf80,_0x5349e7,_0x2b47b6,_0x3822db))return;let _0x50c4ee=_0x3822db[_0x519bed(0x106)];_0x2b47b6[_0x50c4ee]=_0x2daf80,_0x2b47b6['__dirtyfields__']=_0x2b47b6[_0x519bed(0x14d)]||{},_0x2b47b6['__origin__']=_0x2b47b6[_0x519bed(0x117)]||{},_0x2b47b6[_0x519bed(0x14d)][_0x50c4ee]={'before':_0x2b47b6[_0x519bed(0x117)][_0x50c4ee],'after':_0x2b47b6[_0x50c4ee]},ValueUtil[_0x519bed(0x108)](_0x2b47b6[_0x519bed(0x14d)][_0x50c4ee][_0x519bed(0x109)],_0x2b47b6['__dirtyfields__'][_0x50c4ee][_0x519bed(0x15f)])&&delete _0x2b47b6[_0x519bed(0x14d)][_0x50c4ee],ValueUtil['isNotEmpty'](_0x2b47b6[_0x519bed(0x14d)])?_0x2b47b6['__dirty__']='M':_0x2b47b6[_0x519bed(0x156)]='',this['record']={..._0x2b47b6},this[_0x519bed(0x157)](new CustomEvent('form-field-change',{'bubbles':!0x0,'composed':!0x0,'detail':_0x4035c1['detail']}));});}async['firstUpdated'](){const _0x48a5bc=a0_0x7b9f7e;super[_0x48a5bc(0x119)]&&await super[_0x48a5bc(0x119)]();}async[a0_0x7b9f7e(0x12c)](){const _0x13c0b5=a0_0x7b9f7e;this[_0x13c0b5(0x121)]&&await this[_0x13c0b5(0x10d)](),super[_0x13c0b5(0x12c)]&&await super[_0x13c0b5(0x12c)](),this[_0x13c0b5(0x121)]&&await this['fetch']();}[a0_0x7b9f7e(0x126)](){const _0x2804cb=a0_0x7b9f7e;return MetaApi[_0x2804cb(0x143)](this);}[a0_0x7b9f7e(0x128)](_0x2db741){const _0x4a4591=a0_0x7b9f7e;this['formColumnConfig']=_0x2db741[_0x4a4591(0x133)],this[_0x4a4591(0x149)]=_0x2db741[_0x4a4591(0x14c)],_0x2db741[_0x4a4591(0x123)]=_0x2db741[_0x4a4591(0x123)][_0x4a4591(0x112)](_0x4972f4=>'save'==_0x4972f4[_0x4a4591(0x106)]);}async[a0_0x7b9f7e(0x10d)](){const _0x101da5=a0_0x7b9f7e;this[_0x101da5(0x10c)]=await MetaApi[_0x101da5(0x131)](this);}get[a0_0x7b9f7e(0x127)](){const _0x509c0e=a0_0x7b9f7e;return this[_0x509c0e(0x150)](this[_0x509c0e(0x140)][_0x509c0e(0x117)]);}get[a0_0x7b9f7e(0x160)](){const _0x25477a=a0_0x7b9f7e;if(ValueUtil[_0x25477a(0x11b)]((this[_0x25477a(0x140)]||{})['__dirtyfields__']))return{};let _0x4a259b={};return Object[_0x25477a(0x105)](this[_0x25477a(0x140)]['__dirtyfields__'])['map'](([_0x27e442,_0x70b69b])=>{0x0==_0x27e442['startsWith']('__')&&(_0x4a259b[_0x27e442]=_0x70b69b['after']);}),_0x4a259b;}get[a0_0x7b9f7e(0x130)](){const _0x1d76db=a0_0x7b9f7e;return this['removeGarbageData'](this[_0x1d76db(0x140)]);}[a0_0x7b9f7e(0x150)](_0x3cc1e3){const _0x3ac6c7=a0_0x7b9f7e;let _0x9bae49={};if(_0x3cc1e3)return Object[_0x3ac6c7(0x105)](_0x3cc1e3)[_0x3ac6c7(0x107)](([_0x760217,_0x38f666])=>{0x0==_0x760217['startsWith']('__')&&(_0x9bae49[_0x760217]=_0x38f666);}),_0x9bae49;}get[a0_0x7b9f7e(0x114)](){const _0x5abfa3=a0_0x7b9f7e;let _0x15185a=this[_0x5abfa3(0x160)],_0x33b2b7=this[_0x5abfa3(0x140)],_0x584d8b=(this['formColumnConfig']||[])['filter'](_0xc43b99=>'code-input'===_0xc43b99['type'])['map'](_0xacb52a=>_0xacb52a[_0x5abfa3(0x106)]);if(!ValueUtil[_0x5abfa3(0x11b)](_0x15185a))return ValueUtil[_0x5abfa3(0x116)](_0x33b2b7['id'])?(_0x15185a['id']=_0x33b2b7['id'],_0x15185a[_0x5abfa3(0x124)]='M'):_0x15185a[_0x5abfa3(0x124)]='+',Object[_0x5abfa3(0x14e)](_0x15185a)['forEach'](_0x565cf8=>{const _0x4b70d0=_0x5abfa3;_0x4b70d0(0x13d)==typeof _0x15185a[_0x565cf8]&&0x0==_0x584d8b['includes'](_0x565cf8)&&(_0x15185a[_0x565cf8]={'id':_0x15185a[_0x565cf8]['id']});}),[_0x15185a];}async['fetch'](){const _0x72bfd9=a0_0x7b9f7e;if(ValueUtil[_0x72bfd9(0x11b)](this['parent_id']))return;let _0x508a57=await this[_0x72bfd9(0x145)](this[_0x72bfd9(0x15c)]);_0x508a57[_0x72bfd9(0x10a)]=0x1;let _0x41dded={};Object[_0x72bfd9(0x10e)](_0x41dded,_0x508a57),_0x508a57['__origin__']=_0x41dded,this[_0x72bfd9(0x140)]={..._0x508a57};}async[a0_0x7b9f7e(0x138)](){const _0x53d8e8=a0_0x7b9f7e;let _0xf58041=this['patchData'];if(ValueUtil[_0x53d8e8(0x11b)](_0xf58041))return void MetaApi[_0x53d8e8(0x102)](_0x53d8e8(0x11d),_0x53d8e8(0x14b));let _0x129f15={};(this[_0x53d8e8(0x111)]||[])[_0x53d8e8(0x112)](_0x3adebd=>!0x0===_0x3adebd[_0x53d8e8(0x122)])[_0x53d8e8(0x10f)](_0xcc39c5=>{const _0x210037=_0x53d8e8;_0x129f15[_0xcc39c5[_0x210037(0x106)]]=_0xcc39c5[_0x210037(0x12a)];});let _0x47d23d=this[_0x53d8e8(0x130)];for(let _0x408c28 in _0x129f15)if(void 0x0===_0x47d23d[_0x408c28]||''==_0x47d23d[_0x408c28])return void UiUtil[_0x53d8e8(0x102)](_0x53d8e8(0x14a),TermsUtil['tText'](_0x53d8e8(0x120),{'x':TermsUtil[_0x53d8e8(0x104)](_0x129f15[_0x408c28])}),_0x53d8e8(0x11e),_0x53d8e8(0x134));let _0x48c886=await this[_0x53d8e8(0x12f)](_0xf58041);return _0x48c886&&await this[_0x53d8e8(0x155)](),_0x48c886;}async[a0_0x7b9f7e(0x141)](){const _0x5ac347=a0_0x7b9f7e;this['record']&&(this[_0x5ac347(0x140)]={});}['getData'](){return this['currentData']||{};}};
@@ -1 +1 @@
1
- const a0_0x1135ad=a0_0x3368;(function(_0x5a58e8,_0x49bb5c){const _0x555d11=a0_0x3368,_0x119075=_0x5a58e8();while(!![]){try{const _0x16cc3f=parseInt(_0x555d11(0x17c))/0x1+parseInt(_0x555d11(0x166))/0x2+-parseInt(_0x555d11(0x16b))/0x3*(parseInt(_0x555d11(0x144))/0x4)+-parseInt(_0x555d11(0x140))/0x5*(-parseInt(_0x555d11(0x14e))/0x6)+parseInt(_0x555d11(0x188))/0x7*(parseInt(_0x555d11(0x168))/0x8)+-parseInt(_0x555d11(0x181))/0x9+-parseInt(_0x555d11(0x141))/0xa*(parseInt(_0x555d11(0x14b))/0xb);if(_0x16cc3f===_0x49bb5c)break;else _0x119075['push'](_0x119075['shift']());}catch(_0x3a3230){_0x119075['push'](_0x119075['shift']());}}}(a0_0x3f74,0x32f1d));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=_0x4b9d8c=>class extends MetaButtonMixin(_0x4b9d8c){static get['styles'](){const _0x1cd63e=a0_0x3368;return MetaApi[_0x1cd63e(0x149)]();}static get[a0_0x1135ad(0x155)](){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_0x1135ad(0x178)](){const _0x4dafb0=a0_0x1135ad;return this['renderRoot'][_0x4dafb0(0x182)](this[_0x4dafb0(0x153)]);}get[a0_0x1135ad(0x185)](){return this['shadowRoot']?.['querySelector'](this['filterFormId']);}get[a0_0x1135ad(0x169)](){const _0x151207=a0_0x1135ad;return this['shadowRoot'][_0x151207(0x182)](_0x151207(0x16d));}get[a0_0x1135ad(0x164)](){const _0x1cb5f7=a0_0x1135ad;let _0x351f76=MetaUiUtil[_0x1cb5f7(0x190)](this);return _0x351f76[_0x1cb5f7(0x145)]&&delete _0x351f76[_0x1cb5f7(0x145)],_0x351f76[_0x1cb5f7(0x18f)]&&delete _0x351f76[_0x1cb5f7(0x18f)],_0x351f76[_0x1cb5f7(0x17b)]&&delete _0x351f76[_0x1cb5f7(0x17b)],_0x351f76;}async[a0_0x1135ad(0x150)](){const _0xd62911=a0_0x1135ad;this[_0xd62911(0x153)]=_0xd62911(0x18d),this[_0xd62911(0x15e)]='ox-filters-form-base',await this[_0xd62911(0x162)](),this[_0xd62911(0x15d)]&&await this['parseGristConfigs'](),this[_0xd62911(0x14f)]&&(this[_0xd62911(0x146)]=(this['activityDataSet']||{})[_0xd62911(0x192)]),super[_0xd62911(0x150)]&&await super[_0xd62911(0x150)]();}async[a0_0x1135ad(0x193)](){const _0x56d37e=a0_0x1135ad;super[_0x56d37e(0x193)]&&await super[_0x56d37e(0x193)]();}async[a0_0x1135ad(0x177)](){const _0x234117=a0_0x1135ad;this['isPage']&&await this[_0x234117(0x14d)](),super[_0x234117(0x177)]&&await super[_0x234117(0x177)]();}[a0_0x1135ad(0x15f)](){const _0x386409=a0_0x1135ad;return MetaApi[_0x386409(0x163)](this);}[a0_0x1135ad(0x157)](_0x4b5080){const _0x258545=a0_0x1135ad;this[_0x258545(0x186)]=_0x4b5080[_0x258545(0x18c)],this[_0x258545(0x16e)]=_0x4b5080[_0x258545(0x18e)],this[_0x258545(0x160)]=_0x4b5080[_0x258545(0x18a)],this[_0x258545(0x152)]=_0x4b5080[_0x258545(0x152)];}async[a0_0x1135ad(0x14d)](){const _0x44d9b5=a0_0x1135ad;this['gristConfigSet']=await MetaApi[_0x44d9b5(0x147)](this),this[_0x44d9b5(0x14a)]=!0x0===this['useFilterForm'],this[_0x44d9b5(0x176)]=!0x1,this[_0x44d9b5(0x165)]=[],this[_0x44d9b5(0x14c)]=this[_0x44d9b5(0x161)][_0x44d9b5(0x148)][_0x44d9b5(0x154)](_0x124b86=>_0x124b86[_0x44d9b5(0x154)])['map'](_0x4b3f27=>{const _0x50ac5b=_0x44d9b5;let _0x19981c={'name':_0x4b3f27['name'],'type':'search'===_0x4b3f27[_0x50ac5b(0x154)][_0x50ac5b(0x17e)]?_0x50ac5b(0x18a):_0x4b3f27[_0x50ac5b(0x143)],'label':_0x4b3f27[_0x50ac5b(0x159)],'operator':_0x4b3f27[_0x50ac5b(0x154)][_0x50ac5b(0x17e)]?_0x4b3f27[_0x50ac5b(0x154)]['operator']:'eq'};return _0x4b3f27['filter'][_0x50ac5b(0x170)]&&(_0x19981c[_0x50ac5b(0x170)]=_0x4b3f27[_0x50ac5b(0x154)][_0x50ac5b(0x170)]),_0x4b3f27[_0x50ac5b(0x179)][_0x50ac5b(0x170)]&&(_0x19981c['options']=_0x4b3f27[_0x50ac5b(0x179)]['options']),_0x4b3f27[_0x50ac5b(0x154)]['value']&&this[_0x50ac5b(0x165)][_0x50ac5b(0x184)]({'name':_0x19981c[_0x50ac5b(0x15c)],'operator':_0x19981c[_0x50ac5b(0x17e)],'value':_0x4b3f27[_0x50ac5b(0x154)]['value']}),delete _0x4b3f27[_0x50ac5b(0x154)],_0x19981c;});}async[a0_0x1135ad(0x171)](){const _0x1fbb6c=a0_0x1135ad;await this[_0x1fbb6c(0x178)][_0x1fbb6c(0x171)]();}async[a0_0x1135ad(0x18b)]({page:_0x5cbe51=0x0,limit:_0x87b3c4=0x0,sortings:_0x350e2d=[],filters:_0x2c5b75=[]}){const _0x5ab849=a0_0x1135ad;let _0x12595d=this[_0x5ab849(0x15a)][_0x5ab849(0x182)]('meta-tab-element');return await _0x12595d[_0x5ab849(0x17f)](),!0x0;}async[a0_0x1135ad(0x156)](){const _0x4218a7=a0_0x1135ad;let _0x1f02c1=MetaApi[_0x4218a7(0x151)](this[_0x4218a7(0x178)]);!!ValueUtil['isNotEmpty'](_0x1f02c1)&&await this['updateMultiple'](_0x1f02c1)&&this['fetch']();}async[a0_0x1135ad(0x172)](){const _0x1ae924=a0_0x1135ad;let _0x24c5eb=MetaApi['getSelectedIdList'](this['grist'],!0x0);return ValueUtil[_0x1ae924(0x183)](_0x24c5eb)?await this['findOne'](_0x24c5eb[0x0]):{};}async[a0_0x1135ad(0x173)](){const _0x4626d4=a0_0x1135ad;let _0x405129=MetaApi[_0x4626d4(0x15b)](this[_0x4626d4(0x178)],!0x0);!!ValueUtil['isNotEmpty'](_0x405129)&&await this[_0x4626d4(0x167)](_0x405129)&&this[_0x4626d4(0x171)]();}async[a0_0x1135ad(0x189)](){const _0x4f1c04=a0_0x1135ad;let _0x211a93=TermsUtil[_0x4f1c04(0x17d)](ValueUtil[_0x4f1c04(0x191)](this[_0x4f1c04(0x16a)],_0x4f1c04(0x158)));return await MetaApi[_0x4f1c04(0x142)](this['isElement'],_0x211a93,this[_0x4f1c04(0x178)]);}async[a0_0x1135ad(0x16f)](){}[a0_0x1135ad(0x175)](){const _0x9e101d=a0_0x1135ad;let _0x1fd13a=this['grist'][_0x9e101d(0x187)][_0x9e101d(0x17a)];return _0x1fd13a=JSON[_0x9e101d(0x174)](JSON['stringify'](_0x1fd13a)),_0x1fd13a[_0x9e101d(0x180)](_0x559687=>{const _0x27cf27=_0x9e101d;Object['keys'](_0x559687)[_0x27cf27(0x180)](_0x525357=>{const _0x487cf0=_0x27cf27;_0x525357[_0x487cf0(0x16c)]('__')&&delete _0x559687[_0x525357];});}),{'main':_0x1fd13a,'detail':this[_0x9e101d(0x15a)][_0x9e101d(0x182)]('meta-tab-element')[_0x9e101d(0x175)]()};}};function a0_0x3368(_0x5b7065,_0x1465e1){const _0x3f7429=a0_0x3f74();return a0_0x3368=function(_0x336802,_0x4885e2){_0x336802=_0x336802-0x140;let _0x3bd4c8=_0x3f7429[_0x336802];return _0x3bd4c8;},a0_0x3368(_0x5b7065,_0x1465e1);}function a0_0x3f74(){const _0x3ca034=['clear','forEach','2913417togZFd','querySelector','isNotEmpty','push','filterForm','gridConfig','___data','7bpIWjF','export','search','beforeFetch','grid','ox-grist','grid_column','exportable','getContextObject','getParams','main','firstUpdated','1671510fmbTVD','5181110SLPRTt','exportableData','type','43928zYgqtB','actions','dataSet','parseGridConfigSet','columns','getBasicGristTabStyles','useMasterFilterForm','11LirfIk','searchFields','parseGristConfigs','6sYEEjZ','activityDataSet','connectedCallback','patchesForUpdateMultiple','gridEmphasized','gristId','filter','properties','save','parseBasicGridConfigs','title','header','renderRoot','getSelectedIdList','name','isElement','filterFormId','render','searchConfig','gristConfigSet','getAndParseMenuMeta','getGristTabHtml','context','searchFieldValues','773918cZGFAE','deleteByIds','1609416raLqYj','detailElement','menuInfo','39jFaggO','startsWith','#detail','gridColumnConfig','import','options','fetch','find','delete','parse','getData','useFilterForm','pageInitialized','grist','record','records','importable','270821anjKki','tTitle','operator'];a0_0x3f74=function(){return _0x3ca034;};return a0_0x3f74();}
1
+ const a0_0x487ebf=a0_0x2461;(function(_0x556348,_0x5da88d){const _0x6b9759=a0_0x2461,_0x123e56=_0x556348();while(!![]){try{const _0x29aff9=-parseInt(_0x6b9759(0x1d6))/0x1+parseInt(_0x6b9759(0x211))/0x2*(-parseInt(_0x6b9759(0x1fc))/0x3)+parseInt(_0x6b9759(0x20b))/0x4+parseInt(_0x6b9759(0x1eb))/0x5*(-parseInt(_0x6b9759(0x1f7))/0x6)+parseInt(_0x6b9759(0x1e5))/0x7*(-parseInt(_0x6b9759(0x1f4))/0x8)+-parseInt(_0x6b9759(0x20f))/0x9*(parseInt(_0x6b9759(0x1e4))/0xa)+parseInt(_0x6b9759(0x205))/0xb;if(_0x29aff9===_0x5da88d)break;else _0x123e56['push'](_0x123e56['shift']());}catch(_0x2e1b79){_0x123e56['push'](_0x123e56['shift']());}}}(a0_0x59e1,0xed15a));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';function a0_0x59e1(){const _0x423126=['parseGristConfigs','gridConfig','24JJdPVb','properties','find','990966sJnrKO','fetch','styles','isElement','forEach','54KvLNtm','exportableData','clear','beforeFetch','updateMultiple','actions','keys','value','exportable','58027365WrAuCT','grist','columns','name','activityDataSet','searchFieldValues','2026296EyXLTg','getData','getContextObject','filterForm','432693QLRHZJ','#detail','150068awrBzS','export','connectedCallback','getGristTabHtml','stringify','main','getSelectedIdList','filter','renderRoot','useFilterForm','type','grid_column','gristConfigSet','grid','findOne','push','options','firstUpdated','operator','meta-tab-element','searchFields','gridEmphasized','record','parseBasicGridConfigs','context','1490718JmdHDJ','header','getBasicGristTabStyles','parse','gridColumnConfig','menuInfo','parseGridConfigSet','pageInitialized','filterFormId','import','searchConfig','deleteByIds','ox-filters-form-base','search','30mHTaem','1561007GsAdKb','useMasterFilterForm','ox-grist','title','delete','___data','35TELELZ','shadowRoot','isNotEmpty','getAndParseMenuMeta','importable','querySelector','save'];a0_0x59e1=function(){return _0x423126;};return a0_0x59e1();}import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x2461(_0x21ae05,_0x48bb02){const _0x59e186=a0_0x59e1();return a0_0x2461=function(_0x24612e,_0x464d70){_0x24612e=_0x24612e-0x1cb;let _0x20d417=_0x59e186[_0x24612e];return _0x20d417;},a0_0x2461(_0x21ae05,_0x48bb02);}export const MetaGristTabMixin=_0x252e6f=>class extends MetaButtonMixin(_0x252e6f){static get[a0_0x487ebf(0x1f9)](){const _0x3baa99=a0_0x487ebf;return MetaApi[_0x3baa99(0x1d8)]();}static get[a0_0x487ebf(0x1f5)](){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_0x487ebf(0x206)](){const _0x5da868=a0_0x487ebf;return this[_0x5da868(0x219)][_0x5da868(0x1f0)](this['gristId']);}get[a0_0x487ebf(0x20e)](){const _0x2ee91e=a0_0x487ebf;return this[_0x2ee91e(0x1ec)]?.[_0x2ee91e(0x1f0)](this[_0x2ee91e(0x1de)]);}get['detailElement'](){const _0x3fe6a7=a0_0x487ebf;return this['shadowRoot']['querySelector'](_0x3fe6a7(0x210));}get[a0_0x487ebf(0x1d5)](){const _0xfee11b=a0_0x487ebf;let _0x97a8b5=MetaUiUtil[_0xfee11b(0x20d)](this);return _0x97a8b5[_0xfee11b(0x201)]&&delete _0x97a8b5[_0xfee11b(0x201)],_0x97a8b5[_0xfee11b(0x204)]&&delete _0x97a8b5[_0xfee11b(0x204)],_0x97a8b5[_0xfee11b(0x1ef)]&&delete _0x97a8b5[_0xfee11b(0x1ef)],_0x97a8b5;}async[a0_0x487ebf(0x213)](){const _0x54f1c5=a0_0x487ebf;this['gristId']=_0x54f1c5(0x1e7),this[_0x54f1c5(0x1de)]=_0x54f1c5(0x1e2),await this[_0x54f1c5(0x1ee)](),this[_0x54f1c5(0x1fa)]&&await this[_0x54f1c5(0x1f2)](),this[_0x54f1c5(0x209)]&&(this['dataSet']=(this[_0x54f1c5(0x209)]||{})[_0x54f1c5(0x216)]),super[_0x54f1c5(0x213)]&&await super[_0x54f1c5(0x213)]();}async[a0_0x487ebf(0x1ce)](){super['firstUpdated']&&await super['firstUpdated']();}async[a0_0x487ebf(0x1dd)](){const _0x1253d3=a0_0x487ebf;this['isPage']&&await this[_0x1253d3(0x1f2)](),super[_0x1253d3(0x1dd)]&&await super[_0x1253d3(0x1dd)]();}['render'](){const _0x3dd057=a0_0x487ebf;return MetaApi[_0x3dd057(0x214)](this);}[a0_0x487ebf(0x1d4)](_0x5835ef){const _0x3c4ee6=a0_0x487ebf;this[_0x3c4ee6(0x1f3)]=_0x5835ef[_0x3c4ee6(0x21e)],this[_0x3c4ee6(0x1da)]=_0x5835ef[_0x3c4ee6(0x21c)],this[_0x3c4ee6(0x1e0)]=_0x5835ef[_0x3c4ee6(0x1e3)],this['gridEmphasized']=_0x5835ef[_0x3c4ee6(0x1d2)];}async[a0_0x487ebf(0x1f2)](){const _0x4d3d05=a0_0x487ebf;this[_0x4d3d05(0x21d)]=await MetaApi[_0x4d3d05(0x1dc)](this),this[_0x4d3d05(0x1e6)]=!0x0===this[_0x4d3d05(0x21a)],this[_0x4d3d05(0x21a)]=!0x1,this[_0x4d3d05(0x20a)]=[],this[_0x4d3d05(0x1d1)]=this[_0x4d3d05(0x21d)][_0x4d3d05(0x207)][_0x4d3d05(0x218)](_0x4b4727=>_0x4b4727[_0x4d3d05(0x218)])['map'](_0x4ea39d=>{const _0xe11520=_0x4d3d05;let _0x403f59={'name':_0x4ea39d[_0xe11520(0x208)],'type':_0xe11520(0x1e3)===_0x4ea39d['filter']['operator']?_0xe11520(0x1e3):_0x4ea39d[_0xe11520(0x21b)],'label':_0x4ea39d[_0xe11520(0x1d7)],'operator':_0x4ea39d[_0xe11520(0x218)][_0xe11520(0x1cf)]?_0x4ea39d[_0xe11520(0x218)]['operator']:'eq'};return _0x4ea39d[_0xe11520(0x218)][_0xe11520(0x1cd)]&&(_0x403f59[_0xe11520(0x1cd)]=_0x4ea39d[_0xe11520(0x218)]['options']),_0x4ea39d[_0xe11520(0x1d3)][_0xe11520(0x1cd)]&&(_0x403f59[_0xe11520(0x1cd)]=_0x4ea39d['record'][_0xe11520(0x1cd)]),_0x4ea39d[_0xe11520(0x218)]['value']&&this[_0xe11520(0x20a)][_0xe11520(0x1cc)]({'name':_0x403f59[_0xe11520(0x208)],'operator':_0x403f59['operator'],'value':_0x4ea39d['filter'][_0xe11520(0x203)]}),delete _0x4ea39d[_0xe11520(0x218)],_0x403f59;});}async[a0_0x487ebf(0x1f8)](){await this['grist']['fetch']();}async[a0_0x487ebf(0x1ff)]({page:_0x1ac80e=0x0,limit:_0xad9e0b=0x0,sortings:_0xca53c1=[],filters:_0x21e1b8=[]}){const _0x36afc9=a0_0x487ebf;let _0x1c52b7=this[_0x36afc9(0x219)][_0x36afc9(0x1f0)]('meta-tab-element');return await _0x1c52b7[_0x36afc9(0x1fe)](),!0x0;}async[a0_0x487ebf(0x1f1)](){const _0x5cc5d9=a0_0x487ebf;let _0x33d366=MetaApi['patchesForUpdateMultiple'](this[_0x5cc5d9(0x206)]);!!ValueUtil[_0x5cc5d9(0x1ed)](_0x33d366)&&await this[_0x5cc5d9(0x200)](_0x33d366)&&this['fetch']();}async[a0_0x487ebf(0x1f6)](){const _0x42691d=a0_0x487ebf;let _0x872da1=MetaApi[_0x42691d(0x217)](this[_0x42691d(0x206)],!0x0);return ValueUtil['isNotEmpty'](_0x872da1)?await this[_0x42691d(0x1cb)](_0x872da1[0x0]):{};}async[a0_0x487ebf(0x1e9)](){const _0x22dece=a0_0x487ebf;let _0x20cd0b=MetaApi[_0x22dece(0x217)](this[_0x22dece(0x206)],!0x0);!!ValueUtil[_0x22dece(0x1ed)](_0x20cd0b)&&await this[_0x22dece(0x1e1)](_0x20cd0b)&&this[_0x22dece(0x1f8)]();}async[a0_0x487ebf(0x212)](){const _0x211817=a0_0x487ebf;let _0x4bdb89=TermsUtil['tTitle'](ValueUtil['getParams'](this[_0x211817(0x1db)],_0x211817(0x1e8)));return await MetaApi[_0x211817(0x1fd)](this[_0x211817(0x1fa)],_0x4bdb89,this[_0x211817(0x206)]);}async[a0_0x487ebf(0x1df)](){}[a0_0x487ebf(0x20c)](){const _0x28c9ab=a0_0x487ebf;let _0x48c177=this['grist'][_0x28c9ab(0x1ea)]['records'];return _0x48c177=JSON[_0x28c9ab(0x1d9)](JSON[_0x28c9ab(0x215)](_0x48c177)),_0x48c177[_0x28c9ab(0x1fb)](_0x187a83=>{const _0x20a6dd=_0x28c9ab;Object[_0x20a6dd(0x202)](_0x187a83)[_0x20a6dd(0x1fb)](_0x472c91=>{_0x472c91['startsWith']('__')&&delete _0x187a83[_0x472c91];});}),{'main':_0x48c177,'detail':this['renderRoot'][_0x28c9ab(0x1f0)](_0x28c9ab(0x1d0))['getData']()};}};
@@ -1 +1 @@
1
- function a0_0x3c41(){const _0x57b034=['searchFields','filter','fetch','gridColumnConfig','gristId','grid','options','actions','isPage','search','header','useButtonImport','connectedCallback','3119596XLvvxh','type','18140ZrtyIO','getBasicMainTabStyles','filterFormId','querySelector','activityDataSet','importable','getAndParseMenuMeta','record','35dGkpcB','main','useFilterForm','isElement','getMainTabHtml','551082tiPXiX','ox-filters-form-base','parseGristConfigs','masterElement','columns','gridEmphasized','shadowRoot','509835LfOkXe','clear','map','grist','render','name','searchFieldValues','10485hpioTh','value','5087072sagKfg','getMainGrist','gridConfig','firstUpdated','beforeFetch','useButtonExport','598SQHpxt','pageInitialized','2896901LTRJAp','properties','parseBasicGridConfigs','exportable','1224dDZsPX','searchConfig','push','getContextObject','styles','operator','gristConfigSet','grid_column'];a0_0x3c41=function(){return _0x57b034;};return a0_0x3c41();}const a0_0x2144b7=a0_0x5c52;(function(_0x2262c7,_0x5609be){const _0x281efa=a0_0x5c52,_0x2b312f=_0x2262c7();while(!![]){try{const _0x1f34a7=-parseInt(_0x281efa(0x199))/0x1*(parseInt(_0x281efa(0x193))/0x2)+-parseInt(_0x281efa(0x184))/0x3+-parseInt(_0x281efa(0x1ae))/0x4+parseInt(_0x281efa(0x178))/0x5*(parseInt(_0x281efa(0x17d))/0x6)+-parseInt(_0x281efa(0x195))/0x7+-parseInt(_0x281efa(0x18d))/0x8+-parseInt(_0x281efa(0x18b))/0x9*(-parseInt(_0x281efa(0x1b0))/0xa);if(_0x1f34a7===_0x5609be)break;else _0x2b312f['push'](_0x2b312f['shift']());}catch(_0x3ec1b3){_0x2b312f['push'](_0x2b312f['shift']());}}}(a0_0x3c41,0x5f624));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x5c52(_0x23f92a,_0x311645){const _0x3c411a=a0_0x3c41();return a0_0x5c52=function(_0x5c5278,_0x392bc7){_0x5c5278=_0x5c5278-0x177;let _0x27dbe5=_0x3c411a[_0x5c5278];return _0x27dbe5;},a0_0x5c52(_0x23f92a,_0x311645);}export const MetaMainTabMixin=_0x5adcdd=>class extends MetaButtonMixin(_0x5adcdd){static get[a0_0x2144b7(0x19d)](){const _0x1d6bd6=a0_0x2144b7;return MetaApi[_0x1d6bd6(0x1b1)]();}static get[a0_0x2144b7(0x196)](){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 _0x15ca0d=a0_0x2144b7;return this[_0x15ca0d(0x180)][_0x15ca0d(0x18e)]();}get['filterForm'](){const _0x17ae8b=a0_0x2144b7;return this[_0x17ae8b(0x183)]?.[_0x17ae8b(0x1b3)](this[_0x17ae8b(0x1b2)]);}get['context'](){const _0x492ecf=a0_0x2144b7;let _0x598521=MetaUiUtil[_0x492ecf(0x19c)](this);return _0x598521[_0x492ecf(0x1a8)]&&delete _0x598521[_0x492ecf(0x1a8)],_0x598521['exportable']&&delete _0x598521[_0x492ecf(0x198)],_0x598521[_0x492ecf(0x1b5)]&&delete _0x598521['importable'],_0x598521;}async[a0_0x2144b7(0x1ad)](){const _0x13143f=a0_0x2144b7;this[_0x13143f(0x1a5)]='ox-grist',this[_0x13143f(0x1b2)]=_0x13143f(0x17e),await this[_0x13143f(0x1b6)](),this[_0x13143f(0x17b)]&&await this[_0x13143f(0x17f)](),this[_0x13143f(0x1b4)]&&(this['dataSet']=(this[_0x13143f(0x1b4)]||{})[_0x13143f(0x179)]),super[_0x13143f(0x1ad)]&&await super[_0x13143f(0x1ad)]();}async[a0_0x2144b7(0x190)](){const _0x407f53=a0_0x2144b7;super[_0x407f53(0x190)]&&await super[_0x407f53(0x190)]();}async['pageInitialized'](){const _0x2d814a=a0_0x2144b7;this[_0x2d814a(0x1a9)]&&await this[_0x2d814a(0x17f)](),super[_0x2d814a(0x194)]&&await super[_0x2d814a(0x194)]();}[a0_0x2144b7(0x188)](){const _0x5f87a7=a0_0x2144b7;return MetaApi[_0x5f87a7(0x17c)](this);}[a0_0x2144b7(0x197)](_0x5c2de7){const _0x39c753=a0_0x2144b7;this[_0x39c753(0x18f)]=_0x5c2de7[_0x39c753(0x1a6)],this[_0x39c753(0x1a4)]=_0x5c2de7[_0x39c753(0x1a0)],this[_0x39c753(0x19a)]=_0x5c2de7[_0x39c753(0x1aa)],this[_0x39c753(0x182)]=_0x5c2de7['gridEmphasized'];}async[a0_0x2144b7(0x17f)](){const _0x227949=a0_0x2144b7;this[_0x227949(0x19f)]=await MetaApi['parseGridConfigSet'](this),this['useMasterFilterForm']=!0x0===this[_0x227949(0x17a)],this[_0x227949(0x17a)]=!0x1,this['buttonConfig']=void 0x0,this[_0x227949(0x192)]=!0x1,this[_0x227949(0x1ac)]=!0x1,this[_0x227949(0x18a)]=[],this[_0x227949(0x1a1)]=this[_0x227949(0x19f)][_0x227949(0x181)][_0x227949(0x1a2)](_0xefa5a0=>_0xefa5a0[_0x227949(0x1a2)])[_0x227949(0x186)](_0x42f245=>{const _0x4f1eaa=_0x227949;let _0x8760e4={'name':_0x42f245[_0x4f1eaa(0x189)],'type':_0x4f1eaa(0x1aa)===_0x42f245['filter']['operator']?'search':_0x42f245[_0x4f1eaa(0x1af)],'label':_0x42f245[_0x4f1eaa(0x1ab)],'operator':_0x42f245[_0x4f1eaa(0x1a2)][_0x4f1eaa(0x19e)]?_0x42f245['filter'][_0x4f1eaa(0x19e)]:'eq'};return _0x42f245[_0x4f1eaa(0x1a2)][_0x4f1eaa(0x1a7)]&&(_0x8760e4[_0x4f1eaa(0x1a7)]=_0x42f245[_0x4f1eaa(0x1a2)]['options']),_0x42f245[_0x4f1eaa(0x177)][_0x4f1eaa(0x1a7)]&&(_0x8760e4[_0x4f1eaa(0x1a7)]=_0x42f245[_0x4f1eaa(0x177)][_0x4f1eaa(0x1a7)]),_0x42f245[_0x4f1eaa(0x1a2)][_0x4f1eaa(0x18c)]&&this[_0x4f1eaa(0x18a)][_0x4f1eaa(0x19b)]({'name':_0x8760e4['name'],'operator':_0x8760e4[_0x4f1eaa(0x19e)],'value':_0x42f245[_0x4f1eaa(0x1a2)]['value']}),delete _0x42f245[_0x4f1eaa(0x1a2)],_0x8760e4;});}async[a0_0x2144b7(0x1a3)](){const _0x4880bd=a0_0x2144b7;await this[_0x4880bd(0x187)]['fetch']();}async[a0_0x2144b7(0x191)]({page:_0x25a92c=0x0,limit:_0x8bf49b=0x0,sortings:_0x4694a9=[],filters:_0x2a60b8=[]}){const _0x26507f=a0_0x2144b7;return this[_0x26507f(0x180)]&&this[_0x26507f(0x180)][_0x26507f(0x185)]&&await this['masterElement'][_0x26507f(0x185)](),!0x0;}['getData'](){return{'master':this['masterElement']['getData']()};}};
1
+ const a0_0xae9239=a0_0x57d3;function a0_0x57d3(_0x22cb91,_0x10b7c1){const _0x31c3c2=a0_0x31c3();return a0_0x57d3=function(_0x57d38b,_0x2cacb8){_0x57d38b=_0x57d38b-0x9e;let _0x5c9884=_0x31c3c2[_0x57d38b];return _0x5c9884;},a0_0x57d3(_0x22cb91,_0x10b7c1);}(function(_0x2609c9,_0x3f4cde){const _0x414eff=a0_0x57d3,_0xaaa1de=_0x2609c9();while(!![]){try{const _0xc36efe=-parseInt(_0x414eff(0x9f))/0x1*(parseInt(_0x414eff(0xa1))/0x2)+-parseInt(_0x414eff(0xb7))/0x3+-parseInt(_0x414eff(0xc0))/0x4+-parseInt(_0x414eff(0xc2))/0x5+parseInt(_0x414eff(0xb0))/0x6*(-parseInt(_0x414eff(0xa0))/0x7)+parseInt(_0x414eff(0xab))/0x8*(-parseInt(_0x414eff(0xa3))/0x9)+parseInt(_0x414eff(0xc3))/0xa;if(_0xc36efe===_0x3f4cde)break;else _0xaaa1de['push'](_0xaaa1de['shift']());}catch(_0x239782){_0xaaa1de['push'](_0xaaa1de['shift']());}}}(a0_0x31c3,0xe8292));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x31c3(){const _0x5e1f1b=['filterForm','grid_column','searchFieldValues','clear','gridEmphasized','gristId','actions','value','header','dataSet','searchFields','beforeFetch','operator','styles','columns','filter','firstUpdated','parseGristConfigs','exportable','activityDataSet','properties','167623wvoXjv','161ZyytGO','6UViKkU','record','81CIKUzj','useMasterFilterForm','search','getBasicMainTabStyles','isElement','useButtonExport','connectedCallback','filterFormId','372312EWLJFX','parseBasicGridConfigs','name','gridConfig','getMainGrist','241092yUnUGv','push','fetch','main','grist','getMainTabHtml','type','949161LNTqtc','getData','masterElement','grid','render','importable','isPage','useFilterForm','options','7056876SBeHyJ','map','3057635CYOVRJ','54889690GNYNUK'];a0_0x31c3=function(){return _0x5e1f1b;};return a0_0x31c3();}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=_0x340547=>class extends MetaButtonMixin(_0x340547){static get[a0_0xae9239(0xd1)](){const _0x38c7f5=a0_0xae9239;return MetaApi[_0x38c7f5(0xa6)]();}static get[a0_0xae9239(0x9e)](){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_0xae9239(0xb4)](){const _0x447111=a0_0xae9239;return this[_0x447111(0xb9)][_0x447111(0xaf)]();}get[a0_0xae9239(0xc4)](){const _0x23126b=a0_0xae9239;return this['shadowRoot']?.['querySelector'](this[_0x23126b(0xaa)]);}get['context'](){const _0x185729=a0_0xae9239;let _0x5a1e41=MetaUiUtil['getContextObject'](this);return _0x5a1e41[_0x185729(0xca)]&&delete _0x5a1e41[_0x185729(0xca)],_0x5a1e41[_0x185729(0xd6)]&&delete _0x5a1e41[_0x185729(0xd6)],_0x5a1e41[_0x185729(0xbc)]&&delete _0x5a1e41[_0x185729(0xbc)],_0x5a1e41;}async[a0_0xae9239(0xa9)](){const _0x4e3f57=a0_0xae9239;this[_0x4e3f57(0xc9)]='ox-grist',this['filterFormId']='ox-filters-form-base',await this['getAndParseMenuMeta'](),this[_0x4e3f57(0xa7)]&&await this['parseGristConfigs'](),this[_0x4e3f57(0xd7)]&&(this[_0x4e3f57(0xcd)]=(this[_0x4e3f57(0xd7)]||{})[_0x4e3f57(0xb3)]),super['connectedCallback']&&await super[_0x4e3f57(0xa9)]();}async[a0_0xae9239(0xd4)](){const _0x29a891=a0_0xae9239;super[_0x29a891(0xd4)]&&await super['firstUpdated']();}async['pageInitialized'](){const _0x75b50d=a0_0xae9239;this[_0x75b50d(0xbd)]&&await this[_0x75b50d(0xd5)](),super['pageInitialized']&&await super['pageInitialized']();}[a0_0xae9239(0xbb)](){const _0x5aee19=a0_0xae9239;return MetaApi[_0x5aee19(0xb5)](this);}[a0_0xae9239(0xac)](_0x2483b7){const _0x578f2c=a0_0xae9239;this[_0x578f2c(0xae)]=_0x2483b7[_0x578f2c(0xba)],this['gridColumnConfig']=_0x2483b7[_0x578f2c(0xc5)],this['searchConfig']=_0x2483b7[_0x578f2c(0xa5)],this[_0x578f2c(0xc8)]=_0x2483b7[_0x578f2c(0xc8)];}async['parseGristConfigs'](){const _0x134d8d=a0_0xae9239;this['gristConfigSet']=await MetaApi['parseGridConfigSet'](this),this[_0x134d8d(0xa4)]=!0x0===this['useFilterForm'],this[_0x134d8d(0xbe)]=!0x1,this['buttonConfig']=void 0x0,this[_0x134d8d(0xa8)]=!0x1,this['useButtonImport']=!0x1,this[_0x134d8d(0xc6)]=[],this[_0x134d8d(0xce)]=this['gristConfigSet'][_0x134d8d(0xd2)]['filter'](_0x12ffa1=>_0x12ffa1[_0x134d8d(0xd3)])[_0x134d8d(0xc1)](_0x2f6b1b=>{const _0x2aa87f=_0x134d8d;let _0x36fc5d={'name':_0x2f6b1b[_0x2aa87f(0xad)],'type':_0x2aa87f(0xa5)===_0x2f6b1b[_0x2aa87f(0xd3)][_0x2aa87f(0xd0)]?_0x2aa87f(0xa5):_0x2f6b1b[_0x2aa87f(0xb6)],'label':_0x2f6b1b[_0x2aa87f(0xcc)],'operator':_0x2f6b1b[_0x2aa87f(0xd3)][_0x2aa87f(0xd0)]?_0x2f6b1b[_0x2aa87f(0xd3)][_0x2aa87f(0xd0)]:'eq'};return _0x2f6b1b[_0x2aa87f(0xd3)]['options']&&(_0x36fc5d[_0x2aa87f(0xbf)]=_0x2f6b1b['filter']['options']),_0x2f6b1b[_0x2aa87f(0xa2)][_0x2aa87f(0xbf)]&&(_0x36fc5d['options']=_0x2f6b1b[_0x2aa87f(0xa2)][_0x2aa87f(0xbf)]),_0x2f6b1b['filter'][_0x2aa87f(0xcb)]&&this[_0x2aa87f(0xc6)][_0x2aa87f(0xb1)]({'name':_0x36fc5d['name'],'operator':_0x36fc5d[_0x2aa87f(0xd0)],'value':_0x2f6b1b[_0x2aa87f(0xd3)][_0x2aa87f(0xcb)]}),delete _0x2f6b1b['filter'],_0x36fc5d;});}async[a0_0xae9239(0xb2)](){const _0x128fe=a0_0xae9239;await this[_0x128fe(0xb4)][_0x128fe(0xb2)]();}async[a0_0xae9239(0xcf)]({page:_0x32c8d0=0x0,limit:_0x49135f=0x0,sortings:_0x47fdaa=[],filters:_0x484d1a=[]}){const _0x27a034=a0_0xae9239;return this[_0x27a034(0xb9)]&&this[_0x27a034(0xb9)][_0x27a034(0xc7)]&&await this['masterElement'][_0x27a034(0xc7)](),!0x0;}[a0_0xae9239(0xb8)](){const _0x41fc25=a0_0xae9239;return{'master':this['masterElement'][_0x41fc25(0xb8)]()};}};
@@ -1 +1 @@
1
- const a0_0x4adaaa=a0_0x351f;(function(_0x831cc9,_0x119442){const _0x3fd27d=a0_0x351f,_0x2c6a81=_0x831cc9();while(!![]){try{const _0xb07f20=-parseInt(_0x3fd27d(0x1db))/0x1+parseInt(_0x3fd27d(0x1dd))/0x2+parseInt(_0x3fd27d(0x1c0))/0x3*(parseInt(_0x3fd27d(0x1bb))/0x4)+parseInt(_0x3fd27d(0x1b9))/0x5+-parseInt(_0x3fd27d(0x1f3))/0x6*(parseInt(_0x3fd27d(0x1d0))/0x7)+-parseInt(_0x3fd27d(0x1f0))/0x8*(parseInt(_0x3fd27d(0x1ea))/0x9)+parseInt(_0x3fd27d(0x1cc))/0xa;if(_0xb07f20===_0x119442)break;else _0x2c6a81['push'](_0x2c6a81['shift']());}catch(_0xb7f73){_0x2c6a81['push'](_0x2c6a81['shift']());}}}(a0_0x3c1d,0xbeabe));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x351f(_0xcdf969,_0x58eeec){const _0x3c1d98=a0_0x3c1d();return a0_0x351f=function(_0x351fb3,_0xde8c24){_0x351fb3=_0x351fb3-0x1ab;let _0x392399=_0x3c1d98[_0x351fb3];return _0x392399;},a0_0x351f(_0xcdf969,_0x58eeec);}function a0_0x3c1d(){const _0x17ceaa=['actions','import','24kjoSca','filterForm','parse','6UNFHhy','getMasterDetailHtml','columns','startsWith','properties','gridEmphasized','fetch','push','name','stringify','renderRoot','getData','parseGristConfigs','search','getSelectedIdList','menuInfo','querySelector','isNotEmpty','forEach','firstUpdated','5136655lTGWcE','shadowRoot','8LEsJfL','searchFieldValues','importable','records','getParams','639837fSIWut','type','getBasicMasterDetailStyles','gridConfig','useFilterForm','gristId','dataSet','beforeFetch','detailElement','save','grist','pageInitialized','21159480kRSFew','record','value','searchConfig','2207555ofMnKC','find','export','grid','options','updateMultiple','title','searchFields','useMasterFilterForm','deleteByIds','header','1382386LaJfUP','exportable','618122OTNJoK','connectedCallback','context','styles','tTitle','getContextObject','isPage','exportableData','gristConfigSet','ox-filters-form-base','operator','keys','gridColumnConfig','4200471FzrAYc','filter','parseGridConfigSet','main'];a0_0x3c1d=function(){return _0x17ceaa;};return a0_0x3c1d();}import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x2aabbb=>class extends MetaButtonMixin(_0x2aabbb){static get[a0_0x4adaaa(0x1e0)](){const _0x241b3b=a0_0x4adaaa;return MetaApi[_0x241b3b(0x1c2)]();}static get[a0_0x4adaaa(0x1f7)](){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_0x4adaaa(0x1ca)](){const _0x32234e=a0_0x4adaaa;return this[_0x32234e(0x1af)]['querySelector'](this[_0x32234e(0x1c5)]);}get[a0_0x4adaaa(0x1f1)](){const _0x486e4d=a0_0x4adaaa;return this[_0x486e4d(0x1ba)]?.[_0x486e4d(0x1b5)](this['filterFormId']);}get[a0_0x4adaaa(0x1df)](){const _0x1c2071=a0_0x4adaaa;let _0x134a0e=MetaUiUtil[_0x1c2071(0x1e2)](this);return _0x134a0e[_0x1c2071(0x1ee)]&&delete _0x134a0e['actions'],_0x134a0e[_0x1c2071(0x1dc)]&&delete _0x134a0e[_0x1c2071(0x1dc)],_0x134a0e['importable']&&delete _0x134a0e[_0x1c2071(0x1bd)],_0x134a0e;}async['connectedCallback'](){const _0x9d80a2=a0_0x4adaaa;this[_0x9d80a2(0x1c5)]='ox-grist',this['filterFormId']=_0x9d80a2(0x1e6),await this['getAndParseMenuMeta'](),this['isElement']&&await this[_0x9d80a2(0x1b1)](),this['activityDataSet']&&(this[_0x9d80a2(0x1c6)]=(this['activityDataSet']||{})[_0x9d80a2(0x1ed)]),super[_0x9d80a2(0x1de)]&&await super[_0x9d80a2(0x1de)]();}async['firstUpdated'](){const _0x10ac8c=a0_0x4adaaa;super['firstUpdated']&&await super[_0x10ac8c(0x1b8)]();}async[a0_0x4adaaa(0x1cb)](){const _0x1238a5=a0_0x4adaaa;this[_0x1238a5(0x1e3)]&&await this['parseGristConfigs'](),super[_0x1238a5(0x1cb)]&&await super[_0x1238a5(0x1cb)]();}['render'](){const _0x192547=a0_0x4adaaa;return MetaApi[_0x192547(0x1f4)](this);}['parseBasicGridConfigs'](_0x50cd43){const _0x2965e7=a0_0x4adaaa;this[_0x2965e7(0x1c3)]=_0x50cd43[_0x2965e7(0x1d3)],this[_0x2965e7(0x1e9)]=_0x50cd43['grid_column'],this[_0x2965e7(0x1cf)]=_0x50cd43[_0x2965e7(0x1b2)],this[_0x2965e7(0x1f8)]=_0x50cd43[_0x2965e7(0x1f8)];}async[a0_0x4adaaa(0x1b1)](){const _0x801ca=a0_0x4adaaa;this[_0x801ca(0x1e5)]=await MetaApi[_0x801ca(0x1ec)](this),this[_0x801ca(0x1d8)]=!0x0===this[_0x801ca(0x1c4)],this[_0x801ca(0x1c4)]=!0x1,this[_0x801ca(0x1bc)]=[],this[_0x801ca(0x1d7)]=this['gristConfigSet'][_0x801ca(0x1f5)][_0x801ca(0x1eb)](_0x1e7bd9=>_0x1e7bd9[_0x801ca(0x1eb)])['map'](_0x4ce23e=>{const _0x5575ca=_0x801ca;let _0x56b5ad={'name':_0x4ce23e[_0x5575ca(0x1ad)],'type':_0x5575ca(0x1b2)===_0x4ce23e[_0x5575ca(0x1eb)][_0x5575ca(0x1e7)]?_0x5575ca(0x1b2):_0x4ce23e[_0x5575ca(0x1c1)],'label':_0x4ce23e[_0x5575ca(0x1da)],'operator':_0x4ce23e[_0x5575ca(0x1eb)][_0x5575ca(0x1e7)]?_0x4ce23e['filter'][_0x5575ca(0x1e7)]:'eq'};return _0x4ce23e[_0x5575ca(0x1eb)]['options']&&(_0x56b5ad[_0x5575ca(0x1d4)]=_0x4ce23e[_0x5575ca(0x1eb)][_0x5575ca(0x1d4)]),_0x4ce23e[_0x5575ca(0x1cd)][_0x5575ca(0x1d4)]&&(_0x56b5ad[_0x5575ca(0x1d4)]=_0x4ce23e[_0x5575ca(0x1cd)][_0x5575ca(0x1d4)]),_0x4ce23e[_0x5575ca(0x1eb)][_0x5575ca(0x1ce)]&&this[_0x5575ca(0x1bc)][_0x5575ca(0x1ac)]({'name':_0x56b5ad[_0x5575ca(0x1ad)],'operator':_0x56b5ad[_0x5575ca(0x1e7)],'value':_0x4ce23e[_0x5575ca(0x1eb)][_0x5575ca(0x1ce)]}),delete _0x4ce23e['filter'],_0x56b5ad;});}async['fetch'](){const _0x25cdaf=a0_0x4adaaa;await this[_0x25cdaf(0x1ca)][_0x25cdaf(0x1ab)]();}async[a0_0x4adaaa(0x1c7)]({page:_0x433781=0x0,limit:_0x274b95=0x0,sortings:_0x132f9e=[],filters:_0x452ab0=[]}){const _0x4b5479=a0_0x4adaaa;return this[_0x4b5479(0x1c8)]&&this[_0x4b5479(0x1c8)]['clear']&&await this['detailElement']['clear'](),!0x0;}async[a0_0x4adaaa(0x1c9)](){const _0x9ae842=a0_0x4adaaa;let _0x1657bd=MetaApi['patchesForUpdateMultiple'](this[_0x9ae842(0x1ca)]);!!ValueUtil[_0x9ae842(0x1b6)](_0x1657bd)&&await this[_0x9ae842(0x1d5)](_0x1657bd)&&this[_0x9ae842(0x1ab)]();}async[a0_0x4adaaa(0x1d1)](){const _0x558c7e=a0_0x4adaaa;let _0x3cbdd4=MetaApi[_0x558c7e(0x1b3)](this[_0x558c7e(0x1ca)],!0x0);return ValueUtil[_0x558c7e(0x1b6)](_0x3cbdd4)?await this['findOne'](_0x3cbdd4[0x0]):{};}async['delete'](){const _0x1ea0f8=a0_0x4adaaa;let _0x45ccaf=MetaApi[_0x1ea0f8(0x1b3)](this[_0x1ea0f8(0x1ca)],!0x0);!!ValueUtil['isNotEmpty'](_0x45ccaf)&&await this[_0x1ea0f8(0x1d9)](_0x45ccaf)&&this['fetch']();}async[a0_0x4adaaa(0x1d2)](){const _0x305ccb=a0_0x4adaaa;let _0x4a725b=TermsUtil[_0x305ccb(0x1e1)](ValueUtil[_0x305ccb(0x1bf)](this[_0x305ccb(0x1b4)],_0x305ccb(0x1d6)));return await MetaApi[_0x305ccb(0x1e4)](this['isElement'],_0x4a725b,this[_0x305ccb(0x1ca)]);}async[a0_0x4adaaa(0x1ef)](){}['getData'](){const _0x311846=a0_0x4adaaa;let _0x504bd0=this[_0x311846(0x1ca)]['___data'][_0x311846(0x1be)];return _0x504bd0=JSON[_0x311846(0x1f2)](JSON[_0x311846(0x1ae)](_0x504bd0)),_0x504bd0[_0x311846(0x1b7)](_0x307141=>{const _0x5c054d=_0x311846;Object[_0x5c054d(0x1e8)](_0x307141)[_0x5c054d(0x1b7)](_0x1d946e=>{const _0x4d1887=_0x5c054d;_0x1d946e[_0x4d1887(0x1f6)]('__')&&delete _0x307141[_0x1d946e];});}),{'main':_0x504bd0,'detail':this[_0x311846(0x1c8)][_0x311846(0x1b0)]()};}};
1
+ const a0_0x3a4b58=a0_0x281c;(function(_0x580490,_0x28c4c9){const _0x1668fb=a0_0x281c,_0x30901a=_0x580490();while(!![]){try{const _0xd597f1=-parseInt(_0x1668fb(0x153))/0x1+-parseInt(_0x1668fb(0x143))/0x2*(parseInt(_0x1668fb(0x13e))/0x3)+-parseInt(_0x1668fb(0x173))/0x4*(parseInt(_0x1668fb(0x142))/0x5)+-parseInt(_0x1668fb(0x165))/0x6*(parseInt(_0x1668fb(0x131))/0x7)+parseInt(_0x1668fb(0x16f))/0x8+parseInt(_0x1668fb(0x15e))/0x9+parseInt(_0x1668fb(0x176))/0xa;if(_0xd597f1===_0x28c4c9)break;else _0x30901a['push'](_0x30901a['shift']());}catch(_0x38403c){_0x30901a['push'](_0x30901a['shift']());}}}(a0_0x588a,0x38538));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x281c(_0x1e2236,_0x85789d){const _0x588a22=a0_0x588a();return a0_0x281c=function(_0x281c60,_0x5675d3){_0x281c60=_0x281c60-0x131;let _0x39b034=_0x588a22[_0x281c60];return _0x39b034;},a0_0x281c(_0x1e2236,_0x85789d);}import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';function a0_0x588a(){const _0x5000cc=['import','importable','header','389608VAVRLl','parse','columns','5848010fvhHbl','record','map','title','7HGqYhZ','getData','records','grid','operator','push','clear','exportable','searchFieldValues','renderRoot','tTitle','getAndParseMenuMeta','properties','57eJpeGO','shadowRoot','gridColumnConfig','filter','5xlcJGE','11370rvgTqQ','find','firstUpdated','exportableData','filterFormId','parseGridConfigSet','beforeFetch','detailElement','isElement','getSelectedIdList','stringify','gristConfigSet','parseGristConfigs','value','grist','type','187998WljKEx','activityDataSet','getContextObject','save','deleteByIds','options','searchFields','connectedCallback','delete','___data','pageInitialized','698454gWEzQl','ox-grist','useFilterForm','updateMultiple','keys','getParams','context','2175594FwuLJv','getBasicMasterDetailStyles','isNotEmpty','styles','ox-filters-form-base','fetch','filterForm','search','gristId','querySelector','2594552wvhicL'];a0_0x588a=function(){return _0x5000cc;};return a0_0x588a();}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x17f136=>class extends MetaButtonMixin(_0x17f136){static get[a0_0x3a4b58(0x168)](){const _0x19b772=a0_0x3a4b58;return MetaApi[_0x19b772(0x166)]();}static get[a0_0x3a4b58(0x13d)](){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_0x3a4b58(0x151)](){const _0x4ad524=a0_0x3a4b58;return this[_0x4ad524(0x13a)][_0x4ad524(0x16e)](this[_0x4ad524(0x16d)]);}get[a0_0x3a4b58(0x16b)](){const _0x404ce7=a0_0x3a4b58;return this[_0x404ce7(0x13f)]?.[_0x404ce7(0x16e)](this[_0x404ce7(0x147)]);}get[a0_0x3a4b58(0x164)](){const _0x335804=a0_0x3a4b58;let _0x1d2efb=MetaUiUtil[_0x335804(0x155)](this);return _0x1d2efb['actions']&&delete _0x1d2efb['actions'],_0x1d2efb['exportable']&&delete _0x1d2efb[_0x335804(0x138)],_0x1d2efb[_0x335804(0x171)]&&delete _0x1d2efb[_0x335804(0x171)],_0x1d2efb;}async[a0_0x3a4b58(0x15a)](){const _0x4dee59=a0_0x3a4b58;this['gristId']=_0x4dee59(0x15f),this[_0x4dee59(0x147)]=_0x4dee59(0x169),await this[_0x4dee59(0x13c)](),this['isElement']&&await this['parseGristConfigs'](),this[_0x4dee59(0x154)]&&(this['dataSet']=(this['activityDataSet']||{})['main']),super[_0x4dee59(0x15a)]&&await super['connectedCallback']();}async[a0_0x3a4b58(0x145)](){const _0x325a6e=a0_0x3a4b58;super[_0x325a6e(0x145)]&&await super[_0x325a6e(0x145)]();}async[a0_0x3a4b58(0x15d)](){const _0x351009=a0_0x3a4b58;this['isPage']&&await this[_0x351009(0x14f)](),super['pageInitialized']&&await super[_0x351009(0x15d)]();}['render'](){return MetaApi['getMasterDetailHtml'](this);}['parseBasicGridConfigs'](_0x34635b){const _0x5a397a=a0_0x3a4b58;this['gridConfig']=_0x34635b[_0x5a397a(0x134)],this[_0x5a397a(0x140)]=_0x34635b['grid_column'],this['searchConfig']=_0x34635b[_0x5a397a(0x16c)],this['gridEmphasized']=_0x34635b['gridEmphasized'];}async[a0_0x3a4b58(0x14f)](){const _0x148e25=a0_0x3a4b58;this[_0x148e25(0x14e)]=await MetaApi[_0x148e25(0x148)](this),this['useMasterFilterForm']=!0x0===this[_0x148e25(0x160)],this[_0x148e25(0x160)]=!0x1,this[_0x148e25(0x139)]=[],this[_0x148e25(0x159)]=this['gristConfigSet'][_0x148e25(0x175)]['filter'](_0x45d2e1=>_0x45d2e1[_0x148e25(0x141)])[_0x148e25(0x178)](_0x29be74=>{const _0x1465d6=_0x148e25;let _0x3f4b2d={'name':_0x29be74['name'],'type':_0x1465d6(0x16c)===_0x29be74[_0x1465d6(0x141)][_0x1465d6(0x135)]?_0x1465d6(0x16c):_0x29be74[_0x1465d6(0x152)],'label':_0x29be74[_0x1465d6(0x172)],'operator':_0x29be74[_0x1465d6(0x141)][_0x1465d6(0x135)]?_0x29be74[_0x1465d6(0x141)][_0x1465d6(0x135)]:'eq'};return _0x29be74[_0x1465d6(0x141)][_0x1465d6(0x158)]&&(_0x3f4b2d['options']=_0x29be74[_0x1465d6(0x141)][_0x1465d6(0x158)]),_0x29be74[_0x1465d6(0x177)]['options']&&(_0x3f4b2d[_0x1465d6(0x158)]=_0x29be74[_0x1465d6(0x177)][_0x1465d6(0x158)]),_0x29be74['filter'][_0x1465d6(0x150)]&&this[_0x1465d6(0x139)][_0x1465d6(0x136)]({'name':_0x3f4b2d['name'],'operator':_0x3f4b2d[_0x1465d6(0x135)],'value':_0x29be74[_0x1465d6(0x141)][_0x1465d6(0x150)]}),delete _0x29be74[_0x1465d6(0x141)],_0x3f4b2d;});}async[a0_0x3a4b58(0x16a)](){const _0x236de8=a0_0x3a4b58;await this['grist'][_0x236de8(0x16a)]();}async[a0_0x3a4b58(0x149)]({page:_0x399e9f=0x0,limit:_0x2a001d=0x0,sortings:_0x572d93=[],filters:_0x3b3b82=[]}){const _0x56d1f7=a0_0x3a4b58;return this[_0x56d1f7(0x14a)]&&this[_0x56d1f7(0x14a)][_0x56d1f7(0x137)]&&await this['detailElement']['clear'](),!0x0;}async[a0_0x3a4b58(0x156)](){const _0xf29375=a0_0x3a4b58;let _0x3ad66d=MetaApi['patchesForUpdateMultiple'](this[_0xf29375(0x151)]);!!ValueUtil[_0xf29375(0x167)](_0x3ad66d)&&await this[_0xf29375(0x161)](_0x3ad66d)&&this[_0xf29375(0x16a)]();}async[a0_0x3a4b58(0x144)](){const _0x18dd25=a0_0x3a4b58;let _0x382af6=MetaApi['getSelectedIdList'](this[_0x18dd25(0x151)],!0x0);return ValueUtil['isNotEmpty'](_0x382af6)?await this['findOne'](_0x382af6[0x0]):{};}async[a0_0x3a4b58(0x15b)](){const _0x135574=a0_0x3a4b58;let _0x42f925=MetaApi[_0x135574(0x14c)](this[_0x135574(0x151)],!0x0);!!ValueUtil[_0x135574(0x167)](_0x42f925)&&await this[_0x135574(0x157)](_0x42f925)&&this['fetch']();}async['export'](){const _0x24e3ff=a0_0x3a4b58;let _0x5589de=TermsUtil[_0x24e3ff(0x13b)](ValueUtil[_0x24e3ff(0x163)](this['menuInfo'],_0x24e3ff(0x179)));return await MetaApi[_0x24e3ff(0x146)](this[_0x24e3ff(0x14b)],_0x5589de,this[_0x24e3ff(0x151)]);}async[a0_0x3a4b58(0x170)](){}['getData'](){const _0x43e92f=a0_0x3a4b58;let _0x306bf1=this[_0x43e92f(0x151)][_0x43e92f(0x15c)][_0x43e92f(0x133)];return _0x306bf1=JSON[_0x43e92f(0x174)](JSON[_0x43e92f(0x14d)](_0x306bf1)),_0x306bf1['forEach'](_0x359ac5=>{const _0x47268c=_0x43e92f;Object[_0x47268c(0x162)](_0x359ac5)['forEach'](_0x1bc11d=>{_0x1bc11d['startsWith']('__')&&delete _0x359ac5[_0x1bc11d];});}),{'main':_0x306bf1,'detail':this[_0x43e92f(0x14a)][_0x43e92f(0x132)]()};}};