@things-factory/meta-ui 6.1.80 → 6.1.82

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 (113) hide show
  1. package/client/actions/main.js +4 -4
  2. package/client/bootstrap.js +26 -0
  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 +7 -7
  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/index.js +0 -2
  17. package/client/mixin/meta-base-mixin.js +1 -1
  18. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  19. package/client/mixin/meta-button-mixin.js +1 -1
  20. package/client/mixin/meta-form-mixin.js +1 -1
  21. package/client/mixin/meta-grist-tab-mixin.js +1 -1
  22. package/client/mixin/meta-main-tab-mixin.js +1 -1
  23. package/client/mixin/meta-master-detail-mixin.js +1 -1
  24. package/client/mixin/meta-service-mixin.js +1 -1
  25. package/client/mixin/meta-tab-detail-mixin.js +1 -1
  26. package/client/mixin/meta-tab-mixin.js +1 -1
  27. package/client/pages/activity/meta-activity-define-page.js +127 -0
  28. package/client/pages/activity/meta-activity-list-page.js +7 -7
  29. package/client/pages/activity/meta-activity-viewer-element.js +3 -3
  30. package/client/pages/activity/meta-activity-writer-element.js +3 -3
  31. package/client/pages/activity/meta-activiy-mixin.js +3 -3
  32. package/client/pages/button-role/button-role-detail.js +1 -0
  33. package/client/pages/button-role/button-role-page.js +1 -0
  34. package/client/pages/entity/config-entity.js +28 -28
  35. package/client/pages/entity/main-menu-selector.js +8 -8
  36. package/client/pages/history/history-copy-list-popup.js +6 -6
  37. package/client/pages/history/history-json-list-popup.js +6 -6
  38. package/client/pages/loading-page.js +5 -5
  39. package/client/pages/menu/dynamic-menu-template.js +7 -7
  40. package/client/pages/menu/dynamic-menu.js +16 -16
  41. package/client/pages/menu/export-menu-popup.js +6 -6
  42. package/client/pages/meta-form-element.js +1 -1
  43. package/client/pages/meta-grist-element.js +1 -1
  44. package/client/pages/meta-grist-page.js +1 -1
  45. package/client/pages/meta-grist-tab-element.js +1 -1
  46. package/client/pages/meta-grist-tab-page.js +1 -1
  47. package/client/pages/meta-main-tab-element.js +1 -1
  48. package/client/pages/meta-main-tab-page.js +1 -1
  49. package/client/pages/meta-master-detail-element.js +1 -1
  50. package/client/pages/meta-master-detail-page.js +1 -1
  51. package/client/pages/meta-tab-detail-element.js +1 -1
  52. package/client/pages/meta-tab-detail-page.js +1 -1
  53. package/client/pages/meta-tab-element.js +1 -1
  54. package/client/pages/personalize/personal-column-selector.js +11 -11
  55. package/client/pages/terms/config-terminology.js +5 -5
  56. package/client/pages/work-code/work-code-detail-popup.js +1 -1
  57. package/client/pages/work-code/work-code-page.js +1 -1
  58. package/client/reducers/main.js +1 -1
  59. package/client/route.js +10 -0
  60. package/client/utils/grist-default-value.js +1 -1
  61. package/client/utils/meta-api.js +1 -1
  62. package/client/utils/meta-crypto.js +1 -1
  63. package/client/utils/meta-ui-util.js +103 -103
  64. package/client/utils/service-util.js +13 -13
  65. package/client/utils/terms-util.js +2 -2
  66. package/client/utils/ui-util.js +1 -1
  67. package/client/utils/value-util.js +1 -1
  68. package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
  69. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  70. package/client/viewparts/dynamic-menu-part.js +11 -11
  71. package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
  72. package/client/viewparts/dynamic-menu-portrait.js +9 -9
  73. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  74. package/package.json +5 -5
  75. package/server/activity/CommonActivity.js +2 -2
  76. package/server/constants/error-code.js +1 -1
  77. package/server/errors/license-error.js +1 -1
  78. package/server/routes.js +1 -1
  79. package/server/service/button-role/button-role-mutation.js +1 -0
  80. package/server/service/button-role/button-role-query.js +1 -0
  81. package/server/service/button-role/button-role-type.js +1 -0
  82. package/server/service/button-role/button-role.js +1 -0
  83. package/server/service/button-role/index.js +9 -0
  84. package/server/service/dynamic-menu/dynamic-menu-query.js +1 -1
  85. package/server/service/dynamic-menu/dynamic-menu-type.js +1 -1
  86. package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
  87. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  88. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  89. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  90. package/server/service/grid-personalize/grid-personalize.js +1 -1
  91. package/server/service/index.js +8 -0
  92. package/server/service/menu-button-auth/index.js +9 -0
  93. package/server/service/menu-button-auth/menu-button-auth-mutation.js +1 -0
  94. package/server/service/menu-button-auth/menu-button-auth-query.js +1 -0
  95. package/server/service/menu-button-auth/menu-button-auth-type.js +1 -0
  96. package/server/service/menu-button-auth/menu-button-auth.js +1 -0
  97. package/server/service/meta-activity/meta-activity-mutation.js +1 -1
  98. package/server/service/meta-activity/meta-activity-query.js +1 -1
  99. package/server/service/meta-activity/meta-activity-type.js +1 -1
  100. package/server/service/meta-secret/meta-resolver.js +1 -1
  101. package/server/service/set-translations/set-translation-resolver.js +1 -1
  102. package/server/service/work-code/work-code-mutation.js +1 -1
  103. package/server/service/work-code/work-code-query.js +1 -1
  104. package/server/service/work-code/work-code-type.js +1 -1
  105. package/server/service/work-code/work-code.js +1 -1
  106. package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
  107. package/server/service/work-code-detail/work-code-detail-query.js +1 -1
  108. package/server/service/work-code-detail/work-code-detail-type.js +1 -1
  109. package/server/service/work-code-detail/work-code-detail.js +1 -1
  110. package/translations/en.json +1 -0
  111. package/translations/ko.json +2 -1
  112. package/translations/ms.json +1 -0
  113. package/translations/zh.json +1 -0
@@ -1,4 +1,4 @@
1
- const a0_0x58449d=a0_0x1152;(function(_0x2ac567,_0x457466){const _0x205cd3=a0_0x1152,_0x1bbf1f=_0x2ac567();while(!![]){try{const _0x5c694c=-parseInt(_0x205cd3(0xf5))/0x1*(-parseInt(_0x205cd3(0xce))/0x2)+parseInt(_0x205cd3(0xf4))/0x3*(-parseInt(_0x205cd3(0xe4))/0x4)+parseInt(_0x205cd3(0xd9))/0x5*(parseInt(_0x205cd3(0xc4))/0x6)+parseInt(_0x205cd3(0xe1))/0x7+parseInt(_0x205cd3(0xf3))/0x8*(-parseInt(_0x205cd3(0xc6))/0x9)+-parseInt(_0x205cd3(0xca))/0xa*(parseInt(_0x205cd3(0xf1))/0xb)+parseInt(_0x205cd3(0xc7))/0xc;if(_0x5c694c===_0x457466)break;else _0x1bbf1f['push'](_0x1bbf1f['shift']());}catch(_0x2c9456){_0x1bbf1f['push'](_0x1bbf1f['shift']());}}}(a0_0x1c13,0x7ec65));function a0_0x1152(_0xeed692,_0xacf78b){const _0x1c13f6=a0_0x1c13();return a0_0x1152=function(_0x11528f,_0x4d4819){_0x11528f=_0x11528f-0xc4;let _0x12e894=_0x1c13f6[_0x11528f];return _0x12e894;},a0_0x1152(_0xeed692,_0xacf78b);}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_0x404ad6 from'graphql-tag';import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';class FileUploadPopup extends LitElement{static get[a0_0x58449d(0xd4)](){return[SingleColumnFormStyles,css`
1
+ const a0_0x525fe8=a0_0x169b;(function(_0x2d1af8,_0x1b365a){const _0x1f231a=a0_0x169b,_0x86a6e6=_0x2d1af8();while(!![]){try{const _0x1c108b=-parseInt(_0x1f231a(0x16c))/0x1*(-parseInt(_0x1f231a(0x162))/0x2)+parseInt(_0x1f231a(0x174))/0x3+-parseInt(_0x1f231a(0x183))/0x4+parseInt(_0x1f231a(0x17e))/0x5+-parseInt(_0x1f231a(0x167))/0x6+parseInt(_0x1f231a(0x16d))/0x7+parseInt(_0x1f231a(0x175))/0x8*(-parseInt(_0x1f231a(0x173))/0x9);if(_0x1c108b===_0x1b365a)break;else _0x86a6e6['push'](_0x86a6e6['shift']());}catch(_0x171b49){_0x86a6e6['push'](_0x86a6e6['shift']());}}}(a0_0x5054,0xe1cd1));function a0_0x5054(){const _0x44e397=['category','label.error','tText','5184520RufcLG','mutate','define','tButton','properties','1827380WSUfkq','_template','showAlertPopup','tLabel','TEMPLATE_TYPES','dispatchEvent','_createAttachment','querySelector','description','file_upload','connectedCallback','],\x20input[name=','checkValidity','template-uploaded','confirm','4fHzWkq','_getAttachmentInfo','_getInputByName','templateTypes','codeItems','66090zaYnWA','render','renderRoot','create','customElements','801677sImbxl','9387567lawwKI','error','files','styles','file-upload-popup','back','8586054dvViOu','3682278EmaxfJ','32XpejtA','map','errors','message','please_select_upload_category','select[name='];a0_0x5054=function(){return _0x44e397;};return a0_0x5054();}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_0x29a7b3 from'graphql-tag';import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';function a0_0x169b(_0x4ce2a4,_0x37478a){const _0x50540d=a0_0x5054();return a0_0x169b=function(_0x169b8b,_0x4d5db6){_0x169b8b=_0x169b8b-0x156;let _0x1f50c9=_0x50540d[_0x169b8b];return _0x1f50c9;},a0_0x169b(_0x4ce2a4,_0x37478a);}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_0x525fe8(0x170)](){return[SingleColumnFormStyles,css`
2
2
  :host {
3
3
  padding: 10px;
4
4
  display: flex;
@@ -27,30 +27,30 @@ const a0_0x58449d=a0_0x1152;(function(_0x2ac567,_0x457466){const _0x205cd3=a0_0x
27
27
  .button-container > button:active {
28
28
  background-color: var(--button-background-focus-color);
29
29
  }
30
- `];}static get[a0_0x58449d(0xea)](){return{'templateTypes':Array};}async[a0_0x58449d(0xcf)](){const _0x36a49f=a0_0x58449d;super[_0x36a49f(0xcf)](),this['templateTypes']=await ServiceUtil['codeItems'](_0x36a49f(0xd8));}[a0_0x58449d(0xe8)](){const _0x36e9c7=a0_0x58449d;return html`
30
+ `];}static get[a0_0x525fe8(0x182)](){return{'templateTypes':Array};}async[a0_0x525fe8(0x15d)](){const _0x5da027=a0_0x525fe8;super[_0x5da027(0x15d)](),this[_0x5da027(0x165)]=await ServiceUtil[_0x5da027(0x166)](_0x5da027(0x157));}[a0_0x525fe8(0x168)](){const _0x3e7eca=a0_0x525fe8;return html`
31
31
  <div>
32
32
  <form id="input-form" class="single-column-form">
33
33
  <fieldset>
34
- <legend>${TermsUtil[_0x36e9c7(0xd7)]('file_upload')}</legend>
35
- <label>${TermsUtil[_0x36e9c7(0xd7)](_0x36e9c7(0xdb))}</label>
34
+ <legend>${TermsUtil[_0x3e7eca(0x156)](_0x3e7eca(0x15c))}</legend>
35
+ <label>${TermsUtil[_0x3e7eca(0x156)](_0x3e7eca(0x15c))}</label>
36
36
  <file-uploader custom-input id="uploadTemplate" name="attachments"></file-uploader>
37
37
 
38
- <label>${TermsUtil['tLabel'](_0x36e9c7(0xf0))}</label>
38
+ <label>${TermsUtil[_0x3e7eca(0x156)](_0x3e7eca(0x17b))}</label>
39
39
  <select name="category" required>
40
- <option value="">${TermsUtil['tText'](_0x36e9c7(0xc9))}</option>
41
- ${(this[_0x36e9c7(0xd6)]||[])[_0x36e9c7(0xdd)](_0x169aa7=>{const {name:_0x44d0cb,description:_0x4c4094}=_0x169aa7;return html` <option value="${_0x44d0cb}">${_0x44d0cb} ${_0x4c4094?'\x20('+_0x4c4094+')':''}</option> `;})}
40
+ <option value="">${TermsUtil[_0x3e7eca(0x17d)](_0x3e7eca(0x179))}</option>
41
+ ${(this[_0x3e7eca(0x165)]||[])[_0x3e7eca(0x176)](_0x186977=>{const {name:_0x12e0d7,description:_0x3f9482}=_0x186977;return html` <option value="${_0x12e0d7}">${_0x12e0d7} ${_0x3f9482?'\x20('+_0x3f9482+')':''}</option> `;})}
42
42
  </select>
43
43
 
44
- <label>${TermsUtil[_0x36e9c7(0xd7)](_0x36e9c7(0xe2))}</label>
44
+ <label>${TermsUtil['tLabel'](_0x3e7eca(0x15b))}</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[_0x36e9c7(0xe0)](_0x36e9c7(0xdf))}"></mwc-button>
51
+ <mwc-button raised @click="${this[_0x3e7eca(0x159)]}" label="${TermsUtil[_0x3e7eca(0x181)](_0x3e7eca(0x16a))}"></mwc-button>
52
52
  </div>
53
- `;}get[a0_0x58449d(0xeb)](){const _0x17da56=a0_0x58449d;return this[_0x17da56(0xe9)][_0x17da56(0xed)](_0x17da56(0xde));}async[a0_0x58449d(0xcd)](){const _0x481ee1=a0_0x58449d;try{const _0x3ec8b0=this[_0x481ee1(0xe5)]();(await client[_0x481ee1(0xd5)]({'mutation':a0_0x404ad6`
53
+ `;}get['_template'](){const _0xca5449=a0_0x525fe8;return this[_0xca5449(0x169)][_0xca5449(0x15a)]('#uploadTemplate');}async[a0_0x525fe8(0x159)](){const _0x56e78e=a0_0x525fe8;try{const _0x1f4729=this['_getAttachmentInfo']();(await client[_0x56e78e(0x17f)]({'mutation':a0_0x29a7b3`
54
54
  mutation ($attachment: NewAttachment!) {
55
55
  createAttachment(attachment: $attachment) {
56
56
  id
@@ -58,4 +58,4 @@ const a0_0x58449d=a0_0x1152;(function(_0x2ac567,_0x457466){const _0x205cd3=a0_0x
58
58
  path
59
59
  }
60
60
  }
61
- `,'variables':{'attachment':_0x3ec8b0},'context':{...gqlContext(),'hasUpload':!0x0}}))[_0x481ee1(0xd1)]||(history[_0x481ee1(0xf2)](),this[_0x481ee1(0xd2)](new CustomEvent(_0x481ee1(0xc8),{'bubbles':!0x0,'composed':!0x0,'cancelable':!0x0})));}catch(_0x3cdf21){MetaApi[_0x481ee1(0xec)](_0x481ee1(0xda),_0x3cdf21[_0x481ee1(0xd0)],_0x481ee1(0xcb),'confirm');}}[a0_0x58449d(0xe5)](){const _0x1a83fb=a0_0x58449d;if(this['renderRoot']['querySelector'](_0x1a83fb(0xdc))[_0x1a83fb(0xee)]())return{'file':this[_0x1a83fb(0xeb)]['files'][0x0],'category':this[_0x1a83fb(0xe6)](_0x1a83fb(0xf0))[_0x1a83fb(0xc5)],'description':this[_0x1a83fb(0xe6)](_0x1a83fb(0xe2))[_0x1a83fb(0xc5)]};throw new Error(TermsUtil['tText']('text.attachment_info_not_valid'));}[a0_0x58449d(0xe6)](_0x53f170){const _0x19ed3b=a0_0x58449d;return this[_0x19ed3b(0xe9)][_0x19ed3b(0xed)](_0x19ed3b(0xef)+_0x53f170+_0x19ed3b(0xd3)+_0x53f170+']');}}window[a0_0x58449d(0xe3)][a0_0x58449d(0xcc)](a0_0x58449d(0xe7),FileUploadPopup);function a0_0x1c13(){const _0x3ba7f9=['define','_createAttachment','1780bsgLwm','connectedCallback','message','errors','dispatchEvent','],\x20input[name=','styles','mutate','templateTypes','tLabel','TEMPLATE_TYPES','4182355BdGGTn','label.error','file_upload','form','map','#uploadTemplate','create','tButton','5433974eYBVbu','description','customElements','50104eJDyBt','_getAttachmentInfo','_getInputByName','file-upload-popup','render','renderRoot','properties','_template','showAlertPopup','querySelector','checkValidity','select[name=','category','7623JcPrYO','back','1544TxIMTr','213AzOPYN','250BbPOhS','6JJqsMm','value','45621dkHPYB','16907040BqMnQZ','template-uploaded','please_select_upload_category','12370lilJFN','error'];a0_0x1c13=function(){return _0x3ba7f9;};return a0_0x1c13();}
61
+ `,'variables':{'attachment':_0x1f4729},'context':{...gqlContext(),'hasUpload':!0x0}}))[_0x56e78e(0x177)]||(history[_0x56e78e(0x172)](),this[_0x56e78e(0x158)](new CustomEvent(_0x56e78e(0x160),{'bubbles':!0x0,'composed':!0x0,'cancelable':!0x0})));}catch(_0x348785){MetaApi[_0x56e78e(0x185)](_0x56e78e(0x17c),_0x348785[_0x56e78e(0x178)],_0x56e78e(0x16e),_0x56e78e(0x161));}}[a0_0x525fe8(0x163)](){const _0x4f8bd1=a0_0x525fe8;if(this['renderRoot'][_0x4f8bd1(0x15a)]('form')[_0x4f8bd1(0x15f)]())return{'file':this[_0x4f8bd1(0x184)][_0x4f8bd1(0x16f)][0x0],'category':this[_0x4f8bd1(0x164)](_0x4f8bd1(0x17b))['value'],'description':this[_0x4f8bd1(0x164)](_0x4f8bd1(0x15b))['value']};throw new Error(TermsUtil['tText']('text.attachment_info_not_valid'));}[a0_0x525fe8(0x164)](_0x4a0e47){const _0x579605=a0_0x525fe8;return this[_0x579605(0x169)][_0x579605(0x15a)](_0x579605(0x17a)+_0x4a0e47+_0x579605(0x15e)+_0x4a0e47+']');}}window[a0_0x525fe8(0x16b)][a0_0x525fe8(0x180)](a0_0x525fe8(0x171),FileUploadPopup);
@@ -1,4 +1,4 @@
1
- const a0_0x727778=a0_0x345b;(function(_0x5d5e54,_0x508bec){const _0x3663ad=a0_0x345b,_0x901479=_0x5d5e54();while(!![]){try{const _0x5a930b=-parseInt(_0x3663ad(0x22a))/0x1*(-parseInt(_0x3663ad(0x21a))/0x2)+parseInt(_0x3663ad(0x223))/0x3*(parseInt(_0x3663ad(0x211))/0x4)+-parseInt(_0x3663ad(0x22c))/0x5*(-parseInt(_0x3663ad(0x202))/0x6)+parseInt(_0x3663ad(0x1eb))/0x7+parseInt(_0x3663ad(0x1f1))/0x8+-parseInt(_0x3663ad(0x1ef))/0x9+-parseInt(_0x3663ad(0x238))/0xa*(parseInt(_0x3663ad(0x225))/0xb);if(_0x5a930b===_0x508bec)break;else _0x901479['push'](_0x901479['shift']());}catch(_0x1cf818){_0x901479['push'](_0x901479['shift']());}}}(a0_0x763e,0xd5d84));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';function a0_0x763e(){const _0x275a8=['options','appendable','10785432bVAYqL','nameField','filter','forEach','12840750DqIuQo','firstUpdated','7470024LRWLRr','styles','GRID','menu','selectRecord','string','getGristColumnConfig2','searchByPagination','clickCancel','after_set_fields','clickEmpty','align','render','left','values','meta-object-selector-popup','NOTHING_SELECTED','10061592DBAqUF','menu_template','getGristMetaObjectOptions','search','push','handlers','codeField','showToast','filterFields','getGristPagination100Config','search_hidden_fields','keys','tButton','codes','meta-','177820RbxDUT','queryName','gridConfig','getCodeByScenario','grist','clickSelect','rows','isArray','querySelector','92446emcWhG','empty','tText','gql','type','basicArgs','select-row-toggle','#ox-grist','confirmCallback','3nIRnQm','sorters','25401915SGHbhW','record','filters','dispField','select','9RWZfBI','getGristSelectableConfig','5FhdJuE','shadowRoot','meta-object-selector','define','getParams','code','hidden','scenario','name','bind','fetchHandler','meta-code-selector','10CLJLlm','connectedCallback','object','length','selected','entity','getCodeByEntity','resource-object','includes'];a0_0x763e=function(){return _0x275a8;};return a0_0x763e();}import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';function a0_0x345b(_0x277697,_0x25ccbb){const _0x763e14=a0_0x763e();return a0_0x345b=function(_0x345be4,_0x48fc70){_0x345be4=_0x345be4-0x1e5;let _0x2536e3=_0x763e14[_0x345be4];return _0x2536e3;},a0_0x345b(_0x277697,_0x25ccbb);}export class MetaObjectSelectorPopup extends LitElement{static [a0_0x727778(0x1f2)]=[CommonGristStyles,ButtonContainerStyles,css`
1
+ const a0_0x482a6f=a0_0x61aa;(function(_0x21141a,_0x41f7c8){const _0x14560a=a0_0x61aa,_0x4030fc=_0x21141a();while(!![]){try{const _0x1c5884=parseInt(_0x14560a(0x13c))/0x1*(parseInt(_0x14560a(0x14e))/0x2)+parseInt(_0x14560a(0x15c))/0x3*(-parseInt(_0x14560a(0x13e))/0x4)+parseInt(_0x14560a(0x139))/0x5*(parseInt(_0x14560a(0x15e))/0x6)+-parseInt(_0x14560a(0x179))/0x7*(parseInt(_0x14560a(0x155))/0x8)+parseInt(_0x14560a(0x163))/0x9+-parseInt(_0x14560a(0x12e))/0xa+parseInt(_0x14560a(0x14d))/0xb*(parseInt(_0x14560a(0x12d))/0xc);if(_0x1c5884===_0x41f7c8)break;else _0x4030fc['push'](_0x4030fc['shift']());}catch(_0x35a101){_0x4030fc['push'](_0x4030fc['shift']());}}}(a0_0x4069,0x3eb04));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';function a0_0x4069(){const _0x4670a8=['getGristMetaObjectOptions','resource-code-selector','clickCancel','info','2666466tsbTEl','styles','search','rows','queryName','push','filter','forEach','includes','appendable','bind','record','handlers','connectedCallback','dispField','searchByPagination','tButton','getCodeByEntity','showToast','#ox-grist','type','GRID','113197XwTDFH','meta-object-selector-popup','render','grist','query','querySelector','meta-object-selector','object','search_hidden_fields','codeField','entity','sorters','after_set_fields','clickEmpty','276Syvopa','4302540DRKvBD','NOTHING_SELECTED','getSelectColumns','keys','startsWith','columns','left','isArray','tText','gql','gridConfig','5AkiBnH','align','args','2417YgPBvT','getCodeSelectorData','4PqsRrV','shadowRoot','menu_template','string','filters','values','confirmCallback','select','empty','getGristPagination100Config','hidden','options','basicArgs','length','define','41261wDqlOk','254HcctVE','getGristColumnConfig2','scenario','LIST','getParams','fetchHandler','selectRecord','72ZmiSXY','cancel','clickSelect','filterFields','nameField','getGristGuttersConfig','meta-code-selector','13263rhgWrd','name','884880aofATF'];a0_0x4069=function(){return _0x4670a8;};return a0_0x4069();}import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';function a0_0x61aa(_0x39c41d,_0x5dd4f1){const _0x406909=a0_0x4069();return a0_0x61aa=function(_0x61aa2e,_0x56971a){_0x61aa2e=_0x61aa2e-0x129;let _0x41c83a=_0x406909[_0x61aa2e];return _0x41c83a;},a0_0x61aa(_0x39c41d,_0x5dd4f1);}export class MetaObjectSelectorPopup extends LitElement{static [a0_0x482a6f(0x164)]=[CommonGristStyles,ButtonContainerStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -17,9 +17,9 @@ const a0_0x727778=a0_0x345b;(function(_0x5d5e54,_0x508bec){const _0x3663ad=a0_0x
17
17
  display: flex;
