@things-factory/meta-ui 6.1.30 → 6.1.31

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 (87) 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 +6 -6
  9. package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
  10. package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
  11. package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
  12. package/client/component/popup/code-input-editor-popup.js +10 -10
  13. package/client/component/popup/meta-object-selector-popup.js +11 -11
  14. package/client/mixin/meta-base-mixin.js +1 -1
  15. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  16. package/client/mixin/meta-button-mixin.js +1 -1
  17. package/client/mixin/meta-form-mixin.js +1 -1
  18. package/client/mixin/meta-grist-tab-mixin.js +1 -1
  19. package/client/mixin/meta-main-tab-mixin.js +1 -1
  20. package/client/mixin/meta-master-detail-mixin.js +1 -1
  21. package/client/mixin/meta-service-mixin.js +1 -1
  22. package/client/mixin/meta-tab-detail-mixin.js +1 -1
  23. package/client/mixin/meta-tab-mixin.js +1 -1
  24. package/client/pages/activity/meta-activity-list-page.js +6 -6
  25. package/client/pages/activity/meta-activity-viewer-element.js +3 -3
  26. package/client/pages/activity/meta-activity-writer-element.js +3 -3
  27. package/client/pages/activity/meta-activiy-mixin.js +3 -3
  28. package/client/pages/entity/config-entity.js +29 -29
  29. package/client/pages/entity/main-menu-selector.js +8 -8
  30. package/client/pages/history/history-copy-list-popup.js +6 -6
  31. package/client/pages/history/history-json-list-popup.js +6 -6
  32. package/client/pages/loading-page.js +5 -5
  33. package/client/pages/menu/dynamic-menu-template.js +7 -7
  34. package/client/pages/menu/dynamic-menu.js +16 -16
  35. package/client/pages/meta-form-element.js +1 -1
  36. package/client/pages/meta-grist-element.js +1 -1
  37. package/client/pages/meta-grist-page.js +1 -1
  38. package/client/pages/meta-grist-tab-element.js +1 -1
  39. package/client/pages/meta-grist-tab-page.js +1 -1
  40. package/client/pages/meta-main-tab-element.js +1 -1
  41. package/client/pages/meta-main-tab-page.js +1 -1
  42. package/client/pages/meta-master-detail-element.js +1 -1
  43. package/client/pages/meta-master-detail-page.js +1 -1
  44. package/client/pages/meta-tab-detail-element.js +1 -1
  45. package/client/pages/meta-tab-detail-page.js +1 -1
  46. package/client/pages/meta-tab-element.js +1 -1
  47. package/client/pages/personalize/personal-column-selector.js +11 -11
  48. package/client/pages/terms/config-terminology.js +6 -6
  49. package/client/pages/work-code/work-code-detail-popup.js +1 -1
  50. package/client/pages/work-code/work-code-page.js +1 -1
  51. package/client/reducers/main.js +1 -1
  52. package/client/utils/meta-api.js +1 -1
  53. package/client/utils/meta-crypto.js +1 -1
  54. package/client/utils/meta-ui-util.js +103 -103
  55. package/client/utils/service-util.js +13 -13
  56. package/client/utils/terms-util.js +2 -2
  57. package/client/utils/ui-util.js +1 -1
  58. package/client/utils/value-util.js +1 -1
  59. package/client/viewparts/dynamic-menu-landscape-styles.js +2 -2
  60. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  61. package/client/viewparts/dynamic-menu-part.js +11 -11
  62. package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
  63. package/client/viewparts/dynamic-menu-portrait.js +9 -9
  64. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  65. package/package.json +2 -2
  66. package/server/activity/CommonActivity.js +2 -2
  67. package/server/constants/error-code.js +1 -1
  68. package/server/errors/license-error.js +1 -1
  69. package/server/routes.js +1 -1
  70. package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
  71. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  72. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  73. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  74. package/server/service/grid-personalize/grid-personalize.js +1 -1
  75. package/server/service/meta-activity/meta-activity-mutation.js +1 -1
  76. package/server/service/meta-activity/meta-activity-query.js +1 -1
  77. package/server/service/meta-activity/meta-activity-type.js +1 -1
  78. package/server/service/meta-secret/meta-resolver.js +1 -1
  79. package/server/service/set-translations/set-translation-resolver.js +1 -1
  80. package/server/service/work-code/work-code-mutation.js +1 -1
  81. package/server/service/work-code/work-code-query.js +1 -1
  82. package/server/service/work-code/work-code-type.js +1 -1
  83. package/server/service/work-code/work-code.js +1 -1
  84. package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
  85. package/server/service/work-code-detail/work-code-detail-query.js +1 -1
  86. package/server/service/work-code-detail/work-code-detail-type.js +1 -1
  87. package/server/service/work-code-detail/work-code-detail.js +1 -1
@@ -1,26 +1,26 @@
1
- const a0_0x5735ef=a0_0x23d9;function a0_0x4dd2(){const _0x15a447=['ox-filters-form-base','check-columns','colType','selectedEntity','\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20\x20\x20term\x0a\x20\x20\x20\x20\x20\x20\x20\x20colType\x0a\x20\x20\x20\x20\x20\x20\x20\x20colSize\x0a\x20\x20\x20\x20\x20\x20\x20\x20nullable\x0a\x20\x20\x20\x20\x20\x20\x20\x20uniqRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20searchRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20searchOper\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridWidth\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridEditor\x0a\x20\x20\x20\x20\x20\x20\x20\x20refType\x0a\x20\x20\x20\x20\x20\x20\x20\x20refName\x0a\x20\x20\x20\x20\x20\x20\x20\x20refUrl\x0a\x20\x20\x20\x20\x20\x20\x20\x20defVal\x0a\x20\x20\x20\x20\x20\x20','body','timestamp','grid_editor','389528jDwPFO','i_like','querySelector','tableName','LIST','masterGrist','uniqRank','\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20bundle\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20tableName\x0a\x20\x20\x20\x20\x20\x20dataProp\x0a\x20\x20\x20\x20\x20\x20delStrategy\x0a\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20','confirm','297147eVWxHC','properties','filter','delStrategy','refName','data','gridEditor','searchByPagination','value','#detail-grist','entities','search_rank','target','text.no_data','input','ENTITY_COLUMN_TYPES','center','deleteListByGristSelected','deleteMasters','name','toInteger','dataProp','ref_type','COLUMN_REF_TYPE','entity','creator_id','map','rank','FILTER_OPERATORS','tTitle','entity_del_strategy','register-terms','bind','searchOper','readAsArrayBuffer','updater_id','BUNDLE','getSelectedIdList','config-entity','imex','patchesForUpdateMultiple','select','label.','import','button.create-service','getGristColumnConfig','getGristColumnConfig2','back','info','nullable','createUnregisteredTerms','setAttribute','col_type','pop','text.nothing_selected','columns','files','fetch','4330PFllRD','description','left','size','button.create-menu','export','2060170aUDLGm','deleteEntityColumns','id_rule','integer','length','ref_name','updateMultipleEntityColumn','createMenu','tLabel','ENTITY_GRIST_COLUMN_TYPES','creator','tText','getGristSearchColumnConfig','detailConfig','#master-grist','searchFields','searchEntityColumns','question','left-right','grid_width','table_name','importXlsxFile','showAlertPopup','record','deleteEntities','updater','cancel','gutter','grid_rank','errors','updated_at','header','createMenuTo','15ywFuLP','text.are_you_sure','right','dispatch','entity_manage_hist','checkEntityColumns','type','pageInitialized','1671054hPaMxD','colSize','tButton','medium','success\x20to\x20register\x20terms','getBasicMasterDetailGristStyle','getGristGuttersConfig','push','8IFkIMO','click','29781PcSiuL','getGristSelectableConfig','button','updateMultiple','refType','getGristSearchCodeColumnConfig','records','save','define','split','openPopupByElement','search_oper','key','isNotEmpty','term','findIndex','saveMasters','showToast','main-menu-selector','create-service','GRID','xlsx','created_at','gridWidth','importConfig','uniq_rank','onload','boolean','detailGrist','gridRank','shadowRoot','searchRank','createService','saveEntityColumns','forEach','large','query','success\x20to\x20process','importEntityColumns','masterConfig','delete','searchForm','entity-column','change','string','2136848xpFFnZ','entityId','61581nqMpol','GRIST_COLUMN_TYPES','fetchEntities','ENTITY_HIST_TYPE','accept','entityColumns','domain','styles','appendChild','sequence','bundle','isMobileEnv','result','getGristCodeSelectorColumnConfig','getQueryFilters'];a0_0x4dd2=function(){return _0x15a447;};return a0_0x4dd2();}(function(_0x3a43ab,_0x124c9e){const _0x2778d5=a0_0x23d9,_0x30f06b=_0x3a43ab();while(!![]){try{const _0x104e92=-parseInt(_0x2778d5(0x13f))/0x1*(parseInt(_0x2778d5(0x1d0))/0x2)+parseInt(_0x2778d5(0x15f))/0x3+parseInt(_0x2778d5(0x156))/0x4*(-parseInt(_0x2778d5(0x1c0))/0x5)+-parseInt(_0x2778d5(0x1c8))/0x6+-parseInt(_0x2778d5(0x19f))/0x7+-parseInt(_0x2778d5(0x13d))/0x8+parseInt(_0x2778d5(0x110))/0x9*(parseInt(_0x2778d5(0x199))/0xa);if(_0x104e92===_0x124c9e)break;else _0x30f06b['push'](_0x30f06b['shift']());}catch(_0x45792b){_0x30f06b['push'](_0x30f06b['shift']());}}}(a0_0x4dd2,0x2576b));import{html}from'lit-element';import a0_0x251404 from'graphql-tag';import{client,gqlContext}from'@operato/graphql';import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';import{store}from'@operato/shell';import{EXPORT}from'@things-factory/export-base';import{IMPORT}from'@things-factory/import-base';import'@things-factory/form-ui';import'@things-factory/import-ui';import{TermsUtil}from'./../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';function a0_0x23d9(_0x4ad927,_0x5da247){const _0x4dd273=a0_0x4dd2();return a0_0x23d9=function(_0x23d908,_0x46892d){_0x23d908=_0x23d908-0x110;let _0x2ec5e6=_0x4dd273[_0x23d908];return _0x2ec5e6;},a0_0x23d9(_0x4ad927,_0x5da247);}import{MetaApi}from'../../utils/meta-api';import'./main-menu-selector';class ConfigEntity extends localize(i18next)(PageView){static get[a0_0x5735ef(0x160)](){return{'searchFields':Array,'masterConfig':Object,'detailConfig':Object,'importConfig':Object,'entityId':String,'selectedEntity':Object};}static get[a0_0x5735ef(0x146)](){const _0x1490c1=a0_0x5735ef;return MetaApi[_0x1490c1(0x1cd)](_0x1490c1(0x1b1));}get['context'](){const _0x5bd951=a0_0x5735ef;return{'title':TermsUtil[_0x5bd951(0x17c)](_0x5bd951(0x177))};}get[a0_0x5735ef(0x139)](){const _0x52d254=a0_0x5735ef;return this[_0x52d254(0x12e)]['querySelector'](_0x52d254(0x14e));}get[a0_0x5735ef(0x15b)](){const _0x479897=a0_0x5735ef;return this[_0x479897(0x12e)][_0x479897(0x158)](_0x479897(0x1ad));}get['detailGrist'](){const _0x5b2e57=a0_0x5735ef;return this[_0x5b2e57(0x12e)][_0x5b2e57(0x158)](_0x5b2e57(0x168));}async[a0_0x5735ef(0x141)]({page:_0x1ee5eb,limit:_0x24b443,sorters:_0x14f0f7=[{'name':a0_0x5735ef(0x149)},{'name':a0_0x5735ef(0x172)}]}){const _0x4488f0=a0_0x5735ef;this[_0x4488f0(0x13e)]=null,this['selectedEntity']=null,this[_0x4488f0(0x12c)]&&this[_0x4488f0(0x12c)][_0x4488f0(0x164)]&&(this[_0x4488f0(0x12c)]['data']={});let _0x15fca3=[...await this['searchForm'][_0x4488f0(0x14d)]()];return await MetaApi[_0x4488f0(0x166)](_0x4488f0(0x169),_0x15fca3,_0x14f0f7,_0x1ee5eb,_0x24b443,_0x4488f0(0x15d));}async['fetchEntityColumns']({page:_0x432609,limit:_0x37d0ed,sorters:_0x5710b5=[{'name':a0_0x5735ef(0x17a)}]}){const _0x1087cc=a0_0x5735ef;if(this[_0x1087cc(0x13e)]){let _0x260db8=[{'name':_0x1087cc(0x13e),'operator':'eq','value':this['entityId']}],_0x4932ee=_0x1087cc(0x152);return await MetaApi[_0x1087cc(0x166)](_0x1087cc(0x144),_0x260db8,_0x5710b5,_0x432609,_0x37d0ed,_0x4932ee);}}async[a0_0x5735ef(0x1af)](_0x50e5e5){const _0x7aedec=a0_0x5735ef;this[_0x7aedec(0x13e)]=_0x50e5e5['id'],this[_0x7aedec(0x151)]=_0x50e5e5,await this[_0x7aedec(0x12c)][_0x7aedec(0x198)]();}async['openMainMenuSelectorPopup'](){const _0x1817b4=a0_0x5735ef;let _0x566c97=MetaApi['createCustomElement'](_0x1817b4(0x122),_0x1817b4(0x122));_0x566c97['selectCallback']=this[_0x1817b4(0x1bf)][_0x1817b4(0x17f)](this),await MetaApi[_0x1817b4(0x11a)](TermsUtil[_0x1817b4(0x1ca)]('create-menu'),_0x1817b4(0x1cb),_0x566c97,!0x0);}async[a0_0x5735ef(0x120)](){const _0xc703e9=a0_0x5735ef;let _0x2df801=MetaApi[_0xc703e9(0x187)](this['masterGrist']);ValueUtil[_0xc703e9(0x11d)](_0x2df801)&&(_0x2df801[_0xc703e9(0x132)](_0x2cef2f=>{const _0x709f86=_0xc703e9;_0x2cef2f[_0x709f86(0x159)]&&0x0!=_0x2cef2f[_0x709f86(0x159)][_0x709f86(0x1a3)]||(_0x2cef2f[_0x709f86(0x159)]=_0x2cef2f[_0x709f86(0x172)]);}),await MetaApi[_0xc703e9(0x113)]('updateMultipleEntity',_0x2df801)&&this[_0xc703e9(0x15b)][_0xc703e9(0x198)]());}async[a0_0x5735ef(0x171)](){const _0x3e59df=a0_0x5735ef;await MetaApi[_0x3e59df(0x170)](this[_0x3e59df(0x15b)],_0x3e59df(0x1b7));}async[a0_0x5735ef(0x131)](){const _0x9fb6b4=a0_0x5735ef;if(this[_0x9fb6b4(0x13e)]){let _0x3ba64b=MetaApi[_0x9fb6b4(0x187)](this['detailGrist']);if(ValueUtil['isNotEmpty'](_0x3ba64b)){let _0x27bd87=0x0;_0x3ba64b[_0x9fb6b4(0x132)](_0x19e350=>{const _0x48dc45=_0x9fb6b4;_0x27bd87+=0xa,_0x19e350[_0x48dc45(0x177)]={'id':this[_0x48dc45(0x13e)]},_0x19e350[_0x48dc45(0x190)]=void 0x0!==_0x19e350[_0x48dc45(0x190)]&&null!=_0x19e350[_0x48dc45(0x190)]&&_0x19e350[_0x48dc45(0x190)],_0x19e350['rank']=_0x19e350[_0x48dc45(0x17a)]&&0x0!=_0x19e350[_0x48dc45(0x17a)]?_0x19e350['rank']:_0x27bd87,_0x19e350[_0x48dc45(0x12d)]=_0x19e350['gridRank']?_0x19e350['gridRank']:0x0,_0x19e350['term']=_0x19e350['term']?_0x19e350[_0x48dc45(0x11e)]:_0x19e350['name'],_0x19e350[_0x48dc45(0x150)]=_0x19e350[_0x48dc45(0x150)]?_0x19e350[_0x48dc45(0x150)]:_0x48dc45(0x13c),_0x19e350['colSize']=_0x48dc45(0x13c)!=_0x19e350[_0x48dc45(0x150)]||_0x19e350['colSize']?_0x19e350[_0x48dc45(0x1c9)]:0x32;}),await MetaApi[_0x9fb6b4(0x113)](_0x9fb6b4(0x1a5),_0x3ba64b)&&this[_0x9fb6b4(0x12c)]['fetch']();}}}async['deleteEntityColumns'](){const _0x2013e5=a0_0x5735ef;await MetaApi[_0x2013e5(0x170)](this[_0x2013e5(0x12c)],_0x2013e5(0x1a0));}async[a0_0x5735ef(0x130)](){const _0x295cb3=a0_0x5735ef;if((await MetaApi[_0x295cb3(0x1b5)](_0x295cb3(0x18b),_0x295cb3(0x1c1),'question',_0x295cb3(0x15e),_0x295cb3(0x1b9)))[_0x295cb3(0x167)]){let _0x3cb80a=MetaApi['getSelectedIdList'](this[_0x295cb3(0x15b)],!0x0);if(_0x3cb80a){let _0x3d2f6f=_0x3cb80a[0x0];const _0x403092=await client['query']({'query':a0_0x251404`
1
+ const a0_0x34be41=a0_0x3a58;(function(_0x5b2250,_0x5ceb85){const _0x381848=a0_0x3a58,_0x408ece=_0x5b2250();while(!![]){try{const _0x52d64d=parseInt(_0x381848(0x110))/0x1+parseInt(_0x381848(0xd3))/0x2+parseInt(_0x381848(0x73))/0x3*(parseInt(_0x381848(0xb5))/0x4)+-parseInt(_0x381848(0xb3))/0x5+-parseInt(_0x381848(0x10f))/0x6*(parseInt(_0x381848(0xe4))/0x7)+parseInt(_0x381848(0xce))/0x8*(-parseInt(_0x381848(0xa2))/0x9)+parseInt(_0x381848(0xc3))/0xa;if(_0x52d64d===_0x5ceb85)break;else _0x408ece['push'](_0x408ece['shift']());}catch(_0x58e7e2){_0x408ece['push'](_0x408ece['shift']());}}}(a0_0x312e,0xa18e0));import{html}from'lit-element';import a0_0x4bfcc4 from'graphql-tag';import{client,gqlContext}from'@operato/graphql';import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';import{store}from'@operato/shell';import{EXPORT}from'@things-factory/export-base';import{IMPORT}from'@things-factory/import-base';import'@things-factory/form-ui';import'@things-factory/import-ui';function a0_0x3a58(_0x54695d,_0x505e39){const _0x312efd=a0_0x312e();return a0_0x3a58=function(_0x3a58d0,_0x436e5f){_0x3a58d0=_0x3a58d0-0x6d;let _0x1fd57b=_0x312efd[_0x3a58d0];return _0x1fd57b;},a0_0x3a58(_0x54695d,_0x505e39);}import{TermsUtil}from'./../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';function a0_0x312e(){const _0x599074=['forEach','toBoolean','deleteEntities','data','6104015jRkXFs','grid_rank','203284qQMPtF','ref_type','entities','BUNDLE','ref_name','isNotEmpty','create-menu','button.create-service','openPopupByElement','getGristSelectableConfig','entity-column','GRID','click','tText','11388690ftBvSv','pageInitialized','patchesForUpdateMultiple','uniqRank','ENTITY_HIST_TYPE','createElement','medium','tTitle','entity_del_strategy','getGristSearchColumnConfig','gridWidth','1080wNkHiJ','records','createUnregisteredTerms','addEventListener','\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20\x20\x20term\x0a\x20\x20\x20\x20\x20\x20\x20\x20colType\x0a\x20\x20\x20\x20\x20\x20\x20\x20colSize\x0a\x20\x20\x20\x20\x20\x20\x20\x20nullable\x0a\x20\x20\x20\x20\x20\x20\x20\x20uniqRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20searchRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20searchOper\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridRank\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridWidth\x0a\x20\x20\x20\x20\x20\x20\x20\x20gridEditor\x0a\x20\x20\x20\x20\x20\x20\x20\x20refType\x0a\x20\x20\x20\x20\x20\x20\x20\x20refName\x0a\x20\x20\x20\x20\x20\x20\x20\x20refUrl\x0a\x20\x20\x20\x20\x20\x20\x20\x20defVal\x0a\x20\x20\x20\x20\x20\x20','2043042xXBbnX','undefined','tableName','selectedEntity','getGristColumnConfig','getGristCodeSelectorColumnConfig','dispatch','term','searchFields','select','accept','cancel','bundle','label.','imex','success\x20to\x20process','#detail-grist','15505UJqkWT','gutter','length','change','showAlertPopup','text.nothing_selected','searchRank','creator','save','tLabel','search_rank','getQueryFilters','left','gridRank','created_at','updated_at','create-service','createCustomElement','updater_id','render','uniq_rank','getSelectedIdList','delete','ENTITY_COLUMN_TYPES','showToast','gridEditor','query','updateMultiple','openMainMenuSelectorPopup','readAsArrayBuffer','importConfig','createMenu','rank','record','saveMasters','styles','search_oper','split','entityId','findIndex','colType','id_rule','FILTER_OPERATORS','1434JyLmem','838915YfatNK','import','toInteger','string','message','integer','timestamp','ox-filters-form-base','center','filter','ENTITY_GRIST_COLUMN_TYPES','check-columns','register-terms','searchOper','detailGrist','shadowRoot','saveEntityColumns','ENTITY_DEL_STRATEGY','push','pop','domain_id','left-right','file','button.create-menu','getGristColumnConfig2','searchEntityColumns','checkEntityColumns','importHandler','isMobileEnv','main-menu-selector','domain','columns','importEntityColumns','33XQcYCq','tButton','info','nullable','xlsx','importXlsxFile','LIST','entity','col_type','updater','bind','boolean','querySelector','getGristGuttersConfig','refType','size','deleteMasters','question','name','masterConfig','i_like','back','text.are_you_sure','detailConfig','error','description','searchByPagination','searchForm','grid_width','masterGrist','errors','map','right','fetch','confirm','key','creator_id','config-entity','COLUMN_REF_TYPE','deleteEntityColumns','_config','files','header','__selected__','hidden','\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20bundle\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20tableName\x0a\x20\x20\x20\x20\x20\x20dataProp\x0a\x20\x20\x20\x20\x20\x20delStrategy\x0a\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20','getGristSearchCodeColumnConfig','76428VCtLmk','value','setAttribute','createMenuTo','colSize','deleteListByGristSelected','sequence','text.no_data','table_name','type','createService','updateMultipleEntityColumn','onload'];a0_0x312e=function(){return _0x599074;};return a0_0x312e();}import{MetaApi}from'../../utils/meta-api';import'./main-menu-selector';class ConfigEntity extends localize(i18next)(PageView){static get['properties'](){return{'searchFields':Array,'masterConfig':Object,'detailConfig':Object,'importConfig':Object,'entityId':String,'selectedEntity':Object};}static get[a0_0x34be41(0x107)](){const _0x5a2204=a0_0x34be41;return MetaApi['getBasicMasterDetailGristStyle'](_0x5a2204(0x125));}get['context'](){const _0x2017da=a0_0x34be41;return{'title':TermsUtil[_0x2017da(0xca)](_0x2017da(0x7a))};}get[a0_0x34be41(0x8e)](){const _0x622cb6=a0_0x34be41;return this[_0x622cb6(0x11f)][_0x622cb6(0x7f)](_0x622cb6(0x117));}get[a0_0x34be41(0x90)](){const _0xfa4358=a0_0x34be41;return this[_0xfa4358(0x11f)]['querySelector']('#master-grist');}get['detailGrist'](){const _0x577198=a0_0x34be41;return this['shadowRoot'][_0x577198(0x7f)](_0x577198(0xe3));}async['fetchEntities']({page:_0x433d25,limit:_0x2cc9cf,sorters:_0x251103=[{'name':a0_0x34be41(0xdf)},{'name':a0_0x34be41(0x85)}]}){const _0x4b453f=a0_0x34be41;this[_0x4b453f(0x10a)]=null,this['selectedEntity']=null,this[_0x4b453f(0x11e)]&&this['detailGrist'][_0x4b453f(0xb2)]&&(this['detailGrist']['data']={});let _0x30f3d3=[...await this[_0x4b453f(0x8e)][_0x4b453f(0xef)]()];return await MetaApi['searchByPagination'](_0x4b453f(0xb7),_0x30f3d3,_0x251103,_0x433d25,_0x2cc9cf,_0x4b453f(0xa0));}async['fetchEntityColumns']({page:_0x40c8ff,limit:_0x4c2869,sorters:_0x4ac787=[{'name':a0_0x34be41(0x104)}]}){const _0x478654=a0_0x34be41;if(this[_0x478654(0x10a)]){let _0x340028=[{'name':'entityId','operator':'eq','value':this[_0x478654(0x10a)]}],_0x206364=_0x478654(0xd2);return await MetaApi[_0x478654(0x8d)]('entityColumns',_0x340028,_0x4ac787,_0x40c8ff,_0x4c2869,_0x206364);}}async[a0_0x34be41(0x129)](_0x455551){const _0x19d5c4=a0_0x34be41;this[_0x19d5c4(0x10a)]=_0x455551['id'],this[_0x19d5c4(0xd6)]=_0x455551,await this[_0x19d5c4(0x11e)][_0x19d5c4(0x94)]();}async[a0_0x34be41(0x100)](){const _0x2c422a=a0_0x34be41;let _0x1f2a8d=MetaApi[_0x2c422a(0xf5)]('main-menu-selector',_0x2c422a(0x6f));_0x1f2a8d['selectCallback']=this[_0x2c422a(0xa5)][_0x2c422a(0x7d)](this),await MetaApi['openPopupByElement'](TermsUtil[_0x2c422a(0x74)](_0x2c422a(0xbb)),_0x2c422a(0xc9),_0x1f2a8d,!0x0);}async[a0_0x34be41(0x106)](){const _0x16c826=a0_0x34be41;let _0x4650f3=MetaApi[_0x16c826(0xc5)](this[_0x16c826(0x90)]);ValueUtil[_0x16c826(0xba)](_0x4650f3)&&(_0x4650f3[_0x16c826(0xaf)](_0xfd2cc4=>{const _0x4b573b=_0x16c826;_0xfd2cc4[_0x4b573b(0xd5)]&&0x0!=_0xfd2cc4['tableName'][_0x4b573b(0xe6)]||(_0xfd2cc4[_0x4b573b(0xd5)]=_0xfd2cc4[_0x4b573b(0x85)]);}),await MetaApi[_0x16c826(0xff)]('updateMultipleEntity',_0x4650f3)&&this[_0x16c826(0x90)]['fetch']());}async[a0_0x34be41(0x83)](){const _0x4e712b=a0_0x34be41;await MetaApi[_0x4e712b(0xa7)](this[_0x4e712b(0x90)],_0x4e712b(0xb1));}async[a0_0x34be41(0x120)](){const _0x5685d=a0_0x34be41;if(this['entityId']){let _0xe4d3a6=MetaApi['patchesForUpdateMultiple'](this[_0x5685d(0x11e)]);if(ValueUtil[_0x5685d(0xba)](_0xe4d3a6)){let _0x506a1b=0x0;_0xe4d3a6[_0x5685d(0xaf)](_0x4bcdad=>{const _0x52b512=_0x5685d;_0x506a1b+=0xa,_0x4bcdad[_0x52b512(0x7a)]={'id':this[_0x52b512(0x10a)]},_0x4bcdad[_0x52b512(0x76)]=void 0x0!==_0x4bcdad['nullable']&&null!=_0x4bcdad[_0x52b512(0x76)]&&_0x4bcdad[_0x52b512(0x76)],_0x4bcdad[_0x52b512(0x104)]=_0x4bcdad[_0x52b512(0x104)]&&0x0!=_0x4bcdad[_0x52b512(0x104)]?_0x4bcdad[_0x52b512(0x104)]:_0x506a1b,_0x4bcdad[_0x52b512(0xf1)]=_0x4bcdad['gridRank']?_0x4bcdad['gridRank']:0x0,_0x4bcdad[_0x52b512(0xda)]=_0x4bcdad[_0x52b512(0xda)]?_0x4bcdad['term']:_0x4bcdad[_0x52b512(0x85)],_0x4bcdad[_0x52b512(0x10c)]=_0x4bcdad[_0x52b512(0x10c)]?_0x4bcdad[_0x52b512(0x10c)]:_0x52b512(0x113),_0x4bcdad[_0x52b512(0xa6)]=_0x52b512(0x113)!=_0x4bcdad[_0x52b512(0x10c)]||_0x4bcdad['colSize']?_0x4bcdad[_0x52b512(0xa6)]:0x32;}),await MetaApi[_0x5685d(0xff)](_0x5685d(0xad),_0xe4d3a6)&&this[_0x5685d(0x11e)][_0x5685d(0x94)]();}}}async['deleteEntityColumns'](){const _0x506169=a0_0x34be41;await MetaApi[_0x506169(0xa7)](this[_0x506169(0x11e)],_0x506169(0x9a));}async[a0_0x34be41(0xac)](){const _0x1f02d7=a0_0x34be41;if((await MetaApi[_0x1f02d7(0xe8)](_0x1f02d7(0xbc),'text.are_you_sure',_0x1f02d7(0x84),_0x1f02d7(0x95),_0x1f02d7(0xde)))['value']){let _0x25808a=MetaApi[_0x1f02d7(0xf9)](this['masterGrist'],!0x0);if(_0x25808a){let _0x477ce7=_0x25808a[0x0];const _0x439d41=await client[_0x1f02d7(0xfe)]({'query':a0_0x4bfcc4`
2
2
  query ($id: String!) {
3
3
  toolCreateService(id: $id)
4
4
  }
