@things-factory/meta-ui 6.0.97 → 6.0.99
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/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-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-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 +2 -2
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/entity/config-entity.js +29 -29
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-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/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 +84 -84
- package/client/utils/service-util.js +12 -12
- 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 +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +5 -5
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/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/translations/en.json +21 -20
- package/translations/ko.json +2 -1
- package/translations/ms.json +33 -32
- package/translations/zh.json +2 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
const a0_0x747d17=a0_0x5626;function a0_0x5626(_0x381da9,_0x52405c){const _0x364969=a0_0x3649();return a0_0x5626=function(_0x5626cc,_0x828022){_0x5626cc=_0x5626cc-0x177;let _0x30c862=_0x364969[_0x5626cc];return _0x30c862;},a0_0x5626(_0x381da9,_0x52405c);}(function(_0x53b54c,_0x380b51){const _0x54441b=a0_0x5626,_0x18cd5c=_0x53b54c();while(!![]){try{const _0x22de05=parseInt(_0x54441b(0x1f0))/0x1+parseInt(_0x54441b(0x1f2))/0x2+-parseInt(_0x54441b(0x1ec))/0x3*(-parseInt(_0x54441b(0x17e))/0x4)+-parseInt(_0x54441b(0x1b4))/0x5+-parseInt(_0x54441b(0x181))/0x6+-parseInt(_0x54441b(0x1aa))/0x7+parseInt(_0x54441b(0x1c8))/0x8;if(_0x22de05===_0x380b51)break;else _0x18cd5c['push'](_0x18cd5c['shift']());}catch(_0x3d1d75){_0x18cd5c['push'](_0x18cd5c['shift']());}}}(a0_0x3649,0x7c258));import{store}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_0x3649(){const _0x41a25a=['button.','gridPersonalizeTemplates','template','HIDDEN-PAGE','result','success\x20to\x20process','menu.id','message','active','resourceUrl','push','HOME','cancel','parent','deleteListByIds','gutter','button.delete','__dirty__','showToast','numberOfToDos','total','showGraphqlErrorResponse','success\x20to\x20save','todo-list','query','question','searchByPagination','test','routing','searchMenuGridPersnalTemplate','dirtyRecords','searchMyDynamicMenus','getSelectedIdList','find','1024464clWjqH','imex','group','text.there_is_nothing_to_delete','callScenario','path','text.nothing_changed','draft-list','xlsx','items','950445skfCXw','\x0a\x20\x20\x20\x20\x20\x20','record','showAlertPopup','menus','updateMultipleData','error','updater','forEach','filter','getCodeByEntity','runScenario','hidden','children','reduce','key','patchesForUpdateMultiple','name','text.nothing_selected','badge','3417048rtwGFN','hiddenFlag','fetch','data','menuType','_config','networkError','noteq','numberOfDrafts','confirm','arrangeMenuRoutes','selected','findOne','object','__selected__','creator','findIndex','includes','splice','code','description','exportableData','undefined','codeItems','sort','info','columns','text.are_you_sure','unshift','map','title','tText','routingType','records','value','errors','958767cxvIOe','getCodeByScenario','extensions','\x0a\x20\x20\x20\x20','127250YEeDhw','tMenu','1896434PPpgLX','type','checkClientError','showGraphqlException','iconPath','MENU','length','__seq__','split','GROUP','getCodeSelectorData','text.NOTHING_CHANGED','4RmGwUl','updateMultiple','dispatch','5863452vQeuIQ','buildArgs','numberOfApprovalPendings','SCREEN','rank','success\x20to\x20delete','category'];a0_0x3649=function(){return _0x41a25a;};return a0_0x3649();}import{UiUtil}from'./ui-util';import a0_0x53dac8 from'graphql-tag';import{ValueUtil}from'./value-util';import{asyncReplace}from'lit/directives/async-replace.js';import a0_0x47d192 from'i18next';import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';export class ServiceUtil{static async[a0_0x747d17(0x1df)](_0x46411d){return await getCodeByName(_0x46411d);}static async[a0_0x747d17(0x17c)](_0x2e5f4f){const _0x4a1cd9=a0_0x747d17;let _0x41b19a=(await ServiceUtil['codeItems'](_0x2e5f4f))['map'](_0x1f3756=>({'value':_0x1f3756['name'],'display':_0x1f3756[_0x4a1cd9(0x1dc)]}));return _0x41b19a[_0x4a1cd9(0x1e4)]({'value':'','display':''}),_0x41b19a;}static async[a0_0x747d17(0x1ed)](_0x31a8f2,_0x8ed29b){const _0x54b9cb=a0_0x747d17;let _0x6f357f=await ServiceUtil[_0x54b9cb(0x1ae)](null,_0x31a8f2,_0x8ed29b);return _0x6f357f['unshift']({'name':'','description':''}),_0x6f357f[_0x54b9cb(0x1e5)](_0x10a98a=>({'value':_0x10a98a[_0x54b9cb(0x1c5)],'display':_0x10a98a[_0x54b9cb(0x1dc)]}));}static async[a0_0x747d17(0x1be)]({queryName:_0x3f3426,codeField:_0x12b19e='name',dispField:_0x326558=a0_0x747d17(0x1dc),filters:_0x271083=[],sorters:_0x5c2464=[]}){const _0x12d5f0=a0_0x747d17;let _0x421b2d=_0x12d5f0(0x1b5)+_0x12b19e+_0x12d5f0(0x1b5)+_0x326558+_0x12d5f0(0x1ef),_0x17fcde=await ServiceUtil['searchByPagination'](_0x3f3426,_0x271083,_0x5c2464,0x0,0x0,_0x421b2d),_0x4d000f=[{'name':'','description':''}];return _0x17fcde[_0x12d5f0(0x1e9)]['forEach'](_0x3df8c1=>{const _0x2b373a=_0x12d5f0;_0x4d000f[_0x2b373a(0x192)]({'value':_0x3df8c1[_0x12b19e],'display':_0x3df8c1[_0x326558]});}),_0x4d000f;}static async['myDynamicMenus'](){const _0x38cd0c=a0_0x747d17;let _0x4433a0=await ServiceUtil[_0x38cd0c(0x1a7)]();return null!=_0x4433a0?ServiceUtil[_0x38cd0c(0x1d2)](_0x4433a0):null;}static async[a0_0x747d17(0x1a5)](_0x19d4ba){const _0x596a94=a0_0x747d17;let _0x197d4b=[{'name':_0x596a94(0x18e),'operator':'eq','value':_0x19d4ba}],_0x44186b=await ServiceUtil[_0x596a94(0x1a2)](_0x596a94(0x189),_0x197d4b,[],0x0,0x0,'id,template');return 0x0==_0x44186b['total']?{}:{'id':_0x44186b[_0x596a94(0x1e9)][0x0]['id'],'template':JSON['parse'](_0x44186b[_0x596a94(0x1e9)][0x0][_0x596a94(0x18a)])};}static['arrangeMenuRoutes'](_0x43aa36){const _0x112021=a0_0x747d17;let _0x5d02f1=[];_0x43aa36[_0x112021(0x1bc)](_0x35ecea=>{const _0x2c81b1=_0x112021;_0x5d02f1[_0x2c81b1(0x192)](_0x35ecea),_0x35ecea['children']&&(_0x35ecea[_0x2c81b1(0x1c1)][_0x2c81b1(0x1e0)](function(_0x1f566f,_0x5c3957){const _0xe09301=_0x2c81b1;return _0x1f566f[_0xe09301(0x185)]-_0x5c3957[_0xe09301(0x185)];}),_0x35ecea['children'][_0x2c81b1(0x1bc)](_0x4637ec=>{const _0x4baeda=_0x2c81b1;0x1!=_0x4637ec[_0x4baeda(0x1c9)]&&(_0x4637ec[_0x4baeda(0x195)]=_0x35ecea,_0x5d02f1[_0x4baeda(0x192)](_0x4637ec));}));});let _0x1a1078=_0x5d02f1['map'](_0x296674=>{const _0x417ff9=_0x112021;if(_0x417ff9(0x17b)==_0x296674['menuType']||'MENU'==_0x296674[_0x417ff9(0x1cc)]){let _0x3f92d9={'id':_0x296674['id'],'parent':!0x0,'name':TermsUtil[_0x417ff9(0x1f1)](_0x296674[_0x417ff9(0x1c5)]),'icon':_0x296674['iconPath'],'type':'GROUP'==_0x296674[_0x417ff9(0x1cc)]?'group':'','menus':[]};return _0x296674[_0x417ff9(0x1a4)]&&(_0x3f92d9[_0x417ff9(0x1af)]=_0x296674[_0x417ff9(0x1a4)]),_0x3f92d9;}return{'id':'0'};})[_0x112021(0x1bd)](_0x4e3bf9=>'0'!=_0x4e3bf9['id']),_0x23ebed=_0x5d02f1[_0x112021(0x1e5)](_0x188577=>{const _0x4db991=_0x112021;if(_0x4db991(0x184)==_0x188577[_0x4db991(0x1cc)]||_0x4db991(0x18b)==_0x188577[_0x4db991(0x1cc)]){let _0x53af9f=_0x1a1078[_0x4db991(0x1a9)](_0x4482eb=>_0x4482eb['id']==_0x188577['parent']['id']);if(_0x53af9f){let _0x41b938=TermsUtil['tMenu'](_0x188577[_0x4db991(0x1c5)]);return'SCREEN'==_0x188577['menuType']&&_0x53af9f['menus']['push']({'id':_0x188577['id'],'name':_0x41b938,'path':_0x188577[_0x4db991(0x1a4)],'icon':_0x188577[_0x4db991(0x1f6)]}),{'id':_0x188577['id'],'parent':!0x1,'parent_id':_0x53af9f['id'],'title':_0x41b938,'tagname':_0x188577['category'],'page':_0x188577[_0x4db991(0x1a4)],'template':_0x188577[_0x4db991(0x191)],'routing_type':_0x188577['routingType']};}return{'id':'0'};}return _0x4db991(0x193)==_0x188577[_0x4db991(0x1cc)]?{'id':_0x188577['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil[_0x4db991(0x1f1)](_0x188577[_0x4db991(0x1c5)]),'tagname':_0x188577[_0x4db991(0x187)],'page':_0x188577['routing'],'template':_0x188577[_0x4db991(0x191)],'routing_type':_0x188577[_0x4db991(0x1e8)]}:{'id':'0'};})[_0x112021(0x1bd)](_0x5ab4d0=>null!=_0x5ab4d0&&'0'!=_0x5ab4d0['id']);_0x1a1078[_0x112021(0x1bd)](_0x1fce6b=>_0x112021(0x1ac)==_0x1fce6b[_0x112021(0x1f3)]&&_0x1fce6b['menus']&&_0x1fce6b[_0x112021(0x1b8)][_0x112021(0x178)]>0x0)[_0x112021(0x1bc)](_0x4c35c2=>{const _0x46ec66=_0x112021;let _0x640cab=_0x1a1078[_0x46ec66(0x1d8)](_0x3a8e8d=>_0x3a8e8d['id']==_0x4c35c2['id'])+0x1;_0x1a1078[_0x46ec66(0x1da)](_0x640cab,0x0,..._0x4c35c2[_0x46ec66(0x1b8)]);});let _0x25ee00=0x0;return _0x1a1078[_0x112021(0x1bc)](_0x1bb235=>{const _0x64d7f=_0x112021;_0x64d7f(0x19f)==_0x1bb235['path']?(_0x25ee00++,_0x1bb235[_0x64d7f(0x1c7)]=()=>asyncReplace(generateActivitySummary(_0x64d7f(0x19b))),_0x1bb235['active']=({path:_0x548beb})=>/^activity\//[_0x64d7f(0x1a3)](_0x548beb)):'approval-pending-list'==_0x1bb235[_0x64d7f(0x1af)]?(_0x25ee00++,_0x1bb235[_0x64d7f(0x1c7)]=()=>asyncReplace(generateActivitySummary(_0x64d7f(0x183))),_0x1bb235[_0x64d7f(0x190)]=({path:_0x4a0577})=>/^activity\//['test'](_0x4a0577)):_0x64d7f(0x1b1)==_0x1bb235[_0x64d7f(0x1af)]&&(_0x25ee00++,_0x1bb235['badge']=()=>asyncReplace(generateActivitySummary(_0x64d7f(0x1d0))));}),_0x25ee00>0x0&&startSubscribeActivitySummary(),{'menus':_0x1a1078,'routes':_0x23ebed};}static async['searchMyDynamicMenus'](){const _0x12cf2d=a0_0x747d17;let _0x23398b=await ServiceUtil['searchByPagination'](_0x12cf2d(0x1b8),[{'name':_0x12cf2d(0x1c9),'operator':_0x12cf2d(0x1cf),'value':!0x0},{'name':'menuType','operator':'in','value':[_0x12cf2d(0x193),_0x12cf2d(0x177),'GROUP']}],[{'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 _0x23398b?_0x23398b[_0x12cf2d(0x1e9)]:[];}static async[a0_0x747d17(0x19d)](_0x1a8a9f){const _0x38972e=a0_0x747d17;if(_0x1a8a9f[_0x38972e(0x1eb)]&&_0x1a8a9f['errors'][_0x38972e(0x178)]>0x0){let _0x18f52e=_0x1a8a9f[_0x38972e(0x1eb)][0x0],_0x42db9a=_0x18f52e['message'],_0x33a82d=_0x18f52e['message'];_0x18f52e[_0x38972e(0x1ee)]&&(_0x33a82d=_0x18f52e[_0x38972e(0x1ee)][_0x38972e(0x1db)]),await UiUtil[_0x38972e(0x1b7)](_0x33a82d,_0x42db9a,_0x38972e(0x1ba),_0x38972e(0x1d1));}}static async[a0_0x747d17(0x1f5)](_0x4e3d42){const _0x2b3658=a0_0x747d17;_0x4e3d42&&(_0x4e3d42[_0x2b3658(0x1ce)]&&_0x4e3d42[_0x2b3658(0x1ce)][_0x2b3658(0x18c)]?await ServiceUtil[_0x2b3658(0x19d)](_0x4e3d42[_0x2b3658(0x1ce)][_0x2b3658(0x18c)]):await UiUtil[_0x2b3658(0x1b7)]('Graphql\x20Error',_0x4e3d42[_0x2b3658(0x18f)],'error',_0x2b3658(0x1d1)));}static async[a0_0x747d17(0x1dd)](_0x26834e,_0x17d81d,_0x594bf3){const _0x28a745=a0_0x747d17;var _0x2b05c4=_0x594bf3[_0x28a745(0x1cd)][_0x28a745(0x1e2)][_0x28a745(0x1bd)](_0x3bd026=>'gutter'!==_0x3bd026[_0x28a745(0x1f3)]&&void 0x0!==_0x3bd026[_0x28a745(0x1b6)]&&void 0x0!==_0x3bd026[_0x28a745(0x1ab)]&&!0x0!==_0x3bd026[_0x28a745(0x1c0)])['map'](_0x162c2a=>_0x162c2a[_0x28a745(0x1ab)]),_0x2624bd=_0x594bf3['data'][_0x28a745(0x1e9)][_0x28a745(0x1e5)](_0xed8856=>({..._0x594bf3['_config'][_0x28a745(0x1e2)][_0x28a745(0x1bd)](_0x54c9e4=>_0x28a745(0x197)!==_0x54c9e4['type']&&void 0x0!==_0x54c9e4[_0x28a745(0x1b6)]&&void 0x0!==_0x54c9e4[_0x28a745(0x1ab)]&&!0x0!==_0x54c9e4[_0x28a745(0x1c0)])[_0x28a745(0x1c2)]((_0xbc3d4c,_0x350c79)=>(_0xbc3d4c[_0x350c79[_0x28a745(0x1ab)][_0x28a745(0x1c3)]]=_0x350c79[_0x28a745(0x1ab)][_0x28a745(0x1c3)][_0x28a745(0x17a)]('.')[_0x28a745(0x1c2)]((_0x29363b,_0x14c84f)=>_0x29363b&&_0x28a745(0x1de)!==_0x29363b[_0x14c84f]?_0x29363b[_0x14c84f]:void 0x0,_0xed8856),_0xbc3d4c),{})}));if(!_0x26834e)return{'header':_0x2b05c4,'data':_0x2624bd};store[_0x28a745(0x180)]({'type':EXPORT,'exportable':{'extension':_0x28a745(0x1b2),'name':_0x17d81d,'data':{'header':_0x2b05c4,'data':_0x2624bd}}});}static async[a0_0x747d17(0x1a2)](_0x33a77f,_0x442a73,_0x50a3a4,_0x4f9cc0,_0x5eb812,_0x335c4d){const _0x3ff9be=a0_0x747d17;try{const _0x400a75=await client[_0x3ff9be(0x1a0)]({'query':a0_0x53dac8`
|
|
1
|
+
const a0_0x55f378=a0_0x5354;(function(_0x3f2201,_0x23919d){const _0x5b7f3e=a0_0x5354,_0x3e0864=_0x3f2201();while(!![]){try{const _0xfd0ca2=parseInt(_0x5b7f3e(0x14e))/0x1*(-parseInt(_0x5b7f3e(0x151))/0x2)+parseInt(_0x5b7f3e(0x15e))/0x3+parseInt(_0x5b7f3e(0x1a9))/0x4*(parseInt(_0x5b7f3e(0x18a))/0x5)+parseInt(_0x5b7f3e(0x17d))/0x6+parseInt(_0x5b7f3e(0x171))/0x7+-parseInt(_0x5b7f3e(0x194))/0x8+-parseInt(_0x5b7f3e(0x189))/0x9;if(_0xfd0ca2===_0x23919d)break;else _0x3e0864['push'](_0x3e0864['shift']());}catch(_0x75a35c){_0x3e0864['push'](_0x3e0864['shift']());}}}(a0_0x4c05,0xd8e61));import{store}from'@things-factory/shell';import{getCodeByName}from'@things-factory/code-base';import{EXPORT}from'@things-factory/export-base';import{gqlBuilder}from'@things-factory/utils';function a0_0x4c05(){const _0x2121e8=['gridPersonalizeTemplates','iconPath','text.NOTHING_CHANGED','text.there_is_nothing_to_delete','hidden','parent','rank','reduce','confirm','query','\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','text.nothing_changed','10405dBpzJa','GROUP','success\x20to\x20delete','102nUFZYh','text.nothing_selected','__dirty__','buildArgs','children','myDynamicMenus','deleteListByGristSelected','getCodeByEntity','imex','key','\x0a\x20\x20\x20\x20','menus','updateMultiple','3900807McPEIK','HIDDEN-PAGE','success\x20to\x20save','getCodeSelectorData','records','resourceUrl','length','xlsx','HOME','description','hiddenFlag','extensions','record','unshift','searchByPagination','numberOfApprovalPendings','runScenario','__dirtyfields__','MENU','12262180OJNVWg','callScenario','category','push','networkError','\x0a\x20\x20\x20\x20\x20\x20','message','fetch','creator','routingType','SCREEN','noteq','6102630EZMBnD','menuType','numberOfToDos','errors','__selected__','badge','updateMultipleData','forEach','data','searchMenuGridPersnalTemplate','showAlertPopup','isNotEmpty','37107972ZIFiFA','35mIHtKF','question','columns','info','tMenu','result','arrangeMenuRoutes','total','tText','undefined','967456SoWNtu','dirtyRecords','gutter','group','title','sort','approval-pending-list','updatedAt','active','codeItems','delete','name','filter','split','exportableData','path','success\x20to\x20process','getSelectedIdList','_config','patchesForUpdateMultiple','type','910856ekcfaF','deleteListByIds','findOne','todo-list','includes','cuFlag','showGraphqlException','text.are_you_sure','selected','routing','test','getCodeByScenario','splice','showToast','map','showGraphqlErrorResponse','checkClientError','error'];a0_0x4c05=function(){return _0x2121e8;};return a0_0x4c05();}import{client}from'@operato/graphql';import{TermsUtil}from'./terms-util';import{UiUtil}from'./ui-util';function a0_0x5354(_0x3f9ff5,_0x452703){const _0x4c0509=a0_0x4c05();return a0_0x5354=function(_0x535470,_0x24ee48){_0x535470=_0x535470-0x14c;let _0x10a913=_0x4c0509[_0x535470];return _0x10a913;},a0_0x5354(_0x3f9ff5,_0x452703);}import a0_0x1d1f4e from'graphql-tag';import{ValueUtil}from'./value-util';import{asyncReplace}from'lit/directives/async-replace.js';import a0_0x2293c2 from'i18next';import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';export class ServiceUtil{static async['codeItems'](_0x23dbc4){return await getCodeByName(_0x23dbc4);}static async[a0_0x55f378(0x161)](_0x5b0df){const _0x2931a3=a0_0x55f378;let _0x5380b5=(await ServiceUtil[_0x2931a3(0x19d)](_0x5b0df))[_0x2931a3(0x1b7)](_0x1ffec5=>({'value':_0x1ffec5[_0x2931a3(0x19f)],'display':_0x1ffec5[_0x2931a3(0x167)]}));return _0x5380b5[_0x2931a3(0x16b)]({'value':'','display':''}),_0x5380b5;}static async[a0_0x55f378(0x1b4)](_0x45da14,_0x51d5e4){const _0x33c85c=a0_0x55f378;let _0x265f58=await ServiceUtil[_0x33c85c(0x172)](null,_0x45da14,_0x51d5e4);return _0x265f58[_0x33c85c(0x16b)]({'name':'','description':''}),_0x265f58['map'](_0xca132f=>({'value':_0xca132f[_0x33c85c(0x19f)],'display':_0xca132f[_0x33c85c(0x167)]}));}static async[a0_0x55f378(0x158)]({queryName:_0x3aa9e3,codeField:_0x3f89e0='name',dispField:_0x433b09='description',filters:_0xf4692b=[],sorters:_0x10550d=[]}){const _0x12fe82=a0_0x55f378;let _0x5ebe70='\x0a\x20\x20\x20\x20\x20\x20'+_0x3f89e0+_0x12fe82(0x176)+_0x433b09+_0x12fe82(0x15b),_0x3ae556=await ServiceUtil[_0x12fe82(0x16c)](_0x3aa9e3,_0xf4692b,_0x10550d,0x0,0x0,_0x5ebe70),_0x46a3b8=[{'name':'','description':''}];return _0x3ae556['records']['forEach'](_0x40a6ba=>{const _0x19adb7=_0x12fe82;_0x46a3b8[_0x19adb7(0x174)]({'value':_0x40a6ba[_0x3f89e0],'display':_0x40a6ba[_0x433b09]});}),_0x46a3b8;}static async[a0_0x55f378(0x156)](){const _0x53fd48=a0_0x55f378;let _0x207658=await ServiceUtil['searchMyDynamicMenus']();return null!=_0x207658?ServiceUtil[_0x53fd48(0x190)](_0x207658):null;}static async[a0_0x55f378(0x186)](_0x4c9bfb){const _0x378e7f=a0_0x55f378;let _0x50fc9b=[{'name':'menu.id','operator':'eq','value':_0x4c9bfb}],_0x3ded5f=await ServiceUtil[_0x378e7f(0x16c)](_0x378e7f(0x1bb),_0x50fc9b,[],0x0,0x0,'id,template');return 0x0==_0x3ded5f[_0x378e7f(0x191)]?{}:{'id':_0x3ded5f[_0x378e7f(0x162)][0x0]['id'],'template':JSON['parse'](_0x3ded5f['records'][0x0]['template'])};}static[a0_0x55f378(0x190)](_0x2c0eb1){const _0xe73ca2=a0_0x55f378;let _0x49847d=[];_0x2c0eb1[_0xe73ca2(0x184)](_0x333b23=>{const _0x322abb=_0xe73ca2;_0x49847d['push'](_0x333b23),_0x333b23['children']&&(_0x333b23[_0x322abb(0x155)][_0x322abb(0x199)](function(_0x1275a7,_0x4d931b){const _0x150ba9=_0x322abb;return _0x1275a7[_0x150ba9(0x1c1)]-_0x4d931b[_0x150ba9(0x1c1)];}),_0x333b23['children']['forEach'](_0x4bca33=>{0x1!=_0x4bca33['hiddenFlag']&&(_0x4bca33['parent']=_0x333b23,_0x49847d['push'](_0x4bca33));}));});let _0x544c1c=_0x49847d['map'](_0x4ebe96=>{const _0x220683=_0xe73ca2;if(_0x220683(0x14f)==_0x4ebe96[_0x220683(0x17e)]||_0x220683(0x170)==_0x4ebe96[_0x220683(0x17e)]){let _0xe52b3d={'id':_0x4ebe96['id'],'parent':!0x0,'name':TermsUtil[_0x220683(0x18e)](_0x4ebe96[_0x220683(0x19f)]),'icon':_0x4ebe96[_0x220683(0x1bc)],'type':_0x220683(0x14f)==_0x4ebe96[_0x220683(0x17e)]?'group':'','menus':[]};return _0x4ebe96[_0x220683(0x1b2)]&&(_0xe52b3d[_0x220683(0x1a3)]=_0x4ebe96['routing']),_0xe52b3d;}return{'id':'0'};})['filter'](_0x54beca=>'0'!=_0x54beca['id']),_0x3e4aa7=_0x49847d[_0xe73ca2(0x1b7)](_0x4191d4=>{const _0x5f9768=_0xe73ca2;if('SCREEN'==_0x4191d4['menuType']||_0x5f9768(0x15f)==_0x4191d4[_0x5f9768(0x17e)]){let _0xcf121=_0x544c1c['find'](_0x381e6c=>_0x381e6c['id']==_0x4191d4[_0x5f9768(0x1c0)]['id']);if(_0xcf121){let _0x580cc2=TermsUtil[_0x5f9768(0x18e)](_0x4191d4['name']);return _0x5f9768(0x17b)==_0x4191d4[_0x5f9768(0x17e)]&&_0xcf121[_0x5f9768(0x15c)][_0x5f9768(0x174)]({'id':_0x4191d4['id'],'name':_0x580cc2,'path':_0x4191d4['routing'],'icon':_0x4191d4[_0x5f9768(0x1bc)]}),{'id':_0x4191d4['id'],'parent':!0x1,'parent_id':_0xcf121['id'],'title':_0x580cc2,'tagname':_0x4191d4[_0x5f9768(0x173)],'page':_0x4191d4[_0x5f9768(0x1b2)],'template':_0x4191d4['resourceUrl'],'routing_type':_0x4191d4['routingType']};}return{'id':'0'};}return _0x5f9768(0x166)==_0x4191d4['menuType']?{'id':_0x4191d4['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil['tMenu'](_0x4191d4[_0x5f9768(0x19f)]),'tagname':_0x4191d4[_0x5f9768(0x173)],'page':_0x4191d4[_0x5f9768(0x1b2)],'template':_0x4191d4[_0x5f9768(0x163)],'routing_type':_0x4191d4[_0x5f9768(0x17a)]}:{'id':'0'};})[_0xe73ca2(0x1a0)](_0x53f62c=>null!=_0x53f62c&&'0'!=_0x53f62c['id']);_0x544c1c[_0xe73ca2(0x1a0)](_0x329a10=>_0xe73ca2(0x197)==_0x329a10[_0xe73ca2(0x1a8)]&&_0x329a10[_0xe73ca2(0x15c)]&&_0x329a10[_0xe73ca2(0x15c)][_0xe73ca2(0x164)]>0x0)[_0xe73ca2(0x184)](_0xd13fe8=>{const _0x194c5e=_0xe73ca2;let _0x31893b=_0x544c1c['findIndex'](_0x4f0a62=>_0x4f0a62['id']==_0xd13fe8['id'])+0x1;_0x544c1c[_0x194c5e(0x1b5)](_0x31893b,0x0,..._0xd13fe8[_0x194c5e(0x15c)]);});let _0x186826=0x0;return _0x544c1c[_0xe73ca2(0x184)](_0x3371c1=>{const _0x26d975=_0xe73ca2;_0x26d975(0x1ac)==_0x3371c1[_0x26d975(0x1a3)]?(_0x186826++,_0x3371c1['badge']=()=>asyncReplace(generateActivitySummary(_0x26d975(0x17f))),_0x3371c1['active']=({path:_0x4d8557})=>/^activity\//['test'](_0x4d8557)):_0x26d975(0x19a)==_0x3371c1[_0x26d975(0x1a3)]?(_0x186826++,_0x3371c1[_0x26d975(0x182)]=()=>asyncReplace(generateActivitySummary(_0x26d975(0x16d))),_0x3371c1[_0x26d975(0x19c)]=({path:_0x266421})=>/^activity\//[_0x26d975(0x1b3)](_0x266421)):'draft-list'==_0x3371c1[_0x26d975(0x1a3)]&&(_0x186826++,_0x3371c1[_0x26d975(0x182)]=()=>asyncReplace(generateActivitySummary('numberOfDrafts')));}),_0x186826>0x0&&startSubscribeActivitySummary(),{'menus':_0x544c1c,'routes':_0x3e4aa7};}static async['searchMyDynamicMenus'](){const _0x595419=a0_0x55f378;let _0x3eb2bf=await ServiceUtil[_0x595419(0x16c)](_0x595419(0x15c),[{'name':_0x595419(0x168),'operator':_0x595419(0x17c),'value':!0x0},{'name':_0x595419(0x17e),'operator':'in','value':[_0x595419(0x166),_0x595419(0x170),_0x595419(0x14f)]}],[{'name':_0x595419(0x1c1)}],0x0,0x0,_0x595419(0x14c));return _0x3eb2bf?_0x3eb2bf['records']:[];}static async[a0_0x55f378(0x1b8)](_0xb9595){const _0x3f0162=a0_0x55f378;if(_0xb9595[_0x3f0162(0x180)]&&_0xb9595['errors'][_0x3f0162(0x164)]>0x0){let _0x54b869=_0xb9595['errors'][0x0],_0x35b83d=_0x54b869[_0x3f0162(0x177)],_0x5875e7=_0x54b869[_0x3f0162(0x177)];_0x54b869[_0x3f0162(0x169)]&&(_0x5875e7=_0x54b869[_0x3f0162(0x169)]['code']),await UiUtil[_0x3f0162(0x187)](_0x5875e7,_0x35b83d,_0x3f0162(0x1ba),_0x3f0162(0x1c3));}}static async[a0_0x55f378(0x1af)](_0x3867e3){const _0x13ed70=a0_0x55f378;_0x3867e3&&(_0x3867e3[_0x13ed70(0x175)]&&_0x3867e3[_0x13ed70(0x175)][_0x13ed70(0x18f)]?await ServiceUtil['showGraphqlErrorResponse'](_0x3867e3[_0x13ed70(0x175)][_0x13ed70(0x18f)]):await UiUtil[_0x13ed70(0x187)]('Graphql\x20Error',_0x3867e3['message'],_0x13ed70(0x1ba),_0x13ed70(0x1c3)));}static async[a0_0x55f378(0x1a2)](_0xb96718,_0x36103b,_0x25aa87){const _0x3d3e0d=a0_0x55f378;var _0x2bd371=_0x25aa87['_config'][_0x3d3e0d(0x18c)][_0x3d3e0d(0x1a0)](_0x3a4923=>'gutter'!==_0x3a4923['type']&&void 0x0!==_0x3a4923[_0x3d3e0d(0x16a)]&&void 0x0!==_0x3a4923['imex']&&!0x0!==_0x3a4923[_0x3d3e0d(0x1bf)])[_0x3d3e0d(0x1b7)](_0x3cae90=>_0x3cae90[_0x3d3e0d(0x159)]),_0x51f23e=_0x25aa87[_0x3d3e0d(0x185)][_0x3d3e0d(0x162)]['map'](_0x215604=>({..._0x25aa87[_0x3d3e0d(0x1a6)]['columns']['filter'](_0x134f47=>_0x3d3e0d(0x196)!==_0x134f47[_0x3d3e0d(0x1a8)]&&void 0x0!==_0x134f47[_0x3d3e0d(0x16a)]&&void 0x0!==_0x134f47[_0x3d3e0d(0x159)]&&!0x0!==_0x134f47[_0x3d3e0d(0x1bf)])[_0x3d3e0d(0x1c2)]((_0x1068c8,_0x248743)=>(_0x1068c8[_0x248743[_0x3d3e0d(0x159)][_0x3d3e0d(0x15a)]]=_0x248743[_0x3d3e0d(0x159)]['key'][_0x3d3e0d(0x1a1)]('.')['reduce']((_0x15bee2,_0x2cadf1)=>_0x15bee2&&_0x3d3e0d(0x193)!==_0x15bee2[_0x2cadf1]?_0x15bee2[_0x2cadf1]:void 0x0,_0x215604),_0x1068c8),{})}));if(!_0xb96718)return{'header':_0x2bd371,'data':_0x51f23e};store['dispatch']({'type':EXPORT,'exportable':{'extension':_0x3d3e0d(0x165),'name':_0x36103b,'data':{'header':_0x2bd371,'data':_0x51f23e}}});}static async[a0_0x55f378(0x16c)](_0x1aa226,_0x25effa,_0x229e70,_0x4dc7be,_0x3bb910,_0x1bcb2b){const _0x558d9d=a0_0x55f378;try{const _0x5c2222=await client[_0x558d9d(0x1c4)]({'query':a0_0x1d1f4e`
|
|
2
2
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
3
|
-
${
|
|
3
|
+
${_0x1aa226}(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
4
4
|
items {
|
|
5
|
-
${
|
|
5
|
+
${_0x1bcb2b}
|
|
6
6
|
}
|
|
7
7
|
total
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
`,'variables':{'filters':
|
|
10
|
+
`,'variables':{'filters':_0x25effa,'sortings':_0x229e70,'pagination':{'page':_0x4dc7be,'limit':_0x3bb910}}});if(!_0x5c2222[_0x558d9d(0x180)])return{'records':_0x5c2222['data'][_0x1aa226]['items'],'total':_0x5c2222[_0x558d9d(0x185)][_0x1aa226][_0x558d9d(0x191)]};ServiceUtil['showGraphqlErrorResponse'](_0x5c2222);}catch(_0x4ffc76){ServiceUtil['showGraphqlException'](_0x4ffc76);}return null;}static async[a0_0x55f378(0x1ab)](_0x543d50,_0x31758c,_0x15797a){const _0x1df160=a0_0x55f378;try{let _0x2e6050=await client[_0x1df160(0x1c4)]({'query':a0_0x1d1f4e`
|
|
11
11
|
query ($id: String!) {
|
|
12
|
-
${
|
|
13
|
-
${
|
|
12
|
+
${_0x543d50}(id: $id) {
|
|
13
|
+
${_0x15797a}
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
`,'variables':{'id':
|
|
16
|
+
`,'variables':{'id':_0x31758c}});if(!_0x2e6050[_0x1df160(0x180)])return _0x2e6050['data'][_0x543d50]||{};ServiceUtil[_0x1df160(0x1b8)](_0x2e6050);}catch(_0x30133f){ServiceUtil[_0x1df160(0x1af)](_0x30133f);}return null;}static[a0_0x55f378(0x1a5)](_0x48598b,_0x5c8e03){const _0x91798a=a0_0x55f378,_0x31b63b=_0x48598b[_0x91798a(0x1b1)][_0x91798a(0x1b7)](_0x5b3915=>_0x5b3915['id']);return ValueUtil['isEmpty'](_0x31b63b)&&0x1==_0x5c8e03&&UiUtil['showAlertPopup'](_0x91798a(0x152),_0x91798a(0x1be),_0x91798a(0x18d),_0x91798a(0x1c3)),_0x31b63b;}static async[a0_0x55f378(0x157)](_0x335444,_0x3c852e){const _0x3e0bf6=a0_0x55f378;let _0x5b5e9c=ServiceUtil[_0x3e0bf6(0x1a5)](_0x335444,!0x0);ValueUtil[_0x3e0bf6(0x188)](_0x5b5e9c)&&(await ServiceUtil[_0x3e0bf6(0x1aa)](_0x5b5e9c,_0x3c852e)&&_0x335444['fetch']());}static async['deleteListByIds'](_0x3b00b0,_0x41193a){const _0xf28e2d=a0_0x55f378;if(!(await UiUtil[_0xf28e2d(0x187)]('button.delete','text.are_you_sure',_0xf28e2d(0x18b),_0xf28e2d(0x19e),'cancel'))['value'])return!0x1;try{const _0x5d9f35=await client[_0xf28e2d(0x1c4)]({'query':a0_0x1d1f4e`
|
|
17
17
|
mutation {
|
|
18
|
-
${
|
|
18
|
+
${_0x41193a}(${gqlBuilder[_0xf28e2d(0x154)]({'ids':_0x3b00b0})})
|
|
19
19
|
}
|
|
20
|
-
`});if(!
|
|
20
|
+
`});if(!_0x5d9f35[_0xf28e2d(0x180)])return UiUtil[_0xf28e2d(0x1b6)]('info',TermsUtil[_0xf28e2d(0x192)](_0xf28e2d(0x150))),!0x0;ServiceUtil['showGraphqlErrorResponse'](_0x5d9f35);}catch(_0x2fdd05){ServiceUtil['showGraphqlException'](_0x2fdd05);}return!0x1;}static async[a0_0x55f378(0x183)](_0x340732,_0x25cf84){const _0xbcc685=a0_0x55f378;let _0x426634=ServiceUtil[_0xbcc685(0x1a7)](_0x340732);if(ValueUtil[_0xbcc685(0x188)](_0x426634)){let _0x22d7d1=await ServiceUtil[_0xbcc685(0x15d)](_0x25cf84,_0x426634);if(_0x22d7d1)return _0x340732[_0xbcc685(0x178)](),_0x22d7d1;}return!0x1;}static async[a0_0x55f378(0x15d)](_0x13b4d8,_0x4b7e55){const _0x98ef50=a0_0x55f378;try{const _0x43dbe4=await client[_0x98ef50(0x1c4)]({'query':a0_0x1d1f4e`
|
|
21
21
|
mutation {
|
|
22
|
-
${
|
|
22
|
+
${_0x13b4d8}(${gqlBuilder['buildArgs']({'patches':_0x4b7e55})}) {
|
|
23
23
|
id
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,'context':{'hasUpload':!0x0}});if(!
|
|
26
|
+
`,'context':{'hasUpload':!0x0}});if(!_0x43dbe4[_0x98ef50(0x180)])return UiUtil[_0x98ef50(0x1b6)](_0x98ef50(0x18d),TermsUtil[_0x98ef50(0x192)](_0x98ef50(0x160))),!0x0;ServiceUtil['showGraphqlErrorResponse'](_0x43dbe4);}catch(_0x3cc5e3){ServiceUtil[_0x98ef50(0x1af)](_0x3cc5e3);}return!0x1;}static[a0_0x55f378(0x1a7)](_0x1f8f60,_0x3be504=!0x1){const _0x5ec269=a0_0x55f378;let _0x16e6bb=_0x1f8f60[_0x5ec269(0x195)];if(_0x16e6bb&&0x0!=_0x16e6bb[_0x5ec269(0x164)])return _0x16e6bb[_0x5ec269(0x1b7)](_0x4426f0=>{const _0x52b7f2=_0x5ec269;let _0x3a973b=_0x4426f0['id']?{'id':_0x4426f0['id']}:{};for(let _0x5ebd07 in _0x4426f0)[_0x52b7f2(0x179),'updater','createdAt',_0x52b7f2(0x19b),_0x52b7f2(0x153),_0x52b7f2(0x16f),'__origin__','__seq__',_0x52b7f2(0x181)][_0x52b7f2(0x1ad)](_0x5ebd07)||(_0x4426f0[_0x5ebd07]&&'object'==typeof _0x4426f0[_0x5ebd07]&&0x0==_0x3be504?_0x3a973b[_0x5ebd07]={'id':_0x4426f0[_0x5ebd07]['id']}:_0x3a973b[_0x5ebd07]=_0x4426f0[_0x5ebd07]);return _0x3a973b[_0x52b7f2(0x1ae)]=_0x4426f0['__dirty__'],_0x3a973b;});UiUtil[_0x5ec269(0x187)](_0x5ec269(0x14d),_0x5ec269(0x1bd),_0x5ec269(0x18d),_0x5ec269(0x1c3));}static async[a0_0x55f378(0x172)](_0x254609,_0x52412f,_0x3b1e66){const _0xc7e2d5=a0_0x55f378;let _0x5efd84=!0x0;_0x254609&&(_0x5efd84=(await UiUtil[_0xc7e2d5(0x187)]('button.'+_0x254609,_0xc7e2d5(0x1b0),_0xc7e2d5(0x18b),'confirm','cancel'))['value']);if(_0x5efd84)try{const _0x56006c=await client['query']({'query':a0_0x1d1f4e`
|
|
27
27
|
mutation ($scenarioName: String!, $variables: Object) {
|
|
28
28
|
runScenario(scenarioName: $scenarioName, variables: $variables) {
|
|
29
29
|
state
|
|
@@ -32,4 +32,4 @@ const a0_0x747d17=a0_0x5626;function a0_0x5626(_0x381da9,_0x52405c){const _0x364
|
|
|
32
32
|
__typename
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
`,'variables':{'scenarioName':
|
|
35
|
+
`,'variables':{'scenarioName':_0x52412f,'variables':_0x3b1e66}});if(_0x56006c[_0xc7e2d5(0x180)])ServiceUtil[_0xc7e2d5(0x1b8)](_0x56006c);else{if(this[_0xc7e2d5(0x1b9)](_0x56006c))return UiUtil['showToast'](_0xc7e2d5(0x18d),TermsUtil[_0xc7e2d5(0x192)](_0xc7e2d5(0x1a4))),_0x56006c;}}catch(_0xf325e8){ServiceUtil[_0xc7e2d5(0x1af)](_0xf325e8);}return!0x1;}static[a0_0x55f378(0x1b9)](_0x4b4d7e){const _0x171211=a0_0x55f378;if(_0x4b4d7e&&_0x4b4d7e[_0x171211(0x185)]&&_0x4b4d7e[_0x171211(0x185)][_0x171211(0x16e)]&&_0x4b4d7e[_0x171211(0x185)][_0x171211(0x16e)]['data']&&_0x4b4d7e[_0x171211(0x185)]['runScenario'][_0x171211(0x185)][_0x171211(0x1ba)]){let _0x1c9fef=_0x4b4d7e['data']['runScenario'][_0x171211(0x185)][_0x171211(0x1ba)];return UiUtil[_0x171211(0x187)](_0x1c9fef[_0x171211(0x198)],_0x1c9fef['message'],_0x171211(0x1ba),_0x171211(0x1c3)),!0x1;}return!0x0;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5b5e93=a0_0x37de;(function(_0x15121b,_0x2f8089){const _0x46954b=a0_0x37de,_0x4e6eee=_0x15121b();while(!![]){try{const _0x4c6b22=-parseInt(_0x46954b(0x147))/0x1+parseInt(_0x46954b(0x15c))/0x2*(-parseInt(_0x46954b(0x15b))/0x3)+parseInt(_0x46954b(0x149))/0x4*(parseInt(_0x46954b(0x145))/0x5)+parseInt(_0x46954b(0x139))/0x6*(parseInt(_0x46954b(0x135))/0x7)+parseInt(_0x46954b(0x151))/0x8+-parseInt(_0x46954b(0x159))/0x9*(-parseInt(_0x46954b(0x13b))/0xa)+-parseInt(_0x46954b(0x144))/0xb*(parseInt(_0x46954b(0x13d))/0xc);if(_0x4c6b22===_0x2f8089)break;else _0x4e6eee['push'](_0x4e6eee['shift']());}catch(_0x3f8983){_0x4e6eee['push'](_0x4e6eee['shift']());}}}(a0_0x4e87,0x56606));import a0_0x248034 from'graphql-tag';import{client}from'@operato/graphql';function a0_0x37de(_0x22b9d0,_0x370211){const _0x4e8738=a0_0x4e87();return a0_0x37de=function(_0x37de8a,_0x1b38b5){_0x37de8a=_0x37de8a-0x135;let _0xd619ed=_0x4e8738[_0x37de8a];return _0xd619ed;},a0_0x37de(_0x22b9d0,_0x370211);}function a0_0x4e87(){const _0x207bc8=['24147dTriyP','category','69852yXZwqO','30qFkVhw','menu','72415tCweLk','META_TERMS','name','forEach','210SAuiBu','locale','310jNIqWy','tMenu','34332NHiDQp','tButton','text','tError','total','label','replace','121WpPMOZ','45nFFPkv','items','158899ZROHPU','length','91228UVqNav','button','tTitle','display','translate','fetchTerminologies','data','keys','1943336zsbTji','records','tLabel','error','tText','tField','terminologies','title'];a0_0x4e87=function(){return _0x207bc8;};return a0_0x4e87();}import{i18next}from'@operato/i18n';export class TermsUtil{['META_TERMS']=null;static async['downloadTerminologies'](_0x100f4c){const _0x28e016=a0_0x37de;let _0x525748=(await TermsUtil['fetchTerminologies'](_0x100f4c))[_0x28e016(0x152)];_0x525748&&_0x525748[_0x28e016(0x148)]>0x0&&(this[_0x28e016(0x136)]={},_0x525748['forEach'](_0x17a9bb=>{const _0x225167=_0x28e016;let _0x55060a=_0x17a9bb[_0x225167(0x15a)]+'.'+_0x17a9bb[_0x225167(0x137)];this['META_TERMS'][_0x55060a]=_0x17a9bb[_0x225167(0x14c)];}));}static async[a0_0x5b5e93(0x14e)](_0x5c3259){const _0x1c21c5=a0_0x5b5e93;let _0xa57b03=[{'name':_0x1c21c5(0x13a),'operator':'eq','value':_0x5c3259}];const _0x2fb5ce=await client['query']({'query':a0_0x248034`
|
|
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_0x21c6bf=a0_0x48b1;(function(_0x5b6a63,_0x495601){const _0x4d12cd=a0_0x
|
|
|
11
11
|
total
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
`,'variables':{'filters':
|
|
14
|
+
`,'variables':{'filters':_0xa57b03,'sortings':[{'name':'category'},{'name':_0x1c21c5(0x137)}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0x2fb5ce['errors'])return{'records':_0x2fb5ce[_0x1c21c5(0x14f)][_0x1c21c5(0x157)][_0x1c21c5(0x146)]||[],'total':_0x2fb5ce[_0x1c21c5(0x14f)]['terminologies'][_0x1c21c5(0x141)]||0x0};}static[a0_0x5b5e93(0x153)](_0x4a0a6b,_0xe93f94){const _0x42c055=a0_0x5b5e93;let _0x31c3d2=TermsUtil[_0x42c055(0x14d)](_0x42c055(0x142),_0x4a0a6b,_0xe93f94,null);return _0x31c3d2||TermsUtil[_0x42c055(0x14d)]('field',_0x4a0a6b,_0xe93f94,_0x4a0a6b);}static[a0_0x5b5e93(0x156)](_0x1875ee,_0x5aaf5f){const _0x4c31f1=a0_0x5b5e93;let _0x4cfba5=TermsUtil['translate']('field',_0x1875ee,_0x5aaf5f,null);return _0x4cfba5||TermsUtil[_0x4c31f1(0x14d)]('field',_0x1875ee,_0x5aaf5f,_0x1875ee);}static[a0_0x5b5e93(0x13e)](_0x460095){const _0x1138c5=a0_0x5b5e93;return TermsUtil['translate'](_0x1138c5(0x14a),_0x460095,null,_0x460095);}static[a0_0x5b5e93(0x14b)](_0x178018,_0x31541c){const _0x2fb463=a0_0x5b5e93;let _0x5a1297=TermsUtil[_0x2fb463(0x14d)](_0x2fb463(0x158),_0x178018,_0x31541c,null);return _0x5a1297||TermsUtil[_0x2fb463(0x14d)](_0x2fb463(0x15d),_0x178018,_0x31541c,_0x178018);}static[a0_0x5b5e93(0x13c)](_0x464f45){const _0x48687f=a0_0x5b5e93;let _0xccb340=TermsUtil['translate'](_0x48687f(0x15d),_0x464f45,null,_0x464f45);return _0xccb340||TermsUtil[_0x48687f(0x14d)](_0x48687f(0x158),_0x464f45,null,_0x464f45);}static[a0_0x5b5e93(0x155)](_0x5f19c9,_0xe045a8){const _0x6e10e1=a0_0x5b5e93;return TermsUtil['translate'](_0x6e10e1(0x13f),_0x5f19c9,_0xe045a8,_0x5f19c9);}static[a0_0x5b5e93(0x140)](_0x7c0846,_0x1fa28c){const _0x52a42e=a0_0x5b5e93;return TermsUtil[_0x52a42e(0x14d)](_0x52a42e(0x154),_0x7c0846,_0x1fa28c,_0x7c0846);}static[a0_0x5b5e93(0x14d)](_0x428b2e,_0x2a43d4,_0x42320f,_0x1c8289){let _0x2c0ea5=_0x428b2e+'.'+_0x2a43d4;return TermsUtil['t'](_0x2c0ea5,_0x42320f,_0x1c8289);}static['t'](_0x45e65d,_0x302651,_0x5d59d7){const _0x4cb7bc=a0_0x5b5e93;let _0x118120=this[_0x4cb7bc(0x136)]?this[_0x4cb7bc(0x136)][_0x45e65d]:null;return _0x118120=_0x118120||i18next['t'](_0x45e65d),_0x118120&&_0x45e65d!=_0x118120?(_0x302651&&Object[_0x4cb7bc(0x150)](_0x302651)[_0x4cb7bc(0x138)](function(_0x2d18d6){const _0x48851c=_0x4cb7bc;var _0x4e7c93='\x5c{'+_0x2d18d6[_0x48851c(0x143)](/\$/,'\x5c$')+'\x5c}',_0xdab18c=new RegExp(_0x4e7c93,'gi');_0x118120=_0x118120[_0x48851c(0x143)](_0xdab18c,_0x302651[_0x2d18d6]);}),_0x118120):_0x5d59d7;}}
|
package/client/utils/ui-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x32a30a=a0_0x1cc5;function a0_0x1cc5(_0x9618ed,_0x5e22bf){const _0x4fd629=a0_0x4fd6();return a0_0x1cc5=function(_0x1cc5af,_0x891a41){_0x1cc5af=_0x1cc5af-0x1ab;let _0x58edf8=_0x4fd629[_0x1cc5af];return _0x58edf8;},a0_0x1cc5(_0x9618ed,_0x5e22bf);}function a0_0x4fd6(){const _0x563921=['openDynamicPopup','3raalhq','pageNavigate','cookie','code-editor','firstElementChild','app','innerHTML','5872315gDgfqV','onclosed','getStore','filters','7848kILcdn','notify','isNotEmpty','createElement','currentRouting','6qLlXeu','getState','1560349VtgxJj','indexOf','parent_field','getApplicationModuleInfo','showToast','1jDxHVT','showAlertPopup','openPopupByElement','textarea','40781vvQzWZ','tagname','select-combo','createEditorHtml','substring','setSearchFormEditorValue','editor','menu','page','currentLocale','input','16XcWSzr','i18next','\x27></','split','10BWvpWf','template','childNodes','pass=','ox-select','cancelButton','querySelector','removeChild','\x20route_name=\x27','renderRoot','type','confirmButton','getFilterFormData','ko-KR','2280136bDzTDx','i18next=','modules','\x27\x20is_popup=true></','barcode','ox-input-barcode','319896QuqRno','14174644hFODHe','\x27\x20\x20parent_id=\x27','4374532FIaaqP','getLeafInput','popup_field','dispatchEvent','tButton','setValueToEditor','stringify','htmlToElement','value'];a0_0x4fd6=function(){return _0x563921;};return a0_0x4fd6();}(function(_0x960522,_0x52afca){const _0x18237f=a0_0x1cc5,_0x3c1b7f=_0x960522();while(!![]){try{const _0x4b64ad=parseInt(_0x18237f(0x1e5))/0x1*(parseInt(_0x18237f(0x1bb))/0x2)+-parseInt(_0x18237f(0x1ce))/0x3*(parseInt(_0x18237f(0x1c4))/0x4)+-parseInt(_0x18237f(0x1d5))/0x5*(-parseInt(_0x18237f(0x1de))/0x6)+parseInt(_0x18237f(0x1e0))/0x7*(parseInt(_0x18237f(0x1f4))/0x8)+parseInt(_0x18237f(0x1c1))/0x9+-parseInt(_0x18237f(0x1ad))/0xa*(-parseInt(_0x18237f(0x1c2))/0xb)+-parseInt(_0x18237f(0x1d9))/0xc*(parseInt(_0x18237f(0x1e9))/0xd);if(_0x4b64ad===_0x52afca)break;else _0x3c1b7f['push'](_0x3c1b7f['shift']());}catch(_0x326a8){_0x3c1b7f['push'](_0x3c1b7f['shift']());}}}(a0_0x4fd6,0xe54fe));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';import{ValueUtil}from'./value-util';import{MetaUiUtil}from'./meta-ui-util';export class UiUtil{static['isMobileEnv'](){return isMobileDevice();}static[a0_0x32a30a(0x1f2)](){const _0x33962e=a0_0x32a30a;let _0x547b5a=document[_0x33962e(0x1d0)];return _0x547b5a=_0x547b5a['substring'](_0x547b5a[_0x33962e(0x1e1)](_0x33962e(0x1f5))),_0x547b5a['indexOf'](';')>-0x1&&(_0x547b5a=_0x547b5a[_0x33962e(0x1ed)](0x0,_0x547b5a[_0x33962e(0x1e1)](';'))),_0x547b5a=_0x547b5a['replace'](_0x33962e(0x1bc),''),'ko'==_0x547b5a?_0x33962e(0x1ba):_0x547b5a;}static[a0_0x32a30a(0x1e3)](){const _0x29941c=a0_0x32a30a;let _0x2b8348=store[_0x29941c(0x1df)]()[_0x29941c(0x1d3)][_0x29941c(0x1bd)];return _0x2b8348[_0x2b8348['length']-0x1];}static[a0_0x32a30a(0x1dd)](){const _0x14a3ac=a0_0x32a30a;return store['getState']()['route'][_0x14a3ac(0x1f1)];}static[a0_0x32a30a(0x1e7)](_0x22c891,_0x57bb02,_0x33bd2f,_0x18cef0){return openPopup(_0x33bd2f,{'backdrop':!0x0,'size':_0x57bb02,'title':_0x22c891,'backdrop':_0x18cef0});}static async[a0_0x32a30a(0x1cd)](_0x2f89da,_0x517011,_0x242343,_0x5d9460){const _0x3f8469=a0_0x32a30a;let _0x110907=ValueUtil[_0x3f8469(0x1db)](_0x517011[_0x3f8469(0x1e2)])?ValueUtil['getParams'](_0x242343,..._0x517011[_0x3f8469(0x1e2)][_0x3f8469(0x1ac)]('.')):void 0x0,_0xde813e='<'+_0x517011['tagname']+_0x3f8469(0x1b5)+_0x517011[_0x3f8469(0x1f0)]+_0x3f8469(0x1c3)+_0x110907+_0x3f8469(0x1be)+_0x517011[_0x3f8469(0x1ea)]+'>',_0x318cc9=UiUtil['htmlToElement'](_0xde813e);_0x318cc9['config']=_0x517011,ValueUtil[_0x3f8469(0x1db)](_0x517011[_0x3f8469(0x1c6)])&&(_0x318cc9[_0x517011[_0x3f8469(0x1c6)]]=_0x242343);let _0x508909=UiUtil['openPopupByElement'](_0x2f89da,_0x517011['size'],_0x318cc9,!0x0);_0x5d9460&&(_0x508909[_0x3f8469(0x1d6)]=_0x5d9460);}static['createCustomElement'](_0x15906a,_0x5e993d){const _0x49e0aa=a0_0x32a30a;let _0x4e7551='<'+_0x15906a+_0x49e0aa(0x1b5)+_0x5e993d+_0x49e0aa(0x1ab)+_0x15906a+'>';return UiUtil['htmlToElement'](_0x4e7551);}static[a0_0x32a30a(0x1cb)](_0x1a27bd){const _0x5446be=a0_0x32a30a;var _0x20e065=document[_0x5446be(0x1dc)](_0x5446be(0x1ae));_0x20e065[_0x5446be(0x1d4)]=_0x1a27bd;var _0x1ff502=_0x20e065['content'][_0x5446be(0x1af)][0x0];return _0x20e065['content'][_0x5446be(0x1b4)](_0x1ff502),_0x1ff502;}static[a0_0x32a30a(0x1cf)](_0x242b2b,_0x39a9b1){const _0x20d143=a0_0x32a30a;let _0x15290b=_0x39a9b1?'?':'';_0x39a9b1&&(_0x15290b+=_0x20d143(0x1b0)+JSON[_0x20d143(0x1ca)](_0x39a9b1)),navigate(''+_0x242b2b+_0x15290b);}static[a0_0x32a30a(0x1d7)](_0x37a9e,_0x48b607,_0x397ac6){const _0x5a7aae=a0_0x32a30a;let _0x18f25e=_0x18f25e[_0x5a7aae(0x1df)]();return _0x37a9e&&_0x48b607&&_0x397ac6?_0x18f25e[_0x37a9e][_0x48b607][_0x397ac6]:_0x37a9e&&_0x48b607?_0x18f25e[_0x37a9e][_0x48b607]:_0x37a9e?_0x18f25e[_0x37a9e]:_0x18f25e;}static['fireCustomEvent'](_0x2900b5,_0x21c3c1){const _0x53ed66=a0_0x32a30a;document[_0x53ed66(0x1c7)](new CustomEvent(_0x2900b5,{'detail':_0x21c3c1}));}static[a0_0x32a30a(0x1e4)](_0xdefdca,_0x3d4b2b){const _0x2bfc36=a0_0x32a30a;document[_0x2bfc36(0x1c7)](new CustomEvent(_0x2bfc36(0x1da),{'detail':{'type':_0xdefdca,'message':_0x3d4b2b}}));}static async[a0_0x32a30a(0x1e6)](_0x59bfc0,_0x225e9f,_0x656b68,_0x5e186e,_0x3eacec){const _0x372ff0=a0_0x32a30a;let _0x41e0e4={'title':TermsUtil['t'](_0x59bfc0)||_0x59bfc0,'text':TermsUtil['t'](_0x225e9f)||_0x225e9f};return _0x656b68&&(_0x41e0e4[_0x372ff0(0x1b7)]=_0x656b68),_0x5e186e&&(_0x41e0e4[_0x372ff0(0x1b8)]=TermsUtil[_0x372ff0(0x1c8)](_0x5e186e)),_0x3eacec&&(_0x41e0e4[_0x372ff0(0x1b2)]=TermsUtil['tButton'](_0x3eacec)),await CustomAlert(_0x41e0e4);}static[a0_0x32a30a(0x1b9)](_0x469995){const _0x147ecf=a0_0x32a30a;if(ValueUtil[_0x147ecf(0x1db)](_0x469995)){let _0x4186ac=_0x469995[_0x147ecf(0x1d8)]();ValueUtil[_0x147ecf(0x1db)](_0x4186ac)&&_0x4186ac['forEach'](_0x5992ba=>{const _0x4e4e53=_0x147ecf;ValueUtil['isNotEmpty'](_0x5992ba[_0x4e4e53(0x1cc)])&&(item[_0x5992ba['name']]=_0x5992ba[_0x4e4e53(0x1cc)]?_0x5992ba[_0x4e4e53(0x1cc)]:null);});}return{};}static[a0_0x32a30a(0x1ee)](_0x430d76,_0x37aee,_0x3e2fe6){const _0x595b18=a0_0x32a30a;if(ValueUtil['isNotEmpty'](_0x430d76)){let _0x3555ec=_0x430d76[_0x595b18(0x1b6)]?.['querySelector']('[name=\x27'+_0x37aee+'\x27]');ValueUtil[_0x595b18(0x1db)](_0x3555ec)&&(_0x3555ec[_0x595b18(0x1cc)]=_0x3e2fe6);}}static[a0_0x32a30a(0x1ec)](_0x2b6de4,_0x379a06,_0x1fbbd1,_0x1082ef){return getEditor(_0x2b6de4)('',_0x379a06,_0x1fbbd1,_0x1082ef,{});}static[a0_0x32a30a(0x1c9)](_0x4cbb75,_0x97e131){const _0x317b9e=a0_0x32a30a;UiUtil['getLeafInput'](_0x4cbb75)[_0x317b9e(0x1cc)]=_0x97e131;}static[a0_0x32a30a(0x1c5)](_0x2209bc){const _0x2d2b00=a0_0x32a30a;let _0x48a27d=_0x2209bc['getType']();return _0x2d2b00(0x1d1)==_0x48a27d?_0x2209bc[_0x2d2b00(0x1b6)]['querySelector']('ox-input-code'):_0x2d2b00(0x1e8)==_0x48a27d?_0x2209bc[_0x2d2b00(0x1b6)][_0x2d2b00(0x1b3)](_0x2d2b00(0x1e8)):_0x2d2b00(0x1eb)==_0x48a27d?_0x2209bc[_0x2d2b00(0x1b6)][_0x2d2b00(0x1b3)](_0x2d2b00(0x1b1))[_0x2d2b00(0x1d2)]:_0x2d2b00(0x1bf)==_0x48a27d?_0x2209bc[_0x2d2b00(0x1b6)]['querySelector'](_0x2d2b00(0x1c0))[_0x2d2b00(0x1b6)][_0x2d2b00(0x1b3)](_0x2d2b00(0x1f3)):_0x2209bc[_0x2d2b00(0x1b6)]['firstElementChild'][_0x2d2b00(0x1ef)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a0_0x6d4e4=a0_0x1f09;function a0_0x1f09(_0xbfb596,_0x217512){const _0x25d582=a0_0x25d5();return a0_0x1f09=function(_0x1f09b6,_0x4b39b4){_0x1f09b6=_0x1f09b6-0x1c8;let _0x3845c4=_0x25d582[_0x1f09b6];return _0x3845c4;},a0_0x1f09(_0xbfb596,_0x217512);}(function(_0xb5f804,_0x480ca6){const _0x5398fb=a0_0x1f09,_0x24dec4=_0xb5f804();while(!![]){try{const _0x3c4dd1=parseInt(_0x5398fb(0x1d9))/0x1*(-parseInt(_0x5398fb(0x1d1))/0x2)+parseInt(_0x5398fb(0x1d4))/0x3*(parseInt(_0x5398fb(0x1e3))/0x4)+parseInt(_0x5398fb(0x1d2))/0x5*(parseInt(_0x5398fb(0x1da))/0x6)+parseInt(_0x5398fb(0x1e4))/0x7*(parseInt(_0x5398fb(0x1e1))/0x8)+parseInt(_0x5398fb(0x1cb))/0x9*(parseInt(_0x5398fb(0x1d7))/0xa)+-parseInt(_0x5398fb(0x1dc))/0xb+parseInt(_0x5398fb(0x1cc))/0xc;if(_0x3c4dd1===_0x480ca6)break;else _0x24dec4['push'](_0x24dec4['shift']());}catch(_0x5bbe1c){_0x24dec4['push'](_0x24dec4['shift']());}}}(a0_0x25d5,0x42e39));import a0_0x42d830 from'lodash-es/isEqual';function a0_0x25d5(){const _0x34daaf=['12oEVvoi','542696vteEjC','number','string','populateArray','156375YCUqyr','1165932dTnuhO','length','getParams','toBoolean','isArray','4jDsOAu','4155wyuJEE','boolean','61857zwIgrC','slice','keys','210IUHSwI','object','233974pSRVRg','2208WQCDNu','populateObject','3523960mAiWEl','isEmpty','forEach','isNotEmpty','compareObjectValues','24qRbEwE','TRUE'];a0_0x25d5=function(){return _0x34daaf;};return a0_0x25d5();}import{TermsUtil}from'./terms-util';export class ValueUtil{static[a0_0x6d4e4(0x1dd)](_0x19b987){const _0x49f59f=a0_0x6d4e4;if(void 0x0===_0x19b987)return!0x0;if(null===_0x19b987)return!0x0;if(_0x49f59f(0x1d3)==typeof _0x19b987)return!0x1;if(_0x49f59f(0x1c9)==typeof _0x19b987||_0x49f59f(0x1c8)==typeof _0x19b987){if(''==_0x19b987)return!0x0;}else{if(Array[_0x49f59f(0x1d0)](_0x19b987)){if(0x0==_0x19b987['length'])return!0x0;}else{if(_0x49f59f(0x1d8)==typeof _0x19b987&&0x0==Object[_0x49f59f(0x1d6)](_0x19b987)[_0x49f59f(0x1cd)])return!0x0;}}return!0x1;}static[a0_0x6d4e4(0x1df)](_0x2136d8){const _0x3fb084=a0_0x6d4e4;return!ValueUtil[_0x3fb084(0x1dd)](_0x2136d8);}static['isEquals'](_0x2ff608,_0x51b966){return a0_0x42d830(_0x2ff608,_0x51b966);}static['toInteger'](_0x2eece8,_0x52aaf6){return ValueUtil['isEmpty'](_0x2eece8)?_0x52aaf6||0x0:parseInt(_0x2eece8);}static[a0_0x6d4e4(0x1cf)](_0x38e5de){const _0x4dc8e4=a0_0x6d4e4;return!ValueUtil[_0x4dc8e4(0x1dd)](_0x38e5de)&&('true'==_0x38e5de||'t'==_0x38e5de||_0x4dc8e4(0x1e2)==_0x38e5de||'T'==_0x38e5de||'on'==_0x38e5de||'ON'==_0x38e5de);}static[a0_0x6d4e4(0x1e0)](_0x1ef822,_0x5163db,_0x26de65){const _0x123230=a0_0x6d4e4;let _0xef3cf4=!0x0;return _0x26de65[_0x123230(0x1de)](_0x3d5de2=>{const _0x2d283a=_0x123230;let _0x277874=_0x1ef822[_0x3d5de2];if('*'===_0x277874)return;let _0xb7d8f9=_0x5163db[_0x3d5de2]||'';ValueUtil[_0x2d283a(0x1dd)](_0x277874)?ValueUtil['isNotEmpty'](_0xb7d8f9)&&(_0xef3cf4=!0x1):_0x277874!=_0xb7d8f9&&(_0xef3cf4=!0x1);}),_0xef3cf4;}static['setParams'](_0x5c16fe,_0x28ec33,_0x1046bb,_0x5c81a5){const _0xed8221=a0_0x6d4e4;let _0x537673=ValueUtil[_0xed8221(0x1ce)](_0x28ec33,_0x1046bb);return ValueUtil['isNotEmpty'](_0x537673)&&(_0x5c16fe[_0x1046bb]=!0x0===_0x5c81a5?TermsUtil['t'](_0x537673):_0x537673),_0x5c16fe;}static[a0_0x6d4e4(0x1ce)](_0x5d1da9,..._0x16b7ed){const _0x26b7fa=a0_0x6d4e4;if(arguments[_0x26b7fa(0x1cd)]<=0x1)return;let _0x1104ce=_0x16b7ed[0x0];if(ValueUtil[_0x26b7fa(0x1dd)](_0x5d1da9[_0x1104ce]))return;let _0x278972=_0x5d1da9[_0x1104ce];return _0x16b7ed[_0x26b7fa(0x1cd)]>0x1?ValueUtil[_0x26b7fa(0x1ce)](_0x278972,..._0x16b7ed[_0x26b7fa(0x1d5)](0x1)):_0x278972;}static[a0_0x6d4e4(0x1ca)](_0x381252,_0x25e489,..._0x58042a){const _0xb7a5f0=a0_0x6d4e4;return _0x25e489=_0x25e489||[],_0x58042a=_0x58042a||Object[_0xb7a5f0(0x1d6)](_0x381252),ValueUtil[_0xb7a5f0(0x1df)](_0x58042a)&&(_0x25e489=_0x381252['map']((_0x3264bc,_0x34e4be)=>{const _0x897a58=_0xb7a5f0;let _0x226081=_0x25e489['length']>_0x34e4be?_0x25e489[_0x34e4be]:{};return ValueUtil[_0x897a58(0x1db)](_0x3264bc,_0x226081,_0x58042a);})),_0x25e489;}static[a0_0x6d4e4(0x1db)](_0x43b462,_0x1f2083,..._0x5887d0){const _0x46b938=a0_0x6d4e4;return _0x1f2083=_0x1f2083||{},_0x5887d0=_0x5887d0||Object['keys'](_0x43b462),ValueUtil[_0x46b938(0x1df)](_0x5887d0)&&_0x5887d0['forEach'](_0x3afd9d=>{_0x1f2083[_0x3afd9d]=_0x43b462[_0x3afd9d];}),_0x1f2083;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a0_0x5442(_0x37d5d2,_0x10f20c){const _0x472aac=a0_0x472a();return a0_0x5442=function(_0x54429a,_0x321393){_0x54429a=_0x54429a-0x99;let _0x32279c=_0x472aac[_0x54429a];return _0x32279c;},a0_0x5442(_0x37d5d2,_0x10f20c);}function a0_0x472a(){const _0xdbee9=['854198ePGRit','9RTfdGA','32228dgYcik','12XVQDTS','648205viIhrn','42XWOPaZ','498789FdzPJV','3905770LydFtl','3577343IvHsNN','6qIJXGQ','575976ScwTvH'];a0_0x472a=function(){return _0xdbee9;};return a0_0x472a();}(function(_0x56b0c4,_0x4d4ee7){const _0x235f74=a0_0x5442,_0x2573a5=_0x56b0c4();while(!![]){try{const _0x393700=parseInt(_0x235f74(0x9a))/0x1+parseInt(_0x235f74(0x9f))/0x2+parseInt(_0x235f74(0x9d))/0x3*(parseInt(_0x235f74(0xa1))/0x4)+-parseInt(_0x235f74(0xa3))/0x5*(parseInt(_0x235f74(0xa2))/0x6)+parseInt(_0x235f74(0x99))/0x7*(parseInt(_0x235f74(0x9e))/0x8)+parseInt(_0x235f74(0xa0))/0x9*(-parseInt(_0x235f74(0x9b))/0xa)+-parseInt(_0x235f74(0x9c))/0xb;if(_0x393700===_0x4d4ee7)break;else _0x2573a5['push'](_0x2573a5['shift']());}catch(_0x4e9036){_0x2573a5['push'](_0x2573a5['shift']());}}}(a0_0x472a,0x61640));import{css}from'lit';export const DynamicMenuLandscapeStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
overflow-x: auto;
|
|
4
4
|
background-color: var(--secondary-text-color);
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x37fbfa=a0_0x1621;(function(_0x1cfc0a,_0x2a9e0d){const _0x5a418b=a0_0x1621,_0x33ee79=_0x1cfc0a();while(!![]){try{const _0x42d869=-parseInt(_0x5a418b(0x1cc))/0x1*(parseInt(_0x5a418b(0x1d3))/0x2)+parseInt(_0x5a418b(0x1c8))/0x3*(-parseInt(_0x5a418b(0x1a7))/0x4)+-parseInt(_0x5a418b(0x1a9))/0x5*(parseInt(_0x5a418b(0x1a6))/0x6)+-parseInt(_0x5a418b(0x1b9))/0x7*(-parseInt(_0x5a418b(0x1d2))/0x8)+-parseInt(_0x5a418b(0x1d7))/0x9*(-parseInt(_0x5a418b(0x1ce))/0xa)+-parseInt(_0x5a418b(0x1d0))/0xb*(parseInt(_0x5a418b(0x1c3))/0xc)+-parseInt(_0x5a418b(0x1c2))/0xd*(-parseInt(_0x5a418b(0x1b6))/0xe);if(_0x42d869===_0x2a9e0d)break;else _0x33ee79['push'](_0x33ee79['shift']());}catch(_0x4c5354){_0x33ee79['push'](_0x33ee79['shift']());}}}(a0_0x57f5,0x9caf7));import'@material/mwc-icon';import{html,LitElement}from'lit';import{connect}from'pwa-helpers';import{navigate,store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';import{DynamicMenuLandscapeStyles}from'./dynamic-menu-landscape-styles';function a0_0x1621(_0x50157f,_0x1dc27b){const _0x57f531=a0_0x57f5();return a0_0x1621=function(_0x1621aa,_0x37f5a0){_0x1621aa=_0x1621aa-0x1a6;let _0x402075=_0x57f531[_0x1621aa];return _0x402075;},a0_0x1621(_0x50157f,_0x1dc27b);}export class DynamicMenuLandscape extends connect(store)(LitElement){static get['styles'](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get[a0_0x37fbfa(0x1d5)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x37fbfa(0x1ba)](){const _0x7062b3=a0_0x37fbfa,{menus:_0xd10208=[],activeTopLevel:_0x4aaf33,activeMenu:_0x57a74a}=this;return html`
|
|
2
2
|
<div id="wrap">
|
|
3
3
|
<ul>
|
|
4
|
-
${
|
|
5
|
-
<li ?active=${
|
|
6
|
-
<a href=${
|
|
7
|
-
${
|
|
4
|
+
${_0xd10208['map'](_0x18c282=>_0x7062b3(0x1c1)==_0x18c282[_0x7062b3(0x1d1)]?html``:html`
|
|
5
|
+
<li ?active=${_0x18c282===_0x4aaf33}>
|
|
6
|
+
<a href=${_0x18c282[_0x7062b3(0x1ac)]||'#'}>
|
|
7
|
+
${_0x18c282[_0x7062b3(0x1d6)]?html`<mwc-icon>${_0x18c282[_0x7062b3(0x1d6)]}</mwc-icon>`:html``} ${_0x18c282['name']}
|
|
8
8
|
</a>
|
|
9
9
|
|
|
10
10
|
<ul submenus>
|
|
11
|
-
${
|
|
12
|
-
<li ?active=${
|
|
13
|
-
<a href=${
|
|
11
|
+
${_0x18c282[_0x7062b3(0x1cb)]?.[_0x7062b3(0x1b3)](_0x9e59de=>html`
|
|
12
|
+
<li ?active=${_0x9e59de===_0x57a74a}>
|
|
13
|
+
<a href=${_0x9e59de[_0x7062b3(0x1ac)]||'#'}> ${_0x9e59de[_0x7062b3(0x1bf)]} </a>
|
|
14
14
|
</li>
|
|
15
15
|
`)}
|
|
16
16
|
</ul>
|
|
17
17
|
|
|
18
18
|
<div description>
|
|
19
|
-
${
|
|
19
|
+
${_0x18c282[_0x7062b3(0x1d6)]?html`<mwc-icon>${_0x18c282[_0x7062b3(0x1d6)]}</mwc-icon>`:html``} ${_0x18c282[_0x7062b3(0x1bd)]||''}
|
|
20
20
|
</div>
|
|
21
21
|
</li>
|
|
22
22
|
`)}
|
|
23
23
|
</ul>
|
|
24
24
|
</div>
|
|
25
|
-
`;}[
|
|
25
|
+
`;}['firstUpdated'](){const _0x140263=a0_0x37fbfa;this[_0x140263(0x1bc)][_0x140263(0x1b2)](_0x140263(0x1d8))[_0x140263(0x1d4)](_0x140263(0x1cd),this[_0x140263(0x1c5)][_0x140263(0x1cf)](this),!0x1),this[_0x140263(0x1bc)][_0x140263(0x1d4)](_0x140263(0x1c0),_0x2c7705=>{const _0x228f7e=_0x140263;if(_0x2c7705['target'][_0x228f7e(0x1b7)]){_0x2c7705[_0x228f7e(0x1c6)](),_0x2c7705[_0x228f7e(0x1bb)]();let _0x5381d5=_0x2c7705[_0x228f7e(0x1be)]['submenu'];return void this[_0x228f7e(0x1a8)](new CustomEvent(_0x228f7e(0x1b1),{'bubbles':!0x0,'detail':this[_0x228f7e(0x1aa)]===_0x5381d5?void 0x0:_0x5381d5}));}let _0x164b08=_0x2c7705['target'][_0x228f7e(0x1ab)];_0x164b08&&location['href']===_0x164b08&&navigate(_0x164b08+_0x228f7e(0x1ca),!0x0);}),this[_0x140263(0x1bc)][_0x140263(0x1d4)](_0x140263(0x1ae),_0x1f5688=>{const _0x53d350=_0x140263;_0x1f5688[_0x53d350(0x1be)][_0x53d350(0x1d9)](_0x53d350(0x1b4));}),this['renderRoot'][_0x140263(0x1d4)](_0x140263(0x1b0),_0x126e94=>{const _0x376a6c=_0x140263;_0x126e94[_0x376a6c(0x1be)]['setAttribute'](_0x376a6c(0x1b4),'');});}[a0_0x37fbfa(0x1c5)](_0x5136b5){const _0x556ad2=a0_0x37fbfa,_0x13bae0=_0x5136b5['currentTarget'];var _0x5b7fe9=Math[_0x556ad2(0x1ad)](-0x1,Math[_0x556ad2(0x1c4)](0x1,_0x5136b5[_0x556ad2(0x1b5)]||-_0x5136b5[_0x556ad2(0x1af)]));_0x13bae0[_0x556ad2(0x1b8)]-=0xa*_0x5b7fe9,_0x5136b5[_0x556ad2(0x1bb)]();}}function a0_0x57f5(){const _0x24f592=['stopPropagation','define','1278783JYSEcQ','dynamic-menu-landscape','#force','menus','18PeYrSH','mousewheel','3919070VQjtGw','bind','11wYSzuM','type','8XuNGQT','28588vlsQFo','addEventListener','properties','icon','18WknqbO','#wrap','removeAttribute','1671294OhnZOw','4MyRcOr','dispatchEvent','10NtBHSM','activeTopLevel','href','path','max','transitionstart','detail','transitionend','active-toplevel','querySelector','map','settled','wheelDelta','28OKcjpr','submenu','scrollLeft','4162683ViqvBQ','render','preventDefault','renderRoot','description','target','name','click','group','9929361sBPEnr','12283716EXVWSC','min','onWheelEvent'];a0_0x57f5=function(){return _0x24f592;};return a0_0x57f5();}customElements[a0_0x37fbfa(0x1c7)](a0_0x37fbfa(0x1c9),DynamicMenuLandscape);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x138a45=a0_0x5daf;(function(_0x3fbb64,_0x2bbba9){var _0x3fc794=a0_0x5daf,_0x275baf=_0x3fbb64();while(!![]){try{var _0x2471a3=-parseInt(_0x3fc794(0xdb))/0x1*(-parseInt(_0x3fc794(0xcb))/0x2)+-parseInt(_0x3fc794(0xd1))/0x3*(parseInt(_0x3fc794(0xca))/0x4)+parseInt(_0x3fc794(0xc3))/0x5+parseInt(_0x3fc794(0xd5))/0x6*(-parseInt(_0x3fc794(0xd6))/0x7)+-parseInt(_0x3fc794(0xbc))/0x8+parseInt(_0x3fc794(0xb5))/0x9*(-parseInt(_0x3fc794(0xc4))/0xa)+parseInt(_0x3fc794(0xc7))/0xb;if(_0x2471a3===_0x2bbba9)break;else _0x275baf['push'](_0x275baf['shift']());}catch(_0x406c0c){_0x275baf['push'](_0x275baf['shift']());}}}(a0_0x1137,0x89928));import'@material/mwc-icon';function a0_0x1137(){var _0x7a23b5=['orientation','45966XkMZil','175PVfcxR','detail','portrait','route','menus','5165jkpXwY','dynamic-menu-part','9GtcmTc','landscape','stopPropagation','has','path','find','stateChanged','8124776WhyDOF','styles','removeAttribute','_activeTopLevel','_path','properties','render','3987665ZRWunL','5473240KeTDOa','renderRoot','_activeMenu','4580059izpkHz','resourceId','_findActivePage','156FUQRUF','430JhoJec','addEventListener','firstUpdated','active','preventDefault','page','495YzbwJJ','slotTemplate','replaceChild'];a0_0x1137=function(){return _0x7a23b5;};return a0_0x1137();}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_0x5daf(_0x552f4f,_0x1790ca){var _0x113796=a0_0x1137();return a0_0x5daf=function(_0x5daf39,_0x39889d){_0x5daf39=_0x5daf39-0xb5;var _0x5468bc=_0x113796[_0x5daf39];return _0x5468bc;},a0_0x5daf(_0x552f4f,_0x1790ca);}function isActiveMenu(_0x40dc62,_0x16d017){var _0x45a3b9=a0_0x5daf;return _0x40dc62[_0x45a3b9(0xb9)]?.['split']('?')[0x0]===_0x16d017||_0x40dc62[_0x45a3b9(0xce)]&&'function'==typeof _0x40dc62['active']&&_0x40dc62[_0x45a3b9(0xce)]['call'](_0x40dc62,{'path':_0x16d017});}export class DynamicMenuPart extends connect(store)(LitElement){static get[a0_0x138a45(0xc1)](){return{'page':String,'resourceId':String,'menus':Array,'orientation':String,'_activeTopLevel':Object,'_activeMenu':Object,'_path':String};}static get[a0_0x138a45(0xbd)](){return[ScrollbarStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -27,18 +27,18 @@ var a0_0x17469e=a0_0x526f;(function(_0x2ebc5e,_0x1253fa){var _0x563205=a0_0x526f
|
|
|
27
27
|
dynamic-menu-landscape {
|
|
28
28
|
flex: 1;
|
|
29
29
|
}
|
|
30
|
-
`];}[
|
|
30
|
+
`];}[a0_0x138a45(0xc2)](){var _0x1cac47=a0_0x138a45;return html`
|
|
31
31
|
<slot name="head"></slot>
|
|
32
|
-
${
|
|
33
|
-
.menus=${this[
|
|
34
|
-
.activeTopLevel=${this[
|
|
35
|
-
.activeMenu=${this[
|
|
36
|
-
.path=${this[
|
|
32
|
+
${_0x1cac47(0xb6)!==this[_0x1cac47(0xd4)]?html`<dynamic-menu-portrait
|
|
33
|
+
.menus=${this[_0x1cac47(0xda)]}
|
|
34
|
+
.activeTopLevel=${this[_0x1cac47(0xbf)]}
|
|
35
|
+
.activeMenu=${this[_0x1cac47(0xc6)]}
|
|
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[_0x1cac47(0xda)]}
|
|
39
|
+
.activeTopLevel=${this[_0x1cac47(0xbf)]}
|
|
40
|
+
.activeMenu=${this[_0x1cac47(0xc6)]}
|
|
41
|
+
.path=${this[_0x1cac47(0xc0)]}
|
|
42
42
|
></dynamic-menu-landscape>`}
|
|
43
43
|
<slot name="tail"></slot>
|
|
44
|
-
`;}[
|
|
44
|
+
`;}[a0_0x138a45(0xcd)](){var _0xf31849=a0_0x138a45;this[_0xf31849(0xc5)][_0xf31849(0xcc)]('active-toplevel',_0x2fe26d=>{var _0x84b884=_0xf31849;_0x2fe26d[_0x84b884(0xb7)](),_0x2fe26d[_0x84b884(0xcf)](),this['_activeTopLevel']=_0x2fe26d[_0x84b884(0xd7)];});}['updated'](_0x59308c){var _0x598f16=a0_0x138a45;(_0x59308c[_0x598f16(0xb8)]('menus')||_0x59308c[_0x598f16(0xb8)]('page')||_0x59308c['has']('resourceId'))&&this[_0x598f16(0xc9)](),_0x59308c[_0x598f16(0xb8)](_0x598f16(0xd4))&&(_0x598f16(0xd8)==this['orientation']?this[_0x598f16(0xbe)](_0x598f16(0xb6)):this['setAttribute'](_0x598f16(0xb6),!0x0)),_0x59308c[_0x598f16(0xb8)](_0x598f16(0xd2))&&this[_0x598f16(0xd3)](this['slotTemplate']);}[a0_0x138a45(0xbb)](_0x26957a){var _0x13ce63=a0_0x138a45;this[_0x13ce63(0xd0)]=_0x26957a[_0x13ce63(0xd9)][_0x13ce63(0xd0)],this[_0x13ce63(0xc8)]=_0x26957a[_0x13ce63(0xd9)]['resourceId'],this[_0x13ce63(0xda)]=_0x26957a['metaUI'][_0x13ce63(0xda)]||[],this[_0x13ce63(0xd2)]=_0x26957a['metaUI'][_0x13ce63(0xd2)];}[a0_0x138a45(0xc9)](){var _0xbd592e=a0_0x138a45,_0xbb58ce,_0x1a696d=this[_0xbd592e(0xc8)]?this[_0xbd592e(0xd0)]+'/'+this[_0xbd592e(0xc8)]:this[_0xbd592e(0xd0)],_0x13fd78=this['menus']||[];this[_0xbd592e(0xbf)]=_0x13fd78[_0xbd592e(0xba)](_0x42bbb1=>isActiveMenu(_0x42bbb1,_0x1a696d)?(_0xbb58ce=_0x42bbb1,!0x0):_0x42bbb1[_0xbd592e(0xda)]?!!(_0xbb58ce=_0x42bbb1['menus'][_0xbd592e(0xba)](_0x47a40d=>isActiveMenu(_0x47a40d,_0x1a696d))):void 0x0),this[_0xbd592e(0xc0)]=_0x1a696d,this[_0xbd592e(0xc6)]=_0xbb58ce||this[_0xbd592e(0xbf)];}}customElements['define'](a0_0x138a45(0xdc),DynamicMenuPart);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x543f(_0x236ece,_0x2bad87){const _0x29c594=a0_0x29c5();return a0_0x543f=function(_0x543fbb,_0x16c510){_0x543fbb=_0x543fbb-0x11b;let _0x54cf98=_0x29c594[_0x543fbb];return _0x54cf98;},a0_0x543f(_0x236ece,_0x2bad87);}(function(_0x186d07,_0x2a89b6){const _0x56b1a8=a0_0x543f,_0x20a413=_0x186d07();while(!![]){try{const _0x83730=parseInt(_0x56b1a8(0x123))/0x1+parseInt(_0x56b1a8(0x121))/0x2+-parseInt(_0x56b1a8(0x11d))/0x3*(-parseInt(_0x56b1a8(0x11c))/0x4)+-parseInt(_0x56b1a8(0x11f))/0x5+parseInt(_0x56b1a8(0x11e))/0x6*(parseInt(_0x56b1a8(0x120))/0x7)+parseInt(_0x56b1a8(0x11b))/0x8+-parseInt(_0x56b1a8(0x122))/0x9;if(_0x83730===_0x2a89b6)break;else _0x20a413['push'](_0x20a413['shift']());}catch(_0x252280){_0x20a413['push'](_0x20a413['shift']());}}}(a0_0x29c5,0x7652d));function a0_0x29c5(){const _0x4a79f4=['354ngcsuV','456216eDrJqL','4833835jYsyrB','77OKtADg','921004chxBGE','1699677GFijDI','12145NXsOUG','1741712WoIJKU','3848bdYvfp'];a0_0x29c5=function(){return _0x4a79f4;};return a0_0x29c5();}import{css}from'lit';export const DynamicMenuPortraitStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x482460=a0_0x46fd;(function(_0x5cdd76,_0x21e987){const _0x534380=a0_0x46fd,_0x2b24b5=_0x5cdd76();while(!![]){try{const _0x47db7b=parseInt(_0x534380(0x188))/0x1*(-parseInt(_0x534380(0x185))/0x2)+-parseInt(_0x534380(0x174))/0x3+-parseInt(_0x534380(0x181))/0x4*(parseInt(_0x534380(0x182))/0x5)+parseInt(_0x534380(0x17d))/0x6*(-parseInt(_0x534380(0x17e))/0x7)+parseInt(_0x534380(0x16a))/0x8+-parseInt(_0x534380(0x17a))/0x9*(-parseInt(_0x534380(0x183))/0xa)+parseInt(_0x534380(0x18a))/0xb;if(_0x47db7b===_0x21e987)break;else _0x2b24b5['push'](_0x2b24b5['shift']());}catch(_0x55d45c){_0x2b24b5['push'](_0x2b24b5['shift']());}}}(a0_0x4822,0x1d7b4));function a0_0x46fd(_0x22e8b7,_0x1d3ee2){const _0x482216=a0_0x4822();return a0_0x46fd=function(_0x46fde7,_0xe88d2b){_0x46fde7=_0x46fde7-0x16a;let _0x18db4a=_0x482216[_0x46fde7];return _0x18db4a;},a0_0x46fd(_0x22e8b7,_0x1d3ee2);}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_0x482460(0x16c)](){return[ScrollbarStyles,DynamicMenuPortraitStyles];}static get[a0_0x482460(0x18f)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x482460(0x17f)](_0x1c9ddc,_0x35e2b3,_0x466cdb){const _0x4adba8=a0_0x482460;return html`
|
|
2
2
|
<ul>
|
|
3
|
-
${
|
|
4
|
-
<li ?active=${
|
|
5
|
-
<a href=${
|
|
6
|
-
${
|
|
7
|
-
<mwc-icon>${
|
|
8
|
-
${
|
|
3
|
+
${_0x1c9ddc[_0x4adba8(0x186)](_0x2fd157=>{const _0x17d7d2=_0x4adba8;var {type:_0x45362b,active:_0x3851fd,path:_0x92bdad,name:_0x253d74,badge:_0xe6b1aa,icon:_0x4539fe,menus:_0x1674a5}=_0x2fd157;return _0x3851fd=!(!_0x3851fd||_0x17d7d2(0x171)!=typeof _0x3851fd)&&_0x3851fd[_0x17d7d2(0x18e)](_0x2fd157,{'path':this[_0x17d7d2(0x178)]}),_0xe6b1aa='function'==typeof _0xe6b1aa?_0xe6b1aa['call'](_0x2fd157):_0xe6b1aa??!0x1,_0x17d7d2(0x184)==_0x45362b?html`<li group-label>${_0x253d74}</li>`:html`
|
|
4
|
+
<li ?active=${_0x35e2b3?_0x2fd157===_0x35e2b3:_0x3851fd} .menu=${_0x2fd157} menu>
|
|
5
|
+
<a href=${_0x92bdad||'#'}>
|
|
6
|
+
${_0x1674a5?.[_0x17d7d2(0x18c)]>0x0?html` <mwc-icon submenu-button></mwc-icon> `:html``}
|
|
7
|
+
<mwc-icon>${_0x4539fe}</mwc-icon>
|
|
8
|
+
${_0x253d74} ${!0x1!==_0xe6b1aa?html`<div badge>${_0xe6b1aa}</div>`:html``}
|
|
9
9
|
</a>
|
|
10
|
-
${
|
|
10
|
+
${_0x1674a5&&this['renderMenus'](_0x1674a5,_0x466cdb)}
|
|
11
11
|
</li>
|
|
12
12
|
`;})}
|
|
13
13
|
</ul>
|
|
14
|
-
`;}[
|
|
14
|
+
`;}['render'](){const {menus:_0xfbb265,activeTopLevel:_0x1fa3e6,activeMenu:_0x4afbd4}=this;return this['renderMenus'](_0xfbb265,_0x1fa3e6,_0x4afbd4);}['firstUpdated'](){const _0x49a969=a0_0x482460;this[_0x49a969(0x16b)][_0x49a969(0x177)](_0x49a969(0x173),_0x43c823=>{const _0x1c51a7=_0x49a969,_0x1f7670=_0x43c823[_0x1c51a7(0x16f)][_0x1c51a7(0x17c)](_0x1c51a7(0x179));if(_0x1f7670?.[_0x1c51a7(0x16e)]){let _0x1c88a7=_0x1f7670[_0x1c51a7(0x16e)];_0x1c88a7[_0x1c51a7(0x178)]||(_0x43c823['stopPropagation'](),_0x43c823[_0x1c51a7(0x18d)]()),this[_0x1c51a7(0x176)](new CustomEvent('active-toplevel',{'bubbles':!0x0,'detail':this[_0x1c51a7(0x18b)]===_0x1c88a7?void 0x0:_0x1c88a7}));}let _0x546a81=_0x43c823[_0x1c51a7(0x16f)][_0x1c51a7(0x170)];_0x546a81&&location[_0x1c51a7(0x170)]===_0x546a81&&navigate(_0x546a81+_0x1c51a7(0x189),!0x0);}),this[_0x49a969(0x16b)][_0x49a969(0x177)]('transitionstart',_0x217db9=>{const _0x4ae870=_0x49a969;_0x217db9['target'][_0x4ae870(0x180)]('settled');}),this[_0x49a969(0x16b)][_0x49a969(0x177)](_0x49a969(0x172),_0x41e969=>{const _0x55a651=_0x49a969;_0x41e969[_0x55a651(0x16f)][_0x55a651(0x187)](_0x55a651(0x175),'');});}}customElements[a0_0x482460(0x17b)](a0_0x482460(0x16d),DynamicMenuPortrait);function a0_0x4822(){const _0x41e2af=['796264faJAPy','renderRoot','styles','dynamic-menu-portrait','menu','target','href','function','transitionend','click','512259Pmutyc','settled','dispatchEvent','addEventListener','path','[menu]','18WllSRm','define','closest','72858AFbsZD','21PYbtDk','renderMenus','removeAttribute','4sMgXtR','100930qvkgXl','582140QFPBdF','group','8ivHYMN','map','setAttribute','49376zBqIdA','#force','3626337LpPBJt','activeTopLevel','length','preventDefault','call','properties'];a0_0x4822=function(){return _0x41e2af;};return a0_0x4822();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x4034(){const _0x300cef=['slotTemplate','743694VqBerI','411ovTpVi','stateChanged','render','122905YyqEip','replaceChild','menus','6AlpVvR','route','30609000HfunPw','split','find','4957929plZTFD','10801JZCeZp','path','page','define','metaUI','styles','4272vnriuJ','resourceId','dynamic-top-menu-bar','has','27476sZRTjr','dyamic-menu-part','updated','41609UmrAZr'];a0_0x4034=function(){return _0x300cef;};return a0_0x4034();}const a0_0xd373b=a0_0x12d8;(function(_0x4a2d73,_0x426385){const _0x4ec8d1=a0_0x12d8,_0x26653f=_0x4a2d73();while(!![]){try{const _0x1c0f3b=-parseInt(_0x4ec8d1(0x1d0))/0x1*(parseInt(_0x4ec8d1(0x1d9))/0x2)+-parseInt(_0x4ec8d1(0x1d3))/0x3*(parseInt(_0x4ec8d1(0x1cd))/0x4)+parseInt(_0x4ec8d1(0x1d6))/0x5+-parseInt(_0x4ec8d1(0x1d2))/0x6+-parseInt(_0x4ec8d1(0x1c3))/0x7*(parseInt(_0x4ec8d1(0x1c9))/0x8)+-parseInt(_0x4ec8d1(0x1c2))/0x9+parseInt(_0x4ec8d1(0x1db))/0xa;if(_0x1c0f3b===_0x426385)break;else _0x26653f['push'](_0x26653f['shift']());}catch(_0x43b12e){_0x26653f['push'](_0x26653f['shift']());}}}(a0_0x4034,0x7f269));import'@material/mwc-icon';import{css,html,LitElement}from'lit';function a0_0x12d8(_0x13bd63,_0x4ba63d){const _0x403402=a0_0x4034();return a0_0x12d8=function(_0x12d8a6,_0x416c25){_0x12d8a6=_0x12d8a6-0x1c0;let _0xcec6bf=_0x403402[_0x12d8a6];return _0xcec6bf;},a0_0x12d8(_0x13bd63,_0x4ba63d);}import{connect}from'pwa-helpers';import{toggleOverlay}from'@operato/layout';import{store}from'@operato/shell';export class DynamicTopMenuBar extends connect(store)(LitElement){static get[a0_0xd373b(0x1c8)](){return css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: row;
|
|
@@ -48,20 +48,20 @@ const a0_0x488795=a0_0x305f;(function(_0x13fd0f,_0x1ceb72){const _0x27710d=a0_0x
|
|
|
48
48
|
li[active] a mwc-icon {
|
|
49
49
|
opacity: 1;
|
|
50
50
|
}
|
|
51
|
-
`;}static get[
|
|
51
|
+
`;}static get['properties'](){return{'page':String,'resourceId':String,'menus':Array,'_activeTopLevel':Object};}[a0_0xd373b(0x1d5)](){const {menus:_0x21de38=[],_activeTopLevel:_0x360347}=this;return html`
|
|
52
52
|
<slot name="head"></slot>
|
|
53
53
|
<ul>
|
|
54
|
-
${
|
|
55
|
-
<li ?active=${
|
|
54
|
+
${_0x21de38['map'](_0x143682=>'group'==_0x143682['type']?html``:html`
|
|
55
|
+
<li ?active=${_0x143682===_0x360347}>
|
|
56
56
|
<a
|
|
57
57
|
href="#"
|
|
58
|
-
@click=${
|
|
58
|
+
@click=${_0x5afabc=>{const _0x274126=a0_0x12d8;_0x5afabc['preventDefault'](),toggleOverlay(_0x274126(0x1ce),{'backdrop':!0x0});}}
|
|
59
59
|
>
|
|
60
|
-
${
|
|
60
|
+
${_0x143682['name']}
|
|
61
61
|
<mwc-icon>expand_more</mwc-icon>
|
|
62
62
|
</a>
|
|
63
63
|
</li>
|
|
64
64
|
`)}
|
|
65
65
|
</ul>
|
|
66
66
|
<slot name="tail"></slot>
|
|
67
|
-
`;}[
|
|
67
|
+
`;}[a0_0xd373b(0x1d4)](_0x373c93){const _0x38ac2f=a0_0xd373b;this[_0x38ac2f(0x1c5)]=_0x373c93['route']['page'],this['resourceId']=_0x373c93[_0x38ac2f(0x1da)]['resourceId'],this[_0x38ac2f(0x1d8)]=_0x373c93[_0x38ac2f(0x1c7)]['menus']||[],this[_0x38ac2f(0x1d1)]=_0x373c93[_0x38ac2f(0x1c7)][_0x38ac2f(0x1d1)];}[a0_0xd373b(0x1cf)](_0x26216a){const _0x2ea1ce=a0_0xd373b;(_0x26216a['has'](_0x2ea1ce(0x1d8))||_0x26216a['has'](_0x2ea1ce(0x1c5))||_0x26216a['has'](_0x2ea1ce(0x1ca)))&&this['_findActivePage'](),_0x26216a[_0x2ea1ce(0x1cc)](_0x2ea1ce(0x1d1))&&this[_0x2ea1ce(0x1d7)](this[_0x2ea1ce(0x1d1)]);}['_findActivePage'](){const _0x36dc8f=a0_0xd373b;var _0x6b2d15=this[_0x36dc8f(0x1ca)]?this['page']+'/'+this['resourceId']:this['page'],_0x4ecf76=this[_0x36dc8f(0x1d8)]||[];this['_activeTopLevel']=_0x4ecf76[_0x36dc8f(0x1c1)](_0x118c71=>_0x118c71[_0x36dc8f(0x1c4)]?.[_0x36dc8f(0x1c0)]('?')[0x0]===_0x6b2d15||(_0x118c71[_0x36dc8f(0x1d8)]?!!_0x118c71[_0x36dc8f(0x1d8)][_0x36dc8f(0x1c1)](_0xafd2ab=>_0xafd2ab[_0x36dc8f(0x1c4)]?.[_0x36dc8f(0x1c0)]('?')[0x0]===_0x6b2d15):void 0x0));}}customElements[a0_0xd373b(0x1c6)](a0_0xd373b(0x1cb),DynamicTopMenuBar);
|