18
18
  margin-left: auto;
19
19
  }
20
- `];async[a0_0x727778(0x239)](){const _0x4ecd5d=a0_0x727778;this[_0x4ecd5d(0x20c)]=this[_0x4ecd5d(0x1e9)][_0x4ecd5d(0x227)]?this[_0x4ecd5d(0x1e9)][_0x4ecd5d(0x227)]:this[_0x4ecd5d(0x21f)]&&this['basicArgs']['filters']?this['basicArgs'][_0x4ecd5d(0x227)]:[];let _0x32d0ef=this[_0x4ecd5d(0x1e9)][_0x4ecd5d(0x224)]?this[_0x4ecd5d(0x1e9)]['sorters']:this[_0x4ecd5d(0x21f)]&&this[_0x4ecd5d(0x21f)][_0x4ecd5d(0x224)]?this[_0x4ecd5d(0x21f)][_0x4ecd5d(0x224)]:[],_0x291d90=this[_0x4ecd5d(0x1e9)][_0x4ecd5d(0x20a)]?this[_0x4ecd5d(0x1e9)][_0x4ecd5d(0x20a)]:this['options']['menu_template']?.['search']&&this[_0x4ecd5d(0x1e9)][_0x4ecd5d(0x203)]?.['search'][_0x4ecd5d(0x23b)]>0x0?this['options'][_0x4ecd5d(0x203)][_0x4ecd5d(0x205)]:[],_0x39fda3=this[_0x4ecd5d(0x1e9)]['select'];if(!_0x291d90||0x0==_0x291d90['length']){let _0x3b809f;this[_0x4ecd5d(0x1e9)][_0x4ecd5d(0x208)]&&(_0x3b809f=this[_0x4ecd5d(0x1e9)][_0x4ecd5d(0x208)]),this[_0x4ecd5d(0x1e9)][_0x4ecd5d(0x1ec)]&&(_0x3b809f=this[_0x4ecd5d(0x1e9)]['nameField']),_0x3b809f&&_0x291d90['push']({'name':_0x3b809f,'operator':'eq'});}let _0x304ae9=[...MetaApi['getGristGuttersConfig'](!0x0,!0x1)];if(_0x39fda3&&_0x39fda3[_0x4ecd5d(0x23b)]>0x0)for(let _0x21b5de=0x0;_0x21b5de<_0x39fda3[_0x4ecd5d(0x23b)];_0x21b5de++){let {type:_0x3140d8=_0x4ecd5d(0x1f6),name:_0x179215,hidden:_0x4d07f6=!0x1,record:_0x22010d={'align':_0x4ecd5d(0x1fe)},header:_0x376159,sortable:_0x4dd0d7=!0x1,width:_0x4efd56=0x87,options:_0x851272,select_opt:_0x36a575,object_opt:_0x2ce451}=_0x39fda3[_0x21b5de];if(_0x36a575&&(_0x851272=_0x36a575),_0x2ce451&&(_0x851272=_0x2ce451),[_0x4ecd5d(0x1e7),_0x4ecd5d(0x23a)][_0x4ecd5d(0x1e8)](_0x3140d8)?_0x3140d8=_0x4ecd5d(0x22e):['resource-code-selector'][_0x4ecd5d(0x1e8)](_0x3140d8)&&(_0x3140d8=_0x4ecd5d(0x237)),'id'==_0x179215)_0x304ae9[_0x4ecd5d(0x206)]({'type':'string','name':_0x179215,'hidden':!0x0});else{let _0x4c62fd=MetaApi[_0x4ecd5d(0x1f7)](_0x3140d8,_0x179215,_0x376159||_0x179215,_0x22010d[_0x4ecd5d(0x1fc)]?_0x22010d[_0x4ecd5d(0x1fc)]:'left',!0x1,_0x4dd0d7,_0x4efd56);_0x3140d8['startsWith'](_0x4ecd5d(0x210))&&_0x2ce451&&_0x2ce451[_0x4ecd5d(0x1f4)]&&(_0x851272=await MetaUiUtil[_0x4ecd5d(0x204)](_0x3140d8,_0x851272)),_0x4ecd5d(0x229)===_0x3140d8?Array[_0x4ecd5d(0x218)](_0x851272)?_0x4c62fd[_0x4ecd5d(0x226)][_0x4ecd5d(0x1e9)]=_0x851272:_0x4ecd5d(0x231)===_0x851272[_0x4ecd5d(0x21e)]?_0x4c62fd['record'][_0x4ecd5d(0x1e9)]=await ServiceUtil['getCodeSelectorData'](_0x851272['values']?_0x851272[_0x4ecd5d(0x1ff)]:_0x851272[_0x4ecd5d(0x234)]):_0x4ecd5d(0x233)===_0x851272[_0x4ecd5d(0x21e)]?_0x4c62fd[_0x4ecd5d(0x226)][_0x4ecd5d(0x1e9)]=await ServiceUtil[_0x4ecd5d(0x214)](_0x851272['name'],_0x851272['args']):_0x4ecd5d(0x1e5)===_0x851272[_0x4ecd5d(0x21e)]&&(_0x4c62fd[_0x4ecd5d(0x226)][_0x4ecd5d(0x1e9)]=await ServiceUtil[_0x4ecd5d(0x1e6)](_0x851272['args'])):_0x4ecd5d(0x22e)===_0x3140d8?_0x4c62fd[_0x4ecd5d(0x226)][_0x4ecd5d(0x1e9)]={..._0x851272}:_0x4ecd5d(0x237)==_0x3140d8&&(_0x851272[_0x4ecd5d(0x228)]&&(_0x851272[_0x4ecd5d(0x20f)]=await ServiceUtil[_0x4ecd5d(0x1e6)](_0x851272)),_0x4c62fd['record']['options']={..._0x851272}),_0x4c62fd[_0x4ecd5d(0x232)]=_0x4d07f6,_0x304ae9[_0x4ecd5d(0x206)](_0x4c62fd);}}else _0x304ae9[_0x4ecd5d(0x206)](MetaApi[_0x4ecd5d(0x1f7)](_0x4ecd5d(0x1f6),this['options'][_0x4ecd5d(0x208)],this['options'][_0x4ecd5d(0x208)],_0x4ecd5d(0x1fe),!0x1,!0x0,0xb4)),this[_0x4ecd5d(0x1e9)][_0x4ecd5d(0x228)]&&_0x304ae9[_0x4ecd5d(0x206)](MetaApi['getGristColumnConfig2'](_0x4ecd5d(0x1f6),this[_0x4ecd5d(0x1e9)][_0x4ecd5d(0x228)],this[_0x4ecd5d(0x1e9)]['dispField'],_0x4ecd5d(0x1fe),!0x1,!0x0,0x12c));_0x304ae9[_0x4ecd5d(0x1ee)](_0x46fb41=>{const _0x402f47=_0x4ecd5d;let _0x40020f=_0x291d90['filter'](_0x3e61b3=>_0x402f47(0x1f6)==typeof _0x3e61b3?_0x46fb41[_0x402f47(0x234)]==_0x3e61b3:_0x46fb41[_0x402f47(0x234)]==_0x3e61b3[_0x402f47(0x234)]);_0x40020f&&_0x40020f[_0x402f47(0x23b)]>0x0&&(_0x46fb41[_0x402f47(0x1ed)]='string'==typeof _0x40020f[0x0]?_0x402f47(0x205):_0x40020f[0x0]);});let _0x576fad={'rows':MetaApi[_0x4ecd5d(0x22b)](!0x1),'pagination':MetaApi[_0x4ecd5d(0x20b)](),'columns':_0x304ae9,'sorters':[..._0x32d0ef]};_0x576fad['rows'][_0x4ecd5d(0x207)]={'click':_0x4ecd5d(0x220),'dblclick':(_0x55b979,_0x57403c,_0x290380,_0x37e7b9,_0x35a910,_0x13db98)=>{this['selectRecord'](_0x37e7b9);}},_0x576fad[_0x4ecd5d(0x217)][_0x4ecd5d(0x1ea)]=!0x1,this['gridConfig']=_0x576fad,await super[_0x4ecd5d(0x239)]();}async[a0_0x727778(0x1f0)](){const _0x26e70d=a0_0x727778;await super[_0x26e70d(0x1f0)]();}[a0_0x727778(0x1fd)](){const _0x2e5888=a0_0x727778;return html`
21
- <ox-grist id="ox-grist" .config=${this['gridConfig']} .mode=${isMobileDevice()?'LIST':_0x2e5888(0x1f3)} auto-fetch
22
- .fetchHandler=${this[_0x2e5888(0x236)]['bind'](this)}>
20
+ `];async['connectedCallback'](){const _0xc11901=a0_0x482a6f;this[_0xc11901(0x181)]=this[_0xc11901(0x149)][_0xc11901(0x142)]?this[_0xc11901(0x149)][_0xc11901(0x142)]:this[_0xc11901(0x14a)]&&this[_0xc11901(0x14a)][_0xc11901(0x142)]?this[_0xc11901(0x14a)][_0xc11901(0x142)]:[];let _0x108cc5=this[_0xc11901(0x149)][_0xc11901(0x12a)]?this[_0xc11901(0x149)]['sorters']:this[_0xc11901(0x14a)]&&this['basicArgs']['sorters']?this[_0xc11901(0x14a)][_0xc11901(0x12a)]:[],_0x4a4250=this[_0xc11901(0x149)][_0xc11901(0x158)]?this[_0xc11901(0x149)]['filterFields']:this[_0xc11901(0x149)][_0xc11901(0x140)]?.[_0xc11901(0x165)]&&this['options']['menu_template']?.[_0xc11901(0x165)][_0xc11901(0x14b)]>0x0?this[_0xc11901(0x149)][_0xc11901(0x140)][_0xc11901(0x165)]:[],_0xed435b=this['options']['select'];if(!_0x4a4250||0x0==_0x4a4250[_0xc11901(0x14b)]){let _0x8981ae;this[_0xc11901(0x149)][_0xc11901(0x182)]&&(_0x8981ae=this['options'][_0xc11901(0x182)]),this[_0xc11901(0x149)][_0xc11901(0x159)]&&(_0x8981ae=this[_0xc11901(0x149)]['nameField']),_0x8981ae&&_0x4a4250[_0xc11901(0x168)]({'name':_0x8981ae,'operator':'eq'});}let _0x1463af=[...MetaApi[_0xc11901(0x15a)](!0x0,!0x1)];if(_0xed435b&&_0xed435b['length']>0x0)for(let _0x54754a=0x0;_0x54754a<_0xed435b['length'];_0x54754a++){let {type:_0x4c8346=_0xc11901(0x141),name:_0x312d2b,hidden:_0x36f511=!0x1,record:_0x3087f1={'align':_0xc11901(0x134)},header:_0x3dc260,sortable:_0x51052f=!0x1,width:_0x5e1fc8=0x87,options:_0x3a35ed,select_opt:_0x23e499,object_opt:_0x28f425}=_0xed435b[_0x54754a];if(_0x23e499&&(_0x3a35ed=_0x23e499),_0x28f425&&(_0x3a35ed=_0x28f425),['resource-object',_0xc11901(0x180)][_0xc11901(0x16b)](_0x4c8346)?_0x4c8346=_0xc11901(0x17f):[_0xc11901(0x160)]['includes'](_0x4c8346)&&(_0x4c8346=_0xc11901(0x15b)),'id'==_0x312d2b)_0x1463af['push']({'type':_0xc11901(0x141),'name':_0x312d2b,'hidden':!0x0});else{let _0x2ae799=MetaApi[_0xc11901(0x14f)](_0x4c8346,_0x312d2b,_0x3dc260||_0x312d2b,_0x3087f1[_0xc11901(0x13a)]?_0x3087f1[_0xc11901(0x13a)]:'left',!0x1,_0x51052f,_0x5e1fc8);_0x4c8346[_0xc11901(0x132)]('meta-')&&_0x28f425&&_0x28f425['menu']&&(_0x3a35ed=await MetaUiUtil[_0xc11901(0x15f)](_0x4c8346,_0x3a35ed)),_0xc11901(0x145)===_0x4c8346?Array[_0xc11901(0x135)](_0x3a35ed)?_0x2ae799['record'][_0xc11901(0x149)]=_0x3a35ed:'code'===_0x3a35ed[_0xc11901(0x177)]?_0x2ae799[_0xc11901(0x16e)][_0xc11901(0x149)]=await ServiceUtil[_0xc11901(0x13d)](_0x3a35ed[_0xc11901(0x143)]?_0x3a35ed[_0xc11901(0x143)]:_0x3a35ed['name']):_0xc11901(0x150)===_0x3a35ed[_0xc11901(0x177)]?_0x2ae799[_0xc11901(0x16e)][_0xc11901(0x149)]=await ServiceUtil['getCodeByScenario'](_0x3a35ed[_0xc11901(0x15d)],_0x3a35ed[_0xc11901(0x13b)]):_0xc11901(0x129)===_0x3a35ed['type']&&(_0x2ae799['record']['options']=await ServiceUtil[_0xc11901(0x174)](_0x3a35ed[_0xc11901(0x13b)])):'meta-object-selector'===_0x4c8346?_0x2ae799[_0xc11901(0x16e)]['options']={..._0x3a35ed}:_0xc11901(0x15b)==_0x4c8346&&(_0x3a35ed[_0xc11901(0x171)]&&(_0x3a35ed['codes']=await ServiceUtil[_0xc11901(0x174)](_0x3a35ed)),_0x2ae799[_0xc11901(0x16e)]['options']={..._0x3a35ed}),_0x2ae799[_0xc11901(0x148)]=_0x36f511,_0x1463af['push'](_0x2ae799);}}else _0x1463af['push'](MetaApi['getGristColumnConfig2'](_0xc11901(0x141),this[_0xc11901(0x149)][_0xc11901(0x182)],this[_0xc11901(0x149)]['codeField'],_0xc11901(0x134),!0x1,!0x0,0xb4)),this[_0xc11901(0x149)][_0xc11901(0x171)]&&_0x1463af[_0xc11901(0x168)](MetaApi[_0xc11901(0x14f)](_0xc11901(0x141),this['options'][_0xc11901(0x171)],this['options'][_0xc11901(0x171)],_0xc11901(0x134),!0x1,!0x0,0x12c));_0x1463af[_0xc11901(0x16a)](_0x1b2291=>{const _0x2dd886=_0xc11901;let _0x5e0ec2=_0x4a4250['filter'](_0x3217df=>_0x2dd886(0x141)==typeof _0x3217df?_0x1b2291[_0x2dd886(0x15d)]==_0x3217df:_0x1b2291[_0x2dd886(0x15d)]==_0x3217df[_0x2dd886(0x15d)]);_0x5e0ec2&&_0x5e0ec2[_0x2dd886(0x14b)]>0x0&&(_0x1b2291[_0x2dd886(0x169)]=_0x2dd886(0x141)==typeof _0x5e0ec2[0x0]?'search':_0x5e0ec2[0x0]);});let _0x5f0f62={'rows':MetaApi['getGristSelectableConfig'](!0x1),'pagination':MetaApi[_0xc11901(0x147)](),'columns':_0x1463af,'sorters':[..._0x108cc5]};_0x5f0f62[_0xc11901(0x166)][_0xc11901(0x16f)]={'click':'select-row-toggle','dblclick':(_0x19fcf,_0x531044,_0x1400ac,_0x50d235,_0x5ea1b2,_0x2e5443)=>{const _0x54b591=_0xc11901;this[_0x54b591(0x154)](_0x50d235);}},_0x5f0f62[_0xc11901(0x166)][_0xc11901(0x16c)]=!0x1,this[_0xc11901(0x138)]=_0x5f0f62,await super[_0xc11901(0x170)]();}async['firstUpdated'](){await super['firstUpdated']();}[a0_0x482a6f(0x17b)](){const _0x58d632=a0_0x482a6f;return html`
21
+ <ox-grist id="ox-grist" .config=${this[_0x58d632(0x138)]} .mode=${isMobileDevice()?_0x58d632(0x151):_0x58d632(0x178)} auto-fetch
22
+ .fetchHandler=${this['fetchHandler']['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_0x727778=a0_0x345b;(function(_0x5d5e54,_0x508bec){const _0x3663ad=a0_0x
27
27
  </div>
28
28
  </ox-grist>
29
29
  <div id="button-container" class="button-container">
30
- <mwc-button raised label="${TermsUtil[_0x2e5888(0x20e)](_0x2e5888(0x21b))}" style="margin-left:7px;margin-top:7px;"
31
- @click=${this[_0x2e5888(0x1fb)]['bind'](this)}>
30
+ <mwc-button raised label="${TermsUtil[_0x58d632(0x173)](_0x58d632(0x146))}" style="margin-left:7px;margin-top:7px;"
31
+ @click=${this[_0x58d632(0x12c)]['bind'](this)}>
32
32
  </mwc-button>
33
- <mwc-button raised label="${TermsUtil[_0x2e5888(0x20e)]('cancel')}" style="margin-left:7px;margin-top:7px;"
34
- @click=${this[_0x2e5888(0x1f9)]['bind'](this)}>
33
+ <mwc-button raised label="${TermsUtil['tButton'](_0x58d632(0x156))}" style="margin-left:7px;margin-top:7px;"
34
+ @click=${this[_0x58d632(0x161)][_0x58d632(0x16d)](this)}>
35
35
  </mwc-button>
36
- <mwc-button raised label="${TermsUtil[_0x2e5888(0x20e)](_0x2e5888(0x229))}" style="margin-left:7px;margin-top:7px;"
37
- @click=${this[_0x2e5888(0x216)][_0x2e5888(0x235)](this)}>
36
+ <mwc-button raised label="${TermsUtil[_0x58d632(0x173)](_0x58d632(0x145))}" style="margin-left:7px;margin-top:7px;"
37
+ @click=${this['clickSelect']['bind'](this)}>
38
38
  </mwc-button>
39
39
  </div>
40
- `;}get[a0_0x727778(0x215)](){const _0x6c10ba=a0_0x727778;return this[_0x6c10ba(0x22d)][_0x6c10ba(0x219)](_0x6c10ba(0x221));}async[a0_0x727778(0x236)]({page:_0x5cbbe8=0x0,limit:_0x26c33e=0x0,sorters:_0x217ec1=[],filters:_0x20fd55=[]}){const _0x5c86b3=a0_0x727778;let _0x36136b=[...this[_0x5c86b3(0x20c)]];_0x20fd55[_0x5c86b3(0x1ee)](_0x8d64c9=>{const _0xe9f412=_0x5c86b3;let _0x471815=_0x36136b['filter'](_0x3bea7b=>_0x8d64c9[_0xe9f412(0x234)]==_0x3bea7b[_0xe9f412(0x234)]);_0x471815&&_0x471815[_0xe9f412(0x23b)]>0x0&&delete _0x36136b[_0x8d64c9['name']],_0x36136b[_0xe9f412(0x206)](_0x8d64c9);});let _0x5d4bbd=ValueUtil[_0x5c86b3(0x230)](this['options'][_0x5c86b3(0x203)]&&this[_0x5c86b3(0x1e9)][_0x5c86b3(0x203)][_0x5c86b3(0x21d)]||{},'query',_0x5c86b3(0x1fa)),_0x3480c4=Object[_0x5c86b3(0x20d)](_0x5d4bbd||{}),_0x53a7af=MetaApi['getSelectColumns'](this[_0x5c86b3(0x213)]['columns'][_0x5c86b3(0x1ed)](_0x2d9e39=>!_0x3480c4[_0x5c86b3(0x1e8)](_0x2d9e39['name'])));return await MetaApi[_0x5c86b3(0x1f8)](this['options'][_0x5c86b3(0x212)],_0x36136b,_0x217ec1,_0x5cbbe8,_0x26c33e,_0x53a7af);}async['clickEmpty'](_0x326423){const _0x176efd=a0_0x727778;this['confirmCallback']&&this[_0x176efd(0x222)](null),closePopup(this);}async[a0_0x727778(0x1f9)](_0x24aaed){closePopup(this);}async[a0_0x727778(0x216)](_0x29aedc){const _0x5928bf=a0_0x727778;let _0x4b7549=this['grist'][_0x5928bf(0x23c)];_0x4b7549&&0x0!=_0x4b7549[_0x5928bf(0x23b)]?this[_0x5928bf(0x1f5)](_0x4b7549[0x0]):MetaApi[_0x5928bf(0x209)]('info',TermsUtil[_0x5928bf(0x21c)](_0x5928bf(0x201)));}async[a0_0x727778(0x1f5)](_0x2516e6){const _0x272e47=a0_0x727778;this['confirmCallback']&&this[_0x272e47(0x222)](_0x2516e6),closePopup(this);}}customElements[a0_0x727778(0x22f)](a0_0x727778(0x200),MetaObjectSelectorPopup);
40
+ `;}get[a0_0x482a6f(0x17c)](){const _0x2d1755=a0_0x482a6f;return this[_0x2d1755(0x13f)][_0x2d1755(0x17e)](_0x2d1755(0x176));}async[a0_0x482a6f(0x153)]({page:_0x34dac5=0x0,limit:_0x3098aa=0x0,sorters:_0x415c55=[],filters:_0x29b3b=[]}){const _0x2e7c9b=a0_0x482a6f;let _0x3223af=[...this[_0x2e7c9b(0x181)]];_0x29b3b[_0x2e7c9b(0x16a)](_0x39a940=>{const _0x411ad5=_0x2e7c9b;let _0x4902a1=_0x3223af['filter'](_0x12d28a=>_0x39a940['name']==_0x12d28a[_0x411ad5(0x15d)]);_0x4902a1&&_0x4902a1[_0x411ad5(0x14b)]>0x0&&delete _0x3223af[_0x39a940[_0x411ad5(0x15d)]],_0x3223af[_0x411ad5(0x168)](_0x39a940);});let _0xf84fee=ValueUtil[_0x2e7c9b(0x152)](this[_0x2e7c9b(0x149)][_0x2e7c9b(0x140)]&&this[_0x2e7c9b(0x149)][_0x2e7c9b(0x140)][_0x2e7c9b(0x137)]||{},_0x2e7c9b(0x17d),_0x2e7c9b(0x12b)),_0x582249=Object[_0x2e7c9b(0x131)](_0xf84fee||{}),_0x380e27=MetaApi[_0x2e7c9b(0x130)](this[_0x2e7c9b(0x138)][_0x2e7c9b(0x133)][_0x2e7c9b(0x169)](_0x16e2e6=>!_0x582249[_0x2e7c9b(0x16b)](_0x16e2e6[_0x2e7c9b(0x15d)])));return await MetaApi[_0x2e7c9b(0x172)](this[_0x2e7c9b(0x149)][_0x2e7c9b(0x167)],_0x3223af,_0x415c55,_0x34dac5,_0x3098aa,_0x380e27);}async[a0_0x482a6f(0x12c)](_0x277cd2){const _0x596b47=a0_0x482a6f;this[_0x596b47(0x144)]&&this[_0x596b47(0x144)](null),closePopup(this);}async[a0_0x482a6f(0x161)](_0x1e2688){closePopup(this);}async[a0_0x482a6f(0x157)](_0x595893){const _0x566d03=a0_0x482a6f;let _0x47e341=this[_0x566d03(0x17c)]['selected'];_0x47e341&&0x0!=_0x47e341[_0x566d03(0x14b)]?this[_0x566d03(0x154)](_0x47e341[0x0]):MetaApi[_0x566d03(0x175)](_0x566d03(0x162),TermsUtil[_0x566d03(0x136)](_0x566d03(0x12f)));}async[a0_0x482a6f(0x154)](_0x32f47b){const _0x6f93e8=a0_0x482a6f;this[_0x6f93e8(0x144)]&&this[_0x6f93e8(0x144)](_0x32f47b),closePopup(this);}}customElements[a0_0x482a6f(0x14c)](a0_0x482a6f(0x17a),MetaObjectSelectorPopup);
package/client/index.js CHANGED
@@ -1,8 +1,6 @@
1
1
  import './viewparts/dynamic-menu-part'