5
- `,'variables':{'id':_0x3d2f6f},'context':gqlContext()});_0x403092&&_0x403092[_0x295cb3(0x164)]&&_0x403092[_0x295cb3(0x164)]['toolCreateService']&&MetaApi[_0x295cb3(0x121)]('info',TermsUtil[_0x295cb3(0x1aa)](_0x295cb3(0x135)));}}}async[a0_0x5735ef(0x1a6)](){const _0x197ed0=a0_0x5735ef;if(this[_0x197ed0(0x13e)])(await MetaApi[_0x197ed0(0x1b5)](_0x197ed0(0x19d),_0x197ed0(0x1c1),_0x197ed0(0x1b0),'confirm','cancel'))[_0x197ed0(0x167)]&&MetaApi[_0x197ed0(0x184)](this[_0x197ed0(0x15b)],!0x0)&&await this['openMainMenuSelectorPopup']();else MetaApi[_0x197ed0(0x1b5)]('text.nothing_selected',_0x197ed0(0x195),'info','confirm');}async[a0_0x5735ef(0x1bf)](_0x1bc082){const _0x3a25eb=a0_0x5735ef,_0x1560a2=await client[_0x3a25eb(0x134)]({'query':a0_0x251404`
5
+ `,'variables':{'id':_0x477ce7},'context':gqlContext()});_0x439d41&&_0x439d41['data']&&_0x439d41[_0x1f02d7(0xb2)]['toolCreateService']&&MetaApi[_0x1f02d7(0xfc)](_0x1f02d7(0x75),TermsUtil[_0x1f02d7(0xc2)](_0x1f02d7(0xe2)));}}}async['createMenu'](){const _0x4b38c1=a0_0x34be41;if(this[_0x4b38c1(0x10a)])(await MetaApi[_0x4b38c1(0xe8)](_0x4b38c1(0x127),_0x4b38c1(0x89),_0x4b38c1(0x84),_0x4b38c1(0x95),'cancel'))[_0x4b38c1(0xa3)]&&MetaApi[_0x4b38c1(0xf9)](this[_0x4b38c1(0x90)],!0x0)&&await this[_0x4b38c1(0x100)]();else MetaApi[_0x4b38c1(0xe8)](_0x4b38c1(0xe9),'text.nothing_selected',_0x4b38c1(0x75),'confirm');}async['createMenuTo'](_0x45227e){const _0x1cc542=a0_0x34be41,_0x19f28d=await client[_0x1cc542(0xfe)]({'query':a0_0x4bfcc4`
6
6
  mutation($id: String!, $parent_menu_id: String!) {
7
7
  toolCreateMenu(id: $id, parent_menu_id: $parent_menu_id)
8
8
  }
9
- `,'variables':{'id':this['entityId'],'parent_menu_id':_0x1bc082},'context':gqlContext()});return _0x1560a2&&_0x1560a2['data']&&_0x1560a2[_0x3a25eb(0x164)]['toolCreateMenu']?(MetaApi[_0x3a25eb(0x121)](_0x3a25eb(0x18f),TermsUtil[_0x3a25eb(0x1aa)]('success\x20to\x20process')),{'success':!0x0}):{'success':!0x1};}async[a0_0x5735ef(0x191)](){const _0x51a74e=a0_0x5735ef;try{if(this[_0x51a74e(0x13e)]){const _0x43e51e=this[_0x51a74e(0x12c)][_0x51a74e(0x164)][_0x51a74e(0x116)][_0x51a74e(0x161)](_0x447587=>TermsUtil[_0x51a74e(0x1a7)](_0x447587[_0x51a74e(0x11e)])===_0x447587[_0x51a74e(0x11e)])[_0x51a74e(0x179)](_0x56d197=>_0x51a74e(0x189)+_0x56d197[_0x51a74e(0x11e)]),_0x44462c=this[_0x51a74e(0x151)][_0x51a74e(0x149)];_0x43e51e['length']&&((await client['query']({'query':a0_0x251404`
9
+ `,'variables':{'id':this[_0x1cc542(0x10a)],'parent_menu_id':_0x45227e},'context':gqlContext()});return _0x19f28d&&_0x19f28d[_0x1cc542(0xb2)]&&_0x19f28d[_0x1cc542(0xb2)]['toolCreateMenu']?(MetaApi[_0x1cc542(0xfc)](_0x1cc542(0x75),TermsUtil[_0x1cc542(0xc2)](_0x1cc542(0xe2))),{'success':!0x0}):{'success':!0x1};}async[a0_0x34be41(0xd0)](){const _0x18df69=a0_0x34be41;try{if(this[_0x18df69(0x10a)]){const _0x3a785d=this[_0x18df69(0x11e)]['data'][_0x18df69(0xcf)][_0x18df69(0x119)](_0x3ee647=>TermsUtil[_0x18df69(0xed)](_0x3ee647[_0x18df69(0xda)])===_0x3ee647[_0x18df69(0xda)])[_0x18df69(0x92)](_0x342d1e=>_0x18df69(0xe0)+_0x342d1e[_0x18df69(0xda)]),_0x7a3899=this[_0x18df69(0xd6)]['bundle'];_0x3a785d[_0x18df69(0xe6)]&&((await client['query']({'query':a0_0x4bfcc4`
10
10
  query setTranslations($bundle: String!, $terms: [String!]!) {
11
11
  setTranslations(bundle: $bundle, terms: $terms)
12
12
  }
