@things-factory/meta-ui 6.1.109 → 6.1.111

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 (116) hide show
  1. package/client/actions/main.js +4 -4
  2. package/client/bootstrap.js +23 -35
  3. package/client/component/filter/filter-form-meta-code-select.js +9 -9
  4. package/client/component/filter/filter-form-meta-object-select.js +9 -9
  5. package/client/component/filter/filter-grist-meta-code-select.js +9 -9
  6. package/client/component/filter/filter-grist-meta-object-select.js +9 -9
  7. package/client/component/grist/editor/grist-editor-code-input.js +6 -6
  8. package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
  9. package/client/component/grist/editor/grist-editor-meta-object-selector.js +8 -8
  10. package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
  11. package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
  12. package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
  13. package/client/component/popup/code-input-editor-popup.js +10 -10
  14. package/client/component/popup/file-upload-popup.js +11 -11
  15. package/client/component/popup/meta-object-selector-popup.js +11 -11
  16. package/client/component/popup/record-based-code-editor-popup.js +39 -0
  17. package/client/index.js +2 -1
  18. package/client/mixin/meta-base-mixin.js +1 -1
  19. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  20. package/client/mixin/meta-button-mixin.js +1 -1
  21. package/client/mixin/meta-form-mixin.js +1 -1
  22. package/client/mixin/meta-grist-tab-mixin.js +1 -1
  23. package/client/mixin/meta-main-tab-mixin.js +1 -1
  24. package/client/mixin/meta-master-detail-mixin.js +1 -1
  25. package/client/mixin/meta-service-mixin.js +1 -1
  26. package/client/mixin/meta-tab-detail-mixin.js +1 -1
  27. package/client/mixin/meta-tab-mixin.js +1 -1
  28. package/client/pages/activity/meta-activity-define-page.js +11 -23
  29. package/client/pages/activity/meta-activity-list-page.js +6 -6
  30. package/client/pages/activity/meta-activity-viewer-element.js +3 -3
  31. package/client/pages/activity/meta-activity-writer-element.js +3 -3
  32. package/client/pages/activity/meta-activiy-mixin.js +3 -3
  33. package/client/pages/button-role/button-role-detail.js +1 -1
  34. package/client/pages/button-role/button-role-page.js +1 -1
  35. package/client/pages/doc-number/doc-number-page.js +1 -0
  36. package/client/pages/doc-number/next-doc-number-popup.js +1 -0
  37. package/client/pages/entity/config-entity.js +29 -29
  38. package/client/pages/entity/main-menu-selector.js +8 -8
  39. package/client/pages/history/history-copy-list-popup.js +5 -5
  40. package/client/pages/history/history-json-list-popup.js +6 -6
  41. package/client/pages/loading-page.js +4 -4
  42. package/client/pages/menu/dynamic-menu-setting-let.js +22 -0
  43. package/client/pages/menu/dynamic-menu-template.js +7 -7
  44. package/client/pages/menu/dynamic-menu.js +18 -18
  45. package/client/pages/menu/export-menu-popup.js +7 -7
  46. package/client/pages/meta-form-element.js +1 -1
  47. package/client/pages/meta-grist-element.js +1 -1
  48. package/client/pages/meta-grist-page.js +1 -1
  49. package/client/pages/meta-grist-tab-element.js +1 -1
  50. package/client/pages/meta-grist-tab-page.js +1 -1
  51. package/client/pages/meta-main-tab-element.js +1 -1
  52. package/client/pages/meta-main-tab-page.js +1 -1
  53. package/client/pages/meta-master-detail-element.js +1 -1
  54. package/client/pages/meta-master-detail-page.js +1 -1
  55. package/client/pages/meta-tab-detail-element.js +1 -1
  56. package/client/pages/meta-tab-detail-page.js +1 -1
  57. package/client/pages/meta-tab-element.js +1 -1
  58. package/client/pages/personalize/personal-column-selector.js +11 -11
  59. package/client/pages/printer-device/printer-device-page.js +1 -0
  60. package/client/pages/template/doc-template-page.js +1 -0
  61. package/client/pages/template/template-file-page.js +1 -0
  62. package/client/pages/terms/config-terminology.js +6 -6
  63. package/client/pages/work-code/work-code-detail-popup.js +1 -1
  64. package/client/pages/work-code/work-code-page.js +1 -1
  65. package/client/reducers/main.js +1 -1
  66. package/client/utils/grist-default-value.js +1 -1
  67. package/client/utils/meta-api.js +1 -1
  68. package/client/utils/meta-crypto.js +1 -1
  69. package/client/utils/meta-ui-util.js +119 -112
  70. package/client/utils/service-util.js +49 -16
  71. package/client/utils/terms-util.js +2 -2
  72. package/client/utils/ui-util.js +1 -1
  73. package/client/utils/value-util.js +1 -1
  74. package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
  75. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  76. package/client/viewparts/dynamic-menu-part.js +12 -12
  77. package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
  78. package/client/viewparts/dynamic-menu-portrait.js +9 -9
  79. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  80. package/package.json +4 -4
  81. package/server/activity/CommonActivity.js +2 -2
  82. package/server/constants/error-code.js +1 -1
  83. package/server/errors/license-error.js +1 -1
  84. package/server/routes.js +1 -1
  85. package/server/service/button-role/button-role-mutation.js +1 -1
  86. package/server/service/button-role/button-role-query.js +1 -1
  87. package/server/service/button-role/button-role-type.js +1 -1
  88. package/server/service/button-role/button-role.js +1 -1
  89. package/server/service/dynamic-menu/dynamic-menu-query.js +1 -1
  90. package/server/service/dynamic-menu/dynamic-menu-type.js +1 -1
  91. package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
  92. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  93. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  94. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  95. package/server/service/grid-personalize/grid-personalize.js +1 -1
  96. package/server/service/menu-button-auth/menu-button-auth-mutation.js +1 -1
  97. package/server/service/menu-button-auth/menu-button-auth-query.js +1 -1
  98. package/server/service/menu-button-auth/menu-button-auth-type.js +1 -1
  99. package/server/service/menu-button-auth/menu-button-auth.js +1 -1
  100. package/server/service/meta-activity/meta-activity-mutation.js +1 -1
  101. package/server/service/meta-activity/meta-activity-query.js +1 -1
  102. package/server/service/meta-activity/meta-activity-type.js +1 -1
  103. package/server/service/meta-secret/meta-resolver.js +1 -1
  104. package/server/service/set-translations/set-translation-resolver.js +1 -1
  105. package/server/service/work-code/work-code-mutation.js +1 -1
  106. package/server/service/work-code/work-code-query.js +1 -1
  107. package/server/service/work-code/work-code-type.js +1 -1
  108. package/server/service/work-code/work-code.js +1 -1
  109. package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
  110. package/server/service/work-code-detail/work-code-detail-query.js +1 -1
  111. package/server/service/work-code-detail/work-code-detail-type.js +1 -1
  112. package/server/service/work-code-detail/work-code-detail.js +1 -1
  113. package/translations/en.json +100 -72
  114. package/translations/ko.json +69 -41
  115. package/translations/ms.json +100 -72
  116. package/translations/zh.json +107 -79
