@things-factory/meta-ui 6.1.84 → 6.1.87

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 (103) hide show
  1. package/client/actions/main.js +4 -4
  2. package/client/component/filter/filter-form-meta-code-select.js +9 -9
  3. package/client/component/filter/filter-form-meta-object-select.js +9 -9
  4. package/client/component/filter/filter-grist-meta-code-select.js +9 -9
  5. package/client/component/filter/filter-grist-meta-object-select.js +9 -9
  6. package/client/component/grist/editor/grist-editor-code-input.js +6 -6
  7. package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
  8. package/client/component/grist/editor/grist-editor-meta-object-selector.js +8 -7
  9. package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
  10. package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
  11. package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
  12. package/client/component/popup/code-input-editor-popup.js +10 -10
  13. package/client/component/popup/file-upload-popup.js +11 -11
  14. package/client/component/popup/meta-object-selector-popup.js +11 -11
  15. package/client/mixin/meta-base-mixin.js +1 -1
  16. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  17. package/client/mixin/meta-button-mixin.js +1 -1
  18. package/client/mixin/meta-form-mixin.js +1 -1
  19. package/client/mixin/meta-grist-tab-mixin.js +1 -1
  20. package/client/mixin/meta-main-tab-mixin.js +1 -1
  21. package/client/mixin/meta-master-detail-mixin.js +1 -1
  22. package/client/mixin/meta-service-mixin.js +1 -1
  23. package/client/mixin/meta-tab-detail-mixin.js +1 -1
  24. package/client/mixin/meta-tab-mixin.js +1 -1
  25. package/client/pages/activity/meta-activity-define-page.js +13 -13
  26. package/client/pages/activity/meta-activity-list-page.js +6 -6
  27. package/client/pages/activity/meta-activity-viewer-element.js +3 -3
  28. package/client/pages/activity/meta-activity-writer-element.js +3 -3
  29. package/client/pages/activity/meta-activiy-mixin.js +3 -3
  30. package/client/pages/button-role/button-role-detail.js +1 -1
  31. package/client/pages/button-role/button-role-page.js +1 -1
  32. package/client/pages/entity/config-entity.js +29 -29
  33. package/client/pages/entity/main-menu-selector.js +7 -7
  34. package/client/pages/history/history-copy-list-popup.js +6 -6
  35. package/client/pages/history/history-json-list-popup.js +5 -5
  36. package/client/pages/loading-page.js +5 -5
  37. package/client/pages/menu/dynamic-menu-template.js +7 -7
  38. package/client/pages/menu/dynamic-menu.js +15 -15
  39. package/client/pages/menu/export-menu-popup.js +7 -7
  40. package/client/pages/meta-form-element.js +1 -1
  41. package/client/pages/meta-grist-element.js +1 -1
  42. package/client/pages/meta-grist-page.js +1 -1
  43. package/client/pages/meta-grist-tab-element.js +1 -1
  44. package/client/pages/meta-grist-tab-page.js +1 -1
  45. package/client/pages/meta-main-tab-element.js +1 -1
  46. package/client/pages/meta-main-tab-page.js +1 -1
  47. package/client/pages/meta-master-detail-element.js +1 -1
  48. package/client/pages/meta-master-detail-page.js +1 -1
  49. package/client/pages/meta-tab-detail-element.js +1 -1
  50. package/client/pages/meta-tab-detail-page.js +1 -1
  51. package/client/pages/meta-tab-element.js +1 -1
  52. package/client/pages/personalize/personal-column-selector.js +11 -11
  53. package/client/pages/terms/config-terminology.js +6 -6
  54. package/client/pages/work-code/work-code-detail-popup.js +1 -1
  55. package/client/pages/work-code/work-code-page.js +1 -1
  56. package/client/reducers/main.js +1 -1
  57. package/client/utils/grist-default-value.js +1 -1
  58. package/client/utils/meta-api.js +1 -1
  59. package/client/utils/meta-crypto.js +1 -1
  60. package/client/utils/meta-ui-util.js +103 -103
  61. package/client/utils/service-util.js +13 -13
  62. package/client/utils/terms-util.js +2 -2
  63. package/client/utils/ui-util.js +1 -1
  64. package/client/utils/value-util.js +1 -1
  65. package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
  66. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  67. package/client/viewparts/dynamic-menu-part.js +10 -10
  68. package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
  69. package/client/viewparts/dynamic-menu-portrait.js +9 -9
  70. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  71. package/package.json +3 -3
  72. package/server/activity/CommonActivity.js +2 -2
  73. package/server/constants/error-code.js +1 -1
  74. package/server/errors/license-error.js +1 -1
  75. package/server/routes.js +1 -1
  76. package/server/service/button-role/button-role-mutation.js +1 -1
  77. package/server/service/button-role/button-role-query.js +1 -1
  78. package/server/service/button-role/button-role-type.js +1 -1
  79. package/server/service/button-role/button-role.js +1 -1
  80. package/server/service/dynamic-menu/dynamic-menu-query.js +1 -1
  81. package/server/service/dynamic-menu/dynamic-menu-type.js +1 -1
  82. package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
  83. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  84. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  85. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  86. package/server/service/grid-personalize/grid-personalize.js +1 -1
  87. package/server/service/menu-button-auth/menu-button-auth-mutation.js +1 -1
  88. package/server/service/menu-button-auth/menu-button-auth-query.js +1 -1
  89. package/server/service/menu-button-auth/menu-button-auth-type.js +1 -1
  90. package/server/service/menu-button-auth/menu-button-auth.js +1 -1
  91. package/server/service/meta-activity/meta-activity-mutation.js +1 -1
  92. package/server/service/meta-activity/meta-activity-query.js +1 -1
  93. package/server/service/meta-activity/meta-activity-type.js +1 -1
  94. package/server/service/meta-secret/meta-resolver.js +1 -1
  95. package/server/service/set-translations/set-translation-resolver.js +1 -1
  96. package/server/service/work-code/work-code-mutation.js +1 -1
  97. package/server/service/work-code/work-code-query.js +1 -1
  98. package/server/service/work-code/work-code-type.js +1 -1
  99. package/server/service/work-code/work-code.js +1 -1
  100. package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
  101. package/server/service/work-code-detail/work-code-detail-query.js +1 -1
  102. package/server/service/work-code-detail/work-code-detail-type.js +1 -1
  103. package/server/service/work-code-detail/work-code-detail.js +1 -1
@@ -1,4 +1,4 @@
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`
1
+ const a0_0x1f6a51=a0_0x13c5;(function(_0x4deffa,_0x3f2167){const _0x306ab8=a0_0x13c5,_0x238bf5=_0x4deffa();while(!![]){try{const _0x460290=parseInt(_0x306ab8(0x1a9))/0x1+parseInt(_0x306ab8(0x1aa))/0x2+parseInt(_0x306ab8(0x1d2))/0x3*(parseInt(_0x306ab8(0x1b5))/0x4)+parseInt(_0x306ab8(0x1bb))/0x5+parseInt(_0x306ab8(0x1ce))/0x6*(parseInt(_0x306ab8(0x1bd))/0x7)+-parseInt(_0x306ab8(0x1bf))/0x8+-parseInt(_0x306ab8(0x1bc))/0x9*(parseInt(_0x306ab8(0x1ac))/0xa);if(_0x460290===_0x3f2167)break;else _0x238bf5['push'](_0x238bf5['shift']());}catch(_0x3a7176){_0x238bf5['push'](_0x238bf5['shift']());}}}(a0_0x4aaa,0x73221));import{client,gqlContext}from'@things-factory/shell';import{css,html,LitElement}from'lit';import{SingleColumnFormStyles}from'@things-factory/form-ui';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import a0_0x370ac9 from'graphql-tag';import{TermsUtil}from'../../utils/terms-util';function a0_0x13c5(_0x5458a6,_0x13a88b){const _0x4aaa47=a0_0x4aaa();return a0_0x13c5=function(_0x13c58a,_0x1df8ac){_0x13c58a=_0x13c58a-0x1a8;let _0x313e0b=_0x4aaa47[_0x13c58a];return _0x313e0b;},a0_0x13c5(_0x5458a6,_0x13a88b);}import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';class FileUploadPopup extends LitElement{static get['styles'](){return[SingleColumnFormStyles,css`
2
2
  :host {
3
3
  padding: 10px;
4
4
  display: flex;
@@ -27,30 +27,30 @@ const a0_0x525fe8=a0_0x169b;(function(_0x2d1af8,_0x1b365a){const _0x1f231a=a0_0x
27
27
  .button-container > button:active {
28
28
  background-color: var(--button-background-focus-color);
29
29
  }
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`
30
+ `];}static get[a0_0x1f6a51(0x1c9)](){return{'templateTypes':Array};}async[a0_0x1f6a51(0x1ae)](){const _0x1d48b7=a0_0x1f6a51;super[_0x1d48b7(0x1ae)](),this['templateTypes']=await ServiceUtil[_0x1d48b7(0x1b1)]('TEMPLATE_TYPES');}[a0_0x1f6a51(0x1b8)](){const _0x25adb=a0_0x1f6a51;return html`
31
31
  <div>
32
32
  <form id="input-form" class="single-column-form">
33
33
  <fieldset>
34
- <legend>${TermsUtil[_0x3e7eca(0x156)](_0x3e7eca(0x15c))}</legend>
35
- <label>${TermsUtil[_0x3e7eca(0x156)](_0x3e7eca(0x15c))}</label>
34
+ <legend>${TermsUtil[_0x25adb(0x1b3)](_0x25adb(0x1cd))}</legend>
35
+ <label>${TermsUtil['tLabel'](_0x25adb(0x1cd))}</label>
36
36
  <file-uploader custom-input id="uploadTemplate" name="attachments"></file-uploader>
37
37
 
38
- <label>${TermsUtil[_0x3e7eca(0x156)](_0x3e7eca(0x17b))}</label>
38
+ <label>${TermsUtil[_0x25adb(0x1b3)](_0x25adb(0x1c2))}</label>
39
39
  <select name="category" required>
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> `;})}
40
+ <option value="">${TermsUtil[_0x25adb(0x1c4)](_0x25adb(0x1d5))}</option>
41
+ ${(this[_0x25adb(0x1cf)]||[])[_0x25adb(0x1be)](_0x38c85f=>{const {name:_0xd4b9bf,description:_0x28943f}=_0x38c85f;return html` <option value="${_0xd4b9bf}">${_0xd4b9bf} ${_0x28943f?'\x20('+_0x28943f+')':''}</option> `;})}
42
42
  </select>
43
43
 