13
- `,'variables':{'bundle':_0x44462c,'terms':_0x43e51e}}))[_0x51a74e(0x1bc)]||MetaApi['showToast'](_0x51a74e(0x18f),TermsUtil['tText'](_0x51a74e(0x1cc))));}}catch(_0x49cfeb){MetaApi[_0x51a74e(0x121)]('error',_0x49cfeb['message']);}}async['exportEntityColumns'](){const _0x133744=a0_0x5735ef;let _0x4ea220=this['detailGrist']['_config'][_0x133744(0x196)][_0x133744(0x161)](_0x43608d=>_0x133744(0x1ba)!==_0x43608d['type']&&void 0x0!==_0x43608d[_0x133744(0x1b6)]&&void 0x0!==_0x43608d['imex'])[_0x133744(0x179)](_0x43c76f=>_0x43c76f[_0x133744(0x186)]),_0x17e8e6=this[_0x133744(0x12c)][_0x133744(0x164)][_0x133744(0x116)][_0x133744(0x179)](_0xe555d5=>({'id':_0xe555d5['id'],...this[_0x133744(0x12c)]['_config'][_0x133744(0x196)][_0x133744(0x161)](_0x1b3be8=>_0x133744(0x1ba)!==_0x1b3be8[_0x133744(0x1c6)]&&void 0x0!==_0x1b3be8[_0x133744(0x1b6)]&&void 0x0!==_0x1b3be8['imex'])['reduce']((_0x383927,_0x1d0363)=>(_0x383927[_0x1d0363['imex'][_0x133744(0x11c)]]=_0x1d0363[_0x133744(0x186)][_0x133744(0x11c)]['split']('.')['reduce']((_0x15842b,_0x2f5901)=>_0x15842b&&'undefined'!==_0x15842b[_0x2f5901]?_0x15842b[_0x2f5901]:void 0x0,_0xe555d5),_0x383927),{})}));store['dispatch']({'type':EXPORT,'exportable':{'extension':'xlsx','name':TermsUtil[_0x133744(0x17c)]('entity-column')+'-'+this[_0x133744(0x151)][_0x133744(0x172)],'data':{'header':_0x4ea220,'data':_0x17e8e6}}});}async[a0_0x5735ef(0x1b4)](){const _0x200287=a0_0x5735ef;let _0x55a5de=this;const _0x1d5af4=document['createElement'](_0x200287(0x16d));_0x1d5af4[_0x200287(0x192)]('type','file'),_0x1d5af4['setAttribute'](_0x200287(0x143),[_0x200287(0x125)]),_0x1d5af4['hidden']=!0x0,_0x1d5af4['addEventListener'](_0x200287(0x13b),_0x557876=>{const _0x57c289=_0x200287,_0x1a423d=_0x557876['currentTarget'][_0x57c289(0x197)][0x0],_0x5f222c=_0x1a423d[_0x57c289(0x172)][_0x57c289(0x119)]('.')[_0x57c289(0x194)](),_0x1df9aa=new FileReader();_0x1df9aa[_0x57c289(0x12a)]=function(_0xeb595f){const _0x4e4244=_0x57c289,_0x1dff0b=_0xeb595f[_0x4e4244(0x16b)][_0x4e4244(0x14b)];store[_0x4e4244(0x1c3)]({'type':IMPORT,'importable':{'extension':_0x5f222c,'handler':_0x55a5de[_0x4e4244(0x136)]['bind'](_0x55a5de)},'data':_0x1dff0b});},_0x1df9aa[_0x57c289(0x181)](_0x1a423d);}),document[_0x200287(0x153)][_0x200287(0x147)](_0x1d5af4),_0x1d5af4[_0x200287(0x1d1)]();}[a0_0x5735ef(0x136)](_0x308594){const _0x3fbf95=a0_0x5735ef;let _0xe7e615=_0x308594[_0x3fbf95(0x1be)]?_0x308594['data']:_0x308594;if(_0xe7e615&&_0xe7e615['length']>0x0){_0xe7e615[_0x3fbf95(0x132)](_0x1fe971=>{_0x1fe971['__selected__']=!0x0;});let _0x4566f5=this[_0x3fbf95(0x128)][_0x3fbf95(0x196)][_0x3fbf95(0x161)](_0x1dbd5b=>!!_0x1dbd5b['imex']);setTimeout(()=>{const _0x5090a6=_0x3fbf95;MetaApi['openPopupByElement'](TermsUtil['tTitle'](_0x5090a6(0x18a)),_0x5090a6(0x133),html`
13
+ `,'variables':{'bundle':_0x7a3899,'terms':_0x3a785d}}))[_0x18df69(0x91)]||MetaApi['showToast'](_0x18df69(0x75),TermsUtil[_0x18df69(0xc2)]('success\x20to\x20register\x20terms')));}}catch(_0x2825f8){MetaApi[_0x18df69(0xfc)](_0x18df69(0x8b),_0x2825f8[_0x18df69(0x114)]);}}async['exportEntityColumns'](){const _0x3dcffb=a0_0x34be41;let _0x422c42=this[_0x3dcffb(0x11e)]['_config'][_0x3dcffb(0x71)][_0x3dcffb(0x119)](_0x7a2e03=>'gutter'!==_0x7a2e03[_0x3dcffb(0xab)]&&void 0x0!==_0x7a2e03[_0x3dcffb(0x105)]&&void 0x0!==_0x7a2e03[_0x3dcffb(0xe1)])[_0x3dcffb(0x92)](_0x163cbb=>_0x163cbb[_0x3dcffb(0xe1)]),_0x1e3075=this[_0x3dcffb(0x11e)]['data'][_0x3dcffb(0xcf)][_0x3dcffb(0x92)](_0x16ff64=>({'id':_0x16ff64['id'],...this[_0x3dcffb(0x11e)][_0x3dcffb(0x9b)][_0x3dcffb(0x71)]['filter'](_0x312417=>_0x3dcffb(0xe5)!==_0x312417['type']&&void 0x0!==_0x312417['record']&&void 0x0!==_0x312417['imex'])['reduce']((_0x44ab20,_0x2399f9)=>(_0x44ab20[_0x2399f9['imex'][_0x3dcffb(0x96)]]=_0x2399f9[_0x3dcffb(0xe1)]['key'][_0x3dcffb(0x109)]('.')['reduce']((_0x5da87a,_0x557537)=>_0x5da87a&&_0x3dcffb(0xd4)!==_0x5da87a[_0x557537]?_0x5da87a[_0x557537]:void 0x0,_0x16ff64),_0x44ab20),{})}));store[_0x3dcffb(0xd9)]({'type':EXPORT,'exportable':{'extension':_0x3dcffb(0x77),'name':TermsUtil[_0x3dcffb(0xca)]('entity-column')+'-'+this[_0x3dcffb(0xd6)][_0x3dcffb(0x85)],'data':{'header':_0x422c42,'data':_0x1e3075}}});}async[a0_0x34be41(0x78)](){const _0x183881=a0_0x34be41;let _0x2049f4=this;const _0x514280=document[_0x183881(0xc8)]('input');_0x514280['setAttribute'](_0x183881(0xab),_0x183881(0x126)),_0x514280[_0x183881(0xa4)](_0x183881(0xdd),['xlsx']),_0x514280[_0x183881(0x9f)]=!0x0,_0x514280[_0x183881(0xd1)](_0x183881(0xe7),_0x294280=>{const _0xb04aea=_0x183881,_0x2f9b7d=_0x294280['currentTarget'][_0xb04aea(0x9c)][0x0],_0x4313db=_0x2f9b7d[_0xb04aea(0x85)]['split']('.')[_0xb04aea(0x123)](),_0x8af7aa=new FileReader();_0x8af7aa[_0xb04aea(0xae)]=function(_0x3d7c18){const _0x547b0f=_0xb04aea,_0x423bd4=_0x3d7c18['target']['result'];store['dispatch']({'type':IMPORT,'importable':{'extension':_0x4313db,'handler':_0x2049f4[_0x547b0f(0x72)][_0x547b0f(0x7d)](_0x2049f4)},'data':_0x423bd4});},_0x8af7aa[_0xb04aea(0x101)](_0x2f9b7d);}),document['body']['appendChild'](_0x514280),_0x514280[_0x183881(0xc1)]();}[a0_0x34be41(0x72)](_0x15d12d){const _0x46758c=a0_0x34be41;let _0x3cf5b6=_0x15d12d[_0x46758c(0x9d)]?_0x15d12d[_0x46758c(0xb2)]:_0x15d12d;if(_0x3cf5b6&&_0x3cf5b6[_0x46758c(0xe6)]>0x0){_0x3cf5b6['forEach'](_0x4a02ca=>{const _0x25cb46=_0x46758c;_0x4a02ca[_0x25cb46(0x9e)]=!0x0;});let _0x144303=this[_0x46758c(0x102)][_0x46758c(0x71)]['filter'](_0x2e0412=>!!_0x2e0412['imex']);setTimeout(()=>{const _0x288a0e=_0x46758c;MetaApi[_0x288a0e(0xbd)](TermsUtil[_0x288a0e(0xca)](_0x288a0e(0x111)),'large',html`
14
14
  <import-pop-up
