@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.
Files changed (58) hide show
  1. package/client/actions/main.js +4 -4
  2. package/client/mixin/meta-base-mixin.js +1 -1
  3. package/client/mixin/meta-basic-grist-mixin.js +4 -4
  4. package/client/mixin/meta-button-mixin.js +1 -1
  5. package/client/mixin/meta-form-mixin.js +1 -1
  6. package/client/mixin/meta-grist-tab-mixin.js +1 -1
  7. package/client/mixin/meta-master-detail-mixin.js +1 -1
  8. package/client/mixin/meta-service-mixin.js +1 -1
  9. package/client/mixin/meta-tab-mixin.js +1 -1
  10. package/client/pages/activity/meta-activity-list-page.js +6 -6
  11. package/client/pages/activity/meta-activity-viewer-element.js +3 -1
  12. package/client/pages/activity/meta-activity-writer-element.js +3 -20
  13. package/client/pages/activity/meta-activiy-mixin.js +18 -0
  14. package/client/pages/entity/config-entity.js +29 -29
  15. package/client/pages/entity/main-menu-selector.js +8 -8
  16. package/client/pages/history/history-copy-list-popup.js +5 -5
  17. package/client/pages/history/history-json-list-popup.js +6 -6
  18. package/client/pages/loading-page.js +5 -5
  19. package/client/pages/menu/dynamic-menu-template.js +7 -7
  20. package/client/pages/menu/dynamic-menu.js +14 -14
  21. package/client/pages/meta-form-element.js +1 -1
  22. package/client/pages/meta-grist-element.js +1 -1
  23. package/client/pages/meta-grist-page.js +1 -1
  24. package/client/pages/meta-grist-tab-element.js +1 -1
  25. package/client/pages/meta-grist-tab-page.js +1 -1
  26. package/client/pages/meta-master-detail-element.js +1 -1
  27. package/client/pages/meta-master-detail-page.js +1 -1
  28. package/client/pages/meta-tab-element.js +1 -1
  29. package/client/pages/personalize/personal-column-selector.js +11 -11
  30. package/client/pages/terms/config-terminology.js +6 -6
  31. package/client/reducers/main.js +1 -1
  32. package/client/utils/meta-api.js +1 -1
  33. package/client/utils/meta-crypto.js +1 -1
  34. package/client/utils/meta-ui-util.js +94 -87
  35. package/client/utils/service-util.js +12 -12
  36. package/client/utils/terms-util.js +2 -2
  37. package/client/utils/ui-util.js +1 -1
  38. package/client/utils/value-util.js +1 -1
  39. package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
  40. package/client/viewparts/dynamic-menu-landscape.js +10 -10
  41. package/client/viewparts/dynamic-menu-part.js +12 -12
  42. package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
  43. package/client/viewparts/dynamic-menu-portrait.js +9 -9
  44. package/client/viewparts/dynamic-top-menu-bar.js +7 -7
  45. package/package.json +5 -5
  46. package/server/activity/CommonActivity.js +2 -2
  47. package/server/constants/error-code.js +1 -1
  48. package/server/errors/license-error.js +1 -1
  49. package/server/routes.js +1 -1
  50. package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
  51. package/server/service/grid-personalize/grid-personalize-query.js +1 -1
  52. package/server/service/grid-personalize/grid-personalize-type.js +1 -1
  53. package/server/service/grid-personalize/grid-personalize.js +1 -1
  54. package/server/service/meta-activity/meta-activity-mutation.js +1 -1
  55. package/server/service/meta-activity/meta-activity-query.js +1 -1
  56. package/server/service/meta-activity/meta-activity-type.js +1 -1
  57. package/server/service/meta-secret/meta-resolver.js +1 -1
  58. 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
- ${_0x5eeb0f}(filters: $filters, pagination: $pagination, sortings: $sortings) {
3
+ ${_0x304e70}(filters: $filters, pagination: $pagination, sortings: $sortings) {
4
4
  items {
5
- ${_0x377f1f}
5
+ ${_0x358bc1}
6
6
  }
7
7
  total
8
8
  }
9
9
  }
10
- `,'variables':{'filters':_0x3d8f94,'sortings':_0x4a8c8f,'pagination':{'page':_0x152345,'limit':_0x2c290a}}});if(!_0x2d90b9[_0x1f561d(0xee)])return{'records':_0x2d90b9[_0x1f561d(0xc7)][_0x5eeb0f][_0x1f561d(0x105)],'total':_0x2d90b9[_0x1f561d(0xc7)][_0x5eeb0f][_0x1f561d(0x138)]};ServiceUtil[_0x1f561d(0x136)](_0x2d90b9);}catch(_0x105ffd){ServiceUtil[_0x1f561d(0x11d)](_0x105ffd);}return null;}static async[a0_0x150189(0xfe)](_0x414141,_0xe06b,_0x286702){const _0x605948=a0_0x150189;try{let _0xf5c333=await client[_0x605948(0xcc)]({'query':a0_0x3babc1`
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
- ${_0x414141}(id: $id) {
13
- ${_0x286702}
12
+ ${_0x9ceb71}(id: $id) {
13
+ ${_0xab08d1}
14
14
  }
15
15
  }
16
- `,'variables':{'id':_0xe06b}});if(!_0xf5c333[_0x605948(0xee)])return _0xf5c333['data'][_0x414141]||{};ServiceUtil[_0x605948(0x136)](_0xf5c333);}catch(_0x4850f9){ServiceUtil[_0x605948(0x11d)](_0x4850f9);}return null;}static['getSelectedIdList'](_0x3eeed3,_0x38f076){const _0x4b9fcf=a0_0x150189,_0x4ca12e=_0x3eeed3[_0x4b9fcf(0xb9)][_0x4b9fcf(0x115)](_0x5bd0e3=>_0x5bd0e3['id']);return ValueUtil[_0x4b9fcf(0xc8)](_0x4ca12e)&&0x1==_0x38f076&&UiUtil['showAlertPopup'](_0x4b9fcf(0xd7),'text.there_is_nothing_to_delete',_0x4b9fcf(0xb8),_0x4b9fcf(0x10f)),_0x4ca12e;}static async[a0_0x150189(0xf3)](_0x14bfa8,_0xe91137){const _0x36edf1=a0_0x150189;let _0x2f01f5=ServiceUtil['getSelectedIdList'](_0x14bfa8,!0x0);ValueUtil[_0x36edf1(0xf4)](_0x2f01f5)&&(await ServiceUtil[_0x36edf1(0x12d)](_0x2f01f5,_0xe91137)&&_0x14bfa8[_0x36edf1(0xde)]());}static async[a0_0x150189(0x12d)](_0x1953d2,_0x154f45){const _0x171b7a=a0_0x150189;if(!(await UiUtil[_0x171b7a(0x100)](_0x171b7a(0xc2),_0x171b7a(0x135),'question',_0x171b7a(0x11a),_0x171b7a(0x11f)))[_0x171b7a(0x117)])return!0x1;try{const _0x57a47b=await client[_0x171b7a(0xcc)]({'query':a0_0x3babc1`
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
- ${_0x154f45}(${gqlBuilder[_0x171b7a(0x126)]({'ids':_0x1953d2})})
18
+ ${_0x3a1b4b}(${gqlBuilder[_0x41cfbf(0x1e9)]({'ids':_0x41ab74})})
19
19
  }
20
- `});if(!_0x57a47b['errors'])return UiUtil[_0x171b7a(0x131)](_0x171b7a(0xb8),TermsUtil['tText']('success\x20to\x20delete')),!0x0;ServiceUtil[_0x171b7a(0x136)](_0x57a47b);}catch(_0x3d92a6){ServiceUtil['showGraphqlException'](_0x3d92a6);}return!0x1;}static async[a0_0x150189(0x10d)](_0x323c3f,_0x2fa9cc){const _0x114839=a0_0x150189;let _0x19e0f5=ServiceUtil[_0x114839(0xe6)](_0x323c3f);if(ValueUtil[_0x114839(0xf4)](_0x19e0f5)){let _0x17050a=await ServiceUtil[_0x114839(0x10c)](_0x2fa9cc,_0x19e0f5);if(_0x17050a)return _0x323c3f[_0x114839(0xde)](),_0x17050a;}return!0x1;}static async[a0_0x150189(0x10c)](_0x2417f0,_0x3d0d5f){const _0x150e82=a0_0x150189;try{const _0x26a853=await client[_0x150e82(0xcc)]({'query':a0_0x3babc1`
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
- ${_0x2417f0}(${gqlBuilder[_0x150e82(0x126)]({'patches':_0x3d0d5f})}) {
22
+ ${_0x58cf3e}(${gqlBuilder[_0x759466(0x1e9)]({'patches':_0xe180f2})}) {
23
23
  id
24
24
  }
25
25
  }
