@things-factory/meta-ui 6.0.78 → 6.0.82
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 +3 -1
- package/client/pages/activity/meta-activity-writer-element.js +3 -20
- package/client/pages/activity/meta-activiy-mixin.js +18 -0
- 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 +5 -5
- 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 +14 -14
- 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 +94 -87
- 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
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
const a0_0x150189=a0_0x1f67;(function(_0x1c754a,_0xab0d6c){const _0x41f01d=a0_0x1f67,_0x5da748=_0x1c754a();while(!![]){try{const _0x137a8c=-parseInt(_0x41f01d(0xca))/0x1*(-parseInt(_0x41f01d(0xd2))/0x2)+parseInt(_0x41f01d(0xf9))/0x3+parseInt(_0x41f01d(0xfb))/0x4*(parseInt(_0x41f01d(0xd6))/0x5)+parseInt(_0x41f01d(0xce))/0x6+parseInt(_0x41f01d(0x122))/0x7*(parseInt(_0x41f01d(0x124))/0x8)+parseInt(_0x41f01d(0x130))/0x9*(parseInt(_0x41f01d(0xf1))/0xa)+-parseInt(_0x41f01d(0x12a))/0xb*(parseInt(_0x41f01d(0xf5))/0xc);if(_0x137a8c===_0xab0d6c)break;else _0x5da748['push'](_0x5da748['shift']());}catch(_0x55ce32){_0x5da748['push'](_0x5da748['shift']());}}}(a0_0x316a,0x7df6c));import{store}from'@things-factory/shell';import{getCodeByName}from'@things-factory/code-base';import{EXPORT}from'@things-factory/export-base';function a0_0x1f67(_0x15e57e,_0x5aa48e){const _0x316aa3=a0_0x316a();return a0_0x1f67=function(_0x1f67d8,_0x188948){_0x1f67d8=_0x1f67d8-0xb6;let _0x4a73e4=_0x316aa3[_0x1f67d8];return _0x4a73e4;},a0_0x1f67(_0x15e57e,_0x5aa48e);}import{gqlBuilder}from'@things-factory/utils';import{client}from'@operato/graphql';import{TermsUtil}from'./terms-util';import{UiUtil}from'./ui-util';import a0_0x3babc1 from'graphql-tag';import{ValueUtil}from'./value-util';import{asyncReplace}from'lit/directives/async-replace.js';import a0_0x17e1cb from'i18next';function a0_0x316a(){const _0x9bfffe=['patchesForUpdateMultiple','arrangeMenuRoutes','numberOfDrafts','error','\x0a\x20\x20\x20\x20','dirtyRecords','rank','gutter','errors','push','findIndex','430QFtvOk','__seq__','deleteListByGristSelected','isNotEmpty','2068452wyZzSa','dispatch','tText','sort','1964439rySyAX','xlsx','2936DLkAgn','numberOfToDos','menus','findOne','__selected__','showAlertPopup','description','text.NOTHING_CHANGED','imex','children','items','success\x20to\x20process','codeItems','searchMenuGridPersnalTemplate','routingType','splice','length','updateMultiple','updateMultipleData','test','confirm','searchByPagination','unshift','checkClientError','exportableData','\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','map','object','value','group','resourceUrl','delete','getCodeByScenario','networkError','showGraphqlException','routing','cancel','HIDDEN-PAGE','getCodeSelectorData','7eZRReg','todo-list','2284136vaszsN','_config','buildArgs','extensions','approval-pending-list','question','88yXiuVs','tMenu','path','deleteListByIds','hiddenFlag','undefined','3834FdjKgo','showToast','menu.id','getCodeByEntity','parent','text.are_you_sure','showGraphqlErrorResponse','forEach','total','__dirtyfields__','title','info','selected','name','GROUP','noteq','updater','filter','hidden','badge','HOME','button.delete','records','split','active','code','data','isEmpty','result','348298ScmMmg','category','query','numberOfApprovalPendings','77196hiUjdj','runScenario','myDynamicMenus','parse','4VNbZwK','__dirty__','gridPersonalizeTemplates','button.','1545FutFtO','text.nothing_selected','MENU','type','id,template','message','find','\x0a\x20\x20\x20\x20\x20\x20','fetch','callScenario','menuType','columns','reduce','createdAt','iconPath','success\x20to\x20save'];a0_0x316a=function(){return _0x9bfffe;};return a0_0x316a();}import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';export class ServiceUtil{static async[a0_0x150189(0x107)](_0x465b05){return await getCodeByName(_0x465b05);}static async[a0_0x150189(0x121)](_0x4e8c38){const _0x71b883=a0_0x150189;let _0x216898=(await ServiceUtil['codeItems'](_0x4e8c38))['map'](_0x121997=>({'value':_0x121997[_0x71b883(0xba)],'display':_0x121997[_0x71b883(0x101)]}));return _0x216898[_0x71b883(0x111)]({'value':'','display':''}),_0x216898;}static async[a0_0x150189(0x11b)](_0x25e614,_0x53dbb6){const _0x41af44=a0_0x150189;let _0x514656=await ServiceUtil[_0x41af44(0xdf)](null,_0x25e614,_0x53dbb6);return _0x514656[_0x41af44(0x111)]({'name':'','description':''}),_0x514656[_0x41af44(0x115)](_0x545e1e=>({'value':_0x545e1e[_0x41af44(0xba)],'display':_0x545e1e[_0x41af44(0x101)]}));}static async[a0_0x150189(0x133)]({queryName:_0x4bdd28,codeField:_0x4f9461=a0_0x150189(0xba),dispField:_0x119a19=a0_0x150189(0x101),filters:_0x3cc734=[],sorters:_0x338110=[]}){const _0x15dfdf=a0_0x150189;let _0x2d964a=_0x15dfdf(0xdd)+_0x4f9461+_0x15dfdf(0xdd)+_0x119a19+_0x15dfdf(0xea),_0x4acac6=await ServiceUtil[_0x15dfdf(0x110)](_0x4bdd28,_0x3cc734,_0x338110,0x0,0x0,_0x2d964a),_0xade56a=[{'name':'','description':''}];return _0x4acac6['records'][_0x15dfdf(0x137)](_0x4a3eec=>{_0xade56a['push']({'value':_0x4a3eec[_0x4f9461],'display':_0x4a3eec[_0x119a19]});}),_0xade56a;}static async[a0_0x150189(0xd0)](){const _0x20ffc6=a0_0x150189;let _0x48f5da=await ServiceUtil['searchMyDynamicMenus']();return null!=_0x48f5da?ServiceUtil[_0x20ffc6(0xe7)](_0x48f5da):null;}static async[a0_0x150189(0x108)](_0x378ee0){const _0x2e11b5=a0_0x150189;let _0x2aabab=[{'name':_0x2e11b5(0x132),'operator':'eq','value':_0x378ee0}],_0x50be80=await ServiceUtil['searchByPagination'](_0x2e11b5(0xd4),_0x2aabab,[],0x0,0x0,_0x2e11b5(0xda));return 0x0==_0x50be80[_0x2e11b5(0x138)]?{}:{'id':_0x50be80[_0x2e11b5(0xc3)][0x0]['id'],'template':JSON[_0x2e11b5(0xd1)](_0x50be80[_0x2e11b5(0xc3)][0x0]['template'])};}static[a0_0x150189(0xe7)](_0x14b1ad){const _0x4ffcbf=a0_0x150189;let _0xecdf22=[];_0x14b1ad[_0x4ffcbf(0x137)](_0x259d74=>{const _0x3752e0=_0x4ffcbf;_0xecdf22[_0x3752e0(0xef)](_0x259d74),_0x259d74[_0x3752e0(0x104)]&&(_0x259d74[_0x3752e0(0x104)][_0x3752e0(0xf8)](function(_0xe62a93,_0x1c9390){const _0x1f2b40=_0x3752e0;return _0xe62a93[_0x1f2b40(0xec)]-_0x1c9390['rank'];}),_0x259d74[_0x3752e0(0x104)][_0x3752e0(0x137)](_0x2e1ca0=>{const _0x59546f=_0x3752e0;0x1!=_0x2e1ca0[_0x59546f(0x12e)]&&(_0x2e1ca0[_0x59546f(0x134)]=_0x259d74,_0xecdf22[_0x59546f(0xef)](_0x2e1ca0));}));});let _0x4e1e82=_0xecdf22[_0x4ffcbf(0x115)](_0x3341cc=>{const _0x570f62=_0x4ffcbf;if(_0x570f62(0xbb)==_0x3341cc['menuType']||_0x570f62(0xd8)==_0x3341cc[_0x570f62(0xe0)]){let _0x235c18={'id':_0x3341cc['id'],'parent':!0x0,'name':TermsUtil[_0x570f62(0x12b)](_0x3341cc[_0x570f62(0xba)]),'icon':_0x3341cc[_0x570f62(0xe4)],'type':'GROUP'==_0x3341cc[_0x570f62(0xe0)]?'group':'','menus':[]};return _0x3341cc['routing']&&(_0x235c18[_0x570f62(0x12c)]=_0x3341cc['routing']),_0x235c18;}return{'id':'0'};})[_0x4ffcbf(0xbe)](_0x5d3296=>'0'!=_0x5d3296['id']),_0x5d7a4d=_0xecdf22[_0x4ffcbf(0x115)](_0x39bebf=>{const _0x4ca2be=_0x4ffcbf;if('SCREEN'==_0x39bebf[_0x4ca2be(0xe0)]||_0x4ca2be(0x120)==_0x39bebf['menuType']){let _0x218d78=_0x4e1e82[_0x4ca2be(0xdc)](_0xd8e59e=>_0xd8e59e['id']==_0x39bebf[_0x4ca2be(0x134)]['id']);if(_0x218d78){let _0x9fcba7=TermsUtil['tMenu'](_0x39bebf[_0x4ca2be(0xba)]);return'SCREEN'==_0x39bebf['menuType']&&_0x218d78[_0x4ca2be(0xfd)]['push']({'id':_0x39bebf['id'],'name':_0x9fcba7,'path':_0x39bebf[_0x4ca2be(0x11e)],'icon':_0x39bebf[_0x4ca2be(0xe4)]}),{'id':_0x39bebf['id'],'parent':!0x1,'parent_id':_0x218d78['id'],'title':_0x9fcba7,'tagname':_0x39bebf[_0x4ca2be(0xcb)],'page':_0x39bebf[_0x4ca2be(0x11e)],'template':_0x39bebf[_0x4ca2be(0x119)],'routing_type':_0x39bebf['routingType']};}return{'id':'0'};}return _0x4ca2be(0xc1)==_0x39bebf[_0x4ca2be(0xe0)]?{'id':_0x39bebf['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil[_0x4ca2be(0x12b)](_0x39bebf[_0x4ca2be(0xba)]),'tagname':_0x39bebf[_0x4ca2be(0xcb)],'page':_0x39bebf[_0x4ca2be(0x11e)],'template':_0x39bebf[_0x4ca2be(0x119)],'routing_type':_0x39bebf[_0x4ca2be(0x109)]}:{'id':'0'};})[_0x4ffcbf(0xbe)](_0x4e893f=>null!=_0x4e893f&&'0'!=_0x4e893f['id']);_0x4e1e82['filter'](_0x7677e9=>_0x4ffcbf(0x118)==_0x7677e9[_0x4ffcbf(0xd9)]&&_0x7677e9[_0x4ffcbf(0xfd)]&&_0x7677e9[_0x4ffcbf(0xfd)][_0x4ffcbf(0x10b)]>0x0)[_0x4ffcbf(0x137)](_0x300e9f=>{const _0x109d15=_0x4ffcbf;let _0x2049c8=_0x4e1e82[_0x109d15(0xf0)](_0x52c060=>_0x52c060['id']==_0x300e9f['id'])+0x1;_0x4e1e82[_0x109d15(0x10a)](_0x2049c8,0x0,..._0x300e9f[_0x109d15(0xfd)]);});let _0x323d9d=0x0;return _0x4e1e82[_0x4ffcbf(0x137)](_0x1b9b50=>{const _0xd1d4ea=_0x4ffcbf;_0xd1d4ea(0x123)==_0x1b9b50['path']?(_0x323d9d++,_0x1b9b50[_0xd1d4ea(0xc0)]=()=>asyncReplace(generateActivitySummary(_0xd1d4ea(0xfc))),_0x1b9b50[_0xd1d4ea(0xc5)]=({path:_0x25afbc})=>/^activity\//[_0xd1d4ea(0x10e)](_0x25afbc)):_0xd1d4ea(0x128)==_0x1b9b50['path']?(_0x323d9d++,_0x1b9b50[_0xd1d4ea(0xc0)]=()=>asyncReplace(generateActivitySummary(_0xd1d4ea(0xcd))),_0x1b9b50['active']=({path:_0x111628})=>/^activity\//[_0xd1d4ea(0x10e)](_0x111628)):'draft-list'==_0x1b9b50['path']&&(_0x323d9d++,_0x1b9b50[_0xd1d4ea(0xc0)]=()=>asyncReplace(generateActivitySummary(_0xd1d4ea(0xe8))));}),_0x323d9d>0x0&&startSubscribeActivitySummary(),{'menus':_0x4e1e82,'routes':_0x5d7a4d};}static async['searchMyDynamicMenus'](){const _0x1a393f=a0_0x150189;let _0x2dbdfe=await ServiceUtil[_0x1a393f(0x110)](_0x1a393f(0xfd),[{'name':'hiddenFlag','operator':_0x1a393f(0xbc),'value':!0x0},{'name':'menuType','operator':'in','value':['HOME',_0x1a393f(0xd8),'GROUP']}],[{'name':_0x1a393f(0xec)}],0x0,0x0,_0x1a393f(0x114));return _0x2dbdfe?_0x2dbdfe['records']:[];}static async[a0_0x150189(0x136)](_0x3b2095){const _0x135ed1=a0_0x150189;if(_0x3b2095[_0x135ed1(0xee)]&&_0x3b2095[_0x135ed1(0xee)][_0x135ed1(0x10b)]>0x0){let _0x26c127=_0x3b2095[_0x135ed1(0xee)][0x0],_0x3cffe5=_0x26c127[_0x135ed1(0xdb)],_0x7cd2ab=_0x26c127[_0x135ed1(0xdb)];_0x26c127[_0x135ed1(0x127)]&&(_0x7cd2ab=_0x26c127[_0x135ed1(0x127)][_0x135ed1(0xc6)]),await UiUtil[_0x135ed1(0x100)](_0x7cd2ab,_0x3cffe5,'error',_0x135ed1(0x10f));}}static async[a0_0x150189(0x11d)](_0x2e28c8){const _0x4b4622=a0_0x150189;_0x2e28c8&&(_0x2e28c8['networkError']&&_0x2e28c8[_0x4b4622(0x11c)][_0x4b4622(0xc9)]?await ServiceUtil['showGraphqlErrorResponse'](_0x2e28c8[_0x4b4622(0x11c)][_0x4b4622(0xc9)]):await UiUtil[_0x4b4622(0x100)]('Graphql\x20Error',_0x2e28c8[_0x4b4622(0xdb)],_0x4b4622(0xe9),_0x4b4622(0x10f)));}static async[a0_0x150189(0x113)](_0x4c45a4,_0x98b3f5,_0x615a78){const _0x4450da=a0_0x150189;var _0x60f83f=_0x615a78[_0x4450da(0x125)][_0x4450da(0xe1)][_0x4450da(0xbe)](_0x2c660d=>_0x4450da(0xed)!==_0x2c660d[_0x4450da(0xd9)]&&void 0x0!==_0x2c660d['record']&&void 0x0!==_0x2c660d['imex']&&!0x0!==_0x2c660d[_0x4450da(0xbf)])[_0x4450da(0x115)](_0x162875=>_0x162875[_0x4450da(0x103)]),_0x17dc4b=_0x615a78[_0x4450da(0xc7)][_0x4450da(0xc3)][_0x4450da(0x115)](_0x2b9a16=>({..._0x615a78['_config'][_0x4450da(0xe1)][_0x4450da(0xbe)](_0x2bf682=>_0x4450da(0xed)!==_0x2bf682[_0x4450da(0xd9)]&&void 0x0!==_0x2bf682['record']&&void 0x0!==_0x2bf682['imex']&&!0x0!==_0x2bf682[_0x4450da(0xbf)])[_0x4450da(0xe2)]((_0x31f676,_0x29a0ae)=>(_0x31f676[_0x29a0ae[_0x4450da(0x103)]['key']]=_0x29a0ae[_0x4450da(0x103)]['key'][_0x4450da(0xc4)]('.')[_0x4450da(0xe2)]((_0x4ff82e,_0x2b2223)=>_0x4ff82e&&_0x4450da(0x12f)!==_0x4ff82e[_0x2b2223]?_0x4ff82e[_0x2b2223]:void 0x0,_0x2b9a16),_0x31f676),{})}));if(!_0x4c45a4)return{'header':_0x60f83f,'data':_0x17dc4b};store[_0x4450da(0xf6)]({'type':EXPORT,'exportable':{'extension':_0x4450da(0xfa),'name':_0x98b3f5,'data':{'header':_0x60f83f,'data':_0x17dc4b}}});}static async[a0_0x150189(0x110)](_0x5eeb0f,_0x3d8f94,_0x4a8c8f,_0x152345,_0x2c290a,_0x377f1f){const _0x1f561d=a0_0x150189;try{const _0x2d90b9=await client[_0x1f561d(0xcc)]({'query':a0_0x3babc1`
|
|
1
|
+
const a0_0x3602b8=a0_0x31f9;(function(_0x446116,_0x54b0e2){const _0x4a5258=a0_0x31f9,_0x577ee5=_0x446116();while(!![]){try{const _0xc03ede=parseInt(_0x4a5258(0x1ce))/0x1*(parseInt(_0x4a5258(0x1d2))/0x2)+parseInt(_0x4a5258(0x215))/0x3+-parseInt(_0x4a5258(0x1bd))/0x4*(-parseInt(_0x4a5258(0x1f5))/0x5)+-parseInt(_0x4a5258(0x20a))/0x6+-parseInt(_0x4a5258(0x1d1))/0x7*(-parseInt(_0x4a5258(0x1fd))/0x8)+parseInt(_0x4a5258(0x211))/0x9+-parseInt(_0x4a5258(0x1f7))/0xa*(parseInt(_0x4a5258(0x22d))/0xb);if(_0xc03ede===_0x54b0e2)break;else _0x577ee5['push'](_0x577ee5['shift']());}catch(_0x3d26ba){_0x577ee5['push'](_0x577ee5['shift']());}}}(a0_0x1563,0x5c651));import{store}from'@things-factory/shell';function a0_0x31f9(_0x24e466,_0xddf343){const _0x15639d=a0_0x1563();return a0_0x31f9=function(_0x31f9cc,_0x390a38){_0x31f9cc=_0x31f9cc-0x1ba;let _0x325f0f=_0x15639d[_0x31f9cc];return _0x325f0f;},a0_0x31f9(_0x24e466,_0xddf343);}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';import a0_0x192684 from'graphql-tag';import{ValueUtil}from'./value-util';function a0_0x1563(){const _0x2426a8=['\x0a\x20\x20\x20\x20\x20\x20','33otxVPw','__seq__','parse','todo-list','query','splice','text.there_is_nothing_to_delete','HOME','hidden','9068CMprOF','searchByPagination','checkClientError','success\x20to\x20delete','SCREEN','showGraphqlErrorResponse','gridPersonalizeTemplates','active','myDynamicMenus','template','menus','\x0a\x20\x20\x20\x20','approval-pending-list','children','searchMyDynamicMenus','undefined','cuFlag','4pbqJbU','question','parent','623973jSBMWn','360958aoXAwe','object','button.delete','forEach','category','result','text.nothing_selected','showGraphqlException','length','menuType','iconPath','unshift','total','name','confirm','callScenario','text.are_you_sure','badge','test','runScenario','isNotEmpty','includes','updatedAt','buildArgs','MENU','exportableData','numberOfDrafts','__dirty__','value','imex','deleteListByGristSelected','menu.id','noteq','sort','rank','295ecyGpH','errors','3991910QYkocu','routingType','records','HIDDEN-PAGE','numberOfApprovalPendings','info','8NZoQHQ','showAlertPopup','tText','getCodeSelectorData','deleteListByIds','find','draft-list','fetch','filter','columns','\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','codeItems','group','103380jwFGoV','__selected__','key','cancel','dirtyRecords','updateMultiple','description','1615671YIakGR','selected','push','resourceUrl','1406775RkVPhh','record','__dirtyfields__','code','data','GROUP','arrangeMenuRoutes','split','message','text.nothing_changed','title','tMenu','networkError','getSelectedIdList','error','hiddenFlag','path','showToast','type','map','extensions','routing','patchesForUpdateMultiple'];a0_0x1563=function(){return _0x2426a8;};return a0_0x1563();}import{asyncReplace}from'lit/directives/async-replace.js';import a0_0x69d479 from'i18next';import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';export class ServiceUtil{static async[a0_0x3602b8(0x208)](_0x2c3b20){return await getCodeByName(_0x2c3b20);}static async[a0_0x3602b8(0x200)](_0x5a6e69){const _0x277944=a0_0x3602b8;let _0x4ced3f=(await ServiceUtil[_0x277944(0x208)](_0x5a6e69))[_0x277944(0x228)](_0xd6db60=>({'value':_0xd6db60['name'],'display':_0xd6db60[_0x277944(0x210)]}));return _0x4ced3f[_0x277944(0x1dd)]({'value':'','display':''}),_0x4ced3f;}static async['getCodeByScenario'](_0x52eed5,_0x3d4028){const _0x3d5c13=a0_0x3602b8;let _0x1ac2ee=await ServiceUtil[_0x3d5c13(0x1e1)](null,_0x52eed5,_0x3d4028);return _0x1ac2ee[_0x3d5c13(0x1dd)]({'name':'','description':''}),_0x1ac2ee[_0x3d5c13(0x228)](_0x110210=>({'value':_0x110210[_0x3d5c13(0x1df)],'display':_0x110210[_0x3d5c13(0x210)]}));}static async['getCodeByEntity']({queryName:_0x40870b,codeField:_0x3021a4=a0_0x3602b8(0x1df),dispField:_0x2644fd=a0_0x3602b8(0x210),filters:_0x53ab9e=[],sorters:_0x684ac1=[]}){const _0x10d67d=a0_0x3602b8;let _0x9fd44d=_0x10d67d(0x22c)+_0x3021a4+_0x10d67d(0x22c)+_0x2644fd+_0x10d67d(0x1c8),_0x4de49b=await ServiceUtil[_0x10d67d(0x1be)](_0x40870b,_0x53ab9e,_0x684ac1,0x0,0x0,_0x9fd44d),_0x4c57eb=[{'name':'','description':''}];return _0x4de49b[_0x10d67d(0x1f9)][_0x10d67d(0x1d5)](_0x14ec2e=>{const _0xf94ee4=_0x10d67d;_0x4c57eb[_0xf94ee4(0x213)]({'value':_0x14ec2e[_0x3021a4],'display':_0x14ec2e[_0x2644fd]});}),_0x4c57eb;}static async[a0_0x3602b8(0x1c5)](){const _0x2978cd=a0_0x3602b8;let _0xd36245=await ServiceUtil[_0x2978cd(0x1cb)]();return null!=_0xd36245?ServiceUtil[_0x2978cd(0x21b)](_0xd36245):null;}static async['searchMenuGridPersnalTemplate'](_0x58ef14){const _0x11a519=a0_0x3602b8;let _0x25754b=[{'name':_0x11a519(0x1f1),'operator':'eq','value':_0x58ef14}],_0x2e9342=await ServiceUtil['searchByPagination'](_0x11a519(0x1c3),_0x25754b,[],0x0,0x0,'id,template');return 0x0==_0x2e9342['total']?{}:{'id':_0x2e9342[_0x11a519(0x1f9)][0x0]['id'],'template':JSON[_0x11a519(0x22f)](_0x2e9342[_0x11a519(0x1f9)][0x0][_0x11a519(0x1c6)])};}static[a0_0x3602b8(0x21b)](_0x5745cb){const _0x6ae563=a0_0x3602b8;let _0x16025e=[];_0x5745cb[_0x6ae563(0x1d5)](_0x7d4e55=>{const _0x2399e9=_0x6ae563;_0x16025e[_0x2399e9(0x213)](_0x7d4e55),_0x7d4e55[_0x2399e9(0x1ca)]&&(_0x7d4e55[_0x2399e9(0x1ca)][_0x2399e9(0x1f3)](function(_0x1b64e8,_0x45d74a){const _0x4638a2=_0x2399e9;return _0x1b64e8[_0x4638a2(0x1f4)]-_0x45d74a[_0x4638a2(0x1f4)];}),_0x7d4e55[_0x2399e9(0x1ca)]['forEach'](_0x263eec=>{const _0x33dec3=_0x2399e9;0x1!=_0x263eec[_0x33dec3(0x224)]&&(_0x263eec[_0x33dec3(0x1d0)]=_0x7d4e55,_0x16025e['push'](_0x263eec));}));});let _0xeba48e=_0x16025e['map'](_0x2d228e=>{const _0x161312=_0x6ae563;if(_0x161312(0x21a)==_0x2d228e['menuType']||_0x161312(0x1ea)==_0x2d228e[_0x161312(0x1db)]){let _0x5e30bb={'id':_0x2d228e['id'],'parent':!0x0,'name':TermsUtil['tMenu'](_0x2d228e[_0x161312(0x1df)]),'icon':_0x2d228e['iconPath'],'type':_0x161312(0x21a)==_0x2d228e[_0x161312(0x1db)]?'group':'','menus':[]};return _0x2d228e[_0x161312(0x22a)]&&(_0x5e30bb['path']=_0x2d228e[_0x161312(0x22a)]),_0x5e30bb;}return{'id':'0'};})[_0x6ae563(0x205)](_0x26a56f=>'0'!=_0x26a56f['id']),_0x420617=_0x16025e['map'](_0x381b32=>{const _0x1c0f6c=_0x6ae563;if(_0x1c0f6c(0x1c1)==_0x381b32['menuType']||_0x1c0f6c(0x1fa)==_0x381b32[_0x1c0f6c(0x1db)]){let _0x3f48ba=_0xeba48e[_0x1c0f6c(0x202)](_0x452543=>_0x452543['id']==_0x381b32['parent']['id']);if(_0x3f48ba){let _0x3ada27=TermsUtil[_0x1c0f6c(0x220)](_0x381b32[_0x1c0f6c(0x1df)]);return'SCREEN'==_0x381b32['menuType']&&_0x3f48ba[_0x1c0f6c(0x1c7)][_0x1c0f6c(0x213)]({'id':_0x381b32['id'],'name':_0x3ada27,'path':_0x381b32[_0x1c0f6c(0x22a)],'icon':_0x381b32[_0x1c0f6c(0x1dc)]}),{'id':_0x381b32['id'],'parent':!0x1,'parent_id':_0x3f48ba['id'],'title':_0x3ada27,'tagname':_0x381b32[_0x1c0f6c(0x1d6)],'page':_0x381b32[_0x1c0f6c(0x22a)],'template':_0x381b32[_0x1c0f6c(0x214)],'routing_type':_0x381b32[_0x1c0f6c(0x1f8)]};}return{'id':'0'};}return _0x1c0f6c(0x1bb)==_0x381b32[_0x1c0f6c(0x1db)]?{'id':_0x381b32['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil[_0x1c0f6c(0x220)](_0x381b32[_0x1c0f6c(0x1df)]),'tagname':_0x381b32[_0x1c0f6c(0x1d6)],'page':_0x381b32[_0x1c0f6c(0x22a)],'template':_0x381b32[_0x1c0f6c(0x214)],'routing_type':_0x381b32[_0x1c0f6c(0x1f8)]}:{'id':'0'};})[_0x6ae563(0x205)](_0x12cbd5=>null!=_0x12cbd5&&'0'!=_0x12cbd5['id']);_0xeba48e[_0x6ae563(0x205)](_0x3c9986=>_0x6ae563(0x209)==_0x3c9986[_0x6ae563(0x227)]&&_0x3c9986['menus']&&_0x3c9986[_0x6ae563(0x1c7)][_0x6ae563(0x1da)]>0x0)[_0x6ae563(0x1d5)](_0x9789f2=>{const _0x5cab85=_0x6ae563;let _0x5d44e6=_0xeba48e['findIndex'](_0x2b2b85=>_0x2b2b85['id']==_0x9789f2['id'])+0x1;_0xeba48e[_0x5cab85(0x232)](_0x5d44e6,0x0,..._0x9789f2[_0x5cab85(0x1c7)]);});let _0x362278=0x0;return _0xeba48e[_0x6ae563(0x1d5)](_0x33aaf2=>{const _0x30281f=_0x6ae563;_0x30281f(0x230)==_0x33aaf2[_0x30281f(0x225)]?(_0x362278++,_0x33aaf2[_0x30281f(0x1e3)]=()=>asyncReplace(generateActivitySummary('numberOfToDos')),_0x33aaf2[_0x30281f(0x1c4)]=({path:_0x334481})=>/^activity\//[_0x30281f(0x1e4)](_0x334481)):_0x30281f(0x1c9)==_0x33aaf2['path']?(_0x362278++,_0x33aaf2[_0x30281f(0x1e3)]=()=>asyncReplace(generateActivitySummary(_0x30281f(0x1fb))),_0x33aaf2[_0x30281f(0x1c4)]=({path:_0x39f148})=>/^activity\//[_0x30281f(0x1e4)](_0x39f148)):_0x30281f(0x203)==_0x33aaf2[_0x30281f(0x225)]&&(_0x362278++,_0x33aaf2[_0x30281f(0x1e3)]=()=>asyncReplace(generateActivitySummary(_0x30281f(0x1ec))));}),_0x362278>0x0&&startSubscribeActivitySummary(),{'menus':_0xeba48e,'routes':_0x420617};}static async['searchMyDynamicMenus'](){const _0x5c57d6=a0_0x3602b8;let _0x43a901=await ServiceUtil[_0x5c57d6(0x1be)]('menus',[{'name':_0x5c57d6(0x224),'operator':_0x5c57d6(0x1f2),'value':!0x0},{'name':'menuType','operator':'in','value':['HOME','MENU','GROUP']}],[{'name':_0x5c57d6(0x1f4)}],0x0,0x0,_0x5c57d6(0x207));return _0x43a901?_0x43a901[_0x5c57d6(0x1f9)]:[];}static async[a0_0x3602b8(0x1c2)](_0x36b42a){const _0x4a8a6c=a0_0x3602b8;if(_0x36b42a[_0x4a8a6c(0x1f6)]&&_0x36b42a['errors'][_0x4a8a6c(0x1da)]>0x0){let _0x4d4ef1=_0x36b42a['errors'][0x0],_0x5dc48e=_0x4d4ef1[_0x4a8a6c(0x21d)],_0x4841e3=_0x4d4ef1['message'];_0x4d4ef1[_0x4a8a6c(0x229)]&&(_0x4841e3=_0x4d4ef1[_0x4a8a6c(0x229)][_0x4a8a6c(0x218)]),await UiUtil['showAlertPopup'](_0x4841e3,_0x5dc48e,_0x4a8a6c(0x223),_0x4a8a6c(0x1e0));}}static async[a0_0x3602b8(0x1d9)](_0x31221){const _0x1a2432=a0_0x3602b8;_0x31221&&(_0x31221[_0x1a2432(0x221)]&&_0x31221['networkError'][_0x1a2432(0x1d7)]?await ServiceUtil[_0x1a2432(0x1c2)](_0x31221[_0x1a2432(0x221)][_0x1a2432(0x1d7)]):await UiUtil[_0x1a2432(0x1fe)]('Graphql\x20Error',_0x31221['message'],_0x1a2432(0x223),_0x1a2432(0x1e0)));}static async[a0_0x3602b8(0x1eb)](_0x6e874e,_0x15a2e3,_0x5bfd4e){const _0x3cac7c=a0_0x3602b8;var _0x459e07=_0x5bfd4e['_config'][_0x3cac7c(0x206)][_0x3cac7c(0x205)](_0x2841ec=>'gutter'!==_0x2841ec[_0x3cac7c(0x227)]&&void 0x0!==_0x2841ec['record']&&void 0x0!==_0x2841ec[_0x3cac7c(0x1ef)]&&!0x0!==_0x2841ec[_0x3cac7c(0x1bc)])[_0x3cac7c(0x228)](_0x2d1d75=>_0x2d1d75['imex']),_0x2cf529=_0x5bfd4e[_0x3cac7c(0x219)][_0x3cac7c(0x1f9)][_0x3cac7c(0x228)](_0x8823be=>({..._0x5bfd4e['_config']['columns']['filter'](_0x32635a=>'gutter'!==_0x32635a[_0x3cac7c(0x227)]&&void 0x0!==_0x32635a[_0x3cac7c(0x216)]&&void 0x0!==_0x32635a[_0x3cac7c(0x1ef)]&&!0x0!==_0x32635a[_0x3cac7c(0x1bc)])['reduce']((_0x18597c,_0x4a326b)=>(_0x18597c[_0x4a326b['imex'][_0x3cac7c(0x20c)]]=_0x4a326b[_0x3cac7c(0x1ef)][_0x3cac7c(0x20c)][_0x3cac7c(0x21c)]('.')['reduce']((_0x5d9d1e,_0x1e3d15)=>_0x5d9d1e&&_0x3cac7c(0x1cc)!==_0x5d9d1e[_0x1e3d15]?_0x5d9d1e[_0x1e3d15]:void 0x0,_0x8823be),_0x18597c),{})}));if(!_0x6e874e)return{'header':_0x459e07,'data':_0x2cf529};store['dispatch']({'type':EXPORT,'exportable':{'extension':'xlsx','name':_0x15a2e3,'data':{'header':_0x459e07,'data':_0x2cf529}}});}static async[a0_0x3602b8(0x1be)](_0x304e70,_0x479091,_0x976b5c,_0x21adaf,_0x4db480,_0x358bc1){const _0x207398=a0_0x3602b8;try{const _0x1880ba=await client[_0x207398(0x231)]({'query':a0_0x192684`
|
|
2
2
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
3
|
-
${
|
|
3
|
+
${_0x304e70}(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
4
4
|
items {
|
|
5
|
-
${
|
|
5
|
+
${_0x358bc1}
|
|
6
6
|
}
|
|
7
7
|
total
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
`,'variables':{'filters':
|
|
10
|
+
`,'variables':{'filters':_0x479091,'sortings':_0x976b5c,'pagination':{'page':_0x21adaf,'limit':_0x4db480}}});if(!_0x1880ba[_0x207398(0x1f6)])return{'records':_0x1880ba[_0x207398(0x219)][_0x304e70]['items'],'total':_0x1880ba[_0x207398(0x219)][_0x304e70][_0x207398(0x1de)]};ServiceUtil['showGraphqlErrorResponse'](_0x1880ba);}catch(_0x9b5277){ServiceUtil[_0x207398(0x1d9)](_0x9b5277);}return null;}static async['findOne'](_0x9ceb71,_0x473905,_0xab08d1){const _0x5caa03=a0_0x3602b8;try{let _0x9aa42a=await client[_0x5caa03(0x231)]({'query':a0_0x192684`
|
|
11
11
|
query ($id: String!) {
|
|
12
|
-
${
|
|
13
|
-
${
|
|
12
|
+
${_0x9ceb71}(id: $id) {
|
|
13
|
+
${_0xab08d1}
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
`,'variables':{'id':
|
|
16
|
+
`,'variables':{'id':_0x473905}});if(!_0x9aa42a[_0x5caa03(0x1f6)])return _0x9aa42a[_0x5caa03(0x219)][_0x9ceb71]||{};ServiceUtil[_0x5caa03(0x1c2)](_0x9aa42a);}catch(_0x1d488a){ServiceUtil[_0x5caa03(0x1d9)](_0x1d488a);}return null;}static['getSelectedIdList'](_0x4e7414,_0x354121){const _0x1305f8=a0_0x3602b8,_0x27a328=_0x4e7414[_0x1305f8(0x212)]['map'](_0x367a0a=>_0x367a0a['id']);return ValueUtil['isEmpty'](_0x27a328)&&0x1==_0x354121&&UiUtil[_0x1305f8(0x1fe)](_0x1305f8(0x1d8),_0x1305f8(0x1ba),_0x1305f8(0x1fc),'confirm'),_0x27a328;}static async[a0_0x3602b8(0x1f0)](_0x3e9dfa,_0x748d59){const _0x5e5676=a0_0x3602b8;let _0x45e4b9=ServiceUtil[_0x5e5676(0x222)](_0x3e9dfa,!0x0);ValueUtil[_0x5e5676(0x1e6)](_0x45e4b9)&&(await ServiceUtil[_0x5e5676(0x201)](_0x45e4b9,_0x748d59)&&_0x3e9dfa[_0x5e5676(0x204)]());}static async['deleteListByIds'](_0x41ab74,_0x3a1b4b){const _0x41cfbf=a0_0x3602b8;if(!(await UiUtil[_0x41cfbf(0x1fe)](_0x41cfbf(0x1d4),_0x41cfbf(0x1e2),_0x41cfbf(0x1cf),'delete',_0x41cfbf(0x20d)))['value'])return!0x1;try{const _0x5b2127=await client[_0x41cfbf(0x231)]({'query':a0_0x192684`
|
|
17
17
|
mutation {
|
|
18
|
-
${
|
|
18
|
+
${_0x3a1b4b}(${gqlBuilder[_0x41cfbf(0x1e9)]({'ids':_0x41ab74})})
|
|
19
19
|
}
|
|
20
|
-
`});if(!
|
|
20
|
+
`});if(!_0x5b2127[_0x41cfbf(0x1f6)])return UiUtil[_0x41cfbf(0x226)](_0x41cfbf(0x1fc),TermsUtil[_0x41cfbf(0x1ff)](_0x41cfbf(0x1c0))),!0x0;ServiceUtil['showGraphqlErrorResponse'](_0x5b2127);}catch(_0x7565bc){ServiceUtil[_0x41cfbf(0x1d9)](_0x7565bc);}return!0x1;}static async['updateMultipleData'](_0xb6d9fa,_0x21fd31){const _0x269c37=a0_0x3602b8;let _0x362b1e=ServiceUtil['patchesForUpdateMultiple'](_0xb6d9fa);if(ValueUtil['isNotEmpty'](_0x362b1e)){let _0x3dd494=await ServiceUtil[_0x269c37(0x20f)](_0x21fd31,_0x362b1e);if(_0x3dd494)return _0xb6d9fa['fetch'](),_0x3dd494;}return!0x1;}static async['updateMultiple'](_0x58cf3e,_0xe180f2){const _0x759466=a0_0x3602b8;try{const _0x5defc8=await client[_0x759466(0x231)]({'query':a0_0x192684`
|
|
21
21
|
mutation {
|
|
22
|
-
${
|
|
22
|
+
${_0x58cf3e}(${gqlBuilder[_0x759466(0x1e9)]({'patches':_0xe180f2})}) {
|
|
23
23
|
id
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,'context':{'hasUpload':!0x0}});if(!
|
|
26
|
+
`,'context':{'hasUpload':!0x0}});if(!_0x5defc8['errors'])return UiUtil[_0x759466(0x226)](_0x759466(0x1fc),TermsUtil[_0x759466(0x1ff)]('success\x20to\x20save')),!0x0;ServiceUtil[_0x759466(0x1c2)](_0x5defc8);}catch(_0x3c768f){ServiceUtil['showGraphqlException'](_0x3c768f);}return!0x1;}static[a0_0x3602b8(0x22b)](_0x27b004,_0x1b14dd=!0x1){const _0x3b659a=a0_0x3602b8;let _0x424a81=_0x27b004[_0x3b659a(0x20e)];if(_0x424a81&&0x0!=_0x424a81[_0x3b659a(0x1da)])return _0x424a81[_0x3b659a(0x228)](_0x81c806=>{const _0x257945=_0x3b659a;let _0x3058c1=_0x81c806['id']?{'id':_0x81c806['id']}:{};for(let _0x25584a in _0x81c806)['creator','updater','createdAt',_0x257945(0x1e8),_0x257945(0x1ed),_0x257945(0x217),'__origin__',_0x257945(0x22e),_0x257945(0x20b)][_0x257945(0x1e7)](_0x25584a)||(_0x81c806[_0x25584a]&&_0x257945(0x1d3)==typeof _0x81c806[_0x25584a]&&0x0==_0x1b14dd?_0x3058c1[_0x25584a]={'id':_0x81c806[_0x25584a]['id']}:_0x3058c1[_0x25584a]=_0x81c806[_0x25584a]);return _0x3058c1[_0x257945(0x1cd)]=_0x81c806[_0x257945(0x1ed)],_0x3058c1;});UiUtil[_0x3b659a(0x1fe)](_0x3b659a(0x21e),'text.NOTHING_CHANGED',_0x3b659a(0x1fc),_0x3b659a(0x1e0));}static async['callScenario'](_0x42031f,_0x42438a,_0x200934){const _0x447463=a0_0x3602b8;let _0xc6fe36=!0x0;_0x42031f&&(_0xc6fe36=(await UiUtil['showAlertPopup']('button.'+_0x42031f,_0x447463(0x1e2),'question',_0x447463(0x1e0),_0x447463(0x20d)))[_0x447463(0x1ee)]);if(_0xc6fe36)try{const _0x4b6b9b=await client[_0x447463(0x231)]({'query':a0_0x192684`
|
|
27
27
|
mutation ($scenarioName: String!, $variables: Object) {
|
|
28
28
|
runScenario(scenarioName: $scenarioName, variables: $variables) {
|
|
29
29
|
state
|
|
@@ -32,4 +32,4 @@ const a0_0x150189=a0_0x1f67;(function(_0x1c754a,_0xab0d6c){const _0x41f01d=a0_0x
|
|
|
32
32
|
__typename
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
`,'variables':{'scenarioName':
|
|
35
|
+
`,'variables':{'scenarioName':_0x42438a,'variables':_0x200934}});if(_0x4b6b9b[_0x447463(0x1f6)])ServiceUtil['showGraphqlErrorResponse'](_0x4b6b9b);else{if(this[_0x447463(0x1bf)](_0x4b6b9b))return UiUtil[_0x447463(0x226)](_0x447463(0x1fc),TermsUtil[_0x447463(0x1ff)]('success\x20to\x20process')),_0x4b6b9b;}}catch(_0x1eaf7b){ServiceUtil['showGraphqlException'](_0x1eaf7b);}return!0x1;}static[a0_0x3602b8(0x1bf)](_0x7e317d){const _0x1a212e=a0_0x3602b8;if(_0x7e317d&&_0x7e317d[_0x1a212e(0x219)]&&_0x7e317d['data'][_0x1a212e(0x1e5)]&&_0x7e317d['data'][_0x1a212e(0x1e5)][_0x1a212e(0x219)]&&_0x7e317d[_0x1a212e(0x219)]['runScenario'][_0x1a212e(0x219)][_0x1a212e(0x223)]){let _0x3d435f=_0x7e317d[_0x1a212e(0x219)][_0x1a212e(0x1e5)][_0x1a212e(0x219)][_0x1a212e(0x223)];return UiUtil[_0x1a212e(0x1fe)](_0x3d435f[_0x1a212e(0x21f)],_0x3d435f[_0x1a212e(0x21d)],'error',_0x1a212e(0x1e0)),!0x1;}return!0x0;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x168263=a0_0x204c;(function(_0x43f93b,_0x5b4fab){const _0x4fe2e7=a0_0x204c,_0x5d3d06=_0x43f93b();while(!![]){try{const _0x2e58f6=-parseInt(_0x4fe2e7(0x9f))/0x1*(parseInt(_0x4fe2e7(0x89))/0x2)+-parseInt(_0x4fe2e7(0x92))/0x3*(parseInt(_0x4fe2e7(0x8f))/0x4)+-parseInt(_0x4fe2e7(0x90))/0x5+parseInt(_0x4fe2e7(0x8d))/0x6+parseInt(_0x4fe2e7(0xa1))/0x7*(-parseInt(_0x4fe2e7(0xa8))/0x8)+parseInt(_0x4fe2e7(0xab))/0x9+parseInt(_0x4fe2e7(0xa9))/0xa;if(_0x2e58f6===_0x5b4fab)break;else _0x5d3d06['push'](_0x5d3d06['shift']());}catch(_0x23f92b){_0x5d3d06['push'](_0x5d3d06['shift']());}}}(a0_0x295c,0xb8532));import a0_0x57debd from'graphql-tag';function a0_0x204c(_0x20b4e1,_0x3c8c03){const _0x295c00=a0_0x295c();return a0_0x204c=function(_0x204c9d,_0x44d82e){_0x204c9d=_0x204c9d-0x86;let _0x49ccb2=_0x295c00[_0x204c9d];return _0x49ccb2;},a0_0x204c(_0x20b4e1,_0x3c8c03);}function a0_0x295c(){const _0x4ed1bf=['items','4567440vTGMvw','terminologies','220qdTFoc','4104615oaktIH','field','16542xBAKAg','category','menu','title','length','META_TERMS','locale','name','tLabel','tButton','errors','query','button','1zTbwAt','records','8106343XVFGVD','error','tMenu','total','forEach','label','downloadTerminologies','8uPqKYG','31656240kVGxGn','fetchTerminologies','2777571Tfeqdm','display','data','translate','2396494wbOlVk','replace','text'];a0_0x295c=function(){return _0x4ed1bf;};return a0_0x295c();}import{client}from'@operato/graphql';import{i18next}from'@operato/i18n';export class TermsUtil{[a0_0x168263(0x97)]=null;static async[a0_0x168263(0xa7)](_0x181baf){const _0x3a860e=a0_0x168263;let _0x34f6de=(await TermsUtil['fetchTerminologies'](_0x181baf))[_0x3a860e(0xa0)];_0x34f6de&&_0x34f6de[_0x3a860e(0x96)]>0x0&&(this[_0x3a860e(0x97)]={},_0x34f6de[_0x3a860e(0xa5)](_0x2d5041=>{const _0x41cabe=_0x3a860e;let _0x3439fd=_0x2d5041['category']+'.'+_0x2d5041[_0x41cabe(0x99)];this[_0x41cabe(0x97)][_0x3439fd]=_0x2d5041[_0x41cabe(0x86)];}));}static async[a0_0x168263(0xaa)](_0x2d0dc7){const _0x2ca357=a0_0x168263;let _0xe5144b=[{'name':_0x2ca357(0x98),'operator':'eq','value':_0x2d0dc7}];const _0x22f81f=await client[_0x2ca357(0x9d)]({'query':a0_0x57debd`
|
|
2
2
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
3
3
|
terminologies(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
4
4
|
items {
|
|
@@ -11,4 +11,4 @@ function a0_0x10d9(_0x3e93bc,_0xab43e7){const _0x2a7814=a0_0x2a78();return a0_0x
|
|
|
11
11
|
total
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
`,'variables':{'filters':
|
|
14
|
+
`,'variables':{'filters':_0xe5144b,'sortings':[{'name':_0x2ca357(0x93)},{'name':_0x2ca357(0x99)}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0x22f81f[_0x2ca357(0x9c)])return{'records':_0x22f81f[_0x2ca357(0x87)][_0x2ca357(0x8e)][_0x2ca357(0x8c)]||[],'total':_0x22f81f[_0x2ca357(0x87)][_0x2ca357(0x8e)][_0x2ca357(0xa4)]||0x0};}static[a0_0x168263(0x9a)](_0x518bfe,_0xb665cd){const _0xa7bacc=a0_0x168263;let _0x1db7f4=TermsUtil[_0xa7bacc(0x88)](_0xa7bacc(0xa6),_0x518bfe,_0xb665cd,null);return _0x1db7f4||TermsUtil[_0xa7bacc(0x88)](_0xa7bacc(0x91),_0x518bfe,_0xb665cd,_0x518bfe);}static['tField'](_0x1ad17a,_0x43cc28){const _0x1ca56b=a0_0x168263;let _0x1c47e2=TermsUtil[_0x1ca56b(0x88)](_0x1ca56b(0x91),_0x1ad17a,_0x43cc28,null);return _0x1c47e2||TermsUtil[_0x1ca56b(0x88)](_0x1ca56b(0x91),_0x1ad17a,_0x43cc28,_0x1ad17a);}static[a0_0x168263(0x9b)](_0x27c5dd){const _0x4516e4=a0_0x168263;return TermsUtil[_0x4516e4(0x88)](_0x4516e4(0x9e),_0x27c5dd,null,_0x27c5dd);}static['tTitle'](_0x47fbf8,_0x2a0e7b){const _0xd95b19=a0_0x168263;let _0x5cb73e=TermsUtil['translate']('title',_0x47fbf8,_0x2a0e7b,null);return _0x5cb73e||TermsUtil[_0xd95b19(0x88)](_0xd95b19(0x94),_0x47fbf8,_0x2a0e7b,_0x47fbf8);}static[a0_0x168263(0xa3)](_0x56e4e6){const _0x4c30c4=a0_0x168263;let _0x1901bf=TermsUtil[_0x4c30c4(0x88)]('menu',_0x56e4e6,null,_0x56e4e6);return _0x1901bf||TermsUtil[_0x4c30c4(0x88)](_0x4c30c4(0x95),_0x56e4e6,null,_0x56e4e6);}static['tText'](_0x4f7d23,_0x542678){const _0x2f028f=a0_0x168263;return TermsUtil[_0x2f028f(0x88)](_0x2f028f(0x8b),_0x4f7d23,_0x542678,_0x4f7d23);}static['tError'](_0x305120,_0x14f00b){const _0x3c0a07=a0_0x168263;return TermsUtil['translate'](_0x3c0a07(0xa2),_0x305120,_0x14f00b,_0x305120);}static[a0_0x168263(0x88)](_0x3e6ff4,_0x447391,_0x174336,_0x5d4e51){let _0x55fc76=_0x3e6ff4+'.'+_0x447391;return TermsUtil['t'](_0x55fc76,_0x174336,_0x5d4e51);}static['t'](_0x3ae651,_0x29c130,_0xa0b4a5){const _0x1d3dfa=a0_0x168263;let _0x2d08da=this['META_TERMS']?this[_0x1d3dfa(0x97)][_0x3ae651]:null;return _0x2d08da=_0x2d08da||i18next['t'](_0x3ae651),_0x2d08da&&_0x3ae651!=_0x2d08da?(_0x29c130&&Object['keys'](_0x29c130)[_0x1d3dfa(0xa5)](function(_0x4c8212){const _0x3c6f4f=_0x1d3dfa;var _0x2e4f3a='\x5c{'+_0x4c8212[_0x3c6f4f(0x8a)](/\$/,'\x5c$')+'\x5c}',_0x151f8e=new RegExp(_0x2e4f3a,'gi');_0x2d08da=_0x2d08da[_0x3c6f4f(0x8a)](_0x151f8e,_0x29c130[_0x4c8212]);}),_0x2d08da):_0xa0b4a5;}}
|
package/client/utils/ui-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x5e68d9=a0_0x52ad;(function(_0x18e024,_0x40c06f){const _0xcbf7c9=a0_0x52ad,_0x2e7edd=_0x18e024();while(!![]){try{const _0x1c4bb0=parseInt(_0xcbf7c9(0xc0))/0x1+parseInt(_0xcbf7c9(0xa7))/0x2*(parseInt(_0xcbf7c9(0xad))/0x3)+parseInt(_0xcbf7c9(0xc6))/0x4*(parseInt(_0xcbf7c9(0xaf))/0x5)+-parseInt(_0xcbf7c9(0xb8))/0x6*(-parseInt(_0xcbf7c9(0xcb))/0x7)+parseInt(_0xcbf7c9(0xa6))/0x8+-parseInt(_0xcbf7c9(0xae))/0x9+parseInt(_0xcbf7c9(0x9c))/0xa*(-parseInt(_0xcbf7c9(0xb4))/0xb);if(_0x1c4bb0===_0x40c06f)break;else _0x2e7edd['push'](_0x2e7edd['shift']());}catch(_0x16907e){_0x2e7edd['push'](_0x2e7edd['shift']());}}}(a0_0x4c60,0x5736d));import{store,CustomAlert,navigate}from'@things-factory/shell';function a0_0x52ad(_0x1c7349,_0x233c71){const _0x4c60d4=a0_0x4c60();return a0_0x52ad=function(_0x52ad75,_0x502078){_0x52ad75=_0x52ad75-0x8d;let _0x92eabe=_0x4c60d4[_0x52ad75];return _0x92eabe;},a0_0x52ad(_0x1c7349,_0x233c71);}import{openPopup}from'@things-factory/layout-base';import{isMobileDevice}from'@things-factory/utils';function a0_0x4c60(){const _0x3aad74=['\x27></','i18next=','barcode','pageNavigate','value','editor','getLeafInput','route','getApplicationModuleInfo','notify','cookie','getFilterFormData','htmlToElement','popup_field','parent_field','\x27\x20\x20parent_id=\x27','1080020jaktxl','innerHTML','ox-input-code','isMobileEnv','app','tButton','size','getState','currentLocale','getStore','4121152aJLEev','190DZXtkq','name','querySelector','filters','input','renderRoot','3009EOIvzb','6408027yiTKVw','20DeWszL','content','getParams','config','createElement','99zmfxRu','pass=','setSearchFormEditorValue','dispatchEvent','2113308AmKKCh','removeChild','cancelButton','ox-input-barcode','split','textarea','onclosed','showToast','432449vuSTpR','\x27\x20is_popup=true></','template','isNotEmpty','type','tagname','293936pVtudF','createCustomElement','indexOf','code-editor','showAlertPopup','14PnwkcT','[name=\x27','openPopupByElement','forEach'];a0_0x4c60=function(){return _0x3aad74;};return a0_0x4c60();}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[a0_0x5e68d9(0x9f)](){return isMobileDevice();}static[a0_0x5e68d9(0xa4)](){const _0x2f0133=a0_0x5e68d9;let _0x5015d0=document[_0x2f0133(0x96)];return _0x5015d0=_0x5015d0['substring'](_0x5015d0[_0x2f0133(0xc8)]('i18next')),_0x5015d0[_0x2f0133(0xc8)](';')>-0x1&&(_0x5015d0=_0x5015d0['substring'](0x0,_0x5015d0[_0x2f0133(0xc8)](';'))),_0x5015d0=_0x5015d0['replace'](_0x2f0133(0x8d),''),'ko'==_0x5015d0?'ko-KR':_0x5015d0;}static[a0_0x5e68d9(0x94)](){const _0x364e83=a0_0x5e68d9;let _0x36857e=store[_0x364e83(0xa3)]()[_0x364e83(0xa0)]['modules'];return _0x36857e[_0x36857e['length']-0x1];}static['currentRouting'](){const _0x41b10c=a0_0x5e68d9;return store[_0x41b10c(0xa3)]()[_0x41b10c(0x93)]['page'];}static[a0_0x5e68d9(0xcd)](_0x9b3899,_0x2503ee,_0x583077,_0x1860c4){return openPopup(_0x583077,{'backdrop':!0x0,'size':_0x2503ee,'title':_0x9b3899,'backdrop':_0x1860c4});}static async['openDynamicPopup'](_0xb70d5,_0x591b83,_0x395a49,_0xb23750){const _0x5c88e5=a0_0x5e68d9;let _0x2afe08=ValueUtil['isNotEmpty'](_0x591b83[_0x5c88e5(0x9a)])?ValueUtil[_0x5c88e5(0xb1)](_0x395a49,..._0x591b83[_0x5c88e5(0x9a)][_0x5c88e5(0xbc)]('.')):void 0x0,_0x335020='<'+_0x591b83[_0x5c88e5(0xc5)]+'\x20route_name=\x27'+_0x591b83['menu']+_0x5c88e5(0x9b)+_0x2afe08+_0x5c88e5(0xc1)+_0x591b83[_0x5c88e5(0xc5)]+'>',_0x403ddf=UiUtil[_0x5c88e5(0x98)](_0x335020);_0x403ddf[_0x5c88e5(0xb2)]=_0x591b83,ValueUtil[_0x5c88e5(0xc3)](_0x591b83['popup_field'])&&(_0x403ddf[_0x591b83[_0x5c88e5(0x99)]]=_0x395a49);let _0x47b00e=UiUtil[_0x5c88e5(0xcd)](_0xb70d5,_0x591b83[_0x5c88e5(0xa2)],_0x403ddf,!0x0);_0xb23750&&(_0x47b00e[_0x5c88e5(0xbe)]=_0xb23750);}static[a0_0x5e68d9(0xc7)](_0x54d5d3,_0x44ad71){const _0x2eb495=a0_0x5e68d9;let _0x13638c='<'+_0x54d5d3+'\x20route_name=\x27'+_0x44ad71+_0x2eb495(0xcf)+_0x54d5d3+'>';return UiUtil[_0x2eb495(0x98)](_0x13638c);}static[a0_0x5e68d9(0x98)](_0x6c3d4e){const _0x3f68db=a0_0x5e68d9;var _0x36ec0d=document[_0x3f68db(0xb3)](_0x3f68db(0xc2));_0x36ec0d[_0x3f68db(0x9d)]=_0x6c3d4e;var _0x519640=_0x36ec0d['content']['childNodes'][0x0];return _0x36ec0d[_0x3f68db(0xb0)][_0x3f68db(0xb9)](_0x519640),_0x519640;}static[a0_0x5e68d9(0x8f)](_0x17faca,_0x59d4a8){const _0x42c466=a0_0x5e68d9;let _0x7c557e=_0x59d4a8?'?':'';_0x59d4a8&&(_0x7c557e+=_0x42c466(0xb5)+JSON['stringify'](_0x59d4a8)),navigate(''+_0x17faca+_0x7c557e);}static[a0_0x5e68d9(0xa5)](_0x4126fb,_0x2f6a6f,_0x59f701){const _0x4fecfb=a0_0x5e68d9;let _0x9743c=_0x9743c[_0x4fecfb(0xa3)]();return _0x4126fb&&_0x2f6a6f&&_0x59f701?_0x9743c[_0x4126fb][_0x2f6a6f][_0x59f701]:_0x4126fb&&_0x2f6a6f?_0x9743c[_0x4126fb][_0x2f6a6f]:_0x4126fb?_0x9743c[_0x4126fb]:_0x9743c;}static['fireCustomEvent'](_0x575a26,_0x421eff){const _0x4a304b=a0_0x5e68d9;document[_0x4a304b(0xb7)](new CustomEvent(_0x575a26,{'detail':_0x421eff}));}static[a0_0x5e68d9(0xbf)](_0x143196,_0xb40653){const _0xd0d216=a0_0x5e68d9;document[_0xd0d216(0xb7)](new CustomEvent(_0xd0d216(0x95),{'detail':{'type':_0x143196,'message':_0xb40653}}));}static async[a0_0x5e68d9(0xca)](_0x2f8e53,_0x5cd0b9,_0x181d52,_0x12369d,_0x13299b){const _0x33a98e=a0_0x5e68d9;let _0x358b01={'title':TermsUtil['t'](_0x2f8e53)||_0x2f8e53,'text':TermsUtil['t'](_0x5cd0b9)||_0x5cd0b9};return _0x181d52&&(_0x358b01[_0x33a98e(0xc4)]=_0x181d52),_0x12369d&&(_0x358b01['confirmButton']=TermsUtil['tButton'](_0x12369d)),_0x13299b&&(_0x358b01[_0x33a98e(0xba)]=TermsUtil[_0x33a98e(0xa1)](_0x13299b)),await CustomAlert(_0x358b01);}static[a0_0x5e68d9(0x97)](_0x101346){const _0x13995d=a0_0x5e68d9;if(ValueUtil[_0x13995d(0xc3)](_0x101346)){let _0x5e7325=_0x101346[_0x13995d(0xaa)]();ValueUtil['isNotEmpty'](_0x5e7325)&&_0x5e7325[_0x13995d(0xce)](_0x360f7d=>{const _0x5edeae=_0x13995d;ValueUtil[_0x5edeae(0xc3)](_0x360f7d[_0x5edeae(0x90)])&&(item[_0x360f7d[_0x5edeae(0xa8)]]=_0x360f7d[_0x5edeae(0x90)]?_0x360f7d[_0x5edeae(0x90)]:null);});}return{};}static[a0_0x5e68d9(0xb6)](_0x379431,_0x4f7595,_0x28324b){const _0x55c19=a0_0x5e68d9;if(ValueUtil[_0x55c19(0xc3)](_0x379431)){let _0x4b599d=_0x379431['renderRoot']?.[_0x55c19(0xa9)](_0x55c19(0xcc)+_0x4f7595+'\x27]');ValueUtil[_0x55c19(0xc3)](_0x4b599d)&&(_0x4b599d[_0x55c19(0x90)]=_0x28324b);}}static['createEditorHtml'](_0x4419f9,_0x4244ac,_0x16df5b,_0x4d8d40){return getEditor(_0x4419f9)('',_0x4244ac,_0x16df5b,_0x4d8d40,{});}static['setValueToEditor'](_0x14b38,_0x215d5b){const _0x4bb9f1=a0_0x5e68d9;UiUtil['getLeafInput'](_0x14b38)[_0x4bb9f1(0x90)]=_0x215d5b;}static[a0_0x5e68d9(0x92)](_0x17579f){const _0x3de0f6=a0_0x5e68d9;let _0x409dec=_0x17579f['getType']();return _0x3de0f6(0xc9)==_0x409dec?_0x17579f[_0x3de0f6(0xac)][_0x3de0f6(0xa9)](_0x3de0f6(0x9e)):_0x3de0f6(0xbd)==_0x409dec?_0x17579f[_0x3de0f6(0xac)]['querySelector'](_0x3de0f6(0xbd)):'select-combo'==_0x409dec?_0x17579f[_0x3de0f6(0xac)][_0x3de0f6(0xa9)]('ox-select')['firstElementChild']:_0x3de0f6(0x8e)==_0x409dec?_0x17579f[_0x3de0f6(0xac)]['querySelector'](_0x3de0f6(0xbb))[_0x3de0f6(0xac)][_0x3de0f6(0xa9)](_0x3de0f6(0xab)):_0x17579f[_0x3de0f6(0xac)]['firstElementChild'][_0x3de0f6(0x91)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x433234=a0_0x3d55;(function(_0x13b013,_0x32dc2d){const _0x265714=a0_0x3d55,_0x8c46d3=_0x13b013();while(!![]){try{const _0x5f331f=parseInt(_0x265714(0x11e))/0x1*(-parseInt(_0x265714(0x10b))/0x2)+-parseInt(_0x265714(0x111))/0x3*(parseInt(_0x265714(0x113))/0x4)+parseInt(_0x265714(0x11b))/0x5*(parseInt(_0x265714(0x11f))/0x6)+parseInt(_0x265714(0x10a))/0x7+parseInt(_0x265714(0x118))/0x8+parseInt(_0x265714(0x108))/0x9*(-parseInt(_0x265714(0x122))/0xa)+parseInt(_0x265714(0x10e))/0xb;if(_0x5f331f===_0x32dc2d)break;else _0x8c46d3['push'](_0x8c46d3['shift']());}catch(_0x59f3e0){_0x8c46d3['push'](_0x8c46d3['shift']());}}}(a0_0x3ac7,0x236d2));import a0_0x556e5f from'lodash-es/isEqual';function a0_0x3ac7(){const _0x556962=['populateObject','180eztTZZ','forEach','6968apiQzU','toInteger','length','object','string','90128dKWKlF','getParams','slice','70xOmydo','isNotEmpty','compareObjectValues','1cqwpEU','98652DtPmUf','map','isArray','320FxGmKT','boolean','setParams','79533EEePQx','keys','386890PhlKko','66740JjsvDy','TRUE','isEquals','2959616qqaUOK','isEmpty'];a0_0x3ac7=function(){return _0x556962;};return a0_0x3ac7();}function a0_0x3d55(_0x43d429,_0x5c08e3){const _0x3ac7c2=a0_0x3ac7();return a0_0x3d55=function(_0x3d557c,_0x4ee174){_0x3d557c=_0x3d557c-0x107;let _0xec4d72=_0x3ac7c2[_0x3d557c];return _0xec4d72;},a0_0x3d55(_0x43d429,_0x5c08e3);}import{TermsUtil}from'./terms-util';export class ValueUtil{static[a0_0x433234(0x10f)](_0x11daac){const _0x2867b6=a0_0x433234;if(void 0x0===_0x11daac)return!0x0;if(null===_0x11daac)return!0x0;if(_0x2867b6(0x123)==typeof _0x11daac)return!0x1;if(_0x2867b6(0x117)==typeof _0x11daac||'number'==typeof _0x11daac){if(''==_0x11daac)return!0x0;}else{if(Array[_0x2867b6(0x121)](_0x11daac)){if(0x0==_0x11daac['length'])return!0x0;}else{if(_0x2867b6(0x116)==typeof _0x11daac&&0x0==Object[_0x2867b6(0x109)](_0x11daac)[_0x2867b6(0x115)])return!0x0;}}return!0x1;}static[a0_0x433234(0x11c)](_0x953b83){return!ValueUtil['isEmpty'](_0x953b83);}static[a0_0x433234(0x10d)](_0x4ec36,_0x3f6f0e){return a0_0x556e5f(_0x4ec36,_0x3f6f0e);}static[a0_0x433234(0x114)](_0x2458d7,_0x157752){return ValueUtil['isEmpty'](_0x2458d7)?_0x157752||0x0:parseInt(_0x2458d7);}static['toBoolean'](_0x5ac569){const _0x4213b4=a0_0x433234;return!ValueUtil[_0x4213b4(0x10f)](_0x5ac569)&&('true'==_0x5ac569||'t'==_0x5ac569||_0x4213b4(0x10c)==_0x5ac569||'T'==_0x5ac569||'on'==_0x5ac569||'ON'==_0x5ac569);}static[a0_0x433234(0x11d)](_0x32f93b,_0x121623,_0xb32e94){let _0x219124=!0x0;return _0xb32e94['forEach'](_0x340629=>{const _0x35502c=a0_0x3d55;let _0x9168b3=_0x32f93b[_0x340629];if('*'===_0x9168b3)return;let _0x352ac9=_0x121623[_0x340629]||'';ValueUtil[_0x35502c(0x10f)](_0x9168b3)?ValueUtil[_0x35502c(0x11c)](_0x352ac9)&&(_0x219124=!0x1):_0x9168b3!=_0x352ac9&&(_0x219124=!0x1);}),_0x219124;}static[a0_0x433234(0x107)](_0x34d024,_0x39b213,_0x390264,_0x4455d6){const _0x12a087=a0_0x433234;let _0x57dede=ValueUtil[_0x12a087(0x119)](_0x39b213,_0x390264);return ValueUtil['isNotEmpty'](_0x57dede)&&(_0x34d024[_0x390264]=!0x0===_0x4455d6?TermsUtil['t'](_0x57dede):_0x57dede),_0x34d024;}static[a0_0x433234(0x119)](_0x1c3f49,..._0xb95246){const _0x37c59e=a0_0x433234;if(arguments[_0x37c59e(0x115)]<=0x1)return;let _0x53af34=_0xb95246[0x0];if(ValueUtil[_0x37c59e(0x10f)](_0x1c3f49[_0x53af34]))return;let _0x38c688=_0x1c3f49[_0x53af34];return _0xb95246[_0x37c59e(0x115)]>0x1?ValueUtil[_0x37c59e(0x119)](_0x38c688,..._0xb95246[_0x37c59e(0x11a)](0x1)):_0x38c688;}static['populateArray'](_0x4fefa8,_0x444c21,..._0xdaff83){const _0x5d5eda=a0_0x433234;return _0x444c21=_0x444c21||[],_0xdaff83=_0xdaff83||Object[_0x5d5eda(0x109)](_0x4fefa8),ValueUtil['isNotEmpty'](_0xdaff83)&&(_0x444c21=_0x4fefa8[_0x5d5eda(0x120)]((_0x129f34,_0x19703a)=>{const _0x41137a=_0x5d5eda;let _0x33c864=_0x444c21[_0x41137a(0x115)]>_0x19703a?_0x444c21[_0x19703a]:{};return ValueUtil['populateObject'](_0x129f34,_0x33c864,_0xdaff83);})),_0x444c21;}static[a0_0x433234(0x110)](_0x3308fe,_0x3ca242,..._0x147bc4){const _0x1345d2=a0_0x433234;return _0x3ca242=_0x3ca242||{},_0x147bc4=_0x147bc4||Object[_0x1345d2(0x109)](_0x3308fe),ValueUtil[_0x1345d2(0x11c)](_0x147bc4)&&_0x147bc4[_0x1345d2(0x112)](_0x313e1d=>{_0x3ca242[_0x313e1d]=_0x3308fe[_0x313e1d];}),_0x3ca242;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3f95c2,_0x5665d6){const _0x3b0584=a0_0x387e,_0x36a437=_0x3f95c2();while(!![]){try{const _0x2e425b=-parseInt(_0x3b0584(0x11a))/0x1+parseInt(_0x3b0584(0x120))/0x2+parseInt(_0x3b0584(0x11b))/0x3+-parseInt(_0x3b0584(0x11c))/0x4+-parseInt(_0x3b0584(0x11d))/0x5+-parseInt(_0x3b0584(0x11f))/0x6*(parseInt(_0x3b0584(0x119))/0x7)+parseInt(_0x3b0584(0x11e))/0x8;if(_0x2e425b===_0x5665d6)break;else _0x36a437['push'](_0x36a437['shift']());}catch(_0x2be199){_0x36a437['push'](_0x36a437['shift']());}}}(a0_0x2cc2,0xebf4c));function a0_0x387e(_0x499176,_0x32136f){const _0x2cc292=a0_0x2cc2();return a0_0x387e=function(_0x387e62,_0x37b112){_0x387e62=_0x387e62-0x119;let _0x678df2=_0x2cc292[_0x387e62];return _0x678df2;},a0_0x387e(_0x499176,_0x32136f);}import{css}from'lit';function a0_0x2cc2(){const _0x3e0b3a=['2901932CSVOHB','59157WqOaCp','1608927qZPkqe','1454748OdwCtN','1716540MUMPRy','2432030hsTucP','16091328QnGqBC','324YkPPtj'];a0_0x2cc2=function(){return _0x3e0b3a;};return a0_0x2cc2();}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_0x58a119=a0_0x4e96;(function(_0x49c39b,_0x5d65fe){const _0x27c2c3=a0_0x4e96,_0x4b2356=_0x49c39b();while(!![]){try{const _0x3a0913=-parseInt(_0x27c2c3(0xa2))/0x1*(parseInt(_0x27c2c3(0xb3))/0x2)+parseInt(_0x27c2c3(0xac))/0x3*(-parseInt(_0x27c2c3(0xaf))/0x4)+-parseInt(_0x27c2c3(0xba))/0x5+-parseInt(_0x27c2c3(0xc0))/0x6*(-parseInt(_0x27c2c3(0xb5))/0x7)+-parseInt(_0x27c2c3(0xbe))/0x8*(-parseInt(_0x27c2c3(0xae))/0x9)+parseInt(_0x27c2c3(0x9a))/0xa*(-parseInt(_0x27c2c3(0xa0))/0xb)+parseInt(_0x27c2c3(0xbd))/0xc;if(_0x3a0913===_0x5d65fe)break;else _0x4b2356['push'](_0x4b2356['shift']());}catch(_0x31796d){_0x4b2356['push'](_0x4b2356['shift']());}}}(a0_0x4647,0x52dcb));function a0_0x4e96(_0x472304,_0x27953f){const _0x46474f=a0_0x4647();return a0_0x4e96=function(_0x4e963f,_0xad6039){_0x4e963f=_0x4e963f-0x98;let _0x3e6455=_0x46474f[_0x4e963f];return _0x3e6455;},a0_0x4e96(_0x472304,_0x27953f);}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';export class DynamicMenuLandscape extends connect(store)(LitElement){static get[a0_0x58a119(0xb8)](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get[a0_0x58a119(0xaa)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x58a119(0x9f)](){const _0x3b0acd=a0_0x58a119,{menus:_0x57eb4b=[],activeTopLevel:_0x5af036,activeMenu:_0x46939a}=this;return html`
|
|
2
2
|
<div id="wrap">
|
|
3
3
|
<ul>
|
|
4
|
-
${
|
|
5
|
-
<li ?active=${
|
|
6
|
-
<a href=${
|
|
7
|
-
${
|
|
4
|
+
${_0x57eb4b['map'](_0x3ae92e=>'group'==_0x3ae92e[_0x3b0acd(0xad)]?html``:html`
|
|
5
|
+
<li ?active=${_0x3ae92e===_0x5af036}>
|
|
6
|
+
<a href=${_0x3ae92e['path']||'#'}>
|
|
7
|
+
${_0x3ae92e[_0x3b0acd(0xb0)]?html`<mwc-icon>${_0x3ae92e['icon']}</mwc-icon>`:html``} ${_0x3ae92e[_0x3b0acd(0xa5)]}
|
|
8
8
|
</a>
|
|
9
9
|
|
|
10
10
|
<ul submenus>
|
|
11
|
-
${
|
|
12
|
-
<li ?active=${
|
|
13
|
-
<a href=${
|
|
11
|
+
${_0x3ae92e[_0x3b0acd(0xab)]?.['map'](_0x1aefc2=>html`
|
|
12
|
+
<li ?active=${_0x1aefc2===_0x46939a}>
|
|
13
|
+
<a href=${_0x1aefc2[_0x3b0acd(0xb4)]||'#'}> ${_0x1aefc2['name']} </a>
|
|
14
14
|
</li>
|
|
15
15
|
`)}
|
|
16
16
|
</ul>
|
|
17
17
|
|
|
18
18
|
<div description>
|
|
19
|
-
${
|
|
19
|
+
${_0x3ae92e['icon']?html`<mwc-icon>${_0x3ae92e[_0x3b0acd(0xb0)]}</mwc-icon>`:html``} ${_0x3ae92e[_0x3b0acd(0xbb)]||''}
|
|
20
20
|
</div>
|
|
21
21
|
</li>
|
|
22
22
|
`)}
|
|
23
23
|
</ul>
|
|
24
24
|
</div>
|
|
25
|
-
`;}[
|
|
25
|
+
`;}['firstUpdated'](){const _0x28112e=a0_0x58a119;this['renderRoot'][_0x28112e(0xa1)](_0x28112e(0xa6))[_0x28112e(0x98)](_0x28112e(0x9c),this[_0x28112e(0xb2)][_0x28112e(0xa7)](this),!0x1),this[_0x28112e(0xbf)]['addEventListener']('click',_0x786c08=>{const _0x55e6dc=_0x28112e;if(_0x786c08[_0x55e6dc(0xa9)][_0x55e6dc(0x9d)]){_0x786c08['stopPropagation'](),_0x786c08['preventDefault']();let _0x3c3a5c=_0x786c08['target']['submenu'];return void this[_0x55e6dc(0xa3)](new CustomEvent('active-toplevel',{'bubbles':!0x0,'detail':this[_0x55e6dc(0xb7)]===_0x3c3a5c?void 0x0:_0x3c3a5c}));}let _0x571551=_0x786c08['target'][_0x55e6dc(0xb6)];_0x571551&&location['href']===_0x571551&&navigate(_0x571551+_0x55e6dc(0xb1),!0x0);}),this[_0x28112e(0xbf)][_0x28112e(0x98)]('transitionstart',_0x159cd9=>{const _0x5e247e=_0x28112e;_0x159cd9[_0x5e247e(0xa9)][_0x5e247e(0x9b)](_0x5e247e(0xa8));}),this[_0x28112e(0xbf)][_0x28112e(0x98)](_0x28112e(0xb9),_0x54f7f1=>{const _0x28da19=_0x28112e;_0x54f7f1[_0x28da19(0xa9)][_0x28da19(0xc2)](_0x28da19(0xa8),'');});}[a0_0x58a119(0xb2)](_0x59923f){const _0x223989=a0_0x58a119,_0x5a6e30=_0x59923f[_0x223989(0x99)];var _0x51319b=Math['max'](-0x1,Math['min'](0x1,_0x59923f['wheelDelta']||-_0x59923f[_0x223989(0x9e)]));_0x5a6e30[_0x223989(0xc1)]-=0xa*_0x51319b,_0x59923f[_0x223989(0xbc)]();}}customElements[a0_0x58a119(0xa4)]('dynamic-menu-landscape',DynamicMenuLandscape);function a0_0x4647(){const _0x4b9500=['define','name','#wrap','bind','settled','target','properties','menus','3RrGwwk','type','99xKAgUa','169396IqzsaO','icon','#force','onWheelEvent','78162gmwORI','path','7231nHHBMq','href','activeTopLevel','styles','transitionend','1795350SGJCOg','description','preventDefault','10698312LnZAit','3304NVCxqk','renderRoot','1878swewWH','scrollLeft','setAttribute','addEventListener','currentTarget','292870ZZguFN','removeAttribute','mousewheel','submenu','detail','render','77hfzNHP','querySelector','7PPSpxW','dispatchEvent'];a0_0x4647=function(){return _0x4b9500;};return a0_0x4647();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
var a0_0x37cd9b=a0_0x2fb9;function a0_0x29b0(){var _0x4c3c22=['styles','223680nnkIlg','firstUpdated','2fSgFcG','path','landscape','active-toplevel','221016CROUSS','23318537xUxhMZ','4673808RIkysr','function','split','page','detail','_path','slotTemplate','stopPropagation','12xkVSFx','setAttribute','1427361eVqtwo','active','route','stateChanged','call','metaUI','9775664FGLbBt','render','_activeMenu','renderRoot','7KEryuN','190JHlgMH','resourceId','properties','portrait','_activeTopLevel','replaceChild','find','3737589sNQtsm','orientation','dynamic-menu-part','has','495mdeFwH','menus'];a0_0x29b0=function(){return _0x4c3c22;};return a0_0x29b0();}function a0_0x2fb9(_0x1518b8,_0x2a8426){var _0x29b04c=a0_0x29b0();return a0_0x2fb9=function(_0x2fb96b,_0x1fc2bc){_0x2fb96b=_0x2fb96b-0x186;var _0x3191d2=_0x29b04c[_0x2fb96b];return _0x3191d2;},a0_0x2fb9(_0x1518b8,_0x2a8426);}(function(_0x2cd873,_0x135ba1){var _0x5dd18a=a0_0x2fb9,_0x12616c=_0x2cd873();while(!![]){try{var _0x29bd95=parseInt(_0x5dd18a(0x1a3))/0x1+parseInt(_0x5dd18a(0x193))/0x2*(parseInt(_0x5dd18a(0x18a))/0x3)+-parseInt(_0x5dd18a(0x199))/0x4+-parseInt(_0x5dd18a(0x1ae))/0x5*(-parseInt(_0x5dd18a(0x197))/0x6)+-parseInt(_0x5dd18a(0x1ad))/0x7*(parseInt(_0x5dd18a(0x1a9))/0x8)+parseInt(_0x5dd18a(0x18e))/0x9*(parseInt(_0x5dd18a(0x191))/0xa)+-parseInt(_0x5dd18a(0x198))/0xb*(parseInt(_0x5dd18a(0x1a1))/0xc);if(_0x29bd95===_0x135ba1)break;else _0x12616c['push'](_0x12616c['shift']());}catch(_0x38705a){_0x12616c['push'](_0x12616c['shift']());}}}(a0_0x29b0,0xc197b));import'@material/mwc-icon';import'./dynamic-menu-portrait';import'./dynamic-menu-landscape';import{css,html,LitElement}from'lit';import{connect}from'pwa-helpers';import{store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';function isActiveMenu(_0x1c8919,_0x3ae2e3){var _0x579cc2=a0_0x2fb9;return _0x1c8919[_0x579cc2(0x194)]?.[_0x579cc2(0x19b)]('?')[0x0]===_0x3ae2e3||_0x1c8919[_0x579cc2(0x1a4)]&&_0x579cc2(0x19a)==typeof _0x1c8919['active']&&_0x1c8919[_0x579cc2(0x1a4)][_0x579cc2(0x1a7)](_0x1c8919,{'path':_0x3ae2e3});}export class DynamicMenuPart extends connect(store)(LitElement){static get[a0_0x37cd9b(0x1b0)](){return{'page':String,'resourceId':String,'menus':Array,'orientation':String,'_activeTopLevel':Object,'_activeMenu':Object,'_path':String};}static get[a0_0x37cd9b(0x190)](){return[ScrollbarStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -27,18 +27,18 @@ function a0_0x21af(_0xf0907e,_0x597335){var _0xaac6a8=a0_0xaac6();return a0_0x21
|
|
|
27
27
|
dynamic-menu-landscape {
|
|
28
28
|
flex: 1;
|
|
29
29
|
}
|
|
30
|
-
`];}[
|
|
30
|
+
`];}[a0_0x37cd9b(0x1aa)](){var _0x41a9c6=a0_0x37cd9b;return html`
|
|
31
31
|
<slot name="head"></slot>
|
|
32
|
-
${
|
|
33
|
-
.menus=${this[
|
|
34
|
-
.activeTopLevel=${this[
|
|
35
|
-
.activeMenu=${this[
|
|
36
|
-
.path=${this[
|
|
32
|
+
${_0x41a9c6(0x195)!==this['orientation']?html`<dynamic-menu-portrait
|
|
33
|
+
.menus=${this[_0x41a9c6(0x18f)]}
|
|
34
|
+
.activeTopLevel=${this[_0x41a9c6(0x187)]}
|
|
35
|
+
.activeMenu=${this[_0x41a9c6(0x1ab)]}
|
|
36
|
+
.path=${this[_0x41a9c6(0x19e)]}
|
|
37
37
|
></dynamic-menu-portrait>`:html`<dynamic-menu-landscape
|
|
38
|
-
.menus=${this[
|
|
39
|
-
.activeTopLevel=${this[
|
|
40
|
-
.activeMenu=${this[
|
|
41
|
-
.path=${this[
|
|
38
|
+
.menus=${this[_0x41a9c6(0x18f)]}
|
|
39
|
+
.activeTopLevel=${this['_activeTopLevel']}
|
|
40
|
+
.activeMenu=${this[_0x41a9c6(0x1ab)]}
|
|
41
|
+
.path=${this[_0x41a9c6(0x19e)]}
|
|
42
42
|
></dynamic-menu-landscape>`}
|
|
43
43
|
<slot name="tail"></slot>
|
|
44
|
-
`;}[
|
|
44
|
+
`;}[a0_0x37cd9b(0x192)](){var _0x37d04e=a0_0x37cd9b;this[_0x37d04e(0x1ac)]['addEventListener'](_0x37d04e(0x196),_0xe7e641=>{var _0x407f53=_0x37d04e;_0xe7e641[_0x407f53(0x1a0)](),_0xe7e641['preventDefault'](),this[_0x407f53(0x187)]=_0xe7e641[_0x407f53(0x19d)];});}['updated'](_0x11e78f){var _0x21aa46=a0_0x37cd9b;(_0x11e78f[_0x21aa46(0x18d)](_0x21aa46(0x18f))||_0x11e78f['has']('page')||_0x11e78f[_0x21aa46(0x18d)](_0x21aa46(0x1af)))&&this['_findActivePage'](),_0x11e78f[_0x21aa46(0x18d)](_0x21aa46(0x18b))&&(_0x21aa46(0x186)==this[_0x21aa46(0x18b)]?this['removeAttribute'](_0x21aa46(0x195)):this[_0x21aa46(0x1a2)](_0x21aa46(0x195),!0x0)),_0x11e78f[_0x21aa46(0x18d)](_0x21aa46(0x19f))&&this[_0x21aa46(0x188)](this[_0x21aa46(0x19f)]);}[a0_0x37cd9b(0x1a6)](_0x36383b){var _0x55b391=a0_0x37cd9b;this[_0x55b391(0x19c)]=_0x36383b[_0x55b391(0x1a5)][_0x55b391(0x19c)],this[_0x55b391(0x1af)]=_0x36383b[_0x55b391(0x1a5)]['resourceId'],this[_0x55b391(0x18f)]=_0x36383b[_0x55b391(0x1a8)][_0x55b391(0x18f)]||[],this[_0x55b391(0x19f)]=_0x36383b['metaUI'][_0x55b391(0x19f)];}['_findActivePage'](){var _0x33aa75=a0_0x37cd9b,_0x52166e,_0x4aaf1a=this[_0x33aa75(0x1af)]?this['page']+'/'+this[_0x33aa75(0x1af)]:this[_0x33aa75(0x19c)],_0x3ed584=this[_0x33aa75(0x18f)]||[];this[_0x33aa75(0x187)]=_0x3ed584[_0x33aa75(0x189)](_0x17ee55=>isActiveMenu(_0x17ee55,_0x4aaf1a)?(_0x52166e=_0x17ee55,!0x0):_0x17ee55[_0x33aa75(0x18f)]?!!(_0x52166e=_0x17ee55[_0x33aa75(0x18f)]['find'](_0x3e3384=>isActiveMenu(_0x3e3384,_0x4aaf1a))):void 0x0),this['_path']=_0x4aaf1a,this[_0x33aa75(0x1ab)]=_0x52166e||this['_activeTopLevel'];}}customElements['define'](a0_0x37cd9b(0x18c),DynamicMenuPart);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x7fba49,_0x48fe91){const _0x4c8f92=a0_0x3baf,_0x4869d2=_0x7fba49();while(!![]){try{const _0x5e91f4=-parseInt(_0x4c8f92(0x197))/0x1*(-parseInt(_0x4c8f92(0x191))/0x2)+parseInt(_0x4c8f92(0x19a))/0x3*(parseInt(_0x4c8f92(0x199))/0x4)+-parseInt(_0x4c8f92(0x192))/0x5*(parseInt(_0x4c8f92(0x19b))/0x6)+-parseInt(_0x4c8f92(0x193))/0x7*(-parseInt(_0x4c8f92(0x196))/0x8)+-parseInt(_0x4c8f92(0x190))/0x9*(parseInt(_0x4c8f92(0x194))/0xa)+parseInt(_0x4c8f92(0x195))/0xb*(parseInt(_0x4c8f92(0x198))/0xc)+parseInt(_0x4c8f92(0x18f))/0xd;if(_0x5e91f4===_0x48fe91)break;else _0x4869d2['push'](_0x4869d2['shift']());}catch(_0x530322){_0x4869d2['push'](_0x4869d2['shift']());}}}(a0_0x2a03,0xc3c51));import{css}from'lit';function a0_0x3baf(_0x47d61a,_0x59911c){const _0x2a03a0=a0_0x2a03();return a0_0x3baf=function(_0x3bafed,_0xb818eb){_0x3bafed=_0x3bafed-0x18f;let _0x443251=_0x2a03a0[_0x3bafed];return _0x443251;},a0_0x3baf(_0x47d61a,_0x59911c);}function a0_0x2a03(){const _0x5c8940=['62361WmFwmr','1761342AFHjdH','20uYLIwU','13461rDQVYc','1210jWLEbS','15793140SiKmcw','200TuXfyJ','1aNxLpR','12NNxsak','276bJEuHe','9123IyHaLj','1791876JaTbAQ','3387163ArIdkL'];a0_0x2a03=function(){return _0x5c8940;};return a0_0x2a03();}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_0x37edbe=a0_0x218d;(function(_0x468473,_0x460189){const _0x5b809f=a0_0x218d,_0x1b0c2a=_0x468473();while(!![]){try{const _0xccf00e=parseInt(_0x5b809f(0x8b))/0x1+parseInt(_0x5b809f(0xa9))/0x2+parseInt(_0x5b809f(0x95))/0x3*(-parseInt(_0x5b809f(0x99))/0x4)+parseInt(_0x5b809f(0x8a))/0x5+parseInt(_0x5b809f(0x92))/0x6*(-parseInt(_0x5b809f(0x88))/0x7)+parseInt(_0x5b809f(0x98))/0x8*(parseInt(_0x5b809f(0xa0))/0x9)+parseInt(_0x5b809f(0xa1))/0xa*(parseInt(_0x5b809f(0x9c))/0xb);if(_0xccf00e===_0x460189)break;else _0x1b0c2a['push'](_0x1b0c2a['shift']());}catch(_0x31009c){_0x1b0c2a['push'](_0x1b0c2a['shift']());}}}(a0_0x5a04,0xc349d));import'@material/mwc-icon';import{html,LitElement}from'lit';function a0_0x5a04(){const _0x329412=['[menu]','preventDefault','dispatchEvent','761934hMvNvX','group','settled','196461uuguxR','removeAttribute','setAttribute','4240TMqOdP','44sTigBh','click','#force','6772271bEpSAL','define','properties','activeTopLevel','12924uHmSow','20cboZus','call','dynamic-menu-portrait','stopPropagation','function','href','transitionstart','firstUpdated','931942AIdVVY','styles','render','map','transitionend','path','menu','addEventListener','closest','84uGBNNE','renderRoot','1766795UlWTto','232394TQJzHH','length','renderMenus','target'];a0_0x5a04=function(){return _0x329412;};return a0_0x5a04();}import{navigate}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';function a0_0x218d(_0x228cfb,_0x1e3b5d){const _0x5a040b=a0_0x5a04();return a0_0x218d=function(_0x218d90,_0x5f0e7a){_0x218d90=_0x218d90-0x88;let _0x8ca608=_0x5a040b[_0x218d90];return _0x8ca608;},a0_0x218d(_0x228cfb,_0x1e3b5d);}import{DynamicMenuPortraitStyles}from'./dynamic-menu-portrait-styles';export class DynamicMenuPortrait extends LitElement{static get[a0_0x37edbe(0xaa)](){return[ScrollbarStyles,DynamicMenuPortraitStyles];}static get[a0_0x37edbe(0x9e)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x37edbe(0x8d)](_0x3eb7ad,_0x599d90,_0x3b97d){const _0x9d5cef=a0_0x37edbe;return html`
|
|
2
2
|
<ul>
|
|
3
|
-
${
|
|
4
|
-
<li ?active=${
|
|
5
|
-
<a href=${
|
|
6
|
-
${
|
|
7
|
-
<mwc-icon>${
|
|
8
|
-
${
|
|
3
|
+
${_0x3eb7ad[_0x9d5cef(0xac)](_0x3b6a28=>{const _0xe0cc3e=_0x9d5cef;var {type:_0x5c5aff,active:_0x5f5c26,path:_0x3d564d,name:_0x4dc97a,badge:_0x1da1f7,icon:_0xc5be5c,menus:_0x103855}=_0x3b6a28;return _0x5f5c26=!(!_0x5f5c26||'function'!=typeof _0x5f5c26)&&_0x5f5c26[_0xe0cc3e(0xa2)](_0x3b6a28,{'path':this[_0xe0cc3e(0xae)]}),_0x1da1f7=_0xe0cc3e(0xa5)==typeof _0x1da1f7?_0x1da1f7[_0xe0cc3e(0xa2)](_0x3b6a28):_0x1da1f7??!0x1,_0xe0cc3e(0x93)==_0x5c5aff?html`<li group-label>${_0x4dc97a}</li>`:html`
|
|
4
|
+
<li ?active=${_0x599d90?_0x3b6a28===_0x599d90:_0x5f5c26} .menu=${_0x3b6a28} menu>
|
|
5
|
+
<a href=${_0x3d564d||'#'}>
|
|
6
|
+
${_0x103855?.[_0xe0cc3e(0x8c)]>0x0?html` <mwc-icon submenu-button></mwc-icon> `:html``}
|
|
7
|
+
<mwc-icon>${_0xc5be5c}</mwc-icon>
|
|
8
|
+
${_0x4dc97a} ${!0x1!==_0x1da1f7?html`<div badge>${_0x1da1f7}</div>`:html``}
|
|
9
9
|
</a>
|
|
10
|
-
${
|
|
10
|
+
${_0x103855&&this['renderMenus'](_0x103855,_0x3b97d)}
|
|
11
11
|
</li>
|
|
12
12
|
`;})}
|
|
13
13
|
</ul>
|
|
14
|
-
`;}[
|
|
14
|
+
`;}[a0_0x37edbe(0xab)](){const {menus:_0x2e35a5,activeTopLevel:_0x238732,activeMenu:_0x202a3b}=this;return this['renderMenus'](_0x2e35a5,_0x238732,_0x202a3b);}[a0_0x37edbe(0xa8)](){const _0x169b20=a0_0x37edbe;this[_0x169b20(0x89)][_0x169b20(0xb0)](_0x169b20(0x9a),_0x3adf3a=>{const _0x1cd6ed=_0x169b20,_0x1809d6=_0x3adf3a[_0x1cd6ed(0x8e)][_0x1cd6ed(0xb1)](_0x1cd6ed(0x8f));if(_0x1809d6?.[_0x1cd6ed(0xaf)]){let _0x2b2d4f=_0x1809d6[_0x1cd6ed(0xaf)];_0x2b2d4f[_0x1cd6ed(0xae)]||(_0x3adf3a[_0x1cd6ed(0xa4)](),_0x3adf3a[_0x1cd6ed(0x90)]()),this[_0x1cd6ed(0x91)](new CustomEvent('active-toplevel',{'bubbles':!0x0,'detail':this[_0x1cd6ed(0x9f)]===_0x2b2d4f?void 0x0:_0x2b2d4f}));}let _0x5589e9=_0x3adf3a[_0x1cd6ed(0x8e)][_0x1cd6ed(0xa6)];_0x5589e9&&location[_0x1cd6ed(0xa6)]===_0x5589e9&&navigate(_0x5589e9+_0x1cd6ed(0x9b),!0x0);}),this[_0x169b20(0x89)][_0x169b20(0xb0)](_0x169b20(0xa7),_0x1b49c3=>{const _0x10901b=_0x169b20;_0x1b49c3[_0x10901b(0x8e)][_0x10901b(0x96)]('settled');}),this['renderRoot'][_0x169b20(0xb0)](_0x169b20(0xad),_0x54e0ef=>{const _0x46f307=_0x169b20;_0x54e0ef['target'][_0x46f307(0x97)](_0x46f307(0x94),'');});}}customElements[a0_0x37edbe(0x9d)](a0_0x37edbe(0xa3),DynamicMenuPortrait);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x5af07d=a0_0x379f;(function(_0x50dd6d,_0x5a6aca){const _0x419360=a0_0x379f,_0x179942=_0x50dd6d();while(!![]){try{const _0x3714b4=parseInt(_0x419360(0x1c7))/0x1+-parseInt(_0x419360(0x1ca))/0x2+-parseInt(_0x419360(0x1bf))/0x3+parseInt(_0x419360(0x1c2))/0x4+-parseInt(_0x419360(0x1d3))/0x5+-parseInt(_0x419360(0x1d6))/0x6*(parseInt(_0x419360(0x1be))/0x7)+parseInt(_0x419360(0x1cd))/0x8*(parseInt(_0x419360(0x1cf))/0x9);if(_0x3714b4===_0x5a6aca)break;else _0x179942['push'](_0x179942['shift']());}catch(_0x430dbb){_0x179942['push'](_0x179942['shift']());}}}(a0_0x142f,0x27944));import'@material/mwc-icon';import{css,html,LitElement}from'lit';import{connect}from'pwa-helpers';import{toggleOverlay}from'@operato/layout';function a0_0x142f(){const _0x26e8e3=['3315216nToTwg','route','9DbgZvj','has','resourceId','menus','1223575IadJbG','_findActivePage','updated','86166mEuQQp','styles','split','metaUI','name','preventDefault','56nXncRl','339768SxSsvt','map','group','904332SuzEAq','page','dynamic-top-menu-bar','slotTemplate','_activeTopLevel','43464wDtPVH','dyamic-menu-part','properties','97948MiaEut','path','type'];a0_0x142f=function(){return _0x26e8e3;};return a0_0x142f();}import{store}from'@operato/shell';export class DynamicTopMenuBar extends connect(store)(LitElement){static get[a0_0x5af07d(0x1d7)](){return css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: row;
|
|
@@ -48,20 +48,20 @@ function a0_0x2ccf(_0x3aacda,_0x4c6fd8){const _0x2aa1b5=a0_0x2aa1();return a0_0x
|
|
|
48
48
|
li[active] a mwc-icon {
|
|
49
49
|
opacity: 1;
|
|
50
50
|
}
|
|
51
|
-
`;}static get[
|
|
51
|
+
`;}static get[a0_0x5af07d(0x1c9)](){return{'page':String,'resourceId':String,'menus':Array,'_activeTopLevel':Object};}['render'](){const _0x5979eb=a0_0x5af07d,{menus:_0x553390=[],_activeTopLevel:_0x4bdf32}=this;return html`
|
|
52
52
|
<slot name="head"></slot>
|
|
53
53
|
<ul>
|
|
54
|
-
${
|
|
55
|
-
<li ?active=${
|
|
54
|
+
${_0x553390[_0x5979eb(0x1c0)](_0x1e6819=>_0x5979eb(0x1c1)==_0x1e6819[_0x5979eb(0x1cc)]?html``:html`
|
|
55
|
+
<li ?active=${_0x1e6819===_0x4bdf32}>
|
|
56
56
|
<a
|
|
57
57
|
href="#"
|
|
58
|
-
@click=${
|
|
58
|
+
@click=${_0x441581=>{const _0x99f468=_0x5979eb;_0x441581[_0x99f468(0x1bd)](),toggleOverlay(_0x99f468(0x1c8),{'backdrop':!0x0});}}
|
|
59
59
|
>
|
|
60
|
-
${
|
|
60
|
+
${_0x1e6819[_0x5979eb(0x1da)]}
|
|
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
|
-
`;}['stateChanged'](
|
|
67
|
+
`;}['stateChanged'](_0x286040){const _0x26120f=a0_0x5af07d;this[_0x26120f(0x1c3)]=_0x286040[_0x26120f(0x1ce)][_0x26120f(0x1c3)],this[_0x26120f(0x1d1)]=_0x286040[_0x26120f(0x1ce)]['resourceId'],this['menus']=_0x286040['metaUI']['menus']||[],this[_0x26120f(0x1c5)]=_0x286040[_0x26120f(0x1d9)][_0x26120f(0x1c5)];}[a0_0x5af07d(0x1d5)](_0x8eef6f){const _0x1d106f=a0_0x5af07d;(_0x8eef6f[_0x1d106f(0x1d0)](_0x1d106f(0x1d2))||_0x8eef6f['has'](_0x1d106f(0x1c3))||_0x8eef6f[_0x1d106f(0x1d0)](_0x1d106f(0x1d1)))&&this[_0x1d106f(0x1d4)](),_0x8eef6f[_0x1d106f(0x1d0)](_0x1d106f(0x1c5))&&this['replaceChild'](this[_0x1d106f(0x1c5)]);}[a0_0x5af07d(0x1d4)](){const _0x35cd96=a0_0x5af07d;var _0x408dbb=this[_0x35cd96(0x1d1)]?this[_0x35cd96(0x1c3)]+'/'+this[_0x35cd96(0x1d1)]:this['page'],_0x124ea3=this[_0x35cd96(0x1d2)]||[];this[_0x35cd96(0x1c6)]=_0x124ea3['find'](_0x485fe4=>_0x485fe4[_0x35cd96(0x1cb)]?.[_0x35cd96(0x1d8)]('?')[0x0]===_0x408dbb||(_0x485fe4[_0x35cd96(0x1d2)]?!!_0x485fe4[_0x35cd96(0x1d2)]['find'](_0x3f04be=>_0x3f04be['path']?.[_0x35cd96(0x1d8)]('?')[0x0]===_0x408dbb):void 0x0));}}function a0_0x379f(_0x3d7f5e,_0x3b44ce){const _0x142f8c=a0_0x142f();return a0_0x379f=function(_0x379f7e,_0x5f4ea2){_0x379f7e=_0x379f7e-0x1bd;let _0x2c57ae=_0x142f8c[_0x379f7e];return _0x2c57ae;},a0_0x379f(_0x3d7f5e,_0x3b44ce);}customElements['define'](a0_0x5af07d(0x1c4),DynamicTopMenuBar);
|