@things-factory/meta-ui 6.1.51 → 6.1.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/actions/main.js +4 -4
- package/client/component/filter/filter-form-meta-code-select.js +9 -9
- package/client/component/filter/filter-form-meta-object-select.js +9 -9
- package/client/component/filter/filter-grist-meta-code-select.js +9 -9
- package/client/component/filter/filter-grist-meta-object-select.js +9 -9
- package/client/component/grist/editor/grist-editor-code-input.js +6 -6
- package/client/component/grist/editor/grist-editor-meta-code-selector.js +6 -6
- package/client/component/grist/editor/grist-editor-meta-object-selector.js +7 -7
- package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
- package/client/component/popup/code-input-editor-popup.js +10 -10
- package/client/component/popup/meta-object-selector-popup.js +11 -11
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +1 -1
- package/client/mixin/meta-main-tab-mixin.js +1 -1
- package/client/mixin/meta-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-detail-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/activity/meta-activity-list-page.js +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +3 -3
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/entity/config-entity.js +29 -29
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +16 -16
- package/client/pages/menu/export-menu-popup.js +7 -7
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-main-tab-element.js +1 -1
- package/client/pages/meta-main-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-detail-element.js +1 -1
- package/client/pages/meta-tab-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +6 -6
- package/client/pages/work-code/work-code-detail-popup.js +1 -1
- package/client/pages/work-code/work-code-page.js +1 -1
- package/client/reducers/main.js +1 -1
- package/client/utils/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 +102 -102
- package/client/utils/service-util.js +13 -13
- package/client/utils/terms-util.js +2 -2
- package/client/utils/ui-util.js +1 -1
- package/client/utils/value-util.js +1 -1
- package/client/viewparts/dynamic-menu-landscape-styles.js +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/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/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 +1 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x504583=a0_0x5860;(function(_0x5bd3c5,_0x4886a7){const _0x116960=a0_0x5860,_0x280569=_0x5bd3c5();while(!![]){try{const _0x2d2559=parseInt(_0x116960(0x163))/0x1*(-parseInt(_0x116960(0x146))/0x2)+parseInt(_0x116960(0x108))/0x3*(parseInt(_0x116960(0x137))/0x4)+parseInt(_0x116960(0x142))/0x5*(parseInt(_0x116960(0x13e))/0x6)+-parseInt(_0x116960(0x167))/0x7*(parseInt(_0x116960(0x155))/0x8)+-parseInt(_0x116960(0x105))/0x9+-parseInt(_0x116960(0x113))/0xa*(-parseInt(_0x116960(0x13b))/0xb)+parseInt(_0x116960(0x150))/0xc;if(_0x2d2559===_0x4886a7)break;else _0x280569['push'](_0x280569['shift']());}catch(_0x22e00c){_0x280569['push'](_0x280569['shift']());}}}(a0_0x5b9c,0xd1f7a));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_0x5860(_0x148d1e,_0x4cc84b){const _0x5b9ca9=a0_0x5b9c();return a0_0x5860=function(_0x5860b4,_0x6cb293){_0x5860b4=_0x5860b4-0xf8;let _0x5d6cd4=_0x5b9ca9[_0x5860b4];return _0x5d6cd4;},a0_0x5860(_0x148d1e,_0x4cc84b);}import{UiUtil}from'./ui-util';import a0_0x3b73f2 from'graphql-tag';import{ValueUtil}from'./value-util';import{asyncReplace}from'lit/directives/async-replace.js';import a0_0x2f121d from'i18next';function a0_0x5b9c(){const _0x2295b6=['myDynamicMenus','text.are_you_sure','split','runScenario','buildArgs','hidden','searchMyDynamicMenus','exportableData','question','path','code-input','sort','gridPersonalizeTemplates','hiddenFlag','key','reduce','networkError','id,template','records','error','data','routingType','checkClientError','badge','info','unshift','dispatch','cuFlag','getWorkCodeByName','numberOfToDos','name','getSelectedIdList','filter','code','getCodeByEntity','delete','details','columns','mandatory','splice','showGraphqlException','showAlertPopup','numberOfApprovalPendings','updatedAt','forEach','\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','category','errors','6906267BOMlDc','showToast','push','14121xzbvUb','length','createdAt','text.there_is_nothing_to_delete','getCodeByScenario','join','findOne','gutter','\x0a\x20\x20\x20\x20\x20\x20','check-mandatory-field','SCREEN','10NlLGEv','approval-pending-list','text.nothing_selected','numberOfDrafts','draft-list','query','tMenu','cancel','record','log','_config','map','resourceUrl','searchByPagination','updater','__dirty__','fetch','text.nothing_changed','header','confirm','workCodeByName','imex','rank','active','group','searchMenuGridPersnalTemplate','extensions','message','parent','button.','__origin__','updateMultiple','title','text.NOTHING_CHANGED','button.delete','codeItems','376EkUJCz','callScenario','test','patchesForUpdateMultiple','2759240MmOwkt','todo-list','find','2000946FyRPgu','description','isArray','deleteListByIds','15yqidHh','type','isNotEmpty','object','4OzEIdv','menuType','result','tText','menu.id','getCodeSelectorData','noteq','menus','parse','isEmpty','26453856AJqaZk','HOME','value','total','xlsx','304WPIHLD','__dirtyfields__','routing','template','MENU','config','items','success\x20to\x20delete','creator','__seq__','dirtyRecords','deleteListByGristSelected','showGraphqlErrorResponse','iconPath','774853MRnPRe','findIndex','includes','GROUP','132846yMzXrU','children'];a0_0x5b9c=function(){return _0x2295b6;};return a0_0x5b9c();}import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';export class ServiceUtil{static async['codeItems'](_0x1993c2){const _0x17c540=a0_0x5860;if(Array[_0x17c540(0x140)](_0x1993c2))return _0x1993c2[_0x17c540(0x11e)](_0x99f8e6=>_0x17c540(0x145)==typeof _0x99f8e6?{'name':_0x99f8e6[_0x17c540(0x152)],'description':_0x99f8e6['display']}:{'name':_0x99f8e6,'description':_0x99f8e6});let _0x5f4c38=await ServiceUtil['getWorkCodeByName'](_0x1993c2);return _0x5f4c38&&_0x5f4c38[_0x17c540(0x109)]>0x0?_0x5f4c38:await getCodeByName(_0x1993c2);}static async[a0_0x504583(0x185)](_0x5d2552){const _0x5faec7=a0_0x504583,_0x42a23c=await client['query']({'query':a0_0x3b73f2`
|
|
2
2
|
query workCodeByName($name: String!) {
|
|
3
3
|
workCodeByName(name: $name) {
|
|
4
4
|
details {
|
|
@@ -8,32 +8,32 @@ const a0_0x17b70f=a0_0x1b6b;(function(_0x4c6803,_0x46f470){const _0x1e92c7=a0_0x
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
`,'variables':{'name':
|
|
11
|
+
`,'variables':{'name':_0x5d2552},'context':gqlContext()});return!_0x42a23c[_0x5faec7(0x104)]&&_0x42a23c[_0x5faec7(0x17d)][_0x5faec7(0x127)]&&_0x42a23c[_0x5faec7(0x17d)][_0x5faec7(0x127)][_0x5faec7(0xf9)]?_0x42a23c['data']['workCodeByName']['details'][_0x5faec7(0x174)]((_0x32725a,_0x250b48)=>_0x32725a[_0x5faec7(0x129)]-_0x250b48[_0x5faec7(0x129)]):[];}static async[a0_0x504583(0x14b)](_0x24a145){const _0x34dced=a0_0x504583;let _0x4e47c5=(await ServiceUtil[_0x34dced(0x136)](_0x24a145))[_0x34dced(0x11e)](_0x14e55e=>({'value':_0x14e55e['name'],'display':_0x14e55e[_0x34dced(0x13f)]}));return _0x4e47c5[_0x34dced(0x182)]({'value':'','display':''}),_0x4e47c5;}static async[a0_0x504583(0x10c)](_0x514926,_0x392d6c){const _0xbf7934=a0_0x504583;let _0x7964cb=await ServiceUtil[_0xbf7934(0x138)](null,_0x514926,_0x392d6c,!0x1);if(_0x7964cb&&_0x7964cb[_0xbf7934(0x17d)]&&_0x7964cb[_0xbf7934(0x17d)][_0xbf7934(0x16c)]&&_0x7964cb[_0xbf7934(0x17d)][_0xbf7934(0x16c)][_0xbf7934(0x17d)]&&_0x7964cb[_0xbf7934(0x17d)][_0xbf7934(0x16c)]['data'][_0xbf7934(0x148)]){let _0x1dc98b=_0x7964cb[_0xbf7934(0x17d)]['runScenario'][_0xbf7934(0x17d)][_0xbf7934(0x148)];return _0x1dc98b[_0xbf7934(0x182)]({'value':'','display':''}),_0x1dc98b[_0xbf7934(0x11e)](_0x4af88c=>({'value':_0x4af88c[_0xbf7934(0x187)],'display':_0x4af88c[_0xbf7934(0x13f)]}));}return[];}static async[a0_0x504583(0x18b)]({queryName:_0x20a50d,codeField:_0xdf4260=a0_0x504583(0x187),dispField:_0x39919f,filters:_0x132854=[],sorters:_0x47fe9b=[]}){const _0x35b4d4=a0_0x504583;let _0x4e15d8=_0x39919f[_0x35b4d4(0x16b)](','),_0x2d5e51=_0x35b4d4(0x110)+_0xdf4260+_0x35b4d4(0x110)+(_0x39919f?_0x4e15d8[_0x35b4d4(0x10d)]('\x0a'):'')+'\x0a\x20\x20\x20\x20',_0x8c33c8=await ServiceUtil[_0x35b4d4(0x120)](_0x20a50d,_0x132854,_0x47fe9b,0x0,0x0,_0x2d5e51),_0xdfc266=[{'value':'','display':''}];return _0x8c33c8[_0x35b4d4(0x17b)][_0x35b4d4(0x101)](_0x5b5374=>{const _0x179dcb=_0x35b4d4;let _0x4b398a=_0x5b5374[_0xdf4260];if(_0x39919f){let _0x155fb4=_0x39919f['split'](',');_0x4b398a=_0x5b5374[_0x155fb4[0x0]],_0x155fb4['length']>0x1&&(_0x4b398a+='('+_0x155fb4['splice'](0x1)[_0x179dcb(0x11e)](_0xaf7a87=>_0x5b5374[_0xaf7a87])[_0x179dcb(0x10d)](',')+')');}_0xdfc266[_0x179dcb(0x107)]({'value':_0x5b5374[_0xdf4260],'display':_0x4b398a});}),_0xdfc266;}static async[a0_0x504583(0x169)](){const _0xbf3c68=a0_0x504583;let _0x2ea836=await ServiceUtil[_0xbf3c68(0x16f)]();return null!=_0x2ea836?ServiceUtil['arrangeMenuRoutes'](_0x2ea836):null;}static async[a0_0x504583(0x12c)](_0x4da95a){const _0x169ef8=a0_0x504583;let _0x370d8a=[{'name':_0x169ef8(0x14a),'operator':'eq','value':_0x4da95a}],_0x5d2b11=await ServiceUtil[_0x169ef8(0x120)](_0x169ef8(0x175),_0x370d8a,[],0x0,0x0,_0x169ef8(0x17a));return 0x0==_0x5d2b11['total']?{}:{'id':_0x5d2b11[_0x169ef8(0x17b)][0x0]['id'],'template':JSON[_0x169ef8(0x14e)](_0x5d2b11[_0x169ef8(0x17b)][0x0][_0x169ef8(0x158)])};}static['arrangeMenuRoutes'](_0x4415dc){const _0x4d9c58=a0_0x504583;let _0xb9b276=[];_0x4415dc['forEach'](_0xa65a49=>{const _0x17de39=a0_0x5860;_0xb9b276[_0x17de39(0x107)](_0xa65a49),_0xa65a49[_0x17de39(0x168)]&&(_0xa65a49['children'][_0x17de39(0x174)](function(_0x1c24e0,_0x2d5daa){const _0x30a796=_0x17de39;return _0x1c24e0[_0x30a796(0x129)]-_0x2d5daa['rank'];}),_0xa65a49['children']['forEach'](_0x5e1a2b=>{const _0xa25532=_0x17de39;0x1!=_0x5e1a2b[_0xa25532(0x176)]&&(_0x5e1a2b['parent']=_0xa65a49,_0xb9b276['push'](_0x5e1a2b));}));});let _0x140a97=_0xb9b276['map'](_0x3d2259=>{const _0xbb0744=a0_0x5860;if('GROUP'==_0x3d2259[_0xbb0744(0x147)]||_0xbb0744(0x159)==_0x3d2259[_0xbb0744(0x147)]){let _0x34182e={'id':_0x3d2259['id'],'parent':!0x0,'name':TermsUtil[_0xbb0744(0x119)](_0x3d2259[_0xbb0744(0x187)]),'icon':_0x3d2259[_0xbb0744(0x162)],'type':_0xbb0744(0x166)==_0x3d2259[_0xbb0744(0x147)]?_0xbb0744(0x12b):'','menus':[]};return _0x3d2259[_0xbb0744(0x157)]&&(_0x34182e[_0xbb0744(0x172)]=_0x3d2259[_0xbb0744(0x157)]),_0x34182e;}return{'id':'0'};})[_0x4d9c58(0x189)](_0x5d8f70=>'0'!=_0x5d8f70['id']),_0x177e5c=_0xb9b276[_0x4d9c58(0x11e)](_0xc0b340=>{const _0x3ec082=_0x4d9c58;if(_0x3ec082(0x112)==_0xc0b340[_0x3ec082(0x147)]||'HIDDEN-PAGE'==_0xc0b340['menuType']){let _0x20e320=_0x140a97[_0x3ec082(0x13d)](_0x735b59=>_0x735b59['id']==_0xc0b340[_0x3ec082(0x12f)]['id']);if(_0x20e320){let _0x53fe4f=TermsUtil['tMenu'](_0xc0b340['name']);return _0x3ec082(0x112)==_0xc0b340[_0x3ec082(0x147)]&&_0x20e320[_0x3ec082(0x14d)][_0x3ec082(0x107)]({'id':_0xc0b340['id'],'name':_0x53fe4f,'path':_0xc0b340['routing'],'icon':_0xc0b340[_0x3ec082(0x162)]}),{'id':_0xc0b340['id'],'parent':!0x1,'parent_id':_0x20e320['id'],'title':_0x53fe4f,'tagname':_0xc0b340[_0x3ec082(0x103)],'page':_0xc0b340[_0x3ec082(0x157)],'template':_0xc0b340[_0x3ec082(0x11f)],'routing_type':_0xc0b340['routingType']};}return{'id':'0'};}return'HOME'==_0xc0b340[_0x3ec082(0x147)]?{'id':_0xc0b340['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil[_0x3ec082(0x119)](_0xc0b340['name']),'tagname':_0xc0b340[_0x3ec082(0x103)],'page':_0xc0b340['routing'],'template':_0xc0b340[_0x3ec082(0x11f)],'routing_type':_0xc0b340[_0x3ec082(0x17e)]}:{'id':'0'};})['filter'](_0x27ac42=>null!=_0x27ac42&&'0'!=_0x27ac42['id']);_0x140a97[_0x4d9c58(0x189)](_0x3ecf37=>_0x4d9c58(0x12b)==_0x3ecf37['type']&&_0x3ecf37[_0x4d9c58(0x14d)]&&_0x3ecf37[_0x4d9c58(0x14d)][_0x4d9c58(0x109)]>0x0)['forEach'](_0x5a0c89=>{const _0x457581=_0x4d9c58;let _0x11ec13=_0x140a97[_0x457581(0x164)](_0x3f6d5e=>_0x3f6d5e['id']==_0x5a0c89['id'])+0x1;_0x140a97[_0x457581(0xfc)](_0x11ec13,0x0,..._0x5a0c89[_0x457581(0x14d)]);});let _0x5d05cb=0x0;return _0x140a97[_0x4d9c58(0x101)](_0x128c76=>{const _0x3e0f50=_0x4d9c58;_0x3e0f50(0x13c)==_0x128c76['path']?(_0x5d05cb++,_0x128c76[_0x3e0f50(0x180)]=()=>asyncReplace(generateActivitySummary(_0x3e0f50(0x186))),_0x128c76[_0x3e0f50(0x12a)]=({path:_0x4da948})=>/^activity\//[_0x3e0f50(0x139)](_0x4da948)):_0x3e0f50(0x114)==_0x128c76['path']?(_0x5d05cb++,_0x128c76[_0x3e0f50(0x180)]=()=>asyncReplace(generateActivitySummary(_0x3e0f50(0xff))),_0x128c76[_0x3e0f50(0x12a)]=({path:_0x395c3c})=>/^activity\//[_0x3e0f50(0x139)](_0x395c3c)):_0x3e0f50(0x117)==_0x128c76['path']&&(_0x5d05cb++,_0x128c76[_0x3e0f50(0x180)]=()=>asyncReplace(generateActivitySummary(_0x3e0f50(0x116))));}),_0x5d05cb>0x0&&startSubscribeActivitySummary(),{'menus':_0x140a97,'routes':_0x177e5c};}static async[a0_0x504583(0x16f)](){const _0x369508=a0_0x504583;let _0x5aa645=await ServiceUtil[_0x369508(0x120)](_0x369508(0x14d),[{'name':_0x369508(0x176),'operator':_0x369508(0x14c),'value':!0x0},{'name':_0x369508(0x147),'operator':'in','value':[_0x369508(0x151),_0x369508(0x159),_0x369508(0x166)]}],[{'name':_0x369508(0x129)}],0x0,0x0,_0x369508(0x102));return _0x5aa645?_0x5aa645[_0x369508(0x17b)]:[];}static async[a0_0x504583(0x161)](_0xb3fd2f){const _0x373352=a0_0x504583;if(_0xb3fd2f[_0x373352(0x104)]&&_0xb3fd2f[_0x373352(0x104)]['length']>0x0){let _0xb7855a=_0xb3fd2f[_0x373352(0x104)][0x0],_0x4ee83a=_0xb7855a[_0x373352(0x12e)],_0x50523b=_0xb7855a[_0x373352(0x12e)];_0xb7855a['extensions']&&(_0x50523b=_0xb7855a[_0x373352(0x12d)][_0x373352(0x18a)]),await UiUtil['showAlertPopup'](_0x50523b,_0x4ee83a,_0x373352(0x17c),'confirm');}}static async[a0_0x504583(0xfd)](_0x19ad00){const _0x510148=a0_0x504583;_0x19ad00&&(_0x19ad00[_0x510148(0x179)]&&_0x19ad00[_0x510148(0x179)][_0x510148(0x148)]?await ServiceUtil['showGraphqlErrorResponse'](_0x19ad00[_0x510148(0x179)]['result']):await UiUtil[_0x510148(0xfe)]('Graphql\x20Error',_0x19ad00[_0x510148(0x12e)],_0x510148(0x17c),'confirm'));}static async[a0_0x504583(0x170)](_0x1513f5,_0x3b49c5,_0x291654){const _0x140154=a0_0x504583;var _0x30df20=_0x291654[_0x140154(0x11d)][_0x140154(0xfa)][_0x140154(0x189)](_0x954a13=>_0x140154(0x10f)!==_0x954a13[_0x140154(0x143)]&&void 0x0!==_0x954a13[_0x140154(0x11b)]&&void 0x0!==_0x954a13[_0x140154(0x128)]&&!0x0!==_0x954a13[_0x140154(0x16e)])[_0x140154(0x11e)](_0x12c657=>_0x12c657[_0x140154(0x128)]),_0x3187dd=_0x291654[_0x140154(0x17d)][_0x140154(0x17b)]['map'](_0x189f6a=>({..._0x291654[_0x140154(0x11d)][_0x140154(0xfa)]['filter'](_0x37fd9d=>_0x140154(0x10f)!==_0x37fd9d[_0x140154(0x143)]&&void 0x0!==_0x37fd9d['record']&&void 0x0!==_0x37fd9d['imex']&&!0x0!==_0x37fd9d[_0x140154(0x16e)])[_0x140154(0x178)]((_0x42cb32,_0x144eab)=>(_0x42cb32[_0x144eab[_0x140154(0x128)][_0x140154(0x177)]]=_0x144eab['imex'][_0x140154(0x177)][_0x140154(0x16b)]('.')['reduce']((_0x2de0c4,_0x345eae)=>_0x2de0c4&&'undefined'!==_0x2de0c4[_0x345eae]?_0x2de0c4[_0x345eae]:void 0x0,_0x189f6a),_0x42cb32),{})}));if(!_0x1513f5)return{'header':_0x30df20,'data':_0x3187dd};store[_0x140154(0x183)]({'type':EXPORT,'exportable':{'extension':_0x140154(0x154),'name':_0x3b49c5,'data':{'header':_0x30df20,'data':_0x3187dd}}});}static async[a0_0x504583(0x120)](_0x5c6edd,_0x42e337,_0x290417,_0x334cdb,_0x4a4f02,_0x2601ea){const _0x155639=a0_0x504583;try{const _0xb833ec=await client['query']({'query':a0_0x3b73f2`
|
|
12
12
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
13
|
-
${
|
|
13
|
+
${_0x5c6edd}(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
14
14
|
items {
|
|
15
|
-
${
|
|
15
|
+
${_0x2601ea}
|
|
16
16
|
}
|
|
17
17
|
total
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,'variables':{'filters':
|
|
20
|
+
`,'variables':{'filters':_0x42e337,'sortings':_0x290417,'pagination':{'page':_0x334cdb,'limit':_0x4a4f02}}});if(!_0xb833ec[_0x155639(0x104)])return{'records':_0xb833ec[_0x155639(0x17d)][_0x5c6edd][_0x155639(0x15b)],'total':_0xb833ec[_0x155639(0x17d)][_0x5c6edd][_0x155639(0x153)]};ServiceUtil[_0x155639(0x161)](_0xb833ec);}catch(_0x5d7357){ServiceUtil[_0x155639(0xfd)](_0x5d7357);}return null;}static async[a0_0x504583(0x10e)](_0x5883d1,_0x104eea,_0x54a623){const _0x24a616=a0_0x504583;try{let _0x247f82=await client[_0x24a616(0x118)]({'query':a0_0x3b73f2`
|
|
21
21
|
query ($id: String!) {
|
|
22
|
-
${
|
|
23
|
-
${
|
|
22
|
+
${_0x5883d1}(id: $id) {
|
|
23
|
+
${_0x54a623}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,'variables':{'id':
|
|
26
|
+
`,'variables':{'id':_0x104eea}});if(!_0x247f82[_0x24a616(0x104)])return _0x247f82[_0x24a616(0x17d)][_0x5883d1]||{};ServiceUtil[_0x24a616(0x161)](_0x247f82);}catch(_0xd9c98d){ServiceUtil[_0x24a616(0xfd)](_0xd9c98d);}return null;}static['getSelectedIdList'](_0x978738,_0x33176b){const _0x2b746f=a0_0x504583,_0x5c9f16=_0x978738['selected'][_0x2b746f(0x11e)](_0x3c3e68=>_0x3c3e68['id']);return ValueUtil[_0x2b746f(0x14f)](_0x5c9f16)&&0x1==_0x33176b&&UiUtil['showAlertPopup'](_0x2b746f(0x115),_0x2b746f(0x10b),_0x2b746f(0x181),_0x2b746f(0x126)),_0x5c9f16;}static async[a0_0x504583(0x160)](_0x2e683b,_0xc84aec){const _0xe353c3=a0_0x504583;let _0x467d12=ServiceUtil[_0xe353c3(0x188)](_0x2e683b,!0x0);ValueUtil[_0xe353c3(0x144)](_0x467d12)&&(await ServiceUtil[_0xe353c3(0x141)](_0x467d12,_0xc84aec)&&_0x2e683b['fetch']());}static async[a0_0x504583(0x141)](_0x29b3de,_0x4cf401){const _0x2df80b=a0_0x504583;if(!(await UiUtil[_0x2df80b(0xfe)](_0x2df80b(0x135),_0x2df80b(0x16a),_0x2df80b(0x171),_0x2df80b(0xf8),_0x2df80b(0x11a)))[_0x2df80b(0x152)])return!0x1;try{const _0x38b2e6=await client[_0x2df80b(0x118)]({'query':a0_0x3b73f2`
|
|
27
27
|
mutation {
|
|
28
|
-
${
|
|
28
|
+
${_0x4cf401}(${gqlBuilder[_0x2df80b(0x16d)]({'ids':_0x29b3de})})
|
|
29
29
|
}
|
|
30
|
-
`});if(!
|
|
30
|
+
`});if(!_0x38b2e6[_0x2df80b(0x104)])return UiUtil[_0x2df80b(0x106)](_0x2df80b(0x181),TermsUtil[_0x2df80b(0x149)](_0x2df80b(0x15c))),!0x0;ServiceUtil['showGraphqlErrorResponse'](_0x38b2e6);}catch(_0x5cb55b){ServiceUtil[_0x2df80b(0xfd)](_0x5cb55b);}return!0x1;}static async['updateMultipleData'](_0x1572e4,_0x26c0f7){const _0x3580a1=a0_0x504583;let _0x16b9d4=ServiceUtil['patchesForUpdateMultiple'](_0x1572e4);if(ValueUtil[_0x3580a1(0x144)](_0x16b9d4)){let _0x2488eb=await ServiceUtil[_0x3580a1(0x132)](_0x26c0f7,_0x16b9d4);if(_0x2488eb)return _0x1572e4[_0x3580a1(0x123)](),_0x2488eb;}return!0x1;}static async[a0_0x504583(0x132)](_0x401af5,_0x3cfd12){const _0x1a5d9c=a0_0x504583;try{const _0x40a332=await client[_0x1a5d9c(0x118)]({'query':a0_0x3b73f2`
|
|
31
31
|
mutation {
|
|
32
|
-
${
|
|
32
|
+
${_0x401af5}(${gqlBuilder[_0x1a5d9c(0x16d)]({'patches':_0x3cfd12})}) {
|
|
33
33
|
id
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
`,'context':{'hasUpload':!0x0}});if(!
|
|
36
|
+
`,'context':{'hasUpload':!0x0}});if(!_0x40a332[_0x1a5d9c(0x104)])return UiUtil['showToast'](_0x1a5d9c(0x181),TermsUtil['tText']('success\x20to\x20save')),!0x0;ServiceUtil['showGraphqlErrorResponse'](_0x40a332);}catch(_0x1e5bc0){ServiceUtil[_0x1a5d9c(0xfd)](_0x1e5bc0);}return!0x1;}static[a0_0x504583(0x13a)](_0x47aac9,_0x3c9d56=!0x1){const _0x5cf99b=a0_0x504583;let _0xbb7a80=_0x47aac9[_0x5cf99b(0x15f)],_0x11c114={};((_0x47aac9[_0x5cf99b(0x15a)]||{})['columns']||[])[_0x5cf99b(0x189)](_0xf04db1=>!0x0===(_0xf04db1[_0x5cf99b(0x11b)]||{})[_0x5cf99b(0xfb)])['forEach'](_0x3e9b8a=>{const _0x3517a9=_0x5cf99b;_0x11c114[_0x3e9b8a[_0x3517a9(0x187)]]=_0x3e9b8a[_0x3517a9(0x125)];});let _0x2dbec1=((_0x47aac9[_0x5cf99b(0x15a)]||{})[_0x5cf99b(0xfa)]||[])[_0x5cf99b(0x189)](_0x5ac62c=>_0x5cf99b(0x173)===_0x5ac62c[_0x5cf99b(0x143)])[_0x5cf99b(0x11e)](_0x4ea4f3=>_0x4ea4f3[_0x5cf99b(0x187)]);if(!_0xbb7a80||0x0==_0xbb7a80[_0x5cf99b(0x109)])return void UiUtil['showAlertPopup'](_0x5cf99b(0x124),_0x5cf99b(0x134),'info',_0x5cf99b(0x126));let _0x5535a5=[];for(let _0x59ae94 in _0xbb7a80){let _0x4f392f=_0xbb7a80[_0x59ae94],_0x4ec998=_0x4f392f['id']?{'id':_0x4f392f['id']}:{};for(let _0xdacaad in _0x11c114)if(void 0x0===_0x4f392f[_0xdacaad]||''==_0x4f392f[_0xdacaad])return console[_0x5cf99b(0x11c)](_0x4f392f),void UiUtil['showAlertPopup']('text.check-mandatory',TermsUtil['tText'](_0x5cf99b(0x111),{'x':_0x11c114[_0xdacaad]}),_0x5cf99b(0x181),'confirm');for(let _0xd9caee in _0x4f392f)[_0x5cf99b(0x15d),_0x5cf99b(0x121),_0x5cf99b(0x10a),_0x5cf99b(0x100),_0x5cf99b(0x122),_0x5cf99b(0x156),_0x5cf99b(0x131),_0x5cf99b(0x15e),'__selected__']['includes'](_0xd9caee)||(0x0==_0x2dbec1[_0x5cf99b(0x165)](_0xd9caee)&&_0x4f392f[_0xd9caee]&&_0x5cf99b(0x145)==typeof _0x4f392f[_0xd9caee]&&0x0==_0x3c9d56?_0x4ec998[_0xd9caee]={'id':_0x4f392f[_0xd9caee]['id']}:_0x4ec998[_0xd9caee]=_0x4f392f[_0xd9caee]);_0x4ec998[_0x5cf99b(0x184)]=_0x4f392f['__dirty__'],_0x5535a5[_0x5cf99b(0x107)](_0x4ec998);}return _0x5535a5;}static async[a0_0x504583(0x138)](_0x40f39a,_0x2a1b88,_0x2ca644,_0x4873b4=!0x0){const _0x2d068f=a0_0x504583;let _0x4318de=!0x0;_0x40f39a&&!0x0===_0x4873b4&&(_0x4318de=(await UiUtil[_0x2d068f(0xfe)](_0x2d068f(0x130)+_0x40f39a,_0x2d068f(0x16a),'question','confirm',_0x2d068f(0x11a)))[_0x2d068f(0x152)]);if(_0x4318de)try{const _0x47b7f9=await client[_0x2d068f(0x118)]({'query':a0_0x3b73f2`
|
|
37
37
|
mutation ($scenarioName: String!, $variables: Object) {
|
|
38
38
|
runScenario(scenarioName: $scenarioName, variables: $variables) {
|
|
39
39
|
state
|
|
@@ -42,4 +42,4 @@ const a0_0x17b70f=a0_0x1b6b;(function(_0x4c6803,_0x46f470){const _0x1e92c7=a0_0x
|
|
|
42
42
|
__typename
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
`,'variables':{'scenarioName':
|
|
45
|
+
`,'variables':{'scenarioName':_0x2a1b88,'variables':_0x2ca644}});if(_0x47b7f9[_0x2d068f(0x104)])ServiceUtil[_0x2d068f(0x161)](_0x47b7f9);else{if(this[_0x2d068f(0x17f)](_0x47b7f9))return!0x0===_0x4873b4&&UiUtil['showToast'](_0x2d068f(0x181),TermsUtil[_0x2d068f(0x149)]('success\x20to\x20process')),_0x47b7f9;}}catch(_0x1c6a2d){ServiceUtil['showGraphqlException'](_0x1c6a2d);}return!0x1;}static[a0_0x504583(0x17f)](_0x5af7b5){const _0x3c7eee=a0_0x504583;if(_0x5af7b5&&_0x5af7b5[_0x3c7eee(0x17d)]&&_0x5af7b5['data'][_0x3c7eee(0x16c)]&&_0x5af7b5[_0x3c7eee(0x17d)]['runScenario']['data']&&_0x5af7b5[_0x3c7eee(0x17d)]['runScenario'][_0x3c7eee(0x17d)][_0x3c7eee(0x17c)]){let _0x4c14a3=_0x5af7b5[_0x3c7eee(0x17d)][_0x3c7eee(0x16c)][_0x3c7eee(0x17d)]['error'];return UiUtil[_0x3c7eee(0xfe)](_0x4c14a3[_0x3c7eee(0x133)],_0x4c14a3[_0x3c7eee(0x12e)],_0x3c7eee(0x17c),_0x3c7eee(0x126)),!0x1;}return!0x0;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x3fa04b=a0_0x5236;(function(_0x42542d,_0xbc3153){const _0x14093d=a0_0x5236,_0x2c03ef=_0x42542d();while(!![]){try{const _0x3ee8ba=parseInt(_0x14093d(0x9d))/0x1*(parseInt(_0x14093d(0x9e))/0x2)+-parseInt(_0x14093d(0xb5))/0x3+parseInt(_0x14093d(0xa9))/0x4+-parseInt(_0x14093d(0x9f))/0x5*(-parseInt(_0x14093d(0x98))/0x6)+-parseInt(_0x14093d(0xb4))/0x7*(-parseInt(_0x14093d(0xaf))/0x8)+-parseInt(_0x14093d(0xa0))/0x9+parseInt(_0x14093d(0x97))/0xa*(-parseInt(_0x14093d(0xb2))/0xb);if(_0x3ee8ba===_0xbc3153)break;else _0x2c03ef['push'](_0x2c03ef['shift']());}catch(_0xb1ca55){_0x2c03ef['push'](_0x2c03ef['shift']());}}}(a0_0x18fa,0x87fcd));import a0_0x41cc47 from'graphql-tag';import{client}from'@operato/graphql';import{i18next}from'@operato/i18n';export class TermsUtil{[a0_0x3fa04b(0x9a)]=null;static async[a0_0x3fa04b(0xa5)](_0x5025e7){const _0xaacfea=a0_0x3fa04b;let _0x506dff=(await TermsUtil[_0xaacfea(0xac)](_0x5025e7))['records'];_0x506dff&&_0x506dff[_0xaacfea(0x99)]>0x0&&(this[_0xaacfea(0x9a)]={},_0x506dff[_0xaacfea(0xb0)](_0x4078eb=>{const _0x3cfa1d=_0xaacfea;let _0x31eef1=_0x4078eb['category']+'.'+_0x4078eb[_0x3cfa1d(0xa1)];this['META_TERMS'][_0x31eef1]=_0x4078eb[_0x3cfa1d(0xb1)];}));}static async[a0_0x3fa04b(0xac)](_0x2c2b90){const _0x530b62=a0_0x3fa04b;let _0x11de75=[{'name':_0x530b62(0xad),'operator':'eq','value':_0x2c2b90}];const _0x49c549=await client['query']({'query':a0_0x41cc47`
|
|
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 @@ function a0_0x4c9e(_0x1a4d5e,_0x27107e){const _0x44c5e2=a0_0x44c5();return a0_0x
|
|
|
11
11
|
total
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
`,'variables':{'filters':
|
|
14
|
+
`,'variables':{'filters':_0x11de75,'sortings':[{'name':_0x530b62(0xa4)},{'name':'name'}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0x49c549[_0x530b62(0xb7)])return{'records':_0x49c549[_0x530b62(0xa3)]['terminologies'][_0x530b62(0xa7)]||[],'total':_0x49c549['data']['terminologies'][_0x530b62(0xa8)]||0x0};}static[a0_0x3fa04b(0xae)](_0x47aa79,_0xf2400d){const _0x43f875=a0_0x3fa04b;let _0x9fcf93=TermsUtil['translate'](_0x43f875(0x9b),_0x47aa79,_0xf2400d,null);return _0x9fcf93||TermsUtil[_0x43f875(0x95)](_0x43f875(0x93),_0x47aa79,_0xf2400d,_0x47aa79);}static['tField'](_0x405a1f,_0x3a7e33){const _0x1ad8a1=a0_0x3fa04b;let _0x425d2f=TermsUtil[_0x1ad8a1(0x95)](_0x1ad8a1(0x93),_0x405a1f,_0x3a7e33,null);return _0x425d2f||TermsUtil[_0x1ad8a1(0x95)]('field',_0x405a1f,_0x3a7e33,_0x405a1f);}static['tButton'](_0x44be51){const _0x363096=a0_0x3fa04b;return TermsUtil[_0x363096(0x95)](_0x363096(0xaa),_0x44be51,null,_0x44be51);}static['tTitle'](_0x2d278d,_0x1f7804){const _0x3d0b62=a0_0x3fa04b;let _0xb420ff=TermsUtil[_0x3d0b62(0x95)](_0x3d0b62(0x9c),_0x2d278d,_0x1f7804,null);return _0xb420ff||TermsUtil[_0x3d0b62(0x95)]('menu',_0x2d278d,_0x1f7804,_0x2d278d);}static[a0_0x3fa04b(0xb8)](_0x48c3d3){const _0x347705=a0_0x3fa04b;let _0x4465d8=TermsUtil['translate'](_0x347705(0x96),_0x48c3d3,null,_0x48c3d3);return _0x4465d8||TermsUtil['translate'](_0x347705(0x9c),_0x48c3d3,null,_0x48c3d3);}static[a0_0x3fa04b(0xab)](_0x149b60,_0x53340b){const _0x2143fb=a0_0x3fa04b;return TermsUtil['translate'](_0x2143fb(0xa6),_0x149b60,_0x53340b,_0x149b60);}static[a0_0x3fa04b(0xa2)](_0x271d65,_0x28aa65){const _0xeecdec=a0_0x3fa04b;return TermsUtil['translate'](_0xeecdec(0xb3),_0x271d65,_0x28aa65,_0x271d65);}static[a0_0x3fa04b(0x95)](_0x3c33e0,_0x412a1f,_0x1306a2,_0x37c9eb){let _0x347153=_0x3c33e0+'.'+_0x412a1f;return TermsUtil['t'](_0x347153,_0x1306a2,_0x37c9eb);}static['t'](_0x317e8c,_0x39dabf,_0x114303){const _0x35eba4=a0_0x3fa04b;let _0x302f5d=this[_0x35eba4(0x9a)]?this['META_TERMS'][_0x317e8c]:null;return _0x302f5d=_0x302f5d||i18next['t'](_0x317e8c),_0x302f5d&&_0x317e8c!=_0x302f5d?(_0x39dabf&&Object[_0x35eba4(0x94)](_0x39dabf)[_0x35eba4(0xb0)](function(_0x551be8){const _0xd51bd0=_0x35eba4;var _0x55c5e5='\x5c{'+_0x551be8[_0xd51bd0(0xb6)](/\$/,'\x5c$')+'\x5c}',_0x5f31fc=new RegExp(_0x55c5e5,'gi');_0x302f5d=_0x302f5d['replace'](_0x5f31fc,_0x39dabf[_0x551be8]);}),_0x302f5d):_0x114303;}}function a0_0x5236(_0x2999cc,_0x34897b){const _0x18fa65=a0_0x18fa();return a0_0x5236=function(_0x5236d2,_0x223f75){_0x5236d2=_0x5236d2-0x93;let _0x195cbb=_0x18fa65[_0x5236d2];return _0x195cbb;},a0_0x5236(_0x2999cc,_0x34897b);}function a0_0x18fa(){const _0x382991=['length','META_TERMS','label','title','792039ksEKOe','2hscmyv','5351020jQcAhF','6110811eaOpKV','name','tError','data','category','downloadTerminologies','text','items','total','730384ImCefd','button','tText','fetchTerminologies','locale','tLabel','7688LAXDhf','forEach','display','13139258PJFEuI','error','7917CPNwuh','2103804yclGpI','replace','errors','tMenu','field','keys','translate','menu','10UEvHdM','6BuGCfx'];a0_0x18fa=function(){return _0x382991;};return a0_0x18fa();}
|
package/client/utils/ui-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x135e89=a0_0x2b8b;(function(_0x28236b,_0x37f6ab){const _0x147608=a0_0x2b8b,_0x35fc80=_0x28236b();while(!![]){try{const _0x258b96=-parseInt(_0x147608(0x1e6))/0x1+parseInt(_0x147608(0x203))/0x2*(-parseInt(_0x147608(0x215))/0x3)+parseInt(_0x147608(0x1fc))/0x4+-parseInt(_0x147608(0x200))/0x5*(-parseInt(_0x147608(0x21c))/0x6)+-parseInt(_0x147608(0x208))/0x7*(parseInt(_0x147608(0x204))/0x8)+-parseInt(_0x147608(0x218))/0x9*(-parseInt(_0x147608(0x1ec))/0xa)+parseInt(_0x147608(0x211))/0xb*(parseInt(_0x147608(0x20b))/0xc);if(_0x258b96===_0x37f6ab)break;else _0x35fc80['push'](_0x35fc80['shift']());}catch(_0x24b59d){_0x35fc80['push'](_0x35fc80['shift']());}}}(a0_0x4561,0xe41b0));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_0x2b8b(_0x1d3603,_0x582242){const _0x4561b5=a0_0x4561();return a0_0x2b8b=function(_0x2b8b81,_0x2c8453){_0x2b8b81=_0x2b8b81-0x1d9;let _0x1f24d5=_0x4561b5[_0x2b8b81];return _0x1f24d5;},a0_0x2b8b(_0x1d3603,_0x582242);}import{ValueUtil}from'./value-util';import{MetaUiUtil}from'./meta-ui-util';function a0_0x4561(){const _0x4b332d=['\x20route_name=\x27','i18next','barcode','i18next=','value','length','querySelector','app','openPopupByElement','menu','setSearchFormEditorValue','firstElementChild','type','fireCustomEvent','modules','currentLocale','createCustomElement','pageNavigate','\x27\x20is_popup=true></','1220297uCvfUr','onclosed','showAlertPopup','tButton','tagname','template','10vYzYtu','center','editor','forEach','htmlToElement','indexOf','getApplicationModuleInfo','getType','edge','createEditorHtml','confirmButton','filters','\x27></','95dvh','ox-input-code','size','219568MSXMKf','removeChild','parent_field','replace','545MAdgTO','isMobileEnv','ox-select','2fppvop','254392FVVPnf','cancelButton','textarea','name','7eubZGm','childNodes','createElement','1828380WUUzEu','currentRouting','setValueToEditor','height','substring','renderRoot','242pjTcGw','input','getLeafInput','popup_field','4952811RXYRog','pass=','split','340317vhNiWy','isNotEmpty','stringify','getState','21612PHSyCu','full','innerHTML','getParams','large','getStore','page','dispatchEvent'];a0_0x4561=function(){return _0x4b332d;};return a0_0x4561();}export class UiUtil{static[a0_0x135e89(0x201)](){return isMobileDevice();}static[a0_0x135e89(0x1e2)](){const _0x49d2ae=a0_0x135e89;let _0x51b10d=document['cookie'];return _0x51b10d=_0x51b10d[_0x49d2ae(0x20f)](_0x51b10d[_0x49d2ae(0x1f1)](_0x49d2ae(0x225))),_0x51b10d[_0x49d2ae(0x1f1)](';')>-0x1&&(_0x51b10d=_0x51b10d['substring'](0x0,_0x51b10d['indexOf'](';'))),_0x51b10d=_0x51b10d[_0x49d2ae(0x1ff)](_0x49d2ae(0x227),''),'ko'==_0x51b10d?'ko-KR':_0x51b10d;}static[a0_0x135e89(0x1f2)](){const _0x59d9bc=a0_0x135e89;let _0x3108f4=store[_0x59d9bc(0x21b)]()[_0x59d9bc(0x1da)][_0x59d9bc(0x1e1)];return _0x3108f4[_0x3108f4[_0x59d9bc(0x229)]-0x1];}static[a0_0x135e89(0x20c)](){const _0x5dcb21=a0_0x135e89;return store[_0x5dcb21(0x21b)]()['route'][_0x5dcb21(0x222)];}static[a0_0x135e89(0x1db)](_0x186957,_0x482fb4,_0x53b85c,_0x5e3ef8){const _0x3e0324=a0_0x135e89;return _0x3e0324(0x21d)===_0x482fb4&&(_0x53b85c['style'][_0x3e0324(0x20e)]=_0x3e0324(0x1f9)),openPopup(_0x53b85c,{'backdrop':!0x0,'hovering':_0x3e0324(0x21d)===_0x482fb4?_0x3e0324(0x1f4):_0x3e0324(0x1ed),'size':_0x3e0324(0x21d)===_0x482fb4?_0x3e0324(0x220):_0x482fb4,'title':_0x186957,'backdrop':_0x5e3ef8});}static async['openDynamicPopup'](_0x3dacf6,_0x1c2f73,_0x3986c5,_0x4c2264){const _0x49e022=a0_0x135e89;let _0x540e4c=ValueUtil[_0x49e022(0x219)](_0x1c2f73[_0x49e022(0x1fe)])?ValueUtil[_0x49e022(0x21f)](_0x3986c5,..._0x1c2f73['parent_field'][_0x49e022(0x217)]('.')):void 0x0,_0x305d8f='<'+_0x1c2f73[_0x49e022(0x1ea)]+'\x20route_name=\x27'+_0x1c2f73[_0x49e022(0x1dc)]+'\x27\x20\x20parent_id=\x27'+_0x540e4c+_0x49e022(0x1e5)+_0x1c2f73[_0x49e022(0x1ea)]+'>',_0x337c34=UiUtil[_0x49e022(0x1f0)](_0x305d8f);_0x337c34['config']=_0x1c2f73,ValueUtil[_0x49e022(0x219)](_0x1c2f73[_0x49e022(0x214)])&&(_0x337c34[_0x1c2f73['popup_field']]=_0x3986c5);let _0x4c7f93=UiUtil['openPopupByElement'](_0x3dacf6,_0x1c2f73[_0x49e022(0x1fb)],_0x337c34,!0x0);_0x4c2264&&(_0x4c7f93[_0x49e022(0x1e7)]=_0x4c2264);}static[a0_0x135e89(0x1e3)](_0x186d87,_0x11ebfb){const _0x4c46a7=a0_0x135e89;let _0x265642='<'+_0x186d87+_0x4c46a7(0x224)+_0x11ebfb+_0x4c46a7(0x1f8)+_0x186d87+'>';return UiUtil['htmlToElement'](_0x265642);}static[a0_0x135e89(0x1f0)](_0x1620bd){const _0x182e75=a0_0x135e89;var _0x58eb67=document[_0x182e75(0x20a)](_0x182e75(0x1eb));_0x58eb67[_0x182e75(0x21e)]=_0x1620bd;var _0x382058=_0x58eb67['content'][_0x182e75(0x209)][0x0];return _0x58eb67['content'][_0x182e75(0x1fd)](_0x382058),_0x382058;}static[a0_0x135e89(0x1e4)](_0x119c17,_0x15f99d){const _0xdc15be=a0_0x135e89;let _0x57791f=_0x15f99d?'?':'';_0x15f99d&&(_0x57791f+=_0xdc15be(0x216)+JSON[_0xdc15be(0x21a)](_0x15f99d)),navigate(''+_0x119c17+_0x57791f);}static[a0_0x135e89(0x221)](_0x298a57,_0x3e049e,_0x14a683){const _0x216b25=a0_0x135e89;let _0x58d7d6=_0x58d7d6[_0x216b25(0x21b)]();return _0x298a57&&_0x3e049e&&_0x14a683?_0x58d7d6[_0x298a57][_0x3e049e][_0x14a683]:_0x298a57&&_0x3e049e?_0x58d7d6[_0x298a57][_0x3e049e]:_0x298a57?_0x58d7d6[_0x298a57]:_0x58d7d6;}static[a0_0x135e89(0x1e0)](_0xa1b591,_0x4f6d22){document['dispatchEvent'](new CustomEvent(_0xa1b591,{'detail':_0x4f6d22}));}static['showToast'](_0x1f5834,_0x1b92c3){const _0xd81076=a0_0x135e89;document[_0xd81076(0x223)](new CustomEvent('notify',{'detail':{'type':_0x1f5834,'message':_0x1b92c3}}));}static async[a0_0x135e89(0x1e8)](_0x534598,_0x404da4,_0x30cbe4,_0x10b2b0,_0x593ecd){const _0x129126=a0_0x135e89;let _0x1f36b7={'title':TermsUtil['t'](_0x534598)||_0x534598,'text':TermsUtil['t'](_0x404da4)||_0x404da4};return _0x30cbe4&&(_0x1f36b7[_0x129126(0x1df)]=_0x30cbe4),_0x10b2b0&&(_0x1f36b7[_0x129126(0x1f6)]=TermsUtil[_0x129126(0x1e9)](_0x10b2b0)),_0x593ecd&&(_0x1f36b7[_0x129126(0x205)]=TermsUtil['tButton'](_0x593ecd)),await CustomAlert(_0x1f36b7);}static['getFilterFormData'](_0x58d6d5){const _0x3eaea3=a0_0x135e89;if(ValueUtil[_0x3eaea3(0x219)](_0x58d6d5)){let _0x10b477=_0x58d6d5[_0x3eaea3(0x1f7)]();ValueUtil[_0x3eaea3(0x219)](_0x10b477)&&_0x10b477[_0x3eaea3(0x1ef)](_0x536d2b=>{const _0x5b6b33=_0x3eaea3;ValueUtil['isNotEmpty'](_0x536d2b[_0x5b6b33(0x228)])&&(item[_0x536d2b[_0x5b6b33(0x207)]]=_0x536d2b['value']?_0x536d2b[_0x5b6b33(0x228)]:null);});}return{};}static[a0_0x135e89(0x1dd)](_0x2a55d6,_0x2f3b70,_0x45b1f6){const _0x2274fb=a0_0x135e89;if(ValueUtil[_0x2274fb(0x219)](_0x2a55d6)){let _0x21dcb6=_0x2a55d6[_0x2274fb(0x210)]?.[_0x2274fb(0x1d9)]('[name=\x27'+_0x2f3b70+'\x27]');ValueUtil['isNotEmpty'](_0x21dcb6)&&(_0x21dcb6[_0x2274fb(0x228)]=_0x45b1f6);}}static[a0_0x135e89(0x1f5)](_0x5e5037,_0x139a2a,_0xf97c07,_0x1173a4){return getEditor(_0x5e5037)('',_0x139a2a,_0xf97c07,_0x1173a4,{});}static[a0_0x135e89(0x20d)](_0x28ef3e,_0x4a62dc){const _0x50f318=a0_0x135e89;UiUtil[_0x50f318(0x213)](_0x28ef3e)[_0x50f318(0x228)]=_0x4a62dc;}static[a0_0x135e89(0x213)](_0x315a17){const _0x5c882d=a0_0x135e89;let _0x5ce43f=_0x315a17[_0x5c882d(0x1f3)]();return'code-editor'==_0x5ce43f?_0x315a17[_0x5c882d(0x210)][_0x5c882d(0x1d9)](_0x5c882d(0x1fa)):_0x5c882d(0x206)==_0x5ce43f?_0x315a17['renderRoot'][_0x5c882d(0x1d9)](_0x5c882d(0x206)):'select-combo'==_0x5ce43f?_0x315a17[_0x5c882d(0x210)][_0x5c882d(0x1d9)](_0x5c882d(0x202))[_0x5c882d(0x1de)]:_0x5c882d(0x226)==_0x5ce43f?_0x315a17['renderRoot']['querySelector']('ox-input-barcode')['renderRoot'][_0x5c882d(0x1d9)](_0x5c882d(0x212)):_0x315a17[_0x5c882d(0x210)][_0x5c882d(0x1de)][_0x5c882d(0x1ee)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x507267=a0_0x43e8;(function(_0x1f3112,_0x4fb15a){const _0xb24e62=a0_0x43e8,_0x34384c=_0x1f3112();while(!![]){try{const _0x3a3c30=-parseInt(_0xb24e62(0x1b9))/0x1+parseInt(_0xb24e62(0x1c0))/0x2+-parseInt(_0xb24e62(0x1a3))/0x3+parseInt(_0xb24e62(0x1b3))/0x4*(-parseInt(_0xb24e62(0x1b7))/0x5)+parseInt(_0xb24e62(0x1be))/0x6+-parseInt(_0xb24e62(0x1bd))/0x7*(parseInt(_0xb24e62(0x1a5))/0x8)+parseInt(_0xb24e62(0x1b5))/0x9*(parseInt(_0xb24e62(0x1aa))/0xa);if(_0x3a3c30===_0x4fb15a)break;else _0x34384c['push'](_0x34384c['shift']());}catch(_0x420849){_0x34384c['push'](_0x34384c['shift']());}}}(a0_0xacdc,0xa1cd6));import a0_0x1c9198 from'lodash-es/isEqual';function a0_0x43e8(_0x3575d4,_0x31ea0b){const _0xacdc69=a0_0xacdc();return a0_0x43e8=function(_0x43e899,_0x23c478){_0x43e899=_0x43e899-0x1a3;let _0x7a43bd=_0xacdc69[_0x43e899];return _0x7a43bd;},a0_0x43e8(_0x3575d4,_0x31ea0b);}import{TermsUtil}from'./terms-util';export class ValueUtil{static[a0_0x507267(0x1a8)](_0x33a5af){const _0x160ec8=a0_0x507267;if(void 0x0===_0x33a5af)return!0x0;if(null===_0x33a5af)return!0x0;if(_0x160ec8(0x1b6)==typeof _0x33a5af)return!0x1;if(_0x160ec8(0x1bb)==typeof _0x33a5af||_0x160ec8(0x1ac)==typeof _0x33a5af){if(''==_0x33a5af)return!0x0;}else{if(Array[_0x160ec8(0x1bc)](_0x33a5af)){if(0x0==_0x33a5af['length'])return!0x0;}else{if(_0x160ec8(0x1b1)==typeof _0x33a5af&&0x0==Object[_0x160ec8(0x1c1)](_0x33a5af)[_0x160ec8(0x1b2)])return!0x0;}}return!0x1;}static[a0_0x507267(0x1a9)](_0x30b81a){const _0x314bbb=a0_0x507267;return!ValueUtil[_0x314bbb(0x1a8)](_0x30b81a);}static[a0_0x507267(0x1ae)](_0x2948b1,_0x15d149){return a0_0x1c9198(_0x2948b1,_0x15d149);}static[a0_0x507267(0x1b8)](_0x1a6c0c,_0x326a3d){const _0x3e67ce=a0_0x507267;return ValueUtil[_0x3e67ce(0x1a8)](_0x1a6c0c)?_0x326a3d||0x0:parseInt(_0x1a6c0c);}static[a0_0x507267(0x1ad)](_0x1e033d){const _0x75ad50=a0_0x507267;return!ValueUtil['isEmpty'](_0x1e033d)&&(_0x75ad50(0x1a7)==_0x1e033d||'t'==_0x1e033d||'TRUE'==_0x1e033d||'T'==_0x1e033d||'on'==_0x1e033d||'ON'==_0x1e033d);}static[a0_0x507267(0x1a6)](_0x333226,_0x5af465,_0x3e1191){const _0xd8c0ac=a0_0x507267;let _0x2f14fd=!0x0;return _0x3e1191[_0xd8c0ac(0x1ba)](_0x2111f1=>{const _0x46f233=_0xd8c0ac;let _0x2bc0bb=_0x333226[_0x2111f1];if('*'===_0x2bc0bb)return;let _0x35bc18=_0x5af465[_0x2111f1]||'';ValueUtil[_0x46f233(0x1a8)](_0x2bc0bb)?ValueUtil[_0x46f233(0x1a9)](_0x35bc18)&&(_0x2f14fd=!0x1):_0x2bc0bb!=_0x35bc18&&(_0x2f14fd=!0x1);}),_0x2f14fd;}static[a0_0x507267(0x1b4)](_0x464da6,_0x12f445,_0x5c2e9c,_0x3bc252){const _0x55781f=a0_0x507267;let _0x2a18ac=ValueUtil[_0x55781f(0x1ab)](_0x12f445,_0x5c2e9c);return ValueUtil[_0x55781f(0x1a9)](_0x2a18ac)&&(_0x464da6[_0x5c2e9c]=!0x0===_0x3bc252?TermsUtil['t'](_0x2a18ac):_0x2a18ac),_0x464da6;}static[a0_0x507267(0x1ab)](_0x2e512a,..._0x18991f){const _0x1b68b0=a0_0x507267;if(arguments[_0x1b68b0(0x1b2)]<=0x1)return;let _0x588653=_0x18991f[0x0];if(ValueUtil['isEmpty'](_0x2e512a[_0x588653]))return;let _0x122e83=_0x2e512a[_0x588653];return _0x18991f[_0x1b68b0(0x1b2)]>0x1?ValueUtil['getParams'](_0x122e83,..._0x18991f[_0x1b68b0(0x1a4)](0x1)):_0x122e83;}static[a0_0x507267(0x1af)](_0x1fdd5e,_0x4bd73e,..._0x45dca9){const _0x3dfc80=a0_0x507267;return _0x4bd73e=_0x4bd73e||[],_0x45dca9=_0x45dca9||Object[_0x3dfc80(0x1c1)](_0x1fdd5e),ValueUtil['isNotEmpty'](_0x45dca9)&&(_0x4bd73e=_0x1fdd5e[_0x3dfc80(0x1bf)]((_0x1cedf1,_0x5828b4)=>{const _0x3d5e7d=_0x3dfc80;let _0x2da829=_0x4bd73e[_0x3d5e7d(0x1b2)]>_0x5828b4?_0x4bd73e[_0x5828b4]:{};return ValueUtil['populateObject'](_0x1cedf1,_0x2da829,_0x45dca9);})),_0x4bd73e;}static[a0_0x507267(0x1b0)](_0x5bdcb6,_0x35e314,..._0xa2a7f3){const _0xda5567=a0_0x507267;return _0x35e314=_0x35e314||{},_0xa2a7f3=_0xa2a7f3||Object['keys'](_0x5bdcb6),ValueUtil['isNotEmpty'](_0xa2a7f3)&&_0xa2a7f3[_0xda5567(0x1ba)](_0x345725=>{_0x35e314[_0x345725]=_0x5bdcb6[_0x345725];}),_0x35e314;}}function a0_0xacdc(){const _0x18d44b=['7XDzOkO','5231586YLuidR','map','2388958IUBFBi','keys','1177794sSnuSy','slice','7090696NXtwFF','compareObjectValues','true','isEmpty','isNotEmpty','87280zrBLqa','getParams','number','toBoolean','isEquals','populateArray','populateObject','object','length','536xxzjRb','setParams','54YxGdAK','boolean','2165TzWGvT','toInteger','119079sGvgzf','forEach','string','isArray'];a0_0xacdc=function(){return _0x18d44b;};return a0_0xacdc();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x2a5b(){const _0x201222=['7546AwoFqu','8110ABIVpe','42078AOUsZx','7AjDUNC','1015cSdlvW','1272248AMsneH','32oLyLRS','24587832rLKTjc','24240HxyprJ','210794QYCFGC','21LhCSJu','11632914YLKsyv'];a0_0x2a5b=function(){return _0x201222;};return a0_0x2a5b();}function a0_0x42cc(_0x223a9e,_0x459317){const _0x2a5ba4=a0_0x2a5b();return a0_0x42cc=function(_0x42ccd5,_0x355638){_0x42ccd5=_0x42ccd5-0xf6;let _0x2c7d19=_0x2a5ba4[_0x42ccd5];return _0x2c7d19;},a0_0x42cc(_0x223a9e,_0x459317);}(function(_0x28669f,_0x5cb194){const _0x5226e7=a0_0x42cc,_0x28d378=_0x28669f();while(!![]){try{const _0x27c46e=-parseInt(_0x5226e7(0xff))/0x1*(parseInt(_0x5226e7(0xf9))/0x2)+parseInt(_0x5226e7(0xfe))/0x3*(-parseInt(_0x5226e7(0xf6))/0x4)+-parseInt(_0x5226e7(0x100))/0x5*(-parseInt(_0x5226e7(0xf8))/0x6)+-parseInt(_0x5226e7(0xfa))/0x7*(-parseInt(_0x5226e7(0x101))/0x8)+-parseInt(_0x5226e7(0xfb))/0x9+parseInt(_0x5226e7(0xfd))/0xa*(-parseInt(_0x5226e7(0xfc))/0xb)+parseInt(_0x5226e7(0xf7))/0xc;if(_0x27c46e===_0x5cb194)break;else _0x28d378['push'](_0x28d378['shift']());}catch(_0x318d96){_0x28d378['push'](_0x28d378['shift']());}}}(a0_0x2a5b,0x9e098));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_0x49670e=a0_0x2051;(function(_0x49a012,_0x428e5f){const _0x2773b8=a0_0x2051,_0x3071b7=_0x49a012();while(!![]){try{const _0x4c4d5d=parseInt(_0x2773b8(0x17b))/0x1*(parseInt(_0x2773b8(0x17c))/0x2)+parseInt(_0x2773b8(0x185))/0x3*(parseInt(_0x2773b8(0x179))/0x4)+-parseInt(_0x2773b8(0x17d))/0x5+-parseInt(_0x2773b8(0x16a))/0x6+parseInt(_0x2773b8(0x16f))/0x7+-parseInt(_0x2773b8(0x18d))/0x8+parseInt(_0x2773b8(0x187))/0x9;if(_0x4c4d5d===_0x428e5f)break;else _0x3071b7['push'](_0x3071b7['shift']());}catch(_0x215542){_0x3071b7['push'](_0x3071b7['shift']());}}}(a0_0x528b,0x49887));import'@material/mwc-icon';import{html,LitElement}from'lit';import{connect}from'pwa-helpers';function a0_0x528b(){const _0x255a1b=['2059752XydvZF','scrollLeft','renderRoot','#force','mousewheel','79310nHiyly','activeTopLevel','setAttribute','name','detail','currentTarget','path','map','render','onWheelEvent','12Qjduip','stopPropagation','1tRnrDW','898762YZuDKk','2423210XgoreF','preventDefault','target','transitionend','min','type','transitionstart','description','432489cwdFrl','styles','4531833yBTrQS','firstUpdated','active-toplevel','#wrap','addEventListener','wheelDelta','2140896SuworL','removeAttribute','submenu','group','querySelector','icon','menus','bind','settled'];a0_0x528b=function(){return _0x255a1b;};return a0_0x528b();}import{navigate,store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';function a0_0x2051(_0x32c571,_0x4f1d8a){const _0x528b8f=a0_0x528b();return a0_0x2051=function(_0x20513d,_0x26985c){_0x20513d=_0x20513d-0x166;let _0x5750d9=_0x528b8f[_0x20513d];return _0x5750d9;},a0_0x2051(_0x32c571,_0x4f1d8a);}import{DynamicMenuLandscapeStyles}from'./dynamic-menu-landscape-styles';export class DynamicMenuLandscape extends connect(store)(LitElement){static get[a0_0x49670e(0x186)](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get['properties'](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x49670e(0x177)](){const _0x35dcd3=a0_0x49670e,{menus:_0x5c7b66=[],activeTopLevel:_0x5a00c0,activeMenu:_0x4b1ad8}=this;return html`
|
|
2
2
|
<div id="wrap">
|
|
3
3
|
<ul>
|
|
4
|
-
${
|
|
5
|
-
<li ?active=${
|
|
6
|
-
<a href=${
|
|
7
|
-
${
|
|
4
|
+
${_0x5c7b66[_0x35dcd3(0x176)](_0x16ba52=>_0x35dcd3(0x190)==_0x16ba52[_0x35dcd3(0x182)]?html``:html`
|
|
5
|
+
<li ?active=${_0x16ba52===_0x5a00c0}>
|
|
6
|
+
<a href=${_0x16ba52[_0x35dcd3(0x175)]||'#'}>
|
|
7
|
+
${_0x16ba52[_0x35dcd3(0x166)]?html`<mwc-icon>${_0x16ba52[_0x35dcd3(0x166)]}</mwc-icon>`:html``} ${_0x16ba52['name']}
|
|
8
8
|
</a>
|
|
9
9
|
|
|
10
10
|
<ul submenus>
|
|
11
|
-
${
|
|
12
|
-
<li ?active=${
|
|
13
|
-
<a href=${
|
|
11
|
+
${_0x16ba52[_0x35dcd3(0x167)]?.[_0x35dcd3(0x176)](_0x4723b2=>html`
|
|
12
|
+
<li ?active=${_0x4723b2===_0x4b1ad8}>
|
|
13
|
+
<a href=${_0x4723b2[_0x35dcd3(0x175)]||'#'}> ${_0x4723b2[_0x35dcd3(0x172)]} </a>
|
|
14
14
|
</li>
|
|
15
15
|
`)}
|
|
16
16
|
</ul>
|
|
17
17
|
|
|
18
18
|
<div description>
|
|
19
|
-
${
|
|
19
|
+
${_0x16ba52[_0x35dcd3(0x166)]?html`<mwc-icon>${_0x16ba52[_0x35dcd3(0x166)]}</mwc-icon>`:html``} ${_0x16ba52[_0x35dcd3(0x184)]||''}
|
|
20
20
|
</div>
|
|
21
21
|
</li>
|
|
22
22
|
`)}
|
|
23
23
|
</ul>
|
|
24
24
|
</div>
|
|
25
|
-
`;}[
|
|
25
|
+
`;}[a0_0x49670e(0x188)](){const _0x2e4e25=a0_0x49670e;this['renderRoot'][_0x2e4e25(0x191)](_0x2e4e25(0x18a))[_0x2e4e25(0x18b)](_0x2e4e25(0x16e),this[_0x2e4e25(0x178)][_0x2e4e25(0x168)](this),!0x1),this[_0x2e4e25(0x16c)][_0x2e4e25(0x18b)]('click',_0x331ad6=>{const _0x4e472e=_0x2e4e25;if(_0x331ad6['target'][_0x4e472e(0x18f)]){_0x331ad6[_0x4e472e(0x17a)](),_0x331ad6['preventDefault']();let _0x1dd265=_0x331ad6[_0x4e472e(0x17f)][_0x4e472e(0x18f)];return void this['dispatchEvent'](new CustomEvent(_0x4e472e(0x189),{'bubbles':!0x0,'detail':this[_0x4e472e(0x170)]===_0x1dd265?void 0x0:_0x1dd265}));}let _0xb6bd=_0x331ad6[_0x4e472e(0x17f)]['href'];_0xb6bd&&location['href']===_0xb6bd&&navigate(_0xb6bd+_0x4e472e(0x16d),!0x0);}),this[_0x2e4e25(0x16c)][_0x2e4e25(0x18b)](_0x2e4e25(0x183),_0x5091ce=>{const _0x100c38=_0x2e4e25;_0x5091ce[_0x100c38(0x17f)][_0x100c38(0x18e)](_0x100c38(0x169));}),this['renderRoot'][_0x2e4e25(0x18b)](_0x2e4e25(0x180),_0x50e72b=>{const _0x4a87a0=_0x2e4e25;_0x50e72b[_0x4a87a0(0x17f)][_0x4a87a0(0x171)](_0x4a87a0(0x169),'');});}[a0_0x49670e(0x178)](_0x30af16){const _0x1522af=a0_0x49670e,_0x4a755e=_0x30af16[_0x1522af(0x174)];var _0x255790=Math['max'](-0x1,Math[_0x1522af(0x181)](0x1,_0x30af16[_0x1522af(0x18c)]||-_0x30af16[_0x1522af(0x173)]));_0x4a755e[_0x1522af(0x16b)]-=0xa*_0x255790,_0x30af16[_0x1522af(0x17e)]();}}customElements['define']('dynamic-menu-landscape',DynamicMenuLandscape);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var a0_0x5eea69=a0_0x17be;(function(_0x55bcba,_0x1a5365){var _0x98492d=a0_0x17be,_0x1a1d27=_0x55bcba();while(!![]){try{var _0x32e4df=parseInt(_0x98492d(0xa4))/0x1*(-parseInt(_0x98492d(0xa5))/0x2)+-parseInt(_0x98492d(0x8e))/0x3*(parseInt(_0x98492d(0xa0))/0x4)+parseInt(_0x98492d(0x8a))/0x5+-parseInt(_0x98492d(0x85))/0x6*(parseInt(_0x98492d(0x94))/0x7)+parseInt(_0x98492d(0x98))/0x8+-parseInt(_0x98492d(0x88))/0x9+parseInt(_0x98492d(0x9f))/0xa;if(_0x32e4df===_0x1a5365)break;else _0x1a1d27['push'](_0x1a1d27['shift']());}catch(_0x2e1bc7){_0x1a1d27['push'](_0x1a1d27['shift']());}}}(a0_0x4488,0xc0760));import'@material/mwc-icon';import'./dynamic-menu-portrait';import'./dynamic-menu-landscape';import{css,html,LitElement}from'lit';import{connect}from'pwa-helpers';import{store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';function a0_0x17be(_0x35a3b9,_0x1ed96a){var _0x448895=a0_0x4488();return a0_0x17be=function(_0x17bef6,_0x553af5){_0x17bef6=_0x17bef6-0x82;var _0x4646de=_0x448895[_0x17bef6];return _0x4646de;},a0_0x17be(_0x35a3b9,_0x1ed96a);}function isActiveMenu(_0x196915,_0x2e15f){var _0xdd05b2=a0_0x17be;return _0x196915[_0xdd05b2(0xa3)]?.[_0xdd05b2(0x90)]('?')[0x0]===_0x2e15f||_0x196915[_0xdd05b2(0x99)]&&'function'==typeof _0x196915[_0xdd05b2(0x99)]&&_0x196915['active']['call'](_0x196915,{'path':_0x2e15f});}function a0_0x4488(){var _0x647c88=['split','portrait','metaUI','_findActivePage','35WgZyUU','properties','active-toplevel','preventDefault','1561864VbwrNY','active','updated','orientation','page','slotTemplate','_path','20725450iaerjj','5856mgHsND','stopPropagation','define','path','288399sLykQx','4BYUwCN','detail','route','landscape','menus','addEventListener','dynamic-menu-part','has','1318050qgLOdk','resourceId','stateChanged','676944UcyCvn','_activeTopLevel','4934135yMNvjl','setAttribute','removeAttribute','find','1467MPjzif','firstUpdated'];a0_0x4488=function(){return _0x647c88;};return a0_0x4488();}export class DynamicMenuPart extends connect(store)(LitElement){static get[a0_0x5eea69(0x95)](){return{'page':String,'resourceId':String,'menus':Array,'orientation':String,'_activeTopLevel':Object,'_activeMenu':Object,'_path':String};}static get['styles'](){return[ScrollbarStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -27,18 +27,18 @@ function a0_0x5ba5(){var _0x5ad587=['6hsnQok','menus','firstUpdated','page','act
|
|
|
27
27
|
dynamic-menu-landscape {
|
|
28
28
|
flex: 1;
|
|
29
29
|
}
|
|
30
|
-
`];}[
|
|
30
|
+
`];}['render'](){var _0x4ce721=a0_0x5eea69;return html`
|
|
31
31
|
<slot name="head"></slot>
|
|
32
|
-
${
|
|
33
|
-
.menus=${this[
|
|
32
|
+
${_0x4ce721(0xa8)!==this[_0x4ce721(0x9b)]?html`<dynamic-menu-portrait
|
|
33
|
+
.menus=${this['menus']}
|
|
34
34
|
.activeTopLevel=${this['_activeTopLevel']}
|
|
35
|
-
.activeMenu=${this[
|
|
36
|
-
.path=${this[
|
|
35
|
+
.activeMenu=${this['_activeMenu']}
|
|
36
|
+
.path=${this[_0x4ce721(0x9e)]}
|
|
37
37
|
></dynamic-menu-portrait>`:html`<dynamic-menu-landscape
|
|
38
|
-
.menus=${this[
|
|
39
|
-
.activeTopLevel=${this[
|
|
40
|
-
.activeMenu=${this[
|
|
41
|
-
.path=${this[
|
|
38
|
+
.menus=${this[_0x4ce721(0xa9)]}
|
|
39
|
+
.activeTopLevel=${this[_0x4ce721(0x89)]}
|
|
40
|
+
.activeMenu=${this['_activeMenu']}
|
|
41
|
+
.path=${this[_0x4ce721(0x9e)]}
|
|
42
42
|
></dynamic-menu-landscape>`}
|
|
43
43
|
<slot name="tail"></slot>
|
|
44
|
-
`;}[
|
|
44
|
+
`;}[a0_0x5eea69(0x8f)](){var _0x4d9f5e=a0_0x5eea69;this['renderRoot'][_0x4d9f5e(0x82)](_0x4d9f5e(0x96),_0x5d1ea5=>{var _0x2a273d=_0x4d9f5e;_0x5d1ea5[_0x2a273d(0xa1)](),_0x5d1ea5[_0x2a273d(0x97)](),this[_0x2a273d(0x89)]=_0x5d1ea5[_0x2a273d(0xa6)];});}[a0_0x5eea69(0x9a)](_0xd4ef59){var _0x5c08df=a0_0x5eea69;(_0xd4ef59[_0x5c08df(0x84)](_0x5c08df(0xa9))||_0xd4ef59[_0x5c08df(0x84)](_0x5c08df(0x9c))||_0xd4ef59[_0x5c08df(0x84)](_0x5c08df(0x86)))&&this[_0x5c08df(0x93)](),_0xd4ef59[_0x5c08df(0x84)](_0x5c08df(0x9b))&&(_0x5c08df(0x91)==this[_0x5c08df(0x9b)]?this[_0x5c08df(0x8c)](_0x5c08df(0xa8)):this[_0x5c08df(0x8b)](_0x5c08df(0xa8),!0x0)),_0xd4ef59['has'](_0x5c08df(0x9d))&&this['replaceChild'](this[_0x5c08df(0x9d)]);}[a0_0x5eea69(0x87)](_0x1ac5ab){var _0x2ae7df=a0_0x5eea69;this[_0x2ae7df(0x9c)]=_0x1ac5ab[_0x2ae7df(0xa7)][_0x2ae7df(0x9c)],this[_0x2ae7df(0x86)]=_0x1ac5ab['route']['resourceId'],this[_0x2ae7df(0xa9)]=_0x1ac5ab[_0x2ae7df(0x92)][_0x2ae7df(0xa9)]||[],this[_0x2ae7df(0x9d)]=_0x1ac5ab['metaUI'][_0x2ae7df(0x9d)];}[a0_0x5eea69(0x93)](){var _0x40de20=a0_0x5eea69,_0x28560d,_0x1fcae7=this[_0x40de20(0x86)]?this['page']+'/'+this[_0x40de20(0x86)]:this[_0x40de20(0x9c)],_0x195e5e=this['menus']||[];this[_0x40de20(0x89)]=_0x195e5e[_0x40de20(0x8d)](_0x1b5e4f=>isActiveMenu(_0x1b5e4f,_0x1fcae7)?(_0x28560d=_0x1b5e4f,!0x0):_0x1b5e4f[_0x40de20(0xa9)]?!!(_0x28560d=_0x1b5e4f[_0x40de20(0xa9)]['find'](_0x546b2c=>isActiveMenu(_0x546b2c,_0x1fcae7))):void 0x0),this[_0x40de20(0x9e)]=_0x1fcae7,this['_activeMenu']=_0x28560d||this['_activeTopLevel'];}}customElements[a0_0x5eea69(0xa2)](a0_0x5eea69(0x83),DynamicMenuPart);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2d8915,_0x276d9a){const _0x1307e7=a0_0x2009,_0x58b4d8=_0x2d8915();while(!![]){try{const _0x409fc7=parseInt(_0x1307e7(0x173))/0x1+-parseInt(_0x1307e7(0x16b))/0x2+-parseInt(_0x1307e7(0x16e))/0x3*(parseInt(_0x1307e7(0x16f))/0x4)+-parseInt(_0x1307e7(0x16c))/0x5+parseInt(_0x1307e7(0x174))/0x6*(-parseInt(_0x1307e7(0x171))/0x7)+-parseInt(_0x1307e7(0x16d))/0x8+parseInt(_0x1307e7(0x170))/0x9*(parseInt(_0x1307e7(0x172))/0xa);if(_0x409fc7===_0x276d9a)break;else _0x58b4d8['push'](_0x58b4d8['shift']());}catch(_0x31dc9c){_0x58b4d8['push'](_0x58b4d8['shift']());}}}(a0_0x405a,0x20bc8));function a0_0x405a(){const _0x2f2a63=['9580YdlNre','8222UUbszW','6LXyRMl','254454yfPTXR','1130545qbnfaB','1926424rqJjMe','3DisEnY','529196XUiPAU','9927QjXAAl','1430590XOUVif'];a0_0x405a=function(){return _0x2f2a63;};return a0_0x405a();}function a0_0x2009(_0x1d7968,_0x10e9b9){const _0x405af1=a0_0x405a();return a0_0x2009=function(_0x2009ca,_0x2dade7){_0x2009ca=_0x2009ca-0x16b;let _0x5cca6e=_0x405af1[_0x2009ca];return _0x5cca6e;},a0_0x2009(_0x1d7968,_0x10e9b9);}import{css}from'lit';export const DynamicMenuPortraitStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|