@things-factory/meta-ui 6.1.41 → 6.1.43
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 +9 -9
- package/client/component/filter/filter-form-meta-object-select.js +9 -9
- package/client/component/filter/filter-grist-meta-code-select.js +9 -9
- 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 +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +16 -16
- package/client/pages/menu/export-menu-popup.js +18 -0
- 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 +101 -101
- 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 +1 -1
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +12 -12
- package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +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/dynamic-menu/dynamic-menu-query.js +1 -1
- package/server/service/dynamic-menu/dynamic-menu-type.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_0x4ddcd1=a0_0x4803;(function(_0x2b22f3,_0x3e8dd6){const _0x5d41ea=a0_0x4803,_0x5c2c76=_0x2b22f3();while(!![]){try{const _0x28f2ac=parseInt(_0x5d41ea(0x203))/0x1+parseInt(_0x5d41ea(0x1c3))/0x2+parseInt(_0x5d41ea(0x1f0))/0x3*(parseInt(_0x5d41ea(0x1bf))/0x4)+-parseInt(_0x5d41ea(0x1fc))/0x5+parseInt(_0x5d41ea(0x1a2))/0x6+-parseInt(_0x5d41ea(0x1b7))/0x7+parseInt(_0x5d41ea(0x1ee))/0x8*(-parseInt(_0x5d41ea(0x229))/0x9);if(_0x28f2ac===_0x3e8dd6)break;else _0x5c2c76['push'](_0x5c2c76['shift']());}catch(_0x315353){_0x5c2c76['push'](_0x5c2c76['shift']());}}}(a0_0x2e2c,0x742f4));import{store,gqlContext}from'@things-factory/shell';import{getCodeByName}from'@things-factory/code-base';import{EXPORT}from'@things-factory/export-base';import{gqlBuilder}from'@things-factory/utils';import{client}from'@operato/graphql';function a0_0x2e2c(){const _0x2eed46=['gridPersonalizeTemplates','delete','error','286920SCaMOE','approval-pending-list','updateMultiple','text.there_is_nothing_to_delete','getSelectedIdList','isNotEmpty','code','searchMenuGridPersnalTemplate','parse','records','cuFlag','deleteListByGristSelected','runScenario','path','parent','iconPath','menus','getCodeSelectorData','getCodeByScenario','updateMultipleData','split','category','cancel','tText','fetch','id,template','record','noteq','result','updatedAt','callScenario','__seq__','find','numberOfToDos','patchesForUpdateMultiple','findOne','data','display','18YhFwNI','__dirty__','dispatch','\x0a\x20\x20\x20\x20\x20\x20','code-input','\x0a\x20\x20\x20\x20','active','2878500KuuuQt','Graphql\x20Error','undefined','searchMyDynamicMenus','isEmpty','children','workCodeByName','showToast','object','reduce','errors','showGraphqlException','_config','config','MENU','name','forEach','badge','arrangeMenuRoutes','draft-list','message','2006228kZFIxi','description','GROUP','text.NOTHING_CHANGED','text.are_you_sure','codeItems','key','menuType','2324356KhlVTq','SCREEN','checkClientError','test','1043496NYzJZS','items','map','myDynamicMenus','hidden','filter','join','query','success\x20to\x20delete','header','imex','question','splice','deleteListByIds','text.check-mandatory','showGraphqlErrorResponse','searchByPagination','total','exportableData','extensions','includes','numberOfApprovalPendings','rank','findIndex','push','numberOfDrafts','buildArgs','type','createdAt','template','unshift','details','length','__origin__','HOME','columns','gutter','networkError','log','group','showAlertPopup','__dirtyfields__','getWorkCodeByName','2549368iaFRdX','selected','3CxrsUX','routingType','value','button.','tMenu','check-mandatory-field','__selected__','creator','confirm','routing','resourceUrl','todo-list','2348345nmdYKb','menu.id','title','info'];a0_0x2e2c=function(){return _0x2eed46;};return a0_0x2e2c();}import{TermsUtil}from'./terms-util';import{UiUtil}from'./ui-util';import a0_0x222a9f from'graphql-tag';import{ValueUtil}from'./value-util';function a0_0x4803(_0x2d4f29,_0x25ee54){const _0x2e2c28=a0_0x2e2c();return a0_0x4803=function(_0x48039c,_0x22f660){_0x48039c=_0x48039c-0x19d;let _0x429247=_0x2e2c28[_0x48039c];return _0x429247;},a0_0x4803(_0x2d4f29,_0x25ee54);}import{asyncReplace}from'lit/directives/async-replace.js';import a0_0x453c53 from'i18next';import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';export class ServiceUtil{static async['codeItems'](_0x1e1561){const _0x37c55d=a0_0x4803;if(Array['isArray'](_0x1e1561))return _0x1e1561[_0x37c55d(0x1c5)](_0xae7b7c=>_0x37c55d(0x1aa)==typeof _0xae7b7c?{'name':_0xae7b7c[_0x37c55d(0x1f2)],'description':_0xae7b7c[_0x37c55d(0x228)]}:{'name':_0xae7b7c,'description':_0xae7b7c});let _0x5aea55=await ServiceUtil[_0x37c55d(0x1ed)](_0x1e1561);return _0x5aea55&&_0x5aea55['length']>0x0?_0x5aea55:await getCodeByName(_0x1e1561);}static async[a0_0x4ddcd1(0x1ed)](_0x179a9c){const _0x52a85b=a0_0x4ddcd1,_0x38223f=await client[_0x52a85b(0x1ca)]({'query':a0_0x222a9f`
|
|
2
2
|
query workCodeByName($name: String!) {
|
|
3
3
|
workCodeByName(name: $name) {
|
|
4
4
|
details {
|
|
@@ -8,32 +8,32 @@ const a0_0x3f76b9=a0_0x10df;(function(_0x43a0e2,_0x4e0128){const _0x424f29=a0_0x
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
`,'variables':{'name':
|
|
11
|
+
`,'variables':{'name':_0x179a9c},'context':gqlContext()});return!_0x38223f[_0x52a85b(0x1ac)]&&_0x38223f['data'][_0x52a85b(0x1a8)]&&_0x38223f['data'][_0x52a85b(0x1a8)][_0x52a85b(0x1e2)]?_0x38223f[_0x52a85b(0x227)][_0x52a85b(0x1a8)]['details']['sort']((_0x39ec9f,_0x415d5f)=>_0x39ec9f['rank']-_0x415d5f[_0x52a85b(0x1d9)]):[];}static async[a0_0x4ddcd1(0x214)](_0x21d066){const _0x4204c8=a0_0x4ddcd1;let _0xe89a8a=(await ServiceUtil[_0x4204c8(0x1bc)](_0x21d066))['map'](_0x3b8735=>({'value':_0x3b8735[_0x4204c8(0x1b1)],'display':_0x3b8735['description']}));return _0xe89a8a['unshift']({'value':'','display':''}),_0xe89a8a;}static async[a0_0x4ddcd1(0x215)](_0x5b6f7c,_0x2bc0e1){const _0x2a0a81=a0_0x4ddcd1;let _0x3c4631=await ServiceUtil[_0x2a0a81(0x221)](null,_0x5b6f7c,_0x2bc0e1,!0x1);if(_0x3c4631&&_0x3c4631[_0x2a0a81(0x227)]&&_0x3c4631[_0x2a0a81(0x227)][_0x2a0a81(0x20f)]&&_0x3c4631[_0x2a0a81(0x227)][_0x2a0a81(0x20f)][_0x2a0a81(0x227)]&&_0x3c4631['data']['runScenario'][_0x2a0a81(0x227)][_0x2a0a81(0x21f)]){let _0x3bb4dd=_0x3c4631[_0x2a0a81(0x227)][_0x2a0a81(0x20f)][_0x2a0a81(0x227)]['result'];return _0x3bb4dd[_0x2a0a81(0x1e1)]({'value':'','display':''}),_0x3bb4dd[_0x2a0a81(0x1c5)](_0x4be466=>({'value':_0x4be466['name'],'display':_0x4be466[_0x2a0a81(0x1b8)]}));}return[];}static async['getCodeByEntity']({queryName:_0x12d106,codeField:_0x9153e8=a0_0x4ddcd1(0x1b1),dispField:_0x5ab2f6,filters:_0x3c1e8b=[],sorters:_0x1d8003=[]}){const _0x22d362=a0_0x4ddcd1;let _0x1ac7d3=_0x5ab2f6['split'](','),_0xcc45a8=_0x22d362(0x19e)+_0x9153e8+_0x22d362(0x19e)+(_0x5ab2f6?_0x1ac7d3[_0x22d362(0x1c9)]('\x0a'):'')+_0x22d362(0x1a0),_0x3d2c5d=await ServiceUtil[_0x22d362(0x1d3)](_0x12d106,_0x3c1e8b,_0x1d8003,0x0,0x0,_0xcc45a8),_0x126ac6=[{'value':'','display':''}];return _0x3d2c5d[_0x22d362(0x20c)]['forEach'](_0x7d135e=>{const _0x60dfb0=_0x22d362;let _0xc89ca8=_0x7d135e[_0x9153e8];if(_0x5ab2f6){let _0xb7e20=_0x5ab2f6[_0x60dfb0(0x217)](',');_0xc89ca8=_0x7d135e[_0xb7e20[0x0]],_0xb7e20[_0x60dfb0(0x1e3)]>0x1&&(_0xc89ca8+='('+_0xb7e20['splice'](0x1)[_0x60dfb0(0x1c5)](_0x4a1fe8=>_0x7d135e[_0x4a1fe8])[_0x60dfb0(0x1c9)](',')+')');}_0x126ac6[_0x60dfb0(0x1db)]({'value':_0x7d135e[_0x9153e8],'display':_0xc89ca8});}),_0x126ac6;}static async[a0_0x4ddcd1(0x1c6)](){const _0x41035f=a0_0x4ddcd1;let _0xc8a396=await ServiceUtil[_0x41035f(0x1a5)]();return null!=_0xc8a396?ServiceUtil[_0x41035f(0x1b4)](_0xc8a396):null;}static async[a0_0x4ddcd1(0x20a)](_0xac38c1){const _0x7d2cbb=a0_0x4ddcd1;let _0x1eeec7=[{'name':_0x7d2cbb(0x1fd),'operator':'eq','value':_0xac38c1}],_0x1b49fb=await ServiceUtil[_0x7d2cbb(0x1d3)](_0x7d2cbb(0x200),_0x1eeec7,[],0x0,0x0,_0x7d2cbb(0x21c));return 0x0==_0x1b49fb[_0x7d2cbb(0x1d4)]?{}:{'id':_0x1b49fb[_0x7d2cbb(0x20c)][0x0]['id'],'template':JSON[_0x7d2cbb(0x20b)](_0x1b49fb[_0x7d2cbb(0x20c)][0x0][_0x7d2cbb(0x1e0)])};}static['arrangeMenuRoutes'](_0x2c22fa){const _0x3a7ef4=a0_0x4ddcd1;let _0x15e843=[];_0x2c22fa[_0x3a7ef4(0x1b2)](_0x282b97=>{const _0x2d75be=_0x3a7ef4;_0x15e843[_0x2d75be(0x1db)](_0x282b97),_0x282b97[_0x2d75be(0x1a7)]&&(_0x282b97['children']['sort'](function(_0x183a65,_0x391e96){const _0x4e68ba=_0x2d75be;return _0x183a65['rank']-_0x391e96[_0x4e68ba(0x1d9)];}),_0x282b97['children'][_0x2d75be(0x1b2)](_0x225671=>{const _0x5af62d=_0x2d75be;0x1!=_0x225671['hiddenFlag']&&(_0x225671[_0x5af62d(0x211)]=_0x282b97,_0x15e843[_0x5af62d(0x1db)](_0x225671));}));});let _0x12c9bd=_0x15e843[_0x3a7ef4(0x1c5)](_0xe4f077=>{const _0x5cbdbf=_0x3a7ef4;if(_0x5cbdbf(0x1b9)==_0xe4f077[_0x5cbdbf(0x1be)]||_0x5cbdbf(0x1b0)==_0xe4f077[_0x5cbdbf(0x1be)]){let _0xe3caae={'id':_0xe4f077['id'],'parent':!0x0,'name':TermsUtil[_0x5cbdbf(0x1f4)](_0xe4f077['name']),'icon':_0xe4f077[_0x5cbdbf(0x212)],'type':_0x5cbdbf(0x1b9)==_0xe4f077[_0x5cbdbf(0x1be)]?_0x5cbdbf(0x1ea):'','menus':[]};return _0xe4f077[_0x5cbdbf(0x1f9)]&&(_0xe3caae[_0x5cbdbf(0x210)]=_0xe4f077[_0x5cbdbf(0x1f9)]),_0xe3caae;}return{'id':'0'};})[_0x3a7ef4(0x1c8)](_0x3eb24f=>'0'!=_0x3eb24f['id']),_0x5ce276=_0x15e843[_0x3a7ef4(0x1c5)](_0x2b68c9=>{const _0x40bdf0=_0x3a7ef4;if('SCREEN'==_0x2b68c9['menuType']||'HIDDEN-PAGE'==_0x2b68c9[_0x40bdf0(0x1be)]){let _0x293099=_0x12c9bd[_0x40bdf0(0x223)](_0x5e8825=>_0x5e8825['id']==_0x2b68c9[_0x40bdf0(0x211)]['id']);if(_0x293099){let _0x3d8623=TermsUtil[_0x40bdf0(0x1f4)](_0x2b68c9[_0x40bdf0(0x1b1)]);return _0x40bdf0(0x1c0)==_0x2b68c9['menuType']&&_0x293099['menus'][_0x40bdf0(0x1db)]({'id':_0x2b68c9['id'],'name':_0x3d8623,'path':_0x2b68c9[_0x40bdf0(0x1f9)],'icon':_0x2b68c9['iconPath']}),{'id':_0x2b68c9['id'],'parent':!0x1,'parent_id':_0x293099['id'],'title':_0x3d8623,'tagname':_0x2b68c9[_0x40bdf0(0x218)],'page':_0x2b68c9['routing'],'template':_0x2b68c9[_0x40bdf0(0x1fa)],'routing_type':_0x2b68c9[_0x40bdf0(0x1f1)]};}return{'id':'0'};}return _0x40bdf0(0x1e5)==_0x2b68c9[_0x40bdf0(0x1be)]?{'id':_0x2b68c9['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil[_0x40bdf0(0x1f4)](_0x2b68c9[_0x40bdf0(0x1b1)]),'tagname':_0x2b68c9['category'],'page':_0x2b68c9['routing'],'template':_0x2b68c9[_0x40bdf0(0x1fa)],'routing_type':_0x2b68c9[_0x40bdf0(0x1f1)]}:{'id':'0'};})['filter'](_0xada58e=>null!=_0xada58e&&'0'!=_0xada58e['id']);_0x12c9bd[_0x3a7ef4(0x1c8)](_0x574a54=>_0x3a7ef4(0x1ea)==_0x574a54[_0x3a7ef4(0x1de)]&&_0x574a54[_0x3a7ef4(0x213)]&&_0x574a54[_0x3a7ef4(0x213)][_0x3a7ef4(0x1e3)]>0x0)['forEach'](_0x33a5bf=>{const _0x41379d=_0x3a7ef4;let _0x4e455b=_0x12c9bd[_0x41379d(0x1da)](_0x5e58ef=>_0x5e58ef['id']==_0x33a5bf['id'])+0x1;_0x12c9bd[_0x41379d(0x1cf)](_0x4e455b,0x0,..._0x33a5bf[_0x41379d(0x213)]);});let _0x3a3382=0x0;return _0x12c9bd[_0x3a7ef4(0x1b2)](_0x3f314c=>{const _0x2889c0=_0x3a7ef4;_0x2889c0(0x1fb)==_0x3f314c[_0x2889c0(0x210)]?(_0x3a3382++,_0x3f314c['badge']=()=>asyncReplace(generateActivitySummary(_0x2889c0(0x224))),_0x3f314c[_0x2889c0(0x1a1)]=({path:_0x4062d2})=>/^activity\//['test'](_0x4062d2)):_0x2889c0(0x204)==_0x3f314c[_0x2889c0(0x210)]?(_0x3a3382++,_0x3f314c[_0x2889c0(0x1b3)]=()=>asyncReplace(generateActivitySummary(_0x2889c0(0x1d8))),_0x3f314c[_0x2889c0(0x1a1)]=({path:_0x4b9e26})=>/^activity\//[_0x2889c0(0x1c2)](_0x4b9e26)):_0x2889c0(0x1b5)==_0x3f314c['path']&&(_0x3a3382++,_0x3f314c['badge']=()=>asyncReplace(generateActivitySummary(_0x2889c0(0x1dc))));}),_0x3a3382>0x0&&startSubscribeActivitySummary(),{'menus':_0x12c9bd,'routes':_0x5ce276};}static async[a0_0x4ddcd1(0x1a5)](){const _0x474124=a0_0x4ddcd1;let _0x266fb6=await ServiceUtil[_0x474124(0x1d3)](_0x474124(0x213),[{'name':'hiddenFlag','operator':_0x474124(0x21e),'value':!0x0},{'name':_0x474124(0x1be),'operator':'in','value':[_0x474124(0x1e5),'MENU','GROUP']}],[{'name':_0x474124(0x1d9)}],0x0,0x0,'\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20parent\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20children{\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20\x20\x20menuType\x0a\x20\x20\x20\x20\x20\x20\x20\x20category\x0a\x20\x20\x20\x20\x20\x20\x20\x20routingType\x0a\x20\x20\x20\x20\x20\x20\x20\x20routing\x0a\x20\x20\x20\x20\x20\x20\x20\x20resourceUrl\x0a\x20\x20\x20\x20\x20\x20\x20\x20iconPath\x0a\x20\x20\x20\x20\x20\x20\x20\x20hiddenFlag\x0a\x20\x20\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20menuType\x0a\x20\x20\x20\x20\x20\x20category\x0a\x20\x20\x20\x20\x20\x20routingType\x0a\x20\x20\x20\x20\x20\x20routing\x0a\x20\x20\x20\x20\x20\x20resourceUrl\x0a\x20\x20\x20\x20\x20\x20iconPath\x0a\x20\x20\x20\x20');return _0x266fb6?_0x266fb6[_0x474124(0x20c)]:[];}static async['showGraphqlErrorResponse'](_0x1e4422){const _0x365003=a0_0x4ddcd1;if(_0x1e4422[_0x365003(0x1ac)]&&_0x1e4422[_0x365003(0x1ac)][_0x365003(0x1e3)]>0x0){let _0x4aaf8a=_0x1e4422[_0x365003(0x1ac)][0x0],_0x28b8bb=_0x4aaf8a[_0x365003(0x1b6)],_0x498361=_0x4aaf8a['message'];_0x4aaf8a[_0x365003(0x1d6)]&&(_0x498361=_0x4aaf8a[_0x365003(0x1d6)][_0x365003(0x209)]),await UiUtil[_0x365003(0x1eb)](_0x498361,_0x28b8bb,_0x365003(0x202),_0x365003(0x1f8));}}static async[a0_0x4ddcd1(0x1ad)](_0x2c4889){const _0x49fe50=a0_0x4ddcd1;_0x2c4889&&(_0x2c4889['networkError']&&_0x2c4889[_0x49fe50(0x1e8)][_0x49fe50(0x21f)]?await ServiceUtil[_0x49fe50(0x1d2)](_0x2c4889[_0x49fe50(0x1e8)][_0x49fe50(0x21f)]):await UiUtil['showAlertPopup'](_0x49fe50(0x1a3),_0x2c4889[_0x49fe50(0x1b6)],_0x49fe50(0x202),_0x49fe50(0x1f8)));}static async[a0_0x4ddcd1(0x1d5)](_0x4d7609,_0x272b54,_0x52731e){const _0x23e819=a0_0x4ddcd1;var _0x49ff1b=_0x52731e['_config'][_0x23e819(0x1e6)][_0x23e819(0x1c8)](_0x5addae=>_0x23e819(0x1e7)!==_0x5addae[_0x23e819(0x1de)]&&void 0x0!==_0x5addae['record']&&void 0x0!==_0x5addae[_0x23e819(0x1cd)]&&!0x0!==_0x5addae[_0x23e819(0x1c7)])[_0x23e819(0x1c5)](_0x43eb0f=>_0x43eb0f[_0x23e819(0x1cd)]),_0x2000fb=_0x52731e[_0x23e819(0x227)][_0x23e819(0x20c)][_0x23e819(0x1c5)](_0xd7503e=>({..._0x52731e[_0x23e819(0x1ae)]['columns'][_0x23e819(0x1c8)](_0x548846=>_0x23e819(0x1e7)!==_0x548846[_0x23e819(0x1de)]&&void 0x0!==_0x548846['record']&&void 0x0!==_0x548846[_0x23e819(0x1cd)]&&!0x0!==_0x548846['hidden'])[_0x23e819(0x1ab)]((_0x19f5f8,_0x17d6d1)=>(_0x19f5f8[_0x17d6d1[_0x23e819(0x1cd)][_0x23e819(0x1bd)]]=_0x17d6d1[_0x23e819(0x1cd)][_0x23e819(0x1bd)][_0x23e819(0x217)]('.')[_0x23e819(0x1ab)]((_0x37228f,_0x7e5b5e)=>_0x37228f&&_0x23e819(0x1a4)!==_0x37228f[_0x7e5b5e]?_0x37228f[_0x7e5b5e]:void 0x0,_0xd7503e),_0x19f5f8),{})}));if(!_0x4d7609)return{'header':_0x49ff1b,'data':_0x2000fb};store[_0x23e819(0x19d)]({'type':EXPORT,'exportable':{'extension':'xlsx','name':_0x272b54,'data':{'header':_0x49ff1b,'data':_0x2000fb}}});}static async[a0_0x4ddcd1(0x1d3)](_0x31e346,_0x26c017,_0x55596e,_0x5689d2,_0x375696,_0xe9a779){const _0x1b132e=a0_0x4ddcd1;try{const _0x51f453=await client['query']({'query':a0_0x222a9f`
|
|
12
12
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
13
|
-
${
|
|
13
|
+
${_0x31e346}(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
14
14
|
items {
|
|
15
|
-
${
|
|
15
|
+
${_0xe9a779}
|
|
16
16
|
}
|
|
17
17
|
total
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,'variables':{'filters':
|
|
20
|
+
`,'variables':{'filters':_0x26c017,'sortings':_0x55596e,'pagination':{'page':_0x5689d2,'limit':_0x375696}}});if(!_0x51f453[_0x1b132e(0x1ac)])return{'records':_0x51f453[_0x1b132e(0x227)][_0x31e346][_0x1b132e(0x1c4)],'total':_0x51f453[_0x1b132e(0x227)][_0x31e346][_0x1b132e(0x1d4)]};ServiceUtil['showGraphqlErrorResponse'](_0x51f453);}catch(_0x1a8b51){ServiceUtil[_0x1b132e(0x1ad)](_0x1a8b51);}return null;}static async[a0_0x4ddcd1(0x226)](_0x5cd362,_0x3bcd06,_0x1d559b){const _0x3be1f8=a0_0x4ddcd1;try{let _0x19b87c=await client[_0x3be1f8(0x1ca)]({'query':a0_0x222a9f`
|
|
21
21
|
query ($id: String!) {
|
|
22
|
-
${
|
|
23
|
-
${
|
|
22
|
+
${_0x5cd362}(id: $id) {
|
|
23
|
+
${_0x1d559b}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,'variables':{'id':
|
|
26
|
+
`,'variables':{'id':_0x3bcd06}});if(!_0x19b87c[_0x3be1f8(0x1ac)])return _0x19b87c[_0x3be1f8(0x227)][_0x5cd362]||{};ServiceUtil[_0x3be1f8(0x1d2)](_0x19b87c);}catch(_0x484196){ServiceUtil['showGraphqlException'](_0x484196);}return null;}static[a0_0x4ddcd1(0x207)](_0x3e6f5b,_0x5a46d2){const _0xe04a7b=a0_0x4ddcd1,_0x1fe2cb=_0x3e6f5b[_0xe04a7b(0x1ef)][_0xe04a7b(0x1c5)](_0x42ea90=>_0x42ea90['id']);return ValueUtil[_0xe04a7b(0x1a6)](_0x1fe2cb)&&0x1==_0x5a46d2&&UiUtil[_0xe04a7b(0x1eb)]('text.nothing_selected',_0xe04a7b(0x206),_0xe04a7b(0x1ff),_0xe04a7b(0x1f8)),_0x1fe2cb;}static async[a0_0x4ddcd1(0x20e)](_0x3bc64e,_0x3558ee){const _0x143ffb=a0_0x4ddcd1;let _0x48ff9f=ServiceUtil[_0x143ffb(0x207)](_0x3bc64e,!0x0);ValueUtil[_0x143ffb(0x208)](_0x48ff9f)&&(await ServiceUtil[_0x143ffb(0x1d0)](_0x48ff9f,_0x3558ee)&&_0x3bc64e[_0x143ffb(0x21b)]());}static async[a0_0x4ddcd1(0x1d0)](_0x5c27a3,_0x15b25b){const _0x421f6f=a0_0x4ddcd1;if(!(await UiUtil[_0x421f6f(0x1eb)]('button.delete',_0x421f6f(0x1bb),_0x421f6f(0x1ce),_0x421f6f(0x201),_0x421f6f(0x219)))[_0x421f6f(0x1f2)])return!0x1;try{const _0xbcda77=await client[_0x421f6f(0x1ca)]({'query':a0_0x222a9f`
|
|
27
27
|
mutation {
|
|
28
|
-
${
|
|
28
|
+
${_0x15b25b}(${gqlBuilder[_0x421f6f(0x1dd)]({'ids':_0x5c27a3})})
|
|
29
29
|
}
|
|
30
|
-
`});if(!
|
|
30
|
+
`});if(!_0xbcda77[_0x421f6f(0x1ac)])return UiUtil[_0x421f6f(0x1a9)](_0x421f6f(0x1ff),TermsUtil['tText'](_0x421f6f(0x1cb))),!0x0;ServiceUtil[_0x421f6f(0x1d2)](_0xbcda77);}catch(_0x1ed9bd){ServiceUtil['showGraphqlException'](_0x1ed9bd);}return!0x1;}static async[a0_0x4ddcd1(0x216)](_0x41b344,_0x21e193){const _0x114bfb=a0_0x4ddcd1;let _0x2d79c6=ServiceUtil[_0x114bfb(0x225)](_0x41b344);if(ValueUtil[_0x114bfb(0x208)](_0x2d79c6)){let _0x23fd99=await ServiceUtil['updateMultiple'](_0x21e193,_0x2d79c6);if(_0x23fd99)return _0x41b344[_0x114bfb(0x21b)](),_0x23fd99;}return!0x1;}static async[a0_0x4ddcd1(0x205)](_0x3c20ae,_0x13b89e){const _0x411fdb=a0_0x4ddcd1;try{const _0x551893=await client[_0x411fdb(0x1ca)]({'query':a0_0x222a9f`
|
|
31
31
|
mutation {
|
|
32
|
-
${
|
|
32
|
+
${_0x3c20ae}(${gqlBuilder[_0x411fdb(0x1dd)]({'patches':_0x13b89e})}) {
|
|
33
33
|
id
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
`,'context':{'hasUpload':!0x0}});if(!
|
|
36
|
+
`,'context':{'hasUpload':!0x0}});if(!_0x551893[_0x411fdb(0x1ac)])return UiUtil['showToast'](_0x411fdb(0x1ff),TermsUtil[_0x411fdb(0x21a)]('success\x20to\x20save')),!0x0;ServiceUtil[_0x411fdb(0x1d2)](_0x551893);}catch(_0x2d13a0){ServiceUtil[_0x411fdb(0x1ad)](_0x2d13a0);}return!0x1;}static[a0_0x4ddcd1(0x225)](_0x181990,_0x30d3e6=!0x1){const _0x2d83c9=a0_0x4ddcd1;let _0xa0a197=_0x181990['dirtyRecords'],_0x456d2f={};((_0x181990[_0x2d83c9(0x1af)]||{})[_0x2d83c9(0x1e6)]||[])[_0x2d83c9(0x1c8)](_0x3fa57a=>!0x0===(_0x3fa57a[_0x2d83c9(0x21d)]||{})['mandatory'])[_0x2d83c9(0x1b2)](_0x348dc7=>{const _0x4a137d=_0x2d83c9;_0x456d2f[_0x348dc7[_0x4a137d(0x1b1)]]=_0x348dc7[_0x4a137d(0x1cc)];});let _0xc4ec67=((_0x181990[_0x2d83c9(0x1af)]||{})[_0x2d83c9(0x1e6)]||[])['filter'](_0x182c93=>_0x2d83c9(0x19f)===_0x182c93[_0x2d83c9(0x1de)])[_0x2d83c9(0x1c5)](_0xd6cc06=>_0xd6cc06['name']);if(!_0xa0a197||0x0==_0xa0a197[_0x2d83c9(0x1e3)])return void UiUtil['showAlertPopup']('text.nothing_changed',_0x2d83c9(0x1ba),_0x2d83c9(0x1ff),'confirm');let _0x5a489c=[];for(let _0x598dba in _0xa0a197){let _0xd72942=_0xa0a197[_0x598dba],_0x558818=_0xd72942['id']?{'id':_0xd72942['id']}:{};for(let _0x4f1605 in _0x456d2f)if(void 0x0===_0xd72942[_0x4f1605]||''==_0xd72942[_0x4f1605])return console[_0x2d83c9(0x1e9)](_0xd72942),void UiUtil[_0x2d83c9(0x1eb)](_0x2d83c9(0x1d1),TermsUtil[_0x2d83c9(0x21a)](_0x2d83c9(0x1f5),{'x':_0x456d2f[_0x4f1605]}),_0x2d83c9(0x1ff),_0x2d83c9(0x1f8));for(let _0x3e4b99 in _0xd72942)[_0x2d83c9(0x1f7),'updater',_0x2d83c9(0x1df),_0x2d83c9(0x220),_0x2d83c9(0x22a),_0x2d83c9(0x1ec),_0x2d83c9(0x1e4),_0x2d83c9(0x222),_0x2d83c9(0x1f6)][_0x2d83c9(0x1d7)](_0x3e4b99)||(0x0==_0xc4ec67[_0x2d83c9(0x1d7)](_0x3e4b99)&&_0xd72942[_0x3e4b99]&&_0x2d83c9(0x1aa)==typeof _0xd72942[_0x3e4b99]&&0x0==_0x30d3e6?_0x558818[_0x3e4b99]={'id':_0xd72942[_0x3e4b99]['id']}:_0x558818[_0x3e4b99]=_0xd72942[_0x3e4b99]);_0x558818[_0x2d83c9(0x20d)]=_0xd72942[_0x2d83c9(0x22a)],_0x5a489c[_0x2d83c9(0x1db)](_0x558818);}return _0x5a489c;}static async[a0_0x4ddcd1(0x221)](_0x3aebac,_0x5d26fd,_0x204484,_0x5ba1a3=!0x0){const _0x3d2788=a0_0x4ddcd1;let _0x3adb24=!0x0;_0x3aebac&&!0x0===_0x5ba1a3&&(_0x3adb24=(await UiUtil[_0x3d2788(0x1eb)](_0x3d2788(0x1f3)+_0x3aebac,_0x3d2788(0x1bb),_0x3d2788(0x1ce),_0x3d2788(0x1f8),_0x3d2788(0x219)))[_0x3d2788(0x1f2)]);if(_0x3adb24)try{const _0x166978=await client[_0x3d2788(0x1ca)]({'query':a0_0x222a9f`
|
|
37
37
|
mutation ($scenarioName: String!, $variables: Object) {
|
|
38
38
|
runScenario(scenarioName: $scenarioName, variables: $variables) {
|
|
39
39
|
state
|
|
@@ -42,4 +42,4 @@ const a0_0x3f76b9=a0_0x10df;(function(_0x43a0e2,_0x4e0128){const _0x424f29=a0_0x
|
|
|
42
42
|
__typename
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
`,'variables':{'scenarioName':
|
|
45
|
+
`,'variables':{'scenarioName':_0x5d26fd,'variables':_0x204484}});if(_0x166978['errors'])ServiceUtil[_0x3d2788(0x1d2)](_0x166978);else{if(this['checkClientError'](_0x166978))return!0x0===_0x5ba1a3&&UiUtil[_0x3d2788(0x1a9)](_0x3d2788(0x1ff),TermsUtil[_0x3d2788(0x21a)]('success\x20to\x20process')),_0x166978;}}catch(_0x29d830){ServiceUtil['showGraphqlException'](_0x29d830);}return!0x1;}static[a0_0x4ddcd1(0x1c1)](_0x1e6f02){const _0x20b53d=a0_0x4ddcd1;if(_0x1e6f02&&_0x1e6f02[_0x20b53d(0x227)]&&_0x1e6f02['data']['runScenario']&&_0x1e6f02['data'][_0x20b53d(0x20f)][_0x20b53d(0x227)]&&_0x1e6f02[_0x20b53d(0x227)][_0x20b53d(0x20f)][_0x20b53d(0x227)][_0x20b53d(0x202)]){let _0x49090a=_0x1e6f02[_0x20b53d(0x227)][_0x20b53d(0x20f)][_0x20b53d(0x227)][_0x20b53d(0x202)];return UiUtil[_0x20b53d(0x1eb)](_0x49090a[_0x20b53d(0x1fe)],_0x49090a[_0x20b53d(0x1b6)],_0x20b53d(0x202),_0x20b53d(0x1f8)),!0x1;}return!0x0;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4cae2b=a0_0x13da;function a0_0x13da(_0x474524,_0x829a0b){const _0x58d827=a0_0x58d8();return a0_0x13da=function(_0x13da01,_0x491d0b){_0x13da01=_0x13da01-0xc9;let _0x3e6dad=_0x58d827[_0x13da01];return _0x3e6dad;},a0_0x13da(_0x474524,_0x829a0b);}(function(_0x42bc40,_0x28f337){const _0x1c0d89=a0_0x13da,_0x34015f=_0x42bc40();while(!![]){try{const _0x138242=parseInt(_0x1c0d89(0xda))/0x1+parseInt(_0x1c0d89(0xe0))/0x2+-parseInt(_0x1c0d89(0xde))/0x3+parseInt(_0x1c0d89(0xe1))/0x4+-parseInt(_0x1c0d89(0xeb))/0x5*(-parseInt(_0x1c0d89(0xe6))/0x6)+parseInt(_0x1c0d89(0xcb))/0x7+parseInt(_0x1c0d89(0xe9))/0x8*(-parseInt(_0x1c0d89(0xee))/0x9);if(_0x138242===_0x28f337)break;else _0x34015f['push'](_0x34015f['shift']());}catch(_0x1f8a1a){_0x34015f['push'](_0x34015f['shift']());}}}(a0_0x58d8,0x7e610));import a0_0xcbd260 from'graphql-tag';function a0_0x58d8(){const _0x29a782=['records','tTitle','total','2610WeVGmf','terminologies','button','283336CoZzBp','query','2285OFgtjo','tLabel','label','423osGqzF','display','field','6566035CPZkXf','replace','translate','tMenu','tText','tError','text','title','menu','downloadTerminologies','forEach','error','data','tButton','name','805894IuoeAN','META_TERMS','errors','tField','2437065TmsQgI','category','1933322GPRnzm','340988JnGHJv','keys'];a0_0x58d8=function(){return _0x29a782;};return a0_0x58d8();}import{client}from'@operato/graphql';import{i18next}from'@operato/i18n';export class TermsUtil{[a0_0x4cae2b(0xdb)]=null;static async[a0_0x4cae2b(0xd4)](_0x4f91bf){const _0x380eb6=a0_0x4cae2b;let _0x542501=(await TermsUtil['fetchTerminologies'](_0x4f91bf))[_0x380eb6(0xe3)];_0x542501&&_0x542501['length']>0x0&&(this[_0x380eb6(0xdb)]={},_0x542501[_0x380eb6(0xd5)](_0x597ec1=>{const _0x2397b0=_0x380eb6;let _0x38cde0=_0x597ec1[_0x2397b0(0xdf)]+'.'+_0x597ec1[_0x2397b0(0xd9)];this['META_TERMS'][_0x38cde0]=_0x597ec1[_0x2397b0(0xc9)];}));}static async['fetchTerminologies'](_0x3da811){const _0x2d2a2a=a0_0x4cae2b;let _0x2f0e10=[{'name':'locale','operator':'eq','value':_0x3da811}];const _0x1bf580=await client[_0x2d2a2a(0xea)]({'query':a0_0xcbd260`
|
|
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_0xc7fdb9=a0_0x2eb6;(function(_0xbb877a,_0x3dc882){const _0xd154a=a0_0x2
|
|
|
11
11
|
total
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
`,'variables':{'filters':
|
|
14
|
+
`,'variables':{'filters':_0x2f0e10,'sortings':[{'name':_0x2d2a2a(0xdf)},{'name':'name'}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0x1bf580[_0x2d2a2a(0xdc)])return{'records':_0x1bf580[_0x2d2a2a(0xd7)][_0x2d2a2a(0xe7)]['items']||[],'total':_0x1bf580[_0x2d2a2a(0xd7)][_0x2d2a2a(0xe7)][_0x2d2a2a(0xe5)]||0x0};}static[a0_0x4cae2b(0xec)](_0x4da15a,_0x2194aa){const _0x1821f3=a0_0x4cae2b;let _0x22171e=TermsUtil[_0x1821f3(0xcd)](_0x1821f3(0xed),_0x4da15a,_0x2194aa,null);return _0x22171e||TermsUtil[_0x1821f3(0xcd)](_0x1821f3(0xca),_0x4da15a,_0x2194aa,_0x4da15a);}static[a0_0x4cae2b(0xdd)](_0x32c765,_0x5d6967){const _0x1c1166=a0_0x4cae2b;let _0x44f333=TermsUtil[_0x1c1166(0xcd)](_0x1c1166(0xca),_0x32c765,_0x5d6967,null);return _0x44f333||TermsUtil[_0x1c1166(0xcd)](_0x1c1166(0xca),_0x32c765,_0x5d6967,_0x32c765);}static[a0_0x4cae2b(0xd8)](_0x1fdcd5){const _0x392baa=a0_0x4cae2b;return TermsUtil[_0x392baa(0xcd)](_0x392baa(0xe8),_0x1fdcd5,null,_0x1fdcd5);}static[a0_0x4cae2b(0xe4)](_0x3d3d95,_0x3a30fc){const _0x42c04c=a0_0x4cae2b;let _0x3ba468=TermsUtil[_0x42c04c(0xcd)](_0x42c04c(0xd2),_0x3d3d95,_0x3a30fc,null);return _0x3ba468||TermsUtil[_0x42c04c(0xcd)](_0x42c04c(0xd3),_0x3d3d95,_0x3a30fc,_0x3d3d95);}static[a0_0x4cae2b(0xce)](_0x58d7fd){const _0x2388fa=a0_0x4cae2b;let _0x426bc9=TermsUtil[_0x2388fa(0xcd)](_0x2388fa(0xd3),_0x58d7fd,null,_0x58d7fd);return _0x426bc9||TermsUtil[_0x2388fa(0xcd)]('title',_0x58d7fd,null,_0x58d7fd);}static[a0_0x4cae2b(0xcf)](_0x1c76ad,_0x2520ea){const _0x4784d0=a0_0x4cae2b;return TermsUtil[_0x4784d0(0xcd)](_0x4784d0(0xd1),_0x1c76ad,_0x2520ea,_0x1c76ad);}static[a0_0x4cae2b(0xd0)](_0x2fdfbb,_0x5c0564){const _0x5d426a=a0_0x4cae2b;return TermsUtil[_0x5d426a(0xcd)](_0x5d426a(0xd6),_0x2fdfbb,_0x5c0564,_0x2fdfbb);}static[a0_0x4cae2b(0xcd)](_0x7b0c9c,_0x3f3a23,_0x2f9f61,_0x30957f){let _0x83c6ab=_0x7b0c9c+'.'+_0x3f3a23;return TermsUtil['t'](_0x83c6ab,_0x2f9f61,_0x30957f);}static['t'](_0x86e714,_0x3d0906,_0x46137c){const _0x4cf237=a0_0x4cae2b;let _0x17cba2=this[_0x4cf237(0xdb)]?this[_0x4cf237(0xdb)][_0x86e714]:null;return _0x17cba2=_0x17cba2||i18next['t'](_0x86e714),_0x17cba2&&_0x86e714!=_0x17cba2?(_0x3d0906&&Object[_0x4cf237(0xe2)](_0x3d0906)['forEach'](function(_0x37e916){const _0x584f99=_0x4cf237;var _0x542723='\x5c{'+_0x37e916[_0x584f99(0xcc)](/\$/,'\x5c$')+'\x5c}',_0x5d6d07=new RegExp(_0x542723,'gi');_0x17cba2=_0x17cba2[_0x584f99(0xcc)](_0x5d6d07,_0x3d0906[_0x37e916]);}),_0x17cba2):_0x46137c;}}
|
package/client/utils/ui-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x11021c=a0_0x3c77;(function(_0x5e201c,_0x483ec2){const _0x3ea27f=a0_0x3c77,_0x4e3c15=_0x5e201c();while(!![]){try{const _0xfc2099=parseInt(_0x3ea27f(0x180))/0x1*(parseInt(_0x3ea27f(0x183))/0x2)+-parseInt(_0x3ea27f(0x155))/0x3+parseInt(_0x3ea27f(0x17f))/0x4*(-parseInt(_0x3ea27f(0x156))/0x5)+-parseInt(_0x3ea27f(0x188))/0x6+parseInt(_0x3ea27f(0x15b))/0x7+-parseInt(_0x3ea27f(0x190))/0x8*(-parseInt(_0x3ea27f(0x18f))/0x9)+-parseInt(_0x3ea27f(0x16f))/0xa;if(_0xfc2099===_0x483ec2)break;else _0x4e3c15['push'](_0x4e3c15['shift']());}catch(_0xd79afc){_0x4e3c15['push'](_0x4e3c15['shift']());}}}(a0_0x3588,0xbefd9));import{store,CustomAlert,navigate}from'@things-factory/shell';function a0_0x3c77(_0x1410bf,_0x520fa4){const _0x358833=a0_0x3588();return a0_0x3c77=function(_0x3c778b,_0x582e01){_0x3c778b=_0x3c778b-0x153;let _0x4e53c2=_0x358833[_0x3c778b];return _0x4e53c2;},a0_0x3c77(_0x1410bf,_0x520fa4);}function a0_0x3588(){const _0x121ef5=['getLeafInput','substring','ko-KR','17406hBxEBw','184PGGZIH','showAlertPopup','split','isMobileEnv','length','onclosed','ox-input-barcode','cookie','parent_field','page','459246RJHZYf','15lvxgWT','tButton','isNotEmpty','input','openDynamicPopup','10106264pPaame','replace','htmlToElement','getState','currentLocale','firstElementChild','tagname','pageNavigate','renderRoot','size','menu','pass=','stringify','setSearchFormEditorValue','setValueToEditor','content','confirmButton','barcode','popup_field','notify','226360SJEBoi','openPopupByElement','cancelButton','ox-select','indexOf','dispatchEvent','template','select-combo','createCustomElement','i18next','getApplicationModuleInfo','querySelector','value','\x27\x20is_popup=true></','\x20route_name=\x27','getParams','948152AKkHXt','17894JMVrwL','textarea','modules','72nzkEKI','name','type','ox-input-code','getType','2779734ZsODVg','currentRouting','forEach','createEditorHtml'];a0_0x3588=function(){return _0x121ef5;};return a0_0x3588();}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_0x11021c(0x193)](){return isMobileDevice();}static[a0_0x11021c(0x15f)](){const _0x3d073c=a0_0x11021c;let _0x111932=document[_0x3d073c(0x197)];return _0x111932=_0x111932[_0x3d073c(0x18d)](_0x111932[_0x3d073c(0x173)](_0x3d073c(0x178))),_0x111932['indexOf'](';')>-0x1&&(_0x111932=_0x111932[_0x3d073c(0x18d)](0x0,_0x111932[_0x3d073c(0x173)](';'))),_0x111932=_0x111932[_0x3d073c(0x15c)]('i18next=',''),'ko'==_0x111932?_0x3d073c(0x18e):_0x111932;}static[a0_0x11021c(0x179)](){const _0x29b83a=a0_0x11021c;let _0x476194=store[_0x29b83a(0x15e)]()['app'][_0x29b83a(0x182)];return _0x476194[_0x476194[_0x29b83a(0x194)]-0x1];}static[a0_0x11021c(0x189)](){const _0x1e7032=a0_0x11021c;return store['getState']()['route'][_0x1e7032(0x154)];}static['openPopupByElement'](_0x63f55e,_0x59ccea,_0x234969,_0x3bbcc7){return openPopup(_0x234969,{'backdrop':!0x0,'size':_0x59ccea,'title':_0x63f55e,'backdrop':_0x3bbcc7});}static async[a0_0x11021c(0x15a)](_0x37e69c,_0x4013d1,_0x3d3124,_0x29a22c){const _0x4dcbbe=a0_0x11021c;let _0x586125=ValueUtil['isNotEmpty'](_0x4013d1[_0x4dcbbe(0x153)])?ValueUtil[_0x4dcbbe(0x17e)](_0x3d3124,..._0x4013d1[_0x4dcbbe(0x153)][_0x4dcbbe(0x192)]('.')):void 0x0,_0x1b4902='<'+_0x4013d1[_0x4dcbbe(0x161)]+'\x20route_name=\x27'+_0x4013d1[_0x4dcbbe(0x165)]+'\x27\x20\x20parent_id=\x27'+_0x586125+_0x4dcbbe(0x17c)+_0x4013d1['tagname']+'>',_0x1c72ab=UiUtil[_0x4dcbbe(0x15d)](_0x1b4902);_0x1c72ab['config']=_0x4013d1,ValueUtil[_0x4dcbbe(0x158)](_0x4013d1[_0x4dcbbe(0x16d)])&&(_0x1c72ab[_0x4013d1['popup_field']]=_0x3d3124);let _0x1f3255=UiUtil[_0x4dcbbe(0x170)](_0x37e69c,_0x4013d1[_0x4dcbbe(0x164)],_0x1c72ab,!0x0);_0x29a22c&&(_0x1f3255[_0x4dcbbe(0x195)]=_0x29a22c);}static[a0_0x11021c(0x177)](_0x147dfa,_0x3eb662){const _0x3b5183=a0_0x11021c;let _0x95ea8c='<'+_0x147dfa+_0x3b5183(0x17d)+_0x3eb662+'\x27></'+_0x147dfa+'>';return UiUtil[_0x3b5183(0x15d)](_0x95ea8c);}static[a0_0x11021c(0x15d)](_0x113427){const _0x51f276=a0_0x11021c;var _0x57197d=document['createElement'](_0x51f276(0x175));_0x57197d['innerHTML']=_0x113427;var _0x39070d=_0x57197d[_0x51f276(0x16a)]['childNodes'][0x0];return _0x57197d['content']['removeChild'](_0x39070d),_0x39070d;}static[a0_0x11021c(0x162)](_0x187330,_0x1b5818){const _0x4c8c2c=a0_0x11021c;let _0x46abed=_0x1b5818?'?':'';_0x1b5818&&(_0x46abed+=_0x4c8c2c(0x166)+JSON[_0x4c8c2c(0x167)](_0x1b5818)),navigate(''+_0x187330+_0x46abed);}static['getStore'](_0xc0399,_0x29ec94,_0x6da26d){const _0xfdb438=a0_0x11021c;let _0x330f58=_0x330f58[_0xfdb438(0x15e)]();return _0xc0399&&_0x29ec94&&_0x6da26d?_0x330f58[_0xc0399][_0x29ec94][_0x6da26d]:_0xc0399&&_0x29ec94?_0x330f58[_0xc0399][_0x29ec94]:_0xc0399?_0x330f58[_0xc0399]:_0x330f58;}static['fireCustomEvent'](_0x2006b8,_0x2518b4){const _0x7ceea3=a0_0x11021c;document[_0x7ceea3(0x174)](new CustomEvent(_0x2006b8,{'detail':_0x2518b4}));}static['showToast'](_0x3d2145,_0x5ceb4e){const _0x50a610=a0_0x11021c;document[_0x50a610(0x174)](new CustomEvent(_0x50a610(0x16e),{'detail':{'type':_0x3d2145,'message':_0x5ceb4e}}));}static async[a0_0x11021c(0x191)](_0xd6aa4a,_0x3904fe,_0x1b5d21,_0x5b2697,_0x3f9edf){const _0xdd07ac=a0_0x11021c;let _0x34bd80={'title':TermsUtil['t'](_0xd6aa4a)||_0xd6aa4a,'text':TermsUtil['t'](_0x3904fe)||_0x3904fe};return _0x1b5d21&&(_0x34bd80[_0xdd07ac(0x185)]=_0x1b5d21),_0x5b2697&&(_0x34bd80[_0xdd07ac(0x16b)]=TermsUtil[_0xdd07ac(0x157)](_0x5b2697)),_0x3f9edf&&(_0x34bd80[_0xdd07ac(0x171)]=TermsUtil[_0xdd07ac(0x157)](_0x3f9edf)),await CustomAlert(_0x34bd80);}static['getFilterFormData'](_0x3a2bf6){const _0x488562=a0_0x11021c;if(ValueUtil[_0x488562(0x158)](_0x3a2bf6)){let _0x530646=_0x3a2bf6['filters']();ValueUtil[_0x488562(0x158)](_0x530646)&&_0x530646[_0x488562(0x18a)](_0x5a6538=>{const _0xa5d6b3=_0x488562;ValueUtil['isNotEmpty'](_0x5a6538[_0xa5d6b3(0x17b)])&&(item[_0x5a6538[_0xa5d6b3(0x184)]]=_0x5a6538[_0xa5d6b3(0x17b)]?_0x5a6538[_0xa5d6b3(0x17b)]:null);});}return{};}static[a0_0x11021c(0x168)](_0x2661af,_0x21bda3,_0x420481){const _0x578983=a0_0x11021c;if(ValueUtil[_0x578983(0x158)](_0x2661af)){let _0x214197=_0x2661af[_0x578983(0x163)]?.[_0x578983(0x17a)]('[name=\x27'+_0x21bda3+'\x27]');ValueUtil['isNotEmpty'](_0x214197)&&(_0x214197[_0x578983(0x17b)]=_0x420481);}}static[a0_0x11021c(0x18b)](_0x1786b2,_0x46d417,_0xab5837,_0x5e1926){return getEditor(_0x1786b2)('',_0x46d417,_0xab5837,_0x5e1926,{});}static[a0_0x11021c(0x169)](_0xecc8c7,_0x7791af){const _0x434bc3=a0_0x11021c;UiUtil['getLeafInput'](_0xecc8c7)[_0x434bc3(0x17b)]=_0x7791af;}static[a0_0x11021c(0x18c)](_0x418cae){const _0x23a546=a0_0x11021c;let _0x1c834a=_0x418cae[_0x23a546(0x187)]();return'code-editor'==_0x1c834a?_0x418cae[_0x23a546(0x163)][_0x23a546(0x17a)](_0x23a546(0x186)):_0x23a546(0x181)==_0x1c834a?_0x418cae[_0x23a546(0x163)][_0x23a546(0x17a)](_0x23a546(0x181)):_0x23a546(0x176)==_0x1c834a?_0x418cae[_0x23a546(0x163)][_0x23a546(0x17a)](_0x23a546(0x172))[_0x23a546(0x160)]:_0x23a546(0x16c)==_0x1c834a?_0x418cae[_0x23a546(0x163)][_0x23a546(0x17a)](_0x23a546(0x196))[_0x23a546(0x163)]['querySelector'](_0x23a546(0x159)):_0x418cae[_0x23a546(0x163)]['firstElementChild']['editor'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x14c9(){const _0x23de84=['toBoolean','5ZLrbte','forEach','isNotEmpty','492960cgGzQh','936812cZGaNz','keys','slice','map','length','276250OoPcyF','string','object','174JMDqzi','3513EclxHU','isEmpty','number','9bKwRZk','boolean','setParams','populateObject','30UrSCmN','getParams','2998424RSBHfZ','TRUE','1729330YodUKr','isArray','populateArray','119623xWeyWT'];a0_0x14c9=function(){return _0x23de84;};return a0_0x14c9();}const a0_0x2f9054=a0_0x2295;(function(_0x3a61cd,_0x5a8b3e){const _0x24cb53=a0_0x2295,_0x22edce=_0x3a61cd();while(!![]){try{const _0x4f41bd=-parseInt(_0x24cb53(0x18d))/0x1+-parseInt(_0x24cb53(0x173))/0x2*(-parseInt(_0x24cb53(0x174))/0x3)+parseInt(_0x24cb53(0x188))/0x4*(parseInt(_0x24cb53(0x184))/0x5)+-parseInt(_0x24cb53(0x17b))/0x6*(-parseInt(_0x24cb53(0x182))/0x7)+-parseInt(_0x24cb53(0x187))/0x8+parseInt(_0x24cb53(0x177))/0x9*(-parseInt(_0x24cb53(0x17f))/0xa)+parseInt(_0x24cb53(0x17d))/0xb;if(_0x4f41bd===_0x5a8b3e)break;else _0x22edce['push'](_0x22edce['shift']());}catch(_0x425bf3){_0x22edce['push'](_0x22edce['shift']());}}}(a0_0x14c9,0x2cc0a));import a0_0x180713 from'lodash-es/isEqual';function a0_0x2295(_0x3bd2a3,_0x543dd3){const _0x14c97c=a0_0x14c9();return a0_0x2295=function(_0x2295e9,_0x199575){_0x2295e9=_0x2295e9-0x172;let _0xb6755d=_0x14c97c[_0x2295e9];return _0xb6755d;},a0_0x2295(_0x3bd2a3,_0x543dd3);}import{TermsUtil}from'./terms-util';export class ValueUtil{static[a0_0x2f9054(0x175)](_0x54409c){const _0x5c95e7=a0_0x2f9054;if(void 0x0===_0x54409c)return!0x0;if(null===_0x54409c)return!0x0;if(_0x5c95e7(0x178)==typeof _0x54409c)return!0x1;if(_0x5c95e7(0x18e)==typeof _0x54409c||_0x5c95e7(0x176)==typeof _0x54409c){if(''==_0x54409c)return!0x0;}else{if(Array[_0x5c95e7(0x180)](_0x54409c)){if(0x0==_0x54409c[_0x5c95e7(0x18c)])return!0x0;}else{if(_0x5c95e7(0x172)==typeof _0x54409c&&0x0==Object[_0x5c95e7(0x189)](_0x54409c)[_0x5c95e7(0x18c)])return!0x0;}}return!0x1;}static['isNotEmpty'](_0x24c766){const _0x58b965=a0_0x2f9054;return!ValueUtil[_0x58b965(0x175)](_0x24c766);}static['isEquals'](_0x861db,_0x4a25b8){return a0_0x180713(_0x861db,_0x4a25b8);}static['toInteger'](_0x990a6d,_0x5b94e7){return ValueUtil['isEmpty'](_0x990a6d)?_0x5b94e7||0x0:parseInt(_0x990a6d);}static[a0_0x2f9054(0x183)](_0xab2dbc){const _0x1f968e=a0_0x2f9054;return!ValueUtil['isEmpty'](_0xab2dbc)&&('true'==_0xab2dbc||'t'==_0xab2dbc||_0x1f968e(0x17e)==_0xab2dbc||'T'==_0xab2dbc||'on'==_0xab2dbc||'ON'==_0xab2dbc);}static['compareObjectValues'](_0x573e7a,_0x2ce96c,_0x2d0218){const _0x5c69e8=a0_0x2f9054;let _0x40a90d=!0x0;return _0x2d0218[_0x5c69e8(0x185)](_0x221e1f=>{const _0x5e6c98=_0x5c69e8;let _0x320588=_0x573e7a[_0x221e1f];if('*'===_0x320588)return;let _0x31bd7a=_0x2ce96c[_0x221e1f]||'';ValueUtil[_0x5e6c98(0x175)](_0x320588)?ValueUtil[_0x5e6c98(0x186)](_0x31bd7a)&&(_0x40a90d=!0x1):_0x320588!=_0x31bd7a&&(_0x40a90d=!0x1);}),_0x40a90d;}static[a0_0x2f9054(0x179)](_0x5b5c24,_0x80c458,_0x18817f,_0x1c1769){const _0x465353=a0_0x2f9054;let _0x2757e1=ValueUtil[_0x465353(0x17c)](_0x80c458,_0x18817f);return ValueUtil[_0x465353(0x186)](_0x2757e1)&&(_0x5b5c24[_0x18817f]=!0x0===_0x1c1769?TermsUtil['t'](_0x2757e1):_0x2757e1),_0x5b5c24;}static[a0_0x2f9054(0x17c)](_0x4a0fce,..._0x3230fd){const _0x419a74=a0_0x2f9054;if(arguments['length']<=0x1)return;let _0x14f813=_0x3230fd[0x0];if(ValueUtil[_0x419a74(0x175)](_0x4a0fce[_0x14f813]))return;let _0x4162e3=_0x4a0fce[_0x14f813];return _0x3230fd[_0x419a74(0x18c)]>0x1?ValueUtil[_0x419a74(0x17c)](_0x4162e3,..._0x3230fd[_0x419a74(0x18a)](0x1)):_0x4162e3;}static[a0_0x2f9054(0x181)](_0x4b095f,_0x370d2d,..._0x3bab24){const _0x5583f9=a0_0x2f9054;return _0x370d2d=_0x370d2d||[],_0x3bab24=_0x3bab24||Object[_0x5583f9(0x189)](_0x4b095f),ValueUtil[_0x5583f9(0x186)](_0x3bab24)&&(_0x370d2d=_0x4b095f[_0x5583f9(0x18b)]((_0x3c48fb,_0x5087b1)=>{const _0x237c27=_0x5583f9;let _0x3903e9=_0x370d2d[_0x237c27(0x18c)]>_0x5087b1?_0x370d2d[_0x5087b1]:{};return ValueUtil[_0x237c27(0x17a)](_0x3c48fb,_0x3903e9,_0x3bab24);})),_0x370d2d;}static['populateObject'](_0xb2d716,_0x58038a,..._0x22295a){const _0x59b742=a0_0x2f9054;return _0x58038a=_0x58038a||{},_0x22295a=_0x22295a||Object[_0x59b742(0x189)](_0xb2d716),ValueUtil[_0x59b742(0x186)](_0x22295a)&&_0x22295a[_0x59b742(0x185)](_0x576e29=>{_0x58038a[_0x576e29]=_0xb2d716[_0x576e29];}),_0x58038a;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x4a8d(){const _0x5b126c=['1814742JVmSAN','174675TuTdbw','191106xPIbzA','97336PLgOXE','440112FeeaJi','61957DoHKZa','1330824bPHWix','5FnMPah','78uYLOpt'];a0_0x4a8d=function(){return _0x5b126c;};return a0_0x4a8d();}(function(_0x538e76,_0x5f256b){const _0x15246a=a0_0x2b4c,_0x6295b=_0x538e76();while(!![]){try{const _0x450c55=-parseInt(_0x15246a(0xb4))/0x1+-parseInt(_0x15246a(0xb5))/0x2+parseInt(_0x15246a(0xb7))/0x3+-parseInt(_0x15246a(0xb6))/0x4*(parseInt(_0x15246a(0xba))/0x5)+-parseInt(_0x15246a(0xbb))/0x6*(parseInt(_0x15246a(0xb8))/0x7)+parseInt(_0x15246a(0xb9))/0x8+parseInt(_0x15246a(0xbc))/0x9;if(_0x450c55===_0x5f256b)break;else _0x6295b['push'](_0x6295b['shift']());}catch(_0x19f51e){_0x6295b['push'](_0x6295b['shift']());}}}(a0_0x4a8d,0x19a6e));import{css}from'lit';function a0_0x2b4c(_0x17d222,_0x50519f){const _0x4a8d50=a0_0x4a8d();return a0_0x2b4c=function(_0x2b4c4f,_0xd32d64){_0x2b4c4f=_0x2b4c4f-0xb4;let _0x7ad9e5=_0x4a8d50[_0x2b4c4f];return _0x7ad9e5;},a0_0x2b4c(_0x17d222,_0x50519f);}export const DynamicMenuLandscapeStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
overflow-x: auto;
|
|
4
4
|
background-color: var(--secondary-text-color);
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x1912d7=a0_0x5e12;(function(_0x30d115,_0x37d3db){const _0x5065c0=a0_0x5e12,_0x177d9c=_0x30d115();while(!![]){try{const _0x309031=parseInt(_0x5065c0(0x111))/0x1*(parseInt(_0x5065c0(0xfc))/0x2)+parseInt(_0x5065c0(0xe8))/0x3*(parseInt(_0x5065c0(0xf8))/0x4)+-parseInt(_0x5065c0(0x100))/0x5+-parseInt(_0x5065c0(0x109))/0x6*(-parseInt(_0x5065c0(0xfb))/0x7)+-parseInt(_0x5065c0(0x107))/0x8+parseInt(_0x5065c0(0x114))/0x9+parseInt(_0x5065c0(0x112))/0xa;if(_0x309031===_0x37d3db)break;else _0x177d9c['push'](_0x177d9c['shift']());}catch(_0x570fff){_0x177d9c['push'](_0x177d9c['shift']());}}}(a0_0x5198,0xd0504));import'@material/mwc-icon';function a0_0x5e12(_0x5f0260,_0x6b2ad5){const _0x519880=a0_0x5198();return a0_0x5e12=function(_0x5e120d,_0x4f9d33){_0x5e120d=_0x5e120d-0xe8;let _0x2ddb9f=_0x519880[_0x5e120d];return _0x2ddb9f;},a0_0x5e12(_0x5f0260,_0x6b2ad5);}import{html,LitElement}from'lit';import{connect}from'pwa-helpers';import{navigate,store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';function a0_0x5198(){const _0x18a787=['4598720EyPtnx','mousewheel','preventDefault','querySelector','href','dispatchEvent','settled','11358824EtlJfL','properties','6pugFZl','icon','currentTarget','click','stopPropagation','menus','setAttribute','onWheelEvent','86DvpSQu','10219570xCfuGP','define','3958515HCfBdN','1296030jMoanh','map','render','description','#force','type','path','renderRoot','min','styles','target','max','bind','group','name','detail','4BFZNWr','removeAttribute','addEventListener','8382367weYYGe','2362hWcRlm','active-toplevel','activeTopLevel','submenu'];a0_0x5198=function(){return _0x18a787;};return a0_0x5198();}import{DynamicMenuLandscapeStyles}from'./dynamic-menu-landscape-styles';export class DynamicMenuLandscape extends connect(store)(LitElement){static get[a0_0x1912d7(0xf1)](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get[a0_0x1912d7(0x108)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x1912d7(0xea)](){const _0x256786=a0_0x1912d7,{menus:_0x21e4f4=[],activeTopLevel:_0x5df9f0,activeMenu:_0x234f7d}=this;return html`
|
|
2
2
|
<div id="wrap">
|
|
3
3
|
<ul>
|
|
4
|
-
${
|
|
5
|
-
<li ?active=${
|
|
6
|
-
<a href=${
|
|
7
|
-
${
|
|
4
|
+
${_0x21e4f4[_0x256786(0xe9)](_0x29835b=>_0x256786(0xf5)==_0x29835b[_0x256786(0xed)]?html``:html`
|
|
5
|
+
<li ?active=${_0x29835b===_0x5df9f0}>
|
|
6
|
+
<a href=${_0x29835b[_0x256786(0xee)]||'#'}>
|
|
7
|
+
${_0x29835b[_0x256786(0x10a)]?html`<mwc-icon>${_0x29835b[_0x256786(0x10a)]}</mwc-icon>`:html``} ${_0x29835b[_0x256786(0xf6)]}
|
|
8
8
|
</a>
|
|
9
9
|
|
|
10
10
|
<ul submenus>
|
|
11
|
-
${
|
|
12
|
-
<li ?active=${
|
|
13
|
-
<a href=${
|
|
11
|
+
${_0x29835b[_0x256786(0x10e)]?.[_0x256786(0xe9)](_0x3cf90e=>html`
|
|
12
|
+
<li ?active=${_0x3cf90e===_0x234f7d}>
|
|
13
|
+
<a href=${_0x3cf90e[_0x256786(0xee)]||'#'}> ${_0x3cf90e[_0x256786(0xf6)]} </a>
|
|
14
14
|
</li>
|
|
15
15
|
`)}
|
|
16
16
|
</ul>
|
|
17
17
|
|
|
18
18
|
<div description>
|
|
19
|
-
${
|
|
19
|
+
${_0x29835b[_0x256786(0x10a)]?html`<mwc-icon>${_0x29835b['icon']}</mwc-icon>`:html``} ${_0x29835b[_0x256786(0xeb)]||''}
|
|
20
20
|
</div>
|
|
21
21
|
</li>
|
|
22
22
|
`)}
|
|
23
23
|
</ul>
|
|
24
24
|
</div>
|
|
25
|
-
`;}[
|
|
25
|
+
`;}['firstUpdated'](){const _0x304536=a0_0x1912d7;this[_0x304536(0xef)][_0x304536(0x103)]('#wrap')[_0x304536(0xfa)](_0x304536(0x101),this[_0x304536(0x110)][_0x304536(0xf4)](this),!0x1),this[_0x304536(0xef)][_0x304536(0xfa)](_0x304536(0x10c),_0x5ec5e8=>{const _0x5f1d4f=_0x304536;if(_0x5ec5e8[_0x5f1d4f(0xf2)][_0x5f1d4f(0xff)]){_0x5ec5e8[_0x5f1d4f(0x10d)](),_0x5ec5e8[_0x5f1d4f(0x102)]();let _0x2a76f1=_0x5ec5e8['target'][_0x5f1d4f(0xff)];return void this[_0x5f1d4f(0x105)](new CustomEvent(_0x5f1d4f(0xfd),{'bubbles':!0x0,'detail':this[_0x5f1d4f(0xfe)]===_0x2a76f1?void 0x0:_0x2a76f1}));}let _0x1e9853=_0x5ec5e8[_0x5f1d4f(0xf2)]['href'];_0x1e9853&&location[_0x5f1d4f(0x104)]===_0x1e9853&&navigate(_0x1e9853+_0x5f1d4f(0xec),!0x0);}),this[_0x304536(0xef)]['addEventListener']('transitionstart',_0x53caa4=>{const _0x3d3807=_0x304536;_0x53caa4[_0x3d3807(0xf2)][_0x3d3807(0xf9)]('settled');}),this[_0x304536(0xef)]['addEventListener']('transitionend',_0x27faca=>{const _0x32d9f9=_0x304536;_0x27faca['target'][_0x32d9f9(0x10f)](_0x32d9f9(0x106),'');});}[a0_0x1912d7(0x110)](_0x378980){const _0x50872c=a0_0x1912d7,_0x37b20b=_0x378980[_0x50872c(0x10b)];var _0x1476e2=Math[_0x50872c(0xf3)](-0x1,Math[_0x50872c(0xf0)](0x1,_0x378980['wheelDelta']||-_0x378980[_0x50872c(0xf7)]));_0x37b20b['scrollLeft']-=0xa*_0x1476e2,_0x378980[_0x50872c(0x102)]();}}customElements[a0_0x1912d7(0x113)]('dynamic-menu-landscape',DynamicMenuLandscape);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
var a0_0x46c673=a0_0x4716;(function(_0x21b13b,_0x391e80){var _0x40b0bf=a0_0x4716,_0x18d26e=_0x21b13b();while(!![]){try{var _0x3b3635=-parseInt(_0x40b0bf(0xa9))/0x1*(parseInt(_0x40b0bf(0xa3))/0x2)+parseInt(_0x40b0bf(0x91))/0x3+parseInt(_0x40b0bf(0x9e))/0x4*(-parseInt(_0x40b0bf(0xb4))/0x5)+-parseInt(_0x40b0bf(0xb5))/0x6*(-parseInt(_0x40b0bf(0x9f))/0x7)+-parseInt(_0x40b0bf(0x99))/0x8+parseInt(_0x40b0bf(0xab))/0x9*(parseInt(_0x40b0bf(0x9b))/0xa)+parseInt(_0x40b0bf(0xaf))/0xb;if(_0x3b3635===_0x391e80)break;else _0x18d26e['push'](_0x18d26e['shift']());}catch(_0x4e0eed){_0x18d26e['push'](_0x18d26e['shift']());}}}(a0_0x5e34,0xea7e1));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';function a0_0x4716(_0xf87071,_0x5706b5){var _0x5e34e0=a0_0x5e34();return a0_0x4716=function(_0x471610,_0x221f7c){_0x471610=_0x471610-0x91;var _0x4d7556=_0x5e34e0[_0x471610];return _0x4d7556;},a0_0x4716(_0xf87071,_0x5706b5);}import{ScrollbarStyles}from'@operato/styles';function isActiveMenu(_0x5d7712,_0x7b1f5f){var _0x2b811f=a0_0x4716;return _0x5d7712['path']?.[_0x2b811f(0xac)]('?')[0x0]===_0x7b1f5f||_0x5d7712[_0x2b811f(0xb8)]&&_0x2b811f(0xba)==typeof _0x5d7712[_0x2b811f(0xb8)]&&_0x5d7712['active'][_0x2b811f(0xb2)](_0x5d7712,{'path':_0x7b1f5f});}function a0_0x5e34(){var _0x46cf73=['stopPropagation','14570369Kzsduj','_findActivePage','portrait','call','landscape','1662865yEpHNw','6SeUhMN','page','preventDefault','active','properties','function','2531571MRqhPc','_activeTopLevel','setAttribute','has','resourceId','styles','_activeMenu','renderRoot','13376136TQWbqA','metaUI','4630cQhdzz','stateChanged','firstUpdated','20VyQiAK','12917051IHLrgs','orientation','replaceChild','slotTemplate','10gkSNqy','menus','addEventListener','updated','define','render','218047wNGIzl','_path','26667bjZIVW','split','route'];a0_0x5e34=function(){return _0x46cf73;};return a0_0x5e34();}export class DynamicMenuPart extends connect(store)(LitElement){static get[a0_0x46c673(0xb9)](){return{'page':String,'resourceId':String,'menus':Array,'orientation':String,'_activeTopLevel':Object,'_activeMenu':Object,'_path':String};}static get[a0_0x46c673(0x96)](){return[ScrollbarStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -27,18 +27,18 @@ function a0_0x3d84(){var _0x291062=['function','_activeTopLevel','_activeMenu','
|
|
|
27
27
|
dynamic-menu-landscape {
|
|
28
28
|
flex: 1;
|
|
29
29
|
}
|
|
30
|
-
`];}[
|
|
30
|
+
`];}[a0_0x46c673(0xa8)](){var _0x10d881=a0_0x46c673;return html`
|
|
31
31
|
<slot name="head"></slot>
|
|
32
|
-
${
|
|
33
|
-
.menus=${this[
|
|
34
|
-
.activeTopLevel=${this[
|
|
35
|
-
.activeMenu=${this[
|
|
36
|
-
.path=${this[
|
|
32
|
+
${_0x10d881(0xb3)!==this[_0x10d881(0xa0)]?html`<dynamic-menu-portrait
|
|
33
|
+
.menus=${this['menus']}
|
|
34
|
+
.activeTopLevel=${this['_activeTopLevel']}
|
|
35
|
+
.activeMenu=${this[_0x10d881(0x97)]}
|
|
36
|
+
.path=${this[_0x10d881(0xaa)]}
|
|
37
37
|
></dynamic-menu-portrait>`:html`<dynamic-menu-landscape
|
|
38
|
-
.menus=${this[
|
|
39
|
-
.activeTopLevel=${this[
|
|
40
|
-
.activeMenu=${this[
|
|
41
|
-
.path=${this[
|
|
38
|
+
.menus=${this[_0x10d881(0xa4)]}
|
|
39
|
+
.activeTopLevel=${this[_0x10d881(0x92)]}
|
|
40
|
+
.activeMenu=${this[_0x10d881(0x97)]}
|
|
41
|
+
.path=${this[_0x10d881(0xaa)]}
|
|
42
42
|
></dynamic-menu-landscape>`}
|
|
43
43
|
<slot name="tail"></slot>
|
|
44
|
-
`;}[
|
|
44
|
+
`;}[a0_0x46c673(0x9d)](){var _0x4a4a2e=a0_0x46c673;this[_0x4a4a2e(0x98)][_0x4a4a2e(0xa5)]('active-toplevel',_0x293b56=>{var _0x3d9b1e=_0x4a4a2e;_0x293b56[_0x3d9b1e(0xae)](),_0x293b56[_0x3d9b1e(0xb7)](),this['_activeTopLevel']=_0x293b56['detail'];});}[a0_0x46c673(0xa6)](_0x206b85){var _0x38a06d=a0_0x46c673;(_0x206b85[_0x38a06d(0x94)](_0x38a06d(0xa4))||_0x206b85['has'](_0x38a06d(0xb6))||_0x206b85[_0x38a06d(0x94)](_0x38a06d(0x95)))&&this[_0x38a06d(0xb0)](),_0x206b85[_0x38a06d(0x94)](_0x38a06d(0xa0))&&(_0x38a06d(0xb1)==this[_0x38a06d(0xa0)]?this['removeAttribute'](_0x38a06d(0xb3)):this[_0x38a06d(0x93)]('landscape',!0x0)),_0x206b85[_0x38a06d(0x94)](_0x38a06d(0xa2))&&this[_0x38a06d(0xa1)](this[_0x38a06d(0xa2)]);}[a0_0x46c673(0x9c)](_0xc5f310){var _0x20a8e0=a0_0x46c673;this[_0x20a8e0(0xb6)]=_0xc5f310[_0x20a8e0(0xad)][_0x20a8e0(0xb6)],this['resourceId']=_0xc5f310[_0x20a8e0(0xad)][_0x20a8e0(0x95)],this['menus']=_0xc5f310[_0x20a8e0(0x9a)][_0x20a8e0(0xa4)]||[],this[_0x20a8e0(0xa2)]=_0xc5f310[_0x20a8e0(0x9a)]['slotTemplate'];}[a0_0x46c673(0xb0)](){var _0x214c70=a0_0x46c673,_0x5810d8,_0x4069c4=this[_0x214c70(0x95)]?this[_0x214c70(0xb6)]+'/'+this[_0x214c70(0x95)]:this[_0x214c70(0xb6)],_0x1b2584=this[_0x214c70(0xa4)]||[];this['_activeTopLevel']=_0x1b2584['find'](_0x1a8493=>isActiveMenu(_0x1a8493,_0x4069c4)?(_0x5810d8=_0x1a8493,!0x0):_0x1a8493['menus']?!!(_0x5810d8=_0x1a8493[_0x214c70(0xa4)]['find'](_0x12b039=>isActiveMenu(_0x12b039,_0x4069c4))):void 0x0),this[_0x214c70(0xaa)]=_0x4069c4,this['_activeMenu']=_0x5810d8||this['_activeTopLevel'];}}customElements[a0_0x46c673(0xa7)]('dynamic-menu-part',DynamicMenuPart);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x1df3(_0x5dbc59,_0x2b84b3){const _0x5f8251=a0_0x5f82();return a0_0x1df3=function(_0x1df3ca,_0x43f772){_0x1df3ca=_0x1df3ca-0x18c;let _0x37aa9b=_0x5f8251[_0x1df3ca];return _0x37aa9b;},a0_0x1df3(_0x5dbc59,_0x2b84b3);}(function(_0x55d541,_0x30ff7b){const _0x23255d=a0_0x1df3,_0x435baa=_0x55d541();while(!![]){try{const _0x1af168=parseInt(_0x23255d(0x18c))/0x1+parseInt(_0x23255d(0x191))/0x2+parseInt(_0x23255d(0x18d))/0x3*(parseInt(_0x23255d(0x194))/0x4)+-parseInt(_0x23255d(0x196))/0x5*(-parseInt(_0x23255d(0x195))/0x6)+parseInt(_0x23255d(0x18e))/0x7*(-parseInt(_0x23255d(0x193))/0x8)+-parseInt(_0x23255d(0x18f))/0x9*(parseInt(_0x23255d(0x192))/0xa)+-parseInt(_0x23255d(0x190))/0xb;if(_0x1af168===_0x30ff7b)break;else _0x435baa['push'](_0x435baa['shift']());}catch(_0x385c61){_0x435baa['push'](_0x435baa['shift']());}}}(a0_0x5f82,0x9a74d));function a0_0x5f82(){const _0x33e5c6=['1726362xzuvsV','1892474gjesJB','40PyuPRi','1006216kbMGYk','2099348BZspHs','30Syrumv','809435jjpHuC','28109FwXHlg','3fZycFJ','21FjCiby','2568807WAVwhi'];a0_0x5f82=function(){return _0x33e5c6;};return a0_0x5f82();}import{css}from'lit';export const DynamicMenuPortraitStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|