26
- `,'context':{'hasUpload':!0x0}});if(!_0x26a853[_0x150e82(0xee)])return UiUtil['showToast'](_0x150e82(0xb8),TermsUtil[_0x150e82(0xf7)](_0x150e82(0xe5))),!0x0;ServiceUtil[_0x150e82(0x136)](_0x26a853);}catch(_0x1b9403){ServiceUtil[_0x150e82(0x11d)](_0x1b9403);}return!0x1;}static[a0_0x150189(0xe6)](_0x4b727c,_0x41630d=!0x1){const _0x106aca=a0_0x150189;let _0x36399a=_0x4b727c[_0x106aca(0xeb)];if(_0x36399a&&0x0!=_0x36399a[_0x106aca(0x10b)])return _0x36399a[_0x106aca(0x115)](_0x2333bc=>{const _0x4e9fcf=_0x106aca;let _0x578c7c=_0x2333bc['id']?{'id':_0x2333bc['id']}:{};for(let _0x4ff1e3 in _0x2333bc)['creator',_0x4e9fcf(0xbd),_0x4e9fcf(0xe3),'updatedAt',_0x4e9fcf(0xd3),_0x4e9fcf(0xb6),'__origin__',_0x4e9fcf(0xf2),_0x4e9fcf(0xff)]['includes'](_0x4ff1e3)||(_0x2333bc[_0x4ff1e3]&&_0x4e9fcf(0x116)==typeof _0x2333bc[_0x4ff1e3]&&0x0==_0x41630d?_0x578c7c[_0x4ff1e3]={'id':_0x2333bc[_0x4ff1e3]['id']}:_0x578c7c[_0x4ff1e3]=_0x2333bc[_0x4ff1e3]);return _0x578c7c['cuFlag']=_0x2333bc[_0x4e9fcf(0xd3)],_0x578c7c;});UiUtil[_0x106aca(0x100)]('text.nothing_changed',_0x106aca(0x102),_0x106aca(0xb8),'confirm');}static async[a0_0x150189(0xdf)](_0x1077db,_0x552af5,_0x2430b4){const _0x59aa4c=a0_0x150189;let _0x100eb1=!0x0;_0x1077db&&(_0x100eb1=(await UiUtil[_0x59aa4c(0x100)](_0x59aa4c(0xd5)+_0x1077db,_0x59aa4c(0x135),_0x59aa4c(0x129),_0x59aa4c(0x10f),_0x59aa4c(0x11f)))['value']);if(_0x100eb1)try{const _0x58f4f3=await client[_0x59aa4c(0xcc)]({'query':a0_0x3babc1`
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':_0x552af5,'variables':_0x2430b4}});if(_0x58f4f3[_0x59aa4c(0xee)])ServiceUtil[_0x59aa4c(0x136)](_0x58f4f3);else{if(this[_0x59aa4c(0x112)](_0x58f4f3))return UiUtil['showToast'](_0x59aa4c(0xb8),TermsUtil[_0x59aa4c(0xf7)](_0x59aa4c(0x106))),_0x58f4f3;}}catch(_0x2649e3){ServiceUtil[_0x59aa4c(0x11d)](_0x2649e3);}return!0x1;}static['checkClientError'](_0x25e9fb){const _0x55a6e1=a0_0x150189;if(_0x25e9fb&&_0x25e9fb[_0x55a6e1(0xc7)]&&_0x25e9fb[_0x55a6e1(0xc7)]['runScenario']&&_0x25e9fb[_0x55a6e1(0xc7)][_0x55a6e1(0xcf)][_0x55a6e1(0xc7)]&&_0x25e9fb['data'][_0x55a6e1(0xcf)]['data'][_0x55a6e1(0xe9)]){let _0x14ccba=_0x25e9fb[_0x55a6e1(0xc7)]['runScenario']['data'][_0x55a6e1(0xe9)];return UiUtil[_0x55a6e1(0x100)](_0x14ccba[_0x55a6e1(0xb7)],_0x14ccba[_0x55a6e1(0xdb)],_0x55a6e1(0xe9),_0x55a6e1(0x10f)),!0x1;}return!0x0;}}
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
- function a0_0x10d9(_0x3e93bc,_0xab43e7){const _0x2a7814=a0_0x2a78();return a0_0x10d9=function(_0x10d944,_0x39f054){_0x10d944=_0x10d944-0x16e;let _0x3cebee=_0x2a7814[_0x10d944];return _0x3cebee;},a0_0x10d9(_0x3e93bc,_0xab43e7);}const a0_0x695a43=a0_0x10d9;(function(_0x37585e,_0x311254){const _0xbf7eae=a0_0x10d9,_0x5a27b0=_0x37585e();while(!![]){try{const _0xc64e78=-parseInt(_0xbf7eae(0x17e))/0x1+-parseInt(_0xbf7eae(0x197))/0x2*(parseInt(_0xbf7eae(0x18b))/0x3)+parseInt(_0xbf7eae(0x192))/0x4*(-parseInt(_0xbf7eae(0x190))/0x5)+parseInt(_0xbf7eae(0x17d))/0x6*(-parseInt(_0xbf7eae(0x182))/0x7)+-parseInt(_0xbf7eae(0x187))/0x8*(-parseInt(_0xbf7eae(0x18c))/0x9)+parseInt(_0xbf7eae(0x180))/0xa*(parseInt(_0xbf7eae(0x17b))/0xb)+parseInt(_0xbf7eae(0x16f))/0xc;if(_0xc64e78===_0x311254)break;else _0x5a27b0['push'](_0x5a27b0['shift']());}catch(_0x2e6d3d){_0x5a27b0['push'](_0x5a27b0['shift']());}}}(a0_0x2a78,0x40ddc));import a0_0x1e4b8b from'graphql-tag';import{client}from'@operato/graphql';import{i18next}from'@operato/i18n';function a0_0x2a78(){const _0x46537d=['forEach','category','tMenu','items','fetchTerminologies','tText','locale','translate','tField','terminologies','title','15081svbcSO','text','18CstgEx','459234UXaBLm','downloadTerminologies','2200uAuzZY','META_TERMS','1093827hAOXCi','data','errors','menu','total','2656HofGfW','keys','button','records','330237ZAmQuC','11169tsFPBM','display','query','name','5LYcUXH','length','845036lkikDm','tError','replace','tButton','field','4YXdSpa','label','10937928QBBfVI'];a0_0x2a78=function(){return _0x46537d;};return a0_0x2a78();}export class TermsUtil{[a0_0x695a43(0x181)]=null;static async[a0_0x695a43(0x17f)](_0x2a8a03){const _0x2348e8=a0_0x695a43;let _0x149c15=(await TermsUtil[_0x2348e8(0x174)](_0x2a8a03))[_0x2348e8(0x18a)];_0x149c15&&_0x149c15[_0x2348e8(0x191)]>0x0&&(this[_0x2348e8(0x181)]={},_0x149c15[_0x2348e8(0x170)](_0x521e96=>{const _0x48f217=_0x2348e8;let _0x401b11=_0x521e96[_0x48f217(0x171)]+'.'+_0x521e96['name'];this[_0x48f217(0x181)][_0x401b11]=_0x521e96[_0x48f217(0x18d)];}));}static async[a0_0x695a43(0x174)](_0x52e291){const _0x39877c=a0_0x695a43;let _0x3d49a1=[{'name':_0x39877c(0x176),'operator':'eq','value':_0x52e291}];const _0x1f5478=await client[_0x39877c(0x18e)]({'query':a0_0x1e4b8b`
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':_0x3d49a1,'sortings':[{'name':'category'},{'name':_0x39877c(0x18f)}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0x1f5478[_0x39877c(0x184)])return{'records':_0x1f5478[_0x39877c(0x183)][_0x39877c(0x179)][_0x39877c(0x173)]||[],'total':_0x1f5478[_0x39877c(0x183)]['terminologies'][_0x39877c(0x186)]||0x0};}static['tLabel'](_0x2b6187,_0x1cdbc9){const _0x1b2fd4=a0_0x695a43;let _0x1a658d=TermsUtil['translate'](_0x1b2fd4(0x16e),_0x2b6187,_0x1cdbc9,null);return _0x1a658d||TermsUtil[_0x1b2fd4(0x177)](_0x1b2fd4(0x196),_0x2b6187,_0x1cdbc9,_0x2b6187);}static[a0_0x695a43(0x178)](_0x58c0e0,_0x49016b){const _0x1a229f=a0_0x695a43;let _0x3ba452=TermsUtil[_0x1a229f(0x177)](_0x1a229f(0x196),_0x58c0e0,_0x49016b,null);return _0x3ba452||TermsUtil[_0x1a229f(0x177)](_0x1a229f(0x196),_0x58c0e0,_0x49016b,_0x58c0e0);}static[a0_0x695a43(0x195)](_0x23bd29){const _0x589b02=a0_0x695a43;return TermsUtil['translate'](_0x589b02(0x189),_0x23bd29,null,_0x23bd29);}static['tTitle'](_0x182479,_0x5f3cb9){const _0x2666cf=a0_0x695a43;let _0x437772=TermsUtil[_0x2666cf(0x177)](_0x2666cf(0x17a),_0x182479,_0x5f3cb9,null);return _0x437772||TermsUtil[_0x2666cf(0x177)](_0x2666cf(0x185),_0x182479,_0x5f3cb9,_0x182479);}static[a0_0x695a43(0x172)](_0x5a1eb9){const _0x24dcf4=a0_0x695a43;let _0x4ebf72=TermsUtil[_0x24dcf4(0x177)](_0x24dcf4(0x185),_0x5a1eb9,null,_0x5a1eb9);return _0x4ebf72||TermsUtil[_0x24dcf4(0x177)](_0x24dcf4(0x17a),_0x5a1eb9,null,_0x5a1eb9);}static[a0_0x695a43(0x175)](_0x225838,_0x410395){const _0x312cdc=a0_0x695a43;return TermsUtil['translate'](_0x312cdc(0x17c),_0x225838,_0x410395,_0x225838);}static[a0_0x695a43(0x193)](_0x4abaad,_0x395225){const _0x552075=a0_0x695a43;return TermsUtil[_0x552075(0x177)]('error',_0x4abaad,_0x395225,_0x4abaad);}static[a0_0x695a43(0x177)](_0x18abd9,_0x1e7b62,_0x5e41d3,_0x4531d0){let _0x4470ff=_0x18abd9+'.'+_0x1e7b62;return TermsUtil['t'](_0x4470ff,_0x5e41d3,_0x4531d0);}static['t'](_0x3baaae,_0x4bae3c,_0x595b3e){const _0x84daad=a0_0x695a43;let _0x3fe1d3=this['META_TERMS']?this['META_TERMS'][_0x3baaae]:null;return _0x3fe1d3=_0x3fe1d3||i18next['t'](_0x3baaae),_0x3fe1d3&&_0x3baaae!=_0x3fe1d3?(_0x4bae3c&&Object[_0x84daad(0x188)](_0x4bae3c)[_0x84daad(0x170)](function(_0x442de1){const _0x5c042c=_0x84daad;var _0x30fc6f='\x5c{'+_0x442de1[_0x5c042c(0x194)](/\$/,'\x5c$')+'\x5c}',_0x767a1c=new RegExp(_0x30fc6f,'gi');_0x3fe1d3=_0x3fe1d3[_0x5c042c(0x194)](_0x767a1c,_0x4bae3c[_0x442de1]);}),_0x3fe1d3):_0x595b3e;}}
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;}}
@@ -1 +1 @@
1
- function a0_0x2f6a(_0x5f5d8f,_0x57a190){const _0x46ea80=a0_0x46ea();return a0_0x2f6a=function(_0x2f6af8,_0xc0ff0){_0x2f6af8=_0x2f6af8-0x1d4;let _0x3add10=_0x46ea80[_0x2f6af8];return _0x3add10;},a0_0x2f6a(_0x5f5d8f,_0x57a190);}const a0_0x459dd2=a0_0x2f6a;(function(_0x4318c0,_0x412ecf){const _0x215bb5=a0_0x2f6a,_0x363fd2=_0x4318c0();while(!![]){try{const _0x7da2ef=parseInt(_0x215bb5(0x1d9))/0x1+parseInt(_0x215bb5(0x1e6))/0x2+-parseInt(_0x215bb5(0x207))/0x3+parseInt(_0x215bb5(0x1f9))/0x4*(parseInt(_0x215bb5(0x20a))/0x5)+-parseInt(_0x215bb5(0x1f6))/0x6*(parseInt(_0x215bb5(0x1d6))/0x7)+-parseInt(_0x215bb5(0x1f5))/0x8*(parseInt(_0x215bb5(0x1f2))/0x9)+parseInt(_0x215bb5(0x1ff))/0xa;if(_0x7da2ef===_0x412ecf)break;else _0x363fd2['push'](_0x363fd2['shift']());}catch(_0x8ac993){_0x363fd2['push'](_0x363fd2['shift']());}}}(a0_0x46ea,0x1cabe));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[a0_0x459dd2(0x21f)](){return isMobileDevice();}static[a0_0x459dd2(0x1fb)](){const _0x5f5bbb=a0_0x459dd2;let _0x4b5bdb=document[_0x5f5bbb(0x1e8)];return _0x4b5bdb=_0x4b5bdb['substring'](_0x4b5bdb[_0x5f5bbb(0x1d8)](_0x5f5bbb(0x21d))),_0x4b5bdb[_0x5f5bbb(0x1d8)](';')>-0x1&&(_0x4b5bdb=_0x4b5bdb['substring'](0x0,_0x4b5bdb['indexOf'](';'))),_0x4b5bdb=_0x4b5bdb[_0x5f5bbb(0x1e0)](_0x5f5bbb(0x204),''),'ko'==_0x4b5bdb?_0x5f5bbb(0x20e):_0x4b5bdb;}static['getApplicationModuleInfo'](){const _0x50d557=a0_0x459dd2;let _0x313646=store[_0x50d557(0x20b)]()[_0x50d557(0x21b)][_0x50d557(0x1d5)];return _0x313646[_0x313646[_0x50d557(0x214)]-0x1];}static[a0_0x459dd2(0x217)](){const _0x10f84d=a0_0x459dd2;return store['getState']()[_0x10f84d(0x20c)][_0x10f84d(0x206)];}static[a0_0x459dd2(0x1da)](_0x1fb28b,_0x475be2,_0x1e35cd,_0x34d68f){return openPopup(_0x1e35cd,{'backdrop':!0x0,'size':_0x475be2,'title':_0x1fb28b,'backdrop':_0x34d68f});}static async[a0_0x459dd2(0x1ec)](_0x1ca0b2,_0x586066,_0x52d1ce,_0x2d75eb){const _0x1a2cfc=a0_0x459dd2;let _0x3c1669=ValueUtil['isNotEmpty'](_0x586066['parent_field'])?ValueUtil[_0x1a2cfc(0x1ef)](_0x52d1ce,..._0x586066['parent_field']['split']('.')):void 0x0,_0x266245='<'+_0x586066[_0x1a2cfc(0x1ed)]+_0x1a2cfc(0x1de)+_0x586066[_0x1a2cfc(0x1ee)]+_0x1a2cfc(0x201)+_0x3c1669+_0x1a2cfc(0x220)+_0x586066[_0x1a2cfc(0x1ed)]+'>',_0x42307d=UiUtil[_0x1a2cfc(0x212)](_0x266245);_0x42307d[_0x1a2cfc(0x1e5)]=_0x586066,ValueUtil['isNotEmpty'](_0x586066[_0x1a2cfc(0x210)])&&(_0x42307d[_0x586066['popup_field']]=_0x52d1ce);let _0x3d4883=UiUtil[_0x1a2cfc(0x1da)](_0x1ca0b2,_0x586066[_0x1a2cfc(0x209)],_0x42307d,!0x0);_0x2d75eb&&(_0x3d4883[_0x1a2cfc(0x218)]=_0x2d75eb);}static[a0_0x459dd2(0x1fd)](_0x2666a1,_0xcd5150){const _0x40b7ce=a0_0x459dd2;let _0x2922a8='<'+_0x2666a1+_0x40b7ce(0x1de)+_0xcd5150+_0x40b7ce(0x202)+_0x2666a1+'>';return UiUtil[_0x40b7ce(0x212)](_0x2922a8);}static[a0_0x459dd2(0x212)](_0x50e838){const _0x428532=a0_0x459dd2;var _0x18c671=document['createElement']('template');_0x18c671[_0x428532(0x1e7)]=_0x50e838;var _0x4fac4f=_0x18c671[_0x428532(0x1f1)][_0x428532(0x1ea)][0x0];return _0x18c671[_0x428532(0x1f1)][_0x428532(0x1dc)](_0x4fac4f),_0x4fac4f;}static[a0_0x459dd2(0x1e9)](_0x5c3c0f,_0x1a92b9){const _0x1e2fff=a0_0x459dd2;let _0x30ee08=_0x1a92b9?'?':'';_0x1a92b9&&(_0x30ee08+=_0x1e2fff(0x20d)+JSON['stringify'](_0x1a92b9)),navigate(''+_0x5c3c0f+_0x30ee08);}static[a0_0x459dd2(0x205)](_0x4de6ac,_0x158eb8,_0x51013d){const _0x277c57=a0_0x459dd2;let _0x1955d0=_0x1955d0[_0x277c57(0x20b)]();return _0x4de6ac&&_0x158eb8&&_0x51013d?_0x1955d0[_0x4de6ac][_0x158eb8][_0x51013d]:_0x4de6ac&&_0x158eb8?_0x1955d0[_0x4de6ac][_0x158eb8]:_0x4de6ac?_0x1955d0[_0x4de6ac]:_0x1955d0;}static['fireCustomEvent'](_0x18c3a9,_0x401cc7){document['dispatchEvent'](new CustomEvent(_0x18c3a9,{'detail':_0x401cc7}));}static[a0_0x459dd2(0x219)](_0x56aaf6,_0x4d6755){const _0x41d2fa=a0_0x459dd2;document[_0x41d2fa(0x1d7)](new CustomEvent(_0x41d2fa(0x21c),{'detail':{'type':_0x56aaf6,'message':_0x4d6755}}));}static async[a0_0x459dd2(0x1e1)](_0x138a46,_0x1b13ae,_0x3e25a8,_0x39f75c,_0x22b6df){const _0x37d901=a0_0x459dd2;let _0x5886f6={'title':TermsUtil['t'](_0x138a46)||_0x138a46,'text':TermsUtil['t'](_0x1b13ae)||_0x1b13ae};return _0x3e25a8&&(_0x5886f6[_0x37d901(0x1d4)]=_0x3e25a8),_0x39f75c&&(_0x5886f6[_0x37d901(0x1e2)]=TermsUtil[_0x37d901(0x208)](_0x39f75c)),_0x22b6df&&(_0x5886f6[_0x37d901(0x203)]=TermsUtil[_0x37d901(0x208)](_0x22b6df)),await CustomAlert(_0x5886f6);}static[a0_0x459dd2(0x1f3)](_0x460da6){const _0x22aeff=a0_0x459dd2;if(ValueUtil[_0x22aeff(0x1f0)](_0x460da6)){let _0x5778a9=_0x460da6[_0x22aeff(0x1f7)]();ValueUtil[_0x22aeff(0x1f0)](_0x5778a9)&&_0x5778a9[_0x22aeff(0x1df)](_0x3425b2=>{const _0x5db133=_0x22aeff;ValueUtil[_0x5db133(0x1f0)](_0x3425b2['value'])&&(item[_0x3425b2[_0x5db133(0x1db)]]=_0x3425b2[_0x5db133(0x21e)]?_0x3425b2[_0x5db133(0x21e)]:null);});}return{};}static[a0_0x459dd2(0x1f4)](_0x54595d,_0x53536d,_0x7db69d){const _0x5f46e7=a0_0x459dd2;if(ValueUtil[_0x5f46e7(0x1f0)](_0x54595d)){let _0x54cb7d=_0x54595d['renderRoot']?.[_0x5f46e7(0x1eb)](_0x5f46e7(0x1fa)+_0x53536d+'\x27]');ValueUtil[_0x5f46e7(0x1f0)](_0x54cb7d)&&(_0x54cb7d['value']=_0x7db69d);}}static[a0_0x459dd2(0x1e3)](_0x35095e,_0x15dcba,_0x571b30,_0x306c5f){return getEditor(_0x35095e)('',_0x15dcba,_0x571b30,_0x306c5f,{});}static[a0_0x459dd2(0x211)](_0x3a32eb,_0x137a9e){const _0x28368d=a0_0x459dd2;UiUtil[_0x28368d(0x20f)](_0x3a32eb)[_0x28368d(0x21e)]=_0x137a9e;}static['getLeafInput'](_0x2ca030){const _0x197bd4=a0_0x459dd2;let _0x32cab7=_0x2ca030[_0x197bd4(0x1fe)]();return _0x197bd4(0x1e4)==_0x32cab7?_0x2ca030[_0x197bd4(0x213)][_0x197bd4(0x1eb)](_0x197bd4(0x1fc)):'textarea'==_0x32cab7?_0x2ca030[_0x197bd4(0x213)][_0x197bd4(0x1eb)]('textarea'):_0x197bd4(0x1f8)==_0x32cab7?_0x2ca030['renderRoot'][_0x197bd4(0x1eb)](_0x197bd4(0x216))['firstElementChild']:_0x197bd4(0x21a)==_0x32cab7?_0x2ca030[_0x197bd4(0x213)][_0x197bd4(0x1eb)](_0x197bd4(0x215))[_0x197bd4(0x213)][_0x197bd4(0x1eb)]('input'):_0x2ca030[_0x197bd4(0x213)][_0x197bd4(0x1dd)][_0x197bd4(0x200)];}}function a0_0x46ea(){const _0xe8769c=['167918uaURIz','innerHTML','cookie','pageNavigate','childNodes','querySelector','openDynamicPopup','tagname','menu','getParams','isNotEmpty','content','9idNZnO','getFilterFormData','setSearchFormEditorValue','1711720oiWpEl','18olzMHR','filters','select-combo','823044PlRjLI','[name=\x27','currentLocale','ox-input-code','createCustomElement','getType','3216630lTzCQO','editor','\x27\x20\x20parent_id=\x27','\x27></','cancelButton','i18next=','getStore','page','534747hREYyy','tButton','size','5eAlSUL','getState','route','pass=','ko-KR','getLeafInput','popup_field','setValueToEditor','htmlToElement','renderRoot','length','ox-input-barcode','ox-select','currentRouting','onclosed','showToast','barcode','app','notify','i18next','value','isMobileEnv','\x27\x20is_popup=true></','type','modules','376642uZqBCN','dispatchEvent','indexOf','59687qdLcrk','openPopupByElement','name','removeChild','firstElementChild','\x20route_name=\x27','forEach','replace','showAlertPopup','confirmButton','createEditorHtml','code-editor','config'];a0_0x46ea=function(){return _0xe8769c;};return a0_0x46ea();}
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
- function a0_0x1a08(_0x529517,_0x4bbe34){const _0x1a72a0=a0_0x1a72();return a0_0x1a08=function(_0x1a0877,_0x510fc4){_0x1a0877=_0x1a0877-0x153;let _0x14406e=_0x1a72a0[_0x1a0877];return _0x14406e;},a0_0x1a08(_0x529517,_0x4bbe34);}const a0_0x322a90=a0_0x1a08;(function(_0xd286f9,_0x60b2b4){const _0x539cf6=a0_0x1a08,_0x4e5c6b=_0xd286f9();while(!![]){try{const _0x40c036=-parseInt(_0x539cf6(0x15f))/0x1*(-parseInt(_0x539cf6(0x166))/0x2)+-parseInt(_0x539cf6(0x15d))/0x3+-parseInt(_0x539cf6(0x160))/0x4*(-parseInt(_0x539cf6(0x15e))/0x5)+parseInt(_0x539cf6(0x153))/0x6+parseInt(_0x539cf6(0x156))/0x7+parseInt(_0x539cf6(0x167))/0x8+-parseInt(_0x539cf6(0x157))/0x9*(parseInt(_0x539cf6(0x16d))/0xa);if(_0x40c036===_0x60b2b4)break;else _0x4e5c6b['push'](_0x4e5c6b['shift']());}catch(_0x12ffed){_0x4e5c6b['push'](_0x4e5c6b['shift']());}}}(a0_0x1a72,0x7e93a));import a0_0xd75a6d from'lodash-es/isEqual';function a0_0x1a72(){const _0x4ca025=['populateArray','isEquals','1074066wrAjnu','24185MVxUaD','21FxtOim','444RYIFbN','setParams','length','map','populateObject','keys','90682rORpNp','616848BaZvRD','boolean','isNotEmpty','toBoolean','forEach','isEmpty','12680yLNXgw','5202924BdMOYv','object','toInteger','4297776YRbVfq','15408MymyUS','number','string','slice'];a0_0x1a72=function(){return _0x4ca025;};return a0_0x1a72();}import{TermsUtil}from'./terms-util';export class ValueUtil{static[a0_0x322a90(0x16c)](_0x384502){const _0x12cf60=a0_0x322a90;if(void 0x0===_0x384502)return!0x0;if(null===_0x384502)return!0x0;if(_0x12cf60(0x168)==typeof _0x384502)return!0x1;if(_0x12cf60(0x159)==typeof _0x384502||_0x12cf60(0x158)==typeof _0x384502){if(''==_0x384502)return!0x0;}else{if(Array['isArray'](_0x384502)){if(0x0==_0x384502[_0x12cf60(0x162)])return!0x0;}else{if(_0x12cf60(0x154)==typeof _0x384502&&0x0==Object[_0x12cf60(0x165)](_0x384502)[_0x12cf60(0x162)])return!0x0;}}return!0x1;}static['isNotEmpty'](_0x474f9e){const _0x44eff9=a0_0x322a90;return!ValueUtil[_0x44eff9(0x16c)](_0x474f9e);}static[a0_0x322a90(0x15c)](_0x156807,_0x5979ca){return a0_0xd75a6d(_0x156807,_0x5979ca);}static[a0_0x322a90(0x155)](_0x3015af,_0x36a5eb){return ValueUtil['isEmpty'](_0x3015af)?_0x36a5eb||0x0:parseInt(_0x3015af);}static[a0_0x322a90(0x16a)](_0x413dff){const _0x2e4034=a0_0x322a90;return!ValueUtil[_0x2e4034(0x16c)](_0x413dff)&&('true'==_0x413dff||'t'==_0x413dff||'TRUE'==_0x413dff||'T'==_0x413dff||'on'==_0x413dff||'ON'==_0x413dff);}static['compareObjectValues'](_0x487d91,_0xc4731f,_0x496084){const _0x2c67fd=a0_0x322a90;let _0x1e3d1b=!0x0;return _0x496084[_0x2c67fd(0x16b)](_0x3dcb01=>{const _0x3bbf8d=_0x2c67fd;let _0x2956b4=_0x487d91[_0x3dcb01];if('*'===_0x2956b4)return;let _0x2fc47f=_0xc4731f[_0x3dcb01]||'';ValueUtil[_0x3bbf8d(0x16c)](_0x2956b4)?ValueUtil[_0x3bbf8d(0x169)](_0x2fc47f)&&(_0x1e3d1b=!0x1):_0x2956b4!=_0x2fc47f&&(_0x1e3d1b=!0x1);}),_0x1e3d1b;}static[a0_0x322a90(0x161)](_0x47e084,_0x1b5059,_0x23d769,_0x51b445){const _0x3c05ee=a0_0x322a90;let _0x366205=ValueUtil['getParams'](_0x1b5059,_0x23d769);return ValueUtil[_0x3c05ee(0x169)](_0x366205)&&(_0x47e084[_0x23d769]=!0x0===_0x51b445?TermsUtil['t'](_0x366205):_0x366205),_0x47e084;}static['getParams'](_0x5493fa,..._0x22437e){const _0x454629=a0_0x322a90;if(arguments[_0x454629(0x162)]<=0x1)return;let _0x42aa4f=_0x22437e[0x0];if(ValueUtil[_0x454629(0x16c)](_0x5493fa[_0x42aa4f]))return;let _0x196cf9=_0x5493fa[_0x42aa4f];return _0x22437e[_0x454629(0x162)]>0x1?ValueUtil['getParams'](_0x196cf9,..._0x22437e[_0x454629(0x15a)](0x1)):_0x196cf9;}static[a0_0x322a90(0x15b)](_0x47e6b7,_0x3835d7,..._0x1e3951){const _0xf6891e=a0_0x322a90;return _0x3835d7=_0x3835d7||[],_0x1e3951=_0x1e3951||Object[_0xf6891e(0x165)](_0x47e6b7),ValueUtil[_0xf6891e(0x169)](_0x1e3951)&&(_0x3835d7=_0x47e6b7[_0xf6891e(0x163)]((_0x461e1b,_0x5bd9f2)=>{let _0x5c85c0=_0x3835d7['length']>_0x5bd9f2?_0x3835d7[_0x5bd9f2]:{};return ValueUtil['populateObject'](_0x461e1b,_0x5c85c0,_0x1e3951);})),_0x3835d7;}static[a0_0x322a90(0x164)](_0x1ee9f6,_0x4ee18e,..._0x57528e){const _0x4087af=a0_0x322a90;return _0x4ee18e=_0x4ee18e||{},_0x57528e=_0x57528e||Object['keys'](_0x1ee9f6),ValueUtil[_0x4087af(0x169)](_0x57528e)&&_0x57528e['forEach'](_0x1a7009=>{_0x4ee18e[_0x1a7009]=_0x1ee9f6[_0x1a7009];}),_0x4ee18e;}}
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(_0x573a4e,_0x1a542d){const _0x581247=a0_0x38e7,_0x2c72b8=_0x573a4e();while(!![]){try{const _0x11d3bc=-parseInt(_0x581247(0x123))/0x1+-parseInt(_0x581247(0x127))/0x2+parseInt(_0x581247(0x124))/0x3+parseInt(_0x581247(0x128))/0x4+-parseInt(_0x581247(0x129))/0x5*(parseInt(_0x581247(0x125))/0x6)+parseInt(_0x581247(0x126))/0x7*(parseInt(_0x581247(0x122))/0x8)+parseInt(_0x581247(0x121))/0x9;if(_0x11d3bc===_0x1a542d)break;else _0x2c72b8['push'](_0x2c72b8['shift']());}catch(_0x3e7c9c){_0x2c72b8['push'](_0x2c72b8['shift']());}}}(a0_0x2ada,0x91696));function a0_0x38e7(_0x476a14,_0x2c24a8){const _0x2ada03=a0_0x2ada();return a0_0x38e7=function(_0x38e7ab,_0x1c70d4){_0x38e7ab=_0x38e7ab-0x121;let _0x4453d9=_0x2ada03[_0x38e7ab];return _0x4453d9;},a0_0x38e7(_0x476a14,_0x2c24a8);}function a0_0x2ada(){const _0x42038e=['920821UpFKnn','250275qLfCAF','6YcUPUH','8281KXKRVO','1381318HIISUp','4232992gEHolU','4179655ZzBiAD','8626437LhoHFw','6376sGCCPi'];a0_0x2ada=function(){return _0x42038e;};return a0_0x2ada();}import{css}from'lit';export const DynamicMenuLandscapeStyles=css`
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 a0_0x5860cc=a0_0x5e03;(function(_0x30a690,_0x5b067d){const _0x17d8d8=a0_0x5e03,_0x20361a=_0x30a690();while(!![]){try{const _0x31c182=-parseInt(_0x17d8d8(0x177))/0x1*(-parseInt(_0x17d8d8(0x173))/0x2)+parseInt(_0x17d8d8(0x17c))/0x3*(parseInt(_0x17d8d8(0x16a))/0x4)+-parseInt(_0x17d8d8(0x182))/0x5*(parseInt(_0x17d8d8(0x192))/0x6)+parseInt(_0x17d8d8(0x194))/0x7+parseInt(_0x17d8d8(0x178))/0x8+parseInt(_0x17d8d8(0x18c))/0x9+-parseInt(_0x17d8d8(0x189))/0xa;if(_0x31c182===_0x5b067d)break;else _0x20361a['push'](_0x20361a['shift']());}catch(_0x227b1f){_0x20361a['push'](_0x20361a['shift']());}}}(a0_0x667f,0x8ecdd));import'@material/mwc-icon';function a0_0x667f(){const _0x237d7f=['addEventListener','bind','1021983cUSXJH','7743832OLUjTv','submenu','properties','group','3442671TvOVzx','transitionstart','#force','icon','renderRoot','define','10XaPIKZ','scrollLeft','removeAttribute','mousewheel','target','settled','onWheelEvent','33293630BhblIb','currentTarget','dynamic-menu-landscape','4828437DxUNdL','stopPropagation','map','click','path','description','642936xllNgL','styles','3182116YpnuoD','menus','dispatchEvent','4lfoJaw','preventDefault','transitionend','wheelDelta','href','name','firstUpdated','#wrap','setAttribute','2sFPpPv','render'];a0_0x667f=function(){return _0x237d7f;};return a0_0x667f();}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_0x5860cc(0x193)](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get[a0_0x5860cc(0x17a)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x5860cc(0x174)](){const _0x21e0ee=a0_0x5860cc,{menus:_0x569b7b=[],activeTopLevel:_0x5999bb,activeMenu:_0x5414e0}=this;return html`
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
- ${_0x569b7b['map'](_0x33ddec=>_0x21e0ee(0x17b)==_0x33ddec['type']?html``:html`
5
- <li ?active=${_0x33ddec===_0x5999bb}>
6
- <a href=${_0x33ddec['path']||'#'}>
7
- ${_0x33ddec[_0x21e0ee(0x17f)]?html`<mwc-icon>${_0x33ddec[_0x21e0ee(0x17f)]}</mwc-icon>`:html``} ${_0x33ddec[_0x21e0ee(0x16f)]}
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
- ${_0x33ddec[_0x21e0ee(0x195)]?.[_0x21e0ee(0x18e)](_0x12969a=>html`
12
- <li ?active=${_0x12969a===_0x5414e0}>
13
- <a href=${_0x12969a[_0x21e0ee(0x190)]||'#'}> ${_0x12969a[_0x21e0ee(0x16f)]} </a>
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
- ${_0x33ddec[_0x21e0ee(0x17f)]?html`<mwc-icon>${_0x33ddec['icon']}</mwc-icon>`:html``} ${_0x33ddec[_0x21e0ee(0x191)]||''}
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
- `;}[a0_0x5860cc(0x170)](){const _0x4d817b=a0_0x5860cc;this[_0x4d817b(0x180)]['querySelector'](_0x4d817b(0x171))[_0x4d817b(0x175)](_0x4d817b(0x185),this[_0x4d817b(0x188)][_0x4d817b(0x176)](this),!0x1),this['renderRoot'][_0x4d817b(0x175)](_0x4d817b(0x18f),_0x4a4411=>{const _0x15cee6=_0x4d817b;if(_0x4a4411[_0x15cee6(0x186)]['submenu']){_0x4a4411[_0x15cee6(0x18d)](),_0x4a4411[_0x15cee6(0x16b)]();let _0x267965=_0x4a4411[_0x15cee6(0x186)][_0x15cee6(0x179)];return void this[_0x15cee6(0x169)](new CustomEvent('active-toplevel',{'bubbles':!0x0,'detail':this['activeTopLevel']===_0x267965?void 0x0:_0x267965}));}let _0xa86e6=_0x4a4411[_0x15cee6(0x186)][_0x15cee6(0x16e)];_0xa86e6&&location[_0x15cee6(0x16e)]===_0xa86e6&&navigate(_0xa86e6+_0x15cee6(0x17e),!0x0);}),this['renderRoot'][_0x4d817b(0x175)](_0x4d817b(0x17d),_0x391a07=>{const _0xc68b0=_0x4d817b;_0x391a07[_0xc68b0(0x186)][_0xc68b0(0x184)](_0xc68b0(0x187));}),this['renderRoot'][_0x4d817b(0x175)](_0x4d817b(0x16c),_0x35bebb=>{const _0x5681f2=_0x4d817b;_0x35bebb['target'][_0x5681f2(0x172)]('settled','');});}[a0_0x5860cc(0x188)](_0x37ebb0){const _0x4c3864=a0_0x5860cc,_0x5a94a9=_0x37ebb0[_0x4c3864(0x18a)];var _0x1d9b81=Math['max'](-0x1,Math['min'](0x1,_0x37ebb0[_0x4c3864(0x16d)]||-_0x37ebb0['detail']));_0x5a94a9[_0x4c3864(0x183)]-=0xa*_0x1d9b81,_0x37ebb0[_0x4c3864(0x16b)]();}}function a0_0x5e03(_0x33752a,_0xe41127){const _0x667f71=a0_0x667f();return a0_0x5e03=function(_0x5e035f,_0x5da1d9){_0x5e035f=_0x5e035f-0x169;let _0xaaaf3b=_0x667f71[_0x5e035f];return _0xaaaf3b;},a0_0x5e03(_0x33752a,_0xe41127);}customElements[a0_0x5860cc(0x181)](a0_0x5860cc(0x18b),DynamicMenuLandscape);
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 a0_0x21af(_0xf0907e,_0x597335){var _0xaac6a8=a0_0xaac6();return a0_0x21af=function(_0x21afab,_0x4d8f55){_0x21afab=_0x21afab-0x9a;var _0x10cb2d=_0xaac6a8[_0x21afab];return _0x10cb2d;},a0_0x21af(_0xf0907e,_0x597335);}var a0_0x41ffaa=a0_0x21af;(function(_0xb45249,_0x164b9b){var _0x14f7e7=a0_0x21af,_0x5e5a08=_0xb45249();while(!![]){try{var _0x5d0bbe=-parseInt(_0x14f7e7(0xa2))/0x1+-parseInt(_0x14f7e7(0xab))/0x2*(-parseInt(_0x14f7e7(0x9e))/0x3)+parseInt(_0x14f7e7(0xb1))/0x4+-parseInt(_0x14f7e7(0xc0))/0x5+parseInt(_0x14f7e7(0xbe))/0x6+-parseInt(_0x14f7e7(0xbf))/0x7+parseInt(_0x14f7e7(0x9f))/0x8*(parseInt(_0x14f7e7(0xac))/0x9);if(_0x5d0bbe===_0x164b9b)break;else _0x5e5a08['push'](_0x5e5a08['shift']());}catch(_0x236c65){_0x5e5a08['push'](_0x5e5a08['shift']());}}}(a0_0xaac6,0x5b9ee));import'@material/mwc-icon';import'./dynamic-menu-portrait';import'./dynamic-menu-landscape';import{css,html,LitElement}from'lit';function a0_0xaac6(){var _0x14ac20=['route','_findActivePage','active','orientation','1081778nTWxUH','152289tDdoIe','updated','find','renderRoot','function','828320HEJMFk','slotTemplate','has','split','properties','metaUI','landscape','_path','resourceId','path','firstUpdated','removeAttribute','replaceChild','3900390uEFPMx','5100025ZwVQho','1390385pddnFw','render','menus','dynamic-menu-part','active-toplevel','3MAyZEL','184lKiAGC','_activeTopLevel','styles','405287hNSxOU','page','preventDefault','addEventListener','_activeMenu'];a0_0xaac6=function(){return _0x14ac20;};return a0_0xaac6();}import{connect}from'pwa-helpers';import{store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';function isActiveMenu(_0x52b87d,_0x304f28){var _0x1d1430=a0_0x21af;return _0x52b87d[_0x1d1430(0xba)]?.[_0x1d1430(0xb4)]('?')[0x0]===_0x304f28||_0x52b87d['active']&&_0x1d1430(0xb0)==typeof _0x52b87d['active']&&_0x52b87d[_0x1d1430(0xa9)]['call'](_0x52b87d,{'path':_0x304f28});}export class DynamicMenuPart extends connect(store)(LitElement){static get[a0_0x41ffaa(0xb5)](){return{'page':String,'resourceId':String,'menus':Array,'orientation':String,'_activeTopLevel':Object,'_activeMenu':Object,'_path':String};}static get[a0_0x41ffaa(0xa1)](){return[ScrollbarStyles,css`
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
- `];}[a0_0x41ffaa(0x9a)](){var _0x4f9a4c=a0_0x41ffaa;return html`
30
+ `];}[a0_0x37cd9b(0x1aa)](){var _0x41a9c6=a0_0x37cd9b;return html`
31
31
  <slot name="head"></slot>
32
- ${_0x4f9a4c(0xb7)!==this[_0x4f9a4c(0xaa)]?html`<dynamic-menu-portrait
33
- .menus=${this[_0x4f9a4c(0x9b)]}
34
- .activeTopLevel=${this[_0x4f9a4c(0xa0)]}
35
- .activeMenu=${this[_0x4f9a4c(0xa6)]}
36
- .path=${this[_0x4f9a4c(0xb8)]}
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[_0x4f9a4c(0x9b)]}
39
- .activeTopLevel=${this[_0x4f9a4c(0xa0)]}
40
- .activeMenu=${this[_0x4f9a4c(0xa6)]}
41
- .path=${this['_path']}
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
- `;}[a0_0x41ffaa(0xbb)](){var _0x4e204d=a0_0x41ffaa;this[_0x4e204d(0xaf)][_0x4e204d(0xa5)](_0x4e204d(0x9d),_0xda4381=>{var _0x2ce3e9=_0x4e204d;_0xda4381['stopPropagation'](),_0xda4381[_0x2ce3e9(0xa4)](),this['_activeTopLevel']=_0xda4381['detail'];});}[a0_0x41ffaa(0xad)](_0x24c9ba){var _0x4a7ce2=a0_0x41ffaa;(_0x24c9ba[_0x4a7ce2(0xb3)]('menus')||_0x24c9ba[_0x4a7ce2(0xb3)](_0x4a7ce2(0xa3))||_0x24c9ba[_0x4a7ce2(0xb3)]('resourceId'))&&this[_0x4a7ce2(0xa8)](),_0x24c9ba[_0x4a7ce2(0xb3)]('orientation')&&('portrait'==this[_0x4a7ce2(0xaa)]?this[_0x4a7ce2(0xbc)]('landscape'):this['setAttribute'](_0x4a7ce2(0xb7),!0x0)),_0x24c9ba['has'](_0x4a7ce2(0xb2))&&this[_0x4a7ce2(0xbd)](this[_0x4a7ce2(0xb2)]);}['stateChanged'](_0x45c4d1){var _0x23eaf9=a0_0x41ffaa;this[_0x23eaf9(0xa3)]=_0x45c4d1['route'][_0x23eaf9(0xa3)],this['resourceId']=_0x45c4d1[_0x23eaf9(0xa7)]['resourceId'],this[_0x23eaf9(0x9b)]=_0x45c4d1[_0x23eaf9(0xb6)][_0x23eaf9(0x9b)]||[],this[_0x23eaf9(0xb2)]=_0x45c4d1[_0x23eaf9(0xb6)]['slotTemplate'];}[a0_0x41ffaa(0xa8)](){var _0x565432=a0_0x41ffaa,_0x488963,_0x1ad3b1=this[_0x565432(0xb9)]?this['page']+'/'+this['resourceId']:this[_0x565432(0xa3)],_0x37c484=this[_0x565432(0x9b)]||[];this[_0x565432(0xa0)]=_0x37c484[_0x565432(0xae)](_0x1008c1=>isActiveMenu(_0x1008c1,_0x1ad3b1)?(_0x488963=_0x1008c1,!0x0):_0x1008c1[_0x565432(0x9b)]?!!(_0x488963=_0x1008c1[_0x565432(0x9b)]['find'](_0x56b882=>isActiveMenu(_0x56b882,_0x1ad3b1))):void 0x0),this[_0x565432(0xb8)]=_0x1ad3b1,this[_0x565432(0xa6)]=_0x488963||this[_0x565432(0xa0)];}}customElements['define'](a0_0x41ffaa(0x9c),DynamicMenuPart);
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(_0x1a04a0,_0x48b0da){const _0x1b1ae1=a0_0x8783,_0x2c29c2=_0x1a04a0();while(!![]){try{const _0x5b479f=-parseInt(_0x1b1ae1(0x16d))/0x1+parseInt(_0x1b1ae1(0x169))/0x2*(-parseInt(_0x1b1ae1(0x16e))/0x3)+-parseInt(_0x1b1ae1(0x16b))/0x4+parseInt(_0x1b1ae1(0x168))/0x5*(parseInt(_0x1b1ae1(0x16a))/0x6)+-parseInt(_0x1b1ae1(0x16c))/0x7*(parseInt(_0x1b1ae1(0x167))/0x8)+parseInt(_0x1b1ae1(0x16f))/0x9*(-parseInt(_0x1b1ae1(0x170))/0xa)+parseInt(_0x1b1ae1(0x166))/0xb;if(_0x5b479f===_0x48b0da)break;else _0x2c29c2['push'](_0x2c29c2['shift']());}catch(_0x56cca4){_0x2c29c2['push'](_0x2c29c2['shift']());}}}(a0_0x44ef,0x3f6e7));import{css}from'lit';function a0_0x44ef(){const _0x33ce1a=['410TswHyZ','13832643DJtQjn','1431072tujvAp','8465EjLtEo','2Bqguxz','18uUeGsY','617848SxGAVW','14GhKgSA','157232HkXMrY','52476ubKRXu','69327gbryEJ'];a0_0x44ef=function(){return _0x33ce1a;};return a0_0x44ef();}function a0_0x8783(_0x512617,_0x1d0835){const _0x44ef3d=a0_0x44ef();return a0_0x8783=function(_0x878308,_0x1f64d4){_0x878308=_0x878308-0x166;let _0x3cfd07=_0x44ef3d[_0x878308];return _0x3cfd07;},a0_0x8783(_0x512617,_0x1d0835);}export const DynamicMenuPortraitStyles=css`
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 a0_0x8bacfd=a0_0x203f;(function(_0x4b42c6,_0x48e6cb){const _0x4e90e9=a0_0x203f,_0x356b9f=_0x4b42c6();while(!![]){try{const _0x1c1c12=-parseInt(_0x4e90e9(0x12f))/0x1*(-parseInt(_0x4e90e9(0x10d))/0x2)+-parseInt(_0x4e90e9(0x111))/0x3+parseInt(_0x4e90e9(0x119))/0x4+parseInt(_0x4e90e9(0x12c))/0x5*(-parseInt(_0x4e90e9(0x114))/0x6)+parseInt(_0x4e90e9(0x126))/0x7*(parseInt(_0x4e90e9(0x12e))/0x8)+-parseInt(_0x4e90e9(0x12d))/0x9*(parseInt(_0x4e90e9(0x116))/0xa)+parseInt(_0x4e90e9(0x118))/0xb;if(_0x1c1c12===_0x48e6cb)break;else _0x356b9f['push'](_0x356b9f['shift']());}catch(_0x524f9b){_0x356b9f['push'](_0x356b9f['shift']());}}}(a0_0x9f5b,0xd9d8f));function a0_0x203f(_0x323542,_0x558272){const _0x9f5bf3=a0_0x9f5b();return a0_0x203f=function(_0x203fb8,_0x453836){_0x203fb8=_0x203fb8-0x10b;let _0x4158af=_0x9f5bf3[_0x203fb8];return _0x4158af;},a0_0x203f(_0x323542,_0x558272);}function a0_0x9f5b(){const _0x30416a=['renderRoot','active-toplevel','stopPropagation','dispatchEvent','click','1095bchcFD','9zWusDc','16zZeOjO','5GJCkUV','href','transitionend','menu','205682AgHsxz','addEventListener','transitionstart','group','1205079UYKPYw','target','properties','9636RqbCRW','map','2900230hCHgkd','activeTopLevel','9408487OvhXZD','776092TGGoZX','settled','dynamic-menu-portrait','firstUpdated','define','closest','render','path','call','renderMenus','preventDefault','function','#force','1302658wydXdN'];a0_0x9f5b=function(){return _0x30416a;};return a0_0x9f5b();}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['styles'](){return[ScrollbarStyles,DynamicMenuPortraitStyles];}static get[a0_0x8bacfd(0x113)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x8bacfd(0x122)](_0x9d1cfc,_0x365c4f,_0x1b3170){const _0x591afe=a0_0x8bacfd;return html`
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
- ${_0x9d1cfc[_0x591afe(0x115)](_0x720f51=>{const _0x29db0b=_0x591afe;var {type:_0x3d21c7,active:_0x382f5a,path:_0x3a9210,name:_0x5ca6f9,badge:_0x388196,icon:_0x4bd6d3,menus:_0x446133}=_0x720f51;return _0x382f5a=!(!_0x382f5a||_0x29db0b(0x124)!=typeof _0x382f5a)&&_0x382f5a[_0x29db0b(0x121)](_0x720f51,{'path':this['path']}),_0x388196='function'==typeof _0x388196?_0x388196[_0x29db0b(0x121)](_0x720f51):_0x388196??!0x1,_0x29db0b(0x110)==_0x3d21c7?html`<li group-label>${_0x5ca6f9}</li>`:html`
4
- <li ?active=${_0x365c4f?_0x720f51===_0x365c4f:_0x382f5a} .menu=${_0x720f51} menu>
5
- <a href=${_0x3a9210||'#'}>
6
- ${_0x446133?.['length']>0x0?html` <mwc-icon submenu-button></mwc-icon> `:html``}
7
- <mwc-icon>${_0x4bd6d3}</mwc-icon>
8
- ${_0x5ca6f9} ${!0x1!==_0x388196?html`<div badge>${_0x388196}</div>`:html``}
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
- ${_0x446133&&this[_0x29db0b(0x122)](_0x446133,_0x1b3170)}
10
+ ${_0x103855&&this['renderMenus'](_0x103855,_0x3b97d)}
11
11
  </li>
12
12
  `;})}
13
13
  </ul>
14
- `;}[a0_0x8bacfd(0x11f)](){const _0x1e00b3=a0_0x8bacfd,{menus:_0x1564c0,activeTopLevel:_0x1fe994,activeMenu:_0x30365d}=this;return this[_0x1e00b3(0x122)](_0x1564c0,_0x1fe994,_0x30365d);}[a0_0x8bacfd(0x11c)](){const _0x1f9eb4=a0_0x8bacfd;this[_0x1f9eb4(0x127)][_0x1f9eb4(0x10e)](_0x1f9eb4(0x12b),_0x5a4ac6=>{const _0x16d5b5=_0x1f9eb4,_0x4d251e=_0x5a4ac6[_0x16d5b5(0x112)][_0x16d5b5(0x11e)]('[menu]');if(_0x4d251e?.['menu']){let _0x4be5ec=_0x4d251e[_0x16d5b5(0x10c)];_0x4be5ec[_0x16d5b5(0x120)]||(_0x5a4ac6[_0x16d5b5(0x129)](),_0x5a4ac6[_0x16d5b5(0x123)]()),this[_0x16d5b5(0x12a)](new CustomEvent(_0x16d5b5(0x128),{'bubbles':!0x0,'detail':this[_0x16d5b5(0x117)]===_0x4be5ec?void 0x0:_0x4be5ec}));}let _0x5bc08d=_0x5a4ac6['target'][_0x16d5b5(0x130)];_0x5bc08d&&location[_0x16d5b5(0x130)]===_0x5bc08d&&navigate(_0x5bc08d+_0x16d5b5(0x125),!0x0);}),this[_0x1f9eb4(0x127)][_0x1f9eb4(0x10e)](_0x1f9eb4(0x10f),_0x34627a=>{const _0x43d6e8=_0x1f9eb4;_0x34627a[_0x43d6e8(0x112)]['removeAttribute'](_0x43d6e8(0x11a));}),this[_0x1f9eb4(0x127)][_0x1f9eb4(0x10e)](_0x1f9eb4(0x10b),_0x4e6fc9=>{const _0x881212=_0x1f9eb4;_0x4e6fc9[_0x881212(0x112)]['setAttribute'](_0x881212(0x11a),'');});}}customElements[a0_0x8bacfd(0x11d)](a0_0x8bacfd(0x11b),DynamicMenuPortrait);
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
- function a0_0x2ccf(_0x3aacda,_0x4c6fd8){const _0x2aa1b5=a0_0x2aa1();return a0_0x2ccf=function(_0x2ccf8f,_0x1be268){_0x2ccf8f=_0x2ccf8f-0x1e0;let _0x4aa722=_0x2aa1b5[_0x2ccf8f];return _0x4aa722;},a0_0x2ccf(_0x3aacda,_0x4c6fd8);}const a0_0x50e350=a0_0x2ccf;(function(_0x768f92,_0x50820d){const _0x425886=a0_0x2ccf,_0x3f50c2=_0x768f92();while(!![]){try{const _0x412228=-parseInt(_0x425886(0x1e6))/0x1+-parseInt(_0x425886(0x1f7))/0x2*(-parseInt(_0x425886(0x1fb))/0x3)+parseInt(_0x425886(0x1f5))/0x4+-parseInt(_0x425886(0x1e2))/0x5+parseInt(_0x425886(0x1ee))/0x6*(-parseInt(_0x425886(0x1f4))/0x7)+-parseInt(_0x425886(0x1e3))/0x8+parseInt(_0x425886(0x1f8))/0x9*(parseInt(_0x425886(0x1ed))/0xa);if(_0x412228===_0x50820d)break;else _0x3f50c2['push'](_0x3f50c2['shift']());}catch(_0x29a5c8){_0x3f50c2['push'](_0x3f50c2['shift']());}}}(a0_0x2aa1,0xd4986));import'@material/mwc-icon';import{css,html,LitElement}from'lit';import{connect}from'pwa-helpers';import{toggleOverlay}from'@operato/layout';import{store}from'@operato/shell';function a0_0x2aa1(){const _0x473c6b=['_findActivePage','name','has','21458780Joflbf','4386972URwGGN','_activeTopLevel','page','updated','split','path','7kPTapu','2419072DrMFrp','group','1355326sncAIr','18fEfXYU','dyamic-menu-part','dynamic-top-menu-bar','3YrpRZa','preventDefault','type','render','resourceId','properties','replaceChild','8020445yUimyM','8713624wYbkHY','slotTemplate','styles','1278943hIHEmI','metaUI','route','menus'];a0_0x2aa1=function(){return _0x473c6b;};return a0_0x2aa1();}export class DynamicTopMenuBar extends connect(store)(LitElement){static get[a0_0x50e350(0x1e5)](){return css`
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[a0_0x50e350(0x1e0)](){return{'page':String,'resourceId':String,'menus':Array,'_activeTopLevel':Object};}[a0_0x50e350(0x1fe)](){const _0x42b234=a0_0x50e350,{menus:_0x68a41c=[],_activeTopLevel:_0x5814a9}=this;return html`
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
- ${_0x68a41c['map'](_0x223c2e=>_0x42b234(0x1f6)==_0x223c2e[_0x42b234(0x1fd)]?html``:html`
55
- <li ?active=${_0x223c2e===_0x5814a9}>
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=${_0x1995c9=>{const _0x3a50a0=_0x42b234;_0x1995c9[_0x3a50a0(0x1fc)](),toggleOverlay(_0x3a50a0(0x1f9),{'backdrop':!0x0});}}
58
+ @click=${_0x441581=>{const _0x99f468=_0x5979eb;_0x441581[_0x99f468(0x1bd)](),toggleOverlay(_0x99f468(0x1c8),{'backdrop':!0x0});}}
59
59
  >
60
- ${_0x223c2e[_0x42b234(0x1eb)]}
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'](_0x19f147){const _0x25edea=a0_0x50e350;this[_0x25edea(0x1f0)]=_0x19f147[_0x25edea(0x1e8)]['page'],this[_0x25edea(0x1ff)]=_0x19f147['route'][_0x25edea(0x1ff)],this['menus']=_0x19f147[_0x25edea(0x1e7)][_0x25edea(0x1e9)]||[],this[_0x25edea(0x1e4)]=_0x19f147[_0x25edea(0x1e7)]['slotTemplate'];}[a0_0x50e350(0x1f1)](_0x5b688d){const _0x54154e=a0_0x50e350;(_0x5b688d[_0x54154e(0x1ec)](_0x54154e(0x1e9))||_0x5b688d['has']('page')||_0x5b688d[_0x54154e(0x1ec)](_0x54154e(0x1ff)))&&this[_0x54154e(0x1ea)](),_0x5b688d[_0x54154e(0x1ec)](_0x54154e(0x1e4))&&this[_0x54154e(0x1e1)](this['slotTemplate']);}['_findActivePage'](){const _0x32ba57=a0_0x50e350;var _0x158b10=this[_0x32ba57(0x1ff)]?this[_0x32ba57(0x1f0)]+'/'+this[_0x32ba57(0x1ff)]:this['page'],_0xb1497b=this[_0x32ba57(0x1e9)]||[];this[_0x32ba57(0x1ef)]=_0xb1497b['find'](_0x103ce1=>_0x103ce1[_0x32ba57(0x1f3)]?.['split']('?')[0x0]===_0x158b10||(_0x103ce1[_0x32ba57(0x1e9)]?!!_0x103ce1[_0x32ba57(0x1e9)]['find'](_0x13c7e6=>_0x13c7e6[_0x32ba57(0x1f3)]?.[_0x32ba57(0x1f2)]('?')[0x0]===_0x158b10):void 0x0));}}customElements['define'](a0_0x50e350(0x1fa),DynamicTopMenuBar);
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);