@@ -1 +1 @@
1
- (function(_0xa7f1e1,_0x19c0ce){const _0x1b3c52=a0_0x3040,_0x2f9efc=_0xa7f1e1();while(!![]){try{const _0x46ca2a=parseInt(_0x1b3c52(0x1eb))/0x1+parseInt(_0x1b3c52(0x1f4))/0x2*(parseInt(_0x1b3c52(0x1f5))/0x3)+-parseInt(_0x1b3c52(0x1f1))/0x4*(parseInt(_0x1b3c52(0x1f6))/0x5)+-parseInt(_0x1b3c52(0x1ee))/0x6*(parseInt(_0x1b3c52(0x1ef))/0x7)+parseInt(_0x1b3c52(0x1f8))/0x8+-parseInt(_0x1b3c52(0x1fb))/0x9+-parseInt(_0x1b3c52(0x1f0))/0xa*(-parseInt(_0x1b3c52(0x1f2))/0xb);if(_0x46ca2a===_0x19c0ce)break;else _0x2f9efc['push'](_0x2f9efc['shift']());}catch(_0x3e7357){_0x2f9efc['push'](_0x2f9efc['shift']());}}}(a0_0x4822,0x4aa68));import{html}from'lit';function a0_0x4822(){const _0x238404=['5060bSLdaR','record','108DrhBwe','5373KoYwea','9650ErbpOa','length','3471512JGyZkt','textContent','join','4103658RNfohi','target','nameField','343258EnOPuu','data-tooltip','removeAttribute','6EDeaSM','3817037RVLyBI','22380flfIIx','1236SdvikQ'];a0_0x4822=function(){return _0x238404;};return a0_0x4822();}import{detectOverflow}from'@operato/utils';function a0_0x3040(_0x246382,_0x28d413){const _0x482274=a0_0x4822();return a0_0x3040=function(_0x304028,_0x29af40){_0x304028=_0x304028-0x1ea;let _0x4e6907=_0x482274[_0x304028];return _0x4e6907;},a0_0x3040(_0x246382,_0x28d413);}function onmouseover(_0x4e347b){const _0x37b8d9=a0_0x3040,_0x1cefc5=_0x4e347b['target'];detectOverflow(_0x1cefc5)&&_0x1cefc5['setAttribute'](_0x37b8d9(0x1ec),_0x1cefc5[_0x37b8d9(0x1f9)]);}function onmouseout(_0x41e193){const _0x4b33c7=a0_0x3040;_0x41e193[_0x4b33c7(0x1fc)][_0x4b33c7(0x1ed)]('data-tooltip');}export const GristRendererMetaObjectSelector=(_0x2f4248,_0x2e1901,_0x650eb7,_0x52f4e1,_0x989266)=>{const _0x51bf69=a0_0x3040;let _0x2ed9b1='';if(_0x2f4248&&_0x2e1901[_0x51bf69(0x1f3)]['options']){let _0x3b1dd5=_0x2e1901[_0x51bf69(0x1f3)]['options'][_0x51bf69(0x1ea)]['split'](',');_0x2ed9b1=_0x2f4248[_0x3b1dd5[0x0]],_0x3b1dd5[_0x51bf69(0x1f7)]>0x1&&(_0x2ed9b1+='('+_0x3b1dd5['splice'](0x1)['map'](_0x5f273c=>_0x2f4248[_0x5f273c])[_0x51bf69(0x1fa)](',')+')');}return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x2ed9b1}</span>`;};
1
+ function a0_0x46f8(){const _0x2c6f6f=['record','length','45FUVvSd','2124xuVTna','669730tenNtH','54gjXppG','1706oSRlCV','options','11odQjBP','1811384pmqInU','splice','split','284775QsYGTv','14323164SfPpVk','data-tooltip','944952tvfXXG','14kJujqk','4100120sDePUa','join','removeAttribute','nameField'];a0_0x46f8=function(){return _0x2c6f6f;};return a0_0x46f8();}(function(_0x1c77fb,_0x312968){const _0x4575a1=a0_0xb920,_0x31a6d6=_0x1c77fb();while(!![]){try{const _0x58f877=parseInt(_0x4575a1(0x9f))/0x1+parseInt(_0x4575a1(0xab))/0x2*(parseInt(_0x4575a1(0xa8))/0x3)+-parseInt(_0x4575a1(0xae))/0x4+parseInt(_0x4575a1(0x9c))/0x5*(-parseInt(_0x4575a1(0xaa))/0x6)+parseInt(_0x4575a1(0xa0))/0x7*(parseInt(_0x4575a1(0xa1))/0x8)+-parseInt(_0x4575a1(0xa7))/0x9*(-parseInt(_0x4575a1(0xa9))/0xa)+parseInt(_0x4575a1(0xad))/0xb*(-parseInt(_0x4575a1(0x9d))/0xc);if(_0x58f877===_0x312968)break;else _0x31a6d6['push'](_0x31a6d6['shift']());}catch(_0x45089f){_0x31a6d6['push'](_0x31a6d6['shift']());}}}(a0_0x46f8,0xb70a5));import{html}from'lit';function a0_0xb920(_0x5cb1b6,_0x58ddf9){const _0x46f898=a0_0x46f8();return a0_0xb920=function(_0xb92046,_0x4b771c){_0xb92046=_0xb92046-0x9c;let _0x4c776a=_0x46f898[_0xb92046];return _0x4c776a;},a0_0xb920(_0x5cb1b6,_0x58ddf9);}import{detectOverflow}from'@operato/utils';function onmouseover(_0x30994c){const _0xaded19=a0_0xb920,_0x451c93=_0x30994c['target'];detectOverflow(_0x451c93)&&_0x451c93['setAttribute'](_0xaded19(0x9e),_0x451c93['textContent']);}function onmouseout(_0x4d5208){const _0x1e2961=a0_0xb920;_0x4d5208['target'][_0x1e2961(0xa3)](_0x1e2961(0x9e));}export const GristRendererMetaObjectSelector=(_0x5c6df4,_0x37cc06,_0x146453,_0x591b02,_0x365354)=>{const _0x443c82=a0_0xb920;let _0x1606d5='';if(_0x5c6df4&&_0x37cc06[_0x443c82(0xa5)][_0x443c82(0xac)]){let _0x43e54c=_0x37cc06[_0x443c82(0xa5)][_0x443c82(0xac)][_0x443c82(0xa4)][_0x443c82(0xb0)](',');_0x1606d5=_0x5c6df4[_0x43e54c[0x0]],_0x43e54c[_0x443c82(0xa6)]>0x1&&(_0x1606d5+='('+_0x43e54c[_0x443c82(0xaf)](0x1)['map'](_0x3793ac=>_0x5c6df4[_0x3793ac])[_0x443c82(0xa2)](',')+')');}return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${_0x1606d5}</span>`;};
@@ -1,4 +1,4 @@
1
- var a0_0x2efc38=a0_0x5457;(function(_0x3550c8,_0x347262){var _0x45e6ce=a0_0x5457,_0x30e34e=_0x3550c8();while(!![]){try{var _0x5219b5=parseInt(_0x45e6ce(0x179))/0x1+-parseInt(_0x45e6ce(0x187))/0x2*(-parseInt(_0x45e6ce(0x181))/0x3)+parseInt(_0x45e6ce(0x18a))/0x4*(-parseInt(_0x45e6ce(0x16d))/0x5)+parseInt(_0x45e6ce(0x176))/0x6*(-parseInt(_0x45e6ce(0x171))/0x7)+parseInt(_0x45e6ce(0x188))/0x8*(parseInt(_0x45e6ce(0x189))/0x9)+-parseInt(_0x45e6ce(0x180))/0xa+parseInt(_0x45e6ce(0x16f))/0xb;if(_0x5219b5===_0x347262)break;else _0x30e34e['push'](_0x30e34e['shift']());}catch(_0x31d787){_0x30e34e['push'](_0x30e34e['shift']());}}}(a0_0xecbe,0xe4ef5));import{css,html,LitElement}from'lit';function a0_0x5457(_0x21b876,_0x15b6c2){var _0xecbe1d=a0_0xecbe();return a0_0x5457=function(_0x5457fd,_0x106ce5){_0x5457fd=_0x5457fd-0x16c;var _0x2e5a25=_0xecbe1d[_0x5457fd];return _0x2e5a25;},a0_0x5457(_0x21b876,_0x15b6c2);}import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{MetaApi}from'../../utils/meta-api';import'@operato/input/ox-input-code.js';import{closePopup}from'@operato/popup';function a0_0xecbe(){var _0x1da5b2=['6Rflmxa','clickConfirm','firstUpdated','708570SopDrw','confirmCallback','codeEditor','ox-input-code','tButton','stringify','tText','829760JxOgEZ','3CSgrJH','confirm','changedValue','info','value','codeVlaue','912494GooUhW','10361584UPiBzJ','9CXQDHa','172dXTZjd','bind','107755UGbBKw','clickEmpty','3592864wKhLGM','code-input-editor-popup','5874771KFjKSN','clickCancel','NOTHING_CHANGED','connectedCallback','render'];a0_0xecbe=function(){return _0x1da5b2;};return a0_0xecbe();}export class CodeInputEditorPopup extends LitElement{static ['styles']=[CommonGristStyles,ButtonContainerStyles,css`
1
+ var a0_0x3f135a=a0_0x35ef;(function(_0x354aac,_0x4e5523){var _0x310c51=a0_0x35ef,_0x5ec726=_0x354aac();while(!![]){try{var _0x320d2a=-parseInt(_0x310c51(0x18e))/0x1*(-parseInt(_0x310c51(0x1ae))/0x2)+-parseInt(_0x310c51(0x19a))/0x3*(parseInt(_0x310c51(0x18d))/0x4)+parseInt(_0x310c51(0x194))/0x5+parseInt(_0x310c51(0x19d))/0x6*(-parseInt(_0x310c51(0x198))/0x7)+-parseInt(_0x310c51(0x191))/0x8*(parseInt(_0x310c51(0x1a8))/0x9)+parseInt(_0x310c51(0x1a9))/0xa*(parseInt(_0x310c51(0x18a))/0xb)+parseInt(_0x310c51(0x1a7))/0xc;if(_0x320d2a===_0x4e5523)break;else _0x5ec726['push'](_0x5ec726['shift']());}catch(_0x45f974){_0x5ec726['push'](_0x5ec726['shift']());}}}(a0_0x2c50,0xa9c36));function a0_0x35ef(_0x14f57a,_0xf3fb7c){var _0x2c50ad=a0_0x2c50();return a0_0x35ef=function(_0x35ef7e,_0x8ecd44){_0x35ef7e=_0x35ef7e-0x18a;var _0x5368e5=_0x2c50ad[_0x35ef7e];return _0x5368e5;},a0_0x35ef(_0x14f57a,_0xf3fb7c);}import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{MetaApi}from'../../utils/meta-api';import'@operato/input/ox-input-code.js';import{closePopup}from'@operato/popup';export class CodeInputEditorPopup extends LitElement{static [a0_0x3f135a(0x1ad)]=[CommonGristStyles,ButtonContainerStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -19,17 +19,17 @@ var a0_0x2efc38=a0_0x5457;(function(_0x3550c8,_0x347262){var _0x45e6ce=a0_0x5457
19
19
  display: flex;
20
20
  margin-left: auto;
21
21
  }
22
- `];async[a0_0x2efc38(0x174)](){var _0x5474f3=a0_0x2efc38;'object'==typeof this[_0x5474f3(0x185)]?this[_0x5474f3(0x186)]=JSON[_0x5474f3(0x17e)](this['value'],0x0,0x2):this[_0x5474f3(0x186)]=this['value'],await super['connectedCallback']();}async['firstUpdated'](){var _0x4294aa=a0_0x2efc38;await super[_0x4294aa(0x178)]();}[a0_0x2efc38(0x175)](){var _0x28c96b=a0_0x2efc38;return html`
23
- <ox-input-code mode="javascript" value=${this[_0x28c96b(0x186)]} tab-size="2" tab-as-space="true"></ox-input-code>
22
+ `];async['connectedCallback'](){var _0x5ed213=a0_0x3f135a;_0x5ed213(0x19c)==typeof this[_0x5ed213(0x1ab)]?this[_0x5ed213(0x18b)]=JSON['stringify'](this[_0x5ed213(0x1ab)],0x0,0x2):this['codeVlaue']=this[_0x5ed213(0x1ab)],await super['connectedCallback']();}async[a0_0x3f135a(0x1aa)](){var _0x21a1a8=a0_0x3f135a;await super[_0x21a1a8(0x1aa)]();}[a0_0x3f135a(0x18c)](){var _0x2bd5e7=a0_0x3f135a;return html`
23
+ <ox-input-code mode="javascript" value=${this[_0x2bd5e7(0x18b)]} tab-size="2" tab-as-space="true"></ox-input-code>
24
24
  <div id="button-container" class="button-container">
25
- <mwc-button raised label="${TermsUtil[_0x28c96b(0x17d)]('empty')}" style="margin-left:7px;margin-top:7px;"
26
- @click=${this[_0x28c96b(0x16e)][_0x28c96b(0x16c)](this)}>
25
+ <mwc-button raised label="${TermsUtil[_0x2bd5e7(0x195)](_0x2bd5e7(0x1a3))}" style="margin-left:7px;margin-top:7px;"
26
+ @click=${this[_0x2bd5e7(0x190)][_0x2bd5e7(0x199)](this)}>
27
27
  </mwc-button>
28
- <mwc-button raised label="${TermsUtil['tButton']('cancel')}" style="margin-left:7px;margin-top:7px;"
29
- @click=${this['clickCancel']['bind'](this)}>
28
+ <mwc-button raised label="${TermsUtil[_0x2bd5e7(0x195)](_0x2bd5e7(0x196))}" style="margin-left:7px;margin-top:7px;"
29
+ @click=${this[_0x2bd5e7(0x1a0)]['bind'](this)}>
30
30
  </mwc-button>
31
- <mwc-button raised label="${TermsUtil['tButton'](_0x28c96b(0x182))}" style="margin-left:7px;margin-top:7px;"
32
- @click=${this[_0x28c96b(0x177)][_0x28c96b(0x16c)](this)}>
31
+ <mwc-button raised label="${TermsUtil[_0x2bd5e7(0x195)](_0x2bd5e7(0x1a6))}" style="margin-left:7px;margin-top:7px;"
32
+ @click=${this[_0x2bd5e7(0x1a1)]['bind'](this)}>
33
33
  </mwc-button>
34
34
  </div>
35
- `;}get[a0_0x2efc38(0x17b)](){var _0x581f5c=a0_0x2efc38;return this['shadowRoot']['querySelector'](_0x581f5c(0x17c));}async['clickEmpty'](_0x52f79c){var _0x315bf5=a0_0x2efc38;this['confirmCallback']&&this[_0x315bf5(0x17a)](null),closePopup(this);}async[a0_0x2efc38(0x172)](_0x1f73a6){closePopup(this);}async[a0_0x2efc38(0x177)](_0x578a68){var _0x1d7355=a0_0x2efc38;this[_0x1d7355(0x186)]!==this['codeEditor'][_0x1d7355(0x185)]?this[_0x1d7355(0x183)](this[_0x1d7355(0x17b)][_0x1d7355(0x185)]):MetaApi['showToast'](_0x1d7355(0x184),TermsUtil[_0x1d7355(0x17f)](_0x1d7355(0x173)));}async[a0_0x2efc38(0x183)](_0x477601){var _0x4fa5c2=a0_0x2efc38;this[_0x4fa5c2(0x17a)]&&this[_0x4fa5c2(0x17a)](_0x477601),closePopup(this);}}customElements['define'](a0_0x2efc38(0x170),CodeInputEditorPopup);
35
+ `;}get['codeEditor'](){var _0x376294=a0_0x3f135a;return this[_0x376294(0x197)][_0x376294(0x19e)](_0x376294(0x1a4));}async[a0_0x3f135a(0x190)](_0x2a0cbd){var _0x49780a=a0_0x3f135a;this[_0x49780a(0x1ac)]&&this[_0x49780a(0x1ac)](null),closePopup(this);}async['clickCancel'](_0x369390){closePopup(this);}async[a0_0x3f135a(0x1a1)](_0x1f0136){var _0x181c4e=a0_0x3f135a;this[_0x181c4e(0x18b)]!==this['codeEditor'][_0x181c4e(0x1ab)]?this[_0x181c4e(0x1a2)](this[_0x181c4e(0x19f)][_0x181c4e(0x1ab)]):MetaApi[_0x181c4e(0x18f)](_0x181c4e(0x193),TermsUtil['tText'](_0x181c4e(0x19b)));}async[a0_0x3f135a(0x1a2)](_0x3eaa1c){var _0x42aa6c=a0_0x3f135a;this['confirmCallback']&&this[_0x42aa6c(0x1ac)](_0x3eaa1c),closePopup(this);}}function a0_0x2c50(){var _0x36b7bf=['confirmCallback','styles','2zziEGz','11byTtvP','codeVlaue','render','3016TqZFIV','553844ZUnfEy','showToast','clickEmpty','195184ugkzEz','define','info','3538485bBpjdn','tButton','cancel','shadowRoot','2306108nBpgqL','bind','330FgAhak','NOTHING_CHANGED','object','6wyHZdz','querySelector','codeEditor','clickCancel','clickConfirm','changedValue','empty','ox-input-code','code-input-editor-popup','confirm','6334212pDKNdv','513zndQxH','7090280frvfSJ','firstUpdated','value'];a0_0x2c50=function(){return _0x36b7bf;};return a0_0x2c50();}customElements[a0_0x3f135a(0x192)](a0_0x3f135a(0x1a5),CodeInputEditorPopup);
@@ -1,4 +1,4 @@
1
- const a0_0x1f6a51=a0_0x13c5;(function(_0x4deffa,_0x3f2167){const _0x306ab8=a0_0x13c5,_0x238bf5=_0x4deffa();while(!![]){try{const _0x460290=parseInt(_0x306ab8(0x1a9))/0x1+parseInt(_0x306ab8(0x1aa))/0x2+parseInt(_0x306ab8(0x1d2))/0x3*(parseInt(_0x306ab8(0x1b5))/0x4)+parseInt(_0x306ab8(0x1bb))/0x5+parseInt(_0x306ab8(0x1ce))/0x6*(parseInt(_0x306ab8(0x1bd))/0x7)+-parseInt(_0x306ab8(0x1bf))/0x8+-parseInt(_0x306ab8(0x1bc))/0x9*(parseInt(_0x306ab8(0x1ac))/0xa);if(_0x460290===_0x3f2167)break;else _0x238bf5['push'](_0x238bf5['shift']());}catch(_0x3a7176){_0x238bf5['push'](_0x238bf5['shift']());}}}(a0_0x4aaa,0x73221));import{client,gqlContext}from'@things-factory/shell';import{css,html,LitElement}from'lit';import{SingleColumnFormStyles}from'@things-factory/form-ui';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import a0_0x370ac9 from'graphql-tag';import{TermsUtil}from'../../utils/terms-util';function a0_0x13c5(_0x5458a6,_0x13a88b){const _0x4aaa47=a0_0x4aaa();return a0_0x13c5=function(_0x13c58a,_0x1df8ac){_0x13c58a=_0x13c58a-0x1a8;let _0x313e0b=_0x4aaa47[_0x13c58a];return _0x313e0b;},a0_0x13c5(_0x5458a6,_0x13a88b);}import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';class FileUploadPopup extends LitElement{static get['styles'](){return[SingleColumnFormStyles,css`
1
+ const a0_0x3356d4=a0_0x4934;(function(_0x2935a1,_0x103970){const _0x3a96a3=a0_0x4934,_0x592003=_0x2935a1();while(!![]){try{const _0x45fed5=parseInt(_0x3a96a3(0xfc))/0x1*(-parseInt(_0x3a96a3(0x11c))/0x2)+parseInt(_0x3a96a3(0x112))/0x3*(-parseInt(_0x3a96a3(0x107))/0x4)+parseInt(_0x3a96a3(0xf3))/0x5*(-parseInt(_0x3a96a3(0xfd))/0x6)+parseInt(_0x3a96a3(0x117))/0x7*(parseInt(_0x3a96a3(0x102))/0x8)+-parseInt(_0x3a96a3(0xf9))/0x9*(parseInt(_0x3a96a3(0x121))/0xa)+-parseInt(_0x3a96a3(0x10f))/0xb+parseInt(_0x3a96a3(0xfe))/0xc;if(_0x45fed5===_0x103970)break;else _0x592003['push'](_0x592003['shift']());}catch(_0x658212){_0x592003['push'](_0x592003['shift']());}}}(a0_0x4c4e,0xdbcb1));import{client,gqlContext}from'@things-factory/shell';import{css,html,LitElement}from'lit';import{SingleColumnFormStyles}from'@things-factory/form-ui';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import a0_0x1c4613 from'graphql-tag';import{TermsUtil}from'../../utils/terms-util';function a0_0x4c4e(){const _0xcf852a=['errors','_getInputByName','value','styles','confirm','279LGtePM','create','file_upload','914QDpjkS','90npHIBx','48126516JknRZm','_getAttachmentInfo','tButton','connectedCallback','832FCKuaV','files','map','please_select_upload_category','properties','176mQqzsy','text.attachment_info_not_valid','_createAttachment','label.error','error','select[name=','category','render','5578133jUXKSZ','TEMPLATE_TYPES','templateTypes','64392RFcGFm','form','],\x20input[name=','#uploadTemplate','message','76559fNIfFM','define','tLabel','description','tText','1290uMBxbJ','customElements','file-upload-popup','querySelector','_template','359290jyySDP','back','renderRoot','364290UQpUNe'];a0_0x4c4e=function(){return _0xcf852a;};return a0_0x4c4e();}import{ValueUtil}from'../../utils/value-util';function a0_0x4934(_0x2009bd,_0x35d215){const _0x4c4e66=a0_0x4c4e();return a0_0x4934=function(_0x493479,_0x54a411){_0x493479=_0x493479-0xf1;let _0x2c1cdd=_0x4c4e66[_0x493479];return _0x2c1cdd;},a0_0x4934(_0x2009bd,_0x35d215);}import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';class FileUploadPopup extends LitElement{static get[a0_0x3356d4(0xf7)](){return[SingleColumnFormStyles,css`
2
2
  :host {
3
3
  padding: 10px;
4
4
  display: flex;
@@ -27,30 +27,30 @@ const a0_0x1f6a51=a0_0x13c5;(function(_0x4deffa,_0x3f2167){const _0x306ab8=a0_0x
27
27
  .button-container > button:active {
28
28
  background-color: var(--button-background-focus-color);
29
29
  }
30
- `];}static get[a0_0x1f6a51(0x1c9)](){return{'templateTypes':Array};}async[a0_0x1f6a51(0x1ae)](){const _0x1d48b7=a0_0x1f6a51;super[_0x1d48b7(0x1ae)](),this['templateTypes']=await ServiceUtil[_0x1d48b7(0x1b1)]('TEMPLATE_TYPES');}[a0_0x1f6a51(0x1b8)](){const _0x25adb=a0_0x1f6a51;return html`
30
+ `];}static get[a0_0x3356d4(0x106)](){return{'templateTypes':Array};}async[a0_0x3356d4(0x101)](){const _0x365483=a0_0x3356d4;super['connectedCallback'](),this['templateTypes']=await ServiceUtil['codeItems'](_0x365483(0x110));}[a0_0x3356d4(0x10e)](){const _0x3fc5fe=a0_0x3356d4;return html`
31
31
  <div>
32
32
  <form id="input-form" class="single-column-form">
33
33
  <fieldset>
34
- <legend>${TermsUtil[_0x25adb(0x1b3)](_0x25adb(0x1cd))}</legend>
35
- <label>${TermsUtil['tLabel'](_0x25adb(0x1cd))}</label>
34
+ <legend>${TermsUtil[_0x3fc5fe(0x119)](_0x3fc5fe(0xfb))}</legend>
35
+ <label>${TermsUtil[_0x3fc5fe(0x119)](_0x3fc5fe(0xfb))}</label>
36
36
  <file-uploader custom-input id="uploadTemplate" name="attachments"></file-uploader>
37
37
 
38
- <label>${TermsUtil[_0x25adb(0x1b3)](_0x25adb(0x1c2))}</label>
38
+ <label>${TermsUtil[_0x3fc5fe(0x119)](_0x3fc5fe(0x10d))}</label>
39
39
  <select name="category" required>
40
- <option value="">${TermsUtil[_0x25adb(0x1c4)](_0x25adb(0x1d5))}</option>
41
- ${(this[_0x25adb(0x1cf)]||[])[_0x25adb(0x1be)](_0x38c85f=>{const {name:_0xd4b9bf,description:_0x28943f}=_0x38c85f;return html` <option value="${_0xd4b9bf}">${_0xd4b9bf} ${_0x28943f?'\x20('+_0x28943f+')':''}</option> `;})}
40
+ <option value="">${TermsUtil[_0x3fc5fe(0x11b)](_0x3fc5fe(0x105))}</option>
41
+ ${(this[_0x3fc5fe(0x111)]||[])[_0x3fc5fe(0x104)](_0x4d9e3a=>{const {name:_0x5d4017,description:_0x40d55f}=_0x4d9e3a;return html` <option value="${_0x5d4017}">${_0x5d4017} ${_0x40d55f?'\x20('+_0x40d55f+')':''}</option> `;})}
42
42
  </select>
43
43
 
44
- <label>${TermsUtil[_0x25adb(0x1b3)](_0x25adb(0x1c5))}</label>
44
+ <label>${TermsUtil[_0x3fc5fe(0x119)](_0x3fc5fe(0x11a))}</label>
45
45
  <input name="description" />
46
46
  </fieldset>
47
47
  </form>
48
48
  </div>
49
49
 
50
50
  <div class="button-container">
51
- <mwc-button raised @click="${this['_createAttachment']}" label="${TermsUtil[_0x25adb(0x1d4)]('create')}"></mwc-button>
51
+ <mwc-button raised @click="${this[_0x3fc5fe(0x109)]}" label="${TermsUtil[_0x3fc5fe(0x100)](_0x3fc5fe(0xfa))}"></mwc-button>
52
52
  </div>
53
- `;}get[a0_0x1f6a51(0x1b6)](){const _0x81e020=a0_0x1f6a51;return this['renderRoot']['querySelector'](_0x81e020(0x1c6));}async[a0_0x1f6a51(0x1b4)](){const _0x26c594=a0_0x1f6a51;try{const _0x9c77ea=this[_0x26c594(0x1b7)]();(await client[_0x26c594(0x1ca)]({'mutation':a0_0x370ac9`
53
+ `;}get['_template'](){const _0x4764e7=a0_0x3356d4;return this[_0x4764e7(0xf2)]['querySelector'](_0x4764e7(0x115));}async['_createAttachment'](){const _0x16bbce=a0_0x3356d4;try{const _0x514913=this[_0x16bbce(0xff)]();(await client['mutate']({'mutation':a0_0x1c4613`
54
54
  mutation ($attachment: NewAttachment!) {
55
55
  createAttachment(attachment: $attachment) {
56
56
  id
@@ -58,4 +58,4 @@ const a0_0x1f6a51=a0_0x13c5;(function(_0x4deffa,_0x3f2167){const _0x306ab8=a0_0x
58
58
  path
59
59
  }
60
60
  }
61
- `,'variables':{'attachment':_0x9c77ea},'context':{...gqlContext(),'hasUpload':!0x0}}))[_0x26c594(0x1ab)]||(history['back'](),this[_0x26c594(0x1b9)](new CustomEvent(_0x26c594(0x1cb),{'bubbles':!0x0,'composed':!0x0,'cancelable':!0x0})));}catch(_0x2fd98e){MetaApi[_0x26c594(0x1cc)](_0x26c594(0x1af),_0x2fd98e[_0x26c594(0x1a8)],_0x26c594(0x1ad),_0x26c594(0x1ba));}}[a0_0x1f6a51(0x1b7)](){const _0x17f0b1=a0_0x1f6a51;if(this[_0x17f0b1(0x1c3)][_0x17f0b1(0x1c0)](_0x17f0b1(0x1d6))[_0x17f0b1(0x1c8)]())return{'file':this[_0x17f0b1(0x1b6)][_0x17f0b1(0x1d3)][0x0],'category':this[_0x17f0b1(0x1d0)]('category')[_0x17f0b1(0x1c7)],'description':this[_0x17f0b1(0x1d0)](_0x17f0b1(0x1c5))['value']};throw new Error(TermsUtil[_0x17f0b1(0x1c4)](_0x17f0b1(0x1c1)));}[a0_0x1f6a51(0x1d0)](_0x59c4dd){const _0xc0c741=a0_0x1f6a51;return this['renderRoot'][_0xc0c741(0x1c0)](_0xc0c741(0x1d1)+_0x59c4dd+_0xc0c741(0x1b2)+_0x59c4dd+']');}}function a0_0x4aaa(){const _0x18b99e=['#uploadTemplate','value','checkValidity','properties','mutate','template-uploaded','showAlertPopup','file_upload','1641210iTonyl','templateTypes','_getInputByName','select[name=','6OTcHZT','files','tButton','please_select_upload_category','form','message','702494pxdEDB','590682mocEPq','errors','13746580eqvteT','error','connectedCallback','label.error','define','codeItems','],\x20input[name=','tLabel','_createAttachment','1484548IakDgm','_template','_getAttachmentInfo','render','dispatchEvent','confirm','2078095hEXDrP','9PQyDAm','7Mmgidx','map','4664160QxZmdN','querySelector','text.attachment_info_not_valid','category','renderRoot','tText','description'];a0_0x4aaa=function(){return _0x18b99e;};return a0_0x4aaa();}window['customElements'][a0_0x1f6a51(0x1b0)]('file-upload-popup',FileUploadPopup);
61
+ `,'variables':{'attachment':_0x514913},'context':{...gqlContext(),'hasUpload':!0x0}}))[_0x16bbce(0xf4)]||(history[_0x16bbce(0xf1)](),this['dispatchEvent'](new CustomEvent('template-uploaded',{'bubbles':!0x0,'composed':!0x0,'cancelable':!0x0})));}catch(_0x3db7ce){MetaApi['showAlertPopup'](_0x16bbce(0x10a),_0x3db7ce[_0x16bbce(0x116)],_0x16bbce(0x10b),_0x16bbce(0xf8));}}[a0_0x3356d4(0xff)](){const _0x48de9a=a0_0x3356d4;if(this['renderRoot'][_0x48de9a(0x11f)](_0x48de9a(0x113))['checkValidity']())return{'file':this[_0x48de9a(0x120)][_0x48de9a(0x103)][0x0],'category':this[_0x48de9a(0xf5)](_0x48de9a(0x10d))[_0x48de9a(0xf6)],'description':this['_getInputByName']('description')[_0x48de9a(0xf6)]};throw new Error(TermsUtil['tText'](_0x48de9a(0x108)));}[a0_0x3356d4(0xf5)](_0x26db76){const _0x391d4f=a0_0x3356d4;return this[_0x391d4f(0xf2)]['querySelector'](_0x391d4f(0x10c)+_0x26db76+_0x391d4f(0x114)+_0x26db76+']');}}window[a0_0x3356d4(0x11d)][a0_0x3356d4(0x118)](a0_0x3356d4(0x11e),FileUploadPopup);
@@ -1,4 +1,4 @@
1
- const a0_0x6de0ea=a0_0x4f0a;function a0_0xa114(){const _0x3ed4e2=['2403RBSEMa','getGristColumnConfig2','3693966DVPcWa','9168axuLqg','gql','meta-code-selector','options','getGristMetaObjectOptions','grist','clickSelect','code','empty','nameField','rows','search','codeField','select-row-toggle','menu','getParams','entity','getCodeByScenario','substring','1364964bwQWqZ','67810QGGOyH','searchByPagination','values','string','align','resource-object','getGristPagination100Config','#ox-grist','24qYTqDc','menu_template','after_set_fields','filters','querySelector','6288Cnrjbj','push','connectedCallback','queryName','record','tButton','bind','left','dispField','524bWwwWB','7qLZqXC','fetchHandler','filter','length','getGristGuttersConfig','clickEmpty','meta-object-selector','name','includes','tText','object','cancel','info','getGristSelectableConfig','firstUpdated','appendable','basicArgs','sorters','type','query','confirmCallback','startsWith','forEach','hidden','clickCancel','map','selectRecord','gridConfig','65jKgINU','keys','meta-object-selector-popup','10015RqQMEs','569586LdDkxh','resource-code-selector','getCodeSelectorData','define','filterFields','shadowRoot','LIST','select','search_hidden_fields','getSelectColumns','columns','22qtfmXD','args','getCodeByEntity','render'];a0_0xa114=function(){return _0x3ed4e2;};return a0_0xa114();}(function(_0x9dd561,_0x4fd9b2){const _0x380375=a0_0x4f0a,_0x1544d1=_0x9dd561();while(!![]){try{const _0x4153d9=parseInt(_0x380375(0x1b5))/0x1*(parseInt(_0x380375(0x1ba))/0x2)+-parseInt(_0x380375(0x187))/0x3+parseInt(_0x380375(0x1c3))/0x4*(parseInt(_0x380375(0x186))/0x5)+parseInt(_0x380375(0x198))/0x6*(parseInt(_0x380375(0x1c4))/0x7)+-parseInt(_0x380375(0x199))/0x8*(-parseInt(_0x380375(0x196))/0x9)+parseInt(_0x380375(0x1ad))/0xa*(-parseInt(_0x380375(0x192))/0xb)+parseInt(_0x380375(0x1ac))/0xc*(-parseInt(_0x380375(0x183))/0xd);if(_0x4153d9===_0x4fd9b2)break;else _0x1544d1['push'](_0x1544d1['shift']());}catch(_0x8b68ec){_0x1544d1['push'](_0x1544d1['shift']());}}}(a0_0xa114,0x76fa5));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';function a0_0x4f0a(_0x22d7f5,_0x24b555){const _0xa114ae=a0_0xa114();return a0_0x4f0a=function(_0x4f0a25,_0x21b1ba){_0x4f0a25=_0x4f0a25-0x179;let _0x1b9f7f=_0xa114ae[_0x4f0a25];return _0x1b9f7f;},a0_0x4f0a(_0x22d7f5,_0x24b555);}import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class MetaObjectSelectorPopup extends LitElement{static ['styles']=[CommonGristStyles,ButtonContainerStyles,css`
1
+ const a0_0x22227f=a0_0x59a7;(function(_0x4e9e61,_0x24e57a){const _0x4bbc80=a0_0x59a7,_0x1ed40e=_0x4e9e61();while(!![]){try{const _0x1057f6=parseInt(_0x4bbc80(0x161))/0x1*(parseInt(_0x4bbc80(0x176))/0x2)+parseInt(_0x4bbc80(0x191))/0x3*(parseInt(_0x4bbc80(0x17c))/0x4)+-parseInt(_0x4bbc80(0x193))/0x5+-parseInt(_0x4bbc80(0x156))/0x6+parseInt(_0x4bbc80(0x164))/0x7*(-parseInt(_0x4bbc80(0x185))/0x8)+parseInt(_0x4bbc80(0x19a))/0x9*(-parseInt(_0x4bbc80(0x18b))/0xa)+parseInt(_0x4bbc80(0x14c))/0xb;if(_0x1057f6===_0x24e57a)break;else _0x1ed40e['push'](_0x1ed40e['shift']());}catch(_0x4e3a04){_0x1ed40e['push'](_0x1ed40e['shift']());}}}(a0_0x157e,0x49aef));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';function a0_0x157e(){const _0x237f41=['rows','meta-object-selector-popup','substring','1353Tgrkwp','selectRecord','2643000bhhIZc','gridConfig','meta-','keys','code','scenario','querySelector','2566134oFqzUg','nameField','map','GRID','fetchHandler','isArray','hidden','meta-object-selector','push','entity','query','tText','bind','boolean-all','forEach','13325554JOBEHK','getCodeByScenario','options','getGristColumnConfig2','basicArgs','args','object','handlers','getGristPagination100Config','length','461670horcub','search','select-row-toggle','render','resource-object','showToast','record','left','define','select','connectedCallback','706TVXFgf','menu_template','filter','183680fgjzoi','resource-code-selector','getCodeSelectorData','dispField','string','info','align','clickCancel','values','getGristSelectableConfig','filterFields','empty','grist','split','includes','filters','#ox-grist','meta-code-selector','630mdPYxK','NOTHING_SELECTED','shadowRoot','searchByPagination','confirmCallback','clickSelect','1816IAafIB','tButton','search_hidden_fields','columns','gql','codes','type','styles','sorters','136qocqSl','selected','getParams','name','clickEmpty','codeField','10TGlmNZ','startsWith','firstUpdated'];a0_0x157e=function(){return _0x237f41;};return a0_0x157e();}import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';function a0_0x59a7(_0x32712e,_0x39b894){const _0x157e34=a0_0x157e();return a0_0x59a7=function(_0x59a769,_0x3b428c){_0x59a769=_0x59a769-0x145;let _0x3a5a94=_0x157e34[_0x59a769];return _0x3a5a94;},a0_0x59a7(_0x32712e,_0x39b894);}import{closePopup}from'@operato/popup';export class MetaObjectSelectorPopup extends LitElement{static [a0_0x22227f(0x183)]=[CommonGristStyles,ButtonContainerStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -17,9 +17,9 @@ const a0_0x6de0ea=a0_0x4f0a;function a0_0xa114(){const _0x3ed4e2=['2403RBSEMa','
17
17
  display: flex;