2
2
  import './viewparts/dynamic-top-menu-bar'
3
3
 
4
- import './pages/button-role/config-button-roles'
5
-
6
4
  export * from './actions/main'
7
5
 
8
6
  /** Utilities **/
@@ -1 +1 @@
1
- const a0_0x3b8753=a0_0x12bb;function a0_0x12bb(_0x13a4a3,_0x217810){const _0x458960=a0_0x4589();return a0_0x12bb=function(_0x12bb8d,_0x4ee91b){_0x12bb8d=_0x12bb8d-0x143;let _0x1e899a=_0x458960[_0x12bb8d];return _0x1e899a;},a0_0x12bb(_0x13a4a3,_0x217810);}(function(_0x2c11a4,_0x5170cc){const _0x5cccb2=a0_0x12bb,_0x282446=_0x2c11a4();while(!![]){try{const _0x458bdd=parseInt(_0x5cccb2(0x14d))/0x1+parseInt(_0x5cccb2(0x167))/0x2*(parseInt(_0x5cccb2(0x182))/0x3)+parseInt(_0x5cccb2(0x184))/0x4+parseInt(_0x5cccb2(0x15f))/0x5*(parseInt(_0x5cccb2(0x166))/0x6)+-parseInt(_0x5cccb2(0x178))/0x7*(-parseInt(_0x5cccb2(0x143))/0x8)+parseInt(_0x5cccb2(0x16a))/0x9*(-parseInt(_0x5cccb2(0x17c))/0xa)+-parseInt(_0x5cccb2(0x156))/0xb;if(_0x458bdd===_0x5170cc)break;else _0x282446['push'](_0x282446['shift']());}catch(_0x391365){_0x282446['push'](_0x282446['shift']());}}}(a0_0x4589,0xbf165));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';function a0_0x4589(){const _0x30d845=['parseBasicServiceConfigs','isNotEmpty','setParentId','openDynamicPopup','runScenario','dispatchEvent','after','menu','parseBasicGridConfigs','14jfWrpw','getMenuMeta','isPopup','addEventListener','1970kLhUNB','name','is_popup','meta-form-','callScenario','fetch','4085589IlnMkS','detail','1973108egthNG','toLowerCase','4008456KHasML','parseBasicFormConfigs','pageUpdated','filterForm','params','startsWith','parent_id','parseBasicTabConfigs','keys','active','179144yjAlzD','etc','etcConfig','tTitle','properties','title_detail','is_detail','data-changed','result','37767774YTYipi','split','getParams','excuteOpenPopupButtonClick','connectedCallback','fetchHandler','body','isEmpty','includes','115JsDUjq','dataChangeEventHandler','parseBasicButtonConfigs','forEach','tagName','executeCallScenarioButtonClick','data','321888EzPokO','2ZhVwLV','lifecycle','isPage','2475USUZAw','grist','getAndParseMenuMeta','fieldChangeHandlers','isElement'];a0_0x4589=function(){return _0x30d845;};return a0_0x4589();}import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0xb61478=>class extends _0xb61478{static get[a0_0x3b8753(0x151)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x35f509=>Boolean(_0x35f509)},'is_popup':{'type':Boolean,'converter':_0x5ecc35=>Boolean(_0x5ecc35)},'is_activity':{'type':Boolean,'converter':_0x317cd5=>Boolean(_0x317cd5)},'is_readonly':{'type':Boolean,'converter':_0x5d8b9e=>Boolean(_0x5d8b9e)}};}get[a0_0x3b8753(0x16e)](){const _0x18a8c9=a0_0x3b8753;return!0x0===this[_0x18a8c9(0x153)]||!0x0===this[_0x18a8c9(0x17e)];}get['isDetail'](){const _0xef4b63=a0_0x3b8753;return!ValueUtil[_0xef4b63(0x15d)](this[_0xef4b63(0x153)])&&this[_0xef4b63(0x153)];}async['dataChangeEventHandler'](_0xe4197a){const _0x51421f=a0_0x3b8753;let {after:_0x22b465,before:_0x40e05c,column:_0x24d440,record:_0x3efb41,row:_0x4449f8}=_0xe4197a[_0x51421f(0x183)],_0x526b12=_0x24d440[_0x51421f(0x17d)];if(Object['keys'](this[_0x51421f(0x16d)]||{})[_0x51421f(0x15e)](_0x526b12)){let _0x1fa19d,_0x5587fa=(await MetaApi[_0x51421f(0x180)](void 0x0,this[_0x51421f(0x16d)][_0x526b12],{'columnName':_0x526b12,'column':_0x24d440,'record':_0x3efb41,'after':_0x22b465,'before':_0x40e05c,'row':_0x4449f8,'parentId':this['parent_id']?this['parent_id']:''},!0x1))[_0x51421f(0x165)][_0x51421f(0x173)]['result'][_0x51421f(0x155)];if(!_0x5587fa)return;_0x1fa19d=this[_0x51421f(0x16b)]?this[_0x51421f(0x16b)][_0x51421f(0x16b)][_0x51421f(0x15c)]:this,Object[_0x51421f(0x14b)](_0x5587fa)[_0x51421f(0x162)](_0x2cd5a4=>{const _0x45e084=_0x51421f;_0x1fa19d[_0x45e084(0x174)](new CustomEvent('field-change',{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x3efb41,'row':_0x4449f8,'after':_0x5587fa[_0x2cd5a4],'before':_0x3efb41[_0x2cd5a4],'column':{'name':_0x2cd5a4}}}));});}this[_0x51421f(0x174)](new CustomEvent(_0x51421f(0x154),{'bubbles':!0x0,'composed':!0x0,'detail':_0xe4197a[_0x51421f(0x183)]}));}async['connectedCallback'](){const _0x1b143d=a0_0x3b8753;super['connectedCallback']&&await super[_0x1b143d(0x15a)](),this[_0x1b143d(0x163)][_0x1b143d(0x185)]()[_0x1b143d(0x148)](_0x1b143d(0x17f))?this['addEventListener']('form-field-change',async _0x422169=>{const _0x22ca91=_0x1b143d;await this[_0x22ca91(0x160)](_0x422169);}):this[_0x1b143d(0x17b)]('field-change',async _0x5eed39=>{const _0x27f3aa=_0x1b143d;await this[_0x27f3aa(0x160)](_0x5eed39);});}async[a0_0x3b8753(0x145)](_0x4a19cd,_0x21cc3f,_0x568182){const _0x25cb2e=a0_0x3b8753;let _0x4f0feb=this['lifecycle']?.[_0x25cb2e(0x147)]?this[_0x25cb2e(0x168)][_0x25cb2e(0x147)]:{};this[_0x25cb2e(0x169)]&&this[_0x25cb2e(0x14c)]&&0x0==_0x568182['active']&&ValueUtil[_0x25cb2e(0x170)](_0x4f0feb)&&this[_0x25cb2e(0x181)]();}get[a0_0x3b8753(0x17a)](){const _0x1b4b7f=a0_0x3b8753;return!ValueUtil[_0x1b4b7f(0x15d)](this[_0x1b4b7f(0x17e)])&&this[_0x1b4b7f(0x17e)];}get['isPage'](){const _0x16c843=a0_0x3b8753;return!this['is_detail']&&!this[_0x16c843(0x17e)];}async[a0_0x3b8753(0x16c)](){const _0x32415f=a0_0x3b8753;let _0x426e13=await MetaApi[_0x32415f(0x179)](this);_0x426e13&&(this['menuInfo']=_0x426e13[_0x32415f(0x176)],this[_0x32415f(0x14f)]=_0x426e13[_0x32415f(0x14e)],this[_0x32415f(0x177)]&&this[_0x32415f(0x177)](_0x426e13),this['parseBasicServiceConfigs']&&this[_0x32415f(0x16f)](_0x426e13),this[_0x32415f(0x144)]&&this[_0x32415f(0x144)](_0x426e13),this[_0x32415f(0x14a)]&&this[_0x32415f(0x14a)](_0x426e13),this[_0x32415f(0x161)]&&this[_0x32415f(0x161)](_0x426e13));}async[a0_0x3b8753(0x181)](){const _0xa295e3=a0_0x3b8753;ValueUtil['isNotEmpty'](this[_0xa295e3(0x16b)])?this[_0xa295e3(0x16b)][_0xa295e3(0x181)]():(ValueUtil[_0xa295e3(0x170)](this[_0xa295e3(0x146)])||this[_0xa295e3(0x15b)])&&await this['fetchHandler']();}async[a0_0x3b8753(0x159)](_0x33ddd8,_0x4f35fb,_0x86ffaa){const _0x253a98=a0_0x3b8753;let _0x188458=TermsUtil[_0x253a98(0x150)](_0x33ddd8['title']);ValueUtil[_0x253a98(0x170)](_0x33ddd8[_0x253a98(0x152)])&&(_0x188458=_0x188458+'-'+ValueUtil[_0x253a98(0x158)](_0x4f35fb,..._0x33ddd8[_0x253a98(0x152)][_0x253a98(0x157)]('.'))),MetaApi[_0x253a98(0x172)](_0x188458,_0x33ddd8,_0x4f35fb,_0x86ffaa);}async[a0_0x3b8753(0x164)](_0x51ed33,_0x585c1f,_0x3a45ea){const _0x4b49ef=a0_0x3b8753;let _0xc3cec3=await MetaApi['callScenario'](_0x51ed33['name'],_0x51ed33[_0x4b49ef(0x17d)],_0x585c1f);!0x1!==_0xc3cec3&&!_0xc3cec3['errors']&&ValueUtil[_0x4b49ef(0x170)](_0x51ed33[_0x4b49ef(0x175)])&&_0x3a45ea();}[a0_0x3b8753(0x171)](_0x411432){const _0x54225c=a0_0x3b8753;this[_0x54225c(0x149)]=_0x411432,this[_0x54225c(0x181)]();}};
1
+ const a0_0x101b42=a0_0x30cb;(function(_0x520e4c,_0x58f984){const _0x4e5aba=a0_0x30cb,_0x1e28ae=_0x520e4c();while(!![]){try{const _0x3d5c72=-parseInt(_0x4e5aba(0x183))/0x1+-parseInt(_0x4e5aba(0x156))/0x2+parseInt(_0x4e5aba(0x189))/0x3*(parseInt(_0x4e5aba(0x184))/0x4)+parseInt(_0x4e5aba(0x154))/0x5*(-parseInt(_0x4e5aba(0x15c))/0x6)+parseInt(_0x4e5aba(0x188))/0x7+-parseInt(_0x4e5aba(0x16c))/0x8*(parseInt(_0x4e5aba(0x170))/0x9)+parseInt(_0x4e5aba(0x166))/0xa*(parseInt(_0x4e5aba(0x182))/0xb);if(_0x3d5c72===_0x58f984)break;else _0x1e28ae['push'](_0x1e28ae['shift']());}catch(_0x37595e){_0x1e28ae['push'](_0x1e28ae['shift']());}}}(a0_0x5498,0xec646));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';import{TermsUtil}from'./../utils/terms-util';function a0_0x30cb(_0x3d83b7,_0xa958bf){const _0x54985d=a0_0x5498();return a0_0x30cb=function(_0x30cb47,_0x5d58c5){_0x30cb47=_0x30cb47-0x152;let _0x24701c=_0x54985d[_0x30cb47];return _0x24701c;},a0_0x30cb(_0x3d83b7,_0xa958bf);}export const MetaBaseMixin=_0x3ba3cd=>class extends _0x3ba3cd{static get[a0_0x101b42(0x176)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x4a1223=>Boolean(_0x4a1223)},'is_popup':{'type':Boolean,'converter':_0x459f2e=>Boolean(_0x459f2e)},'is_activity':{'type':Boolean,'converter':_0x551100=>Boolean(_0x551100)},'is_readonly':{'type':Boolean,'converter':_0x5c84e2=>Boolean(_0x5c84e2)}};}get[a0_0x101b42(0x17e)](){const _0x138554=a0_0x101b42;return!0x0===this[_0x138554(0x15d)]||!0x0===this[_0x138554(0x152)];}get[a0_0x101b42(0x15b)](){const _0x389a29=a0_0x101b42;return!ValueUtil[_0x389a29(0x17a)](this[_0x389a29(0x15d)])&&this[_0x389a29(0x15d)];}async[a0_0x101b42(0x168)](_0x1f50cb){const _0x401ac3=a0_0x101b42;let {after:_0x2ae337,before:_0x41146e,column:_0x517230,record:_0x48c515,row:_0x1fd782}=_0x1f50cb[_0x401ac3(0x179)],_0x1088e9=_0x517230['name'];if(Object[_0x401ac3(0x163)](this[_0x401ac3(0x15a)]||{})[_0x401ac3(0x17c)](_0x1088e9)){let _0x69d19,_0x2fd2c7=(await MetaApi[_0x401ac3(0x162)](void 0x0,this[_0x401ac3(0x15a)][_0x1088e9],{'columnName':_0x1088e9,'column':_0x517230,'record':_0x48c515,'after':_0x2ae337,'before':_0x41146e,'row':_0x1fd782,'parentId':this[_0x401ac3(0x160)]?this['parent_id']:''},!0x1))[_0x401ac3(0x190)][_0x401ac3(0x153)][_0x401ac3(0x16e)][_0x401ac3(0x16e)];if(!_0x2fd2c7)return;_0x69d19=this[_0x401ac3(0x191)]?this[_0x401ac3(0x191)][_0x401ac3(0x191)][_0x401ac3(0x186)]:this,Object[_0x401ac3(0x163)](_0x2fd2c7)[_0x401ac3(0x175)](_0x38d5dd=>{const _0x2faf4c=_0x401ac3;_0x69d19[_0x2faf4c(0x17d)](new CustomEvent(_0x2faf4c(0x16a),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x48c515,'row':_0x1fd782,'after':_0x2fd2c7[_0x38d5dd],'before':_0x48c515[_0x38d5dd],'column':{'name':_0x38d5dd}}}));});}this[_0x401ac3(0x17d)](new CustomEvent(_0x401ac3(0x181),{'bubbles':!0x0,'composed':!0x0,'detail':_0x1f50cb[_0x401ac3(0x179)]}));}async[a0_0x101b42(0x185)](){const _0x428a17=a0_0x101b42;super[_0x428a17(0x185)]&&await super[_0x428a17(0x185)](),this['tagName']['toLowerCase']()[_0x428a17(0x18b)](_0x428a17(0x164))?this[_0x428a17(0x18d)](_0x428a17(0x180),async _0x390d75=>{const _0x1d29ec=_0x428a17;await this[_0x1d29ec(0x168)](_0x390d75);}):this['addEventListener'](_0x428a17(0x16a),async _0x4f9465=>{const _0x27f618=_0x428a17;await this[_0x27f618(0x168)](_0x4f9465);});}async[a0_0x101b42(0x16b)](_0x1f85ac,_0x5e0399,_0xd965ba){const _0x36788e=a0_0x101b42;let _0x575db4=this[_0x36788e(0x169)]?.[_0x36788e(0x173)]?this[_0x36788e(0x169)][_0x36788e(0x173)]:{};this[_0x36788e(0x167)]&&this[_0x36788e(0x18e)]&&0x0==_0xd965ba[_0x36788e(0x18e)]&&ValueUtil[_0x36788e(0x15e)](_0x575db4)&&this[_0x36788e(0x172)]();}get[a0_0x101b42(0x17f)](){const _0x55356c=a0_0x101b42;return!ValueUtil[_0x55356c(0x17a)](this[_0x55356c(0x152)])&&this[_0x55356c(0x152)];}get[a0_0x101b42(0x167)](){const _0x551df4=a0_0x101b42;return!this[_0x551df4(0x15d)]&&!this[_0x551df4(0x152)];}async['getAndParseMenuMeta'](){const _0x57a26e=a0_0x101b42;let _0x105ed5=await MetaApi[_0x57a26e(0x177)](this);_0x105ed5&&(this[_0x57a26e(0x16f)]=_0x105ed5['menu'],this[_0x57a26e(0x16d)]=_0x105ed5[_0x57a26e(0x187)],this[_0x57a26e(0x155)]&&this['parseBasicGridConfigs'](_0x105ed5),this[_0x57a26e(0x178)]&&this[_0x57a26e(0x178)](_0x105ed5),this[_0x57a26e(0x174)]&&this[_0x57a26e(0x174)](_0x105ed5),this[_0x57a26e(0x171)]&&this[_0x57a26e(0x171)](_0x105ed5),this['parseBasicButtonConfigs']&&this[_0x57a26e(0x15f)](_0x105ed5));}async[a0_0x101b42(0x172)](){const _0x5737de=a0_0x101b42;ValueUtil[_0x5737de(0x15e)](this[_0x5737de(0x191)])?this[_0x5737de(0x191)][_0x5737de(0x172)]():(ValueUtil[_0x5737de(0x15e)](this[_0x5737de(0x18c)])||this[_0x5737de(0x159)])&&await this[_0x5737de(0x159)]();}async['excuteOpenPopupButtonClick'](_0x2d3cd8,_0x518ec3,_0x35fd8c){const _0x34a635=a0_0x101b42;let _0x3eb88b=TermsUtil[_0x34a635(0x17b)](_0x2d3cd8[_0x34a635(0x157)]);ValueUtil['isNotEmpty'](_0x2d3cd8['title_detail'])&&(_0x3eb88b=_0x3eb88b+'-'+ValueUtil[_0x34a635(0x158)](_0x518ec3,..._0x2d3cd8['title_detail']['split']('.'))),MetaApi[_0x34a635(0x18a)](_0x3eb88b,_0x2d3cd8,_0x518ec3,_0x35fd8c);}async['executeCallScenarioButtonClick'](_0x27ec13,_0x4255e5,_0x8a9f8b){const _0x2fa7f2=a0_0x101b42;let _0x5d73de=await MetaApi['callScenario'](_0x27ec13[_0x2fa7f2(0x165)],_0x27ec13[_0x2fa7f2(0x165)],_0x4255e5);!0x1!==_0x5d73de&&!_0x5d73de[_0x2fa7f2(0x18f)]&&ValueUtil[_0x2fa7f2(0x15e)](_0x27ec13['after'])&&_0x8a9f8b();}[a0_0x101b42(0x161)](_0x5a2944){const _0x3a7062=a0_0x101b42;this[_0x3a7062(0x160)]=_0x5a2944,this[_0x3a7062(0x172)]();}};function a0_0x5498(){const _0x455ea7=['result','menuInfo','18rzSbBh','parseBasicTabConfigs','fetch','params','parseBasicFormConfigs','forEach','properties','getMenuMeta','parseBasicServiceConfigs','detail','isEmpty','tTitle','includes','dispatchEvent','isElement','isPopup','form-field-change','data-changed','11WKaHne','384796gzuILt','27484WCfMao','connectedCallback','body','etc','11292848YOaKeN','726LKQHNJ','openDynamicPopup','startsWith','filterForm','addEventListener','active','errors','data','grist','is_popup','runScenario','5smrjJg','parseBasicGridConfigs','786890cKGgtP','title','getParams','fetchHandler','fieldChangeHandlers','isDetail','10527282JsIRgg','is_detail','isNotEmpty','parseBasicButtonConfigs','parent_id','setParentId','callScenario','keys','meta-form-','name','6257480CQHKWT','isPage','dataChangeEventHandler','lifecycle','field-change','pageUpdated','1602976UsEDaE','etcConfig'];a0_0x5498=function(){return _0x455ea7;};return a0_0x5498();}
@@ -1,4 +1,4 @@
1
- function a0_0x246d(_0x5e33da,_0x4045be){const _0x5ce10f=a0_0x5ce1();return a0_0x246d=function(_0x246d35,_0x587d4e){_0x246d35=_0x246d35-0x15e;let _0x4d3be8=_0x5ce10f[_0x246d35];return _0x4d3be8;},a0_0x246d(_0x5e33da,_0x4045be);}const a0_0x7c9ae5=a0_0x246d;(function(_0x7d1085,_0x3fe7e5){const _0xa909db=a0_0x246d,_0x2c7d40=_0x7d1085();while(!![]){try{const _0x389fe7=-parseInt(_0xa909db(0x197))/0x1+parseInt(_0xa909db(0x15e))/0x2+parseInt(_0xa909db(0x18a))/0x3*(parseInt(_0xa909db(0x196))/0x4)+-parseInt(_0xa909db(0x16b))/0x5*(-parseInt(_0xa909db(0x182))/0x6)+parseInt(_0xa909db(0x18b))/0x7+-parseInt(_0xa909db(0x184))/0x8*(-parseInt(_0xa909db(0x168))/0x9)+parseInt(_0xa909db(0x18f))/0xa*(-parseInt(_0xa909db(0x19c))/0xb);if(_0x389fe7===_0x3fe7e5)break;else _0x2c7d40['push'](_0x2c7d40['shift']());}catch(_0x5bc840){_0x2c7d40['push'](_0x2c7d40['shift']());}}}(a0_0x5ce1,0x38ead));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';function a0_0x5ce1(){const _0x1592d5=['parse','import','853648BwaybY','212540LJpdxF','parseBasicGridConfigs','styles','getData','getSelectedIdList','7936984EmOwAx','847978cunWHe','___data','isElement','title','shadowRoot','tTitle','pageInitialized','getAndParseMenuMeta','ox-grist','isPage','387uyZFAI','grist','filterFormId','5XLcVWB','clear','getButtonContainer','fetch','isNotEmpty','startsWith','gridEmphasized','activityDataSet','dataSet','querySelector','getParams','menuInfo','search','gristId','patchesForUpdateMultiple','getBasicGristStyles','connectedCallback','stringify','ox-filters-form','save','grid_column','findOne','find','711258iVmQIt','parseGristConfigs','18752jVFFYA','delete','forEach','exportableData','records','firstUpdated','6OigKHl','679483mpKOsU','getBasicGristHtml','properties','grid','10pdrtte','render','gristConfigSet','getContextObject','gridColumnConfig'];a0_0x5ce1=function(){return _0x1592d5;};return a0_0x5ce1();}import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x47da98=>class extends MetaButtonMixin(_0x47da98){static get[a0_0x7c9ae5(0x199)](){const _0x16a49e=a0_0x7c9ae5;return MetaApi[_0x16a49e(0x17a)]();}static get[a0_0x7c9ae5(0x18d)](){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_0x7c9ae5(0x169)](){const _0x567783=a0_0x7c9ae5;return this['renderRoot']?.[_0x567783(0x174)](this[_0x567783(0x178)]);}get['filterForm'](){const _0x2cdc71=a0_0x7c9ae5;return this[_0x2cdc71(0x162)]?.[_0x2cdc71(0x174)](this[_0x2cdc71(0x16a)]);}get['context'](){const _0x5e18d4=a0_0x7c9ae5;return MetaUiUtil[_0x5e18d4(0x192)](this);}async[a0_0x7c9ae5(0x17b)](){const _0x2de977=a0_0x7c9ae5;this['gristId']=_0x2de977(0x166),this[_0x2de977(0x16a)]=_0x2de977(0x17d),await this[_0x2de977(0x165)](),this[_0x2de977(0x160)]&&await this['parseGristConfigs'](),this[_0x2de977(0x172)]&&(this[_0x2de977(0x173)]=this[_0x2de977(0x172)]),super[_0x2de977(0x17b)]&&await super[_0x2de977(0x17b)]();}async['firstUpdated'](){const _0x13e316=a0_0x7c9ae5;super[_0x13e316(0x189)]&&await super['firstUpdated']();}async[a0_0x7c9ae5(0x164)](){const _0x17e127=a0_0x7c9ae5;this[_0x17e127(0x167)]&&await this['parseGristConfigs'](),super[_0x17e127(0x164)]&&await super[_0x17e127(0x164)]();}[a0_0x7c9ae5(0x190)](){const _0x4ea051=a0_0x7c9ae5;return html`
2
- ${MetaApi[_0x4ea051(0x18c)](this)}
3
- ${this[_0x4ea051(0x167)]?html``:MetaUiUtil[_0x4ea051(0x16d)](this)}
4
- `;}[a0_0x7c9ae5(0x198)](_0x3bca02){const _0x114f0c=a0_0x7c9ae5;this['gridConfig']=_0x3bca02[_0x114f0c(0x18e)],this[_0x114f0c(0x193)]=_0x3bca02[_0x114f0c(0x17f)],this['searchConfig']=_0x3bca02[_0x114f0c(0x177)],this[_0x114f0c(0x171)]=_0x3bca02[_0x114f0c(0x171)];}async[a0_0x7c9ae5(0x183)](){const _0x45cc2d=a0_0x7c9ae5;this[_0x45cc2d(0x191)]=await MetaApi['parseGridConfigSet'](this);}async[a0_0x7c9ae5(0x16e)](){const _0x5d1580=a0_0x7c9ae5;await this['grist'][_0x5d1580(0x16e)]();}async[a0_0x7c9ae5(0x17e)](){const _0x5c09cc=a0_0x7c9ae5;let _0x100c54=MetaApi[_0x5c09cc(0x179)](this[_0x5c09cc(0x169)]);!!ValueUtil[_0x5c09cc(0x16f)](_0x100c54)&&await this['updateMultiple'](_0x100c54)&&this[_0x5c09cc(0x16e)]();}async[a0_0x7c9ae5(0x181)](){const _0x3e893b=a0_0x7c9ae5;let _0x4ad7f2=MetaApi[_0x3e893b(0x19b)](this[_0x3e893b(0x169)],!0x0);return ValueUtil[_0x3e893b(0x16f)](_0x4ad7f2)?await this[_0x3e893b(0x180)](_0x4ad7f2[0x0]):{};}async[a0_0x7c9ae5(0x185)](){const _0x4cd9f9=a0_0x7c9ae5;let _0x250793=MetaApi['getSelectedIdList'](this['grist'],!0x0);!!ValueUtil[_0x4cd9f9(0x16f)](_0x250793)&&await this['deleteByIds'](_0x250793)&&this['fetch']();}async['export'](){const _0x2c369f=a0_0x7c9ae5;let _0x409673=TermsUtil[_0x2c369f(0x163)](ValueUtil[_0x2c369f(0x175)](this[_0x2c369f(0x176)],_0x2c369f(0x161)));return await MetaApi[_0x2c369f(0x187)](this[_0x2c369f(0x160)],_0x409673,this[_0x2c369f(0x169)]);}async[a0_0x7c9ae5(0x195)](){}async[a0_0x7c9ae5(0x16c)](){const _0x491376=a0_0x7c9ae5;this['grist']&&(this[_0x491376(0x169)]['data']={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}[a0_0x7c9ae5(0x19a)](){const _0x5e78f5=a0_0x7c9ae5;let _0xb47a91=this[_0x5e78f5(0x169)][_0x5e78f5(0x15f)][_0x5e78f5(0x188)];return _0xb47a91=JSON[_0x5e78f5(0x194)](JSON[_0x5e78f5(0x17c)](_0xb47a91)),_0xb47a91[_0x5e78f5(0x186)](_0x5c64f6=>{const _0xe5cf20=_0x5e78f5;Object['keys'](_0x5c64f6)[_0xe5cf20(0x186)](_0x219612=>{const _0x16596d=_0xe5cf20;_0x219612[_0x16596d(0x170)]('__')&&delete _0x5c64f6[_0x219612];});}),_0xb47a91;}};
1
+ const a0_0x112169=a0_0x3f12;(function(_0x3ca5d5,_0x4302e4){const _0x5549ec=a0_0x3f12,_0xd4efcb=_0x3ca5d5();while(!![]){try{const _0x13263f=parseInt(_0x5549ec(0x184))/0x1*(-parseInt(_0x5549ec(0x156))/0x2)+-parseInt(_0x5549ec(0x153))/0x3*(-parseInt(_0x5549ec(0x15e))/0x4)+parseInt(_0x5549ec(0x16d))/0x5*(parseInt(_0x5549ec(0x17c))/0x6)+-parseInt(_0x5549ec(0x15d))/0x7+parseInt(_0x5549ec(0x159))/0x8+parseInt(_0x5549ec(0x169))/0x9+parseInt(_0x5549ec(0x179))/0xa;if(_0x13263f===_0x4302e4)break;else _0xd4efcb['push'](_0xd4efcb['shift']());}catch(_0x19e989){_0xd4efcb['push'](_0xd4efcb['shift']());}}}(a0_0x5730,0x75850));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';function a0_0x3f12(_0x44ffaf,_0x2d3907){const _0x573019=a0_0x5730();return a0_0x3f12=function(_0x3f1281,_0x6a97c0){_0x3f1281=_0x3f1281-0x14d;let _0x2868db=_0x573019[_0x3f1281];return _0x2868db;},a0_0x3f12(_0x44ffaf,_0x2d3907);}import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x5730(){const _0x29f54d=['1PqQnWC','isPage','keys','renderRoot','shadowRoot','forEach','ox-grist','grid','parseGristConfigs','gridEmphasized','2645499SvJfsT','getContextObject','connectedCallback','1064002RUyFSY','parseBasicGridConfigs','activityDataSet','918616AtneAb','gridColumnConfig','import','menuInfo','5148654qDgiix','4tdNjVi','render','find','searchConfig','gristId','getBasicGristHtml','isNotEmpty','fetch','updateMultiple','save','pageInitialized','5106051uoFmuz','grist','exportableData','filterForm','107225GRkwQS','records','filterFormId','title','delete','firstUpdated','getButtonContainer','patchesForUpdateMultiple','data','startsWith','stringify','deleteByIds','1205490fBKUrc','getParams','parse','18dbTEeG','getSelectedIdList','findOne','properties','getAndParseMenuMeta','querySelector','isElement','tTitle'];a0_0x5730=function(){return _0x29f54d;};return a0_0x5730();}export const MetaBasicGristMixin=_0x49b4da=>class extends MetaButtonMixin(_0x49b4da){static get['styles'](){return MetaApi['getBasicGristStyles']();}static get[a0_0x112169(0x17f)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get['grist'](){const _0x5254b9=a0_0x112169;return this[_0x5254b9(0x187)]?.['querySelector'](this[_0x5254b9(0x162)]);}get[a0_0x112169(0x16c)](){const _0x4fc905=a0_0x112169;return this[_0x4fc905(0x14d)]?.[_0x4fc905(0x181)](this[_0x4fc905(0x16f)]);}get['context'](){const _0xdc964f=a0_0x112169;return MetaUiUtil[_0xdc964f(0x154)](this);}async[a0_0x112169(0x155)](){const _0x653088=a0_0x112169;this[_0x653088(0x162)]=_0x653088(0x14f),this[_0x653088(0x16f)]='ox-filters-form',await this[_0x653088(0x180)](),this[_0x653088(0x182)]&&await this[_0x653088(0x151)](),this[_0x653088(0x158)]&&(this['dataSet']=this['activityDataSet']),super[_0x653088(0x155)]&&await super[_0x653088(0x155)]();}async['firstUpdated'](){const _0x517047=a0_0x112169;super[_0x517047(0x172)]&&await super[_0x517047(0x172)]();}async[a0_0x112169(0x168)](){const _0x4028a1=a0_0x112169;this['isPage']&&await this[_0x4028a1(0x151)](),super[_0x4028a1(0x168)]&&await super[_0x4028a1(0x168)]();}[a0_0x112169(0x15f)](){const _0x1c53bb=a0_0x112169;return html`
2
+ ${MetaApi[_0x1c53bb(0x163)](this)}
3
+ ${this[_0x1c53bb(0x185)]?html``:MetaUiUtil[_0x1c53bb(0x173)](this)}
4
+ `;}[a0_0x112169(0x157)](_0x5a9e70){const _0x51fe5e=a0_0x112169;this['gridConfig']=_0x5a9e70[_0x51fe5e(0x150)],this[_0x51fe5e(0x15a)]=_0x5a9e70['grid_column'],this[_0x51fe5e(0x161)]=_0x5a9e70['search'],this[_0x51fe5e(0x152)]=_0x5a9e70[_0x51fe5e(0x152)];}async[a0_0x112169(0x151)](){this['gristConfigSet']=await MetaApi['parseGridConfigSet'](this);}async[a0_0x112169(0x165)](){const _0x17518f=a0_0x112169;await this[_0x17518f(0x16a)][_0x17518f(0x165)]();}async[a0_0x112169(0x167)](){const _0x2c0123=a0_0x112169;let _0x2b0de2=MetaApi[_0x2c0123(0x174)](this[_0x2c0123(0x16a)]);!!ValueUtil[_0x2c0123(0x164)](_0x2b0de2)&&await this[_0x2c0123(0x166)](_0x2b0de2)&&this[_0x2c0123(0x165)]();}async[a0_0x112169(0x160)](){const _0x15c303=a0_0x112169;let _0x6a4677=MetaApi[_0x15c303(0x17d)](this[_0x15c303(0x16a)],!0x0);return ValueUtil[_0x15c303(0x164)](_0x6a4677)?await this[_0x15c303(0x17e)](_0x6a4677[0x0]):{};}async[a0_0x112169(0x171)](){const _0x5e2868=a0_0x112169;let _0x3447ce=MetaApi[_0x5e2868(0x17d)](this[_0x5e2868(0x16a)],!0x0);!!ValueUtil[_0x5e2868(0x164)](_0x3447ce)&&await this[_0x5e2868(0x178)](_0x3447ce)&&this[_0x5e2868(0x165)]();}async['export'](){const _0x3c1413=a0_0x112169;let _0x30bfc3=TermsUtil[_0x3c1413(0x183)](ValueUtil[_0x3c1413(0x17a)](this[_0x3c1413(0x15c)],_0x3c1413(0x170)));return await MetaApi[_0x3c1413(0x16b)](this['isElement'],_0x30bfc3,this[_0x3c1413(0x16a)]);}async[a0_0x112169(0x15b)](){}async['clear'](){const _0x35686a=a0_0x112169;this[_0x35686a(0x16a)]&&(this[_0x35686a(0x16a)][_0x35686a(0x175)]={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0x2b2cf5=a0_0x112169;let _0x12afbd=this[_0x2b2cf5(0x16a)]['___data'][_0x2b2cf5(0x16e)];return _0x12afbd=JSON[_0x2b2cf5(0x17b)](JSON[_0x2b2cf5(0x177)](_0x12afbd)),_0x12afbd[_0x2b2cf5(0x14e)](_0x23065c=>{const _0x2ea601=_0x2b2cf5;Object[_0x2ea601(0x186)](_0x23065c)[_0x2ea601(0x14e)](_0x5c0066=>{const _0x4c22ba=_0x2ea601;_0x5c0066[_0x4c22ba(0x176)]('__')&&delete _0x23065c[_0x5c0066];});}),_0x12afbd;}};
@@ -1 +1 @@
1
- const a0_0x15a010=a0_0x4fa5;(function(_0x3b703f,_0x19e48d){const _0x56f46e=a0_0x4fa5,_0x4b088e=_0x3b703f();while(!![]){try{const _0x168494=parseInt(_0x56f46e(0x19f))/0x1+-parseInt(_0x56f46e(0x193))/0x2+-parseInt(_0x56f46e(0x197))/0x3+-parseInt(_0x56f46e(0x19e))/0x4*(parseInt(_0x56f46e(0x18f))/0x5)+parseInt(_0x56f46e(0x194))/0x6+-parseInt(_0x56f46e(0x195))/0x7*(parseInt(_0x56f46e(0x19b))/0x8)+parseInt(_0x56f46e(0x1a8))/0x9*(parseInt(_0x56f46e(0x18e))/0xa);if(_0x168494===_0x19e48d)break;else _0x4b088e['push'](_0x4b088e['shift']());}catch(_0x87eee2){_0x4b088e['push'](_0x4b088e['shift']());}}}(a0_0x3262,0xe2232));import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x3262(){const _0x403cd7=['getContextButtons','import','buttonConfig','getCustomButtonContainerStyle','properties','isPage','getButtonContainer','getBasicButtonHandler','501876LdwCef','add','410EPwGcH','25SXCsMv','getButtonActionHandler','getCustomButtonContainerStyles','button','945726VOavZE','5378958AMQNec','5299QygCbw','useButtonExport','2683539EurziE','parseBasicButtonConfigs','export','gristButtonHandler','17704cUubsU','useButtonAdd','isButtonExist','678108JvgJwu','1633693ibQSIe'];a0_0x3262=function(){return _0x403cd7;};return a0_0x3262();}import{MetaServiceMixin}from'./meta-service-mixin';function a0_0x4fa5(_0x10f1ff,_0x198233){const _0x326293=a0_0x3262();return a0_0x4fa5=function(_0x4fa521,_0x5a0665){_0x4fa521=_0x4fa521-0x18d;let _0x350ec0=_0x326293[_0x4fa521];return _0x350ec0;},a0_0x4fa5(_0x10f1ff,_0x198233);}export const MetaButtonMixin=_0x3b6f27=>class extends MetaServiceMixin(_0x3b6f27){static get[a0_0x15a010(0x1a4)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x15a010(0x1a3)](){const _0x3f6ca0=a0_0x15a010;return MetaUiUtil[_0x3f6ca0(0x191)]();}['getContextButtons'](){const _0x13ba7c=a0_0x15a010;return MetaUiUtil[_0x13ba7c(0x1a0)](this);}[a0_0x15a010(0x1a6)](){const _0x384222=a0_0x15a010;return this[_0x384222(0x1a5)]?html``:MetaUiUtil['getButtonContainer'](this);}async[a0_0x15a010(0x1a7)](_0x15f5b8,_0x4fce95,_0x2c67a6){const _0xaac2eb=a0_0x15a010;return await MetaUiUtil[_0xaac2eb(0x190)](this,_0x15f5b8,_0x4fce95,_0x2c67a6);}async['customButtonHandler'](_0x24eaa1){await MetaUiUtil['customButtonHandler'](this,_0x24eaa1);}async[a0_0x15a010(0x19a)](_0x49c41f,_0x27f168){const _0x6914f=a0_0x15a010;await MetaUiUtil[_0x6914f(0x19a)](this,_0x49c41f,_0x27f168);}[a0_0x15a010(0x198)](_0x1d15f3){const _0x39042c=a0_0x15a010;this['buttonConfig']=_0x1d15f3[_0x39042c(0x192)],this['useButtonImport']=MetaUiUtil['isButtonExist'](this[_0x39042c(0x1a2)],_0x39042c(0x1a1)),this[_0x39042c(0x196)]=MetaUiUtil[_0x39042c(0x19d)](this[_0x39042c(0x1a2)],_0x39042c(0x199)),this[_0x39042c(0x19c)]=MetaUiUtil['isButtonExist'](this[_0x39042c(0x1a2)],_0x39042c(0x18d));}};
1
+ const a0_0x2a22b7=a0_0x3622;(function(_0x317c89,_0x40920b){const _0x2c3ff6=a0_0x3622,_0x543be4=_0x317c89();while(!![]){try{const _0x5f4240=parseInt(_0x2c3ff6(0x193))/0x1+parseInt(_0x2c3ff6(0x187))/0x2*(-parseInt(_0x2c3ff6(0x188))/0x3)+-parseInt(_0x2c3ff6(0x182))/0x4+parseInt(_0x2c3ff6(0x180))/0x5*(-parseInt(_0x2c3ff6(0x192))/0x6)+-parseInt(_0x2c3ff6(0x18e))/0x7+-parseInt(_0x2c3ff6(0x195))/0x8+parseInt(_0x2c3ff6(0x197))/0x9;if(_0x5f4240===_0x40920b)break;else _0x543be4['push'](_0x543be4['shift']());}catch(_0x58c68e){_0x543be4['push'](_0x543be4['shift']());}}}(a0_0x345e,0xda5df));function a0_0x3622(_0x1d3d09,_0x1b46a7){const _0x345e83=a0_0x345e();return a0_0x3622=function(_0x36222c,_0x3b370e){_0x36222c=_0x36222c-0x180;let _0x3be2bb=_0x345e83[_0x36222c];return _0x3be2bb;},a0_0x3622(_0x1d3d09,_0x1b46a7);}import{html}from'lit';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x345e(){const _0x4e12f2=['1882348DdPuoW','isButtonExist','useButtonImport','getButtonActionHandler','getButtonContainer','412072GZtkZQ','18pAoZEZ','getCustomButtonContainerStyle','getBasicButtonHandler','getContextButtons','isPage','useButtonExport','12055456yNdFYA','buttonConfig','button','export','1211982qWaERN','677332EitBnp','parseBasicButtonConfigs','7908040xdaavw','useButtonAdd','56255319okJowQ','gristButtonHandler','40YbTCVl','add'];a0_0x345e=function(){return _0x4e12f2;};return a0_0x345e();}import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x52505e=>class extends MetaServiceMixin(_0x52505e){static get['properties'](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}[a0_0x2a22b7(0x189)](){return MetaUiUtil['getCustomButtonContainerStyles']();}[a0_0x2a22b7(0x18b)](){return MetaUiUtil['getContextButtons'](this);}['getButtonContainer'](){const _0x101ff6=a0_0x2a22b7;return this[_0x101ff6(0x18c)]?html``:MetaUiUtil[_0x101ff6(0x186)](this);}async[a0_0x2a22b7(0x18a)](_0xfa2bba,_0x38d4dd,_0x445249){const _0x2b68f6=a0_0x2a22b7;return await MetaUiUtil[_0x2b68f6(0x185)](this,_0xfa2bba,_0x38d4dd,_0x445249);}async['customButtonHandler'](_0x3b9989){await MetaUiUtil['customButtonHandler'](this,_0x3b9989);}async[a0_0x2a22b7(0x198)](_0x4c4c2e,_0x49cd7c){const _0x3dfee4=a0_0x2a22b7;await MetaUiUtil[_0x3dfee4(0x198)](this,_0x4c4c2e,_0x49cd7c);}[a0_0x2a22b7(0x194)](_0x2da72b){const _0x2ce2bd=a0_0x2a22b7;this[_0x2ce2bd(0x18f)]=_0x2da72b[_0x2ce2bd(0x190)],this[_0x2ce2bd(0x184)]=MetaUiUtil[_0x2ce2bd(0x183)](this[_0x2ce2bd(0x18f)],'import'),this[_0x2ce2bd(0x18d)]=MetaUiUtil[_0x2ce2bd(0x183)](this[_0x2ce2bd(0x18f)],_0x2ce2bd(0x191)),this[_0x2ce2bd(0x196)]=MetaUiUtil[_0x2ce2bd(0x183)](this[_0x2ce2bd(0x18f)],_0x2ce2bd(0x181));}};
@@ -1 +1 @@
1
- const a0_0x382518=a0_0xeabc;(function(_0x5d199c,_0x5ea04d){const _0x50b988=a0_0xeabc,_0x28eb5e=_0x5d199c();while(!![]){try{const _0x37de44=parseInt(_0x50b988(0xe5))/0x1+-parseInt(_0x50b988(0xa2))/0x2+parseInt(_0x50b988(0xb2))/0x3*(parseInt(_0x50b988(0xd2))/0x4)+parseInt(_0x50b988(0xa8))/0x5+-parseInt(_0x50b988(0x91))/0x6+parseInt(_0x50b988(0xcd))/0x7*(-parseInt(_0x50b988(0xb4))/0x8)+-parseInt(_0x50b988(0xc2))/0x9;if(_0x37de44===_0x5ea04d)break;else _0x28eb5e['push'](_0x28eb5e['shift']());}catch(_0x114da2){_0x28eb5e['push'](_0x28eb5e['shift']());}}}(a0_0x3014,0x45c6b));function a0_0xeabc(_0x464a14,_0x3bf263){const _0x30145a=a0_0x3014();return a0_0xeabc=function(_0xeabcdd,_0xfda7a5){_0xeabcdd=_0xeabcdd-0x8f;let _0x288ae7=_0x30145a[_0xeabcdd];return _0x288ae7;},a0_0xeabc(_0x464a14,_0x3bf263);}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_0x3014(){const _0x5407ee=['tText','__dirty__','validation','keydown','orgData','stopPropagation','parseBasicFormConfigs','currentTarget','filter','render','true','call','isElement','2153142hjRutr','currentData','startsWith','button','findOne','formColumnConfig','isPage','before','map','pageInitialized','confirm','1057msyKuB','fetch','setAttribute','form','assign','12yhqejp','title.info','key','record','text.NOTHING_CHANGED','activity','getBasicFormStyles','getAndParseMenuMeta','getContextObject','__seq__','header','detail','form-field-change','formConfigSet','__dirtyfields__','mandatory','isEmpty','clear','__origin__','300557vFyAIm','getData','info','renderRoot','940788LZyKDi','isEquals','name','patchData','removeAttribute','type','Enter','text.check-mandatory','parent_id','save','function','column','editing','tLabel','entries','removeGarbageData','OX-GRID-FIELD','415004ujNZoX','addEventListener','dispatchEvent','forEach','click','firstUpdated','2603830fdNEvC','cuFlag','connectedCallback','properties','getBasicFormHtml','parseFormConfigs','showAlertPopup','isNotEmpty','after','activityDataSet','431022tJXexg','context','19232JgKlcj'];a0_0x3014=function(){return _0x5407ee;};return a0_0x3014();}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0xb8b072=>class extends MetaButtonMixin(_0xb8b072){static get['styles'](){const _0x4badc9=a0_0xeabc;return MetaApi[_0x4badc9(0xd8)]();}static get[a0_0x382518(0xab)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get[a0_0x382518(0xb3)](){const _0x24ef2a=a0_0x382518;return MetaUiUtil[_0x24ef2a(0xda)](this);}async[a0_0x382518(0xaa)](){const _0x283581=a0_0x382518;await this[_0x283581(0xd9)](),this[_0x283581(0xc1)]&&await this[_0x283581(0xad)](),this[_0x283581(0xb1)]&&(this['dataSet']=this[_0x283581(0xb1)]),!0x0!==this['is_activity']||this['parent_id']||(this[_0x283581(0x99)]=_0x283581(0xd7)),super[_0x283581(0xaa)]&&await super['connectedCallback'](),this[_0x283581(0xc1)]&&await this['fetch'](),this[_0x283581(0x90)][_0x283581(0xa3)](_0x283581(0xb8),_0xaebd93=>{const _0x2d9a4b=_0x283581;switch(_0xaebd93[_0x2d9a4b(0xd4)]){case'Esc':case'Escape':case _0x2d9a4b(0x97):this['focus'](),this['currentTarget']&&this[_0x2d9a4b(0xbc)][_0x2d9a4b(0x95)](_0x2d9a4b(0x9d)),this[_0x2d9a4b(0xbc)]=null;}}),this[_0x283581(0x90)]['addEventListener'](_0x283581(0xa6),_0x4a1841=>{const _0x14b358=_0x283581;_0x4a1841[_0x14b358(0xba)]();let _0x2af7fd=_0x4a1841['target'];if(this[_0x14b358(0xbc)]&&(this['focus'](),this['currentTarget']['removeAttribute'](_0x14b358(0x9d))),_0x14b358(0xa1)!==_0x2af7fd['tagName']||!_0x2af7fd[_0x14b358(0x9c)][_0x14b358(0xd5)]['editable'])return this['focus'](),void(this[_0x14b358(0xbc)]=null);this['currentTarget']=_0x2af7fd,_0x2af7fd[_0x14b358(0xcf)](_0x14b358(0x9d),_0x14b358(0xbf));}),this[_0x283581(0xa3)]('field-change',_0x1caf24=>{const _0x1c3b4a=_0x283581;var {after:_0x4697b0,before:_0x371d59,column:_0x5d5fec,record:_0x27bad7,row:_0x36139f}=_0x1caf24[_0x1c3b4a(0xdd)];if(ValueUtil[_0x1c3b4a(0x92)](_0x4697b0,_0x371d59))return;var _0x464e7f=_0x5d5fec[_0x1c3b4a(0xb7)];if(_0x464e7f&&_0x1c3b4a(0x9b)==typeof _0x464e7f&&!_0x464e7f[_0x1c3b4a(0xc0)](this,_0x4697b0,_0x371d59,_0x27bad7,_0x5d5fec))return;let _0x2bf2c8=_0x5d5fec[_0x1c3b4a(0x93)];_0x27bad7[_0x2bf2c8]=_0x4697b0,_0x27bad7['__dirtyfields__']=_0x27bad7[_0x1c3b4a(0xe0)]||{},_0x27bad7[_0x1c3b4a(0xe4)]=_0x27bad7[_0x1c3b4a(0xe4)]||{},_0x27bad7['__dirtyfields__'][_0x2bf2c8]={'before':_0x27bad7[_0x1c3b4a(0xe4)][_0x2bf2c8],'after':_0x27bad7[_0x2bf2c8]},ValueUtil[_0x1c3b4a(0x92)](_0x27bad7[_0x1c3b4a(0xe0)][_0x2bf2c8][_0x1c3b4a(0xc9)],_0x27bad7[_0x1c3b4a(0xe0)][_0x2bf2c8]['after'])&&delete _0x27bad7[_0x1c3b4a(0xe0)][_0x2bf2c8],ValueUtil[_0x1c3b4a(0xaf)](_0x27bad7[_0x1c3b4a(0xe0)])?_0x27bad7[_0x1c3b4a(0xb6)]='M':_0x27bad7['__dirty__']='',this[_0x1c3b4a(0xd5)]={..._0x27bad7},this[_0x1c3b4a(0xa4)](new CustomEvent(_0x1c3b4a(0xde),{'bubbles':!0x0,'composed':!0x0,'detail':_0x1caf24['detail']}));});}async['firstUpdated'](){const _0xd14268=a0_0x382518;super['firstUpdated']&&await super[_0xd14268(0xa7)]();}async[a0_0x382518(0xcb)](){const _0x26ba58=a0_0x382518;this[_0x26ba58(0xc8)]&&await this[_0x26ba58(0xad)](),super[_0x26ba58(0xcb)]&&await super[_0x26ba58(0xcb)](),this['isPage']&&await this[_0x26ba58(0xce)]();}[a0_0x382518(0xbe)](){const _0x3aeb9c=a0_0x382518;return MetaApi[_0x3aeb9c(0xac)](this);}[a0_0x382518(0xbb)](_0x31045a){const _0x35a1ce=a0_0x382518;this[_0x35a1ce(0xc7)]=_0x31045a['grid_column'],this['formRenderConfig']=_0x31045a[_0x35a1ce(0xd0)],_0x31045a[_0x35a1ce(0xc5)]=_0x31045a[_0x35a1ce(0xc5)][_0x35a1ce(0xbd)](_0x50b016=>'save'==_0x50b016[_0x35a1ce(0x93)]);}async['parseFormConfigs'](){const _0x31f735=a0_0x382518;this[_0x31f735(0xdf)]=await MetaApi['parseFormConfigSet'](this);}get[a0_0x382518(0xb9)](){const _0x212e2f=a0_0x382518;return this[_0x212e2f(0xa0)](this['record'][_0x212e2f(0xe4)]);}get['dirtyData'](){const _0x9e27a0=a0_0x382518;if(ValueUtil[_0x9e27a0(0xe2)]((this[_0x9e27a0(0xd5)]||{})['__dirtyfields__']))return{};let _0x2c22a2={};return Object[_0x9e27a0(0x9f)](this[_0x9e27a0(0xd5)][_0x9e27a0(0xe0)])['map'](([_0x59832b,_0x1fd95f])=>{const _0x2b2e9a=_0x9e27a0;0x0==_0x59832b[_0x2b2e9a(0xc4)]('__')&&(_0x2c22a2[_0x59832b]=_0x1fd95f[_0x2b2e9a(0xb0)]);}),_0x2c22a2;}get[a0_0x382518(0xc3)](){const _0x4db518=a0_0x382518;return this['removeGarbageData'](this[_0x4db518(0xd5)]);}['removeGarbageData'](_0x35c13e){const _0x58f025=a0_0x382518;let _0x2efd2d={};if(_0x35c13e)return Object['entries'](_0x35c13e)[_0x58f025(0xca)](([_0x24f710,_0x5044d0])=>{const _0x1ceea7=_0x58f025;0x0==_0x24f710[_0x1ceea7(0xc4)]('__')&&(_0x2efd2d[_0x24f710]=_0x5044d0);}),_0x2efd2d;}get['patchData'](){const _0x39dd13=a0_0x382518;let _0x443e93=this['dirtyData'],_0x2dd036=this[_0x39dd13(0xd5)],_0x7e9b35=(this[_0x39dd13(0xc7)]||[])[_0x39dd13(0xbd)](_0x16a5b4=>'code-input'===_0x16a5b4[_0x39dd13(0x96)])[_0x39dd13(0xca)](_0x404d27=>_0x404d27[_0x39dd13(0x93)]);if(!ValueUtil[_0x39dd13(0xe2)](_0x443e93))return ValueUtil['isNotEmpty'](_0x2dd036['id'])?(_0x443e93['id']=_0x2dd036['id'],_0x443e93[_0x39dd13(0xa9)]='M'):_0x443e93[_0x39dd13(0xa9)]='+',Object['keys'](_0x443e93)[_0x39dd13(0xa5)](_0x533819=>{'object'==typeof _0x443e93[_0x533819]&&0x0==_0x7e9b35['includes'](_0x533819)&&(_0x443e93[_0x533819]={'id':_0x443e93[_0x533819]['id']});}),[_0x443e93];}async[a0_0x382518(0xce)](){const _0x432f45=a0_0x382518;if(ValueUtil[_0x432f45(0xe2)](this[_0x432f45(0x99)]))return;let _0x940ea6=await this[_0x432f45(0xc6)](this[_0x432f45(0x99)]);_0x940ea6[_0x432f45(0xdb)]=0x1;let _0x50c13d={};Object[_0x432f45(0xd1)](_0x50c13d,_0x940ea6),_0x940ea6[_0x432f45(0xe4)]=_0x50c13d,this[_0x432f45(0xd5)]={..._0x940ea6};}async[a0_0x382518(0x9a)](){const _0x30a52b=a0_0x382518;let _0x96b660=this[_0x30a52b(0x94)];if(ValueUtil[_0x30a52b(0xe2)](_0x96b660))return void MetaApi[_0x30a52b(0xae)](_0x30a52b(0xd3),_0x30a52b(0xd6));let _0x47573f={};(this[_0x30a52b(0xc7)]||[])[_0x30a52b(0xbd)](_0x3f6aea=>!0x0===_0x3f6aea[_0x30a52b(0xe1)])[_0x30a52b(0xa5)](_0xdebbc=>{const _0x43316f=_0x30a52b;_0x47573f[_0xdebbc[_0x43316f(0x93)]]=_0xdebbc[_0x43316f(0xdc)];});let _0x4cddfc=this['currentData'];for(let _0x4422f4 in _0x47573f)if(void 0x0===_0x4cddfc[_0x4422f4]||''==_0x4cddfc[_0x4422f4])return void UiUtil[_0x30a52b(0xae)](_0x30a52b(0x98),TermsUtil[_0x30a52b(0xb5)]('check-mandatory-field',{'x':TermsUtil[_0x30a52b(0x9e)](_0x47573f[_0x4422f4])}),_0x30a52b(0x8f),_0x30a52b(0xcc));let _0x37f653=await this['updateMultiple'](_0x96b660);return _0x37f653&&await this[_0x30a52b(0xce)](),_0x37f653;}async[a0_0x382518(0xe3)](){const _0x259c4c=a0_0x382518;this[_0x259c4c(0xd5)]&&(this[_0x259c4c(0xd5)]={});}[a0_0x382518(0xe6)](){const _0x3a0b15=a0_0x382518;return this[_0x3a0b15(0xc3)]||{};}};
1
+ const a0_0xcae413=a0_0x3991;(function(_0x356fb4,_0xe7cc08){const _0x220d04=a0_0x3991,_0x61f875=_0x356fb4();while(!![]){try{const _0x3d4532=parseInt(_0x220d04(0x1a6))/0x1*(parseInt(_0x220d04(0x19d))/0x2)+-parseInt(_0x220d04(0x19b))/0x3+parseInt(_0x220d04(0x194))/0x4*(-parseInt(_0x220d04(0x180))/0x5)+parseInt(_0x220d04(0x1ab))/0x6+-parseInt(_0x220d04(0x1a4))/0x7+-parseInt(_0x220d04(0x193))/0x8+parseInt(_0x220d04(0x196))/0x9;if(_0x3d4532===_0xe7cc08)break;else _0x61f875['push'](_0x61f875['shift']());}catch(_0x1518b3){_0x61f875['push'](_0x61f875['shift']());}}}(a0_0x393a,0xd634d));import{MetaApi}from'../utils/meta-api';function a0_0x393a(){const _0x5d6097=['isPage','validation','__origin__','function','currentTarget','code-input','save','formRenderConfig','showAlertPopup','patchData','true','removeGarbageData','connectedCallback','getContextObject','map','editing','__seq__','fetch','info','tLabel','after','activity','getAndParseMenuMeta','focus','isNotEmpty','__dirtyfields__','click','cuFlag','renderRoot','filter','tText','Escape','activityDataSet','2810330fmuXbj','tagName','pageInitialized','__dirty__','name','properties','entries','styles','field-change','orgData','header','firstUpdated','currentData','column','parseFormConfigSet','includes','text.check-mandatory','before','dirtyData','13737664macRXc','8GIVrCg','parseFormConfigs','39334059oJrGwf','addEventListener','render','getBasicFormStyles','forEach','5141190MbOCgl','type','44lqdljF','setAttribute','detail','stopPropagation','text.NOTHING_CHANGED','parseBasicFormConfigs','getBasicFormHtml','2932328LIpAjH','formConfigSet','63881iqlqny','call','title.info','keys','parent_id','453180VrCkqP','record','startsWith','isEmpty','findOne','clear','form-field-change','formColumnConfig'];a0_0x393a=function(){return _0x5d6097;};return a0_0x393a();}import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{UiUtil}from'../utils/ui-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x3991(_0x3d4330,_0x714a13){const _0x393a6c=a0_0x393a();return a0_0x3991=function(_0x39915f,_0x31dab6){_0x39915f=_0x39915f-0x175;let _0x141803=_0x393a6c[_0x39915f];return _0x141803;},a0_0x3991(_0x3d4330,_0x714a13);}export const MetaFormMixin=_0x54d0b5=>class extends MetaButtonMixin(_0x54d0b5){static get[a0_0xcae413(0x187)](){const _0x4b35e0=a0_0xcae413;return MetaApi[_0x4b35e0(0x199)]();}static get[a0_0xcae413(0x185)](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get['context'](){const _0x580024=a0_0xcae413;return MetaUiUtil[_0x580024(0x1c0)](this);}async[a0_0xcae413(0x1bf)](){const _0x52e7d0=a0_0xcae413;await this[_0x52e7d0(0x175)](),this['isElement']&&await this[_0x52e7d0(0x195)](),this['activityDataSet']&&(this['dataSet']=this[_0x52e7d0(0x17f)]),!0x0!==this['is_activity']||this['parent_id']||(this[_0x52e7d0(0x1aa)]=_0x52e7d0(0x1c8)),super['connectedCallback']&&await super[_0x52e7d0(0x1bf)](),this['isElement']&&await this[_0x52e7d0(0x1c4)](),this['renderRoot'][_0x52e7d0(0x197)]('keydown',_0x5ec713=>{const _0x2c81af=_0x52e7d0;switch(_0x5ec713['key']){case'Esc':case _0x2c81af(0x17e):case'Enter':this[_0x2c81af(0x176)](),this[_0x2c81af(0x1b7)]&&this[_0x2c81af(0x1b7)]['removeAttribute'](_0x2c81af(0x1c2)),this['currentTarget']=null;}}),this[_0x52e7d0(0x17b)][_0x52e7d0(0x197)](_0x52e7d0(0x179),_0xcdd142=>{const _0x25f5ed=_0x52e7d0;_0xcdd142[_0x25f5ed(0x1a0)]();let _0x56d18a=_0xcdd142['target'];if(this[_0x25f5ed(0x1b7)]&&(this[_0x25f5ed(0x176)](),this[_0x25f5ed(0x1b7)]['removeAttribute'](_0x25f5ed(0x1c2))),'OX-GRID-FIELD'!==_0x56d18a[_0x25f5ed(0x181)]||!_0x56d18a[_0x25f5ed(0x18d)][_0x25f5ed(0x1ac)]['editable'])return this[_0x25f5ed(0x176)](),void(this[_0x25f5ed(0x1b7)]=null);this[_0x25f5ed(0x1b7)]=_0x56d18a,_0x56d18a[_0x25f5ed(0x19e)](_0x25f5ed(0x1c2),_0x25f5ed(0x1bd));}),this[_0x52e7d0(0x197)](_0x52e7d0(0x188),_0x154805=>{const _0x151fb0=_0x52e7d0;var {after:_0x24e44b,before:_0x22f41f,column:_0xd1d92f,record:_0x3bfa8d,row:_0x1cc11a}=_0x154805[_0x151fb0(0x19f)];if(ValueUtil['isEquals'](_0x24e44b,_0x22f41f))return;var _0x1e254e=_0xd1d92f[_0x151fb0(0x1b4)];if(_0x1e254e&&_0x151fb0(0x1b6)==typeof _0x1e254e&&!_0x1e254e[_0x151fb0(0x1a7)](this,_0x24e44b,_0x22f41f,_0x3bfa8d,_0xd1d92f))return;let _0x1ecc10=_0xd1d92f['name'];_0x3bfa8d[_0x1ecc10]=_0x24e44b,_0x3bfa8d[_0x151fb0(0x178)]=_0x3bfa8d[_0x151fb0(0x178)]||{},_0x3bfa8d['__origin__']=_0x3bfa8d['__origin__']||{},_0x3bfa8d[_0x151fb0(0x178)][_0x1ecc10]={'before':_0x3bfa8d[_0x151fb0(0x1b5)][_0x1ecc10],'after':_0x3bfa8d[_0x1ecc10]},ValueUtil['isEquals'](_0x3bfa8d[_0x151fb0(0x178)][_0x1ecc10][_0x151fb0(0x191)],_0x3bfa8d[_0x151fb0(0x178)][_0x1ecc10][_0x151fb0(0x1c7)])&&delete _0x3bfa8d['__dirtyfields__'][_0x1ecc10],ValueUtil[_0x151fb0(0x177)](_0x3bfa8d[_0x151fb0(0x178)])?_0x3bfa8d['__dirty__']='M':_0x3bfa8d[_0x151fb0(0x183)]='',this[_0x151fb0(0x1ac)]={..._0x3bfa8d},this['dispatchEvent'](new CustomEvent(_0x151fb0(0x1b1),{'bubbles':!0x0,'composed':!0x0,'detail':_0x154805['detail']}));});}async[a0_0xcae413(0x18b)](){const _0x153c81=a0_0xcae413;super[_0x153c81(0x18b)]&&await super['firstUpdated']();}async[a0_0xcae413(0x182)](){const _0x3257b1=a0_0xcae413;this['isPage']&&await this['parseFormConfigs'](),super[_0x3257b1(0x182)]&&await super[_0x3257b1(0x182)](),this[_0x3257b1(0x1b3)]&&await this[_0x3257b1(0x1c4)]();}[a0_0xcae413(0x198)](){const _0xe2fd54=a0_0xcae413;return MetaApi[_0xe2fd54(0x1a3)](this);}[a0_0xcae413(0x1a2)](_0x4aa2ad){const _0x41a6ec=a0_0xcae413;this[_0x41a6ec(0x1b2)]=_0x4aa2ad['grid_column'],this[_0x41a6ec(0x1ba)]=_0x4aa2ad['form'],_0x4aa2ad['button']=_0x4aa2ad['button'][_0x41a6ec(0x17c)](_0x35de36=>_0x41a6ec(0x1b9)==_0x35de36['name']);}async[a0_0xcae413(0x195)](){const _0x1ccb14=a0_0xcae413;this[_0x1ccb14(0x1a5)]=await MetaApi[_0x1ccb14(0x18e)](this);}get[a0_0xcae413(0x189)](){const _0x96600c=a0_0xcae413;return this[_0x96600c(0x1be)](this['record'][_0x96600c(0x1b5)]);}get['dirtyData'](){const _0x46e0a2=a0_0xcae413;if(ValueUtil[_0x46e0a2(0x1ae)]((this[_0x46e0a2(0x1ac)]||{})[_0x46e0a2(0x178)]))return{};let _0x41049b={};return Object['entries'](this['record']['__dirtyfields__'])[_0x46e0a2(0x1c1)](([_0x1ca7fd,_0x5b2561])=>{const _0x241cb8=_0x46e0a2;0x0==_0x1ca7fd[_0x241cb8(0x1ad)]('__')&&(_0x41049b[_0x1ca7fd]=_0x5b2561[_0x241cb8(0x1c7)]);}),_0x41049b;}get['currentData'](){const _0x5b9f3d=a0_0xcae413;return this[_0x5b9f3d(0x1be)](this['record']);}[a0_0xcae413(0x1be)](_0x299e15){const _0x2215f6=a0_0xcae413;let _0x59c8bc={};if(_0x299e15)return Object[_0x2215f6(0x186)](_0x299e15)['map'](([_0x2538de,_0xb0bcfd])=>{const _0x3b2944=_0x2215f6;0x0==_0x2538de[_0x3b2944(0x1ad)]('__')&&(_0x59c8bc[_0x2538de]=_0xb0bcfd);}),_0x59c8bc;}get[a0_0xcae413(0x1bc)](){const _0x31378a=a0_0xcae413;let _0x404439=this[_0x31378a(0x192)],_0x41b8e4=this[_0x31378a(0x1ac)],_0xe90dde=(this[_0x31378a(0x1b2)]||[])[_0x31378a(0x17c)](_0x4b1d22=>_0x31378a(0x1b8)===_0x4b1d22[_0x31378a(0x19c)])[_0x31378a(0x1c1)](_0x34fb0f=>_0x34fb0f[_0x31378a(0x184)]);if(!ValueUtil['isEmpty'](_0x404439))return ValueUtil[_0x31378a(0x177)](_0x41b8e4['id'])?(_0x404439['id']=_0x41b8e4['id'],_0x404439[_0x31378a(0x17a)]='M'):_0x404439[_0x31378a(0x17a)]='+',Object[_0x31378a(0x1a9)](_0x404439)[_0x31378a(0x19a)](_0x44cfe6=>{const _0x11abd9=_0x31378a;'object'==typeof _0x404439[_0x44cfe6]&&0x0==_0xe90dde[_0x11abd9(0x18f)](_0x44cfe6)&&(_0x404439[_0x44cfe6]={'id':_0x404439[_0x44cfe6]['id']});}),[_0x404439];}async['fetch'](){const _0x275d00=a0_0xcae413;if(ValueUtil[_0x275d00(0x1ae)](this[_0x275d00(0x1aa)]))return;let _0x3d9347=await this[_0x275d00(0x1af)](this['parent_id']);_0x3d9347[_0x275d00(0x1c3)]=0x1;let _0xfc74e={};Object['assign'](_0xfc74e,_0x3d9347),_0x3d9347['__origin__']=_0xfc74e,this[_0x275d00(0x1ac)]={..._0x3d9347};}async['save'](){const _0x216076=a0_0xcae413;let _0x471d21=this[_0x216076(0x1bc)];if(ValueUtil[_0x216076(0x1ae)](_0x471d21))return void MetaApi[_0x216076(0x1bb)](_0x216076(0x1a8),_0x216076(0x1a1));let _0x43fa49={};(this[_0x216076(0x1b2)]||[])[_0x216076(0x17c)](_0x2feb6a=>!0x0===_0x2feb6a['mandatory'])['forEach'](_0x32ba9a=>{const _0x35078f=_0x216076;_0x43fa49[_0x32ba9a[_0x35078f(0x184)]]=_0x32ba9a[_0x35078f(0x18a)];});let _0x24f6a5=this[_0x216076(0x18c)];for(let _0x5ccec4 in _0x43fa49)if(void 0x0===_0x24f6a5[_0x5ccec4]||''==_0x24f6a5[_0x5ccec4])return void UiUtil[_0x216076(0x1bb)](_0x216076(0x190),TermsUtil[_0x216076(0x17d)]('check-mandatory-field',{'x':TermsUtil[_0x216076(0x1c6)](_0x43fa49[_0x5ccec4])}),_0x216076(0x1c5),'confirm');let _0x339cc1=await this['updateMultiple'](_0x471d21);return _0x339cc1&&await this[_0x216076(0x1c4)](),_0x339cc1;}async[a0_0xcae413(0x1b0)](){const _0x30d125=a0_0xcae413;this[_0x30d125(0x1ac)]&&(this[_0x30d125(0x1ac)]={});}['getData'](){const _0x47f83f=a0_0xcae413;return this[_0x47f83f(0x18c)]||{};}};
@@ -1 +1 @@
1
- const a0_0x57cefc=a0_0x5233;(function(_0x2003e1,_0x14c86a){const _0xddcb59=a0_0x5233,_0x2ce9ed=_0x2003e1();while(!![]){try{const _0x57c11d=parseInt(_0xddcb59(0x21d))/0x1+parseInt(_0xddcb59(0x207))/0x2+-parseInt(_0xddcb59(0x1f8))/0x3+-parseInt(_0xddcb59(0x214))/0x4*(-parseInt(_0xddcb59(0x1f6))/0x5)+-parseInt(_0xddcb59(0x239))/0x6*(-parseInt(_0xddcb59(0x213))/0x7)+-parseInt(_0xddcb59(0x215))/0x8*(parseInt(_0xddcb59(0x1fa))/0x9)+parseInt(_0xddcb59(0x1fd))/0xa;if(_0x57c11d===_0x14c86a)break;else _0x2ce9ed['push'](_0x2ce9ed['shift']());}catch(_0x3f7539){_0x2ce9ed['push'](_0x2ce9ed['shift']());}}}(a0_0x370c,0xb66c0));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0xc73e16=>class extends MetaButtonMixin(_0xc73e16){static get['styles'](){return MetaApi['getBasicGristTabStyles']();}static get[a0_0x57cefc(0x221)](){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_0x57cefc(0x22b)](){const _0x4ac2c9=a0_0x57cefc;return this[_0x4ac2c9(0x22d)][_0x4ac2c9(0x204)](this[_0x4ac2c9(0x227)]);}get[a0_0x57cefc(0x217)](){const _0x6b6b47=a0_0x57cefc;return this[_0x6b6b47(0x22e)]?.['querySelector'](this[_0x6b6b47(0x200)]);}get['detailElement'](){const _0x5a2190=a0_0x57cefc;return this[_0x5a2190(0x22e)]['querySelector'](_0x5a2190(0x23a));}get[a0_0x57cefc(0x1f5)](){const _0x358724=a0_0x57cefc;let _0x6905df=MetaUiUtil[_0x358724(0x225)](this);return _0x6905df[_0x358724(0x223)]&&delete _0x6905df[_0x358724(0x223)],_0x6905df[_0x358724(0x226)]&&delete _0x6905df['exportable'],_0x6905df[_0x358724(0x222)]&&delete _0x6905df[_0x358724(0x222)],_0x6905df;}async[a0_0x57cefc(0x20c)](){const _0x3454f7=a0_0x57cefc;this[_0x3454f7(0x227)]=_0x3454f7(0x22c),this[_0x3454f7(0x200)]=_0x3454f7(0x229),await this[_0x3454f7(0x23f)](),this[_0x3454f7(0x233)]&&await this[_0x3454f7(0x231)](),this[_0x3454f7(0x237)]&&(this[_0x3454f7(0x201)]=(this['activityDataSet']||{})[_0x3454f7(0x1f7)]),super['connectedCallback']&&await super[_0x3454f7(0x20c)]();}async[a0_0x57cefc(0x240)](){const _0x586d4f=a0_0x57cefc;super[_0x586d4f(0x240)]&&await super[_0x586d4f(0x240)]();}async[a0_0x57cefc(0x234)](){const _0x3889a1=a0_0x57cefc;this[_0x3889a1(0x20d)]&&await this[_0x3889a1(0x231)](),super[_0x3889a1(0x234)]&&await super[_0x3889a1(0x234)]();}[a0_0x57cefc(0x20f)](){const _0x7f5735=a0_0x57cefc;return MetaApi[_0x7f5735(0x216)](this);}[a0_0x57cefc(0x1f9)](_0x23bd06){const _0x3bfc42=a0_0x57cefc;this[_0x3bfc42(0x228)]=_0x23bd06['grid'],this[_0x3bfc42(0x21f)]=_0x23bd06[_0x3bfc42(0x1f1)],this[_0x3bfc42(0x235)]=_0x23bd06[_0x3bfc42(0x202)],this[_0x3bfc42(0x209)]=_0x23bd06[_0x3bfc42(0x209)];}async[a0_0x57cefc(0x231)](){const _0x2659df=a0_0x57cefc;this[_0x2659df(0x21c)]=await MetaApi[_0x2659df(0x1f3)](this),this[_0x2659df(0x1fb)]=!0x0===this['useFilterForm'],this['useFilterForm']=!0x1,this['searchFieldValues']=[],this[_0x2659df(0x21e)]=this[_0x2659df(0x21c)][_0x2659df(0x203)]['filter'](_0x43f4ee=>_0x43f4ee[_0x2659df(0x212)])['map'](_0x4b1564=>{const _0x3441a2=_0x2659df;let _0x435d09={'name':_0x4b1564['name'],'type':_0x3441a2(0x202)===_0x4b1564[_0x3441a2(0x212)][_0x3441a2(0x20e)]?_0x3441a2(0x202):_0x4b1564[_0x3441a2(0x23b)],'label':_0x4b1564['header'],'operator':_0x4b1564['filter'][_0x3441a2(0x20e)]?_0x4b1564['filter'][_0x3441a2(0x20e)]:'eq'};return _0x4b1564[_0x3441a2(0x212)][_0x3441a2(0x23e)]&&(_0x435d09['options']=_0x4b1564[_0x3441a2(0x212)]['options']),_0x4b1564[_0x3441a2(0x1fe)][_0x3441a2(0x23e)]&&(_0x435d09[_0x3441a2(0x23e)]=_0x4b1564[_0x3441a2(0x1fe)]['options']),_0x4b1564[_0x3441a2(0x212)][_0x3441a2(0x238)]&&this[_0x3441a2(0x23c)]['push']({'name':_0x435d09[_0x3441a2(0x1ff)],'operator':_0x435d09[_0x3441a2(0x20e)],'value':_0x4b1564[_0x3441a2(0x212)][_0x3441a2(0x238)]}),delete _0x4b1564[_0x3441a2(0x212)],_0x435d09;});}async[a0_0x57cefc(0x205)](){const _0x5baab6=a0_0x57cefc;await this[_0x5baab6(0x22b)][_0x5baab6(0x205)]();}async[a0_0x57cefc(0x20a)]({page:_0x36f244=0x0,limit:_0x2800a3=0x0,sortings:_0x2c6cfc=[],filters:_0x490ca8=[]}){const _0x3c6ea2=a0_0x57cefc;let _0x4e6bce=this['renderRoot'][_0x3c6ea2(0x204)](_0x3c6ea2(0x206));return await _0x4e6bce[_0x3c6ea2(0x220)](),!0x0;}async[a0_0x57cefc(0x1f4)](){const _0x515da0=a0_0x57cefc;let _0x47391d=MetaApi[_0x515da0(0x1f2)](this[_0x515da0(0x22b)]);!!ValueUtil[_0x515da0(0x208)](_0x47391d)&&await this[_0x515da0(0x230)](_0x47391d)&&this[_0x515da0(0x205)]();}async[a0_0x57cefc(0x21b)](){const _0x3fd5ff=a0_0x57cefc;let _0x3559cc=MetaApi[_0x3fd5ff(0x20b)](this['grist'],!0x0);return ValueUtil[_0x3fd5ff(0x208)](_0x3559cc)?await this[_0x3fd5ff(0x21a)](_0x3559cc[0x0]):{};}async['delete'](){const _0x51b281=a0_0x57cefc;let _0x85af8a=MetaApi[_0x51b281(0x20b)](this[_0x51b281(0x22b)],!0x0);!!ValueUtil['isNotEmpty'](_0x85af8a)&&await this[_0x51b281(0x211)](_0x85af8a)&&this[_0x51b281(0x205)]();}async[a0_0x57cefc(0x1fc)](){const _0x35ddb5=a0_0x57cefc;let _0x29ef63=TermsUtil[_0x35ddb5(0x22a)](ValueUtil[_0x35ddb5(0x210)](this['menuInfo'],_0x35ddb5(0x218)));return await MetaApi[_0x35ddb5(0x23d)](this[_0x35ddb5(0x233)],_0x29ef63,this[_0x35ddb5(0x22b)]);}async['import'](){}['getData'](){const _0x37ca97=a0_0x57cefc;let _0x473c85=this[_0x37ca97(0x22b)]['___data'][_0x37ca97(0x241)];return _0x473c85=JSON[_0x37ca97(0x22f)](JSON[_0x37ca97(0x232)](_0x473c85)),_0x473c85[_0x37ca97(0x219)](_0x3e9de0=>{const _0x166bfd=_0x37ca97;Object[_0x166bfd(0x224)](_0x3e9de0)[_0x166bfd(0x219)](_0x4bd8d4=>{const _0x1dde7d=_0x166bfd;_0x4bd8d4[_0x1dde7d(0x1f0)]('__')&&delete _0x3e9de0[_0x4bd8d4];});}),{'main':_0x473c85,'detail':this[_0x37ca97(0x22d)]['querySelector'](_0x37ca97(0x206))[_0x37ca97(0x236)]()};}};function a0_0x5233(_0x5e8ec5,_0x105b09){const _0x370c82=a0_0x370c();return a0_0x5233=function(_0x5233e8,_0x3e2383){_0x5233e8=_0x5233e8-0x1f0;let _0x5928b7=_0x370c82[_0x5233e8];return _0x5928b7;},a0_0x5233(_0x5e8ec5,_0x105b09);}function a0_0x370c(){const _0x15e856=['filter','91FviPns','72052QiLSuP','1872yPJGao','getGristTabHtml','filterForm','title','forEach','findOne','find','gristConfigSet','102978dYUyfB','searchFields','gridColumnConfig','clear','properties','importable','actions','keys','getContextObject','exportable','gristId','gridConfig','ox-filters-form-base','tTitle','grist','ox-grist','renderRoot','shadowRoot','parse','updateMultiple','parseGristConfigs','stringify','isElement','pageInitialized','searchConfig','getData','activityDataSet','value','98190nRkBPE','#detail','type','searchFieldValues','exportableData','options','getAndParseMenuMeta','firstUpdated','records','startsWith','grid_column','patchesForUpdateMultiple','parseGridConfigSet','save','context','370TjmFuF','main','878667oCmOvH','parseBasicGridConfigs','50751PPdzno','useMasterFilterForm','export','4947600wIPaxd','record','name','filterFormId','dataSet','search','columns','querySelector','fetch','meta-tab-element','432340vfSuhp','isNotEmpty','gridEmphasized','beforeFetch','getSelectedIdList','connectedCallback','isPage','operator','render','getParams','deleteByIds'];a0_0x370c=function(){return _0x15e856;};return a0_0x370c();}
1
+ function a0_0x144d(){const _0x2f9ebf=['delete','___data','544XCHsJW','getGristTabHtml','meta-tab-element','menuInfo','forEach','columns','connectedCallback','getData','718KDxcKM','gridColumnConfig','311026qFcMIP','pageInitialized','gristId','renderRoot','deleteByIds','1061628NClpcG','2685POjVZe','useFilterForm','fetch','gridConfig','header','activityDataSet','searchFieldValues','options','context','updateMultiple','2729055oZNHWA','5792418AqPBRU','detailElement','gristConfigSet','search','isPage','grid_column','961146AIOdnv','patchesForUpdateMultiple','ox-filters-form-base','save','parse','dataSet','parseBasicGridConfigs','push','value','name','filterForm','querySelector','getContextObject','firstUpdated','tTitle','getAndParseMenuMeta','filter','grist','1337YBPISF','getParams','map','styles','isNotEmpty','#detail','type','actions','title','getSelectedIdList','find','export','shadowRoot','operator','render','clear','importable','stringify','searchConfig','parseGridConfigSet','import','records','isElement','getBasicGristTabStyles','exportableData','useMasterFilterForm','gridEmphasized','findOne','filterFormId','keys'];a0_0x144d=function(){return _0x2f9ebf;};return a0_0x144d();}const a0_0x5c0530=a0_0x5ee5;(function(_0x455fcc,_0x3daea9){const _0x116ccc=a0_0x5ee5,_0x4fce2e=_0x455fcc();while(!![]){try{const _0x1003d2=-parseInt(_0x116ccc(0x14d))/0x1+parseInt(_0x116ccc(0x14b))/0x2*(parseInt(_0x116ccc(0x153))/0x3)+parseInt(_0x116ccc(0x152))/0x4+-parseInt(_0x116ccc(0x15d))/0x5+parseInt(_0x116ccc(0x15e))/0x6+parseInt(_0x116ccc(0x176))/0x7*(-parseInt(_0x116ccc(0x196))/0x8)+parseInt(_0x116ccc(0x164))/0x9;if(_0x1003d2===_0x3daea9)break;else _0x4fce2e['push'](_0x4fce2e['shift']());}catch(_0x14d571){_0x4fce2e['push'](_0x4fce2e['shift']());}}}(a0_0x144d,0xc0a5c));import{html}from'lit';function a0_0x5ee5(_0x15c6b9,_0xcc76ef){const _0x144d23=a0_0x144d();return a0_0x5ee5=function(_0x5ee585,_0x44ce98){_0x5ee585=_0x5ee585-0x145;let _0x4cacc9=_0x144d23[_0x5ee585];return _0x4cacc9;},a0_0x5ee5(_0x15c6b9,_0xcc76ef);}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaGristTabMixin=_0x2fd39c=>class extends MetaButtonMixin(_0x2fd39c){static get[a0_0x5c0530(0x179)](){const _0x2f2a52=a0_0x5c0530;return MetaApi[_0x2f2a52(0x18d)]();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x5c0530(0x175)](){const _0x44073d=a0_0x5c0530;return this['renderRoot'][_0x44073d(0x16f)](this[_0x44073d(0x14f)]);}get[a0_0x5c0530(0x16e)](){const _0x525cc5=a0_0x5c0530;return this[_0x525cc5(0x182)]?.[_0x525cc5(0x16f)](this[_0x525cc5(0x192)]);}get[a0_0x5c0530(0x15f)](){const _0x343c0e=a0_0x5c0530;return this[_0x343c0e(0x182)][_0x343c0e(0x16f)](_0x343c0e(0x17b));}get[a0_0x5c0530(0x15b)](){const _0x5a16cd=a0_0x5c0530;let _0x2db3d8=MetaUiUtil[_0x5a16cd(0x170)](this);return _0x2db3d8[_0x5a16cd(0x17d)]&&delete _0x2db3d8['actions'],_0x2db3d8['exportable']&&delete _0x2db3d8['exportable'],_0x2db3d8[_0x5a16cd(0x186)]&&delete _0x2db3d8[_0x5a16cd(0x186)],_0x2db3d8;}async['connectedCallback'](){const _0x218624=a0_0x5c0530;this[_0x218624(0x14f)]='ox-grist',this[_0x218624(0x192)]=_0x218624(0x166),await this[_0x218624(0x173)](),this['isElement']&&await this['parseGristConfigs'](),this[_0x218624(0x158)]&&(this[_0x218624(0x169)]=(this['activityDataSet']||{})['main']),super[_0x218624(0x149)]&&await super['connectedCallback']();}async[a0_0x5c0530(0x171)](){const _0xa09c5b=a0_0x5c0530;super[_0xa09c5b(0x171)]&&await super[_0xa09c5b(0x171)]();}async[a0_0x5c0530(0x14e)](){const _0x1a8435=a0_0x5c0530;this[_0x1a8435(0x162)]&&await this['parseGristConfigs'](),super[_0x1a8435(0x14e)]&&await super[_0x1a8435(0x14e)]();}[a0_0x5c0530(0x184)](){const _0x59311b=a0_0x5c0530;return MetaApi[_0x59311b(0x197)](this);}[a0_0x5c0530(0x16a)](_0x596482){const _0x1b9d68=a0_0x5c0530;this[_0x1b9d68(0x156)]=_0x596482['grid'],this[_0x1b9d68(0x14c)]=_0x596482[_0x1b9d68(0x163)],this[_0x1b9d68(0x188)]=_0x596482['search'],this[_0x1b9d68(0x190)]=_0x596482[_0x1b9d68(0x190)];}async['parseGristConfigs'](){const _0x323782=a0_0x5c0530;this[_0x323782(0x160)]=await MetaApi[_0x323782(0x189)](this),this[_0x323782(0x18f)]=!0x0===this['useFilterForm'],this[_0x323782(0x154)]=!0x1,this[_0x323782(0x159)]=[],this['searchFields']=this[_0x323782(0x160)][_0x323782(0x148)][_0x323782(0x174)](_0x233f55=>_0x233f55['filter'])[_0x323782(0x178)](_0x27fe22=>{const _0x45c014=_0x323782;let _0x197852={'name':_0x27fe22[_0x45c014(0x16d)],'type':_0x45c014(0x161)===_0x27fe22['filter']['operator']?_0x45c014(0x161):_0x27fe22[_0x45c014(0x17c)],'label':_0x27fe22[_0x45c014(0x157)],'operator':_0x27fe22[_0x45c014(0x174)][_0x45c014(0x183)]?_0x27fe22[_0x45c014(0x174)][_0x45c014(0x183)]:'eq'};return _0x27fe22[_0x45c014(0x174)][_0x45c014(0x15a)]&&(_0x197852[_0x45c014(0x15a)]=_0x27fe22[_0x45c014(0x174)][_0x45c014(0x15a)]),_0x27fe22['record'][_0x45c014(0x15a)]&&(_0x197852[_0x45c014(0x15a)]=_0x27fe22['record'][_0x45c014(0x15a)]),_0x27fe22['filter']['value']&&this[_0x45c014(0x159)][_0x45c014(0x16b)]({'name':_0x197852[_0x45c014(0x16d)],'operator':_0x197852[_0x45c014(0x183)],'value':_0x27fe22[_0x45c014(0x174)][_0x45c014(0x16c)]}),delete _0x27fe22[_0x45c014(0x174)],_0x197852;});}async[a0_0x5c0530(0x155)](){const _0x56f762=a0_0x5c0530;await this[_0x56f762(0x175)][_0x56f762(0x155)]();}async['beforeFetch']({page:_0x158ae7=0x0,limit:_0x5051e5=0x0,sortings:_0x5628fd=[],filters:_0x24460e=[]}){const _0x596faf=a0_0x5c0530;let _0x16dddd=this[_0x596faf(0x150)][_0x596faf(0x16f)](_0x596faf(0x145));return await _0x16dddd[_0x596faf(0x185)](),!0x0;}async[a0_0x5c0530(0x167)](){const _0x2a774a=a0_0x5c0530;let _0x4db43e=MetaApi[_0x2a774a(0x165)](this[_0x2a774a(0x175)]);!!ValueUtil[_0x2a774a(0x17a)](_0x4db43e)&&await this[_0x2a774a(0x15c)](_0x4db43e)&&this[_0x2a774a(0x155)]();}async[a0_0x5c0530(0x180)](){const _0x401cc6=a0_0x5c0530;let _0x4c18b4=MetaApi[_0x401cc6(0x17f)](this['grist'],!0x0);return ValueUtil[_0x401cc6(0x17a)](_0x4c18b4)?await this[_0x401cc6(0x191)](_0x4c18b4[0x0]):{};}async[a0_0x5c0530(0x194)](){const _0x493837=a0_0x5c0530;let _0x54f828=MetaApi[_0x493837(0x17f)](this[_0x493837(0x175)],!0x0);!!ValueUtil[_0x493837(0x17a)](_0x54f828)&&await this[_0x493837(0x151)](_0x54f828)&&this[_0x493837(0x155)]();}async[a0_0x5c0530(0x181)](){const _0x156fce=a0_0x5c0530;let _0x56683d=TermsUtil[_0x156fce(0x172)](ValueUtil[_0x156fce(0x177)](this[_0x156fce(0x146)],_0x156fce(0x17e)));return await MetaApi[_0x156fce(0x18e)](this[_0x156fce(0x18c)],_0x56683d,this[_0x156fce(0x175)]);}async[a0_0x5c0530(0x18a)](){}['getData'](){const _0x14a941=a0_0x5c0530;let _0x37d609=this[_0x14a941(0x175)][_0x14a941(0x195)][_0x14a941(0x18b)];return _0x37d609=JSON[_0x14a941(0x168)](JSON[_0x14a941(0x187)](_0x37d609)),_0x37d609[_0x14a941(0x147)](_0x2acb19=>{const _0x3f5ca5=_0x14a941;Object[_0x3f5ca5(0x193)](_0x2acb19)[_0x3f5ca5(0x147)](_0x260d29=>{_0x260d29['startsWith']('__')&&delete _0x2acb19[_0x260d29];});}),{'main':_0x37d609,'detail':this[_0x14a941(0x150)][_0x14a941(0x16f)]('meta-tab-element')[_0x14a941(0x14a)]()};}};
@@ -1 +1 @@
1
- const a0_0x4d6d60=a0_0xd920;(function(_0x5032cc,_0x445031){const _0x4c9a50=a0_0xd920,_0x5b3d98=_0x5032cc();while(!![]){try{const _0x3036ee=parseInt(_0x4c9a50(0x1f1))/0x1+-parseInt(_0x4c9a50(0x1e9))/0x2*(parseInt(_0x4c9a50(0x1d3))/0x3)+-parseInt(_0x4c9a50(0x1cb))/0x4+parseInt(_0x4c9a50(0x1d9))/0x5*(parseInt(_0x4c9a50(0x1d5))/0x6)+parseInt(_0x4c9a50(0x1ee))/0x7+parseInt(_0x4c9a50(0x1d6))/0x8*(parseInt(_0x4c9a50(0x1f9))/0x9)+-parseInt(_0x4c9a50(0x203))/0xa*(parseInt(_0x4c9a50(0x1d1))/0xb);if(_0x3036ee===_0x445031)break;else _0x5b3d98['push'](_0x5b3d98['shift']());}catch(_0x4805c9){_0x5b3d98['push'](_0x5b3d98['shift']());}}}(a0_0xd59e,0xe0ef7));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';function a0_0xd920(_0xe5900f,_0x391331){const _0xd59e1b=a0_0xd59e();return a0_0xd920=function(_0xd9204a,_0x3b320f){_0xd9204a=_0xd9204a-0x1c8;let _0x2af7a5=_0xd59e1b[_0xd9204a];return _0x2af7a5;},a0_0xd920(_0xe5900f,_0x391331);}import{ValueUtil}from'../utils/value-util';function a0_0xd59e(){const _0x4fb2f6=['useFilterForm','render','27Hgodht','context','ox-filters-form-base','getMainGrist','record','exportable','value','clear','searchFieldValues','fetch','200DwDpWs','type','dataSet','masterElement','6040340CDcBMo','grist','useMasterFilterForm','filter','connectedCallback','grid','247511OsfMsc','search','444357bkkJAH','operator','41808YFchcb','2101224VKgphJ','actions','searchConfig','10rBqUUm','getBasicMainTabStyles','gridColumnConfig','filterFormId','activityDataSet','isPage','grid_column','options','map','name','styles','isElement','searchFields','querySelector','buttonConfig','getData','2RiDMkH','ox-grist','header','getContextObject','filterForm','10738182NMhLKz','parseGristConfigs','getAndParseMenuMeta','693638IOHtck','gridEmphasized','pageInitialized','gristConfigSet','firstUpdated','columns'];a0_0xd59e=function(){return _0x4fb2f6;};return a0_0xd59e();}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x3b603b=>class extends MetaButtonMixin(_0x3b603b){static get[a0_0x4d6d60(0x1e3)](){const _0x4f152b=a0_0x4d6d60;return MetaApi[_0x4f152b(0x1da)]();}static get['properties'](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x4d6d60(0x1cc)](){const _0x1d8d67=a0_0x4d6d60;return this[_0x1d8d67(0x1ca)][_0x1d8d67(0x1fc)]();}get[a0_0x4d6d60(0x1ed)](){const _0x4b8835=a0_0x4d6d60;return this['shadowRoot']?.[_0x4b8835(0x1e6)](this[_0x4b8835(0x1dc)]);}get[a0_0x4d6d60(0x1fa)](){const _0x1242ef=a0_0x4d6d60;let _0x4fa8e9=MetaUiUtil[_0x1242ef(0x1ec)](this);return _0x4fa8e9[_0x1242ef(0x1d7)]&&delete _0x4fa8e9[_0x1242ef(0x1d7)],_0x4fa8e9[_0x1242ef(0x1fe)]&&delete _0x4fa8e9[_0x1242ef(0x1fe)],_0x4fa8e9['importable']&&delete _0x4fa8e9['importable'],_0x4fa8e9;}async[a0_0x4d6d60(0x1cf)](){const _0x1f5faf=a0_0x4d6d60;this['gristId']=_0x1f5faf(0x1ea),this[_0x1f5faf(0x1dc)]=_0x1f5faf(0x1fb),await this[_0x1f5faf(0x1f0)](),this[_0x1f5faf(0x1e4)]&&await this['parseGristConfigs'](),this[_0x1f5faf(0x1dd)]&&(this[_0x1f5faf(0x1c9)]=(this[_0x1f5faf(0x1dd)]||{})['main']),super['connectedCallback']&&await super[_0x1f5faf(0x1cf)]();}async[a0_0x4d6d60(0x1f5)](){const _0x34cef6=a0_0x4d6d60;super[_0x34cef6(0x1f5)]&&await super[_0x34cef6(0x1f5)]();}async['pageInitialized'](){const _0x4bff72=a0_0x4d6d60;this[_0x4bff72(0x1de)]&&await this[_0x4bff72(0x1ef)](),super[_0x4bff72(0x1f3)]&&await super[_0x4bff72(0x1f3)]();}[a0_0x4d6d60(0x1f8)](){return MetaApi['getMainTabHtml'](this);}['parseBasicGridConfigs'](_0x22de9b){const _0x28296f=a0_0x4d6d60;this['gridConfig']=_0x22de9b[_0x28296f(0x1d0)],this[_0x28296f(0x1db)]=_0x22de9b[_0x28296f(0x1df)],this[_0x28296f(0x1d8)]=_0x22de9b[_0x28296f(0x1d2)],this[_0x28296f(0x1f2)]=_0x22de9b[_0x28296f(0x1f2)];}async[a0_0x4d6d60(0x1ef)](){const _0x56dfcb=a0_0x4d6d60;this['gristConfigSet']=await MetaApi['parseGridConfigSet'](this),this[_0x56dfcb(0x1cd)]=!0x0===this[_0x56dfcb(0x1f7)],this[_0x56dfcb(0x1f7)]=!0x1,this[_0x56dfcb(0x1e7)]=void 0x0,this['useButtonExport']=!0x1,this['useButtonImport']=!0x1,this[_0x56dfcb(0x201)]=[],this[_0x56dfcb(0x1e5)]=this[_0x56dfcb(0x1f4)][_0x56dfcb(0x1f6)][_0x56dfcb(0x1ce)](_0x4b7303=>_0x4b7303[_0x56dfcb(0x1ce)])[_0x56dfcb(0x1e1)](_0x584103=>{const _0x4b54be=_0x56dfcb;let _0x8da900={'name':_0x584103[_0x4b54be(0x1e2)],'type':'search'===_0x584103[_0x4b54be(0x1ce)][_0x4b54be(0x1d4)]?'search':_0x584103[_0x4b54be(0x1c8)],'label':_0x584103[_0x4b54be(0x1eb)],'operator':_0x584103['filter'][_0x4b54be(0x1d4)]?_0x584103['filter'][_0x4b54be(0x1d4)]:'eq'};return _0x584103[_0x4b54be(0x1ce)][_0x4b54be(0x1e0)]&&(_0x8da900[_0x4b54be(0x1e0)]=_0x584103[_0x4b54be(0x1ce)]['options']),_0x584103['record'][_0x4b54be(0x1e0)]&&(_0x8da900[_0x4b54be(0x1e0)]=_0x584103[_0x4b54be(0x1fd)][_0x4b54be(0x1e0)]),_0x584103[_0x4b54be(0x1ce)]['value']&&this['searchFieldValues']['push']({'name':_0x8da900['name'],'operator':_0x8da900[_0x4b54be(0x1d4)],'value':_0x584103[_0x4b54be(0x1ce)][_0x4b54be(0x1ff)]}),delete _0x584103['filter'],_0x8da900;});}async[a0_0x4d6d60(0x202)](){const _0x1eddf0=a0_0x4d6d60;await this[_0x1eddf0(0x1cc)][_0x1eddf0(0x202)]();}async['beforeFetch']({page:_0x61df1f=0x0,limit:_0x3f2074=0x0,sortings:_0x49f27e=[],filters:_0x35e6a1=[]}){const _0x3c3681=a0_0x4d6d60;return this['masterElement']&&this[_0x3c3681(0x1ca)][_0x3c3681(0x200)]&&await this[_0x3c3681(0x1ca)]['clear'](),!0x0;}[a0_0x4d6d60(0x1e8)](){const _0x5e7227=a0_0x4d6d60;return{'master':this[_0x5e7227(0x1ca)][_0x5e7227(0x1e8)]()};}};
1
+ const a0_0x4ad2a2=a0_0x3df6;function a0_0x3df6(_0x142e33,_0x23c0cb){const _0x671b68=a0_0x671b();return a0_0x3df6=function(_0x3df6fd,_0x423ea5){_0x3df6fd=_0x3df6fd-0x17d;let _0x2c3cf0=_0x671b68[_0x3df6fd];return _0x2c3cf0;},a0_0x3df6(_0x142e33,_0x23c0cb);}function a0_0x671b(){const _0x671de4=['getBasicMainTabStyles','useButtonExport','useFilterForm','341232CrmGDV','getMainGrist','operator','value','importable','dataSet','gristId','gristConfigSet','options','ox-filters-form-base','1000705JUIXTV','search','columns','masterElement','context','activityDataSet','filter','fetch','properties','3715398VwPtLm','render','actions','buttonConfig','4jANtdP','parseGristConfigs','push','querySelector','isElement','main','9709pumdVb','searchFieldValues','grist','useMasterFilterForm','gridEmphasized','parseBasicGridConfigs','exportable','getMainTabHtml','record','668376iMgiXh','grid_column','getContextObject','getAndParseMenuMeta','parseGridConfigSet','filterForm','pageInitialized','searchFields','getData','127171YUYxAi','ox-grist','300894AfSCMR','firstUpdated','styles','beforeFetch','searchConfig','name','filterFormId','822pZTOtY','connectedCallback','shadowRoot','clear','useButtonImport','type'];a0_0x671b=function(){return _0x671de4;};return a0_0x671b();}(function(_0x1f1d71,_0x26d5bd){const _0x24f85c=a0_0x3df6,_0x567159=_0x1f1d71();while(!![]){try{const _0x4d7276=parseInt(_0x24f85c(0x18d))/0x1+parseInt(_0x24f85c(0x18f))/0x2+-parseInt(_0x24f85c(0x184))/0x3+parseInt(_0x24f85c(0x1b6))/0x4*(-parseInt(_0x24f85c(0x1a9))/0x5)+parseInt(_0x24f85c(0x196))/0x6*(-parseInt(_0x24f85c(0x1bc))/0x7)+parseInt(_0x24f85c(0x19f))/0x8+parseInt(_0x24f85c(0x1b2))/0x9;if(_0x4d7276===_0x26d5bd)break;else _0x567159['push'](_0x567159['shift']());}catch(_0x332983){_0x567159['push'](_0x567159['shift']());}}}(a0_0x671b,0x1d54e));import{html}from'lit';import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x14c8b7=>class extends MetaButtonMixin(_0x14c8b7){static get[a0_0x4ad2a2(0x191)](){const _0x4bc36e=a0_0x4ad2a2;return MetaApi[_0x4bc36e(0x19c)]();}static get[a0_0x4ad2a2(0x1b1)](){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_0x4ad2a2(0x17d)](){const _0x420d6d=a0_0x4ad2a2;return this[_0x420d6d(0x1ac)][_0x420d6d(0x1a0)]();}get[a0_0x4ad2a2(0x189)](){const _0x3c8651=a0_0x4ad2a2;return this[_0x3c8651(0x198)]?.[_0x3c8651(0x1b9)](this['filterFormId']);}get[a0_0x4ad2a2(0x1ad)](){const _0x1a692c=a0_0x4ad2a2;let _0x4f9566=MetaUiUtil[_0x1a692c(0x186)](this);return _0x4f9566[_0x1a692c(0x1b4)]&&delete _0x4f9566[_0x1a692c(0x1b4)],_0x4f9566[_0x1a692c(0x181)]&&delete _0x4f9566[_0x1a692c(0x181)],_0x4f9566['importable']&&delete _0x4f9566[_0x1a692c(0x1a3)],_0x4f9566;}async[a0_0x4ad2a2(0x197)](){const _0x1df20a=a0_0x4ad2a2;this[_0x1df20a(0x1a5)]=_0x1df20a(0x18e),this[_0x1df20a(0x195)]=_0x1df20a(0x1a8),await this[_0x1df20a(0x187)](),this[_0x1df20a(0x1ba)]&&await this[_0x1df20a(0x1b7)](),this[_0x1df20a(0x1ae)]&&(this[_0x1df20a(0x1a4)]=(this[_0x1df20a(0x1ae)]||{})[_0x1df20a(0x1bb)]),super[_0x1df20a(0x197)]&&await super[_0x1df20a(0x197)]();}async[a0_0x4ad2a2(0x190)](){const _0x1e0514=a0_0x4ad2a2;super[_0x1e0514(0x190)]&&await super['firstUpdated']();}async[a0_0x4ad2a2(0x18a)](){const _0x5d3227=a0_0x4ad2a2;this['isPage']&&await this['parseGristConfigs'](),super[_0x5d3227(0x18a)]&&await super[_0x5d3227(0x18a)]();}[a0_0x4ad2a2(0x1b3)](){const _0xa92bcd=a0_0x4ad2a2;return MetaApi[_0xa92bcd(0x182)](this);}[a0_0x4ad2a2(0x180)](_0x4e4f1e){const _0x26f19e=a0_0x4ad2a2;this['gridConfig']=_0x4e4f1e['grid'],this['gridColumnConfig']=_0x4e4f1e[_0x26f19e(0x185)],this[_0x26f19e(0x193)]=_0x4e4f1e[_0x26f19e(0x1aa)],this[_0x26f19e(0x17f)]=_0x4e4f1e[_0x26f19e(0x17f)];}async[a0_0x4ad2a2(0x1b7)](){const _0x38f3ba=a0_0x4ad2a2;this[_0x38f3ba(0x1a6)]=await MetaApi[_0x38f3ba(0x188)](this),this[_0x38f3ba(0x17e)]=!0x0===this['useFilterForm'],this[_0x38f3ba(0x19e)]=!0x1,this[_0x38f3ba(0x1b5)]=void 0x0,this[_0x38f3ba(0x19d)]=!0x1,this[_0x38f3ba(0x19a)]=!0x1,this[_0x38f3ba(0x1bd)]=[],this[_0x38f3ba(0x18b)]=this[_0x38f3ba(0x1a6)][_0x38f3ba(0x1ab)]['filter'](_0x1d0855=>_0x1d0855['filter'])['map'](_0x4a36be=>{const _0x717727=_0x38f3ba;let _0x1c4141={'name':_0x4a36be[_0x717727(0x194)],'type':_0x717727(0x1aa)===_0x4a36be[_0x717727(0x1af)][_0x717727(0x1a1)]?'search':_0x4a36be[_0x717727(0x19b)],'label':_0x4a36be['header'],'operator':_0x4a36be[_0x717727(0x1af)][_0x717727(0x1a1)]?_0x4a36be['filter']['operator']:'eq'};return _0x4a36be['filter'][_0x717727(0x1a7)]&&(_0x1c4141[_0x717727(0x1a7)]=_0x4a36be[_0x717727(0x1af)][_0x717727(0x1a7)]),_0x4a36be['record'][_0x717727(0x1a7)]&&(_0x1c4141[_0x717727(0x1a7)]=_0x4a36be[_0x717727(0x183)]['options']),_0x4a36be[_0x717727(0x1af)][_0x717727(0x1a2)]&&this[_0x717727(0x1bd)][_0x717727(0x1b8)]({'name':_0x1c4141[_0x717727(0x194)],'operator':_0x1c4141[_0x717727(0x1a1)],'value':_0x4a36be['filter']['value']}),delete _0x4a36be[_0x717727(0x1af)],_0x1c4141;});}async[a0_0x4ad2a2(0x1b0)](){const _0x49e0c1=a0_0x4ad2a2;await this[_0x49e0c1(0x17d)]['fetch']();}async[a0_0x4ad2a2(0x192)]({page:_0x5d4c5a=0x0,limit:_0x5b249f=0x0,sortings:_0xe3236e=[],filters:_0x423cd7=[]}){const _0x2d3eb8=a0_0x4ad2a2;return this['masterElement']&&this[_0x2d3eb8(0x1ac)][_0x2d3eb8(0x199)]&&await this[_0x2d3eb8(0x1ac)][_0x2d3eb8(0x199)](),!0x0;}[a0_0x4ad2a2(0x18c)](){const _0x99b963=a0_0x4ad2a2;return{'master':this[_0x99b963(0x1ac)]['getData']()};}};