@things-factory/meta-ui 6.1.24 → 6.1.25

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 (88) hide show
  1. package/client/actions/main.js +4 -4
  2. package/client/bootstrap.js +3 -1
  3. package/client/component/filter/filter-form-meta-code-select.js +9 -9
  4. package/client/component/filter/filter-form-meta-object-select.js +10 -10
  5. package/client/component/filter/filter-grist-meta-code-select.js +10 -10
  6. package/client/component/filter/filter-grist-meta-object-select.js +9 -9
  7. package/client/component/grist/editor/grist-editor-code-input.js +6 -6
  8. package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
  9. package/client/component/grist/editor/grist-editor-meta-object-selector.js +7 -7
  10. package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
  11. package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
  12. package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
  13. package/client/component/popup/code-input-editor-popup.js +10 -10
  14. package/client/component/popup/meta-object-selector-popup.js +10 -10
  15. package/client/mixin/meta-base-mixin.js +1 -1
  16. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  17. package/client/mixin/meta-button-mixin.js +1 -1
  18. package/client/mixin/meta-form-mixin.js +1 -1
  19. package/client/mixin/meta-grist-tab-mixin.js +1 -1
  20. package/client/mixin/meta-main-tab-mixin.js +1 -1
  21. package/client/mixin/meta-master-detail-mixin.js +1 -1
  22. package/client/mixin/meta-service-mixin.js +1 -1
  23. package/client/mixin/meta-tab-detail-mixin.js +1 -1
  24. package/client/mixin/meta-tab-mixin.js +1 -1
  25. package/client/pages/activity/meta-activity-list-page.js +5 -5
  26. package/client/pages/activity/meta-activity-viewer-element.js +3 -3
  27. package/client/pages/activity/meta-activity-writer-element.js +3 -3
  28. package/client/pages/activity/meta-activiy-mixin.js +3 -3
  29. package/client/pages/entity/config-entity.js +29 -29
  30. package/client/pages/entity/main-menu-selector.js +8 -8
  31. package/client/pages/history/history-copy-list-popup.js +6 -6
  32. package/client/pages/history/history-json-list-popup.js +6 -6
  33. package/client/pages/loading-page.js +5 -5
  34. package/client/pages/menu/dynamic-menu-template.js +7 -7
  35. package/client/pages/menu/dynamic-menu.js +15 -15
  36. package/client/pages/meta-form-element.js +1 -1
  37. package/client/pages/meta-grist-element.js +1 -1
  38. package/client/pages/meta-grist-page.js +1 -1
  39. package/client/pages/meta-grist-tab-element.js +1 -1
  40. package/client/pages/meta-grist-tab-page.js +1 -1
  41. package/client/pages/meta-main-tab-element.js +1 -1
  42. package/client/pages/meta-main-tab-page.js +1 -1
  43. package/client/pages/meta-master-detail-element.js +1 -1
  44. package/client/pages/meta-master-detail-page.js +1 -1
  45. package/client/pages/meta-tab-detail-element.js +1 -1
  46. package/client/pages/meta-tab-detail-page.js +1 -1
  47. package/client/pages/meta-tab-element.js +1 -1
  48. package/client/pages/personalize/personal-column-selector.js +11 -11
  49. package/client/pages/terms/config-terminology.js +6 -6
  50. package/client/pages/work-code/work-code-detail-popup.js +1 -1
  51. package/client/pages/work-code/work-code-page.js +1 -1
  52. package/client/reducers/main.js +1 -1
  53. package/client/utils/meta-api.js +1 -1
  54. package/client/utils/meta-crypto.js +1 -1
  55. package/client/utils/meta-ui-util.js +103 -103
  56. package/client/utils/service-util.js +13 -13
  57. package/client/utils/terms-util.js +2 -2
  58. package/client/utils/ui-util.js +1 -1
  59. package/client/utils/value-util.js +1 -1
  60. package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
  61. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  62. package/client/viewparts/dynamic-menu-part.js +12 -12
  63. package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
  64. package/client/viewparts/dynamic-menu-portrait.js +9 -9
  65. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  66. package/package.json +2 -2
  67. package/server/activity/CommonActivity.js +2 -2
  68. package/server/constants/error-code.js +1 -1
  69. package/server/errors/license-error.js +1 -1
  70. package/server/routes.js +1 -1
  71. package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
  72. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  73. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  74. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  75. package/server/service/grid-personalize/grid-personalize.js +1 -1
  76. package/server/service/meta-activity/meta-activity-mutation.js +1 -1
  77. package/server/service/meta-activity/meta-activity-query.js +1 -1
  78. package/server/service/meta-activity/meta-activity-type.js +1 -1
  79. package/server/service/meta-secret/meta-resolver.js +1 -1
  80. package/server/service/set-translations/set-translation-resolver.js +1 -1
  81. package/server/service/work-code/work-code-mutation.js +1 -1
  82. package/server/service/work-code/work-code-query.js +1 -1
  83. package/server/service/work-code/work-code-type.js +1 -1
  84. package/server/service/work-code/work-code.js +1 -1
  85. package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
  86. package/server/service/work-code-detail/work-code-detail-query.js +1 -1
  87. package/server/service/work-code-detail/work-code-detail-type.js +1 -1
  88. package/server/service/work-code-detail/work-code-detail.js +1 -1
@@ -1,26 +1,26 @@
1
- const a0_0x18164b=a0_0x319f;(function(_0x2bcf60,_0x502b8b){const _0xcebe47=a0_0x319f,_0x17e460=_0x2bcf60();while(!![]){try{const _0x2c6cec=parseInt(_0xcebe47(0x12a))/0x1*(-parseInt(_0xcebe47(0x195))/0x2)+parseInt(_0xcebe47(0xdf))/0x3*(-parseInt(_0xcebe47(0x10e))/0x4)+-parseInt(_0xcebe47(0xdb))/0x5+parseInt(_0xcebe47(0x176))/0x6*(-parseInt(_0xcebe47(0x17b))/0x7)+parseInt(_0xcebe47(0xfe))/0x8+-parseInt(_0xcebe47(0x117))/0x9+-parseInt(_0xcebe47(0x122))/0xa*(-parseInt(_0xcebe47(0xef))/0xb);if(_0x2c6cec===_0x502b8b)break;else _0x17e460['push'](_0x17e460['shift']());}catch(_0x2c379f){_0x17e460['push'](_0x17e460['shift']());}}}(a0_0x33d0,0x84a90));import{html}from'lit-element';import a0_0x1ccdbf 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';function a0_0x33d0(){const _0x3101df=['register-terms','ox-filters-form-base','main-menu-selector','sequence','refName','searchEntityColumns','fetchEntityColumns','216501eDXGGj','filter','click','styles','onload','getSelectedIdList','col_type','entities','created_at','fetch','colType','name','BUNDLE','toInteger','change','left','record','importXlsxFile','gridEditor','masterGrist','ENTITY_COLUMN_TYPES','colSize','updater_id','saveMasters','importEntityColumns','getQueryFilters','\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','refType','tText','patchesForUpdateMultiple','entityId','GRID','masterConfig','nullable','text.nothing_selected','file','push','createCustomElement','dispatch','ENTITY_DEL_STRATEGY','tButton','findIndex','button.create-service','cancel','bundle','integer','isMobileEnv','medium','type','getGristSelectableConfig','defVal','xlsx','updateMultipleEntity','#detail-grist','FILTER_OPERATORS','searchOper','uniq_rank','deleteMasters','gridWidth','fetchEntities','config-entity','setAttribute','detailConfig','deleteListByGristSelected','detailGrist','creator','id_rule','LIST','entityColumns','getGristCodeSelectorColumnConfig','value','center','description','__selected__','import','shadowRoot','971502aNFsVa','delStrategy','selectCallback','rank','size','28ckGZfL','grid_width','updater','toolCreateService','readAsArrayBuffer','addEventListener','tTitle','updated_at','searchFields','timestamp','appendChild','info','entity_manage_hist','imex','delete','openMainMenuSelectorPopup','create-menu','selectedEntity','properties','deleteEntityColumns','searchRank','columns','getGristColumnConfig2','success\x20to\x20process','uniqRank','large','8CatVMS','back','showToast','createService','records','isNotEmpty','button.create-menu','453735VWzjbh','\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','createMenuTo','18303yWfrGS','importConfig','boolean','createElement','key','render','getGristColumnConfig','body','currentTarget','ENTITY_HIST_TYPE','toolCreateMenu','grid_editor','table_name','bind','right','tLabel','25015265KwqLFb','tableName','saveEntityColumns','createUnregisteredTerms','save','left-right','exportEntityColumns','dataProp','creator_id','reduce','ENTITY_GRIST_COLUMN_TYPES','data','hidden','searchByPagination','entity-column','5248696pSKMhG','text.are_you_sure','ref_name','gridRank','export','search_rank','checkEntityColumns','string','showAlertPopup','accept','question','length','updateMultipleEntityColumn','updateMultiple','gutter','importHandler','8CWRGOb','split','getGristGuttersConfig','define','create-service','i_like','button','search_oper','entity_del_strategy','6931845kWTIJB','entity','searchForm','term','message','map','COLUMN_REF_TYPE','_config','querySelector','query','createMenu','10yDBUDi'];a0_0x33d0=function(){return _0x3101df;};return a0_0x33d0();}import{ValueUtil}from'../../utils/value-util';function a0_0x319f(_0x2718d7,_0xbe2e35){const _0x33d0a5=a0_0x33d0();return a0_0x319f=function(_0x319f3a,_0x18fdbb){_0x319f3a=_0x319f3a-0xd8;let _0x42d9d1=_0x33d0a5[_0x319f3a];return _0x42d9d1;},a0_0x319f(_0x2718d7,_0xbe2e35);}import{MetaApi}from'../../utils/meta-api';import'./main-menu-selector';class ConfigEntity extends localize(i18next)(PageView){static get[a0_0x18164b(0x18d)](){return{'searchFields':Array,'masterConfig':Object,'detailConfig':Object,'importConfig':Object,'entityId':String,'selectedEntity':Object};}static get[a0_0x18164b(0x12d)](){const _0x26d3f3=a0_0x18164b;return MetaApi['getBasicMasterDetailGristStyle'](_0x26d3f3(0xf4));}get['context'](){const _0x43e0dc=a0_0x18164b;return{'title':TermsUtil[_0x43e0dc(0x181)](_0x43e0dc(0x118))};}get[a0_0x18164b(0x119)](){const _0x1e0c32=a0_0x18164b;return this[_0x1e0c32(0x175)][_0x1e0c32(0x11f)](_0x1e0c32(0x124));}get[a0_0x18164b(0x13d)](){const _0x26957b=a0_0x18164b;return this['shadowRoot'][_0x26957b(0x11f)]('#master-grist');}get[a0_0x18164b(0x16a)](){const _0x21c2a2=a0_0x18164b;return this[_0x21c2a2(0x175)][_0x21c2a2(0x11f)](_0x21c2a2(0x15f));}async['fetchEntities']({page:_0x2161b8,limit:_0x594542,sorters:_0x10e0d4=[{'name':a0_0x18164b(0x156)},{'name':a0_0x18164b(0x135)}]}){const _0x476db1=a0_0x18164b;this['entityId']=null,this[_0x476db1(0x18c)]=null,this[_0x476db1(0x16a)]&&this[_0x476db1(0x16a)][_0x476db1(0xfa)]&&(this[_0x476db1(0x16a)][_0x476db1(0xfa)]={});let _0x1db1bd=[...await this['searchForm'][_0x476db1(0x143)]()];return await MetaApi[_0x476db1(0xfc)](_0x476db1(0x131),_0x1db1bd,_0x10e0d4,_0x2161b8,_0x594542,_0x476db1(0xdc));}async[a0_0x18164b(0x129)]({page:_0x134ab5,limit:_0x513d56,sorters:_0x26f899=[{'name':'rank'}]}){const _0x4616c4=a0_0x18164b;if(this[_0x4616c4(0x148)]){let _0x558730=[{'name':_0x4616c4(0x148),'operator':'eq','value':this['entityId']}],_0x5210c3=_0x4616c4(0x144);return await MetaApi[_0x4616c4(0xfc)](_0x4616c4(0x16e),_0x558730,_0x26f899,_0x134ab5,_0x513d56,_0x5210c3);}}async[a0_0x18164b(0x128)](_0x568030){const _0x477393=a0_0x18164b;this[_0x477393(0x148)]=_0x568030['id'],this['selectedEntity']=_0x568030,await this[_0x477393(0x16a)][_0x477393(0x133)]();}async[a0_0x18164b(0x18a)](){const _0x4d08c5=a0_0x18164b;let _0x5c437e=MetaApi[_0x4d08c5(0x14f)](_0x4d08c5(0x125),_0x4d08c5(0x125));_0x5c437e[_0x4d08c5(0x178)]=this[_0x4d08c5(0xde)]['bind'](this),await MetaApi['openPopupByElement'](TermsUtil[_0x4d08c5(0x152)](_0x4d08c5(0x18b)),_0x4d08c5(0x159),_0x5c437e,!0x0);}async[a0_0x18164b(0x141)](){const _0x27c618=a0_0x18164b;let _0x524ae4=MetaApi[_0x27c618(0x147)](this[_0x27c618(0x13d)]);ValueUtil['isNotEmpty'](_0x524ae4)&&(_0x524ae4['forEach'](_0x239b7c=>{const _0x1a4238=_0x27c618;_0x239b7c['tableName']&&0x0!=_0x239b7c['tableName'][_0x1a4238(0x109)]||(_0x239b7c[_0x1a4238(0xf0)]=_0x239b7c[_0x1a4238(0x135)]);}),await MetaApi[_0x27c618(0x10b)](_0x27c618(0x15e),_0x524ae4)&&this[_0x27c618(0x13d)][_0x27c618(0x133)]());}async[a0_0x18164b(0x163)](){const _0x301e0a=a0_0x18164b;await MetaApi[_0x301e0a(0x169)](this[_0x301e0a(0x13d)],'deleteEntities');}async[a0_0x18164b(0xf1)](){const _0x400170=a0_0x18164b;if(this[_0x400170(0x148)]){let _0x4a3301=MetaApi[_0x400170(0x147)](this[_0x400170(0x16a)]);if(ValueUtil[_0x400170(0xd9)](_0x4a3301)){let _0xfb5c6e=0x0;_0x4a3301['forEach'](_0xf40e9b=>{const _0x20e636=_0x400170;_0xfb5c6e+=0xa,_0xf40e9b[_0x20e636(0x118)]={'id':this[_0x20e636(0x148)]},_0xf40e9b[_0x20e636(0x14b)]=void 0x0!==_0xf40e9b[_0x20e636(0x14b)]&&null!=_0xf40e9b[_0x20e636(0x14b)]&&_0xf40e9b[_0x20e636(0x14b)],_0xf40e9b[_0x20e636(0x179)]=_0xf40e9b[_0x20e636(0x179)]&&0x0!=_0xf40e9b['rank']?_0xf40e9b[_0x20e636(0x179)]:_0xfb5c6e,_0xf40e9b['gridRank']=_0xf40e9b[_0x20e636(0x101)]?_0xf40e9b[_0x20e636(0x101)]:0x0,_0xf40e9b['term']=_0xf40e9b['term']?_0xf40e9b[_0x20e636(0x11a)]:_0xf40e9b[_0x20e636(0x135)],_0xf40e9b[_0x20e636(0x134)]=_0xf40e9b[_0x20e636(0x134)]?_0xf40e9b[_0x20e636(0x134)]:_0x20e636(0x105),_0xf40e9b[_0x20e636(0x13f)]=_0x20e636(0x105)!=_0xf40e9b[_0x20e636(0x134)]||_0xf40e9b[_0x20e636(0x13f)]?_0xf40e9b['colSize']:0x32;}),await MetaApi[_0x400170(0x10b)](_0x400170(0x10a),_0x4a3301)&&this[_0x400170(0x16a)][_0x400170(0x133)]();}}}async[a0_0x18164b(0x18e)](){const _0x3f223d=a0_0x18164b;await MetaApi[_0x3f223d(0x169)](this[_0x3f223d(0x16a)],'deleteEntityColumns');}async['createService'](){const _0x92e216=a0_0x18164b;if((await MetaApi[_0x92e216(0x106)](_0x92e216(0x154),_0x92e216(0xff),_0x92e216(0x108),_0x92e216(0xdd),'cancel'))[_0x92e216(0x170)]){let _0x5a9f09=MetaApi['getSelectedIdList'](this[_0x92e216(0x13d)],!0x0);if(_0x5a9f09){let _0x59ff82=_0x5a9f09[0x0];const _0x47fdd4=await client['query']({'query':a0_0x1ccdbf`
1
+ const a0_0x3c3e4c=a0_0x5d1d;(function(_0x1ed797,_0x5c636e){const _0x1e7550=a0_0x5d1d,_0x3e9016=_0x1ed797();while(!![]){try{const _0x3f6004=parseInt(_0x1e7550(0x1af))/0x1*(parseInt(_0x1e7550(0x1e1))/0x2)+parseInt(_0x1e7550(0x23b))/0x3+-parseInt(_0x1e7550(0x22b))/0x4*(parseInt(_0x1e7550(0x23e))/0x5)+parseInt(_0x1e7550(0x1f7))/0x6*(parseInt(_0x1e7550(0x249))/0x7)+parseInt(_0x1e7550(0x254))/0x8+-parseInt(_0x1e7550(0x25b))/0x9*(-parseInt(_0x1e7550(0x1ef))/0xa)+parseInt(_0x1e7550(0x1f2))/0xb*(-parseInt(_0x1e7550(0x231))/0xc);if(_0x3f6004===_0x5c636e)break;else _0x3e9016['push'](_0x3e9016['shift']());}catch(_0x3fb2ea){_0x3e9016['push'](_0x3e9016['shift']());}}}(a0_0x4c77,0x4ff98));import{html}from'lit-element';function a0_0x5d1d(_0x1e969f,_0x29856d){const _0x4c7780=a0_0x4c77();return a0_0x5d1d=function(_0x5d1d76,_0x27fd8b){_0x5d1d76=_0x5d1d76-0x1a2;let _0x5d294e=_0x4c7780[_0x5d1d76];return _0x5d294e;},a0_0x5d1d(_0x1e969f,_0x29856d);}import a0_0x410f63 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_0x4c77(){const _0x2c08fd=['searchFields','context','toBoolean','entities','checkEntityColumns','table_name','openMainMenuSelectorPopup','getGristColumnConfig2','cancel','back','delete','large','message','define','record','fetchEntities','type','createMenuTo','showAlertPopup','createMenu','fetchEntityColumns','searchForm','appendChild','domain_id','getSelectedIdList','ox-filters-form-base','readAsArrayBuffer','getGristSelectableConfig','check-columns','grid_width','target','gridEditor','entity_manage_hist','22JxFKWa','importXlsxFile','searchEntityColumns','entity-column','currentTarget','success\x20to\x20register\x20terms','__selected__','undefined','creator','center','BUNDLE','COLUMN_REF_TYPE','question','input','50DLdYWK','getGristSearchCodeColumnConfig','pageInitialized','7601eTXABp','uniqRank','delStrategy','entityColumns','ENTITY_GRIST_COLUMN_TYPES','21270AWLNKN','_config','colSize','render','pop','import','ENTITY_COLUMN_TYPES','openPopupByElement','gridRank','button.create-menu','xlsx','creator_id','boolean','getGristColumnConfig','file','data','toolCreateMenu','findIndex','isMobileEnv','reduce','masterConfig','detailGrist','searchOper','querySelector','createCustomElement','error','query','tButton','info','importHandler','exportEntityColumns','getGristSearchColumnConfig','domain','selectedEntity','isNotEmpty','bind','properties','deleteListByGristSelected','button','left-right','save','searchByPagination','hidden','deleteMasters','export','updater_id','created_at','uniq_rank','right','entity','filter','nullable','164XTAtgT','label.','updateMultipleEntity','#detail-grist','createService','updated_at','20268cHUbsu','tableName','value','sequence','deleteEntities','refName','string','ref_name','split','updateMultipleEntityColumn','1246419PoDRSV','body','patchesForUpdateMultiple','64265NoQwOP','gutter','getGristGuttersConfig','\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','size','dispatch','confirm','GRIST_COLUMN_TYPES','fetch','grid_rank','colType','1246uoCQta','getGristCodeSelectorColumnConfig','entity_del_strategy','styles','tTitle','records','left','search_oper','grid_editor','integer','refType','4269992QsQueN','deleteEntityColumns','search_rank','bundle','shadowRoot','success\x20to\x20process','detailConfig','246069uVztJA','col_type','create-menu','edit','imex','gridWidth','config-entity','importEntityColumns','masterGrist','entityId','create-service','selectCallback','header','push','columns','saveMasters','FILTER_OPERATORS','toInteger','onload','length','key','showToast','searchRank','forEach','GRID','LIST','setAttribute','27701KhWbpC','tLabel','i_like','saveEntityColumns','description','term','register-terms','tText','main-menu-selector','ENTITY_HIST_TYPE','updateMultiple','createUnregisteredTerms','text.are_you_sure','rank','map','text.nothing_selected','name'];a0_0x4c77=function(){return _0x2c08fd;};return a0_0x4c77();}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';import{MetaApi}from'../../utils/meta-api';import'./main-menu-selector';class ConfigEntity extends localize(i18next)(PageView){static get[a0_0x3c3e4c(0x21b)](){return{'searchFields':Array,'masterConfig':Object,'detailConfig':Object,'importConfig':Object,'entityId':String,'selectedEntity':Object};}static get[a0_0x3c3e4c(0x24c)](){const _0x3b7e30=a0_0x3c3e4c;return MetaApi['getBasicMasterDetailGristStyle'](_0x3b7e30(0x21e));}get[a0_0x3c3e4c(0x1c1)](){const _0x45d6c2=a0_0x3c3e4c;return{'title':TermsUtil[_0x45d6c2(0x24d)](_0x45d6c2(0x228))};}get[a0_0x3c3e4c(0x1d5)](){const _0x59eea2=a0_0x3c3e4c;return this[_0x59eea2(0x258)][_0x59eea2(0x20e)](_0x59eea2(0x1d9));}get[a0_0x3c3e4c(0x263)](){const _0x24f453=a0_0x3c3e4c;return this[_0x24f453(0x258)][_0x24f453(0x20e)]('#master-grist');}get[a0_0x3c3e4c(0x20c)](){const _0x25b4b1=a0_0x3c3e4c;return this[_0x25b4b1(0x258)][_0x25b4b1(0x20e)](_0x25b4b1(0x22e));}async[a0_0x3c3e4c(0x1cf)]({page:_0x589df3,limit:_0x4842f5,sorters:_0x3acbd3=[{'name':a0_0x3c3e4c(0x257)},{'name':'name'}]}){const _0x49705b=a0_0x3c3e4c;this[_0x49705b(0x264)]=null,this[_0x49705b(0x218)]=null,this[_0x49705b(0x20c)]&&this[_0x49705b(0x20c)][_0x49705b(0x206)]&&(this[_0x49705b(0x20c)]['data']={});let _0x53f15a=[...await this['searchForm']['getQueryFilters']()];return await MetaApi['searchByPagination'](_0x49705b(0x1c3),_0x53f15a,_0x3acbd3,_0x589df3,_0x4842f5,_0x49705b(0x241));}async[a0_0x3c3e4c(0x1d4)]({page:_0x272c98,limit:_0x229254,sorters:_0x4edc75=[{'name':'rank'}]}){const _0xfcc25d=a0_0x3c3e4c;if(this[_0xfcc25d(0x264)]){let _0x33809b=[{'name':'entityId','operator':'eq','value':this[_0xfcc25d(0x264)]}],_0x1e0ecb='\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';return await MetaApi[_0xfcc25d(0x220)](_0xfcc25d(0x1f5),_0x33809b,_0x4edc75,_0x272c98,_0x229254,_0x1e0ecb);}}async['searchEntityColumns'](_0x399c0c){const _0x58569b=a0_0x3c3e4c;this[_0x58569b(0x264)]=_0x399c0c['id'],this[_0x58569b(0x218)]=_0x399c0c,await this[_0x58569b(0x20c)]['fetch']();}async[a0_0x3c3e4c(0x1c6)](){const _0x46b3d2=a0_0x3c3e4c;let _0x171616=MetaApi[_0x46b3d2(0x20f)](_0x46b3d2(0x1b7),_0x46b3d2(0x1b7));_0x171616[_0x46b3d2(0x266)]=this[_0x46b3d2(0x1d1)][_0x46b3d2(0x21a)](this),await MetaApi[_0x46b3d2(0x1fe)](TermsUtil[_0x46b3d2(0x212)](_0x46b3d2(0x25d)),'medium',_0x171616,!0x0);}async[a0_0x3c3e4c(0x1a3)](){const _0x523179=a0_0x3c3e4c;let _0xf926a5=MetaApi[_0x523179(0x23d)](this['masterGrist']);ValueUtil[_0x523179(0x219)](_0xf926a5)&&(_0xf926a5[_0x523179(0x1ab)](_0x3ec907=>{const _0x2182fa=_0x523179;_0x3ec907[_0x2182fa(0x232)]&&0x0!=_0x3ec907[_0x2182fa(0x232)][_0x2182fa(0x1a7)]||(_0x3ec907[_0x2182fa(0x232)]=_0x3ec907['name']);}),await MetaApi[_0x523179(0x1b9)](_0x523179(0x22d),_0xf926a5)&&this[_0x523179(0x263)][_0x523179(0x246)]());}async[a0_0x3c3e4c(0x222)](){const _0x3f6fcf=a0_0x3c3e4c;await MetaApi[_0x3f6fcf(0x21c)](this[_0x3f6fcf(0x263)],_0x3f6fcf(0x235));}async[a0_0x3c3e4c(0x1b2)](){const _0xb033cd=a0_0x3c3e4c;if(this[_0xb033cd(0x264)]){let _0x2f5214=MetaApi[_0xb033cd(0x23d)](this[_0xb033cd(0x20c)]);if(ValueUtil[_0xb033cd(0x219)](_0x2f5214)){let _0x15abea=0x0;_0x2f5214[_0xb033cd(0x1ab)](_0x332578=>{const _0x1f2b91=_0xb033cd;_0x15abea+=0xa,_0x332578[_0x1f2b91(0x228)]={'id':this['entityId']},_0x332578[_0x1f2b91(0x22a)]=void 0x0!==_0x332578[_0x1f2b91(0x22a)]&&null!=_0x332578[_0x1f2b91(0x22a)]&&_0x332578[_0x1f2b91(0x22a)],_0x332578[_0x1f2b91(0x1bc)]=_0x332578['rank']&&0x0!=_0x332578[_0x1f2b91(0x1bc)]?_0x332578['rank']:_0x15abea,_0x332578[_0x1f2b91(0x1ff)]=_0x332578[_0x1f2b91(0x1ff)]?_0x332578[_0x1f2b91(0x1ff)]:0x0,_0x332578['term']=_0x332578[_0x1f2b91(0x1b4)]?_0x332578[_0x1f2b91(0x1b4)]:_0x332578[_0x1f2b91(0x1bf)],_0x332578[_0x1f2b91(0x248)]=_0x332578[_0x1f2b91(0x248)]?_0x332578[_0x1f2b91(0x248)]:'string',_0x332578[_0x1f2b91(0x1f9)]=_0x1f2b91(0x237)!=_0x332578[_0x1f2b91(0x248)]||_0x332578[_0x1f2b91(0x1f9)]?_0x332578['colSize']:0x32;}),await MetaApi['updateMultiple']('updateMultipleEntityColumn',_0x2f5214)&&this[_0xb033cd(0x20c)][_0xb033cd(0x246)]();}}}async[a0_0x3c3e4c(0x255)](){const _0x2ff5c1=a0_0x3c3e4c;await MetaApi['deleteListByGristSelected'](this[_0x2ff5c1(0x20c)],_0x2ff5c1(0x255));}async[a0_0x3c3e4c(0x22f)](){const _0x1c4ca2=a0_0x3c3e4c;if((await MetaApi[_0x1c4ca2(0x1d2)]('button.create-service',_0x1c4ca2(0x1bb),'question',_0x1c4ca2(0x244),_0x1c4ca2(0x1c8)))[_0x1c4ca2(0x233)]){let _0x36cc9f=MetaApi[_0x1c4ca2(0x1d8)](this['masterGrist'],!0x0);if(_0x36cc9f){let _0x324de4=_0x36cc9f[0x0];const _0x426f04=await client[_0x1c4ca2(0x211)]({'query':a0_0x410f63`
2
2
  query ($id: String!) {
3
3
  toolCreateService(id: $id)
4
4
  }
