@things-factory/meta-ui 6.2.52 → 6.2.56
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/bootstrap.js +1 -1
- package/client/component/filter/filter-form-meta-code-select.js +9 -9
- package/client/component/filter/filter-form-meta-object-select.js +10 -10
- package/client/component/filter/filter-grist-meta-code-select.js +9 -9
- package/client/component/filter/filter-grist-meta-object-select.js +9 -9
- package/client/component/grist/editor/grist-editor-code-input.js +6 -6
- package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
- package/client/component/grist/editor/grist-editor-meta-object-selector.js +8 -8
- package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
- package/client/component/popup/code-input-editor-popup.js +10 -10
- package/client/component/popup/file-upload-popup.js +11 -11
- package/client/component/popup/meta-object-selector-popup.js +11 -11
- package/client/component/popup/record-based-code-editor-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-define-page.js +11 -11
- 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/button-role/button-role-detail.js +1 -1
- package/client/pages/button-role/button-role-page.js +1 -1
- package/client/pages/doc-number/doc-number-page.js +1 -1
- package/client/pages/doc-number/next-doc-number-popup.js +1 -1
- package/client/pages/entity/config-entity.js +29 -29
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-setting-let.js +6 -6
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/menu/export-menu-popup.js +7 -7
- 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/printer-device/printer-device-page.js +1 -1
- package/client/pages/template/doc-template-page.js +1 -1
- package/client/pages/template/template-file-page.js +1 -1
- package/client/pages/terms/config-terminology.js +6 -6
- package/client/pages/work-code/work-code-detail-popup.js +1 -1
- package/client/pages/work-code/work-code-page.js +1 -1
- package/client/reducers/main.js +1 -1
- package/client/utils/grist-default-value.js +1 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +107 -108
- package/client/utils/service-util.js +35 -35
- 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 +10 -10
- package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a0_0x4539a4=a0_0x3552;(function(_0x358e37,_0x2908cd){const _0x30286a=a0_0x3552,_0x517be0=_0x358e37();while(!![]){try{const _0x7394d4=parseInt(_0x30286a(0x133))/0x1*(-parseInt(_0x30286a(0x109))/0x2)+parseInt(_0x30286a(0xf4))/0x3*(parseInt(_0x30286a(0xf3))/0x4)+parseInt(_0x30286a(0xef))/0x5*(-parseInt(_0x30286a(0xd3))/0x6)+-parseInt(_0x30286a(0xf0))/0x7*(-parseInt(_0x30286a(0xe9))/0x8)+parseInt(_0x30286a(0x154))/0x9*(parseInt(_0x30286a(0x121))/0xa)+-parseInt(_0x30286a(0xdf))/0xb+-parseInt(_0x30286a(0xe8))/0xc*(-parseInt(_0x30286a(0x104))/0xd);if(_0x7394d4===_0x2908cd)break;else _0x517be0['push'](_0x517be0['shift']());}catch(_0x176b25){_0x517be0['push'](_0x517be0['shift']());}}}(a0_0x25fd,0x7a613));import{store,gqlContext}from'@things-factory/shell';import{getCodeByName}from'@things-factory/code-base';function a0_0x25fd(){const _0x7ab8be=['isNotEmpty','222455NgniDU','1243529nIIcBK','length','reduce','608cMOglf','2343sZfZPO','total','forEach','routingType','searchMyDynamicMenus','approval-pending-list','category','unshift','numberOfToDos','tText','success\x20to\x20save','query','callQueryService','callMutationService','callScenario','config','907543CfmsUG','searchMenuGridPersnalTemplate','getWorkCodeByName','todo-list','callMutation','6958qaxLBD','mutation\x20name\x20not\x20found!','includes','data','findIndex','key','button.','MENU','param_name','showToast','callMutationByIdData','error','mutation\x20type\x20not\x20found!','arrangeMenuRoutes','group','noteq','workCodeByName','menuType','push','active','text.nothing_selected','parent','SCREEN','find','10XossvS','searchByFilters','pagination','numberOfApprovalPendings','\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','imex','param\x20name\x20not\x20found','rank','callMutationByIds','text.check-mandatory','button.delete','getCodeByScenario','buildArgs','filter','callMutationByData','join','deleteListByGristSelected','callService','56nLxCgQ','updateOne','cancel','items','query_type','showGraphqlErrorResponse','object','isEmpty','getSelectedIdList','replaceVariableObject','codeItems','singleByFilters','children','question','hiddenFlag','mutation_name','description','dirtyRecords','multi','sorters','id-data','display','selected','success\x20to\x20process','select','tMenu','keys','param\x20type\x20not\x20found','test','message','updateMultiple','columns','updateMultipleData','1713627KuMHWc','badge','showGraphqlException','path','numberOfDrafts','iconPath','GROUP','menus','errors','return_fields','callMutationById','string','ids','xlsx','sort','map','title','deleteListByIds','showAlertPopup','value','dispatch','log','extensions','result','parse','HOME','records','__dirty__','updater','Graphql\x20Error','updatedAt','code-input','patchesForUpdateMultiple','routing','check-mandatory-field','runScenario','id_value_not_found','findByFilters','stringify','info','\x0a\x20\x20\x20\x20\x20\x20','gutter','undefined','name','details','networkError','12VWDeLd','splice','createdAt','_config','id_field','searchByPagination','__dirtyfields__','type','confirm','isArray','text.there_is_nothing_to_delete','filters','5302968bzbnZE','__origin__','text.are_you_sure','startsWith','findOne','code','getCodeByEntity','checkClientError','draft-list','12CVXLHz','40mgYDZm','split','myDynamicMenus','invalid\x20queryType\x20[','record'];a0_0x25fd=function(){return _0x7ab8be;};return a0_0x25fd();}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_0x5c3447 from'graphql-tag';import{ValueUtil}from'./value-util';import{asyncReplace}from'lit/directives/async-replace.js';import a0_0x4a4b93 from'i18next';function a0_0x3552(_0x1fb69e,_0x462c28){const _0x25fda5=a0_0x25fd();return a0_0x3552=function(_0x35525a,_0x325ec2){_0x35525a=_0x35525a-0xac;let _0x231547=_0x25fda5[_0x35525a];return _0x231547;},a0_0x3552(_0x1fb69e,_0x462c28);}import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';export class ServiceUtil{static async[a0_0x4539a4(0x13d)](_0x12938e){const _0x1d4824=a0_0x4539a4;if(Array[_0x1d4824(0xdc)](_0x12938e))return _0x12938e[_0x1d4824(0xb4)](_0x577c80=>_0x1d4824(0x139)==typeof _0x577c80?{'name':_0x577c80[_0x1d4824(0xb8)],'description':_0x577c80[_0x1d4824(0x148)]}:{'name':_0x577c80,'description':_0x577c80});let _0x4dc0d2=await ServiceUtil[_0x1d4824(0x106)](_0x12938e);return _0x4dc0d2&&_0x4dc0d2[_0x1d4824(0xf1)]>0x0?_0x4dc0d2:await getCodeByName(_0x12938e);}static async[a0_0x4539a4(0x106)](_0x354397){const _0xed6d19=a0_0x4539a4,_0x5ce73e=await client[_0xed6d19(0xff)]({'query':a0_0x5c3447`
|
|
2
2
|
query workCodeByName($name: String!) {
|
|
3
3
|
workCodeByName(name: $name) {
|
|
4
4
|
details {
|
|
@@ -8,65 +8,65 @@ function a0_0x5c7c(){const _0xc7697e=['menu.id','rank','string','mandatory','cal
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
`,'variables':{'name':
|
|
11
|
+
`,'variables':{'name':_0x354397},'context':gqlContext()});return!_0x5ce73e['errors']&&_0x5ce73e[_0xed6d19(0x10c)][_0xed6d19(0x119)]&&_0x5ce73e[_0xed6d19(0x10c)]['workCodeByName']['details']?_0x5ce73e[_0xed6d19(0x10c)][_0xed6d19(0x119)][_0xed6d19(0xd1)]['sort']((_0xfa3da8,_0x15b48d)=>_0xfa3da8[_0xed6d19(0x128)]-_0x15b48d['rank']):[];}static async['getCodeSelectorData'](_0x3dbd69){const _0x5e2a40=a0_0x4539a4;let _0x4ef8d5=(await ServiceUtil[_0x5e2a40(0x13d)](_0x3dbd69))[_0x5e2a40(0xb4)](_0x44b347=>({'value':_0x44b347[_0x5e2a40(0xd0)],'display':_0x44b347[_0x5e2a40(0x143)]}));return _0x4ef8d5['unshift']({'value':'','display':''}),_0x4ef8d5;}static async[a0_0x4539a4(0x12c)](_0x382235,_0x297449){const _0x5063fe=a0_0x4539a4;let _0x30870d=await ServiceUtil[_0x5063fe(0x102)](null,_0x382235,_0x297449,!0x1);if(_0x30870d&&_0x30870d[_0x5063fe(0x10c)]&&_0x30870d[_0x5063fe(0x10c)][_0x5063fe(0xc8)]&&_0x30870d['data']['runScenario'][_0x5063fe(0xbc)]&&_0x30870d[_0x5063fe(0x10c)][_0x5063fe(0xc8)]['result'][_0x5063fe(0xbc)]){let _0x3d6f05=_0x30870d[_0x5063fe(0x10c)][_0x5063fe(0xc8)][_0x5063fe(0xbc)]['result'];return _0x3d6f05[_0x5063fe(0xfb)]({'value':'','display':''}),_0x3d6f05[_0x5063fe(0xb4)](_0x37f03a=>({'value':_0x37f03a['name'],'display':_0x37f03a[_0x5063fe(0x143)]}));}return[];}static async[a0_0x4539a4(0xe5)]({queryName:_0x142bec,codeField:_0x207af5='name',dispField:_0x3be9e2,filters:_0xbd380c=[],sorters:_0x314f17=[]}){const _0x509d49=a0_0x4539a4;let _0x3fd864=_0x3be9e2[_0x509d49(0xea)](','),_0x18ad53=_0x509d49(0xcd)+_0x207af5+_0x509d49(0xcd)+(_0x3be9e2?_0x3fd864[_0x509d49(0x130)]('\x0a'):'')+'\x0a\x20\x20\x20\x20',_0x26a901=await ServiceUtil['searchByPagination'](_0x142bec,_0xbd380c,_0x314f17,0x0,0x0,_0x18ad53),_0x1482a4=[{'value':'','display':''}];return _0x26a901['records']['forEach'](_0x4309b6=>{const _0x8bae31=_0x509d49;let _0x3e562c=_0x4309b6[_0x207af5];if(_0x3be9e2){let _0xc327e6=_0x3be9e2[_0x8bae31(0xea)](',');_0x3e562c=_0x4309b6[_0xc327e6[0x0]],_0xc327e6[_0x8bae31(0xf1)]>0x1&&(_0x3e562c+='('+_0xc327e6[_0x8bae31(0xd4)](0x1)['map'](_0x26919b=>_0x4309b6[_0x26919b])['join'](',')+')');}_0x1482a4[_0x8bae31(0x11b)]({'value':_0x4309b6[_0x207af5],'display':_0x3e562c});}),_0x1482a4;}static async[a0_0x4539a4(0xeb)](){const _0x4f11e3=a0_0x4539a4;let _0x240096=await ServiceUtil[_0x4f11e3(0xf8)]();return null!=_0x240096?ServiceUtil['arrangeMenuRoutes'](_0x240096):null;}static async[a0_0x4539a4(0x105)](_0x254029){const _0x50695f=a0_0x4539a4;let _0xb5767=[{'name':'menu.id','operator':'eq','value':_0x254029}],_0x3301ac=await ServiceUtil['searchByPagination']('gridPersonalizeTemplates',_0xb5767,[],0x0,0x0,'id,template');return 0x0==_0x3301ac[_0x50695f(0xf5)]?{}:{'id':_0x3301ac['records'][0x0]['id'],'template':JSON[_0x50695f(0xbd)](_0x3301ac[_0x50695f(0xbf)][0x0]['template'])};}static[a0_0x4539a4(0x116)](_0x539536){const _0x1b5cbd=a0_0x4539a4;let _0xf7754e=[];_0x539536[_0x1b5cbd(0xf6)](_0x590f03=>{const _0x2510bd=_0x1b5cbd;_0xf7754e[_0x2510bd(0x11b)](_0x590f03),_0x590f03[_0x2510bd(0x13f)]&&(_0x590f03['children'][_0x2510bd(0xb3)](function(_0x557653,_0x2be4e4){const _0x32c567=_0x2510bd;return _0x557653[_0x32c567(0x128)]-_0x2be4e4['rank'];}),_0x590f03[_0x2510bd(0x13f)]['forEach'](_0x3b5f65=>{const _0x3152c0=_0x2510bd;0x1!=_0x3b5f65[_0x3152c0(0x141)]&&(_0x3b5f65['parent']=_0x590f03,_0xf7754e['push'](_0x3b5f65));}));});let _0xc88775=_0xf7754e[_0x1b5cbd(0xb4)](_0x5c1195=>{const _0x3d7579=_0x1b5cbd;if(_0x3d7579(0x15a)==_0x5c1195[_0x3d7579(0x11a)]||'MENU'==_0x5c1195[_0x3d7579(0x11a)]){let _0x6e6c48={'id':_0x5c1195['id'],'parent':!0x0,'name':TermsUtil[_0x3d7579(0x14c)](_0x5c1195[_0x3d7579(0xd0)]),'icon':_0x5c1195[_0x3d7579(0x159)],'type':'GROUP'==_0x5c1195[_0x3d7579(0x11a)]?'group':'','menus':[]};return _0x5c1195[_0x3d7579(0xc6)]&&(_0x6e6c48[_0x3d7579(0x157)]=_0x5c1195['routing']),_0x6e6c48;}return{'id':'0'};})['filter'](_0x12a6ae=>'0'!=_0x12a6ae['id']),_0x2f4a06=_0xf7754e['map'](_0x473a1f=>{const _0x42ebfd=_0x1b5cbd;if(_0x42ebfd(0x11f)==_0x473a1f[_0x42ebfd(0x11a)]||'HIDDEN-PAGE'==_0x473a1f[_0x42ebfd(0x11a)]){let _0x360904=_0xc88775[_0x42ebfd(0x120)](_0x521db3=>_0x521db3['id']==_0x473a1f[_0x42ebfd(0x11e)]['id']);if(_0x360904){let _0x4a8bfc=TermsUtil[_0x42ebfd(0x14c)](_0x473a1f['name']);return _0x42ebfd(0x11f)==_0x473a1f[_0x42ebfd(0x11a)]&&_0x360904[_0x42ebfd(0xac)][_0x42ebfd(0x11b)]({'id':_0x473a1f['id'],'name':_0x4a8bfc,'path':_0x473a1f[_0x42ebfd(0xc6)],'icon':_0x473a1f[_0x42ebfd(0x159)]}),{'id':_0x473a1f['id'],'parent':!0x1,'parent_id':_0x360904['id'],'title':_0x4a8bfc,'tagname':_0x473a1f[_0x42ebfd(0xfa)],'page':_0x473a1f[_0x42ebfd(0xc6)],'template':_0x473a1f['resourceUrl'],'routing_type':_0x473a1f['routingType']};}return{'id':'0'};}return _0x42ebfd(0xbe)==_0x473a1f[_0x42ebfd(0x11a)]?{'id':_0x473a1f['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil['tMenu'](_0x473a1f[_0x42ebfd(0xd0)]),'tagname':_0x473a1f[_0x42ebfd(0xfa)],'page':_0x473a1f[_0x42ebfd(0xc6)],'template':_0x473a1f['resourceUrl'],'routing_type':_0x473a1f[_0x42ebfd(0xf7)]}:{'id':'0'};})[_0x1b5cbd(0x12e)](_0x5e1def=>null!=_0x5e1def&&'0'!=_0x5e1def['id']);_0xc88775['filter'](_0x48b2cc=>_0x1b5cbd(0x117)==_0x48b2cc[_0x1b5cbd(0xda)]&&_0x48b2cc[_0x1b5cbd(0xac)]&&_0x48b2cc[_0x1b5cbd(0xac)][_0x1b5cbd(0xf1)]>0x0)[_0x1b5cbd(0xf6)](_0x513273=>{const _0x5139ef=_0x1b5cbd;let _0x449105=_0xc88775[_0x5139ef(0x10d)](_0x37b22a=>_0x37b22a['id']==_0x513273['id'])+0x1;_0xc88775[_0x5139ef(0xd4)](_0x449105,0x0,..._0x513273[_0x5139ef(0xac)]);});let _0x843ac=0x0;return _0xc88775[_0x1b5cbd(0xf6)](_0x1437f4=>{const _0x4691d3=_0x1b5cbd;_0x4691d3(0x107)==_0x1437f4[_0x4691d3(0x157)]?(_0x843ac++,_0x1437f4[_0x4691d3(0x155)]=()=>asyncReplace(generateActivitySummary(_0x4691d3(0xfc))),_0x1437f4[_0x4691d3(0x11c)]=({path:_0x2b3db4})=>/^activity\//[_0x4691d3(0x14f)](_0x2b3db4)):_0x4691d3(0xf9)==_0x1437f4[_0x4691d3(0x157)]?(_0x843ac++,_0x1437f4[_0x4691d3(0x155)]=()=>asyncReplace(generateActivitySummary(_0x4691d3(0x124))),_0x1437f4['active']=({path:_0x292cc6})=>/^activity\//['test'](_0x292cc6)):_0x4691d3(0xe7)==_0x1437f4['path']&&(_0x843ac++,_0x1437f4['badge']=()=>asyncReplace(generateActivitySummary(_0x4691d3(0x158))));}),_0x843ac>0x0&&startSubscribeActivitySummary(),{'menus':_0xc88775,'routes':_0x2f4a06};}static async[a0_0x4539a4(0xf8)](){const _0x1062a9=a0_0x4539a4;let _0x34030d=await ServiceUtil[_0x1062a9(0xd8)](_0x1062a9(0xac),[{'name':'hiddenFlag','operator':_0x1062a9(0x118),'value':!0x0},{'name':_0x1062a9(0x11a),'operator':'in','value':[_0x1062a9(0xbe),_0x1062a9(0x110),_0x1062a9(0x15a)]}],[{'name':_0x1062a9(0x128)}],0x0,0x0,_0x1062a9(0x125));return _0x34030d?_0x34030d[_0x1062a9(0xbf)]:[];}static async['showGraphqlErrorResponse'](_0x1f0e73){const _0x35b5b4=a0_0x4539a4;if(_0x1f0e73['errors']&&_0x1f0e73[_0x35b5b4(0xad)][_0x35b5b4(0xf1)]>0x0){let _0xdcfc2b=_0x1f0e73['errors'][0x0],_0x20d839=_0xdcfc2b[_0x35b5b4(0x150)],_0x47790d=_0xdcfc2b[_0x35b5b4(0x150)];_0xdcfc2b['extensions']&&(_0x47790d=_0xdcfc2b[_0x35b5b4(0xbb)][_0x35b5b4(0xe4)]),await UiUtil['showAlertPopup'](_0x47790d,_0x20d839,_0x35b5b4(0x114),_0x35b5b4(0xdb));}}static async[a0_0x4539a4(0x156)](_0x2720cb){const _0x37b8c1=a0_0x4539a4;_0x2720cb&&(_0x2720cb[_0x37b8c1(0xd2)]&&_0x2720cb[_0x37b8c1(0xd2)][_0x37b8c1(0xbc)]?await ServiceUtil[_0x37b8c1(0x138)](_0x2720cb[_0x37b8c1(0xd2)][_0x37b8c1(0xbc)]):await UiUtil[_0x37b8c1(0xb7)](_0x37b8c1(0xc2),_0x2720cb[_0x37b8c1(0x150)],_0x37b8c1(0x114),_0x37b8c1(0xdb)));}static async['exportableData'](_0x371154,_0x153440,_0xab6418){const _0x1cfa52=a0_0x4539a4;var _0x2a1e3c=_0xab6418[_0x1cfa52(0xd6)][_0x1cfa52(0x152)][_0x1cfa52(0x12e)](_0x3788dd=>_0x1cfa52(0xce)!==_0x3788dd['type']&&void 0x0!==_0x3788dd[_0x1cfa52(0xed)]&&void 0x0!==_0x3788dd[_0x1cfa52(0x126)]&&!0x0!==_0x3788dd['hidden'])['map'](_0x22f697=>_0x22f697[_0x1cfa52(0x126)]),_0x93e644=_0xab6418['data']['records'][_0x1cfa52(0xb4)](_0x1812b8=>({..._0xab6418['_config'][_0x1cfa52(0x152)][_0x1cfa52(0x12e)](_0x54db53=>_0x1cfa52(0xce)!==_0x54db53[_0x1cfa52(0xda)]&&void 0x0!==_0x54db53[_0x1cfa52(0xed)]&&void 0x0!==_0x54db53[_0x1cfa52(0x126)]&&!0x0!==_0x54db53['hidden'])[_0x1cfa52(0xf2)]((_0x1ba297,_0x2e76bb)=>(_0x1ba297[_0x2e76bb['imex']['key']]=_0x2e76bb[_0x1cfa52(0x126)][_0x1cfa52(0x10e)][_0x1cfa52(0xea)]('.')[_0x1cfa52(0xf2)]((_0x2a6bc3,_0x31c147)=>_0x2a6bc3&&_0x1cfa52(0xcf)!==_0x2a6bc3[_0x31c147]?_0x2a6bc3[_0x31c147]:void 0x0,_0x1812b8),_0x1ba297),{})}));if(!_0x371154)return{'header':_0x2a1e3c,'data':_0x93e644};store[_0x1cfa52(0xb9)]({'type':EXPORT,'exportable':{'extension':_0x1cfa52(0xb2),'name':_0x153440,'data':{'header':_0x2a1e3c,'data':_0x93e644}}});}static async['searchByPagination'](_0x801494,_0x3d34ed,_0x24d0cf,_0x186b24,_0x34025e,_0x2d3de7){const _0x2726cb=a0_0x4539a4;try{const _0x3c0b9b=await client[_0x2726cb(0xff)]({'query':a0_0x5c3447`
|
|
12
12
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
13
|
-
${
|
|
13
|
+
${_0x801494}(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
14
14
|
items {
|
|
15
|
-
${
|
|
15
|
+
${_0x2d3de7}
|
|
16
16
|
}
|
|
17
17
|
total
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,'variables':{'filters':
|
|
20
|
+
`,'variables':{'filters':_0x3d34ed,'sortings':_0x24d0cf,'pagination':{'page':_0x186b24,'limit':_0x34025e}}});if(!_0x3c0b9b[_0x2726cb(0xad)])return{'records':_0x3c0b9b[_0x2726cb(0x10c)][_0x801494][_0x2726cb(0x136)],'total':_0x3c0b9b['data'][_0x801494][_0x2726cb(0xf5)]};ServiceUtil[_0x2726cb(0x138)](_0x3c0b9b);}catch(_0x1ba149){ServiceUtil[_0x2726cb(0x156)](_0x1ba149);}return null;}static async[a0_0x4539a4(0xe3)](_0x31b9fd,_0x3b3907,_0x16cbf2){const _0x10f66b=a0_0x4539a4;try{let _0x114cf4=await client[_0x10f66b(0xff)]({'query':a0_0x5c3447`
|
|
21
21
|
query ($id: String!) {
|
|
22
|
-
${
|
|
23
|
-
${
|
|
22
|
+
${_0x31b9fd}(id: $id) {
|
|
23
|
+
${_0x16cbf2}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,'variables':{'id':
|
|
26
|
+
`,'variables':{'id':_0x3b3907}});if(!_0x114cf4[_0x10f66b(0xad)])return _0x114cf4[_0x10f66b(0x10c)][_0x31b9fd]||{};ServiceUtil[_0x10f66b(0x138)](_0x114cf4);}catch(_0x5ace8f){ServiceUtil[_0x10f66b(0x156)](_0x5ace8f);}return null;}static async[a0_0x4539a4(0xca)](_0x8014ea,_0x3b9968,_0x5c00db){const _0x3475ba=a0_0x4539a4;try{const _0x195189=await client[_0x3475ba(0xff)]({'query':a0_0x5c3447`
|
|
27
27
|
query ($filters: [Filter!]) {
|
|
28
|
-
${
|
|
29
|
-
${
|
|
28
|
+
${_0x8014ea}(filters: $filters) {
|
|
29
|
+
${_0x3b9968}
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
`,'variables':{'filters':
|
|
32
|
+
`,'variables':{'filters':_0x5c00db}});if(!_0x195189[_0x3475ba(0xad)])return _0x195189[_0x3475ba(0x10c)][_0x8014ea]||{};ServiceUtil['showGraphqlErrorResponse'](_0x195189);}catch(_0x608106){ServiceUtil['showGraphqlException'](_0x608106);}return null;}static async[a0_0x4539a4(0x122)](_0x44c2a2,_0x4651f4,_0x327454){const _0x5a9c31=a0_0x4539a4;try{const _0x25656c=await client[_0x5a9c31(0xff)]({'query':a0_0x5c3447`
|
|
33
33
|
query ($filters: [Filter!], $sortings: [Sorting!]) {
|
|
34
|
-
${
|
|
34
|
+
${_0x44c2a2}(filters: $filters, sortings: $sortings) {
|
|
35
35
|
items {
|
|
36
|
-
${
|
|
36
|
+
${_0x4651f4}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
`,'variables':{'filters':
|
|
40
|
+
`,'variables':{'filters':_0x327454}});if(!_0x25656c[_0x5a9c31(0xad)])return _0x25656c[_0x5a9c31(0x10c)][_0x44c2a2]['items']||[];ServiceUtil['showGraphqlErrorResponse'](_0x25656c);}catch(_0x5e220a){ServiceUtil[_0x5a9c31(0x156)](_0x5e220a);}return null;}static[a0_0x4539a4(0x13b)](_0x503760,_0x4e1072){const _0x55caf1=a0_0x4539a4,_0x350cbe=_0x503760[_0x55caf1(0x149)][_0x55caf1(0xb4)](_0x3643d9=>_0x3643d9['id']);return ValueUtil[_0x55caf1(0x13a)](_0x350cbe)&&0x1==_0x4e1072&&UiUtil['showAlertPopup'](_0x55caf1(0x11d),_0x55caf1(0xdd),'info',_0x55caf1(0xdb)),_0x350cbe;}static async[a0_0x4539a4(0x131)](_0x16f363,_0x2c056f){const _0x586ba3=a0_0x4539a4;let _0x367cc8=ServiceUtil[_0x586ba3(0x13b)](_0x16f363,!0x0);ValueUtil[_0x586ba3(0xee)](_0x367cc8)&&(await ServiceUtil[_0x586ba3(0xb6)](_0x367cc8,_0x2c056f)&&_0x16f363['fetch']());}static async[a0_0x4539a4(0xb6)](_0x575a8a,_0x3e7e59){const _0x1d4e36=a0_0x4539a4;if((await UiUtil['showAlertPopup'](_0x1d4e36(0x12b),'text.are_you_sure','question','delete',_0x1d4e36(0x135)))[_0x1d4e36(0xb8)])try{const _0x5d775f=await client['query']({'query':a0_0x5c3447`
|
|
41
41
|
mutation {
|
|
42
|
-
${
|
|
43
|
-
}`});if(!
|
|
42
|
+
${_0x3e7e59}(${gqlBuilder[_0x1d4e36(0x12d)]({'ids':_0x575a8a})})
|
|
43
|
+
}`});if(!_0x5d775f[_0x1d4e36(0xad)])return UiUtil[_0x1d4e36(0x112)](_0x1d4e36(0xcc),TermsUtil[_0x1d4e36(0xfd)]('success\x20to\x20delete')),!0x0;ServiceUtil['showGraphqlErrorResponse'](_0x5d775f);}catch(_0x28e6eb){ServiceUtil[_0x1d4e36(0x156)](_0x28e6eb);}return!0x1;}static async[a0_0x4539a4(0x153)](_0x15980b,_0x2215f0){const _0x54b830=a0_0x4539a4;let _0x49ea70=ServiceUtil[_0x54b830(0xc5)](_0x15980b);if(ValueUtil['isNotEmpty'](_0x49ea70)){let _0x535022=await ServiceUtil[_0x54b830(0x151)](_0x2215f0,_0x49ea70);if(_0x535022)return _0x15980b['fetch'](),_0x535022;}return!0x1;}static async['updateMultiple'](_0x527393,_0x317605){const _0x55ad4b=a0_0x4539a4;try{const _0xb0fe8=await client[_0x55ad4b(0xff)]({'query':a0_0x5c3447`
|
|
44
44
|
mutation {
|
|
45
|
-
${
|
|
45
|
+
${_0x527393}(${gqlBuilder[_0x55ad4b(0x12d)]({'patches':_0x317605})}) {
|
|
46
46
|
id
|
|
47
47
|
}
|
|
48
|
-
}`,'context':{'hasUpload':!0x0}});if(!
|
|
48
|
+
}`,'context':{'hasUpload':!0x0}});if(!_0xb0fe8[_0x55ad4b(0xad)])return UiUtil['showToast']('info',TermsUtil[_0x55ad4b(0xfd)](_0x55ad4b(0xfe))),!0x0;ServiceUtil[_0x55ad4b(0x138)](_0xb0fe8);}catch(_0x4ae6c1){ServiceUtil['showGraphqlException'](_0x4ae6c1);}return!0x1;}static['patchesForUpdateMultiple'](_0x319341,_0x57728b=!0x1){const _0x3ce552=a0_0x4539a4;let _0x410701=_0x319341[_0x3ce552(0x144)],_0x1ea3b3={};((_0x319341['config']||{})[_0x3ce552(0x152)]||[])[_0x3ce552(0x12e)](_0x1d0be4=>!0x0===(_0x1d0be4['record']||{})['mandatory'])[_0x3ce552(0xf6)](_0x2e24c1=>{const _0x4babf2=_0x3ce552;_0x1ea3b3[_0x2e24c1[_0x4babf2(0xd0)]]=_0x2e24c1['header'];});let _0x5ac0e9=((_0x319341[_0x3ce552(0x103)]||{})[_0x3ce552(0x152)]||[])['filter'](_0x21c8c0=>_0x3ce552(0xc4)===_0x21c8c0[_0x3ce552(0xda)])[_0x3ce552(0xb4)](_0x1f2b83=>_0x1f2b83[_0x3ce552(0xd0)]);if(!_0x410701||0x0==_0x410701[_0x3ce552(0xf1)])return void UiUtil[_0x3ce552(0xb7)]('text.nothing_changed','text.NOTHING_CHANGED',_0x3ce552(0xcc),_0x3ce552(0xdb));let _0x290a0e=[];for(let _0x15e9c8 in _0x410701){let _0x5c615b=_0x410701[_0x15e9c8],_0x24e47b=_0x5c615b['id']?{'id':_0x5c615b['id']}:{};for(let _0x418eb0 in _0x1ea3b3)if(void 0x0===_0x5c615b[_0x418eb0]||''==_0x5c615b[_0x418eb0])return console[_0x3ce552(0xba)](_0x5c615b),void UiUtil[_0x3ce552(0xb7)](_0x3ce552(0x12a),TermsUtil[_0x3ce552(0xfd)](_0x3ce552(0xc7),{'x':_0x1ea3b3[_0x418eb0]}),_0x3ce552(0xcc),_0x3ce552(0xdb));for(let _0x4a159c in _0x5c615b)['creator',_0x3ce552(0xc1),_0x3ce552(0xd5),_0x3ce552(0xc3),_0x3ce552(0xc0),_0x3ce552(0xd9),_0x3ce552(0xe0),'__seq__','__selected__']['includes'](_0x4a159c)||(0x0==_0x5ac0e9[_0x3ce552(0x10b)](_0x4a159c)&&_0x5c615b[_0x4a159c]&&_0x3ce552(0x139)==typeof _0x5c615b[_0x4a159c]&&0x0==_0x57728b?_0x24e47b[_0x4a159c]={'id':_0x5c615b[_0x4a159c]['id']}:_0x24e47b[_0x4a159c]=_0x5c615b[_0x4a159c]);_0x24e47b['cuFlag']=_0x5c615b[_0x3ce552(0xc0)],_0x290a0e[_0x3ce552(0x11b)](_0x24e47b);}return _0x290a0e;}static async[a0_0x4539a4(0x134)](_0x3a50f6,_0x109aad,_0x3752d3){const _0x351980=a0_0x4539a4;try{let _0x3f4f6f=a0_0x5c3447`
|
|
49
49
|
mutation {
|
|
50
|
-
${
|
|
50
|
+
${_0x3a50f6}(id: "${_0x109aad}", ${gqlBuilder[_0x351980(0x12d)]({'patch':_0x3752d3})}) {
|
|
51
51
|
id
|
|
52
52
|
}
|
|
53
|
-
}`;const
|
|
53
|
+
}`;const _0x2264fd=await client[_0x351980(0xff)]({'query':_0x3f4f6f,'context':{'hasUpload':!0x0}});if(!_0x2264fd[_0x351980(0xad)])return UiUtil[_0x351980(0x112)](_0x351980(0xcc),TermsUtil[_0x351980(0xfd)](_0x351980(0xfe))),!0x0;ServiceUtil[_0x351980(0x138)](_0x2264fd);}catch(_0x229cff){ServiceUtil[_0x351980(0x156)](_0x229cff);}return!0x1;}static async[a0_0x4539a4(0x132)](_0x4f72f2,_0x3c54dc,_0x121605){const _0x787db7=a0_0x4539a4;return _0x787db7(0xff)==_0x4f72f2['graphql_type']?await this[_0x787db7(0x100)](_0x4f72f2,_0x3c54dc,_0x121605):await this[_0x787db7(0x101)](_0x4f72f2,_0x3c54dc,_0x121605);}static async[a0_0x4539a4(0x100)](_0xe52182,_0x1b2257,_0x208d1a){const _0x1f5bf3=a0_0x4539a4;let _0x3d8b6b=_0xe52182[_0x1f5bf3(0x137)],_0x622de1=_0xe52182['query_name'],_0x139675=_0xe52182[_0x1f5bf3(0x14b)],_0x56ccde=_0xe52182[_0x1f5bf3(0xde)],_0x3e2cef=_0xe52182[_0x1f5bf3(0x146)];if(_0x56ccde&&_0x56ccde[_0x1f5bf3(0xf1)]>0x0&&_0x1b2257){let _0x23a8bb=Object['keys'](_0x1b2257);_0x56ccde[_0x1f5bf3(0xf6)](_0x23faf6=>{const _0x57c26a=_0x1f5bf3;let _0x53bed1=_0x23faf6[_0x57c26a(0xb8)];if(_0x57c26a(0xb0)==typeof _0x53bed1&&_0x53bed1[_0x57c26a(0xe2)]('$')){let _0x4eafcb=_0x53bed1['replace']('$','');_0x23a8bb[_0x57c26a(0x10b)](_0x4eafcb)&&(_0x23faf6[_0x57c26a(0xb8)]=_0x1b2257[_0x4eafcb]);}});}if(_0x56ccde&&_0x56ccde['length']>0x0&&_0x208d1a){let _0x1cd49e=Array['isArray'](_0x208d1a)?_0x208d1a[0x0]:_0x208d1a,_0x2389e8=Object[_0x1f5bf3(0x14d)](_0x1cd49e);_0x56ccde[_0x1f5bf3(0xf6)](_0x42a165=>{const _0x3b5b04=_0x1f5bf3;let _0xa67d84=_0x42a165[_0x3b5b04(0xb8)];if(_0x3b5b04(0xb0)==typeof _0xa67d84&&_0xa67d84[_0x3b5b04(0xe2)]('$')){let _0x23eb82=_0xa67d84['replace']('$','');_0x2389e8[_0x3b5b04(0x10b)](_0x23eb82)&&(_0x42a165[_0x3b5b04(0xb8)]=_0x1cd49e[_0x23eb82]);}});}if('singleById'==_0x3d8b6b){let _0x445a16=_0xe52182[_0x1f5bf3(0xd7)],_0x56f777=_0x1b2257[_0x445a16];if(_0x56f777||(_0x56f777=Array[_0x1f5bf3(0xdc)](_0x208d1a)?_0x208d1a[0x0][_0x445a16]:_0x208d1a[_0x445a16]),!_0x56f777)throw new Error(_0x1f5bf3(0xc9));return await ServiceUtil[_0x1f5bf3(0xe3)](_0x622de1,_0x56f777,_0x139675);}if(_0x1f5bf3(0x13e)==_0x3d8b6b)return await ServiceUtil['findByFilters'](_0x622de1,_0x139675,_0x56ccde);if(_0x1f5bf3(0x145)==_0x3d8b6b)return await ServiceUtil[_0x1f5bf3(0x122)](_0x622de1,_0x139675,_0x56ccde);if(_0x1f5bf3(0x123)==_0x3d8b6b){let _0x2bb3f2=0x1,_0x55c86a=_0xe52182['limit'];return await ServiceUtil[_0x1f5bf3(0xd8)](_0x622de1,_0x56ccde,_0x3e2cef,_0x2bb3f2,_0x55c86a,_0x139675);}throw new Error(_0x1f5bf3(0xec)+_0x3d8b6b+']');}static async[a0_0x4539a4(0x101)](_0x59ab7c,_0x4d3e9a,_0x4307b2){const _0x5ae257=a0_0x4539a4;if(!_0x59ab7c[_0x5ae257(0x142)])throw new Error(_0x5ae257(0x10a));if(!_0x59ab7c['mutation_type'])throw new Error(_0x5ae257(0x115));let _0x7033eb=_0x59ab7c[_0x5ae257(0x10c)],_0x165baf=Array[_0x5ae257(0xdc)](_0x4307b2)?[]:{};_0x7033eb&&(Array[_0x5ae257(0xdc)](_0x165baf)?ValueUtil['isNotEmpty'](_0x4307b2)&&_0x4307b2[_0x5ae257(0xf6)](_0x3f24bc=>{const _0x13ab2d=_0x5ae257;let _0x13fe9a=JSON[_0x13ab2d(0xbd)](JSON[_0x13ab2d(0xcb)](_0x7033eb)),_0x2dad98=ValueUtil['replaceVariableObject'](_0x13fe9a,_0x3f24bc);_0x165baf[_0x13ab2d(0x11b)](_0x2dad98);}):ValueUtil[_0x5ae257(0xee)](_0x4307b2)&&(_0x165baf=ValueUtil[_0x5ae257(0x13c)](_0x7033eb,_0x4307b2)),ValueUtil['isEmpty'](_0x165baf)&&(_0x165baf=ValueUtil[_0x5ae257(0x13c)](_0x7033eb,_0x4d3e9a)));try{let _0x444739=_0x59ab7c[_0x5ae257(0xd7)]?ValueUtil[_0x5ae257(0xee)](_0x4d3e9a)?_0x4d3e9a[_0x59ab7c[_0x5ae257(0xd7)]]:Array[_0x5ae257(0xdc)](_0x4307b2)?_0x4307b2[0x0][_0x59ab7c[_0x5ae257(0xd7)]]:_0x4307b2[_0x59ab7c[_0x5ae257(0xd7)]]:null,_0x510640=await ServiceUtil[_0x5ae257(0x108)](_0x59ab7c,_0x444739,ValueUtil[_0x5ae257(0x13a)](_0x165baf)?_0x4307b2:_0x165baf);if(!_0x510640['errors'])return UiUtil[_0x5ae257(0x112)]('info',TermsUtil[_0x5ae257(0xfd)](_0x5ae257(0x14a))),_0x510640;ServiceUtil[_0x5ae257(0x138)](_0x510640);}catch(_0x3a7d1f){ServiceUtil[_0x5ae257(0x156)](_0x3a7d1f);}}static async['callMutation'](_0x44886a,_0x3cbda9,_0x50a324){const _0x35ef9d=a0_0x4539a4;let _0x44bac6=_0x44886a['mutation_type'];return'id'==_0x44bac6?await ServiceUtil[_0x35ef9d(0xaf)](_0x44886a,_0x3cbda9):_0x35ef9d(0xb1)==_0x44bac6?await ServiceUtil[_0x35ef9d(0x129)](_0x44886a,_0x50a324):_0x35ef9d(0x147)==_0x44bac6?await ServiceUtil[_0x35ef9d(0x113)](_0x44886a,_0x3cbda9,_0x50a324):_0x35ef9d(0x10c)==_0x44bac6?await ServiceUtil[_0x35ef9d(0x12f)](_0x44886a,_0x50a324):void 0x0;}static async[a0_0x4539a4(0xaf)](_0x56c2a3,_0x3c6c15){const _0xd87443=a0_0x4539a4;if(!_0x3c6c15)throw new Error('id_value_not_found');let _0x3dd3f2=_0x56c2a3['mutation_name'],_0x4f80b0=_0x56c2a3[_0xd87443(0xae)];return await client[_0xd87443(0xff)]({'query':a0_0x5c3447`
|
|
54
54
|
mutation ($id: String!) {
|
|
55
|
-
${
|
|
56
|
-
${
|
|
57
|
-
}`,'variables':{'id':
|
|
55
|
+
${_0x3dd3f2}(id: $id)
|
|
56
|
+
${_0x4f80b0?'{'+_0x4f80b0+'}':''}
|
|
57
|
+
}`,'variables':{'id':_0x3c6c15}});}static async['callMutationByIds'](_0x3cbb21,_0x12fd81){const _0x21aff2=a0_0x4539a4;let _0x418c97=_0x3cbb21['param_name'];if(!_0x418c97)throw new Error(_0x21aff2(0x127));let _0x27f565=_0x12fd81[_0x21aff2(0xb4)](_0x3ecdbc=>_0x3ecdbc[_0x3cbb21[_0x21aff2(0xd7)]]),_0x8e0da8=_0x3cbb21[_0x21aff2(0x142)],_0x34a90d=_0x3cbb21[_0x21aff2(0xae)];return await client[_0x21aff2(0xff)]({'query':a0_0x5c3447`
|
|
58
58
|
mutation ($ids: [String!]!) {
|
|
59
|
-
${
|
|
60
|
-
${
|
|
61
|
-
}`,'variables':{'ids':
|
|
62
|
-
mutation ($id: String!, $patch: ${
|
|
63
|
-
${
|
|
64
|
-
${
|
|
65
|
-
}`,'variables':{'id':
|
|
66
|
-
mutation ($patch: ${
|
|
67
|
-
${
|
|
68
|
-
${
|
|
69
|
-
}`,'variables':{'patch':
|
|
59
|
+
${_0x8e0da8}(${_0x418c97}: $ids)
|
|
60
|
+
${_0x34a90d?'{'+_0x34a90d+'}':''}
|
|
61
|
+
}`,'variables':{'ids':_0x27f565}});}static async['callMutationByIdData'](_0x52a858,_0x44e823,_0x7bbf94){const _0x519b14=a0_0x4539a4;let _0x55ae4a=_0x52a858[_0x519b14(0x111)],_0x22850b=_0x52a858['param_type'];if(!_0x22850b)throw new Error(_0x519b14(0x14e));if(!_0x55ae4a)throw new Error(_0x519b14(0x127));if(_0x44e823||(_0x44e823=_0x7bbf94[_0x52a858[_0x519b14(0xd7)]]),!_0x44e823)throw new Error(_0x519b14(0xc9));let _0x181fb3=_0x52a858[_0x519b14(0x142)],_0x169bee=_0x52a858[_0x519b14(0xae)];return await client[_0x519b14(0xff)]({'query':a0_0x5c3447`
|
|
62
|
+
mutation ($id: String!, $patch: ${_0x22850b}!) {
|
|
63
|
+
${_0x181fb3}(id: $id, ${_0x55ae4a}: $patch)
|
|
64
|
+
${_0x169bee?'{'+_0x169bee+'}':''}
|
|
65
|
+
}`,'variables':{'id':_0x44e823,'patch':_0x7bbf94}});}static async[a0_0x4539a4(0x12f)](_0x48beb4,_0x1f64e8){const _0x3f0bce=a0_0x4539a4;let _0x437aa3=_0x48beb4['param_type'],_0x39f21a=_0x48beb4[_0x3f0bce(0x111)];if(!_0x437aa3)throw new Error('param\x20type\x20not\x20found');if(!_0x39f21a)throw new Error('param\x20name\x20not\x20found');let _0x5b2a42=_0x48beb4[_0x3f0bce(0x142)],_0x2a7f9f=_0x48beb4[_0x3f0bce(0xae)];return await client['query']({'query':a0_0x5c3447`
|
|
66
|
+
mutation ($patch: ${_0x437aa3}!) {
|
|
67
|
+
${_0x5b2a42}(${_0x39f21a}: $patch)
|
|
68
|
+
${_0x2a7f9f?'{'+_0x2a7f9f+'}':''}
|
|
69
|
+
}`,'variables':{'patch':_0x1f64e8}});}static async['callScenario'](_0x506020,_0x3ff5d9,_0x2ab448,_0x243df4=!0x0){const _0x3fb387=a0_0x4539a4;let _0x146de7=!0x0;_0x506020&&!0x0===_0x243df4&&(_0x146de7=(await UiUtil[_0x3fb387(0xb7)](_0x3fb387(0x10f)+_0x506020,_0x3fb387(0xe1),_0x3fb387(0x140),_0x3fb387(0xdb),_0x3fb387(0x135)))[_0x3fb387(0xb8)]);if(_0x146de7)try{const _0x26107f=await client[_0x3fb387(0xff)]({'query':a0_0x5c3447`
|
|
70
70
|
mutation ($scenarioName: String!, $variables: Object) {
|
|
71
71
|
runScenario(scenarioName: $scenarioName, variables: $variables) {
|
|
72
72
|
state
|
|
@@ -75,4 +75,4 @@ function a0_0x5c7c(){const _0xc7697e=['menu.id','rank','string','mandatory','cal
|
|
|
75
75
|
__typename
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
`,'variables':{'scenarioName':
|
|
78
|
+
`,'variables':{'scenarioName':_0x3ff5d9,'variables':_0x2ab448}});if(_0x26107f[_0x3fb387(0xad)])ServiceUtil[_0x3fb387(0x138)](_0x26107f);else{if(this['checkClientError'](_0x26107f))return!0x0===_0x243df4&&UiUtil['showToast'](_0x3fb387(0xcc),TermsUtil[_0x3fb387(0xfd)](_0x3fb387(0x14a))),_0x26107f;}}catch(_0xcf3d73){ServiceUtil['showGraphqlException'](_0xcf3d73);}return!0x1;}static[a0_0x4539a4(0xe6)](_0x3502fe){const _0x2cf828=a0_0x4539a4;if(_0x3502fe&&_0x3502fe[_0x2cf828(0x10c)]&&_0x3502fe[_0x2cf828(0x10c)][_0x2cf828(0xc8)]&&_0x3502fe[_0x2cf828(0x10c)][_0x2cf828(0xc8)][_0x2cf828(0xbc)]&&_0x3502fe['data'][_0x2cf828(0xc8)][_0x2cf828(0xbc)][_0x2cf828(0x114)]){let _0x1646e7=_0x3502fe[_0x2cf828(0x10c)][_0x2cf828(0xc8)]['result'][_0x2cf828(0x114)];return UiUtil[_0x2cf828(0xb7)](_0x1646e7[_0x2cf828(0xb5)],_0x1646e7[_0x2cf828(0x150)],'error',_0x2cf828(0xdb)),!0x1;}return!0x0;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4ab2e1=a0_0x16a3;function a0_0x16a3(_0x2821c0,_0x4b1e14){const _0x4f40f7=a0_0x4f40();return a0_0x16a3=function(_0x16a3ba,_0x1da189){_0x16a3ba=_0x16a3ba-0x188;let _0x1aa1ca=_0x4f40f7[_0x16a3ba];return _0x1aa1ca;},a0_0x16a3(_0x2821c0,_0x4b1e14);}function a0_0x4f40(){const _0x467ed6=['META_TERMS','total','errors','button','11411125CIeZkL','category','text','field','data','tMenu','2410074FHwLxT','654039uuhovi','forEach','fetchTerminologies','10JnzZYl','locale','5pTJvxD','1812556WbBFeM','menu','terminologies','4043766tltbCE','20503TTvwIb','items','2112infoaa','translate','query','replace','tText','761CfrAYD','1466QWtLfu','title','length','display','tLabel','keys','error','tField','tButton','name'];a0_0x4f40=function(){return _0x467ed6;};return a0_0x4f40();}(function(_0x529881,_0x169fec){const _0x84fe0a=a0_0x16a3,_0x2a1dc9=_0x529881();while(!![]){try{const _0x18891e=-parseInt(_0x84fe0a(0x18d))/0x1*(-parseInt(_0x84fe0a(0x18e))/0x2)+parseInt(_0x84fe0a(0x1a2))/0x3+parseInt(_0x84fe0a(0x1a9))/0x4+-parseInt(_0x84fe0a(0x1a8))/0x5*(-parseInt(_0x84fe0a(0x1ac))/0x6)+parseInt(_0x84fe0a(0x1ad))/0x7*(-parseInt(_0x84fe0a(0x188))/0x8)+-parseInt(_0x84fe0a(0x1a3))/0x9*(parseInt(_0x84fe0a(0x1a6))/0xa)+-parseInt(_0x84fe0a(0x19c))/0xb;if(_0x18891e===_0x169fec)break;else _0x2a1dc9['push'](_0x2a1dc9['shift']());}catch(_0x3fab8a){_0x2a1dc9['push'](_0x2a1dc9['shift']());}}}(a0_0x4f40,0x93b29));import a0_0x6dc553 from'graphql-tag';import{client}from'@operato/graphql';import{i18next}from'@operato/i18n';export class TermsUtil{[a0_0x4ab2e1(0x198)]=null;static async['downloadTerminologies'](_0x56ae42){const _0x1dc214=a0_0x4ab2e1;let _0xab2899=(await TermsUtil['fetchTerminologies'](_0x56ae42))['records'];_0xab2899&&_0xab2899[_0x1dc214(0x190)]>0x0&&(this[_0x1dc214(0x198)]={},_0xab2899[_0x1dc214(0x1a4)](_0x4fc167=>{const _0xcf646a=_0x1dc214;let _0x445ee4=_0x4fc167[_0xcf646a(0x19d)]+'.'+_0x4fc167[_0xcf646a(0x197)];this[_0xcf646a(0x198)][_0x445ee4]=_0x4fc167[_0xcf646a(0x191)];}));}static async[a0_0x4ab2e1(0x1a5)](_0x2728fb){const _0x1664a7=a0_0x4ab2e1;let _0x283526=[{'name':_0x1664a7(0x1a7),'operator':'eq','value':_0x2728fb}];const _0x8adb09=await client[_0x1664a7(0x18a)]({'query':a0_0x6dc553`
|
|
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_0x23e1a3=a0_0x7d99;function a0_0x7d99(_0x26bea2,_0x37cace){const _0x14c
|
|
|
11
11
|
total
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
`,'variables':{'filters':
|
|
14
|
+
`,'variables':{'filters':_0x283526,'sortings':[{'name':_0x1664a7(0x19d)},{'name':_0x1664a7(0x197)}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0x8adb09[_0x1664a7(0x19a)])return{'records':_0x8adb09[_0x1664a7(0x1a0)][_0x1664a7(0x1ab)][_0x1664a7(0x1ae)]||[],'total':_0x8adb09[_0x1664a7(0x1a0)][_0x1664a7(0x1ab)][_0x1664a7(0x199)]||0x0};}static[a0_0x4ab2e1(0x192)](_0x33b2df,_0x4fa421){const _0x5e27cf=a0_0x4ab2e1;let _0x1ae049=TermsUtil[_0x5e27cf(0x189)]('label',_0x33b2df,_0x4fa421,null);return _0x1ae049||TermsUtil[_0x5e27cf(0x189)]('field',_0x33b2df,_0x4fa421,_0x33b2df);}static[a0_0x4ab2e1(0x195)](_0x76d71f,_0x2c4688){const _0xc5079a=a0_0x4ab2e1;let _0x23f228=TermsUtil[_0xc5079a(0x189)]('field',_0x76d71f,_0x2c4688,null);return _0x23f228||TermsUtil[_0xc5079a(0x189)](_0xc5079a(0x19f),_0x76d71f,_0x2c4688,_0x76d71f);}static[a0_0x4ab2e1(0x196)](_0x506810){const _0x3291d7=a0_0x4ab2e1;return TermsUtil['translate'](_0x3291d7(0x19b),_0x506810,null,_0x506810);}static['tTitle'](_0x5f5077,_0x280da2){const _0x27c65e=a0_0x4ab2e1;let _0x280dab=TermsUtil[_0x27c65e(0x189)]('title',_0x5f5077,_0x280da2,null);return _0x280dab||TermsUtil[_0x27c65e(0x189)](_0x27c65e(0x1aa),_0x5f5077,_0x280da2,_0x5f5077);}static[a0_0x4ab2e1(0x1a1)](_0xefcbc9){const _0x4dd845=a0_0x4ab2e1;let _0x468441=TermsUtil[_0x4dd845(0x189)](_0x4dd845(0x1aa),_0xefcbc9,null,null);return _0x468441||TermsUtil['translate'](_0x4dd845(0x18f),_0xefcbc9,null,_0xefcbc9);}static[a0_0x4ab2e1(0x18c)](_0x2b25b4,_0x2cffb8){const _0x4d6c95=a0_0x4ab2e1;return TermsUtil[_0x4d6c95(0x189)](_0x4d6c95(0x19e),_0x2b25b4,_0x2cffb8,_0x2b25b4);}static['tError'](_0xdb329b,_0x4dc2c5){const _0x2493af=a0_0x4ab2e1;return TermsUtil[_0x2493af(0x189)](_0x2493af(0x194),_0xdb329b,_0x4dc2c5,_0xdb329b);}static[a0_0x4ab2e1(0x189)](_0x37cdab,_0x1872b3,_0x4d5228,_0x309e61){let _0x2606a6=_0x37cdab+'.'+_0x1872b3;return TermsUtil['t'](_0x2606a6,_0x4d5228,_0x309e61);}static['t'](_0x9b13cb,_0x3975a5,_0x1faa2e){const _0x54c40d=a0_0x4ab2e1;let _0x8afeda=this[_0x54c40d(0x198)]?this[_0x54c40d(0x198)][_0x9b13cb]:null;return _0x8afeda=_0x8afeda||i18next['t'](_0x9b13cb),_0x8afeda&&_0x9b13cb!=_0x8afeda?(_0x3975a5&&Object[_0x54c40d(0x193)](_0x3975a5)['forEach'](function(_0x21a72d){const _0x2b39b6=_0x54c40d;var _0x5b98e1='\x5c{'+_0x21a72d[_0x2b39b6(0x18b)](/\$/,'\x5c$')+'\x5c}',_0x163eac=new RegExp(_0x5b98e1,'gi');_0x8afeda=_0x8afeda['replace'](_0x163eac,_0x3975a5[_0x21a72d]);}),_0x8afeda):_0x1faa2e;}}
|
package/client/utils/ui-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x31923e=a0_0x5159;(function(_0xd43aad,_0x3f7a45){const _0x20908f=a0_0x5159,_0x435c2d=_0xd43aad();while(!![]){try{const _0x2824bd=-parseInt(_0x20908f(0x1c6))/0x1*(-parseInt(_0x20908f(0x1a5))/0x2)+parseInt(_0x20908f(0x18e))/0x3*(-parseInt(_0x20908f(0x196))/0x4)+parseInt(_0x20908f(0x1ae))/0x5+-parseInt(_0x20908f(0x1b5))/0x6*(parseInt(_0x20908f(0x1ca))/0x7)+-parseInt(_0x20908f(0x1b0))/0x8+parseInt(_0x20908f(0x1a8))/0x9+-parseInt(_0x20908f(0x1d3))/0xa*(-parseInt(_0x20908f(0x1c4))/0xb);if(_0x2824bd===_0x3f7a45)break;else _0x435c2d['push'](_0x435c2d['shift']());}catch(_0x291529){_0x435c2d['push'](_0x435c2d['shift']());}}}(a0_0x1cfd,0xd1c61));import{store,CustomAlert,navigate}from'@things-factory/shell';import{openPopup}from'@operato/layout';import{closePopup}from'@operato/popup';import{isMobileDevice}from'@operato/utils';import{getEditor}from'@operato/data-grist';import{TermsUtil}from'./terms-util';import{ValueUtil}from'./value-util';function a0_0x1cfd(){const _0x2bcbe5=['center','querySelector','barcode','pass=','ox-select','4531760mRyjCf','i18next','tButton','renderRoot','split','onclosed','getState','currentLocale','getFilterFormData','tagname','large','dispatchEvent','setValueToEditor','type','cookie','14PngWak','code-editor','notify','8685342LRVZpn','app','childNodes','content','isMobileEnv','confirmButton','5171680EOduKc','template','10945664vpdMIw','closePopupBy','innerHTML','stringify','indexOf','72Qrnqal','replace','pageNavigate','getType','getParams','createEditorHtml','editor','getStore','setSearchFormEditorValue','config','showAlertPopup','htmlToElement','substring','showToast','style','1163998CdPnxJ','length','189967SPtMHa','popup_field','[name=\x27','isNotEmpty','43505DNUMUt','forEach','input','edge','\x20route_name=\x27','ko-KR','removeChild','95dvh','getLeafInput','10blPcRB','currentRouting','parent_field','height','select-combo','ox-input-barcode','firstElementChild','full','name','textarea','openDynamicPopup','page','createCustomElement','openPopupByElement','i18next=','value','3mfNmRN','ox-input-code','route'];a0_0x1cfd=function(){return _0x2bcbe5;};return a0_0x1cfd();}import{MetaUiUtil}from'./meta-ui-util';function a0_0x5159(_0x265401,_0x3fc46c){const _0x1cfd4c=a0_0x1cfd();return a0_0x5159=function(_0x515929,_0x2f92fb){_0x515929=_0x515929-0x18b;let _0x7d8e59=_0x1cfd4c[_0x515929];return _0x7d8e59;},a0_0x5159(_0x265401,_0x3fc46c);}export class UiUtil{static[a0_0x31923e(0x1ac)](){return isMobileDevice();}static[a0_0x31923e(0x19d)](){const _0x40a3bf=a0_0x31923e;let _0x46f120=document[_0x40a3bf(0x1a4)];return _0x46f120=_0x46f120[_0x40a3bf(0x1c1)](_0x46f120[_0x40a3bf(0x1b4)](_0x40a3bf(0x197))),_0x46f120[_0x40a3bf(0x1b4)](';')>-0x1&&(_0x46f120=_0x46f120[_0x40a3bf(0x1c1)](0x0,_0x46f120[_0x40a3bf(0x1b4)](';'))),_0x46f120=_0x46f120[_0x40a3bf(0x1b6)](_0x40a3bf(0x18c),''),'ko'==_0x46f120?_0x40a3bf(0x1cf):_0x46f120;}static['getApplicationModuleInfo'](){const _0xa12cb3=a0_0x31923e;let _0x21b5a5=store['getState']()[_0xa12cb3(0x1a9)]['modules'];return _0x21b5a5[_0x21b5a5[_0xa12cb3(0x1c5)]-0x1];}static[a0_0x31923e(0x1d4)](){const _0x27b5f3=a0_0x31923e;return store[_0x27b5f3(0x19c)]()[_0x27b5f3(0x190)][_0x27b5f3(0x1de)];}static[a0_0x31923e(0x1b1)](_0x273d1a){closePopup(_0x273d1a);}static[a0_0x31923e(0x18b)](_0xc5c3c8,_0x26e75d,_0x3945fa,_0x4ee949){const _0x37c06b=a0_0x31923e;return _0x37c06b(0x1da)===_0x26e75d&&(_0x3945fa[_0x37c06b(0x1c3)][_0x37c06b(0x1d6)]=_0x37c06b(0x1d1)),openPopup(_0x3945fa,{'backdrop':!0x0,'hovering':_0x37c06b(0x1da)===_0x26e75d?_0x37c06b(0x1cd):_0x37c06b(0x191),'size':_0x37c06b(0x1da)===_0x26e75d?_0x37c06b(0x1a0):_0x26e75d,'title':_0xc5c3c8,'backdrop':_0x4ee949});}static async[a0_0x31923e(0x1dd)](_0x312edf,_0x1194bf,_0x88389,_0x3eb19b){const _0x5cb0db=a0_0x31923e;let _0x5ab18b=ValueUtil['isNotEmpty'](_0x1194bf[_0x5cb0db(0x1d5)])?ValueUtil[_0x5cb0db(0x1b9)](_0x88389,..._0x1194bf['parent_field'][_0x5cb0db(0x19a)]('.')):void 0x0,_0x8eeb42='<'+_0x1194bf[_0x5cb0db(0x19f)]+_0x5cb0db(0x1ce)+_0x1194bf['menu']+'\x27\x20parent_id=\x27'+_0x5ab18b+'\x27\x20is_popup=true></'+_0x1194bf[_0x5cb0db(0x19f)]+'>',_0x5648da=UiUtil['htmlToElement'](_0x8eeb42);_0x5648da[_0x5cb0db(0x1be)]=_0x1194bf,ValueUtil[_0x5cb0db(0x1c9)](_0x1194bf[_0x5cb0db(0x1c7)])&&(_0x5648da[_0x1194bf[_0x5cb0db(0x1c7)]]=_0x88389);let _0x2cb61d=UiUtil[_0x5cb0db(0x18b)](_0x312edf,_0x1194bf['size'],_0x5648da,!0x0);_0x3eb19b&&(_0x2cb61d[_0x5cb0db(0x19b)]=_0x3eb19b);}static[a0_0x31923e(0x1df)](_0x2d61d0,_0x30380f){const _0x434c71=a0_0x31923e;let _0x3d9717='<'+_0x2d61d0+_0x434c71(0x1ce)+_0x30380f+'\x27></'+_0x2d61d0+'>';return UiUtil[_0x434c71(0x1c0)](_0x3d9717);}static['htmlToElement'](_0x53bd62){const _0x37d3a2=a0_0x31923e;var _0x62a94c=document['createElement'](_0x37d3a2(0x1af));_0x62a94c[_0x37d3a2(0x1b2)]=_0x53bd62;var _0x4bb2d0=_0x62a94c[_0x37d3a2(0x1ab)][_0x37d3a2(0x1aa)][0x0];return _0x62a94c[_0x37d3a2(0x1ab)][_0x37d3a2(0x1d0)](_0x4bb2d0),_0x4bb2d0;}static[a0_0x31923e(0x1b7)](_0x1a8b53,_0x5663ee){const _0x370139=a0_0x31923e;let _0xd82b26=_0x5663ee?'?':'';_0x5663ee&&(_0xd82b26+=_0x370139(0x194)+JSON[_0x370139(0x1b3)](_0x5663ee)),navigate(''+_0x1a8b53+_0xd82b26);}static[a0_0x31923e(0x1bc)](_0x4438ff,_0x3bf67c,_0x41b06d){let _0x3e4119=_0x3e4119['getState']();return _0x4438ff&&_0x3bf67c&&_0x41b06d?_0x3e4119[_0x4438ff][_0x3bf67c][_0x41b06d]:_0x4438ff&&_0x3bf67c?_0x3e4119[_0x4438ff][_0x3bf67c]:_0x4438ff?_0x3e4119[_0x4438ff]:_0x3e4119;}static['fireCustomEvent'](_0x4f98a0,_0x2e7de5){const _0x29d7d7=a0_0x31923e;document[_0x29d7d7(0x1a1)](new CustomEvent(_0x4f98a0,{'detail':_0x2e7de5}));}static[a0_0x31923e(0x1c2)](_0xaedf3c,_0x4ad240){const _0x4f3fc2=a0_0x31923e;document[_0x4f3fc2(0x1a1)](new CustomEvent(_0x4f3fc2(0x1a7),{'detail':{'type':_0xaedf3c,'message':_0x4ad240}}));}static async[a0_0x31923e(0x1bf)](_0x163fcb,_0x335fae,_0x3942e6,_0x5e52ad,_0x4dcc7d){const _0x7a84ab=a0_0x31923e;let _0xac14d5={'title':TermsUtil['t'](_0x163fcb)||_0x163fcb,'text':TermsUtil['t'](_0x335fae)||_0x335fae};return _0x3942e6&&(_0xac14d5[_0x7a84ab(0x1a3)]=_0x3942e6),_0x5e52ad&&(_0xac14d5[_0x7a84ab(0x1ad)]=TermsUtil[_0x7a84ab(0x198)](_0x5e52ad)),_0x4dcc7d&&(_0xac14d5['cancelButton']=TermsUtil[_0x7a84ab(0x198)](_0x4dcc7d)),await CustomAlert(_0xac14d5);}static[a0_0x31923e(0x19e)](_0x3586a9){const _0x391e67=a0_0x31923e;if(ValueUtil[_0x391e67(0x1c9)](_0x3586a9)){let _0x1433a6=_0x3586a9['filters']();ValueUtil['isNotEmpty'](_0x1433a6)&&_0x1433a6[_0x391e67(0x1cb)](_0x10be80=>{const _0x520f47=_0x391e67;ValueUtil['isNotEmpty'](_0x10be80[_0x520f47(0x18d)])&&(item[_0x10be80[_0x520f47(0x1db)]]=_0x10be80[_0x520f47(0x18d)]?_0x10be80[_0x520f47(0x18d)]:null);});}return{};}static[a0_0x31923e(0x1bd)](_0x224614,_0x310e04,_0x239571){const _0x1837ae=a0_0x31923e;if(ValueUtil[_0x1837ae(0x1c9)](_0x224614)){let _0x5941e7=_0x224614[_0x1837ae(0x199)]?.[_0x1837ae(0x192)](_0x1837ae(0x1c8)+_0x310e04+'\x27]');ValueUtil[_0x1837ae(0x1c9)](_0x5941e7)&&(_0x5941e7[_0x1837ae(0x18d)]=_0x239571);}}static[a0_0x31923e(0x1ba)](_0x80a02,_0xf26026,_0x53b1f5,_0x47c4de){return getEditor(_0x80a02)('',_0xf26026,_0x53b1f5,_0x47c4de,{});}static[a0_0x31923e(0x1a2)](_0x53d5c2,_0x4402ab){const _0xeba14f=a0_0x31923e;UiUtil['getLeafInput'](_0x53d5c2)[_0xeba14f(0x18d)]=_0x4402ab;}static[a0_0x31923e(0x1d2)](_0x28421b){const _0x3a0756=a0_0x31923e;let _0x1e2db0=_0x28421b[_0x3a0756(0x1b8)]();return _0x3a0756(0x1a6)==_0x1e2db0?_0x28421b[_0x3a0756(0x199)][_0x3a0756(0x192)](_0x3a0756(0x18f)):_0x3a0756(0x1dc)==_0x1e2db0?_0x28421b[_0x3a0756(0x199)]['querySelector'](_0x3a0756(0x1dc)):_0x3a0756(0x1d7)==_0x1e2db0?_0x28421b[_0x3a0756(0x199)][_0x3a0756(0x192)](_0x3a0756(0x195))[_0x3a0756(0x1d9)]:_0x3a0756(0x193)==_0x1e2db0?_0x28421b[_0x3a0756(0x199)]['querySelector'](_0x3a0756(0x1d8))[_0x3a0756(0x199)][_0x3a0756(0x192)](_0x3a0756(0x1cc)):_0x28421b[_0x3a0756(0x199)][_0x3a0756(0x1d9)][_0x3a0756(0x1bb)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x2ae9c4=a0_0x1a34;(function(_0x4d86c3,_0x32a3de){const _0x2c6231=a0_0x1a34,_0x1cb44e=_0x4d86c3();while(!![]){try{const _0x393189=-parseInt(_0x2c6231(0x1fe))/0x1*(-parseInt(_0x2c6231(0x1ed))/0x2)+parseInt(_0x2c6231(0x1f9))/0x3*(parseInt(_0x2c6231(0x1f0))/0x4)+-parseInt(_0x2c6231(0x208))/0x5+parseInt(_0x2c6231(0x1fa))/0x6*(-parseInt(_0x2c6231(0x1ef))/0x7)+-parseInt(_0x2c6231(0x1ff))/0x8*(-parseInt(_0x2c6231(0x200))/0x9)+-parseInt(_0x2c6231(0x1ec))/0xa+parseInt(_0x2c6231(0x202))/0xb*(parseInt(_0x2c6231(0x1fc))/0xc);if(_0x393189===_0x32a3de)break;else _0x1cb44e['push'](_0x1cb44e['shift']());}catch(_0x53346f){_0x1cb44e['push'](_0x1cb44e['shift']());}}}(a0_0x28ce,0xd9d0f));function a0_0x28ce(){const _0x3452c9=['number','isEmpty','populateObject','length','getParams','3087685BAvLfg','isArray','string','slice','map','isNotEmpty','650770QMOxne','1402RnZwrk','forEach','7roYNby','38996orqwmQ','true','replace','toInteger','setParams','toBoolean','populateArray','compareObjectValues','keys','15LsUlJu','7350798hVLMOo','boolean','4200DwOlfx','startsWith','1811YrJbFw','66784DLtnXf','828sbOUnC','isEquals','22429NMcKAB'];a0_0x28ce=function(){return _0x3452c9;};return a0_0x28ce();}import a0_0x51ef94 from'lodash-es/isEqual';function a0_0x1a34(_0x40e2a0,_0x4d755e){const _0x28ce36=a0_0x28ce();return a0_0x1a34=function(_0x1a3471,_0x1d7855){_0x1a3471=_0x1a3471-0x1eb;let _0x2d2972=_0x28ce36[_0x1a3471];return _0x2d2972;},a0_0x1a34(_0x40e2a0,_0x4d755e);}import{TermsUtil}from'./terms-util';export class ValueUtil{static[a0_0x2ae9c4(0x204)](_0x4db8a3){const _0x3c50b9=a0_0x2ae9c4;if(void 0x0===_0x4db8a3)return!0x0;if(null===_0x4db8a3)return!0x0;if(_0x3c50b9(0x1fb)==typeof _0x4db8a3)return!0x1;if(_0x3c50b9(0x20a)==typeof _0x4db8a3||_0x3c50b9(0x203)==typeof _0x4db8a3){if(''==_0x4db8a3)return!0x0;}else{if(Array[_0x3c50b9(0x209)](_0x4db8a3)){if(0x0==_0x4db8a3[_0x3c50b9(0x206)])return!0x0;}else{if('object'==typeof _0x4db8a3&&0x0==Object[_0x3c50b9(0x1f8)](_0x4db8a3)[_0x3c50b9(0x206)])return!0x0;}}return!0x1;}static['isNotEmpty'](_0x271491){const _0x157cf9=a0_0x2ae9c4;return!ValueUtil[_0x157cf9(0x204)](_0x271491);}static[a0_0x2ae9c4(0x201)](_0x2a1b6e,_0x5b0929){return a0_0x51ef94(_0x2a1b6e,_0x5b0929);}static[a0_0x2ae9c4(0x1f3)](_0x538797,_0xaa579b){const _0x45d642=a0_0x2ae9c4;return ValueUtil[_0x45d642(0x204)](_0x538797)?_0xaa579b||0x0:parseInt(_0x538797);}static[a0_0x2ae9c4(0x1f5)](_0x6b20e0){const _0x36cc88=a0_0x2ae9c4;return!ValueUtil[_0x36cc88(0x204)](_0x6b20e0)&&(_0x36cc88(0x1f1)==_0x6b20e0||'t'==_0x6b20e0||'TRUE'==_0x6b20e0||'T'==_0x6b20e0||'on'==_0x6b20e0||'ON'==_0x6b20e0);}static[a0_0x2ae9c4(0x1f7)](_0x493c77,_0x42617f,_0x1a92cc){const _0x3ffd9e=a0_0x2ae9c4;let _0x2a3cd7=!0x0;return _0x1a92cc[_0x3ffd9e(0x1ee)](_0x47bd5f=>{const _0x484270=_0x3ffd9e;let _0x1c524a=_0x493c77[_0x47bd5f];if('*'===_0x1c524a)return;let _0x556b61=_0x42617f[_0x47bd5f]||'';ValueUtil[_0x484270(0x204)](_0x1c524a)?ValueUtil['isNotEmpty'](_0x556b61)&&(_0x2a3cd7=!0x1):_0x1c524a!=_0x556b61&&(_0x2a3cd7=!0x1);}),_0x2a3cd7;}static[a0_0x2ae9c4(0x1f4)](_0x1fe9d0,_0x3e9851,_0x2b040f,_0x294f5d){const _0x34a551=a0_0x2ae9c4;let _0x222b2c=ValueUtil[_0x34a551(0x207)](_0x3e9851,_0x2b040f);return ValueUtil[_0x34a551(0x1eb)](_0x222b2c)&&(_0x1fe9d0[_0x2b040f]=!0x0===_0x294f5d?TermsUtil['t'](_0x222b2c):_0x222b2c),_0x1fe9d0;}static['getParams'](_0x1730a9,..._0x514568){const _0x1989a=a0_0x2ae9c4;if(arguments['length']<=0x1)return;let _0x1e7dc1=_0x514568[0x0];if(ValueUtil[_0x1989a(0x204)](_0x1730a9[_0x1e7dc1]))return;let _0x49b63f=_0x1730a9[_0x1e7dc1];return _0x514568[_0x1989a(0x206)]>0x1?ValueUtil[_0x1989a(0x207)](_0x49b63f,..._0x514568[_0x1989a(0x20b)](0x1)):_0x49b63f;}static[a0_0x2ae9c4(0x1f6)](_0xa9a802,_0x3c4016,..._0x59be56){const _0x492626=a0_0x2ae9c4;return _0x3c4016=_0x3c4016||[],_0x59be56=_0x59be56||Object[_0x492626(0x1f8)](_0xa9a802),ValueUtil['isNotEmpty'](_0x59be56)&&(_0x3c4016=_0xa9a802[_0x492626(0x20c)]((_0x40ee6b,_0x5bf4e4)=>{const _0x29567a=_0x492626;let _0xeb67b=_0x3c4016[_0x29567a(0x206)]>_0x5bf4e4?_0x3c4016[_0x5bf4e4]:{};return ValueUtil[_0x29567a(0x205)](_0x40ee6b,_0xeb67b,_0x59be56);})),_0x3c4016;}static['populateObject'](_0x4441c7,_0x1531b1,..._0x585fe8){const _0x40757b=a0_0x2ae9c4;return _0x1531b1=_0x1531b1||{},_0x585fe8=_0x585fe8||Object[_0x40757b(0x1f8)](_0x4441c7),ValueUtil['isNotEmpty'](_0x585fe8)&&_0x585fe8[_0x40757b(0x1ee)](_0x1b175f=>{_0x1531b1[_0x1b175f]=_0x4441c7[_0x1b175f];}),_0x1531b1;}static['replaceVariableObject'](_0x30d026,_0x4190e6){const _0x237b6f=a0_0x2ae9c4;let _0x13ff3b=Object[_0x237b6f(0x1f8)](_0x30d026),_0x73bb2c=Object[_0x237b6f(0x1f8)](_0x4190e6);return _0x13ff3b[_0x237b6f(0x1ee)](_0x16858f=>{const _0x17b01c=_0x237b6f;let _0x48e21d=_0x30d026[_0x16858f];if(_0x17b01c(0x20a)==typeof _0x48e21d&&_0x48e21d[_0x17b01c(0x1fd)]('$')){let _0x2c39c4=_0x48e21d[_0x17b01c(0x1f2)]('$','');_0x73bb2c['includes'](_0x2c39c4)&&(_0x30d026[_0x16858f]=_0x4190e6[_0x2c39c4]);}}),_0x30d026;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a0cd8,_0x3c254a){const _0x24055f=a0_0xe972,_0x282aba=_0x1a0cd8();while(!![]){try{const _0x25d506=-parseInt(_0x24055f(0x145))/0x1+parseInt(_0x24055f(0x14b))/0x2*(parseInt(_0x24055f(0x149))/0x3)+parseInt(_0x24055f(0x144))/0x4+-parseInt(_0x24055f(0x146))/0x5*(-parseInt(_0x24055f(0x142))/0x6)+parseInt(_0x24055f(0x143))/0x7+-parseInt(_0x24055f(0x14a))/0x8*(parseInt(_0x24055f(0x148))/0x9)+-parseInt(_0x24055f(0x147))/0xa;if(_0x25d506===_0x3c254a)break;else _0x282aba['push'](_0x282aba['shift']());}catch(_0x4db459){_0x282aba['push'](_0x282aba['shift']());}}}(a0_0x2052,0xad80d));function a0_0x2052(){const _0x4d5393=['7268440NFYAls','243JWutEC','3nBZoop','393456HobfZb','551612JZCLUw','576XxIuvX','7716205fvyIhI','5061412DRInNX','582591AIreKk','36695oJMvHl'];a0_0x2052=function(){return _0x4d5393;};return a0_0x2052();}function a0_0xe972(_0x35c8bf,_0x40c736){const _0x20527a=a0_0x2052();return a0_0xe972=function(_0xe97208,_0x123fef){_0xe97208=_0xe97208-0x142;let _0x29b6fc=_0x20527a[_0xe97208];return _0x29b6fc;},a0_0xe972(_0x35c8bf,_0x40c736);}import{css}from'lit';export const DynamicMenuLandscapeStyles=css`
|
|
2
2
|
:host {
|
|
3
3
|
overflow-x: auto;
|
|
4
4
|
background-color: var(--secondary-text-color);
|
|
@@ -144,4 +144,4 @@
|
|
|
144
144
|
background-color: rgba(var(--secondary-color-rgb), 0.3);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
`;
|
|
147
|
+
`;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x244274=a0_0x569c;(function(_0x2a9d44,_0x23adbb){const _0x2e808d=a0_0x569c,_0x383ca6=_0x2a9d44();while(!![]){try{const _0x3c911c=-parseInt(_0x2e808d(0xd5))/0x1*(-parseInt(_0x2e808d(0xdd))/0x2)+-parseInt(_0x2e808d(0xbd))/0x3*(-parseInt(_0x2e808d(0xce))/0x4)+-parseInt(_0x2e808d(0xbb))/0x5*(parseInt(_0x2e808d(0xb4))/0x6)+parseInt(_0x2e808d(0xc8))/0x7*(-parseInt(_0x2e808d(0xd7))/0x8)+-parseInt(_0x2e808d(0xc0))/0x9*(-parseInt(_0x2e808d(0xc3))/0xa)+-parseInt(_0x2e808d(0xb3))/0xb*(-parseInt(_0x2e808d(0xc7))/0xc)+-parseInt(_0x2e808d(0xbf))/0xd;if(_0x3c911c===_0x23adbb)break;else _0x383ca6['push'](_0x383ca6['shift']());}catch(_0x29edd6){_0x383ca6['push'](_0x383ca6['shift']());}}}(a0_0x3305,0x8992f));function a0_0x3305(){const _0x2be1b8=['name','target','995FrLyyY','preventDefault','82374XuqopW','description','1025999gFZmoX','7203537IMxjoJ','define','href','10AOXQnL','firstUpdated','styles','renderRoot','12wzZeuK','14HlIWMM','#force','icon','scrollLeft','setAttribute','stopPropagation','68ymMopb','group','settled','onWheelEvent','dynamic-menu-landscape','removeAttribute','dispatchEvent','6WCzZnw','querySelector','2365616vNeTRH','click','transitionstart','max','type','currentTarget','13028ODPHDF','properties','8250374DwlHer','24798kxHYIo','transitionend','map','path','addEventListener'];a0_0x3305=function(){return _0x2be1b8;};return a0_0x3305();}import'@material/mwc-icon';import{html,LitElement}from'lit';import{connect}from'pwa-helpers';import{navigate,store}from'@operato/shell';import{ScrollbarStyles}from'@operato/styles';import{DynamicMenuLandscapeStyles}from'./dynamic-menu-landscape-styles';function a0_0x569c(_0x21d42d,_0x33c429){const _0x3305aa=a0_0x3305();return a0_0x569c=function(_0x569cc4,_0x38e63b){_0x569cc4=_0x569cc4-0xb3;let _0x3f5a80=_0x3305aa[_0x569cc4];return _0x3f5a80;},a0_0x569c(_0x21d42d,_0x33c429);}export class DynamicMenuLandscape extends connect(store)(LitElement){static get[a0_0x244274(0xc5)](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get[a0_0x244274(0xde)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}['render'](){const _0x26c921=a0_0x244274,{menus:_0xf84a3a=[],activeTopLevel:_0x4d808a,activeMenu:_0x275634}=this;return html`
|
|
2
2
|
<div id="wrap">
|
|
3
3
|
<ul>
|
|
4
|
-
${
|
|
5
|
-
<li ?active=${
|
|
6
|
-
<a href=${
|
|
7
|
-
${
|
|
4
|
+
${_0xf84a3a[_0x26c921(0xb6)](_0x413db7=>_0x26c921(0xcf)==_0x413db7[_0x26c921(0xdb)]?html``:html`
|
|
5
|
+
<li ?active=${_0x413db7===_0x4d808a}>
|
|
6
|
+
<a href=${_0x413db7[_0x26c921(0xb7)]||'#'}>
|
|
7
|
+
${_0x413db7[_0x26c921(0xca)]?html`<mwc-icon>${_0x413db7[_0x26c921(0xca)]}</mwc-icon>`:html``} ${_0x413db7[_0x26c921(0xb9)]}
|
|
8
8
|
</a>
|
|
9
9
|
|
|
10
10
|
<ul submenus>
|
|
11
|
-
${
|
|
12
|
-
<li ?active=${
|
|
13
|
-
<a href=${
|
|
11
|
+
${_0x413db7['menus']?.[_0x26c921(0xb6)](_0x35e40f=>html`
|
|
12
|
+
<li ?active=${_0x35e40f===_0x275634}>
|
|
13
|
+
<a href=${_0x35e40f['path']||'#'}> ${_0x35e40f[_0x26c921(0xb9)]} </a>
|
|
14
14
|
</li>
|
|
15
15
|
`)}
|
|
16
16
|
</ul>
|
|
17
17
|
|
|
18
18
|
<div description>
|
|
19
|
-
${
|
|
19
|
+
${_0x413db7[_0x26c921(0xca)]?html`<mwc-icon>${_0x413db7[_0x26c921(0xca)]}</mwc-icon>`:html``} ${_0x413db7[_0x26c921(0xbe)]||''}
|
|
20
20
|
</div>
|
|
21
21
|
</li>
|
|
22
22
|
`)}
|
|
23
23
|
</ul>
|
|
24
24
|
</div>
|
|
25
|
-
`;}[
|
|
25
|
+
`;}[a0_0x244274(0xc4)](){const _0x3765ac=a0_0x244274;this[_0x3765ac(0xc6)][_0x3765ac(0xd6)]('#wrap')[_0x3765ac(0xb8)]('mousewheel',this[_0x3765ac(0xd1)]['bind'](this),!0x1),this[_0x3765ac(0xc6)]['addEventListener'](_0x3765ac(0xd8),_0x22b32e=>{const _0x54ae8c=_0x3765ac;if(_0x22b32e[_0x54ae8c(0xba)]['submenu']){_0x22b32e[_0x54ae8c(0xcd)](),_0x22b32e[_0x54ae8c(0xbc)]();let _0x50943c=_0x22b32e[_0x54ae8c(0xba)]['submenu'];return void this[_0x54ae8c(0xd4)](new CustomEvent('active-toplevel',{'bubbles':!0x0,'detail':this['activeTopLevel']===_0x50943c?void 0x0:_0x50943c}));}let _0x202faf=_0x22b32e[_0x54ae8c(0xba)]['href'];_0x202faf&&location[_0x54ae8c(0xc2)]===_0x202faf&&navigate(_0x202faf+_0x54ae8c(0xc9),!0x0);}),this[_0x3765ac(0xc6)]['addEventListener'](_0x3765ac(0xd9),_0x23c4f2=>{const _0x31c65a=_0x3765ac;_0x23c4f2[_0x31c65a(0xba)][_0x31c65a(0xd3)](_0x31c65a(0xd0));}),this[_0x3765ac(0xc6)][_0x3765ac(0xb8)](_0x3765ac(0xb5),_0xaa5342=>{const _0xe0135a=_0x3765ac;_0xaa5342[_0xe0135a(0xba)][_0xe0135a(0xcc)]('settled','');});}[a0_0x244274(0xd1)](_0x546830){const _0x15d350=a0_0x244274,_0x65de1c=_0x546830[_0x15d350(0xdc)];var _0x14c7b8=Math[_0x15d350(0xda)](-0x1,Math['min'](0x1,_0x546830['wheelDelta']||-_0x546830['detail']));_0x65de1c[_0x15d350(0xcb)]-=0xa*_0x14c7b8,_0x546830[_0x15d350(0xbc)]();}}customElements[a0_0x244274(0xc1)](a0_0x244274(0xd2),DynamicMenuLandscape);
|