44
- <label>${TermsUtil['tLabel'](_0x3e7eca(0x15b))}</label>
44
+ <label>${TermsUtil[_0x25adb(0x1b3)](_0x25adb(0x1c5))}</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[_0x3e7eca(0x159)]}" label="${TermsUtil[_0x3e7eca(0x181)](_0x3e7eca(0x16a))}"></mwc-button>
51
+ <mwc-button raised @click="${this['_createAttachment']}" label="${TermsUtil[_0x25adb(0x1d4)]('create')}"></mwc-button>
52
52
  </div>
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`
53
+ `;}get[a0_0x1f6a51(0x1b6)](){const _0x81e020=a0_0x1f6a51;return this['renderRoot']['querySelector'](_0x81e020(0x1c6));}async[a0_0x1f6a51(0x1b4)](){const _0x26c594=a0_0x1f6a51;try{const _0x9c77ea=this[_0x26c594(0x1b7)]();(await client[_0x26c594(0x1ca)]({'mutation':a0_0x370ac9`
54
54
  mutation ($attachment: NewAttachment!) {
55
55
  createAttachment(attachment: $attachment) {
56
56
  id
@@ -58,4 +58,4 @@ const a0_0x525fe8=a0_0x169b;(function(_0x2d1af8,_0x1b365a){const _0x1f231a=a0_0x
58
58
  path
59
59
  }
60
60
  }
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);
61
+ `,'variables':{'attachment':_0x9c77ea},'context':{...gqlContext(),'hasUpload':!0x0}}))[_0x26c594(0x1ab)]||(history['back'](),this[_0x26c594(0x1b9)](new CustomEvent(_0x26c594(0x1cb),{'bubbles':!0x0,'composed':!0x0,'cancelable':!0x0})));}catch(_0x2fd98e){MetaApi[_0x26c594(0x1cc)](_0x26c594(0x1af),_0x2fd98e[_0x26c594(0x1a8)],_0x26c594(0x1ad),_0x26c594(0x1ba));}}[a0_0x1f6a51(0x1b7)](){const _0x17f0b1=a0_0x1f6a51;if(this[_0x17f0b1(0x1c3)][_0x17f0b1(0x1c0)](_0x17f0b1(0x1d6))[_0x17f0b1(0x1c8)]())return{'file':this[_0x17f0b1(0x1b6)][_0x17f0b1(0x1d3)][0x0],'category':this[_0x17f0b1(0x1d0)]('category')[_0x17f0b1(0x1c7)],'description':this[_0x17f0b1(0x1d0)](_0x17f0b1(0x1c5))['value']};throw new Error(TermsUtil[_0x17f0b1(0x1c4)](_0x17f0b1(0x1c1)));}[a0_0x1f6a51(0x1d0)](_0x59c4dd){const _0xc0c741=a0_0x1f6a51;return this['renderRoot'][_0xc0c741(0x1c0)](_0xc0c741(0x1d1)+_0x59c4dd+_0xc0c741(0x1b2)+_0x59c4dd+']');}}function a0_0x4aaa(){const _0x18b99e=['#uploadTemplate','value','checkValidity','properties','mutate','template-uploaded','showAlertPopup','file_upload','1641210iTonyl','templateTypes','_getInputByName','select[name=','6OTcHZT','files','tButton','please_select_upload_category','form','message','702494pxdEDB','590682mocEPq','errors','13746580eqvteT','error','connectedCallback','label.error','define','codeItems','],\x20input[name=','tLabel','_createAttachment','1484548IakDgm','_template','_getAttachmentInfo','render','dispatchEvent','confirm','2078095hEXDrP','9PQyDAm','7Mmgidx','map','4664160QxZmdN','querySelector','text.attachment_info_not_valid','category','renderRoot','tText','description'];a0_0x4aaa=function(){return _0x18b99e;};return a0_0x4aaa();}window['customElements'][a0_0x1f6a51(0x1b0)]('file-upload-popup',FileUploadPopup);
@@ -1,4 +1,4 @@
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`
1
+ const a0_0x6de0ea=a0_0x4f0a;function a0_0xa114(){const _0x3ed4e2=['2403RBSEMa','getGristColumnConfig2','3693966DVPcWa','9168axuLqg','gql','meta-code-selector','options','getGristMetaObjectOptions','grist','clickSelect','code','empty','nameField','rows','search','codeField','select-row-toggle','menu','getParams','entity','getCodeByScenario','substring','1364964bwQWqZ','67810QGGOyH','searchByPagination','values','string','align','resource-object','getGristPagination100Config','#ox-grist','24qYTqDc','menu_template','after_set_fields','filters','querySelector','6288Cnrjbj','push','connectedCallback','queryName','record','tButton','bind','left','dispField','524bWwwWB','7qLZqXC','fetchHandler','filter','length','getGristGuttersConfig','clickEmpty','meta-object-selector','name','includes','tText','object','cancel','info','getGristSelectableConfig','firstUpdated','appendable','basicArgs','sorters','type','query','confirmCallback','startsWith','forEach','hidden','clickCancel','map','selectRecord','gridConfig','65jKgINU','keys','meta-object-selector-popup','10015RqQMEs','569586LdDkxh','resource-code-selector','getCodeSelectorData','define','filterFields','shadowRoot','LIST','select','search_hidden_fields','getSelectColumns','columns','22qtfmXD','args','getCodeByEntity','render'];a0_0xa114=function(){return _0x3ed4e2;};return a0_0xa114();}(function(_0x9dd561,_0x4fd9b2){const _0x380375=a0_0x4f0a,_0x1544d1=_0x9dd561();while(!![]){try{const _0x4153d9=parseInt(_0x380375(0x1b5))/0x1*(parseInt(_0x380375(0x1ba))/0x2)+-parseInt(_0x380375(0x187))/0x3+parseInt(_0x380375(0x1c3))/0x4*(parseInt(_0x380375(0x186))/0x5)+parseInt(_0x380375(0x198))/0x6*(parseInt(_0x380375(0x1c4))/0x7)+-parseInt(_0x380375(0x199))/0x8*(-parseInt(_0x380375(0x196))/0x9)+parseInt(_0x380375(0x1ad))/0xa*(-parseInt(_0x380375(0x192))/0xb)+parseInt(_0x380375(0x1ac))/0xc*(-parseInt(_0x380375(0x183))/0xd);if(_0x4153d9===_0x4fd9b2)break;else _0x1544d1['push'](_0x1544d1['shift']());}catch(_0x8b68ec){_0x1544d1['push'](_0x1544d1['shift']());}}}(a0_0xa114,0x76fa5));import{css,html,LitElement}from'lit';import{CommonGristStyles,ButtonContainerStyles}from'@operato/styles';import{TermsUtil}from'../../utils/terms-util';function a0_0x4f0a(_0x22d7f5,_0x24b555){const _0xa114ae=a0_0xa114();return a0_0x4f0a=function(_0x4f0a25,_0x21b1ba){_0x4f0a25=_0x4f0a25-0x179;let _0x1b9f7f=_0xa114ae[_0x4f0a25];return _0x1b9f7f;},a0_0x4f0a(_0x22d7f5,_0x24b555);}import{ValueUtil}from'../../utils/value-util';import{ServiceUtil}from'../../utils/service-util';import{MetaApi}from'../../utils/meta-api';import{MetaUiUtil}from'../../utils/meta-ui-util';import{isMobileDevice}from'@operato/utils';import{closePopup}from'@operato/popup';export class MetaObjectSelectorPopup extends LitElement{static ['styles']=[CommonGristStyles,ButtonContainerStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -17,9 +17,9 @@ const a0_0x482a6f=a0_0x61aa;(function(_0x21141a,_0x41f7c8){const _0x14560a=a0_0x
17
17
  display: flex;
18
18
  margin-left: auto;
19
19
  }
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)}>
20
+ `];async[a0_0x6de0ea(0x1bc)](){const _0x1a8f8d=a0_0x6de0ea;this[_0x1a8f8d(0x18f)]=this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x1b8)]?this[_0x1a8f8d(0x19c)]['filters']:this['basicArgs']&&this[_0x1a8f8d(0x1d4)][_0x1a8f8d(0x1b8)]?this[_0x1a8f8d(0x1d4)][_0x1a8f8d(0x1b8)]:[],this['search_hidden_fields']=this['search_hidden_fields'][_0x1a8f8d(0x180)](_0x30c707=>{const _0x1368b4=_0x1a8f8d;let {name:_0xca2d03,operator:_0x29fe3c,value:_0x21e22f}=_0x30c707;return _0x21e22f[_0x1368b4(0x17c)]('::')&&(_0x21e22f=ValueUtil['getParams'](this[_0x1368b4(0x1be)],..._0x21e22f[_0x1368b4(0x1ab)](0x2)['split']('.'))),{'name':_0xca2d03,'operator':_0x29fe3c,'value':_0x21e22f};});let _0x296340=this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x1d5)]?this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x1d5)]:this['basicArgs']&&this['basicArgs'][_0x1a8f8d(0x1d5)]?this['basicArgs']['sorters']:[],_0x539787=this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x18b)]?this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x18b)]:this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x1b6)]?.[_0x1a8f8d(0x1a4)]&&this['options']['menu_template']?.[_0x1a8f8d(0x1a4)][_0x1a8f8d(0x1c7)]>0x0?this[_0x1a8f8d(0x19c)]['menu_template'][_0x1a8f8d(0x1a4)]:[],_0x5be8ca=this[_0x1a8f8d(0x19c)]['select'];if(!_0x539787||0x0==_0x539787[_0x1a8f8d(0x1c7)]){let _0x44b676;this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x1a5)]&&(_0x44b676=this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x1a5)]),this['options'][_0x1a8f8d(0x1a2)]&&(_0x44b676=this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x1a2)]),_0x44b676&&_0x539787[_0x1a8f8d(0x1bb)]({'name':_0x44b676,'operator':'eq'});}let _0x25a805=[...MetaApi[_0x1a8f8d(0x1c8)](!0x0,!0x1)];if(_0x5be8ca&&_0x5be8ca[_0x1a8f8d(0x1c7)]>0x0)for(let _0x81f248=0x0;_0x81f248<_0x5be8ca['length'];_0x81f248++){let {type:_0xf6c111='string',name:_0x17c40c,hidden:_0x215848=!0x1,record:_0xd9bc49={'align':_0x1a8f8d(0x1c1)},header:_0x6d85ab,sortable:_0x45e956=!0x1,width:_0x3d7677=0x87,options:_0x9d6be4,select_opt:_0x2d3a0e,object_opt:_0x573ad1}=_0x5be8ca[_0x81f248];if(_0x2d3a0e&&(_0x9d6be4=_0x2d3a0e),_0x573ad1&&(_0x9d6be4=_0x573ad1),[_0x1a8f8d(0x1b2),_0x1a8f8d(0x1ce)]['includes'](_0xf6c111)?_0xf6c111=_0x1a8f8d(0x1ca):[_0x1a8f8d(0x188)][_0x1a8f8d(0x1cc)](_0xf6c111)&&(_0xf6c111=_0x1a8f8d(0x19b)),'id'==_0x17c40c)_0x25a805[_0x1a8f8d(0x1bb)]({'type':_0x1a8f8d(0x1b0),'name':_0x17c40c,'hidden':!0x0});else{let _0x4d5110=MetaApi[_0x1a8f8d(0x197)](_0xf6c111,_0x17c40c,_0x6d85ab||_0x17c40c,_0xd9bc49['align']?_0xd9bc49[_0x1a8f8d(0x1b1)]:_0x1a8f8d(0x1c1),!0x1,_0x45e956,_0x3d7677);_0xf6c111[_0x1a8f8d(0x17c)]('meta-')&&_0x573ad1&&_0x573ad1[_0x1a8f8d(0x1a7)]&&(_0x9d6be4=await MetaUiUtil[_0x1a8f8d(0x19d)](_0xf6c111,_0x9d6be4)),_0x1a8f8d(0x18e)===_0xf6c111?Array['isArray'](_0x9d6be4)?_0x4d5110[_0x1a8f8d(0x1be)]['options']=_0x9d6be4:_0x1a8f8d(0x1a0)===_0x9d6be4[_0x1a8f8d(0x179)]?_0x4d5110[_0x1a8f8d(0x1be)][_0x1a8f8d(0x19c)]=await ServiceUtil[_0x1a8f8d(0x189)](_0x9d6be4[_0x1a8f8d(0x1af)]?_0x9d6be4[_0x1a8f8d(0x1af)]:_0x9d6be4[_0x1a8f8d(0x1cb)]):'scenario'===_0x9d6be4[_0x1a8f8d(0x179)]?_0x4d5110['record']['options']=await ServiceUtil[_0x1a8f8d(0x1aa)](_0x9d6be4[_0x1a8f8d(0x1cb)],_0x9d6be4[_0x1a8f8d(0x193)]):_0x1a8f8d(0x1a9)===_0x9d6be4[_0x1a8f8d(0x179)]&&(_0x4d5110[_0x1a8f8d(0x1be)]['options']=await ServiceUtil[_0x1a8f8d(0x194)](_0x9d6be4[_0x1a8f8d(0x193)])):'meta-object-selector'===_0xf6c111?_0x4d5110['record'][_0x1a8f8d(0x19c)]={..._0x9d6be4}:_0x1a8f8d(0x19b)==_0xf6c111&&(_0x9d6be4[_0x1a8f8d(0x1c2)]&&(_0x9d6be4['codes']=await ServiceUtil['getCodeByEntity'](_0x9d6be4)),_0x4d5110[_0x1a8f8d(0x1be)]['options']={..._0x9d6be4}),_0x4d5110[_0x1a8f8d(0x17e)]=_0x215848,_0x25a805[_0x1a8f8d(0x1bb)](_0x4d5110);}}else _0x25a805['push'](MetaApi[_0x1a8f8d(0x197)](_0x1a8f8d(0x1b0),this['options'][_0x1a8f8d(0x1a5)],this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x1a5)],_0x1a8f8d(0x1c1),!0x1,!0x0,0xb4)),this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x1c2)]&&_0x25a805['push'](MetaApi['getGristColumnConfig2'](_0x1a8f8d(0x1b0),this[_0x1a8f8d(0x19c)][_0x1a8f8d(0x1c2)],this[_0x1a8f8d(0x19c)]['dispField'],_0x1a8f8d(0x1c1),!0x1,!0x0,0x12c));_0x25a805[_0x1a8f8d(0x17d)](_0x2a607c=>{const _0x3237bb=_0x1a8f8d;let _0x490bde=_0x539787[_0x3237bb(0x1c6)](_0x4cf2fc=>'string'==typeof _0x4cf2fc?_0x2a607c[_0x3237bb(0x1cb)]==_0x4cf2fc:_0x2a607c[_0x3237bb(0x1cb)]==_0x4cf2fc[_0x3237bb(0x1cb)]);_0x490bde&&_0x490bde[_0x3237bb(0x1c7)]>0x0&&(_0x2a607c['filter']=_0x3237bb(0x1b0)==typeof _0x490bde[0x0]?_0x3237bb(0x1a4):_0x490bde[0x0]);});let _0x319dd1={'rows':MetaApi[_0x1a8f8d(0x1d1)](!0x1),'pagination':MetaApi[_0x1a8f8d(0x1b3)](),'columns':_0x25a805,'sorters':[..._0x296340]};_0x319dd1[_0x1a8f8d(0x1a3)]['handlers']={'click':_0x1a8f8d(0x1a6),'dblclick':(_0x1731bd,_0x2d805c,_0x3dd21c,_0x6b4bb5,_0x3260f2,_0x459b24)=>{const _0x43cda3=_0x1a8f8d;this[_0x43cda3(0x181)](_0x6b4bb5);}},_0x319dd1['rows'][_0x1a8f8d(0x1d3)]=!0x1,this[_0x1a8f8d(0x182)]=_0x319dd1,await super[_0x1a8f8d(0x1bc)]();}async[a0_0x6de0ea(0x1d2)](){const _0x23c208=a0_0x6de0ea;await super[_0x23c208(0x1d2)]();}[a0_0x6de0ea(0x195)](){const _0x1680eb=a0_0x6de0ea;return html`
21
+ <ox-grist id="ox-grist" .config=${this[_0x1680eb(0x182)]} .mode=${isMobileDevice()?_0x1680eb(0x18d):'GRID'} auto-fetch
22
+ .fetchHandler=${this['fetchHandler'][_0x1680eb(0x1c0)](this)}>
23
23
  <div slot="headroom">
24
24
  <div id="filters">
25
25
  <ox-filters-form></ox-filters-form>
@@ -27,14 +27,14 @@ const a0_0x482a6f=a0_0x61aa;(function(_0x21141a,_0x41f7c8){const _0x14560a=a0_0x
27
27
  </div>
28
28
  </ox-grist>
29
29
  <div id="button-container" class="button-container">
30
- <mwc-button raised label="${TermsUtil[_0x58d632(0x173)](_0x58d632(0x146))}" style="margin-left:7px;margin-top:7px;"
31
- @click=${this[_0x58d632(0x12c)]['bind'](this)}>
30
+ <mwc-button raised label="${TermsUtil['tButton'](_0x1680eb(0x1a1))}" style="margin-left:7px;margin-top:7px;"
31
+ @click=${this[_0x1680eb(0x1c9)][_0x1680eb(0x1c0)](this)}>
32
32
  </mwc-button>
33
- <mwc-button raised label="${TermsUtil['tButton'](_0x58d632(0x156))}" style="margin-left:7px;margin-top:7px;"
34
- @click=${this[_0x58d632(0x161)][_0x58d632(0x16d)](this)}>
33
+ <mwc-button raised label="${TermsUtil[_0x1680eb(0x1bf)](_0x1680eb(0x1cf))}" style="margin-left:7px;margin-top:7px;"
34
+ @click=${this[_0x1680eb(0x17f)][_0x1680eb(0x1c0)](this)}>
35
35
  </mwc-button>
36
- <mwc-button raised label="${TermsUtil[_0x58d632(0x173)](_0x58d632(0x145))}" style="margin-left:7px;margin-top:7px;"
37
- @click=${this['clickSelect']['bind'](this)}>
36
+ <mwc-button raised label="${TermsUtil[_0x1680eb(0x1bf)](_0x1680eb(0x18e))}" style="margin-left:7px;margin-top:7px;"
37
+ @click=${this[_0x1680eb(0x19f)][_0x1680eb(0x1c0)](this)}>
38
38
  </mwc-button>
39
39
  </div>
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);
40
+ `;}get[a0_0x6de0ea(0x19e)](){const _0x34ed8b=a0_0x6de0ea;return this[_0x34ed8b(0x18c)][_0x34ed8b(0x1b9)](_0x34ed8b(0x1b4));}async[a0_0x6de0ea(0x1c5)]({page:_0x3b638c=0x0,limit:_0x354ca8=0x0,sorters:_0x3e76ad=[],filters:_0x4afb87=[]}){const _0x5cab80=a0_0x6de0ea;let _0x55835a=[...this[_0x5cab80(0x18f)]];_0x4afb87[_0x5cab80(0x17d)](_0x4d5fe5=>{const _0x347c89=_0x5cab80;let _0x558e88=_0x55835a[_0x347c89(0x1c6)](_0x5a17e2=>_0x4d5fe5['name']==_0x5a17e2[_0x347c89(0x1cb)]);_0x558e88&&_0x558e88[_0x347c89(0x1c7)]>0x0&&delete _0x55835a[_0x4d5fe5[_0x347c89(0x1cb)]],_0x55835a[_0x347c89(0x1bb)](_0x4d5fe5);});let _0x5d8cc3=ValueUtil[_0x5cab80(0x1a8)](this[_0x5cab80(0x19c)]['menu_template']&&this[_0x5cab80(0x19c)][_0x5cab80(0x1b6)][_0x5cab80(0x19a)]||{},_0x5cab80(0x17a),_0x5cab80(0x1b7)),_0x60a628=Object[_0x5cab80(0x184)](_0x5d8cc3||{}),_0x387249=MetaApi[_0x5cab80(0x190)](this[_0x5cab80(0x182)][_0x5cab80(0x191)][_0x5cab80(0x1c6)](_0x21ee95=>!_0x60a628[_0x5cab80(0x1cc)](_0x21ee95[_0x5cab80(0x1cb)])));return await MetaApi[_0x5cab80(0x1ae)](this[_0x5cab80(0x19c)][_0x5cab80(0x1bd)],_0x55835a,_0x3e76ad,_0x3b638c,_0x354ca8,_0x387249);}async['clickEmpty'](_0x404bfc){const _0x5dc1a5=a0_0x6de0ea;this[_0x5dc1a5(0x17b)]&&this['confirmCallback'](null),closePopup(this);}async[a0_0x6de0ea(0x17f)](_0x481505){closePopup(this);}async['clickSelect'](_0x168b19){const _0x15a3cb=a0_0x6de0ea;let _0xf911ab=this[_0x15a3cb(0x19e)]['selected'];_0xf911ab&&0x0!=_0xf911ab[_0x15a3cb(0x1c7)]?this[_0x15a3cb(0x181)](_0xf911ab[0x0]):MetaApi['showToast'](_0x15a3cb(0x1d0),TermsUtil[_0x15a3cb(0x1cd)]('NOTHING_SELECTED'));}async['selectRecord'](_0x22edb0){const _0x515383=a0_0x6de0ea;this[_0x515383(0x17b)]&&this['confirmCallback'](_0x22edb0),closePopup(this);}}customElements[a0_0x6de0ea(0x18a)](a0_0x6de0ea(0x185),MetaObjectSelectorPopup);
@@ -1 +1 @@
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
+ function a0_0x1a15(_0x352542,_0x1fca1e){const _0x91f4b8=a0_0x91f4();return a0_0x1a15=function(_0x1a15a5,_0x10f825){_0x1a15a5=_0x1a15a5-0xc3;let _0x17e242=_0x91f4b8[_0x1a15a5];return _0x17e242;},a0_0x1a15(_0x352542,_0x1fca1e);}const a0_0x4b7c2b=a0_0x1a15;(function(_0x261849,_0x3e7f8d){const _0xabeb14=a0_0x1a15,_0x44707f=_0x261849();while(!![]){try{const _0x1beb1c=-parseInt(_0xabeb14(0xca))/0x1*(-parseInt(_0xabeb14(0xf2))/0x2)+parseInt(_0xabeb14(0xce))/0x3+parseInt(_0xabeb14(0xff))/0x4+parseInt(_0xabeb14(0xd8))/0x5+parseInt(_0xabeb14(0xe6))/0x6*(parseInt(_0xabeb14(0xea))/0x7)+parseInt(_0xabeb14(0xe2))/0x8*(-parseInt(_0xabeb14(0xcf))/0x9)+-parseInt(_0xabeb14(0xf9))/0xa*(parseInt(_0xabeb14(0xeb))/0xb);if(_0x1beb1c===_0x3e7f8d)break;else _0x44707f['push'](_0x44707f['shift']());}catch(_0x389685){_0x44707f['push'](_0x44707f['shift']());}}}(a0_0x91f4,0xd3140));import{MetaApi}from'./../utils/meta-api';import{ValueUtil}from'./../utils/value-util';function a0_0x91f4(){const _0x459fc8=['etcConfig','parseBasicServiceConfigs','meta-form-','isDetail','errors','getMenuMeta','getParams','callScenario','3981170hxEtSL','menu','isElement','isPopup','parseBasicGridConfigs','field-change','after','setParentId','form-field-change','tagName','8dxTidq','detail','menuInfo','result','179034HXfTix','parent_id','parseBasicTabConfigs','etc','392DbTZhr','43369876McPfmD','addEventListener','includes','params','is_detail','data','lifecycle','646066sirMdl','getAndParseMenuMeta','data-changed','excuteOpenPopupButtonClick','connectedCallback','isNotEmpty','fieldChangeHandlers','10AMohjm','startsWith','parseBasicFormConfigs','grist','isEmpty','fetch','1913168JMmLgp','keys','filterForm','active','dataChangeEventHandler','fetchHandler','isPage','executeCallScenarioButtonClick','name','body','split','is_popup','3xrJNBE','title_detail','properties','parseBasicButtonConfigs','4726227QdGpid','6144534SMfKrY'];a0_0x91f4=function(){return _0x459fc8;};return a0_0x91f4();}import{TermsUtil}from'./../utils/terms-util';export const MetaBaseMixin=_0x374b7a=>class extends _0x374b7a{static get[a0_0x4b7c2b(0xcc)](){return{'menuInfo':Object,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x447fe0=>Boolean(_0x447fe0)},'is_popup':{'type':Boolean,'converter':_0x57ae5c=>Boolean(_0x57ae5c)},'is_activity':{'type':Boolean,'converter':_0x2ad2e5=>Boolean(_0x2ad2e5)},'is_readonly':{'type':Boolean,'converter':_0x40f780=>Boolean(_0x40f780)}};}get[a0_0x4b7c2b(0xda)](){const _0x2ec526=a0_0x4b7c2b;return!0x0===this[_0x2ec526(0xef)]||!0x0===this[_0x2ec526(0xc9)];}get[a0_0x4b7c2b(0xd3)](){const _0x20a014=a0_0x4b7c2b;return!ValueUtil['isEmpty'](this[_0x20a014(0xef)])&&this[_0x20a014(0xef)];}async[a0_0x4b7c2b(0x103)](_0x188d84){const _0x1d4141=a0_0x4b7c2b;let {after:_0x436c1d,before:_0x2f7a9e,column:_0x1463c5,record:_0x14e0a4,row:_0x241333}=_0x188d84['detail'],_0x279762=_0x1463c5[_0x1d4141(0xc6)];if(Object[_0x1d4141(0x100)](this[_0x1d4141(0xf8)]||{})[_0x1d4141(0xed)](_0x279762)){let _0x2fae8f,_0x216339=(await MetaApi['callScenario'](void 0x0,this[_0x1d4141(0xf8)][_0x279762],{'columnName':_0x279762,'column':_0x1463c5,'record':_0x14e0a4,'after':_0x436c1d,'before':_0x2f7a9e,'row':_0x241333,'parentId':this['parent_id']?this[_0x1d4141(0xe7)]:''},!0x1))[_0x1d4141(0xf0)]['runScenario'][_0x1d4141(0xe5)]['result'];if(!_0x216339)return;_0x2fae8f=this['grist']?this[_0x1d4141(0xfc)][_0x1d4141(0xfc)][_0x1d4141(0xc7)]:this,Object['keys'](_0x216339)['forEach'](_0x28ea10=>{const _0x17ef48=_0x1d4141;_0x2fae8f['dispatchEvent'](new CustomEvent(_0x17ef48(0xdd),{'bubbles':!0x0,'composed':!0x0,'detail':{'record':_0x14e0a4,'row':_0x241333,'after':_0x216339[_0x28ea10],'before':_0x14e0a4[_0x28ea10],'column':{'name':_0x28ea10}}}));});}this['dispatchEvent'](new CustomEvent(_0x1d4141(0xf4),{'bubbles':!0x0,'composed':!0x0,'detail':_0x188d84[_0x1d4141(0xe3)]}));}async['connectedCallback'](){const _0x5e2733=a0_0x4b7c2b;super[_0x5e2733(0xf6)]&&await super[_0x5e2733(0xf6)](),this[_0x5e2733(0xe1)]['toLowerCase']()[_0x5e2733(0xfa)](_0x5e2733(0xd2))?this[_0x5e2733(0xec)](_0x5e2733(0xe0),async _0x27450b=>{const _0x162fb4=_0x5e2733;await this[_0x162fb4(0x103)](_0x27450b);}):this[_0x5e2733(0xec)](_0x5e2733(0xdd),async _0x142d4a=>{const _0x23b0fd=_0x5e2733;await this[_0x23b0fd(0x103)](_0x142d4a);});}async['pageUpdated'](_0x220d54,_0x3517f0,_0x437c7d){const _0x1323d7=a0_0x4b7c2b;let _0x5eb3c5=this['lifecycle']?.[_0x1323d7(0xee)]?this[_0x1323d7(0xf1)][_0x1323d7(0xee)]:{};this['isPage']&&this[_0x1323d7(0x102)]&&0x0==_0x437c7d['active']&&ValueUtil['isNotEmpty'](_0x5eb3c5)&&this[_0x1323d7(0xfe)]();}get[a0_0x4b7c2b(0xdb)](){const _0x5721b0=a0_0x4b7c2b;return!ValueUtil[_0x5721b0(0xfd)](this[_0x5721b0(0xc9)])&&this[_0x5721b0(0xc9)];}get[a0_0x4b7c2b(0xc4)](){const _0x25c5a0=a0_0x4b7c2b;return!this['is_detail']&&!this[_0x25c5a0(0xc9)];}async[a0_0x4b7c2b(0xf3)](){const _0x508a8f=a0_0x4b7c2b;let _0x3ed081=await MetaApi[_0x508a8f(0xd5)](this);_0x3ed081&&(this[_0x508a8f(0xe4)]=_0x3ed081[_0x508a8f(0xd9)],this[_0x508a8f(0xd0)]=_0x3ed081[_0x508a8f(0xe9)],this[_0x508a8f(0xdc)]&&this['parseBasicGridConfigs'](_0x3ed081),this[_0x508a8f(0xd1)]&&this[_0x508a8f(0xd1)](_0x3ed081),this[_0x508a8f(0xfb)]&&this[_0x508a8f(0xfb)](_0x3ed081),this[_0x508a8f(0xe8)]&&this[_0x508a8f(0xe8)](_0x3ed081),this[_0x508a8f(0xcd)]&&this[_0x508a8f(0xcd)](_0x3ed081));}async[a0_0x4b7c2b(0xfe)](){const _0x52a5cf=a0_0x4b7c2b;ValueUtil['isNotEmpty'](this[_0x52a5cf(0xfc)])?this[_0x52a5cf(0xfc)][_0x52a5cf(0xfe)]():(ValueUtil[_0x52a5cf(0xf7)](this[_0x52a5cf(0x101)])||this[_0x52a5cf(0xc3)])&&await this[_0x52a5cf(0xc3)]();}async[a0_0x4b7c2b(0xf5)](_0x487b99,_0x5bdf92,_0x17959b){const _0xd5185f=a0_0x4b7c2b;let _0x2ff254=TermsUtil['tTitle'](_0x487b99['title']);ValueUtil['isNotEmpty'](_0x487b99['title_detail'])&&(_0x2ff254=_0x2ff254+'-'+ValueUtil[_0xd5185f(0xd6)](_0x5bdf92,..._0x487b99[_0xd5185f(0xcb)][_0xd5185f(0xc8)]('.'))),MetaApi['openDynamicPopup'](_0x2ff254,_0x487b99,_0x5bdf92,_0x17959b);}async[a0_0x4b7c2b(0xc5)](_0x169cd4,_0x2550d9,_0x17def0){const _0x11dc4b=a0_0x4b7c2b;let _0x3311fa=await MetaApi[_0x11dc4b(0xd7)](_0x169cd4[_0x11dc4b(0xc6)],_0x169cd4[_0x11dc4b(0xc6)],_0x2550d9);!0x1!==_0x3311fa&&!_0x3311fa[_0x11dc4b(0xd4)]&&ValueUtil[_0x11dc4b(0xf7)](_0x169cd4[_0x11dc4b(0xde)])&&_0x17def0();}[a0_0x4b7c2b(0xdf)](_0x4677fa){const _0x144796=a0_0x4b7c2b;this['parent_id']=_0x4677fa,this[_0x144796(0xfe)]();}};
@@ -1,4 +1,4 @@
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
+ const a0_0x1bcce8=a0_0x26b6;function a0_0x26b6(_0x5b2db5,_0x2723a7){const _0x2be9d3=a0_0x2be9();return a0_0x26b6=function(_0x26b664,_0x730cd0){_0x26b664=_0x26b664-0xd7;let _0x4764ee=_0x2be9d3[_0x26b664];return _0x4764ee;},a0_0x26b6(_0x5b2db5,_0x2723a7);}(function(_0x4cd8f4,_0x3b873a){const _0x72469a=a0_0x26b6,_0x10dd75=_0x4cd8f4();while(!![]){try{const _0x2bdd65=-parseInt(_0x72469a(0x102))/0x1+-parseInt(_0x72469a(0xf5))/0x2*(parseInt(_0x72469a(0xeb))/0x3)+parseInt(_0x72469a(0xff))/0x4*(-parseInt(_0x72469a(0x114))/0x5)+parseInt(_0x72469a(0xfd))/0x6*(-parseInt(_0x72469a(0xf9))/0x7)+-parseInt(_0x72469a(0x107))/0x8+parseInt(_0x72469a(0xed))/0x9+-parseInt(_0x72469a(0x106))/0xa*(-parseInt(_0x72469a(0x10a))/0xb);if(_0x2bdd65===_0x3b873a)break;else _0x10dd75['push'](_0x10dd75['shift']());}catch(_0x33a7d2){_0x10dd75['push'](_0x10dd75['shift']());}}}(a0_0x2be9,0x858dc));import{html}from'lit';function a0_0x2be9(){const _0x5907af=['title','12afueUB','records','tTitle','1074951NolfRN','activityDataSet','querySelector','styles','10FhSWyb','1991880BIKOkf','isPage','forEach','48058351kqzwyU','parseGridConfigSet','grid','properties','isElement','connectedCallback','patchesForUpdateMultiple','import','gridEmphasized','stringify','1725535RINmPL','gristId','ox-filters-form','___data','grid_column','shadowRoot','getSelectedIdList','parseBasicGridConfigs','getParams','filterForm','search','find','deleteByIds','parse','getBasicGristStyles','grist','exportableData','clear','getAndParseMenuMeta','findOne','parseGristConfigs','export','context','12FTuMkI','dataSet','1815696TkrIBx','pageInitialized','getContextObject','gridColumnConfig','isNotEmpty','firstUpdated','filterFormId','getBasicGristHtml','378050xhOpsD','save','searchConfig','fetch','98sWNOFo','menuInfo','keys','getButtonContainer','389268Jdfvlq'];a0_0x2be9=function(){return _0x5907af;};return a0_0x2be9();}import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaBasicGristMixin=_0x441a68=>class extends MetaButtonMixin(_0x441a68){static get[a0_0x1bcce8(0x105)](){const _0x351dbc=a0_0x1bcce8;return MetaApi[_0x351dbc(0xe2)]();}static get[a0_0x1bcce8(0x10d)](){return{'gridConfig':Object,'gridColumnConfig':Array,'searchConfig':Array,'searchFormElement':String,'gristConfigSet':Object,'useFilterForm':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':Boolean,'gristId':String,'filterFormId':String};}get[a0_0x1bcce8(0xe3)](){const _0x5acec9=a0_0x1bcce8;return this['renderRoot']?.[_0x5acec9(0x104)](this[_0x5acec9(0x115)]);}get[a0_0x1bcce8(0xdd)](){const _0x25d101=a0_0x1bcce8;return this[_0x25d101(0xd9)]?.[_0x25d101(0x104)](this[_0x25d101(0xf3)]);}get[a0_0x1bcce8(0xea)](){const _0x42fd71=a0_0x1bcce8;return MetaUiUtil[_0x42fd71(0xef)](this);}async[a0_0x1bcce8(0x10f)](){const _0x400d85=a0_0x1bcce8;this[_0x400d85(0x115)]='ox-grist',this[_0x400d85(0xf3)]=_0x400d85(0x116),await this[_0x400d85(0xe6)](),this[_0x400d85(0x10e)]&&await this[_0x400d85(0xe8)](),this['activityDataSet']&&(this[_0x400d85(0xec)]=this[_0x400d85(0x103)]),super['connectedCallback']&&await super[_0x400d85(0x10f)]();}async[a0_0x1bcce8(0xf2)](){const _0x1b408d=a0_0x1bcce8;super[_0x1b408d(0xf2)]&&await super[_0x1b408d(0xf2)]();}async[a0_0x1bcce8(0xee)](){const _0x159f1b=a0_0x1bcce8;this[_0x159f1b(0x108)]&&await this[_0x159f1b(0xe8)](),super['pageInitialized']&&await super[_0x159f1b(0xee)]();}['render'](){const _0x45bdbe=a0_0x1bcce8;return html`
2
+ ${MetaApi[_0x45bdbe(0xf4)](this)}
3
+ ${this[_0x45bdbe(0x108)]?html``:MetaUiUtil[_0x45bdbe(0xfc)](this)}
4
+ `;}[a0_0x1bcce8(0xdb)](_0x410971){const _0x4481a1=a0_0x1bcce8;this['gridConfig']=_0x410971[_0x4481a1(0x10c)],this[_0x4481a1(0xf0)]=_0x410971[_0x4481a1(0xd8)],this[_0x4481a1(0xf7)]=_0x410971[_0x4481a1(0xde)],this[_0x4481a1(0x112)]=_0x410971[_0x4481a1(0x112)];}async[a0_0x1bcce8(0xe8)](){const _0x448c29=a0_0x1bcce8;this['gristConfigSet']=await MetaApi[_0x448c29(0x10b)](this);}async[a0_0x1bcce8(0xf8)](){const _0x4a7f21=a0_0x1bcce8;await this[_0x4a7f21(0xe3)]['fetch']();}async[a0_0x1bcce8(0xf6)](){const _0x160b54=a0_0x1bcce8;let _0x4ba1c0=MetaApi[_0x160b54(0x110)](this[_0x160b54(0xe3)]);!!ValueUtil['isNotEmpty'](_0x4ba1c0)&&await this['updateMultiple'](_0x4ba1c0)&&this['fetch']();}async[a0_0x1bcce8(0xdf)](){const _0x56b71a=a0_0x1bcce8;let _0x23bd0a=MetaApi[_0x56b71a(0xda)](this['grist'],!0x0);return ValueUtil['isNotEmpty'](_0x23bd0a)?await this[_0x56b71a(0xe7)](_0x23bd0a[0x0]):{};}async['delete'](){const _0x8cface=a0_0x1bcce8;let _0x59ac9a=MetaApi[_0x8cface(0xda)](this['grist'],!0x0);!!ValueUtil[_0x8cface(0xf1)](_0x59ac9a)&&await this[_0x8cface(0xe0)](_0x59ac9a)&&this[_0x8cface(0xf8)]();}async[a0_0x1bcce8(0xe9)](){const _0x21a0cf=a0_0x1bcce8;let _0x56e1cb=TermsUtil[_0x21a0cf(0x101)](ValueUtil[_0x21a0cf(0xdc)](this[_0x21a0cf(0xfa)],_0x21a0cf(0xfe)));return await MetaApi[_0x21a0cf(0xe4)](this[_0x21a0cf(0x10e)],_0x56e1cb,this[_0x21a0cf(0xe3)]);}async[a0_0x1bcce8(0x111)](){}async[a0_0x1bcce8(0xe5)](){const _0x2bba6d=a0_0x1bcce8;this[_0x2bba6d(0xe3)]&&(this[_0x2bba6d(0xe3)]['data']={'page':0x0,'total':0x0,'limit':0x0,'records':[]});}['getData'](){const _0x22f845=a0_0x1bcce8;let _0x29d213=this[_0x22f845(0xe3)][_0x22f845(0xd7)][_0x22f845(0x100)];return _0x29d213=JSON[_0x22f845(0xe1)](JSON[_0x22f845(0x113)](_0x29d213)),_0x29d213['forEach'](_0x5c5577=>{const _0x19ce53=_0x22f845;Object[_0x19ce53(0xfb)](_0x5c5577)[_0x19ce53(0x109)](_0x596f3b=>{_0x596f3b['startsWith']('__')&&delete _0x5c5577[_0x596f3b];});}),_0x29d213;}};
@@ -1 +1 @@
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
+ function a0_0x2a5a(){const _0x13e9bf=['gristButtonHandler','export','customButtonHandler','6843240kLETyl','192664tPUjrI','getContextButtons','491964ceHABY','useButtonExport','getBasicButtonHandler','useButtonImport','747DVUfSU','add','isPage','button','properties','7pkYFgl','52504rNGDRI','1051014Sqebab','getButtonActionHandler','26078778ogyUnj','4JjSJOx','getCustomButtonContainerStyles','buttonConfig','isButtonExist','15RgPdJT','702937OPVGaY','parseBasicButtonConfigs','import','useButtonAdd'];a0_0x2a5a=function(){return _0x13e9bf;};return a0_0x2a5a();}const a0_0x2240e6=a0_0x3a5a;(function(_0x2eebbe,_0x361f17){const _0x272957=a0_0x3a5a,_0x2ebdfa=_0x2eebbe();while(!![]){try{const _0x417f31=-parseInt(_0x272957(0x1e8))/0x1+parseInt(_0x272957(0x200))/0x2*(parseInt(_0x272957(0x1f2))/0x3)+parseInt(_0x272957(0x1f0))/0x4*(-parseInt(_0x272957(0x1e7))/0x5)+-parseInt(_0x272957(0x1fd))/0x6*(parseInt(_0x272957(0x1fb))/0x7)+parseInt(_0x272957(0x1fc))/0x8*(-parseInt(_0x272957(0x1f6))/0x9)+-parseInt(_0x272957(0x1ef))/0xa+parseInt(_0x272957(0x1ff))/0xb;if(_0x417f31===_0x361f17)break;else _0x2ebdfa['push'](_0x2ebdfa['shift']());}catch(_0x4be040){_0x2ebdfa['push'](_0x2ebdfa['shift']());}}}(a0_0x2a5a,0x6d28d));import{html}from'lit';function a0_0x3a5a(_0x2cb009,_0x3dc30a){const _0x2a5a67=a0_0x2a5a();return a0_0x3a5a=function(_0x3a5a7,_0x275607){_0x3a5a7=_0x3a5a7-0x1e5;let _0x49488b=_0x2a5a67[_0x3a5a7];return _0x49488b;},a0_0x3a5a(_0x2cb009,_0x3dc30a);}import{MetaUiUtil}from'../utils/meta-ui-util';import{MetaServiceMixin}from'./meta-service-mixin';export const MetaButtonMixin=_0x4bdaac=>class extends MetaServiceMixin(_0x4bdaac){static get[a0_0x2240e6(0x1fa)](){return{'buttonConfig':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean};}['getCustomButtonContainerStyle'](){const _0x34ab95=a0_0x2240e6;return MetaUiUtil[_0x34ab95(0x201)]();}[a0_0x2240e6(0x1f1)](){const _0x1ee9cf=a0_0x2240e6;return MetaUiUtil[_0x1ee9cf(0x1f1)](this);}['getButtonContainer'](){const _0x3d150f=a0_0x2240e6;return this[_0x3d150f(0x1f8)]?html``:MetaUiUtil['getButtonContainer'](this);}async[a0_0x2240e6(0x1f4)](_0x44201b,_0x30ab09,_0x4f9922){const _0x5bcf56=a0_0x2240e6;return await MetaUiUtil[_0x5bcf56(0x1fe)](this,_0x44201b,_0x30ab09,_0x4f9922);}async[a0_0x2240e6(0x1ee)](_0x5d6dd3){await MetaUiUtil['customButtonHandler'](this,_0x5d6dd3);}async[a0_0x2240e6(0x1ec)](_0x24f87a,_0x2150ee){const _0xc132f8=a0_0x2240e6;await MetaUiUtil[_0xc132f8(0x1ec)](this,_0x24f87a,_0x2150ee);}[a0_0x2240e6(0x1e9)](_0x89849){const _0x3019d4=a0_0x2240e6;this[_0x3019d4(0x1e5)]=_0x89849[_0x3019d4(0x1f9)],this[_0x3019d4(0x1f5)]=MetaUiUtil[_0x3019d4(0x1e6)](this[_0x3019d4(0x1e5)],_0x3019d4(0x1ea)),this[_0x3019d4(0x1f3)]=MetaUiUtil['isButtonExist'](this[_0x3019d4(0x1e5)],_0x3019d4(0x1ed)),this[_0x3019d4(0x1eb)]=MetaUiUtil[_0x3019d4(0x1e6)](this['buttonConfig'],_0x3019d4(0x1f7));}};
@@ -1 +1 @@
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
+ const a0_0x3c795c=a0_0x569b;(function(_0x58c5cc,_0x5af3bf){const _0x14e7c5=a0_0x569b,_0x34a83b=_0x58c5cc();while(!![]){try{const _0x6b7c37=-parseInt(_0x14e7c5(0x220))/0x1+parseInt(_0x14e7c5(0x213))/0x2*(-parseInt(_0x14e7c5(0x1c2))/0x3)+-parseInt(_0x14e7c5(0x1c0))/0x4+-parseInt(_0x14e7c5(0x1de))/0x5*(parseInt(_0x14e7c5(0x20c))/0x6)+parseInt(_0x14e7c5(0x1ea))/0x7*(parseInt(_0x14e7c5(0x20a))/0x8)+parseInt(_0x14e7c5(0x20d))/0x9*(parseInt(_0x14e7c5(0x207))/0xa)+-parseInt(_0x14e7c5(0x1c1))/0xb*(-parseInt(_0x14e7c5(0x1e3))/0xc);if(_0x6b7c37===_0x5af3bf)break;else _0x34a83b['push'](_0x34a83b['shift']());}catch(_0xf23872){_0x34a83b['push'](_0x34a83b['shift']());}}}(a0_0x4003,0x6e2bb));import{MetaApi}from'../utils/meta-api';import{MetaUiUtil}from'../utils/meta-ui-util';function a0_0x4003(){const _0x1e0039=['showAlertPopup','detail','name','activity','styles','tagName','code-input','is_activity','stopPropagation','5793830VkPrUa','formConfigSet','filter','2329016JmKeim','updateMultiple','6BUxlWq','9xqMmmt','before','setAttribute','column','addEventListener','button','2rtcbaj','true','confirm','tLabel','forEach','firstUpdated','info','isPage','object','render','validation','fetch','__dirtyfields__','151608VKbAQh','getBasicFormHtml','Enter','2842264iKELjC','2251403KnkOqu','159XOdaKo','startsWith','call','keys','findOne','dispatchEvent','title.info','map','field-change','parseBasicFormConfigs','after','save','editing','getContextObject','__seq__','isEmpty','parseFormConfigSet','check-mandatory-field','pageInitialized','patchData','click','connectedCallback','focus','parent_id','isElement','record','mandatory','activityDataSet','1287485jzblIz','removeGarbageData','cuFlag','assign','keydown','24XwNstM','dirtyData','currentTarget','form','getData','parseFormConfigs','isNotEmpty','14jAdbvi','function','isEquals','currentData','__dirty__','renderRoot','__origin__','formRenderConfig','tText','OX-GRID-FIELD','form-field-change','grid_column','target','Escape','editable','formColumnConfig','type','text.NOTHING_CHANGED','clear','entries'];a0_0x4003=function(){return _0x1e0039;};return a0_0x4003();}import{ValueUtil}from'../utils/value-util';import{UiUtil}from'../utils/ui-util';function a0_0x569b(_0x37769a,_0x4ed7dd){const _0x4003ba=a0_0x4003();return a0_0x569b=function(_0x569b13,_0x42c06c){_0x569b13=_0x569b13-0x1bf;let _0x512a59=_0x4003ba[_0x569b13];return _0x512a59;},a0_0x569b(_0x37769a,_0x4ed7dd);}import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaFormMixin=_0x2cba20=>class extends MetaButtonMixin(_0x2cba20){static get[a0_0x3c795c(0x202)](){return MetaApi['getBasicFormStyles']();}static get['properties'](){return{'formColumnConfig':Array,'formConfigSet':Object,'formRenderConfig':Array,'record':Object};}get['context'](){const _0x51dfad=a0_0x3c795c;return MetaUiUtil[_0x51dfad(0x1cf)](this);}async[a0_0x3c795c(0x1d7)](){const _0x1b2b16=a0_0x3c795c;await this['getAndParseMenuMeta'](),this[_0x1b2b16(0x1da)]&&await this[_0x1b2b16(0x1e8)](),this['activityDataSet']&&(this['dataSet']=this[_0x1b2b16(0x1dd)]),!0x0!==this[_0x1b2b16(0x205)]||this[_0x1b2b16(0x1d9)]||(this[_0x1b2b16(0x1d9)]=_0x1b2b16(0x201)),super[_0x1b2b16(0x1d7)]&&await super[_0x1b2b16(0x1d7)](),this['isElement']&&await this[_0x1b2b16(0x21e)](),this['renderRoot'][_0x1b2b16(0x211)](_0x1b2b16(0x1e2),_0x3cfc36=>{const _0x300df5=_0x1b2b16;switch(_0x3cfc36['key']){case'Esc':case _0x300df5(0x1f7):case _0x300df5(0x1bf):this[_0x300df5(0x1d8)](),this['currentTarget']&&this[_0x300df5(0x1e5)]['removeAttribute'](_0x300df5(0x1ce)),this['currentTarget']=null;}}),this[_0x1b2b16(0x1ef)][_0x1b2b16(0x211)](_0x1b2b16(0x1d6),_0x534ba2=>{const _0x27bb40=_0x1b2b16;_0x534ba2[_0x27bb40(0x206)]();let _0x4d9535=_0x534ba2[_0x27bb40(0x1f6)];if(this[_0x27bb40(0x1e5)]&&(this[_0x27bb40(0x1d8)](),this[_0x27bb40(0x1e5)]['removeAttribute'](_0x27bb40(0x1ce))),_0x27bb40(0x1f3)!==_0x4d9535[_0x27bb40(0x203)]||!_0x4d9535[_0x27bb40(0x210)][_0x27bb40(0x1db)][_0x27bb40(0x1f8)])return this['focus'](),void(this[_0x27bb40(0x1e5)]=null);this[_0x27bb40(0x1e5)]=_0x4d9535,_0x4d9535[_0x27bb40(0x20f)]('editing',_0x27bb40(0x214));}),this['addEventListener'](_0x1b2b16(0x1ca),_0x2b8df5=>{const _0x2dd058=_0x1b2b16;var {after:_0x19c434,before:_0x13ff0e,column:_0x466cb9,record:_0x41fc3e,row:_0x3de746}=_0x2b8df5[_0x2dd058(0x1ff)];if(ValueUtil['isEquals'](_0x19c434,_0x13ff0e))return;var _0x3960a3=_0x466cb9[_0x2dd058(0x21d)];if(_0x3960a3&&_0x2dd058(0x1eb)==typeof _0x3960a3&&!_0x3960a3[_0x2dd058(0x1c4)](this,_0x19c434,_0x13ff0e,_0x41fc3e,_0x466cb9))return;let _0x3f9499=_0x466cb9[_0x2dd058(0x200)];_0x41fc3e[_0x3f9499]=_0x19c434,_0x41fc3e[_0x2dd058(0x21f)]=_0x41fc3e['__dirtyfields__']||{},_0x41fc3e[_0x2dd058(0x1f0)]=_0x41fc3e[_0x2dd058(0x1f0)]||{},_0x41fc3e[_0x2dd058(0x21f)][_0x3f9499]={'before':_0x41fc3e['__origin__'][_0x3f9499],'after':_0x41fc3e[_0x3f9499]},ValueUtil[_0x2dd058(0x1ec)](_0x41fc3e['__dirtyfields__'][_0x3f9499][_0x2dd058(0x20e)],_0x41fc3e['__dirtyfields__'][_0x3f9499][_0x2dd058(0x1cc)])&&delete _0x41fc3e['__dirtyfields__'][_0x3f9499],ValueUtil[_0x2dd058(0x1e9)](_0x41fc3e['__dirtyfields__'])?_0x41fc3e[_0x2dd058(0x1ee)]='M':_0x41fc3e['__dirty__']='',this[_0x2dd058(0x1db)]={..._0x41fc3e},this[_0x2dd058(0x1c7)](new CustomEvent(_0x2dd058(0x1f4),{'bubbles':!0x0,'composed':!0x0,'detail':_0x2b8df5['detail']}));});}async['firstUpdated'](){const _0x28f73e=a0_0x3c795c;super[_0x28f73e(0x218)]&&await super[_0x28f73e(0x218)]();}async[a0_0x3c795c(0x1d4)](){const _0x431c9e=a0_0x3c795c;this[_0x431c9e(0x21a)]&&await this[_0x431c9e(0x1e8)](),super[_0x431c9e(0x1d4)]&&await super[_0x431c9e(0x1d4)](),this[_0x431c9e(0x21a)]&&await this[_0x431c9e(0x21e)]();}[a0_0x3c795c(0x21c)](){const _0x1fc790=a0_0x3c795c;return MetaApi[_0x1fc790(0x221)](this);}[a0_0x3c795c(0x1cb)](_0x123814){const _0xf0a07f=a0_0x3c795c;this[_0xf0a07f(0x1f9)]=_0x123814[_0xf0a07f(0x1f5)],this[_0xf0a07f(0x1f1)]=_0x123814[_0xf0a07f(0x1e6)],_0x123814[_0xf0a07f(0x212)]=_0x123814['button'][_0xf0a07f(0x209)](_0x126e14=>'save'==_0x126e14[_0xf0a07f(0x200)]);}async[a0_0x3c795c(0x1e8)](){const _0x1d205d=a0_0x3c795c;this[_0x1d205d(0x208)]=await MetaApi[_0x1d205d(0x1d2)](this);}get['orgData'](){const _0x4510f1=a0_0x3c795c;return this[_0x4510f1(0x1df)](this[_0x4510f1(0x1db)]['__origin__']);}get['dirtyData'](){const _0x50b18b=a0_0x3c795c;if(ValueUtil[_0x50b18b(0x1d1)]((this['record']||{})[_0x50b18b(0x21f)]))return{};let _0xb14753={};return Object[_0x50b18b(0x1fd)](this[_0x50b18b(0x1db)][_0x50b18b(0x21f)])['map'](([_0x261cef,_0x1cda1b])=>{const _0x13e49d=_0x50b18b;0x0==_0x261cef[_0x13e49d(0x1c3)]('__')&&(_0xb14753[_0x261cef]=_0x1cda1b['after']);}),_0xb14753;}get[a0_0x3c795c(0x1ed)](){const _0x4b55c6=a0_0x3c795c;return this[_0x4b55c6(0x1df)](this[_0x4b55c6(0x1db)]);}['removeGarbageData'](_0x380c25){const _0x30d9f2=a0_0x3c795c;let _0x3909ec={};if(_0x380c25)return Object[_0x30d9f2(0x1fd)](_0x380c25)[_0x30d9f2(0x1c9)](([_0x1d8e0d,_0x3a9f1a])=>{const _0x1d5d21=_0x30d9f2;0x0==_0x1d8e0d[_0x1d5d21(0x1c3)]('__')&&(_0x3909ec[_0x1d8e0d]=_0x3a9f1a);}),_0x3909ec;}get[a0_0x3c795c(0x1d5)](){const _0x36acda=a0_0x3c795c;let _0x5c8c86=this[_0x36acda(0x1e4)],_0x3c377c=this[_0x36acda(0x1db)],_0x31cc93=(this['formColumnConfig']||[])[_0x36acda(0x209)](_0x55672c=>_0x36acda(0x204)===_0x55672c[_0x36acda(0x1fa)])[_0x36acda(0x1c9)](_0x3e4fe0=>_0x3e4fe0[_0x36acda(0x200)]);if(!ValueUtil[_0x36acda(0x1d1)](_0x5c8c86))return ValueUtil[_0x36acda(0x1e9)](_0x3c377c['id'])?(_0x5c8c86['id']=_0x3c377c['id'],_0x5c8c86['cuFlag']='M'):_0x5c8c86[_0x36acda(0x1e0)]='+',Object[_0x36acda(0x1c5)](_0x5c8c86)[_0x36acda(0x217)](_0x172477=>{const _0x4c14ce=_0x36acda;_0x4c14ce(0x21b)==typeof _0x5c8c86[_0x172477]&&0x0==_0x31cc93['includes'](_0x172477)&&(_0x5c8c86[_0x172477]={'id':_0x5c8c86[_0x172477]['id']});}),[_0x5c8c86];}async[a0_0x3c795c(0x21e)](){const _0x206798=a0_0x3c795c;if(ValueUtil[_0x206798(0x1d1)](this['parent_id']))return;let _0x14c3d9=await this[_0x206798(0x1c6)](this[_0x206798(0x1d9)]);_0x14c3d9[_0x206798(0x1d0)]=0x1;let _0x4b04da={};Object[_0x206798(0x1e1)](_0x4b04da,_0x14c3d9),_0x14c3d9['__origin__']=_0x4b04da,this['record']={..._0x14c3d9};}async[a0_0x3c795c(0x1cd)](){const _0x81316b=a0_0x3c795c;let _0x1315ad=this['patchData'];if(ValueUtil[_0x81316b(0x1d1)](_0x1315ad))return void MetaApi['showAlertPopup'](_0x81316b(0x1c8),_0x81316b(0x1fb));let _0x351459={};(this[_0x81316b(0x1f9)]||[])[_0x81316b(0x209)](_0x12005a=>!0x0===_0x12005a[_0x81316b(0x1dc)])['forEach'](_0x2dc3aa=>{const _0x316698=_0x81316b;_0x351459[_0x2dc3aa[_0x316698(0x200)]]=_0x2dc3aa['header'];});let _0x475474=this[_0x81316b(0x1ed)];for(let _0x278cc9 in _0x351459)if(void 0x0===_0x475474[_0x278cc9]||''==_0x475474[_0x278cc9])return void UiUtil[_0x81316b(0x1fe)]('text.check-mandatory',TermsUtil[_0x81316b(0x1f2)](_0x81316b(0x1d3),{'x':TermsUtil[_0x81316b(0x216)](_0x351459[_0x278cc9])}),_0x81316b(0x219),_0x81316b(0x215));let _0x2ca1d8=await this[_0x81316b(0x20b)](_0x1315ad);return _0x2ca1d8&&await this['fetch'](),_0x2ca1d8;}async[a0_0x3c795c(0x1fc)](){const _0x5aa53e=a0_0x3c795c;this[_0x5aa53e(0x1db)]&&(this[_0x5aa53e(0x1db)]={});}[a0_0x3c795c(0x1e7)](){const _0x447450=a0_0x3c795c;return this[_0x447450(0x1ed)]||{};}};
@@ -1 +1 @@
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
+ const a0_0x4a9d61=a0_0x3f8c;(function(_0x497223,_0xc3cfda){const _0x362e91=a0_0x3f8c,_0x51755a=_0x497223();while(!![]){try{const _0x477713=parseInt(_0x362e91(0x77))/0x1+parseInt(_0x362e91(0xaa))/0x2+-parseInt(_0x362e91(0x92))/0x3*(-parseInt(_0x362e91(0x86))/0x4)+parseInt(_0x362e91(0x9d))/0x5*(parseInt(_0x362e91(0x99))/0x6)+-parseInt(_0x362e91(0x7f))/0x7*(-parseInt(_0x362e91(0x83))/0x8)+-parseInt(_0x362e91(0x80))/0x9*(parseInt(_0x362e91(0xaf))/0xa)+-parseInt(_0x362e91(0x78))/0xb*(parseInt(_0x362e91(0xc4))/0xc);if(_0x477713===_0xc3cfda)break;else _0x51755a['push'](_0x51755a['shift']());}catch(_0x5ee99e){_0x51755a['push'](_0x51755a['shift']());}}}(a0_0x2c96,0xefd3b));import{html}from'lit';import{MetaApi}from'../utils/meta-api';function a0_0x2c96(){const _0x3c8b33=['1439900JbtcfY','grid','meta-tab-element','getGristTabHtml','getAndParseMenuMeta','5239970DNvNnb','useMasterFilterForm','title','operator','filterFormId','push','gridEmphasized','getData','detailElement','getParams','forEach','actions','import','options','delete','searchConfig','grist','filter','firstUpdated','searchFieldValues','type','18440124dCsIEQ','isPage','name','styles','deleteByIds','searchFields','updateMultiple','startsWith','value','1270182gOGVlB','11pINAxH','records','isNotEmpty','dataSet','save','patchesForUpdateMultiple','getContextObject','34573NapQjC','27GLXfBo','main','tTitle','2480sDiKNr','getBasicGristTabStyles','render','4voDyIC','parseBasicGridConfigs','header','parse','find','keys','fetch','shadowRoot','context','gridConfig','activityDataSet','ox-filters-form-base','390555iEDxmm','parseGridConfigSet','getSelectedIdList','map','clear','filterForm','exportableData','659388FpVOEz','ox-grist','search','gridColumnConfig','20jdZZaC','beforeFetch','#detail','querySelector','gristConfigSet','connectedCallback','exportable','isElement','renderRoot','pageInitialized','stringify','findOne','importable'];a0_0x2c96=function(){return _0x3c8b33;};return a0_0x2c96();}import{MetaUiUtil}from'../utils/meta-ui-util';import{UiUtil}from'../utils/ui-util';import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';function a0_0x3f8c(_0xc260c0,_0x205d8a){const _0x2c96db=a0_0x2c96();return a0_0x3f8c=function(_0x3f8c2f,_0x2a6414){_0x3f8c2f=_0x3f8c2f-0x72;let _0x41d54f=_0x2c96db[_0x3f8c2f];return _0x41d54f;},a0_0x3f8c(_0xc260c0,_0x205d8a);}export const MetaGristTabMixin=_0x407990=>class extends MetaButtonMixin(_0x407990){static get[a0_0x4a9d61(0xc7)](){const _0x3af322=a0_0x4a9d61;return MetaApi[_0x3af322(0x84)]();}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_0x4a9d61(0xbf)](){const _0x51a698=a0_0x4a9d61;return this[_0x51a698(0xa5)][_0x51a698(0xa0)](this['gristId']);}get[a0_0x4a9d61(0x97)](){const _0x3c1535=a0_0x4a9d61;return this['shadowRoot']?.[_0x3c1535(0xa0)](this['filterFormId']);}get[a0_0x4a9d61(0xb7)](){const _0x202eae=a0_0x4a9d61;return this[_0x202eae(0x8d)]['querySelector'](_0x202eae(0x9f));}get[a0_0x4a9d61(0x8e)](){const _0x351b97=a0_0x4a9d61;let _0x5d4ffe=MetaUiUtil[_0x351b97(0x7e)](this);return _0x5d4ffe[_0x351b97(0xba)]&&delete _0x5d4ffe[_0x351b97(0xba)],_0x5d4ffe[_0x351b97(0xa3)]&&delete _0x5d4ffe[_0x351b97(0xa3)],_0x5d4ffe['importable']&&delete _0x5d4ffe[_0x351b97(0xa9)],_0x5d4ffe;}async[a0_0x4a9d61(0xa2)](){const _0x536aea=a0_0x4a9d61;this['gristId']=_0x536aea(0x9a),this[_0x536aea(0xb3)]=_0x536aea(0x91),await this[_0x536aea(0xae)](),this[_0x536aea(0xa4)]&&await this['parseGristConfigs'](),this[_0x536aea(0x90)]&&(this[_0x536aea(0x7b)]=(this[_0x536aea(0x90)]||{})[_0x536aea(0x81)]),super[_0x536aea(0xa2)]&&await super[_0x536aea(0xa2)]();}async[a0_0x4a9d61(0xc1)](){const _0x9798b5=a0_0x4a9d61;super[_0x9798b5(0xc1)]&&await super['firstUpdated']();}async['pageInitialized'](){const _0x352801=a0_0x4a9d61;this[_0x352801(0xc5)]&&await this['parseGristConfigs'](),super[_0x352801(0xa6)]&&await super[_0x352801(0xa6)]();}[a0_0x4a9d61(0x85)](){const _0x27f730=a0_0x4a9d61;return MetaApi[_0x27f730(0xad)](this);}[a0_0x4a9d61(0x87)](_0x24e783){const _0x4d1625=a0_0x4a9d61;this[_0x4d1625(0x8f)]=_0x24e783[_0x4d1625(0xab)],this[_0x4d1625(0x9c)]=_0x24e783['grid_column'],this[_0x4d1625(0xbe)]=_0x24e783[_0x4d1625(0x9b)],this[_0x4d1625(0xb5)]=_0x24e783[_0x4d1625(0xb5)];}async['parseGristConfigs'](){const _0x5be974=a0_0x4a9d61;this[_0x5be974(0xa1)]=await MetaApi[_0x5be974(0x93)](this),this[_0x5be974(0xb0)]=!0x0===this['useFilterForm'],this['useFilterForm']=!0x1,this[_0x5be974(0xc2)]=[],this[_0x5be974(0x73)]=this[_0x5be974(0xa1)]['columns']['filter'](_0x54c038=>_0x54c038[_0x5be974(0xc0)])[_0x5be974(0x95)](_0x4ca470=>{const _0x5eb8c1=_0x5be974;let _0x5d61dc={'name':_0x4ca470[_0x5eb8c1(0xc6)],'type':'search'===_0x4ca470[_0x5eb8c1(0xc0)][_0x5eb8c1(0xb2)]?'search':_0x4ca470[_0x5eb8c1(0xc3)],'label':_0x4ca470[_0x5eb8c1(0x88)],'operator':_0x4ca470[_0x5eb8c1(0xc0)][_0x5eb8c1(0xb2)]?_0x4ca470[_0x5eb8c1(0xc0)]['operator']:'eq'};return _0x4ca470[_0x5eb8c1(0xc0)][_0x5eb8c1(0xbc)]&&(_0x5d61dc[_0x5eb8c1(0xbc)]=_0x4ca470['filter'][_0x5eb8c1(0xbc)]),_0x4ca470['record'][_0x5eb8c1(0xbc)]&&(_0x5d61dc[_0x5eb8c1(0xbc)]=_0x4ca470['record'][_0x5eb8c1(0xbc)]),_0x4ca470['filter'][_0x5eb8c1(0x76)]&&this[_0x5eb8c1(0xc2)][_0x5eb8c1(0xb4)]({'name':_0x5d61dc[_0x5eb8c1(0xc6)],'operator':_0x5d61dc['operator'],'value':_0x4ca470[_0x5eb8c1(0xc0)]['value']}),delete _0x4ca470[_0x5eb8c1(0xc0)],_0x5d61dc;});}async['fetch'](){const _0x3807b9=a0_0x4a9d61;await this[_0x3807b9(0xbf)]['fetch']();}async[a0_0x4a9d61(0x9e)]({page:_0x7f7c8=0x0,limit:_0x3a43d8=0x0,sortings:_0x2c85dd=[],filters:_0x111835=[]}){const _0x10c292=a0_0x4a9d61;let _0x562e74=this[_0x10c292(0xa5)][_0x10c292(0xa0)](_0x10c292(0xac));return await _0x562e74[_0x10c292(0x96)](),!0x0;}async[a0_0x4a9d61(0x7c)](){const _0x2ac982=a0_0x4a9d61;let _0x3897c8=MetaApi[_0x2ac982(0x7d)](this['grist']);!!ValueUtil[_0x2ac982(0x7a)](_0x3897c8)&&await this[_0x2ac982(0x74)](_0x3897c8)&&this[_0x2ac982(0x8c)]();}async[a0_0x4a9d61(0x8a)](){const _0x593b07=a0_0x4a9d61;let _0x3a962e=MetaApi['getSelectedIdList'](this[_0x593b07(0xbf)],!0x0);return ValueUtil[_0x593b07(0x7a)](_0x3a962e)?await this[_0x593b07(0xa8)](_0x3a962e[0x0]):{};}async[a0_0x4a9d61(0xbd)](){const _0x317f86=a0_0x4a9d61;let _0x5e9866=MetaApi[_0x317f86(0x94)](this[_0x317f86(0xbf)],!0x0);!!ValueUtil['isNotEmpty'](_0x5e9866)&&await this[_0x317f86(0x72)](_0x5e9866)&&this[_0x317f86(0x8c)]();}async['export'](){const _0x421352=a0_0x4a9d61;let _0x359690=TermsUtil[_0x421352(0x82)](ValueUtil[_0x421352(0xb8)](this['menuInfo'],_0x421352(0xb1)));return await MetaApi[_0x421352(0x98)](this['isElement'],_0x359690,this[_0x421352(0xbf)]);}async[a0_0x4a9d61(0xbb)](){}[a0_0x4a9d61(0xb6)](){const _0x1e7581=a0_0x4a9d61;let _0x331979=this[_0x1e7581(0xbf)]['___data'][_0x1e7581(0x79)];return _0x331979=JSON[_0x1e7581(0x89)](JSON[_0x1e7581(0xa7)](_0x331979)),_0x331979[_0x1e7581(0xb9)](_0x453343=>{const _0x29e5d5=_0x1e7581;Object[_0x29e5d5(0x8b)](_0x453343)['forEach'](_0x3bc08a=>{const _0x3b60be=_0x29e5d5;_0x3bc08a[_0x3b60be(0x75)]('__')&&delete _0x453343[_0x3bc08a];});}),{'main':_0x331979,'detail':this[_0x1e7581(0xa5)][_0x1e7581(0xa0)](_0x1e7581(0xac))[_0x1e7581(0xb6)]()};}};
@@ -1 +1 @@
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']()};}};
1
+ const a0_0x1005a6=a0_0x2dc6;(function(_0x52ed4a,_0xf4e5f7){const _0x84e1e1=a0_0x2dc6,_0x148663=_0x52ed4a();while(!![]){try{const _0xfadb9=parseInt(_0x84e1e1(0x1c2))/0x1*(-parseInt(_0x84e1e1(0x1c8))/0x2)+parseInt(_0x84e1e1(0x1a3))/0x3*(parseInt(_0x84e1e1(0x1c0))/0x4)+parseInt(_0x84e1e1(0x19f))/0x5*(parseInt(_0x84e1e1(0x1b1))/0x6)+parseInt(_0x84e1e1(0x199))/0x7+-parseInt(_0x84e1e1(0x1a1))/0x8*(parseInt(_0x84e1e1(0x1a9))/0x9)+-parseInt(_0x84e1e1(0x1cb))/0xa+parseInt(_0x84e1e1(0x1c6))/0xb;if(_0xfadb9===_0xf4e5f7)break;else _0x148663['push'](_0x148663['shift']());}catch(_0xb74d94){_0x148663['push'](_0x148663['shift']());}}}(a0_0x23d8,0x1880d));function a0_0x23d8(){const _0x9ac4ab=['searchConfig','buttonConfig','push','querySelector','context','gridEmphasized','firstUpdated','search','gristConfigSet','fetch','main','4twlMCn','gridConfig','130IQrLZS','value','importable','map','3277032IMaUaV','styles','1354TUHuxs','getData','getContextObject','1347710mTvfCZ','ox-filters-form-base','connectedCallback','filterFormId','getAndParseMenuMeta','actions','dataSet','pageInitialized','parseGridConfigSet','gridColumnConfig','374423NcnelK','useButtonExport','filterForm','record','isElement','grid_column','414765oGfKzM','useFilterForm','8CiKkLo','render','1014ORYqMP','exportable','searchFields','header','gristId','searchFieldValues','1003914UvkFUl','name','clear','operator','properties','options','parseGristConfigs','filter','6gHwxJf','activityDataSet','grist','masterElement'];a0_0x23d8=function(){return _0x9ac4ab;};return a0_0x23d8();}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_0x2dc6(_0x4f219c,_0x548a0b){const _0x23d8a7=a0_0x23d8();return a0_0x2dc6=function(_0x2dc6a2,_0x3af48d){_0x2dc6a2=_0x2dc6a2-0x194;let _0x2654b1=_0x23d8a7[_0x2dc6a2];return _0x2654b1;},a0_0x2dc6(_0x4f219c,_0x548a0b);}import{ValueUtil}from'../utils/value-util';import{TermsUtil}from'../utils/terms-util';import{MetaButtonMixin}from'./meta-button-mixin';export const MetaMainTabMixin=_0x389517=>class extends MetaButtonMixin(_0x389517){static get[a0_0x1005a6(0x1c7)](){return MetaApi['getBasicMainTabStyles']();}static get[a0_0x1005a6(0x1ad)](){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 _0x210a43=a0_0x1005a6;return this[_0x210a43(0x1b4)]['getMainGrist']();}get[a0_0x1005a6(0x19b)](){const _0x169b42=a0_0x1005a6;return this['shadowRoot']?.[_0x169b42(0x1b8)](this['filterFormId']);}get[a0_0x1005a6(0x1b9)](){const _0x33fddd=a0_0x1005a6;let _0x355b92=MetaUiUtil[_0x33fddd(0x1ca)](this);return _0x355b92[_0x33fddd(0x194)]&&delete _0x355b92[_0x33fddd(0x194)],_0x355b92[_0x33fddd(0x1a4)]&&delete _0x355b92[_0x33fddd(0x1a4)],_0x355b92[_0x33fddd(0x1c4)]&&delete _0x355b92[_0x33fddd(0x1c4)],_0x355b92;}async[a0_0x1005a6(0x1cd)](){const _0x2b1dd4=a0_0x1005a6;this[_0x2b1dd4(0x1a7)]='ox-grist',this[_0x2b1dd4(0x1ce)]=_0x2b1dd4(0x1cc),await this[_0x2b1dd4(0x1cf)](),this[_0x2b1dd4(0x19d)]&&await this['parseGristConfigs'](),this[_0x2b1dd4(0x1b2)]&&(this[_0x2b1dd4(0x195)]=(this[_0x2b1dd4(0x1b2)]||{})[_0x2b1dd4(0x1bf)]),super[_0x2b1dd4(0x1cd)]&&await super[_0x2b1dd4(0x1cd)]();}async[a0_0x1005a6(0x1bb)](){const _0x2ff374=a0_0x1005a6;super[_0x2ff374(0x1bb)]&&await super['firstUpdated']();}async[a0_0x1005a6(0x196)](){const _0x44caad=a0_0x1005a6;this['isPage']&&await this[_0x44caad(0x1af)](),super[_0x44caad(0x196)]&&await super[_0x44caad(0x196)]();}[a0_0x1005a6(0x1a2)](){return MetaApi['getMainTabHtml'](this);}['parseBasicGridConfigs'](_0x33f811){const _0x479dcd=a0_0x1005a6;this[_0x479dcd(0x1c1)]=_0x33f811['grid'],this[_0x479dcd(0x198)]=_0x33f811[_0x479dcd(0x19e)],this[_0x479dcd(0x1b5)]=_0x33f811['search'],this[_0x479dcd(0x1ba)]=_0x33f811[_0x479dcd(0x1ba)];}async[a0_0x1005a6(0x1af)](){const _0x245aa2=a0_0x1005a6;this['gristConfigSet']=await MetaApi[_0x245aa2(0x197)](this),this['useMasterFilterForm']=!0x0===this[_0x245aa2(0x1a0)],this[_0x245aa2(0x1a0)]=!0x1,this[_0x245aa2(0x1b6)]=void 0x0,this[_0x245aa2(0x19a)]=!0x1,this['useButtonImport']=!0x1,this[_0x245aa2(0x1a8)]=[],this[_0x245aa2(0x1a5)]=this[_0x245aa2(0x1bd)]['columns']['filter'](_0x22bcc3=>_0x22bcc3[_0x245aa2(0x1b0)])[_0x245aa2(0x1c5)](_0x1c7abf=>{const _0x406f82=_0x245aa2;let _0x17777d={'name':_0x1c7abf[_0x406f82(0x1aa)],'type':_0x406f82(0x1bc)===_0x1c7abf['filter'][_0x406f82(0x1ac)]?_0x406f82(0x1bc):_0x1c7abf['type'],'label':_0x1c7abf[_0x406f82(0x1a6)],'operator':_0x1c7abf[_0x406f82(0x1b0)]['operator']?_0x1c7abf[_0x406f82(0x1b0)][_0x406f82(0x1ac)]:'eq'};return _0x1c7abf[_0x406f82(0x1b0)][_0x406f82(0x1ae)]&&(_0x17777d[_0x406f82(0x1ae)]=_0x1c7abf[_0x406f82(0x1b0)][_0x406f82(0x1ae)]),_0x1c7abf[_0x406f82(0x19c)]['options']&&(_0x17777d[_0x406f82(0x1ae)]=_0x1c7abf['record'][_0x406f82(0x1ae)]),_0x1c7abf[_0x406f82(0x1b0)]['value']&&this[_0x406f82(0x1a8)][_0x406f82(0x1b7)]({'name':_0x17777d['name'],'operator':_0x17777d[_0x406f82(0x1ac)],'value':_0x1c7abf[_0x406f82(0x1b0)][_0x406f82(0x1c3)]}),delete _0x1c7abf['filter'],_0x17777d;});}async[a0_0x1005a6(0x1be)](){const _0x3ceb6a=a0_0x1005a6;await this[_0x3ceb6a(0x1b3)][_0x3ceb6a(0x1be)]();}async['beforeFetch']({page:_0x163617=0x0,limit:_0x1b3c18=0x0,sortings:_0x54476c=[],filters:_0x691fc9=[]}){const _0x21f8f7=a0_0x1005a6;return this[_0x21f8f7(0x1b4)]&&this[_0x21f8f7(0x1b4)][_0x21f8f7(0x1ab)]&&await this[_0x21f8f7(0x1b4)][_0x21f8f7(0x1ab)](),!0x0;}[a0_0x1005a6(0x1c9)](){const _0x1d665e=a0_0x1005a6;return{'master':this[_0x1d665e(0x1b4)][_0x1d665e(0x1c9)]()};}};