15
- .records=${_0xe7e615}
16
- .config=${{'rows':_0xe7e615,'columns':[{'type':_0x5090a6(0x1ba),'gutterName':_0x5090a6(0x148)},..._0x4566f5]}}
17
- .importHandler="${this['importHandler'][_0x5090a6(0x17f)](this)}">
18
- </import-pop-up>`);},0x1f4);}}async['importHandler'](_0x4e0c54){const _0x374b91=a0_0x5735ef;if(_0x4e0c54&&0x0!=_0x4e0c54[_0x374b91(0x1a3)]){let _0x9e802f=0x0;_0x4e0c54[_0x374b91(0x132)](_0x5304bf=>{const _0x3d5e1b=_0x374b91;_0x9e802f+=0xa,_0x5304bf[_0x3d5e1b(0x1c9)]=ValueUtil[_0x3d5e1b(0x11d)](_0x5304bf[_0x3d5e1b(0x1c9)])?ValueUtil[_0x3d5e1b(0x173)](_0x5304bf[_0x3d5e1b(0x1c9)]):_0x3d5e1b(0x13c)==_0x5304bf[_0x3d5e1b(0x150)]?0x32:0x0,_0x5304bf['rank']=ValueUtil['toInteger'](_0x5304bf['rank'],0x0),_0x5304bf[_0x3d5e1b(0x15c)]=ValueUtil['toInteger'](_0x5304bf['uniqRank'],0x0),_0x5304bf[_0x3d5e1b(0x12f)]=ValueUtil[_0x3d5e1b(0x173)](_0x5304bf[_0x3d5e1b(0x12f)],0x0),_0x5304bf[_0x3d5e1b(0x12d)]=ValueUtil[_0x3d5e1b(0x173)](_0x5304bf['gridRank'],0x0),_0x5304bf[_0x3d5e1b(0x127)]=ValueUtil['toInteger'](_0x5304bf[_0x3d5e1b(0x127)],0x0),_0x5304bf[_0x3d5e1b(0x177)]={'id':this[_0x3d5e1b(0x13e)]},_0x5304bf['nullable']=ValueUtil['toBoolean'](_0x5304bf[_0x3d5e1b(0x190)]),_0x5304bf['term']=_0x5304bf[_0x3d5e1b(0x11e)]?_0x5304bf['term']:_0x5304bf[_0x3d5e1b(0x172)],_0x5304bf[_0x3d5e1b(0x150)]=_0x5304bf[_0x3d5e1b(0x150)]?_0x5304bf[_0x3d5e1b(0x150)]:_0x3d5e1b(0x13c),delete _0x5304bf[_0x3d5e1b(0x13c)];}),await MetaApi['updateMultiple']('updateMultipleEntityColumn',_0x4e0c54)&&(this[_0x374b91(0x12c)][_0x374b91(0x198)](),history[_0x374b91(0x18e)]());}else MetaApi['showToast']('info',_0x374b91(0x16c)),history[_0x374b91(0x18e)]();}async[a0_0x5735ef(0x1c5)](){const _0x570564=a0_0x5735ef;if(this[_0x570564(0x13e)]){let _0x4be16f=this[_0x570564(0x12c)][_0x570564(0x164)][_0x570564(0x116)],_0x3b1c3e=_0x4be16f&&_0x4be16f['length']?0xa*_0x4be16f[_0x570564(0x1a3)]:0x0,_0x3d7d77=!0x1,_0x2d4bb3=!0x1,_0x5c0ecd=!0x1,_0x2b16f5=!0x1,_0x478b1b=!0x1,_0x3dda30=!0x1;_0x4be16f&&_0x4be16f[_0x570564(0x1a3)]>0x0&&(_0x3d7d77=_0x4be16f[_0x570564(0x11f)](_0x12a867=>'id'==_0x12a867[_0x570564(0x172)])>=0x0,_0x2d4bb3=_0x4be16f[_0x570564(0x11f)](_0x341c98=>'domain_id'==_0x341c98['name'])>=0x0,_0x5c0ecd=_0x4be16f[_0x570564(0x11f)](_0x3a4947=>_0x570564(0x126)==_0x3a4947[_0x570564(0x172)])>=0x0,_0x2b16f5=_0x4be16f[_0x570564(0x11f)](_0x231ec6=>_0x570564(0x1bd)==_0x231ec6[_0x570564(0x172)])>=0x0,_0x478b1b=_0x4be16f['findIndex'](_0x88f3fe=>_0x570564(0x178)==_0x88f3fe[_0x570564(0x172)])>=0x0,_0x3dda30=_0x4be16f[_0x570564(0x11f)](_0xaa7046=>'updater_id'==_0xaa7046[_0x570564(0x172)])>=0x0);let _0x27e4b2=[];_0x3d7d77||(_0x3b1c3e+=0xa,_0x27e4b2['push']({'entity':{'id':this[_0x570564(0x13e)]},'name':'id','colType':_0x570564(0x13c),'colSize':0x0,'nullable':!0x1,'term':'id','rank':_0x3b1c3e,'cuFlag':'+'})),_0x2d4bb3||(_0x3b1c3e+=0xa,_0x27e4b2[_0x570564(0x1cf)]({'entity':{'id':this[_0x570564(0x13e)]},'name':'domain_id','colType':_0x570564(0x13c),'colSize':0x0,'nullable':!0x1,'term':_0x570564(0x145),'rank':_0x3b1c3e,'cuFlag':'+'})),_0x5c0ecd||(_0x3b1c3e+=0xa,_0x27e4b2[_0x570564(0x1cf)]({'entity':{'id':this[_0x570564(0x13e)]},'name':_0x570564(0x126),'colType':'timestamp','colSize':0x0,'nullable':!0x0,'term':_0x570564(0x126),'rank':_0x3b1c3e,'gridRank':0x0,'gridWidth':0x8c,'cuFlag':'+'})),_0x2b16f5||(_0x3b1c3e+=0xa,_0x27e4b2[_0x570564(0x1cf)]({'entity':{'id':this[_0x570564(0x13e)]},'name':_0x570564(0x1bd),'colType':_0x570564(0x154),'colSize':0x0,'nullable':!0x0,'term':'updated_at','rank':_0x3b1c3e,'gridRank':_0x3b1c3e,'gridWidth':0x8c,'cuFlag':'+'})),_0x478b1b||(_0x3b1c3e+=0xa,_0x27e4b2[_0x570564(0x1cf)]({'entity':{'id':this[_0x570564(0x13e)]},'name':_0x570564(0x178),'colType':_0x570564(0x13c),'colSize':0x28,'nullable':!0x0,'term':_0x570564(0x1a9),'rank':_0x3b1c3e,'gridRank':0x0,'gridWidth':0x64,'cuFlag':'+'})),_0x3dda30||(_0x3b1c3e+=0xa,_0x27e4b2[_0x570564(0x1cf)]({'entity':{'id':this[_0x570564(0x13e)]},'name':_0x570564(0x182),'colType':_0x570564(0x13c),'colSize':0x28,'nullable':!0x0,'term':_0x570564(0x1b8),'rank':_0x3b1c3e,'gridRank':0x0,'gridWidth':0x64,'cuFlag':'+'})),await MetaApi[_0x570564(0x113)](_0x570564(0x1a5),_0x27e4b2)&&this[_0x570564(0x12c)]['fetch']();}}async[a0_0x5735ef(0x1c7)](){const _0x498fff=a0_0x5735ef;this[_0x498fff(0x1ae)]=[MetaApi['getGristSearchColumnConfig'](_0x498fff(0x172),_0x498fff(0x13c),_0x498fff(0x172),_0x498fff(0x157)),MetaApi[_0x498fff(0x1ab)]('table_name',_0x498fff(0x13c),_0x498fff(0x1b3),_0x498fff(0x157)),await MetaApi[_0x498fff(0x115)](_0x498fff(0x149),_0x498fff(0x188),_0x498fff(0x149),'eq',_0x498fff(0x183))],this[_0x498fff(0x137)]={'rows':MetaApi[_0x498fff(0x111)](!0x1),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x498fff(0x1ce)](!0x0,!0x1),{'type':_0x498fff(0x1ba),'gutterName':_0x498fff(0x112),'icon':'edit','handlers':{'click':(_0x4f697a,_0xbefb85,_0x6091c7,_0x8a9096,_0x3c2488)=>{const _0x298c24=_0x498fff;_0x8a9096['id']&&this[_0x298c24(0x1af)](_0x8a9096);}}},await MetaApi['getGristCodeSelectorColumnConfig'](_0x498fff(0x149),_0x498fff(0x149),'left',!0x1,0x5a,!0x0,_0x498fff(0x183)),MetaApi[_0x498fff(0x18c)](_0x498fff(0x13c),_0x498fff(0x172),_0x498fff(0x19b),!0x0,!0x1,0x91),MetaApi[_0x498fff(0x18d)](_0x498fff(0x13c),_0x498fff(0x159),_0x498fff(0x1b3),_0x498fff(0x19b),!0x0,!0x1,0xa0),await MetaApi[_0x498fff(0x14c)](_0x498fff(0x174),_0x498fff(0x1c4),'left',!0x1,0x5a,!0x0,_0x498fff(0x142)),await MetaApi[_0x498fff(0x14c)](_0x498fff(0x162),_0x498fff(0x17d),_0x498fff(0x19b),!0x1,0x5a,!0x0,'ENTITY_DEL_STRATEGY'),MetaApi['getGristColumnConfig'](_0x498fff(0x13c),_0x498fff(0x19a),_0x498fff(0x19b),!0x0,!0x1,0xfa)]},this[_0x498fff(0x1ac)]={'rows':MetaApi[_0x498fff(0x111)](!0x0),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x498fff(0x1ce)](!0x0,!0x0),MetaApi[_0x498fff(0x18c)](_0x498fff(0x1a2),_0x498fff(0x17a),_0x498fff(0x16f),!0x0,!0x1,0x32),MetaApi[_0x498fff(0x18c)](_0x498fff(0x13c),_0x498fff(0x172),_0x498fff(0x19b),!0x0,!0x1,0x87),{'type':_0x498fff(0x13c),'name':_0x498fff(0x11e),'header':TermsUtil['tLabel'](_0x498fff(0x11e)),'sortable':!0x1,'width':0x87,'record':{'editable':!0x0,'align':'left','renderer':(_0x1e9b7f,_0x21069a,_0x3f48b5,_0x2a917f,_0x173a9b)=>_0x3f48b5[_0x498fff(0x11e)]?TermsUtil[_0x498fff(0x1a7)](_0x3f48b5['term'],null,_0x3f48b5[_0x498fff(0x11e)]):''}},await MetaApi[_0x498fff(0x14c)](_0x498fff(0x150),_0x498fff(0x193),'left',!0x1,0x4b,!0x0,_0x498fff(0x16e)),MetaApi['getGristColumnConfig2'](_0x498fff(0x1a2),_0x498fff(0x1c9),'size','right',!0x0,!0x1,0x3c),MetaApi['getGristColumnConfig2'](_0x498fff(0x12b),'nullable',_0x498fff(0x190),_0x498fff(0x16f),!0x0,!0x1,0x46),MetaApi['getGristColumnConfig2']('integer',_0x498fff(0x15c),_0x498fff(0x129),_0x498fff(0x1c2),!0x0,!0x1,0x46),MetaApi[_0x498fff(0x18d)](_0x498fff(0x13c),_0x498fff(0x19a),_0x498fff(0x19a),'left',!0x0,!0x1,0x87),MetaApi['getGristColumnConfig2']('integer',_0x498fff(0x12f),_0x498fff(0x16a),_0x498fff(0x1c2),!0x0,!0x1,0x46),await MetaApi[_0x498fff(0x14c)](_0x498fff(0x180),_0x498fff(0x11b),_0x498fff(0x19b),!0x1,0x55,!0x0,_0x498fff(0x17b)),MetaApi[_0x498fff(0x18d)](_0x498fff(0x1a2),_0x498fff(0x12d),_0x498fff(0x1bb),'right',!0x0,!0x1,0x50),MetaApi[_0x498fff(0x18d)](_0x498fff(0x1a2),'gridWidth',_0x498fff(0x1b2),'right',!0x0,!0x1,0x4b),await MetaApi[_0x498fff(0x14c)]('gridEditor',_0x498fff(0x155),_0x498fff(0x19b),!0x1,0x5a,!0x0,_0x498fff(0x1a8)),await MetaApi[_0x498fff(0x14c)]('refType','ref_type',_0x498fff(0x19b),!0x1,0x55,!0x0,_0x498fff(0x176)),MetaApi[_0x498fff(0x18d)](_0x498fff(0x13c),_0x498fff(0x163),'ref_name',_0x498fff(0x19b),!0x0,!0x1,0x64),MetaApi['getGristColumnConfig2'](_0x498fff(0x13c),'defVal',_0x498fff(0x1a1),_0x498fff(0x19b),!0x0,!0x1,0x64)]},this['importConfig']={'rows':MetaApi[_0x498fff(0x111)](!0x0),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x498fff(0x1ce)](!0x0,!0x0),MetaApi['getGristColumnConfig']('integer','rank',_0x498fff(0x16f),!0x0,!0x1,0x32),MetaApi[_0x498fff(0x18c)](_0x498fff(0x13c),'name',_0x498fff(0x19b),!0x0,!0x1,0x73),{'type':'string','name':_0x498fff(0x11e),'header':TermsUtil[_0x498fff(0x1a7)](_0x498fff(0x11e)),'sortable':!0x1,'width':0x87,'record':{'editable':!0x1,'align':_0x498fff(0x19b),'renderer':(_0x1730aa,_0x5722df,_0x29d592,_0x48a762,_0x213db9)=>_0x29d592[_0x498fff(0x11e)]?TermsUtil[_0x498fff(0x1a7)](_0x29d592[_0x498fff(0x11e)],null,_0x29d592[_0x498fff(0x11e)]):''}},await MetaApi[_0x498fff(0x14c)](_0x498fff(0x150),_0x498fff(0x193),_0x498fff(0x19b),!0x1,0x4b,!0x0,_0x498fff(0x16e)),MetaApi[_0x498fff(0x18d)](_0x498fff(0x1a2),_0x498fff(0x1c9),_0x498fff(0x19c),_0x498fff(0x1c2),!0x0,!0x1,0x3c),MetaApi['getGristColumnConfig2'](_0x498fff(0x12b),_0x498fff(0x190),_0x498fff(0x190),_0x498fff(0x16f),!0x0,!0x1,0x46),MetaApi[_0x498fff(0x18d)]('integer','uniqRank','uniq_rank',_0x498fff(0x1c2),!0x0,!0x1,0x46),MetaApi[_0x498fff(0x18d)](_0x498fff(0x13c),'description','description','left',!0x0,!0x1,0x87),MetaApi[_0x498fff(0x18d)]('integer',_0x498fff(0x12f),'search_rank',_0x498fff(0x1c2),!0x0,!0x1,0x46),await MetaApi[_0x498fff(0x14c)](_0x498fff(0x13c),_0x498fff(0x11b),'left',!0x1,0x55,!0x0,'FILTER_OPERATORS'),MetaApi[_0x498fff(0x18d)]('integer',_0x498fff(0x12d),_0x498fff(0x1bb),_0x498fff(0x1c2),!0x0,!0x1,0x50),MetaApi[_0x498fff(0x18d)](_0x498fff(0x1a2),'gridWidth','grid_width',_0x498fff(0x1c2),!0x0,!0x1,0x4b),await MetaApi[_0x498fff(0x14c)](_0x498fff(0x165),_0x498fff(0x155),_0x498fff(0x19b),!0x1,0x5a,!0x0,_0x498fff(0x140)),await MetaApi[_0x498fff(0x14c)](_0x498fff(0x114),_0x498fff(0x175),_0x498fff(0x19b),!0x1,0x55,!0x0,'COLUMN_REF_TYPE'),MetaApi[_0x498fff(0x18d)](_0x498fff(0x13c),'refName',_0x498fff(0x1a4),'left',!0x0,!0x1,0x64)]};}['render'](){const _0x5382d0=a0_0x5735ef;return html`
15
+ .records=${_0x3cf5b6}
16
+ .config=${{'rows':_0x3cf5b6,'columns':[{'type':_0x288a0e(0xe5),'gutterName':_0x288a0e(0xa8)},..._0x144303]}}
17
+ .importHandler="${this[_0x288a0e(0x6d)]['bind'](this)}">
18
+ </import-pop-up>`);},0x1f4);}}async[a0_0x34be41(0x6d)](_0xf45010){const _0x2f08bf=a0_0x34be41;if(_0xf45010&&0x0!=_0xf45010[_0x2f08bf(0xe6)]){let _0x3af08e=0x0;_0xf45010[_0x2f08bf(0xaf)](_0x5749dd=>{const _0x5a8601=_0x2f08bf;_0x3af08e+=0xa,_0x5749dd[_0x5a8601(0xa6)]=ValueUtil[_0x5a8601(0xba)](_0x5749dd[_0x5a8601(0xa6)])?ValueUtil[_0x5a8601(0x112)](_0x5749dd[_0x5a8601(0xa6)]):_0x5a8601(0x113)==_0x5749dd[_0x5a8601(0x10c)]?0x32:0x0,_0x5749dd[_0x5a8601(0x104)]=ValueUtil['toInteger'](_0x5749dd[_0x5a8601(0x104)],0x0),_0x5749dd['uniqRank']=ValueUtil['toInteger'](_0x5749dd[_0x5a8601(0xc6)],0x0),_0x5749dd[_0x5a8601(0xea)]=ValueUtil[_0x5a8601(0x112)](_0x5749dd[_0x5a8601(0xea)],0x0),_0x5749dd[_0x5a8601(0xf1)]=ValueUtil[_0x5a8601(0x112)](_0x5749dd[_0x5a8601(0xf1)],0x0),_0x5749dd[_0x5a8601(0xcd)]=ValueUtil[_0x5a8601(0x112)](_0x5749dd[_0x5a8601(0xcd)],0x0),_0x5749dd[_0x5a8601(0x7a)]={'id':this[_0x5a8601(0x10a)]},_0x5749dd[_0x5a8601(0x76)]=ValueUtil[_0x5a8601(0xb0)](_0x5749dd[_0x5a8601(0x76)]),_0x5749dd[_0x5a8601(0xda)]=_0x5749dd['term']?_0x5749dd[_0x5a8601(0xda)]:_0x5749dd[_0x5a8601(0x85)],_0x5749dd[_0x5a8601(0x10c)]=_0x5749dd[_0x5a8601(0x10c)]?_0x5749dd['colType']:'string',delete _0x5749dd['string'];}),await MetaApi[_0x2f08bf(0xff)]('updateMultipleEntityColumn',_0xf45010)&&(this[_0x2f08bf(0x11e)][_0x2f08bf(0x94)](),history['back']());}else MetaApi['showToast'](_0x2f08bf(0x75),_0x2f08bf(0xa9)),history[_0x2f08bf(0x88)]();}async[a0_0x34be41(0x12a)](){const _0x5b572d=a0_0x34be41;if(this[_0x5b572d(0x10a)]){let _0x8602d1=this[_0x5b572d(0x11e)][_0x5b572d(0xb2)]['records'],_0x31e73e=_0x8602d1&&_0x8602d1[_0x5b572d(0xe6)]?0xa*_0x8602d1[_0x5b572d(0xe6)]:0x0,_0x1cbe7e=!0x1,_0x260ea8=!0x1,_0x5d7487=!0x1,_0xd3b5a7=!0x1,_0xb047d8=!0x1,_0x392892=!0x1;_0x8602d1&&_0x8602d1[_0x5b572d(0xe6)]>0x0&&(_0x1cbe7e=_0x8602d1[_0x5b572d(0x10b)](_0x50ba34=>'id'==_0x50ba34[_0x5b572d(0x85)])>=0x0,_0x260ea8=_0x8602d1[_0x5b572d(0x10b)](_0x318e39=>'domain_id'==_0x318e39[_0x5b572d(0x85)])>=0x0,_0x5d7487=_0x8602d1['findIndex'](_0x36d124=>'created_at'==_0x36d124[_0x5b572d(0x85)])>=0x0,_0xd3b5a7=_0x8602d1[_0x5b572d(0x10b)](_0x362003=>'updated_at'==_0x362003[_0x5b572d(0x85)])>=0x0,_0xb047d8=_0x8602d1[_0x5b572d(0x10b)](_0x370a92=>_0x5b572d(0x97)==_0x370a92[_0x5b572d(0x85)])>=0x0,_0x392892=_0x8602d1['findIndex'](_0x1d2bb8=>'updater_id'==_0x1d2bb8['name'])>=0x0);let _0x56513e=[];_0x1cbe7e||(_0x31e73e+=0xa,_0x56513e[_0x5b572d(0x122)]({'entity':{'id':this[_0x5b572d(0x10a)]},'name':'id','colType':'string','colSize':0x0,'nullable':!0x1,'term':'id','rank':_0x31e73e,'cuFlag':'+'})),_0x260ea8||(_0x31e73e+=0xa,_0x56513e['push']({'entity':{'id':this[_0x5b572d(0x10a)]},'name':_0x5b572d(0x124),'colType':'string','colSize':0x0,'nullable':!0x1,'term':_0x5b572d(0x70),'rank':_0x31e73e,'cuFlag':'+'})),_0x5d7487||(_0x31e73e+=0xa,_0x56513e[_0x5b572d(0x122)]({'entity':{'id':this[_0x5b572d(0x10a)]},'name':_0x5b572d(0xf2),'colType':_0x5b572d(0x116),'colSize':0x0,'nullable':!0x0,'term':_0x5b572d(0xf2),'rank':_0x31e73e,'gridRank':0x0,'gridWidth':0x8c,'cuFlag':'+'})),_0xd3b5a7||(_0x31e73e+=0xa,_0x56513e['push']({'entity':{'id':this[_0x5b572d(0x10a)]},'name':'updated_at','colType':'timestamp','colSize':0x0,'nullable':!0x0,'term':_0x5b572d(0xf3),'rank':_0x31e73e,'gridRank':_0x31e73e,'gridWidth':0x8c,'cuFlag':'+'})),_0xb047d8||(_0x31e73e+=0xa,_0x56513e[_0x5b572d(0x122)]({'entity':{'id':this[_0x5b572d(0x10a)]},'name':_0x5b572d(0x97),'colType':_0x5b572d(0x113),'colSize':0x28,'nullable':!0x0,'term':_0x5b572d(0xeb),'rank':_0x31e73e,'gridRank':0x0,'gridWidth':0x64,'cuFlag':'+'})),_0x392892||(_0x31e73e+=0xa,_0x56513e[_0x5b572d(0x122)]({'entity':{'id':this['entityId']},'name':_0x5b572d(0xf6),'colType':_0x5b572d(0x113),'colSize':0x28,'nullable':!0x0,'term':_0x5b572d(0x7c),'rank':_0x31e73e,'gridRank':0x0,'gridWidth':0x64,'cuFlag':'+'})),await MetaApi[_0x5b572d(0xff)]('updateMultipleEntityColumn',_0x56513e)&&this[_0x5b572d(0x11e)][_0x5b572d(0x94)]();}}async[a0_0x34be41(0xc4)](){const _0x44dcac=a0_0x34be41;this[_0x44dcac(0xdb)]=[MetaApi[_0x44dcac(0xcc)](_0x44dcac(0x85),_0x44dcac(0x113),_0x44dcac(0x85),_0x44dcac(0x87)),MetaApi[_0x44dcac(0xcc)](_0x44dcac(0xaa),_0x44dcac(0x113),'table_name',_0x44dcac(0x87)),await MetaApi[_0x44dcac(0xa1)](_0x44dcac(0xdf),_0x44dcac(0xdc),_0x44dcac(0xdf),'eq','BUNDLE')],this[_0x44dcac(0x86)]={'rows':MetaApi[_0x44dcac(0xbe)](!0x1),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x44dcac(0x80)](!0x0,!0x1),{'type':_0x44dcac(0xe5),'gutterName':'button','icon':'edit','handlers':{'click':(_0x51f05b,_0x48f54f,_0x4e0583,_0x2721ee,_0x4adf61)=>{_0x2721ee['id']&&this['searchEntityColumns'](_0x2721ee);}}},await MetaApi[_0x44dcac(0xd8)](_0x44dcac(0xdf),_0x44dcac(0xdf),'left',!0x1,0x5a,!0x0,_0x44dcac(0xb8)),MetaApi[_0x44dcac(0xd7)](_0x44dcac(0x113),_0x44dcac(0x85),_0x44dcac(0xf0),!0x0,!0x1,0x91),MetaApi[_0x44dcac(0x128)]('string','tableName',_0x44dcac(0xaa),'left',!0x0,!0x1,0xa0),await MetaApi[_0x44dcac(0xd8)]('dataProp','entity_manage_hist',_0x44dcac(0xf0),!0x1,0x5a,!0x0,_0x44dcac(0xc7)),await MetaApi[_0x44dcac(0xd8)]('delStrategy',_0x44dcac(0xcb),_0x44dcac(0xf0),!0x1,0x5a,!0x0,_0x44dcac(0x121)),MetaApi[_0x44dcac(0xd7)](_0x44dcac(0x113),_0x44dcac(0x8c),_0x44dcac(0xf0),!0x0,!0x1,0xfa)]},this['detailConfig']={'rows':MetaApi[_0x44dcac(0xbe)](!0x0),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x44dcac(0x80)](!0x0,!0x0),MetaApi[_0x44dcac(0xd7)](_0x44dcac(0x115),_0x44dcac(0x104),_0x44dcac(0x118),!0x0,!0x1,0x32),MetaApi[_0x44dcac(0xd7)](_0x44dcac(0x113),_0x44dcac(0x85),_0x44dcac(0xf0),!0x0,!0x1,0x87),{'type':'string','name':'term','header':TermsUtil[_0x44dcac(0xed)](_0x44dcac(0xda)),'sortable':!0x1,'width':0x87,'record':{'editable':!0x0,'align':_0x44dcac(0xf0),'renderer':(_0x440f77,_0xda26fb,_0x431d70,_0x432a06,_0x5772dc)=>_0x431d70[_0x44dcac(0xda)]?TermsUtil[_0x44dcac(0xed)](_0x431d70[_0x44dcac(0xda)],null,_0x431d70[_0x44dcac(0xda)]):''}},await MetaApi[_0x44dcac(0xd8)](_0x44dcac(0x10c),_0x44dcac(0x7b),_0x44dcac(0xf0),!0x1,0x4b,!0x0,_0x44dcac(0xfb)),MetaApi[_0x44dcac(0x128)](_0x44dcac(0x115),_0x44dcac(0xa6),_0x44dcac(0x82),_0x44dcac(0x93),!0x0,!0x1,0x3c),MetaApi[_0x44dcac(0x128)]('boolean',_0x44dcac(0x76),_0x44dcac(0x76),_0x44dcac(0x118),!0x0,!0x1,0x46),MetaApi[_0x44dcac(0x128)](_0x44dcac(0x115),_0x44dcac(0xc6),_0x44dcac(0xf8),_0x44dcac(0x93),!0x0,!0x1,0x46),MetaApi[_0x44dcac(0x128)](_0x44dcac(0x113),_0x44dcac(0x8c),_0x44dcac(0x8c),_0x44dcac(0xf0),!0x0,!0x1,0x87),MetaApi['getGristColumnConfig2'](_0x44dcac(0x115),_0x44dcac(0xea),_0x44dcac(0xee),'right',!0x0,!0x1,0x46),await MetaApi[_0x44dcac(0xd8)](_0x44dcac(0x11d),'search_oper',_0x44dcac(0xf0),!0x1,0x55,!0x0,_0x44dcac(0x10e)),MetaApi[_0x44dcac(0x128)]('integer',_0x44dcac(0xf1),_0x44dcac(0xb4),_0x44dcac(0x93),!0x0,!0x1,0x50),MetaApi['getGristColumnConfig2'](_0x44dcac(0x115),_0x44dcac(0xcd),_0x44dcac(0x8f),_0x44dcac(0x93),!0x0,!0x1,0x4b),await MetaApi['getGristCodeSelectorColumnConfig']('gridEditor','grid_editor',_0x44dcac(0xf0),!0x1,0x5a,!0x0,_0x44dcac(0x11a)),await MetaApi[_0x44dcac(0xd8)](_0x44dcac(0x81),_0x44dcac(0xb6),'left',!0x1,0x55,!0x0,_0x44dcac(0x99)),MetaApi['getGristColumnConfig2'](_0x44dcac(0x113),'refName',_0x44dcac(0xb9),'left',!0x0,!0x1,0x64),MetaApi[_0x44dcac(0x128)](_0x44dcac(0x113),'defVal',_0x44dcac(0x10d),'left',!0x0,!0x1,0x64)]},this[_0x44dcac(0x102)]={'rows':MetaApi['getGristSelectableConfig'](!0x0),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x44dcac(0x80)](!0x0,!0x0),MetaApi[_0x44dcac(0xd7)](_0x44dcac(0x115),_0x44dcac(0x104),_0x44dcac(0x118),!0x0,!0x1,0x32),MetaApi['getGristColumnConfig'](_0x44dcac(0x113),_0x44dcac(0x85),_0x44dcac(0xf0),!0x0,!0x1,0x73),{'type':_0x44dcac(0x113),'name':'term','header':TermsUtil['tLabel'](_0x44dcac(0xda)),'sortable':!0x1,'width':0x87,'record':{'editable':!0x1,'align':_0x44dcac(0xf0),'renderer':(_0x483c5b,_0x1b0deb,_0x5328a3,_0x509c91,_0x2e3abd)=>_0x5328a3[_0x44dcac(0xda)]?TermsUtil[_0x44dcac(0xed)](_0x5328a3[_0x44dcac(0xda)],null,_0x5328a3['term']):''}},await MetaApi['getGristCodeSelectorColumnConfig'](_0x44dcac(0x10c),_0x44dcac(0x7b),_0x44dcac(0xf0),!0x1,0x4b,!0x0,'ENTITY_COLUMN_TYPES'),MetaApi['getGristColumnConfig2']('integer',_0x44dcac(0xa6),'size',_0x44dcac(0x93),!0x0,!0x1,0x3c),MetaApi['getGristColumnConfig2'](_0x44dcac(0x7e),_0x44dcac(0x76),'nullable',_0x44dcac(0x118),!0x0,!0x1,0x46),MetaApi['getGristColumnConfig2'](_0x44dcac(0x115),_0x44dcac(0xc6),_0x44dcac(0xf8),_0x44dcac(0x93),!0x0,!0x1,0x46),MetaApi[_0x44dcac(0x128)](_0x44dcac(0x113),'description','description',_0x44dcac(0xf0),!0x0,!0x1,0x87),MetaApi[_0x44dcac(0x128)](_0x44dcac(0x115),_0x44dcac(0xea),_0x44dcac(0xee),'right',!0x0,!0x1,0x46),await MetaApi[_0x44dcac(0xd8)](_0x44dcac(0x113),_0x44dcac(0x108),_0x44dcac(0xf0),!0x1,0x55,!0x0,_0x44dcac(0x10e)),MetaApi[_0x44dcac(0x128)](_0x44dcac(0x115),'gridRank',_0x44dcac(0xb4),'right',!0x0,!0x1,0x50),MetaApi[_0x44dcac(0x128)](_0x44dcac(0x115),_0x44dcac(0xcd),_0x44dcac(0x8f),_0x44dcac(0x93),!0x0,!0x1,0x4b),await MetaApi[_0x44dcac(0xd8)](_0x44dcac(0xfd),'grid_editor','left',!0x1,0x5a,!0x0,'GRIST_COLUMN_TYPES'),await MetaApi[_0x44dcac(0xd8)](_0x44dcac(0x81),_0x44dcac(0xb6),'left',!0x1,0x55,!0x0,_0x44dcac(0x99)),MetaApi[_0x44dcac(0x128)](_0x44dcac(0x113),'refName',_0x44dcac(0xb9),'left',!0x0,!0x1,0x64)]};}[a0_0x34be41(0xf7)](){const _0x1ff399=a0_0x34be41;return html`
19
19
  <div slot="headroom">
