@things-factory/meta-ui 6.0.125 → 6.0.129

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 (78) hide show
  1. package/client/actions/main.js +4 -4
  2. package/client/component/filter/filter-form-resource-code-select.js +16 -0
  3. package/client/component/filter/filter-grist-resource-code-select.js +16 -0
  4. package/client/component/grist/editor/ox-grist-editor-resource-code-selector.js +9 -7
  5. package/client/component/grist/renderer/ox-grist-renderer-resource-code-selector.js +1 -1
  6. package/client/component/grist/selector/ox-resource-code-selector-popup.js +11 -11
  7. package/client/mixin/meta-base-mixin.js +1 -1
  8. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  9. package/client/mixin/meta-button-mixin.js +1 -1
  10. package/client/mixin/meta-form-mixin.js +1 -1
  11. package/client/mixin/meta-grist-tab-mixin.js +1 -1
  12. package/client/mixin/meta-master-detail-mixin.js +1 -1
  13. package/client/mixin/meta-service-mixin.js +1 -1
  14. package/client/mixin/meta-tab-detail-mixin.js +1 -1
  15. package/client/mixin/meta-tab-mixin.js +1 -1
  16. package/client/pages/activity/meta-activity-list-page.js +6 -6
  17. package/client/pages/activity/meta-activity-viewer-element.js +3 -3
  18. package/client/pages/activity/meta-activity-writer-element.js +3 -3
  19. package/client/pages/activity/meta-activiy-mixin.js +3 -3
  20. package/client/pages/entity/config-entity.js +29 -29
  21. package/client/pages/entity/main-menu-selector.js +8 -8
  22. package/client/pages/history/history-copy-list-popup.js +5 -5
  23. package/client/pages/history/history-json-list-popup.js +6 -6
  24. package/client/pages/loading-page.js +5 -5
  25. package/client/pages/menu/dynamic-menu-template.js +7 -7
  26. package/client/pages/menu/dynamic-menu.js +15 -15
  27. package/client/pages/meta-form-element.js +1 -1
  28. package/client/pages/meta-grist-element.js +1 -1
  29. package/client/pages/meta-grist-page.js +1 -1
  30. package/client/pages/meta-grist-tab-element.js +1 -1
  31. package/client/pages/meta-grist-tab-page.js +1 -1
  32. package/client/pages/meta-master-detail-element.js +1 -1
  33. package/client/pages/meta-master-detail-page.js +1 -1
  34. package/client/pages/meta-tab-detail-element.js +1 -1
  35. package/client/pages/meta-tab-detail-page.js +1 -1
  36. package/client/pages/meta-tab-element.js +1 -1
  37. package/client/pages/personalize/personal-column-selector.js +11 -11
  38. package/client/pages/terms/config-terminology.js +6 -6
  39. package/client/pages/work-code/work-code-detail-popup.js +1 -1
  40. package/client/pages/work-code/work-code-page.js +1 -1
  41. package/client/reducers/main.js +1 -1
  42. package/client/utils/meta-api.js +1 -1
  43. package/client/utils/meta-crypto.js +1 -1
  44. package/client/utils/meta-ui-util.js +96 -96
  45. package/client/utils/service-util.js +13 -13
  46. package/client/utils/terms-util.js +2 -2
  47. package/client/utils/ui-util.js +1 -1
  48. package/client/utils/value-util.js +1 -1
  49. package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
  50. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  51. package/client/viewparts/dynamic-menu-part.js +12 -12
  52. package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
  53. package/client/viewparts/dynamic-menu-portrait.js +9 -9
  54. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  55. package/package.json +2 -2
  56. package/server/activity/CommonActivity.js +2 -2
  57. package/server/constants/error-code.js +1 -1
  58. package/server/errors/license-error.js +1 -1
  59. package/server/routes.js +1 -1
  60. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  61. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  62. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  63. package/server/service/grid-personalize/grid-personalize.js +1 -1
  64. package/server/service/meta-activity/meta-activity-mutation.js +1 -1
  65. package/server/service/meta-activity/meta-activity-query.js +1 -1
  66. package/server/service/meta-activity/meta-activity-type.js +1 -1
  67. package/server/service/meta-secret/meta-resolver.js +1 -1
  68. package/server/service/set-translations/set-translation-resolver.js +1 -1
  69. package/server/service/work-code/work-code-mutation.js +1 -1
  70. package/server/service/work-code/work-code-query.js +1 -1
  71. package/server/service/work-code/work-code-type.js +1 -1
  72. package/server/service/work-code/work-code.js +1 -1
  73. package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
  74. package/server/service/work-code-detail/work-code-detail-query.js +1 -1
  75. package/server/service/work-code-detail/work-code-detail-type.js +1 -1
  76. package/server/service/work-code-detail/work-code-detail.js +1 -1
  77. package/client/component/filter/filter-form-resource-code-select.ts +0 -94
  78. package/client/component/filter/filter-grist-resource-code-select.ts +0 -95
