@things-factory/meta-ui 6.0.147 → 6.0.149
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 +10 -10
- 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 +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 +28 -28
- 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 +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 +102 -102
- package/client/utils/service-util.js +13 -13
- package/client/utils/terms-util.js +2 -2
- package/client/utils/ui-util.js +1 -1
- package/client/utils/value-util.js +1 -1
- package/client/viewparts/dynamic-menu-landscape-styles.js +2 -2
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +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/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_0x2ac31d=a0_0x47c8;(function(_0x194d2b,_0x1d0ef8){const _0x520ab1=a0_0x47c8,_0x2ef90e=_0x194d2b();while(!![]){try{const _0x56a837=-parseInt(_0x520ab1(0xba))/0x1+-parseInt(_0x520ab1(0xad))/0x2+-parseInt(_0x520ab1(0xe7))/0x3+-parseInt(_0x520ab1(0xcc))/0x4+parseInt(_0x520ab1(0x94))/0x5*(-parseInt(_0x520ab1(0xee))/0x6)+parseInt(_0x520ab1(0xa2))/0x7+parseInt(_0x520ab1(0xb8))/0x8;if(_0x56a837===_0x1d0ef8)break;else _0x2ef90e['push'](_0x2ef90e['shift']());}catch(_0x2634c1){_0x2ef90e['push'](_0x2ef90e['shift']());}}}(a0_0x2aca,0xe5a06));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';import{TermsUtil}from'./terms-util';function a0_0x47c8(_0x4cd86f,_0x244a00){const _0x2acafd=a0_0x2aca();return a0_0x47c8=function(_0x47c865,_0x151c74){_0x47c865=_0x47c865-0x80;let _0x17953f=_0x2acafd[_0x47c865];return _0x17953f;},a0_0x47c8(_0x4cd86f,_0x244a00);}function a0_0x2aca(){const _0x117cb4=['forEach','cancel','extensions','group','__seq__','showAlertPopup','__selected__','active','record','\x0a\x20\x20\x20\x20\x20\x20','key','codeItems','updatedAt','noteq','getSelectedIdList','iconPath','getCodeSelectorData','isEmpty','push','5zeweWp','data','findOne','path','GROUP','deleteListByIds','text.NOTHING_CHANGED','callScenario','isNotEmpty','showGraphqlException','filter','fetch','checkClientError','button.','1011360IsVMna','name','showToast','routingType','success\x20to\x20save','menus','MENU','showGraphqlErrorResponse','numberOfApprovalPendings','tText','errors','1313534UGhlqB','networkError','updateMultipleData','id,template','createdAt','menuType','result','children','columns','code','reduce','47412520TTuaBs','arrangeMenuRoutes','1753647yjVGxN','message','getWorkCodeByName','dispatch','rank','imex','confirm','searchMenuGridPersnalTemplate','total','gutter','__dirty__','unshift','text.are_you_sure','map','query','_config','runScenario','title','3437040sHkZPS','myDynamicMenus','xlsx','hiddenFlag','\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','text.nothing_changed','records','error','hidden','items','object','info','dirtyRecords','__origin__','routing','numberOfToDos','findIndex','type','HOME','resourceUrl','updateMultiple','getCodeByScenario','sort','\x0a\x20\x20\x20\x20','category','details','updater','3817020LPFyDQ','Graphql\x20Error','deleteListByGristSelected','buildArgs','description','isArray','SCREEN','3530886xKLUWB','workCodeByName','badge','value','split','exportableData','__dirtyfields__','searchByPagination','success\x20to\x20process','length','todo-list','text.there_is_nothing_to_delete','searchMyDynamicMenus','template','parent','includes','tMenu','question','text.nothing_selected','undefined'];a0_0x2aca=function(){return _0x117cb4;};return a0_0x2aca();}import{UiUtil}from'./ui-util';import a0_0x5373e3 from'graphql-tag';import{ValueUtil}from'./value-util';import{asyncReplace}from'lit/directives/async-replace.js';import a0_0xac1c39 from'i18next';import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';export class ServiceUtil{static async[a0_0x2ac31d(0x8c)](_0x32fc6){const _0x236816=a0_0x2ac31d;if(Array[_0x236816(0xec)](_0x32fc6))return _0x32fc6[_0x236816(0xc7)](_0x38fecc=>_0x236816(0xd6)==typeof _0x38fecc?{'name':_0x38fecc[_0x236816(0xf1)],'description':_0x38fecc['display']}:{'name':_0x38fecc,'description':_0x38fecc});let _0x1251ab=await ServiceUtil[_0x236816(0xbc)](_0x32fc6);return _0x1251ab&&_0x1251ab[_0x236816(0xf7)]>0x0?_0x1251ab:await getCodeByName(_0x32fc6);}static async['getWorkCodeByName'](_0x318a8d){const _0x21647a=a0_0x2ac31d,_0x1d017e=await client['query']({'query':a0_0x5373e3`
|
|
2
2
|
query workCodeByName($name: String!) {
|
|
3
3
|
workCodeByName(name: $name) {
|
|
4
4
|
details {
|
|
@@ -8,32 +8,32 @@ const a0_0x2efc0a=a0_0xdbd3;(function(_0x39e98b,_0x4343f1){const _0x3f7e47=a0_0x
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
`,'variables':{'name':
|
|
11
|
+
`,'variables':{'name':_0x318a8d},'context':gqlContext()});return!_0x1d017e[_0x21647a(0xac)]&&_0x1d017e[_0x21647a(0x95)]['workCodeByName']&&_0x1d017e[_0x21647a(0x95)][_0x21647a(0xef)]['details']?_0x1d017e[_0x21647a(0x95)][_0x21647a(0xef)][_0x21647a(0xe5)][_0x21647a(0xe2)]((_0x2d24b6,_0xdfb250)=>_0x2d24b6['rank']-_0xdfb250['rank']):[];}static async[a0_0x2ac31d(0x91)](_0x71b2c7){const _0x2ed5ab=a0_0x2ac31d;let _0x5bdd4e=(await ServiceUtil[_0x2ed5ab(0x8c)](_0x71b2c7))['map'](_0x5710d1=>({'value':_0x5710d1['name'],'display':_0x5710d1[_0x2ed5ab(0xeb)]}));return _0x5bdd4e[_0x2ed5ab(0xc5)]({'value':'','display':''}),_0x5bdd4e;}static async[a0_0x2ac31d(0xe1)](_0xf38328,_0x345291){const _0x26e251=a0_0x2ac31d;let _0x31a6de=await ServiceUtil[_0x26e251(0x9b)](null,_0xf38328,_0x345291);return _0x31a6de[_0x26e251(0xc5)]({'value':'','display':''}),_0x31a6de[_0x26e251(0xc7)](_0xb6e687=>({'value':_0xb6e687[_0x26e251(0xa3)],'display':_0xb6e687[_0x26e251(0xeb)]}));}static async['getCodeByEntity']({queryName:_0x481e68,codeField:_0x4af023=a0_0x2ac31d(0xa3),dispField:_0x3124a8='description',filters:_0x45df9a=[],sorters:_0x45ea37=[]}){const _0x2f8384=a0_0x2ac31d;let _0x2ee6bd=_0x2f8384(0x8a)+_0x4af023+'\x0a\x20\x20\x20\x20\x20\x20'+_0x3124a8+_0x2f8384(0xe3),_0x1ec11a=await ServiceUtil[_0x2f8384(0xf5)](_0x481e68,_0x45df9a,_0x45ea37,0x0,0x0,_0x2ee6bd),_0x31d86a=[{'value':'','display':''}];return _0x1ec11a[_0x2f8384(0xd2)][_0x2f8384(0x81)](_0x689c0b=>{_0x31d86a['push']({'value':_0x689c0b[_0x4af023],'display':_0x689c0b[_0x3124a8]});}),_0x31d86a;}static async[a0_0x2ac31d(0xcd)](){const _0x159400=a0_0x2ac31d;let _0x2a5355=await ServiceUtil[_0x159400(0xfa)]();return null!=_0x2a5355?ServiceUtil[_0x159400(0xb9)](_0x2a5355):null;}static async[a0_0x2ac31d(0xc1)](_0x3253b7){const _0x3a3a6a=a0_0x2ac31d;let _0x100bab=[{'name':'menu.id','operator':'eq','value':_0x3253b7}],_0x294643=await ServiceUtil[_0x3a3a6a(0xf5)]('gridPersonalizeTemplates',_0x100bab,[],0x0,0x0,_0x3a3a6a(0xb0));return 0x0==_0x294643['total']?{}:{'id':_0x294643[_0x3a3a6a(0xd2)][0x0]['id'],'template':JSON['parse'](_0x294643[_0x3a3a6a(0xd2)][0x0][_0x3a3a6a(0xfb)])};}static[a0_0x2ac31d(0xb9)](_0x57f081){const _0x595681=a0_0x2ac31d;let _0x1d3fe7=[];_0x57f081[_0x595681(0x81)](_0x160ed5=>{const _0x41e2fa=_0x595681;_0x1d3fe7[_0x41e2fa(0x93)](_0x160ed5),_0x160ed5[_0x41e2fa(0xb4)]&&(_0x160ed5[_0x41e2fa(0xb4)][_0x41e2fa(0xe2)](function(_0x3a6b38,_0x38089f){const _0x56f00e=_0x41e2fa;return _0x3a6b38[_0x56f00e(0xbe)]-_0x38089f[_0x56f00e(0xbe)];}),_0x160ed5[_0x41e2fa(0xb4)]['forEach'](_0x387f7b=>{const _0x4e615a=_0x41e2fa;0x1!=_0x387f7b[_0x4e615a(0xcf)]&&(_0x387f7b['parent']=_0x160ed5,_0x1d3fe7[_0x4e615a(0x93)](_0x387f7b));}));});let _0x43a58f=_0x1d3fe7[_0x595681(0xc7)](_0x15092d=>{const _0x4fd5bd=_0x595681;if(_0x4fd5bd(0x98)==_0x15092d[_0x4fd5bd(0xb2)]||_0x4fd5bd(0xa8)==_0x15092d[_0x4fd5bd(0xb2)]){let _0x546dd7={'id':_0x15092d['id'],'parent':!0x0,'name':TermsUtil[_0x4fd5bd(0xfe)](_0x15092d[_0x4fd5bd(0xa3)]),'icon':_0x15092d[_0x4fd5bd(0x90)],'type':'GROUP'==_0x15092d[_0x4fd5bd(0xb2)]?_0x4fd5bd(0x84):'','menus':[]};return _0x15092d[_0x4fd5bd(0xda)]&&(_0x546dd7[_0x4fd5bd(0x97)]=_0x15092d[_0x4fd5bd(0xda)]),_0x546dd7;}return{'id':'0'};})['filter'](_0x1a977e=>'0'!=_0x1a977e['id']),_0x44027c=_0x1d3fe7[_0x595681(0xc7)](_0x2bbf1a=>{const _0x35e506=_0x595681;if(_0x35e506(0xed)==_0x2bbf1a[_0x35e506(0xb2)]||'HIDDEN-PAGE'==_0x2bbf1a[_0x35e506(0xb2)]){let _0x34517c=_0x43a58f['find'](_0x81054f=>_0x81054f['id']==_0x2bbf1a[_0x35e506(0xfc)]['id']);if(_0x34517c){let _0x4b4dfe=TermsUtil[_0x35e506(0xfe)](_0x2bbf1a[_0x35e506(0xa3)]);return _0x35e506(0xed)==_0x2bbf1a[_0x35e506(0xb2)]&&_0x34517c[_0x35e506(0xa7)][_0x35e506(0x93)]({'id':_0x2bbf1a['id'],'name':_0x4b4dfe,'path':_0x2bbf1a[_0x35e506(0xda)],'icon':_0x2bbf1a[_0x35e506(0x90)]}),{'id':_0x2bbf1a['id'],'parent':!0x1,'parent_id':_0x34517c['id'],'title':_0x4b4dfe,'tagname':_0x2bbf1a[_0x35e506(0xe4)],'page':_0x2bbf1a[_0x35e506(0xda)],'template':_0x2bbf1a[_0x35e506(0xdf)],'routing_type':_0x2bbf1a[_0x35e506(0xa5)]};}return{'id':'0'};}return _0x35e506(0xde)==_0x2bbf1a[_0x35e506(0xb2)]?{'id':_0x2bbf1a['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil[_0x35e506(0xfe)](_0x2bbf1a['name']),'tagname':_0x2bbf1a[_0x35e506(0xe4)],'page':_0x2bbf1a[_0x35e506(0xda)],'template':_0x2bbf1a[_0x35e506(0xdf)],'routing_type':_0x2bbf1a['routingType']}:{'id':'0'};})[_0x595681(0x9e)](_0x17b96f=>null!=_0x17b96f&&'0'!=_0x17b96f['id']);_0x43a58f[_0x595681(0x9e)](_0x4aa031=>_0x595681(0x84)==_0x4aa031[_0x595681(0xdd)]&&_0x4aa031[_0x595681(0xa7)]&&_0x4aa031[_0x595681(0xa7)][_0x595681(0xf7)]>0x0)[_0x595681(0x81)](_0x53ef9d=>{const _0x34db12=_0x595681;let _0x4dce44=_0x43a58f[_0x34db12(0xdc)](_0x5324a7=>_0x5324a7['id']==_0x53ef9d['id'])+0x1;_0x43a58f['splice'](_0x4dce44,0x0,..._0x53ef9d[_0x34db12(0xa7)]);});let _0xc22d77=0x0;return _0x43a58f['forEach'](_0x502654=>{const _0x244786=_0x595681;_0x244786(0xf8)==_0x502654[_0x244786(0x97)]?(_0xc22d77++,_0x502654[_0x244786(0xf0)]=()=>asyncReplace(generateActivitySummary(_0x244786(0xdb))),_0x502654[_0x244786(0x88)]=({path:_0x31e121})=>/^activity\//['test'](_0x31e121)):'approval-pending-list'==_0x502654[_0x244786(0x97)]?(_0xc22d77++,_0x502654[_0x244786(0xf0)]=()=>asyncReplace(generateActivitySummary(_0x244786(0xaa))),_0x502654[_0x244786(0x88)]=({path:_0x17482b})=>/^activity\//['test'](_0x17482b)):'draft-list'==_0x502654['path']&&(_0xc22d77++,_0x502654[_0x244786(0xf0)]=()=>asyncReplace(generateActivitySummary('numberOfDrafts')));}),_0xc22d77>0x0&&startSubscribeActivitySummary(),{'menus':_0x43a58f,'routes':_0x44027c};}static async[a0_0x2ac31d(0xfa)](){const _0x321904=a0_0x2ac31d;let _0x316209=await ServiceUtil[_0x321904(0xf5)](_0x321904(0xa7),[{'name':_0x321904(0xcf),'operator':_0x321904(0x8e),'value':!0x0},{'name':'menuType','operator':'in','value':[_0x321904(0xde),_0x321904(0xa8),_0x321904(0x98)]}],[{'name':'rank'}],0x0,0x0,_0x321904(0xd0));return _0x316209?_0x316209[_0x321904(0xd2)]:[];}static async[a0_0x2ac31d(0xa9)](_0x4eac57){const _0x506094=a0_0x2ac31d;if(_0x4eac57[_0x506094(0xac)]&&_0x4eac57[_0x506094(0xac)][_0x506094(0xf7)]>0x0){let _0x2bf95a=_0x4eac57[_0x506094(0xac)][0x0],_0x2b47d9=_0x2bf95a['message'],_0x260bcd=_0x2bf95a[_0x506094(0xbb)];_0x2bf95a[_0x506094(0x83)]&&(_0x260bcd=_0x2bf95a[_0x506094(0x83)][_0x506094(0xb6)]),await UiUtil[_0x506094(0x86)](_0x260bcd,_0x2b47d9,_0x506094(0xd3),'confirm');}}static async[a0_0x2ac31d(0x9d)](_0xdd8e4a){const _0x3ef182=a0_0x2ac31d;_0xdd8e4a&&(_0xdd8e4a[_0x3ef182(0xae)]&&_0xdd8e4a[_0x3ef182(0xae)][_0x3ef182(0xb3)]?await ServiceUtil[_0x3ef182(0xa9)](_0xdd8e4a[_0x3ef182(0xae)][_0x3ef182(0xb3)]):await UiUtil[_0x3ef182(0x86)](_0x3ef182(0xe8),_0xdd8e4a[_0x3ef182(0xbb)],'error',_0x3ef182(0xc0)));}static async[a0_0x2ac31d(0xf3)](_0x21c2d3,_0x58c715,_0xf993f2){const _0x211bb6=a0_0x2ac31d;var _0x581d9a=_0xf993f2[_0x211bb6(0xc9)][_0x211bb6(0xb5)]['filter'](_0x218377=>_0x211bb6(0xc3)!==_0x218377['type']&&void 0x0!==_0x218377[_0x211bb6(0x89)]&&void 0x0!==_0x218377['imex']&&!0x0!==_0x218377[_0x211bb6(0xd4)])['map'](_0x1042f8=>_0x1042f8['imex']),_0x4ce66c=_0xf993f2[_0x211bb6(0x95)][_0x211bb6(0xd2)][_0x211bb6(0xc7)](_0x4684fe=>({..._0xf993f2['_config']['columns'][_0x211bb6(0x9e)](_0xd49145=>'gutter'!==_0xd49145[_0x211bb6(0xdd)]&&void 0x0!==_0xd49145[_0x211bb6(0x89)]&&void 0x0!==_0xd49145[_0x211bb6(0xbf)]&&!0x0!==_0xd49145['hidden'])[_0x211bb6(0xb7)]((_0x3b9af8,_0x21dbfb)=>(_0x3b9af8[_0x21dbfb['imex']['key']]=_0x21dbfb[_0x211bb6(0xbf)][_0x211bb6(0x8b)][_0x211bb6(0xf2)]('.')[_0x211bb6(0xb7)]((_0x32e1e5,_0x24e180)=>_0x32e1e5&&_0x211bb6(0x80)!==_0x32e1e5[_0x24e180]?_0x32e1e5[_0x24e180]:void 0x0,_0x4684fe),_0x3b9af8),{})}));if(!_0x21c2d3)return{'header':_0x581d9a,'data':_0x4ce66c};store[_0x211bb6(0xbd)]({'type':EXPORT,'exportable':{'extension':_0x211bb6(0xce),'name':_0x58c715,'data':{'header':_0x581d9a,'data':_0x4ce66c}}});}static async[a0_0x2ac31d(0xf5)](_0x183109,_0x4e600e,_0x3383d5,_0x2d278f,_0x407c67,_0x1c544e){const _0x4750f9=a0_0x2ac31d;try{const _0x8fe599=await client[_0x4750f9(0xc8)]({'query':a0_0x5373e3`
|
|
12
12
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
13
|
-
${
|
|
13
|
+
${_0x183109}(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
14
14
|
items {
|
|
15
|
-
${
|
|
15
|
+
${_0x1c544e}
|
|
16
16
|
}
|
|
17
17
|
total
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,'variables':{'filters':
|
|
20
|
+
`,'variables':{'filters':_0x4e600e,'sortings':_0x3383d5,'pagination':{'page':_0x2d278f,'limit':_0x407c67}}});if(!_0x8fe599[_0x4750f9(0xac)])return{'records':_0x8fe599[_0x4750f9(0x95)][_0x183109][_0x4750f9(0xd5)],'total':_0x8fe599[_0x4750f9(0x95)][_0x183109][_0x4750f9(0xc2)]};ServiceUtil[_0x4750f9(0xa9)](_0x8fe599);}catch(_0x474d3d){ServiceUtil[_0x4750f9(0x9d)](_0x474d3d);}return null;}static async[a0_0x2ac31d(0x96)](_0x1373a0,_0xfccaea,_0x22a8e5){const _0x15da20=a0_0x2ac31d;try{let _0x2709f2=await client[_0x15da20(0xc8)]({'query':a0_0x5373e3`
|
|
21
21
|
query ($id: String!) {
|
|
22
|
-
${
|
|
23
|
-
${
|
|
22
|
+
${_0x1373a0}(id: $id) {
|
|
23
|
+
${_0x22a8e5}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,'variables':{'id':
|
|
26
|
+
`,'variables':{'id':_0xfccaea}});if(!_0x2709f2[_0x15da20(0xac)])return _0x2709f2[_0x15da20(0x95)][_0x1373a0]||{};ServiceUtil[_0x15da20(0xa9)](_0x2709f2);}catch(_0x399692){ServiceUtil[_0x15da20(0x9d)](_0x399692);}return null;}static[a0_0x2ac31d(0x8f)](_0x580144,_0x1b68cc){const _0x1ed6e7=a0_0x2ac31d,_0x20c928=_0x580144['selected'][_0x1ed6e7(0xc7)](_0x2cb8a3=>_0x2cb8a3['id']);return ValueUtil[_0x1ed6e7(0x92)](_0x20c928)&&0x1==_0x1b68cc&&UiUtil[_0x1ed6e7(0x86)](_0x1ed6e7(0x100),_0x1ed6e7(0xf9),_0x1ed6e7(0xd7),_0x1ed6e7(0xc0)),_0x20c928;}static async[a0_0x2ac31d(0xe9)](_0x5058c2,_0x57b0bd){const _0x4bc67a=a0_0x2ac31d;let _0x1704bb=ServiceUtil[_0x4bc67a(0x8f)](_0x5058c2,!0x0);ValueUtil[_0x4bc67a(0x9c)](_0x1704bb)&&(await ServiceUtil[_0x4bc67a(0x99)](_0x1704bb,_0x57b0bd)&&_0x5058c2[_0x4bc67a(0x9f)]());}static async[a0_0x2ac31d(0x99)](_0x35becd,_0x19b54e){const _0xb78b1e=a0_0x2ac31d;if(!(await UiUtil[_0xb78b1e(0x86)]('button.delete','text.are_you_sure','question','delete','cancel'))[_0xb78b1e(0xf1)])return!0x1;try{const _0x4ad33f=await client[_0xb78b1e(0xc8)]({'query':a0_0x5373e3`
|
|
27
27
|
mutation {
|
|
28
|
-
${
|
|
28
|
+
${_0x19b54e}(${gqlBuilder[_0xb78b1e(0xea)]({'ids':_0x35becd})})
|
|
29
29
|
}
|
|
30
|
-
`});if(!
|
|
30
|
+
`});if(!_0x4ad33f[_0xb78b1e(0xac)])return UiUtil[_0xb78b1e(0xa4)](_0xb78b1e(0xd7),TermsUtil[_0xb78b1e(0xab)]('success\x20to\x20delete')),!0x0;ServiceUtil[_0xb78b1e(0xa9)](_0x4ad33f);}catch(_0xbe79ba){ServiceUtil[_0xb78b1e(0x9d)](_0xbe79ba);}return!0x1;}static async[a0_0x2ac31d(0xaf)](_0x3f5104,_0x3faa12){const _0x17dd74=a0_0x2ac31d;let _0x386ab7=ServiceUtil['patchesForUpdateMultiple'](_0x3f5104);if(ValueUtil[_0x17dd74(0x9c)](_0x386ab7)){let _0x2dc130=await ServiceUtil[_0x17dd74(0xe0)](_0x3faa12,_0x386ab7);if(_0x2dc130)return _0x3f5104[_0x17dd74(0x9f)](),_0x2dc130;}return!0x1;}static async['updateMultiple'](_0x20eddd,_0x363098){const _0x466a92=a0_0x2ac31d;try{const _0x23bcc1=await client['query']({'query':a0_0x5373e3`
|
|
31
31
|
mutation {
|
|
32
|
-
${
|
|
32
|
+
${_0x20eddd}(${gqlBuilder['buildArgs']({'patches':_0x363098})}) {
|
|
33
33
|
id
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
`,'context':{'hasUpload':!0x0}});if(!
|
|
36
|
+
`,'context':{'hasUpload':!0x0}});if(!_0x23bcc1[_0x466a92(0xac)])return UiUtil[_0x466a92(0xa4)](_0x466a92(0xd7),TermsUtil[_0x466a92(0xab)](_0x466a92(0xa6))),!0x0;ServiceUtil[_0x466a92(0xa9)](_0x23bcc1);}catch(_0x49f95c){ServiceUtil[_0x466a92(0x9d)](_0x49f95c);}return!0x1;}static['patchesForUpdateMultiple'](_0x42adab,_0x387de3=!0x1){const _0x444298=a0_0x2ac31d;let _0x11b7d6=_0x42adab[_0x444298(0xd8)];if(_0x11b7d6&&0x0!=_0x11b7d6[_0x444298(0xf7)])return _0x11b7d6[_0x444298(0xc7)](_0x37f5ba=>{const _0x52ea97=_0x444298;let _0x46cfe0=_0x37f5ba['id']?{'id':_0x37f5ba['id']}:{};for(let _0x59e948 in _0x37f5ba)['creator',_0x52ea97(0xe6),_0x52ea97(0xb1),_0x52ea97(0x8d),_0x52ea97(0xc4),_0x52ea97(0xf4),_0x52ea97(0xd9),_0x52ea97(0x85),_0x52ea97(0x87)][_0x52ea97(0xfd)](_0x59e948)||(_0x37f5ba[_0x59e948]&&_0x52ea97(0xd6)==typeof _0x37f5ba[_0x59e948]&&0x0==_0x387de3?_0x46cfe0[_0x59e948]={'id':_0x37f5ba[_0x59e948]['id']}:_0x46cfe0[_0x59e948]=_0x37f5ba[_0x59e948]);return _0x46cfe0['cuFlag']=_0x37f5ba[_0x52ea97(0xc4)],_0x46cfe0;});UiUtil[_0x444298(0x86)](_0x444298(0xd1),_0x444298(0x9a),'info','confirm');}static async[a0_0x2ac31d(0x9b)](_0x324ccc,_0x17703e,_0x69cb77,_0x12fd2e=!0x0){const _0x2aad9c=a0_0x2ac31d;let _0x411178=!0x0;_0x324ccc&&!0x0===_0x12fd2e&&(_0x411178=(await UiUtil[_0x2aad9c(0x86)](_0x2aad9c(0xa1)+_0x324ccc,_0x2aad9c(0xc6),_0x2aad9c(0xff),_0x2aad9c(0xc0),_0x2aad9c(0x82)))['value']);if(_0x411178)try{const _0x1cecfd=await client[_0x2aad9c(0xc8)]({'query':a0_0x5373e3`
|
|
37
37
|
mutation ($scenarioName: String!, $variables: Object) {
|
|
38
38
|
runScenario(scenarioName: $scenarioName, variables: $variables) {
|
|
39
39
|
state
|
|
@@ -42,4 +42,4 @@ const a0_0x2efc0a=a0_0xdbd3;(function(_0x39e98b,_0x4343f1){const _0x3f7e47=a0_0x
|
|
|
42
42
|
__typename
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
`,'variables':{'scenarioName':
|
|
45
|
+
`,'variables':{'scenarioName':_0x17703e,'variables':_0x69cb77}});if(_0x1cecfd[_0x2aad9c(0xac)])ServiceUtil[_0x2aad9c(0xa9)](_0x1cecfd);else{if(this[_0x2aad9c(0xa0)](_0x1cecfd))return!0x0===_0x12fd2e&&UiUtil[_0x2aad9c(0xa4)](_0x2aad9c(0xd7),TermsUtil['tText'](_0x2aad9c(0xf6))),_0x1cecfd;}}catch(_0x483b7c){ServiceUtil['showGraphqlException'](_0x483b7c);}return!0x1;}static[a0_0x2ac31d(0xa0)](_0x52737f){const _0x28a30a=a0_0x2ac31d;if(_0x52737f&&_0x52737f['data']&&_0x52737f['data'][_0x28a30a(0xca)]&&_0x52737f[_0x28a30a(0x95)][_0x28a30a(0xca)][_0x28a30a(0x95)]&&_0x52737f[_0x28a30a(0x95)][_0x28a30a(0xca)]['data']['error']){let _0x563ef7=_0x52737f[_0x28a30a(0x95)][_0x28a30a(0xca)][_0x28a30a(0x95)][_0x28a30a(0xd3)];return UiUtil['showAlertPopup'](_0x563ef7[_0x28a30a(0xcb)],_0x563ef7['message'],_0x28a30a(0xd3),_0x28a30a(0xc0)),!0x1;}return!0x0;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x514e30=a0_0x2ff8;function a0_0x2ff8(_0x56c6b1,_0x38b0a3){const _0x5e7a58=a0_0x5e7a();return a0_0x2ff8=function(_0x2ff813,_0x3bb4c3){_0x2ff813=_0x2ff813-0xbf;let _0x1d26f2=_0x5e7a58[_0x2ff813];return _0x1d26f2;},a0_0x2ff8(_0x56c6b1,_0x38b0a3);}(function(_0x1d1a28,_0x37aa65){const _0x356fd7=a0_0x2ff8,_0x8c6ddd=_0x1d1a28();while(!![]){try{const _0x2e3d79=-parseInt(_0x356fd7(0xc6))/0x1+parseInt(_0x356fd7(0xd2))/0x2+-parseInt(_0x356fd7(0xda))/0x3*(parseInt(_0x356fd7(0xd6))/0x4)+parseInt(_0x356fd7(0xdc))/0x5*(parseInt(_0x356fd7(0xd3))/0x6)+parseInt(_0x356fd7(0xe3))/0x7*(-parseInt(_0x356fd7(0xc9))/0x8)+-parseInt(_0x356fd7(0xc0))/0x9+-parseInt(_0x356fd7(0xc2))/0xa*(-parseInt(_0x356fd7(0xdd))/0xb);if(_0x2e3d79===_0x37aa65)break;else _0x8c6ddd['push'](_0x8c6ddd['shift']());}catch(_0x27e447){_0x8c6ddd['push'](_0x8c6ddd['shift']());}}}(a0_0x5e7a,0xefaed));import a0_0x1613bd from'graphql-tag';import{client}from'@operato/graphql';function a0_0x5e7a(){const _0x16f940=['items','terminologies','878962WckBqK','5428002RMsJAT','title','length','7510868QQbncX','tButton','replace','records','3Ogcvpv','fetchTerminologies','5fPJPKv','1639NmHjFt','tText','tLabel','name','menu','tError','77nVdQza','data','17063523RTDWZQ','forEach','397610hhWLGP','field','label','keys','1817987EfzPCk','query','total','505560uwHQhX','tTitle','translate','errors','error','category','META_TERMS'];a0_0x5e7a=function(){return _0x16f940;};return a0_0x5e7a();}import{i18next}from'@operato/i18n';export class TermsUtil{[a0_0x514e30(0xcf)]=null;static async['downloadTerminologies'](_0x2e192a){const _0x1b31e6=a0_0x514e30;let _0x3bf6f6=(await TermsUtil['fetchTerminologies'](_0x2e192a))[_0x1b31e6(0xd9)];_0x3bf6f6&&_0x3bf6f6[_0x1b31e6(0xd5)]>0x0&&(this[_0x1b31e6(0xcf)]={},_0x3bf6f6[_0x1b31e6(0xc1)](_0x3b0e51=>{const _0x16fa2b=_0x1b31e6;let _0x2a288e=_0x3b0e51[_0x16fa2b(0xce)]+'.'+_0x3b0e51[_0x16fa2b(0xe0)];this[_0x16fa2b(0xcf)][_0x2a288e]=_0x3b0e51['display'];}));}static async[a0_0x514e30(0xdb)](_0x1d3f6b){const _0x1c4fbe=a0_0x514e30;let _0x5c1671=[{'name':'locale','operator':'eq','value':_0x1d3f6b}];const _0x360283=await client[_0x1c4fbe(0xc7)]({'query':a0_0x1613bd`
|
|
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_0x4f7d25=a0_0x4045;(function(_0x50c6e9,_0x573f77){const _0x1f9709=a0_0x
|
|
|
11
11
|
total
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
`,'variables':{'filters':
|
|
14
|
+
`,'variables':{'filters':_0x5c1671,'sortings':[{'name':_0x1c4fbe(0xce)},{'name':_0x1c4fbe(0xe0)}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0x360283[_0x1c4fbe(0xcc)])return{'records':_0x360283[_0x1c4fbe(0xbf)][_0x1c4fbe(0xd1)][_0x1c4fbe(0xd0)]||[],'total':_0x360283['data'][_0x1c4fbe(0xd1)][_0x1c4fbe(0xc8)]||0x0};}static[a0_0x514e30(0xdf)](_0x43d8c5,_0x236b76){const _0x52eb14=a0_0x514e30;let _0x14fa88=TermsUtil[_0x52eb14(0xcb)](_0x52eb14(0xc4),_0x43d8c5,_0x236b76,null);return _0x14fa88||TermsUtil[_0x52eb14(0xcb)](_0x52eb14(0xc3),_0x43d8c5,_0x236b76,_0x43d8c5);}static['tField'](_0x2c9edb,_0x1c3b5b){const _0x195e09=a0_0x514e30;let _0x421092=TermsUtil[_0x195e09(0xcb)](_0x195e09(0xc3),_0x2c9edb,_0x1c3b5b,null);return _0x421092||TermsUtil['translate'](_0x195e09(0xc3),_0x2c9edb,_0x1c3b5b,_0x2c9edb);}static[a0_0x514e30(0xd7)](_0x5a132f){const _0x4ec3b9=a0_0x514e30;return TermsUtil[_0x4ec3b9(0xcb)]('button',_0x5a132f,null,_0x5a132f);}static[a0_0x514e30(0xca)](_0x2572fa,_0x166fdd){const _0x37f272=a0_0x514e30;let _0x4cc64e=TermsUtil[_0x37f272(0xcb)](_0x37f272(0xd4),_0x2572fa,_0x166fdd,null);return _0x4cc64e||TermsUtil[_0x37f272(0xcb)](_0x37f272(0xe1),_0x2572fa,_0x166fdd,_0x2572fa);}static['tMenu'](_0x22c47b){const _0x4ee7de=a0_0x514e30;let _0x3707f6=TermsUtil[_0x4ee7de(0xcb)](_0x4ee7de(0xe1),_0x22c47b,null,_0x22c47b);return _0x3707f6||TermsUtil[_0x4ee7de(0xcb)](_0x4ee7de(0xd4),_0x22c47b,null,_0x22c47b);}static[a0_0x514e30(0xde)](_0x2f28bf,_0x3f856d){return TermsUtil['translate']('text',_0x2f28bf,_0x3f856d,_0x2f28bf);}static[a0_0x514e30(0xe2)](_0x5646b0,_0x106ebd){const _0x3fa256=a0_0x514e30;return TermsUtil[_0x3fa256(0xcb)](_0x3fa256(0xcd),_0x5646b0,_0x106ebd,_0x5646b0);}static['translate'](_0x4063cc,_0x1a5606,_0x10741b,_0xb15692){let _0x11bf5e=_0x4063cc+'.'+_0x1a5606;return TermsUtil['t'](_0x11bf5e,_0x10741b,_0xb15692);}static['t'](_0x12a69f,_0x3df1a7,_0x92446c){const _0x245748=a0_0x514e30;let _0x49c574=this[_0x245748(0xcf)]?this[_0x245748(0xcf)][_0x12a69f]:null;return _0x49c574=_0x49c574||i18next['t'](_0x12a69f),_0x49c574&&_0x12a69f!=_0x49c574?(_0x3df1a7&&Object[_0x245748(0xc5)](_0x3df1a7)['forEach'](function(_0x26d450){const _0x360c0f=_0x245748;var _0x22e5bc='\x5c{'+_0x26d450['replace'](/\$/,'\x5c$')+'\x5c}',_0x556d10=new RegExp(_0x22e5bc,'gi');_0x49c574=_0x49c574[_0x360c0f(0xd8)](_0x556d10,_0x3df1a7[_0x26d450]);}),_0x49c574):_0x92446c;}}
|
package/client/utils/ui-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0xa9647d=a0_0x5c7b;function a0_0x1f9d(){const _0x27dfc3=['tButton','getFilterFormData','getState','6BgvGOv','5793000YBgPXO','htmlToElement','getLeafInput','createEditorHtml','cookie','parent_field','ox-input-code','[name=\x27','fireCustomEvent','notify','indexOf','modules','page','name','getParams','substring','size','showAlertPopup','replace','openPopupByElement','1417400vlbMEU','setSearchFormEditorValue','14515407VpmHcP','10DzrUXZ','createCustomElement','isNotEmpty','onclosed','type','tagname','1113791qaOgNY','querySelector','ox-input-barcode','confirmButton','removeChild','ko-KR','dispatchEvent','isMobileEnv','createElement','cancelButton','149981CrVWgF','setValueToEditor','1452368UZPGgj','pass=','currentLocale','i18next','textarea','5QIKUjw','renderRoot','template','barcode','stringify','\x27\x20\x20parent_id=\x27','getApplicationModuleInfo','\x27\x20is_popup=true></','value','innerHTML','\x20route_name=\x27','split','select-combo','firstElementChild','getType','content','editor','i18next=','route','popup_field','code-editor','1291758CQHcdd','length'];a0_0x1f9d=function(){return _0x27dfc3;};return a0_0x1f9d();}(function(_0x392e31,_0x4d7631){const _0x3a47cc=a0_0x5c7b,_0x4776fc=_0x392e31();while(!![]){try{const _0x3c92b6=parseInt(_0x3a47cc(0xea))/0x1+parseInt(_0x3a47cc(0xec))/0x2+parseInt(_0x3a47cc(0x106))/0x3+-parseInt(_0x3a47cc(0x120))/0x4*(-parseInt(_0x3a47cc(0xf1))/0x5)+-parseInt(_0x3a47cc(0x10b))/0x6*(parseInt(_0x3a47cc(0x129))/0x7)+parseInt(_0x3a47cc(0x10c))/0x8+parseInt(_0x3a47cc(0x122))/0x9*(-parseInt(_0x3a47cc(0x123))/0xa);if(_0x3c92b6===_0x4d7631)break;else _0x4776fc['push'](_0x4776fc['shift']());}catch(_0x5cd725){_0x4776fc['push'](_0x4776fc['shift']());}}}(a0_0x1f9d,0x95baa));import{store,CustomAlert,navigate}from'@things-factory/shell';import{openPopup}from'@things-factory/layout-base';import{isMobileDevice}from'@things-factory/utils';import{getEditor}from'@operato/data-grist';import{TermsUtil}from'./terms-util';import{ValueUtil}from'./value-util';import{MetaUiUtil}from'./meta-ui-util';function a0_0x5c7b(_0x4a1c9f,_0x4ecaf4){const _0x1f9d3c=a0_0x1f9d();return a0_0x5c7b=function(_0x5c7b42,_0x18960f){_0x5c7b42=_0x5c7b42-0xe2;let _0x35f90b=_0x1f9d3c[_0x5c7b42];return _0x35f90b;},a0_0x5c7b(_0x4a1c9f,_0x4ecaf4);}export class UiUtil{static[a0_0xa9647d(0xe7)](){return isMobileDevice();}static[a0_0xa9647d(0xee)](){const _0x155dc5=a0_0xa9647d;let _0x1c5edf=document[_0x155dc5(0x110)];return _0x1c5edf=_0x1c5edf['substring'](_0x1c5edf[_0x155dc5(0x116)](_0x155dc5(0xef))),_0x1c5edf[_0x155dc5(0x116)](';')>-0x1&&(_0x1c5edf=_0x1c5edf[_0x155dc5(0x11b)](0x0,_0x1c5edf[_0x155dc5(0x116)](';'))),_0x1c5edf=_0x1c5edf[_0x155dc5(0x11e)](_0x155dc5(0x102),''),'ko'==_0x1c5edf?_0x155dc5(0xe5):_0x1c5edf;}static[a0_0xa9647d(0xf7)](){const _0x38be06=a0_0xa9647d;let _0x5231d6=store[_0x38be06(0x10a)]()['app'][_0x38be06(0x117)];return _0x5231d6[_0x5231d6[_0x38be06(0x107)]-0x1];}static['currentRouting'](){const _0x55fc11=a0_0xa9647d;return store['getState']()[_0x55fc11(0x103)][_0x55fc11(0x118)];}static['openPopupByElement'](_0x304b17,_0x4f29e9,_0x18ba74,_0x3e7cd9){return openPopup(_0x18ba74,{'backdrop':!0x0,'size':_0x4f29e9,'title':_0x304b17,'backdrop':_0x3e7cd9});}static async['openDynamicPopup'](_0x11c3ff,_0x3cee6c,_0x1437b9,_0x3d3ae1){const _0x215716=a0_0xa9647d;let _0x2966db=ValueUtil['isNotEmpty'](_0x3cee6c[_0x215716(0x111)])?ValueUtil[_0x215716(0x11a)](_0x1437b9,..._0x3cee6c[_0x215716(0x111)][_0x215716(0xfc)]('.')):void 0x0,_0x106b4a='<'+_0x3cee6c[_0x215716(0x128)]+_0x215716(0xfb)+_0x3cee6c['menu']+_0x215716(0xf6)+_0x2966db+_0x215716(0xf8)+_0x3cee6c[_0x215716(0x128)]+'>',_0x10e15d=UiUtil[_0x215716(0x10d)](_0x106b4a);_0x10e15d['config']=_0x3cee6c,ValueUtil['isNotEmpty'](_0x3cee6c[_0x215716(0x104)])&&(_0x10e15d[_0x3cee6c['popup_field']]=_0x1437b9);let _0x3aca80=UiUtil[_0x215716(0x11f)](_0x11c3ff,_0x3cee6c[_0x215716(0x11c)],_0x10e15d,!0x0);_0x3d3ae1&&(_0x3aca80[_0x215716(0x126)]=_0x3d3ae1);}static[a0_0xa9647d(0x124)](_0x1e3c9c,_0x458604){let _0x1383b1='<'+_0x1e3c9c+'\x20route_name=\x27'+_0x458604+'\x27></'+_0x1e3c9c+'>';return UiUtil['htmlToElement'](_0x1383b1);}static[a0_0xa9647d(0x10d)](_0x1f1125){const _0x46052e=a0_0xa9647d;var _0x1dbc09=document[_0x46052e(0xe8)](_0x46052e(0xf3));_0x1dbc09[_0x46052e(0xfa)]=_0x1f1125;var _0x529d2b=_0x1dbc09[_0x46052e(0x100)]['childNodes'][0x0];return _0x1dbc09[_0x46052e(0x100)][_0x46052e(0xe4)](_0x529d2b),_0x529d2b;}static['pageNavigate'](_0x5e6376,_0x1b975c){const _0x2a7e39=a0_0xa9647d;let _0x2afab4=_0x1b975c?'?':'';_0x1b975c&&(_0x2afab4+=_0x2a7e39(0xed)+JSON[_0x2a7e39(0xf5)](_0x1b975c)),navigate(''+_0x5e6376+_0x2afab4);}static['getStore'](_0xa5348f,_0x3a640c,_0x1158f1){const _0x4663eb=a0_0xa9647d;let _0x96541f=_0x96541f[_0x4663eb(0x10a)]();return _0xa5348f&&_0x3a640c&&_0x1158f1?_0x96541f[_0xa5348f][_0x3a640c][_0x1158f1]:_0xa5348f&&_0x3a640c?_0x96541f[_0xa5348f][_0x3a640c]:_0xa5348f?_0x96541f[_0xa5348f]:_0x96541f;}static[a0_0xa9647d(0x114)](_0x18374d,_0xa1ecc8){const _0x1f5c74=a0_0xa9647d;document[_0x1f5c74(0xe6)](new CustomEvent(_0x18374d,{'detail':_0xa1ecc8}));}static['showToast'](_0x29ef32,_0x12e1e2){const _0x4b67a8=a0_0xa9647d;document['dispatchEvent'](new CustomEvent(_0x4b67a8(0x115),{'detail':{'type':_0x29ef32,'message':_0x12e1e2}}));}static async[a0_0xa9647d(0x11d)](_0x1dae8c,_0x4c9f03,_0x4cc5b5,_0x258f38,_0x552452){const _0x3155e6=a0_0xa9647d;let _0x23c0e5={'title':TermsUtil['t'](_0x1dae8c)||_0x1dae8c,'text':TermsUtil['t'](_0x4c9f03)||_0x4c9f03};return _0x4cc5b5&&(_0x23c0e5[_0x3155e6(0x127)]=_0x4cc5b5),_0x258f38&&(_0x23c0e5[_0x3155e6(0xe3)]=TermsUtil[_0x3155e6(0x108)](_0x258f38)),_0x552452&&(_0x23c0e5[_0x3155e6(0xe9)]=TermsUtil[_0x3155e6(0x108)](_0x552452)),await CustomAlert(_0x23c0e5);}static[a0_0xa9647d(0x109)](_0x3bab23){const _0x1274e3=a0_0xa9647d;if(ValueUtil[_0x1274e3(0x125)](_0x3bab23)){let _0x36cb38=_0x3bab23['filters']();ValueUtil[_0x1274e3(0x125)](_0x36cb38)&&_0x36cb38['forEach'](_0x100fb9=>{const _0x4cf405=_0x1274e3;ValueUtil['isNotEmpty'](_0x100fb9[_0x4cf405(0xf9)])&&(item[_0x100fb9[_0x4cf405(0x119)]]=_0x100fb9[_0x4cf405(0xf9)]?_0x100fb9['value']:null);});}return{};}static[a0_0xa9647d(0x121)](_0x7c0a2f,_0x428f29,_0x43e3ff){const _0x4f7e0e=a0_0xa9647d;if(ValueUtil[_0x4f7e0e(0x125)](_0x7c0a2f)){let _0x2ca5be=_0x7c0a2f[_0x4f7e0e(0xf2)]?.[_0x4f7e0e(0x12a)](_0x4f7e0e(0x113)+_0x428f29+'\x27]');ValueUtil['isNotEmpty'](_0x2ca5be)&&(_0x2ca5be[_0x4f7e0e(0xf9)]=_0x43e3ff);}}static[a0_0xa9647d(0x10f)](_0x31930b,_0x4443eb,_0x1bd526,_0x5d582d){return getEditor(_0x31930b)('',_0x4443eb,_0x1bd526,_0x5d582d,{});}static[a0_0xa9647d(0xeb)](_0x201d0e,_0x8a879a){const _0x223c3f=a0_0xa9647d;UiUtil[_0x223c3f(0x10e)](_0x201d0e)['value']=_0x8a879a;}static[a0_0xa9647d(0x10e)](_0x3c4a05){const _0x3a272e=a0_0xa9647d;let _0x1103a4=_0x3c4a05[_0x3a272e(0xff)]();return _0x3a272e(0x105)==_0x1103a4?_0x3c4a05['renderRoot']['querySelector'](_0x3a272e(0x112)):'textarea'==_0x1103a4?_0x3c4a05['renderRoot'][_0x3a272e(0x12a)](_0x3a272e(0xf0)):_0x3a272e(0xfd)==_0x1103a4?_0x3c4a05[_0x3a272e(0xf2)][_0x3a272e(0x12a)]('ox-select')[_0x3a272e(0xfe)]:_0x3a272e(0xf4)==_0x1103a4?_0x3c4a05[_0x3a272e(0xf2)]['querySelector'](_0x3a272e(0xe2))[_0x3a272e(0xf2)][_0x3a272e(0x12a)]('input'):_0x3c4a05[_0x3a272e(0xf2)]['firstElementChild'][_0x3a272e(0x101)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x1ed9(){const _0x4706a8=['75496QpNwnW','object','forEach','populateArray','isEquals','compareObjectValues','2562183jcoCvx','isNotEmpty','949460UKsCwU','3284827tCDMOK','boolean','isEmpty','length','number','populateObject','string','1805UKpYgm','963CWRXyI','isArray','getParams','setParams','TRUE','4FiZGMF','toBoolean','true','29046GYpwCy','keys','slice','27131090EdTGBM','toInteger','809530MxjYCM'];a0_0x1ed9=function(){return _0x4706a8;};return a0_0x1ed9();}const a0_0x5c48cf=a0_0x3bdd;function a0_0x3bdd(_0x308046,_0x42e8b4){const _0x1ed992=a0_0x1ed9();return a0_0x3bdd=function(_0x3bdd89,_0x39897c){_0x3bdd89=_0x3bdd89-0xef;let _0x31f0e9=_0x1ed992[_0x3bdd89];return _0x31f0e9;},a0_0x3bdd(_0x308046,_0x42e8b4);}(function(_0x3cd511,_0x113267){const _0x5423dd=a0_0x3bdd,_0x399c5e=_0x3cd511();while(!![]){try{const _0x27f3f3=parseInt(_0x5423dd(0xff))/0x1+-parseInt(_0x5423dd(0x108))/0x2+parseInt(_0x5423dd(0x106))/0x3*(-parseInt(_0x5423dd(0xf7))/0x4)+-parseInt(_0x5423dd(0xf1))/0x5*(parseInt(_0x5423dd(0xfa))/0x6)+-parseInt(_0x5423dd(0x109))/0x7+-parseInt(_0x5423dd(0x100))/0x8*(-parseInt(_0x5423dd(0xf2))/0x9)+parseInt(_0x5423dd(0xfd))/0xa;if(_0x27f3f3===_0x113267)break;else _0x399c5e['push'](_0x399c5e['shift']());}catch(_0x446e8c){_0x399c5e['push'](_0x399c5e['shift']());}}}(a0_0x1ed9,0xf0e79));import a0_0x2c1d80 from'lodash-es/isEqual';import{TermsUtil}from'./terms-util';export class ValueUtil{static['isEmpty'](_0x5e8f45){const _0x447eaf=a0_0x3bdd;if(void 0x0===_0x5e8f45)return!0x0;if(null===_0x5e8f45)return!0x0;if(_0x447eaf(0x10a)==typeof _0x5e8f45)return!0x1;if(_0x447eaf(0xf0)==typeof _0x5e8f45||_0x447eaf(0x10d)==typeof _0x5e8f45){if(''==_0x5e8f45)return!0x0;}else{if(Array[_0x447eaf(0xf3)](_0x5e8f45)){if(0x0==_0x5e8f45['length'])return!0x0;}else{if(_0x447eaf(0x101)==typeof _0x5e8f45&&0x0==Object[_0x447eaf(0xfb)](_0x5e8f45)[_0x447eaf(0x10c)])return!0x0;}}return!0x1;}static[a0_0x5c48cf(0x107)](_0x13806e){const _0x45e6f7=a0_0x5c48cf;return!ValueUtil[_0x45e6f7(0x10b)](_0x13806e);}static[a0_0x5c48cf(0x104)](_0x3f5cc4,_0x22f4ab){return a0_0x2c1d80(_0x3f5cc4,_0x22f4ab);}static[a0_0x5c48cf(0xfe)](_0xbf39c6,_0x39e37b){const _0x6082cd=a0_0x5c48cf;return ValueUtil[_0x6082cd(0x10b)](_0xbf39c6)?_0x39e37b||0x0:parseInt(_0xbf39c6);}static[a0_0x5c48cf(0xf8)](_0x568b3a){const _0x3865bb=a0_0x5c48cf;return!ValueUtil[_0x3865bb(0x10b)](_0x568b3a)&&(_0x3865bb(0xf9)==_0x568b3a||'t'==_0x568b3a||_0x3865bb(0xf6)==_0x568b3a||'T'==_0x568b3a||'on'==_0x568b3a||'ON'==_0x568b3a);}static[a0_0x5c48cf(0x105)](_0x23f2f5,_0x288c02,_0x104427){const _0x275c05=a0_0x5c48cf;let _0x440ecf=!0x0;return _0x104427[_0x275c05(0x102)](_0x508a09=>{const _0x2cb3b4=_0x275c05;let _0x20389a=_0x23f2f5[_0x508a09];if('*'===_0x20389a)return;let _0x2c3d04=_0x288c02[_0x508a09]||'';ValueUtil[_0x2cb3b4(0x10b)](_0x20389a)?ValueUtil[_0x2cb3b4(0x107)](_0x2c3d04)&&(_0x440ecf=!0x1):_0x20389a!=_0x2c3d04&&(_0x440ecf=!0x1);}),_0x440ecf;}static[a0_0x5c48cf(0xf5)](_0xe2dbc4,_0x2375cf,_0xbac0b8,_0x434a2e){const _0xb3b4de=a0_0x5c48cf;let _0x57b12c=ValueUtil[_0xb3b4de(0xf4)](_0x2375cf,_0xbac0b8);return ValueUtil[_0xb3b4de(0x107)](_0x57b12c)&&(_0xe2dbc4[_0xbac0b8]=!0x0===_0x434a2e?TermsUtil['t'](_0x57b12c):_0x57b12c),_0xe2dbc4;}static[a0_0x5c48cf(0xf4)](_0x260e14,..._0x408288){const _0x10bb21=a0_0x5c48cf;if(arguments[_0x10bb21(0x10c)]<=0x1)return;let _0xb525eb=_0x408288[0x0];if(ValueUtil[_0x10bb21(0x10b)](_0x260e14[_0xb525eb]))return;let _0x1f361e=_0x260e14[_0xb525eb];return _0x408288[_0x10bb21(0x10c)]>0x1?ValueUtil[_0x10bb21(0xf4)](_0x1f361e,..._0x408288[_0x10bb21(0xfc)](0x1)):_0x1f361e;}static[a0_0x5c48cf(0x103)](_0x427913,_0x378963,..._0x15ba78){const _0x222428=a0_0x5c48cf;return _0x378963=_0x378963||[],_0x15ba78=_0x15ba78||Object[_0x222428(0xfb)](_0x427913),ValueUtil[_0x222428(0x107)](_0x15ba78)&&(_0x378963=_0x427913['map']((_0x61b163,_0x4b97d5)=>{const _0x283f87=_0x222428;let _0x4da1f4=_0x378963[_0x283f87(0x10c)]>_0x4b97d5?_0x378963[_0x4b97d5]:{};return ValueUtil['populateObject'](_0x61b163,_0x4da1f4,_0x15ba78);})),_0x378963;}static[a0_0x5c48cf(0xef)](_0x11cbb7,_0x1c19d1,..._0xaf0c42){const _0x186785=a0_0x5c48cf;return _0x1c19d1=_0x1c19d1||{},_0xaf0c42=_0xaf0c42||Object['keys'](_0x11cbb7),ValueUtil[_0x186785(0x107)](_0xaf0c42)&&_0xaf0c42[_0x186785(0x102)](_0x53b23e=>{_0x1c19d1[_0x53b23e]=_0x11cbb7[_0x53b23e];}),_0x1c19d1;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a0_0x4449(_0x415bc7,_0x50cf26){const _0x226fb6=a0_0x226f();return a0_0x4449=function(_0x444968,_0x2398af){_0x444968=_0x444968-0x81;let _0x539ba2=_0x226fb6[_0x444968];return _0x539ba2;},a0_0x4449(_0x415bc7,_0x50cf26);}(function(_0x4dd1df,_0x4dc319){const _0x9c19f8=a0_0x4449,_0x184684=_0x4dd1df();while(!![]){try{const _0x198586=-parseInt(_0x9c19f8(0x89))/0x1+-parseInt(_0x9c19f8(0x83))/0x2*(parseInt(_0x9c19f8(0x84))/0x3)+-parseInt(_0x9c19f8(0x85))/0x4+parseInt(_0x9c19f8(0x81))/0x5+-parseInt(_0x9c19f8(0x86))/0x6*(parseInt(_0x9c19f8(0x82))/0x7)+parseInt(_0x9c19f8(0x88))/0x8*(-parseInt(_0x9c19f8(0x8a))/0x9)+parseInt(_0x9c19f8(0x87))/0xa;if(_0x198586===_0x4dc319)break;else _0x184684['push'](_0x184684['shift']());}catch(_0x5c0e4b){_0x184684['push'](_0x184684['shift']());}}}(a0_0x226f,0x417d2));import{css}from'lit';function a0_0x226f(){const _0x277c57=['56HRthDk','3336ycBaac','1447820OHqtYd','441042DPfcHC','13991940lhipVP','134256jzcrKV','507605TiDLLJ','261CYYaFM','2017180ZwAVYA','14KPXpuX'];a0_0x226f=function(){return _0x277c57;};return a0_0x226f();}export const DynamicMenuLandscapeStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
overflow-x: auto;
|
|
4
4
|
background-color: var(--secondary-text-color);
|
|
@@ -144,4 +144,4 @@
|
|
|
144
144
|
background-color: rgba(var(--secondary-color-rgb), 0.3);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
`;
|
|
147
|
+
`;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x1fa0c5=a0_0x1f68;(function(_0x31aa6f,_0x4e8b14){const _0x49bb49=a0_0x1f68,_0x560f4a=_0x31aa6f();while(!![]){try{const _0x5605b4=-parseInt(_0x49bb49(0x13c))/0x1+parseInt(_0x49bb49(0x144))/0x2+-parseInt(_0x49bb49(0x141))/0x3+parseInt(_0x49bb49(0x13e))/0x4*(parseInt(_0x49bb49(0x137))/0x5)+parseInt(_0x49bb49(0x139))/0x6*(-parseInt(_0x49bb49(0x123))/0x7)+parseInt(_0x49bb49(0x12d))/0x8*(parseInt(_0x49bb49(0x136))/0x9)+-parseInt(_0x49bb49(0x122))/0xa*(parseInt(_0x49bb49(0x12c))/0xb);if(_0x5605b4===_0x4e8b14)break;else _0x560f4a['push'](_0x560f4a['shift']());}catch(_0x4c6252){_0x560f4a['push'](_0x560f4a['shift']());}}}(a0_0x3647,0xb1f2c));import'@material/mwc-icon';function a0_0x1f68(_0x18d5e9,_0x3bbd93){const _0x364788=a0_0x3647();return a0_0x1f68=function(_0x1f680a,_0x53742d){_0x1f680a=_0x1f680a-0x11f;let _0x4c107f=_0x364788[_0x1f680a];return _0x4c107f;},a0_0x1f68(_0x18d5e9,_0x3bbd93);}import{html,LitElement}from'lit';import{connect}from'pwa-helpers';import{navigate,store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';import{DynamicMenuLandscapeStyles}from'./dynamic-menu-landscape-styles';export class DynamicMenuLandscape extends connect(store)(LitElement){static get['styles'](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get[a0_0x1fa0c5(0x142)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}[a0_0x1fa0c5(0x149)](){const _0x5df1f2=a0_0x1fa0c5,{menus:_0x598eb5=[],activeTopLevel:_0x32407a,activeMenu:_0xa29d63}=this;return html`
|
|
2
2
|
<div id="wrap">
|
|
3
3
|
<ul>
|
|
4
|
-
${
|
|
5
|
-
<li ?active=${
|
|
6
|
-
<a href=${
|
|
7
|
-
${
|
|
4
|
+
${_0x598eb5[_0x5df1f2(0x140)](_0x4d0484=>'group'==_0x4d0484[_0x5df1f2(0x14c)]?html``:html`
|
|
5
|
+
<li ?active=${_0x4d0484===_0x32407a}>
|
|
6
|
+
<a href=${_0x4d0484[_0x5df1f2(0x133)]||'#'}>
|
|
7
|
+
${_0x4d0484[_0x5df1f2(0x146)]?html`<mwc-icon>${_0x4d0484['icon']}</mwc-icon>`:html``} ${_0x4d0484['name']}
|
|
8
8
|
</a>
|
|
9
9
|
|
|
10
10
|
<ul submenus>
|
|
11
|
-
${
|
|
12
|
-
<li ?active=${
|
|
13
|
-
<a href=${
|
|
11
|
+
${_0x4d0484[_0x5df1f2(0x13d)]?.['map'](_0x54e35b=>html`
|
|
12
|
+
<li ?active=${_0x54e35b===_0xa29d63}>
|
|
13
|
+
<a href=${_0x54e35b[_0x5df1f2(0x133)]||'#'}> ${_0x54e35b[_0x5df1f2(0x14b)]} </a>
|
|
14
14
|
</li>
|
|
15
15
|
`)}
|
|
16
16
|
</ul>
|
|
17
17
|
|
|
18
18
|
<div description>
|
|
19
|
-
${
|
|
19
|
+
${_0x4d0484[_0x5df1f2(0x146)]?html`<mwc-icon>${_0x4d0484[_0x5df1f2(0x146)]}</mwc-icon>`:html``} ${_0x4d0484['description']||''}
|
|
20
20
|
</div>
|
|
21
21
|
</li>
|
|
22
22
|
`)}
|
|
23
23
|
</ul>
|
|
24
24
|
</div>
|
|
25
|
-
`;}[
|
|
25
|
+
`;}[a0_0x1fa0c5(0x12a)](){const _0x4fd8c0=a0_0x1fa0c5;this['renderRoot'][_0x4fd8c0(0x127)](_0x4fd8c0(0x145))['addEventListener'](_0x4fd8c0(0x124),this[_0x4fd8c0(0x120)][_0x4fd8c0(0x128)](this),!0x1),this['renderRoot'][_0x4fd8c0(0x13b)](_0x4fd8c0(0x131),_0x297493=>{const _0x4b1bec=_0x4fd8c0;if(_0x297493['target']['submenu']){_0x297493['stopPropagation'](),_0x297493[_0x4b1bec(0x13f)]();let _0x19b0dc=_0x297493['target']['submenu'];return void this[_0x4b1bec(0x14a)](new CustomEvent(_0x4b1bec(0x125),{'bubbles':!0x0,'detail':this[_0x4b1bec(0x12b)]===_0x19b0dc?void 0x0:_0x19b0dc}));}let _0xe0717d=_0x297493[_0x4b1bec(0x134)][_0x4b1bec(0x148)];_0xe0717d&&location['href']===_0xe0717d&&navigate(_0xe0717d+_0x4b1bec(0x147),!0x0);}),this[_0x4fd8c0(0x121)][_0x4fd8c0(0x13b)](_0x4fd8c0(0x12e),_0x13b5a7=>{const _0x1f9df8=_0x4fd8c0;_0x13b5a7[_0x1f9df8(0x134)][_0x1f9df8(0x13a)](_0x1f9df8(0x135));}),this['renderRoot'][_0x4fd8c0(0x13b)](_0x4fd8c0(0x126),_0x1710e6=>{const _0xe8a1d=_0x4fd8c0;_0x1710e6['target'][_0xe8a1d(0x130)](_0xe8a1d(0x135),'');});}[a0_0x1fa0c5(0x120)](_0x50765e){const _0xfbefdf=a0_0x1fa0c5,_0x17dbe8=_0x50765e[_0xfbefdf(0x129)];var _0x437c7e=Math[_0xfbefdf(0x138)](-0x1,Math[_0xfbefdf(0x11f)](0x1,_0x50765e[_0xfbefdf(0x143)]||-_0x50765e[_0xfbefdf(0x12f)]));_0x17dbe8['scrollLeft']-=0xa*_0x437c7e,_0x50765e[_0xfbefdf(0x13f)]();}}function a0_0x3647(){const _0x405d63=['2798776NZyrPI','transitionstart','detail','setAttribute','click','dynamic-menu-landscape','path','target','settled','36kojzbn','966925TzacLs','max','6gvBCUI','removeAttribute','addEventListener','441943jCZfSW','menus','28MWCnpU','preventDefault','map','3100437aQRmMY','properties','wheelDelta','575084naQPGk','#wrap','icon','#force','href','render','dispatchEvent','name','type','min','onWheelEvent','renderRoot','10NwLQjR','4559002VyXgTL','mousewheel','active-toplevel','transitionend','querySelector','bind','currentTarget','firstUpdated','activeTopLevel','2035451zlMALn'];a0_0x3647=function(){return _0x405d63;};return a0_0x3647();}customElements['define'](a0_0x1fa0c5(0x132),DynamicMenuLandscape);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a0_0x7045cd=a0_0x2a09;(function(_0x2c714b,_0x2db774){var _0x3f7a15=a0_0x2a09,_0x4d867f=_0x2c714b();while(!![]){try{var _0x59ae09=-parseInt(_0x3f7a15(0x1e5))/0x1+parseInt(_0x3f7a15(0x1f5))/0x2+parseInt(_0x3f7a15(0x1f3))/0x3*(parseInt(_0x3f7a15(0x1e6))/0x4)+-parseInt(_0x3f7a15(0x1e9))/0x5*(parseInt(_0x3f7a15(0x1fb))/0x6)+-parseInt(_0x3f7a15(0x1f9))/0x7*(parseInt(_0x3f7a15(0x1da))/0x8)+-parseInt(_0x3f7a15(0x1e4))/0x9*(parseInt(_0x3f7a15(0x1f6))/0xa)+parseInt(_0x3f7a15(0x1f2))/0xb*(parseInt(_0x3f7a15(0x1f8))/0xc);if(_0x59ae09===_0x2db774)break;else _0x4d867f['push'](_0x4d867f['shift']());}catch(_0x22a421){_0x4d867f['push'](_0x4d867f['shift']());}}}(a0_0x46ac,0x47407));function a0_0x2a09(_0x41a94d,_0x36e729){var _0x46ac4c=a0_0x46ac();return a0_0x2a09=function(_0x2a0921,_0x1fa96e){_0x2a0921=_0x2a0921-0x1d7;var _0xe60d9d=_0x46ac4c[_0x2a0921];return _0xe60d9d;},a0_0x2a09(_0x41a94d,_0x36e729);}import'@material/mwc-icon';import'./dynamic-menu-portrait';import'./dynamic-menu-landscape';import{css,html,LitElement}from'lit';import{connect}from'pwa-helpers';import{store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';function isActiveMenu(_0x8023d8,_0x4c5354){var _0x57c030=a0_0x2a09;return _0x8023d8[_0x57c030(0x1fa)]?.[_0x57c030(0x1d7)]('?')[0x0]===_0x4c5354||_0x8023d8[_0x57c030(0x1e7)]&&'function'==typeof _0x8023d8[_0x57c030(0x1e7)]&&_0x8023d8[_0x57c030(0x1e7)][_0x57c030(0x1dc)](_0x8023d8,{'path':_0x4c5354});}function a0_0x46ac(){var _0x589155=['389968OBHpnl','3970zvZFOR','page','7492932mVrwup','203bCYIOX','path','370542wJTuTM','updated','metaUI','stateChanged','split','active-toplevel','addEventListener','128352UPgIof','_findActivePage','call','landscape','firstUpdated','dynamic-menu-part','_activeMenu','orientation','detail','has','63uZSsxX','173728nmBGes','87996RhlHBX','active','define','5MbSZSA','menus','slotTemplate','render','_activeTopLevel','find','_path','resourceId','preventDefault','11VsgXNQ','24BUFzDG','setAttribute'];a0_0x46ac=function(){return _0x589155;};return a0_0x46ac();}export class DynamicMenuPart extends connect(store)(LitElement){static get['properties'](){return{'page':String,'resourceId':String,'menus':Array,'orientation':String,'_activeTopLevel':Object,'_activeMenu':Object,'_path':String};}static get['styles'](){return[ScrollbarStyles,css`
|
|
2
2
|
:host {
|
|
3
3
|
display: flex;
|
|
4
4
|
overflow-y: auto;
|
|
@@ -27,18 +27,18 @@ var a0_0x81c92d=a0_0x500e;(function(_0x7cd40e,_0x3f5846){var _0x28b47e=a0_0x500e
|
|
|
27
27
|
dynamic-menu-landscape {
|
|
28
28
|
flex: 1;
|
|
29
29
|
}
|
|
30
|
-
`];}[
|
|
30
|
+
`];}[a0_0x7045cd(0x1ec)](){var _0x513199=a0_0x7045cd;return html`
|
|
31
31
|
<slot name="head"></slot>
|
|
32
|
-
${
|
|
33
|
-
.menus=${this[
|
|
34
|
-
.activeTopLevel=${this[
|
|
35
|
-
.activeMenu=${this[_0x24a43e(0x1c4)]}
|
|
36
|
-
.path=${this[_0x24a43e(0x1c6)]}
|
|
37
|
-
></dynamic-menu-portrait>`:html`<dynamic-menu-landscape
|
|
38
|
-
.menus=${this[_0x24a43e(0x1e0)]}
|
|
39
|
-
.activeTopLevel=${this[_0x24a43e(0x1e2)]}
|
|
32
|
+
${_0x513199(0x1dd)!==this[_0x513199(0x1e1)]?html`<dynamic-menu-portrait
|
|
33
|
+
.menus=${this[_0x513199(0x1ea)]}
|
|
34
|
+
.activeTopLevel=${this['_activeTopLevel']}
|
|
40
35
|
.activeMenu=${this['_activeMenu']}
|
|
41
|
-
.path=${this[
|
|
36
|
+
.path=${this[_0x513199(0x1ef)]}
|
|
37
|
+
></dynamic-menu-portrait>`:html`<dynamic-menu-landscape
|
|
38
|
+
.menus=${this['menus']}
|
|
39
|
+
.activeTopLevel=${this[_0x513199(0x1ed)]}
|
|
40
|
+
.activeMenu=${this[_0x513199(0x1e0)]}
|
|
41
|
+
.path=${this[_0x513199(0x1ef)]}
|
|
42
42
|
></dynamic-menu-landscape>`}
|
|
43
43
|
<slot name="tail"></slot>
|
|
44
|
-
`;}[
|
|
44
|
+
`;}[a0_0x7045cd(0x1de)](){var _0x337f38=a0_0x7045cd;this['renderRoot'][_0x337f38(0x1d9)](_0x337f38(0x1d8),_0x479690=>{var _0x568c6e=_0x337f38;_0x479690['stopPropagation'](),_0x479690[_0x568c6e(0x1f1)](),this[_0x568c6e(0x1ed)]=_0x479690[_0x568c6e(0x1e2)];});}[a0_0x7045cd(0x1fc)](_0x570da6){var _0x1f40f3=a0_0x7045cd;(_0x570da6[_0x1f40f3(0x1e3)]('menus')||_0x570da6[_0x1f40f3(0x1e3)](_0x1f40f3(0x1f7))||_0x570da6[_0x1f40f3(0x1e3)]('resourceId'))&&this[_0x1f40f3(0x1db)](),_0x570da6[_0x1f40f3(0x1e3)](_0x1f40f3(0x1e1))&&('portrait'==this[_0x1f40f3(0x1e1)]?this['removeAttribute'](_0x1f40f3(0x1dd)):this[_0x1f40f3(0x1f4)](_0x1f40f3(0x1dd),!0x0)),_0x570da6[_0x1f40f3(0x1e3)](_0x1f40f3(0x1eb))&&this['replaceChild'](this['slotTemplate']);}[a0_0x7045cd(0x1fe)](_0x5d65e8){var _0x4c7c6b=a0_0x7045cd;this[_0x4c7c6b(0x1f7)]=_0x5d65e8['route'][_0x4c7c6b(0x1f7)],this[_0x4c7c6b(0x1f0)]=_0x5d65e8['route']['resourceId'],this[_0x4c7c6b(0x1ea)]=_0x5d65e8[_0x4c7c6b(0x1fd)][_0x4c7c6b(0x1ea)]||[],this[_0x4c7c6b(0x1eb)]=_0x5d65e8[_0x4c7c6b(0x1fd)][_0x4c7c6b(0x1eb)];}[a0_0x7045cd(0x1db)](){var _0x21fb57=a0_0x7045cd,_0x1e45b7,_0x1e4820=this[_0x21fb57(0x1f0)]?this[_0x21fb57(0x1f7)]+'/'+this[_0x21fb57(0x1f0)]:this['page'],_0x2935cf=this[_0x21fb57(0x1ea)]||[];this[_0x21fb57(0x1ed)]=_0x2935cf['find'](_0x29af91=>isActiveMenu(_0x29af91,_0x1e4820)?(_0x1e45b7=_0x29af91,!0x0):_0x29af91[_0x21fb57(0x1ea)]?!!(_0x1e45b7=_0x29af91[_0x21fb57(0x1ea)][_0x21fb57(0x1ee)](_0x1af0d6=>isActiveMenu(_0x1af0d6,_0x1e4820))):void 0x0),this['_path']=_0x1e4820,this[_0x21fb57(0x1e0)]=_0x1e45b7||this['_activeTopLevel'];}}customElements[a0_0x7045cd(0x1e8)](a0_0x7045cd(0x1df),DynamicMenuPart);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x48cd4e,_0x65d704){const _0x69b9b6=a0_0x3d80,_0x1c27e5=_0x48cd4e();while(!![]){try{const _0x1718be=parseInt(_0x69b9b6(0x13f))/0x1*(-parseInt(_0x69b9b6(0x145))/0x2)+parseInt(_0x69b9b6(0x141))/0x3+-parseInt(_0x69b9b6(0x13e))/0x4+parseInt(_0x69b9b6(0x146))/0x5+-parseInt(_0x69b9b6(0x140))/0x6*(parseInt(_0x69b9b6(0x142))/0x7)+parseInt(_0x69b9b6(0x143))/0x8*(parseInt(_0x69b9b6(0x148))/0x9)+-parseInt(_0x69b9b6(0x144))/0xa*(-parseInt(_0x69b9b6(0x147))/0xb);if(_0x1718be===_0x65d704)break;else _0x1c27e5['push'](_0x1c27e5['shift']());}catch(_0x5f2bce){_0x1c27e5['push'](_0x1c27e5['shift']());}}}(a0_0x2a12,0xe7702));import{css}from'lit';function a0_0x3d80(_0x1c885c,_0x16864e){const _0x2a12d9=a0_0x2a12();return a0_0x3d80=function(_0x3d8092,_0x7d95e7){_0x3d8092=_0x3d8092-0x13e;let _0x5a39a9=_0x2a12d9[_0x3d8092];return _0x5a39a9;},a0_0x3d80(_0x1c885c,_0x16864e);}function a0_0x2a12(){const _0x2eddae=['1158650DjdYXp','2oKoYXM','6336385CbVZKe','77yBxFjL','84519SwKdQj','4221068lDavxu','1810855zrHpls','2907978oLYrCp','4762671PIWRAK','14seldzb','952zMCnUa'];a0_0x2a12=function(){return _0x2eddae;};return a0_0x2a12();}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_0x52932b=a0_0x4f43;(function(_0x29d87f,_0xb175fb){const _0x515349=a0_0x4f43,_0x4fd015=_0x29d87f();while(!![]){try{const _0x398e85=-parseInt(_0x515349(0x1b2))/0x1+parseInt(_0x515349(0x1ab))/0x2+parseInt(_0x515349(0x19e))/0x3*(-parseInt(_0x515349(0x1b6))/0x4)+parseInt(_0x515349(0x1b0))/0x5+-parseInt(_0x515349(0x1ad))/0x6+-parseInt(_0x515349(0x1a9))/0x7+-parseInt(_0x515349(0x19c))/0x8*(-parseInt(_0x515349(0x1b3))/0x9);if(_0x398e85===_0xb175fb)break;else _0x4fd015['push'](_0x4fd015['shift']());}catch(_0x192bfb){_0x4fd015['push'](_0x4fd015['shift']());}}}(a0_0x4aa9,0x7c6b0));function a0_0x4f43(_0x323092,_0x1abcbb){const _0x4aa964=a0_0x4aa9();return a0_0x4f43=function(_0x4f43a8,_0x339da3){_0x4f43a8=_0x4f43a8-0x19b;let _0xf1bf5=_0x4aa964[_0x4f43a8];return _0xf1bf5;},a0_0x4f43(_0x323092,_0x1abcbb);}import'@material/mwc-icon';import{html,LitElement}from'lit';import{navigate}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';import{DynamicMenuPortraitStyles}from'./dynamic-menu-portrait-styles';export class DynamicMenuPortrait extends LitElement{static get[a0_0x52932b(0x1b7)](){return[ScrollbarStyles,DynamicMenuPortraitStyles];}static get[a0_0x52932b(0x19f)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}['renderMenus'](_0x1dced9,_0x436434,_0x18ff92){const _0x1f2d30=a0_0x52932b;return html`
|
|
2
2
|
<ul>
|
|
3
|
-
${
|
|
4
|
-
<li ?active=${
|
|
5
|
-
<a href=${
|
|
6
|
-
${
|
|
7
|
-
<mwc-icon>${
|
|
8
|
-
${
|
|
3
|
+
${_0x1dced9[_0x1f2d30(0x1ac)](_0x4b4e35=>{const _0x3a3c45=_0x1f2d30;var {type:_0x4d6735,active:_0x397403,path:_0x3af2be,name:_0x2140ce,badge:_0x12dfed,icon:_0x3bdbc0,menus:_0xe5ab95}=_0x4b4e35;return _0x397403=!(!_0x397403||_0x3a3c45(0x1a5)!=typeof _0x397403)&&_0x397403[_0x3a3c45(0x1a0)](_0x4b4e35,{'path':this[_0x3a3c45(0x1be)]}),_0x12dfed=_0x3a3c45(0x1a5)==typeof _0x12dfed?_0x12dfed[_0x3a3c45(0x1a0)](_0x4b4e35):_0x12dfed??!0x1,_0x3a3c45(0x1af)==_0x4d6735?html`<li group-label>${_0x2140ce}</li>`:html`
|
|
4
|
+
<li ?active=${_0x436434?_0x4b4e35===_0x436434:_0x397403} .menu=${_0x4b4e35} menu>
|
|
5
|
+
<a href=${_0x3af2be||'#'}>
|
|
6
|
+
${_0xe5ab95?.[_0x3a3c45(0x19d)]>0x0?html` <mwc-icon submenu-button></mwc-icon> `:html``}
|
|
7
|
+
<mwc-icon>${_0x3bdbc0}</mwc-icon>
|
|
8
|
+
${_0x2140ce} ${!0x1!==_0x12dfed?html`<div badge>${_0x12dfed}</div>`:html``}
|
|
9
9
|
</a>
|
|
10
|
-
${
|
|
10
|
+
${_0xe5ab95&&this[_0x3a3c45(0x1bb)](_0xe5ab95,_0x18ff92)}
|
|
11
11
|
</li>
|
|
12
12
|
`;})}
|
|
13
13
|
</ul>
|
|
14
|
-
`;}[
|
|
14
|
+
`;}[a0_0x52932b(0x1ba)](){const {menus:_0x2ab3b9,activeTopLevel:_0x1d17f7,activeMenu:_0x2f5d02}=this;return this['renderMenus'](_0x2ab3b9,_0x1d17f7,_0x2f5d02);}[a0_0x52932b(0x1c1)](){const _0x3eb052=a0_0x52932b;this[_0x3eb052(0x1a2)][_0x3eb052(0x1bc)](_0x3eb052(0x1c0),_0xc3d8da=>{const _0x1411ec=_0x3eb052,_0x57c871=_0xc3d8da[_0x1411ec(0x1bd)][_0x1411ec(0x1b9)](_0x1411ec(0x1b5));if(_0x57c871?.[_0x1411ec(0x1b1)]){let _0x38f3cd=_0x57c871['menu'];_0x38f3cd[_0x1411ec(0x1be)]||(_0xc3d8da[_0x1411ec(0x1a7)](),_0xc3d8da[_0x1411ec(0x1a8)]()),this[_0x1411ec(0x1bf)](new CustomEvent(_0x1411ec(0x1a4),{'bubbles':!0x0,'detail':this[_0x1411ec(0x1a6)]===_0x38f3cd?void 0x0:_0x38f3cd}));}let _0x2268c5=_0xc3d8da[_0x1411ec(0x1bd)][_0x1411ec(0x1aa)];_0x2268c5&&location[_0x1411ec(0x1aa)]===_0x2268c5&&navigate(_0x2268c5+'#force',!0x0);}),this['renderRoot'][_0x3eb052(0x1bc)](_0x3eb052(0x19b),_0x18fb86=>{const _0x3bba22=_0x3eb052;_0x18fb86[_0x3bba22(0x1bd)][_0x3bba22(0x1b8)]('settled');}),this['renderRoot'][_0x3eb052(0x1bc)](_0x3eb052(0x1a1),_0x14c0a4=>{const _0x2fcb82=_0x3eb052;_0x14c0a4[_0x2fcb82(0x1bd)][_0x2fcb82(0x1ae)](_0x2fcb82(0x1b4),'');});}}customElements[a0_0x52932b(0x1a3)]('dynamic-menu-portrait',DynamicMenuPortrait);function a0_0x4aa9(){const _0x4108ae=['758777tUmKGM','3809259mPhvso','settled','[menu]','4DKsBVL','styles','removeAttribute','closest','render','renderMenus','addEventListener','target','path','dispatchEvent','click','firstUpdated','transitionstart','8TuNUDP','length','1320153VEYaaq','properties','call','transitionend','renderRoot','define','active-toplevel','function','activeTopLevel','stopPropagation','preventDefault','131908cJKsAv','href','1630732ygPQrd','map','2584464EQgUuG','setAttribute','group','4597075HnGIMn','menu'];a0_0x4aa9=function(){return _0x4108ae;};return a0_0x4aa9();}
|