20
20
  <div id="filters">
21
21
  <ox-filters-form-base
22
- .filters=${this[_0x5382d0(0x1ae)]||[]}
23
- @filters-change=${_0xd1cd4c=>{const _0x2fd1f1=_0x5382d0;this[_0x2fd1f1(0x15b)]?.[_0x2fd1f1(0x198)]();}}
22
+ .filters=${this[_0x1ff399(0xdb)]||[]}
23
+ @filters-change=${_0x2943f0=>{const _0x37b5d9=_0x1ff399;this['masterGrist']?.[_0x37b5d9(0x94)]();}}
24
24
  ></ox-filters-form-base>
25
25
  </div>
26
26
  </div>
@@ -28,42 +28,42 @@ const a0_0x5735ef=a0_0x23d9;function a0_0x4dd2(){const _0x15a447=['ox-filters-fo
28
28
  <div class='container' style='grid-template-columns: 37% 63%'>
29
29
  <div class="container_detail">
30
30
  <h2>
31
- <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x5382d0(0x17c)]('entity')}
31
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1ff399(0xca)](_0x1ff399(0x7a))}
32
32
  </h2>
33
33
  <ox-grist
34
34
  id="master-grist"
35
- .config=${this[_0x5382d0(0x137)]}
36
- .mode=${MetaApi[_0x5382d0(0x14a)]()?_0x5382d0(0x15a):_0x5382d0(0x124)}
35
+ .config=${this['masterConfig']}
36
+ .mode=${MetaApi[_0x1ff399(0x6e)]()?_0x1ff399(0x79):'GRID'}
37
37
  auto-fetch
38
- .fetchHandler=${this['fetchEntities'][_0x5382d0(0x17f)](this)}>
38
+ .fetchHandler=${this['fetchEntities']['bind'](this)}>
39
39
  </ox-grist>
40
40
  <div id="button-container" class="button-container">
41
- <mwc-button raised label="${TermsUtil['tButton'](_0x5382d0(0x123))}" @click=${_0x4c6c29=>this[_0x5382d0(0x130)]()}></mwc-button>
42
- <mwc-button raised label="${TermsUtil[_0x5382d0(0x1ca)]('create-menu')}" @click=${_0x16e0a9=>this[_0x5382d0(0x1a6)]()}></mwc-button>
43
- <mwc-button raised label="${TermsUtil[_0x5382d0(0x1ca)]('save')}" @click=${_0x334309=>this[_0x5382d0(0x120)]()}></mwc-button>
44
- <mwc-button raised label="${TermsUtil[_0x5382d0(0x1ca)]('delete')}" @click=${_0x2cacd5=>this[_0x5382d0(0x171)]()}></mwc-button>
41
+ <mwc-button raised label="${TermsUtil[_0x1ff399(0x74)](_0x1ff399(0xf4))}" @click=${_0x5d9228=>this['createService']()}></mwc-button>
42
+ <mwc-button raised label="${TermsUtil[_0x1ff399(0x74)](_0x1ff399(0xbb))}" @click=${_0x4f7472=>this[_0x1ff399(0x103)]()}></mwc-button>
43
+ <mwc-button raised label="${TermsUtil['tButton'](_0x1ff399(0xec))}" @click=${_0x4e5236=>this[_0x1ff399(0x106)]()}></mwc-button>
44
+ <mwc-button raised label="${TermsUtil['tButton'](_0x1ff399(0xfa))}" @click=${_0x4537ec=>this['deleteMasters']()}></mwc-button>
45
45
  </div>
46
46
  </div>
47
47
 
48
48
  <div class="container_detail">
49
49
  <h2>
50
- <mwc-icon>list_alt</mwc-icon>${TermsUtil['tTitle'](_0x5382d0(0x13a))}
50
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1ff399(0xca)](_0x1ff399(0xbf))}
51
51
  </h2>
52
52
  <ox-grist
53
53
  id="detail-grist"
54
- .config=${this[_0x5382d0(0x1ac)]}
55
- .mode=${MetaApi[_0x5382d0(0x14a)]()?_0x5382d0(0x15a):_0x5382d0(0x124)}
54
+ .config=${this[_0x1ff399(0x8a)]}
55
+ .mode=${MetaApi[_0x1ff399(0x6e)]()?_0x1ff399(0x79):_0x1ff399(0xc0)}
56
56
  explcit-fetch
57
- .fetchHandler=${this['fetchEntityColumns'][_0x5382d0(0x17f)](this)}>
57
+ .fetchHandler=${this['fetchEntityColumns']['bind'](this)}>
58
58
  </ox-grist>
59
59
  <div id="button-container" class="button-container">
60
- <mwc-button raised label="${TermsUtil['tButton'](_0x5382d0(0x19e))}" @click=${_0x28d0da=>this['exportEntityColumns']()}></mwc-button>
61
- <mwc-button raised label="${TermsUtil['tButton'](_0x5382d0(0x18a))}" @click=${_0x4b1db9=>this[_0x5382d0(0x1b4)]()}></mwc-button>
62
- <mwc-button raised label="${TermsUtil['tButton'](_0x5382d0(0x14f))}" @click=${_0x59b899=>this[_0x5382d0(0x1c5)]()}></mwc-button>
63
- <mwc-button raised label="${TermsUtil['tButton'](_0x5382d0(0x17e))}" @click=${_0x1b59ef=>this[_0x5382d0(0x191)]()}></mwc-button>
64
- <mwc-button raised label="${TermsUtil[_0x5382d0(0x1ca)](_0x5382d0(0x117))}" @click=${_0x4ca7d5=>this[_0x5382d0(0x131)]()}></mwc-button>
65
- <mwc-button raised label="${TermsUtil['tButton'](_0x5382d0(0x138))}" @click=${_0xa87da7=>this[_0x5382d0(0x1a0)]()}></mwc-button>
60
+ <mwc-button raised label="${TermsUtil[_0x1ff399(0x74)]('export')}" @click=${_0x24a93d=>this['exportEntityColumns']()}></mwc-button>
61
+ <mwc-button raised label="${TermsUtil['tButton'](_0x1ff399(0x111))}" @click=${_0x4d8350=>this[_0x1ff399(0x78)]()}></mwc-button>
62
+ <mwc-button raised label="${TermsUtil[_0x1ff399(0x74)](_0x1ff399(0x11b))}" @click=${_0x5b5f17=>this['checkEntityColumns']()}></mwc-button>
63
+ <mwc-button raised label="${TermsUtil[_0x1ff399(0x74)](_0x1ff399(0x11c))}" @click=${_0x436b88=>this['createUnregisteredTerms']()}></mwc-button>
64
+ <mwc-button raised label="${TermsUtil[_0x1ff399(0x74)]('save')}" @click=${_0x8ed47d=>this['saveEntityColumns']()}></mwc-button>
65
+ <mwc-button raised label="${TermsUtil[_0x1ff399(0x74)]('delete')}" @click=${_0x46c83d=>this['deleteEntityColumns']()}></mwc-button>
66
66
  </div>
67
67
  </div>
68
68
  </div>
69
- `;}}customElements[a0_0x5735ef(0x118)](a0_0x5735ef(0x185),ConfigEntity);
69
+ `;}}customElements['define'](a0_0x34be41(0x98),ConfigEntity);
@@ -1,4 +1,4 @@
1
- const a0_0x204ae9=a0_0x3690;function a0_0xaea2(){const _0x1a6869=['define','MENU_TYPE','fetchMainMenus','button.confirm','4692195VjPtGw','getGristCodeSelectorColumnConfig','properties','59024gwRAPy','title.info','success','total','create-menu','menu_type','selected','records','menus','getGristSelectableConfig','is_null','getGristGuttersConfig','7kxBiix','151764ltXLDV','tButton','selectCallback','3530268QjOprt','selectMainMenu','items','\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20menuType\x0a\x20\x20\x20\x20\x20\x20category\x0a\x20\x20\x20\x20','getGristColumnConfig','rank','grist','connectedCallback','gridConfig','name','385862NbcfUm','300Zthgex','tLabel','50238386PrMLxV','1544mrlyYI','GRID','styles','parentId','querySelector','#ox-grist','title','left','info','text.NOTHING_SELECTED','285040VWTeKG','string','center','length','bind','shadowRoot','searchByPagination','main-menu-selector','4CYTYri'];a0_0xaea2=function(){return _0x1a6869;};return a0_0xaea2();}(function(_0x39a6f6,_0x21ee05){const _0x1a52aa=a0_0x3690,_0x168434=_0x39a6f6();while(!![]){try{const _0x39c35a=parseInt(_0x1a52aa(0x180))/0x1*(parseInt(_0x1a52aa(0x156))/0x2)+parseInt(_0x1a52aa(0x171))/0x3*(-parseInt(_0x1a52aa(0x16c))/0x4)+parseInt(_0x1a52aa(0x157))/0x5*(-parseInt(_0x1a52aa(0x181))/0x6)+parseInt(_0x1a52aa(0x174))/0x7*(-parseInt(_0x1a52aa(0x15a))/0x8)+-parseInt(_0x1a52aa(0x184))/0x9+parseInt(_0x1a52aa(0x164))/0xa+parseInt(_0x1a52aa(0x159))/0xb;if(_0x39c35a===_0x21ee05)break;else _0x168434['push'](_0x168434['shift']());}catch(_0x20775a){_0x168434['push'](_0x168434['shift']());}}}(a0_0xaea2,0xce40e));import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';import{ScrollbarStyles,CommonGristStyles}from'@operato/styles';import{TermsUtil}from'./../../utils/terms-util';import{UiUtil}from'../../utils/ui-util';function a0_0x3690(_0x2ec628,_0x3ce99f){const _0xaea24d=a0_0xaea2();return a0_0x3690=function(_0x3690fd,_0x30e5a4){_0x3690fd=_0x3690fd-0x14e;let _0x505d17=_0xaea24d[_0x3690fd];return _0x505d17;},a0_0x3690(_0x2ec628,_0x3ce99f);}import{MetaApi}from'../../utils/meta-api';export class MainMenuSelector extends localize(i18next)(LitElement){static get[a0_0x204ae9(0x15c)](){return[ScrollbarStyles,CommonGristStyles,css`
1
+ function a0_0x5c40(){const _0x140b3f=['rank','2099688jAhfDm','string','GRID','selectMainMenu','center','menus','18njsQlw','143970seeLyy','title.info','136500ycjycK','info','9378136yqiRuz','selected','properties','title','165RAGggt','MENU_TYPE','tButton','tLabel','menu_type','items','connectedCallback','querySelector','fetchMainMenus','tMenu','name','total','bind','integer','back','left','menuType','length','\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20menuType\x0a\x20\x20\x20\x20\x20\x20category\x0a\x20\x20\x20\x20','shadowRoot','getGristSelectableConfig','selectCallback','3087093QPAmdn','getGristColumnConfig','#ox-grist','parentId','gridConfig','success','61388YYJIiU','define','7968360oBuQaI'];a0_0x5c40=function(){return _0x140b3f;};return a0_0x5c40();}function a0_0x28da(_0x3b66fd,_0x193340){const _0x5c40dc=a0_0x5c40();return a0_0x28da=function(_0x28da26,_0x582b57){_0x28da26=_0x28da26-0x8f;let _0xa508a8=_0x5c40dc[_0x28da26];return _0xa508a8;},a0_0x28da(_0x3b66fd,_0x193340);}const a0_0x2a2215=a0_0x28da;(function(_0x2cc4cb,_0x500506){const _0x5aeb05=a0_0x28da,_0x263a61=_0x2cc4cb();while(!![]){try{const _0x294f78=parseInt(_0x5aeb05(0x9b))/0x1+parseInt(_0x5aeb05(0x94))/0x2+parseInt(_0x5aeb05(0xb9))/0x3+-parseInt(_0x5aeb05(0x90))/0x4*(parseInt(_0x5aeb05(0xa3))/0x5)+parseInt(_0x5aeb05(0x92))/0x6+-parseInt(_0x5aeb05(0x9d))/0x7+-parseInt(_0x5aeb05(0x9f))/0x8*(parseInt(_0x5aeb05(0x9a))/0x9);if(_0x294f78===_0x500506)break;else _0x263a61['push'](_0x263a61['shift']());}catch(_0x12b43a){_0x263a61['push'](_0x263a61['shift']());}}}(a0_0x5c40,0xa61e4));import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';import{ScrollbarStyles,CommonGristStyles}from'@operato/styles';import{TermsUtil}from'./../../utils/terms-util';import{UiUtil}from'../../utils/ui-util';import{MetaApi}from'../../utils/meta-api';export class MainMenuSelector extends localize(i18next)(LitElement){static get['styles'](){return[ScrollbarStyles,CommonGristStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -57,19 +57,19 @@ const a0_0x204ae9=a0_0x3690;function a0_0xaea2(){const _0x1a6869=['define','MENU
57
57
  height: var(--button-container-height);
