@things-factory/meta-ui 6.1.35 → 6.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/actions/main.js +4 -4
- package/client/component/filter/filter-form-meta-code-select.js +10 -10
- package/client/component/filter/filter-form-meta-object-select.js +10 -10
- package/client/component/filter/filter-grist-meta-code-select.js +10 -10
- package/client/component/filter/filter-grist-meta-object-select.js +9 -9
- package/client/component/grist/editor/grist-editor-code-input.js +6 -6
- package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
- package/client/component/grist/editor/grist-editor-meta-object-selector.js +7 -7
- package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
- package/client/component/popup/code-input-editor-popup.js +10 -10
- package/client/component/popup/meta-object-selector-popup.js +11 -11
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +1 -1
- package/client/mixin/meta-main-tab-mixin.js +1 -1
- package/client/mixin/meta-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-detail-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/activity/meta-activity-list-page.js +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +3 -3
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/entity/config-entity.js +29 -29
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +5 -5
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +16 -16
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-main-tab-element.js +1 -1
- package/client/pages/meta-main-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-detail-element.js +1 -1
- package/client/pages/meta-tab-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +6 -6
- package/client/pages/work-code/work-code-detail-popup.js +1 -1
- package/client/pages/work-code/work-code-page.js +1 -1
- package/client/reducers/main.js +1 -1
- package/client/utils/grist-default-value.js +1 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +102 -102
- package/client/utils/service-util.js +13 -13
- package/client/utils/terms-util.js +2 -2
- package/client/utils/ui-util.js +1 -1
- package/client/utils/value-util.js +1 -1
- package/client/viewparts/dynamic-menu-landscape-styles.js +2 -2
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +11 -11
- package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +2 -2
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-activity/meta-activity-mutation.js +1 -1
- package/server/service/meta-activity/meta-activity-query.js +1 -1
- package/server/service/meta-activity/meta-activity-type.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
- package/server/service/work-code/work-code-mutation.js +1 -1
- package/server/service/work-code/work-code-query.js +1 -1
- package/server/service/work-code/work-code-type.js +1 -1
- package/server/service/work-code/work-code.js +1 -1
- package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
- package/server/service/work-code-detail/work-code-detail-query.js +1 -1
- package/server/service/work-code-detail/work-code-detail-type.js +1 -1
- package/server/service/work-code-detail/work-code-detail.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x110769=a0_0x5069;(function(_0x138a02,_0xf9e72b){const _0x567cb3=a0_0x5069,_0x1a0702=_0x138a02();while(!![]){try{const _0x185727=parseInt(_0x567cb3(0x10c))/0x1*(parseInt(_0x567cb3(0x169))/0x2)+parseInt(_0x567cb3(0x166))/0x3*(-parseInt(_0x567cb3(0x143))/0x4)+parseInt(_0x567cb3(0x15c))/0x5*(parseInt(_0x567cb3(0x15d))/0x6)+parseInt(_0x567cb3(0x192))/0x7+parseInt(_0x567cb3(0x14b))/0x8+-parseInt(_0x567cb3(0x113))/0x9*(parseInt(_0x567cb3(0x122))/0xa)+-parseInt(_0x567cb3(0x151))/0xb;if(_0x185727===_0xf9e72b)break;else _0x1a0702['push'](_0x1a0702['shift']());}catch(_0x30c83d){_0x1a0702['push'](_0x1a0702['shift']());}}}(a0_0x48f2,0x24efe));import{store,gqlContext}from'@things-factory/shell';import{getCodeByName}from'@things-factory/code-base';import{EXPORT}from'@things-factory/export-base';function a0_0x5069(_0x57fc90,_0x1924d1){const _0x48f224=a0_0x48f2();return a0_0x5069=function(_0x5069e6,_0x465879){_0x5069e6=_0x5069e6-0x10a;let _0x38150d=_0x48f224[_0x5069e6];return _0x38150d;},a0_0x5069(_0x57fc90,_0x1924d1);}import{gqlBuilder}from'@things-factory/utils';import{client}from'@operato/graphql';import{TermsUtil}from'./terms-util';import{UiUtil}from'./ui-util';import a0_0x2fd43f from'graphql-tag';import{ValueUtil}from'./value-util';import{asyncReplace}from'lit/directives/async-replace.js';function a0_0x48f2(){const _0x5d766e=['getCodeByScenario','SCREEN','patchesForUpdateMultiple','badge','checkClientError','title','buildArgs','iconPath','__dirty__','find','showGraphqlErrorResponse','config','filter','gutter','tMenu','isEmpty','menus','codeItems','value','hidden','numberOfApprovalPendings','cancel','__origin__','getWorkCodeByName','button.delete','map','confirm','deleteListByGristSelected','selected','imex','code','success\x20to\x20delete','details','1248485GVvyOd','getCodeSelectorData','splice','searchMenuGridPersnalTemplate','length','dispatch','extensions','showAlertPopup','message','1LpAPpa','runScenario','info','showToast','tText','__seq__','numberOfDrafts','479547kAhOLs','fetch','updateMultipleData','updater','\x0a\x20\x20\x20\x20','question','exportableData','creator','arrangeMenuRoutes','success\x20to\x20process','children','description','parent','networkError','header','20VvxzWi','HIDDEN-PAGE','rank','_config','includes','error','MENU','data','findOne','updatedAt','records','check-mandatory-field','forEach','routing','object','split','deleteListByIds','code-input','total','undefined','getSelectedIdList','sort','type','getCodeByEntity','isArray','menuType','text.nothing_changed','record','__selected__','dirtyRecords','text.check-mandatory','searchMyDynamicMenus','reduce','872LWcHZo','hiddenFlag','result','numberOfToDos','group','key','parse','createdAt','1128520GOcpip','showGraphqlException','routingType','log','updateMultiple','workCodeByName','3252161ufuyHd','columns','resourceUrl','isNotEmpty','cuFlag','query','Graphql\x20Error','todo-list','text.NOTHING_CHANGED','HOME','text.are_you_sure','532660GJEoUg','12uzWwxe','\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','active','errors','id,template','name','push','items','delete','237mileno','text.there_is_nothing_to_delete','text.nothing_selected','76498osclbm','noteq','join','findIndex','unshift','path','test','GROUP'];a0_0x48f2=function(){return _0x5d766e;};return a0_0x48f2();}import a0_0xdceeee from'i18next';import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';export class ServiceUtil{static async[a0_0x110769(0x182)](_0x507102){const _0x4b2ca7=a0_0x110769;if(Array[_0x4b2ca7(0x13a)](_0x507102))return _0x507102['map'](_0x2123a7=>_0x4b2ca7(0x130)==typeof _0x2123a7?{'name':_0x2123a7[_0x4b2ca7(0x183)],'description':_0x2123a7['display']}:{'name':_0x2123a7,'description':_0x2123a7});let _0x37a076=await ServiceUtil[_0x4b2ca7(0x188)](_0x507102);return _0x37a076&&_0x37a076['length']>0x0?_0x37a076:await getCodeByName(_0x507102);}static async['getWorkCodeByName'](_0x58802b){const _0x4d8e22=a0_0x110769,_0x770895=await client[_0x4d8e22(0x156)]({'query':a0_0x2fd43f`
|
|
2
2
|
query workCodeByName($name: String!) {
|
|
3
3
|
workCodeByName(name: $name) {
|
|
4
4
|
details {
|
|
@@ -8,32 +8,32 @@ const a0_0x117fe4=a0_0x196a;(function(_0x5c63f5,_0x1c6353){const _0x156c53=a0_0x
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
`,'variables':{'name':
|
|
11
|
+
`,'variables':{'name':_0x58802b},'context':gqlContext()});return!_0x770895[_0x4d8e22(0x160)]&&_0x770895[_0x4d8e22(0x129)]['workCodeByName']&&_0x770895[_0x4d8e22(0x129)]['workCodeByName'][_0x4d8e22(0x191)]?_0x770895[_0x4d8e22(0x129)][_0x4d8e22(0x150)][_0x4d8e22(0x191)][_0x4d8e22(0x137)]((_0x5073bd,_0x4d9c37)=>_0x5073bd[_0x4d8e22(0x124)]-_0x4d9c37['rank']):[];}static async[a0_0x110769(0x193)](_0x587106){const _0x466390=a0_0x110769;let _0x1f8372=(await ServiceUtil[_0x466390(0x182)](_0x587106))[_0x466390(0x18a)](_0x4e6699=>({'value':_0x4e6699[_0x466390(0x162)],'display':_0x4e6699[_0x466390(0x11e)]}));return _0x1f8372[_0x466390(0x16d)]({'value':'','display':''}),_0x1f8372;}static async[a0_0x110769(0x171)](_0x551fd6,_0x19b2ec){const _0x37ff5b=a0_0x110769;let _0x52ff76=await ServiceUtil['callScenario'](null,_0x551fd6,_0x19b2ec,!0x1);if(_0x52ff76&&_0x52ff76[_0x37ff5b(0x129)]&&_0x52ff76[_0x37ff5b(0x129)][_0x37ff5b(0x10d)]&&_0x52ff76[_0x37ff5b(0x129)]['runScenario'][_0x37ff5b(0x129)]&&_0x52ff76['data'][_0x37ff5b(0x10d)][_0x37ff5b(0x129)]['result']){let _0xe2692c=_0x52ff76[_0x37ff5b(0x129)][_0x37ff5b(0x10d)][_0x37ff5b(0x129)][_0x37ff5b(0x145)];return _0xe2692c[_0x37ff5b(0x16d)]({'value':'','display':''}),_0xe2692c[_0x37ff5b(0x18a)](_0x53e4a2=>({'value':_0x53e4a2[_0x37ff5b(0x162)],'display':_0x53e4a2[_0x37ff5b(0x11e)]}));}return[];}static async[a0_0x110769(0x139)]({queryName:_0x3340ef,codeField:_0x315290=a0_0x110769(0x162),dispField:_0x3406bf,filters:_0x5889f0=[],sorters:_0x3a3e29=[]}){const _0x34c151=a0_0x110769;let _0x587b44=_0x3406bf['split'](','),_0x2be7b6='\x0a\x20\x20\x20\x20\x20\x20'+_0x315290+'\x0a\x20\x20\x20\x20\x20\x20'+(_0x3406bf?_0x587b44[_0x34c151(0x16b)]('\x0a'):'')+_0x34c151(0x117),_0x63a3e4=await ServiceUtil['searchByPagination'](_0x3340ef,_0x5889f0,_0x3a3e29,0x0,0x0,_0x2be7b6),_0x29c0bc=[{'value':'','display':''}];return _0x63a3e4[_0x34c151(0x12c)][_0x34c151(0x12e)](_0x52eb65=>{const _0x392406=_0x34c151;let _0x2820b0=_0x52eb65[_0x315290];if(_0x3406bf){let _0x58113c=_0x3406bf['split'](',');_0x2820b0=_0x52eb65[_0x58113c[0x0]],_0x58113c['length']>0x1&&(_0x2820b0+='('+_0x58113c[_0x392406(0x194)](0x1)[_0x392406(0x18a)](_0x3da9cb=>_0x52eb65[_0x3da9cb])[_0x392406(0x16b)](',')+')');}_0x29c0bc[_0x392406(0x163)]({'value':_0x52eb65[_0x315290],'display':_0x2820b0});}),_0x29c0bc;}static async['myDynamicMenus'](){const _0x519616=a0_0x110769;let _0x4322b8=await ServiceUtil['searchMyDynamicMenus']();return null!=_0x4322b8?ServiceUtil[_0x519616(0x11b)](_0x4322b8):null;}static async[a0_0x110769(0x195)](_0x5f214a){const _0x42b57e=a0_0x110769;let _0x198e17=[{'name':'menu.id','operator':'eq','value':_0x5f214a}],_0x2946b7=await ServiceUtil['searchByPagination']('gridPersonalizeTemplates',_0x198e17,[],0x0,0x0,_0x42b57e(0x161));return 0x0==_0x2946b7[_0x42b57e(0x134)]?{}:{'id':_0x2946b7['records'][0x0]['id'],'template':JSON[_0x42b57e(0x149)](_0x2946b7['records'][0x0]['template'])};}static[a0_0x110769(0x11b)](_0x1f6d83){const _0x18312e=a0_0x110769;let _0x3c67f3=[];_0x1f6d83['forEach'](_0x4f982d=>{const _0x1439be=a0_0x5069;_0x3c67f3['push'](_0x4f982d),_0x4f982d['children']&&(_0x4f982d[_0x1439be(0x11d)]['sort'](function(_0x2dd905,_0x1280ae){const _0x9aef5c=_0x1439be;return _0x2dd905[_0x9aef5c(0x124)]-_0x1280ae[_0x9aef5c(0x124)];}),_0x4f982d[_0x1439be(0x11d)][_0x1439be(0x12e)](_0x523941=>{const _0x3d5efd=_0x1439be;0x1!=_0x523941[_0x3d5efd(0x144)]&&(_0x523941[_0x3d5efd(0x11f)]=_0x4f982d,_0x3c67f3[_0x3d5efd(0x163)](_0x523941));}));});let _0x5386d0=_0x3c67f3['map'](_0x7f5389=>{const _0x490977=a0_0x5069;if(_0x490977(0x170)==_0x7f5389['menuType']||_0x490977(0x128)==_0x7f5389['menuType']){let _0x69b6fa={'id':_0x7f5389['id'],'parent':!0x0,'name':TermsUtil[_0x490977(0x17f)](_0x7f5389[_0x490977(0x162)]),'icon':_0x7f5389['iconPath'],'type':_0x490977(0x170)==_0x7f5389[_0x490977(0x13b)]?_0x490977(0x147):'','menus':[]};return _0x7f5389[_0x490977(0x12f)]&&(_0x69b6fa[_0x490977(0x16e)]=_0x7f5389[_0x490977(0x12f)]),_0x69b6fa;}return{'id':'0'};})[_0x18312e(0x17d)](_0x59004a=>'0'!=_0x59004a['id']),_0x204e42=_0x3c67f3[_0x18312e(0x18a)](_0x2c173b=>{const _0x3e71c3=_0x18312e;if(_0x3e71c3(0x172)==_0x2c173b[_0x3e71c3(0x13b)]||_0x3e71c3(0x123)==_0x2c173b[_0x3e71c3(0x13b)]){let _0x4716ed=_0x5386d0[_0x3e71c3(0x17a)](_0x208a4a=>_0x208a4a['id']==_0x2c173b['parent']['id']);if(_0x4716ed){let _0x28a11e=TermsUtil[_0x3e71c3(0x17f)](_0x2c173b[_0x3e71c3(0x162)]);return _0x3e71c3(0x172)==_0x2c173b[_0x3e71c3(0x13b)]&&_0x4716ed[_0x3e71c3(0x181)][_0x3e71c3(0x163)]({'id':_0x2c173b['id'],'name':_0x28a11e,'path':_0x2c173b['routing'],'icon':_0x2c173b[_0x3e71c3(0x178)]}),{'id':_0x2c173b['id'],'parent':!0x1,'parent_id':_0x4716ed['id'],'title':_0x28a11e,'tagname':_0x2c173b['category'],'page':_0x2c173b[_0x3e71c3(0x12f)],'template':_0x2c173b[_0x3e71c3(0x153)],'routing_type':_0x2c173b[_0x3e71c3(0x14d)]};}return{'id':'0'};}return _0x3e71c3(0x15a)==_0x2c173b[_0x3e71c3(0x13b)]?{'id':_0x2c173b['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil[_0x3e71c3(0x17f)](_0x2c173b[_0x3e71c3(0x162)]),'tagname':_0x2c173b['category'],'page':_0x2c173b[_0x3e71c3(0x12f)],'template':_0x2c173b[_0x3e71c3(0x153)],'routing_type':_0x2c173b[_0x3e71c3(0x14d)]}:{'id':'0'};})['filter'](_0x2e2694=>null!=_0x2e2694&&'0'!=_0x2e2694['id']);_0x5386d0[_0x18312e(0x17d)](_0x25cd96=>_0x18312e(0x147)==_0x25cd96[_0x18312e(0x138)]&&_0x25cd96[_0x18312e(0x181)]&&_0x25cd96['menus'][_0x18312e(0x196)]>0x0)[_0x18312e(0x12e)](_0x5c9015=>{const _0x1594cb=_0x18312e;let _0x936d7b=_0x5386d0[_0x1594cb(0x16c)](_0x277a5b=>_0x277a5b['id']==_0x5c9015['id'])+0x1;_0x5386d0['splice'](_0x936d7b,0x0,..._0x5c9015[_0x1594cb(0x181)]);});let _0x50a493=0x0;return _0x5386d0[_0x18312e(0x12e)](_0x167efe=>{const _0x578803=_0x18312e;_0x578803(0x158)==_0x167efe[_0x578803(0x16e)]?(_0x50a493++,_0x167efe[_0x578803(0x174)]=()=>asyncReplace(generateActivitySummary(_0x578803(0x146))),_0x167efe['active']=({path:_0x41cec8})=>/^activity\//['test'](_0x41cec8)):'approval-pending-list'==_0x167efe[_0x578803(0x16e)]?(_0x50a493++,_0x167efe[_0x578803(0x174)]=()=>asyncReplace(generateActivitySummary(_0x578803(0x185))),_0x167efe[_0x578803(0x15f)]=({path:_0x2824b9})=>/^activity\//[_0x578803(0x16f)](_0x2824b9)):'draft-list'==_0x167efe['path']&&(_0x50a493++,_0x167efe['badge']=()=>asyncReplace(generateActivitySummary(_0x578803(0x112))));}),_0x50a493>0x0&&startSubscribeActivitySummary(),{'menus':_0x5386d0,'routes':_0x204e42};}static async[a0_0x110769(0x141)](){const _0x565876=a0_0x110769;let _0x4eba06=await ServiceUtil['searchByPagination'](_0x565876(0x181),[{'name':'hiddenFlag','operator':_0x565876(0x16a),'value':!0x0},{'name':_0x565876(0x13b),'operator':'in','value':[_0x565876(0x15a),'MENU','GROUP']}],[{'name':_0x565876(0x124)}],0x0,0x0,_0x565876(0x15e));return _0x4eba06?_0x4eba06[_0x565876(0x12c)]:[];}static async['showGraphqlErrorResponse'](_0x511dc1){const _0x35db03=a0_0x110769;if(_0x511dc1['errors']&&_0x511dc1[_0x35db03(0x160)][_0x35db03(0x196)]>0x0){let _0x4edc4e=_0x511dc1[_0x35db03(0x160)][0x0],_0x57fd10=_0x4edc4e[_0x35db03(0x10b)],_0x2c78fe=_0x4edc4e[_0x35db03(0x10b)];_0x4edc4e[_0x35db03(0x198)]&&(_0x2c78fe=_0x4edc4e[_0x35db03(0x198)][_0x35db03(0x18f)]),await UiUtil[_0x35db03(0x10a)](_0x2c78fe,_0x57fd10,_0x35db03(0x127),_0x35db03(0x18b));}}static async['showGraphqlException'](_0x4fdfea){const _0x2c571b=a0_0x110769;_0x4fdfea&&(_0x4fdfea[_0x2c571b(0x120)]&&_0x4fdfea[_0x2c571b(0x120)][_0x2c571b(0x145)]?await ServiceUtil[_0x2c571b(0x17b)](_0x4fdfea[_0x2c571b(0x120)]['result']):await UiUtil[_0x2c571b(0x10a)](_0x2c571b(0x157),_0x4fdfea[_0x2c571b(0x10b)],_0x2c571b(0x127),_0x2c571b(0x18b)));}static async[a0_0x110769(0x119)](_0xb70586,_0x36dd18,_0x3132ec){const _0x27250d=a0_0x110769;var _0x12d0f3=_0x3132ec[_0x27250d(0x125)]['columns'][_0x27250d(0x17d)](_0x559e60=>_0x27250d(0x17e)!==_0x559e60[_0x27250d(0x138)]&&void 0x0!==_0x559e60['record']&&void 0x0!==_0x559e60[_0x27250d(0x18e)]&&!0x0!==_0x559e60['hidden'])[_0x27250d(0x18a)](_0x447dc8=>_0x447dc8[_0x27250d(0x18e)]),_0x443c0b=_0x3132ec[_0x27250d(0x129)][_0x27250d(0x12c)][_0x27250d(0x18a)](_0x24cb9a=>({..._0x3132ec[_0x27250d(0x125)][_0x27250d(0x152)][_0x27250d(0x17d)](_0x2584ef=>_0x27250d(0x17e)!==_0x2584ef['type']&&void 0x0!==_0x2584ef[_0x27250d(0x13d)]&&void 0x0!==_0x2584ef[_0x27250d(0x18e)]&&!0x0!==_0x2584ef[_0x27250d(0x184)])[_0x27250d(0x142)]((_0x1f5d78,_0x347d34)=>(_0x1f5d78[_0x347d34['imex'][_0x27250d(0x148)]]=_0x347d34['imex'][_0x27250d(0x148)][_0x27250d(0x131)]('.')[_0x27250d(0x142)]((_0x407ac9,_0x5ec9bc)=>_0x407ac9&&_0x27250d(0x135)!==_0x407ac9[_0x5ec9bc]?_0x407ac9[_0x5ec9bc]:void 0x0,_0x24cb9a),_0x1f5d78),{})}));if(!_0xb70586)return{'header':_0x12d0f3,'data':_0x443c0b};store[_0x27250d(0x197)]({'type':EXPORT,'exportable':{'extension':'xlsx','name':_0x36dd18,'data':{'header':_0x12d0f3,'data':_0x443c0b}}});}static async['searchByPagination'](_0xaca0b5,_0x499dbe,_0x1e2200,_0x4f9e9d,_0x37797a,_0x780599){const _0x54b827=a0_0x110769;try{const _0xa70c90=await client[_0x54b827(0x156)]({'query':a0_0x2fd43f`
|
|
12
12
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
13
|
-
${
|
|
13
|
+
${_0xaca0b5}(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
14
14
|
items {
|
|
15
|
-
${
|
|
15
|
+
${_0x780599}
|
|
16
16
|
}
|
|
17
17
|
total
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,'variables':{'filters':
|
|
20
|
+
`,'variables':{'filters':_0x499dbe,'sortings':_0x1e2200,'pagination':{'page':_0x4f9e9d,'limit':_0x37797a}}});if(!_0xa70c90[_0x54b827(0x160)])return{'records':_0xa70c90['data'][_0xaca0b5][_0x54b827(0x164)],'total':_0xa70c90[_0x54b827(0x129)][_0xaca0b5][_0x54b827(0x134)]};ServiceUtil['showGraphqlErrorResponse'](_0xa70c90);}catch(_0x2dabb1){ServiceUtil[_0x54b827(0x14c)](_0x2dabb1);}return null;}static async[a0_0x110769(0x12a)](_0x3f25ef,_0x5960f7,_0x1f6057){const _0x2fedf7=a0_0x110769;try{let _0x27db48=await client['query']({'query':a0_0x2fd43f`
|
|
21
21
|
query ($id: String!) {
|
|
22
|
-
${
|
|
23
|
-
${
|
|
22
|
+
${_0x3f25ef}(id: $id) {
|
|
23
|
+
${_0x1f6057}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,'variables':{'id':
|
|
26
|
+
`,'variables':{'id':_0x5960f7}});if(!_0x27db48[_0x2fedf7(0x160)])return _0x27db48[_0x2fedf7(0x129)][_0x3f25ef]||{};ServiceUtil[_0x2fedf7(0x17b)](_0x27db48);}catch(_0x4351de){ServiceUtil[_0x2fedf7(0x14c)](_0x4351de);}return null;}static[a0_0x110769(0x136)](_0x11d367,_0x3eda08){const _0x3fad8e=a0_0x110769,_0x29f436=_0x11d367[_0x3fad8e(0x18d)][_0x3fad8e(0x18a)](_0x21db2d=>_0x21db2d['id']);return ValueUtil[_0x3fad8e(0x180)](_0x29f436)&&0x1==_0x3eda08&&UiUtil[_0x3fad8e(0x10a)](_0x3fad8e(0x168),_0x3fad8e(0x167),_0x3fad8e(0x10e),'confirm'),_0x29f436;}static async[a0_0x110769(0x18c)](_0x2bba0a,_0x57b43e){const _0x369bcb=a0_0x110769;let _0x2f48e7=ServiceUtil['getSelectedIdList'](_0x2bba0a,!0x0);ValueUtil[_0x369bcb(0x154)](_0x2f48e7)&&(await ServiceUtil[_0x369bcb(0x132)](_0x2f48e7,_0x57b43e)&&_0x2bba0a[_0x369bcb(0x114)]());}static async[a0_0x110769(0x132)](_0x15c8be,_0x321e39){const _0xcecee9=a0_0x110769;if(!(await UiUtil[_0xcecee9(0x10a)](_0xcecee9(0x189),'text.are_you_sure',_0xcecee9(0x118),_0xcecee9(0x165),_0xcecee9(0x186)))['value'])return!0x1;try{const _0x129874=await client['query']({'query':a0_0x2fd43f`
|
|
27
27
|
mutation {
|
|
28
|
-
${
|
|
28
|
+
${_0x321e39}(${gqlBuilder[_0xcecee9(0x177)]({'ids':_0x15c8be})})
|
|
29
29
|
}
|
|
30
|
-
`});if(!
|
|
30
|
+
`});if(!_0x129874[_0xcecee9(0x160)])return UiUtil[_0xcecee9(0x10f)](_0xcecee9(0x10e),TermsUtil[_0xcecee9(0x110)](_0xcecee9(0x190))),!0x0;ServiceUtil[_0xcecee9(0x17b)](_0x129874);}catch(_0x2b819b){ServiceUtil[_0xcecee9(0x14c)](_0x2b819b);}return!0x1;}static async[a0_0x110769(0x115)](_0x51ddb6,_0x4f33be){const _0x5b55b0=a0_0x110769;let _0x5c6a53=ServiceUtil[_0x5b55b0(0x173)](_0x51ddb6);if(ValueUtil[_0x5b55b0(0x154)](_0x5c6a53)){let _0x4b5ac9=await ServiceUtil[_0x5b55b0(0x14f)](_0x4f33be,_0x5c6a53);if(_0x4b5ac9)return _0x51ddb6[_0x5b55b0(0x114)](),_0x4b5ac9;}return!0x1;}static async[a0_0x110769(0x14f)](_0x1f0af2,_0x4be238){const _0x267481=a0_0x110769;try{const _0x120769=await client[_0x267481(0x156)]({'query':a0_0x2fd43f`
|
|
31
31
|
mutation {
|
|
32
|
-
${
|
|
32
|
+
${_0x1f0af2}(${gqlBuilder[_0x267481(0x177)]({'patches':_0x4be238})}) {
|
|
33
33
|
id
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
`,'context':{'hasUpload':!0x0}});if(!
|
|
36
|
+
`,'context':{'hasUpload':!0x0}});if(!_0x120769[_0x267481(0x160)])return UiUtil[_0x267481(0x10f)]('info',TermsUtil[_0x267481(0x110)]('success\x20to\x20save')),!0x0;ServiceUtil[_0x267481(0x17b)](_0x120769);}catch(_0x40d7d1){ServiceUtil[_0x267481(0x14c)](_0x40d7d1);}return!0x1;}static[a0_0x110769(0x173)](_0x34f7e4,_0x47316b=!0x1){const _0x439105=a0_0x110769;let _0x46780e=_0x34f7e4[_0x439105(0x13f)],_0x2ebdf6={};((_0x34f7e4['config']||{})[_0x439105(0x152)]||[])[_0x439105(0x17d)](_0xedb53e=>!0x0===(_0xedb53e[_0x439105(0x13d)]||{})['mandatory'])[_0x439105(0x12e)](_0x1fca00=>{const _0x3723fd=_0x439105;_0x2ebdf6[_0x1fca00[_0x3723fd(0x162)]]=_0x1fca00[_0x3723fd(0x121)];});let _0xa662b5=((_0x34f7e4[_0x439105(0x17c)]||{})[_0x439105(0x152)]||[])[_0x439105(0x17d)](_0x521f80=>_0x439105(0x133)===_0x521f80['type'])[_0x439105(0x18a)](_0x519873=>_0x519873['name']);if(!_0x46780e||0x0==_0x46780e[_0x439105(0x196)])return void UiUtil[_0x439105(0x10a)](_0x439105(0x13c),_0x439105(0x159),_0x439105(0x10e),_0x439105(0x18b));let _0x357f8e=[];for(let _0x551a21 in _0x46780e){let _0x5843d4=_0x46780e[_0x551a21],_0x820b1c=_0x5843d4['id']?{'id':_0x5843d4['id']}:{};for(let _0x577bfd in _0x2ebdf6)if(void 0x0===_0x5843d4[_0x577bfd]||''==_0x5843d4[_0x577bfd])return console[_0x439105(0x14e)](_0x5843d4),void UiUtil[_0x439105(0x10a)](_0x439105(0x140),TermsUtil['tText'](_0x439105(0x12d),{'x':_0x2ebdf6[_0x577bfd]}),_0x439105(0x10e),_0x439105(0x18b));for(let _0x1b8c25 in _0x5843d4)[_0x439105(0x11a),_0x439105(0x116),_0x439105(0x14a),_0x439105(0x12b),_0x439105(0x179),'__dirtyfields__',_0x439105(0x187),_0x439105(0x111),_0x439105(0x13e)][_0x439105(0x126)](_0x1b8c25)||(0x0==_0xa662b5[_0x439105(0x126)](_0x1b8c25)&&_0x5843d4[_0x1b8c25]&&'object'==typeof _0x5843d4[_0x1b8c25]&&0x0==_0x47316b?_0x820b1c[_0x1b8c25]={'id':_0x5843d4[_0x1b8c25]['id']}:_0x820b1c[_0x1b8c25]=_0x5843d4[_0x1b8c25]);_0x820b1c[_0x439105(0x155)]=_0x5843d4['__dirty__'],_0x357f8e['push'](_0x820b1c);}return _0x357f8e;}static async['callScenario'](_0x113fe2,_0x40c067,_0x2bed80,_0x54a55f=!0x0){const _0x2f0642=a0_0x110769;let _0x43d6c9=!0x0;_0x113fe2&&!0x0===_0x54a55f&&(_0x43d6c9=(await UiUtil[_0x2f0642(0x10a)]('button.'+_0x113fe2,_0x2f0642(0x15b),_0x2f0642(0x118),'confirm','cancel'))[_0x2f0642(0x183)]);if(_0x43d6c9)try{const _0x5d0b34=await client['query']({'query':a0_0x2fd43f`
|
|
37
37
|
mutation ($scenarioName: String!, $variables: Object) {
|
|
38
38
|
runScenario(scenarioName: $scenarioName, variables: $variables) {
|
|
39
39
|
state
|
|
@@ -42,4 +42,4 @@ const a0_0x117fe4=a0_0x196a;(function(_0x5c63f5,_0x1c6353){const _0x156c53=a0_0x
|
|
|
42
42
|
__typename
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
`,'variables':{'scenarioName':
|
|
45
|
+
`,'variables':{'scenarioName':_0x40c067,'variables':_0x2bed80}});if(_0x5d0b34[_0x2f0642(0x160)])ServiceUtil[_0x2f0642(0x17b)](_0x5d0b34);else{if(this[_0x2f0642(0x175)](_0x5d0b34))return!0x0===_0x54a55f&&UiUtil['showToast'](_0x2f0642(0x10e),TermsUtil[_0x2f0642(0x110)](_0x2f0642(0x11c))),_0x5d0b34;}}catch(_0x41f90d){ServiceUtil['showGraphqlException'](_0x41f90d);}return!0x1;}static['checkClientError'](_0xd1dedb){const _0x28ecb0=a0_0x110769;if(_0xd1dedb&&_0xd1dedb[_0x28ecb0(0x129)]&&_0xd1dedb[_0x28ecb0(0x129)][_0x28ecb0(0x10d)]&&_0xd1dedb[_0x28ecb0(0x129)][_0x28ecb0(0x10d)][_0x28ecb0(0x129)]&&_0xd1dedb['data'][_0x28ecb0(0x10d)][_0x28ecb0(0x129)][_0x28ecb0(0x127)]){let _0x38dcc7=_0xd1dedb['data']['runScenario'][_0x28ecb0(0x129)][_0x28ecb0(0x127)];return UiUtil['showAlertPopup'](_0x38dcc7[_0x28ecb0(0x176)],_0x38dcc7[_0x28ecb0(0x10b)],_0x28ecb0(0x127),_0x28ecb0(0x18b)),!0x1;}return!0x0;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x492c(_0x4fe2a0,_0x158de4){const _0x3946fe=a0_0x3946();return a0_0x492c=function(_0x492c8a,_0x1b0e5e){_0x492c8a=_0x492c8a-0xcc;let _0x4af7dc=_0x3946fe[_0x492c8a];return _0x4af7dc;},a0_0x492c(_0x4fe2a0,_0x158de4);}const a0_0x3d56f5=a0_0x492c;(function(_0x5c8a3c,_0x754221){const _0x34e3ec=a0_0x492c,_0x30d73c=_0x5c8a3c();while(!![]){try{const _0x5551e0=parseInt(_0x34e3ec(0xdb))/0x1+-parseInt(_0x34e3ec(0xe8))/0x2*(-parseInt(_0x34e3ec(0xf1))/0x3)+parseInt(_0x34e3ec(0xec))/0x4+parseInt(_0x34e3ec(0xd4))/0x5*(-parseInt(_0x34e3ec(0xd5))/0x6)+-parseInt(_0x34e3ec(0xcf))/0x7*(-parseInt(_0x34e3ec(0xe9))/0x8)+parseInt(_0x34e3ec(0xd8))/0x9+-parseInt(_0x34e3ec(0xdc))/0xa*(parseInt(_0x34e3ec(0xd3))/0xb);if(_0x5551e0===_0x754221)break;else _0x30d73c['push'](_0x30d73c['shift']());}catch(_0x11134b){_0x30d73c['push'](_0x30d73c['shift']());}}}(a0_0x3946,0x478cc));import a0_0x5d3e31 from'graphql-tag';import{client}from'@operato/graphql';import{i18next}from'@operato/i18n';function a0_0x3946(){const _0x505606=['data','errors','199991ANrLvX','305hZzaKg','55080ZrMqQz','META_TERMS','length','1440729LgUhhR','query','error','494948QzRCgs','440OUsfKI','total','replace','field','records','tTitle','forEach','text','fetchTerminologies','tField','tText','name','3562kgJSxy','3203448KBZfQq','menu','label','260132KPQLBM','translate','terminologies','tButton','items','897AYgdQy','tMenu','tError','category','7SArIaB','display'];a0_0x3946=function(){return _0x505606;};return a0_0x3946();}export class TermsUtil{[a0_0x3d56f5(0xd6)]=null;static async['downloadTerminologies'](_0x5a2721){const _0x6a8939=a0_0x3d56f5;let _0x2f0433=(await TermsUtil[_0x6a8939(0xe4)](_0x5a2721))[_0x6a8939(0xe0)];_0x2f0433&&_0x2f0433[_0x6a8939(0xd7)]>0x0&&(this['META_TERMS']={},_0x2f0433[_0x6a8939(0xe2)](_0x8dfe26=>{const _0x204006=_0x6a8939;let _0x90bcb1=_0x8dfe26[_0x204006(0xce)]+'.'+_0x8dfe26[_0x204006(0xe7)];this[_0x204006(0xd6)][_0x90bcb1]=_0x8dfe26[_0x204006(0xd0)];}));}static async[a0_0x3d56f5(0xe4)](_0x1a157c){const _0x7f982c=a0_0x3d56f5;let _0x37d896=[{'name':'locale','operator':'eq','value':_0x1a157c}];const _0xa5c9d2=await client[_0x7f982c(0xd9)]({'query':a0_0x5d3e31`
|
|
2
2
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
3
3
|
terminologies(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
4
4
|
items {
|
|
@@ -11,4 +11,4 @@ const a0_0x54a976=a0_0x5be0;(function(_0x20f5ab,_0x608e0f){const _0x6667b4=a0_0x
|
|
|
11
11
|
total
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
`,'variables':{'filters':
|
|
14
|
+
`,'variables':{'filters':_0x37d896,'sortings':[{'name':'category'},{'name':_0x7f982c(0xe7)}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0xa5c9d2[_0x7f982c(0xd2)])return{'records':_0xa5c9d2['data'][_0x7f982c(0xee)][_0x7f982c(0xf0)]||[],'total':_0xa5c9d2[_0x7f982c(0xd1)][_0x7f982c(0xee)][_0x7f982c(0xdd)]||0x0};}static['tLabel'](_0x172247,_0x16b0e1){const _0x54c866=a0_0x3d56f5;let _0x2bbed8=TermsUtil[_0x54c866(0xed)](_0x54c866(0xeb),_0x172247,_0x16b0e1,null);return _0x2bbed8||TermsUtil[_0x54c866(0xed)](_0x54c866(0xdf),_0x172247,_0x16b0e1,_0x172247);}static[a0_0x3d56f5(0xe5)](_0xb72126,_0x303b96){const _0x271a08=a0_0x3d56f5;let _0x591296=TermsUtil['translate'](_0x271a08(0xdf),_0xb72126,_0x303b96,null);return _0x591296||TermsUtil[_0x271a08(0xed)](_0x271a08(0xdf),_0xb72126,_0x303b96,_0xb72126);}static[a0_0x3d56f5(0xef)](_0x48b889){const _0x5eb15f=a0_0x3d56f5;return TermsUtil[_0x5eb15f(0xed)]('button',_0x48b889,null,_0x48b889);}static[a0_0x3d56f5(0xe1)](_0x5336d5,_0x294872){const _0x268514=a0_0x3d56f5;let _0x3a34f7=TermsUtil[_0x268514(0xed)]('title',_0x5336d5,_0x294872,null);return _0x3a34f7||TermsUtil[_0x268514(0xed)](_0x268514(0xea),_0x5336d5,_0x294872,_0x5336d5);}static[a0_0x3d56f5(0xcc)](_0x1c4808){const _0x54aa23=a0_0x3d56f5;let _0x936f73=TermsUtil[_0x54aa23(0xed)](_0x54aa23(0xea),_0x1c4808,null,_0x1c4808);return _0x936f73||TermsUtil[_0x54aa23(0xed)]('title',_0x1c4808,null,_0x1c4808);}static[a0_0x3d56f5(0xe6)](_0x41817f,_0x310353){const _0x32d8bd=a0_0x3d56f5;return TermsUtil[_0x32d8bd(0xed)](_0x32d8bd(0xe3),_0x41817f,_0x310353,_0x41817f);}static[a0_0x3d56f5(0xcd)](_0x4331d6,_0x494183){const _0x2c8c98=a0_0x3d56f5;return TermsUtil[_0x2c8c98(0xed)](_0x2c8c98(0xda),_0x4331d6,_0x494183,_0x4331d6);}static[a0_0x3d56f5(0xed)](_0x5a0e4a,_0x219258,_0x55c670,_0x2e5a7e){let _0x1fe3ff=_0x5a0e4a+'.'+_0x219258;return TermsUtil['t'](_0x1fe3ff,_0x55c670,_0x2e5a7e);}static['t'](_0x30c0e9,_0x494b03,_0x599e47){const _0x64317a=a0_0x3d56f5;let _0x4d6abe=this[_0x64317a(0xd6)]?this['META_TERMS'][_0x30c0e9]:null;return _0x4d6abe=_0x4d6abe||i18next['t'](_0x30c0e9),_0x4d6abe&&_0x30c0e9!=_0x4d6abe?(_0x494b03&&Object['keys'](_0x494b03)[_0x64317a(0xe2)](function(_0x3646fb){const _0x4472c3=_0x64317a;var _0x1b787e='\x5c{'+_0x3646fb[_0x4472c3(0xde)](/\$/,'\x5c$')+'\x5c}',_0x426a5d=new RegExp(_0x1b787e,'gi');_0x4d6abe=_0x4d6abe['replace'](_0x426a5d,_0x494b03[_0x3646fb]);}),_0x4d6abe):_0x599e47;}}
|
package/client/utils/ui-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x49f1d3=a0_0x46e0;(function(_0x5c3866,_0x4dfd5f){const _0x11202b=a0_0x46e0,_0x17483d=_0x5c3866();while(!![]){try{const _0x2b5f0d=parseInt(_0x11202b(0xdb))/0x1*(-parseInt(_0x11202b(0xea))/0x2)+parseInt(_0x11202b(0x104))/0x3*(parseInt(_0x11202b(0xc7))/0x4)+parseInt(_0x11202b(0xff))/0x5+-parseInt(_0x11202b(0xf8))/0x6*(parseInt(_0x11202b(0xd1))/0x7)+-parseInt(_0x11202b(0xf1))/0x8*(parseInt(_0x11202b(0xcb))/0x9)+-parseInt(_0x11202b(0xfc))/0xa+parseInt(_0x11202b(0xed))/0xb;if(_0x2b5f0d===_0x4dfd5f)break;else _0x17483d['push'](_0x17483d['shift']());}catch(_0x4d371a){_0x17483d['push'](_0x17483d['shift']());}}}(a0_0x5bd3,0x3617f));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';function a0_0x5bd3(){const _0x41b87a=['getStore','22424yeVwwQ','openPopupByElement','renderRoot','setSearchFormEditorValue','126nNWzas','size','content','editor','showAlertPopup','createElement','7hPHfLa','code-editor','forEach','barcode','pageNavigate','length','getFilterFormData','config','tagname','type','5gOSlFo','template','textarea','\x20route_name=\x27','getState','onclosed','removeChild','childNodes','filters','\x27></','querySelector','name','split','\x27\x20is_popup=true></','i18next=','4894AGoYil','dispatchEvent','parent_field','9427616IAAdIP','isMobileEnv','ox-input-barcode','tButton','41848AAaEyP','popup_field','showToast','app','currentRouting','getLeafInput','pass=','2437398xxXyFd','page','htmlToElement','substring','4364610qKiVLO','getApplicationModuleInfo','replace','398230awAfYH','value','indexOf','openDynamicPopup','createCustomElement','114hBvRBQ','isNotEmpty','firstElementChild','i18next','[name=\x27','notify'];a0_0x5bd3=function(){return _0x41b87a;};return a0_0x5bd3();}function a0_0x46e0(_0xb9474d,_0x227b11){const _0x5bd3c3=a0_0x5bd3();return a0_0x46e0=function(_0x46e0ee,_0xf1184){_0x46e0ee=_0x46e0ee-0xc4;let _0x306043=_0x5bd3c3[_0x46e0ee];return _0x306043;},a0_0x46e0(_0xb9474d,_0x227b11);}export class UiUtil{static[a0_0x49f1d3(0xee)](){return isMobileDevice();}static['currentLocale'](){const _0x435c30=a0_0x49f1d3;let _0x26473a=document['cookie'];return _0x26473a=_0x26473a[_0x435c30(0xfb)](_0x26473a[_0x435c30(0x101)](_0x435c30(0x107))),_0x26473a[_0x435c30(0x101)](';')>-0x1&&(_0x26473a=_0x26473a[_0x435c30(0xfb)](0x0,_0x26473a[_0x435c30(0x101)](';'))),_0x26473a=_0x26473a[_0x435c30(0xfe)](_0x435c30(0xe9),''),'ko'==_0x26473a?'ko-KR':_0x26473a;}static[a0_0x49f1d3(0xfd)](){const _0x4de8d0=a0_0x49f1d3;let _0x46bd7f=store[_0x4de8d0(0xdf)]()[_0x4de8d0(0xf4)]['modules'];return _0x46bd7f[_0x46bd7f[_0x4de8d0(0xd6)]-0x1];}static[a0_0x49f1d3(0xf5)](){const _0x7f349f=a0_0x49f1d3;return store[_0x7f349f(0xdf)]()['route'][_0x7f349f(0xf9)];}static['openPopupByElement'](_0x257416,_0x12d324,_0x33da9f,_0x1f349f){return openPopup(_0x33da9f,{'backdrop':!0x0,'size':_0x12d324,'title':_0x257416,'backdrop':_0x1f349f});}static async[a0_0x49f1d3(0x102)](_0x5b895c,_0x175827,_0x21b927,_0x465592){const _0xdbef49=a0_0x49f1d3;let _0x3176bf=ValueUtil[_0xdbef49(0x105)](_0x175827[_0xdbef49(0xec)])?ValueUtil['getParams'](_0x21b927,..._0x175827[_0xdbef49(0xec)][_0xdbef49(0xe7)]('.')):void 0x0,_0x259592='<'+_0x175827[_0xdbef49(0xd9)]+_0xdbef49(0xde)+_0x175827['menu']+'\x27\x20\x20parent_id=\x27'+_0x3176bf+_0xdbef49(0xe8)+_0x175827[_0xdbef49(0xd9)]+'>',_0x592045=UiUtil[_0xdbef49(0xfa)](_0x259592);_0x592045[_0xdbef49(0xd8)]=_0x175827,ValueUtil[_0xdbef49(0x105)](_0x175827['popup_field'])&&(_0x592045[_0x175827[_0xdbef49(0xf2)]]=_0x21b927);let _0x104c38=UiUtil[_0xdbef49(0xc8)](_0x5b895c,_0x175827[_0xdbef49(0xcc)],_0x592045,!0x0);_0x465592&&(_0x104c38[_0xdbef49(0xe0)]=_0x465592);}static[a0_0x49f1d3(0x103)](_0x470a39,_0x224ae6){const _0x4965c8=a0_0x49f1d3;let _0x16abfb='<'+_0x470a39+_0x4965c8(0xde)+_0x224ae6+_0x4965c8(0xe4)+_0x470a39+'>';return UiUtil[_0x4965c8(0xfa)](_0x16abfb);}static[a0_0x49f1d3(0xfa)](_0x2fc0a3){const _0x306132=a0_0x49f1d3;var _0x1d3c53=document[_0x306132(0xd0)](_0x306132(0xdc));_0x1d3c53['innerHTML']=_0x2fc0a3;var _0x2fdca1=_0x1d3c53[_0x306132(0xcd)][_0x306132(0xe2)][0x0];return _0x1d3c53[_0x306132(0xcd)][_0x306132(0xe1)](_0x2fdca1),_0x2fdca1;}static[a0_0x49f1d3(0xd5)](_0x30f131,_0x4dd69b){const _0x584e00=a0_0x49f1d3;let _0x3144aa=_0x4dd69b?'?':'';_0x4dd69b&&(_0x3144aa+=_0x584e00(0xf7)+JSON['stringify'](_0x4dd69b)),navigate(''+_0x30f131+_0x3144aa);}static[a0_0x49f1d3(0xc6)](_0x541318,_0x17971a,_0x342a26){const _0xf38ca6=a0_0x49f1d3;let _0x25e2df=_0x25e2df[_0xf38ca6(0xdf)]();return _0x541318&&_0x17971a&&_0x342a26?_0x25e2df[_0x541318][_0x17971a][_0x342a26]:_0x541318&&_0x17971a?_0x25e2df[_0x541318][_0x17971a]:_0x541318?_0x25e2df[_0x541318]:_0x25e2df;}static['fireCustomEvent'](_0x56752d,_0x95f8a4){const _0x51b1fc=a0_0x49f1d3;document[_0x51b1fc(0xeb)](new CustomEvent(_0x56752d,{'detail':_0x95f8a4}));}static[a0_0x49f1d3(0xf3)](_0x5aee8e,_0x53c17a){const _0x2f53b7=a0_0x49f1d3;document[_0x2f53b7(0xeb)](new CustomEvent(_0x2f53b7(0xc5),{'detail':{'type':_0x5aee8e,'message':_0x53c17a}}));}static async[a0_0x49f1d3(0xcf)](_0x11cb30,_0x22cc94,_0x58c5c5,_0x216335,_0x544b20){const _0x1159f5=a0_0x49f1d3;let _0x216fd5={'title':TermsUtil['t'](_0x11cb30)||_0x11cb30,'text':TermsUtil['t'](_0x22cc94)||_0x22cc94};return _0x58c5c5&&(_0x216fd5[_0x1159f5(0xda)]=_0x58c5c5),_0x216335&&(_0x216fd5['confirmButton']=TermsUtil[_0x1159f5(0xf0)](_0x216335)),_0x544b20&&(_0x216fd5['cancelButton']=TermsUtil[_0x1159f5(0xf0)](_0x544b20)),await CustomAlert(_0x216fd5);}static[a0_0x49f1d3(0xd7)](_0x3d68c7){const _0x384e0e=a0_0x49f1d3;if(ValueUtil[_0x384e0e(0x105)](_0x3d68c7)){let _0x4c0e17=_0x3d68c7[_0x384e0e(0xe3)]();ValueUtil['isNotEmpty'](_0x4c0e17)&&_0x4c0e17[_0x384e0e(0xd3)](_0x2d2649=>{const _0x5b47c8=_0x384e0e;ValueUtil[_0x5b47c8(0x105)](_0x2d2649['value'])&&(item[_0x2d2649[_0x5b47c8(0xe6)]]=_0x2d2649[_0x5b47c8(0x100)]?_0x2d2649[_0x5b47c8(0x100)]:null);});}return{};}static[a0_0x49f1d3(0xca)](_0x5dc01d,_0x23636e,_0x529f4d){const _0x5e85fa=a0_0x49f1d3;if(ValueUtil['isNotEmpty'](_0x5dc01d)){let _0x4586dd=_0x5dc01d[_0x5e85fa(0xc9)]?.[_0x5e85fa(0xe5)](_0x5e85fa(0xc4)+_0x23636e+'\x27]');ValueUtil[_0x5e85fa(0x105)](_0x4586dd)&&(_0x4586dd['value']=_0x529f4d);}}static['createEditorHtml'](_0x44fde9,_0x1a685c,_0x278659,_0x49158b){return getEditor(_0x44fde9)('',_0x1a685c,_0x278659,_0x49158b,{});}static['setValueToEditor'](_0x108f76,_0x73a330){const _0x1a4046=a0_0x49f1d3;UiUtil[_0x1a4046(0xf6)](_0x108f76)['value']=_0x73a330;}static[a0_0x49f1d3(0xf6)](_0x260342){const _0x2f10b3=a0_0x49f1d3;let _0x235e74=_0x260342['getType']();return _0x2f10b3(0xd2)==_0x235e74?_0x260342[_0x2f10b3(0xc9)][_0x2f10b3(0xe5)]('ox-input-code'):_0x2f10b3(0xdd)==_0x235e74?_0x260342[_0x2f10b3(0xc9)][_0x2f10b3(0xe5)](_0x2f10b3(0xdd)):'select-combo'==_0x235e74?_0x260342['renderRoot'][_0x2f10b3(0xe5)]('ox-select')[_0x2f10b3(0x106)]:_0x2f10b3(0xd4)==_0x235e74?_0x260342[_0x2f10b3(0xc9)][_0x2f10b3(0xe5)](_0x2f10b3(0xef))['renderRoot']['querySelector']('input'):_0x260342[_0x2f10b3(0xc9)]['firstElementChild'][_0x2f10b3(0xce)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x3dc7(){const _0x4ae654=['toInteger','length','3982328rEpjCx','3rddOVM','boolean','forEach','223655MMSWAv','setParams','isEmpty','number','keys','3358496TaKcwr','populateObject','getParams','27099072zdSIeX','object','1009134jsvrkP','isNotEmpty','compareObjectValues','11200956VWjTKj','string','3692748JxKSPN'];a0_0x3dc7=function(){return _0x4ae654;};return a0_0x3dc7();}const a0_0x18a110=a0_0xdea6;(function(_0xcc7d2c,_0x5b6e79){const _0x2b8502=a0_0xdea6,_0x18fdd8=_0xcc7d2c();while(!![]){try{const _0x3bb68a=-parseInt(_0x2b8502(0x1d1))/0x1+-parseInt(_0x2b8502(0x1d6))/0x2+parseInt(_0x2b8502(0x1da))/0x3*(-parseInt(_0x2b8502(0x1cc))/0x4)+-parseInt(_0x2b8502(0x1c7))/0x5+parseInt(_0x2b8502(0x1d4))/0x6+-parseInt(_0x2b8502(0x1d9))/0x7+parseInt(_0x2b8502(0x1cf))/0x8;if(_0x3bb68a===_0x5b6e79)break;else _0x18fdd8['push'](_0x18fdd8['shift']());}catch(_0x5a06e0){_0x18fdd8['push'](_0x18fdd8['shift']());}}}(a0_0x3dc7,0xe6d23));import a0_0xad87 from'lodash-es/isEqual';import{TermsUtil}from'./terms-util';function a0_0xdea6(_0x168aba,_0x342340){const _0x3dc733=a0_0x3dc7();return a0_0xdea6=function(_0xdea639,_0x39c2fb){_0xdea639=_0xdea639-0x1c7;let _0x23839c=_0x3dc733[_0xdea639];return _0x23839c;},a0_0xdea6(_0x168aba,_0x342340);}export class ValueUtil{static[a0_0x18a110(0x1c9)](_0xc2508f){const _0xb4fbb7=a0_0x18a110;if(void 0x0===_0xc2508f)return!0x0;if(null===_0xc2508f)return!0x0;if(_0xb4fbb7(0x1db)==typeof _0xc2508f)return!0x1;if(_0xb4fbb7(0x1d5)==typeof _0xc2508f||_0xb4fbb7(0x1ca)==typeof _0xc2508f){if(''==_0xc2508f)return!0x0;}else{if(Array['isArray'](_0xc2508f)){if(0x0==_0xc2508f['length'])return!0x0;}else{if(_0xb4fbb7(0x1d0)==typeof _0xc2508f&&0x0==Object[_0xb4fbb7(0x1cb)](_0xc2508f)[_0xb4fbb7(0x1d8)])return!0x0;}}return!0x1;}static[a0_0x18a110(0x1d2)](_0x37e765){const _0x1bf5b7=a0_0x18a110;return!ValueUtil[_0x1bf5b7(0x1c9)](_0x37e765);}static['isEquals'](_0x230360,_0x7cee1a){return a0_0xad87(_0x230360,_0x7cee1a);}static[a0_0x18a110(0x1d7)](_0x5ab591,_0x58dc9d){return ValueUtil['isEmpty'](_0x5ab591)?_0x58dc9d||0x0:parseInt(_0x5ab591);}static['toBoolean'](_0x45a595){return!ValueUtil['isEmpty'](_0x45a595)&&('true'==_0x45a595||'t'==_0x45a595||'TRUE'==_0x45a595||'T'==_0x45a595||'on'==_0x45a595||'ON'==_0x45a595);}static[a0_0x18a110(0x1d3)](_0x50396e,_0x234a33,_0x416145){const _0x30e831=a0_0x18a110;let _0x38203b=!0x0;return _0x416145[_0x30e831(0x1dc)](_0x3acf75=>{const _0x360372=_0x30e831;let _0x538a0b=_0x50396e[_0x3acf75];if('*'===_0x538a0b)return;let _0x2aa6c5=_0x234a33[_0x3acf75]||'';ValueUtil['isEmpty'](_0x538a0b)?ValueUtil[_0x360372(0x1d2)](_0x2aa6c5)&&(_0x38203b=!0x1):_0x538a0b!=_0x2aa6c5&&(_0x38203b=!0x1);}),_0x38203b;}static[a0_0x18a110(0x1c8)](_0x4ab0a6,_0x206120,_0x299061,_0x54eb5e){const _0x129b92=a0_0x18a110;let _0x3318c8=ValueUtil['getParams'](_0x206120,_0x299061);return ValueUtil[_0x129b92(0x1d2)](_0x3318c8)&&(_0x4ab0a6[_0x299061]=!0x0===_0x54eb5e?TermsUtil['t'](_0x3318c8):_0x3318c8),_0x4ab0a6;}static[a0_0x18a110(0x1ce)](_0x53e41f,..._0x513bc2){const _0x6a6e70=a0_0x18a110;if(arguments['length']<=0x1)return;let _0x4eaef0=_0x513bc2[0x0];if(ValueUtil[_0x6a6e70(0x1c9)](_0x53e41f[_0x4eaef0]))return;let _0x215ae0=_0x53e41f[_0x4eaef0];return _0x513bc2[_0x6a6e70(0x1d8)]>0x1?ValueUtil[_0x6a6e70(0x1ce)](_0x215ae0,..._0x513bc2['slice'](0x1)):_0x215ae0;}static['populateArray'](_0x14f98f,_0xb36952,..._0x1e7dff){const _0x41b636=a0_0x18a110;return _0xb36952=_0xb36952||[],_0x1e7dff=_0x1e7dff||Object['keys'](_0x14f98f),ValueUtil[_0x41b636(0x1d2)](_0x1e7dff)&&(_0xb36952=_0x14f98f['map']((_0x1f4254,_0x554dfb)=>{const _0x562c1f=_0x41b636;let _0x5d616e=_0xb36952[_0x562c1f(0x1d8)]>_0x554dfb?_0xb36952[_0x554dfb]:{};return ValueUtil['populateObject'](_0x1f4254,_0x5d616e,_0x1e7dff);})),_0xb36952;}static[a0_0x18a110(0x1cd)](_0x84d5bd,_0x3d501c,..._0x27816a){const _0x27deb1=a0_0x18a110;return _0x3d501c=_0x3d501c||{},_0x27816a=_0x27816a||Object[_0x27deb1(0x1cb)](_0x84d5bd),ValueUtil[_0x27deb1(0x1d2)](_0x27816a)&&_0x27816a[_0x27deb1(0x1dc)](_0x264a56=>{_0x3d501c[_0x264a56]=_0x84d5bd[_0x264a56];}),_0x3d501c;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0xd3c6(_0x33426f,_0x1e388e){const _0x1ac0ff=a0_0x1ac0();return a0_0xd3c6=function(_0xd3c6df,_0x40f161){_0xd3c6df=_0xd3c6df-0xf6;let _0x13f5f7=_0x1ac0ff[_0xd3c6df];return _0x13f5f7;},a0_0xd3c6(_0x33426f,_0x1e388e);}(function(_0x4439de,_0x40df38){const _0xd1a6fd=a0_0xd3c6,_0x5f4cec=_0x4439de();while(!![]){try{const _0x4b8a81=-parseInt(_0xd1a6fd(0xfa))/0x1*(-parseInt(_0xd1a6fd(0xfe))/0x2)+parseInt(_0xd1a6fd(0xf7))/0x3+parseInt(_0xd1a6fd(0xf6))/0x4+parseInt(_0xd1a6fd(0xfc))/0x5*(-parseInt(_0xd1a6fd(0xfd))/0x6)+parseInt(_0xd1a6fd(0xf8))/0x7+-parseInt(_0xd1a6fd(0xf9))/0x8+parseInt(_0xd1a6fd(0xff))/0x9*(parseInt(_0xd1a6fd(0xfb))/0xa);if(_0x4b8a81===_0x40df38)break;else _0x5f4cec['push'](_0x5f4cec['shift']());}catch(_0x276141){_0x5f4cec['push'](_0x5f4cec['shift']());}}}(a0_0x1ac0,0xf15d2));import{css}from'lit';export const DynamicMenuLandscapeStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
overflow-x: auto;
|
|
4
4
|
background-color: var(--secondary-text-color);
|
|
@@ -144,4 +144,4 @@ function a0_0x18af(){const _0x14a74c=['1056pmxjnH','44pPtKlX','21wAZDlk','78028J
|
|
|
144
144
|
background-color: rgba(var(--secondary-color-rgb), 0.3);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
`;
|
|
147
|
+
`;function a0_0x1ac0(){const _0x58403c=['247986EdPEQy','1674kipabD','1154356cLVgrO','2393664rJnHcQ','432922KZlBIx','15619960zjOqtC','1SNKSib','133050rUuGdR','25jwWPdt','967110UQXoKw'];a0_0x1ac0=function(){return _0x58403c;};return a0_0x1ac0();}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x2ce39e=a0_0x19f7;(function(_0x22ac9b,_0xcc296){const _0x24d4bb=a0_0x19f7,_0x73d9dc=_0x22ac9b();while(!![]){try{const _0x49aab9=-parseInt(_0x24d4bb(0x167))/0x1*(-parseInt(_0x24d4bb(0x149))/0x2)+-parseInt(_0x24d4bb(0x15f))/0x3+parseInt(_0x24d4bb(0x16a))/0x4+-parseInt(_0x24d4bb(0x15e))/0x5*(parseInt(_0x24d4bb(0x158))/0x6)+-parseInt(_0x24d4bb(0x175))/0x7+-parseInt(_0x24d4bb(0x148))/0x8*(parseInt(_0x24d4bb(0x166))/0x9)+parseInt(_0x24d4bb(0x14a))/0xa;if(_0x49aab9===_0xcc296)break;else _0x73d9dc['push'](_0x73d9dc['shift']());}catch(_0x36d383){_0x73d9dc['push'](_0x73d9dc['shift']());}}}(a0_0xf31d,0x5e16c));import'@material/mwc-icon';function a0_0xf31d(){const _0x10c2fd=['renderRoot','max','menus','setAttribute','dispatchEvent','137405HTkBab','1501374QPjgEW','target','preventDefault','firstUpdated','type','active-toplevel','stopPropagation','2259Wssmcm','478238ZMEYaG','wheelDelta','#wrap','2391208VCwhnS','icon','href','define','map','properties','querySelector','click','bind','mousewheel','name','2582678JWSIhn','13216oUYHwu','2jMVgzX','10331080MEHRAQ','path','settled','onWheelEvent','group','addEventListener','submenu','styles','#force','activeTopLevel','transitionstart','currentTarget','removeAttribute','detail','96ihxfJa'];a0_0xf31d=function(){return _0x10c2fd;};return a0_0xf31d();}import{html,LitElement}from'lit';import{connect}from'pwa-helpers';import{navigate,store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';function a0_0x19f7(_0x22fd5f,_0x15d5f){const _0xf31d41=a0_0xf31d();return a0_0x19f7=function(_0x19f71e,_0x3372bf){_0x19f71e=_0x19f71e-0x148;let _0x5b6108=_0xf31d41[_0x19f71e];return _0x5b6108;},a0_0x19f7(_0x22fd5f,_0x15d5f);}import{DynamicMenuLandscapeStyles}from'./dynamic-menu-landscape-styles';export class DynamicMenuLandscape extends connect(store)(LitElement){static get[a0_0x2ce39e(0x151)](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get[a0_0x2ce39e(0x16f)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}['render'](){const _0x180302=a0_0x2ce39e,{menus:_0x43af15=[],activeTopLevel:_0x2922da,activeMenu:_0x580ef1}=this;return html`
|
|
2
2
|
<div id="wrap">
|
|
3
3
|
<ul>
|
|
4
|
-
${
|
|
5
|
-
<li ?active=${
|
|
6
|
-
<a href=${
|
|
7
|
-
${
|
|
4
|
+
${_0x43af15[_0x180302(0x16e)](_0x41a0c1=>_0x180302(0x14e)==_0x41a0c1[_0x180302(0x163)]?html``:html`
|
|
5
|
+
<li ?active=${_0x41a0c1===_0x2922da}>
|
|
6
|
+
<a href=${_0x41a0c1['path']||'#'}>
|
|
7
|
+
${_0x41a0c1[_0x180302(0x16b)]?html`<mwc-icon>${_0x41a0c1[_0x180302(0x16b)]}</mwc-icon>`:html``} ${_0x41a0c1['name']}
|
|
8
8
|
</a>
|
|
9
9
|
|
|
10
10
|
<ul submenus>
|
|
11
|
-
${
|
|
12
|
-
<li ?active=${
|
|
13
|
-
<a href=${
|
|
11
|
+
${_0x41a0c1[_0x180302(0x15b)]?.[_0x180302(0x16e)](_0x1686f2=>html`
|
|
12
|
+
<li ?active=${_0x1686f2===_0x580ef1}>
|
|
13
|
+
<a href=${_0x1686f2[_0x180302(0x14b)]||'#'}> ${_0x1686f2[_0x180302(0x174)]} </a>
|
|
14
14
|
</li>
|
|
15
15
|
`)}
|
|
16
16
|
</ul>
|
|
17
17
|
|
|
18
18
|
<div description>
|
|
19
|
-
${
|
|
19
|
+
${_0x41a0c1[_0x180302(0x16b)]?html`<mwc-icon>${_0x41a0c1[_0x180302(0x16b)]}</mwc-icon>`:html``} ${_0x41a0c1['description']||''}
|
|
20
20
|
</div>
|
|
21
21
|
</li>
|
|
22
22
|
`)}
|
|
23
23
|
</ul>
|
|
24
24
|
</div>
|
|
25
|
-
`;}[
|
|
25
|
+
`;}[a0_0x2ce39e(0x162)](){const _0x41630a=a0_0x2ce39e;this[_0x41630a(0x159)][_0x41630a(0x170)](_0x41630a(0x169))[_0x41630a(0x14f)](_0x41630a(0x173),this[_0x41630a(0x14d)][_0x41630a(0x172)](this),!0x1),this[_0x41630a(0x159)][_0x41630a(0x14f)](_0x41630a(0x171),_0x4251d4=>{const _0x58976a=_0x41630a;if(_0x4251d4['target'][_0x58976a(0x150)]){_0x4251d4[_0x58976a(0x165)](),_0x4251d4[_0x58976a(0x161)]();let _0x14e750=_0x4251d4[_0x58976a(0x160)][_0x58976a(0x150)];return void this[_0x58976a(0x15d)](new CustomEvent(_0x58976a(0x164),{'bubbles':!0x0,'detail':this[_0x58976a(0x153)]===_0x14e750?void 0x0:_0x14e750}));}let _0x5da523=_0x4251d4[_0x58976a(0x160)][_0x58976a(0x16c)];_0x5da523&&location[_0x58976a(0x16c)]===_0x5da523&&navigate(_0x5da523+_0x58976a(0x152),!0x0);}),this[_0x41630a(0x159)][_0x41630a(0x14f)](_0x41630a(0x154),_0x82b05=>{const _0x317330=_0x41630a;_0x82b05['target'][_0x317330(0x156)](_0x317330(0x14c));}),this[_0x41630a(0x159)][_0x41630a(0x14f)]('transitionend',_0x415cf8=>{const _0x1694cc=_0x41630a;_0x415cf8[_0x1694cc(0x160)][_0x1694cc(0x15c)](_0x1694cc(0x14c),'');});}['onWheelEvent'](_0x554996){const _0x18c988=a0_0x2ce39e,_0x52f832=_0x554996[_0x18c988(0x155)];var _0x3bbf83=Math[_0x18c988(0x15a)](-0x1,Math['min'](0x1,_0x554996[_0x18c988(0x168)]||-_0x554996[_0x18c988(0x157)]));_0x52f832['scrollLeft']-=0xa*_0x3bbf83,_0x554996['preventDefault']();}}customElements[a0_0x2ce39e(0x16d)]('dynamic-menu-landscape',DynamicMenuLandscape);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x1abf38=a0_0x1aea;(function(_0x5eb08c,_0x4afa0a){var _0x1a558b=a0_0x1aea,_0x4559f6=_0x5eb08c();while(!![]){try{var _0x5a093f=parseInt(_0x1a558b(0x14c))/0x1+-parseInt(_0x1a558b(0x14e))/0x2*(-parseInt(_0x1a558b(0x157))/0x3)+parseInt(_0x1a558b(0x154))/0x4+parseInt(_0x1a558b(0x141))/0x5+parseInt(_0x1a558b(0x143))/0x6*(parseInt(_0x1a558b(0x13e))/0x7)+-parseInt(_0x1a558b(0x15a))/0x8+-parseInt(_0x1a558b(0x156))/0x9*(parseInt(_0x1a558b(0x144))/0xa);if(_0x5a093f===_0x4afa0a)break;else _0x4559f6['push'](_0x4559f6['shift']());}catch(_0x23d1c6){_0x4559f6['push'](_0x4559f6['shift']());}}}(a0_0x1588,0x2520e));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(_0x39ae6d,_0x59cba9){var _0x493a90=a0_0x1aea;return _0x39ae6d[_0x493a90(0x15d)]?.[_0x493a90(0x153)]('?')[0x0]===_0x59cba9||_0x39ae6d[_0x493a90(0x14d)]&&_0x493a90(0x14a)==typeof _0x39ae6d['active']&&_0x39ae6d['active'][_0x493a90(0x15b)](_0x39ae6d,{'path':_0x59cba9});}export class DynamicMenuPart extends connect(store)(LitElement){static get['properties'](){return{'page':String,'resourceId':String,'menus':Array,'orientation':String,'_activeTopLevel':Object,'_activeMenu':Object,'_path':String};}static get[a0_0x1abf38(0x151)](){return[ScrollbarStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -27,18 +27,18 @@ var a0_0x3761c5=a0_0x1954;(function(_0x5ae862,_0x23d0bb){var _0x40f942=a0_0x1954
|
|
|
27
27
|
dynamic-menu-landscape {
|
|
28
28
|
flex: 1;
|
|
29
29
|
}
|
|
30
|
-
`];}[
|
|
30
|
+
`];}[a0_0x1abf38(0x15f)](){var _0x396879=a0_0x1abf38;return html`
|
|
31
31
|
<slot name="head"></slot>
|
|
32
|
-
${
|
|
33
|
-
.menus=${this[
|
|
34
|
-
.activeTopLevel=${this[
|
|
35
|
-
.activeMenu=${this[
|
|
36
|
-
.path=${this[
|
|
32
|
+
${_0x396879(0x15c)!==this['orientation']?html`<dynamic-menu-portrait
|
|
33
|
+
.menus=${this[_0x396879(0x150)]}
|
|
34
|
+
.activeTopLevel=${this['_activeTopLevel']}
|
|
35
|
+
.activeMenu=${this[_0x396879(0x14b)]}
|
|
36
|
+
.path=${this[_0x396879(0x145)]}
|
|
37
37
|
></dynamic-menu-portrait>`:html`<dynamic-menu-landscape
|
|
38
|
-
.menus=${this[
|
|
38
|
+
.menus=${this['menus']}
|
|
39
39
|
.activeTopLevel=${this['_activeTopLevel']}
|
|
40
|
-
.activeMenu=${this[
|
|
41
|
-
.path=${this[
|
|
40
|
+
.activeMenu=${this[_0x396879(0x14b)]}
|
|
41
|
+
.path=${this['_path']}
|
|
42
42
|
></dynamic-menu-landscape>`}
|
|
43
43
|
<slot name="tail"></slot>
|
|
44
|
-
`;}['firstUpdated'](){var
|
|
44
|
+
`;}['firstUpdated'](){var _0x37135b=a0_0x1abf38;this['renderRoot'][_0x37135b(0x13d)](_0x37135b(0x14f),_0x545562=>{var _0x455edf=_0x37135b;_0x545562[_0x455edf(0x13f)](),_0x545562['preventDefault'](),this['_activeTopLevel']=_0x545562[_0x455edf(0x158)];});}['updated'](_0x2339e3){var _0x2fcc6a=a0_0x1abf38;(_0x2339e3[_0x2fcc6a(0x160)](_0x2fcc6a(0x150))||_0x2339e3['has'](_0x2fcc6a(0x147))||_0x2339e3[_0x2fcc6a(0x160)](_0x2fcc6a(0x149)))&&this[_0x2fcc6a(0x146)](),_0x2339e3[_0x2fcc6a(0x160)]('orientation')&&(_0x2fcc6a(0x159)==this[_0x2fcc6a(0x142)]?this['removeAttribute'](_0x2fcc6a(0x15c)):this[_0x2fcc6a(0x162)](_0x2fcc6a(0x15c),!0x0)),_0x2339e3[_0x2fcc6a(0x160)](_0x2fcc6a(0x148))&&this[_0x2fcc6a(0x13c)](this[_0x2fcc6a(0x148)]);}['stateChanged'](_0x1f148c){var _0x53f518=a0_0x1abf38;this[_0x53f518(0x147)]=_0x1f148c[_0x53f518(0x152)][_0x53f518(0x147)],this[_0x53f518(0x149)]=_0x1f148c[_0x53f518(0x152)][_0x53f518(0x149)],this['menus']=_0x1f148c[_0x53f518(0x140)]['menus']||[],this['slotTemplate']=_0x1f148c[_0x53f518(0x140)][_0x53f518(0x148)];}[a0_0x1abf38(0x146)](){var _0x251952=a0_0x1abf38,_0x46c58c,_0x171f07=this[_0x251952(0x149)]?this[_0x251952(0x147)]+'/'+this[_0x251952(0x149)]:this[_0x251952(0x147)],_0x2b4888=this[_0x251952(0x150)]||[];this[_0x251952(0x155)]=_0x2b4888[_0x251952(0x15e)](_0x55a581=>isActiveMenu(_0x55a581,_0x171f07)?(_0x46c58c=_0x55a581,!0x0):_0x55a581[_0x251952(0x150)]?!!(_0x46c58c=_0x55a581[_0x251952(0x150)][_0x251952(0x15e)](_0x4880d0=>isActiveMenu(_0x4880d0,_0x171f07))):void 0x0),this[_0x251952(0x145)]=_0x171f07,this['_activeMenu']=_0x46c58c||this['_activeTopLevel'];}}function a0_0x1588(){var _0x2deaa6=['77172RumpHS','active-toplevel','menus','styles','route','split','765952XPOYzo','_activeTopLevel','36yELlii','21uARaEp','detail','portrait','348464Kyikff','call','landscape','path','find','render','has','dynamic-menu-part','setAttribute','replaceChild','addEventListener','12964ORAbsN','stopPropagation','metaUI','1411535kJoKfZ','orientation','204CrDmTf','1671630tXuGgo','_path','_findActivePage','page','slotTemplate','resourceId','function','_activeMenu','57423waIwcn','active'];a0_0x1588=function(){return _0x2deaa6;};return a0_0x1588();}function a0_0x1aea(_0xd41bf2,_0x53ae35){var _0x1588a3=a0_0x1588();return a0_0x1aea=function(_0x1aeaba,_0x5cd57a){_0x1aeaba=_0x1aeaba-0x13c;var _0x58d476=_0x1588a3[_0x1aeaba];return _0x58d476;},a0_0x1aea(_0xd41bf2,_0x53ae35);}customElements['define'](a0_0x1abf38(0x161),DynamicMenuPart);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a0_0x48da(){const _0x439864=['4986312VwbtpX','1409xktSqd','27640JTscai','44NVLmIk','1791HMyvYj','1268WpwuAB','144690pSlnec','1092QmblJk','2336TYdtwc','5637541HZWDGE','39VyYPyc','4134iiyGqw','38992PDOmKW'];a0_0x48da=function(){return _0x439864;};return a0_0x48da();}(function(_0x3af2f9,_0x49578a){const _0x44e251=a0_0x40d3,_0x87f30b=_0x3af2f9();while(!![]){try{const _0x585907=-parseInt(_0x44e251(0x1d6))/0x1*(parseInt(_0x44e251(0x1dd))/0x2)+-parseInt(_0x44e251(0x1d3))/0x3*(-parseInt(_0x44e251(0x1da))/0x4)+-parseInt(_0x44e251(0x1d7))/0x5*(parseInt(_0x44e251(0x1dc))/0x6)+parseInt(_0x44e251(0x1d1))/0x7+-parseInt(_0x44e251(0x1d4))/0x8*(-parseInt(_0x44e251(0x1d9))/0x9)+-parseInt(_0x44e251(0x1db))/0xa*(-parseInt(_0x44e251(0x1d8))/0xb)+parseInt(_0x44e251(0x1d5))/0xc*(parseInt(_0x44e251(0x1d2))/0xd);if(_0x585907===_0x49578a)break;else _0x87f30b['push'](_0x87f30b['shift']());}catch(_0x245e28){_0x87f30b['push'](_0x87f30b['shift']());}}}(a0_0x48da,0xd31f9));function a0_0x40d3(_0x248f04,_0x282965){const _0x48da03=a0_0x48da();return a0_0x40d3=function(_0x40d32a,_0x40e413){_0x40d32a=_0x40d32a-0x1d1;let _0x5606e4=_0x48da03[_0x40d32a];return _0x5606e4;},a0_0x40d3(_0x248f04,_0x282965);}import{css}from'lit';export const DynamicMenuPortraitStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|