@things-factory/meta-ui 6.1.26 → 6.1.29
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/bootstrap.js +1 -3
- package/client/component/filter/filter-form-meta-code-select.js +10 -10
- package/client/component/filter/filter-form-meta-object-select.js +10 -10
- package/client/component/filter/filter-grist-meta-code-select.js +9 -9
- package/client/component/filter/filter-grist-meta-object-select.js +9 -9
- package/client/component/grist/editor/grist-editor-code-input.js +6 -6
- package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
- package/client/component/grist/editor/grist-editor-meta-object-selector.js +7 -7
- package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
- package/client/component/popup/code-input-editor-popup.js +10 -10
- package/client/component/popup/meta-object-selector-popup.js +11 -11
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +1 -1
- package/client/mixin/meta-main-tab-mixin.js +1 -1
- package/client/mixin/meta-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-detail-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/activity/meta-activity-list-page.js +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-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 +102 -102
- 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 +2 -2
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +11 -11
- package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +5 -5
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-activity/meta-activity-mutation.js +1 -1
- package/server/service/meta-activity/meta-activity-query.js +1 -1
- package/server/service/meta-activity/meta-activity-type.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
- package/server/service/work-code/work-code-mutation.js +1 -1
- package/server/service/work-code/work-code-query.js +1 -1
- package/server/service/work-code/work-code-type.js +1 -1
- package/server/service/work-code/work-code.js +1 -1
- package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
- package/server/service/work-code-detail/work-code-detail-query.js +1 -1
- package/server/service/work-code-detail/work-code-detail-type.js +1 -1
- package/server/service/work-code-detail/work-code-detail.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x455fe5=a0_0x2da6;(function(_0x32e744,_0x12c0fa){const _0x5da475=a0_0x2da6,_0x4f30a7=_0x32e744();while(!![]){try{const _0x3c6f45=parseInt(_0x5da475(0xd7))/0x1*(-parseInt(_0x5da475(0x11e))/0x2)+parseInt(_0x5da475(0x128))/0x3*(-parseInt(_0x5da475(0xd6))/0x4)+-parseInt(_0x5da475(0xf9))/0x5*(parseInt(_0x5da475(0xe8))/0x6)+parseInt(_0x5da475(0xce))/0x7+parseInt(_0x5da475(0x109))/0x8+parseInt(_0x5da475(0xe5))/0x9+parseInt(_0x5da475(0x103))/0xa;if(_0x3c6f45===_0x12c0fa)break;else _0x4f30a7['push'](_0x4f30a7['shift']());}catch(_0x22af8d){_0x4f30a7['push'](_0x4f30a7['shift']());}}}(a0_0x463d,0x48c57));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_0x3d6cff from'graphql-tag';import{ValueUtil}from'./value-util';function a0_0x463d(){const _0x2eeb79=['codeItems','parent','searchByPagination','imex','dirtyRecords','details','findIndex','HIDDEN-PAGE','draft-list','records','map','object','1364748GpMoIx','active','findOne','parse','title','buildArgs','confirm','length','92GiuQMR','218843osUfcM','exportableData','unshift','text.nothing_selected','showGraphqlErrorResponse','join','id,template','hiddenFlag','myDynamicMenus','result','menu.id','resourceUrl','delete','\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','3095811rxHbjB','__seq__','split','1256196RlzTpa','searchMyDynamicMenus','SCREEN','splice','cuFlag','getCodeSelectorData','query','path','updatedAt','type','isArray','filter','reduce','HOME','MENU','updater','children','10qtXXRZ','template','cancel','__selected__','badge','showToast','test','display','approval-pending-list','Graphql\x20Error','2275740WjWRlB','find','deleteListByGristSelected','updateMultipleData','_config','showAlertPopup','2370000kxRAqL','__dirtyfields__','runScenario','menuType','patchesForUpdateMultiple','text.nothing_changed','sort','key','tText','routing','getWorkCodeByName','numberOfToDos','iconPath','total','deleteListByIds','fetch','numberOfDrafts','error','extensions','push','getCodeByEntity','2lKCZZa','__dirty__','dispatch','noteq','gutter','undefined','description','\x0a\x20\x20\x20\x20','__origin__','data','16581KfCOfk','isEmpty','columns','rank','record','networkError','success\x20to\x20process','getSelectedIdList','showGraphqlException','forEach','updateMultiple','menus','value','GROUP','errors','\x0a\x20\x20\x20\x20\x20\x20','checkClientError','question','text.NOTHING_CHANGED','name','tMenu','info','selected','group','callScenario','hidden','category','includes'];a0_0x463d=function(){return _0x2eeb79;};return a0_0x463d();}function a0_0x2da6(_0x176f9a,_0x3e95c9){const _0x463d79=a0_0x463d();return a0_0x2da6=function(_0x2da69f,_0x3d0e5b){_0x2da69f=_0x2da69f-0xba;let _0x12e3c3=_0x463d79[_0x2da69f];return _0x12e3c3;},a0_0x2da6(_0x176f9a,_0x3e95c9);}import{asyncReplace}from'lit/directives/async-replace.js';import a0_0x52cdeb from'i18next';import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';export class ServiceUtil{static async[a0_0x455fe5(0xc2)](_0xe6f58){const _0x2e793b=a0_0x455fe5;if(Array[_0x2e793b(0xf2)](_0xe6f58))return _0xe6f58[_0x2e793b(0xcc)](_0x4411eb=>_0x2e793b(0xcd)==typeof _0x4411eb?{'name':_0x4411eb[_0x2e793b(0x134)],'description':_0x4411eb[_0x2e793b(0x100)]}:{'name':_0x4411eb,'description':_0x4411eb});let _0x290a37=await ServiceUtil[_0x2e793b(0x113)](_0xe6f58);return _0x290a37&&_0x290a37[_0x2e793b(0xd5)]>0x0?_0x290a37:await getCodeByName(_0xe6f58);}static async[a0_0x455fe5(0x113)](_0x437a4c){const _0x7f1518=a0_0x455fe5,_0x379726=await client['query']({'query':a0_0x3d6cff`
|
|
2
2
|
query workCodeByName($name: String!) {
|
|
3
3
|
workCodeByName(name: $name) {
|
|
4
4
|
details {
|
|
@@ -8,32 +8,32 @@ const a0_0x5a4c11=a0_0x1647;(function(_0xc92de2,_0x3b14cb){const _0x147947=a0_0x
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
`,'variables':{'name':
|
|
11
|
+
`,'variables':{'name':_0x437a4c},'context':gqlContext()});return!_0x379726[_0x7f1518(0x136)]&&_0x379726[_0x7f1518(0x127)]['workCodeByName']&&_0x379726[_0x7f1518(0x127)]['workCodeByName']['details']?_0x379726['data']['workCodeByName'][_0x7f1518(0xc7)][_0x7f1518(0x10f)]((_0x69d357,_0x40a243)=>_0x69d357['rank']-_0x40a243[_0x7f1518(0x12b)]):[];}static async[a0_0x455fe5(0xed)](_0x1135c2){const _0x35da84=a0_0x455fe5;let _0x1057f2=(await ServiceUtil['codeItems'](_0x1135c2))[_0x35da84(0xcc)](_0x378dad=>({'value':_0x378dad['name'],'display':_0x378dad[_0x35da84(0x124)]}));return _0x1057f2['unshift']({'value':'','display':''}),_0x1057f2;}static async['getCodeByScenario'](_0x19b129,_0x2edc8d){const _0x3eec64=a0_0x455fe5;let _0x444d5a=await ServiceUtil[_0x3eec64(0xbe)](null,_0x19b129,_0x2edc8d);return _0x444d5a[_0x3eec64(0xd9)]({'value':'','display':''}),_0x444d5a['map'](_0xb37576=>({'value':_0xb37576['name'],'display':_0xb37576[_0x3eec64(0x124)]}));}static async[a0_0x455fe5(0x11d)]({queryName:_0x1aed8a,codeField:_0x5f19d2='name',dispField:_0x287ff3='description',filters:_0x2cfb3d=[],sorters:_0x3f02d3=[]}){const _0xde3de9=a0_0x455fe5;let _0x37b9e6=_0x287ff3[_0xde3de9(0xe7)](','),_0x898a7a=_0xde3de9(0x137)+_0x5f19d2+_0xde3de9(0x137)+_0x37b9e6['join']('\x0a')+_0xde3de9(0x125),_0x15e600=await ServiceUtil[_0xde3de9(0xc4)](_0x1aed8a,_0x2cfb3d,_0x3f02d3,0x0,0x0,_0x898a7a),_0x4aa461=[{'value':'','display':''}];return _0x15e600[_0xde3de9(0xcb)]['forEach'](_0x34bb99=>{const _0x9c916e=_0xde3de9;_0x4aa461[_0x9c916e(0x11c)]({'value':_0x34bb99[_0x5f19d2],'display':_0x37b9e6['map'](_0x335602=>_0x34bb99[_0x335602])[_0x9c916e(0xdc)]('-')});}),_0x4aa461;}static async[a0_0x455fe5(0xdf)](){const _0x194e67=a0_0x455fe5;let _0x38550e=await ServiceUtil[_0x194e67(0xe9)]();return null!=_0x38550e?ServiceUtil['arrangeMenuRoutes'](_0x38550e):null;}static async['searchMenuGridPersnalTemplate'](_0x10af91){const _0x535926=a0_0x455fe5;let _0x5ec07f=[{'name':_0x535926(0xe1),'operator':'eq','value':_0x10af91}],_0x89e0f6=await ServiceUtil['searchByPagination']('gridPersonalizeTemplates',_0x5ec07f,[],0x0,0x0,_0x535926(0xdd));return 0x0==_0x89e0f6['total']?{}:{'id':_0x89e0f6[_0x535926(0xcb)][0x0]['id'],'template':JSON[_0x535926(0xd1)](_0x89e0f6[_0x535926(0xcb)][0x0][_0x535926(0xfa)])};}static['arrangeMenuRoutes'](_0x2d27a0){const _0x117538=a0_0x455fe5;let _0x32ea7f=[];_0x2d27a0[_0x117538(0x131)](_0x21dee1=>{const _0x2d74e7=_0x117538;_0x32ea7f[_0x2d74e7(0x11c)](_0x21dee1),_0x21dee1['children']&&(_0x21dee1[_0x2d74e7(0xf8)][_0x2d74e7(0x10f)](function(_0x1d49b9,_0x5cede0){const _0x48b305=_0x2d74e7;return _0x1d49b9[_0x48b305(0x12b)]-_0x5cede0[_0x48b305(0x12b)];}),_0x21dee1[_0x2d74e7(0xf8)][_0x2d74e7(0x131)](_0x198f46=>{const _0x4a86b5=_0x2d74e7;0x1!=_0x198f46[_0x4a86b5(0xde)]&&(_0x198f46['parent']=_0x21dee1,_0x32ea7f[_0x4a86b5(0x11c)](_0x198f46));}));});let _0x439a2c=_0x32ea7f['map'](_0x5ac8ab=>{const _0x1fcf6d=_0x117538;if(_0x1fcf6d(0x135)==_0x5ac8ab[_0x1fcf6d(0x10c)]||_0x1fcf6d(0xf6)==_0x5ac8ab[_0x1fcf6d(0x10c)]){let _0x5b5014={'id':_0x5ac8ab['id'],'parent':!0x0,'name':TermsUtil[_0x1fcf6d(0xba)](_0x5ac8ab['name']),'icon':_0x5ac8ab['iconPath'],'type':'GROUP'==_0x5ac8ab[_0x1fcf6d(0x10c)]?_0x1fcf6d(0xbd):'','menus':[]};return _0x5ac8ab['routing']&&(_0x5b5014['path']=_0x5ac8ab['routing']),_0x5b5014;}return{'id':'0'};})[_0x117538(0xf3)](_0x164609=>'0'!=_0x164609['id']),_0x48063b=_0x32ea7f[_0x117538(0xcc)](_0xe47084=>{const _0x3c6d30=_0x117538;if(_0x3c6d30(0xea)==_0xe47084['menuType']||_0x3c6d30(0xc9)==_0xe47084[_0x3c6d30(0x10c)]){let _0x43ce59=_0x439a2c[_0x3c6d30(0x104)](_0x450d70=>_0x450d70['id']==_0xe47084[_0x3c6d30(0xc3)]['id']);if(_0x43ce59){let _0x27bfb2=TermsUtil[_0x3c6d30(0xba)](_0xe47084[_0x3c6d30(0x13b)]);return _0x3c6d30(0xea)==_0xe47084[_0x3c6d30(0x10c)]&&_0x43ce59[_0x3c6d30(0x133)][_0x3c6d30(0x11c)]({'id':_0xe47084['id'],'name':_0x27bfb2,'path':_0xe47084[_0x3c6d30(0x112)],'icon':_0xe47084[_0x3c6d30(0x115)]}),{'id':_0xe47084['id'],'parent':!0x1,'parent_id':_0x43ce59['id'],'title':_0x27bfb2,'tagname':_0xe47084[_0x3c6d30(0xc0)],'page':_0xe47084[_0x3c6d30(0x112)],'template':_0xe47084[_0x3c6d30(0xe2)],'routing_type':_0xe47084['routingType']};}return{'id':'0'};}return _0x3c6d30(0xf5)==_0xe47084[_0x3c6d30(0x10c)]?{'id':_0xe47084['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil[_0x3c6d30(0xba)](_0xe47084[_0x3c6d30(0x13b)]),'tagname':_0xe47084[_0x3c6d30(0xc0)],'page':_0xe47084[_0x3c6d30(0x112)],'template':_0xe47084[_0x3c6d30(0xe2)],'routing_type':_0xe47084['routingType']}:{'id':'0'};})[_0x117538(0xf3)](_0x3f1082=>null!=_0x3f1082&&'0'!=_0x3f1082['id']);_0x439a2c[_0x117538(0xf3)](_0x371d15=>_0x117538(0xbd)==_0x371d15[_0x117538(0xf1)]&&_0x371d15['menus']&&_0x371d15['menus']['length']>0x0)[_0x117538(0x131)](_0x14e12f=>{const _0x5f9e9b=_0x117538;let _0x4633a4=_0x439a2c[_0x5f9e9b(0xc8)](_0x45653d=>_0x45653d['id']==_0x14e12f['id'])+0x1;_0x439a2c[_0x5f9e9b(0xeb)](_0x4633a4,0x0,..._0x14e12f[_0x5f9e9b(0x133)]);});let _0x24e59c=0x0;return _0x439a2c['forEach'](_0x1da9c9=>{const _0x31fd80=_0x117538;'todo-list'==_0x1da9c9[_0x31fd80(0xef)]?(_0x24e59c++,_0x1da9c9[_0x31fd80(0xfd)]=()=>asyncReplace(generateActivitySummary(_0x31fd80(0x114))),_0x1da9c9[_0x31fd80(0xcf)]=({path:_0x536575})=>/^activity\//[_0x31fd80(0xff)](_0x536575)):_0x31fd80(0x101)==_0x1da9c9[_0x31fd80(0xef)]?(_0x24e59c++,_0x1da9c9[_0x31fd80(0xfd)]=()=>asyncReplace(generateActivitySummary('numberOfApprovalPendings')),_0x1da9c9[_0x31fd80(0xcf)]=({path:_0x5ba905})=>/^activity\//[_0x31fd80(0xff)](_0x5ba905)):_0x31fd80(0xca)==_0x1da9c9['path']&&(_0x24e59c++,_0x1da9c9[_0x31fd80(0xfd)]=()=>asyncReplace(generateActivitySummary(_0x31fd80(0x119))));}),_0x24e59c>0x0&&startSubscribeActivitySummary(),{'menus':_0x439a2c,'routes':_0x48063b};}static async[a0_0x455fe5(0xe9)](){const _0x4cd528=a0_0x455fe5;let _0x3afb9a=await ServiceUtil[_0x4cd528(0xc4)](_0x4cd528(0x133),[{'name':_0x4cd528(0xde),'operator':_0x4cd528(0x121),'value':!0x0},{'name':_0x4cd528(0x10c),'operator':'in','value':[_0x4cd528(0xf5),'MENU','GROUP']}],[{'name':_0x4cd528(0x12b)}],0x0,0x0,_0x4cd528(0xe4));return _0x3afb9a?_0x3afb9a[_0x4cd528(0xcb)]:[];}static async[a0_0x455fe5(0xdb)](_0x312199){const _0x31a912=a0_0x455fe5;if(_0x312199['errors']&&_0x312199[_0x31a912(0x136)][_0x31a912(0xd5)]>0x0){let _0x525cd6=_0x312199['errors'][0x0],_0x1ec8c2=_0x525cd6['message'],_0x4f0bbc=_0x525cd6['message'];_0x525cd6['extensions']&&(_0x4f0bbc=_0x525cd6[_0x31a912(0x11b)]['code']),await UiUtil[_0x31a912(0x108)](_0x4f0bbc,_0x1ec8c2,_0x31a912(0x11a),_0x31a912(0xd4));}}static async[a0_0x455fe5(0x130)](_0x19492b){const _0x269618=a0_0x455fe5;_0x19492b&&(_0x19492b['networkError']&&_0x19492b['networkError'][_0x269618(0xe0)]?await ServiceUtil[_0x269618(0xdb)](_0x19492b[_0x269618(0x12d)]['result']):await UiUtil[_0x269618(0x108)](_0x269618(0x102),_0x19492b['message'],_0x269618(0x11a),_0x269618(0xd4)));}static async[a0_0x455fe5(0xd8)](_0x113d8d,_0x52167b,_0x35d3b3){const _0x2aeece=a0_0x455fe5;var _0x17118e=_0x35d3b3[_0x2aeece(0x107)][_0x2aeece(0x12a)]['filter'](_0x327834=>_0x2aeece(0x122)!==_0x327834[_0x2aeece(0xf1)]&&void 0x0!==_0x327834[_0x2aeece(0x12c)]&&void 0x0!==_0x327834[_0x2aeece(0xc5)]&&!0x0!==_0x327834[_0x2aeece(0xbf)])[_0x2aeece(0xcc)](_0x47f12f=>_0x47f12f['imex']),_0x3d9e16=_0x35d3b3[_0x2aeece(0x127)][_0x2aeece(0xcb)][_0x2aeece(0xcc)](_0x39b33b=>({..._0x35d3b3[_0x2aeece(0x107)][_0x2aeece(0x12a)][_0x2aeece(0xf3)](_0x2288a3=>'gutter'!==_0x2288a3[_0x2aeece(0xf1)]&&void 0x0!==_0x2288a3[_0x2aeece(0x12c)]&&void 0x0!==_0x2288a3[_0x2aeece(0xc5)]&&!0x0!==_0x2288a3[_0x2aeece(0xbf)])[_0x2aeece(0xf4)]((_0x52e50a,_0x18bb0d)=>(_0x52e50a[_0x18bb0d['imex'][_0x2aeece(0x110)]]=_0x18bb0d[_0x2aeece(0xc5)][_0x2aeece(0x110)]['split']('.')[_0x2aeece(0xf4)]((_0xb95d99,_0x191d9f)=>_0xb95d99&&_0x2aeece(0x123)!==_0xb95d99[_0x191d9f]?_0xb95d99[_0x191d9f]:void 0x0,_0x39b33b),_0x52e50a),{})}));if(!_0x113d8d)return{'header':_0x17118e,'data':_0x3d9e16};store[_0x2aeece(0x120)]({'type':EXPORT,'exportable':{'extension':'xlsx','name':_0x52167b,'data':{'header':_0x17118e,'data':_0x3d9e16}}});}static async[a0_0x455fe5(0xc4)](_0x3ea4b2,_0x35728d,_0x15173b,_0x149dc4,_0x4f0939,_0x535171){const _0x1e9e9e=a0_0x455fe5;try{const _0x161184=await client[_0x1e9e9e(0xee)]({'query':a0_0x3d6cff`
|
|
12
12
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
13
|
-
${
|
|
13
|
+
${_0x3ea4b2}(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
14
14
|
items {
|
|
15
|
-
${
|
|
15
|
+
${_0x535171}
|
|
16
16
|
}
|
|
17
17
|
total
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,'variables':{'filters':
|
|
20
|
+
`,'variables':{'filters':_0x35728d,'sortings':_0x15173b,'pagination':{'page':_0x149dc4,'limit':_0x4f0939}}});if(!_0x161184[_0x1e9e9e(0x136)])return{'records':_0x161184[_0x1e9e9e(0x127)][_0x3ea4b2]['items'],'total':_0x161184[_0x1e9e9e(0x127)][_0x3ea4b2][_0x1e9e9e(0x116)]};ServiceUtil[_0x1e9e9e(0xdb)](_0x161184);}catch(_0x20b39e){ServiceUtil['showGraphqlException'](_0x20b39e);}return null;}static async[a0_0x455fe5(0xd0)](_0x25c772,_0x48b04d,_0xcbeff8){const _0x179a96=a0_0x455fe5;try{let _0x62924=await client['query']({'query':a0_0x3d6cff`
|
|
21
21
|
query ($id: String!) {
|
|
22
|
-
${
|
|
23
|
-
${
|
|
22
|
+
${_0x25c772}(id: $id) {
|
|
23
|
+
${_0xcbeff8}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,'variables':{'id':
|
|
26
|
+
`,'variables':{'id':_0x48b04d}});if(!_0x62924[_0x179a96(0x136)])return _0x62924[_0x179a96(0x127)][_0x25c772]||{};ServiceUtil[_0x179a96(0xdb)](_0x62924);}catch(_0xb90667){ServiceUtil[_0x179a96(0x130)](_0xb90667);}return null;}static['getSelectedIdList'](_0x95405a,_0x5d8fe2){const _0x409ef1=a0_0x455fe5,_0x41cf82=_0x95405a[_0x409ef1(0xbc)][_0x409ef1(0xcc)](_0xdf2135=>_0xdf2135['id']);return ValueUtil[_0x409ef1(0x129)](_0x41cf82)&&0x1==_0x5d8fe2&&UiUtil[_0x409ef1(0x108)](_0x409ef1(0xda),'text.there_is_nothing_to_delete',_0x409ef1(0xbb),'confirm'),_0x41cf82;}static async[a0_0x455fe5(0x105)](_0xe93cd9,_0x35b84f){const _0xcc9215=a0_0x455fe5;let _0x2c03ee=ServiceUtil[_0xcc9215(0x12f)](_0xe93cd9,!0x0);ValueUtil['isNotEmpty'](_0x2c03ee)&&(await ServiceUtil['deleteListByIds'](_0x2c03ee,_0x35b84f)&&_0xe93cd9[_0xcc9215(0x118)]());}static async[a0_0x455fe5(0x117)](_0x5d0b76,_0x2015c2){const _0x264819=a0_0x455fe5;if(!(await UiUtil[_0x264819(0x108)]('button.delete','text.are_you_sure',_0x264819(0x139),_0x264819(0xe3),_0x264819(0xfb)))['value'])return!0x1;try{const _0x2d51fc=await client[_0x264819(0xee)]({'query':a0_0x3d6cff`
|
|
27
27
|
mutation {
|
|
28
|
-
${
|
|
28
|
+
${_0x2015c2}(${gqlBuilder['buildArgs']({'ids':_0x5d0b76})})
|
|
29
29
|
}
|
|
30
|
-
`});if(!
|
|
30
|
+
`});if(!_0x2d51fc['errors'])return UiUtil[_0x264819(0xfe)]('info',TermsUtil[_0x264819(0x111)]('success\x20to\x20delete')),!0x0;ServiceUtil[_0x264819(0xdb)](_0x2d51fc);}catch(_0x38a6e2){ServiceUtil[_0x264819(0x130)](_0x38a6e2);}return!0x1;}static async[a0_0x455fe5(0x106)](_0x20ecd7,_0x52a86f){const _0x18b66f=a0_0x455fe5;let _0x21e6cb=ServiceUtil[_0x18b66f(0x10d)](_0x20ecd7);if(ValueUtil['isNotEmpty'](_0x21e6cb)){let _0x21ba8e=await ServiceUtil[_0x18b66f(0x132)](_0x52a86f,_0x21e6cb);if(_0x21ba8e)return _0x20ecd7['fetch'](),_0x21ba8e;}return!0x1;}static async[a0_0x455fe5(0x132)](_0x5a0b2b,_0x5f55a4){const _0x2c528b=a0_0x455fe5;try{const _0x3c5c37=await client['query']({'query':a0_0x3d6cff`
|
|
31
31
|
mutation {
|
|
32
|
-
${
|
|
32
|
+
${_0x5a0b2b}(${gqlBuilder[_0x2c528b(0xd3)]({'patches':_0x5f55a4})}) {
|
|
33
33
|
id
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
`,'context':{'hasUpload':!0x0}});if(!
|
|
36
|
+
`,'context':{'hasUpload':!0x0}});if(!_0x3c5c37[_0x2c528b(0x136)])return UiUtil[_0x2c528b(0xfe)](_0x2c528b(0xbb),TermsUtil['tText']('success\x20to\x20save')),!0x0;ServiceUtil[_0x2c528b(0xdb)](_0x3c5c37);}catch(_0x2bc3d5){ServiceUtil[_0x2c528b(0x130)](_0x2bc3d5);}return!0x1;}static[a0_0x455fe5(0x10d)](_0x511ccf,_0x199209=!0x1){const _0x54e833=a0_0x455fe5;let _0x358c06=_0x511ccf[_0x54e833(0xc6)];if(_0x358c06&&0x0!=_0x358c06[_0x54e833(0xd5)])return _0x358c06[_0x54e833(0xcc)](_0xe55dab=>{const _0x24288f=_0x54e833;let _0x339283=_0xe55dab['id']?{'id':_0xe55dab['id']}:{};for(let _0x5d2674 in _0xe55dab)['creator',_0x24288f(0xf7),'createdAt',_0x24288f(0xf0),_0x24288f(0x11f),_0x24288f(0x10a),_0x24288f(0x126),_0x24288f(0xe6),_0x24288f(0xfc)][_0x24288f(0xc1)](_0x5d2674)||(_0xe55dab[_0x5d2674]&&_0x24288f(0xcd)==typeof _0xe55dab[_0x5d2674]&&0x0==_0x199209?_0x339283[_0x5d2674]={'id':_0xe55dab[_0x5d2674]['id']}:_0x339283[_0x5d2674]=_0xe55dab[_0x5d2674]);return _0x339283[_0x24288f(0xec)]=_0xe55dab[_0x24288f(0x11f)],_0x339283;});UiUtil[_0x54e833(0x108)](_0x54e833(0x10e),_0x54e833(0x13a),_0x54e833(0xbb),_0x54e833(0xd4));}static async['callScenario'](_0x1762d5,_0x35281e,_0x2a8767,_0x3d8903=!0x0){const _0x1896a9=a0_0x455fe5;let _0x168c9e=!0x0;_0x1762d5&&!0x0===_0x3d8903&&(_0x168c9e=(await UiUtil['showAlertPopup']('button.'+_0x1762d5,'text.are_you_sure','question',_0x1896a9(0xd4),_0x1896a9(0xfb)))[_0x1896a9(0x134)]);if(_0x168c9e)try{const _0x1f9cca=await client[_0x1896a9(0xee)]({'query':a0_0x3d6cff`
|
|
37
37
|
mutation ($scenarioName: String!, $variables: Object) {
|
|
38
38
|
runScenario(scenarioName: $scenarioName, variables: $variables) {
|
|
39
39
|
state
|
|
@@ -42,4 +42,4 @@ const a0_0x5a4c11=a0_0x1647;(function(_0xc92de2,_0x3b14cb){const _0x147947=a0_0x
|
|
|
42
42
|
__typename
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
`,'variables':{'scenarioName':
|
|
45
|
+
`,'variables':{'scenarioName':_0x35281e,'variables':_0x2a8767}});if(_0x1f9cca[_0x1896a9(0x136)])ServiceUtil[_0x1896a9(0xdb)](_0x1f9cca);else{if(this[_0x1896a9(0x138)](_0x1f9cca))return!0x0===_0x3d8903&&UiUtil[_0x1896a9(0xfe)](_0x1896a9(0xbb),TermsUtil[_0x1896a9(0x111)](_0x1896a9(0x12e))),_0x1f9cca;}}catch(_0x4d92ac){ServiceUtil['showGraphqlException'](_0x4d92ac);}return!0x1;}static[a0_0x455fe5(0x138)](_0x2d5345){const _0xc6e651=a0_0x455fe5;if(_0x2d5345&&_0x2d5345[_0xc6e651(0x127)]&&_0x2d5345[_0xc6e651(0x127)][_0xc6e651(0x10b)]&&_0x2d5345[_0xc6e651(0x127)][_0xc6e651(0x10b)][_0xc6e651(0x127)]&&_0x2d5345[_0xc6e651(0x127)][_0xc6e651(0x10b)][_0xc6e651(0x127)][_0xc6e651(0x11a)]){let _0x19216e=_0x2d5345['data'][_0xc6e651(0x10b)][_0xc6e651(0x127)]['error'];return UiUtil[_0xc6e651(0x108)](_0x19216e[_0xc6e651(0xd2)],_0x19216e['message'],'error',_0xc6e651(0xd4)),!0x1;}return!0x0;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x1733(){const _0x5f4d01=['downloadTerminologies','errors','tField','records','text','category','750213rEaFVJ','1018827gOnYvL','label','1483836RqFBuw','49ZKLkrr','tTitle','fetchTerminologies','164884IDhaFg','data','269736BfMNUa','keys','294685LXpQAP','forEach','tMenu','menu','terminologies','replace','translate','META_TERMS','field','button','28bcyctW','768098rEcxyb','total','query','items','name','title'];a0_0x1733=function(){return _0x5f4d01;};return a0_0x1733();}const a0_0x4f5196=a0_0x10db;(function(_0x2381f6,_0x15abe5){const _0x37438f=a0_0x10db,_0x5c9845=_0x2381f6();while(!![]){try{const _0x2b2bb8=-parseInt(_0x37438f(0x183))/0x1+-parseInt(_0x37438f(0x170))/0x2+parseInt(_0x37438f(0x17d))/0x3+parseInt(_0x37438f(0x16f))/0x4*(parseInt(_0x37438f(0x187))/0x5)+parseInt(_0x37438f(0x17f))/0x6+-parseInt(_0x37438f(0x180))/0x7*(parseInt(_0x37438f(0x185))/0x8)+parseInt(_0x37438f(0x17c))/0x9;if(_0x2b2bb8===_0x15abe5)break;else _0x5c9845['push'](_0x5c9845['shift']());}catch(_0x518fb2){_0x5c9845['push'](_0x5c9845['shift']());}}}(a0_0x1733,0x48b97));import a0_0x1a2830 from'graphql-tag';import{client}from'@operato/graphql';function a0_0x10db(_0x239d38,_0x285668){const _0x173389=a0_0x1733();return a0_0x10db=function(_0x10db49,_0x1f1696){_0x10db49=_0x10db49-0x16d;let _0x508bb2=_0x173389[_0x10db49];return _0x508bb2;},a0_0x10db(_0x239d38,_0x285668);}import{i18next}from'@operato/i18n';export class TermsUtil{['META_TERMS']=null;static async[a0_0x4f5196(0x176)](_0x8955c4){const _0x1f15e0=a0_0x4f5196;let _0x18d929=(await TermsUtil[_0x1f15e0(0x182)](_0x8955c4))[_0x1f15e0(0x179)];_0x18d929&&_0x18d929['length']>0x0&&(this[_0x1f15e0(0x18e)]={},_0x18d929[_0x1f15e0(0x188)](_0x4f81df=>{const _0x2f8768=_0x1f15e0;let _0x15a8d5=_0x4f81df['category']+'.'+_0x4f81df['name'];this[_0x2f8768(0x18e)][_0x15a8d5]=_0x4f81df['display'];}));}static async[a0_0x4f5196(0x182)](_0x53dcf5){const _0x1ad18d=a0_0x4f5196;let _0x113689=[{'name':'locale','operator':'eq','value':_0x53dcf5}];const _0x3f892b=await client[_0x1ad18d(0x172)]({'query':a0_0x1a2830`
|
|
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_0x267d29=a0_0x3ad6;(function(_0x4c529a,_0x55ef69){const _0x34820d=a0_0x
|
|
|
11
11
|
total
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
`,'variables':{'filters':
|
|
14
|
+
`,'variables':{'filters':_0x113689,'sortings':[{'name':_0x1ad18d(0x17b)},{'name':_0x1ad18d(0x174)}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0x3f892b[_0x1ad18d(0x177)])return{'records':_0x3f892b['data'][_0x1ad18d(0x18b)][_0x1ad18d(0x173)]||[],'total':_0x3f892b[_0x1ad18d(0x184)][_0x1ad18d(0x18b)][_0x1ad18d(0x171)]||0x0};}static['tLabel'](_0x259df9,_0x2d6d5d){const _0x329535=a0_0x4f5196;let _0x3d6c3e=TermsUtil[_0x329535(0x18d)](_0x329535(0x17e),_0x259df9,_0x2d6d5d,null);return _0x3d6c3e||TermsUtil[_0x329535(0x18d)](_0x329535(0x16d),_0x259df9,_0x2d6d5d,_0x259df9);}static[a0_0x4f5196(0x178)](_0xaff95c,_0x3fc070){const _0x44069e=a0_0x4f5196;let _0x213aae=TermsUtil[_0x44069e(0x18d)](_0x44069e(0x16d),_0xaff95c,_0x3fc070,null);return _0x213aae||TermsUtil[_0x44069e(0x18d)]('field',_0xaff95c,_0x3fc070,_0xaff95c);}static['tButton'](_0x21cfd8){const _0x3e3492=a0_0x4f5196;return TermsUtil[_0x3e3492(0x18d)](_0x3e3492(0x16e),_0x21cfd8,null,_0x21cfd8);}static[a0_0x4f5196(0x181)](_0x366215,_0x58a557){const _0x20c43b=a0_0x4f5196;let _0x4dc881=TermsUtil['translate']('title',_0x366215,_0x58a557,null);return _0x4dc881||TermsUtil['translate'](_0x20c43b(0x18a),_0x366215,_0x58a557,_0x366215);}static[a0_0x4f5196(0x189)](_0x51a6c7){const _0x164897=a0_0x4f5196;let _0x2c3a09=TermsUtil[_0x164897(0x18d)](_0x164897(0x18a),_0x51a6c7,null,_0x51a6c7);return _0x2c3a09||TermsUtil[_0x164897(0x18d)](_0x164897(0x175),_0x51a6c7,null,_0x51a6c7);}static['tText'](_0x289037,_0x434aca){const _0x36832c=a0_0x4f5196;return TermsUtil[_0x36832c(0x18d)](_0x36832c(0x17a),_0x289037,_0x434aca,_0x289037);}static['tError'](_0x476b97,_0x21fe7c){const _0x4a92a3=a0_0x4f5196;return TermsUtil[_0x4a92a3(0x18d)]('error',_0x476b97,_0x21fe7c,_0x476b97);}static[a0_0x4f5196(0x18d)](_0x2b78f4,_0x3465d2,_0x4f84c1,_0x514587){let _0x3228f1=_0x2b78f4+'.'+_0x3465d2;return TermsUtil['t'](_0x3228f1,_0x4f84c1,_0x514587);}static['t'](_0x41f264,_0x548b55,_0x576597){const _0x2ff71d=a0_0x4f5196;let _0x23cdb4=this['META_TERMS']?this[_0x2ff71d(0x18e)][_0x41f264]:null;return _0x23cdb4=_0x23cdb4||i18next['t'](_0x41f264),_0x23cdb4&&_0x41f264!=_0x23cdb4?(_0x548b55&&Object[_0x2ff71d(0x186)](_0x548b55)['forEach'](function(_0x862a07){const _0x1037f3=_0x2ff71d;var _0x16d6c7='\x5c{'+_0x862a07[_0x1037f3(0x18c)](/\$/,'\x5c$')+'\x5c}',_0xc0d59b=new RegExp(_0x16d6c7,'gi');_0x23cdb4=_0x23cdb4[_0x1037f3(0x18c)](_0xc0d59b,_0x548b55[_0x862a07]);}),_0x23cdb4):_0x576597;}}
|
package/client/utils/ui-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x40142e=a0_0x3089;(function(_0x510253,_0x16c8c0){const _0xe7a12a=a0_0x3089,_0x511c4c=_0x510253();while(!![]){try{const _0x53b018=-parseInt(_0xe7a12a(0x1fb))/0x1*(parseInt(_0xe7a12a(0x217))/0x2)+parseInt(_0xe7a12a(0x213))/0x3+parseInt(_0xe7a12a(0x1eb))/0x4+-parseInt(_0xe7a12a(0x200))/0x5+parseInt(_0xe7a12a(0x221))/0x6+parseInt(_0xe7a12a(0x1f3))/0x7*(-parseInt(_0xe7a12a(0x1e9))/0x8)+-parseInt(_0xe7a12a(0x1fd))/0x9;if(_0x53b018===_0x16c8c0)break;else _0x511c4c['push'](_0x511c4c['shift']());}catch(_0x35266b){_0x511c4c['push'](_0x511c4c['shift']());}}}(a0_0x50b1,0xdfbbc));import{store,CustomAlert,navigate}from'@things-factory/shell';import{openPopup}from'@things-factory/layout-base';import{isMobileDevice}from'@things-factory/utils';function a0_0x50b1(){const _0x4adf29=['type','\x20route_name=\x27','removeChild','content','getApplicationModuleInfo','getFilterFormData','template','11050179sryzMz','pass=','isNotEmpty','textarea','editor','[name=\x27','showAlertPopup','getLeafInput','23MhTrwR','ko-KR','12787425WUEwJd','tButton','createCustomElement','2210180TmEGGN','ox-input-code','getType','onclosed','\x27\x20\x20parent_id=\x27','dispatchEvent','openDynamicPopup','stringify','showToast','forEach','getState','innerHTML','split','setSearchFormEditorValue','parent_field','isMobileEnv','menu','setValueToEditor','currentRouting','4006218iyDKxp','page','notify','createEditorHtml','7288zLSsEW','size','firstElementChild','config','renderRoot','querySelector','openPopupByElement','htmlToElement','length','popup_field','8994696QhOlUO','value','childNodes','substring','modules','indexOf','ox-select','route','8pPicAd','select-combo','6428640KcuKks'];a0_0x50b1=function(){return _0x4adf29;};return a0_0x50b1();}import{getEditor}from'@operato/data-grist';import{TermsUtil}from'./terms-util';import{ValueUtil}from'./value-util';import{MetaUiUtil}from'./meta-ui-util';function a0_0x3089(_0x1581a4,_0x2537d7){const _0x50b12f=a0_0x50b1();return a0_0x3089=function(_0x308944,_0x4dc29b){_0x308944=_0x308944-0x1e4;let _0x1e5b18=_0x50b12f[_0x308944];return _0x1e5b18;},a0_0x3089(_0x1581a4,_0x2537d7);}export class UiUtil{static[a0_0x40142e(0x20f)](){return isMobileDevice();}static['currentLocale'](){const _0x2a4e7d=a0_0x40142e;let _0x3d2a55=document['cookie'];return _0x3d2a55=_0x3d2a55[_0x2a4e7d(0x1e4)](_0x3d2a55[_0x2a4e7d(0x1e6)]('i18next')),_0x3d2a55['indexOf'](';')>-0x1&&(_0x3d2a55=_0x3d2a55[_0x2a4e7d(0x1e4)](0x0,_0x3d2a55[_0x2a4e7d(0x1e6)](';'))),_0x3d2a55=_0x3d2a55['replace']('i18next=',''),'ko'==_0x3d2a55?_0x2a4e7d(0x1fc):_0x3d2a55;}static[a0_0x40142e(0x1f0)](){const _0x313253=a0_0x40142e;let _0x4a81a5=store[_0x313253(0x20a)]()['app'][_0x313253(0x1e5)];return _0x4a81a5[_0x4a81a5[_0x313253(0x21f)]-0x1];}static[a0_0x40142e(0x212)](){const _0x1dbc18=a0_0x40142e;return store[_0x1dbc18(0x20a)]()[_0x1dbc18(0x1e8)][_0x1dbc18(0x214)];}static[a0_0x40142e(0x21d)](_0xa2bc5,_0x59730f,_0x260dab,_0x503643){return openPopup(_0x260dab,{'backdrop':!0x0,'size':_0x59730f,'title':_0xa2bc5,'backdrop':_0x503643});}static async[a0_0x40142e(0x206)](_0x55fe37,_0x1223b2,_0x1c4bf5,_0x53f204){const _0x19f759=a0_0x40142e;let _0x175ad8=ValueUtil[_0x19f759(0x1f5)](_0x1223b2['parent_field'])?ValueUtil['getParams'](_0x1c4bf5,..._0x1223b2[_0x19f759(0x20e)][_0x19f759(0x20c)]('.')):void 0x0,_0x304ae8='<'+_0x1223b2['tagname']+_0x19f759(0x1ed)+_0x1223b2[_0x19f759(0x210)]+_0x19f759(0x204)+_0x175ad8+'\x27\x20is_popup=true></'+_0x1223b2['tagname']+'>',_0x4ace1f=UiUtil[_0x19f759(0x21e)](_0x304ae8);_0x4ace1f[_0x19f759(0x21a)]=_0x1223b2,ValueUtil[_0x19f759(0x1f5)](_0x1223b2[_0x19f759(0x220)])&&(_0x4ace1f[_0x1223b2['popup_field']]=_0x1c4bf5);let _0x21f913=UiUtil[_0x19f759(0x21d)](_0x55fe37,_0x1223b2[_0x19f759(0x218)],_0x4ace1f,!0x0);_0x53f204&&(_0x21f913[_0x19f759(0x203)]=_0x53f204);}static[a0_0x40142e(0x1ff)](_0x31ec6b,_0x568d84){const _0x15d05d=a0_0x40142e;let _0x362cdb='<'+_0x31ec6b+_0x15d05d(0x1ed)+_0x568d84+'\x27></'+_0x31ec6b+'>';return UiUtil[_0x15d05d(0x21e)](_0x362cdb);}static[a0_0x40142e(0x21e)](_0x4c94f2){const _0x1c29a5=a0_0x40142e;var _0x1317a5=document['createElement'](_0x1c29a5(0x1f2));_0x1317a5[_0x1c29a5(0x20b)]=_0x4c94f2;var _0x44c045=_0x1317a5[_0x1c29a5(0x1ef)][_0x1c29a5(0x223)][0x0];return _0x1317a5[_0x1c29a5(0x1ef)][_0x1c29a5(0x1ee)](_0x44c045),_0x44c045;}static['pageNavigate'](_0x415d8a,_0x4338fe){const _0x265adf=a0_0x40142e;let _0x11b49c=_0x4338fe?'?':'';_0x4338fe&&(_0x11b49c+=_0x265adf(0x1f4)+JSON[_0x265adf(0x207)](_0x4338fe)),navigate(''+_0x415d8a+_0x11b49c);}static['getStore'](_0x489f5e,_0x1593a3,_0x35d910){const _0x219905=a0_0x40142e;let _0x5cc157=_0x5cc157[_0x219905(0x20a)]();return _0x489f5e&&_0x1593a3&&_0x35d910?_0x5cc157[_0x489f5e][_0x1593a3][_0x35d910]:_0x489f5e&&_0x1593a3?_0x5cc157[_0x489f5e][_0x1593a3]:_0x489f5e?_0x5cc157[_0x489f5e]:_0x5cc157;}static['fireCustomEvent'](_0x232580,_0x994d6c){document['dispatchEvent'](new CustomEvent(_0x232580,{'detail':_0x994d6c}));}static[a0_0x40142e(0x208)](_0x369f0f,_0x5ed3c5){const _0x416a41=a0_0x40142e;document[_0x416a41(0x205)](new CustomEvent(_0x416a41(0x215),{'detail':{'type':_0x369f0f,'message':_0x5ed3c5}}));}static async[a0_0x40142e(0x1f9)](_0x2686d7,_0x3efd53,_0x2cb751,_0x11b01c,_0x17c208){const _0x14aba0=a0_0x40142e;let _0x1e33da={'title':TermsUtil['t'](_0x2686d7)||_0x2686d7,'text':TermsUtil['t'](_0x3efd53)||_0x3efd53};return _0x2cb751&&(_0x1e33da[_0x14aba0(0x1ec)]=_0x2cb751),_0x11b01c&&(_0x1e33da['confirmButton']=TermsUtil[_0x14aba0(0x1fe)](_0x11b01c)),_0x17c208&&(_0x1e33da['cancelButton']=TermsUtil['tButton'](_0x17c208)),await CustomAlert(_0x1e33da);}static[a0_0x40142e(0x1f1)](_0x56ac97){const _0x2819ae=a0_0x40142e;if(ValueUtil['isNotEmpty'](_0x56ac97)){let _0x1e057e=_0x56ac97['filters']();ValueUtil[_0x2819ae(0x1f5)](_0x1e057e)&&_0x1e057e[_0x2819ae(0x209)](_0x43ac03=>{const _0x444b0f=_0x2819ae;ValueUtil[_0x444b0f(0x1f5)](_0x43ac03[_0x444b0f(0x222)])&&(item[_0x43ac03['name']]=_0x43ac03[_0x444b0f(0x222)]?_0x43ac03['value']:null);});}return{};}static[a0_0x40142e(0x20d)](_0x43fd2a,_0x5a8184,_0x522e25){const _0x491460=a0_0x40142e;if(ValueUtil[_0x491460(0x1f5)](_0x43fd2a)){let _0xdffc02=_0x43fd2a[_0x491460(0x21b)]?.[_0x491460(0x21c)](_0x491460(0x1f8)+_0x5a8184+'\x27]');ValueUtil[_0x491460(0x1f5)](_0xdffc02)&&(_0xdffc02[_0x491460(0x222)]=_0x522e25);}}static[a0_0x40142e(0x216)](_0x5b4666,_0x2882f9,_0x10c6af,_0x124638){return getEditor(_0x5b4666)('',_0x2882f9,_0x10c6af,_0x124638,{});}static[a0_0x40142e(0x211)](_0x5f0d78,_0x7a8b61){const _0x217aa9=a0_0x40142e;UiUtil[_0x217aa9(0x1fa)](_0x5f0d78)[_0x217aa9(0x222)]=_0x7a8b61;}static['getLeafInput'](_0xeac406){const _0x338df6=a0_0x40142e;let _0x16b539=_0xeac406[_0x338df6(0x202)]();return'code-editor'==_0x16b539?_0xeac406[_0x338df6(0x21b)][_0x338df6(0x21c)](_0x338df6(0x201)):_0x338df6(0x1f6)==_0x16b539?_0xeac406['renderRoot'][_0x338df6(0x21c)](_0x338df6(0x1f6)):_0x338df6(0x1ea)==_0x16b539?_0xeac406[_0x338df6(0x21b)][_0x338df6(0x21c)](_0x338df6(0x1e7))[_0x338df6(0x219)]:'barcode'==_0x16b539?_0xeac406[_0x338df6(0x21b)]['querySelector']('ox-input-barcode')[_0x338df6(0x21b)]['querySelector']('input'):_0xeac406[_0x338df6(0x21b)]['firstElementChild'][_0x338df6(0x1f7)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x47dd65=a0_0x500f;(function(_0x45b3e1,_0x2f693e){const _0x338552=a0_0x500f,_0x527891=_0x45b3e1();while(!![]){try{const _0x2f28a5=-parseInt(_0x338552(0x19d))/0x1+-parseInt(_0x338552(0x19e))/0x2+-parseInt(_0x338552(0x1a8))/0x3*(parseInt(_0x338552(0x1ab))/0x4)+-parseInt(_0x338552(0x1a0))/0x5+-parseInt(_0x338552(0x192))/0x6+-parseInt(_0x338552(0x194))/0x7*(parseInt(_0x338552(0x197))/0x8)+-parseInt(_0x338552(0x1a2))/0x9*(-parseInt(_0x338552(0x199))/0xa);if(_0x2f28a5===_0x2f693e)break;else _0x527891['push'](_0x527891['shift']());}catch(_0x2df56){_0x527891['push'](_0x527891['shift']());}}}(a0_0x12fc,0xbdb77));function a0_0x12fc(){const _0x256e0f=['isEquals','length','1403303coyMZq','2403936TQonYv','isEmpty','3573835YoPjeJ','string','20455425ngLgIr','forEach','true','map','object','isNotEmpty','520305xvkVBf','keys','getParams','8IAGSOj','6658524oCjgyP','number','109298ddUeZS','boolean','populateObject','648MitbUV','populateArray','30TsLLWY','setParams'];a0_0x12fc=function(){return _0x256e0f;};return a0_0x12fc();}import a0_0x2978ea from'lodash-es/isEqual';function a0_0x500f(_0x113394,_0x241dd6){const _0x12fc38=a0_0x12fc();return a0_0x500f=function(_0x500f9c,_0x2146b9){_0x500f9c=_0x500f9c-0x192;let _0x4a1e4a=_0x12fc38[_0x500f9c];return _0x4a1e4a;},a0_0x500f(_0x113394,_0x241dd6);}import{TermsUtil}from'./terms-util';export class ValueUtil{static[a0_0x47dd65(0x19f)](_0x5e2b79){const _0x2dc93f=a0_0x47dd65;if(void 0x0===_0x5e2b79)return!0x0;if(null===_0x5e2b79)return!0x0;if(_0x2dc93f(0x195)==typeof _0x5e2b79)return!0x1;if(_0x2dc93f(0x1a1)==typeof _0x5e2b79||_0x2dc93f(0x193)==typeof _0x5e2b79){if(''==_0x5e2b79)return!0x0;}else{if(Array['isArray'](_0x5e2b79)){if(0x0==_0x5e2b79[_0x2dc93f(0x19c)])return!0x0;}else{if(_0x2dc93f(0x1a6)==typeof _0x5e2b79&&0x0==Object[_0x2dc93f(0x1a9)](_0x5e2b79)[_0x2dc93f(0x19c)])return!0x0;}}return!0x1;}static[a0_0x47dd65(0x1a7)](_0x3bfec9){const _0x2f9b79=a0_0x47dd65;return!ValueUtil[_0x2f9b79(0x19f)](_0x3bfec9);}static[a0_0x47dd65(0x19b)](_0x5bf0c9,_0x5dc86d){return a0_0x2978ea(_0x5bf0c9,_0x5dc86d);}static['toInteger'](_0x4acbcb,_0x3e99a2){const _0xcaf57d=a0_0x47dd65;return ValueUtil[_0xcaf57d(0x19f)](_0x4acbcb)?_0x3e99a2||0x0:parseInt(_0x4acbcb);}static['toBoolean'](_0xad9538){const _0x6f83ed=a0_0x47dd65;return!ValueUtil[_0x6f83ed(0x19f)](_0xad9538)&&(_0x6f83ed(0x1a4)==_0xad9538||'t'==_0xad9538||'TRUE'==_0xad9538||'T'==_0xad9538||'on'==_0xad9538||'ON'==_0xad9538);}static['compareObjectValues'](_0x1b4b80,_0x21f72b,_0x1b6082){const _0x2ad629=a0_0x47dd65;let _0x214581=!0x0;return _0x1b6082[_0x2ad629(0x1a3)](_0x5cbdf8=>{const _0x16b740=_0x2ad629;let _0x1f6b80=_0x1b4b80[_0x5cbdf8];if('*'===_0x1f6b80)return;let _0x5b1f7c=_0x21f72b[_0x5cbdf8]||'';ValueUtil[_0x16b740(0x19f)](_0x1f6b80)?ValueUtil[_0x16b740(0x1a7)](_0x5b1f7c)&&(_0x214581=!0x1):_0x1f6b80!=_0x5b1f7c&&(_0x214581=!0x1);}),_0x214581;}static[a0_0x47dd65(0x19a)](_0x364f46,_0x2dab5c,_0x4c69db,_0x13b4e3){const _0x3b9fd9=a0_0x47dd65;let _0xe53c5b=ValueUtil[_0x3b9fd9(0x1aa)](_0x2dab5c,_0x4c69db);return ValueUtil['isNotEmpty'](_0xe53c5b)&&(_0x364f46[_0x4c69db]=!0x0===_0x13b4e3?TermsUtil['t'](_0xe53c5b):_0xe53c5b),_0x364f46;}static[a0_0x47dd65(0x1aa)](_0x2b8c15,..._0x41d490){const _0x406fd0=a0_0x47dd65;if(arguments[_0x406fd0(0x19c)]<=0x1)return;let _0x5909c1=_0x41d490[0x0];if(ValueUtil[_0x406fd0(0x19f)](_0x2b8c15[_0x5909c1]))return;let _0x497ab4=_0x2b8c15[_0x5909c1];return _0x41d490[_0x406fd0(0x19c)]>0x1?ValueUtil[_0x406fd0(0x1aa)](_0x497ab4,..._0x41d490['slice'](0x1)):_0x497ab4;}static[a0_0x47dd65(0x198)](_0x36ec13,_0x370e25,..._0x58fd69){const _0x404ddd=a0_0x47dd65;return _0x370e25=_0x370e25||[],_0x58fd69=_0x58fd69||Object[_0x404ddd(0x1a9)](_0x36ec13),ValueUtil[_0x404ddd(0x1a7)](_0x58fd69)&&(_0x370e25=_0x36ec13[_0x404ddd(0x1a5)]((_0x648820,_0x13ed66)=>{const _0x4bb559=_0x404ddd;let _0x28e2dd=_0x370e25[_0x4bb559(0x19c)]>_0x13ed66?_0x370e25[_0x13ed66]:{};return ValueUtil[_0x4bb559(0x196)](_0x648820,_0x28e2dd,_0x58fd69);})),_0x370e25;}static[a0_0x47dd65(0x196)](_0xd0a9d,_0x2926a9,..._0x59f5c7){const _0x59cee6=a0_0x47dd65;return _0x2926a9=_0x2926a9||{},_0x59f5c7=_0x59f5c7||Object[_0x59cee6(0x1a9)](_0xd0a9d),ValueUtil['isNotEmpty'](_0x59f5c7)&&_0x59f5c7[_0x59cee6(0x1a3)](_0x5c8946=>{_0x2926a9[_0x5c8946]=_0xd0a9d[_0x5c8946];}),_0x2926a9;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37099f,_0x46b688){const _0x60fc24=a0_0x35e0,_0x4f7de5=_0x37099f();while(!![]){try{const _0x2b22e1=-parseInt(_0x60fc24(0x169))/0x1*(parseInt(_0x60fc24(0x16a))/0x2)+parseInt(_0x60fc24(0x16e))/0x3*(-parseInt(_0x60fc24(0x16d))/0x4)+parseInt(_0x60fc24(0x170))/0x5+-parseInt(_0x60fc24(0x171))/0x6+-parseInt(_0x60fc24(0x16b))/0x7+-parseInt(_0x60fc24(0x16f))/0x8*(parseInt(_0x60fc24(0x172))/0x9)+parseInt(_0x60fc24(0x173))/0xa*(parseInt(_0x60fc24(0x16c))/0xb);if(_0x2b22e1===_0x46b688)break;else _0x4f7de5['push'](_0x4f7de5['shift']());}catch(_0x1bda42){_0x4f7de5['push'](_0x4f7de5['shift']());}}}(a0_0x44b2,0x8bc21));function a0_0x35e0(_0x2ebd46,_0x420136){const _0x44b242=a0_0x44b2();return a0_0x35e0=function(_0x35e079,_0x277fc9){_0x35e079=_0x35e079-0x169;let _0xdcb794=_0x44b242[_0x35e079];return _0xdcb794;},a0_0x35e0(_0x2ebd46,_0x420136);}import{css}from'lit';export const DynamicMenuLandscapeStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
overflow-x: auto;
|
|
4
4
|
background-color: var(--secondary-text-color);
|
|
@@ -144,4 +144,4 @@
|
|
|
144
144
|
background-color: rgba(var(--secondary-color-rgb), 0.3);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
`;function
|
|
147
|
+
`;function a0_0x44b2(){const _0x17a723=['180aeSUPu','1EtigHK','1586562HeYZSh','2862860nfsSnu','1449327GXrhGE','112PCFzhr','1002eaOyoP','4504xrspZg','2662860obevJj','6001302UTfwui','1917iJofIS'];a0_0x44b2=function(){return _0x17a723;};return a0_0x44b2();}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x33e50f=a0_0x6651;(function(_0x4672c8,_0x9863ed){const _0x4e6a78=a0_0x6651,_0x1701fb=_0x4672c8();while(!![]){try{const _0x4b3a88=parseInt(_0x4e6a78(0x9a))/0x1*(-parseInt(_0x4e6a78(0xa7))/0x2)+parseInt(_0x4e6a78(0x91))/0x3+parseInt(_0x4e6a78(0x8f))/0x4+-parseInt(_0x4e6a78(0x8d))/0x5*(parseInt(_0x4e6a78(0xa5))/0x6)+-parseInt(_0x4e6a78(0x90))/0x7+-parseInt(_0x4e6a78(0xab))/0x8+-parseInt(_0x4e6a78(0x88))/0x9*(-parseInt(_0x4e6a78(0x9e))/0xa);if(_0x4b3a88===_0x9863ed)break;else _0x1701fb['push'](_0x1701fb['shift']());}catch(_0x162d9b){_0x1701fb['push'](_0x1701fb['shift']());}}}(a0_0x50eb,0xe5c69));function a0_0x6651(_0xacde8b,_0x34a36a){const _0x50eb9d=a0_0x50eb();return a0_0x6651=function(_0x665145,_0x182db2){_0x665145=_0x665145-0x86;let _0x516233=_0x50eb9d[_0x665145];return _0x516233;},a0_0x6651(_0xacde8b,_0x34a36a);}import'@material/mwc-icon';import{html,LitElement}from'lit';function a0_0x50eb(){const _0x165437=['renderRoot','currentTarget','dynamic-menu-landscape','properties','5IiAqPR','mousewheel','6339808OadLku','4154003rBAeqE','2062614VIPAQN','render','querySelector','stopPropagation','menus','transitionend','onWheelEvent','icon','path','1FXvPFz','submenu','group','map','37346090IfNymK','#wrap','click','name','target','detail','max','9289986nUgXUj','#force','3346978KQAgAC','addEventListener','dispatchEvent','define','10005512wFihjY','href','preventDefault','firstUpdated','min','scrollLeft','9BvMoJn'];a0_0x50eb=function(){return _0x165437;};return a0_0x50eb();}import{connect}from'pwa-helpers';import{navigate,store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';import{DynamicMenuLandscapeStyles}from'./dynamic-menu-landscape-styles';export class DynamicMenuLandscape extends connect(store)(LitElement){static get['styles'](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get[a0_0x33e50f(0x8c)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x33e50f(0x92)](){const _0x8f9515=a0_0x33e50f,{menus:_0x2c827b=[],activeTopLevel:_0x207bed,activeMenu:_0x3cff10}=this;return html`
|
|
2
2
|
<div id="wrap">
|
|
3
3
|
<ul>
|
|
4
|
-
${
|
|
5
|
-
<li ?active=${
|
|
6
|
-
<a href=${
|
|
7
|
-
${
|
|
4
|
+
${_0x2c827b[_0x8f9515(0x9d)](_0x2e5fd9=>_0x8f9515(0x9c)==_0x2e5fd9['type']?html``:html`
|
|
5
|
+
<li ?active=${_0x2e5fd9===_0x207bed}>
|
|
6
|
+
<a href=${_0x2e5fd9[_0x8f9515(0x99)]||'#'}>
|
|
7
|
+
${_0x2e5fd9[_0x8f9515(0x98)]?html`<mwc-icon>${_0x2e5fd9[_0x8f9515(0x98)]}</mwc-icon>`:html``} ${_0x2e5fd9[_0x8f9515(0xa1)]}
|
|
8
8
|
</a>
|
|
9
9
|
|
|
10
10
|
<ul submenus>
|
|
11
|
-
${
|
|
12
|
-
<li ?active=${
|
|
13
|
-
<a href=${
|
|
11
|
+
${_0x2e5fd9[_0x8f9515(0x95)]?.['map'](_0x2559b5=>html`
|
|
12
|
+
<li ?active=${_0x2559b5===_0x3cff10}>
|
|
13
|
+
<a href=${_0x2559b5['path']||'#'}> ${_0x2559b5['name']} </a>
|
|
14
14
|
</li>
|
|
15
15
|
`)}
|
|
16
16
|
</ul>
|
|
17
17
|
|
|
18
18
|
<div description>
|
|
19
|
-
${
|
|
19
|
+
${_0x2e5fd9['icon']?html`<mwc-icon>${_0x2e5fd9[_0x8f9515(0x98)]}</mwc-icon>`:html``} ${_0x2e5fd9['description']||''}
|
|
20
20
|
</div>
|
|
21
21
|
</li>
|
|
22
22
|
`)}
|
|
23
23
|
</ul>
|
|
24
24
|
</div>
|
|
25
|
-
`;}[
|
|
25
|
+
`;}[a0_0x33e50f(0xae)](){const _0x134924=a0_0x33e50f;this[_0x134924(0x89)][_0x134924(0x93)](_0x134924(0x9f))[_0x134924(0xa8)](_0x134924(0x8e),this[_0x134924(0x97)]['bind'](this),!0x1),this[_0x134924(0x89)][_0x134924(0xa8)](_0x134924(0xa0),_0x4592c3=>{const _0x56b0fc=_0x134924;if(_0x4592c3['target']['submenu']){_0x4592c3[_0x56b0fc(0x94)](),_0x4592c3[_0x56b0fc(0xad)]();let _0x34bc2c=_0x4592c3['target'][_0x56b0fc(0x9b)];return void this[_0x56b0fc(0xa9)](new CustomEvent('active-toplevel',{'bubbles':!0x0,'detail':this['activeTopLevel']===_0x34bc2c?void 0x0:_0x34bc2c}));}let _0x4ca5b3=_0x4592c3[_0x56b0fc(0xa2)]['href'];_0x4ca5b3&&location[_0x56b0fc(0xac)]===_0x4ca5b3&&navigate(_0x4ca5b3+_0x56b0fc(0xa6),!0x0);}),this[_0x134924(0x89)][_0x134924(0xa8)]('transitionstart',_0x51bdb1=>{const _0x3e971d=_0x134924;_0x51bdb1[_0x3e971d(0xa2)]['removeAttribute']('settled');}),this[_0x134924(0x89)]['addEventListener'](_0x134924(0x96),_0x5c96e5=>{const _0x3eea75=_0x134924;_0x5c96e5[_0x3eea75(0xa2)]['setAttribute']('settled','');});}['onWheelEvent'](_0x1e9ff6){const _0x57cc52=a0_0x33e50f,_0x7d7c6a=_0x1e9ff6[_0x57cc52(0x8a)];var _0x365091=Math[_0x57cc52(0xa4)](-0x1,Math[_0x57cc52(0x86)](0x1,_0x1e9ff6['wheelDelta']||-_0x1e9ff6[_0x57cc52(0xa3)]));_0x7d7c6a[_0x57cc52(0x87)]-=0xa*_0x365091,_0x1e9ff6[_0x57cc52(0xad)]();}}customElements[a0_0x33e50f(0xaa)](a0_0x33e50f(0x8b),DynamicMenuLandscape);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var a0_0x34a81d=a0_0x1c20;(function(_0x208eaf,_0x3a82c7){var _0xee3a50=a0_0x1c20,_0x3dc102=_0x208eaf();while(!![]){try{var _0x2e696d=parseInt(_0xee3a50(0x1d9))/0x1*(parseInt(_0xee3a50(0x1dc))/0x2)+parseInt(_0xee3a50(0x1c0))/0x3*(-parseInt(_0xee3a50(0x1c7))/0x4)+-parseInt(_0xee3a50(0x1b9))/0x5*(parseInt(_0xee3a50(0x1c5))/0x6)+-parseInt(_0xee3a50(0x1d0))/0x7*(parseInt(_0xee3a50(0x1d6))/0x8)+-parseInt(_0xee3a50(0x1bc))/0x9*(-parseInt(_0xee3a50(0x1da))/0xa)+parseInt(_0xee3a50(0x1d7))/0xb*(-parseInt(_0xee3a50(0x1d4))/0xc)+parseInt(_0xee3a50(0x1d1))/0xd;if(_0x2e696d===_0x3a82c7)break;else _0x3dc102['push'](_0x3dc102['shift']());}catch(_0x1cabb){_0x3dc102['push'](_0x3dc102['shift']());}}}(a0_0x4491,0x98294));import'@material/mwc-icon';import'./dynamic-menu-portrait';function a0_0x4491(){var _0x4ddcb8=['properties','updated','stopPropagation','7PyeomI','24818677aUptnn','menus','dynamic-menu-part','444JMhpIY','addEventListener','4240312ZqXkhp','253627OwMPhE','define','163474HKLnSl','990TQvFFL','landscape','2ZRvkvZ','_path','detail','route','slotTemplate','path','setAttribute','has','styles','portrait','preventDefault','15VCugsg','stateChanged','firstUpdated','97659lvccXW','page','orientation','function','3MeDjJj','active','_activeTopLevel','renderRoot','render','2174286VAszou','_findActivePage','213236mQaBnk','find','resourceId','call','active-toplevel','_activeMenu'];a0_0x4491=function(){return _0x4ddcb8;};return a0_0x4491();}import'./dynamic-menu-landscape';import{css,html,LitElement}from'lit';import{connect}from'pwa-helpers';import{store}from'@operato/shell';function a0_0x1c20(_0x5a5d68,_0x4e86fe){var _0x44919e=a0_0x4491();return a0_0x1c20=function(_0x1c2056,_0x386b25){_0x1c2056=_0x1c2056-0x1b5;var _0x40f147=_0x44919e[_0x1c2056];return _0x40f147;},a0_0x1c20(_0x5a5d68,_0x4e86fe);}import{ScrollbarStyles}from'@operato/styles';function isActiveMenu(_0x412268,_0x32c700){var _0x459962=a0_0x1c20;return _0x412268[_0x459962(0x1e1)]?.['split']('?')[0x0]===_0x32c700||_0x412268[_0x459962(0x1c1)]&&_0x459962(0x1bf)==typeof _0x412268[_0x459962(0x1c1)]&&_0x412268[_0x459962(0x1c1)][_0x459962(0x1ca)](_0x412268,{'path':_0x32c700});}export class DynamicMenuPart extends connect(store)(LitElement){static get[a0_0x34a81d(0x1cd)](){return{'page':String,'resourceId':String,'menus':Array,'orientation':String,'_activeTopLevel':Object,'_activeMenu':Object,'_path':String};}static get[a0_0x34a81d(0x1b6)](){return[ScrollbarStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -27,18 +27,18 @@ function a0_0x6b2a(){var _0x15c2bc=['replaceChild','orientation','active','call'
|
|
|
27
27
|
dynamic-menu-landscape {
|
|
28
28
|
flex: 1;
|
|
29
29
|
}
|
|
30
|
-
`];}[
|
|
30
|
+
`];}[a0_0x34a81d(0x1c4)](){var _0x57ad07=a0_0x34a81d;return html`
|
|
31
31
|
<slot name="head"></slot>
|
|
32
|
-
${
|
|
33
|
-
.menus=${this[
|
|
34
|
-
.activeTopLevel=${this[
|
|
35
|
-
.activeMenu=${this[
|
|
36
|
-
.path=${this[
|
|
32
|
+
${_0x57ad07(0x1db)!==this[_0x57ad07(0x1be)]?html`<dynamic-menu-portrait
|
|
33
|
+
.menus=${this[_0x57ad07(0x1d2)]}
|
|
34
|
+
.activeTopLevel=${this['_activeTopLevel']}
|
|
35
|
+
.activeMenu=${this[_0x57ad07(0x1cc)]}
|
|
36
|
+
.path=${this[_0x57ad07(0x1dd)]}
|
|
37
37
|
></dynamic-menu-portrait>`:html`<dynamic-menu-landscape
|
|
38
38
|
.menus=${this['menus']}
|
|
39
|
-
.activeTopLevel=${this[
|
|
40
|
-
.activeMenu=${this[
|
|
41
|
-
.path=${this[
|
|
39
|
+
.activeTopLevel=${this[_0x57ad07(0x1c2)]}
|
|
40
|
+
.activeMenu=${this[_0x57ad07(0x1cc)]}
|
|
41
|
+
.path=${this[_0x57ad07(0x1dd)]}
|
|
42
42
|
></dynamic-menu-landscape>`}
|
|
43
43
|
<slot name="tail"></slot>
|
|
44
|
-
`;}[
|
|
44
|
+
`;}[a0_0x34a81d(0x1bb)](){var _0x29cdf6=a0_0x34a81d;this[_0x29cdf6(0x1c3)][_0x29cdf6(0x1d5)](_0x29cdf6(0x1cb),_0x48f592=>{var _0x12971b=_0x29cdf6;_0x48f592[_0x12971b(0x1cf)](),_0x48f592[_0x12971b(0x1b8)](),this['_activeTopLevel']=_0x48f592[_0x12971b(0x1de)];});}[a0_0x34a81d(0x1ce)](_0x1d978c){var _0x211a94=a0_0x34a81d;(_0x1d978c[_0x211a94(0x1b5)]('menus')||_0x1d978c[_0x211a94(0x1b5)](_0x211a94(0x1bd))||_0x1d978c['has']('resourceId'))&&this[_0x211a94(0x1c6)](),_0x1d978c[_0x211a94(0x1b5)]('orientation')&&(_0x211a94(0x1b7)==this['orientation']?this['removeAttribute']('landscape'):this[_0x211a94(0x1e2)]('landscape',!0x0)),_0x1d978c[_0x211a94(0x1b5)]('slotTemplate')&&this['replaceChild'](this[_0x211a94(0x1e0)]);}[a0_0x34a81d(0x1ba)](_0x5b0f1e){var _0x1bf955=a0_0x34a81d;this[_0x1bf955(0x1bd)]=_0x5b0f1e[_0x1bf955(0x1df)][_0x1bf955(0x1bd)],this[_0x1bf955(0x1c9)]=_0x5b0f1e['route']['resourceId'],this[_0x1bf955(0x1d2)]=_0x5b0f1e['metaUI']['menus']||[],this[_0x1bf955(0x1e0)]=_0x5b0f1e['metaUI']['slotTemplate'];}[a0_0x34a81d(0x1c6)](){var _0x42f4e7=a0_0x34a81d,_0x516c5a,_0x44d8f6=this[_0x42f4e7(0x1c9)]?this[_0x42f4e7(0x1bd)]+'/'+this[_0x42f4e7(0x1c9)]:this['page'],_0x59653a=this[_0x42f4e7(0x1d2)]||[];this['_activeTopLevel']=_0x59653a[_0x42f4e7(0x1c8)](_0x5fd800=>isActiveMenu(_0x5fd800,_0x44d8f6)?(_0x516c5a=_0x5fd800,!0x0):_0x5fd800['menus']?!!(_0x516c5a=_0x5fd800[_0x42f4e7(0x1d2)][_0x42f4e7(0x1c8)](_0x24509f=>isActiveMenu(_0x24509f,_0x44d8f6))):void 0x0),this['_path']=_0x44d8f6,this[_0x42f4e7(0x1cc)]=_0x516c5a||this['_activeTopLevel'];}}customElements[a0_0x34a81d(0x1d8)](a0_0x34a81d(0x1d3),DynamicMenuPart);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a0_0x406e(){const _0x55afbb=['3722208zQJuXE','460TsVieR','1590hsqCIF','3058279tQxhNx','916228oAkXkq','42xfSmag','2626570hFPyut','468435vJeLsO','126738hslVNJ','6nFMuVq'];a0_0x406e=function(){return _0x55afbb;};return a0_0x406e();}(function(_0x1f39ad,_0x508a8b){const _0x5cd1bc=a0_0x3e16,_0x3752a8=_0x1f39ad();while(!![]){try{const _0x1803e5=-parseInt(_0x5cd1bc(0xe4))/0x1+-parseInt(_0x5cd1bc(0xe8))/0x2*(parseInt(_0x5cd1bc(0xe2))/0x3)+parseInt(_0x5cd1bc(0xe1))/0x4+-parseInt(_0x5cd1bc(0xe3))/0x5+-parseInt(_0x5cd1bc(0xe6))/0x6*(parseInt(_0x5cd1bc(0xe0))/0x7)+-parseInt(_0x5cd1bc(0xe7))/0x8+parseInt(_0x5cd1bc(0xe5))/0x9*(parseInt(_0x5cd1bc(0xdf))/0xa);if(_0x1803e5===_0x508a8b)break;else _0x3752a8['push'](_0x3752a8['shift']());}catch(_0x2e6679){_0x3752a8['push'](_0x3752a8['shift']());}}}(a0_0x406e,0x8ae79));function a0_0x3e16(_0x2bd82e,_0x418ced){const _0x406e06=a0_0x406e();return a0_0x3e16=function(_0x3e168c,_0xd6644e){_0x3e168c=_0x3e168c-0xdf;let _0x4bc79a=_0x406e06[_0x3e168c];return _0x4bc79a;},a0_0x3e16(_0x2bd82e,_0x418ced);}import{css}from'lit';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_0x46e4c8=a0_0x1ac6;(function(_0xff1c8e,_0x146657){const _0x199e48=a0_0x1ac6,_0x5ad25c=_0xff1c8e();while(!![]){try{const _0x2d99a8=parseInt(_0x199e48(0x19c))/0x1*(parseInt(_0x199e48(0x1a1))/0x2)+parseInt(_0x199e48(0x19d))/0x3*(parseInt(_0x199e48(0x19f))/0x4)+-parseInt(_0x199e48(0x1a0))/0x5*(-parseInt(_0x199e48(0x19e))/0x6)+parseInt(_0x199e48(0x194))/0x7+parseInt(_0x199e48(0x197))/0x8*(parseInt(_0x199e48(0x1b0))/0x9)+parseInt(_0x199e48(0x195))/0xa+parseInt(_0x199e48(0x1a9))/0xb*(-parseInt(_0x199e48(0x199))/0xc);if(_0x2d99a8===_0x146657)break;else _0x5ad25c['push'](_0x5ad25c['shift']());}catch(_0x2ff268){_0x5ad25c['push'](_0x5ad25c['shift']());}}}(a0_0x21e4,0xad814));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_0x46e4c8(0x193)](){return[ScrollbarStyles,DynamicMenuPortraitStyles];}static get[a0_0x46e4c8(0x19a)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x46e4c8(0x1ae)](_0x51c707,_0x22c2bc,_0x262f37){const _0x35bcb5=a0_0x46e4c8;return html`
|
|
2
2
|
<ul>
|
|
3
|
-
${
|
|
4
|
-
<li ?active=${
|
|
5
|
-
<a href=${
|
|
6
|
-
${
|
|
7
|
-
<mwc-icon>${
|
|
8
|
-
${
|
|
3
|
+
${_0x51c707[_0x35bcb5(0x1ab)](_0x42dde5=>{const _0x48836b=_0x35bcb5;var {type:_0x179c91,active:_0x24d221,path:_0x5a1846,name:_0x1302f2,badge:_0x27df26,icon:_0x509a63,menus:_0x33a965}=_0x42dde5;return _0x24d221=!(!_0x24d221||_0x48836b(0x18c)!=typeof _0x24d221)&&_0x24d221['call'](_0x42dde5,{'path':this['path']}),_0x27df26=_0x48836b(0x18c)==typeof _0x27df26?_0x27df26[_0x48836b(0x190)](_0x42dde5):_0x27df26??!0x1,'group'==_0x179c91?html`<li group-label>${_0x1302f2}</li>`:html`
|
|
4
|
+
<li ?active=${_0x22c2bc?_0x42dde5===_0x22c2bc:_0x24d221} .menu=${_0x42dde5} menu>
|
|
5
|
+
<a href=${_0x5a1846||'#'}>
|
|
6
|
+
${_0x33a965?.[_0x48836b(0x1a8)]>0x0?html` <mwc-icon submenu-button></mwc-icon> `:html``}
|
|
7
|
+
<mwc-icon>${_0x509a63}</mwc-icon>
|
|
8
|
+
${_0x1302f2} ${!0x1!==_0x27df26?html`<div badge>${_0x27df26}</div>`:html``}
|
|
9
9
|
</a>
|
|
10
|
-
${
|
|
10
|
+
${_0x33a965&&this['renderMenus'](_0x33a965,_0x262f37)}
|
|
11
11
|
</li>
|
|
12
12
|
`;})}
|
|
13
13
|
</ul>
|
|
14
|
-
`;}[
|
|
14
|
+
`;}[a0_0x46e4c8(0x1a7)](){const _0x517352=a0_0x46e4c8,{menus:_0x38ab6f,activeTopLevel:_0x32fa46,activeMenu:_0x57de35}=this;return this[_0x517352(0x1ae)](_0x38ab6f,_0x32fa46,_0x57de35);}[a0_0x46e4c8(0x1a6)](){const _0x1a1f66=a0_0x46e4c8;this[_0x1a1f66(0x1a4)][_0x1a1f66(0x1aa)]('click',_0x34853d=>{const _0x25c507=_0x1a1f66,_0x1bc712=_0x34853d['target'][_0x25c507(0x1b1)](_0x25c507(0x198));if(_0x1bc712?.['menu']){let _0x7abaf8=_0x1bc712[_0x25c507(0x1a2)];_0x7abaf8['path']||(_0x34853d[_0x25c507(0x18d)](),_0x34853d[_0x25c507(0x1a3)]()),this[_0x25c507(0x18f)](new CustomEvent(_0x25c507(0x1ad),{'bubbles':!0x0,'detail':this[_0x25c507(0x19b)]===_0x7abaf8?void 0x0:_0x7abaf8}));}let _0x2810df=_0x34853d[_0x25c507(0x1a5)]['href'];_0x2810df&&location['href']===_0x2810df&&navigate(_0x2810df+_0x25c507(0x18e),!0x0);}),this['renderRoot'][_0x1a1f66(0x1aa)]('transitionstart',_0xd25104=>{const _0x38fb27=_0x1a1f66;_0xd25104['target'][_0x38fb27(0x191)](_0x38fb27(0x192));}),this[_0x1a1f66(0x1a4)][_0x1a1f66(0x1aa)]('transitionend',_0x53640d=>{const _0x263134=_0x1a1f66;_0x53640d[_0x263134(0x1a5)][_0x263134(0x1ac)]('settled','');});}}function a0_0x1ac6(_0x4e0fee,_0x160415){const _0x21e4b5=a0_0x21e4();return a0_0x1ac6=function(_0x1ac652,_0xac499a){_0x1ac652=_0x1ac652-0x18c;let _0x29d668=_0x21e4b5[_0x1ac652];return _0x29d668;},a0_0x1ac6(_0x4e0fee,_0x160415);}function a0_0x21e4(){const _0x5a9ad6=['2633288SUqfAY','2211760ZWRrge','dynamic-menu-portrait','24siCsEv','[menu]','84iVaSbE','properties','activeTopLevel','74PmpRaC','24elxSmg','372wYAfsp','97052kFAYZF','28720MhMYpd','19284glzFoL','menu','preventDefault','renderRoot','target','firstUpdated','render','length','3877423IkAsEp','addEventListener','map','setAttribute','active-toplevel','renderMenus','define','3951081GRtlGE','closest','function','stopPropagation','#force','dispatchEvent','call','removeAttribute','settled','styles'];a0_0x21e4=function(){return _0x5a9ad6;};return a0_0x21e4();}customElements[a0_0x46e4c8(0x1af)](a0_0x46e4c8(0x196),DynamicMenuPortrait);
|