@things-factory/meta-ui 6.0.25 → 6.0.28

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 (53) hide show
  1. package/client/actions/main.js +3 -3
  2. package/client/mixin/meta-base-mixin.js +1 -1
  3. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  4. package/client/mixin/meta-button-mixin.js +1 -1
  5. package/client/mixin/meta-form-mixin.js +1 -1
  6. package/client/mixin/meta-grist-tab-mixin.js +9 -9
  7. package/client/mixin/meta-master-detail-mixin.js +23 -0
  8. package/client/mixin/meta-service-mixin.js +1 -1
  9. package/client/mixin/meta-tab-mixin.js +1 -1
  10. package/client/pages/entity/config-entity.js +29 -29
  11. package/client/pages/entity/main-menu-selector.js +8 -8
  12. package/client/pages/history/history-copy-list-popup.js +18 -0
  13. package/client/pages/history/history-json-list-popup.js +18 -0
  14. package/client/pages/loading-page.js +5 -5
  15. package/client/pages/menu/dynamic-menu-template.js +7 -7
  16. package/client/pages/menu/dynamic-menu.js +15 -15
  17. package/client/pages/meta-form-element.js +1 -1
  18. package/client/pages/meta-grist-element.js +1 -1
  19. package/client/pages/meta-grist-page.js +1 -1
  20. package/client/pages/meta-grist-tab-page.js +1 -1
  21. package/client/pages/meta-master-detail-element.js +1 -0
  22. package/client/pages/meta-master-detail-page.js +1 -0
  23. package/client/pages/meta-tab-element.js +1 -1
  24. package/client/pages/personalize/personal-column-selector.js +11 -11
  25. package/client/pages/terms/config-terminology.js +5 -5
  26. package/client/reducers/main.js +1 -1
  27. package/client/utils/meta-api.js +1 -1
  28. package/client/utils/meta-crypto.js +1 -1
  29. package/client/utils/meta-ui-util.js +108 -61
  30. package/client/utils/service-util.js +12 -12
  31. package/client/utils/terms-util.js +2 -2
  32. package/client/utils/ui-util.js +1 -1
  33. package/client/utils/value-util.js +1 -1
  34. package/client/viewparts/dynamic-menu-landscape-styles.js +2 -2
  35. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  36. package/client/viewparts/dynamic-menu-part.js +6 -6
  37. package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
  38. package/client/viewparts/dynamic-menu-portrait.js +10 -10
  39. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  40. package/package.json +5 -5
  41. package/server/constants/error-code.js +1 -1
  42. package/server/errors/license-error.js +1 -1
  43. package/server/routes.js +1 -1
  44. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  45. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  46. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  47. package/server/service/grid-personalize/grid-personalize.js +1 -1
  48. package/server/service/meta-secret/meta-resolver.js +1 -1
  49. package/server/service/set-translations/set-translation-resolver.js +1 -1
  50. package/translations/en.json +5 -1
  51. package/translations/ko.json +5 -1
  52. package/translations/ms.json +5 -1
  53. package/translations/zh.json +5 -1
@@ -1,26 +1,26 @@
1
- const a0_0x554f97=a0_0x13b1;(function(_0x37927a,_0x27195f){const _0x802f3f=a0_0x13b1,_0x524500=_0x37927a();while(!![]){try{const _0x2369fc=parseInt(_0x802f3f(0xc9))/0x1*(parseInt(_0x802f3f(0x15d))/0x2)+parseInt(_0x802f3f(0x10f))/0x3+parseInt(_0x802f3f(0x168))/0x4+parseInt(_0x802f3f(0x143))/0x5*(parseInt(_0x802f3f(0x138))/0x6)+-parseInt(_0x802f3f(0x141))/0x7*(-parseInt(_0x802f3f(0xe8))/0x8)+-parseInt(_0x802f3f(0x156))/0x9*(parseInt(_0x802f3f(0x101))/0xa)+-parseInt(_0x802f3f(0x13c))/0xb;if(_0x2369fc===_0x27195f)break;else _0x524500['push'](_0x524500['shift']());}catch(_0x153f11){_0x524500['push'](_0x524500['shift']());}}}(a0_0x166e,0xa3364));import{html}from'lit-element';import a0_0x5a5606 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';function a0_0x166e(){const _0x5270db=['pop','fetchEntityColumns','create-service','records','searchByPagination','fetchEntities','imex','success\x20to\x20process','LIST','GRID','large','gridWidth','i_like','rank','export','entityColumns','#master-grist','searchFields','timestamp','createUnregisteredTerms','success\x20to\x20register\x20terms','split','getGristColumnConfig2','tButton','getBasicMasterDetailGristStyle','186TFPwDL','nullable','string','error','14946052qWxOkF','deleteEntityColumns','getGristGuttersConfig','accept','button.create-service','3101qrINDr','config-entity','6485NwbEpw','exportEntityColumns','import','createCustomElement','dispatch','updated_at','selectCallback','confirm','refType','delete','#detail-grist','value','ref_type','GRIST_COLUMN_TYPES','FILTER_OPERATORS','medium','size','deleteMasters','importConfig','675vCBIXI','saveEntityColumns','info','label.','gridEditor','BUNDLE','getGristSelectableConfig','19476dxETuZ','checkEntityColumns','search_rank','data','getGristSearchCodeColumnConfig','masterConfig','render','errors','check-columns','length','bind','3998656ZeKzsW','properties','term','select','click','xlsx','createService','bundle','entityId','result','creator_id','setAttribute','domain_id','files','description','message','\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','openPopupByElement','integer','toolCreateMenu','created_at','forEach','selectedEntity','button.create-menu','text.nothing_selected','target','shadowRoot','getQueryFilters','_config','grid_editor','edit','getGristSearchColumnConfig','detailConfig','query','isNotEmpty','importEntityColumns','importXlsxFile','center','toBoolean','showAlertPopup','findIndex','left-right','57XYhvNp','colSize','context','updateMultiple','header','detailGrist','uniqRank','reduce','domain','fetch','searchForm','searchRank','createElement','entity-column','map','search_oper','\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\x20description\x0a\x20\x20\x20\x20','filter','grid_rank','getGristColumnConfig','text.no_data','push','question','sequence','type','col_type','record','createMenuTo','input','name','back','6576oZUWPl','key','boolean','updater_id','getGristCodeSelectorColumnConfig','gutter','importHandler','text.are_you_sure','file','__selected__','change','ref_name','left','button','gridRank','pageInitialized','updateMultipleEntity','isMobileEnv','deleteListByGristSelected','refName','deleteEntities','getSelectedIdList','main-menu-selector','querySelector','openMainMenuSelectorPopup','70450UqlmXD','tLabel','creator','patchesForUpdateMultiple','appendChild','entity','colType','tText','saveMasters','toInteger','masterGrist','grid_width','styles','uniq_rank','1789620xdQJFp','showToast','right','updateMultipleEntityColumn','createMenu','currentTarget','cancel','readAsArrayBuffer','searchEntityColumns','save','table_name','hidden','tTitle','tableName','ox-filters-form-base','columns'];a0_0x166e=function(){return _0x5270db;};return a0_0x166e();}import{EXPORT}from'@things-factory/export-base';import{IMPORT}from'@things-factory/import-base';import'@things-factory/form-ui';import'@things-factory/grist-ui';import'@things-factory/import-ui';import{TermsUtil}from'./../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';import{MetaApi}from'../../utils/meta-api';function a0_0x13b1(_0x437019,_0x584c19){const _0x166ef9=a0_0x166e();return a0_0x13b1=function(_0x13b114,_0x11c3db){_0x13b114=_0x13b114-0xc6;let _0x63f8=_0x166ef9[_0x13b114];return _0x63f8;},a0_0x13b1(_0x437019,_0x584c19);}import'./main-menu-selector';class ConfigEntity extends localize(i18next)(PageView){static get[a0_0x554f97(0x169)](){return{'searchFields':Array,'masterConfig':Object,'detailConfig':Object,'importConfig':Object,'entityId':String,'selectedEntity':Object};}static get[a0_0x554f97(0x10d)](){const _0x600e1d=a0_0x554f97;return MetaApi[_0x600e1d(0x137)](_0x600e1d(0xc8));}get[a0_0x554f97(0xcb)](){const _0x551032=a0_0x554f97;return{'title':TermsUtil[_0x551032(0x11b)]('entity')};}get[a0_0x554f97(0xd3)](){const _0x3fc530=a0_0x554f97;return this[_0x3fc530(0x182)][_0x3fc530(0xff)](_0x3fc530(0x11d));}get[a0_0x554f97(0x10b)](){const _0x2377fe=a0_0x554f97;return this['shadowRoot']['querySelector'](_0x2377fe(0x12f));}get[a0_0x554f97(0xce)](){const _0x30971e=a0_0x554f97;return this[_0x30971e(0x182)]['querySelector'](_0x30971e(0x14d));}async[a0_0x554f97(0x124)]({page:_0x369443,limit:_0x5a1699,sorters:_0x363185=[{'name':a0_0x554f97(0x16f)},{'name':a0_0x554f97(0xe6)}]}){const _0x17d8e8=a0_0x554f97;this[_0x17d8e8(0x170)]=null,this[_0x17d8e8(0x17e)]=null,this[_0x17d8e8(0xce)]&&this[_0x17d8e8(0xce)][_0x17d8e8(0x160)]&&(this[_0x17d8e8(0xce)]['data']={});let _0x9f7c26=[...await this[_0x17d8e8(0xd3)][_0x17d8e8(0x183)]()];return await MetaApi[_0x17d8e8(0x123)]('entities',_0x9f7c26,_0x363185,_0x369443,_0x5a1699,_0x17d8e8(0xd9));}async[a0_0x554f97(0x120)]({page:_0x24090a,limit:_0x3d6f69,sorters:_0x2dec83=[{'name':a0_0x554f97(0x12c)}]}){const _0x518238=a0_0x554f97;if(this[_0x518238(0x170)]){let _0x4fa48f=[{'name':'entityId','operator':'eq','value':this[_0x518238(0x170)]}],_0x1bb865=_0x518238(0x178);return await MetaApi[_0x518238(0x123)](_0x518238(0x12e),_0x4fa48f,_0x2dec83,_0x24090a,_0x3d6f69,_0x1bb865);}}async[a0_0x554f97(0x117)](_0x581ac9){const _0x3f79ac=a0_0x554f97;this['entityId']=_0x581ac9['id'],this[_0x3f79ac(0x17e)]=_0x581ac9,await this[_0x3f79ac(0xce)]['fetch']();}async[a0_0x554f97(0x100)](){const _0x24fbb2=a0_0x554f97;let _0xcf0c23=MetaApi[_0x24fbb2(0x146)]('main-menu-selector',_0x24fbb2(0xfe));_0xcf0c23[_0x24fbb2(0x149)]=this[_0x24fbb2(0xe4)][_0x24fbb2(0x167)](this),await MetaApi[_0x24fbb2(0x179)](TermsUtil['tButton']('create-menu'),_0x24fbb2(0x152),_0xcf0c23,!0x0);}async[a0_0x554f97(0x109)](){const _0x3805ec=a0_0x554f97;let _0x2528bc=MetaApi[_0x3805ec(0x104)](this[_0x3805ec(0x10b)]);ValueUtil[_0x3805ec(0x18a)](_0x2528bc)&&(await MetaApi[_0x3805ec(0xcc)](_0x3805ec(0xf8),_0x2528bc)&&this[_0x3805ec(0x10b)][_0x3805ec(0xd2)]());}async[a0_0x554f97(0x154)](){const _0x44f64c=a0_0x554f97;await MetaApi[_0x44f64c(0xfa)](this[_0x44f64c(0x10b)],_0x44f64c(0xfc));}async[a0_0x554f97(0x157)](){const _0x118872=a0_0x554f97;if(this[_0x118872(0x170)]){let _0x5a9e56=MetaApi[_0x118872(0x104)](this[_0x118872(0xce)]);if(ValueUtil[_0x118872(0x18a)](_0x5a9e56)){let _0x253d8d=0x0;_0x5a9e56['forEach'](_0x158742=>{const _0x58ae65=_0x118872;_0x253d8d+=0xa,_0x158742['entity']={'id':this[_0x58ae65(0x170)]},_0x158742['nullable']=void 0x0!==_0x158742[_0x58ae65(0x139)]&&null!=_0x158742[_0x58ae65(0x139)]&&_0x158742['nullable'],_0x158742[_0x58ae65(0x12c)]=_0x158742[_0x58ae65(0x12c)]&&0x0!=_0x158742['rank']?_0x158742[_0x58ae65(0x12c)]:_0x253d8d,_0x158742['gridRank']=_0x158742[_0x58ae65(0xf6)]?_0x158742[_0x58ae65(0xf6)]:0x0,_0x158742[_0x58ae65(0x16a)]=_0x158742['term']?_0x158742[_0x58ae65(0x16a)]:_0x158742[_0x58ae65(0xe6)],_0x158742[_0x58ae65(0x107)]=_0x158742['colType']?_0x158742['colType']:_0x58ae65(0x13a),_0x158742['colSize']=_0x58ae65(0x13a)!=_0x158742[_0x58ae65(0x107)]||_0x158742[_0x58ae65(0xca)]?_0x158742[_0x58ae65(0xca)]:0x32;}),await MetaApi[_0x118872(0xcc)](_0x118872(0x112),_0x5a9e56)&&this['detailGrist'][_0x118872(0xd2)]();}}}async[a0_0x554f97(0x13d)](){const _0x423849=a0_0x554f97;await MetaApi[_0x423849(0xfa)](this[_0x423849(0xce)],_0x423849(0x13d));}async[a0_0x554f97(0x16e)](){const _0x54cdaa=a0_0x554f97;if((await MetaApi['showAlertPopup'](_0x54cdaa(0x140),_0x54cdaa(0xef),_0x54cdaa(0xdf),_0x54cdaa(0x14a),_0x54cdaa(0x115)))[_0x54cdaa(0x14e)]){let _0x193838=MetaApi[_0x54cdaa(0xfd)](this['masterGrist'],!0x0);if(_0x193838){let _0x5a4607=_0x193838[0x0];const _0x139014=await client[_0x54cdaa(0x189)]({'query':a0_0x5a5606`
1
+ const a0_0x222be3=a0_0x5eb4;(function(_0x13c919,_0x217c24){const _0x3ecdf2=a0_0x5eb4,_0x2607d9=_0x13c919();while(!![]){try{const _0x400cf8=-parseInt(_0x3ecdf2(0x22c))/0x1+-parseInt(_0x3ecdf2(0x1f3))/0x2*(parseInt(_0x3ecdf2(0x1dc))/0x3)+-parseInt(_0x3ecdf2(0x22a))/0x4+parseInt(_0x3ecdf2(0x23a))/0x5*(-parseInt(_0x3ecdf2(0x213))/0x6)+parseInt(_0x3ecdf2(0x20b))/0x7+parseInt(_0x3ecdf2(0x1e8))/0x8+parseInt(_0x3ecdf2(0x23e))/0x9;if(_0x400cf8===_0x217c24)break;else _0x2607d9['push'](_0x2607d9['shift']());}catch(_0x2e723d){_0x2607d9['push'](_0x2607d9['shift']());}}}(a0_0x4484,0xd3392));function a0_0x4484(){const _0x4463cb=['4115744bUKFHx','string','1116875agPwGp','center','bind','entity-column','entity','COLUMN_REF_TYPE','updater_id','query','filter','detailConfig','hidden','text.nothing_selected','updateMultipleEntityColumn','type','5vAyVMs','rank','key','pop','19791063aYaafv','toInteger','text.are_you_sure','searchByPagination','searchFields','appendChild','_config','save','undefined','dataProp','deleteMasters','checkEntityColumns','length','delete','created_at','createMenu','getGristCodeSelectorColumnConfig','createUnregisteredTerms','FILTER_OPERATORS','tText','BUNDLE','right','imex','term','isMobileEnv','entityId','\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','ENTITY_GRIST_COLUMN_TYPES','medium','dispatch','info','uniqRank','updated_at','getGristColumnConfig','GRIST_COLUMN_TYPES','isNotEmpty','masterConfig','records','file','grid_rank','search_oper','creator','fetchEntities','gridWidth','split','LIST','export','check-columns','createMenuTo','gutter','createService','body','import','getSelectedIdList','table_name','left-right','getQueryFilters','gridRank','accept','searchRank','\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\x20dataProp\x0a\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20','register-terms','refName','getGristSelectableConfig','patchesForUpdateMultiple','getGristColumnConfig2','entities','shadowRoot','description','render','ENTITY_COLUMN_TYPES','grid_editor','button.create-service','creator_id','deleteListByGristSelected','boolean','question','header','success\x20to\x20process','toolCreateMenu','left','col_type','back','setAttribute','integer','masterGrist','large','timestamp','tTitle','colSize','getGristSearchColumnConfig','openMainMenuSelectorPopup','ref_type','getGristGuttersConfig','domain_id','348OzZGgt','xlsx','openPopupByElement','data','target','onload','columns','click','deleteEntities','change','exportEntityColumns','#detail-grist','5245176leLSnK','value','getBasicMasterDetailGristStyle','create-service','label.','reduce','pageInitialized','refType','name','nullable','#master-grist','6194AsEvJr','showAlertPopup','define','map','saveMasters','record','bundle','ref_name','entityColumns','tLabel','findIndex','importXlsxFile','select','selectedEntity','updateMultiple','sequence','main-menu-selector','confirm','createElement','size','toolCreateService','fetch','cancel','detailGrist','8999256EqLGEI','push','ox-filters-form-base','getGristSearchCodeColumnConfig','gridEditor','showToast','__selected__','success\x20to\x20register\x20terms','4620174AsMbkU','ENTITY_HIST_TYPE','searchEntityColumns','fetchEntityColumns','forEach','querySelector','GRID','toBoolean','createCustomElement','colType','button','tButton','create-menu','importConfig','currentTarget','updateMultipleEntity','search_rank','error','grid_width','deleteEntityColumns','message','edit','text.no_data'];a0_0x4484=function(){return _0x4463cb;};return a0_0x4484();}import{html}from'lit-element';import a0_0x23c82e 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/grist-ui';import'@things-factory/import-ui';import{TermsUtil}from'./../../utils/terms-util';import{ValueUtil}from'../../utils/value-util';function a0_0x5eb4(_0x5c40e4,_0x3175c9){const _0x4484d5=a0_0x4484();return a0_0x5eb4=function(_0x5eb436,_0x378cbc){_0x5eb436=_0x5eb436-0x180;let _0x831748=_0x4484d5[_0x5eb436];return _0x831748;},a0_0x5eb4(_0x5c40e4,_0x3175c9);}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['styles'](){const _0x58cae6=a0_0x5eb4;return MetaApi[_0x58cae6(0x1ea)](_0x58cae6(0x1b4));}get['context'](){const _0x50412d=a0_0x5eb4;return{'title':TermsUtil[_0x50412d(0x1d5)]('entity')};}get['searchForm'](){const _0xca106=a0_0x5eb4;return this[_0xca106(0x1c0)][_0xca106(0x218)](_0xca106(0x20d));}get['masterGrist'](){const _0x5a59b3=a0_0x5eb4;return this[_0x5a59b3(0x1c0)][_0x5a59b3(0x218)](_0x5a59b3(0x1f2));}get[a0_0x222be3(0x20a)](){const _0x4e80a7=a0_0x222be3;return this['shadowRoot']['querySelector'](_0x4e80a7(0x1e7));}async[a0_0x222be3(0x1a7)]({page:_0x3e7fa3,limit:_0xc19ac,sorters:_0x46aa41=[{'name':a0_0x222be3(0x1f9)},{'name':'name'}]}){const _0x2f76e7=a0_0x222be3;this['entityId']=null,this[_0x2f76e7(0x200)]=null,this['detailGrist']&&this[_0x2f76e7(0x20a)][_0x2f76e7(0x1df)]&&(this[_0x2f76e7(0x20a)]['data']={});let _0x50274f=[...await this['searchForm'][_0x2f76e7(0x1b5)]()];return await MetaApi['searchByPagination'](_0x2f76e7(0x1bf),_0x50274f,_0x46aa41,_0x3e7fa3,_0xc19ac,_0x2f76e7(0x1b9));}async[a0_0x222be3(0x216)]({page:_0x257d9f,limit:_0x2c26cd,sorters:_0x49be7d=[{'name':a0_0x222be3(0x23b)}]}){const _0x55b654=a0_0x222be3;if(this[_0x55b654(0x196)]){let _0x579a56=[{'name':_0x55b654(0x196),'operator':'eq','value':this['entityId']}],_0x371d3f=_0x55b654(0x197);return await MetaApi[_0x55b654(0x180)](_0x55b654(0x1fb),_0x579a56,_0x49be7d,_0x257d9f,_0x2c26cd,_0x371d3f);}}async[a0_0x222be3(0x215)](_0x23c511){const _0x585349=a0_0x222be3;this['entityId']=_0x23c511['id'],this[_0x585349(0x200)]=_0x23c511,await this['detailGrist']['fetch']();}async[a0_0x222be3(0x1d8)](){const _0x23c6b1=a0_0x222be3;let _0x51a4cf=MetaApi[_0x23c6b1(0x21b)](_0x23c6b1(0x203),_0x23c6b1(0x203));_0x51a4cf['selectCallback']=this[_0x23c6b1(0x1ad)][_0x23c6b1(0x22e)](this),await MetaApi[_0x23c6b1(0x1de)](TermsUtil[_0x23c6b1(0x21e)](_0x23c6b1(0x21f)),_0x23c6b1(0x199),_0x51a4cf,!0x0);}async[a0_0x222be3(0x1f7)](){const _0x2afba7=a0_0x222be3;let _0x4a2c0d=MetaApi[_0x2afba7(0x1bd)](this[_0x2afba7(0x1d2)]);ValueUtil['isNotEmpty'](_0x4a2c0d)&&(await MetaApi[_0x2afba7(0x201)](_0x2afba7(0x222),_0x4a2c0d)&&this[_0x2afba7(0x1d2)][_0x2afba7(0x208)]());}async['deleteMasters'](){const _0x57f0e3=a0_0x222be3;await MetaApi[_0x57f0e3(0x1c7)](this['masterGrist'],_0x57f0e3(0x1e4));}async['saveEntityColumns'](){const _0x1d92bc=a0_0x222be3;if(this[_0x1d92bc(0x196)]){let _0x5ad2f5=MetaApi['patchesForUpdateMultiple'](this[_0x1d92bc(0x20a)]);if(ValueUtil[_0x1d92bc(0x1a0)](_0x5ad2f5)){let _0x172100=0x0;_0x5ad2f5['forEach'](_0x43aa9d=>{const _0x3c9b94=_0x1d92bc;_0x172100+=0xa,_0x43aa9d[_0x3c9b94(0x230)]={'id':this[_0x3c9b94(0x196)]},_0x43aa9d[_0x3c9b94(0x1f1)]=void 0x0!==_0x43aa9d[_0x3c9b94(0x1f1)]&&null!=_0x43aa9d['nullable']&&_0x43aa9d['nullable'],_0x43aa9d['rank']=_0x43aa9d[_0x3c9b94(0x23b)]&&0x0!=_0x43aa9d[_0x3c9b94(0x23b)]?_0x43aa9d[_0x3c9b94(0x23b)]:_0x172100,_0x43aa9d[_0x3c9b94(0x1b6)]=_0x43aa9d[_0x3c9b94(0x1b6)]?_0x43aa9d[_0x3c9b94(0x1b6)]:0x0,_0x43aa9d[_0x3c9b94(0x194)]=_0x43aa9d['term']?_0x43aa9d[_0x3c9b94(0x194)]:_0x43aa9d[_0x3c9b94(0x1f0)],_0x43aa9d[_0x3c9b94(0x21c)]=_0x43aa9d['colType']?_0x43aa9d[_0x3c9b94(0x21c)]:_0x3c9b94(0x22b),_0x43aa9d['colSize']='string'!=_0x43aa9d[_0x3c9b94(0x21c)]||_0x43aa9d[_0x3c9b94(0x1d6)]?_0x43aa9d[_0x3c9b94(0x1d6)]:0x32;}),await MetaApi[_0x1d92bc(0x201)](_0x1d92bc(0x238),_0x5ad2f5)&&this['detailGrist'][_0x1d92bc(0x208)]();}}}async['deleteEntityColumns'](){const _0x3e4b3f=a0_0x222be3;await MetaApi['deleteListByGristSelected'](this[_0x3e4b3f(0x20a)],_0x3e4b3f(0x226));}async[a0_0x222be3(0x1af)](){const _0x2f2c92=a0_0x222be3;if((await MetaApi[_0x2f2c92(0x1f4)](_0x2f2c92(0x1c5),_0x2f2c92(0x240),_0x2f2c92(0x1c9),_0x2f2c92(0x204),_0x2f2c92(0x209)))[_0x2f2c92(0x1e9)]){let _0x289b56=MetaApi[_0x2f2c92(0x1b2)](this[_0x2f2c92(0x1d2)],!0x0);if(_0x289b56){let _0x3d6846=_0x289b56[0x0];const _0x1dc31=await client[_0x2f2c92(0x233)]({'query':a0_0x23c82e`
2
2
  query ($id: String!) {
3
3
  toolCreateService(id: $id)
4
4
  }
