@things-factory/meta-ui 6.1.35 → 6.1.37

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 (88) hide show
  1. package/client/actions/main.js +4 -4
  2. package/client/component/filter/filter-form-meta-code-select.js +10 -10
  3. package/client/component/filter/filter-form-meta-object-select.js +10 -10
  4. package/client/component/filter/filter-grist-meta-code-select.js +10 -10
  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 +5 -5
  31. package/client/pages/history/history-json-list-popup.js +6 -6
  32. package/client/pages/loading-page.js +5 -5
  33. package/client/pages/menu/dynamic-menu-template.js +7 -7
  34. package/client/pages/menu/dynamic-menu.js +16 -16
  35. package/client/pages/meta-form-element.js +1 -1
  36. package/client/pages/meta-grist-element.js +1 -1
  37. package/client/pages/meta-grist-page.js +1 -1
  38. package/client/pages/meta-grist-tab-element.js +1 -1
  39. package/client/pages/meta-grist-tab-page.js +1 -1
  40. package/client/pages/meta-main-tab-element.js +1 -1
  41. package/client/pages/meta-main-tab-page.js +1 -1
  42. package/client/pages/meta-master-detail-element.js +1 -1
  43. package/client/pages/meta-master-detail-page.js +1 -1
  44. package/client/pages/meta-tab-detail-element.js +1 -1
  45. package/client/pages/meta-tab-detail-page.js +1 -1
  46. package/client/pages/meta-tab-element.js +1 -1
  47. package/client/pages/personalize/personal-column-selector.js +11 -11
  48. package/client/pages/terms/config-terminology.js +6 -6
  49. package/client/pages/work-code/work-code-detail-popup.js +1 -1
  50. package/client/pages/work-code/work-code-page.js +1 -1
  51. package/client/reducers/main.js +1 -1
  52. package/client/utils/grist-default-value.js +1 -1
  53. package/client/utils/meta-api.js +1 -1
  54. package/client/utils/meta-crypto.js +1 -1
  55. package/client/utils/meta-ui-util.js +102 -102
  56. package/client/utils/service-util.js +13 -13
  57. package/client/utils/terms-util.js +2 -2
  58. package/client/utils/ui-util.js +1 -1
  59. package/client/utils/value-util.js +1 -1
  60. package/client/viewparts/dynamic-menu-landscape-styles.js +2 -2
  61. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  62. package/client/viewparts/dynamic-menu-part.js +11 -11
  63. package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
  64. package/client/viewparts/dynamic-menu-portrait.js +9 -9
  65. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  66. package/package.json +2 -2
  67. package/server/activity/CommonActivity.js +2 -2
  68. package/server/constants/error-code.js +1 -1
  69. package/server/errors/license-error.js +1 -1
  70. package/server/routes.js +1 -1
  71. package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
  72. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  73. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  74. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  75. package/server/service/grid-personalize/grid-personalize.js +1 -1
  76. package/server/service/meta-activity/meta-activity-mutation.js +1 -1
  77. package/server/service/meta-activity/meta-activity-query.js +1 -1
  78. package/server/service/meta-activity/meta-activity-type.js +1 -1
  79. package/server/service/meta-secret/meta-resolver.js +1 -1
  80. package/server/service/set-translations/set-translation-resolver.js +1 -1
  81. package/server/service/work-code/work-code-mutation.js +1 -1
  82. package/server/service/work-code/work-code-query.js +1 -1
  83. package/server/service/work-code/work-code-type.js +1 -1
  84. package/server/service/work-code/work-code.js +1 -1
  85. package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
  86. package/server/service/work-code-detail/work-code-detail-query.js +1 -1
  87. package/server/service/work-code-detail/work-code-detail-type.js +1 -1
  88. package/server/service/work-code-detail/work-code-detail.js +1 -1
