@things-factory/meta-ui 6.1.21 → 6.1.22
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 +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 +8 -8
- package/client/component/popup/meta-object-selector-popup.js +11 -11
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +1 -1
- package/client/mixin/meta-main-tab-mixin.js +1 -1
- package/client/mixin/meta-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-detail-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/activity/meta-activity-list-page.js +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +3 -3
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/entity/config-entity.js +29 -29
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-main-tab-element.js +1 -1
- package/client/pages/meta-main-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-detail-element.js +1 -1
- package/client/pages/meta-tab-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +6 -6
- package/client/pages/work-code/work-code-detail-popup.js +1 -1
- package/client/pages/work-code/work-code-page.js +1 -1
- package/client/reducers/main.js +1 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +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 +2 -2
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +5 -5
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-activity/meta-activity-mutation.js +1 -1
- package/server/service/meta-activity/meta-activity-query.js +1 -1
- package/server/service/meta-activity/meta-activity-type.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
- package/server/service/work-code/work-code-mutation.js +1 -1
- package/server/service/work-code/work-code-query.js +1 -1
- package/server/service/work-code/work-code-type.js +1 -1
- package/server/service/work-code/work-code.js +1 -1
- package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
- package/server/service/work-code-detail/work-code-detail-query.js +1 -1
- package/server/service/work-code-detail/work-code-detail-type.js +1 -1
- package/server/service/work-code-detail/work-code-detail.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3cc3ae=a0_0x3ce7;function a0_0x24d3(){const _0x3cf7d5=['updateMultiple','updateMultipleData','routingType','iconPath','hidden','fetch','children','filter','callScenario','hiddenFlag','records','question','searchByPagination','noteq','showGraphqlException','find','searchMyDynamicMenus','imex','showGraphqlErrorResponse','gutter','data','xlsx','\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20parent\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20children{\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20\x20\x20menuType\x0a\x20\x20\x20\x20\x20\x20\x20\x20category\x0a\x20\x20\x20\x20\x20\x20\x20\x20routingType\x0a\x20\x20\x20\x20\x20\x20\x20\x20routing\x0a\x20\x20\x20\x20\x20\x20\x20\x20resourceUrl\x0a\x20\x20\x20\x20\x20\x20\x20\x20iconPath\x0a\x20\x20\x20\x20\x20\x20\x20\x20hiddenFlag\x0a\x20\x20\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20menuType\x0a\x20\x20\x20\x20\x20\x20category\x0a\x20\x20\x20\x20\x20\x20routingType\x0a\x20\x20\x20\x20\x20\x20routing\x0a\x20\x20\x20\x20\x20\x20resourceUrl\x0a\x20\x20\x20\x20\x20\x20iconPath\x0a\x20\x20\x20\x20','errors','gridPersonalizeTemplates','items','Graphql\x20Error','routing','cancel','2473737mECLoo','extensions','category','arrangeMenuRoutes','deleteListByGristSelected','text.nothing_selected','__origin__','message','parse','numberOfToDos','50vWEeEg','isNotEmpty','workCodeByName','__dirtyfields__','isArray','resourceUrl','getCodeByEntity','undefined','includes','numberOfApprovalPendings','splice','__selected__','showToast','unshift','description','MENU','__dirty__','group','record','939666lupRmv','HIDDEN-PAGE','forEach','text.NOTHING_CHANGED','draft-list','object','networkError','createdAt','numberOfDrafts','tText','1881504QmtbcO','name','findIndex','info','map','searchMenuGridPersnalTemplate','success\x20to\x20save','display','total','type','path','button.','dispatch','menuType','_config','success\x20to\x20process','140UcKXCb','text.are_you_sure','selected','getSelectedIdList','length','result','details','cuFlag','delete','113610fEGgFc','getWorkCodeByName','rank','8POlGqY','error','deleteListByIds','reduce','success\x20to\x20delete','SCREEN','query','template','780410bZchAa','getCodeSelectorData','menus','badge','active','765783XZGZvK','HOME','patchesForUpdateMultiple','text.nothing_changed','myDynamicMenus','confirm','isEmpty','showAlertPopup','parent','tMenu','push','test','key','columns','165fjoDWJ','codeItems','9699LfOeQj','runScenario','exportableData','dirtyRecords','value'];a0_0x24d3=function(){return _0x3cf7d5;};return a0_0x24d3();}(function(_0x505585,_0x44b297){const _0x4f49aa=a0_0x3ce7,_0xe3d721=_0x505585();while(!![]){try{const _0x48d5e7=-parseInt(_0x4f49aa(0x256))/0x1*(parseInt(_0x4f49aa(0x200))/0x2)+-parseInt(_0x4f49aa(0x213))/0x3+parseInt(_0x4f49aa(0x21d))/0x4+parseInt(_0x4f49aa(0x22d))/0x5*(-parseInt(_0x4f49aa(0x236))/0x6)+-parseInt(_0x4f49aa(0x1f6))/0x7*(parseInt(_0x4f49aa(0x239))/0x8)+parseInt(_0x4f49aa(0x246))/0x9+-parseInt(_0x4f49aa(0x241))/0xa*(-parseInt(_0x4f49aa(0x254))/0xb);if(_0x48d5e7===_0x44b297)break;else _0xe3d721['push'](_0xe3d721['shift']());}catch(_0x3921b7){_0xe3d721['push'](_0xe3d721['shift']());}}}(a0_0x24d3,0x4605a));import{store,gqlContext}from'@things-factory/shell';import{getCodeByName}from'@things-factory/code-base';function a0_0x3ce7(_0x5a298d,_0x29b51d){const _0x24d374=a0_0x24d3();return a0_0x3ce7=function(_0x3ce7d5,_0x3bb1da){_0x3ce7d5=_0x3ce7d5-0x1ee;let _0x3ff3e6=_0x24d374[_0x3ce7d5];return _0x3ff3e6;},a0_0x3ce7(_0x5a298d,_0x29b51d);}import{EXPORT}from'@things-factory/export-base';import{gqlBuilder}from'@things-factory/utils';import{client}from'@operato/graphql';import{TermsUtil}from'./terms-util';import{UiUtil}from'./ui-util';import a0_0x43458d from'graphql-tag';import{ValueUtil}from'./value-util';import{asyncReplace}from'lit/directives/async-replace.js';import a0_0xf11f22 from'i18next';import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';export class ServiceUtil{static async[a0_0x3cc3ae(0x255)](_0x903cdd){const _0x437816=a0_0x3cc3ae;if(Array[_0x437816(0x204)](_0x903cdd))return _0x903cdd[_0x437816(0x221)](_0x3bb28e=>_0x437816(0x218)==typeof _0x3bb28e?{'name':_0x3bb28e['value'],'description':_0x3bb28e[_0x437816(0x224)]}:{'name':_0x3bb28e,'description':_0x3bb28e});let _0x5f5acd=await ServiceUtil[_0x437816(0x237)](_0x903cdd);return _0x5f5acd&&_0x5f5acd['length']>0x0?_0x5f5acd:await getCodeByName(_0x903cdd);}static async['getWorkCodeByName'](_0x1fb6b4){const _0x310470=a0_0x3cc3ae,_0xec63cc=await client[_0x310470(0x23f)]({'query':a0_0x43458d`
|
|
2
2
|
query workCodeByName($name: String!) {
|
|
3
3
|
workCodeByName(name: $name) {
|
|
4
4
|
details {
|
|
@@ -8,32 +8,32 @@ const a0_0x2f1074=a0_0xe5e3;(function(_0x48a6e8,_0x4a7e43){const _0x49788b=a0_0x
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
`,'variables':{'name':
|
|
11
|
+
`,'variables':{'name':_0x1fb6b4},'context':gqlContext()});return!_0xec63cc[_0x310470(0x1f0)]&&_0xec63cc[_0x310470(0x26f)][_0x310470(0x202)]&&_0xec63cc[_0x310470(0x26f)]['workCodeByName'][_0x310470(0x233)]?_0xec63cc[_0x310470(0x26f)][_0x310470(0x202)][_0x310470(0x233)]['sort']((_0x5af74f,_0x342a31)=>_0x5af74f['rank']-_0x342a31['rank']):[];}static async[a0_0x3cc3ae(0x242)](_0x55e3b8){const _0x499947=a0_0x3cc3ae;let _0x10578c=(await ServiceUtil[_0x499947(0x255)](_0x55e3b8))[_0x499947(0x221)](_0x597c62=>({'value':_0x597c62[_0x499947(0x21e)],'display':_0x597c62[_0x499947(0x20e)]}));return _0x10578c[_0x499947(0x20d)]({'value':'','display':''}),_0x10578c;}static async['getCodeByScenario'](_0x3b776e,_0x55110d){const _0x5b0b6c=a0_0x3cc3ae;let _0x18abfc=await ServiceUtil['callScenario'](null,_0x3b776e,_0x55110d);return _0x18abfc[_0x5b0b6c(0x20d)]({'value':'','display':''}),_0x18abfc[_0x5b0b6c(0x221)](_0x4dbae2=>({'value':_0x4dbae2['name'],'display':_0x4dbae2['description']}));}static async[a0_0x3cc3ae(0x206)]({queryName:_0x12a1b8,codeField:_0x3dd88d=a0_0x3cc3ae(0x21e),dispField:_0x5b03cb='description',filters:_0x505095=[],sorters:_0x555bcd=[]}){const _0x47d089=a0_0x3cc3ae;let _0x346721='\x0a\x20\x20\x20\x20\x20\x20'+_0x3dd88d+'\x0a\x20\x20\x20\x20\x20\x20'+_0x5b03cb+'\x0a\x20\x20\x20\x20',_0x266506=await ServiceUtil[_0x47d089(0x267)](_0x12a1b8,_0x505095,_0x555bcd,0x0,0x0,_0x346721),_0x1c3bc1=[{'value':'','display':''}];return _0x266506[_0x47d089(0x265)]['forEach'](_0x4275b0=>{const _0x35750d=_0x47d089;_0x1c3bc1[_0x35750d(0x250)]({'value':_0x4275b0[_0x3dd88d],'display':_0x4275b0[_0x5b03cb]});}),_0x1c3bc1;}static async[a0_0x3cc3ae(0x24a)](){const _0x46fa80=a0_0x3cc3ae;let _0x10d8be=await ServiceUtil[_0x46fa80(0x26b)]();return null!=_0x10d8be?ServiceUtil[_0x46fa80(0x1f9)](_0x10d8be):null;}static async[a0_0x3cc3ae(0x222)](_0x55b455){const _0x16a1fc=a0_0x3cc3ae;let _0x421e5e=[{'name':'menu.id','operator':'eq','value':_0x55b455}],_0x453365=await ServiceUtil['searchByPagination'](_0x16a1fc(0x1f1),_0x421e5e,[],0x0,0x0,'id,template');return 0x0==_0x453365['total']?{}:{'id':_0x453365[_0x16a1fc(0x265)][0x0]['id'],'template':JSON[_0x16a1fc(0x1fe)](_0x453365[_0x16a1fc(0x265)][0x0][_0x16a1fc(0x240)])};}static['arrangeMenuRoutes'](_0x3d2f9d){const _0x9bb181=a0_0x3cc3ae;let _0x4729e7=[];_0x3d2f9d[_0x9bb181(0x215)](_0xf6a025=>{const _0x194262=_0x9bb181;_0x4729e7[_0x194262(0x250)](_0xf6a025),_0xf6a025[_0x194262(0x261)]&&(_0xf6a025['children']['sort'](function(_0x4fd952,_0x479d6f){const _0x4ddcf4=_0x194262;return _0x4fd952[_0x4ddcf4(0x238)]-_0x479d6f[_0x4ddcf4(0x238)];}),_0xf6a025[_0x194262(0x261)][_0x194262(0x215)](_0x4266c9=>{const _0x52c7c1=_0x194262;0x1!=_0x4266c9[_0x52c7c1(0x264)]&&(_0x4266c9[_0x52c7c1(0x24e)]=_0xf6a025,_0x4729e7['push'](_0x4266c9));}));});let _0x2fe4c9=_0x4729e7['map'](_0x4153be=>{const _0x2d7fd8=_0x9bb181;if('GROUP'==_0x4153be[_0x2d7fd8(0x22a)]||_0x2d7fd8(0x20f)==_0x4153be[_0x2d7fd8(0x22a)]){let _0x19fc07={'id':_0x4153be['id'],'parent':!0x0,'name':TermsUtil[_0x2d7fd8(0x24f)](_0x4153be[_0x2d7fd8(0x21e)]),'icon':_0x4153be[_0x2d7fd8(0x25e)],'type':'GROUP'==_0x4153be[_0x2d7fd8(0x22a)]?_0x2d7fd8(0x211):'','menus':[]};return _0x4153be[_0x2d7fd8(0x1f4)]&&(_0x19fc07[_0x2d7fd8(0x227)]=_0x4153be[_0x2d7fd8(0x1f4)]),_0x19fc07;}return{'id':'0'};})[_0x9bb181(0x262)](_0xabb306=>'0'!=_0xabb306['id']),_0x4073e3=_0x4729e7[_0x9bb181(0x221)](_0x233935=>{const _0x483a6f=_0x9bb181;if('SCREEN'==_0x233935[_0x483a6f(0x22a)]||_0x483a6f(0x214)==_0x233935[_0x483a6f(0x22a)]){let _0x2a1994=_0x2fe4c9[_0x483a6f(0x26a)](_0x539745=>_0x539745['id']==_0x233935[_0x483a6f(0x24e)]['id']);if(_0x2a1994){let _0x11dfdd=TermsUtil[_0x483a6f(0x24f)](_0x233935['name']);return _0x483a6f(0x23e)==_0x233935[_0x483a6f(0x22a)]&&_0x2a1994[_0x483a6f(0x243)][_0x483a6f(0x250)]({'id':_0x233935['id'],'name':_0x11dfdd,'path':_0x233935[_0x483a6f(0x1f4)],'icon':_0x233935['iconPath']}),{'id':_0x233935['id'],'parent':!0x1,'parent_id':_0x2a1994['id'],'title':_0x11dfdd,'tagname':_0x233935[_0x483a6f(0x1f8)],'page':_0x233935['routing'],'template':_0x233935[_0x483a6f(0x205)],'routing_type':_0x233935['routingType']};}return{'id':'0'};}return'HOME'==_0x233935['menuType']?{'id':_0x233935['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil[_0x483a6f(0x24f)](_0x233935[_0x483a6f(0x21e)]),'tagname':_0x233935['category'],'page':_0x233935[_0x483a6f(0x1f4)],'template':_0x233935[_0x483a6f(0x205)],'routing_type':_0x233935[_0x483a6f(0x25d)]}:{'id':'0'};})[_0x9bb181(0x262)](_0x4a0875=>null!=_0x4a0875&&'0'!=_0x4a0875['id']);_0x2fe4c9[_0x9bb181(0x262)](_0x36e5e3=>_0x9bb181(0x211)==_0x36e5e3[_0x9bb181(0x226)]&&_0x36e5e3[_0x9bb181(0x243)]&&_0x36e5e3['menus']['length']>0x0)['forEach'](_0xf1a864=>{const _0x5c64bf=_0x9bb181;let _0x55cbea=_0x2fe4c9[_0x5c64bf(0x21f)](_0x356c48=>_0x356c48['id']==_0xf1a864['id'])+0x1;_0x2fe4c9[_0x5c64bf(0x20a)](_0x55cbea,0x0,..._0xf1a864['menus']);});let _0x3cc0bf=0x0;return _0x2fe4c9[_0x9bb181(0x215)](_0xd38b7=>{const _0x477fe5=_0x9bb181;'todo-list'==_0xd38b7[_0x477fe5(0x227)]?(_0x3cc0bf++,_0xd38b7[_0x477fe5(0x244)]=()=>asyncReplace(generateActivitySummary(_0x477fe5(0x1ff))),_0xd38b7[_0x477fe5(0x245)]=({path:_0x510a40})=>/^activity\//[_0x477fe5(0x251)](_0x510a40)):'approval-pending-list'==_0xd38b7[_0x477fe5(0x227)]?(_0x3cc0bf++,_0xd38b7['badge']=()=>asyncReplace(generateActivitySummary(_0x477fe5(0x209))),_0xd38b7[_0x477fe5(0x245)]=({path:_0x5b620d})=>/^activity\//[_0x477fe5(0x251)](_0x5b620d)):_0x477fe5(0x217)==_0xd38b7[_0x477fe5(0x227)]&&(_0x3cc0bf++,_0xd38b7['badge']=()=>asyncReplace(generateActivitySummary(_0x477fe5(0x21b))));}),_0x3cc0bf>0x0&&startSubscribeActivitySummary(),{'menus':_0x2fe4c9,'routes':_0x4073e3};}static async[a0_0x3cc3ae(0x26b)](){const _0x38ec01=a0_0x3cc3ae;let _0xe5e64d=await ServiceUtil[_0x38ec01(0x267)]('menus',[{'name':_0x38ec01(0x264),'operator':_0x38ec01(0x268),'value':!0x0},{'name':_0x38ec01(0x22a),'operator':'in','value':[_0x38ec01(0x247),_0x38ec01(0x20f),'GROUP']}],[{'name':'rank'}],0x0,0x0,_0x38ec01(0x1ef));return _0xe5e64d?_0xe5e64d[_0x38ec01(0x265)]:[];}static async[a0_0x3cc3ae(0x26d)](_0x2e3624){const _0x4686b3=a0_0x3cc3ae;if(_0x2e3624[_0x4686b3(0x1f0)]&&_0x2e3624[_0x4686b3(0x1f0)][_0x4686b3(0x231)]>0x0){let _0x3ceca0=_0x2e3624['errors'][0x0],_0x217c93=_0x3ceca0[_0x4686b3(0x1fd)],_0x3e8196=_0x3ceca0[_0x4686b3(0x1fd)];_0x3ceca0['extensions']&&(_0x3e8196=_0x3ceca0[_0x4686b3(0x1f7)]['code']),await UiUtil[_0x4686b3(0x24d)](_0x3e8196,_0x217c93,_0x4686b3(0x23a),_0x4686b3(0x24b));}}static async['showGraphqlException'](_0x14cedf){const _0x1eadd0=a0_0x3cc3ae;_0x14cedf&&(_0x14cedf[_0x1eadd0(0x219)]&&_0x14cedf[_0x1eadd0(0x219)][_0x1eadd0(0x232)]?await ServiceUtil['showGraphqlErrorResponse'](_0x14cedf[_0x1eadd0(0x219)][_0x1eadd0(0x232)]):await UiUtil[_0x1eadd0(0x24d)](_0x1eadd0(0x1f3),_0x14cedf[_0x1eadd0(0x1fd)],_0x1eadd0(0x23a),_0x1eadd0(0x24b)));}static async[a0_0x3cc3ae(0x258)](_0x440fc0,_0x291bae,_0x41246f){const _0x507871=a0_0x3cc3ae;var _0x4ca5b8=_0x41246f[_0x507871(0x22b)][_0x507871(0x253)][_0x507871(0x262)](_0x4f4ac4=>'gutter'!==_0x4f4ac4[_0x507871(0x226)]&&void 0x0!==_0x4f4ac4[_0x507871(0x212)]&&void 0x0!==_0x4f4ac4[_0x507871(0x26c)]&&!0x0!==_0x4f4ac4['hidden'])['map'](_0x32017a=>_0x32017a[_0x507871(0x26c)]),_0x182093=_0x41246f[_0x507871(0x26f)][_0x507871(0x265)][_0x507871(0x221)](_0x299a60=>({..._0x41246f[_0x507871(0x22b)][_0x507871(0x253)]['filter'](_0x4bf94b=>_0x507871(0x26e)!==_0x4bf94b['type']&&void 0x0!==_0x4bf94b[_0x507871(0x212)]&&void 0x0!==_0x4bf94b['imex']&&!0x0!==_0x4bf94b[_0x507871(0x25f)])[_0x507871(0x23c)]((_0x2ceb70,_0x36e554)=>(_0x2ceb70[_0x36e554[_0x507871(0x26c)]['key']]=_0x36e554[_0x507871(0x26c)][_0x507871(0x252)]['split']('.')[_0x507871(0x23c)]((_0x4e916d,_0xbd79f2)=>_0x4e916d&&_0x507871(0x207)!==_0x4e916d[_0xbd79f2]?_0x4e916d[_0xbd79f2]:void 0x0,_0x299a60),_0x2ceb70),{})}));if(!_0x440fc0)return{'header':_0x4ca5b8,'data':_0x182093};store[_0x507871(0x229)]({'type':EXPORT,'exportable':{'extension':_0x507871(0x1ee),'name':_0x291bae,'data':{'header':_0x4ca5b8,'data':_0x182093}}});}static async[a0_0x3cc3ae(0x267)](_0x34024d,_0xafc29e,_0x1f3853,_0x125b96,_0x406899,_0x2f4e09){const _0x457f55=a0_0x3cc3ae;try{const _0x3501c2=await client['query']({'query':a0_0x43458d`
|
|
12
12
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
13
|
-
${
|
|
13
|
+
${_0x34024d}(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
14
14
|
items {
|
|
15
|
-
${
|
|
15
|
+
${_0x2f4e09}
|
|
16
16
|
}
|
|
17
17
|
total
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,'variables':{'filters':
|
|
20
|
+
`,'variables':{'filters':_0xafc29e,'sortings':_0x1f3853,'pagination':{'page':_0x125b96,'limit':_0x406899}}});if(!_0x3501c2[_0x457f55(0x1f0)])return{'records':_0x3501c2['data'][_0x34024d][_0x457f55(0x1f2)],'total':_0x3501c2[_0x457f55(0x26f)][_0x34024d][_0x457f55(0x225)]};ServiceUtil[_0x457f55(0x26d)](_0x3501c2);}catch(_0x2ec93c){ServiceUtil['showGraphqlException'](_0x2ec93c);}return null;}static async['findOne'](_0x5753b7,_0x2e6510,_0x3b4865){const _0x33ca6d=a0_0x3cc3ae;try{let _0x462b61=await client[_0x33ca6d(0x23f)]({'query':a0_0x43458d`
|
|
21
21
|
query ($id: String!) {
|
|
22
|
-
${
|
|
23
|
-
${
|
|
22
|
+
${_0x5753b7}(id: $id) {
|
|
23
|
+
${_0x3b4865}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,'variables':{'id':
|
|
26
|
+
`,'variables':{'id':_0x2e6510}});if(!_0x462b61['errors'])return _0x462b61['data'][_0x5753b7]||{};ServiceUtil[_0x33ca6d(0x26d)](_0x462b61);}catch(_0x9ff29e){ServiceUtil[_0x33ca6d(0x269)](_0x9ff29e);}return null;}static['getSelectedIdList'](_0x41ecb4,_0x1f2f43){const _0x454eef=a0_0x3cc3ae,_0x3b7bb0=_0x41ecb4[_0x454eef(0x22f)][_0x454eef(0x221)](_0x12c32f=>_0x12c32f['id']);return ValueUtil[_0x454eef(0x24c)](_0x3b7bb0)&&0x1==_0x1f2f43&&UiUtil[_0x454eef(0x24d)](_0x454eef(0x1fb),'text.there_is_nothing_to_delete',_0x454eef(0x220),_0x454eef(0x24b)),_0x3b7bb0;}static async[a0_0x3cc3ae(0x1fa)](_0x192625,_0x5b3b48){const _0x470be9=a0_0x3cc3ae;let _0x58a5fd=ServiceUtil[_0x470be9(0x230)](_0x192625,!0x0);ValueUtil[_0x470be9(0x201)](_0x58a5fd)&&(await ServiceUtil[_0x470be9(0x23b)](_0x58a5fd,_0x5b3b48)&&_0x192625['fetch']());}static async['deleteListByIds'](_0x350dd1,_0x9e326d){const _0x19700b=a0_0x3cc3ae;if(!(await UiUtil[_0x19700b(0x24d)]('button.delete',_0x19700b(0x22e),_0x19700b(0x266),_0x19700b(0x235),'cancel'))[_0x19700b(0x25a)])return!0x1;try{const _0x259039=await client[_0x19700b(0x23f)]({'query':a0_0x43458d`
|
|
27
27
|
mutation {
|
|
28
|
-
${
|
|
28
|
+
${_0x9e326d}(${gqlBuilder['buildArgs']({'ids':_0x350dd1})})
|
|
29
29
|
}
|
|
30
|
-
`});if(!
|
|
30
|
+
`});if(!_0x259039['errors'])return UiUtil[_0x19700b(0x20c)](_0x19700b(0x220),TermsUtil[_0x19700b(0x21c)](_0x19700b(0x23d))),!0x0;ServiceUtil[_0x19700b(0x26d)](_0x259039);}catch(_0x55b001){ServiceUtil['showGraphqlException'](_0x55b001);}return!0x1;}static async[a0_0x3cc3ae(0x25c)](_0x201a1e,_0x484c07){const _0x231a75=a0_0x3cc3ae;let _0x622aac=ServiceUtil[_0x231a75(0x248)](_0x201a1e);if(ValueUtil['isNotEmpty'](_0x622aac)){let _0x414849=await ServiceUtil[_0x231a75(0x25b)](_0x484c07,_0x622aac);if(_0x414849)return _0x201a1e[_0x231a75(0x260)](),_0x414849;}return!0x1;}static async[a0_0x3cc3ae(0x25b)](_0x2a1927,_0x55b5d7){const _0x10c5ed=a0_0x3cc3ae;try{const _0x2db523=await client[_0x10c5ed(0x23f)]({'query':a0_0x43458d`
|
|
31
31
|
mutation {
|
|
32
|
-
${
|
|
32
|
+
${_0x2a1927}(${gqlBuilder['buildArgs']({'patches':_0x55b5d7})}) {
|
|
33
33
|
id
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
`,'context':{'hasUpload':!0x0}});if(!
|
|
36
|
+
`,'context':{'hasUpload':!0x0}});if(!_0x2db523[_0x10c5ed(0x1f0)])return UiUtil['showToast'](_0x10c5ed(0x220),TermsUtil['tText'](_0x10c5ed(0x223))),!0x0;ServiceUtil[_0x10c5ed(0x26d)](_0x2db523);}catch(_0x7dc787){ServiceUtil[_0x10c5ed(0x269)](_0x7dc787);}return!0x1;}static[a0_0x3cc3ae(0x248)](_0x4520bd,_0x3b0478=!0x1){const _0x7b7c4f=a0_0x3cc3ae;let _0x2e7dc0=_0x4520bd[_0x7b7c4f(0x259)];if(_0x2e7dc0&&0x0!=_0x2e7dc0[_0x7b7c4f(0x231)])return _0x2e7dc0['map'](_0x40e795=>{const _0x5fc98a=_0x7b7c4f;let _0xda5d49=_0x40e795['id']?{'id':_0x40e795['id']}:{};for(let _0x5732cf in _0x40e795)['creator','updater',_0x5fc98a(0x21a),'updatedAt',_0x5fc98a(0x210),_0x5fc98a(0x203),_0x5fc98a(0x1fc),'__seq__',_0x5fc98a(0x20b)][_0x5fc98a(0x208)](_0x5732cf)||(_0x40e795[_0x5732cf]&&_0x5fc98a(0x218)==typeof _0x40e795[_0x5732cf]&&0x0==_0x3b0478?_0xda5d49[_0x5732cf]={'id':_0x40e795[_0x5732cf]['id']}:_0xda5d49[_0x5732cf]=_0x40e795[_0x5732cf]);return _0xda5d49[_0x5fc98a(0x234)]=_0x40e795[_0x5fc98a(0x210)],_0xda5d49;});UiUtil[_0x7b7c4f(0x24d)](_0x7b7c4f(0x249),_0x7b7c4f(0x216),_0x7b7c4f(0x220),_0x7b7c4f(0x24b));}static async[a0_0x3cc3ae(0x263)](_0x49d0ae,_0xbf573b,_0x201ab2,_0x29e8e4=!0x0){const _0x4616e2=a0_0x3cc3ae;let _0x283ba7=!0x0;_0x49d0ae&&!0x0===_0x29e8e4&&(_0x283ba7=(await UiUtil[_0x4616e2(0x24d)](_0x4616e2(0x228)+_0x49d0ae,_0x4616e2(0x22e),_0x4616e2(0x266),_0x4616e2(0x24b),_0x4616e2(0x1f5)))['value']);if(_0x283ba7)try{const _0x202c1c=await client['query']({'query':a0_0x43458d`
|
|
37
37
|
mutation ($scenarioName: String!, $variables: Object) {
|
|
38
38
|
runScenario(scenarioName: $scenarioName, variables: $variables) {
|
|
39
39
|
state
|
|
@@ -42,4 +42,4 @@ const a0_0x2f1074=a0_0xe5e3;(function(_0x48a6e8,_0x4a7e43){const _0x49788b=a0_0x
|
|
|
42
42
|
__typename
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
`,'variables':{'scenarioName':
|
|
45
|
+
`,'variables':{'scenarioName':_0xbf573b,'variables':_0x201ab2}});if(_0x202c1c['errors'])ServiceUtil['showGraphqlErrorResponse'](_0x202c1c);else{if(this['checkClientError'](_0x202c1c))return!0x0===_0x29e8e4&&UiUtil[_0x4616e2(0x20c)](_0x4616e2(0x220),TermsUtil['tText'](_0x4616e2(0x22c))),_0x202c1c;}}catch(_0x4de1e4){ServiceUtil[_0x4616e2(0x269)](_0x4de1e4);}return!0x1;}static['checkClientError'](_0x45e132){const _0x39b53a=a0_0x3cc3ae;if(_0x45e132&&_0x45e132[_0x39b53a(0x26f)]&&_0x45e132[_0x39b53a(0x26f)]['runScenario']&&_0x45e132[_0x39b53a(0x26f)][_0x39b53a(0x257)]['data']&&_0x45e132[_0x39b53a(0x26f)]['runScenario'][_0x39b53a(0x26f)]['error']){let _0x547198=_0x45e132[_0x39b53a(0x26f)][_0x39b53a(0x257)][_0x39b53a(0x26f)][_0x39b53a(0x23a)];return UiUtil[_0x39b53a(0x24d)](_0x547198['title'],_0x547198[_0x39b53a(0x1fd)],'error',_0x39b53a(0x24b)),!0x1;}return!0x0;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3cabf3=a0_0x4ba9;(function(_0x484e0f,_0xeed5b1){const _0x5cc0df=a0_0x4ba9,_0xacccc9=_0x484e0f();while(!![]){try{const _0x9b595d=-parseInt(_0x5cc0df(0x1e9))/0x1+parseInt(_0x5cc0df(0x1e7))/0x2*(-parseInt(_0x5cc0df(0x204))/0x3)+parseInt(_0x5cc0df(0x1f9))/0x4+-parseInt(_0x5cc0df(0x1ef))/0x5*(-parseInt(_0x5cc0df(0x206))/0x6)+-parseInt(_0x5cc0df(0x1f7))/0x7+parseInt(_0x5cc0df(0x1ed))/0x8+-parseInt(_0x5cc0df(0x1ea))/0x9*(-parseInt(_0x5cc0df(0x203))/0xa);if(_0x9b595d===_0xeed5b1)break;else _0xacccc9['push'](_0xacccc9['shift']());}catch(_0x16c089){_0xacccc9['push'](_0xacccc9['shift']());}}}(a0_0x5ab8,0x6db44));function a0_0x4ba9(_0x1c5b9c,_0x5b6563){const _0x5ab816=a0_0x5ab8();return a0_0x4ba9=function(_0x4ba940,_0x1dc3ab){_0x4ba940=_0x4ba940-0x1e7;let _0x53368e=_0x5ab816[_0x4ba940];return _0x53368e;},a0_0x4ba9(_0x1c5b9c,_0x5b6563);}import a0_0x6dc437 from'graphql-tag';import{client}from'@operato/graphql';import{i18next}from'@operato/i18n';export class TermsUtil{['META_TERMS']=null;static async['downloadTerminologies'](_0x339069){const _0x40434e=a0_0x4ba9;let _0x36d50c=(await TermsUtil['fetchTerminologies'](_0x339069))['records'];_0x36d50c&&_0x36d50c[_0x40434e(0x20a)]>0x0&&(this['META_TERMS']={},_0x36d50c[_0x40434e(0x1fc)](_0x5336ee=>{const _0x1c738d=_0x40434e;let _0x359fc8=_0x5336ee[_0x1c738d(0x1f5)]+'.'+_0x5336ee[_0x1c738d(0x1fd)];this[_0x1c738d(0x1f2)][_0x359fc8]=_0x5336ee[_0x1c738d(0x1f0)];}));}static async['fetchTerminologies'](_0x1da485){const _0x3c1961=a0_0x4ba9;let _0x8fe271=[{'name':_0x3c1961(0x1ec),'operator':'eq','value':_0x1da485}];const _0x5c4d3b=await client[_0x3c1961(0x1fa)]({'query':a0_0x6dc437`
|
|
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_0x18436e=a0_0x2572;(function(_0x615475,_0x46cbad){const _0x194ae9=a0_0x
|
|
|
11
11
|
total
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
`,'variables':{'filters':
|
|
14
|
+
`,'variables':{'filters':_0x8fe271,'sortings':[{'name':_0x3c1961(0x1f5)},{'name':_0x3c1961(0x1fd)}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0x5c4d3b[_0x3c1961(0x1fe)])return{'records':_0x5c4d3b[_0x3c1961(0x1f1)][_0x3c1961(0x1f4)][_0x3c1961(0x201)]||[],'total':_0x5c4d3b[_0x3c1961(0x1f1)][_0x3c1961(0x1f4)]['total']||0x0};}static[a0_0x3cabf3(0x1f8)](_0x7f878a,_0x4ff64a){const _0x250957=a0_0x3cabf3;let _0x4b9815=TermsUtil[_0x250957(0x1f6)](_0x250957(0x208),_0x7f878a,_0x4ff64a,null);return _0x4b9815||TermsUtil[_0x250957(0x1f6)](_0x250957(0x20b),_0x7f878a,_0x4ff64a,_0x7f878a);}static[a0_0x3cabf3(0x209)](_0x4222d7,_0x1ff614){const _0x3c348d=a0_0x3cabf3;let _0x1ed75a=TermsUtil['translate']('field',_0x4222d7,_0x1ff614,null);return _0x1ed75a||TermsUtil[_0x3c348d(0x1f6)]('field',_0x4222d7,_0x1ff614,_0x4222d7);}static['tButton'](_0x1e1ff0){const _0x3226d4=a0_0x3cabf3;return TermsUtil[_0x3226d4(0x1f6)](_0x3226d4(0x202),_0x1e1ff0,null,_0x1e1ff0);}static[a0_0x3cabf3(0x1eb)](_0x2baefe,_0x2bcc82){const _0x369f2a=a0_0x3cabf3;let _0x1172b7=TermsUtil[_0x369f2a(0x1f6)]('title',_0x2baefe,_0x2bcc82,null);return _0x1172b7||TermsUtil['translate'](_0x369f2a(0x207),_0x2baefe,_0x2bcc82,_0x2baefe);}static[a0_0x3cabf3(0x1fb)](_0x4b9eed){const _0x3bd236=a0_0x3cabf3;let _0x18c2dd=TermsUtil[_0x3bd236(0x1f6)](_0x3bd236(0x207),_0x4b9eed,null,_0x4b9eed);return _0x18c2dd||TermsUtil[_0x3bd236(0x1f6)](_0x3bd236(0x1f3),_0x4b9eed,null,_0x4b9eed);}static['tText'](_0x4e9d03,_0x341d19){const _0x9ff245=a0_0x3cabf3;return TermsUtil[_0x9ff245(0x1f6)](_0x9ff245(0x200),_0x4e9d03,_0x341d19,_0x4e9d03);}static[a0_0x3cabf3(0x1ee)](_0x26268f,_0x8a6dbd){const _0x472586=a0_0x3cabf3;return TermsUtil['translate'](_0x472586(0x1ff),_0x26268f,_0x8a6dbd,_0x26268f);}static[a0_0x3cabf3(0x1f6)](_0x3f5c24,_0x5251e2,_0x495064,_0x40a118){let _0x8e6037=_0x3f5c24+'.'+_0x5251e2;return TermsUtil['t'](_0x8e6037,_0x495064,_0x40a118);}static['t'](_0x37e294,_0x470bec,_0x1c9477){const _0x44f79a=a0_0x3cabf3;let _0x43b20f=this[_0x44f79a(0x1f2)]?this[_0x44f79a(0x1f2)][_0x37e294]:null;return _0x43b20f=_0x43b20f||i18next['t'](_0x37e294),_0x43b20f&&_0x37e294!=_0x43b20f?(_0x470bec&&Object[_0x44f79a(0x205)](_0x470bec)[_0x44f79a(0x1fc)](function(_0x584e34){const _0x52afc8=_0x44f79a;var _0x10a7f1='\x5c{'+_0x584e34[_0x52afc8(0x1e8)](/\$/,'\x5c$')+'\x5c}',_0x220267=new RegExp(_0x10a7f1,'gi');_0x43b20f=_0x43b20f[_0x52afc8(0x1e8)](_0x220267,_0x470bec[_0x584e34]);}),_0x43b20f):_0x1c9477;}}function a0_0x5ab8(){const _0x127be3=['data','META_TERMS','title','terminologies','category','translate','5470164fOQnVE','tLabel','2435360tvEpDo','query','tMenu','forEach','name','errors','error','text','items','button','10870GQZyov','2046LvAGgh','keys','6ScjbIu','menu','label','tField','length','field','1256aGNbUX','replace','137759kKvzSo','2160TDeSpV','tTitle','locale','2826408bFIJxw','tError','2869170gxiWXv','display'];a0_0x5ab8=function(){return _0x127be3;};return a0_0x5ab8();}
|
package/client/utils/ui-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3d8cd9=a0_0x7944;(function(_0x535d6f,_0x5dbf06){const _0x5a7a6c=a0_0x7944,_0x867502=_0x535d6f();while(!![]){try{const _0x2e6b35=parseInt(_0x5a7a6c(0x1bf))/0x1*(parseInt(_0x5a7a6c(0x1aa))/0x2)+-parseInt(_0x5a7a6c(0x1dd))/0x3*(-parseInt(_0x5a7a6c(0x1d3))/0x4)+-parseInt(_0x5a7a6c(0x1c4))/0x5*(-parseInt(_0x5a7a6c(0x1a4))/0x6)+parseInt(_0x5a7a6c(0x1cd))/0x7*(parseInt(_0x5a7a6c(0x19b))/0x8)+parseInt(_0x5a7a6c(0x1a1))/0x9+parseInt(_0x5a7a6c(0x1bc))/0xa+parseInt(_0x5a7a6c(0x19c))/0xb*(-parseInt(_0x5a7a6c(0x1df))/0xc);if(_0x2e6b35===_0x5dbf06)break;else _0x867502['push'](_0x867502['shift']());}catch(_0x5d4f23){_0x867502['push'](_0x867502['shift']());}}}(a0_0x5f0d,0x6f328));import{store,CustomAlert,navigate}from'@things-factory/shell';import{openPopup}from'@things-factory/layout-base';function a0_0x7944(_0x3690e1,_0x10a1fe){const _0x5f0d7f=a0_0x5f0d();return a0_0x7944=function(_0x794481,_0x32d457){_0x794481=_0x794481-0x19a;let _0x2aeaf4=_0x5f0d7f[_0x794481];return _0x2aeaf4;},a0_0x7944(_0x3690e1,_0x10a1fe);}import{isMobileDevice}from'@things-factory/utils';import{getEditor}from'@operato/data-grist';import{TermsUtil}from'./terms-util';import{ValueUtil}from'./value-util';import{MetaUiUtil}from'./meta-ui-util';function a0_0x5f0d(){const _0x50d205=['split','isNotEmpty','8136nfiirf','42460qkSNUw','showToast','code-editor','getParams','getType','958932edZsvL','template','dispatchEvent','48414aDXgwk','substring','size','getStore','ox-input-barcode','tButton','226qJRdvY','notify','textarea','value','getFilterFormData','createEditorHtml','menu','input','route','cancelButton','openPopupByElement','i18next','createCustomElement','removeChild','setSearchFormEditorValue','renderRoot','getState','editor','187060HRnUFn','stringify','name','2557vRCNcA','config','pageNavigate','tagname','ko-KR','130mrBqhy','isMobileEnv','replace','modules','\x20route_name=\x27','barcode','getApplicationModuleInfo','length','currentRouting','4452ZoybjQ','content','getLeafInput','openDynamicPopup','confirmButton','firstElementChild','892QioLhp','indexOf','popup_field','cookie','page','app','i18next=','parent_field','innerHTML','select-combo','9543gdMHhR','filters','4740xuPpne','querySelector','htmlToElement','currentLocale'];a0_0x5f0d=function(){return _0x50d205;};return a0_0x5f0d();}export class UiUtil{static[a0_0x3d8cd9(0x1c5)](){return isMobileDevice();}static[a0_0x3d8cd9(0x1e2)](){const _0x478a6a=a0_0x3d8cd9;let _0x2f5206=document[_0x478a6a(0x1d6)];return _0x2f5206=_0x2f5206['substring'](_0x2f5206['indexOf'](_0x478a6a(0x1b5))),_0x2f5206[_0x478a6a(0x1d4)](';')>-0x1&&(_0x2f5206=_0x2f5206[_0x478a6a(0x1a5)](0x0,_0x2f5206[_0x478a6a(0x1d4)](';'))),_0x2f5206=_0x2f5206[_0x478a6a(0x1c6)](_0x478a6a(0x1d9),''),'ko'==_0x2f5206?_0x478a6a(0x1c3):_0x2f5206;}static[a0_0x3d8cd9(0x1ca)](){const _0x13e69b=a0_0x3d8cd9;let _0x5b9b09=store[_0x13e69b(0x1ba)]()[_0x13e69b(0x1d8)][_0x13e69b(0x1c7)];return _0x5b9b09[_0x5b9b09[_0x13e69b(0x1cb)]-0x1];}static[a0_0x3d8cd9(0x1cc)](){const _0x47dedb=a0_0x3d8cd9;return store['getState']()[_0x47dedb(0x1b2)][_0x47dedb(0x1d7)];}static[a0_0x3d8cd9(0x1b4)](_0x42e2b4,_0x4562de,_0x55d7a2,_0xc774cc){return openPopup(_0x55d7a2,{'backdrop':!0x0,'size':_0x4562de,'title':_0x42e2b4,'backdrop':_0xc774cc});}static async[a0_0x3d8cd9(0x1d0)](_0xf01acf,_0x1aa562,_0x4ecea8,_0xbd3d4b){const _0x884b3d=a0_0x3d8cd9;let _0xa7b983=ValueUtil[_0x884b3d(0x19a)](_0x1aa562[_0x884b3d(0x1da)])?ValueUtil[_0x884b3d(0x19f)](_0x4ecea8,..._0x1aa562[_0x884b3d(0x1da)][_0x884b3d(0x1e3)]('.')):void 0x0,_0x2e0eac='<'+_0x1aa562[_0x884b3d(0x1c2)]+_0x884b3d(0x1c8)+_0x1aa562[_0x884b3d(0x1b0)]+'\x27\x20\x20parent_id=\x27'+_0xa7b983+'\x27\x20is_popup=true></'+_0x1aa562[_0x884b3d(0x1c2)]+'>',_0x496db9=UiUtil[_0x884b3d(0x1e1)](_0x2e0eac);_0x496db9[_0x884b3d(0x1c0)]=_0x1aa562,ValueUtil[_0x884b3d(0x19a)](_0x1aa562[_0x884b3d(0x1d5)])&&(_0x496db9[_0x1aa562[_0x884b3d(0x1d5)]]=_0x4ecea8);let _0x54d93e=UiUtil[_0x884b3d(0x1b4)](_0xf01acf,_0x1aa562[_0x884b3d(0x1a6)],_0x496db9,!0x0);_0xbd3d4b&&(_0x54d93e['onclosed']=_0xbd3d4b);}static[a0_0x3d8cd9(0x1b6)](_0x1d3bfd,_0x85b70c){const _0x3520fb=a0_0x3d8cd9;let _0x592993='<'+_0x1d3bfd+'\x20route_name=\x27'+_0x85b70c+'\x27></'+_0x1d3bfd+'>';return UiUtil[_0x3520fb(0x1e1)](_0x592993);}static['htmlToElement'](_0x2239a9){const _0x24769e=a0_0x3d8cd9;var _0x3d89be=document['createElement'](_0x24769e(0x1a2));_0x3d89be[_0x24769e(0x1db)]=_0x2239a9;var _0x3c4850=_0x3d89be['content']['childNodes'][0x0];return _0x3d89be[_0x24769e(0x1ce)][_0x24769e(0x1b7)](_0x3c4850),_0x3c4850;}static[a0_0x3d8cd9(0x1c1)](_0x3b383f,_0x55d7b9){const _0x2997e6=a0_0x3d8cd9;let _0x5af126=_0x55d7b9?'?':'';_0x55d7b9&&(_0x5af126+='pass='+JSON[_0x2997e6(0x1bd)](_0x55d7b9)),navigate(''+_0x3b383f+_0x5af126);}static[a0_0x3d8cd9(0x1a7)](_0x42715a,_0x44bd53,_0x10b8a4){const _0x1fe0d9=a0_0x3d8cd9;let _0x306d5c=_0x306d5c[_0x1fe0d9(0x1ba)]();return _0x42715a&&_0x44bd53&&_0x10b8a4?_0x306d5c[_0x42715a][_0x44bd53][_0x10b8a4]:_0x42715a&&_0x44bd53?_0x306d5c[_0x42715a][_0x44bd53]:_0x42715a?_0x306d5c[_0x42715a]:_0x306d5c;}static['fireCustomEvent'](_0x3515dd,_0x7420b0){document['dispatchEvent'](new CustomEvent(_0x3515dd,{'detail':_0x7420b0}));}static[a0_0x3d8cd9(0x19d)](_0x3e026e,_0x1d1d77){const _0xa8b6d4=a0_0x3d8cd9;document[_0xa8b6d4(0x1a3)](new CustomEvent(_0xa8b6d4(0x1ab),{'detail':{'type':_0x3e026e,'message':_0x1d1d77}}));}static async['showAlertPopup'](_0x41b35c,_0x3cae05,_0x438137,_0x4a3443,_0x185f6b){const _0xf3ae81=a0_0x3d8cd9;let _0x198f00={'title':TermsUtil['t'](_0x41b35c)||_0x41b35c,'text':TermsUtil['t'](_0x3cae05)||_0x3cae05};return _0x438137&&(_0x198f00['type']=_0x438137),_0x4a3443&&(_0x198f00[_0xf3ae81(0x1d1)]=TermsUtil[_0xf3ae81(0x1a9)](_0x4a3443)),_0x185f6b&&(_0x198f00[_0xf3ae81(0x1b3)]=TermsUtil[_0xf3ae81(0x1a9)](_0x185f6b)),await CustomAlert(_0x198f00);}static[a0_0x3d8cd9(0x1ae)](_0x4e46df){const _0x523e2b=a0_0x3d8cd9;if(ValueUtil[_0x523e2b(0x19a)](_0x4e46df)){let _0x1c4b49=_0x4e46df[_0x523e2b(0x1de)]();ValueUtil[_0x523e2b(0x19a)](_0x1c4b49)&&_0x1c4b49['forEach'](_0x583719=>{const _0x1fce76=_0x523e2b;ValueUtil[_0x1fce76(0x19a)](_0x583719[_0x1fce76(0x1ad)])&&(item[_0x583719[_0x1fce76(0x1be)]]=_0x583719[_0x1fce76(0x1ad)]?_0x583719['value']:null);});}return{};}static[a0_0x3d8cd9(0x1b8)](_0x2d2c7f,_0x502f89,_0x2e6241){const _0x372035=a0_0x3d8cd9;if(ValueUtil[_0x372035(0x19a)](_0x2d2c7f)){let _0x32feb1=_0x2d2c7f[_0x372035(0x1b9)]?.['querySelector']('[name=\x27'+_0x502f89+'\x27]');ValueUtil[_0x372035(0x19a)](_0x32feb1)&&(_0x32feb1[_0x372035(0x1ad)]=_0x2e6241);}}static[a0_0x3d8cd9(0x1af)](_0x42c2bd,_0x294d94,_0x3dad26,_0x4f28ee){return getEditor(_0x42c2bd)('',_0x294d94,_0x3dad26,_0x4f28ee,{});}static['setValueToEditor'](_0x3546c8,_0x2dbf7b){const _0x16dc4c=a0_0x3d8cd9;UiUtil[_0x16dc4c(0x1cf)](_0x3546c8)[_0x16dc4c(0x1ad)]=_0x2dbf7b;}static[a0_0x3d8cd9(0x1cf)](_0x1b51b5){const _0x35eb01=a0_0x3d8cd9;let _0x3da0da=_0x1b51b5[_0x35eb01(0x1a0)]();return _0x35eb01(0x19e)==_0x3da0da?_0x1b51b5[_0x35eb01(0x1b9)][_0x35eb01(0x1e0)]('ox-input-code'):_0x35eb01(0x1ac)==_0x3da0da?_0x1b51b5[_0x35eb01(0x1b9)][_0x35eb01(0x1e0)](_0x35eb01(0x1ac)):_0x35eb01(0x1dc)==_0x3da0da?_0x1b51b5[_0x35eb01(0x1b9)]['querySelector']('ox-select')[_0x35eb01(0x1d2)]:_0x35eb01(0x1c9)==_0x3da0da?_0x1b51b5[_0x35eb01(0x1b9)][_0x35eb01(0x1e0)](_0x35eb01(0x1a8))[_0x35eb01(0x1b9)][_0x35eb01(0x1e0)](_0x35eb01(0x1b1)):_0x1b51b5[_0x35eb01(0x1b9)][_0x35eb01(0x1d2)][_0x35eb01(0x1bb)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x221f37=a0_0xa076;(function(_0x4df101,_0x2b62bf){const _0x39ac58=a0_0xa076,_0x64057d=_0x4df101();while(!![]){try{const _0xddaf72=parseInt(_0x39ac58(0xee))/0x1*(-parseInt(_0x39ac58(0xde))/0x2)+parseInt(_0x39ac58(0xe7))/0x3*(-parseInt(_0x39ac58(0xf7))/0x4)+-parseInt(_0x39ac58(0xea))/0x5+parseInt(_0x39ac58(0xe2))/0x6+parseInt(_0x39ac58(0xe0))/0x7*(-parseInt(_0x39ac58(0xe8))/0x8)+parseInt(_0x39ac58(0xed))/0x9+-parseInt(_0x39ac58(0xdd))/0xa*(-parseInt(_0x39ac58(0xef))/0xb);if(_0xddaf72===_0x2b62bf)break;else _0x64057d['push'](_0x64057d['shift']());}catch(_0x258681){_0x64057d['push'](_0x64057d['shift']());}}}(a0_0x599d,0x781aa));function a0_0xa076(_0x5ce8fb,_0x2c2d10){const _0x599d1d=a0_0x599d();return a0_0xa076=function(_0xa076c3,_0x3cd8ad){_0xa076c3=_0xa076c3-0xdc;let _0x1b7698=_0x599d1d[_0xa076c3];return _0x1b7698;},a0_0xa076(_0x5ce8fb,_0x2c2d10);}import a0_0x200003 from'lodash-es/isEqual';import{TermsUtil}from'./terms-util';function a0_0x599d(){const _0x18ad7a=['10GBygEJ','957442WbTkqk','populateObject','3372383XBeIcj','toInteger','4235496vCZFjF','compareObjectValues','populateArray','length','TRUE','3yAlCYs','16RMeVrN','isEmpty','148790FfzcVL','map','setParams','2151855OuzSzW','2eNYYYd','24793307hweSlt','isNotEmpty','keys','isEquals','string','getParams','boolean','forEach','3025056uWTUOt','toBoolean','isArray'];a0_0x599d=function(){return _0x18ad7a;};return a0_0x599d();}export class ValueUtil{static[a0_0x221f37(0xe9)](_0x9f213f){const _0x203ddf=a0_0x221f37;if(void 0x0===_0x9f213f)return!0x0;if(null===_0x9f213f)return!0x0;if(_0x203ddf(0xf5)==typeof _0x9f213f)return!0x1;if(_0x203ddf(0xf3)==typeof _0x9f213f||'number'==typeof _0x9f213f){if(''==_0x9f213f)return!0x0;}else{if(Array[_0x203ddf(0xdc)](_0x9f213f)){if(0x0==_0x9f213f[_0x203ddf(0xe5)])return!0x0;}else{if('object'==typeof _0x9f213f&&0x0==Object[_0x203ddf(0xf1)](_0x9f213f)['length'])return!0x0;}}return!0x1;}static['isNotEmpty'](_0x124ecc){const _0x154dd4=a0_0x221f37;return!ValueUtil[_0x154dd4(0xe9)](_0x124ecc);}static[a0_0x221f37(0xf2)](_0x236417,_0x3f9a6c){return a0_0x200003(_0x236417,_0x3f9a6c);}static[a0_0x221f37(0xe1)](_0x1b0d3a,_0x4d699c){return ValueUtil['isEmpty'](_0x1b0d3a)?_0x4d699c||0x0:parseInt(_0x1b0d3a);}static[a0_0x221f37(0xf8)](_0x537a2e){const _0x1011af=a0_0x221f37;return!ValueUtil[_0x1011af(0xe9)](_0x537a2e)&&('true'==_0x537a2e||'t'==_0x537a2e||_0x1011af(0xe6)==_0x537a2e||'T'==_0x537a2e||'on'==_0x537a2e||'ON'==_0x537a2e);}static[a0_0x221f37(0xe3)](_0x595891,_0x4b2e56,_0x2f7a62){const _0x1b660=a0_0x221f37;let _0x544dda=!0x0;return _0x2f7a62[_0x1b660(0xf6)](_0x18a959=>{const _0xb54836=_0x1b660;let _0x86ce17=_0x595891[_0x18a959];if('*'===_0x86ce17)return;let _0x5b1fd0=_0x4b2e56[_0x18a959]||'';ValueUtil['isEmpty'](_0x86ce17)?ValueUtil[_0xb54836(0xf0)](_0x5b1fd0)&&(_0x544dda=!0x1):_0x86ce17!=_0x5b1fd0&&(_0x544dda=!0x1);}),_0x544dda;}static[a0_0x221f37(0xec)](_0xa708e,_0x4390bb,_0x5ceb36,_0x468a32){const _0x568920=a0_0x221f37;let _0x3a955d=ValueUtil[_0x568920(0xf4)](_0x4390bb,_0x5ceb36);return ValueUtil['isNotEmpty'](_0x3a955d)&&(_0xa708e[_0x5ceb36]=!0x0===_0x468a32?TermsUtil['t'](_0x3a955d):_0x3a955d),_0xa708e;}static[a0_0x221f37(0xf4)](_0x730b86,..._0x202958){const _0x201f34=a0_0x221f37;if(arguments[_0x201f34(0xe5)]<=0x1)return;let _0x44b88d=_0x202958[0x0];if(ValueUtil[_0x201f34(0xe9)](_0x730b86[_0x44b88d]))return;let _0x3ade83=_0x730b86[_0x44b88d];return _0x202958[_0x201f34(0xe5)]>0x1?ValueUtil[_0x201f34(0xf4)](_0x3ade83,..._0x202958['slice'](0x1)):_0x3ade83;}static[a0_0x221f37(0xe4)](_0x3859c6,_0xd5f0c6,..._0x1100bf){const _0x5bf006=a0_0x221f37;return _0xd5f0c6=_0xd5f0c6||[],_0x1100bf=_0x1100bf||Object[_0x5bf006(0xf1)](_0x3859c6),ValueUtil['isNotEmpty'](_0x1100bf)&&(_0xd5f0c6=_0x3859c6[_0x5bf006(0xeb)]((_0x3c7950,_0x5c7a93)=>{const _0x2a3b9d=_0x5bf006;let _0x1cee01=_0xd5f0c6[_0x2a3b9d(0xe5)]>_0x5c7a93?_0xd5f0c6[_0x5c7a93]:{};return ValueUtil[_0x2a3b9d(0xdf)](_0x3c7950,_0x1cee01,_0x1100bf);})),_0xd5f0c6;}static[a0_0x221f37(0xdf)](_0x320c3d,_0x368d9c,..._0x9da26b){const _0x33810e=a0_0x221f37;return _0x368d9c=_0x368d9c||{},_0x9da26b=_0x9da26b||Object[_0x33810e(0xf1)](_0x320c3d),ValueUtil[_0x33810e(0xf0)](_0x9da26b)&&_0x9da26b['forEach'](_0x117e09=>{_0x368d9c[_0x117e09]=_0x320c3d[_0x117e09];}),_0x368d9c;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x4007(){const _0x256cf5=['11LvkEXL','100788OdaIGD','6325604AztlAI','1375705SfEaVj','553aUfawO','3804525lFHPuA','5871408jwdSNB','262316psAIvJ','66821175afqtNn'];a0_0x4007=function(){return _0x256cf5;};return a0_0x4007();}(function(_0x5a597e,_0x425be4){const _0x55f1f1=a0_0x2cd8,_0x1ac440=_0x5a597e();while(!![]){try{const _0x3abcc6=-parseInt(_0x55f1f1(0x194))/0x1*(parseInt(_0x55f1f1(0x192))/0x2)+-parseInt(_0x55f1f1(0x190))/0x3+-parseInt(_0x55f1f1(0x196))/0x4+-parseInt(_0x55f1f1(0x197))/0x5+-parseInt(_0x55f1f1(0x195))/0x6*(parseInt(_0x55f1f1(0x198))/0x7)+-parseInt(_0x55f1f1(0x191))/0x8+parseInt(_0x55f1f1(0x193))/0x9;if(_0x3abcc6===_0x425be4)break;else _0x1ac440['push'](_0x1ac440['shift']());}catch(_0x55f21c){_0x1ac440['push'](_0x1ac440['shift']());}}}(a0_0x4007,0xc25f8));function a0_0x2cd8(_0x8daf9f,_0x5acbab){const _0x400791=a0_0x4007();return a0_0x2cd8=function(_0x2cd8e7,_0x244744){_0x2cd8e7=_0x2cd8e7-0x190;let _0x11df12=_0x400791[_0x2cd8e7];return _0x11df12;},a0_0x2cd8(_0x8daf9f,_0x5acbab);}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_0x171548=a0_0x3d86;(function(_0x48268d,_0x404659){const _0x17858e=a0_0x3d86,_0x45f5bb=_0x48268d();while(!![]){try{const _0x1c397e=parseInt(_0x17858e(0xc9))/0x1*(parseInt(_0x17858e(0xcb))/0x2)+parseInt(_0x17858e(0xdd))/0x3+-parseInt(_0x17858e(0xcd))/0x4+-parseInt(_0x17858e(0xe4))/0x5+-parseInt(_0x17858e(0xc6))/0x6*(parseInt(_0x17858e(0xc5))/0x7)+-parseInt(_0x17858e(0xd2))/0x8*(parseInt(_0x17858e(0xe1))/0x9)+-parseInt(_0x17858e(0xe2))/0xa*(-parseInt(_0x17858e(0xf2))/0xb);if(_0x1c397e===_0x404659)break;else _0x45f5bb['push'](_0x45f5bb['shift']());}catch(_0x53d66d){_0x45f5bb['push'](_0x45f5bb['shift']());}}}(a0_0x43be,0xa12a0));import'@material/mwc-icon';import{html,LitElement}from'lit';import{connect}from'pwa-helpers';function a0_0x3d86(_0x2b5400,_0x589938){const _0x43be6c=a0_0x43be();return a0_0x3d86=function(_0x3d864e,_0x28f309){_0x3d864e=_0x3d864e-0xc5;let _0x22e88c=_0x43be6c[_0x3d864e];return _0x22e88c;},a0_0x3d86(_0x2b5400,_0x589938);}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_0x171548(0xd9)](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get[a0_0x171548(0xd6)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}['render'](){const _0x3776e3=a0_0x171548,{menus:_0x2a4a81=[],activeTopLevel:_0x5dab87,activeMenu:_0xcfad27}=this;return html`
|
|
2
2
|
<div id="wrap">
|
|
3
3
|
<ul>
|
|
4
|
-
${
|
|
5
|
-
<li ?active=${
|
|
6
|
-
<a href=${
|
|
7
|
-
${
|
|
4
|
+
${_0x2a4a81['map'](_0x2a4060=>_0x3776e3(0xe0)==_0x2a4060['type']?html``:html`
|
|
5
|
+
<li ?active=${_0x2a4060===_0x5dab87}>
|
|
6
|
+
<a href=${_0x2a4060[_0x3776e3(0xcc)]||'#'}>
|
|
7
|
+
${_0x2a4060[_0x3776e3(0xdf)]?html`<mwc-icon>${_0x2a4060[_0x3776e3(0xdf)]}</mwc-icon>`:html``} ${_0x2a4060[_0x3776e3(0xf0)]}
|
|
8
8
|
</a>
|
|
9
9
|
|
|
10
10
|
<ul submenus>
|
|
11
|
-
${
|
|
12
|
-
<li ?active=${
|
|
13
|
-
<a href=${
|
|
11
|
+
${_0x2a4060['menus']?.[_0x3776e3(0xd7)](_0x205475=>html`
|
|
12
|
+
<li ?active=${_0x205475===_0xcfad27}>
|
|
13
|
+
<a href=${_0x205475[_0x3776e3(0xcc)]||'#'}> ${_0x205475[_0x3776e3(0xf0)]} </a>
|
|
14
14
|
</li>
|
|
15
15
|
`)}
|
|
16
16
|
</ul>
|
|
17
17
|
|
|
18
18
|
<div description>
|
|
19
|
-
${
|
|
19
|
+
${_0x2a4060['icon']?html`<mwc-icon>${_0x2a4060[_0x3776e3(0xdf)]}</mwc-icon>`:html``} ${_0x2a4060[_0x3776e3(0xca)]||''}
|
|
20
20
|
</div>
|
|
21
21
|
</li>
|
|
22
22
|
`)}
|
|
23
23
|
</ul>
|
|
24
24
|
</div>
|
|
25
|
-
`;}[
|
|
25
|
+
`;}[a0_0x171548(0xe9)](){const _0x51cf36=a0_0x171548;this[_0x51cf36(0xdb)][_0x51cf36(0xd4)](_0x51cf36(0xea))[_0x51cf36(0xe6)](_0x51cf36(0xc7),this[_0x51cf36(0xeb)][_0x51cf36(0xd8)](this),!0x1),this[_0x51cf36(0xdb)][_0x51cf36(0xe6)]('click',_0x2b85c6=>{const _0x545c6b=_0x51cf36;if(_0x2b85c6[_0x545c6b(0xc8)][_0x545c6b(0xcf)]){_0x2b85c6[_0x545c6b(0xd5)](),_0x2b85c6[_0x545c6b(0xe8)]();let _0x6e80b7=_0x2b85c6['target'][_0x545c6b(0xcf)];return void this[_0x545c6b(0xe7)](new CustomEvent('active-toplevel',{'bubbles':!0x0,'detail':this[_0x545c6b(0xda)]===_0x6e80b7?void 0x0:_0x6e80b7}));}let _0x5d7d0f=_0x2b85c6[_0x545c6b(0xc8)]['href'];_0x5d7d0f&&location['href']===_0x5d7d0f&&navigate(_0x5d7d0f+_0x545c6b(0xef),!0x0);}),this[_0x51cf36(0xdb)]['addEventListener'](_0x51cf36(0xde),_0x23d355=>{const _0x5dd730=_0x51cf36;_0x23d355[_0x5dd730(0xc8)][_0x5dd730(0xce)]('settled');}),this[_0x51cf36(0xdb)]['addEventListener'](_0x51cf36(0xd3),_0x58e407=>{const _0x40acef=_0x51cf36;_0x58e407[_0x40acef(0xc8)][_0x40acef(0xec)](_0x40acef(0xdc),'');});}[a0_0x171548(0xeb)](_0x50be72){const _0x522022=a0_0x171548,_0x3225f8=_0x50be72[_0x522022(0xf1)];var _0x3039c5=Math[_0x522022(0xd1)](-0x1,Math[_0x522022(0xe3)](0x1,_0x50be72[_0x522022(0xed)]||-_0x50be72[_0x522022(0xe5)]));_0x3225f8[_0x522022(0xee)]-=0xa*_0x3039c5,_0x50be72[_0x522022(0xe8)]();}}customElements[a0_0x171548(0xd0)]('dynamic-menu-landscape',DynamicMenuLandscape);function a0_0x43be(){const _0x499201=['path','3450980iiklYT','removeAttribute','submenu','define','max','144ksGOMz','transitionend','querySelector','stopPropagation','properties','map','bind','styles','activeTopLevel','renderRoot','settled','605493jfEKNu','transitionstart','icon','group','82107qwjlVm','14185130WPxYEx','min','221305CXUAyV','detail','addEventListener','dispatchEvent','preventDefault','firstUpdated','#wrap','onWheelEvent','setAttribute','wheelDelta','scrollLeft','#force','name','currentTarget','11YWWjbq','7fRyxbG','7207566feEVzv','mousewheel','target','57055yqSyYc','description','46eHredg'];a0_0x43be=function(){return _0x499201;};return a0_0x43be();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x47cfe4=a0_0x5456;(function(_0x49fbbd,_0x10e792){var _0x5e2814=a0_0x5456,_0xf34a83=_0x49fbbd();while(!![]){try{var _0xed9504=parseInt(_0x5e2814(0x87))/0x1+parseInt(_0x5e2814(0x84))/0x2*(-parseInt(_0x5e2814(0x9f))/0x3)+-parseInt(_0x5e2814(0xa4))/0x4*(parseInt(_0x5e2814(0xa0))/0x5)+-parseInt(_0x5e2814(0x98))/0x6+-parseInt(_0x5e2814(0x9c))/0x7+parseInt(_0x5e2814(0xa8))/0x8*(-parseInt(_0x5e2814(0x8b))/0x9)+-parseInt(_0x5e2814(0xac))/0xa*(-parseInt(_0x5e2814(0x93))/0xb);if(_0xed9504===_0x10e792)break;else _0xf34a83['push'](_0xf34a83['shift']());}catch(_0x59e214){_0xf34a83['push'](_0xf34a83['shift']());}}}(a0_0x27b1,0x358f5));import'@material/mwc-icon';import'./dynamic-menu-portrait';import'./dynamic-menu-landscape';import{css,html,LitElement}from'lit';import{connect}from'pwa-helpers';import{store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';function isActiveMenu(_0x5ddd58,_0x2a081f){var _0x48599d=a0_0x5456;return _0x5ddd58[_0x48599d(0x85)]?.[_0x48599d(0xaa)]('?')[0x0]===_0x2a081f||_0x5ddd58[_0x48599d(0x95)]&&_0x48599d(0x94)==typeof _0x5ddd58[_0x48599d(0x95)]&&_0x5ddd58[_0x48599d(0x95)][_0x48599d(0x8e)](_0x5ddd58,{'path':_0x2a081f});}function a0_0x5456(_0x82c4ca,_0x4e36af){var _0x27b17a=a0_0x27b1();return a0_0x5456=function(_0x5456c1,_0xbcfc7e){_0x5456c1=_0x5456c1-0x82;var _0x279de9=_0x27b17a[_0x5456c1];return _0x279de9;},a0_0x5456(_0x82c4ca,_0x4e36af);}export class DynamicMenuPart extends connect(store)(LitElement){static get[a0_0x47cfe4(0x90)](){return{'page':String,'resourceId':String,'menus':Array,'orientation':String,'_activeTopLevel':Object,'_activeMenu':Object,'_path':String};}static get[a0_0x47cfe4(0x83)](){return[ScrollbarStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -27,18 +27,18 @@ var a0_0x14f5b0=a0_0x299a;function a0_0x4b48(){var _0x8030f4=['has','1586943yFAJ
|
|
|
27
27
|
dynamic-menu-landscape {
|
|
28
28
|
flex: 1;
|
|
29
29
|
}
|
|
30
|
-
`];}[
|
|
30
|
+
`];}[a0_0x47cfe4(0x8f)](){var _0x1caf29=a0_0x47cfe4;return html`
|
|
31
31
|
<slot name="head"></slot>
|
|
32
|
-
${
|
|
33
|
-
.menus=${this[
|
|
34
|
-
.activeTopLevel=${this[
|
|
35
|
-
.activeMenu=${this[
|
|
32
|
+
${_0x1caf29(0x91)!==this[_0x1caf29(0xa3)]?html`<dynamic-menu-portrait
|
|
33
|
+
.menus=${this['menus']}
|
|
34
|
+
.activeTopLevel=${this[_0x1caf29(0x9d)]}
|
|
35
|
+
.activeMenu=${this['_activeMenu']}
|
|
36
36
|
.path=${this['_path']}
|
|
37
37
|
></dynamic-menu-portrait>`:html`<dynamic-menu-landscape
|
|
38
|
-
.menus=${this[
|
|
39
|
-
.activeTopLevel=${this[
|
|
40
|
-
.activeMenu=${this[
|
|
41
|
-
.path=${this[
|
|
38
|
+
.menus=${this[_0x1caf29(0x9a)]}
|
|
39
|
+
.activeTopLevel=${this[_0x1caf29(0x9d)]}
|
|
40
|
+
.activeMenu=${this[_0x1caf29(0xab)]}
|
|
41
|
+
.path=${this[_0x1caf29(0x99)]}
|
|
42
42
|
></dynamic-menu-landscape>`}
|
|
43
43
|
<slot name="tail"></slot>
|
|
44
|
-
`;}[
|
|
44
|
+
`;}[a0_0x47cfe4(0xa7)](){var _0x1e5cac=a0_0x47cfe4;this[_0x1e5cac(0xae)][_0x1e5cac(0x88)](_0x1e5cac(0x89),_0x5aa56e=>{var _0x27087c=_0x1e5cac;_0x5aa56e[_0x27087c(0xa6)](),_0x5aa56e[_0x27087c(0x9e)](),this[_0x27087c(0x9d)]=_0x5aa56e[_0x27087c(0xa2)];});}[a0_0x47cfe4(0x92)](_0x20500b){var _0x321922=a0_0x47cfe4;(_0x20500b['has']('menus')||_0x20500b[_0x321922(0x9b)](_0x321922(0x97))||_0x20500b[_0x321922(0x9b)]('resourceId'))&&this['_findActivePage'](),_0x20500b['has']('orientation')&&('portrait'==this[_0x321922(0xa3)]?this['removeAttribute'](_0x321922(0x91)):this[_0x321922(0x8a)](_0x321922(0x91),!0x0)),_0x20500b[_0x321922(0x9b)](_0x321922(0x8d))&&this[_0x321922(0xa9)](this['slotTemplate']);}[a0_0x47cfe4(0xa5)](_0x130cd5){var _0xcc0bfb=a0_0x47cfe4;this['page']=_0x130cd5[_0xcc0bfb(0x86)][_0xcc0bfb(0x97)],this[_0xcc0bfb(0x96)]=_0x130cd5[_0xcc0bfb(0x86)]['resourceId'],this[_0xcc0bfb(0x9a)]=_0x130cd5[_0xcc0bfb(0xa1)][_0xcc0bfb(0x9a)]||[],this[_0xcc0bfb(0x8d)]=_0x130cd5[_0xcc0bfb(0xa1)]['slotTemplate'];}[a0_0x47cfe4(0x82)](){var _0x3e7e98=a0_0x47cfe4,_0x4bb0be,_0x2be0db=this['resourceId']?this['page']+'/'+this['resourceId']:this[_0x3e7e98(0x97)],_0x387298=this[_0x3e7e98(0x9a)]||[];this[_0x3e7e98(0x9d)]=_0x387298[_0x3e7e98(0xad)](_0x174ca2=>isActiveMenu(_0x174ca2,_0x2be0db)?(_0x4bb0be=_0x174ca2,!0x0):_0x174ca2[_0x3e7e98(0x9a)]?!!(_0x4bb0be=_0x174ca2[_0x3e7e98(0x9a)][_0x3e7e98(0xad)](_0x503acc=>isActiveMenu(_0x503acc,_0x2be0db))):void 0x0),this[_0x3e7e98(0x99)]=_0x2be0db,this['_activeMenu']=_0x4bb0be||this[_0x3e7e98(0x9d)];}}function a0_0x27b1(){var _0x288600=['find','renderRoot','_findActivePage','styles','602870RElqdh','path','route','12696HwJlEm','addEventListener','active-toplevel','setAttribute','36SpxUTO','dynamic-menu-part','slotTemplate','call','render','properties','landscape','updated','15961MvHSMq','function','active','resourceId','page','2497650xVBwLw','_path','menus','has','2386132akIiby','_activeTopLevel','preventDefault','3OjqtCp','485uhjEGp','metaUI','detail','orientation','13028LPMqFs','stateChanged','stopPropagation','firstUpdated','749496PcQmEQ','replaceChild','split','_activeMenu','13480EFDMiF'];a0_0x27b1=function(){return _0x288600;};return a0_0x27b1();}customElements['define'](a0_0x47cfe4(0x8c),DynamicMenuPart);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x4696(_0x290dae,_0x1f4dd5){const _0x4e029a=a0_0x4e02();return a0_0x4696=function(_0x4696e2,_0x165bc9){_0x4696e2=_0x4696e2-0x135;let _0x521c02=_0x4e029a[_0x4696e2];return _0x521c02;},a0_0x4696(_0x290dae,_0x1f4dd5);}(function(_0x3e9e87,_0x4af3f4){const _0x124c9=a0_0x4696,_0x324353=_0x3e9e87();while(!![]){try{const _0x158777=parseInt(_0x124c9(0x13a))/0x1*(parseInt(_0x124c9(0x135))/0x2)+-parseInt(_0x124c9(0x13d))/0x3+-parseInt(_0x124c9(0x137))/0x4+-parseInt(_0x124c9(0x138))/0x5*(-parseInt(_0x124c9(0x139))/0x6)+-parseInt(_0x124c9(0x13e))/0x7*(-parseInt(_0x124c9(0x13f))/0x8)+-parseInt(_0x124c9(0x136))/0x9*(parseInt(_0x124c9(0x13b))/0xa)+parseInt(_0x124c9(0x13c))/0xb;if(_0x158777===_0x4af3f4)break;else _0x324353['push'](_0x324353['shift']());}catch(_0x3b7c9e){_0x324353['push'](_0x324353['shift']());}}}(a0_0x4e02,0x43450));import{css}from'lit';export const DynamicMenuPortraitStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -125,4 +125,4 @@ function a0_0x2a35(){const _0x3001d8=['786120CDrMNJ','770484brrbMy','893178svbon
|
|
|
125
125
|
font: bold 14px var(--theme-font);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
`;
|
|
128
|
+
`;function a0_0x4e02(){const _0x19e9e7=['9594805tdeeXP','317100vMCdGD','7QtSQkW','1975352dGsZmR','6IrtlSX','4609611OMBxVQ','1888292wvVJfQ','66235YgZeam','6kEXfQz','77689soRAgR','10NMLRPC'];a0_0x4e02=function(){return _0x19e9e7;};return a0_0x4e02();}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x329624=a0_0x3f8b;(function(_0x414179,_0x20495b){const _0xc0437a=a0_0x3f8b,_0x7e8693=_0x414179();while(!![]){try{const _0x5798b8=parseInt(_0xc0437a(0x159))/0x1*(parseInt(_0xc0437a(0x15c))/0x2)+-parseInt(_0xc0437a(0x157))/0x3+-parseInt(_0xc0437a(0x16a))/0x4+parseInt(_0xc0437a(0x150))/0x5+-parseInt(_0xc0437a(0x14e))/0x6*(parseInt(_0xc0437a(0x160))/0x7)+parseInt(_0xc0437a(0x154))/0x8+parseInt(_0xc0437a(0x164))/0x9;if(_0x5798b8===_0x20495b)break;else _0x7e8693['push'](_0x7e8693['shift']());}catch(_0x5dd0b6){_0x7e8693['push'](_0x7e8693['shift']());}}}(a0_0x4d19,0x24b3b));import'@material/mwc-icon';import{html,LitElement}from'lit';import{navigate}from'@operato/shell';function a0_0x4d19(){const _0x4778c2=['1071796WQnShm','properties','map','call','#force','845562pxOmHc','function','656590vexBoH','menu','path','dispatchEvent','398368pQdCFn','setAttribute','active-toplevel','220506hvagpt','transitionstart','4639QFragn','href','transitionend','106CPzVud','group','render','target','7FsEwnC','settled','addEventListener','dynamic-menu-portrait','1851552uNzmNT','activeTopLevel','renderMenus','renderRoot','closest','define'];a0_0x4d19=function(){return _0x4778c2;};return a0_0x4d19();}import{ScrollbarStyles}from'@operato/styles';import{DynamicMenuPortraitStyles}from'./dynamic-menu-portrait-styles';export class DynamicMenuPortrait extends LitElement{static get['styles'](){return[ScrollbarStyles,DynamicMenuPortraitStyles];}static get[a0_0x329624(0x16b)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x329624(0x166)](_0x3005ed,_0x1dd604,_0x3ea44){const _0x2bbfb4=a0_0x329624;return html`
|
|
2
2
|
<ul>
|
|
3
|
-
${
|
|
4
|
-
<li ?active=${
|
|
5
|
-
<a href=${
|
|
6
|
-
${
|
|
7
|
-
<mwc-icon>${
|
|
8
|
-
${
|
|
3
|
+
${_0x3005ed[_0x2bbfb4(0x16c)](_0x6be4d3=>{const _0x3875e7=_0x2bbfb4;var {type:_0x46054a,active:_0x54f299,path:_0x32da42,name:_0x19f983,badge:_0x252e2a,icon:_0x44d712,menus:_0x247564}=_0x6be4d3;return _0x54f299=!(!_0x54f299||_0x3875e7(0x14f)!=typeof _0x54f299)&&_0x54f299[_0x3875e7(0x14c)](_0x6be4d3,{'path':this[_0x3875e7(0x152)]}),_0x252e2a=_0x3875e7(0x14f)==typeof _0x252e2a?_0x252e2a[_0x3875e7(0x14c)](_0x6be4d3):_0x252e2a??!0x1,_0x3875e7(0x15d)==_0x46054a?html`<li group-label>${_0x19f983}</li>`:html`
|
|
4
|
+
<li ?active=${_0x1dd604?_0x6be4d3===_0x1dd604:_0x54f299} .menu=${_0x6be4d3} menu>
|
|
5
|
+
<a href=${_0x32da42||'#'}>
|
|
6
|
+
${_0x247564?.['length']>0x0?html` <mwc-icon submenu-button></mwc-icon> `:html``}
|
|
7
|
+
<mwc-icon>${_0x44d712}</mwc-icon>
|
|
8
|
+
${_0x19f983} ${!0x1!==_0x252e2a?html`<div badge>${_0x252e2a}</div>`:html``}
|
|
9
9
|
</a>
|
|
10
|
-
${
|
|
10
|
+
${_0x247564&&this[_0x3875e7(0x166)](_0x247564,_0x3ea44)}
|
|
11
11
|
</li>
|
|
12
12
|
`;})}
|
|
13
13
|
</ul>
|
|
14
|
-
`;}[
|
|
14
|
+
`;}[a0_0x329624(0x15e)](){const _0x9f48cc=a0_0x329624,{menus:_0x1d9538,activeTopLevel:_0x441c98,activeMenu:_0x13801f}=this;return this[_0x9f48cc(0x166)](_0x1d9538,_0x441c98,_0x13801f);}['firstUpdated'](){const _0x1c733e=a0_0x329624;this[_0x1c733e(0x167)][_0x1c733e(0x162)]('click',_0x374deb=>{const _0x117d06=_0x1c733e,_0x23d57e=_0x374deb['target'][_0x117d06(0x168)]('[menu]');if(_0x23d57e?.[_0x117d06(0x151)]){let _0x3eefd8=_0x23d57e[_0x117d06(0x151)];_0x3eefd8['path']||(_0x374deb['stopPropagation'](),_0x374deb['preventDefault']()),this[_0x117d06(0x153)](new CustomEvent(_0x117d06(0x156),{'bubbles':!0x0,'detail':this[_0x117d06(0x165)]===_0x3eefd8?void 0x0:_0x3eefd8}));}let _0x4cf0c9=_0x374deb[_0x117d06(0x15f)]['href'];_0x4cf0c9&&location[_0x117d06(0x15a)]===_0x4cf0c9&&navigate(_0x4cf0c9+_0x117d06(0x14d),!0x0);}),this['renderRoot']['addEventListener'](_0x1c733e(0x158),_0x33512b=>{const _0x5c6c32=_0x1c733e;_0x33512b['target']['removeAttribute'](_0x5c6c32(0x161));}),this['renderRoot'][_0x1c733e(0x162)](_0x1c733e(0x15b),_0x4dbb68=>{const _0x1e9587=_0x1c733e;_0x4dbb68[_0x1e9587(0x15f)][_0x1e9587(0x155)]('settled','');});}}function a0_0x3f8b(_0x58ec6d,_0x4e0f30){const _0x4d1927=a0_0x4d19();return a0_0x3f8b=function(_0x3f8b2c,_0x4e9feb){_0x3f8b2c=_0x3f8b2c-0x14c;let _0x4e9445=_0x4d1927[_0x3f8b2c];return _0x4e9445;},a0_0x3f8b(_0x58ec6d,_0x4e0f30);}customElements[a0_0x329624(0x169)](a0_0x329624(0x163),DynamicMenuPortrait);
|