@things-factory/meta-ui 6.0.132 → 6.0.133
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 +9 -9
- package/client/component/filter/filter-grist-resource-code-select.js +10 -10
- package/client/component/grist/editor/ox-grist-editor-resource-code-selector.js +9 -9
- 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-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 +2 -2
- 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-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 +9 -9
- 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/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/translations/ja.json +75 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x20ba37=a0_0x3b35;(function(_0x4c7ba4,_0x2c89a3){const _0x2766a4=a0_0x3b35,_0xe69758=_0x4c7ba4();while(!![]){try{const _0x53cc53=parseInt(_0x2766a4(0x1a5))/0x1*(-parseInt(_0x2766a4(0x1cb))/0x2)+-parseInt(_0x2766a4(0x1b6))/0x3*(parseInt(_0x2766a4(0x206))/0x4)+-parseInt(_0x2766a4(0x1eb))/0x5*(-parseInt(_0x2766a4(0x1ed))/0x6)+parseInt(_0x2766a4(0x21c))/0x7*(parseInt(_0x2766a4(0x1d9))/0x8)+-parseInt(_0x2766a4(0x219))/0x9+-parseInt(_0x2766a4(0x1d8))/0xa*(parseInt(_0x2766a4(0x1e5))/0xb)+-parseInt(_0x2766a4(0x1ae))/0xc*(-parseInt(_0x2766a4(0x1ab))/0xd);if(_0x53cc53===_0x2c89a3)break;else _0xe69758['push'](_0xe69758['shift']());}catch(_0x4b6201){_0xe69758['push'](_0xe69758['shift']());}}}(a0_0x4427,0x98839));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_0x240a15 from'graphql-tag';function a0_0x4427(){const _0x2053f1=['details','columns','records','info','selected','createdAt','arrangeMenuRoutes','deleteListByIds','SCREEN','runScenario','5279472cJhvGK','cuFlag','menus','1224139PbHNeu','callScenario','searchMenuGridPersnalTemplate','hiddenFlag','category','confirm','dirtyRecords','split','group','noteq','searchMyDynamicMenus','myDynamicMenus','name','searchByPagination','HOME','rank','6962HuvKni','object','error','badge','errors','todo-list','26JjUsQj','exportableData','routing','2815392ubkCPq','question','getCodeSelectorData','includes','__dirtyfields__','gridPersonalizeTemplates','test','gutter','675RyUgVx','parent','showAlertPopup','type','length','HIDDEN-PAGE','tMenu','fetch','total','numberOfApprovalPendings','reduce','text.are_you_sure','patchesForUpdateMultiple','\x0a\x20\x20\x20\x20\x20\x20','map','\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','imex','sort','extensions','children','code','88zyILko','showGraphqlException','checkClientError','message','button.','delete','data','showToast','description','getSelectedIdList','text.there_is_nothing_to_delete','deleteListByGristSelected','resourceUrl','345150hxbPoG','8iqGzEA','getWorkCodeByName','forEach','filter','findIndex','find','undefined','__dirty__','tText','updatedAt','draft-list','path','33SXAmCF','isArray','isEmpty','record','buildArgs','numberOfToDos','35kWZvOP','unshift','954552Memksi','isNotEmpty','__origin__','__selected__','push','hidden','_config','parse','cancel','query','key','success\x20to\x20process','updater','approval-pending-list','menuType','dispatch','networkError','items','active','GROUP','showGraphqlErrorResponse','text.NOTHING_CHANGED','success\x20to\x20save','result','workCodeByName','2428vMQGQk','routingType','updateMultiple','iconPath','__seq__','value','MENU','display','splice'];a0_0x4427=function(){return _0x2053f1;};return a0_0x4427();}import{ValueUtil}from'./value-util';import{asyncReplace}from'lit/directives/async-replace.js';import a0_0xfe369d from'i18next';function a0_0x3b35(_0x54f1cf,_0x2a32a2){const _0x442774=a0_0x4427();return a0_0x3b35=function(_0x3b35e8,_0x17cf5c){_0x3b35e8=_0x3b35e8-0x19f;let _0x5c9244=_0x442774[_0x3b35e8];return _0x5c9244;},a0_0x3b35(_0x54f1cf,_0x2a32a2);}import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';export class ServiceUtil{static async['codeItems'](_0x478453){const _0x204ba9=a0_0x3b35;if(Array[_0x204ba9(0x1e6)](_0x478453))return _0x478453[_0x204ba9(0x1c4)](_0x1f3547=>_0x204ba9(0x1a6)==typeof _0x1f3547?{'name':_0x1f3547[_0x204ba9(0x20b)],'description':_0x1f3547[_0x204ba9(0x20d)]}:{'name':_0x1f3547,'description':_0x1f3547});let _0xd1bb27=await ServiceUtil[_0x204ba9(0x1da)](_0x478453);return _0xd1bb27&&_0xd1bb27['length']>0x0?_0xd1bb27:await getCodeByName(_0x478453);}static async[a0_0x20ba37(0x1da)](_0x1a3d34){const _0x341291=a0_0x20ba37,_0x2bd033=await client[_0x341291(0x1f6)]({'query':a0_0x240a15`
|
|
2
2
|
query workCodeByName($name: String!) {
|
|
3
3
|
workCodeByName(name: $name) {
|
|
4
4
|
details {
|
|
@@ -8,32 +8,32 @@ const a0_0x3a3cd1=a0_0x3469;(function(_0x3026ff,_0x6b9954){const _0x128381=a0_0x
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
`,'variables':{'name':
|
|
11
|
+
`,'variables':{'name':_0x1a3d34},'context':gqlContext()});return!_0x2bd033['errors']&&_0x2bd033['data'][_0x341291(0x205)]&&_0x2bd033['data'][_0x341291(0x205)][_0x341291(0x20f)]?_0x2bd033[_0x341291(0x1d1)][_0x341291(0x205)]['details'][_0x341291(0x1c7)]((_0x26baad,_0x37a7a1)=>_0x26baad['rank']-_0x37a7a1[_0x341291(0x1a4)]):[];}static async[a0_0x20ba37(0x1b0)](_0x2dc28f){const _0x1eda5b=a0_0x20ba37;let _0x44c9ff=(await ServiceUtil['codeItems'](_0x2dc28f))[_0x1eda5b(0x1c4)](_0x145789=>({'value':_0x145789[_0x1eda5b(0x1a1)],'display':_0x145789[_0x1eda5b(0x1d3)]}));return _0x44c9ff[_0x1eda5b(0x1ec)]({'value':'','display':''}),_0x44c9ff;}static async['getCodeByScenario'](_0x25bede,_0x4402d5){const _0x420bd0=a0_0x20ba37;let _0x596a4d=await ServiceUtil['callScenario'](null,_0x25bede,_0x4402d5);return _0x596a4d[_0x420bd0(0x1ec)]({'value':'','display':''}),_0x596a4d[_0x420bd0(0x1c4)](_0x469e3c=>({'value':_0x469e3c['name'],'display':_0x469e3c[_0x420bd0(0x1d3)]}));}static async['getCodeByEntity']({queryName:_0xb7ac4,codeField:_0x5e8ce6='name',dispField:_0x27ee4a=a0_0x20ba37(0x1d3),filters:_0x290dd4=[],sorters:_0x137a74=[]}){const _0x3f19e3=a0_0x20ba37;let _0x4df6f7=_0x3f19e3(0x1c3)+_0x5e8ce6+'\x0a\x20\x20\x20\x20\x20\x20'+_0x27ee4a+'\x0a\x20\x20\x20\x20',_0x15a109=await ServiceUtil[_0x3f19e3(0x1a2)](_0xb7ac4,_0x290dd4,_0x137a74,0x0,0x0,_0x4df6f7),_0x1c74fd=[{'value':'','display':''}];return _0x15a109[_0x3f19e3(0x211)][_0x3f19e3(0x1db)](_0x23557a=>{const _0xecfb1c=_0x3f19e3;_0x1c74fd[_0xecfb1c(0x1f1)]({'value':_0x23557a[_0x5e8ce6],'display':_0x23557a[_0x27ee4a]});}),_0x1c74fd;}static async[a0_0x20ba37(0x1a0)](){const _0x2d3240=a0_0x20ba37;let _0x638b4b=await ServiceUtil[_0x2d3240(0x19f)]();return null!=_0x638b4b?ServiceUtil[_0x2d3240(0x215)](_0x638b4b):null;}static async[a0_0x20ba37(0x21e)](_0x4dcd25){const _0x3a63f5=a0_0x20ba37;let _0x339a0d=[{'name':'menu.id','operator':'eq','value':_0x4dcd25}],_0x1ff753=await ServiceUtil['searchByPagination'](_0x3a63f5(0x1b3),_0x339a0d,[],0x0,0x0,'id,template');return 0x0==_0x1ff753[_0x3a63f5(0x1be)]?{}:{'id':_0x1ff753['records'][0x0]['id'],'template':JSON[_0x3a63f5(0x1f4)](_0x1ff753[_0x3a63f5(0x211)][0x0]['template'])};}static[a0_0x20ba37(0x215)](_0x560daa){const _0x44ab5c=a0_0x20ba37;let _0x1893e1=[];_0x560daa[_0x44ab5c(0x1db)](_0x20c4b4=>{const _0x4c3a4e=_0x44ab5c;_0x1893e1[_0x4c3a4e(0x1f1)](_0x20c4b4),_0x20c4b4[_0x4c3a4e(0x1c9)]&&(_0x20c4b4[_0x4c3a4e(0x1c9)][_0x4c3a4e(0x1c7)](function(_0x2a76cf,_0x484022){const _0x31f6ba=_0x4c3a4e;return _0x2a76cf['rank']-_0x484022[_0x31f6ba(0x1a4)];}),_0x20c4b4[_0x4c3a4e(0x1c9)][_0x4c3a4e(0x1db)](_0x1e7851=>{const _0x262492=_0x4c3a4e;0x1!=_0x1e7851[_0x262492(0x21f)]&&(_0x1e7851[_0x262492(0x1b7)]=_0x20c4b4,_0x1893e1[_0x262492(0x1f1)](_0x1e7851));}));});let _0x122a75=_0x1893e1[_0x44ab5c(0x1c4)](_0x4cebc3=>{const _0xadffe3=_0x44ab5c;if(_0xadffe3(0x200)==_0x4cebc3[_0xadffe3(0x1fb)]||_0xadffe3(0x20c)==_0x4cebc3[_0xadffe3(0x1fb)]){let _0x468cb6={'id':_0x4cebc3['id'],'parent':!0x0,'name':TermsUtil['tMenu'](_0x4cebc3[_0xadffe3(0x1a1)]),'icon':_0x4cebc3[_0xadffe3(0x209)],'type':'GROUP'==_0x4cebc3[_0xadffe3(0x1fb)]?_0xadffe3(0x224):'','menus':[]};return _0x4cebc3[_0xadffe3(0x1ad)]&&(_0x468cb6[_0xadffe3(0x1e4)]=_0x4cebc3[_0xadffe3(0x1ad)]),_0x468cb6;}return{'id':'0'};})[_0x44ab5c(0x1dc)](_0x1cc3fe=>'0'!=_0x1cc3fe['id']),_0x4eea59=_0x1893e1['map'](_0x32c2ca=>{const _0x540d5d=_0x44ab5c;if(_0x540d5d(0x217)==_0x32c2ca['menuType']||_0x540d5d(0x1bb)==_0x32c2ca[_0x540d5d(0x1fb)]){let _0x13e51a=_0x122a75[_0x540d5d(0x1de)](_0x465fe5=>_0x465fe5['id']==_0x32c2ca['parent']['id']);if(_0x13e51a){let _0x29a8df=TermsUtil[_0x540d5d(0x1bc)](_0x32c2ca[_0x540d5d(0x1a1)]);return'SCREEN'==_0x32c2ca['menuType']&&_0x13e51a['menus']['push']({'id':_0x32c2ca['id'],'name':_0x29a8df,'path':_0x32c2ca[_0x540d5d(0x1ad)],'icon':_0x32c2ca['iconPath']}),{'id':_0x32c2ca['id'],'parent':!0x1,'parent_id':_0x13e51a['id'],'title':_0x29a8df,'tagname':_0x32c2ca['category'],'page':_0x32c2ca[_0x540d5d(0x1ad)],'template':_0x32c2ca['resourceUrl'],'routing_type':_0x32c2ca[_0x540d5d(0x207)]};}return{'id':'0'};}return _0x540d5d(0x1a3)==_0x32c2ca[_0x540d5d(0x1fb)]?{'id':_0x32c2ca['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil[_0x540d5d(0x1bc)](_0x32c2ca[_0x540d5d(0x1a1)]),'tagname':_0x32c2ca[_0x540d5d(0x220)],'page':_0x32c2ca[_0x540d5d(0x1ad)],'template':_0x32c2ca[_0x540d5d(0x1d7)],'routing_type':_0x32c2ca['routingType']}:{'id':'0'};})[_0x44ab5c(0x1dc)](_0x35f788=>null!=_0x35f788&&'0'!=_0x35f788['id']);_0x122a75[_0x44ab5c(0x1dc)](_0x50f05e=>_0x44ab5c(0x224)==_0x50f05e['type']&&_0x50f05e['menus']&&_0x50f05e[_0x44ab5c(0x21b)]['length']>0x0)['forEach'](_0xc8d278=>{const _0x14e0e6=_0x44ab5c;let _0x10375e=_0x122a75[_0x14e0e6(0x1dd)](_0x21d4c0=>_0x21d4c0['id']==_0xc8d278['id'])+0x1;_0x122a75[_0x14e0e6(0x20e)](_0x10375e,0x0,..._0xc8d278['menus']);});let _0x3c427f=0x0;return _0x122a75[_0x44ab5c(0x1db)](_0x254e1e=>{const _0x555cb1=_0x44ab5c;_0x555cb1(0x1aa)==_0x254e1e[_0x555cb1(0x1e4)]?(_0x3c427f++,_0x254e1e['badge']=()=>asyncReplace(generateActivitySummary(_0x555cb1(0x1ea))),_0x254e1e['active']=({path:_0x345257})=>/^activity\//[_0x555cb1(0x1b4)](_0x345257)):_0x555cb1(0x1fa)==_0x254e1e['path']?(_0x3c427f++,_0x254e1e[_0x555cb1(0x1a8)]=()=>asyncReplace(generateActivitySummary(_0x555cb1(0x1bf))),_0x254e1e[_0x555cb1(0x1ff)]=({path:_0x556080})=>/^activity\//[_0x555cb1(0x1b4)](_0x556080)):_0x555cb1(0x1e3)==_0x254e1e[_0x555cb1(0x1e4)]&&(_0x3c427f++,_0x254e1e['badge']=()=>asyncReplace(generateActivitySummary('numberOfDrafts')));}),_0x3c427f>0x0&&startSubscribeActivitySummary(),{'menus':_0x122a75,'routes':_0x4eea59};}static async[a0_0x20ba37(0x19f)](){const _0x3ba17a=a0_0x20ba37;let _0xfea964=await ServiceUtil[_0x3ba17a(0x1a2)](_0x3ba17a(0x21b),[{'name':'hiddenFlag','operator':_0x3ba17a(0x225),'value':!0x0},{'name':_0x3ba17a(0x1fb),'operator':'in','value':['HOME',_0x3ba17a(0x20c),_0x3ba17a(0x200)]}],[{'name':'rank'}],0x0,0x0,_0x3ba17a(0x1c5));return _0xfea964?_0xfea964[_0x3ba17a(0x211)]:[];}static async[a0_0x20ba37(0x201)](_0x10f6f3){const _0x51180d=a0_0x20ba37;if(_0x10f6f3[_0x51180d(0x1a9)]&&_0x10f6f3[_0x51180d(0x1a9)][_0x51180d(0x1ba)]>0x0){let _0x594cde=_0x10f6f3[_0x51180d(0x1a9)][0x0],_0x5f4388=_0x594cde[_0x51180d(0x1ce)],_0x281639=_0x594cde[_0x51180d(0x1ce)];_0x594cde['extensions']&&(_0x281639=_0x594cde[_0x51180d(0x1c8)][_0x51180d(0x1ca)]),await UiUtil[_0x51180d(0x1b8)](_0x281639,_0x5f4388,_0x51180d(0x1a7),_0x51180d(0x221));}}static async[a0_0x20ba37(0x1cc)](_0x4e36a1){const _0x2d247e=a0_0x20ba37;_0x4e36a1&&(_0x4e36a1[_0x2d247e(0x1fd)]&&_0x4e36a1[_0x2d247e(0x1fd)]['result']?await ServiceUtil[_0x2d247e(0x201)](_0x4e36a1[_0x2d247e(0x1fd)][_0x2d247e(0x204)]):await UiUtil[_0x2d247e(0x1b8)]('Graphql\x20Error',_0x4e36a1['message'],_0x2d247e(0x1a7),_0x2d247e(0x221)));}static async[a0_0x20ba37(0x1ac)](_0x212182,_0x49d418,_0x176f78){const _0x173e31=a0_0x20ba37;var _0x5ee2c5=_0x176f78[_0x173e31(0x1f3)]['columns']['filter'](_0x73362a=>_0x173e31(0x1b5)!==_0x73362a['type']&&void 0x0!==_0x73362a['record']&&void 0x0!==_0x73362a['imex']&&!0x0!==_0x73362a[_0x173e31(0x1f2)])['map'](_0x47d0cf=>_0x47d0cf[_0x173e31(0x1c6)]),_0x47f3f9=_0x176f78[_0x173e31(0x1d1)]['records'][_0x173e31(0x1c4)](_0x6ee720=>({..._0x176f78[_0x173e31(0x1f3)][_0x173e31(0x210)][_0x173e31(0x1dc)](_0x8a072e=>_0x173e31(0x1b5)!==_0x8a072e[_0x173e31(0x1b9)]&&void 0x0!==_0x8a072e[_0x173e31(0x1e8)]&&void 0x0!==_0x8a072e[_0x173e31(0x1c6)]&&!0x0!==_0x8a072e[_0x173e31(0x1f2)])[_0x173e31(0x1c0)]((_0x2d251e,_0x22502c)=>(_0x2d251e[_0x22502c[_0x173e31(0x1c6)][_0x173e31(0x1f7)]]=_0x22502c[_0x173e31(0x1c6)][_0x173e31(0x1f7)][_0x173e31(0x223)]('.')['reduce']((_0x3c52f1,_0x1bf155)=>_0x3c52f1&&_0x173e31(0x1df)!==_0x3c52f1[_0x1bf155]?_0x3c52f1[_0x1bf155]:void 0x0,_0x6ee720),_0x2d251e),{})}));if(!_0x212182)return{'header':_0x5ee2c5,'data':_0x47f3f9};store[_0x173e31(0x1fc)]({'type':EXPORT,'exportable':{'extension':'xlsx','name':_0x49d418,'data':{'header':_0x5ee2c5,'data':_0x47f3f9}}});}static async[a0_0x20ba37(0x1a2)](_0x43c612,_0x1a6e7a,_0x4e7fc1,_0x41dc87,_0x3d7ade,_0x2fe2db){const _0x26a3d7=a0_0x20ba37;try{const _0x4b5abf=await client[_0x26a3d7(0x1f6)]({'query':a0_0x240a15`
|
|
12
12
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
13
|
-
${
|
|
13
|
+
${_0x43c612}(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
14
14
|
items {
|
|
15
|
-
${
|
|
15
|
+
${_0x2fe2db}
|
|
16
16
|
}
|
|
17
17
|
total
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,'variables':{'filters':
|
|
20
|
+
`,'variables':{'filters':_0x1a6e7a,'sortings':_0x4e7fc1,'pagination':{'page':_0x41dc87,'limit':_0x3d7ade}}});if(!_0x4b5abf[_0x26a3d7(0x1a9)])return{'records':_0x4b5abf[_0x26a3d7(0x1d1)][_0x43c612][_0x26a3d7(0x1fe)],'total':_0x4b5abf[_0x26a3d7(0x1d1)][_0x43c612][_0x26a3d7(0x1be)]};ServiceUtil[_0x26a3d7(0x201)](_0x4b5abf);}catch(_0x1a5cec){ServiceUtil[_0x26a3d7(0x1cc)](_0x1a5cec);}return null;}static async['findOne'](_0x24aa82,_0x158900,_0x2c589b){const _0x47589f=a0_0x20ba37;try{let _0x318617=await client[_0x47589f(0x1f6)]({'query':a0_0x240a15`
|
|
21
21
|
query ($id: String!) {
|
|
22
|
-
${
|
|
23
|
-
${
|
|
22
|
+
${_0x24aa82}(id: $id) {
|
|
23
|
+
${_0x2c589b}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,'variables':{'id':
|
|
26
|
+
`,'variables':{'id':_0x158900}});if(!_0x318617[_0x47589f(0x1a9)])return _0x318617['data'][_0x24aa82]||{};ServiceUtil['showGraphqlErrorResponse'](_0x318617);}catch(_0x199f01){ServiceUtil[_0x47589f(0x1cc)](_0x199f01);}return null;}static[a0_0x20ba37(0x1d4)](_0x4dd03c,_0x2cb820){const _0x152523=a0_0x20ba37,_0x4a7c0a=_0x4dd03c[_0x152523(0x213)]['map'](_0x35cd4b=>_0x35cd4b['id']);return ValueUtil[_0x152523(0x1e7)](_0x4a7c0a)&&0x1==_0x2cb820&&UiUtil['showAlertPopup']('text.nothing_selected',_0x152523(0x1d5),'info',_0x152523(0x221)),_0x4a7c0a;}static async[a0_0x20ba37(0x1d6)](_0x2b2b67,_0x50a48b){const _0x22e638=a0_0x20ba37;let _0x16b5c8=ServiceUtil['getSelectedIdList'](_0x2b2b67,!0x0);ValueUtil[_0x22e638(0x1ee)](_0x16b5c8)&&(await ServiceUtil[_0x22e638(0x216)](_0x16b5c8,_0x50a48b)&&_0x2b2b67[_0x22e638(0x1bd)]());}static async[a0_0x20ba37(0x216)](_0x4d1043,_0x12d962){const _0x2aabcc=a0_0x20ba37;if(!(await UiUtil[_0x2aabcc(0x1b8)]('button.delete',_0x2aabcc(0x1c1),_0x2aabcc(0x1af),_0x2aabcc(0x1d0),_0x2aabcc(0x1f5)))[_0x2aabcc(0x20b)])return!0x1;try{const _0x34b009=await client[_0x2aabcc(0x1f6)]({'query':a0_0x240a15`
|
|
27
27
|
mutation {
|
|
28
|
-
${
|
|
28
|
+
${_0x12d962}(${gqlBuilder['buildArgs']({'ids':_0x4d1043})})
|
|
29
29
|
}
|
|
30
|
-
`});if(!
|
|
30
|
+
`});if(!_0x34b009[_0x2aabcc(0x1a9)])return UiUtil[_0x2aabcc(0x1d2)](_0x2aabcc(0x212),TermsUtil[_0x2aabcc(0x1e1)]('success\x20to\x20delete')),!0x0;ServiceUtil['showGraphqlErrorResponse'](_0x34b009);}catch(_0x27940d){ServiceUtil[_0x2aabcc(0x1cc)](_0x27940d);}return!0x1;}static async['updateMultipleData'](_0x219b66,_0x4666f9){const _0x1ab96f=a0_0x20ba37;let _0x15a1b1=ServiceUtil[_0x1ab96f(0x1c2)](_0x219b66);if(ValueUtil[_0x1ab96f(0x1ee)](_0x15a1b1)){let _0x32d841=await ServiceUtil['updateMultiple'](_0x4666f9,_0x15a1b1);if(_0x32d841)return _0x219b66[_0x1ab96f(0x1bd)](),_0x32d841;}return!0x1;}static async[a0_0x20ba37(0x208)](_0x4c650b,_0x324009){const _0x438504=a0_0x20ba37;try{const _0x491b61=await client['query']({'query':a0_0x240a15`
|
|
31
31
|
mutation {
|
|
32
|
-
${
|
|
32
|
+
${_0x4c650b}(${gqlBuilder[_0x438504(0x1e9)]({'patches':_0x324009})}) {
|
|
33
33
|
id
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
`,'context':{'hasUpload':!0x0}});if(!
|
|
36
|
+
`,'context':{'hasUpload':!0x0}});if(!_0x491b61[_0x438504(0x1a9)])return UiUtil['showToast'](_0x438504(0x212),TermsUtil[_0x438504(0x1e1)](_0x438504(0x203))),!0x0;ServiceUtil[_0x438504(0x201)](_0x491b61);}catch(_0x2ad73f){ServiceUtil[_0x438504(0x1cc)](_0x2ad73f);}return!0x1;}static['patchesForUpdateMultiple'](_0x27e289,_0x24559a=!0x1){const _0x638a98=a0_0x20ba37;let _0x2e57c=_0x27e289[_0x638a98(0x222)];if(_0x2e57c&&0x0!=_0x2e57c[_0x638a98(0x1ba)])return _0x2e57c['map'](_0x58cc2a=>{const _0x198197=_0x638a98;let _0x5472b5=_0x58cc2a['id']?{'id':_0x58cc2a['id']}:{};for(let _0x289220 in _0x58cc2a)['creator',_0x198197(0x1f9),_0x198197(0x214),_0x198197(0x1e2),_0x198197(0x1e0),_0x198197(0x1b2),_0x198197(0x1ef),_0x198197(0x20a),_0x198197(0x1f0)][_0x198197(0x1b1)](_0x289220)||(_0x58cc2a[_0x289220]&&_0x198197(0x1a6)==typeof _0x58cc2a[_0x289220]&&0x0==_0x24559a?_0x5472b5[_0x289220]={'id':_0x58cc2a[_0x289220]['id']}:_0x5472b5[_0x289220]=_0x58cc2a[_0x289220]);return _0x5472b5[_0x198197(0x21a)]=_0x58cc2a[_0x198197(0x1e0)],_0x5472b5;});UiUtil[_0x638a98(0x1b8)]('text.nothing_changed',_0x638a98(0x202),_0x638a98(0x212),'confirm');}static async[a0_0x20ba37(0x21d)](_0xee0e17,_0x24cf72,_0x8d0065){const _0x5f425d=a0_0x20ba37;let _0x866b5c=!0x0;_0xee0e17&&(_0x866b5c=(await UiUtil[_0x5f425d(0x1b8)](_0x5f425d(0x1cf)+_0xee0e17,_0x5f425d(0x1c1),'question',_0x5f425d(0x221),_0x5f425d(0x1f5)))[_0x5f425d(0x20b)]);if(_0x866b5c)try{const _0x4225e9=await client[_0x5f425d(0x1f6)]({'query':a0_0x240a15`
|
|
37
37
|
mutation ($scenarioName: String!, $variables: Object) {
|
|
38
38
|
runScenario(scenarioName: $scenarioName, variables: $variables) {
|
|
39
39
|
state
|
|
@@ -42,4 +42,4 @@ const a0_0x3a3cd1=a0_0x3469;(function(_0x3026ff,_0x6b9954){const _0x128381=a0_0x
|
|
|
42
42
|
__typename
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
`,'variables':{'scenarioName':
|
|
45
|
+
`,'variables':{'scenarioName':_0x24cf72,'variables':_0x8d0065}});if(_0x4225e9[_0x5f425d(0x1a9)])ServiceUtil[_0x5f425d(0x201)](_0x4225e9);else{if(this['checkClientError'](_0x4225e9))return UiUtil[_0x5f425d(0x1d2)](_0x5f425d(0x212),TermsUtil[_0x5f425d(0x1e1)](_0x5f425d(0x1f8))),_0x4225e9;}}catch(_0x129132){ServiceUtil[_0x5f425d(0x1cc)](_0x129132);}return!0x1;}static[a0_0x20ba37(0x1cd)](_0x4b2a54){const _0x54e858=a0_0x20ba37;if(_0x4b2a54&&_0x4b2a54[_0x54e858(0x1d1)]&&_0x4b2a54[_0x54e858(0x1d1)][_0x54e858(0x218)]&&_0x4b2a54[_0x54e858(0x1d1)]['runScenario'][_0x54e858(0x1d1)]&&_0x4b2a54[_0x54e858(0x1d1)]['runScenario'][_0x54e858(0x1d1)][_0x54e858(0x1a7)]){let _0x32926f=_0x4b2a54[_0x54e858(0x1d1)][_0x54e858(0x218)][_0x54e858(0x1d1)][_0x54e858(0x1a7)];return UiUtil[_0x54e858(0x1b8)](_0x32926f['title'],_0x32926f[_0x54e858(0x1ce)],_0x54e858(0x1a7),'confirm'),!0x1;}return!0x0;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x2d62(_0x399424,_0x39f26f){const _0x41f022=a0_0x41f0();return a0_0x2d62=function(_0x2d6283,_0x3a94b1){_0x2d6283=_0x2d6283-0xa9;let _0x2e5378=_0x41f022[_0x2d6283];return _0x2e5378;},a0_0x2d62(_0x399424,_0x39f26f);}function a0_0x41f0(){const _0x2b14f0=['label','793179MLfHvh','1841408PhCGrV','menu','tError','tText','132DFtifM','fetchTerminologies','title','2162352kMkEcF','1259909QUEXTO','error','1900590Hlnljw','keys','META_TERMS','records','category','button','tButton','field','translate','6riykdE','tField','forEach','136398DPlGkh','total','name','replace','terminologies','display','query','tLabel','2613kdQIDU','text'];a0_0x41f0=function(){return _0x2b14f0;};return a0_0x41f0();}const a0_0x2e849c=a0_0x2d62;(function(_0x399f21,_0x1e6517){const _0x59efa4=a0_0x2d62,_0x59da80=_0x399f21();while(!![]){try{const _0x284f4e=-parseInt(_0x59efa4(0xc3))/0x1*(-parseInt(_0x59efa4(0xc0))/0x2)+-parseInt(_0x59efa4(0xa9))/0x3*(parseInt(_0x59efa4(0xb1))/0x4)+-parseInt(_0x59efa4(0xb7))/0x5+parseInt(_0x59efa4(0xb4))/0x6+parseInt(_0x59efa4(0xb5))/0x7+-parseInt(_0x59efa4(0xad))/0x8+-parseInt(_0x59efa4(0xac))/0x9;if(_0x284f4e===_0x1e6517)break;else _0x59da80['push'](_0x59da80['shift']());}catch(_0x31009b){_0x59da80['push'](_0x59da80['shift']());}}}(a0_0x41f0,0x364c5));import a0_0x681826 from'graphql-tag';import{client}from'@operato/graphql';import{i18next}from'@operato/i18n';export class TermsUtil{[a0_0x2e849c(0xb9)]=null;static async['downloadTerminologies'](_0x563680){const _0x25de2d=a0_0x2e849c;let _0x15ce9b=(await TermsUtil[_0x25de2d(0xb2)](_0x563680))[_0x25de2d(0xba)];_0x15ce9b&&_0x15ce9b['length']>0x0&&(this[_0x25de2d(0xb9)]={},_0x15ce9b[_0x25de2d(0xc2)](_0x380c12=>{const _0x149370=_0x25de2d;let _0x40b412=_0x380c12['category']+'.'+_0x380c12[_0x149370(0xc5)];this[_0x149370(0xb9)][_0x40b412]=_0x380c12[_0x149370(0xc8)];}));}static async[a0_0x2e849c(0xb2)](_0x17e665){const _0x410785=a0_0x2e849c;let _0x3069ad=[{'name':'locale','operator':'eq','value':_0x17e665}];const _0x4b0f01=await client[_0x410785(0xc9)]({'query':a0_0x681826`
|
|
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_0x2ae1f0=a0_0x13d2;(function(_0x35d5b1,_0x242d2d){const _0x31e5a7=a0_0x
|
|
|
11
11
|
total
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
`,'variables':{'filters':
|
|
14
|
+
`,'variables':{'filters':_0x3069ad,'sortings':[{'name':_0x410785(0xbb)},{'name':_0x410785(0xc5)}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0x4b0f01['errors'])return{'records':_0x4b0f01['data'][_0x410785(0xc7)]['items']||[],'total':_0x4b0f01['data'][_0x410785(0xc7)][_0x410785(0xc4)]||0x0};}static[a0_0x2e849c(0xca)](_0x29c18c,_0x12dbdc){const _0x8adec3=a0_0x2e849c;let _0x540ae3=TermsUtil[_0x8adec3(0xbf)](_0x8adec3(0xab),_0x29c18c,_0x12dbdc,null);return _0x540ae3||TermsUtil[_0x8adec3(0xbf)](_0x8adec3(0xbe),_0x29c18c,_0x12dbdc,_0x29c18c);}static[a0_0x2e849c(0xc1)](_0x2de0fc,_0x30ae57){const _0x268056=a0_0x2e849c;let _0x188c6a=TermsUtil[_0x268056(0xbf)]('field',_0x2de0fc,_0x30ae57,null);return _0x188c6a||TermsUtil[_0x268056(0xbf)](_0x268056(0xbe),_0x2de0fc,_0x30ae57,_0x2de0fc);}static[a0_0x2e849c(0xbd)](_0x1c8629){const _0x2ac28d=a0_0x2e849c;return TermsUtil[_0x2ac28d(0xbf)](_0x2ac28d(0xbc),_0x1c8629,null,_0x1c8629);}static['tTitle'](_0x597417,_0x469277){const _0xb30ea7=a0_0x2e849c;let _0x1947e4=TermsUtil[_0xb30ea7(0xbf)](_0xb30ea7(0xb3),_0x597417,_0x469277,null);return _0x1947e4||TermsUtil[_0xb30ea7(0xbf)](_0xb30ea7(0xae),_0x597417,_0x469277,_0x597417);}static['tMenu'](_0x1cba4d){const _0x4f0e8c=a0_0x2e849c;let _0x5d2e2d=TermsUtil[_0x4f0e8c(0xbf)]('menu',_0x1cba4d,null,_0x1cba4d);return _0x5d2e2d||TermsUtil[_0x4f0e8c(0xbf)]('title',_0x1cba4d,null,_0x1cba4d);}static[a0_0x2e849c(0xb0)](_0xa49346,_0x5bce1e){const _0x10e26e=a0_0x2e849c;return TermsUtil[_0x10e26e(0xbf)](_0x10e26e(0xaa),_0xa49346,_0x5bce1e,_0xa49346);}static[a0_0x2e849c(0xaf)](_0x13f2ca,_0x2c30d2){const _0x2d3450=a0_0x2e849c;return TermsUtil[_0x2d3450(0xbf)](_0x2d3450(0xb6),_0x13f2ca,_0x2c30d2,_0x13f2ca);}static[a0_0x2e849c(0xbf)](_0x506911,_0x17d3dc,_0x480da5,_0x1461cf){let _0x12cb1c=_0x506911+'.'+_0x17d3dc;return TermsUtil['t'](_0x12cb1c,_0x480da5,_0x1461cf);}static['t'](_0x528a32,_0x465738,_0x4f8f1d){const _0x4cf49f=a0_0x2e849c;let _0xcb1b5b=this[_0x4cf49f(0xb9)]?this[_0x4cf49f(0xb9)][_0x528a32]:null;return _0xcb1b5b=_0xcb1b5b||i18next['t'](_0x528a32),_0xcb1b5b&&_0x528a32!=_0xcb1b5b?(_0x465738&&Object[_0x4cf49f(0xb8)](_0x465738)[_0x4cf49f(0xc2)](function(_0x5d68d3){const _0x2f9e55=_0x4cf49f;var _0x23e792='\x5c{'+_0x5d68d3[_0x2f9e55(0xc6)](/\$/,'\x5c$')+'\x5c}',_0x376e23=new RegExp(_0x23e792,'gi');_0xcb1b5b=_0xcb1b5b[_0x2f9e55(0xc6)](_0x376e23,_0x465738[_0x5d68d3]);}),_0xcb1b5b):_0x4f8f1d;}}
|
package/client/utils/ui-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x541cef=a0_0x1f36;function a0_0x1f36(_0x46ca8d,_0x3e5e26){const _0xce1a3e=a0_0xce1a();return a0_0x1f36=function(_0x1f36cf,_0x3df150){_0x1f36cf=_0x1f36cf-0xce;let _0xf2e0fe=_0xce1a3e[_0x1f36cf];return _0xf2e0fe;},a0_0x1f36(_0x46ca8d,_0x3e5e26);}(function(_0x2cf445,_0x4e30a8){const _0x12230e=a0_0x1f36,_0x15c12a=_0x2cf445();while(!![]){try{const _0x2b0a41=-parseInt(_0x12230e(0xe2))/0x1*(parseInt(_0x12230e(0xfc))/0x2)+parseInt(_0x12230e(0x107))/0x3+-parseInt(_0x12230e(0xd4))/0x4+-parseInt(_0x12230e(0x102))/0x5*(-parseInt(_0x12230e(0xea))/0x6)+parseInt(_0x12230e(0xf4))/0x7+parseInt(_0x12230e(0x103))/0x8+-parseInt(_0x12230e(0xde))/0x9*(parseInt(_0x12230e(0xff))/0xa);if(_0x2b0a41===_0x4e30a8)break;else _0x15c12a['push'](_0x15c12a['shift']());}catch(_0x3c3799){_0x15c12a['push'](_0x15c12a['shift']());}}}(a0_0xce1a,0x3990f));import{store,CustomAlert,navigate}from'@things-factory/shell';import{openPopup}from'@things-factory/layout-base';import{isMobileDevice}from'@things-factory/utils';function a0_0xce1a(){const _0x535184=['openDynamicPopup','menu','\x27></','openPopupByElement','i18next','2482935xKTXkD','ox-input-barcode','[name=\x27','currentLocale','page','dispatchEvent','cancelButton','editor','2QHVdvV','createCustomElement','route','3260sfdVBV','isNotEmpty','popup_field','886340PpKqpO','2715168aTNOwi','childNodes','modules','parent_field','916176ZFuXjo','showToast','querySelector','select-combo','config','i18next=','getParams','isMobileEnv','textarea','value','barcode','replace','template','firstElementChild','input','tButton','content','getApplicationModuleInfo','forEach','length','split','setValueToEditor','getStore','filters','567680LDXRcg','\x27\x20\x20parent_id=\x27','\x27\x20is_popup=true></','ox-input-code','substring','currentRouting','getFilterFormData','stringify','createEditorHtml','indexOf','19953xKFqUl','code-editor','\x20route_name=\x27','ko-KR','76308KubViU','createElement','getState','htmlToElement','getType','ox-select','setSearchFormEditorValue','tagname','6UezPJd','renderRoot','getLeafInput','removeChild','pass='];a0_0xce1a=function(){return _0x535184;};return a0_0xce1a();}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_0x541cef(0x10e)](){return isMobileDevice();}static[a0_0x541cef(0xf7)](){const _0x2716f4=a0_0x541cef;let _0x1ab60e=document['cookie'];return _0x1ab60e=_0x1ab60e[_0x2716f4(0xd8)](_0x1ab60e[_0x2716f4(0xdd)](_0x2716f4(0xf3))),_0x1ab60e[_0x2716f4(0xdd)](';')>-0x1&&(_0x1ab60e=_0x1ab60e[_0x2716f4(0xd8)](0x0,_0x1ab60e[_0x2716f4(0xdd)](';'))),_0x1ab60e=_0x1ab60e[_0x2716f4(0x112)](_0x2716f4(0x10c),''),'ko'==_0x1ab60e?_0x2716f4(0xe1):_0x1ab60e;}static[a0_0x541cef(0x118)](){const _0xf5b09f=a0_0x541cef;let _0x273dc1=store['getState']()['app'][_0xf5b09f(0x105)];return _0x273dc1[_0x273dc1[_0xf5b09f(0xcf)]-0x1];}static[a0_0x541cef(0xd9)](){const _0x1ecdc0=a0_0x541cef;return store[_0x1ecdc0(0xe4)]()[_0x1ecdc0(0xfe)][_0x1ecdc0(0xf8)];}static['openPopupByElement'](_0x16c580,_0x1e8e8c,_0x52ad1b,_0x5ad108){return openPopup(_0x52ad1b,{'backdrop':!0x0,'size':_0x1e8e8c,'title':_0x16c580,'backdrop':_0x5ad108});}static async[a0_0x541cef(0xef)](_0x12a55d,_0x461314,_0x19f93e,_0x3bd844){const _0x59a2c8=a0_0x541cef;let _0x25c547=ValueUtil[_0x59a2c8(0x100)](_0x461314['parent_field'])?ValueUtil[_0x59a2c8(0x10d)](_0x19f93e,..._0x461314[_0x59a2c8(0x106)][_0x59a2c8(0xd0)]('.')):void 0x0,_0x53a902='<'+_0x461314[_0x59a2c8(0xe9)]+_0x59a2c8(0xe0)+_0x461314[_0x59a2c8(0xf0)]+_0x59a2c8(0xd5)+_0x25c547+_0x59a2c8(0xd6)+_0x461314[_0x59a2c8(0xe9)]+'>',_0x2001ff=UiUtil[_0x59a2c8(0xe5)](_0x53a902);_0x2001ff[_0x59a2c8(0x10b)]=_0x461314,ValueUtil[_0x59a2c8(0x100)](_0x461314[_0x59a2c8(0x101)])&&(_0x2001ff[_0x461314['popup_field']]=_0x19f93e);let _0x25182b=UiUtil[_0x59a2c8(0xf2)](_0x12a55d,_0x461314['size'],_0x2001ff,!0x0);_0x3bd844&&(_0x25182b['onclosed']=_0x3bd844);}static[a0_0x541cef(0xfd)](_0x1a2005,_0x2bb336){const _0x3a7a33=a0_0x541cef;let _0x49316e='<'+_0x1a2005+_0x3a7a33(0xe0)+_0x2bb336+_0x3a7a33(0xf1)+_0x1a2005+'>';return UiUtil[_0x3a7a33(0xe5)](_0x49316e);}static[a0_0x541cef(0xe5)](_0x1dd2ff){const _0x592fcb=a0_0x541cef;var _0x591515=document[_0x592fcb(0xe3)](_0x592fcb(0x113));_0x591515['innerHTML']=_0x1dd2ff;var _0x4288eb=_0x591515[_0x592fcb(0x117)][_0x592fcb(0x104)][0x0];return _0x591515[_0x592fcb(0x117)][_0x592fcb(0xed)](_0x4288eb),_0x4288eb;}static['pageNavigate'](_0x122f23,_0x37d41f){const _0x2a88c2=a0_0x541cef;let _0x199bfd=_0x37d41f?'?':'';_0x37d41f&&(_0x199bfd+=_0x2a88c2(0xee)+JSON[_0x2a88c2(0xdb)](_0x37d41f)),navigate(''+_0x122f23+_0x199bfd);}static[a0_0x541cef(0xd2)](_0x5d4588,_0x357014,_0x3710ba){let _0x118f40=_0x118f40['getState']();return _0x5d4588&&_0x357014&&_0x3710ba?_0x118f40[_0x5d4588][_0x357014][_0x3710ba]:_0x5d4588&&_0x357014?_0x118f40[_0x5d4588][_0x357014]:_0x5d4588?_0x118f40[_0x5d4588]:_0x118f40;}static['fireCustomEvent'](_0x146749,_0x5a29d9){const _0x32970e=a0_0x541cef;document[_0x32970e(0xf9)](new CustomEvent(_0x146749,{'detail':_0x5a29d9}));}static[a0_0x541cef(0x108)](_0x29959b,_0x386748){document['dispatchEvent'](new CustomEvent('notify',{'detail':{'type':_0x29959b,'message':_0x386748}}));}static async['showAlertPopup'](_0x262c6b,_0x308119,_0x111270,_0x460505,_0x5692c8){const _0x2bc6a3=a0_0x541cef;let _0x10be82={'title':TermsUtil['t'](_0x262c6b)||_0x262c6b,'text':TermsUtil['t'](_0x308119)||_0x308119};return _0x111270&&(_0x10be82['type']=_0x111270),_0x460505&&(_0x10be82['confirmButton']=TermsUtil[_0x2bc6a3(0x116)](_0x460505)),_0x5692c8&&(_0x10be82[_0x2bc6a3(0xfa)]=TermsUtil[_0x2bc6a3(0x116)](_0x5692c8)),await CustomAlert(_0x10be82);}static[a0_0x541cef(0xda)](_0x594c3a){const _0x3b20cb=a0_0x541cef;if(ValueUtil[_0x3b20cb(0x100)](_0x594c3a)){let _0x16826b=_0x594c3a[_0x3b20cb(0xd3)]();ValueUtil[_0x3b20cb(0x100)](_0x16826b)&&_0x16826b[_0x3b20cb(0xce)](_0x240582=>{const _0x2846e5=_0x3b20cb;ValueUtil['isNotEmpty'](_0x240582[_0x2846e5(0x110)])&&(item[_0x240582['name']]=_0x240582[_0x2846e5(0x110)]?_0x240582[_0x2846e5(0x110)]:null);});}return{};}static[a0_0x541cef(0xe8)](_0x43b574,_0x1c86f7,_0x3925bc){const _0xbc2c77=a0_0x541cef;if(ValueUtil[_0xbc2c77(0x100)](_0x43b574)){let _0x2390f0=_0x43b574['renderRoot']?.[_0xbc2c77(0x109)](_0xbc2c77(0xf6)+_0x1c86f7+'\x27]');ValueUtil[_0xbc2c77(0x100)](_0x2390f0)&&(_0x2390f0[_0xbc2c77(0x110)]=_0x3925bc);}}static[a0_0x541cef(0xdc)](_0x473123,_0x433f2c,_0x549ffb,_0x1421e8){return getEditor(_0x473123)('',_0x433f2c,_0x549ffb,_0x1421e8,{});}static[a0_0x541cef(0xd1)](_0x32ff5a,_0x4a19b5){const _0x28d724=a0_0x541cef;UiUtil['getLeafInput'](_0x32ff5a)[_0x28d724(0x110)]=_0x4a19b5;}static[a0_0x541cef(0xec)](_0x3b087e){const _0x4a7b1d=a0_0x541cef;let _0x4d8e32=_0x3b087e[_0x4a7b1d(0xe6)]();return _0x4a7b1d(0xdf)==_0x4d8e32?_0x3b087e[_0x4a7b1d(0xeb)][_0x4a7b1d(0x109)](_0x4a7b1d(0xd7)):_0x4a7b1d(0x10f)==_0x4d8e32?_0x3b087e['renderRoot']['querySelector'](_0x4a7b1d(0x10f)):_0x4a7b1d(0x10a)==_0x4d8e32?_0x3b087e['renderRoot'][_0x4a7b1d(0x109)](_0x4a7b1d(0xe7))[_0x4a7b1d(0x114)]:_0x4a7b1d(0x111)==_0x4d8e32?_0x3b087e[_0x4a7b1d(0xeb)][_0x4a7b1d(0x109)](_0x4a7b1d(0xf5))[_0x4a7b1d(0xeb)][_0x4a7b1d(0x109)](_0x4a7b1d(0x115)):_0x3b087e[_0x4a7b1d(0xeb)][_0x4a7b1d(0x114)][_0x4a7b1d(0xfb)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a0_0xe45eb7=a0_0x1ce6;function a0_0x4a96(){const _0x44ef4d=['toInteger','populateArray','193128fwHwVO','string','TRUE','length','isEquals','toBoolean','isArray','keys','compareObjectValues','16jTYzQP','isEmpty','441150yZbLbt','1451706GErZbg','slice','2214iNtoAM','12566235lvELoH','object','1791ghfHYP','true','43080bcjKsI','isNotEmpty','boolean','populateObject','119602YCxqVz','setParams','number','forEach','map','10XfpHXE','getParams','23030neiXMh'];a0_0x4a96=function(){return _0x44ef4d;};return a0_0x4a96();}(function(_0x2acd3f,_0x332392){const _0x4e9753=a0_0x1ce6,_0x4f3bc6=_0x2acd3f();while(!![]){try{const _0x368a37=parseInt(_0x4e9753(0x1ad))/0x1+-parseInt(_0x4e9753(0x1a2))/0x2+-parseInt(_0x4e9753(0x1b7))/0x3+parseInt(_0x4e9753(0x19f))/0x4*(parseInt(_0x4e9753(0x1a1))/0x5)+-parseInt(_0x4e9753(0x1a4))/0x6*(-parseInt(_0x4e9753(0x1b4))/0x7)+-parseInt(_0x4e9753(0x1a9))/0x8*(-parseInt(_0x4e9753(0x1a7))/0x9)+parseInt(_0x4e9753(0x1b2))/0xa*(-parseInt(_0x4e9753(0x1a5))/0xb);if(_0x368a37===_0x332392)break;else _0x4f3bc6['push'](_0x4f3bc6['shift']());}catch(_0x191ba1){_0x4f3bc6['push'](_0x4f3bc6['shift']());}}}(a0_0x4a96,0xc98bd));function a0_0x1ce6(_0x4aff31,_0x25ad7c){const _0x4a9688=a0_0x4a96();return a0_0x1ce6=function(_0x1ce6c1,_0x544127){_0x1ce6c1=_0x1ce6c1-0x197;let _0x377cff=_0x4a9688[_0x1ce6c1];return _0x377cff;},a0_0x1ce6(_0x4aff31,_0x25ad7c);}import a0_0x957a75 from'lodash-es/isEqual';import{TermsUtil}from'./terms-util';export class ValueUtil{static[a0_0xe45eb7(0x1a0)](_0x428ca8){const _0x4605a8=a0_0xe45eb7;if(void 0x0===_0x428ca8)return!0x0;if(null===_0x428ca8)return!0x0;if(_0x4605a8(0x1ab)==typeof _0x428ca8)return!0x1;if(_0x4605a8(0x197)==typeof _0x428ca8||_0x4605a8(0x1af)==typeof _0x428ca8){if(''==_0x428ca8)return!0x0;}else{if(Array[_0x4605a8(0x19c)](_0x428ca8)){if(0x0==_0x428ca8['length'])return!0x0;}else{if(_0x4605a8(0x1a6)==typeof _0x428ca8&&0x0==Object[_0x4605a8(0x19d)](_0x428ca8)[_0x4605a8(0x199)])return!0x0;}}return!0x1;}static[a0_0xe45eb7(0x1aa)](_0x1fff60){const _0x253f84=a0_0xe45eb7;return!ValueUtil[_0x253f84(0x1a0)](_0x1fff60);}static[a0_0xe45eb7(0x19a)](_0x292346,_0x218d04){return a0_0x957a75(_0x292346,_0x218d04);}static[a0_0xe45eb7(0x1b5)](_0x347fbd,_0x11f8e3){const _0x14f807=a0_0xe45eb7;return ValueUtil[_0x14f807(0x1a0)](_0x347fbd)?_0x11f8e3||0x0:parseInt(_0x347fbd);}static[a0_0xe45eb7(0x19b)](_0x1cf1e3){const _0x49caad=a0_0xe45eb7;return!ValueUtil[_0x49caad(0x1a0)](_0x1cf1e3)&&(_0x49caad(0x1a8)==_0x1cf1e3||'t'==_0x1cf1e3||_0x49caad(0x198)==_0x1cf1e3||'T'==_0x1cf1e3||'on'==_0x1cf1e3||'ON'==_0x1cf1e3);}static[a0_0xe45eb7(0x19e)](_0x487f7,_0x68acfd,_0x3596ab){const _0x242e77=a0_0xe45eb7;let _0x3d2718=!0x0;return _0x3596ab[_0x242e77(0x1b0)](_0xbed7e0=>{const _0x1c240e=_0x242e77;let _0x3ba199=_0x487f7[_0xbed7e0];if('*'===_0x3ba199)return;let _0x46aaa3=_0x68acfd[_0xbed7e0]||'';ValueUtil[_0x1c240e(0x1a0)](_0x3ba199)?ValueUtil['isNotEmpty'](_0x46aaa3)&&(_0x3d2718=!0x1):_0x3ba199!=_0x46aaa3&&(_0x3d2718=!0x1);}),_0x3d2718;}static[a0_0xe45eb7(0x1ae)](_0x3b2d65,_0x4d56ee,_0x26e71b,_0x3065e5){const _0x293bb9=a0_0xe45eb7;let _0x167749=ValueUtil['getParams'](_0x4d56ee,_0x26e71b);return ValueUtil[_0x293bb9(0x1aa)](_0x167749)&&(_0x3b2d65[_0x26e71b]=!0x0===_0x3065e5?TermsUtil['t'](_0x167749):_0x167749),_0x3b2d65;}static[a0_0xe45eb7(0x1b3)](_0x37bb2b,..._0x3727c7){const _0x49ff87=a0_0xe45eb7;if(arguments[_0x49ff87(0x199)]<=0x1)return;let _0x1af562=_0x3727c7[0x0];if(ValueUtil['isEmpty'](_0x37bb2b[_0x1af562]))return;let _0x5742c0=_0x37bb2b[_0x1af562];return _0x3727c7[_0x49ff87(0x199)]>0x1?ValueUtil[_0x49ff87(0x1b3)](_0x5742c0,..._0x3727c7[_0x49ff87(0x1a3)](0x1)):_0x5742c0;}static[a0_0xe45eb7(0x1b6)](_0x7e318d,_0x1a982e,..._0x30545a){const _0x2b267b=a0_0xe45eb7;return _0x1a982e=_0x1a982e||[],_0x30545a=_0x30545a||Object[_0x2b267b(0x19d)](_0x7e318d),ValueUtil['isNotEmpty'](_0x30545a)&&(_0x1a982e=_0x7e318d[_0x2b267b(0x1b1)]((_0x3737a5,_0x25dd38)=>{const _0x56a295=_0x2b267b;let _0x1808db=_0x1a982e[_0x56a295(0x199)]>_0x25dd38?_0x1a982e[_0x25dd38]:{};return ValueUtil['populateObject'](_0x3737a5,_0x1808db,_0x30545a);})),_0x1a982e;}static[a0_0xe45eb7(0x1ac)](_0x5d5e46,_0x3f8994,..._0x51f69a){const _0x2504df=a0_0xe45eb7;return _0x3f8994=_0x3f8994||{},_0x51f69a=_0x51f69a||Object['keys'](_0x5d5e46),ValueUtil[_0x2504df(0x1aa)](_0x51f69a)&&_0x51f69a['forEach'](_0x205a56=>{_0x3f8994[_0x205a56]=_0x5d5e46[_0x205a56];}),_0x3f8994;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x32f1(){const _0x5c7438=['981856VyWKSA','10QbwXLd','2473289TeNdUh','1187970QbAYXc','1296294SEFGLA','21298370pNifct','9Kkievu','1280704KMdvmg','1076110yCVPUp','1vrzhsj'];a0_0x32f1=function(){return _0x5c7438;};return a0_0x32f1();}function a0_0x1215(_0x7766fe,_0x487646){const _0x32f17d=a0_0x32f1();return a0_0x1215=function(_0x121577,_0x544006){_0x121577=_0x121577-0x1ef;let _0x50eb0e=_0x32f17d[_0x121577];return _0x50eb0e;},a0_0x1215(_0x7766fe,_0x487646);}(function(_0x52f126,_0x47e641){const _0x57c59c=a0_0x1215,_0x4ceaf=_0x52f126();while(!![]){try{const _0x2cba40=parseInt(_0x57c59c(0x1f4))/0x1*(-parseInt(_0x57c59c(0x1f3))/0x2)+-parseInt(_0x57c59c(0x1ef))/0x3+-parseInt(_0x57c59c(0x1f5))/0x4+parseInt(_0x57c59c(0x1f6))/0x5*(-parseInt(_0x57c59c(0x1f8))/0x6)+-parseInt(_0x57c59c(0x1f7))/0x7+-parseInt(_0x57c59c(0x1f2))/0x8*(-parseInt(_0x57c59c(0x1f1))/0x9)+parseInt(_0x57c59c(0x1f0))/0xa;if(_0x2cba40===_0x47e641)break;else _0x4ceaf['push'](_0x4ceaf['shift']());}catch(_0x2242b1){_0x4ceaf['push'](_0x4ceaf['shift']());}}}(a0_0x32f1,0x4f57f));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_0x427ebe=a0_0x431b;(function(_0x587a43,_0x20a149){const _0x43c919=a0_0x431b,_0x452c74=_0x587a43();while(!![]){try{const _0x387411=-parseInt(_0x43c919(0x14a))/0x1*(-parseInt(_0x43c919(0x161))/0x2)+-parseInt(_0x43c919(0x14f))/0x3*(parseInt(_0x43c919(0x15e))/0x4)+parseInt(_0x43c919(0x149))/0x5*(-parseInt(_0x43c919(0x13f))/0x6)+parseInt(_0x43c919(0x14d))/0x7*(-parseInt(_0x43c919(0x147))/0x8)+-parseInt(_0x43c919(0x156))/0x9+-parseInt(_0x43c919(0x166))/0xa*(-parseInt(_0x43c919(0x13c))/0xb)+parseInt(_0x43c919(0x167))/0xc*(parseInt(_0x43c919(0x164))/0xd);if(_0x387411===_0x20a149)break;else _0x452c74['push'](_0x452c74['shift']());}catch(_0x328a94){_0x452c74['push'](_0x452c74['shift']());}}}(a0_0x3ad8,0x4eadd));import'@material/mwc-icon';import{html,LitElement}from'lit';import{connect}from'pwa-helpers';import{navigate,store}from'@operato/shell';function a0_0x3ad8(){const _0x38a71b=['dispatchEvent','icon','#force','wheelDelta','href','#wrap','4031055ysHllR','removeAttribute','scrollLeft','define','type','properties','onWheelEvent','currentTarget','356KSPGjH','detail','renderRoot','585866yGHtGP','map','name','691067nuRrKd','mousewheel','1514940IkYoKR','204mhTyVm','settled','target','transitionstart','submenu','bind','dynamic-menu-landscape','33ipcUjY','addEventListener','render','1689258bzCeDe','stopPropagation','menus','setAttribute','min','group','preventDefault','activeTopLevel','17128jlfDaV','click','5LwTdmM','1cnLOSZ','styles','path','119eethcd','querySelector','18978yGlQpv'];a0_0x3ad8=function(){return _0x38a71b;};return a0_0x3ad8();}import{ScrollbarStyles}from'@operato/styles';import{DynamicMenuLandscapeStyles}from'./dynamic-menu-landscape-styles';function a0_0x431b(_0x438ae3,_0x15bfc9){const _0x3ad807=a0_0x3ad8();return a0_0x431b=function(_0x431bb9,_0x15c11b){_0x431bb9=_0x431bb9-0x13b;let _0xaf64fe=_0x3ad807[_0x431bb9];return _0xaf64fe;},a0_0x431b(_0x438ae3,_0x15bfc9);}export class DynamicMenuLandscape extends connect(store)(LitElement){static get[a0_0x427ebe(0x14b)](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get[a0_0x427ebe(0x15b)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x427ebe(0x13e)](){const _0x874251=a0_0x427ebe,{menus:_0xd8469d=[],activeTopLevel:_0x1af328,activeMenu:_0x246c53}=this;return html`
|
|
2
2
|
<div id="wrap">
|
|
3
3
|
<ul>
|
|
4
|
-
${
|
|
5
|
-
<li ?active=${
|
|
6
|
-
<a href=${
|
|
7
|
-
${
|
|
4
|
+
${_0xd8469d[_0x874251(0x162)](_0x122fb7=>_0x874251(0x144)==_0x122fb7[_0x874251(0x15a)]?html``:html`
|
|
5
|
+
<li ?active=${_0x122fb7===_0x1af328}>
|
|
6
|
+
<a href=${_0x122fb7[_0x874251(0x14c)]||'#'}>
|
|
7
|
+
${_0x122fb7[_0x874251(0x151)]?html`<mwc-icon>${_0x122fb7[_0x874251(0x151)]}</mwc-icon>`:html``} ${_0x122fb7[_0x874251(0x163)]}
|
|
8
8
|
</a>
|
|
9
9
|
|
|
10
10
|
<ul submenus>
|
|
11
|
-
${
|
|
12
|
-
<li ?active=${
|
|
13
|
-
<a href=${
|
|
11
|
+
${_0x122fb7[_0x874251(0x141)]?.['map'](_0x1d6e5e=>html`
|
|
12
|
+
<li ?active=${_0x1d6e5e===_0x246c53}>
|
|
13
|
+
<a href=${_0x1d6e5e[_0x874251(0x14c)]||'#'}> ${_0x1d6e5e[_0x874251(0x163)]} </a>
|
|
14
14
|
</li>
|
|
15
15
|
`)}
|
|
16
16
|
</ul>
|
|
17
17
|
|
|
18
18
|
<div description>
|
|
19
|
-
${
|
|
19
|
+
${_0x122fb7[_0x874251(0x151)]?html`<mwc-icon>${_0x122fb7[_0x874251(0x151)]}</mwc-icon>`:html``} ${_0x122fb7['description']||''}
|
|
20
20
|
</div>
|
|
21
21
|
</li>
|
|
22
22
|
`)}
|
|
23
23
|
</ul>
|
|
24
24
|
</div>
|
|
25
|
-
`;}[
|
|
25
|
+
`;}['firstUpdated'](){const _0x45a15f=a0_0x427ebe;this[_0x45a15f(0x160)][_0x45a15f(0x14e)](_0x45a15f(0x155))[_0x45a15f(0x13d)](_0x45a15f(0x165),this[_0x45a15f(0x15c)][_0x45a15f(0x16c)](this),!0x1),this[_0x45a15f(0x160)][_0x45a15f(0x13d)](_0x45a15f(0x148),_0x571121=>{const _0x353854=_0x45a15f;if(_0x571121[_0x353854(0x169)][_0x353854(0x16b)]){_0x571121[_0x353854(0x140)](),_0x571121['preventDefault']();let _0x1c8fab=_0x571121[_0x353854(0x169)][_0x353854(0x16b)];return void this[_0x353854(0x150)](new CustomEvent('active-toplevel',{'bubbles':!0x0,'detail':this[_0x353854(0x146)]===_0x1c8fab?void 0x0:_0x1c8fab}));}let _0x455d2b=_0x571121[_0x353854(0x169)][_0x353854(0x154)];_0x455d2b&&location[_0x353854(0x154)]===_0x455d2b&&navigate(_0x455d2b+_0x353854(0x152),!0x0);}),this[_0x45a15f(0x160)][_0x45a15f(0x13d)](_0x45a15f(0x16a),_0xe80bf8=>{const _0x434d7b=_0x45a15f;_0xe80bf8['target'][_0x434d7b(0x157)](_0x434d7b(0x168));}),this[_0x45a15f(0x160)][_0x45a15f(0x13d)]('transitionend',_0x3341e2=>{const _0x5764ec=_0x45a15f;_0x3341e2['target'][_0x5764ec(0x142)](_0x5764ec(0x168),'');});}[a0_0x427ebe(0x15c)](_0x311023){const _0x2ddbb3=a0_0x427ebe,_0x14b4c6=_0x311023[_0x2ddbb3(0x15d)];var _0x4b5714=Math['max'](-0x1,Math[_0x2ddbb3(0x143)](0x1,_0x311023[_0x2ddbb3(0x153)]||-_0x311023[_0x2ddbb3(0x15f)]));_0x14b4c6[_0x2ddbb3(0x158)]-=0xa*_0x4b5714,_0x311023[_0x2ddbb3(0x145)]();}}customElements[a0_0x427ebe(0x159)](a0_0x427ebe(0x13b),DynamicMenuLandscape);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x1f1c17=a0_0x34a9;(function(_0x421093,_0x139090){var _0x1790d8=a0_0x34a9,_0x2ae4f6=_0x421093();while(!![]){try{var _0x5549a7=-parseInt(_0x1790d8(0x1df))/0x1*(parseInt(_0x1790d8(0x1f2))/0x2)+-parseInt(_0x1790d8(0x1d7))/0x3+parseInt(_0x1790d8(0x1eb))/0x4+parseInt(_0x1790d8(0x1e1))/0x5*(-parseInt(_0x1790d8(0x1ce))/0x6)+-parseInt(_0x1790d8(0x1e3))/0x7+-parseInt(_0x1790d8(0x1d4))/0x8*(-parseInt(_0x1790d8(0x1d5))/0x9)+parseInt(_0x1790d8(0x1cd))/0xa;if(_0x5549a7===_0x139090)break;else _0x2ae4f6['push'](_0x2ae4f6['shift']());}catch(_0x552559){_0x2ae4f6['push'](_0x2ae4f6['shift']());}}}(a0_0x278b,0xe2541));import'@material/mwc-icon';import'./dynamic-menu-portrait';function a0_0x278b(){var _0x29a0b4=['active','7174292FAJhfI','landscape','renderRoot','slotTemplate','detail','_findActivePage','addEventListener','2871628PQzBgD','dynamic-menu-part','_path','setAttribute','menus','34193160SzeUDn','2556282AjxvuU','styles','render','_activeTopLevel','find','active-toplevel','61576jnhwKs','9pocASn','function','2230755tumhHT','preventDefault','resourceId','firstUpdated','define','removeAttribute','page','_activeMenu','1JAGjUU','metaUI','5OihOwA','stateChanged','11816693QoMMwu','stopPropagation','replaceChild','route','portrait','orientation','has'];a0_0x278b=function(){return _0x29a0b4;};return a0_0x278b();}import'./dynamic-menu-landscape';import{css,html,LitElement}from'lit';function a0_0x34a9(_0x4f99b7,_0x42cb33){var _0x278bec=a0_0x278b();return a0_0x34a9=function(_0x34a985,_0x2c4ded){_0x34a985=_0x34a985-0x1ca;var _0x5455ba=_0x278bec[_0x34a985];return _0x5455ba;},a0_0x34a9(_0x4f99b7,_0x42cb33);}import{connect}from'pwa-helpers';import{store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';function isActiveMenu(_0x4e3a2c,_0x56a87a){var _0x4ba172=a0_0x34a9;return _0x4e3a2c['path']?.['split']('?')[0x0]===_0x56a87a||_0x4e3a2c[_0x4ba172(0x1ea)]&&_0x4ba172(0x1d6)==typeof _0x4e3a2c[_0x4ba172(0x1ea)]&&_0x4e3a2c[_0x4ba172(0x1ea)]['call'](_0x4e3a2c,{'path':_0x56a87a});}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_0x1f1c17(0x1cf)](){return[ScrollbarStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -27,18 +27,18 @@ var a0_0x3f0cf1=a0_0x220a;(function(_0x32c97d,_0x1e8ae9){var _0x1994b8=a0_0x220a
|
|
|
27
27
|
dynamic-menu-landscape {
|
|
28
28
|
flex: 1;
|
|
29
29
|
}
|
|
30
|
-
`];}[
|
|
30
|
+
`];}[a0_0x1f1c17(0x1d0)](){var _0x426e08=a0_0x1f1c17;return html`
|
|
31
31
|
<slot name="head"></slot>
|
|
32
|
-
${
|
|
33
|
-
.menus=${this[
|
|
34
|
-
.activeTopLevel=${this[
|
|
35
|
-
.activeMenu=${this[
|
|
36
|
-
.path=${this[
|
|
32
|
+
${'landscape'!==this[_0x426e08(0x1e8)]?html`<dynamic-menu-portrait
|
|
33
|
+
.menus=${this[_0x426e08(0x1cc)]}
|
|
34
|
+
.activeTopLevel=${this[_0x426e08(0x1d1)]}
|
|
35
|
+
.activeMenu=${this[_0x426e08(0x1de)]}
|
|
36
|
+
.path=${this[_0x426e08(0x1ca)]}
|
|
37
37
|
></dynamic-menu-portrait>`:html`<dynamic-menu-landscape
|
|
38
|
-
.menus=${this[
|
|
38
|
+
.menus=${this[_0x426e08(0x1cc)]}
|
|
39
39
|
.activeTopLevel=${this['_activeTopLevel']}
|
|
40
40
|
.activeMenu=${this['_activeMenu']}
|
|
41
41
|
.path=${this['_path']}
|
|
42
42
|
></dynamic-menu-landscape>`}
|
|
43
43
|
<slot name="tail"></slot>
|
|
44
|
-
`;}[
|
|
44
|
+
`;}[a0_0x1f1c17(0x1da)](){var _0x2488b6=a0_0x1f1c17;this[_0x2488b6(0x1ed)][_0x2488b6(0x1f1)](_0x2488b6(0x1d3),_0x3822fe=>{var _0x4030af=_0x2488b6;_0x3822fe[_0x4030af(0x1e4)](),_0x3822fe[_0x4030af(0x1d8)](),this['_activeTopLevel']=_0x3822fe[_0x4030af(0x1ef)];});}['updated'](_0x26a3e6){var _0x5cddd2=a0_0x1f1c17;(_0x26a3e6['has']('menus')||_0x26a3e6[_0x5cddd2(0x1e9)]('page')||_0x26a3e6[_0x5cddd2(0x1e9)](_0x5cddd2(0x1d9)))&&this[_0x5cddd2(0x1f0)](),_0x26a3e6[_0x5cddd2(0x1e9)](_0x5cddd2(0x1e8))&&(_0x5cddd2(0x1e7)==this[_0x5cddd2(0x1e8)]?this[_0x5cddd2(0x1dc)]('landscape'):this[_0x5cddd2(0x1cb)](_0x5cddd2(0x1ec),!0x0)),_0x26a3e6[_0x5cddd2(0x1e9)](_0x5cddd2(0x1ee))&&this[_0x5cddd2(0x1e5)](this[_0x5cddd2(0x1ee)]);}[a0_0x1f1c17(0x1e2)](_0xc72a21){var _0x5cb4d5=a0_0x1f1c17;this[_0x5cb4d5(0x1dd)]=_0xc72a21[_0x5cb4d5(0x1e6)][_0x5cb4d5(0x1dd)],this[_0x5cb4d5(0x1d9)]=_0xc72a21[_0x5cb4d5(0x1e6)][_0x5cb4d5(0x1d9)],this[_0x5cb4d5(0x1cc)]=_0xc72a21[_0x5cb4d5(0x1e0)][_0x5cb4d5(0x1cc)]||[],this[_0x5cb4d5(0x1ee)]=_0xc72a21[_0x5cb4d5(0x1e0)]['slotTemplate'];}['_findActivePage'](){var _0x2a1cb2=a0_0x1f1c17,_0x508b5e,_0x2ba4ad=this[_0x2a1cb2(0x1d9)]?this[_0x2a1cb2(0x1dd)]+'/'+this[_0x2a1cb2(0x1d9)]:this[_0x2a1cb2(0x1dd)],_0x90f6cf=this[_0x2a1cb2(0x1cc)]||[];this['_activeTopLevel']=_0x90f6cf[_0x2a1cb2(0x1d2)](_0x4242b5=>isActiveMenu(_0x4242b5,_0x2ba4ad)?(_0x508b5e=_0x4242b5,!0x0):_0x4242b5[_0x2a1cb2(0x1cc)]?!!(_0x508b5e=_0x4242b5['menus']['find'](_0xeb913=>isActiveMenu(_0xeb913,_0x2ba4ad))):void 0x0),this[_0x2a1cb2(0x1ca)]=_0x2ba4ad,this[_0x2a1cb2(0x1de)]=_0x508b5e||this[_0x2a1cb2(0x1d1)];}}customElements[a0_0x1f1c17(0x1db)](a0_0x1f1c17(0x1f3),DynamicMenuPart);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x5d21(_0x1402ee,_0xa16a7a){const _0x1a46b7=a0_0x1a46();return a0_0x5d21=function(_0x5d2163,_0xbe7f0f){_0x5d2163=_0x5d2163-0xe7;let _0x343baa=_0x1a46b7[_0x5d2163];return _0x343baa;},a0_0x5d21(_0x1402ee,_0xa16a7a);}(function(_0x4577c1,_0x226cb0){const _0x106e58=a0_0x5d21,_0x9cf6d8=_0x4577c1();while(!![]){try{const _0x4d38b3=parseInt(_0x106e58(0xed))/0x1+-parseInt(_0x106e58(0xef))/0x2*(parseInt(_0x106e58(0xeb))/0x3)+parseInt(_0x106e58(0xec))/0x4*(parseInt(_0x106e58(0xea))/0x5)+-parseInt(_0x106e58(0xe8))/0x6+-parseInt(_0x106e58(0xe9))/0x7+parseInt(_0x106e58(0xee))/0x8*(-parseInt(_0x106e58(0xf0))/0x9)+parseInt(_0x106e58(0xe7))/0xa;if(_0x4d38b3===_0x226cb0)break;else _0x9cf6d8['push'](_0x9cf6d8['shift']());}catch(_0x3f1ec3){_0x9cf6d8['push'](_0x9cf6d8['shift']());}}}(a0_0x1a46,0x4dd90));import{css}from'lit';function a0_0x1a46(){const _0x5dc049=['132930CBGDEM','1002533ngALbF','10wzEsIQ','18JvsWIU','608108ZEnBZs','234139GNjmvK','8fYJyHB','156186ZuqPHg','4612446czyiYm','9270970WrYSru'];a0_0x1a46=function(){return _0x5dc049;};return a0_0x1a46();}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_0x20dc6b=a0_0x3ed7;(function(_0x5d6a31,_0x350bef){const _0xf154a=a0_0x3ed7,_0x51048e=_0x5d6a31();while(!![]){try{const _0x3f414c=-parseInt(_0xf154a(0x171))/0x1+-parseInt(_0xf154a(0x16f))/0x2+parseInt(_0xf154a(0x163))/0x3+parseInt(_0xf154a(0x16d))/0x4+parseInt(_0xf154a(0x165))/0x5+-parseInt(_0xf154a(0x154))/0x6+-parseInt(_0xf154a(0x152))/0x7*(-parseInt(_0xf154a(0x174))/0x8);if(_0x3f414c===_0x350bef)break;else _0x51048e['push'](_0x51048e['shift']());}catch(_0x4e2cfd){_0x51048e['push'](_0x51048e['shift']());}}}(a0_0x35b0,0xcb425));import'@material/mwc-icon';import{html,LitElement}from'lit';import{navigate}from'@operato/shell';function a0_0x3ed7(_0x2378e1,_0x4ad916){const _0x35b089=a0_0x35b0();return a0_0x3ed7=function(_0x3ed7bb,_0x4c18fe){_0x3ed7bb=_0x3ed7bb-0x152;let _0xa588d2=_0x35b089[_0x3ed7bb];return _0xa588d2;},a0_0x3ed7(_0x2378e1,_0x4ad916);}import{ScrollbarStyles}from'@operato/styles';import{DynamicMenuPortraitStyles}from'./dynamic-menu-portrait-styles';function a0_0x35b0(){const _0x5c7bf4=['#force','target','firstUpdated','stopPropagation','closest','renderMenus','dynamic-menu-portrait','properties','function','activeTopLevel','addEventListener','length','21402SmaptZ','setAttribute','232005TFGSZM','preventDefault','styles','transitionend','call','menu','renderRoot','map','2276748zXivWo','dispatchEvent','1266918oRtDty','render','156982QMMxFy','group','settled','624752kyxZZs','217XOYLyl','define','8523876VHcHeQ','href','path'];a0_0x35b0=function(){return _0x5c7bf4;};return a0_0x35b0();}export class DynamicMenuPortrait extends LitElement{static get[a0_0x20dc6b(0x167)](){return[ScrollbarStyles,DynamicMenuPortraitStyles];}static get[a0_0x20dc6b(0x15e)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}['renderMenus'](_0x15049,_0x17d6eb,_0x2b43ce){const _0x9dc63b=a0_0x20dc6b;return html`
|
|
2
2
|
<ul>
|
|
3
|
-
${
|
|
4
|
-
<li ?active=${
|
|
5
|
-
<a href=${
|
|
6
|
-
${
|
|
7
|
-
<mwc-icon>${
|
|
8
|
-
${
|
|
3
|
+
${_0x15049[_0x9dc63b(0x16c)](_0x44ad6b=>{const _0x1a546e=_0x9dc63b;var {type:_0x2288af,active:_0x1110d4,path:_0xfd481d,name:_0x38a319,badge:_0x198608,icon:_0x1d3711,menus:_0x59c60c}=_0x44ad6b;return _0x1110d4=!(!_0x1110d4||_0x1a546e(0x15f)!=typeof _0x1110d4)&&_0x1110d4[_0x1a546e(0x169)](_0x44ad6b,{'path':this[_0x1a546e(0x156)]}),_0x198608='function'==typeof _0x198608?_0x198608[_0x1a546e(0x169)](_0x44ad6b):_0x198608??!0x1,_0x1a546e(0x172)==_0x2288af?html`<li group-label>${_0x38a319}</li>`:html`
|
|
4
|
+
<li ?active=${_0x17d6eb?_0x44ad6b===_0x17d6eb:_0x1110d4} .menu=${_0x44ad6b} menu>
|
|
5
|
+
<a href=${_0xfd481d||'#'}>
|
|
6
|
+
${_0x59c60c?.[_0x1a546e(0x162)]>0x0?html` <mwc-icon submenu-button></mwc-icon> `:html``}
|
|
7
|
+
<mwc-icon>${_0x1d3711}</mwc-icon>
|
|
8
|
+
${_0x38a319} ${!0x1!==_0x198608?html`<div badge>${_0x198608}</div>`:html``}
|
|
9
9
|
</a>
|
|
10
|
-
${
|
|
10
|
+
${_0x59c60c&&this['renderMenus'](_0x59c60c,_0x2b43ce)}
|
|
11
11
|
</li>
|
|
12
12
|
`;})}
|
|
13
13
|
</ul>
|
|
14
|
-
`;}[
|
|
14
|
+
`;}[a0_0x20dc6b(0x170)](){const _0x27b1ae=a0_0x20dc6b,{menus:_0x4702fb,activeTopLevel:_0x5f5d97,activeMenu:_0x3d6702}=this;return this[_0x27b1ae(0x15c)](_0x4702fb,_0x5f5d97,_0x3d6702);}[a0_0x20dc6b(0x159)](){const _0x478f1b=a0_0x20dc6b;this['renderRoot'][_0x478f1b(0x161)]('click',_0x5bb88b=>{const _0x49c975=_0x478f1b,_0x54d9fe=_0x5bb88b[_0x49c975(0x158)][_0x49c975(0x15b)]('[menu]');if(_0x54d9fe?.[_0x49c975(0x16a)]){let _0xd969d=_0x54d9fe[_0x49c975(0x16a)];_0xd969d[_0x49c975(0x156)]||(_0x5bb88b[_0x49c975(0x15a)](),_0x5bb88b[_0x49c975(0x166)]()),this[_0x49c975(0x16e)](new CustomEvent('active-toplevel',{'bubbles':!0x0,'detail':this[_0x49c975(0x160)]===_0xd969d?void 0x0:_0xd969d}));}let _0x4e4471=_0x5bb88b[_0x49c975(0x158)][_0x49c975(0x155)];_0x4e4471&&location[_0x49c975(0x155)]===_0x4e4471&&navigate(_0x4e4471+_0x49c975(0x157),!0x0);}),this[_0x478f1b(0x16b)][_0x478f1b(0x161)]('transitionstart',_0x5101b4=>{const _0x3b03aa=_0x478f1b;_0x5101b4[_0x3b03aa(0x158)]['removeAttribute'](_0x3b03aa(0x173));}),this[_0x478f1b(0x16b)][_0x478f1b(0x161)](_0x478f1b(0x168),_0x39c0c4=>{const _0xed154b=_0x478f1b;_0x39c0c4[_0xed154b(0x158)][_0xed154b(0x164)](_0xed154b(0x173),'');});}}customElements[a0_0x20dc6b(0x153)](a0_0x20dc6b(0x15d),DynamicMenuPortrait);
|