@things-factory/meta-ui 6.1.12 → 6.1.14
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 +10 -10
- package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
- package/client/component/grist/editor/grist-editor-meta-object-selector.js +6 -6
- package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
- package/client/component/selector/meta-object-selector-popup.js +11 -11
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +1 -1
- package/client/mixin/meta-main-tab-mixin.js +1 -1
- package/client/mixin/meta-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-detail-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/activity/meta-activity-list-page.js +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +3 -3
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/entity/config-entity.js +28 -28
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-main-tab-element.js +1 -1
- package/client/pages/meta-main-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-detail-element.js +1 -1
- package/client/pages/meta-tab-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +5 -5
- package/client/pages/work-code/work-code-detail-popup.js +1 -1
- package/client/pages/work-code/work-code-page.js +1 -1
- package/client/reducers/main.js +1 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +177 -176
- package/client/utils/service-util.js +13 -13
- package/client/utils/terms-util.js +2 -2
- package/client/utils/ui-util.js +1 -1
- package/client/utils/value-util.js +1 -1
- package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +12 -12
- package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +2 -2
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -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
|
-
function
|
|
1
|
+
function a0_0x39ba(_0x34e905,_0x409e33){const _0x2f2bbb=a0_0x2f2b();return a0_0x39ba=function(_0x39ba57,_0x198e0c){_0x39ba57=_0x39ba57-0x83;let _0x3b5b13=_0x2f2bbb[_0x39ba57];return _0x3b5b13;},a0_0x39ba(_0x34e905,_0x409e33);}const a0_0x2b1b8e=a0_0x39ba;(function(_0x10f62e,_0x229ce3){const _0xb07e9d=a0_0x39ba,_0x5e8e0a=_0x10f62e();while(!![]){try{const _0x57c88d=-parseInt(_0xb07e9d(0xfc))/0x1*(parseInt(_0xb07e9d(0xb3))/0x2)+parseInt(_0xb07e9d(0xe1))/0x3*(parseInt(_0xb07e9d(0xee))/0x4)+parseInt(_0xb07e9d(0x88))/0x5+parseInt(_0xb07e9d(0xa6))/0x6+-parseInt(_0xb07e9d(0xe7))/0x7+-parseInt(_0xb07e9d(0xc5))/0x8+parseInt(_0xb07e9d(0xe0))/0x9;if(_0x57c88d===_0x229ce3)break;else _0x5e8e0a['push'](_0x5e8e0a['shift']());}catch(_0x3bb833){_0x5e8e0a['push'](_0x5e8e0a['shift']());}}}(a0_0x2f2b,0xe3f2b));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_0x2f2b(){const _0x42a8b3=['hidden','SCREEN','showToast','4721280jLfBmf','errors','unshift','gridPersonalizeTemplates','map','undefined','arrangeMenuRoutes','info','message','checkClientError','Graphql\x20Error','badge','text.nothing_selected','2DPaygP','cuFlag','records','\x0a\x20\x20\x20\x20\x20\x20','searchMyDynamicMenus','parent','display','filter','success\x20to\x20delete','children','length','resourceUrl','approval-pending-list','selected','group','reduce','gutter','value','9622400WlGzaQ','title','question','draft-list','noteq','getSelectedIdList','networkError','isArray','xlsx','id,template','hiddenFlag','codeItems','menus','isEmpty','iconPath','buildArgs','record','columns','text.are_you_sure','test','deleteListByIds','findOne','imex','deleteListByGristSelected','runScenario','total','numberOfDrafts','26455347JkRFBi','46653UHiDGd','workCodeByName','code','HOME','updatedAt','fetch','6811126TiskGz','menu.id','numberOfApprovalPendings','text.there_is_nothing_to_delete','forEach','extensions','category','36RhjQOB','__seq__','splice','getCodeByEntity','getWorkCodeByName','tMenu','type','__dirty__','__origin__','showGraphqlErrorResponse','__dirtyfields__','isNotEmpty','sort','text.nothing_changed','1863097rDfOli','showAlertPopup','success\x20to\x20process','split','push','includes','result','callScenario','todo-list','active','searchMenuGridPersnalTemplate','path','updateMultiple','dirtyRecords','key','createdAt','rank','cancel','GROUP','5531340VNBLdj','showGraphqlException','routing','success\x20to\x20save','routingType','updateMultipleData','exportableData','object','description','updater','patchesForUpdateMultiple','confirm','error','query','getCodeByScenario','_config','__selected__','details','searchByPagination','template','text.NOTHING_CHANGED','MENU','data','myDynamicMenus','tText','name','menuType'];a0_0x2f2b=function(){return _0x42a8b3;};return a0_0x2f2b();}import{UiUtil}from'./ui-util';import a0_0x4b1d60 from'graphql-tag';import{ValueUtil}from'./value-util';import{asyncReplace}from'lit/directives/async-replace.js';import a0_0x3b69c2 from'i18next';import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';export class ServiceUtil{static async[a0_0x2b1b8e(0xd0)](_0x5b83b0){const _0x236bd5=a0_0x2b1b8e;if(Array[_0x236bd5(0xcc)](_0x5b83b0))return _0x5b83b0[_0x236bd5(0xaa)](_0x191646=>_0x236bd5(0x8f)==typeof _0x191646?{'name':_0x191646[_0x236bd5(0xc4)],'description':_0x191646[_0x236bd5(0xb9)]}:{'name':_0x191646,'description':_0x191646});let _0x5b533e=await ServiceUtil['getWorkCodeByName'](_0x5b83b0);return _0x5b533e&&_0x5b533e[_0x236bd5(0xbd)]>0x0?_0x5b533e:await getCodeByName(_0x5b83b0);}static async[a0_0x2b1b8e(0xf2)](_0x3b7ea3){const _0x43240a=a0_0x2b1b8e,_0xa0acef=await client[_0x43240a(0x95)]({'query':a0_0x4b1d60`
|
|
2
2
|
query workCodeByName($name: String!) {
|
|
3
3
|
workCodeByName(name: $name) {
|
|
4
4
|
details {
|
|
@@ -8,32 +8,32 @@ function a0_0x1c8b(){const _0x3903ea=['filter','showAlertPopup','\x0a\x20\x20\x2
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
`,'variables':{'name':
|
|
11
|
+
`,'variables':{'name':_0x3b7ea3},'context':gqlContext()});return!_0xa0acef['errors']&&_0xa0acef[_0x43240a(0x9e)]['workCodeByName']&&_0xa0acef['data'][_0x43240a(0xe2)][_0x43240a(0x99)]?_0xa0acef['data']['workCodeByName'][_0x43240a(0x99)][_0x43240a(0xfa)]((_0x2faa40,_0x3a9a0c)=>_0x2faa40[_0x43240a(0x85)]-_0x3a9a0c[_0x43240a(0x85)]):[];}static async['getCodeSelectorData'](_0x18bccb){const _0x5db87d=a0_0x2b1b8e;let _0x2e10f4=(await ServiceUtil[_0x5db87d(0xd0)](_0x18bccb))[_0x5db87d(0xaa)](_0x5d952f=>({'value':_0x5d952f[_0x5db87d(0xa1)],'display':_0x5d952f[_0x5db87d(0x90)]}));return _0x2e10f4[_0x5db87d(0xa8)]({'value':'','display':''}),_0x2e10f4;}static async[a0_0x2b1b8e(0x96)](_0x19c244,_0x2ec74f){const _0x29f53c=a0_0x2b1b8e;let _0x2f11b1=await ServiceUtil[_0x29f53c(0x103)](null,_0x19c244,_0x2ec74f);return _0x2f11b1[_0x29f53c(0xa8)]({'value':'','display':''}),_0x2f11b1[_0x29f53c(0xaa)](_0x3a80a9=>({'value':_0x3a80a9['name'],'display':_0x3a80a9[_0x29f53c(0x90)]}));}static async[a0_0x2b1b8e(0xf1)]({queryName:_0x49e07d,codeField:_0x5652df=a0_0x2b1b8e(0xa1),dispField:_0x59518a=a0_0x2b1b8e(0x90),filters:_0xb86aef=[],sorters:_0x1ed1bd=[]}){const _0xd91f86=a0_0x2b1b8e;let _0x31c4de=_0xd91f86(0xb6)+_0x5652df+_0xd91f86(0xb6)+_0x59518a+'\x0a\x20\x20\x20\x20',_0x58afd9=await ServiceUtil['searchByPagination'](_0x49e07d,_0xb86aef,_0x1ed1bd,0x0,0x0,_0x31c4de),_0x1c2ae2=[{'value':'','display':''}];return _0x58afd9[_0xd91f86(0xb5)][_0xd91f86(0xeb)](_0x26af6d=>{const _0x12f909=_0xd91f86;_0x1c2ae2[_0x12f909(0x100)]({'value':_0x26af6d[_0x5652df],'display':_0x26af6d[_0x59518a]});}),_0x1c2ae2;}static async[a0_0x2b1b8e(0x9f)](){const _0x39c687=a0_0x2b1b8e;let _0x651b74=await ServiceUtil[_0x39c687(0xb7)]();return null!=_0x651b74?ServiceUtil['arrangeMenuRoutes'](_0x651b74):null;}static async[a0_0x2b1b8e(0x106)](_0x3987af){const _0x50e296=a0_0x2b1b8e;let _0x4d8545=[{'name':_0x50e296(0xe8),'operator':'eq','value':_0x3987af}],_0x2d3418=await ServiceUtil['searchByPagination'](_0x50e296(0xa9),_0x4d8545,[],0x0,0x0,_0x50e296(0xce));return 0x0==_0x2d3418[_0x50e296(0xde)]?{}:{'id':_0x2d3418[_0x50e296(0xb5)][0x0]['id'],'template':JSON['parse'](_0x2d3418[_0x50e296(0xb5)][0x0][_0x50e296(0x9b)])};}static[a0_0x2b1b8e(0xac)](_0x21a842){const _0x41de96=a0_0x2b1b8e;let _0x18bd76=[];_0x21a842['forEach'](_0x3a48f6=>{const _0xf679cf=a0_0x39ba;_0x18bd76['push'](_0x3a48f6),_0x3a48f6[_0xf679cf(0xbc)]&&(_0x3a48f6[_0xf679cf(0xbc)][_0xf679cf(0xfa)](function(_0x4de47e,_0x4c778e){const _0xe9eaf1=_0xf679cf;return _0x4de47e[_0xe9eaf1(0x85)]-_0x4c778e['rank'];}),_0x3a48f6[_0xf679cf(0xbc)][_0xf679cf(0xeb)](_0x2aa544=>{const _0x4de9de=_0xf679cf;0x1!=_0x2aa544[_0x4de9de(0xcf)]&&(_0x2aa544[_0x4de9de(0xb8)]=_0x3a48f6,_0x18bd76['push'](_0x2aa544));}));});let _0xfccf46=_0x18bd76[_0x41de96(0xaa)](_0x16c6f1=>{const _0x532244=_0x41de96;if(_0x532244(0x87)==_0x16c6f1['menuType']||_0x532244(0x9d)==_0x16c6f1[_0x532244(0xa2)]){let _0x3e74af={'id':_0x16c6f1['id'],'parent':!0x0,'name':TermsUtil['tMenu'](_0x16c6f1[_0x532244(0xa1)]),'icon':_0x16c6f1[_0x532244(0xd3)],'type':_0x532244(0x87)==_0x16c6f1['menuType']?_0x532244(0xc1):'','menus':[]};return _0x16c6f1['routing']&&(_0x3e74af[_0x532244(0x107)]=_0x16c6f1['routing']),_0x3e74af;}return{'id':'0'};})[_0x41de96(0xba)](_0xa8ed60=>'0'!=_0xa8ed60['id']),_0x548b86=_0x18bd76[_0x41de96(0xaa)](_0x26357f=>{const _0x3321df=_0x41de96;if(_0x3321df(0xa4)==_0x26357f[_0x3321df(0xa2)]||'HIDDEN-PAGE'==_0x26357f[_0x3321df(0xa2)]){let _0x54a0f1=_0xfccf46['find'](_0x1790f1=>_0x1790f1['id']==_0x26357f[_0x3321df(0xb8)]['id']);if(_0x54a0f1){let _0x472069=TermsUtil[_0x3321df(0xf3)](_0x26357f[_0x3321df(0xa1)]);return _0x3321df(0xa4)==_0x26357f[_0x3321df(0xa2)]&&_0x54a0f1[_0x3321df(0xd1)]['push']({'id':_0x26357f['id'],'name':_0x472069,'path':_0x26357f[_0x3321df(0x8a)],'icon':_0x26357f['iconPath']}),{'id':_0x26357f['id'],'parent':!0x1,'parent_id':_0x54a0f1['id'],'title':_0x472069,'tagname':_0x26357f[_0x3321df(0xed)],'page':_0x26357f[_0x3321df(0x8a)],'template':_0x26357f['resourceUrl'],'routing_type':_0x26357f[_0x3321df(0x8c)]};}return{'id':'0'};}return'HOME'==_0x26357f[_0x3321df(0xa2)]?{'id':_0x26357f['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil['tMenu'](_0x26357f['name']),'tagname':_0x26357f[_0x3321df(0xed)],'page':_0x26357f[_0x3321df(0x8a)],'template':_0x26357f[_0x3321df(0xbe)],'routing_type':_0x26357f[_0x3321df(0x8c)]}:{'id':'0'};})[_0x41de96(0xba)](_0x48960c=>null!=_0x48960c&&'0'!=_0x48960c['id']);_0xfccf46[_0x41de96(0xba)](_0x147255=>_0x41de96(0xc1)==_0x147255[_0x41de96(0xf4)]&&_0x147255['menus']&&_0x147255[_0x41de96(0xd1)]['length']>0x0)[_0x41de96(0xeb)](_0x3f404b=>{const _0x96c321=_0x41de96;let _0x89f335=_0xfccf46['findIndex'](_0x5ba0c2=>_0x5ba0c2['id']==_0x3f404b['id'])+0x1;_0xfccf46[_0x96c321(0xf0)](_0x89f335,0x0,..._0x3f404b[_0x96c321(0xd1)]);});let _0x283466=0x0;return _0xfccf46[_0x41de96(0xeb)](_0x54e48a=>{const _0x324ffc=_0x41de96;_0x324ffc(0x104)==_0x54e48a['path']?(_0x283466++,_0x54e48a[_0x324ffc(0xb1)]=()=>asyncReplace(generateActivitySummary('numberOfToDos')),_0x54e48a[_0x324ffc(0x105)]=({path:_0x75cc78})=>/^activity\//[_0x324ffc(0xd8)](_0x75cc78)):_0x324ffc(0xbf)==_0x54e48a[_0x324ffc(0x107)]?(_0x283466++,_0x54e48a[_0x324ffc(0xb1)]=()=>asyncReplace(generateActivitySummary(_0x324ffc(0xe9))),_0x54e48a[_0x324ffc(0x105)]=({path:_0x3c99bc})=>/^activity\//[_0x324ffc(0xd8)](_0x3c99bc)):_0x324ffc(0xc8)==_0x54e48a[_0x324ffc(0x107)]&&(_0x283466++,_0x54e48a[_0x324ffc(0xb1)]=()=>asyncReplace(generateActivitySummary(_0x324ffc(0xdf))));}),_0x283466>0x0&&startSubscribeActivitySummary(),{'menus':_0xfccf46,'routes':_0x548b86};}static async['searchMyDynamicMenus'](){const _0x14a8f1=a0_0x2b1b8e;let _0x2a3e3a=await ServiceUtil[_0x14a8f1(0x9a)]('menus',[{'name':_0x14a8f1(0xcf),'operator':_0x14a8f1(0xc9),'value':!0x0},{'name':_0x14a8f1(0xa2),'operator':'in','value':[_0x14a8f1(0xe4),_0x14a8f1(0x9d),_0x14a8f1(0x87)]}],[{'name':'rank'}],0x0,0x0,'\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');return _0x2a3e3a?_0x2a3e3a[_0x14a8f1(0xb5)]:[];}static async[a0_0x2b1b8e(0xf7)](_0x3bd8a9){const _0x2d37db=a0_0x2b1b8e;if(_0x3bd8a9[_0x2d37db(0xa7)]&&_0x3bd8a9[_0x2d37db(0xa7)]['length']>0x0){let _0x55a13f=_0x3bd8a9[_0x2d37db(0xa7)][0x0],_0x39c463=_0x55a13f['message'],_0x5a1b78=_0x55a13f[_0x2d37db(0xae)];_0x55a13f[_0x2d37db(0xec)]&&(_0x5a1b78=_0x55a13f[_0x2d37db(0xec)][_0x2d37db(0xe3)]),await UiUtil['showAlertPopup'](_0x5a1b78,_0x39c463,_0x2d37db(0x94),'confirm');}}static async[a0_0x2b1b8e(0x89)](_0x5fe69b){const _0x1555fe=a0_0x2b1b8e;_0x5fe69b&&(_0x5fe69b[_0x1555fe(0xcb)]&&_0x5fe69b[_0x1555fe(0xcb)][_0x1555fe(0x102)]?await ServiceUtil['showGraphqlErrorResponse'](_0x5fe69b[_0x1555fe(0xcb)]['result']):await UiUtil[_0x1555fe(0xfd)](_0x1555fe(0xb0),_0x5fe69b['message'],_0x1555fe(0x94),_0x1555fe(0x93)));}static async[a0_0x2b1b8e(0x8e)](_0x5357c7,_0x587a06,_0x56e450){const _0x1126f9=a0_0x2b1b8e;var _0x84436=_0x56e450['_config'][_0x1126f9(0xd6)]['filter'](_0x2ddb53=>_0x1126f9(0xc3)!==_0x2ddb53[_0x1126f9(0xf4)]&&void 0x0!==_0x2ddb53[_0x1126f9(0xd5)]&&void 0x0!==_0x2ddb53[_0x1126f9(0xdb)]&&!0x0!==_0x2ddb53[_0x1126f9(0xa3)])[_0x1126f9(0xaa)](_0x3f3bbc=>_0x3f3bbc['imex']),_0x4b1e13=_0x56e450[_0x1126f9(0x9e)][_0x1126f9(0xb5)][_0x1126f9(0xaa)](_0x16d7ca=>({..._0x56e450[_0x1126f9(0x97)]['columns']['filter'](_0x1a5cb5=>_0x1126f9(0xc3)!==_0x1a5cb5[_0x1126f9(0xf4)]&&void 0x0!==_0x1a5cb5[_0x1126f9(0xd5)]&&void 0x0!==_0x1a5cb5['imex']&&!0x0!==_0x1a5cb5[_0x1126f9(0xa3)])[_0x1126f9(0xc2)]((_0x5c1dd3,_0x3be8b2)=>(_0x5c1dd3[_0x3be8b2['imex']['key']]=_0x3be8b2['imex'][_0x1126f9(0x83)][_0x1126f9(0xff)]('.')['reduce']((_0x5cbb03,_0x25b040)=>_0x5cbb03&&_0x1126f9(0xab)!==_0x5cbb03[_0x25b040]?_0x5cbb03[_0x25b040]:void 0x0,_0x16d7ca),_0x5c1dd3),{})}));if(!_0x5357c7)return{'header':_0x84436,'data':_0x4b1e13};store['dispatch']({'type':EXPORT,'exportable':{'extension':_0x1126f9(0xcd),'name':_0x587a06,'data':{'header':_0x84436,'data':_0x4b1e13}}});}static async[a0_0x2b1b8e(0x9a)](_0x3ccbd4,_0x50a0f5,_0x53a8d7,_0x537eb1,_0x378d2f,_0x57604f){const _0x4b1844=a0_0x2b1b8e;try{const _0x5a3704=await client[_0x4b1844(0x95)]({'query':a0_0x4b1d60`
|
|
12
12
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
13
|
-
${
|
|
13
|
+
${_0x3ccbd4}(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
14
14
|
items {
|
|
15
|
-
${
|
|
15
|
+
${_0x57604f}
|
|
16
16
|
}
|
|
17
17
|
total
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,'variables':{'filters':
|
|
20
|
+
`,'variables':{'filters':_0x50a0f5,'sortings':_0x53a8d7,'pagination':{'page':_0x537eb1,'limit':_0x378d2f}}});if(!_0x5a3704['errors'])return{'records':_0x5a3704[_0x4b1844(0x9e)][_0x3ccbd4]['items'],'total':_0x5a3704[_0x4b1844(0x9e)][_0x3ccbd4][_0x4b1844(0xde)]};ServiceUtil[_0x4b1844(0xf7)](_0x5a3704);}catch(_0x45d6be){ServiceUtil[_0x4b1844(0x89)](_0x45d6be);}return null;}static async[a0_0x2b1b8e(0xda)](_0x56377f,_0x105659,_0x205b84){const _0x2a45c8=a0_0x2b1b8e;try{let _0x455023=await client['query']({'query':a0_0x4b1d60`
|
|
21
21
|
query ($id: String!) {
|
|
22
|
-
${
|
|
23
|
-
${
|
|
22
|
+
${_0x56377f}(id: $id) {
|
|
23
|
+
${_0x205b84}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,'variables':{'id':
|
|
26
|
+
`,'variables':{'id':_0x105659}});if(!_0x455023[_0x2a45c8(0xa7)])return _0x455023['data'][_0x56377f]||{};ServiceUtil[_0x2a45c8(0xf7)](_0x455023);}catch(_0x28ff94){ServiceUtil[_0x2a45c8(0x89)](_0x28ff94);}return null;}static['getSelectedIdList'](_0x1dd9d5,_0x5261ec){const _0x3b0e55=a0_0x2b1b8e,_0x10190b=_0x1dd9d5[_0x3b0e55(0xc0)][_0x3b0e55(0xaa)](_0x4794ef=>_0x4794ef['id']);return ValueUtil[_0x3b0e55(0xd2)](_0x10190b)&&0x1==_0x5261ec&&UiUtil[_0x3b0e55(0xfd)](_0x3b0e55(0xb2),_0x3b0e55(0xea),'info',_0x3b0e55(0x93)),_0x10190b;}static async[a0_0x2b1b8e(0xdc)](_0x2c1162,_0x5e5156){const _0x8b9f5e=a0_0x2b1b8e;let _0x22cacc=ServiceUtil[_0x8b9f5e(0xca)](_0x2c1162,!0x0);ValueUtil['isNotEmpty'](_0x22cacc)&&(await ServiceUtil[_0x8b9f5e(0xd9)](_0x22cacc,_0x5e5156)&&_0x2c1162[_0x8b9f5e(0xe6)]());}static async[a0_0x2b1b8e(0xd9)](_0x26591b,_0x2c1372){const _0x324af6=a0_0x2b1b8e;if(!(await UiUtil[_0x324af6(0xfd)]('button.delete',_0x324af6(0xd7),_0x324af6(0xc7),'delete','cancel'))[_0x324af6(0xc4)])return!0x1;try{const _0x4195d3=await client[_0x324af6(0x95)]({'query':a0_0x4b1d60`
|
|
27
27
|
mutation {
|
|
28
|
-
${
|
|
28
|
+
${_0x2c1372}(${gqlBuilder[_0x324af6(0xd4)]({'ids':_0x26591b})})
|
|
29
29
|
}
|
|
30
|
-
`});if(!
|
|
30
|
+
`});if(!_0x4195d3[_0x324af6(0xa7)])return UiUtil[_0x324af6(0xa5)]('info',TermsUtil[_0x324af6(0xa0)](_0x324af6(0xbb))),!0x0;ServiceUtil[_0x324af6(0xf7)](_0x4195d3);}catch(_0x366728){ServiceUtil['showGraphqlException'](_0x366728);}return!0x1;}static async[a0_0x2b1b8e(0x8d)](_0x4dc3a4,_0x1d4fdf){const _0x56017d=a0_0x2b1b8e;let _0x3ad254=ServiceUtil[_0x56017d(0x92)](_0x4dc3a4);if(ValueUtil[_0x56017d(0xf9)](_0x3ad254)){let _0x12b62e=await ServiceUtil[_0x56017d(0x108)](_0x1d4fdf,_0x3ad254);if(_0x12b62e)return _0x4dc3a4[_0x56017d(0xe6)](),_0x12b62e;}return!0x1;}static async[a0_0x2b1b8e(0x108)](_0x3dd8bb,_0x209365){const _0x42cb72=a0_0x2b1b8e;try{const _0x26d5fe=await client[_0x42cb72(0x95)]({'query':a0_0x4b1d60`
|
|
31
31
|
mutation {
|
|
32
|
-
${
|
|
32
|
+
${_0x3dd8bb}(${gqlBuilder[_0x42cb72(0xd4)]({'patches':_0x209365})}) {
|
|
33
33
|
id
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
`,'context':{'hasUpload':!0x0}});if(!
|
|
36
|
+
`,'context':{'hasUpload':!0x0}});if(!_0x26d5fe[_0x42cb72(0xa7)])return UiUtil[_0x42cb72(0xa5)](_0x42cb72(0xad),TermsUtil[_0x42cb72(0xa0)](_0x42cb72(0x8b))),!0x0;ServiceUtil[_0x42cb72(0xf7)](_0x26d5fe);}catch(_0x5bb681){ServiceUtil[_0x42cb72(0x89)](_0x5bb681);}return!0x1;}static[a0_0x2b1b8e(0x92)](_0x286872,_0x527d04=!0x1){const _0x1e31aa=a0_0x2b1b8e;let _0x13cddf=_0x286872[_0x1e31aa(0x109)];if(_0x13cddf&&0x0!=_0x13cddf[_0x1e31aa(0xbd)])return _0x13cddf['map'](_0x3f33f5=>{const _0x66074e=_0x1e31aa;let _0x1fa6f0=_0x3f33f5['id']?{'id':_0x3f33f5['id']}:{};for(let _0x1372c7 in _0x3f33f5)['creator',_0x66074e(0x91),_0x66074e(0x84),_0x66074e(0xe5),_0x66074e(0xf5),_0x66074e(0xf8),_0x66074e(0xf6),_0x66074e(0xef),_0x66074e(0x98)][_0x66074e(0x101)](_0x1372c7)||(_0x3f33f5[_0x1372c7]&&'object'==typeof _0x3f33f5[_0x1372c7]&&0x0==_0x527d04?_0x1fa6f0[_0x1372c7]={'id':_0x3f33f5[_0x1372c7]['id']}:_0x1fa6f0[_0x1372c7]=_0x3f33f5[_0x1372c7]);return _0x1fa6f0[_0x66074e(0xb4)]=_0x3f33f5[_0x66074e(0xf5)],_0x1fa6f0;});UiUtil[_0x1e31aa(0xfd)](_0x1e31aa(0xfb),_0x1e31aa(0x9c),_0x1e31aa(0xad),_0x1e31aa(0x93));}static async[a0_0x2b1b8e(0x103)](_0x2052a6,_0x9daca5,_0x233ed7,_0x48ab08=!0x0){const _0x214e38=a0_0x2b1b8e;let _0x4b27b3=!0x0;_0x2052a6&&!0x0===_0x48ab08&&(_0x4b27b3=(await UiUtil[_0x214e38(0xfd)]('button.'+_0x2052a6,_0x214e38(0xd7),_0x214e38(0xc7),_0x214e38(0x93),_0x214e38(0x86)))[_0x214e38(0xc4)]);if(_0x4b27b3)try{const _0x195698=await client['query']({'query':a0_0x4b1d60`
|
|
37
37
|
mutation ($scenarioName: String!, $variables: Object) {
|
|
38
38
|
runScenario(scenarioName: $scenarioName, variables: $variables) {
|
|
39
39
|
state
|
|
@@ -42,4 +42,4 @@ function a0_0x1c8b(){const _0x3903ea=['filter','showAlertPopup','\x0a\x20\x20\x2
|
|
|
42
42
|
__typename
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
`,'variables':{'scenarioName':
|
|
45
|
+
`,'variables':{'scenarioName':_0x9daca5,'variables':_0x233ed7}});if(_0x195698[_0x214e38(0xa7)])ServiceUtil['showGraphqlErrorResponse'](_0x195698);else{if(this[_0x214e38(0xaf)](_0x195698))return!0x0===_0x48ab08&&UiUtil['showToast'](_0x214e38(0xad),TermsUtil[_0x214e38(0xa0)](_0x214e38(0xfe))),_0x195698;}}catch(_0x36041e){ServiceUtil['showGraphqlException'](_0x36041e);}return!0x1;}static['checkClientError'](_0x341942){const _0xbbf462=a0_0x2b1b8e;if(_0x341942&&_0x341942[_0xbbf462(0x9e)]&&_0x341942[_0xbbf462(0x9e)]['runScenario']&&_0x341942[_0xbbf462(0x9e)][_0xbbf462(0xdd)][_0xbbf462(0x9e)]&&_0x341942[_0xbbf462(0x9e)][_0xbbf462(0xdd)]['data']['error']){let _0x3bddc1=_0x341942[_0xbbf462(0x9e)][_0xbbf462(0xdd)][_0xbbf462(0x9e)][_0xbbf462(0x94)];return UiUtil[_0xbbf462(0xfd)](_0x3bddc1[_0xbbf462(0xc6)],_0x3bddc1[_0xbbf462(0xae)],_0xbbf462(0x94),_0xbbf462(0x93)),!0x1;}return!0x0;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x4177b0=a0_0x4dbf;(function(_0xd1c90,_0x552435){const _0x1b0888=a0_0x4dbf,_0x2d3b53=_0xd1c90();while(!![]){try{const _0x258714=-parseInt(_0x1b0888(0xb3))/0x1+-parseInt(_0x1b0888(0xa0))/0x2+parseInt(_0x1b0888(0xa8))/0x3+-parseInt(_0x1b0888(0xb4))/0x4+parseInt(_0x1b0888(0xa6))/0x5*(-parseInt(_0x1b0888(0xa7))/0x6)+-parseInt(_0x1b0888(0xa5))/0x7+parseInt(_0x1b0888(0xa9))/0x8;if(_0x258714===_0x552435)break;else _0x2d3b53['push'](_0x2d3b53['shift']());}catch(_0x5cb2b3){_0x2d3b53['push'](_0x2d3b53['shift']());}}}(a0_0x3d93,0x3cac0));import a0_0x5a7fb2 from'graphql-tag';function a0_0x4dbf(_0x3c9e19,_0x35421b){const _0x3d93cf=a0_0x3d93();return a0_0x4dbf=function(_0x4dbfc8,_0x42f8f0){_0x4dbfc8=_0x4dbfc8-0x95;let _0x1bf4a9=_0x3d93cf[_0x4dbfc8];return _0x1bf4a9;},a0_0x4dbf(_0x3c9e19,_0x35421b);}import{client}from'@operato/graphql';import{i18next}from'@operato/i18n';function a0_0x3d93(){const _0x343cf1=['length','field','tLabel','697820NmlhcQ','button','error','display','tField','2217642WqGkjA','15iVCwtH','951738ZnHGee','814725rqZGru','11229024CJucXt','locale','forEach','terminologies','fetchTerminologies','menu','text','total','META_TERMS','records','284021nSAbJo','4340bADTUv','title','category','data','name','translate','label','errors','tTitle','replace','items','tError'];a0_0x3d93=function(){return _0x343cf1;};return a0_0x3d93();}export class TermsUtil{[a0_0x4177b0(0xb1)]=null;static async['downloadTerminologies'](_0x81a00e){const _0x134171=a0_0x4177b0;let _0x576cda=(await TermsUtil[_0x134171(0xad)](_0x81a00e))[_0x134171(0xb2)];_0x576cda&&_0x576cda[_0x134171(0x9d)]>0x0&&(this['META_TERMS']={},_0x576cda['forEach'](_0x470f66=>{const _0x4c1ad7=_0x134171;let _0x5e9306=_0x470f66['category']+'.'+_0x470f66[_0x4c1ad7(0x95)];this[_0x4c1ad7(0xb1)][_0x5e9306]=_0x470f66[_0x4c1ad7(0xa3)];}));}static async[a0_0x4177b0(0xad)](_0x220a86){const _0x4d1164=a0_0x4177b0;let _0x4c196d=[{'name':_0x4d1164(0xaa),'operator':'eq','value':_0x220a86}];const _0xbb878a=await client['query']({'query':a0_0x5a7fb2`
|
|
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_0x5a1f(){const _0x1c4d64=['length','tField','1808494YfWVtL','7626820
|
|
|
11
11
|
total
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
`,'variables':{'filters':
|
|
14
|
+
`,'variables':{'filters':_0x4c196d,'sortings':[{'name':_0x4d1164(0xb6)},{'name':_0x4d1164(0x95)}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0xbb878a[_0x4d1164(0x98)])return{'records':_0xbb878a[_0x4d1164(0xb7)]['terminologies'][_0x4d1164(0x9b)]||[],'total':_0xbb878a[_0x4d1164(0xb7)][_0x4d1164(0xac)][_0x4d1164(0xb0)]||0x0};}static[a0_0x4177b0(0x9f)](_0x31b520,_0x34d595){const _0x34e8a0=a0_0x4177b0;let _0x253ca0=TermsUtil['translate'](_0x34e8a0(0x97),_0x31b520,_0x34d595,null);return _0x253ca0||TermsUtil[_0x34e8a0(0x96)](_0x34e8a0(0x9e),_0x31b520,_0x34d595,_0x31b520);}static[a0_0x4177b0(0xa4)](_0x52ad2d,_0x4af4c3){const _0x33d127=a0_0x4177b0;let _0x9393e1=TermsUtil['translate'](_0x33d127(0x9e),_0x52ad2d,_0x4af4c3,null);return _0x9393e1||TermsUtil[_0x33d127(0x96)](_0x33d127(0x9e),_0x52ad2d,_0x4af4c3,_0x52ad2d);}static['tButton'](_0x3da415){const _0x13865d=a0_0x4177b0;return TermsUtil['translate'](_0x13865d(0xa1),_0x3da415,null,_0x3da415);}static[a0_0x4177b0(0x99)](_0xfb6529,_0x4d65b2){const _0x315a82=a0_0x4177b0;let _0x336f54=TermsUtil[_0x315a82(0x96)](_0x315a82(0xb5),_0xfb6529,_0x4d65b2,null);return _0x336f54||TermsUtil['translate'](_0x315a82(0xae),_0xfb6529,_0x4d65b2,_0xfb6529);}static['tMenu'](_0xa79a1c){const _0x3d39e5=a0_0x4177b0;let _0x35a607=TermsUtil[_0x3d39e5(0x96)](_0x3d39e5(0xae),_0xa79a1c,null,_0xa79a1c);return _0x35a607||TermsUtil['translate'](_0x3d39e5(0xb5),_0xa79a1c,null,_0xa79a1c);}static['tText'](_0x11a845,_0x263a2c){const _0x4a8c30=a0_0x4177b0;return TermsUtil[_0x4a8c30(0x96)](_0x4a8c30(0xaf),_0x11a845,_0x263a2c,_0x11a845);}static[a0_0x4177b0(0x9c)](_0x54b6bf,_0x1dbb57){const _0x3930d2=a0_0x4177b0;return TermsUtil['translate'](_0x3930d2(0xa2),_0x54b6bf,_0x1dbb57,_0x54b6bf);}static[a0_0x4177b0(0x96)](_0x5441e7,_0xb8ac1,_0xb03b6,_0x536f13){let _0x585c84=_0x5441e7+'.'+_0xb8ac1;return TermsUtil['t'](_0x585c84,_0xb03b6,_0x536f13);}static['t'](_0x5f27a1,_0x497080,_0x5d5d23){const _0x3abe56=a0_0x4177b0;let _0x38e1d3=this[_0x3abe56(0xb1)]?this['META_TERMS'][_0x5f27a1]:null;return _0x38e1d3=_0x38e1d3||i18next['t'](_0x5f27a1),_0x38e1d3&&_0x5f27a1!=_0x38e1d3?(_0x497080&&Object['keys'](_0x497080)[_0x3abe56(0xab)](function(_0x204665){const _0x240515=_0x3abe56;var _0x510005='\x5c{'+_0x204665['replace'](/\$/,'\x5c$')+'\x5c}',_0x50a799=new RegExp(_0x510005,'gi');_0x38e1d3=_0x38e1d3[_0x240515(0x9a)](_0x50a799,_0x497080[_0x204665]);}),_0x38e1d3):_0x5d5d23;}}
|
package/client/utils/ui-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x2d866d=a0_0x4376;function a0_0x57ab(){const _0x1a8090=['config','getStore','innerHTML','openPopupByElement','8546805NajWCq','showAlertPopup','firstElementChild','\x27\x20is_popup=true></','cookie','i18next','829959zebZls','pass=','select-combo','stringify','popup_field','createEditorHtml','248036vCIKFY','isNotEmpty','45LicdfV','content','setValueToEditor','getFilterFormData','pageNavigate','1388944QwIirU','size','[name=\x27','input','substring','getState','value','getParams','151098bwzoIa','renderRoot','dispatchEvent','\x27\x20\x20parent_id=\x27','htmlToElement','createElement','indexOf','ox-select','8wozxSf','tagname','textarea','querySelector','3159884aftfVQ','ox-input-code','name','ox-input-barcode','length','barcode','template','setSearchFormEditorValue','code-editor','onclosed','parent_field','tButton','\x20route_name=\x27','app','i18next=','page','currentLocale','split','592829FkFTyF','\x27></','getApplicationModuleInfo','modules','removeChild','showToast','openDynamicPopup','getLeafInput','createCustomElement','isMobileEnv'];a0_0x57ab=function(){return _0x1a8090;};return a0_0x57ab();}(function(_0x239dc6,_0x34ecd6){const _0x2fd876=a0_0x4376,_0x9f9602=_0x239dc6();while(!![]){try{const _0x43d00b=parseInt(_0x2fd876(0xca))/0x1+parseInt(_0x2fd876(0xeb))/0x2+-parseInt(_0x2fd876(0xde))/0x3+parseInt(_0x2fd876(0xe4))/0x4+-parseInt(_0x2fd876(0xe6))/0x5*(parseInt(_0x2fd876(0xac))/0x6)+parseInt(_0x2fd876(0xb8))/0x7+-parseInt(_0x2fd876(0xb4))/0x8*(parseInt(_0x2fd876(0xd8))/0x9);if(_0x43d00b===_0x34ecd6)break;else _0x9f9602['push'](_0x9f9602['shift']());}catch(_0x554fd7){_0x9f9602['push'](_0x9f9602['shift']());}}}(a0_0x57ab,0x54e81));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_0x4376(_0x1665cb,_0x5b687c){const _0x57abb0=a0_0x57ab();return a0_0x4376=function(_0x4376fd,_0x1b67f8){_0x4376fd=_0x4376fd-0xac;let _0x60feea=_0x57abb0[_0x4376fd];return _0x60feea;},a0_0x4376(_0x1665cb,_0x5b687c);}import{ValueUtil}from'./value-util';import{MetaUiUtil}from'./meta-ui-util';export class UiUtil{static[a0_0x2d866d(0xd3)](){return isMobileDevice();}static[a0_0x2d866d(0xc8)](){const _0x449db5=a0_0x2d866d;let _0xd8aabb=document[_0x449db5(0xdc)];return _0xd8aabb=_0xd8aabb[_0x449db5(0xef)](_0xd8aabb[_0x449db5(0xb2)](_0x449db5(0xdd))),_0xd8aabb[_0x449db5(0xb2)](';')>-0x1&&(_0xd8aabb=_0xd8aabb[_0x449db5(0xef)](0x0,_0xd8aabb[_0x449db5(0xb2)](';'))),_0xd8aabb=_0xd8aabb['replace'](_0x449db5(0xc6),''),'ko'==_0xd8aabb?'ko-KR':_0xd8aabb;}static[a0_0x2d866d(0xcc)](){const _0x266114=a0_0x2d866d;let _0x18133e=store[_0x266114(0xf0)]()[_0x266114(0xc5)][_0x266114(0xcd)];return _0x18133e[_0x18133e[_0x266114(0xbc)]-0x1];}static['currentRouting'](){const _0x4817a3=a0_0x2d866d;return store[_0x4817a3(0xf0)]()['route'][_0x4817a3(0xc7)];}static[a0_0x2d866d(0xd7)](_0xbbf130,_0x23cffd,_0x2340a6,_0x1ae3e0){return openPopup(_0x2340a6,{'backdrop':!0x0,'size':_0x23cffd,'title':_0xbbf130,'backdrop':_0x1ae3e0});}static async[a0_0x2d866d(0xd0)](_0x113f5f,_0x479311,_0x32badf,_0x5397e9){const _0x254651=a0_0x2d866d;let _0x332d56=ValueUtil['isNotEmpty'](_0x479311[_0x254651(0xc2)])?ValueUtil[_0x254651(0xf2)](_0x32badf,..._0x479311[_0x254651(0xc2)][_0x254651(0xc9)]('.')):void 0x0,_0xa5c366='<'+_0x479311[_0x254651(0xb5)]+_0x254651(0xc4)+_0x479311['menu']+_0x254651(0xaf)+_0x332d56+_0x254651(0xdb)+_0x479311[_0x254651(0xb5)]+'>',_0x13006c=UiUtil[_0x254651(0xb0)](_0xa5c366);_0x13006c[_0x254651(0xd4)]=_0x479311,ValueUtil[_0x254651(0xe5)](_0x479311[_0x254651(0xe2)])&&(_0x13006c[_0x479311[_0x254651(0xe2)]]=_0x32badf);let _0x5605f3=UiUtil[_0x254651(0xd7)](_0x113f5f,_0x479311[_0x254651(0xec)],_0x13006c,!0x0);_0x5397e9&&(_0x5605f3[_0x254651(0xc1)]=_0x5397e9);}static[a0_0x2d866d(0xd2)](_0x394eab,_0x10c1bc){const _0x42cdc1=a0_0x2d866d;let _0x216f3c='<'+_0x394eab+_0x42cdc1(0xc4)+_0x10c1bc+_0x42cdc1(0xcb)+_0x394eab+'>';return UiUtil[_0x42cdc1(0xb0)](_0x216f3c);}static[a0_0x2d866d(0xb0)](_0x357446){const _0x2d8e9d=a0_0x2d866d;var _0x476c02=document[_0x2d8e9d(0xb1)](_0x2d8e9d(0xbe));_0x476c02[_0x2d8e9d(0xd6)]=_0x357446;var _0x5512de=_0x476c02[_0x2d8e9d(0xe7)]['childNodes'][0x0];return _0x476c02[_0x2d8e9d(0xe7)][_0x2d8e9d(0xce)](_0x5512de),_0x5512de;}static[a0_0x2d866d(0xea)](_0x38d106,_0x18235c){const _0x304af8=a0_0x2d866d;let _0x1b0e7e=_0x18235c?'?':'';_0x18235c&&(_0x1b0e7e+=_0x304af8(0xdf)+JSON[_0x304af8(0xe1)](_0x18235c)),navigate(''+_0x38d106+_0x1b0e7e);}static[a0_0x2d866d(0xd5)](_0x1e6f5c,_0x2b6492,_0x557208){const _0x2e979b=a0_0x2d866d;let _0x23dda4=_0x23dda4[_0x2e979b(0xf0)]();return _0x1e6f5c&&_0x2b6492&&_0x557208?_0x23dda4[_0x1e6f5c][_0x2b6492][_0x557208]:_0x1e6f5c&&_0x2b6492?_0x23dda4[_0x1e6f5c][_0x2b6492]:_0x1e6f5c?_0x23dda4[_0x1e6f5c]:_0x23dda4;}static['fireCustomEvent'](_0x951f75,_0x3110ed){const _0x3e7c48=a0_0x2d866d;document[_0x3e7c48(0xae)](new CustomEvent(_0x951f75,{'detail':_0x3110ed}));}static[a0_0x2d866d(0xcf)](_0x1644da,_0x100fa3){const _0x3e58e9=a0_0x2d866d;document[_0x3e58e9(0xae)](new CustomEvent('notify',{'detail':{'type':_0x1644da,'message':_0x100fa3}}));}static async[a0_0x2d866d(0xd9)](_0x3c85cc,_0x3503fc,_0x2eb0e,_0x1a15e7,_0x25cd71){const _0x1821a8=a0_0x2d866d;let _0x209686={'title':TermsUtil['t'](_0x3c85cc)||_0x3c85cc,'text':TermsUtil['t'](_0x3503fc)||_0x3503fc};return _0x2eb0e&&(_0x209686['type']=_0x2eb0e),_0x1a15e7&&(_0x209686['confirmButton']=TermsUtil[_0x1821a8(0xc3)](_0x1a15e7)),_0x25cd71&&(_0x209686['cancelButton']=TermsUtil[_0x1821a8(0xc3)](_0x25cd71)),await CustomAlert(_0x209686);}static[a0_0x2d866d(0xe9)](_0x2ac48c){const _0x3a5a72=a0_0x2d866d;if(ValueUtil[_0x3a5a72(0xe5)](_0x2ac48c)){let _0x257913=_0x2ac48c['filters']();ValueUtil[_0x3a5a72(0xe5)](_0x257913)&&_0x257913['forEach'](_0x4aa28c=>{const _0x299751=_0x3a5a72;ValueUtil['isNotEmpty'](_0x4aa28c[_0x299751(0xf1)])&&(item[_0x4aa28c[_0x299751(0xba)]]=_0x4aa28c[_0x299751(0xf1)]?_0x4aa28c[_0x299751(0xf1)]:null);});}return{};}static[a0_0x2d866d(0xbf)](_0x257720,_0x1c5bd6,_0x5bfd64){const _0x138f84=a0_0x2d866d;if(ValueUtil[_0x138f84(0xe5)](_0x257720)){let _0x2ad16e=_0x257720['renderRoot']?.[_0x138f84(0xb7)](_0x138f84(0xed)+_0x1c5bd6+'\x27]');ValueUtil[_0x138f84(0xe5)](_0x2ad16e)&&(_0x2ad16e[_0x138f84(0xf1)]=_0x5bfd64);}}static[a0_0x2d866d(0xe3)](_0x526c04,_0x2f1d6c,_0x25ccc2,_0xc6ee5b){return getEditor(_0x526c04)('',_0x2f1d6c,_0x25ccc2,_0xc6ee5b,{});}static[a0_0x2d866d(0xe8)](_0x2da099,_0x1dd2d7){const _0x5192e2=a0_0x2d866d;UiUtil[_0x5192e2(0xd1)](_0x2da099)[_0x5192e2(0xf1)]=_0x1dd2d7;}static['getLeafInput'](_0x5a2b51){const _0x2390dc=a0_0x2d866d;let _0x433ec9=_0x5a2b51['getType']();return _0x2390dc(0xc0)==_0x433ec9?_0x5a2b51['renderRoot'][_0x2390dc(0xb7)](_0x2390dc(0xb9)):_0x2390dc(0xb6)==_0x433ec9?_0x5a2b51[_0x2390dc(0xad)]['querySelector']('textarea'):_0x2390dc(0xe0)==_0x433ec9?_0x5a2b51[_0x2390dc(0xad)][_0x2390dc(0xb7)](_0x2390dc(0xb3))['firstElementChild']:_0x2390dc(0xbd)==_0x433ec9?_0x5a2b51[_0x2390dc(0xad)][_0x2390dc(0xb7)](_0x2390dc(0xbb))[_0x2390dc(0xad)]['querySelector'](_0x2390dc(0xee)):_0x5a2b51[_0x2390dc(0xad)][_0x2390dc(0xda)]['editor'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x21e25a=a0_0x436b;(function(_0x28cef8,_0x4e6637){const _0x40579c=a0_0x436b,_0x493d42=_0x28cef8();while(!![]){try{const _0x2ee7d0=-parseInt(_0x40579c(0x10a))/0x1+-parseInt(_0x40579c(0x10c))/0x2+-parseInt(_0x40579c(0x113))/0x3+-parseInt(_0x40579c(0x11e))/0x4*(-parseInt(_0x40579c(0x10f))/0x5)+parseInt(_0x40579c(0x11b))/0x6*(parseInt(_0x40579c(0x116))/0x7)+-parseInt(_0x40579c(0x10e))/0x8*(-parseInt(_0x40579c(0x111))/0x9)+parseInt(_0x40579c(0x112))/0xa;if(_0x2ee7d0===_0x4e6637)break;else _0x493d42['push'](_0x493d42['shift']());}catch(_0x18da68){_0x493d42['push'](_0x493d42['shift']());}}}(a0_0x38e4,0x2bc04));import a0_0x36e941 from'lodash-es/isEqual';function a0_0x436b(_0x5d3dbb,_0x1a9316){const _0x38e41a=a0_0x38e4();return a0_0x436b=function(_0x436b56,_0x413511){_0x436b56=_0x436b56-0x107;let _0x2d379b=_0x38e41a[_0x436b56];return _0x2d379b;},a0_0x436b(_0x5d3dbb,_0x1a9316);}import{TermsUtil}from'./terms-util';export class ValueUtil{static['isEmpty'](_0xd18e40){const _0x1da1f6=a0_0x436b;if(void 0x0===_0xd18e40)return!0x0;if(null===_0xd18e40)return!0x0;if(_0x1da1f6(0x119)==typeof _0xd18e40)return!0x1;if(_0x1da1f6(0x115)==typeof _0xd18e40||'number'==typeof _0xd18e40){if(''==_0xd18e40)return!0x0;}else{if(Array[_0x1da1f6(0x121)](_0xd18e40)){if(0x0==_0xd18e40[_0x1da1f6(0x107)])return!0x0;}else{if('object'==typeof _0xd18e40&&0x0==Object[_0x1da1f6(0x110)](_0xd18e40)['length'])return!0x0;}}return!0x1;}static[a0_0x21e25a(0x120)](_0x516f83){const _0x1bb1a6=a0_0x21e25a;return!ValueUtil[_0x1bb1a6(0x109)](_0x516f83);}static['isEquals'](_0xe2366e,_0x3ec3e7){return a0_0x36e941(_0xe2366e,_0x3ec3e7);}static['toInteger'](_0x3c54bf,_0x1fff02){const _0x16a48c=a0_0x21e25a;return ValueUtil[_0x16a48c(0x109)](_0x3c54bf)?_0x1fff02||0x0:parseInt(_0x3c54bf);}static[a0_0x21e25a(0x11c)](_0x47fa27){const _0x48bf37=a0_0x21e25a;return!ValueUtil[_0x48bf37(0x109)](_0x47fa27)&&(_0x48bf37(0x11d)==_0x47fa27||'t'==_0x47fa27||_0x48bf37(0x118)==_0x47fa27||'T'==_0x47fa27||'on'==_0x47fa27||'ON'==_0x47fa27);}static[a0_0x21e25a(0x11f)](_0x8dc350,_0x85b4f0,_0x47334f){const _0x26eb02=a0_0x21e25a;let _0x55e437=!0x0;return _0x47334f[_0x26eb02(0x114)](_0x120dfa=>{const _0x1178e4=_0x26eb02;let _0x5bf007=_0x8dc350[_0x120dfa];if('*'===_0x5bf007)return;let _0x32991a=_0x85b4f0[_0x120dfa]||'';ValueUtil['isEmpty'](_0x5bf007)?ValueUtil[_0x1178e4(0x120)](_0x32991a)&&(_0x55e437=!0x1):_0x5bf007!=_0x32991a&&(_0x55e437=!0x1);}),_0x55e437;}static[a0_0x21e25a(0x117)](_0x11e8b9,_0xeaebb9,_0x1e68a5,_0x27cd32){const _0x300ad5=a0_0x21e25a;let _0x3d8e62=ValueUtil[_0x300ad5(0x10b)](_0xeaebb9,_0x1e68a5);return ValueUtil['isNotEmpty'](_0x3d8e62)&&(_0x11e8b9[_0x1e68a5]=!0x0===_0x27cd32?TermsUtil['t'](_0x3d8e62):_0x3d8e62),_0x11e8b9;}static[a0_0x21e25a(0x10b)](_0x3b1a0b,..._0x2cddcf){const _0x9c72c5=a0_0x21e25a;if(arguments[_0x9c72c5(0x107)]<=0x1)return;let _0xbda71=_0x2cddcf[0x0];if(ValueUtil[_0x9c72c5(0x109)](_0x3b1a0b[_0xbda71]))return;let _0x49f4ce=_0x3b1a0b[_0xbda71];return _0x2cddcf[_0x9c72c5(0x107)]>0x1?ValueUtil[_0x9c72c5(0x10b)](_0x49f4ce,..._0x2cddcf['slice'](0x1)):_0x49f4ce;}static[a0_0x21e25a(0x11a)](_0x24337e,_0x5c3808,..._0x4352cd){const _0x15e98b=a0_0x21e25a;return _0x5c3808=_0x5c3808||[],_0x4352cd=_0x4352cd||Object[_0x15e98b(0x110)](_0x24337e),ValueUtil['isNotEmpty'](_0x4352cd)&&(_0x5c3808=_0x24337e[_0x15e98b(0x108)]((_0x2c23fe,_0x4807cb)=>{const _0x271c0f=_0x15e98b;let _0x321086=_0x5c3808['length']>_0x4807cb?_0x5c3808[_0x4807cb]:{};return ValueUtil[_0x271c0f(0x10d)](_0x2c23fe,_0x321086,_0x4352cd);})),_0x5c3808;}static[a0_0x21e25a(0x10d)](_0x5797fa,_0x56ed0c,..._0x11e192){const _0x31f43e=a0_0x21e25a;return _0x56ed0c=_0x56ed0c||{},_0x11e192=_0x11e192||Object[_0x31f43e(0x110)](_0x5797fa),ValueUtil[_0x31f43e(0x120)](_0x11e192)&&_0x11e192[_0x31f43e(0x114)](_0x4a6f33=>{_0x56ed0c[_0x4a6f33]=_0x5797fa[_0x4a6f33];}),_0x56ed0c;}}function a0_0x38e4(){const _0x2fa2f1=['isArray','length','map','isEmpty','103124zJItgU','getParams','675706CGIiMQ','populateObject','40kZoeOT','20660wTrlKS','keys','105957vCKELt','3096640PDSZHN','502830omMcKo','forEach','string','427JMhUdc','setParams','TRUE','boolean','populateArray','21324pwkqll','toBoolean','true','196LrawDt','compareObjectValues','isNotEmpty'];a0_0x38e4=function(){return _0x2fa2f1;};return a0_0x38e4();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3aafe0,_0x5c2edf){const _0x4a2e2d=a0_0x2d04,_0x2607d7=_0x3aafe0();while(!![]){try{const _0x33a3b0=-parseInt(_0x4a2e2d(0x98))/0x1*(parseInt(_0x4a2e2d(0x9b))/0x2)+-parseInt(_0x4a2e2d(0x9e))/0x3*(-parseInt(_0x4a2e2d(0x96))/0x4)+parseInt(_0x4a2e2d(0x9c))/0x5+parseInt(_0x4a2e2d(0xa0))/0x6*(-parseInt(_0x4a2e2d(0x97))/0x7)+parseInt(_0x4a2e2d(0x9a))/0x8+parseInt(_0x4a2e2d(0x99))/0x9+-parseInt(_0x4a2e2d(0x9f))/0xa*(parseInt(_0x4a2e2d(0x9d))/0xb);if(_0x33a3b0===_0x5c2edf)break;else _0x2607d7['push'](_0x2607d7['shift']());}catch(_0x47a68b){_0x2607d7['push'](_0x2607d7['shift']());}}}(a0_0x4bf7,0x9ad63));function a0_0x2d04(_0xf4481,_0x3167ac){const _0x4bf715=a0_0x4bf7();return a0_0x2d04=function(_0x2d04af,_0x445a7d){_0x2d04af=_0x2d04af-0x96;let _0x405cd3=_0x4bf715[_0x2d04af];return _0x405cd3;},a0_0x2d04(_0xf4481,_0x3167ac);}import{css}from'lit';function a0_0x4bf7(){const _0x3df9a5=['596112OGBqLF','6ljhtCD','110pXyyCP','3651864NmsjMY','1756068WfPQwH','14gPmwZY','5592XTYnKF','6560028uERSvE','6029104usgrcj','112aZPJEE','2000995KpsQvj'];a0_0x4bf7=function(){return _0x3df9a5;};return a0_0x4bf7();}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_0x5781b5=a0_0x2c01;(function(_0x2136f9,_0x55e561){const _0x5263c7=a0_0x2c01,_0x4f6a83=_0x2136f9();while(!![]){try{const _0x37285e=parseInt(_0x5263c7(0x17c))/0x1+parseInt(_0x5263c7(0x195))/0x2*(-parseInt(_0x5263c7(0x198))/0x3)+parseInt(_0x5263c7(0x19b))/0x4+parseInt(_0x5263c7(0x192))/0x5+-parseInt(_0x5263c7(0x18f))/0x6+parseInt(_0x5263c7(0x187))/0x7+parseInt(_0x5263c7(0x194))/0x8;if(_0x37285e===_0x55e561)break;else _0x4f6a83['push'](_0x4f6a83['shift']());}catch(_0x1dc0b2){_0x4f6a83['push'](_0x4f6a83['shift']());}}}(a0_0x47ce,0x40f6d));import'@material/mwc-icon';import{html,LitElement}from'lit';import{connect}from'pwa-helpers';import{navigate,store}from'@operato/shell';function a0_0x2c01(_0x19333d,_0x51696b){const _0x47ce4d=a0_0x47ce();return a0_0x2c01=function(_0x2c0182,_0x2a1481){_0x2c0182=_0x2c0182-0x175;let _0x53d445=_0x47ce4d[_0x2c0182];return _0x53d445;},a0_0x2c01(_0x19333d,_0x51696b);}import{ScrollbarStyles}from'@operato/styles';import{DynamicMenuLandscapeStyles}from'./dynamic-menu-landscape-styles';export class DynamicMenuLandscape extends connect(store)(LitElement){static get[a0_0x5781b5(0x185)](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get[a0_0x5781b5(0x17e)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}['render'](){const _0x12ec85=a0_0x5781b5,{menus:_0x5daf8a=[],activeTopLevel:_0x2915a7,activeMenu:_0x1544af}=this;return html`
|
|
2
2
|
<div id="wrap">
|
|
3
3
|
<ul>
|
|
4
|
-
${
|
|
5
|
-
<li ?active=${
|
|
6
|
-
<a href=${
|
|
7
|
-
${
|
|
4
|
+
${_0x5daf8a['map'](_0x2b4f1a=>'group'==_0x2b4f1a[_0x12ec85(0x182)]?html``:html`
|
|
5
|
+
<li ?active=${_0x2b4f1a===_0x2915a7}>
|
|
6
|
+
<a href=${_0x2b4f1a[_0x12ec85(0x191)]||'#'}>
|
|
7
|
+
${_0x2b4f1a[_0x12ec85(0x188)]?html`<mwc-icon>${_0x2b4f1a[_0x12ec85(0x188)]}</mwc-icon>`:html``} ${_0x2b4f1a['name']}
|
|
8
8
|
</a>
|
|
9
9
|
|
|
10
10
|
<ul submenus>
|
|
11
|
-
${
|
|
12
|
-
<li ?active=${
|
|
13
|
-
<a href=${
|
|
11
|
+
${_0x2b4f1a[_0x12ec85(0x18c)]?.[_0x12ec85(0x18b)](_0x1dea0c=>html`
|
|
12
|
+
<li ?active=${_0x1dea0c===_0x1544af}>
|
|
13
|
+
<a href=${_0x1dea0c[_0x12ec85(0x191)]||'#'}> ${_0x1dea0c[_0x12ec85(0x196)]} </a>
|
|
14
14
|
</li>
|
|
15
15
|
`)}
|
|
16
16
|
</ul>
|
|
17
17
|
|
|
18
18
|
<div description>
|
|
19
|
-
${
|
|
19
|
+
${_0x2b4f1a[_0x12ec85(0x188)]?html`<mwc-icon>${_0x2b4f1a[_0x12ec85(0x188)]}</mwc-icon>`:html``} ${_0x2b4f1a[_0x12ec85(0x18d)]||''}
|
|
20
20
|
</div>
|
|
21
21
|
</li>
|
|
22
22
|
`)}
|
|
23
23
|
</ul>
|
|
24
24
|
</div>
|
|
25
|
-
`;}[
|
|
25
|
+
`;}['firstUpdated'](){const _0x4159b3=a0_0x5781b5;this['renderRoot'][_0x4159b3(0x179)]('#wrap')[_0x4159b3(0x177)](_0x4159b3(0x197),this[_0x4159b3(0x183)][_0x4159b3(0x180)](this),!0x1),this[_0x4159b3(0x190)][_0x4159b3(0x177)]('click',_0x77a085=>{const _0x27017b=_0x4159b3;if(_0x77a085[_0x27017b(0x186)][_0x27017b(0x17f)]){_0x77a085[_0x27017b(0x193)](),_0x77a085['preventDefault']();let _0x19ba4c=_0x77a085[_0x27017b(0x186)][_0x27017b(0x17f)];return void this[_0x27017b(0x17d)](new CustomEvent(_0x27017b(0x178),{'bubbles':!0x0,'detail':this[_0x27017b(0x18a)]===_0x19ba4c?void 0x0:_0x19ba4c}));}let _0x32f157=_0x77a085['target'][_0x27017b(0x19a)];_0x32f157&&location[_0x27017b(0x19a)]===_0x32f157&&navigate(_0x32f157+_0x27017b(0x181),!0x0);}),this[_0x4159b3(0x190)][_0x4159b3(0x177)]('transitionstart',_0x45809c=>{const _0x2d184d=_0x4159b3;_0x45809c[_0x2d184d(0x186)][_0x2d184d(0x199)](_0x2d184d(0x176));}),this[_0x4159b3(0x190)][_0x4159b3(0x177)]('transitionend',_0x4eb828=>{const _0x67d0d9=_0x4159b3;_0x4eb828[_0x67d0d9(0x186)][_0x67d0d9(0x18e)](_0x67d0d9(0x176),'');});}[a0_0x5781b5(0x183)](_0x48b705){const _0x23c2bc=a0_0x5781b5,_0xd4511e=_0x48b705[_0x23c2bc(0x184)];var _0x22248c=Math['max'](-0x1,Math['min'](0x1,_0x48b705[_0x23c2bc(0x175)]||-_0x48b705[_0x23c2bc(0x189)]));_0xd4511e[_0x23c2bc(0x17a)]-=0xa*_0x22248c,_0x48b705['preventDefault']();}}function a0_0x47ce(){const _0x30e545=['dispatchEvent','properties','submenu','bind','#force','type','onWheelEvent','currentTarget','styles','target','927633WOPkEq','icon','detail','activeTopLevel','map','menus','description','setAttribute','2395440Hfxsmx','renderRoot','path','741415uZSfsL','stopPropagation','493616THZwby','2GDnUJp','name','mousewheel','622410lXiXDN','removeAttribute','href','1310268NMYvfF','wheelDelta','settled','addEventListener','active-toplevel','querySelector','scrollLeft','define','202732AQvtyk'];a0_0x47ce=function(){return _0x30e545;};return a0_0x47ce();}customElements[a0_0x5781b5(0x17b)]('dynamic-menu-landscape',DynamicMenuLandscape);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a0_0x32e8(){var _0x45c779=['stopPropagation','dynamic-menu-part','metaUI','removeAttribute','resourceId','_activeMenu','active-toplevel','firstUpdated','call','preventDefault','landscape','orientation','2HDqNIo','has','active','slotTemplate','494406dIVWtP','addEventListener','menus','renderRoot','stateChanged','45yGaUaG','split','30794330NsiJdL','2238312vhAnud','path','2086152kwBnfQ','_findActivePage','find','1216805QiVBYR','2294875zgmPfk','_path','page','replaceChild','_activeTopLevel','21zLZbQV','1054432dvTqWg','define','route'];a0_0x32e8=function(){return _0x45c779;};return a0_0x32e8();}var a0_0xdeb5e7=a0_0x1464;(function(_0xd93ac,_0x648cf9){var _0x42a6ae=a0_0x1464,_0x4c4a55=_0xd93ac();while(!![]){try{var _0x413c71=parseInt(_0x42a6ae(0x9d))/0x1*(parseInt(_0x42a6ae(0x8c))/0x2)+parseInt(_0x42a6ae(0x9a))/0x3+parseInt(_0x42a6ae(0xa4))/0x4+parseInt(_0x42a6ae(0x9e))/0x5+-parseInt(_0x42a6ae(0x90))/0x6*(parseInt(_0x42a6ae(0xa3))/0x7)+-parseInt(_0x42a6ae(0x98))/0x8*(-parseInt(_0x42a6ae(0x95))/0x9)+-parseInt(_0x42a6ae(0x97))/0xa;if(_0x413c71===_0x648cf9)break;else _0x4c4a55['push'](_0x4c4a55['shift']());}catch(_0x3ca05e){_0x4c4a55['push'](_0x4c4a55['shift']());}}}(a0_0x32e8,0xaca09));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_0x1464(_0x4e8c49,_0x7a1190){var _0x32e808=a0_0x32e8();return a0_0x1464=function(_0x1464e6,_0x6d9e5c){_0x1464e6=_0x1464e6-0x84;var _0x32a6c0=_0x32e808[_0x1464e6];return _0x32a6c0;},a0_0x1464(_0x4e8c49,_0x7a1190);}function isActiveMenu(_0x22099c,_0x11fb31){var _0xf42b01=a0_0x1464;return _0x22099c[_0xf42b01(0x99)]?.[_0xf42b01(0x96)]('?')[0x0]===_0x11fb31||_0x22099c[_0xf42b01(0x8e)]&&'function'==typeof _0x22099c[_0xf42b01(0x8e)]&&_0x22099c['active'][_0xf42b01(0x88)](_0x22099c,{'path':_0x11fb31});}export class DynamicMenuPart extends connect(store)(LitElement){static get['properties'](){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 @@ var a0_0x23ac95=a0_0x18f3;(function(_0x56d780,_0xa77f30){var _0x30891f=a0_0x18f3
|
|
|
27
27
|
dynamic-menu-landscape {
|
|
28
28
|
flex: 1;
|
|
29
29
|
}
|
|
30
|
-
`];}[
|
|
30
|
+
`];}['render'](){var _0x9aaa98=a0_0x1464;return html`
|
|
31
31
|
<slot name="head"></slot>
|
|
32
|
-
${'landscape'!==this[
|
|
33
|
-
.menus=${this[
|
|
34
|
-
.activeTopLevel=${this[
|
|
35
|
-
.activeMenu=${this[
|
|
36
|
-
.path=${this[
|
|
32
|
+
${'landscape'!==this[_0x9aaa98(0x8b)]?html`<dynamic-menu-portrait
|
|
33
|
+
.menus=${this[_0x9aaa98(0x92)]}
|
|
34
|
+
.activeTopLevel=${this[_0x9aaa98(0xa2)]}
|
|
35
|
+
.activeMenu=${this[_0x9aaa98(0x85)]}
|
|
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[_0x9aaa98(0x92)]}
|
|
39
|
+
.activeTopLevel=${this[_0x9aaa98(0xa2)]}
|
|
40
|
+
.activeMenu=${this[_0x9aaa98(0x85)]}
|
|
41
|
+
.path=${this[_0x9aaa98(0x9f)]}
|
|
42
42
|
></dynamic-menu-landscape>`}
|
|
43
43
|
<slot name="tail"></slot>
|
|
44
|
-
`;}[
|
|
44
|
+
`;}[a0_0xdeb5e7(0x87)](){var _0x1ddc9e=a0_0xdeb5e7;this[_0x1ddc9e(0x93)][_0x1ddc9e(0x91)](_0x1ddc9e(0x86),_0x28280b=>{var _0x5216ab=_0x1ddc9e;_0x28280b[_0x5216ab(0xa7)](),_0x28280b[_0x5216ab(0x89)](),this[_0x5216ab(0xa2)]=_0x28280b['detail'];});}['updated'](_0x59f30f){var _0x1eaf98=a0_0xdeb5e7;(_0x59f30f[_0x1eaf98(0x8d)](_0x1eaf98(0x92))||_0x59f30f[_0x1eaf98(0x8d)](_0x1eaf98(0xa0))||_0x59f30f[_0x1eaf98(0x8d)](_0x1eaf98(0x84)))&&this[_0x1eaf98(0x9b)](),_0x59f30f[_0x1eaf98(0x8d)]('orientation')&&('portrait'==this[_0x1eaf98(0x8b)]?this[_0x1eaf98(0xaa)](_0x1eaf98(0x8a)):this['setAttribute'](_0x1eaf98(0x8a),!0x0)),_0x59f30f[_0x1eaf98(0x8d)]('slotTemplate')&&this[_0x1eaf98(0xa1)](this['slotTemplate']);}[a0_0xdeb5e7(0x94)](_0x367724){var _0x43af67=a0_0xdeb5e7;this[_0x43af67(0xa0)]=_0x367724[_0x43af67(0xa6)]['page'],this[_0x43af67(0x84)]=_0x367724[_0x43af67(0xa6)]['resourceId'],this['menus']=_0x367724[_0x43af67(0xa9)][_0x43af67(0x92)]||[],this[_0x43af67(0x8f)]=_0x367724[_0x43af67(0xa9)]['slotTemplate'];}['_findActivePage'](){var _0x18bea1=a0_0xdeb5e7,_0xd1a6c2,_0x1a29d6=this[_0x18bea1(0x84)]?this[_0x18bea1(0xa0)]+'/'+this[_0x18bea1(0x84)]:this[_0x18bea1(0xa0)],_0x281953=this[_0x18bea1(0x92)]||[];this[_0x18bea1(0xa2)]=_0x281953[_0x18bea1(0x9c)](_0x439b87=>isActiveMenu(_0x439b87,_0x1a29d6)?(_0xd1a6c2=_0x439b87,!0x0):_0x439b87[_0x18bea1(0x92)]?!!(_0xd1a6c2=_0x439b87[_0x18bea1(0x92)][_0x18bea1(0x9c)](_0xc6e64b=>isActiveMenu(_0xc6e64b,_0x1a29d6))):void 0x0),this[_0x18bea1(0x9f)]=_0x1a29d6,this[_0x18bea1(0x85)]=_0xd1a6c2||this['_activeTopLevel'];}}customElements[a0_0xdeb5e7(0xa5)](a0_0xdeb5e7(0xa8),DynamicMenuPart);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x15a0(_0x1c7145,_0x19f80a){const _0x58ebb5=a0_0x58eb();return a0_0x15a0=function(_0x15a0ae,_0x24e19){_0x15a0ae=_0x15a0ae-0x8f;let _0x184897=_0x58ebb5[_0x15a0ae];return _0x184897;},a0_0x15a0(_0x1c7145,_0x19f80a);}(function(_0x25d634,_0x28f0a4){const _0x411a4f=a0_0x15a0,_0x1bd989=_0x25d634();while(!![]){try{const _0x158311=parseInt(_0x411a4f(0x95))/0x1+-parseInt(_0x411a4f(0x98))/0x2+parseInt(_0x411a4f(0x96))/0x3*(parseInt(_0x411a4f(0x97))/0x4)+parseInt(_0x411a4f(0x94))/0x5+-parseInt(_0x411a4f(0x90))/0x6*(-parseInt(_0x411a4f(0x93))/0x7)+-parseInt(_0x411a4f(0x91))/0x8+parseInt(_0x411a4f(0x92))/0x9*(-parseInt(_0x411a4f(0x8f))/0xa);if(_0x158311===_0x28f0a4)break;else _0x1bd989['push'](_0x1bd989['shift']());}catch(_0x2975db){_0x1bd989['push'](_0x1bd989['shift']());}}}(a0_0x58eb,0x776f1));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_0x171e(_0x18fa92,_0x23c4f4){const _0x589ed6=a0_0x589e();return a0_0x
|
|
|
125
125
|
font: bold 14px var(--theme-font);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
`;
|
|
128
|
+
`;function a0_0x58eb(){const _0x451d61=['1446480EFGfwn','4041MQVKqD','10983UcduRo','4226300guoBhH','886377dNXgLm','2460cfQOzR','2264gjEQTD','1507076cfCrYI','19330DGzxis','366xAibYh'];a0_0x58eb=function(){return _0x451d61;};return a0_0x58eb();}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x3b77(){const _0x331180=['function','styles','closest','6FtjIFR','1399676MvvSQd','properties','group','862075YNTpXZ','length','2340mKqXtz','1693220XyVMvU','settled','22AkELBk','renderRoot','click','path','63999soFokF','stopPropagation','active-toplevel','[menu]','renderMenus','3pczDGf','preventDefault','1953EFtdqu','transitionend','setAttribute','dispatchEvent','menu','13096EkyzYa','70qiLekQ','target','firstUpdated','define','activeTopLevel','render','10204NPruYm','1598149ljWNcY','call','addEventListener','href','#force'];a0_0x3b77=function(){return _0x331180;};return a0_0x3b77();}function a0_0x1168(_0x330bf1,_0x235b46){const _0x3b77e1=a0_0x3b77();return a0_0x1168=function(_0x11682e,_0x215ad2){_0x11682e=_0x11682e-0x1e9;let _0x3b20e8=_0x3b77e1[_0x11682e];return _0x3b20e8;},a0_0x1168(_0x330bf1,_0x235b46);}const a0_0x18a0ad=a0_0x1168;(function(_0x57c3bb,_0x5bc7ff){const _0x23af53=a0_0x1168,_0x4196d0=_0x57c3bb();while(!![]){try{const _0x555a0a=-parseInt(_0x23af53(0x1ff))/0x1*(parseInt(_0x23af53(0x1f9))/0x2)+parseInt(_0x23af53(0x1f1))/0x3*(parseInt(_0x23af53(0x209))/0x4)+parseInt(_0x23af53(0x20c))/0x5+parseInt(_0x23af53(0x208))/0x6*(-parseInt(_0x23af53(0x200))/0x7)+parseInt(_0x23af53(0x1f8))/0x8*(-parseInt(_0x23af53(0x1f3))/0x9)+-parseInt(_0x23af53(0x20f))/0xa*(parseInt(_0x23af53(0x211))/0xb)+parseInt(_0x23af53(0x20e))/0xc*(parseInt(_0x23af53(0x1ec))/0xd);if(_0x555a0a===_0x5bc7ff)break;else _0x4196d0['push'](_0x4196d0['shift']());}catch(_0x409bfe){_0x4196d0['push'](_0x4196d0['shift']());}}}(a0_0x3b77,0x318f7));import'@material/mwc-icon';import{html,LitElement}from'lit';import{navigate}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';import{DynamicMenuPortraitStyles}from'./dynamic-menu-portrait-styles';export class DynamicMenuPortrait extends LitElement{static get[a0_0x18a0ad(0x206)](){return[ScrollbarStyles,DynamicMenuPortraitStyles];}static get[a0_0x18a0ad(0x20a)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x18a0ad(0x1f0)](_0x565cdb,_0x3c98ea,_0x23356c){return html`
|
|
2
2
|
<ul>
|
|
3
|
-
${
|
|
4
|
-
<li ?active=${
|
|
5
|
-
<a href=${
|
|
6
|
-
${
|
|
7
|
-
<mwc-icon>${
|
|
8
|
-
${
|
|
3
|
+
${_0x565cdb['map'](_0x24b9d3=>{const _0x3642ff=a0_0x1168;var {type:_0x4163c5,active:_0x1da105,path:_0x21813c,name:_0x2d2c9e,badge:_0x3e8b8e,icon:_0x382964,menus:_0x357a5a}=_0x24b9d3;return _0x1da105=!(!_0x1da105||_0x3642ff(0x205)!=typeof _0x1da105)&&_0x1da105[_0x3642ff(0x201)](_0x24b9d3,{'path':this[_0x3642ff(0x1eb)]}),_0x3e8b8e=_0x3642ff(0x205)==typeof _0x3e8b8e?_0x3e8b8e[_0x3642ff(0x201)](_0x24b9d3):_0x3e8b8e??!0x1,_0x3642ff(0x20b)==_0x4163c5?html`<li group-label>${_0x2d2c9e}</li>`:html`
|
|
4
|
+
<li ?active=${_0x3c98ea?_0x24b9d3===_0x3c98ea:_0x1da105} .menu=${_0x24b9d3} menu>
|
|
5
|
+
<a href=${_0x21813c||'#'}>
|
|
6
|
+
${_0x357a5a?.[_0x3642ff(0x20d)]>0x0?html` <mwc-icon submenu-button></mwc-icon> `:html``}
|
|
7
|
+
<mwc-icon>${_0x382964}</mwc-icon>
|
|
8
|
+
${_0x2d2c9e} ${!0x1!==_0x3e8b8e?html`<div badge>${_0x3e8b8e}</div>`:html``}
|
|
9
9
|
</a>
|
|
10
|
-
${
|
|
10
|
+
${_0x357a5a&&this[_0x3642ff(0x1f0)](_0x357a5a,_0x23356c)}
|
|
11
11
|
</li>
|
|
12
12
|
`;})}
|
|
13
13
|
</ul>
|
|
14
|
-
`;}[
|
|
14
|
+
`;}[a0_0x18a0ad(0x1fe)](){const _0x1cd0c0=a0_0x18a0ad,{menus:_0x2b9822,activeTopLevel:_0x8fd2e7,activeMenu:_0x271b7b}=this;return this[_0x1cd0c0(0x1f0)](_0x2b9822,_0x8fd2e7,_0x271b7b);}[a0_0x18a0ad(0x1fb)](){const _0x18be3b=a0_0x18a0ad;this[_0x18be3b(0x1e9)][_0x18be3b(0x202)](_0x18be3b(0x1ea),_0xc27ad7=>{const _0x4e272b=_0x18be3b,_0x287e97=_0xc27ad7['target'][_0x4e272b(0x207)](_0x4e272b(0x1ef));if(_0x287e97?.[_0x4e272b(0x1f7)]){let _0x251e2d=_0x287e97[_0x4e272b(0x1f7)];_0x251e2d['path']||(_0xc27ad7[_0x4e272b(0x1ed)](),_0xc27ad7[_0x4e272b(0x1f2)]()),this[_0x4e272b(0x1f6)](new CustomEvent(_0x4e272b(0x1ee),{'bubbles':!0x0,'detail':this[_0x4e272b(0x1fd)]===_0x251e2d?void 0x0:_0x251e2d}));}let _0xf483a7=_0xc27ad7[_0x4e272b(0x1fa)][_0x4e272b(0x203)];_0xf483a7&&location[_0x4e272b(0x203)]===_0xf483a7&&navigate(_0xf483a7+_0x4e272b(0x204),!0x0);}),this[_0x18be3b(0x1e9)][_0x18be3b(0x202)]('transitionstart',_0x4a3a6f=>{const _0x8b514b=_0x18be3b;_0x4a3a6f['target']['removeAttribute'](_0x8b514b(0x210));}),this[_0x18be3b(0x1e9)][_0x18be3b(0x202)](_0x18be3b(0x1f4),_0x470053=>{const _0x14070b=_0x18be3b;_0x470053[_0x14070b(0x1fa)][_0x14070b(0x1f5)](_0x14070b(0x210),'');});}}customElements[a0_0x18a0ad(0x1fc)]('dynamic-menu-portrait',DynamicMenuPortrait);
|