@things-factory/meta-ui 6.1.81 → 6.1.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/actions/main.js +4 -4
- package/client/bootstrap.js +26 -0
- 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-code-input.js +6 -6
- package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
- package/client/component/grist/editor/grist-editor-meta-object-selector.js +7 -7
- package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
- package/client/component/popup/code-input-editor-popup.js +10 -10
- package/client/component/popup/file-upload-popup.js +11 -11
- package/client/component/popup/meta-object-selector-popup.js +11 -11
- package/client/index.js +0 -2
- 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-define-page.js +127 -0
- package/client/pages/activity/meta-activity-list-page.js +7 -7
- 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/button-role/button-role-detail.js +1 -0
- package/client/pages/button-role/button-role-page.js +1 -0
- 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 +16 -16
- package/client/pages/menu/export-menu-popup.js +6 -6
- 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/route.js +10 -0
- package/client/utils/grist-default-value.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 +11 -11
- package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +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/button-role/button-role-mutation.js +1 -0
- package/server/service/button-role/button-role-query.js +1 -0
- package/server/service/button-role/button-role-type.js +1 -0
- package/server/service/button-role/button-role.js +1 -0
- package/server/service/button-role/index.js +9 -0
- package/server/service/dynamic-menu/dynamic-menu-query.js +1 -1
- package/server/service/dynamic-menu/dynamic-menu-type.js +1 -1
- package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/index.js +8 -0
- package/server/service/menu-button-auth/index.js +9 -0
- package/server/service/menu-button-auth/menu-button-auth-mutation.js +1 -0
- package/server/service/menu-button-auth/menu-button-auth-query.js +1 -0
- package/server/service/menu-button-auth/menu-button-auth-type.js +1 -0
- package/server/service/menu-button-auth/menu-button-auth.js +1 -0
- 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 +1 -0
- package/translations/ko.json +2 -1
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x441845=a0_0x49df;(function(_0x58292c,_0x262704){const _0x385267=a0_0x49df,_0x177191=_0x58292c();while(!![]){try{const _0x3b1549=-parseInt(_0x385267(0x203))/0x1+parseInt(_0x385267(0x1f7))/0x2*(parseInt(_0x385267(0x1d4))/0x3)+-parseInt(_0x385267(0x1e7))/0x4*(parseInt(_0x385267(0x222))/0x5)+-parseInt(_0x385267(0x1e2))/0x6*(-parseInt(_0x385267(0x211))/0x7)+parseInt(_0x385267(0x1b3))/0x8+-parseInt(_0x385267(0x22f))/0x9+parseInt(_0x385267(0x1d7))/0xa;if(_0x3b1549===_0x262704)break;else _0x177191['push'](_0x177191['shift']());}catch(_0x47a03c){_0x177191['push'](_0x177191['shift']());}}}(a0_0x35cf,0xc327b));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';function a0_0x35cf(){const _0x46979f=['isNotEmpty','success\x20to\x20save','checkClientError','object','30oeufYH','HOME','text.nothing_changed','9737320NVgVTy','hiddenFlag','info','badge','key','text.there_is_nothing_to_delete','routingType','showGraphqlException','type','showAlertPopup','category','684MTZSNN','noteq','menuType','push','parent','2564vpopWr','MENU','map','active','path','gridPersonalizeTemplates','text.nothing_selected','cuFlag','updater','Graphql\x20Error','getWorkCodeByName','resourceUrl','query','numberOfToDos','networkError','records','30006ErKQZi','undefined','updatedAt','title','gutter','items','success\x20to\x20process','forEach','showToast','unshift','createdAt','_config','354995FrfARx','join','HIDDEN-PAGE','runScenario','includes','group','id,template','\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','approval-pending-list','isArray','deleteListByGristSelected','record','deleteListByIds','errors','75572iSioXX','routing','draft-list','searchMenuGridPersnalTemplate','value','length','tMenu','__seq__','log','reduce','cancel','tText','filter','patchesForUpdateMultiple','getSelectedIdList','question','updateMultipleData','1985jGwyyj','arrangeMenuRoutes','parse','template','confirm','text.are_you_sure','GROUP','imex','test','searchMyDynamicMenus','total','name','__dirty__','12722751cKYOkp','result','config','workCodeByName','extensions','dispatch','buildArgs','menus','updateMultiple','data','split','\x0a\x20\x20\x20\x20','exportableData','dirtyRecords','iconPath','rank','numberOfDrafts','SCREEN','text.NOTHING_CHANGED','mandatory','searchByPagination','3743680cmOmah','details','menu.id','\x0a\x20\x20\x20\x20\x20\x20','hidden','getCodeByScenario','__selected__','find','findIndex','todo-list','showGraphqlErrorResponse','display','success\x20to\x20delete','children','columns','codeItems','code-input','header','text.check-mandatory','getCodeByEntity','splice','fetch','button.','message','callScenario','error','selected','xlsx','sort'];a0_0x35cf=function(){return _0x46979f;};return a0_0x35cf();}import{UiUtil}from'./ui-util';import a0_0xe4885e from'graphql-tag';import{ValueUtil}from'./value-util';import{asyncReplace}from'lit/directives/async-replace.js';function a0_0x49df(_0x3f8250,_0x472323){const _0x35cfeb=a0_0x35cf();return a0_0x49df=function(_0x49dfdf,_0x268eaf){_0x49dfdf=_0x49dfdf-0x1a2;let _0xa5f090=_0x35cfeb[_0x49dfdf];return _0xa5f090;},a0_0x49df(_0x3f8250,_0x472323);}import a0_0x1fff02 from'i18next';import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';export class ServiceUtil{static async[a0_0x441845(0x1c2)](_0x35b6eb){const _0x2a083e=a0_0x441845;if(Array[_0x2a083e(0x20c)](_0x35b6eb))return _0x35b6eb[_0x2a083e(0x1e9)](_0x5ea581=>'object'==typeof _0x5ea581?{'name':_0x5ea581['value'],'description':_0x5ea581[_0x2a083e(0x1be)]}:{'name':_0x5ea581,'description':_0x5ea581});let _0x1bcff5=await ServiceUtil[_0x2a083e(0x1f1)](_0x35b6eb);return _0x1bcff5&&_0x1bcff5[_0x2a083e(0x216)]>0x0?_0x1bcff5:await getCodeByName(_0x35b6eb);}static async[a0_0x441845(0x1f1)](_0x13ec6e){const _0x2da3d6=a0_0x441845,_0x5154c8=await client[_0x2da3d6(0x1f3)]({'query':a0_0xe4885e`
|
|
2
2
|
query workCodeByName($name: String!) {
|
|
3
3
|
workCodeByName(name: $name) {
|
|
4
4
|
details {
|
|
@@ -8,32 +8,32 @@ const a0_0x4ab830=a0_0x5f49;(function(_0x340637,_0x2380a2){const _0x3ea095=a0_0x
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
`,'variables':{'name':
|
|
11
|
+
`,'variables':{'name':_0x13ec6e},'context':gqlContext()});return!_0x5154c8[_0x2da3d6(0x210)]&&_0x5154c8[_0x2da3d6(0x1a7)][_0x2da3d6(0x232)]&&_0x5154c8[_0x2da3d6(0x1a7)][_0x2da3d6(0x232)][_0x2da3d6(0x1b4)]?_0x5154c8['data'][_0x2da3d6(0x232)][_0x2da3d6(0x1b4)][_0x2da3d6(0x1cf)]((_0x5cdfbe,_0x364e7c)=>_0x5cdfbe[_0x2da3d6(0x1ad)]-_0x364e7c[_0x2da3d6(0x1ad)]):[];}static async['getCodeSelectorData'](_0x6fb18e){const _0x41f3da=a0_0x441845;let _0xb28f10=(await ServiceUtil['codeItems'](_0x6fb18e))['map'](_0x11682c=>({'value':_0x11682c[_0x41f3da(0x22d)],'display':_0x11682c['description']}));return _0xb28f10[_0x41f3da(0x200)]({'value':'','display':''}),_0xb28f10;}static async[a0_0x441845(0x1b8)](_0x5a78e2,_0x165c1d){const _0x4ad929=a0_0x441845;let _0xab9c47=await ServiceUtil[_0x4ad929(0x1cb)](null,_0x5a78e2,_0x165c1d,!0x1);if(_0xab9c47&&_0xab9c47[_0x4ad929(0x1a7)]&&_0xab9c47[_0x4ad929(0x1a7)][_0x4ad929(0x206)]&&_0xab9c47['data']['runScenario'][_0x4ad929(0x230)]&&_0xab9c47[_0x4ad929(0x1a7)]['runScenario']['result'][_0x4ad929(0x230)]){let _0x240ffe=_0xab9c47['data'][_0x4ad929(0x206)][_0x4ad929(0x230)][_0x4ad929(0x230)];return _0x240ffe[_0x4ad929(0x200)]({'value':'','display':''}),_0x240ffe[_0x4ad929(0x1e9)](_0x4c4098=>({'value':_0x4c4098[_0x4ad929(0x22d)],'display':_0x4c4098['description']}));}return[];}static async[a0_0x441845(0x1c6)]({queryName:_0x5d11c6,codeField:_0x20555c='name',dispField:_0x93386,filters:_0x1f974a=[],sorters:_0x3b25c2=[]}){const _0x1e2be0=a0_0x441845;let _0x583889=_0x93386[_0x1e2be0(0x1a8)](','),_0x4752fb=_0x1e2be0(0x1b6)+_0x20555c+_0x1e2be0(0x1b6)+(_0x93386?_0x583889['join']('\x0a'):'')+_0x1e2be0(0x1a9),_0x1d4811=await ServiceUtil[_0x1e2be0(0x1b2)](_0x5d11c6,_0x1f974a,_0x3b25c2,0x0,0x0,_0x4752fb),_0x20edef=[{'value':'','display':''}];return _0x1d4811[_0x1e2be0(0x1f6)][_0x1e2be0(0x1fe)](_0x15a017=>{const _0x7437a9=_0x1e2be0;let _0x122799=_0x15a017[_0x20555c];if(_0x93386){let _0xca874c=_0x93386[_0x7437a9(0x1a8)](',');_0x122799=_0x15a017[_0xca874c[0x0]],_0xca874c[_0x7437a9(0x216)]>0x1&&(_0x122799+='('+_0xca874c[_0x7437a9(0x1c7)](0x1)[_0x7437a9(0x1e9)](_0x431d3f=>_0x15a017[_0x431d3f])[_0x7437a9(0x204)](',')+')');}_0x20edef[_0x7437a9(0x1e5)]({'value':_0x15a017[_0x20555c],'display':_0x122799});}),_0x20edef;}static async['myDynamicMenus'](){const _0x324796=a0_0x441845;let _0x4f3d51=await ServiceUtil[_0x324796(0x22b)]();return null!=_0x4f3d51?ServiceUtil[_0x324796(0x223)](_0x4f3d51):null;}static async[a0_0x441845(0x214)](_0x2c1d41){const _0x2adbe7=a0_0x441845;let _0x53bdf3=[{'name':_0x2adbe7(0x1b5),'operator':'eq','value':_0x2c1d41}],_0x1a5ef5=await ServiceUtil[_0x2adbe7(0x1b2)](_0x2adbe7(0x1ec),_0x53bdf3,[],0x0,0x0,_0x2adbe7(0x209));return 0x0==_0x1a5ef5[_0x2adbe7(0x22c)]?{}:{'id':_0x1a5ef5['records'][0x0]['id'],'template':JSON[_0x2adbe7(0x224)](_0x1a5ef5[_0x2adbe7(0x1f6)][0x0][_0x2adbe7(0x225)])};}static[a0_0x441845(0x223)](_0x5bc0e2){const _0x462f42=a0_0x441845;let _0x3167bb=[];_0x5bc0e2['forEach'](_0x344c40=>{const _0x21f5f2=a0_0x49df;_0x3167bb['push'](_0x344c40),_0x344c40['children']&&(_0x344c40['children'][_0x21f5f2(0x1cf)](function(_0x45fca4,_0x383a64){const _0xb888e0=_0x21f5f2;return _0x45fca4[_0xb888e0(0x1ad)]-_0x383a64[_0xb888e0(0x1ad)];}),_0x344c40[_0x21f5f2(0x1c0)][_0x21f5f2(0x1fe)](_0x442b26=>{const _0x34afd3=_0x21f5f2;0x1!=_0x442b26['hiddenFlag']&&(_0x442b26[_0x34afd3(0x1e6)]=_0x344c40,_0x3167bb[_0x34afd3(0x1e5)](_0x442b26));}));});let _0x3fc644=_0x3167bb[_0x462f42(0x1e9)](_0x48cbe2=>{const _0x4f01e7=_0x462f42;if('GROUP'==_0x48cbe2[_0x4f01e7(0x1e4)]||_0x4f01e7(0x1e8)==_0x48cbe2[_0x4f01e7(0x1e4)]){let _0x13b603={'id':_0x48cbe2['id'],'parent':!0x0,'name':TermsUtil[_0x4f01e7(0x217)](_0x48cbe2[_0x4f01e7(0x22d)]),'icon':_0x48cbe2[_0x4f01e7(0x1ac)],'type':_0x4f01e7(0x228)==_0x48cbe2[_0x4f01e7(0x1e4)]?'group':'','menus':[]};return _0x48cbe2[_0x4f01e7(0x212)]&&(_0x13b603[_0x4f01e7(0x1eb)]=_0x48cbe2[_0x4f01e7(0x212)]),_0x13b603;}return{'id':'0'};})[_0x462f42(0x21d)](_0x133bc5=>'0'!=_0x133bc5['id']),_0x10ee01=_0x3167bb[_0x462f42(0x1e9)](_0x1d797f=>{const _0x978df7=_0x462f42;if(_0x978df7(0x1af)==_0x1d797f[_0x978df7(0x1e4)]||_0x978df7(0x205)==_0x1d797f[_0x978df7(0x1e4)]){let _0x1de635=_0x3fc644[_0x978df7(0x1ba)](_0x405028=>_0x405028['id']==_0x1d797f[_0x978df7(0x1e6)]['id']);if(_0x1de635){let _0x2276f5=TermsUtil[_0x978df7(0x217)](_0x1d797f[_0x978df7(0x22d)]);return _0x978df7(0x1af)==_0x1d797f[_0x978df7(0x1e4)]&&_0x1de635[_0x978df7(0x1a5)][_0x978df7(0x1e5)]({'id':_0x1d797f['id'],'name':_0x2276f5,'path':_0x1d797f[_0x978df7(0x212)],'icon':_0x1d797f[_0x978df7(0x1ac)]}),{'id':_0x1d797f['id'],'parent':!0x1,'parent_id':_0x1de635['id'],'title':_0x2276f5,'tagname':_0x1d797f[_0x978df7(0x1e1)],'page':_0x1d797f['routing'],'template':_0x1d797f[_0x978df7(0x1f2)],'routing_type':_0x1d797f[_0x978df7(0x1dd)]};}return{'id':'0'};}return _0x978df7(0x1d5)==_0x1d797f[_0x978df7(0x1e4)]?{'id':_0x1d797f['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil[_0x978df7(0x217)](_0x1d797f['name']),'tagname':_0x1d797f[_0x978df7(0x1e1)],'page':_0x1d797f[_0x978df7(0x212)],'template':_0x1d797f[_0x978df7(0x1f2)],'routing_type':_0x1d797f[_0x978df7(0x1dd)]}:{'id':'0'};})[_0x462f42(0x21d)](_0x29a429=>null!=_0x29a429&&'0'!=_0x29a429['id']);_0x3fc644[_0x462f42(0x21d)](_0x3b8001=>_0x462f42(0x208)==_0x3b8001[_0x462f42(0x1df)]&&_0x3b8001[_0x462f42(0x1a5)]&&_0x3b8001[_0x462f42(0x1a5)]['length']>0x0)[_0x462f42(0x1fe)](_0x561a74=>{const _0x11ae6c=_0x462f42;let _0x4887fc=_0x3fc644[_0x11ae6c(0x1bb)](_0x3a5489=>_0x3a5489['id']==_0x561a74['id'])+0x1;_0x3fc644[_0x11ae6c(0x1c7)](_0x4887fc,0x0,..._0x561a74[_0x11ae6c(0x1a5)]);});let _0x389e68=0x0;return _0x3fc644['forEach'](_0x26ba2d=>{const _0x16e8bd=_0x462f42;_0x16e8bd(0x1bc)==_0x26ba2d[_0x16e8bd(0x1eb)]?(_0x389e68++,_0x26ba2d[_0x16e8bd(0x1da)]=()=>asyncReplace(generateActivitySummary(_0x16e8bd(0x1f4))),_0x26ba2d[_0x16e8bd(0x1ea)]=({path:_0x1e2ae8})=>/^activity\//[_0x16e8bd(0x22a)](_0x1e2ae8)):_0x16e8bd(0x20b)==_0x26ba2d['path']?(_0x389e68++,_0x26ba2d[_0x16e8bd(0x1da)]=()=>asyncReplace(generateActivitySummary('numberOfApprovalPendings')),_0x26ba2d['active']=({path:_0x21eaa5})=>/^activity\//['test'](_0x21eaa5)):_0x16e8bd(0x213)==_0x26ba2d[_0x16e8bd(0x1eb)]&&(_0x389e68++,_0x26ba2d[_0x16e8bd(0x1da)]=()=>asyncReplace(generateActivitySummary(_0x16e8bd(0x1ae))));}),_0x389e68>0x0&&startSubscribeActivitySummary(),{'menus':_0x3fc644,'routes':_0x10ee01};}static async['searchMyDynamicMenus'](){const _0x3a7f08=a0_0x441845;let _0xb446b8=await ServiceUtil[_0x3a7f08(0x1b2)](_0x3a7f08(0x1a5),[{'name':_0x3a7f08(0x1d8),'operator':_0x3a7f08(0x1e3),'value':!0x0},{'name':_0x3a7f08(0x1e4),'operator':'in','value':[_0x3a7f08(0x1d5),'MENU','GROUP']}],[{'name':_0x3a7f08(0x1ad)}],0x0,0x0,_0x3a7f08(0x20a));return _0xb446b8?_0xb446b8[_0x3a7f08(0x1f6)]:[];}static async[a0_0x441845(0x1bd)](_0x5aeb6f){const _0x594a61=a0_0x441845;if(_0x5aeb6f[_0x594a61(0x210)]&&_0x5aeb6f[_0x594a61(0x210)][_0x594a61(0x216)]>0x0){let _0x1a0154=_0x5aeb6f['errors'][0x0],_0x4aff18=_0x1a0154[_0x594a61(0x1ca)],_0x47bffc=_0x1a0154['message'];_0x1a0154[_0x594a61(0x1a2)]&&(_0x47bffc=_0x1a0154['extensions']['code']),await UiUtil[_0x594a61(0x1e0)](_0x47bffc,_0x4aff18,'error',_0x594a61(0x226));}}static async['showGraphqlException'](_0x57dd19){const _0x5adbbf=a0_0x441845;_0x57dd19&&(_0x57dd19[_0x5adbbf(0x1f5)]&&_0x57dd19['networkError']['result']?await ServiceUtil['showGraphqlErrorResponse'](_0x57dd19[_0x5adbbf(0x1f5)][_0x5adbbf(0x230)]):await UiUtil['showAlertPopup'](_0x5adbbf(0x1f0),_0x57dd19['message'],_0x5adbbf(0x1cc),'confirm'));}static async[a0_0x441845(0x1aa)](_0x515a56,_0x34361c,_0xb3fe0d){const _0x582b16=a0_0x441845;var _0x12d8ba=_0xb3fe0d[_0x582b16(0x202)][_0x582b16(0x1c1)][_0x582b16(0x21d)](_0x565e68=>_0x582b16(0x1fb)!==_0x565e68[_0x582b16(0x1df)]&&void 0x0!==_0x565e68[_0x582b16(0x20e)]&&void 0x0!==_0x565e68[_0x582b16(0x229)]&&!0x0!==_0x565e68[_0x582b16(0x1b7)])['map'](_0x756085=>_0x756085[_0x582b16(0x229)]),_0x6fb2a6=_0xb3fe0d['data']['records']['map'](_0x1cf1fa=>({..._0xb3fe0d[_0x582b16(0x202)][_0x582b16(0x1c1)]['filter'](_0x5ac758=>_0x582b16(0x1fb)!==_0x5ac758['type']&&void 0x0!==_0x5ac758[_0x582b16(0x20e)]&&void 0x0!==_0x5ac758[_0x582b16(0x229)]&&!0x0!==_0x5ac758['hidden'])['reduce']((_0x5b939e,_0x3b42a2)=>(_0x5b939e[_0x3b42a2[_0x582b16(0x229)][_0x582b16(0x1db)]]=_0x3b42a2[_0x582b16(0x229)][_0x582b16(0x1db)]['split']('.')[_0x582b16(0x21a)]((_0x526dda,_0x58b582)=>_0x526dda&&_0x582b16(0x1f8)!==_0x526dda[_0x58b582]?_0x526dda[_0x58b582]:void 0x0,_0x1cf1fa),_0x5b939e),{})}));if(!_0x515a56)return{'header':_0x12d8ba,'data':_0x6fb2a6};store[_0x582b16(0x1a3)]({'type':EXPORT,'exportable':{'extension':_0x582b16(0x1ce),'name':_0x34361c,'data':{'header':_0x12d8ba,'data':_0x6fb2a6}}});}static async[a0_0x441845(0x1b2)](_0x1fb77b,_0x1c5d8b,_0x377ed5,_0x14a1fc,_0x58f662,_0x1fe68a){const _0x1ab506=a0_0x441845;try{const _0x10b83f=await client[_0x1ab506(0x1f3)]({'query':a0_0xe4885e`
|
|
12
12
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
13
|
-
${
|
|
13
|
+
${_0x1fb77b}(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
14
14
|
items {
|
|
15
|
-
${
|
|
15
|
+
${_0x1fe68a}
|
|
16
16
|
}
|
|
17
17
|
total
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,'variables':{'filters':
|
|
20
|
+
`,'variables':{'filters':_0x1c5d8b,'sortings':_0x377ed5,'pagination':{'page':_0x14a1fc,'limit':_0x58f662}}});if(!_0x10b83f[_0x1ab506(0x210)])return{'records':_0x10b83f[_0x1ab506(0x1a7)][_0x1fb77b][_0x1ab506(0x1fc)],'total':_0x10b83f[_0x1ab506(0x1a7)][_0x1fb77b][_0x1ab506(0x22c)]};ServiceUtil[_0x1ab506(0x1bd)](_0x10b83f);}catch(_0x4d66a1){ServiceUtil['showGraphqlException'](_0x4d66a1);}return null;}static async['findOne'](_0x15cdda,_0x4c2161,_0x77f563){const _0x5c9bef=a0_0x441845;try{let _0x383d08=await client['query']({'query':a0_0xe4885e`
|
|
21
21
|
query ($id: String!) {
|
|
22
|
-
${
|
|
23
|
-
${
|
|
22
|
+
${_0x15cdda}(id: $id) {
|
|
23
|
+
${_0x77f563}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,'variables':{'id':
|
|
26
|
+
`,'variables':{'id':_0x4c2161}});if(!_0x383d08[_0x5c9bef(0x210)])return _0x383d08[_0x5c9bef(0x1a7)][_0x15cdda]||{};ServiceUtil[_0x5c9bef(0x1bd)](_0x383d08);}catch(_0x2863a3){ServiceUtil[_0x5c9bef(0x1de)](_0x2863a3);}return null;}static[a0_0x441845(0x21f)](_0x524321,_0x43fcbb){const _0x16f17d=a0_0x441845,_0x6489da=_0x524321[_0x16f17d(0x1cd)][_0x16f17d(0x1e9)](_0x58534c=>_0x58534c['id']);return ValueUtil['isEmpty'](_0x6489da)&&0x1==_0x43fcbb&&UiUtil[_0x16f17d(0x1e0)](_0x16f17d(0x1ed),_0x16f17d(0x1dc),_0x16f17d(0x1d9),'confirm'),_0x6489da;}static async[a0_0x441845(0x20d)](_0x4ad83f,_0x37a122){const _0x2b3dad=a0_0x441845;let _0x3c7957=ServiceUtil[_0x2b3dad(0x21f)](_0x4ad83f,!0x0);ValueUtil[_0x2b3dad(0x1d0)](_0x3c7957)&&(await ServiceUtil['deleteListByIds'](_0x3c7957,_0x37a122)&&_0x4ad83f[_0x2b3dad(0x1c8)]());}static async[a0_0x441845(0x20f)](_0x1f9354,_0x539719){const _0x5cc143=a0_0x441845;if(!(await UiUtil[_0x5cc143(0x1e0)]('button.delete',_0x5cc143(0x227),'question','delete',_0x5cc143(0x21b)))[_0x5cc143(0x215)])return!0x1;try{const _0x19df86=await client[_0x5cc143(0x1f3)]({'query':a0_0xe4885e`
|
|
27
27
|
mutation {
|
|
28
|
-
${
|
|
28
|
+
${_0x539719}(${gqlBuilder[_0x5cc143(0x1a4)]({'ids':_0x1f9354})})
|
|
29
29
|
}
|
|
30
|
-
`});if(!
|
|
30
|
+
`});if(!_0x19df86[_0x5cc143(0x210)])return UiUtil[_0x5cc143(0x1ff)](_0x5cc143(0x1d9),TermsUtil[_0x5cc143(0x21c)](_0x5cc143(0x1bf))),!0x0;ServiceUtil[_0x5cc143(0x1bd)](_0x19df86);}catch(_0x4e4bcc){ServiceUtil[_0x5cc143(0x1de)](_0x4e4bcc);}return!0x1;}static async[a0_0x441845(0x221)](_0x1fac75,_0x1a1c60){const _0x110231=a0_0x441845;let _0xb83f34=ServiceUtil['patchesForUpdateMultiple'](_0x1fac75);if(ValueUtil[_0x110231(0x1d0)](_0xb83f34)){let _0x279d7c=await ServiceUtil[_0x110231(0x1a6)](_0x1a1c60,_0xb83f34);if(_0x279d7c)return _0x1fac75[_0x110231(0x1c8)](),_0x279d7c;}return!0x1;}static async['updateMultiple'](_0xf4f528,_0x2b9395){const _0x2449ac=a0_0x441845;try{const _0x44d418=await client[_0x2449ac(0x1f3)]({'query':a0_0xe4885e`
|
|
31
31
|
mutation {
|
|
32
|
-
${
|
|
32
|
+
${_0xf4f528}(${gqlBuilder[_0x2449ac(0x1a4)]({'patches':_0x2b9395})}) {
|
|
33
33
|
id
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
`,'context':{'hasUpload':!0x0}});if(!
|
|
36
|
+
`,'context':{'hasUpload':!0x0}});if(!_0x44d418['errors'])return UiUtil[_0x2449ac(0x1ff)](_0x2449ac(0x1d9),TermsUtil['tText'](_0x2449ac(0x1d1))),!0x0;ServiceUtil['showGraphqlErrorResponse'](_0x44d418);}catch(_0x51062b){ServiceUtil[_0x2449ac(0x1de)](_0x51062b);}return!0x1;}static[a0_0x441845(0x21e)](_0x5f49aa,_0xdb4d84=!0x1){const _0x100309=a0_0x441845;let _0xce06f0=_0x5f49aa[_0x100309(0x1ab)],_0x1b90e1={};((_0x5f49aa['config']||{})[_0x100309(0x1c1)]||[])[_0x100309(0x21d)](_0x2f1423=>!0x0===(_0x2f1423[_0x100309(0x20e)]||{})[_0x100309(0x1b1)])[_0x100309(0x1fe)](_0x1d3011=>{const _0x4c84e1=_0x100309;_0x1b90e1[_0x1d3011[_0x4c84e1(0x22d)]]=_0x1d3011[_0x4c84e1(0x1c4)];});let _0x19046c=((_0x5f49aa[_0x100309(0x231)]||{})['columns']||[])[_0x100309(0x21d)](_0x2d9fb2=>_0x100309(0x1c3)===_0x2d9fb2[_0x100309(0x1df)])['map'](_0x86ec19=>_0x86ec19[_0x100309(0x22d)]);if(!_0xce06f0||0x0==_0xce06f0[_0x100309(0x216)])return void UiUtil[_0x100309(0x1e0)](_0x100309(0x1d6),_0x100309(0x1b0),_0x100309(0x1d9),_0x100309(0x226));let _0x3a7b75=[];for(let _0x22cc47 in _0xce06f0){let _0x133ea4=_0xce06f0[_0x22cc47],_0x2150a1=_0x133ea4['id']?{'id':_0x133ea4['id']}:{};for(let _0x274282 in _0x1b90e1)if(void 0x0===_0x133ea4[_0x274282]||''==_0x133ea4[_0x274282])return console[_0x100309(0x219)](_0x133ea4),void UiUtil[_0x100309(0x1e0)](_0x100309(0x1c5),TermsUtil[_0x100309(0x21c)]('check-mandatory-field',{'x':_0x1b90e1[_0x274282]}),_0x100309(0x1d9),_0x100309(0x226));for(let _0x6339b7 in _0x133ea4)['creator',_0x100309(0x1ef),_0x100309(0x201),_0x100309(0x1f9),_0x100309(0x22e),'__dirtyfields__','__origin__',_0x100309(0x218),_0x100309(0x1b9)]['includes'](_0x6339b7)||(0x0==_0x19046c[_0x100309(0x207)](_0x6339b7)&&_0x133ea4[_0x6339b7]&&_0x100309(0x1d3)==typeof _0x133ea4[_0x6339b7]&&0x0==_0xdb4d84?_0x2150a1[_0x6339b7]={'id':_0x133ea4[_0x6339b7]['id']}:_0x2150a1[_0x6339b7]=_0x133ea4[_0x6339b7]);_0x2150a1[_0x100309(0x1ee)]=_0x133ea4[_0x100309(0x22e)],_0x3a7b75['push'](_0x2150a1);}return _0x3a7b75;}static async[a0_0x441845(0x1cb)](_0x369030,_0x32f248,_0x1c3812,_0x453021=!0x0){const _0xac3029=a0_0x441845;let _0x2c4737=!0x0;_0x369030&&!0x0===_0x453021&&(_0x2c4737=(await UiUtil[_0xac3029(0x1e0)](_0xac3029(0x1c9)+_0x369030,_0xac3029(0x227),_0xac3029(0x220),_0xac3029(0x226),_0xac3029(0x21b)))[_0xac3029(0x215)]);if(_0x2c4737)try{const _0x4fe951=await client[_0xac3029(0x1f3)]({'query':a0_0xe4885e`
|
|
37
37
|
mutation ($scenarioName: String!, $variables: Object) {
|
|
38
38
|
runScenario(scenarioName: $scenarioName, variables: $variables) {
|
|
39
39
|
state
|
|
@@ -42,4 +42,4 @@ const a0_0x4ab830=a0_0x5f49;(function(_0x340637,_0x2380a2){const _0x3ea095=a0_0x
|
|
|
42
42
|
__typename
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
`,'variables':{'scenarioName':
|
|
45
|
+
`,'variables':{'scenarioName':_0x32f248,'variables':_0x1c3812}});if(_0x4fe951['errors'])ServiceUtil[_0xac3029(0x1bd)](_0x4fe951);else{if(this[_0xac3029(0x1d2)](_0x4fe951))return!0x0===_0x453021&&UiUtil['showToast'](_0xac3029(0x1d9),TermsUtil[_0xac3029(0x21c)](_0xac3029(0x1fd))),_0x4fe951;}}catch(_0x47e918){ServiceUtil[_0xac3029(0x1de)](_0x47e918);}return!0x1;}static[a0_0x441845(0x1d2)](_0xeedcf0){const _0x55b394=a0_0x441845;if(_0xeedcf0&&_0xeedcf0[_0x55b394(0x1a7)]&&_0xeedcf0[_0x55b394(0x1a7)][_0x55b394(0x206)]&&_0xeedcf0[_0x55b394(0x1a7)][_0x55b394(0x206)][_0x55b394(0x230)]&&_0xeedcf0['data'][_0x55b394(0x206)][_0x55b394(0x230)][_0x55b394(0x1cc)]){let _0x3f713b=_0xeedcf0[_0x55b394(0x1a7)][_0x55b394(0x206)][_0x55b394(0x230)][_0x55b394(0x1cc)];return UiUtil[_0x55b394(0x1e0)](_0x3f713b[_0x55b394(0x1fa)],_0x3f713b[_0x55b394(0x1ca)],_0x55b394(0x1cc),_0x55b394(0x226)),!0x1;}return!0x0;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4cd4f0=a0_0x3116;(function(_0x4d1170,_0x23cb7e){const _0x4f8d88=a0_0x3116,_0x36dd6c=_0x4d1170();while(!![]){try{const _0x3934d2=parseInt(_0x4f8d88(0xac))/0x1+parseInt(_0x4f8d88(0xb7))/0x2+-parseInt(_0x4f8d88(0x9e))/0x3+parseInt(_0x4f8d88(0xb2))/0x4*(-parseInt(_0x4f8d88(0xb8))/0x5)+parseInt(_0x4f8d88(0xb6))/0x6*(parseInt(_0x4f8d88(0xc0))/0x7)+-parseInt(_0x4f8d88(0xb1))/0x8*(parseInt(_0x4f8d88(0xa9))/0x9)+parseInt(_0x4f8d88(0xa2))/0xa;if(_0x3934d2===_0x23cb7e)break;else _0x36dd6c['push'](_0x36dd6c['shift']());}catch(_0x4a0fbb){_0x36dd6c['push'](_0x36dd6c['shift']());}}}(a0_0x398f,0xba0c2));import a0_0x4eb486 from'graphql-tag';function a0_0x398f(){const _0xe88a5=['tField','records','2649451MwUYGv','category','tTitle','tError','3362769oxOZbw','query','tLabel','META_TERMS','8354610dGBakf','field','button','length','terminologies','items','data','207JALNJx','total','menu','402290eduwBx','downloadTerminologies','title','label','tText','427088jdQqzW','164YJVNiB','error','keys','tButton','12xaeLWD','2957682jCqxaL','44235OVnfsg','translate','locale','name','fetchTerminologies','forEach'];a0_0x398f=function(){return _0xe88a5;};return a0_0x398f();}function a0_0x3116(_0x5f28a4,_0x4cde4a){const _0x398f51=a0_0x398f();return a0_0x3116=function(_0x3116fd,_0x5d82d1){_0x3116fd=_0x3116fd-0x9e;let _0x35316b=_0x398f51[_0x3116fd];return _0x35316b;},a0_0x3116(_0x5f28a4,_0x4cde4a);}import{client}from'@operato/graphql';import{i18next}from'@operato/i18n';export class TermsUtil{[a0_0x4cd4f0(0xa1)]=null;static async[a0_0x4cd4f0(0xad)](_0x1c8c45){const _0x6221d5=a0_0x4cd4f0;let _0x2e9641=(await TermsUtil[_0x6221d5(0xbc)](_0x1c8c45))[_0x6221d5(0xbf)];_0x2e9641&&_0x2e9641[_0x6221d5(0xa5)]>0x0&&(this[_0x6221d5(0xa1)]={},_0x2e9641[_0x6221d5(0xbd)](_0x2b2a8a=>{const _0x13bddb=_0x6221d5;let _0x2eb0da=_0x2b2a8a['category']+'.'+_0x2b2a8a[_0x13bddb(0xbb)];this[_0x13bddb(0xa1)][_0x2eb0da]=_0x2b2a8a['display'];}));}static async[a0_0x4cd4f0(0xbc)](_0x4aa3e4){const _0x29b654=a0_0x4cd4f0;let _0x37ed15=[{'name':_0x29b654(0xba),'operator':'eq','value':_0x4aa3e4}];const _0x1e6966=await client[_0x29b654(0x9f)]({'query':a0_0x4eb486`
|
|
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_0x379d79=a0_0x3bf0;(function(_0x10839b,_0x31c19b){const _0x1472f8=a0_0x
|
|
|
11
11
|
total
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
`,'variables':{'filters':
|
|
14
|
+
`,'variables':{'filters':_0x37ed15,'sortings':[{'name':_0x29b654(0xc1)},{'name':'name'}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0x1e6966['errors'])return{'records':_0x1e6966[_0x29b654(0xa8)][_0x29b654(0xa6)][_0x29b654(0xa7)]||[],'total':_0x1e6966[_0x29b654(0xa8)][_0x29b654(0xa6)][_0x29b654(0xaa)]||0x0};}static[a0_0x4cd4f0(0xa0)](_0x213678,_0x247e1d){const _0x2e766b=a0_0x4cd4f0;let _0x1a2aa0=TermsUtil[_0x2e766b(0xb9)](_0x2e766b(0xaf),_0x213678,_0x247e1d,null);return _0x1a2aa0||TermsUtil[_0x2e766b(0xb9)](_0x2e766b(0xa3),_0x213678,_0x247e1d,_0x213678);}static[a0_0x4cd4f0(0xbe)](_0x4bfbb9,_0x455eb4){const _0x3c83d6=a0_0x4cd4f0;let _0x3a44a4=TermsUtil[_0x3c83d6(0xb9)](_0x3c83d6(0xa3),_0x4bfbb9,_0x455eb4,null);return _0x3a44a4||TermsUtil[_0x3c83d6(0xb9)](_0x3c83d6(0xa3),_0x4bfbb9,_0x455eb4,_0x4bfbb9);}static[a0_0x4cd4f0(0xb5)](_0x568fee){const _0x1a3c90=a0_0x4cd4f0;return TermsUtil[_0x1a3c90(0xb9)](_0x1a3c90(0xa4),_0x568fee,null,_0x568fee);}static[a0_0x4cd4f0(0xc2)](_0x24ce75,_0x43e3ad){const _0x21079a=a0_0x4cd4f0;let _0x155b32=TermsUtil[_0x21079a(0xb9)](_0x21079a(0xae),_0x24ce75,_0x43e3ad,null);return _0x155b32||TermsUtil[_0x21079a(0xb9)](_0x21079a(0xab),_0x24ce75,_0x43e3ad,_0x24ce75);}static['tMenu'](_0x54c3fc){const _0x2cae8c=a0_0x4cd4f0;let _0x59f4fb=TermsUtil['translate']('menu',_0x54c3fc,null,null);return _0x59f4fb||TermsUtil[_0x2cae8c(0xb9)](_0x2cae8c(0xae),_0x54c3fc,null,_0x54c3fc);}static[a0_0x4cd4f0(0xb0)](_0x45077f,_0x170135){return TermsUtil['translate']('text',_0x45077f,_0x170135,_0x45077f);}static[a0_0x4cd4f0(0xc3)](_0x4b9556,_0x3798db){const _0xeef7d=a0_0x4cd4f0;return TermsUtil[_0xeef7d(0xb9)](_0xeef7d(0xb3),_0x4b9556,_0x3798db,_0x4b9556);}static['translate'](_0x2482c2,_0x27247f,_0x10d74c,_0x1362c9){let _0x120dc1=_0x2482c2+'.'+_0x27247f;return TermsUtil['t'](_0x120dc1,_0x10d74c,_0x1362c9);}static['t'](_0x3585d5,_0x2b3b11,_0x4f709e){const _0x307c44=a0_0x4cd4f0;let _0x1ec3db=this[_0x307c44(0xa1)]?this['META_TERMS'][_0x3585d5]:null;return _0x1ec3db=_0x1ec3db||i18next['t'](_0x3585d5),_0x1ec3db&&_0x3585d5!=_0x1ec3db?(_0x2b3b11&&Object[_0x307c44(0xb4)](_0x2b3b11)[_0x307c44(0xbd)](function(_0x38ee2c){var _0x57a890='\x5c{'+_0x38ee2c['replace'](/\$/,'\x5c$')+'\x5c}',_0x15cb03=new RegExp(_0x57a890,'gi');_0x1ec3db=_0x1ec3db['replace'](_0x15cb03,_0x2b3b11[_0x38ee2c]);}),_0x1ec3db):_0x4f709e;}}
|
package/client/utils/ui-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x2df8(_0x310eac,_0x24f97d){const _0x1d042e=a0_0x1d04();return a0_0x2df8=function(_0x2df8b7,_0x5ec1da){_0x2df8b7=_0x2df8b7-0x16f;let _0xc0d959=_0x1d042e[_0x2df8b7];return _0xc0d959;},a0_0x2df8(_0x310eac,_0x24f97d);}const a0_0x5e093e=a0_0x2df8;(function(_0x42cf52,_0x3e4921){const _0x533a88=a0_0x2df8,_0x2e7c1e=_0x42cf52();while(!![]){try{const _0x460189=parseInt(_0x533a88(0x1a0))/0x1+-parseInt(_0x533a88(0x180))/0x2+-parseInt(_0x533a88(0x19e))/0x3+parseInt(_0x533a88(0x17f))/0x4*(parseInt(_0x533a88(0x182))/0x5)+parseInt(_0x533a88(0x17e))/0x6*(parseInt(_0x533a88(0x17a))/0x7)+parseInt(_0x533a88(0x1a5))/0x8*(-parseInt(_0x533a88(0x1a4))/0x9)+parseInt(_0x533a88(0x19c))/0xa*(-parseInt(_0x533a88(0x18e))/0xb);if(_0x460189===_0x3e4921)break;else _0x2e7c1e['push'](_0x2e7c1e['shift']());}catch(_0x9a8265){_0x2e7c1e['push'](_0x2e7c1e['shift']());}}}(a0_0x1d04,0x37298));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_0x1d04(){const _0x2a1acd=['route','code-editor','getStore','confirmButton','removeChild','22hOfnRo','app','parent_field','popup_field','menu','filters','length','openDynamicPopup','htmlToElement','setValueToEditor','getParams','size','pageNavigate','\x27\x20\x20parent_id=\x27','2508370sRzRZk','fireCustomEvent','98313pivCMn','childNodes','248069lzXWYm','i18next','center','cancelButton','171ofLZrU','15944hknuLS','getApplicationModuleInfo','\x20route_name=\x27','name','textarea','tagname','edge','large','cookie','split','ko-KR','tButton','full','innerHTML','createEditorHtml','\x27\x20is_popup=true></','forEach','content','notify','replace','page','substring','stringify','pass=','ox-input-code','i18next=','editor','value','createCustomElement','showToast','firstElementChild','ox-select','modules','1736bLuFeF','isNotEmpty','isMobileEnv','showAlertPopup','6168CxFSMK','4nvyros','228024AjiVuv','createElement','2046275hjXOAf','querySelector','barcode','getLeafInput','select-combo','renderRoot','getState'];a0_0x1d04=function(){return _0x2a1acd;};return a0_0x1d04();}import{ValueUtil}from'./value-util';import{MetaUiUtil}from'./meta-ui-util';export class UiUtil{static[a0_0x5e093e(0x17c)](){return isMobileDevice();}static['currentLocale'](){const _0x5ee888=a0_0x5e093e;let _0x4600e0=document[_0x5ee888(0x1ad)];return _0x4600e0=_0x4600e0['substring'](_0x4600e0['indexOf'](_0x5ee888(0x1a1))),_0x4600e0['indexOf'](';')>-0x1&&(_0x4600e0=_0x4600e0[_0x5ee888(0x1ba)](0x0,_0x4600e0['indexOf'](';'))),_0x4600e0=_0x4600e0[_0x5ee888(0x1b8)](_0x5ee888(0x172),''),'ko'==_0x4600e0?_0x5ee888(0x1af):_0x4600e0;}static[a0_0x5e093e(0x1a6)](){const _0x479bc9=a0_0x5e093e;let _0x3766f5=store['getState']()[_0x479bc9(0x18f)][_0x479bc9(0x179)];return _0x3766f5[_0x3766f5[_0x479bc9(0x194)]-0x1];}static['currentRouting'](){const _0x4f3177=a0_0x5e093e;return store[_0x4f3177(0x188)]()[_0x4f3177(0x189)][_0x4f3177(0x1b9)];}static['openPopupByElement'](_0x2ebdd2,_0x2ad9b5,_0x1a93f2,_0x4bfec3){const _0x2de1de=a0_0x5e093e;return _0x2de1de(0x1b1)===_0x2ad9b5&&(_0x1a93f2['style']['height']='95dvh'),openPopup(_0x1a93f2,{'backdrop':!0x0,'hovering':_0x2de1de(0x1b1)===_0x2ad9b5?_0x2de1de(0x1ab):_0x2de1de(0x1a2),'size':'full'===_0x2ad9b5?_0x2de1de(0x1ac):_0x2ad9b5,'title':_0x2ebdd2,'backdrop':_0x4bfec3});}static async[a0_0x5e093e(0x195)](_0x23ef8c,_0x1bec9a,_0x502a92,_0x5211c5){const _0x48c381=a0_0x5e093e;let _0x4274c2=ValueUtil[_0x48c381(0x17b)](_0x1bec9a[_0x48c381(0x190)])?ValueUtil[_0x48c381(0x198)](_0x502a92,..._0x1bec9a[_0x48c381(0x190)][_0x48c381(0x1ae)]('.')):void 0x0,_0x4e4e8c='<'+_0x1bec9a['tagname']+_0x48c381(0x1a7)+_0x1bec9a[_0x48c381(0x192)]+_0x48c381(0x19b)+_0x4274c2+_0x48c381(0x1b4)+_0x1bec9a[_0x48c381(0x1aa)]+'>',_0x14984c=UiUtil['htmlToElement'](_0x4e4e8c);_0x14984c['config']=_0x1bec9a,ValueUtil[_0x48c381(0x17b)](_0x1bec9a['popup_field'])&&(_0x14984c[_0x1bec9a[_0x48c381(0x191)]]=_0x502a92);let _0xe3ce6b=UiUtil['openPopupByElement'](_0x23ef8c,_0x1bec9a[_0x48c381(0x199)],_0x14984c,!0x0);_0x5211c5&&(_0xe3ce6b['onclosed']=_0x5211c5);}static[a0_0x5e093e(0x175)](_0x221823,_0x3d27d1){const _0x31b4ed=a0_0x5e093e;let _0x215fad='<'+_0x221823+'\x20route_name=\x27'+_0x3d27d1+'\x27></'+_0x221823+'>';return UiUtil[_0x31b4ed(0x196)](_0x215fad);}static[a0_0x5e093e(0x196)](_0x300cca){const _0x2969d9=a0_0x5e093e;var _0x56e415=document[_0x2969d9(0x181)]('template');_0x56e415[_0x2969d9(0x1b2)]=_0x300cca;var _0x15b775=_0x56e415[_0x2969d9(0x1b6)][_0x2969d9(0x19f)][0x0];return _0x56e415[_0x2969d9(0x1b6)][_0x2969d9(0x18d)](_0x15b775),_0x15b775;}static[a0_0x5e093e(0x19a)](_0x1fe5ae,_0x279217){const _0x16132e=a0_0x5e093e;let _0x138ceb=_0x279217?'?':'';_0x279217&&(_0x138ceb+=_0x16132e(0x170)+JSON[_0x16132e(0x16f)](_0x279217)),navigate(''+_0x1fe5ae+_0x138ceb);}static[a0_0x5e093e(0x18b)](_0x42e71b,_0x25555b,_0x5484cf){let _0x5bdff3=_0x5bdff3['getState']();return _0x42e71b&&_0x25555b&&_0x5484cf?_0x5bdff3[_0x42e71b][_0x25555b][_0x5484cf]:_0x42e71b&&_0x25555b?_0x5bdff3[_0x42e71b][_0x25555b]:_0x42e71b?_0x5bdff3[_0x42e71b]:_0x5bdff3;}static[a0_0x5e093e(0x19d)](_0x419283,_0x58a21a){document['dispatchEvent'](new CustomEvent(_0x419283,{'detail':_0x58a21a}));}static[a0_0x5e093e(0x176)](_0x3be79b,_0x39b938){const _0x3f9a4e=a0_0x5e093e;document['dispatchEvent'](new CustomEvent(_0x3f9a4e(0x1b7),{'detail':{'type':_0x3be79b,'message':_0x39b938}}));}static async[a0_0x5e093e(0x17d)](_0x5e73a6,_0x1de0eb,_0x7756e8,_0x52054,_0x55bbe6){const _0x2b59a8=a0_0x5e093e;let _0x48d933={'title':TermsUtil['t'](_0x5e73a6)||_0x5e73a6,'text':TermsUtil['t'](_0x1de0eb)||_0x1de0eb};return _0x7756e8&&(_0x48d933['type']=_0x7756e8),_0x52054&&(_0x48d933[_0x2b59a8(0x18c)]=TermsUtil[_0x2b59a8(0x1b0)](_0x52054)),_0x55bbe6&&(_0x48d933[_0x2b59a8(0x1a3)]=TermsUtil[_0x2b59a8(0x1b0)](_0x55bbe6)),await CustomAlert(_0x48d933);}static['getFilterFormData'](_0x99e474){const _0x5e9972=a0_0x5e093e;if(ValueUtil[_0x5e9972(0x17b)](_0x99e474)){let _0x34342a=_0x99e474[_0x5e9972(0x193)]();ValueUtil[_0x5e9972(0x17b)](_0x34342a)&&_0x34342a[_0x5e9972(0x1b5)](_0x141d71=>{const _0x5354c4=_0x5e9972;ValueUtil['isNotEmpty'](_0x141d71['value'])&&(item[_0x141d71[_0x5354c4(0x1a8)]]=_0x141d71[_0x5354c4(0x174)]?_0x141d71[_0x5354c4(0x174)]:null);});}return{};}static['setSearchFormEditorValue'](_0x5c35a5,_0x8ac1f9,_0x10ecb0){const _0x795e46=a0_0x5e093e;if(ValueUtil['isNotEmpty'](_0x5c35a5)){let _0x2a140e=_0x5c35a5[_0x795e46(0x187)]?.[_0x795e46(0x183)]('[name=\x27'+_0x8ac1f9+'\x27]');ValueUtil[_0x795e46(0x17b)](_0x2a140e)&&(_0x2a140e['value']=_0x10ecb0);}}static[a0_0x5e093e(0x1b3)](_0x55c0cc,_0xc71457,_0x5a7008,_0x1d2f88){return getEditor(_0x55c0cc)('',_0xc71457,_0x5a7008,_0x1d2f88,{});}static[a0_0x5e093e(0x197)](_0x1134e7,_0x52ab81){const _0x54bf66=a0_0x5e093e;UiUtil[_0x54bf66(0x185)](_0x1134e7)[_0x54bf66(0x174)]=_0x52ab81;}static[a0_0x5e093e(0x185)](_0x211273){const _0x3f2a75=a0_0x5e093e;let _0xe230d2=_0x211273['getType']();return _0x3f2a75(0x18a)==_0xe230d2?_0x211273['renderRoot'][_0x3f2a75(0x183)](_0x3f2a75(0x171)):_0x3f2a75(0x1a9)==_0xe230d2?_0x211273[_0x3f2a75(0x187)][_0x3f2a75(0x183)](_0x3f2a75(0x1a9)):_0x3f2a75(0x186)==_0xe230d2?_0x211273[_0x3f2a75(0x187)][_0x3f2a75(0x183)](_0x3f2a75(0x178))['firstElementChild']:_0x3f2a75(0x184)==_0xe230d2?_0x211273['renderRoot'][_0x3f2a75(0x183)]('ox-input-barcode')[_0x3f2a75(0x187)][_0x3f2a75(0x183)]('input'):_0x211273[_0x3f2a75(0x187)][_0x3f2a75(0x177)][_0x3f2a75(0x173)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x435a(){const _0x35e162=['keys','203qTiNDm','4028585KRhqEJ','populateArray','43821KTziKW','TRUE','setParams','getParams','1dkPGPx','boolean','2896404IXvYYc','7096356JQwNyl','forEach','1493486TfZxNn','isNotEmpty','map','populateObject','slice','6000966AZogtf','298552ZMyGkL','toBoolean','10ZRwSaI','length','isEmpty'];a0_0x435a=function(){return _0x35e162;};return a0_0x435a();}const a0_0x136f69=a0_0x29fd;(function(_0x42a7f7,_0xecb9f2){const _0x287ea0=a0_0x29fd,_0x35a563=_0x42a7f7();while(!![]){try{const _0x55a377=parseInt(_0x287ea0(0x1c6))/0x1*(-parseInt(_0x287ea0(0x1cb))/0x2)+parseInt(_0x287ea0(0x1c2))/0x3+-parseInt(_0x287ea0(0x1c8))/0x4+-parseInt(_0x287ea0(0x1c0))/0x5+parseInt(_0x287ea0(0x1d0))/0x6+parseInt(_0x287ea0(0x1bf))/0x7*(parseInt(_0x287ea0(0x1d1))/0x8)+parseInt(_0x287ea0(0x1c9))/0x9*(parseInt(_0x287ea0(0x1bb))/0xa);if(_0x55a377===_0xecb9f2)break;else _0x35a563['push'](_0x35a563['shift']());}catch(_0x5d3928){_0x35a563['push'](_0x35a563['shift']());}}}(a0_0x435a,0x94aae));function a0_0x29fd(_0x2464e7,_0x26ac99){const _0x435a5a=a0_0x435a();return a0_0x29fd=function(_0x29fd83,_0x20c7e0){_0x29fd83=_0x29fd83-0x1ba;let _0x402729=_0x435a5a[_0x29fd83];return _0x402729;},a0_0x29fd(_0x2464e7,_0x26ac99);}import a0_0x15c746 from'lodash-es/isEqual';import{TermsUtil}from'./terms-util';export class ValueUtil{static[a0_0x136f69(0x1bd)](_0x461197){const _0x4a9fa1=a0_0x136f69;if(void 0x0===_0x461197)return!0x0;if(null===_0x461197)return!0x0;if(_0x4a9fa1(0x1c7)==typeof _0x461197)return!0x1;if('string'==typeof _0x461197||'number'==typeof _0x461197){if(''==_0x461197)return!0x0;}else{if(Array['isArray'](_0x461197)){if(0x0==_0x461197[_0x4a9fa1(0x1bc)])return!0x0;}else{if('object'==typeof _0x461197&&0x0==Object[_0x4a9fa1(0x1be)](_0x461197)[_0x4a9fa1(0x1bc)])return!0x0;}}return!0x1;}static[a0_0x136f69(0x1cc)](_0x21c55e){const _0x3f2bd2=a0_0x136f69;return!ValueUtil[_0x3f2bd2(0x1bd)](_0x21c55e);}static['isEquals'](_0x5be709,_0x893213){return a0_0x15c746(_0x5be709,_0x893213);}static['toInteger'](_0x3fb913,_0xe2758a){return ValueUtil['isEmpty'](_0x3fb913)?_0xe2758a||0x0:parseInt(_0x3fb913);}static[a0_0x136f69(0x1ba)](_0x1a3913){const _0x7692a8=a0_0x136f69;return!ValueUtil['isEmpty'](_0x1a3913)&&('true'==_0x1a3913||'t'==_0x1a3913||_0x7692a8(0x1c3)==_0x1a3913||'T'==_0x1a3913||'on'==_0x1a3913||'ON'==_0x1a3913);}static['compareObjectValues'](_0x530663,_0x2ff006,_0x4a87eb){const _0x1ae1ab=a0_0x136f69;let _0x421e7c=!0x0;return _0x4a87eb[_0x1ae1ab(0x1ca)](_0x217fe3=>{const _0x30764b=_0x1ae1ab;let _0x3662b3=_0x530663[_0x217fe3];if('*'===_0x3662b3)return;let _0x2c2dbf=_0x2ff006[_0x217fe3]||'';ValueUtil[_0x30764b(0x1bd)](_0x3662b3)?ValueUtil[_0x30764b(0x1cc)](_0x2c2dbf)&&(_0x421e7c=!0x1):_0x3662b3!=_0x2c2dbf&&(_0x421e7c=!0x1);}),_0x421e7c;}static[a0_0x136f69(0x1c4)](_0x27ce9a,_0x406ad9,_0x20f406,_0x38a60d){const _0x1cc44a=a0_0x136f69;let _0x2c9e3a=ValueUtil[_0x1cc44a(0x1c5)](_0x406ad9,_0x20f406);return ValueUtil['isNotEmpty'](_0x2c9e3a)&&(_0x27ce9a[_0x20f406]=!0x0===_0x38a60d?TermsUtil['t'](_0x2c9e3a):_0x2c9e3a),_0x27ce9a;}static[a0_0x136f69(0x1c5)](_0x404954,..._0x262d37){const _0x173fa8=a0_0x136f69;if(arguments[_0x173fa8(0x1bc)]<=0x1)return;let _0x499a01=_0x262d37[0x0];if(ValueUtil['isEmpty'](_0x404954[_0x499a01]))return;let _0x3b56e0=_0x404954[_0x499a01];return _0x262d37[_0x173fa8(0x1bc)]>0x1?ValueUtil['getParams'](_0x3b56e0,..._0x262d37[_0x173fa8(0x1cf)](0x1)):_0x3b56e0;}static[a0_0x136f69(0x1c1)](_0x30cea6,_0x55ebf7,..._0x47e2c8){const _0xf277c1=a0_0x136f69;return _0x55ebf7=_0x55ebf7||[],_0x47e2c8=_0x47e2c8||Object[_0xf277c1(0x1be)](_0x30cea6),ValueUtil[_0xf277c1(0x1cc)](_0x47e2c8)&&(_0x55ebf7=_0x30cea6[_0xf277c1(0x1cd)]((_0xdcc222,_0x335e5d)=>{const _0x30094b=_0xf277c1;let _0x2d446c=_0x55ebf7[_0x30094b(0x1bc)]>_0x335e5d?_0x55ebf7[_0x335e5d]:{};return ValueUtil['populateObject'](_0xdcc222,_0x2d446c,_0x47e2c8);})),_0x55ebf7;}static[a0_0x136f69(0x1ce)](_0x41e09f,_0x194a66,..._0x10a166){const _0x2e40ad=a0_0x136f69;return _0x194a66=_0x194a66||{},_0x10a166=_0x10a166||Object[_0x2e40ad(0x1be)](_0x41e09f),ValueUtil[_0x2e40ad(0x1cc)](_0x10a166)&&_0x10a166[_0x2e40ad(0x1ca)](_0x1be0ab=>{_0x194a66[_0x1be0ab]=_0x41e09f[_0x1be0ab];}),_0x194a66;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x29bd(){const _0x5b5125=['256746ithHeE','141fTDPkY','9051147UUrWGd','228hwYyaD','16yUrEHE','2071506ftkNwd','380925WMevFf','24FcRujl','4067701XRyPWX','3118WFzApC','8ikCCqK','2287530SDTSYO'];a0_0x29bd=function(){return _0x5b5125;};return a0_0x29bd();}function a0_0x627d(_0x4d747c,_0x2c8d65){const _0x29bdd4=a0_0x29bd();return a0_0x627d=function(_0x627d8e,_0x141937){_0x627d8e=_0x627d8e-0xab;let _0x4a6b13=_0x29bdd4[_0x627d8e];return _0x4a6b13;},a0_0x627d(_0x4d747c,_0x2c8d65);}(function(_0x4acba0,_0x3aaed0){const _0x21421b=a0_0x627d,_0x16f5e9=_0x4acba0();while(!![]){try{const _0x3e4885=-parseInt(_0x21421b(0xab))/0x1*(parseInt(_0x21421b(0xb3))/0x2)+parseInt(_0x21421b(0xaf))/0x3+-parseInt(_0x21421b(0xae))/0x4*(-parseInt(_0x21421b(0xb0))/0x5)+-parseInt(_0x21421b(0xad))/0x6*(parseInt(_0x21421b(0xb6))/0x7)+parseInt(_0x21421b(0xb4))/0x8*(parseInt(_0x21421b(0xac))/0x9)+-parseInt(_0x21421b(0xb5))/0xa+-parseInt(_0x21421b(0xb2))/0xb*(-parseInt(_0x21421b(0xb1))/0xc);if(_0x3e4885===_0x3aaed0)break;else _0x16f5e9['push'](_0x16f5e9['shift']());}catch(_0x3e2e6b){_0x16f5e9['push'](_0x16f5e9['shift']());}}}(a0_0x29bd,0xdb47b));import{css}from'lit';export const DynamicMenuLandscapeStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
overflow-x: auto;
|
|
4
4
|
background-color: var(--secondary-text-color);
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x21711f=a0_0x3cde;(function(_0x5b32db,_0x4b1355){const _0xbc9642=a0_0x3cde,_0x3e0ed9=_0x5b32db();while(!![]){try{const _0x44066b=-parseInt(_0xbc9642(0x175))/0x1+parseInt(_0xbc9642(0x195))/0x2+-parseInt(_0xbc9642(0x180))/0x3*(-parseInt(_0xbc9642(0x173))/0x4)+-parseInt(_0xbc9642(0x18d))/0x5*(parseInt(_0xbc9642(0x184))/0x6)+parseInt(_0xbc9642(0x178))/0x7+parseInt(_0xbc9642(0x192))/0x8*(-parseInt(_0xbc9642(0x181))/0x9)+parseInt(_0xbc9642(0x183))/0xa*(parseInt(_0xbc9642(0x194))/0xb);if(_0x44066b===_0x4b1355)break;else _0x3e0ed9['push'](_0x3e0ed9['shift']());}catch(_0x3bf36e){_0x3e0ed9['push'](_0x3e0ed9['shift']());}}}(a0_0x252d,0x5739d));import'@material/mwc-icon';function a0_0x3cde(_0x5c4fa2,_0x227811){const _0x252dfa=a0_0x252d();return a0_0x3cde=function(_0x3cdec5,_0xceda0b){_0x3cdec5=_0x3cdec5-0x16f;let _0x1a0f0a=_0x252dfa[_0x3cdec5];return _0x1a0f0a;},a0_0x3cde(_0x5c4fa2,_0x227811);}import{html,LitElement}from'lit';function a0_0x252d(){const _0x57102d=['icon','removeAttribute','3uNDmol','4689xfAOtc','#wrap','10dKwQpT','4101810RdIruO','dispatchEvent','name','activeTopLevel','target','type','addEventListener','#force','scrollLeft','5SUbsWK','render','active-toplevel','mousewheel','styles','9608zXpeET','map','10273549qkqhwV','759574BAaFFF','path','detail','submenu','settled','group','properties','dynamic-menu-landscape','wheelDelta','onWheelEvent','2287508vWDqJz','querySelector','582892QGDdQc','renderRoot','currentTarget','2547314BkpDZt','href','transitionstart','bind','firstUpdated','description'];a0_0x252d=function(){return _0x57102d;};return a0_0x252d();}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_0x21711f(0x191)](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get[a0_0x21711f(0x16f)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x21711f(0x18e)](){const _0x5976ab=a0_0x21711f,{menus:_0x1900b1=[],activeTopLevel:_0x24f9df,activeMenu:_0x43cca3}=this;return html`
|
|
2
2
|
<div id="wrap">
|
|
3
3
|
<ul>
|
|
4
|
-
${
|
|
5
|
-
<li ?active=${
|
|
6
|
-
<a href=${
|
|
7
|
-
${
|
|
4
|
+
${_0x1900b1['map'](_0x20a92c=>_0x5976ab(0x19a)==_0x20a92c[_0x5976ab(0x189)]?html``:html`
|
|
5
|
+
<li ?active=${_0x20a92c===_0x24f9df}>
|
|
6
|
+
<a href=${_0x20a92c[_0x5976ab(0x196)]||'#'}>
|
|
7
|
+
${_0x20a92c['icon']?html`<mwc-icon>${_0x20a92c[_0x5976ab(0x17e)]}</mwc-icon>`:html``} ${_0x20a92c[_0x5976ab(0x186)]}
|
|
8
8
|
</a>
|
|
9
9
|
|
|
10
10
|
<ul submenus>
|
|
11
|
-
${
|
|
12
|
-
<li ?active=${
|
|
13
|
-
<a href=${
|
|
11
|
+
${_0x20a92c['menus']?.[_0x5976ab(0x193)](_0x32d723=>html`
|
|
12
|
+
<li ?active=${_0x32d723===_0x43cca3}>
|
|
13
|
+
<a href=${_0x32d723[_0x5976ab(0x196)]||'#'}> ${_0x32d723[_0x5976ab(0x186)]} </a>
|
|
14
14
|
</li>
|
|
15
15
|
`)}
|
|
16
16
|
</ul>
|
|
17
17
|
|
|
18
18
|
<div description>
|
|
19
|
-
${
|
|
19
|
+
${_0x20a92c['icon']?html`<mwc-icon>${_0x20a92c[_0x5976ab(0x17e)]}</mwc-icon>`:html``} ${_0x20a92c[_0x5976ab(0x17d)]||''}
|
|
20
20
|
</div>
|
|
21
21
|
</li>
|
|
22
22
|
`)}
|
|
23
23
|
</ul>
|
|
24
24
|
</div>
|
|
25
|
-
`;}[
|
|
25
|
+
`;}[a0_0x21711f(0x17c)](){const _0x590c36=a0_0x21711f;this[_0x590c36(0x176)][_0x590c36(0x174)](_0x590c36(0x182))['addEventListener'](_0x590c36(0x190),this[_0x590c36(0x172)][_0x590c36(0x17b)](this),!0x1),this[_0x590c36(0x176)][_0x590c36(0x18a)]('click',_0x1bd78b=>{const _0x53a2ae=_0x590c36;if(_0x1bd78b[_0x53a2ae(0x188)][_0x53a2ae(0x198)]){_0x1bd78b['stopPropagation'](),_0x1bd78b['preventDefault']();let _0x52dc82=_0x1bd78b[_0x53a2ae(0x188)][_0x53a2ae(0x198)];return void this[_0x53a2ae(0x185)](new CustomEvent(_0x53a2ae(0x18f),{'bubbles':!0x0,'detail':this[_0x53a2ae(0x187)]===_0x52dc82?void 0x0:_0x52dc82}));}let _0x59d10b=_0x1bd78b['target']['href'];_0x59d10b&&location[_0x53a2ae(0x179)]===_0x59d10b&&navigate(_0x59d10b+_0x53a2ae(0x18b),!0x0);}),this[_0x590c36(0x176)]['addEventListener'](_0x590c36(0x17a),_0x37ec99=>{const _0x4d97d7=_0x590c36;_0x37ec99['target'][_0x4d97d7(0x17f)]('settled');}),this[_0x590c36(0x176)]['addEventListener']('transitionend',_0x528ac7=>{const _0x1ba8d1=_0x590c36;_0x528ac7[_0x1ba8d1(0x188)]['setAttribute'](_0x1ba8d1(0x199),'');});}['onWheelEvent'](_0x56e909){const _0xe040f5=a0_0x21711f,_0x76426=_0x56e909[_0xe040f5(0x177)];var _0x5da9c6=Math['max'](-0x1,Math['min'](0x1,_0x56e909[_0xe040f5(0x171)]||-_0x56e909[_0xe040f5(0x197)]));_0x76426[_0xe040f5(0x18c)]-=0xa*_0x5da9c6,_0x56e909['preventDefault']();}}customElements['define'](a0_0x21711f(0x170),DynamicMenuLandscape);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a0_0x54c0(){var _0xa72fa0=['499062tOSYqz','active','removeAttribute','6798480yCYVLQ','slotTemplate','8tdfRVw','metaUI','118648jkKtBI','dynamic-menu-part','stateChanged','28443745ZdfiDH','menus','preventDefault','active-toplevel','find','addEventListener','_activeMenu','28PiMsap','page','orientation','_activeTopLevel','replaceChild','render','1828107SHseDh','define','landscape','properties','split','75lVwvIe','has','route','_path','setAttribute','detail','path','updated','3538435vyGItF','resourceId','1417276LNOjdT','call','portrait','styles','1hCWzux','_findActivePage'];a0_0x54c0=function(){return _0xa72fa0;};return a0_0x54c0();}var a0_0x1c5e9a=a0_0x2c23;(function(_0xdd6a56,_0x2ddfb5){var _0x2b04ba=a0_0x2c23,_0xff5568=_0xdd6a56();while(!![]){try{var _0x271b7f=-parseInt(_0x2b04ba(0x87))/0x1*(parseInt(_0x2b04ba(0x83))/0x2)+-parseInt(_0x2b04ba(0xa5))/0x3*(parseInt(_0x2b04ba(0x90))/0x4)+-parseInt(_0x2b04ba(0x81))/0x5+parseInt(_0x2b04ba(0x89))/0x6*(-parseInt(_0x2b04ba(0x9a))/0x7)+-parseInt(_0x2b04ba(0x8e))/0x8*(parseInt(_0x2b04ba(0xa0))/0x9)+parseInt(_0x2b04ba(0x8c))/0xa+parseInt(_0x2b04ba(0x93))/0xb;if(_0x271b7f===_0x2ddfb5)break;else _0xff5568['push'](_0xff5568['shift']());}catch(_0x466192){_0xff5568['push'](_0xff5568['shift']());}}}(a0_0x54c0,0x8ba21));import'@material/mwc-icon';import'./dynamic-menu-portrait';import'./dynamic-menu-landscape';function a0_0x2c23(_0x3d4dad,_0x24c99e){var _0x54c036=a0_0x54c0();return a0_0x2c23=function(_0x2c23f7,_0x5d1747){_0x2c23f7=_0x2c23f7-0x7f;var _0x1b6962=_0x54c036[_0x2c23f7];return _0x1b6962;},a0_0x2c23(_0x3d4dad,_0x24c99e);}import{css,html,LitElement}from'lit';import{connect}from'pwa-helpers';import{store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';function isActiveMenu(_0x7b762a,_0x568663){var _0x38eb3a=a0_0x2c23;return _0x7b762a[_0x38eb3a(0x7f)]?.[_0x38eb3a(0xa4)]('?')[0x0]===_0x568663||_0x7b762a[_0x38eb3a(0x8a)]&&'function'==typeof _0x7b762a['active']&&_0x7b762a[_0x38eb3a(0x8a)][_0x38eb3a(0x84)](_0x7b762a,{'path':_0x568663});}export class DynamicMenuPart extends connect(store)(LitElement){static get[a0_0x1c5e9a(0xa3)](){return{'page':String,'resourceId':String,'menus':Array,'orientation':String,'_activeTopLevel':Object,'_activeMenu':Object,'_path':String};}static get[a0_0x1c5e9a(0x86)](){return[ScrollbarStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -27,18 +27,18 @@ var a0_0x1b3a19=a0_0x5635;(function(_0x44d251,_0x246046){var _0x1851e5=a0_0x5635
|
|
|
27
27
|
dynamic-menu-landscape {
|
|
28
28
|
flex: 1;
|
|
29
29
|
}
|
|
30
|
-
`];}[
|
|
30
|
+
`];}[a0_0x1c5e9a(0x9f)](){var _0xbafd1c=a0_0x1c5e9a;return html`
|
|
31
31
|
<slot name="head"></slot>
|
|
32
|
-
${
|
|
33
|
-
.menus=${this[
|
|
34
|
-
.activeTopLevel=${this[
|
|
35
|
-
.activeMenu=${this[
|
|
36
|
-
.path=${this[
|
|
32
|
+
${_0xbafd1c(0xa2)!==this[_0xbafd1c(0x9c)]?html`<dynamic-menu-portrait
|
|
33
|
+
.menus=${this[_0xbafd1c(0x94)]}
|
|
34
|
+
.activeTopLevel=${this[_0xbafd1c(0x9d)]}
|
|
35
|
+
.activeMenu=${this[_0xbafd1c(0x99)]}
|
|
36
|
+
.path=${this['_path']}
|
|
37
37
|
></dynamic-menu-portrait>`:html`<dynamic-menu-landscape
|
|
38
|
-
.menus=${this[
|
|
38
|
+
.menus=${this[_0xbafd1c(0x94)]}
|
|
39
39
|
.activeTopLevel=${this['_activeTopLevel']}
|
|
40
|
-
.activeMenu=${this[
|
|
41
|
-
.path=${this[
|
|
40
|
+
.activeMenu=${this[_0xbafd1c(0x99)]}
|
|
41
|
+
.path=${this[_0xbafd1c(0xa8)]}
|
|
42
42
|
></dynamic-menu-landscape>`}
|
|
43
43
|
<slot name="tail"></slot>
|
|
44
|
-
`;}[
|
|
44
|
+
`;}['firstUpdated'](){var _0xb032f0=a0_0x1c5e9a;this['renderRoot'][_0xb032f0(0x98)](_0xb032f0(0x96),_0x3cb926=>{var _0x43b316=_0xb032f0;_0x3cb926['stopPropagation'](),_0x3cb926[_0x43b316(0x95)](),this[_0x43b316(0x9d)]=_0x3cb926[_0x43b316(0xaa)];});}[a0_0x1c5e9a(0x80)](_0x3d4114){var _0x560289=a0_0x1c5e9a;(_0x3d4114[_0x560289(0xa6)](_0x560289(0x94))||_0x3d4114[_0x560289(0xa6)](_0x560289(0x9b))||_0x3d4114[_0x560289(0xa6)](_0x560289(0x82)))&&this[_0x560289(0x88)](),_0x3d4114[_0x560289(0xa6)](_0x560289(0x9c))&&(_0x560289(0x85)==this[_0x560289(0x9c)]?this[_0x560289(0x8b)]('landscape'):this[_0x560289(0xa9)](_0x560289(0xa2),!0x0)),_0x3d4114['has'](_0x560289(0x8d))&&this[_0x560289(0x9e)](this['slotTemplate']);}[a0_0x1c5e9a(0x92)](_0x3ff0a4){var _0x5baa97=a0_0x1c5e9a;this[_0x5baa97(0x9b)]=_0x3ff0a4[_0x5baa97(0xa7)]['page'],this['resourceId']=_0x3ff0a4[_0x5baa97(0xa7)]['resourceId'],this[_0x5baa97(0x94)]=_0x3ff0a4[_0x5baa97(0x8f)]['menus']||[],this[_0x5baa97(0x8d)]=_0x3ff0a4[_0x5baa97(0x8f)][_0x5baa97(0x8d)];}[a0_0x1c5e9a(0x88)](){var _0x27d86f=a0_0x1c5e9a,_0x53a3c5,_0x53f940=this[_0x27d86f(0x82)]?this[_0x27d86f(0x9b)]+'/'+this[_0x27d86f(0x82)]:this['page'],_0x4e4f95=this[_0x27d86f(0x94)]||[];this[_0x27d86f(0x9d)]=_0x4e4f95[_0x27d86f(0x97)](_0xab8675=>isActiveMenu(_0xab8675,_0x53f940)?(_0x53a3c5=_0xab8675,!0x0):_0xab8675['menus']?!!(_0x53a3c5=_0xab8675[_0x27d86f(0x94)][_0x27d86f(0x97)](_0x580939=>isActiveMenu(_0x580939,_0x53f940))):void 0x0),this['_path']=_0x53f940,this[_0x27d86f(0x99)]=_0x53a3c5||this[_0x27d86f(0x9d)];}}customElements[a0_0x1c5e9a(0xa1)](a0_0x1c5e9a(0x91),DynamicMenuPart);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x47dc0c,_0x26deff){const _0x30bc55=a0_0x102d,_0x2eb78e=_0x47dc0c();while(!![]){try{const _0x524aa5=parseInt(_0x30bc55(0x119))/0x1+-parseInt(_0x30bc55(0x11d))/0x2+-parseInt(_0x30bc55(0x11c))/0x3+-parseInt(_0x30bc55(0x11a))/0x4+-parseInt(_0x30bc55(0x116))/0x5*(-parseInt(_0x30bc55(0x118))/0x6)+-parseInt(_0x30bc55(0x11b))/0x7+parseInt(_0x30bc55(0x117))/0x8;if(_0x524aa5===_0x26deff)break;else _0x2eb78e['push'](_0x2eb78e['shift']());}catch(_0x2458ad){_0x2eb78e['push'](_0x2eb78e['shift']());}}}(a0_0xbee6,0x75e30));function a0_0xbee6(){const _0x33713d=['12XiGLxx','522628mnwiPp','2665848yTRQDM','6548507usolRr','326289NhOXCW','1502104HXVpYZ','532285skkDwd','17672800UsuVoI'];a0_0xbee6=function(){return _0x33713d;};return a0_0xbee6();}function a0_0x102d(_0x2eaddc,_0x20d7b7){const _0xbee69=a0_0xbee6();return a0_0x102d=function(_0x102d2d,_0x4ca98c){_0x102d2d=_0x102d2d-0x116;let _0x275b5d=_0xbee69[_0x102d2d];return _0x275b5d;},a0_0x102d(_0x2eaddc,_0x20d7b7);}import{css}from'lit';export const DynamicMenuPortraitStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|