@things-factory/meta-ui 6.0.134 → 6.0.140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/actions/main.js +4 -4
- package/client/bootstrap.js +31 -11
- package/client/component/filter/filter-form-meta-code-select.js +16 -0
- package/client/component/filter/filter-form-meta-object-select.js +16 -0
- package/client/component/filter/filter-grist-meta-code-select.js +16 -0
- package/client/component/filter/filter-grist-meta-object-select.js +16 -0
- package/client/component/grist/editor/grist-editor-meta-code-selector.js +9 -0
- package/client/component/grist/editor/grist-editor-meta-object-selector.js +9 -0
- package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -0
- package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -0
- package/client/component/selector/meta-object-selector-popup.js +40 -0
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +1 -1
- package/client/mixin/meta-main-tab-mixin.js +1 -1
- package/client/mixin/meta-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-detail-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/activity/meta-activity-list-page.js +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +3 -3
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/entity/config-entity.js +29 -29
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +4 -4
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-main-tab-element.js +1 -1
- package/client/pages/meta-main-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-detail-element.js +1 -1
- package/client/pages/meta-tab-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +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 +2 -2
- 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/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-activity/meta-activity-mutation.js +1 -1
- package/server/service/meta-activity/meta-activity-query.js +1 -1
- package/server/service/meta-activity/meta-activity-type.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
- package/server/service/work-code/work-code-mutation.js +1 -1
- package/server/service/work-code/work-code-query.js +1 -1
- package/server/service/work-code/work-code-type.js +1 -1
- package/server/service/work-code/work-code.js +1 -1
- package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
- package/server/service/work-code-detail/work-code-detail-query.js +1 -1
- package/server/service/work-code-detail/work-code-detail-type.js +1 -1
- package/server/service/work-code-detail/work-code-detail.js +1 -1
- package/client/component/filter/filter-form-resource-code-select.js +0 -16
- package/client/component/filter/filter-grist-resource-code-select.js +0 -16
- package/client/component/grist/editor/ox-grist-editor-resource-code-selector.js +0 -11
- package/client/component/grist/renderer/ox-grist-renderer-resource-code-selector.js +0 -1
- package/client/component/selector/ox-resource-code-selector-popup.js +0 -40
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x31b928=a0_0x3c01;(function(_0x5bcda6,_0x2753bb){const _0x1cab46=a0_0x3c01,_0x24498b=_0x5bcda6();while(!![]){try{const _0x213122=-parseInt(_0x1cab46(0x1e5))/0x1*(parseInt(_0x1cab46(0x187))/0x2)+-parseInt(_0x1cab46(0x19a))/0x3*(parseInt(_0x1cab46(0x1be))/0x4)+parseInt(_0x1cab46(0x1d0))/0x5*(parseInt(_0x1cab46(0x18b))/0x6)+-parseInt(_0x1cab46(0x1b4))/0x7+parseInt(_0x1cab46(0x17e))/0x8*(parseInt(_0x1cab46(0x19b))/0x9)+-parseInt(_0x1cab46(0x1d7))/0xa*(-parseInt(_0x1cab46(0x17d))/0xb)+parseInt(_0x1cab46(0x19d))/0xc;if(_0x213122===_0x2753bb)break;else _0x24498b['push'](_0x24498b['shift']());}catch(_0x3e9cac){_0x24498b['push'](_0x24498b['shift']());}}}(a0_0x388e,0xe78f0));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';import{UiUtil}from'./ui-util';function a0_0x3c01(_0x17cde0,_0x2be74d){const _0x388ee5=a0_0x388e();return a0_0x3c01=function(_0x3c01af,_0x21a1cf){_0x3c01af=_0x3c01af-0x15e;let _0x135407=_0x388ee5[_0x3c01af];return _0x135407;},a0_0x3c01(_0x17cde0,_0x2be74d);}import a0_0x118862 from'graphql-tag';import{ValueUtil}from'./value-util';import{asyncReplace}from'lit/directives/async-replace.js';import a0_0x49793e from'i18next';import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';function a0_0x388e(){const _0x27330f=['\x0a\x20\x20\x20\x20','3623060kHWaAF','selected','updatedAt','confirm','forEach','__origin__','_config','HIDDEN-PAGE','text.nothing_changed','info','784MBtPgF','getWorkCodeByName','text.are_you_sure','xlsx','buildArgs','numberOfDrafts','items','menus','showToast','MENU','HOME','children','object','filter','deleteListByIds','getCodeByEntity','callScenario','routing','40735PpjstJ','showAlertPopup','updater','createdAt','checkClientError','__dirtyfields__','tMenu','6276190iqGmaz','imex','getSelectedIdList','data','arrangeMenuRoutes','key','description','length','split','error','code','success\x20to\x20save','isEmpty','cuFlag','1IyGlfa','hidden','total','display','errors','button.delete','todo-list','noteq','__dirty__','text.there_is_nothing_to_delete','getCodeSelectorData','draft-list','iconPath','badge','menuType','includes','myDynamicMenus','sort','networkError','numberOfToDos','extensions','active','result','getCodeByScenario','GROUP','updateMultipleData','SCREEN','tText','push','gutter','value','searchByPagination','title','dirtyRecords','11RpJRkc','72IBFfGV','routingType','records','hiddenFlag','reduce','menu.id','type','columns','parent','1520270ZVqGZS','__selected__','query','rank','1062XaZQgT','gridPersonalizeTemplates','name','message','map','showGraphqlErrorResponse','numberOfApprovalPendings','dispatch','success\x20to\x20process','path','template','cancel','category','showGraphqlException','splice','19077ZIjIVi','291663VQGeiz','findIndex','13334904XPjvAJ','test','unshift','\x0a\x20\x20\x20\x20\x20\x20','__seq__','runScenario','details','question','updateMultiple','success\x20to\x20delete','workCodeByName','isNotEmpty','record','button.','patchesForUpdateMultiple','resourceUrl','text.NOTHING_CHANGED','fetch','searchMyDynamicMenus','searchMenuGridPersnalTemplate','codeItems','exportableData'];a0_0x388e=function(){return _0x27330f;};return a0_0x388e();}export class ServiceUtil{static async[a0_0x31b928(0x1b1)](_0x59e6f6){const _0x2fb6a3=a0_0x31b928;if(Array['isArray'](_0x59e6f6))return _0x59e6f6[_0x2fb6a3(0x18f)](_0x38804e=>_0x2fb6a3(0x1ca)==typeof _0x38804e?{'name':_0x38804e[_0x2fb6a3(0x179)],'description':_0x38804e[_0x2fb6a3(0x15e)]}:{'name':_0x38804e,'description':_0x38804e});let _0x4d6d4a=await ServiceUtil['getWorkCodeByName'](_0x59e6f6);return _0x4d6d4a&&_0x4d6d4a[_0x2fb6a3(0x1de)]>0x0?_0x4d6d4a:await getCodeByName(_0x59e6f6);}static async[a0_0x31b928(0x1bf)](_0x28b147){const _0xcaffba=a0_0x31b928,_0x6bf02b=await client[_0xcaffba(0x189)]({'query':a0_0x118862`
|
|
2
2
|
query workCodeByName($name: String!) {
|
|
3
3
|
workCodeByName(name: $name) {
|
|
4
4
|
details {
|
|
@@ -8,32 +8,32 @@ const a0_0x69a960=a0_0x115c;(function(_0x66d86d,_0x15510b){const _0x357346=a0_0x
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
`,'variables':{'name':
|
|
11
|
+
`,'variables':{'name':_0x28b147},'context':gqlContext()});return!_0x6bf02b[_0xcaffba(0x15f)]&&_0x6bf02b[_0xcaffba(0x1da)][_0xcaffba(0x1a7)]&&_0x6bf02b[_0xcaffba(0x1da)][_0xcaffba(0x1a7)][_0xcaffba(0x1a3)]?_0x6bf02b[_0xcaffba(0x1da)][_0xcaffba(0x1a7)][_0xcaffba(0x1a3)][_0xcaffba(0x16c)]((_0x5174bf,_0x58b869)=>_0x5174bf[_0xcaffba(0x18a)]-_0x58b869['rank']):[];}static async[a0_0x31b928(0x165)](_0x2bcb52){const _0x4e053a=a0_0x31b928;let _0x49ad8e=(await ServiceUtil[_0x4e053a(0x1b1)](_0x2bcb52))[_0x4e053a(0x18f)](_0xc40884=>({'value':_0xc40884[_0x4e053a(0x18d)],'display':_0xc40884['description']}));return _0x49ad8e[_0x4e053a(0x19f)]({'value':'','display':''}),_0x49ad8e;}static async[a0_0x31b928(0x172)](_0x5e1f27,_0x52cb8d){const _0x47b874=a0_0x31b928;let _0x4944d9=await ServiceUtil[_0x47b874(0x1ce)](null,_0x5e1f27,_0x52cb8d);return _0x4944d9[_0x47b874(0x19f)]({'value':'','display':''}),_0x4944d9['map'](_0x1256b8=>({'value':_0x1256b8[_0x47b874(0x18d)],'display':_0x1256b8['description']}));}static async[a0_0x31b928(0x1cd)]({queryName:_0x41a62d,codeField:_0x2742e9=a0_0x31b928(0x18d),dispField:_0xb739=a0_0x31b928(0x1dd),filters:_0x3d69ba=[],sorters:_0x2f07c0=[]}){const _0x5e0f24=a0_0x31b928;let _0x1ca7bf=_0x5e0f24(0x1a0)+_0x2742e9+_0x5e0f24(0x1a0)+_0xb739+_0x5e0f24(0x1b3),_0x55ed51=await ServiceUtil[_0x5e0f24(0x17a)](_0x41a62d,_0x3d69ba,_0x2f07c0,0x0,0x0,_0x1ca7bf),_0x28ac46=[{'value':'','display':''}];return _0x55ed51[_0x5e0f24(0x180)]['forEach'](_0x3d045f=>{const _0x2cc931=_0x5e0f24;_0x28ac46[_0x2cc931(0x177)]({'value':_0x3d045f[_0x2742e9],'display':_0x3d045f[_0xb739]});}),_0x28ac46;}static async[a0_0x31b928(0x16b)](){const _0x547fe1=a0_0x31b928;let _0x433c92=await ServiceUtil[_0x547fe1(0x1af)]();return null!=_0x433c92?ServiceUtil[_0x547fe1(0x1db)](_0x433c92):null;}static async[a0_0x31b928(0x1b0)](_0x17611c){const _0x236ca5=a0_0x31b928;let _0x195d52=[{'name':_0x236ca5(0x183),'operator':'eq','value':_0x17611c}],_0x4092b1=await ServiceUtil[_0x236ca5(0x17a)](_0x236ca5(0x18c),_0x195d52,[],0x0,0x0,'id,template');return 0x0==_0x4092b1['total']?{}:{'id':_0x4092b1['records'][0x0]['id'],'template':JSON['parse'](_0x4092b1[_0x236ca5(0x180)][0x0][_0x236ca5(0x195)])};}static[a0_0x31b928(0x1db)](_0x17db47){const _0x225fcf=a0_0x31b928;let _0x5b46f4=[];_0x17db47[_0x225fcf(0x1b8)](_0x3d0b5b=>{const _0x1e2d5a=_0x225fcf;_0x5b46f4[_0x1e2d5a(0x177)](_0x3d0b5b),_0x3d0b5b[_0x1e2d5a(0x1c9)]&&(_0x3d0b5b['children']['sort'](function(_0xe54a8b,_0x2d7cf8){const _0x2815af=_0x1e2d5a;return _0xe54a8b[_0x2815af(0x18a)]-_0x2d7cf8[_0x2815af(0x18a)];}),_0x3d0b5b[_0x1e2d5a(0x1c9)][_0x1e2d5a(0x1b8)](_0xce37fe=>{const _0x324719=_0x1e2d5a;0x1!=_0xce37fe[_0x324719(0x181)]&&(_0xce37fe[_0x324719(0x186)]=_0x3d0b5b,_0x5b46f4[_0x324719(0x177)](_0xce37fe));}));});let _0x341ace=_0x5b46f4[_0x225fcf(0x18f)](_0x4574d2=>{const _0x569640=_0x225fcf;if(_0x569640(0x173)==_0x4574d2[_0x569640(0x169)]||_0x569640(0x1c7)==_0x4574d2[_0x569640(0x169)]){let _0x1ce58d={'id':_0x4574d2['id'],'parent':!0x0,'name':TermsUtil[_0x569640(0x1d6)](_0x4574d2[_0x569640(0x18d)]),'icon':_0x4574d2[_0x569640(0x167)],'type':_0x569640(0x173)==_0x4574d2[_0x569640(0x169)]?'group':'','menus':[]};return _0x4574d2[_0x569640(0x1cf)]&&(_0x1ce58d['path']=_0x4574d2[_0x569640(0x1cf)]),_0x1ce58d;}return{'id':'0'};})[_0x225fcf(0x1cb)](_0x1101b9=>'0'!=_0x1101b9['id']),_0x1c6fb2=_0x5b46f4[_0x225fcf(0x18f)](_0x2a758a=>{const _0x2e7134=_0x225fcf;if(_0x2e7134(0x175)==_0x2a758a[_0x2e7134(0x169)]||_0x2e7134(0x1bb)==_0x2a758a[_0x2e7134(0x169)]){let _0x49877d=_0x341ace['find'](_0x20e97c=>_0x20e97c['id']==_0x2a758a[_0x2e7134(0x186)]['id']);if(_0x49877d){let _0x21e056=TermsUtil['tMenu'](_0x2a758a[_0x2e7134(0x18d)]);return _0x2e7134(0x175)==_0x2a758a['menuType']&&_0x49877d[_0x2e7134(0x1c5)]['push']({'id':_0x2a758a['id'],'name':_0x21e056,'path':_0x2a758a[_0x2e7134(0x1cf)],'icon':_0x2a758a[_0x2e7134(0x167)]}),{'id':_0x2a758a['id'],'parent':!0x1,'parent_id':_0x49877d['id'],'title':_0x21e056,'tagname':_0x2a758a[_0x2e7134(0x197)],'page':_0x2a758a[_0x2e7134(0x1cf)],'template':_0x2a758a[_0x2e7134(0x1ac)],'routing_type':_0x2a758a[_0x2e7134(0x17f)]};}return{'id':'0'};}return _0x2e7134(0x1c8)==_0x2a758a[_0x2e7134(0x169)]?{'id':_0x2a758a['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil['tMenu'](_0x2a758a[_0x2e7134(0x18d)]),'tagname':_0x2a758a[_0x2e7134(0x197)],'page':_0x2a758a[_0x2e7134(0x1cf)],'template':_0x2a758a[_0x2e7134(0x1ac)],'routing_type':_0x2a758a[_0x2e7134(0x17f)]}:{'id':'0'};})[_0x225fcf(0x1cb)](_0x2ee14c=>null!=_0x2ee14c&&'0'!=_0x2ee14c['id']);_0x341ace[_0x225fcf(0x1cb)](_0x585e65=>'group'==_0x585e65[_0x225fcf(0x184)]&&_0x585e65['menus']&&_0x585e65[_0x225fcf(0x1c5)][_0x225fcf(0x1de)]>0x0)['forEach'](_0x29bda=>{const _0x49458f=_0x225fcf;let _0x52536f=_0x341ace[_0x49458f(0x19c)](_0x29fbaa=>_0x29fbaa['id']==_0x29bda['id'])+0x1;_0x341ace[_0x49458f(0x199)](_0x52536f,0x0,..._0x29bda[_0x49458f(0x1c5)]);});let _0x23a431=0x0;return _0x341ace['forEach'](_0x4125b6=>{const _0x36346f=_0x225fcf;_0x36346f(0x161)==_0x4125b6[_0x36346f(0x194)]?(_0x23a431++,_0x4125b6[_0x36346f(0x168)]=()=>asyncReplace(generateActivitySummary(_0x36346f(0x16e))),_0x4125b6[_0x36346f(0x170)]=({path:_0x272153})=>/^activity\//[_0x36346f(0x19e)](_0x272153)):'approval-pending-list'==_0x4125b6[_0x36346f(0x194)]?(_0x23a431++,_0x4125b6[_0x36346f(0x168)]=()=>asyncReplace(generateActivitySummary(_0x36346f(0x191))),_0x4125b6[_0x36346f(0x170)]=({path:_0x2635a9})=>/^activity\//[_0x36346f(0x19e)](_0x2635a9)):_0x36346f(0x166)==_0x4125b6[_0x36346f(0x194)]&&(_0x23a431++,_0x4125b6[_0x36346f(0x168)]=()=>asyncReplace(generateActivitySummary(_0x36346f(0x1c3))));}),_0x23a431>0x0&&startSubscribeActivitySummary(),{'menus':_0x341ace,'routes':_0x1c6fb2};}static async[a0_0x31b928(0x1af)](){const _0x149cbc=a0_0x31b928;let _0x5430fd=await ServiceUtil[_0x149cbc(0x17a)](_0x149cbc(0x1c5),[{'name':_0x149cbc(0x181),'operator':_0x149cbc(0x162),'value':!0x0},{'name':_0x149cbc(0x169),'operator':'in','value':['HOME',_0x149cbc(0x1c7),_0x149cbc(0x173)]}],[{'name':_0x149cbc(0x18a)}],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 _0x5430fd?_0x5430fd[_0x149cbc(0x180)]:[];}static async[a0_0x31b928(0x190)](_0x19d6a8){const _0x1dfeea=a0_0x31b928;if(_0x19d6a8[_0x1dfeea(0x15f)]&&_0x19d6a8[_0x1dfeea(0x15f)]['length']>0x0){let _0x548b14=_0x19d6a8[_0x1dfeea(0x15f)][0x0],_0x360c72=_0x548b14[_0x1dfeea(0x18e)],_0x134b58=_0x548b14[_0x1dfeea(0x18e)];_0x548b14['extensions']&&(_0x134b58=_0x548b14[_0x1dfeea(0x16f)][_0x1dfeea(0x1e1)]),await UiUtil[_0x1dfeea(0x1d1)](_0x134b58,_0x360c72,_0x1dfeea(0x1e0),'confirm');}}static async[a0_0x31b928(0x198)](_0x3aaf69){const _0x413a85=a0_0x31b928;_0x3aaf69&&(_0x3aaf69[_0x413a85(0x16d)]&&_0x3aaf69[_0x413a85(0x16d)]['result']?await ServiceUtil[_0x413a85(0x190)](_0x3aaf69[_0x413a85(0x16d)][_0x413a85(0x171)]):await UiUtil[_0x413a85(0x1d1)]('Graphql\x20Error',_0x3aaf69[_0x413a85(0x18e)],_0x413a85(0x1e0),_0x413a85(0x1b7)));}static async[a0_0x31b928(0x1b2)](_0x55701c,_0x4a7eed,_0x2d5a90){const _0x5a2e54=a0_0x31b928;var _0x3873d2=_0x2d5a90[_0x5a2e54(0x1ba)][_0x5a2e54(0x185)]['filter'](_0x17d413=>_0x5a2e54(0x178)!==_0x17d413['type']&&void 0x0!==_0x17d413['record']&&void 0x0!==_0x17d413[_0x5a2e54(0x1d8)]&&!0x0!==_0x17d413['hidden'])['map'](_0x4d40df=>_0x4d40df['imex']),_0x2eaea4=_0x2d5a90[_0x5a2e54(0x1da)][_0x5a2e54(0x180)][_0x5a2e54(0x18f)](_0x2116e6=>({..._0x2d5a90['_config'][_0x5a2e54(0x185)][_0x5a2e54(0x1cb)](_0x525f06=>_0x5a2e54(0x178)!==_0x525f06[_0x5a2e54(0x184)]&&void 0x0!==_0x525f06[_0x5a2e54(0x1a9)]&&void 0x0!==_0x525f06[_0x5a2e54(0x1d8)]&&!0x0!==_0x525f06[_0x5a2e54(0x1e6)])['reduce']((_0x587cb5,_0xebe189)=>(_0x587cb5[_0xebe189[_0x5a2e54(0x1d8)][_0x5a2e54(0x1dc)]]=_0xebe189[_0x5a2e54(0x1d8)]['key'][_0x5a2e54(0x1df)]('.')[_0x5a2e54(0x182)]((_0x5ee05b,_0x5bbb00)=>_0x5ee05b&&'undefined'!==_0x5ee05b[_0x5bbb00]?_0x5ee05b[_0x5bbb00]:void 0x0,_0x2116e6),_0x587cb5),{})}));if(!_0x55701c)return{'header':_0x3873d2,'data':_0x2eaea4};store[_0x5a2e54(0x192)]({'type':EXPORT,'exportable':{'extension':_0x5a2e54(0x1c1),'name':_0x4a7eed,'data':{'header':_0x3873d2,'data':_0x2eaea4}}});}static async[a0_0x31b928(0x17a)](_0x52eb64,_0x5ce470,_0x20df66,_0x50787d,_0x2b840c,_0x175eb8){const _0x53f1a1=a0_0x31b928;try{const _0x55bfd5=await client[_0x53f1a1(0x189)]({'query':a0_0x118862`
|
|
12
12
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
13
|
-
${
|
|
13
|
+
${_0x52eb64}(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
14
14
|
items {
|
|
15
|
-
${
|
|
15
|
+
${_0x175eb8}
|
|
16
16
|
}
|
|
17
17
|
total
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,'variables':{'filters':
|
|
20
|
+
`,'variables':{'filters':_0x5ce470,'sortings':_0x20df66,'pagination':{'page':_0x50787d,'limit':_0x2b840c}}});if(!_0x55bfd5['errors'])return{'records':_0x55bfd5[_0x53f1a1(0x1da)][_0x52eb64][_0x53f1a1(0x1c4)],'total':_0x55bfd5[_0x53f1a1(0x1da)][_0x52eb64][_0x53f1a1(0x1e7)]};ServiceUtil[_0x53f1a1(0x190)](_0x55bfd5);}catch(_0x4f39cf){ServiceUtil[_0x53f1a1(0x198)](_0x4f39cf);}return null;}static async['findOne'](_0x4112c5,_0x1169a5,_0x4373bf){const _0x1453e6=a0_0x31b928;try{let _0x2cb9dc=await client[_0x1453e6(0x189)]({'query':a0_0x118862`
|
|
21
21
|
query ($id: String!) {
|
|
22
|
-
${
|
|
23
|
-
${
|
|
22
|
+
${_0x4112c5}(id: $id) {
|
|
23
|
+
${_0x4373bf}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,'variables':{'id':
|
|
26
|
+
`,'variables':{'id':_0x1169a5}});if(!_0x2cb9dc[_0x1453e6(0x15f)])return _0x2cb9dc[_0x1453e6(0x1da)][_0x4112c5]||{};ServiceUtil[_0x1453e6(0x190)](_0x2cb9dc);}catch(_0x5737f3){ServiceUtil['showGraphqlException'](_0x5737f3);}return null;}static[a0_0x31b928(0x1d9)](_0x1a9717,_0x2b69f3){const _0xd7f78d=a0_0x31b928,_0x5abdfc=_0x1a9717[_0xd7f78d(0x1b5)][_0xd7f78d(0x18f)](_0x8cacf2=>_0x8cacf2['id']);return ValueUtil[_0xd7f78d(0x1e3)](_0x5abdfc)&&0x1==_0x2b69f3&&UiUtil[_0xd7f78d(0x1d1)]('text.nothing_selected',_0xd7f78d(0x164),_0xd7f78d(0x1bd),_0xd7f78d(0x1b7)),_0x5abdfc;}static async['deleteListByGristSelected'](_0x225b83,_0x548dcd){const _0x4d94a4=a0_0x31b928;let _0x264e78=ServiceUtil[_0x4d94a4(0x1d9)](_0x225b83,!0x0);ValueUtil[_0x4d94a4(0x1a8)](_0x264e78)&&(await ServiceUtil['deleteListByIds'](_0x264e78,_0x548dcd)&&_0x225b83[_0x4d94a4(0x1ae)]());}static async[a0_0x31b928(0x1cc)](_0xfed76d,_0x5cf72f){const _0x72f04e=a0_0x31b928;if(!(await UiUtil[_0x72f04e(0x1d1)](_0x72f04e(0x160),_0x72f04e(0x1c0),_0x72f04e(0x1a4),'delete',_0x72f04e(0x196)))['value'])return!0x1;try{const _0x35cba6=await client['query']({'query':a0_0x118862`
|
|
27
27
|
mutation {
|
|
28
|
-
${
|
|
28
|
+
${_0x5cf72f}(${gqlBuilder[_0x72f04e(0x1c2)]({'ids':_0xfed76d})})
|
|
29
29
|
}
|
|
30
|
-
`});if(!
|
|
30
|
+
`});if(!_0x35cba6[_0x72f04e(0x15f)])return UiUtil[_0x72f04e(0x1c6)]('info',TermsUtil[_0x72f04e(0x176)](_0x72f04e(0x1a6))),!0x0;ServiceUtil['showGraphqlErrorResponse'](_0x35cba6);}catch(_0x4dd3ed){ServiceUtil['showGraphqlException'](_0x4dd3ed);}return!0x1;}static async[a0_0x31b928(0x174)](_0x17c440,_0x596092){const _0x52c99d=a0_0x31b928;let _0x506f0b=ServiceUtil[_0x52c99d(0x1ab)](_0x17c440);if(ValueUtil[_0x52c99d(0x1a8)](_0x506f0b)){let _0x5a7309=await ServiceUtil[_0x52c99d(0x1a5)](_0x596092,_0x506f0b);if(_0x5a7309)return _0x17c440[_0x52c99d(0x1ae)](),_0x5a7309;}return!0x1;}static async[a0_0x31b928(0x1a5)](_0x1e5620,_0x4c460e){const _0x2ac301=a0_0x31b928;try{const _0x3c7b02=await client[_0x2ac301(0x189)]({'query':a0_0x118862`
|
|
31
31
|
mutation {
|
|
32
|
-
${
|
|
32
|
+
${_0x1e5620}(${gqlBuilder[_0x2ac301(0x1c2)]({'patches':_0x4c460e})}) {
|
|
33
33
|
id
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
`,'context':{'hasUpload':!0x0}});if(!
|
|
36
|
+
`,'context':{'hasUpload':!0x0}});if(!_0x3c7b02['errors'])return UiUtil[_0x2ac301(0x1c6)]('info',TermsUtil[_0x2ac301(0x176)](_0x2ac301(0x1e2))),!0x0;ServiceUtil[_0x2ac301(0x190)](_0x3c7b02);}catch(_0x27d3fd){ServiceUtil[_0x2ac301(0x198)](_0x27d3fd);}return!0x1;}static[a0_0x31b928(0x1ab)](_0x1c3f09,_0x3c656d=!0x1){const _0x5a85c9=a0_0x31b928;let _0x3edf94=_0x1c3f09[_0x5a85c9(0x17c)];if(_0x3edf94&&0x0!=_0x3edf94[_0x5a85c9(0x1de)])return _0x3edf94['map'](_0x41a361=>{const _0x4df449=_0x5a85c9;let _0x5458b3=_0x41a361['id']?{'id':_0x41a361['id']}:{};for(let _0x16c025 in _0x41a361)['creator',_0x4df449(0x1d2),_0x4df449(0x1d3),_0x4df449(0x1b6),'__dirty__',_0x4df449(0x1d5),_0x4df449(0x1b9),_0x4df449(0x1a1),_0x4df449(0x188)][_0x4df449(0x16a)](_0x16c025)||(_0x41a361[_0x16c025]&&_0x4df449(0x1ca)==typeof _0x41a361[_0x16c025]&&0x0==_0x3c656d?_0x5458b3[_0x16c025]={'id':_0x41a361[_0x16c025]['id']}:_0x5458b3[_0x16c025]=_0x41a361[_0x16c025]);return _0x5458b3[_0x4df449(0x1e4)]=_0x41a361[_0x4df449(0x163)],_0x5458b3;});UiUtil[_0x5a85c9(0x1d1)](_0x5a85c9(0x1bc),_0x5a85c9(0x1ad),_0x5a85c9(0x1bd),_0x5a85c9(0x1b7));}static async[a0_0x31b928(0x1ce)](_0x241df5,_0x8b1d40,_0x252ef4,_0xa8811f=!0x0){const _0x1159fe=a0_0x31b928;let _0x4dec07=!0x0;_0x241df5&&!0x0===_0xa8811f&&(_0x4dec07=(await UiUtil[_0x1159fe(0x1d1)](_0x1159fe(0x1aa)+_0x241df5,_0x1159fe(0x1c0),_0x1159fe(0x1a4),_0x1159fe(0x1b7),_0x1159fe(0x196)))[_0x1159fe(0x179)]);if(_0x4dec07)try{const _0x47fa0c=await client[_0x1159fe(0x189)]({'query':a0_0x118862`
|
|
37
37
|
mutation ($scenarioName: String!, $variables: Object) {
|
|
38
38
|
runScenario(scenarioName: $scenarioName, variables: $variables) {
|
|
39
39
|
state
|
|
@@ -42,4 +42,4 @@ const a0_0x69a960=a0_0x115c;(function(_0x66d86d,_0x15510b){const _0x357346=a0_0x
|
|
|
42
42
|
__typename
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
`,'variables':{'scenarioName':
|
|
45
|
+
`,'variables':{'scenarioName':_0x8b1d40,'variables':_0x252ef4}});if(_0x47fa0c[_0x1159fe(0x15f)])ServiceUtil['showGraphqlErrorResponse'](_0x47fa0c);else{if(this['checkClientError'](_0x47fa0c))return!0x0===_0xa8811f&&UiUtil[_0x1159fe(0x1c6)](_0x1159fe(0x1bd),TermsUtil[_0x1159fe(0x176)](_0x1159fe(0x193))),_0x47fa0c;}}catch(_0x22c463){ServiceUtil[_0x1159fe(0x198)](_0x22c463);}return!0x1;}static[a0_0x31b928(0x1d4)](_0x37cc02){const _0xfc0942=a0_0x31b928;if(_0x37cc02&&_0x37cc02[_0xfc0942(0x1da)]&&_0x37cc02['data'][_0xfc0942(0x1a2)]&&_0x37cc02[_0xfc0942(0x1da)]['runScenario']['data']&&_0x37cc02[_0xfc0942(0x1da)]['runScenario'][_0xfc0942(0x1da)][_0xfc0942(0x1e0)]){let _0x326a32=_0x37cc02[_0xfc0942(0x1da)][_0xfc0942(0x1a2)][_0xfc0942(0x1da)][_0xfc0942(0x1e0)];return UiUtil[_0xfc0942(0x1d1)](_0x326a32[_0xfc0942(0x17b)],_0x326a32[_0xfc0942(0x18e)],_0xfc0942(0x1e0),_0xfc0942(0x1b7)),!0x1;}return!0x0;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3db691=a0_0x44a4;(function(_0x508cc2,_0x4390ad){const _0x530e98=a0_0x44a4,_0x265598=_0x508cc2();while(!![]){try{const _0x2efed2=-parseInt(_0x530e98(0x13d))/0x1+parseInt(_0x530e98(0x13c))/0x2+parseInt(_0x530e98(0x123))/0x3+parseInt(_0x530e98(0x127))/0x4*(-parseInt(_0x530e98(0x143))/0x5)+parseInt(_0x530e98(0x137))/0x6+parseInt(_0x530e98(0x13a))/0x7*(-parseInt(_0x530e98(0x12c))/0x8)+parseInt(_0x530e98(0x12a))/0x9;if(_0x2efed2===_0x4390ad)break;else _0x265598['push'](_0x265598['shift']());}catch(_0x499d8f){_0x265598['push'](_0x265598['shift']());}}}(a0_0x52cd,0x55e5d));import a0_0x45e037 from'graphql-tag';function a0_0x44a4(_0x51493f,_0x387449){const _0x52cd43=a0_0x52cd();return a0_0x44a4=function(_0x44a4c5,_0x32b027){_0x44a4c5=_0x44a4c5-0x122;let _0x34b349=_0x52cd43[_0x44a4c5];return _0x34b349;},a0_0x44a4(_0x51493f,_0x387449);}function a0_0x52cd(){const _0x47a73f=['text','tField','locale','translate','2459484MeGlqp','records','fetchTerminologies','136738SzFrhU','items','587158PapgIn','411158XnzWih','terminologies','META_TERMS','length','field','title','1655WyJBYR','errors','data','error','replace','1677744kqJNev','name','tMenu','total','2692RZkVHU','downloadTerminologies','tTitle','2605527rVMGtA','menu','232WLrstA','tError','keys','label','category','tText','forEach'];a0_0x52cd=function(){return _0x47a73f;};return a0_0x52cd();}import{client}from'@operato/graphql';import{i18next}from'@operato/i18n';export class TermsUtil{[a0_0x3db691(0x13f)]=null;static async[a0_0x3db691(0x128)](_0x4bab49){const _0x3d2526=a0_0x3db691;let _0xa31e31=(await TermsUtil['fetchTerminologies'](_0x4bab49))[_0x3d2526(0x138)];_0xa31e31&&_0xa31e31[_0x3d2526(0x140)]>0x0&&(this[_0x3d2526(0x13f)]={},_0xa31e31[_0x3d2526(0x132)](_0x2ad40f=>{const _0x3c4450=_0x3d2526;let _0x1983f9=_0x2ad40f[_0x3c4450(0x130)]+'.'+_0x2ad40f[_0x3c4450(0x124)];this[_0x3c4450(0x13f)][_0x1983f9]=_0x2ad40f['display'];}));}static async[a0_0x3db691(0x139)](_0x14df0f){const _0x344adb=a0_0x3db691;let _0x3c9724=[{'name':_0x344adb(0x135),'operator':'eq','value':_0x14df0f}];const _0x1d5a57=await client['query']({'query':a0_0x45e037`
|
|
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_0x33c2be=a0_0x1499;(function(_0x1ad1e5,_0x1e6530){const _0x570dfb=a0_0x
|
|
|
11
11
|
total
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
`,'variables':{'filters':
|
|
14
|
+
`,'variables':{'filters':_0x3c9724,'sortings':[{'name':'category'},{'name':'name'}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0x1d5a57[_0x344adb(0x144)])return{'records':_0x1d5a57[_0x344adb(0x145)][_0x344adb(0x13e)][_0x344adb(0x13b)]||[],'total':_0x1d5a57['data'][_0x344adb(0x13e)][_0x344adb(0x126)]||0x0};}static['tLabel'](_0x3ff4c7,_0x2be944){const _0x2121b5=a0_0x3db691;let _0x4c1ed6=TermsUtil[_0x2121b5(0x136)](_0x2121b5(0x12f),_0x3ff4c7,_0x2be944,null);return _0x4c1ed6||TermsUtil[_0x2121b5(0x136)](_0x2121b5(0x141),_0x3ff4c7,_0x2be944,_0x3ff4c7);}static[a0_0x3db691(0x134)](_0x2f63c9,_0x128de3){const _0x607865=a0_0x3db691;let _0x58362a=TermsUtil[_0x607865(0x136)]('field',_0x2f63c9,_0x128de3,null);return _0x58362a||TermsUtil[_0x607865(0x136)]('field',_0x2f63c9,_0x128de3,_0x2f63c9);}static['tButton'](_0x98b46c){const _0x1f0af0=a0_0x3db691;return TermsUtil[_0x1f0af0(0x136)]('button',_0x98b46c,null,_0x98b46c);}static[a0_0x3db691(0x129)](_0x1c28cb,_0x9ac030){const _0x3eb57f=a0_0x3db691;let _0x473e04=TermsUtil[_0x3eb57f(0x136)](_0x3eb57f(0x142),_0x1c28cb,_0x9ac030,null);return _0x473e04||TermsUtil['translate']('menu',_0x1c28cb,_0x9ac030,_0x1c28cb);}static[a0_0x3db691(0x125)](_0x3258f8){const _0x6e7c84=a0_0x3db691;let _0x1d242d=TermsUtil['translate'](_0x6e7c84(0x12b),_0x3258f8,null,_0x3258f8);return _0x1d242d||TermsUtil['translate'](_0x6e7c84(0x142),_0x3258f8,null,_0x3258f8);}static[a0_0x3db691(0x131)](_0x5dfbc9,_0x1f7c2b){const _0x36aee9=a0_0x3db691;return TermsUtil[_0x36aee9(0x136)](_0x36aee9(0x133),_0x5dfbc9,_0x1f7c2b,_0x5dfbc9);}static[a0_0x3db691(0x12d)](_0x2e0524,_0x253454){const _0x10c5ea=a0_0x3db691;return TermsUtil[_0x10c5ea(0x136)](_0x10c5ea(0x146),_0x2e0524,_0x253454,_0x2e0524);}static['translate'](_0x4b110f,_0x27434c,_0x3441e7,_0x101a3a){let _0x117727=_0x4b110f+'.'+_0x27434c;return TermsUtil['t'](_0x117727,_0x3441e7,_0x101a3a);}static['t'](_0x3d0856,_0x1fc847,_0x35cdac){const _0x5311cc=a0_0x3db691;let _0x4432a6=this['META_TERMS']?this[_0x5311cc(0x13f)][_0x3d0856]:null;return _0x4432a6=_0x4432a6||i18next['t'](_0x3d0856),_0x4432a6&&_0x3d0856!=_0x4432a6?(_0x1fc847&&Object[_0x5311cc(0x12e)](_0x1fc847)[_0x5311cc(0x132)](function(_0x5dce6d){const _0x39285f=_0x5311cc;var _0x4a56fc='\x5c{'+_0x5dce6d[_0x39285f(0x122)](/\$/,'\x5c$')+'\x5c}',_0x29d1b2=new RegExp(_0x4a56fc,'gi');_0x4432a6=_0x4432a6[_0x39285f(0x122)](_0x29d1b2,_0x1fc847[_0x5dce6d]);}),_0x4432a6):_0x35cdac;}}
|
package/client/utils/ui-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x22bb(){const _0x41af46=['166059pIjgFR','htmlToElement','substring','querySelector','cookie','showAlertPopup','childNodes','\x27\x20is_popup=true></','name','currentLocale','6MnZQvh','showToast','removeChild','createElement','\x27></','getState','tagname','getLeafInput','\x27\x20\x20parent_id=\x27','input','20LdOnYk','i18next=','isNotEmpty','getStore','createEditorHtml','length','pass=','textarea','ox-input-barcode','getFilterFormData','currentRouting','createCustomElement','openDynamicPopup','4GgJQeF','parent_field','setValueToEditor','ko-KR','openPopupByElement','stringify','code-editor','config','filters','indexOf','template','isMobileEnv','confirmButton','app','page','route','24LfZrvq','renderRoot','11151228aEexFl','[name=\x27','getType','value','pageNavigate','ox-select','select-combo','barcode','279934fCikZp','1723057vhkxqz','\x20route_name=\x27','size','replace','fireCustomEvent','firstElementChild','content','4594070FCFOZZ','1955052idOSnK','dispatchEvent','split','tButton','1997613MzrMKB'];a0_0x22bb=function(){return _0x41af46;};return a0_0x22bb();}const a0_0x3cb9ea=a0_0x1710;(function(_0x2ecac8,_0x19155e){const _0x4cc7ab=a0_0x1710,_0x209428=_0x2ecac8();while(!![]){try{const _0x574745=parseInt(_0x4cc7ab(0x11e))/0x1*(parseInt(_0x4cc7ab(0x14d))/0x2)+parseInt(_0x4cc7ab(0x12c))/0x3+parseInt(_0x4cc7ab(0x127))/0x4+parseInt(_0x4cc7ab(0x126))/0x5*(parseInt(_0x4cc7ab(0x136))/0x6)+-parseInt(_0x4cc7ab(0x11f))/0x7*(parseInt(_0x4cc7ab(0x114))/0x8)+-parseInt(_0x4cc7ab(0x12b))/0x9*(-parseInt(_0x4cc7ab(0x140))/0xa)+-parseInt(_0x4cc7ab(0x116))/0xb;if(_0x574745===_0x19155e)break;else _0x209428['push'](_0x209428['shift']());}catch(_0x368df3){_0x209428['push'](_0x209428['shift']());}}}(a0_0x22bb,0xae70f));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_0x1710(_0x18bef5,_0x323380){const _0x22bb09=a0_0x22bb();return a0_0x1710=function(_0x1710d3,_0x4327fb){_0x1710d3=_0x1710d3-0x114;let _0xbfb87e=_0x22bb09[_0x1710d3];return _0xbfb87e;},a0_0x1710(_0x18bef5,_0x323380);}import{ValueUtil}from'./value-util';import{MetaUiUtil}from'./meta-ui-util';export class UiUtil{static[a0_0x3cb9ea(0x158)](){return isMobileDevice();}static[a0_0x3cb9ea(0x135)](){const _0xbf0430=a0_0x3cb9ea;let _0x2e379f=document[_0xbf0430(0x130)];return _0x2e379f=_0x2e379f[_0xbf0430(0x12e)](_0x2e379f[_0xbf0430(0x156)]('i18next')),_0x2e379f['indexOf'](';')>-0x1&&(_0x2e379f=_0x2e379f['substring'](0x0,_0x2e379f[_0xbf0430(0x156)](';'))),_0x2e379f=_0x2e379f[_0xbf0430(0x122)](_0xbf0430(0x141),''),'ko'==_0x2e379f?_0xbf0430(0x150):_0x2e379f;}static['getApplicationModuleInfo'](){const _0xf7a5cd=a0_0x3cb9ea;let _0x24361b=store['getState']()[_0xf7a5cd(0x15a)]['modules'];return _0x24361b[_0x24361b[_0xf7a5cd(0x145)]-0x1];}static[a0_0x3cb9ea(0x14a)](){const _0x25add2=a0_0x3cb9ea;return store[_0x25add2(0x13b)]()[_0x25add2(0x15c)][_0x25add2(0x15b)];}static[a0_0x3cb9ea(0x151)](_0x29cea9,_0x54e0ce,_0x13f9ee,_0x1d2b72){return openPopup(_0x13f9ee,{'backdrop':!0x0,'size':_0x54e0ce,'title':_0x29cea9,'backdrop':_0x1d2b72});}static async[a0_0x3cb9ea(0x14c)](_0x2d830b,_0x4d81c6,_0x563267,_0x55bcea){const _0x5d33d4=a0_0x3cb9ea;let _0x4d7170=ValueUtil['isNotEmpty'](_0x4d81c6[_0x5d33d4(0x14e)])?ValueUtil['getParams'](_0x563267,..._0x4d81c6[_0x5d33d4(0x14e)][_0x5d33d4(0x129)]('.')):void 0x0,_0x5d223e='<'+_0x4d81c6['tagname']+_0x5d33d4(0x120)+_0x4d81c6['menu']+_0x5d33d4(0x13e)+_0x4d7170+_0x5d33d4(0x133)+_0x4d81c6[_0x5d33d4(0x13c)]+'>',_0x1b5da3=UiUtil[_0x5d33d4(0x12d)](_0x5d223e);_0x1b5da3[_0x5d33d4(0x154)]=_0x4d81c6,ValueUtil[_0x5d33d4(0x142)](_0x4d81c6['popup_field'])&&(_0x1b5da3[_0x4d81c6['popup_field']]=_0x563267);let _0x185169=UiUtil[_0x5d33d4(0x151)](_0x2d830b,_0x4d81c6[_0x5d33d4(0x121)],_0x1b5da3,!0x0);_0x55bcea&&(_0x185169['onclosed']=_0x55bcea);}static[a0_0x3cb9ea(0x14b)](_0x440872,_0x394d82){const _0x440340=a0_0x3cb9ea;let _0x1ab1d7='<'+_0x440872+_0x440340(0x120)+_0x394d82+_0x440340(0x13a)+_0x440872+'>';return UiUtil[_0x440340(0x12d)](_0x1ab1d7);}static[a0_0x3cb9ea(0x12d)](_0x5e69e2){const _0x4ba960=a0_0x3cb9ea;var _0x2e71cd=document[_0x4ba960(0x139)](_0x4ba960(0x157));_0x2e71cd['innerHTML']=_0x5e69e2;var _0x208fa1=_0x2e71cd[_0x4ba960(0x125)][_0x4ba960(0x132)][0x0];return _0x2e71cd[_0x4ba960(0x125)][_0x4ba960(0x138)](_0x208fa1),_0x208fa1;}static[a0_0x3cb9ea(0x11a)](_0x20d189,_0x5b2f88){const _0x20ef86=a0_0x3cb9ea;let _0x134970=_0x5b2f88?'?':'';_0x5b2f88&&(_0x134970+=_0x20ef86(0x146)+JSON[_0x20ef86(0x152)](_0x5b2f88)),navigate(''+_0x20d189+_0x134970);}static[a0_0x3cb9ea(0x143)](_0x3cbea9,_0xa5e3c6,_0x209eff){let _0x1c539f=_0x1c539f['getState']();return _0x3cbea9&&_0xa5e3c6&&_0x209eff?_0x1c539f[_0x3cbea9][_0xa5e3c6][_0x209eff]:_0x3cbea9&&_0xa5e3c6?_0x1c539f[_0x3cbea9][_0xa5e3c6]:_0x3cbea9?_0x1c539f[_0x3cbea9]:_0x1c539f;}static[a0_0x3cb9ea(0x123)](_0x44f1c4,_0x3b9b0b){document['dispatchEvent'](new CustomEvent(_0x44f1c4,{'detail':_0x3b9b0b}));}static[a0_0x3cb9ea(0x137)](_0x28fc44,_0x29a89d){const _0x407574=a0_0x3cb9ea;document[_0x407574(0x128)](new CustomEvent('notify',{'detail':{'type':_0x28fc44,'message':_0x29a89d}}));}static async[a0_0x3cb9ea(0x131)](_0x184072,_0x29e123,_0x4fea80,_0x107b8e,_0x34e877){const _0x13be3f=a0_0x3cb9ea;let _0x44db32={'title':TermsUtil['t'](_0x184072)||_0x184072,'text':TermsUtil['t'](_0x29e123)||_0x29e123};return _0x4fea80&&(_0x44db32['type']=_0x4fea80),_0x107b8e&&(_0x44db32[_0x13be3f(0x159)]=TermsUtil[_0x13be3f(0x12a)](_0x107b8e)),_0x34e877&&(_0x44db32['cancelButton']=TermsUtil[_0x13be3f(0x12a)](_0x34e877)),await CustomAlert(_0x44db32);}static[a0_0x3cb9ea(0x149)](_0x362e30){const _0x35db53=a0_0x3cb9ea;if(ValueUtil['isNotEmpty'](_0x362e30)){let _0x9ecb93=_0x362e30[_0x35db53(0x155)]();ValueUtil[_0x35db53(0x142)](_0x9ecb93)&&_0x9ecb93['forEach'](_0x2733b2=>{const _0x531ce1=_0x35db53;ValueUtil['isNotEmpty'](_0x2733b2[_0x531ce1(0x119)])&&(item[_0x2733b2[_0x531ce1(0x134)]]=_0x2733b2[_0x531ce1(0x119)]?_0x2733b2[_0x531ce1(0x119)]:null);});}return{};}static['setSearchFormEditorValue'](_0x52af12,_0xdb575b,_0x322014){const _0x2e3327=a0_0x3cb9ea;if(ValueUtil['isNotEmpty'](_0x52af12)){let _0x1837ed=_0x52af12['renderRoot']?.['querySelector'](_0x2e3327(0x117)+_0xdb575b+'\x27]');ValueUtil[_0x2e3327(0x142)](_0x1837ed)&&(_0x1837ed[_0x2e3327(0x119)]=_0x322014);}}static[a0_0x3cb9ea(0x144)](_0x3e93e,_0x906cd9,_0x2dc3e9,_0x46b3d9){return getEditor(_0x3e93e)('',_0x906cd9,_0x2dc3e9,_0x46b3d9,{});}static[a0_0x3cb9ea(0x14f)](_0x2ef0a6,_0x4e7913){const _0x5ae01c=a0_0x3cb9ea;UiUtil[_0x5ae01c(0x13d)](_0x2ef0a6)[_0x5ae01c(0x119)]=_0x4e7913;}static[a0_0x3cb9ea(0x13d)](_0x1cef99){const _0xdf2e43=a0_0x3cb9ea;let _0x2ff58c=_0x1cef99[_0xdf2e43(0x118)]();return _0xdf2e43(0x153)==_0x2ff58c?_0x1cef99[_0xdf2e43(0x115)][_0xdf2e43(0x12f)]('ox-input-code'):_0xdf2e43(0x147)==_0x2ff58c?_0x1cef99[_0xdf2e43(0x115)][_0xdf2e43(0x12f)](_0xdf2e43(0x147)):_0xdf2e43(0x11c)==_0x2ff58c?_0x1cef99['renderRoot'][_0xdf2e43(0x12f)](_0xdf2e43(0x11b))[_0xdf2e43(0x124)]:_0xdf2e43(0x11d)==_0x2ff58c?_0x1cef99[_0xdf2e43(0x115)][_0xdf2e43(0x12f)](_0xdf2e43(0x148))['renderRoot'][_0xdf2e43(0x12f)](_0xdf2e43(0x13f)):_0x1cef99[_0xdf2e43(0x115)]['firstElementChild']['editor'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x4164(_0x140daa,_0x44ad95){const _0x1092fa=a0_0x1092();return a0_0x4164=function(_0x416408,_0x4eb6df){_0x416408=_0x416408-0x1a5;let _0xd8f33e=_0x1092fa[_0x416408];return _0xd8f33e;},a0_0x4164(_0x140daa,_0x44ad95);}const a0_0x3d7338=a0_0x4164;(function(_0x437325,_0x432713){const _0x95da1f=a0_0x4164,_0x3638f4=_0x437325();while(!![]){try{const _0x4e4288=-parseInt(_0x95da1f(0x1bb))/0x1*(parseInt(_0x95da1f(0x1a9))/0x2)+parseInt(_0x95da1f(0x1bc))/0x3+parseInt(_0x95da1f(0x1a6))/0x4+parseInt(_0x95da1f(0x1b3))/0x5*(parseInt(_0x95da1f(0x1af))/0x6)+parseInt(_0x95da1f(0x1b4))/0x7*(parseInt(_0x95da1f(0x1b8))/0x8)+parseInt(_0x95da1f(0x1a8))/0x9*(-parseInt(_0x95da1f(0x1b5))/0xa)+-parseInt(_0x95da1f(0x1c3))/0xb*(parseInt(_0x95da1f(0x1c0))/0xc);if(_0x4e4288===_0x432713)break;else _0x3638f4['push'](_0x3638f4['shift']());}catch(_0x3e4055){_0x3638f4['push'](_0x3638f4['shift']());}}}(a0_0x1092,0x2912e));function a0_0x1092(){const _0x311d61=['slice','96EDghRm','isArray','keys','330431rFeuFN','806718lQNOpk','populateArray','setParams','isEmpty','162156CAwJxP','isNotEmpty','isEquals','209RBCYcx','compareObjectValues','740324BVcTQE','toInteger','423NeofhW','2pUDpGx','object','TRUE','number','toBoolean','true','6474nbFpUo','forEach','length','boolean','785yiWCyq','137935ShtyXN','22220jQSxlG','getParams'];a0_0x1092=function(){return _0x311d61;};return a0_0x1092();}import a0_0x589548 from'lodash-es/isEqual';import{TermsUtil}from'./terms-util';export class ValueUtil{static[a0_0x3d7338(0x1bf)](_0x5b3c2c){const _0x1cbe22=a0_0x3d7338;if(void 0x0===_0x5b3c2c)return!0x0;if(null===_0x5b3c2c)return!0x0;if(_0x1cbe22(0x1b2)==typeof _0x5b3c2c)return!0x1;if('string'==typeof _0x5b3c2c||_0x1cbe22(0x1ac)==typeof _0x5b3c2c){if(''==_0x5b3c2c)return!0x0;}else{if(Array[_0x1cbe22(0x1b9)](_0x5b3c2c)){if(0x0==_0x5b3c2c['length'])return!0x0;}else{if(_0x1cbe22(0x1aa)==typeof _0x5b3c2c&&0x0==Object['keys'](_0x5b3c2c)[_0x1cbe22(0x1b1)])return!0x0;}}return!0x1;}static[a0_0x3d7338(0x1c1)](_0x2efdcc){return!ValueUtil['isEmpty'](_0x2efdcc);}static[a0_0x3d7338(0x1c2)](_0xe4b5b4,_0x11613d){return a0_0x589548(_0xe4b5b4,_0x11613d);}static[a0_0x3d7338(0x1a7)](_0x53cbd8,_0x50dbd7){const _0x5cc597=a0_0x3d7338;return ValueUtil[_0x5cc597(0x1bf)](_0x53cbd8)?_0x50dbd7||0x0:parseInt(_0x53cbd8);}static[a0_0x3d7338(0x1ad)](_0x3881c0){const _0x4ffe9e=a0_0x3d7338;return!ValueUtil['isEmpty'](_0x3881c0)&&(_0x4ffe9e(0x1ae)==_0x3881c0||'t'==_0x3881c0||_0x4ffe9e(0x1ab)==_0x3881c0||'T'==_0x3881c0||'on'==_0x3881c0||'ON'==_0x3881c0);}static[a0_0x3d7338(0x1a5)](_0x383623,_0x2ce7cf,_0x53cd22){let _0x52129f=!0x0;return _0x53cd22['forEach'](_0x4b757a=>{const _0x39168=a0_0x4164;let _0x2ae6af=_0x383623[_0x4b757a];if('*'===_0x2ae6af)return;let _0x1596a2=_0x2ce7cf[_0x4b757a]||'';ValueUtil[_0x39168(0x1bf)](_0x2ae6af)?ValueUtil['isNotEmpty'](_0x1596a2)&&(_0x52129f=!0x1):_0x2ae6af!=_0x1596a2&&(_0x52129f=!0x1);}),_0x52129f;}static[a0_0x3d7338(0x1be)](_0x586b6b,_0x241008,_0x4e6d30,_0x33407a){const _0x29c2a1=a0_0x3d7338;let _0x3cae2a=ValueUtil[_0x29c2a1(0x1b6)](_0x241008,_0x4e6d30);return ValueUtil[_0x29c2a1(0x1c1)](_0x3cae2a)&&(_0x586b6b[_0x4e6d30]=!0x0===_0x33407a?TermsUtil['t'](_0x3cae2a):_0x3cae2a),_0x586b6b;}static[a0_0x3d7338(0x1b6)](_0x3804f3,..._0x38f838){const _0x40b1cc=a0_0x3d7338;if(arguments[_0x40b1cc(0x1b1)]<=0x1)return;let _0x5a18c5=_0x38f838[0x0];if(ValueUtil[_0x40b1cc(0x1bf)](_0x3804f3[_0x5a18c5]))return;let _0x2c4be7=_0x3804f3[_0x5a18c5];return _0x38f838[_0x40b1cc(0x1b1)]>0x1?ValueUtil[_0x40b1cc(0x1b6)](_0x2c4be7,..._0x38f838[_0x40b1cc(0x1b7)](0x1)):_0x2c4be7;}static[a0_0x3d7338(0x1bd)](_0x33114b,_0x4f5d84,..._0x5b688c){const _0x1c4de3=a0_0x3d7338;return _0x4f5d84=_0x4f5d84||[],_0x5b688c=_0x5b688c||Object[_0x1c4de3(0x1ba)](_0x33114b),ValueUtil[_0x1c4de3(0x1c1)](_0x5b688c)&&(_0x4f5d84=_0x33114b['map']((_0x1c2d18,_0x16df4c)=>{const _0x414ae2=_0x1c4de3;let _0x3f5ba2=_0x4f5d84[_0x414ae2(0x1b1)]>_0x16df4c?_0x4f5d84[_0x16df4c]:{};return ValueUtil['populateObject'](_0x1c2d18,_0x3f5ba2,_0x5b688c);})),_0x4f5d84;}static['populateObject'](_0x5be06e,_0x151812,..._0xc12a0d){const _0xa43455=a0_0x3d7338;return _0x151812=_0x151812||{},_0xc12a0d=_0xc12a0d||Object[_0xa43455(0x1ba)](_0x5be06e),ValueUtil[_0xa43455(0x1c1)](_0xc12a0d)&&_0xc12a0d[_0xa43455(0x1b0)](_0x2acb95=>{_0x151812[_0x2acb95]=_0x5be06e[_0x2acb95];}),_0x151812;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x2a0b(){const _0x5edbd2=['760SrOayj','4329870EkiGLF','293422uAtydy','2721325ZsLLgh','2882820FEWWEQ','2901495QWxLdv','2dPatjF','9877gxwngP','28737171sawJad'];a0_0x2a0b=function(){return _0x5edbd2;};return a0_0x2a0b();}(function(_0x3c4b9a,_0x41bc16){const _0x2f4bee=a0_0x4c4c,_0x2f318a=_0x3c4b9a();while(!![]){try{const _0x56c2db=parseInt(_0x2f4bee(0x121))/0x1+-parseInt(_0x2f4bee(0x125))/0x2*(parseInt(_0x2f4bee(0x124))/0x3)+-parseInt(_0x2f4bee(0x123))/0x4+-parseInt(_0x2f4bee(0x122))/0x5+-parseInt(_0x2f4bee(0x120))/0x6+parseInt(_0x2f4bee(0x126))/0x7*(parseInt(_0x2f4bee(0x11f))/0x8)+parseInt(_0x2f4bee(0x11e))/0x9;if(_0x56c2db===_0x41bc16)break;else _0x2f318a['push'](_0x2f318a['shift']());}catch(_0x3f22fb){_0x2f318a['push'](_0x2f318a['shift']());}}}(a0_0x2a0b,0xa2c52));import{css}from'lit';function a0_0x4c4c(_0x91cf01,_0x22f412){const _0x2a0b95=a0_0x2a0b();return a0_0x4c4c=function(_0x4c4c9f,_0xfed560){_0x4c4c9f=_0x4c4c9f-0x11e;let _0x25c6a7=_0x2a0b95[_0x4c4c9f];return _0x25c6a7;},a0_0x4c4c(_0x91cf01,_0x22f412);}export const DynamicMenuLandscapeStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
overflow-x: auto;
|
|
4
4
|
background-color: var(--secondary-text-color);
|
|
@@ -144,4 +144,4 @@ function a0_0x22a3(_0x35003d,_0x42ffb6){const _0x3cc558=a0_0x3cc5();return a0_0x
|
|
|
144
144
|
background-color: rgba(var(--secondary-color-rgb), 0.3);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
`;
|
|
147
|
+
`;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4c8baf=a0_0x119a;(function(_0x6f74ea,_0x2312fa){const _0xb7a74a=a0_0x119a,_0x4f5a05=_0x6f74ea();while(!![]){try{const _0x513ec5=-parseInt(_0xb7a74a(0x1d2))/0x1+-parseInt(_0xb7a74a(0x1b1))/0x2+parseInt(_0xb7a74a(0x1ab))/0x3+-parseInt(_0xb7a74a(0x1b0))/0x4*(parseInt(_0xb7a74a(0x1c3))/0x5)+parseInt(_0xb7a74a(0x1d4))/0x6+parseInt(_0xb7a74a(0x1b5))/0x7*(-parseInt(_0xb7a74a(0x1b8))/0x8)+parseInt(_0xb7a74a(0x1c9))/0x9;if(_0x513ec5===_0x2312fa)break;else _0x4f5a05['push'](_0x4f5a05['shift']());}catch(_0x2ac7f){_0x4f5a05['push'](_0x4f5a05['shift']());}}}(a0_0x566b,0x3cf8d));import'@material/mwc-icon';import{html,LitElement}from'lit';import{connect}from'pwa-helpers';import{navigate,store}from'@operato/shell';function a0_0x566b(){const _0x41ca0a=['329142SpnqlU','min','renderRoot','preventDefault','onWheelEvent','8HSQFmV','522308OmkJZL','firstUpdated','detail','activeTopLevel','6503CtXPKb','menus','click','1064kUwFBc','addEventListener','wheelDelta','group','map','scrollLeft','icon','transitionstart','href','define','#force','561435bmalVe','render','active-toplevel','target','path','submenu','5617278KTxJXF','properties','name','dynamic-menu-landscape','transitionend','currentTarget','settled','mousewheel','removeAttribute','162356cXcTXE','type','1725156RzLFbu','setAttribute'];a0_0x566b=function(){return _0x41ca0a;};return a0_0x566b();}import{ScrollbarStyles}from'@operato/styles';import{DynamicMenuLandscapeStyles}from'./dynamic-menu-landscape-styles';function a0_0x119a(_0x2e55bd,_0x5d0746){const _0x566b16=a0_0x566b();return a0_0x119a=function(_0x119a04,_0x2444fb){_0x119a04=_0x119a04-0x1aa;let _0x5ec41f=_0x566b16[_0x119a04];return _0x5ec41f;},a0_0x119a(_0x2e55bd,_0x5d0746);}export class DynamicMenuLandscape extends connect(store)(LitElement){static get['styles'](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get[a0_0x4c8baf(0x1ca)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x4c8baf(0x1c4)](){const _0x2082e7=a0_0x4c8baf,{menus:_0xe462cf=[],activeTopLevel:_0x567359,activeMenu:_0x10bc67}=this;return html`
|
|
2
2
|
<div id="wrap">
|
|
3
3
|
<ul>
|
|
4
|
-
${
|
|
5
|
-
<li ?active=${
|
|
6
|
-
<a href=${
|
|
7
|
-
${
|
|
4
|
+
${_0xe462cf[_0x2082e7(0x1bc)](_0x7674cc=>_0x2082e7(0x1bb)==_0x7674cc[_0x2082e7(0x1d3)]?html``:html`
|
|
5
|
+
<li ?active=${_0x7674cc===_0x567359}>
|
|
6
|
+
<a href=${_0x7674cc[_0x2082e7(0x1c7)]||'#'}>
|
|
7
|
+
${_0x7674cc[_0x2082e7(0x1be)]?html`<mwc-icon>${_0x7674cc[_0x2082e7(0x1be)]}</mwc-icon>`:html``} ${_0x7674cc[_0x2082e7(0x1cb)]}
|
|
8
8
|
</a>
|
|
9
9
|
|
|
10
10
|
<ul submenus>
|
|
11
|
-
${
|
|
12
|
-
<li ?active=${
|
|
13
|
-
<a href=${
|
|
11
|
+
${_0x7674cc[_0x2082e7(0x1b6)]?.[_0x2082e7(0x1bc)](_0x309a3f=>html`
|
|
12
|
+
<li ?active=${_0x309a3f===_0x10bc67}>
|
|
13
|
+
<a href=${_0x309a3f['path']||'#'}> ${_0x309a3f['name']} </a>
|
|
14
14
|
</li>
|
|
15
15
|
`)}
|
|
16
16
|
</ul>
|
|
17
17
|
|
|
18
18
|
<div description>
|
|
19
|
-
${
|
|
19
|
+
${_0x7674cc[_0x2082e7(0x1be)]?html`<mwc-icon>${_0x7674cc['icon']}</mwc-icon>`:html``} ${_0x7674cc['description']||''}
|
|
20
20
|
</div>
|
|
21
21
|
</li>
|
|
22
22
|
`)}
|
|
23
23
|
</ul>
|
|
24
24
|
</div>
|
|
25
|
-
`;}[
|
|
25
|
+
`;}[a0_0x4c8baf(0x1b2)](){const _0x1ee2d1=a0_0x4c8baf;this[_0x1ee2d1(0x1ad)]['querySelector']('#wrap')[_0x1ee2d1(0x1b9)](_0x1ee2d1(0x1d0),this['onWheelEvent']['bind'](this),!0x1),this[_0x1ee2d1(0x1ad)][_0x1ee2d1(0x1b9)](_0x1ee2d1(0x1b7),_0x3c7b02=>{const _0x292c58=_0x1ee2d1;if(_0x3c7b02['target'][_0x292c58(0x1c8)]){_0x3c7b02['stopPropagation'](),_0x3c7b02[_0x292c58(0x1ae)]();let _0x114c80=_0x3c7b02[_0x292c58(0x1c6)][_0x292c58(0x1c8)];return void this['dispatchEvent'](new CustomEvent(_0x292c58(0x1c5),{'bubbles':!0x0,'detail':this[_0x292c58(0x1b4)]===_0x114c80?void 0x0:_0x114c80}));}let _0x2265ae=_0x3c7b02[_0x292c58(0x1c6)][_0x292c58(0x1c0)];_0x2265ae&&location['href']===_0x2265ae&&navigate(_0x2265ae+_0x292c58(0x1c2),!0x0);}),this['renderRoot'][_0x1ee2d1(0x1b9)](_0x1ee2d1(0x1bf),_0x2288e3=>{const _0x198325=_0x1ee2d1;_0x2288e3[_0x198325(0x1c6)][_0x198325(0x1d1)](_0x198325(0x1cf));}),this[_0x1ee2d1(0x1ad)]['addEventListener'](_0x1ee2d1(0x1cd),_0x1d626e=>{const _0x588c2f=_0x1ee2d1;_0x1d626e[_0x588c2f(0x1c6)][_0x588c2f(0x1aa)]('settled','');});}[a0_0x4c8baf(0x1af)](_0x2358be){const _0x366414=a0_0x4c8baf,_0x5c7386=_0x2358be[_0x366414(0x1ce)];var _0x2b25f6=Math['max'](-0x1,Math[_0x366414(0x1ac)](0x1,_0x2358be[_0x366414(0x1ba)]||-_0x2358be[_0x366414(0x1b3)]));_0x5c7386[_0x366414(0x1bd)]-=0xa*_0x2b25f6,_0x2358be[_0x366414(0x1ae)]();}}customElements[a0_0x4c8baf(0x1c1)](a0_0x4c8baf(0x1cc),DynamicMenuLandscape);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x39d96e=a0_0x426b;(function(_0xa54610,_0x431359){var _0x2c0136=a0_0x426b,_0x4d286a=_0xa54610();while(!![]){try{var _0x37b26a=-parseInt(_0x2c0136(0x1d3))/0x1+-parseInt(_0x2c0136(0x1c0))/0x2*(-parseInt(_0x2c0136(0x1e0))/0x3)+parseInt(_0x2c0136(0x1db))/0x4+parseInt(_0x2c0136(0x1d7))/0x5*(-parseInt(_0x2c0136(0x1d1))/0x6)+parseInt(_0x2c0136(0x1cf))/0x7*(parseInt(_0x2c0136(0x1c1))/0x8)+-parseInt(_0x2c0136(0x1d0))/0x9*(-parseInt(_0x2c0136(0x1d2))/0xa)+parseInt(_0x2c0136(0x1bd))/0xb*(-parseInt(_0x2c0136(0x1bf))/0xc);if(_0x37b26a===_0x431359)break;else _0x4d286a['push'](_0x4d286a['shift']());}catch(_0x448744){_0x4d286a['push'](_0x4d286a['shift']());}}}(a0_0x3bda,0xaec80));import'@material/mwc-icon';import'./dynamic-menu-portrait';import'./dynamic-menu-landscape';import{css,html,LitElement}from'lit';function a0_0x3bda(){var _0x2ac78f=['11371923cqUAVV','1224NJdWjl','10uYVtpc','287229YdaXCk','_findActivePage','setAttribute','find','18735QExGdy','split','stopPropagation','firstUpdated','1323652OJyIaH','removeAttribute','_activeTopLevel','metaUI','updated','51jFExjl','stateChanged','detail','6178084ijPdSB','replaceChild','24xeTwQD','112502rZEBvH','776TJbwmF','has','landscape','menus','slotTemplate','active-toplevel','route','_path','_activeMenu','active','resourceId','page','call','orientation','24542LVRSnw'];a0_0x3bda=function(){return _0x2ac78f;};return a0_0x3bda();}import{connect}from'pwa-helpers';import{store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';function isActiveMenu(_0x1317b9,_0x394ada){var _0x17ccb5=a0_0x426b;return _0x1317b9['path']?.[_0x17ccb5(0x1d8)]('?')[0x0]===_0x394ada||_0x1317b9[_0x17ccb5(0x1ca)]&&'function'==typeof _0x1317b9[_0x17ccb5(0x1ca)]&&_0x1317b9[_0x17ccb5(0x1ca)][_0x17ccb5(0x1cd)](_0x1317b9,{'path':_0x394ada});}function a0_0x426b(_0x2b0e0a,_0x1f26e9){var _0x3bda16=a0_0x3bda();return a0_0x426b=function(_0x426b7f,_0x11bdcf){_0x426b7f=_0x426b7f-0x1bd;var _0xf7d8fd=_0x3bda16[_0x426b7f];return _0xf7d8fd;},a0_0x426b(_0x2b0e0a,_0x1f26e9);}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_0x45c15e=a0_0x4791;(function(_0x4634c3,_0x14b30a){var _0x548120=a0_0x4791
|
|
|
27
27
|
dynamic-menu-landscape {
|
|
28
28
|
flex: 1;
|
|
29
29
|
}
|
|
30
|
-
`];}['render'](){var
|
|
30
|
+
`];}['render'](){var _0xd3a48d=a0_0x426b;return html`
|
|
31
31
|
<slot name="head"></slot>
|
|
32
|
-
${
|
|
33
|
-
.menus=${this[
|
|
34
|
-
.activeTopLevel=${this[
|
|
35
|
-
.activeMenu=${this[
|
|
36
|
-
.path=${this[
|
|
32
|
+
${'landscape'!==this[_0xd3a48d(0x1ce)]?html`<dynamic-menu-portrait
|
|
33
|
+
.menus=${this[_0xd3a48d(0x1c4)]}
|
|
34
|
+
.activeTopLevel=${this[_0xd3a48d(0x1dd)]}
|
|
35
|
+
.activeMenu=${this['_activeMenu']}
|
|
36
|
+
.path=${this[_0xd3a48d(0x1c8)]}
|
|
37
37
|
></dynamic-menu-portrait>`:html`<dynamic-menu-landscape
|
|
38
|
-
.menus=${this[
|
|
39
|
-
.activeTopLevel=${this[
|
|
40
|
-
.activeMenu=${this[
|
|
41
|
-
.path=${this[
|
|
38
|
+
.menus=${this[_0xd3a48d(0x1c4)]}
|
|
39
|
+
.activeTopLevel=${this['_activeTopLevel']}
|
|
40
|
+
.activeMenu=${this[_0xd3a48d(0x1c9)]}
|
|
41
|
+
.path=${this[_0xd3a48d(0x1c8)]}
|
|
42
42
|
></dynamic-menu-landscape>`}
|
|
43
43
|
<slot name="tail"></slot>
|
|
44
|
-
`;}[
|
|
44
|
+
`;}[a0_0x39d96e(0x1da)](){var _0x30f7f0=a0_0x39d96e;this['renderRoot']['addEventListener'](_0x30f7f0(0x1c6),_0x50eb28=>{var _0x49f627=_0x30f7f0;_0x50eb28[_0x49f627(0x1d9)](),_0x50eb28['preventDefault'](),this[_0x49f627(0x1dd)]=_0x50eb28[_0x49f627(0x1e2)];});}[a0_0x39d96e(0x1df)](_0x375148){var _0x42d41b=a0_0x39d96e;(_0x375148[_0x42d41b(0x1c2)](_0x42d41b(0x1c4))||_0x375148['has'](_0x42d41b(0x1cc))||_0x375148[_0x42d41b(0x1c2)]('resourceId'))&&this[_0x42d41b(0x1d4)](),_0x375148[_0x42d41b(0x1c2)](_0x42d41b(0x1ce))&&('portrait'==this[_0x42d41b(0x1ce)]?this[_0x42d41b(0x1dc)](_0x42d41b(0x1c3)):this[_0x42d41b(0x1d5)](_0x42d41b(0x1c3),!0x0)),_0x375148[_0x42d41b(0x1c2)]('slotTemplate')&&this[_0x42d41b(0x1be)](this[_0x42d41b(0x1c5)]);}[a0_0x39d96e(0x1e1)](_0x39d72e){var _0xe61845=a0_0x39d96e;this[_0xe61845(0x1cc)]=_0x39d72e[_0xe61845(0x1c7)][_0xe61845(0x1cc)],this['resourceId']=_0x39d72e[_0xe61845(0x1c7)][_0xe61845(0x1cb)],this['menus']=_0x39d72e['metaUI']['menus']||[],this['slotTemplate']=_0x39d72e[_0xe61845(0x1de)]['slotTemplate'];}[a0_0x39d96e(0x1d4)](){var _0x3ddbd2=a0_0x39d96e,_0x508505,_0x59b2ce=this[_0x3ddbd2(0x1cb)]?this[_0x3ddbd2(0x1cc)]+'/'+this['resourceId']:this['page'],_0x1d99f5=this[_0x3ddbd2(0x1c4)]||[];this[_0x3ddbd2(0x1dd)]=_0x1d99f5[_0x3ddbd2(0x1d6)](_0x32d082=>isActiveMenu(_0x32d082,_0x59b2ce)?(_0x508505=_0x32d082,!0x0):_0x32d082[_0x3ddbd2(0x1c4)]?!!(_0x508505=_0x32d082['menus']['find'](_0x2f6188=>isActiveMenu(_0x2f6188,_0x59b2ce))):void 0x0),this[_0x3ddbd2(0x1c8)]=_0x59b2ce,this[_0x3ddbd2(0x1c9)]=_0x508505||this[_0x3ddbd2(0x1dd)];}}customElements['define']('dynamic-menu-part',DynamicMenuPart);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a0_0x3190(_0x782792,_0x348e31){const _0x5d1860=a0_0x5d18();return a0_0x3190=function(_0x319030,_0x1adb7d){_0x319030=_0x319030-0x167;let _0x5ecaa5=_0x5d1860[_0x319030];return _0x5ecaa5;},a0_0x3190(_0x782792,_0x348e31);}(function(_0x12ede5,_0x4b72d3){const _0x2a86bc=a0_0x3190,_0x23e8c9=_0x12ede5();while(!![]){try{const _0x2b37bd=-parseInt(_0x2a86bc(0x168))/0x1+-parseInt(_0x2a86bc(0x16d))/0x2+parseInt(_0x2a86bc(0x170))/0x3+parseInt(_0x2a86bc(0x16b))/0x4*(parseInt(_0x2a86bc(0x16c))/0x5)+-parseInt(_0x2a86bc(0x16f))/0x6+-parseInt(_0x2a86bc(0x16a))/0x7*(-parseInt(_0x2a86bc(0x16e))/0x8)+-parseInt(_0x2a86bc(0x167))/0x9*(-parseInt(_0x2a86bc(0x169))/0xa);if(_0x2b37bd===_0x4b72d3)break;else _0x23e8c9['push'](_0x23e8c9['shift']());}catch(_0x3ca198){_0x23e8c9['push'](_0x23e8c9['shift']());}}}(a0_0x5d18,0xe7091));import{css}from'lit';export const DynamicMenuPortraitStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -125,4 +125,4 @@
|
|
|
125
125
|
font: bold 14px var(--theme-font);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
`;function
|
|
128
|
+
`;function a0_0x5d18(){const _0x1d08d7=['648UOPPrb','9357714MEcSjH','5416242QsJuwo','5805603WipnFL','1421918EDMcND','30VIbcPl','115129xBadoT','740380hzisAs','10qzErLd','3030308HrRLNG'];a0_0x5d18=function(){return _0x1d08d7;};return a0_0x5d18();}
|