@things-factory/meta-ui 6.0.124 → 6.0.126
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-resource-code-select.js +16 -0
- package/client/component/filter/filter-grist-resource-code-select.js +16 -0
- package/client/component/grist/editor/ox-grist-editor-resource-code-selector.js +9 -7
- package/client/component/grist/renderer/ox-grist-renderer-resource-code-selector.js +1 -1
- package/client/component/grist/selector/ox-resource-code-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-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 +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +3 -3
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- 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-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 +96 -96
- 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 +12 -12
- package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
- 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/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
- package/client/component/filter/filter-form-resource-code-select.ts +0 -94
- package/client/component/filter/filter-grist-resource-code-select.ts +0 -95
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x50de27=a0_0x3dc2;(function(_0x122878,_0x2e949c){const _0x38a1fc=a0_0x3dc2,_0xd15102=_0x122878();while(!![]){try{const _0x4f69f7=parseInt(_0x38a1fc(0x112))/0x1*(parseInt(_0x38a1fc(0x13b))/0x2)+-parseInt(_0x38a1fc(0x127))/0x3+parseInt(_0x38a1fc(0x17c))/0x4*(-parseInt(_0x38a1fc(0x115))/0x5)+parseInt(_0x38a1fc(0x16a))/0x6+parseInt(_0x38a1fc(0x145))/0x7+-parseInt(_0x38a1fc(0x162))/0x8*(-parseInt(_0x38a1fc(0x16b))/0x9)+-parseInt(_0x38a1fc(0x155))/0xa;if(_0x4f69f7===_0x2e949c)break;else _0xd15102['push'](_0xd15102['shift']());}catch(_0x483d5e){_0xd15102['push'](_0xd15102['shift']());}}}(a0_0x5d36,0xb153f));import{store,gqlContext}from'@things-factory/shell';import{getCodeByName}from'@things-factory/code-base';function a0_0x3dc2(_0xbe8d91,_0x3a4f66){const _0x5d361d=a0_0x5d36();return a0_0x3dc2=function(_0x3dc2b9,_0x2d2bbd){_0x3dc2b9=_0x3dc2b9-0xfe;let _0x428a8e=_0x5d361d[_0x3dc2b9];return _0x428a8e;},a0_0x3dc2(_0xbe8d91,_0x3a4f66);}import{EXPORT}from'@things-factory/export-base';import{gqlBuilder}from'@things-factory/utils';import{client}from'@operato/graphql';import{TermsUtil}from'./terms-util';function a0_0x5d36(){const _0x1ceabd=['\x0a\x20\x20\x20\x20\x20\x20','updatedAt','query','test','getSelectedIdList','530428uvfKIs','findIndex','deleteListByGristSelected','searchByPagination','MENU','updateMultiple','find','group','undefined','getCodeSelectorData','dispatch','checkClientError','unshift','draft-list','codeItems','buildArgs','button.','showAlertPopup','badge','path','workCodeByName','rank','map','__dirty__','gutter','401627UffVMj','type','SCREEN','5pVFVsC','splice','records','active','routingType','HOME','result','isNotEmpty','length','imex','gridPersonalizeTemplates','info','numberOfApprovalPendings','runScenario','name','selected','filter','question','1416432KEKqIu','tText','data','createdAt','category','success\x20to\x20delete','Graphql\x20Error','showToast','confirm','key','creator','__seq__','__selected__','extensions','reduce','GROUP','iconPath','text.nothing_changed','todo-list','myDynamicMenus','2nyLpLK','getWorkCodeByName','numberOfToDos','cuFlag','children','showGraphqlException','button.delete','hidden','searchMyDynamicMenus','approval-pending-list','7053627qOeoif','menus','routing','value','callScenario','menuType','display','split','record','id,template','success\x20to\x20process','\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','xlsx','parse','details','__dirtyfields__','8694170jNRpyV','showGraphqlErrorResponse','columns','menu.id','object','sort','error','forEach','networkError','message','updater','total','resourceUrl','88VnIUlL','exportableData','findOne','deleteListByIds','getCodeByEntity','patchesForUpdateMultiple','_config','text.nothing_selected','1783428ieIgug','404163JNCWFE','success\x20to\x20save','cancel','hiddenFlag','push','errors','dirtyRecords','description','title','tMenu','fetch','items'];a0_0x5d36=function(){return _0x1ceabd;};return a0_0x5d36();}import{UiUtil}from'./ui-util';import a0_0x2d4f9e from'graphql-tag';import{ValueUtil}from'./value-util';import{asyncReplace}from'lit/directives/async-replace.js';import a0_0xee0cbb from'i18next';import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';export class ServiceUtil{static async[a0_0x50de27(0x107)](_0x4045d8){const _0x3231d8=a0_0x50de27;if(Array['isArray'](_0x4045d8))return _0x4045d8[_0x3231d8(0x10f)](_0x1341f6=>'object'==typeof _0x1341f6?{'name':_0x1341f6[_0x3231d8(0x148)],'description':_0x1341f6[_0x3231d8(0x14b)]}:{'name':_0x1341f6,'description':_0x1341f6});let _0x5b7d9d=await ServiceUtil[_0x3231d8(0x13c)](_0x4045d8);return _0x5b7d9d&&_0x5b7d9d[_0x3231d8(0x11d)]>0x0?_0x5b7d9d:await getCodeByName(_0x4045d8);}static async['getWorkCodeByName'](_0x428daf){const _0x412aea=a0_0x50de27,_0x40c9c3=await client[_0x412aea(0x179)]({'query':a0_0x2d4f9e`
|
|
2
2
|
query workCodeByName($name: String!) {
|
|
3
3
|
workCodeByName(name: $name) {
|
|
4
4
|
details {
|
|
@@ -8,32 +8,32 @@ const a0_0x3c5331=a0_0x2d85;(function(_0x39f14e,_0x468780){const _0x21f677=a0_0x
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
`,'variables':{'name':
|
|
11
|
+
`,'variables':{'name':_0x428daf},'context':gqlContext()});return!_0x40c9c3[_0x412aea(0x170)]&&_0x40c9c3['data']['workCodeByName']&&_0x40c9c3[_0x412aea(0x129)]['workCodeByName'][_0x412aea(0x153)]?_0x40c9c3['data'][_0x412aea(0x10d)]['details']['sort']((_0x318ede,_0x113d4c)=>_0x318ede['rank']-_0x113d4c[_0x412aea(0x10e)]):[];}static async[a0_0x50de27(0x102)](_0x5a875b){const _0x2c45b4=a0_0x50de27;let _0x23b43d=(await ServiceUtil[_0x2c45b4(0x107)](_0x5a875b))[_0x2c45b4(0x10f)](_0xb0a36d=>({'value':_0xb0a36d['name'],'display':_0xb0a36d[_0x2c45b4(0x172)]}));return _0x23b43d[_0x2c45b4(0x105)]({'value':'','display':''}),_0x23b43d;}static async['getCodeByScenario'](_0x29a8ae,_0x440bac){const _0x5cc1b9=a0_0x50de27;let _0xd1e8f9=await ServiceUtil[_0x5cc1b9(0x149)](null,_0x29a8ae,_0x440bac);return _0xd1e8f9[_0x5cc1b9(0x105)]({'value':'','display':''}),_0xd1e8f9['map'](_0x5a7854=>({'value':_0x5a7854[_0x5cc1b9(0x123)],'display':_0x5a7854['description']}));}static async[a0_0x50de27(0x166)]({queryName:_0x1be0d3,codeField:_0x2b58f6=a0_0x50de27(0x123),dispField:_0x1f6428=a0_0x50de27(0x172),filters:_0x11e92e=[],sorters:_0x4dbe42=[]}){const _0x44c0c6=a0_0x50de27;let _0x10a4ec=_0x44c0c6(0x177)+_0x2b58f6+_0x44c0c6(0x177)+_0x1f6428+'\x0a\x20\x20\x20\x20',_0x41c6fd=await ServiceUtil[_0x44c0c6(0x17f)](_0x1be0d3,_0x11e92e,_0x4dbe42,0x0,0x0,_0x10a4ec),_0x4c30e7=[{'value':'','display':''}];return _0x41c6fd[_0x44c0c6(0x117)][_0x44c0c6(0x15c)](_0x4885b4=>{_0x4c30e7['push']({'value':_0x4885b4[_0x2b58f6],'display':_0x4885b4[_0x1f6428]});}),_0x4c30e7;}static async[a0_0x50de27(0x13a)](){const _0x342df1=a0_0x50de27;let _0x1fa7ca=await ServiceUtil[_0x342df1(0x143)]();return null!=_0x1fa7ca?ServiceUtil['arrangeMenuRoutes'](_0x1fa7ca):null;}static async['searchMenuGridPersnalTemplate'](_0x130052){const _0x1e7ccb=a0_0x50de27;let _0x2183f7=[{'name':_0x1e7ccb(0x158),'operator':'eq','value':_0x130052}],_0xc920e4=await ServiceUtil['searchByPagination'](_0x1e7ccb(0x11f),_0x2183f7,[],0x0,0x0,_0x1e7ccb(0x14e));return 0x0==_0xc920e4[_0x1e7ccb(0x160)]?{}:{'id':_0xc920e4['records'][0x0]['id'],'template':JSON[_0x1e7ccb(0x152)](_0xc920e4[_0x1e7ccb(0x117)][0x0]['template'])};}static['arrangeMenuRoutes'](_0x5f30a1){const _0x20a017=a0_0x50de27;let _0xfc84fd=[];_0x5f30a1[_0x20a017(0x15c)](_0x231eaa=>{const _0x2bc475=_0x20a017;_0xfc84fd['push'](_0x231eaa),_0x231eaa['children']&&(_0x231eaa[_0x2bc475(0x13f)][_0x2bc475(0x15a)](function(_0x45e768,_0x41ceee){return _0x45e768['rank']-_0x41ceee['rank'];}),_0x231eaa[_0x2bc475(0x13f)][_0x2bc475(0x15c)](_0x1c4683=>{const _0x66c8a5=_0x2bc475;0x1!=_0x1c4683[_0x66c8a5(0x16e)]&&(_0x1c4683['parent']=_0x231eaa,_0xfc84fd[_0x66c8a5(0x16f)](_0x1c4683));}));});let _0x172670=_0xfc84fd['map'](_0x25ba29=>{const _0x519bbc=_0x20a017;if(_0x519bbc(0x136)==_0x25ba29[_0x519bbc(0x14a)]||_0x519bbc(0x180)==_0x25ba29[_0x519bbc(0x14a)]){let _0x3a5544={'id':_0x25ba29['id'],'parent':!0x0,'name':TermsUtil[_0x519bbc(0x174)](_0x25ba29[_0x519bbc(0x123)]),'icon':_0x25ba29[_0x519bbc(0x137)],'type':_0x519bbc(0x136)==_0x25ba29[_0x519bbc(0x14a)]?_0x519bbc(0x100):'','menus':[]};return _0x25ba29[_0x519bbc(0x147)]&&(_0x3a5544['path']=_0x25ba29[_0x519bbc(0x147)]),_0x3a5544;}return{'id':'0'};})['filter'](_0x2e5fef=>'0'!=_0x2e5fef['id']),_0x146d42=_0xfc84fd[_0x20a017(0x10f)](_0x2d233d=>{const _0x3de5df=_0x20a017;if(_0x3de5df(0x114)==_0x2d233d[_0x3de5df(0x14a)]||'HIDDEN-PAGE'==_0x2d233d[_0x3de5df(0x14a)]){let _0x1d822e=_0x172670[_0x3de5df(0xff)](_0x276461=>_0x276461['id']==_0x2d233d['parent']['id']);if(_0x1d822e){let _0x547ef5=TermsUtil[_0x3de5df(0x174)](_0x2d233d[_0x3de5df(0x123)]);return _0x3de5df(0x114)==_0x2d233d['menuType']&&_0x1d822e['menus']['push']({'id':_0x2d233d['id'],'name':_0x547ef5,'path':_0x2d233d[_0x3de5df(0x147)],'icon':_0x2d233d[_0x3de5df(0x137)]}),{'id':_0x2d233d['id'],'parent':!0x1,'parent_id':_0x1d822e['id'],'title':_0x547ef5,'tagname':_0x2d233d[_0x3de5df(0x12b)],'page':_0x2d233d[_0x3de5df(0x147)],'template':_0x2d233d[_0x3de5df(0x161)],'routing_type':_0x2d233d[_0x3de5df(0x119)]};}return{'id':'0'};}return _0x3de5df(0x11a)==_0x2d233d[_0x3de5df(0x14a)]?{'id':_0x2d233d['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil[_0x3de5df(0x174)](_0x2d233d[_0x3de5df(0x123)]),'tagname':_0x2d233d['category'],'page':_0x2d233d[_0x3de5df(0x147)],'template':_0x2d233d[_0x3de5df(0x161)],'routing_type':_0x2d233d['routingType']}:{'id':'0'};})[_0x20a017(0x125)](_0x2abebc=>null!=_0x2abebc&&'0'!=_0x2abebc['id']);_0x172670[_0x20a017(0x125)](_0x5d93cb=>'group'==_0x5d93cb[_0x20a017(0x113)]&&_0x5d93cb[_0x20a017(0x146)]&&_0x5d93cb['menus']['length']>0x0)[_0x20a017(0x15c)](_0xb118a2=>{const _0x532005=_0x20a017;let _0x599bea=_0x172670[_0x532005(0x17d)](_0x93672b=>_0x93672b['id']==_0xb118a2['id'])+0x1;_0x172670[_0x532005(0x116)](_0x599bea,0x0,..._0xb118a2[_0x532005(0x146)]);});let _0x545617=0x0;return _0x172670[_0x20a017(0x15c)](_0x28f59a=>{const _0x40036c=_0x20a017;_0x40036c(0x139)==_0x28f59a[_0x40036c(0x10c)]?(_0x545617++,_0x28f59a['badge']=()=>asyncReplace(generateActivitySummary(_0x40036c(0x13d))),_0x28f59a[_0x40036c(0x118)]=({path:_0x523c6a})=>/^activity\//[_0x40036c(0x17a)](_0x523c6a)):_0x40036c(0x144)==_0x28f59a[_0x40036c(0x10c)]?(_0x545617++,_0x28f59a[_0x40036c(0x10b)]=()=>asyncReplace(generateActivitySummary(_0x40036c(0x121))),_0x28f59a['active']=({path:_0x4d0f52})=>/^activity\//[_0x40036c(0x17a)](_0x4d0f52)):_0x40036c(0x106)==_0x28f59a[_0x40036c(0x10c)]&&(_0x545617++,_0x28f59a[_0x40036c(0x10b)]=()=>asyncReplace(generateActivitySummary('numberOfDrafts')));}),_0x545617>0x0&&startSubscribeActivitySummary(),{'menus':_0x172670,'routes':_0x146d42};}static async[a0_0x50de27(0x143)](){const _0x148b24=a0_0x50de27;let _0x2ad41b=await ServiceUtil[_0x148b24(0x17f)]('menus',[{'name':'hiddenFlag','operator':'noteq','value':!0x0},{'name':_0x148b24(0x14a),'operator':'in','value':['HOME','MENU','GROUP']}],[{'name':'rank'}],0x0,0x0,_0x148b24(0x150));return _0x2ad41b?_0x2ad41b[_0x148b24(0x117)]:[];}static async[a0_0x50de27(0x156)](_0x36153a){const _0x41d942=a0_0x50de27;if(_0x36153a['errors']&&_0x36153a[_0x41d942(0x170)][_0x41d942(0x11d)]>0x0){let _0x116ab7=_0x36153a['errors'][0x0],_0x472f03=_0x116ab7[_0x41d942(0x15e)],_0x2302b3=_0x116ab7[_0x41d942(0x15e)];_0x116ab7[_0x41d942(0x134)]&&(_0x2302b3=_0x116ab7[_0x41d942(0x134)]['code']),await UiUtil[_0x41d942(0x10a)](_0x2302b3,_0x472f03,'error',_0x41d942(0x12f));}}static async['showGraphqlException'](_0x3739f4){const _0xc9c6c6=a0_0x50de27;_0x3739f4&&(_0x3739f4['networkError']&&_0x3739f4[_0xc9c6c6(0x15d)][_0xc9c6c6(0x11b)]?await ServiceUtil['showGraphqlErrorResponse'](_0x3739f4[_0xc9c6c6(0x15d)]['result']):await UiUtil[_0xc9c6c6(0x10a)](_0xc9c6c6(0x12d),_0x3739f4[_0xc9c6c6(0x15e)],_0xc9c6c6(0x15b),'confirm'));}static async[a0_0x50de27(0x163)](_0x8b3a95,_0x986a50,_0x1a3f6a){const _0x34fba0=a0_0x50de27;var _0x3b8a8f=_0x1a3f6a[_0x34fba0(0x168)][_0x34fba0(0x157)]['filter'](_0x847b40=>_0x34fba0(0x111)!==_0x847b40[_0x34fba0(0x113)]&&void 0x0!==_0x847b40[_0x34fba0(0x14d)]&&void 0x0!==_0x847b40['imex']&&!0x0!==_0x847b40[_0x34fba0(0x142)])[_0x34fba0(0x10f)](_0x488ce6=>_0x488ce6[_0x34fba0(0x11e)]),_0x471d0e=_0x1a3f6a[_0x34fba0(0x129)][_0x34fba0(0x117)]['map'](_0x5b1a3b=>({..._0x1a3f6a[_0x34fba0(0x168)][_0x34fba0(0x157)][_0x34fba0(0x125)](_0x4a56d7=>_0x34fba0(0x111)!==_0x4a56d7['type']&&void 0x0!==_0x4a56d7['record']&&void 0x0!==_0x4a56d7[_0x34fba0(0x11e)]&&!0x0!==_0x4a56d7[_0x34fba0(0x142)])[_0x34fba0(0x135)]((_0x2fe349,_0x37ad66)=>(_0x2fe349[_0x37ad66[_0x34fba0(0x11e)][_0x34fba0(0x130)]]=_0x37ad66['imex'][_0x34fba0(0x130)][_0x34fba0(0x14c)]('.')[_0x34fba0(0x135)]((_0xc3b367,_0x2de718)=>_0xc3b367&&_0x34fba0(0x101)!==_0xc3b367[_0x2de718]?_0xc3b367[_0x2de718]:void 0x0,_0x5b1a3b),_0x2fe349),{})}));if(!_0x8b3a95)return{'header':_0x3b8a8f,'data':_0x471d0e};store[_0x34fba0(0x103)]({'type':EXPORT,'exportable':{'extension':_0x34fba0(0x151),'name':_0x986a50,'data':{'header':_0x3b8a8f,'data':_0x471d0e}}});}static async[a0_0x50de27(0x17f)](_0xa8ce49,_0x188dc4,_0x13797d,_0x4d78d7,_0x5d8f89,_0x551e7e){const _0x484968=a0_0x50de27;try{const _0xefc941=await client['query']({'query':a0_0x2d4f9e`
|
|
12
12
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
13
|
-
${
|
|
13
|
+
${_0xa8ce49}(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
14
14
|
items {
|
|
15
|
-
${
|
|
15
|
+
${_0x551e7e}
|
|
16
16
|
}
|
|
17
17
|
total
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,'variables':{'filters':
|
|
20
|
+
`,'variables':{'filters':_0x188dc4,'sortings':_0x13797d,'pagination':{'page':_0x4d78d7,'limit':_0x5d8f89}}});if(!_0xefc941[_0x484968(0x170)])return{'records':_0xefc941[_0x484968(0x129)][_0xa8ce49][_0x484968(0x176)],'total':_0xefc941[_0x484968(0x129)][_0xa8ce49][_0x484968(0x160)]};ServiceUtil[_0x484968(0x156)](_0xefc941);}catch(_0x5aef48){ServiceUtil[_0x484968(0x140)](_0x5aef48);}return null;}static async[a0_0x50de27(0x164)](_0x4eebce,_0xd0cf54,_0x262a95){const _0x399faf=a0_0x50de27;try{let _0x57a491=await client['query']({'query':a0_0x2d4f9e`
|
|
21
21
|
query ($id: String!) {
|
|
22
|
-
${
|
|
23
|
-
${
|
|
22
|
+
${_0x4eebce}(id: $id) {
|
|
23
|
+
${_0x262a95}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,'variables':{'id':
|
|
26
|
+
`,'variables':{'id':_0xd0cf54}});if(!_0x57a491[_0x399faf(0x170)])return _0x57a491[_0x399faf(0x129)][_0x4eebce]||{};ServiceUtil[_0x399faf(0x156)](_0x57a491);}catch(_0x37f278){ServiceUtil[_0x399faf(0x140)](_0x37f278);}return null;}static[a0_0x50de27(0x17b)](_0x1445b8,_0x203e88){const _0xd31ee9=a0_0x50de27,_0x5c7472=_0x1445b8[_0xd31ee9(0x124)][_0xd31ee9(0x10f)](_0x71837c=>_0x71837c['id']);return ValueUtil['isEmpty'](_0x5c7472)&&0x1==_0x203e88&&UiUtil['showAlertPopup'](_0xd31ee9(0x169),'text.there_is_nothing_to_delete',_0xd31ee9(0x120),_0xd31ee9(0x12f)),_0x5c7472;}static async[a0_0x50de27(0x17e)](_0x42319d,_0x1ff7ab){const _0x9dd37a=a0_0x50de27;let _0x4b25be=ServiceUtil[_0x9dd37a(0x17b)](_0x42319d,!0x0);ValueUtil[_0x9dd37a(0x11c)](_0x4b25be)&&(await ServiceUtil[_0x9dd37a(0x165)](_0x4b25be,_0x1ff7ab)&&_0x42319d[_0x9dd37a(0x175)]());}static async[a0_0x50de27(0x165)](_0x2bc431,_0x2e2170){const _0x46c81e=a0_0x50de27;if(!(await UiUtil[_0x46c81e(0x10a)](_0x46c81e(0x141),'text.are_you_sure',_0x46c81e(0x126),'delete',_0x46c81e(0x16d)))[_0x46c81e(0x148)])return!0x1;try{const _0x5954b2=await client['query']({'query':a0_0x2d4f9e`
|
|
27
27
|
mutation {
|
|
28
|
-
${
|
|
28
|
+
${_0x2e2170}(${gqlBuilder[_0x46c81e(0x108)]({'ids':_0x2bc431})})
|
|
29
29
|
}
|
|
30
|
-
`});if(!
|
|
30
|
+
`});if(!_0x5954b2['errors'])return UiUtil['showToast'](_0x46c81e(0x120),TermsUtil['tText'](_0x46c81e(0x12c))),!0x0;ServiceUtil['showGraphqlErrorResponse'](_0x5954b2);}catch(_0x404b87){ServiceUtil['showGraphqlException'](_0x404b87);}return!0x1;}static async['updateMultipleData'](_0x369db7,_0x181d77){const _0x320650=a0_0x50de27;let _0x26e4a0=ServiceUtil[_0x320650(0x167)](_0x369db7);if(ValueUtil[_0x320650(0x11c)](_0x26e4a0)){let _0xebb77f=await ServiceUtil[_0x320650(0xfe)](_0x181d77,_0x26e4a0);if(_0xebb77f)return _0x369db7[_0x320650(0x175)](),_0xebb77f;}return!0x1;}static async[a0_0x50de27(0xfe)](_0x27a7fd,_0x3779b0){const _0x13769a=a0_0x50de27;try{const _0x3b7f00=await client[_0x13769a(0x179)]({'query':a0_0x2d4f9e`
|
|
31
31
|
mutation {
|
|
32
|
-
${
|
|
32
|
+
${_0x27a7fd}(${gqlBuilder[_0x13769a(0x108)]({'patches':_0x3779b0})}) {
|
|
33
33
|
id
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
`,'context':{'hasUpload':!0x0}});if(!
|
|
36
|
+
`,'context':{'hasUpload':!0x0}});if(!_0x3b7f00[_0x13769a(0x170)])return UiUtil['showToast'](_0x13769a(0x120),TermsUtil['tText'](_0x13769a(0x16c))),!0x0;ServiceUtil['showGraphqlErrorResponse'](_0x3b7f00);}catch(_0xba6911){ServiceUtil['showGraphqlException'](_0xba6911);}return!0x1;}static[a0_0x50de27(0x167)](_0x48a61a,_0x351bd0=!0x1){const _0x26c89a=a0_0x50de27;let _0x5845bb=_0x48a61a[_0x26c89a(0x171)];if(_0x5845bb&&0x0!=_0x5845bb[_0x26c89a(0x11d)])return _0x5845bb[_0x26c89a(0x10f)](_0x1e0270=>{const _0x566d24=_0x26c89a;let _0x33dc91=_0x1e0270['id']?{'id':_0x1e0270['id']}:{};for(let _0x2bf226 in _0x1e0270)[_0x566d24(0x131),_0x566d24(0x15f),_0x566d24(0x12a),_0x566d24(0x178),_0x566d24(0x110),_0x566d24(0x154),'__origin__',_0x566d24(0x132),_0x566d24(0x133)]['includes'](_0x2bf226)||(_0x1e0270[_0x2bf226]&&_0x566d24(0x159)==typeof _0x1e0270[_0x2bf226]&&0x0==_0x351bd0?_0x33dc91[_0x2bf226]={'id':_0x1e0270[_0x2bf226]['id']}:_0x33dc91[_0x2bf226]=_0x1e0270[_0x2bf226]);return _0x33dc91[_0x566d24(0x13e)]=_0x1e0270[_0x566d24(0x110)],_0x33dc91;});UiUtil['showAlertPopup'](_0x26c89a(0x138),'text.NOTHING_CHANGED',_0x26c89a(0x120),_0x26c89a(0x12f));}static async[a0_0x50de27(0x149)](_0x4d19f7,_0x49b507,_0x5710a0){const _0xa32934=a0_0x50de27;let _0xbf3155=!0x0;_0x4d19f7&&(_0xbf3155=(await UiUtil['showAlertPopup'](_0xa32934(0x109)+_0x4d19f7,'text.are_you_sure',_0xa32934(0x126),_0xa32934(0x12f),_0xa32934(0x16d)))[_0xa32934(0x148)]);if(_0xbf3155)try{const _0x4405ee=await client[_0xa32934(0x179)]({'query':a0_0x2d4f9e`
|
|
37
37
|
mutation ($scenarioName: String!, $variables: Object) {
|
|
38
38
|
runScenario(scenarioName: $scenarioName, variables: $variables) {
|
|
39
39
|
state
|
|
@@ -42,4 +42,4 @@ const a0_0x3c5331=a0_0x2d85;(function(_0x39f14e,_0x468780){const _0x21f677=a0_0x
|
|
|
42
42
|
__typename
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
`,'variables':{'scenarioName':
|
|
45
|
+
`,'variables':{'scenarioName':_0x49b507,'variables':_0x5710a0}});if(_0x4405ee[_0xa32934(0x170)])ServiceUtil[_0xa32934(0x156)](_0x4405ee);else{if(this[_0xa32934(0x104)](_0x4405ee))return UiUtil[_0xa32934(0x12e)]('info',TermsUtil[_0xa32934(0x128)](_0xa32934(0x14f))),_0x4405ee;}}catch(_0x10400d){ServiceUtil[_0xa32934(0x140)](_0x10400d);}return!0x1;}static[a0_0x50de27(0x104)](_0x91d11a){const _0x3251f1=a0_0x50de27;if(_0x91d11a&&_0x91d11a[_0x3251f1(0x129)]&&_0x91d11a[_0x3251f1(0x129)][_0x3251f1(0x122)]&&_0x91d11a[_0x3251f1(0x129)][_0x3251f1(0x122)][_0x3251f1(0x129)]&&_0x91d11a[_0x3251f1(0x129)]['runScenario'][_0x3251f1(0x129)][_0x3251f1(0x15b)]){let _0x10009b=_0x91d11a[_0x3251f1(0x129)][_0x3251f1(0x122)][_0x3251f1(0x129)]['error'];return UiUtil['showAlertPopup'](_0x10009b[_0x3251f1(0x173)],_0x10009b[_0x3251f1(0x15e)],'error',_0x3251f1(0x12f)),!0x1;}return!0x0;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x1f1020=a0_0xc485;(function(_0x581d5a,_0x4b48e8){const _0x352394=a0_0xc485,_0x23e8d1=_0x581d5a();while(!![]){try{const _0x4c5660=parseInt(_0x352394(0xef))/0x1+parseInt(_0x352394(0xea))/0x2+parseInt(_0x352394(0x10f))/0x3*(-parseInt(_0x352394(0x101))/0x4)+-parseInt(_0x352394(0x105))/0x5*(parseInt(_0x352394(0xf3))/0x6)+parseInt(_0x352394(0xed))/0x7*(-parseInt(_0x352394(0x10b))/0x8)+parseInt(_0x352394(0x103))/0x9+-parseInt(_0x352394(0xf4))/0xa*(-parseInt(_0x352394(0x100))/0xb);if(_0x4c5660===_0x4b48e8)break;else _0x23e8d1['push'](_0x23e8d1['shift']());}catch(_0xce70be){_0x23e8d1['push'](_0x23e8d1['shift']());}}}(a0_0x53a6,0x988ca));import a0_0x22dbd6 from'graphql-tag';function a0_0x53a6(){const _0xeb9106=['total','65639Iiecoc','META_TERMS','321145GZMpqE','data','errors','query','7086FHMxWF','4573160rxYaam','translate','text','terminologies','error','field','items','keys','records','tMenu','title','forEach','22DrGCnN','1553972gPjOel','tError','3483018zBbCxE','menu','1585boeBsH','tField','tTitle','category','replace','locale','328ymlVBT','tButton','fetchTerminologies','display','6cRiSCu','button','1075766SSrBxw','tLabel'];a0_0x53a6=function(){return _0xeb9106;};return a0_0x53a6();}function a0_0xc485(_0x3cd7bf,_0x1248b5){const _0x53a668=a0_0x53a6();return a0_0xc485=function(_0xc4850c,_0x20e477){_0xc4850c=_0xc4850c-0xe9;let _0x981064=_0x53a668[_0xc4850c];return _0x981064;},a0_0xc485(_0x3cd7bf,_0x1248b5);}import{client}from'@operato/graphql';import{i18next}from'@operato/i18n';export class TermsUtil{[a0_0x1f1020(0xee)]=null;static async['downloadTerminologies'](_0x1afee1){const _0xbf46b9=a0_0x1f1020;let _0x2d1487=(await TermsUtil['fetchTerminologies'](_0x1afee1))[_0xbf46b9(0xfc)];_0x2d1487&&_0x2d1487['length']>0x0&&(this['META_TERMS']={},_0x2d1487[_0xbf46b9(0xff)](_0x173b93=>{const _0x230dc5=_0xbf46b9;let _0x5b98a7=_0x173b93[_0x230dc5(0x108)]+'.'+_0x173b93['name'];this[_0x230dc5(0xee)][_0x5b98a7]=_0x173b93[_0x230dc5(0x10e)];}));}static async[a0_0x1f1020(0x10d)](_0x441a3e){const _0x165896=a0_0x1f1020;let _0x825881=[{'name':_0x165896(0x10a),'operator':'eq','value':_0x441a3e}];const _0x3a1cac=await client[_0x165896(0xf2)]({'query':a0_0x22dbd6`
|
|
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_0x13c3bb=a0_0x23df;(function(_0x868cbf,_0x3488a6){const _0x3055fb=a0_0x
|
|
|
11
11
|
total
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
`,'variables':{'filters':
|
|
14
|
+
`,'variables':{'filters':_0x825881,'sortings':[{'name':_0x165896(0x108)},{'name':'name'}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0x3a1cac[_0x165896(0xf1)])return{'records':_0x3a1cac[_0x165896(0xf0)][_0x165896(0xf7)][_0x165896(0xfa)]||[],'total':_0x3a1cac['data'][_0x165896(0xf7)][_0x165896(0xec)]||0x0};}static[a0_0x1f1020(0xeb)](_0x9efca4,_0xf6aedf){const _0x1528b3=a0_0x1f1020;let _0x178501=TermsUtil[_0x1528b3(0xf5)]('label',_0x9efca4,_0xf6aedf,null);return _0x178501||TermsUtil[_0x1528b3(0xf5)](_0x1528b3(0xf9),_0x9efca4,_0xf6aedf,_0x9efca4);}static[a0_0x1f1020(0x106)](_0x17eb94,_0x2e30c2){const _0x567fa8=a0_0x1f1020;let _0x1d5b8e=TermsUtil[_0x567fa8(0xf5)](_0x567fa8(0xf9),_0x17eb94,_0x2e30c2,null);return _0x1d5b8e||TermsUtil[_0x567fa8(0xf5)](_0x567fa8(0xf9),_0x17eb94,_0x2e30c2,_0x17eb94);}static[a0_0x1f1020(0x10c)](_0x118060){const _0x4b1030=a0_0x1f1020;return TermsUtil[_0x4b1030(0xf5)](_0x4b1030(0xe9),_0x118060,null,_0x118060);}static[a0_0x1f1020(0x107)](_0x1ab4ca,_0x3f2de9){const _0x4399f8=a0_0x1f1020;let _0x434594=TermsUtil[_0x4399f8(0xf5)](_0x4399f8(0xfe),_0x1ab4ca,_0x3f2de9,null);return _0x434594||TermsUtil[_0x4399f8(0xf5)](_0x4399f8(0x104),_0x1ab4ca,_0x3f2de9,_0x1ab4ca);}static[a0_0x1f1020(0xfd)](_0x15222b){const _0x3ad77e=a0_0x1f1020;let _0x135f66=TermsUtil[_0x3ad77e(0xf5)](_0x3ad77e(0x104),_0x15222b,null,_0x15222b);return _0x135f66||TermsUtil[_0x3ad77e(0xf5)](_0x3ad77e(0xfe),_0x15222b,null,_0x15222b);}static['tText'](_0x20ed23,_0x4ca930){const _0x26f057=a0_0x1f1020;return TermsUtil['translate'](_0x26f057(0xf6),_0x20ed23,_0x4ca930,_0x20ed23);}static[a0_0x1f1020(0x102)](_0x8427c2,_0x5330e9){const _0x4b9a4e=a0_0x1f1020;return TermsUtil[_0x4b9a4e(0xf5)](_0x4b9a4e(0xf8),_0x8427c2,_0x5330e9,_0x8427c2);}static[a0_0x1f1020(0xf5)](_0xb8f461,_0x1844da,_0x5a77ad,_0x25d1ce){let _0x390f7c=_0xb8f461+'.'+_0x1844da;return TermsUtil['t'](_0x390f7c,_0x5a77ad,_0x25d1ce);}static['t'](_0x345b05,_0x1db985,_0x2b397e){const _0x10e1ac=a0_0x1f1020;let _0x9c81d3=this[_0x10e1ac(0xee)]?this[_0x10e1ac(0xee)][_0x345b05]:null;return _0x9c81d3=_0x9c81d3||i18next['t'](_0x345b05),_0x9c81d3&&_0x345b05!=_0x9c81d3?(_0x1db985&&Object[_0x10e1ac(0xfb)](_0x1db985)[_0x10e1ac(0xff)](function(_0x385d77){const _0x4e184c=_0x10e1ac;var _0x47ad18='\x5c{'+_0x385d77[_0x4e184c(0x109)](/\$/,'\x5c$')+'\x5c}',_0x3a0944=new RegExp(_0x47ad18,'gi');_0x9c81d3=_0x9c81d3[_0x4e184c(0x109)](_0x3a0944,_0x1db985[_0x385d77]);}),_0x9c81d3):_0x2b397e;}}
|
package/client/utils/ui-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x24b2(_0x2648fd,_0x1e67fe){const _0x44fa35=a0_0x44fa();return a0_0x24b2=function(_0x24b2c8,_0x4f5d90){_0x24b2c8=_0x24b2c8-0x94;let _0x316f21=_0x44fa35[_0x24b2c8];return _0x316f21;},a0_0x24b2(_0x2648fd,_0x1e67fe);}const a0_0x1205f5=a0_0x24b2;(function(_0x398e24,_0x443402){const _0x139e59=a0_0x24b2,_0x52802f=_0x398e24();while(!![]){try{const _0x4801eb=parseInt(_0x139e59(0xa0))/0x1*(-parseInt(_0x139e59(0xc6))/0x2)+parseInt(_0x139e59(0xd5))/0x3+parseInt(_0x139e59(0xc9))/0x4+-parseInt(_0x139e59(0xd0))/0x5+parseInt(_0x139e59(0xa1))/0x6+parseInt(_0x139e59(0xd2))/0x7+-parseInt(_0x139e59(0xc0))/0x8;if(_0x4801eb===_0x443402)break;else _0x52802f['push'](_0x52802f['shift']());}catch(_0x1d5486){_0x52802f['push'](_0x52802f['shift']());}}}(a0_0x44fa,0x6ec19));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';function a0_0x44fa(){const _0x6e87c=['2181280sRLMBj','config','6258966xsYstE','renderRoot','ox-input-code','162921BciVMo','popup_field','dispatchEvent','tButton','ko-KR','ox-input-barcode','stringify','substring','[name=\x27','forEach','barcode','getState','name','109017zNpqCs','2909958QYrcnD','notify','currentLocale','template','tagname','pageNavigate','currentRouting','onclosed','route','getStore','select-combo','firstElementChild','showAlertPopup','confirmButton','createElement','getType','parent_field','openPopupByElement','getFilterFormData','showToast','content','createEditorHtml','openDynamicPopup','code-editor','cancelButton','querySelector','replace','split','\x20route_name=\x27','getLeafInput','createCustomElement','3935736trEOIB','input','i18next','isNotEmpty','cookie','textarea','6gEQGQe','indexOf','\x27></','1101972OvWBez','htmlToElement','value','pass=','type','isMobileEnv','length'];a0_0x44fa=function(){return _0x6e87c;};return a0_0x44fa();}import{MetaUiUtil}from'./meta-ui-util';export class UiUtil{static[a0_0x1205f5(0xce)](){return isMobileDevice();}static[a0_0x1205f5(0xa3)](){const _0x4832be=a0_0x1205f5;let _0x358671=document[_0x4832be(0xc4)];return _0x358671=_0x358671[_0x4832be(0x9a)](_0x358671[_0x4832be(0xc7)](_0x4832be(0xc2))),_0x358671[_0x4832be(0xc7)](';')>-0x1&&(_0x358671=_0x358671[_0x4832be(0x9a)](0x0,_0x358671[_0x4832be(0xc7)](';'))),_0x358671=_0x358671[_0x4832be(0xbb)]('i18next=',''),'ko'==_0x358671?_0x4832be(0x97):_0x358671;}static['getApplicationModuleInfo'](){const _0x4eaa7b=a0_0x1205f5;let _0x19ffc4=store['getState']()['app']['modules'];return _0x19ffc4[_0x19ffc4[_0x4eaa7b(0xcf)]-0x1];}static[a0_0x1205f5(0xa7)](){const _0xa84240=a0_0x1205f5;return store['getState']()[_0xa84240(0xa9)]['page'];}static[a0_0x1205f5(0xb2)](_0x58805c,_0x3615cc,_0x361d4d,_0x49b1ec){return openPopup(_0x361d4d,{'backdrop':!0x0,'size':_0x3615cc,'title':_0x58805c,'backdrop':_0x49b1ec});}static async[a0_0x1205f5(0xb7)](_0x424f4c,_0x176a63,_0x1c998f,_0x27eeca){const _0x43a1e0=a0_0x1205f5;let _0x4288da=ValueUtil['isNotEmpty'](_0x176a63[_0x43a1e0(0xb1)])?ValueUtil['getParams'](_0x1c998f,..._0x176a63[_0x43a1e0(0xb1)][_0x43a1e0(0xbc)]('.')):void 0x0,_0x19d9d='<'+_0x176a63['tagname']+'\x20route_name=\x27'+_0x176a63['menu']+'\x27\x20\x20parent_id=\x27'+_0x4288da+'\x27\x20is_popup=true></'+_0x176a63[_0x43a1e0(0xa5)]+'>',_0x112c3a=UiUtil[_0x43a1e0(0xca)](_0x19d9d);_0x112c3a[_0x43a1e0(0xd1)]=_0x176a63,ValueUtil[_0x43a1e0(0xc3)](_0x176a63[_0x43a1e0(0x94)])&&(_0x112c3a[_0x176a63[_0x43a1e0(0x94)]]=_0x1c998f);let _0x50df01=UiUtil[_0x43a1e0(0xb2)](_0x424f4c,_0x176a63['size'],_0x112c3a,!0x0);_0x27eeca&&(_0x50df01[_0x43a1e0(0xa8)]=_0x27eeca);}static[a0_0x1205f5(0xbf)](_0x1ac12b,_0x512f55){const _0x14a9d7=a0_0x1205f5;let _0xc3c3bc='<'+_0x1ac12b+_0x14a9d7(0xbd)+_0x512f55+_0x14a9d7(0xc8)+_0x1ac12b+'>';return UiUtil[_0x14a9d7(0xca)](_0xc3c3bc);}static[a0_0x1205f5(0xca)](_0x227bd9){const _0x11a7c2=a0_0x1205f5;var _0x56604f=document[_0x11a7c2(0xaf)](_0x11a7c2(0xa4));_0x56604f['innerHTML']=_0x227bd9;var _0x3d4fed=_0x56604f[_0x11a7c2(0xb5)]['childNodes'][0x0];return _0x56604f[_0x11a7c2(0xb5)]['removeChild'](_0x3d4fed),_0x3d4fed;}static[a0_0x1205f5(0xa6)](_0x21a0b4,_0x255fe5){const _0x1778f6=a0_0x1205f5;let _0x1e6b3c=_0x255fe5?'?':'';_0x255fe5&&(_0x1e6b3c+=_0x1778f6(0xcc)+JSON[_0x1778f6(0x99)](_0x255fe5)),navigate(''+_0x21a0b4+_0x1e6b3c);}static[a0_0x1205f5(0xaa)](_0x143958,_0x563475,_0x241711){const _0x53dd06=a0_0x1205f5;let _0x336f62=_0x336f62[_0x53dd06(0x9e)]();return _0x143958&&_0x563475&&_0x241711?_0x336f62[_0x143958][_0x563475][_0x241711]:_0x143958&&_0x563475?_0x336f62[_0x143958][_0x563475]:_0x143958?_0x336f62[_0x143958]:_0x336f62;}static['fireCustomEvent'](_0x326d6c,_0x4cb66b){const _0x8de865=a0_0x1205f5;document[_0x8de865(0x95)](new CustomEvent(_0x326d6c,{'detail':_0x4cb66b}));}static[a0_0x1205f5(0xb4)](_0x5b3388,_0x2aa20c){const _0x52202e=a0_0x1205f5;document[_0x52202e(0x95)](new CustomEvent(_0x52202e(0xa2),{'detail':{'type':_0x5b3388,'message':_0x2aa20c}}));}static async[a0_0x1205f5(0xad)](_0x44d53c,_0x3d5e8e,_0x4d4c75,_0x3441cb,_0x3cf2ff){const _0x1bd342=a0_0x1205f5;let _0x3eabdb={'title':TermsUtil['t'](_0x44d53c)||_0x44d53c,'text':TermsUtil['t'](_0x3d5e8e)||_0x3d5e8e};return _0x4d4c75&&(_0x3eabdb[_0x1bd342(0xcd)]=_0x4d4c75),_0x3441cb&&(_0x3eabdb[_0x1bd342(0xae)]=TermsUtil['tButton'](_0x3441cb)),_0x3cf2ff&&(_0x3eabdb[_0x1bd342(0xb9)]=TermsUtil[_0x1bd342(0x96)](_0x3cf2ff)),await CustomAlert(_0x3eabdb);}static[a0_0x1205f5(0xb3)](_0x1a575f){const _0x5a78eb=a0_0x1205f5;if(ValueUtil[_0x5a78eb(0xc3)](_0x1a575f)){let _0x2842e7=_0x1a575f['filters']();ValueUtil[_0x5a78eb(0xc3)](_0x2842e7)&&_0x2842e7[_0x5a78eb(0x9c)](_0x3d60d1=>{const _0x3ba81b=_0x5a78eb;ValueUtil[_0x3ba81b(0xc3)](_0x3d60d1[_0x3ba81b(0xcb)])&&(item[_0x3d60d1[_0x3ba81b(0x9f)]]=_0x3d60d1['value']?_0x3d60d1['value']:null);});}return{};}static['setSearchFormEditorValue'](_0xeee293,_0x604fb9,_0x4bc430){const _0x558493=a0_0x1205f5;if(ValueUtil[_0x558493(0xc3)](_0xeee293)){let _0x5c165a=_0xeee293[_0x558493(0xd3)]?.[_0x558493(0xba)](_0x558493(0x9b)+_0x604fb9+'\x27]');ValueUtil['isNotEmpty'](_0x5c165a)&&(_0x5c165a[_0x558493(0xcb)]=_0x4bc430);}}static[a0_0x1205f5(0xb6)](_0x2b7ab2,_0x219b6c,_0x5672e6,_0x42e23f){return getEditor(_0x2b7ab2)('',_0x219b6c,_0x5672e6,_0x42e23f,{});}static['setValueToEditor'](_0x523d46,_0x34b4cc){const _0x3b928d=a0_0x1205f5;UiUtil[_0x3b928d(0xbe)](_0x523d46)['value']=_0x34b4cc;}static['getLeafInput'](_0x341853){const _0x1d6a97=a0_0x1205f5;let _0x3089dd=_0x341853[_0x1d6a97(0xb0)]();return _0x1d6a97(0xb8)==_0x3089dd?_0x341853[_0x1d6a97(0xd3)][_0x1d6a97(0xba)](_0x1d6a97(0xd4)):_0x1d6a97(0xc5)==_0x3089dd?_0x341853[_0x1d6a97(0xd3)][_0x1d6a97(0xba)](_0x1d6a97(0xc5)):_0x1d6a97(0xab)==_0x3089dd?_0x341853[_0x1d6a97(0xd3)][_0x1d6a97(0xba)]('ox-select')[_0x1d6a97(0xac)]:_0x1d6a97(0x9d)==_0x3089dd?_0x341853[_0x1d6a97(0xd3)][_0x1d6a97(0xba)](_0x1d6a97(0x98))[_0x1d6a97(0xd3)]['querySelector'](_0x1d6a97(0xc1)):_0x341853['renderRoot'][_0x1d6a97(0xac)]['editor'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x30d1(){const _0xfa35f0=['populateObject','TRUE','3UMBJiq','isArray','compareObjectValues','keys','setParams','toBoolean','165672wqZEBP','getParams','1116qkcjYj','forEach','boolean','9549749jNMReL','length','toInteger','number','isNotEmpty','6440652nzaJKX','isEmpty','populateArray','10sywFBW','map','slice','21235TTfFBN','9965682cUiFKP','330197yFRewE','259FpnKGS','433454QnjfGC'];a0_0x30d1=function(){return _0xfa35f0;};return a0_0x30d1();}function a0_0x3e44(_0x39b040,_0x23f438){const _0x30d138=a0_0x30d1();return a0_0x3e44=function(_0x3e4478,_0x326a63){_0x3e4478=_0x3e4478-0x121;let _0x504135=_0x30d138[_0x3e4478];return _0x504135;},a0_0x3e44(_0x39b040,_0x23f438);}const a0_0x4f0509=a0_0x3e44;(function(_0x34db93,_0x5d1831){const _0x279661=a0_0x3e44,_0x43fa3c=_0x34db93();while(!![]){try{const _0x314847=parseInt(_0x279661(0x13c))/0x1+-parseInt(_0x279661(0x121))/0x2*(parseInt(_0x279661(0x124))/0x3)+parseInt(_0x279661(0x12c))/0x4*(-parseInt(_0x279661(0x13a))/0x5)+-parseInt(_0x279661(0x134))/0x6+parseInt(_0x279661(0x13d))/0x7*(parseInt(_0x279661(0x12a))/0x8)+parseInt(_0x279661(0x13b))/0x9+-parseInt(_0x279661(0x137))/0xa*(-parseInt(_0x279661(0x12f))/0xb);if(_0x314847===_0x5d1831)break;else _0x43fa3c['push'](_0x43fa3c['shift']());}catch(_0x20d97d){_0x43fa3c['push'](_0x43fa3c['shift']());}}}(a0_0x30d1,0x91b45));import a0_0x21a655 from'lodash-es/isEqual';import{TermsUtil}from'./terms-util';export class ValueUtil{static[a0_0x4f0509(0x135)](_0x519a99){const _0x4d50ea=a0_0x4f0509;if(void 0x0===_0x519a99)return!0x0;if(null===_0x519a99)return!0x0;if(_0x4d50ea(0x12e)==typeof _0x519a99)return!0x1;if('string'==typeof _0x519a99||_0x4d50ea(0x132)==typeof _0x519a99){if(''==_0x519a99)return!0x0;}else{if(Array[_0x4d50ea(0x125)](_0x519a99)){if(0x0==_0x519a99[_0x4d50ea(0x130)])return!0x0;}else{if('object'==typeof _0x519a99&&0x0==Object[_0x4d50ea(0x127)](_0x519a99)[_0x4d50ea(0x130)])return!0x0;}}return!0x1;}static['isNotEmpty'](_0x1a2920){const _0x19da69=a0_0x4f0509;return!ValueUtil[_0x19da69(0x135)](_0x1a2920);}static['isEquals'](_0x28ea91,_0xd6b35d){return a0_0x21a655(_0x28ea91,_0xd6b35d);}static[a0_0x4f0509(0x131)](_0x143f15,_0x448e0f){return ValueUtil['isEmpty'](_0x143f15)?_0x448e0f||0x0:parseInt(_0x143f15);}static[a0_0x4f0509(0x129)](_0x5c57e){const _0x28f2f8=a0_0x4f0509;return!ValueUtil[_0x28f2f8(0x135)](_0x5c57e)&&('true'==_0x5c57e||'t'==_0x5c57e||_0x28f2f8(0x123)==_0x5c57e||'T'==_0x5c57e||'on'==_0x5c57e||'ON'==_0x5c57e);}static[a0_0x4f0509(0x126)](_0x1a9bb1,_0x21b824,_0x5cd6ef){let _0x3d1d09=!0x0;return _0x5cd6ef['forEach'](_0x334100=>{const _0x4b7c68=a0_0x3e44;let _0x32bcde=_0x1a9bb1[_0x334100];if('*'===_0x32bcde)return;let _0x235fb6=_0x21b824[_0x334100]||'';ValueUtil[_0x4b7c68(0x135)](_0x32bcde)?ValueUtil['isNotEmpty'](_0x235fb6)&&(_0x3d1d09=!0x1):_0x32bcde!=_0x235fb6&&(_0x3d1d09=!0x1);}),_0x3d1d09;}static[a0_0x4f0509(0x128)](_0x280b90,_0x5c072c,_0x24a9e0,_0x33d428){const _0x3a0999=a0_0x4f0509;let _0x182aed=ValueUtil['getParams'](_0x5c072c,_0x24a9e0);return ValueUtil[_0x3a0999(0x133)](_0x182aed)&&(_0x280b90[_0x24a9e0]=!0x0===_0x33d428?TermsUtil['t'](_0x182aed):_0x182aed),_0x280b90;}static[a0_0x4f0509(0x12b)](_0x1e9064,..._0x41da59){const _0x49e779=a0_0x4f0509;if(arguments[_0x49e779(0x130)]<=0x1)return;let _0xe22db1=_0x41da59[0x0];if(ValueUtil[_0x49e779(0x135)](_0x1e9064[_0xe22db1]))return;let _0x235990=_0x1e9064[_0xe22db1];return _0x41da59[_0x49e779(0x130)]>0x1?ValueUtil['getParams'](_0x235990,..._0x41da59[_0x49e779(0x139)](0x1)):_0x235990;}static[a0_0x4f0509(0x136)](_0x390533,_0x214b0b,..._0x3cfb2f){const _0xba99c4=a0_0x4f0509;return _0x214b0b=_0x214b0b||[],_0x3cfb2f=_0x3cfb2f||Object[_0xba99c4(0x127)](_0x390533),ValueUtil[_0xba99c4(0x133)](_0x3cfb2f)&&(_0x214b0b=_0x390533[_0xba99c4(0x138)]((_0x1056d1,_0x206fc9)=>{const _0x380a40=_0xba99c4;let _0x3c0945=_0x214b0b['length']>_0x206fc9?_0x214b0b[_0x206fc9]:{};return ValueUtil[_0x380a40(0x122)](_0x1056d1,_0x3c0945,_0x3cfb2f);})),_0x214b0b;}static[a0_0x4f0509(0x122)](_0x1af0bb,_0x3e5e24,..._0x43e4df){const _0x5c184b=a0_0x4f0509;return _0x3e5e24=_0x3e5e24||{},_0x43e4df=_0x43e4df||Object['keys'](_0x1af0bb),ValueUtil[_0x5c184b(0x133)](_0x43e4df)&&_0x43e4df[_0x5c184b(0x12d)](_0x3c1b97=>{_0x3e5e24[_0x3c1b97]=_0x1af0bb[_0x3c1b97];}),_0x3e5e24;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x5482(_0x5a505b,_0x463ccf){const _0x26e778=a0_0x26e7();return a0_0x5482=function(_0x5482d1,_0x385063){_0x5482d1=_0x5482d1-0x1ee;let _0x505903=_0x26e778[_0x5482d1];return _0x505903;},a0_0x5482(_0x5a505b,_0x463ccf);}(function(_0x104246,_0x58bdb4){const _0x4367b2=a0_0x5482,_0x573730=_0x104246();while(!![]){try{const _0x1204a6=parseInt(_0x4367b2(0x1f9))/0x1+parseInt(_0x4367b2(0x1f6))/0x2*(-parseInt(_0x4367b2(0x1f7))/0x3)+parseInt(_0x4367b2(0x1f4))/0x4*(parseInt(_0x4367b2(0x1f3))/0x5)+-parseInt(_0x4367b2(0x1f2))/0x6*(parseInt(_0x4367b2(0x1f8))/0x7)+parseInt(_0x4367b2(0x1f5))/0x8+-parseInt(_0x4367b2(0x1ee))/0x9*(-parseInt(_0x4367b2(0x1ef))/0xa)+parseInt(_0x4367b2(0x1f1))/0xb*(-parseInt(_0x4367b2(0x1f0))/0xc);if(_0x1204a6===_0x58bdb4)break;else _0x573730['push'](_0x573730['shift']());}catch(_0x56b2f7){_0x573730['push'](_0x573730['shift']());}}}(a0_0x26e7,0x847ed));function a0_0x26e7(){const _0x4bf066=['626fgdcyS','2919ZCJMAn','77wGdfQi','602013gXrAfe','111204HzITwY','380vkTpxR','11867868sdJpWJ','22YOsbRM','22008UbjOWD','1539095xUNJKo','12tzkyEI','6964624hhsYXJ'];a0_0x26e7=function(){return _0x4bf066;};return a0_0x26e7();}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
|
-
|
|
1
|
+
const a0_0x3e50eb=a0_0x4150;(function(_0xc084e1,_0x3e4192){const _0x412f4f=a0_0x4150,_0x1ba04e=_0xc084e1();while(!![]){try{const _0x40322a=-parseInt(_0x412f4f(0x1e2))/0x1+-parseInt(_0x412f4f(0x1da))/0x2*(-parseInt(_0x412f4f(0x1e8))/0x3)+parseInt(_0x412f4f(0x1e4))/0x4*(-parseInt(_0x412f4f(0x1e7))/0x5)+-parseInt(_0x412f4f(0x1ff))/0x6+parseInt(_0x412f4f(0x1e3))/0x7*(parseInt(_0x412f4f(0x1f9))/0x8)+parseInt(_0x412f4f(0x1f4))/0x9+parseInt(_0x412f4f(0x1fd))/0xa;if(_0x40322a===_0x3e4192)break;else _0x1ba04e['push'](_0x1ba04e['shift']());}catch(_0x416bc7){_0x1ba04e['push'](_0x1ba04e['shift']());}}}(a0_0x49ef,0x7a01a));import'@material/mwc-icon';import{html,LitElement}from'lit';import{connect}from'pwa-helpers';import{navigate,store}from'@operato/shell';function a0_0x4150(_0x12d553,_0x43fac4){const _0x49ef03=a0_0x49ef();return a0_0x4150=function(_0x415084,_0x5fe527){_0x415084=_0x415084-0x1d6;let _0x3baba4=_0x49ef03[_0x415084];return _0x3baba4;},a0_0x4150(_0x12d553,_0x43fac4);}import{ScrollbarStyles}from'@operato/styles';import{DynamicMenuLandscapeStyles}from'./dynamic-menu-landscape-styles';export class DynamicMenuLandscape extends connect(store)(LitElement){static get['styles'](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get[a0_0x3e50eb(0x1e9)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x3e50eb(0x1f3)](){const _0x23a53b=a0_0x3e50eb,{menus:_0x1a6b14=[],activeTopLevel:_0x13bd28,activeMenu:_0x9a582b}=this;return html`
|
|
2
2
|
<div id="wrap">
|
|
3
3
|
<ul>
|
|
4
|
-
${
|
|
5
|
-
<li ?active=${
|
|
6
|
-
<a href=${
|
|
7
|
-
${
|
|
4
|
+
${_0x1a6b14[_0x23a53b(0x1eb)](_0x31da82=>_0x23a53b(0x1fa)==_0x31da82['type']?html``:html`
|
|
5
|
+
<li ?active=${_0x31da82===_0x13bd28}>
|
|
6
|
+
<a href=${_0x31da82['path']||'#'}>
|
|
7
|
+
${_0x31da82['icon']?html`<mwc-icon>${_0x31da82['icon']}</mwc-icon>`:html``} ${_0x31da82[_0x23a53b(0x1de)]}
|
|
8
8
|
</a>
|
|
9
9
|
|
|
10
10
|
<ul submenus>
|
|
11
|
-
${
|
|
12
|
-
<li ?active=${
|
|
13
|
-
<a href=${
|
|
11
|
+
${_0x31da82[_0x23a53b(0x1ec)]?.[_0x23a53b(0x1eb)](_0x46463c=>html`
|
|
12
|
+
<li ?active=${_0x46463c===_0x9a582b}>
|
|
13
|
+
<a href=${_0x46463c[_0x23a53b(0x1fe)]||'#'}> ${_0x46463c['name']} </a>
|
|
14
14
|
</li>
|
|
15
15
|
`)}
|
|
16
16
|
</ul>
|
|
17
17
|
|
|
18
18
|
<div description>
|
|
19
|
-
${
|
|
19
|
+
${_0x31da82[_0x23a53b(0x1f7)]?html`<mwc-icon>${_0x31da82[_0x23a53b(0x1f7)]}</mwc-icon>`:html``} ${_0x31da82[_0x23a53b(0x1d8)]||''}
|
|
20
20
|
</div>
|
|
21
21
|
</li>
|
|
22
22
|
`)}
|
|
23
23
|
</ul>
|
|
24
24
|
</div>
|
|
25
|
-
`;}[
|
|
25
|
+
`;}[a0_0x3e50eb(0x1db)](){const _0x1be1eb=a0_0x3e50eb;this[_0x1be1eb(0x1f2)][_0x1be1eb(0x1d7)](_0x1be1eb(0x1fc))['addEventListener']('mousewheel',this[_0x1be1eb(0x1ef)][_0x1be1eb(0x1d9)](this),!0x1),this[_0x1be1eb(0x1f2)][_0x1be1eb(0x1e5)]('click',_0x2c3a88=>{const _0x5ce592=_0x1be1eb;if(_0x2c3a88[_0x5ce592(0x1f5)][_0x5ce592(0x1d6)]){_0x2c3a88[_0x5ce592(0x1e0)](),_0x2c3a88[_0x5ce592(0x1dc)]();let _0x15cd35=_0x2c3a88[_0x5ce592(0x1f5)][_0x5ce592(0x1d6)];return void this[_0x5ce592(0x1ee)](new CustomEvent('active-toplevel',{'bubbles':!0x0,'detail':this[_0x5ce592(0x1f8)]===_0x15cd35?void 0x0:_0x15cd35}));}let _0xdf3ac0=_0x2c3a88[_0x5ce592(0x1f5)][_0x5ce592(0x1ed)];_0xdf3ac0&&location[_0x5ce592(0x1ed)]===_0xdf3ac0&&navigate(_0xdf3ac0+_0x5ce592(0x201),!0x0);}),this['renderRoot'][_0x1be1eb(0x1e5)]('transitionstart',_0x130e0f=>{const _0x15feb6=_0x1be1eb;_0x130e0f[_0x15feb6(0x1f5)][_0x15feb6(0x1fb)]('settled');}),this[_0x1be1eb(0x1f2)][_0x1be1eb(0x1e5)](_0x1be1eb(0x200),_0x2ae633=>{const _0x3f5804=_0x1be1eb;_0x2ae633[_0x3f5804(0x1f5)][_0x3f5804(0x1f6)](_0x3f5804(0x1e1),'');});}[a0_0x3e50eb(0x1ef)](_0x5c905d){const _0x1dfb48=a0_0x3e50eb,_0x3e5c75=_0x5c905d[_0x1dfb48(0x1e6)];var _0x267162=Math[_0x1dfb48(0x1f1)](-0x1,Math[_0x1dfb48(0x202)](0x1,_0x5c905d[_0x1dfb48(0x1f0)]||-_0x5c905d[_0x1dfb48(0x1dd)]));_0x3e5c75[_0x1dfb48(0x1ea)]-=0xa*_0x267162,_0x5c905d[_0x1dfb48(0x1dc)]();}}customElements[a0_0x3e50eb(0x1df)](a0_0x3e50eb(0x203),DynamicMenuLandscape);function a0_0x49ef(){const _0x23f571=['transitionend','#force','min','dynamic-menu-landscape','submenu','querySelector','description','bind','78148qXgLqC','firstUpdated','preventDefault','detail','name','define','stopPropagation','settled','131290oyqtlG','40040yMShxJ','168HmUStg','addEventListener','currentTarget','3985wyzOFl','3jypRdK','properties','scrollLeft','map','menus','href','dispatchEvent','onWheelEvent','wheelDelta','max','renderRoot','render','7880292zCnkYu','target','setAttribute','icon','activeTopLevel','72EozTiu','group','removeAttribute','#wrap','3501910NeKYTp','path','3910986eVXeHm'];a0_0x49ef=function(){return _0x23f571;};return a0_0x49ef();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x422849=a0_0x1d6f;(function(_0x4ff0c4,_0x168358){var _0x22ce9c=a0_0x1d6f,_0x521a0f=_0x4ff0c4();while(!![]){try{var _0x250be8=-parseInt(_0x22ce9c(0x1c0))/0x1*(-parseInt(_0x22ce9c(0x1c2))/0x2)+-parseInt(_0x22ce9c(0x1b1))/0x3+parseInt(_0x22ce9c(0x1c4))/0x4*(parseInt(_0x22ce9c(0x1ab))/0x5)+parseInt(_0x22ce9c(0x1c9))/0x6*(parseInt(_0x22ce9c(0x1c1))/0x7)+-parseInt(_0x22ce9c(0x1a0))/0x8*(-parseInt(_0x22ce9c(0x1c8))/0x9)+parseInt(_0x22ce9c(0x1a6))/0xa+-parseInt(_0x22ce9c(0x1b4))/0xb;if(_0x250be8===_0x168358)break;else _0x521a0f['push'](_0x521a0f['shift']());}catch(_0x101ab8){_0x521a0f['push'](_0x521a0f['shift']());}}}(a0_0x252d,0x9e0aa));function a0_0x1d6f(_0x1d015d,_0x4ff259){var _0x252d3d=a0_0x252d();return a0_0x1d6f=function(_0x1d6f7b,_0x16ee87){_0x1d6f7b=_0x1d6f7b-0x19f;var _0x51eda8=_0x252d3d[_0x1d6f7b];return _0x51eda8;},a0_0x1d6f(_0x1d015d,_0x4ff259);}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(_0x160266,_0x5971c6){var _0x4d93f5=a0_0x1d6f;return _0x160266[_0x4d93f5(0x1bb)]?.[_0x4d93f5(0x1c5)]('?')[0x0]===_0x5971c6||_0x160266[_0x4d93f5(0x1b7)]&&_0x4d93f5(0x1ad)==typeof _0x160266['active']&&_0x160266[_0x4d93f5(0x1b7)][_0x4d93f5(0x1a7)](_0x160266,{'path':_0x5971c6});}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_0x422849(0x1a4)](){return[ScrollbarStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -27,18 +27,18 @@ var a0_0x39d41e=a0_0x38d5;function a0_0x3b01(){var _0x1b056a=['function','active
|
|
|
27
27
|
dynamic-menu-landscape {
|
|
28
28
|
flex: 1;
|
|
29
29
|
}
|
|
30
|
-
`];}[
|
|
30
|
+
`];}[a0_0x422849(0x1c6)](){var _0x4e7b94=a0_0x422849;return html`
|
|
31
31
|
<slot name="head"></slot>
|
|
32
|
-
${
|
|
33
|
-
.menus=${this[
|
|
34
|
-
.activeTopLevel=${this[
|
|
35
|
-
.activeMenu=${this[
|
|
36
|
-
.path=${this[
|
|
32
|
+
${_0x4e7b94(0x1b6)!==this[_0x4e7b94(0x1bf)]?html`<dynamic-menu-portrait
|
|
33
|
+
.menus=${this[_0x4e7b94(0x1a3)]}
|
|
34
|
+
.activeTopLevel=${this[_0x4e7b94(0x19f)]}
|
|
35
|
+
.activeMenu=${this[_0x4e7b94(0x1a1)]}
|
|
36
|
+
.path=${this[_0x4e7b94(0x1a5)]}
|
|
37
37
|
></dynamic-menu-portrait>`:html`<dynamic-menu-landscape
|
|
38
|
-
.menus=${this[
|
|
39
|
-
.activeTopLevel=${this[
|
|
40
|
-
.activeMenu=${this[
|
|
41
|
-
.path=${this[
|
|
38
|
+
.menus=${this[_0x4e7b94(0x1a3)]}
|
|
39
|
+
.activeTopLevel=${this[_0x4e7b94(0x19f)]}
|
|
40
|
+
.activeMenu=${this[_0x4e7b94(0x1a1)]}
|
|
41
|
+
.path=${this['_path']}
|
|
42
42
|
></dynamic-menu-landscape>`}
|
|
43
43
|
<slot name="tail"></slot>
|
|
44
|
-
`;}[
|
|
44
|
+
`;}[a0_0x422849(0x1a8)](){var _0x40f83b=a0_0x422849;this[_0x40f83b(0x1b0)][_0x40f83b(0x1a9)](_0x40f83b(0x1be),_0x3ad7c5=>{var _0x4fc173=_0x40f83b;_0x3ad7c5[_0x4fc173(0x1b9)](),_0x3ad7c5[_0x4fc173(0x1aa)](),this[_0x4fc173(0x19f)]=_0x3ad7c5[_0x4fc173(0x1ba)];});}[a0_0x422849(0x1bd)](_0x2cca56){var _0x1b0475=a0_0x422849;(_0x2cca56[_0x1b0475(0x1ca)](_0x1b0475(0x1a3))||_0x2cca56['has'](_0x1b0475(0x1c3))||_0x2cca56['has'](_0x1b0475(0x1b3)))&&this['_findActivePage'](),_0x2cca56[_0x1b0475(0x1ca)](_0x1b0475(0x1bf))&&(_0x1b0475(0x1b2)==this['orientation']?this[_0x1b0475(0x1a2)](_0x1b0475(0x1b6)):this['setAttribute']('landscape',!0x0)),_0x2cca56['has'](_0x1b0475(0x1ae))&&this[_0x1b0475(0x1c7)](this[_0x1b0475(0x1ae)]);}[a0_0x422849(0x1bc)](_0x1c60ed){var _0x567949=a0_0x422849;this[_0x567949(0x1c3)]=_0x1c60ed[_0x567949(0x1b5)][_0x567949(0x1c3)],this[_0x567949(0x1b3)]=_0x1c60ed[_0x567949(0x1b5)][_0x567949(0x1b3)],this[_0x567949(0x1a3)]=_0x1c60ed[_0x567949(0x1ac)]['menus']||[],this[_0x567949(0x1ae)]=_0x1c60ed[_0x567949(0x1ac)]['slotTemplate'];}[a0_0x422849(0x1b8)](){var _0xd42e1b=a0_0x422849,_0x4b00f5,_0x4d248b=this[_0xd42e1b(0x1b3)]?this[_0xd42e1b(0x1c3)]+'/'+this['resourceId']:this[_0xd42e1b(0x1c3)],_0x936dad=this[_0xd42e1b(0x1a3)]||[];this[_0xd42e1b(0x19f)]=_0x936dad[_0xd42e1b(0x1cb)](_0x4a13ca=>isActiveMenu(_0x4a13ca,_0x4d248b)?(_0x4b00f5=_0x4a13ca,!0x0):_0x4a13ca[_0xd42e1b(0x1a3)]?!!(_0x4b00f5=_0x4a13ca[_0xd42e1b(0x1a3)][_0xd42e1b(0x1cb)](_0x21cd1e=>isActiveMenu(_0x21cd1e,_0x4d248b))):void 0x0),this['_path']=_0x4d248b,this[_0xd42e1b(0x1a1)]=_0x4b00f5||this[_0xd42e1b(0x19f)];}}customElements['define'](a0_0x422849(0x1af),DynamicMenuPart);function a0_0x252d(){var _0x5408a8=['firstUpdated','addEventListener','preventDefault','10sLRWZT','metaUI','function','slotTemplate','dynamic-menu-part','renderRoot','513699WTHuZr','portrait','resourceId','26054908IngAlE','route','landscape','active','_findActivePage','stopPropagation','detail','path','stateChanged','updated','active-toplevel','orientation','1GvLwAA','49goQBMK','352302alOCNn','page','1739072wRowLv','split','render','replaceChild','941049tGHGaX','873894nPdqwe','has','find','_activeTopLevel','16KUXkrP','_activeMenu','removeAttribute','menus','styles','_path','9128470Ysvgyu','call'];a0_0x252d=function(){return _0x5408a8;};return a0_0x252d();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a0_0x159f(_0x30edda,_0x59a136){const _0x2e43ce=a0_0x2e43();return a0_0x159f=function(_0x159f3d,_0x3d36d7){_0x159f3d=_0x159f3d-0xac;let _0x2f3f7b=_0x2e43ce[_0x159f3d];return _0x2f3f7b;},a0_0x159f(_0x30edda,_0x59a136);}(function(_0x371bd4,_0x31b64d){const _0x43c672=a0_0x159f,_0x35ca05=_0x371bd4();while(!![]){try{const _0x1f7df6=-parseInt(_0x43c672(0xb4))/0x1+-parseInt(_0x43c672(0xb2))/0x2+-parseInt(_0x43c672(0xb3))/0x3+-parseInt(_0x43c672(0xae))/0x4+parseInt(_0x43c672(0xb1))/0x5+parseInt(_0x43c672(0xad))/0x6*(parseInt(_0x43c672(0xb0))/0x7)+-parseInt(_0x43c672(0xac))/0x8*(-parseInt(_0x43c672(0xaf))/0x9);if(_0x1f7df6===_0x31b64d)break;else _0x35ca05['push'](_0x35ca05['shift']());}catch(_0x48dd39){_0x35ca05['push'](_0x35ca05['shift']());}}}(a0_0x2e43,0xbc399));function a0_0x2e43(){const _0x10ba18=['3748215SkCqLs','2863916WrMRxF','1362912iTeOIT','795185lnniXp','21653992GOOlBP','54VqLlhE','2549944QTQdTJ','9yvnGbY','492730TIYXvu'];a0_0x2e43=function(){return _0x10ba18;};return a0_0x2e43();}import{css}from'lit';export const DynamicMenuPortraitStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -125,4 +125,4 @@
|
|
|
125
125
|
font: bold 14px var(--theme-font);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
`;
|
|
128
|
+
`;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x3d2f(_0x11be81,_0x49d7f3){const _0x18ef23=a0_0x18ef();return a0_0x3d2f=function(_0x3d2f61,_0x1c61a7){_0x3d2f61=_0x3d2f61-0xa8;let _0xd9b40b=_0x18ef23[_0x3d2f61];return _0xd9b40b;},a0_0x3d2f(_0x11be81,_0x49d7f3);}const a0_0x274c25=a0_0x3d2f;(function(_0x4976e7,_0x2211d5){const _0x324b67=a0_0x3d2f,_0x3c5bcf=_0x4976e7();while(!![]){try{const _0x347952=-parseInt(_0x324b67(0xbd))/0x1*(parseInt(_0x324b67(0xc0))/0x2)+parseInt(_0x324b67(0xc7))/0x3+-parseInt(_0x324b67(0xc2))/0x4+parseInt(_0x324b67(0xb7))/0x5*(-parseInt(_0x324b67(0xc9))/0x6)+parseInt(_0x324b67(0xbb))/0x7+-parseInt(_0x324b67(0xb5))/0x8+parseInt(_0x324b67(0xb6))/0x9;if(_0x347952===_0x2211d5)break;else _0x3c5bcf['push'](_0x3c5bcf['shift']());}catch(_0x51c9d4){_0x3c5bcf['push'](_0x3c5bcf['shift']());}}}(a0_0x18ef,0xa74b3));function a0_0x18ef(){const _0x2941e9=['dispatchEvent','settled','length','addEventListener','menu','renderRoot','transitionstart','removeAttribute','setAttribute','4585400mIydpD','5828283apqxWU','5rMdvdv','activeTopLevel','styles','group','3514651UayTqn','renderMenus','297099LIOZmA','dynamic-menu-portrait','stopPropagation','2KiiiOL','call','2602344yJLPyh','#force','[menu]','click','transitionend','3793599WXmbFT','render','1248708GkVjRC','function','target','closest','href','define'];a0_0x18ef=function(){return _0x2941e9;};return a0_0x18ef();}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_0x274c25(0xb9)](){return[ScrollbarStyles,DynamicMenuPortraitStyles];}static get['properties'](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x274c25(0xbc)](_0x22fc4e,_0x13d875,_0x495242){return html`
|
|
2
2
|
<ul>
|
|
3
|
-
${
|
|
4
|
-
<li ?active=${
|
|
5
|
-
<a href=${
|
|
6
|
-
${
|
|
7
|
-
<mwc-icon>${
|
|
8
|
-
${
|
|
3
|
+
${_0x22fc4e['map'](_0x3fb11c=>{const _0x2d29cf=a0_0x3d2f;var {type:_0x2392b9,active:_0x5a57c4,path:_0x5654b5,name:_0xe5b655,badge:_0xe4ed5b,icon:_0xc814b3,menus:_0x5a6355}=_0x3fb11c;return _0x5a57c4=!(!_0x5a57c4||'function'!=typeof _0x5a57c4)&&_0x5a57c4[_0x2d29cf(0xc1)](_0x3fb11c,{'path':this['path']}),_0xe4ed5b=_0x2d29cf(0xca)==typeof _0xe4ed5b?_0xe4ed5b[_0x2d29cf(0xc1)](_0x3fb11c):_0xe4ed5b??!0x1,_0x2d29cf(0xba)==_0x2392b9?html`<li group-label>${_0xe5b655}</li>`:html`
|
|
4
|
+
<li ?active=${_0x13d875?_0x3fb11c===_0x13d875:_0x5a57c4} .menu=${_0x3fb11c} menu>
|
|
5
|
+
<a href=${_0x5654b5||'#'}>
|
|
6
|
+
${_0x5a6355?.[_0x2d29cf(0xae)]>0x0?html` <mwc-icon submenu-button></mwc-icon> `:html``}
|
|
7
|
+
<mwc-icon>${_0xc814b3}</mwc-icon>
|
|
8
|
+
${_0xe5b655} ${!0x1!==_0xe4ed5b?html`<div badge>${_0xe4ed5b}</div>`:html``}
|
|
9
9
|
</a>
|
|
10
|
-
${
|
|
10
|
+
${_0x5a6355&&this[_0x2d29cf(0xbc)](_0x5a6355,_0x495242)}
|
|
11
11
|
</li>
|
|
12
12
|
`;})}
|
|
13
13
|
</ul>
|
|
14
|
-
`;}[
|
|
14
|
+
`;}[a0_0x274c25(0xc8)](){const _0x4e1116=a0_0x274c25,{menus:_0x2272bd,activeTopLevel:_0x204825,activeMenu:_0x4c1dfa}=this;return this[_0x4e1116(0xbc)](_0x2272bd,_0x204825,_0x4c1dfa);}['firstUpdated'](){const _0x31d483=a0_0x274c25;this[_0x31d483(0xb1)][_0x31d483(0xaf)](_0x31d483(0xc5),_0x5380bc=>{const _0x58281b=_0x31d483,_0x30dc08=_0x5380bc[_0x58281b(0xa8)][_0x58281b(0xa9)](_0x58281b(0xc4));if(_0x30dc08?.[_0x58281b(0xb0)]){let _0x732986=_0x30dc08[_0x58281b(0xb0)];_0x732986['path']||(_0x5380bc[_0x58281b(0xbf)](),_0x5380bc['preventDefault']()),this[_0x58281b(0xac)](new CustomEvent('active-toplevel',{'bubbles':!0x0,'detail':this[_0x58281b(0xb8)]===_0x732986?void 0x0:_0x732986}));}let _0x111e2d=_0x5380bc[_0x58281b(0xa8)][_0x58281b(0xaa)];_0x111e2d&&location[_0x58281b(0xaa)]===_0x111e2d&&navigate(_0x111e2d+_0x58281b(0xc3),!0x0);}),this['renderRoot']['addEventListener'](_0x31d483(0xb2),_0x43e583=>{const _0x5d4559=_0x31d483;_0x43e583['target'][_0x5d4559(0xb3)](_0x5d4559(0xad));}),this[_0x31d483(0xb1)]['addEventListener'](_0x31d483(0xc6),_0x41cf7a=>{const _0x5f05ec=_0x31d483;_0x41cf7a[_0x5f05ec(0xa8)][_0x5f05ec(0xb4)]('settled','');});}}customElements[a0_0x274c25(0xab)](a0_0x274c25(0xbe),DynamicMenuPortrait);
|