@things-factory/meta-ui 6.1.1 → 6.1.5
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 +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-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-meta-code-selector.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
- package/client/component/selector/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 +4 -4
- 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 +5 -5
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-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/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +103 -103
- 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 +5 -5
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/entity-event-subscriber/entity-event-subscriber.js +1 -0
- package/server/service/entity-event-subscriber/index.js +6 -0
- 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/index.js +4 -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_0x390285=a0_0x3a31;(function(_0x599524,_0x44750a){const _0x53122b=a0_0x3a31,_0x585798=_0x599524();while(!![]){try{const _0x569d24=parseInt(_0x53122b(0x15c))/0x1*(-parseInt(_0x53122b(0x161))/0x2)+-parseInt(_0x53122b(0x11b))/0x3*(-parseInt(_0x53122b(0x13a))/0x4)+-parseInt(_0x53122b(0xe4))/0x5*(parseInt(_0x53122b(0x120))/0x6)+-parseInt(_0x53122b(0x146))/0x7+parseInt(_0x53122b(0x11f))/0x8+-parseInt(_0x53122b(0x12e))/0x9*(-parseInt(_0x53122b(0x103))/0xa)+parseInt(_0x53122b(0xef))/0xb;if(_0x569d24===_0x44750a)break;else _0x585798['push'](_0x585798['shift']());}catch(_0x125f1b){_0x585798['push'](_0x585798['shift']());}}}(a0_0x7d05,0xe91fc));import{store,gqlContext}from'@things-factory/shell';import{getCodeByName}from'@things-factory/code-base';function a0_0x3a31(_0x4d8a27,_0x471ce0){const _0x7d054e=a0_0x7d05();return a0_0x3a31=function(_0x3a315f,_0x56380b){_0x3a315f=_0x3a315f-0xda;let _0x1f50ce=_0x7d054e[_0x3a315f];return _0x1f50ce;},a0_0x3a31(_0x4d8a27,_0x471ce0);}function a0_0x7d05(){const _0x522971=['todo-list','errors','codeItems','info','undefined','total','deleteListByGristSelected','success\x20to\x20delete','showGraphqlErrorResponse','id,template','data','children','extensions','button.delete','iconPath','type','numberOfDrafts','deleteListByIds','HIDDEN-PAGE','test','details','hiddenFlag','getWorkCodeByName','3882tbwTns','success\x20to\x20process','xlsx','approval-pending-list','12991544qlFcLC','12gjrHgT','title','group','length','gutter','display','searchByPagination','__origin__','gridPersonalizeTemplates','__dirty__','confirm','text.nothing_changed','rank','unshift','3197709NkiIob','text.nothing_selected','exportableData','imex','callScenario','menuType','object','myDynamicMenus','record','_config','\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','dirtyRecords','3812XFrTqx','tMenu','key','buildArgs','parse','noteq','\x0a\x20\x20\x20\x20','checkClientError','records','cancel','parent','items','12450893GdlQup','name','getCodeSelectorData','menus','push','searchMenuGridPersnalTemplate','text.are_you_sure','findIndex','path','category','columns','message','__seq__','updater','forEach','numberOfApprovalPendings','createdAt','isArray','code','question','draft-list','isNotEmpty','1XMJxAy','searchMyDynamicMenus','result','GROUP','resourceUrl','2690436IwVnSp','success\x20to\x20save','reduce','error','runScenario','showToast','query','dispatch','\x0a\x20\x20\x20\x20\x20\x20','button.','patchesForUpdateMultiple','3984270bIxDyA','text.there_is_nothing_to_delete','badge','routing','fetch','MENU','map','arrangeMenuRoutes','workCodeByName','sort','hidden','11427581VjBHJc','networkError','tText','findOne','updateMultiple','description','active','splice','showAlertPopup','isEmpty','value','find','SCREEN','selected','filter','getSelectedIdList','menu.id','HOME','updateMultipleData','showGraphqlException','50JbMHPV'];a0_0x7d05=function(){return _0x522971;};return a0_0x7d05();}import{EXPORT}from'@things-factory/export-base';import{gqlBuilder}from'@things-factory/utils';import{client}from'@operato/graphql';import{TermsUtil}from'./terms-util';import{UiUtil}from'./ui-util';import a0_0x1505f9 from'graphql-tag';import{ValueUtil}from'./value-util';import{asyncReplace}from'lit/directives/async-replace.js';import a0_0x5ed8a2 from'i18next';import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';export class ServiceUtil{static async[a0_0x390285(0x106)](_0x4484c8){const _0x2ea52c=a0_0x390285;if(Array[_0x2ea52c(0x157)](_0x4484c8))return _0x4484c8['map'](_0x4d9699=>_0x2ea52c(0x134)==typeof _0x4d9699?{'name':_0x4d9699[_0x2ea52c(0xf9)],'description':_0x4d9699[_0x2ea52c(0x125)]}:{'name':_0x4d9699,'description':_0x4d9699});let _0x17f602=await ServiceUtil[_0x2ea52c(0x11a)](_0x4484c8);return _0x17f602&&_0x17f602['length']>0x0?_0x17f602:await getCodeByName(_0x4484c8);}static async[a0_0x390285(0x11a)](_0x5377df){const _0x4317b4=a0_0x390285,_0x23367c=await client[_0x4317b4(0xdf)]({'query':a0_0x1505f9`
|
|
2
2
|
query workCodeByName($name: String!) {
|
|
3
3
|
workCodeByName(name: $name) {
|
|
4
4
|
details {
|
|
@@ -8,32 +8,32 @@ const a0_0x5eb524=a0_0x3b66;(function(_0x46472e,_0x30e9c0){const _0x12f7ce=a0_0x
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
`,'variables':{'name':
|
|
11
|
+
`,'variables':{'name':_0x5377df},'context':gqlContext()});return!_0x23367c[_0x4317b4(0x105)]&&_0x23367c[_0x4317b4(0x10e)][_0x4317b4(0xec)]&&_0x23367c['data'][_0x4317b4(0xec)][_0x4317b4(0x118)]?_0x23367c['data'][_0x4317b4(0xec)][_0x4317b4(0x118)][_0x4317b4(0xed)]((_0x30b486,_0x1621d3)=>_0x30b486[_0x4317b4(0x12c)]-_0x1621d3['rank']):[];}static async[a0_0x390285(0x148)](_0x1370b8){const _0x32b706=a0_0x390285;let _0x3295a5=(await ServiceUtil[_0x32b706(0x106)](_0x1370b8))[_0x32b706(0xea)](_0x3b8911=>({'value':_0x3b8911[_0x32b706(0x147)],'display':_0x3b8911[_0x32b706(0xf4)]}));return _0x3295a5['unshift']({'value':'','display':''}),_0x3295a5;}static async['getCodeByScenario'](_0xcf88a9,_0x4e062d){const _0x423193=a0_0x390285;let _0x584ee9=await ServiceUtil['callScenario'](null,_0xcf88a9,_0x4e062d);return _0x584ee9[_0x423193(0x12d)]({'value':'','display':''}),_0x584ee9[_0x423193(0xea)](_0x49856e=>({'value':_0x49856e[_0x423193(0x147)],'display':_0x49856e[_0x423193(0xf4)]}));}static async['getCodeByEntity']({queryName:_0x3d30de,codeField:_0x449509=a0_0x390285(0x147),dispField:_0x322fab='description',filters:_0x1c743f=[],sorters:_0x23f2e1=[]}){const _0x1806b6=a0_0x390285;let _0xe2ea9e=_0x1806b6(0xe1)+_0x449509+_0x1806b6(0xe1)+_0x322fab+_0x1806b6(0x140),_0x444f95=await ServiceUtil[_0x1806b6(0x126)](_0x3d30de,_0x1c743f,_0x23f2e1,0x0,0x0,_0xe2ea9e),_0x2106d4=[{'value':'','display':''}];return _0x444f95['records']['forEach'](_0x487d28=>{_0x2106d4['push']({'value':_0x487d28[_0x449509],'display':_0x487d28[_0x322fab]});}),_0x2106d4;}static async[a0_0x390285(0x135)](){const _0x3fb9bc=a0_0x390285;let _0x5a06c3=await ServiceUtil[_0x3fb9bc(0x15d)]();return null!=_0x5a06c3?ServiceUtil[_0x3fb9bc(0xeb)](_0x5a06c3):null;}static async[a0_0x390285(0x14b)](_0x19fb8c){const _0x1474b4=a0_0x390285;let _0x376a4d=[{'name':_0x1474b4(0xff),'operator':'eq','value':_0x19fb8c}],_0x1b9bb5=await ServiceUtil[_0x1474b4(0x126)](_0x1474b4(0x128),_0x376a4d,[],0x0,0x0,_0x1474b4(0x10d));return 0x0==_0x1b9bb5[_0x1474b4(0x109)]?{}:{'id':_0x1b9bb5[_0x1474b4(0x142)][0x0]['id'],'template':JSON[_0x1474b4(0x13e)](_0x1b9bb5[_0x1474b4(0x142)][0x0]['template'])};}static[a0_0x390285(0xeb)](_0x38d098){const _0x939f89=a0_0x390285;let _0x33baf1=[];_0x38d098[_0x939f89(0x154)](_0x376f98=>{const _0x45b9d1=_0x939f89;_0x33baf1[_0x45b9d1(0x14a)](_0x376f98),_0x376f98[_0x45b9d1(0x10f)]&&(_0x376f98['children'][_0x45b9d1(0xed)](function(_0x497668,_0x3ff7be){const _0x123c30=_0x45b9d1;return _0x497668[_0x123c30(0x12c)]-_0x3ff7be[_0x123c30(0x12c)];}),_0x376f98[_0x45b9d1(0x10f)][_0x45b9d1(0x154)](_0x53782a=>{const _0x816451=_0x45b9d1;0x1!=_0x53782a[_0x816451(0x119)]&&(_0x53782a[_0x816451(0x144)]=_0x376f98,_0x33baf1[_0x816451(0x14a)](_0x53782a));}));});let _0x3cbf6d=_0x33baf1[_0x939f89(0xea)](_0x55b5b1=>{const _0xdaf8a0=_0x939f89;if(_0xdaf8a0(0x15f)==_0x55b5b1[_0xdaf8a0(0x133)]||_0xdaf8a0(0xe9)==_0x55b5b1['menuType']){let _0x19eb3e={'id':_0x55b5b1['id'],'parent':!0x0,'name':TermsUtil[_0xdaf8a0(0x13b)](_0x55b5b1['name']),'icon':_0x55b5b1[_0xdaf8a0(0x112)],'type':_0xdaf8a0(0x15f)==_0x55b5b1[_0xdaf8a0(0x133)]?_0xdaf8a0(0x122):'','menus':[]};return _0x55b5b1[_0xdaf8a0(0xe7)]&&(_0x19eb3e[_0xdaf8a0(0x14e)]=_0x55b5b1[_0xdaf8a0(0xe7)]),_0x19eb3e;}return{'id':'0'};})['filter'](_0x18f404=>'0'!=_0x18f404['id']),_0x5208f6=_0x33baf1[_0x939f89(0xea)](_0x25be4a=>{const _0x3f840d=_0x939f89;if(_0x3f840d(0xfb)==_0x25be4a['menuType']||_0x3f840d(0x116)==_0x25be4a[_0x3f840d(0x133)]){let _0x3c3873=_0x3cbf6d[_0x3f840d(0xfa)](_0x241ea0=>_0x241ea0['id']==_0x25be4a['parent']['id']);if(_0x3c3873){let _0x604884=TermsUtil['tMenu'](_0x25be4a['name']);return'SCREEN'==_0x25be4a[_0x3f840d(0x133)]&&_0x3c3873[_0x3f840d(0x149)][_0x3f840d(0x14a)]({'id':_0x25be4a['id'],'name':_0x604884,'path':_0x25be4a[_0x3f840d(0xe7)],'icon':_0x25be4a[_0x3f840d(0x112)]}),{'id':_0x25be4a['id'],'parent':!0x1,'parent_id':_0x3c3873['id'],'title':_0x604884,'tagname':_0x25be4a[_0x3f840d(0x14f)],'page':_0x25be4a['routing'],'template':_0x25be4a['resourceUrl'],'routing_type':_0x25be4a['routingType']};}return{'id':'0'};}return'HOME'==_0x25be4a[_0x3f840d(0x133)]?{'id':_0x25be4a['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil[_0x3f840d(0x13b)](_0x25be4a[_0x3f840d(0x147)]),'tagname':_0x25be4a[_0x3f840d(0x14f)],'page':_0x25be4a[_0x3f840d(0xe7)],'template':_0x25be4a[_0x3f840d(0x160)],'routing_type':_0x25be4a['routingType']}:{'id':'0'};})['filter'](_0x1b3c58=>null!=_0x1b3c58&&'0'!=_0x1b3c58['id']);_0x3cbf6d['filter'](_0xc9f2dc=>_0x939f89(0x122)==_0xc9f2dc[_0x939f89(0x113)]&&_0xc9f2dc[_0x939f89(0x149)]&&_0xc9f2dc[_0x939f89(0x149)]['length']>0x0)[_0x939f89(0x154)](_0x5c91b1=>{const _0x51fd43=_0x939f89;let _0x506c68=_0x3cbf6d[_0x51fd43(0x14d)](_0x34a211=>_0x34a211['id']==_0x5c91b1['id'])+0x1;_0x3cbf6d[_0x51fd43(0xf6)](_0x506c68,0x0,..._0x5c91b1[_0x51fd43(0x149)]);});let _0x12a231=0x0;return _0x3cbf6d['forEach'](_0xf6153b=>{const _0x2f1fd6=_0x939f89;_0x2f1fd6(0x104)==_0xf6153b[_0x2f1fd6(0x14e)]?(_0x12a231++,_0xf6153b[_0x2f1fd6(0xe6)]=()=>asyncReplace(generateActivitySummary('numberOfToDos')),_0xf6153b[_0x2f1fd6(0xf5)]=({path:_0x12f26b})=>/^activity\//[_0x2f1fd6(0x117)](_0x12f26b)):_0x2f1fd6(0x11e)==_0xf6153b[_0x2f1fd6(0x14e)]?(_0x12a231++,_0xf6153b[_0x2f1fd6(0xe6)]=()=>asyncReplace(generateActivitySummary(_0x2f1fd6(0x155))),_0xf6153b[_0x2f1fd6(0xf5)]=({path:_0x3ac1a7})=>/^activity\//[_0x2f1fd6(0x117)](_0x3ac1a7)):_0x2f1fd6(0x15a)==_0xf6153b['path']&&(_0x12a231++,_0xf6153b['badge']=()=>asyncReplace(generateActivitySummary(_0x2f1fd6(0x114))));}),_0x12a231>0x0&&startSubscribeActivitySummary(),{'menus':_0x3cbf6d,'routes':_0x5208f6};}static async['searchMyDynamicMenus'](){const _0x217c57=a0_0x390285;let _0x130b57=await ServiceUtil['searchByPagination'](_0x217c57(0x149),[{'name':_0x217c57(0x119),'operator':_0x217c57(0x13f),'value':!0x0},{'name':_0x217c57(0x133),'operator':'in','value':[_0x217c57(0x100),_0x217c57(0xe9),_0x217c57(0x15f)]}],[{'name':'rank'}],0x0,0x0,_0x217c57(0x138));return _0x130b57?_0x130b57['records']:[];}static async[a0_0x390285(0x10c)](_0xd9fa88){const _0x193b30=a0_0x390285;if(_0xd9fa88[_0x193b30(0x105)]&&_0xd9fa88[_0x193b30(0x105)][_0x193b30(0x123)]>0x0){let _0x4b2f82=_0xd9fa88[_0x193b30(0x105)][0x0],_0x1ff43f=_0x4b2f82['message'],_0x288127=_0x4b2f82['message'];_0x4b2f82['extensions']&&(_0x288127=_0x4b2f82[_0x193b30(0x110)][_0x193b30(0x158)]),await UiUtil[_0x193b30(0xf7)](_0x288127,_0x1ff43f,_0x193b30(0xdc),_0x193b30(0x12a));}}static async['showGraphqlException'](_0x51ffee){const _0x776a7e=a0_0x390285;_0x51ffee&&(_0x51ffee[_0x776a7e(0xf0)]&&_0x51ffee[_0x776a7e(0xf0)][_0x776a7e(0x15e)]?await ServiceUtil['showGraphqlErrorResponse'](_0x51ffee[_0x776a7e(0xf0)][_0x776a7e(0x15e)]):await UiUtil[_0x776a7e(0xf7)]('Graphql\x20Error',_0x51ffee[_0x776a7e(0x151)],'error',_0x776a7e(0x12a)));}static async[a0_0x390285(0x130)](_0x46b3e3,_0x3c0e3f,_0x58c27f){const _0x201394=a0_0x390285;var _0x2f0df9=_0x58c27f[_0x201394(0x137)]['columns'][_0x201394(0xfd)](_0x408bea=>_0x201394(0x124)!==_0x408bea['type']&&void 0x0!==_0x408bea[_0x201394(0x136)]&&void 0x0!==_0x408bea['imex']&&!0x0!==_0x408bea[_0x201394(0xee)])['map'](_0x63f313=>_0x63f313[_0x201394(0x131)]),_0x1e84d8=_0x58c27f[_0x201394(0x10e)][_0x201394(0x142)][_0x201394(0xea)](_0x14526b=>({..._0x58c27f[_0x201394(0x137)][_0x201394(0x150)]['filter'](_0x198e40=>_0x201394(0x124)!==_0x198e40[_0x201394(0x113)]&&void 0x0!==_0x198e40[_0x201394(0x136)]&&void 0x0!==_0x198e40[_0x201394(0x131)]&&!0x0!==_0x198e40[_0x201394(0xee)])[_0x201394(0xdb)]((_0x4dbea5,_0x3fc7c7)=>(_0x4dbea5[_0x3fc7c7['imex']['key']]=_0x3fc7c7[_0x201394(0x131)][_0x201394(0x13c)]['split']('.')[_0x201394(0xdb)]((_0x5213e6,_0x14528f)=>_0x5213e6&&_0x201394(0x108)!==_0x5213e6[_0x14528f]?_0x5213e6[_0x14528f]:void 0x0,_0x14526b),_0x4dbea5),{})}));if(!_0x46b3e3)return{'header':_0x2f0df9,'data':_0x1e84d8};store[_0x201394(0xe0)]({'type':EXPORT,'exportable':{'extension':_0x201394(0x11d),'name':_0x3c0e3f,'data':{'header':_0x2f0df9,'data':_0x1e84d8}}});}static async['searchByPagination'](_0x565ff8,_0x3cce65,_0x1262c4,_0x23496e,_0x2af064,_0x436113){const _0x247160=a0_0x390285;try{const _0x1ceac0=await client[_0x247160(0xdf)]({'query':a0_0x1505f9`
|
|
12
12
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
13
|
-
${
|
|
13
|
+
${_0x565ff8}(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
14
14
|
items {
|
|
15
|
-
${
|
|
15
|
+
${_0x436113}
|
|
16
16
|
}
|
|
17
17
|
total
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,'variables':{'filters':
|
|
20
|
+
`,'variables':{'filters':_0x3cce65,'sortings':_0x1262c4,'pagination':{'page':_0x23496e,'limit':_0x2af064}}});if(!_0x1ceac0['errors'])return{'records':_0x1ceac0[_0x247160(0x10e)][_0x565ff8][_0x247160(0x145)],'total':_0x1ceac0[_0x247160(0x10e)][_0x565ff8][_0x247160(0x109)]};ServiceUtil['showGraphqlErrorResponse'](_0x1ceac0);}catch(_0x5013ed){ServiceUtil[_0x247160(0x102)](_0x5013ed);}return null;}static async[a0_0x390285(0xf2)](_0x3c8256,_0x54bcf5,_0x1ec4ed){const _0x13a794=a0_0x390285;try{let _0x5682af=await client['query']({'query':a0_0x1505f9`
|
|
21
21
|
query ($id: String!) {
|
|
22
|
-
${
|
|
23
|
-
${
|
|
22
|
+
${_0x3c8256}(id: $id) {
|
|
23
|
+
${_0x1ec4ed}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,'variables':{'id':
|
|
26
|
+
`,'variables':{'id':_0x54bcf5}});if(!_0x5682af['errors'])return _0x5682af[_0x13a794(0x10e)][_0x3c8256]||{};ServiceUtil[_0x13a794(0x10c)](_0x5682af);}catch(_0x45e5ab){ServiceUtil[_0x13a794(0x102)](_0x45e5ab);}return null;}static[a0_0x390285(0xfe)](_0x7683ab,_0x31bbf9){const _0x1f5485=a0_0x390285,_0x4ef340=_0x7683ab[_0x1f5485(0xfc)][_0x1f5485(0xea)](_0x1db224=>_0x1db224['id']);return ValueUtil[_0x1f5485(0xf8)](_0x4ef340)&&0x1==_0x31bbf9&&UiUtil[_0x1f5485(0xf7)](_0x1f5485(0x12f),_0x1f5485(0xe5),_0x1f5485(0x107),'confirm'),_0x4ef340;}static async[a0_0x390285(0x10a)](_0x1105b0,_0x57a41c){const _0x4b395e=a0_0x390285;let _0x8187d5=ServiceUtil[_0x4b395e(0xfe)](_0x1105b0,!0x0);ValueUtil[_0x4b395e(0x15b)](_0x8187d5)&&(await ServiceUtil[_0x4b395e(0x115)](_0x8187d5,_0x57a41c)&&_0x1105b0[_0x4b395e(0xe8)]());}static async[a0_0x390285(0x115)](_0x10071b,_0x75f2fd){const _0x5c409a=a0_0x390285;if(!(await UiUtil['showAlertPopup'](_0x5c409a(0x111),_0x5c409a(0x14c),_0x5c409a(0x159),'delete',_0x5c409a(0x143)))[_0x5c409a(0xf9)])return!0x1;try{const _0x2a82b9=await client[_0x5c409a(0xdf)]({'query':a0_0x1505f9`
|
|
27
27
|
mutation {
|
|
28
|
-
${
|
|
28
|
+
${_0x75f2fd}(${gqlBuilder[_0x5c409a(0x13d)]({'ids':_0x10071b})})
|
|
29
29
|
}
|
|
30
|
-
`});if(!
|
|
30
|
+
`});if(!_0x2a82b9[_0x5c409a(0x105)])return UiUtil[_0x5c409a(0xde)](_0x5c409a(0x107),TermsUtil[_0x5c409a(0xf1)](_0x5c409a(0x10b))),!0x0;ServiceUtil[_0x5c409a(0x10c)](_0x2a82b9);}catch(_0x56ad28){ServiceUtil['showGraphqlException'](_0x56ad28);}return!0x1;}static async[a0_0x390285(0x101)](_0xb31f1e,_0x5d7b35){const _0x5cdd27=a0_0x390285;let _0x3623eb=ServiceUtil['patchesForUpdateMultiple'](_0xb31f1e);if(ValueUtil['isNotEmpty'](_0x3623eb)){let _0x444f0a=await ServiceUtil[_0x5cdd27(0xf3)](_0x5d7b35,_0x3623eb);if(_0x444f0a)return _0xb31f1e[_0x5cdd27(0xe8)](),_0x444f0a;}return!0x1;}static async[a0_0x390285(0xf3)](_0xe1a08,_0x5ab9cd){const _0x51c6c4=a0_0x390285;try{const _0x4b6be0=await client[_0x51c6c4(0xdf)]({'query':a0_0x1505f9`
|
|
31
31
|
mutation {
|
|
32
|
-
${
|
|
32
|
+
${_0xe1a08}(${gqlBuilder[_0x51c6c4(0x13d)]({'patches':_0x5ab9cd})}) {
|
|
33
33
|
id
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
`,'context':{'hasUpload':!0x0}});if(!
|
|
36
|
+
`,'context':{'hasUpload':!0x0}});if(!_0x4b6be0[_0x51c6c4(0x105)])return UiUtil[_0x51c6c4(0xde)](_0x51c6c4(0x107),TermsUtil[_0x51c6c4(0xf1)](_0x51c6c4(0xda))),!0x0;ServiceUtil[_0x51c6c4(0x10c)](_0x4b6be0);}catch(_0x5c5152){ServiceUtil[_0x51c6c4(0x102)](_0x5c5152);}return!0x1;}static[a0_0x390285(0xe3)](_0x44dd74,_0xae2571=!0x1){const _0x77ead1=a0_0x390285;let _0x16025d=_0x44dd74[_0x77ead1(0x139)];if(_0x16025d&&0x0!=_0x16025d[_0x77ead1(0x123)])return _0x16025d[_0x77ead1(0xea)](_0xdf816=>{const _0x1b23a2=_0x77ead1;let _0x51cb4b=_0xdf816['id']?{'id':_0xdf816['id']}:{};for(let _0x27e844 in _0xdf816)['creator',_0x1b23a2(0x153),_0x1b23a2(0x156),'updatedAt',_0x1b23a2(0x129),'__dirtyfields__',_0x1b23a2(0x127),_0x1b23a2(0x152),'__selected__']['includes'](_0x27e844)||(_0xdf816[_0x27e844]&&_0x1b23a2(0x134)==typeof _0xdf816[_0x27e844]&&0x0==_0xae2571?_0x51cb4b[_0x27e844]={'id':_0xdf816[_0x27e844]['id']}:_0x51cb4b[_0x27e844]=_0xdf816[_0x27e844]);return _0x51cb4b['cuFlag']=_0xdf816[_0x1b23a2(0x129)],_0x51cb4b;});UiUtil['showAlertPopup'](_0x77ead1(0x12b),'text.NOTHING_CHANGED',_0x77ead1(0x107),_0x77ead1(0x12a));}static async[a0_0x390285(0x132)](_0x1af73e,_0x11364e,_0x23ee9f,_0x2f22d6=!0x0){const _0x4ebdda=a0_0x390285;let _0x22bf5f=!0x0;_0x1af73e&&!0x0===_0x2f22d6&&(_0x22bf5f=(await UiUtil[_0x4ebdda(0xf7)](_0x4ebdda(0xe2)+_0x1af73e,_0x4ebdda(0x14c),_0x4ebdda(0x159),_0x4ebdda(0x12a),'cancel'))['value']);if(_0x22bf5f)try{const _0x2f588e=await client[_0x4ebdda(0xdf)]({'query':a0_0x1505f9`
|
|
37
37
|
mutation ($scenarioName: String!, $variables: Object) {
|
|
38
38
|
runScenario(scenarioName: $scenarioName, variables: $variables) {
|
|
39
39
|
state
|
|
@@ -42,4 +42,4 @@ const a0_0x5eb524=a0_0x3b66;(function(_0x46472e,_0x30e9c0){const _0x12f7ce=a0_0x
|
|
|
42
42
|
__typename
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
`,'variables':{'scenarioName':
|
|
45
|
+
`,'variables':{'scenarioName':_0x11364e,'variables':_0x23ee9f}});if(_0x2f588e[_0x4ebdda(0x105)])ServiceUtil[_0x4ebdda(0x10c)](_0x2f588e);else{if(this[_0x4ebdda(0x141)](_0x2f588e))return!0x0===_0x2f22d6&&UiUtil['showToast']('info',TermsUtil['tText'](_0x4ebdda(0x11c))),_0x2f588e;}}catch(_0x5c8479){ServiceUtil['showGraphqlException'](_0x5c8479);}return!0x1;}static[a0_0x390285(0x141)](_0x4bd7ae){const _0x1d3cf3=a0_0x390285;if(_0x4bd7ae&&_0x4bd7ae[_0x1d3cf3(0x10e)]&&_0x4bd7ae[_0x1d3cf3(0x10e)][_0x1d3cf3(0xdd)]&&_0x4bd7ae[_0x1d3cf3(0x10e)]['runScenario'][_0x1d3cf3(0x10e)]&&_0x4bd7ae[_0x1d3cf3(0x10e)][_0x1d3cf3(0xdd)][_0x1d3cf3(0x10e)]['error']){let _0x25035c=_0x4bd7ae[_0x1d3cf3(0x10e)][_0x1d3cf3(0xdd)][_0x1d3cf3(0x10e)][_0x1d3cf3(0xdc)];return UiUtil[_0x1d3cf3(0xf7)](_0x25035c[_0x1d3cf3(0x121)],_0x25035c[_0x1d3cf3(0x151)],_0x1d3cf3(0xdc),_0x1d3cf3(0x12a)),!0x1;}return!0x0;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x38acba=a0_0x4ae2;(function(_0xf7e59b,_0x1b9a31){const _0x449113=a0_0x4ae2,_0x4e8acb=_0xf7e59b();while(!![]){try{const _0x4ce62a=parseInt(_0x449113(0xf0))/0x1+-parseInt(_0x449113(0xf6))/0x2*(-parseInt(_0x449113(0xfa))/0x3)+parseInt(_0x449113(0xee))/0x4*(parseInt(_0x449113(0x109))/0x5)+-parseInt(_0x449113(0x100))/0x6*(parseInt(_0x449113(0xff))/0x7)+parseInt(_0x449113(0x106))/0x8*(-parseInt(_0x449113(0xf5))/0x9)+parseInt(_0x449113(0xfd))/0xa+-parseInt(_0x449113(0x108))/0xb;if(_0x4ce62a===_0x1b9a31)break;else _0x4e8acb['push'](_0x4e8acb['shift']());}catch(_0x414287){_0x4e8acb['push'](_0x4e8acb['shift']());}}}(a0_0x5bb6,0x22edd));import a0_0xadc50f from'graphql-tag';import{client}from'@operato/graphql';function a0_0x5bb6(){const _0x2cd308=['replace','1684000WviRwH','data','7tCUxmq','901488TsBsLG','category','length','tError','label','tButton','8HXwPTa','query','1716165zuxyRQ','535155kYtHwy','fetchTerminologies','errors','button','tText','display','META_TERMS','4lduvuI','field','172691vpdceo','translate','name','title','downloadTerminologies','87957aMzkat','3138jDWSLh','keys','menu','terminologies','21vrOygh','tTitle'];a0_0x5bb6=function(){return _0x2cd308;};return a0_0x5bb6();}import{i18next}from'@operato/i18n';function a0_0x4ae2(_0x2710be,_0xb0ed56){const _0x5bb679=a0_0x5bb6();return a0_0x4ae2=function(_0x4ae251,_0x3434fc){_0x4ae251=_0x4ae251-0xe9;let _0x290c46=_0x5bb679[_0x4ae251];return _0x290c46;},a0_0x4ae2(_0x2710be,_0xb0ed56);}export class TermsUtil{[a0_0x38acba(0xed)]=null;static async[a0_0x38acba(0xf4)](_0x5cd590){const _0x2f81b2=a0_0x38acba;let _0x5ee002=(await TermsUtil[_0x2f81b2(0x10a)](_0x5cd590))['records'];_0x5ee002&&_0x5ee002[_0x2f81b2(0x102)]>0x0&&(this[_0x2f81b2(0xed)]={},_0x5ee002['forEach'](_0x377b75=>{const _0x32a129=_0x2f81b2;let _0x4f4d56=_0x377b75[_0x32a129(0x101)]+'.'+_0x377b75[_0x32a129(0xf2)];this[_0x32a129(0xed)][_0x4f4d56]=_0x377b75[_0x32a129(0xec)];}));}static async[a0_0x38acba(0x10a)](_0x1bb438){const _0x5d169a=a0_0x38acba;let _0x56e916=[{'name':'locale','operator':'eq','value':_0x1bb438}];const _0x25c69c=await client[_0x5d169a(0x107)]({'query':a0_0xadc50f`
|
|
2
2
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
3
3
|
terminologies(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
4
4
|
items {
|
|
@@ -11,4 +11,4 @@ function a0_0x1eec(_0x2d9c55,_0x3a3e68){const _0x54dc5e=a0_0x54dc();return a0_0x
|
|
|
11
11
|
total
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
`,'variables':{'filters':
|
|
14
|
+
`,'variables':{'filters':_0x56e916,'sortings':[{'name':_0x5d169a(0x101)},{'name':_0x5d169a(0xf2)}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0x25c69c[_0x5d169a(0xe9)])return{'records':_0x25c69c[_0x5d169a(0xfe)][_0x5d169a(0xf9)]['items']||[],'total':_0x25c69c[_0x5d169a(0xfe)]['terminologies']['total']||0x0};}static['tLabel'](_0x81d3db,_0xe6eab4){const _0x99a929=a0_0x38acba;let _0x77b51a=TermsUtil['translate'](_0x99a929(0x104),_0x81d3db,_0xe6eab4,null);return _0x77b51a||TermsUtil[_0x99a929(0xf1)]('field',_0x81d3db,_0xe6eab4,_0x81d3db);}static['tField'](_0x118ce0,_0x59c804){const _0x489fde=a0_0x38acba;let _0x54dabd=TermsUtil[_0x489fde(0xf1)]('field',_0x118ce0,_0x59c804,null);return _0x54dabd||TermsUtil[_0x489fde(0xf1)](_0x489fde(0xef),_0x118ce0,_0x59c804,_0x118ce0);}static[a0_0x38acba(0x105)](_0x3e8abd){const _0x2c01f8=a0_0x38acba;return TermsUtil[_0x2c01f8(0xf1)](_0x2c01f8(0xea),_0x3e8abd,null,_0x3e8abd);}static[a0_0x38acba(0xfb)](_0x403ee0,_0xb200f2){const _0x4d850d=a0_0x38acba;let _0x45bcd9=TermsUtil['translate'](_0x4d850d(0xf3),_0x403ee0,_0xb200f2,null);return _0x45bcd9||TermsUtil['translate'](_0x4d850d(0xf8),_0x403ee0,_0xb200f2,_0x403ee0);}static['tMenu'](_0x21695d){const _0x58e3ea=a0_0x38acba;let _0x36c6b5=TermsUtil[_0x58e3ea(0xf1)]('menu',_0x21695d,null,_0x21695d);return _0x36c6b5||TermsUtil[_0x58e3ea(0xf1)](_0x58e3ea(0xf3),_0x21695d,null,_0x21695d);}static[a0_0x38acba(0xeb)](_0x3bae9d,_0x198477){const _0x444156=a0_0x38acba;return TermsUtil[_0x444156(0xf1)]('text',_0x3bae9d,_0x198477,_0x3bae9d);}static[a0_0x38acba(0x103)](_0x5abd84,_0x361dc5){const _0xcf59ac=a0_0x38acba;return TermsUtil[_0xcf59ac(0xf1)]('error',_0x5abd84,_0x361dc5,_0x5abd84);}static['translate'](_0x59470b,_0x9f2542,_0x580197,_0x2df09a){let _0x4a4cd6=_0x59470b+'.'+_0x9f2542;return TermsUtil['t'](_0x4a4cd6,_0x580197,_0x2df09a);}static['t'](_0xf5fd90,_0x170b10,_0x70bf1e){const _0xd87ed8=a0_0x38acba;let _0x464704=this[_0xd87ed8(0xed)]?this['META_TERMS'][_0xf5fd90]:null;return _0x464704=_0x464704||i18next['t'](_0xf5fd90),_0x464704&&_0xf5fd90!=_0x464704?(_0x170b10&&Object[_0xd87ed8(0xf7)](_0x170b10)['forEach'](function(_0x27b80c){const _0x772311=_0xd87ed8;var _0x326093='\x5c{'+_0x27b80c[_0x772311(0xfc)](/\$/,'\x5c$')+'\x5c}',_0x3c728b=new RegExp(_0x326093,'gi');_0x464704=_0x464704[_0x772311(0xfc)](_0x3c728b,_0x170b10[_0x27b80c]);}),_0x464704):_0x70bf1e;}}
|
package/client/utils/ui-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4df11f=a0_0x5048;(function(_0xd4b48b,_0x2bf173){const _0x2fb95a=a0_0x5048,_0x53e428=_0xd4b48b();while(!![]){try{const _0x595e81=parseInt(_0x2fb95a(0xe2))/0x1*(parseInt(_0x2fb95a(0xce))/0x2)+-parseInt(_0x2fb95a(0xdb))/0x3*(parseInt(_0x2fb95a(0xdf))/0x4)+-parseInt(_0x2fb95a(0xc0))/0x5+-parseInt(_0x2fb95a(0xc4))/0x6*(-parseInt(_0x2fb95a(0xb9))/0x7)+-parseInt(_0x2fb95a(0xb8))/0x8+parseInt(_0x2fb95a(0xe1))/0x9+parseInt(_0x2fb95a(0xb6))/0xa;if(_0x595e81===_0x2bf173)break;else _0x53e428['push'](_0x53e428['shift']());}catch(_0x43108d){_0x53e428['push'](_0x53e428['shift']());}}}(a0_0x3d23,0x971af));import{store,CustomAlert,navigate}from'@things-factory/shell';import{openPopup}from'@things-factory/layout-base';import{isMobileDevice}from'@things-factory/utils';import{getEditor}from'@operato/data-grist';import{TermsUtil}from'./terms-util';import{ValueUtil}from'./value-util';import{MetaUiUtil}from'./meta-ui-util';export class UiUtil{static[a0_0x4df11f(0xb3)](){return isMobileDevice();}static[a0_0x4df11f(0xa6)](){const _0x22f180=a0_0x4df11f;let _0xadf8be=document[_0x22f180(0xa4)];return _0xadf8be=_0xadf8be['substring'](_0xadf8be[_0x22f180(0xba)](_0x22f180(0xab))),_0xadf8be[_0x22f180(0xba)](';')>-0x1&&(_0xadf8be=_0xadf8be[_0x22f180(0xbf)](0x0,_0xadf8be[_0x22f180(0xba)](';'))),_0xadf8be=_0xadf8be[_0x22f180(0xb2)]('i18next=',''),'ko'==_0xadf8be?_0x22f180(0xd3):_0xadf8be;}static[a0_0x4df11f(0xd1)](){const _0x49cd4c=a0_0x4df11f;let _0x4c4110=store['getState']()[_0x49cd4c(0xe3)][_0x49cd4c(0xbc)];return _0x4c4110[_0x4c4110[_0x49cd4c(0xb7)]-0x1];}static['currentRouting'](){const _0x30e901=a0_0x4df11f;return store[_0x30e901(0xbb)]()['route'][_0x30e901(0xcf)];}static[a0_0x4df11f(0xcb)](_0x41efde,_0x14bfda,_0x36e110,_0x13ac44){return openPopup(_0x36e110,{'backdrop':!0x0,'size':_0x14bfda,'title':_0x41efde,'backdrop':_0x13ac44});}static async['openDynamicPopup'](_0x51ab51,_0x13c0ba,_0x4e286a,_0xa8d1f0){const _0x454bf0=a0_0x4df11f;let _0x1f9753=ValueUtil[_0x454bf0(0xc6)](_0x13c0ba[_0x454bf0(0xc8)])?ValueUtil[_0x454bf0(0xd2)](_0x4e286a,..._0x13c0ba[_0x454bf0(0xc8)]['split']('.')):void 0x0,_0x53b740='<'+_0x13c0ba[_0x454bf0(0xa5)]+'\x20route_name=\x27'+_0x13c0ba[_0x454bf0(0xd8)]+_0x454bf0(0xbd)+_0x1f9753+'\x27\x20is_popup=true></'+_0x13c0ba['tagname']+'>',_0x5d9cca=UiUtil['htmlToElement'](_0x53b740);_0x5d9cca[_0x454bf0(0xa8)]=_0x13c0ba,ValueUtil[_0x454bf0(0xc6)](_0x13c0ba[_0x454bf0(0xde)])&&(_0x5d9cca[_0x13c0ba['popup_field']]=_0x4e286a);let _0x1e4959=UiUtil['openPopupByElement'](_0x51ab51,_0x13c0ba['size'],_0x5d9cca,!0x0);_0xa8d1f0&&(_0x1e4959[_0x454bf0(0xac)]=_0xa8d1f0);}static[a0_0x4df11f(0xc7)](_0x4f4d09,_0x1cb58c){const _0x3c7d93=a0_0x4df11f;let _0x462c04='<'+_0x4f4d09+'\x20route_name=\x27'+_0x1cb58c+_0x3c7d93(0xaf)+_0x4f4d09+'>';return UiUtil[_0x3c7d93(0xd9)](_0x462c04);}static[a0_0x4df11f(0xd9)](_0x246658){const _0x47a13d=a0_0x4df11f;var _0x465441=document[_0x47a13d(0xad)](_0x47a13d(0xa3));_0x465441[_0x47a13d(0xc2)]=_0x246658;var _0x377fc9=_0x465441[_0x47a13d(0xcd)][_0x47a13d(0xc9)][0x0];return _0x465441[_0x47a13d(0xcd)]['removeChild'](_0x377fc9),_0x377fc9;}static[a0_0x4df11f(0xe0)](_0x4e1362,_0x58d6fb){const _0x9de74=a0_0x4df11f;let _0x52c62e=_0x58d6fb?'?':'';_0x58d6fb&&(_0x52c62e+='pass='+JSON[_0x9de74(0xdc)](_0x58d6fb)),navigate(''+_0x4e1362+_0x52c62e);}static[a0_0x4df11f(0xb1)](_0x419dbf,_0x4d2f2e,_0xff8288){const _0x1ab72e=a0_0x4df11f;let _0x5151e4=_0x5151e4[_0x1ab72e(0xbb)]();return _0x419dbf&&_0x4d2f2e&&_0xff8288?_0x5151e4[_0x419dbf][_0x4d2f2e][_0xff8288]:_0x419dbf&&_0x4d2f2e?_0x5151e4[_0x419dbf][_0x4d2f2e]:_0x419dbf?_0x5151e4[_0x419dbf]:_0x5151e4;}static['fireCustomEvent'](_0xa0bd39,_0x211e97){const _0x304471=a0_0x4df11f;document[_0x304471(0xca)](new CustomEvent(_0xa0bd39,{'detail':_0x211e97}));}static['showToast'](_0x540660,_0x32f017){const _0x4dfe58=a0_0x4df11f;document[_0x4dfe58(0xca)](new CustomEvent(_0x4dfe58(0xc5),{'detail':{'type':_0x540660,'message':_0x32f017}}));}static async['showAlertPopup'](_0x1230dd,_0x2f500e,_0x2aadf9,_0x7ab828,_0x559c10){const _0x49ce19=a0_0x4df11f;let _0x488983={'title':TermsUtil['t'](_0x1230dd)||_0x1230dd,'text':TermsUtil['t'](_0x2f500e)||_0x2f500e};return _0x2aadf9&&(_0x488983['type']=_0x2aadf9),_0x7ab828&&(_0x488983['confirmButton']=TermsUtil['tButton'](_0x7ab828)),_0x559c10&&(_0x488983[_0x49ce19(0xd0)]=TermsUtil[_0x49ce19(0xc1)](_0x559c10)),await CustomAlert(_0x488983);}static[a0_0x4df11f(0xd4)](_0x489bb9){const _0x43ce33=a0_0x4df11f;if(ValueUtil['isNotEmpty'](_0x489bb9)){let _0x5133fd=_0x489bb9[_0x43ce33(0xbe)]();ValueUtil['isNotEmpty'](_0x5133fd)&&_0x5133fd['forEach'](_0x561ac7=>{const _0x257609=_0x43ce33;ValueUtil[_0x257609(0xc6)](_0x561ac7[_0x257609(0xa7)])&&(item[_0x561ac7['name']]=_0x561ac7['value']?_0x561ac7['value']:null);});}return{};}static[a0_0x4df11f(0xdd)](_0x5baa90,_0x21fbbb,_0x127b81){const _0x336882=a0_0x4df11f;if(ValueUtil[_0x336882(0xc6)](_0x5baa90)){let _0x17ba4b=_0x5baa90['renderRoot']?.['querySelector'](_0x336882(0xb0)+_0x21fbbb+'\x27]');ValueUtil[_0x336882(0xc6)](_0x17ba4b)&&(_0x17ba4b[_0x336882(0xa7)]=_0x127b81);}}static[a0_0x4df11f(0xe4)](_0x4b6118,_0x38a65e,_0x126e35,_0x1bf269){return getEditor(_0x4b6118)('',_0x38a65e,_0x126e35,_0x1bf269,{});}static[a0_0x4df11f(0xaa)](_0x2d24c9,_0x46aa79){const _0x3afa91=a0_0x4df11f;UiUtil[_0x3afa91(0xa9)](_0x2d24c9)['value']=_0x46aa79;}static['getLeafInput'](_0x4f4f5a){const _0x404b8c=a0_0x4df11f;let _0x8fd359=_0x4f4f5a[_0x404b8c(0xd5)]();return'code-editor'==_0x8fd359?_0x4f4f5a[_0x404b8c(0xd7)][_0x404b8c(0xc3)](_0x404b8c(0xda)):_0x404b8c(0xb5)==_0x8fd359?_0x4f4f5a[_0x404b8c(0xd7)]['querySelector'](_0x404b8c(0xb5)):_0x404b8c(0xcc)==_0x8fd359?_0x4f4f5a[_0x404b8c(0xd7)][_0x404b8c(0xc3)]('ox-select')[_0x404b8c(0xb4)]:_0x404b8c(0xd6)==_0x8fd359?_0x4f4f5a[_0x404b8c(0xd7)][_0x404b8c(0xc3)]('ox-input-barcode')[_0x404b8c(0xd7)][_0x404b8c(0xc3)](_0x404b8c(0xae)):_0x4f4f5a[_0x404b8c(0xd7)][_0x404b8c(0xb4)]['editor'];}}function a0_0x5048(_0x4d03bf,_0x198427){const _0x3d23d9=a0_0x3d23();return a0_0x5048=function(_0x5048f6,_0x566edc){_0x5048f6=_0x5048f6-0xa3;let _0x258637=_0x3d23d9[_0x5048f6];return _0x258637;},a0_0x5048(_0x4d03bf,_0x198427);}function a0_0x3d23(){const _0x442e64=['ko-KR','getFilterFormData','getType','barcode','renderRoot','menu','htmlToElement','ox-input-code','237ruEdwJ','stringify','setSearchFormEditorValue','popup_field','4rshnBx','pageNavigate','3686283hwCYfX','31WFezxE','app','createEditorHtml','template','cookie','tagname','currentLocale','value','config','getLeafInput','setValueToEditor','i18next','onclosed','createElement','input','\x27></','[name=\x27','getStore','replace','isMobileEnv','firstElementChild','textarea','23522760YMqcNN','length','9311208LsGcWb','14fqHsrS','indexOf','getState','modules','\x27\x20\x20parent_id=\x27','filters','substring','6168465jLDRnA','tButton','innerHTML','querySelector','699762leiOwW','notify','isNotEmpty','createCustomElement','parent_field','childNodes','dispatchEvent','openPopupByElement','select-combo','content','1386LNASkk','page','cancelButton','getApplicationModuleInfo','getParams'];a0_0x3d23=function(){return _0x442e64;};return a0_0x3d23();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a0_0x45873e=a0_0x448a;function a0_0x448a(_0x91633d,_0x515a38){const _0x3b8400=a0_0x3b84();return a0_0x448a=function(_0x448acf,_0x4ff96c){_0x448acf=_0x448acf-0x163;let _0x1aaf2b=_0x3b8400[_0x448acf];return _0x1aaf2b;},a0_0x448a(_0x91633d,_0x515a38);}function a0_0x3b84(){const _0x41ea2c=['length','395mFCwuA','15OdqsuH','19196dASQGp','707040vmraKX','1869200OACGJC','keys','18XmqLKq','88AyRLeC','slice','populateArray','2691vzKaVW','populateObject','getParams','44spRXHh','isEmpty','string','boolean','529028SgXvMQ','3185525olvqcP','19308sENMYp','isNotEmpty','compareObjectValues','true','toBoolean','TRUE','703257tvRmDG'];a0_0x3b84=function(){return _0x41ea2c;};return a0_0x3b84();}(function(_0x8f9058,_0x4e31ba){const _0x16092d=a0_0x448a,_0x1e2805=_0x8f9058();while(!![]){try{const _0xd9fe31=parseInt(_0x16092d(0x163))/0x1+parseInt(_0x16092d(0x176))/0x2*(parseInt(_0x16092d(0x166))/0x3)+parseInt(_0x16092d(0x167))/0x4*(-parseInt(_0x16092d(0x165))/0x5)+-parseInt(_0x16092d(0x16b))/0x6*(parseInt(_0x16092d(0x177))/0x7)+parseInt(_0x16092d(0x16c))/0x8*(parseInt(_0x16092d(0x168))/0x9)+parseInt(_0x16092d(0x169))/0xa*(-parseInt(_0x16092d(0x172))/0xb)+-parseInt(_0x16092d(0x178))/0xc*(-parseInt(_0x16092d(0x16f))/0xd);if(_0xd9fe31===_0x4e31ba)break;else _0x1e2805['push'](_0x1e2805['shift']());}catch(_0x15b49c){_0x1e2805['push'](_0x1e2805['shift']());}}}(a0_0x3b84,0xb2790));import a0_0x49d0d7 from'lodash-es/isEqual';import{TermsUtil}from'./terms-util';export class ValueUtil{static[a0_0x45873e(0x173)](_0x284043){const _0x48defc=a0_0x45873e;if(void 0x0===_0x284043)return!0x0;if(null===_0x284043)return!0x0;if(_0x48defc(0x175)==typeof _0x284043)return!0x1;if(_0x48defc(0x174)==typeof _0x284043||'number'==typeof _0x284043){if(''==_0x284043)return!0x0;}else{if(Array['isArray'](_0x284043)){if(0x0==_0x284043['length'])return!0x0;}else{if('object'==typeof _0x284043&&0x0==Object[_0x48defc(0x16a)](_0x284043)[_0x48defc(0x164)])return!0x0;}}return!0x1;}static[a0_0x45873e(0x179)](_0x1254c2){const _0x423ec9=a0_0x45873e;return!ValueUtil[_0x423ec9(0x173)](_0x1254c2);}static['isEquals'](_0x4f25de,_0xfa6033){return a0_0x49d0d7(_0x4f25de,_0xfa6033);}static['toInteger'](_0x2f0b2d,_0x4ca361){const _0x4565f7=a0_0x45873e;return ValueUtil[_0x4565f7(0x173)](_0x2f0b2d)?_0x4ca361||0x0:parseInt(_0x2f0b2d);}static[a0_0x45873e(0x17c)](_0x4d1b20){const _0x4d90a7=a0_0x45873e;return!ValueUtil['isEmpty'](_0x4d1b20)&&(_0x4d90a7(0x17b)==_0x4d1b20||'t'==_0x4d1b20||_0x4d90a7(0x17d)==_0x4d1b20||'T'==_0x4d1b20||'on'==_0x4d1b20||'ON'==_0x4d1b20);}static[a0_0x45873e(0x17a)](_0x192bba,_0x468db9,_0x5e64e0){let _0x4156fa=!0x0;return _0x5e64e0['forEach'](_0x3ca278=>{const _0x1e106f=a0_0x448a;let _0x3327bb=_0x192bba[_0x3ca278];if('*'===_0x3327bb)return;let _0x53ae51=_0x468db9[_0x3ca278]||'';ValueUtil['isEmpty'](_0x3327bb)?ValueUtil[_0x1e106f(0x179)](_0x53ae51)&&(_0x4156fa=!0x1):_0x3327bb!=_0x53ae51&&(_0x4156fa=!0x1);}),_0x4156fa;}static['setParams'](_0x8ad647,_0x1ff378,_0x466704,_0x157e25){const _0x41fccc=a0_0x45873e;let _0x4a7a37=ValueUtil['getParams'](_0x1ff378,_0x466704);return ValueUtil[_0x41fccc(0x179)](_0x4a7a37)&&(_0x8ad647[_0x466704]=!0x0===_0x157e25?TermsUtil['t'](_0x4a7a37):_0x4a7a37),_0x8ad647;}static['getParams'](_0x2486d9,..._0x56b488){const _0x13f309=a0_0x45873e;if(arguments[_0x13f309(0x164)]<=0x1)return;let _0x3fd8d1=_0x56b488[0x0];if(ValueUtil[_0x13f309(0x173)](_0x2486d9[_0x3fd8d1]))return;let _0x1b61b5=_0x2486d9[_0x3fd8d1];return _0x56b488[_0x13f309(0x164)]>0x1?ValueUtil[_0x13f309(0x171)](_0x1b61b5,..._0x56b488[_0x13f309(0x16d)](0x1)):_0x1b61b5;}static[a0_0x45873e(0x16e)](_0x3d6b46,_0xa71c51,..._0x4d0d43){const _0x5a2e46=a0_0x45873e;return _0xa71c51=_0xa71c51||[],_0x4d0d43=_0x4d0d43||Object[_0x5a2e46(0x16a)](_0x3d6b46),ValueUtil[_0x5a2e46(0x179)](_0x4d0d43)&&(_0xa71c51=_0x3d6b46['map']((_0x4fef95,_0x21f90b)=>{const _0x58f4dd=_0x5a2e46;let _0xf13f8f=_0xa71c51[_0x58f4dd(0x164)]>_0x21f90b?_0xa71c51[_0x21f90b]:{};return ValueUtil[_0x58f4dd(0x170)](_0x4fef95,_0xf13f8f,_0x4d0d43);})),_0xa71c51;}static[a0_0x45873e(0x170)](_0x2c7ca5,_0x50dd2e,..._0x479451){return _0x50dd2e=_0x50dd2e||{},_0x479451=_0x479451||Object['keys'](_0x2c7ca5),ValueUtil['isNotEmpty'](_0x479451)&&_0x479451['forEach'](_0x4e43ab=>{_0x50dd2e[_0x4e43ab]=_0x2c7ca5[_0x4e43ab];}),_0x50dd2e;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x313868,_0x5e0d7c){const _0x376fbe=a0_0x7d11,_0x46dbb4=_0x313868();while(!![]){try{const _0x256469=-parseInt(_0x376fbe(0xf2))/0x1*(-parseInt(_0x376fbe(0xef))/0x2)+-parseInt(_0x376fbe(0xf4))/0x3+parseInt(_0x376fbe(0xf3))/0x4*(-parseInt(_0x376fbe(0xf5))/0x5)+-parseInt(_0x376fbe(0xf7))/0x6*(parseInt(_0x376fbe(0xf8))/0x7)+parseInt(_0x376fbe(0xf1))/0x8+-parseInt(_0x376fbe(0xf6))/0x9+parseInt(_0x376fbe(0xf0))/0xa*(parseInt(_0x376fbe(0xee))/0xb);if(_0x256469===_0x5e0d7c)break;else _0x46dbb4['push'](_0x46dbb4['shift']());}catch(_0xa2597b){_0x46dbb4['push'](_0x46dbb4['shift']());}}}(a0_0x206d,0x5c0bd));import{css}from'lit';function a0_0x7d11(_0x3b579d,_0x2fac24){const _0x206dbb=a0_0x206d();return a0_0x7d11=function(_0x7d11be,_0x338174){_0x7d11be=_0x7d11be-0xee;let _0x34666c=_0x206dbb[_0x7d11be];return _0x34666c;},a0_0x7d11(_0x3b579d,_0x2fac24);}function a0_0x206d(){const _0x7e7f28=['19768441XWuZwA','2pFUEMc','10RNTHlk','1020848FOqDsi','354326hABILy','3132BiYiaY','1815735sAzDYG','775LxBDTV','4853790vdldGn','12gJTbEh','2226427pAYtSE'];a0_0x206d=function(){return _0x7e7f28;};return a0_0x206d();}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_0x1098a0=a0_0x3caa;(function(_0x26957d,_0x4b8741){const _0x41e94f=a0_0x3caa,_0x1fca4e=_0x26957d();while(!![]){try{const _0x4b2e76=parseInt(_0x41e94f(0xb6))/0x1+-parseInt(_0x41e94f(0xa9))/0x2*(-parseInt(_0x41e94f(0xb9))/0x3)+-parseInt(_0x41e94f(0xa7))/0x4*(parseInt(_0x41e94f(0xb8))/0x5)+parseInt(_0x41e94f(0xc3))/0x6*(-parseInt(_0x41e94f(0x9e))/0x7)+parseInt(_0x41e94f(0xa5))/0x8+-parseInt(_0x41e94f(0xa0))/0x9+-parseInt(_0x41e94f(0xbb))/0xa*(-parseInt(_0x41e94f(0xbd))/0xb);if(_0x4b2e76===_0x4b8741)break;else _0x1fca4e['push'](_0x1fca4e['shift']());}catch(_0x520650){_0x1fca4e['push'](_0x1fca4e['shift']());}}}(a0_0x12a4,0x3bd0c));import'@material/mwc-icon';import{html,LitElement}from'lit';import{connect}from'pwa-helpers';function a0_0x3caa(_0x3c652a,_0x3bdbfd){const _0x12a400=a0_0x12a4();return a0_0x3caa=function(_0x3caaef,_0x2bf86c){_0x3caaef=_0x3caaef-0x9c;let _0x37953f=_0x12a400[_0x3caaef];return _0x37953f;},a0_0x3caa(_0x3c652a,_0x3bdbfd);}import{navigate,store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';import{DynamicMenuLandscapeStyles}from'./dynamic-menu-landscape-styles';export class DynamicMenuLandscape extends connect(store)(LitElement){static get[a0_0x1098a0(0xb7)](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get[a0_0x1098a0(0xa4)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}['render'](){const _0x3804c4=a0_0x1098a0,{menus:_0x3d8686=[],activeTopLevel:_0x8285c6,activeMenu:_0x39f891}=this;return html`
|
|
2
2
|
<div id="wrap">
|
|
3
3
|
<ul>
|
|
4
|
-
${
|
|
5
|
-
<li ?active=${
|
|
6
|
-
<a href=${
|
|
7
|
-
${
|
|
4
|
+
${_0x3d8686[_0x3804c4(0xa2)](_0x33ed76=>_0x3804c4(0xc1)==_0x33ed76[_0x3804c4(0xa8)]?html``:html`
|
|
5
|
+
<li ?active=${_0x33ed76===_0x8285c6}>
|
|
6
|
+
<a href=${_0x33ed76['path']||'#'}>
|
|
7
|
+
${_0x33ed76[_0x3804c4(0xac)]?html`<mwc-icon>${_0x33ed76[_0x3804c4(0xac)]}</mwc-icon>`:html``} ${_0x33ed76[_0x3804c4(0xc8)]}
|
|
8
8
|
</a>
|
|
9
9
|
|
|
10
10
|
<ul submenus>
|
|
11
|
-
${
|
|
12
|
-
<li ?active=${
|
|
13
|
-
<a href=${
|
|
11
|
+
${_0x33ed76[_0x3804c4(0xba)]?.['map'](_0x537458=>html`
|
|
12
|
+
<li ?active=${_0x537458===_0x39f891}>
|
|
13
|
+
<a href=${_0x537458['path']||'#'}> ${_0x537458[_0x3804c4(0xc8)]} </a>
|
|
14
14
|
</li>
|
|
15
15
|
`)}
|
|
16
16
|
</ul>
|
|
17
17
|
|
|
18
18
|
<div description>
|
|
19
|
-
${
|
|
19
|
+
${_0x33ed76[_0x3804c4(0xac)]?html`<mwc-icon>${_0x33ed76[_0x3804c4(0xac)]}</mwc-icon>`:html``} ${_0x33ed76['description']||''}
|
|
20
20
|
</div>
|
|
21
21
|
</li>
|
|
22
22
|
`)}
|
|
23
23
|
</ul>
|
|
24
24
|
</div>
|
|
25
|
-
`;}[
|
|
25
|
+
`;}[a0_0x1098a0(0xae)](){const _0x89fd02=a0_0x1098a0;this[_0x89fd02(0x9d)][_0x89fd02(0xc0)](_0x89fd02(0xc6))[_0x89fd02(0xc7)](_0x89fd02(0xbe),this[_0x89fd02(0xb5)]['bind'](this),!0x1),this['renderRoot']['addEventListener']('click',_0x33d6e7=>{const _0x29c5a0=_0x89fd02;if(_0x33d6e7['target'][_0x29c5a0(0xa3)]){_0x33d6e7['stopPropagation'](),_0x33d6e7[_0x29c5a0(0xc5)]();let _0x4c5496=_0x33d6e7[_0x29c5a0(0xb1)][_0x29c5a0(0xa3)];return void this[_0x29c5a0(0xa6)](new CustomEvent(_0x29c5a0(0xbc),{'bubbles':!0x0,'detail':this[_0x29c5a0(0xaf)]===_0x4c5496?void 0x0:_0x4c5496}));}let _0x1baec7=_0x33d6e7[_0x29c5a0(0xb1)]['href'];_0x1baec7&&location['href']===_0x1baec7&&navigate(_0x1baec7+_0x29c5a0(0xb4),!0x0);}),this[_0x89fd02(0x9d)][_0x89fd02(0xc7)](_0x89fd02(0xab),_0x140780=>{const _0x121dbb=_0x89fd02;_0x140780[_0x121dbb(0xb1)][_0x121dbb(0xc4)](_0x121dbb(0xad));}),this[_0x89fd02(0x9d)][_0x89fd02(0xc7)](_0x89fd02(0x9f),_0x4ec05a=>{const _0x4c8523=_0x89fd02;_0x4ec05a[_0x4c8523(0xb1)][_0x4c8523(0xbf)](_0x4c8523(0xad),'');});}['onWheelEvent'](_0x3ab0e7){const _0x19f422=a0_0x1098a0,_0x2f3298=_0x3ab0e7[_0x19f422(0x9c)];var _0x1ab9ee=Math[_0x19f422(0xb3)](-0x1,Math[_0x19f422(0xaa)](0x1,_0x3ab0e7[_0x19f422(0xb2)]||-_0x3ab0e7[_0x19f422(0xa1)]));_0x2f3298[_0x19f422(0xb0)]-=0xa*_0x1ab9ee,_0x3ab0e7[_0x19f422(0xc5)]();}}customElements[a0_0x1098a0(0xc2)]('dynamic-menu-landscape',DynamicMenuLandscape);function a0_0x12a4(){const _0x364807=['addEventListener','name','currentTarget','renderRoot','7KWJSrv','transitionend','1360026vCFOPF','detail','map','submenu','properties','554848XeQqsX','dispatchEvent','1228xcELRI','type','376ubDyjX','min','transitionstart','icon','settled','firstUpdated','activeTopLevel','scrollLeft','target','wheelDelta','max','#force','onWheelEvent','177285fhAdGF','styles','4035ainftW','219yqZKgJ','menus','10UxtePb','active-toplevel','6235471SNpdLQ','mousewheel','setAttribute','querySelector','group','define','1100154lnTrKS','removeAttribute','preventDefault','#wrap'];a0_0x12a4=function(){return _0x364807;};return a0_0x12a4();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x4315dd=a0_0x455b;(function(_0x5cd376,_0x207a5e){var _0x37f1dd=a0_0x455b,_0x29b6c1=_0x5cd376();while(!![]){try{var _0x23acc5=parseInt(_0x37f1dd(0x1c7))/0x1*(-parseInt(_0x37f1dd(0x1ce))/0x2)+-parseInt(_0x37f1dd(0x1d7))/0x3+-parseInt(_0x37f1dd(0x1b3))/0x4*(parseInt(_0x37f1dd(0x1d1))/0x5)+parseInt(_0x37f1dd(0x1d5))/0x6+-parseInt(_0x37f1dd(0x1bd))/0x7*(parseInt(_0x37f1dd(0x1c3))/0x8)+-parseInt(_0x37f1dd(0x1cf))/0x9*(parseInt(_0x37f1dd(0x1ba))/0xa)+-parseInt(_0x37f1dd(0x1b8))/0xb*(-parseInt(_0x37f1dd(0x1b9))/0xc);if(_0x23acc5===_0x207a5e)break;else _0x29b6c1['push'](_0x29b6c1['shift']());}catch(_0x159b06){_0x29b6c1['push'](_0x29b6c1['shift']());}}}(a0_0x58bb,0xf2f92));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 a0_0x455b(_0x443b3a,_0x234940){var _0x58bb5b=a0_0x58bb();return a0_0x455b=function(_0x455b0f,_0x39a65e){_0x455b0f=_0x455b0f-0x1b3;var _0x23d7da=_0x58bb5b[_0x455b0f];return _0x23d7da;},a0_0x455b(_0x443b3a,_0x234940);}function isActiveMenu(_0x261ebd,_0x5b6085){var _0x5bcba3=a0_0x455b;return _0x261ebd['path']?.[_0x5bcba3(0x1bf)]('?')[0x0]===_0x5b6085||_0x261ebd[_0x5bcba3(0x1c1)]&&'function'==typeof _0x261ebd[_0x5bcba3(0x1c1)]&&_0x261ebd[_0x5bcba3(0x1c1)]['call'](_0x261ebd,{'path':_0x5b6085});}export class DynamicMenuPart extends connect(store)(LitElement){static get[a0_0x4315dd(0x1bc)](){return{'page':String,'resourceId':String,'menus':Array,'orientation':String,'_activeTopLevel':Object,'_activeMenu':Object,'_path':String};}static get[a0_0x4315dd(0x1b6)](){return[ScrollbarStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -27,18 +27,18 @@ var a0_0x5b44ab=a0_0x17aa;function a0_0x17aa(_0x426315,_0xd1911c){var _0x5afe5a=
|
|
|
27
27
|
dynamic-menu-landscape {
|
|
28
28
|
flex: 1;
|
|
29
29
|
}
|
|
30
|
-
`];}[
|
|
30
|
+
`];}[a0_0x4315dd(0x1c6)](){var _0x210124=a0_0x4315dd;return html`
|
|
31
31
|
<slot name="head"></slot>
|
|
32
|
-
${
|
|
33
|
-
.menus=${this[
|
|
34
|
-
.activeTopLevel=${this[
|
|
35
|
-
.activeMenu=${this[
|
|
36
|
-
.path=${this[
|
|
32
|
+
${_0x210124(0x1da)!==this['orientation']?html`<dynamic-menu-portrait
|
|
33
|
+
.menus=${this['menus']}
|
|
34
|
+
.activeTopLevel=${this[_0x210124(0x1c9)]}
|
|
35
|
+
.activeMenu=${this['_activeMenu']}
|
|
36
|
+
.path=${this['_path']}
|
|
37
37
|
></dynamic-menu-portrait>`:html`<dynamic-menu-landscape
|
|
38
|
-
.menus=${this[
|
|
39
|
-
.activeTopLevel=${this[
|
|
40
|
-
.activeMenu=${this[
|
|
41
|
-
.path=${this[
|
|
38
|
+
.menus=${this[_0x210124(0x1b5)]}
|
|
39
|
+
.activeTopLevel=${this[_0x210124(0x1c9)]}
|
|
40
|
+
.activeMenu=${this[_0x210124(0x1db)]}
|
|
41
|
+
.path=${this[_0x210124(0x1be)]}
|
|
42
42
|
></dynamic-menu-landscape>`}
|
|
43
43
|
<slot name="tail"></slot>
|
|
44
|
-
`;}[
|
|
44
|
+
`;}[a0_0x4315dd(0x1cb)](){var _0x6bf2ed=a0_0x4315dd;this['renderRoot'][_0x6bf2ed(0x1dc)](_0x6bf2ed(0x1b4),_0x6fef04=>{var _0x110f63=_0x6bf2ed;_0x6fef04[_0x110f63(0x1c2)](),_0x6fef04[_0x110f63(0x1d0)](),this['_activeTopLevel']=_0x6fef04[_0x110f63(0x1cc)];});}['updated'](_0x518e19){var _0x59c01f=a0_0x4315dd;(_0x518e19[_0x59c01f(0x1d8)]('menus')||_0x518e19['has'](_0x59c01f(0x1c0))||_0x518e19[_0x59c01f(0x1d8)]('resourceId'))&&this[_0x59c01f(0x1cd)](),_0x518e19['has'](_0x59c01f(0x1c8))&&(_0x59c01f(0x1d4)==this[_0x59c01f(0x1c8)]?this[_0x59c01f(0x1d6)](_0x59c01f(0x1da)):this[_0x59c01f(0x1b7)](_0x59c01f(0x1da),!0x0)),_0x518e19['has'](_0x59c01f(0x1c4))&&this[_0x59c01f(0x1d9)](this[_0x59c01f(0x1c4)]);}['stateChanged'](_0x227b9b){var _0x1df22b=a0_0x4315dd;this[_0x1df22b(0x1c0)]=_0x227b9b[_0x1df22b(0x1c5)][_0x1df22b(0x1c0)],this[_0x1df22b(0x1ca)]=_0x227b9b[_0x1df22b(0x1c5)]['resourceId'],this[_0x1df22b(0x1b5)]=_0x227b9b[_0x1df22b(0x1d3)]['menus']||[],this['slotTemplate']=_0x227b9b[_0x1df22b(0x1d3)]['slotTemplate'];}['_findActivePage'](){var _0x556fe3=a0_0x4315dd,_0x32e365,_0x52b57e=this[_0x556fe3(0x1ca)]?this[_0x556fe3(0x1c0)]+'/'+this[_0x556fe3(0x1ca)]:this['page'],_0x4a4a2c=this[_0x556fe3(0x1b5)]||[];this['_activeTopLevel']=_0x4a4a2c[_0x556fe3(0x1d2)](_0x49f536=>isActiveMenu(_0x49f536,_0x52b57e)?(_0x32e365=_0x49f536,!0x0):_0x49f536['menus']?!!(_0x32e365=_0x49f536[_0x556fe3(0x1b5)]['find'](_0xa4bd02=>isActiveMenu(_0xa4bd02,_0x52b57e))):void 0x0),this[_0x556fe3(0x1be)]=_0x52b57e,this['_activeMenu']=_0x32e365||this[_0x556fe3(0x1c9)];}}function a0_0x58bb(){var _0x5f52d6=['35qlgbFE','_path','split','page','active','stopPropagation','669528XtlozT','slotTemplate','route','render','142bXZrgw','orientation','_activeTopLevel','resourceId','firstUpdated','detail','_findActivePage','22772utAkOy','575721SzMlYl','preventDefault','4397780fKJtLF','find','metaUI','portrait','3097662quAwwT','removeAttribute','1183554rckrCr','has','replaceChild','landscape','_activeMenu','addEventListener','8zhQNCM','active-toplevel','menus','styles','setAttribute','9108fMzVxx','69504rOlcKk','20Xgebzf','define','properties'];a0_0x58bb=function(){return _0x5f52d6;};return a0_0x58bb();}customElements[a0_0x4315dd(0x1bb)]('dynamic-menu-part',DynamicMenuPart);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5871d7,_0x1b8ee2){const _0x124af9=a0_0x1335,_0x211bcf=_0x5871d7();while(!![]){try{const _0x3729fc=parseInt(_0x124af9(0x12f))/0x1*(-parseInt(_0x124af9(0x129))/0x2)+parseInt(_0x124af9(0x131))/0x3*(-parseInt(_0x124af9(0x12e))/0x4)+parseInt(_0x124af9(0x12b))/0x5*(-parseInt(_0x124af9(0x12a))/0x6)+-parseInt(_0x124af9(0x12c))/0x7+parseInt(_0x124af9(0x12d))/0x8+parseInt(_0x124af9(0x130))/0x9*(-parseInt(_0x124af9(0x128))/0xa)+-parseInt(_0x124af9(0x132))/0xb*(-parseInt(_0x124af9(0x133))/0xc);if(_0x3729fc===_0x1b8ee2)break;else _0x211bcf['push'](_0x211bcf['shift']());}catch(_0x417f7d){_0x211bcf['push'](_0x211bcf['shift']());}}}(a0_0x31d1,0x504dc));function a0_0x31d1(){const _0xd4c4b8=['28554uuseWi','130SrHWmk','2979669iatdmv','2721072MyKAkc','348YkWZSw','1eKEjIZ','2904813DrWSAw','20223cHbQrE','24599674HVAoox','12YACTIE','20eTfUJE','932324ElUChw'];a0_0x31d1=function(){return _0xd4c4b8;};return a0_0x31d1();}function a0_0x1335(_0x5a9b94,_0x1ffdce){const _0x31d1f8=a0_0x31d1();return a0_0x1335=function(_0x1335c2,_0x5804c6){_0x1335c2=_0x1335c2-0x128;let _0x465663=_0x31d1f8[_0x1335c2];return _0x465663;},a0_0x1335(_0x5a9b94,_0x1ffdce);}import{css}from'lit';export const DynamicMenuPortraitStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3da48f=a0_0x1f12;(function(_0x403dd4,_0x4c0c79){const _0x273db1=a0_0x1f12,_0x2639c4=_0x403dd4();while(!![]){try{const _0x264736=-parseInt(_0x273db1(0x212))/0x1*(-parseInt(_0x273db1(0x205))/0x2)+parseInt(_0x273db1(0x1ef))/0x3+-parseInt(_0x273db1(0x1f8))/0x4*(-parseInt(_0x273db1(0x1fd))/0x5)+-parseInt(_0x273db1(0x200))/0x6+parseInt(_0x273db1(0x1ff))/0x7*(-parseInt(_0x273db1(0x1fa))/0x8)+parseInt(_0x273db1(0x1f6))/0x9+-parseInt(_0x273db1(0x1fc))/0xa*(parseInt(_0x273db1(0x202))/0xb);if(_0x264736===_0x4c0c79)break;else _0x2639c4['push'](_0x2639c4['shift']());}catch(_0x10fb88){_0x2639c4['push'](_0x2639c4['shift']());}}}(a0_0x5159,0xe65b7));import'@material/mwc-icon';import{html,LitElement}from'lit';function a0_0x1f12(_0x18c07a,_0x439f13){const _0x515959=a0_0x5159();return a0_0x1f12=function(_0x1f12b0,_0x379d79){_0x1f12b0=_0x1f12b0-0x1ef;let _0x5c86aa=_0x515959[_0x1f12b0];return _0x5c86aa;},a0_0x1f12(_0x18c07a,_0x439f13);}import{navigate}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';import{DynamicMenuPortraitStyles}from'./dynamic-menu-portrait-styles';export class DynamicMenuPortrait extends LitElement{static get[a0_0x3da48f(0x210)](){return[ScrollbarStyles,DynamicMenuPortraitStyles];}static get[a0_0x3da48f(0x1fb)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x3da48f(0x20e)](_0x1d0007,_0x51cf48,_0x7dd2f4){const _0x1f4ab0=a0_0x3da48f;return html`
|
|
2
2
|
<ul>
|
|
3
|
-
${
|
|
4
|
-
<li ?active=${
|
|
5
|
-
<a href=${
|
|
6
|
-
${
|
|
7
|
-
<mwc-icon>${
|
|
8
|
-
${
|
|
3
|
+
${_0x1d0007[_0x1f4ab0(0x214)](_0x3174a4=>{const _0x5f12ac=_0x1f4ab0;var {type:_0x5e92bc,active:_0x342222,path:_0x4493fc,name:_0x3a5026,badge:_0x17006f,icon:_0x37095e,menus:_0x1ddc4c}=_0x3174a4;return _0x342222=!(!_0x342222||'function'!=typeof _0x342222)&&_0x342222[_0x5f12ac(0x209)](_0x3174a4,{'path':this[_0x5f12ac(0x1f0)]}),_0x17006f=_0x5f12ac(0x201)==typeof _0x17006f?_0x17006f[_0x5f12ac(0x209)](_0x3174a4):_0x17006f??!0x1,_0x5f12ac(0x203)==_0x5e92bc?html`<li group-label>${_0x3a5026}</li>`:html`
|
|
4
|
+
<li ?active=${_0x51cf48?_0x3174a4===_0x51cf48:_0x342222} .menu=${_0x3174a4} menu>
|
|
5
|
+
<a href=${_0x4493fc||'#'}>
|
|
6
|
+
${_0x1ddc4c?.['length']>0x0?html` <mwc-icon submenu-button></mwc-icon> `:html``}
|
|
7
|
+
<mwc-icon>${_0x37095e}</mwc-icon>
|
|
8
|
+
${_0x3a5026} ${!0x1!==_0x17006f?html`<div badge>${_0x17006f}</div>`:html``}
|
|
9
9
|
</a>
|
|
10
|
-
${
|
|
10
|
+
${_0x1ddc4c&&this['renderMenus'](_0x1ddc4c,_0x7dd2f4)}
|
|
11
11
|
</li>
|
|
12
12
|
`;})}
|
|
13
13
|
</ul>
|
|
14
|
-
`;}[
|
|
14
|
+
`;}[a0_0x3da48f(0x211)](){const _0x549103=a0_0x3da48f,{menus:_0x2ae7d0,activeTopLevel:_0x2f6eea,activeMenu:_0x5a6194}=this;return this[_0x549103(0x20e)](_0x2ae7d0,_0x2f6eea,_0x5a6194);}['firstUpdated'](){const _0x14c34e=a0_0x3da48f;this[_0x14c34e(0x1f1)]['addEventListener'](_0x14c34e(0x1f9),_0x476e55=>{const _0x203874=_0x14c34e,_0x19674f=_0x476e55[_0x203874(0x20b)][_0x203874(0x207)](_0x203874(0x1fe));if(_0x19674f?.['menu']){let _0x53bb63=_0x19674f[_0x203874(0x20c)];_0x53bb63[_0x203874(0x1f0)]||(_0x476e55[_0x203874(0x204)](),_0x476e55[_0x203874(0x20a)]()),this[_0x203874(0x1f5)](new CustomEvent('active-toplevel',{'bubbles':!0x0,'detail':this[_0x203874(0x1f7)]===_0x53bb63?void 0x0:_0x53bb63}));}let _0x5e0d25=_0x476e55[_0x203874(0x20b)][_0x203874(0x1f3)];_0x5e0d25&&location[_0x203874(0x1f3)]===_0x5e0d25&&navigate(_0x5e0d25+'#force',!0x0);}),this['renderRoot'][_0x14c34e(0x20f)](_0x14c34e(0x206),_0x2c2a9e=>{const _0x17af50=_0x14c34e;_0x2c2a9e[_0x17af50(0x20b)][_0x17af50(0x213)](_0x17af50(0x1f4));}),this['renderRoot'][_0x14c34e(0x20f)](_0x14c34e(0x1f2),_0x43427e=>{const _0x21feb0=_0x14c34e;_0x43427e[_0x21feb0(0x20b)][_0x21feb0(0x208)](_0x21feb0(0x1f4),'');});}}function a0_0x5159(){const _0x22d9ee=['render','73hgRIAA','removeAttribute','map','4107129zSLlLK','path','renderRoot','transitionend','href','settled','dispatchEvent','7125849pscdSn','activeTopLevel','28jqlygE','click','16cPdFuV','properties','266410FwspJe','880475iaafnv','[menu]','6551125beVXkw','1502742wINoBh','function','341aJnKwi','group','stopPropagation','13648TMGjMD','transitionstart','closest','setAttribute','call','preventDefault','target','menu','define','renderMenus','addEventListener','styles'];a0_0x5159=function(){return _0x22d9ee;};return a0_0x5159();}customElements[a0_0x3da48f(0x20d)]('dynamic-menu-portrait',DynamicMenuPortrait);
|