@@ -1,7 +1,7 @@
1
- function a0_0x14ea(){const _0x3f7f04=['landscape','30gvJBli','lite-menu-part','168905xmcyxS','hamburger','1470ygrmZB','filter','items','15DgbxWg','1327953BUOaeD','6732RbMQLo','rank','139886LUdmVI','4804FkaxQt','get','50496YtNtIM','UPDATE_META_UI','FRONT_END','UPDATE_META_MENU_TEMPLATE','appName','portrait','active','6YeOaPK','liteMenus','data','dispatch','dynamic-menu-part','querySelector','162oVIhgh','2737956bISVxe','HEADERBAR'];a0_0x14ea=function(){return _0x3f7f04;};return a0_0x14ea();}const a0_0x1e60c8=a0_0x13ec;(function(_0x33d645,_0x2cbc39){const _0x4f7094=a0_0x13ec,_0x1fb4ae=_0x33d645();while(!![]){try{const _0x2612ae=-parseInt(_0x4f7094(0x132))/0x1+parseInt(_0x4f7094(0x11c))/0x2*(parseInt(_0x4f7094(0x126))/0x3)+-parseInt(_0x4f7094(0x11d))/0x4*(parseInt(_0x4f7094(0x137))/0x5)+-parseInt(_0x4f7094(0x139))/0x6*(-parseInt(_0x4f7094(0x134))/0x7)+-parseInt(_0x4f7094(0x11f))/0x8*(-parseInt(_0x4f7094(0x12c))/0x9)+parseInt(_0x4f7094(0x130))/0xa*(-parseInt(_0x4f7094(0x138))/0xb)+parseInt(_0x4f7094(0x12d))/0xc;if(_0x2612ae===_0x2cbc39)break;else _0x1fb4ae['push'](_0x1fb4ae['shift']());}catch(_0x207661){_0x1fb4ae['push'](_0x1fb4ae['shift']());}}}(a0_0x14ea,0x2c950));import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import a0_0x174d1d from'graphql-tag';function a0_0x13ec(_0x1e95a4,_0x301e45){const _0x14eae2=a0_0x14ea();return a0_0x13ec=function(_0x13ecc9,_0x33214f){_0x13ecc9=_0x13ecc9-0x11c;let _0x41f309=_0x14eae2[_0x13ecc9];return _0x41f309;},a0_0x13ec(_0x1e95a4,_0x301e45);}import{html}from'lit';import{client}from'@operato/graphql';import{appendViewpart,toggleOverlay,TOOL_POSITION,VIEWPART_POSITION}from'@operato/layout';import{store}from'@operato/shell';import{isMobileDevice}from'@operato/utils';import{APPEND_APP_TOOL,REMOVE_APP_TOOL}from'@things-factory/apptool-base';import{clientSettingStore}from'@things-factory/shell';export const UPDATE_META_UI=a0_0x1e60c8(0x120);export const UPDATE_META_MENU_TEMPLATE=a0_0x1e60c8(0x122);var HAMBURGER;export async function setupMenuPart(_0x467cf6){const _0x10e6ce=a0_0x1e60c8;var {hovering:_0x421200=!!isMobileDevice(),slotTemplate:_0xff5a38,portraitSlotTemplate:_0x430c75,landscapeSlotTemplate:_0x142473,position:_0x1b9445=VIEWPART_POSITION['NAVBAR']}=_0x467cf6||{};const {hovering:_0x8a9364}=(await clientSettingStore[_0x10e6ce(0x11e)]('dynamic-menu'))?.['value']||{};void 0x0!==_0x8a9364&&(_0x421200=_0x8a9364);const _0xb5fae1=_0x1b9445==VIEWPART_POSITION[_0x10e6ce(0x12e)]?'landscape':'portrait',_0x14ba46=(_0x10e6ce(0x12f)==_0xb5fae1?_0x142473:_0x430c75)||_0xff5a38||html``;appendViewpart({'name':_0x10e6ce(0x131),'viewpart':{'show':!_0x421200,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x421200,'template':html`<dynamic-menu-part .orientation=${_0xb5fae1}>${_0x14ba46}</dynamic-menu-part>`},'position':_0x1b9445}),_0x421200&&_0x10e6ce(0x124)==_0xb5fae1?HAMBURGER||(HAMBURGER={'name':_0x10e6ce(0x133),'template':html`
2
- <mwc-icon @click=${_0x1a4a37=>toggleOverlay(_0x10e6ce(0x12a),{'backdrop':!0x0})}
1
+ const a0_0x6623e0=a0_0x10e3;(function(_0x58d159,_0x4e75d1){const _0x298364=a0_0x10e3,_0x3bdecc=_0x58d159();while(!![]){try{const _0x1f82f9=-parseInt(_0x298364(0x160))/0x1+-parseInt(_0x298364(0x163))/0x2*(-parseInt(_0x298364(0x14a))/0x3)+-parseInt(_0x298364(0x15a))/0x4*(parseInt(_0x298364(0x15d))/0x5)+parseInt(_0x298364(0x151))/0x6+parseInt(_0x298364(0x154))/0x7+parseInt(_0x298364(0x161))/0x8+parseInt(_0x298364(0x14d))/0x9*(parseInt(_0x298364(0x14b))/0xa);if(_0x1f82f9===_0x4e75d1)break;else _0x3bdecc['push'](_0x3bdecc['shift']());}catch(_0x46eead){_0x3bdecc['push'](_0x3bdecc['shift']());}}}(a0_0x3666,0xe2f09));function a0_0x10e3(_0x57eae2,_0x8e7c68){const _0x3666be=a0_0x3666();return a0_0x10e3=function(_0x10e35b,_0x452bcd){_0x10e35b=_0x10e35b-0x147;let _0x838c8=_0x3666be[_0x10e35b];return _0x838c8;},a0_0x10e3(_0x57eae2,_0x8e7c68);}import'../viewparts/dynamic-menu-part';import'@material/mwc-icon';import a0_0x52b4c2 from'graphql-tag';function a0_0x3666(){const _0x5da9f3=['470IwRGvZ','active','130950bQterL','UPDATE_META_UI','lite-menu-part','querySelector','6017964Moshjq','landscape','dynamic-menu-part','9135315GmMNiI','content','dispatch','hamburger','meta[name=\x22application-name\x22]','data','4vZVgaL','liteMenus','appName','8719795dLMFGE','rank','NAVBAR','1748389AAaNCY','5149584cJlKyf','HEADERBAR','18076ZYiNxa','value','portrait','query','items','261OPAXHk'];a0_0x3666=function(){return _0x5da9f3;};return a0_0x3666();}import{html}from'lit';import{client}from'@operato/graphql';import{appendViewpart,toggleOverlay,TOOL_POSITION,VIEWPART_POSITION}from'@operato/layout';import{store}from'@operato/shell';import{isMobileDevice}from'@operato/utils';import{APPEND_APP_TOOL,REMOVE_APP_TOOL}from'@things-factory/apptool-base';import{clientSettingStore}from'@things-factory/shell';export const UPDATE_META_UI=a0_0x6623e0(0x14e);export const UPDATE_META_MENU_TEMPLATE='UPDATE_META_MENU_TEMPLATE';var HAMBURGER;export async function setupMenuPart(_0xaea8d){const _0x3c25b3=a0_0x6623e0;var {hovering:_0x4d8de4=!!isMobileDevice(),slotTemplate:_0x4d5888,portraitSlotTemplate:_0x31be15,landscapeSlotTemplate:_0x415835,position:_0x3014f1=VIEWPART_POSITION[_0x3c25b3(0x15f)]}=_0xaea8d||{};const {hovering:_0x51e4d3}=(await clientSettingStore['get']('dynamic-menu'))?.[_0x3c25b3(0x164)]||{};void 0x0!==_0x51e4d3&&(_0x4d8de4=_0x51e4d3);const _0x2c4468=_0x3014f1==VIEWPART_POSITION[_0x3c25b3(0x162)]?_0x3c25b3(0x152):_0x3c25b3(0x147),_0x2cfb99=('landscape'==_0x2c4468?_0x415835:_0x31be15)||_0x4d5888||html``;appendViewpart({'name':_0x3c25b3(0x14f),'viewpart':{'show':!_0x4d8de4,'resizable':!0x0,'hovering':!!isMobileDevice()||_0x4d8de4,'template':html`<dynamic-menu-part .orientation=${_0x2c4468}>${_0x2cfb99}</dynamic-menu-part>`},'position':_0x3014f1}),_0x4d8de4&&_0x3c25b3(0x147)==_0x2c4468?HAMBURGER||(HAMBURGER={'name':_0x3c25b3(0x157),'template':html`
2
+ <mwc-icon @click=${_0x24aa45=>toggleOverlay(_0x3c25b3(0x153),{'backdrop':!0x0})}
3
3
  >view_headline</mwc-icon>
4
- `,'position':TOOL_POSITION[_0x10e6ce(0x121)]},store['dispatch']({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store[_0x10e6ce(0x129)]({'type':REMOVE_APP_TOOL,'name':'hamburger'}),HAMBURGER=null);}export async function updateMenuTemplate(_0x51cbd5){const _0x1664f5=a0_0x1e60c8;var _0x538c64=document[_0x1664f5(0x12b)]('meta[name=\x22application-name\x22]')?.['content'],_0x2b19a6=(await client['query']({'query':a0_0x174d1d`
4
+ `,'position':TOOL_POSITION['FRONT_END']},store[_0x3c25b3(0x156)]({'type':APPEND_APP_TOOL,'tool':HAMBURGER})):HAMBURGER&&(store[_0x3c25b3(0x156)]({'type':REMOVE_APP_TOOL,'name':_0x3c25b3(0x157)}),HAMBURGER=null);}export async function updateMenuTemplate(_0x5f07aa){const _0x470c9d=a0_0x6623e0;var _0x909ea6=document[_0x470c9d(0x150)](_0x470c9d(0x158))?.[_0x470c9d(0x155)],_0x98db98=(await client[_0x470c9d(0x148)]({'query':a0_0x52b4c2`
5
5
  query ($filters: [Filter!], $sortings: [Sorting!]) {
6
6
  liteMenus: liteMenus(filters: $filters
7
7
  sortings: $sortings) {
@@ -20,4 +20,4 @@ function a0_0x14ea(){const _0x3f7f04=['landscape','30gvJBli','lite-menu-part','1
20
20
  total
21
21
  }
22
22
  }
23
- `,'variables':{'filters':[{'name':_0x1664f5(0x125),'operator':'eq','value':!0x0},{'name':_0x1664f5(0x123),'operator':'in','value':['',_0x538c64]}],'sortings':[{'name':_0x1664f5(0x13a),'desc':!0x1}]}}))[_0x1664f5(0x128)][_0x1664f5(0x127)][_0x1664f5(0x136)];store[_0x1664f5(0x129)]({'type':UPDATE_META_MENU_TEMPLATE,'addon':_0x2b19a6[_0x1664f5(0x135)](_0x4d4769=>!_0x4d4769[_0x1664f5(0x123)]||_0x4d4769[_0x1664f5(0x123)]===_0x538c64),'template':_0x51cbd5});}
23
+ `,'variables':{'filters':[{'name':_0x470c9d(0x14c),'operator':'eq','value':!0x0},{'name':'appName','operator':'in','value':['',_0x909ea6]}],'sortings':[{'name':_0x470c9d(0x15e),'desc':!0x1}]}}))[_0x470c9d(0x159)][_0x470c9d(0x15b)][_0x470c9d(0x149)];store[_0x470c9d(0x156)]({'type':UPDATE_META_MENU_TEMPLATE,'addon':_0x98db98['filter'](_0x2f10fd=>!_0x2f10fd[_0x470c9d(0x15c)]||_0x2f10fd[_0x470c9d(0x15c)]===_0x909ea6),'template':_0x5f07aa});}
@@ -0,0 +1,16 @@
1
+ (function(_0x11f9ec,_0x2219d5){const _0x4164b8=a0_0x26b1,_0x4d9bf9=_0x11f9ec();while(!![]){try{const _0x36093c=-parseInt(_0x4164b8(0x1ee))/0x1*(parseInt(_0x4164b8(0x1fa))/0x2)+-parseInt(_0x4164b8(0x1e4))/0x3+-parseInt(_0x4164b8(0x1f0))/0x4*(parseInt(_0x4164b8(0x1f6))/0x5)+-parseInt(_0x4164b8(0x1f1))/0x6+-parseInt(_0x4164b8(0x1f3))/0x7*(-parseInt(_0x4164b8(0x1ef))/0x8)+parseInt(_0x4164b8(0x1f5))/0x9+parseInt(_0x4164b8(0x1e5))/0xa;if(_0x36093c===_0x2219d5)break;else _0x4d9bf9['push'](_0x4d9bf9['shift']());}catch(_0x57567c){_0x4d9bf9['push'](_0x4d9bf9['shift']());}}}(a0_0x319c,0xc368f));function a0_0x319c(){const _0x400fc9=['codes','2389596rbtOoZ','24611070QTSqZx','name','stopPropagation','change','codeField','tMenu','dispatchEvent','options','large','26201yUITFt','1766912mqQWZk','142728gWsVvt','3381702fnmKvF','filter-change','28RSmvbY','form\x20[name=\x22','4141008BqINmD','190kbThSc','value','filter','length','22tIojaN'];a0_0x319c=function(){return _0x400fc9;};return a0_0x319c();}import'../grist/selector/ox-resource-code-selector-popup';import{html}from'lit-html';function a0_0x26b1(_0x34873d,_0x11e6fc){const _0x319ced=a0_0x319c();return a0_0x26b1=function(_0x26b1e8,_0x3ef3f5){_0x26b1e8=_0x26b1e8-0x1e4;let _0x56e281=_0x319ced[_0x26b1e8];return _0x56e281;},a0_0x26b1(_0x34873d,_0x11e6fc);}import{openPopup}from'@operato/layout';import{TermsUtil}from'./../../utils/terms-util';function openResourceCodeSelector(_0x59c2c0,_0x28d86d,_0x33d3d1){const _0x552925=a0_0x26b1;var _0xed7579=html`
2
+ <ox-resource-code-selector-popup
3
+ .value=${_0x28d86d}
4
+ .options=${_0x59c2c0[_0x552925(0x1ec)]}
5
+ .confirmCallback=${_0x33d3d1}
6
+ ></ox-resource-code-selector-popup>
7
+ `;openPopup(_0xed7579,{'backdrop':!0x0,'size':_0x552925(0x1ed),'title':TermsUtil[_0x552925(0x1ea)](_0x59c2c0['options']['selectorName'])});}export const FilterFormResourceCodeSelect=(_0x389b6a,_0x475246,_0x2c32df)=>{const _0x530543=a0_0x26b1,_0x423e61=_0x389b6a[_0x530543(0x1ec)],_0x910be7=_0x423e61[_0x530543(0x1fb)]&&_0x423e61[_0x530543(0x1f9)]>0x0?_0x423e61[_0x530543(0x1fb)]:void 0x0,{operator:_0xb2dbe2='eq'}=_0x389b6a;let _0x15babb=_0x475246||'';if(_0x423e61['dispField']&&_0x475246&&_0x910be7&&_0x910be7){let _0x1c2824=_0x910be7[_0x530543(0x1f8)](_0x337acc=>_0x337acc[_0x530543(0x1f7)]==_0x475246);_0x1c2824&&_0x1c2824[_0x530543(0x1f9)]>0x0&&(_0x15babb=_0x1c2824[0x0][_0x423e61['dispField']]);}return'eq'===_0xb2dbe2?html`
8
+ <input name='${_0x389b6a[_0x530543(0x1e6)]}' type="text" hidden></input>
9
+ <input
10
+ type="text"
11
+ readonly
12
+ name='${_0x389b6a['name']}_disp'
13
+ .value=${_0x15babb}
14
+ @click=${_0x4c882b=>{const _0x9df908=_0x530543;_0x4c882b[_0x9df908(0x1e7)]();const _0x16cf3d=_0x4c882b['target'];openResourceCodeSelector(_0x389b6a,_0x475246,_0x1cdcd4=>{const _0x3a234=_0x9df908;let _0x207ef5=_0x1cdcd4?_0x1cdcd4[_0x423e61[_0x3a234(0x1e9)]]:'',_0x229d04=_0x207ef5;_0x1cdcd4&&_0x423e61['dispField']&&(_0x229d04=_0x1cdcd4[_0x423e61['dispField']]),_0x16cf3d[_0x3a234(0x1f7)]=_0x229d04,_0x2c32df['renderRoot']['querySelector'](_0x3a234(0x1f4)+_0x389b6a[_0x3a234(0x1e6)]+'\x22]')[_0x3a234(0x1f7)]=_0x207ef5,_0x16cf3d[_0x3a234(0x1eb)](new Event(_0x3a234(0x1e8),{'bubbles':!0x0})),_0x16cf3d[_0x3a234(0x1eb)](new CustomEvent(_0x3a234(0x1f2),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x389b6a[_0x3a234(0x1e6)],'operator':_0xb2dbe2,'value':_0x207ef5}}));});}}
15
+ />
16
+ `:html``;};
@@ -0,0 +1,16 @@
1
+ (function(_0x146e99,_0x2eebda){const _0x5897cb=a0_0xf97f,_0x1defd7=_0x146e99();while(!![]){try{const _0x5f18cb=parseInt(_0x5897cb(0xa1))/0x1*(parseInt(_0x5897cb(0xb3))/0x2)+parseInt(_0x5897cb(0xa9))/0x3+parseInt(_0x5897cb(0xad))/0x4+parseInt(_0x5897cb(0xaa))/0x5+parseInt(_0x5897cb(0xae))/0x6+-parseInt(_0x5897cb(0xab))/0x7+-parseInt(_0x5897cb(0xb4))/0x8;if(_0x5f18cb===_0x2eebda)break;else _0x1defd7['push'](_0x1defd7['shift']());}catch(_0x546203){_0x1defd7['push'](_0x1defd7['shift']());}}}(a0_0x3c11,0x7d05f));import'../grist/selector/ox-resource-code-selector-popup';import{html}from'lit-html';import{openPopup}from'@operato/layout';function a0_0x3c11(){const _0x4996de=['length','196563EzrTSC','stopPropagation','dispField','renderRoot','name','tMenu','selectorName','options','971457ZCWxac','1904135NYmzTI','7157731cOnDRk','filter','2190324LZiLOB','2566710FCDEsU','filter-change','codeField','large','dispatchEvent','2XhWaut','2735576urKEVw','record','querySelector','value'];a0_0x3c11=function(){return _0x4996de;};return a0_0x3c11();}function a0_0xf97f(_0x2ac315,_0x2efc12){const _0x3c112e=a0_0x3c11();return a0_0xf97f=function(_0xf97fee,_0x913ef8){_0xf97fee=_0xf97fee-0xa0;let _0x1c2307=_0x3c112e[_0xf97fee];return _0x1c2307;},a0_0xf97f(_0x2ac315,_0x2efc12);}import{TermsUtil}from'./../../utils/terms-util';function openResourceCodeSelector(_0x294922,_0x1db2ef,_0x349f3d){const _0x53f45a=a0_0xf97f;var _0x13ee14=html`
2
+ <ox-resource-code-selector-popup
3
+ .value=${_0x1db2ef}
4
+ .options=${_0x294922[_0x53f45a(0xb5)][_0x53f45a(0xa8)]}
5
+ .confirmCallback=${_0x349f3d}
6
+ ></ox-resource-code-selector-popup>
7
+ `;openPopup(_0x13ee14,{'backdrop':!0x0,'size':_0x53f45a(0xb1),'title':TermsUtil[_0x53f45a(0xa6)](_0x294922[_0x53f45a(0xb5)][_0x53f45a(0xa8)][_0x53f45a(0xa7)])});}export const FilterGristResourceCodeSelect=(_0x4a4221,_0x1f2e76,_0x391ade)=>{const _0xc6d500=a0_0xf97f,_0x3068dd=_0x4a4221['filter'],_0x2d9d2a=_0x4a4221['record']['options'],_0x59e164=_0x2d9d2a['codes']&&_0x2d9d2a[_0xc6d500(0xa0)]>0x0?_0x2d9d2a['codes']:void 0x0,{operator:_0x23365a='eq'}=_0x3068dd;let _0x1e48b0=_0x1f2e76||'';if(_0x2d9d2a[_0xc6d500(0xa3)]&&_0x1f2e76&&_0x59e164&&_0x59e164){let _0x51ab8a=_0x59e164[_0xc6d500(0xac)](_0x56b734=>_0x56b734[_0xc6d500(0xb7)]==_0x1f2e76);_0x51ab8a&&_0x51ab8a['length']>0x0&&(_0x1e48b0=_0x51ab8a[0x0][_0x2d9d2a['dispField']]);}return'eq'===_0x23365a?html`
8
+ <input name='${_0x4a4221[_0xc6d500(0xa5)]}' type="text" hidden></input>
9
+ <input
10
+ type="text"
11
+ readonly
12
+ name='${_0x4a4221[_0xc6d500(0xa5)]}_disp'
13
+ .value=${_0x1e48b0}
14
+ @click=${_0x12f98a=>{const _0x4dc758=_0xc6d500;_0x12f98a[_0x4dc758(0xa2)]();const _0xa60728=_0x12f98a['target'];openResourceCodeSelector(_0x4a4221,_0x1f2e76,_0x47dc50=>{const _0x97771=_0x4dc758;let _0x2a1917=_0x47dc50?_0x47dc50[_0x2d9d2a[_0x97771(0xb0)]]:'',_0x8b28cf=_0x2a1917;_0x47dc50&&_0x2d9d2a[_0x97771(0xa3)]&&(_0x8b28cf=_0x47dc50[_0x2d9d2a[_0x97771(0xa3)]]),_0xa60728['value']=_0x8b28cf,_0x391ade[_0x97771(0xa4)][_0x97771(0xb6)]('form\x20[name=\x22'+_0x4a4221[_0x97771(0xa5)]+'\x22]')[_0x97771(0xb7)]=_0x2a1917,_0xa60728[_0x97771(0xb2)](new Event('change',{'bubbles':!0x0})),_0xa60728[_0x97771(0xb2)](new CustomEvent(_0x97771(0xaf),{'bubbles':!0x0,'composed':!0x0,'detail':{'name':_0x4a4221[_0x97771(0xa5)],'operator':_0x23365a,'value':_0x2a1917}}));});}}
15
+ />
16
+ `:html``;};
@@ -1,9 +1,11 @@
1
- const a0_0x26edef=a0_0x5477;(function(_0x242780,_0x3f72f3){const _0x55f505=a0_0x5477,_0x33522b=_0x242780();while(!![]){try{const _0xabe2f8=parseInt(_0x55f505(0x116))/0x1+parseInt(_0x55f505(0x10e))/0x2+-parseInt(_0x55f505(0x108))/0x3+-parseInt(_0x55f505(0x113))/0x4+parseInt(_0x55f505(0x102))/0x5+-parseInt(_0x55f505(0x10c))/0x6+parseInt(_0x55f505(0x11c))/0x7;if(_0xabe2f8===_0x3f72f3)break;else _0x33522b['push'](_0x33522b['shift']());}catch(_0xa9fc6d){_0x33522b['push'](_0x33522b['shift']());}}}(a0_0x339e,0x7c088));import{html}from'lit';function a0_0x5477(_0x2291be,_0x531e5b){const _0x339e2a=a0_0x339e();return a0_0x5477=function(_0x54770c,_0x2adf39){_0x54770c=_0x54770c-0x100;let _0x3711f8=_0x339e2a[_0x54770c];return _0x3711f8;},a0_0x5477(_0x2291be,_0x531e5b);}import{OxGristEditor}from'@operato/data-grist';import{openPopup}from'@operato/layout';import{TermsUtil}from'../../../utils/terms-util';import'../selector/ox-resource-code-selector-popup';function a0_0x339e(){const _0x3fc0f1=['length','properties','937460aGxVFx','tMenu','Enter','833968pJDmkA','dispatchEvent','column','editorTemplate','firstUpdated','push','3260670iRFueK','options','stopPropagation','codes','openSelector','key','4261725PfuPrN','codeField','row','large','value','filter','2544768TkmWym','record','popup','define','3653736AhCpwt','_onkeydown','94988OntrrI','ox-grist-editor-resource-code-selector','display'];a0_0x339e=function(){return _0x3fc0f1;};return a0_0x339e();}export class OxGristEditorResourceCodeSelector extends OxGristEditor{static get[a0_0x26edef(0x112)](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get[a0_0x26edef(0x119)](){const _0xd3ebc0=a0_0x26edef;let _0x4d0cb7,_0x32fdba=this[_0xd3ebc0(0x118)][_0xd3ebc0(0x109)][_0xd3ebc0(0x11d)][_0xd3ebc0(0x11f)]||[];if(this[_0xd3ebc0(0x106)]&&this[_0xd3ebc0(0x106)][_0xd3ebc0(0x111)]>0x0){let _0xd291be=_0x32fdba[_0xd3ebc0(0x107)](_0x267fbc=>_0x267fbc[_0xd3ebc0(0x106)]===this[_0xd3ebc0(0x106)]);_0x4d0cb7=_0xd291be&&_0xd291be[_0xd3ebc0(0x111)]>0x0?_0xd291be[0x0][_0xd3ebc0(0x110)]:'';}return html`
2
- ${_0x4d0cb7?html` <span tabindex="0" style="flex:1">${_0x4d0cb7}</span> `:html`<span tabindex="0"></span>`}
3
- `;}async[a0_0x26edef(0x11a)](){const _0x403ce7=a0_0x26edef;super[_0x403ce7(0x11a)]();}['_onclick'](_0x4e2a07){const _0x40248f=a0_0x26edef;_0x4e2a07[_0x40248f(0x11e)](),this[_0x40248f(0x100)]();}[a0_0x26edef(0x10d)](_0x453448){const _0x26085d=a0_0x26edef;_0x26085d(0x115)==_0x453448[_0x26085d(0x101)]&&(_0x453448['stopPropagation'](),this[_0x26085d(0x100)]());}[a0_0x26edef(0x100)](){const _0x9aaf96=a0_0x26edef;this[_0x9aaf96(0x10a)]&&delete this[_0x9aaf96(0x10a)];var {selectorName:_0xfc2ac2=''}=this[_0x9aaf96(0x118)][_0x9aaf96(0x109)][_0x9aaf96(0x11d)]||{},_0xd250db=html`
1
+ function a0_0x4b48(_0x12ac43,_0x2baecf){const _0x185cfe=a0_0x185c();return a0_0x4b48=function(_0x4b4878,_0x586a63){_0x4b4878=_0x4b4878-0x10d;let _0x1f39f2=_0x185cfe[_0x4b4878];return _0x1f39f2;},a0_0x4b48(_0x12ac43,_0x2baecf);}const a0_0x4e2283=a0_0x4b48;(function(_0x59ddcc,_0x35a2d6){const _0x2eda86=a0_0x4b48,_0x3fec68=_0x59ddcc();while(!![]){try{const _0x5b1419=-parseInt(_0x2eda86(0x118))/0x1+-parseInt(_0x2eda86(0x123))/0x2+-parseInt(_0x2eda86(0x12d))/0x3*(-parseInt(_0x2eda86(0x11b))/0x4)+-parseInt(_0x2eda86(0x11c))/0x5*(parseInt(_0x2eda86(0x125))/0x6)+parseInt(_0x2eda86(0x12b))/0x7*(-parseInt(_0x2eda86(0x11f))/0x8)+-parseInt(_0x2eda86(0x119))/0x9*(-parseInt(_0x2eda86(0x117))/0xa)+parseInt(_0x2eda86(0x126))/0xb;if(_0x5b1419===_0x35a2d6)break;else _0x3fec68['push'](_0x3fec68['shift']());}catch(_0x14c4e4){_0x3fec68['push'](_0x3fec68['shift']());}}}(a0_0x185c,0xc1517));import{html}from'lit';import{OxGristEditor}from'@operato/data-grist';function a0_0x185c(){const _0x35afcd=['_onkeydown','codes','push','value','row','ox-grist-editor-resource-code-selector','field-change','column','bind','popup','key','editorTemplate','181290KDbWOf','180948gruUIo','405ExZWHX','firstUpdated','7628ElKnSN','85LWllST','filter','dispatchEvent','3680eVULaz','codeField','length','large','1570176mxCeRE','dispField','476838ByXnQy','27727986usbMoA','record','options','properties','Enter','6685diumlS','openSelector','333uydXiq','_onclick'];a0_0x185c=function(){return _0x35afcd;};return a0_0x185c();}import{openPopup}from'@operato/layout';import{TermsUtil}from'../../../utils/terms-util';import'../selector/ox-resource-code-selector-popup';export class OxGristEditorResourceCodeSelector extends OxGristEditor{static get[a0_0x4e2283(0x129)](){return{'value':Object,'column':Object,'record':Object,'rowIndex':Number,'field':Object,'popup':Object};}get[a0_0x4e2283(0x116)](){const _0x1fd262=a0_0x4e2283;let _0x3dd31c,_0xe08c71=this[_0x1fd262(0x112)][_0x1fd262(0x127)][_0x1fd262(0x128)][_0x1fd262(0x130)]||[];if(!this[_0x1fd262(0x112)][_0x1fd262(0x127)][_0x1fd262(0x128)][_0x1fd262(0x124)])return html`
2
+ ${this['value']?html` <span tabindex="0" style="flex:1">${this[_0x1fd262(0x10e)]}</span> `:html`<span tabindex="0"></span>`}
3
+ `;if(this['value']&&this[_0x1fd262(0x10e)]['length']>0x0){let _0x41471d=_0xe08c71[_0x1fd262(0x11d)](_0x41b7b3=>_0x41b7b3[_0x1fd262(0x10e)]===this['value']);_0x3dd31c=_0x41471d&&_0x41471d[_0x1fd262(0x121)]>0x0?_0x41471d[0x0]['display']:'';}return html`
4
+ ${_0x3dd31c?html` <span tabindex="0" style="flex:1">${_0x3dd31c}</span> `:html`<span tabindex="0"></span>`}
5
+ `;}async['firstUpdated'](){const _0xa1d01f=a0_0x4e2283;super[_0xa1d01f(0x11a)]();}[a0_0x4e2283(0x12e)](_0x4d7905){const _0x14adce=a0_0x4e2283;_0x4d7905['stopPropagation'](),this[_0x14adce(0x12c)]();}[a0_0x4e2283(0x12f)](_0x1fb607){const _0x2df49d=a0_0x4e2283;_0x2df49d(0x12a)==_0x1fb607[_0x2df49d(0x115)]&&(_0x1fb607['stopPropagation'](),this['openSelector']());}['openSelector'](){const _0x3515a1=a0_0x4e2283;this['popup']&&delete this['popup'];var {selectorName:_0x26d4d3=''}=this[_0x3515a1(0x112)]['record']['options']||{},_0x882e11=html`
4
6
  <ox-resource-code-selector-popup
5
- .value=${this[_0x9aaf96(0x106)]}
6
- .options=${this[_0x9aaf96(0x118)]['record'][_0x9aaf96(0x11d)]}
7
- .confirmCallback=${(_0x45bed0=>{const _0x193650=_0x9aaf96;let _0xf2f753=this[_0x193650(0x118)][_0x193650(0x109)][_0x193650(0x11d)][_0x193650(0x103)],_0x250e8a=this[_0x193650(0x118)][_0x193650(0x109)][_0x193650(0x11d)]['dispField'];this[_0x193650(0x118)]['record'][_0x193650(0x11d)][_0x193650(0x11f)]||(this[_0x193650(0x118)][_0x193650(0x109)][_0x193650(0x11d)]['codes']=[]);let _0x38e441=this['column'][_0x193650(0x109)][_0x193650(0x11d)][_0x193650(0x11f)][_0x193650(0x107)](_0x405caa=>_0x405caa['value']==_0x45bed0[_0xf2f753]);_0x38e441&&0x0!=_0x38e441['length']||this[_0x193650(0x118)]['record']['options'][_0x193650(0x11f)][_0x193650(0x11b)]({'value':_0x45bed0[_0xf2f753],'display':_0x45bed0[_0x250e8a]}),this[_0x193650(0x117)](new CustomEvent('field-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this[_0x193650(0x106)],'after':_0x45bed0?_0x45bed0[_0xf2f753]:null,'record':this[_0x193650(0x109)],'column':this['column'],'row':this[_0x193650(0x104)]}}));})['bind'](this)}
7
+ .value=${this[_0x3515a1(0x10e)]}
8
+ .options=${this[_0x3515a1(0x112)][_0x3515a1(0x127)][_0x3515a1(0x128)]}
9
+ .confirmCallback=${(_0x1f345c=>{const _0x3ebca6=_0x3515a1;let _0x129c7d=this['column']['record'][_0x3ebca6(0x128)][_0x3ebca6(0x120)],_0x278e16=this[_0x3ebca6(0x112)][_0x3ebca6(0x127)][_0x3ebca6(0x128)]['dispField'];this['column'][_0x3ebca6(0x127)][_0x3ebca6(0x128)][_0x3ebca6(0x130)]||(this['column'][_0x3ebca6(0x127)][_0x3ebca6(0x128)][_0x3ebca6(0x130)]=[]);let _0x5645cb=this[_0x3ebca6(0x112)][_0x3ebca6(0x127)]['options'][_0x3ebca6(0x130)][_0x3ebca6(0x11d)](_0x3414f4=>_0x3414f4[_0x3ebca6(0x10e)]==_0x1f345c[_0x129c7d]);_0x5645cb&&0x0!=_0x5645cb[_0x3ebca6(0x121)]||this['column'][_0x3ebca6(0x127)]['options'][_0x3ebca6(0x130)][_0x3ebca6(0x10d)]({'value':_0x1f345c[_0x129c7d],'display':_0x1f345c[_0x278e16]}),this[_0x3ebca6(0x11e)](new CustomEvent(_0x3ebca6(0x111),{'bubbles':!0x0,'composed':!0x0,'detail':{'before':this['value'],'after':_0x1f345c?_0x1f345c[_0x129c7d]:null,'record':this[_0x3ebca6(0x127)],'column':this['column'],'row':this[_0x3ebca6(0x10f)]}}));})[_0x3515a1(0x113)](this)}
8
10
  ></ox-resource-code-selector-popup>
9
- `;this[_0x9aaf96(0x10a)]=openPopup(_0xd250db,{'backdrop':!0x0,'size':_0x9aaf96(0x105),'title':TermsUtil[_0x9aaf96(0x114)](_0xfc2ac2)});}}customElements[a0_0x26edef(0x10b)](a0_0x26edef(0x10f),OxGristEditorResourceCodeSelector);
11
+ `;this[_0x3515a1(0x114)]=openPopup(_0x882e11,{'backdrop':!0x0,'size':_0x3515a1(0x122),'title':TermsUtil['tMenu'](_0x26d4d3)});}}customElements['define'](a0_0x4e2283(0x110),OxGristEditorResourceCodeSelector);
@@ -1 +1 @@
1
- (function(_0x527692,_0x299b37){const _0xd6dcc8=a0_0x5594,_0xd2d769=_0x527692();while(!![]){try{const _0x564a67=parseInt(_0xd6dcc8(0x80))/0x1*(-parseInt(_0xd6dcc8(0x7f))/0x2)+-parseInt(_0xd6dcc8(0x82))/0x3*(-parseInt(_0xd6dcc8(0x7e))/0x4)+parseInt(_0xd6dcc8(0x7c))/0x5+parseInt(_0xd6dcc8(0x8a))/0x6*(-parseInt(_0xd6dcc8(0x88))/0x7)+-parseInt(_0xd6dcc8(0x81))/0x8*(parseInt(_0xd6dcc8(0x7a))/0x9)+parseInt(_0xd6dcc8(0x7d))/0xa*(parseInt(_0xd6dcc8(0x86))/0xb)+-parseInt(_0xd6dcc8(0x85))/0xc;if(_0x564a67===_0x299b37)break;else _0xd2d769['push'](_0xd2d769['shift']());}catch(_0x22d743){_0xd2d769['push'](_0xd2d769['shift']());}}}(a0_0x3756,0x46aac));import{html}from'lit';import{detectOverflow}from'@operato/utils';function a0_0x5594(_0x4e48de,_0x22a82f){const _0x3756bc=a0_0x3756();return a0_0x5594=function(_0x5594de,_0x3b9c49){_0x5594de=_0x5594de-0x78;let _0x38a84a=_0x3756bc[_0x5594de];return _0x38a84a;},a0_0x5594(_0x4e48de,_0x22a82f);}function a0_0x3756(){const _0x1b34d4=['data-tooltip','record','63iAaDAj','target','1526900BMbPrk','110PNKRUe','1516fQRMRj','86620qdinyg','5DTFBQQ','330696fGlXsE','4077kBAzxP','filter','removeAttribute','3443760OOTTnd','326117kdbzVM','length','7FbVIyn','value','385302GlgudK','display'];a0_0x3756=function(){return _0x1b34d4;};return a0_0x3756();}function onmouseover(_0x36b5b8){const _0x4a83cb=a0_0x5594,_0x238b4b=_0x36b5b8[_0x4a83cb(0x7b)];detectOverflow(_0x238b4b)&&_0x238b4b['setAttribute'](_0x4a83cb(0x78),_0x238b4b['textContent']);}function onmouseout(_0x1343c4){const _0x50d637=a0_0x5594;_0x1343c4[_0x50d637(0x7b)][_0x50d637(0x84)]('data-tooltip');}export const OxGristRendererResourceCodeSelector=(_0x56ff61,_0xde5195,_0x10caeb,_0x2be8af,_0x2ef4c9)=>{const _0x1a5dc6=a0_0x5594;let _0x568ad7=_0xde5195[_0x1a5dc6(0x79)]['options']['codes']||[],_0x4959fd='';if(_0x56ff61&&_0x56ff61[_0x1a5dc6(0x87)]>0x0){let _0x5eac51=_0x568ad7[_0x1a5dc6(0x83)](_0x2268a2=>_0x2268a2[_0x1a5dc6(0x89)]===_0x56ff61);_0x4959fd=_0x5eac51&&_0x5eac51[_0x1a5dc6(0x87)]>0x0?_0x5eac51[0x0][_0x1a5dc6(0x8b)]:_0x56ff61;}return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x4959fd}</span>`;};
1
+ (function(_0x18aac3,_0x49f3f2){const _0x49341a=a0_0xa43a,_0x541d94=_0x18aac3();while(!![]){try{const _0x465923=parseInt(_0x49341a(0x1b5))/0x1*(-parseInt(_0x49341a(0x1b8))/0x2)+-parseInt(_0x49341a(0x1be))/0x3*(-parseInt(_0x49341a(0x1b6))/0x4)+parseInt(_0x49341a(0x1c1))/0x5*(parseInt(_0x49341a(0x1bc))/0x6)+-parseInt(_0x49341a(0x1b1))/0x7*(-parseInt(_0x49341a(0x1b3))/0x8)+parseInt(_0x49341a(0x1ac))/0x9*(-parseInt(_0x49341a(0x1af))/0xa)+parseInt(_0x49341a(0x1b4))/0xb+-parseInt(_0x49341a(0x1bf))/0xc;if(_0x465923===_0x49f3f2)break;else _0x541d94['push'](_0x541d94['shift']());}catch(_0x2e6c62){_0x541d94['push'](_0x541d94['shift']());}}}(a0_0x3af6,0xb8091));import{html}from'lit';function a0_0x3af6(){const _0x5c079f=['10yUTGAM','dispField','19166UtqByo','codes','3544CPLvuP','1067572MfBIKK','1VgZgMB','104eJwUYO','options','1132266FYvTVs','record','setAttribute','target','42SAhOwi','filter','55194WXSPNi','14552604oNRKHz','value','911035AqbwAv','display','4780116btCNkF','length','data-tooltip'];a0_0x3af6=function(){return _0x5c079f;};return a0_0x3af6();}import{detectOverflow}from'@operato/utils';function onmouseover(_0x55874a){const _0x526a50=a0_0xa43a,_0x482ce9=_0x55874a['target'];detectOverflow(_0x482ce9)&&_0x482ce9[_0x526a50(0x1ba)](_0x526a50(0x1ae),_0x482ce9['textContent']);}function onmouseout(_0x2a4b79){const _0x1fe8b4=a0_0xa43a;_0x2a4b79[_0x1fe8b4(0x1bb)]['removeAttribute']('data-tooltip');}function a0_0xa43a(_0x6f28e6,_0xca050a){const _0x3af69f=a0_0x3af6();return a0_0xa43a=function(_0xa43ad,_0x428c30){_0xa43ad=_0xa43ad-0x1ab;let _0x1e4381=_0x3af69f[_0xa43ad];return _0x1e4381;},a0_0xa43a(_0x6f28e6,_0xca050a);}export const OxGristRendererResourceCodeSelector=(_0x38af6f,_0x37373d,_0x280906,_0x326946,_0x575ab7)=>{const _0x350cc3=a0_0xa43a;if(!_0x37373d[_0x350cc3(0x1b9)][_0x350cc3(0x1b7)][_0x350cc3(0x1b0)])return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x38af6f}</span>`;_0x37373d[_0x350cc3(0x1b9)][_0x350cc3(0x1b7)]['codes']||(_0x37373d[_0x350cc3(0x1b9)]['options'][_0x350cc3(0x1b2)]=[]);let _0x35bb1b='';if(_0x38af6f&&_0x38af6f[_0x350cc3(0x1ad)]>0x0){let _0x5f0636=_0x37373d['record']['options'][_0x350cc3(0x1b2)][_0x350cc3(0x1bd)](_0x24d57f=>_0x24d57f[_0x350cc3(0x1c0)]===_0x38af6f);_0x35bb1b=_0x5f0636&&_0x5f0636['length']>0x0?_0x5f0636[0x0][_0x350cc3(0x1ab)]:_0x38af6f;}return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x35bb1b}</span>`;};
@@ -1,4 +1,4 @@
1
- const a0_0x41825f=a0_0x26f7;(function(_0x176b78,_0x3b03bd){const _0x252a9e=a0_0x26f7,_0x99d04a=_0x176b78();while(!![]){try{const _0x1cee56=parseInt(_0x252a9e(0x1c5))/0x1+parseInt(_0x252a9e(0x1c4))/0x2+-parseInt(_0x252a9e(0x1cd))/0x3*(parseInt(_0x252a9e(0x201))/0x4)+parseInt(_0x252a9e(0x1d5))/0x5*(-parseInt(_0x252a9e(0x1f0))/0x6)+parseInt(_0x252a9e(0x1f5))/0x7+parseInt(_0x252a9e(0x1fd))/0x8+-parseInt(_0x252a9e(0x1cf))/0x9;if(_0x1cee56===_0x3b03bd)break;else _0x99d04a['push'](_0x99d04a['shift']());}catch(_0x11ccf1){_0x99d04a['push'](_0x99d04a['shift']());}}}(a0_0x2177,0x991a0));import{css,html,LitElement}from'lit';function a0_0x26f7(_0x26ca74,_0x276e60){const _0x217775=a0_0x2177();return a0_0x26f7=function(_0x26f760,_0x368155){_0x26f760=_0x26f760-0x1c2;let _0x4ef1e4=_0x217775[_0x26f760];return _0x4ef1e4;},a0_0x26f7(_0x26ca74,_0x276e60);}function a0_0x2177(){const _0xa33d2c=['name','grist','6312012oojdkT','render','string','filters','selected','header','getGristColumnConfig2','showToast','9902224qNSFjQ','push','queryName','filter','2984YxxuZJ','handlers','filterFields','styles','confirmCallback','getGristGuttersConfig','sorters','select','record','define','isArray','dispField','#ox-grist','scenario','querySelector','2163076KgMkJZ','995139lTMPCi','values','type','entity','gridConfig','columns','selectRecord','resource-object','4350HBVpab','empty','16480269eAnDvx','tButton','getCodeByEntity','cancel','GRID','search_hidden_fields','1690565ejwFEM','clickCancel','forEach','codes','NOTHING_SELECTED','bind','args','ox-resource-code-selector-popup','info','rows','object','tLabel','searchByPagination','clickSelect','left','tText','getSelectColumns','select-row-toggle','connectedCallback','getCodeSelectorData','firstUpdated','getGristPagination100Config','getGristSelectableConfig','code','codeField','options','fetchHandler','12LVJPZH','length','clickEmpty'];a0_0x2177=function(){return _0xa33d2c;};return a0_0x2177();}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{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class OxResourceCodeSelectorPopup extends LitElement{static [a0_0x41825f(0x204)]=[CommonGristStyles,ButtonContainerStyles,css`
1
+ const a0_0x52a12e=a0_0x4df2;(function(_0x5e9c24,_0x2fa13d){const _0x3f31af=a0_0x4df2,_0x522429=_0x5e9c24();while(!![]){try{const _0x45254c=parseInt(_0x3f31af(0x13b))/0x1+parseInt(_0x3f31af(0x143))/0x2*(-parseInt(_0x3f31af(0x15d))/0x3)+-parseInt(_0x3f31af(0x140))/0x4*(-parseInt(_0x3f31af(0x135))/0x5)+-parseInt(_0x3f31af(0x166))/0x6+parseInt(_0x3f31af(0x13a))/0x7*(-parseInt(_0x3f31af(0x16b))/0x8)+-parseInt(_0x3f31af(0x139))/0x9+parseInt(_0x3f31af(0x14d))/0xa;if(_0x45254c===_0x2fa13d)break;else _0x522429['push'](_0x522429['shift']());}catch(_0x3aadb8){_0x522429['push'](_0x522429['shift']());}}}(a0_0x252d,0xd1040));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../../utils/terms-util';function a0_0x252d(){const _0x2cbf2f=['code','bind','402xzhvUs','string','firstUpdated','getGristColumnConfig2','entity','name','grist','values','filterFields','6083016nbRjQs','styles','args','getCodeByScenario','codes','3410776aezUsh','length','tButton','getCodeSelectorData','columns','getGristPagination100Config','gridConfig','tLabel','dispField','getGristGuttersConfig','sorters','info','#ox-grist','map','5cFfFVz','push','left','confirmCallback','15105447yRgOHi','7NEqlaF','103313hNyKAz','select','filter','type','object','1856164arIlUO','header','connectedCallback','9290AiWYnT','clickCancel','handlers','selectRecord','ox-resource-code-selector-popup','codeField','define','getGristSelectableConfig','filters','tText','40297700zspbPm','getCodeByEntity','getSelectColumns','forEach','fetchHandler','LIST','selected','isArray','record','clickSelect','options','querySelector','select-row-toggle','clickEmpty'];a0_0x252d=function(){return _0x2cbf2f;};return a0_0x252d();}import{ValueUtil}from'../../../utils/value-util';function a0_0x4df2(_0x594691,_0x29a4a6){const _0x252d92=a0_0x252d();return a0_0x4df2=function(_0x4df26c,_0xec7ef0){_0x4df26c=_0x4df26c-0x12a;let _0x34eccc=_0x252d92[_0x4df26c];return _0x34eccc;},a0_0x4df2(_0x594691,_0x29a4a6);}import{ServiceUtil}from'../../../utils/service-util';import{MetaApi}from'../../../utils/meta-api';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class OxResourceCodeSelectorPopup extends LitElement{static [a0_0x52a12e(0x167)]=[CommonGristStyles,ButtonContainerStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -17,9 +17,9 @@ const a0_0x41825f=a0_0x26f7;(function(_0x176b78,_0x3b03bd){const _0x252a9e=a0_0x
17
17
  display: flex;
18
18
  margin-left: auto;
19
19
  }
20
- `];async[a0_0x41825f(0x1e7)](){const _0x374d4c=a0_0x41825f;this['search_hidden_fields']=this[_0x374d4c(0x1ee)][_0x374d4c(0x1f8)]||[];let _0x3079b1=[...MetaApi[_0x374d4c(0x206)](!0x0,!0x1)],_0x1f96a1=(this[_0x374d4c(0x1ee)]['filterFields']&&this['options'][_0x374d4c(0x203)][_0x374d4c(0x1f1)]>0x0?this[_0x374d4c(0x1ee)][_0x374d4c(0x203)]:[this['options'][_0x374d4c(0x1ed)],this[_0x374d4c(0x1ee)][_0x374d4c(0x20c)]])['map'](_0x3cd5b3=>{const _0x4cd269=_0x374d4c;let {name:_0x5c55c7,operator:_0x3d7c85='eq'}=_0x4cd269(0x1df)==typeof _0x3cd5b3?_0x3cd5b3:{'name':_0x3cd5b3};return{'name':_0x5c55c7,'operator':_0x3d7c85};});if(this[_0x374d4c(0x1ee)]['select']&&this[_0x374d4c(0x1ee)][_0x374d4c(0x208)]['length']>0x0)for(let _0x50c309=0x0;_0x50c309<this['options']['select'][_0x374d4c(0x1f1)];_0x50c309++){let {type:_0xa52769=_0x374d4c(0x1f7),name:_0x579afe,hidden:_0x19b574=!0x1,align:_0x4c789c=_0x374d4c(0x1e3),header:_0x297983,sortable:_0x36f30a=!0x1,width:_0x4ba94c=0x87,options:_0x47666b}=this['options']['select'][_0x50c309];if(0x1==_0x19b574)_0x3079b1['push']({'type':_0x374d4c(0x1f7),'name':_0x579afe,'hidden':!0x0});else{let _0x2215aa=MetaApi[_0x374d4c(0x1fb)](_0xa52769,_0x579afe,_0x297983||_0x579afe,_0x4c789c,!0x1,_0x36f30a,_0x4ba94c);_0x374d4c(0x208)===_0xa52769?Array[_0x374d4c(0x20b)](_0x47666b)?_0x2215aa['record'][_0x374d4c(0x1ee)]=_0x47666b:_0x374d4c(0x1ec)===_0x47666b[_0x374d4c(0x1c7)]?_0x2215aa['record'][_0x374d4c(0x1ee)]=await ServiceUtil[_0x374d4c(0x1e8)](_0x47666b[_0x374d4c(0x1c6)]?_0x47666b[_0x374d4c(0x1c6)]:_0x47666b['name']):_0x374d4c(0x1c2)===_0x47666b[_0x374d4c(0x1c7)]?_0x2215aa[_0x374d4c(0x209)][_0x374d4c(0x1ee)]=await ServiceUtil['getCodeByScenario'](_0x47666b['name'],_0x47666b['args']):_0x374d4c(0x1c8)===_0x47666b[_0x374d4c(0x1c7)]&&(_0x2215aa[_0x374d4c(0x209)]['options']=await ServiceUtil[_0x374d4c(0x1d1)](_0x47666b[_0x374d4c(0x1db)])):'object'===_0xa52769||_0x374d4c(0x1cc)===_0xa52769?(_0x47666b[_0x374d4c(0x208)]&&_0x47666b['select']['forEach'](_0x4cd075=>{const _0x37ef3e=_0x374d4c;_0x4cd075[_0x37ef3e(0x1fa)]||(_0x4cd075[_0x37ef3e(0x1fa)]=_0x4cd075[_0x37ef3e(0x1f3)]),_0x4cd075['header']=TermsUtil[_0x37ef3e(0x1e0)](_0x4cd075[_0x37ef3e(0x1fa)]);}),_0x2215aa[_0x374d4c(0x209)][_0x374d4c(0x1ee)]=_0x47666b):'resource-code-selector'==_0xa52769&&(_0x2215aa['record'][_0x374d4c(0x1ee)]=object_opt,_0x2215aa[_0x374d4c(0x209)][_0x374d4c(0x1ee)][_0x374d4c(0x1d8)]=await ServiceUtil[_0x374d4c(0x1d1)](object_opt)),_0x3079b1[_0x374d4c(0x1fe)](_0x2215aa);}}else _0x3079b1[_0x374d4c(0x1fe)](MetaApi[_0x374d4c(0x1fb)](_0x374d4c(0x1f7),this['options'][_0x374d4c(0x1ed)],this[_0x374d4c(0x1ee)][_0x374d4c(0x1ed)],_0x374d4c(0x1e3),!0x1,!0x0,0xb4)),_0x3079b1['push'](MetaApi[_0x374d4c(0x1fb)]('string',this['options'][_0x374d4c(0x20c)],this['options'][_0x374d4c(0x20c)],'left',!0x1,!0x0,0x12c));_0x3079b1[_0x374d4c(0x1d7)](_0x2a5041=>{const _0x47c65c=_0x374d4c;let _0x10e5dd=_0x1f96a1[_0x47c65c(0x200)](_0x5f3559=>_0x2a5041['name']==_0x5f3559[_0x47c65c(0x1f3)]);_0x10e5dd&&_0x10e5dd[_0x47c65c(0x1f1)]>0x0&&(_0x2a5041['filter']=_0x10e5dd);});let _0x3940c4={'rows':MetaApi[_0x374d4c(0x1eb)](!0x1),'pagination':MetaApi[_0x374d4c(0x1ea)](),'appendable':!0x1,'columns':_0x3079b1,'sorters':[...this[_0x374d4c(0x1ee)][_0x374d4c(0x207)]||[]]};_0x3940c4[_0x374d4c(0x1de)][_0x374d4c(0x202)]={'click':_0x374d4c(0x1e6),'dblclick':(_0x3bcf25,_0x2b156a,_0x2ad301,_0x6080e4,_0x5070c6,_0x24f7f4)=>{const _0x5b6b48=_0x374d4c;this[_0x5b6b48(0x1cb)](_0x6080e4);}},this[_0x374d4c(0x1c9)]=_0x3940c4,await super['connectedCallback']();}async[a0_0x41825f(0x1e9)](){const _0x364134=a0_0x41825f;await super[_0x364134(0x1e9)]();}[a0_0x41825f(0x1f6)](){const _0x56d1f3=a0_0x41825f;return html`
21
- <ox-grist id="ox-grist" .config=${this['gridConfig']} .mode=${isMobileDevice()?'LIST':_0x56d1f3(0x1d3)} auto-fetch
22
- .fetchHandler=${this[_0x56d1f3(0x1ef)][_0x56d1f3(0x1da)](this)}>
20
+ `];async[a0_0x52a12e(0x142)](){const _0x1aa524=a0_0x52a12e;this['search_hidden_fields']=this['options'][_0x1aa524(0x14b)]||[];let _0x33900e=[...MetaApi[_0x1aa524(0x130)](!0x0,!0x1)],_0x1e6175=(this[_0x1aa524(0x157)]['filterFields']&&this['options']['filterFields'][_0x1aa524(0x16c)]>0x0?this[_0x1aa524(0x157)][_0x1aa524(0x165)]:[this['options'][_0x1aa524(0x148)]])[_0x1aa524(0x134)](_0x35d6f5=>{let {name:_0x53498e,operator:_0xf27066='eq'}='object'==typeof _0x35d6f5?_0x35d6f5:{'name':_0x35d6f5};return{'name':_0x53498e,'operator':_0xf27066};});if(this[_0x1aa524(0x157)]['select']&&this[_0x1aa524(0x157)][_0x1aa524(0x13c)][_0x1aa524(0x16c)]>0x0)for(let _0xe9265f=0x0;_0xe9265f<this[_0x1aa524(0x157)][_0x1aa524(0x13c)][_0x1aa524(0x16c)];_0xe9265f++){let {type:_0x1d1a30=_0x1aa524(0x15e),name:_0x4b2d6d,hidden:_0x45b85a=!0x1,align:_0x4d0301='left',header:_0x407bcc,sortable:_0x3fa8da=!0x1,width:_0x394593=0x87,options:_0x1bfaec}=this[_0x1aa524(0x157)][_0x1aa524(0x13c)][_0xe9265f];if(0x1==_0x45b85a)_0x33900e[_0x1aa524(0x136)]({'type':_0x1aa524(0x15e),'name':_0x4b2d6d,'hidden':!0x0});else{let _0x5829b6=MetaApi[_0x1aa524(0x160)](_0x1d1a30,_0x4b2d6d,_0x407bcc||_0x4b2d6d,_0x4d0301,!0x1,_0x3fa8da,_0x394593);'select'===_0x1d1a30?Array[_0x1aa524(0x154)](_0x1bfaec)?_0x5829b6[_0x1aa524(0x155)][_0x1aa524(0x157)]=_0x1bfaec:_0x1aa524(0x15b)===_0x1bfaec['type']?_0x5829b6[_0x1aa524(0x155)][_0x1aa524(0x157)]=await ServiceUtil[_0x1aa524(0x12a)](_0x1bfaec[_0x1aa524(0x164)]?_0x1bfaec[_0x1aa524(0x164)]:_0x1bfaec[_0x1aa524(0x162)]):'scenario'===_0x1bfaec['type']?_0x5829b6[_0x1aa524(0x155)][_0x1aa524(0x157)]=await ServiceUtil[_0x1aa524(0x169)](_0x1bfaec['name'],_0x1bfaec[_0x1aa524(0x168)]):_0x1aa524(0x161)===_0x1bfaec[_0x1aa524(0x13e)]&&(_0x5829b6[_0x1aa524(0x155)][_0x1aa524(0x157)]=await ServiceUtil[_0x1aa524(0x14e)](_0x1bfaec[_0x1aa524(0x168)])):_0x1aa524(0x13f)===_0x1d1a30||'resource-object'===_0x1d1a30?(_0x1bfaec[_0x1aa524(0x13c)]&&_0x1bfaec[_0x1aa524(0x13c)][_0x1aa524(0x150)](_0x5be5ca=>{const _0x584269=_0x1aa524;_0x5be5ca[_0x584269(0x141)]||(_0x5be5ca[_0x584269(0x141)]=_0x5be5ca[_0x584269(0x162)]),_0x5be5ca[_0x584269(0x141)]=TermsUtil[_0x584269(0x12e)](_0x5be5ca[_0x584269(0x141)]);}),_0x5829b6[_0x1aa524(0x155)][_0x1aa524(0x157)]=_0x1bfaec):'resource-code-selector'==_0x1d1a30&&(_0x5829b6[_0x1aa524(0x155)][_0x1aa524(0x157)]=object_opt,_0x5829b6[_0x1aa524(0x155)][_0x1aa524(0x157)][_0x1aa524(0x16a)]=await ServiceUtil['getCodeByEntity'](object_opt)),_0x33900e[_0x1aa524(0x136)](_0x5829b6);}}else _0x33900e[_0x1aa524(0x136)](MetaApi[_0x1aa524(0x160)](_0x1aa524(0x15e),this[_0x1aa524(0x157)][_0x1aa524(0x148)],this[_0x1aa524(0x157)][_0x1aa524(0x148)],'left',!0x1,!0x0,0xb4)),this[_0x1aa524(0x157)][_0x1aa524(0x12f)]&&_0x33900e[_0x1aa524(0x136)](MetaApi[_0x1aa524(0x160)](_0x1aa524(0x15e),this['options'][_0x1aa524(0x12f)],this[_0x1aa524(0x157)][_0x1aa524(0x12f)],_0x1aa524(0x137),!0x1,!0x0,0x12c));_0x33900e[_0x1aa524(0x150)](_0x56646e=>{const _0x308cea=_0x1aa524;let _0x44b195=_0x1e6175[_0x308cea(0x13d)](_0x51eece=>_0x56646e['name']==_0x51eece[_0x308cea(0x162)]);_0x44b195&&_0x44b195[_0x308cea(0x16c)]>0x0&&(_0x56646e[_0x308cea(0x13d)]=_0x44b195);});let _0x1c074e={'rows':MetaApi[_0x1aa524(0x14a)](!0x1),'pagination':MetaApi[_0x1aa524(0x12c)](),'appendable':!0x1,'columns':_0x33900e,'sorters':[...this['options'][_0x1aa524(0x131)]||[]]};_0x1c074e['rows'][_0x1aa524(0x145)]={'click':_0x1aa524(0x159),'dblclick':(_0x405d6b,_0x45b57d,_0x3dc2fb,_0x18d0bb,_0x18d407,_0x3c9a15)=>{const _0x394858=_0x1aa524;this[_0x394858(0x146)](_0x18d0bb);}},this['gridConfig']=_0x1c074e,await super[_0x1aa524(0x142)]();}async['firstUpdated'](){const _0x12e2e6=a0_0x52a12e;await super[_0x12e2e6(0x15f)]();}['render'](){const _0x2faa38=a0_0x52a12e;return html`
21
+ <ox-grist id="ox-grist" .config=${this[_0x2faa38(0x12d)]} .mode=${isMobileDevice()?_0x2faa38(0x152):'GRID'} auto-fetch
22
+ .fetchHandler=${this[_0x2faa38(0x151)]['bind'](this)}>
23
23
  <div slot="headroom">
24
24
  <div id="filters">
25
25
  <ox-filters-form></ox-filters-form>
@@ -27,14 +27,14 @@ const a0_0x41825f=a0_0x26f7;(function(_0x176b78,_0x3b03bd){const _0x252a9e=a0_0x
27
27
  </div>
28
28
  </ox-grist>
29
29
  <div id="button-container" class="button-container">
30
- <mwc-button raised label="${TermsUtil[_0x56d1f3(0x1d0)](_0x56d1f3(0x1ce))}" style="margin-left:7px;margin-top:7px;"
31
- @click=${this[_0x56d1f3(0x1f2)][_0x56d1f3(0x1da)](this)}>
30
+ <mwc-button raised label="${TermsUtil['tButton']('empty')}" style="margin-left:7px;margin-top:7px;"
31
+ @click=${this['clickEmpty']['bind'](this)}>
32
32
  </mwc-button>
33
- <mwc-button raised label="${TermsUtil[_0x56d1f3(0x1d0)](_0x56d1f3(0x1d2))}" style="margin-left:7px;margin-top:7px;"
34
- @click=${this[_0x56d1f3(0x1d6)][_0x56d1f3(0x1da)](this)}>
33
+ <mwc-button raised label="${TermsUtil[_0x2faa38(0x16d)]('cancel')}" style="margin-left:7px;margin-top:7px;"
34
+ @click=${this[_0x2faa38(0x144)]['bind'](this)}>
35
35
  </mwc-button>
36
- <mwc-button raised label="${TermsUtil[_0x56d1f3(0x1d0)]('select')}" style="margin-left:7px;margin-top:7px;"
37
- @click=${this[_0x56d1f3(0x1e2)][_0x56d1f3(0x1da)](this)}>
36
+ <mwc-button raised label="${TermsUtil[_0x2faa38(0x16d)]('select')}" style="margin-left:7px;margin-top:7px;"
37
+ @click=${this[_0x2faa38(0x156)][_0x2faa38(0x15c)](this)}>
38
38
  </mwc-button>
39
39
  </div>
40
- `;}get[a0_0x41825f(0x1f4)](){const _0x1a63c8=a0_0x41825f;return this['shadowRoot'][_0x1a63c8(0x1c3)](_0x1a63c8(0x20d));}async[a0_0x41825f(0x1ef)]({page:_0x319e3c=0x0,limit:_0x2cf1da=0x0,sorters:_0x12f5c9=[],filters:_0x399a37=[]}){const _0x539454=a0_0x41825f;let _0x541a66=[...this[_0x539454(0x1d4)]];_0x399a37['forEach'](_0x20a4b6=>{const _0xb05b50=_0x539454;let _0x51bde4=_0x541a66[_0xb05b50(0x200)](_0x3ee94d=>_0x20a4b6[_0xb05b50(0x1f3)]==_0x3ee94d[_0xb05b50(0x1f3)]);_0x51bde4&&_0x51bde4[_0xb05b50(0x1f1)]>0x0&&delete _0x541a66[_0x20a4b6[_0xb05b50(0x1f3)]],_0x541a66['push'](_0x20a4b6);});let _0x1ec775=MetaApi[_0x539454(0x1e5)](this[_0x539454(0x1c9)][_0x539454(0x1ca)]);return await MetaApi[_0x539454(0x1e1)](this[_0x539454(0x1ee)][_0x539454(0x1ff)],_0x541a66,_0x12f5c9,_0x319e3c,_0x2cf1da,_0x1ec775);}async[a0_0x41825f(0x1f2)](_0x413f0f){const _0x2ee1c7=a0_0x41825f;this['confirmCallback']&&this[_0x2ee1c7(0x205)](null),closePopup(this);}async[a0_0x41825f(0x1d6)](_0x58ee4f){closePopup(this);}async[a0_0x41825f(0x1e2)](_0x154837){const _0x15b821=a0_0x41825f;let _0x1e0978=this['grist'][_0x15b821(0x1f9)];_0x1e0978&&0x0!=_0x1e0978[_0x15b821(0x1f1)]?this['selectRecord'](_0x1e0978[0x0]):MetaApi[_0x15b821(0x1fc)](_0x15b821(0x1dd),TermsUtil[_0x15b821(0x1e4)](_0x15b821(0x1d9)));}async[a0_0x41825f(0x1cb)](_0x562e68){const _0x23f984=a0_0x41825f;this[_0x23f984(0x205)]&&this[_0x23f984(0x205)](_0x562e68),closePopup(this);}}customElements[a0_0x41825f(0x20a)](a0_0x41825f(0x1dc),OxResourceCodeSelectorPopup);
40
+ `;}get['grist'](){const _0x3f1e23=a0_0x52a12e;return this['shadowRoot'][_0x3f1e23(0x158)](_0x3f1e23(0x133));}async[a0_0x52a12e(0x151)]({page:_0xa0797a=0x0,limit:_0x54a161=0x0,sorters:_0x2ddc83=[],filters:_0x2f4971=[]}){const _0x4b03c2=a0_0x52a12e;let _0x525c24=[...this['search_hidden_fields']];_0x2f4971[_0x4b03c2(0x150)](_0x356762=>{const _0x42fdc8=_0x4b03c2;let _0x548ae7=_0x525c24[_0x42fdc8(0x13d)](_0x54c9ab=>_0x356762['name']==_0x54c9ab[_0x42fdc8(0x162)]);_0x548ae7&&_0x548ae7[_0x42fdc8(0x16c)]>0x0&&delete _0x525c24[_0x356762['name']],_0x525c24[_0x42fdc8(0x136)](_0x356762);});let _0x3f0257=MetaApi[_0x4b03c2(0x14f)](this[_0x4b03c2(0x12d)][_0x4b03c2(0x12b)]);return await MetaApi['searchByPagination'](this[_0x4b03c2(0x157)]['queryName'],_0x525c24,_0x2ddc83,_0xa0797a,_0x54a161,_0x3f0257);}async[a0_0x52a12e(0x15a)](_0x5a2f2c){const _0x1bb99b=a0_0x52a12e;this[_0x1bb99b(0x138)]&&this['confirmCallback'](null),closePopup(this);}async[a0_0x52a12e(0x144)](_0x210add){closePopup(this);}async[a0_0x52a12e(0x156)](_0x4425ba){const _0x3d87c0=a0_0x52a12e;let _0x310876=this[_0x3d87c0(0x163)][_0x3d87c0(0x153)];_0x310876&&0x0!=_0x310876[_0x3d87c0(0x16c)]?this[_0x3d87c0(0x146)](_0x310876[0x0]):MetaApi['showToast'](_0x3d87c0(0x132),TermsUtil[_0x3d87c0(0x14c)]('NOTHING_SELECTED'));}async[a0_0x52a12e(0x146)](_0x11000f){const _0x50873c=a0_0x52a12e;this[_0x50873c(0x138)]&&this['confirmCallback'](_0x11000f),closePopup(this);}}customElements[a0_0x52a12e(0x149)](a0_0x52a12e(0x147),OxResourceCodeSelectorPopup);
@@ -1 +1 @@
1
- const a0_0x374e8c=a0_0x195e;(function(_0x2649bf,_0xd7c635){const _0x3fa42f=a0_0x195e,_0x17e7c4=_0x2649bf();while(!![]){try{const _0x2cd2c4=-parseInt(_0x3fa42f(0x121))/0x1*(parseInt(_0x3fa42f(0x124))/0x2)+parseInt(_0x3fa42f(0x13a))/0x3*(parseInt(_0x3fa42f(0x116))/0x4)+-parseInt(_0x3fa42f(0x11f))/0x5*(parseInt(_0x3fa42f(0x11d))/0x6)+parseInt(_0x3fa42f(0x13f))/0x7+parseInt(_0x3fa42f(0x122))/0x8*(parseInt(_0x3fa42f(0x136))/0x9)+-parseInt(_0x3fa42f(0x11a))/0xa*(-parseInt(_0x3fa42f(0x135))/0xb)+-parseInt(_0x3fa42f(0x134))/0xc;if(_0x2cd2c4===_0xd7c635)break;else _0x17e7c4['push'](_0x17e7c4['shift']());}catch(_0x1d445e){_0x17e7c4['push'](_0x17e7c4['shift']());}}}(a0_0xc28d,0xe8883));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';function a0_0xc28d(){const _0x4a1edd=['parseBasicGridConfigs','is_popup','parent_id','lifecycle','tTitle','openDynamicPopup','isPage','split','properties','parseBasicServiceConfigs','parseBasicTabConfigs','parseBasicButtonConfigs','10185516TmhLXz','284196aBzcAj','53649rHRicb','fetchHandler','isDetail','parseBasicFormConfigs','1624566bLofZq','pageUpdated','getParams','params','isElement','7527912ZNGVyY','isPopup','is_detail','executeCallScenarioButtonClick','fetch','errors','etc','excuteOpenPopupButtonClick','filterForm','grist','8eObBbQ','isNotEmpty','callScenario','getAndParseMenuMeta','80AyvTtp','title_detail','menuInfo','2775774FjMKKZ','after','5OlzKuf','isEmpty','1WPXdob','728OiJVdK','name','1287452ePUQjk','getMenuMeta','etcConfig','setParentId'];a0_0xc28d=function(){return _0x4a1edd;};return a0_0xc28d();}function a0_0x195e(_0xa8df6c,_0x561a95){const _0xc28d64=a0_0xc28d();return a0_0x195e=function(_0x195e3c,_0xd5e125){_0x195e3c=_0x195e3c-0x10e;let _0x113bcf=_0xc28d64[_0x195e3c];return _0x113bcf;},a0_0x195e(_0xa8df6c,_0x561a95);}export const MetaBaseMixin=_0x5746d9=>class extends _0x5746d9{static get[a0_0x374e8c(0x130)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x515f6e=>Boolean(_0x515f6e)},'is_popup':{'type':Boolean,'converter':_0x32e539=>Boolean(_0x32e539)},'is_activity':{'type':Boolean,'converter':_0x31ced7=>Boolean(_0x31ced7)},'is_readonly':{'type':Boolean,'converter':_0x548195=>Boolean(_0x548195)}};}get[a0_0x374e8c(0x13e)](){const _0x50f264=a0_0x374e8c;return!0x0===this[_0x50f264(0x10e)]||!0x0===this[_0x50f264(0x129)];}get[a0_0x374e8c(0x138)](){const _0x1c7da7=a0_0x374e8c;return!ValueUtil[_0x1c7da7(0x120)](this[_0x1c7da7(0x10e)])&&this[_0x1c7da7(0x10e)];}async[a0_0x374e8c(0x13b)](_0x190185,_0x3f52cc,_0x93d787){const _0x1ca130=a0_0x374e8c;let _0x5ad5b6=this['lifecycle']?.['params']?this[_0x1ca130(0x12b)][_0x1ca130(0x13d)]:{};this[_0x1ca130(0x12e)]&&this['active']&&0x0==_0x93d787['active']&&ValueUtil[_0x1ca130(0x117)](_0x5ad5b6)&&this[_0x1ca130(0x110)]();}get[a0_0x374e8c(0x140)](){const _0x17c1da=a0_0x374e8c;return!ValueUtil[_0x17c1da(0x120)](this[_0x17c1da(0x129)])&&this[_0x17c1da(0x129)];}get[a0_0x374e8c(0x12e)](){const _0x2b44b2=a0_0x374e8c;return!this[_0x2b44b2(0x10e)]&&!this[_0x2b44b2(0x129)];}async[a0_0x374e8c(0x119)](){const _0x5e5092=a0_0x374e8c;let _0x2bb103=await MetaApi[_0x5e5092(0x125)](this);_0x2bb103&&(this[_0x5e5092(0x11c)]=_0x2bb103['menu'],this[_0x5e5092(0x126)]=_0x2bb103[_0x5e5092(0x112)],this[_0x5e5092(0x128)]&&this[_0x5e5092(0x128)](_0x2bb103),this['parseBasicServiceConfigs']&&this[_0x5e5092(0x131)](_0x2bb103),this[_0x5e5092(0x139)]&&this[_0x5e5092(0x139)](_0x2bb103),this[_0x5e5092(0x132)]&&this[_0x5e5092(0x132)](_0x2bb103),this[_0x5e5092(0x133)]&&this[_0x5e5092(0x133)](_0x2bb103));}async[a0_0x374e8c(0x110)](){const _0x17fae8=a0_0x374e8c;ValueUtil['isNotEmpty'](this[_0x17fae8(0x115)])?this[_0x17fae8(0x115)][_0x17fae8(0x110)]():(ValueUtil[_0x17fae8(0x117)](this[_0x17fae8(0x114)])||this['fetchHandler'])&&await this[_0x17fae8(0x137)]();}async[a0_0x374e8c(0x113)](_0x16621b,_0x362a58,_0x85c6e8){const _0x1690d8=a0_0x374e8c;let _0x253a5c=TermsUtil[_0x1690d8(0x12c)](_0x16621b['title']);ValueUtil[_0x1690d8(0x117)](_0x16621b[_0x1690d8(0x11b)])&&(_0x253a5c=_0x253a5c+'-'+ValueUtil[_0x1690d8(0x13c)](_0x362a58,..._0x16621b[_0x1690d8(0x11b)][_0x1690d8(0x12f)]('.'))),MetaApi[_0x1690d8(0x12d)](_0x253a5c,_0x16621b,_0x362a58,_0x85c6e8);}async[a0_0x374e8c(0x10f)](_0x3b5c73,_0x310a67,_0x1ab56e){const _0x1d7180=a0_0x374e8c;let _0x48b8b0=await MetaApi[_0x1d7180(0x118)](_0x3b5c73[_0x1d7180(0x123)],_0x3b5c73[_0x1d7180(0x123)],_0x310a67);!0x1!==_0x48b8b0&&!_0x48b8b0[_0x1d7180(0x111)]&&ValueUtil[_0x1d7180(0x117)](_0x3b5c73[_0x1d7180(0x11e)])&&_0x1ab56e();}[a0_0x374e8c(0x127)](_0x299616){const _0x18a4c6=a0_0x374e8c;this[_0x18a4c6(0x12a)]=_0x299616,this['fetch']();}};
1
+ const a0_0x310285=a0_0x22a9;function a0_0x22a9(_0x442ecf,_0x377c48){const _0x192461=a0_0x1924();return a0_0x22a9=function(_0x22a9ff,_0x35e66a){_0x22a9ff=_0x22a9ff-0xf7;let _0x2e5bf5=_0x192461[_0x22a9ff];return _0x2e5bf5;},a0_0x22a9(_0x442ecf,_0x377c48);}(function(_0x160821,_0x51c71a){const _0x20fe42=a0_0x22a9,_0x56aa7e=_0x160821();while(!![]){try{const _0x23b86d=-parseInt(_0x20fe42(0xf9))/0x1*(-parseInt(_0x20fe42(0xfa))/0x2)+parseInt(_0x20fe42(0x122))/0x3+parseInt(_0x20fe42(0x11b))/0x4*(parseInt(_0x20fe42(0x11f))/0x5)+-parseInt(_0x20fe42(0x101))/0x6*(parseInt(_0x20fe42(0x112))/0x7)+-parseInt(_0x20fe42(0x115))/0x8*(parseInt(_0x20fe42(0xfe))/0x9)+-parseInt(_0x20fe42(0xf7))/0xa+parseInt(_0x20fe42(0x124))/0xb;if(_0x23b86d===_0x51c71a)break;else _0x56aa7e['push'](_0x56aa7e['shift']());}catch(_0x3600a3){_0x56aa7e['push'](_0x56aa7e['shift']());}}}(a0_0x1924,0xbb067));function a0_0x1924(){const _0x2265eb=['12013287fKmEYz','active','14969950ikzcZx','lifecycle','1qYJIkm','2985802AcHxRs','parseBasicGridConfigs','setParentId','isEmpty','3738519koJvJW','after','filterForm','324AASlFu','grist','parseBasicTabConfigs','title_detail','name','tTitle','isElement','openDynamicPopup','fetch','isPage','isPopup','isDetail','getMenuMeta','is_popup','fetchHandler','getAndParseMenuMeta','parseBasicButtonConfigs','157171wHCRGP','title','parent_id','16omFKaD','isNotEmpty','errors','properties','callScenario','menu','8WTniCX','etcConfig','excuteOpenPopupButtonClick','parseBasicFormConfigs','897860RmbpfD','is_detail','split','4086396IdWaGW','getParams'];a0_0x1924=function(){return _0x2265eb;};return a0_0x1924();}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x286e57=>class extends _0x286e57{static get[a0_0x310285(0x118)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x23582d=>Boolean(_0x23582d)},'is_popup':{'type':Boolean,'converter':_0x5b2347=>Boolean(_0x5b2347)},'is_activity':{'type':Boolean,'converter':_0x1ba498=>Boolean(_0x1ba498)},'is_readonly':{'type':Boolean,'converter':_0x968e01=>Boolean(_0x968e01)}};}get[a0_0x310285(0x107)](){const _0x20cd3f=a0_0x310285;return!0x0===this['is_detail']||!0x0===this[_0x20cd3f(0x10e)];}get[a0_0x310285(0x10c)](){const _0x5ad806=a0_0x310285;return!ValueUtil[_0x5ad806(0xfd)](this[_0x5ad806(0x120)])&&this[_0x5ad806(0x120)];}async['pageUpdated'](_0x202d77,_0x4e6ba5,_0x41bf75){const _0x1f21a5=a0_0x310285;let _0x4fd8dd=this[_0x1f21a5(0xf8)]?.['params']?this[_0x1f21a5(0xf8)]['params']:{};this[_0x1f21a5(0x10a)]&&this[_0x1f21a5(0x125)]&&0x0==_0x41bf75[_0x1f21a5(0x125)]&&ValueUtil[_0x1f21a5(0x116)](_0x4fd8dd)&&this['fetch']();}get[a0_0x310285(0x10b)](){const _0x552787=a0_0x310285;return!ValueUtil['isEmpty'](this[_0x552787(0x10e)])&&this[_0x552787(0x10e)];}get[a0_0x310285(0x10a)](){const _0x1df83c=a0_0x310285;return!this[_0x1df83c(0x120)]&&!this['is_popup'];}async[a0_0x310285(0x110)](){const _0x2e1a4a=a0_0x310285;let _0x5d452d=await MetaApi[_0x2e1a4a(0x10d)](this);_0x5d452d&&(this['menuInfo']=_0x5d452d[_0x2e1a4a(0x11a)],this[_0x2e1a4a(0x11c)]=_0x5d452d['etc'],this[_0x2e1a4a(0xfb)]&&this[_0x2e1a4a(0xfb)](_0x5d452d),this['parseBasicServiceConfigs']&&this['parseBasicServiceConfigs'](_0x5d452d),this[_0x2e1a4a(0x11e)]&&this[_0x2e1a4a(0x11e)](_0x5d452d),this['parseBasicTabConfigs']&&this[_0x2e1a4a(0x103)](_0x5d452d),this[_0x2e1a4a(0x111)]&&this[_0x2e1a4a(0x111)](_0x5d452d));}async[a0_0x310285(0x109)](){const _0x191b04=a0_0x310285;ValueUtil[_0x191b04(0x116)](this[_0x191b04(0x102)])?this[_0x191b04(0x102)][_0x191b04(0x109)]():(ValueUtil['isNotEmpty'](this[_0x191b04(0x100)])||this[_0x191b04(0x10f)])&&await this[_0x191b04(0x10f)]();}async[a0_0x310285(0x11d)](_0x3f46db,_0x29278f,_0x471dcd){const _0x3e9b49=a0_0x310285;let _0x555f9a=TermsUtil[_0x3e9b49(0x106)](_0x3f46db[_0x3e9b49(0x113)]);ValueUtil[_0x3e9b49(0x116)](_0x3f46db['title_detail'])&&(_0x555f9a=_0x555f9a+'-'+ValueUtil[_0x3e9b49(0x123)](_0x29278f,..._0x3f46db[_0x3e9b49(0x104)][_0x3e9b49(0x121)]('.'))),MetaApi[_0x3e9b49(0x108)](_0x555f9a,_0x3f46db,_0x29278f,_0x471dcd);}async['executeCallScenarioButtonClick'](_0x2e61bc,_0x2e60a5,_0xedbfbb){const _0x1018c2=a0_0x310285;let _0x320e32=await MetaApi[_0x1018c2(0x119)](_0x2e61bc[_0x1018c2(0x105)],_0x2e61bc[_0x1018c2(0x105)],_0x2e60a5);!0x1!==_0x320e32&&!_0x320e32[_0x1018c2(0x117)]&&ValueUtil['isNotEmpty'](_0x2e61bc[_0x1018c2(0xff)])&&_0xedbfbb();}[a0_0x310285(0xfc)](_0x135821){const _0x46bfb8=a0_0x310285;this[_0x46bfb8(0x114)]=_0x135821,this[_0x46bfb8(0x109)]();}};
@@ -1,4 +1,4 @@
1
- const a0_0x2d4858=a0_0x20a9;(function(_0x6877d1,_0x13e659){const _0x1e05fd=a0_0x20a9,_0x112127=_0x6877d1();while(!![]){try{const _0x51e9b0=-parseInt(_0x1e05fd(0xe5))/0x1+parseInt(_0x1e05fd(0xf5))/0x2*(parseInt(_0x1e05fd(0xd7))/0x3)+parseInt(_0x1e05fd(0xcc))/0x4*(parseInt(_0x1e05fd(0xe4))/0x5)+parseInt(_0x1e05fd(0xd1))/0x6*(parseInt(_0x1e05fd(0xfb))/0x7)+-parseInt(_0x1e05fd(0xf1))/0x8+-parseInt(_0x1e05fd(0xd2))/0x9*(-parseInt(_0x1e05fd(0xcb))/0xa)+-parseInt(_0x1e05fd(0xe0))/0xb*(parseInt(_0x1e05fd(0xdd))/0xc);if(_0x51e9b0===_0x13e659)break;else _0x112127['push'](_0x112127['shift']());}catch(_0xee9f20){_0x112127['push'](_0x112127['shift']());}}}(a0_0x2b2a,0x5e6d1));function a0_0x20a9(_0x3be348,_0x4472b4){const _0x2b2a15=a0_0x2b2a();return a0_0x20a9=function(_0x20a9a5,_0x5c6ec0){_0x20a9a5=_0x20a9a5-0xc4;let _0xe3f49b=_0x2b2a15[_0x20a9a5];return _0xe3f49b;},a0_0x20a9(_0x3be348,_0x4472b4);}function a0_0x2b2a(){const _0x471cd0=['getBasicGristStyles','startsWith','getBasicGristHtml','___data','exportableData','ox-filters-form','1350784frMedk','findOne','getContextObject','connectedCallback','100318ThwKco','grid_column','save','render','export','keys','1494297iseOAd','find','stringify','updateMultiple','firstUpdated','context','filterForm','deleteByIds','fetch','patchesForUpdateMultiple','getButtonContainer','forEach','10qvEJIz','483376EBbLZu','getSelectedIdList','activityDataSet','title','parseGridConfigSet','6xiFUUY','6521301JnhyYa','ox-grist','pageInitialized','data','querySelector','9oamanp','isElement','searchConfig','shadowRoot','grist','dataSet','103308XhPVUo','parseGristConfigs','gristId','121mwElnK','gridColumnConfig','gristConfigSet','filterFormId','5XOsUUF','559065HzrfpT','isNotEmpty','delete','styles','renderRoot','getAndParseMenuMeta'];a0_0x2b2a=function(){return _0x471cd0;};return a0_0x2b2a();}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=_0x4e7ff3=>class extends MetaButtonMixin(_0x4e7ff3){static get[a0_0x2d4858(0xe8)](){const _0x30354c=a0_0x2d4858;return MetaApi[_0x30354c(0xeb)]();}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_0x2d4858(0xdb)](){const _0x12ecb7=a0_0x2d4858;return this[_0x12ecb7(0xe9)]?.[_0x12ecb7(0xd6)](this[_0x12ecb7(0xdf)]);}get[a0_0x2d4858(0xc5)](){const _0xa5377b=a0_0x2d4858;return this[_0xa5377b(0xda)]?.[_0xa5377b(0xd6)](this[_0xa5377b(0xe3)]);}get[a0_0x2d4858(0xc4)](){const _0xc7e9f3=a0_0x2d4858;return MetaUiUtil[_0xc7e9f3(0xf3)](this);}async['connectedCallback'](){const _0x5be39b=a0_0x2d4858;this[_0x5be39b(0xdf)]=_0x5be39b(0xd3),this[_0x5be39b(0xe3)]=_0x5be39b(0xf0),await this[_0x5be39b(0xea)](),this['isElement']&&await this[_0x5be39b(0xde)](),this[_0x5be39b(0xce)]&&(this[_0x5be39b(0xdc)]=this[_0x5be39b(0xce)]),super['connectedCallback']&&await super[_0x5be39b(0xf4)]();}async[a0_0x2d4858(0xff)](){const _0x1456d1=a0_0x2d4858;super['firstUpdated']&&await super[_0x1456d1(0xff)]();}async[a0_0x2d4858(0xd4)](){const _0xa3afb2=a0_0x2d4858;this['isPage']&&await this[_0xa3afb2(0xde)](),super['pageInitialized']&&await super[_0xa3afb2(0xd4)]();}[a0_0x2d4858(0xf8)](){const _0x5d57df=a0_0x2d4858;return html`
2
- ${MetaApi[_0x5d57df(0xed)](this)}
3
- ${this['isPage']?html``:MetaUiUtil[_0x5d57df(0xc9)](this)}
4
- `;}['parseBasicGridConfigs'](_0x4c1b3d){const _0x5acb1b=a0_0x2d4858;this['gridConfig']=_0x4c1b3d['grid'],this[_0x5acb1b(0xe1)]=_0x4c1b3d[_0x5acb1b(0xf6)],this[_0x5acb1b(0xd9)]=_0x4c1b3d['search'];}async[a0_0x2d4858(0xde)](){const _0x3afef5=a0_0x2d4858;this[_0x3afef5(0xe2)]=await MetaApi[_0x3afef5(0xd0)](this);}async[a0_0x2d4858(0xc7)](){const _0x532cbe=a0_0x2d4858;await this['grist'][_0x532cbe(0xc7)]();}async[a0_0x2d4858(0xf7)](){const _0x598b13=a0_0x2d4858;let _0x1844a9=MetaApi[_0x598b13(0xc8)](this[_0x598b13(0xdb)]);!!ValueUtil['isNotEmpty'](_0x1844a9)&&await this[_0x598b13(0xfe)](_0x1844a9)&&this[_0x598b13(0xc7)]();}async[a0_0x2d4858(0xfc)](){const _0x499a2e=a0_0x2d4858;let _0x594e20=MetaApi[_0x499a2e(0xcd)](this[_0x499a2e(0xdb)],!0x0);return ValueUtil[_0x499a2e(0xe6)](_0x594e20)?await this[_0x499a2e(0xf2)](_0x594e20[0x0]):{};}async[a0_0x2d4858(0xe7)](){const _0x278bff=a0_0x2d4858;let _0x1e597e=MetaApi[_0x278bff(0xcd)](this['grist'],!0x0);!!ValueUtil['isNotEmpty'](_0x1e597e)&&await this[_0x278bff(0xc6)](_0x1e597e)&&this[_0x278bff(0xc7)]();}async[a0_0x2d4858(0xf9)](){const _0x5150e9=a0_0x2d4858;let _0x56dc88=TermsUtil['tTitle'](ValueUtil['getParams'](this['menuInfo'],_0x5150e9(0xcf)));return await MetaApi[_0x5150e9(0xef)](this[_0x5150e9(0xd8)],_0x56dc88,this['grist']);}async['import'](){}async['clear'](){const _0x4f5924=a0_0x2d4858;this['grist']&&(this[_0x4f5924(0xdb)][_0x4f5924(0xd5)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0x552993=a0_0x2d4858;let _0x1bb672=this['grist'][_0x552993(0xee)]['records'];return _0x1bb672=JSON['parse'](JSON[_0x552993(0xfd)](_0x1bb672)),_0x1bb672[_0x552993(0xca)](_0x58f7b8=>{const _0x13dd31=_0x552993;Object[_0x13dd31(0xfa)](_0x58f7b8)['forEach'](_0x148df5=>{const _0x5335dd=_0x13dd31;_0x148df5[_0x5335dd(0xec)]('__')&&delete _0x58f7b8[_0x148df5];});}),_0x1bb672;}};
1
+ function a0_0x1d8a(_0x3bd9d4,_0x413da4){const _0x424fb2=a0_0x424f();return a0_0x1d8a=function(_0x1d8ace,_0x405d77){_0x1d8ace=_0x1d8ace-0x90;let _0x498569=_0x424fb2[_0x1d8ace];return _0x498569;},a0_0x1d8a(_0x3bd9d4,_0x413da4);}const a0_0x509611=a0_0x1d8a;(function(_0x4f9e55,_0x57cf60){const _0x43c3cd=a0_0x1d8a,_0x24e410=_0x4f9e55();while(!![]){try{const _0x533abd=parseInt(_0x43c3cd(0x91))/0x1+-parseInt(_0x43c3cd(0xad))/0x2+-parseInt(_0x43c3cd(0xc2))/0x3*(parseInt(_0x43c3cd(0x97))/0x4)+parseInt(_0x43c3cd(0xbe))/0x5+-parseInt(_0x43c3cd(0x98))/0x6+-parseInt(_0x43c3cd(0xcd))/0x7+parseInt(_0x43c3cd(0xa3))/0x8;if(_0x533abd===_0x57cf60)break;else _0x24e410['push'](_0x24e410['shift']());}catch(_0x4381bb){_0x24e410['push'](_0x24e410['shift']());}}}(a0_0x424f,0xb430d));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';function a0_0x424f(){const _0x2712a7=['gridConfig','shadowRoot','getBasicGristStyles','getContextObject','grist','isElement','activityDataSet','getParams','title','parseGridConfigSet','render','exportableData','ox-grist','delete','getBasicGristHtml','menuInfo','1451480CppIba','firstUpdated','deleteByIds','import','6JOXDhi','fetch','gristId','tTitle','isPage','startsWith','isNotEmpty','filterFormId','find','records','clear','9612260QZHhNr','context','1405190RHeLAK','querySelector','getData','ox-filters-form','searchConfig','properties','390468GONBja','4979244zFrkma','dataSet','___data','renderRoot','stringify','parseGristConfigs','getSelectedIdList','export','filterForm','gridColumnConfig','findOne','20498720NZfpBK','forEach','search','grid','data','grid_column','parse','connectedCallback','parseBasicGridConfigs','pageInitialized','2242954ssbKJe'];a0_0x424f=function(){return _0x2712a7;};return a0_0x424f();}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0xe310a5=>class extends MetaButtonMixin(_0xe310a5){static get['styles'](){const _0x31d1d4=a0_0x1d8a;return MetaApi[_0x31d1d4(0xb0)]();}static get[a0_0x509611(0x96)](){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_0x509611(0xb2)](){const _0x18aacb=a0_0x509611;return this[_0x18aacb(0x9b)]?.[_0x18aacb(0x92)](this['gristId']);}get[a0_0x509611(0xa0)](){const _0x7184d3=a0_0x509611;return this[_0x7184d3(0xaf)]?.[_0x7184d3(0x92)](this[_0x7184d3(0xc9)]);}get[a0_0x509611(0x90)](){const _0xd4144c=a0_0x509611;return MetaUiUtil[_0xd4144c(0xb1)](this);}async[a0_0x509611(0xaa)](){const _0x1a0f25=a0_0x509611;this[_0x1a0f25(0xc4)]=_0x1a0f25(0xba),this['filterFormId']=_0x1a0f25(0x94),await this['getAndParseMenuMeta'](),this[_0x1a0f25(0xb3)]&&await this[_0x1a0f25(0x9d)](),this[_0x1a0f25(0xb4)]&&(this[_0x1a0f25(0x99)]=this[_0x1a0f25(0xb4)]),super[_0x1a0f25(0xaa)]&&await super[_0x1a0f25(0xaa)]();}async['firstUpdated'](){const _0x4d494b=a0_0x509611;super[_0x4d494b(0xbf)]&&await super[_0x4d494b(0xbf)]();}async['pageInitialized'](){const _0x44cba4=a0_0x509611;this[_0x44cba4(0xc6)]&&await this[_0x44cba4(0x9d)](),super['pageInitialized']&&await super[_0x44cba4(0xac)]();}[a0_0x509611(0xb8)](){const _0x370886=a0_0x509611;return html`
2
+ ${MetaApi[_0x370886(0xbc)](this)}
3
+ ${this[_0x370886(0xc6)]?html``:MetaUiUtil['getButtonContainer'](this)}
4
+ `;}[a0_0x509611(0xab)](_0x14e4d6){const _0x17eedd=a0_0x509611;this[_0x17eedd(0xae)]=_0x14e4d6[_0x17eedd(0xa6)],this[_0x17eedd(0xa1)]=_0x14e4d6[_0x17eedd(0xa8)],this[_0x17eedd(0x95)]=_0x14e4d6[_0x17eedd(0xa5)];}async[a0_0x509611(0x9d)](){const _0x1dc2f8=a0_0x509611;this['gristConfigSet']=await MetaApi[_0x1dc2f8(0xb7)](this);}async['fetch'](){const _0x504f39=a0_0x509611;await this[_0x504f39(0xb2)][_0x504f39(0xc3)]();}async['save'](){const _0x353a2e=a0_0x509611;let _0xefe28a=MetaApi['patchesForUpdateMultiple'](this[_0x353a2e(0xb2)]);!!ValueUtil[_0x353a2e(0xc8)](_0xefe28a)&&await this['updateMultiple'](_0xefe28a)&&this[_0x353a2e(0xc3)]();}async[a0_0x509611(0xca)](){const _0x210cac=a0_0x509611;let _0x289979=MetaApi[_0x210cac(0x9e)](this[_0x210cac(0xb2)],!0x0);return ValueUtil[_0x210cac(0xc8)](_0x289979)?await this[_0x210cac(0xa2)](_0x289979[0x0]):{};}async[a0_0x509611(0xbb)](){const _0x573790=a0_0x509611;let _0x25d70b=MetaApi[_0x573790(0x9e)](this[_0x573790(0xb2)],!0x0);!!ValueUtil[_0x573790(0xc8)](_0x25d70b)&&await this[_0x573790(0xc0)](_0x25d70b)&&this['fetch']();}async[a0_0x509611(0x9f)](){const _0x52df65=a0_0x509611;let _0x360fe9=TermsUtil[_0x52df65(0xc5)](ValueUtil[_0x52df65(0xb5)](this[_0x52df65(0xbd)],_0x52df65(0xb6)));return await MetaApi[_0x52df65(0xb9)](this[_0x52df65(0xb3)],_0x360fe9,this[_0x52df65(0xb2)]);}async[a0_0x509611(0xc1)](){}async[a0_0x509611(0xcc)](){const _0x40b208=a0_0x509611;this[_0x40b208(0xb2)]&&(this['grist'][_0x40b208(0xa7)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x509611(0x93)](){const _0x7a696c=a0_0x509611;let _0x5a2076=this[_0x7a696c(0xb2)][_0x7a696c(0x9a)][_0x7a696c(0xcb)];return _0x5a2076=JSON[_0x7a696c(0xa9)](JSON[_0x7a696c(0x9c)](_0x5a2076)),_0x5a2076[_0x7a696c(0xa4)](_0xa2bef9=>{const _0xcf3ae6=_0x7a696c;Object['keys'](_0xa2bef9)[_0xcf3ae6(0xa4)](_0x56b501=>{const _0x473fcb=_0xcf3ae6;_0x56b501[_0x473fcb(0xc7)]('__')&&delete _0xa2bef9[_0x56b501];});}),_0x5a2076;}};
@@ -1 +1 @@
1
- const a0_0x582315=a0_0x5791;function a0_0x5791(_0x3c8531,_0x2fee97){const _0xf52831=a0_0xf528();return a0_0x5791=function(_0x57919f,_0x13bd64){_0x57919f=_0x57919f-0x82;let _0x4c43d4=_0xf52831[_0x57919f];return _0x4c43d4;},a0_0x5791(_0x3c8531,_0x2fee97);}(function(_0x5c2784,_0x5da5e8){const _0x49aa1f=a0_0x5791,_0x566a0c=_0x5c2784();while(!![]){try{const _0x38a01e=-parseInt(_0x49aa1f(0x89))/0x1+-parseInt(_0x49aa1f(0x91))/0x2+-parseInt(_0x49aa1f(0x94))/0x3+-parseInt(_0x49aa1f(0x8f))/0x4*(parseInt(_0x49aa1f(0x95))/0x5)+-parseInt(_0x49aa1f(0x85))/0x6+-parseInt(_0x49aa1f(0x82))/0x7+parseInt(_0x49aa1f(0x83))/0x8;if(_0x38a01e===_0x5da5e8)break;else _0x566a0c['push'](_0x566a0c['shift']());}catch(_0x1fb645){_0x566a0c['push'](_0x566a0c['shift']());}}}(a0_0xf528,0x338a7));function a0_0xf528(){const _0x33a305=['13933536TcuJDi','gristButtonHandler','2090646HgothS','button','buttonConfig','add','63544DXrisU','getButtonActionHandler','getCustomButtonContainerStyles','getButtonContainer','useButtonImport','getBasicButtonHandler','12BIpCIB','isPage','687466jbLdMp','getCustomButtonContainerStyle','import','1036104muqcnk','528070PqqleJ','parseBasicButtonConfigs','properties','getContextButtons','customButtonHandler','useButtonAdd','788571vPhiSd'];a0_0xf528=function(){return _0x33a305;};return a0_0xf528();}import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x234478=>class extends MetaServiceMixin(_0x234478){static get[a0_0x582315(0x97)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x582315(0x92)](){const _0x2f3510=a0_0x582315;return MetaUiUtil[_0x2f3510(0x8b)]();}[a0_0x582315(0x98)](){const _0x51d198=a0_0x582315;return MetaUiUtil[_0x51d198(0x98)](this);}[a0_0x582315(0x8c)](){const _0x1ab539=a0_0x582315;return this[_0x1ab539(0x90)]?html``:MetaUiUtil[_0x1ab539(0x8c)](this);}async[a0_0x582315(0x8e)](_0x3b6792,_0x413df4,_0x68c1ba){const _0x3069a8=a0_0x582315;return await MetaUiUtil[_0x3069a8(0x8a)](this,_0x3b6792,_0x413df4,_0x68c1ba);}async[a0_0x582315(0x99)](_0x25506c){const _0x112423=a0_0x582315;await MetaUiUtil[_0x112423(0x99)](this,_0x25506c);}async[a0_0x582315(0x84)](_0x2cfee6,_0x3cf814){await MetaUiUtil['gristButtonHandler'](this,_0x2cfee6,_0x3cf814);}[a0_0x582315(0x96)](_0x4ec498){const _0x242585=a0_0x582315;this[_0x242585(0x87)]=_0x4ec498[_0x242585(0x86)],this[_0x242585(0x8d)]=MetaUiUtil['isButtonExist'](this[_0x242585(0x87)],_0x242585(0x93)),this['useButtonExport']=MetaUiUtil['isButtonExist'](this[_0x242585(0x87)],'export'),this[_0x242585(0x9a)]=MetaUiUtil['isButtonExist'](this[_0x242585(0x87)],_0x242585(0x88));}};
1
+ const a0_0x1df804=a0_0x5d2c;function a0_0x5d2c(_0x4e9feb,_0x2b10d9){const _0xe8e2ab=a0_0xe8e2();return a0_0x5d2c=function(_0x5d2cd4,_0x351367){_0x5d2cd4=_0x5d2cd4-0x13b;let _0x4d2193=_0xe8e2ab[_0x5d2cd4];return _0x4d2193;},a0_0x5d2c(_0x4e9feb,_0x2b10d9);}(function(_0xe8c69,_0x179880){const _0x1a30af=a0_0x5d2c,_0x712d84=_0xe8c69();while(!![]){try{const _0x412642=parseInt(_0x1a30af(0x148))/0x1+parseInt(_0x1a30af(0x14a))/0x2+parseInt(_0x1a30af(0x13c))/0x3*(-parseInt(_0x1a30af(0x14d))/0x4)+parseInt(_0x1a30af(0x13d))/0x5*(parseInt(_0x1a30af(0x14b))/0x6)+parseInt(_0x1a30af(0x152))/0x7*(-parseInt(_0x1a30af(0x158))/0x8)+-parseInt(_0x1a30af(0x149))/0x9*(-parseInt(_0x1a30af(0x14f))/0xa)+parseInt(_0x1a30af(0x157))/0xb*(-parseInt(_0x1a30af(0x159))/0xc);if(_0x412642===_0x179880)break;else _0x712d84['push'](_0x712d84['shift']());}catch(_0x3cca39){_0x712d84['push'](_0x712d84['shift']());}}}(a0_0xe8e2,0xa201a));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0xe8e2(){const _0x2b8a0e=['gristButtonHandler','export','button','getButtonContainer','isButtonExist','parseBasicButtonConfigs','customButtonHandler','949476uRQyOY','7677SXErmZ','1960350Pajrbi','1842252vkFZot','getContextButtons','37460pLNMVA','add','7070JAksNN','buttonConfig','getCustomButtonContainerStyles','189sxMfHo','import','useButtonImport','getBasicButtonHandler','useButtonExport','5335fIMjtv','13944MdborM','26496xeVBqY','getCustomButtonContainerStyle','339aMaBMr','5hEWvKg','useButtonAdd','getButtonActionHandler','isPage'];a0_0xe8e2=function(){return _0x2b8a0e;};return a0_0xe8e2();}import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x442dfd=>class extends MetaServiceMixin(_0x442dfd){static get['properties'](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x1df804(0x13b)](){const _0x39732a=a0_0x1df804;return MetaUiUtil[_0x39732a(0x151)]();}[a0_0x1df804(0x14c)](){const _0x28d614=a0_0x1df804;return MetaUiUtil[_0x28d614(0x14c)](this);}['getButtonContainer'](){const _0x4712b6=a0_0x1df804;return this[_0x4712b6(0x140)]?html``:MetaUiUtil[_0x4712b6(0x144)](this);}async[a0_0x1df804(0x155)](_0x22add8,_0x1dc1f8,_0x58eff7){const _0x3c6702=a0_0x1df804;return await MetaUiUtil[_0x3c6702(0x13f)](this,_0x22add8,_0x1dc1f8,_0x58eff7);}async[a0_0x1df804(0x147)](_0x28afab){const _0x3b282f=a0_0x1df804;await MetaUiUtil[_0x3b282f(0x147)](this,_0x28afab);}async[a0_0x1df804(0x141)](_0x265d93,_0xe0e55a){const _0x3b437a=a0_0x1df804;await MetaUiUtil[_0x3b437a(0x141)](this,_0x265d93,_0xe0e55a);}[a0_0x1df804(0x146)](_0x5e8b14){const _0xc88417=a0_0x1df804;this[_0xc88417(0x150)]=_0x5e8b14[_0xc88417(0x143)],this[_0xc88417(0x154)]=MetaUiUtil[_0xc88417(0x145)](this[_0xc88417(0x150)],_0xc88417(0x153)),this[_0xc88417(0x156)]=MetaUiUtil[_0xc88417(0x145)](this[_0xc88417(0x150)],_0xc88417(0x142)),this[_0xc88417(0x13e)]=MetaUiUtil[_0xc88417(0x145)](this['buttonConfig'],_0xc88417(0x14e));}};
@@ -1 +1 @@
1
- const a0_0x20f00c=a0_0x3568;(function(_0x1852a5,_0x27733c){const _0x5e4201=a0_0x3568,_0x5e408b=_0x1852a5();while(!![]){try{const _0x1fc94=parseInt(_0x5e4201(0xfe))/0x1*(-parseInt(_0x5e4201(0x131))/0x2)+parseInt(_0x5e4201(0x11b))/0x3*(parseInt(_0x5e4201(0x140))/0x4)+parseInt(_0x5e4201(0x13f))/0x5*(-parseInt(_0x5e4201(0x143))/0x6)+-parseInt(_0x5e4201(0x114))/0x7+parseInt(_0x5e4201(0x141))/0x8*(parseInt(_0x5e4201(0x100))/0x9)+-parseInt(_0x5e4201(0x109))/0xa+parseInt(_0x5e4201(0x145))/0xb;if(_0x1fc94===_0x27733c)break;else _0x5e408b['push'](_0x5e408b['shift']());}catch(_0x3a7a99){_0x5e408b['push'](_0x5e408b['shift']());}}}(a0_0x4a52,0x88db0));function a0_0x4a52(){const _0x45272d=['styles','save','firstUpdated','Esc','formRenderConfig','formConfigSet','1NIDwoc','cuFlag','21690ydeYdw','true','activityDataSet','grid_column','orgData','patchData','call','forEach','formColumnConfig','8787590iKObMt','__dirty__','clear','getBasicFormHtml','parent_id','fetch','tagName','parseBasicFormConfigs','keydown','removeAttribute','__dirtyfields__','1225819utVWTN','isEquals','context','map','getContextObject','object','removeGarbageData','75JehbUP','startsWith','before','properties','column','focus','field-change','isNotEmpty','filter','record','addEventListener','entries','render','name','parseFormConfigSet','editing','detail','isPage','click','button','after','findOne','2082302TNFOXn','getData','OX-GRID-FIELD','target','validation','renderRoot','pageInitialized','connectedCallback','Escape','showAlertPopup','text.NOTHING_CHANGED','dataSet','dirtyData','__seq__','4607415VapNky','14876hFbqcE','2920izkDec','currentTarget','6bmgHbK','function','28648895RvmTUJ','key','isElement','parseFormConfigs','currentData','__origin__','activity','updateMultiple','Enter','stopPropagation','isEmpty'];a0_0x4a52=function(){return _0x45272d;};return a0_0x4a52();}function a0_0x3568(_0x1ea2be,_0x35772c){const _0x4a5216=a0_0x4a52();return a0_0x3568=function(_0x35685c,_0x4deea0){_0x35685c=_0x35685c-0xf6;let _0x17c1e6=_0x4a5216[_0x35685c];return _0x17c1e6;},a0_0x3568(_0x1ea2be,_0x35772c);}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x2cd920=>class extends MetaButtonMixin(_0x2cd920){static get[a0_0x20f00c(0xf8)](){return MetaApi['getBasicFormStyles']();}static get[a0_0x20f00c(0x11e)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x20f00c(0x116)](){const _0x5f56d8=a0_0x20f00c;return MetaUiUtil[_0x5f56d8(0x118)](this);}async[a0_0x20f00c(0x138)](){const _0x218996=a0_0x20f00c;await this['getAndParseMenuMeta'](),this['isElement']&&await this[_0x218996(0x148)](),this[_0x218996(0x102)]&&(this[_0x218996(0x13c)]=this[_0x218996(0x102)]),!0x0!==this['is_activity']||this[_0x218996(0x10d)]||(this[_0x218996(0x10d)]=_0x218996(0x14b)),super[_0x218996(0x138)]&&await super[_0x218996(0x138)](),this[_0x218996(0x147)]&&await this[_0x218996(0x10e)](),this[_0x218996(0x136)][_0x218996(0x125)](_0x218996(0x111),_0xc7a0c3=>{const _0x248129=_0x218996;switch(_0xc7a0c3[_0x248129(0x146)]){case _0x248129(0xfb):case _0x248129(0x139):case _0x248129(0x14d):this[_0x248129(0x120)](),this[_0x248129(0x142)]&&this[_0x248129(0x142)][_0x248129(0x112)]('editing'),this[_0x248129(0x142)]=null;}}),this[_0x218996(0x136)][_0x218996(0x125)](_0x218996(0x12d),_0x142467=>{const _0x3ff38f=_0x218996;_0x142467[_0x3ff38f(0xf6)]();let _0x480a7f=_0x142467[_0x3ff38f(0x134)];if(this[_0x3ff38f(0x142)]&&(this[_0x3ff38f(0x120)](),this[_0x3ff38f(0x142)]['removeAttribute'](_0x3ff38f(0x12a))),_0x3ff38f(0x133)!==_0x480a7f[_0x3ff38f(0x10f)]||!_0x480a7f[_0x3ff38f(0x11f)]['record']['editable'])return this[_0x3ff38f(0x120)](),void(this[_0x3ff38f(0x142)]=null);this[_0x3ff38f(0x142)]=_0x480a7f,_0x480a7f['setAttribute']('editing',_0x3ff38f(0x101));}),this[_0x218996(0x125)](_0x218996(0x121),_0x59bea2=>{const _0x50b4bc=_0x218996;var {after:_0x8de49,before:_0x4d14c5,column:_0x4c30bc,record:_0x4f263a,row:_0x1fc33f}=_0x59bea2[_0x50b4bc(0x12b)];if(ValueUtil[_0x50b4bc(0x115)](_0x8de49,_0x4d14c5))return;var _0xb72426=_0x4c30bc[_0x50b4bc(0x135)];if(_0xb72426&&_0x50b4bc(0x144)==typeof _0xb72426&&!_0xb72426[_0x50b4bc(0x106)](this,_0x8de49,_0x4d14c5,_0x4f263a,_0x4c30bc))return;let _0x39dde9=_0x4c30bc[_0x50b4bc(0x128)];_0x4f263a[_0x39dde9]=_0x8de49,_0x4f263a[_0x50b4bc(0x113)]=_0x4f263a[_0x50b4bc(0x113)]||{},_0x4f263a['__origin__']=_0x4f263a[_0x50b4bc(0x14a)]||{},_0x4f263a[_0x50b4bc(0x113)][_0x39dde9]={'before':_0x4f263a['__origin__'][_0x39dde9],'after':_0x4f263a[_0x39dde9]},ValueUtil['isEquals'](_0x4f263a[_0x50b4bc(0x113)][_0x39dde9][_0x50b4bc(0x11d)],_0x4f263a['__dirtyfields__'][_0x39dde9][_0x50b4bc(0x12f)])&&delete _0x4f263a['__dirtyfields__'][_0x39dde9],ValueUtil[_0x50b4bc(0x122)](_0x4f263a['__dirtyfields__'])?_0x4f263a[_0x50b4bc(0x10a)]='M':_0x4f263a[_0x50b4bc(0x10a)]='',this[_0x50b4bc(0x124)]={..._0x4f263a};});}async['firstUpdated'](){const _0xeb9cd8=a0_0x20f00c;super[_0xeb9cd8(0xfa)]&&await super[_0xeb9cd8(0xfa)]();}async[a0_0x20f00c(0x137)](){const _0x19766a=a0_0x20f00c;this['isPage']&&await this['parseFormConfigs'](),super['pageInitialized']&&await super['pageInitialized'](),this[_0x19766a(0x12c)]&&await this['fetch']();}[a0_0x20f00c(0x127)](){const _0x2cd9bf=a0_0x20f00c;return MetaApi[_0x2cd9bf(0x10c)](this);}[a0_0x20f00c(0x110)](_0x28bfa6){const _0x3de952=a0_0x20f00c;this[_0x3de952(0x108)]=_0x28bfa6[_0x3de952(0x103)],this[_0x3de952(0xfc)]=_0x28bfa6['form'],_0x28bfa6[_0x3de952(0x12e)]=_0x28bfa6[_0x3de952(0x12e)][_0x3de952(0x123)](_0x73be42=>'save'==_0x73be42['name']);}async[a0_0x20f00c(0x148)](){const _0x573c4e=a0_0x20f00c;this[_0x573c4e(0xfd)]=await MetaApi[_0x573c4e(0x129)](this);}get[a0_0x20f00c(0x104)](){const _0x57cc74=a0_0x20f00c;return this[_0x57cc74(0x11a)](this[_0x57cc74(0x124)][_0x57cc74(0x14a)]);}get['dirtyData'](){const _0x22597a=a0_0x20f00c;if(ValueUtil[_0x22597a(0xf7)](this['record'][_0x22597a(0x113)]))return{};let _0x4b2ffe={};return Object[_0x22597a(0x126)](this[_0x22597a(0x124)]['__dirtyfields__'])[_0x22597a(0x117)](([_0x1a8d99,_0x190bd9])=>{const _0x28a791=_0x22597a;0x0==_0x1a8d99[_0x28a791(0x11c)]('__')&&(_0x4b2ffe[_0x1a8d99]=_0x190bd9[_0x28a791(0x12f)]);}),_0x4b2ffe;}get['currentData'](){const _0x5c779f=a0_0x20f00c;return this[_0x5c779f(0x11a)](this['record']);}[a0_0x20f00c(0x11a)](_0x3721fb){const _0x3929a1=a0_0x20f00c;let _0x25a948={};if(_0x3721fb)return Object[_0x3929a1(0x126)](_0x3721fb)[_0x3929a1(0x117)](([_0x64b27d,_0x317291])=>{const _0x48cd3b=_0x3929a1;0x0==_0x64b27d[_0x48cd3b(0x11c)]('__')&&(_0x25a948[_0x64b27d]=_0x317291);}),_0x25a948;}get[a0_0x20f00c(0x105)](){const _0x3f5d5b=a0_0x20f00c;let _0x5b77f9=this[_0x3f5d5b(0x13d)],_0x2a0d2b=this[_0x3f5d5b(0x124)];return ValueUtil[_0x3f5d5b(0xf7)](_0x5b77f9)?[]:(ValueUtil[_0x3f5d5b(0x122)](_0x2a0d2b['id'])?(_0x5b77f9['id']=_0x2a0d2b['id'],_0x5b77f9['cuFlag']='M'):_0x5b77f9[_0x3f5d5b(0xff)]='+',Object['keys'](_0x5b77f9)[_0x3f5d5b(0x107)](_0x3d0c96=>{const _0xc69706=_0x3f5d5b;_0xc69706(0x119)==typeof _0x5b77f9[_0x3d0c96]&&(_0x5b77f9[_0x3d0c96]={'id':_0x5b77f9[_0x3d0c96]['id']});}),[_0x5b77f9]);}async[a0_0x20f00c(0x10e)](){const _0x22ff08=a0_0x20f00c;if(ValueUtil[_0x22ff08(0xf7)](this[_0x22ff08(0x10d)]))return;let _0x5a6fa5=await this[_0x22ff08(0x130)](this[_0x22ff08(0x10d)]);_0x5a6fa5[_0x22ff08(0x13e)]=0x1;let _0x42cbe7={};Object['assign'](_0x42cbe7,_0x5a6fa5),_0x5a6fa5[_0x22ff08(0x14a)]=_0x42cbe7,this['record']={..._0x5a6fa5};}async[a0_0x20f00c(0xf9)](){const _0x1e04ae=a0_0x20f00c;let _0x2768e2=this[_0x1e04ae(0x105)];if(ValueUtil[_0x1e04ae(0xf7)](_0x2768e2))return void MetaApi[_0x1e04ae(0x13a)]('title.info',_0x1e04ae(0x13b));let _0x6359cb=await this[_0x1e04ae(0x14c)](_0x2768e2);return _0x6359cb&&await this[_0x1e04ae(0x10e)](),_0x6359cb;}async[a0_0x20f00c(0x10b)](){const _0x4d6509=a0_0x20f00c;this['record']&&(this[_0x4d6509(0x124)]={});}[a0_0x20f00c(0x132)](){const _0x1feb0f=a0_0x20f00c;return this[_0x1feb0f(0x149)]||{};}};
1
+ const a0_0x9f34e7=a0_0x3283;(function(_0x232e05,_0x38009d){const _0x3e7118=a0_0x3283,_0x4ba016=_0x232e05();while(!![]){try{const _0x5298f5=parseInt(_0x3e7118(0x1b8))/0x1*(parseInt(_0x3e7118(0x1ed))/0x2)+-parseInt(_0x3e7118(0x1ce))/0x3+-parseInt(_0x3e7118(0x1ea))/0x4+parseInt(_0x3e7118(0x1be))/0x5+parseInt(_0x3e7118(0x1d5))/0x6+-parseInt(_0x3e7118(0x1ee))/0x7+parseInt(_0x3e7118(0x1c8))/0x8;if(_0x5298f5===_0x38009d)break;else _0x4ba016['push'](_0x4ba016['shift']());}catch(_0x40cdc5){_0x4ba016['push'](_0x4ba016['shift']());}}}(a0_0x41e0,0x9b484));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x41e0(){const _0x31d72a=['tagName','parseFormConfigs','styles','isElement','19550048sQddWP','cuFlag','addEventListener','renderRoot','is_activity','Escape','3775608KhXqON','dirtyData','click','Enter','assign','name','focus','1583820dqIuNt','key','removeGarbageData','fetch','OX-GRID-FIELD','currentTarget','__dirtyfields__','function','firstUpdated','__dirty__','after','isPage','isNotEmpty','grid_column','column','entries','connectedCallback','save','getContextObject','isEmpty','editing','3700076EaTGTN','record','object','4ogvagJ','3971905ifZory','map','formConfigSet','parent_id','context','activity','isEquals','properties','startsWith','filter','keydown','parseBasicFormConfigs','removeAttribute','showAlertPopup','parseFormConfigSet','currentData','field-change','forEach','formRenderConfig','277948pHjMjo','__origin__','call','activityDataSet','updateMultiple','pageInitialized','616920RjLkfy','before','keys','button','validation','setAttribute'];a0_0x41e0=function(){return _0x31d72a;};return a0_0x41e0();}import{ValueUtil}from'../utils/value-util';function a0_0x3283(_0x2ddb96,_0x53e106){const _0x41e0dd=a0_0x41e0();return a0_0x3283=function(_0x3283d2,_0x4eac25){_0x3283d2=_0x3283d2-0x1a9;let _0x381800=_0x41e0dd[_0x3283d2];return _0x381800;},a0_0x3283(_0x2ddb96,_0x53e106);}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x584763=>class extends MetaButtonMixin(_0x584763){static get[a0_0x9f34e7(0x1c6)](){return MetaApi['getBasicFormStyles']();}static get[a0_0x9f34e7(0x1ac)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x9f34e7(0x1a9)](){const _0x4b26e6=a0_0x9f34e7;return MetaUiUtil[_0x4b26e6(0x1e7)](this);}async[a0_0x9f34e7(0x1e5)](){const _0x517c7f=a0_0x9f34e7;await this['getAndParseMenuMeta'](),this[_0x517c7f(0x1c7)]&&await this['parseFormConfigs'](),this[_0x517c7f(0x1bb)]&&(this['dataSet']=this['activityDataSet']),!0x0!==this[_0x517c7f(0x1cc)]||this[_0x517c7f(0x1f1)]||(this[_0x517c7f(0x1f1)]=_0x517c7f(0x1aa)),super[_0x517c7f(0x1e5)]&&await super['connectedCallback'](),this['isElement']&&await this[_0x517c7f(0x1d8)](),this[_0x517c7f(0x1cb)][_0x517c7f(0x1ca)](_0x517c7f(0x1af),_0x3def15=>{const _0xc0570=_0x517c7f;switch(_0x3def15[_0xc0570(0x1d6)]){case'Esc':case _0xc0570(0x1cd):case _0xc0570(0x1d1):this[_0xc0570(0x1d4)](),this[_0xc0570(0x1da)]&&this[_0xc0570(0x1da)][_0xc0570(0x1b1)](_0xc0570(0x1e9)),this[_0xc0570(0x1da)]=null;}}),this[_0x517c7f(0x1cb)][_0x517c7f(0x1ca)](_0x517c7f(0x1d0),_0x455fe0=>{const _0x34c01c=_0x517c7f;_0x455fe0['stopPropagation']();let _0x47da9f=_0x455fe0['target'];if(this[_0x34c01c(0x1da)]&&(this[_0x34c01c(0x1d4)](),this[_0x34c01c(0x1da)][_0x34c01c(0x1b1)](_0x34c01c(0x1e9))),_0x34c01c(0x1d9)!==_0x47da9f[_0x34c01c(0x1c4)]||!_0x47da9f[_0x34c01c(0x1e3)][_0x34c01c(0x1eb)]['editable'])return this[_0x34c01c(0x1d4)](),void(this[_0x34c01c(0x1da)]=null);this[_0x34c01c(0x1da)]=_0x47da9f,_0x47da9f[_0x34c01c(0x1c3)](_0x34c01c(0x1e9),'true');}),this[_0x517c7f(0x1ca)](_0x517c7f(0x1b5),_0x425bbc=>{const _0x50a13b=_0x517c7f;var {after:_0x4ce7a5,before:_0xe10a1,column:_0x5f143f,record:_0x20c7b8,row:_0x914a58}=_0x425bbc['detail'];if(ValueUtil['isEquals'](_0x4ce7a5,_0xe10a1))return;var _0x2adda3=_0x5f143f[_0x50a13b(0x1c2)];if(_0x2adda3&&_0x50a13b(0x1dc)==typeof _0x2adda3&&!_0x2adda3[_0x50a13b(0x1ba)](this,_0x4ce7a5,_0xe10a1,_0x20c7b8,_0x5f143f))return;let _0x3b9cdb=_0x5f143f[_0x50a13b(0x1d3)];_0x20c7b8[_0x3b9cdb]=_0x4ce7a5,_0x20c7b8['__dirtyfields__']=_0x20c7b8['__dirtyfields__']||{},_0x20c7b8[_0x50a13b(0x1b9)]=_0x20c7b8[_0x50a13b(0x1b9)]||{},_0x20c7b8[_0x50a13b(0x1db)][_0x3b9cdb]={'before':_0x20c7b8[_0x50a13b(0x1b9)][_0x3b9cdb],'after':_0x20c7b8[_0x3b9cdb]},ValueUtil[_0x50a13b(0x1ab)](_0x20c7b8[_0x50a13b(0x1db)][_0x3b9cdb][_0x50a13b(0x1bf)],_0x20c7b8[_0x50a13b(0x1db)][_0x3b9cdb]['after'])&&delete _0x20c7b8['__dirtyfields__'][_0x3b9cdb],ValueUtil[_0x50a13b(0x1e1)](_0x20c7b8[_0x50a13b(0x1db)])?_0x20c7b8[_0x50a13b(0x1de)]='M':_0x20c7b8[_0x50a13b(0x1de)]='',this[_0x50a13b(0x1eb)]={..._0x20c7b8};});}async[a0_0x9f34e7(0x1dd)](){const _0x3dd5d6=a0_0x9f34e7;super[_0x3dd5d6(0x1dd)]&&await super[_0x3dd5d6(0x1dd)]();}async['pageInitialized'](){const _0x2d77c8=a0_0x9f34e7;this[_0x2d77c8(0x1e0)]&&await this[_0x2d77c8(0x1c5)](),super[_0x2d77c8(0x1bd)]&&await super[_0x2d77c8(0x1bd)](),this['isPage']&&await this['fetch']();}['render'](){return MetaApi['getBasicFormHtml'](this);}[a0_0x9f34e7(0x1b0)](_0x56613a){const _0x4f9b8b=a0_0x9f34e7;this['formColumnConfig']=_0x56613a[_0x4f9b8b(0x1e2)],this[_0x4f9b8b(0x1b7)]=_0x56613a['form'],_0x56613a[_0x4f9b8b(0x1c1)]=_0x56613a['button'][_0x4f9b8b(0x1ae)](_0x25b92a=>'save'==_0x25b92a['name']);}async['parseFormConfigs'](){const _0x30c46f=a0_0x9f34e7;this[_0x30c46f(0x1f0)]=await MetaApi[_0x30c46f(0x1b3)](this);}get['orgData'](){const _0x368e77=a0_0x9f34e7;return this[_0x368e77(0x1d7)](this[_0x368e77(0x1eb)][_0x368e77(0x1b9)]);}get[a0_0x9f34e7(0x1cf)](){const _0x1c6274=a0_0x9f34e7;if(ValueUtil[_0x1c6274(0x1e8)](this['record'][_0x1c6274(0x1db)]))return{};let _0xc01ec0={};return Object[_0x1c6274(0x1e4)](this[_0x1c6274(0x1eb)][_0x1c6274(0x1db)])[_0x1c6274(0x1ef)](([_0x3a05ae,_0x5d2c7e])=>{const _0x147cd1=_0x1c6274;0x0==_0x3a05ae[_0x147cd1(0x1ad)]('__')&&(_0xc01ec0[_0x3a05ae]=_0x5d2c7e[_0x147cd1(0x1df)]);}),_0xc01ec0;}get[a0_0x9f34e7(0x1b4)](){const _0x45e433=a0_0x9f34e7;return this[_0x45e433(0x1d7)](this[_0x45e433(0x1eb)]);}['removeGarbageData'](_0x591ca3){const _0x55039d=a0_0x9f34e7;let _0x1ccfa3={};if(_0x591ca3)return Object[_0x55039d(0x1e4)](_0x591ca3)[_0x55039d(0x1ef)](([_0x287885,_0x240ca0])=>{0x0==_0x287885['startsWith']('__')&&(_0x1ccfa3[_0x287885]=_0x240ca0);}),_0x1ccfa3;}get['patchData'](){const _0x5a2694=a0_0x9f34e7;let _0x1cb719=this[_0x5a2694(0x1cf)],_0x279f4d=this[_0x5a2694(0x1eb)];return ValueUtil[_0x5a2694(0x1e8)](_0x1cb719)?[]:(ValueUtil[_0x5a2694(0x1e1)](_0x279f4d['id'])?(_0x1cb719['id']=_0x279f4d['id'],_0x1cb719['cuFlag']='M'):_0x1cb719[_0x5a2694(0x1c9)]='+',Object[_0x5a2694(0x1c0)](_0x1cb719)[_0x5a2694(0x1b6)](_0x26e34b=>{const _0x5f5a57=_0x5a2694;_0x5f5a57(0x1ec)==typeof _0x1cb719[_0x26e34b]&&(_0x1cb719[_0x26e34b]={'id':_0x1cb719[_0x26e34b]['id']});}),[_0x1cb719]);}async['fetch'](){const _0x404006=a0_0x9f34e7;if(ValueUtil[_0x404006(0x1e8)](this['parent_id']))return;let _0x3c01ec=await this['findOne'](this[_0x404006(0x1f1)]);_0x3c01ec['__seq__']=0x1;let _0x1924f8={};Object[_0x404006(0x1d2)](_0x1924f8,_0x3c01ec),_0x3c01ec[_0x404006(0x1b9)]=_0x1924f8,this[_0x404006(0x1eb)]={..._0x3c01ec};}async[a0_0x9f34e7(0x1e6)](){const _0x3f97b7=a0_0x9f34e7;let _0x3b552b=this['patchData'];if(ValueUtil[_0x3f97b7(0x1e8)](_0x3b552b))return void MetaApi[_0x3f97b7(0x1b2)]('title.info','text.NOTHING_CHANGED');let _0x1b6213=await this[_0x3f97b7(0x1bc)](_0x3b552b);return _0x1b6213&&await this[_0x3f97b7(0x1d8)](),_0x1b6213;}async['clear'](){const _0x24cb33=a0_0x9f34e7;this[_0x24cb33(0x1eb)]&&(this[_0x24cb33(0x1eb)]={});}['getData'](){const _0xc1136e=a0_0x9f34e7;return this[_0xc1136e(0x1b4)]||{};}};
@@ -1 +1 @@
1
- const a0_0x2aee6a=a0_0x14b2;function a0_0x4010(){const _0x4918ee=['name','properties','header','activityDataSet','dataSet','grid_column','beforeFetch','gridConfig','import','4165158DrfOOP','type','connectedCallback','filter','styles','forEach','actions','isElement','main','detailElement','push','20145420tcUGci','820zdFEny','records','isNotEmpty','gristConfigSet','gridColumnConfig','grid','getData','operator','ox-grist','getAndParseMenuMeta','save','filterFormId','updateMultiple','107019mFiNnw','patchesForUpdateMultiple','findOne','exportableData','firstUpdated','clear','find','28FHCFwf','searchFieldValues','searchFields','gristId','ox-filters-form-base','keys','menuInfo','parse','useFilterForm','33TepCPu','getSelectedIdList','413653JEXlkE','getContextObject','#detail','search','160Dchbbu','map','getParams','context','options','___data','6rVGwhM','value','grist','stringify','importable','getBasicGristTabStyles','filterForm','10428DwncZI','shadowRoot','renderRoot','searchConfig','5799200NFGMon','parseGridConfigSet','useMasterFilterForm','getGristTabHtml','2244174CwNsHd','parseGristConfigs','title','record','meta-tab-element','render','querySelector','pageInitialized','exportable','fetch','tTitle','deleteByIds','columns'];a0_0x4010=function(){return _0x4918ee;};return a0_0x4010();}(function(_0x3c34b0,_0x594299){const _0x5b12a0=a0_0x14b2,_0x15fe61=_0x3c34b0();while(!![]){try{const _0x36be0d=-parseInt(_0x5b12a0(0x110))/0x1*(parseInt(_0x5b12a0(0x11a))/0x2)+-parseInt(_0x5b12a0(0xe5))/0x3+-parseInt(_0x5b12a0(0xc7))/0x4*(parseInt(_0x5b12a0(0xf1))/0x5)+-parseInt(_0x5b12a0(0xcf))/0x6*(parseInt(_0x5b12a0(0x105))/0x7)+-parseInt(_0x5b12a0(0x114))/0x8*(parseInt(_0x5b12a0(0xfe))/0x9)+parseInt(_0x5b12a0(0xcb))/0xa+-parseInt(_0x5b12a0(0x10e))/0xb*(-parseInt(_0x5b12a0(0xf0))/0xc);if(_0x36be0d===_0x594299)break;else _0x15fe61['push'](_0x15fe61['shift']());}catch(_0x2862e6){_0x15fe61['push'](_0x15fe61['shift']());}}}(a0_0x4010,0xc9866));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x14b2(_0xcd1c28,_0x3c32c6){const _0x401040=a0_0x4010();return a0_0x14b2=function(_0x14b2e7,_0x34e38c){_0x14b2e7=_0x14b2e7-0xc5;let _0x2af833=_0x401040[_0x14b2e7];return _0x2af833;},a0_0x14b2(_0xcd1c28,_0x3c32c6);}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=_0x2f37ce=>class extends MetaButtonMixin(_0x2f37ce){static get[a0_0x2aee6a(0xe9)](){const _0x5438d8=a0_0x2aee6a;return MetaApi[_0x5438d8(0xc5)]();}static get[a0_0x2aee6a(0xdd)](){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_0x2aee6a(0x11c)](){const _0xa32a4e=a0_0x2aee6a;return this['renderRoot'][_0xa32a4e(0xd5)](this['gristId']);}get[a0_0x2aee6a(0xc6)](){const _0x14a73c=a0_0x2aee6a;return this[_0x14a73c(0xc8)]?.[_0x14a73c(0xd5)](this['filterFormId']);}get[a0_0x2aee6a(0xee)](){const _0xb60658=a0_0x2aee6a;return this[_0xb60658(0xc8)][_0xb60658(0xd5)](_0xb60658(0x112));}get[a0_0x2aee6a(0x117)](){const _0x1c7c98=a0_0x2aee6a;let _0x496d56=MetaUiUtil[_0x1c7c98(0x111)](this);return _0x496d56[_0x1c7c98(0xeb)]&&delete _0x496d56[_0x1c7c98(0xeb)],_0x496d56[_0x1c7c98(0xd7)]&&delete _0x496d56['exportable'],_0x496d56[_0x1c7c98(0x11e)]&&delete _0x496d56[_0x1c7c98(0x11e)],_0x496d56;}async[a0_0x2aee6a(0xe7)](){const _0x306465=a0_0x2aee6a;this[_0x306465(0x108)]=_0x306465(0xf9),this[_0x306465(0xfc)]=_0x306465(0x109),await this[_0x306465(0xfa)](),this['isElement']&&await this[_0x306465(0xd0)](),this[_0x306465(0xdf)]&&(this[_0x306465(0xe0)]=(this[_0x306465(0xdf)]||{})[_0x306465(0xed)]),super[_0x306465(0xe7)]&&await super[_0x306465(0xe7)]();}async[a0_0x2aee6a(0x102)](){const _0x13424f=a0_0x2aee6a;super[_0x13424f(0x102)]&&await super[_0x13424f(0x102)]();}async[a0_0x2aee6a(0xd6)](){const _0xf85ba6=a0_0x2aee6a;this['isPage']&&await this['parseGristConfigs'](),super[_0xf85ba6(0xd6)]&&await super[_0xf85ba6(0xd6)]();}[a0_0x2aee6a(0xd4)](){const _0x118433=a0_0x2aee6a;return MetaApi[_0x118433(0xce)](this);}['parseBasicGridConfigs'](_0x3870b5){const _0x51b71c=a0_0x2aee6a;this[_0x51b71c(0xe3)]=_0x3870b5[_0x51b71c(0xf6)],this[_0x51b71c(0xf5)]=_0x3870b5[_0x51b71c(0xe1)],this[_0x51b71c(0xca)]=_0x3870b5[_0x51b71c(0x113)];}async[a0_0x2aee6a(0xd0)](){const _0x3a5003=a0_0x2aee6a;this[_0x3a5003(0xf4)]=await MetaApi[_0x3a5003(0xcc)](this),this[_0x3a5003(0xcd)]=!0x0===this['useFilterForm'],this[_0x3a5003(0x10d)]=!0x1,this[_0x3a5003(0x106)]=[],this[_0x3a5003(0x107)]=this[_0x3a5003(0xf4)][_0x3a5003(0xdb)][_0x3a5003(0xe8)](_0xa04e3b=>_0xa04e3b['filter'])[_0x3a5003(0x115)](_0x21c9c1=>{const _0x48ea4f=_0x3a5003;let _0x80d821={'name':_0x21c9c1[_0x48ea4f(0xdc)],'type':_0x21c9c1[_0x48ea4f(0xe6)],'label':_0x21c9c1[_0x48ea4f(0xde)],'operator':_0x21c9c1[_0x48ea4f(0xe8)][_0x48ea4f(0xf8)]?_0x21c9c1[_0x48ea4f(0xe8)]['operator']:'eq'};return _0x21c9c1['record'][_0x48ea4f(0x118)]&&(_0x80d821[_0x48ea4f(0x118)]=_0x21c9c1[_0x48ea4f(0xd2)][_0x48ea4f(0x118)]),_0x21c9c1[_0x48ea4f(0xe8)][_0x48ea4f(0x11b)]&&this[_0x48ea4f(0x106)][_0x48ea4f(0xef)]({'name':_0x80d821[_0x48ea4f(0xdc)],'operator':_0x80d821[_0x48ea4f(0xf8)],'value':_0x21c9c1[_0x48ea4f(0xe8)][_0x48ea4f(0x11b)]}),_0x80d821;});}async[a0_0x2aee6a(0xd8)](){const _0x304825=a0_0x2aee6a;await this['grist'][_0x304825(0xd8)]();}async[a0_0x2aee6a(0xe2)]({page:_0x4fca55=0x0,limit:_0x14e848=0x0,sortings:_0x31836a=[],filters:_0x2f68fa=[]}){const _0x4fdb62=a0_0x2aee6a;let _0x18ec45=this[_0x4fdb62(0xc9)][_0x4fdb62(0xd5)]('meta-tab-element');return await _0x18ec45[_0x4fdb62(0x103)](),!0x0;}async[a0_0x2aee6a(0xfb)](){const _0x284613=a0_0x2aee6a;let _0x125103=MetaApi[_0x284613(0xff)](this['grist']);!!ValueUtil['isNotEmpty'](_0x125103)&&await this[_0x284613(0xfd)](_0x125103)&&this[_0x284613(0xd8)]();}async[a0_0x2aee6a(0x104)](){const _0xa31299=a0_0x2aee6a;let _0x425e4e=MetaApi[_0xa31299(0x10f)](this[_0xa31299(0x11c)],!0x0);return ValueUtil['isNotEmpty'](_0x425e4e)?await this[_0xa31299(0x100)](_0x425e4e[0x0]):{};}async['delete'](){const _0x65a00f=a0_0x2aee6a;let _0x183cce=MetaApi[_0x65a00f(0x10f)](this[_0x65a00f(0x11c)],!0x0);!!ValueUtil[_0x65a00f(0xf3)](_0x183cce)&&await this[_0x65a00f(0xda)](_0x183cce)&&this[_0x65a00f(0xd8)]();}async['export'](){const _0x4c0f56=a0_0x2aee6a;let _0x450176=TermsUtil[_0x4c0f56(0xd9)](ValueUtil[_0x4c0f56(0x116)](this[_0x4c0f56(0x10b)],_0x4c0f56(0xd1)));return await MetaApi[_0x4c0f56(0x101)](this[_0x4c0f56(0xec)],_0x450176,this['grist']);}async[a0_0x2aee6a(0xe4)](){}[a0_0x2aee6a(0xf7)](){const _0xa5797f=a0_0x2aee6a;let _0x5301d5=this[_0xa5797f(0x11c)][_0xa5797f(0x119)][_0xa5797f(0xf2)];return _0x5301d5=JSON[_0xa5797f(0x10c)](JSON[_0xa5797f(0x11d)](_0x5301d5)),_0x5301d5[_0xa5797f(0xea)](_0x5e82d3=>{const _0x3830c1=_0xa5797f;Object[_0x3830c1(0x10a)](_0x5e82d3)[_0x3830c1(0xea)](_0x5835eb=>{_0x5835eb['startsWith']('__')&&delete _0x5e82d3[_0x5835eb];});}),{'main':_0x5301d5,'detail':this[_0xa5797f(0xc9)][_0xa5797f(0xd5)](_0xa5797f(0xd3))[_0xa5797f(0xf7)]()};}};
1
+ const a0_0xd922de=a0_0x1629;(function(_0x4ae85c,_0x241114){const _0x491489=a0_0x1629,_0x44d284=_0x4ae85c();while(!![]){try{const _0x3d179f=parseInt(_0x491489(0x182))/0x1*(parseInt(_0x491489(0x17e))/0x2)+parseInt(_0x491489(0x175))/0x3*(parseInt(_0x491489(0x188))/0x4)+parseInt(_0x491489(0x1ae))/0x5*(parseInt(_0x491489(0x17f))/0x6)+-parseInt(_0x491489(0x16f))/0x7*(parseInt(_0x491489(0x172))/0x8)+-parseInt(_0x491489(0x1bb))/0x9+parseInt(_0x491489(0x19f))/0xa*(-parseInt(_0x491489(0x1b3))/0xb)+-parseInt(_0x491489(0x1ab))/0xc*(-parseInt(_0x491489(0x191))/0xd);if(_0x3d179f===_0x241114)break;else _0x44d284['push'](_0x44d284['shift']());}catch(_0x8b329e){_0x44d284['push'](_0x44d284['shift']());}}}(a0_0x149e,0x76f2b));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';function a0_0x1629(_0x1b8a93,_0x3a4676){const _0x149e96=a0_0x149e();return a0_0x1629=function(_0x16296f,_0x15af0e){_0x16296f=_0x16296f-0x16d;let _0x2d734d=_0x149e96[_0x16296f];return _0x2d734d;},a0_0x1629(_0x1b8a93,_0x3a4676);}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x1f4583=>class extends MetaButtonMixin(_0x1f4583){static get[a0_0xd922de(0x1b1)](){const _0x5e2a32=a0_0xd922de;return MetaApi[_0x5e2a32(0x184)]();}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_0xd922de(0x1a8)](){const _0x15e06c=a0_0xd922de;return this[_0x15e06c(0x195)][_0x15e06c(0x1a9)](this['gristId']);}get[a0_0xd922de(0x173)](){const _0x17f447=a0_0xd922de;return this['shadowRoot']?.[_0x17f447(0x1a9)](this[_0x17f447(0x19d)]);}get[a0_0xd922de(0x177)](){const _0x17feee=a0_0xd922de;return this['shadowRoot'][_0x17feee(0x1a9)](_0x17feee(0x194));}get[a0_0xd922de(0x1ba)](){const _0x2b1729=a0_0xd922de;let _0xc8c280=MetaUiUtil[_0x2b1729(0x1a4)](this);return _0xc8c280['actions']&&delete _0xc8c280[_0x2b1729(0x1aa)],_0xc8c280[_0x2b1729(0x193)]&&delete _0xc8c280[_0x2b1729(0x193)],_0xc8c280[_0x2b1729(0x1b4)]&&delete _0xc8c280[_0x2b1729(0x1b4)],_0xc8c280;}async[a0_0xd922de(0x1ac)](){const _0x3cd467=a0_0xd922de;this[_0x3cd467(0x179)]=_0x3cd467(0x16d),this['filterFormId']=_0x3cd467(0x1b6),await this['getAndParseMenuMeta'](),this[_0x3cd467(0x1b2)]&&await this[_0x3cd467(0x178)](),this[_0x3cd467(0x1a5)]&&(this[_0x3cd467(0x19b)]=(this['activityDataSet']||{})[_0x3cd467(0x18c)]),super[_0x3cd467(0x1ac)]&&await super['connectedCallback']();}async[a0_0xd922de(0x1ad)](){const _0xcf7536=a0_0xd922de;super[_0xcf7536(0x1ad)]&&await super['firstUpdated']();}async['pageInitialized'](){const _0x804655=a0_0xd922de;this[_0x804655(0x17a)]&&await this['parseGristConfigs'](),super[_0x804655(0x1bf)]&&await super['pageInitialized']();}[a0_0xd922de(0x176)](){const _0x351920=a0_0xd922de;return MetaApi[_0x351920(0x17c)](this);}[a0_0xd922de(0x1af)](_0x360b4b){const _0x5e27ad=a0_0xd922de;this['gridConfig']=_0x360b4b['grid'],this[_0x5e27ad(0x18a)]=_0x360b4b[_0x5e27ad(0x19a)],this['searchConfig']=_0x360b4b[_0x5e27ad(0x1a3)];}async[a0_0xd922de(0x178)](){const _0x20fa32=a0_0xd922de;this[_0x20fa32(0x19c)]=await MetaApi[_0x20fa32(0x181)](this),this[_0x20fa32(0x1a7)]=!0x0===this[_0x20fa32(0x1b9)],this[_0x20fa32(0x1b9)]=!0x1,this[_0x20fa32(0x197)]=[],this[_0x20fa32(0x18b)]=this['gristConfigSet'][_0x20fa32(0x1be)]['filter'](_0x381a31=>_0x381a31[_0x20fa32(0x192)])[_0x20fa32(0x190)](_0x4fb295=>{const _0x3fb364=_0x20fa32;let _0x2eb69e={'name':_0x4fb295[_0x3fb364(0x187)],'type':_0x3fb364(0x1a3)===_0x4fb295[_0x3fb364(0x192)]['operator']?_0x3fb364(0x1a3):_0x4fb295[_0x3fb364(0x183)],'label':_0x4fb295[_0x3fb364(0x170)],'operator':_0x4fb295[_0x3fb364(0x192)][_0x3fb364(0x174)]?_0x4fb295[_0x3fb364(0x192)][_0x3fb364(0x174)]:'eq'};return _0x4fb295[_0x3fb364(0x1a6)][_0x3fb364(0x196)]&&(_0x2eb69e[_0x3fb364(0x196)]=_0x4fb295['record'][_0x3fb364(0x196)]),_0x4fb295[_0x3fb364(0x192)][_0x3fb364(0x171)]&&this['searchFieldValues']['push']({'name':_0x2eb69e[_0x3fb364(0x187)],'operator':_0x2eb69e['operator'],'value':_0x4fb295[_0x3fb364(0x192)][_0x3fb364(0x171)]}),_0x2eb69e;});}async['fetch'](){const _0x44fd30=a0_0xd922de;await this['grist'][_0x44fd30(0x18e)]();}async[a0_0xd922de(0x17b)]({page:_0x5ddcb8=0x0,limit:_0x464501=0x0,sortings:_0x2fc613=[],filters:_0x54c17c=[]}){const _0x4c0df2=a0_0xd922de;let _0x3afa3d=this['renderRoot']['querySelector']('meta-tab-element');return await _0x3afa3d[_0x4c0df2(0x180)](),!0x0;}async[a0_0xd922de(0x18d)](){const _0xb940e=a0_0xd922de;let _0x277ad3=MetaApi[_0xb940e(0x1b0)](this[_0xb940e(0x1a8)]);!!ValueUtil[_0xb940e(0x1a2)](_0x277ad3)&&await this[_0xb940e(0x1bc)](_0x277ad3)&&this[_0xb940e(0x18e)]();}async['find'](){const _0x4d977e=a0_0xd922de;let _0x19a83a=MetaApi[_0x4d977e(0x1bd)](this[_0x4d977e(0x1a8)],!0x0);return ValueUtil['isNotEmpty'](_0x19a83a)?await this[_0x4d977e(0x16e)](_0x19a83a[0x0]):{};}async['delete'](){const _0x1f2ae4=a0_0xd922de;let _0x300098=MetaApi[_0x1f2ae4(0x1bd)](this['grist'],!0x0);!!ValueUtil[_0x1f2ae4(0x1a2)](_0x300098)&&await this['deleteByIds'](_0x300098)&&this[_0x1f2ae4(0x18e)]();}async[a0_0xd922de(0x1b7)](){const _0x10c2af=a0_0xd922de;let _0x191c10=TermsUtil[_0x10c2af(0x198)](ValueUtil['getParams'](this[_0x10c2af(0x189)],_0x10c2af(0x1a0)));return await MetaApi[_0x10c2af(0x1b5)](this[_0x10c2af(0x1b2)],_0x191c10,this[_0x10c2af(0x1a8)]);}async[a0_0xd922de(0x1a1)](){}[a0_0xd922de(0x19e)](){const _0x5e89b7=a0_0xd922de;let _0x39ef9e=this[_0x5e89b7(0x1a8)][_0x5e89b7(0x18f)][_0x5e89b7(0x186)];return _0x39ef9e=JSON[_0x5e89b7(0x185)](JSON[_0x5e89b7(0x199)](_0x39ef9e)),_0x39ef9e['forEach'](_0x1eeafe=>{const _0x47359b=_0x5e89b7;Object[_0x47359b(0x1b8)](_0x1eeafe)['forEach'](_0x356e43=>{_0x356e43['startsWith']('__')&&delete _0x1eeafe[_0x356e43];});}),{'main':_0x39ef9e,'detail':this[_0x5e89b7(0x195)][_0x5e89b7(0x1a9)](_0x5e89b7(0x17d))['getData']()};}};function a0_0x149e(){const _0x2081c8=['tTitle','stringify','grid_column','dataSet','gristConfigSet','filterFormId','getData','60lLRUDe','title','import','isNotEmpty','search','getContextObject','activityDataSet','record','useMasterFilterForm','grist','querySelector','actions','12lIoDYw','connectedCallback','firstUpdated','914535gEzdDg','parseBasicGridConfigs','patchesForUpdateMultiple','styles','isElement','267344SsTsdX','importable','exportableData','ox-filters-form-base','export','keys','useFilterForm','context','3530709wiCdIU','updateMultiple','getSelectedIdList','columns','pageInitialized','ox-grist','findOne','28ZaOXtU','header','value','140776BZORrx','filterForm','operator','15EdPQtF','render','detailElement','parseGristConfigs','gristId','isPage','beforeFetch','getGristTabHtml','meta-tab-element','2sbFBQJ','24XENnmr','clear','parseGridConfigSet','126131miVNDG','type','getBasicGristTabStyles','parse','records','name','17260YvnHpa','menuInfo','gridColumnConfig','searchFields','main','save','fetch','___data','map','2813070vgOkvm','filter','exportable','#detail','renderRoot','options','searchFieldValues'];a0_0x149e=function(){return _0x2081c8;};return a0_0x149e();}