18
18
  margin-left: auto;
19
19
  }
20
- `];async[a0_0x6de0ea(0x1bc)](){const _0x1a8f8d=a0_0x6de0ea;this[_0x1a8f8d(0x18f)]=this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x1b8)]?this[_0x1a8f8d(0x19c)]['filters']:this['basicArgs']&&this[_0x1a8f8d(0x1d4)][_0x1a8f8d(0x1b8)]?this[_0x1a8f8d(0x1d4)][_0x1a8f8d(0x1b8)]:[],this['search_hidden_fields']=this['search_hidden_fields'][_0x1a8f8d(0x180)](_0x30c707=>{const _0x1368b4=_0x1a8f8d;let {name:_0xca2d03,operator:_0x29fe3c,value:_0x21e22f}=_0x30c707;return _0x21e22f[_0x1368b4(0x17c)]('::')&&(_0x21e22f=ValueUtil['getParams'](this[_0x1368b4(0x1be)],..._0x21e22f[_0x1368b4(0x1ab)](0x2)['split']('.'))),{'name':_0xca2d03,'operator':_0x29fe3c,'value':_0x21e22f};});let _0x296340=this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x1d5)]?this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x1d5)]:this['basicArgs']&&this['basicArgs'][_0x1a8f8d(0x1d5)]?this['basicArgs']['sorters']:[],_0x539787=this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x18b)]?this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x18b)]:this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x1b6)]?.[_0x1a8f8d(0x1a4)]&&this['options']['menu_template']?.[_0x1a8f8d(0x1a4)][_0x1a8f8d(0x1c7)]>0x0?this[_0x1a8f8d(0x19c)]['menu_template'][_0x1a8f8d(0x1a4)]:[],_0x5be8ca=this[_0x1a8f8d(0x19c)]['select'];if(!_0x539787||0x0==_0x539787[_0x1a8f8d(0x1c7)]){let _0x44b676;this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x1a5)]&&(_0x44b676=this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x1a5)]),this['options'][_0x1a8f8d(0x1a2)]&&(_0x44b676=this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x1a2)]),_0x44b676&&_0x539787[_0x1a8f8d(0x1bb)]({'name':_0x44b676,'operator':'eq'});}let _0x25a805=[...MetaApi[_0x1a8f8d(0x1c8)](!0x0,!0x1)];if(_0x5be8ca&&_0x5be8ca[_0x1a8f8d(0x1c7)]>0x0)for(let _0x81f248=0x0;_0x81f248<_0x5be8ca['length'];_0x81f248++){let {type:_0xf6c111='string',name:_0x17c40c,hidden:_0x215848=!0x1,record:_0xd9bc49={'align':_0x1a8f8d(0x1c1)},header:_0x6d85ab,sortable:_0x45e956=!0x1,width:_0x3d7677=0x87,options:_0x9d6be4,select_opt:_0x2d3a0e,object_opt:_0x573ad1}=_0x5be8ca[_0x81f248];if(_0x2d3a0e&&(_0x9d6be4=_0x2d3a0e),_0x573ad1&&(_0x9d6be4=_0x573ad1),[_0x1a8f8d(0x1b2),_0x1a8f8d(0x1ce)]['includes'](_0xf6c111)?_0xf6c111=_0x1a8f8d(0x1ca):[_0x1a8f8d(0x188)][_0x1a8f8d(0x1cc)](_0xf6c111)&&(_0xf6c111=_0x1a8f8d(0x19b)),'id'==_0x17c40c)_0x25a805[_0x1a8f8d(0x1bb)]({'type':_0x1a8f8d(0x1b0),'name':_0x17c40c,'hidden':!0x0});else{let _0x4d5110=MetaApi[_0x1a8f8d(0x197)](_0xf6c111,_0x17c40c,_0x6d85ab||_0x17c40c,_0xd9bc49['align']?_0xd9bc49[_0x1a8f8d(0x1b1)]:_0x1a8f8d(0x1c1),!0x1,_0x45e956,_0x3d7677);_0xf6c111[_0x1a8f8d(0x17c)]('meta-')&&_0x573ad1&&_0x573ad1[_0x1a8f8d(0x1a7)]&&(_0x9d6be4=await MetaUiUtil[_0x1a8f8d(0x19d)](_0xf6c111,_0x9d6be4)),_0x1a8f8d(0x18e)===_0xf6c111?Array['isArray'](_0x9d6be4)?_0x4d5110[_0x1a8f8d(0x1be)]['options']=_0x9d6be4:_0x1a8f8d(0x1a0)===_0x9d6be4[_0x1a8f8d(0x179)]?_0x4d5110[_0x1a8f8d(0x1be)][_0x1a8f8d(0x19c)]=await ServiceUtil[_0x1a8f8d(0x189)](_0x9d6be4[_0x1a8f8d(0x1af)]?_0x9d6be4[_0x1a8f8d(0x1af)]:_0x9d6be4[_0x1a8f8d(0x1cb)]):'scenario'===_0x9d6be4[_0x1a8f8d(0x179)]?_0x4d5110['record']['options']=await ServiceUtil[_0x1a8f8d(0x1aa)](_0x9d6be4[_0x1a8f8d(0x1cb)],_0x9d6be4[_0x1a8f8d(0x193)]):_0x1a8f8d(0x1a9)===_0x9d6be4[_0x1a8f8d(0x179)]&&(_0x4d5110[_0x1a8f8d(0x1be)]['options']=await ServiceUtil[_0x1a8f8d(0x194)](_0x9d6be4[_0x1a8f8d(0x193)])):'meta-object-selector'===_0xf6c111?_0x4d5110['record'][_0x1a8f8d(0x19c)]={..._0x9d6be4}:_0x1a8f8d(0x19b)==_0xf6c111&&(_0x9d6be4[_0x1a8f8d(0x1c2)]&&(_0x9d6be4['codes']=await ServiceUtil['getCodeByEntity'](_0x9d6be4)),_0x4d5110[_0x1a8f8d(0x1be)]['options']={..._0x9d6be4}),_0x4d5110[_0x1a8f8d(0x17e)]=_0x215848,_0x25a805[_0x1a8f8d(0x1bb)](_0x4d5110);}}else _0x25a805['push'](MetaApi[_0x1a8f8d(0x197)](_0x1a8f8d(0x1b0),this['options'][_0x1a8f8d(0x1a5)],this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x1a5)],_0x1a8f8d(0x1c1),!0x1,!0x0,0xb4)),this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x1c2)]&&_0x25a805['push'](MetaApi['getGristColumnConfig2'](_0x1a8f8d(0x1b0),this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x1c2)],this[_0x1a8f8d(0x19c)]['dispField'],_0x1a8f8d(0x1c1),!0x1,!0x0,0x12c));_0x25a805[_0x1a8f8d(0x17d)](_0x2a607c=>{const _0x3237bb=_0x1a8f8d;let _0x490bde=_0x539787[_0x3237bb(0x1c6)](_0x4cf2fc=>'string'==typeof _0x4cf2fc?_0x2a607c[_0x3237bb(0x1cb)]==_0x4cf2fc:_0x2a607c[_0x3237bb(0x1cb)]==_0x4cf2fc[_0x3237bb(0x1cb)]);_0x490bde&&_0x490bde[_0x3237bb(0x1c7)]>0x0&&(_0x2a607c['filter']=_0x3237bb(0x1b0)==typeof _0x490bde[0x0]?_0x3237bb(0x1a4):_0x490bde[0x0]);});let _0x319dd1={'rows':MetaApi[_0x1a8f8d(0x1d1)](!0x1),'pagination':MetaApi[_0x1a8f8d(0x1b3)](),'columns':_0x25a805,'sorters':[..._0x296340]};_0x319dd1[_0x1a8f8d(0x1a3)]['handlers']={'click':_0x1a8f8d(0x1a6),'dblclick':(_0x1731bd,_0x2d805c,_0x3dd21c,_0x6b4bb5,_0x3260f2,_0x459b24)=>{const _0x43cda3=_0x1a8f8d;this[_0x43cda3(0x181)](_0x6b4bb5);}},_0x319dd1['rows'][_0x1a8f8d(0x1d3)]=!0x1,this[_0x1a8f8d(0x182)]=_0x319dd1,await super[_0x1a8f8d(0x1bc)]();}async[a0_0x6de0ea(0x1d2)](){const _0x23c208=a0_0x6de0ea;await super[_0x23c208(0x1d2)]();}[a0_0x6de0ea(0x195)](){const _0x1680eb=a0_0x6de0ea;return html`
21
- <ox-grist id="ox-grist" .config=${this[_0x1680eb(0x182)]} .mode=${isMobileDevice()?_0x1680eb(0x18d):'GRID'} auto-fetch
22
- .fetchHandler=${this['fetchHandler'][_0x1680eb(0x1c0)](this)}>
20
+ `];async[a0_0x22227f(0x160)](){const _0x4ff241=a0_0x22227f;this[_0x4ff241(0x17e)]=this[_0x4ff241(0x14e)][_0x4ff241(0x173)]?this[_0x4ff241(0x14e)][_0x4ff241(0x173)]:this[_0x4ff241(0x150)]&&this[_0x4ff241(0x150)]['filters']?this['basicArgs']['filters']:[],this[_0x4ff241(0x17e)]=this['search_hidden_fields'][_0x4ff241(0x19c)](_0x5bb010=>{const _0x1e3272=_0x4ff241;let {name:_0x178f9e,operator:_0x495624,value:_0x59c09f}=_0x5bb010;return _0x59c09f[_0x1e3272(0x18c)]('::')&&(_0x59c09f=ValueUtil[_0x1e3272(0x187)](this['record'],..._0x59c09f[_0x1e3272(0x190)](0x2)[_0x1e3272(0x171)]('.'))),{'name':_0x178f9e,'operator':_0x495624,'value':_0x59c09f};});let _0x10e8e3=this[_0x4ff241(0x14e)][_0x4ff241(0x184)]?this[_0x4ff241(0x14e)][_0x4ff241(0x184)]:this[_0x4ff241(0x150)]&&this[_0x4ff241(0x150)][_0x4ff241(0x184)]?this['basicArgs'][_0x4ff241(0x184)]:[],_0x3b28f9=this['options']['filterFields']?this['options'][_0x4ff241(0x16e)]:this['options'][_0x4ff241(0x162)]?.[_0x4ff241(0x157)]&&this[_0x4ff241(0x14e)][_0x4ff241(0x162)]?.['search'][_0x4ff241(0x155)]>0x0?this[_0x4ff241(0x14e)][_0x4ff241(0x162)][_0x4ff241(0x157)]:[],_0x5c509b=this[_0x4ff241(0x14e)][_0x4ff241(0x15f)];if(!_0x3b28f9||0x0==_0x3b28f9[_0x4ff241(0x155)]){let _0x14e80b;this[_0x4ff241(0x14e)][_0x4ff241(0x18a)]&&(_0x14e80b=this[_0x4ff241(0x14e)]['codeField']),this['options'][_0x4ff241(0x19b)]&&(_0x14e80b=this[_0x4ff241(0x14e)][_0x4ff241(0x19b)]),_0x14e80b&&_0x3b28f9[_0x4ff241(0x145)]({'name':_0x14e80b,'operator':'eq'});}let _0x4c9530=[...MetaApi['getGristGuttersConfig'](!0x0,!0x1)];if(_0x5c509b&&_0x5c509b[_0x4ff241(0x155)]>0x0)for(let _0x5c1e14=0x0;_0x5c1e14<_0x5c509b['length'];_0x5c1e14++){let {type:_0x375d6b=_0x4ff241(0x168),name:_0x4b5cdf,hidden:_0x395c24=!0x1,record:_0x854060={'align':_0x4ff241(0x15d)},header:_0x3c084b,sortable:_0x43ff0d=!0x1,width:_0x571163=0x87,options:_0x26e8b8,select_opt:_0x385120,object_opt:_0x27ff94}=_0x5c509b[_0x5c1e14];if(_0x385120&&(_0x26e8b8=_0x385120),_0x27ff94&&(_0x26e8b8=_0x27ff94),[_0x4ff241(0x15a),_0x4ff241(0x152)][_0x4ff241(0x172)](_0x375d6b)?_0x375d6b=_0x4ff241(0x1a1):[_0x4ff241(0x165)]['includes'](_0x375d6b)&&(_0x375d6b=_0x4ff241(0x175)),'id'==_0x4b5cdf)_0x4c9530[_0x4ff241(0x145)]({'type':'string','name':_0x4b5cdf,'hidden':!0x0});else{_0x4ff241(0x14a)==_0x375d6b&&(_0x375d6b='boolean');let _0x3f5dfc=MetaApi[_0x4ff241(0x14f)](_0x375d6b,_0x4b5cdf,_0x3c084b||_0x4b5cdf,_0x854060[_0x4ff241(0x16a)]?_0x854060['align']:_0x4ff241(0x15d),!0x1,_0x43ff0d,_0x571163);_0x375d6b[_0x4ff241(0x18c)](_0x4ff241(0x195))&&_0x27ff94&&_0x27ff94['menu']&&(_0x26e8b8=await MetaUiUtil['getGristMetaObjectOptions'](_0x375d6b,_0x26e8b8)),_0x4ff241(0x15f)===_0x375d6b?Array[_0x4ff241(0x19f)](_0x26e8b8)?_0x3f5dfc[_0x4ff241(0x15c)][_0x4ff241(0x14e)]=_0x26e8b8:_0x4ff241(0x197)===_0x26e8b8['type']?_0x3f5dfc['record'][_0x4ff241(0x14e)]=await ServiceUtil[_0x4ff241(0x166)](_0x26e8b8[_0x4ff241(0x16c)]?_0x26e8b8[_0x4ff241(0x16c)]:_0x26e8b8[_0x4ff241(0x188)]):_0x4ff241(0x198)===_0x26e8b8[_0x4ff241(0x182)]?_0x3f5dfc['record'][_0x4ff241(0x14e)]=await ServiceUtil[_0x4ff241(0x14d)](_0x26e8b8[_0x4ff241(0x188)],_0x26e8b8[_0x4ff241(0x151)]):_0x4ff241(0x146)===_0x26e8b8[_0x4ff241(0x182)]&&(_0x3f5dfc['record'][_0x4ff241(0x14e)]=await ServiceUtil['getCodeByEntity'](_0x26e8b8[_0x4ff241(0x151)])):_0x4ff241(0x1a1)===_0x375d6b?_0x3f5dfc[_0x4ff241(0x15c)][_0x4ff241(0x14e)]={..._0x26e8b8}:_0x4ff241(0x175)==_0x375d6b&&(_0x26e8b8[_0x4ff241(0x167)]&&(_0x26e8b8[_0x4ff241(0x181)]=await ServiceUtil['getCodeByEntity'](_0x26e8b8)),_0x3f5dfc[_0x4ff241(0x15c)][_0x4ff241(0x14e)]={..._0x26e8b8}),_0x3f5dfc[_0x4ff241(0x1a0)]=_0x395c24,_0x4c9530['push'](_0x3f5dfc);}}else _0x4c9530[_0x4ff241(0x145)](MetaApi[_0x4ff241(0x14f)](_0x4ff241(0x168),this[_0x4ff241(0x14e)]['codeField'],this[_0x4ff241(0x14e)]['codeField'],'left',!0x1,!0x0,0xb4)),this['options'][_0x4ff241(0x167)]&&_0x4c9530[_0x4ff241(0x145)](MetaApi['getGristColumnConfig2'](_0x4ff241(0x168),this[_0x4ff241(0x14e)][_0x4ff241(0x167)],this[_0x4ff241(0x14e)]['dispField'],_0x4ff241(0x15d),!0x1,!0x0,0x12c));_0x4c9530[_0x4ff241(0x14b)](_0x11cb5a=>{const _0x30041f=_0x4ff241;let _0x23df30=_0x3b28f9[_0x30041f(0x163)](_0x97e125=>_0x30041f(0x168)==typeof _0x97e125?_0x11cb5a[_0x30041f(0x188)]==_0x97e125:_0x11cb5a[_0x30041f(0x188)]==_0x97e125[_0x30041f(0x188)]);_0x23df30&&_0x23df30[_0x30041f(0x155)]>0x0&&(_0x11cb5a['filter']=_0x30041f(0x168)==typeof _0x23df30[0x0]?_0x30041f(0x157):_0x23df30[0x0]);});let _0x2da10e={'rows':MetaApi[_0x4ff241(0x16d)](!0x1),'pagination':MetaApi[_0x4ff241(0x154)](),'columns':_0x4c9530,'sorters':[..._0x10e8e3]};_0x2da10e[_0x4ff241(0x18e)][_0x4ff241(0x153)]={'click':_0x4ff241(0x158),'dblclick':(_0x5e167c,_0x396cb7,_0x216a6c,_0x55a657,_0x4e7ee5,_0x1df603)=>{const _0x481888=_0x4ff241;this[_0x481888(0x192)](_0x55a657);}},_0x2da10e[_0x4ff241(0x18e)]['appendable']=!0x1,this['gridConfig']=_0x2da10e,await super[_0x4ff241(0x160)]();}async['firstUpdated'](){const _0x596c6f=a0_0x22227f;await super[_0x596c6f(0x18d)]();}[a0_0x22227f(0x159)](){const _0x36893e=a0_0x22227f;return html`
21
+ <ox-grist id="ox-grist" .config=${this[_0x36893e(0x194)]} .mode=${isMobileDevice()?'LIST':_0x36893e(0x19d)} auto-fetch
22
+ .fetchHandler=${this[_0x36893e(0x19e)]['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_0x6de0ea=a0_0x4f0a;function a0_0xa114(){const _0x3ed4e2=['2403RBSEMa','
27
27
  </div>
28
28
  </ox-grist>
29
29
  <div id="button-container" class="button-container">
30
- <mwc-button raised label="${TermsUtil['tButton'](_0x1680eb(0x1a1))}" style="margin-left:7px;margin-top:7px;"
31
- @click=${this[_0x1680eb(0x1c9)][_0x1680eb(0x1c0)](this)}>
30
+ <mwc-button raised label="${TermsUtil[_0x36893e(0x17d)](_0x36893e(0x16f))}" style="margin-left:7px;margin-top:7px;"
31
+ @click=${this[_0x36893e(0x189)][_0x36893e(0x149)](this)}>
32
32
  </mwc-button>
33
- <mwc-button raised label="${TermsUtil[_0x1680eb(0x1bf)](_0x1680eb(0x1cf))}" style="margin-left:7px;margin-top:7px;"
34
- @click=${this[_0x1680eb(0x17f)][_0x1680eb(0x1c0)](this)}>
33
+ <mwc-button raised label="${TermsUtil['tButton']('cancel')}" style="margin-left:7px;margin-top:7px;"
34
+ @click=${this[_0x36893e(0x16b)][_0x36893e(0x149)](this)}>
35
35
  </mwc-button>
36
- <mwc-button raised label="${TermsUtil[_0x1680eb(0x1bf)](_0x1680eb(0x18e))}" style="margin-left:7px;margin-top:7px;"
37
- @click=${this[_0x1680eb(0x19f)][_0x1680eb(0x1c0)](this)}>
36
+ <mwc-button raised label="${TermsUtil[_0x36893e(0x17d)]('select')}" style="margin-left:7px;margin-top:7px;"
37
+ @click=${this[_0x36893e(0x17b)][_0x36893e(0x149)](this)}>
38
38
  </mwc-button>
39
39
  </div>
40
- `;}get[a0_0x6de0ea(0x19e)](){const _0x34ed8b=a0_0x6de0ea;return this[_0x34ed8b(0x18c)][_0x34ed8b(0x1b9)](_0x34ed8b(0x1b4));}async[a0_0x6de0ea(0x1c5)]({page:_0x3b638c=0x0,limit:_0x354ca8=0x0,sorters:_0x3e76ad=[],filters:_0x4afb87=[]}){const _0x5cab80=a0_0x6de0ea;let _0x55835a=[...this[_0x5cab80(0x18f)]];_0x4afb87[_0x5cab80(0x17d)](_0x4d5fe5=>{const _0x347c89=_0x5cab80;let _0x558e88=_0x55835a[_0x347c89(0x1c6)](_0x5a17e2=>_0x4d5fe5['name']==_0x5a17e2[_0x347c89(0x1cb)]);_0x558e88&&_0x558e88[_0x347c89(0x1c7)]>0x0&&delete _0x55835a[_0x4d5fe5[_0x347c89(0x1cb)]],_0x55835a[_0x347c89(0x1bb)](_0x4d5fe5);});let _0x5d8cc3=ValueUtil[_0x5cab80(0x1a8)](this[_0x5cab80(0x19c)]['menu_template']&&this[_0x5cab80(0x19c)][_0x5cab80(0x1b6)][_0x5cab80(0x19a)]||{},_0x5cab80(0x17a),_0x5cab80(0x1b7)),_0x60a628=Object[_0x5cab80(0x184)](_0x5d8cc3||{}),_0x387249=MetaApi[_0x5cab80(0x190)](this[_0x5cab80(0x182)][_0x5cab80(0x191)][_0x5cab80(0x1c6)](_0x21ee95=>!_0x60a628[_0x5cab80(0x1cc)](_0x21ee95[_0x5cab80(0x1cb)])));return await MetaApi[_0x5cab80(0x1ae)](this[_0x5cab80(0x19c)][_0x5cab80(0x1bd)],_0x55835a,_0x3e76ad,_0x3b638c,_0x354ca8,_0x387249);}async['clickEmpty'](_0x404bfc){const _0x5dc1a5=a0_0x6de0ea;this[_0x5dc1a5(0x17b)]&&this['confirmCallback'](null),closePopup(this);}async[a0_0x6de0ea(0x17f)](_0x481505){closePopup(this);}async['clickSelect'](_0x168b19){const _0x15a3cb=a0_0x6de0ea;let _0xf911ab=this[_0x15a3cb(0x19e)]['selected'];_0xf911ab&&0x0!=_0xf911ab[_0x15a3cb(0x1c7)]?this[_0x15a3cb(0x181)](_0xf911ab[0x0]):MetaApi['showToast'](_0x15a3cb(0x1d0),TermsUtil[_0x15a3cb(0x1cd)]('NOTHING_SELECTED'));}async['selectRecord'](_0x22edb0){const _0x515383=a0_0x6de0ea;this[_0x515383(0x17b)]&&this['confirmCallback'](_0x22edb0),closePopup(this);}}customElements[a0_0x6de0ea(0x18a)](a0_0x6de0ea(0x185),MetaObjectSelectorPopup);
40
+ `;}get[a0_0x22227f(0x170)](){const _0x147a6d=a0_0x22227f;return this[_0x147a6d(0x178)][_0x147a6d(0x199)](_0x147a6d(0x174));}async[a0_0x22227f(0x19e)]({page:_0x47e603=0x0,limit:_0x494dfb=0x0,sorters:_0xe06115=[],filters:_0x4c99ff=[]}){const _0x2b5410=a0_0x22227f;let _0xa862a1=[...this['search_hidden_fields']];_0x4c99ff['forEach'](_0x39a3b7=>{const _0x489e00=a0_0x59a7;let _0x471989=_0xa862a1[_0x489e00(0x163)](_0x867c90=>_0x39a3b7[_0x489e00(0x188)]==_0x867c90[_0x489e00(0x188)]);_0x471989&&_0x471989[_0x489e00(0x155)]>0x0&&delete _0xa862a1[_0x39a3b7['name']],_0xa862a1[_0x489e00(0x145)](_0x39a3b7);});let _0x495ed2=ValueUtil[_0x2b5410(0x187)](this['options']['menu_template']&&this['options'][_0x2b5410(0x162)][_0x2b5410(0x180)]||{},_0x2b5410(0x147),'after_set_fields'),_0x431c9e=Object[_0x2b5410(0x196)](_0x495ed2||{}),_0x514048=MetaApi['getSelectColumns'](this[_0x2b5410(0x194)][_0x2b5410(0x17f)][_0x2b5410(0x163)](_0x2ecf5a=>!_0x431c9e['includes'](_0x2ecf5a[_0x2b5410(0x188)])));return await MetaApi[_0x2b5410(0x179)](this[_0x2b5410(0x14e)]['queryName'],_0xa862a1,_0xe06115,_0x47e603,_0x494dfb,_0x514048);}async[a0_0x22227f(0x189)](_0x43ca12){const _0x516dcd=a0_0x22227f;this[_0x516dcd(0x17a)]&&this[_0x516dcd(0x17a)](null),closePopup(this);}async[a0_0x22227f(0x16b)](_0x1fb111){closePopup(this);}async[a0_0x22227f(0x17b)](_0x349b74){const _0x4e7bf5=a0_0x22227f;let _0xf482f8=this[_0x4e7bf5(0x170)][_0x4e7bf5(0x186)];_0xf482f8&&0x0!=_0xf482f8[_0x4e7bf5(0x155)]?this[_0x4e7bf5(0x192)](_0xf482f8[0x0]):MetaApi[_0x4e7bf5(0x15b)](_0x4e7bf5(0x169),TermsUtil[_0x4e7bf5(0x148)](_0x4e7bf5(0x177)));}async[a0_0x22227f(0x192)](_0x74ae2a){const _0x31c355=a0_0x22227f;this[_0x31c355(0x17a)]&&this[_0x31c355(0x17a)](_0x74ae2a),closePopup(this);}}customElements[a0_0x22227f(0x15e)](a0_0x22227f(0x18f),MetaObjectSelectorPopup);
@@ -0,0 +1,39 @@
1
+ const a0_0x589b7a=a0_0x1777;function a0_0x1df8(){const _0x5b4757=['object','226340pmsVBm','showToast','114890ONtQKF','cancel','info','render','6cSAAKN','1967936fDXXfX','clickCancel','define','NOTHING_CHANGED','connectedCallback','styles','value_field','codeValue','querySelector','value','clickSave','7WyEwtz','225YXFrvL','stringify','firstUpdated','func_name','2373748vrkGZI','tText','18913994Vusvgx','config','55233AyUNlV','tButton','shadowRoot','bind','updateOne','codeEditor','5557985gfqpnT','172pNJARS','record'];a0_0x1df8=function(){return _0x5b4757;};return a0_0x1df8();}(function(_0x4c5b32,_0x3bf048){const _0x89f7a0=a0_0x1777,_0x197a76=_0x4c5b32();while(!![]){try{const _0x47c1a7=-parseInt(_0x89f7a0(0xe3))/0x1+parseInt(_0x89f7a0(0xd5))/0x2+parseInt(_0x89f7a0(0xd9))/0x3*(-parseInt(_0x89f7a0(0xe0))/0x4)+-parseInt(_0x89f7a0(0xdf))/0x5*(parseInt(_0x89f7a0(0xc4))/0x6)+parseInt(_0x89f7a0(0xd0))/0x7*(parseInt(_0x89f7a0(0xc5))/0x8)+-parseInt(_0x89f7a0(0xd1))/0x9*(parseInt(_0x89f7a0(0xe5))/0xa)+parseInt(_0x89f7a0(0xd7))/0xb;if(_0x47c1a7===_0x3bf048)break;else _0x197a76['push'](_0x197a76['shift']());}catch(_0x265970){_0x197a76['push'](_0x197a76['shift']());}}}(a0_0x1df8,0xb38fd));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{MetaApi}from'../../utils/meta-api';function a0_0x1777(_0x623c,_0x36962c){const _0x1df804=a0_0x1df8();return a0_0x1777=function(_0x177773,_0x445118){_0x177773=_0x177773-0xc2;let _0x547a7b=_0x1df804[_0x177773];return _0x547a7b;},a0_0x1777(_0x623c,_0x36962c);}import{ServiceUtil}from'../../utils/service-util';import'@operato/input/ox-input-code.js';import{closePopup}from'@operato/popup';export class RecordBasedCodeEditorPopup extends LitElement{static [a0_0x589b7a(0xca)]=[CommonGristStyles,ButtonContainerStyles,css`
2
+ :host {
3
+ display: flex;
4
+ flex-direction: column;
5
+
6
+ background-color: #fff;
7
+
8
+ width: var(--overlay-center-normal-width, 50%);
9
+ height: var(--overlay-center-normal-height, 50%);
10
+ }
11
+
12
+ ox-input-code {
13
+ margin:10px;
14
+ overflow-y: auto;
15
+ flex: 1;
16
+ }
17
+
18
+ .button-container {
19
+ display: flex;
20
+ margin-left: auto;
21
+ }
22
+ `];async[a0_0x589b7a(0xc9)](){const _0x88c710=a0_0x589b7a;this[_0x88c710(0xce)]=this['record'][this[_0x88c710(0xd8)][_0x88c710(0xcb)]]?this['record'][this[_0x88c710(0xd8)][_0x88c710(0xcb)]]:'',_0x88c710(0xe2)==typeof this[_0x88c710(0xce)]?this[_0x88c710(0xcc)]=JSON[_0x88c710(0xd2)](this[_0x88c710(0xce)],0x0,0x2):this[_0x88c710(0xcc)]=this['value'],await super[_0x88c710(0xc9)]();}async[a0_0x589b7a(0xd3)](){const _0x5dc360=a0_0x589b7a;await super[_0x5dc360(0xd3)]();}[a0_0x589b7a(0xc3)](){const _0x2efe1a=a0_0x589b7a;return!!this[_0x2efe1a(0xd8)]['save_action']?html`
23
+ <ox-input-code mode="javascript" value=${this[_0x2efe1a(0xcc)]} tab-size="2" tab-as-space="true"></ox-input-code>
24
+ <div id="button-container" class="button-container">
25
+ <mwc-button raised label="${TermsUtil['tButton'](_0x2efe1a(0xe6))}" style="margin-left:7px;margin-top:7px;"
26
+ @click=${this[_0x2efe1a(0xc6)][_0x2efe1a(0xdc)](this)}>
27
+ </mwc-button>
28
+ <mwc-button raised label="${TermsUtil[_0x2efe1a(0xda)]('save')}" style="margin-left:7px;margin-top:7px;"
29
+ @click=${this[_0x2efe1a(0xcf)][_0x2efe1a(0xdc)](this)}>
30
+ </mwc-button>
31
+ </div>
32
+ `:html`
33
+ <ox-input-code mode="javascript" value=${this[_0x2efe1a(0xcc)]} tab-size="2" tab-as-space="true"></ox-input-code>
34
+ <div id="button-container" class="button-container">
35
+ <mwc-button raised label="${TermsUtil[_0x2efe1a(0xda)](_0x2efe1a(0xe6))}" style="margin-left:7px;margin-top:7px;"
36
+ @click=${this['clickCancel'][_0x2efe1a(0xdc)](this)}>
37
+ </mwc-button>
38
+ </div>
39
+ `;}get[a0_0x589b7a(0xde)](){const _0xbba0b8=a0_0x589b7a;return this[_0xbba0b8(0xdb)][_0xbba0b8(0xcd)]('ox-input-code');}async[a0_0x589b7a(0xcf)](_0x37fedb){const _0x1ad726=a0_0x589b7a;if(this[_0x1ad726(0xcc)]===this[_0x1ad726(0xde)][_0x1ad726(0xce)])MetaApi[_0x1ad726(0xe4)](_0x1ad726(0xc2),TermsUtil[_0x1ad726(0xd6)](_0x1ad726(0xc8)));else{let _0x5e51e2=this[_0x1ad726(0xd8)]['save_action'][_0x1ad726(0xd4)],_0x517b10={'id':this[_0x1ad726(0xe1)]['id'],'cuFlag':'M'};_0x517b10[this[_0x1ad726(0xd8)][_0x1ad726(0xcb)]]=this['codeEditor'][_0x1ad726(0xce)],await ServiceUtil[_0x1ad726(0xdd)](_0x5e51e2,this['record']['id'],_0x517b10)&&closePopup(this);}}async[a0_0x589b7a(0xc6)](_0x35ee46){closePopup(this);}}customElements[a0_0x589b7a(0xc7)]('record-based-code-editor-popup',RecordBasedCodeEditorPopup);
package/client/index.js CHANGED
@@ -36,4 +36,5 @@ export * from './pages/meta-main-tab-page'
36
36
  export * from './pages/meta-main-tab-element'