@@ -1,4 +1,4 @@
1
- const a0_0x2a5336=a0_0x1e8c;(function(_0x3979e5,_0x3e5b2a){const _0x58f2c4=a0_0x1e8c,_0x12ff0c=_0x3979e5();while(!![]){try{const _0x15be4b=-parseInt(_0x58f2c4(0x16f))/0x1+parseInt(_0x58f2c4(0x182))/0x2+parseInt(_0x58f2c4(0x199))/0x3*(-parseInt(_0x58f2c4(0x1a4))/0x4)+parseInt(_0x58f2c4(0x14c))/0x5*(-parseInt(_0x58f2c4(0x196))/0x6)+-parseInt(_0x58f2c4(0x19c))/0x7*(-parseInt(_0x58f2c4(0x169))/0x8)+parseInt(_0x58f2c4(0x197))/0x9+parseInt(_0x58f2c4(0x151))/0xa;if(_0x15be4b===_0x3e5b2a)break;else _0x12ff0c['push'](_0x12ff0c['shift']());}catch(_0x4031ab){_0x12ff0c['push'](_0x12ff0c['shift']());}}}(a0_0x5bdf,0x81eb6));import{css,html,LitElement}from'lit';function a0_0x5bdf(){const _0x1e2860=['showToast','GRID','clickCancel','gridConfig','codes','41460AgBeGe','getGristPagination100Config','2347830hUbnzo','search','filters','appendable','includes','22881570nTzYOO','string','meta-','connectedCallback','values','dispField','tText','codeField','selectRecord','select-row-toggle','gql','filter','menu','searchByPagination','confirmCallback','clickEmpty','left','forEach','search_hidden_fields','fetchHandler','record','meta-code-selector','push','basicArgs','1072nyzqgq','args','columns','hidden','grist','sorters','782433GBaXAi','isArray','queryName','empty','type','after_set_fields','keys','resource-code-selector','handlers','filterFields','resource-object','rows','querySelector','menu_template','LIST','selected','length','bind','getGristSelectableConfig','118892SbiEPx','getGristColumnConfig2','define','name','tButton','#ox-grist','getSelectColumns','code','meta-object-selector','getGristGuttersConfig','NOTHING_SELECTED','options','select','firstUpdated','getParams','info','startsWith','nameField','meta-object-selector-popup','entity','12DFMFZe','2327391mkEXhX','getGristMetaObjectOptions','201aydqLf','getCodeByScenario','styles','17864fqvCQw','align','query'];a0_0x5bdf=function(){return _0x1e2860;};return a0_0x5bdf();}import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';function a0_0x1e8c(_0x31d8cf,_0x3e59a0){const _0x5bdf7e=a0_0x5bdf();return a0_0x1e8c=function(_0x1e8ccf,_0x2c0128){_0x1e8ccf=_0x1e8ccf-0x14c;let _0x2b3090=_0x5bdf7e[_0x1e8ccf];return _0x2b3090;},a0_0x1e8c(_0x31d8cf,_0x3e59a0);}import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class MetaObjectSelectorPopup extends LitElement{static [a0_0x2a5336(0x19b)]=[CommonGristStyles,ButtonContainerStyles,css`
1
+ const a0_0x187d55=a0_0x1e3a;function a0_0x172c(){const _0x7060c6=['args','appendable','getCodeSelectorData','connectedCallback','handlers','forEach','options','filterFields','entity','grist','getCodeByScenario','clickSelect','clickEmpty','dispField','styles','searchByPagination','524310ZSNKsw','getGristPagination100Config','columns','values','getCodeByEntity','left','query','align','cancel','tText','menu','fetchHandler','getParams','search_hidden_fields','getGristColumnConfig2','length','2WZyrgv','meta-object-selector','gridConfig','empty','140710fmPIXw','clickCancel','record','scenario','NOTHING_SELECTED','isArray','445768zRrbQl','filter','42DIXYud','filters','343508zBuHSF','search','836514oplYSA','sorters','meta-code-selector','menu_template','string','startsWith','showToast','includes','select','7040412TlEjPl','rows','name','tButton','keys','1574650IGnCpI','type','resource-code-selector','firstUpdated','selectRecord','gql','queryName','confirmCallback','push','resource-object','define','select-row-toggle','bind','basicArgs','codeField','hidden','getGristSelectableConfig','codes'];a0_0x172c=function(){return _0x7060c6;};return a0_0x172c();}(function(_0x1f4b2a,_0x247a81){const _0x4e006e=a0_0x1e3a,_0x2e53e9=_0x1f4b2a();while(!![]){try{const _0x2a1de4=-parseInt(_0x4e006e(0x7d))/0x1*(parseInt(_0x4e006e(0x81))/0x2)+-parseInt(_0x4e006e(0x8d))/0x3+-parseInt(_0x4e006e(0x8b))/0x4+parseInt(_0x4e006e(0x9b))/0x5+-parseInt(_0x4e006e(0xbd))/0x6+-parseInt(_0x4e006e(0x89))/0x7*(parseInt(_0x4e006e(0x87))/0x8)+parseInt(_0x4e006e(0x96))/0x9;if(_0x2a1de4===_0x247a81)break;else _0x2e53e9['push'](_0x2e53e9['shift']());}catch(_0x117dcc){_0x2e53e9['push'](_0x2e53e9['shift']());}}}(a0_0x172c,0x2984e));function a0_0x1e3a(_0x177b09,_0x3b7b93){const _0x172ccc=a0_0x172c();return a0_0x1e3a=function(_0x1e3a1d,_0x583c96){_0x1e3a1d=_0x1e3a1d-0x6f;let _0x3eaef6=_0x172ccc[_0x1e3a1d];return _0x3eaef6;},a0_0x1e3a(_0x177b09,_0x3b7b93);}import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class MetaObjectSelectorPopup extends LitElement{static [a0_0x187d55(0xbb)]=[CommonGristStyles,ButtonContainerStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -17,9 +17,9 @@ const a0_0x2a5336=a0_0x1e8c;(function(_0x3979e5,_0x3e5b2a){const _0x58f2c4=a0_0x
17
17
  display: flex;
18
18
  margin-left: auto;
19
19
  }
20
- `];async[a0_0x2a5336(0x154)](){const _0xa4b5d2=a0_0x2a5336;this[_0xa4b5d2(0x163)]=this[_0xa4b5d2(0x18d)][_0xa4b5d2(0x14e)]?this[_0xa4b5d2(0x18d)][_0xa4b5d2(0x14e)]:this[_0xa4b5d2(0x168)]&&this[_0xa4b5d2(0x168)][_0xa4b5d2(0x14e)]?this['basicArgs'][_0xa4b5d2(0x14e)]:[];let _0x5687b3=this[_0xa4b5d2(0x18d)][_0xa4b5d2(0x16e)]?this['options'][_0xa4b5d2(0x16e)]:this['basicArgs']&&this[_0xa4b5d2(0x168)][_0xa4b5d2(0x16e)]?this[_0xa4b5d2(0x168)][_0xa4b5d2(0x16e)]:[],_0x4ac178=this['options'][_0xa4b5d2(0x178)]?this['options'][_0xa4b5d2(0x178)]:this[_0xa4b5d2(0x18d)][_0xa4b5d2(0x17c)]?.['search']&&this['options'][_0xa4b5d2(0x17c)]?.[_0xa4b5d2(0x14d)]['length']>0x0?this['options']['menu_template']['search']:[],_0x4d75fe=this[_0xa4b5d2(0x18d)][_0xa4b5d2(0x18e)];if(!_0x4ac178||0x0==_0x4ac178[_0xa4b5d2(0x17f)]){let _0x31492d;this[_0xa4b5d2(0x18d)][_0xa4b5d2(0x158)]&&(_0x31492d=this[_0xa4b5d2(0x18d)]['codeField']),this[_0xa4b5d2(0x18d)][_0xa4b5d2(0x193)]&&(_0x31492d=this['options'][_0xa4b5d2(0x193)]),_0x31492d&&_0x4ac178[_0xa4b5d2(0x167)]({'name':_0x31492d,'operator':'eq'});}let _0x12a87f=[...MetaApi[_0xa4b5d2(0x18b)](!0x0,!0x1)];if(_0x4d75fe&&_0x4d75fe['length']>0x0)for(let _0x18197d=0x0;_0x18197d<_0x4d75fe[_0xa4b5d2(0x17f)];_0x18197d++){let {type:_0x5cc32e=_0xa4b5d2(0x152),name:_0x27d5d5,hidden:_0x33ec91=!0x1,record:_0x39751c={'align':'left'},header:_0x4f662c,sortable:_0x4e25e1=!0x1,width:_0xce1ef0=0x87,options:_0x1ba7ec,select_opt:_0x19778b,object_opt:_0x28a5db}=_0x4d75fe[_0x18197d];if(_0x19778b&&(_0x1ba7ec=_0x19778b),_0x28a5db&&(_0x1ba7ec=_0x28a5db),[_0xa4b5d2(0x179),'object'][_0xa4b5d2(0x150)](_0x5cc32e)?_0x5cc32e=_0xa4b5d2(0x18a):[_0xa4b5d2(0x176)][_0xa4b5d2(0x150)](_0x5cc32e)&&(_0x5cc32e=_0xa4b5d2(0x166)),'id'==_0x27d5d5)_0x12a87f[_0xa4b5d2(0x167)]({'type':_0xa4b5d2(0x152),'name':_0x27d5d5,'hidden':!0x0});else{let _0x2a4058=MetaApi[_0xa4b5d2(0x183)](_0x5cc32e,_0x27d5d5,_0x4f662c||_0x27d5d5,_0x39751c['align']?_0x39751c[_0xa4b5d2(0x19d)]:_0xa4b5d2(0x161),!0x1,_0x4e25e1,_0xce1ef0);_0x5cc32e[_0xa4b5d2(0x192)](_0xa4b5d2(0x153))&&_0x28a5db&&_0x28a5db[_0xa4b5d2(0x15d)]&&(_0x1ba7ec=await MetaUiUtil[_0xa4b5d2(0x198)](_0x5cc32e,_0x1ba7ec)),_0xa4b5d2(0x18e)===_0x5cc32e?Array[_0xa4b5d2(0x170)](_0x1ba7ec)?_0x2a4058[_0xa4b5d2(0x165)]['options']=_0x1ba7ec:_0xa4b5d2(0x189)===_0x1ba7ec['type']?_0x2a4058[_0xa4b5d2(0x165)]['options']=await ServiceUtil['getCodeSelectorData'](_0x1ba7ec['values']?_0x1ba7ec[_0xa4b5d2(0x155)]:_0x1ba7ec[_0xa4b5d2(0x185)]):'scenario'===_0x1ba7ec['type']?_0x2a4058[_0xa4b5d2(0x165)][_0xa4b5d2(0x18d)]=await ServiceUtil[_0xa4b5d2(0x19a)](_0x1ba7ec[_0xa4b5d2(0x185)],_0x1ba7ec[_0xa4b5d2(0x16a)]):_0xa4b5d2(0x195)===_0x1ba7ec[_0xa4b5d2(0x173)]&&(_0x2a4058['record'][_0xa4b5d2(0x18d)]=await ServiceUtil['getCodeByEntity'](_0x1ba7ec['args'])):_0xa4b5d2(0x18a)===_0x5cc32e?_0x2a4058['record'][_0xa4b5d2(0x18d)]={..._0x1ba7ec}:_0xa4b5d2(0x166)==_0x5cc32e&&(_0x1ba7ec[_0xa4b5d2(0x156)]&&(_0x1ba7ec[_0xa4b5d2(0x1a3)]=await ServiceUtil['getCodeByEntity'](_0x1ba7ec)),_0x2a4058[_0xa4b5d2(0x165)]['options']={..._0x1ba7ec}),_0x2a4058[_0xa4b5d2(0x16c)]=_0x33ec91,_0x12a87f[_0xa4b5d2(0x167)](_0x2a4058);}}else _0x12a87f[_0xa4b5d2(0x167)](MetaApi[_0xa4b5d2(0x183)](_0xa4b5d2(0x152),this['options'][_0xa4b5d2(0x158)],this[_0xa4b5d2(0x18d)][_0xa4b5d2(0x158)],'left',!0x1,!0x0,0xb4)),this['options'][_0xa4b5d2(0x156)]&&_0x12a87f[_0xa4b5d2(0x167)](MetaApi[_0xa4b5d2(0x183)](_0xa4b5d2(0x152),this[_0xa4b5d2(0x18d)][_0xa4b5d2(0x156)],this['options'][_0xa4b5d2(0x156)],_0xa4b5d2(0x161),!0x1,!0x0,0x12c));_0x12a87f['forEach'](_0x3c8028=>{const _0xc334a=_0xa4b5d2;let _0x4ff7e0=_0x4ac178[_0xc334a(0x15c)](_0x312bb8=>_0xc334a(0x152)==typeof _0x312bb8?_0x3c8028[_0xc334a(0x185)]==_0x312bb8:_0x3c8028[_0xc334a(0x185)]==_0x312bb8[_0xc334a(0x185)]);_0x4ff7e0&&_0x4ff7e0[_0xc334a(0x17f)]>0x0&&(_0x3c8028[_0xc334a(0x15c)]=_0xc334a(0x152)==typeof _0x4ff7e0[0x0]?_0xc334a(0x14d):_0x4ff7e0[0x0]);});let _0x3ca8d3={'rows':MetaApi[_0xa4b5d2(0x181)](!0x1),'pagination':MetaApi[_0xa4b5d2(0x1a5)](),'columns':_0x12a87f,'sorters':[..._0x5687b3]};_0x3ca8d3[_0xa4b5d2(0x17a)][_0xa4b5d2(0x177)]={'click':_0xa4b5d2(0x15a),'dblclick':(_0x427759,_0x2444bb,_0xa66f23,_0x1f4d86,_0x8e95cc,_0x4fa726)=>{this['selectRecord'](_0x1f4d86);}},_0x3ca8d3['rows'][_0xa4b5d2(0x14f)]=!0x1,this['gridConfig']=_0x3ca8d3,await super['connectedCallback']();}async['firstUpdated'](){const _0x1e0e1f=a0_0x2a5336;await super[_0x1e0e1f(0x18f)]();}['render'](){const _0x41bbd7=a0_0x2a5336;return html`
21
- <ox-grist id="ox-grist" .config=${this[_0x41bbd7(0x1a2)]} .mode=${isMobileDevice()?_0x41bbd7(0x17d):_0x41bbd7(0x1a0)} auto-fetch
22
- .fetchHandler=${this[_0x41bbd7(0x164)][_0x41bbd7(0x180)](this)}>
20
+ `];async[a0_0x187d55(0xb0)](){const _0x52f737=a0_0x187d55;this[_0x52f737(0x7a)]=this[_0x52f737(0xb3)][_0x52f737(0x8a)]?this['options'][_0x52f737(0x8a)]:this['basicArgs']&&this[_0x52f737(0xa8)]['filters']?this[_0x52f737(0xa8)][_0x52f737(0x8a)]:[];let _0x12c89d=this[_0x52f737(0xb3)][_0x52f737(0x8e)]?this[_0x52f737(0xb3)][_0x52f737(0x8e)]:this[_0x52f737(0xa8)]&&this[_0x52f737(0xa8)]['sorters']?this['basicArgs']['sorters']:[],_0x58ab85=this[_0x52f737(0xb3)][_0x52f737(0xb4)]?this['options'][_0x52f737(0xb4)]:this[_0x52f737(0xb3)][_0x52f737(0x90)]?.['search']&&this[_0x52f737(0xb3)][_0x52f737(0x90)]?.[_0x52f737(0x8c)]['length']>0x0?this[_0x52f737(0xb3)][_0x52f737(0x90)][_0x52f737(0x8c)]:[],_0x3b2eac=this['options'][_0x52f737(0x95)];if(!_0x58ab85||0x0==_0x58ab85[_0x52f737(0x7c)]){let _0x2ed717;this[_0x52f737(0xb3)][_0x52f737(0xa9)]&&(_0x2ed717=this[_0x52f737(0xb3)][_0x52f737(0xa9)]),this[_0x52f737(0xb3)]['nameField']&&(_0x2ed717=this['options']['nameField']),_0x2ed717&&_0x58ab85[_0x52f737(0xa3)]({'name':_0x2ed717,'operator':'eq'});}let _0x493119=[...MetaApi['getGristGuttersConfig'](!0x0,!0x1)];if(_0x3b2eac&&_0x3b2eac['length']>0x0)for(let _0x3ecff9=0x0;_0x3ecff9<_0x3b2eac[_0x52f737(0x7c)];_0x3ecff9++){let {type:_0x5dbbf1=_0x52f737(0x91),name:_0x500a8f,hidden:_0x121ffe=!0x1,record:_0x2a9253={'align':_0x52f737(0x72)},header:_0x5bc9bd,sortable:_0x44e5e2=!0x1,width:_0xcc3366=0x87,options:_0x39dc73,select_opt:_0x2b9ba7,object_opt:_0x467a92}=_0x3b2eac[_0x3ecff9];if(_0x2b9ba7&&(_0x39dc73=_0x2b9ba7),_0x467a92&&(_0x39dc73=_0x467a92),[_0x52f737(0xa4),'object'][_0x52f737(0x94)](_0x5dbbf1)?_0x5dbbf1=_0x52f737(0x7e):[_0x52f737(0x9d)][_0x52f737(0x94)](_0x5dbbf1)&&(_0x5dbbf1=_0x52f737(0x8f)),'id'==_0x500a8f)_0x493119[_0x52f737(0xa3)]({'type':_0x52f737(0x91),'name':_0x500a8f,'hidden':!0x0});else{let _0x1ad94f=MetaApi[_0x52f737(0x7b)](_0x5dbbf1,_0x500a8f,_0x5bc9bd||_0x500a8f,_0x2a9253[_0x52f737(0x74)]?_0x2a9253[_0x52f737(0x74)]:_0x52f737(0x72),!0x1,_0x44e5e2,_0xcc3366);_0x5dbbf1[_0x52f737(0x92)]('meta-')&&_0x467a92&&_0x467a92[_0x52f737(0x77)]&&(_0x39dc73=await MetaUiUtil['getGristMetaObjectOptions'](_0x5dbbf1,_0x39dc73)),_0x52f737(0x95)===_0x5dbbf1?Array[_0x52f737(0x86)](_0x39dc73)?_0x1ad94f[_0x52f737(0x83)][_0x52f737(0xb3)]=_0x39dc73:'code'===_0x39dc73[_0x52f737(0x9c)]?_0x1ad94f[_0x52f737(0x83)][_0x52f737(0xb3)]=await ServiceUtil[_0x52f737(0xaf)](_0x39dc73[_0x52f737(0x70)]?_0x39dc73[_0x52f737(0x70)]:_0x39dc73[_0x52f737(0x98)]):_0x52f737(0x84)===_0x39dc73[_0x52f737(0x9c)]?_0x1ad94f['record'][_0x52f737(0xb3)]=await ServiceUtil[_0x52f737(0xb7)](_0x39dc73[_0x52f737(0x98)],_0x39dc73[_0x52f737(0xad)]):_0x52f737(0xb5)===_0x39dc73['type']&&(_0x1ad94f[_0x52f737(0x83)][_0x52f737(0xb3)]=await ServiceUtil[_0x52f737(0x71)](_0x39dc73[_0x52f737(0xad)])):'meta-object-selector'===_0x5dbbf1?_0x1ad94f[_0x52f737(0x83)]['options']={..._0x39dc73}:'meta-code-selector'==_0x5dbbf1&&(_0x39dc73['dispField']&&(_0x39dc73[_0x52f737(0xac)]=await ServiceUtil[_0x52f737(0x71)](_0x39dc73)),_0x1ad94f['record'][_0x52f737(0xb3)]={..._0x39dc73}),_0x1ad94f[_0x52f737(0xaa)]=_0x121ffe,_0x493119[_0x52f737(0xa3)](_0x1ad94f);}}else _0x493119[_0x52f737(0xa3)](MetaApi[_0x52f737(0x7b)](_0x52f737(0x91),this[_0x52f737(0xb3)][_0x52f737(0xa9)],this['options'][_0x52f737(0xa9)],_0x52f737(0x72),!0x1,!0x0,0xb4)),this[_0x52f737(0xb3)][_0x52f737(0xba)]&&_0x493119[_0x52f737(0xa3)](MetaApi['getGristColumnConfig2'](_0x52f737(0x91),this['options'][_0x52f737(0xba)],this['options'][_0x52f737(0xba)],_0x52f737(0x72),!0x1,!0x0,0x12c));_0x493119[_0x52f737(0xb2)](_0x2632df=>{const _0x1e1070=_0x52f737;let _0x2d9f0c=_0x58ab85[_0x1e1070(0x88)](_0x3e7f69=>_0x1e1070(0x91)==typeof _0x3e7f69?_0x2632df[_0x1e1070(0x98)]==_0x3e7f69:_0x2632df[_0x1e1070(0x98)]==_0x3e7f69[_0x1e1070(0x98)]);_0x2d9f0c&&_0x2d9f0c[_0x1e1070(0x7c)]>0x0&&(_0x2632df[_0x1e1070(0x88)]=_0x1e1070(0x91)==typeof _0x2d9f0c[0x0]?_0x1e1070(0x8c):_0x2d9f0c[0x0]);});let _0x130cec={'rows':MetaApi[_0x52f737(0xab)](!0x1),'pagination':MetaApi[_0x52f737(0xbe)](),'columns':_0x493119,'sorters':[..._0x12c89d]};_0x130cec[_0x52f737(0x97)][_0x52f737(0xb1)]={'click':_0x52f737(0xa6),'dblclick':(_0x2c2bd3,_0xf5b2d1,_0x5f5c5a,_0x4fa825,_0x4d68e8,_0x5eff45)=>{const _0x3cffdf=_0x52f737;this[_0x3cffdf(0x9f)](_0x4fa825);}},_0x130cec[_0x52f737(0x97)][_0x52f737(0xae)]=!0x1,this[_0x52f737(0x7f)]=_0x130cec,await super[_0x52f737(0xb0)]();}async[a0_0x187d55(0x9e)](){const _0x107310=a0_0x187d55;await super[_0x107310(0x9e)]();}['render'](){const _0x4079ed=a0_0x187d55;return html`
21
+ <ox-grist id="ox-grist" .config=${this[_0x4079ed(0x7f)]} .mode=${isMobileDevice()?'LIST':'GRID'} auto-fetch
22
+ .fetchHandler=${this[_0x4079ed(0x78)][_0x4079ed(0xa7)](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_0x2a5336=a0_0x1e8c;(function(_0x3979e5,_0x3e5b2a){const _0x58f2c4=a0_0x
27
27
  </div>
28
28
  </ox-grist>
29
29
  <div id="button-container" class="button-container">
30
- <mwc-button raised label="${TermsUtil['tButton'](_0x41bbd7(0x172))}" style="margin-left:7px;margin-top:7px;"
31
- @click=${this[_0x41bbd7(0x160)][_0x41bbd7(0x180)](this)}>
30
+ <mwc-button raised label="${TermsUtil[_0x4079ed(0x99)](_0x4079ed(0x80))}" style="margin-left:7px;margin-top:7px;"
31
+ @click=${this[_0x4079ed(0xb9)][_0x4079ed(0xa7)](this)}>
32
32
  </mwc-button>
33
- <mwc-button raised label="${TermsUtil[_0x41bbd7(0x186)]('cancel')}" style="margin-left:7px;margin-top:7px;"
34
- @click=${this[_0x41bbd7(0x1a1)][_0x41bbd7(0x180)](this)}>
33
+ <mwc-button raised label="${TermsUtil[_0x4079ed(0x99)](_0x4079ed(0x75))}" style="margin-left:7px;margin-top:7px;"
34
+ @click=${this[_0x4079ed(0x82)]['bind'](this)}>
35
35
  </mwc-button>
36
- <mwc-button raised label="${TermsUtil['tButton'](_0x41bbd7(0x18e))}" style="margin-left:7px;margin-top:7px;"
37
- @click=${this['clickSelect']['bind'](this)}>
36
+ <mwc-button raised label="${TermsUtil[_0x4079ed(0x99)](_0x4079ed(0x95))}" style="margin-left:7px;margin-top:7px;"
37
+ @click=${this['clickSelect'][_0x4079ed(0xa7)](this)}>
38
38
  </mwc-button>
39
39
  </div>
40
- `;}get[a0_0x2a5336(0x16d)](){const _0x487e5f=a0_0x2a5336;return this['shadowRoot'][_0x487e5f(0x17b)](_0x487e5f(0x187));}async['fetchHandler']({page:_0x1ec9cf=0x0,limit:_0x2b74f9=0x0,sorters:_0x167acc=[],filters:_0x24a79a=[]}){const _0x4ba95b=a0_0x2a5336;let _0x10d573=[...this[_0x4ba95b(0x163)]];_0x24a79a[_0x4ba95b(0x162)](_0x1ce3ff=>{const _0x2b8eb7=_0x4ba95b;let _0x449268=_0x10d573[_0x2b8eb7(0x15c)](_0x1ccc59=>_0x1ce3ff['name']==_0x1ccc59[_0x2b8eb7(0x185)]);_0x449268&&_0x449268[_0x2b8eb7(0x17f)]>0x0&&delete _0x10d573[_0x1ce3ff['name']],_0x10d573['push'](_0x1ce3ff);});let _0x33a67d=ValueUtil[_0x4ba95b(0x190)](this[_0x4ba95b(0x18d)][_0x4ba95b(0x17c)]&&this[_0x4ba95b(0x18d)][_0x4ba95b(0x17c)][_0x4ba95b(0x15b)]||{},_0x4ba95b(0x19e),_0x4ba95b(0x174)),_0x46bae7=Object[_0x4ba95b(0x175)](_0x33a67d||{}),_0x200ac3=MetaApi[_0x4ba95b(0x188)](this['gridConfig'][_0x4ba95b(0x16b)][_0x4ba95b(0x15c)](_0x2c82c2=>!_0x46bae7[_0x4ba95b(0x150)](_0x2c82c2[_0x4ba95b(0x185)])));return await MetaApi[_0x4ba95b(0x15e)](this[_0x4ba95b(0x18d)][_0x4ba95b(0x171)],_0x10d573,_0x167acc,_0x1ec9cf,_0x2b74f9,_0x200ac3);}async[a0_0x2a5336(0x160)](_0x44598c){const _0x43ba30=a0_0x2a5336;this[_0x43ba30(0x15f)]&&this[_0x43ba30(0x15f)](null),closePopup(this);}async[a0_0x2a5336(0x1a1)](_0x2ace2a){closePopup(this);}async['clickSelect'](_0x463b96){const _0x4616ea=a0_0x2a5336;let _0x2293a8=this[_0x4616ea(0x16d)][_0x4616ea(0x17e)];_0x2293a8&&0x0!=_0x2293a8[_0x4616ea(0x17f)]?this[_0x4616ea(0x159)](_0x2293a8[0x0]):MetaApi[_0x4616ea(0x19f)](_0x4616ea(0x191),TermsUtil[_0x4616ea(0x157)](_0x4616ea(0x18c)));}async[a0_0x2a5336(0x159)](_0x94e75b){const _0x54a83b=a0_0x2a5336;this[_0x54a83b(0x15f)]&&this[_0x54a83b(0x15f)](_0x94e75b),closePopup(this);}}customElements[a0_0x2a5336(0x184)](a0_0x2a5336(0x194),MetaObjectSelectorPopup);
40
+ `;}get[a0_0x187d55(0xb6)](){return this['shadowRoot']['querySelector']('#ox-grist');}async['fetchHandler']({page:_0x501875=0x0,limit:_0x49ee5f=0x0,sorters:_0x6b043f=[],filters:_0x2c5aab=[]}){const _0x2f7c3e=a0_0x187d55;let _0x5f176e=[...this['search_hidden_fields']];_0x2c5aab[_0x2f7c3e(0xb2)](_0x3a2f38=>{const _0x5a2383=_0x2f7c3e;let _0x578b3e=_0x5f176e[_0x5a2383(0x88)](_0x5692be=>_0x3a2f38[_0x5a2383(0x98)]==_0x5692be[_0x5a2383(0x98)]);_0x578b3e&&_0x578b3e['length']>0x0&&delete _0x5f176e[_0x3a2f38[_0x5a2383(0x98)]],_0x5f176e[_0x5a2383(0xa3)](_0x3a2f38);});let _0x4f6155=ValueUtil[_0x2f7c3e(0x79)](this[_0x2f7c3e(0xb3)][_0x2f7c3e(0x90)]&&this['options'][_0x2f7c3e(0x90)][_0x2f7c3e(0xa0)]||{},_0x2f7c3e(0x73),'after_set_fields'),_0x288ab6=Object[_0x2f7c3e(0x9a)](_0x4f6155||{}),_0x5996d1=MetaApi['getSelectColumns'](this[_0x2f7c3e(0x7f)][_0x2f7c3e(0x6f)]['filter'](_0x54c4dc=>!_0x288ab6[_0x2f7c3e(0x94)](_0x54c4dc[_0x2f7c3e(0x98)])));return await MetaApi[_0x2f7c3e(0xbc)](this['options'][_0x2f7c3e(0xa1)],_0x5f176e,_0x6b043f,_0x501875,_0x49ee5f,_0x5996d1);}async['clickEmpty'](_0x25c46a){const _0x54df30=a0_0x187d55;this[_0x54df30(0xa2)]&&this[_0x54df30(0xa2)](null),closePopup(this);}async[a0_0x187d55(0x82)](_0x2c79cf){closePopup(this);}async[a0_0x187d55(0xb8)](_0x7c7d1e){const _0x4b6ff6=a0_0x187d55;let _0x340ee4=this[_0x4b6ff6(0xb6)]['selected'];_0x340ee4&&0x0!=_0x340ee4[_0x4b6ff6(0x7c)]?this[_0x4b6ff6(0x9f)](_0x340ee4[0x0]):MetaApi[_0x4b6ff6(0x93)]('info',TermsUtil[_0x4b6ff6(0x76)](_0x4b6ff6(0x85)));}async[a0_0x187d55(0x9f)](_0x334808){const _0x1b600b=a0_0x187d55;this['confirmCallback']&&this[_0x1b600b(0xa2)](_0x334808),closePopup(this);}}customElements[a0_0x187d55(0xa5)]('meta-object-selector-popup',MetaObjectSelectorPopup);
@@ -1 +1 @@
1
- const a0_0x289660=a0_0x4474;(function(_0x45819e,_0x3c50cb){const _0x3f4ff7=a0_0x4474,_0x17ef52=_0x45819e();while(!![]){try{const _0x476be6=-parseInt(_0x3f4ff7(0x12d))/0x1+-parseInt(_0x3f4ff7(0x146))/0x2*(parseInt(_0x3f4ff7(0x126))/0x3)+-parseInt(_0x3f4ff7(0x155))/0x4+-parseInt(_0x3f4ff7(0x148))/0x5+-parseInt(_0x3f4ff7(0x12f))/0x6+parseInt(_0x3f4ff7(0x15a))/0x7*(-parseInt(_0x3f4ff7(0x132))/0x8)+parseInt(_0x3f4ff7(0x15b))/0x9;if(_0x476be6===_0x3c50cb)break;else _0x17ef52['push'](_0x17ef52['shift']());}catch(_0x42500a){_0x17ef52['push'](_0x17ef52['shift']());}}}(a0_0x4b16,0x1a3a4));function a0_0x4474(_0x437d83,_0x128c77){const _0x4b169e=a0_0x4b16();return a0_0x4474=function(_0x447432,_0x57e621){_0x447432=_0x447432-0x125;let _0x672ddc=_0x4b169e[_0x447432];return _0x672ddc;},a0_0x4474(_0x437d83,_0x128c77);}function a0_0x4b16(){const _0x1fac8b=['form-field-change','lifecycle','openDynamicPopup','grist','detail','parseBasicServiceConfigs','includes','menu','connectedCallback','title_detail','fieldChangeHandlers','165060BvKXtl','toLowerCase','getParams','parseBasicFormConfigs','callScenario','94339fsXvks','5996592oKpUjG','isElement','tTitle','etc','etcConfig','parseBasicButtonConfigs','pageUpdated','name','378057idOPmp','excuteOpenPopupButtonClick','runScenario','meta-form-','active','body','field-change','148677klPAEe','isNotEmpty','70326aLKjIj','properties','menuInfo','80XGEbcD','keys','data','data-changed','is_popup','fetchHandler','split','parent_id','isPopup','addEventListener','isPage','parseBasicTabConfigs','isEmpty','parseBasicGridConfigs','isDetail','errors','fetch','is_detail','dataChangeEventHandler','params','2qTIdXx','dispatchEvent','482040ODPyCy','filterForm'];a0_0x4b16=function(){return _0x1fac8b;};return a0_0x4b16();}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x175f24=>class extends _0x175f24{static get[a0_0x289660(0x130)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x28e14f=>Boolean(_0x28e14f)},'is_popup':{'type':Boolean,'converter':_0x121841=>Boolean(_0x121841)},'is_activity':{'type':Boolean,'converter':_0x56245f=>Boolean(_0x56245f)},'is_readonly':{'type':Boolean,'converter':_0x2048ec=>Boolean(_0x2048ec)}};}get[a0_0x289660(0x15c)](){const _0x487d48=a0_0x289660;return!0x0===this[_0x487d48(0x143)]||!0x0===this['is_popup'];}get[a0_0x289660(0x140)](){const _0xdc86ff=a0_0x289660;return!ValueUtil[_0xdc86ff(0x13e)](this[_0xdc86ff(0x143)])&&this[_0xdc86ff(0x143)];}async[a0_0x289660(0x144)](_0x5f4dea){const _0xab6171=a0_0x289660;let {after:_0x39c974,before:_0x5b72b8,column:_0x4c8dba,record:_0x4f425c,row:_0x4dc200}=_0x5f4dea[_0xab6171(0x14e)],_0x4034b9=_0x4c8dba[_0xab6171(0x125)];if(Object[_0xab6171(0x133)](this['fieldChangeHandlers']||{})[_0xab6171(0x150)](_0x4034b9)){let _0x367de0,_0xd65ba4=(await MetaApi[_0xab6171(0x159)](void 0x0,this[_0xab6171(0x154)][_0x4034b9],{'columnName':_0x4034b9,'column':_0x4c8dba,'record':_0x4f425c,'after':_0x39c974,'before':_0x5b72b8,'row':_0x4dc200},!0x1))[_0xab6171(0x134)][_0xab6171(0x128)][_0xab6171(0x134)]['result'];if(!_0xd65ba4)return;_0x367de0=this[_0xab6171(0x14d)]?this[_0xab6171(0x14d)][_0xab6171(0x14d)][_0xab6171(0x12b)]:this,Object[_0xab6171(0x133)](_0xd65ba4)['forEach'](_0x27f7bf=>{const _0x17ba52=_0xab6171;_0x367de0[_0x17ba52(0x147)](new CustomEvent(_0x17ba52(0x12c),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x4f425c,'row':_0x4dc200,'after':_0xd65ba4[_0x27f7bf],'before':_0x4f425c[_0x27f7bf],'column':{'name':_0x27f7bf}}}));});}this['dispatchEvent'](new CustomEvent(_0xab6171(0x135),{'bubbles':!0x0,'composed':!0x0,'detail':_0x5f4dea[_0xab6171(0x14e)]}));}async[a0_0x289660(0x152)](){const _0x153f42=a0_0x289660;super[_0x153f42(0x152)]&&await super[_0x153f42(0x152)](),this['tagName'][_0x153f42(0x156)]()['startsWith'](_0x153f42(0x129))?this[_0x153f42(0x13b)](_0x153f42(0x14a),async _0x2f6b7a=>{const _0x61319a=_0x153f42;await this[_0x61319a(0x144)](_0x2f6b7a);}):this[_0x153f42(0x13b)](_0x153f42(0x12c),async _0x17c9fc=>{const _0x56b33f=_0x153f42;await this[_0x56b33f(0x144)](_0x17c9fc);});}async[a0_0x289660(0x161)](_0x1804e3,_0x1b2ff2,_0x3b3ed7){const _0x48ef52=a0_0x289660;let _0x14cb85=this[_0x48ef52(0x14b)]?.[_0x48ef52(0x145)]?this[_0x48ef52(0x14b)]['params']:{};this['isPage']&&this['active']&&0x0==_0x3b3ed7[_0x48ef52(0x12a)]&&ValueUtil['isNotEmpty'](_0x14cb85)&&this[_0x48ef52(0x142)]();}get[a0_0x289660(0x13a)](){const _0x198bd6=a0_0x289660;return!ValueUtil[_0x198bd6(0x13e)](this['is_popup'])&&this['is_popup'];}get[a0_0x289660(0x13c)](){const _0x3b3c17=a0_0x289660;return!this[_0x3b3c17(0x143)]&&!this[_0x3b3c17(0x136)];}async['getAndParseMenuMeta'](){const _0x47af29=a0_0x289660;let _0x37afda=await MetaApi['getMenuMeta'](this);_0x37afda&&(this[_0x47af29(0x131)]=_0x37afda[_0x47af29(0x151)],this[_0x47af29(0x15f)]=_0x37afda[_0x47af29(0x15e)],this[_0x47af29(0x13f)]&&this['parseBasicGridConfigs'](_0x37afda),this[_0x47af29(0x14f)]&&this[_0x47af29(0x14f)](_0x37afda),this['parseBasicFormConfigs']&&this[_0x47af29(0x158)](_0x37afda),this[_0x47af29(0x13d)]&&this[_0x47af29(0x13d)](_0x37afda),this['parseBasicButtonConfigs']&&this[_0x47af29(0x160)](_0x37afda));}async[a0_0x289660(0x142)](){const _0x132ba8=a0_0x289660;ValueUtil[_0x132ba8(0x12e)](this[_0x132ba8(0x14d)])?this[_0x132ba8(0x14d)][_0x132ba8(0x142)]():(ValueUtil[_0x132ba8(0x12e)](this[_0x132ba8(0x149)])||this[_0x132ba8(0x137)])&&await this[_0x132ba8(0x137)]();}async[a0_0x289660(0x127)](_0x14d28f,_0x1e95df,_0x5511d8){const _0x122cfa=a0_0x289660;let _0x816645=TermsUtil[_0x122cfa(0x15d)](_0x14d28f['title']);ValueUtil[_0x122cfa(0x12e)](_0x14d28f[_0x122cfa(0x153)])&&(_0x816645=_0x816645+'-'+ValueUtil[_0x122cfa(0x157)](_0x1e95df,..._0x14d28f[_0x122cfa(0x153)][_0x122cfa(0x138)]('.'))),MetaApi[_0x122cfa(0x14c)](_0x816645,_0x14d28f,_0x1e95df,_0x5511d8);}async['executeCallScenarioButtonClick'](_0xf7bbf7,_0x3f1450,_0x5eec69){const _0x45888a=a0_0x289660;let _0x6c401=await MetaApi[_0x45888a(0x159)](_0xf7bbf7[_0x45888a(0x125)],_0xf7bbf7[_0x45888a(0x125)],_0x3f1450);!0x1!==_0x6c401&&!_0x6c401[_0x45888a(0x141)]&&ValueUtil[_0x45888a(0x12e)](_0xf7bbf7['after'])&&_0x5eec69();}['setParentId'](_0x45640b){const _0x5b8015=a0_0x289660;this[_0x5b8015(0x139)]=_0x45640b,this[_0x5b8015(0x142)]();}};
1
+ const a0_0x21da31=a0_0x225e;(function(_0x1ddaf5,_0x41f415){const _0x1c678e=a0_0x225e,_0x1b5b44=_0x1ddaf5();while(!![]){try{const _0x21560d=parseInt(_0x1c678e(0x1f7))/0x1*(-parseInt(_0x1c678e(0x204))/0x2)+parseInt(_0x1c678e(0x1de))/0x3*(parseInt(_0x1c678e(0x207))/0x4)+parseInt(_0x1c678e(0x1e9))/0x5+-parseInt(_0x1c678e(0x202))/0x6*(-parseInt(_0x1c678e(0x1e8))/0x7)+parseInt(_0x1c678e(0x1fe))/0x8*(-parseInt(_0x1c678e(0x20d))/0x9)+parseInt(_0x1c678e(0x1fb))/0xa*(parseInt(_0x1c678e(0x1fa))/0xb)+-parseInt(_0x1c678e(0x1f2))/0xc*(parseInt(_0x1c678e(0x1eb))/0xd);if(_0x21560d===_0x41f415)break;else _0x1b5b44['push'](_0x1b5b44['shift']());}catch(_0x2ecd29){_0x1b5b44['push'](_0x1b5b44['shift']());}}}(a0_0x25b2,0xd5dcc));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';function a0_0x225e(_0x940f74,_0x340a2f){const _0x25b2ec=a0_0x25b2();return a0_0x225e=function(_0x225e79,_0xabe70d){_0x225e79=_0x225e79-0x1d8;let _0x4113af=_0x25b2ec[_0x225e79];return _0x4113af;},a0_0x225e(_0x940f74,_0x340a2f);}function a0_0x25b2(){const _0x481a8f=['includes','data','isEmpty','parseBasicTabConfigs','filterForm','getParams','fieldChangeHandlers','getMenuMeta','150sLutuc','isDetail','excuteOpenPopupButtonClick','callScenario','executeCallScenarioButtonClick','detail','forEach','toLowerCase','isPage','body','7JKXIyg','6783395NfMVOy','parent_id','2584491uZKkUo','data-changed','dataChangeEventHandler','parseBasicServiceConfigs','isElement','parseBasicGridConfigs','after','84LQVNYL','parseBasicButtonConfigs','menuInfo','parseBasicFormConfigs','keys','747066yhgaKz','result','lifecycle','2002xeIOUe','44950MRyhlb','menu','openDynamicPopup','1560yoIsEj','addEventListener','field-change','name','7925556cicDko','dispatchEvent','2SXAMjV','connectedCallback','params','99736CSELBg','errors','getAndParseMenuMeta','is_popup','etcConfig','etc','79740kblVJO','grist','fetchHandler','title','isNotEmpty','tagName','fetch','tTitle','is_detail','active'];a0_0x25b2=function(){return _0x481a8f;};return a0_0x25b2();}import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x268a88=>class extends _0x268a88{static get['properties'](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x5db921=>Boolean(_0x5db921)},'is_popup':{'type':Boolean,'converter':_0x1ff109=>Boolean(_0x1ff109)},'is_activity':{'type':Boolean,'converter':_0x33cf4b=>Boolean(_0x33cf4b)},'is_readonly':{'type':Boolean,'converter':_0xd1de7b=>Boolean(_0xd1de7b)}};}get[a0_0x21da31(0x1ef)](){const _0x1367bc=a0_0x21da31;return!0x0===this[_0x1367bc(0x215)]||!0x0===this[_0x1367bc(0x20a)];}get[a0_0x21da31(0x1df)](){const _0x40691a=a0_0x21da31;return!ValueUtil[_0x40691a(0x1d8)](this[_0x40691a(0x215)])&&this[_0x40691a(0x215)];}async[a0_0x21da31(0x1ed)](_0x3702ac){const _0x55fa1c=a0_0x21da31;let {after:_0xd24017,before:_0x4a1afd,column:_0xa73358,record:_0x3a110b,row:_0x24afbd}=_0x3702ac[_0x55fa1c(0x1e3)],_0x341a92=_0xa73358[_0x55fa1c(0x201)];if(Object[_0x55fa1c(0x1f6)](this[_0x55fa1c(0x1dc)]||{})[_0x55fa1c(0x217)](_0x341a92)){let _0x1a1824,_0x9f2e53=(await MetaApi['callScenario'](void 0x0,this['fieldChangeHandlers'][_0x341a92],{'columnName':_0x341a92,'column':_0xa73358,'record':_0x3a110b,'after':_0xd24017,'before':_0x4a1afd,'row':_0x24afbd},!0x1))[_0x55fa1c(0x218)]['runScenario']['data'][_0x55fa1c(0x1f8)];if(!_0x9f2e53)return;_0x1a1824=this[_0x55fa1c(0x20e)]?this[_0x55fa1c(0x20e)][_0x55fa1c(0x20e)][_0x55fa1c(0x1e7)]:this,Object[_0x55fa1c(0x1f6)](_0x9f2e53)[_0x55fa1c(0x1e4)](_0x5d8193=>{const _0x28eb33=_0x55fa1c;_0x1a1824[_0x28eb33(0x203)](new CustomEvent(_0x28eb33(0x200),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x3a110b,'row':_0x24afbd,'after':_0x9f2e53[_0x5d8193],'before':_0x3a110b[_0x5d8193],'column':{'name':_0x5d8193}}}));});}this[_0x55fa1c(0x203)](new CustomEvent(_0x55fa1c(0x1ec),{'bubbles':!0x0,'composed':!0x0,'detail':_0x3702ac[_0x55fa1c(0x1e3)]}));}async[a0_0x21da31(0x205)](){const _0x1bca2d=a0_0x21da31;super[_0x1bca2d(0x205)]&&await super[_0x1bca2d(0x205)](),this[_0x1bca2d(0x212)][_0x1bca2d(0x1e5)]()['startsWith']('meta-form-')?this[_0x1bca2d(0x1ff)]('form-field-change',async _0x30d982=>{const _0x21afa4=_0x1bca2d;await this[_0x21afa4(0x1ed)](_0x30d982);}):this[_0x1bca2d(0x1ff)](_0x1bca2d(0x200),async _0x32f967=>{const _0x31b714=_0x1bca2d;await this[_0x31b714(0x1ed)](_0x32f967);});}async['pageUpdated'](_0x13b280,_0x3e15cc,_0x444083){const _0x4adacd=a0_0x21da31;let _0x2cc740=this['lifecycle']?.[_0x4adacd(0x206)]?this[_0x4adacd(0x1f9)][_0x4adacd(0x206)]:{};this['isPage']&&this[_0x4adacd(0x216)]&&0x0==_0x444083[_0x4adacd(0x216)]&&ValueUtil[_0x4adacd(0x211)](_0x2cc740)&&this[_0x4adacd(0x213)]();}get['isPopup'](){const _0xe60e38=a0_0x21da31;return!ValueUtil['isEmpty'](this[_0xe60e38(0x20a)])&&this[_0xe60e38(0x20a)];}get[a0_0x21da31(0x1e6)](){const _0xe95f67=a0_0x21da31;return!this[_0xe95f67(0x215)]&&!this[_0xe95f67(0x20a)];}async[a0_0x21da31(0x209)](){const _0x46b891=a0_0x21da31;let _0x28c9c3=await MetaApi[_0x46b891(0x1dd)](this);_0x28c9c3&&(this[_0x46b891(0x1f4)]=_0x28c9c3[_0x46b891(0x1fc)],this[_0x46b891(0x20b)]=_0x28c9c3[_0x46b891(0x20c)],this[_0x46b891(0x1f0)]&&this[_0x46b891(0x1f0)](_0x28c9c3),this[_0x46b891(0x1ee)]&&this[_0x46b891(0x1ee)](_0x28c9c3),this[_0x46b891(0x1f5)]&&this[_0x46b891(0x1f5)](_0x28c9c3),this['parseBasicTabConfigs']&&this[_0x46b891(0x1d9)](_0x28c9c3),this['parseBasicButtonConfigs']&&this[_0x46b891(0x1f3)](_0x28c9c3));}async[a0_0x21da31(0x213)](){const _0x1038f0=a0_0x21da31;ValueUtil[_0x1038f0(0x211)](this[_0x1038f0(0x20e)])?this[_0x1038f0(0x20e)]['fetch']():(ValueUtil[_0x1038f0(0x211)](this[_0x1038f0(0x1da)])||this[_0x1038f0(0x20f)])&&await this[_0x1038f0(0x20f)]();}async[a0_0x21da31(0x1e0)](_0x2c7d1e,_0x5da166,_0x2fb9b0){const _0x2c02cb=a0_0x21da31;let _0x390e35=TermsUtil[_0x2c02cb(0x214)](_0x2c7d1e[_0x2c02cb(0x210)]);ValueUtil[_0x2c02cb(0x211)](_0x2c7d1e['title_detail'])&&(_0x390e35=_0x390e35+'-'+ValueUtil[_0x2c02cb(0x1db)](_0x5da166,..._0x2c7d1e['title_detail']['split']('.'))),MetaApi[_0x2c02cb(0x1fd)](_0x390e35,_0x2c7d1e,_0x5da166,_0x2fb9b0);}async[a0_0x21da31(0x1e2)](_0x57de3d,_0x1a7aef,_0x559afd){const _0x556e27=a0_0x21da31;let _0x46a6c6=await MetaApi[_0x556e27(0x1e1)](_0x57de3d[_0x556e27(0x201)],_0x57de3d[_0x556e27(0x201)],_0x1a7aef);!0x1!==_0x46a6c6&&!_0x46a6c6[_0x556e27(0x208)]&&ValueUtil[_0x556e27(0x211)](_0x57de3d[_0x556e27(0x1f1)])&&_0x559afd();}['setParentId'](_0x42af58){const _0x20d159=a0_0x21da31;this[_0x20d159(0x1ea)]=_0x42af58,this[_0x20d159(0x213)]();}};
@@ -1,4 +1,4 @@
1
- const a0_0x18d367=a0_0x17cc;(function(_0xcb715b,_0x4ecf93){const _0x528d14=a0_0x17cc,_0x2c2059=_0xcb715b();while(!![]){try{const _0x21c782=-parseInt(_0x528d14(0xca))/0x1+parseInt(_0x528d14(0xbf))/0x2*(parseInt(_0x528d14(0xd6))/0x3)+parseInt(_0x528d14(0xc7))/0x4*(parseInt(_0x528d14(0xd5))/0x5)+-parseInt(_0x528d14(0xda))/0x6+-parseInt(_0x528d14(0xde))/0x7*(-parseInt(_0x528d14(0xac))/0x8)+parseInt(_0x528d14(0xd0))/0x9*(-parseInt(_0x528d14(0xc5))/0xa)+-parseInt(_0x528d14(0xd7))/0xb*(parseInt(_0x528d14(0xb9))/0xc);if(_0x21c782===_0x4ecf93)break;else _0x2c2059['push'](_0x2c2059['shift']());}catch(_0x5cbf86){_0x2c2059['push'](_0x2c2059['shift']());}}}(a0_0x42a0,0x364b3));function a0_0x17cc(_0x4787f0,_0x1c33e9){const _0x42a0fa=a0_0x42a0();return a0_0x17cc=function(_0x17cca7,_0x2d3fd3){_0x17cca7=_0x17cca7-0xa9;let _0x398dcb=_0x42a0fa[_0x17cca7];return _0x398dcb;},a0_0x17cc(_0x4787f0,_0x1c33e9);}import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x113d04=>class extends MetaButtonMixin(_0x113d04){static get[a0_0x18d367(0xb5)](){const _0x447725=a0_0x18d367;return MetaApi[_0x447725(0xcb)]();}static get[a0_0x18d367(0xc8)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x18d367(0xb7)](){const _0x5f2d75=a0_0x18d367;return this[_0x5f2d75(0xbb)]?.['querySelector'](this[_0x5f2d75(0xc3)]);}get[a0_0x18d367(0xe2)](){const _0x101d8a=a0_0x18d367;return this['shadowRoot']?.[_0x101d8a(0xb2)](this[_0x101d8a(0xb3)]);}get[a0_0x18d367(0xcc)](){const _0x2ca854=a0_0x18d367;return MetaUiUtil[_0x2ca854(0xab)](this);}async[a0_0x18d367(0xb0)](){const _0x4c4451=a0_0x18d367;this[_0x4c4451(0xc3)]=_0x4c4451(0xd9),this[_0x4c4451(0xb3)]=_0x4c4451(0xb6),await this[_0x4c4451(0xc4)](),this['isElement']&&await this['parseGristConfigs'](),this[_0x4c4451(0xcd)]&&(this[_0x4c4451(0xad)]=this[_0x4c4451(0xcd)]),super[_0x4c4451(0xb0)]&&await super['connectedCallback']();}async[a0_0x18d367(0xe4)](){const _0x2ae3e7=a0_0x18d367;super[_0x2ae3e7(0xe4)]&&await super[_0x2ae3e7(0xe4)]();}async['pageInitialized'](){const _0x57cc87=a0_0x18d367;this[_0x57cc87(0xdd)]&&await this[_0x57cc87(0xdf)](),super[_0x57cc87(0xd3)]&&await super[_0x57cc87(0xd3)]();}['render'](){const _0x4a98b0=a0_0x18d367;return html`
2
- ${MetaApi[_0x4a98b0(0xcf)](this)}
3
- ${this[_0x4a98b0(0xdd)]?html``:MetaUiUtil[_0x4a98b0(0xe1)](this)}
4
- `;}[a0_0x18d367(0xe3)](_0x58aa20){const _0xaeda06=a0_0x18d367;this['gridConfig']=_0x58aa20['grid'],this['gridColumnConfig']=_0x58aa20[_0xaeda06(0xb1)],this['searchConfig']=_0x58aa20[_0xaeda06(0xdb)],this[_0xaeda06(0xc2)]=_0x58aa20[_0xaeda06(0xc2)];}async[a0_0x18d367(0xdf)](){this['gristConfigSet']=await MetaApi['parseGridConfigSet'](this);}async['fetch'](){const _0x2e717f=a0_0x18d367;await this[_0x2e717f(0xb7)][_0x2e717f(0xce)]();}async[a0_0x18d367(0xbc)](){const _0x52a0d4=a0_0x18d367;let _0x5e6b3e=MetaApi['patchesForUpdateMultiple'](this['grist']);!!ValueUtil[_0x52a0d4(0xd4)](_0x5e6b3e)&&await this[_0x52a0d4(0xba)](_0x5e6b3e)&&this[_0x52a0d4(0xce)]();}async[a0_0x18d367(0xd2)](){const _0x3fd435=a0_0x18d367;let _0x33dab9=MetaApi['getSelectedIdList'](this[_0x3fd435(0xb7)],!0x0);return ValueUtil[_0x3fd435(0xd4)](_0x33dab9)?await this[_0x3fd435(0xe0)](_0x33dab9[0x0]):{};}async[a0_0x18d367(0xc6)](){const _0x1e1cd0=a0_0x18d367;let _0x3e487f=MetaApi[_0x1e1cd0(0xc9)](this[_0x1e1cd0(0xb7)],!0x0);!!ValueUtil[_0x1e1cd0(0xd4)](_0x3e487f)&&await this['deleteByIds'](_0x3e487f)&&this[_0x1e1cd0(0xce)]();}async['export'](){const _0x313ab3=a0_0x18d367;let _0x2879ef=TermsUtil['tTitle'](ValueUtil[_0x313ab3(0xa9)](this['menuInfo'],_0x313ab3(0xaf)));return await MetaApi['exportableData'](this[_0x313ab3(0xb8)],_0x2879ef,this['grist']);}async[a0_0x18d367(0xbd)](){}async[a0_0x18d367(0xc1)](){const _0x3e6f46=a0_0x18d367;this[_0x3e6f46(0xb7)]&&(this[_0x3e6f46(0xb7)][_0x3e6f46(0xbe)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0x3d9b0d=a0_0x18d367;let _0x462b1a=this[_0x3d9b0d(0xb7)][_0x3d9b0d(0xdc)][_0x3d9b0d(0xd8)];return _0x462b1a=JSON[_0x3d9b0d(0xb4)](JSON[_0x3d9b0d(0xae)](_0x462b1a)),_0x462b1a[_0x3d9b0d(0xd1)](_0x1c8dd0=>{const _0x269f82=_0x3d9b0d;Object[_0x269f82(0xaa)](_0x1c8dd0)[_0x269f82(0xd1)](_0x52fdc8=>{const _0xa0b3ea=_0x269f82;_0x52fdc8[_0xa0b3ea(0xc0)]('__')&&delete _0x1c8dd0[_0x52fdc8];});}),_0x462b1a;}};function a0_0x42a0(){const _0x118ec1=['72787UdopnC','records','ox-grist','37158hdVaUW','search','___data','isPage','435799oEnsXm','parseGristConfigs','findOne','getButtonContainer','filterForm','parseBasicGridConfigs','firstUpdated','getParams','keys','getContextObject','40KveZbw','dataSet','stringify','title','connectedCallback','grid_column','querySelector','filterFormId','parse','styles','ox-filters-form','grist','isElement','156smAYNw','updateMultiple','renderRoot','save','import','data','308408oAGRUR','startsWith','clear','gridEmphasized','gristId','getAndParseMenuMeta','3441580MFrIhR','delete','1760684IKBPAX','properties','getSelectedIdList','246901KdqQDc','getBasicGristStyles','context','activityDataSet','fetch','getBasicGristHtml','9NdswXa','forEach','find','pageInitialized','isNotEmpty','5UBwAgD','3LjUBgX'];a0_0x42a0=function(){return _0x118ec1;};return a0_0x42a0();}
1
+ const a0_0x55d038=a0_0x5d33;(function(_0x58a998,_0x1c2f58){const _0x20d2e7=a0_0x5d33,_0x1e3c2d=_0x58a998();while(!![]){try{const _0x303580=parseInt(_0x20d2e7(0xd1))/0x1*(-parseInt(_0x20d2e7(0xe4))/0x2)+parseInt(_0x20d2e7(0xf2))/0x3+-parseInt(_0x20d2e7(0xf9))/0x4+parseInt(_0x20d2e7(0xfb))/0x5*(-parseInt(_0x20d2e7(0xec))/0x6)+parseInt(_0x20d2e7(0xf0))/0x7+-parseInt(_0x20d2e7(0xde))/0x8*(parseInt(_0x20d2e7(0xce))/0x9)+parseInt(_0x20d2e7(0xef))/0xa;if(_0x303580===_0x1c2f58)break;else _0x1e3c2d['push'](_0x1e3c2d['shift']());}catch(_0x57ca37){_0x1e3c2d['push'](_0x1e3c2d['shift']());}}}(a0_0x3d5c,0x52670));import{html}from'lit';function a0_0x3d5c(){const _0x1d8cb1=['parse','7087210lOeDGg','1790887lHqfxN','styles','826152DrxlaJ','properties','getBasicGristHtml','isPage','parseGristConfigs','querySelector','delete','483312bINFOa','find','620065QYkFCc','stringify','parseBasicGridConfigs','pageInitialized','isElement','title','isNotEmpty','connectedCallback','ox-grist','menuInfo','filterForm','findOne','gristConfigSet','1946277QkxIDI','activityDataSet','gristId','3ppscJo','getSelectedIdList','data','fetch','firstUpdated','getButtonContainer','clear','gridColumnConfig','getBasicGristStyles','getParams','context','render','parseGridConfigSet','8vgqzkB','getContextObject','export','grid_column','exportableData','dataSet','211546GsMEYe','import','getData','filterFormId','getAndParseMenuMeta','gridEmphasized','___data','grist','12oVGdLF','grid'];a0_0x3d5c=function(){return _0x1d8cb1;};return a0_0x3d5c();}import{MetaApi}from'../utils/meta-api';function a0_0x5d33(_0x169ff2,_0x2e7747){const _0x3d5c73=a0_0x3d5c();return a0_0x5d33=function(_0x5d33db,_0x5e091f){_0x5d33db=_0x5d33db-0xca;let _0x3fa96d=_0x3d5c73[_0x5d33db];return _0x3fa96d;},a0_0x5d33(_0x169ff2,_0x2e7747);}import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x59c761=>class extends MetaButtonMixin(_0x59c761){static get[a0_0x55d038(0xf1)](){const _0x29cd67=a0_0x55d038;return MetaApi[_0x29cd67(0xd9)]();}static get[a0_0x55d038(0xf3)](){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 _0xf343f5=a0_0x55d038;return this['renderRoot']?.[_0xf343f5(0xf7)](this[_0xf343f5(0xd0)]);}get[a0_0x55d038(0xcb)](){const _0x1116e2=a0_0x55d038;return this['shadowRoot']?.['querySelector'](this[_0x1116e2(0xe7)]);}get[a0_0x55d038(0xdb)](){const _0x37c223=a0_0x55d038;return MetaUiUtil[_0x37c223(0xdf)](this);}async['connectedCallback'](){const _0x161a45=a0_0x55d038;this[_0x161a45(0xd0)]=_0x161a45(0x103),this[_0x161a45(0xe7)]='ox-filters-form',await this[_0x161a45(0xe8)](),this[_0x161a45(0xff)]&&await this[_0x161a45(0xf6)](),this[_0x161a45(0xcf)]&&(this[_0x161a45(0xe3)]=this[_0x161a45(0xcf)]),super[_0x161a45(0x102)]&&await super['connectedCallback']();}async[a0_0x55d038(0xd5)](){const _0x157a86=a0_0x55d038;super[_0x157a86(0xd5)]&&await super[_0x157a86(0xd5)]();}async[a0_0x55d038(0xfe)](){const _0x5852ec=a0_0x55d038;this[_0x5852ec(0xf5)]&&await this[_0x5852ec(0xf6)](),super[_0x5852ec(0xfe)]&&await super[_0x5852ec(0xfe)]();}[a0_0x55d038(0xdc)](){const _0x5cdda7=a0_0x55d038;return html`
2
+ ${MetaApi[_0x5cdda7(0xf4)](this)}
3
+ ${this[_0x5cdda7(0xf5)]?html``:MetaUiUtil[_0x5cdda7(0xd6)](this)}
4
+ `;}[a0_0x55d038(0xfd)](_0x4492d4){const _0x49cddb=a0_0x55d038;this['gridConfig']=_0x4492d4[_0x49cddb(0xed)],this[_0x49cddb(0xd8)]=_0x4492d4[_0x49cddb(0xe1)],this['searchConfig']=_0x4492d4['search'],this[_0x49cddb(0xe9)]=_0x4492d4[_0x49cddb(0xe9)];}async['parseGristConfigs'](){const _0x25f637=a0_0x55d038;this[_0x25f637(0xcd)]=await MetaApi[_0x25f637(0xdd)](this);}async['fetch'](){const _0x59ae09=a0_0x55d038;await this[_0x59ae09(0xeb)][_0x59ae09(0xd4)]();}async['save'](){const _0x2d2431=a0_0x55d038;let _0x5e63a5=MetaApi['patchesForUpdateMultiple'](this[_0x2d2431(0xeb)]);!!ValueUtil[_0x2d2431(0x101)](_0x5e63a5)&&await this['updateMultiple'](_0x5e63a5)&&this[_0x2d2431(0xd4)]();}async[a0_0x55d038(0xfa)](){const _0x28dd14=a0_0x55d038;let _0x184543=MetaApi[_0x28dd14(0xd2)](this[_0x28dd14(0xeb)],!0x0);return ValueUtil[_0x28dd14(0x101)](_0x184543)?await this[_0x28dd14(0xcc)](_0x184543[0x0]):{};}async[a0_0x55d038(0xf8)](){const _0x3f54be=a0_0x55d038;let _0x306d4a=MetaApi[_0x3f54be(0xd2)](this[_0x3f54be(0xeb)],!0x0);!!ValueUtil[_0x3f54be(0x101)](_0x306d4a)&&await this['deleteByIds'](_0x306d4a)&&this[_0x3f54be(0xd4)]();}async[a0_0x55d038(0xe0)](){const _0x1d6ef9=a0_0x55d038;let _0x51caba=TermsUtil['tTitle'](ValueUtil[_0x1d6ef9(0xda)](this[_0x1d6ef9(0xca)],_0x1d6ef9(0x100)));return await MetaApi[_0x1d6ef9(0xe2)](this[_0x1d6ef9(0xff)],_0x51caba,this[_0x1d6ef9(0xeb)]);}async[a0_0x55d038(0xe5)](){}async[a0_0x55d038(0xd7)](){const _0x8abf2d=a0_0x55d038;this[_0x8abf2d(0xeb)]&&(this['grist'][_0x8abf2d(0xd3)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x55d038(0xe6)](){const _0x368dcd=a0_0x55d038;let _0x419964=this['grist'][_0x368dcd(0xea)]['records'];return _0x419964=JSON[_0x368dcd(0xee)](JSON[_0x368dcd(0xfc)](_0x419964)),_0x419964['forEach'](_0x5ecfcf=>{Object['keys'](_0x5ecfcf)['forEach'](_0x5e69b1=>{_0x5e69b1['startsWith']('__')&&delete _0x5ecfcf[_0x5e69b1];});}),_0x419964;}};
@@ -1 +1 @@
1
- function a0_0x335d(_0x3301be,_0x3adf7d){const _0x5904b3=a0_0x5904();return a0_0x335d=function(_0x335d72,_0x2d85bb){_0x335d72=_0x335d72-0x118;let _0x2015ce=_0x5904b3[_0x335d72];return _0x2015ce;},a0_0x335d(_0x3301be,_0x3adf7d);}const a0_0x3ef503=a0_0x335d;(function(_0x2828bf,_0x1c7136){const _0x319717=a0_0x335d,_0x32893d=_0x2828bf();while(!![]){try{const _0x3732d7=parseInt(_0x319717(0x119))/0x1+parseInt(_0x319717(0x11c))/0x2*(-parseInt(_0x319717(0x12d))/0x3)+parseInt(_0x319717(0x127))/0x4*(parseInt(_0x319717(0x11a))/0x5)+parseInt(_0x319717(0x129))/0x6+-parseInt(_0x319717(0x131))/0x7*(-parseInt(_0x319717(0x118))/0x8)+-parseInt(_0x319717(0x128))/0x9+parseInt(_0x319717(0x125))/0xa*(-parseInt(_0x319717(0x11e))/0xb);if(_0x3732d7===_0x1c7136)break;else _0x32893d['push'](_0x32893d['shift']());}catch(_0x2f599f){_0x32893d['push'](_0x32893d['shift']());}}}(a0_0x5904,0xc8c37));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x5904(){const _0x186f82=['useButtonExport','getContextButtons','getButtonActionHandler','8gPtojv','349671WgLZQh','5458315dfrpBn','customButtonHandler','3106lcSGAJ','getButtonContainer','44KOTjyn','isButtonExist','useButtonImport','parseBasicButtonConfigs','getCustomButtonContainerStyle','gristButtonHandler','add','1909660XGsoif','getCustomButtonContainerStyles','4ixHwZn','7779573cwQwZq','6091434JKlpyt','buttonConfig','import','getBasicButtonHandler','3138YbSuym','properties','useButtonAdd','export','11329171NhzQPL'];a0_0x5904=function(){return _0x186f82;};return a0_0x5904();}import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x55921c=>class extends MetaServiceMixin(_0x55921c){static get[a0_0x3ef503(0x12e)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x3ef503(0x122)](){const _0x46204b=a0_0x3ef503;return MetaUiUtil[_0x46204b(0x126)]();}[a0_0x3ef503(0x133)](){return MetaUiUtil['getContextButtons'](this);}[a0_0x3ef503(0x11d)](){return this['isPage']?html``:MetaUiUtil['getButtonContainer'](this);}async[a0_0x3ef503(0x12c)](_0x439077,_0xe9ed45,_0x270c97){const _0x293cfa=a0_0x3ef503;return await MetaUiUtil[_0x293cfa(0x134)](this,_0x439077,_0xe9ed45,_0x270c97);}async[a0_0x3ef503(0x11b)](_0x1a60d1){await MetaUiUtil['customButtonHandler'](this,_0x1a60d1);}async['gristButtonHandler'](_0x1ea2a5,_0x2a91de){const _0x4b164e=a0_0x3ef503;await MetaUiUtil[_0x4b164e(0x123)](this,_0x1ea2a5,_0x2a91de);}[a0_0x3ef503(0x121)](_0x229be2){const _0x1442fb=a0_0x3ef503;this[_0x1442fb(0x12a)]=_0x229be2['button'],this[_0x1442fb(0x120)]=MetaUiUtil[_0x1442fb(0x11f)](this[_0x1442fb(0x12a)],_0x1442fb(0x12b)),this[_0x1442fb(0x132)]=MetaUiUtil[_0x1442fb(0x11f)](this['buttonConfig'],_0x1442fb(0x130)),this[_0x1442fb(0x12f)]=MetaUiUtil[_0x1442fb(0x11f)](this[_0x1442fb(0x12a)],_0x1442fb(0x124));}};
1
+ function a0_0x5cf9(){const _0x15c176=['customButtonHandler','useButtonAdd','button','getButtonContainer','28MEvBQW','1401819vvJnIR','isButtonExist','1933ZXzrhE','getContextButtons','18BXVkvu','properties','2492580TXfSrh','473855TOHjGF','gristButtonHandler','1601608OSxqiH','add','buttonConfig','7yLrseE','parseBasicButtonConfigs','isPage','622KHydln','1365166uTDVCu','getButtonActionHandler','2897820jfTKWg','getBasicButtonHandler','useButtonImport'];a0_0x5cf9=function(){return _0x15c176;};return a0_0x5cf9();}const a0_0x3cf8b1=a0_0x58a3;function a0_0x58a3(_0x56aeae,_0x47389f){const _0x5cf9fc=a0_0x5cf9();return a0_0x58a3=function(_0x58a3c9,_0xe1aa){_0x58a3c9=_0x58a3c9-0xe7;let _0x17d893=_0x5cf9fc[_0x58a3c9];return _0x17d893;},a0_0x58a3(_0x56aeae,_0x47389f);}(function(_0x126d79,_0x28818c){const _0x16ae2=a0_0x58a3,_0x2598f7=_0x126d79();while(!![]){try{const _0x2a92d1=parseInt(_0x16ae2(0xe9))/0x1*(-parseInt(_0x16ae2(0xf6))/0x2)+parseInt(_0x16ae2(0xe7))/0x3+-parseInt(_0x16ae2(0x100))/0x4*(-parseInt(_0x16ae2(0xee))/0x5)+parseInt(_0x16ae2(0xed))/0x6+parseInt(_0x16ae2(0xf3))/0x7*(parseInt(_0x16ae2(0xf0))/0x8)+parseInt(_0x16ae2(0xeb))/0x9*(-parseInt(_0x16ae2(0xf9))/0xa)+-parseInt(_0x16ae2(0xf7))/0xb;if(_0x2a92d1===_0x28818c)break;else _0x2598f7['push'](_0x2598f7['shift']());}catch(_0x380a34){_0x2598f7['push'](_0x2598f7['shift']());}}}(a0_0x5cf9,0x6bc7c));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x122801=>class extends MetaServiceMixin(_0x122801){static get[a0_0x3cf8b1(0xec)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}['getCustomButtonContainerStyle'](){return MetaUiUtil['getCustomButtonContainerStyles']();}[a0_0x3cf8b1(0xea)](){const _0x5602dd=a0_0x3cf8b1;return MetaUiUtil[_0x5602dd(0xea)](this);}[a0_0x3cf8b1(0xff)](){const _0x1a3440=a0_0x3cf8b1;return this[_0x1a3440(0xf5)]?html``:MetaUiUtil['getButtonContainer'](this);}async[a0_0x3cf8b1(0xfa)](_0x14bbb1,_0x130f8e,_0x26cc40){const _0x16e9ef=a0_0x3cf8b1;return await MetaUiUtil[_0x16e9ef(0xf8)](this,_0x14bbb1,_0x130f8e,_0x26cc40);}async['customButtonHandler'](_0x108d85){const _0xfce71c=a0_0x3cf8b1;await MetaUiUtil[_0xfce71c(0xfc)](this,_0x108d85);}async[a0_0x3cf8b1(0xef)](_0x2240e9,_0x3d4f8e){const _0x5ac317=a0_0x3cf8b1;await MetaUiUtil[_0x5ac317(0xef)](this,_0x2240e9,_0x3d4f8e);}[a0_0x3cf8b1(0xf4)](_0x416ca3){const _0x23584b=a0_0x3cf8b1;this[_0x23584b(0xf2)]=_0x416ca3[_0x23584b(0xfe)],this[_0x23584b(0xfb)]=MetaUiUtil['isButtonExist'](this[_0x23584b(0xf2)],'import'),this['useButtonExport']=MetaUiUtil[_0x23584b(0xe8)](this[_0x23584b(0xf2)],'export'),this[_0x23584b(0xfd)]=MetaUiUtil[_0x23584b(0xe8)](this[_0x23584b(0xf2)],_0x23584b(0xf1));}};
@@ -1 +1 @@
1
- const a0_0x300f65=a0_0x2c52;(function(_0x433959,_0x360e4e){const _0x1930d3=a0_0x2c52,_0x137b51=_0x433959();while(!![]){try{const _0x3324d5=parseInt(_0x1930d3(0x1e6))/0x1*(-parseInt(_0x1930d3(0x207))/0x2)+-parseInt(_0x1930d3(0x1fa))/0x3*(parseInt(_0x1930d3(0x1d2))/0x4)+parseInt(_0x1930d3(0x1fd))/0x5+parseInt(_0x1930d3(0x1ff))/0x6*(parseInt(_0x1930d3(0x1d6))/0x7)+-parseInt(_0x1930d3(0x1c7))/0x8*(parseInt(_0x1930d3(0x1ba))/0x9)+-parseInt(_0x1930d3(0x209))/0xa+parseInt(_0x1930d3(0x1c6))/0xb;if(_0x3324d5===_0x360e4e)break;else _0x137b51['push'](_0x137b51['shift']());}catch(_0x4f56c1){_0x137b51['push'](_0x137b51['shift']());}}}(a0_0x59dd,0x2e1c2));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x2c52(_0x27841a,_0x5f4ca7){const _0x59dd45=a0_0x59dd();return a0_0x2c52=function(_0x2c52eb,_0x18f8ad){_0x2c52eb=_0x2c52eb-0x1b3;let _0x49e72f=_0x59dd45[_0x2c52eb];return _0x49e72f;},a0_0x2c52(_0x27841a,_0x5f4ca7);}function a0_0x59dd(){const _0x1a6e8e=['text.NOTHING_CHANGED','tText','removeAttribute','patchData','activityDataSet','text.check-mandatory','header','title.info','firstUpdated','currentData','fetch','entries','9UXUwEA','after','getBasicFormHtml','currentTarget','Esc','button','styles','detail','__origin__','Enter','filter','formColumnConfig','6686614vpgWLT','331928ofBTwE','render','confirm','__seq__','cuFlag','is_activity','click','check-mandatory-field','true','showAlertPopup','dataSet','4gEKstH','mandatory','form','editing','140TDvulw','map','connectedCallback','forEach','dirtyData','save','addEventListener','isPage','parseBasicFormConfigs','validation','renderRoot','OX-GRID-FIELD','formRenderConfig','parseFormConfigs','findOne','assign','63873cQMfZb','isEmpty','isElement','call','type','keydown','context','isEquals','getData','function','clear','form-field-change','name','record','getBasicFormStyles','includes','parent_id','object','__dirtyfields__','target','571953wDgdiJ','key','setAttribute','145925hGAAdj','orgData','10008touLbp','pageInitialized','before','removeGarbageData','tLabel','grid_column','startsWith','focus','2DLDOgR','isNotEmpty','1855380hKhnfD'];a0_0x59dd=function(){return _0x1a6e8e;};return a0_0x59dd();}import{ValueUtil}from'../utils/value-util';import{UiUtil}from'../utils/ui-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x164c54=>class extends MetaButtonMixin(_0x164c54){static get[a0_0x300f65(0x1c0)](){const _0x15d148=a0_0x300f65;return MetaApi[_0x15d148(0x1f4)]();}static get['properties'](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x300f65(0x1ec)](){return MetaUiUtil['getContextObject'](this);}async[a0_0x300f65(0x1d8)](){const _0x725ad2=a0_0x300f65;await this['getAndParseMenuMeta'](),this[_0x725ad2(0x1e8)]&&await this[_0x725ad2(0x1e3)](),this['activityDataSet']&&(this[_0x725ad2(0x1d1)]=this[_0x725ad2(0x20e)]),!0x0!==this[_0x725ad2(0x1cc)]||this[_0x725ad2(0x1f6)]||(this[_0x725ad2(0x1f6)]='activity'),super['connectedCallback']&&await super[_0x725ad2(0x1d8)](),this[_0x725ad2(0x1e8)]&&await this[_0x725ad2(0x1b8)](),this[_0x725ad2(0x1e0)][_0x725ad2(0x1dc)](_0x725ad2(0x1eb),_0x2ac5af=>{const _0x374231=_0x725ad2;switch(_0x2ac5af[_0x374231(0x1fb)]){case _0x374231(0x1be):case'Escape':case _0x374231(0x1c3):this['focus'](),this[_0x374231(0x1bd)]&&this[_0x374231(0x1bd)][_0x374231(0x20c)](_0x374231(0x1d5)),this[_0x374231(0x1bd)]=null;}}),this[_0x725ad2(0x1e0)]['addEventListener'](_0x725ad2(0x1cd),_0x8e6882=>{const _0x267431=_0x725ad2;_0x8e6882['stopPropagation']();let _0x192c9f=_0x8e6882[_0x267431(0x1f9)];if(this[_0x267431(0x1bd)]&&(this[_0x267431(0x206)](),this[_0x267431(0x1bd)][_0x267431(0x20c)]('editing')),_0x267431(0x1e1)!==_0x192c9f['tagName']||!_0x192c9f['column'][_0x267431(0x1f3)]['editable'])return this['focus'](),void(this[_0x267431(0x1bd)]=null);this[_0x267431(0x1bd)]=_0x192c9f,_0x192c9f[_0x267431(0x1fc)](_0x267431(0x1d5),_0x267431(0x1cf));}),this[_0x725ad2(0x1dc)]('field-change',_0x5db8fa=>{const _0x2fda9a=_0x725ad2;var {after:_0x46af9c,before:_0x19b3d8,column:_0x1e7cb6,record:_0x4b0008,row:_0x82ff9e}=_0x5db8fa[_0x2fda9a(0x1c1)];if(ValueUtil[_0x2fda9a(0x1ed)](_0x46af9c,_0x19b3d8))return;var _0x460752=_0x1e7cb6[_0x2fda9a(0x1df)];if(_0x460752&&_0x2fda9a(0x1ef)==typeof _0x460752&&!_0x460752[_0x2fda9a(0x1e9)](this,_0x46af9c,_0x19b3d8,_0x4b0008,_0x1e7cb6))return;let _0x501320=_0x1e7cb6[_0x2fda9a(0x1f2)];_0x4b0008[_0x501320]=_0x46af9c,_0x4b0008[_0x2fda9a(0x1f8)]=_0x4b0008['__dirtyfields__']||{},_0x4b0008[_0x2fda9a(0x1c2)]=_0x4b0008['__origin__']||{},_0x4b0008[_0x2fda9a(0x1f8)][_0x501320]={'before':_0x4b0008[_0x2fda9a(0x1c2)][_0x501320],'after':_0x4b0008[_0x501320]},ValueUtil['isEquals'](_0x4b0008['__dirtyfields__'][_0x501320][_0x2fda9a(0x201)],_0x4b0008[_0x2fda9a(0x1f8)][_0x501320][_0x2fda9a(0x1bb)])&&delete _0x4b0008[_0x2fda9a(0x1f8)][_0x501320],ValueUtil[_0x2fda9a(0x208)](_0x4b0008[_0x2fda9a(0x1f8)])?_0x4b0008['__dirty__']='M':_0x4b0008['__dirty__']='',this[_0x2fda9a(0x1f3)]={..._0x4b0008},this['dispatchEvent'](new CustomEvent(_0x2fda9a(0x1f1),{'bubbles':!0x0,'composed':!0x0,'detail':_0x5db8fa['detail']}));});}async[a0_0x300f65(0x1b6)](){const _0xe443a4=a0_0x300f65;super[_0xe443a4(0x1b6)]&&await super[_0xe443a4(0x1b6)]();}async['pageInitialized'](){const _0x4e7c4f=a0_0x300f65;this[_0x4e7c4f(0x1dd)]&&await this[_0x4e7c4f(0x1e3)](),super[_0x4e7c4f(0x200)]&&await super[_0x4e7c4f(0x200)](),this['isPage']&&await this[_0x4e7c4f(0x1b8)]();}[a0_0x300f65(0x1c8)](){const _0x54bd27=a0_0x300f65;return MetaApi[_0x54bd27(0x1bc)](this);}[a0_0x300f65(0x1de)](_0x334165){const _0x323621=a0_0x300f65;this['formColumnConfig']=_0x334165[_0x323621(0x204)],this[_0x323621(0x1e2)]=_0x334165[_0x323621(0x1d4)],_0x334165[_0x323621(0x1bf)]=_0x334165[_0x323621(0x1bf)][_0x323621(0x1c4)](_0x4a2a0a=>_0x323621(0x1db)==_0x4a2a0a[_0x323621(0x1f2)]);}async[a0_0x300f65(0x1e3)](){this['formConfigSet']=await MetaApi['parseFormConfigSet'](this);}get[a0_0x300f65(0x1fe)](){const _0x567639=a0_0x300f65;return this[_0x567639(0x202)](this['record'][_0x567639(0x1c2)]);}get[a0_0x300f65(0x1da)](){const _0x5bdd80=a0_0x300f65;if(ValueUtil[_0x5bdd80(0x1e7)]((this[_0x5bdd80(0x1f3)]||{})[_0x5bdd80(0x1f8)]))return{};let _0x51a203={};return Object[_0x5bdd80(0x1b9)](this[_0x5bdd80(0x1f3)][_0x5bdd80(0x1f8)])[_0x5bdd80(0x1d7)](([_0x370c64,_0xcaa677])=>{const _0x11054a=_0x5bdd80;0x0==_0x370c64[_0x11054a(0x205)]('__')&&(_0x51a203[_0x370c64]=_0xcaa677[_0x11054a(0x1bb)]);}),_0x51a203;}get['currentData'](){const _0x120940=a0_0x300f65;return this[_0x120940(0x202)](this[_0x120940(0x1f3)]);}[a0_0x300f65(0x202)](_0x2aa726){const _0x3a39f6=a0_0x300f65;let _0x42bb40={};if(_0x2aa726)return Object[_0x3a39f6(0x1b9)](_0x2aa726)[_0x3a39f6(0x1d7)](([_0x3f9ada,_0x5a61cf])=>{0x0==_0x3f9ada['startsWith']('__')&&(_0x42bb40[_0x3f9ada]=_0x5a61cf);}),_0x42bb40;}get[a0_0x300f65(0x20d)](){const _0x518cde=a0_0x300f65;let _0x592476=this['dirtyData'],_0x5b0e45=this[_0x518cde(0x1f3)],_0x350037=(this[_0x518cde(0x1c5)]||[])[_0x518cde(0x1c4)](_0x52ef8c=>'code-input'===_0x52ef8c[_0x518cde(0x1ea)])[_0x518cde(0x1d7)](_0xc852f1=>_0xc852f1[_0x518cde(0x1f2)]);if(!ValueUtil[_0x518cde(0x1e7)](_0x592476))return ValueUtil[_0x518cde(0x208)](_0x5b0e45['id'])?(_0x592476['id']=_0x5b0e45['id'],_0x592476[_0x518cde(0x1cb)]='M'):_0x592476[_0x518cde(0x1cb)]='+',Object['keys'](_0x592476)[_0x518cde(0x1d9)](_0x3c9487=>{const _0x3437c1=_0x518cde;_0x3437c1(0x1f7)==typeof _0x592476[_0x3c9487]&&0x0==_0x350037[_0x3437c1(0x1f5)](_0x3c9487)&&(_0x592476[_0x3c9487]={'id':_0x592476[_0x3c9487]['id']});}),[_0x592476];}async[a0_0x300f65(0x1b8)](){const _0x46bb71=a0_0x300f65;if(ValueUtil[_0x46bb71(0x1e7)](this[_0x46bb71(0x1f6)]))return;let _0x5e16e9=await this[_0x46bb71(0x1e4)](this[_0x46bb71(0x1f6)]);_0x5e16e9[_0x46bb71(0x1ca)]=0x1;let _0x59c458={};Object[_0x46bb71(0x1e5)](_0x59c458,_0x5e16e9),_0x5e16e9[_0x46bb71(0x1c2)]=_0x59c458,this[_0x46bb71(0x1f3)]={..._0x5e16e9};}async[a0_0x300f65(0x1db)](){const _0xe71fa6=a0_0x300f65;let _0x5ba24d=this[_0xe71fa6(0x20d)];if(ValueUtil[_0xe71fa6(0x1e7)](_0x5ba24d))return void MetaApi[_0xe71fa6(0x1d0)](_0xe71fa6(0x1b5),_0xe71fa6(0x20a));let _0x18f359={};(this[_0xe71fa6(0x1c5)]||[])['filter'](_0x34764f=>!0x0===_0x34764f[_0xe71fa6(0x1d3)])[_0xe71fa6(0x1d9)](_0x5b0528=>{const _0x1a90e9=_0xe71fa6;_0x18f359[_0x5b0528['name']]=_0x5b0528[_0x1a90e9(0x1b4)];});let _0x4234e4=this[_0xe71fa6(0x1b7)];for(let _0xa7907f in _0x18f359)if(!_0x4234e4[_0xa7907f])return void UiUtil[_0xe71fa6(0x1d0)](_0xe71fa6(0x1b3),TermsUtil[_0xe71fa6(0x20b)](_0xe71fa6(0x1ce),{'x':TermsUtil[_0xe71fa6(0x203)](_0x18f359[_0xa7907f])}),'info',_0xe71fa6(0x1c9));let _0x2eda16=await this['updateMultiple'](_0x5ba24d);return _0x2eda16&&await this[_0xe71fa6(0x1b8)](),_0x2eda16;}async[a0_0x300f65(0x1f0)](){const _0x4cd70=a0_0x300f65;this[_0x4cd70(0x1f3)]&&(this['record']={});}[a0_0x300f65(0x1ee)](){const _0x3e7866=a0_0x300f65;return this[_0x3e7866(0x1b7)]||{};}};
1
+ const a0_0x5511f0=a0_0xb7d4;(function(_0x27c699,_0x401867){const _0x37f14e=a0_0xb7d4,_0x1ea274=_0x27c699();while(!![]){try{const _0x2c4427=parseInt(_0x37f14e(0x183))/0x1*(-parseInt(_0x37f14e(0x180))/0x2)+parseInt(_0x37f14e(0x187))/0x3+parseInt(_0x37f14e(0x194))/0x4*(parseInt(_0x37f14e(0x1b9))/0x5)+-parseInt(_0x37f14e(0x18a))/0x6*(-parseInt(_0x37f14e(0x175))/0x7)+-parseInt(_0x37f14e(0x1bb))/0x8+-parseInt(_0x37f14e(0x17f))/0x9*(-parseInt(_0x37f14e(0x195))/0xa)+-parseInt(_0x37f14e(0x17c))/0xb;if(_0x2c4427===_0x401867)break;else _0x1ea274['push'](_0x1ea274['shift']());}catch(_0x304936){_0x1ea274['push'](_0x1ea274['shift']());}}}(a0_0x40d6,0x6e221));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x40d6(){const _0x424e0e=['setAttribute','tText','Enter','4415PCmxJI','editing','654296YPJWAA','is_activity','forEach','includes','updateMultiple','focus','isElement','patchData','render','type','field-change','__seq__','removeAttribute','formConfigSet','isPage','context','save','__dirty__','dataSet','activity','currentData','isNotEmpty','75999MWRvVq','stopPropagation','showAlertPopup','parseBasicFormConfigs','parent_id','map','entries','16319622hRVjWe','parseFormConfigs','properties','9rVZQoa','20MRVOzV','isEmpty','addEventListener','46274fQbKeJ','getBasicFormHtml','text.NOTHING_CHANGED','object','990873hnYiDU','after','keydown','318ksCVbw','detail','validation','call','name','styles','filter','clear','findOne','mandatory','4052sIqVym','6790430LyVUVX','form-field-change','getContextObject','firstUpdated','target','formColumnConfig','pageInitialized','text.check-mandatory','true','Escape','connectedCallback','getAndParseMenuMeta','keys','__origin__','tLabel','activityDataSet','dirtyData','key','form','info','currentTarget','renderRoot','grid_column','fetch','__dirtyfields__','function','record','dispatchEvent','startsWith','isEquals','code-input','column','button'];a0_0x40d6=function(){return _0x424e0e;};return a0_0x40d6();}import{UiUtil}from'../utils/ui-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0xb7d4(_0x2a80e9,_0x387857){const _0x40d623=a0_0x40d6();return a0_0xb7d4=function(_0xb7d466,_0x1863ef){_0xb7d466=_0xb7d466-0x171;let _0x14f42f=_0x40d623[_0xb7d466];return _0x14f42f;},a0_0xb7d4(_0x2a80e9,_0x387857);}export const MetaFormMixin=_0x4b5d1f=>class extends MetaButtonMixin(_0x4b5d1f){static get[a0_0x5511f0(0x18f)](){return MetaApi['getBasicFormStyles']();}static get[a0_0x5511f0(0x17e)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x5511f0(0x1ca)](){const _0x27569f=a0_0x5511f0;return MetaUiUtil[_0x27569f(0x197)](this);}async[a0_0x5511f0(0x19f)](){const _0x4ff76a=a0_0x5511f0;await this[_0x4ff76a(0x1a0)](),this[_0x4ff76a(0x1c1)]&&await this[_0x4ff76a(0x17d)](),this[_0x4ff76a(0x1a4)]&&(this[_0x4ff76a(0x171)]=this[_0x4ff76a(0x1a4)]),!0x0!==this[_0x4ff76a(0x1bc)]||this['parent_id']||(this[_0x4ff76a(0x179)]=_0x4ff76a(0x172)),super[_0x4ff76a(0x19f)]&&await super['connectedCallback'](),this[_0x4ff76a(0x1c1)]&&await this[_0x4ff76a(0x1ac)](),this[_0x4ff76a(0x1aa)][_0x4ff76a(0x182)](_0x4ff76a(0x189),_0x27bd05=>{const _0x444eac=_0x4ff76a;switch(_0x27bd05[_0x444eac(0x1a6)]){case'Esc':case _0x444eac(0x19e):case _0x444eac(0x1b8):this[_0x444eac(0x1c0)](),this['currentTarget']&&this[_0x444eac(0x1a9)][_0x444eac(0x1c7)](_0x444eac(0x1ba)),this[_0x444eac(0x1a9)]=null;}}),this['renderRoot']['addEventListener']('click',_0x4edda2=>{const _0x17bdfd=_0x4ff76a;_0x4edda2[_0x17bdfd(0x176)]();let _0x393f92=_0x4edda2[_0x17bdfd(0x199)];if(this[_0x17bdfd(0x1a9)]&&(this[_0x17bdfd(0x1c0)](),this[_0x17bdfd(0x1a9)]['removeAttribute'](_0x17bdfd(0x1ba))),'OX-GRID-FIELD'!==_0x393f92['tagName']||!_0x393f92[_0x17bdfd(0x1b4)]['record']['editable'])return this[_0x17bdfd(0x1c0)](),void(this['currentTarget']=null);this['currentTarget']=_0x393f92,_0x393f92[_0x17bdfd(0x1b6)]('editing',_0x17bdfd(0x19d));}),this[_0x4ff76a(0x182)](_0x4ff76a(0x1c5),_0x5d60bd=>{const _0x1f9094=_0x4ff76a;var {after:_0xccba33,before:_0x36e888,column:_0x5b7ff8,record:_0x4bad0a,row:_0x5bc163}=_0x5d60bd[_0x1f9094(0x18b)];if(ValueUtil[_0x1f9094(0x1b2)](_0xccba33,_0x36e888))return;var _0xfa6d4f=_0x5b7ff8[_0x1f9094(0x18c)];if(_0xfa6d4f&&_0x1f9094(0x1ae)==typeof _0xfa6d4f&&!_0xfa6d4f[_0x1f9094(0x18d)](this,_0xccba33,_0x36e888,_0x4bad0a,_0x5b7ff8))return;let _0x403bf2=_0x5b7ff8[_0x1f9094(0x18e)];_0x4bad0a[_0x403bf2]=_0xccba33,_0x4bad0a[_0x1f9094(0x1ad)]=_0x4bad0a['__dirtyfields__']||{},_0x4bad0a[_0x1f9094(0x1a2)]=_0x4bad0a[_0x1f9094(0x1a2)]||{},_0x4bad0a[_0x1f9094(0x1ad)][_0x403bf2]={'before':_0x4bad0a['__origin__'][_0x403bf2],'after':_0x4bad0a[_0x403bf2]},ValueUtil[_0x1f9094(0x1b2)](_0x4bad0a[_0x1f9094(0x1ad)][_0x403bf2]['before'],_0x4bad0a['__dirtyfields__'][_0x403bf2][_0x1f9094(0x188)])&&delete _0x4bad0a[_0x1f9094(0x1ad)][_0x403bf2],ValueUtil['isNotEmpty'](_0x4bad0a['__dirtyfields__'])?_0x4bad0a['__dirty__']='M':_0x4bad0a[_0x1f9094(0x1cc)]='',this[_0x1f9094(0x1af)]={..._0x4bad0a},this[_0x1f9094(0x1b0)](new CustomEvent(_0x1f9094(0x196),{'bubbles':!0x0,'composed':!0x0,'detail':_0x5d60bd[_0x1f9094(0x18b)]}));});}async[a0_0x5511f0(0x198)](){const _0x1dd20f=a0_0x5511f0;super[_0x1dd20f(0x198)]&&await super[_0x1dd20f(0x198)]();}async[a0_0x5511f0(0x19b)](){const _0x32b487=a0_0x5511f0;this[_0x32b487(0x1c9)]&&await this[_0x32b487(0x17d)](),super[_0x32b487(0x19b)]&&await super[_0x32b487(0x19b)](),this['isPage']&&await this[_0x32b487(0x1ac)]();}[a0_0x5511f0(0x1c3)](){const _0x5ce0cb=a0_0x5511f0;return MetaApi[_0x5ce0cb(0x184)](this);}[a0_0x5511f0(0x178)](_0x1dd44e){const _0x2953fb=a0_0x5511f0;this[_0x2953fb(0x19a)]=_0x1dd44e[_0x2953fb(0x1ab)],this['formRenderConfig']=_0x1dd44e[_0x2953fb(0x1a7)],_0x1dd44e[_0x2953fb(0x1b5)]=_0x1dd44e[_0x2953fb(0x1b5)][_0x2953fb(0x190)](_0x56a871=>_0x2953fb(0x1cb)==_0x56a871[_0x2953fb(0x18e)]);}async[a0_0x5511f0(0x17d)](){const _0x2acf72=a0_0x5511f0;this[_0x2acf72(0x1c8)]=await MetaApi['parseFormConfigSet'](this);}get['orgData'](){const _0x466645=a0_0x5511f0;return this['removeGarbageData'](this[_0x466645(0x1af)][_0x466645(0x1a2)]);}get[a0_0x5511f0(0x1a5)](){const _0x53a6db=a0_0x5511f0;if(ValueUtil[_0x53a6db(0x181)]((this['record']||{})[_0x53a6db(0x1ad)]))return{};let _0x583557={};return Object[_0x53a6db(0x17b)](this[_0x53a6db(0x1af)][_0x53a6db(0x1ad)])[_0x53a6db(0x17a)](([_0x2fe1c2,_0x2cd82f])=>{0x0==_0x2fe1c2['startsWith']('__')&&(_0x583557[_0x2fe1c2]=_0x2cd82f['after']);}),_0x583557;}get[a0_0x5511f0(0x173)](){const _0x51ba31=a0_0x5511f0;return this['removeGarbageData'](this[_0x51ba31(0x1af)]);}['removeGarbageData'](_0x1b2f14){const _0xe4b9=a0_0x5511f0;let _0x575c68={};if(_0x1b2f14)return Object[_0xe4b9(0x17b)](_0x1b2f14)[_0xe4b9(0x17a)](([_0x1b6690,_0x36d335])=>{const _0x1de9b2=_0xe4b9;0x0==_0x1b6690[_0x1de9b2(0x1b1)]('__')&&(_0x575c68[_0x1b6690]=_0x36d335);}),_0x575c68;}get['patchData'](){const _0x4d66d2=a0_0x5511f0;let _0x29a56c=this[_0x4d66d2(0x1a5)],_0x14dbca=this[_0x4d66d2(0x1af)],_0x5e52e9=(this[_0x4d66d2(0x19a)]||[])['filter'](_0x14d345=>_0x4d66d2(0x1b3)===_0x14d345[_0x4d66d2(0x1c4)])[_0x4d66d2(0x17a)](_0x692cce=>_0x692cce[_0x4d66d2(0x18e)]);if(!ValueUtil[_0x4d66d2(0x181)](_0x29a56c))return ValueUtil[_0x4d66d2(0x174)](_0x14dbca['id'])?(_0x29a56c['id']=_0x14dbca['id'],_0x29a56c['cuFlag']='M'):_0x29a56c['cuFlag']='+',Object[_0x4d66d2(0x1a1)](_0x29a56c)[_0x4d66d2(0x1bd)](_0xe4aea5=>{const _0x5bb879=_0x4d66d2;_0x5bb879(0x186)==typeof _0x29a56c[_0xe4aea5]&&0x0==_0x5e52e9[_0x5bb879(0x1be)](_0xe4aea5)&&(_0x29a56c[_0xe4aea5]={'id':_0x29a56c[_0xe4aea5]['id']});}),[_0x29a56c];}async[a0_0x5511f0(0x1ac)](){const _0x4aefd3=a0_0x5511f0;if(ValueUtil[_0x4aefd3(0x181)](this[_0x4aefd3(0x179)]))return;let _0x2349bd=await this[_0x4aefd3(0x192)](this[_0x4aefd3(0x179)]);_0x2349bd[_0x4aefd3(0x1c6)]=0x1;let _0x7295f8={};Object['assign'](_0x7295f8,_0x2349bd),_0x2349bd[_0x4aefd3(0x1a2)]=_0x7295f8,this[_0x4aefd3(0x1af)]={..._0x2349bd};}async[a0_0x5511f0(0x1cb)](){const _0x2bbd9e=a0_0x5511f0;let _0x5df8f8=this[_0x2bbd9e(0x1c2)];if(ValueUtil[_0x2bbd9e(0x181)](_0x5df8f8))return void MetaApi[_0x2bbd9e(0x177)]('title.info',_0x2bbd9e(0x185));let _0x8f0e6c={};(this['formColumnConfig']||[])[_0x2bbd9e(0x190)](_0x240531=>!0x0===_0x240531[_0x2bbd9e(0x193)])[_0x2bbd9e(0x1bd)](_0xe59f8f=>{const _0x57671c=_0x2bbd9e;_0x8f0e6c[_0xe59f8f[_0x57671c(0x18e)]]=_0xe59f8f['header'];});let _0x282ef0=this[_0x2bbd9e(0x173)];for(let _0x423da7 in _0x8f0e6c)if(void 0x0===_0x282ef0[_0x423da7]||''==_0x282ef0[_0x423da7])return void UiUtil[_0x2bbd9e(0x177)](_0x2bbd9e(0x19c),TermsUtil[_0x2bbd9e(0x1b7)]('check-mandatory-field',{'x':TermsUtil[_0x2bbd9e(0x1a3)](_0x8f0e6c[_0x423da7])}),_0x2bbd9e(0x1a8),'confirm');let _0x9a3615=await this[_0x2bbd9e(0x1bf)](_0x5df8f8);return _0x9a3615&&await this['fetch'](),_0x9a3615;}async[a0_0x5511f0(0x191)](){const _0x41abb2=a0_0x5511f0;this['record']&&(this[_0x41abb2(0x1af)]={});}['getData'](){return this['currentData']||{};}};
@@ -1 +1 @@
1
- const a0_0x7e61d5=a0_0x5f29;(function(_0x17f543,_0x336ab5){const _0x1cbe75=a0_0x5f29,_0x4d6893=_0x17f543();while(!![]){try{const _0x356649=parseInt(_0x1cbe75(0xe8))/0x1+parseInt(_0x1cbe75(0xee))/0x2*(parseInt(_0x1cbe75(0x10f))/0x3)+parseInt(_0x1cbe75(0x122))/0x4+parseInt(_0x1cbe75(0x102))/0x5*(parseInt(_0x1cbe75(0x10d))/0x6)+-parseInt(_0x1cbe75(0xe1))/0x7+parseInt(_0x1cbe75(0xeb))/0x8+parseInt(_0x1cbe75(0xf1))/0x9*(-parseInt(_0x1cbe75(0xe3))/0xa);if(_0x356649===_0x336ab5)break;else _0x4d6893['push'](_0x4d6893['shift']());}catch(_0x4ea85e){_0x4d6893['push'](_0x4d6893['shift']());}}}(a0_0x1909,0x60d46));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';function a0_0x1909(){const _0x4d52b6=['import','main','getContextObject','searchConfig','ox-filters-form-base','getParams','703672unLyrC','menuInfo','querySelector','findOne','gristId','exportable','beforeFetch','shadowRoot','actions','isPage','ox-grist','searchFieldValues','columns','grid','forEach','getSelectedIdList','4330368XQJmYG','filter','539570szEeWP','properties','gridConfig','activityDataSet','search','327119JJXnsO','type','push','3362392hdaYOa','getBasicGristTabStyles','filterFormId','2pcFUcA','searchFields','importable','99YGRZbQ','detailElement','find','parseGridConfigSet','render','gridEmphasized','connectedCallback','parse','renderRoot','styles','pageInitialized','map','operator','header','gristConfigSet','firstUpdated','record','115660PMQOcu','options','#detail','grist','exportableData','grid_column','meta-tab-element','getGristTabHtml','getData','gridColumnConfig','value','168eICldT','context','113199Vbizqp','updateMultiple','isElement','fetch','name','title','stringify','startsWith','isNotEmpty','keys','parseGristConfigs','records','delete'];a0_0x1909=function(){return _0x4d52b6;};return a0_0x1909();}import{ValueUtil}from'../utils/value-util';function a0_0x5f29(_0x19468e,_0x542ba7){const _0x190909=a0_0x1909();return a0_0x5f29=function(_0x5f29af,_0x3cdd55){_0x5f29af=_0x5f29af-0xd9;let _0x60a06b=_0x190909[_0x5f29af];return _0x60a06b;},a0_0x5f29(_0x19468e,_0x542ba7);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x19b6f1=>class extends MetaButtonMixin(_0x19b6f1){static get[a0_0x7e61d5(0xfa)](){const _0x163aa6=a0_0x7e61d5;return MetaApi[_0x163aa6(0xec)]();}static get[a0_0x7e61d5(0xe4)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x7e61d5(0x105)](){const _0x1e3640=a0_0x7e61d5;return this[_0x1e3640(0xf9)]['querySelector'](this[_0x1e3640(0x126)]);}get['filterForm'](){const _0x3d2f6e=a0_0x7e61d5;return this[_0x3d2f6e(0x129)]?.['querySelector'](this[_0x3d2f6e(0xed)]);}get[a0_0x7e61d5(0xf2)](){const _0x20c709=a0_0x7e61d5;return this[_0x20c709(0x129)][_0x20c709(0x124)](_0x20c709(0x104));}get[a0_0x7e61d5(0x10e)](){const _0x26071e=a0_0x7e61d5;let _0x57d9c9=MetaUiUtil[_0x26071e(0x11e)](this);return _0x57d9c9[_0x26071e(0xd9)]&&delete _0x57d9c9['actions'],_0x57d9c9[_0x26071e(0x127)]&&delete _0x57d9c9[_0x26071e(0x127)],_0x57d9c9[_0x26071e(0xf0)]&&delete _0x57d9c9[_0x26071e(0xf0)],_0x57d9c9;}async[a0_0x7e61d5(0xf7)](){const _0x4c79c1=a0_0x7e61d5;this[_0x4c79c1(0x126)]=_0x4c79c1(0xdb),this[_0x4c79c1(0xed)]=_0x4c79c1(0x120),await this['getAndParseMenuMeta'](),this[_0x4c79c1(0x111)]&&await this[_0x4c79c1(0x119)](),this[_0x4c79c1(0xe6)]&&(this['dataSet']=(this[_0x4c79c1(0xe6)]||{})[_0x4c79c1(0x11d)]),super[_0x4c79c1(0xf7)]&&await super[_0x4c79c1(0xf7)]();}async['firstUpdated'](){const _0x11b1af=a0_0x7e61d5;super['firstUpdated']&&await super[_0x11b1af(0x100)]();}async[a0_0x7e61d5(0xfb)](){const _0x414d5c=a0_0x7e61d5;this[_0x414d5c(0xda)]&&await this[_0x414d5c(0x119)](),super['pageInitialized']&&await super[_0x414d5c(0xfb)]();}[a0_0x7e61d5(0xf5)](){const _0x3ba267=a0_0x7e61d5;return MetaApi[_0x3ba267(0x109)](this);}['parseBasicGridConfigs'](_0x39fa53){const _0x4a214d=a0_0x7e61d5;this[_0x4a214d(0xe5)]=_0x39fa53[_0x4a214d(0xde)],this[_0x4a214d(0x10b)]=_0x39fa53[_0x4a214d(0x107)],this[_0x4a214d(0x11f)]=_0x39fa53[_0x4a214d(0xe7)],this[_0x4a214d(0xf6)]=_0x39fa53[_0x4a214d(0xf6)];}async[a0_0x7e61d5(0x119)](){const _0x454d53=a0_0x7e61d5;this['gristConfigSet']=await MetaApi[_0x454d53(0xf4)](this),this['useMasterFilterForm']=!0x0===this['useFilterForm'],this['useFilterForm']=!0x1,this[_0x454d53(0xdc)]=[],this[_0x454d53(0xef)]=this[_0x454d53(0xff)][_0x454d53(0xdd)][_0x454d53(0xe2)](_0x3c3699=>_0x3c3699[_0x454d53(0xe2)])[_0x454d53(0xfc)](_0x275334=>{const _0x51d753=_0x454d53;let _0xe4ce2a={'name':_0x275334[_0x51d753(0x113)],'type':'search'===_0x275334[_0x51d753(0xe2)][_0x51d753(0xfd)]?'search':_0x275334[_0x51d753(0xe9)],'label':_0x275334[_0x51d753(0xfe)],'operator':_0x275334[_0x51d753(0xe2)][_0x51d753(0xfd)]?_0x275334[_0x51d753(0xe2)]['operator']:'eq'};return _0x275334[_0x51d753(0xe2)][_0x51d753(0x103)]&&(_0xe4ce2a[_0x51d753(0x103)]=_0x275334[_0x51d753(0xe2)][_0x51d753(0x103)]),_0x275334[_0x51d753(0x101)][_0x51d753(0x103)]&&(_0xe4ce2a[_0x51d753(0x103)]=_0x275334['record']['options']),_0x275334[_0x51d753(0xe2)][_0x51d753(0x10c)]&&this[_0x51d753(0xdc)][_0x51d753(0xea)]({'name':_0xe4ce2a[_0x51d753(0x113)],'operator':_0xe4ce2a[_0x51d753(0xfd)],'value':_0x275334[_0x51d753(0xe2)]['value']}),delete _0x275334[_0x51d753(0xe2)],_0xe4ce2a;});}async['fetch'](){const _0x2b85a9=a0_0x7e61d5;await this[_0x2b85a9(0x105)][_0x2b85a9(0x112)]();}async[a0_0x7e61d5(0x128)]({page:_0x1579d4=0x0,limit:_0x30f7c4=0x0,sortings:_0x34c7e0=[],filters:_0x314d3d=[]}){const _0x10a39b=a0_0x7e61d5;let _0x54e9b6=this[_0x10a39b(0xf9)][_0x10a39b(0x124)](_0x10a39b(0x108));return await _0x54e9b6['clear'](),!0x0;}async['save'](){const _0x352a07=a0_0x7e61d5;let _0x192004=MetaApi['patchesForUpdateMultiple'](this['grist']);!!ValueUtil[_0x352a07(0x117)](_0x192004)&&await this[_0x352a07(0x110)](_0x192004)&&this[_0x352a07(0x112)]();}async[a0_0x7e61d5(0xf3)](){const _0x4b63d3=a0_0x7e61d5;let _0xbf9cf6=MetaApi[_0x4b63d3(0xe0)](this[_0x4b63d3(0x105)],!0x0);return ValueUtil[_0x4b63d3(0x117)](_0xbf9cf6)?await this[_0x4b63d3(0x125)](_0xbf9cf6[0x0]):{};}async[a0_0x7e61d5(0x11b)](){const _0xe015e8=a0_0x7e61d5;let _0x159ef4=MetaApi[_0xe015e8(0xe0)](this[_0xe015e8(0x105)],!0x0);!!ValueUtil['isNotEmpty'](_0x159ef4)&&await this['deleteByIds'](_0x159ef4)&&this[_0xe015e8(0x112)]();}async['export'](){const _0x47ece5=a0_0x7e61d5;let _0x550f8f=TermsUtil['tTitle'](ValueUtil[_0x47ece5(0x121)](this[_0x47ece5(0x123)],_0x47ece5(0x114)));return await MetaApi[_0x47ece5(0x106)](this[_0x47ece5(0x111)],_0x550f8f,this['grist']);}async[a0_0x7e61d5(0x11c)](){}[a0_0x7e61d5(0x10a)](){const _0x52d6e1=a0_0x7e61d5;let _0x1ae195=this['grist']['___data'][_0x52d6e1(0x11a)];return _0x1ae195=JSON[_0x52d6e1(0xf8)](JSON[_0x52d6e1(0x115)](_0x1ae195)),_0x1ae195[_0x52d6e1(0xdf)](_0x2a96c7=>{const _0x343cd2=_0x52d6e1;Object[_0x343cd2(0x118)](_0x2a96c7)[_0x343cd2(0xdf)](_0x4a5ec4=>{const _0x5ec5a1=_0x343cd2;_0x4a5ec4[_0x5ec5a1(0x116)]('__')&&delete _0x2a96c7[_0x4a5ec4];});}),{'main':_0x1ae195,'detail':this[_0x52d6e1(0xf9)][_0x52d6e1(0x124)](_0x52d6e1(0x108))[_0x52d6e1(0x10a)]()};}};
1
+ function a0_0x3eac(_0x31db49,_0x155564){const _0x5d5042=a0_0x5d50();return a0_0x3eac=function(_0x3eac38,_0x3d9c22){_0x3eac38=_0x3eac38-0x129;let _0x4f0e21=_0x5d5042[_0x3eac38];return _0x4f0e21;},a0_0x3eac(_0x31db49,_0x155564);}const a0_0x41ce54=a0_0x3eac;(function(_0x5d3a5b,_0x1e87db){const _0x2dfa0f=a0_0x3eac,_0x1257b6=_0x5d3a5b();while(!![]){try{const _0xfc50ed=parseInt(_0x2dfa0f(0x172))/0x1*(parseInt(_0x2dfa0f(0x132))/0x2)+-parseInt(_0x2dfa0f(0x14c))/0x3+-parseInt(_0x2dfa0f(0x14a))/0x4+parseInt(_0x2dfa0f(0x167))/0x5*(-parseInt(_0x2dfa0f(0x12a))/0x6)+parseInt(_0x2dfa0f(0x138))/0x7*(-parseInt(_0x2dfa0f(0x13a))/0x8)+-parseInt(_0x2dfa0f(0x12c))/0x9+-parseInt(_0x2dfa0f(0x16c))/0xa*(-parseInt(_0x2dfa0f(0x161))/0xb);if(_0xfc50ed===_0x1e87db)break;else _0x1257b6['push'](_0x1257b6['shift']());}catch(_0x5f3d0b){_0x1257b6['push'](_0x1257b6['shift']());}}}(a0_0x5d50,0x4db8d));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x5d50(){const _0x458fd5=['stringify','2950722mWqKfy','search','records','columns','searchFieldValues','actions','340heRSXe','title','findOne','getGristTabHtml','clear','parse','115941PKiUwW','firstUpdated','232Jxmdcd','operator','gridColumnConfig','connectedCallback','import','renderRoot','importable','getData','getBasicGristTabStyles','useFilterForm','isPage','header','grid','ox-filters-form-base','gridEmphasized','patchesForUpdateMultiple','35072cNFcdn','startsWith','419652CigVCn','pageInitialized','deleteByIds','activityDataSet','record','getSelectedIdList','fetch','properties','exportable','#detail','parseGristConfigs','forEach','styles','options','querySelector','filter','value','grid_column','gristId','isElement','meta-tab-element','11NAlYgW','searchFields','export','filterFormId','map','___data','235uUpbrp','filterForm','grist','useMasterFilterForm','parseBasicGridConfigs','14939860gvPqBI','getAndParseMenuMeta','main','name','isNotEmpty','beforeFetch','933FYXaAV','shadowRoot','48180npigXR'];a0_0x5d50=function(){return _0x458fd5;};return a0_0x5d50();}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=_0x3e01a8=>class extends MetaButtonMixin(_0x3e01a8){static get[a0_0x41ce54(0x158)](){const _0x3d0abe=a0_0x41ce54;return MetaApi[_0x3d0abe(0x142)]();}static get[a0_0x41ce54(0x153)](){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_0x41ce54(0x169)](){const _0x1cdcc8=a0_0x41ce54;return this[_0x1cdcc8(0x13f)][_0x1cdcc8(0x15a)](this[_0x1cdcc8(0x15e)]);}get[a0_0x41ce54(0x168)](){const _0x162a0=a0_0x41ce54;return this[_0x162a0(0x129)]?.['querySelector'](this[_0x162a0(0x164)]);}get['detailElement'](){const _0x2d538d=a0_0x41ce54;return this[_0x2d538d(0x129)][_0x2d538d(0x15a)](_0x2d538d(0x155));}get['context'](){const _0x174a5c=a0_0x41ce54;let _0x5bd87f=MetaUiUtil['getContextObject'](this);return _0x5bd87f[_0x174a5c(0x131)]&&delete _0x5bd87f[_0x174a5c(0x131)],_0x5bd87f[_0x174a5c(0x154)]&&delete _0x5bd87f[_0x174a5c(0x154)],_0x5bd87f['importable']&&delete _0x5bd87f[_0x174a5c(0x140)],_0x5bd87f;}async[a0_0x41ce54(0x13d)](){const _0x487e2a=a0_0x41ce54;this[_0x487e2a(0x15e)]='ox-grist',this[_0x487e2a(0x164)]=_0x487e2a(0x147),await this[_0x487e2a(0x16d)](),this['isElement']&&await this[_0x487e2a(0x156)](),this[_0x487e2a(0x14f)]&&(this['dataSet']=(this[_0x487e2a(0x14f)]||{})[_0x487e2a(0x16e)]),super[_0x487e2a(0x13d)]&&await super[_0x487e2a(0x13d)]();}async[a0_0x41ce54(0x139)](){const _0x2a9568=a0_0x41ce54;super[_0x2a9568(0x139)]&&await super['firstUpdated']();}async[a0_0x41ce54(0x14d)](){const _0x494f79=a0_0x41ce54;this[_0x494f79(0x144)]&&await this[_0x494f79(0x156)](),super[_0x494f79(0x14d)]&&await super[_0x494f79(0x14d)]();}['render'](){const _0x5365b4=a0_0x41ce54;return MetaApi[_0x5365b4(0x135)](this);}[a0_0x41ce54(0x16b)](_0x279f42){const _0x368f27=a0_0x41ce54;this['gridConfig']=_0x279f42[_0x368f27(0x146)],this[_0x368f27(0x13c)]=_0x279f42[_0x368f27(0x15d)],this['searchConfig']=_0x279f42[_0x368f27(0x12d)],this[_0x368f27(0x148)]=_0x279f42[_0x368f27(0x148)];}async[a0_0x41ce54(0x156)](){const _0x452e27=a0_0x41ce54;this['gristConfigSet']=await MetaApi['parseGridConfigSet'](this),this[_0x452e27(0x16a)]=!0x0===this[_0x452e27(0x143)],this['useFilterForm']=!0x1,this[_0x452e27(0x130)]=[],this[_0x452e27(0x162)]=this['gristConfigSet'][_0x452e27(0x12f)][_0x452e27(0x15b)](_0x11b2f1=>_0x11b2f1[_0x452e27(0x15b)])[_0x452e27(0x165)](_0x149a5b=>{const _0x11c235=_0x452e27;let _0x482ceb={'name':_0x149a5b[_0x11c235(0x16f)],'type':_0x11c235(0x12d)===_0x149a5b[_0x11c235(0x15b)][_0x11c235(0x13b)]?_0x11c235(0x12d):_0x149a5b['type'],'label':_0x149a5b[_0x11c235(0x145)],'operator':_0x149a5b[_0x11c235(0x15b)][_0x11c235(0x13b)]?_0x149a5b[_0x11c235(0x15b)]['operator']:'eq'};return _0x149a5b[_0x11c235(0x15b)][_0x11c235(0x159)]&&(_0x482ceb['options']=_0x149a5b['filter'][_0x11c235(0x159)]),_0x149a5b[_0x11c235(0x150)][_0x11c235(0x159)]&&(_0x482ceb['options']=_0x149a5b[_0x11c235(0x150)][_0x11c235(0x159)]),_0x149a5b[_0x11c235(0x15b)][_0x11c235(0x15c)]&&this[_0x11c235(0x130)]['push']({'name':_0x482ceb[_0x11c235(0x16f)],'operator':_0x482ceb[_0x11c235(0x13b)],'value':_0x149a5b[_0x11c235(0x15b)]['value']}),delete _0x149a5b['filter'],_0x482ceb;});}async[a0_0x41ce54(0x152)](){const _0x206a2b=a0_0x41ce54;await this[_0x206a2b(0x169)][_0x206a2b(0x152)]();}async[a0_0x41ce54(0x171)]({page:_0x39bb61=0x0,limit:_0x48a9d2=0x0,sortings:_0x2013b9=[],filters:_0x510191=[]}){const _0x7f3d5f=a0_0x41ce54;let _0x530467=this[_0x7f3d5f(0x13f)][_0x7f3d5f(0x15a)](_0x7f3d5f(0x160));return await _0x530467[_0x7f3d5f(0x136)](),!0x0;}async['save'](){const _0x412737=a0_0x41ce54;let _0x3649b4=MetaApi[_0x412737(0x149)](this['grist']);!!ValueUtil[_0x412737(0x170)](_0x3649b4)&&await this['updateMultiple'](_0x3649b4)&&this[_0x412737(0x152)]();}async['find'](){const _0x547596=a0_0x41ce54;let _0x3a44b9=MetaApi[_0x547596(0x151)](this[_0x547596(0x169)],!0x0);return ValueUtil['isNotEmpty'](_0x3a44b9)?await this[_0x547596(0x134)](_0x3a44b9[0x0]):{};}async['delete'](){const _0x302ff5=a0_0x41ce54;let _0x1b38b4=MetaApi[_0x302ff5(0x151)](this[_0x302ff5(0x169)],!0x0);!!ValueUtil['isNotEmpty'](_0x1b38b4)&&await this[_0x302ff5(0x14e)](_0x1b38b4)&&this[_0x302ff5(0x152)]();}async[a0_0x41ce54(0x163)](){const _0x33ce16=a0_0x41ce54;let _0x9c1ed8=TermsUtil['tTitle'](ValueUtil['getParams'](this['menuInfo'],_0x33ce16(0x133)));return await MetaApi['exportableData'](this[_0x33ce16(0x15f)],_0x9c1ed8,this[_0x33ce16(0x169)]);}async[a0_0x41ce54(0x13e)](){}[a0_0x41ce54(0x141)](){const _0x156d10=a0_0x41ce54;let _0x296637=this[_0x156d10(0x169)][_0x156d10(0x166)][_0x156d10(0x12e)];return _0x296637=JSON[_0x156d10(0x137)](JSON[_0x156d10(0x12b)](_0x296637)),_0x296637[_0x156d10(0x157)](_0x4c3167=>{Object['keys'](_0x4c3167)['forEach'](_0x14b22e=>{const _0x74b0e3=a0_0x3eac;_0x14b22e[_0x74b0e3(0x14b)]('__')&&delete _0x4c3167[_0x14b22e];});}),{'main':_0x296637,'detail':this['renderRoot']['querySelector'](_0x156d10(0x160))[_0x156d10(0x141)]()};}};
@@ -1 +1 @@
1
- const a0_0x4c43fa=a0_0x2de2;(function(_0x254ff2,_0x46a19f){const _0x3aba60=a0_0x2de2,_0x31fa86=_0x254ff2();while(!![]){try{const _0x569b86=-parseInt(_0x3aba60(0x1d0))/0x1+-parseInt(_0x3aba60(0x1ce))/0x2*(-parseInt(_0x3aba60(0x1c8))/0x3)+parseInt(_0x3aba60(0x1c5))/0x4*(-parseInt(_0x3aba60(0x1d6))/0x5)+parseInt(_0x3aba60(0x1d9))/0x6*(-parseInt(_0x3aba60(0x1b2))/0x7)+-parseInt(_0x3aba60(0x1b8))/0x8*(parseInt(_0x3aba60(0x1df))/0x9)+-parseInt(_0x3aba60(0x1da))/0xa+parseInt(_0x3aba60(0x1d8))/0xb*(parseInt(_0x3aba60(0x1e9))/0xc);if(_0x569b86===_0x46a19f)break;else _0x31fa86['push'](_0x31fa86['shift']());}catch(_0x2979c9){_0x31fa86['push'](_0x31fa86['shift']());}}}(a0_0x33fd,0x8126a));import{html}from'lit';function a0_0x33fd(){const _0x2df23e=['436929SNHrTg','getData','options','grid','operator','getMainTabHtml','724705Cnspay','gridColumnConfig','3246419mafYIG','54KuiWFC','9857220xuHFSf','header','exportable','useButtonImport','filterForm','9NiHPrQ','properties','fetch','activityDataSet','getBasicMainTabStyles','ox-filters-form-base','gristId','grist','beforeFetch','importable','108dmfXMz','search','useMasterFilterForm','filterFormId','parseGridConfigSet','parseBasicGridConfigs','146097QNlHoT','name','searchFields','context','parseGristConfigs','columns','7755080bXZqEq','shadowRoot','clear','isElement','gridEmphasized','connectedCallback','querySelector','render','grid_column','searchFieldValues','push','getContextObject','gristConfigSet','16dFgxTA','isPage','filter','387180qtgLBe','styles','pageInitialized','useButtonExport','masterElement','map','16uyahiA','firstUpdated'];a0_0x33fd=function(){return _0x2df23e;};return a0_0x33fd();}function a0_0x2de2(_0x111263,_0x578d35){const _0x33fd8c=a0_0x33fd();return a0_0x2de2=function(_0x2de23c,_0x241bc1){_0x2de23c=_0x2de23c-0x1b0;let _0x2f643d=_0x33fd8c[_0x2de23c];return _0x2f643d;},a0_0x2de2(_0x111263,_0x578d35);}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x29b2f0=>class extends MetaButtonMixin(_0x29b2f0){static get[a0_0x4c43fa(0x1c9)](){const _0x16ce86=a0_0x4c43fa;return MetaApi[_0x16ce86(0x1e3)]();}static get[a0_0x4c43fa(0x1e0)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x4c43fa(0x1e6)](){return this['masterElement']['getMainGrist']();}get[a0_0x4c43fa(0x1de)](){const _0x344281=a0_0x4c43fa;return this[_0x344281(0x1b9)]?.[_0x344281(0x1be)](this['filterFormId']);}get[a0_0x4c43fa(0x1b5)](){const _0x50a1a0=a0_0x4c43fa;let _0x5dde34=MetaUiUtil[_0x50a1a0(0x1c3)](this);return _0x5dde34['actions']&&delete _0x5dde34['actions'],_0x5dde34[_0x50a1a0(0x1dc)]&&delete _0x5dde34[_0x50a1a0(0x1dc)],_0x5dde34[_0x50a1a0(0x1e8)]&&delete _0x5dde34[_0x50a1a0(0x1e8)],_0x5dde34;}async[a0_0x4c43fa(0x1bd)](){const _0x35d25e=a0_0x4c43fa;this[_0x35d25e(0x1e5)]='ox-grist',this[_0x35d25e(0x1ec)]=_0x35d25e(0x1e4),await this['getAndParseMenuMeta'](),this[_0x35d25e(0x1bb)]&&await this[_0x35d25e(0x1b6)](),this[_0x35d25e(0x1e2)]&&(this['dataSet']=(this['activityDataSet']||{})['main']),super['connectedCallback']&&await super['connectedCallback']();}async[a0_0x4c43fa(0x1cf)](){const _0xa52ecf=a0_0x4c43fa;super[_0xa52ecf(0x1cf)]&&await super[_0xa52ecf(0x1cf)]();}async[a0_0x4c43fa(0x1ca)](){const _0xbe05df=a0_0x4c43fa;this[_0xbe05df(0x1c6)]&&await this['parseGristConfigs'](),super['pageInitialized']&&await super[_0xbe05df(0x1ca)]();}[a0_0x4c43fa(0x1bf)](){const _0x36bec2=a0_0x4c43fa;return MetaApi[_0x36bec2(0x1d5)](this);}[a0_0x4c43fa(0x1b1)](_0xc692d7){const _0x488775=a0_0x4c43fa;this['gridConfig']=_0xc692d7[_0x488775(0x1d3)],this[_0x488775(0x1d7)]=_0xc692d7[_0x488775(0x1c0)],this['searchConfig']=_0xc692d7['search'],this[_0x488775(0x1bc)]=_0xc692d7[_0x488775(0x1bc)];}async[a0_0x4c43fa(0x1b6)](){const _0x20f691=a0_0x4c43fa;this[_0x20f691(0x1c4)]=await MetaApi[_0x20f691(0x1b0)](this),this[_0x20f691(0x1eb)]=!0x0===this['useFilterForm'],this['useFilterForm']=!0x1,this['buttonConfig']=void 0x0,this[_0x20f691(0x1cb)]=!0x1,this[_0x20f691(0x1dd)]=!0x1,this[_0x20f691(0x1c1)]=[],this[_0x20f691(0x1b4)]=this[_0x20f691(0x1c4)][_0x20f691(0x1b7)][_0x20f691(0x1c7)](_0x446696=>_0x446696[_0x20f691(0x1c7)])[_0x20f691(0x1cd)](_0x522aaa=>{const _0xa7f015=_0x20f691;let _0x3ca74a={'name':_0x522aaa[_0xa7f015(0x1b3)],'type':_0xa7f015(0x1ea)===_0x522aaa['filter']['operator']?'search':_0x522aaa['type'],'label':_0x522aaa[_0xa7f015(0x1db)],'operator':_0x522aaa[_0xa7f015(0x1c7)]['operator']?_0x522aaa['filter'][_0xa7f015(0x1d4)]:'eq'};return _0x522aaa[_0xa7f015(0x1c7)]['options']&&(_0x3ca74a[_0xa7f015(0x1d2)]=_0x522aaa['filter']['options']),_0x522aaa['record']['options']&&(_0x3ca74a['options']=_0x522aaa['record'][_0xa7f015(0x1d2)]),_0x522aaa[_0xa7f015(0x1c7)]['value']&&this[_0xa7f015(0x1c1)][_0xa7f015(0x1c2)]({'name':_0x3ca74a[_0xa7f015(0x1b3)],'operator':_0x3ca74a[_0xa7f015(0x1d4)],'value':_0x522aaa[_0xa7f015(0x1c7)]['value']}),delete _0x522aaa[_0xa7f015(0x1c7)],_0x3ca74a;});}async[a0_0x4c43fa(0x1e1)](){const _0x36cee3=a0_0x4c43fa;await this[_0x36cee3(0x1e6)]['fetch']();}async[a0_0x4c43fa(0x1e7)]({page:_0x5f4291=0x0,limit:_0x530a42=0x0,sortings:_0x26f651=[],filters:_0x5b70ae=[]}){const _0x102431=a0_0x4c43fa;return this['masterElement']&&this[_0x102431(0x1cc)][_0x102431(0x1ba)]&&await this[_0x102431(0x1cc)][_0x102431(0x1ba)](),!0x0;}[a0_0x4c43fa(0x1d1)](){return{'master':this['masterElement']['getData']()};}};
1
+ const a0_0x1af1c3=a0_0x26e3;(function(_0x18335d,_0x34836b){const _0x23b91d=a0_0x26e3,_0xa8ae39=_0x18335d();while(!![]){try{const _0x42c0d0=parseInt(_0x23b91d(0x10a))/0x1*(parseInt(_0x23b91d(0x127))/0x2)+parseInt(_0x23b91d(0x128))/0x3+parseInt(_0x23b91d(0x129))/0x4*(-parseInt(_0x23b91d(0x11d))/0x5)+-parseInt(_0x23b91d(0x135))/0x6*(-parseInt(_0x23b91d(0x118))/0x7)+-parseInt(_0x23b91d(0x124))/0x8+-parseInt(_0x23b91d(0x107))/0x9+parseInt(_0x23b91d(0x119))/0xa;if(_0x42c0d0===_0x34836b)break;else _0xa8ae39['push'](_0xa8ae39['shift']());}catch(_0x55162c){_0xa8ae39['push'](_0xa8ae39['shift']());}}}(a0_0x2985,0x21886));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';function a0_0x26e3(_0x2d1eb3,_0x533919){const _0x298541=a0_0x2985();return a0_0x26e3=function(_0x26e39b,_0x3f60aa){_0x26e39b=_0x26e39b-0xfe;let _0x4c773d=_0x298541[_0x26e39b];return _0x4c773d;},a0_0x26e3(_0x2d1eb3,_0x533919);}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';function a0_0x2985(){const _0xa4d471=['clear','isPage','378HyCfKl','1950420VEpzFs','getContextObject','options','gristId','19145yNhJSZ','getData','name','type','record','importable','columns','1754272JjtTuu','render','gridColumnConfig','424854DNrXaD','421638DuvVMl','204KmkMCd','grist','operator','shadowRoot','context','searchFields','masterElement','getBasicMainTabStyles','gridConfig','main','useMasterFilterForm','searchFieldValues','4824nkdbnk','ox-grist','connectedCallback','exportable','isElement','dataSet','search','parseBasicGridConfigs','value','actions','filter','firstUpdated','useButtonExport','fetch','gristConfigSet','querySelector','355662mzpzAj','activityDataSet','getMainGrist','1HPQQwG','filterFormId','parseGristConfigs','grid_column','searchConfig','styles','gridEmphasized','pageInitialized','beforeFetch','getMainTabHtml','useButtonImport','ox-filters-form-base'];a0_0x2985=function(){return _0xa4d471;};return a0_0x2985();}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x3ddf56=>class extends MetaButtonMixin(_0x3ddf56){static get[a0_0x1af1c3(0x10f)](){const _0x4a99d8=a0_0x1af1c3;return MetaApi[_0x4a99d8(0x130)]();}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_0x1af1c3(0x12a)](){const _0x2bc1d1=a0_0x1af1c3;return this[_0x2bc1d1(0x12f)][_0x2bc1d1(0x109)]();}get['filterForm'](){const _0x3de688=a0_0x1af1c3;return this[_0x3de688(0x12c)]?.[_0x3de688(0x106)](this['filterFormId']);}get[a0_0x1af1c3(0x12d)](){const _0x3fec13=a0_0x1af1c3;let _0x4cd2c2=MetaUiUtil[_0x3fec13(0x11a)](this);return _0x4cd2c2['actions']&&delete _0x4cd2c2[_0x3fec13(0x100)],_0x4cd2c2[_0x3fec13(0x138)]&&delete _0x4cd2c2[_0x3fec13(0x138)],_0x4cd2c2[_0x3fec13(0x122)]&&delete _0x4cd2c2[_0x3fec13(0x122)],_0x4cd2c2;}async[a0_0x1af1c3(0x137)](){const _0x3ccf46=a0_0x1af1c3;this[_0x3ccf46(0x11c)]=_0x3ccf46(0x136),this[_0x3ccf46(0x10b)]=_0x3ccf46(0x115),await this['getAndParseMenuMeta'](),this[_0x3ccf46(0x139)]&&await this[_0x3ccf46(0x10c)](),this[_0x3ccf46(0x108)]&&(this[_0x3ccf46(0x13a)]=(this[_0x3ccf46(0x108)]||{})[_0x3ccf46(0x132)]),super[_0x3ccf46(0x137)]&&await super[_0x3ccf46(0x137)]();}async[a0_0x1af1c3(0x102)](){const _0x14a4ac=a0_0x1af1c3;super[_0x14a4ac(0x102)]&&await super[_0x14a4ac(0x102)]();}async[a0_0x1af1c3(0x111)](){const _0xfb296f=a0_0x1af1c3;this[_0xfb296f(0x117)]&&await this[_0xfb296f(0x10c)](),super[_0xfb296f(0x111)]&&await super[_0xfb296f(0x111)]();}[a0_0x1af1c3(0x125)](){const _0x14bd86=a0_0x1af1c3;return MetaApi[_0x14bd86(0x113)](this);}[a0_0x1af1c3(0xfe)](_0x25f619){const _0x4d82fd=a0_0x1af1c3;this[_0x4d82fd(0x131)]=_0x25f619['grid'],this[_0x4d82fd(0x126)]=_0x25f619[_0x4d82fd(0x10d)],this[_0x4d82fd(0x10e)]=_0x25f619[_0x4d82fd(0x13b)],this[_0x4d82fd(0x110)]=_0x25f619[_0x4d82fd(0x110)];}async[a0_0x1af1c3(0x10c)](){const _0x2113fb=a0_0x1af1c3;this[_0x2113fb(0x105)]=await MetaApi['parseGridConfigSet'](this),this[_0x2113fb(0x133)]=!0x0===this['useFilterForm'],this['useFilterForm']=!0x1,this['buttonConfig']=void 0x0,this[_0x2113fb(0x103)]=!0x1,this[_0x2113fb(0x114)]=!0x1,this[_0x2113fb(0x134)]=[],this[_0x2113fb(0x12e)]=this[_0x2113fb(0x105)][_0x2113fb(0x123)][_0x2113fb(0x101)](_0x13e4c0=>_0x13e4c0['filter'])['map'](_0x409179=>{const _0x293845=_0x2113fb;let _0x5dffd3={'name':_0x409179[_0x293845(0x11f)],'type':'search'===_0x409179[_0x293845(0x101)]['operator']?'search':_0x409179[_0x293845(0x120)],'label':_0x409179['header'],'operator':_0x409179[_0x293845(0x101)][_0x293845(0x12b)]?_0x409179[_0x293845(0x101)][_0x293845(0x12b)]:'eq'};return _0x409179[_0x293845(0x101)][_0x293845(0x11b)]&&(_0x5dffd3[_0x293845(0x11b)]=_0x409179[_0x293845(0x101)]['options']),_0x409179[_0x293845(0x121)][_0x293845(0x11b)]&&(_0x5dffd3[_0x293845(0x11b)]=_0x409179[_0x293845(0x121)]['options']),_0x409179[_0x293845(0x101)][_0x293845(0xff)]&&this[_0x293845(0x134)]['push']({'name':_0x5dffd3['name'],'operator':_0x5dffd3[_0x293845(0x12b)],'value':_0x409179['filter'][_0x293845(0xff)]}),delete _0x409179[_0x293845(0x101)],_0x5dffd3;});}async[a0_0x1af1c3(0x104)](){const _0x52123d=a0_0x1af1c3;await this['grist'][_0x52123d(0x104)]();}async[a0_0x1af1c3(0x112)]({page:_0x419069=0x0,limit:_0xd1360a=0x0,sortings:_0x4f25cf=[],filters:_0x519cd9=[]}){const _0x15b52b=a0_0x1af1c3;return this[_0x15b52b(0x12f)]&&this[_0x15b52b(0x12f)][_0x15b52b(0x116)]&&await this[_0x15b52b(0x12f)]['clear'](),!0x0;}['getData'](){const _0x394abb=a0_0x1af1c3;return{'master':this[_0x394abb(0x12f)][_0x394abb(0x11e)]()};}};
@@ -1 +1 @@
1
- const a0_0x202254=a0_0x332f;(function(_0x43d5c6,_0x2ac519){const _0x212f2d=a0_0x332f,_0x5590c4=_0x43d5c6();while(!![]){try{const _0x4c8e36=-parseInt(_0x212f2d(0x164))/0x1*(parseInt(_0x212f2d(0x150))/0x2)+parseInt(_0x212f2d(0x15f))/0x3*(-parseInt(_0x212f2d(0x17d))/0x4)+parseInt(_0x212f2d(0x149))/0x5+parseInt(_0x212f2d(0x171))/0x6*(parseInt(_0x212f2d(0x154))/0x7)+parseInt(_0x212f2d(0x16c))/0x8+-parseInt(_0x212f2d(0x14d))/0x9*(-parseInt(_0x212f2d(0x14c))/0xa)+parseInt(_0x212f2d(0x178))/0xb;if(_0x4c8e36===_0x2ac519)break;else _0x5590c4['push'](_0x5590c4['shift']());}catch(_0x5e81a5){_0x5590c4['push'](_0x5590c4['shift']());}}}(a0_0x2f3a,0x78896));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x332f(_0x2a1d3d,_0x24190e){const _0x2f3a6a=a0_0x2f3a();return a0_0x332f=function(_0x332f49,_0x46b471){_0x332f49=_0x332f49-0x144;let _0x457605=_0x2f3a6a[_0x332f49];return _0x457605;},a0_0x332f(_0x2a1d3d,_0x24190e);}import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';function a0_0x2f3a(){const _0x2bb477=['name','getContextObject','gridEmphasized','getParams','menuInfo','actions','useFilterForm','gridColumnConfig','ox-grist','195xFutbn','columns','properties','filterForm','stringify','11QsVjIt','gristConfigSet','grid','clear','importable','activityDataSet','querySelector','pageInitialized','155640daqGCH','forEach','keys','ox-filters-form-base','filter','2154PAPhXy','parse','options','parseGristConfigs','filterFormId','detailElement','deleteByIds','935022eAaRDS','grist','exportableData','firstUpdated','dataSet','33780owxyYu','search','gristId','isNotEmpty','exportable','import','grid_column','delete','render','startsWith','renderRoot','record','patchesForUpdateMultiple','getData','fetch','searchFieldValues','connectedCallback','isPage','searchConfig','parseGridConfigSet','searchFields','shadowRoot','3148450juFTbp','isElement','getSelectedIdList','30280arFDyA','1287KVVJLi','updateMultiple','find','163888LZPJWx','records','export','operator','15148scIZTy','value'];a0_0x2f3a=function(){return _0x2bb477;};return a0_0x2f3a();}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x5ddb8e=>class extends MetaButtonMixin(_0x5ddb8e){static get['styles'](){return MetaApi['getBasicMasterDetailStyles']();}static get[a0_0x202254(0x161)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String,'detailElement':Object};}get[a0_0x202254(0x179)](){const _0x11bd02=a0_0x202254;return this[_0x11bd02(0x187)][_0x11bd02(0x16a)](this['gristId']);}get[a0_0x202254(0x162)](){const _0x28ae0b=a0_0x202254;return this[_0x28ae0b(0x148)]?.[_0x28ae0b(0x16a)](this[_0x28ae0b(0x175)]);}get['context'](){const _0x58256b=a0_0x202254;let _0x23ae41=MetaUiUtil[_0x58256b(0x157)](this);return _0x23ae41['actions']&&delete _0x23ae41[_0x58256b(0x15b)],_0x23ae41[_0x58256b(0x181)]&&delete _0x23ae41[_0x58256b(0x181)],_0x23ae41['importable']&&delete _0x23ae41[_0x58256b(0x168)],_0x23ae41;}async[a0_0x202254(0x18d)](){const _0x6a0a85=a0_0x202254;this[_0x6a0a85(0x17f)]=_0x6a0a85(0x15e),this[_0x6a0a85(0x175)]=_0x6a0a85(0x16f),await this['getAndParseMenuMeta'](),this['isElement']&&await this['parseGristConfigs'](),this[_0x6a0a85(0x169)]&&(this[_0x6a0a85(0x17c)]=(this[_0x6a0a85(0x169)]||{})['main']),super[_0x6a0a85(0x18d)]&&await super[_0x6a0a85(0x18d)]();}async[a0_0x202254(0x17b)](){const _0x45888a=a0_0x202254;super[_0x45888a(0x17b)]&&await super[_0x45888a(0x17b)]();}async[a0_0x202254(0x16b)](){const _0x583a29=a0_0x202254;this[_0x583a29(0x144)]&&await this[_0x583a29(0x174)](),super['pageInitialized']&&await super[_0x583a29(0x16b)]();}[a0_0x202254(0x185)](){return MetaApi['getMasterDetailHtml'](this);}['parseBasicGridConfigs'](_0x20468e){const _0x56a213=a0_0x202254;this['gridConfig']=_0x20468e[_0x56a213(0x166)],this[_0x56a213(0x15d)]=_0x20468e[_0x56a213(0x183)],this[_0x56a213(0x145)]=_0x20468e['search'],this[_0x56a213(0x158)]=_0x20468e[_0x56a213(0x158)];}async[a0_0x202254(0x174)](){const _0x2be072=a0_0x202254;this[_0x2be072(0x165)]=await MetaApi[_0x2be072(0x146)](this),this['useMasterFilterForm']=!0x0===this[_0x2be072(0x15c)],this[_0x2be072(0x15c)]=!0x1,this[_0x2be072(0x18c)]=[],this[_0x2be072(0x147)]=this[_0x2be072(0x165)][_0x2be072(0x160)][_0x2be072(0x170)](_0x69ced4=>_0x69ced4[_0x2be072(0x170)])['map'](_0x487872=>{const _0x3b31a3=_0x2be072;let _0x353ff1={'name':_0x487872['name'],'type':_0x3b31a3(0x17e)===_0x487872[_0x3b31a3(0x170)][_0x3b31a3(0x153)]?'search':_0x487872['type'],'label':_0x487872['header'],'operator':_0x487872[_0x3b31a3(0x170)][_0x3b31a3(0x153)]?_0x487872['filter'][_0x3b31a3(0x153)]:'eq'};return _0x487872[_0x3b31a3(0x170)]['options']&&(_0x353ff1[_0x3b31a3(0x173)]=_0x487872['filter']['options']),_0x487872[_0x3b31a3(0x188)]['options']&&(_0x353ff1['options']=_0x487872['record'][_0x3b31a3(0x173)]),_0x487872[_0x3b31a3(0x170)][_0x3b31a3(0x155)]&&this[_0x3b31a3(0x18c)]['push']({'name':_0x353ff1[_0x3b31a3(0x156)],'operator':_0x353ff1[_0x3b31a3(0x153)],'value':_0x487872[_0x3b31a3(0x170)]['value']}),delete _0x487872[_0x3b31a3(0x170)],_0x353ff1;});}async[a0_0x202254(0x18b)](){const _0x45029d=a0_0x202254;await this[_0x45029d(0x179)]['fetch']();}async['beforeFetch']({page:_0x300067=0x0,limit:_0x8cfa36=0x0,sortings:_0x304717=[],filters:_0x48103c=[]}){const _0x59014c=a0_0x202254;return this[_0x59014c(0x176)]&&this[_0x59014c(0x176)][_0x59014c(0x167)]&&await this[_0x59014c(0x176)][_0x59014c(0x167)](),!0x0;}async['save'](){const _0x4ca6f9=a0_0x202254;let _0x549307=MetaApi[_0x4ca6f9(0x189)](this[_0x4ca6f9(0x179)]);!!ValueUtil[_0x4ca6f9(0x180)](_0x549307)&&await this[_0x4ca6f9(0x14e)](_0x549307)&&this[_0x4ca6f9(0x18b)]();}async[a0_0x202254(0x14f)](){const _0x2de825=a0_0x202254;let _0x40049f=MetaApi[_0x2de825(0x14b)](this[_0x2de825(0x179)],!0x0);return ValueUtil[_0x2de825(0x180)](_0x40049f)?await this['findOne'](_0x40049f[0x0]):{};}async[a0_0x202254(0x184)](){const _0x34fa8b=a0_0x202254;let _0x22e428=MetaApi[_0x34fa8b(0x14b)](this['grist'],!0x0);!!ValueUtil[_0x34fa8b(0x180)](_0x22e428)&&await this[_0x34fa8b(0x177)](_0x22e428)&&this[_0x34fa8b(0x18b)]();}async[a0_0x202254(0x152)](){const _0x7502f2=a0_0x202254;let _0x39f79d=TermsUtil['tTitle'](ValueUtil[_0x7502f2(0x159)](this[_0x7502f2(0x15a)],'title'));return await MetaApi[_0x7502f2(0x17a)](this[_0x7502f2(0x14a)],_0x39f79d,this[_0x7502f2(0x179)]);}async[a0_0x202254(0x182)](){}[a0_0x202254(0x18a)](){const _0x1615e6=a0_0x202254;let _0x28195c=this[_0x1615e6(0x179)]['___data'][_0x1615e6(0x151)];return _0x28195c=JSON[_0x1615e6(0x172)](JSON[_0x1615e6(0x163)](_0x28195c)),_0x28195c[_0x1615e6(0x16d)](_0x9e1a7e=>{const _0x477c0f=_0x1615e6;Object[_0x477c0f(0x16e)](_0x9e1a7e)['forEach'](_0x38ff20=>{const _0x11e67d=_0x477c0f;_0x38ff20[_0x11e67d(0x186)]('__')&&delete _0x9e1a7e[_0x38ff20];});}),{'main':_0x28195c,'detail':this[_0x1615e6(0x176)][_0x1615e6(0x18a)]()};}};
1
+ const a0_0x323c24=a0_0x725c;(function(_0x4fa655,_0x52f88c){const _0x4c2319=a0_0x725c,_0xd0cfd4=_0x4fa655();while(!![]){try{const _0xaefb9a=parseInt(_0x4c2319(0x19e))/0x1+-parseInt(_0x4c2319(0x1e2))/0x2*(parseInt(_0x4c2319(0x1c5))/0x3)+-parseInt(_0x4c2319(0x1c9))/0x4+-parseInt(_0x4c2319(0x1c6))/0x5*(-parseInt(_0x4c2319(0x1be))/0x6)+parseInt(_0x4c2319(0x1a8))/0x7+-parseInt(_0x4c2319(0x1bc))/0x8*(parseInt(_0x4c2319(0x1b9))/0x9)+-parseInt(_0x4c2319(0x194))/0xa*(-parseInt(_0x4c2319(0x1a3))/0xb);if(_0xaefb9a===_0x52f88c)break;else _0xd0cfd4['push'](_0xd0cfd4['shift']());}catch(_0x4361e){_0xd0cfd4['push'](_0xd0cfd4['shift']());}}}(a0_0x57be,0x981cd));import{html}from'lit';function a0_0x57be(){const _0x244f79=['parseGristConfigs','firstUpdated','exportableData','grid_column','search','operator','clear','pageInitialized','importable','useFilterForm','useMasterFilterForm','ox-filters-form-base','searchFieldValues','gridColumnConfig','ox-grist','2754666INmkde','getContextObject','forEach','24bbahJi','gristConfigSet','6PFhuJq','map','keys','find','shadowRoot','searchConfig','parseGridConfigSet','3icDJBu','3006285xXwvOJ','parseBasicGridConfigs','filterFormId','1707816DJDpXj','isPage','connectedCallback','getSelectedIdList','save','grid','getMasterDetailHtml','fetch','isElement','detailElement','grist','getBasicMasterDetailStyles','properties','deleteByIds','activityDataSet','value','getAndParseMenuMeta','push','filter','findOne','actions','isNotEmpty','getData','styles','record','1965734oNmyxk','228410BjfHAm','title','tTitle','querySelector','searchFields','startsWith','filterForm','name','import','parse','581014grRASi','exportable','stringify','delete','gridEmphasized','792XzvPMo','gristId','___data','getParams','columns','869911lOEzdH','options'];a0_0x57be=function(){return _0x244f79;};return a0_0x57be();}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_0x725c(_0x2ef07c,_0x3e4038){const _0x57be66=a0_0x57be();return a0_0x725c=function(_0x725c7e,_0x4dbeec){_0x725c7e=_0x725c7e-0x194;let _0x27e46f=_0x57be66[_0x725c7e];return _0x27e46f;},a0_0x725c(_0x2ef07c,_0x3e4038);}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMasterDetailMixin=_0x148839=>class extends MetaButtonMixin(_0x148839){static get[a0_0x323c24(0x1e0)](){const _0x10aaac=a0_0x323c24;return MetaApi[_0x10aaac(0x1d4)]();}static get[a0_0x323c24(0x1d5)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String,'detailElement':Object};}get[a0_0x323c24(0x1d3)](){const _0x52fbdb=a0_0x323c24;return this['renderRoot'][_0x52fbdb(0x197)](this['gristId']);}get[a0_0x323c24(0x19a)](){const _0x174c37=a0_0x323c24;return this[_0x174c37(0x1c2)]?.[_0x174c37(0x197)](this[_0x174c37(0x1c8)]);}get['context'](){const _0xbd90c=a0_0x323c24;let _0x1ec201=MetaUiUtil[_0xbd90c(0x1ba)](this);return _0x1ec201['actions']&&delete _0x1ec201[_0xbd90c(0x1dd)],_0x1ec201[_0xbd90c(0x19f)]&&delete _0x1ec201[_0xbd90c(0x19f)],_0x1ec201[_0xbd90c(0x1b2)]&&delete _0x1ec201[_0xbd90c(0x1b2)],_0x1ec201;}async[a0_0x323c24(0x1cb)](){const _0x15f1bf=a0_0x323c24;this[_0x15f1bf(0x1a4)]=_0x15f1bf(0x1b8),this[_0x15f1bf(0x1c8)]=_0x15f1bf(0x1b5),await this[_0x15f1bf(0x1d9)](),this[_0x15f1bf(0x1d1)]&&await this[_0x15f1bf(0x1aa)](),this['activityDataSet']&&(this['dataSet']=(this[_0x15f1bf(0x1d7)]||{})['main']),super[_0x15f1bf(0x1cb)]&&await super[_0x15f1bf(0x1cb)]();}async[a0_0x323c24(0x1ab)](){const _0xdca924=a0_0x323c24;super[_0xdca924(0x1ab)]&&await super['firstUpdated']();}async[a0_0x323c24(0x1b1)](){const _0x367597=a0_0x323c24;this[_0x367597(0x1ca)]&&await this['parseGristConfigs'](),super[_0x367597(0x1b1)]&&await super['pageInitialized']();}['render'](){const _0x6e3331=a0_0x323c24;return MetaApi[_0x6e3331(0x1cf)](this);}[a0_0x323c24(0x1c7)](_0x430df5){const _0x363130=a0_0x323c24;this['gridConfig']=_0x430df5[_0x363130(0x1ce)],this[_0x363130(0x1b7)]=_0x430df5[_0x363130(0x1ad)],this[_0x363130(0x1c3)]=_0x430df5['search'],this[_0x363130(0x1a2)]=_0x430df5[_0x363130(0x1a2)];}async[a0_0x323c24(0x1aa)](){const _0x3107f6=a0_0x323c24;this[_0x3107f6(0x1bd)]=await MetaApi[_0x3107f6(0x1c4)](this),this[_0x3107f6(0x1b4)]=!0x0===this[_0x3107f6(0x1b3)],this[_0x3107f6(0x1b3)]=!0x1,this[_0x3107f6(0x1b6)]=[],this[_0x3107f6(0x198)]=this[_0x3107f6(0x1bd)][_0x3107f6(0x1a7)][_0x3107f6(0x1db)](_0xd76c39=>_0xd76c39[_0x3107f6(0x1db)])[_0x3107f6(0x1bf)](_0x1619a1=>{const _0x11b0e1=_0x3107f6;let _0x37cdff={'name':_0x1619a1[_0x11b0e1(0x19b)],'type':_0x11b0e1(0x1ae)===_0x1619a1[_0x11b0e1(0x1db)][_0x11b0e1(0x1af)]?_0x11b0e1(0x1ae):_0x1619a1['type'],'label':_0x1619a1['header'],'operator':_0x1619a1[_0x11b0e1(0x1db)]['operator']?_0x1619a1[_0x11b0e1(0x1db)][_0x11b0e1(0x1af)]:'eq'};return _0x1619a1[_0x11b0e1(0x1db)][_0x11b0e1(0x1a9)]&&(_0x37cdff[_0x11b0e1(0x1a9)]=_0x1619a1[_0x11b0e1(0x1db)][_0x11b0e1(0x1a9)]),_0x1619a1[_0x11b0e1(0x1e1)]['options']&&(_0x37cdff[_0x11b0e1(0x1a9)]=_0x1619a1[_0x11b0e1(0x1e1)]['options']),_0x1619a1['filter']['value']&&this[_0x11b0e1(0x1b6)][_0x11b0e1(0x1da)]({'name':_0x37cdff['name'],'operator':_0x37cdff[_0x11b0e1(0x1af)],'value':_0x1619a1[_0x11b0e1(0x1db)][_0x11b0e1(0x1d8)]}),delete _0x1619a1[_0x11b0e1(0x1db)],_0x37cdff;});}async['fetch'](){const _0xdca524=a0_0x323c24;await this[_0xdca524(0x1d3)]['fetch']();}async['beforeFetch']({page:_0x2579d5=0x0,limit:_0x1f844b=0x0,sortings:_0x36621b=[],filters:_0x232edc=[]}){const _0x5839c4=a0_0x323c24;return this[_0x5839c4(0x1d2)]&&this[_0x5839c4(0x1d2)][_0x5839c4(0x1b0)]&&await this[_0x5839c4(0x1d2)]['clear'](),!0x0;}async[a0_0x323c24(0x1cd)](){const _0x103de4=a0_0x323c24;let _0x2b4014=MetaApi['patchesForUpdateMultiple'](this[_0x103de4(0x1d3)]);!!ValueUtil[_0x103de4(0x1de)](_0x2b4014)&&await this['updateMultiple'](_0x2b4014)&&this[_0x103de4(0x1d0)]();}async[a0_0x323c24(0x1c1)](){const _0x44ed76=a0_0x323c24;let _0x5bdc8a=MetaApi['getSelectedIdList'](this[_0x44ed76(0x1d3)],!0x0);return ValueUtil[_0x44ed76(0x1de)](_0x5bdc8a)?await this[_0x44ed76(0x1dc)](_0x5bdc8a[0x0]):{};}async[a0_0x323c24(0x1a1)](){const _0x3ed81b=a0_0x323c24;let _0xba56a1=MetaApi[_0x3ed81b(0x1cc)](this['grist'],!0x0);!!ValueUtil[_0x3ed81b(0x1de)](_0xba56a1)&&await this[_0x3ed81b(0x1d6)](_0xba56a1)&&this[_0x3ed81b(0x1d0)]();}async['export'](){const _0x55acf1=a0_0x323c24;let _0x4a3cb8=TermsUtil[_0x55acf1(0x196)](ValueUtil[_0x55acf1(0x1a6)](this['menuInfo'],_0x55acf1(0x195)));return await MetaApi[_0x55acf1(0x1ac)](this[_0x55acf1(0x1d1)],_0x4a3cb8,this[_0x55acf1(0x1d3)]);}async[a0_0x323c24(0x19c)](){}[a0_0x323c24(0x1df)](){const _0xb84fb9=a0_0x323c24;let _0x17a4d0=this[_0xb84fb9(0x1d3)][_0xb84fb9(0x1a5)]['records'];return _0x17a4d0=JSON[_0xb84fb9(0x19d)](JSON[_0xb84fb9(0x1a0)](_0x17a4d0)),_0x17a4d0[_0xb84fb9(0x1bb)](_0x257a1b=>{const _0x4ba998=_0xb84fb9;Object[_0x4ba998(0x1c0)](_0x257a1b)[_0x4ba998(0x1bb)](_0x5e0304=>{const _0x44f772=_0x4ba998;_0x5e0304[_0x44f772(0x199)]('__')&&delete _0x257a1b[_0x5e0304];});}),{'main':_0x17a4d0,'detail':this['detailElement'][_0xb84fb9(0x1df)]()};}};