@things-factory/meta-ui 6.0.6 → 6.0.12
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.
- package/client/actions/main.js +3 -3
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +9 -9
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/entity/config-entity.js +29 -29
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +6 -6
- package/client/reducers/main.js +1 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +88 -73
- package/client/utils/service-util.js +12 -12
- package/client/utils/terms-util.js +2 -2
- package/client/utils/ui-util.js +1 -1
- package/client/utils/value-util.js +1 -1
- package/client/viewparts/dynamic-menu-landscape-styles.js +2 -2
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +6 -6
- package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
- package/client/viewparts/dynamic-menu-portrait.js +10 -10
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/dist-server/constants/error-code.js +1 -1
- package/dist-server/errors/license-error.js +1 -1
- package/dist-server/routes.js +1 -1
- package/dist-server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/dist-server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/dist-server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/dist-server/service/grid-personalize/grid-personalize.js +1 -1
- package/dist-server/service/meta-secret/meta-resolver.js +1 -1
- package/dist-server/service/set-translations/set-translation-resolver.js +1 -1
- package/package.json +5 -5
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
const a0_0x441103=a0_0x27a1;(function(_0x10f4d6,_0x3badb3){const _0x3afbaf=a0_0x27a1,_0x47487d=_0x10f4d6();while(!![]){try{const _0xceb768=-parseInt(_0x3afbaf(0x20a))/0x1*(-parseInt(_0x3afbaf(0x1d6))/0x2)+-parseInt(_0x3afbaf(0x1a4))/0x3+parseInt(_0x3afbaf(0x203))/0x4+parseInt(_0x3afbaf(0x200))/0x5*(parseInt(_0x3afbaf(0x1c3))/0x6)+parseInt(_0x3afbaf(0x1f1))/0x7*(parseInt(_0x3afbaf(0x19c))/0x8)+-parseInt(_0x3afbaf(0x1e4))/0x9*(-parseInt(_0x3afbaf(0x1ad))/0xa)+-parseInt(_0x3afbaf(0x1ef))/0xb*(parseInt(_0x3afbaf(0x209))/0xc);if(_0xceb768===_0x3badb3)break;else _0x47487d['push'](_0x47487d['shift']());}catch(_0x15ae58){_0x47487d['push'](_0x47487d['shift']());}}}(a0_0x529d,0xc7e6b));import{store}from'@things-factory/shell';function a0_0x27a1(_0x52e561,_0x401ddf){const _0x529dc3=a0_0x529d();return a0_0x27a1=function(_0x27a17e,_0x5baf8d){_0x27a17e=_0x27a17e-0x196;let _0x2639c9=_0x529dc3[_0x27a17e];return _0x2639c9;},a0_0x27a1(_0x52e561,_0x401ddf);}import{getCodeByName}from'@things-factory/code-base';function a0_0x529d(){const _0x2c3655=['includes','tText','__dirty__','question','menus','split','findOne','deleteListByIds','template','6301966YoCXSe','record','1569463gCpIvE','menuType','category','creator','tMenu','__dirtyfields__','forEach','map','searchMenuGridPersnalTemplate','parse','success\x20to\x20delete','HOME','_config','items','children','5XVjEdM','menu.id','data','2681632KQHllQ','routing','checkClientError','getSelectedIdList','push','extensions','60KAJttX','607WkxhJX','type','noteq','query','Graphql\x20Error','myDynamicMenus','text.are_you_sure','key','56XzCHqY','buildArgs','isNotEmpty','text.nothing_selected','success\x20to\x20save','unshift','cancel','rank','346131epAfwF','info','hidden','total','iconPath','runScenario','cuFlag','length','id,template','878910zsbjMX','resourceUrl','searchMyDynamicMenus','networkError','exportableData','object','arrangeMenuRoutes','__selected__','getCodeByScenario','columns','deleteListByGristSelected','name','searchByPagination','dirtyRecords','codeItems','parent','undefined','\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20parent\x20{\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}\x0a\x20\x20\x20\x20\x20\x20children{\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\x20description\x0a\x20\x20\x20\x20\x20\x20\x20\x20menuType\x0a\x20\x20\x20\x20\x20\x20\x20\x20category\x0a\x20\x20\x20\x20\x20\x20\x20\x20routingType\x0a\x20\x20\x20\x20\x20\x20\x20\x20routing\x0a\x20\x20\x20\x20\x20\x20\x20\x20resourceUrl\x0a\x20\x20\x20\x20\x20\x20\x20\x20iconPath\x0a\x20\x20\x20\x20\x20\x20\x20\x20hiddenFlag\x0a\x20\x20\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20name\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\x20\x20routingType\x0a\x20\x20\x20\x20\x20\x20routing\x0a\x20\x20\x20\x20\x20\x20resourceUrl\x0a\x20\x20\x20\x20\x20\x20iconPath\x0a\x20\x20\x20\x20','text.nothing_changed','routingType','text.NOTHING_CHANGED','callScenario','3545562ZbbOhY','imex','showAlertPopup','text.there_is_nothing_to_delete','updater','gridPersonalizeTemplates','showToast','__origin__','updateMultiple','SCREEN','gutter','updateMultipleData','filter','reduce','dispatch','records','MENU','value','success\x20to\x20process','1162bNjJbe','group','GROUP','description','result','hiddenFlag','confirm','fetch','showGraphqlException','message','showGraphqlErrorResponse','error','title','errors','63swGEdE','delete'];a0_0x529d=function(){return _0x2c3655;};return a0_0x529d();}import{EXPORT}from'@things-factory/export-base';import{gqlBuilder}from'@things-factory/utils';import{client}from'@operato/graphql';import{TermsUtil}from'./terms-util';import{UiUtil}from'./ui-util';import a0_0x10e0ff from'graphql-tag';import{ValueUtil}from'./value-util';export class ServiceUtil{static async[a0_0x441103(0x1bb)](_0x1859b8){return await getCodeByName(_0x1859b8);}static async['getCodeSelectorData'](_0x170acd){const _0x44fa13=a0_0x441103;let _0x20ee9b=(await ServiceUtil['codeItems'](_0x170acd))[_0x44fa13(0x1f8)](_0x1931bc=>({'value':_0x1931bc[_0x44fa13(0x1b8)],'display':_0x1931bc[_0x44fa13(0x1d9)]}));return _0x20ee9b[_0x44fa13(0x1a1)]({'value':'','display':''}),_0x20ee9b;}static async[a0_0x441103(0x1b5)](_0x42e605,_0x3fec94){const _0x413919=a0_0x441103;let _0x76fbe7=await ServiceUtil[_0x413919(0x1c2)](null,_0x42e605,_0x3fec94);return _0x76fbe7[_0x413919(0x1a1)]({'name':'','description':''}),_0x76fbe7['map'](_0xda9de8=>({'value':_0xda9de8[_0x413919(0x1b8)],'display':_0xda9de8[_0x413919(0x1d9)]}));}static async[a0_0x441103(0x199)](){const _0xab4d50=a0_0x441103;let _0x3095f3=await ServiceUtil[_0xab4d50(0x1af)]();return null!=_0x3095f3?ServiceUtil[_0xab4d50(0x1b3)](_0x3095f3):null;}static async[a0_0x441103(0x1f9)](_0x105b20){const _0x5b3d10=a0_0x441103;let _0x53a73c=[{'name':_0x5b3d10(0x201),'operator':'eq','value':_0x105b20}],_0x273b2a=await ServiceUtil[_0x5b3d10(0x1b9)](_0x5b3d10(0x1c8),_0x53a73c,[],0x0,0x0,_0x5b3d10(0x1ac));return 0x0==_0x273b2a[_0x5b3d10(0x1a7)]?{}:{'id':_0x273b2a[_0x5b3d10(0x1d2)][0x0]['id'],'template':JSON[_0x5b3d10(0x1fa)](_0x273b2a[_0x5b3d10(0x1d2)][0x0][_0x5b3d10(0x1ee)])};}static[a0_0x441103(0x1b3)](_0x1155bf){const _0x364abb=a0_0x441103;let _0x219798=[];_0x1155bf[_0x364abb(0x1f7)](_0x485842=>{const _0x3b34f1=_0x364abb;_0x219798['push'](_0x485842),_0x485842[_0x3b34f1(0x1ff)]&&(_0x485842[_0x3b34f1(0x1ff)]['sort'](function(_0x390d53,_0x1011ba){const _0xa8c610=_0x3b34f1;return _0x390d53[_0xa8c610(0x1a3)]-_0x1011ba[_0xa8c610(0x1a3)];}),_0x485842['children']['forEach'](_0xc1ab46=>{const _0x49ccac=_0x3b34f1;0x1!=_0xc1ab46[_0x49ccac(0x1db)]&&(_0xc1ab46[_0x49ccac(0x1bc)]=_0x485842,_0x219798[_0x49ccac(0x207)](_0xc1ab46));}));});let _0x57165b=_0x219798[_0x364abb(0x1f8)](_0x27ce5b=>_0x364abb(0x1d8)==_0x27ce5b[_0x364abb(0x1f2)]||_0x364abb(0x1d3)==_0x27ce5b[_0x364abb(0x1f2)]?{'id':_0x27ce5b['id'],'parent':!0x0,'name':TermsUtil[_0x364abb(0x1f5)](_0x27ce5b[_0x364abb(0x1b8)]),'icon':_0x27ce5b['iconPath'],'type':'GROUP'==_0x27ce5b['menuType']?_0x364abb(0x1d7):'','menus':[]}:{'id':'0'})['filter'](_0x156b23=>'0'!=_0x156b23['id']),_0x3b901e=_0x219798[_0x364abb(0x1f8)](_0x3fb017=>{const _0x5839e0=_0x364abb;if(_0x5839e0(0x1cc)==_0x3fb017[_0x5839e0(0x1f2)]||'HIDDEN-PAGE'==_0x3fb017[_0x5839e0(0x1f2)]){let _0x767593=_0x57165b['find'](_0x30a42d=>_0x30a42d['id']==_0x3fb017[_0x5839e0(0x1bc)]['id']);if(_0x767593){let _0x46ff7a=TermsUtil[_0x5839e0(0x1f5)](_0x3fb017[_0x5839e0(0x1b8)]);return _0x5839e0(0x1cc)==_0x3fb017[_0x5839e0(0x1f2)]&&_0x767593['menus']['push']({'id':_0x3fb017['id'],'name':_0x46ff7a,'path':_0x3fb017['routing'],'icon':_0x3fb017[_0x5839e0(0x1a8)]}),{'id':_0x3fb017['id'],'parent':!0x1,'parent_id':_0x767593['id'],'title':_0x46ff7a,'tagname':_0x3fb017[_0x5839e0(0x1f3)],'page':_0x3fb017['routing'],'template':_0x3fb017['resourceUrl'],'routing_type':_0x3fb017[_0x5839e0(0x1c0)]};}return{'id':'0'};}return _0x5839e0(0x1fc)==_0x3fb017[_0x5839e0(0x1f2)]?{'id':_0x3fb017['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil[_0x5839e0(0x1f5)](_0x3fb017[_0x5839e0(0x1b8)]),'tagname':_0x3fb017['category'],'page':_0x3fb017[_0x5839e0(0x204)],'template':_0x3fb017[_0x5839e0(0x1ae)],'routing_type':_0x3fb017[_0x5839e0(0x1c0)]}:{'id':'0'};})[_0x364abb(0x1cf)](_0x18ea0a=>null!=_0x18ea0a&&'0'!=_0x18ea0a['id']);return{'menus':_0x57165b,'routes':_0x3b901e};}static async[a0_0x441103(0x1af)](){const _0xa93376=a0_0x441103;let _0x11c368=await ServiceUtil[_0xa93376(0x1b9)](_0xa93376(0x1ea),[{'name':_0xa93376(0x1db),'operator':_0xa93376(0x196),'value':!0x0},{'name':_0xa93376(0x1f2),'operator':'in','value':[_0xa93376(0x1fc),'MENU',_0xa93376(0x1d8)]}],[{'name':_0xa93376(0x1a3)}],0x0,0x0,_0xa93376(0x1be));return _0x11c368?_0x11c368[_0xa93376(0x1d2)]:[];}static async[a0_0x441103(0x1e0)](_0x42ca7a){const _0x137a46=a0_0x441103;if(_0x42ca7a[_0x137a46(0x1e3)]&&_0x42ca7a[_0x137a46(0x1e3)][_0x137a46(0x1ab)]>0x0){let _0x559ea2=_0x42ca7a[_0x137a46(0x1e3)][0x0],_0x4ead64=_0x559ea2[_0x137a46(0x1df)],_0x335c95=_0x559ea2[_0x137a46(0x1df)];_0x559ea2[_0x137a46(0x208)]&&(_0x335c95=_0x559ea2[_0x137a46(0x208)]['code']),await UiUtil[_0x137a46(0x1c5)](_0x335c95,_0x4ead64,'error',_0x137a46(0x1dc));}}static async[a0_0x441103(0x1de)](_0xb9bef9){const _0x5efa47=a0_0x441103;_0xb9bef9&&(_0xb9bef9['networkError']&&_0xb9bef9['networkError'][_0x5efa47(0x1da)]?await ServiceUtil['showGraphqlErrorResponse'](_0xb9bef9[_0x5efa47(0x1b0)][_0x5efa47(0x1da)]):await UiUtil[_0x5efa47(0x1c5)](_0x5efa47(0x198),_0xb9bef9['message'],_0x5efa47(0x1e1),_0x5efa47(0x1dc)));}static async[a0_0x441103(0x1b1)](_0x17a4b2,_0x183f1b,_0x50a409){const _0x541294=a0_0x441103;var _0x4236b9=_0x50a409[_0x541294(0x1fd)][_0x541294(0x1b6)][_0x541294(0x1cf)](_0x47bb07=>'gutter'!==_0x47bb07[_0x541294(0x20b)]&&void 0x0!==_0x47bb07[_0x541294(0x1f0)]&&void 0x0!==_0x47bb07[_0x541294(0x1c4)]&&!0x0!==_0x47bb07[_0x541294(0x1a6)])['map'](_0x2babe7=>_0x2babe7[_0x541294(0x1c4)]),_0x10e1e0=_0x50a409[_0x541294(0x202)][_0x541294(0x1d2)][_0x541294(0x1f8)](_0x3456b8=>({..._0x50a409[_0x541294(0x1fd)][_0x541294(0x1b6)][_0x541294(0x1cf)](_0x16f11e=>_0x541294(0x1cd)!==_0x16f11e[_0x541294(0x20b)]&&void 0x0!==_0x16f11e[_0x541294(0x1f0)]&&void 0x0!==_0x16f11e[_0x541294(0x1c4)]&&!0x0!==_0x16f11e[_0x541294(0x1a6)])[_0x541294(0x1d0)]((_0x2d0e09,_0x3690a3)=>(_0x2d0e09[_0x3690a3[_0x541294(0x1c4)][_0x541294(0x19b)]]=_0x3690a3[_0x541294(0x1c4)][_0x541294(0x19b)][_0x541294(0x1eb)]('.')[_0x541294(0x1d0)]((_0x5ba430,_0x5b7f20)=>_0x5ba430&&_0x541294(0x1bd)!==_0x5ba430[_0x5b7f20]?_0x5ba430[_0x5b7f20]:void 0x0,_0x3456b8),_0x2d0e09),{})}));if(!_0x17a4b2)return{'header':_0x4236b9,'data':_0x10e1e0};store[_0x541294(0x1d1)]({'type':EXPORT,'exportable':{'extension':'xlsx','name':_0x183f1b,'data':{'header':_0x4236b9,'data':_0x10e1e0}}});}static async[a0_0x441103(0x1b9)](_0x33fb44,_0x52ee42,_0xf11116,_0x1ea7f7,_0x5f023b,_0xc2e649){const _0x332f36=a0_0x441103;try{const _0x38fbf6=await client[_0x332f36(0x197)]({'query':a0_0x10e0ff`
|
|
1
|
+
const a0_0x4b2e15=a0_0x398c;(function(_0x2d7edd,_0x4ab096){const _0x19beed=a0_0x398c,_0x4e59d0=_0x2d7edd();while(!![]){try{const _0x1328f5=-parseInt(_0x19beed(0x208))/0x1+parseInt(_0x19beed(0x227))/0x2+parseInt(_0x19beed(0x217))/0x3*(-parseInt(_0x19beed(0x226))/0x4)+parseInt(_0x19beed(0x22a))/0x5+-parseInt(_0x19beed(0x220))/0x6+-parseInt(_0x19beed(0x1f1))/0x7+parseInt(_0x19beed(0x233))/0x8;if(_0x1328f5===_0x4ab096)break;else _0x4e59d0['push'](_0x4e59d0['shift']());}catch(_0x50d08a){_0x4e59d0['push'](_0x4e59d0['shift']());}}}(a0_0xc9ef,0x759c7));import{store}from'@things-factory/shell';import{getCodeByName}from'@things-factory/code-base';import{EXPORT}from'@things-factory/export-base';import{gqlBuilder}from'@things-factory/utils';function a0_0x398c(_0x5a26de,_0x1d7fd3){const _0xc9ef2b=a0_0xc9ef();return a0_0x398c=function(_0x398c51,_0x25410f){_0x398c51=_0x398c51-0x1ee;let _0x31941d=_0xc9ef2b[_0x398c51];return _0x31941d;},a0_0x398c(_0x5a26de,_0x1d7fd3);}import{client}from'@operato/graphql';import{TermsUtil}from'./terms-util';import{UiUtil}from'./ui-util';import a0_0x4ac1a6 from'graphql-tag';import{ValueUtil}from'./value-util';function a0_0xc9ef(){const _0x3feda6=['\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20parent\x20{\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}\x0a\x20\x20\x20\x20\x20\x20children{\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\x20description\x0a\x20\x20\x20\x20\x20\x20\x20\x20menuType\x0a\x20\x20\x20\x20\x20\x20\x20\x20category\x0a\x20\x20\x20\x20\x20\x20\x20\x20routingType\x0a\x20\x20\x20\x20\x20\x20\x20\x20routing\x0a\x20\x20\x20\x20\x20\x20\x20\x20resourceUrl\x0a\x20\x20\x20\x20\x20\x20\x20\x20iconPath\x0a\x20\x20\x20\x20\x20\x20\x20\x20hiddenFlag\x0a\x20\x20\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20name\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\x20\x20routingType\x0a\x20\x20\x20\x20\x20\x20routing\x0a\x20\x20\x20\x20\x20\x20resourceUrl\x0a\x20\x20\x20\x20\x20\x20iconPath\x0a\x20\x20\x20\x20','sort','gridPersonalizeTemplates','question','creator','columns','push','text.are_you_sure','split','errors','key','updater','cancel','arrangeMenuRoutes','extensions','data','exportableData','items','forEach','selected','showToast','dispatch','myDynamicMenus','text.nothing_selected','total','name','HOME','template','xlsx','6693099yTLYrM','MENU','unshift','showAlertPopup','tText','buildArgs','searchByPagination','children','networkError','checkClientError','gutter','__dirty__','showGraphqlException','searchMyDynamicMenus','object','__origin__','success\x20to\x20process','patchesForUpdateMultiple','deleteListByGristSelected','isEmpty','runScenario','hidden','text.NOTHING_CHANGED','143363YVwmHN','menu.id','confirm','error','query','info','HIDDEN-PAGE','codeItems','Graphql\x20Error','filter','GROUP','record','delete','description','__dirtyfields__','189330MyBAcS','updateMultiple','menus','records','routingType','parse','showGraphqlErrorResponse','code','_config','3679404awhEza','rank','map','updateMultipleData','button.','text.there_is_nothing_to_delete','24pphGQO','776650dIYCmJ','updatedAt','searchMenuGridPersnalTemplate','2410445cFmLSg','success\x20to\x20save','menuType','value','fetch','noteq','routing','tMenu','createdAt','13621880hjBhUr','SCREEN','category','undefined','iconPath','group','reduce','text.nothing_changed','message','parent','resourceUrl','length','success\x20to\x20delete','type','deleteListByIds','callScenario','isNotEmpty','imex'];a0_0xc9ef=function(){return _0x3feda6;};return a0_0xc9ef();}export class ServiceUtil{static async[a0_0x4b2e15(0x20f)](_0x830b4a){return await getCodeByName(_0x830b4a);}static async['getCodeSelectorData'](_0x50255e){const _0x3b6771=a0_0x4b2e15;let _0x5430df=(await ServiceUtil[_0x3b6771(0x20f)](_0x50255e))[_0x3b6771(0x222)](_0x50b6fe=>({'value':_0x50b6fe[_0x3b6771(0x25e)],'display':_0x50b6fe[_0x3b6771(0x215)]}));return _0x5430df[_0x3b6771(0x1f3)]({'value':'','display':''}),_0x5430df;}static async['getCodeByScenario'](_0x4f3d3e,_0x8928c1){const _0x383b3e=a0_0x4b2e15;let _0x156115=await ServiceUtil[_0x383b3e(0x242)](null,_0x4f3d3e,_0x8928c1);return _0x156115[_0x383b3e(0x1f3)]({'name':'','description':''}),_0x156115[_0x383b3e(0x222)](_0x18a088=>({'value':_0x18a088[_0x383b3e(0x25e)],'display':_0x18a088[_0x383b3e(0x215)]}));}static async[a0_0x4b2e15(0x25b)](){const _0x18beef=a0_0x4b2e15;let _0x17a248=await ServiceUtil[_0x18beef(0x1fe)]();return null!=_0x17a248?ServiceUtil[_0x18beef(0x252)](_0x17a248):null;}static async[a0_0x4b2e15(0x229)](_0x43bccb){const _0x175756=a0_0x4b2e15;let _0x44d7ee=[{'name':_0x175756(0x209),'operator':'eq','value':_0x43bccb}],_0x53e260=await ServiceUtil[_0x175756(0x1f7)](_0x175756(0x247),_0x44d7ee,[],0x0,0x0,'id,template');return 0x0==_0x53e260[_0x175756(0x25d)]?{}:{'id':_0x53e260[_0x175756(0x21a)][0x0]['id'],'template':JSON[_0x175756(0x21c)](_0x53e260['records'][0x0][_0x175756(0x1ef)])};}static[a0_0x4b2e15(0x252)](_0x21453a){const _0x65fa52=a0_0x4b2e15;let _0xa87d68=[];_0x21453a[_0x65fa52(0x257)](_0x591bde=>{const _0x14816d=_0x65fa52;_0xa87d68[_0x14816d(0x24b)](_0x591bde),_0x591bde[_0x14816d(0x1f8)]&&(_0x591bde['children'][_0x14816d(0x246)](function(_0x2473c9,_0x4df07a){const _0x395a26=_0x14816d;return _0x2473c9[_0x395a26(0x221)]-_0x4df07a[_0x395a26(0x221)];}),_0x591bde[_0x14816d(0x1f8)][_0x14816d(0x257)](_0x5563bb=>{const _0x3de395=_0x14816d;0x1!=_0x5563bb['hiddenFlag']&&(_0x5563bb['parent']=_0x591bde,_0xa87d68[_0x3de395(0x24b)](_0x5563bb));}));});let _0x46a6ef=_0xa87d68[_0x65fa52(0x222)](_0x48c74c=>'GROUP'==_0x48c74c['menuType']||'MENU'==_0x48c74c[_0x65fa52(0x22c)]?{'id':_0x48c74c['id'],'parent':!0x0,'name':TermsUtil[_0x65fa52(0x231)](_0x48c74c[_0x65fa52(0x25e)]),'icon':_0x48c74c['iconPath'],'type':_0x65fa52(0x212)==_0x48c74c['menuType']?_0x65fa52(0x238):'','menus':[]}:{'id':'0'})[_0x65fa52(0x211)](_0x3ad01f=>'0'!=_0x3ad01f['id']),_0x35adb8=_0xa87d68[_0x65fa52(0x222)](_0xf25f90=>{const _0x116129=_0x65fa52;if('SCREEN'==_0xf25f90['menuType']||_0x116129(0x20e)==_0xf25f90[_0x116129(0x22c)]){let _0x16a8cf=_0x46a6ef['find'](_0x5c923b=>_0x5c923b['id']==_0xf25f90[_0x116129(0x23c)]['id']);if(_0x16a8cf){let _0x22ba79=TermsUtil[_0x116129(0x231)](_0xf25f90['name']);return _0x116129(0x234)==_0xf25f90['menuType']&&_0x16a8cf[_0x116129(0x219)][_0x116129(0x24b)]({'id':_0xf25f90['id'],'name':_0x22ba79,'path':_0xf25f90[_0x116129(0x230)],'icon':_0xf25f90[_0x116129(0x237)]}),{'id':_0xf25f90['id'],'parent':!0x1,'parent_id':_0x16a8cf['id'],'title':_0x22ba79,'tagname':_0xf25f90[_0x116129(0x235)],'page':_0xf25f90[_0x116129(0x230)],'template':_0xf25f90[_0x116129(0x23d)],'routing_type':_0xf25f90[_0x116129(0x21b)]};}return{'id':'0'};}return'HOME'==_0xf25f90[_0x116129(0x22c)]?{'id':_0xf25f90['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil[_0x116129(0x231)](_0xf25f90[_0x116129(0x25e)]),'tagname':_0xf25f90[_0x116129(0x235)],'page':_0xf25f90[_0x116129(0x230)],'template':_0xf25f90[_0x116129(0x23d)],'routing_type':_0xf25f90[_0x116129(0x21b)]}:{'id':'0'};})[_0x65fa52(0x211)](_0x4a879e=>null!=_0x4a879e&&'0'!=_0x4a879e['id']);return{'menus':_0x46a6ef,'routes':_0x35adb8};}static async['searchMyDynamicMenus'](){const _0x4e91c2=a0_0x4b2e15;let _0x588cfb=await ServiceUtil['searchByPagination']('menus',[{'name':'hiddenFlag','operator':_0x4e91c2(0x22f),'value':!0x0},{'name':'menuType','operator':'in','value':[_0x4e91c2(0x1ee),_0x4e91c2(0x1f2),'GROUP']}],[{'name':_0x4e91c2(0x221)}],0x0,0x0,_0x4e91c2(0x245));return _0x588cfb?_0x588cfb[_0x4e91c2(0x21a)]:[];}static async['showGraphqlErrorResponse'](_0x47a2fe){const _0x28f037=a0_0x4b2e15;if(_0x47a2fe[_0x28f037(0x24e)]&&_0x47a2fe[_0x28f037(0x24e)][_0x28f037(0x23e)]>0x0){let _0x4fbed5=_0x47a2fe[_0x28f037(0x24e)][0x0],_0x43dc2a=_0x4fbed5[_0x28f037(0x23b)],_0x1ca481=_0x4fbed5['message'];_0x4fbed5[_0x28f037(0x253)]&&(_0x1ca481=_0x4fbed5[_0x28f037(0x253)][_0x28f037(0x21e)]),await UiUtil[_0x28f037(0x1f4)](_0x1ca481,_0x43dc2a,'error',_0x28f037(0x20a));}}static async[a0_0x4b2e15(0x1fd)](_0x25d4f5){const _0x2f139d=a0_0x4b2e15;_0x25d4f5&&(_0x25d4f5['networkError']&&_0x25d4f5['networkError']['result']?await ServiceUtil['showGraphqlErrorResponse'](_0x25d4f5[_0x2f139d(0x1f9)]['result']):await UiUtil[_0x2f139d(0x1f4)](_0x2f139d(0x210),_0x25d4f5[_0x2f139d(0x23b)],_0x2f139d(0x20b),_0x2f139d(0x20a)));}static async[a0_0x4b2e15(0x255)](_0x1cc35e,_0x14c150,_0x48abb8){const _0x4c269a=a0_0x4b2e15;var _0x4b2ee4=_0x48abb8[_0x4c269a(0x21f)][_0x4c269a(0x24a)]['filter'](_0x27c96f=>_0x4c269a(0x1fb)!==_0x27c96f[_0x4c269a(0x240)]&&void 0x0!==_0x27c96f[_0x4c269a(0x213)]&&void 0x0!==_0x27c96f[_0x4c269a(0x244)]&&!0x0!==_0x27c96f[_0x4c269a(0x206)])[_0x4c269a(0x222)](_0x9307bf=>_0x9307bf[_0x4c269a(0x244)]),_0x216632=_0x48abb8[_0x4c269a(0x254)]['records'][_0x4c269a(0x222)](_0x36d5ae=>({..._0x48abb8[_0x4c269a(0x21f)][_0x4c269a(0x24a)][_0x4c269a(0x211)](_0x37e1a5=>'gutter'!==_0x37e1a5[_0x4c269a(0x240)]&&void 0x0!==_0x37e1a5[_0x4c269a(0x213)]&&void 0x0!==_0x37e1a5[_0x4c269a(0x244)]&&!0x0!==_0x37e1a5['hidden'])['reduce']((_0x34005d,_0x36063c)=>(_0x34005d[_0x36063c[_0x4c269a(0x244)][_0x4c269a(0x24f)]]=_0x36063c[_0x4c269a(0x244)][_0x4c269a(0x24f)][_0x4c269a(0x24d)]('.')[_0x4c269a(0x239)]((_0x593bb7,_0x5db0bb)=>_0x593bb7&&_0x4c269a(0x236)!==_0x593bb7[_0x5db0bb]?_0x593bb7[_0x5db0bb]:void 0x0,_0x36d5ae),_0x34005d),{})}));if(!_0x1cc35e)return{'header':_0x4b2ee4,'data':_0x216632};store[_0x4c269a(0x25a)]({'type':EXPORT,'exportable':{'extension':_0x4c269a(0x1f0),'name':_0x14c150,'data':{'header':_0x4b2ee4,'data':_0x216632}}});}static async[a0_0x4b2e15(0x1f7)](_0x6fdca6,_0x448d7f,_0x388b5b,_0x431ff6,_0x459a0a,_0x10514a){const _0x1688b7=a0_0x4b2e15;try{const _0x2d9bda=await client[_0x1688b7(0x20c)]({'query':a0_0x4ac1a6`
|
|
2
2
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
3
|
-
${
|
|
3
|
+
${_0x6fdca6}(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
4
4
|
items {
|
|
5
|
-
${
|
|
5
|
+
${_0x10514a}
|
|
6
6
|
}
|
|
7
7
|
total
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
`,'variables':{'filters':
|
|
10
|
+
`,'variables':{'filters':_0x448d7f,'sortings':_0x388b5b,'pagination':{'page':_0x431ff6,'limit':_0x459a0a}}});if(!_0x2d9bda[_0x1688b7(0x24e)])return{'records':_0x2d9bda[_0x1688b7(0x254)][_0x6fdca6][_0x1688b7(0x256)],'total':_0x2d9bda[_0x1688b7(0x254)][_0x6fdca6][_0x1688b7(0x25d)]};ServiceUtil['showGraphqlErrorResponse'](_0x2d9bda);}catch(_0x2b7313){ServiceUtil[_0x1688b7(0x1fd)](_0x2b7313);}return null;}static async['findOne'](_0x4952fd,_0x3fc759,_0x48c570){const _0x2bb4b0=a0_0x4b2e15;try{let _0x3efa7b=await client[_0x2bb4b0(0x20c)]({'query':a0_0x4ac1a6`
|
|
11
11
|
query ($id: String!) {
|
|
12
|
-
${
|
|
13
|
-
${
|
|
12
|
+
${_0x4952fd}(id: $id) {
|
|
13
|
+
${_0x48c570}
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
`,'variables':{'id':
|
|
16
|
+
`,'variables':{'id':_0x3fc759}});if(!_0x3efa7b[_0x2bb4b0(0x24e)])return _0x3efa7b[_0x2bb4b0(0x254)][_0x4952fd]||{};ServiceUtil['showGraphqlErrorResponse'](_0x3efa7b);}catch(_0x38ba52){ServiceUtil['showGraphqlException'](_0x38ba52);}return null;}static['getSelectedIdList'](_0x19e660,_0x1018ba){const _0x33754a=a0_0x4b2e15,_0x1bdf7d=_0x19e660[_0x33754a(0x258)][_0x33754a(0x222)](_0x2ea016=>_0x2ea016['id']);return ValueUtil[_0x33754a(0x204)](_0x1bdf7d)&&0x1==_0x1018ba&&UiUtil['showAlertPopup'](_0x33754a(0x25c),_0x33754a(0x225),_0x33754a(0x20d),'confirm'),_0x1bdf7d;}static async[a0_0x4b2e15(0x203)](_0x446e4b,_0x954417){const _0x2274a8=a0_0x4b2e15;let _0x5f30c0=ServiceUtil['getSelectedIdList'](_0x446e4b,!0x0);ValueUtil[_0x2274a8(0x243)](_0x5f30c0)&&(await ServiceUtil[_0x2274a8(0x241)](_0x5f30c0,_0x954417)&&_0x446e4b[_0x2274a8(0x22e)]());}static async[a0_0x4b2e15(0x241)](_0x4c5af4,_0x3e310f){const _0x29a630=a0_0x4b2e15;if(!(await UiUtil[_0x29a630(0x1f4)]('button.delete',_0x29a630(0x24c),'question',_0x29a630(0x214),'cancel'))[_0x29a630(0x22d)])return!0x1;try{const _0x4c8b77=await client[_0x29a630(0x20c)]({'query':a0_0x4ac1a6`
|
|
17
17
|
mutation {
|
|
18
|
-
${
|
|
18
|
+
${_0x3e310f}(${gqlBuilder[_0x29a630(0x1f6)]({'ids':_0x4c5af4})})
|
|
19
19
|
}
|
|
20
|
-
`});if(!
|
|
20
|
+
`});if(!_0x4c8b77[_0x29a630(0x24e)])return UiUtil[_0x29a630(0x259)](_0x29a630(0x20d),TermsUtil[_0x29a630(0x1f5)](_0x29a630(0x23f))),!0x0;ServiceUtil[_0x29a630(0x21d)](_0x4c8b77);}catch(_0x26ec9a){ServiceUtil[_0x29a630(0x1fd)](_0x26ec9a);}return!0x1;}static async[a0_0x4b2e15(0x223)](_0xe1ab2d,_0x2d59dc){const _0x4574eb=a0_0x4b2e15;let _0x12780a=ServiceUtil[_0x4574eb(0x202)](_0xe1ab2d);if(ValueUtil['isNotEmpty'](_0x12780a)){let _0x5dcfd8=await ServiceUtil[_0x4574eb(0x218)](_0x2d59dc,_0x12780a);if(_0x5dcfd8)return _0xe1ab2d[_0x4574eb(0x22e)](),_0x5dcfd8;}return!0x1;}static async['updateMultiple'](_0x151ce8,_0x5a3d6f){const _0x518d6b=a0_0x4b2e15;try{const _0x8bead0=await client[_0x518d6b(0x20c)]({'query':a0_0x4ac1a6`
|
|
21
21
|
mutation {
|
|
22
|
-
${
|
|
22
|
+
${_0x151ce8}(${gqlBuilder[_0x518d6b(0x1f6)]({'patches':_0x5a3d6f})}) {
|
|
23
23
|
id
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,'context':{'hasUpload':!0x0}});if(!
|
|
26
|
+
`,'context':{'hasUpload':!0x0}});if(!_0x8bead0[_0x518d6b(0x24e)])return UiUtil[_0x518d6b(0x259)](_0x518d6b(0x20d),TermsUtil[_0x518d6b(0x1f5)](_0x518d6b(0x22b))),!0x0;ServiceUtil['showGraphqlErrorResponse'](_0x8bead0);}catch(_0x37d056){ServiceUtil[_0x518d6b(0x1fd)](_0x37d056);}return!0x1;}static['patchesForUpdateMultiple'](_0x4a1c1c){const _0x2eaeec=a0_0x4b2e15;let _0x3f970d=_0x4a1c1c['dirtyRecords'];if(_0x3f970d&&0x0!=_0x3f970d['length'])return _0x3f970d[_0x2eaeec(0x222)](_0x326106=>{const _0x568aa9=_0x2eaeec;let _0x3b1e7c=_0x326106['id']?{'id':_0x326106['id']}:{};for(let _0x24cf03 in _0x326106)[_0x568aa9(0x249),_0x568aa9(0x250),_0x568aa9(0x232),_0x568aa9(0x228),'__dirty__',_0x568aa9(0x216),_0x568aa9(0x200),'__seq__','__selected__']['includes'](_0x24cf03)||(_0x326106[_0x24cf03]&&_0x568aa9(0x1ff)==typeof _0x326106[_0x24cf03]?_0x3b1e7c[_0x24cf03]={'id':_0x326106[_0x24cf03]['id']}:_0x3b1e7c[_0x24cf03]=_0x326106[_0x24cf03]);return _0x3b1e7c['cuFlag']=_0x326106[_0x568aa9(0x1fc)],_0x3b1e7c;});UiUtil[_0x2eaeec(0x1f4)](_0x2eaeec(0x23a),_0x2eaeec(0x207),_0x2eaeec(0x20d),_0x2eaeec(0x20a));}static async['callScenario'](_0x488332,_0x11c103,_0x20489b){const _0xa17647=a0_0x4b2e15;let _0xf05e48=!0x0;_0x488332&&(_0xf05e48=(await UiUtil[_0xa17647(0x1f4)](_0xa17647(0x224)+_0x488332,_0xa17647(0x24c),_0xa17647(0x248),'confirm',_0xa17647(0x251)))[_0xa17647(0x22d)]);if(_0xf05e48)try{const _0x2c1ac1=await client[_0xa17647(0x20c)]({'query':a0_0x4ac1a6`
|
|
27
27
|
mutation ($scenarioName: String!, $variables: Object) {
|
|
28
28
|
runScenario(scenarioName: $scenarioName, variables: $variables) {
|
|
29
29
|
state
|
|
@@ -32,4 +32,4 @@ const a0_0x441103=a0_0x27a1;(function(_0x10f4d6,_0x3badb3){const _0x3afbaf=a0_0x
|
|
|
32
32
|
__typename
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
`,'variables':{'scenarioName':
|
|
35
|
+
`,'variables':{'scenarioName':_0x11c103,'variables':_0x20489b}});if(_0x2c1ac1[_0xa17647(0x24e)])ServiceUtil[_0xa17647(0x21d)](_0x2c1ac1);else{if(this['checkClientError'](_0x2c1ac1))return UiUtil['showToast'](_0xa17647(0x20d),TermsUtil['tText'](_0xa17647(0x201))),_0x2c1ac1;}}catch(_0x2263e8){ServiceUtil[_0xa17647(0x1fd)](_0x2263e8);}return!0x1;}static[a0_0x4b2e15(0x1fa)](_0x580a98){const _0x58acf5=a0_0x4b2e15;if(_0x580a98&&_0x580a98[_0x58acf5(0x254)]&&_0x580a98[_0x58acf5(0x254)][_0x58acf5(0x205)]&&_0x580a98['data'][_0x58acf5(0x205)]['data']&&_0x580a98[_0x58acf5(0x254)]['runScenario'][_0x58acf5(0x254)][_0x58acf5(0x20b)]){let _0x48c26e=_0x580a98[_0x58acf5(0x254)][_0x58acf5(0x205)][_0x58acf5(0x254)][_0x58acf5(0x20b)];return UiUtil[_0x58acf5(0x1f4)](_0x48c26e['title'],_0x48c26e[_0x58acf5(0x23b)],_0x58acf5(0x20b),'confirm'),!0x1;}return!0x0;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x3a56(_0x399761,_0x3ed1e3){const _0x1145d0=a0_0x1145();return a0_0x3a56=function(_0x3a56f9,_0x5b3e72){_0x3a56f9=_0x3a56f9-0x1a3;let _0x30d107=_0x1145d0[_0x3a56f9];return _0x30d107;},a0_0x3a56(_0x399761,_0x3ed1e3);}const a0_0x2eae03=a0_0x3a56;(function(_0x12fc61,_0x329961){const _0x6fb08b=a0_0x3a56,_0x17055c=_0x12fc61();while(!![]){try{const _0x197690=-parseInt(_0x6fb08b(0x1b5))/0x1+parseInt(_0x6fb08b(0x1b4))/0x2*(-parseInt(_0x6fb08b(0x1c6))/0x3)+-parseInt(_0x6fb08b(0x1a5))/0x4+-parseInt(_0x6fb08b(0x1bb))/0x5*(-parseInt(_0x6fb08b(0x1be))/0x6)+parseInt(_0x6fb08b(0x1a9))/0x7*(-parseInt(_0x6fb08b(0x1bc))/0x8)+-parseInt(_0x6fb08b(0x1af))/0x9*(parseInt(_0x6fb08b(0x1bf))/0xa)+parseInt(_0x6fb08b(0x1ba))/0xb;if(_0x197690===_0x329961)break;else _0x17055c['push'](_0x17055c['shift']());}catch(_0x58e43a){_0x17055c['push'](_0x17055c['shift']());}}}(a0_0x1145,0x9423d));import a0_0x15ebdb from'graphql-tag';import{client}from'@operato/graphql';function a0_0x1145(){const _0x51cad7=['348360fOGfYJ','total','12WJgilC','1275090mTfefk','tButton','name','category','length','field','tText','50103WpPhnn','tLabel','translate','downloadTerminologies','forEach','records','errors','tMenu','740968ICvaIF','replace','items','menu','7yyJTnU','tError','data','text','query','terminologies','27gchPey','tField','label','title','tTitle','34SRDUPX','424241XpzCum','META_TERMS','button','fetchTerminologies','locale','8631447bpAdOD','2853940oZmZGA'];a0_0x1145=function(){return _0x51cad7;};return a0_0x1145();}import{i18next}from'@operato/i18n';export class TermsUtil{[a0_0x2eae03(0x1b6)]=null;static async[a0_0x2eae03(0x1c9)](_0x3e73dc){const _0x23d41e=a0_0x2eae03;let _0x1b1625=(await TermsUtil[_0x23d41e(0x1b8)](_0x3e73dc))[_0x23d41e(0x1cb)];_0x1b1625&&_0x1b1625[_0x23d41e(0x1c3)]>0x0&&(this[_0x23d41e(0x1b6)]={},_0x1b1625[_0x23d41e(0x1ca)](_0x22c2ce=>{const _0xca9b7d=_0x23d41e;let _0x28c4c5=_0x22c2ce[_0xca9b7d(0x1c2)]+'.'+_0x22c2ce[_0xca9b7d(0x1c1)];this[_0xca9b7d(0x1b6)][_0x28c4c5]=_0x22c2ce['display'];}));}static async['fetchTerminologies'](_0x29725c){const _0x51e8e3=a0_0x2eae03;let _0x169d7f=[{'name':_0x51e8e3(0x1b9),'operator':'eq','value':_0x29725c}];const _0x23c499=await client[_0x51e8e3(0x1ad)]({'query':a0_0x15ebdb`
|
|
2
2
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
3
3
|
terminologies(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
4
4
|
items {
|
|
@@ -11,4 +11,4 @@ function a0_0x2d94(_0x52ce7f,_0x205036){const _0x24fa4a=a0_0x24fa();return a0_0x
|
|
|
11
11
|
total
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
`,'variables':{'filters':
|
|
14
|
+
`,'variables':{'filters':_0x169d7f,'sortings':[{'name':_0x51e8e3(0x1c2)},{'name':_0x51e8e3(0x1c1)}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0x23c499[_0x51e8e3(0x1a3)])return{'records':_0x23c499[_0x51e8e3(0x1ab)][_0x51e8e3(0x1ae)][_0x51e8e3(0x1a7)]||[],'total':_0x23c499[_0x51e8e3(0x1ab)][_0x51e8e3(0x1ae)][_0x51e8e3(0x1bd)]||0x0};}static[a0_0x2eae03(0x1a4)](_0x415cc){const _0x1432e4=a0_0x2eae03;return TermsUtil[_0x1432e4(0x1c8)](_0x1432e4(0x1a8),_0x415cc,null,_0x415cc);}static[a0_0x2eae03(0x1c7)](_0x54d94d,_0x283680){const _0x11e7c2=a0_0x2eae03;let _0x55c190=TermsUtil[_0x11e7c2(0x1c8)](_0x11e7c2(0x1b1),_0x54d94d,_0x283680,null);return _0x55c190||TermsUtil['translate'](_0x11e7c2(0x1c4),_0x54d94d,_0x283680,_0x54d94d);}static[a0_0x2eae03(0x1b0)](_0xf43b9c,_0x5a402b){const _0x17e5e6=a0_0x2eae03;return TermsUtil[_0x17e5e6(0x1c8)](_0x17e5e6(0x1c4),_0xf43b9c,_0x5a402b,_0xf43b9c);}static[a0_0x2eae03(0x1c0)](_0x553023){const _0x1655fc=a0_0x2eae03;return TermsUtil[_0x1655fc(0x1c8)](_0x1655fc(0x1b7),_0x553023,null,_0x553023);}static[a0_0x2eae03(0x1b3)](_0x20bd07,_0x5ee139){const _0x45b6df=a0_0x2eae03;return TermsUtil[_0x45b6df(0x1c8)](_0x45b6df(0x1b2),_0x20bd07,_0x5ee139,_0x20bd07);}static[a0_0x2eae03(0x1c5)](_0x3b7d84,_0x2de5ff){const _0x207530=a0_0x2eae03;return TermsUtil[_0x207530(0x1c8)](_0x207530(0x1ac),_0x3b7d84,_0x2de5ff,_0x3b7d84);}static[a0_0x2eae03(0x1aa)](_0x2081b2,_0x5745cf){const _0x508c04=a0_0x2eae03;return TermsUtil[_0x508c04(0x1c8)]('error',_0x2081b2,_0x5745cf,_0x2081b2);}static[a0_0x2eae03(0x1c8)](_0x4f39ff,_0x4cd214,_0x555f2e,_0x2441c6){let _0x3d338b=_0x4f39ff+'.'+_0x4cd214;return TermsUtil['t'](_0x3d338b,_0x555f2e,_0x2441c6);}static['t'](_0x13ef89,_0x8713ff,_0x2b24e7){const _0x39594c=a0_0x2eae03;let _0x2ca2c2=this['META_TERMS']?this[_0x39594c(0x1b6)][_0x13ef89]:null;return _0x2ca2c2=_0x2ca2c2||i18next['t'](_0x13ef89),_0x2ca2c2&&_0x13ef89!=_0x2ca2c2?(_0x8713ff&&Object['keys'](_0x8713ff)[_0x39594c(0x1ca)](function(_0x1f8b60){const _0x21ba52=_0x39594c;var _0x4631fc='\x5c{'+_0x1f8b60['replace'](/\$/,'\x5c$')+'\x5c}',_0x4b4341=new RegExp(_0x4631fc,'gi');_0x2ca2c2=_0x2ca2c2[_0x21ba52(0x1a6)](_0x4b4341,_0x8713ff[_0x1f8b60]);}),_0x2ca2c2):_0x2b24e7;}}
|
package/client/utils/ui-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x50d038=a0_0x384b;(function(_0x54a07e,_0x3e45fa){const _0x7ee91d=a0_0x384b,_0x121e80=_0x54a07e();while(!![]){try{const _0xbcd4fd=-parseInt(_0x7ee91d(0x1a5))/0x1+-parseInt(_0x7ee91d(0x1c6))/0x2+parseInt(_0x7ee91d(0x18f))/0x3*(-parseInt(_0x7ee91d(0x190))/0x4)+-parseInt(_0x7ee91d(0x18e))/0x5*(parseInt(_0x7ee91d(0x195))/0x6)+parseInt(_0x7ee91d(0x191))/0x7+parseInt(_0x7ee91d(0x198))/0x8*(parseInt(_0x7ee91d(0x1b0))/0x9)+parseInt(_0x7ee91d(0x1ae))/0xa;if(_0xbcd4fd===_0x3e45fa)break;else _0x121e80['push'](_0x121e80['shift']());}catch(_0x3361f1){_0x121e80['push'](_0x121e80['shift']());}}}(a0_0x4815,0x2ae6d));import{store,CustomAlert,navigate}from'@things-factory/shell';function a0_0x4815(){const _0xb93dbf=['querySelector','popup_field','name','template','getFilterFormData','modules','forEach','setValueToEditor','\x27\x20\x20parent_id=\x27','config','renderRoot','i18next','openPopupByElement','tButton','createCustomElement','ox-input-barcode','app','indexOf','isMobileEnv','getType','createEditorHtml','595228OFZXOf','substring','fireCustomEvent','dispatchEvent','size','onclosed','stringify','content','getStore','textarea','removeChild','ox-select','type','ox-input-code','getLeafInput','createElement','notify','menu','value','replace','confirmButton','getState','10dFKzzq','3AEfAey','720992biONrX','21882ckTiRn','select-combo','htmlToElement','innerHTML','927084BskkAs','\x27></','length','1080344XrIruW','parent_field','openDynamicPopup','pass=','tagname','ko-KR','isNotEmpty','route','showAlertPopup','page','code-editor','[name=\x27','showToast','177918oqeEXe','split','pageNavigate','childNodes','input','barcode','currentRouting','firstElementChild','\x20route_name=\x27','10023640RpkHjU','setSearchFormEditorValue','9tPeqxb'];a0_0x4815=function(){return _0xb93dbf;};return a0_0x4815();}function a0_0x384b(_0x10eb00,_0x386efd){const _0x4815ed=a0_0x4815();return a0_0x384b=function(_0x384b06,_0x35d8aa){_0x384b06=_0x384b06-0x18d;let _0x12d319=_0x4815ed[_0x384b06];return _0x12d319;},a0_0x384b(_0x10eb00,_0x386efd);}import{openPopup}from'@things-factory/layout-base';import{isMobileDevice}from'@things-factory/utils';import{getEditor}from'@operato/data-grist';import{TermsUtil}from'./terms-util';import{ValueUtil}from'./value-util';import{MetaUiUtil}from'./meta-ui-util';export class UiUtil{static[a0_0x50d038(0x1c3)](){return isMobileDevice();}static['currentLocale'](){const _0x5b5dd5=a0_0x50d038;let _0x477144=document['cookie'];return _0x477144=_0x477144[_0x5b5dd5(0x1c7)](_0x477144[_0x5b5dd5(0x1c2)](_0x5b5dd5(0x1bc))),_0x477144['indexOf'](';')>-0x1&&(_0x477144=_0x477144[_0x5b5dd5(0x1c7)](0x0,_0x477144[_0x5b5dd5(0x1c2)](';'))),_0x477144=_0x477144[_0x5b5dd5(0x1d9)]('i18next=',''),'ko'==_0x477144?_0x5b5dd5(0x19d):_0x477144;}static['getApplicationModuleInfo'](){const _0x1489a0=a0_0x50d038;let _0x297afb=store['getState']()[_0x1489a0(0x1c1)][_0x1489a0(0x1b6)];return _0x297afb[_0x297afb[_0x1489a0(0x197)]-0x1];}static[a0_0x50d038(0x1ab)](){const _0x5aeeb8=a0_0x50d038;return store[_0x5aeeb8(0x18d)]()[_0x5aeeb8(0x19f)][_0x5aeeb8(0x1a1)];}static[a0_0x50d038(0x1bd)](_0x416951,_0x2f0d46,_0x4a0182,_0xe0e8a0){return openPopup(_0x4a0182,{'backdrop':!0x0,'size':_0x2f0d46,'title':_0x416951,'backdrop':_0xe0e8a0});}static async[a0_0x50d038(0x19a)](_0x507422,_0x14fd24,_0x589d28,_0x58b54f){const _0x2045f7=a0_0x50d038;let _0x577960=ValueUtil[_0x2045f7(0x19e)](_0x14fd24['parent_field'])?ValueUtil['getParams'](_0x589d28,..._0x14fd24[_0x2045f7(0x199)][_0x2045f7(0x1a6)]('.')):void 0x0,_0x4119a4='<'+_0x14fd24['tagname']+'\x20route_name=\x27'+_0x14fd24[_0x2045f7(0x1d7)]+_0x2045f7(0x1b9)+_0x577960+'\x27\x20is_popup=true></'+_0x14fd24[_0x2045f7(0x19c)]+'>',_0x4832c0=UiUtil[_0x2045f7(0x193)](_0x4119a4);_0x4832c0[_0x2045f7(0x1ba)]=_0x14fd24,ValueUtil['isNotEmpty'](_0x14fd24[_0x2045f7(0x1b2)])&&(_0x4832c0[_0x14fd24[_0x2045f7(0x1b2)]]=_0x589d28);let _0x55e940=UiUtil['openPopupByElement'](_0x507422,_0x14fd24[_0x2045f7(0x1ca)],_0x4832c0,!0x0);_0x58b54f&&(_0x55e940[_0x2045f7(0x1cb)]=_0x58b54f);}static[a0_0x50d038(0x1bf)](_0xd0f5b8,_0x5581dd){const _0x161f37=a0_0x50d038;let _0x4fa886='<'+_0xd0f5b8+_0x161f37(0x1ad)+_0x5581dd+_0x161f37(0x196)+_0xd0f5b8+'>';return UiUtil[_0x161f37(0x193)](_0x4fa886);}static[a0_0x50d038(0x193)](_0x4f607e){const _0x31303a=a0_0x50d038;var _0x524b2a=document[_0x31303a(0x1d5)](_0x31303a(0x1b4));_0x524b2a[_0x31303a(0x194)]=_0x4f607e;var _0xd7df76=_0x524b2a[_0x31303a(0x1cd)][_0x31303a(0x1a8)][0x0];return _0x524b2a['content'][_0x31303a(0x1d0)](_0xd7df76),_0xd7df76;}static[a0_0x50d038(0x1a7)](_0x832584,_0xaeddbd){const _0x22a71d=a0_0x50d038;let _0x24b3b4=_0xaeddbd?'?':'';_0xaeddbd&&(_0x24b3b4+=_0x22a71d(0x19b)+JSON[_0x22a71d(0x1cc)](_0xaeddbd)),navigate(''+_0x832584+_0x24b3b4);}static[a0_0x50d038(0x1ce)](_0x246cc0,_0x41b9d1,_0x51626b){const _0x87a432=a0_0x50d038;let _0x183d41=_0x183d41[_0x87a432(0x18d)]();return _0x246cc0&&_0x41b9d1&&_0x51626b?_0x183d41[_0x246cc0][_0x41b9d1][_0x51626b]:_0x246cc0&&_0x41b9d1?_0x183d41[_0x246cc0][_0x41b9d1]:_0x246cc0?_0x183d41[_0x246cc0]:_0x183d41;}static[a0_0x50d038(0x1c8)](_0x7fce89,_0x54f39e){const _0x37fbfe=a0_0x50d038;document[_0x37fbfe(0x1c9)](new CustomEvent(_0x7fce89,{'detail':_0x54f39e}));}static[a0_0x50d038(0x1a4)](_0x5ee208,_0x421bba){const _0x520ee2=a0_0x50d038;document[_0x520ee2(0x1c9)](new CustomEvent(_0x520ee2(0x1d6),{'detail':{'type':_0x5ee208,'message':_0x421bba}}));}static async[a0_0x50d038(0x1a0)](_0x2a559a,_0x44649a,_0x165f96,_0x24cdd6,_0x14b8a3){const _0x31b2ed=a0_0x50d038;let _0xd74ae9={'title':TermsUtil['t'](_0x2a559a)||_0x2a559a,'text':TermsUtil['t'](_0x44649a)||_0x44649a};return _0x165f96&&(_0xd74ae9[_0x31b2ed(0x1d2)]=_0x165f96),_0x24cdd6&&(_0xd74ae9[_0x31b2ed(0x1da)]=TermsUtil[_0x31b2ed(0x1be)](_0x24cdd6)),_0x14b8a3&&(_0xd74ae9['cancelButton']=TermsUtil[_0x31b2ed(0x1be)](_0x14b8a3)),await CustomAlert(_0xd74ae9);}static[a0_0x50d038(0x1b5)](_0x26e5b0){const _0x4209c8=a0_0x50d038;if(ValueUtil[_0x4209c8(0x19e)](_0x26e5b0)){let _0x254c99=_0x26e5b0['filters']();ValueUtil[_0x4209c8(0x19e)](_0x254c99)&&_0x254c99[_0x4209c8(0x1b7)](_0x1288ea=>{const _0xa12c78=_0x4209c8;ValueUtil[_0xa12c78(0x19e)](_0x1288ea['value'])&&(item[_0x1288ea[_0xa12c78(0x1b3)]]=_0x1288ea[_0xa12c78(0x1d8)]?_0x1288ea[_0xa12c78(0x1d8)]:null);});}return{};}static[a0_0x50d038(0x1af)](_0x19b22c,_0x3c2444,_0x1e8e94){const _0x4e2b76=a0_0x50d038;if(ValueUtil['isNotEmpty'](_0x19b22c)){let _0x286678=_0x19b22c['renderRoot']?.[_0x4e2b76(0x1b1)](_0x4e2b76(0x1a3)+_0x3c2444+'\x27]');ValueUtil[_0x4e2b76(0x19e)](_0x286678)&&(_0x286678[_0x4e2b76(0x1d8)]=_0x1e8e94);}}static[a0_0x50d038(0x1c5)](_0x1cbdfc,_0x545137,_0x43897a,_0x2036da){return getEditor(_0x1cbdfc)('',_0x545137,_0x43897a,_0x2036da,{});}static[a0_0x50d038(0x1b8)](_0x377e08,_0x2efd6f){UiUtil['getLeafInput'](_0x377e08)['value']=_0x2efd6f;}static[a0_0x50d038(0x1d4)](_0x484453){const _0x5a30ec=a0_0x50d038;let _0x3147f0=_0x484453[_0x5a30ec(0x1c4)]();return _0x5a30ec(0x1a2)==_0x3147f0?_0x484453[_0x5a30ec(0x1bb)][_0x5a30ec(0x1b1)](_0x5a30ec(0x1d3)):_0x5a30ec(0x1cf)==_0x3147f0?_0x484453['renderRoot'][_0x5a30ec(0x1b1)](_0x5a30ec(0x1cf)):_0x5a30ec(0x192)==_0x3147f0?_0x484453[_0x5a30ec(0x1bb)]['querySelector'](_0x5a30ec(0x1d1))[_0x5a30ec(0x1ac)]:_0x5a30ec(0x1aa)==_0x3147f0?_0x484453[_0x5a30ec(0x1bb)][_0x5a30ec(0x1b1)](_0x5a30ec(0x1c0))['renderRoot'][_0x5a30ec(0x1b1)](_0x5a30ec(0x1a9)):_0x484453[_0x5a30ec(0x1bb)][_0x5a30ec(0x1ac)]['editor'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x1553(){const _0x6d6837=['1hRcTze','5355SPXEsn','189858UTshhp','length','7680XTxZZG','225230mbWUiw','315SSlJbL','2859901YOEOHr','isArray','forEach','279210DZuXej','slice','toInteger','map','toBoolean','populateArray','object','true','7607704OzAVUn','keys','setParams','isNotEmpty','number','isEmpty','1553818WvZyBV','getParams','8vGCmaO','string'];a0_0x1553=function(){return _0x6d6837;};return a0_0x1553();}const a0_0x4c65ec=a0_0x1471;(function(_0x7dac89,_0x1e0dab){const _0xcbdbbf=a0_0x1471,_0x4a0a01=_0x7dac89();while(!![]){try{const _0x1d5458=parseInt(_0xcbdbbf(0x1e4))/0x1*(-parseInt(_0xcbdbbf(0x1e0))/0x2)+parseInt(_0xcbdbbf(0x1e6))/0x3+-parseInt(_0xcbdbbf(0x1e2))/0x4*(-parseInt(_0xcbdbbf(0x1cd))/0x5)+parseInt(_0xcbdbbf(0x1cc))/0x6*(parseInt(_0xcbdbbf(0x1e5))/0x7)+parseInt(_0xcbdbbf(0x1da))/0x8+parseInt(_0xcbdbbf(0x1ce))/0x9*(-parseInt(_0xcbdbbf(0x1d2))/0xa)+parseInt(_0xcbdbbf(0x1cf))/0xb;if(_0x1d5458===_0x1e0dab)break;else _0x4a0a01['push'](_0x4a0a01['shift']());}catch(_0x2212f3){_0x4a0a01['push'](_0x4a0a01['shift']());}}}(a0_0x1553,0x8fe4c));import a0_0x91bf09 from'lodash-es/isEqual';function a0_0x1471(_0x109814,_0x1a44d1){const _0x1553f7=a0_0x1553();return a0_0x1471=function(_0x1471e3,_0x599576){_0x1471e3=_0x1471e3-0x1cc;let _0x343bb5=_0x1553f7[_0x1471e3];return _0x343bb5;},a0_0x1471(_0x109814,_0x1a44d1);}import{TermsUtil}from'./terms-util';export class ValueUtil{static[a0_0x4c65ec(0x1df)](_0x1d497c){const _0x210bf=a0_0x4c65ec;if(void 0x0===_0x1d497c)return!0x0;if(null===_0x1d497c)return!0x0;if('boolean'==typeof _0x1d497c)return!0x1;if(_0x210bf(0x1e3)==typeof _0x1d497c||_0x210bf(0x1de)==typeof _0x1d497c){if(''==_0x1d497c)return!0x0;}else{if(Array[_0x210bf(0x1d0)](_0x1d497c)){if(0x0==_0x1d497c[_0x210bf(0x1e7)])return!0x0;}else{if(_0x210bf(0x1d8)==typeof _0x1d497c&&0x0==Object[_0x210bf(0x1db)](_0x1d497c)['length'])return!0x0;}}return!0x1;}static[a0_0x4c65ec(0x1dd)](_0x5e21a1){const _0x22e44b=a0_0x4c65ec;return!ValueUtil[_0x22e44b(0x1df)](_0x5e21a1);}static['isEquals'](_0x5ac66c,_0x6c3360){return a0_0x91bf09(_0x5ac66c,_0x6c3360);}static[a0_0x4c65ec(0x1d4)](_0x58293c,_0x2b7c99){const _0x1c49ff=a0_0x4c65ec;return ValueUtil[_0x1c49ff(0x1df)](_0x58293c)?_0x2b7c99||0x0:parseInt(_0x58293c);}static[a0_0x4c65ec(0x1d6)](_0x5f1f6b){const _0x576500=a0_0x4c65ec;return!ValueUtil[_0x576500(0x1df)](_0x5f1f6b)&&(_0x576500(0x1d9)==_0x5f1f6b||'t'==_0x5f1f6b||'TRUE'==_0x5f1f6b||'T'==_0x5f1f6b||'on'==_0x5f1f6b||'ON'==_0x5f1f6b);}static['compareObjectValues'](_0x3362be,_0x20dde0,_0x3e8b0f){const _0x145e6a=a0_0x4c65ec;let _0x5c0414=!0x0;return _0x3e8b0f[_0x145e6a(0x1d1)](_0x16c8bc=>{const _0x470ecc=_0x145e6a;let _0x5b81f7=_0x3362be[_0x16c8bc];if('*'===_0x5b81f7)return;let _0x5bde05=_0x20dde0[_0x16c8bc]||'';ValueUtil['isEmpty'](_0x5b81f7)?ValueUtil[_0x470ecc(0x1dd)](_0x5bde05)&&(_0x5c0414=!0x1):_0x5b81f7!=_0x5bde05&&(_0x5c0414=!0x1);}),_0x5c0414;}static[a0_0x4c65ec(0x1dc)](_0x2835cb,_0x1c60fa,_0x57fd3e,_0x3f28b2){const _0x338bb4=a0_0x4c65ec;let _0x15c7d5=ValueUtil[_0x338bb4(0x1e1)](_0x1c60fa,_0x57fd3e);return ValueUtil[_0x338bb4(0x1dd)](_0x15c7d5)&&(_0x2835cb[_0x57fd3e]=!0x0===_0x3f28b2?TermsUtil['t'](_0x15c7d5):_0x15c7d5),_0x2835cb;}static[a0_0x4c65ec(0x1e1)](_0xda1981,..._0x203ee3){const _0x58cf33=a0_0x4c65ec;if(arguments['length']<=0x1)return;let _0x8ce1a8=_0x203ee3[0x0];if(ValueUtil['isEmpty'](_0xda1981[_0x8ce1a8]))return;let _0x4d2c32=_0xda1981[_0x8ce1a8];return _0x203ee3[_0x58cf33(0x1e7)]>0x1?ValueUtil[_0x58cf33(0x1e1)](_0x4d2c32,..._0x203ee3[_0x58cf33(0x1d3)](0x1)):_0x4d2c32;}static[a0_0x4c65ec(0x1d7)](_0x3367da,_0x12a74e,..._0x4e773d){const _0x82ab02=a0_0x4c65ec;return _0x12a74e=_0x12a74e||[],_0x4e773d=_0x4e773d||Object[_0x82ab02(0x1db)](_0x3367da),ValueUtil['isNotEmpty'](_0x4e773d)&&(_0x12a74e=_0x3367da[_0x82ab02(0x1d5)]((_0x152c89,_0x3e130c)=>{const _0x3da3ac=_0x82ab02;let _0x16f80e=_0x12a74e[_0x3da3ac(0x1e7)]>_0x3e130c?_0x12a74e[_0x3e130c]:{};return ValueUtil['populateObject'](_0x152c89,_0x16f80e,_0x4e773d);})),_0x12a74e;}static['populateObject'](_0x5cdc2f,_0x3181f5,..._0x4611ad){const _0x3f2fd0=a0_0x4c65ec;return _0x3181f5=_0x3181f5||{},_0x4611ad=_0x4611ad||Object[_0x3f2fd0(0x1db)](_0x5cdc2f),ValueUtil[_0x3f2fd0(0x1dd)](_0x4611ad)&&_0x4611ad[_0x3f2fd0(0x1d1)](_0x4ad821=>{_0x3181f5[_0x4ad821]=_0x5cdc2f[_0x4ad821];}),_0x3181f5;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4bfe89,_0x2ffc74){const _0x1839d0=a0_0x35d2,_0x489f5d=_0x4bfe89();while(!![]){try{const _0x2f5973=-parseInt(_0x1839d0(0xc1))/0x1+-parseInt(_0x1839d0(0xc6))/0x2*(-parseInt(_0x1839d0(0xc7))/0x3)+parseInt(_0x1839d0(0xc5))/0x4*(parseInt(_0x1839d0(0xc0))/0x5)+-parseInt(_0x1839d0(0xc3))/0x6+parseInt(_0x1839d0(0xc4))/0x7*(-parseInt(_0x1839d0(0xc2))/0x8)+-parseInt(_0x1839d0(0xc9))/0x9+-parseInt(_0x1839d0(0xc8))/0xa*(-parseInt(_0x1839d0(0xca))/0xb);if(_0x2f5973===_0x2ffc74)break;else _0x489f5d['push'](_0x489f5d['shift']());}catch(_0x342ec9){_0x489f5d['push'](_0x489f5d['shift']());}}}(a0_0xf761,0x8deb9));function a0_0x35d2(_0x24c58a,_0x463a65){const _0xf76137=a0_0xf761();return a0_0x35d2=function(_0x35d259,_0x368c3c){_0x35d259=_0x35d259-0xc0;let _0x4887b0=_0xf76137[_0x35d259];return _0x4887b0;},a0_0x35d2(_0x24c58a,_0x463a65);}import{css}from'lit';export const DynamicMenuLandscapeStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
overflow-x: auto;
|
|
4
4
|
background-color: var(--secondary-text-color);
|
|
@@ -144,4 +144,4 @@
|
|
|
144
144
|
background-color: rgba(var(--secondary-color-rgb), 0.3);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
`;function
|
|
147
|
+
`;function a0_0xf761(){const _0x2ea7ed=['1033722MPlgxt','560bmouym','689268gWJtjL','101521DPDHiG','52LDnbfd','212BowLoC','24156CyesHH','9941010mLznQz','205263kXYpem','11yaXbLH','353965IDNmTZ'];a0_0xf761=function(){return _0x2ea7ed;};return a0_0xf761();}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3f447e=a0_0x5b2d;function a0_0xa9e8(){const _0x88aab=['224710mYGhhU','map','3380664GemaVl','target','onWheelEvent','renderRoot','setAttribute','6YMPUQZ','scrollLeft','mousewheel','define','4019668yLlrrs','group','bind','dynamic-menu-landscape','href','description','detail','3831126xFdPNC','wheelDelta','settled','path','properties','styles','transitionstart','active-toplevel','click','stopPropagation','type','dispatchEvent','5473680PckMbG','menus','icon','max','#wrap','4085893YWDnfV','name','5btPsiE','min','firstUpdated','activeTopLevel','addEventListener','submenu','removeAttribute','preventDefault','36802341kZeXCq'];a0_0xa9e8=function(){return _0x88aab;};return a0_0xa9e8();}(function(_0x1a82c1,_0x33b86e){const _0x44e132=a0_0x5b2d,_0x24d4d5=_0x1a82c1();while(!![]){try{const _0x466aa7=parseInt(_0x44e132(0xff))/0x1*(parseInt(_0x44e132(0xd8))/0x2)+-parseInt(_0x44e132(0x101))/0x3+-parseInt(_0x44e132(0xdc))/0x4+parseInt(_0x44e132(0xf6))/0x5*(-parseInt(_0x44e132(0xe3))/0x6)+-parseInt(_0x44e132(0xf4))/0x7+-parseInt(_0x44e132(0xef))/0x8+parseInt(_0x44e132(0xfe))/0x9;if(_0x466aa7===_0x33b86e)break;else _0x24d4d5['push'](_0x24d4d5['shift']());}catch(_0x112043){_0x24d4d5['push'](_0x24d4d5['shift']());}}}(a0_0xa9e8,0xb1034));import'@material/mwc-icon';function a0_0x5b2d(_0x40199a,_0x513952){const _0xa9e8da=a0_0xa9e8();return a0_0x5b2d=function(_0x5b2df0,_0x2ea5e5){_0x5b2df0=_0x5b2df0-0xd6;let _0x1e003d=_0xa9e8da[_0x5b2df0];return _0x1e003d;},a0_0x5b2d(_0x40199a,_0x513952);}import{html,LitElement}from'lit';import{connect}from'pwa-helpers';import{navigate,store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';import{DynamicMenuLandscapeStyles}from'./dynamic-menu-landscape-styles';export class DynamicMenuLandscape extends connect(store)(LitElement){static get[a0_0x3f447e(0xe8)](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get[a0_0x3f447e(0xe7)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}['render'](){const _0x466c39=a0_0x3f447e,{menus:_0x1fb4e4=[],activeTopLevel:_0x5a0ba9,activeMenu:_0x23e558}=this;return html`
|
|
2
2
|
<div id="wrap">
|
|
3
3
|
<ul>
|
|
4
|
-
${
|
|
5
|
-
<li ?active=${
|
|
6
|
-
<a href=${
|
|
7
|
-
${
|
|
4
|
+
${_0x1fb4e4[_0x466c39(0x100)](_0x1ae065=>_0x466c39(0xdd)==_0x1ae065[_0x466c39(0xed)]?html``:html`
|
|
5
|
+
<li ?active=${_0x1ae065===_0x5a0ba9}>
|
|
6
|
+
<a href=${_0x1ae065[_0x466c39(0xe6)]||'#'}>
|
|
7
|
+
${_0x1ae065[_0x466c39(0xf1)]?html`<mwc-icon>${_0x1ae065['icon']}</mwc-icon>`:html``} ${_0x1ae065[_0x466c39(0xf5)]}
|
|
8
8
|
</a>
|
|
9
9
|
|
|
10
10
|
<ul submenus>
|
|
11
|
-
${
|
|
12
|
-
<li ?active=${
|
|
13
|
-
<a href=${
|
|
11
|
+
${_0x1ae065[_0x466c39(0xf0)]?.[_0x466c39(0x100)](_0x5d84e6=>html`
|
|
12
|
+
<li ?active=${_0x5d84e6===_0x23e558}>
|
|
13
|
+
<a href=${_0x5d84e6['path']||'#'}> ${_0x5d84e6[_0x466c39(0xf5)]} </a>
|
|
14
14
|
</li>
|
|
15
15
|
`)}
|
|
16
16
|
</ul>
|
|
17
17
|
|
|
18
18
|
<div description>
|
|
19
|
-
${
|
|
19
|
+
${_0x1ae065[_0x466c39(0xf1)]?html`<mwc-icon>${_0x1ae065[_0x466c39(0xf1)]}</mwc-icon>`:html``} ${_0x1ae065[_0x466c39(0xe1)]||''}
|
|
20
20
|
</div>
|
|
21
21
|
</li>
|
|
22
22
|
`)}
|
|
23
23
|
</ul>
|
|
24
24
|
</div>
|
|
25
|
-
`;}[
|
|
25
|
+
`;}[a0_0x3f447e(0xf8)](){const _0x36b778=a0_0x3f447e;this['renderRoot']['querySelector'](_0x36b778(0xf3))[_0x36b778(0xfa)](_0x36b778(0xda),this[_0x36b778(0x103)][_0x36b778(0xde)](this),!0x1),this[_0x36b778(0xd6)][_0x36b778(0xfa)](_0x36b778(0xeb),_0x10d27b=>{const _0x1205e8=_0x36b778;if(_0x10d27b['target'][_0x1205e8(0xfb)]){_0x10d27b[_0x1205e8(0xec)](),_0x10d27b['preventDefault']();let _0x952349=_0x10d27b[_0x1205e8(0x102)]['submenu'];return void this[_0x1205e8(0xee)](new CustomEvent(_0x1205e8(0xea),{'bubbles':!0x0,'detail':this[_0x1205e8(0xf9)]===_0x952349?void 0x0:_0x952349}));}let _0x5a03fc=_0x10d27b[_0x1205e8(0x102)]['href'];_0x5a03fc&&location[_0x1205e8(0xe0)]===_0x5a03fc&&navigate(_0x5a03fc+'#force',!0x0);}),this[_0x36b778(0xd6)][_0x36b778(0xfa)](_0x36b778(0xe9),_0x225f76=>{const _0x3d4e7a=_0x36b778;_0x225f76['target'][_0x3d4e7a(0xfc)](_0x3d4e7a(0xe5));}),this[_0x36b778(0xd6)][_0x36b778(0xfa)]('transitionend',_0x337953=>{const _0x4ae40b=_0x36b778;_0x337953[_0x4ae40b(0x102)][_0x4ae40b(0xd7)]('settled','');});}['onWheelEvent'](_0x2f9f20){const _0x38def0=a0_0x3f447e,_0x1268f3=_0x2f9f20['currentTarget'];var _0x5d91b5=Math[_0x38def0(0xf2)](-0x1,Math[_0x38def0(0xf7)](0x1,_0x2f9f20[_0x38def0(0xe4)]||-_0x2f9f20[_0x38def0(0xe2)]));_0x1268f3[_0x38def0(0xd9)]-=0xa*_0x5d91b5,_0x2f9f20[_0x38def0(0xfd)]();}}customElements[a0_0x3f447e(0xdb)](a0_0x3f447e(0xdf),DynamicMenuLandscape);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x4564c4=a0_0x1f54;(function(_0x4e3cad,_0x3d2ac9){var _0x181036=a0_0x1f54,_0x498f7e=_0x4e3cad();while(!![]){try{var _0xeb2677=-parseInt(_0x181036(0x133))/0x1*(-parseInt(_0x181036(0x120))/0x2)+parseInt(_0x181036(0x116))/0x3*(-parseInt(_0x181036(0x11c))/0x4)+parseInt(_0x181036(0x119))/0x5+parseInt(_0x181036(0x125))/0x6+-parseInt(_0x181036(0x136))/0x7*(parseInt(_0x181036(0x12a))/0x8)+-parseInt(_0x181036(0x13d))/0x9+parseInt(_0x181036(0x137))/0xa*(-parseInt(_0x181036(0x130))/0xb);if(_0xeb2677===_0x3d2ac9)break;else _0x498f7e['push'](_0x498f7e['shift']());}catch(_0x5c560f){_0x498f7e['push'](_0x498f7e['shift']());}}}(a0_0x2cc9,0x5f6e2));import'@material/mwc-icon';function a0_0x1f54(_0x40d102,_0x28b3fe){var _0x2cc9d2=a0_0x2cc9();return a0_0x1f54=function(_0x1f545b,_0x45c155){_0x1f545b=_0x1f545b-0x115;var _0x1f84c7=_0x2cc9d2[_0x1f545b];return _0x1f84c7;},a0_0x1f54(_0x40d102,_0x28b3fe);}import'./dynamic-menu-portrait';import'./dynamic-menu-landscape';function a0_0x2cc9(){var _0x3aa416=['orientation','_path','690886VZROTv','410wLwYZJ','active','styles','route','function','firstUpdated','3623382dceLff','page','3309ufqeLr','_activeTopLevel','has','3873830JarQqx','replaceChild','call','948fZMLhE','stateChanged','find','landscape','5648REqmOO','removeAttribute','updated','detail','dynamic-menu-part','3499080SoEvaL','active-toplevel','stopPropagation','menus','metaUI','56yzyfxu','path','resourceId','slotTemplate','split','_findActivePage','30811cLYkwM','setAttribute','_activeMenu','178zKqGWf'];a0_0x2cc9=function(){return _0x3aa416;};return a0_0x2cc9();}import{css,html,LitElement}from'lit';import{connect}from'pwa-helpers';import{store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';function isActiveMenu(_0x4e4746,_0x248be3){var _0x33f489=a0_0x1f54;return _0x4e4746[_0x33f489(0x12b)]?.[_0x33f489(0x12e)]('?')[0x0]===_0x248be3||_0x4e4746[_0x33f489(0x138)]&&_0x33f489(0x13b)==typeof _0x4e4746[_0x33f489(0x138)]&&_0x4e4746['active'][_0x33f489(0x11b)](_0x4e4746,{'path':_0x248be3});}export class DynamicMenuPart extends connect(store)(LitElement){static get['properties'](){return{'page':String,'resourceId':String,'menus':Array,'orientation':String,'_activeTopLevel':Object,'_activeMenu':Object,'_path':String};}static get[a0_0x4564c4(0x139)](){return[ScrollbarStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -27,10 +27,10 @@ var a0_0x314db2=a0_0x25ed;(function(_0x561f59,_0x206fc8){var _0x157e32=a0_0x25ed
|
|
|
27
27
|
lite-menu-landscape {
|
|
28
28
|
flex: 1;
|
|
29
29
|
}
|
|
30
|
-
`];}[
|
|
30
|
+
`];}['render'](){var _0x5ef239=a0_0x4564c4;return html`
|
|
31
31
|
<slot name="head"></slot>
|
|
32
|
-
${
|
|
33
|
-
.activeMenu=${this[
|
|
34
|
-
.activeMenu=${this[
|
|
32
|
+
${_0x5ef239(0x11f)!==this[_0x5ef239(0x134)]?html`<dynamic-menu-portrait .menus=${this[_0x5ef239(0x128)]} .activeTopLevel=${this[_0x5ef239(0x117)]}
|
|
33
|
+
.activeMenu=${this[_0x5ef239(0x132)]} .path=${this[_0x5ef239(0x135)]}></dynamic-menu-portrait>`:html`<dynamic-menu-landscape .menus=${this[_0x5ef239(0x128)]} .activeTopLevel=${this[_0x5ef239(0x117)]}
|
|
34
|
+
.activeMenu=${this[_0x5ef239(0x132)]} .path=${this[_0x5ef239(0x135)]}></dynamic-menu-landscape>`}
|
|
35
35
|
<slot name="tail"></slot>
|
|
36
|
-
`;}[
|
|
36
|
+
`;}[a0_0x4564c4(0x13c)](){var _0xc090d8=a0_0x4564c4;this['renderRoot']['addEventListener'](_0xc090d8(0x126),_0x593c3e=>{var _0x4144f7=_0xc090d8;_0x593c3e[_0x4144f7(0x127)](),_0x593c3e['preventDefault'](),this['_activeTopLevel']=_0x593c3e[_0x4144f7(0x123)];});}[a0_0x4564c4(0x122)](_0x5130fb){var _0x5034db=a0_0x4564c4;(_0x5130fb[_0x5034db(0x118)](_0x5034db(0x128))||_0x5130fb['has'](_0x5034db(0x115))||_0x5130fb[_0x5034db(0x118)](_0x5034db(0x12c)))&&this['_findActivePage'](),_0x5130fb[_0x5034db(0x118)](_0x5034db(0x134))&&('portrait'==this['orientation']?this[_0x5034db(0x121)](_0x5034db(0x11f)):this[_0x5034db(0x131)](_0x5034db(0x11f),!0x0)),_0x5130fb['has'](_0x5034db(0x12d))&&this[_0x5034db(0x11a)](this[_0x5034db(0x12d)]);}[a0_0x4564c4(0x11d)](_0x71d669){var _0x53eaa4=a0_0x4564c4;this[_0x53eaa4(0x115)]=_0x71d669[_0x53eaa4(0x13a)]['page'],this['resourceId']=_0x71d669[_0x53eaa4(0x13a)][_0x53eaa4(0x12c)],this['menus']=_0x71d669[_0x53eaa4(0x129)][_0x53eaa4(0x128)]||[],this[_0x53eaa4(0x12d)]=_0x71d669['metaUI'][_0x53eaa4(0x12d)];}[a0_0x4564c4(0x12f)](){var _0x16c753=a0_0x4564c4,_0x18eda8,_0x3fcb1f=this[_0x16c753(0x12c)]?this['page']+'/'+this[_0x16c753(0x12c)]:this[_0x16c753(0x115)],_0x291b84=this[_0x16c753(0x128)]||[];this[_0x16c753(0x117)]=_0x291b84[_0x16c753(0x11e)](_0x358d38=>isActiveMenu(_0x358d38,_0x3fcb1f)?(_0x18eda8=_0x358d38,!0x0):_0x358d38[_0x16c753(0x128)]?!!(_0x18eda8=_0x358d38[_0x16c753(0x128)]['find'](_0x12afa9=>isActiveMenu(_0x12afa9,_0x3fcb1f))):void 0x0),this[_0x16c753(0x135)]=_0x3fcb1f,this[_0x16c753(0x132)]=_0x18eda8||this['_activeTopLevel'];}}customElements['define'](a0_0x4564c4(0x124),DynamicMenuPart);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x284435,_0x154af7){const _0x5907b9=a0_0x4c07,_0x1ad78c=_0x284435();while(!![]){try{const _0x5ab2c8=parseInt(_0x5907b9(0x15a))/0x1+parseInt(_0x5907b9(0x15c))/0x2*(-parseInt(_0x5907b9(0x15b))/0x3)+parseInt(_0x5907b9(0x160))/0x4+-parseInt(_0x5907b9(0x15d))/0x5*(parseInt(_0x5907b9(0x164))/0x6)+-parseInt(_0x5907b9(0x161))/0x7+parseInt(_0x5907b9(0x162))/0x8*(-parseInt(_0x5907b9(0x163))/0x9)+parseInt(_0x5907b9(0x15f))/0xa*(parseInt(_0x5907b9(0x15e))/0xb);if(_0x5ab2c8===_0x154af7)break;else _0x1ad78c['push'](_0x1ad78c['shift']());}catch(_0x36a34d){_0x1ad78c['push'](_0x1ad78c['shift']());}}}(a0_0x3af3,0x200c0));import{css}from'lit';function a0_0x4c07(_0x1ddfa1,_0x598218){const _0x3af38f=a0_0x3af3();return a0_0x4c07=function(_0x4c0704,_0x1afe69){_0x4c0704=_0x4c0704-0x15a;let _0x124239=_0x3af38f[_0x4c0704];return _0x124239;},a0_0x4c07(_0x1ddfa1,_0x598218);}export const DynamicMenuPortraitStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -116,4 +116,4 @@
|
|
|
116
116
|
font: bold 14px var(--theme-font);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
`;
|
|
119
|
+
`;function a0_0x3af3(){const _0x5829e1=['1230Ybmflp','855624JNxtgN','1038163aToIvX','8BJTswc','1613349aYrTFN','12Gdefdw','90162YhESEF','321240tpNpxy','4GgIgOz','3260kiSEpC','33110vwraly'];a0_0x3af3=function(){return _0x5829e1;};return a0_0x3af3();}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x15e02c=a0_0x2511;(function(_0x4c4546,_0x5a6c8c){const _0x33df6b=a0_0x2511,_0x5c8355=_0x4c4546();while(!![]){try{const _0x3eb784=parseInt(_0x33df6b(0x143))/0x1+-parseInt(_0x33df6b(0x149))/0x2+parseInt(_0x33df6b(0x163))/0x3*(parseInt(_0x33df6b(0x147))/0x4)+parseInt(_0x33df6b(0x156))/0x5*(-parseInt(_0x33df6b(0x14d))/0x6)+-parseInt(_0x33df6b(0x159))/0x7+parseInt(_0x33df6b(0x15a))/0x8+-parseInt(_0x33df6b(0x161))/0x9*(-parseInt(_0x33df6b(0x14a))/0xa);if(_0x3eb784===_0x5a6c8c)break;else _0x5c8355['push'](_0x5c8355['shift']());}catch(_0x2ef0da){_0x5c8355['push'](_0x5c8355['shift']());}}}(a0_0x3fd2,0xa082c));function a0_0x2511(_0x5d8bc9,_0x5c1cec){const _0x3fd24c=a0_0x3fd2();return a0_0x2511=function(_0x2511f7,_0x5e0b2b){_0x2511f7=_0x2511f7-0x13e;let _0x490e4c=_0x3fd24c[_0x2511f7];return _0x490e4c;},a0_0x2511(_0x5d8bc9,_0x5c1cec);}import'@material/mwc-icon';import{html,LitElement}from'lit';import{navigate}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';import{DynamicMenuPortraitStyles}from'./dynamic-menu-portrait-styles';export class DynamicMenuPortrait extends LitElement{static get[a0_0x15e02c(0x153)](){return[ScrollbarStyles,DynamicMenuPortraitStyles];}static get['properties'](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x15e02c(0x160)](_0x119c10,_0x1a0748,_0x233208){const _0x1bd8e7=a0_0x15e02c;return html`
|
|
2
2
|
<ul>
|
|
3
|
-
${
|
|
3
|
+
${_0x119c10['map'](_0x3d1d61=>_0x1bd8e7(0x13f)==_0x3d1d61['type']?html`<li group-label>${_0x3d1d61['name']}</li>`:html`
|
|
4
4
|
<li
|
|
5
|
-
?active=${
|
|
6
|
-
.menu=${
|
|
5
|
+
?active=${_0x1a0748?_0x3d1d61===_0x1a0748:!(!_0x3d1d61['active']||_0x1bd8e7(0x145)!=typeof _0x3d1d61[_0x1bd8e7(0x150)])&&_0x3d1d61[_0x1bd8e7(0x150)]['call'](_0x3d1d61,{'path':this['path']})}
|
|
6
|
+
.menu=${_0x3d1d61}
|
|
7
7
|
menu
|
|
8
8
|
>
|
|
9
|
-
<a href=${
|
|
10
|
-
${
|
|
11
|
-
<mwc-icon>${
|
|
12
|
-
${
|
|
9
|
+
<a href=${_0x3d1d61[_0x1bd8e7(0x14c)]||'#'}>
|
|
10
|
+
${_0x3d1d61[_0x1bd8e7(0x152)]?.[_0x1bd8e7(0x146)]>0x0?html` <mwc-icon submenu-button></mwc-icon> `:html``}
|
|
11
|
+
<mwc-icon>${_0x3d1d61[_0x1bd8e7(0x155)]}</mwc-icon>
|
|
12
|
+
${_0x3d1d61[_0x1bd8e7(0x15f)]}
|
|
13
13
|
</a>
|
|
14
|
-
${
|
|
14
|
+
${_0x3d1d61[_0x1bd8e7(0x152)]&&this[_0x1bd8e7(0x160)](_0x3d1d61[_0x1bd8e7(0x152)],_0x233208)}
|
|
15
15
|
</li>
|
|
16
16
|
`)}
|
|
17
17
|
</ul>
|
|
18
|
-
`;}[
|
|
18
|
+
`;}['render'](){const {menus:_0x3f0915,activeTopLevel:_0x588b1e,activeMenu:_0xb25e76}=this;return this['renderMenus'](_0x3f0915,_0x588b1e,_0xb25e76);}[a0_0x15e02c(0x157)](){const _0x10f287=a0_0x15e02c;this[_0x10f287(0x158)][_0x10f287(0x151)](_0x10f287(0x140),_0x2be8b8=>{const _0x3d83d6=_0x10f287,_0x46c08b=_0x2be8b8[_0x3d83d6(0x14e)][_0x3d83d6(0x15b)](_0x3d83d6(0x14f));if(_0x46c08b?.[_0x3d83d6(0x154)]){let _0x15a46f=_0x46c08b[_0x3d83d6(0x154)];_0x15a46f['path']||(_0x2be8b8[_0x3d83d6(0x15d)](),_0x2be8b8[_0x3d83d6(0x14b)]()),this[_0x3d83d6(0x142)](new CustomEvent('active-toplevel',{'bubbles':!0x0,'detail':this[_0x3d83d6(0x148)]===_0x15a46f?void 0x0:_0x15a46f}));}let _0x553c55=_0x2be8b8[_0x3d83d6(0x14e)][_0x3d83d6(0x13e)];_0x553c55&&location[_0x3d83d6(0x13e)]===_0x553c55&&navigate(_0x553c55+'#force',!0x0);}),this[_0x10f287(0x158)][_0x10f287(0x151)]('transitionstart',_0x46bf24=>{_0x46bf24['target']['removeAttribute']('settled');}),this[_0x10f287(0x158)][_0x10f287(0x151)](_0x10f287(0x141),_0x2cab0e=>{const _0x53f697=_0x10f287;_0x2cab0e[_0x53f697(0x14e)][_0x53f697(0x162)](_0x53f697(0x15e),'');});}}function a0_0x3fd2(){const _0x93a894=['function','length','133564rdTnKT','activeTopLevel','1317074UDDZoo','730WfSOpO','preventDefault','path','2136DHWsFp','target','[menu]','active','addEventListener','menus','styles','menu','icon','5605yEqqRR','firstUpdated','renderRoot','7219618OXLOqe','2308560SbKcSs','closest','define','stopPropagation','settled','name','renderMenus','100647iaqTPk','setAttribute','66zYnPnf','href','group','click','transitionend','dispatchEvent','906908kizfFK','dynamic-menu-portrait'];a0_0x3fd2=function(){return _0x93a894;};return a0_0x3fd2();}customElements[a0_0x15e02c(0x15c)](a0_0x15e02c(0x144),DynamicMenuPortrait);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x44b49f=a0_0x387d;function a0_0xbc30(){const _0x4ee840=['properties','3914082qsjTTT','split','605RdBPXS','menus','4959biEWNj','4936JjIfjK','_findActivePage','1437VFgNbH','replaceChild','name','26iphaQl','path','_activeTopLevel','slotTemplate','2956XtvDkp','preventDefault','find','render','16720RqfMvl','updated','dynamic-top-menu-bar','31546476xRzPph','46362Vdstii','2270tazZoJ','329VYUqAh','stateChanged','group','page','route','resourceId','styles','map','dyamic-menu-part','has'];a0_0xbc30=function(){return _0x4ee840;};return a0_0xbc30();}(function(_0x186e51,_0x158230){const _0x130532=a0_0x387d,_0x1b3d72=_0x186e51();while(!![]){try{const _0x140418=-parseInt(_0x130532(0x9e))/0x1*(-parseInt(_0x130532(0xa4))/0x2)+parseInt(_0x130532(0xa1))/0x3*(-parseInt(_0x130532(0xa8))/0x4)+-parseInt(_0x130532(0x9c))/0x5*(parseInt(_0x130532(0xb0))/0x6)+-parseInt(_0x130532(0xb2))/0x7*(-parseInt(_0x130532(0x9f))/0x8)+-parseInt(_0x130532(0x9a))/0x9+parseInt(_0x130532(0xb1))/0xa*(-parseInt(_0x130532(0xac))/0xb)+parseInt(_0x130532(0xaf))/0xc;if(_0x140418===_0x158230)break;else _0x1b3d72['push'](_0x1b3d72['shift']());}catch(_0x2989aa){_0x1b3d72['push'](_0x1b3d72['shift']());}}}(a0_0xbc30,0x9f88d));import'@material/mwc-icon';function a0_0x387d(_0x15e1fa,_0x3d7cfc){const _0xbc3000=a0_0xbc30();return a0_0x387d=function(_0x387d6b,_0x4f95ff){_0x387d6b=_0x387d6b-0x93;let _0x53a825=_0xbc3000[_0x387d6b];return _0x53a825;},a0_0x387d(_0x15e1fa,_0x3d7cfc);}import{css,html,LitElement}from'lit';import{connect}from'pwa-helpers';import{toggleOverlay}from'@operato/layout';import{store}from'@operato/shell';export class DynamicTopMenuBar extends connect(store)(LitElement){static get[a0_0x44b49f(0x95)](){return css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: row;
|
|
@@ -48,20 +48,20 @@ const a0_0x3cf37c=a0_0xce13;(function(_0x14a41a,_0x3d5446){const _0x868448=a0_0x
|
|
|
48
48
|
li[active] a mwc-icon {
|
|
49
49
|
opacity: 1;
|
|
50
50
|
}
|
|
51
|
-
`;}static get[
|
|
51
|
+
`;}static get[a0_0x44b49f(0x99)](){return{'page':String,'resourceId':String,'menus':Array,'_activeTopLevel':Object};}[a0_0x44b49f(0xab)](){const _0x454cf0=a0_0x44b49f,{menus:_0x1baef9=[],_activeTopLevel:_0x3c2ced}=this;return html`
|
|
52
52
|
<slot name="head"></slot>
|
|
53
53
|
<ul>
|
|
54
|
-
${
|
|
55
|
-
<li ?active=${
|
|
54
|
+
${_0x1baef9[_0x454cf0(0x96)](_0x213532=>_0x454cf0(0xb4)==_0x213532['type']?html``:html`
|
|
55
|
+
<li ?active=${_0x213532===_0x3c2ced}>
|
|
56
56
|
<a
|
|
57
57
|
href="#"
|
|
58
|
-
@click=${
|
|
58
|
+
@click=${_0x2cd558=>{const _0x49b87b=_0x454cf0;_0x2cd558[_0x49b87b(0xa9)](),toggleOverlay(_0x49b87b(0x97),{'backdrop':!0x0});}}
|
|
59
59
|
>
|
|
60
|
-
${
|
|
60
|
+
${_0x213532[_0x454cf0(0xa3)]}
|
|
61
61
|
<mwc-icon>expand_more</mwc-icon>
|
|
62
62
|
</a>
|
|
63
63
|
</li>
|
|
64
64
|
`)}
|
|
65
65
|
</ul>
|
|
66
66
|
<slot name="tail"></slot>
|
|
67
|
-
`;}[
|
|
67
|
+
`;}[a0_0x44b49f(0xb3)](_0x81e03b){const _0xc25ea0=a0_0x44b49f;this[_0xc25ea0(0xb5)]=_0x81e03b[_0xc25ea0(0x93)][_0xc25ea0(0xb5)],this[_0xc25ea0(0x94)]=_0x81e03b['route'][_0xc25ea0(0x94)],this[_0xc25ea0(0x9d)]=_0x81e03b['metaUI']['menus']||[],this[_0xc25ea0(0xa7)]=_0x81e03b['metaUI'][_0xc25ea0(0xa7)];}[a0_0x44b49f(0xad)](_0x5f6954){const _0x22d061=a0_0x44b49f;(_0x5f6954[_0x22d061(0x98)](_0x22d061(0x9d))||_0x5f6954['has'](_0x22d061(0xb5))||_0x5f6954[_0x22d061(0x98)](_0x22d061(0x94)))&&this[_0x22d061(0xa0)](),_0x5f6954[_0x22d061(0x98)](_0x22d061(0xa7))&&this[_0x22d061(0xa2)](this[_0x22d061(0xa7)]);}[a0_0x44b49f(0xa0)](){const _0x4275f3=a0_0x44b49f;var _0x59099e=this[_0x4275f3(0x94)]?this['page']+'/'+this[_0x4275f3(0x94)]:this['page'],_0x1581d8=this['menus']||[];this[_0x4275f3(0xa6)]=_0x1581d8[_0x4275f3(0xaa)](_0x5df3da=>_0x5df3da[_0x4275f3(0xa5)]?.[_0x4275f3(0x9b)]('?')[0x0]===_0x59099e||(_0x5df3da[_0x4275f3(0x9d)]?!!_0x5df3da[_0x4275f3(0x9d)][_0x4275f3(0xaa)](_0x384fb0=>_0x384fb0[_0x4275f3(0xa5)]?.[_0x4275f3(0x9b)]('?')[0x0]===_0x59099e):void 0x0));}}customElements['define'](a0_0x44b49f(0xae),DynamicTopMenuBar);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var a0_0x4e8526=a0_0x4c43;function a0_0x4c43(_0x1704de,_0x22647e){var _0x532675=a0_0x5326();return a0_0x4c43=function(_0x4c4387,_0x208f24){_0x4c4387=_0x4c4387-0x114;var _0x36d48b=_0x532675[_0x4c4387];return _0x36d48b;},a0_0x4c43(_0x1704de,_0x22647e);}(function(_0x238148,_0x578b03){var _0x1d8dc7=a0_0x4c43,_0x30b2e0=_0x238148();while(!![]){try{var _0x234729=-parseInt(_0x1d8dc7(0x11c))/0x1*(-parseInt(_0x1d8dc7(0x11a))/0x2)+parseInt(_0x1d8dc7(0x11e))/0x3+-parseInt(_0x1d8dc7(0x121))/0x4+parseInt(_0x1d8dc7(0x11f))/0x5+-parseInt(_0x1d8dc7(0x114))/0x6+-parseInt(_0x1d8dc7(0x120))/0x7+parseInt(_0x1d8dc7(0x118))/0x8*(parseInt(_0x1d8dc7(0x11b))/0x9);if(_0x234729===_0x578b03)break;else _0x30b2e0['push'](_0x30b2e0['shift']());}catch(_0x4c71c1){_0x30b2e0['push'](_0x30b2e0['shift']());}}}(a0_0x5326,0x2af84));function a0_0x5326(){var _0x26f9dc=['182690qEebAi','1091979MGmbVF','1130812Gbbosv','__esModule','757044emjLIJ','INVALID_LICENSE','defineProperty','OVER_LIMIT','144ojgnel','error.page\x20count\x20over\x20license\x20limit','44924fQLdnn','324054tDuDIm','1zsCjZN','error.invalid\x20license\x20key','101310zHklfC'];a0_0x5326=function(){return _0x26f9dc;};return a0_0x5326();}Object[a0_0x4e8526(0x116)](exports,a0_0x4e8526(0x122),{'value':!0x0}),exports[a0_0x4e8526(0x117)]=exports[a0_0x4e8526(0x115)]=void 0x0,exports[a0_0x4e8526(0x115)]=a0_0x4e8526(0x11d),exports['OVER_LIMIT']=a0_0x4e8526(0x119);
|