5
- `,'variables':{'id':_0x59ff82},'context':gqlContext()});_0x47fdd4&&_0x47fdd4[_0x92e216(0xfa)]&&_0x47fdd4[_0x92e216(0xfa)][_0x92e216(0x17e)]&&MetaApi[_0x92e216(0x197)]('info',TermsUtil[_0x92e216(0x146)](_0x92e216(0x192)));}}}async[a0_0x18164b(0x121)](){const _0x400fa7=a0_0x18164b;if(this[_0x400fa7(0x148)])(await MetaApi[_0x400fa7(0x106)](_0x400fa7(0xda),_0x400fa7(0xff),'question',_0x400fa7(0xdd),_0x400fa7(0x155)))['value']&&MetaApi[_0x400fa7(0x12f)](this['masterGrist'],!0x0)&&await this['openMainMenuSelectorPopup']();else MetaApi[_0x400fa7(0x106)](_0x400fa7(0x14c),_0x400fa7(0x14c),_0x400fa7(0x186),'confirm');}async['createMenuTo'](_0x1e57fe){const _0x2a4116=a0_0x18164b,_0xc7d4cf=await client[_0x2a4116(0x120)]({'query':a0_0x1ccdbf`
5
+ `,'variables':{'id':_0x324de4},'context':gqlContext()});_0x426f04&&_0x426f04[_0x1c4ca2(0x206)]&&_0x426f04[_0x1c4ca2(0x206)]['toolCreateService']&&MetaApi[_0x1c4ca2(0x1a9)](_0x1c4ca2(0x213),TermsUtil[_0x1c4ca2(0x1b6)]('success\x20to\x20process'));}}}async[a0_0x3c3e4c(0x1d3)](){const _0x10e9a1=a0_0x3c3e4c;if(this[_0x10e9a1(0x264)])(await MetaApi[_0x10e9a1(0x1d2)](_0x10e9a1(0x200),'text.are_you_sure',_0x10e9a1(0x1ed),'confirm','cancel'))[_0x10e9a1(0x233)]&&MetaApi['getSelectedIdList'](this[_0x10e9a1(0x263)],!0x0)&&await this[_0x10e9a1(0x1c6)]();else MetaApi['showAlertPopup']('text.nothing_selected',_0x10e9a1(0x1be),'info',_0x10e9a1(0x244));}async[a0_0x3c3e4c(0x1d1)](_0x2d6f30){const _0x49c469=a0_0x3c3e4c,_0x245ca5=await client[_0x49c469(0x211)]({'query':a0_0x410f63`
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[_0x2a4116(0x148)],'parent_menu_id':_0x1e57fe},'context':gqlContext()});return _0xc7d4cf&&_0xc7d4cf['data']&&_0xc7d4cf[_0x2a4116(0xfa)][_0x2a4116(0xe9)]?(MetaApi[_0x2a4116(0x197)](_0x2a4116(0x186),TermsUtil['tText']('success\x20to\x20process')),{'success':!0x0}):{'success':!0x1};}async[a0_0x18164b(0xf2)](){const _0x42ba38=a0_0x18164b;try{if(this[_0x42ba38(0x148)]){const _0x1380a7=this[_0x42ba38(0x16a)]['data'][_0x42ba38(0xd8)]['filter'](_0x3743d9=>TermsUtil[_0x42ba38(0xee)](_0x3743d9[_0x42ba38(0x11a)])===_0x3743d9[_0x42ba38(0x11a)])[_0x42ba38(0x11c)](_0x59f15d=>'label.'+_0x59f15d['term']),_0x401353=this[_0x42ba38(0x18c)]['bundle'];_0x1380a7[_0x42ba38(0x109)]&&((await client[_0x42ba38(0x120)]({'query':a0_0x1ccdbf`
9
+ `,'variables':{'id':this[_0x49c469(0x264)],'parent_menu_id':_0x2d6f30},'context':gqlContext()});return _0x245ca5&&_0x245ca5[_0x49c469(0x206)]&&_0x245ca5[_0x49c469(0x206)][_0x49c469(0x207)]?(MetaApi[_0x49c469(0x1a9)](_0x49c469(0x213),TermsUtil['tText'](_0x49c469(0x259))),{'success':!0x0}):{'success':!0x1};}async['createUnregisteredTerms'](){const _0x58be5e=a0_0x3c3e4c;try{if(this[_0x58be5e(0x264)]){const _0x189f7a=this[_0x58be5e(0x20c)][_0x58be5e(0x206)]['records']['filter'](_0x13094e=>TermsUtil[_0x58be5e(0x1b0)](_0x13094e[_0x58be5e(0x1b4)])===_0x13094e[_0x58be5e(0x1b4)])[_0x58be5e(0x1bd)](_0x132830=>_0x58be5e(0x22c)+_0x132830[_0x58be5e(0x1b4)]),_0x618872=this['selectedEntity']['bundle'];_0x189f7a['length']&&((await client[_0x58be5e(0x211)]({'query':a0_0x410f63`
10
10
  query setTranslations($bundle: String!, $terms: [String!]!) {
11
11
  setTranslations(bundle: $bundle, terms: $terms)
12
12
  }
13
- `,'variables':{'bundle':_0x401353,'terms':_0x1380a7}}))['errors']||MetaApi[_0x42ba38(0x197)](_0x42ba38(0x186),TermsUtil[_0x42ba38(0x146)]('success\x20to\x20register\x20terms')));}}catch(_0x19b67e){MetaApi[_0x42ba38(0x197)]('error',_0x19b67e[_0x42ba38(0x11b)]);}}async[a0_0x18164b(0xf5)](){const _0x547650=a0_0x18164b;let _0x48e2eb=this[_0x547650(0x16a)][_0x547650(0x11e)][_0x547650(0x190)][_0x547650(0x12b)](_0x3deaf1=>_0x547650(0x10c)!==_0x3deaf1[_0x547650(0x15a)]&&void 0x0!==_0x3deaf1[_0x547650(0x13a)]&&void 0x0!==_0x3deaf1[_0x547650(0x188)])[_0x547650(0x11c)](_0x55c68a=>_0x55c68a[_0x547650(0x188)]),_0x112528=this[_0x547650(0x16a)][_0x547650(0xfa)][_0x547650(0xd8)][_0x547650(0x11c)](_0x3f0c07=>({'id':_0x3f0c07['id'],...this[_0x547650(0x16a)][_0x547650(0x11e)][_0x547650(0x190)][_0x547650(0x12b)](_0x1107f1=>'gutter'!==_0x1107f1[_0x547650(0x15a)]&&void 0x0!==_0x1107f1[_0x547650(0x13a)]&&void 0x0!==_0x1107f1[_0x547650(0x188)])[_0x547650(0xf8)]((_0x1251d8,_0x146927)=>(_0x1251d8[_0x146927['imex'][_0x547650(0xe3)]]=_0x146927[_0x547650(0x188)][_0x547650(0xe3)]['split']('.')[_0x547650(0xf8)]((_0x48d322,_0x7dc4ad)=>_0x48d322&&'undefined'!==_0x48d322[_0x7dc4ad]?_0x48d322[_0x7dc4ad]:void 0x0,_0x3f0c07),_0x1251d8),{})}));store['dispatch']({'type':EXPORT,'exportable':{'extension':_0x547650(0x15d),'name':TermsUtil[_0x547650(0x181)](_0x547650(0xfd))+'-'+this[_0x547650(0x18c)][_0x547650(0x135)],'data':{'header':_0x48e2eb,'data':_0x112528}}});}async[a0_0x18164b(0x13b)](){const _0x28bd85=a0_0x18164b;let _0x53ef9c=this;const _0x5d86cf=document[_0x28bd85(0xe2)]('input');_0x5d86cf['setAttribute'](_0x28bd85(0x15a),_0x28bd85(0x14d)),_0x5d86cf[_0x28bd85(0x167)](_0x28bd85(0x107),['xlsx']),_0x5d86cf[_0x28bd85(0xfb)]=!0x0,_0x5d86cf[_0x28bd85(0x180)](_0x28bd85(0x138),_0x43029d=>{const _0x2ba340=_0x28bd85,_0x5dc0dc=_0x43029d[_0x2ba340(0xe7)]['files'][0x0],_0x4b7310=_0x5dc0dc['name'][_0x2ba340(0x10f)]('.')['pop'](),_0x4a9f7a=new FileReader();_0x4a9f7a[_0x2ba340(0x12e)]=function(_0x87b4f6){const _0x38ef13=_0x2ba340,_0x593372=_0x87b4f6['target']['result'];store[_0x38ef13(0x150)]({'type':IMPORT,'importable':{'extension':_0x4b7310,'handler':_0x53ef9c['importEntityColumns'][_0x38ef13(0xec)](_0x53ef9c)},'data':_0x593372});},_0x4a9f7a[_0x2ba340(0x17f)](_0x5dc0dc);}),document[_0x28bd85(0xe6)][_0x28bd85(0x185)](_0x5d86cf),_0x5d86cf[_0x28bd85(0x12c)]();}[a0_0x18164b(0x142)](_0x5de404){const _0x3b2005=a0_0x18164b;let _0xd50586=_0x5de404['header']?_0x5de404[_0x3b2005(0xfa)]:_0x5de404;if(_0xd50586&&_0xd50586[_0x3b2005(0x109)]>0x0){_0xd50586['forEach'](_0x572aa7=>{const _0x5ed8c7=_0x3b2005;_0x572aa7[_0x5ed8c7(0x173)]=!0x0;});let _0x4452b3=this['importConfig'][_0x3b2005(0x190)][_0x3b2005(0x12b)](_0x1622b2=>!!_0x1622b2[_0x3b2005(0x188)]);setTimeout(()=>{const _0x258f78=_0x3b2005;MetaApi['openPopupByElement'](TermsUtil[_0x258f78(0x181)](_0x258f78(0x174)),_0x258f78(0x194),html`
13
+ `,'variables':{'bundle':_0x618872,'terms':_0x189f7a}}))['errors']||MetaApi[_0x58be5e(0x1a9)]('info',TermsUtil[_0x58be5e(0x1b6)](_0x58be5e(0x1e6))));}}catch(_0xfe0cca){MetaApi[_0x58be5e(0x1a9)](_0x58be5e(0x210),_0xfe0cca[_0x58be5e(0x1cc)]);}}async[a0_0x3c3e4c(0x215)](){const _0x341519=a0_0x3c3e4c;let _0x298071=this[_0x341519(0x20c)][_0x341519(0x1f8)]['columns'][_0x341519(0x229)](_0x4f1765=>_0x341519(0x23f)!==_0x4f1765[_0x341519(0x1d0)]&&void 0x0!==_0x4f1765[_0x341519(0x1ce)]&&void 0x0!==_0x4f1765[_0x341519(0x25f)])[_0x341519(0x1bd)](_0x2e63cc=>_0x2e63cc[_0x341519(0x25f)]),_0x5bbd7f=this[_0x341519(0x20c)][_0x341519(0x206)][_0x341519(0x24e)][_0x341519(0x1bd)](_0x53fcf1=>({'id':_0x53fcf1['id'],...this['detailGrist'][_0x341519(0x1f8)][_0x341519(0x1a2)][_0x341519(0x229)](_0x354caa=>_0x341519(0x23f)!==_0x354caa['type']&&void 0x0!==_0x354caa['record']&&void 0x0!==_0x354caa[_0x341519(0x25f)])[_0x341519(0x20a)]((_0x58d483,_0x284cce)=>(_0x58d483[_0x284cce['imex'][_0x341519(0x1a8)]]=_0x284cce[_0x341519(0x25f)][_0x341519(0x1a8)][_0x341519(0x239)]('.')[_0x341519(0x20a)]((_0xb17d9e,_0x38a7a4)=>_0xb17d9e&&_0x341519(0x1e8)!==_0xb17d9e[_0x38a7a4]?_0xb17d9e[_0x38a7a4]:void 0x0,_0x53fcf1),_0x58d483),{})}));store[_0x341519(0x243)]({'type':EXPORT,'exportable':{'extension':_0x341519(0x201),'name':TermsUtil[_0x341519(0x24d)](_0x341519(0x1e4))+'-'+this['selectedEntity'][_0x341519(0x1bf)],'data':{'header':_0x298071,'data':_0x5bbd7f}}});}async['importXlsxFile'](){const _0x3a92d8=a0_0x3c3e4c;let _0x2290bb=this;const _0x64c959=document['createElement'](_0x3a92d8(0x1ee));_0x64c959[_0x3a92d8(0x1ae)](_0x3a92d8(0x1d0),_0x3a92d8(0x205)),_0x64c959[_0x3a92d8(0x1ae)]('accept',[_0x3a92d8(0x201)]),_0x64c959[_0x3a92d8(0x221)]=!0x0,_0x64c959['addEventListener']('change',_0x2b6174=>{const _0x52d27f=_0x3a92d8,_0x1ba07d=_0x2b6174[_0x52d27f(0x1e5)]['files'][0x0],_0x468ed4=_0x1ba07d['name']['split']('.')[_0x52d27f(0x1fb)](),_0x431d8f=new FileReader();_0x431d8f[_0x52d27f(0x1a6)]=function(_0x2b8914){const _0xc4e900=_0x52d27f,_0x3cc93a=_0x2b8914[_0xc4e900(0x1de)]['result'];store['dispatch']({'type':IMPORT,'importable':{'extension':_0x468ed4,'handler':_0x2290bb[_0xc4e900(0x262)][_0xc4e900(0x21a)](_0x2290bb)},'data':_0x3cc93a});},_0x431d8f[_0x52d27f(0x1da)](_0x1ba07d);}),document[_0x3a92d8(0x23c)][_0x3a92d8(0x1d6)](_0x64c959),_0x64c959['click']();}[a0_0x3c3e4c(0x262)](_0x1b4467){const _0x30c798=a0_0x3c3e4c;let _0xf2aa85=_0x1b4467[_0x30c798(0x267)]?_0x1b4467[_0x30c798(0x206)]:_0x1b4467;if(_0xf2aa85&&_0xf2aa85[_0x30c798(0x1a7)]>0x0){_0xf2aa85[_0x30c798(0x1ab)](_0x3f3687=>{const _0xea7c52=_0x30c798;_0x3f3687[_0xea7c52(0x1e7)]=!0x0;});let _0x51f55c=this['importConfig'][_0x30c798(0x1a2)][_0x30c798(0x229)](_0x55b905=>!!_0x55b905[_0x30c798(0x25f)]);setTimeout(()=>{const _0xf58041=_0x30c798;MetaApi['openPopupByElement'](TermsUtil[_0xf58041(0x24d)](_0xf58041(0x1fc)),_0xf58041(0x1cb),html`
14
14
  <import-pop-up
15
- .records=${_0xd50586}
16
- .config=${{'rows':_0xd50586,'columns':[{'type':'gutter','gutterName':_0x258f78(0x126)},..._0x4452b3]}}
17
- .importHandler="${this[_0x258f78(0x10d)]['bind'](this)}">
18
- </import-pop-up>`);},0x1f4);}}async[a0_0x18164b(0x10d)](_0x37d2d1){const _0x540a63=a0_0x18164b;if(_0x37d2d1&&0x0!=_0x37d2d1[_0x540a63(0x109)]){let _0xff98c4=0x0;_0x37d2d1['forEach'](_0x2a5978=>{const _0x1a50b2=_0x540a63;_0xff98c4+=0xa,_0x2a5978[_0x1a50b2(0x13f)]=ValueUtil[_0x1a50b2(0xd9)](_0x2a5978['colSize'])?ValueUtil[_0x1a50b2(0x137)](_0x2a5978[_0x1a50b2(0x13f)]):_0x1a50b2(0x105)==_0x2a5978[_0x1a50b2(0x134)]?0x32:0x0,_0x2a5978[_0x1a50b2(0x179)]=ValueUtil[_0x1a50b2(0x137)](_0x2a5978['rank'],0x0),_0x2a5978[_0x1a50b2(0x193)]=ValueUtil['toInteger'](_0x2a5978[_0x1a50b2(0x193)],0x0),_0x2a5978[_0x1a50b2(0x18f)]=ValueUtil[_0x1a50b2(0x137)](_0x2a5978[_0x1a50b2(0x18f)],0x0),_0x2a5978[_0x1a50b2(0x101)]=ValueUtil[_0x1a50b2(0x137)](_0x2a5978['gridRank'],0x0),_0x2a5978['gridWidth']=ValueUtil[_0x1a50b2(0x137)](_0x2a5978[_0x1a50b2(0x164)],0x0),_0x2a5978[_0x1a50b2(0x118)]={'id':this['entityId']},_0x2a5978[_0x1a50b2(0x14b)]=ValueUtil['toBoolean'](_0x2a5978[_0x1a50b2(0x14b)]),_0x2a5978[_0x1a50b2(0x11a)]=_0x2a5978[_0x1a50b2(0x11a)]?_0x2a5978[_0x1a50b2(0x11a)]:_0x2a5978['name'],_0x2a5978[_0x1a50b2(0x134)]=_0x2a5978[_0x1a50b2(0x134)]?_0x2a5978[_0x1a50b2(0x134)]:_0x1a50b2(0x105),delete _0x2a5978['string'];}),await MetaApi[_0x540a63(0x10b)]('updateMultipleEntityColumn',_0x37d2d1)&&(this[_0x540a63(0x16a)][_0x540a63(0x133)](),history['back']());}else MetaApi['showToast'](_0x540a63(0x186),'text.no_data'),history[_0x540a63(0x196)]();}async[a0_0x18164b(0x104)](){const _0x1a53f3=a0_0x18164b;if(this[_0x1a53f3(0x148)]){let _0x46bfed=this[_0x1a53f3(0x16a)][_0x1a53f3(0xfa)][_0x1a53f3(0xd8)],_0x1afbed=_0x46bfed&&_0x46bfed[_0x1a53f3(0x109)]?0xa*_0x46bfed[_0x1a53f3(0x109)]:0x0,_0x4ce1d9=!0x1,_0x4aed60=!0x1,_0x43618b=!0x1,_0x4fd726=!0x1,_0x1c677c=!0x1,_0x41747a=!0x1;_0x46bfed&&_0x46bfed['length']>0x0&&(_0x4ce1d9=_0x46bfed[_0x1a53f3(0x153)](_0x4dcea7=>'id'==_0x4dcea7[_0x1a53f3(0x135)])>=0x0,_0x4aed60=_0x46bfed[_0x1a53f3(0x153)](_0x45df94=>'domain_id'==_0x45df94[_0x1a53f3(0x135)])>=0x0,_0x43618b=_0x46bfed[_0x1a53f3(0x153)](_0x9aab5=>_0x1a53f3(0x132)==_0x9aab5['name'])>=0x0,_0x4fd726=_0x46bfed[_0x1a53f3(0x153)](_0x409982=>_0x1a53f3(0x182)==_0x409982[_0x1a53f3(0x135)])>=0x0,_0x1c677c=_0x46bfed[_0x1a53f3(0x153)](_0x47de0e=>_0x1a53f3(0xf7)==_0x47de0e['name'])>=0x0,_0x41747a=_0x46bfed['findIndex'](_0x417ad7=>_0x1a53f3(0x140)==_0x417ad7[_0x1a53f3(0x135)])>=0x0);let _0x44030c=[];_0x4ce1d9||(_0x1afbed+=0xa,_0x44030c[_0x1a53f3(0x14e)]({'entity':{'id':this[_0x1a53f3(0x148)]},'name':'id','colType':_0x1a53f3(0x105),'colSize':0x0,'nullable':!0x1,'term':'id','rank':_0x1afbed,'cuFlag':'+'})),_0x4aed60||(_0x1afbed+=0xa,_0x44030c[_0x1a53f3(0x14e)]({'entity':{'id':this['entityId']},'name':'domain_id','colType':_0x1a53f3(0x105),'colSize':0x0,'nullable':!0x1,'term':'domain','rank':_0x1afbed,'cuFlag':'+'})),_0x43618b||(_0x1afbed+=0xa,_0x44030c[_0x1a53f3(0x14e)]({'entity':{'id':this[_0x1a53f3(0x148)]},'name':'created_at','colType':'timestamp','colSize':0x0,'nullable':!0x0,'term':_0x1a53f3(0x132),'rank':_0x1afbed,'gridRank':0x0,'gridWidth':0x8c,'cuFlag':'+'})),_0x4fd726||(_0x1afbed+=0xa,_0x44030c[_0x1a53f3(0x14e)]({'entity':{'id':this[_0x1a53f3(0x148)]},'name':_0x1a53f3(0x182),'colType':_0x1a53f3(0x184),'colSize':0x0,'nullable':!0x0,'term':'updated_at','rank':_0x1afbed,'gridRank':_0x1afbed,'gridWidth':0x8c,'cuFlag':'+'})),_0x1c677c||(_0x1afbed+=0xa,_0x44030c['push']({'entity':{'id':this['entityId']},'name':_0x1a53f3(0xf7),'colType':_0x1a53f3(0x105),'colSize':0x28,'nullable':!0x0,'term':_0x1a53f3(0x16b),'rank':_0x1afbed,'gridRank':0x0,'gridWidth':0x64,'cuFlag':'+'})),_0x41747a||(_0x1afbed+=0xa,_0x44030c['push']({'entity':{'id':this['entityId']},'name':_0x1a53f3(0x140),'colType':_0x1a53f3(0x105),'colSize':0x28,'nullable':!0x0,'term':_0x1a53f3(0x17d),'rank':_0x1afbed,'gridRank':0x0,'gridWidth':0x64,'cuFlag':'+'})),await MetaApi[_0x1a53f3(0x10b)]('updateMultipleEntityColumn',_0x44030c)&&this[_0x1a53f3(0x16a)][_0x1a53f3(0x133)]();}}async['pageInitialized'](){const _0x1c4ab9=a0_0x18164b;this[_0x1c4ab9(0x183)]=[MetaApi['getGristSearchColumnConfig'](_0x1c4ab9(0x135),_0x1c4ab9(0x105),_0x1c4ab9(0x135),'i_like'),MetaApi['getGristSearchColumnConfig'](_0x1c4ab9(0xeb),_0x1c4ab9(0x105),_0x1c4ab9(0xeb),_0x1c4ab9(0x113)),await MetaApi['getGristSearchCodeColumnConfig']('bundle','select','bundle','eq',_0x1c4ab9(0x136))],this[_0x1c4ab9(0x14a)]={'rows':MetaApi[_0x1c4ab9(0x15b)](!0x1),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x0,!0x1),{'type':_0x1c4ab9(0x10c),'gutterName':_0x1c4ab9(0x114),'icon':'edit','handlers':{'click':(_0x37ed47,_0xdca89b,_0x2d802d,_0xbf3a72,_0x1704e5)=>{const _0x36f019=_0x1c4ab9;_0xbf3a72['id']&&this[_0x36f019(0x128)](_0xbf3a72);}}},await MetaApi[_0x1c4ab9(0x16f)](_0x1c4ab9(0x156),'bundle',_0x1c4ab9(0x139),!0x1,0x5a,!0x0,'BUNDLE'),MetaApi[_0x1c4ab9(0xe5)](_0x1c4ab9(0x105),'name',_0x1c4ab9(0x139),!0x0,!0x1,0x91),MetaApi[_0x1c4ab9(0x191)](_0x1c4ab9(0x105),'tableName',_0x1c4ab9(0xeb),_0x1c4ab9(0x139),!0x0,!0x1,0xa0),await MetaApi[_0x1c4ab9(0x16f)](_0x1c4ab9(0xf6),_0x1c4ab9(0x187),_0x1c4ab9(0x139),!0x1,0x5a,!0x0,_0x1c4ab9(0xe8)),await MetaApi[_0x1c4ab9(0x16f)](_0x1c4ab9(0x177),_0x1c4ab9(0x116),_0x1c4ab9(0x139),!0x1,0x5a,!0x0,_0x1c4ab9(0x151)),MetaApi[_0x1c4ab9(0xe5)]('string',_0x1c4ab9(0x172),_0x1c4ab9(0x139),!0x0,!0x1,0xfa)]},this[_0x1c4ab9(0x168)]={'rows':MetaApi[_0x1c4ab9(0x15b)](!0x0),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x1c4ab9(0x110)](!0x0,!0x0),MetaApi[_0x1c4ab9(0xe5)](_0x1c4ab9(0x157),_0x1c4ab9(0x179),_0x1c4ab9(0x171),!0x0,!0x1,0x32),MetaApi[_0x1c4ab9(0xe5)](_0x1c4ab9(0x105),'name',_0x1c4ab9(0x139),!0x0,!0x1,0x87),{'type':_0x1c4ab9(0x105),'name':_0x1c4ab9(0x11a),'header':TermsUtil[_0x1c4ab9(0xee)](_0x1c4ab9(0x11a)),'sortable':!0x1,'width':0x87,'record':{'editable':!0x0,'align':_0x1c4ab9(0x139),'renderer':(_0x5e03dc,_0x4a0804,_0x1a37a5,_0x53f786,_0x4c567a)=>_0x1a37a5[_0x1c4ab9(0x11a)]?TermsUtil[_0x1c4ab9(0xee)](_0x1a37a5['term'],null,_0x1a37a5[_0x1c4ab9(0x11a)]):''}},await MetaApi['getGristCodeSelectorColumnConfig'](_0x1c4ab9(0x134),_0x1c4ab9(0x130),'left',!0x1,0x4b,!0x0,_0x1c4ab9(0x13e)),MetaApi[_0x1c4ab9(0x191)](_0x1c4ab9(0x157),'colSize',_0x1c4ab9(0x17a),_0x1c4ab9(0xed),!0x0,!0x1,0x3c),MetaApi[_0x1c4ab9(0x191)](_0x1c4ab9(0xe1),_0x1c4ab9(0x14b),_0x1c4ab9(0x14b),_0x1c4ab9(0x171),!0x0,!0x1,0x46),MetaApi[_0x1c4ab9(0x191)](_0x1c4ab9(0x157),_0x1c4ab9(0x193),'uniq_rank',_0x1c4ab9(0xed),!0x0,!0x1,0x46),MetaApi[_0x1c4ab9(0x191)]('string',_0x1c4ab9(0x172),'description','left',!0x0,!0x1,0x87),MetaApi['getGristColumnConfig2'](_0x1c4ab9(0x157),_0x1c4ab9(0x18f),_0x1c4ab9(0x103),_0x1c4ab9(0xed),!0x0,!0x1,0x46),await MetaApi['getGristCodeSelectorColumnConfig'](_0x1c4ab9(0x161),'search_oper','left',!0x1,0x55,!0x0,_0x1c4ab9(0x160)),MetaApi[_0x1c4ab9(0x191)]('integer','gridRank','grid_rank',_0x1c4ab9(0xed),!0x0,!0x1,0x50),MetaApi['getGristColumnConfig2'](_0x1c4ab9(0x157),_0x1c4ab9(0x164),_0x1c4ab9(0x17c),_0x1c4ab9(0xed),!0x0,!0x1,0x4b),await MetaApi[_0x1c4ab9(0x16f)](_0x1c4ab9(0x13c),_0x1c4ab9(0xea),'left',!0x1,0x5a,!0x0,_0x1c4ab9(0xf9)),await MetaApi[_0x1c4ab9(0x16f)]('refType','ref_type',_0x1c4ab9(0x139),!0x1,0x55,!0x0,_0x1c4ab9(0x11d)),MetaApi[_0x1c4ab9(0x191)](_0x1c4ab9(0x105),'refName','ref_name',_0x1c4ab9(0x139),!0x0,!0x1,0x64),MetaApi[_0x1c4ab9(0x191)](_0x1c4ab9(0x105),_0x1c4ab9(0x15c),_0x1c4ab9(0x16c),_0x1c4ab9(0x139),!0x0,!0x1,0x64)]},this[_0x1c4ab9(0xe0)]={'rows':MetaApi[_0x1c4ab9(0x15b)](!0x0),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x0,!0x0),MetaApi[_0x1c4ab9(0xe5)](_0x1c4ab9(0x157),_0x1c4ab9(0x179),_0x1c4ab9(0x171),!0x0,!0x1,0x32),MetaApi['getGristColumnConfig'](_0x1c4ab9(0x105),_0x1c4ab9(0x135),_0x1c4ab9(0x139),!0x0,!0x1,0x73),{'type':_0x1c4ab9(0x105),'name':_0x1c4ab9(0x11a),'header':TermsUtil[_0x1c4ab9(0xee)]('term'),'sortable':!0x1,'width':0x87,'record':{'editable':!0x1,'align':_0x1c4ab9(0x139),'renderer':(_0x2cd1ba,_0xf57f70,_0x31b12b,_0x1b2074,_0x4efcf3)=>_0x31b12b['term']?TermsUtil['tLabel'](_0x31b12b['term'],null,_0x31b12b['term']):''}},await MetaApi[_0x1c4ab9(0x16f)](_0x1c4ab9(0x134),_0x1c4ab9(0x130),'left',!0x1,0x4b,!0x0,_0x1c4ab9(0x13e)),MetaApi['getGristColumnConfig2'](_0x1c4ab9(0x157),_0x1c4ab9(0x13f),_0x1c4ab9(0x17a),_0x1c4ab9(0xed),!0x0,!0x1,0x3c),MetaApi[_0x1c4ab9(0x191)]('boolean',_0x1c4ab9(0x14b),'nullable',_0x1c4ab9(0x171),!0x0,!0x1,0x46),MetaApi[_0x1c4ab9(0x191)](_0x1c4ab9(0x157),_0x1c4ab9(0x193),_0x1c4ab9(0x162),_0x1c4ab9(0xed),!0x0,!0x1,0x46),MetaApi[_0x1c4ab9(0x191)]('string',_0x1c4ab9(0x172),_0x1c4ab9(0x172),_0x1c4ab9(0x139),!0x0,!0x1,0x87),MetaApi[_0x1c4ab9(0x191)](_0x1c4ab9(0x157),_0x1c4ab9(0x18f),'search_rank',_0x1c4ab9(0xed),!0x0,!0x1,0x46),await MetaApi[_0x1c4ab9(0x16f)]('string',_0x1c4ab9(0x115),'left',!0x1,0x55,!0x0,_0x1c4ab9(0x160)),MetaApi[_0x1c4ab9(0x191)](_0x1c4ab9(0x157),_0x1c4ab9(0x101),'grid_rank',_0x1c4ab9(0xed),!0x0,!0x1,0x50),MetaApi[_0x1c4ab9(0x191)](_0x1c4ab9(0x157),_0x1c4ab9(0x164),_0x1c4ab9(0x17c),_0x1c4ab9(0xed),!0x0,!0x1,0x4b),await MetaApi[_0x1c4ab9(0x16f)](_0x1c4ab9(0x13c),_0x1c4ab9(0xea),_0x1c4ab9(0x139),!0x1,0x5a,!0x0,'GRIST_COLUMN_TYPES'),await MetaApi['getGristCodeSelectorColumnConfig'](_0x1c4ab9(0x145),'ref_type',_0x1c4ab9(0x139),!0x1,0x55,!0x0,_0x1c4ab9(0x11d)),MetaApi['getGristColumnConfig2'](_0x1c4ab9(0x105),_0x1c4ab9(0x127),_0x1c4ab9(0x100),_0x1c4ab9(0x139),!0x0,!0x1,0x64)]};}[a0_0x18164b(0xe4)](){const _0x39f4f5=a0_0x18164b;return html`
15
+ .records=${_0xf2aa85}
16
+ .config=${{'rows':_0xf2aa85,'columns':[{'type':'gutter','gutterName':_0xf58041(0x234)},..._0x51f55c]}}
17
+ .importHandler="${this[_0xf58041(0x214)][_0xf58041(0x21a)](this)}">
18
+ </import-pop-up>`);},0x1f4);}}async[a0_0x3c3e4c(0x214)](_0x27c4fa){const _0x4c5245=a0_0x3c3e4c;if(_0x27c4fa&&0x0!=_0x27c4fa['length']){let _0xc1140=0x0;_0x27c4fa[_0x4c5245(0x1ab)](_0x235133=>{const _0x16b26b=_0x4c5245;_0xc1140+=0xa,_0x235133['colSize']=ValueUtil['isNotEmpty'](_0x235133[_0x16b26b(0x1f9)])?ValueUtil[_0x16b26b(0x1a5)](_0x235133[_0x16b26b(0x1f9)]):'string'==_0x235133[_0x16b26b(0x248)]?0x32:0x0,_0x235133[_0x16b26b(0x1bc)]=ValueUtil[_0x16b26b(0x1a5)](_0x235133[_0x16b26b(0x1bc)],0x0),_0x235133[_0x16b26b(0x1f3)]=ValueUtil['toInteger'](_0x235133['uniqRank'],0x0),_0x235133[_0x16b26b(0x1aa)]=ValueUtil[_0x16b26b(0x1a5)](_0x235133[_0x16b26b(0x1aa)],0x0),_0x235133[_0x16b26b(0x1ff)]=ValueUtil['toInteger'](_0x235133[_0x16b26b(0x1ff)],0x0),_0x235133[_0x16b26b(0x260)]=ValueUtil[_0x16b26b(0x1a5)](_0x235133['gridWidth'],0x0),_0x235133[_0x16b26b(0x228)]={'id':this[_0x16b26b(0x264)]},_0x235133[_0x16b26b(0x22a)]=ValueUtil[_0x16b26b(0x1c2)](_0x235133[_0x16b26b(0x22a)]),_0x235133[_0x16b26b(0x1b4)]=_0x235133[_0x16b26b(0x1b4)]?_0x235133[_0x16b26b(0x1b4)]:_0x235133[_0x16b26b(0x1bf)],_0x235133[_0x16b26b(0x248)]=_0x235133[_0x16b26b(0x248)]?_0x235133[_0x16b26b(0x248)]:_0x16b26b(0x237),delete _0x235133[_0x16b26b(0x237)];}),await MetaApi['updateMultiple']('updateMultipleEntityColumn',_0x27c4fa)&&(this[_0x4c5245(0x20c)]['fetch'](),history[_0x4c5245(0x1c9)]());}else MetaApi[_0x4c5245(0x1a9)]('info','text.no_data'),history[_0x4c5245(0x1c9)]();}async[a0_0x3c3e4c(0x1c4)](){const _0x39dc51=a0_0x3c3e4c;if(this[_0x39dc51(0x264)]){let _0x21a59d=this[_0x39dc51(0x20c)]['data'][_0x39dc51(0x24e)],_0x47b25b=_0x21a59d&&_0x21a59d[_0x39dc51(0x1a7)]?0xa*_0x21a59d['length']:0x0,_0x412f06=!0x1,_0x54c037=!0x1,_0x50ac04=!0x1,_0x1c0613=!0x1,_0x5e492d=!0x1,_0x2265a0=!0x1;_0x21a59d&&_0x21a59d[_0x39dc51(0x1a7)]>0x0&&(_0x412f06=_0x21a59d[_0x39dc51(0x208)](_0x564fd1=>'id'==_0x564fd1['name'])>=0x0,_0x54c037=_0x21a59d[_0x39dc51(0x208)](_0x54ad00=>_0x39dc51(0x1d7)==_0x54ad00[_0x39dc51(0x1bf)])>=0x0,_0x50ac04=_0x21a59d['findIndex'](_0x1f6c09=>_0x39dc51(0x225)==_0x1f6c09['name'])>=0x0,_0x1c0613=_0x21a59d['findIndex'](_0xc03c19=>_0x39dc51(0x230)==_0xc03c19['name'])>=0x0,_0x5e492d=_0x21a59d[_0x39dc51(0x208)](_0xb356dc=>'creator_id'==_0xb356dc[_0x39dc51(0x1bf)])>=0x0,_0x2265a0=_0x21a59d['findIndex'](_0x32d75b=>_0x39dc51(0x224)==_0x32d75b[_0x39dc51(0x1bf)])>=0x0);let _0x331196=[];_0x412f06||(_0x47b25b+=0xa,_0x331196[_0x39dc51(0x268)]({'entity':{'id':this[_0x39dc51(0x264)]},'name':'id','colType':'string','colSize':0x0,'nullable':!0x1,'term':'id','rank':_0x47b25b,'cuFlag':'+'})),_0x54c037||(_0x47b25b+=0xa,_0x331196[_0x39dc51(0x268)]({'entity':{'id':this[_0x39dc51(0x264)]},'name':_0x39dc51(0x1d7),'colType':_0x39dc51(0x237),'colSize':0x0,'nullable':!0x1,'term':_0x39dc51(0x217),'rank':_0x47b25b,'cuFlag':'+'})),_0x50ac04||(_0x47b25b+=0xa,_0x331196[_0x39dc51(0x268)]({'entity':{'id':this[_0x39dc51(0x264)]},'name':_0x39dc51(0x225),'colType':'timestamp','colSize':0x0,'nullable':!0x0,'term':_0x39dc51(0x225),'rank':_0x47b25b,'gridRank':0x0,'gridWidth':0x8c,'cuFlag':'+'})),_0x1c0613||(_0x47b25b+=0xa,_0x331196[_0x39dc51(0x268)]({'entity':{'id':this[_0x39dc51(0x264)]},'name':_0x39dc51(0x230),'colType':'timestamp','colSize':0x0,'nullable':!0x0,'term':_0x39dc51(0x230),'rank':_0x47b25b,'gridRank':_0x47b25b,'gridWidth':0x8c,'cuFlag':'+'})),_0x5e492d||(_0x47b25b+=0xa,_0x331196[_0x39dc51(0x268)]({'entity':{'id':this[_0x39dc51(0x264)]},'name':_0x39dc51(0x202),'colType':_0x39dc51(0x237),'colSize':0x28,'nullable':!0x0,'term':_0x39dc51(0x1e9),'rank':_0x47b25b,'gridRank':0x0,'gridWidth':0x64,'cuFlag':'+'})),_0x2265a0||(_0x47b25b+=0xa,_0x331196['push']({'entity':{'id':this[_0x39dc51(0x264)]},'name':_0x39dc51(0x224),'colType':_0x39dc51(0x237),'colSize':0x28,'nullable':!0x0,'term':'updater','rank':_0x47b25b,'gridRank':0x0,'gridWidth':0x64,'cuFlag':'+'})),await MetaApi[_0x39dc51(0x1b9)](_0x39dc51(0x23a),_0x331196)&&this[_0x39dc51(0x20c)][_0x39dc51(0x246)]();}}async[a0_0x3c3e4c(0x1f1)](){const _0x6c526c=a0_0x3c3e4c;this[_0x6c526c(0x1c0)]=[MetaApi[_0x6c526c(0x216)]('name','string',_0x6c526c(0x1bf),_0x6c526c(0x1b1)),MetaApi[_0x6c526c(0x216)]('table_name',_0x6c526c(0x237),_0x6c526c(0x1c5),_0x6c526c(0x1b1)),await MetaApi[_0x6c526c(0x1f0)](_0x6c526c(0x257),'select',_0x6c526c(0x257),'eq',_0x6c526c(0x1eb))],this['masterConfig']={'rows':MetaApi['getGristSelectableConfig'](!0x1),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x6c526c(0x240)](!0x0,!0x1),{'type':'gutter','gutterName':_0x6c526c(0x21d),'icon':_0x6c526c(0x25e),'handlers':{'click':(_0x42531b,_0x4e244f,_0xe17517,_0x44be6b,_0x590275)=>{const _0x21d16a=_0x6c526c;_0x44be6b['id']&&this[_0x21d16a(0x1e3)](_0x44be6b);}}},await MetaApi[_0x6c526c(0x24a)](_0x6c526c(0x257),_0x6c526c(0x257),_0x6c526c(0x24f),!0x1,0x5a,!0x0,_0x6c526c(0x1eb)),MetaApi[_0x6c526c(0x204)](_0x6c526c(0x237),_0x6c526c(0x1bf),_0x6c526c(0x24f),!0x0,!0x1,0x91),MetaApi[_0x6c526c(0x1c7)](_0x6c526c(0x237),_0x6c526c(0x232),_0x6c526c(0x1c5),_0x6c526c(0x24f),!0x0,!0x1,0xa0),await MetaApi[_0x6c526c(0x24a)]('dataProp',_0x6c526c(0x1e0),_0x6c526c(0x24f),!0x1,0x5a,!0x0,_0x6c526c(0x1b8)),await MetaApi[_0x6c526c(0x24a)](_0x6c526c(0x1f4),_0x6c526c(0x24b),'left',!0x1,0x5a,!0x0,'ENTITY_DEL_STRATEGY'),MetaApi['getGristColumnConfig']('string',_0x6c526c(0x1b3),_0x6c526c(0x24f),!0x0,!0x1,0xfa)]},this[_0x6c526c(0x25a)]={'rows':MetaApi[_0x6c526c(0x1db)](!0x0),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi['getGristGuttersConfig'](!0x0,!0x0),MetaApi[_0x6c526c(0x204)]('integer','rank',_0x6c526c(0x1ea),!0x0,!0x1,0x32),MetaApi['getGristColumnConfig'](_0x6c526c(0x237),_0x6c526c(0x1bf),_0x6c526c(0x24f),!0x0,!0x1,0x87),{'type':_0x6c526c(0x237),'name':'term','header':TermsUtil['tLabel'](_0x6c526c(0x1b4)),'sortable':!0x1,'width':0x87,'record':{'editable':!0x0,'align':_0x6c526c(0x24f),'renderer':(_0x5a524a,_0x5ee48f,_0x2f58c8,_0x4efd9d,_0xabfa66)=>_0x2f58c8['term']?TermsUtil[_0x6c526c(0x1b0)](_0x2f58c8[_0x6c526c(0x1b4)],null,_0x2f58c8[_0x6c526c(0x1b4)]):''}},await MetaApi[_0x6c526c(0x24a)](_0x6c526c(0x248),_0x6c526c(0x25c),'left',!0x1,0x4b,!0x0,'ENTITY_COLUMN_TYPES'),MetaApi[_0x6c526c(0x1c7)](_0x6c526c(0x252),'colSize',_0x6c526c(0x242),'right',!0x0,!0x1,0x3c),MetaApi[_0x6c526c(0x1c7)](_0x6c526c(0x203),'nullable',_0x6c526c(0x22a),_0x6c526c(0x1ea),!0x0,!0x1,0x46),MetaApi[_0x6c526c(0x1c7)](_0x6c526c(0x252),_0x6c526c(0x1f3),_0x6c526c(0x226),'right',!0x0,!0x1,0x46),MetaApi['getGristColumnConfig2'](_0x6c526c(0x237),_0x6c526c(0x1b3),_0x6c526c(0x1b3),_0x6c526c(0x24f),!0x0,!0x1,0x87),MetaApi['getGristColumnConfig2']('integer',_0x6c526c(0x1aa),'search_rank',_0x6c526c(0x227),!0x0,!0x1,0x46),await MetaApi[_0x6c526c(0x24a)](_0x6c526c(0x20d),_0x6c526c(0x250),_0x6c526c(0x24f),!0x1,0x55,!0x0,_0x6c526c(0x1a4)),MetaApi[_0x6c526c(0x1c7)]('integer','gridRank',_0x6c526c(0x247),_0x6c526c(0x227),!0x0,!0x1,0x50),MetaApi[_0x6c526c(0x1c7)](_0x6c526c(0x252),_0x6c526c(0x260),_0x6c526c(0x1dd),_0x6c526c(0x227),!0x0,!0x1,0x4b),await MetaApi[_0x6c526c(0x24a)](_0x6c526c(0x1df),_0x6c526c(0x251),_0x6c526c(0x24f),!0x1,0x5a,!0x0,_0x6c526c(0x1f6)),await MetaApi[_0x6c526c(0x24a)](_0x6c526c(0x253),'ref_type',_0x6c526c(0x24f),!0x1,0x55,!0x0,'COLUMN_REF_TYPE'),MetaApi[_0x6c526c(0x1c7)]('string',_0x6c526c(0x236),_0x6c526c(0x238),'left',!0x0,!0x1,0x64),MetaApi['getGristColumnConfig2'](_0x6c526c(0x237),'defVal','id_rule',_0x6c526c(0x24f),!0x0,!0x1,0x64)]},this['importConfig']={'rows':MetaApi[_0x6c526c(0x1db)](!0x0),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x6c526c(0x240)](!0x0,!0x0),MetaApi['getGristColumnConfig'](_0x6c526c(0x252),_0x6c526c(0x1bc),'center',!0x0,!0x1,0x32),MetaApi[_0x6c526c(0x204)](_0x6c526c(0x237),_0x6c526c(0x1bf),_0x6c526c(0x24f),!0x0,!0x1,0x73),{'type':_0x6c526c(0x237),'name':_0x6c526c(0x1b4),'header':TermsUtil[_0x6c526c(0x1b0)]('term'),'sortable':!0x1,'width':0x87,'record':{'editable':!0x1,'align':_0x6c526c(0x24f),'renderer':(_0x3704e7,_0xcc9524,_0x49f125,_0x434b91,_0x2e7209)=>_0x49f125[_0x6c526c(0x1b4)]?TermsUtil[_0x6c526c(0x1b0)](_0x49f125[_0x6c526c(0x1b4)],null,_0x49f125[_0x6c526c(0x1b4)]):''}},await MetaApi[_0x6c526c(0x24a)]('colType',_0x6c526c(0x25c),_0x6c526c(0x24f),!0x1,0x4b,!0x0,_0x6c526c(0x1fd)),MetaApi[_0x6c526c(0x1c7)](_0x6c526c(0x252),_0x6c526c(0x1f9),_0x6c526c(0x242),'right',!0x0,!0x1,0x3c),MetaApi[_0x6c526c(0x1c7)]('boolean',_0x6c526c(0x22a),_0x6c526c(0x22a),_0x6c526c(0x1ea),!0x0,!0x1,0x46),MetaApi['getGristColumnConfig2'](_0x6c526c(0x252),_0x6c526c(0x1f3),'uniq_rank',_0x6c526c(0x227),!0x0,!0x1,0x46),MetaApi['getGristColumnConfig2']('string',_0x6c526c(0x1b3),_0x6c526c(0x1b3),'left',!0x0,!0x1,0x87),MetaApi['getGristColumnConfig2'](_0x6c526c(0x252),_0x6c526c(0x1aa),_0x6c526c(0x256),_0x6c526c(0x227),!0x0,!0x1,0x46),await MetaApi[_0x6c526c(0x24a)](_0x6c526c(0x237),_0x6c526c(0x250),_0x6c526c(0x24f),!0x1,0x55,!0x0,'FILTER_OPERATORS'),MetaApi[_0x6c526c(0x1c7)](_0x6c526c(0x252),'gridRank',_0x6c526c(0x247),_0x6c526c(0x227),!0x0,!0x1,0x50),MetaApi[_0x6c526c(0x1c7)](_0x6c526c(0x252),_0x6c526c(0x260),_0x6c526c(0x1dd),_0x6c526c(0x227),!0x0,!0x1,0x4b),await MetaApi[_0x6c526c(0x24a)](_0x6c526c(0x1df),'grid_editor','left',!0x1,0x5a,!0x0,_0x6c526c(0x245)),await MetaApi[_0x6c526c(0x24a)](_0x6c526c(0x253),'ref_type',_0x6c526c(0x24f),!0x1,0x55,!0x0,_0x6c526c(0x1ec)),MetaApi[_0x6c526c(0x1c7)](_0x6c526c(0x237),_0x6c526c(0x236),'ref_name',_0x6c526c(0x24f),!0x0,!0x1,0x64)]};}[a0_0x3c3e4c(0x1fa)](){const _0x235a20=a0_0x3c3e4c;return html`
19
19
  <div slot="headroom">
20
20
  <div id="filters">
21
21
  <ox-filters-form-base
22
- .filters=${this[_0x39f4f5(0x183)]||[]}
23
- @filters-change=${_0xb39d9f=>{const _0x4795d5=_0x39f4f5;this[_0x4795d5(0x13d)]?.[_0x4795d5(0x133)]();}}
22
+ .filters=${this[_0x235a20(0x1c0)]||[]}
23
+ @filters-change=${_0x5116e0=>{const _0x4c23b5=_0x235a20;this[_0x4c23b5(0x263)]?.[_0x4c23b5(0x246)]();}}
24
24
  ></ox-filters-form-base>
25
25
  </div>
26
26
  </div>
@@ -28,42 +28,42 @@ const a0_0x18164b=a0_0x319f;(function(_0x2bcf60,_0x502b8b){const _0xcebe47=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['tTitle'](_0x39f4f5(0x118))}
31
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x235a20(0x24d)](_0x235a20(0x228))}
32
32
  </h2>
33
33
  <ox-grist
34
34
  id="master-grist"
35
- .config=${this[_0x39f4f5(0x14a)]}
36
- .mode=${MetaApi[_0x39f4f5(0x158)]()?_0x39f4f5(0x16d):_0x39f4f5(0x149)}
35
+ .config=${this[_0x235a20(0x20b)]}
36
+ .mode=${MetaApi[_0x235a20(0x209)]()?_0x235a20(0x1ad):'GRID'}
37
37
  auto-fetch
38
- .fetchHandler=${this[_0x39f4f5(0x165)]['bind'](this)}>
38
+ .fetchHandler=${this[_0x235a20(0x1cf)][_0x235a20(0x21a)](this)}>
39
39
  </ox-grist>
40
40
  <div id="button-container" class="button-container">
41
- <mwc-button raised label="${TermsUtil[_0x39f4f5(0x152)](_0x39f4f5(0x112))}" @click=${_0x3ec984=>this[_0x39f4f5(0x198)]()}></mwc-button>
42
- <mwc-button raised label="${TermsUtil['tButton'](_0x39f4f5(0x18b))}" @click=${_0x30029b=>this[_0x39f4f5(0x121)]()}></mwc-button>
43
- <mwc-button raised label="${TermsUtil[_0x39f4f5(0x152)](_0x39f4f5(0xf3))}" @click=${_0x35d3ff=>this[_0x39f4f5(0x141)]()}></mwc-button>
44
- <mwc-button raised label="${TermsUtil['tButton'](_0x39f4f5(0x189))}" @click=${_0x2914a0=>this[_0x39f4f5(0x163)]()}></mwc-button>
41
+ <mwc-button raised label="${TermsUtil[_0x235a20(0x212)](_0x235a20(0x265))}" @click=${_0x4c5dd0=>this[_0x235a20(0x22f)]()}></mwc-button>
42
+ <mwc-button raised label="${TermsUtil[_0x235a20(0x212)](_0x235a20(0x25d))}" @click=${_0x4117dc=>this['createMenu']()}></mwc-button>
43
+ <mwc-button raised label="${TermsUtil[_0x235a20(0x212)]('save')}" @click=${_0x2989de=>this[_0x235a20(0x1a3)]()}></mwc-button>
44
+ <mwc-button raised label="${TermsUtil[_0x235a20(0x212)](_0x235a20(0x1ca))}" @click=${_0x4c8d6a=>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[_0x39f4f5(0x181)](_0x39f4f5(0xfd))}
50
+ <mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x235a20(0x24d)](_0x235a20(0x1e4))}
51
51
  </h2>
52
52
  <ox-grist
53
53
  id="detail-grist"
54
- .config=${this[_0x39f4f5(0x168)]}
55
- .mode=${MetaApi[_0x39f4f5(0x158)]()?_0x39f4f5(0x16d):_0x39f4f5(0x149)}
54
+ .config=${this[_0x235a20(0x25a)]}
55
+ .mode=${MetaApi[_0x235a20(0x209)]()?'LIST':_0x235a20(0x1ac)}
56
56
  explcit-fetch
57
- .fetchHandler=${this['fetchEntityColumns'][_0x39f4f5(0xec)](this)}>
57
+ .fetchHandler=${this[_0x235a20(0x1d4)][_0x235a20(0x21a)](this)}>
58
58
  </ox-grist>
59
59
  <div id="button-container" class="button-container">
60
- <mwc-button raised label="${TermsUtil[_0x39f4f5(0x152)](_0x39f4f5(0x102))}" @click=${_0x4164a7=>this[_0x39f4f5(0xf5)]()}></mwc-button>
61
- <mwc-button raised label="${TermsUtil[_0x39f4f5(0x152)]('import')}" @click=${_0x2edb45=>this['importXlsxFile']()}></mwc-button>
62
- <mwc-button raised label="${TermsUtil[_0x39f4f5(0x152)]('check-columns')}" @click=${_0x5e2ca1=>this[_0x39f4f5(0x104)]()}></mwc-button>
63
- <mwc-button raised label="${TermsUtil[_0x39f4f5(0x152)](_0x39f4f5(0x123))}" @click=${_0x195297=>this[_0x39f4f5(0xf2)]()}></mwc-button>
64
- <mwc-button raised label="${TermsUtil[_0x39f4f5(0x152)](_0x39f4f5(0xf3))}" @click=${_0x536ea7=>this['saveEntityColumns']()}></mwc-button>
65
- <mwc-button raised label="${TermsUtil[_0x39f4f5(0x152)](_0x39f4f5(0x189))}" @click=${_0x1367cf=>this[_0x39f4f5(0x18e)]()}></mwc-button>
60
+ <mwc-button raised label="${TermsUtil[_0x235a20(0x212)](_0x235a20(0x223))}" @click=${_0x1d190e=>this[_0x235a20(0x215)]()}></mwc-button>
61
+ <mwc-button raised label="${TermsUtil['tButton'](_0x235a20(0x1fc))}" @click=${_0x4a6dbd=>this[_0x235a20(0x1e2)]()}></mwc-button>
62
+ <mwc-button raised label="${TermsUtil[_0x235a20(0x212)](_0x235a20(0x1dc))}" @click=${_0x3380d7=>this['checkEntityColumns']()}></mwc-button>
63
+ <mwc-button raised label="${TermsUtil[_0x235a20(0x212)](_0x235a20(0x1b5))}" @click=${_0x415bc0=>this[_0x235a20(0x1ba)]()}></mwc-button>
64
+ <mwc-button raised label="${TermsUtil[_0x235a20(0x212)](_0x235a20(0x21f))}" @click=${_0x50402a=>this[_0x235a20(0x1b2)]()}></mwc-button>
65
+ <mwc-button raised label="${TermsUtil[_0x235a20(0x212)](_0x235a20(0x1ca))}" @click=${_0x549222=>this[_0x235a20(0x255)]()}></mwc-button>
66
66
  </div>
67
67
  </div>
68
68
  </div>
69
- `;}}customElements[a0_0x18164b(0x111)](a0_0x18164b(0x166),ConfigEntity);
69
+ `;}}customElements[a0_0x3c3e4c(0x1cd)](a0_0x3c3e4c(0x261),ConfigEntity);
@@ -1,4 +1,4 @@
1
- const a0_0x484e25=a0_0xda8a;(function(_0x1ff8e1,_0x45f799){const _0x24c6c5=a0_0xda8a,_0x1a901d=_0x1ff8e1();while(!![]){try{const _0x1ea694=-parseInt(_0x24c6c5(0x212))/0x1*(-parseInt(_0x24c6c5(0x1f6))/0x2)+-parseInt(_0x24c6c5(0x205))/0x3+-parseInt(_0x24c6c5(0x20c))/0x4*(-parseInt(_0x24c6c5(0x216))/0x5)+-parseInt(_0x24c6c5(0x217))/0x6*(-parseInt(_0x24c6c5(0x1f0))/0x7)+-parseInt(_0x24c6c5(0x1ef))/0x8*(-parseInt(_0x24c6c5(0x204))/0x9)+-parseInt(_0x24c6c5(0x1f8))/0xa*(-parseInt(_0x24c6c5(0x200))/0xb)+-parseInt(_0x24c6c5(0x1f5))/0xc;if(_0x1ea694===_0x45f799)break;else _0x1a901d['push'](_0x1a901d['shift']());}catch(_0x57afe3){_0x1a901d['push'](_0x1a901d['shift']());}}}(a0_0x57c6,0x6141c));import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';import{ScrollbarStyles,CommonGristStyles}from'@operato/styles';function a0_0xda8a(_0x579d5f,_0x4b86bb){const _0x57c619=a0_0x57c6();return a0_0xda8a=function(_0xda8adb,_0x2c3525){_0xda8adb=_0xda8adb-0x1ec;let _0x4e88bf=_0x57c619[_0xda8adb];return _0x4e88bf;},a0_0xda8a(_0x579d5f,_0x4b86bb);}function a0_0x57c6(){const _0x4ef2f5=['button.confirm','title','create-menu','40pmNhkh','selectCallback','length','getGristSelectableConfig','connectedCallback','tMenu','1TpBNvI','items','is_null','left','233755ynVSoN','266334qtOoCg','total','fetchMainMenus','GRID','main-menu-selector','selectMainMenu','getGristGuttersConfig','menus','parentId','grist','\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','8vOoUkE','77cKeChX','name','center','MENU_TYPE','render','10464876PjUKAt','935786vUZPnU','integer','10geemvN','string','menuType','info','bind','tLabel','searchByPagination','back','5480761TUBWOb','title.info','text.NOTHING_SELECTED','gridConfig','118161athLul','1993875WMkLnH','tButton','querySelector','getGristColumnConfig'];a0_0x57c6=function(){return _0x4ef2f5;};return a0_0x57c6();}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`
1
+ function a0_0xddd8(_0x5878cb,_0x1b316a){const _0x4c1f4f=a0_0x4c1f();return a0_0xddd8=function(_0xddd8d1,_0x49a3cc){_0xddd8d1=_0xddd8d1-0x1bb;let _0x8c3fac=_0x4c1f4f[_0xddd8d1];return _0x8c3fac;},a0_0xddd8(_0x5878cb,_0x1b316a);}const a0_0x5da7fa=a0_0xddd8;(function(_0x487821,_0x4ef8d1){const _0x37d150=a0_0xddd8,_0x3282fc=_0x487821();while(!![]){try{const _0x2da53c=-parseInt(_0x37d150(0x1c0))/0x1+parseInt(_0x37d150(0x1e7))/0x2*(-parseInt(_0x37d150(0x1df))/0x3)+parseInt(_0x37d150(0x1db))/0x4*(parseInt(_0x37d150(0x1bd))/0x5)+-parseInt(_0x37d150(0x1bb))/0x6*(parseInt(_0x37d150(0x1e5))/0x7)+-parseInt(_0x37d150(0x1ea))/0x8*(-parseInt(_0x37d150(0x1dc))/0x9)+parseInt(_0x37d150(0x1cc))/0xa+parseInt(_0x37d150(0x1ca))/0xb;if(_0x2da53c===_0x4ef8d1)break;else _0x3282fc['push'](_0x3282fc['shift']());}catch(_0x46558d){_0x3282fc['push'](_0x3282fc['shift']());}}}(a0_0x4c1f,0x66f9f));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_0x4c1f(){const _0x25a4b0=['info','8nSuxFG','styles','996Krttuz','\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','25SyyvNB','querySelector','items','148917kafqLE','shadowRoot','render','properties','fetchMainMenus','grist','name','parentId','string','#ox-grist','10560385WmUwPy','selectCallback','3179690YUyvtR','create-menu','connectedCallback','gridConfig','title.info','rank','is_null','left','menuType','selected','define','button.confirm','integer','getGristGuttersConfig','menu_type','18524dJxfEc','340551BnSTLK','tLabel','bind','234gRCNjI','back','getGristColumnConfig','selectMainMenu','getGristSelectableConfig','MENU_TYPE','4634dJUuCD','menus','16882KKTxda','total'];a0_0x4c1f=function(){return _0x25a4b0;};return a0_0x4c1f();}import{UiUtil}from'../../utils/ui-util';import{MetaApi}from'../../utils/meta-api';export class MainMenuSelector extends localize(i18next)(LitElement){static get[a0_0x5da7fa(0x1eb)](){return[ScrollbarStyles,CommonGristStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -57,19 +57,19 @@ const a0_0x484e25=a0_0xda8a;(function(_0x1ff8e1,_0x45f799){const _0x24c6c5=a0_0x
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_0x484e25(0x210)](){const _0x511cd0=a0_0x484e25;this[_0x511cd0(0x203)]={'rows':MetaApi[_0x511cd0(0x20f)](!0x1),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x511cd0(0x21d)](!0x0,!0x1),MetaApi[_0x511cd0(0x208)](_0x511cd0(0x1f7),'rank',_0x511cd0(0x1f2),!0x0,!0x1,0x3c),MetaApi[_0x511cd0(0x208)]('string','name',_0x511cd0(0x215),!0x0,!0x1,0xb9),{'type':_0x511cd0(0x1f9),'name':'title','header':TermsUtil[_0x511cd0(0x1fd)](_0x511cd0(0x20a)),'record':{'editable':!0x1,'align':_0x511cd0(0x215),'renderer':(_0x4b810d,_0x1e38ff,_0x35764a,_0x5ea997,_0x48dafe)=>_0x35764a['name']?TermsUtil[_0x511cd0(0x211)](_0x35764a[_0x511cd0(0x1f1)]):''},'sortable':!0x1,'width':0x113},await MetaApi['getGristCodeSelectorColumnConfig'](_0x511cd0(0x1fa),'menu_type',_0x511cd0(0x215),!0x1,0x64,!0x0,_0x511cd0(0x1f3))]},super[_0x511cd0(0x210)]&&await super[_0x511cd0(0x210)]();}[a0_0x484e25(0x1f4)](){const _0x8f86e9=a0_0x484e25;return html`
60
+ }`];}static get[a0_0x5da7fa(0x1c3)](){return{'items':{'type':Array},'total':{'type':Number},'selectCallback':{'type':Function}};}async['connectedCallback'](){const _0x189b14=a0_0x5da7fa;this[_0x189b14(0x1cf)]={'rows':MetaApi[_0x189b14(0x1e3)](!0x1),'pagination':{'pages':[0x3e8]},'appendable':!0x0,'columns':[...MetaApi[_0x189b14(0x1d9)](!0x0,!0x1),MetaApi['getGristColumnConfig'](_0x189b14(0x1d8),_0x189b14(0x1d1),'center',!0x0,!0x1,0x3c),MetaApi[_0x189b14(0x1e1)](_0x189b14(0x1c8),_0x189b14(0x1c6),_0x189b14(0x1d3),!0x0,!0x1,0xb9),{'type':_0x189b14(0x1c8),'name':'title','header':TermsUtil[_0x189b14(0x1dd)]('title'),'record':{'editable':!0x1,'align':_0x189b14(0x1d3),'renderer':(_0x1d0cec,_0x5a45e0,_0x8dc120,_0x261c66,_0x51be78)=>_0x8dc120[_0x189b14(0x1c6)]?TermsUtil['tMenu'](_0x8dc120[_0x189b14(0x1c6)]):''},'sortable':!0x1,'width':0x113},await MetaApi['getGristCodeSelectorColumnConfig'](_0x189b14(0x1d4),_0x189b14(0x1da),_0x189b14(0x1d3),!0x1,0x64,!0x0,_0x189b14(0x1e4))]},super[_0x189b14(0x1ce)]&&await super[_0x189b14(0x1ce)]();}[a0_0x5da7fa(0x1c2)](){const _0x3af36f=a0_0x5da7fa;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[_0x8f86e9(0x203)]}
66
- .mode=${_0x8f86e9(0x21a)} auto-fetch
67
- .fetchHandler=${this[_0x8f86e9(0x219)][_0x8f86e9(0x1fc)](this)}>
65
+ .config=${this[_0x3af36f(0x1cf)]}
66
+ .mode=${'GRID'} auto-fetch
67
+ .fetchHandler=${this[_0x3af36f(0x1c4)][_0x3af36f(0x1de)](this)}>
68
68
  </ox-grist>
69
69
  <div id="button-container" class="button-container">
70
- <mwc-button raised hidden id="receive" label="${TermsUtil[_0x8f86e9(0x206)](_0x8f86e9(0x20b))}"
71
- style="margin-left:7px;margin-top:7px;" @click=${this[_0x8f86e9(0x21c)][_0x8f86e9(0x1fc)](this)}>
70
+ <mwc-button raised hidden id="receive" label="${TermsUtil['tButton'](_0x3af36f(0x1cd))}"
71
+ style="margin-left:7px;margin-top:7px;" @click=${this[_0x3af36f(0x1e2)]['bind'](this)}>
72
72
  </mwc-button>
73
73
  </div>
74
74
  </div>
75
- </div>`;}get[a0_0x484e25(0x1ed)](){const _0x5d0b22=a0_0x484e25;return this['shadowRoot'][_0x5d0b22(0x207)]('#ox-grist');}async[a0_0x484e25(0x219)](){const _0x302ee9=a0_0x484e25;let _0x24a4ae=await MetaApi[_0x302ee9(0x1fe)](_0x302ee9(0x21e),[{'name':_0x302ee9(0x1ec),'operator':_0x302ee9(0x214),'value':''}],[{'name':'rank'}],0x0,0x0,_0x302ee9(0x1ee));return this['items']=_0x24a4ae['records'],this[_0x302ee9(0x218)]=_0x24a4ae[_0x302ee9(0x218)],{'total':this[_0x302ee9(0x218)],'records':this[_0x302ee9(0x213)]};}async[a0_0x484e25(0x21c)](_0x49b2e7){const _0x39cacd=a0_0x484e25,_0x122e31=this['grist']['selected'];if(_0x122e31&&0x0!=_0x122e31[_0x39cacd(0x20e)])this[_0x39cacd(0x20d)]&&((await this[_0x39cacd(0x20d)](_0x122e31[0x0]['id']))['success']&&history[_0x39cacd(0x1ff)]());else UiUtil['showCustomAlert'](_0x39cacd(0x201),_0x39cacd(0x202),_0x39cacd(0x1fb),_0x39cacd(0x209));}}customElements['define'](a0_0x484e25(0x21b),MainMenuSelector);
75
+ </div>`;}get['grist'](){const _0x492ab6=a0_0x5da7fa;return this[_0x492ab6(0x1c1)][_0x492ab6(0x1be)](_0x492ab6(0x1c9));}async[a0_0x5da7fa(0x1c4)](){const _0x4efe25=a0_0x5da7fa;let _0x3d70c7=await MetaApi['searchByPagination'](_0x4efe25(0x1e6),[{'name':_0x4efe25(0x1c7),'operator':_0x4efe25(0x1d2),'value':''}],[{'name':_0x4efe25(0x1d1)}],0x0,0x0,_0x4efe25(0x1bc));return this['items']=_0x3d70c7['records'],this[_0x4efe25(0x1e8)]=_0x3d70c7['total'],{'total':this['total'],'records':this[_0x4efe25(0x1bf)]};}async['selectMainMenu'](_0x4aaacc){const _0x18459d=a0_0x5da7fa,_0x57ee32=this[_0x18459d(0x1c5)][_0x18459d(0x1d5)];if(_0x57ee32&&0x0!=_0x57ee32['length'])this[_0x18459d(0x1cb)]&&((await this[_0x18459d(0x1cb)](_0x57ee32[0x0]['id']))['success']&&history[_0x18459d(0x1e0)]());else UiUtil['showCustomAlert'](_0x18459d(0x1d0),'text.NOTHING_SELECTED',_0x18459d(0x1e9),_0x18459d(0x1d7));}}customElements[a0_0x5da7fa(0x1d6)]('main-menu-selector',MainMenuSelector);
@@ -1,4 +1,4 @@
1
- function a0_0x41ee(_0x39f943,_0x4477ea){const _0x44e883=a0_0x44e8();return a0_0x41ee=function(_0x41eee4,_0xa3812b){_0x41eee4=_0x41eee4-0xef;let _0xaae5b1=_0x44e883[_0x41eee4];return _0xaae5b1;},a0_0x41ee(_0x39f943,_0x4477ea);}const a0_0x5982c3=a0_0x41ee;(function(_0x51016c,_0x4b8510){const _0x2296bc=a0_0x41ee,_0x70748d=_0x51016c();while(!![]){try{const _0x3857b6=-parseInt(_0x2296bc(0xff))/0x1+parseInt(_0x2296bc(0x104))/0x2+parseInt(_0x2296bc(0xfa))/0x3*(parseInt(_0x2296bc(0x107))/0x4)+-parseInt(_0x2296bc(0xf3))/0x5+parseInt(_0x2296bc(0x116))/0x6*(parseInt(_0x2296bc(0x102))/0x7)+-parseInt(_0x2296bc(0xfd))/0x8*(parseInt(_0x2296bc(0x105))/0x9)+parseInt(_0x2296bc(0x113))/0xa;if(_0x3857b6===_0x4b8510)break;else _0x70748d['push'](_0x70748d['shift']());}catch(_0x4f893f){_0x70748d['push'](_0x70748d['shift']());}}}(a0_0x44e8,0xc0647));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 HistoryCopyListPopup extends localize(i18next)(LitElement){static get['styles'](){return[ScrollbarStyles,CommonGristStyles,css`
1
+ const a0_0x3781b4=a0_0x241e;(function(_0x11036e,_0x4e10bd){const _0x605e4c=a0_0x241e,_0x5384df=_0x11036e();while(!![]){try{const _0x39166e=parseInt(_0x605e4c(0x140))/0x1*(-parseInt(_0x605e4c(0x129))/0x2)+-parseInt(_0x605e4c(0x144))/0x3*(-parseInt(_0x605e4c(0x153))/0x4)+-parseInt(_0x605e4c(0x141))/0x5*(parseInt(_0x605e4c(0x130))/0x6)+-parseInt(_0x605e4c(0x133))/0x7*(-parseInt(_0x605e4c(0x152))/0x8)+parseInt(_0x605e4c(0x14e))/0x9*(parseInt(_0x605e4c(0x13e))/0xa)+parseInt(_0x605e4c(0x147))/0xb+-parseInt(_0x605e4c(0x139))/0xc;if(_0x39166e===_0x4e10bd)break;else _0x5384df['push'](_0x5384df['shift']());}catch(_0x2f0859){_0x5384df['push'](_0x5384df['shift']());}}}(a0_0x300f,0x61358));import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';function a0_0x241e(_0x2d7ed4,_0x41d75f){const _0x300f10=a0_0x300f();return a0_0x241e=function(_0x241e04,_0x217c13){_0x241e04=_0x241e04-0x128;let _0x136871=_0x300f10[_0x241e04];return _0x136871;},a0_0x241e(_0x2d7ed4,_0x41d75f);}import{ScrollbarStyles,CommonGristStyles}from'@operato/styles';import{TermsUtil}from'./../../utils/terms-util';function a0_0x300f(){const _0x161281=['center','columns','dataRevisionAction','195592PZGrKr','284awAEjS','dataRevisionNo','properties','type','46cBcVIb','connectedCallback','sorters','list','getSelectColumns','rows','gridConfig','12HiutqP','string','styles','91kQiOqY','fetchHandler','forEach','editable','record','dirty','4473000XVlTFw','sortable','filter','integer','searchByPagination','60ScMTuT','data_revision_action','28255pGcANd','1284650rPuYrs','render','bind','25227vOFVmL','gutter','Histories','6215033FOKxou','gqlFunc','open_param','history-copy-list-popup','grist','getGristColumnConfig2','querySelector','682146vwOTIR'];a0_0x300f=function(){return _0x161281;};return a0_0x300f();}import{UiUtil}from'../../utils/ui-util';import{MetaApi}from'../../utils/meta-api';export class HistoryCopyListPopup extends localize(i18next)(LitElement){static get[a0_0x3781b4(0x132)](){return[ScrollbarStyles,CommonGristStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -8,11 +8,11 @@ function a0_0x41ee(_0x39f943,_0x4477ea){const _0x44e883=a0_0x44e8();return a0_0x
8
8
  overflow-y: auto;
9
9
  flex: 1;
10
10
  }
11
- `];}static get[a0_0x5982c3(0x111)](){return{'parent_id':String};}async[a0_0x5982c3(0x11b)](){const _0x59c9f4=a0_0x5982c3;let _0x28879b=this['open_param'][_0x59c9f4(0xf7)];this[_0x59c9f4(0x115)]=this['open_param']['gqlFunc'],delete _0x28879b[_0x59c9f4(0x108)],delete _0x28879b['rows'],_0x28879b[_0x59c9f4(0xf1)]={'appendable':!0x1,'selectable':!0x1},_0x28879b['sorters']=[{'name':_0x59c9f4(0x112),'desc':!0x0}];let _0x48e909=_0x28879b[_0x59c9f4(0xf0)][_0x59c9f4(0xf6)](_0x3fada8=>_0x59c9f4(0x100)!=_0x3fada8[_0x59c9f4(0x114)]);_0x48e909[_0x59c9f4(0x10c)](_0x1b1155=>{const _0x21ed9a=_0x59c9f4;_0x1b1155['filter']&&delete _0x1b1155[_0x21ed9a(0xf6)],_0x1b1155[_0x21ed9a(0x101)]||(_0x1b1155[_0x21ed9a(0x101)]={}),_0x1b1155[_0x21ed9a(0xf4)]=!0x1,_0x1b1155['record']['editable']=!0x1;}),_0x28879b[_0x59c9f4(0xf0)]=[{'type':'gutter','gutterName':_0x59c9f4(0x10b)},MetaApi['getGristColumnConfig2'](_0x59c9f4(0xf2),_0x59c9f4(0x112),_0x59c9f4(0x109),_0x59c9f4(0x10e),!0x1,!0x0,0x5a),MetaApi['getGristColumnConfig2'](_0x59c9f4(0x118),_0x59c9f4(0x10d),_0x59c9f4(0xf9),'center',!0x1,!0x1,0x5a),..._0x48e909],this[_0x59c9f4(0xfb)]=_0x28879b,super['connectedCallback']&&await super['connectedCallback']();}[a0_0x5982c3(0x117)](){const _0x42307a=a0_0x5982c3;return html`
11
+ `];}static get[a0_0x3781b4(0x155)](){return{'parent_id':String};}async['connectedCallback'](){const _0xbabaaf=a0_0x3781b4;let _0x317b45=this[_0xbabaaf(0x149)]['gristConfig'];this[_0xbabaaf(0x148)]=this[_0xbabaaf(0x149)][_0xbabaaf(0x148)],delete _0x317b45[_0xbabaaf(0x12c)],delete _0x317b45[_0xbabaaf(0x12e)],_0x317b45[_0xbabaaf(0x12e)]={'appendable':!0x1,'selectable':!0x1},_0x317b45[_0xbabaaf(0x12b)]=[{'name':_0xbabaaf(0x154),'desc':!0x0}];let _0x3e298c=_0x317b45[_0xbabaaf(0x150)]['filter'](_0x1326a9=>'gutter'!=_0x1326a9[_0xbabaaf(0x128)]);_0x3e298c[_0xbabaaf(0x135)](_0x13a82f=>{const _0x5c8576=_0xbabaaf;_0x13a82f[_0x5c8576(0x13b)]&&delete _0x13a82f[_0x5c8576(0x13b)],_0x13a82f['record']||(_0x13a82f[_0x5c8576(0x137)]={}),_0x13a82f[_0x5c8576(0x13a)]=!0x1,_0x13a82f['record'][_0x5c8576(0x136)]=!0x1;}),_0x317b45[_0xbabaaf(0x150)]=[{'type':_0xbabaaf(0x145),'gutterName':_0xbabaaf(0x138)},MetaApi[_0xbabaaf(0x14c)](_0xbabaaf(0x13c),'dataRevisionNo','data_revision_no',_0xbabaaf(0x14f),!0x1,!0x0,0x5a),MetaApi[_0xbabaaf(0x14c)](_0xbabaaf(0x131),_0xbabaaf(0x151),_0xbabaaf(0x13f),_0xbabaaf(0x14f),!0x1,!0x1,0x5a),..._0x3e298c],this['gridConfig']=_0x317b45,super[_0xbabaaf(0x12a)]&&await super[_0xbabaaf(0x12a)]();}[a0_0x3781b4(0x142)](){const _0x15a305=a0_0x3781b4;return html`
12
12
  <ox-grist
13
13
  id="ox-grist"
14
- .config=${this['gridConfig']}
15
- .mode=${_0x42307a(0x119)} auto-fetch
16
- .fetchHandler=${this[_0x42307a(0xf8)][_0x42307a(0x103)](this)}>
14
+ .config=${this[_0x15a305(0x12f)]}
15
+ .mode=${'GRID'} auto-fetch
16
+ .fetchHandler=${this['fetchHandler'][_0x15a305(0x143)](this)}>
17
17
  </ox-grist>
18
- `;}get[a0_0x5982c3(0xef)](){const _0x96bfdc=a0_0x5982c3;return this['shadowRoot'][_0x96bfdc(0xfc)]('#ox-grist');}async[a0_0x5982c3(0xf8)]({page:_0x179d12=0x0,limit:_0x2a6dd1=0x0,sortings:_0x19eb54=[],filters:_0x80d014=[]}){const _0x152339=a0_0x5982c3;let _0x146c5f=[{'name':_0x152339(0xfe),'operator':'eq','value':this[_0x152339(0x11a)]},..._0x80d014],_0x3ce09b=MetaApi[_0x152339(0x10a)](this[_0x152339(0xfb)][_0x152339(0xf0)]);return await MetaApi[_0x152339(0x110)](this[_0x152339(0x115)]+_0x152339(0xf5),_0x146c5f,_0x19eb54,_0x179d12,_0x2a6dd1,_0x3ce09b);}}function a0_0x44e8(){const _0x3bf0bf=['getSelectColumns','dirty','forEach','dataRevisionAction','center','define','searchByPagination','properties','dataRevisionNo','23139990yGHOou','type','gqlFunc','379662qWVGIj','render','string','GRID','parent_id','connectedCallback','grist','columns','rows','integer','2894410YyqPrr','sortable','Histories','filter','gristConfig','fetchHandler','data_revision_action','175893VXFSBS','gridConfig','querySelector','248rfMgNN','originalId','1314076UaICOQ','gutter','record','14YfmcWt','bind','992390rkblyX','125316tUHAsB','history-copy-list-popup','12JEPoNn','list','data_revision_no'];a0_0x44e8=function(){return _0x3bf0bf;};return a0_0x44e8();}customElements[a0_0x5982c3(0x10f)](a0_0x5982c3(0x106),HistoryCopyListPopup);
18
+ `;}get[a0_0x3781b4(0x14b)](){const _0x4fdf21=a0_0x3781b4;return this['shadowRoot'][_0x4fdf21(0x14d)]('#ox-grist');}async[a0_0x3781b4(0x134)]({page:_0x3f018f=0x0,limit:_0x52fed9=0x0,sortings:_0x13334e=[],filters:_0x43772b=[]}){const _0x356fc5=a0_0x3781b4;let _0x11efd9=[{'name':'originalId','operator':'eq','value':this['parent_id']},..._0x43772b],_0x4cfc71=MetaApi[_0x356fc5(0x12d)](this[_0x356fc5(0x12f)][_0x356fc5(0x150)]);return await MetaApi[_0x356fc5(0x13d)](this[_0x356fc5(0x148)]+_0x356fc5(0x146),_0x11efd9,_0x13334e,_0x3f018f,_0x52fed9,_0x4cfc71);}}customElements['define'](a0_0x3781b4(0x14a),HistoryCopyListPopup);
@@ -1,4 +1,4 @@
1
- const a0_0x1f9fd4=a0_0x69a2;(function(_0x46a30a,_0x4d0353){const _0x5275ea=a0_0x69a2,_0x523f2c=_0x46a30a();while(!![]){try{const _0x3b2619=parseInt(_0x5275ea(0x193))/0x1+parseInt(_0x5275ea(0x1ab))/0x2+-parseInt(_0x5275ea(0x194))/0x3+-parseInt(_0x5275ea(0x19e))/0x4+-parseInt(_0x5275ea(0x1b2))/0x5*(-parseInt(_0x5275ea(0x1af))/0x6)+parseInt(_0x5275ea(0x19c))/0x7+parseInt(_0x5275ea(0x1a2))/0x8;if(_0x3b2619===_0x4d0353)break;else _0x523f2c['push'](_0x523f2c['shift']());}catch(_0x28c464){_0x523f2c['push'](_0x523f2c['shift']());}}}(a0_0x408b,0xc102a));import{css,html,LitElement}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';function a0_0x408b(){const _0x43268a=['string','record','5eLWIES','rows','open_param','connectedCallback','columns','grist','filter','history-json-list-popup','define','dataRevisionNo','fetchHandler','#ox-grist','render','313683XGICKU','3924678NSnmQz','editable','Histories','dirty','dataRevisionAction','gqlFunc','data_revision_no','type','1000629SvqoUS','querySelector','777556rSczrV','gridConfig','historyJson','sortable','2229392rCCldk','forEach','gutter','gristConfig','bind','originalId','center','searchByPagination','getGristColumnConfig2','1199028MsFksc','styles','records','list','5750202adxUPa'];a0_0x408b=function(){return _0x43268a;};return a0_0x408b();}import{ScrollbarStyles,CommonGristStyles}from'@operato/styles';import{TermsUtil}from'./../../utils/terms-util';import{UiUtil}from'../../utils/ui-util';function a0_0x69a2(_0x22f644,_0x5c3800){const _0x408b33=a0_0x408b();return a0_0x69a2=function(_0x69a2a0,_0x255386){_0x69a2a0=_0x69a2a0-0x18d;let _0x1ab581=_0x408b33[_0x69a2a0];return _0x1ab581;},a0_0x69a2(_0x22f644,_0x5c3800);}import{MetaApi}from'../../utils/meta-api';export class HistoryJsonListPopup extends localize(i18next)(LitElement){static get[a0_0x1f9fd4(0x1ac)](){return[ScrollbarStyles,CommonGristStyles,css`
1
+ const a0_0x420c0e=a0_0x9eea;(function(_0x19b357,_0x578460){const _0x3b6f43=a0_0x9eea,_0x51f825=_0x19b357();while(!![]){try{const _0x3e47ee=parseInt(_0x3b6f43(0x151))/0x1*(parseInt(_0x3b6f43(0x165))/0x2)+-parseInt(_0x3b6f43(0x146))/0x3*(parseInt(_0x3b6f43(0x14a))/0x4)+-parseInt(_0x3b6f43(0x158))/0x5*(parseInt(_0x3b6f43(0x14f))/0x6)+parseInt(_0x3b6f43(0x142))/0x7+-parseInt(_0x3b6f43(0x154))/0x8*(parseInt(_0x3b6f43(0x145))/0x9)+parseInt(_0x3b6f43(0x13d))/0xa+parseInt(_0x3b6f43(0x148))/0xb*(parseInt(_0x3b6f43(0x162))/0xc);if(_0x3e47ee===_0x578460)break;else _0x51f825['push'](_0x51f825['shift']());}catch(_0x276f51){_0x51f825['push'](_0x51f825['shift']());}}}(a0_0x1d85,0x71304));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_0x9eea(_0x33853f,_0x384804){const _0x1d859b=a0_0x1d85();return a0_0x9eea=function(_0x9eeae7,_0x4439ee){_0x9eeae7=_0x9eeae7-0x136;let _0xaab26b=_0x1d859b[_0x9eeae7];return _0xaab26b;},a0_0x9eea(_0x33853f,_0x384804);}function a0_0x1d85(){const _0x281c52=['84359tCDGax','gridConfig','4LVTWNo','bind','editable','gqlFunc','history-json-list-popup','1296wbJrcN','integer','2TOMHIt','filter','shadowRoot','56FCHRge','properties','data_revision_no','querySelector','17795FSEAUR','getGristColumnConfig2','map','#ox-grist','searchByPagination','gutter','define','fetchHandler','open_param','sorters','72yVeLCb','data_revision_action','grist','279376BFixrG','parent_id','\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','styles','rows','string','render','dataRevisionNo','records','dirty','center','columns','6602080PtXHwv','GRID','forEach','record','gristConfig','6310843TywNvN','connectedCallback','sortable','583659DHaIuD','602478vDnXDc','type'];a0_0x1d85=function(){return _0x281c52;};return a0_0x1d85();}import{MetaApi}from'../../utils/meta-api';export class HistoryJsonListPopup extends localize(i18next)(LitElement){static get[a0_0x420c0e(0x168)](){return[ScrollbarStyles,CommonGristStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -8,11 +8,11 @@ const a0_0x1f9fd4=a0_0x69a2;(function(_0x46a30a,_0x4d0353){const _0x5275ea=a0_0x
8
8
  overflow-y: auto;
9
9
  flex: 1;
10
10
  }
11
- `];}static get['properties'](){return{'parent_id':String};}async[a0_0x1f9fd4(0x1b5)](){const _0x33e4c7=a0_0x1f9fd4;let _0x32bcde=this[_0x33e4c7(0x1b4)][_0x33e4c7(0x1a5)];this[_0x33e4c7(0x199)]=this[_0x33e4c7(0x1b4)][_0x33e4c7(0x199)],delete _0x32bcde[_0x33e4c7(0x1ae)],delete _0x32bcde[_0x33e4c7(0x1b3)],_0x32bcde[_0x33e4c7(0x1b3)]={'appendable':!0x1,'selectable':!0x1},_0x32bcde['sorters']=[{'name':'dataRevisionNo','desc':!0x0}];let _0x39a4d5=_0x32bcde[_0x33e4c7(0x1b6)][_0x33e4c7(0x1b8)](_0x3a1907=>_0x33e4c7(0x1a4)!=_0x3a1907[_0x33e4c7(0x19b)]);_0x39a4d5[_0x33e4c7(0x1a3)](_0x23112d=>{const _0x30dae6=_0x33e4c7;_0x23112d['filter']&&delete _0x23112d['filter'],_0x23112d[_0x30dae6(0x1b1)]||(_0x23112d[_0x30dae6(0x1b1)]={}),_0x23112d[_0x30dae6(0x1a1)]=!0x1,_0x23112d[_0x30dae6(0x1b1)][_0x30dae6(0x195)]=!0x1;}),_0x32bcde['columns']=[{'type':'gutter','gutterName':_0x33e4c7(0x197)},MetaApi[_0x33e4c7(0x1aa)]('integer',_0x33e4c7(0x18f),_0x33e4c7(0x19a),_0x33e4c7(0x1a8),!0x1,!0x0,0x5a),MetaApi['getGristColumnConfig2'](_0x33e4c7(0x1b0),_0x33e4c7(0x198),'data_revision_action',_0x33e4c7(0x1a8),!0x1,!0x1,0x5a),..._0x39a4d5],this[_0x33e4c7(0x19f)]=_0x32bcde,super['connectedCallback']&&await super[_0x33e4c7(0x1b5)]();}[a0_0x1f9fd4(0x192)](){const _0x204b7c=a0_0x1f9fd4;return html`
11
+ `];}static get[a0_0x420c0e(0x155)](){return{'parent_id':String};}async['connectedCallback'](){const _0x44a4b1=a0_0x420c0e;let _0x1ec302=this['open_param'][_0x44a4b1(0x141)];this[_0x44a4b1(0x14d)]=this[_0x44a4b1(0x160)]['gqlFunc'],delete _0x1ec302['list'],delete _0x1ec302[_0x44a4b1(0x169)],_0x1ec302['rows']={'appendable':!0x1,'selectable':!0x1},_0x1ec302[_0x44a4b1(0x161)]=[{'name':_0x44a4b1(0x138),'desc':!0x0}];let _0x33e873=_0x1ec302[_0x44a4b1(0x13c)][_0x44a4b1(0x152)](_0xbbc609=>_0x44a4b1(0x15d)!=_0xbbc609[_0x44a4b1(0x147)]);_0x33e873[_0x44a4b1(0x13f)](_0x3b07c1=>{const _0x3d4e8f=_0x44a4b1;_0x3b07c1[_0x3d4e8f(0x152)]&&delete _0x3b07c1[_0x3d4e8f(0x152)],_0x3b07c1['record']||(_0x3b07c1[_0x3d4e8f(0x140)]={}),_0x3b07c1[_0x3d4e8f(0x144)]=!0x1,_0x3b07c1[_0x3d4e8f(0x140)][_0x3d4e8f(0x14c)]=!0x1;}),_0x1ec302['columns']=[{'type':_0x44a4b1(0x15d),'gutterName':_0x44a4b1(0x13a)},MetaApi[_0x44a4b1(0x159)](_0x44a4b1(0x150),'dataRevisionNo',_0x44a4b1(0x156),_0x44a4b1(0x13b),!0x1,!0x0,0x5a),MetaApi[_0x44a4b1(0x159)](_0x44a4b1(0x136),'dataRevisionAction',_0x44a4b1(0x163),_0x44a4b1(0x13b),!0x1,!0x1,0x5a),..._0x33e873],this['gridConfig']=_0x1ec302,super[_0x44a4b1(0x143)]&&await super[_0x44a4b1(0x143)]();}[a0_0x420c0e(0x137)](){const _0x4cbe6a=a0_0x420c0e;return html`
12
12
  <ox-grist
13
13
  id="ox-grist"
14
- .config=${this['gridConfig']}
15
- .mode=${'GRID'} auto-fetch
16
- .fetchHandler=${this['fetchHandler'][_0x204b7c(0x1a6)](this)}>
14
+ .config=${this[_0x4cbe6a(0x149)]}
15
+ .mode=${_0x4cbe6a(0x13e)} auto-fetch
16
+ .fetchHandler=${this[_0x4cbe6a(0x15f)][_0x4cbe6a(0x14b)](this)}>
17
17
  </ox-grist>
18
- `;}get[a0_0x1f9fd4(0x1b7)](){const _0x477e03=a0_0x1f9fd4;return this['shadowRoot'][_0x477e03(0x19d)](_0x477e03(0x191));}async[a0_0x1f9fd4(0x190)]({page:_0x1d8728=0x0,limit:_0x3c6d22=0x0,sortings:_0x16e9e8=[],filters:_0x2688b4=[]}){const _0x452db9=a0_0x1f9fd4;let _0x2d91e5=[{'name':_0x452db9(0x1a7),'operator':'eq','value':this['parent_id']},..._0x2688b4],_0x155edb=await MetaApi[_0x452db9(0x1a9)](this[_0x452db9(0x199)]+_0x452db9(0x196),_0x2d91e5,_0x16e9e8,_0x1d8728,_0x3c6d22,'\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');return _0x155edb[_0x452db9(0x1ad)]=_0x155edb[_0x452db9(0x1ad)]['map'](_0x324bf2=>({...JSON['parse'](_0x324bf2[_0x452db9(0x1a0)]),..._0x324bf2})),_0x155edb;}}customElements[a0_0x1f9fd4(0x18e)](a0_0x1f9fd4(0x18d),HistoryJsonListPopup);
18
+ `;}get[a0_0x420c0e(0x164)](){const _0x8c9ea8=a0_0x420c0e;return this[_0x8c9ea8(0x153)][_0x8c9ea8(0x157)](_0x8c9ea8(0x15b));}async['fetchHandler']({page:_0x4a8cd4=0x0,limit:_0x329456=0x0,sortings:_0x1df5f1=[],filters:_0x4cf100=[]}){const _0x157f76=a0_0x420c0e;let _0x4ca26d=[{'name':'originalId','operator':'eq','value':this[_0x157f76(0x166)]},..._0x4cf100],_0x54e34f=await MetaApi[_0x157f76(0x15c)](this[_0x157f76(0x14d)]+'Histories',_0x4ca26d,_0x1df5f1,_0x4a8cd4,_0x329456,_0x157f76(0x167));return _0x54e34f[_0x157f76(0x139)]=_0x54e34f['records'][_0x157f76(0x15a)](_0x2ef4d0=>({...JSON['parse'](_0x2ef4d0['historyJson']),..._0x2ef4d0})),_0x54e34f;}}customElements[a0_0x420c0e(0x15e)](a0_0x420c0e(0x14e),HistoryJsonListPopup);
@@ -1,4 +1,4 @@
1
- var a0_0x304213=a0_0x171f;(function(_0xb3d6a1,_0x2483c6){var _0x5397a9=a0_0x171f,_0x28b43e=_0xb3d6a1();while(!![]){try{var _0xd5ccb0=-parseInt(_0x5397a9(0xd6))/0x1*(parseInt(_0x5397a9(0xe5))/0x2)+-parseInt(_0x5397a9(0xdc))/0x3+parseInt(_0x5397a9(0xdd))/0x4+parseInt(_0x5397a9(0xd7))/0x5+parseInt(_0x5397a9(0xda))/0x6+-parseInt(_0x5397a9(0xde))/0x7+-parseInt(_0x5397a9(0xe2))/0x8*(-parseInt(_0x5397a9(0xd9))/0x9);if(_0xd5ccb0===_0x2483c6)break;else _0x28b43e['push'](_0x28b43e['shift']());}catch(_0x2da24c){_0x28b43e['push'](_0x28b43e['shift']());}}}(a0_0x616d,0x8515c));import{css,html}from'lit-element';import{i18next,localize}from'@things-factory/i18n-base';import{PageView}from'@things-factory/shell';function a0_0x616d(){var _0x315cfe=['please\x20wait','1714575vGbnzW','4014176QWjAYg','3269175fXHlCs','styles','tText','customElements','8sizcUN','render','context','9820XtBepm','Loading\x20...','loading\x20page','167cFYkJx','476400jHGXEz','loading-page','6558417fLnEjK','3456594EIAdbJ'];a0_0x616d=function(){return _0x315cfe;};return a0_0x616d();}import{TermsUtil}from'../utils/terms-util';class LoadingPage extends localize(i18next)(PageView){static get[a0_0x304213(0xdf)](){return[css`
1
+ var a0_0x503593=a0_0x4a91;(function(_0x4484bf,_0x4aa2a1){var _0x15c743=a0_0x4a91,_0x243e43=_0x4484bf();while(!![]){try{var _0x558f3e=parseInt(_0x15c743(0x1b1))/0x1*(parseInt(_0x15c743(0x1b6))/0x2)+-parseInt(_0x15c743(0x1bc))/0x3+-parseInt(_0x15c743(0x1b2))/0x4+-parseInt(_0x15c743(0x1af))/0x5*(-parseInt(_0x15c743(0x1b8))/0x6)+-parseInt(_0x15c743(0x1b3))/0x7*(parseInt(_0x15c743(0x1bd))/0x8)+-parseInt(_0x15c743(0x1b5))/0x9*(-parseInt(_0x15c743(0x1ad))/0xa)+parseInt(_0x15c743(0x1ab))/0xb*(-parseInt(_0x15c743(0x1aa))/0xc);if(_0x558f3e===_0x4aa2a1)break;else _0x243e43['push'](_0x243e43['shift']());}catch(_0x5c18a5){_0x243e43['push'](_0x243e43['shift']());}}}(a0_0x5b30,0x86c28));import{css,html}from'lit-element';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_0x503593(0x1ba)](){return[css`
2
2
  :host {
3
3
  display: block;
4
4
  background-color: var(--main-section-background-color);
@@ -41,11 +41,11 @@ var a0_0x304213=a0_0x171f;(function(_0xb3d6a1,_0x2483c6){var _0x5397a9=a0_0x171f
41
41
  display: none;
42
42
  }
43
43
  }
44
- `];}get[a0_0x304213(0xe4)](){var _0x3fc731=a0_0x304213;return{'title':_0x3fc731(0xe6),'actions':[]};}[a0_0x304213(0xe3)](){var _0x511bd2=a0_0x304213;return html`
45
- <h2>${TermsUtil[_0x511bd2(0xe0)](_0x511bd2(0xe7))}</h2>
44
+ `];}get[a0_0x503593(0x1b0)](){var _0x4efa92=a0_0x503593;return{'title':_0x4efa92(0x1b9),'actions':[]};}[a0_0x503593(0x1b4)](){var _0x2c1381=a0_0x503593;return html`
45
+ <h2>${TermsUtil['tText'](_0x2c1381(0x1ac))}</h2>
46
46
  <p page-description>
47
- ${TermsUtil[_0x511bd2(0xe0)](_0x511bd2(0xdb))}
47
+ ${TermsUtil['tText'](_0x2c1381(0x1a9))}
48
48
  </p>
49
49
 
50
50
  <img src="/assets/images/loading-page.png" />
51
- `;}}function a0_0x171f(_0x2b3b09,_0x302f1c){var _0x616d20=a0_0x616d();return a0_0x171f=function(_0x171f8e,_0x41cab0){_0x171f8e=_0x171f8e-0xd6;var _0x46056c=_0x616d20[_0x171f8e];return _0x46056c;},a0_0x171f(_0x2b3b09,_0x302f1c);}window[a0_0x304213(0xe1)]['define'](a0_0x304213(0xd8),LoadingPage);
51
+ `;}}function a0_0x4a91(_0x5eee06,_0x335d7f){var _0x5b3065=a0_0x5b30();return a0_0x4a91=function(_0x4a916e,_0x293d05){_0x4a916e=_0x4a916e-0x1a9;var _0x4fff2d=_0x5b3065[_0x4a916e];return _0x4fff2d;},a0_0x4a91(_0x5eee06,_0x335d7f);}function a0_0x5b30(){var _0x5f06cb=['2711500GZUbMZ','217JNiAFu','render','849051OPfyXs','140862qEHEnz','loading-page','3541110ZLlVmy','Loading\x20...','styles','customElements','496803jAiYky','14512hlsJCJ','please\x20wait','1001928BTlhLb','88ekuzdk','loading\x20page','80vHuuur','define','5arxdyP','context','11Wymlta'];a0_0x5b30=function(){return _0x5f06cb;};return a0_0x5b30();}window[a0_0x503593(0x1bb)][a0_0x503593(0x1ae)](a0_0x503593(0x1b7),LoadingPage);
@@ -1,4 +1,4 @@
1
- const a0_0xc9af80=a0_0x10ab;(function(_0x1f33ed,_0x352c6f){const _0x4c295b=a0_0x10ab,_0x434d68=_0x1f33ed();while(!![]){try{const _0x1eda7f=-parseInt(_0x4c295b(0xad))/0x1*(parseInt(_0x4c295b(0xc0))/0x2)+-parseInt(_0x4c295b(0xcf))/0x3*(parseInt(_0x4c295b(0xbc))/0x4)+parseInt(_0x4c295b(0xbf))/0x5+-parseInt(_0x4c295b(0xc4))/0x6+-parseInt(_0x4c295b(0xac))/0x7+parseInt(_0x4c295b(0xaa))/0x8*(-parseInt(_0x4c295b(0xaf))/0x9)+parseInt(_0x4c295b(0xbb))/0xa*(parseInt(_0x4c295b(0xb0))/0xb);if(_0x1eda7f===_0x352c6f)break;else _0x434d68['push'](_0x434d68['shift']());}catch(_0x16ff5e){_0x434d68['push'](_0x434d68['shift']());}}}(a0_0x3145,0xec8ba));import a0_0x1be8c8 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';function a0_0x3145(){const _0x12df03=['updateMultiple','574713QWaWEi','orgValue','studioPermission','template','8Wllygc','tButton','5129551wIIRUu','1618039NmPEGF','back','11226465eJTcAx','209QIKvgl','confirm','text.there_is_nothing_to_save','save','showAlertPopup','codeEditor','render','codeValueNew','firstUpdated','ox-input-code','define','3105820dAKMrt','36rOCRUk','shadowRoot','title','6479165lPKugY','2cHWgOm','query','errors','dispatchEvent','5433870zvEMOv','menu','updateMultipleMenu','recordId','info','bind','notify','findOne','value','styles'];a0_0x3145=function(){return _0x12df03;};return a0_0x3145();}function a0_0x10ab(_0x44afdc,_0x511fe0){const _0x3145ba=a0_0x3145();return a0_0x10ab=function(_0x10ab2f,_0x23043d){_0x10ab2f=_0x10ab2f-0xaa;let _0x4727fd=_0x3145ba[_0x10ab2f];return _0x4727fd;},a0_0x10ab(_0x44afdc,_0x511fe0);}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_0xc9af80(0xcd)](){return[ScrollbarStyles,css`
1
+ const a0_0x276678=a0_0x9006;(function(_0x3b5937,_0x1acf20){const _0x381ee1=a0_0x9006,_0x4cfa6a=_0x3b5937();while(!![]){try{const _0x40ea28=-parseInt(_0x381ee1(0x1b9))/0x1*(parseInt(_0x381ee1(0x1cb))/0x2)+-parseInt(_0x381ee1(0x1bb))/0x3*(parseInt(_0x381ee1(0x1ba))/0x4)+parseInt(_0x381ee1(0x1b1))/0x5*(parseInt(_0x381ee1(0x1be))/0x6)+-parseInt(_0x381ee1(0x1d0))/0x7+-parseInt(_0x381ee1(0x1ca))/0x8*(parseInt(_0x381ee1(0x1b2))/0x9)+-parseInt(_0x381ee1(0x1b3))/0xa*(-parseInt(_0x381ee1(0x1bf))/0xb)+parseInt(_0x381ee1(0x1af))/0xc;if(_0x40ea28===_0x1acf20)break;else _0x4cfa6a['push'](_0x4cfa6a['shift']());}catch(_0x34d276){_0x4cfa6a['push'](_0x4cfa6a['shift']());}}}(a0_0x5bf6,0x73a50));import a0_0x1ae00e from'graphql-tag';import{store}from'@operato/shell';function a0_0x5bf6(){const _0x2e6e06=['error.invalid\x20license\x20key','errors','updateMultipleMenu','1596931DczddZ','styles','info','showAlertPopup','22727700RwfKPK','dispatchEvent','1370835RBzEJN','1201977OVonHO','18090ftLHvk','back','properties','getState','text.nothing_changed','codeEditor','625034tiZYxC','1156516ppaRED','6TrpeuL','save','value','12Cbvxaf','1606jboTMS','recordId','ox-input-code','confirm','shadowRoot','define','notify','firstUpdated','title','text.there_is_nothing_to_save','codeValueNew','48Dkuahj','2kXUEyv','metaUI'];a0_0x5bf6=function(){return _0x2e6e06;};return a0_0x5bf6();}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_0x9006(_0x541cee,_0xe7089d){const _0x5bf67c=a0_0x5bf6();return a0_0x9006=function(_0x900635,_0x57a5d6){_0x900635=_0x900635-0x1ad;let _0x3cef61=_0x5bf67c[_0x900635];return _0x3cef61;},a0_0x9006(_0x541cee,_0xe7089d);}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_0x276678(0x1b5)](){return{'title':String,'recordId':String};}static get[a0_0x276678(0x1d1)](){return[ScrollbarStyles,css`
2
2
  :host {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -26,13 +26,13 @@ const a0_0xc9af80=a0_0x10ab;(function(_0x1f33ed,_0x352c6f){const _0x4c295b=a0_0x
26
26
  height: var(--button-container-height);
27
27
  text-align: right;
28
28
  padding-right: 12px;
29
- }`];}async[a0_0xc9af80(0xb8)](){const _0x57c682=a0_0xc9af80;super[_0x57c682(0xb8)]&&await super['firstUpdated']();let _0x2dc0df=await MetaApi[_0x57c682(0xcb)](_0x57c682(0xc5),this[_0x57c682(0xc7)],_0x57c682(0xd2)),_0x1eb8ba=_0x2dc0df&&_0x2dc0df[_0x57c682(0xd2)]||'';this[_0x57c682(0xb5)][_0x57c682(0xcc)]=_0x1eb8ba,this[_0x57c682(0xb5)]['orgValue']=this[_0x57c682(0xb5)][_0x57c682(0xcc)];}[a0_0xc9af80(0xb6)](){const _0x5c1206=a0_0xc9af80;return html`
30
- <legend>${this[_0x5c1206(0xbe)]}</legend>
31
- <ox-input-code mode="javascript" value=${this[_0x5c1206(0xb7)]} tab-size="2" tab-as-space="true"></ox-input-code>
29
+ }`];}async['firstUpdated'](){const _0x48f6a8=a0_0x276678;super['firstUpdated']&&await super[_0x48f6a8(0x1c6)]();let _0x57e7b5=await MetaApi['findOne']('menu',this[_0x48f6a8(0x1c0)],'template'),_0x356b8b=_0x57e7b5&&_0x57e7b5['template']||'';this['codeEditor']['value']=_0x356b8b,this[_0x48f6a8(0x1b8)]['orgValue']=this['codeEditor']['value'];}['render'](){const _0x23414b=a0_0x276678;return html`
30
+ <legend>${this[_0x23414b(0x1c7)]}</legend>
31
+ <ox-input-code mode="javascript" value=${this[_0x23414b(0x1c9)]} 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[_0x5c1206(0xab)](_0x5c1206(0xb3))}" @click=${this[_0x5c1206(0xb3)][_0x5c1206(0xc9)](this)}></mwc-button> -->
34
- </div>`;}get[a0_0xc9af80(0xb5)](){const _0x418bfb=a0_0xc9af80;return this[_0x418bfb(0xbd)]['querySelector'](_0x418bfb(0xb9));}async[a0_0xc9af80(0xb3)](){const _0xed7970=a0_0xc9af80;if(this[_0xed7970(0xb5)][_0xed7970(0xd0)]==this[_0xed7970(0xb5)][_0xed7970(0xcc)])return void MetaApi[_0xed7970(0xb4)]('text.nothing_changed',_0xed7970(0xb2),_0xed7970(0xc8),_0xed7970(0xb1));if(0x0==store['getState']()['metaUI'][_0xed7970(0xd1)])return void document[_0xed7970(0xc3)](new CustomEvent(_0xed7970(0xca),{'detail':{'level':'error','message':i18next['t']('error.invalid\x20license\x20key')}}));if((await client[_0xed7970(0xc1)]({'query':a0_0x1be8c8`
33
+ <!-- <mwc-button raised label="${TermsUtil['tButton'](_0x23414b(0x1bc))}" @click=${this[_0x23414b(0x1bc)]['bind'](this)}></mwc-button> -->
34
+ </div>`;}get[a0_0x276678(0x1b8)](){const _0x4d44fd=a0_0x276678;return this[_0x4d44fd(0x1c3)]['querySelector'](_0x4d44fd(0x1c1));}async[a0_0x276678(0x1bc)](){const _0x1569b0=a0_0x276678;if(this[_0x1569b0(0x1b8)]['orgValue']==this['codeEditor'][_0x1569b0(0x1bd)])return void MetaApi[_0x1569b0(0x1ae)](_0x1569b0(0x1b7),_0x1569b0(0x1c8),_0x1569b0(0x1ad),_0x1569b0(0x1c2));if(0x0==store[_0x1569b0(0x1b6)]()[_0x1569b0(0x1cc)]['studioPermission'])return void document[_0x1569b0(0x1b0)](new CustomEvent(_0x1569b0(0x1c5),{'detail':{'level':'error','message':i18next['t'](_0x1569b0(0x1cd))}}));if((await client['query']({'query':a0_0x1ae00e`
35
35
  query ($id: String!) {
36
36
  metaUITemplateIsOverLimit(id: $id)
37
37
  }
38
- `,'variables':{'id':this[_0xed7970(0xc7)]}}))[_0xed7970(0xc2)])return;let _0x590859=this[_0xed7970(0xb5)][_0xed7970(0xcc)],_0x4f3cd7=[{'id':this[_0xed7970(0xc7)],'template':_0x590859,'cuFlag':'M'}];await MetaApi[_0xed7970(0xce)](_0xed7970(0xc6),_0x4f3cd7)&&history[_0xed7970(0xae)]();}}customElements[a0_0xc9af80(0xba)]('dynamic-menu-template',DynamicMenuTemplate);
38
+ `,'variables':{'id':this[_0x1569b0(0x1c0)]}}))[_0x1569b0(0x1ce)])return;let _0xf333db=this[_0x1569b0(0x1b8)][_0x1569b0(0x1bd)],_0x25d0c7=[{'id':this['recordId'],'template':_0xf333db,'cuFlag':'M'}];await MetaApi['updateMultiple'](_0x1569b0(0x1cf),_0x25d0c7)&&history[_0x1569b0(0x1b4)]();}}customElements[a0_0x276678(0x1c4)]('dynamic-menu-template',DynamicMenuTemplate);