@things-factory/meta-ui 6.1.2 → 6.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/actions/main.js +4 -4
- package/client/component/filter/filter-form-meta-code-select.js +9 -9
- package/client/component/filter/filter-form-meta-object-select.js +9 -9
- 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-meta-code-selector.js +7 -7
- package/client/component/grist/editor/grist-editor-meta-object-selector.js +6 -6
- package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
- package/client/component/selector/meta-object-selector-popup.js +11 -11
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +1 -1
- package/client/mixin/meta-main-tab-mixin.js +1 -1
- package/client/mixin/meta-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-detail-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/activity/meta-activity-list-page.js +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 +28 -28
- 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 +5 -5
- 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 +12 -12
- package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +2 -2
- 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 -0
- package/server/service/entity-event-subscriber/index.js +6 -0
- 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/index.js +6 -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/en.json +2 -1
- package/translations/ko.json +2 -1
- package/translations/ms.json +2 -1
- package/translations/zh.json +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x1c8b(){const _0x3903ea=['filter','showAlertPopup','\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','isEmpty','hiddenFlag','5EgkGhN','23896jrbEaX','dirtyRecords','test','map','split','arrangeMenuRoutes','numberOfToDos','MENU','forEach','getCodeSelectorData','iconPath','undefined','text.NOTHING_CHANGED','group','createdAt','updatedAt','button.delete','1791801dazWEK','splice','8kYHDpX','2792028hSrCgi','sort','text.are_you_sure','message','searchMenuGridPersnalTemplate','extensions','object','text.nothing_selected','success\x20to\x20process','info','active','unshift','4652RvtLgP','tText','\x0a\x20\x20\x20\x20\x20\x20','fetch','routingType','getWorkCodeByName','2029986YAEbzk','total','gutter','hidden','imex','__selected__','SCREEN','menu.id','patchesForUpdateMultiple','rank','showToast','template','isArray','error','children','menus','type','records','showGraphqlException','myDynamicMenus','deleteListByIds','exportableData','value','__dirty__','dispatch','length','id,template','parent','207jfLcWf','GROUP','details','72eVvPdO','showGraphqlErrorResponse','name','display','menuType','callScenario','_config','__dirtyfields__','noteq','path','searchMyDynamicMenus','items','getSelectedIdList','parse','searchByPagination','badge','columns','getCodeByScenario','record','result','checkClientError','title','push','question','192prgbxJ','22210TKdOel','isNotEmpty','data','find','HOME','confirm','cancel','category','findOne','description','742522FFRrPK','codeItems','networkError','workCodeByName','tMenu','draft-list','key','runScenario','text.nothing_changed','todo-list','getCodeByEntity','approval-pending-list','findIndex','creator','delete','query','includes','errors','routing','__seq__'];a0_0x1c8b=function(){return _0x3903ea;};return a0_0x1c8b();}const a0_0x58584e=a0_0x2ad3;(function(_0x5216aa,_0x50ae49){const _0x45ecd5=a0_0x2ad3,_0x5ec861=_0x5216aa();while(!![]){try{const _0x31ca11=parseInt(_0x45ecd5(0x221))/0x1*(parseInt(_0x45ecd5(0x1ff))/0x2)+-parseInt(_0x45ecd5(0x1ba))/0x3*(parseInt(_0x45ecd5(0x1df))/0x4)+-parseInt(_0x45ecd5(0x1de))/0x5*(-parseInt(_0x45ecd5(0x1f3))/0x6)+parseInt(_0x45ecd5(0x205))/0x7+-parseInt(_0x45ecd5(0x1f2))/0x8*(parseInt(_0x45ecd5(0x1f0))/0x9)+-parseInt(_0x45ecd5(0x1bb))/0xa+parseInt(_0x45ecd5(0x1c5))/0xb*(-parseInt(_0x45ecd5(0x224))/0xc);if(_0x31ca11===_0x50ae49)break;else _0x5ec861['push'](_0x5ec861['shift']());}catch(_0x4f5a98){_0x5ec861['push'](_0x5ec861['shift']());}}}(a0_0x1c8b,0x3c960));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_0x78a0ba from'graphql-tag';import{ValueUtil}from'./value-util';import{asyncReplace}from'lit/directives/async-replace.js';import a0_0x2969dc from'i18next';import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';function a0_0x2ad3(_0x3035bf,_0x13e357){const _0x1c8be8=a0_0x1c8b();return a0_0x2ad3=function(_0x2ad3f0,_0x20f655){_0x2ad3f0=_0x2ad3f0-0x1b4;let _0x177264=_0x1c8be8[_0x2ad3f0];return _0x177264;},a0_0x2ad3(_0x3035bf,_0x13e357);}export class ServiceUtil{static async[a0_0x58584e(0x1c6)](_0x15fce4){const _0x58ca23=a0_0x58584e;if(Array[_0x58ca23(0x211)](_0x15fce4))return _0x15fce4[_0x58ca23(0x1e2)](_0x2e3b70=>_0x58ca23(0x1f9)==typeof _0x2e3b70?{'name':_0x2e3b70[_0x58ca23(0x21b)],'description':_0x2e3b70[_0x58ca23(0x227)]}:{'name':_0x2e3b70,'description':_0x2e3b70});let _0x4524e5=await ServiceUtil['getWorkCodeByName'](_0x15fce4);return _0x4524e5&&_0x4524e5['length']>0x0?_0x4524e5:await getCodeByName(_0x15fce4);}static async[a0_0x58584e(0x204)](_0x18036f){const _0x1ff412=a0_0x58584e,_0x465caa=await client[_0x1ff412(0x1d4)]({'query':a0_0x78a0ba`
|
|
2
2
|
query workCodeByName($name: String!) {
|
|
3
3
|
workCodeByName(name: $name) {
|
|
4
4
|
details {
|
|
@@ -8,32 +8,32 @@ const a0_0x56f1ba=a0_0x23ed;(function(_0x2e0b2d,_0xcca477){const _0x1c7427=a0_0x
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
`,'variables':{'name':
|
|
11
|
+
`,'variables':{'name':_0x18036f},'context':gqlContext()});return!_0x465caa['errors']&&_0x465caa['data'][_0x1ff412(0x1c8)]&&_0x465caa[_0x1ff412(0x1bd)][_0x1ff412(0x1c8)][_0x1ff412(0x223)]?_0x465caa[_0x1ff412(0x1bd)]['workCodeByName'][_0x1ff412(0x223)][_0x1ff412(0x1f4)]((_0xc20840,_0x44de8d)=>_0xc20840['rank']-_0x44de8d[_0x1ff412(0x20e)]):[];}static async[a0_0x58584e(0x1e8)](_0x56ad65){const _0x329770=a0_0x58584e;let _0x4bd759=(await ServiceUtil[_0x329770(0x1c6)](_0x56ad65))[_0x329770(0x1e2)](_0x4380aa=>({'value':_0x4380aa[_0x329770(0x226)],'display':_0x4380aa[_0x329770(0x1c4)]}));return _0x4bd759[_0x329770(0x1fe)]({'value':'','display':''}),_0x4bd759;}static async[a0_0x58584e(0x235)](_0x2abbb7,_0x1e5fd7){const _0xa78313=a0_0x58584e;let _0x22830c=await ServiceUtil[_0xa78313(0x229)](null,_0x2abbb7,_0x1e5fd7);return _0x22830c['unshift']({'value':'','display':''}),_0x22830c[_0xa78313(0x1e2)](_0x41be01=>({'value':_0x41be01[_0xa78313(0x226)],'display':_0x41be01[_0xa78313(0x1c4)]}));}static async[a0_0x58584e(0x1cf)]({queryName:_0x48527f,codeField:_0x5efa3a=a0_0x58584e(0x226),dispField:_0x1e2218='description',filters:_0x3430f4=[],sorters:_0x1c7ac5=[]}){const _0x5d618d=a0_0x58584e;let _0x16c2f5=_0x5d618d(0x201)+_0x5efa3a+_0x5d618d(0x201)+_0x1e2218+'\x0a\x20\x20\x20\x20',_0x4b1dc4=await ServiceUtil[_0x5d618d(0x232)](_0x48527f,_0x3430f4,_0x1c7ac5,0x0,0x0,_0x16c2f5),_0x58500a=[{'value':'','display':''}];return _0x4b1dc4[_0x5d618d(0x216)][_0x5d618d(0x1e7)](_0x607beb=>{const _0x396e5d=_0x5d618d;_0x58500a[_0x396e5d(0x1b8)]({'value':_0x607beb[_0x5efa3a],'display':_0x607beb[_0x1e2218]});}),_0x58500a;}static async[a0_0x58584e(0x218)](){const _0x572f37=a0_0x58584e;let _0xb91d94=await ServiceUtil[_0x572f37(0x22e)]();return null!=_0xb91d94?ServiceUtil['arrangeMenuRoutes'](_0xb91d94):null;}static async[a0_0x58584e(0x1f7)](_0x4cf120){const _0x24f265=a0_0x58584e;let _0x5b8dc9=[{'name':_0x24f265(0x20c),'operator':'eq','value':_0x4cf120}],_0x4cc579=await ServiceUtil[_0x24f265(0x232)]('gridPersonalizeTemplates',_0x5b8dc9,[],0x0,0x0,_0x24f265(0x21f));return 0x0==_0x4cc579[_0x24f265(0x206)]?{}:{'id':_0x4cc579['records'][0x0]['id'],'template':JSON[_0x24f265(0x231)](_0x4cc579[_0x24f265(0x216)][0x0][_0x24f265(0x210)])};}static[a0_0x58584e(0x1e4)](_0x1a51ac){const _0x372332=a0_0x58584e;let _0x4a37c2=[];_0x1a51ac['forEach'](_0x3e48b4=>{const _0x32e2e5=a0_0x2ad3;_0x4a37c2['push'](_0x3e48b4),_0x3e48b4[_0x32e2e5(0x213)]&&(_0x3e48b4['children'][_0x32e2e5(0x1f4)](function(_0x50757c,_0x406a51){const _0x127cc2=_0x32e2e5;return _0x50757c[_0x127cc2(0x20e)]-_0x406a51[_0x127cc2(0x20e)];}),_0x3e48b4[_0x32e2e5(0x213)][_0x32e2e5(0x1e7)](_0x46761e=>{const _0x61870f=_0x32e2e5;0x1!=_0x46761e['hiddenFlag']&&(_0x46761e[_0x61870f(0x220)]=_0x3e48b4,_0x4a37c2[_0x61870f(0x1b8)](_0x46761e));}));});let _0x2570fe=_0x4a37c2[_0x372332(0x1e2)](_0x10fe52=>{const _0x5c1ed9=_0x372332;if('GROUP'==_0x10fe52['menuType']||_0x5c1ed9(0x1e6)==_0x10fe52[_0x5c1ed9(0x228)]){let _0x4aa775={'id':_0x10fe52['id'],'parent':!0x0,'name':TermsUtil[_0x5c1ed9(0x1c9)](_0x10fe52[_0x5c1ed9(0x226)]),'icon':_0x10fe52['iconPath'],'type':_0x5c1ed9(0x222)==_0x10fe52['menuType']?_0x5c1ed9(0x1ec):'','menus':[]};return _0x10fe52[_0x5c1ed9(0x1d7)]&&(_0x4aa775['path']=_0x10fe52[_0x5c1ed9(0x1d7)]),_0x4aa775;}return{'id':'0'};})[_0x372332(0x1d9)](_0x3fcda8=>'0'!=_0x3fcda8['id']),_0x295bdb=_0x4a37c2[_0x372332(0x1e2)](_0x5b897c=>{const _0x5f1e5e=_0x372332;if(_0x5f1e5e(0x20b)==_0x5b897c[_0x5f1e5e(0x228)]||'HIDDEN-PAGE'==_0x5b897c[_0x5f1e5e(0x228)]){let _0x1b3748=_0x2570fe[_0x5f1e5e(0x1be)](_0x59e99d=>_0x59e99d['id']==_0x5b897c[_0x5f1e5e(0x220)]['id']);if(_0x1b3748){let _0x13ec99=TermsUtil['tMenu'](_0x5b897c[_0x5f1e5e(0x226)]);return _0x5f1e5e(0x20b)==_0x5b897c[_0x5f1e5e(0x228)]&&_0x1b3748[_0x5f1e5e(0x214)][_0x5f1e5e(0x1b8)]({'id':_0x5b897c['id'],'name':_0x13ec99,'path':_0x5b897c[_0x5f1e5e(0x1d7)],'icon':_0x5b897c[_0x5f1e5e(0x1e9)]}),{'id':_0x5b897c['id'],'parent':!0x1,'parent_id':_0x1b3748['id'],'title':_0x13ec99,'tagname':_0x5b897c[_0x5f1e5e(0x1c2)],'page':_0x5b897c[_0x5f1e5e(0x1d7)],'template':_0x5b897c['resourceUrl'],'routing_type':_0x5b897c[_0x5f1e5e(0x203)]};}return{'id':'0'};}return _0x5f1e5e(0x1bf)==_0x5b897c[_0x5f1e5e(0x228)]?{'id':_0x5b897c['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil[_0x5f1e5e(0x1c9)](_0x5b897c[_0x5f1e5e(0x226)]),'tagname':_0x5b897c[_0x5f1e5e(0x1c2)],'page':_0x5b897c[_0x5f1e5e(0x1d7)],'template':_0x5b897c['resourceUrl'],'routing_type':_0x5b897c[_0x5f1e5e(0x203)]}:{'id':'0'};})[_0x372332(0x1d9)](_0x2b4340=>null!=_0x2b4340&&'0'!=_0x2b4340['id']);_0x2570fe[_0x372332(0x1d9)](_0x588c49=>_0x372332(0x1ec)==_0x588c49[_0x372332(0x215)]&&_0x588c49[_0x372332(0x214)]&&_0x588c49['menus'][_0x372332(0x21e)]>0x0)[_0x372332(0x1e7)](_0x40fe7e=>{const _0x2392bb=_0x372332;let _0x101918=_0x2570fe[_0x2392bb(0x1d1)](_0x233db4=>_0x233db4['id']==_0x40fe7e['id'])+0x1;_0x2570fe[_0x2392bb(0x1f1)](_0x101918,0x0,..._0x40fe7e[_0x2392bb(0x214)]);});let _0x96f11f=0x0;return _0x2570fe[_0x372332(0x1e7)](_0xaf26f2=>{const _0x42469e=_0x372332;_0x42469e(0x1ce)==_0xaf26f2[_0x42469e(0x22d)]?(_0x96f11f++,_0xaf26f2[_0x42469e(0x233)]=()=>asyncReplace(generateActivitySummary(_0x42469e(0x1e5))),_0xaf26f2[_0x42469e(0x1fd)]=({path:_0x48230b})=>/^activity\//[_0x42469e(0x1e1)](_0x48230b)):_0x42469e(0x1d0)==_0xaf26f2[_0x42469e(0x22d)]?(_0x96f11f++,_0xaf26f2[_0x42469e(0x233)]=()=>asyncReplace(generateActivitySummary('numberOfApprovalPendings')),_0xaf26f2['active']=({path:_0x60f50})=>/^activity\//[_0x42469e(0x1e1)](_0x60f50)):_0x42469e(0x1ca)==_0xaf26f2[_0x42469e(0x22d)]&&(_0x96f11f++,_0xaf26f2['badge']=()=>asyncReplace(generateActivitySummary('numberOfDrafts')));}),_0x96f11f>0x0&&startSubscribeActivitySummary(),{'menus':_0x2570fe,'routes':_0x295bdb};}static async[a0_0x58584e(0x22e)](){const _0x8789d1=a0_0x58584e;let _0x133156=await ServiceUtil[_0x8789d1(0x232)](_0x8789d1(0x214),[{'name':_0x8789d1(0x1dd),'operator':_0x8789d1(0x22c),'value':!0x0},{'name':_0x8789d1(0x228),'operator':'in','value':[_0x8789d1(0x1bf),_0x8789d1(0x1e6),_0x8789d1(0x222)]}],[{'name':_0x8789d1(0x20e)}],0x0,0x0,_0x8789d1(0x1db));return _0x133156?_0x133156[_0x8789d1(0x216)]:[];}static async[a0_0x58584e(0x225)](_0x392a2b){const _0x5dea27=a0_0x58584e;if(_0x392a2b[_0x5dea27(0x1d6)]&&_0x392a2b['errors']['length']>0x0){let _0x34c220=_0x392a2b[_0x5dea27(0x1d6)][0x0],_0x5aba98=_0x34c220[_0x5dea27(0x1f6)],_0x78d856=_0x34c220[_0x5dea27(0x1f6)];_0x34c220[_0x5dea27(0x1f8)]&&(_0x78d856=_0x34c220[_0x5dea27(0x1f8)]['code']),await UiUtil[_0x5dea27(0x1da)](_0x78d856,_0x5aba98,_0x5dea27(0x212),'confirm');}}static async[a0_0x58584e(0x217)](_0x5b15e9){const _0x256788=a0_0x58584e;_0x5b15e9&&(_0x5b15e9['networkError']&&_0x5b15e9['networkError'][_0x256788(0x1b5)]?await ServiceUtil['showGraphqlErrorResponse'](_0x5b15e9[_0x256788(0x1c7)][_0x256788(0x1b5)]):await UiUtil[_0x256788(0x1da)]('Graphql\x20Error',_0x5b15e9['message'],'error',_0x256788(0x1c0)));}static async[a0_0x58584e(0x21a)](_0x24243b,_0x191488,_0x4a0a0c){const _0x48519f=a0_0x58584e;var _0x12d3ce=_0x4a0a0c[_0x48519f(0x22a)][_0x48519f(0x234)]['filter'](_0x2513e6=>_0x48519f(0x207)!==_0x2513e6['type']&&void 0x0!==_0x2513e6[_0x48519f(0x1b4)]&&void 0x0!==_0x2513e6[_0x48519f(0x209)]&&!0x0!==_0x2513e6[_0x48519f(0x208)])[_0x48519f(0x1e2)](_0x38c294=>_0x38c294[_0x48519f(0x209)]),_0x3b1ffb=_0x4a0a0c['data'][_0x48519f(0x216)][_0x48519f(0x1e2)](_0x3328d2=>({..._0x4a0a0c[_0x48519f(0x22a)][_0x48519f(0x234)][_0x48519f(0x1d9)](_0x10c00b=>'gutter'!==_0x10c00b[_0x48519f(0x215)]&&void 0x0!==_0x10c00b[_0x48519f(0x1b4)]&&void 0x0!==_0x10c00b[_0x48519f(0x209)]&&!0x0!==_0x10c00b[_0x48519f(0x208)])['reduce']((_0x291af4,_0x3de679)=>(_0x291af4[_0x3de679['imex'][_0x48519f(0x1cb)]]=_0x3de679[_0x48519f(0x209)][_0x48519f(0x1cb)][_0x48519f(0x1e3)]('.')['reduce']((_0x1d72ac,_0x226889)=>_0x1d72ac&&_0x48519f(0x1ea)!==_0x1d72ac[_0x226889]?_0x1d72ac[_0x226889]:void 0x0,_0x3328d2),_0x291af4),{})}));if(!_0x24243b)return{'header':_0x12d3ce,'data':_0x3b1ffb};store[_0x48519f(0x21d)]({'type':EXPORT,'exportable':{'extension':'xlsx','name':_0x191488,'data':{'header':_0x12d3ce,'data':_0x3b1ffb}}});}static async[a0_0x58584e(0x232)](_0x4aba0d,_0x42a6b5,_0x69aa83,_0x55b49f,_0x75321b,_0x1a4707){const _0x56904f=a0_0x58584e;try{const _0xa3df63=await client[_0x56904f(0x1d4)]({'query':a0_0x78a0ba`
|
|
12
12
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
13
|
-
${
|
|
13
|
+
${_0x4aba0d}(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
14
14
|
items {
|
|
15
|
-
${
|
|
15
|
+
${_0x1a4707}
|
|
16
16
|
}
|
|
17
17
|
total
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,'variables':{'filters':
|
|
20
|
+
`,'variables':{'filters':_0x42a6b5,'sortings':_0x69aa83,'pagination':{'page':_0x55b49f,'limit':_0x75321b}}});if(!_0xa3df63[_0x56904f(0x1d6)])return{'records':_0xa3df63['data'][_0x4aba0d][_0x56904f(0x22f)],'total':_0xa3df63['data'][_0x4aba0d][_0x56904f(0x206)]};ServiceUtil[_0x56904f(0x225)](_0xa3df63);}catch(_0x5be550){ServiceUtil[_0x56904f(0x217)](_0x5be550);}return null;}static async[a0_0x58584e(0x1c3)](_0xe8c602,_0x4873cc,_0x2e5cfd){const _0x4b6705=a0_0x58584e;try{let _0x54a014=await client[_0x4b6705(0x1d4)]({'query':a0_0x78a0ba`
|
|
21
21
|
query ($id: String!) {
|
|
22
|
-
${
|
|
23
|
-
${
|
|
22
|
+
${_0xe8c602}(id: $id) {
|
|
23
|
+
${_0x2e5cfd}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,'variables':{'id':
|
|
26
|
+
`,'variables':{'id':_0x4873cc}});if(!_0x54a014['errors'])return _0x54a014[_0x4b6705(0x1bd)][_0xe8c602]||{};ServiceUtil['showGraphqlErrorResponse'](_0x54a014);}catch(_0x382dee){ServiceUtil['showGraphqlException'](_0x382dee);}return null;}static[a0_0x58584e(0x230)](_0x5a5e3a,_0x30cd98){const _0x57b290=a0_0x58584e,_0x2bb71e=_0x5a5e3a['selected']['map'](_0x2e5798=>_0x2e5798['id']);return ValueUtil[_0x57b290(0x1dc)](_0x2bb71e)&&0x1==_0x30cd98&&UiUtil['showAlertPopup'](_0x57b290(0x1fa),'text.there_is_nothing_to_delete',_0x57b290(0x1fc),_0x57b290(0x1c0)),_0x2bb71e;}static async['deleteListByGristSelected'](_0x270396,_0x75b2b){const _0x391e12=a0_0x58584e;let _0x384303=ServiceUtil[_0x391e12(0x230)](_0x270396,!0x0);ValueUtil[_0x391e12(0x1bc)](_0x384303)&&(await ServiceUtil[_0x391e12(0x219)](_0x384303,_0x75b2b)&&_0x270396['fetch']());}static async['deleteListByIds'](_0x391dc6,_0x328a28){const _0x511ff9=a0_0x58584e;if(!(await UiUtil[_0x511ff9(0x1da)](_0x511ff9(0x1ef),_0x511ff9(0x1f5),_0x511ff9(0x1b9),_0x511ff9(0x1d3),_0x511ff9(0x1c1)))[_0x511ff9(0x21b)])return!0x1;try{const _0x33ac27=await client[_0x511ff9(0x1d4)]({'query':a0_0x78a0ba`
|
|
27
27
|
mutation {
|
|
28
|
-
${
|
|
28
|
+
${_0x328a28}(${gqlBuilder['buildArgs']({'ids':_0x391dc6})})
|
|
29
29
|
}
|
|
30
|
-
`});if(!
|
|
30
|
+
`});if(!_0x33ac27['errors'])return UiUtil[_0x511ff9(0x20f)](_0x511ff9(0x1fc),TermsUtil[_0x511ff9(0x200)]('success\x20to\x20delete')),!0x0;ServiceUtil['showGraphqlErrorResponse'](_0x33ac27);}catch(_0x1dbb40){ServiceUtil[_0x511ff9(0x217)](_0x1dbb40);}return!0x1;}static async['updateMultipleData'](_0x53bbe1,_0x274bbd){const _0x501c11=a0_0x58584e;let _0x3f2bdd=ServiceUtil[_0x501c11(0x20d)](_0x53bbe1);if(ValueUtil[_0x501c11(0x1bc)](_0x3f2bdd)){let _0x4d7609=await ServiceUtil['updateMultiple'](_0x274bbd,_0x3f2bdd);if(_0x4d7609)return _0x53bbe1[_0x501c11(0x202)](),_0x4d7609;}return!0x1;}static async['updateMultiple'](_0x1eb46b,_0x24ad7c){const _0x401bc9=a0_0x58584e;try{const _0x44225e=await client[_0x401bc9(0x1d4)]({'query':a0_0x78a0ba`
|
|
31
31
|
mutation {
|
|
32
|
-
${
|
|
32
|
+
${_0x1eb46b}(${gqlBuilder['buildArgs']({'patches':_0x24ad7c})}) {
|
|
33
33
|
id
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
`,'context':{'hasUpload':!0x0}});if(!
|
|
36
|
+
`,'context':{'hasUpload':!0x0}});if(!_0x44225e['errors'])return UiUtil[_0x401bc9(0x20f)]('info',TermsUtil[_0x401bc9(0x200)]('success\x20to\x20save')),!0x0;ServiceUtil[_0x401bc9(0x225)](_0x44225e);}catch(_0x159bcd){ServiceUtil[_0x401bc9(0x217)](_0x159bcd);}return!0x1;}static[a0_0x58584e(0x20d)](_0x3406f1,_0x4abc4e=!0x1){const _0x198e20=a0_0x58584e;let _0x2c6e03=_0x3406f1[_0x198e20(0x1e0)];if(_0x2c6e03&&0x0!=_0x2c6e03[_0x198e20(0x21e)])return _0x2c6e03[_0x198e20(0x1e2)](_0x575b67=>{const _0x5c1e32=_0x198e20;let _0x3bdfd1=_0x575b67['id']?{'id':_0x575b67['id']}:{};for(let _0x5e9f54 in _0x575b67)[_0x5c1e32(0x1d2),'updater',_0x5c1e32(0x1ed),_0x5c1e32(0x1ee),_0x5c1e32(0x21c),_0x5c1e32(0x22b),'__origin__',_0x5c1e32(0x1d8),_0x5c1e32(0x20a)][_0x5c1e32(0x1d5)](_0x5e9f54)||(_0x575b67[_0x5e9f54]&&_0x5c1e32(0x1f9)==typeof _0x575b67[_0x5e9f54]&&0x0==_0x4abc4e?_0x3bdfd1[_0x5e9f54]={'id':_0x575b67[_0x5e9f54]['id']}:_0x3bdfd1[_0x5e9f54]=_0x575b67[_0x5e9f54]);return _0x3bdfd1['cuFlag']=_0x575b67[_0x5c1e32(0x21c)],_0x3bdfd1;});UiUtil['showAlertPopup'](_0x198e20(0x1cd),_0x198e20(0x1eb),'info',_0x198e20(0x1c0));}static async[a0_0x58584e(0x229)](_0x306692,_0x3ccca0,_0x2bfa81,_0x5b7d57=!0x0){const _0x26fea8=a0_0x58584e;let _0x28680e=!0x0;_0x306692&&!0x0===_0x5b7d57&&(_0x28680e=(await UiUtil[_0x26fea8(0x1da)]('button.'+_0x306692,_0x26fea8(0x1f5),_0x26fea8(0x1b9),_0x26fea8(0x1c0),_0x26fea8(0x1c1)))[_0x26fea8(0x21b)]);if(_0x28680e)try{const _0x24d491=await client[_0x26fea8(0x1d4)]({'query':a0_0x78a0ba`
|
|
37
37
|
mutation ($scenarioName: String!, $variables: Object) {
|
|
38
38
|
runScenario(scenarioName: $scenarioName, variables: $variables) {
|
|
39
39
|
state
|
|
@@ -42,4 +42,4 @@ const a0_0x56f1ba=a0_0x23ed;(function(_0x2e0b2d,_0xcca477){const _0x1c7427=a0_0x
|
|
|
42
42
|
__typename
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
`,'variables':{'scenarioName':
|
|
45
|
+
`,'variables':{'scenarioName':_0x3ccca0,'variables':_0x2bfa81}});if(_0x24d491[_0x26fea8(0x1d6)])ServiceUtil['showGraphqlErrorResponse'](_0x24d491);else{if(this[_0x26fea8(0x1b6)](_0x24d491))return!0x0===_0x5b7d57&&UiUtil[_0x26fea8(0x20f)]('info',TermsUtil['tText'](_0x26fea8(0x1fb))),_0x24d491;}}catch(_0x4623bc){ServiceUtil['showGraphqlException'](_0x4623bc);}return!0x1;}static['checkClientError'](_0x498be0){const _0x3693c6=a0_0x58584e;if(_0x498be0&&_0x498be0['data']&&_0x498be0[_0x3693c6(0x1bd)][_0x3693c6(0x1cc)]&&_0x498be0['data']['runScenario'][_0x3693c6(0x1bd)]&&_0x498be0[_0x3693c6(0x1bd)][_0x3693c6(0x1cc)][_0x3693c6(0x1bd)][_0x3693c6(0x212)]){let _0x1cce62=_0x498be0[_0x3693c6(0x1bd)][_0x3693c6(0x1cc)][_0x3693c6(0x1bd)][_0x3693c6(0x212)];return UiUtil[_0x3693c6(0x1da)](_0x1cce62[_0x3693c6(0x1b7)],_0x1cce62['message'],_0x3693c6(0x212),_0x3693c6(0x1c0)),!0x1;}return!0x0;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x5a1f(){const _0x1c4d64=['length','tField','1808494YfWVtL','7626820DQxkHU','menu','tButton','display','items','records','locale','tError','title','data','6jgXEnw','forEach','translate','14lhVElR','replace','total','83512GNqgrb','META_TERMS','1RSKhWn','name','2274892NcrJgQ','fetchTerminologies','error','444LYjPFN','terminologies','category','694628nUOCvl','1556875xpiOdb','365130LwNrFK','keys','tTitle','label','tMenu','279cjhjuz','downloadTerminologies','errors'];a0_0x5a1f=function(){return _0x1c4d64;};return a0_0x5a1f();}function a0_0x98ca(_0x3eb754,_0x54c88d){const _0x5a1fb9=a0_0x5a1f();return a0_0x98ca=function(_0x98ca1a,_0x40cc2e){_0x98ca1a=_0x98ca1a-0x16a;let _0x3562bc=_0x5a1fb9[_0x98ca1a];return _0x3562bc;},a0_0x98ca(_0x3eb754,_0x54c88d);}const a0_0x8eccca=a0_0x98ca;(function(_0x4ec1fc,_0x75534a){const _0x28a049=a0_0x98ca,_0xea1679=_0x4ec1fc();while(!![]){try{const _0x35fe0a=parseInt(_0x28a049(0x16e))/0x1*(parseInt(_0x28a049(0x182))/0x2)+parseInt(_0x28a049(0x18d))/0x3*(parseInt(_0x28a049(0x170))/0x4)+parseInt(_0x28a049(0x177))/0x5+parseInt(_0x28a049(0x178))/0x6*(parseInt(_0x28a049(0x190))/0x7)+-parseInt(_0x28a049(0x16c))/0x8*(parseInt(_0x28a049(0x17d))/0x9)+parseInt(_0x28a049(0x183))/0xa+-parseInt(_0x28a049(0x176))/0xb*(parseInt(_0x28a049(0x173))/0xc);if(_0x35fe0a===_0x75534a)break;else _0xea1679['push'](_0xea1679['shift']());}catch(_0x50cd66){_0xea1679['push'](_0xea1679['shift']());}}}(a0_0x5a1f,0x8cf5f));import a0_0x29b3ed from'graphql-tag';import{client}from'@operato/graphql';import{i18next}from'@operato/i18n';export class TermsUtil{[a0_0x8eccca(0x16d)]=null;static async[a0_0x8eccca(0x17e)](_0x15eecc){const _0x4d26d4=a0_0x8eccca;let _0x283314=(await TermsUtil['fetchTerminologies'](_0x15eecc))[_0x4d26d4(0x188)];_0x283314&&_0x283314[_0x4d26d4(0x180)]>0x0&&(this[_0x4d26d4(0x16d)]={},_0x283314['forEach'](_0xd7ac60=>{const _0x1aa3a0=_0x4d26d4;let _0x223229=_0xd7ac60[_0x1aa3a0(0x175)]+'.'+_0xd7ac60['name'];this[_0x1aa3a0(0x16d)][_0x223229]=_0xd7ac60[_0x1aa3a0(0x186)];}));}static async[a0_0x8eccca(0x171)](_0x4ad3b6){const _0x3e722e=a0_0x8eccca;let _0x29e04a=[{'name':_0x3e722e(0x189),'operator':'eq','value':_0x4ad3b6}];const _0x2ec2ca=await client['query']({'query':a0_0x29b3ed`
|
|
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_0x230631=a0_0x269c;(function(_0x50f644,_0x45d7ba){const _0x407e83=a0_0x
|
|
|
11
11
|
total
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
`,'variables':{'filters':
|
|
14
|
+
`,'variables':{'filters':_0x29e04a,'sortings':[{'name':_0x3e722e(0x175)},{'name':_0x3e722e(0x16f)}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0x2ec2ca[_0x3e722e(0x17f)])return{'records':_0x2ec2ca['data'][_0x3e722e(0x174)][_0x3e722e(0x187)]||[],'total':_0x2ec2ca[_0x3e722e(0x18c)][_0x3e722e(0x174)][_0x3e722e(0x16b)]||0x0};}static['tLabel'](_0x5d7c0e,_0x453122){const _0x4c27c8=a0_0x8eccca;let _0x38640b=TermsUtil['translate'](_0x4c27c8(0x17b),_0x5d7c0e,_0x453122,null);return _0x38640b||TermsUtil['translate']('field',_0x5d7c0e,_0x453122,_0x5d7c0e);}static[a0_0x8eccca(0x181)](_0x57d58e,_0x5cb7d6){const _0x6397d1=a0_0x8eccca;let _0x526032=TermsUtil[_0x6397d1(0x18f)]('field',_0x57d58e,_0x5cb7d6,null);return _0x526032||TermsUtil[_0x6397d1(0x18f)]('field',_0x57d58e,_0x5cb7d6,_0x57d58e);}static[a0_0x8eccca(0x185)](_0x4bbb33){return TermsUtil['translate']('button',_0x4bbb33,null,_0x4bbb33);}static[a0_0x8eccca(0x17a)](_0x2df107,_0x490bd1){const _0x636cc0=a0_0x8eccca;let _0x2cb902=TermsUtil[_0x636cc0(0x18f)](_0x636cc0(0x18b),_0x2df107,_0x490bd1,null);return _0x2cb902||TermsUtil[_0x636cc0(0x18f)](_0x636cc0(0x184),_0x2df107,_0x490bd1,_0x2df107);}static[a0_0x8eccca(0x17c)](_0xd3a5a4){const _0x517574=a0_0x8eccca;let _0x2ff3f9=TermsUtil[_0x517574(0x18f)](_0x517574(0x184),_0xd3a5a4,null,_0xd3a5a4);return _0x2ff3f9||TermsUtil['translate'](_0x517574(0x18b),_0xd3a5a4,null,_0xd3a5a4);}static['tText'](_0x21f5eb,_0x2a23){const _0x5e4116=a0_0x8eccca;return TermsUtil[_0x5e4116(0x18f)]('text',_0x21f5eb,_0x2a23,_0x21f5eb);}static[a0_0x8eccca(0x18a)](_0x454df0,_0x1ca81b){const _0x3b0302=a0_0x8eccca;return TermsUtil[_0x3b0302(0x18f)](_0x3b0302(0x172),_0x454df0,_0x1ca81b,_0x454df0);}static['translate'](_0x381c04,_0x964d61,_0x2f7ba1,_0x48887e){let _0x54a8e2=_0x381c04+'.'+_0x964d61;return TermsUtil['t'](_0x54a8e2,_0x2f7ba1,_0x48887e);}static['t'](_0x14a3b7,_0xa98f54,_0x5da38f){const _0x512704=a0_0x8eccca;let _0x3fd754=this[_0x512704(0x16d)]?this['META_TERMS'][_0x14a3b7]:null;return _0x3fd754=_0x3fd754||i18next['t'](_0x14a3b7),_0x3fd754&&_0x14a3b7!=_0x3fd754?(_0xa98f54&&Object[_0x512704(0x179)](_0xa98f54)[_0x512704(0x18e)](function(_0x7d5f75){const _0xe9b59f=_0x512704;var _0x433ac0='\x5c{'+_0x7d5f75[_0xe9b59f(0x16a)](/\$/,'\x5c$')+'\x5c}',_0x5ef33b=new RegExp(_0x433ac0,'gi');_0x3fd754=_0x3fd754[_0xe9b59f(0x16a)](_0x5ef33b,_0xa98f54[_0x7d5f75]);}),_0x3fd754):_0x5da38f;}}
|
package/client/utils/ui-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0xed7f(_0x1a7608,_0xba3ab7){const _0x758513=a0_0x7585();return a0_0xed7f=function(_0xed7fa9,_0x5d4d28){_0xed7fa9=_0xed7fa9-0x71;let _0x2ccfdc=_0x758513[_0xed7fa9];return _0x2ccfdc;},a0_0xed7f(_0x1a7608,_0xba3ab7);}function a0_0x7585(){const _0x4e33c2=['substring','fireCustomEvent','value','\x27\x20\x20parent_id=\x27','openPopupByElement','route','tagname','isMobileEnv','ko-KR','select-combo','\x27\x20is_popup=true></','cookie','1966238JHwrQB','modules','template','setValueToEditor','getStore','popup_field','innerHTML','input','i18next=','1022005jToCHg','createEditorHtml','openDynamicPopup','page','5230rXDpAp','filters','firstElementChild','textarea','confirmButton','createElement','renderRoot','14217VwZngy','ox-select','dispatchEvent','querySelector','4LFOWoF','pageNavigate','currentRouting','replace','code-editor','[name=\x27','getParams','removeChild','\x20route_name=\x27','htmlToElement','7224vipvrA','showAlertPopup','name','currentLocale','getLeafInput','parent_field','config','forEach','isNotEmpty','4977nnzzlG','tButton','notify','65307nISECq','3316962cuLLQV','getApplicationModuleInfo','getState','stringify','barcode','content','pass=','750AtcvHJ','ox-input-code','childNodes','2049605FCOcEw','indexOf'];a0_0x7585=function(){return _0x4e33c2;};return a0_0x7585();}const a0_0x166810=a0_0xed7f;(function(_0x430aed,_0x3af34b){const _0x1e4972=a0_0xed7f,_0x84495c=_0x430aed();while(!![]){try{const _0x21b93f=-parseInt(_0x1e4972(0x93))/0x1+-parseInt(_0x1e4972(0x8a))/0x2+-parseInt(_0x1e4972(0x72))/0x3+parseInt(_0x1e4972(0xa2))/0x4*(parseInt(_0x1e4972(0x7c))/0x5)+-parseInt(_0x1e4972(0x79))/0x6*(parseInt(_0x1e4972(0x9e))/0x7)+parseInt(_0x1e4972(0xac))/0x8*(parseInt(_0x1e4972(0xb5))/0x9)+-parseInt(_0x1e4972(0x97))/0xa*(-parseInt(_0x1e4972(0x71))/0xb);if(_0x21b93f===_0x3af34b)break;else _0x84495c['push'](_0x84495c['shift']());}catch(_0x340b74){_0x84495c['push'](_0x84495c['shift']());}}}(a0_0x7585,0x9e9ce));import{store,CustomAlert,navigate}from'@things-factory/shell';import{openPopup}from'@things-factory/layout-base';import{isMobileDevice}from'@things-factory/utils';import{getEditor}from'@operato/data-grist';import{TermsUtil}from'./terms-util';import{ValueUtil}from'./value-util';import{MetaUiUtil}from'./meta-ui-util';export class UiUtil{static[a0_0x166810(0x85)](){return isMobileDevice();}static[a0_0x166810(0xaf)](){const _0x236165=a0_0x166810;let _0x53251d=document[_0x236165(0x89)];return _0x53251d=_0x53251d[_0x236165(0x7e)](_0x53251d[_0x236165(0x7d)]('i18next')),_0x53251d['indexOf'](';')>-0x1&&(_0x53251d=_0x53251d[_0x236165(0x7e)](0x0,_0x53251d['indexOf'](';'))),_0x53251d=_0x53251d[_0x236165(0xa5)](_0x236165(0x92),''),'ko'==_0x53251d?_0x236165(0x86):_0x53251d;}static[a0_0x166810(0x73)](){const _0x28c25b=a0_0x166810;let _0x14eb2b=store[_0x28c25b(0x74)]()['app'][_0x28c25b(0x8b)];return _0x14eb2b[_0x14eb2b['length']-0x1];}static[a0_0x166810(0xa4)](){const _0x2de72a=a0_0x166810;return store[_0x2de72a(0x74)]()[_0x2de72a(0x83)][_0x2de72a(0x96)];}static[a0_0x166810(0x82)](_0x35ac4e,_0x5a622a,_0x46e1e6,_0xd8d9b3){return openPopup(_0x46e1e6,{'backdrop':!0x0,'size':_0x5a622a,'title':_0x35ac4e,'backdrop':_0xd8d9b3});}static async[a0_0x166810(0x95)](_0x2ddd3a,_0x284334,_0x24a328,_0x26b0d){const _0x31aaeb=a0_0x166810;let _0x523a08=ValueUtil[_0x31aaeb(0xb4)](_0x284334[_0x31aaeb(0xb1)])?ValueUtil[_0x31aaeb(0xa8)](_0x24a328,..._0x284334[_0x31aaeb(0xb1)]['split']('.')):void 0x0,_0x1523f1='<'+_0x284334[_0x31aaeb(0x84)]+'\x20route_name=\x27'+_0x284334['menu']+_0x31aaeb(0x81)+_0x523a08+_0x31aaeb(0x88)+_0x284334[_0x31aaeb(0x84)]+'>',_0x5aa1a1=UiUtil[_0x31aaeb(0xab)](_0x1523f1);_0x5aa1a1[_0x31aaeb(0xb2)]=_0x284334,ValueUtil[_0x31aaeb(0xb4)](_0x284334[_0x31aaeb(0x8f)])&&(_0x5aa1a1[_0x284334['popup_field']]=_0x24a328);let _0x18a4d6=UiUtil[_0x31aaeb(0x82)](_0x2ddd3a,_0x284334['size'],_0x5aa1a1,!0x0);_0x26b0d&&(_0x18a4d6['onclosed']=_0x26b0d);}static['createCustomElement'](_0x45579b,_0x383f68){const _0x2b9f71=a0_0x166810;let _0x104f20='<'+_0x45579b+_0x2b9f71(0xaa)+_0x383f68+'\x27></'+_0x45579b+'>';return UiUtil[_0x2b9f71(0xab)](_0x104f20);}static[a0_0x166810(0xab)](_0x3c3ce0){const _0x235624=a0_0x166810;var _0x456a50=document[_0x235624(0x9c)](_0x235624(0x8c));_0x456a50[_0x235624(0x90)]=_0x3c3ce0;var _0x4e76f8=_0x456a50[_0x235624(0x77)][_0x235624(0x7b)][0x0];return _0x456a50[_0x235624(0x77)][_0x235624(0xa9)](_0x4e76f8),_0x4e76f8;}static[a0_0x166810(0xa3)](_0x4b3dbd,_0x19a3f8){const _0x2b8d6c=a0_0x166810;let _0x30c979=_0x19a3f8?'?':'';_0x19a3f8&&(_0x30c979+=_0x2b8d6c(0x78)+JSON[_0x2b8d6c(0x75)](_0x19a3f8)),navigate(''+_0x4b3dbd+_0x30c979);}static[a0_0x166810(0x8e)](_0x58e84d,_0x90d379,_0x3ef6b2){let _0x518e40=_0x518e40['getState']();return _0x58e84d&&_0x90d379&&_0x3ef6b2?_0x518e40[_0x58e84d][_0x90d379][_0x3ef6b2]:_0x58e84d&&_0x90d379?_0x518e40[_0x58e84d][_0x90d379]:_0x58e84d?_0x518e40[_0x58e84d]:_0x518e40;}static[a0_0x166810(0x7f)](_0x59f89e,_0x457346){const _0x2fc326=a0_0x166810;document[_0x2fc326(0xa0)](new CustomEvent(_0x59f89e,{'detail':_0x457346}));}static['showToast'](_0x34663f,_0x25dd93){const _0x2927b9=a0_0x166810;document[_0x2927b9(0xa0)](new CustomEvent(_0x2927b9(0xb7),{'detail':{'type':_0x34663f,'message':_0x25dd93}}));}static async[a0_0x166810(0xad)](_0x3916e,_0x404186,_0x25ce7b,_0x57f064,_0x28393f){const _0x2fbad0=a0_0x166810;let _0x2b60b={'title':TermsUtil['t'](_0x3916e)||_0x3916e,'text':TermsUtil['t'](_0x404186)||_0x404186};return _0x25ce7b&&(_0x2b60b['type']=_0x25ce7b),_0x57f064&&(_0x2b60b[_0x2fbad0(0x9b)]=TermsUtil[_0x2fbad0(0xb6)](_0x57f064)),_0x28393f&&(_0x2b60b['cancelButton']=TermsUtil[_0x2fbad0(0xb6)](_0x28393f)),await CustomAlert(_0x2b60b);}static['getFilterFormData'](_0xd565ac){const _0x29e16e=a0_0x166810;if(ValueUtil[_0x29e16e(0xb4)](_0xd565ac)){let _0x2c9d9a=_0xd565ac[_0x29e16e(0x98)]();ValueUtil['isNotEmpty'](_0x2c9d9a)&&_0x2c9d9a[_0x29e16e(0xb3)](_0x110069=>{const _0x29c468=_0x29e16e;ValueUtil[_0x29c468(0xb4)](_0x110069['value'])&&(item[_0x110069[_0x29c468(0xae)]]=_0x110069[_0x29c468(0x80)]?_0x110069[_0x29c468(0x80)]:null);});}return{};}static['setSearchFormEditorValue'](_0x260b49,_0x6e350d,_0xc0a33a){const _0x58e376=a0_0x166810;if(ValueUtil['isNotEmpty'](_0x260b49)){let _0x3f3b75=_0x260b49[_0x58e376(0x9d)]?.[_0x58e376(0xa1)](_0x58e376(0xa7)+_0x6e350d+'\x27]');ValueUtil[_0x58e376(0xb4)](_0x3f3b75)&&(_0x3f3b75['value']=_0xc0a33a);}}static[a0_0x166810(0x94)](_0x5573f9,_0x2bf6b9,_0x556156,_0x182f22){return getEditor(_0x5573f9)('',_0x2bf6b9,_0x556156,_0x182f22,{});}static[a0_0x166810(0x8d)](_0x4dfb40,_0x5ce62e){const _0x58dfc6=a0_0x166810;UiUtil[_0x58dfc6(0xb0)](_0x4dfb40)[_0x58dfc6(0x80)]=_0x5ce62e;}static['getLeafInput'](_0x5ce568){const _0x1efd7c=a0_0x166810;let _0x44edee=_0x5ce568['getType']();return _0x1efd7c(0xa6)==_0x44edee?_0x5ce568[_0x1efd7c(0x9d)][_0x1efd7c(0xa1)](_0x1efd7c(0x7a)):_0x1efd7c(0x9a)==_0x44edee?_0x5ce568[_0x1efd7c(0x9d)]['querySelector'](_0x1efd7c(0x9a)):_0x1efd7c(0x87)==_0x44edee?_0x5ce568[_0x1efd7c(0x9d)][_0x1efd7c(0xa1)](_0x1efd7c(0x9f))[_0x1efd7c(0x99)]:_0x1efd7c(0x76)==_0x44edee?_0x5ce568[_0x1efd7c(0x9d)][_0x1efd7c(0xa1)]('ox-input-barcode')[_0x1efd7c(0x9d)]['querySelector'](_0x1efd7c(0x91)):_0x5ce568[_0x1efd7c(0x9d)][_0x1efd7c(0x99)]['editor'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x186f12=a0_0xb968;function a0_0xb968(_0x3e632c,_0x3d712d){const _0x3592c3=a0_0x3592();return a0_0xb968=function(_0xb96861,_0x35c463){_0xb96861=_0xb96861-0x1a0;let _0x419adf=_0x3592c3[_0xb96861];return _0x419adf;},a0_0xb968(_0x3e632c,_0x3d712d);}function a0_0x3592(){const _0x4ee8f5=['setParams','51tGemXA','populateObject','1500194MAumdb','slice','3579723mXUxTj','13647470TCOMJX','boolean','object','forEach','getParams','length','map','30087BgCvjd','compareObjectValues','876SiAfZx','isArray','toInteger','isNotEmpty','18410naxopc','11yaoGDe','true','9384tVagbw','keys','TRUE','296jVZuMP','populateArray','number','isEmpty','toBoolean','79733skfnyu','isEquals'];a0_0x3592=function(){return _0x4ee8f5;};return a0_0x3592();}(function(_0xa226bf,_0x55238a){const _0x44fec2=a0_0xb968,_0x5c4e96=_0xa226bf();while(!![]){try{const _0x43ab02=parseInt(_0x44fec2(0x1b0))/0x1+parseInt(_0x44fec2(0x1b5))/0x2+-parseInt(_0x44fec2(0x1b3))/0x3*(-parseInt(_0x44fec2(0x1a8))/0x4)+parseInt(_0x44fec2(0x1a5))/0x5*(parseInt(_0x44fec2(0x1a1))/0x6)+parseInt(_0x44fec2(0x1b7))/0x7+parseInt(_0x44fec2(0x1ab))/0x8*(-parseInt(_0x44fec2(0x1bf))/0x9)+parseInt(_0x44fec2(0x1b8))/0xa*(-parseInt(_0x44fec2(0x1a6))/0xb);if(_0x43ab02===_0x55238a)break;else _0x5c4e96['push'](_0x5c4e96['shift']());}catch(_0xfec276){_0x5c4e96['push'](_0x5c4e96['shift']());}}}(a0_0x3592,0x6909b));import a0_0x4d95b8 from'lodash-es/isEqual';import{TermsUtil}from'./terms-util';export class ValueUtil{static['isEmpty'](_0x331ef2){const _0x107160=a0_0xb968;if(void 0x0===_0x331ef2)return!0x0;if(null===_0x331ef2)return!0x0;if(_0x107160(0x1b9)==typeof _0x331ef2)return!0x1;if('string'==typeof _0x331ef2||_0x107160(0x1ad)==typeof _0x331ef2){if(''==_0x331ef2)return!0x0;}else{if(Array[_0x107160(0x1a2)](_0x331ef2)){if(0x0==_0x331ef2['length'])return!0x0;}else{if(_0x107160(0x1ba)==typeof _0x331ef2&&0x0==Object[_0x107160(0x1a9)](_0x331ef2)[_0x107160(0x1bd)])return!0x0;}}return!0x1;}static[a0_0x186f12(0x1a4)](_0x25a400){return!ValueUtil['isEmpty'](_0x25a400);}static[a0_0x186f12(0x1b1)](_0x49bb6e,_0x3f2bfa){return a0_0x4d95b8(_0x49bb6e,_0x3f2bfa);}static[a0_0x186f12(0x1a3)](_0x1b8694,_0x3f3668){return ValueUtil['isEmpty'](_0x1b8694)?_0x3f3668||0x0:parseInt(_0x1b8694);}static[a0_0x186f12(0x1af)](_0x2f060a){const _0x53627f=a0_0x186f12;return!ValueUtil[_0x53627f(0x1ae)](_0x2f060a)&&(_0x53627f(0x1a7)==_0x2f060a||'t'==_0x2f060a||_0x53627f(0x1aa)==_0x2f060a||'T'==_0x2f060a||'on'==_0x2f060a||'ON'==_0x2f060a);}static[a0_0x186f12(0x1a0)](_0x3c3900,_0x481700,_0x1813f9){const _0xeb0fd4=a0_0x186f12;let _0x1df2db=!0x0;return _0x1813f9[_0xeb0fd4(0x1bb)](_0x3eb613=>{const _0x3be56e=_0xeb0fd4;let _0x3db474=_0x3c3900[_0x3eb613];if('*'===_0x3db474)return;let _0x351462=_0x481700[_0x3eb613]||'';ValueUtil[_0x3be56e(0x1ae)](_0x3db474)?ValueUtil[_0x3be56e(0x1a4)](_0x351462)&&(_0x1df2db=!0x1):_0x3db474!=_0x351462&&(_0x1df2db=!0x1);}),_0x1df2db;}static[a0_0x186f12(0x1b2)](_0x3cc97f,_0x3916ad,_0x2999c0,_0x47ad18){const _0x2ec48c=a0_0x186f12;let _0x3f1e8f=ValueUtil['getParams'](_0x3916ad,_0x2999c0);return ValueUtil[_0x2ec48c(0x1a4)](_0x3f1e8f)&&(_0x3cc97f[_0x2999c0]=!0x0===_0x47ad18?TermsUtil['t'](_0x3f1e8f):_0x3f1e8f),_0x3cc97f;}static[a0_0x186f12(0x1bc)](_0x3e5eb5,..._0x5ea73b){const _0x486dce=a0_0x186f12;if(arguments[_0x486dce(0x1bd)]<=0x1)return;let _0xa4b3e8=_0x5ea73b[0x0];if(ValueUtil[_0x486dce(0x1ae)](_0x3e5eb5[_0xa4b3e8]))return;let _0x428de5=_0x3e5eb5[_0xa4b3e8];return _0x5ea73b[_0x486dce(0x1bd)]>0x1?ValueUtil[_0x486dce(0x1bc)](_0x428de5,..._0x5ea73b[_0x486dce(0x1b6)](0x1)):_0x428de5;}static[a0_0x186f12(0x1ac)](_0x23013f,_0x2b6ee5,..._0x174356){const _0x56a472=a0_0x186f12;return _0x2b6ee5=_0x2b6ee5||[],_0x174356=_0x174356||Object[_0x56a472(0x1a9)](_0x23013f),ValueUtil[_0x56a472(0x1a4)](_0x174356)&&(_0x2b6ee5=_0x23013f[_0x56a472(0x1be)]((_0x17e980,_0x1e0d42)=>{const _0x54a667=_0x56a472;let _0x548e37=_0x2b6ee5[_0x54a667(0x1bd)]>_0x1e0d42?_0x2b6ee5[_0x1e0d42]:{};return ValueUtil[_0x54a667(0x1b4)](_0x17e980,_0x548e37,_0x174356);})),_0x2b6ee5;}static['populateObject'](_0x27ae98,_0x317cc6,..._0x7b5056){const _0x1bd5ad=a0_0x186f12;return _0x317cc6=_0x317cc6||{},_0x7b5056=_0x7b5056||Object[_0x1bd5ad(0x1a9)](_0x27ae98),ValueUtil['isNotEmpty'](_0x7b5056)&&_0x7b5056['forEach'](_0x25536f=>{_0x317cc6[_0x25536f]=_0x27ae98[_0x25536f];}),_0x317cc6;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4f726b,_0x160cca){const _0x325b1c=a0_0x1775,_0x3ce961=_0x4f726b();while(!![]){try{const _0x222216=parseInt(_0x325b1c(0x1b8))/0x1+-parseInt(_0x325b1c(0x1ba))/0x2*(parseInt(_0x325b1c(0x1b9))/0x3)+parseInt(_0x325b1c(0x1b6))/0x4+parseInt(_0x325b1c(0x1b5))/0x5+-parseInt(_0x325b1c(0x1b4))/0x6*(-parseInt(_0x325b1c(0x1b1))/0x7)+parseInt(_0x325b1c(0x1b7))/0x8*(parseInt(_0x325b1c(0x1b3))/0x9)+-parseInt(_0x325b1c(0x1b2))/0xa*(parseInt(_0x325b1c(0x1b0))/0xb);if(_0x222216===_0x160cca)break;else _0x3ce961['push'](_0x3ce961['shift']());}catch(_0x37d99d){_0x3ce961['push'](_0x3ce961['shift']());}}}(a0_0x72ed,0xcd212));import{css}from'lit';function a0_0x1775(_0x1b18e2,_0x216e8e){const _0x72edff=a0_0x72ed();return a0_0x1775=function(_0x1775d5,_0x3661a1){_0x1775d5=_0x1775d5-0x1b0;let _0xaa9d86=_0x72edff[_0x1775d5];return _0xaa9d86;},a0_0x1775(_0x1b18e2,_0x216e8e);}function a0_0x72ed(){const _0x7f313b=['220XZPzse','6591627djqGTl','24qqkRGQ','1604975ybVBwB','3622444TwQNWT','16eoSJQa','1408137bJnjHn','15nuEOze','599202mfLlrO','1707761DmWyqf','2894829QszAdC'];a0_0x72ed=function(){return _0x7f313b;};return a0_0x72ed();}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_0x5e3bfd=a0_0x33e1;(function(_0x4d499a,_0x1ea9eb){const _0x3db1f1=a0_0x33e1,_0x48d1dd=_0x4d499a();while(!![]){try{const _0x481bc8=parseInt(_0x3db1f1(0x13b))/0x1*(-parseInt(_0x3db1f1(0x14a))/0x2)+parseInt(_0x3db1f1(0x146))/0x3+-parseInt(_0x3db1f1(0x14f))/0x4*(-parseInt(_0x3db1f1(0x127))/0x5)+-parseInt(_0x3db1f1(0x133))/0x6*(parseInt(_0x3db1f1(0x135))/0x7)+-parseInt(_0x3db1f1(0x141))/0x8+parseInt(_0x3db1f1(0x130))/0x9+-parseInt(_0x3db1f1(0x12b))/0xa*(-parseInt(_0x3db1f1(0x123))/0xb);if(_0x481bc8===_0x1ea9eb)break;else _0x48d1dd['push'](_0x48d1dd['shift']());}catch(_0x5c8ca0){_0x48d1dd['push'](_0x48d1dd['shift']());}}}(a0_0x148f,0xf0937));function a0_0x148f(){const _0x4aabf2=['17569692dFIiBr','addEventListener','styles','372DUOMjf','currentTarget','53991ztUpVZ','transitionend','submenu','dynamic-menu-landscape','transitionstart','map','105213JOCPFY','querySelector','setAttribute','path','max','mousewheel','9760344UHosNu','bind','settled','activeTopLevel','renderRoot','4708881nfGNVq','#force','render','type','24XpaHZS','min','preventDefault','firstUpdated','description','8MhptUw','target','stopPropagation','11JykVQL','group','menus','wheelDelta','410495umzryH','icon','onWheelEvent','name','2601910AykHIB','detail','active-toplevel','href','#wrap'];a0_0x148f=function(){return _0x4aabf2;};return a0_0x148f();}import'@material/mwc-icon';import{html,LitElement}from'lit';import{connect}from'pwa-helpers';import{navigate,store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';import{DynamicMenuLandscapeStyles}from'./dynamic-menu-landscape-styles';export class DynamicMenuLandscape extends connect(store)(LitElement){static get[a0_0x5e3bfd(0x132)](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get['properties'](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x5e3bfd(0x148)](){const _0xf825a6=a0_0x5e3bfd,{menus:_0x58c5d0=[],activeTopLevel:_0x508144,activeMenu:_0x44053f}=this;return html`
|
|
2
2
|
<div id="wrap">
|
|
3
3
|
<ul>
|
|
4
|
-
${
|
|
5
|
-
<li ?active=${
|
|
6
|
-
<a href=${
|
|
7
|
-
${
|
|
4
|
+
${_0x58c5d0[_0xf825a6(0x13a)](_0x41a897=>_0xf825a6(0x124)==_0x41a897[_0xf825a6(0x149)]?html``:html`
|
|
5
|
+
<li ?active=${_0x41a897===_0x508144}>
|
|
6
|
+
<a href=${_0x41a897[_0xf825a6(0x13e)]||'#'}>
|
|
7
|
+
${_0x41a897['icon']?html`<mwc-icon>${_0x41a897[_0xf825a6(0x128)]}</mwc-icon>`:html``} ${_0x41a897[_0xf825a6(0x12a)]}
|
|
8
8
|
</a>
|
|
9
9
|
|
|
10
10
|
<ul submenus>
|
|
11
|
-
${
|
|
12
|
-
<li ?active=${
|
|
13
|
-
<a href=${
|
|
11
|
+
${_0x41a897[_0xf825a6(0x125)]?.['map'](_0x1f5559=>html`
|
|
12
|
+
<li ?active=${_0x1f5559===_0x44053f}>
|
|
13
|
+
<a href=${_0x1f5559[_0xf825a6(0x13e)]||'#'}> ${_0x1f5559['name']} </a>
|
|
14
14
|
</li>
|
|
15
15
|
`)}
|
|
16
16
|
</ul>
|
|
17
17
|
|
|
18
18
|
<div description>
|
|
19
|
-
${
|
|
19
|
+
${_0x41a897[_0xf825a6(0x128)]?html`<mwc-icon>${_0x41a897[_0xf825a6(0x128)]}</mwc-icon>`:html``} ${_0x41a897[_0xf825a6(0x14e)]||''}
|
|
20
20
|
</div>
|
|
21
21
|
</li>
|
|
22
22
|
`)}
|
|
23
23
|
</ul>
|
|
24
24
|
</div>
|
|
25
|
-
`;}[
|
|
25
|
+
`;}[a0_0x5e3bfd(0x14d)](){const _0x5a9c91=a0_0x5e3bfd;this[_0x5a9c91(0x145)][_0x5a9c91(0x13c)](_0x5a9c91(0x12f))['addEventListener'](_0x5a9c91(0x140),this[_0x5a9c91(0x129)][_0x5a9c91(0x142)](this),!0x1),this[_0x5a9c91(0x145)][_0x5a9c91(0x131)]('click',_0x507a7d=>{const _0x5fb2e9=_0x5a9c91;if(_0x507a7d[_0x5fb2e9(0x150)][_0x5fb2e9(0x137)]){_0x507a7d[_0x5fb2e9(0x122)](),_0x507a7d[_0x5fb2e9(0x14c)]();let _0x1db55d=_0x507a7d['target'][_0x5fb2e9(0x137)];return void this['dispatchEvent'](new CustomEvent(_0x5fb2e9(0x12d),{'bubbles':!0x0,'detail':this[_0x5fb2e9(0x144)]===_0x1db55d?void 0x0:_0x1db55d}));}let _0x48e98b=_0x507a7d[_0x5fb2e9(0x150)][_0x5fb2e9(0x12e)];_0x48e98b&&location[_0x5fb2e9(0x12e)]===_0x48e98b&&navigate(_0x48e98b+_0x5fb2e9(0x147),!0x0);}),this[_0x5a9c91(0x145)]['addEventListener'](_0x5a9c91(0x139),_0x434d19=>{const _0xcb523c=_0x5a9c91;_0x434d19[_0xcb523c(0x150)]['removeAttribute'](_0xcb523c(0x143));}),this[_0x5a9c91(0x145)][_0x5a9c91(0x131)](_0x5a9c91(0x136),_0x1a920b=>{const _0x49c9f0=_0x5a9c91;_0x1a920b[_0x49c9f0(0x150)][_0x49c9f0(0x13d)]('settled','');});}[a0_0x5e3bfd(0x129)](_0x10155c){const _0x6c8fe8=a0_0x5e3bfd,_0x453420=_0x10155c[_0x6c8fe8(0x134)];var _0x5833ee=Math[_0x6c8fe8(0x13f)](-0x1,Math[_0x6c8fe8(0x14b)](0x1,_0x10155c[_0x6c8fe8(0x126)]||-_0x10155c[_0x6c8fe8(0x12c)]));_0x453420['scrollLeft']-=0xa*_0x5833ee,_0x10155c[_0x6c8fe8(0x14c)]();}}function a0_0x33e1(_0x5bb3b0,_0x27c880){const _0x148ff7=a0_0x148f();return a0_0x33e1=function(_0x33e1f9,_0x5070d5){_0x33e1f9=_0x33e1f9-0x122;let _0x400b21=_0x148ff7[_0x33e1f9];return _0x400b21;},a0_0x33e1(_0x5bb3b0,_0x27c880);}customElements['define'](a0_0x5e3bfd(0x138),DynamicMenuLandscape);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x23ac95=a0_0x18f3;(function(_0x56d780,_0xa77f30){var _0x30891f=a0_0x18f3,_0x458c8f=_0x56d780();while(!![]){try{var _0x20dae7=-parseInt(_0x30891f(0x14e))/0x1+-parseInt(_0x30891f(0x175))/0x2*(parseInt(_0x30891f(0x159))/0x3)+parseInt(_0x30891f(0x14c))/0x4+parseInt(_0x30891f(0x16c))/0x5*(-parseInt(_0x30891f(0x173))/0x6)+-parseInt(_0x30891f(0x158))/0x7*(-parseInt(_0x30891f(0x14f))/0x8)+-parseInt(_0x30891f(0x16d))/0x9+parseInt(_0x30891f(0x15d))/0xa*(parseInt(_0x30891f(0x15a))/0xb);if(_0x20dae7===_0xa77f30)break;else _0x458c8f['push'](_0x458c8f['shift']());}catch(_0x31583b){_0x458c8f['push'](_0x458c8f['shift']());}}}(a0_0x577c,0x37c01));import'@material/mwc-icon';import'./dynamic-menu-portrait';import'./dynamic-menu-landscape';import{css,html,LitElement}from'lit';import{connect}from'pwa-helpers';import{store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';function isActiveMenu(_0x32bf08,_0x52879a){var _0x2ab940=a0_0x18f3;return _0x32bf08[_0x2ab940(0x164)]?.[_0x2ab940(0x16b)]('?')[0x0]===_0x52879a||_0x32bf08['active']&&'function'==typeof _0x32bf08[_0x2ab940(0x169)]&&_0x32bf08[_0x2ab940(0x169)][_0x2ab940(0x176)](_0x32bf08,{'path':_0x52879a});}function a0_0x18f3(_0x57317e,_0x54d796){var _0x577ce4=a0_0x577c();return a0_0x18f3=function(_0x18f334,_0x44fd6c){_0x18f334=_0x18f334-0x14c;var _0x1a00dd=_0x577ce4[_0x18f334];return _0x1a00dd;},a0_0x18f3(_0x57317e,_0x54d796);}export class DynamicMenuPart extends connect(store)(LitElement){static get[a0_0x23ac95(0x170)](){return{'page':String,'resourceId':String,'menus':Array,'orientation':String,'_activeTopLevel':Object,'_activeMenu':Object,'_path':String};}static get[a0_0x23ac95(0x167)](){return[ScrollbarStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -27,18 +27,18 @@ var a0_0x434071=a0_0xdfbf;function a0_0xdfbf(_0x4a5a3c,_0x25cdb6){var _0x21b205=
|
|
|
27
27
|
dynamic-menu-landscape {
|
|
28
28
|
flex: 1;
|
|
29
29
|
}
|
|
30
|
-
`];}[
|
|
30
|
+
`];}[a0_0x23ac95(0x172)](){var _0x21a436=a0_0x23ac95;return html`
|
|
31
31
|
<slot name="head"></slot>
|
|
32
|
-
${
|
|
33
|
-
.menus=${this[
|
|
34
|
-
.activeTopLevel=${this[
|
|
35
|
-
.activeMenu=${this[
|
|
36
|
-
.path=${this[
|
|
32
|
+
${'landscape'!==this['orientation']?html`<dynamic-menu-portrait
|
|
33
|
+
.menus=${this['menus']}
|
|
34
|
+
.activeTopLevel=${this[_0x21a436(0x16f)]}
|
|
35
|
+
.activeMenu=${this[_0x21a436(0x15e)]}
|
|
36
|
+
.path=${this[_0x21a436(0x166)]}
|
|
37
37
|
></dynamic-menu-portrait>`:html`<dynamic-menu-landscape
|
|
38
|
-
.menus=${this[
|
|
39
|
-
.activeTopLevel=${this[
|
|
40
|
-
.activeMenu=${this[
|
|
41
|
-
.path=${this[
|
|
38
|
+
.menus=${this[_0x21a436(0x157)]}
|
|
39
|
+
.activeTopLevel=${this[_0x21a436(0x16f)]}
|
|
40
|
+
.activeMenu=${this['_activeMenu']}
|
|
41
|
+
.path=${this[_0x21a436(0x166)]}
|
|
42
42
|
></dynamic-menu-landscape>`}
|
|
43
43
|
<slot name="tail"></slot>
|
|
44
|
-
`;}[
|
|
44
|
+
`;}[a0_0x23ac95(0x171)](){var _0x38057b=a0_0x23ac95;this[_0x38057b(0x153)][_0x38057b(0x179)](_0x38057b(0x163),_0x36c178=>{var _0x65891d=_0x38057b;_0x36c178[_0x65891d(0x168)](),_0x36c178[_0x65891d(0x15c)](),this['_activeTopLevel']=_0x36c178[_0x65891d(0x177)];});}['updated'](_0x270a70){var _0x4262a4=a0_0x23ac95;(_0x270a70['has']('menus')||_0x270a70['has'](_0x4262a4(0x165))||_0x270a70[_0x4262a4(0x150)]('resourceId'))&&this['_findActivePage'](),_0x270a70['has'](_0x4262a4(0x178))&&(_0x4262a4(0x174)==this[_0x4262a4(0x178)]?this[_0x4262a4(0x14d)](_0x4262a4(0x16a)):this[_0x4262a4(0x154)]('landscape',!0x0)),_0x270a70[_0x4262a4(0x150)]('slotTemplate')&&this[_0x4262a4(0x156)](this[_0x4262a4(0x162)]);}[a0_0x23ac95(0x161)](_0x5ba8ff){var _0x21ae80=a0_0x23ac95;this['page']=_0x5ba8ff[_0x21ae80(0x160)][_0x21ae80(0x165)],this['resourceId']=_0x5ba8ff[_0x21ae80(0x160)][_0x21ae80(0x151)],this[_0x21ae80(0x157)]=_0x5ba8ff[_0x21ae80(0x155)]['menus']||[],this['slotTemplate']=_0x5ba8ff[_0x21ae80(0x155)][_0x21ae80(0x162)];}[a0_0x23ac95(0x16e)](){var _0x3ebce3=a0_0x23ac95,_0x52afc2,_0x4e3f0a=this['resourceId']?this[_0x3ebce3(0x165)]+'/'+this[_0x3ebce3(0x151)]:this[_0x3ebce3(0x165)],_0x1c2996=this[_0x3ebce3(0x157)]||[];this['_activeTopLevel']=_0x1c2996[_0x3ebce3(0x15f)](_0x47e7e0=>isActiveMenu(_0x47e7e0,_0x4e3f0a)?(_0x52afc2=_0x47e7e0,!0x0):_0x47e7e0[_0x3ebce3(0x157)]?!!(_0x52afc2=_0x47e7e0['menus'][_0x3ebce3(0x15f)](_0xe83823=>isActiveMenu(_0xe83823,_0x4e3f0a))):void 0x0),this[_0x3ebce3(0x166)]=_0x4e3f0a,this['_activeMenu']=_0x52afc2||this['_activeTopLevel'];}}function a0_0x577c(){var _0x336374=['slotTemplate','active-toplevel','path','page','_path','styles','stopPropagation','active','landscape','split','35mXfhRz','3584331ngPhpF','_findActivePage','_activeTopLevel','properties','firstUpdated','render','137358geXXHI','portrait','3856UXlZNY','call','detail','orientation','addEventListener','723880mlmczK','removeAttribute','28924ENrmTN','1070424IStMkm','has','resourceId','dynamic-menu-part','renderRoot','setAttribute','metaUI','replaceChild','menus','7WOBfcA','678jbkgal','11lggEpM','define','preventDefault','9367420NkdWbA','_activeMenu','find','route','stateChanged'];a0_0x577c=function(){return _0x336374;};return a0_0x577c();}customElements[a0_0x23ac95(0x15b)](a0_0x23ac95(0x152),DynamicMenuPart);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a0_0x171e(_0x18fa92,_0x23c4f4){const _0x589ed6=a0_0x589e();return a0_0x171e=function(_0x171e5d,_0x192f32){_0x171e5d=_0x171e5d-0x1c4;let _0x59904e=_0x589ed6[_0x171e5d];return _0x59904e;},a0_0x171e(_0x18fa92,_0x23c4f4);}(function(_0x16214e,_0x47b8c9){const _0x39062c=a0_0x171e,_0x1beb34=_0x16214e();while(!![]){try{const _0x24ad3b=-parseInt(_0x39062c(0x1c4))/0x1*(parseInt(_0x39062c(0x1c9))/0x2)+-parseInt(_0x39062c(0x1c5))/0x3*(-parseInt(_0x39062c(0x1ca))/0x4)+parseInt(_0x39062c(0x1cd))/0x5+-parseInt(_0x39062c(0x1c6))/0x6+-parseInt(_0x39062c(0x1cc))/0x7+parseInt(_0x39062c(0x1cb))/0x8*(parseInt(_0x39062c(0x1c7))/0x9)+-parseInt(_0x39062c(0x1c8))/0xa;if(_0x24ad3b===_0x47b8c9)break;else _0x1beb34['push'](_0x1beb34['shift']());}catch(_0x348088){_0x1beb34['push'](_0x1beb34['shift']());}}}(a0_0x589e,0x1d0c6));function a0_0x589e(){const _0x583577=['1864KVvrbj','292187BvJLtO','1143770vMBltS','65501wMDWTS','39267waeuhE','207666YxgSlp','333GrXHsc','1990530TMUwjB','2MVwqpg','68LCNPUc'];a0_0x589e=function(){return _0x583577;};return a0_0x589e();}import{css}from'lit';export const DynamicMenuPortraitStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -125,4 +125,4 @@
|
|
|
125
125
|
font: bold 14px var(--theme-font);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
`;
|
|
128
|
+
`;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3047c8=a0_0x3afa;function a0_0x4f84(){const _0xf20526=['14748TnTsrX','length','renderMenus','transitionend','click','addEventListener','function','define','active-toplevel','href','map','transitionstart','stopPropagation','3408AVMeTM','activeTopLevel','381447Suxuex','group','path','288927RXyHgo','#force','setAttribute','removeAttribute','settled','render','call','5173fDDlNW','target','firstUpdated','11525110hBpCUC','11SQiaFS','1837125HmWsFx','renderRoot','closest','dynamic-menu-portrait','menu','574614LCYSnN','preventDefault','123XLtaoz','72Ukdjei'];a0_0x4f84=function(){return _0xf20526;};return a0_0x4f84();}(function(_0x4948f0,_0x179b01){const _0x482c98=a0_0x3afa,_0x329ced=_0x4948f0();while(!![]){try{const _0x1a3913=-parseInt(_0x482c98(0x1d0))/0x1+-parseInt(_0x482c98(0x1bd))/0x2+-parseInt(_0x482c98(0x1bf))/0x3*(-parseInt(_0x482c98(0x1c1))/0x4)+parseInt(_0x482c98(0x1b8))/0x5+-parseInt(_0x482c98(0x1ce))/0x6*(parseInt(_0x482c98(0x1da))/0x7)+parseInt(_0x482c98(0x1c0))/0x8*(-parseInt(_0x482c98(0x1d3))/0x9)+-parseInt(_0x482c98(0x1dd))/0xa*(-parseInt(_0x482c98(0x1de))/0xb);if(_0x1a3913===_0x179b01)break;else _0x329ced['push'](_0x329ced['shift']());}catch(_0x3f5665){_0x329ced['push'](_0x329ced['shift']());}}}(a0_0x4f84,0x47b26));import'@material/mwc-icon';function a0_0x3afa(_0xdc39c8,_0x13c4c5){const _0x4f8402=a0_0x4f84();return a0_0x3afa=function(_0x3afacf,_0x9c9e4d){_0x3afacf=_0x3afacf-0x1b8;let _0x8fdbd9=_0x4f8402[_0x3afacf];return _0x8fdbd9;},a0_0x3afa(_0xdc39c8,_0x13c4c5);}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['styles'](){return[ScrollbarStyles,DynamicMenuPortraitStyles];}static get['properties'](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x3047c8(0x1c3)](_0x5e848a,_0x228ec9,_0x26ed0d){const _0x13b7b8=a0_0x3047c8;return html`
|
|
2
2
|
<ul>
|
|
3
|
-
${
|
|
4
|
-
<li ?active=${
|
|
5
|
-
<a href=${
|
|
6
|
-
${
|
|
7
|
-
<mwc-icon>${
|
|
8
|
-
${
|
|
3
|
+
${_0x5e848a[_0x13b7b8(0x1cb)](_0x241451=>{const _0x42df8b=_0x13b7b8;var {type:_0x2f2de7,active:_0x4bca95,path:_0x1353c0,name:_0x44d917,badge:_0x433b98,icon:_0x2645b2,menus:_0x286120}=_0x241451;return _0x4bca95=!(!_0x4bca95||_0x42df8b(0x1c7)!=typeof _0x4bca95)&&_0x4bca95['call'](_0x241451,{'path':this[_0x42df8b(0x1d2)]}),_0x433b98=_0x42df8b(0x1c7)==typeof _0x433b98?_0x433b98[_0x42df8b(0x1d9)](_0x241451):_0x433b98??!0x1,_0x42df8b(0x1d1)==_0x2f2de7?html`<li group-label>${_0x44d917}</li>`:html`
|
|
4
|
+
<li ?active=${_0x228ec9?_0x241451===_0x228ec9:_0x4bca95} .menu=${_0x241451} menu>
|
|
5
|
+
<a href=${_0x1353c0||'#'}>
|
|
6
|
+
${_0x286120?.[_0x42df8b(0x1c2)]>0x0?html` <mwc-icon submenu-button></mwc-icon> `:html``}
|
|
7
|
+
<mwc-icon>${_0x2645b2}</mwc-icon>
|
|
8
|
+
${_0x44d917} ${!0x1!==_0x433b98?html`<div badge>${_0x433b98}</div>`:html``}
|
|
9
9
|
</a>
|
|
10
|
-
${
|
|
10
|
+
${_0x286120&&this[_0x42df8b(0x1c3)](_0x286120,_0x26ed0d)}
|
|
11
11
|
</li>
|
|
12
12
|
`;})}
|
|
13
13
|
</ul>
|
|
14
|
-
`;}[
|
|
14
|
+
`;}[a0_0x3047c8(0x1d8)](){const _0x97b99b=a0_0x3047c8,{menus:_0x104e1a,activeTopLevel:_0x28341f,activeMenu:_0x2348d1}=this;return this[_0x97b99b(0x1c3)](_0x104e1a,_0x28341f,_0x2348d1);}[a0_0x3047c8(0x1dc)](){const _0x1ab979=a0_0x3047c8;this[_0x1ab979(0x1b9)][_0x1ab979(0x1c6)](_0x1ab979(0x1c5),_0x3225a9=>{const _0x2d57c9=_0x1ab979,_0x213388=_0x3225a9['target'][_0x2d57c9(0x1ba)]('[menu]');if(_0x213388?.[_0x2d57c9(0x1bc)]){let _0x2371ee=_0x213388['menu'];_0x2371ee[_0x2d57c9(0x1d2)]||(_0x3225a9[_0x2d57c9(0x1cd)](),_0x3225a9[_0x2d57c9(0x1be)]()),this['dispatchEvent'](new CustomEvent(_0x2d57c9(0x1c9),{'bubbles':!0x0,'detail':this[_0x2d57c9(0x1cf)]===_0x2371ee?void 0x0:_0x2371ee}));}let _0x2bfe2d=_0x3225a9[_0x2d57c9(0x1db)][_0x2d57c9(0x1ca)];_0x2bfe2d&&location['href']===_0x2bfe2d&&navigate(_0x2bfe2d+_0x2d57c9(0x1d4),!0x0);}),this[_0x1ab979(0x1b9)][_0x1ab979(0x1c6)](_0x1ab979(0x1cc),_0x39859b=>{const _0x47f76b=_0x1ab979;_0x39859b['target'][_0x47f76b(0x1d6)](_0x47f76b(0x1d7));}),this[_0x1ab979(0x1b9)][_0x1ab979(0x1c6)](_0x1ab979(0x1c4),_0x2eff6a=>{const _0x2c2d35=_0x1ab979;_0x2eff6a['target'][_0x2c2d35(0x1d5)](_0x2c2d35(0x1d7),'');});}}customElements[a0_0x3047c8(0x1c8)](a0_0x3047c8(0x1bb),DynamicMenuPortrait);
|