@things-factory/meta-ui 6.1.15 → 6.1.17
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 +4 -4
- package/client/component/filter/filter-form-meta-code-select.js +10 -10
- package/client/component/filter/filter-form-meta-object-select.js +10 -10
- package/client/component/filter/filter-grist-meta-code-select.js +9 -9
- package/client/component/filter/filter-grist-meta-object-select.js +10 -10
- package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
- package/client/component/grist/editor/grist-editor-meta-object-selector.js +7 -7
- package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
- package/client/component/selector/meta-object-selector-popup.js +11 -11
- 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 +1 -1
- package/client/mixin/meta-main-tab-mixin.js +1 -1
- package/client/mixin/meta-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-detail-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/activity/meta-activity-list-page.js +5 -5
- package/client/pages/activity/meta-activity-viewer-element.js +3 -3
- package/client/pages/activity/meta-activity-writer-element.js +2 -2
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/entity/config-entity.js +29 -29
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- 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-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-main-tab-element.js +1 -1
- package/client/pages/meta-main-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-detail-element.js +1 -1
- package/client/pages/meta-tab-detail-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/pages/work-code/work-code-detail-popup.js +1 -1
- package/client/pages/work-code/work-code-page.js +1 -1
- 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 +103 -103
- package/client/utils/service-util.js +13 -13
- 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 +1 -1
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +11 -11
- package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +5 -5
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-activity/meta-activity-mutation.js +1 -1
- package/server/service/meta-activity/meta-activity-query.js +1 -1
- package/server/service/meta-activity/meta-activity-type.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
- package/server/service/work-code/work-code-mutation.js +1 -1
- package/server/service/work-code/work-code-query.js +1 -1
- package/server/service/work-code/work-code-type.js +1 -1
- package/server/service/work-code/work-code.js +1 -1
- package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
- package/server/service/work-code-detail/work-code-detail-query.js +1 -1
- package/server/service/work-code-detail/work-code-detail-type.js +1 -1
- package/server/service/work-code-detail/work-code-detail.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x59df8b=a0_0x525c;(function(_0x57422f,_0xb18fb2){const _0xd44a4a=a0_0x525c,_0x2bb539=_0x57422f();while(!![]){try{const _0x54dc9f=-parseInt(_0xd44a4a(0x195))/0x1+-parseInt(_0xd44a4a(0x17a))/0x2+-parseInt(_0xd44a4a(0x12c))/0x3*(parseInt(_0xd44a4a(0x17e))/0x4)+parseInt(_0xd44a4a(0x18c))/0x5*(-parseInt(_0xd44a4a(0x172))/0x6)+-parseInt(_0xd44a4a(0x19a))/0x7*(-parseInt(_0xd44a4a(0x153))/0x8)+parseInt(_0xd44a4a(0x1a2))/0x9+-parseInt(_0xd44a4a(0x137))/0xa*(-parseInt(_0xd44a4a(0x162))/0xb);if(_0x54dc9f===_0xb18fb2)break;else _0x2bb539['push'](_0x2bb539['shift']());}catch(_0x21cd38){_0x2bb539['push'](_0x2bb539['shift']());}}}(a0_0x3c5c,0x3386c));import{store,gqlContext}from'@things-factory/shell';import{getCodeByName}from'@things-factory/code-base';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_0x5e2fc5 from'graphql-tag';function a0_0x525c(_0x187b85,_0x2a6b8f){const _0x3c5cd4=a0_0x3c5c();return a0_0x525c=function(_0x525c0b,_0x55bf45){_0x525c0b=_0x525c0b-0x12b;let _0x514d2a=_0x3c5cd4[_0x525c0b];return _0x514d2a;},a0_0x525c(_0x187b85,_0x2a6b8f);}function a0_0x3c5c(){const _0x3901d5=['code','9658uNhsiA','callScenario','HIDDEN-PAGE','columns','networkError','text.NOTHING_CHANGED','createdAt','updateMultipleData','myDynamicMenus','routing','menuType','extensions','total','__seq__','query','deleteListByGristSelected','486bWYSIa','type','record','result','tText','updatedAt','description','details','451534jKcJre','length','active','findIndex','4060IwJWCW','showToast','data','confirm','dirtyRecords','GROUP','value','workCodeByName','text.nothing_changed','\x0a\x20\x20\x20\x20\x20\x20','__dirty__','name','split','message','23180lwzTDE','object','showGraphqlException','updateMultiple','imex','getCodeByScenario','__selected__','button.','template','256081dGFsYZ','updater','children','hidden','cancel','168644jMSnkM','delete','numberOfApprovalPendings','todo-list','sort','text.nothing_selected','badge','menu.id','3426750rozKey','error','runScenario','noteq','rank','searchByPagination','xlsx','showGraphqlErrorResponse','map','\x0a\x20\x20\x20\x20','getSelectedIdList','forEach','_config','378shXJlI','numberOfToDos','isNotEmpty','creator','draft-list','tMenu','text.there_is_nothing_to_delete','path','exportableData','key','dispatch','8740QbzRGr','records','undefined','id,template','patchesForUpdateMultiple','title','gutter','resourceUrl','buildArgs','routingType','getCodeByEntity','HOME','info','unshift','success\x20to\x20process','group','menus','success\x20to\x20delete','hiddenFlag','push','deleteListByIds','parse','codeItems','MENU','fetch','test','findOne','__dirtyfields__','16WqSikJ','find','errors','arrangeMenuRoutes','searchMyDynamicMenus','text.are_you_sure','reduce','checkClientError','showAlertPopup','SCREEN','filter','question','__origin__','splice'];a0_0x3c5c=function(){return _0x3901d5;};return a0_0x3c5c();}import{ValueUtil}from'./value-util';import{asyncReplace}from'lit/directives/async-replace.js';import a0_0x4fe948 from'i18next';import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';export class ServiceUtil{static async['codeItems'](_0x4a8384){const _0x55994c=a0_0x525c;if(Array['isArray'](_0x4a8384))return _0x4a8384[_0x55994c(0x1aa)](_0x3328b8=>_0x55994c(0x18d)==typeof _0x3328b8?{'name':_0x3328b8[_0x55994c(0x184)],'description':_0x3328b8['display']}:{'name':_0x3328b8,'description':_0x3328b8});let _0x4406a8=await ServiceUtil['getWorkCodeByName'](_0x4a8384);return _0x4406a8&&_0x4406a8[_0x55994c(0x17b)]>0x0?_0x4406a8:await getCodeByName(_0x4a8384);}static async['getWorkCodeByName'](_0x123220){const _0x2b680d=a0_0x525c,_0x4e05bb=await client[_0x2b680d(0x170)]({'query':a0_0x5e2fc5`
|
|
2
2
|
query workCodeByName($name: String!) {
|
|
3
3
|
workCodeByName(name: $name) {
|
|
4
4
|
details {
|
|
@@ -8,32 +8,32 @@ function a0_0x4a3c(){const _0xb74675=['\x0a\x20\x20\x20\x20','find','extensions'
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
`,'variables':{'name':
|
|
11
|
+
`,'variables':{'name':_0x123220},'context':gqlContext()});return!_0x4e05bb[_0x2b680d(0x155)]&&_0x4e05bb['data'][_0x2b680d(0x185)]&&_0x4e05bb[_0x2b680d(0x180)][_0x2b680d(0x185)][_0x2b680d(0x179)]?_0x4e05bb[_0x2b680d(0x180)][_0x2b680d(0x185)][_0x2b680d(0x179)][_0x2b680d(0x19e)]((_0x463823,_0x5bbfd5)=>_0x463823[_0x2b680d(0x1a6)]-_0x5bbfd5['rank']):[];}static async['getCodeSelectorData'](_0x27637b){const _0x55e1f8=a0_0x525c;let _0x474993=(await ServiceUtil[_0x55e1f8(0x14d)](_0x27637b))['map'](_0x372148=>({'value':_0x372148[_0x55e1f8(0x189)],'display':_0x372148[_0x55e1f8(0x178)]}));return _0x474993[_0x55e1f8(0x144)]({'value':'','display':''}),_0x474993;}static async[a0_0x59df8b(0x191)](_0x4526a6,_0x3db9c9){const _0x4d2c82=a0_0x59df8b;let _0x5dab4b=await ServiceUtil[_0x4d2c82(0x163)](null,_0x4526a6,_0x3db9c9);return _0x5dab4b[_0x4d2c82(0x144)]({'value':'','display':''}),_0x5dab4b['map'](_0x5bd9ef=>({'value':_0x5bd9ef[_0x4d2c82(0x189)],'display':_0x5bd9ef[_0x4d2c82(0x178)]}));}static async[a0_0x59df8b(0x141)]({queryName:_0x58baf3,codeField:_0x1e3a3d=a0_0x59df8b(0x189),dispField:_0x1588f9=a0_0x59df8b(0x178),filters:_0x153819=[],sorters:_0x17078c=[]}){const _0x6968ab=a0_0x59df8b;let _0x65460f=_0x6968ab(0x187)+_0x1e3a3d+'\x0a\x20\x20\x20\x20\x20\x20'+_0x1588f9+_0x6968ab(0x1ab),_0x2b7368=await ServiceUtil[_0x6968ab(0x1a7)](_0x58baf3,_0x153819,_0x17078c,0x0,0x0,_0x65460f),_0x13bea5=[{'value':'','display':''}];return _0x2b7368[_0x6968ab(0x138)][_0x6968ab(0x1ad)](_0x5dd815=>{_0x13bea5['push']({'value':_0x5dd815[_0x1e3a3d],'display':_0x5dd815[_0x1588f9]});}),_0x13bea5;}static async[a0_0x59df8b(0x16a)](){const _0x5ac78d=a0_0x59df8b;let _0x46964b=await ServiceUtil[_0x5ac78d(0x157)]();return null!=_0x46964b?ServiceUtil[_0x5ac78d(0x156)](_0x46964b):null;}static async['searchMenuGridPersnalTemplate'](_0x214441){const _0x37b32d=a0_0x59df8b;let _0x54f15f=[{'name':_0x37b32d(0x1a1),'operator':'eq','value':_0x214441}],_0x2d4d23=await ServiceUtil[_0x37b32d(0x1a7)]('gridPersonalizeTemplates',_0x54f15f,[],0x0,0x0,_0x37b32d(0x13a));return 0x0==_0x2d4d23[_0x37b32d(0x16e)]?{}:{'id':_0x2d4d23['records'][0x0]['id'],'template':JSON[_0x37b32d(0x14c)](_0x2d4d23['records'][0x0][_0x37b32d(0x194)])};}static['arrangeMenuRoutes'](_0x125296){const _0x5548db=a0_0x59df8b;let _0x6341aa=[];_0x125296[_0x5548db(0x1ad)](_0x11baeb=>{const _0x3120e3=_0x5548db;_0x6341aa[_0x3120e3(0x14a)](_0x11baeb),_0x11baeb[_0x3120e3(0x197)]&&(_0x11baeb[_0x3120e3(0x197)][_0x3120e3(0x19e)](function(_0x229ed4,_0x2f990d){const _0x21db08=_0x3120e3;return _0x229ed4[_0x21db08(0x1a6)]-_0x2f990d[_0x21db08(0x1a6)];}),_0x11baeb[_0x3120e3(0x197)][_0x3120e3(0x1ad)](_0x136b72=>{const _0x2b5bf1=_0x3120e3;0x1!=_0x136b72['hiddenFlag']&&(_0x136b72['parent']=_0x11baeb,_0x6341aa[_0x2b5bf1(0x14a)](_0x136b72));}));});let _0x1e5090=_0x6341aa['map'](_0x3112b4=>{const _0x37764e=_0x5548db;if(_0x37764e(0x183)==_0x3112b4[_0x37764e(0x16c)]||_0x37764e(0x14e)==_0x3112b4[_0x37764e(0x16c)]){let _0x184a76={'id':_0x3112b4['id'],'parent':!0x0,'name':TermsUtil[_0x37764e(0x131)](_0x3112b4[_0x37764e(0x189)]),'icon':_0x3112b4['iconPath'],'type':_0x37764e(0x183)==_0x3112b4['menuType']?_0x37764e(0x146):'','menus':[]};return _0x3112b4[_0x37764e(0x16b)]&&(_0x184a76[_0x37764e(0x133)]=_0x3112b4[_0x37764e(0x16b)]),_0x184a76;}return{'id':'0'};})[_0x5548db(0x15d)](_0x45220d=>'0'!=_0x45220d['id']),_0x430e59=_0x6341aa['map'](_0x2bb999=>{const _0x41e63a=_0x5548db;if(_0x41e63a(0x15c)==_0x2bb999[_0x41e63a(0x16c)]||_0x41e63a(0x164)==_0x2bb999[_0x41e63a(0x16c)]){let _0x41de6a=_0x1e5090[_0x41e63a(0x154)](_0x27883b=>_0x27883b['id']==_0x2bb999['parent']['id']);if(_0x41de6a){let _0x58d940=TermsUtil['tMenu'](_0x2bb999['name']);return'SCREEN'==_0x2bb999[_0x41e63a(0x16c)]&&_0x41de6a[_0x41e63a(0x147)][_0x41e63a(0x14a)]({'id':_0x2bb999['id'],'name':_0x58d940,'path':_0x2bb999['routing'],'icon':_0x2bb999['iconPath']}),{'id':_0x2bb999['id'],'parent':!0x1,'parent_id':_0x41de6a['id'],'title':_0x58d940,'tagname':_0x2bb999['category'],'page':_0x2bb999[_0x41e63a(0x16b)],'template':_0x2bb999[_0x41e63a(0x13e)],'routing_type':_0x2bb999[_0x41e63a(0x140)]};}return{'id':'0'};}return _0x41e63a(0x142)==_0x2bb999[_0x41e63a(0x16c)]?{'id':_0x2bb999['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil[_0x41e63a(0x131)](_0x2bb999[_0x41e63a(0x189)]),'tagname':_0x2bb999['category'],'page':_0x2bb999[_0x41e63a(0x16b)],'template':_0x2bb999[_0x41e63a(0x13e)],'routing_type':_0x2bb999[_0x41e63a(0x140)]}:{'id':'0'};})['filter'](_0x55f13b=>null!=_0x55f13b&&'0'!=_0x55f13b['id']);_0x1e5090['filter'](_0x347f4a=>_0x5548db(0x146)==_0x347f4a[_0x5548db(0x173)]&&_0x347f4a[_0x5548db(0x147)]&&_0x347f4a[_0x5548db(0x147)]['length']>0x0)[_0x5548db(0x1ad)](_0x5db0f4=>{const _0x23a672=_0x5548db;let _0x4d81e0=_0x1e5090[_0x23a672(0x17d)](_0x2b6dee=>_0x2b6dee['id']==_0x5db0f4['id'])+0x1;_0x1e5090[_0x23a672(0x160)](_0x4d81e0,0x0,..._0x5db0f4['menus']);});let _0x21031a=0x0;return _0x1e5090['forEach'](_0x5b3845=>{const _0xed2b35=_0x5548db;_0xed2b35(0x19d)==_0x5b3845[_0xed2b35(0x133)]?(_0x21031a++,_0x5b3845[_0xed2b35(0x1a0)]=()=>asyncReplace(generateActivitySummary(_0xed2b35(0x12d))),_0x5b3845[_0xed2b35(0x17c)]=({path:_0x400e07})=>/^activity\//[_0xed2b35(0x150)](_0x400e07)):'approval-pending-list'==_0x5b3845[_0xed2b35(0x133)]?(_0x21031a++,_0x5b3845[_0xed2b35(0x1a0)]=()=>asyncReplace(generateActivitySummary(_0xed2b35(0x19c))),_0x5b3845[_0xed2b35(0x17c)]=({path:_0xac92b9})=>/^activity\//['test'](_0xac92b9)):_0xed2b35(0x130)==_0x5b3845[_0xed2b35(0x133)]&&(_0x21031a++,_0x5b3845['badge']=()=>asyncReplace(generateActivitySummary('numberOfDrafts')));}),_0x21031a>0x0&&startSubscribeActivitySummary(),{'menus':_0x1e5090,'routes':_0x430e59};}static async[a0_0x59df8b(0x157)](){const _0x2024ce=a0_0x59df8b;let _0x343afa=await ServiceUtil[_0x2024ce(0x1a7)](_0x2024ce(0x147),[{'name':_0x2024ce(0x149),'operator':_0x2024ce(0x1a5),'value':!0x0},{'name':_0x2024ce(0x16c),'operator':'in','value':['HOME',_0x2024ce(0x14e),_0x2024ce(0x183)]}],[{'name':_0x2024ce(0x1a6)}],0x0,0x0,'\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');return _0x343afa?_0x343afa[_0x2024ce(0x138)]:[];}static async[a0_0x59df8b(0x1a9)](_0xc40ec2){const _0x38dc7f=a0_0x59df8b;if(_0xc40ec2['errors']&&_0xc40ec2[_0x38dc7f(0x155)]['length']>0x0){let _0x62aef4=_0xc40ec2['errors'][0x0],_0x47adea=_0x62aef4['message'],_0x13b8d1=_0x62aef4[_0x38dc7f(0x18b)];_0x62aef4['extensions']&&(_0x13b8d1=_0x62aef4[_0x38dc7f(0x16d)][_0x38dc7f(0x161)]),await UiUtil[_0x38dc7f(0x15b)](_0x13b8d1,_0x47adea,_0x38dc7f(0x1a3),_0x38dc7f(0x181));}}static async[a0_0x59df8b(0x18e)](_0x5cd35e){const _0x597939=a0_0x59df8b;_0x5cd35e&&(_0x5cd35e[_0x597939(0x166)]&&_0x5cd35e[_0x597939(0x166)][_0x597939(0x175)]?await ServiceUtil[_0x597939(0x1a9)](_0x5cd35e[_0x597939(0x166)][_0x597939(0x175)]):await UiUtil[_0x597939(0x15b)]('Graphql\x20Error',_0x5cd35e['message'],'error',_0x597939(0x181)));}static async[a0_0x59df8b(0x134)](_0x280828,_0xf0e46d,_0x1c7d37){const _0x28c60f=a0_0x59df8b;var _0x4c4405=_0x1c7d37[_0x28c60f(0x12b)]['columns'][_0x28c60f(0x15d)](_0x5457f3=>'gutter'!==_0x5457f3[_0x28c60f(0x173)]&&void 0x0!==_0x5457f3[_0x28c60f(0x174)]&&void 0x0!==_0x5457f3[_0x28c60f(0x190)]&&!0x0!==_0x5457f3[_0x28c60f(0x198)])[_0x28c60f(0x1aa)](_0x598271=>_0x598271[_0x28c60f(0x190)]),_0x5ebe9f=_0x1c7d37[_0x28c60f(0x180)][_0x28c60f(0x138)][_0x28c60f(0x1aa)](_0x1503f4=>({..._0x1c7d37[_0x28c60f(0x12b)][_0x28c60f(0x165)][_0x28c60f(0x15d)](_0x1029c5=>_0x28c60f(0x13d)!==_0x1029c5['type']&&void 0x0!==_0x1029c5[_0x28c60f(0x174)]&&void 0x0!==_0x1029c5['imex']&&!0x0!==_0x1029c5['hidden'])['reduce']((_0x14c9fa,_0x4d491a)=>(_0x14c9fa[_0x4d491a[_0x28c60f(0x190)][_0x28c60f(0x135)]]=_0x4d491a[_0x28c60f(0x190)][_0x28c60f(0x135)][_0x28c60f(0x18a)]('.')[_0x28c60f(0x159)]((_0x4f348c,_0x4ed8f6)=>_0x4f348c&&_0x28c60f(0x139)!==_0x4f348c[_0x4ed8f6]?_0x4f348c[_0x4ed8f6]:void 0x0,_0x1503f4),_0x14c9fa),{})}));if(!_0x280828)return{'header':_0x4c4405,'data':_0x5ebe9f};store[_0x28c60f(0x136)]({'type':EXPORT,'exportable':{'extension':_0x28c60f(0x1a8),'name':_0xf0e46d,'data':{'header':_0x4c4405,'data':_0x5ebe9f}}});}static async['searchByPagination'](_0x590b48,_0x3ea3b1,_0x13307d,_0x1e408c,_0x389f0f,_0x42fcec){const _0x3a10cf=a0_0x59df8b;try{const _0x55e2a0=await client[_0x3a10cf(0x170)]({'query':a0_0x5e2fc5`
|
|
12
12
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
13
|
-
${
|
|
13
|
+
${_0x590b48}(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
14
14
|
items {
|
|
15
|
-
${
|
|
15
|
+
${_0x42fcec}
|
|
16
16
|
}
|
|
17
17
|
total
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,'variables':{'filters':
|
|
20
|
+
`,'variables':{'filters':_0x3ea3b1,'sortings':_0x13307d,'pagination':{'page':_0x1e408c,'limit':_0x389f0f}}});if(!_0x55e2a0[_0x3a10cf(0x155)])return{'records':_0x55e2a0[_0x3a10cf(0x180)][_0x590b48]['items'],'total':_0x55e2a0['data'][_0x590b48][_0x3a10cf(0x16e)]};ServiceUtil['showGraphqlErrorResponse'](_0x55e2a0);}catch(_0x4d43ff){ServiceUtil[_0x3a10cf(0x18e)](_0x4d43ff);}return null;}static async[a0_0x59df8b(0x151)](_0x5de2e0,_0x375e77,_0x45c6cc){const _0xad59e3=a0_0x59df8b;try{let _0x9ffe10=await client[_0xad59e3(0x170)]({'query':a0_0x5e2fc5`
|
|
21
21
|
query ($id: String!) {
|
|
22
|
-
${
|
|
23
|
-
${
|
|
22
|
+
${_0x5de2e0}(id: $id) {
|
|
23
|
+
${_0x45c6cc}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,'variables':{'id':
|
|
26
|
+
`,'variables':{'id':_0x375e77}});if(!_0x9ffe10[_0xad59e3(0x155)])return _0x9ffe10[_0xad59e3(0x180)][_0x5de2e0]||{};ServiceUtil[_0xad59e3(0x1a9)](_0x9ffe10);}catch(_0x14e519){ServiceUtil['showGraphqlException'](_0x14e519);}return null;}static[a0_0x59df8b(0x1ac)](_0x153cf3,_0x33081f){const _0x183e1e=a0_0x59df8b,_0xb1419f=_0x153cf3['selected'][_0x183e1e(0x1aa)](_0x57f834=>_0x57f834['id']);return ValueUtil['isEmpty'](_0xb1419f)&&0x1==_0x33081f&&UiUtil[_0x183e1e(0x15b)](_0x183e1e(0x19f),_0x183e1e(0x132),'info',_0x183e1e(0x181)),_0xb1419f;}static async[a0_0x59df8b(0x171)](_0x1adaaf,_0xee221c){const _0xa0e6ce=a0_0x59df8b;let _0x2662fb=ServiceUtil[_0xa0e6ce(0x1ac)](_0x1adaaf,!0x0);ValueUtil[_0xa0e6ce(0x12e)](_0x2662fb)&&(await ServiceUtil[_0xa0e6ce(0x14b)](_0x2662fb,_0xee221c)&&_0x1adaaf['fetch']());}static async[a0_0x59df8b(0x14b)](_0x2ca6ef,_0x1a39e9){const _0x28cfcc=a0_0x59df8b;if(!(await UiUtil[_0x28cfcc(0x15b)]('button.delete',_0x28cfcc(0x158),_0x28cfcc(0x15e),_0x28cfcc(0x19b),_0x28cfcc(0x199)))[_0x28cfcc(0x184)])return!0x1;try{const _0x55f149=await client[_0x28cfcc(0x170)]({'query':a0_0x5e2fc5`
|
|
27
27
|
mutation {
|
|
28
|
-
${
|
|
28
|
+
${_0x1a39e9}(${gqlBuilder[_0x28cfcc(0x13f)]({'ids':_0x2ca6ef})})
|
|
29
29
|
}
|
|
30
|
-
`});if(!
|
|
30
|
+
`});if(!_0x55f149['errors'])return UiUtil['showToast']('info',TermsUtil['tText'](_0x28cfcc(0x148))),!0x0;ServiceUtil['showGraphqlErrorResponse'](_0x55f149);}catch(_0x1b5443){ServiceUtil[_0x28cfcc(0x18e)](_0x1b5443);}return!0x1;}static async[a0_0x59df8b(0x169)](_0x6c55df,_0x50849f){const _0x18d6a1=a0_0x59df8b;let _0x1fd933=ServiceUtil['patchesForUpdateMultiple'](_0x6c55df);if(ValueUtil[_0x18d6a1(0x12e)](_0x1fd933)){let _0x468a44=await ServiceUtil[_0x18d6a1(0x18f)](_0x50849f,_0x1fd933);if(_0x468a44)return _0x6c55df[_0x18d6a1(0x14f)](),_0x468a44;}return!0x1;}static async['updateMultiple'](_0x443ac4,_0x1d47a9){const _0x14fa57=a0_0x59df8b;try{const _0x81451c=await client[_0x14fa57(0x170)]({'query':a0_0x5e2fc5`
|
|
31
31
|
mutation {
|
|
32
|
-
${
|
|
32
|
+
${_0x443ac4}(${gqlBuilder['buildArgs']({'patches':_0x1d47a9})}) {
|
|
33
33
|
id
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
`,'context':{'hasUpload':!0x0}});if(!
|
|
36
|
+
`,'context':{'hasUpload':!0x0}});if(!_0x81451c[_0x14fa57(0x155)])return UiUtil[_0x14fa57(0x17f)]('info',TermsUtil[_0x14fa57(0x176)]('success\x20to\x20save')),!0x0;ServiceUtil['showGraphqlErrorResponse'](_0x81451c);}catch(_0x207fe5){ServiceUtil[_0x14fa57(0x18e)](_0x207fe5);}return!0x1;}static[a0_0x59df8b(0x13b)](_0x17920e,_0x550d78=!0x1){const _0x4a042c=a0_0x59df8b;let _0x421630=_0x17920e[_0x4a042c(0x182)];if(_0x421630&&0x0!=_0x421630[_0x4a042c(0x17b)])return _0x421630[_0x4a042c(0x1aa)](_0x888218=>{const _0x51175a=_0x4a042c;let _0x3c2167=_0x888218['id']?{'id':_0x888218['id']}:{};for(let _0x242532 in _0x888218)[_0x51175a(0x12f),_0x51175a(0x196),_0x51175a(0x168),_0x51175a(0x177),_0x51175a(0x188),_0x51175a(0x152),_0x51175a(0x15f),_0x51175a(0x16f),_0x51175a(0x192)]['includes'](_0x242532)||(_0x888218[_0x242532]&&_0x51175a(0x18d)==typeof _0x888218[_0x242532]&&0x0==_0x550d78?_0x3c2167[_0x242532]={'id':_0x888218[_0x242532]['id']}:_0x3c2167[_0x242532]=_0x888218[_0x242532]);return _0x3c2167['cuFlag']=_0x888218['__dirty__'],_0x3c2167;});UiUtil[_0x4a042c(0x15b)](_0x4a042c(0x186),_0x4a042c(0x167),'info',_0x4a042c(0x181));}static async['callScenario'](_0x352236,_0x3c2ab8,_0x31aac3,_0x198201=!0x0){const _0x1bebe8=a0_0x59df8b;let _0x9ba7d7=!0x0;_0x352236&&!0x0===_0x198201&&(_0x9ba7d7=(await UiUtil[_0x1bebe8(0x15b)](_0x1bebe8(0x193)+_0x352236,'text.are_you_sure',_0x1bebe8(0x15e),_0x1bebe8(0x181),_0x1bebe8(0x199)))['value']);if(_0x9ba7d7)try{const _0x9b7313=await client[_0x1bebe8(0x170)]({'query':a0_0x5e2fc5`
|
|
37
37
|
mutation ($scenarioName: String!, $variables: Object) {
|
|
38
38
|
runScenario(scenarioName: $scenarioName, variables: $variables) {
|
|
39
39
|
state
|
|
@@ -42,4 +42,4 @@ function a0_0x4a3c(){const _0xb74675=['\x0a\x20\x20\x20\x20','find','extensions'
|
|
|
42
42
|
__typename
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
`,'variables':{'scenarioName':
|
|
45
|
+
`,'variables':{'scenarioName':_0x3c2ab8,'variables':_0x31aac3}});if(_0x9b7313[_0x1bebe8(0x155)])ServiceUtil[_0x1bebe8(0x1a9)](_0x9b7313);else{if(this[_0x1bebe8(0x15a)](_0x9b7313))return!0x0===_0x198201&&UiUtil['showToast'](_0x1bebe8(0x143),TermsUtil['tText'](_0x1bebe8(0x145))),_0x9b7313;}}catch(_0x5cef2c){ServiceUtil['showGraphqlException'](_0x5cef2c);}return!0x1;}static[a0_0x59df8b(0x15a)](_0x303962){const _0x10ed9c=a0_0x59df8b;if(_0x303962&&_0x303962[_0x10ed9c(0x180)]&&_0x303962[_0x10ed9c(0x180)]['runScenario']&&_0x303962[_0x10ed9c(0x180)][_0x10ed9c(0x1a4)]['data']&&_0x303962[_0x10ed9c(0x180)][_0x10ed9c(0x1a4)]['data'][_0x10ed9c(0x1a3)]){let _0x54577c=_0x303962[_0x10ed9c(0x180)]['runScenario'][_0x10ed9c(0x180)][_0x10ed9c(0x1a3)];return UiUtil[_0x10ed9c(0x15b)](_0x54577c[_0x10ed9c(0x13c)],_0x54577c[_0x10ed9c(0x18b)],_0x10ed9c(0x1a3),'confirm'),!0x1;}return!0x0;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x170fbe=a0_0x24a3;(function(_0x5eaa77,_0x49ca0c){const _0x45256a=a0_0x24a3,_0x54b3d9=_0x5eaa77();while(!![]){try{const _0x124771=-parseInt(_0x45256a(0x95))/0x1+-parseInt(_0x45256a(0x87))/0x2+-parseInt(_0x45256a(0x85))/0x3+-parseInt(_0x45256a(0x84))/0x4+parseInt(_0x45256a(0x96))/0x5*(-parseInt(_0x45256a(0x7a))/0x6)+parseInt(_0x45256a(0x73))/0x7*(-parseInt(_0x45256a(0x7b))/0x8)+parseInt(_0x45256a(0x8e))/0x9;if(_0x124771===_0x49ca0c)break;else _0x54b3d9['push'](_0x54b3d9['shift']());}catch(_0x541514){_0x54b3d9['push'](_0x54b3d9['shift']());}}}(a0_0x4585,0x33c55));import a0_0x56eb63 from'graphql-tag';function a0_0x4585(){const _0x494d4d=['tLabel','tMenu','data','label','records','tField','category','keys','510308uECiCG','59361EOkiIq','replace','255848SkfSyR','field','tTitle','query','text','title','forEach','12391857oVPEoC','translate','name','length','terminologies','menu','fetchTerminologies','117786GkeiuI','115HNukwo','553pMUdQF','errors','error','tText','downloadTerminologies','display','META_TERMS','102630FuqBuz','38312nikGPP'];a0_0x4585=function(){return _0x494d4d;};return a0_0x4585();}function a0_0x24a3(_0x5a7759,_0x2f360f){const _0x458590=a0_0x4585();return a0_0x24a3=function(_0x24a31d,_0x3c5790){_0x24a31d=_0x24a31d-0x73;let _0x345f40=_0x458590[_0x24a31d];return _0x345f40;},a0_0x24a3(_0x5a7759,_0x2f360f);}import{client}from'@operato/graphql';import{i18next}from'@operato/i18n';export class TermsUtil{[a0_0x170fbe(0x79)]=null;static async[a0_0x170fbe(0x77)](_0x3834e9){const _0x14d732=a0_0x170fbe;let _0x4da1ec=(await TermsUtil['fetchTerminologies'](_0x3834e9))[_0x14d732(0x80)];_0x4da1ec&&_0x4da1ec[_0x14d732(0x91)]>0x0&&(this['META_TERMS']={},_0x4da1ec[_0x14d732(0x8d)](_0x22576c=>{const _0x3bef00=_0x14d732;let _0x32bae2=_0x22576c[_0x3bef00(0x82)]+'.'+_0x22576c['name'];this['META_TERMS'][_0x32bae2]=_0x22576c[_0x3bef00(0x78)];}));}static async[a0_0x170fbe(0x94)](_0x41d1f9){const _0x4824e2=a0_0x170fbe;let _0x47908f=[{'name':'locale','operator':'eq','value':_0x41d1f9}];const _0x15471b=await client[_0x4824e2(0x8a)]({'query':a0_0x56eb63`
|
|
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 @@ const a0_0x59ca4=a0_0x3987;(function(_0x495c24,_0x4f29c0){const _0x54926a=a0_0x3
|
|
|
11
11
|
total
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
`,'variables':{'filters':
|
|
14
|
+
`,'variables':{'filters':_0x47908f,'sortings':[{'name':_0x4824e2(0x82)},{'name':_0x4824e2(0x90)}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0x15471b[_0x4824e2(0x74)])return{'records':_0x15471b[_0x4824e2(0x7e)]['terminologies']['items']||[],'total':_0x15471b[_0x4824e2(0x7e)][_0x4824e2(0x92)]['total']||0x0};}static[a0_0x170fbe(0x7c)](_0x176780,_0x2659ac){const _0xf6adb1=a0_0x170fbe;let _0x15de61=TermsUtil[_0xf6adb1(0x8f)](_0xf6adb1(0x7f),_0x176780,_0x2659ac,null);return _0x15de61||TermsUtil[_0xf6adb1(0x8f)](_0xf6adb1(0x88),_0x176780,_0x2659ac,_0x176780);}static[a0_0x170fbe(0x81)](_0x3cbb24,_0x5bf90d){const _0x56ca3d=a0_0x170fbe;let _0x2df052=TermsUtil['translate']('field',_0x3cbb24,_0x5bf90d,null);return _0x2df052||TermsUtil[_0x56ca3d(0x8f)](_0x56ca3d(0x88),_0x3cbb24,_0x5bf90d,_0x3cbb24);}static['tButton'](_0x5d72a6){const _0x172f91=a0_0x170fbe;return TermsUtil[_0x172f91(0x8f)]('button',_0x5d72a6,null,_0x5d72a6);}static[a0_0x170fbe(0x89)](_0x7ee70,_0x570ff1){const _0x38473d=a0_0x170fbe;let _0x469745=TermsUtil[_0x38473d(0x8f)](_0x38473d(0x8c),_0x7ee70,_0x570ff1,null);return _0x469745||TermsUtil['translate'](_0x38473d(0x93),_0x7ee70,_0x570ff1,_0x7ee70);}static[a0_0x170fbe(0x7d)](_0x1492ca){const _0x5a191c=a0_0x170fbe;let _0x4afdfc=TermsUtil[_0x5a191c(0x8f)]('menu',_0x1492ca,null,_0x1492ca);return _0x4afdfc||TermsUtil[_0x5a191c(0x8f)](_0x5a191c(0x8c),_0x1492ca,null,_0x1492ca);}static[a0_0x170fbe(0x76)](_0x3c80e4,_0x3b03c7){const _0x2983f6=a0_0x170fbe;return TermsUtil[_0x2983f6(0x8f)](_0x2983f6(0x8b),_0x3c80e4,_0x3b03c7,_0x3c80e4);}static['tError'](_0x49c433,_0x51ca10){const _0x3fdf6d=a0_0x170fbe;return TermsUtil[_0x3fdf6d(0x8f)](_0x3fdf6d(0x75),_0x49c433,_0x51ca10,_0x49c433);}static['translate'](_0x26b71b,_0xb4b786,_0x116a8a,_0x159937){let _0x4b4f27=_0x26b71b+'.'+_0xb4b786;return TermsUtil['t'](_0x4b4f27,_0x116a8a,_0x159937);}static['t'](_0x5760d,_0x1fe965,_0x18b346){const _0x2b147f=a0_0x170fbe;let _0x3e7067=this[_0x2b147f(0x79)]?this[_0x2b147f(0x79)][_0x5760d]:null;return _0x3e7067=_0x3e7067||i18next['t'](_0x5760d),_0x3e7067&&_0x5760d!=_0x3e7067?(_0x1fe965&&Object[_0x2b147f(0x83)](_0x1fe965)[_0x2b147f(0x8d)](function(_0x47c882){const _0x47c3e0=_0x2b147f;var _0x27daaa='\x5c{'+_0x47c882['replace'](/\$/,'\x5c$')+'\x5c}',_0x3bdb1b=new RegExp(_0x27daaa,'gi');_0x3e7067=_0x3e7067[_0x47c3e0(0x86)](_0x3bdb1b,_0x1fe965[_0x47c882]);}),_0x3e7067):_0x18b346;}}
|
package/client/utils/ui-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3f0f48=a0_0x79a5;function a0_0x2ea2(){const _0x3fb1bf=['cookie','setValueToEditor','split','622952fMKQgg','isMobileEnv','modules','8kafLOV','6yOBMmJ','config','barcode','confirmButton','3749931LSqCUf','content','getType','3160367QpTCTm','\x27></','replace','textarea','366297VkCQUA','code-editor','parent_field','removeChild','i18next=','size','2EMSGMz','ko-KR','createCustomElement','2943445APFXyU','select-combo','\x27\x20\x20parent_id=\x27','ox-select','value','renderRoot','\x27\x20is_popup=true></','input','getLeafInput','pass=','tagname','filters','length','onclosed','openDynamicPopup','getParams','popup_field','template','isNotEmpty','firstElementChild','tButton','name','ox-input-barcode','pageNavigate','htmlToElement','getApplicationModuleInfo','menu','createElement','createEditorHtml','1606722ogmGVm','querySelector','7465250lZnrsg','stringify','fireCustomEvent','getState','innerHTML','dispatchEvent','i18next','indexOf','childNodes','ox-input-code','substring','openPopupByElement'];a0_0x2ea2=function(){return _0x3fb1bf;};return a0_0x2ea2();}function a0_0x79a5(_0x1c5391,_0x2b638a){const _0x2ea274=a0_0x2ea2();return a0_0x79a5=function(_0x79a55,_0x4fb2ab){_0x79a55=_0x79a55-0xec;let _0x4bceff=_0x2ea274[_0x79a55];return _0x4bceff;},a0_0x79a5(_0x1c5391,_0x2b638a);}(function(_0x446a09,_0x4819ab){const _0x35dd13=a0_0x79a5,_0x3ee714=_0x446a09();while(!![]){try{const _0x5bd238=-parseInt(_0x35dd13(0xfc))/0x1*(-parseInt(_0x35dd13(0x102))/0x2)+parseInt(_0x35dd13(0x122))/0x3+parseInt(_0x35dd13(0xed))/0x4+parseInt(_0x35dd13(0x105))/0x5*(-parseInt(_0x35dd13(0xf1))/0x6)+-parseInt(_0x35dd13(0xf8))/0x7*(parseInt(_0x35dd13(0xf0))/0x8)+-parseInt(_0x35dd13(0xf5))/0x9+parseInt(_0x35dd13(0x124))/0xa;if(_0x5bd238===_0x4819ab)break;else _0x3ee714['push'](_0x3ee714['shift']());}catch(_0x5371bf){_0x3ee714['push'](_0x3ee714['shift']());}}}(a0_0x2ea2,0x54ca9));import{store,CustomAlert,navigate}from'@things-factory/shell';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_0x3f0f48(0xee)](){return isMobileDevice();}static['currentLocale'](){const _0x35e5c1=a0_0x3f0f48;let _0x15a0bf=document[_0x35e5c1(0x130)];return _0x15a0bf=_0x15a0bf[_0x35e5c1(0x12e)](_0x15a0bf[_0x35e5c1(0x12b)](_0x35e5c1(0x12a))),_0x15a0bf['indexOf'](';')>-0x1&&(_0x15a0bf=_0x15a0bf['substring'](0x0,_0x15a0bf['indexOf'](';'))),_0x15a0bf=_0x15a0bf[_0x35e5c1(0xfa)](_0x35e5c1(0x100),''),'ko'==_0x15a0bf?_0x35e5c1(0x103):_0x15a0bf;}static[a0_0x3f0f48(0x11e)](){const _0x2d767a=a0_0x3f0f48;let _0x127df9=store[_0x2d767a(0x127)]()['app'][_0x2d767a(0xef)];return _0x127df9[_0x127df9[_0x2d767a(0x111)]-0x1];}static['currentRouting'](){const _0x3c5083=a0_0x3f0f48;return store[_0x3c5083(0x127)]()['route']['page'];}static[a0_0x3f0f48(0x12f)](_0x1d3d1a,_0x1fd8ce,_0x175650,_0x50676a){return openPopup(_0x175650,{'backdrop':!0x0,'size':_0x1fd8ce,'title':_0x1d3d1a,'backdrop':_0x50676a});}static async[a0_0x3f0f48(0x113)](_0x298224,_0x23123d,_0x10b9a5,_0x544db1){const _0xc8f3e=a0_0x3f0f48;let _0x3b596a=ValueUtil[_0xc8f3e(0x117)](_0x23123d['parent_field'])?ValueUtil[_0xc8f3e(0x114)](_0x10b9a5,..._0x23123d[_0xc8f3e(0xfe)][_0xc8f3e(0xec)]('.')):void 0x0,_0x107e5c='<'+_0x23123d[_0xc8f3e(0x10f)]+'\x20route_name=\x27'+_0x23123d[_0xc8f3e(0x11f)]+_0xc8f3e(0x107)+_0x3b596a+_0xc8f3e(0x10b)+_0x23123d['tagname']+'>',_0x38c168=UiUtil[_0xc8f3e(0x11d)](_0x107e5c);_0x38c168[_0xc8f3e(0xf2)]=_0x23123d,ValueUtil[_0xc8f3e(0x117)](_0x23123d[_0xc8f3e(0x115)])&&(_0x38c168[_0x23123d['popup_field']]=_0x10b9a5);let _0x307ceb=UiUtil[_0xc8f3e(0x12f)](_0x298224,_0x23123d[_0xc8f3e(0x101)],_0x38c168,!0x0);_0x544db1&&(_0x307ceb[_0xc8f3e(0x112)]=_0x544db1);}static[a0_0x3f0f48(0x104)](_0x4b6d99,_0x137aeb){const _0x211323=a0_0x3f0f48;let _0x3206cc='<'+_0x4b6d99+'\x20route_name=\x27'+_0x137aeb+_0x211323(0xf9)+_0x4b6d99+'>';return UiUtil[_0x211323(0x11d)](_0x3206cc);}static[a0_0x3f0f48(0x11d)](_0x3f90df){const _0xb85e08=a0_0x3f0f48;var _0x52daff=document[_0xb85e08(0x120)](_0xb85e08(0x116));_0x52daff[_0xb85e08(0x128)]=_0x3f90df;var _0x5e2de6=_0x52daff[_0xb85e08(0xf6)][_0xb85e08(0x12c)][0x0];return _0x52daff[_0xb85e08(0xf6)][_0xb85e08(0xff)](_0x5e2de6),_0x5e2de6;}static[a0_0x3f0f48(0x11c)](_0xd56a82,_0x2a276a){const _0x118476=a0_0x3f0f48;let _0x20afd4=_0x2a276a?'?':'';_0x2a276a&&(_0x20afd4+=_0x118476(0x10e)+JSON[_0x118476(0x125)](_0x2a276a)),navigate(''+_0xd56a82+_0x20afd4);}static['getStore'](_0x2440a5,_0x2c2e1e,_0x164d6e){const _0xe46b92=a0_0x3f0f48;let _0x24f063=_0x24f063[_0xe46b92(0x127)]();return _0x2440a5&&_0x2c2e1e&&_0x164d6e?_0x24f063[_0x2440a5][_0x2c2e1e][_0x164d6e]:_0x2440a5&&_0x2c2e1e?_0x24f063[_0x2440a5][_0x2c2e1e]:_0x2440a5?_0x24f063[_0x2440a5]:_0x24f063;}static[a0_0x3f0f48(0x126)](_0x437f6e,_0x4534ee){const _0xfe9847=a0_0x3f0f48;document[_0xfe9847(0x129)](new CustomEvent(_0x437f6e,{'detail':_0x4534ee}));}static['showToast'](_0x222d75,_0x322a79){const _0x30b86d=a0_0x3f0f48;document[_0x30b86d(0x129)](new CustomEvent('notify',{'detail':{'type':_0x222d75,'message':_0x322a79}}));}static async['showAlertPopup'](_0x173659,_0x3deb4f,_0x566ac2,_0x378f2d,_0x4a5193){const _0xef361f=a0_0x3f0f48;let _0x5c738d={'title':TermsUtil['t'](_0x173659)||_0x173659,'text':TermsUtil['t'](_0x3deb4f)||_0x3deb4f};return _0x566ac2&&(_0x5c738d['type']=_0x566ac2),_0x378f2d&&(_0x5c738d[_0xef361f(0xf4)]=TermsUtil[_0xef361f(0x119)](_0x378f2d)),_0x4a5193&&(_0x5c738d['cancelButton']=TermsUtil['tButton'](_0x4a5193)),await CustomAlert(_0x5c738d);}static['getFilterFormData'](_0x321db0){const _0x27abd7=a0_0x3f0f48;if(ValueUtil[_0x27abd7(0x117)](_0x321db0)){let _0x29f31c=_0x321db0[_0x27abd7(0x110)]();ValueUtil[_0x27abd7(0x117)](_0x29f31c)&&_0x29f31c['forEach'](_0x3e713f=>{const _0x2455b6=_0x27abd7;ValueUtil[_0x2455b6(0x117)](_0x3e713f['value'])&&(item[_0x3e713f[_0x2455b6(0x11a)]]=_0x3e713f[_0x2455b6(0x109)]?_0x3e713f[_0x2455b6(0x109)]:null);});}return{};}static['setSearchFormEditorValue'](_0x13aa82,_0x57279f,_0x2332b7){const _0x410da9=a0_0x3f0f48;if(ValueUtil[_0x410da9(0x117)](_0x13aa82)){let _0x3dedf1=_0x13aa82[_0x410da9(0x10a)]?.[_0x410da9(0x123)]('[name=\x27'+_0x57279f+'\x27]');ValueUtil[_0x410da9(0x117)](_0x3dedf1)&&(_0x3dedf1[_0x410da9(0x109)]=_0x2332b7);}}static[a0_0x3f0f48(0x121)](_0x4c550d,_0x277d53,_0x348cd1,_0x5b843a){return getEditor(_0x4c550d)('',_0x277d53,_0x348cd1,_0x5b843a,{});}static[a0_0x3f0f48(0x131)](_0xd6756,_0x1600cc){const _0x2de795=a0_0x3f0f48;UiUtil[_0x2de795(0x10d)](_0xd6756)['value']=_0x1600cc;}static[a0_0x3f0f48(0x10d)](_0x9ad35){const _0x15b747=a0_0x3f0f48;let _0x12ceaa=_0x9ad35[_0x15b747(0xf7)]();return _0x15b747(0xfd)==_0x12ceaa?_0x9ad35[_0x15b747(0x10a)][_0x15b747(0x123)](_0x15b747(0x12d)):_0x15b747(0xfb)==_0x12ceaa?_0x9ad35[_0x15b747(0x10a)][_0x15b747(0x123)](_0x15b747(0xfb)):_0x15b747(0x106)==_0x12ceaa?_0x9ad35[_0x15b747(0x10a)][_0x15b747(0x123)](_0x15b747(0x108))[_0x15b747(0x118)]:_0x15b747(0xf3)==_0x12ceaa?_0x9ad35[_0x15b747(0x10a)]['querySelector'](_0x15b747(0x11b))[_0x15b747(0x10a)][_0x15b747(0x123)](_0x15b747(0x10c)):_0x9ad35[_0x15b747(0x10a)][_0x15b747(0x118)]['editor'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x46bec8=a0_0x33b3;(function(_0x4b9126,_0x42c9b9){const _0x50df86=a0_0x33b3,_0x4a1b79=_0x4b9126();while(!![]){try{const _0x12ad1d=parseInt(_0x50df86(0x80))/0x1*(-parseInt(_0x50df86(0x85))/0x2)+parseInt(_0x50df86(0x82))/0x3+parseInt(_0x50df86(0x8c))/0x4+parseInt(_0x50df86(0x92))/0x5+-parseInt(_0x50df86(0x96))/0x6+parseInt(_0x50df86(0x87))/0x7+-parseInt(_0x50df86(0x8f))/0x8*(parseInt(_0x50df86(0x83))/0x9);if(_0x12ad1d===_0x42c9b9)break;else _0x4a1b79['push'](_0x4a1b79['shift']());}catch(_0x496369){_0x4a1b79['push'](_0x4a1b79['shift']());}}}(a0_0x2d4e,0x736b1));function a0_0x2d4e(){const _0x1f2a5b=['keys','4391800BeXehd','populateObject','forEach','getParams','1699884UtEHDq','boolean','1veMnvF','isNotEmpty','879180htTBFB','9OkGYpA','toInteger','933672JdnOKb','TRUE','859299oijSlB','string','isEquals','length','object','2231476apnurB','number','setParams','5033144rCtRVQ','isEmpty'];a0_0x2d4e=function(){return _0x1f2a5b;};return a0_0x2d4e();}function a0_0x33b3(_0x42b831,_0x1f36ee){const _0x2d4e69=a0_0x2d4e();return a0_0x33b3=function(_0x33b3d7,_0x17614b){_0x33b3d7=_0x33b3d7-0x80;let _0x567dc7=_0x2d4e69[_0x33b3d7];return _0x567dc7;},a0_0x33b3(_0x42b831,_0x1f36ee);}import a0_0xb5bc4a from'lodash-es/isEqual';import{TermsUtil}from'./terms-util';export class ValueUtil{static[a0_0x46bec8(0x90)](_0x58f128){const _0x1ece75=a0_0x46bec8;if(void 0x0===_0x58f128)return!0x0;if(null===_0x58f128)return!0x0;if(_0x1ece75(0x97)==typeof _0x58f128)return!0x1;if(_0x1ece75(0x88)==typeof _0x58f128||_0x1ece75(0x8d)==typeof _0x58f128){if(''==_0x58f128)return!0x0;}else{if(Array['isArray'](_0x58f128)){if(0x0==_0x58f128['length'])return!0x0;}else{if(_0x1ece75(0x8b)==typeof _0x58f128&&0x0==Object[_0x1ece75(0x91)](_0x58f128)[_0x1ece75(0x8a)])return!0x0;}}return!0x1;}static['isNotEmpty'](_0x3dda5c){const _0x402aef=a0_0x46bec8;return!ValueUtil[_0x402aef(0x90)](_0x3dda5c);}static[a0_0x46bec8(0x89)](_0x2413b9,_0x4f219d){return a0_0xb5bc4a(_0x2413b9,_0x4f219d);}static[a0_0x46bec8(0x84)](_0x276c62,_0x4425ee){const _0x5b7dd5=a0_0x46bec8;return ValueUtil[_0x5b7dd5(0x90)](_0x276c62)?_0x4425ee||0x0:parseInt(_0x276c62);}static['toBoolean'](_0x103093){const _0x9912dd=a0_0x46bec8;return!ValueUtil['isEmpty'](_0x103093)&&('true'==_0x103093||'t'==_0x103093||_0x9912dd(0x86)==_0x103093||'T'==_0x103093||'on'==_0x103093||'ON'==_0x103093);}static['compareObjectValues'](_0x375b74,_0x292ba9,_0xe34bcd){const _0x1ee802=a0_0x46bec8;let _0x5094bd=!0x0;return _0xe34bcd[_0x1ee802(0x94)](_0x12d4f3=>{const _0xbee86b=_0x1ee802;let _0x33a4b8=_0x375b74[_0x12d4f3];if('*'===_0x33a4b8)return;let _0x5d99ef=_0x292ba9[_0x12d4f3]||'';ValueUtil[_0xbee86b(0x90)](_0x33a4b8)?ValueUtil[_0xbee86b(0x81)](_0x5d99ef)&&(_0x5094bd=!0x1):_0x33a4b8!=_0x5d99ef&&(_0x5094bd=!0x1);}),_0x5094bd;}static[a0_0x46bec8(0x8e)](_0xd54c90,_0x53bfca,_0x3c5e0a,_0x55ae98){const _0x361b30=a0_0x46bec8;let _0xab0958=ValueUtil[_0x361b30(0x95)](_0x53bfca,_0x3c5e0a);return ValueUtil[_0x361b30(0x81)](_0xab0958)&&(_0xd54c90[_0x3c5e0a]=!0x0===_0x55ae98?TermsUtil['t'](_0xab0958):_0xab0958),_0xd54c90;}static[a0_0x46bec8(0x95)](_0x219204,..._0x4c8d42){const _0x3534e5=a0_0x46bec8;if(arguments[_0x3534e5(0x8a)]<=0x1)return;let _0x198958=_0x4c8d42[0x0];if(ValueUtil[_0x3534e5(0x90)](_0x219204[_0x198958]))return;let _0x373f8d=_0x219204[_0x198958];return _0x4c8d42[_0x3534e5(0x8a)]>0x1?ValueUtil[_0x3534e5(0x95)](_0x373f8d,..._0x4c8d42['slice'](0x1)):_0x373f8d;}static['populateArray'](_0x3ec54d,_0x4f3b5e,..._0x1d3fce){const _0x143d9d=a0_0x46bec8;return _0x4f3b5e=_0x4f3b5e||[],_0x1d3fce=_0x1d3fce||Object[_0x143d9d(0x91)](_0x3ec54d),ValueUtil['isNotEmpty'](_0x1d3fce)&&(_0x4f3b5e=_0x3ec54d['map']((_0x55e960,_0xd175f5)=>{const _0x186ec9=_0x143d9d;let _0x6376c9=_0x4f3b5e['length']>_0xd175f5?_0x4f3b5e[_0xd175f5]:{};return ValueUtil[_0x186ec9(0x93)](_0x55e960,_0x6376c9,_0x1d3fce);})),_0x4f3b5e;}static['populateObject'](_0x16480d,_0x34c012,..._0x117a9e){const _0x94bef2=a0_0x46bec8;return _0x34c012=_0x34c012||{},_0x117a9e=_0x117a9e||Object['keys'](_0x16480d),ValueUtil[_0x94bef2(0x81)](_0x117a9e)&&_0x117a9e[_0x94bef2(0x94)](_0x5881c9=>{_0x34c012[_0x5881c9]=_0x16480d[_0x5881c9];}),_0x34c012;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x679b(){const _0x21a245=['14VRXxNx','150888mOFHCg','448055qdFdva','419886rWyjei','1582560VpRcjK','1056843sIPlnm','12KLLfgl','31864KOSjLQ','434530uLjKay','2CAYtus','66InyumI'];a0_0x679b=function(){return _0x21a245;};return a0_0x679b();}function a0_0x2656(_0x211c4e,_0x4e346f){const _0x679bd=a0_0x679b();return a0_0x2656=function(_0x2656bc,_0x5184c2){_0x2656bc=_0x2656bc-0x165;let _0xbaf7d4=_0x679bd[_0x2656bc];return _0xbaf7d4;},a0_0x2656(_0x211c4e,_0x4e346f);}(function(_0x35040e,_0x1c026c){const _0x10dfcb=a0_0x2656,_0x2a5881=_0x35040e();while(!![]){try{const _0x4048dc=parseInt(_0x10dfcb(0x16f))/0x1*(parseInt(_0x10dfcb(0x166))/0x2)+parseInt(_0x10dfcb(0x16d))/0x3+-parseInt(_0x10dfcb(0x16e))/0x4*(parseInt(_0x10dfcb(0x16a))/0x5)+-parseInt(_0x10dfcb(0x16c))/0x6+parseInt(_0x10dfcb(0x168))/0x7*(parseInt(_0x10dfcb(0x169))/0x8)+parseInt(_0x10dfcb(0x16b))/0x9+parseInt(_0x10dfcb(0x165))/0xa*(parseInt(_0x10dfcb(0x167))/0xb);if(_0x4048dc===_0x1c026c)break;else _0x2a5881['push'](_0x2a5881['shift']());}catch(_0x4e2ad3){_0x2a5881['push'](_0x2a5881['shift']());}}}(a0_0x679b,0x30026));import{css}from'lit';export const DynamicMenuLandscapeStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
overflow-x: auto;
|
|
4
4
|
background-color: var(--secondary-text-color);
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x42f79e=a0_0x2ab4;(function(_0x235ad1,_0x25437a){const _0x551b2a=a0_0x2ab4,_0x4c7f2c=_0x235ad1();while(!![]){try{const _0x25131a=parseInt(_0x551b2a(0x1d0))/0x1*(-parseInt(_0x551b2a(0x1de))/0x2)+-parseInt(_0x551b2a(0x1d6))/0x3*(-parseInt(_0x551b2a(0x1d9))/0x4)+-parseInt(_0x551b2a(0x1ee))/0x5+parseInt(_0x551b2a(0x1e2))/0x6+-parseInt(_0x551b2a(0x1ef))/0x7+-parseInt(_0x551b2a(0x1dc))/0x8+parseInt(_0x551b2a(0x1cf))/0x9;if(_0x25131a===_0x25437a)break;else _0x4c7f2c['push'](_0x4c7f2c['shift']());}catch(_0xc67e79){_0x4c7f2c['push'](_0x4c7f2c['shift']());}}}(a0_0xb802,0xcd05c));import'@material/mwc-icon';import{html,LitElement}from'lit';import{connect}from'pwa-helpers';import{navigate,store}from'@operato/shell';function a0_0xb802(){const _0x100954=['settled','click','addEventListener','22462443MxmYem','227KiwwsD','submenu','dynamic-menu-landscape','#force','active-toplevel','bind','6cxWHci','href','detail','2889620PZTNue','styles','properties','6113312zsFQQm','currentTarget','10502xAVZBd','wheelDelta','define','type','4731882eRNknz','onWheelEvent','menus','setAttribute','name','map','transitionend','path','stopPropagation','render','icon','renderRoot','7079660ucEvNd','3622073vCPdyv','preventDefault','firstUpdated','mousewheel','scrollLeft','target'];a0_0xb802=function(){return _0x100954;};return a0_0xb802();}import{ScrollbarStyles}from'@operato/styles';import{DynamicMenuLandscapeStyles}from'./dynamic-menu-landscape-styles';export class DynamicMenuLandscape extends connect(store)(LitElement){static get[a0_0x42f79e(0x1da)](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get[a0_0x42f79e(0x1db)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x42f79e(0x1eb)](){const _0x4255bc=a0_0x42f79e,{menus:_0x4bd594=[],activeTopLevel:_0x2994b8,activeMenu:_0x12651d}=this;return html`
|
|
2
2
|
<div id="wrap">
|
|
3
3
|
<ul>
|
|
4
|
-
${
|
|
5
|
-
<li ?active=${
|
|
6
|
-
<a href=${
|
|
7
|
-
${
|
|
4
|
+
${_0x4bd594[_0x4255bc(0x1e7)](_0x4546a1=>'group'==_0x4546a1[_0x4255bc(0x1e1)]?html``:html`
|
|
5
|
+
<li ?active=${_0x4546a1===_0x2994b8}>
|
|
6
|
+
<a href=${_0x4546a1[_0x4255bc(0x1e9)]||'#'}>
|
|
7
|
+
${_0x4546a1[_0x4255bc(0x1ec)]?html`<mwc-icon>${_0x4546a1[_0x4255bc(0x1ec)]}</mwc-icon>`:html``} ${_0x4546a1[_0x4255bc(0x1e6)]}
|
|
8
8
|
</a>
|
|
9
9
|
|
|
10
10
|
<ul submenus>
|
|
11
|
-
${
|
|
12
|
-
<li ?active=${
|
|
13
|
-
<a href=${
|
|
11
|
+
${_0x4546a1[_0x4255bc(0x1e4)]?.[_0x4255bc(0x1e7)](_0x25150d=>html`
|
|
12
|
+
<li ?active=${_0x25150d===_0x12651d}>
|
|
13
|
+
<a href=${_0x25150d[_0x4255bc(0x1e9)]||'#'}> ${_0x25150d[_0x4255bc(0x1e6)]} </a>
|
|
14
14
|
</li>
|
|
15
15
|
`)}
|
|
16
16
|
</ul>
|
|
17
17
|
|
|
18
18
|
<div description>
|
|
19
|
-
${
|
|
19
|
+
${_0x4546a1[_0x4255bc(0x1ec)]?html`<mwc-icon>${_0x4546a1[_0x4255bc(0x1ec)]}</mwc-icon>`:html``} ${_0x4546a1['description']||''}
|
|
20
20
|
</div>
|
|
21
21
|
</li>
|
|
22
22
|
`)}
|
|
23
23
|
</ul>
|
|
24
24
|
</div>
|
|
25
|
-
`;}[
|
|
25
|
+
`;}[a0_0x42f79e(0x1c8)](){const _0x3862ed=a0_0x42f79e;this[_0x3862ed(0x1ed)]['querySelector']('#wrap')[_0x3862ed(0x1ce)](_0x3862ed(0x1c9),this[_0x3862ed(0x1e3)][_0x3862ed(0x1d5)](this),!0x1),this[_0x3862ed(0x1ed)]['addEventListener'](_0x3862ed(0x1cd),_0x251313=>{const _0x24b026=_0x3862ed;if(_0x251313['target']['submenu']){_0x251313[_0x24b026(0x1ea)](),_0x251313[_0x24b026(0x1f0)]();let _0x1d7a61=_0x251313[_0x24b026(0x1cb)][_0x24b026(0x1d1)];return void this['dispatchEvent'](new CustomEvent(_0x24b026(0x1d4),{'bubbles':!0x0,'detail':this['activeTopLevel']===_0x1d7a61?void 0x0:_0x1d7a61}));}let _0x22d8a1=_0x251313[_0x24b026(0x1cb)]['href'];_0x22d8a1&&location[_0x24b026(0x1d7)]===_0x22d8a1&&navigate(_0x22d8a1+_0x24b026(0x1d3),!0x0);}),this[_0x3862ed(0x1ed)][_0x3862ed(0x1ce)]('transitionstart',_0x2fc20c=>{const _0x3fdaff=_0x3862ed;_0x2fc20c[_0x3fdaff(0x1cb)]['removeAttribute'](_0x3fdaff(0x1cc));}),this[_0x3862ed(0x1ed)][_0x3862ed(0x1ce)](_0x3862ed(0x1e8),_0x502e17=>{const _0x22eef0=_0x3862ed;_0x502e17['target'][_0x22eef0(0x1e5)](_0x22eef0(0x1cc),'');});}[a0_0x42f79e(0x1e3)](_0x3abb4c){const _0x5b73d0=a0_0x42f79e,_0x5e1274=_0x3abb4c[_0x5b73d0(0x1dd)];var _0x46f903=Math['max'](-0x1,Math['min'](0x1,_0x3abb4c[_0x5b73d0(0x1df)]||-_0x3abb4c[_0x5b73d0(0x1d8)]));_0x5e1274[_0x5b73d0(0x1ca)]-=0xa*_0x46f903,_0x3abb4c['preventDefault']();}}function a0_0x2ab4(_0x1118f6,_0x30569e){const _0xb80224=a0_0xb802();return a0_0x2ab4=function(_0x2ab49f,_0x151ae1){_0x2ab49f=_0x2ab49f-0x1c8;let _0x42b044=_0xb80224[_0x2ab49f];return _0x42b044;},a0_0x2ab4(_0x1118f6,_0x30569e);}customElements[a0_0x42f79e(0x1e0)](a0_0x42f79e(0x1d2),DynamicMenuLandscape);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a0_0x537a(_0x11c9fb,_0x38e29f){var _0x180a56=a0_0x180a();return a0_0x537a=function(_0x537a9c,_0x5d88d9){_0x537a9c=_0x537a9c-0x104;var _0x5b6fe4=_0x180a56[_0x537a9c];return _0x5b6fe4;},a0_0x537a(_0x11c9fb,_0x38e29f);}var a0_0x5d30d0=a0_0x537a;(function(_0x128e34,_0x436532){var _0x5e0304=a0_0x537a,_0x497be2=_0x128e34();while(!![]){try{var _0xbffbcd=parseInt(_0x5e0304(0x11b))/0x1*(parseInt(_0x5e0304(0x11f))/0x2)+-parseInt(_0x5e0304(0x124))/0x3*(parseInt(_0x5e0304(0x119))/0x4)+parseInt(_0x5e0304(0x105))/0x5*(parseInt(_0x5e0304(0x130))/0x6)+parseInt(_0x5e0304(0x12f))/0x7*(-parseInt(_0x5e0304(0x117))/0x8)+parseInt(_0x5e0304(0x110))/0x9*(parseInt(_0x5e0304(0x122))/0xa)+parseInt(_0x5e0304(0x10d))/0xb*(-parseInt(_0x5e0304(0x112))/0xc)+-parseInt(_0x5e0304(0x113))/0xd*(parseInt(_0x5e0304(0x128))/0xe);if(_0xbffbcd===_0x436532)break;else _0x497be2['push'](_0x497be2['shift']());}catch(_0x3ba1df){_0x497be2['push'](_0x497be2['shift']());}}}(a0_0x180a,0xcee18));import'@material/mwc-icon';import'./dynamic-menu-portrait';import'./dynamic-menu-landscape';import{css,html,LitElement}from'lit';import{connect}from'pwa-helpers';import{store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';function isActiveMenu(_0x50329c,_0x1e2537){var _0x1720f5=a0_0x537a;return _0x50329c['path']?.[_0x1720f5(0x10c)]('?')[0x0]===_0x1e2537||_0x50329c['active']&&_0x1720f5(0x12a)==typeof _0x50329c['active']&&_0x50329c[_0x1720f5(0x120)][_0x1720f5(0x118)](_0x50329c,{'path':_0x1e2537});}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_0x5d30d0(0x10b)](){return[ScrollbarStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -27,18 +27,18 @@ var a0_0x1d68d1=a0_0x52e0;(function(_0x4bdd88,_0x426e3d){var _0x4b6dc0=a0_0x52e0
|
|
|
27
27
|
dynamic-menu-landscape {
|
|
28
28
|
flex: 1;
|
|
29
29
|
}
|
|
30
|
-
`];}[
|
|
30
|
+
`];}[a0_0x5d30d0(0x12b)](){var _0x597860=a0_0x5d30d0;return html`
|
|
31
31
|
<slot name="head"></slot>
|
|
32
|
-
${
|
|
33
|
-
.menus=${this[
|
|
32
|
+
${'landscape'!==this['orientation']?html`<dynamic-menu-portrait
|
|
33
|
+
.menus=${this[_0x597860(0x109)]}
|
|
34
34
|
.activeTopLevel=${this['_activeTopLevel']}
|
|
35
|
-
.activeMenu=${this[
|
|
36
|
-
.path=${this[
|
|
35
|
+
.activeMenu=${this[_0x597860(0x11c)]}
|
|
36
|
+
.path=${this[_0x597860(0x129)]}
|
|
37
37
|
></dynamic-menu-portrait>`:html`<dynamic-menu-landscape
|
|
38
|
-
.menus=${this[
|
|
39
|
-
.activeTopLevel=${this[
|
|
40
|
-
.activeMenu=${this[
|
|
41
|
-
.path=${this[
|
|
38
|
+
.menus=${this[_0x597860(0x109)]}
|
|
39
|
+
.activeTopLevel=${this[_0x597860(0x114)]}
|
|
40
|
+
.activeMenu=${this[_0x597860(0x11c)]}
|
|
41
|
+
.path=${this[_0x597860(0x129)]}
|
|
42
42
|
></dynamic-menu-landscape>`}
|
|
43
43
|
<slot name="tail"></slot>
|
|
44
|
-
`;}[
|
|
44
|
+
`;}[a0_0x5d30d0(0x12e)](){var _0x1fcf6d=a0_0x5d30d0;this[_0x1fcf6d(0x10e)][_0x1fcf6d(0x12c)](_0x1fcf6d(0x115),_0x126c2c=>{var _0x3d0a5a=_0x1fcf6d;_0x126c2c['stopPropagation'](),_0x126c2c[_0x3d0a5a(0x11a)](),this[_0x3d0a5a(0x114)]=_0x126c2c[_0x3d0a5a(0x12d)];});}[a0_0x5d30d0(0x10f)](_0x417b2a){var _0x157d87=a0_0x5d30d0;(_0x417b2a['has'](_0x157d87(0x109))||_0x417b2a[_0x157d87(0x106)]('page')||_0x417b2a['has'](_0x157d87(0x111)))&&this['_findActivePage'](),_0x417b2a[_0x157d87(0x106)](_0x157d87(0x123))&&(_0x157d87(0x126)==this[_0x157d87(0x123)]?this[_0x157d87(0x121)]('landscape'):this[_0x157d87(0x11e)](_0x157d87(0x11d),!0x0)),_0x417b2a['has'](_0x157d87(0x108))&&this[_0x157d87(0x10a)](this['slotTemplate']);}[a0_0x5d30d0(0x107)](_0x372d97){var _0x2c4423=a0_0x5d30d0;this['page']=_0x372d97[_0x2c4423(0x104)][_0x2c4423(0x125)],this['resourceId']=_0x372d97['route'][_0x2c4423(0x111)],this['menus']=_0x372d97['metaUI'][_0x2c4423(0x109)]||[],this[_0x2c4423(0x108)]=_0x372d97[_0x2c4423(0x127)][_0x2c4423(0x108)];}['_findActivePage'](){var _0x7c6aaa=a0_0x5d30d0,_0x325229,_0x493e05=this[_0x7c6aaa(0x111)]?this[_0x7c6aaa(0x125)]+'/'+this[_0x7c6aaa(0x111)]:this['page'],_0x57a76e=this[_0x7c6aaa(0x109)]||[];this[_0x7c6aaa(0x114)]=_0x57a76e[_0x7c6aaa(0x116)](_0x391ef4=>isActiveMenu(_0x391ef4,_0x493e05)?(_0x325229=_0x391ef4,!0x0):_0x391ef4[_0x7c6aaa(0x109)]?!!(_0x325229=_0x391ef4[_0x7c6aaa(0x109)]['find'](_0x4e8fc9=>isActiveMenu(_0x4e8fc9,_0x493e05))):void 0x0),this[_0x7c6aaa(0x129)]=_0x493e05,this[_0x7c6aaa(0x11c)]=_0x325229||this[_0x7c6aaa(0x114)];}}function a0_0x180a(){var _0x378b8b=['updated','910377BuUeyO','resourceId','12ciyDdv','51259xUVoOD','_activeTopLevel','active-toplevel','find','16936oyMjQn','call','3352LyYEbM','preventDefault','219922dnOUhS','_activeMenu','landscape','setAttribute','2zQAxHh','active','removeAttribute','130tSJVUJ','orientation','33NtIaca','page','portrait','metaUI','2324xJVkZt','_path','function','render','addEventListener','detail','firstUpdated','245Dmolvm','2094GgjbKZ','define','route','18515bubhGx','has','stateChanged','slotTemplate','menus','replaceChild','styles','split','13662253OIZfSW','renderRoot'];a0_0x180a=function(){return _0x378b8b;};return a0_0x180a();}customElements[a0_0x5d30d0(0x131)]('dynamic-menu-part',DynamicMenuPart);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3491c2,_0x1734e6){const _0x1f5526=a0_0x29ca,_0x226adb=_0x3491c2();while(!![]){try{const _0x20dbf8=parseInt(_0x1f5526(0x6d))/0x1*(parseInt(_0x1f5526(0x6b))/0x2)+-parseInt(_0x1f5526(0x65))/0x3+-parseInt(_0x1f5526(0x66))/0x4*(-parseInt(_0x1f5526(0x69))/0x5)+parseInt(_0x1f5526(0x6e))/0x6*(parseInt(_0x1f5526(0x67))/0x7)+parseInt(_0x1f5526(0x64))/0x8+-parseInt(_0x1f5526(0x68))/0x9*(-parseInt(_0x1f5526(0x6a))/0xa)+-parseInt(_0x1f5526(0x6c))/0xb;if(_0x20dbf8===_0x1734e6)break;else _0x226adb['push'](_0x226adb['shift']());}catch(_0x4060b7){_0x226adb['push'](_0x226adb['shift']());}}}(a0_0x31ce,0x9d4da));import{css}from'lit';function a0_0x31ce(){const _0x5d6262=['33560329Ofmpuj','263tXJmLZ','555846qxPUGQ','1324288AGqwDR','346830uPAVNY','122572kXVfQt','84yoPpnp','513UnHwDa','110XrdXBW','160490XwEvqB','7184yaeVSk'];a0_0x31ce=function(){return _0x5d6262;};return a0_0x31ce();}function a0_0x29ca(_0x4a6976,_0x31c30e){const _0x31ce1d=a0_0x31ce();return a0_0x29ca=function(_0x29ca88,_0x22379a){_0x29ca88=_0x29ca88-0x64;let _0x5a4abf=_0x31ce1d[_0x29ca88];return _0x5a4abf;},a0_0x29ca(_0x4a6976,_0x31c30e);}export const DynamicMenuPortraitStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5d7650=a0_0x3ee0;(function(_0x222163,_0x2b9940){const _0x168e03=a0_0x3ee0,_0x278935=_0x222163();while(!![]){try{const _0x358478=-parseInt(_0x168e03(0xeb))/0x1+parseInt(_0x168e03(0xec))/0x2*(-parseInt(_0x168e03(0xd7))/0x3)+-parseInt(_0x168e03(0xe0))/0x4+parseInt(_0x168e03(0xe7))/0x5+parseInt(_0x168e03(0xda))/0x6+parseInt(_0x168e03(0xd6))/0x7+parseInt(_0x168e03(0xe1))/0x8*(-parseInt(_0x168e03(0xe2))/0x9);if(_0x358478===_0x2b9940)break;else _0x278935['push'](_0x278935['shift']());}catch(_0x2405ea){_0x278935['push'](_0x278935['shift']());}}}(a0_0x549b,0x1ba75));import'@material/mwc-icon';function a0_0x3ee0(_0x562e1c,_0x3cfea2){const _0x549bb0=a0_0x549b();return a0_0x3ee0=function(_0x3ee0ed,_0x30de24){_0x3ee0ed=_0x3ee0ed-0xd6;let _0x35a25d=_0x549bb0[_0x3ee0ed];return _0x35a25d;},a0_0x3ee0(_0x562e1c,_0x3cfea2);}function a0_0x549b(){const _0x760e75=['268191lHoiAj','11463gNsrFM','map','menu','111516EeXJqZ','renderMenus','activeTopLevel','renderRoot','render','preventDefault','1756fwqjEf','180848IfYUxU','27uTzEmK','settled','closest','define','properties','763470ZuJnIE','length','dispatchEvent','group','24246lZRmeB','2DRoGpF','transitionend','call','addEventListener','active-toplevel','target','click','styles','path','removeAttribute','function'];a0_0x549b=function(){return _0x760e75;};return a0_0x549b();}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_0x5d7650(0xf3)](){return[ScrollbarStyles,DynamicMenuPortraitStyles];}static get[a0_0x5d7650(0xe6)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x5d7650(0xdb)](_0x1eed42,_0x38adb5,_0x57eb33){const _0x1d2459=a0_0x5d7650;return html`
|
|
2
2
|
<ul>
|
|
3
|
-
${
|
|
4
|
-
<li ?active=${
|
|
5
|
-
<a href=${
|
|
6
|
-
${
|
|
7
|
-
<mwc-icon>${
|
|
8
|
-
${
|
|
3
|
+
${_0x1eed42[_0x1d2459(0xd8)](_0x21f5f7=>{const _0x3e097c=_0x1d2459;var {type:_0x48c390,active:_0x39ea0f,path:_0x236a11,name:_0x1495d7,badge:_0x1aaea5,icon:_0x1b6d5e,menus:_0x2ce850}=_0x21f5f7;return _0x39ea0f=!(!_0x39ea0f||_0x3e097c(0xf6)!=typeof _0x39ea0f)&&_0x39ea0f[_0x3e097c(0xee)](_0x21f5f7,{'path':this[_0x3e097c(0xf4)]}),_0x1aaea5=_0x3e097c(0xf6)==typeof _0x1aaea5?_0x1aaea5[_0x3e097c(0xee)](_0x21f5f7):_0x1aaea5??!0x1,_0x3e097c(0xea)==_0x48c390?html`<li group-label>${_0x1495d7}</li>`:html`
|
|
4
|
+
<li ?active=${_0x38adb5?_0x21f5f7===_0x38adb5:_0x39ea0f} .menu=${_0x21f5f7} menu>
|
|
5
|
+
<a href=${_0x236a11||'#'}>
|
|
6
|
+
${_0x2ce850?.[_0x3e097c(0xe8)]>0x0?html` <mwc-icon submenu-button></mwc-icon> `:html``}
|
|
7
|
+
<mwc-icon>${_0x1b6d5e}</mwc-icon>
|
|
8
|
+
${_0x1495d7} ${!0x1!==_0x1aaea5?html`<div badge>${_0x1aaea5}</div>`:html``}
|
|
9
9
|
</a>
|
|
10
|
-
${
|
|
10
|
+
${_0x2ce850&&this[_0x3e097c(0xdb)](_0x2ce850,_0x57eb33)}
|
|
11
11
|
</li>
|
|
12
12
|
`;})}
|
|
13
13
|
</ul>
|
|
14
|
-
`;}[
|
|
14
|
+
`;}[a0_0x5d7650(0xde)](){const _0x1724d3=a0_0x5d7650,{menus:_0x7043a3,activeTopLevel:_0xb15c0f,activeMenu:_0x162ba6}=this;return this[_0x1724d3(0xdb)](_0x7043a3,_0xb15c0f,_0x162ba6);}['firstUpdated'](){const _0x3eacad=a0_0x5d7650;this[_0x3eacad(0xdd)]['addEventListener'](_0x3eacad(0xf2),_0x28278e=>{const _0x2e5d8e=_0x3eacad,_0x13479e=_0x28278e[_0x2e5d8e(0xf1)][_0x2e5d8e(0xe4)]('[menu]');if(_0x13479e?.[_0x2e5d8e(0xd9)]){let _0x4b52bc=_0x13479e[_0x2e5d8e(0xd9)];_0x4b52bc[_0x2e5d8e(0xf4)]||(_0x28278e['stopPropagation'](),_0x28278e[_0x2e5d8e(0xdf)]()),this[_0x2e5d8e(0xe9)](new CustomEvent(_0x2e5d8e(0xf0),{'bubbles':!0x0,'detail':this[_0x2e5d8e(0xdc)]===_0x4b52bc?void 0x0:_0x4b52bc}));}let _0x4daf7d=_0x28278e[_0x2e5d8e(0xf1)]['href'];_0x4daf7d&&location['href']===_0x4daf7d&&navigate(_0x4daf7d+'#force',!0x0);}),this['renderRoot']['addEventListener']('transitionstart',_0x462b88=>{const _0x2cfbc9=_0x3eacad;_0x462b88['target'][_0x2cfbc9(0xf5)](_0x2cfbc9(0xe3));}),this['renderRoot'][_0x3eacad(0xef)](_0x3eacad(0xed),_0x3b1d16=>{const _0x549e50=_0x3eacad;_0x3b1d16[_0x549e50(0xf1)]['setAttribute'](_0x549e50(0xe3),'');});}}customElements[a0_0x5d7650(0xe5)]('dynamic-menu-portrait',DynamicMenuPortrait);
|