58
58
  text-align: right;
59
59
  padding-right: 12px;
60
- }`];}static get[a0_0x204ae9(0x173)](){return{'items':{'type':Array},'total':{'type':Number},'selectCallback':{'type':Function}};}async[a0_0x204ae9(0x153)](){const _0x5bee2d=a0_0x204ae9;this['gridConfig']={'rows':MetaApi[_0x5bee2d(0x17d)](!0x1),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x5bee2d(0x17f)](!0x0,!0x1),MetaApi[_0x5bee2d(0x150)]('integer','rank',_0x5bee2d(0x166),!0x0,!0x1,0x3c),MetaApi['getGristColumnConfig'](_0x5bee2d(0x165),_0x5bee2d(0x155),_0x5bee2d(0x161),!0x0,!0x1,0xb9),{'type':_0x5bee2d(0x165),'name':_0x5bee2d(0x160),'header':TermsUtil[_0x5bee2d(0x158)](_0x5bee2d(0x160)),'record':{'editable':!0x1,'align':_0x5bee2d(0x161),'renderer':(_0x5ca441,_0x59bfaa,_0x2ba1e6,_0xca796b,_0x4fcfc0)=>_0x2ba1e6[_0x5bee2d(0x155)]?TermsUtil['tMenu'](_0x2ba1e6[_0x5bee2d(0x155)]):''},'sortable':!0x1,'width':0x113},await MetaApi[_0x5bee2d(0x172)]('menuType',_0x5bee2d(0x179),_0x5bee2d(0x161),!0x1,0x64,!0x0,_0x5bee2d(0x16e))]},super['connectedCallback']&&await super[_0x5bee2d(0x153)]();}['render'](){const _0x5999b5=a0_0x204ae9;return html`
60
+ }`];}static get[a0_0x2a2215(0xa1)](){return{'items':{'type':Array},'total':{'type':Number},'selectCallback':{'type':Function}};}async[a0_0x2a2215(0xa9)](){const _0x561d61=a0_0x2a2215;this[_0x561d61(0xbd)]={'rows':MetaApi[_0x561d61(0xb7)](!0x1),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x0,!0x1),MetaApi[_0x561d61(0xba)](_0x561d61(0xb0),_0x561d61(0x93),_0x561d61(0x98),!0x0,!0x1,0x3c),MetaApi[_0x561d61(0xba)]('string',_0x561d61(0xad),_0x561d61(0xb2),!0x0,!0x1,0xb9),{'type':_0x561d61(0x95),'name':_0x561d61(0xa2),'header':TermsUtil[_0x561d61(0xa6)]('title'),'record':{'editable':!0x1,'align':_0x561d61(0xb2),'renderer':(_0xeec5f5,_0x386630,_0x15e8d2,_0x22aba5,_0x302cc5)=>_0x15e8d2['name']?TermsUtil[_0x561d61(0xac)](_0x15e8d2[_0x561d61(0xad)]):''},'sortable':!0x1,'width':0x113},await MetaApi['getGristCodeSelectorColumnConfig'](_0x561d61(0xb3),_0x561d61(0xa7),'left',!0x1,0x64,!0x0,_0x561d61(0xa4))]},super[_0x561d61(0xa9)]&&await super[_0x561d61(0xa9)]();}['render'](){const _0x4c691f=a0_0x2a2215;return html`
61
61
  <div id="container" class="container">
62
62
  <div class="container_detail">
63
63
  <ox-grist
64
64
  id="ox-grist"
65
- .config=${this[_0x5999b5(0x154)]}
66
- .mode=${_0x5999b5(0x15b)} auto-fetch
67
- .fetchHandler=${this[_0x5999b5(0x16f)][_0x5999b5(0x168)](this)}>
65
+ .config=${this[_0x4c691f(0xbd)]}
66
+ .mode=${_0x4c691f(0x96)} auto-fetch
67
+ .fetchHandler=${this[_0x4c691f(0xab)][_0x4c691f(0xaf)](this)}>
68
68
  </ox-grist>
69
69
  <div id="button-container" class="button-container">
70
- <mwc-button raised hidden id="receive" label="${TermsUtil[_0x5999b5(0x182)](_0x5999b5(0x178))}"
71
- style="margin-left:7px;margin-top:7px;" @click=${this[_0x5999b5(0x185)][_0x5999b5(0x168)](this)}>
70
+ <mwc-button raised hidden id="receive" label="${TermsUtil[_0x4c691f(0xa5)]('create-menu')}"
71
+ style="margin-left:7px;margin-top:7px;" @click=${this[_0x4c691f(0x97)]['bind'](this)}>
72
72
  </mwc-button>
73
73
  </div>
74
74
  </div>