37
37
 
38
38
  /* Component */
39
- export * from './component/popup/file-upload-popup'
39
+ export * from './component/popup/file-upload-popup'
40
+ export * from './component/popup/record-based-code-editor-popup'
@@ -1 +1 @@
1
- function a0_0x1a15(_0x352542,_0x1fca1e){const _0x91f4b8=a0_0x91f4();return a0_0x1a15=function(_0x1a15a5,_0x10f825){_0x1a15a5=_0x1a15a5-0xc3;let _0x17e242=_0x91f4b8[_0x1a15a5];return _0x17e242;},a0_0x1a15(_0x352542,_0x1fca1e);}const a0_0x4b7c2b=a0_0x1a15;(function(_0x261849,_0x3e7f8d){const _0xabeb14=a0_0x1a15,_0x44707f=_0x261849();while(!![]){try{const _0x1beb1c=-parseInt(_0xabeb14(0xca))/0x1*(-parseInt(_0xabeb14(0xf2))/0x2)+parseInt(_0xabeb14(0xce))/0x3+parseInt(_0xabeb14(0xff))/0x4+parseInt(_0xabeb14(0xd8))/0x5+parseInt(_0xabeb14(0xe6))/0x6*(parseInt(_0xabeb14(0xea))/0x7)+parseInt(_0xabeb14(0xe2))/0x8*(-parseInt(_0xabeb14(0xcf))/0x9)+-parseInt(_0xabeb14(0xf9))/0xa*(parseInt(_0xabeb14(0xeb))/0xb);if(_0x1beb1c===_0x3e7f8d)break;else _0x44707f['push'](_0x44707f['shift']());}catch(_0x389685){_0x44707f['push'](_0x44707f['shift']());}}}(a0_0x91f4,0xd3140));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';function a0_0x91f4(){const _0x459fc8=['etcConfig','parseBasicServiceConfigs','meta-form-','isDetail','errors','getMenuMeta','getParams','callScenario','3981170hxEtSL','menu','isElement','isPopup','parseBasicGridConfigs','field-change','after','setParentId','form-field-change','tagName','8dxTidq','detail','menuInfo','result','179034HXfTix','parent_id','parseBasicTabConfigs','etc','392DbTZhr','43369876McPfmD','addEventListener','includes','params','is_detail','data','lifecycle','646066sirMdl','getAndParseMenuMeta','data-changed','excuteOpenPopupButtonClick','connectedCallback','isNotEmpty','fieldChangeHandlers','10AMohjm','startsWith','parseBasicFormConfigs','grist','isEmpty','fetch','1913168JMmLgp','keys','filterForm','active','dataChangeEventHandler','fetchHandler','isPage','executeCallScenarioButtonClick','name','body','split','is_popup','3xrJNBE','title_detail','properties','parseBasicButtonConfigs','4726227QdGpid','6144534SMfKrY'];a0_0x91f4=function(){return _0x459fc8;};return a0_0x91f4();}import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x374b7a=>class extends _0x374b7a{static get[a0_0x4b7c2b(0xcc)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x447fe0=>Boolean(_0x447fe0)},'is_popup':{'type':Boolean,'converter':_0x57ae5c=>Boolean(_0x57ae5c)},'is_activity':{'type':Boolean,'converter':_0x2ad2e5=>Boolean(_0x2ad2e5)},'is_readonly':{'type':Boolean,'converter':_0x40f780=>Boolean(_0x40f780)}};}get[a0_0x4b7c2b(0xda)](){const _0x2ec526=a0_0x4b7c2b;return!0x0===this[_0x2ec526(0xef)]||!0x0===this[_0x2ec526(0xc9)];}get[a0_0x4b7c2b(0xd3)](){const _0x20a014=a0_0x4b7c2b;return!ValueUtil['isEmpty'](this[_0x20a014(0xef)])&&this[_0x20a014(0xef)];}async[a0_0x4b7c2b(0x103)](_0x188d84){const _0x1d4141=a0_0x4b7c2b;let {after:_0x436c1d,before:_0x2f7a9e,column:_0x1463c5,record:_0x14e0a4,row:_0x241333}=_0x188d84['detail'],_0x279762=_0x1463c5[_0x1d4141(0xc6)];if(Object[_0x1d4141(0x100)](this[_0x1d4141(0xf8)]||{})[_0x1d4141(0xed)](_0x279762)){let _0x2fae8f,_0x216339=(await MetaApi['callScenario'](void 0x0,this[_0x1d4141(0xf8)][_0x279762],{'columnName':_0x279762,'column':_0x1463c5,'record':_0x14e0a4,'after':_0x436c1d,'before':_0x2f7a9e,'row':_0x241333,'parentId':this['parent_id']?this[_0x1d4141(0xe7)]:''},!0x1))[_0x1d4141(0xf0)]['runScenario'][_0x1d4141(0xe5)]['result'];if(!_0x216339)return;_0x2fae8f=this['grist']?this[_0x1d4141(0xfc)][_0x1d4141(0xfc)][_0x1d4141(0xc7)]:this,Object['keys'](_0x216339)['forEach'](_0x28ea10=>{const _0x17ef48=_0x1d4141;_0x2fae8f['dispatchEvent'](new CustomEvent(_0x17ef48(0xdd),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x14e0a4,'row':_0x241333,'after':_0x216339[_0x28ea10],'before':_0x14e0a4[_0x28ea10],'column':{'name':_0x28ea10}}}));});}this['dispatchEvent'](new CustomEvent(_0x1d4141(0xf4),{'bubbles':!0x0,'composed':!0x0,'detail':_0x188d84[_0x1d4141(0xe3)]}));}async['connectedCallback'](){const _0x5e2733=a0_0x4b7c2b;super[_0x5e2733(0xf6)]&&await super[_0x5e2733(0xf6)](),this[_0x5e2733(0xe1)]['toLowerCase']()[_0x5e2733(0xfa)](_0x5e2733(0xd2))?this[_0x5e2733(0xec)](_0x5e2733(0xe0),async _0x27450b=>{const _0x162fb4=_0x5e2733;await this[_0x162fb4(0x103)](_0x27450b);}):this[_0x5e2733(0xec)](_0x5e2733(0xdd),async _0x142d4a=>{const _0x23b0fd=_0x5e2733;await this[_0x23b0fd(0x103)](_0x142d4a);});}async['pageUpdated'](_0x220d54,_0x3517f0,_0x437c7d){const _0x1323d7=a0_0x4b7c2b;let _0x5eb3c5=this['lifecycle']?.[_0x1323d7(0xee)]?this[_0x1323d7(0xf1)][_0x1323d7(0xee)]:{};this['isPage']&&this[_0x1323d7(0x102)]&&0x0==_0x437c7d['active']&&ValueUtil['isNotEmpty'](_0x5eb3c5)&&this[_0x1323d7(0xfe)]();}get[a0_0x4b7c2b(0xdb)](){const _0x5721b0=a0_0x4b7c2b;return!ValueUtil[_0x5721b0(0xfd)](this[_0x5721b0(0xc9)])&&this[_0x5721b0(0xc9)];}get[a0_0x4b7c2b(0xc4)](){const _0x25c5a0=a0_0x4b7c2b;return!this['is_detail']&&!this[_0x25c5a0(0xc9)];}async[a0_0x4b7c2b(0xf3)](){const _0x508a8f=a0_0x4b7c2b;let _0x3ed081=await MetaApi[_0x508a8f(0xd5)](this);_0x3ed081&&(this[_0x508a8f(0xe4)]=_0x3ed081[_0x508a8f(0xd9)],this[_0x508a8f(0xd0)]=_0x3ed081[_0x508a8f(0xe9)],this[_0x508a8f(0xdc)]&&this['parseBasicGridConfigs'](_0x3ed081),this[_0x508a8f(0xd1)]&&this[_0x508a8f(0xd1)](_0x3ed081),this[_0x508a8f(0xfb)]&&this[_0x508a8f(0xfb)](_0x3ed081),this[_0x508a8f(0xe8)]&&this[_0x508a8f(0xe8)](_0x3ed081),this[_0x508a8f(0xcd)]&&this[_0x508a8f(0xcd)](_0x3ed081));}async[a0_0x4b7c2b(0xfe)](){const _0x52a5cf=a0_0x4b7c2b;ValueUtil['isNotEmpty'](this[_0x52a5cf(0xfc)])?this[_0x52a5cf(0xfc)][_0x52a5cf(0xfe)]():(ValueUtil[_0x52a5cf(0xf7)](this[_0x52a5cf(0x101)])||this[_0x52a5cf(0xc3)])&&await this[_0x52a5cf(0xc3)]();}async[a0_0x4b7c2b(0xf5)](_0x487b99,_0x5bdf92,_0x17959b){const _0xd5185f=a0_0x4b7c2b;let _0x2ff254=TermsUtil['tTitle'](_0x487b99['title']);ValueUtil['isNotEmpty'](_0x487b99['title_detail'])&&(_0x2ff254=_0x2ff254+'-'+ValueUtil[_0xd5185f(0xd6)](_0x5bdf92,..._0x487b99[_0xd5185f(0xcb)][_0xd5185f(0xc8)]('.'))),MetaApi['openDynamicPopup'](_0x2ff254,_0x487b99,_0x5bdf92,_0x17959b);}async[a0_0x4b7c2b(0xc5)](_0x169cd4,_0x2550d9,_0x17def0){const _0x11dc4b=a0_0x4b7c2b;let _0x3311fa=await MetaApi[_0x11dc4b(0xd7)](_0x169cd4[_0x11dc4b(0xc6)],_0x169cd4[_0x11dc4b(0xc6)],_0x2550d9);!0x1!==_0x3311fa&&!_0x3311fa[_0x11dc4b(0xd4)]&&ValueUtil[_0x11dc4b(0xf7)](_0x169cd4[_0x11dc4b(0xde)])&&_0x17def0();}[a0_0x4b7c2b(0xdf)](_0x4677fa){const _0x144796=a0_0x4b7c2b;this['parent_id']=_0x4677fa,this[_0x144796(0xfe)]();}};
1
+ const a0_0x375bb0=a0_0x2a19;(function(_0x409776,_0x278f02){const _0x329112=a0_0x2a19,_0x3be176=_0x409776();while(!![]){try{const _0x369c27=parseInt(_0x329112(0xd2))/0x1+parseInt(_0x329112(0xb7))/0x2*(parseInt(_0x329112(0xc3))/0x3)+-parseInt(_0x329112(0xbb))/0x4+parseInt(_0x329112(0xbe))/0x5+parseInt(_0x329112(0xce))/0x6*(parseInt(_0x329112(0xca))/0x7)+-parseInt(_0x329112(0xc4))/0x8*(parseInt(_0x329112(0xe1))/0x9)+parseInt(_0x329112(0xe7))/0xa;if(_0x369c27===_0x278f02)break;else _0x3be176['push'](_0x3be176['shift']());}catch(_0x4d94e6){_0x3be176['push'](_0x3be176['shift']());}}}(a0_0x3240,0x77b8c));function a0_0x2a19(_0x426dee,_0x5cdf4c){const _0x3240ea=a0_0x3240();return a0_0x2a19=function(_0x2a1907,_0x52cab7){_0x2a1907=_0x2a1907-0xb3;let _0x4d75bb=_0x3240ea[_0x2a1907];return _0x4d75bb;},a0_0x2a19(_0x426dee,_0x5cdf4c);}import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';function a0_0x3240(){const _0x39a58a=['callScenario','openDynamicPopup','setParentId','189foQAzE','is_detail','menu','etc','57036eIyIRq','grist','pageUpdated','dispatchEvent','233528avfRIj','keys','menuInfo','etcConfig','excuteOpenPopupButtonClick','parseBasicFormConfigs','isElement','errors','fetchHandler','parseBasicTabConfigs','addEventListener','isDetail','tTitle','lifecycle','dataChangeEventHandler','5379219fsrmii','name','fetch','connectedCallback','detail','form-field-change','7990750hEXNwm','toLowerCase','fieldChangeHandlers','forEach','runScenario','data-changed','parseBasicGridConfigs','tagName','params','isNotEmpty','getAndParseMenuMeta','executeCallScenarioButtonClick','active','parent_id','after','getMenuMeta','854WQghlS','body','includes','parseBasicButtonConfigs','1892376jGZgLS','split','title_detail','1169485NoGBed','parseBasicServiceConfigs','result','is_popup','field-change','267ScSQRI','8EMbwhJ','isEmpty','meta-form-'];a0_0x3240=function(){return _0x39a58a;};return a0_0x3240();}import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x307e35=>class extends _0x307e35{static get['properties'](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0xe28796=>Boolean(_0xe28796)},'is_popup':{'type':Boolean,'converter':_0x12ba88=>Boolean(_0x12ba88)},'is_activity':{'type':Boolean,'converter':_0x502565=>Boolean(_0x502565)},'is_readonly':{'type':Boolean,'converter':_0x12b90e=>Boolean(_0x12b90e)}};}get[a0_0x375bb0(0xd8)](){const _0x154efc=a0_0x375bb0;return!0x0===this[_0x154efc(0xcb)]||!0x0===this[_0x154efc(0xc1)];}get[a0_0x375bb0(0xdd)](){const _0x50a301=a0_0x375bb0;return!ValueUtil[_0x50a301(0xc5)](this['is_detail'])&&this['is_detail'];}async[a0_0x375bb0(0xe0)](_0x45b81e){const _0x2c9a0d=a0_0x375bb0;let {after:_0x287e45,before:_0x3ef300,column:_0x30ea85,record:_0x516b0c,row:_0x1e9450}=_0x45b81e['detail'],_0x492480=_0x30ea85[_0x2c9a0d(0xe2)];if(Object[_0x2c9a0d(0xd3)](this[_0x2c9a0d(0xe9)]||{})[_0x2c9a0d(0xb9)](_0x492480)){let _0x33fa8c,_0x5060e1=(await MetaApi[_0x2c9a0d(0xc7)](void 0x0,this[_0x2c9a0d(0xe9)][_0x492480],{'columnName':_0x492480,'column':_0x30ea85,'record':_0x516b0c,'after':_0x287e45,'before':_0x3ef300,'row':_0x1e9450,'parentId':this[_0x2c9a0d(0xb4)]?this['parent_id']:''},!0x1))['data'][_0x2c9a0d(0xeb)][_0x2c9a0d(0xc0)][_0x2c9a0d(0xc0)];if(!_0x5060e1)return;_0x33fa8c=this['grist']?this['grist'][_0x2c9a0d(0xcf)][_0x2c9a0d(0xb8)]:this,Object[_0x2c9a0d(0xd3)](_0x5060e1)[_0x2c9a0d(0xea)](_0x1538ba=>{const _0x3394db=_0x2c9a0d;_0x33fa8c['dispatchEvent'](new CustomEvent(_0x3394db(0xc2),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x516b0c,'row':_0x1e9450,'after':_0x5060e1[_0x1538ba],'before':_0x516b0c[_0x1538ba],'column':{'name':_0x1538ba}}}));});}this[_0x2c9a0d(0xd1)](new CustomEvent(_0x2c9a0d(0xec),{'bubbles':!0x0,'composed':!0x0,'detail':_0x45b81e[_0x2c9a0d(0xe5)]}));}async[a0_0x375bb0(0xe4)](){const _0x23ec5e=a0_0x375bb0;super[_0x23ec5e(0xe4)]&&await super[_0x23ec5e(0xe4)](),this[_0x23ec5e(0xee)][_0x23ec5e(0xe8)]()['startsWith'](_0x23ec5e(0xc6))?this[_0x23ec5e(0xdc)](_0x23ec5e(0xe6),async _0x31a9d3=>{await this['dataChangeEventHandler'](_0x31a9d3);}):this['addEventListener'](_0x23ec5e(0xc2),async _0x2bc123=>{const _0x503b75=_0x23ec5e;await this[_0x503b75(0xe0)](_0x2bc123);});}async[a0_0x375bb0(0xd0)](_0x36021c,_0x218743,_0x3a52cb){const _0x1d92f3=a0_0x375bb0;let _0x54049a=this[_0x1d92f3(0xdf)]?.[_0x1d92f3(0xef)]?this[_0x1d92f3(0xdf)][_0x1d92f3(0xef)]:{};this['isPage']&&this[_0x1d92f3(0xb3)]&&0x0==_0x3a52cb[_0x1d92f3(0xb3)]&&ValueUtil[_0x1d92f3(0xf0)](_0x54049a)&&this[_0x1d92f3(0xe3)]();}get['isPopup'](){const _0x3eed1b=a0_0x375bb0;return!ValueUtil[_0x3eed1b(0xc5)](this['is_popup'])&&this[_0x3eed1b(0xc1)];}get['isPage'](){const _0x266b7a=a0_0x375bb0;return!this['is_detail']&&!this[_0x266b7a(0xc1)];}async[a0_0x375bb0(0xf1)](){const _0xc59f17=a0_0x375bb0;let _0x3680e1=await MetaApi[_0xc59f17(0xb6)](this);_0x3680e1&&(this[_0xc59f17(0xd4)]=_0x3680e1[_0xc59f17(0xcc)],this[_0xc59f17(0xd5)]=_0x3680e1[_0xc59f17(0xcd)],this[_0xc59f17(0xed)]&&this[_0xc59f17(0xed)](_0x3680e1),this[_0xc59f17(0xbf)]&&this[_0xc59f17(0xbf)](_0x3680e1),this['parseBasicFormConfigs']&&this[_0xc59f17(0xd7)](_0x3680e1),this[_0xc59f17(0xdb)]&&this[_0xc59f17(0xdb)](_0x3680e1),this[_0xc59f17(0xba)]&&this['parseBasicButtonConfigs'](_0x3680e1));}async['fetch'](){const _0x3a6aff=a0_0x375bb0;ValueUtil[_0x3a6aff(0xf0)](this[_0x3a6aff(0xcf)])?this[_0x3a6aff(0xcf)][_0x3a6aff(0xe3)]():(ValueUtil[_0x3a6aff(0xf0)](this['filterForm'])||this[_0x3a6aff(0xda)])&&await this[_0x3a6aff(0xda)]();}async[a0_0x375bb0(0xd6)](_0x540016,_0x119f9e,_0x24ad5f){const _0x33da2f=a0_0x375bb0;let _0xc287b0=TermsUtil[_0x33da2f(0xde)](_0x540016['title']);ValueUtil[_0x33da2f(0xf0)](_0x540016[_0x33da2f(0xbd)])&&(_0xc287b0=_0xc287b0+'-'+ValueUtil['getParams'](_0x119f9e,..._0x540016['title_detail'][_0x33da2f(0xbc)]('.'))),MetaApi[_0x33da2f(0xc8)](_0xc287b0,_0x540016,_0x119f9e,_0x24ad5f);}async[a0_0x375bb0(0xf2)](_0x88e1d8,_0x222d3e,_0x4262f8){const _0xcd9acf=a0_0x375bb0;let _0x3bd8a8=await MetaApi[_0xcd9acf(0xc7)](_0x88e1d8['name'],_0x88e1d8[_0xcd9acf(0xe2)],_0x222d3e);!0x1!==_0x3bd8a8&&!_0x3bd8a8[_0xcd9acf(0xd9)]&&ValueUtil[_0xcd9acf(0xf0)](_0x88e1d8[_0xcd9acf(0xb5)])&&_0x4262f8();}[a0_0x375bb0(0xc9)](_0x3ab09e){this['parent_id']=_0x3ab09e,this['fetch']();}};
@@ -1,4 +1,4 @@
1
- const a0_0x1bcce8=a0_0x26b6;function a0_0x26b6(_0x5b2db5,_0x2723a7){const _0x2be9d3=a0_0x2be9();return a0_0x26b6=function(_0x26b664,_0x730cd0){_0x26b664=_0x26b664-0xd7;let _0x4764ee=_0x2be9d3[_0x26b664];return _0x4764ee;},a0_0x26b6(_0x5b2db5,_0x2723a7);}(function(_0x4cd8f4,_0x3b873a){const _0x72469a=a0_0x26b6,_0x10dd75=_0x4cd8f4();while(!![]){try{const _0x2bdd65=-parseInt(_0x72469a(0x102))/0x1+-parseInt(_0x72469a(0xf5))/0x2*(parseInt(_0x72469a(0xeb))/0x3)+parseInt(_0x72469a(0xff))/0x4*(-parseInt(_0x72469a(0x114))/0x5)+parseInt(_0x72469a(0xfd))/0x6*(-parseInt(_0x72469a(0xf9))/0x7)+-parseInt(_0x72469a(0x107))/0x8+parseInt(_0x72469a(0xed))/0x9+-parseInt(_0x72469a(0x106))/0xa*(-parseInt(_0x72469a(0x10a))/0xb);if(_0x2bdd65===_0x3b873a)break;else _0x10dd75['push'](_0x10dd75['shift']());}catch(_0x33a7d2){_0x10dd75['push'](_0x10dd75['shift']());}}}(a0_0x2be9,0x858dc));import{html}from'lit';function a0_0x2be9(){const _0x5907af=['title','12afueUB','records','tTitle','1074951NolfRN','activityDataSet','querySelector','styles','10FhSWyb','1991880BIKOkf','isPage','forEach','48058351kqzwyU','parseGridConfigSet','grid','properties','isElement','connectedCallback','patchesForUpdateMultiple','import','gridEmphasized','stringify','1725535RINmPL','gristId','ox-filters-form','___data','grid_column','shadowRoot','getSelectedIdList','parseBasicGridConfigs','getParams','filterForm','search','find','deleteByIds','parse','getBasicGristStyles','grist','exportableData','clear','getAndParseMenuMeta','findOne','parseGristConfigs','export','context','12FTuMkI','dataSet','1815696TkrIBx','pageInitialized','getContextObject','gridColumnConfig','isNotEmpty','firstUpdated','filterFormId','getBasicGristHtml','378050xhOpsD','save','searchConfig','fetch','98sWNOFo','menuInfo','keys','getButtonContainer','389268Jdfvlq'];a0_0x2be9=function(){return _0x5907af;};return a0_0x2be9();}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=_0x441a68=>class extends MetaButtonMixin(_0x441a68){static get[a0_0x1bcce8(0x105)](){const _0x351dbc=a0_0x1bcce8;return MetaApi[_0x351dbc(0xe2)]();}static get[a0_0x1bcce8(0x10d)](){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_0x1bcce8(0xe3)](){const _0x5acec9=a0_0x1bcce8;return this['renderRoot']?.[_0x5acec9(0x104)](this[_0x5acec9(0x115)]);}get[a0_0x1bcce8(0xdd)](){const _0x25d101=a0_0x1bcce8;return this[_0x25d101(0xd9)]?.[_0x25d101(0x104)](this[_0x25d101(0xf3)]);}get[a0_0x1bcce8(0xea)](){const _0x42fd71=a0_0x1bcce8;return MetaUiUtil[_0x42fd71(0xef)](this);}async[a0_0x1bcce8(0x10f)](){const _0x400d85=a0_0x1bcce8;this[_0x400d85(0x115)]='ox-grist',this[_0x400d85(0xf3)]=_0x400d85(0x116),await this[_0x400d85(0xe6)](),this[_0x400d85(0x10e)]&&await this[_0x400d85(0xe8)](),this['activityDataSet']&&(this[_0x400d85(0xec)]=this[_0x400d85(0x103)]),super['connectedCallback']&&await super[_0x400d85(0x10f)]();}async[a0_0x1bcce8(0xf2)](){const _0x1b408d=a0_0x1bcce8;super[_0x1b408d(0xf2)]&&await super[_0x1b408d(0xf2)]();}async[a0_0x1bcce8(0xee)](){const _0x159f1b=a0_0x1bcce8;this[_0x159f1b(0x108)]&&await this[_0x159f1b(0xe8)](),super['pageInitialized']&&await super[_0x159f1b(0xee)]();}['render'](){const _0x45bdbe=a0_0x1bcce8;return html`
2
- ${MetaApi[_0x45bdbe(0xf4)](this)}
3
- ${this[_0x45bdbe(0x108)]?html``:MetaUiUtil[_0x45bdbe(0xfc)](this)}
4
- `;}[a0_0x1bcce8(0xdb)](_0x410971){const _0x4481a1=a0_0x1bcce8;this['gridConfig']=_0x410971[_0x4481a1(0x10c)],this[_0x4481a1(0xf0)]=_0x410971[_0x4481a1(0xd8)],this[_0x4481a1(0xf7)]=_0x410971[_0x4481a1(0xde)],this[_0x4481a1(0x112)]=_0x410971[_0x4481a1(0x112)];}async[a0_0x1bcce8(0xe8)](){const _0x448c29=a0_0x1bcce8;this['gristConfigSet']=await MetaApi[_0x448c29(0x10b)](this);}async[a0_0x1bcce8(0xf8)](){const _0x4a7f21=a0_0x1bcce8;await this[_0x4a7f21(0xe3)]['fetch']();}async[a0_0x1bcce8(0xf6)](){const _0x160b54=a0_0x1bcce8;let _0x4ba1c0=MetaApi[_0x160b54(0x110)](this[_0x160b54(0xe3)]);!!ValueUtil['isNotEmpty'](_0x4ba1c0)&&await this['updateMultiple'](_0x4ba1c0)&&this['fetch']();}async[a0_0x1bcce8(0xdf)](){const _0x56b71a=a0_0x1bcce8;let _0x23bd0a=MetaApi[_0x56b71a(0xda)](this['grist'],!0x0);return ValueUtil['isNotEmpty'](_0x23bd0a)?await this[_0x56b71a(0xe7)](_0x23bd0a[0x0]):{};}async['delete'](){const _0x8cface=a0_0x1bcce8;let _0x59ac9a=MetaApi[_0x8cface(0xda)](this['grist'],!0x0);!!ValueUtil[_0x8cface(0xf1)](_0x59ac9a)&&await this[_0x8cface(0xe0)](_0x59ac9a)&&this[_0x8cface(0xf8)]();}async[a0_0x1bcce8(0xe9)](){const _0x21a0cf=a0_0x1bcce8;let _0x56e1cb=TermsUtil[_0x21a0cf(0x101)](ValueUtil[_0x21a0cf(0xdc)](this[_0x21a0cf(0xfa)],_0x21a0cf(0xfe)));return await MetaApi[_0x21a0cf(0xe4)](this[_0x21a0cf(0x10e)],_0x56e1cb,this[_0x21a0cf(0xe3)]);}async[a0_0x1bcce8(0x111)](){}async[a0_0x1bcce8(0xe5)](){const _0x2bba6d=a0_0x1bcce8;this[_0x2bba6d(0xe3)]&&(this[_0x2bba6d(0xe3)]['data']={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0x22f845=a0_0x1bcce8;let _0x29d213=this[_0x22f845(0xe3)][_0x22f845(0xd7)][_0x22f845(0x100)];return _0x29d213=JSON[_0x22f845(0xe1)](JSON[_0x22f845(0x113)](_0x29d213)),_0x29d213['forEach'](_0x5c5577=>{const _0x19ce53=_0x22f845;Object[_0x19ce53(0xfb)](_0x5c5577)[_0x19ce53(0x109)](_0x596f3b=>{_0x596f3b['startsWith']('__')&&delete _0x5c5577[_0x596f3b];});}),_0x29d213;}};
1
+ const a0_0x151171=a0_0x314a;(function(_0x3b7507,_0x5f3724){const _0x1405dd=a0_0x314a,_0x3ddd7e=_0x3b7507();while(!![]){try{const _0x266dc8=-parseInt(_0x1405dd(0x10d))/0x1+-parseInt(_0x1405dd(0x110))/0x2*(-parseInt(_0x1405dd(0x11a))/0x3)+-parseInt(_0x1405dd(0x111))/0x4*(-parseInt(_0x1405dd(0x116))/0x5)+-parseInt(_0x1405dd(0x131))/0x6*(parseInt(_0x1405dd(0x10a))/0x7)+-parseInt(_0x1405dd(0x11e))/0x8*(-parseInt(_0x1405dd(0x130))/0x9)+-parseInt(_0x1405dd(0x135))/0xa*(-parseInt(_0x1405dd(0x132))/0xb)+-parseInt(_0x1405dd(0x113))/0xc;if(_0x266dc8===_0x5f3724)break;else _0x3ddd7e['push'](_0x3ddd7e['shift']());}catch(_0x183cff){_0x3ddd7e['push'](_0x3ddd7e['shift']());}}}(a0_0x5f1a,0xdd056));import{html}from'lit';function a0_0x5f1a(){const _0x28faf4=['styles','keys','clear','gristConfigSet','2961BgyLQh','18912JXTaTt','44pHcNNZ','search','records','746260YHXhLC','parseBasicGridConfigs','filterFormId','ox-grist','parseGristConfigs','properties','getContextObject','connectedCallback','getBasicGristHtml','startsWith','fetch','updateMultiple','getBasicGristStyles','deleteByIds','203rRXnKS','save','isNotEmpty','1191355SEwccq','isElement','data','717748OXIXyH','1758404hMcTdd','grid','13813416qhSQgR','gridColumnConfig','grist','5cbsPTM','grid_column','searchConfig','getAndParseMenuMeta','15AtbFqL','shadowRoot','gridEmphasized','context','19616PQBYJM','getSelectedIdList','isPage','firstUpdated','pageInitialized','getParams','gristId','forEach','patchesForUpdateMultiple','stringify','render','activityDataSet','title','querySelector'];a0_0x5f1a=function(){return _0x28faf4;};return a0_0x5f1a();}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';function a0_0x314a(_0x5a129a,_0x4f4d89){const _0x5f1a3f=a0_0x5f1a();return a0_0x314a=function(_0x314a56,_0x443ea6){_0x314a56=_0x314a56-0x103;let _0x2d2f3a=_0x5f1a3f[_0x314a56];return _0x2d2f3a;},a0_0x314a(_0x5a129a,_0x4f4d89);}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x51610a=>class extends MetaButtonMixin(_0x51610a){static get[a0_0x151171(0x12c)](){const _0x4b2f73=a0_0x151171;return MetaApi[_0x4b2f73(0x108)]();}static get[a0_0x151171(0x13a)](){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_0x151171(0x115)](){const _0xa035c5=a0_0x151171;return this['renderRoot']?.[_0xa035c5(0x12b)](this[_0xa035c5(0x124)]);}get['filterForm'](){const _0x29b288=a0_0x151171;return this[_0x29b288(0x11b)]?.[_0x29b288(0x12b)](this[_0x29b288(0x137)]);}get[a0_0x151171(0x11d)](){const _0x24ae19=a0_0x151171;return MetaUiUtil[_0x24ae19(0x13b)](this);}async[a0_0x151171(0x103)](){const _0x3984bb=a0_0x151171;this[_0x3984bb(0x124)]=_0x3984bb(0x138),this[_0x3984bb(0x137)]='ox-filters-form',await this[_0x3984bb(0x119)](),this[_0x3984bb(0x10e)]&&await this[_0x3984bb(0x139)](),this[_0x3984bb(0x129)]&&(this['dataSet']=this[_0x3984bb(0x129)]),super[_0x3984bb(0x103)]&&await super[_0x3984bb(0x103)]();}async['firstUpdated'](){const _0x4be57a=a0_0x151171;super[_0x4be57a(0x121)]&&await super[_0x4be57a(0x121)]();}async[a0_0x151171(0x122)](){const _0x14a34b=a0_0x151171;this[_0x14a34b(0x120)]&&await this[_0x14a34b(0x139)](),super[_0x14a34b(0x122)]&&await super[_0x14a34b(0x122)]();}[a0_0x151171(0x128)](){const _0x28d13b=a0_0x151171;return html`
2
+ ${MetaApi[_0x28d13b(0x104)](this)}
3
+ ${this[_0x28d13b(0x120)]?html``:MetaUiUtil['getButtonContainer'](this)}
4
+ `;}[a0_0x151171(0x136)](_0x2ab49a){const _0x4f5426=a0_0x151171;this['gridConfig']=_0x2ab49a[_0x4f5426(0x112)],this[_0x4f5426(0x114)]=_0x2ab49a[_0x4f5426(0x117)],this[_0x4f5426(0x118)]=_0x2ab49a[_0x4f5426(0x133)],this[_0x4f5426(0x11c)]=_0x2ab49a[_0x4f5426(0x11c)];}async[a0_0x151171(0x139)](){const _0x27c82f=a0_0x151171;this[_0x27c82f(0x12f)]=await MetaApi['parseGridConfigSet'](this);}async['fetch'](){const _0x120954=a0_0x151171;await this['grist'][_0x120954(0x106)]();}async[a0_0x151171(0x10b)](){const _0x1cf527=a0_0x151171;let _0x2df232=MetaApi[_0x1cf527(0x126)](this[_0x1cf527(0x115)]);!!ValueUtil[_0x1cf527(0x10c)](_0x2df232)&&await this[_0x1cf527(0x107)](_0x2df232)&&this[_0x1cf527(0x106)]();}async['find'](){const _0x36ca9f=a0_0x151171;let _0x3c5c45=MetaApi[_0x36ca9f(0x11f)](this[_0x36ca9f(0x115)],!0x0);return ValueUtil[_0x36ca9f(0x10c)](_0x3c5c45)?await this['findOne'](_0x3c5c45[0x0]):{};}async['delete'](){const _0x6c7c0=a0_0x151171;let _0xc5e289=MetaApi[_0x6c7c0(0x11f)](this[_0x6c7c0(0x115)],!0x0);!!ValueUtil[_0x6c7c0(0x10c)](_0xc5e289)&&await this[_0x6c7c0(0x109)](_0xc5e289)&&this[_0x6c7c0(0x106)]();}async['export'](){const _0x54c3e5=a0_0x151171;let _0x1e1640=TermsUtil['tTitle'](ValueUtil[_0x54c3e5(0x123)](this['menuInfo'],_0x54c3e5(0x12a)));return await MetaApi['exportableData'](this[_0x54c3e5(0x10e)],_0x1e1640,this[_0x54c3e5(0x115)]);}async['import'](){}async[a0_0x151171(0x12e)](){const _0x21c1ac=a0_0x151171;this[_0x21c1ac(0x115)]&&(this[_0x21c1ac(0x115)][_0x21c1ac(0x10f)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0xd42092=a0_0x151171;let _0x37cb35=this[_0xd42092(0x115)]['___data'][_0xd42092(0x134)];return _0x37cb35=JSON['parse'](JSON[_0xd42092(0x127)](_0x37cb35)),_0x37cb35[_0xd42092(0x125)](_0xb37d86=>{const _0x5e1756=_0xd42092;Object[_0x5e1756(0x12d)](_0xb37d86)[_0x5e1756(0x125)](_0x2ac871=>{const _0x12fb67=_0x5e1756;_0x2ac871[_0x12fb67(0x105)]('__')&&delete _0xb37d86[_0x2ac871];});}),_0x37cb35;}};
@@ -1 +1 @@
1
- function a0_0x2a5a(){const _0x13e9bf=['gristButtonHandler','export','customButtonHandler','6843240kLETyl','192664tPUjrI','getContextButtons','491964ceHABY','useButtonExport','getBasicButtonHandler','useButtonImport','747DVUfSU','add','isPage','button','properties','7pkYFgl','52504rNGDRI','1051014Sqebab','getButtonActionHandler','26078778ogyUnj','4JjSJOx','getCustomButtonContainerStyles','buttonConfig','isButtonExist','15RgPdJT','702937OPVGaY','parseBasicButtonConfigs','import','useButtonAdd'];a0_0x2a5a=function(){return _0x13e9bf;};return a0_0x2a5a();}const a0_0x2240e6=a0_0x3a5a;(function(_0x2eebbe,_0x361f17){const _0x272957=a0_0x3a5a,_0x2ebdfa=_0x2eebbe();while(!![]){try{const _0x417f31=-parseInt(_0x272957(0x1e8))/0x1+parseInt(_0x272957(0x200))/0x2*(parseInt(_0x272957(0x1f2))/0x3)+parseInt(_0x272957(0x1f0))/0x4*(-parseInt(_0x272957(0x1e7))/0x5)+-parseInt(_0x272957(0x1fd))/0x6*(parseInt(_0x272957(0x1fb))/0x7)+parseInt(_0x272957(0x1fc))/0x8*(-parseInt(_0x272957(0x1f6))/0x9)+-parseInt(_0x272957(0x1ef))/0xa+parseInt(_0x272957(0x1ff))/0xb;if(_0x417f31===_0x361f17)break;else _0x2ebdfa['push'](_0x2ebdfa['shift']());}catch(_0x4be040){_0x2ebdfa['push'](_0x2ebdfa['shift']());}}}(a0_0x2a5a,0x6d28d));import{html}from'lit';function a0_0x3a5a(_0x2cb009,_0x3dc30a){const _0x2a5a67=a0_0x2a5a();return a0_0x3a5a=function(_0x3a5a7,_0x275607){_0x3a5a7=_0x3a5a7-0x1e5;let _0x49488b=_0x2a5a67[_0x3a5a7];return _0x49488b;},a0_0x3a5a(_0x2cb009,_0x3dc30a);}import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x4bdaac=>class extends MetaServiceMixin(_0x4bdaac){static get[a0_0x2240e6(0x1fa)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}['getCustomButtonContainerStyle'](){const _0x34ab95=a0_0x2240e6;return MetaUiUtil[_0x34ab95(0x201)]();}[a0_0x2240e6(0x1f1)](){const _0x1ee9cf=a0_0x2240e6;return MetaUiUtil[_0x1ee9cf(0x1f1)](this);}['getButtonContainer'](){const _0x3d150f=a0_0x2240e6;return this[_0x3d150f(0x1f8)]?html``:MetaUiUtil['getButtonContainer'](this);}async[a0_0x2240e6(0x1f4)](_0x44201b,_0x30ab09,_0x4f9922){const _0x5bcf56=a0_0x2240e6;return await MetaUiUtil[_0x5bcf56(0x1fe)](this,_0x44201b,_0x30ab09,_0x4f9922);}async[a0_0x2240e6(0x1ee)](_0x5d6dd3){await MetaUiUtil['customButtonHandler'](this,_0x5d6dd3);}async[a0_0x2240e6(0x1ec)](_0x24f87a,_0x2150ee){const _0xc132f8=a0_0x2240e6;await MetaUiUtil[_0xc132f8(0x1ec)](this,_0x24f87a,_0x2150ee);}[a0_0x2240e6(0x1e9)](_0x89849){const _0x3019d4=a0_0x2240e6;this[_0x3019d4(0x1e5)]=_0x89849[_0x3019d4(0x1f9)],this[_0x3019d4(0x1f5)]=MetaUiUtil[_0x3019d4(0x1e6)](this[_0x3019d4(0x1e5)],_0x3019d4(0x1ea)),this[_0x3019d4(0x1f3)]=MetaUiUtil['isButtonExist'](this[_0x3019d4(0x1e5)],_0x3019d4(0x1ed)),this[_0x3019d4(0x1eb)]=MetaUiUtil[_0x3019d4(0x1e6)](this['buttonConfig'],_0x3019d4(0x1f7));}};
1
+ const a0_0xac9d27=a0_0xd7aa;function a0_0x1cae(){const _0x3a3067=['140151capzJA','import','2087351RELyAe','getContextButtons','3840108luutmR','186760CVFdhS','211424KbXdKN','3MBNroL','gristButtonHandler','72ixjFLS','properties','useButtonImport','isButtonExist','add','660063busXsC','buttonConfig','getButtonContainer','button','useButtonAdd','3394100rmGXti','getBasicButtonHandler','2TSINCF','getCustomButtonContainerStyle','120opIJqg','export','parseBasicButtonConfigs'];a0_0x1cae=function(){return _0x3a3067;};return a0_0x1cae();}(function(_0x2b3a10,_0x41b0e4){const _0xf83abf=a0_0xd7aa,_0x391a73=_0x2b3a10();while(!![]){try{const _0x2b663a=-parseInt(_0xf83abf(0x13d))/0x1*(parseInt(_0xf83abf(0x12a))/0x2)+parseInt(_0xf83abf(0x136))/0x3*(parseInt(_0xf83abf(0x134))/0x4)+parseInt(_0xf83abf(0x128))/0x5+parseInt(_0xf83abf(0x133))/0x6+-parseInt(_0xf83abf(0x131))/0x7+parseInt(_0xf83abf(0x135))/0x8*(-parseInt(_0xf83abf(0x138))/0x9)+-parseInt(_0xf83abf(0x12c))/0xa*(-parseInt(_0xf83abf(0x12f))/0xb);if(_0x2b663a===_0x41b0e4)break;else _0x391a73['push'](_0x391a73['shift']());}catch(_0x326251){_0x391a73['push'](_0x391a73['shift']());}}}(a0_0x1cae,0x55244));import{html}from'lit';function a0_0xd7aa(_0x4d5bd7,_0x5dbe77){const _0x1cae7a=a0_0x1cae();return a0_0xd7aa=function(_0xd7aa10,_0x1cd668){_0xd7aa10=_0xd7aa10-0x124;let _0x4ddc01=_0x1cae7a[_0xd7aa10];return _0x4ddc01;},a0_0xd7aa(_0x4d5bd7,_0x5dbe77);}import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x439020=>class extends MetaServiceMixin(_0x439020){static get[a0_0xac9d27(0x139)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0xac9d27(0x12b)](){return MetaUiUtil['getCustomButtonContainerStyles']();}[a0_0xac9d27(0x132)](){return MetaUiUtil['getContextButtons'](this);}[a0_0xac9d27(0x125)](){const _0x593902=a0_0xac9d27;return this['isPage']?html``:MetaUiUtil[_0x593902(0x125)](this);}async[a0_0xac9d27(0x129)](_0x1faf2a,_0x489ad3,_0x3b41d2){return await MetaUiUtil['getButtonActionHandler'](this,_0x1faf2a,_0x489ad3,_0x3b41d2);}async['customButtonHandler'](_0x9a56f6){await MetaUiUtil['customButtonHandler'](this,_0x9a56f6);}async['gristButtonHandler'](_0x3e5519,_0x47583d){const _0x399928=a0_0xac9d27;await MetaUiUtil[_0x399928(0x137)](this,_0x3e5519,_0x47583d);}[a0_0xac9d27(0x12e)](_0x5f2763){const _0x5b4eef=a0_0xac9d27;this[_0x5b4eef(0x124)]=_0x5f2763[_0x5b4eef(0x126)],this[_0x5b4eef(0x13a)]=MetaUiUtil[_0x5b4eef(0x13b)](this['buttonConfig'],_0x5b4eef(0x130)),this['useButtonExport']=MetaUiUtil[_0x5b4eef(0x13b)](this[_0x5b4eef(0x124)],_0x5b4eef(0x12d)),this[_0x5b4eef(0x127)]=MetaUiUtil[_0x5b4eef(0x13b)](this['buttonConfig'],_0x5b4eef(0x13c));}};
@@ -1 +1 @@
1
- const a0_0x3c795c=a0_0x569b;(function(_0x58c5cc,_0x5af3bf){const _0x14e7c5=a0_0x569b,_0x34a83b=_0x58c5cc();while(!![]){try{const _0x6b7c37=-parseInt(_0x14e7c5(0x220))/0x1+parseInt(_0x14e7c5(0x213))/0x2*(-parseInt(_0x14e7c5(0x1c2))/0x3)+-parseInt(_0x14e7c5(0x1c0))/0x4+-parseInt(_0x14e7c5(0x1de))/0x5*(parseInt(_0x14e7c5(0x20c))/0x6)+parseInt(_0x14e7c5(0x1ea))/0x7*(parseInt(_0x14e7c5(0x20a))/0x8)+parseInt(_0x14e7c5(0x20d))/0x9*(parseInt(_0x14e7c5(0x207))/0xa)+-parseInt(_0x14e7c5(0x1c1))/0xb*(-parseInt(_0x14e7c5(0x1e3))/0xc);if(_0x6b7c37===_0x5af3bf)break;else _0x34a83b['push'](_0x34a83b['shift']());}catch(_0xf23872){_0x34a83b['push'](_0x34a83b['shift']());}}}(a0_0x4003,0x6e2bb));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x4003(){const _0x1e0039=['showAlertPopup','detail','name','activity','styles','tagName','code-input','is_activity','stopPropagation','5793830VkPrUa','formConfigSet','filter','2329016JmKeim','updateMultiple','6BUxlWq','9xqMmmt','before','setAttribute','column','addEventListener','button','2rtcbaj','true','confirm','tLabel','forEach','firstUpdated','info','isPage','object','render','validation','fetch','__dirtyfields__','151608VKbAQh','getBasicFormHtml','Enter','2842264iKELjC','2251403KnkOqu','159XOdaKo','startsWith','call','keys','findOne','dispatchEvent','title.info','map','field-change','parseBasicFormConfigs','after','save','editing','getContextObject','__seq__','isEmpty','parseFormConfigSet','check-mandatory-field','pageInitialized','patchData','click','connectedCallback','focus','parent_id','isElement','record','mandatory','activityDataSet','1287485jzblIz','removeGarbageData','cuFlag','assign','keydown','24XwNstM','dirtyData','currentTarget','form','getData','parseFormConfigs','isNotEmpty','14jAdbvi','function','isEquals','currentData','__dirty__','renderRoot','__origin__','formRenderConfig','tText','OX-GRID-FIELD','form-field-change','grid_column','target','Escape','editable','formColumnConfig','type','text.NOTHING_CHANGED','clear','entries'];a0_0x4003=function(){return _0x1e0039;};return a0_0x4003();}import{ValueUtil}from'../utils/value-util';import{UiUtil}from'../utils/ui-util';function a0_0x569b(_0x37769a,_0x4ed7dd){const _0x4003ba=a0_0x4003();return a0_0x569b=function(_0x569b13,_0x42c06c){_0x569b13=_0x569b13-0x1bf;let _0x512a59=_0x4003ba[_0x569b13];return _0x512a59;},a0_0x569b(_0x37769a,_0x4ed7dd);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x2cba20=>class extends MetaButtonMixin(_0x2cba20){static get[a0_0x3c795c(0x202)](){return MetaApi['getBasicFormStyles']();}static get['properties'](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get['context'](){const _0x51dfad=a0_0x3c795c;return MetaUiUtil[_0x51dfad(0x1cf)](this);}async[a0_0x3c795c(0x1d7)](){const _0x1b2b16=a0_0x3c795c;await this['getAndParseMenuMeta'](),this[_0x1b2b16(0x1da)]&&await this[_0x1b2b16(0x1e8)](),this['activityDataSet']&&(this['dataSet']=this[_0x1b2b16(0x1dd)]),!0x0!==this[_0x1b2b16(0x205)]||this[_0x1b2b16(0x1d9)]||(this[_0x1b2b16(0x1d9)]=_0x1b2b16(0x201)),super[_0x1b2b16(0x1d7)]&&await super[_0x1b2b16(0x1d7)](),this['isElement']&&await this[_0x1b2b16(0x21e)](),this['renderRoot'][_0x1b2b16(0x211)](_0x1b2b16(0x1e2),_0x3cfc36=>{const _0x300df5=_0x1b2b16;switch(_0x3cfc36['key']){case'Esc':case _0x300df5(0x1f7):case _0x300df5(0x1bf):this[_0x300df5(0x1d8)](),this['currentTarget']&&this[_0x300df5(0x1e5)]['removeAttribute'](_0x300df5(0x1ce)),this['currentTarget']=null;}}),this[_0x1b2b16(0x1ef)][_0x1b2b16(0x211)](_0x1b2b16(0x1d6),_0x534ba2=>{const _0x27bb40=_0x1b2b16;_0x534ba2[_0x27bb40(0x206)]();let _0x4d9535=_0x534ba2[_0x27bb40(0x1f6)];if(this[_0x27bb40(0x1e5)]&&(this[_0x27bb40(0x1d8)](),this[_0x27bb40(0x1e5)]['removeAttribute'](_0x27bb40(0x1ce))),_0x27bb40(0x1f3)!==_0x4d9535[_0x27bb40(0x203)]||!_0x4d9535[_0x27bb40(0x210)][_0x27bb40(0x1db)][_0x27bb40(0x1f8)])return this['focus'](),void(this[_0x27bb40(0x1e5)]=null);this[_0x27bb40(0x1e5)]=_0x4d9535,_0x4d9535[_0x27bb40(0x20f)]('editing',_0x27bb40(0x214));}),this['addEventListener'](_0x1b2b16(0x1ca),_0x2b8df5=>{const _0x2dd058=_0x1b2b16;var {after:_0x19c434,before:_0x13ff0e,column:_0x466cb9,record:_0x41fc3e,row:_0x3de746}=_0x2b8df5[_0x2dd058(0x1ff)];if(ValueUtil['isEquals'](_0x19c434,_0x13ff0e))return;var _0x3960a3=_0x466cb9[_0x2dd058(0x21d)];if(_0x3960a3&&_0x2dd058(0x1eb)==typeof _0x3960a3&&!_0x3960a3[_0x2dd058(0x1c4)](this,_0x19c434,_0x13ff0e,_0x41fc3e,_0x466cb9))return;let _0x3f9499=_0x466cb9[_0x2dd058(0x200)];_0x41fc3e[_0x3f9499]=_0x19c434,_0x41fc3e[_0x2dd058(0x21f)]=_0x41fc3e['__dirtyfields__']||{},_0x41fc3e[_0x2dd058(0x1f0)]=_0x41fc3e[_0x2dd058(0x1f0)]||{},_0x41fc3e[_0x2dd058(0x21f)][_0x3f9499]={'before':_0x41fc3e['__origin__'][_0x3f9499],'after':_0x41fc3e[_0x3f9499]},ValueUtil[_0x2dd058(0x1ec)](_0x41fc3e['__dirtyfields__'][_0x3f9499][_0x2dd058(0x20e)],_0x41fc3e['__dirtyfields__'][_0x3f9499][_0x2dd058(0x1cc)])&&delete _0x41fc3e['__dirtyfields__'][_0x3f9499],ValueUtil[_0x2dd058(0x1e9)](_0x41fc3e['__dirtyfields__'])?_0x41fc3e[_0x2dd058(0x1ee)]='M':_0x41fc3e['__dirty__']='',this[_0x2dd058(0x1db)]={..._0x41fc3e},this[_0x2dd058(0x1c7)](new CustomEvent(_0x2dd058(0x1f4),{'bubbles':!0x0,'composed':!0x0,'detail':_0x2b8df5['detail']}));});}async['firstUpdated'](){const _0x28f73e=a0_0x3c795c;super[_0x28f73e(0x218)]&&await super[_0x28f73e(0x218)]();}async[a0_0x3c795c(0x1d4)](){const _0x431c9e=a0_0x3c795c;this[_0x431c9e(0x21a)]&&await this[_0x431c9e(0x1e8)](),super[_0x431c9e(0x1d4)]&&await super[_0x431c9e(0x1d4)](),this[_0x431c9e(0x21a)]&&await this[_0x431c9e(0x21e)]();}[a0_0x3c795c(0x21c)](){const _0x1fc790=a0_0x3c795c;return MetaApi[_0x1fc790(0x221)](this);}[a0_0x3c795c(0x1cb)](_0x123814){const _0xf0a07f=a0_0x3c795c;this[_0xf0a07f(0x1f9)]=_0x123814[_0xf0a07f(0x1f5)],this[_0xf0a07f(0x1f1)]=_0x123814[_0xf0a07f(0x1e6)],_0x123814[_0xf0a07f(0x212)]=_0x123814['button'][_0xf0a07f(0x209)](_0x126e14=>'save'==_0x126e14[_0xf0a07f(0x200)]);}async[a0_0x3c795c(0x1e8)](){const _0x1d205d=a0_0x3c795c;this[_0x1d205d(0x208)]=await MetaApi[_0x1d205d(0x1d2)](this);}get['orgData'](){const _0x4510f1=a0_0x3c795c;return this[_0x4510f1(0x1df)](this[_0x4510f1(0x1db)]['__origin__']);}get['dirtyData'](){const _0x50b18b=a0_0x3c795c;if(ValueUtil[_0x50b18b(0x1d1)]((this['record']||{})[_0x50b18b(0x21f)]))return{};let _0xb14753={};return Object[_0x50b18b(0x1fd)](this[_0x50b18b(0x1db)][_0x50b18b(0x21f)])['map'](([_0x261cef,_0x1cda1b])=>{const _0x13e49d=_0x50b18b;0x0==_0x261cef[_0x13e49d(0x1c3)]('__')&&(_0xb14753[_0x261cef]=_0x1cda1b['after']);}),_0xb14753;}get[a0_0x3c795c(0x1ed)](){const _0x4b55c6=a0_0x3c795c;return this[_0x4b55c6(0x1df)](this[_0x4b55c6(0x1db)]);}['removeGarbageData'](_0x380c25){const _0x30d9f2=a0_0x3c795c;let _0x3909ec={};if(_0x380c25)return Object[_0x30d9f2(0x1fd)](_0x380c25)[_0x30d9f2(0x1c9)](([_0x1d8e0d,_0x3a9f1a])=>{const _0x1d5d21=_0x30d9f2;0x0==_0x1d8e0d[_0x1d5d21(0x1c3)]('__')&&(_0x3909ec[_0x1d8e0d]=_0x3a9f1a);}),_0x3909ec;}get[a0_0x3c795c(0x1d5)](){const _0x36acda=a0_0x3c795c;let _0x5c8c86=this[_0x36acda(0x1e4)],_0x3c377c=this[_0x36acda(0x1db)],_0x31cc93=(this['formColumnConfig']||[])[_0x36acda(0x209)](_0x55672c=>_0x36acda(0x204)===_0x55672c[_0x36acda(0x1fa)])[_0x36acda(0x1c9)](_0x3e4fe0=>_0x3e4fe0[_0x36acda(0x200)]);if(!ValueUtil[_0x36acda(0x1d1)](_0x5c8c86))return ValueUtil[_0x36acda(0x1e9)](_0x3c377c['id'])?(_0x5c8c86['id']=_0x3c377c['id'],_0x5c8c86['cuFlag']='M'):_0x5c8c86[_0x36acda(0x1e0)]='+',Object[_0x36acda(0x1c5)](_0x5c8c86)[_0x36acda(0x217)](_0x172477=>{const _0x4c14ce=_0x36acda;_0x4c14ce(0x21b)==typeof _0x5c8c86[_0x172477]&&0x0==_0x31cc93['includes'](_0x172477)&&(_0x5c8c86[_0x172477]={'id':_0x5c8c86[_0x172477]['id']});}),[_0x5c8c86];}async[a0_0x3c795c(0x21e)](){const _0x206798=a0_0x3c795c;if(ValueUtil[_0x206798(0x1d1)](this['parent_id']))return;let _0x14c3d9=await this[_0x206798(0x1c6)](this[_0x206798(0x1d9)]);_0x14c3d9[_0x206798(0x1d0)]=0x1;let _0x4b04da={};Object[_0x206798(0x1e1)](_0x4b04da,_0x14c3d9),_0x14c3d9['__origin__']=_0x4b04da,this['record']={..._0x14c3d9};}async[a0_0x3c795c(0x1cd)](){const _0x81316b=a0_0x3c795c;let _0x1315ad=this['patchData'];if(ValueUtil[_0x81316b(0x1d1)](_0x1315ad))return void MetaApi['showAlertPopup'](_0x81316b(0x1c8),_0x81316b(0x1fb));let _0x351459={};(this[_0x81316b(0x1f9)]||[])[_0x81316b(0x209)](_0x12005a=>!0x0===_0x12005a[_0x81316b(0x1dc)])['forEach'](_0x2dc3aa=>{const _0x316698=_0x81316b;_0x351459[_0x2dc3aa[_0x316698(0x200)]]=_0x2dc3aa['header'];});let _0x475474=this[_0x81316b(0x1ed)];for(let _0x278cc9 in _0x351459)if(void 0x0===_0x475474[_0x278cc9]||''==_0x475474[_0x278cc9])return void UiUtil[_0x81316b(0x1fe)]('text.check-mandatory',TermsUtil[_0x81316b(0x1f2)](_0x81316b(0x1d3),{'x':TermsUtil[_0x81316b(0x216)](_0x351459[_0x278cc9])}),_0x81316b(0x219),_0x81316b(0x215));let _0x2ca1d8=await this[_0x81316b(0x20b)](_0x1315ad);return _0x2ca1d8&&await this['fetch'](),_0x2ca1d8;}async[a0_0x3c795c(0x1fc)](){const _0x5aa53e=a0_0x3c795c;this[_0x5aa53e(0x1db)]&&(this[_0x5aa53e(0x1db)]={});}[a0_0x3c795c(0x1e7)](){const _0x447450=a0_0x3c795c;return this[_0x447450(0x1ed)]||{};}};
1
+ const a0_0x4d557b=a0_0x1a6d;(function(_0x5c981c,_0x1f1990){const _0x3a22fe=a0_0x1a6d,_0x48aa51=_0x5c981c();while(!![]){try{const _0x42d0cd=-parseInt(_0x3a22fe(0x152))/0x1*(-parseInt(_0x3a22fe(0x158))/0x2)+parseInt(_0x3a22fe(0x14d))/0x3+parseInt(_0x3a22fe(0x130))/0x4+-parseInt(_0x3a22fe(0x137))/0x5+parseInt(_0x3a22fe(0x12b))/0x6*(parseInt(_0x3a22fe(0x13c))/0x7)+parseInt(_0x3a22fe(0x12c))/0x8*(-parseInt(_0x3a22fe(0x16b))/0x9)+-parseInt(_0x3a22fe(0x15c))/0xa;if(_0x42d0cd===_0x1f1990)break;else _0x48aa51['push'](_0x48aa51['shift']());}catch(_0x329e47){_0x48aa51['push'](_0x48aa51['shift']());}}}(a0_0x56a3,0xc72de));function a0_0x56a3(){const _0x16d1d2=['getContextObject','parseFormConfigs','activityDataSet','removeAttribute','map','call','2828520fxdJeD','forEach','dispatchEvent','clear','dataSet','144147SsPgCE','getBasicFormHtml','before','confirm','parent_id','setAttribute','22MkrLTf','updateMultiple','focus','context','21071920zZerVh','editing','parseBasicFormConfigs','tText','cuFlag','stopPropagation','__origin__','object','field-change','isEquals','after','removeGarbageData','record','is_activity','entries','111429IllaXc','tLabel','text.NOTHING_CHANGED','form','styles','patchData','Esc','getAndParseMenuMeta','true','click','startsWith','grid_column','currentData','findOne','__dirtyfields__','addEventListener','text.check-mandatory','orgData','save','fetch','title.info','header','__dirty__','connectedCallback','editable','formColumnConfig','isElement','isNotEmpty','properties','formConfigSet','button','42mAnbHg','904PlElkU','showAlertPopup','filter','detail','2897828IgaxEg','type','OX-GRID-FIELD','render','firstUpdated','target','getBasicFormStyles','1577400rezkkP','tagName','dirtyData','Escape','activity','1384649yxhfYE','column','name','renderRoot','currentTarget','Enter','isPage','validation','pageInitialized','includes','isEmpty'];a0_0x56a3=function(){return _0x16d1d2;};return a0_0x56a3();}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{UiUtil}from'../utils/ui-util';function a0_0x1a6d(_0x295fa8,_0x3caf8a){const _0x56a369=a0_0x56a3();return a0_0x1a6d=function(_0x1a6d7b,_0xc62188){_0x1a6d7b=_0x1a6d7b-0x120;let _0x9a5981=_0x56a369[_0x1a6d7b];return _0x9a5981;},a0_0x1a6d(_0x295fa8,_0x3caf8a);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x2b6d7e=>class extends MetaButtonMixin(_0x2b6d7e){static get[a0_0x4d557b(0x16f)](){const _0x4ef899=a0_0x4d557b;return MetaApi[_0x4ef899(0x136)]();}static get[a0_0x4d557b(0x128)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x4d557b(0x15b)](){const _0x37fb3f=a0_0x4d557b;return MetaUiUtil[_0x37fb3f(0x147)](this);}async[a0_0x4d557b(0x123)](){const _0x1710eb=a0_0x4d557b;await this[_0x1710eb(0x172)](),this[_0x1710eb(0x126)]&&await this[_0x1710eb(0x148)](),this[_0x1710eb(0x149)]&&(this[_0x1710eb(0x151)]=this[_0x1710eb(0x149)]),!0x0!==this[_0x1710eb(0x169)]||this[_0x1710eb(0x156)]||(this[_0x1710eb(0x156)]=_0x1710eb(0x13b)),super[_0x1710eb(0x123)]&&await super[_0x1710eb(0x123)](),this['isElement']&&await this[_0x1710eb(0x17e)](),this[_0x1710eb(0x13f)][_0x1710eb(0x17a)]('keydown',_0x5b607c=>{const _0x13fbc3=_0x1710eb;switch(_0x5b607c['key']){case _0x13fbc3(0x171):case _0x13fbc3(0x13a):case _0x13fbc3(0x141):this[_0x13fbc3(0x15a)](),this['currentTarget']&&this['currentTarget'][_0x13fbc3(0x14a)]('editing'),this[_0x13fbc3(0x140)]=null;}}),this[_0x1710eb(0x13f)]['addEventListener'](_0x1710eb(0x174),_0x208d02=>{const _0x1c3bec=_0x1710eb;_0x208d02[_0x1c3bec(0x161)]();let _0x1bcf50=_0x208d02[_0x1c3bec(0x135)];if(this[_0x1c3bec(0x140)]&&(this['focus'](),this[_0x1c3bec(0x140)][_0x1c3bec(0x14a)]('editing')),_0x1c3bec(0x132)!==_0x1bcf50[_0x1c3bec(0x138)]||!_0x1bcf50[_0x1c3bec(0x13d)]['record'][_0x1c3bec(0x124)])return this[_0x1c3bec(0x15a)](),void(this['currentTarget']=null);this[_0x1c3bec(0x140)]=_0x1bcf50,_0x1bcf50[_0x1c3bec(0x157)](_0x1c3bec(0x15d),_0x1c3bec(0x173));}),this[_0x1710eb(0x17a)](_0x1710eb(0x164),_0x5803de=>{const _0x16f0f7=_0x1710eb;var {after:_0x354e1f,before:_0x51bd44,column:_0x148e7c,record:_0x2d824f,row:_0x3b24e4}=_0x5803de['detail'];if(ValueUtil[_0x16f0f7(0x165)](_0x354e1f,_0x51bd44))return;var _0x16991f=_0x148e7c[_0x16f0f7(0x143)];if(_0x16991f&&'function'==typeof _0x16991f&&!_0x16991f[_0x16f0f7(0x14c)](this,_0x354e1f,_0x51bd44,_0x2d824f,_0x148e7c))return;let _0x5311ff=_0x148e7c[_0x16f0f7(0x13e)];_0x2d824f[_0x5311ff]=_0x354e1f,_0x2d824f[_0x16f0f7(0x179)]=_0x2d824f[_0x16f0f7(0x179)]||{},_0x2d824f[_0x16f0f7(0x162)]=_0x2d824f['__origin__']||{},_0x2d824f['__dirtyfields__'][_0x5311ff]={'before':_0x2d824f['__origin__'][_0x5311ff],'after':_0x2d824f[_0x5311ff]},ValueUtil['isEquals'](_0x2d824f[_0x16f0f7(0x179)][_0x5311ff][_0x16f0f7(0x154)],_0x2d824f['__dirtyfields__'][_0x5311ff]['after'])&&delete _0x2d824f['__dirtyfields__'][_0x5311ff],ValueUtil[_0x16f0f7(0x127)](_0x2d824f['__dirtyfields__'])?_0x2d824f['__dirty__']='M':_0x2d824f[_0x16f0f7(0x122)]='',this[_0x16f0f7(0x168)]={..._0x2d824f},this[_0x16f0f7(0x14f)](new CustomEvent('form-field-change',{'bubbles':!0x0,'composed':!0x0,'detail':_0x5803de[_0x16f0f7(0x12f)]}));});}async[a0_0x4d557b(0x134)](){const _0x4d4d9d=a0_0x4d557b;super[_0x4d4d9d(0x134)]&&await super[_0x4d4d9d(0x134)]();}async['pageInitialized'](){const _0x4f9bdf=a0_0x4d557b;this[_0x4f9bdf(0x142)]&&await this['parseFormConfigs'](),super['pageInitialized']&&await super[_0x4f9bdf(0x144)](),this['isPage']&&await this['fetch']();}[a0_0x4d557b(0x133)](){const _0x1908af=a0_0x4d557b;return MetaApi[_0x1908af(0x153)](this);}[a0_0x4d557b(0x15e)](_0x5437e9){const _0x201e47=a0_0x4d557b;this[_0x201e47(0x125)]=_0x5437e9[_0x201e47(0x176)],this['formRenderConfig']=_0x5437e9[_0x201e47(0x16e)],_0x5437e9[_0x201e47(0x12a)]=_0x5437e9['button'][_0x201e47(0x12e)](_0x124fb0=>_0x201e47(0x17d)==_0x124fb0['name']);}async[a0_0x4d557b(0x148)](){const _0x46f0c6=a0_0x4d557b;this[_0x46f0c6(0x129)]=await MetaApi['parseFormConfigSet'](this);}get[a0_0x4d557b(0x17c)](){const _0x2e174d=a0_0x4d557b;return this[_0x2e174d(0x167)](this[_0x2e174d(0x168)][_0x2e174d(0x162)]);}get[a0_0x4d557b(0x139)](){const _0x3777e8=a0_0x4d557b;if(ValueUtil[_0x3777e8(0x146)]((this[_0x3777e8(0x168)]||{})[_0x3777e8(0x179)]))return{};let _0x32f3dc={};return Object[_0x3777e8(0x16a)](this[_0x3777e8(0x168)][_0x3777e8(0x179)])[_0x3777e8(0x14b)](([_0x22b12e,_0x333bd1])=>{const _0x40e43b=_0x3777e8;0x0==_0x22b12e[_0x40e43b(0x175)]('__')&&(_0x32f3dc[_0x22b12e]=_0x333bd1[_0x40e43b(0x166)]);}),_0x32f3dc;}get[a0_0x4d557b(0x177)](){return this['removeGarbageData'](this['record']);}['removeGarbageData'](_0x5de0d1){const _0xcc10a3=a0_0x4d557b;let _0xe8ca4b={};if(_0x5de0d1)return Object[_0xcc10a3(0x16a)](_0x5de0d1)[_0xcc10a3(0x14b)](([_0x471ecf,_0x26444c])=>{const _0x13bf1d=_0xcc10a3;0x0==_0x471ecf[_0x13bf1d(0x175)]('__')&&(_0xe8ca4b[_0x471ecf]=_0x26444c);}),_0xe8ca4b;}get[a0_0x4d557b(0x170)](){const _0x3cdcae=a0_0x4d557b;let _0x2f9cd3=this['dirtyData'],_0x53acce=this['record'],_0xd26477=(this[_0x3cdcae(0x125)]||[])[_0x3cdcae(0x12e)](_0x1561ff=>'code-input'===_0x1561ff[_0x3cdcae(0x131)])[_0x3cdcae(0x14b)](_0x5c85ce=>_0x5c85ce[_0x3cdcae(0x13e)]);if(!ValueUtil[_0x3cdcae(0x146)](_0x2f9cd3))return ValueUtil[_0x3cdcae(0x127)](_0x53acce['id'])?(_0x2f9cd3['id']=_0x53acce['id'],_0x2f9cd3[_0x3cdcae(0x160)]='M'):_0x2f9cd3[_0x3cdcae(0x160)]='+',Object['keys'](_0x2f9cd3)['forEach'](_0x44e5f8=>{const _0x5c71d1=_0x3cdcae;_0x5c71d1(0x163)==typeof _0x2f9cd3[_0x44e5f8]&&0x0==_0xd26477[_0x5c71d1(0x145)](_0x44e5f8)&&(_0x2f9cd3[_0x44e5f8]={'id':_0x2f9cd3[_0x44e5f8]['id']});}),[_0x2f9cd3];}async[a0_0x4d557b(0x17e)](){const _0x1bfab5=a0_0x4d557b;if(ValueUtil[_0x1bfab5(0x146)](this[_0x1bfab5(0x156)]))return;let _0x55ceaf=await this[_0x1bfab5(0x178)](this[_0x1bfab5(0x156)]);_0x55ceaf['__seq__']=0x1;let _0x23d527={};Object['assign'](_0x23d527,_0x55ceaf),_0x55ceaf[_0x1bfab5(0x162)]=_0x23d527,this['record']={..._0x55ceaf};}async[a0_0x4d557b(0x17d)](){const _0x52b2a2=a0_0x4d557b;let _0x417f44=this[_0x52b2a2(0x170)];if(ValueUtil[_0x52b2a2(0x146)](_0x417f44))return void MetaApi['showAlertPopup'](_0x52b2a2(0x120),_0x52b2a2(0x16d));let _0x3fe806={};(this['formColumnConfig']||[])[_0x52b2a2(0x12e)](_0x418c27=>!0x0===_0x418c27['mandatory'])[_0x52b2a2(0x14e)](_0x155e4a=>{const _0x17620f=_0x52b2a2;_0x3fe806[_0x155e4a[_0x17620f(0x13e)]]=_0x155e4a[_0x17620f(0x121)];});let _0x3b0eb9=this[_0x52b2a2(0x177)];for(let _0x301416 in _0x3fe806)if(void 0x0===_0x3b0eb9[_0x301416]||''==_0x3b0eb9[_0x301416])return void UiUtil[_0x52b2a2(0x12d)](_0x52b2a2(0x17b),TermsUtil[_0x52b2a2(0x15f)]('check-mandatory-field',{'x':TermsUtil[_0x52b2a2(0x16c)](_0x3fe806[_0x301416])}),'info',_0x52b2a2(0x155));let _0x251564=await this[_0x52b2a2(0x159)](_0x417f44);return _0x251564&&await this[_0x52b2a2(0x17e)](),_0x251564;}async[a0_0x4d557b(0x150)](){const _0x241dcf=a0_0x4d557b;this[_0x241dcf(0x168)]&&(this[_0x241dcf(0x168)]={});}['getData'](){return this['currentData']||{};}};