5
- `,'variables':{'id':_0x5a4607},'context':gqlContext()});_0x139014&&_0x139014[_0x54cdaa(0x160)]&&_0x139014[_0x54cdaa(0x160)]['toolCreateService']&&MetaApi[_0x54cdaa(0x110)](_0x54cdaa(0x158),TermsUtil[_0x54cdaa(0x108)](_0x54cdaa(0x126)));}}}async[a0_0x554f97(0x113)](){const _0x875585=a0_0x554f97;if(this[_0x875585(0x170)])(await MetaApi['showAlertPopup'](_0x875585(0x17f),_0x875585(0xef),_0x875585(0xdf),_0x875585(0x14a),_0x875585(0x115)))[_0x875585(0x14e)]&&MetaApi['getSelectedIdList'](this[_0x875585(0x10b)],!0x0)&&await this[_0x875585(0x100)]();else MetaApi[_0x875585(0xc6)](_0x875585(0x180),'text.nothing_selected',_0x875585(0x158),_0x875585(0x14a));}async[a0_0x554f97(0xe4)](_0x507dd6){const _0x5b6d83=a0_0x554f97,_0xa78959=await client[_0x5b6d83(0x189)]({'query':a0_0x5a5606`
5
+ `,'variables':{'id':_0x3d6846},'context':gqlContext()});_0x1dc31&&_0x1dc31[_0x2f2c92(0x1df)]&&_0x1dc31[_0x2f2c92(0x1df)][_0x2f2c92(0x207)]&&MetaApi[_0x2f2c92(0x210)](_0x2f2c92(0x19b),TermsUtil[_0x2f2c92(0x190)]('success\x20to\x20process'));}}}async[a0_0x222be3(0x18c)](){const _0x2b24fe=a0_0x222be3;if(this['entityId'])(await MetaApi['showAlertPopup']('button.create-menu',_0x2b24fe(0x240),'question',_0x2b24fe(0x204),_0x2b24fe(0x209)))[_0x2b24fe(0x1e9)]&&MetaApi[_0x2b24fe(0x1b2)](this[_0x2b24fe(0x1d2)],!0x0)&&await this['openMainMenuSelectorPopup']();else MetaApi[_0x2b24fe(0x1f4)](_0x2b24fe(0x237),_0x2b24fe(0x237),_0x2b24fe(0x19b),_0x2b24fe(0x204));}async[a0_0x222be3(0x1ad)](_0x3346ae){const _0x173bc0=a0_0x222be3,_0x21ecba=await client[_0x173bc0(0x233)]({'query':a0_0x23c82e`
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[_0x5b6d83(0x170)],'parent_menu_id':_0x507dd6},'context':gqlContext()});return _0xa78959&&_0xa78959[_0x5b6d83(0x160)]&&_0xa78959[_0x5b6d83(0x160)][_0x5b6d83(0x17b)]?(MetaApi[_0x5b6d83(0x110)](_0x5b6d83(0x158),TermsUtil[_0x5b6d83(0x108)](_0x5b6d83(0x126))),{'success':!0x0}):{'success':!0x1};}async[a0_0x554f97(0x132)](){const _0x2a1072=a0_0x554f97;try{if(this[_0x2a1072(0x170)]){const _0x48e67b=this['detailGrist'][_0x2a1072(0x160)][_0x2a1072(0x122)][_0x2a1072(0xda)](_0x69e668=>TermsUtil['tLabel'](_0x69e668[_0x2a1072(0x16a)])===_0x69e668['term'])[_0x2a1072(0xd7)](_0x450d2d=>_0x2a1072(0x159)+_0x450d2d['term']),_0x42ce05=this[_0x2a1072(0x17e)][_0x2a1072(0x16f)];_0x48e67b[_0x2a1072(0x166)]&&((await client[_0x2a1072(0x189)]({'query':a0_0x5a5606`
9
+ `,'variables':{'id':this['entityId'],'parent_menu_id':_0x3346ae},'context':gqlContext()});return _0x21ecba&&_0x21ecba['data']&&_0x21ecba[_0x173bc0(0x1df)][_0x173bc0(0x1cc)]?(MetaApi[_0x173bc0(0x210)](_0x173bc0(0x19b),TermsUtil[_0x173bc0(0x190)](_0x173bc0(0x1cb))),{'success':!0x0}):{'success':!0x1};}async[a0_0x222be3(0x18e)](){const _0x276404=a0_0x222be3;try{if(this[_0x276404(0x196)]){const _0x32cf9a=this[_0x276404(0x20a)]['data'][_0x276404(0x1a2)]['filter'](_0x3da3b9=>TermsUtil[_0x276404(0x1fc)](_0x3da3b9[_0x276404(0x194)])===_0x3da3b9['term'])['map'](_0x4de0d3=>_0x276404(0x1ec)+_0x4de0d3[_0x276404(0x194)]),_0x8e5981=this[_0x276404(0x200)][_0x276404(0x1f9)];_0x32cf9a[_0x276404(0x189)]&&((await client[_0x276404(0x233)]({'query':a0_0x23c82e`
10
10
  query setTranslations($bundle: String!, $terms: [String!]!) {
11
11
  setTranslations(bundle: $bundle, terms: $terms)
12
12
  }
13
- `,'variables':{'bundle':_0x42ce05,'terms':_0x48e67b}}))[_0x2a1072(0x164)]||MetaApi[_0x2a1072(0x110)](_0x2a1072(0x158),TermsUtil[_0x2a1072(0x108)](_0x2a1072(0x133))));}}catch(_0x5df3cf){MetaApi[_0x2a1072(0x110)](_0x2a1072(0x13b),_0x5df3cf[_0x2a1072(0x177)]);}}async[a0_0x554f97(0x144)](){const _0x289521=a0_0x554f97;let _0x2d5a9e=this['detailGrist'][_0x289521(0x184)][_0x289521(0x11e)][_0x289521(0xda)](_0x1cf8c9=>_0x289521(0xed)!==_0x1cf8c9['type']&&void 0x0!==_0x1cf8c9[_0x289521(0xe3)]&&void 0x0!==_0x1cf8c9[_0x289521(0x125)])[_0x289521(0xd7)](_0x25a704=>_0x25a704['imex']),_0x35f3df=this[_0x289521(0xce)]['data'][_0x289521(0x122)][_0x289521(0xd7)](_0x4d20ed=>({'id':_0x4d20ed['id'],...this['detailGrist']['_config'][_0x289521(0x11e)][_0x289521(0xda)](_0x55ca1b=>_0x289521(0xed)!==_0x55ca1b[_0x289521(0xe1)]&&void 0x0!==_0x55ca1b[_0x289521(0xe3)]&&void 0x0!==_0x55ca1b[_0x289521(0x125)])[_0x289521(0xd0)]((_0x472d4f,_0x284701)=>(_0x472d4f[_0x284701[_0x289521(0x125)][_0x289521(0xe9)]]=_0x284701[_0x289521(0x125)][_0x289521(0xe9)][_0x289521(0x134)]('.')[_0x289521(0xd0)]((_0x2add39,_0x359c0e)=>_0x2add39&&'undefined'!==_0x2add39[_0x359c0e]?_0x2add39[_0x359c0e]:void 0x0,_0x4d20ed),_0x472d4f),{})}));store['dispatch']({'type':EXPORT,'exportable':{'extension':'xlsx','name':TermsUtil[_0x289521(0x11b)]('entity-column')+'-'+this['selectedEntity'][_0x289521(0xe6)],'data':{'header':_0x2d5a9e,'data':_0x35f3df}}});}async[a0_0x554f97(0x18c)](){const _0x2f2ffe=a0_0x554f97;let _0x4cede0=this;const _0x3e4651=document[_0x2f2ffe(0xd5)](_0x2f2ffe(0xe5));_0x3e4651[_0x2f2ffe(0x173)](_0x2f2ffe(0xe1),_0x2f2ffe(0xf0)),_0x3e4651['setAttribute'](_0x2f2ffe(0x13f),[_0x2f2ffe(0x16d)]),_0x3e4651[_0x2f2ffe(0x11a)]=!0x0,_0x3e4651['addEventListener'](_0x2f2ffe(0xf2),_0x40ee42=>{const _0x244abd=_0x2f2ffe,_0x581338=_0x40ee42[_0x244abd(0x114)][_0x244abd(0x175)][0x0],_0x147856=_0x581338[_0x244abd(0xe6)]['split']('.')[_0x244abd(0x11f)](),_0x3e799c=new FileReader();_0x3e799c['onload']=function(_0x118625){const _0x48a807=_0x244abd,_0x58c4cb=_0x118625[_0x48a807(0x181)][_0x48a807(0x171)];store[_0x48a807(0x147)]({'type':IMPORT,'importable':{'extension':_0x147856,'handler':_0x4cede0['importEntityColumns'][_0x48a807(0x167)](_0x4cede0)},'data':_0x58c4cb});},_0x3e799c[_0x244abd(0x116)](_0x581338);}),document['body'][_0x2f2ffe(0x105)](_0x3e4651),_0x3e4651[_0x2f2ffe(0x16c)]();}[a0_0x554f97(0x18b)](_0x32e876){const _0x59f57b=a0_0x554f97;let _0x1d34f6=_0x32e876[_0x59f57b(0xcd)]?_0x32e876['data']:_0x32e876;if(_0x1d34f6&&_0x1d34f6[_0x59f57b(0x166)]>0x0){_0x1d34f6[_0x59f57b(0x17d)](_0x1f6053=>{const _0x40569b=_0x59f57b;_0x1f6053[_0x40569b(0xf1)]=!0x0;});let _0x501f43=this[_0x59f57b(0x155)][_0x59f57b(0x11e)]['filter'](_0x7aeae9=>!!_0x7aeae9[_0x59f57b(0x125)]);setTimeout(()=>{const _0xcbb82c=_0x59f57b;MetaApi[_0xcbb82c(0x179)](TermsUtil[_0xcbb82c(0x11b)]('import'),_0xcbb82c(0x129),html`
13
+ `,'variables':{'bundle':_0x8e5981,'terms':_0x32cf9a}}))['errors']||MetaApi[_0x276404(0x210)](_0x276404(0x19b),TermsUtil[_0x276404(0x190)](_0x276404(0x212))));}}catch(_0x67b181){MetaApi[_0x276404(0x210)](_0x276404(0x224),_0x67b181[_0x276404(0x227)]);}}async[a0_0x222be3(0x1e6)](){const _0xe75ff=a0_0x222be3;let _0x144f35=this[_0xe75ff(0x20a)][_0xe75ff(0x183)][_0xe75ff(0x1e2)][_0xe75ff(0x234)](_0x2099ce=>'gutter'!==_0x2099ce[_0xe75ff(0x239)]&&void 0x0!==_0x2099ce[_0xe75ff(0x1f8)]&&void 0x0!==_0x2099ce[_0xe75ff(0x193)])['map'](_0x37288d=>_0x37288d['imex']),_0x495ee4=this[_0xe75ff(0x20a)][_0xe75ff(0x1df)][_0xe75ff(0x1a2)][_0xe75ff(0x1f6)](_0x5a61af=>({'id':_0x5a61af['id'],...this[_0xe75ff(0x20a)][_0xe75ff(0x183)][_0xe75ff(0x1e2)][_0xe75ff(0x234)](_0x1b7d51=>_0xe75ff(0x1ae)!==_0x1b7d51['type']&&void 0x0!==_0x1b7d51['record']&&void 0x0!==_0x1b7d51[_0xe75ff(0x193)])[_0xe75ff(0x1ed)]((_0x2995c5,_0x4dd798)=>(_0x2995c5[_0x4dd798[_0xe75ff(0x193)][_0xe75ff(0x23c)]]=_0x4dd798['imex'][_0xe75ff(0x23c)][_0xe75ff(0x1a9)]('.')[_0xe75ff(0x1ed)]((_0x45886a,_0x548500)=>_0x45886a&&_0xe75ff(0x185)!==_0x45886a[_0x548500]?_0x45886a[_0x548500]:void 0x0,_0x5a61af),_0x2995c5),{})}));store['dispatch']({'type':EXPORT,'exportable':{'extension':'xlsx','name':TermsUtil[_0xe75ff(0x1d5)](_0xe75ff(0x22f))+'-'+this[_0xe75ff(0x200)][_0xe75ff(0x1f0)],'data':{'header':_0x144f35,'data':_0x495ee4}}});}async[a0_0x222be3(0x1fe)](){const _0x1c4878=a0_0x222be3;let _0x56e53a=this;const _0x2aa4c1=document[_0x1c4878(0x205)]('input');_0x2aa4c1[_0x1c4878(0x1d0)](_0x1c4878(0x239),_0x1c4878(0x1a3)),_0x2aa4c1[_0x1c4878(0x1d0)](_0x1c4878(0x1b7),[_0x1c4878(0x1dd)]),_0x2aa4c1[_0x1c4878(0x236)]=!0x0,_0x2aa4c1['addEventListener'](_0x1c4878(0x1e5),_0xd6a38c=>{const _0x272c02=_0x1c4878,_0x57921b=_0xd6a38c[_0x272c02(0x221)]['files'][0x0],_0xc1a231=_0x57921b[_0x272c02(0x1f0)]['split']('.')[_0x272c02(0x23d)](),_0x2920af=new FileReader();_0x2920af[_0x272c02(0x1e1)]=function(_0x8f54b9){const _0x2b3d27=_0x272c02,_0x88079e=_0x8f54b9[_0x2b3d27(0x1e0)]['result'];store[_0x2b3d27(0x19a)]({'type':IMPORT,'importable':{'extension':_0xc1a231,'handler':_0x56e53a['importEntityColumns'][_0x2b3d27(0x22e)](_0x56e53a)},'data':_0x88079e});},_0x2920af['readAsArrayBuffer'](_0x57921b);}),document[_0x1c4878(0x1b0)][_0x1c4878(0x182)](_0x2aa4c1),_0x2aa4c1[_0x1c4878(0x1e3)]();}['importEntityColumns'](_0x331784){const _0x11e56d=a0_0x222be3;let _0x1241ba=_0x331784[_0x11e56d(0x1ca)]?_0x331784[_0x11e56d(0x1df)]:_0x331784;if(_0x1241ba&&_0x1241ba[_0x11e56d(0x189)]>0x0){_0x1241ba[_0x11e56d(0x217)](_0x176eed=>{const _0x2fd459=_0x11e56d;_0x176eed[_0x2fd459(0x211)]=!0x0;});let _0x25be20=this[_0x11e56d(0x220)][_0x11e56d(0x1e2)]['filter'](_0x49eb28=>!!_0x49eb28[_0x11e56d(0x193)]);setTimeout(()=>{const _0x2b5b57=_0x11e56d;MetaApi[_0x2b5b57(0x1de)](TermsUtil[_0x2b5b57(0x1d5)]('import'),_0x2b5b57(0x1d3),html`
14
14
  <import-pop-up
15
- .records=${_0x1d34f6}
16
- .config=${{'rows':_0x1d34f6,'columns':[{'type':_0xcbb82c(0xed),'gutterName':_0xcbb82c(0xe0)},..._0x501f43]}}
17
- .importHandler="${this[_0xcbb82c(0xee)][_0xcbb82c(0x167)](this)}">
18
- </import-pop-up>`);},0x1f4);}}async[a0_0x554f97(0xee)](_0x1d6ca0){const _0x10c890=a0_0x554f97;if(_0x1d6ca0&&0x0!=_0x1d6ca0[_0x10c890(0x166)]){let _0x212245=0x0;_0x1d6ca0[_0x10c890(0x17d)](_0x5f2ea1=>{const _0xa5e174=_0x10c890;_0x212245+=0xa,_0x5f2ea1['colSize']=ValueUtil[_0xa5e174(0x18a)](_0x5f2ea1[_0xa5e174(0xca)])?ValueUtil[_0xa5e174(0x10a)](_0x5f2ea1['colSize']):_0xa5e174(0x13a)==_0x5f2ea1['colType']?0x32:0x0,_0x5f2ea1[_0xa5e174(0x12c)]=ValueUtil[_0xa5e174(0x10a)](_0x5f2ea1[_0xa5e174(0x12c)],0x0),_0x5f2ea1[_0xa5e174(0xcf)]=ValueUtil[_0xa5e174(0x10a)](_0x5f2ea1['uniqRank'],0x0),_0x5f2ea1[_0xa5e174(0xd4)]=ValueUtil[_0xa5e174(0x10a)](_0x5f2ea1[_0xa5e174(0xd4)],0x0),_0x5f2ea1[_0xa5e174(0xf6)]=ValueUtil['toInteger'](_0x5f2ea1[_0xa5e174(0xf6)],0x0),_0x5f2ea1[_0xa5e174(0x12a)]=ValueUtil[_0xa5e174(0x10a)](_0x5f2ea1[_0xa5e174(0x12a)],0x0),_0x5f2ea1[_0xa5e174(0x106)]={'id':this[_0xa5e174(0x170)]},_0x5f2ea1['nullable']=ValueUtil[_0xa5e174(0x18e)](_0x5f2ea1[_0xa5e174(0x139)]),_0x5f2ea1[_0xa5e174(0x16a)]=_0x5f2ea1[_0xa5e174(0x16a)]?_0x5f2ea1['term']:_0x5f2ea1[_0xa5e174(0xe6)],_0x5f2ea1['colType']=_0x5f2ea1[_0xa5e174(0x107)]?_0x5f2ea1[_0xa5e174(0x107)]:_0xa5e174(0x13a),delete _0x5f2ea1[_0xa5e174(0x13a)];}),await MetaApi[_0x10c890(0xcc)](_0x10c890(0x112),_0x1d6ca0)&&(this[_0x10c890(0xce)][_0x10c890(0xd2)](),history[_0x10c890(0xe7)]());}else MetaApi[_0x10c890(0x110)]('info',_0x10c890(0xdd)),history[_0x10c890(0xe7)]();}async[a0_0x554f97(0x15e)](){const _0x2f3999=a0_0x554f97;if(this[_0x2f3999(0x170)]){let _0x46ca0a=this['detailGrist'][_0x2f3999(0x160)][_0x2f3999(0x122)],_0x5a75b6=_0x46ca0a&&_0x46ca0a[_0x2f3999(0x166)]?0xa*_0x46ca0a[_0x2f3999(0x166)]:0x0,_0x18deff=!0x1,_0x266d02=!0x1,_0x339ba4=!0x1,_0x13d0bc=!0x1,_0x49383f=!0x1,_0xfb1b0f=!0x1;_0x46ca0a&&_0x46ca0a['length']>0x0&&(_0x18deff=_0x46ca0a['findIndex'](_0x193385=>'id'==_0x193385[_0x2f3999(0xe6)])>=0x0,_0x266d02=_0x46ca0a[_0x2f3999(0xc7)](_0x16653e=>_0x2f3999(0x174)==_0x16653e[_0x2f3999(0xe6)])>=0x0,_0x339ba4=_0x46ca0a['findIndex'](_0x2f1a46=>'created_at'==_0x2f1a46[_0x2f3999(0xe6)])>=0x0,_0x13d0bc=_0x46ca0a[_0x2f3999(0xc7)](_0x4e0188=>'updated_at'==_0x4e0188[_0x2f3999(0xe6)])>=0x0,_0x49383f=_0x46ca0a['findIndex'](_0x578781=>_0x2f3999(0x172)==_0x578781['name'])>=0x0,_0xfb1b0f=_0x46ca0a[_0x2f3999(0xc7)](_0x4b6bba=>_0x2f3999(0xeb)==_0x4b6bba[_0x2f3999(0xe6)])>=0x0);let _0x5c0838=[];_0x18deff||(_0x5a75b6+=0xa,_0x5c0838[_0x2f3999(0xde)]({'entity':{'id':this[_0x2f3999(0x170)]},'name':'id','colType':_0x2f3999(0x13a),'colSize':0x0,'nullable':!0x1,'term':'id','rank':_0x5a75b6,'cuFlag':'+'})),_0x266d02||(_0x5a75b6+=0xa,_0x5c0838[_0x2f3999(0xde)]({'entity':{'id':this[_0x2f3999(0x170)]},'name':_0x2f3999(0x174),'colType':_0x2f3999(0x13a),'colSize':0x0,'nullable':!0x1,'term':_0x2f3999(0xd1),'rank':_0x5a75b6,'cuFlag':'+'})),_0x339ba4||(_0x5a75b6+=0xa,_0x5c0838[_0x2f3999(0xde)]({'entity':{'id':this[_0x2f3999(0x170)]},'name':_0x2f3999(0x17c),'colType':_0x2f3999(0x131),'colSize':0x0,'nullable':!0x0,'term':_0x2f3999(0x17c),'rank':_0x5a75b6,'gridRank':0x0,'gridWidth':0x8c,'cuFlag':'+'})),_0x13d0bc||(_0x5a75b6+=0xa,_0x5c0838[_0x2f3999(0xde)]({'entity':{'id':this[_0x2f3999(0x170)]},'name':_0x2f3999(0x148),'colType':_0x2f3999(0x131),'colSize':0x0,'nullable':!0x0,'term':_0x2f3999(0x148),'rank':_0x5a75b6,'gridRank':_0x5a75b6,'gridWidth':0x8c,'cuFlag':'+'})),_0x49383f||(_0x5a75b6+=0xa,_0x5c0838[_0x2f3999(0xde)]({'entity':{'id':this[_0x2f3999(0x170)]},'name':_0x2f3999(0x172),'colType':_0x2f3999(0x13a),'colSize':0x28,'nullable':!0x0,'term':_0x2f3999(0x103),'rank':_0x5a75b6,'gridRank':0x0,'gridWidth':0x64,'cuFlag':'+'})),_0xfb1b0f||(_0x5a75b6+=0xa,_0x5c0838[_0x2f3999(0xde)]({'entity':{'id':this[_0x2f3999(0x170)]},'name':_0x2f3999(0xeb),'colType':'string','colSize':0x28,'nullable':!0x0,'term':'updater','rank':_0x5a75b6,'gridRank':0x0,'gridWidth':0x64,'cuFlag':'+'})),await MetaApi[_0x2f3999(0xcc)]('updateMultipleEntityColumn',_0x5c0838)&&this[_0x2f3999(0xce)][_0x2f3999(0xd2)]();}}async[a0_0x554f97(0xf7)](){const _0x48c5cf=a0_0x554f97;this[_0x48c5cf(0x130)]=[MetaApi[_0x48c5cf(0x187)](_0x48c5cf(0xe6),_0x48c5cf(0x13a),_0x48c5cf(0xe6),_0x48c5cf(0x12b)),MetaApi[_0x48c5cf(0x187)]('table_name',_0x48c5cf(0x13a),'table_name','i_like'),await MetaApi[_0x48c5cf(0x161)](_0x48c5cf(0x16f),_0x48c5cf(0x16b),'bundle','eq',_0x48c5cf(0x15b))],this[_0x48c5cf(0x162)]={'rows':MetaApi[_0x48c5cf(0x15c)](!0x1),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x48c5cf(0x13e)](!0x0,!0x1),{'type':'gutter','gutterName':_0x48c5cf(0xf5),'icon':_0x48c5cf(0x186),'handlers':{'click':(_0xbcc498,_0x29320f,_0x529fbb,_0x48529d,_0x2eee2e)=>{const _0x2cf37e=_0x48c5cf;_0x48529d['id']&&this[_0x2cf37e(0x117)](_0x48529d);}}},await MetaApi[_0x48c5cf(0xec)](_0x48c5cf(0x16f),_0x48c5cf(0x16f),_0x48c5cf(0xf4),!0x1,0x73,!0x0,'BUNDLE'),MetaApi['getGristColumnConfig'](_0x48c5cf(0x13a),_0x48c5cf(0xe6),_0x48c5cf(0xf4),!0x0,!0x1,0x7d),MetaApi['getGristColumnConfig2'](_0x48c5cf(0x13a),_0x48c5cf(0x11c),_0x48c5cf(0x119),_0x48c5cf(0xf4),!0x0,!0x1,0x7d),MetaApi[_0x48c5cf(0xdc)](_0x48c5cf(0x13a),_0x48c5cf(0x176),_0x48c5cf(0xf4),!0x0,!0x1,0x96)]},this[_0x48c5cf(0x188)]={'rows':MetaApi[_0x48c5cf(0x15c)](!0x0),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x48c5cf(0x13e)](!0x0,!0x0),MetaApi['getGristColumnConfig'](_0x48c5cf(0x17a),_0x48c5cf(0x12c),_0x48c5cf(0x18d),!0x0,!0x1,0x32),MetaApi[_0x48c5cf(0xdc)](_0x48c5cf(0x13a),'name',_0x48c5cf(0xf4),!0x0,!0x1,0x73),{'type':_0x48c5cf(0x13a),'name':_0x48c5cf(0x16a),'header':TermsUtil[_0x48c5cf(0x102)]('term'),'sortable':!0x1,'width':0x87,'record':{'editable':!0x0,'align':_0x48c5cf(0xf4),'renderer':(_0x325268,_0x5479a9,_0x1ac1f1,_0x3effdc,_0x356c3f)=>_0x1ac1f1[_0x48c5cf(0x16a)]?TermsUtil[_0x48c5cf(0x102)](_0x1ac1f1['term'],null,_0x1ac1f1[_0x48c5cf(0x16a)]):''}},await MetaApi[_0x48c5cf(0xec)](_0x48c5cf(0x107),_0x48c5cf(0xe2),_0x48c5cf(0xf4),!0x1,0x4b,!0x0,'ENTITY_COLUMN_TYPES'),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x17a),_0x48c5cf(0xca),_0x48c5cf(0x153),_0x48c5cf(0x111),!0x0,!0x1,0x3c),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0xea),_0x48c5cf(0x139),_0x48c5cf(0x139),_0x48c5cf(0x18d),!0x0,!0x1,0x46),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x17a),_0x48c5cf(0xcf),_0x48c5cf(0x10e),_0x48c5cf(0x111),!0x0,!0x1,0x46),MetaApi['getGristColumnConfig2'](_0x48c5cf(0x13a),'description',_0x48c5cf(0x176),'left',!0x0,!0x1,0x87),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x17a),'searchRank',_0x48c5cf(0x15f),_0x48c5cf(0x111),!0x0,!0x1,0x46),await MetaApi[_0x48c5cf(0xec)](_0x48c5cf(0x13a),_0x48c5cf(0xd8),_0x48c5cf(0xf4),!0x1,0x55,!0x0,'FILTER_OPERATORS'),MetaApi[_0x48c5cf(0x135)]('integer',_0x48c5cf(0xf6),'grid_rank',_0x48c5cf(0x111),!0x0,!0x1,0x50),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x17a),_0x48c5cf(0x12a),_0x48c5cf(0x10c),_0x48c5cf(0x111),!0x0,!0x1,0x4b),await MetaApi[_0x48c5cf(0xec)]('gridEditor',_0x48c5cf(0x185),_0x48c5cf(0xf4),!0x1,0x5a,!0x0,'ENTITY_GRIST_COLUMN_TYPES'),await MetaApi['getGristCodeSelectorColumnConfig'](_0x48c5cf(0x14b),_0x48c5cf(0x14f),_0x48c5cf(0xf4),!0x1,0x55,!0x0,'COLUMN_REF_TYPE'),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x13a),_0x48c5cf(0xfb),_0x48c5cf(0xf3),'left',!0x0,!0x1,0x64)]},this[_0x48c5cf(0x155)]={'rows':MetaApi[_0x48c5cf(0x15c)](!0x0),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x0,!0x0),MetaApi[_0x48c5cf(0xdc)](_0x48c5cf(0x17a),_0x48c5cf(0x12c),_0x48c5cf(0x18d),!0x0,!0x1,0x32),MetaApi[_0x48c5cf(0xdc)]('string','name',_0x48c5cf(0xf4),!0x0,!0x1,0x73),{'type':'string','name':_0x48c5cf(0x16a),'header':TermsUtil[_0x48c5cf(0x102)]('term'),'sortable':!0x1,'width':0x87,'record':{'editable':!0x1,'align':'left','renderer':(_0x38a34b,_0x1aedb1,_0x5a2bb8,_0x4b7759,_0x3fe4d9)=>_0x5a2bb8[_0x48c5cf(0x16a)]?TermsUtil['tLabel'](_0x5a2bb8['term'],null,_0x5a2bb8[_0x48c5cf(0x16a)]):''}},await MetaApi[_0x48c5cf(0xec)]('colType',_0x48c5cf(0xe2),'left',!0x1,0x4b,!0x0,'ENTITY_COLUMN_TYPES'),MetaApi[_0x48c5cf(0x135)]('integer',_0x48c5cf(0xca),_0x48c5cf(0x153),_0x48c5cf(0x111),!0x0,!0x1,0x3c),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0xea),_0x48c5cf(0x139),_0x48c5cf(0x139),_0x48c5cf(0x18d),!0x0,!0x1,0x46),MetaApi['getGristColumnConfig2'](_0x48c5cf(0x17a),_0x48c5cf(0xcf),_0x48c5cf(0x10e),_0x48c5cf(0x111),!0x0,!0x1,0x46),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x13a),_0x48c5cf(0x176),'description',_0x48c5cf(0xf4),!0x0,!0x1,0x87),MetaApi['getGristColumnConfig2'](_0x48c5cf(0x17a),_0x48c5cf(0xd4),_0x48c5cf(0x15f),_0x48c5cf(0x111),!0x0,!0x1,0x46),await MetaApi[_0x48c5cf(0xec)](_0x48c5cf(0x13a),'search_oper',_0x48c5cf(0xf4),!0x1,0x55,!0x0,_0x48c5cf(0x151)),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x17a),_0x48c5cf(0xf6),_0x48c5cf(0xdb),_0x48c5cf(0x111),!0x0,!0x1,0x50),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x17a),_0x48c5cf(0x12a),_0x48c5cf(0x10c),_0x48c5cf(0x111),!0x0,!0x1,0x4b),await MetaApi[_0x48c5cf(0xec)](_0x48c5cf(0x15a),_0x48c5cf(0x185),'left',!0x1,0x5a,!0x0,_0x48c5cf(0x150)),await MetaApi[_0x48c5cf(0xec)](_0x48c5cf(0x14b),'ref_type',_0x48c5cf(0xf4),!0x1,0x55,!0x0,'COLUMN_REF_TYPE'),MetaApi[_0x48c5cf(0x135)](_0x48c5cf(0x13a),_0x48c5cf(0xfb),'ref_name',_0x48c5cf(0xf4),!0x0,!0x1,0x64)]};}[a0_0x554f97(0x163)](){const _0x1ca032=a0_0x554f97;return html`
15
+ .records=${_0x1241ba}
16
+ .config=${{'rows':_0x1241ba,'columns':[{'type':_0x2b5b57(0x1ae),'gutterName':_0x2b5b57(0x202)},..._0x25be20]}}
17
+ .importHandler="${this['importHandler'][_0x2b5b57(0x22e)](this)}">
18
+ </import-pop-up>`);},0x1f4);}}async['importHandler'](_0x44d186){const _0x51663d=a0_0x222be3;if(_0x44d186&&0x0!=_0x44d186[_0x51663d(0x189)]){let _0x4cf886=0x0;_0x44d186[_0x51663d(0x217)](_0x31362c=>{const _0x2b21d2=_0x51663d;_0x4cf886+=0xa,_0x31362c[_0x2b21d2(0x1d6)]=ValueUtil['isNotEmpty'](_0x31362c[_0x2b21d2(0x1d6)])?ValueUtil['toInteger'](_0x31362c[_0x2b21d2(0x1d6)]):'string'==_0x31362c[_0x2b21d2(0x21c)]?0x32:0x0,_0x31362c[_0x2b21d2(0x23b)]=ValueUtil[_0x2b21d2(0x23f)](_0x31362c['rank'],0x0),_0x31362c['uniqRank']=ValueUtil[_0x2b21d2(0x23f)](_0x31362c['uniqRank'],0x0),_0x31362c[_0x2b21d2(0x1b8)]=ValueUtil[_0x2b21d2(0x23f)](_0x31362c['searchRank'],0x0),_0x31362c[_0x2b21d2(0x1b6)]=ValueUtil[_0x2b21d2(0x23f)](_0x31362c['gridRank'],0x0),_0x31362c[_0x2b21d2(0x1a8)]=ValueUtil[_0x2b21d2(0x23f)](_0x31362c[_0x2b21d2(0x1a8)],0x0),_0x31362c[_0x2b21d2(0x230)]={'id':this[_0x2b21d2(0x196)]},_0x31362c[_0x2b21d2(0x1f1)]=ValueUtil[_0x2b21d2(0x21a)](_0x31362c[_0x2b21d2(0x1f1)]),_0x31362c[_0x2b21d2(0x194)]=_0x31362c[_0x2b21d2(0x194)]?_0x31362c['term']:_0x31362c['name'],_0x31362c[_0x2b21d2(0x21c)]=_0x31362c[_0x2b21d2(0x21c)]?_0x31362c[_0x2b21d2(0x21c)]:_0x2b21d2(0x22b),delete _0x31362c['string'];}),await MetaApi[_0x51663d(0x201)](_0x51663d(0x238),_0x44d186)&&(this['detailGrist'][_0x51663d(0x208)](),history[_0x51663d(0x1cf)]());}else MetaApi['showToast']('info',_0x51663d(0x229)),history[_0x51663d(0x1cf)]();}async[a0_0x222be3(0x188)](){const _0x300036=a0_0x222be3;if(this[_0x300036(0x196)]){let _0x44fd5b=this[_0x300036(0x20a)][_0x300036(0x1df)][_0x300036(0x1a2)],_0x115233=_0x44fd5b&&_0x44fd5b[_0x300036(0x189)]?0xa*_0x44fd5b[_0x300036(0x189)]:0x0,_0xbc7251=!0x1,_0x1dd06d=!0x1,_0x21396a=!0x1,_0x44bf06=!0x1,_0x4cd933=!0x1,_0x194262=!0x1;_0x44fd5b&&_0x44fd5b[_0x300036(0x189)]>0x0&&(_0xbc7251=_0x44fd5b[_0x300036(0x1fd)](_0x2b80a8=>'id'==_0x2b80a8[_0x300036(0x1f0)])>=0x0,_0x1dd06d=_0x44fd5b['findIndex'](_0x1836d4=>_0x300036(0x1db)==_0x1836d4[_0x300036(0x1f0)])>=0x0,_0x21396a=_0x44fd5b['findIndex'](_0x37b15f=>_0x300036(0x18b)==_0x37b15f['name'])>=0x0,_0x44bf06=_0x44fd5b[_0x300036(0x1fd)](_0x5d81aa=>'updated_at'==_0x5d81aa[_0x300036(0x1f0)])>=0x0,_0x4cd933=_0x44fd5b[_0x300036(0x1fd)](_0x10b081=>_0x300036(0x1c6)==_0x10b081[_0x300036(0x1f0)])>=0x0,_0x194262=_0x44fd5b['findIndex'](_0x2dc860=>_0x300036(0x232)==_0x2dc860[_0x300036(0x1f0)])>=0x0);let _0x424348=[];_0xbc7251||(_0x115233+=0xa,_0x424348[_0x300036(0x20c)]({'entity':{'id':this[_0x300036(0x196)]},'name':'id','colType':'string','colSize':0x0,'nullable':!0x1,'term':'id','rank':_0x115233,'cuFlag':'+'})),_0x1dd06d||(_0x115233+=0xa,_0x424348['push']({'entity':{'id':this[_0x300036(0x196)]},'name':_0x300036(0x1db),'colType':_0x300036(0x22b),'colSize':0x0,'nullable':!0x1,'term':'domain','rank':_0x115233,'cuFlag':'+'})),_0x21396a||(_0x115233+=0xa,_0x424348[_0x300036(0x20c)]({'entity':{'id':this[_0x300036(0x196)]},'name':'created_at','colType':_0x300036(0x1d4),'colSize':0x0,'nullable':!0x0,'term':_0x300036(0x18b),'rank':_0x115233,'gridRank':0x0,'gridWidth':0x8c,'cuFlag':'+'})),_0x44bf06||(_0x115233+=0xa,_0x424348[_0x300036(0x20c)]({'entity':{'id':this[_0x300036(0x196)]},'name':'updated_at','colType':_0x300036(0x1d4),'colSize':0x0,'nullable':!0x0,'term':_0x300036(0x19d),'rank':_0x115233,'gridRank':_0x115233,'gridWidth':0x8c,'cuFlag':'+'})),_0x4cd933||(_0x115233+=0xa,_0x424348[_0x300036(0x20c)]({'entity':{'id':this[_0x300036(0x196)]},'name':_0x300036(0x1c6),'colType':_0x300036(0x22b),'colSize':0x28,'nullable':!0x0,'term':_0x300036(0x1a6),'rank':_0x115233,'gridRank':0x0,'gridWidth':0x64,'cuFlag':'+'})),_0x194262||(_0x115233+=0xa,_0x424348[_0x300036(0x20c)]({'entity':{'id':this['entityId']},'name':_0x300036(0x232),'colType':_0x300036(0x22b),'colSize':0x28,'nullable':!0x0,'term':'updater','rank':_0x115233,'gridRank':0x0,'gridWidth':0x64,'cuFlag':'+'})),await MetaApi[_0x300036(0x201)](_0x300036(0x238),_0x424348)&&this[_0x300036(0x20a)]['fetch']();}}async[a0_0x222be3(0x1ee)](){const _0x26b7c7=a0_0x222be3;this[_0x26b7c7(0x181)]=[MetaApi[_0x26b7c7(0x1d7)]('name',_0x26b7c7(0x22b),_0x26b7c7(0x1f0),'i_like'),MetaApi['getGristSearchColumnConfig'](_0x26b7c7(0x1b3),_0x26b7c7(0x22b),_0x26b7c7(0x1b3),'i_like'),await MetaApi[_0x26b7c7(0x20e)](_0x26b7c7(0x1f9),_0x26b7c7(0x1ff),_0x26b7c7(0x1f9),'eq',_0x26b7c7(0x191))],this[_0x26b7c7(0x1a1)]={'rows':MetaApi['getGristSelectableConfig'](!0x1),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x26b7c7(0x1da)](!0x0,!0x1),{'type':'gutter','gutterName':_0x26b7c7(0x21d),'icon':_0x26b7c7(0x228),'handlers':{'click':(_0x13d39b,_0x5a9653,_0x316ab6,_0x562164,_0x47fcfa)=>{const _0x448e52=_0x26b7c7;_0x562164['id']&&this[_0x448e52(0x215)](_0x562164);}}},await MetaApi[_0x26b7c7(0x18d)]('bundle','bundle',_0x26b7c7(0x1cd),!0x1,0x73,!0x0,_0x26b7c7(0x191)),MetaApi['getGristColumnConfig']('string','name','left',!0x0,!0x1,0x7d),await MetaApi[_0x26b7c7(0x18d)](_0x26b7c7(0x186),'entity_manage_hist',_0x26b7c7(0x22d),!0x1,0x73,!0x0,_0x26b7c7(0x214)),MetaApi[_0x26b7c7(0x19e)](_0x26b7c7(0x22b),_0x26b7c7(0x1c1),_0x26b7c7(0x1cd),!0x0,!0x1,0x96)]},this[_0x26b7c7(0x235)]={'rows':MetaApi[_0x26b7c7(0x1bc)](!0x0),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x26b7c7(0x1da)](!0x0,!0x0),MetaApi[_0x26b7c7(0x19e)](_0x26b7c7(0x1d1),_0x26b7c7(0x23b),_0x26b7c7(0x22d),!0x0,!0x1,0x32),MetaApi[_0x26b7c7(0x19e)]('string',_0x26b7c7(0x1f0),_0x26b7c7(0x1cd),!0x0,!0x1,0x73),{'type':_0x26b7c7(0x22b),'name':_0x26b7c7(0x194),'header':TermsUtil[_0x26b7c7(0x1fc)](_0x26b7c7(0x194)),'sortable':!0x1,'width':0x87,'record':{'editable':!0x0,'align':_0x26b7c7(0x1cd),'renderer':(_0x40b4d5,_0x53b7a4,_0x35cb06,_0x38e42a,_0x259d4d)=>_0x35cb06[_0x26b7c7(0x194)]?TermsUtil[_0x26b7c7(0x1fc)](_0x35cb06[_0x26b7c7(0x194)],null,_0x35cb06[_0x26b7c7(0x194)]):''}},await MetaApi[_0x26b7c7(0x18d)]('colType',_0x26b7c7(0x1ce),_0x26b7c7(0x1cd),!0x1,0x4b,!0x0,_0x26b7c7(0x1c3)),MetaApi[_0x26b7c7(0x1be)]('integer',_0x26b7c7(0x1d6),_0x26b7c7(0x206),_0x26b7c7(0x192),!0x0,!0x1,0x3c),MetaApi[_0x26b7c7(0x1be)]('boolean',_0x26b7c7(0x1f1),_0x26b7c7(0x1f1),_0x26b7c7(0x22d),!0x0,!0x1,0x46),MetaApi['getGristColumnConfig2'](_0x26b7c7(0x1d1),_0x26b7c7(0x19c),'uniq_rank','right',!0x0,!0x1,0x46),MetaApi[_0x26b7c7(0x1be)](_0x26b7c7(0x22b),_0x26b7c7(0x1c1),_0x26b7c7(0x1c1),_0x26b7c7(0x1cd),!0x0,!0x1,0x87),MetaApi['getGristColumnConfig2'](_0x26b7c7(0x1d1),_0x26b7c7(0x1b8),_0x26b7c7(0x223),_0x26b7c7(0x192),!0x0,!0x1,0x46),await MetaApi[_0x26b7c7(0x18d)](_0x26b7c7(0x22b),'search_oper',_0x26b7c7(0x1cd),!0x1,0x55,!0x0,_0x26b7c7(0x18f)),MetaApi[_0x26b7c7(0x1be)](_0x26b7c7(0x1d1),_0x26b7c7(0x1b6),_0x26b7c7(0x1a4),_0x26b7c7(0x192),!0x0,!0x1,0x50),MetaApi[_0x26b7c7(0x1be)](_0x26b7c7(0x1d1),_0x26b7c7(0x1a8),_0x26b7c7(0x225),_0x26b7c7(0x192),!0x0,!0x1,0x4b),await MetaApi[_0x26b7c7(0x18d)](_0x26b7c7(0x20f),_0x26b7c7(0x1c4),_0x26b7c7(0x1cd),!0x1,0x5a,!0x0,_0x26b7c7(0x198)),await MetaApi[_0x26b7c7(0x18d)](_0x26b7c7(0x1ef),_0x26b7c7(0x1d9),_0x26b7c7(0x1cd),!0x1,0x55,!0x0,_0x26b7c7(0x231)),MetaApi[_0x26b7c7(0x1be)]('string',_0x26b7c7(0x1bb),_0x26b7c7(0x1fa),_0x26b7c7(0x1cd),!0x0,!0x1,0x64)]},this[_0x26b7c7(0x220)]={'rows':MetaApi[_0x26b7c7(0x1bc)](!0x0),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x26b7c7(0x1da)](!0x0,!0x0),MetaApi[_0x26b7c7(0x19e)](_0x26b7c7(0x1d1),_0x26b7c7(0x23b),_0x26b7c7(0x22d),!0x0,!0x1,0x32),MetaApi['getGristColumnConfig'](_0x26b7c7(0x22b),_0x26b7c7(0x1f0),_0x26b7c7(0x1cd),!0x0,!0x1,0x73),{'type':_0x26b7c7(0x22b),'name':_0x26b7c7(0x194),'header':TermsUtil['tLabel'](_0x26b7c7(0x194)),'sortable':!0x1,'width':0x87,'record':{'editable':!0x1,'align':_0x26b7c7(0x1cd),'renderer':(_0x9eed44,_0x56f07f,_0x256ec0,_0x444e21,_0x1ab62a)=>_0x256ec0[_0x26b7c7(0x194)]?TermsUtil[_0x26b7c7(0x1fc)](_0x256ec0[_0x26b7c7(0x194)],null,_0x256ec0[_0x26b7c7(0x194)]):''}},await MetaApi[_0x26b7c7(0x18d)]('colType','col_type',_0x26b7c7(0x1cd),!0x1,0x4b,!0x0,_0x26b7c7(0x1c3)),MetaApi[_0x26b7c7(0x1be)](_0x26b7c7(0x1d1),_0x26b7c7(0x1d6),_0x26b7c7(0x206),_0x26b7c7(0x192),!0x0,!0x1,0x3c),MetaApi[_0x26b7c7(0x1be)](_0x26b7c7(0x1c8),_0x26b7c7(0x1f1),_0x26b7c7(0x1f1),_0x26b7c7(0x22d),!0x0,!0x1,0x46),MetaApi[_0x26b7c7(0x1be)](_0x26b7c7(0x1d1),_0x26b7c7(0x19c),'uniq_rank',_0x26b7c7(0x192),!0x0,!0x1,0x46),MetaApi[_0x26b7c7(0x1be)](_0x26b7c7(0x22b),_0x26b7c7(0x1c1),_0x26b7c7(0x1c1),'left',!0x0,!0x1,0x87),MetaApi[_0x26b7c7(0x1be)](_0x26b7c7(0x1d1),_0x26b7c7(0x1b8),_0x26b7c7(0x223),_0x26b7c7(0x192),!0x0,!0x1,0x46),await MetaApi['getGristCodeSelectorColumnConfig'](_0x26b7c7(0x22b),_0x26b7c7(0x1a5),_0x26b7c7(0x1cd),!0x1,0x55,!0x0,_0x26b7c7(0x18f)),MetaApi[_0x26b7c7(0x1be)]('integer','gridRank',_0x26b7c7(0x1a4),'right',!0x0,!0x1,0x50),MetaApi[_0x26b7c7(0x1be)]('integer',_0x26b7c7(0x1a8),_0x26b7c7(0x225),_0x26b7c7(0x192),!0x0,!0x1,0x4b),await MetaApi[_0x26b7c7(0x18d)](_0x26b7c7(0x20f),_0x26b7c7(0x1c4),_0x26b7c7(0x1cd),!0x1,0x5a,!0x0,_0x26b7c7(0x19f)),await MetaApi['getGristCodeSelectorColumnConfig'](_0x26b7c7(0x1ef),_0x26b7c7(0x1d9),_0x26b7c7(0x1cd),!0x1,0x55,!0x0,_0x26b7c7(0x231)),MetaApi['getGristColumnConfig2']('string',_0x26b7c7(0x1bb),'ref_name',_0x26b7c7(0x1cd),!0x0,!0x1,0x64)]};}[a0_0x222be3(0x1c2)](){const _0x543c8e=a0_0x222be3;return html`
19
19
  <div slot="headroom">
20
20
  <div id="filters">
21
21
  <ox-filters-form-base
22
- .filters=${this[_0x1ca032(0x130)]||[]}
23
- @filters-change=${_0xfc65d5=>{const _0x1ad8d6=_0x1ca032;this[_0x1ad8d6(0x10b)]?.[_0x1ad8d6(0xd2)]();}}
22
+ .filters=${this[_0x543c8e(0x181)]||[]}
23
+ @filters-change=${_0x182434=>{const _0x52dace=_0x543c8e;this[_0x52dace(0x1d2)]?.[_0x52dace(0x208)]();}}
24
24
  ></ox-filters-form-base>
25
25
  </div>
26
26
  </div>
@@ -28,42 +28,42 @@ const a0_0x554f97=a0_0x13b1;(function(_0x37927a,_0x27195f){const _0x802f3f=a0_0x
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[_0x1ca032(0x11b)](_0x1ca032(0x106))}
31
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x543c8e(0x1d5)](_0x543c8e(0x230))}
32
32
  </h2>
33
33
  <ox-grist
34
34
  id="master-grist"
35
- .config=${this[_0x1ca032(0x162)]}
36
- .mode=${MetaApi[_0x1ca032(0xf9)]()?_0x1ca032(0x127):_0x1ca032(0x128)}
35
+ .config=${this[_0x543c8e(0x1a1)]}
36
+ .mode=${MetaApi[_0x543c8e(0x195)]()?_0x543c8e(0x1aa):_0x543c8e(0x219)}
37
37
  auto-fetch
38
- .fetchHandler=${this[_0x1ca032(0x124)][_0x1ca032(0x167)](this)}>
38
+ .fetchHandler=${this[_0x543c8e(0x1a7)][_0x543c8e(0x22e)](this)}>
39
39
  </ox-grist>
40
40
  <div id="button-container" class="button-container">
41
- <mwc-button raised label="${TermsUtil[_0x1ca032(0x136)](_0x1ca032(0x121))}" @click=${_0x21bd05=>this['createService']()}></mwc-button>
42
- <mwc-button raised label="${TermsUtil[_0x1ca032(0x136)]('create-menu')}" @click=${_0x691152=>this['createMenu']()}></mwc-button>
43
- <mwc-button raised label="${TermsUtil[_0x1ca032(0x136)](_0x1ca032(0x118))}" @click=${_0x4ded60=>this['saveMasters']()}></mwc-button>
44
- <mwc-button raised label="${TermsUtil[_0x1ca032(0x136)](_0x1ca032(0x14c))}" @click=${_0x1642de=>this['deleteMasters']()}></mwc-button>
41
+ <mwc-button raised label="${TermsUtil[_0x543c8e(0x21e)](_0x543c8e(0x1eb))}" @click=${_0xc8b46=>this[_0x543c8e(0x1af)]()}></mwc-button>
42
+ <mwc-button raised label="${TermsUtil['tButton'](_0x543c8e(0x21f))}" @click=${_0x1fd0aa=>this[_0x543c8e(0x18c)]()}></mwc-button>
43
+ <mwc-button raised label="${TermsUtil[_0x543c8e(0x21e)](_0x543c8e(0x184))}" @click=${_0x10b841=>this[_0x543c8e(0x1f7)]()}></mwc-button>
44
+ <mwc-button raised label="${TermsUtil[_0x543c8e(0x21e)]('delete')}" @click=${_0x3dd097=>this[_0x543c8e(0x187)]()}></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[_0x1ca032(0x11b)](_0x1ca032(0xd6))}
50
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x543c8e(0x1d5)](_0x543c8e(0x22f))}
51
51
  </h2>
52
52
  <ox-grist
53
53
  id="detail-grist"
54
- .config=${this['detailConfig']}
55
- .mode=${MetaApi[_0x1ca032(0xf9)]()?_0x1ca032(0x127):_0x1ca032(0x128)}
54
+ .config=${this[_0x543c8e(0x235)]}
55
+ .mode=${MetaApi[_0x543c8e(0x195)]()?_0x543c8e(0x1aa):_0x543c8e(0x219)}
56
56
  explcit-fetch
57
- .fetchHandler=${this[_0x1ca032(0x120)][_0x1ca032(0x167)](this)}>
57
+ .fetchHandler=${this[_0x543c8e(0x216)][_0x543c8e(0x22e)](this)}>
58
58
  </ox-grist>
59
59
  <div id="button-container" class="button-container">
60
- <mwc-button raised label="${TermsUtil['tButton'](_0x1ca032(0x12d))}" @click=${_0x20098e=>this[_0x1ca032(0x144)]()}></mwc-button>
61
- <mwc-button raised label="${TermsUtil[_0x1ca032(0x136)](_0x1ca032(0x145))}" @click=${_0x4b52a9=>this['importXlsxFile']()}></mwc-button>
62
- <mwc-button raised label="${TermsUtil['tButton'](_0x1ca032(0x165))}" @click=${_0x59f0ac=>this[_0x1ca032(0x15e)]()}></mwc-button>
63
- <mwc-button raised label="${TermsUtil[_0x1ca032(0x136)]('register-terms')}" @click=${_0x2886c4=>this['createUnregisteredTerms']()}></mwc-button>
64
- <mwc-button raised label="${TermsUtil[_0x1ca032(0x136)]('save')}" @click=${_0x55df18=>this[_0x1ca032(0x157)]()}></mwc-button>
65
- <mwc-button raised label="${TermsUtil[_0x1ca032(0x136)]('delete')}" @click=${_0x40f486=>this[_0x1ca032(0x13d)]()}></mwc-button>
60
+ <mwc-button raised label="${TermsUtil[_0x543c8e(0x21e)](_0x543c8e(0x1ab))}" @click=${_0xf7ee61=>this['exportEntityColumns']()}></mwc-button>
61
+ <mwc-button raised label="${TermsUtil[_0x543c8e(0x21e)](_0x543c8e(0x1b1))}" @click=${_0x4f38da=>this[_0x543c8e(0x1fe)]()}></mwc-button>
62
+ <mwc-button raised label="${TermsUtil[_0x543c8e(0x21e)](_0x543c8e(0x1ac))}" @click=${_0x59a786=>this[_0x543c8e(0x188)]()}></mwc-button>
63
+ <mwc-button raised label="${TermsUtil[_0x543c8e(0x21e)](_0x543c8e(0x1ba))}" @click=${_0x45f90c=>this[_0x543c8e(0x18e)]()}></mwc-button>
64
+ <mwc-button raised label="${TermsUtil[_0x543c8e(0x21e)](_0x543c8e(0x184))}" @click=${_0x4ccb37=>this['saveEntityColumns']()}></mwc-button>
65
+ <mwc-button raised label="${TermsUtil[_0x543c8e(0x21e)](_0x543c8e(0x18a))}" @click=${_0x2099af=>this['deleteEntityColumns']()}></mwc-button>
66
66
  </div>
67
67
  </div>
68
68
  </div>
69
- `;}}customElements['define'](a0_0x554f97(0x142),ConfigEntity);
69
+ `;}}customElements[a0_0x222be3(0x1f5)]('config-entity',ConfigEntity);
@@ -1,4 +1,4 @@
1
- const a0_0xa07f05=a0_0x129a;(function(_0x9585f,_0x25d9b8){const _0xa51234=a0_0x129a,_0x4c5911=_0x9585f();while(!![]){try{const _0x4fff4e=parseInt(_0xa51234(0x88))/0x1*(-parseInt(_0xa51234(0x98))/0x2)+parseInt(_0xa51234(0x87))/0x3*(parseInt(_0xa51234(0xa0))/0x4)+parseInt(_0xa51234(0x7b))/0x5*(parseInt(_0xa51234(0x9f))/0x6)+parseInt(_0xa51234(0x79))/0x7+parseInt(_0xa51234(0x9d))/0x8+parseInt(_0xa51234(0x89))/0x9*(-parseInt(_0xa51234(0x86))/0xa)+-parseInt(_0xa51234(0xa1))/0xb*(parseInt(_0xa51234(0x73))/0xc);if(_0x4fff4e===_0x25d9b8)break;else _0x4c5911['push'](_0x4c5911['shift']());}catch(_0x3e5c70){_0x4c5911['push'](_0x4c5911['shift']());}}}(a0_0x18bf,0x8f184));import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';function a0_0x129a(_0x55a607,_0x25e8be){const _0x18bfd8=a0_0x18bf();return a0_0x129a=function(_0x129ace,_0x433fed){_0x129ace=_0x129ace-0x70;let _0x2f451c=_0x18bfd8[_0x129ace];return _0x2f451c;},a0_0x129a(_0x55a607,_0x25e8be);}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[a0_0xa07f05(0x94)](){return[ScrollbarStyles,CommonGristStyles,css`
1
+ const a0_0x37a58f=a0_0x2797;(function(_0x57aa76,_0x260079){const _0x15297a=a0_0x2797,_0x4b0aa2=_0x57aa76();while(!![]){try{const _0x5d81ad=parseInt(_0x15297a(0x1df))/0x1+-parseInt(_0x15297a(0x1bc))/0x2*(-parseInt(_0x15297a(0x1cd))/0x3)+parseInt(_0x15297a(0x1e1))/0x4+parseInt(_0x15297a(0x1ce))/0x5*(parseInt(_0x15297a(0x1e9))/0x6)+-parseInt(_0x15297a(0x1d2))/0x7*(parseInt(_0x15297a(0x1d6))/0x8)+parseInt(_0x15297a(0x1d8))/0x9*(parseInt(_0x15297a(0x1e7))/0xa)+-parseInt(_0x15297a(0x1d1))/0xb;if(_0x5d81ad===_0x260079)break;else _0x4b0aa2['push'](_0x4b0aa2['shift']());}catch(_0x402b73){_0x4b0aa2['push'](_0x4b0aa2['shift']());}}}(a0_0xbe17,0x21b88));function a0_0x2797(_0x5d93f3,_0x5d0861){const _0xbe175c=a0_0xbe17();return a0_0x2797=function(_0x27972d,_0x58b980){_0x27972d=_0x27972d-0x1b9;let _0x31f848=_0xbe175c[_0x27972d];return _0x31f848;},a0_0x2797(_0x5d93f3,_0x5d0861);}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_0xbe17(){const _0x43d6c8=['bind','getGristColumnConfig','10GTvQoS','fetchMainMenus','666012oWaRdy','selected','tMenu','#ox-grist','main-menu-selector','getGristSelectableConfig','tLabel','524668nsoGkm','render','records','menus','menuType','gridConfig','getGristCodeSelectorColumnConfig','GRID','rank','define','shadowRoot','selectMainMenu','name','info','items','styles','integer','3igJnSs','5QukCdU','selectCallback','length','7981358Odtevl','28AycQYw','create-menu','connectedCallback','center','121560zoXaXP','string','1032093RBcZqf','left','text.NOTHING_SELECTED','button.confirm','searchByPagination','showCustomAlert','title','255503TgIiRN','tButton','723848ZxwsbL','grist','menu_type','total'];a0_0xbe17=function(){return _0x43d6c8;};return a0_0xbe17();}import{MetaApi}from'../../utils/meta-api';export class MainMenuSelector extends localize(i18next)(LitElement){static get[a0_0x37a58f(0x1cb)](){return[ScrollbarStyles,CommonGristStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -57,19 +57,19 @@ const a0_0xa07f05=a0_0x129a;(function(_0x9585f,_0x25d9b8){const _0xa51234=a0_0x1
57
57
  height: var(--button-container-height);
58
58
  text-align: right;
59
59
  padding-right: 12px;
60
- }`];}static get['properties'](){return{'items':{'type':Array},'total':{'type':Number},'selectCallback':{'type':Function}};}async[a0_0xa07f05(0x81)](){const _0x51d3ba=a0_0xa07f05;this['gridConfig']={'rows':MetaApi[_0x51d3ba(0x9c)](!0x1),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x51d3ba(0x72)](!0x0,!0x1),MetaApi[_0x51d3ba(0x90)](_0x51d3ba(0x9a),_0x51d3ba(0x8d),'center',!0x0,!0x1,0x3c),MetaApi['getGristColumnConfig']('string',_0x51d3ba(0x9b),_0x51d3ba(0x8e),!0x0,!0x1,0xb9),{'type':_0x51d3ba(0xa2),'name':_0x51d3ba(0x8a),'header':TermsUtil[_0x51d3ba(0x7e)](_0x51d3ba(0x8a)),'record':{'editable':!0x1,'align':_0x51d3ba(0x8e),'renderer':(_0x44e8b0,_0x48d028,_0xf740f,_0x51f5e6,_0x5a0667)=>_0xf740f[_0x51d3ba(0x9b)]?TermsUtil[_0x51d3ba(0x84)](_0xf740f[_0x51d3ba(0x9b)]):''},'sortable':!0x1,'width':0x113},await MetaApi[_0x51d3ba(0x93)](_0x51d3ba(0x7f),_0x51d3ba(0x8f),_0x51d3ba(0x8e),!0x1,0x64,!0x0,_0x51d3ba(0xa4))]},super['connectedCallback']&&await super[_0x51d3ba(0x81)]();}[a0_0xa07f05(0x97)](){const _0x4e488a=a0_0xa07f05;return html`
60
+ }`];}static get['properties'](){return{'items':{'type':Array},'total':{'type':Number},'selectCallback':{'type':Function}};}async[a0_0x37a58f(0x1d4)](){const _0x5ce0b8=a0_0x37a58f;this[_0x5ce0b8(0x1c1)]={'rows':MetaApi[_0x5ce0b8(0x1ba)](!0x1),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x0,!0x1),MetaApi[_0x5ce0b8(0x1e6)](_0x5ce0b8(0x1cc),_0x5ce0b8(0x1c4),_0x5ce0b8(0x1d5),!0x0,!0x1,0x3c),MetaApi['getGristColumnConfig']('string',_0x5ce0b8(0x1c8),_0x5ce0b8(0x1d9),!0x0,!0x1,0xb9),{'type':_0x5ce0b8(0x1d7),'name':_0x5ce0b8(0x1de),'header':TermsUtil[_0x5ce0b8(0x1bb)]('title'),'record':{'editable':!0x1,'align':_0x5ce0b8(0x1d9),'renderer':(_0x162e11,_0x233ebe,_0x2875c4,_0x1d510a,_0x1556db)=>_0x2875c4['name']?TermsUtil[_0x5ce0b8(0x1eb)](_0x2875c4[_0x5ce0b8(0x1c8)]):''},'sortable':!0x1,'width':0x113},await MetaApi[_0x5ce0b8(0x1c2)](_0x5ce0b8(0x1c0),_0x5ce0b8(0x1e3),_0x5ce0b8(0x1d9),!0x1,0x64,!0x0,'MENU_TYPE')]},super[_0x5ce0b8(0x1d4)]&&await super[_0x5ce0b8(0x1d4)]();}[a0_0x37a58f(0x1bd)](){const _0x548a29=a0_0x37a58f;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[_0x4e488a(0x70)]}
66
- .mode=${_0x4e488a(0x75)} auto-fetch
67
- .fetchHandler=${this[_0x4e488a(0x82)][_0x4e488a(0x74)](this)}>
65
+ .config=${this['gridConfig']}
66
+ .mode=${_0x548a29(0x1c3)} auto-fetch
67
+ .fetchHandler=${this['fetchMainMenus'][_0x548a29(0x1e5)](this)}>
68
68
  </ox-grist>
69
69
  <div id="button-container" class="button-container">
70
- <mwc-button raised hidden id="receive" label="${TermsUtil[_0x4e488a(0x83)](_0x4e488a(0x91))}"
71
- style="margin-left:7px;margin-top:7px;" @click=${this[_0x4e488a(0x80)][_0x4e488a(0x74)](this)}>
70
+ <mwc-button raised hidden id="receive" label="${TermsUtil[_0x548a29(0x1e0)](_0x548a29(0x1d3))}"
71
+ style="margin-left:7px;margin-top:7px;" @click=${this[_0x548a29(0x1c7)][_0x548a29(0x1e5)](this)}>
72
72
  </mwc-button>
73
73
  </div>
74
74
  </div>
75
- </div>`;}get[a0_0xa07f05(0x7d)](){const _0x4e562b=a0_0xa07f05;return this[_0x4e562b(0xa3)][_0x4e562b(0x7a)](_0x4e562b(0x71));}async['fetchMainMenus'](){const _0x22ce01=a0_0xa07f05;let _0x4ca074=await MetaApi[_0x22ce01(0x99)](_0x22ce01(0x96),[{'name':_0x22ce01(0x77),'operator':'is_null','value':''}],[{'name':_0x22ce01(0x8d)}],0x0,0x0,_0x22ce01(0x78));return this['items']=_0x4ca074[_0x22ce01(0x76)],this[_0x22ce01(0x95)]=_0x4ca074['total'],{'total':this[_0x22ce01(0x95)],'records':this['items']};}async[a0_0xa07f05(0x80)](_0x1beb07){const _0x58057d=a0_0xa07f05,_0x314789=this[_0x58057d(0x7d)][_0x58057d(0x8c)];if(_0x314789&&0x0!=_0x314789['length'])this[_0x58057d(0x85)]&&((await this[_0x58057d(0x85)](_0x314789[0x0]['id']))['success']&&history[_0x58057d(0x9e)]());else UiUtil[_0x58057d(0x92)]('title.info',_0x58057d(0x7c),'info',_0x58057d(0x8b));}}function a0_0x18bf(){const _0x4e83fd=['shadowRoot','MENU_TYPE','gridConfig','#ox-grist','getGristGuttersConfig','36NOUnvV','bind','GRID','records','parentId','\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','7905891QzODfp','querySelector','55qOOGYG','text.NOTHING_SELECTED','grist','tLabel','menuType','selectMainMenu','connectedCallback','fetchMainMenus','tButton','tMenu','selectCallback','90qmWuwH','14484BNTXnB','2JpkoBj','519012mRfLSI','title','button.confirm','selected','rank','left','menu_type','getGristColumnConfig','create-menu','showCustomAlert','getGristCodeSelectorColumnConfig','styles','total','menus','render','689086zlFlTN','searchByPagination','integer','name','getGristSelectableConfig','1389096CykOSi','back','441132ZPhjOk','524lTIbBA','3483502KIQtfS','string'];a0_0x18bf=function(){return _0x4e83fd;};return a0_0x18bf();}customElements['define']('main-menu-selector',MainMenuSelector);
75
+ </div>`;}get[a0_0x37a58f(0x1e2)](){const _0x515bdf=a0_0x37a58f;return this[_0x515bdf(0x1c6)]['querySelector'](_0x515bdf(0x1ec));}async[a0_0x37a58f(0x1e8)](){const _0x57bdc5=a0_0x37a58f;let _0x13c88f=await MetaApi[_0x57bdc5(0x1dc)](_0x57bdc5(0x1bf),[{'name':'parentId','operator':'is_null','value':''}],[{'name':'rank'}],0x0,0x0,'\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');return this[_0x57bdc5(0x1ca)]=_0x13c88f[_0x57bdc5(0x1be)],this['total']=_0x13c88f[_0x57bdc5(0x1e4)],{'total':this[_0x57bdc5(0x1e4)],'records':this[_0x57bdc5(0x1ca)]};}async[a0_0x37a58f(0x1c7)](_0xfe2334){const _0x388438=a0_0x37a58f,_0x117612=this[_0x388438(0x1e2)][_0x388438(0x1ea)];if(_0x117612&&0x0!=_0x117612[_0x388438(0x1d0)])this[_0x388438(0x1cf)]&&((await this[_0x388438(0x1cf)](_0x117612[0x0]['id']))['success']&&history['back']());else UiUtil[_0x388438(0x1dd)]('title.info',_0x388438(0x1da),_0x388438(0x1c9),_0x388438(0x1db));}}customElements[a0_0x37a58f(0x1c5)](a0_0x37a58f(0x1b9),MainMenuSelector);
@@ -0,0 +1,18 @@
1
+ function a0_0x55a9(){const _0x362415=['integer','rows','2061440EIdGwW','5236CyKZPv','1336QAunkM','gristConfig','bind','sortable','9bustRQ','gridConfig','connectedCallback','gutter','originalId','styles','1409524EBpdLU','#ox-grist','dataRevisionNo','history-copy-list-popup','center','sorters','46404hMZaZi','forEach','editable','8127KuGYVi','shadowRoot','3046865plGrrR','string','GRID','type','1110vpwNCl','record','data_revision_action','gqlFunc','data_revision_no','searchByPagination','938784XjxqdK','grist','filter','open_param','Histories','columns'];a0_0x55a9=function(){return _0x362415;};return a0_0x55a9();}const a0_0x8e61a0=a0_0x4e17;(function(_0x50b74d,_0x302c7f){const _0xdc2d06=a0_0x4e17,_0x29a57c=_0x50b74d();while(!![]){try{const _0xa7c8cf=parseInt(_0xdc2d06(0x1bf))/0x1+parseInt(_0xdc2d06(0x1b9))/0x2+-parseInt(_0xdc2d06(0x1c8))/0x3*(-parseInt(_0xdc2d06(0x1ae))/0x4)+-parseInt(_0xdc2d06(0x1c4))/0x5+parseInt(_0xdc2d06(0x1ce))/0x6+parseInt(_0xdc2d06(0x1c2))/0x7*(-parseInt(_0xdc2d06(0x1af))/0x8)+parseInt(_0xdc2d06(0x1b3))/0x9*(-parseInt(_0xdc2d06(0x1ad))/0xa);if(_0xa7c8cf===_0x302c7f)break;else _0x29a57c['push'](_0x29a57c['shift']());}catch(_0x340943){_0x29a57c['push'](_0x29a57c['shift']());}}}(a0_0x55a9,0x5d65c));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';function a0_0x4e17(_0x2ede37,_0x49f1d3){const _0x55a9e4=a0_0x55a9();return a0_0x4e17=function(_0x4e1798,_0x3a4219){_0x4e1798=_0x4e1798-0x1ad;let _0x436677=_0x55a9e4[_0x4e1798];return _0x436677;},a0_0x4e17(_0x2ede37,_0x49f1d3);}import{UiUtil}from'../../utils/ui-util';import{MetaApi}from'../../utils/meta-api';export class HistoryCopyListPopup extends localize(i18next)(LitElement){static get[a0_0x8e61a0(0x1b8)](){return[ScrollbarStyles,CommonGristStyles,css`
2
+ :host {
3
+ display: flex;
4
+ flex-direction: column;
5
+ overflow-x: auto;
6
+ }
7
+ ox-grist {
8
+ overflow-y: auto;
9
+ flex: 1;
10
+ }
11
+ `];}static get['properties'](){return{'parent_id':String};}async['connectedCallback'](){const _0x3ed720=a0_0x8e61a0;let _0x36ad7c=this[_0x3ed720(0x1d1)][_0x3ed720(0x1b0)];this[_0x3ed720(0x1cb)]=this['open_param'][_0x3ed720(0x1cb)],delete _0x36ad7c['list'],delete _0x36ad7c['rows'],_0x36ad7c[_0x3ed720(0x1d5)]={'appendable':!0x1,'selectable':!0x1},_0x36ad7c[_0x3ed720(0x1be)]=[{'name':'dataRevisionNo','desc':!0x0}];let _0xe0bd6f=_0x36ad7c[_0x3ed720(0x1d3)]['filter'](_0x234b74=>_0x3ed720(0x1b6)!=_0x234b74[_0x3ed720(0x1c7)]);_0xe0bd6f[_0x3ed720(0x1c0)](_0x510e0f=>{const _0x1da4e6=_0x3ed720;_0x510e0f[_0x1da4e6(0x1d0)]&&delete _0x510e0f[_0x1da4e6(0x1d0)],_0x510e0f[_0x1da4e6(0x1c9)]||(_0x510e0f[_0x1da4e6(0x1c9)]={}),_0x510e0f[_0x1da4e6(0x1b2)]=!0x1,_0x510e0f[_0x1da4e6(0x1c9)][_0x1da4e6(0x1c1)]=!0x1;}),_0x36ad7c[_0x3ed720(0x1d3)]=[{'type':_0x3ed720(0x1b6),'gutterName':'dirty'},MetaApi['getGristColumnConfig2'](_0x3ed720(0x1d4),_0x3ed720(0x1bb),_0x3ed720(0x1cc),'center',!0x1,!0x0,0x5a),MetaApi['getGristColumnConfig2'](_0x3ed720(0x1c5),'dataRevisionAction',_0x3ed720(0x1ca),_0x3ed720(0x1bd),!0x1,!0x1,0x5a),..._0xe0bd6f],this[_0x3ed720(0x1b4)]=_0x36ad7c,super[_0x3ed720(0x1b5)]&&await super[_0x3ed720(0x1b5)]();}['render'](){const _0x16f8fe=a0_0x8e61a0;return html`
12
+ <ox-grist
13
+ id="ox-grist"
14
+ .config=${this['gridConfig']}
15
+ .mode=${_0x16f8fe(0x1c6)} auto-fetch
16
+ .fetchHandler=${this['fetchHandler'][_0x16f8fe(0x1b1)](this)}>
17
+ </ox-grist>
18
+ `;}get[a0_0x8e61a0(0x1cf)](){const _0x3a9a8a=a0_0x8e61a0;return this[_0x3a9a8a(0x1c3)]['querySelector'](_0x3a9a8a(0x1ba));}async['fetchHandler']({page:_0x57f4e5=0x0,limit:_0x398090=0x0,sortings:_0x4ad78f=[],filters:_0x127012=[]}){const _0x251cb7=a0_0x8e61a0;let _0x44288a=[{'name':_0x251cb7(0x1b7),'operator':'eq','value':this['parent_id']},..._0x127012],_0x4bf998=MetaApi['getSelectColumns'](this['gridConfig'][_0x251cb7(0x1d3)]);return await MetaApi[_0x251cb7(0x1cd)](this[_0x251cb7(0x1cb)]+_0x251cb7(0x1d2),_0x44288a,_0x4ad78f,_0x57f4e5,_0x398090,_0x4bf998);}}customElements['define'](a0_0x8e61a0(0x1bc),HistoryCopyListPopup);
@@ -0,0 +1,18 @@
1
+ const a0_0xf9b421=a0_0x3567;(function(_0x2b03e1,_0x1b90f2){const _0x2feb98=a0_0x3567,_0x1feb46=_0x2b03e1();while(!![]){try{const _0x2af062=parseInt(_0x2feb98(0x1de))/0x1+-parseInt(_0x2feb98(0x1f0))/0x2*(-parseInt(_0x2feb98(0x1d2))/0x3)+parseInt(_0x2feb98(0x1e9))/0x4*(-parseInt(_0x2feb98(0x1e1))/0x5)+-parseInt(_0x2feb98(0x1d0))/0x6+parseInt(_0x2feb98(0x1d4))/0x7*(-parseInt(_0x2feb98(0x1cc))/0x8)+-parseInt(_0x2feb98(0x1db))/0x9*(-parseInt(_0x2feb98(0x1d1))/0xa)+-parseInt(_0x2feb98(0x1cb))/0xb;if(_0x2af062===_0x1b90f2)break;else _0x1feb46['push'](_0x1feb46['shift']());}catch(_0x328054){_0x1feb46['push'](_0x1feb46['shift']());}}}(a0_0xcf2a,0xaeed2));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';function a0_0x3567(_0x286624,_0x1f1c5f){const _0xcf2aeb=a0_0xcf2a();return a0_0x3567=function(_0x35677f,_0x539c20){_0x35677f=_0x35677f-0x1cb;let _0x234bdf=_0xcf2aeb[_0x35677f];return _0x234bdf;},a0_0x3567(_0x286624,_0x1f1c5f);}export class HistoryJsonListPopup extends localize(i18next)(LitElement){static get[a0_0xf9b421(0x1da)](){return[ScrollbarStyles,CommonGristStyles,css`
2
+ :host {
3
+ display: flex;
4
+ flex-direction: column;
5
+ overflow-x: auto;
6
+ }
7
+ ox-grist {
8
+ overflow-y: auto;
9
+ flex: 1;
10
+ }
11
+ `];}static get['properties'](){return{'parent_id':String};}async[a0_0xf9b421(0x1f4)](){const _0x5c3233=a0_0xf9b421;let _0x215599=this[_0x5c3233(0x1d6)][_0x5c3233(0x1d3)];this[_0x5c3233(0x1dd)]=this[_0x5c3233(0x1d6)][_0x5c3233(0x1dd)],delete _0x215599['list'],delete _0x215599[_0x5c3233(0x1d7)],_0x215599['rows']={'appendable':!0x1,'selectable':!0x1},_0x215599[_0x5c3233(0x1d5)]=[{'name':_0x5c3233(0x1d9),'desc':!0x0}];let _0x14efa5=_0x215599['columns'][_0x5c3233(0x1f9)](_0xd43d3=>_0x5c3233(0x1d8)!=_0xd43d3[_0x5c3233(0x1f7)]);_0x14efa5['forEach'](_0x1bcc60=>{const _0x101955=_0x5c3233;_0x1bcc60[_0x101955(0x1f9)]&&delete _0x1bcc60[_0x101955(0x1f9)],_0x1bcc60['record']||(_0x1bcc60[_0x101955(0x1ee)]={}),_0x1bcc60[_0x101955(0x1cd)]=!0x1,_0x1bcc60[_0x101955(0x1ee)][_0x101955(0x1e5)]=!0x1;}),_0x215599['columns']=[{'type':'gutter','gutterName':_0x5c3233(0x1f1)},MetaApi[_0x5c3233(0x1ed)](_0x5c3233(0x1ef),_0x5c3233(0x1d9),'data_revision_no',_0x5c3233(0x1f2),!0x1,!0x0,0x5a),MetaApi[_0x5c3233(0x1ed)](_0x5c3233(0x1e6),'dataRevisionAction',_0x5c3233(0x1e3),_0x5c3233(0x1f2),!0x1,!0x1,0x5a),..._0x14efa5],this[_0x5c3233(0x1f6)]=_0x215599,super['connectedCallback']&&await super[_0x5c3233(0x1f4)]();}[a0_0xf9b421(0x1eb)](){const _0x1fdb1c=a0_0xf9b421;return html`
12
+ <ox-grist
13
+ id="ox-grist"
14
+ .config=${this[_0x1fdb1c(0x1f6)]}
15
+ .mode=${_0x1fdb1c(0x1e8)} auto-fetch
16
+ .fetchHandler=${this[_0x1fdb1c(0x1ec)]['bind'](this)}>
17
+ </ox-grist>
18
+ `;}get[a0_0xf9b421(0x1e0)](){const _0x3919ee=a0_0xf9b421;return this[_0x3919ee(0x1cf)][_0x3919ee(0x1ce)](_0x3919ee(0x1ea));}async[a0_0xf9b421(0x1ec)]({page:_0x5a93ca=0x0,limit:_0x4d4f74=0x0,sortings:_0x592833=[],filters:_0x438ad4=[]}){const _0x52e266=a0_0xf9b421;let _0x469a18=[{'name':_0x52e266(0x1dc),'operator':'eq','value':this[_0x52e266(0x1e4)]},..._0x438ad4],_0x35a2fb=await MetaApi[_0x52e266(0x1df)](this['gqlFunc']+'Histories',_0x469a18,_0x592833,_0x5a93ca,_0x4d4f74,_0x52e266(0x1f5));return _0x35a2fb[_0x52e266(0x1f8)]=_0x35a2fb[_0x52e266(0x1f8)]['map'](_0x2b937c=>({...JSON['parse'](_0x2b937c[_0x52e266(0x1e2)]),..._0x2b937c})),_0x35a2fb;}}function a0_0xcf2a(){const _0x431280=['9BqLigM','originalId','gqlFunc','238628LkLmEU','searchByPagination','grist','155VcqFER','historyJson','data_revision_action','parent_id','editable','string','history-json-list-popup','GRID','16588qiuWbw','#ox-grist','render','fetchHandler','getGristColumnConfig2','record','integer','1487894UjeDTI','dirty','center','define','connectedCallback','\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','gridConfig','type','records','filter','634656bFBbRU','352160BVMZqY','sortable','querySelector','shadowRoot','5571852EMpygb','12449980hMHlrh','3IAWkNA','gristConfig','63MZybya','sorters','open_param','rows','gutter','dataRevisionNo','styles'];a0_0xcf2a=function(){return _0x431280;};return a0_0xcf2a();}customElements[a0_0xf9b421(0x1f3)](a0_0xf9b421(0x1e7),HistoryJsonListPopup);
@@ -1,4 +1,4 @@
1
- var a0_0x49b637=a0_0x17ab;(function(_0x3e2bbc,_0x2bc18b){var _0x4b5384=a0_0x17ab,_0x770013=_0x3e2bbc();while(!![]){try{var _0xe7f177=parseInt(_0x4b5384(0x184))/0x1*(parseInt(_0x4b5384(0x17f))/0x2)+-parseInt(_0x4b5384(0x17a))/0x3+-parseInt(_0x4b5384(0x176))/0x4*(parseInt(_0x4b5384(0x172))/0x5)+-parseInt(_0x4b5384(0x174))/0x6*(-parseInt(_0x4b5384(0x181))/0x7)+parseInt(_0x4b5384(0x178))/0x8*(parseInt(_0x4b5384(0x17d))/0x9)+-parseInt(_0x4b5384(0x171))/0xa+parseInt(_0x4b5384(0x175))/0xb;if(_0xe7f177===_0x2bc18b)break;else _0x770013['push'](_0x770013['shift']());}catch(_0x4a916f){_0x770013['push'](_0x770013['shift']());}}}(a0_0x2c7f,0xd0426));import{css,html}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';function a0_0x2c7f(){var _0x289c08=['16800200cEHuYq','5rbfrOE','loading-page','66qkJyKV','10862984bZzKgr','1480804SJBhVe','tText','103192XJGYpn','context','3303837DyyXfq','customElements','render','954dGQbMT','loading\x20page','2welqzC','styles','523747WIyxwb','please\x20wait','define','826661hJpNBu'];a0_0x2c7f=function(){return _0x289c08;};return a0_0x2c7f();}import{PageView}from'@things-factory/shell';function a0_0x17ab(_0x4f3599,_0x38d297){var _0x2c7f28=a0_0x2c7f();return a0_0x17ab=function(_0x17abb4,_0x729050){_0x17abb4=_0x17abb4-0x171;var _0x9b99ad=_0x2c7f28[_0x17abb4];return _0x9b99ad;},a0_0x17ab(_0x4f3599,_0x38d297);}import{TermsUtil}from'../utils/terms-util';class LoadingPage extends localize(i18next)(PageView){static get[a0_0x49b637(0x180)](){return[css`
1
+ var a0_0x30058f=a0_0x463f;(function(_0x29cb04,_0x58723e){var _0x854a26=a0_0x463f,_0x559cfe=_0x29cb04();while(!![]){try{var _0x431b39=-parseInt(_0x854a26(0xc7))/0x1+parseInt(_0x854a26(0xbd))/0x2*(-parseInt(_0x854a26(0xb6))/0x3)+parseInt(_0x854a26(0xbe))/0x4+-parseInt(_0x854a26(0xbf))/0x5+parseInt(_0x854a26(0xc2))/0x6*(parseInt(_0x854a26(0xc3))/0x7)+-parseInt(_0x854a26(0xc5))/0x8*(-parseInt(_0x854a26(0xb9))/0x9)+-parseInt(_0x854a26(0xbc))/0xa*(parseInt(_0x854a26(0xba))/0xb);if(_0x431b39===_0x58723e)break;else _0x559cfe['push'](_0x559cfe['shift']());}catch(_0x11e104){_0x559cfe['push'](_0x559cfe['shift']());}}}(a0_0x2712,0x22ff0));import{css,html}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';function a0_0x2712(){var _0x3a62a5=['tText','93432TGBgWw','3zlVErr','render','context','3474Bdvlyb','1133npAMmW','styles','16670Lqxwcv','1630AlRUoa','1068152kaAMoa','629760lvKtmn','loading-page','customElements','165498qwUihA','28CUbZWw','loading\x20page','3272qppLPN'];a0_0x2712=function(){return _0x3a62a5;};return a0_0x2712();}import{PageView}from'@things-factory/shell';import{TermsUtil}from'../utils/terms-util';function a0_0x463f(_0x1574e0,_0x3c0cb0){var _0x271207=a0_0x2712();return a0_0x463f=function(_0x463f43,_0x15bfa1){_0x463f43=_0x463f43-0xb6;var _0x5e926c=_0x271207[_0x463f43];return _0x5e926c;},a0_0x463f(_0x1574e0,_0x3c0cb0);}class LoadingPage extends localize(i18next)(PageView){static get[a0_0x30058f(0xbb)](){return[css`
2
2
  :host {
3
3
  display: block;
4
4
  background-color: var(--main-section-background-color);
@@ -41,11 +41,11 @@ var a0_0x49b637=a0_0x17ab;(function(_0x3e2bbc,_0x2bc18b){var _0x4b5384=a0_0x17ab
41
41
  display: none;
42
42
  }
43
43
  }
44
- `];}get[a0_0x49b637(0x179)](){return{'title':'Loading\x20...','actions':[]};}[a0_0x49b637(0x17c)](){var _0x5629a2=a0_0x49b637;return html`
45
- <h2>${TermsUtil[_0x5629a2(0x177)](_0x5629a2(0x17e))}</h2>
44
+ `];}get[a0_0x30058f(0xb8)](){return{'title':'Loading\x20...','actions':[]};}[a0_0x30058f(0xb7)](){var _0x404ead=a0_0x30058f;return html`
45
+ <h2>${TermsUtil[_0x404ead(0xc6)](_0x404ead(0xc4))}</h2>
46
46
  <p page-description>
47
- ${TermsUtil['tText'](_0x5629a2(0x182))}
47
+ ${TermsUtil[_0x404ead(0xc6)]('please\x20wait')}
48
48
  </p>
49
49
 
50
50
  <img src="/assets/images/loading-page.png" />
51
- `;}}window[a0_0x49b637(0x17b)][a0_0x49b637(0x183)](a0_0x49b637(0x173),LoadingPage);
51
+ `;}}window[a0_0x30058f(0xc1)]['define'](a0_0x30058f(0xc0),LoadingPage);
@@ -1,4 +1,4 @@
1
- const a0_0x2ce54a=a0_0x381e;(function(_0x5dc51c,_0xff61c4){const _0x3a0c35=a0_0x381e,_0x1ca716=_0x5dc51c();while(!![]){try{const _0x1cf338=parseInt(_0x3a0c35(0x114))/0x1+parseInt(_0x3a0c35(0x118))/0x2+parseInt(_0x3a0c35(0x116))/0x3*(-parseInt(_0x3a0c35(0xf8))/0x4)+-parseInt(_0x3a0c35(0xf2))/0x5+parseInt(_0x3a0c35(0x103))/0x6+-parseInt(_0x3a0c35(0x10d))/0x7+parseInt(_0x3a0c35(0x109))/0x8;if(_0x1cf338===_0xff61c4)break;else _0x1ca716['push'](_0x1ca716['shift']());}catch(_0x3858aa){_0x1ca716['push'](_0x1ca716['shift']());}}}(a0_0x3824,0x9ad28));import a0_0x1e119b from'graphql-tag';import{store}from'@operato/shell';function a0_0x3824(){const _0x41df29=['notify','confirm','querySelector','6401276CGNACX','error.invalid\x20license\x20key','dispatchEvent','tButton','bind','text.there_is_nothing_to_save','properties','859570JvwDBG','firstUpdated','1809957mwHmmJ','error','640836wqYFWM','ox-input-code','1437365TJdJzi','styles','back','title','info','text.nothing_changed','8zaWluA','getState','orgValue','updateMultipleMenu','metaUI','define','template','codeEditor','showAlertPopup','codeValueNew','menu','4949160EqmHhP','save','render','value','query','recordId','8303064MLdXsm'];a0_0x3824=function(){return _0x41df29;};return a0_0x3824();}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';function a0_0x381e(_0x236d24,_0x3e2f11){const _0x382445=a0_0x3824();return a0_0x381e=function(_0x381e40,_0x45177c){_0x381e40=_0x381e40-0xf1;let _0xa53e0e=_0x382445[_0x381e40];return _0xa53e0e;},a0_0x381e(_0x236d24,_0x3e2f11);}import{TermsUtil}from'./../../utils/terms-util';import{MetaApi}from'../../utils/meta-api';class DynamicMenuTemplate extends localize(i18next)(LitElement){static get[a0_0x2ce54a(0x113)](){return{'title':String,'recordId':String};}static get[a0_0x2ce54a(0xf3)](){return[ScrollbarStyles,css`
1
+ const a0_0x3b0f87=a0_0x479d;(function(_0x3956bf,_0x4f31a4){const _0x598136=a0_0x479d,_0x322a12=_0x3956bf();while(!![]){try{const _0x1d8115=parseInt(_0x598136(0x1a3))/0x1*(parseInt(_0x598136(0x1a4))/0x2)+parseInt(_0x598136(0x190))/0x3+-parseInt(_0x598136(0x17c))/0x4*(parseInt(_0x598136(0x196))/0x5)+parseInt(_0x598136(0x17e))/0x6*(-parseInt(_0x598136(0x1a0))/0x7)+parseInt(_0x598136(0x18e))/0x8*(-parseInt(_0x598136(0x19e))/0x9)+-parseInt(_0x598136(0x17b))/0xa*(-parseInt(_0x598136(0x18b))/0xb)+parseInt(_0x598136(0x189))/0xc;if(_0x1d8115===_0x4f31a4)break;else _0x322a12['push'](_0x322a12['shift']());}catch(_0x379861){_0x322a12['push'](_0x322a12['shift']());}}}(a0_0x4779,0xaea63));import a0_0x4f22d1 from'graphql-tag';import{store}from'@operato/shell';import{client}from'@operato/graphql';import{css,html,LitElement}from'lit-element';function a0_0x479d(_0x447247,_0x1da280){const _0x4779c2=a0_0x4779();return a0_0x479d=function(_0x479df7,_0x4dddf0){_0x479df7=_0x479df7-0x17a;let _0x226fd8=_0x4779c2[_0x479df7];return _0x226fd8;},a0_0x479d(_0x447247,_0x1da280);}function a0_0x4779(){const _0x463564=['back','codeEditor','codeValueNew','95qAtoEM','dynamic-menu-template','studioPermission','save','orgValue','updateMultiple','confirm','tButton','230193iweqOA','value','1028363oOKxtf','findOne','updateMultipleMenu','4881RMUJPa','2ydYamJ','text.there_is_nothing_to_save','template','200570AKwwsv','51452wFlLMw','query','6Ncmjbe','getState','notify','error','showAlertPopup','menu','recordId','firstUpdated','render','text.nothing_changed','shadowRoot','12888000sDMNIQ','bind','11XKbmtd','styles','title','336XFtDJK','dispatchEvent','3245895DvlVcU','ox-input-code','metaUI'];a0_0x4779=function(){return _0x463564;};return a0_0x4779();}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_0x3b0f87(0x18c)](){return[ScrollbarStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -26,13 +26,13 @@ const a0_0x2ce54a=a0_0x381e;(function(_0x5dc51c,_0xff61c4){const _0x3a0c35=a0_0x
26
26
  height: var(--button-container-height);
27
27
  text-align: right;
28
28
  padding-right: 12px;
29
- }`];}async[a0_0x2ce54a(0x115)](){const _0x514eb6=a0_0x2ce54a;super[_0x514eb6(0x115)]&&await super[_0x514eb6(0x115)]();let _0x3819bd=await MetaApi['findOne'](_0x514eb6(0x102),this[_0x514eb6(0x108)],'template'),_0x1f4052=_0x3819bd&&_0x3819bd[_0x514eb6(0xfe)]||'';this[_0x514eb6(0xff)][_0x514eb6(0x106)]=_0x1f4052,this[_0x514eb6(0xff)][_0x514eb6(0xfa)]=this[_0x514eb6(0xff)]['value'];}[a0_0x2ce54a(0x105)](){const _0x51d08e=a0_0x2ce54a;return html`
30
- <legend>${this[_0x51d08e(0xf5)]}</legend>
31
- <ox-input-code mode="javascript" value=${this[_0x51d08e(0x101)]} tab-size="2" tab-as-space="true"></ox-input-code>
29
+ }`];}async[a0_0x3b0f87(0x185)](){const _0x2316c8=a0_0x3b0f87;super[_0x2316c8(0x185)]&&await super[_0x2316c8(0x185)]();let _0x4a9f6e=await MetaApi[_0x2316c8(0x1a1)](_0x2316c8(0x183),this[_0x2316c8(0x184)],_0x2316c8(0x17a)),_0x3c0b82=_0x4a9f6e&&_0x4a9f6e['template']||'';this[_0x2316c8(0x194)][_0x2316c8(0x19f)]=_0x3c0b82,this[_0x2316c8(0x194)][_0x2316c8(0x19a)]=this[_0x2316c8(0x194)]['value'];}[a0_0x3b0f87(0x186)](){const _0xe5c3b7=a0_0x3b0f87;return html`
30
+ <legend>${this[_0xe5c3b7(0x18d)]}</legend>
31
+ <ox-input-code mode="javascript" value=${this[_0xe5c3b7(0x195)]} 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[_0x51d08e(0x110)](_0x51d08e(0x104))}" @click=${this[_0x51d08e(0x104)][_0x51d08e(0x111)](this)}></mwc-button> -->
34
- </div>`;}get[a0_0x2ce54a(0xff)](){const _0x10a2d1=a0_0x2ce54a;return this['shadowRoot'][_0x10a2d1(0x10c)](_0x10a2d1(0xf1));}async[a0_0x2ce54a(0x104)](){const _0x2dfcc0=a0_0x2ce54a;if(this[_0x2dfcc0(0xff)][_0x2dfcc0(0xfa)]==this['codeEditor'][_0x2dfcc0(0x106)])return void MetaApi[_0x2dfcc0(0x100)](_0x2dfcc0(0xf7),_0x2dfcc0(0x112),_0x2dfcc0(0xf6),_0x2dfcc0(0x10b));if(0x0==store[_0x2dfcc0(0xf9)]()[_0x2dfcc0(0xfc)]['studioPermission'])return void document[_0x2dfcc0(0x10f)](new CustomEvent(_0x2dfcc0(0x10a),{'detail':{'level':_0x2dfcc0(0x117),'message':i18next['t'](_0x2dfcc0(0x10e))}}));if((await client[_0x2dfcc0(0x107)]({'query':a0_0x1e119b`
33
+ <!-- <mwc-button raised label="${TermsUtil[_0xe5c3b7(0x19d)](_0xe5c3b7(0x199))}" @click=${this[_0xe5c3b7(0x199)][_0xe5c3b7(0x18a)](this)}></mwc-button> -->
34
+ </div>`;}get[a0_0x3b0f87(0x194)](){const _0x54e162=a0_0x3b0f87;return this[_0x54e162(0x188)]['querySelector'](_0x54e162(0x191));}async[a0_0x3b0f87(0x199)](){const _0x2f39c8=a0_0x3b0f87;if(this[_0x2f39c8(0x194)][_0x2f39c8(0x19a)]==this[_0x2f39c8(0x194)][_0x2f39c8(0x19f)])return void MetaApi[_0x2f39c8(0x182)](_0x2f39c8(0x187),_0x2f39c8(0x1a5),'info',_0x2f39c8(0x19c));if(0x0==store[_0x2f39c8(0x17f)]()[_0x2f39c8(0x192)][_0x2f39c8(0x198)])return void document[_0x2f39c8(0x18f)](new CustomEvent(_0x2f39c8(0x180),{'detail':{'level':_0x2f39c8(0x181),'message':i18next['t']('error.invalid\x20license\x20key')}}));if((await client[_0x2f39c8(0x17d)]({'query':a0_0x4f22d1`
35
35
  query ($id: String!) {
36
36
  metaUITemplateIsOverLimit(id: $id)
37
37
  }
38
- `,'variables':{'id':this[_0x2dfcc0(0x108)]}}))['errors'])return;let _0x1adac5=this[_0x2dfcc0(0xff)][_0x2dfcc0(0x106)],_0x1b5be3=[{'id':this[_0x2dfcc0(0x108)],'template':_0x1adac5,'cuFlag':'M'}];await MetaApi['updateMultiple'](_0x2dfcc0(0xfb),_0x1b5be3)&&history[_0x2dfcc0(0xf4)]();}}customElements[a0_0x2ce54a(0xfd)]('dynamic-menu-template',DynamicMenuTemplate);
38
+ `,'variables':{'id':this[_0x2f39c8(0x184)]}}))['errors'])return;let _0x187151=this['codeEditor'][_0x2f39c8(0x19f)],_0x2469c6=[{'id':this[_0x2f39c8(0x184)],'template':_0x187151,'cuFlag':'M'}];await MetaApi[_0x2f39c8(0x19b)](_0x2f39c8(0x1a2),_0x2469c6)&&history[_0x2f39c8(0x193)]();}}customElements['define'](a0_0x3b0f87(0x197),DynamicMenuTemplate);