75
- </div>`;}get[a0_0x204ae9(0x152)](){const _0x31f651=a0_0x204ae9;return this[_0x31f651(0x169)][_0x31f651(0x15e)](_0x31f651(0x15f));}async['fetchMainMenus'](){const _0x238390=a0_0x204ae9;let _0x3a114c=await MetaApi[_0x238390(0x16a)](_0x238390(0x17c),[{'name':_0x238390(0x15d),'operator':_0x238390(0x17e),'value':''}],[{'name':_0x238390(0x151)}],0x0,0x0,_0x238390(0x14f));return this[_0x238390(0x14e)]=_0x3a114c[_0x238390(0x17b)],this[_0x238390(0x177)]=_0x3a114c[_0x238390(0x177)],{'total':this[_0x238390(0x177)],'records':this['items']};}async[a0_0x204ae9(0x185)](_0x361f6e){const _0x410110=a0_0x204ae9,_0x13b1c2=this[_0x410110(0x152)][_0x410110(0x17a)];if(_0x13b1c2&&0x0!=_0x13b1c2[_0x410110(0x167)])this[_0x410110(0x183)]&&((await this[_0x410110(0x183)](_0x13b1c2[0x0]['id']))[_0x410110(0x176)]&&history['back']());else UiUtil['showCustomAlert'](_0x410110(0x175),_0x410110(0x163),_0x410110(0x162),_0x410110(0x170));}}customElements[a0_0x204ae9(0x16d)](a0_0x204ae9(0x16b),MainMenuSelector);
75
+ </div>`;}get['grist'](){const _0x4158d2=a0_0x2a2215;return this[_0x4158d2(0xb6)][_0x4158d2(0xaa)](_0x4158d2(0xbb));}async[a0_0x2a2215(0xab)](){const _0x3da10b=a0_0x2a2215;let _0x593d37=await MetaApi['searchByPagination'](_0x3da10b(0x99),[{'name':_0x3da10b(0xbc),'operator':'is_null','value':''}],[{'name':_0x3da10b(0x93)}],0x0,0x0,_0x3da10b(0xb5));return this[_0x3da10b(0xa8)]=_0x593d37['records'],this[_0x3da10b(0xae)]=_0x593d37[_0x3da10b(0xae)],{'total':this[_0x3da10b(0xae)],'records':this[_0x3da10b(0xa8)]};}async[a0_0x2a2215(0x97)](_0x326cf3){const _0x5c7071=a0_0x2a2215,_0x499ac7=this['grist'][_0x5c7071(0xa0)];if(_0x499ac7&&0x0!=_0x499ac7[_0x5c7071(0xb4)])this[_0x5c7071(0xb8)]&&((await this[_0x5c7071(0xb8)](_0x499ac7[0x0]['id']))[_0x5c7071(0x8f)]&&history[_0x5c7071(0xb1)]());else UiUtil['showCustomAlert'](_0x5c7071(0x9c),'text.NOTHING_SELECTED',_0x5c7071(0x9e),'button.confirm');}}customElements[a0_0x2a2215(0x91)]('main-menu-selector',MainMenuSelector);
@@ -1,4 +1,4 @@
1
- function a0_0x35b5(_0x8fdda6,_0x30c143){const _0x305f00=a0_0x305f();return a0_0x35b5=function(_0x35b585,_0x2858a5){_0x35b585=_0x35b585-0x125;let _0x39f0ae=_0x305f00[_0x35b585];return _0x39f0ae;},a0_0x35b5(_0x8fdda6,_0x30c143);}const a0_0xa58670=a0_0x35b5;(function(_0x3f5f51,_0x3cb17d){const _0x1ac213=a0_0x35b5,_0x1711fe=_0x3f5f51();while(!![]){try{const _0x3f3328=parseInt(_0x1ac213(0x12f))/0x1*(parseInt(_0x1ac213(0x126))/0x2)+parseInt(_0x1ac213(0x134))/0x3+parseInt(_0x1ac213(0x13d))/0x4+parseInt(_0x1ac213(0x144))/0x5*(-parseInt(_0x1ac213(0x137))/0x6)+-parseInt(_0x1ac213(0x139))/0x7*(parseInt(_0x1ac213(0x127))/0x8)+parseInt(_0x1ac213(0x150))/0x9*(parseInt(_0x1ac213(0x13a))/0xa)+-parseInt(_0x1ac213(0x13c))/0xb*(parseInt(_0x1ac213(0x133))/0xc);if(_0x3f3328===_0x3cb17d)break;else _0x1711fe['push'](_0x1711fe['shift']());}catch(_0x51f1d0){_0x1711fe['push'](_0x1711fe['shift']());}}}(a0_0x305f,0x9adee));import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';import{ScrollbarStyles,CommonGristStyles}from'@operato/styles';import{TermsUtil}from'./../../utils/terms-util';import{UiUtil}from'../../utils/ui-util';function a0_0x305f(){const _0x152e8a=['editable','dataRevisionAction','fetchHandler','sorters','filter','searchByPagination','columns','386KRyIoQ','rows','grist','type','65748arMrFM','3321945DcHOmS','open_param','sortable','4492140lBxxFx','getSelectColumns','46067hcJuGd','843520EehIqI','string','1980zqomTF','3651624cFByMN','shadowRoot','dirty','originalId','parent_id','gristConfig','GRID','5bVPUny','integer','gqlFunc','data_revision_no','connectedCallback','forEach','dataRevisionNo','gutter','history-copy-list-popup','center','gridConfig','properties','9IesYXb','record','bind','getGristColumnConfig2','4338bAlqoF','696auUoin'];a0_0x305f=function(){return _0x152e8a;};return a0_0x305f();}import{MetaApi}from'../../utils/meta-api';export class HistoryCopyListPopup extends localize(i18next)(LitElement){static get['styles'](){return[ScrollbarStyles,CommonGristStyles,css`
1
+ const a0_0x5545b5=a0_0x175a;(function(_0x3167f0,_0x364d23){const _0x2c08a8=a0_0x175a,_0x2490b3=_0x3167f0();while(!![]){try{const _0x3a960b=parseInt(_0x2c08a8(0x1c9))/0x1+-parseInt(_0x2c08a8(0x1bf))/0x2+parseInt(_0x2c08a8(0x1a6))/0x3*(-parseInt(_0x2c08a8(0x1ac))/0x4)+parseInt(_0x2c08a8(0x1a5))/0x5+-parseInt(_0x2c08a8(0x1bc))/0x6+-parseInt(_0x2c08a8(0x1a3))/0x7+parseInt(_0x2c08a8(0x1c6))/0x8;if(_0x3a960b===_0x364d23)break;else _0x2490b3['push'](_0x2490b3['shift']());}catch(_0x14cbc7){_0x2490b3['push'](_0x2490b3['shift']());}}}(a0_0x1005,0x5f4c1));import{css,html,LitElement}from'lit-element';function a0_0x1005(){const _0x4034a1=['editable','1088230oHfcCA','519tafAAH','fetchHandler','gqlFunc','parent_id','searchByPagination','connectedCallback','6612SwPISL','filter','dataRevisionAction','integer','gutter','querySelector','data_revision_action','dataRevisionNo','data_revision_no','getGristColumnConfig2','record','open_param','gridConfig','rows','sortable','getSelectColumns','1554216TwJKqw','GRID','originalId','1369824DGqHlp','forEach','columns','shadowRoot','styles','history-copy-list-popup','#ox-grist','13493032eDWXIJ','bind','render','346002NpHdSv','center','properties','4410161ZXJWoI'];a0_0x1005=function(){return _0x4034a1;};return a0_0x1005();}import{i18next,localize}from'@things-factory/i18n-base';import{ScrollbarStyles,CommonGristStyles}from'@operato/styles';import{TermsUtil}from'./../../utils/terms-util';import{UiUtil}from'../../utils/ui-util';function a0_0x175a(_0x2544b2,_0x55d1e9){const _0x1005f0=a0_0x1005();return a0_0x175a=function(_0x175aca,_0x436461){_0x175aca=_0x175aca-0x1a2;let _0x45d367=_0x1005f0[_0x175aca];return _0x45d367;},a0_0x175a(_0x2544b2,_0x55d1e9);}import{MetaApi}from'../../utils/meta-api';export class HistoryCopyListPopup extends localize(i18next)(LitElement){static get[a0_0x5545b5(0x1c3)](){return[ScrollbarStyles,CommonGristStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -8,11 +8,11 @@ function a0_0x35b5(_0x8fdda6,_0x30c143){const _0x305f00=a0_0x305f();return a0_0x
8
8
  overflow-y: auto;
9
9
  flex: 1;
10
10
  }
11
- `];}static get[a0_0xa58670(0x14f)](){return{'parent_id':String};}async[a0_0xa58670(0x148)](){const _0x207a05=a0_0xa58670;let _0x487640=this[_0x207a05(0x135)][_0x207a05(0x142)];this['gqlFunc']=this['open_param'][_0x207a05(0x146)],delete _0x487640['list'],delete _0x487640[_0x207a05(0x130)],_0x487640['rows']={'appendable':!0x1,'selectable':!0x1},_0x487640[_0x207a05(0x12b)]=[{'name':_0x207a05(0x14a),'desc':!0x0}];let _0xe97f31=_0x487640[_0x207a05(0x12e)][_0x207a05(0x12c)](_0x2cf397=>_0x207a05(0x14b)!=_0x2cf397[_0x207a05(0x132)]);_0xe97f31[_0x207a05(0x149)](_0x3239cb=>{const _0x488586=_0x207a05;_0x3239cb[_0x488586(0x12c)]&&delete _0x3239cb[_0x488586(0x12c)],_0x3239cb[_0x488586(0x151)]||(_0x3239cb[_0x488586(0x151)]={}),_0x3239cb[_0x488586(0x136)]=!0x1,_0x3239cb[_0x488586(0x151)][_0x488586(0x128)]=!0x1;}),_0x487640[_0x207a05(0x12e)]=[{'type':'gutter','gutterName':_0x207a05(0x13f)},MetaApi[_0x207a05(0x125)](_0x207a05(0x145),'dataRevisionNo',_0x207a05(0x147),'center',!0x1,!0x0,0x5a),MetaApi[_0x207a05(0x125)](_0x207a05(0x13b),_0x207a05(0x129),'data_revision_action',_0x207a05(0x14d),!0x1,!0x1,0x5a),..._0xe97f31],this[_0x207a05(0x14e)]=_0x487640,super['connectedCallback']&&await super['connectedCallback']();}['render'](){const _0x113c13=a0_0xa58670;return html`
11
+ `];}static get[a0_0x5545b5(0x1a2)](){return{'parent_id':String};}async[a0_0x5545b5(0x1ab)](){const _0xc933bd=a0_0x5545b5;let _0x46423c=this['open_param']['gristConfig'];this[_0xc933bd(0x1a8)]=this[_0xc933bd(0x1b7)][_0xc933bd(0x1a8)],delete _0x46423c['list'],delete _0x46423c[_0xc933bd(0x1b9)],_0x46423c[_0xc933bd(0x1b9)]={'appendable':!0x1,'selectable':!0x1},_0x46423c['sorters']=[{'name':'dataRevisionNo','desc':!0x0}];let _0x5966c5=_0x46423c[_0xc933bd(0x1c1)]['filter'](_0x1f4772=>_0xc933bd(0x1b0)!=_0x1f4772['type']);_0x5966c5[_0xc933bd(0x1c0)](_0x54a304=>{const _0x527c6b=_0xc933bd;_0x54a304[_0x527c6b(0x1ad)]&&delete _0x54a304[_0x527c6b(0x1ad)],_0x54a304['record']||(_0x54a304[_0x527c6b(0x1b6)]={}),_0x54a304[_0x527c6b(0x1ba)]=!0x1,_0x54a304[_0x527c6b(0x1b6)][_0x527c6b(0x1a4)]=!0x1;}),_0x46423c[_0xc933bd(0x1c1)]=[{'type':_0xc933bd(0x1b0),'gutterName':'dirty'},MetaApi[_0xc933bd(0x1b5)](_0xc933bd(0x1af),_0xc933bd(0x1b3),_0xc933bd(0x1b4),_0xc933bd(0x1ca),!0x1,!0x0,0x5a),MetaApi[_0xc933bd(0x1b5)]('string',_0xc933bd(0x1ae),_0xc933bd(0x1b2),_0xc933bd(0x1ca),!0x1,!0x1,0x5a),..._0x5966c5],this[_0xc933bd(0x1b8)]=_0x46423c,super[_0xc933bd(0x1ab)]&&await super[_0xc933bd(0x1ab)]();}[a0_0x5545b5(0x1c8)](){const _0xe0e486=a0_0x5545b5;return html`
12
12
  <ox-grist
13
13
  id="ox-grist"
14
- .config=${this[_0x113c13(0x14e)]}
15
- .mode=${_0x113c13(0x143)} auto-fetch
16
- .fetchHandler=${this['fetchHandler'][_0x113c13(0x152)](this)}>
14
+ .config=${this[_0xe0e486(0x1b8)]}
15
+ .mode=${_0xe0e486(0x1bd)} auto-fetch
16
+ .fetchHandler=${this['fetchHandler'][_0xe0e486(0x1c7)](this)}>
17
17
  </ox-grist>
18
- `;}get[a0_0xa58670(0x131)](){const _0x253032=a0_0xa58670;return this[_0x253032(0x13e)]['querySelector']('#ox-grist');}async[a0_0xa58670(0x12a)]({page:_0x2a9c0e=0x0,limit:_0x496d55=0x0,sortings:_0x11a654=[],filters:_0x387b90=[]}){const _0x3e3818=a0_0xa58670;let _0x468385=[{'name':_0x3e3818(0x140),'operator':'eq','value':this[_0x3e3818(0x141)]},..._0x387b90],_0x22e20e=MetaApi[_0x3e3818(0x138)](this[_0x3e3818(0x14e)][_0x3e3818(0x12e)]);return await MetaApi[_0x3e3818(0x12d)](this[_0x3e3818(0x146)]+'Histories',_0x468385,_0x11a654,_0x2a9c0e,_0x496d55,_0x22e20e);}}customElements['define'](a0_0xa58670(0x14c),HistoryCopyListPopup);
18
+ `;}get['grist'](){const _0x1add23=a0_0x5545b5;return this[_0x1add23(0x1c2)][_0x1add23(0x1b1)](_0x1add23(0x1c5));}async[a0_0x5545b5(0x1a7)]({page:_0x163d16=0x0,limit:_0x341c16=0x0,sortings:_0x5d72b0=[],filters:_0x44b6da=[]}){const _0x5c9301=a0_0x5545b5;let _0x5976ed=[{'name':_0x5c9301(0x1be),'operator':'eq','value':this[_0x5c9301(0x1a9)]},..._0x44b6da],_0xbf047a=MetaApi[_0x5c9301(0x1bb)](this[_0x5c9301(0x1b8)][_0x5c9301(0x1c1)]);return await MetaApi[_0x5c9301(0x1aa)](this[_0x5c9301(0x1a8)]+'Histories',_0x5976ed,_0x5d72b0,_0x163d16,_0x341c16,_0xbf047a);}}customElements['define'](a0_0x5545b5(0x1c4),HistoryCopyListPopup);
@@ -1,4 +1,4 @@
1
- const a0_0x47a4a6=a0_0x500e;(function(_0x5e0c8f,_0x444980){const _0x310f00=a0_0x500e,_0x19b21c=_0x5e0c8f();while(!![]){try{const _0x4dc217=-parseInt(_0x310f00(0x115))/0x1*(-parseInt(_0x310f00(0x126))/0x2)+parseInt(_0x310f00(0x11f))/0x3+parseInt(_0x310f00(0x11b))/0x4+-parseInt(_0x310f00(0x131))/0x5+parseInt(_0x310f00(0x117))/0x6+parseInt(_0x310f00(0x124))/0x7+-parseInt(_0x310f00(0x111))/0x8*(parseInt(_0x310f00(0x107))/0x9);if(_0x4dc217===_0x444980)break;else _0x19b21c['push'](_0x19b21c['shift']());}catch(_0x23473e){_0x19b21c['push'](_0x19b21c['shift']());}}}(a0_0x3939,0xc57bd));import{css,html,LitElement}from'lit-element';function a0_0x500e(_0x2aa684,_0x23251c){const _0x3939ba=a0_0x3939();return a0_0x500e=function(_0x500e86,_0x2f980d){_0x500e86=_0x500e86-0x104;let _0x34f606=_0x3939ba[_0x500e86];return _0x34f606;},a0_0x500e(_0x2aa684,_0x23251c);}import{i18next,localize}from'@things-factory/i18n-base';import{ScrollbarStyles,CommonGristStyles}from'@operato/styles';import{TermsUtil}from'./../../utils/terms-util';import{UiUtil}from'../../utils/ui-util';function a0_0x3939(){const _0x303b18=['\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20originalId\x0a\x20\x20\x20\x20\x20\x20dataRevisionNo\x0a\x20\x20\x20\x20\x20\x20dataRevisionAction\x0a\x20\x20\x20\x20\x20\x20historyJson\x0a\x20\x20\x20\x20','string','data_revision_action','1398572WpFZUL','fetchHandler','record','gutter','752007baVXIq','rows','dataRevisionNo','parent_id','styles','8024541xSsgvR','shadowRoot','1854uNqOBh','properties','center','dirty','originalId','dataRevisionAction','records','data_revision_no','filter','connectedCallback','getGristColumnConfig2','6006675LTSaqu','map','bind','querySelector','sorters','searchByPagination','73215vKrFnG','Histories','columns','parse','gridConfig','historyJson','open_param','gqlFunc','GRID','#ox-grist','424uTXXpA','grist','gristConfig','history-json-list-popup','313bdvrfs','forEach','2427342lHWWzh'];a0_0x3939=function(){return _0x303b18;};return a0_0x3939();}import{MetaApi}from'../../utils/meta-api';export class HistoryJsonListPopup extends localize(i18next)(LitElement){static get[a0_0x47a4a6(0x123)](){return[ScrollbarStyles,CommonGristStyles,css`
1
+ function a0_0x24cc(_0x1bcf56,_0x5458dd){const _0x42d43b=a0_0x42d4();return a0_0x24cc=function(_0x24cc8f,_0x1b96b7){_0x24cc8f=_0x24cc8f-0x79;let _0x30e0d2=_0x42d43b[_0x24cc8f];return _0x30e0d2;},a0_0x24cc(_0x1bcf56,_0x5458dd);}const a0_0x41c6c5=a0_0x24cc;(function(_0x4d192f,_0x485f89){const _0x1857e7=a0_0x24cc,_0x48beb1=_0x4d192f();while(!![]){try{const _0x31eb25=parseInt(_0x1857e7(0x85))/0x1+parseInt(_0x1857e7(0x8c))/0x2*(-parseInt(_0x1857e7(0x9a))/0x3)+-parseInt(_0x1857e7(0x82))/0x4*(-parseInt(_0x1857e7(0x95))/0x5)+-parseInt(_0x1857e7(0x99))/0x6+-parseInt(_0x1857e7(0x90))/0x7+-parseInt(_0x1857e7(0x9f))/0x8+parseInt(_0x1857e7(0xa1))/0x9;if(_0x31eb25===_0x485f89)break;else _0x48beb1['push'](_0x48beb1['shift']());}catch(_0x1f1e20){_0x48beb1['push'](_0x48beb1['shift']());}}}(a0_0x42d4,0x6b660));import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';function a0_0x42d4(){const _0x14aa66=['grist','historyJson','record','175pvYhBB','gqlFunc','parent_id','filter','1786038GczAKD','61059qXIdLp','integer','dirty','gutter','data_revision_no','5565976YfkxJD','searchByPagination','7291512wUTEhX','define','sorters','dataRevisionNo','editable','GRID','records','map','rows','open_param','querySelector','list','71484SxECFG','gristConfig','\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20originalId\x0a\x20\x20\x20\x20\x20\x20dataRevisionNo\x0a\x20\x20\x20\x20\x20\x20dataRevisionAction\x0a\x20\x20\x20\x20\x20\x20historyJson\x0a\x20\x20\x20\x20','659660yPCzlQ','render','styles','Histories','getGristColumnConfig2','shadowRoot','type','56VmKHXL','fetchHandler','connectedCallback','gridConfig','644735rzOuEH','dataRevisionAction'];a0_0x42d4=function(){return _0x14aa66;};return a0_0x42d4();}import{ScrollbarStyles,CommonGristStyles}from'@operato/styles';import{TermsUtil}from'./../../utils/terms-util';import{UiUtil}from'../../utils/ui-util';import{MetaApi}from'../../utils/meta-api';export class HistoryJsonListPopup extends localize(i18next)(LitElement){static get[a0_0x41c6c5(0x87)](){return[ScrollbarStyles,CommonGristStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -8,11 +8,11 @@ const a0_0x47a4a6=a0_0x500e;(function(_0x5e0c8f,_0x444980){const _0x310f00=a0_0x
8
8
  overflow-y: auto;
9
9
  flex: 1;
10
10
  }
11
- `];}static get[a0_0x47a4a6(0x127)](){return{'parent_id':String};}async[a0_0x47a4a6(0x12f)](){const _0x4e3ae2=a0_0x47a4a6;let _0x37612f=this[_0x4e3ae2(0x10d)][_0x4e3ae2(0x113)];this[_0x4e3ae2(0x10e)]=this[_0x4e3ae2(0x10d)][_0x4e3ae2(0x10e)],delete _0x37612f['list'],delete _0x37612f[_0x4e3ae2(0x120)],_0x37612f['rows']={'appendable':!0x1,'selectable':!0x1},_0x37612f[_0x4e3ae2(0x105)]=[{'name':_0x4e3ae2(0x121),'desc':!0x0}];let _0x2afe27=_0x37612f['columns']['filter'](_0x310edb=>_0x4e3ae2(0x11e)!=_0x310edb['type']);_0x2afe27[_0x4e3ae2(0x116)](_0x1e5426=>{const _0x4986e6=_0x4e3ae2;_0x1e5426[_0x4986e6(0x12e)]&&delete _0x1e5426[_0x4986e6(0x12e)],_0x1e5426[_0x4986e6(0x11d)]||(_0x1e5426[_0x4986e6(0x11d)]={}),_0x1e5426['sortable']=!0x1,_0x1e5426[_0x4986e6(0x11d)]['editable']=!0x1;}),_0x37612f[_0x4e3ae2(0x109)]=[{'type':_0x4e3ae2(0x11e),'gutterName':_0x4e3ae2(0x129)},MetaApi[_0x4e3ae2(0x130)]('integer',_0x4e3ae2(0x121),_0x4e3ae2(0x12d),_0x4e3ae2(0x128),!0x1,!0x0,0x5a),MetaApi['getGristColumnConfig2'](_0x4e3ae2(0x119),_0x4e3ae2(0x12b),_0x4e3ae2(0x11a),'center',!0x1,!0x1,0x5a),..._0x2afe27],this[_0x4e3ae2(0x10b)]=_0x37612f,super['connectedCallback']&&await super[_0x4e3ae2(0x12f)]();}['render'](){const _0x1057f3=a0_0x47a4a6;return html`
11
+ `];}static get['properties'](){return{'parent_id':String};}async[a0_0x41c6c5(0x8e)](){const _0x42e8f4=a0_0x41c6c5;let _0x38d34b=this['open_param'][_0x42e8f4(0x83)];this['gqlFunc']=this[_0x42e8f4(0x7f)][_0x42e8f4(0x96)],delete _0x38d34b[_0x42e8f4(0x81)],delete _0x38d34b[_0x42e8f4(0x7e)],_0x38d34b[_0x42e8f4(0x7e)]={'appendable':!0x1,'selectable':!0x1},_0x38d34b[_0x42e8f4(0xa3)]=[{'name':'dataRevisionNo','desc':!0x0}];let _0xa5abfe=_0x38d34b['columns'][_0x42e8f4(0x98)](_0x4df39c=>'gutter'!=_0x4df39c[_0x42e8f4(0x8b)]);_0xa5abfe['forEach'](_0x5a0b67=>{const _0x195ab0=_0x42e8f4;_0x5a0b67[_0x195ab0(0x98)]&&delete _0x5a0b67[_0x195ab0(0x98)],_0x5a0b67[_0x195ab0(0x94)]||(_0x5a0b67[_0x195ab0(0x94)]={}),_0x5a0b67['sortable']=!0x1,_0x5a0b67[_0x195ab0(0x94)][_0x195ab0(0x7a)]=!0x1;}),_0x38d34b['columns']=[{'type':_0x42e8f4(0x9d),'gutterName':_0x42e8f4(0x9c)},MetaApi['getGristColumnConfig2'](_0x42e8f4(0x9b),_0x42e8f4(0x79),_0x42e8f4(0x9e),'center',!0x1,!0x0,0x5a),MetaApi[_0x42e8f4(0x89)]('string',_0x42e8f4(0x91),'data_revision_action','center',!0x1,!0x1,0x5a),..._0xa5abfe],this[_0x42e8f4(0x8f)]=_0x38d34b,super[_0x42e8f4(0x8e)]&&await super[_0x42e8f4(0x8e)]();}[a0_0x41c6c5(0x86)](){const _0x2837b8=a0_0x41c6c5;return html`
12
12
  <ox-grist
13
13
  id="ox-grist"
14
- .config=${this[_0x1057f3(0x10b)]}
15
- .mode=${_0x1057f3(0x10f)} auto-fetch
16
- .fetchHandler=${this['fetchHandler'][_0x1057f3(0x133)](this)}>
14
+ .config=${this[_0x2837b8(0x8f)]}
15
+ .mode=${_0x2837b8(0x7b)} auto-fetch
16
+ .fetchHandler=${this[_0x2837b8(0x8d)]['bind'](this)}>
17
17
  </ox-grist>
18
- `;}get[a0_0x47a4a6(0x112)](){const _0x448f6c=a0_0x47a4a6;return this[_0x448f6c(0x125)][_0x448f6c(0x104)](_0x448f6c(0x110));}async[a0_0x47a4a6(0x11c)]({page:_0x4dd827=0x0,limit:_0x4169ec=0x0,sortings:_0x29555b=[],filters:_0x8f5a95=[]}){const _0x24390b=a0_0x47a4a6;let _0x2c7e42=[{'name':_0x24390b(0x12a),'operator':'eq','value':this[_0x24390b(0x122)]},..._0x8f5a95],_0x4b11af=await MetaApi[_0x24390b(0x106)](this[_0x24390b(0x10e)]+_0x24390b(0x108),_0x2c7e42,_0x29555b,_0x4dd827,_0x4169ec,_0x24390b(0x118));return _0x4b11af[_0x24390b(0x12c)]=_0x4b11af['records'][_0x24390b(0x132)](_0x1789ee=>({...JSON[_0x24390b(0x10a)](_0x1789ee[_0x24390b(0x10c)]),..._0x1789ee})),_0x4b11af;}}customElements['define'](a0_0x47a4a6(0x114),HistoryJsonListPopup);
18
+ `;}get[a0_0x41c6c5(0x92)](){const _0xd6fb94=a0_0x41c6c5;return this[_0xd6fb94(0x8a)][_0xd6fb94(0x80)]('#ox-grist');}async[a0_0x41c6c5(0x8d)]({page:_0x5cc83d=0x0,limit:_0x35406a=0x0,sortings:_0x592c41=[],filters:_0x5c0693=[]}){const _0x3efdde=a0_0x41c6c5;let _0x34295c=[{'name':'originalId','operator':'eq','value':this[_0x3efdde(0x97)]},..._0x5c0693],_0x5863bb=await MetaApi[_0x3efdde(0xa0)](this[_0x3efdde(0x96)]+_0x3efdde(0x88),_0x34295c,_0x592c41,_0x5cc83d,_0x35406a,_0x3efdde(0x84));return _0x5863bb['records']=_0x5863bb[_0x3efdde(0x7c)][_0x3efdde(0x7d)](_0x554ef8=>({...JSON['parse'](_0x554ef8[_0x3efdde(0x93)]),..._0x554ef8})),_0x5863bb;}}customElements[a0_0x41c6c5(0xa2)]('history-json-list-popup',HistoryJsonListPopup);
@@ -1,4 +1,4 @@
1
- var a0_0x26b14e=a0_0x54f0;(function(_0x170da7,_0x375b58){var _0x5e0ff7=a0_0x54f0,_0x3c40f2=_0x170da7();while(!![]){try{var _0x135738=parseInt(_0x5e0ff7(0x93))/0x1+-parseInt(_0x5e0ff7(0x95))/0x2*(parseInt(_0x5e0ff7(0x94))/0x3)+parseInt(_0x5e0ff7(0x97))/0x4*(parseInt(_0x5e0ff7(0x9a))/0x5)+parseInt(_0x5e0ff7(0x91))/0x6*(-parseInt(_0x5e0ff7(0x98))/0x7)+parseInt(_0x5e0ff7(0x99))/0x8+parseInt(_0x5e0ff7(0x9c))/0x9*(parseInt(_0x5e0ff7(0x8c))/0xa)+parseInt(_0x5e0ff7(0x8e))/0xb*(parseInt(_0x5e0ff7(0x8f))/0xc);if(_0x135738===_0x375b58)break;else _0x3c40f2['push'](_0x3c40f2['shift']());}catch(_0x41e92b){_0x3c40f2['push'](_0x3c40f2['shift']());}}}(a0_0x1bd0,0x1ceeb));import{css,html}from'lit-element';function a0_0x1bd0(){var _0x357387=['customElements','110vQEXvc','53448jlMMki','context','652044EizdlW','define','77792JvMOZF','573LalgqW','2404WUPBxT','loading-page','4Anyyng','14lZoIVx','1039888uCmXUC','802390fvyiIF','please\x20wait','9fUORQt','tText','loading\x20page','1526410ZcUCIb'];a0_0x1bd0=function(){return _0x357387;};return a0_0x1bd0();}function a0_0x54f0(_0x52f8e7,_0x433566){var _0x1bd09f=a0_0x1bd0();return a0_0x54f0=function(_0x54f0ca,_0x3ec80f){_0x54f0ca=_0x54f0ca-0x8b;var _0x3119c2=_0x1bd09f[_0x54f0ca];return _0x3119c2;},a0_0x54f0(_0x52f8e7,_0x433566);}import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';import{TermsUtil}from'../utils/terms-util';class LoadingPage extends localize(i18next)(PageView){static get['styles'](){return[css`
1
+ var a0_0x21375b=a0_0x32bd;(function(_0x1028f1,_0x59431e){var _0x31da21=a0_0x32bd,_0x235570=_0x1028f1();while(!![]){try{var _0x2fe1b8=-parseInt(_0x31da21(0x1ca))/0x1*(parseInt(_0x31da21(0x1bb))/0x2)+-parseInt(_0x31da21(0x1b7))/0x3+-parseInt(_0x31da21(0x1c9))/0x4*(parseInt(_0x31da21(0x1bf))/0x5)+-parseInt(_0x31da21(0x1b8))/0x6+-parseInt(_0x31da21(0x1b6))/0x7+-parseInt(_0x31da21(0x1c5))/0x8*(parseInt(_0x31da21(0x1bd))/0x9)+parseInt(_0x31da21(0x1ba))/0xa*(parseInt(_0x31da21(0x1c3))/0xb);if(_0x2fe1b8===_0x59431e)break;else _0x235570['push'](_0x235570['shift']());}catch(_0x2fd06c){_0x235570['push'](_0x235570['shift']());}}}(a0_0x480d,0x74e1a));import{css,html}from'lit-element';function a0_0x32bd(_0x29c473,_0x1f2fb5){var _0x480dda=a0_0x480d();return a0_0x32bd=function(_0x32bd5a,_0x365353){_0x32bd5a=_0x32bd5a-0x1b6;var _0xbb8b3b=_0x480dda[_0x32bd5a];return _0xbb8b3b;},a0_0x32bd(_0x29c473,_0x1f2fb5);}import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';import{TermsUtil}from'../utils/terms-util';class LoadingPage extends localize(i18next)(PageView){static get[a0_0x21375b(0x1c1)](){return[css`
2
2
  :host {
3
3
  display: block;
4
4
  background-color: var(--main-section-background-color);
@@ -41,11 +41,11 @@ var a0_0x26b14e=a0_0x54f0;(function(_0x170da7,_0x375b58){var _0x5e0ff7=a0_0x54f0
41
41
  display: none;
42
42
  }
43
43
  }
44
- `];}get[a0_0x26b14e(0x90)](){return{'title':'Loading\x20...','actions':[]};}['render'](){var _0x4ad946=a0_0x26b14e;return html`
45
- <h2>${TermsUtil[_0x4ad946(0x9d)](_0x4ad946(0x8b))}</h2>
44
+ `];}get[a0_0x21375b(0x1bc)](){var _0x4de12f=a0_0x21375b;return{'title':_0x4de12f(0x1c7),'actions':[]};}[a0_0x21375b(0x1b9)](){var _0x299bda=a0_0x21375b;return html`
45
+ <h2>${TermsUtil[_0x299bda(0x1c4)](_0x299bda(0x1c6))}</h2>
46
46
  <p page-description>
47
- ${TermsUtil[_0x4ad946(0x9d)](_0x4ad946(0x9b))}
47
+ ${TermsUtil[_0x299bda(0x1c4)](_0x299bda(0x1c8))}
48
48
  </p>
49
49
 
50
50
  <img src="/assets/images/loading-page.png" />
51
- `;}}window[a0_0x26b14e(0x8d)][a0_0x26b14e(0x92)](a0_0x26b14e(0x96),LoadingPage);
51
+ `;}}window[a0_0x21375b(0x1c0)][a0_0x21375b(0x1c2)](a0_0x21375b(0x1be),LoadingPage);function a0_0x480d(){var _0x176b88=['tText','3179672nexzoO','loading\x20page','Loading\x20...','please\x20wait','8QOMdJR','53DjxAYB','2790879cGpYPb','1646253CCzZLC','1391664bcivnP','render','33054010jIfrZD','31508OtJJeH','context','9bZpAfp','loading-page','1037105OhYjUS','customElements','styles','define','11FZJuZW'];a0_0x480d=function(){return _0x176b88;};return a0_0x480d();}
@@ -1,4 +1,4 @@
1
- const a0_0x257786=a0_0x5d17;(function(_0x2df133,_0x2e001a){const _0x4cec84=a0_0x5d17,_0x403aa8=_0x2df133();while(!![]){try{const _0x270fa6=parseInt(_0x4cec84(0xa5))/0x1*(-parseInt(_0x4cec84(0xa0))/0x2)+-parseInt(_0x4cec84(0x9d))/0x3*(parseInt(_0x4cec84(0xb7))/0x4)+-parseInt(_0x4cec84(0x9c))/0x5+parseInt(_0x4cec84(0xb9))/0x6+parseInt(_0x4cec84(0xb0))/0x7+-parseInt(_0x4cec84(0xa8))/0x8*(parseInt(_0x4cec84(0xa3))/0x9)+-parseInt(_0x4cec84(0xb4))/0xa*(-parseInt(_0x4cec84(0xb8))/0xb);if(_0x270fa6===_0x2e001a)break;else _0x403aa8['push'](_0x403aa8['shift']());}catch(_0x17c421){_0x403aa8['push'](_0x403aa8['shift']());}}}(a0_0x2402,0x3d837));function a0_0x5d17(_0x1e4fab,_0x2781d1){const _0x240248=a0_0x2402();return a0_0x5d17=function(_0x5d1789,_0x46f5bb){_0x5d1789=_0x5d1789-0x9b;let _0x348c62=_0x240248[_0x5d1789];return _0x348c62;},a0_0x5d17(_0x1e4fab,_0x2781d1);}import a0_0x327a0e from'graphql-tag';import{store}from'@operato/shell';import{client}from'@operato/graphql';import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@operato/i18n';import{ScrollbarStyles}from'@operato/styles';import'@operato/input/ox-input-code.js';import{TermsUtil}from'./../../utils/terms-util';import{MetaApi}from'../../utils/meta-api';class DynamicMenuTemplate extends localize(i18next)(LitElement){static get['properties'](){return{'title':String,'recordId':String};}static get[a0_0x257786(0xbf)](){return[ScrollbarStyles,css`
1
+ const a0_0x2d0011=a0_0x21b0;(function(_0x3fc8e7,_0x331817){const _0x2c5eda=a0_0x21b0,_0x43f328=_0x3fc8e7();while(!![]){try{const _0x5b0ef3=-parseInt(_0x2c5eda(0x1a3))/0x1*(-parseInt(_0x2c5eda(0x1b5))/0x2)+parseInt(_0x2c5eda(0x1b2))/0x3+-parseInt(_0x2c5eda(0x1af))/0x4*(parseInt(_0x2c5eda(0x1b6))/0x5)+-parseInt(_0x2c5eda(0x1c9))/0x6*(parseInt(_0x2c5eda(0x1a4))/0x7)+parseInt(_0x2c5eda(0x1bb))/0x8*(-parseInt(_0x2c5eda(0x1bc))/0x9)+parseInt(_0x2c5eda(0x1ac))/0xa*(-parseInt(_0x2c5eda(0x1bd))/0xb)+parseInt(_0x2c5eda(0x1ba))/0xc;if(_0x5b0ef3===_0x331817)break;else _0x43f328['push'](_0x43f328['shift']());}catch(_0x4cd4a8){_0x43f328['push'](_0x43f328['shift']());}}}(a0_0x6e25,0x84037));import a0_0x151800 from'graphql-tag';function a0_0x6e25(){const _0x45003f=['firstUpdated','dynamic-menu-template','menu','findOne','30MQLTnt','updateMultipleMenu','codeValueNew','8EJiyKy','codeEditor','text.there_is_nothing_to_save','1251135JyNqpy','error.invalid\x20license\x20key','ox-input-code','2ZuLijr','1313055lfXYas','properties','errors','studioPermission','17588688mrHglc','895280bqmsSe','18MoqDWC','3227037KauAll','value','getState','render','dispatchEvent','recordId','error','confirm','tButton','bind','orgValue','title','1003998Rubeuv','showAlertPopup','styles','shadowRoot','956433eIWBLp','28OziyKN','save','template','notify'];a0_0x6e25=function(){return _0x45003f;};return a0_0x6e25();}import{store}from'@operato/shell';import{client}from'@operato/graphql';import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@operato/i18n';import{ScrollbarStyles}from'@operato/styles';function a0_0x21b0(_0x2c148e,_0x7fb536){const _0x6e2523=a0_0x6e25();return a0_0x21b0=function(_0x21b0d0,_0x1a1cfe){_0x21b0d0=_0x21b0d0-0x1a2;let _0x4b9836=_0x6e2523[_0x21b0d0];return _0x4b9836;},a0_0x21b0(_0x2c148e,_0x7fb536);}import'@operato/input/ox-input-code.js';import{TermsUtil}from'./../../utils/terms-util';import{MetaApi}from'../../utils/meta-api';class DynamicMenuTemplate extends localize(i18next)(LitElement){static get[a0_0x2d0011(0x1b7)](){return{'title':String,'recordId':String};}static get[a0_0x2d0011(0x1cb)](){return[ScrollbarStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -26,13 +26,13 @@ const a0_0x257786=a0_0x5d17;(function(_0x2df133,_0x2e001a){const _0x4cec84=a0_0x
26
26
  height: var(--button-container-height);
