@things-factory/meta-ui 6.0.132 → 6.0.134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/actions/main.js +4 -4
- package/client/component/filter/filter-form-resource-code-select.js +9 -9
- package/client/component/filter/filter-grist-resource-code-select.js +10 -10
- package/client/component/grist/editor/ox-grist-editor-resource-code-selector.js +9 -9
- package/client/component/grist/renderer/ox-grist-renderer-resource-code-selector.js +1 -1
- package/client/component/selector/ox-resource-code-selector-popup.js +40 -0
- 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 +4 -4
- 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 +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 +2 -2
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +5 -5
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-activity/meta-activity-mutation.js +1 -1
- package/server/service/meta-activity/meta-activity-query.js +1 -1
- package/server/service/meta-activity/meta-activity-type.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
- package/server/service/work-code/work-code-mutation.js +1 -1
- package/server/service/work-code/work-code-query.js +1 -1
- package/server/service/work-code/work-code-type.js +1 -1
- package/server/service/work-code/work-code.js +1 -1
- package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
- package/server/service/work-code-detail/work-code-detail-query.js +1 -1
- package/server/service/work-code-detail/work-code-detail-type.js +1 -1
- package/server/service/work-code-detail/work-code-detail.js +1 -1
- package/translations/ja.json +75 -0
- package/client/component/editor/ox-grist-editor-resource-selector.js +0 -9
- package/client/component/grist/selector/ox-resource-code-selector-popup.js +0 -40
- package/client/component/renderer/ox-grist-renderer-resource-column.js +0 -1
- package/client/component/renderer/ox-grist-renderer-resource-selector.js +0 -1
- package/client/component/selector/ox-resource-selector-popup.js +0 -40
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x69a960=a0_0x115c;(function(_0x66d86d,_0x15510b){const _0x357346=a0_0x115c,_0x1ebbaa=_0x66d86d();while(!![]){try{const _0xbd5a7f=-parseInt(_0x357346(0x1ad))/0x1*(-parseInt(_0x357346(0x1a5))/0x2)+-parseInt(_0x357346(0x199))/0x3*(parseInt(_0x357346(0x189))/0x4)+-parseInt(_0x357346(0x170))/0x5*(-parseInt(_0x357346(0x19d))/0x6)+parseInt(_0x357346(0x156))/0x7+-parseInt(_0x357346(0x1a9))/0x8*(parseInt(_0x357346(0x16f))/0x9)+-parseInt(_0x357346(0x143))/0xa+parseInt(_0x357346(0x164))/0xb*(parseInt(_0x357346(0x168))/0xc);if(_0xbd5a7f===_0x15510b)break;else _0x1ebbaa['push'](_0x1ebbaa['shift']());}catch(_0x58dca4){_0x1ebbaa['push'](_0x1ebbaa['shift']());}}}(a0_0x1151,0xe055a));function a0_0x115c(_0x3c2247,_0x3c2706){const _0x1151fe=a0_0x1151();return a0_0x115c=function(_0x115cb5,_0x39428a){_0x115cb5=_0x115cb5-0x137;let _0x1e0a3a=_0x1151fe[_0x115cb5];return _0x1e0a3a;},a0_0x115c(_0x3c2247,_0x3c2706);}import{store,gqlContext}from'@things-factory/shell';function a0_0x1151(){const _0x22d314=['path','patchesForUpdateMultiple','numberOfToDos','map','sort','HIDDEN-PAGE','unshift','isNotEmpty','deleteListByIds','push','findOne','\x0a\x20\x20\x20\x20\x20\x20','workCodeByName','menu.id','getCodeByEntity','tText','showAlertPopup','gutter','category','buildArgs','4lKspXQ','text.there_is_nothing_to_delete','selected','getSelectedIdList','exportableData','imex','getCodeByScenario','cancel','undefined','getWorkCodeByName','\x0a\x20\x20\x20\x20','showToast','title','children','MENU','__selected__','3331464LbYeXP','forEach','info','updatedAt','15558EONKVE','SCREEN','record','myDynamicMenus','menus','message','rank','todo-list','523960KCfpet','test','isEmpty','filter','631496BKvRCl','parse','name','_config','6euAzyk','checkClientError','updateMultipleData','object','searchByPagination','fetch','noteq','button.','numberOfApprovalPendings','HOME','routingType','GROUP','display','cuFlag','findIndex','type','success\x20to\x20process','columns','tMenu','text.are_you_sure','codeItems','hiddenFlag','length','searchMyDynamicMenus','12657360fqZIDo','reduce','gridPersonalizeTemplates','code','splice','arrangeMenuRoutes','description','hidden','data','callScenario','value','group','xlsx','\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','badge','menuType','success\x20to\x20save','template','result','6066403mKuzmw','find','showGraphqlException','query','question','updateMultiple','routing','deleteListByGristSelected','confirm','draft-list','resourceUrl','runScenario','networkError','error','11KVkWgh','numberOfDrafts','showGraphqlErrorResponse','updater','14150040LtKnXD','Graphql\x20Error','details','errors','total','split','success\x20to\x20delete','171fFNIWR','2270QfpqIo','active','records','parent','text.NOTHING_CHANGED'];a0_0x1151=function(){return _0x22d314;};return a0_0x1151();}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_0x53fbf2 from'graphql-tag';import{ValueUtil}from'./value-util';import{asyncReplace}from'lit/directives/async-replace.js';import a0_0x350e78 from'i18next';import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';export class ServiceUtil{static async[a0_0x69a960(0x13f)](_0x1bd6f8){const _0x2c5485=a0_0x69a960;if(Array['isArray'](_0x1bd6f8))return _0x1bd6f8[_0x2c5485(0x178)](_0x24dd7f=>_0x2c5485(0x1b0)==typeof _0x24dd7f?{'name':_0x24dd7f[_0x2c5485(0x14d)],'description':_0x24dd7f[_0x2c5485(0x137)]}:{'name':_0x24dd7f,'description':_0x24dd7f});let _0x8d9d52=await ServiceUtil[_0x2c5485(0x192)](_0x1bd6f8);return _0x8d9d52&&_0x8d9d52[_0x2c5485(0x141)]>0x0?_0x8d9d52:await getCodeByName(_0x1bd6f8);}static async[a0_0x69a960(0x192)](_0x33daa5){const _0x4db771=a0_0x69a960,_0x240ae4=await client[_0x4db771(0x159)]({'query':a0_0x53fbf2`
|
|
2
2
|
query workCodeByName($name: String!) {
|
|
3
3
|
workCodeByName(name: $name) {
|
|
4
4
|
details {
|
|
@@ -8,32 +8,32 @@ const a0_0x3a3cd1=a0_0x3469;(function(_0x3026ff,_0x6b9954){const _0x128381=a0_0x
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
`,'variables':{'name':
|
|
11
|
+
`,'variables':{'name':_0x33daa5},'context':gqlContext()});return!_0x240ae4[_0x4db771(0x16b)]&&_0x240ae4[_0x4db771(0x14b)][_0x4db771(0x181)]&&_0x240ae4['data'][_0x4db771(0x181)][_0x4db771(0x16a)]?_0x240ae4['data'][_0x4db771(0x181)][_0x4db771(0x16a)][_0x4db771(0x179)]((_0x7bdc13,_0x4dd1a6)=>_0x7bdc13[_0x4db771(0x1a3)]-_0x4dd1a6[_0x4db771(0x1a3)]):[];}static async['getCodeSelectorData'](_0x16ccb3){const _0x39513f=a0_0x69a960;let _0x2eb0db=(await ServiceUtil[_0x39513f(0x13f)](_0x16ccb3))[_0x39513f(0x178)](_0x49db79=>({'value':_0x49db79[_0x39513f(0x1ab)],'display':_0x49db79[_0x39513f(0x149)]}));return _0x2eb0db[_0x39513f(0x17b)]({'value':'','display':''}),_0x2eb0db;}static async[a0_0x69a960(0x18f)](_0x58b19c,_0x4adb03){const _0xa31bd9=a0_0x69a960;let _0x222e7c=await ServiceUtil['callScenario'](null,_0x58b19c,_0x4adb03);return _0x222e7c[_0xa31bd9(0x17b)]({'value':'','display':''}),_0x222e7c['map'](_0xc5a074=>({'value':_0xc5a074[_0xa31bd9(0x1ab)],'display':_0xc5a074[_0xa31bd9(0x149)]}));}static async[a0_0x69a960(0x183)]({queryName:_0x3eda2e,codeField:_0x492745=a0_0x69a960(0x1ab),dispField:_0x5d79fc='description',filters:_0x102323=[],sorters:_0x5df447=[]}){const _0x1fc0d2=a0_0x69a960;let _0x20ff89=_0x1fc0d2(0x180)+_0x492745+_0x1fc0d2(0x180)+_0x5d79fc+_0x1fc0d2(0x193),_0x55fa5e=await ServiceUtil[_0x1fc0d2(0x1b1)](_0x3eda2e,_0x102323,_0x5df447,0x0,0x0,_0x20ff89),_0x5e79b0=[{'value':'','display':''}];return _0x55fa5e[_0x1fc0d2(0x172)][_0x1fc0d2(0x19a)](_0x22eb01=>{const _0x557773=_0x1fc0d2;_0x5e79b0[_0x557773(0x17e)]({'value':_0x22eb01[_0x492745],'display':_0x22eb01[_0x5d79fc]});}),_0x5e79b0;}static async[a0_0x69a960(0x1a0)](){const _0x3f3227=a0_0x69a960;let _0x4b0b0f=await ServiceUtil['searchMyDynamicMenus']();return null!=_0x4b0b0f?ServiceUtil[_0x3f3227(0x148)](_0x4b0b0f):null;}static async['searchMenuGridPersnalTemplate'](_0x33b631){const _0x435383=a0_0x69a960;let _0x1f270d=[{'name':_0x435383(0x182),'operator':'eq','value':_0x33b631}],_0x4e564b=await ServiceUtil['searchByPagination'](_0x435383(0x145),_0x1f270d,[],0x0,0x0,'id,template');return 0x0==_0x4e564b[_0x435383(0x16c)]?{}:{'id':_0x4e564b[_0x435383(0x172)][0x0]['id'],'template':JSON[_0x435383(0x1aa)](_0x4e564b[_0x435383(0x172)][0x0][_0x435383(0x154)])};}static['arrangeMenuRoutes'](_0x2a4f00){const _0x20d7b4=a0_0x69a960;let _0x484c3f=[];_0x2a4f00[_0x20d7b4(0x19a)](_0x21f316=>{const _0x2e8264=_0x20d7b4;_0x484c3f['push'](_0x21f316),_0x21f316[_0x2e8264(0x196)]&&(_0x21f316['children'][_0x2e8264(0x179)](function(_0x20246f,_0x20690a){const _0x1c050e=_0x2e8264;return _0x20246f[_0x1c050e(0x1a3)]-_0x20690a[_0x1c050e(0x1a3)];}),_0x21f316[_0x2e8264(0x196)][_0x2e8264(0x19a)](_0x311518=>{const _0xf19a18=_0x2e8264;0x1!=_0x311518['hiddenFlag']&&(_0x311518[_0xf19a18(0x173)]=_0x21f316,_0x484c3f['push'](_0x311518));}));});let _0x4051be=_0x484c3f[_0x20d7b4(0x178)](_0x79fa67=>{const _0x33e033=_0x20d7b4;if(_0x33e033(0x1b8)==_0x79fa67[_0x33e033(0x152)]||_0x33e033(0x197)==_0x79fa67[_0x33e033(0x152)]){let _0x3dc907={'id':_0x79fa67['id'],'parent':!0x0,'name':TermsUtil[_0x33e033(0x13d)](_0x79fa67[_0x33e033(0x1ab)]),'icon':_0x79fa67['iconPath'],'type':_0x33e033(0x1b8)==_0x79fa67[_0x33e033(0x152)]?_0x33e033(0x14e):'','menus':[]};return _0x79fa67[_0x33e033(0x15c)]&&(_0x3dc907[_0x33e033(0x175)]=_0x79fa67[_0x33e033(0x15c)]),_0x3dc907;}return{'id':'0'};})[_0x20d7b4(0x1a8)](_0x1500c0=>'0'!=_0x1500c0['id']),_0x5ced59=_0x484c3f['map'](_0x4582b2=>{const _0x219372=_0x20d7b4;if(_0x219372(0x19e)==_0x4582b2[_0x219372(0x152)]||_0x219372(0x17a)==_0x4582b2[_0x219372(0x152)]){let _0x5e1c1b=_0x4051be[_0x219372(0x157)](_0xc12aca=>_0xc12aca['id']==_0x4582b2[_0x219372(0x173)]['id']);if(_0x5e1c1b){let _0xeef9fb=TermsUtil[_0x219372(0x13d)](_0x4582b2[_0x219372(0x1ab)]);return _0x219372(0x19e)==_0x4582b2[_0x219372(0x152)]&&_0x5e1c1b[_0x219372(0x1a1)][_0x219372(0x17e)]({'id':_0x4582b2['id'],'name':_0xeef9fb,'path':_0x4582b2['routing'],'icon':_0x4582b2['iconPath']}),{'id':_0x4582b2['id'],'parent':!0x1,'parent_id':_0x5e1c1b['id'],'title':_0xeef9fb,'tagname':_0x4582b2['category'],'page':_0x4582b2[_0x219372(0x15c)],'template':_0x4582b2[_0x219372(0x160)],'routing_type':_0x4582b2[_0x219372(0x1b7)]};}return{'id':'0'};}return _0x219372(0x1b6)==_0x4582b2[_0x219372(0x152)]?{'id':_0x4582b2['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil['tMenu'](_0x4582b2['name']),'tagname':_0x4582b2[_0x219372(0x187)],'page':_0x4582b2[_0x219372(0x15c)],'template':_0x4582b2[_0x219372(0x160)],'routing_type':_0x4582b2['routingType']}:{'id':'0'};})[_0x20d7b4(0x1a8)](_0x3bb68a=>null!=_0x3bb68a&&'0'!=_0x3bb68a['id']);_0x4051be[_0x20d7b4(0x1a8)](_0x3383c1=>'group'==_0x3383c1[_0x20d7b4(0x13a)]&&_0x3383c1[_0x20d7b4(0x1a1)]&&_0x3383c1[_0x20d7b4(0x1a1)][_0x20d7b4(0x141)]>0x0)[_0x20d7b4(0x19a)](_0xb06aa6=>{const _0x2f56b7=_0x20d7b4;let _0x168e15=_0x4051be[_0x2f56b7(0x139)](_0x476eb7=>_0x476eb7['id']==_0xb06aa6['id'])+0x1;_0x4051be[_0x2f56b7(0x147)](_0x168e15,0x0,..._0xb06aa6[_0x2f56b7(0x1a1)]);});let _0x5b3e65=0x0;return _0x4051be[_0x20d7b4(0x19a)](_0x31ef6b=>{const _0xa49a38=_0x20d7b4;_0xa49a38(0x1a4)==_0x31ef6b[_0xa49a38(0x175)]?(_0x5b3e65++,_0x31ef6b[_0xa49a38(0x151)]=()=>asyncReplace(generateActivitySummary(_0xa49a38(0x177))),_0x31ef6b['active']=({path:_0x514939})=>/^activity\//[_0xa49a38(0x1a6)](_0x514939)):'approval-pending-list'==_0x31ef6b[_0xa49a38(0x175)]?(_0x5b3e65++,_0x31ef6b['badge']=()=>asyncReplace(generateActivitySummary(_0xa49a38(0x1b5))),_0x31ef6b[_0xa49a38(0x171)]=({path:_0x16d009})=>/^activity\//[_0xa49a38(0x1a6)](_0x16d009)):_0xa49a38(0x15f)==_0x31ef6b[_0xa49a38(0x175)]&&(_0x5b3e65++,_0x31ef6b[_0xa49a38(0x151)]=()=>asyncReplace(generateActivitySummary(_0xa49a38(0x165))));}),_0x5b3e65>0x0&&startSubscribeActivitySummary(),{'menus':_0x4051be,'routes':_0x5ced59};}static async[a0_0x69a960(0x142)](){const _0x51852e=a0_0x69a960;let _0x3eb4de=await ServiceUtil[_0x51852e(0x1b1)](_0x51852e(0x1a1),[{'name':_0x51852e(0x140),'operator':_0x51852e(0x1b3),'value':!0x0},{'name':'menuType','operator':'in','value':[_0x51852e(0x1b6),_0x51852e(0x197),_0x51852e(0x1b8)]}],[{'name':_0x51852e(0x1a3)}],0x0,0x0,_0x51852e(0x150));return _0x3eb4de?_0x3eb4de['records']:[];}static async[a0_0x69a960(0x166)](_0x5a9156){const _0x3bdf5f=a0_0x69a960;if(_0x5a9156['errors']&&_0x5a9156[_0x3bdf5f(0x16b)]['length']>0x0){let _0x14c831=_0x5a9156[_0x3bdf5f(0x16b)][0x0],_0x1ba25b=_0x14c831['message'],_0x3518e3=_0x14c831[_0x3bdf5f(0x1a2)];_0x14c831['extensions']&&(_0x3518e3=_0x14c831['extensions'][_0x3bdf5f(0x146)]),await UiUtil[_0x3bdf5f(0x185)](_0x3518e3,_0x1ba25b,'error',_0x3bdf5f(0x15e));}}static async[a0_0x69a960(0x158)](_0x321a0f){const _0x2196c2=a0_0x69a960;_0x321a0f&&(_0x321a0f[_0x2196c2(0x162)]&&_0x321a0f[_0x2196c2(0x162)][_0x2196c2(0x155)]?await ServiceUtil[_0x2196c2(0x166)](_0x321a0f['networkError']['result']):await UiUtil[_0x2196c2(0x185)](_0x2196c2(0x169),_0x321a0f[_0x2196c2(0x1a2)],_0x2196c2(0x163),_0x2196c2(0x15e)));}static async[a0_0x69a960(0x18d)](_0x551d8b,_0xd456ff,_0x86a67c){const _0x116ac2=a0_0x69a960;var _0x490930=_0x86a67c[_0x116ac2(0x1ac)][_0x116ac2(0x13c)][_0x116ac2(0x1a8)](_0x1ec3eb=>_0x116ac2(0x186)!==_0x1ec3eb[_0x116ac2(0x13a)]&&void 0x0!==_0x1ec3eb['record']&&void 0x0!==_0x1ec3eb['imex']&&!0x0!==_0x1ec3eb[_0x116ac2(0x14a)])[_0x116ac2(0x178)](_0x3cca99=>_0x3cca99[_0x116ac2(0x18e)]),_0x1be8b5=_0x86a67c['data'][_0x116ac2(0x172)][_0x116ac2(0x178)](_0x6298ac=>({..._0x86a67c[_0x116ac2(0x1ac)]['columns']['filter'](_0x519824=>_0x116ac2(0x186)!==_0x519824[_0x116ac2(0x13a)]&&void 0x0!==_0x519824[_0x116ac2(0x19f)]&&void 0x0!==_0x519824[_0x116ac2(0x18e)]&&!0x0!==_0x519824[_0x116ac2(0x14a)])[_0x116ac2(0x144)]((_0xecd2cc,_0x4c6638)=>(_0xecd2cc[_0x4c6638[_0x116ac2(0x18e)]['key']]=_0x4c6638[_0x116ac2(0x18e)]['key'][_0x116ac2(0x16d)]('.')['reduce']((_0x389897,_0x18320d)=>_0x389897&&_0x116ac2(0x191)!==_0x389897[_0x18320d]?_0x389897[_0x18320d]:void 0x0,_0x6298ac),_0xecd2cc),{})}));if(!_0x551d8b)return{'header':_0x490930,'data':_0x1be8b5};store['dispatch']({'type':EXPORT,'exportable':{'extension':_0x116ac2(0x14f),'name':_0xd456ff,'data':{'header':_0x490930,'data':_0x1be8b5}}});}static async[a0_0x69a960(0x1b1)](_0x384927,_0x2f94e5,_0x54c4d0,_0x25ea42,_0x513454,_0x403435){const _0x4ceb45=a0_0x69a960;try{const _0x2f892f=await client['query']({'query':a0_0x53fbf2`
|
|
12
12
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
13
|
-
${
|
|
13
|
+
${_0x384927}(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
14
14
|
items {
|
|
15
|
-
${
|
|
15
|
+
${_0x403435}
|
|
16
16
|
}
|
|
17
17
|
total
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,'variables':{'filters':
|
|
20
|
+
`,'variables':{'filters':_0x2f94e5,'sortings':_0x54c4d0,'pagination':{'page':_0x25ea42,'limit':_0x513454}}});if(!_0x2f892f[_0x4ceb45(0x16b)])return{'records':_0x2f892f['data'][_0x384927]['items'],'total':_0x2f892f[_0x4ceb45(0x14b)][_0x384927][_0x4ceb45(0x16c)]};ServiceUtil[_0x4ceb45(0x166)](_0x2f892f);}catch(_0x3c5170){ServiceUtil['showGraphqlException'](_0x3c5170);}return null;}static async[a0_0x69a960(0x17f)](_0x2e04dc,_0x226876,_0x2b713d){const _0x556646=a0_0x69a960;try{let _0x326477=await client[_0x556646(0x159)]({'query':a0_0x53fbf2`
|
|
21
21
|
query ($id: String!) {
|
|
22
|
-
${
|
|
23
|
-
${
|
|
22
|
+
${_0x2e04dc}(id: $id) {
|
|
23
|
+
${_0x2b713d}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,'variables':{'id':
|
|
26
|
+
`,'variables':{'id':_0x226876}});if(!_0x326477[_0x556646(0x16b)])return _0x326477['data'][_0x2e04dc]||{};ServiceUtil[_0x556646(0x166)](_0x326477);}catch(_0xb040c){ServiceUtil[_0x556646(0x158)](_0xb040c);}return null;}static[a0_0x69a960(0x18c)](_0x161382,_0x1c62e5){const _0x40c140=a0_0x69a960,_0x5d0d51=_0x161382[_0x40c140(0x18b)][_0x40c140(0x178)](_0xa13255=>_0xa13255['id']);return ValueUtil[_0x40c140(0x1a7)](_0x5d0d51)&&0x1==_0x1c62e5&&UiUtil[_0x40c140(0x185)]('text.nothing_selected',_0x40c140(0x18a),_0x40c140(0x19b),_0x40c140(0x15e)),_0x5d0d51;}static async[a0_0x69a960(0x15d)](_0x390d79,_0x29c0a4){const _0x571d41=a0_0x69a960;let _0x52498b=ServiceUtil[_0x571d41(0x18c)](_0x390d79,!0x0);ValueUtil[_0x571d41(0x17c)](_0x52498b)&&(await ServiceUtil[_0x571d41(0x17d)](_0x52498b,_0x29c0a4)&&_0x390d79[_0x571d41(0x1b2)]());}static async[a0_0x69a960(0x17d)](_0x32676c,_0x548d44){const _0x579ff4=a0_0x69a960;if(!(await UiUtil[_0x579ff4(0x185)]('button.delete',_0x579ff4(0x13e),'question','delete',_0x579ff4(0x190)))[_0x579ff4(0x14d)])return!0x1;try{const _0x1110b5=await client['query']({'query':a0_0x53fbf2`
|
|
27
27
|
mutation {
|
|
28
|
-
${
|
|
28
|
+
${_0x548d44}(${gqlBuilder['buildArgs']({'ids':_0x32676c})})
|
|
29
29
|
}
|
|
30
|
-
`});if(!
|
|
30
|
+
`});if(!_0x1110b5['errors'])return UiUtil[_0x579ff4(0x194)](_0x579ff4(0x19b),TermsUtil[_0x579ff4(0x184)](_0x579ff4(0x16e))),!0x0;ServiceUtil[_0x579ff4(0x166)](_0x1110b5);}catch(_0x52e0c4){ServiceUtil['showGraphqlException'](_0x52e0c4);}return!0x1;}static async[a0_0x69a960(0x1af)](_0x2d65a7,_0x3a25f4){const _0x12f5ce=a0_0x69a960;let _0xaa23be=ServiceUtil[_0x12f5ce(0x176)](_0x2d65a7);if(ValueUtil['isNotEmpty'](_0xaa23be)){let _0x5f5373=await ServiceUtil[_0x12f5ce(0x15b)](_0x3a25f4,_0xaa23be);if(_0x5f5373)return _0x2d65a7[_0x12f5ce(0x1b2)](),_0x5f5373;}return!0x1;}static async[a0_0x69a960(0x15b)](_0x29d0e5,_0x92da8b){const _0x492571=a0_0x69a960;try{const _0x4af441=await client['query']({'query':a0_0x53fbf2`
|
|
31
31
|
mutation {
|
|
32
|
-
${
|
|
32
|
+
${_0x29d0e5}(${gqlBuilder[_0x492571(0x188)]({'patches':_0x92da8b})}) {
|
|
33
33
|
id
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
`,'context':{'hasUpload':!0x0}});if(!
|
|
36
|
+
`,'context':{'hasUpload':!0x0}});if(!_0x4af441[_0x492571(0x16b)])return UiUtil[_0x492571(0x194)](_0x492571(0x19b),TermsUtil[_0x492571(0x184)](_0x492571(0x153))),!0x0;ServiceUtil['showGraphqlErrorResponse'](_0x4af441);}catch(_0x438688){ServiceUtil[_0x492571(0x158)](_0x438688);}return!0x1;}static[a0_0x69a960(0x176)](_0x389cc2,_0x543278=!0x1){const _0x4fc9b0=a0_0x69a960;let _0xc2b93e=_0x389cc2['dirtyRecords'];if(_0xc2b93e&&0x0!=_0xc2b93e[_0x4fc9b0(0x141)])return _0xc2b93e['map'](_0x43bb44=>{const _0xbe01c0=_0x4fc9b0;let _0xe230c6=_0x43bb44['id']?{'id':_0x43bb44['id']}:{};for(let _0xa41ff in _0x43bb44)['creator',_0xbe01c0(0x167),'createdAt',_0xbe01c0(0x19c),'__dirty__','__dirtyfields__','__origin__','__seq__',_0xbe01c0(0x198)]['includes'](_0xa41ff)||(_0x43bb44[_0xa41ff]&&_0xbe01c0(0x1b0)==typeof _0x43bb44[_0xa41ff]&&0x0==_0x543278?_0xe230c6[_0xa41ff]={'id':_0x43bb44[_0xa41ff]['id']}:_0xe230c6[_0xa41ff]=_0x43bb44[_0xa41ff]);return _0xe230c6[_0xbe01c0(0x138)]=_0x43bb44['__dirty__'],_0xe230c6;});UiUtil['showAlertPopup']('text.nothing_changed',_0x4fc9b0(0x174),_0x4fc9b0(0x19b),'confirm');}static async[a0_0x69a960(0x14c)](_0xb6c2ce,_0x53d076,_0x2dedc4){const _0x382968=a0_0x69a960;let _0x504ab7=!0x0;_0xb6c2ce&&(_0x504ab7=(await UiUtil['showAlertPopup'](_0x382968(0x1b4)+_0xb6c2ce,_0x382968(0x13e),_0x382968(0x15a),_0x382968(0x15e),_0x382968(0x190)))[_0x382968(0x14d)]);if(_0x504ab7)try{const _0x5f2d62=await client[_0x382968(0x159)]({'query':a0_0x53fbf2`
|
|
37
37
|
mutation ($scenarioName: String!, $variables: Object) {
|
|
38
38
|
runScenario(scenarioName: $scenarioName, variables: $variables) {
|
|
39
39
|
state
|
|
@@ -42,4 +42,4 @@ const a0_0x3a3cd1=a0_0x3469;(function(_0x3026ff,_0x6b9954){const _0x128381=a0_0x
|
|
|
42
42
|
__typename
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
`,'variables':{'scenarioName':
|
|
45
|
+
`,'variables':{'scenarioName':_0x53d076,'variables':_0x2dedc4}});if(_0x5f2d62['errors'])ServiceUtil['showGraphqlErrorResponse'](_0x5f2d62);else{if(this[_0x382968(0x1ae)](_0x5f2d62))return UiUtil[_0x382968(0x194)](_0x382968(0x19b),TermsUtil[_0x382968(0x184)](_0x382968(0x13b))),_0x5f2d62;}}catch(_0x53770d){ServiceUtil[_0x382968(0x158)](_0x53770d);}return!0x1;}static[a0_0x69a960(0x1ae)](_0x437f1e){const _0x5ed7b3=a0_0x69a960;if(_0x437f1e&&_0x437f1e[_0x5ed7b3(0x14b)]&&_0x437f1e[_0x5ed7b3(0x14b)]['runScenario']&&_0x437f1e[_0x5ed7b3(0x14b)][_0x5ed7b3(0x161)][_0x5ed7b3(0x14b)]&&_0x437f1e['data']['runScenario'][_0x5ed7b3(0x14b)][_0x5ed7b3(0x163)]){let _0x1939e7=_0x437f1e[_0x5ed7b3(0x14b)][_0x5ed7b3(0x161)][_0x5ed7b3(0x14b)][_0x5ed7b3(0x163)];return UiUtil['showAlertPopup'](_0x1939e7[_0x5ed7b3(0x195)],_0x1939e7[_0x5ed7b3(0x1a2)],_0x5ed7b3(0x163),_0x5ed7b3(0x15e)),!0x1;}return!0x0;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x33c2be=a0_0x1499;(function(_0x1ad1e5,_0x1e6530){const _0x570dfb=a0_0x1499,_0x1827ee=_0x1ad1e5();while(!![]){try{const _0x44a800=-parseInt(_0x570dfb(0x1f4))/0x1+-parseInt(_0x570dfb(0x213))/0x2*(-parseInt(_0x570dfb(0x1fe))/0x3)+-parseInt(_0x570dfb(0x204))/0x4+parseInt(_0x570dfb(0x1f8))/0x5+-parseInt(_0x570dfb(0x200))/0x6+-parseInt(_0x570dfb(0x1f3))/0x7*(parseInt(_0x570dfb(0x206))/0x8)+parseInt(_0x570dfb(0x1fb))/0x9*(parseInt(_0x570dfb(0x1fa))/0xa);if(_0x44a800===_0x1e6530)break;else _0x1827ee['push'](_0x1827ee['shift']());}catch(_0x559d95){_0x1827ee['push'](_0x1827ee['shift']());}}}(a0_0x97ee,0x8988c));import a0_0x41be87 from'graphql-tag';function a0_0x1499(_0x5b1a86,_0xefc8e5){const _0x97ee2a=a0_0x97ee();return a0_0x1499=function(_0x1499cc,_0x28e401){_0x1499cc=_0x1499cc-0x1f2;let _0xfb538e=_0x97ee2a[_0x1499cc];return _0xfb538e;},a0_0x1499(_0x5b1a86,_0xefc8e5);}import{client}from'@operato/graphql';function a0_0x97ee(){const _0x52678b=['11796kaINli','keys','3583530KwhGnk','forEach','error','tError','559500pGKeCZ','total','1870712luRDAB','replace','field','locale','tLabel','tField','items','text','title','downloadTerminologies','translate','display','tButton','44ZyUazD','data','META_TERMS','name','14vbvSvM','1085905XukAZV','menu','category','fetchTerminologies','2465110bWRCfg','tMenu','5230ASueqV','39141CObrAc','query','label'];a0_0x97ee=function(){return _0x52678b;};return a0_0x97ee();}import{i18next}from'@operato/i18n';export class TermsUtil{[a0_0x33c2be(0x215)]=null;static async[a0_0x33c2be(0x20f)](_0x4a382a){const _0x13896c=a0_0x33c2be;let _0x3c6453=(await TermsUtil['fetchTerminologies'](_0x4a382a))['records'];_0x3c6453&&_0x3c6453['length']>0x0&&(this[_0x13896c(0x215)]={},_0x3c6453[_0x13896c(0x201)](_0xf6607d=>{const _0x358c09=_0x13896c;let _0x28a8fc=_0xf6607d[_0x358c09(0x1f6)]+'.'+_0xf6607d['name'];this[_0x358c09(0x215)][_0x28a8fc]=_0xf6607d[_0x358c09(0x211)];}));}static async[a0_0x33c2be(0x1f7)](_0xb1bf32){const _0x1e3f6e=a0_0x33c2be;let _0x26e820=[{'name':_0x1e3f6e(0x209),'operator':'eq','value':_0xb1bf32}];const _0x4c179d=await client[_0x1e3f6e(0x1fc)]({'query':a0_0x41be87`
|
|
2
2
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
3
3
|
terminologies(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
4
4
|
items {
|
|
@@ -11,4 +11,4 @@ const a0_0x2ae1f0=a0_0x13d2;(function(_0x35d5b1,_0x242d2d){const _0x31e5a7=a0_0x
|
|
|
11
11
|
total
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
`,'variables':{'filters':
|
|
14
|
+
`,'variables':{'filters':_0x26e820,'sortings':[{'name':_0x1e3f6e(0x1f6)},{'name':_0x1e3f6e(0x1f2)}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0x4c179d['errors'])return{'records':_0x4c179d[_0x1e3f6e(0x214)]['terminologies'][_0x1e3f6e(0x20c)]||[],'total':_0x4c179d['data']['terminologies'][_0x1e3f6e(0x205)]||0x0};}static[a0_0x33c2be(0x20a)](_0x17df6a,_0x2f78f4){const _0x58ece1=a0_0x33c2be;let _0x56834d=TermsUtil[_0x58ece1(0x210)](_0x58ece1(0x1fd),_0x17df6a,_0x2f78f4,null);return _0x56834d||TermsUtil[_0x58ece1(0x210)](_0x58ece1(0x208),_0x17df6a,_0x2f78f4,_0x17df6a);}static[a0_0x33c2be(0x20b)](_0x22081c,_0x201fd0){const _0x27d360=a0_0x33c2be;let _0x5701c5=TermsUtil[_0x27d360(0x210)](_0x27d360(0x208),_0x22081c,_0x201fd0,null);return _0x5701c5||TermsUtil['translate'](_0x27d360(0x208),_0x22081c,_0x201fd0,_0x22081c);}static[a0_0x33c2be(0x212)](_0x16fd46){const _0x34f7c0=a0_0x33c2be;return TermsUtil[_0x34f7c0(0x210)]('button',_0x16fd46,null,_0x16fd46);}static['tTitle'](_0x590b66,_0x48abb7){const _0x4be42c=a0_0x33c2be;let _0x2d4fca=TermsUtil['translate'](_0x4be42c(0x20e),_0x590b66,_0x48abb7,null);return _0x2d4fca||TermsUtil[_0x4be42c(0x210)](_0x4be42c(0x1f5),_0x590b66,_0x48abb7,_0x590b66);}static[a0_0x33c2be(0x1f9)](_0x14a8da){const _0x3945db=a0_0x33c2be;let _0x1bc010=TermsUtil[_0x3945db(0x210)](_0x3945db(0x1f5),_0x14a8da,null,_0x14a8da);return _0x1bc010||TermsUtil[_0x3945db(0x210)](_0x3945db(0x20e),_0x14a8da,null,_0x14a8da);}static['tText'](_0xe9bc8b,_0xe76a7f){const _0x35cd5c=a0_0x33c2be;return TermsUtil[_0x35cd5c(0x210)](_0x35cd5c(0x20d),_0xe9bc8b,_0xe76a7f,_0xe9bc8b);}static[a0_0x33c2be(0x203)](_0x932042,_0xa64468){const _0x169fa5=a0_0x33c2be;return TermsUtil[_0x169fa5(0x210)](_0x169fa5(0x202),_0x932042,_0xa64468,_0x932042);}static[a0_0x33c2be(0x210)](_0x5815df,_0x31c8cb,_0x3c6364,_0x32b46f){let _0x552a88=_0x5815df+'.'+_0x31c8cb;return TermsUtil['t'](_0x552a88,_0x3c6364,_0x32b46f);}static['t'](_0x1e71fc,_0x228bb9,_0x34e11d){const _0x28cca2=a0_0x33c2be;let _0x926f2f=this[_0x28cca2(0x215)]?this[_0x28cca2(0x215)][_0x1e71fc]:null;return _0x926f2f=_0x926f2f||i18next['t'](_0x1e71fc),_0x926f2f&&_0x1e71fc!=_0x926f2f?(_0x228bb9&&Object[_0x28cca2(0x1ff)](_0x228bb9)[_0x28cca2(0x201)](function(_0x52b2d8){const _0x4bd579=_0x28cca2;var _0x2fa24b='\x5c{'+_0x52b2d8[_0x4bd579(0x207)](/\$/,'\x5c$')+'\x5c}',_0x2d6696=new RegExp(_0x2fa24b,'gi');_0x926f2f=_0x926f2f['replace'](_0x2d6696,_0x228bb9[_0x52b2d8]);}),_0x926f2f):_0x34e11d;}}
|
package/client/utils/ui-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x32052f=a0_0xb118;(function(_0x3ff28b,_0x494e09){const _0x1907a8=a0_0xb118,_0x424bc5=_0x3ff28b();while(!![]){try{const _0x3cd48e=parseInt(_0x1907a8(0x161))/0x1+-parseInt(_0x1907a8(0x147))/0x2+-parseInt(_0x1907a8(0x140))/0x3*(parseInt(_0x1907a8(0x15a))/0x4)+-parseInt(_0x1907a8(0x130))/0x5+parseInt(_0x1907a8(0x12d))/0x6*(-parseInt(_0x1907a8(0x160))/0x7)+-parseInt(_0x1907a8(0x14e))/0x8+-parseInt(_0x1907a8(0x138))/0x9*(-parseInt(_0x1907a8(0x125))/0xa);if(_0x3cd48e===_0x494e09)break;else _0x424bc5['push'](_0x424bc5['shift']());}catch(_0x535bd6){_0x424bc5['push'](_0x424bc5['shift']());}}}(a0_0x41b2,0x678d9));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';function a0_0x41b2(){const _0xe68567=['552899BLINuN','parent_field','\x27\x20\x20parent_id=\x27','\x20route_name=\x27','createCustomElement','length','\x27\x20is_popup=true></','getStore','barcode','removeChild','currentLocale','setValueToEditor','isNotEmpty','20suPABl','innerHTML','firstElementChild','cancelButton','template','indexOf','content','notify','18fOCSJP','getState','getType','3411160pTtkUt','route','cookie','getParams','pass=','onclosed','pageNavigate','substring','5604966nNPUOp','filters','type','confirmButton','showToast','editor','fireCustomEvent','input','26439lFnvFj','createEditorHtml','createElement','value','ox-input-code','size','code-editor','61984VHZMdo','split','name','getLeafInput','tagname','menu','page','1910952bBXYXK','openPopupByElement','ox-input-barcode','popup_field','renderRoot','htmlToElement','getFilterFormData','querySelector','modules','textarea','app','dispatchEvent','16HpNjvE','isMobileEnv','\x27></','ko-KR','forEach','config','902881bxfHmh'];a0_0x41b2=function(){return _0xe68567;};return a0_0x41b2();}import{ValueUtil}from'./value-util';function a0_0xb118(_0xba66eb,_0xbf5c22){const _0x41b24d=a0_0x41b2();return a0_0xb118=function(_0xb118fe,_0x4a6d43){_0xb118fe=_0xb118fe-0x11f;let _0x4650e1=_0x41b24d[_0xb118fe];return _0x4650e1;},a0_0xb118(_0xba66eb,_0xbf5c22);}import{MetaUiUtil}from'./meta-ui-util';export class UiUtil{static[a0_0x32052f(0x15b)](){return isMobileDevice();}static[a0_0x32052f(0x122)](){const _0x24e1cc=a0_0x32052f;let _0x1bda9a=document[_0x24e1cc(0x132)];return _0x1bda9a=_0x1bda9a[_0x24e1cc(0x137)](_0x1bda9a[_0x24e1cc(0x12a)]('i18next')),_0x1bda9a[_0x24e1cc(0x12a)](';')>-0x1&&(_0x1bda9a=_0x1bda9a[_0x24e1cc(0x137)](0x0,_0x1bda9a[_0x24e1cc(0x12a)](';'))),_0x1bda9a=_0x1bda9a['replace']('i18next=',''),'ko'==_0x1bda9a?_0x24e1cc(0x15d):_0x1bda9a;}static['getApplicationModuleInfo'](){const _0x128005=a0_0x32052f;let _0x3a22f0=store[_0x128005(0x12e)]()[_0x128005(0x158)][_0x128005(0x156)];return _0x3a22f0[_0x3a22f0[_0x128005(0x166)]-0x1];}static['currentRouting'](){const _0x11a02a=a0_0x32052f;return store[_0x11a02a(0x12e)]()[_0x11a02a(0x131)][_0x11a02a(0x14d)];}static[a0_0x32052f(0x14f)](_0x2c651c,_0x27cfb2,_0x52ff75,_0x37a384){return openPopup(_0x52ff75,{'backdrop':!0x0,'size':_0x27cfb2,'title':_0x2c651c,'backdrop':_0x37a384});}static async['openDynamicPopup'](_0x559bb2,_0x212db8,_0x2aab20,_0xde6da6){const _0x2544b9=a0_0x32052f;let _0x59399d=ValueUtil[_0x2544b9(0x124)](_0x212db8[_0x2544b9(0x162)])?ValueUtil[_0x2544b9(0x133)](_0x2aab20,..._0x212db8['parent_field'][_0x2544b9(0x148)]('.')):void 0x0,_0x1ec31e='<'+_0x212db8[_0x2544b9(0x14b)]+_0x2544b9(0x164)+_0x212db8[_0x2544b9(0x14c)]+_0x2544b9(0x163)+_0x59399d+_0x2544b9(0x167)+_0x212db8[_0x2544b9(0x14b)]+'>',_0x23ed88=UiUtil['htmlToElement'](_0x1ec31e);_0x23ed88[_0x2544b9(0x15f)]=_0x212db8,ValueUtil[_0x2544b9(0x124)](_0x212db8[_0x2544b9(0x151)])&&(_0x23ed88[_0x212db8['popup_field']]=_0x2aab20);let _0x1f7a6e=UiUtil[_0x2544b9(0x14f)](_0x559bb2,_0x212db8[_0x2544b9(0x145)],_0x23ed88,!0x0);_0xde6da6&&(_0x1f7a6e[_0x2544b9(0x135)]=_0xde6da6);}static[a0_0x32052f(0x165)](_0x18fd03,_0x5c1072){const _0x20e277=a0_0x32052f;let _0x48f022='<'+_0x18fd03+_0x20e277(0x164)+_0x5c1072+_0x20e277(0x15c)+_0x18fd03+'>';return UiUtil[_0x20e277(0x153)](_0x48f022);}static['htmlToElement'](_0x4c84f9){const _0x327a4b=a0_0x32052f;var _0x5dfe72=document[_0x327a4b(0x142)](_0x327a4b(0x129));_0x5dfe72[_0x327a4b(0x126)]=_0x4c84f9;var _0x48943f=_0x5dfe72[_0x327a4b(0x12b)]['childNodes'][0x0];return _0x5dfe72[_0x327a4b(0x12b)][_0x327a4b(0x121)](_0x48943f),_0x48943f;}static[a0_0x32052f(0x136)](_0x224965,_0x2f2604){const _0x3a3156=a0_0x32052f;let _0x1e1810=_0x2f2604?'?':'';_0x2f2604&&(_0x1e1810+=_0x3a3156(0x134)+JSON['stringify'](_0x2f2604)),navigate(''+_0x224965+_0x1e1810);}static[a0_0x32052f(0x11f)](_0x4b3a18,_0x3896f3,_0x5cf74d){const _0x40a758=a0_0x32052f;let _0x21f9f1=_0x21f9f1[_0x40a758(0x12e)]();return _0x4b3a18&&_0x3896f3&&_0x5cf74d?_0x21f9f1[_0x4b3a18][_0x3896f3][_0x5cf74d]:_0x4b3a18&&_0x3896f3?_0x21f9f1[_0x4b3a18][_0x3896f3]:_0x4b3a18?_0x21f9f1[_0x4b3a18]:_0x21f9f1;}static[a0_0x32052f(0x13e)](_0x5e5ea2,_0x6fbee5){const _0x1bcadf=a0_0x32052f;document[_0x1bcadf(0x159)](new CustomEvent(_0x5e5ea2,{'detail':_0x6fbee5}));}static[a0_0x32052f(0x13c)](_0x1be870,_0x1afb44){const _0x18dfcf=a0_0x32052f;document[_0x18dfcf(0x159)](new CustomEvent(_0x18dfcf(0x12c),{'detail':{'type':_0x1be870,'message':_0x1afb44}}));}static async['showAlertPopup'](_0x3bc878,_0x53d523,_0x196cb5,_0x2d6368,_0x5e1a1e){const _0xc370d1=a0_0x32052f;let _0x374a45={'title':TermsUtil['t'](_0x3bc878)||_0x3bc878,'text':TermsUtil['t'](_0x53d523)||_0x53d523};return _0x196cb5&&(_0x374a45[_0xc370d1(0x13a)]=_0x196cb5),_0x2d6368&&(_0x374a45[_0xc370d1(0x13b)]=TermsUtil['tButton'](_0x2d6368)),_0x5e1a1e&&(_0x374a45[_0xc370d1(0x128)]=TermsUtil['tButton'](_0x5e1a1e)),await CustomAlert(_0x374a45);}static[a0_0x32052f(0x154)](_0x4c2376){const _0x749883=a0_0x32052f;if(ValueUtil[_0x749883(0x124)](_0x4c2376)){let _0x194a00=_0x4c2376[_0x749883(0x139)]();ValueUtil['isNotEmpty'](_0x194a00)&&_0x194a00[_0x749883(0x15e)](_0x1d9f78=>{const _0x5decc0=_0x749883;ValueUtil['isNotEmpty'](_0x1d9f78[_0x5decc0(0x143)])&&(item[_0x1d9f78[_0x5decc0(0x149)]]=_0x1d9f78[_0x5decc0(0x143)]?_0x1d9f78[_0x5decc0(0x143)]:null);});}return{};}static['setSearchFormEditorValue'](_0x4eacf5,_0x44dc89,_0x4b323c){const _0x324775=a0_0x32052f;if(ValueUtil['isNotEmpty'](_0x4eacf5)){let _0xed35fd=_0x4eacf5[_0x324775(0x152)]?.['querySelector']('[name=\x27'+_0x44dc89+'\x27]');ValueUtil[_0x324775(0x124)](_0xed35fd)&&(_0xed35fd[_0x324775(0x143)]=_0x4b323c);}}static[a0_0x32052f(0x141)](_0x1c635a,_0x3b84b8,_0x2de22f,_0x4d4f9f){return getEditor(_0x1c635a)('',_0x3b84b8,_0x2de22f,_0x4d4f9f,{});}static[a0_0x32052f(0x123)](_0x106452,_0x25d5fa){const _0x5b0c30=a0_0x32052f;UiUtil[_0x5b0c30(0x14a)](_0x106452)[_0x5b0c30(0x143)]=_0x25d5fa;}static[a0_0x32052f(0x14a)](_0x2ceeac){const _0x16460d=a0_0x32052f;let _0x162191=_0x2ceeac[_0x16460d(0x12f)]();return _0x16460d(0x146)==_0x162191?_0x2ceeac[_0x16460d(0x152)][_0x16460d(0x155)](_0x16460d(0x144)):_0x16460d(0x157)==_0x162191?_0x2ceeac[_0x16460d(0x152)]['querySelector'](_0x16460d(0x157)):'select-combo'==_0x162191?_0x2ceeac[_0x16460d(0x152)][_0x16460d(0x155)]('ox-select')[_0x16460d(0x127)]:_0x16460d(0x120)==_0x162191?_0x2ceeac[_0x16460d(0x152)][_0x16460d(0x155)](_0x16460d(0x150))[_0x16460d(0x152)][_0x16460d(0x155)](_0x16460d(0x13f)):_0x2ceeac['renderRoot'][_0x16460d(0x127)][_0x16460d(0x13d)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x4a7b88=a0_0x25db;(function(_0x3f5b48,_0x257d6d){const _0x24e7d8=a0_0x25db,_0x10a964=_0x3f5b48();while(!![]){try{const _0x3636fd=-parseInt(_0x24e7d8(0x150))/0x1+-parseInt(_0x24e7d8(0x15a))/0x2+-parseInt(_0x24e7d8(0x165))/0x3*(-parseInt(_0x24e7d8(0x163))/0x4)+-parseInt(_0x24e7d8(0x153))/0x5+-parseInt(_0x24e7d8(0x162))/0x6*(-parseInt(_0x24e7d8(0x169))/0x7)+parseInt(_0x24e7d8(0x166))/0x8+-parseInt(_0x24e7d8(0x159))/0x9*(parseInt(_0x24e7d8(0x151))/0xa);if(_0x3636fd===_0x257d6d)break;else _0x10a964['push'](_0x10a964['shift']());}catch(_0x5cf3ef){_0x10a964['push'](_0x10a964['shift']());}}}(a0_0x11ce,0xb5a3d));function a0_0x25db(_0x36395e,_0x132131){const _0x11cec7=a0_0x11ce();return a0_0x25db=function(_0x25db0f,_0x43ac3a){_0x25db0f=_0x25db0f-0x14e;let _0x4e8931=_0x11cec7[_0x25db0f];return _0x4e8931;},a0_0x25db(_0x36395e,_0x132131);}import a0_0x139a80 from'lodash-es/isEqual';function a0_0x11ce(){const _0x55878f=['isEquals','setParams','forEach','931338RLtsvh','16590DxomlO','isNotEmpty','2003860WPMuMP','object','length','populateArray','isArray','slice','774BiBQvs','1703600IorFcx','toInteger','populateObject','getParams','keys','map','TRUE','isEmpty','28818SzUWgk','1917284OsFNsX','string','9fyTFdp','6413592wVpyKo','true','number','1211rBxPOT'];a0_0x11ce=function(){return _0x55878f;};return a0_0x11ce();}import{TermsUtil}from'./terms-util';export class ValueUtil{static['isEmpty'](_0x46a4d3){const _0x1d88df=a0_0x25db;if(void 0x0===_0x46a4d3)return!0x0;if(null===_0x46a4d3)return!0x0;if('boolean'==typeof _0x46a4d3)return!0x1;if(_0x1d88df(0x164)==typeof _0x46a4d3||_0x1d88df(0x168)==typeof _0x46a4d3){if(''==_0x46a4d3)return!0x0;}else{if(Array[_0x1d88df(0x157)](_0x46a4d3)){if(0x0==_0x46a4d3[_0x1d88df(0x155)])return!0x0;}else{if(_0x1d88df(0x154)==typeof _0x46a4d3&&0x0==Object['keys'](_0x46a4d3)[_0x1d88df(0x155)])return!0x0;}}return!0x1;}static['isNotEmpty'](_0x1120b1){const _0x523b93=a0_0x25db;return!ValueUtil[_0x523b93(0x161)](_0x1120b1);}static[a0_0x4a7b88(0x16a)](_0x36dd40,_0x56e587){return a0_0x139a80(_0x36dd40,_0x56e587);}static[a0_0x4a7b88(0x15b)](_0x41ac1d,_0xbd739a){const _0x127bd0=a0_0x4a7b88;return ValueUtil[_0x127bd0(0x161)](_0x41ac1d)?_0xbd739a||0x0:parseInt(_0x41ac1d);}static['toBoolean'](_0x300ce2){const _0x5d2709=a0_0x4a7b88;return!ValueUtil[_0x5d2709(0x161)](_0x300ce2)&&(_0x5d2709(0x167)==_0x300ce2||'t'==_0x300ce2||_0x5d2709(0x160)==_0x300ce2||'T'==_0x300ce2||'on'==_0x300ce2||'ON'==_0x300ce2);}static['compareObjectValues'](_0x170e72,_0x5681c2,_0x121f97){const _0x27c5f8=a0_0x4a7b88;let _0x5800e8=!0x0;return _0x121f97[_0x27c5f8(0x14f)](_0x3a323f=>{let _0x418052=_0x170e72[_0x3a323f];if('*'===_0x418052)return;let _0x3466fa=_0x5681c2[_0x3a323f]||'';ValueUtil['isEmpty'](_0x418052)?ValueUtil['isNotEmpty'](_0x3466fa)&&(_0x5800e8=!0x1):_0x418052!=_0x3466fa&&(_0x5800e8=!0x1);}),_0x5800e8;}static[a0_0x4a7b88(0x14e)](_0x9ad44b,_0x613df4,_0x139cc6,_0x1f99e4){const _0x2b5edc=a0_0x4a7b88;let _0x948970=ValueUtil[_0x2b5edc(0x15d)](_0x613df4,_0x139cc6);return ValueUtil['isNotEmpty'](_0x948970)&&(_0x9ad44b[_0x139cc6]=!0x0===_0x1f99e4?TermsUtil['t'](_0x948970):_0x948970),_0x9ad44b;}static[a0_0x4a7b88(0x15d)](_0x2caee2,..._0x85eeb4){const _0x57f4e8=a0_0x4a7b88;if(arguments[_0x57f4e8(0x155)]<=0x1)return;let _0x203680=_0x85eeb4[0x0];if(ValueUtil['isEmpty'](_0x2caee2[_0x203680]))return;let _0x47cf1e=_0x2caee2[_0x203680];return _0x85eeb4[_0x57f4e8(0x155)]>0x1?ValueUtil[_0x57f4e8(0x15d)](_0x47cf1e,..._0x85eeb4[_0x57f4e8(0x158)](0x1)):_0x47cf1e;}static[a0_0x4a7b88(0x156)](_0x32eff3,_0x150238,..._0x3cb8c2){const _0x4b6431=a0_0x4a7b88;return _0x150238=_0x150238||[],_0x3cb8c2=_0x3cb8c2||Object['keys'](_0x32eff3),ValueUtil[_0x4b6431(0x152)](_0x3cb8c2)&&(_0x150238=_0x32eff3[_0x4b6431(0x15f)]((_0x403be8,_0x5924cf)=>{const _0x118b50=_0x4b6431;let _0x423cdf=_0x150238[_0x118b50(0x155)]>_0x5924cf?_0x150238[_0x5924cf]:{};return ValueUtil['populateObject'](_0x403be8,_0x423cdf,_0x3cb8c2);})),_0x150238;}static[a0_0x4a7b88(0x15c)](_0x37611e,_0x4d89c6,..._0x187224){const _0x334b57=a0_0x4a7b88;return _0x4d89c6=_0x4d89c6||{},_0x187224=_0x187224||Object[_0x334b57(0x15e)](_0x37611e),ValueUtil[_0x334b57(0x152)](_0x187224)&&_0x187224['forEach'](_0x3eacf9=>{_0x4d89c6[_0x3eacf9]=_0x37611e[_0x3eacf9];}),_0x4d89c6;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x22a3(_0x35003d,_0x42ffb6){const _0x3cc558=a0_0x3cc5();return a0_0x22a3=function(_0x22a33a,_0x2eff66){_0x22a33a=_0x22a33a-0x6c;let _0x45a185=_0x3cc558[_0x22a33a];return _0x45a185;},a0_0x22a3(_0x35003d,_0x42ffb6);}(function(_0x5ad197,_0x10f8bf){const _0x4caaaf=a0_0x22a3,_0xf7540d=_0x5ad197();while(!![]){try{const _0x12a1ab=parseInt(_0x4caaaf(0x70))/0x1*(parseInt(_0x4caaaf(0x6c))/0x2)+parseInt(_0x4caaaf(0x74))/0x3+parseInt(_0x4caaaf(0x76))/0x4*(parseInt(_0x4caaaf(0x72))/0x5)+parseInt(_0x4caaaf(0x75))/0x6*(parseInt(_0x4caaaf(0x6f))/0x7)+-parseInt(_0x4caaaf(0x6d))/0x8+-parseInt(_0x4caaaf(0x6e))/0x9*(parseInt(_0x4caaaf(0x73))/0xa)+-parseInt(_0x4caaaf(0x77))/0xb*(-parseInt(_0x4caaaf(0x71))/0xc);if(_0x12a1ab===_0x10f8bf)break;else _0xf7540d['push'](_0xf7540d['shift']());}catch(_0x3fa20c){_0xf7540d['push'](_0xf7540d['shift']());}}}(a0_0x3cc5,0x4005e));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 @@ function a0_0x3c00(_0x49b6a9,_0x519610){const _0x52b552=a0_0x52b5();return a0_0x
|
|
|
144
144
|
background-color: rgba(var(--secondary-color-rgb), 0.3);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
`;
|
|
147
|
+
`;function a0_0x3cc5(){const _0x47811f=['1550Vxzqra','1810mNpqEB','224298OUJUSa','12YBgUel','6640pIFsvp','201619BiudZv','10EoPIrs','2652176CcCNOr','25425vumzPp','468510XQoysU','72706zwOUZA','12SjTyWq'];a0_0x3cc5=function(){return _0x47811f;};return a0_0x3cc5();}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x2e5fc7=a0_0x271e;(function(_0x2bc38f,_0xb45d78){const _0x44f588=a0_0x271e,_0x198bcc=_0x2bc38f();while(!![]){try{const _0x4f0837=-parseInt(_0x44f588(0x107))/0x1+parseInt(_0x44f588(0x10a))/0x2+-parseInt(_0x44f588(0x108))/0x3*(-parseInt(_0x44f588(0x101))/0x4)+parseInt(_0x44f588(0xfd))/0x5+parseInt(_0x44f588(0x11c))/0x6+-parseInt(_0x44f588(0x112))/0x7+parseInt(_0x44f588(0x103))/0x8*(-parseInt(_0x44f588(0x11a))/0x9);if(_0x4f0837===_0xb45d78)break;else _0x198bcc['push'](_0x198bcc['shift']());}catch(_0x339dc9){_0x198bcc['push'](_0x198bcc['shift']());}}}(a0_0x3633,0xd5d40));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['styles'](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get['properties'](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x2e5fc7(0x100)](){const _0x34a2e3=a0_0x2e5fc7,{menus:_0x473828=[],activeTopLevel:_0x518f26,activeMenu:_0x5293f4}=this;return html`
|
|
2
2
|
<div id="wrap">
|
|
3
3
|
<ul>
|
|
4
|
-
${
|
|
5
|
-
<li ?active=${
|
|
6
|
-
<a href=${
|
|
7
|
-
${
|
|
4
|
+
${_0x473828[_0x34a2e3(0x105)](_0x571a78=>_0x34a2e3(0x122)==_0x571a78[_0x34a2e3(0xff)]?html``:html`
|
|
5
|
+
<li ?active=${_0x571a78===_0x518f26}>
|
|
6
|
+
<a href=${_0x571a78[_0x34a2e3(0x125)]||'#'}>
|
|
7
|
+
${_0x571a78['icon']?html`<mwc-icon>${_0x571a78[_0x34a2e3(0x114)]}</mwc-icon>`:html``} ${_0x571a78[_0x34a2e3(0x115)]}
|
|
8
8
|
</a>
|
|
9
9
|
|
|
10
10
|
<ul submenus>
|
|
11
|
-
${
|
|
12
|
-
<li ?active=${
|
|
13
|
-
<a href=${
|
|
11
|
+
${_0x571a78['menus']?.['map'](_0x5c9aa5=>html`
|
|
12
|
+
<li ?active=${_0x5c9aa5===_0x5293f4}>
|
|
13
|
+
<a href=${_0x5c9aa5[_0x34a2e3(0x125)]||'#'}> ${_0x5c9aa5['name']} </a>
|
|
14
14
|
</li>
|
|
15
15
|
`)}
|
|
16
16
|
</ul>
|
|
17
17
|
|
|
18
18
|
<div description>
|
|
19
|
-
${
|
|
19
|
+
${_0x571a78[_0x34a2e3(0x114)]?html`<mwc-icon>${_0x571a78['icon']}</mwc-icon>`:html``} ${_0x571a78[_0x34a2e3(0x121)]||''}
|
|
20
20
|
</div>
|
|
21
21
|
</li>
|
|
22
22
|
`)}
|
|
23
23
|
</ul>
|
|
24
24
|
</div>
|
|
25
|
-
`;}[
|
|
25
|
+
`;}[a0_0x2e5fc7(0x11e)](){const _0x2ff7db=a0_0x2e5fc7;this[_0x2ff7db(0x11f)][_0x2ff7db(0x10d)](_0x2ff7db(0xfc))[_0x2ff7db(0x123)](_0x2ff7db(0x111),this[_0x2ff7db(0x116)][_0x2ff7db(0x113)](this),!0x1),this[_0x2ff7db(0x11f)][_0x2ff7db(0x123)](_0x2ff7db(0x118),_0x4ddfaf=>{const _0x514ccc=_0x2ff7db;if(_0x4ddfaf[_0x514ccc(0xfe)][_0x514ccc(0x11b)]){_0x4ddfaf[_0x514ccc(0x119)](),_0x4ddfaf['preventDefault']();let _0x26c98b=_0x4ddfaf['target'][_0x514ccc(0x11b)];return void this[_0x514ccc(0x120)](new CustomEvent(_0x514ccc(0x10b),{'bubbles':!0x0,'detail':this[_0x514ccc(0x10c)]===_0x26c98b?void 0x0:_0x26c98b}));}let _0x162bd3=_0x4ddfaf['target'][_0x514ccc(0x10f)];_0x162bd3&&location[_0x514ccc(0x10f)]===_0x162bd3&&navigate(_0x162bd3+_0x514ccc(0x10e),!0x0);}),this[_0x2ff7db(0x11f)][_0x2ff7db(0x123)]('transitionstart',_0x50ba90=>{const _0x24449c=_0x2ff7db;_0x50ba90[_0x24449c(0xfe)]['removeAttribute'](_0x24449c(0x104));}),this['renderRoot'][_0x2ff7db(0x123)](_0x2ff7db(0x11d),_0x2c6306=>{const _0x56359d=_0x2ff7db;_0x2c6306['target'][_0x56359d(0x110)](_0x56359d(0x104),'');});}[a0_0x2e5fc7(0x116)](_0xe7f62b){const _0x5ce85c=a0_0x2e5fc7,_0x4e695d=_0xe7f62b[_0x5ce85c(0x117)];var _0x439303=Math['max'](-0x1,Math['min'](0x1,_0xe7f62b[_0x5ce85c(0x102)]||-_0xe7f62b[_0x5ce85c(0x106)]));_0x4e695d['scrollLeft']-=0xa*_0x439303,_0xe7f62b[_0x5ce85c(0x109)]();}}function a0_0x271e(_0x2f3bad,_0x4d3cb0){const _0x3633ae=a0_0x3633();return a0_0x271e=function(_0x271e24,_0xaa8186){_0x271e24=_0x271e24-0xfc;let _0xf5b7e=_0x3633ae[_0x271e24];return _0xf5b7e;},a0_0x271e(_0x2f3bad,_0x4d3cb0);}customElements['define'](a0_0x2e5fc7(0x124),DynamicMenuLandscape);function a0_0x3633(){const _0x4197f8=['currentTarget','click','stopPropagation','36zxBFeq','submenu','576312oDkrut','transitionend','firstUpdated','renderRoot','dispatchEvent','description','group','addEventListener','dynamic-menu-landscape','path','#wrap','2140330JYmTRQ','target','type','render','152RXWXlg','wheelDelta','1814872zROKps','settled','map','detail','803719ALMOey','55908HNfBAL','preventDefault','3193002vZEUGn','active-toplevel','activeTopLevel','querySelector','#force','href','setAttribute','mousewheel','1692544OUtEYm','bind','icon','name','onWheelEvent'];a0_0x3633=function(){return _0x4197f8;};return a0_0x3633();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x45c15e=a0_0x4791;(function(_0x4634c3,_0x14b30a){var _0x548120=a0_0x4791,_0xcc935a=_0x4634c3();while(!![]){try{var _0x5277fc=-parseInt(_0x548120(0xed))/0x1*(-parseInt(_0x548120(0xdd))/0x2)+-parseInt(_0x548120(0xdf))/0x3*(parseInt(_0x548120(0xeb))/0x4)+parseInt(_0x548120(0xe5))/0x5*(parseInt(_0x548120(0xe0))/0x6)+parseInt(_0x548120(0xe6))/0x7+-parseInt(_0x548120(0xe4))/0x8+parseInt(_0x548120(0xe7))/0x9+-parseInt(_0x548120(0xd4))/0xa*(parseInt(_0x548120(0xd0))/0xb);if(_0x5277fc===_0x14b30a)break;else _0xcc935a['push'](_0xcc935a['shift']());}catch(_0x235094){_0xcc935a['push'](_0xcc935a['shift']());}}}(a0_0x1b3d,0x860d0));import'@material/mwc-icon';import'./dynamic-menu-portrait';function a0_0x1b3d(){var _0x40b5be=['30CAxsPA','228914mwZhkX','5796765sPiVqC','properties','updated','landscape','22556lecKwU','dynamic-menu-part','19cXCKMV','find','active-toplevel','styles','_activeTopLevel','path','call','split','replaceChild','removeAttribute','menus','7139077oLtZQX','detail','stopPropagation','slotTemplate','10WbpRBj','renderRoot','page','active','stateChanged','has','metaUI','_path','_activeMenu','88534iSyTck','route','84OSmUIb','700968oOlcRX','resourceId','function','addEventListener','6902856HhssZg'];a0_0x1b3d=function(){return _0x40b5be;};return a0_0x1b3d();}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(_0x2a6edf,_0x2b66e9){var _0x1daa0f=a0_0x4791;return _0x2a6edf[_0x1daa0f(0xf2)]?.[_0x1daa0f(0xcc)]('?')[0x0]===_0x2b66e9||_0x2a6edf[_0x1daa0f(0xd7)]&&_0x1daa0f(0xe2)==typeof _0x2a6edf[_0x1daa0f(0xd7)]&&_0x2a6edf[_0x1daa0f(0xd7)][_0x1daa0f(0xcb)](_0x2a6edf,{'path':_0x2b66e9});}export class DynamicMenuPart extends connect(store)(LitElement){static get[a0_0x45c15e(0xe8)](){return{'page':String,'resourceId':String,'menus':Array,'orientation':String,'_activeTopLevel':Object,'_activeMenu':Object,'_path':String};}static get[a0_0x45c15e(0xf0)](){return[ScrollbarStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -27,18 +27,18 @@ var a0_0x3f0cf1=a0_0x220a;(function(_0x32c97d,_0x1e8ae9){var _0x1994b8=a0_0x220a
|
|
|
27
27
|
dynamic-menu-landscape {
|
|
28
28
|
flex: 1;
|
|
29
29
|
}
|
|
30
|
-
`];}['render'](){var
|
|
30
|
+
`];}['render'](){var _0x32a3f3=a0_0x45c15e;return html`
|
|
31
31
|
<slot name="head"></slot>
|
|
32
|
-
${
|
|
33
|
-
.menus=${this[
|
|
32
|
+
${_0x32a3f3(0xea)!==this['orientation']?html`<dynamic-menu-portrait
|
|
33
|
+
.menus=${this[_0x32a3f3(0xcf)]}
|
|
34
34
|
.activeTopLevel=${this['_activeTopLevel']}
|
|
35
|
-
.activeMenu=${this[
|
|
36
|
-
.path=${this[
|
|
35
|
+
.activeMenu=${this[_0x32a3f3(0xdc)]}
|
|
36
|
+
.path=${this[_0x32a3f3(0xdb)]}
|
|
37
37
|
></dynamic-menu-portrait>`:html`<dynamic-menu-landscape
|
|
38
|
-
.menus=${this[
|
|
39
|
-
.activeTopLevel=${this[
|
|
40
|
-
.activeMenu=${this[
|
|
41
|
-
.path=${this[
|
|
38
|
+
.menus=${this[_0x32a3f3(0xcf)]}
|
|
39
|
+
.activeTopLevel=${this[_0x32a3f3(0xf1)]}
|
|
40
|
+
.activeMenu=${this[_0x32a3f3(0xdc)]}
|
|
41
|
+
.path=${this[_0x32a3f3(0xdb)]}
|
|
42
42
|
></dynamic-menu-landscape>`}
|
|
43
43
|
<slot name="tail"></slot>
|
|
44
|
-
`;}['firstUpdated'](){var
|
|
44
|
+
`;}['firstUpdated'](){var _0xd02102=a0_0x45c15e;this[_0xd02102(0xd5)][_0xd02102(0xe3)](_0xd02102(0xef),_0x1b727e=>{var _0x28538e=_0xd02102;_0x1b727e[_0x28538e(0xd2)](),_0x1b727e['preventDefault'](),this['_activeTopLevel']=_0x1b727e[_0x28538e(0xd1)];});}[a0_0x45c15e(0xe9)](_0x6461a){var _0xbeda10=a0_0x45c15e;(_0x6461a[_0xbeda10(0xd9)]('menus')||_0x6461a['has'](_0xbeda10(0xd6))||_0x6461a['has']('resourceId'))&&this['_findActivePage'](),_0x6461a[_0xbeda10(0xd9)]('orientation')&&('portrait'==this['orientation']?this[_0xbeda10(0xce)](_0xbeda10(0xea)):this['setAttribute'](_0xbeda10(0xea),!0x0)),_0x6461a[_0xbeda10(0xd9)](_0xbeda10(0xd3))&&this[_0xbeda10(0xcd)](this[_0xbeda10(0xd3)]);}[a0_0x45c15e(0xd8)](_0x41fa7c){var _0x746dc9=a0_0x45c15e;this['page']=_0x41fa7c[_0x746dc9(0xde)][_0x746dc9(0xd6)],this[_0x746dc9(0xe1)]=_0x41fa7c['route'][_0x746dc9(0xe1)],this[_0x746dc9(0xcf)]=_0x41fa7c['metaUI'][_0x746dc9(0xcf)]||[],this['slotTemplate']=_0x41fa7c[_0x746dc9(0xda)][_0x746dc9(0xd3)];}['_findActivePage'](){var _0x3f676e=a0_0x45c15e,_0x2485fc,_0x46a89d=this['resourceId']?this['page']+'/'+this['resourceId']:this['page'],_0x4687f2=this[_0x3f676e(0xcf)]||[];this[_0x3f676e(0xf1)]=_0x4687f2[_0x3f676e(0xee)](_0x34b5df=>isActiveMenu(_0x34b5df,_0x46a89d)?(_0x2485fc=_0x34b5df,!0x0):_0x34b5df[_0x3f676e(0xcf)]?!!(_0x2485fc=_0x34b5df[_0x3f676e(0xcf)][_0x3f676e(0xee)](_0x2746dc=>isActiveMenu(_0x2746dc,_0x46a89d))):void 0x0),this[_0x3f676e(0xdb)]=_0x46a89d,this['_activeMenu']=_0x2485fc||this[_0x3f676e(0xf1)];}}function a0_0x4791(_0x525197,_0x1bc099){var _0x1b3df6=a0_0x1b3d();return a0_0x4791=function(_0x47913f,_0x2ff8f8){_0x47913f=_0x47913f-0xcb;var _0x585532=_0x1b3df6[_0x47913f];return _0x585532;},a0_0x4791(_0x525197,_0x1bc099);}customElements['define'](a0_0x45c15e(0xec),DynamicMenuPart);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3f0932,_0x2c34df){const _0x3e585c=a0_0x200c,_0x5cacb5=_0x3f0932();while(!![]){try{const _0x1f5b66=-parseInt(_0x3e585c(0xe9))/0x1*(-parseInt(_0x3e585c(0xf0))/0x2)+parseInt(_0x3e585c(0xef))/0x3+parseInt(_0x3e585c(0xf3))/0x4*(-parseInt(_0x3e585c(0xee))/0x5)+parseInt(_0x3e585c(0xec))/0x6*(parseInt(_0x3e585c(0xea))/0x7)+-parseInt(_0x3e585c(0xed))/0x8+parseInt(_0x3e585c(0xeb))/0x9*(-parseInt(_0x3e585c(0xe8))/0xa)+parseInt(_0x3e585c(0xf2))/0xb*(parseInt(_0x3e585c(0xf1))/0xc);if(_0x1f5b66===_0x2c34df)break;else _0x5cacb5['push'](_0x5cacb5['shift']());}catch(_0x942e6){_0x5cacb5['push'](_0x5cacb5['shift']());}}}(a0_0x4c4b,0xe9f96));import{css}from'lit';function a0_0x200c(_0x1f5796,_0x4cb7a1){const _0x4c4b92=a0_0x4c4b();return a0_0x200c=function(_0x200c9e,_0x2a101b){_0x200c9e=_0x200c9e-0xe8;let _0x5d5ab5=_0x4c4b92[_0x200c9e];return _0x5d5ab5;},a0_0x200c(_0x1f5796,_0x4cb7a1);}export const DynamicMenuPortraitStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -125,4 +125,4 @@ function a0_0x3143(){const _0x33980d=['243hQXWVx','209262AUtIwU','258ZYbAmK','66
|
|
|
125
125
|
font: bold 14px var(--theme-font);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
`;
|
|
128
|
+
`;function a0_0x4c4b(){const _0x46f6fb=['790sUxMLG','382386sXxZPv','18anYtUX','12UvYtOi','40283177DPuKsk','45704ZyXDQC','80110utMeQp','6029bJfXUR','644emqNCh','1035SebhHB','31602PgIEQj','5147704yBznOg'];a0_0x4c4b=function(){return _0x46f6fb;};return a0_0x4c4b();}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3f4a1e=a0_0xd35a;(function(_0x186550,_0x3721df){const _0x3c57c3=a0_0xd35a,_0x4a5655=_0x186550();while(!![]){try{const _0x2393b2=parseInt(_0x3c57c3(0x115))/0x1+-parseInt(_0x3c57c3(0x123))/0x2*(parseInt(_0x3c57c3(0x125))/0x3)+parseInt(_0x3c57c3(0x116))/0x4*(parseInt(_0x3c57c3(0x12c))/0x5)+-parseInt(_0x3c57c3(0x11a))/0x6*(parseInt(_0x3c57c3(0x113))/0x7)+parseInt(_0x3c57c3(0x126))/0x8*(parseInt(_0x3c57c3(0x121))/0x9)+parseInt(_0x3c57c3(0x132))/0xa*(-parseInt(_0x3c57c3(0x12e))/0xb)+-parseInt(_0x3c57c3(0x11d))/0xc;if(_0x2393b2===_0x3721df)break;else _0x4a5655['push'](_0x4a5655['shift']());}catch(_0x4d8d34){_0x4a5655['push'](_0x4a5655['shift']());}}}(a0_0x42ca,0x5a47e));function a0_0xd35a(_0x149d8e,_0x2756e5){const _0x42caf6=a0_0x42ca();return a0_0xd35a=function(_0xd35acf,_0x38b50f){_0xd35acf=_0xd35acf-0x112;let _0x1b95ba=_0x42caf6[_0xd35acf];return _0x1b95ba;},a0_0xd35a(_0x149d8e,_0x2756e5);}import'@material/mwc-icon';function a0_0x42ca(){const _0x2de1e0=['stopPropagation','2166muShhf','renderRoot','addEventListener','2317320HgkjSh','render','renderMenus','styles','809415NFQawe','target','58cBKRWb','function','63678yJegVT','40tcoGSH','call','click','settled','group','#force','84325topJHC','href','3047TPQhfh','menu','map','[menu]','2620nKYiUE','closest','transitionend','path','active-toplevel','2968OnSEWg','removeAttribute','414737zaMByf','128prVwIP','setAttribute','preventDefault'];a0_0x42ca=function(){return _0x2de1e0;};return a0_0x42ca();}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_0x3f4a1e(0x120)](){return[ScrollbarStyles,DynamicMenuPortraitStyles];}static get['properties'](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x3f4a1e(0x11f)](_0x23a6ca,_0x318962,_0x264f22){const _0x166e6e=a0_0x3f4a1e;return html`
|
|
2
2
|
<ul>
|
|
3
|
-
${
|
|
4
|
-
<li ?active=${
|
|
5
|
-
<a href=${
|
|
6
|
-
${
|
|
7
|
-
<mwc-icon>${
|
|
8
|
-
${
|
|
3
|
+
${_0x23a6ca[_0x166e6e(0x130)](_0x27cf09=>{const _0x28dcd7=_0x166e6e;var {type:_0x154b03,active:_0xc497f7,path:_0x5b0a27,name:_0x379d4b,badge:_0x5081c1,icon:_0xda7bdc,menus:_0x37fd04}=_0x27cf09;return _0xc497f7=!(!_0xc497f7||_0x28dcd7(0x124)!=typeof _0xc497f7)&&_0xc497f7['call'](_0x27cf09,{'path':this['path']}),_0x5081c1=_0x28dcd7(0x124)==typeof _0x5081c1?_0x5081c1[_0x28dcd7(0x127)](_0x27cf09):_0x5081c1??!0x1,_0x28dcd7(0x12a)==_0x154b03?html`<li group-label>${_0x379d4b}</li>`:html`
|
|
4
|
+
<li ?active=${_0x318962?_0x27cf09===_0x318962:_0xc497f7} .menu=${_0x27cf09} menu>
|
|
5
|
+
<a href=${_0x5b0a27||'#'}>
|
|
6
|
+
${_0x37fd04?.['length']>0x0?html` <mwc-icon submenu-button></mwc-icon> `:html``}
|
|
7
|
+
<mwc-icon>${_0xda7bdc}</mwc-icon>
|
|
8
|
+
${_0x379d4b} ${!0x1!==_0x5081c1?html`<div badge>${_0x5081c1}</div>`:html``}
|
|
9
9
|
</a>
|
|
10
|
-
${
|
|
10
|
+
${_0x37fd04&&this[_0x28dcd7(0x11f)](_0x37fd04,_0x264f22)}
|
|
11
11
|
</li>
|
|
12
12
|
`;})}
|
|
13
13
|
</ul>
|
|
14
|
-
`;}[
|
|
14
|
+
`;}[a0_0x3f4a1e(0x11e)](){const _0x1c5acd=a0_0x3f4a1e,{menus:_0x15169c,activeTopLevel:_0x13c628,activeMenu:_0x5d53e2}=this;return this[_0x1c5acd(0x11f)](_0x15169c,_0x13c628,_0x5d53e2);}['firstUpdated'](){const _0x1cbc43=a0_0x3f4a1e;this[_0x1cbc43(0x11b)][_0x1cbc43(0x11c)](_0x1cbc43(0x128),_0x1caced=>{const _0xb054e5=_0x1cbc43,_0x5833ee=_0x1caced[_0xb054e5(0x122)][_0xb054e5(0x133)](_0xb054e5(0x131));if(_0x5833ee?.[_0xb054e5(0x12f)]){let _0x5503be=_0x5833ee[_0xb054e5(0x12f)];_0x5503be[_0xb054e5(0x135)]||(_0x1caced[_0xb054e5(0x119)](),_0x1caced[_0xb054e5(0x118)]()),this['dispatchEvent'](new CustomEvent(_0xb054e5(0x112),{'bubbles':!0x0,'detail':this['activeTopLevel']===_0x5503be?void 0x0:_0x5503be}));}let _0x301e3f=_0x1caced[_0xb054e5(0x122)][_0xb054e5(0x12d)];_0x301e3f&&location[_0xb054e5(0x12d)]===_0x301e3f&&navigate(_0x301e3f+_0xb054e5(0x12b),!0x0);}),this['renderRoot']['addEventListener']('transitionstart',_0x115476=>{const _0x12ab8d=_0x1cbc43;_0x115476[_0x12ab8d(0x122)][_0x12ab8d(0x114)](_0x12ab8d(0x129));}),this['renderRoot'][_0x1cbc43(0x11c)](_0x1cbc43(0x134),_0x2dcb56=>{const _0x158e11=_0x1cbc43;_0x2dcb56[_0x158e11(0x122)][_0x158e11(0x117)](_0x158e11(0x129),'');});}}customElements['define']('dynamic-menu-portrait',DynamicMenuPortrait);
|