@things-factory/meta-ui 6.2.52 → 6.2.54
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 +9 -9
- package/client/component/filter/filter-grist-meta-code-select.js +9 -9
- package/client/component/filter/filter-grist-meta-object-select.js +9 -9
- package/client/component/grist/editor/grist-editor-code-input.js +6 -6
- package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
- package/client/component/grist/editor/grist-editor-meta-object-selector.js +7 -7
- package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
- package/client/component/popup/code-input-editor-popup.js +10 -10
- package/client/component/popup/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 +5 -5
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-setting-let.js +6 -6
- package/client/pages/menu/dynamic-menu-template.js +6 -6
- package/client/pages/menu/dynamic-menu.js +16 -16
- 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 +108 -109
- 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 +11 -11
- package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a0_0x237b53=a0_0x3d40;(function(_0x1d594a,_0x364903){const _0x506105=a0_0x3d40,_0x21525f=_0x1d594a();while(!![]){try{const _0x16411f=parseInt(_0x506105(0x1d5))/0x1*(parseInt(_0x506105(0x1e3))/0x2)+-parseInt(_0x506105(0x1bb))/0x3+parseInt(_0x506105(0x19f))/0x4*(parseInt(_0x506105(0x225))/0x5)+parseInt(_0x506105(0x23f))/0x6*(-parseInt(_0x506105(0x22c))/0x7)+-parseInt(_0x506105(0x21b))/0x8+parseInt(_0x506105(0x19d))/0x9+parseInt(_0x506105(0x198))/0xa;if(_0x16411f===_0x364903)break;else _0x21525f['push'](_0x21525f['shift']());}catch(_0x2a4ed6){_0x21525f['push'](_0x21525f['shift']());}}}(a0_0x751c,0xab9ce));import{store,gqlContext}from'@things-factory/shell';import{getCodeByName}from'@things-factory/code-base';import{EXPORT}from'@things-factory/export-base';import{gqlBuilder}from'@things-factory/utils';import{client}from'@operato/graphql';function a0_0x3d40(_0x21576a,_0x5ca79c){const _0x751ca7=a0_0x751c();return a0_0x3d40=function(_0x3d409e,_0x2b48e2){_0x3d409e=_0x3d409e-0x198;let _0x22cb43=_0x751ca7[_0x3d409e];return _0x22cb43;},a0_0x3d40(_0x21576a,_0x5ca79c);}import{TermsUtil}from'./terms-util';function a0_0x751c(){const _0x19c975=['group','buildArgs','length','mutation_type','info','workCodeByName','records','columns','MENU','title','join','text.NOTHING_CHANGED','networkError','select','log','selected','callMutationByIdData','param\x20type\x20not\x20found','noteq','keys','query_type','id_value_not_found','HOME','showToast','singleById','1448982hrtZAk','updateOne','string','__selected__','fetch','mutation\x20type\x20not\x20found!','findOne','todo-list','xlsx','map','details','singleByFilters','arrangeMenuRoutes','query_name','Graphql\x20Error','errors','id_field','value','ids','invalid\x20queryType\x20[','routing','badge','dispatch','tMenu','\x0a\x20\x20\x20\x20\x20\x20','message','16573kAjtTy','runScenario','check-mandatory-field','reduce','code-input','showGraphqlErrorResponse','isEmpty','key','creator','record','routingType','confirm','callMutationByData','imex','156FakpFi','return_fields','approval-pending-list','param_name','mutation_name','mandatory','push','header','param\x20name\x20not\x20found','isNotEmpty','gutter','deleteListByGristSelected','callMutationService','active','question','hidden','forEach','data','isArray','id-data','startsWith','checkClientError','searchByPagination','menuType','HIDDEN-PAGE','deleteListByIds','SCREEN','searchMyDynamicMenus','draft-list','updateMultipleData','includes','parse','updatedAt','category','getWorkCodeByName','__dirty__','name','callMutation','exportableData','showAlertPopup','replace','config','success\x20to\x20process','menus','findIndex','code','callScenario','numberOfApprovalPendings','GROUP','tText','findByFilters','filters','button.','hiddenFlag','filter','success\x20to\x20delete','3279136zyOYSu','type','param_type','delete','menu.id','total','find','rank','updater','numberOfDrafts','305twGOaI','patchesForUpdateMultiple','callQueryService','text.are_you_sure','text.check-mandatory','description','display','125111lRWpGG','getSelectedIdList','myDynamicMenus','error','showGraphqlException','_config','searchByFilters','sort','items','searchMenuGridPersnalTemplate','test','pagination','result','button.delete','split','getCodeSelectorData','gridPersonalizeTemplates','replaceVariableObject','codeItems','276WvhhdP','callMutationByIds','updateMultiple','__seq__','mutation\x20name\x20not\x20found!','text.nothing_selected','getCodeByScenario','children','__dirtyfields__','resourceUrl','success\x20to\x20save','cancel','path','3347800TTGZhg','extensions','query','object','graphql_type','6568209ONtJjV','createdAt','3980PzYNNb','splice','numberOfToDos'];a0_0x751c=function(){return _0x19c975;};return a0_0x751c();}import{UiUtil}from'./ui-util';import a0_0x32c573 from'graphql-tag';import{ValueUtil}from'./value-util';import{asyncReplace}from'lit/directives/async-replace.js';import a0_0x197e9c from'i18next';import{generateActivitySummary,startSubscribeActivitySummary}from'@things-factory/worklist';export class ServiceUtil{static async[a0_0x237b53(0x23e)](_0x33e3f3){const _0x3914bf=a0_0x237b53;if(Array[_0x3914bf(0x1f5)](_0x33e3f3))return _0x33e3f3[_0x3914bf(0x1c4)](_0x4e7c34=>'object'==typeof _0x4e7c34?{'name':_0x4e7c34[_0x3914bf(0x1cc)],'description':_0x4e7c34[_0x3914bf(0x22b)]}:{'name':_0x4e7c34,'description':_0x4e7c34});let _0x13370d=await ServiceUtil['getWorkCodeByName'](_0x33e3f3);return _0x13370d&&_0x13370d['length']>0x0?_0x13370d:await getCodeByName(_0x33e3f3);}static async[a0_0x237b53(0x205)](_0x53e8a8){const _0x4b579e=a0_0x237b53,_0xd056bc=await client[_0x4b579e(0x19a)]({'query':a0_0x32c573`
|
|
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':_0x53e8a8},'context':gqlContext()});return!_0xd056bc['errors']&&_0xd056bc[_0x4b579e(0x1f4)][_0x4b579e(0x1a7)]&&_0xd056bc['data'][_0x4b579e(0x1a7)][_0x4b579e(0x1c5)]?_0xd056bc['data'][_0x4b579e(0x1a7)][_0x4b579e(0x1c5)][_0x4b579e(0x233)]((_0x3ea952,_0x556dc2)=>_0x3ea952[_0x4b579e(0x222)]-_0x556dc2[_0x4b579e(0x222)]):[];}static async[a0_0x237b53(0x23b)](_0x4382d9){const _0x4f0574=a0_0x237b53;let _0x26218a=(await ServiceUtil[_0x4f0574(0x23e)](_0x4382d9))[_0x4f0574(0x1c4)](_0x3476ab=>({'value':_0x3476ab['name'],'display':_0x3476ab[_0x4f0574(0x22a)]}));return _0x26218a['unshift']({'value':'','display':''}),_0x26218a;}static async[a0_0x237b53(0x245)](_0x3cf0f3,_0xc1af44){const _0x2949d9=a0_0x237b53;let _0x17677b=await ServiceUtil[_0x2949d9(0x211)](null,_0x3cf0f3,_0xc1af44,!0x1);if(_0x17677b&&_0x17677b[_0x2949d9(0x1f4)]&&_0x17677b[_0x2949d9(0x1f4)][_0x2949d9(0x1d6)]&&_0x17677b[_0x2949d9(0x1f4)][_0x2949d9(0x1d6)][_0x2949d9(0x238)]&&_0x17677b[_0x2949d9(0x1f4)][_0x2949d9(0x1d6)]['result'][_0x2949d9(0x238)]){let _0x2db749=_0x17677b[_0x2949d9(0x1f4)]['runScenario'][_0x2949d9(0x238)][_0x2949d9(0x238)];return _0x2db749['unshift']({'value':'','display':''}),_0x2db749[_0x2949d9(0x1c4)](_0x4432b9=>({'value':_0x4432b9[_0x2949d9(0x207)],'display':_0x4432b9[_0x2949d9(0x22a)]}));}return[];}static async['getCodeByEntity']({queryName:_0x12d495,codeField:_0x59253f=a0_0x237b53(0x207),dispField:_0x5749a6,filters:_0x4530c9=[],sorters:_0x464bf3=[]}){const _0x1f5bcf=a0_0x237b53;let _0x4522fd=_0x5749a6['split'](','),_0x210783=_0x1f5bcf(0x1d3)+_0x59253f+_0x1f5bcf(0x1d3)+(_0x5749a6?_0x4522fd[_0x1f5bcf(0x1ac)]('\x0a'):'')+'\x0a\x20\x20\x20\x20',_0x3c49e5=await ServiceUtil[_0x1f5bcf(0x1f9)](_0x12d495,_0x4530c9,_0x464bf3,0x0,0x0,_0x210783),_0x871b36=[{'value':'','display':''}];return _0x3c49e5[_0x1f5bcf(0x1a8)][_0x1f5bcf(0x1f3)](_0x4d1cdf=>{const _0x1d7925=_0x1f5bcf;let _0x32276e=_0x4d1cdf[_0x59253f];if(_0x5749a6){let _0x14b3a9=_0x5749a6[_0x1d7925(0x23a)](',');_0x32276e=_0x4d1cdf[_0x14b3a9[0x0]],_0x14b3a9[_0x1d7925(0x1a4)]>0x1&&(_0x32276e+='('+_0x14b3a9[_0x1d7925(0x1a0)](0x1)[_0x1d7925(0x1c4)](_0x1e2cd1=>_0x4d1cdf[_0x1e2cd1])[_0x1d7925(0x1ac)](',')+')');}_0x871b36[_0x1d7925(0x1e9)]({'value':_0x4d1cdf[_0x59253f],'display':_0x32276e});}),_0x871b36;}static async[a0_0x237b53(0x22e)](){const _0x158b24=a0_0x237b53;let _0x23e077=await ServiceUtil[_0x158b24(0x1fe)]();return null!=_0x23e077?ServiceUtil[_0x158b24(0x1c7)](_0x23e077):null;}static async[a0_0x237b53(0x235)](_0x4a6c85){const _0x4ced99=a0_0x237b53;let _0x938353=[{'name':_0x4ced99(0x21f),'operator':'eq','value':_0x4a6c85}],_0x17896a=await ServiceUtil[_0x4ced99(0x1f9)](_0x4ced99(0x23c),_0x938353,[],0x0,0x0,'id,template');return 0x0==_0x17896a[_0x4ced99(0x220)]?{}:{'id':_0x17896a[_0x4ced99(0x1a8)][0x0]['id'],'template':JSON[_0x4ced99(0x202)](_0x17896a[_0x4ced99(0x1a8)][0x0]['template'])};}static[a0_0x237b53(0x1c7)](_0x2a7602){const _0x51911a=a0_0x237b53;let _0x5ab96f=[];_0x2a7602[_0x51911a(0x1f3)](_0x38cdcf=>{const _0x5da6db=_0x51911a;_0x5ab96f[_0x5da6db(0x1e9)](_0x38cdcf),_0x38cdcf[_0x5da6db(0x246)]&&(_0x38cdcf['children'][_0x5da6db(0x233)](function(_0x49c2e1,_0x5b9e38){const _0x1e870c=_0x5da6db;return _0x49c2e1[_0x1e870c(0x222)]-_0x5b9e38[_0x1e870c(0x222)];}),_0x38cdcf[_0x5da6db(0x246)][_0x5da6db(0x1f3)](_0x13948d=>{const _0xdf8543=_0x5da6db;0x1!=_0x13948d[_0xdf8543(0x218)]&&(_0x13948d['parent']=_0x38cdcf,_0x5ab96f[_0xdf8543(0x1e9)](_0x13948d));}));});let _0x101265=_0x5ab96f['map'](_0x59bb67=>{const _0x46fe60=_0x51911a;if(_0x46fe60(0x213)==_0x59bb67[_0x46fe60(0x1fa)]||_0x46fe60(0x1aa)==_0x59bb67[_0x46fe60(0x1fa)]){let _0x515173={'id':_0x59bb67['id'],'parent':!0x0,'name':TermsUtil[_0x46fe60(0x1d2)](_0x59bb67[_0x46fe60(0x207)]),'icon':_0x59bb67['iconPath'],'type':_0x46fe60(0x213)==_0x59bb67[_0x46fe60(0x1fa)]?_0x46fe60(0x1a2):'','menus':[]};return _0x59bb67['routing']&&(_0x515173[_0x46fe60(0x24b)]=_0x59bb67[_0x46fe60(0x1cf)]),_0x515173;}return{'id':'0'};})[_0x51911a(0x219)](_0x5a67e8=>'0'!=_0x5a67e8['id']),_0x1a0127=_0x5ab96f[_0x51911a(0x1c4)](_0x68969e=>{const _0x51db7d=_0x51911a;if(_0x51db7d(0x1fd)==_0x68969e[_0x51db7d(0x1fa)]||_0x51db7d(0x1fb)==_0x68969e[_0x51db7d(0x1fa)]){let _0x235e65=_0x101265[_0x51db7d(0x221)](_0x32f95a=>_0x32f95a['id']==_0x68969e['parent']['id']);if(_0x235e65){let _0xe917b5=TermsUtil['tMenu'](_0x68969e[_0x51db7d(0x207)]);return _0x51db7d(0x1fd)==_0x68969e[_0x51db7d(0x1fa)]&&_0x235e65[_0x51db7d(0x20e)]['push']({'id':_0x68969e['id'],'name':_0xe917b5,'path':_0x68969e[_0x51db7d(0x1cf)],'icon':_0x68969e['iconPath']}),{'id':_0x68969e['id'],'parent':!0x1,'parent_id':_0x235e65['id'],'title':_0xe917b5,'tagname':_0x68969e['category'],'page':_0x68969e[_0x51db7d(0x1cf)],'template':_0x68969e['resourceUrl'],'routing_type':_0x68969e[_0x51db7d(0x1df)]};}return{'id':'0'};}return _0x51db7d(0x1b8)==_0x68969e[_0x51db7d(0x1fa)]?{'id':_0x68969e['id'],'parent':!0x0,'parent_id':null,'title':TermsUtil[_0x51db7d(0x1d2)](_0x68969e[_0x51db7d(0x207)]),'tagname':_0x68969e[_0x51db7d(0x204)],'page':_0x68969e['routing'],'template':_0x68969e[_0x51db7d(0x248)],'routing_type':_0x68969e[_0x51db7d(0x1df)]}:{'id':'0'};})[_0x51911a(0x219)](_0x1d6466=>null!=_0x1d6466&&'0'!=_0x1d6466['id']);_0x101265[_0x51911a(0x219)](_0x2cf028=>'group'==_0x2cf028['type']&&_0x2cf028['menus']&&_0x2cf028[_0x51911a(0x20e)][_0x51911a(0x1a4)]>0x0)['forEach'](_0x1fc87a=>{const _0x8d66d4=_0x51911a;let _0x57d263=_0x101265[_0x8d66d4(0x20f)](_0xd6605e=>_0xd6605e['id']==_0x1fc87a['id'])+0x1;_0x101265[_0x8d66d4(0x1a0)](_0x57d263,0x0,..._0x1fc87a[_0x8d66d4(0x20e)]);});let _0x31149a=0x0;return _0x101265[_0x51911a(0x1f3)](_0x46ae92=>{const _0x3b622a=_0x51911a;_0x3b622a(0x1c2)==_0x46ae92[_0x3b622a(0x24b)]?(_0x31149a++,_0x46ae92[_0x3b622a(0x1d0)]=()=>asyncReplace(generateActivitySummary(_0x3b622a(0x1a1))),_0x46ae92['active']=({path:_0x2e01d9})=>/^activity\//[_0x3b622a(0x236)](_0x2e01d9)):_0x3b622a(0x1e5)==_0x46ae92[_0x3b622a(0x24b)]?(_0x31149a++,_0x46ae92[_0x3b622a(0x1d0)]=()=>asyncReplace(generateActivitySummary(_0x3b622a(0x212))),_0x46ae92[_0x3b622a(0x1f0)]=({path:_0x3db76e})=>/^activity\//[_0x3b622a(0x236)](_0x3db76e)):_0x3b622a(0x1ff)==_0x46ae92[_0x3b622a(0x24b)]&&(_0x31149a++,_0x46ae92['badge']=()=>asyncReplace(generateActivitySummary(_0x3b622a(0x224))));}),_0x31149a>0x0&&startSubscribeActivitySummary(),{'menus':_0x101265,'routes':_0x1a0127};}static async[a0_0x237b53(0x1fe)](){const _0x47ebdc=a0_0x237b53;let _0x5a15fd=await ServiceUtil[_0x47ebdc(0x1f9)]('menus',[{'name':_0x47ebdc(0x218),'operator':_0x47ebdc(0x1b4),'value':!0x0},{'name':_0x47ebdc(0x1fa),'operator':'in','value':[_0x47ebdc(0x1b8),_0x47ebdc(0x1aa),'GROUP']}],[{'name':_0x47ebdc(0x222)}],0x0,0x0,'\x0a\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20parent\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20children{\x0a\x20\x20\x20\x20\x20\x20\x20\x20id\x0a\x20\x20\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20\x20\x20menuType\x0a\x20\x20\x20\x20\x20\x20\x20\x20category\x0a\x20\x20\x20\x20\x20\x20\x20\x20routingType\x0a\x20\x20\x20\x20\x20\x20\x20\x20routing\x0a\x20\x20\x20\x20\x20\x20\x20\x20resourceUrl\x0a\x20\x20\x20\x20\x20\x20\x20\x20iconPath\x0a\x20\x20\x20\x20\x20\x20\x20\x20hiddenFlag\x0a\x20\x20\x20\x20\x20\x20\x20\x20rank\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20name\x0a\x20\x20\x20\x20\x20\x20description\x0a\x20\x20\x20\x20\x20\x20menuType\x0a\x20\x20\x20\x20\x20\x20category\x0a\x20\x20\x20\x20\x20\x20routingType\x0a\x20\x20\x20\x20\x20\x20routing\x0a\x20\x20\x20\x20\x20\x20resourceUrl\x0a\x20\x20\x20\x20\x20\x20iconPath\x0a\x20\x20\x20\x20');return _0x5a15fd?_0x5a15fd['records']:[];}static async[a0_0x237b53(0x1da)](_0x40505){const _0x3765c7=a0_0x237b53;if(_0x40505[_0x3765c7(0x1ca)]&&_0x40505[_0x3765c7(0x1ca)][_0x3765c7(0x1a4)]>0x0){let _0xd851fb=_0x40505['errors'][0x0],_0xa42f01=_0xd851fb[_0x3765c7(0x1d4)],_0x1683a3=_0xd851fb[_0x3765c7(0x1d4)];_0xd851fb[_0x3765c7(0x199)]&&(_0x1683a3=_0xd851fb[_0x3765c7(0x199)][_0x3765c7(0x210)]),await UiUtil[_0x3765c7(0x20a)](_0x1683a3,_0xa42f01,_0x3765c7(0x22f),_0x3765c7(0x1e0));}}static async[a0_0x237b53(0x230)](_0xc2a89d){const _0x4d718a=a0_0x237b53;_0xc2a89d&&(_0xc2a89d['networkError']&&_0xc2a89d[_0x4d718a(0x1ae)]['result']?await ServiceUtil[_0x4d718a(0x1da)](_0xc2a89d[_0x4d718a(0x1ae)][_0x4d718a(0x238)]):await UiUtil[_0x4d718a(0x20a)](_0x4d718a(0x1c9),_0xc2a89d[_0x4d718a(0x1d4)],_0x4d718a(0x22f),_0x4d718a(0x1e0)));}static async[a0_0x237b53(0x209)](_0x3ec97b,_0x4f6587,_0x1c34cf){const _0xe7f9cf=a0_0x237b53;var _0x21b8f0=_0x1c34cf[_0xe7f9cf(0x231)][_0xe7f9cf(0x1a9)][_0xe7f9cf(0x219)](_0x1ed9a3=>_0xe7f9cf(0x1ed)!==_0x1ed9a3[_0xe7f9cf(0x21c)]&&void 0x0!==_0x1ed9a3[_0xe7f9cf(0x1de)]&&void 0x0!==_0x1ed9a3[_0xe7f9cf(0x1e2)]&&!0x0!==_0x1ed9a3[_0xe7f9cf(0x1f2)])[_0xe7f9cf(0x1c4)](_0x3663d0=>_0x3663d0['imex']),_0x333758=_0x1c34cf[_0xe7f9cf(0x1f4)][_0xe7f9cf(0x1a8)][_0xe7f9cf(0x1c4)](_0x5c4c41=>({..._0x1c34cf['_config'][_0xe7f9cf(0x1a9)][_0xe7f9cf(0x219)](_0x4f069d=>_0xe7f9cf(0x1ed)!==_0x4f069d[_0xe7f9cf(0x21c)]&&void 0x0!==_0x4f069d[_0xe7f9cf(0x1de)]&&void 0x0!==_0x4f069d[_0xe7f9cf(0x1e2)]&&!0x0!==_0x4f069d[_0xe7f9cf(0x1f2)])[_0xe7f9cf(0x1d8)]((_0x4c8468,_0x299351)=>(_0x4c8468[_0x299351[_0xe7f9cf(0x1e2)][_0xe7f9cf(0x1dc)]]=_0x299351[_0xe7f9cf(0x1e2)]['key']['split']('.')['reduce']((_0xc948b,_0x4cd9e8)=>_0xc948b&&'undefined'!==_0xc948b[_0x4cd9e8]?_0xc948b[_0x4cd9e8]:void 0x0,_0x5c4c41),_0x4c8468),{})}));if(!_0x3ec97b)return{'header':_0x21b8f0,'data':_0x333758};store[_0xe7f9cf(0x1d1)]({'type':EXPORT,'exportable':{'extension':_0xe7f9cf(0x1c3),'name':_0x4f6587,'data':{'header':_0x21b8f0,'data':_0x333758}}});}static async[a0_0x237b53(0x1f9)](_0x1a7e64,_0x595d0b,_0x339b61,_0x5bd17d,_0x23125f,_0x14f84c){const _0x1cd567=a0_0x237b53;try{const _0x5391a8=await client[_0x1cd567(0x19a)]({'query':a0_0x32c573`
|
|
12
12
|
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
13
|
-
${
|
|
13
|
+
${_0x1a7e64}(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
14
14
|
items {
|
|
15
|
-
${
|
|
15
|
+
${_0x14f84c}
|
|
16
16
|
}
|
|
17
17
|
total
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
`,'variables':{'filters':
|
|
20
|
+
`,'variables':{'filters':_0x595d0b,'sortings':_0x339b61,'pagination':{'page':_0x5bd17d,'limit':_0x23125f}}});if(!_0x5391a8['errors'])return{'records':_0x5391a8['data'][_0x1a7e64][_0x1cd567(0x234)],'total':_0x5391a8[_0x1cd567(0x1f4)][_0x1a7e64][_0x1cd567(0x220)]};ServiceUtil[_0x1cd567(0x1da)](_0x5391a8);}catch(_0x287fe8){ServiceUtil['showGraphqlException'](_0x287fe8);}return null;}static async[a0_0x237b53(0x1c1)](_0x554769,_0x44fd6f,_0x32619a){const _0x4b3c9b=a0_0x237b53;try{let _0x383ab8=await client['query']({'query':a0_0x32c573`
|
|
21
21
|
query ($id: String!) {
|
|
22
|
-
${
|
|
23
|
-
${
|
|
22
|
+
${_0x554769}(id: $id) {
|
|
23
|
+
${_0x32619a}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,'variables':{'id':
|
|
26
|
+
`,'variables':{'id':_0x44fd6f}});if(!_0x383ab8[_0x4b3c9b(0x1ca)])return _0x383ab8[_0x4b3c9b(0x1f4)][_0x554769]||{};ServiceUtil[_0x4b3c9b(0x1da)](_0x383ab8);}catch(_0x15e0f3){ServiceUtil['showGraphqlException'](_0x15e0f3);}return null;}static async['findByFilters'](_0x106d40,_0x480e84,_0x5b8917){const _0x10a78b=a0_0x237b53;try{const _0x2a6836=await client[_0x10a78b(0x19a)]({'query':a0_0x32c573`
|
|
27
27
|
query ($filters: [Filter!]) {
|
|
28
|
-
${
|
|
29
|
-
${
|
|
28
|
+
${_0x106d40}(filters: $filters) {
|
|
29
|
+
${_0x480e84}
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
`,'variables':{'filters':
|
|
32
|
+
`,'variables':{'filters':_0x5b8917}});if(!_0x2a6836['errors'])return _0x2a6836[_0x10a78b(0x1f4)][_0x106d40]||{};ServiceUtil[_0x10a78b(0x1da)](_0x2a6836);}catch(_0x51b720){ServiceUtil['showGraphqlException'](_0x51b720);}return null;}static async[a0_0x237b53(0x232)](_0x32c319,_0x2d4ecd,_0x4ebacb){const _0x19ce21=a0_0x237b53;try{const _0xe816be=await client[_0x19ce21(0x19a)]({'query':a0_0x32c573`
|
|
33
33
|
query ($filters: [Filter!], $sortings: [Sorting!]) {
|
|
34
|
-
${
|
|
34
|
+
${_0x32c319}(filters: $filters, sortings: $sortings) {
|
|
35
35
|
items {
|
|
36
|
-
${
|
|
36
|
+
${_0x2d4ecd}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
`,'variables':{'filters':
|
|
40
|
+
`,'variables':{'filters':_0x4ebacb}});if(!_0xe816be[_0x19ce21(0x1ca)])return _0xe816be[_0x19ce21(0x1f4)][_0x32c319][_0x19ce21(0x234)]||[];ServiceUtil[_0x19ce21(0x1da)](_0xe816be);}catch(_0x4f279b){ServiceUtil[_0x19ce21(0x230)](_0x4f279b);}return null;}static[a0_0x237b53(0x22d)](_0x1454c2,_0x4e607d){const _0x4de67a=a0_0x237b53,_0x1091ff=_0x1454c2[_0x4de67a(0x1b1)]['map'](_0x415bb8=>_0x415bb8['id']);return ValueUtil[_0x4de67a(0x1db)](_0x1091ff)&&0x1==_0x4e607d&&UiUtil[_0x4de67a(0x20a)](_0x4de67a(0x244),'text.there_is_nothing_to_delete',_0x4de67a(0x1a6),_0x4de67a(0x1e0)),_0x1091ff;}static async[a0_0x237b53(0x1ee)](_0x208ef3,_0x42f971){const _0x11f65f=a0_0x237b53;let _0x3d239e=ServiceUtil[_0x11f65f(0x22d)](_0x208ef3,!0x0);ValueUtil['isNotEmpty'](_0x3d239e)&&(await ServiceUtil[_0x11f65f(0x1fc)](_0x3d239e,_0x42f971)&&_0x208ef3[_0x11f65f(0x1bf)]());}static async[a0_0x237b53(0x1fc)](_0x351f83,_0x2803c9){const _0x47576a=a0_0x237b53;if((await UiUtil[_0x47576a(0x20a)](_0x47576a(0x239),_0x47576a(0x228),'question',_0x47576a(0x21e),_0x47576a(0x24a)))['value'])try{const _0x21df2f=await client['query']({'query':a0_0x32c573`
|
|
41
41
|
mutation {
|
|
42
|
-
${
|
|
43
|
-
}`});if(!
|
|
42
|
+
${_0x2803c9}(${gqlBuilder[_0x47576a(0x1a3)]({'ids':_0x351f83})})
|
|
43
|
+
}`});if(!_0x21df2f[_0x47576a(0x1ca)])return UiUtil['showToast'](_0x47576a(0x1a6),TermsUtil['tText'](_0x47576a(0x21a))),!0x0;ServiceUtil['showGraphqlErrorResponse'](_0x21df2f);}catch(_0x498cd9){ServiceUtil[_0x47576a(0x230)](_0x498cd9);}return!0x1;}static async[a0_0x237b53(0x200)](_0x57a4a8,_0x21f86b){const _0x1143da=a0_0x237b53;let _0x3143b7=ServiceUtil[_0x1143da(0x226)](_0x57a4a8);if(ValueUtil['isNotEmpty'](_0x3143b7)){let _0x171c1e=await ServiceUtil[_0x1143da(0x241)](_0x21f86b,_0x3143b7);if(_0x171c1e)return _0x57a4a8['fetch'](),_0x171c1e;}return!0x1;}static async['updateMultiple'](_0x27fe32,_0x3f3688){const _0x5ab3f1=a0_0x237b53;try{const _0x477b4a=await client[_0x5ab3f1(0x19a)]({'query':a0_0x32c573`
|
|
44
44
|
mutation {
|
|
45
|
-
${
|
|
45
|
+
${_0x27fe32}(${gqlBuilder[_0x5ab3f1(0x1a3)]({'patches':_0x3f3688})}) {
|
|
46
46
|
id
|
|
47
47
|
}
|
|
48
|
-
}`,'context':{'hasUpload':!0x0}});if(!
|
|
48
|
+
}`,'context':{'hasUpload':!0x0}});if(!_0x477b4a[_0x5ab3f1(0x1ca)])return UiUtil[_0x5ab3f1(0x1b9)](_0x5ab3f1(0x1a6),TermsUtil[_0x5ab3f1(0x214)](_0x5ab3f1(0x249))),!0x0;ServiceUtil['showGraphqlErrorResponse'](_0x477b4a);}catch(_0x54aae0){ServiceUtil[_0x5ab3f1(0x230)](_0x54aae0);}return!0x1;}static[a0_0x237b53(0x226)](_0x177fd3,_0xe09ccb=!0x1){const _0x4f61d1=a0_0x237b53;let _0x1235c0=_0x177fd3['dirtyRecords'],_0x2cbd37={};((_0x177fd3[_0x4f61d1(0x20c)]||{})[_0x4f61d1(0x1a9)]||[])[_0x4f61d1(0x219)](_0x163f22=>!0x0===(_0x163f22[_0x4f61d1(0x1de)]||{})[_0x4f61d1(0x1e8)])[_0x4f61d1(0x1f3)](_0xf1f7fd=>{const _0x479df9=_0x4f61d1;_0x2cbd37[_0xf1f7fd[_0x479df9(0x207)]]=_0xf1f7fd[_0x479df9(0x1ea)];});let _0x4b626b=((_0x177fd3['config']||{})[_0x4f61d1(0x1a9)]||[])[_0x4f61d1(0x219)](_0x39034b=>_0x4f61d1(0x1d9)===_0x39034b[_0x4f61d1(0x21c)])[_0x4f61d1(0x1c4)](_0x2b7443=>_0x2b7443[_0x4f61d1(0x207)]);if(!_0x1235c0||0x0==_0x1235c0[_0x4f61d1(0x1a4)])return void UiUtil[_0x4f61d1(0x20a)]('text.nothing_changed',_0x4f61d1(0x1ad),_0x4f61d1(0x1a6),_0x4f61d1(0x1e0));let _0x5c43c7=[];for(let _0x559468 in _0x1235c0){let _0xf51772=_0x1235c0[_0x559468],_0x2c149a=_0xf51772['id']?{'id':_0xf51772['id']}:{};for(let _0x3df305 in _0x2cbd37)if(void 0x0===_0xf51772[_0x3df305]||''==_0xf51772[_0x3df305])return console[_0x4f61d1(0x1b0)](_0xf51772),void UiUtil[_0x4f61d1(0x20a)](_0x4f61d1(0x229),TermsUtil[_0x4f61d1(0x214)](_0x4f61d1(0x1d7),{'x':_0x2cbd37[_0x3df305]}),_0x4f61d1(0x1a6),_0x4f61d1(0x1e0));for(let _0x1e1fef in _0xf51772)[_0x4f61d1(0x1dd),_0x4f61d1(0x223),_0x4f61d1(0x19e),_0x4f61d1(0x203),_0x4f61d1(0x206),_0x4f61d1(0x247),'__origin__',_0x4f61d1(0x242),_0x4f61d1(0x1be)][_0x4f61d1(0x201)](_0x1e1fef)||(0x0==_0x4b626b[_0x4f61d1(0x201)](_0x1e1fef)&&_0xf51772[_0x1e1fef]&&_0x4f61d1(0x19b)==typeof _0xf51772[_0x1e1fef]&&0x0==_0xe09ccb?_0x2c149a[_0x1e1fef]={'id':_0xf51772[_0x1e1fef]['id']}:_0x2c149a[_0x1e1fef]=_0xf51772[_0x1e1fef]);_0x2c149a['cuFlag']=_0xf51772[_0x4f61d1(0x206)],_0x5c43c7['push'](_0x2c149a);}return _0x5c43c7;}static async[a0_0x237b53(0x1bc)](_0x4f7959,_0x24cc46,_0x5a1d64){const _0x3d9f3a=a0_0x237b53;try{let _0x2dc888=a0_0x32c573`
|
|
49
49
|
mutation {
|
|
50
|
-
${
|
|
50
|
+
${_0x4f7959}(id: "${_0x24cc46}", ${gqlBuilder['buildArgs']({'patch':_0x5a1d64})}) {
|
|
51
51
|
id
|
|
52
52
|
}
|
|
53
|
-
}`;const
|
|
53
|
+
}`;const _0x16d5aa=await client[_0x3d9f3a(0x19a)]({'query':_0x2dc888,'context':{'hasUpload':!0x0}});if(!_0x16d5aa[_0x3d9f3a(0x1ca)])return UiUtil[_0x3d9f3a(0x1b9)]('info',TermsUtil['tText'](_0x3d9f3a(0x249))),!0x0;ServiceUtil[_0x3d9f3a(0x1da)](_0x16d5aa);}catch(_0x33c607){ServiceUtil['showGraphqlException'](_0x33c607);}return!0x1;}static async['callService'](_0x4fb305,_0x3effd8,_0x4186cf){const _0x5a3496=a0_0x237b53;return _0x5a3496(0x19a)==_0x4fb305[_0x5a3496(0x19c)]?await this[_0x5a3496(0x227)](_0x4fb305,_0x3effd8,_0x4186cf):await this[_0x5a3496(0x1ef)](_0x4fb305,_0x3effd8,_0x4186cf);}static async['callQueryService'](_0x51d307,_0x2adc86,_0x3872a8){const _0x4167df=a0_0x237b53;let _0x2b7332=_0x51d307[_0x4167df(0x1b6)],_0x4760b8=_0x51d307[_0x4167df(0x1c8)],_0x19449d=_0x51d307[_0x4167df(0x1af)],_0x514493=_0x51d307[_0x4167df(0x216)],_0x2096ee=_0x51d307['sorters'];if(_0x514493&&_0x514493[_0x4167df(0x1a4)]>0x0&&_0x2adc86){let _0x48b55c=Object['keys'](_0x2adc86);_0x514493[_0x4167df(0x1f3)](_0x411a5c=>{const _0x3d5cb0=_0x4167df;let _0x26de6b=_0x411a5c[_0x3d5cb0(0x1cc)];if(_0x3d5cb0(0x1bd)==typeof _0x26de6b&&_0x26de6b[_0x3d5cb0(0x1f7)]('$')){let _0x157aaa=_0x26de6b[_0x3d5cb0(0x20b)]('$','');_0x48b55c[_0x3d5cb0(0x201)](_0x157aaa)&&(_0x411a5c[_0x3d5cb0(0x1cc)]=_0x2adc86[_0x157aaa]);}});}if(_0x514493&&_0x514493['length']>0x0&&_0x3872a8){let _0x56a3e5=Array[_0x4167df(0x1f5)](_0x3872a8)?_0x3872a8[0x0]:_0x3872a8,_0x462bab=Object[_0x4167df(0x1b5)](_0x56a3e5);_0x514493['forEach'](_0x2cf6e2=>{const _0x215af4=_0x4167df;let _0xd28b35=_0x2cf6e2[_0x215af4(0x1cc)];if('string'==typeof _0xd28b35&&_0xd28b35[_0x215af4(0x1f7)]('$')){let _0x433089=_0xd28b35[_0x215af4(0x20b)]('$','');_0x462bab[_0x215af4(0x201)](_0x433089)&&(_0x2cf6e2['value']=_0x56a3e5[_0x433089]);}});}if(_0x4167df(0x1ba)==_0x2b7332){let _0x44d114=_0x51d307[_0x4167df(0x1cb)],_0x38b328=_0x2adc86[_0x44d114];if(_0x38b328||(_0x38b328=Array[_0x4167df(0x1f5)](_0x3872a8)?_0x3872a8[0x0][_0x44d114]:_0x3872a8[_0x44d114]),!_0x38b328)throw new Error(_0x4167df(0x1b7));return await ServiceUtil[_0x4167df(0x1c1)](_0x4760b8,_0x38b328,_0x19449d);}if(_0x4167df(0x1c6)==_0x2b7332)return await ServiceUtil[_0x4167df(0x215)](_0x4760b8,_0x19449d,_0x514493);if('multi'==_0x2b7332)return await ServiceUtil[_0x4167df(0x232)](_0x4760b8,_0x19449d,_0x514493);if(_0x4167df(0x237)==_0x2b7332){let _0x3c69d7=0x1,_0x570771=_0x51d307['limit'];return await ServiceUtil['searchByPagination'](_0x4760b8,_0x514493,_0x2096ee,_0x3c69d7,_0x570771,_0x19449d);}throw new Error(_0x4167df(0x1ce)+_0x2b7332+']');}static async['callMutationService'](_0x356263,_0x43ade4,_0x201249){const _0x1e105e=a0_0x237b53;if(!_0x356263[_0x1e105e(0x1e7)])throw new Error(_0x1e105e(0x243));if(!_0x356263[_0x1e105e(0x1a5)])throw new Error(_0x1e105e(0x1c0));let _0x489792=_0x356263[_0x1e105e(0x1f4)],_0x285b52=Array[_0x1e105e(0x1f5)](_0x201249)?[]:{};_0x489792&&(Array[_0x1e105e(0x1f5)](_0x285b52)?ValueUtil[_0x1e105e(0x1ec)](_0x201249)&&_0x201249[_0x1e105e(0x1f3)](_0x52f00e=>{const _0x30ccf2=_0x1e105e;let _0x469f7d=JSON[_0x30ccf2(0x202)](JSON['stringify'](_0x489792)),_0x52d4a5=ValueUtil[_0x30ccf2(0x23d)](_0x469f7d,_0x52f00e);_0x285b52[_0x30ccf2(0x1e9)](_0x52d4a5);}):ValueUtil[_0x1e105e(0x1ec)](_0x201249)&&(_0x285b52=ValueUtil[_0x1e105e(0x23d)](_0x489792,_0x201249)),ValueUtil['isEmpty'](_0x285b52)&&(_0x285b52=ValueUtil[_0x1e105e(0x23d)](_0x489792,_0x43ade4)));try{let _0x9d5743=_0x356263[_0x1e105e(0x1cb)]?ValueUtil['isNotEmpty'](_0x43ade4)?_0x43ade4[_0x356263[_0x1e105e(0x1cb)]]:Array[_0x1e105e(0x1f5)](_0x201249)?_0x201249[0x0][_0x356263[_0x1e105e(0x1cb)]]:_0x201249[_0x356263[_0x1e105e(0x1cb)]]:null,_0x466bbe=await ServiceUtil['callMutation'](_0x356263,_0x9d5743,ValueUtil[_0x1e105e(0x1db)](_0x285b52)?_0x201249:_0x285b52);if(!_0x466bbe[_0x1e105e(0x1ca)])return UiUtil[_0x1e105e(0x1b9)](_0x1e105e(0x1a6),TermsUtil['tText'](_0x1e105e(0x20d))),_0x466bbe;ServiceUtil[_0x1e105e(0x1da)](_0x466bbe);}catch(_0x1451ff){ServiceUtil[_0x1e105e(0x230)](_0x1451ff);}}static async[a0_0x237b53(0x208)](_0x3b7e38,_0x2b7435,_0x464e94){const _0x409f25=a0_0x237b53;let _0xd4f907=_0x3b7e38['mutation_type'];return'id'==_0xd4f907?await ServiceUtil['callMutationById'](_0x3b7e38,_0x2b7435):_0x409f25(0x1cd)==_0xd4f907?await ServiceUtil[_0x409f25(0x240)](_0x3b7e38,_0x464e94):_0x409f25(0x1f6)==_0xd4f907?await ServiceUtil['callMutationByIdData'](_0x3b7e38,_0x2b7435,_0x464e94):_0x409f25(0x1f4)==_0xd4f907?await ServiceUtil[_0x409f25(0x1e1)](_0x3b7e38,_0x464e94):void 0x0;}static async['callMutationById'](_0x6e34c8,_0xe8b981){const _0x5c8913=a0_0x237b53;if(!_0xe8b981)throw new Error(_0x5c8913(0x1b7));let _0x1d0308=_0x6e34c8[_0x5c8913(0x1e7)],_0x44b29e=_0x6e34c8[_0x5c8913(0x1e4)];return await client[_0x5c8913(0x19a)]({'query':a0_0x32c573`
|
|
54
54
|
mutation ($id: String!) {
|
|
55
|
-
${
|
|
56
|
-
${
|
|
57
|
-
}`,'variables':{'id':
|
|
55
|
+
${_0x1d0308}(id: $id)
|
|
56
|
+
${_0x44b29e?'{'+_0x44b29e+'}':''}
|
|
57
|
+
}`,'variables':{'id':_0xe8b981}});}static async[a0_0x237b53(0x240)](_0x16e372,_0x1eb11f){const _0x3696a2=a0_0x237b53;let _0x703151=_0x16e372[_0x3696a2(0x1e6)];if(!_0x703151)throw new Error(_0x3696a2(0x1eb));let _0x159b7b=_0x1eb11f['map'](_0x445ea1=>_0x445ea1[_0x16e372['id_field']]),_0x3616cb=_0x16e372[_0x3696a2(0x1e7)],_0x4f4cb7=_0x16e372[_0x3696a2(0x1e4)];return await client[_0x3696a2(0x19a)]({'query':a0_0x32c573`
|
|
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
|
+
${_0x3616cb}(${_0x703151}: $ids)
|
|
60
|
+
${_0x4f4cb7?'{'+_0x4f4cb7+'}':''}
|
|
61
|
+
}`,'variables':{'ids':_0x159b7b}});}static async[a0_0x237b53(0x1b2)](_0x5269aa,_0x361217,_0x5a1c53){const _0x525ee7=a0_0x237b53;let _0x2d1e0c=_0x5269aa[_0x525ee7(0x1e6)],_0x6ca8b7=_0x5269aa['param_type'];if(!_0x6ca8b7)throw new Error(_0x525ee7(0x1b3));if(!_0x2d1e0c)throw new Error(_0x525ee7(0x1eb));if(_0x361217||(_0x361217=_0x5a1c53[_0x5269aa['id_field']]),!_0x361217)throw new Error(_0x525ee7(0x1b7));let _0x576a74=_0x5269aa[_0x525ee7(0x1e7)],_0x4ae77c=_0x5269aa[_0x525ee7(0x1e4)];return await client[_0x525ee7(0x19a)]({'query':a0_0x32c573`
|
|
62
|
+
mutation ($id: String!, $patch: ${_0x6ca8b7}!) {
|
|
63
|
+
${_0x576a74}(id: $id, ${_0x2d1e0c}: $patch)
|
|
64
|
+
${_0x4ae77c?'{'+_0x4ae77c+'}':''}
|
|
65
|
+
}`,'variables':{'id':_0x361217,'patch':_0x5a1c53}});}static async['callMutationByData'](_0x6c69a4,_0x4e9f37){const _0x1c5d70=a0_0x237b53;let _0x588e70=_0x6c69a4[_0x1c5d70(0x21d)],_0x393649=_0x6c69a4[_0x1c5d70(0x1e6)];if(!_0x588e70)throw new Error(_0x1c5d70(0x1b3));if(!_0x393649)throw new Error('param\x20name\x20not\x20found');let _0x29ce5d=_0x6c69a4[_0x1c5d70(0x1e7)],_0x19b2f4=_0x6c69a4[_0x1c5d70(0x1e4)];return await client['query']({'query':a0_0x32c573`
|
|
66
|
+
mutation ($patch: ${_0x588e70}!) {
|
|
67
|
+
${_0x29ce5d}(${_0x393649}: $patch)
|
|
68
|
+
${_0x19b2f4?'{'+_0x19b2f4+'}':''}
|
|
69
|
+
}`,'variables':{'patch':_0x4e9f37}});}static async[a0_0x237b53(0x211)](_0x830e1d,_0x203cb1,_0x501501,_0x2a4516=!0x0){const _0x11a8b5=a0_0x237b53;let _0x1413d6=!0x0;_0x830e1d&&!0x0===_0x2a4516&&(_0x1413d6=(await UiUtil[_0x11a8b5(0x20a)](_0x11a8b5(0x217)+_0x830e1d,_0x11a8b5(0x228),_0x11a8b5(0x1f1),_0x11a8b5(0x1e0),_0x11a8b5(0x24a)))[_0x11a8b5(0x1cc)]);if(_0x1413d6)try{const _0x2761bc=await client[_0x11a8b5(0x19a)]({'query':a0_0x32c573`
|
|
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':_0x203cb1,'variables':_0x501501}});if(_0x2761bc[_0x11a8b5(0x1ca)])ServiceUtil['showGraphqlErrorResponse'](_0x2761bc);else{if(this[_0x11a8b5(0x1f8)](_0x2761bc))return!0x0===_0x2a4516&&UiUtil[_0x11a8b5(0x1b9)](_0x11a8b5(0x1a6),TermsUtil['tText'](_0x11a8b5(0x20d))),_0x2761bc;}}catch(_0x2c12c5){ServiceUtil['showGraphqlException'](_0x2c12c5);}return!0x1;}static[a0_0x237b53(0x1f8)](_0x315a12){const _0x495718=a0_0x237b53;if(_0x315a12&&_0x315a12['data']&&_0x315a12[_0x495718(0x1f4)]['runScenario']&&_0x315a12[_0x495718(0x1f4)][_0x495718(0x1d6)]['result']&&_0x315a12['data'][_0x495718(0x1d6)][_0x495718(0x238)][_0x495718(0x22f)]){let _0x212640=_0x315a12[_0x495718(0x1f4)][_0x495718(0x1d6)][_0x495718(0x238)][_0x495718(0x22f)];return UiUtil[_0x495718(0x20a)](_0x212640[_0x495718(0x1ab)],_0x212640[_0x495718(0x1d4)],_0x495718(0x22f),_0x495718(0x1e0)),!0x1;}return!0x0;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a0_0x32ee(){const _0x3bd76e=['replace','forEach','tError','11635220HCntML','terminologies','total','132ArYlbq','text','tTitle','3KFpUyF','tButton','tField','name','81699FdmAkW','10hprnJp','tText','translate','17379aaSufu','3110992wqPneK','4024aJpJmD','372ycwMZr','tLabel','button','error','menu','locale','data','query','errors','META_TERMS','field','downloadTerminologies','keys','display','title','213335AVSUDW','82181ApPTQs','fetchTerminologies','10472182FdsSwI'];a0_0x32ee=function(){return _0x3bd76e;};return a0_0x32ee();}function a0_0x12dd(_0x58b306,_0x1b3403){const _0x32ee2f=a0_0x32ee();return a0_0x12dd=function(_0x12ddd8,_0x5a03b4){_0x12ddd8=_0x12ddd8-0x92;let _0x10a9d8=_0x32ee2f[_0x12ddd8];return _0x10a9d8;},a0_0x12dd(_0x58b306,_0x1b3403);}const a0_0x30e4f1=a0_0x12dd;(function(_0x5813a4,_0x2fcc5d){const _0x3fe298=a0_0x12dd,_0x525abd=_0x5813a4();while(!![]){try{const _0x45f654=-parseInt(_0x3fe298(0xa6))/0x1*(parseInt(_0x3fe298(0xa7))/0x2)+-parseInt(_0x3fe298(0xa2))/0x3*(-parseInt(_0x3fe298(0xab))/0x4)+-parseInt(_0x3fe298(0x95))/0x5*(parseInt(_0x3fe298(0x9f))/0x6)+parseInt(_0x3fe298(0x98))/0x7+parseInt(_0x3fe298(0xac))/0x8*(-parseInt(_0x3fe298(0xaa))/0x9)+parseInt(_0x3fe298(0x9c))/0xa+-parseInt(_0x3fe298(0x96))/0xb*(parseInt(_0x3fe298(0xad))/0xc);if(_0x45f654===_0x2fcc5d)break;else _0x525abd['push'](_0x525abd['shift']());}catch(_0x10d658){_0x525abd['push'](_0x525abd['shift']());}}}(a0_0x32ee,0xd89c1));import a0_0x183e23 from'graphql-tag';import{client}from'@operato/graphql';import{i18next}from'@operato/i18n';export class TermsUtil{[a0_0x30e4f1(0xb6)]=null;static async[a0_0x30e4f1(0xb8)](_0x48b64b){const _0x2ebd3c=a0_0x30e4f1;let _0x374baf=(await TermsUtil[_0x2ebd3c(0x97)](_0x48b64b))['records'];_0x374baf&&_0x374baf['length']>0x0&&(this[_0x2ebd3c(0xb6)]={},_0x374baf[_0x2ebd3c(0x9a)](_0x24c223=>{const _0x2a6cd1=_0x2ebd3c;let _0x512fb2=_0x24c223['category']+'.'+_0x24c223[_0x2a6cd1(0xa5)];this[_0x2a6cd1(0xb6)][_0x512fb2]=_0x24c223[_0x2a6cd1(0x93)];}));}static async[a0_0x30e4f1(0x97)](_0x91391b){const _0x48a797=a0_0x30e4f1;let _0x4e13c1=[{'name':_0x48a797(0xb2),'operator':'eq','value':_0x91391b}];const _0x45a20d=await client[_0x48a797(0xb4)]({'query':a0_0x183e23`
|
|
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':_0x4e13c1,'sortings':[{'name':'category'},{'name':_0x48a797(0xa5)}],'pagination':{'page':0x0,'limit':0x0}}});if(!_0x45a20d[_0x48a797(0xb5)])return{'records':_0x45a20d['data']['terminologies']['items']||[],'total':_0x45a20d[_0x48a797(0xb3)][_0x48a797(0x9d)][_0x48a797(0x9e)]||0x0};}static[a0_0x30e4f1(0xae)](_0x162aa6,_0x5c9f25){const _0x3d965c=a0_0x30e4f1;let _0x34754c=TermsUtil[_0x3d965c(0xa9)]('label',_0x162aa6,_0x5c9f25,null);return _0x34754c||TermsUtil[_0x3d965c(0xa9)]('field',_0x162aa6,_0x5c9f25,_0x162aa6);}static[a0_0x30e4f1(0xa4)](_0x79f7a3,_0x8d5260){const _0x2fb4d7=a0_0x30e4f1;let _0x34cdbe=TermsUtil[_0x2fb4d7(0xa9)]('field',_0x79f7a3,_0x8d5260,null);return _0x34cdbe||TermsUtil[_0x2fb4d7(0xa9)](_0x2fb4d7(0xb7),_0x79f7a3,_0x8d5260,_0x79f7a3);}static[a0_0x30e4f1(0xa3)](_0x56cf4c){const _0x3291f1=a0_0x30e4f1;return TermsUtil['translate'](_0x3291f1(0xaf),_0x56cf4c,null,_0x56cf4c);}static[a0_0x30e4f1(0xa1)](_0x26462f,_0x531f58){const _0x575d08=a0_0x30e4f1;let _0x502a69=TermsUtil[_0x575d08(0xa9)](_0x575d08(0x94),_0x26462f,_0x531f58,null);return _0x502a69||TermsUtil[_0x575d08(0xa9)](_0x575d08(0xb1),_0x26462f,_0x531f58,_0x26462f);}static['tMenu'](_0x555b37){const _0x1f71e6=a0_0x30e4f1;let _0x227aac=TermsUtil[_0x1f71e6(0xa9)](_0x1f71e6(0xb1),_0x555b37,null,null);return _0x227aac||TermsUtil[_0x1f71e6(0xa9)](_0x1f71e6(0x94),_0x555b37,null,_0x555b37);}static[a0_0x30e4f1(0xa8)](_0x421a62,_0x76d3f){const _0x4c066c=a0_0x30e4f1;return TermsUtil['translate'](_0x4c066c(0xa0),_0x421a62,_0x76d3f,_0x421a62);}static[a0_0x30e4f1(0x9b)](_0x53272a,_0x6ba03d){const _0x3d4931=a0_0x30e4f1;return TermsUtil[_0x3d4931(0xa9)](_0x3d4931(0xb0),_0x53272a,_0x6ba03d,_0x53272a);}static[a0_0x30e4f1(0xa9)](_0x75a762,_0x2c6072,_0x8f9d55,_0x426756){let _0x4d37ae=_0x75a762+'.'+_0x2c6072;return TermsUtil['t'](_0x4d37ae,_0x8f9d55,_0x426756);}static['t'](_0x14a640,_0x23d71c,_0x2fbb60){const _0x481511=a0_0x30e4f1;let _0x485893=this[_0x481511(0xb6)]?this['META_TERMS'][_0x14a640]:null;return _0x485893=_0x485893||i18next['t'](_0x14a640),_0x485893&&_0x14a640!=_0x485893?(_0x23d71c&&Object[_0x481511(0x92)](_0x23d71c)[_0x481511(0x9a)](function(_0x3bc346){const _0x99c75c=_0x481511;var _0x1fff76='\x5c{'+_0x3bc346[_0x99c75c(0x99)](/\$/,'\x5c$')+'\x5c}',_0x384e18=new RegExp(_0x1fff76,'gi');_0x485893=_0x485893[_0x99c75c(0x99)](_0x384e18,_0x23d71c[_0x3bc346]);}),_0x485893):_0x2fbb60;}}
|
package/client/utils/ui-util.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4e4050=a0_0x55f4;(function(_0x716af2,_0x33bcd5){const _0x453543=a0_0x55f4,_0x5de8a7=_0x716af2();while(!![]){try{const _0x386e44=parseInt(_0x453543(0x12d))/0x1*(parseInt(_0x453543(0x132))/0x2)+-parseInt(_0x453543(0x116))/0x3+-parseInt(_0x453543(0x11d))/0x4+-parseInt(_0x453543(0x127))/0x5+-parseInt(_0x453543(0x13e))/0x6*(-parseInt(_0x453543(0x10d))/0x7)+-parseInt(_0x453543(0x136))/0x8*(parseInt(_0x453543(0x10a))/0x9)+parseInt(_0x453543(0x135))/0xa;if(_0x386e44===_0x33bcd5)break;else _0x5de8a7['push'](_0x5de8a7['shift']());}catch(_0x15765e){_0x5de8a7['push'](_0x5de8a7['shift']());}}}(a0_0x2cd7,0x5a19d));import{store,CustomAlert,navigate}from'@things-factory/shell';import{openPopup}from'@operato/layout';import{isMobileDevice}from'@operato/utils';import{getEditor}from'@operato/data-grist';function a0_0x2cd7(){const _0x34b1f7=['\x27\x20is_popup=true></','cancelButton','showToast','childNodes','dispatchEvent','template','stringify','170130fFNpOb','createCustomElement','getParams','barcode','i18next','full','popup_field','querySelector','replace','modules','openDynamicPopup','value','getLeafInput','onclosed','select-combo','cookie','indexOf','innerHTML','\x20route_name=\x27','[name=\x27','ko-KR','\x27></','type','htmlToElement','edge','createElement','39033ZKrrwr','isNotEmpty','textarea','35GLvIwq','openPopupByElement','removeChild','pass=','forEach','confirmButton','renderRoot','fireCustomEvent','app','1129716TAnvdh','setSearchFormEditorValue','menu','length','getState','getStore','currentLocale','530200GGHMhI','page','center','tagname','i18next=','ox-input-barcode','getApplicationModuleInfo','input','ox-input-code','style','1442280gikspF','setValueToEditor','large','createEditorHtml','notify','ox-select','105skTPDf','parent_field','content','editor','showAlertPopup','1014ZXGxCQ','firstElementChild','route','14009840bQmwLL','792QlUaEf'];a0_0x2cd7=function(){return _0x34b1f7;};return a0_0x2cd7();}import{TermsUtil}from'./terms-util';function a0_0x55f4(_0x1a9c5d,_0x14b648){const _0x2cd7c5=a0_0x2cd7();return a0_0x55f4=function(_0x55f4e9,_0x8d45dc){_0x55f4e9=_0x55f4e9-0x10a;let _0x1ec855=_0x2cd7c5[_0x55f4e9];return _0x1ec855;},a0_0x55f4(_0x1a9c5d,_0x14b648);}import{ValueUtil}from'./value-util';import{MetaUiUtil}from'./meta-ui-util';export class UiUtil{static['isMobileEnv'](){return isMobileDevice();}static[a0_0x4e4050(0x11c)](){const _0x842457=a0_0x4e4050;let _0x577012=document[_0x842457(0x14d)];return _0x577012=_0x577012['substring'](_0x577012['indexOf'](_0x842457(0x142))),_0x577012[_0x842457(0x14e)](';')>-0x1&&(_0x577012=_0x577012['substring'](0x0,_0x577012['indexOf'](';'))),_0x577012=_0x577012[_0x842457(0x146)](_0x842457(0x121),''),'ko'==_0x577012?_0x842457(0x152):_0x577012;}static[a0_0x4e4050(0x123)](){const _0x3534a4=a0_0x4e4050;let _0x30157c=store[_0x3534a4(0x11a)]()[_0x3534a4(0x115)][_0x3534a4(0x147)];return _0x30157c[_0x30157c[_0x3534a4(0x119)]-0x1];}static['currentRouting'](){const _0xa21406=a0_0x4e4050;return store[_0xa21406(0x11a)]()[_0xa21406(0x134)][_0xa21406(0x11e)];}static[a0_0x4e4050(0x10e)](_0x128886,_0x1a71ef,_0x572139,_0x59edc9){const _0x48db8a=a0_0x4e4050;return'full'===_0x1a71ef&&(_0x572139[_0x48db8a(0x126)]['height']='95dvh'),openPopup(_0x572139,{'backdrop':!0x0,'hovering':_0x48db8a(0x143)===_0x1a71ef?_0x48db8a(0x156):_0x48db8a(0x11f),'size':_0x48db8a(0x143)===_0x1a71ef?_0x48db8a(0x129):_0x1a71ef,'title':_0x128886,'backdrop':_0x59edc9});}static async[a0_0x4e4050(0x148)](_0x8e4a70,_0x50d0f6,_0xfa0778,_0x13eaf8){const _0x1d9c9f=a0_0x4e4050;let _0x2e9bc1=ValueUtil[_0x1d9c9f(0x10b)](_0x50d0f6[_0x1d9c9f(0x12e)])?ValueUtil[_0x1d9c9f(0x140)](_0xfa0778,..._0x50d0f6['parent_field']['split']('.')):void 0x0,_0x11ea33='<'+_0x50d0f6[_0x1d9c9f(0x120)]+_0x1d9c9f(0x150)+_0x50d0f6[_0x1d9c9f(0x118)]+'\x27\x20parent_id=\x27'+_0x2e9bc1+_0x1d9c9f(0x137)+_0x50d0f6['tagname']+'>',_0x2271cc=UiUtil[_0x1d9c9f(0x155)](_0x11ea33);_0x2271cc['config']=_0x50d0f6,ValueUtil[_0x1d9c9f(0x10b)](_0x50d0f6[_0x1d9c9f(0x144)])&&(_0x2271cc[_0x50d0f6[_0x1d9c9f(0x144)]]=_0xfa0778);let _0x23c8d2=UiUtil[_0x1d9c9f(0x10e)](_0x8e4a70,_0x50d0f6['size'],_0x2271cc,!0x0);_0x13eaf8&&(_0x23c8d2[_0x1d9c9f(0x14b)]=_0x13eaf8);}static[a0_0x4e4050(0x13f)](_0x891550,_0x531299){const _0x1bda6d=a0_0x4e4050;let _0x3fab20='<'+_0x891550+_0x1bda6d(0x150)+_0x531299+_0x1bda6d(0x153)+_0x891550+'>';return UiUtil['htmlToElement'](_0x3fab20);}static['htmlToElement'](_0x2f6790){const _0x51ddac=a0_0x4e4050;var _0x5610cb=document[_0x51ddac(0x157)](_0x51ddac(0x13c));_0x5610cb[_0x51ddac(0x14f)]=_0x2f6790;var _0x3ca199=_0x5610cb[_0x51ddac(0x12f)][_0x51ddac(0x13a)][0x0];return _0x5610cb[_0x51ddac(0x12f)][_0x51ddac(0x10f)](_0x3ca199),_0x3ca199;}static['pageNavigate'](_0x5be94e,_0x2f8a5b){const _0x21e1b5=a0_0x4e4050;let _0xac4a90=_0x2f8a5b?'?':'';_0x2f8a5b&&(_0xac4a90+=_0x21e1b5(0x110)+JSON[_0x21e1b5(0x13d)](_0x2f8a5b)),navigate(''+_0x5be94e+_0xac4a90);}static[a0_0x4e4050(0x11b)](_0x5a6d86,_0x21fed5,_0x2e9e5b){let _0x43b927=_0x43b927['getState']();return _0x5a6d86&&_0x21fed5&&_0x2e9e5b?_0x43b927[_0x5a6d86][_0x21fed5][_0x2e9e5b]:_0x5a6d86&&_0x21fed5?_0x43b927[_0x5a6d86][_0x21fed5]:_0x5a6d86?_0x43b927[_0x5a6d86]:_0x43b927;}static[a0_0x4e4050(0x114)](_0x1da601,_0x15e9a3){const _0x200373=a0_0x4e4050;document[_0x200373(0x13b)](new CustomEvent(_0x1da601,{'detail':_0x15e9a3}));}static[a0_0x4e4050(0x139)](_0x1e5999,_0x3dccd8){const _0x26bb29=a0_0x4e4050;document['dispatchEvent'](new CustomEvent(_0x26bb29(0x12b),{'detail':{'type':_0x1e5999,'message':_0x3dccd8}}));}static async[a0_0x4e4050(0x131)](_0x1f0aab,_0x1a4bcd,_0x1deeaf,_0x5ccf17,_0x1e19f6){const _0x310dec=a0_0x4e4050;let _0x4897df={'title':TermsUtil['t'](_0x1f0aab)||_0x1f0aab,'text':TermsUtil['t'](_0x1a4bcd)||_0x1a4bcd};return _0x1deeaf&&(_0x4897df[_0x310dec(0x154)]=_0x1deeaf),_0x5ccf17&&(_0x4897df[_0x310dec(0x112)]=TermsUtil['tButton'](_0x5ccf17)),_0x1e19f6&&(_0x4897df[_0x310dec(0x138)]=TermsUtil['tButton'](_0x1e19f6)),await CustomAlert(_0x4897df);}static['getFilterFormData'](_0x55942a){const _0x382351=a0_0x4e4050;if(ValueUtil[_0x382351(0x10b)](_0x55942a)){let _0x3ffd7f=_0x55942a['filters']();ValueUtil[_0x382351(0x10b)](_0x3ffd7f)&&_0x3ffd7f[_0x382351(0x111)](_0x5122f8=>{const _0x59e543=_0x382351;ValueUtil['isNotEmpty'](_0x5122f8[_0x59e543(0x149)])&&(item[_0x5122f8['name']]=_0x5122f8[_0x59e543(0x149)]?_0x5122f8['value']:null);});}return{};}static[a0_0x4e4050(0x117)](_0x3ceb4e,_0x1373d7,_0x3886ed){const _0xb348e2=a0_0x4e4050;if(ValueUtil['isNotEmpty'](_0x3ceb4e)){let _0x5384e3=_0x3ceb4e[_0xb348e2(0x113)]?.[_0xb348e2(0x145)](_0xb348e2(0x151)+_0x1373d7+'\x27]');ValueUtil['isNotEmpty'](_0x5384e3)&&(_0x5384e3[_0xb348e2(0x149)]=_0x3886ed);}}static[a0_0x4e4050(0x12a)](_0x142be3,_0x444d48,_0x2f829f,_0x3ca066){return getEditor(_0x142be3)('',_0x444d48,_0x2f829f,_0x3ca066,{});}static[a0_0x4e4050(0x128)](_0x2078a1,_0x34123d){const _0x4224df=a0_0x4e4050;UiUtil[_0x4224df(0x14a)](_0x2078a1)[_0x4224df(0x149)]=_0x34123d;}static[a0_0x4e4050(0x14a)](_0x25bf89){const _0x466d80=a0_0x4e4050;let _0x4a1a27=_0x25bf89['getType']();return'code-editor'==_0x4a1a27?_0x25bf89[_0x466d80(0x113)][_0x466d80(0x145)](_0x466d80(0x125)):'textarea'==_0x4a1a27?_0x25bf89[_0x466d80(0x113)]['querySelector'](_0x466d80(0x10c)):_0x466d80(0x14c)==_0x4a1a27?_0x25bf89[_0x466d80(0x113)][_0x466d80(0x145)](_0x466d80(0x12c))['firstElementChild']:_0x466d80(0x141)==_0x4a1a27?_0x25bf89[_0x466d80(0x113)]['querySelector'](_0x466d80(0x122))['renderRoot'][_0x466d80(0x145)](_0x466d80(0x124)):_0x25bf89[_0x466d80(0x113)][_0x466d80(0x133)][_0x466d80(0x130)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x2ac95a=a0_0x210e;function a0_0x210e(_0x3a8720,_0x1154e5){const _0x5376d7=a0_0x5376();return a0_0x210e=function(_0x210e40,_0x302a86){_0x210e40=_0x210e40-0x14e;let _0x2e6cdb=_0x5376d7[_0x210e40];return _0x2e6cdb;},a0_0x210e(_0x3a8720,_0x1154e5);}(function(_0x44e87e,_0x5ef4e5){const _0x5bf44d=a0_0x210e,_0x2200cf=_0x44e87e();while(!![]){try{const _0x460b26=parseInt(_0x5bf44d(0x16e))/0x1*(-parseInt(_0x5bf44d(0x14e))/0x2)+-parseInt(_0x5bf44d(0x15d))/0x3+-parseInt(_0x5bf44d(0x169))/0x4*(parseInt(_0x5bf44d(0x15a))/0x5)+parseInt(_0x5bf44d(0x163))/0x6+parseInt(_0x5bf44d(0x16b))/0x7*(-parseInt(_0x5bf44d(0x152))/0x8)+-parseInt(_0x5bf44d(0x157))/0x9+parseInt(_0x5bf44d(0x159))/0xa*(parseInt(_0x5bf44d(0x167))/0xb);if(_0x460b26===_0x5ef4e5)break;else _0x2200cf['push'](_0x2200cf['shift']());}catch(_0x20117d){_0x2200cf['push'](_0x2200cf['shift']());}}}(a0_0x5376,0xaa8cc));import a0_0x43c924 from'lodash-es/isEqual';import{TermsUtil}from'./terms-util';function a0_0x5376(){const _0x5a5a20=['setParams','129772SDDDuA','number','7kUgCvR','keys','map','7115WydFPg','includes','166xIeale','populateObject','object','isArray','10120336ldYHPS','string','forEach','true','slice','8249841sQBaaA','compareObjectValues','10ANJXvY','35yyBVjm','replace','length','1018932kDYvOs','toInteger','boolean','toBoolean','startsWith','isEquals','2293776maYEeT','getParams','isEmpty','isNotEmpty','40207827JsDSOl'];a0_0x5376=function(){return _0x5a5a20;};return a0_0x5376();}export class ValueUtil{static[a0_0x2ac95a(0x165)](_0x50952f){const _0x302cab=a0_0x2ac95a;if(void 0x0===_0x50952f)return!0x0;if(null===_0x50952f)return!0x0;if(_0x302cab(0x15f)==typeof _0x50952f)return!0x1;if(_0x302cab(0x153)==typeof _0x50952f||_0x302cab(0x16a)==typeof _0x50952f){if(''==_0x50952f)return!0x0;}else{if(Array[_0x302cab(0x151)](_0x50952f)){if(0x0==_0x50952f[_0x302cab(0x15c)])return!0x0;}else{if(_0x302cab(0x150)==typeof _0x50952f&&0x0==Object[_0x302cab(0x16c)](_0x50952f)[_0x302cab(0x15c)])return!0x0;}}return!0x1;}static[a0_0x2ac95a(0x166)](_0x4c583c){const _0x2147f7=a0_0x2ac95a;return!ValueUtil[_0x2147f7(0x165)](_0x4c583c);}static[a0_0x2ac95a(0x162)](_0x4165cd,_0xf3187c){return a0_0x43c924(_0x4165cd,_0xf3187c);}static[a0_0x2ac95a(0x15e)](_0x3563f0,_0x3d9ce8){const _0x1d6b38=a0_0x2ac95a;return ValueUtil[_0x1d6b38(0x165)](_0x3563f0)?_0x3d9ce8||0x0:parseInt(_0x3563f0);}static[a0_0x2ac95a(0x160)](_0xbff9d3){const _0x458878=a0_0x2ac95a;return!ValueUtil[_0x458878(0x165)](_0xbff9d3)&&(_0x458878(0x155)==_0xbff9d3||'t'==_0xbff9d3||'TRUE'==_0xbff9d3||'T'==_0xbff9d3||'on'==_0xbff9d3||'ON'==_0xbff9d3);}static[a0_0x2ac95a(0x158)](_0x49f03a,_0x663d91,_0x392efd){const _0x29fcef=a0_0x2ac95a;let _0x3e137c=!0x0;return _0x392efd[_0x29fcef(0x154)](_0x4f8619=>{const _0x31cb05=_0x29fcef;let _0x24a300=_0x49f03a[_0x4f8619];if('*'===_0x24a300)return;let _0x40378e=_0x663d91[_0x4f8619]||'';ValueUtil[_0x31cb05(0x165)](_0x24a300)?ValueUtil[_0x31cb05(0x166)](_0x40378e)&&(_0x3e137c=!0x1):_0x24a300!=_0x40378e&&(_0x3e137c=!0x1);}),_0x3e137c;}static[a0_0x2ac95a(0x168)](_0x1070c5,_0x3b1f11,_0x57d9ed,_0x11d78d){const _0xba18ec=a0_0x2ac95a;let _0x2b01b3=ValueUtil[_0xba18ec(0x164)](_0x3b1f11,_0x57d9ed);return ValueUtil[_0xba18ec(0x166)](_0x2b01b3)&&(_0x1070c5[_0x57d9ed]=!0x0===_0x11d78d?TermsUtil['t'](_0x2b01b3):_0x2b01b3),_0x1070c5;}static[a0_0x2ac95a(0x164)](_0x4ec486,..._0x39e8fa){const _0x1904b2=a0_0x2ac95a;if(arguments[_0x1904b2(0x15c)]<=0x1)return;let _0x1203db=_0x39e8fa[0x0];if(ValueUtil[_0x1904b2(0x165)](_0x4ec486[_0x1203db]))return;let _0x1652fc=_0x4ec486[_0x1203db];return _0x39e8fa[_0x1904b2(0x15c)]>0x1?ValueUtil['getParams'](_0x1652fc,..._0x39e8fa[_0x1904b2(0x156)](0x1)):_0x1652fc;}static['populateArray'](_0xc44b24,_0x51b426,..._0xf89a99){const _0x325dcb=a0_0x2ac95a;return _0x51b426=_0x51b426||[],_0xf89a99=_0xf89a99||Object[_0x325dcb(0x16c)](_0xc44b24),ValueUtil[_0x325dcb(0x166)](_0xf89a99)&&(_0x51b426=_0xc44b24[_0x325dcb(0x16d)]((_0x53dea4,_0x1b5307)=>{const _0x32c2ef=_0x325dcb;let _0x66c89e=_0x51b426[_0x32c2ef(0x15c)]>_0x1b5307?_0x51b426[_0x1b5307]:{};return ValueUtil['populateObject'](_0x53dea4,_0x66c89e,_0xf89a99);})),_0x51b426;}static[a0_0x2ac95a(0x14f)](_0x89b9a9,_0x35dce9,..._0x39a4c3){const _0x1fa682=a0_0x2ac95a;return _0x35dce9=_0x35dce9||{},_0x39a4c3=_0x39a4c3||Object[_0x1fa682(0x16c)](_0x89b9a9),ValueUtil['isNotEmpty'](_0x39a4c3)&&_0x39a4c3[_0x1fa682(0x154)](_0x475ecc=>{_0x35dce9[_0x475ecc]=_0x89b9a9[_0x475ecc];}),_0x35dce9;}static['replaceVariableObject'](_0x4ef2d4,_0x1f9da0){const _0x528bd7=a0_0x2ac95a;let _0x355cb3=Object[_0x528bd7(0x16c)](_0x4ef2d4),_0x371788=Object['keys'](_0x1f9da0);return _0x355cb3[_0x528bd7(0x154)](_0x2249b0=>{const _0x473e07=_0x528bd7;let _0x25f7f4=_0x4ef2d4[_0x2249b0];if('string'==typeof _0x25f7f4&&_0x25f7f4[_0x473e07(0x161)]('$')){let _0x5b12c7=_0x25f7f4[_0x473e07(0x15b)]('$','');_0x371788[_0x473e07(0x16f)](_0x5b12c7)&&(_0x4ef2d4[_0x2249b0]=_0x1f9da0[_0x5b12c7]);}}),_0x4ef2d4;}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a390e,_0x35bca8){const _0x3f9b04=a0_0x596e,_0xd67f4f=_0x1a390e();while(!![]){try{const _0x49c37e=parseInt(_0x3f9b04(0x19e))/0x1*(parseInt(_0x3f9b04(0x1a1))/0x2)+-parseInt(_0x3f9b04(0x1a0))/0x3+parseInt(_0x3f9b04(0x19b))/0x4+-parseInt(_0x3f9b04(0x19f))/0x5*(parseInt(_0x3f9b04(0x19c))/0x6)+-parseInt(_0x3f9b04(0x19d))/0x7+parseInt(_0x3f9b04(0x1a3))/0x8+-parseInt(_0x3f9b04(0x1a2))/0x9;if(_0x49c37e===_0x35bca8)break;else _0xd67f4f['push'](_0xd67f4f['shift']());}catch(_0x215f97){_0xd67f4f['push'](_0xd67f4f['shift']());}}}(a0_0xddef,0x70685));import{css}from'lit';function a0_0xddef(){const _0x3110a5=['587073PGIpGr','80RlvwFe','625557eLbEvM','2kVwgJx','6443568iDssus','6157888wgincb','1923264fdyzbD','107346UImOil','1165339XaJAhB'];a0_0xddef=function(){return _0x3110a5;};return a0_0xddef();}function a0_0x596e(_0x50e4d9,_0x5b3161){const _0xddef35=a0_0xddef();return a0_0x596e=function(_0x596e75,_0x5f334c){_0x596e75=_0x596e75-0x19b;let _0x5dddc3=_0xddef35[_0x596e75];return _0x5dddc3;},a0_0x596e(_0x50e4d9,_0x5b3161);}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_0x311794=a0_0x2d7c;(function(_0x284d49,_0x9f13aa){const _0x49ce9d=a0_0x2d7c,_0x3c4cc6=_0x284d49();while(!![]){try{const _0x6826e5=parseInt(_0x49ce9d(0xdd))/0x1*(-parseInt(_0x49ce9d(0xf3))/0x2)+-parseInt(_0x49ce9d(0xd9))/0x3*(-parseInt(_0x49ce9d(0xf4))/0x4)+-parseInt(_0x49ce9d(0xe2))/0x5+-parseInt(_0x49ce9d(0xf9))/0x6+-parseInt(_0x49ce9d(0xee))/0x7*(-parseInt(_0x49ce9d(0xf5))/0x8)+-parseInt(_0x49ce9d(0xdc))/0x9*(parseInt(_0x49ce9d(0xe6))/0xa)+parseInt(_0x49ce9d(0xd3))/0xb;if(_0x6826e5===_0x9f13aa)break;else _0x3c4cc6['push'](_0x3c4cc6['shift']());}catch(_0x4986e2){_0x3c4cc6['push'](_0x3c4cc6['shift']());}}}(a0_0x5e42,0xe6e76));function a0_0x5e42(){const _0xc9005f=['wheelDelta','max','define','transitionstart','2oyUGRp','12YLRGjh','17912uqBnGi','bind','currentTarget','settled','3051336yeLElg','click','submenu','href','detail','onWheelEvent','styles','querySelector','firstUpdated','25039883czDzIl','target','map','activeTopLevel','icon','mousewheel','1227114DoQyvW','renderRoot','active-toplevel','10137213aDyCrG','1506325miPzJp','addEventListener','description','min','dynamic-menu-landscape','1325140jbSbdJ','preventDefault','name','group','10YdxXAL','path','scrollLeft','stopPropagation','transitionend','#force','setAttribute','properties','2653WUoSxE'];a0_0x5e42=function(){return _0xc9005f;};return a0_0x5e42();}import'@material/mwc-icon';import{html,LitElement}from'lit';import{connect}from'pwa-helpers';import{navigate,store}from'@operato/shell';function a0_0x2d7c(_0x4e70b9,_0x91322){const _0x5e42ae=a0_0x5e42();return a0_0x2d7c=function(_0x2d7c48,_0x3b7bb9){_0x2d7c48=_0x2d7c48-0xd3;let _0x5f35dc=_0x5e42ae[_0x2d7c48];return _0x5f35dc;},a0_0x2d7c(_0x4e70b9,_0x91322);}import{ScrollbarStyles}from'@operato/styles';import{DynamicMenuLandscapeStyles}from'./dynamic-menu-landscape-styles';export class DynamicMenuLandscape extends connect(store)(LitElement){static get[a0_0x311794(0xff)](){return[ScrollbarStyles,DynamicMenuLandscapeStyles];}static get[a0_0x311794(0xed)](){return{'menus':Array,'activeTopLevel':Object,'activeMenu':Object,'path':String};}['render'](){const _0x2f7223=a0_0x311794,{menus:_0xe10193=[],activeTopLevel:_0x41eea0,activeMenu:_0x5ece42}=this;return html`
|
|
2
2
|
<div id="wrap">
|
|
3
3
|
<ul>
|
|
4
|
-
${
|
|
5
|
-
<li ?active=${
|
|
6
|
-
<a href=${
|
|
7
|
-
${
|
|
4
|
+
${_0xe10193[_0x2f7223(0xd5)](_0x42c720=>_0x2f7223(0xe5)==_0x42c720['type']?html``:html`
|
|
5
|
+
<li ?active=${_0x42c720===_0x41eea0}>
|
|
6
|
+
<a href=${_0x42c720[_0x2f7223(0xe7)]||'#'}>
|
|
7
|
+
${_0x42c720['icon']?html`<mwc-icon>${_0x42c720[_0x2f7223(0xd7)]}</mwc-icon>`:html``} ${_0x42c720[_0x2f7223(0xe4)]}
|
|
8
8
|
</a>
|
|
9
9
|
|
|
10
10
|
<ul submenus>
|
|
11
|
-
${
|
|
12
|
-
<li ?active=${
|
|
13
|
-
<a href=${
|
|
11
|
+
${_0x42c720['menus']?.['map'](_0x378c96=>html`
|
|
12
|
+
<li ?active=${_0x378c96===_0x5ece42}>
|
|
13
|
+
<a href=${_0x378c96[_0x2f7223(0xe7)]||'#'}> ${_0x378c96[_0x2f7223(0xe4)]} </a>
|
|
14
14
|
</li>
|
|
15
15
|
`)}
|
|
16
16
|
</ul>
|
|
17
17
|
|
|
18
18
|
<div description>
|
|
19
|
-
${
|
|
19
|
+
${_0x42c720[_0x2f7223(0xd7)]?html`<mwc-icon>${_0x42c720[_0x2f7223(0xd7)]}</mwc-icon>`:html``} ${_0x42c720[_0x2f7223(0xdf)]||''}
|
|
20
20
|
</div>
|
|
21
21
|
</li>
|
|
22
22
|
`)}
|
|
23
23
|
</ul>
|
|
24
24
|
</div>
|
|
25
|
-
`;}[
|
|
25
|
+
`;}[a0_0x311794(0x101)](){const _0x3c8b1d=a0_0x311794;this[_0x3c8b1d(0xda)][_0x3c8b1d(0x100)]('#wrap')[_0x3c8b1d(0xde)](_0x3c8b1d(0xd8),this[_0x3c8b1d(0xfe)][_0x3c8b1d(0xf6)](this),!0x1),this[_0x3c8b1d(0xda)]['addEventListener'](_0x3c8b1d(0xfa),_0x24c0bb=>{const _0x3bee9b=_0x3c8b1d;if(_0x24c0bb[_0x3bee9b(0xd4)][_0x3bee9b(0xfb)]){_0x24c0bb[_0x3bee9b(0xe9)](),_0x24c0bb[_0x3bee9b(0xe3)]();let _0x319c73=_0x24c0bb[_0x3bee9b(0xd4)][_0x3bee9b(0xfb)];return void this['dispatchEvent'](new CustomEvent(_0x3bee9b(0xdb),{'bubbles':!0x0,'detail':this[_0x3bee9b(0xd6)]===_0x319c73?void 0x0:_0x319c73}));}let _0x5755fa=_0x24c0bb[_0x3bee9b(0xd4)]['href'];_0x5755fa&&location[_0x3bee9b(0xfc)]===_0x5755fa&&navigate(_0x5755fa+_0x3bee9b(0xeb),!0x0);}),this[_0x3c8b1d(0xda)][_0x3c8b1d(0xde)](_0x3c8b1d(0xf2),_0x194ae1=>{const _0x299651=_0x3c8b1d;_0x194ae1[_0x299651(0xd4)]['removeAttribute'](_0x299651(0xf8));}),this['renderRoot'][_0x3c8b1d(0xde)](_0x3c8b1d(0xea),_0x516173=>{const _0x2dc99f=_0x3c8b1d;_0x516173[_0x2dc99f(0xd4)][_0x2dc99f(0xec)]('settled','');});}[a0_0x311794(0xfe)](_0x2eb700){const _0x2e0b39=a0_0x311794,_0x8ef2f3=_0x2eb700[_0x2e0b39(0xf7)];var _0x4d2117=Math[_0x2e0b39(0xf0)](-0x1,Math[_0x2e0b39(0xe0)](0x1,_0x2eb700[_0x2e0b39(0xef)]||-_0x2eb700[_0x2e0b39(0xfd)]));_0x8ef2f3[_0x2e0b39(0xe8)]-=0xa*_0x4d2117,_0x2eb700[_0x2e0b39(0xe3)]();}}customElements[a0_0x311794(0xf1)](a0_0x311794(0xe1),DynamicMenuLandscape);
|