27
27
  text-align: right;
28
28
  padding-right: 12px;
29
- }`];}async[a0_0x257786(0xb6)](){const _0x138932=a0_0x257786;super[_0x138932(0xb6)]&&await super[_0x138932(0xb6)]();let _0x15b8ae=await MetaApi[_0x138932(0xc1)]('menu',this[_0x138932(0xa2)],_0x138932(0xb3)),_0x53390e=_0x15b8ae&&_0x15b8ae[_0x138932(0xb3)]||'';this[_0x138932(0x9b)]['value']=_0x53390e,this['codeEditor']['orgValue']=this['codeEditor'][_0x138932(0xa1)];}[a0_0x257786(0xa9)](){const _0x3d3a07=a0_0x257786;return html`
30
- <legend>${this[_0x3d3a07(0xb5)]}</legend>
31
- <ox-input-code mode="javascript" value=${this['codeValueNew']} tab-size="2" tab-as-space="true"></ox-input-code>
29
+ }`];}async[a0_0x2d0011(0x1a8)](){const _0x571034=a0_0x2d0011;super[_0x571034(0x1a8)]&&await super['firstUpdated']();let _0x30a600=await MetaApi[_0x571034(0x1ab)](_0x571034(0x1aa),this['recordId'],_0x571034(0x1a6)),_0x2cf484=_0x30a600&&_0x30a600[_0x571034(0x1a6)]||'';this['codeEditor'][_0x571034(0x1be)]=_0x2cf484,this['codeEditor'][_0x571034(0x1c7)]=this['codeEditor'][_0x571034(0x1be)];}[a0_0x2d0011(0x1c0)](){const _0x2e4dda=a0_0x2d0011;return html`
30
+ <legend>${this[_0x2e4dda(0x1c8)]}</legend>
31
+ <ox-input-code mode="javascript" value=${this[_0x2e4dda(0x1ae)]} tab-size="2" tab-as-space="true"></ox-input-code>
32
32
  <div id="button-container" class="button-container">
33
- <!-- <mwc-button raised label="${TermsUtil[_0x3d3a07(0xbd)](_0x3d3a07(0xad))}" @click=${this['save'][_0x3d3a07(0xba)](this)}></mwc-button> -->
34
- </div>`;}get[a0_0x257786(0x9b)](){const _0xa713f2=a0_0x257786;return this[_0xa713f2(0xb1)]['querySelector'](_0xa713f2(0xab));}async[a0_0x257786(0xad)](){const _0x5087e8=a0_0x257786;if(this[_0x5087e8(0x9b)][_0x5087e8(0xbe)]==this[_0x5087e8(0x9b)][_0x5087e8(0xa1)])return void MetaApi['showAlertPopup']('text.nothing_changed',_0x5087e8(0xa4),_0x5087e8(0xaa),_0x5087e8(0xbb));if(0x0==store['getState']()[_0x5087e8(0xa6)][_0x5087e8(0xa7)])return void document[_0x5087e8(0xaf)](new CustomEvent(_0x5087e8(0xb2),{'detail':{'level':_0x5087e8(0x9e),'message':i18next['t'](_0x5087e8(0xbc))}}));if((await client[_0x5087e8(0x9f)]({'query':a0_0x327a0e`
33
+ <!-- <mwc-button raised label="${TermsUtil[_0x2e4dda(0x1c5)]('save')}" @click=${this[_0x2e4dda(0x1a5)][_0x2e4dda(0x1c6)](this)}></mwc-button> -->
34
+ </div>`;}get[a0_0x2d0011(0x1b0)](){const _0x5c580c=a0_0x2d0011;return this[_0x5c580c(0x1a2)]['querySelector'](_0x5c580c(0x1b4));}async[a0_0x2d0011(0x1a5)](){const _0x225429=a0_0x2d0011;if(this[_0x225429(0x1b0)]['orgValue']==this[_0x225429(0x1b0)]['value'])return void MetaApi[_0x225429(0x1ca)]('text.nothing_changed',_0x225429(0x1b1),'info',_0x225429(0x1c4));if(0x0==store[_0x225429(0x1bf)]()['metaUI'][_0x225429(0x1b9)])return void document[_0x225429(0x1c1)](new CustomEvent(_0x225429(0x1a7),{'detail':{'level':_0x225429(0x1c3),'message':i18next['t'](_0x225429(0x1b3))}}));if((await client['query']({'query':a0_0x151800`
35
35
  query ($id: String!) {
36
36
  metaUITemplateIsOverLimit(id: $id)
37
37
  }
38
- `,'variables':{'id':this[_0x5087e8(0xa2)]}}))['errors'])return;let _0x1dc908=this[_0x5087e8(0x9b)][_0x5087e8(0xa1)],_0x45984b=[{'id':this[_0x5087e8(0xa2)],'template':_0x1dc908,'cuFlag':'M'}];await MetaApi[_0x5087e8(0xc2)](_0x5087e8(0xac),_0x45984b)&&history[_0x5087e8(0xc0)]();}}customElements[a0_0x257786(0xae)](a0_0x257786(0xc3),DynamicMenuTemplate);function a0_0x2402(){const _0x980eec=['ox-input-code','updateMultipleMenu','save','define','dispatchEvent','3435740JBXVoo','shadowRoot','notify','template','4469910oIhovH','title','firstUpdated','32kpuCcn','11TUCKPu','2582520uivOWm','bind','confirm','error.invalid\x20license\x20key','tButton','orgValue','styles','back','findOne','updateMultiple','dynamic-menu-template','codeEditor','153835MLcTPi','60672FbOZHC','error','query','319082TuIzPQ','value','recordId','9NtiRRA','text.there_is_nothing_to_save','3RsOtPq','metaUI','studioPermission','3560720tyVmtO','render','info'];a0_0x2402=function(){return _0x980eec;};return a0_0x2402();}
38
+ `,'variables':{'id':this[_0x225429(0x1c2)]}}))[_0x225429(0x1b8)])return;let _0x5e72ca=this['codeEditor'][_0x225429(0x1be)],_0x323380=[{'id':this['recordId'],'template':_0x5e72ca,'cuFlag':'M'}];await MetaApi['updateMultiple'](_0x225429(0x1ad),_0x323380)&&history['back']();}}customElements['define'](a0_0x2d0011(0x1a9),DynamicMenuTemplate);