@things-factory/meta-ui 6.0.108 → 6.0.109
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/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-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-detail-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/activity/meta-activity-list-page.js +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +3 -3
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/entity/config-entity.js +28 -28
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-detail-element.js +1 -1
- package/client/pages/meta-tab-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +6 -6
- package/client/reducers/main.js +1 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +93 -93
- package/client/utils/service-util.js +12 -12
- package/client/utils/terms-util.js +2 -2
- package/client/utils/ui-util.js +1 -1
- package/client/utils/value-util.js +1 -1
- package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +12 -12
- package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +2 -2
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-activity/meta-activity-mutation.js +1 -1
- package/server/service/meta-activity/meta-activity-query.js +1 -1
- package/server/service/meta-activity/meta-activity-type.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0xec59e1=a0_0x28ba;(function(_0x59c973,_0x54e7ef){const _0x3b0db5=a0_0x28ba,_0x58982a=_0x59c973();while(!![]){try{const _0x2bec5e=-parseInt(_0x3b0db5(0x2e3))/0x1+parseInt(_0x3b0db5(0x1c2))/0x2*(parseInt(_0x3b0db5(0x21c))/0x3)+-parseInt(_0x3b0db5(0x2d9))/0x4*(-parseInt(_0x3b0db5(0x1f3))/0x5)+parseInt(_0x3b0db5(0x2dc))/0x6+parseInt(_0x3b0db5(0x271))/0x7+-parseInt(_0x3b0db5(0x1e7))/0x8+-parseInt(_0x3b0db5(0x207))/0x9;if(_0x2bec5e===_0x54e7ef)break;else _0x58982a['push'](_0x58982a['shift']());}catch(_0xb6909){_0x58982a['push'](_0x58982a['shift']());}}}(a0_0x1326,0xd0e99));import a0_0x1b3391 from'graphql-tag';import{client}from'@operato/graphql';import a0_0x59defa from'moment-timezone';import{css,html}from'lit';function a0_0x1326(){const _0x1534b4=['getMenuMeta','configGrist','pages/meta-form-element.js','gridConfig','options','gristButtonValueReference','column','split','buttonConfig','8769128KdufYl','metaUI','pageNavigate','getGristColumnConfig3','handlers','is_readonly','getGridColumnPersonalizeButton','commonButtonOpenPopup','value','getBasicTabStyles','<meta-tab-element\x20id=\x22','personal-column-selector','75730vZRkAQ','openPopupByElement','label','getState','grid_column','commonButtonCallScenario','error','findMenuGridPersnalTemplate','openDynamicPopup','\x20is_detail=true></','getBasicGristHtml','getSelectColumns','map','raised','gridColumnConfig','compareObjectValues','searchByPagination','getGridDetailHtml','formColumnConfig','activityDataSet','2822319USScIW','grist_changed','getBasicGristTabStyles','grist_one','data_history_list','gristConfigSet','outlined','subtract','menu','patchesForUpdateMultiple','sequence','\x0a{\x0aid\x0aname\x0athumbnail}','getGristSearchColumnConfig','button','relation','menuId','setParentId','parent_id','50%\x2050%','emphasis','hidden','7167fPVDNz','form','__dirtyfields__','parent_field','formConfigSet','midium','gqlInfo','getBasicMasterDetailGristStyle','mainFilterForm','\x22\x20style=\x22margin-left:7px;margin-top:7px;\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20icon=\x22','text.grid_is_not_exist','value_is_not_exist','today','left_right','use_grid_sort_button','top_bottom','\x22\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20','master','getGristEmphasizedStyles','getGristPaginationCustomConfig','\x27\x20style=\x22flex:1;\x22\x20','createButtonElement','bind','selectable','use_filter_form','after','text.there_is_no_selected_items','useButtonAdd','\x20{\x20','editor','searchFields','meta-form-element','danger','infinityPage','\x0aid\x0aname\x0adescription','getGristCodeSelectorColumnConfig','title.warning','getGridButtonSet','notify','gristButtonHandler','type','resource-object','isMobileEnv','offsetTop','editable','dispatchEvent','filterForm','object','title.info','self','gristId','getGridListSet','importable','length','param_field','getGristSelectorColumnConfig','gutter','is_activity','history_copy','master_detail_element','tagName','title','result_name','\x201fr\x202fr','option','board','find_one_func','display','getCodeByEntity','rootElement','getGristGuttersConfig','getGristSelectableConfig','meta-tab-element','\x22\x20route_name=\x22','masterElement','main_filter_form','basicArgs','record','text.search_form_is_not_exist','getMasterDetailTopDownGristStyle','getBasicFormHtmlNoOption','records','floor','tLabel','getCodeSelectorData','4436362tsDTjk','isNotEmpty','left','template','LIST','createDetailElement','config','gridDeskMode','GRID','getBasicFormStyles','selected','route_name','data','args','useButtonImport','\x27\x20route_name=\x27','day','tText','tagname','detail','getCustomButtonContainerStyles','includes','getButtonActionHandler','grist_all','meta-tab-detail-','runnerPermission','findOne','getParams','unlimited','findMenuMetaByRouting','meta-master-detail-','getObjctColumnSelectFields','desc','isEmpty','search','confirm','master_detail_type','custom','select','text.grid_data_is_empty','errors','query','basic','grid-template-rows:','code','createMasterElement','\x20id=\x27','row','shadowRoot','header','icon','entity','etcConfig','gristButtonPassParam','display:none','getCodeByScenario','dirty','useMasterFilterForm','is_readonly=true','detailElement','useFilterForm','string','gridMobileMode','model','tButton','rank','url','imex','format','getGridOptionSet','keys','dec','getMasterDetailLeftRightGristStyle','getGridViewOption','tMenu','getBasicFormHtml','menuInfo','startsWith','assign','location','\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20','gridMode','offsetHeight','routing','menus','grid-column-personalize','getGristHiddenColumnConfig','header_txt','showAlertPopup','tTitle','getBasicTabDetailStyles','getContextObject','tabElements','find','getButtonContainer','currentTabKey','findMenuMeta','pass_param','\x20>\x0a\x20\x20\x20\x20</mwc-button>\x0a\x20\x20\x20\x20','text.nothing_selected','getBasicFormHtmlOnOption','htmlToElement','meta-grist-tab-','sorters','220ChsJME','useButtonExport','currentTarget','7740558dKpgXL','grist','getQueryFilters','customButtonHandler','filter','name','parse','1463775vxaEmn','false','CARD','getGristTabHtml','grid-template-columns:','pass_field','\x20\x0a\x20}','scenario','includeMainList','gridViewOptions','page','grid','tabRenderConfig','import','callScenario','text.please_select_only_one','searchConfig','popup','history-copy-list-popup','\x20is_detail=true\x20style=\x22flex:1;\x22></','getGridColumnSet','forEach','parseFormConfigSet','parentElement','width','push','history_json','getBasicTabHtml','id,template','history-json-list-popup','isArray','toLowerCase','getBasicGristStyles','814rBIsYW','getContextButtons','is_activity=true','formRenderConfig','pages/hgistory/history-json-list-popup.js','getGridRowSet','getGristSearchCodeColumnConfig','\x22\x20name=\x22','getContainerButtons','setGridColumnSearchOption','pages','value_reference','fetch','list','filters','sort','use_row_checker','getGristPersonalizedStyles','column_list','title_detail','stringify','getGristColumnConfig2','logic','currentRouting','grist_selected','service','info','add'];a0_0x1326=function(){return _0x1534b4;};return a0_0x1326();}import{ScrollbarStyles,CommonGristStyles,CommonButtonStyles}from'@operato/styles';import{store}from'@operato/shell';import{TermsUtil}from'./terms-util';import{ValueUtil}from'./value-util';import{ServiceUtil}from'./service-util';import{UiUtil}from'./ui-util';function a0_0x28ba(_0x4d226c,_0x416a3b){const _0x1326bf=a0_0x1326();return a0_0x28ba=function(_0x28baa6,_0x193beb){_0x28baa6=_0x28baa6-0x1ad;let _0x5e5351=_0x1326bf[_0x28baa6];return _0x5e5351;},a0_0x28ba(_0x4d226c,_0x416a3b);}import{MetaCrypto}from'./meta-crypto';import{getEditor,getRenderer}from'@operato/data-grist';import{MetaApi}from'./meta-api';import'./../pages/personalize/personal-column-selector';import'./../pages/history/history-copy-list-popup';import'./../pages/history/history-json-list-popup';export class MetaUiUtil{static async[a0_0xec59e1(0x2d1)](_0x35a561){const _0x3e4420=a0_0xec59e1;let _0x18150e=await ServiceUtil[_0x3e4420(0x28b)](_0x3e4420(0x20f),_0x35a561,'template');if(!_0x18150e)throw new Error(TermsUtil[_0x3e4420(0x282)](_0x3e4420(0x227),{'value':TermsUtil[_0x3e4420(0x2bb)](_0x3e4420(0x20f))+'\x20'+_0x35a561}));if(!_0x18150e[_0x3e4420(0x274)])throw new Error(TermsUtil[_0x3e4420(0x282)]('value_is_not_exist',{'value':TermsUtil[_0x3e4420(0x2bb)](_0x3e4420(0x20f))+'\x20'+TermsUtil[_0x3e4420(0x26f)](_0x3e4420(0x2b0))}));return this['menuId']=_0x35a561,JSON[_0x3e4420(0x2e2)](_0x18150e['template']);}static async[a0_0xec59e1(0x28e)](_0xafc2af){const _0x457431=a0_0xec59e1;if((await client[_0x457431(0x29a)]({'query':a0_0x1b3391`
|
|
2
2
|
query ($id: String) {
|
|
3
3
|
metaUITemplateIsOverLimit(id: $id)
|
|
4
4
|
}
|
|
5
|
-
`,'variables':{'id':null}}))[_0x27f12c(0x111)])return;let _0x67b0bc=[{'name':'routing','operator':'eq','value':_0x1b551c}],_0x407e4d=await ServiceUtil['searchByPagination']('menus',_0x67b0bc,null,0x0,0x0,'id,template');if(_0x407e4d||0x0!=_0x407e4d[_0x27f12c(0x102)]){let _0x15db73=_0x407e4d['records'][0x0];if(!_0x15db73[_0x27f12c(0x175)])throw new Error(TermsUtil[_0x27f12c(0x21d)](_0x27f12c(0x211),{'value':TermsUtil['tMenu'](_0x27f12c(0x1ad))+'\x20'+TermsUtil[_0x27f12c(0x11e)]('model')}));return this[_0x27f12c(0x1a7)]=_0x15db73['id'],JSON['parse'](MetaCrypto['dec'](_0x15db73['template']));}throw new Error(TermsUtil[_0x27f12c(0x21d)](_0x27f12c(0x211),{'value':TermsUtil[_0x27f12c(0x1f3)](_0x27f12c(0x1ad))+'\x20'+_0x1b551c}));}static[a0_0x5752f7(0x1e9)](){return{'menuInfo':Object,'gridConfig':Object,'gridColumnConfig':Array,'formColumnConfig':Array,'buttonConfig':Array,'searchConfig':Array,'gqlInfo':String,'gqlFetchField':String,'searchFormElement':String,'useFilterForm':Boolean,'gristConfigSet':Object,'formConfigSet':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':!0x0,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0xeefc9f=>Boolean(_0xeefc9f)},'is_popup':{'type':Boolean,'converter':_0x55a325=>Boolean(_0x55a325)},'is_activity':{'type':Boolean,'converter':_0x1ae270=>Boolean(_0x1ae270)},'is_readonly':{'type':Boolean,'converter':_0x273b32=>Boolean(_0x273b32)}};}static async[a0_0x5752f7(0x220)](_0x4468af){const _0x459dc6=a0_0x5752f7;if(0x0==store[_0x459dc6(0x1a2)]()['metaUI']['runnerPermission'])return void document['dispatchEvent'](new CustomEvent(_0x459dc6(0x1e2),{'detail':{'level':_0x459dc6(0x20e),'message':TermsUtil[_0x459dc6(0x18f)](_0x459dc6(0x132))}}));let _0xef72e9=_0x4468af[_0x459dc6(0x1ff)]?UiUtil[_0x459dc6(0x200)]():_0x4468af[_0x459dc6(0x178)];_0x4468af[_0x459dc6(0x200)]=_0xef72e9;let _0x4106f7=await MetaUiUtil[_0x459dc6(0x21b)](_0xef72e9);return!0x0===_0x4468af[_0x459dc6(0x13d)]&&(_0x4106f7[_0x459dc6(0x1c2)]['option'][_0x459dc6(0x207)]=!0x1,_0x4106f7[_0x459dc6(0x1c2)]['option'][_0x459dc6(0x1b0)]=_0x459dc6(0x10e),_0x4106f7['grid'][_0x459dc6(0x1c1)]=!0x1,_0x4106f7[_0x459dc6(0x1c2)][_0x459dc6(0x123)]=[],_0x4106f7[_0x459dc6(0x123)]=_0x4106f7[_0x459dc6(0x123)][_0x459dc6(0x19e)](_0x1c9dee=>_0x459dc6(0x180)==_0x1c9dee[_0x459dc6(0x1b4)])),!0x0===_0x4468af[_0x459dc6(0x1ca)]&&(_0x4106f7[_0x459dc6(0x21a)]['forEach'](_0x5e469d=>{const _0x3bce6c=_0x459dc6;_0x5e469d[_0x3bce6c(0x142)]=!0x1;}),_0x4106f7[_0x459dc6(0x123)]=_0x4106f7[_0x459dc6(0x123)][_0x459dc6(0x19e)](_0x172de7=>_0x459dc6(0x180)!=_0x172de7[_0x459dc6(0x1b4)])),!0x1===_0x4468af[_0x459dc6(0x1c1)]&&(_0x4106f7[_0x459dc6(0x1c2)][_0x459dc6(0x1c1)]=!0x1),_0x4106f7;}static[a0_0x5752f7(0x1c5)](..._0x3ed91a){return{'pages':_0x3ed91a};}static['getGristGuttersConfig'](_0xde4d10,_0x5a3eb6){const _0x551952=a0_0x5752f7;let _0x2281c5=[{'type':_0x551952(0x173),'gutterName':_0x551952(0x120)},{'type':'gutter','gutterName':_0x551952(0x147)}];return _0xde4d10&&_0x2281c5[_0x551952(0x134)]({'type':_0x551952(0x173),'gutterName':'row-selector','multiple':_0x5a3eb6}),_0x2281c5;}static['getGristSelectableConfig'](_0x437cad){return{'selectable':{'multiple':_0x437cad}};}static async['parseGridConfigSet'](_0x97be29){const _0x5626f5=a0_0x5752f7;let _0x2c30ae=MetaUiUtil[_0x5626f5(0x129)](_0x97be29),_0x2151dc=MetaUiUtil[_0x5626f5(0x198)](_0x97be29),_0x2ecbf0=MetaUiUtil['getGridRowSet'](_0x97be29),_0x515ec6=MetaUiUtil[_0x5626f5(0x158)](_0x97be29),_0x167e83=await MetaUiUtil[_0x5626f5(0x117)](_0x97be29),_0x94b866=MetaUiUtil['getGristGuttersConfig'](_0x2c30ae['use_row_checker'],_0x2ecbf0['selectable'][_0x5626f5(0x22d)]);return 0x1==_0x97be29[_0x5626f5(0x136)]&&(_0x167e83=MetaUiUtil[_0x5626f5(0x154)](_0x97be29,_0x167e83)),{'list':_0x2151dc,'pagination':_0x2c30ae[_0x5626f5(0x1b0)],'sorters':_0x2c30ae[_0x5626f5(0x1e7)],'rows':_0x2ecbf0,'columns':[..._0x94b866,..._0x515ec6,..._0x167e83]};}static async[a0_0x5752f7(0x181)](_0x442dbe){const _0x2f63ae=a0_0x5752f7;let _0x2c9825=_0x442dbe[_0x2f63ae(0x124)],_0x24ce5b=[];for(let _0x50de6e=0x0;_0x50de6e<_0x2c9825[_0x2f63ae(0x102)];_0x50de6e++){let {type:_0x50d6d9='string',name:_0x3b1359,header:_0x58059f,hidden:_0x2f4828=!0x1,editable:_0x4595dc=!0x0,mandatory:_0x44ccb6=!0x1,align:_0x3849ff=_0x2f63ae(0x1f5),select_opt:_0x1944c3,object_opt:_0x2a6e1c}=_0x2c9825[_0x50de6e],_0x22a3e0={'type':_0x50d6d9,'name':_0x3b1359,'header_txt':ValueUtil[_0x2f63ae(0x17f)](_0x58059f)?TermsUtil['tLabel'](_0x3b1359):TermsUtil['tLabel'](_0x58059f),'header':{'renderer':function(_0x41602e){const _0x3706b0=_0x2f63ae;return _0x41602e[_0x3706b0(0x1b3)];}},'hidden':_0x2f4828,'record':{'editable':_0x4595dc,'mandatory':_0x44ccb6,'align':_0x3849ff,'classifier':function(){},'renderer':getRenderer(_0x50d6d9)}};_0x4595dc&&(_0x22a3e0[_0x2f63ae(0x22e)][_0x2f63ae(0x1a1)]=getEditor(_0x50d6d9)),'select'===_0x50d6d9&&ValueUtil['isNotEmpty'](_0x1944c3)&&(Array['isArray'](_0x1944c3)?_0x22a3e0[_0x2f63ae(0x22e)][_0x2f63ae(0x106)]=_0x1944c3:_0x2f63ae(0x1fa)===_0x1944c3[_0x2f63ae(0x157)]?_0x22a3e0['record'][_0x2f63ae(0x106)]=await ServiceUtil[_0x2f63ae(0x1de)](_0x1944c3[_0x2f63ae(0x1b4)]):_0x2f63ae(0x197)===_0x1944c3['type']?_0x22a3e0[_0x2f63ae(0x22e)]['options']=await ServiceUtil['getCodeByScenario'](_0x1944c3[_0x2f63ae(0x1b4)],_0x1944c3[_0x2f63ae(0x186)]):'entity'===_0x1944c3[_0x2f63ae(0x157)]&&(_0x22a3e0['record'][_0x2f63ae(0x106)]=await ServiceUtil[_0x2f63ae(0x152)](_0x1944c3['args']))),'object'!==_0x50d6d9&&_0x2f63ae(0x131)!==_0x50d6d9||!ValueUtil['isNotEmpty'](_0x2a6e1c)||(_0x22a3e0[_0x2f63ae(0x22e)][_0x2f63ae(0x106)]=_0x2a6e1c),_0x24ce5b[_0x2f63ae(0x134)](_0x22a3e0);}return _0x24ce5b;}static[a0_0x5752f7(0x129)](_0x595081){const _0x4e854f=a0_0x5752f7;let _0x8302c5=_0x595081[_0x4e854f(0x16f)];_0x595081['useFilterForm']=!_0x8302c5||null==_0x8302c5[_0x4e854f(0x1c1)]||_0x8302c5[_0x4e854f(0x1c1)];let {mobile_mode:_0x323915=_0x4e854f(0x219),desk_mode:_0x57971a=_0x4e854f(0x172),view_mode:_0x55425f=[],use_row_checker:_0x42fdc7=!0x0,sorters:_0x563056=[],pages:_0x17a775=[0x32,0x64,0x1f4,0x3e8]}=ValueUtil['isEmpty'](_0x8302c5[_0x4e854f(0x1df)])?{}:_0x8302c5[_0x4e854f(0x1df)];return _0x4e854f(0x10e)===_0x17a775||'-1'===_0x17a775?(_0x595081[_0x4e854f(0x1d7)]=!0x0,_0x17a775={'infinite':!0x0}):(_0x595081['infinityPage']=!0x1,_0x17a775[_0x4e854f(0x104)](function(_0xf96e5b,_0x35f545){return _0xf96e5b-_0x35f545;}),_0x17a775={'pages':_0x17a775}),ValueUtil['isNotEmpty'](_0x55425f)&&(0x1==_0x55425f[_0x4e854f(0x102)]?(_0x57971a=_0x55425f[0x0],_0x323915=_0x55425f[0x0]):_0x55425f[_0x4e854f(0x102)]>=0x2&&(_0x55425f[_0x4e854f(0x17e)](_0x323915)||(_0x323915=_0x55425f[0x1]),_0x55425f['includes'](_0x57971a)||(_0x57971a=_0x55425f[0x0]))),_0x595081['gridMobileMode']=_0x323915,_0x595081[_0x4e854f(0x10f)]=_0x57971a,_0x595081['gridViewOptions']=_0x55425f,_0x595081[_0x4e854f(0x1bc)]=UiUtil['isMobileEnv']()?_0x595081[_0x4e854f(0x22a)]:_0x595081[_0x4e854f(0x10f)],{'use_row_checker':_0x42fdc7,'sorters':_0x563056,'pages':_0x17a775};}static['getGridListSet'](_0x4f2c8d){const _0x277b3b=a0_0x5752f7;let _0x45bddc={'fields':[ValueUtil['getParams'](_0x4f2c8d['menuInfo'],_0x277b3b(0x1b4)),ValueUtil[_0x277b3b(0x17c)](_0x4f2c8d['menuInfo'],_0x277b3b(0x217))]};return _0x4f2c8d['gridConfig'][_0x277b3b(0x14c)]&&Object['assign'](_0x45bddc,_0x4f2c8d[_0x277b3b(0x16f)][_0x277b3b(0x14c)]),_0x45bddc;}static[a0_0x5752f7(0x214)](_0x337796){const _0x45b80d=a0_0x5752f7;let {multiple_select:_0x46fc6f=!0x1,click:_0x2d7120}=ValueUtil[_0x45b80d(0x17f)](_0x337796[_0x45b80d(0x16f)][_0x45b80d(0x21e)])?{}:_0x337796['gridConfig'][_0x45b80d(0x21e)],_0x14f83c={'selectable':{'multiple':_0x46fc6f},'appendable':_0x337796['useButtonAdd']};return ValueUtil[_0x45b80d(0x18d)](_0x2d7120)&&(_0x14f83c[_0x45b80d(0x20f)]={'click':_0x2d7120}),_0x14f83c;}static[a0_0x5752f7(0x158)](_0x45cd4e){const _0x858527=a0_0x5752f7;let _0xdd408e=_0x45cd4e[_0x858527(0x16f)]['button'];return ValueUtil[_0x858527(0x17f)](_0xdd408e)?[]:_0xdd408e[_0x858527(0x1d2)](_0x22523e=>{const _0x536f28=_0x858527;let _0x310e6d={'type':_0x536f28(0x173),'gutterName':_0x536f28(0x123)};if(ValueUtil[_0x536f28(0x18d)](_0x22523e[_0x536f28(0x224)])&&(Array[_0x536f28(0x118)](_0x22523e[_0x536f28(0x224)])?_0x310e6d[_0x536f28(0x224)]=_0x58d252=>{const _0x343409=_0x536f28;if(ValueUtil[_0x343409(0x18d)](_0x58d252))for(let _0x3fa265=0x0;_0x3fa265<_0x22523e[_0x343409(0x224)][_0x343409(0x102)];_0x3fa265++){let _0x5913c6=_0x22523e[_0x343409(0x224)][_0x3fa265];if(!0x0===ValueUtil[_0x343409(0x100)](_0x5913c6,_0x58d252,Object[_0x343409(0x237)](_0x5913c6)[_0x343409(0x19e)](_0x181eec=>_0x343409(0x224)!=_0x181eec)))return _0x5913c6[_0x343409(0x224)];}}:_0x310e6d[_0x536f28(0x224)]=_0x22523e[_0x536f28(0x224)]),ValueUtil[_0x536f28(0x18d)](_0x22523e[_0x536f28(0x1b4)])&&(_0x310e6d[_0x536f28(0x1b4)]=_0x22523e[_0x536f28(0x1b4)]),ValueUtil[_0x536f28(0x18d)](_0x22523e[_0x536f28(0x188)])&&(_0x310e6d[_0x536f28(0x167)]=TermsUtil['tButton'](_0x22523e['label'])),_0x536f28(0x1b1)===_0x22523e[_0x536f28(0x157)]){let _0x16c8e9=ValueUtil[_0x536f28(0x17c)](_0x22523e,'logic');['history_copy',_0x536f28(0x208)][_0x536f28(0x17e)](_0x16c8e9)?_0x310e6d[_0x536f28(0x20f)]={'click':(_0xd59651,_0x3b1b19,_0x1a9de3,_0x6e6541,_0x4f0791)=>{const _0xc12e3d=_0x536f28;if(_0x6e6541['id']){let _0x27f6b8={'title':'data_history_list','type':_0xc12e3d(0x159),'tagname':_0xc12e3d(0x1ae)==_0x16c8e9?_0xc12e3d(0x16b):_0xc12e3d(0x13c),'location':'history_copy'==_0x16c8e9?'pages/hgistory/history-copy-list-popup.js':'pages/hgistory/history-json-list-popup.js','menu':_0x45cd4e[_0xc12e3d(0x200)],'size':_0xc12e3d(0x1e0),'popup_field':_0xc12e3d(0x15f),'parent_field':'id'},_0x547386={..._0x6e6541,'gqlFunc':ValueUtil['getParams'](_0x45cd4e[_0xc12e3d(0x165)],_0xc12e3d(0x212),_0xc12e3d(0x202)),'gristConfig':JSON[_0xc12e3d(0x218)](JSON['stringify'](_0x45cd4e[_0xc12e3d(0x149)][_0xc12e3d(0x190)]))};MetaUiUtil[_0xc12e3d(0x19b)](_0x45cd4e,{'logic':_0x27f6b8},_0x547386);}}}:_0x310e6d[_0x536f28(0x20f)]={'click':_0x16c8e9};}else _0x310e6d[_0x536f28(0x20f)]={'click':(_0x536da8,_0x1aa085,_0x259e76,_0x4806d7,_0x3655d9)=>{const _0x51465b=_0x536f28;_0x4806d7['id']&&MetaUiUtil[_0x51465b(0x19b)](_0x45cd4e,_0x22523e,_0x4806d7);}};return _0x310e6d;});}static async['getGridColumnSet'](_0x3f1a7a){const _0x42c604=a0_0x5752f7;let _0x57a166=_0x3f1a7a['gridColumnConfig'];if(ValueUtil[_0x42c604(0x17f)](_0x57a166))return[];let _0x117f29=[];for(let _0x14313d=0x0;_0x14313d<_0x57a166[_0x42c604(0x102)];_0x14313d++){let {type:_0x2aa8c7=_0x42c604(0x1e1),name:_0x49727e,header:_0xae4ff9,hidden:_0x1773f0=!0x1,editable:_0x4eb452=!0x0,mandatory:_0x31ac49=!0x1,sortable:_0x3b4448=!0x1,align:_0x2c44cf=_0x42c604(0x1f5),width:_0x2c345a=0x0,exportable:_0x3976d9=!0x1,select_opt:_0x53b1ac,object_opt:_0x17090b}=_0x57a166[_0x14313d],_0x2c6c07={'type':_0x2aa8c7,'name':_0x49727e,'header':ValueUtil[_0x42c604(0x17f)](_0xae4ff9)?'':TermsUtil[_0x42c604(0x11e)](_0xae4ff9),'hidden':_0x1773f0,'sortable':_0x3b4448,'width':_0x2c345a,'record':{'editable':_0x4eb452,'mandatory':_0x31ac49,'align':_0x2c44cf}};if(_0x42c604(0x177)===_0x2aa8c7&&ValueUtil['isNotEmpty'](_0x53b1ac))Array[_0x42c604(0x118)](_0x53b1ac)?_0x2c6c07['record'][_0x42c604(0x106)]=_0x53b1ac:_0x42c604(0x1fa)===_0x53b1ac[_0x42c604(0x157)]?_0x2c6c07['record']['options']=await ServiceUtil[_0x42c604(0x1de)](_0x53b1ac['name']):_0x42c604(0x197)===_0x53b1ac['type']?_0x2c6c07[_0x42c604(0x22e)][_0x42c604(0x106)]=await ServiceUtil[_0x42c604(0x235)](_0x53b1ac[_0x42c604(0x1b4)],_0x53b1ac[_0x42c604(0x186)]):_0x42c604(0x1f7)===_0x53b1ac[_0x42c604(0x157)]&&(_0x2c6c07[_0x42c604(0x22e)][_0x42c604(0x106)]=await ServiceUtil[_0x42c604(0x152)](_0x53b1ac[_0x42c604(0x186)]));else{if((_0x42c604(0x1e3)===_0x2aa8c7||'resource-object'===_0x2aa8c7)&&ValueUtil[_0x42c604(0x18d)](_0x17090b)){let _0x3ea6f9;_0x17090b['select']&&_0x17090b[_0x42c604(0x177)][_0x42c604(0x17b)](_0x59a950=>{const _0x19ae13=_0x42c604;_0x59a950[_0x19ae13(0x1d5)]||(_0x59a950[_0x19ae13(0x1d5)]=_0x59a950['name']),_0x59a950[_0x19ae13(0x1d5)]=TermsUtil[_0x19ae13(0x11e)](_0x59a950[_0x19ae13(0x1d5)]);}),_0x2c6c07['record'][_0x42c604(0x106)]={..._0x17090b},_0x17090b[_0x42c604(0x1ac)]&&_0x17090b[_0x42c604(0x1ac)]['filters']&&(_0x3ea6f9=[..._0x17090b[_0x42c604(0x1ac)][_0x42c604(0x13f)]]),_0x3ea6f9&&JSON['stringify'](_0x3ea6f9)[_0x42c604(0x17e)]('::')&&(_0x2c6c07[_0x42c604(0x20f)]={'dblclick':(_0x53dfdc,_0x63186c,_0x58028d,_0xa421f8,_0x168a0c)=>{const _0x541d22=_0x42c604;let _0x5a9e39=[];_0x3ea6f9['forEach'](_0x4e24cf=>{const _0x753182=a0_0x559b;var {name:_0xb98903,value:_0x2b26e6,operator:_0x27fb55='eq'}=_0x4e24cf;_0x2b26e6[_0x753182(0x17e)]('::')&&(_0x2b26e6=ValueUtil[_0x753182(0x17c)](_0xa421f8,..._0x2b26e6['replace']('::','')[_0x753182(0x101)]('.'))),_0x2b26e6||(_0x2b26e6=''),_0x5a9e39[_0x753182(0x134)]({'name':_0xb98903,'operator':_0x27fb55,'value':_0x2b26e6});}),_0x58028d[_0x541d22(0x22e)][_0x541d22(0x106)][_0x541d22(0x1ac)]['filters']=_0x5a9e39;}});}}!0x0===_0x3f1a7a[_0x42c604(0x1da)]&&!0x0===_0x3976d9&&(_0x2c6c07[_0x42c604(0x1c9)]={'header':_0x2c6c07['header'],'key':_0x2c6c07[_0x42c604(0x1b4)],'width':_0x2c6c07[_0x42c604(0x15c)]/0x6,'type':_0x2c6c07[_0x42c604(0x157)]}),_0x117f29[_0x42c604(0x134)](_0x2c6c07);}if(!0x0!==this['is_activity'])return _0x117f29;let _0x20443e=await MetaApi[_0x42c604(0x153)](this['menuId']),{template:_0x613df1={}}=_0x20443e;if(!_0x613df1['master'])return _0x117f29;let _0xce5925=_0x613df1[_0x42c604(0x1d3)];return _0x117f29=_0x117f29['map'](_0x14f403=>('id'==_0x14f403[_0x42c604(0x1b4)]||(_0x14f403[_0x42c604(0x13e)]=!_0xce5925['includes'](_0x14f403[_0x42c604(0x1b4)]),_0x14f403[_0x42c604(0x18c)]=_0xce5925['indexOf'](_0x14f403[_0x42c604(0x1b4)]),-0x1==_0x14f403[_0x42c604(0x18c)]&&(_0x14f403['rank']=0x1869f)),_0x14f403)),_0x117f29[_0x42c604(0x104)]((_0x333793,_0x169d68)=>_0x333793[_0x42c604(0x18c)]-_0x169d68[_0x42c604(0x18c)]),_0x117f29;}static[a0_0x5752f7(0x154)](_0x2883af,_0xa26df){const _0x43026a=a0_0x5752f7;let _0x3877c9=_0x2883af[_0x43026a(0x1e8)];return _0x3877c9&&_0x3877c9[_0x43026a(0x17b)](_0x219e1f=>{const _0xd3b493=_0x43026a;_0xd3b493(0x1e1)==typeof _0x219e1f?_0xa26df[_0xd3b493(0x19e)](_0x4daf46=>_0x4daf46[_0xd3b493(0x1b4)]==_0x219e1f)[_0xd3b493(0x17b)](_0x4afbb1=>{const _0x4dd590=_0xd3b493;_0x4afbb1[_0x4dd590(0x19e)]=_0x4dd590(0x1e4);}):_0xd3b493(0x1e3)==typeof _0x219e1f&&_0xa26df[_0xd3b493(0x19e)](_0x1a9331=>_0x1a9331['name']==_0x219e1f['name'])[_0xd3b493(0x17b)](_0x357d60=>{const _0x6ccc25=_0xd3b493;_0x357d60['filter']=_0x219e1f;let _0x1f838e=_0x357d60[_0x6ccc25(0x19e)][_0x6ccc25(0x18b)];if(_0x1f838e&&_0x1f838e[_0x6ccc25(0x116)](_0x6ccc25(0x1a4))){const _0x2ce661=a0_0x2eff15();let _0x5405fa=_0x1f838e[_0x6ccc25(0x101)](','),_0x564252=[];_0x5405fa[_0x6ccc25(0x17b)](_0xca1017=>{const _0x2459d6=_0x6ccc25;_0x2459d6(0x1a4)==_0xca1017?_0x564252[_0x2459d6(0x134)](_0x2ce661[_0x2459d6(0x10d)](_0x2459d6(0x17a))):_0xca1017[_0x2459d6(0x17e)]('-')?_0x564252[_0x2459d6(0x134)](_0x2ce661[_0x2459d6(0x1c3)](_0xca1017[_0x2459d6(0x101)]('-')[0x1],'day')[_0x2459d6(0x10d)](_0x2459d6(0x17a))):_0xca1017[_0x2459d6(0x17e)]('+')&&_0x564252[_0x2459d6(0x134)](_0x2ce661[_0x2459d6(0x180)](_0xca1017[_0x2459d6(0x101)]('+')[0x1],'day')[_0x2459d6(0x10d)](_0x2459d6(0x17a)));}),_0x357d60[_0x6ccc25(0x19e)][_0x6ccc25(0x18b)]=0x1==_0x564252[_0x6ccc25(0x102)]?_0x564252[0x0]:_0x564252;}});}),_0xa26df;}static['getContextObject'](_0x3ccf78){const _0x3a2360=a0_0x5752f7;let _0xfe0e7e={'title':TermsUtil[_0x3a2360(0x168)](_0x3ccf78[_0x3a2360(0x11f)][_0x3a2360(0x167)]),'help':_0x3ccf78['menuInfo'][_0x3a2360(0x210)]||'','actions':[...MetaUiUtil[_0x3a2360(0x13b)](_0x3ccf78)]};return _0x3ccf78[_0x3a2360(0x1da)]&&(_0xfe0e7e[_0x3a2360(0x1b6)]={'name':_0xfe0e7e[_0x3a2360(0x167)],'data':_0x3ccf78['export'][_0x3a2360(0x176)](_0x3ccf78)}),_0x3ccf78[_0x3a2360(0x11a)]&&(_0xfe0e7e[_0x3a2360(0x16e)]={'handler':_0x3ccf78[_0x3a2360(0x1d4)]['bind'](_0x3ccf78)}),_0xfe0e7e;}static[a0_0x5752f7(0x13b)](_0x535bb6){const _0x20db28=a0_0x5752f7;let _0x3ca056=_0x535bb6[_0x20db28(0x232)];return ValueUtil[_0x20db28(0x17f)](_0x3ca056)?[]:_0x3ca056[_0x20db28(0x19e)](_0x3868e5=>_0x20db28(0x156)!=_0x3868e5['name']&&_0x20db28(0x1d4)!=_0x3868e5[_0x20db28(0x1b4)]&&_0x20db28(0x180)!=_0x3868e5[_0x20db28(0x1b4)])[_0x20db28(0x1d2)](_0x43de10=>{const _0x2cd98e=_0x20db28;let {name:_0x1f24d4,label:_0x248173,style:_0x257c07,type:_0x180c49='basic',action:_0x381274,logic:_0x382aa8}=_0x43de10;if(ValueUtil[_0x2cd98e(0x17f)](_0x1f24d4))return{'title':'-1'};ValueUtil[_0x2cd98e(0x17f)](_0x248173)&&(_0x248173=_0x1f24d4),ValueUtil[_0x2cd98e(0x17f)](_0x257c07)&&(_0x257c07=_0x1f24d4),ValueUtil[_0x2cd98e(0x17f)](_0x381274)&&(_0x381274=_0x1f24d4);let _0x573335=ValueUtil[_0x2cd98e(0x18d)](_0x257c07)?CommonButtonStyles[_0x257c07]||{'icon':_0x257c07,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}}:{};return{'title':TermsUtil[_0x2cd98e(0x209)](_0x248173),'action':MetaUiUtil[_0x2cd98e(0x225)](_0x535bb6,_0x180c49,_0x381274,_0x382aa8),..._0x573335};})[_0x20db28(0x19e)](_0x58d31f=>'-1'!=_0x58d31f['title']);}static[a0_0x5752f7(0x1bd)](_0x804140){const _0x10b3c1=a0_0x5752f7;let _0x4a807d=_0x804140&&_0x804140[_0x10b3c1(0x232)]?_0x804140['buttonConfig']:null;return _0x4a807d?_0x4a807d[_0x10b3c1(0x19e)](_0x41276f=>_0x10b3c1(0x180)!=_0x41276f[_0x10b3c1(0x1b4)])[_0x10b3c1(0x1d2)](_0x2ba529=>{const _0x35168c=_0x10b3c1;let {name:_0x5dab68,label:_0x5f2293,style:_0x4675d3,type:_0x3d79d9=_0x35168c(0x1b1),action:_0x34979d,logic:_0x4c152d}=_0x2ba529;ValueUtil[_0x35168c(0x17f)](_0x5f2293)&&(_0x5f2293=_0x5dab68),ValueUtil[_0x35168c(0x17f)](_0x4675d3)&&(_0x4675d3=_0x5dab68),ValueUtil['isEmpty'](_0x34979d)&&(_0x34979d=_0x5dab68);let _0x28c25f=MetaUiUtil['createButtonElement'](TermsUtil['tButton'](_0x5f2293),_0x4675d3);return _0x28c25f['onclick']=MetaUiUtil['getButtonActionHandler'](_0x804140,_0x3d79d9,_0x34979d,_0x4c152d),_0x28c25f;}):[];}static[a0_0x5752f7(0x204)](_0x566c39,_0x49dc44){const _0x201ccd=a0_0x5752f7;let _0x34b4c1=CommonButtonStyles[_0x49dc44]||{'icon':_0x49dc44,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}},_0x1b8667=_0x201ccd(0x233)+_0x566c39+'\x22\x20style=\x22margin-left:7px;margin-top:7px;\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20icon=\x22'+(_0x34b4c1[_0x201ccd(0x224)]?_0x34b4c1[_0x201ccd(0x224)]:'')+_0x201ccd(0x107)+(_0x34b4c1[_0x201ccd(0x10c)][_0x201ccd(0x17d)]?_0x201ccd(0x17d):'')+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x34b4c1[_0x201ccd(0x10c)][_0x201ccd(0xff)]?_0x201ccd(0xff):'')+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x34b4c1[_0x201ccd(0x10c)][_0x201ccd(0x196)]?'dense':'')+_0x201ccd(0x1cd)+(_0x34b4c1[_0x201ccd(0x10c)]['danger']?_0x201ccd(0x1a3):'')+_0x201ccd(0x1ec);return UiUtil[_0x201ccd(0x1f0)](_0x1b8667);}static[a0_0x5752f7(0x225)](_0x37d280,_0x3e20e8,_0x1c57d1,_0x149e19){const _0x2471fa=a0_0x5752f7;if(_0x2471fa(0x1b1)==_0x3e20e8){if(_0x37d280[_0x1c57d1])return _0x37d280[_0x1c57d1]['bind'](_0x37d280);}else{if(_0x2471fa(0x13a)==_0x3e20e8)return()=>MetaUiUtil['customButtonHandler'](_0x37d280,_0x149e19);}return()=>{const _0x2b4d3e=_0x2471fa;UiUtil[_0x2b4d3e(0x229)](_0x2b4d3e(0x162),_0x2b4d3e(0x1f8),_0x2b4d3e(0xfd),_0x2b4d3e(0x1e5));};}static async['gristButtonHandler'](_0x51d231,_0x44d3d8,_0x5f178d){const _0x1173fa=a0_0x5752f7;let _0x443424=ValueUtil[_0x1173fa(0x17c)](_0x44d3d8,_0x1173fa(0x15e)),_0x577101=ValueUtil[_0x1173fa(0x17c)](_0x443424,_0x1173fa(0x157));if(_0x1173fa(0x18e)===_0x577101)_0x443424[_0x1173fa(0x21f)]=_0x1173fa(0x1f9),_0x443424[_0x1173fa(0x19c)]=_0x1173fa(0x1f1),_0x443424[_0x1173fa(0x15a)]='id',await MetaUiUtil[_0x1173fa(0x179)](_0x51d231,_0x443424,_0x5f178d);else{if(_0x1173fa(0x1f2)===_0x577101)MetaUiUtil[_0x1173fa(0x19f)](_0x51d231,_0x443424,_0x5f178d);else{if(_0x1173fa(0x108)===_0x577101){let _0x14b91b;_0x443424[_0x1173fa(0x227)]?(_0x14b91b={},Object[_0x1173fa(0x237)](_0x5f178d)[_0x1173fa(0x19e)](_0x431daf=>Object[_0x1173fa(0x237)](_0x443424[_0x1173fa(0x227)])[_0x1173fa(0x17e)](_0x431daf))['map'](_0x519f05=>{const _0x4caa9a=_0x1173fa;Object['keys'](_0x443424[_0x4caa9a(0x227)])[_0x4caa9a(0x17e)](_0x519f05)&&(_0x4caa9a(0x1e1)==typeof _0x5f178d[_0x519f05]?_0x14b91b[_0x443424[_0x4caa9a(0x227)][_0x519f05]]=_0x5f178d[_0x519f05]:_0x14b91b[_0x443424['param_field'][_0x519f05]]={'id':_0x5f178d[_0x519f05]['id']});})):_0x14b91b=_0x5f178d,UiUtil[_0x1173fa(0x135)](_0x443424[_0x1173fa(0x22c)],[_0x14b91b]);}else _0x1173fa(0x159)===_0x577101?await MetaUiUtil['commonButtonOpenPopup'](_0x51d231,_0x443424,_0x5f178d):'scenario'===_0x577101?await MetaUiUtil['commonButtonCallScenario'](_0x51d231,_0x443424,_0x5f178d):_0x1173fa(0x151)===_0x577101&&await MetaUiUtil[_0x1173fa(0x171)](_0x51d231,_0x443424,_0x5f178d);}}}static async[a0_0x5752f7(0x201)](_0x4adb59,_0xe490e){const _0x23274e=a0_0x5752f7;if(ValueUtil[_0x23274e(0x17f)](_0xe490e))return;let _0x4b4aff=_0x4adb59['grist'],_0x169b28=_0x4adb59[_0x23274e(0x112)],_0x4098fc=ValueUtil['getParams'](_0xe490e,_0x23274e(0x157)),_0x20000c=ValueUtil['getParams'](_0xe490e,_0x23274e(0x10b)),_0x443a99=_0x20000c[_0x23274e(0x19e)](_0x5bf735=>_0x5bf735['startsWith'](_0x23274e(0x149)));if(ValueUtil[_0x23274e(0x18d)](_0x443a99)){if(!_0x4b4aff)return void UiUtil[_0x23274e(0x229)](_0x23274e(0x1ba),'text.grid_is_not_exist',_0x23274e(0xfd),_0x23274e(0x1e5));if(0x0==(_0x4b4aff[_0x23274e(0x1c8)]?_0x4b4aff['data'][_0x23274e(0x1fc)]:[])[_0x23274e(0x102)])return void UiUtil[_0x23274e(0x229)](_0x23274e(0x1ba),_0x23274e(0x12d),_0x23274e(0xfd),'confirm');if(_0x20000c['includes'](_0x23274e(0x12c))||_0x20000c[_0x23274e(0x17e)]('grist_selected')){let _0x3b0037=_0x4b4aff[_0x23274e(0x11b)];if(ValueUtil[_0x23274e(0x17f)](_0x3b0037))return void UiUtil['showAlertPopup'](_0x23274e(0x194),_0x23274e(0x20b),_0x23274e(0xfd),'confirm');if(_0x20000c[_0x23274e(0x17e)](_0x23274e(0x12c))&&_0x3b0037['length']>0x1)return void UiUtil[_0x23274e(0x229)](_0x23274e(0x1ba),_0x23274e(0x213),_0x23274e(0xfd),_0x23274e(0x1e5));}}let _0x49e24c={};if(_0x20000c[_0x23274e(0x17e)]('filter')){if(!_0x169b28)return void UiUtil[_0x23274e(0x229)](_0x23274e(0x1ba),_0x23274e(0x22b),_0x23274e(0xfd),_0x23274e(0x1e5));let _0x518069=_0x169b28?await _0x169b28['getQueryFilters']():[];_0x49e24c[_0x23274e(0x19e)]=_0x518069;}if(_0x20000c[_0x23274e(0x17e)](_0x23274e(0x1b7)))_0x49e24c[_0x23274e(0x149)]=_0x4b4aff['data'][_0x23274e(0x1fc)];else{if(_0x20000c[_0x23274e(0x17e)](_0x23274e(0x12c)))_0x49e24c['grist']=_0x4b4aff[_0x23274e(0x11b)][0x0];else{if(_0x20000c['includes'](_0x23274e(0x14d)))_0x49e24c[_0x23274e(0x149)]=_0x4b4aff[_0x23274e(0x11b)];else{if(_0x20000c[_0x23274e(0x17e)](_0x23274e(0x1be))&&(_0x49e24c[_0x23274e(0x149)]=ServiceUtil[_0x23274e(0x1fd)](_0x4b4aff),!_0x49e24c[_0x23274e(0x149)]))return;}}}if(_0x23274e(0x108)===_0x4098fc){let _0x53a577,_0x57b2de=Array['isArray'](_0x49e24c[_0x23274e(0x149)])?_0x49e24c[_0x23274e(0x149)]:[_0x49e24c[_0x23274e(0x149)]];_0x53a577=_0xe490e[_0x23274e(0x227)]?_0x57b2de[_0x23274e(0x1d2)](_0x460d62=>{const _0x4fc7fd=_0x23274e;let _0x89139={};return Object['keys'](_0x460d62)['filter'](_0x1808e4=>Object[_0x4fc7fd(0x237)](_0xe490e[_0x4fc7fd(0x227)])['includes'](_0x1808e4))[_0x4fc7fd(0x1d2)](_0x49870a=>{const _0x32e1ad=_0x4fc7fd;Object['keys'](_0xe490e[_0x32e1ad(0x227)])[_0x32e1ad(0x17e)](_0x49870a)&&(_0x32e1ad(0x1e1)==typeof _0x460d62[_0x49870a]?_0x89139[_0xe490e[_0x32e1ad(0x227)][_0x49870a]]=_0x460d62[_0x49870a]:_0x89139[_0xe490e[_0x32e1ad(0x227)][_0x49870a]]={'id':_0x460d62[_0x49870a]['id']});}),_0x89139;}):_0x57b2de,UiUtil[_0x23274e(0x135)](_0xe490e['url'],_0x53a577);}else{if(_0x23274e(0x159)===_0x4098fc){let _0x1b8920={..._0x49e24c['grist']?_0x49e24c[_0x23274e(0x149)]:{},..._0x49e24c[_0x23274e(0x19e)]?_0x49e24c[_0x23274e(0x19e)]:{}};await MetaUiUtil[_0x23274e(0x179)](_0x4adb59,_0xe490e,_0x1b8920);}else'scenario'===_0x4098fc&&await MetaUiUtil[_0x23274e(0x1db)](_0x4adb59,_0xe490e,_0x49e24c);}}static[a0_0x5752f7(0x19f)](_0x326d02,_0x1a2545,_0x3fd24a){const _0x44f417=a0_0x5752f7;let _0x1d27bc=_0x1a2545[_0x44f417(0x222)],_0x67ceee={},_0x170670=_0x326d02[_0x44f417(0x193)]['toLowerCase'](),_0xfbe99c=_0x326d02;_0x67ceee=_0x170670['startsWith'](_0x44f417(0x1a5))?{'detail':{..._0x1d27bc}}:_0x170670['startsWith'](_0x44f417(0x1dd))?_0x326d02[_0x44f417(0x130)][_0x44f417(0x193)]['toLowerCase']()['startsWith'](_0x44f417(0x115))?{'detail':{..._0x1d27bc}}:{'self':{..._0x1d27bc}}:_0x1d27bc,Object[_0x44f417(0x237)](_0x67ceee)[_0x44f417(0x17b)](_0x5d40ca=>{const _0x108d65=_0x44f417;_0x108d65(0x1d3)==_0x5d40ca?_0xfbe99c=_0x326d02[_0x108d65(0x109)][_0x108d65(0x1ee)]:'detail'==_0x5d40ca?_0xfbe99c=_0x326d02[_0x108d65(0x109)]?_0x326d02[_0x108d65(0x109)]['detailElement']:_0x326d02['detailElement']:'self'==_0x5d40ca&&(_0xfbe99c=_0x326d02),Object[_0x108d65(0x237)](_0x67ceee[_0x5d40ca])[_0x108d65(0x17b)](_0x1082e5=>{const _0x17222a=_0x108d65;let _0x5d7da3=_0xfbe99c[_0x17222a(0x20c)][_0x17222a(0x228)]('#'+_0x1082e5);_0x3fd24a['id']&&_0x5d7da3[_0x17222a(0x12b)](_0x3fd24a['id']);let _0x53ff70=_0x67ceee[_0x5d40ca][_0x1082e5];Object[_0x17222a(0x237)](_0x53ff70)[_0x17222a(0x17b)](_0x119762=>{let _0x3b8576=_0x53ff70[_0x119762],_0xf6c667='*'===_0x3b8576?_0x3fd24a:_0x3fd24a[_0x3b8576];_0x5d7da3[_0x119762]=_0xf6c667;});});});}static async[a0_0x5752f7(0x179)](_0x1bc89f,_0x26f06b,_0x1e35ff){const _0x2671e5=a0_0x5752f7;let _0x43b681=TermsUtil[_0x2671e5(0x168)](_0x26f06b[_0x2671e5(0x167)]);ValueUtil[_0x2671e5(0x18d)](_0x26f06b[_0x2671e5(0x1d0)])&&(_0x43b681=_0x43b681+'('+ValueUtil['getParams'](_0x1e35ff,..._0x26f06b[_0x2671e5(0x1d0)][_0x2671e5(0x101)]('.'))+')');let _0x39bf10=_0x26f06b[_0x2671e5(0x141)]&&_0x2671e5(0x1e1)==typeof _0x26f06b[_0x2671e5(0x141)]&&'fetch'===_0x26f06b['after']&&_0x1bc89f&&_0x1bc89f[_0x2671e5(0x12e)]?_0x1bc89f[_0x2671e5(0x12e)][_0x2671e5(0x176)](_0x1bc89f):void 0x0;UiUtil[_0x2671e5(0x14a)](_0x43b681,_0x26f06b,_0x1e35ff,_0x39bf10);}static async[a0_0x5752f7(0x1db)](_0x2f1b21,_0x5b30af,_0x1c447e){const _0x50aa19=a0_0x5752f7;let _0x574353=await ServiceUtil[_0x50aa19(0x14b)](_0x50aa19(0x199),_0x5b30af['name'],_0x1c447e);if(!_0x574353['errors']&&!ValueUtil[_0x50aa19(0x17f)](_0x5b30af['after'])&&_0x5b30af[_0x50aa19(0x141)]){if(_0x50aa19(0x12e)!==_0x5b30af[_0x50aa19(0x141)]){if('object'==typeof _0x5b30af[_0x50aa19(0x141)]){let _0x59458c=_0x5b30af[_0x50aa19(0x141)],_0x52e015=ValueUtil['getParams'](_0x574353['data'][_0x50aa19(0x12f)][_0x50aa19(0x1c8)],..._0x59458c[_0x50aa19(0x10a)][_0x50aa19(0x101)]('.'));if(0x0==Array[_0x50aa19(0x118)](_0x52e015)&&(_0x52e015=[_0x52e015]),_0x50aa19(0x18e)===_0x59458c[_0x50aa19(0x157)])_0x59458c[_0x50aa19(0x21f)]=_0x50aa19(0x1f9),_0x59458c[_0x50aa19(0x19c)]=_0x50aa19(0x1f1),_0x59458c[_0x50aa19(0x15a)]='id',_0x52e015=_0x52e015[0x0],await MetaUiUtil[_0x50aa19(0x179)](_0x2f1b21,_0x59458c,_0x52e015);else{if(_0x50aa19(0x108)===_0x59458c['type']){let _0x36013f,_0x5df7c3=_0x52e015;_0x36013f=_0x59458c['param_field']?_0x5df7c3[_0x50aa19(0x1d2)](_0x50e7ed=>{const _0x12cc22=_0x50aa19;let _0x1b485c={};return Object[_0x12cc22(0x237)](_0x50e7ed)[_0x12cc22(0x19e)](_0x136adb=>Object[_0x12cc22(0x237)](_0x59458c['param_field'])[_0x12cc22(0x17e)](_0x136adb))[_0x12cc22(0x1d2)](_0x3681ce=>{const _0x168dbc=_0x12cc22;Object[_0x168dbc(0x237)](_0x59458c[_0x168dbc(0x227)])['includes'](_0x3681ce)&&(_0x168dbc(0x1e1)==typeof _0x50e7ed[_0x3681ce]?_0x1b485c[_0x59458c[_0x168dbc(0x227)][_0x3681ce]]=_0x50e7ed[_0x3681ce]:_0x1b485c[_0x59458c[_0x168dbc(0x227)][_0x3681ce]]={'id':_0x50e7ed[_0x3681ce]['id']});}),_0x1b485c;}):_0x5df7c3,UiUtil[_0x50aa19(0x135)](_0x59458c[_0x50aa19(0x22c)],_0x36013f);}else _0x50aa19(0x1f2)===_0x59458c['type']?(_0x52e015=_0x52e015[0x0],MetaUiUtil[_0x50aa19(0x19f)](_0x2f1b21,_0x59458c,_0x52e015)):_0x50aa19(0x159)===_0x59458c['type']?(_0x52e015=_0x52e015[0x0],await MetaUiUtil[_0x50aa19(0x179)](_0x2f1b21,_0x59458c,_0x52e015)):_0x50aa19(0x151)===_0x59458c['type']&&(_0x52e015=_0x52e015[0x0],await MetaUiUtil[_0x50aa19(0x171)](_0x2f1b21,_0x59458c,_0x52e015));}}}else _0x2f1b21['fetch']();}}static async[a0_0x5752f7(0x171)](_0x33f67f,_0x279a20,_0x124865){const _0x28ebac=a0_0x5752f7;for(let _0x19050c=0x0;_0x19050c<_0x279a20[_0x28ebac(0x170)][_0x28ebac(0x102)];_0x19050c++){let _0x31f249=_0x279a20['relation'][_0x19050c];!0x0===ValueUtil[_0x28ebac(0x100)](_0x31f249,_0x124865,Object[_0x28ebac(0x237)](_0x31f249)['filter'](_0x449928=>_0x28ebac(0x15e)!=_0x449928))&&await MetaUiUtil[_0x28ebac(0x19b)](_0x33f67f,_0x31f249,_0x124865);}}static[a0_0x5752f7(0x138)](_0x2e131f,_0x130bfb){return{'type':_0x2e131f,'name':_0x130bfb,'sortable':!0x1,'hidden':!0x0};}static[a0_0x5752f7(0x128)](_0xcef87e,_0x63a5dc,_0x3a4978,_0x18a788,_0x453eb1,_0x5940b7){const _0x327106=a0_0x5752f7;let _0x171ffc=TermsUtil['tLabel'](_0x63a5dc);return{'type':_0xcef87e,'name':_0x63a5dc,'header':_0x171ffc,'record':{'align':_0x3a4978,'editable':_0x18a788},'sortable':_0x453eb1,'width':_0x5940b7,'imex':{'width':Math[_0x327106(0x103)](_0x5940b7/0x6),'header':_0x171ffc,'type':_0xcef87e,'key':_0x63a5dc}};}static['getGristColumnConfig2'](_0x3f47c8,_0x4e3cb3,_0x5bf6c1,_0x29693d,_0x10893d,_0x4907ef,_0xebc3f0){const _0x24bda0=a0_0x5752f7;let _0x3fc15a=TermsUtil[_0x24bda0(0x11e)](_0x5bf6c1);return{'type':_0x3f47c8,'name':_0x4e3cb3,'header':_0x3fc15a,'record':{'align':_0x29693d,'editable':_0x10893d},'sortable':_0x4907ef,'width':_0xebc3f0,'imex':{'width':Math['floor'](_0xebc3f0/0x6),'header':_0x3fc15a,'type':_0x3f47c8,'key':_0x4e3cb3}};}static['getGristColumnConfig3'](_0x2f3fb5,_0x3083ce,_0x18a560,_0x1db72f,_0x3fe2de,_0x311d16,_0x4ba312,_0x5a0079){const _0x22c2ac=a0_0x5752f7;let _0x14b206=TermsUtil[_0x22c2ac(0x11e)](_0x18a560);return{'type':_0x2f3fb5,'name':_0x3083ce,'header':_0x14b206,'record':{'align':_0x1db72f,'editable':_0x3fe2de,'mandatory':_0x4ba312},'sortable':_0x311d16,'width':_0x5a0079,'imex':{'width':Math[_0x22c2ac(0x103)](_0x5a0079/0x6),'header':_0x14b206,'type':_0x2f3fb5,'key':_0x3083ce}};}static[a0_0x5752f7(0x160)](_0x309215,_0x7386b3,_0x12e847,_0x42c766,_0x3613b4,_0x24d24a,_0x4c0493){const _0x4ae5c9=a0_0x5752f7;let _0xb4663e=TermsUtil[_0x4ae5c9(0x11e)](_0x7386b3);return{'type':_0x4ae5c9(0x177),'name':_0x309215,'header':_0xb4663e,'record':{'align':_0x12e847,'editable':!0x0,'mandatory':_0x24d24a,'options':_0x4c0493},'sortable':_0x42c766,'width':_0x3613b4,'imex':{'width':Math[_0x4ae5c9(0x103)](_0x3613b4/0x6),'header':_0xb4663e,'type':_0x4ae5c9(0x1e1),'key':_0x309215}};}static async['getGristCodeSelectorColumnConfig'](_0x3ebce2,_0x4eae20,_0x26b68c,_0x577860,_0x4548cf,_0x87bb23,_0x2ba462){const _0x2ca5fa=a0_0x5752f7;let _0x59ec0c=await ServiceUtil[_0x2ca5fa(0x1de)](_0x2ba462);return MetaUiUtil[_0x2ca5fa(0x160)](_0x3ebce2,_0x4eae20,_0x26b68c,_0x577860,_0x4548cf,_0x87bb23,_0x59ec0c);}static[a0_0x5752f7(0x185)](_0x4dd995,_0x366dc0,_0x4d8497,_0x8605b8,_0x98af6d){const _0x398bcf=a0_0x5752f7;let _0x4be9df=TermsUtil['tLabel'](_0x4d8497),_0x358345={'name':_0x4dd995,'type':_0x366dc0,'label':_0x4be9df,'operator':_0x8605b8,'imex':{'width':0x10,'header':_0x4be9df,'type':_0x366dc0,'key':_0x4dd995}};return _0x98af6d&&(_0x358345[_0x398bcf(0x106)]=_0x98af6d),_0x358345;}static async['getGristSearchCodeColumnConfig'](_0x11f1c3,_0x2cc2dc,_0x218685,_0x60a002,_0x3d4242){const _0x2db137=a0_0x5752f7;let _0x396d8f=await ServiceUtil[_0x2db137(0x1de)](_0x3d4242);return MetaUiUtil[_0x2db137(0x185)](_0x11f1c3,_0x2cc2dc,_0x218685,_0x60a002,_0x396d8f);}static[a0_0x5752f7(0x1dc)](){return[css`
|
|
5
|
+
`,'variables':{'id':null}}))[_0x457431(0x299)])return;let _0x4aa24d=[{'name':_0x457431(0x2c4),'operator':'eq','value':_0xafc2af}],_0x3de029=await ServiceUtil[_0x457431(0x203)](_0x457431(0x2c5),_0x4aa24d,null,0x0,0x0,_0x457431(0x1bd));if(_0x3de029||0x0!=_0x3de029[_0x457431(0x251)]){let _0x24fd20=_0x3de029[_0x457431(0x26d)][0x0];if(!_0x24fd20[_0x457431(0x274)])throw new Error(TermsUtil[_0x457431(0x282)](_0x457431(0x227),{'value':TermsUtil[_0x457431(0x2bb)](_0x457431(0x20f))+'\x20'+TermsUtil[_0x457431(0x26f)](_0x457431(0x2b0))}));return this[_0x457431(0x216)]=_0x24fd20['id'],JSON[_0x457431(0x2e2)](MetaCrypto[_0x457431(0x2b8)](_0x24fd20[_0x457431(0x274)]));}throw new Error(TermsUtil[_0x457431(0x282)]('value_is_not_exist',{'value':TermsUtil[_0x457431(0x2bb)](_0x457431(0x20f))+'\x20'+_0xafc2af}));}static['getBasicGristPageProperties'](){return{'menuInfo':Object,'gridConfig':Object,'gridColumnConfig':Array,'formColumnConfig':Array,'buttonConfig':Array,'searchConfig':Array,'gqlInfo':String,'gqlFetchField':String,'searchFormElement':String,'useFilterForm':Boolean,'gristConfigSet':Object,'formConfigSet':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':!0x0,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x2dbe6e=>Boolean(_0x2dbe6e)},'is_popup':{'type':Boolean,'converter':_0x40ef40=>Boolean(_0x40ef40)},'is_activity':{'type':Boolean,'converter':_0xadf485=>Boolean(_0xadf485)},'is_readonly':{'type':Boolean,'converter':_0x263a06=>Boolean(_0x263a06)}};}static async[a0_0xec59e1(0x1de)](_0x4155e6){const _0x4415e0=a0_0xec59e1;if(0x0==store[_0x4415e0(0x1f6)]()[_0x4415e0(0x1e8)][_0x4415e0(0x28a)])return void document[_0x4415e0(0x249)](new CustomEvent(_0x4415e0(0x242),{'detail':{'level':_0x4415e0(0x1f9),'message':TermsUtil['tError']('invalid\x20license\x20key')}}));let _0x411519=_0x4155e6['isPage']?UiUtil['currentRouting']():_0x4155e6['route_name'];_0x4155e6[_0x4415e0(0x1d9)]=_0x411519;let _0x5664cf=await MetaUiUtil[_0x4415e0(0x28e)](_0x411519);return!0x0===_0x4155e6[_0x4415e0(0x255)]&&(_0x5664cf[_0x4415e0(0x2ee)][_0x4415e0(0x25c)]['use_row_checker']=!0x1,_0x5664cf['grid'][_0x4415e0(0x25c)][_0x4415e0(0x1cc)]=_0x4415e0(0x28d),_0x5664cf[_0x4415e0(0x2ee)][_0x4415e0(0x234)]=!0x1,_0x5664cf[_0x4415e0(0x2ee)][_0x4415e0(0x214)]=[],_0x5664cf['button']=_0x5664cf[_0x4415e0(0x214)][_0x4415e0(0x2e0)](_0x236132=>_0x4415e0(0x1dd)==_0x236132[_0x4415e0(0x2e1)])),!0x0===_0x4155e6[_0x4415e0(0x1ec)]&&(_0x5664cf[_0x4415e0(0x1f7)]['forEach'](_0x27b279=>{const _0x5e5bc0=_0x4415e0;_0x27b279[_0x5e5bc0(0x248)]=!0x1;}),_0x5664cf[_0x4415e0(0x214)]=_0x5664cf['button'][_0x4415e0(0x2e0)](_0x57a2ee=>_0x4415e0(0x1dd)!=_0x57a2ee[_0x4415e0(0x2e1)])),!0x1===_0x4155e6[_0x4415e0(0x234)]&&(_0x5664cf[_0x4415e0(0x2ee)][_0x4415e0(0x234)]=!0x1),_0x5664cf;}static[a0_0xec59e1(0x22f)](..._0x3ca42c){return{'pages':_0x3ca42c};}static[a0_0xec59e1(0x262)](_0x442ce2,_0x4559a6){const _0x4e0aa7=a0_0xec59e1;let _0x52f4e6=[{'type':_0x4e0aa7(0x254),'gutterName':_0x4e0aa7(0x2a9)},{'type':_0x4e0aa7(0x254),'gutterName':_0x4e0aa7(0x211)}];return _0x442ce2&&_0x52f4e6[_0x4e0aa7(0x1ba)]({'type':_0x4e0aa7(0x254),'gutterName':'row-selector','multiple':_0x4559a6}),_0x52f4e6;}static[a0_0xec59e1(0x263)](_0x1ad834){return{'selectable':{'multiple':_0x1ad834}};}static async['parseGridConfigSet'](_0x5f51d6){const _0x58ec10=a0_0xec59e1;let _0x284366=MetaUiUtil[_0x58ec10(0x2b6)](_0x5f51d6),_0x1760e3=MetaUiUtil[_0x58ec10(0x24f)](_0x5f51d6),_0x85eeaf=MetaUiUtil[_0x58ec10(0x1c7)](_0x5f51d6),_0x513060=MetaUiUtil[_0x58ec10(0x241)](_0x5f51d6),_0x2de87a=await MetaUiUtil[_0x58ec10(0x1b5)](_0x5f51d6),_0x42cbbc=MetaUiUtil[_0x58ec10(0x262)](_0x284366[_0x58ec10(0x1d2)],_0x85eeaf[_0x58ec10(0x233)]['multiple']);return 0x1==_0x5f51d6['useFilterForm']&&(_0x2de87a=MetaUiUtil[_0x58ec10(0x1cb)](_0x5f51d6,_0x2de87a)),{'list':_0x1760e3,'pagination':_0x284366[_0x58ec10(0x1cc)],'sorters':_0x284366[_0x58ec10(0x2d8)],'rows':_0x85eeaf,'columns':[..._0x42cbbc,..._0x513060,..._0x2de87a]};}static async[a0_0xec59e1(0x1b7)](_0x3a059d){const _0x591628=a0_0xec59e1;let _0x14ab14=_0x3a059d[_0x591628(0x205)],_0x5cf7c8=[];for(let _0x29fcc4=0x0;_0x29fcc4<_0x14ab14[_0x591628(0x251)];_0x29fcc4++){let {type:_0x345c07=_0x591628(0x2ae),name:_0x479c24,header:_0x43f2ec,hidden:_0x3d47e0=!0x1,editable:_0x582ac3=!0x0,mandatory:_0x50bab8=!0x1,align:_0x58477b=_0x591628(0x273),select_opt:_0x44c6a2,object_opt:_0x365a22}=_0x14ab14[_0x29fcc4],_0xbc3650={'type':_0x345c07,'name':_0x479c24,'header_txt':ValueUtil[_0x591628(0x292)](_0x43f2ec)?TermsUtil[_0x591628(0x26f)](_0x479c24):TermsUtil[_0x591628(0x26f)](_0x43f2ec),'header':{'renderer':function(_0x90bbc1){const _0x2749cb=_0x591628;return _0x90bbc1[_0x2749cb(0x2c8)];}},'hidden':_0x3d47e0,'record':{'editable':_0x582ac3,'mandatory':_0x50bab8,'align':_0x58477b,'classifier':function(){},'renderer':getRenderer(_0x345c07)}};_0x582ac3&&(_0xbc3650[_0x591628(0x269)][_0x591628(0x239)]=getEditor(_0x345c07)),_0x591628(0x297)===_0x345c07&&ValueUtil[_0x591628(0x272)](_0x44c6a2)&&(Array[_0x591628(0x1bf)](_0x44c6a2)?_0xbc3650[_0x591628(0x269)][_0x591628(0x1e2)]=_0x44c6a2:'code'===_0x44c6a2[_0x591628(0x244)]?_0xbc3650['record'][_0x591628(0x1e2)]=await ServiceUtil[_0x591628(0x270)](_0x44c6a2[_0x591628(0x2e1)]):_0x591628(0x2ea)===_0x44c6a2[_0x591628(0x244)]?_0xbc3650[_0x591628(0x269)][_0x591628(0x1e2)]=await ServiceUtil[_0x591628(0x2a8)](_0x44c6a2[_0x591628(0x2e1)],_0x44c6a2[_0x591628(0x27e)]):_0x591628(0x2a4)===_0x44c6a2[_0x591628(0x244)]&&(_0xbc3650[_0x591628(0x269)]['options']=await ServiceUtil[_0x591628(0x260)](_0x44c6a2[_0x591628(0x27e)]))),_0x591628(0x24b)!==_0x345c07&&_0x591628(0x245)!==_0x345c07||!ValueUtil['isNotEmpty'](_0x365a22)||(_0xbc3650[_0x591628(0x269)][_0x591628(0x1e2)]=_0x365a22),_0x5cf7c8[_0x591628(0x1ba)](_0xbc3650);}return _0x5cf7c8;}static[a0_0xec59e1(0x2b6)](_0x189cd5){const _0x49a1f0=a0_0xec59e1;let _0x356607=_0x189cd5[_0x49a1f0(0x1e1)];_0x189cd5[_0x49a1f0(0x2ad)]=!_0x356607||null==_0x356607['use_filter_form']||_0x356607[_0x49a1f0(0x234)];let {mobile_mode:_0x4a55c0='LIST',desk_mode:_0x42de39=_0x49a1f0(0x279),view_mode:_0x5dd569=[],use_row_checker:_0x2b8b35=!0x0,sorters:_0x21732a=[],pages:_0x35a599=[0x32,0x64,0x1f4,0x3e8]}=ValueUtil[_0x49a1f0(0x292)](_0x356607[_0x49a1f0(0x25c)])?{}:_0x356607[_0x49a1f0(0x25c)];return _0x49a1f0(0x28d)===_0x35a599||'-1'===_0x35a599?(_0x189cd5[_0x49a1f0(0x23d)]=!0x0,_0x35a599={'infinite':!0x0}):(_0x189cd5['infinityPage']=!0x1,_0x35a599[_0x49a1f0(0x1d1)](function(_0x176a13,_0x2d2444){return _0x176a13-_0x2d2444;}),_0x35a599={'pages':_0x35a599}),ValueUtil['isNotEmpty'](_0x5dd569)&&(0x1==_0x5dd569[_0x49a1f0(0x251)]?(_0x42de39=_0x5dd569[0x0],_0x4a55c0=_0x5dd569[0x0]):_0x5dd569['length']>=0x2&&(_0x5dd569[_0x49a1f0(0x286)](_0x4a55c0)||(_0x4a55c0=_0x5dd569[0x1]),_0x5dd569[_0x49a1f0(0x286)](_0x42de39)||(_0x42de39=_0x5dd569[0x0]))),_0x189cd5[_0x49a1f0(0x2af)]=_0x4a55c0,_0x189cd5[_0x49a1f0(0x278)]=_0x42de39,_0x189cd5[_0x49a1f0(0x2ec)]=_0x5dd569,_0x189cd5[_0x49a1f0(0x2c2)]=UiUtil[_0x49a1f0(0x246)]()?_0x189cd5[_0x49a1f0(0x2af)]:_0x189cd5[_0x49a1f0(0x278)],{'use_row_checker':_0x2b8b35,'sorters':_0x21732a,'pages':_0x35a599};}static[a0_0xec59e1(0x24f)](_0x6493ea){const _0x2b8707=a0_0xec59e1;let _0x2564c1={'fields':[ValueUtil[_0x2b8707(0x28c)](_0x6493ea['menuInfo'],_0x2b8707(0x2e1)),ValueUtil[_0x2b8707(0x28c)](_0x6493ea['menuInfo'],_0x2b8707(0x291))]};return _0x6493ea[_0x2b8707(0x1e1)][_0x2b8707(0x1cf)]&&Object[_0x2b8707(0x2bf)](_0x2564c1,_0x6493ea['gridConfig'][_0x2b8707(0x1cf)]),_0x2564c1;}static[a0_0xec59e1(0x1c7)](_0x4e9df2){const _0x1a173=a0_0xec59e1;let {multiple_select:_0x3428c6=!0x1,click:_0x5d2069}=ValueUtil[_0x1a173(0x292)](_0x4e9df2[_0x1a173(0x1e1)][_0x1a173(0x2a0)])?{}:_0x4e9df2[_0x1a173(0x1e1)][_0x1a173(0x2a0)],_0x562b55={'selectable':{'multiple':_0x3428c6},'appendable':_0x4e9df2[_0x1a173(0x237)]};return ValueUtil['isNotEmpty'](_0x5d2069)&&(_0x562b55[_0x1a173(0x1eb)]={'click':_0x5d2069}),_0x562b55;}static[a0_0xec59e1(0x241)](_0x34d75a){const _0x33e541=a0_0xec59e1;let _0x421804=_0x34d75a[_0x33e541(0x1e1)][_0x33e541(0x214)];return ValueUtil[_0x33e541(0x292)](_0x421804)?[]:_0x421804[_0x33e541(0x1ff)](_0x4bb58d=>{const _0x50b05c=_0x33e541;let _0x3c30c5={'type':_0x50b05c(0x254),'gutterName':'button'};if(ValueUtil[_0x50b05c(0x272)](_0x4bb58d[_0x50b05c(0x2a3)])&&(Array[_0x50b05c(0x1bf)](_0x4bb58d[_0x50b05c(0x2a3)])?_0x3c30c5[_0x50b05c(0x2a3)]=_0x5efa19=>{const _0x226c42=_0x50b05c;if(ValueUtil[_0x226c42(0x272)](_0x5efa19))for(let _0x32c480=0x0;_0x32c480<_0x4bb58d[_0x226c42(0x2a3)]['length'];_0x32c480++){let _0x583355=_0x4bb58d[_0x226c42(0x2a3)][_0x32c480];if(!0x0===ValueUtil[_0x226c42(0x202)](_0x583355,_0x5efa19,Object[_0x226c42(0x2b7)](_0x583355)[_0x226c42(0x2e0)](_0x4ba7b4=>'icon'!=_0x4ba7b4)))return _0x583355[_0x226c42(0x2a3)];}}:_0x3c30c5[_0x50b05c(0x2a3)]=_0x4bb58d[_0x50b05c(0x2a3)]),ValueUtil[_0x50b05c(0x272)](_0x4bb58d['name'])&&(_0x3c30c5[_0x50b05c(0x2e1)]=_0x4bb58d[_0x50b05c(0x2e1)]),ValueUtil['isNotEmpty'](_0x4bb58d['label'])&&(_0x3c30c5[_0x50b05c(0x259)]=TermsUtil[_0x50b05c(0x2b1)](_0x4bb58d[_0x50b05c(0x1f5)])),_0x50b05c(0x29b)===_0x4bb58d[_0x50b05c(0x244)]){let _0xb17eaa=ValueUtil[_0x50b05c(0x28c)](_0x4bb58d,'logic');[_0x50b05c(0x256),_0x50b05c(0x1bb)][_0x50b05c(0x286)](_0xb17eaa)?_0x3c30c5[_0x50b05c(0x1eb)]={'click':(_0x2ba50e,_0x4a5368,_0x6e01a8,_0x282648,_0x28bb1a)=>{const _0x32f072=_0x50b05c;if(_0x282648['id']){let _0x2e3568={'title':_0x32f072(0x20b),'type':_0x32f072(0x1b2),'tagname':_0x32f072(0x256)==_0xb17eaa?_0x32f072(0x1b3):_0x32f072(0x1be),'location':_0x32f072(0x256)==_0xb17eaa?'pages/hgistory/history-copy-list-popup.js':_0x32f072(0x1c6),'menu':_0x34d75a[_0x32f072(0x1d9)],'size':'large','popup_field':'open_param','parent_field':'id'},_0x2a172a={..._0x282648,'gqlFunc':ValueUtil['getParams'](_0x34d75a[_0x32f072(0x222)],'query',_0x32f072(0x25e)),'gristConfig':JSON['parse'](JSON[_0x32f072(0x1d6)](_0x34d75a[_0x32f072(0x2dd)][_0x32f072(0x277)]))};MetaUiUtil[_0x32f072(0x243)](_0x34d75a,{'logic':_0x2e3568},_0x2a172a);}}}:_0x3c30c5['handlers']={'click':_0xb17eaa};}else _0x3c30c5[_0x50b05c(0x1eb)]={'click':(_0x36eee0,_0x277103,_0x1be540,_0x17c7f7,_0x27a2f1)=>{_0x17c7f7['id']&&MetaUiUtil['gristButtonHandler'](_0x34d75a,_0x4bb58d,_0x17c7f7);}};return _0x3c30c5;});}static async[a0_0xec59e1(0x1b5)](_0x492ed2){const _0x328074=a0_0xec59e1;let _0x106590=_0x492ed2[_0x328074(0x201)];if(ValueUtil[_0x328074(0x292)](_0x106590))return[];let _0x1dde0d=[];for(let _0xc59e12=0x0;_0xc59e12<_0x106590[_0x328074(0x251)];_0xc59e12++){let {type:_0x3c97d8=_0x328074(0x2ae),name:_0x1c531e,header:_0x4d0335,hidden:_0x5e8821=!0x1,editable:_0x2ec3db=!0x0,mandatory:_0x577671=!0x1,sortable:_0xcc9ea8=!0x1,align:_0x42ebee='left',width:_0x4ab49e=0x0,exportable:_0x55e1b5=!0x1,select_opt:_0x2df45b,object_opt:_0x4d1865}=_0x106590[_0xc59e12],_0x5c073c={'type':_0x3c97d8,'name':_0x1c531e,'header':ValueUtil[_0x328074(0x292)](_0x4d0335)?'':TermsUtil[_0x328074(0x26f)](_0x4d0335),'hidden':_0x5e8821,'sortable':_0xcc9ea8,'width':_0x4ab49e,'record':{'editable':_0x2ec3db,'mandatory':_0x577671,'align':_0x42ebee}};if(_0x328074(0x297)===_0x3c97d8&&ValueUtil[_0x328074(0x272)](_0x2df45b))Array['isArray'](_0x2df45b)?_0x5c073c['record'][_0x328074(0x1e2)]=_0x2df45b:_0x328074(0x29d)===_0x2df45b['type']?_0x5c073c[_0x328074(0x269)][_0x328074(0x1e2)]=await ServiceUtil['getCodeSelectorData'](_0x2df45b['name']):'scenario'===_0x2df45b[_0x328074(0x244)]?_0x5c073c[_0x328074(0x269)][_0x328074(0x1e2)]=await ServiceUtil[_0x328074(0x2a8)](_0x2df45b[_0x328074(0x2e1)],_0x2df45b[_0x328074(0x27e)]):_0x328074(0x2a4)===_0x2df45b[_0x328074(0x244)]&&(_0x5c073c[_0x328074(0x269)]['options']=await ServiceUtil['getCodeByEntity'](_0x2df45b[_0x328074(0x27e)]));else{if((_0x328074(0x24b)===_0x3c97d8||_0x328074(0x245)===_0x3c97d8)&&ValueUtil[_0x328074(0x272)](_0x4d1865)){let _0x484e5b;_0x4d1865['select']&&_0x4d1865[_0x328074(0x297)]['forEach'](_0x174ebe=>{const _0xab7448=_0x328074;_0x174ebe[_0xab7448(0x2a2)]||(_0x174ebe['header']=_0x174ebe[_0xab7448(0x2e1)]),_0x174ebe[_0xab7448(0x2a2)]=TermsUtil[_0xab7448(0x26f)](_0x174ebe[_0xab7448(0x2a2)]);}),_0x5c073c[_0x328074(0x269)][_0x328074(0x1e2)]={..._0x4d1865},_0x4d1865[_0x328074(0x268)]&&_0x4d1865[_0x328074(0x268)][_0x328074(0x1d0)]&&(_0x484e5b=[..._0x4d1865['basicArgs']['filters']]),_0x484e5b&&JSON[_0x328074(0x1d6)](_0x484e5b)['includes']('::')&&(_0x5c073c[_0x328074(0x1eb)]={'dblclick':(_0x4300dd,_0x583ee6,_0x5a2b9a,_0x1fca13,_0x3f4b3d)=>{const _0x2c354e=_0x328074;let _0x1e150f=[];_0x484e5b[_0x2c354e(0x1b6)](_0x597ebc=>{const _0x120355=_0x2c354e;var {name:_0x4e213c,value:_0x32d7fc,operator:_0x223933='eq'}=_0x597ebc;_0x32d7fc[_0x120355(0x286)]('::')&&(_0x32d7fc=ValueUtil[_0x120355(0x28c)](_0x1fca13,..._0x32d7fc['replace']('::','')[_0x120355(0x1e5)]('.'))),_0x32d7fc||(_0x32d7fc=''),_0x1e150f['push']({'name':_0x4e213c,'operator':_0x223933,'value':_0x32d7fc});}),_0x5a2b9a[_0x2c354e(0x269)]['options'][_0x2c354e(0x268)][_0x2c354e(0x1d0)]=_0x1e150f;}});}}!0x0===_0x492ed2[_0x328074(0x2da)]&&!0x0===_0x55e1b5&&(_0x5c073c[_0x328074(0x2b4)]={'header':_0x5c073c[_0x328074(0x2a2)],'key':_0x5c073c[_0x328074(0x2e1)],'width':_0x5c073c[_0x328074(0x1b9)]/0x6,'type':_0x5c073c[_0x328074(0x244)]}),_0x1dde0d[_0x328074(0x1ba)](_0x5c073c);}if(!0x0!==this[_0x328074(0x255)])return _0x1dde0d;let _0x3ce3d6=await MetaApi[_0x328074(0x1fa)](this[_0x328074(0x216)]),{template:_0x50212f={}}=_0x3ce3d6;if(!_0x50212f[_0x328074(0x22d)])return _0x1dde0d;let _0x431e6b=_0x50212f[_0x328074(0x22d)];return _0x1dde0d=_0x1dde0d[_0x328074(0x1ff)](_0x18de11=>('id'==_0x18de11['name']||(_0x18de11[_0x328074(0x21b)]=!_0x431e6b[_0x328074(0x286)](_0x18de11[_0x328074(0x2e1)]),_0x18de11['rank']=_0x431e6b['indexOf'](_0x18de11[_0x328074(0x2e1)]),-0x1==_0x18de11[_0x328074(0x2b2)]&&(_0x18de11[_0x328074(0x2b2)]=0x1869f)),_0x18de11)),_0x1dde0d[_0x328074(0x1d1)]((_0x4dc12a,_0xb42eaf)=>_0x4dc12a[_0x328074(0x2b2)]-_0xb42eaf[_0x328074(0x2b2)]),_0x1dde0d;}static['setGridColumnSearchOption'](_0x2f9081,_0x4028fd){const _0x314de7=a0_0xec59e1;let _0x59c1e3=_0x2f9081[_0x314de7(0x1b1)];return _0x59c1e3&&_0x59c1e3[_0x314de7(0x1b6)](_0x2ff5e3=>{const _0x2ad812=_0x314de7;'string'==typeof _0x2ff5e3?_0x4028fd[_0x2ad812(0x2e0)](_0x128874=>_0x128874[_0x2ad812(0x2e1)]==_0x2ff5e3)[_0x2ad812(0x1b6)](_0x5a9d2a=>{const _0x3724fb=_0x2ad812;_0x5a9d2a['filter']=_0x3724fb(0x293);}):'object'==typeof _0x2ff5e3&&_0x4028fd['filter'](_0x10df03=>_0x10df03[_0x2ad812(0x2e1)]==_0x2ff5e3[_0x2ad812(0x2e1)])[_0x2ad812(0x1b6)](_0x1dad0f=>{const _0x20fecd=_0x2ad812;_0x1dad0f[_0x20fecd(0x2e0)]=_0x2ff5e3;let _0x21171c=_0x1dad0f['filter'][_0x20fecd(0x1ef)];if(_0x21171c&&_0x21171c[_0x20fecd(0x2be)](_0x20fecd(0x228))){const _0xf241fe=a0_0x59defa();let _0x1a2a93=_0x21171c['split'](','),_0x3f8974=[];_0x1a2a93[_0x20fecd(0x1b6)](_0x3d724e=>{const _0x39c9c0=_0x20fecd;_0x39c9c0(0x228)==_0x3d724e?_0x3f8974[_0x39c9c0(0x1ba)](_0xf241fe[_0x39c9c0(0x2b5)]('YYYY-MM-DD')):_0x3d724e['includes']('-')?_0x3f8974[_0x39c9c0(0x1ba)](_0xf241fe[_0x39c9c0(0x20e)](_0x3d724e[_0x39c9c0(0x1e5)]('-')[0x1],_0x39c9c0(0x281))[_0x39c9c0(0x2b5)]('YYYY-MM-DD')):_0x3d724e['includes']('+')&&_0x3f8974['push'](_0xf241fe[_0x39c9c0(0x1dd)](_0x3d724e[_0x39c9c0(0x1e5)]('+')[0x1],_0x39c9c0(0x281))[_0x39c9c0(0x2b5)]('YYYY-MM-DD'));}),_0x1dad0f[_0x20fecd(0x2e0)][_0x20fecd(0x1ef)]=0x1==_0x3f8974[_0x20fecd(0x251)]?_0x3f8974[0x0]:_0x3f8974;}});}),_0x4028fd;}static[a0_0xec59e1(0x2cc)](_0x39735e){const _0x4231c1=a0_0xec59e1;let _0x27ff47={'title':TermsUtil['tTitle'](_0x39735e['menuInfo'][_0x4231c1(0x259)]),'help':_0x39735e[_0x4231c1(0x2bd)]['help']||'','actions':[...MetaUiUtil['getContextButtons'](_0x39735e)]};return _0x39735e[_0x4231c1(0x2da)]&&(_0x27ff47['exportable']={'name':_0x27ff47[_0x4231c1(0x259)],'data':_0x39735e['export'][_0x4231c1(0x232)](_0x39735e)}),_0x39735e[_0x4231c1(0x27f)]&&(_0x27ff47[_0x4231c1(0x250)]={'handler':_0x39735e[_0x4231c1(0x1ae)][_0x4231c1(0x232)](_0x39735e)}),_0x27ff47;}static[a0_0xec59e1(0x1c3)](_0x3f7a33){const _0x5303e3=a0_0xec59e1;let _0x4a90c7=_0x3f7a33[_0x5303e3(0x1e6)];return ValueUtil[_0x5303e3(0x292)](_0x4a90c7)?[]:_0x4a90c7['filter'](_0x4159e6=>'export'!=_0x4159e6[_0x5303e3(0x2e1)]&&'import'!=_0x4159e6['name']&&_0x5303e3(0x1dd)!=_0x4159e6[_0x5303e3(0x2e1)])['map'](_0x123108=>{const _0x56a398=_0x5303e3;let {name:_0x13b35b,label:_0x1c0039,style:_0x42b155,type:_0x53b7ce=_0x56a398(0x29b),action:_0x96fafe,logic:_0x1cee20}=_0x123108;if(ValueUtil[_0x56a398(0x292)](_0x13b35b))return{'title':'-1'};ValueUtil['isEmpty'](_0x1c0039)&&(_0x1c0039=_0x13b35b),ValueUtil[_0x56a398(0x292)](_0x42b155)&&(_0x42b155=_0x13b35b),ValueUtil[_0x56a398(0x292)](_0x96fafe)&&(_0x96fafe=_0x13b35b);let _0x574824=ValueUtil[_0x56a398(0x272)](_0x42b155)?CommonButtonStyles[_0x42b155]||{'icon':_0x42b155,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}}:{};return{'title':TermsUtil[_0x56a398(0x2b1)](_0x1c0039),'action':MetaUiUtil[_0x56a398(0x287)](_0x3f7a33,_0x53b7ce,_0x96fafe,_0x1cee20),..._0x574824};})[_0x5303e3(0x2e0)](_0x19f572=>'-1'!=_0x19f572[_0x5303e3(0x259)]);}static[a0_0xec59e1(0x1ca)](_0x2b17de){const _0x10f8cb=a0_0xec59e1;let _0x27a88e=_0x2b17de&&_0x2b17de['buttonConfig']?_0x2b17de[_0x10f8cb(0x1e6)]:null;return _0x27a88e?_0x27a88e['filter'](_0x58263a=>_0x10f8cb(0x1dd)!=_0x58263a[_0x10f8cb(0x2e1)])['map'](_0x2f7da6=>{const _0x36982e=_0x10f8cb;let {name:_0x1190a5,label:_0x34a0c5,style:_0x537167,type:_0x1828c9=_0x36982e(0x29b),action:_0x26a731,logic:_0x46e887}=_0x2f7da6;ValueUtil[_0x36982e(0x292)](_0x34a0c5)&&(_0x34a0c5=_0x1190a5),ValueUtil['isEmpty'](_0x537167)&&(_0x537167=_0x1190a5),ValueUtil[_0x36982e(0x292)](_0x26a731)&&(_0x26a731=_0x1190a5);let _0x18626f=MetaUiUtil[_0x36982e(0x231)](TermsUtil[_0x36982e(0x2b1)](_0x34a0c5),_0x537167);return _0x18626f['onclick']=MetaUiUtil[_0x36982e(0x287)](_0x2b17de,_0x1828c9,_0x26a731,_0x46e887),_0x18626f;}):[];}static['createButtonElement'](_0x49f7f2,_0xf60af7){const _0x49b832=a0_0xec59e1;let _0x26be7d=CommonButtonStyles[_0xf60af7]||{'icon':_0xf60af7,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}},_0x1f4fc1='<mwc-button\x20label=\x22'+_0x49f7f2+_0x49b832(0x225)+(_0x26be7d[_0x49b832(0x2a3)]?_0x26be7d[_0x49b832(0x2a3)]:'')+_0x49b832(0x22c)+(_0x26be7d[_0x49b832(0x21a)]['raised']?_0x49b832(0x200):'')+_0x49b832(0x2c1)+(_0x26be7d[_0x49b832(0x21a)][_0x49b832(0x20d)]?'outlined':'')+_0x49b832(0x2c1)+(_0x26be7d[_0x49b832(0x21a)]['dense']?'dense':'')+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x26be7d[_0x49b832(0x21a)][_0x49b832(0x23c)]?_0x49b832(0x23c):'')+_0x49b832(0x2d3);return UiUtil[_0x49b832(0x2d6)](_0x1f4fc1);}static['getButtonActionHandler'](_0x1f22a4,_0x4e93d8,_0x264cbc,_0x50d598){const _0x43f51f=a0_0xec59e1;if(_0x43f51f(0x29b)==_0x4e93d8){if(_0x1f22a4[_0x264cbc])return _0x1f22a4[_0x264cbc]['bind'](_0x1f22a4);}else{if(_0x43f51f(0x296)==_0x4e93d8)return()=>MetaUiUtil[_0x43f51f(0x2df)](_0x1f22a4,_0x50d598);}return()=>{const _0x2c7c0f=_0x43f51f;UiUtil[_0x2c7c0f(0x2c9)](_0x2c7c0f(0x240),'text.button_bind_func_is_not_exist',_0x2c7c0f(0x1dc),_0x2c7c0f(0x294));};}static async[a0_0xec59e1(0x243)](_0x263753,_0xb032a9,_0x1f7bc5){const _0x491ec4=a0_0xec59e1;let _0x58e9d5=ValueUtil[_0x491ec4(0x28c)](_0xb032a9,_0x491ec4(0x1d8)),_0x53cad7=ValueUtil[_0x491ec4(0x28c)](_0x58e9d5,'type');if('form'===_0x53cad7)_0x58e9d5[_0x491ec4(0x283)]=_0x491ec4(0x23b),_0x58e9d5[_0x491ec4(0x2c0)]=_0x491ec4(0x1e0),_0x58e9d5[_0x491ec4(0x21f)]='id',await MetaUiUtil[_0x491ec4(0x1ee)](_0x263753,_0x58e9d5,_0x1f7bc5);else{if(_0x491ec4(0x2d2)===_0x53cad7)MetaUiUtil[_0x491ec4(0x2a6)](_0x263753,_0x58e9d5,_0x1f7bc5);else{if(_0x491ec4(0x2ed)===_0x53cad7){let _0x426afd;_0x58e9d5['param_field']?(_0x426afd={},Object[_0x491ec4(0x2b7)](_0x1f7bc5)[_0x491ec4(0x2e0)](_0x5e14c0=>Object[_0x491ec4(0x2b7)](_0x58e9d5[_0x491ec4(0x252)])[_0x491ec4(0x286)](_0x5e14c0))[_0x491ec4(0x1ff)](_0x401ac8=>{const _0xc3a3a9=_0x491ec4;Object[_0xc3a3a9(0x2b7)](_0x58e9d5[_0xc3a3a9(0x252)])[_0xc3a3a9(0x286)](_0x401ac8)&&(_0xc3a3a9(0x2ae)==typeof _0x1f7bc5[_0x401ac8]?_0x426afd[_0x58e9d5['param_field'][_0x401ac8]]=_0x1f7bc5[_0x401ac8]:_0x426afd[_0x58e9d5['param_field'][_0x401ac8]]={'id':_0x1f7bc5[_0x401ac8]['id']});})):_0x426afd=_0x1f7bc5,UiUtil[_0x491ec4(0x1e9)](_0x58e9d5[_0x491ec4(0x2b3)],[_0x426afd]);}else'popup'===_0x53cad7?await MetaUiUtil[_0x491ec4(0x1ee)](_0x263753,_0x58e9d5,_0x1f7bc5):'scenario'===_0x53cad7?await MetaUiUtil[_0x491ec4(0x1f8)](_0x263753,_0x58e9d5,_0x1f7bc5):_0x491ec4(0x1cd)===_0x53cad7&&await MetaUiUtil[_0x491ec4(0x1e3)](_0x263753,_0x58e9d5,_0x1f7bc5);}}}static async['customButtonHandler'](_0x543a6d,_0x3e02e5){const _0x2fb820=a0_0xec59e1;if(ValueUtil[_0x2fb820(0x292)](_0x3e02e5))return;let _0x3c6945=_0x543a6d[_0x2fb820(0x2dd)],_0x43fe42=_0x543a6d[_0x2fb820(0x24a)],_0x46d9ae=ValueUtil[_0x2fb820(0x28c)](_0x3e02e5,_0x2fb820(0x244)),_0x44c3cc=ValueUtil[_0x2fb820(0x28c)](_0x3e02e5,'param'),_0x3911c9=_0x44c3cc[_0x2fb820(0x2e0)](_0x32f7fd=>_0x32f7fd[_0x2fb820(0x2be)](_0x2fb820(0x2dd)));if(ValueUtil[_0x2fb820(0x272)](_0x3911c9)){if(!_0x3c6945)return void UiUtil[_0x2fb820(0x2c9)](_0x2fb820(0x24c),_0x2fb820(0x226),_0x2fb820(0x1dc),_0x2fb820(0x294));if(0x0==(_0x3c6945['data']?_0x3c6945[_0x2fb820(0x27d)][_0x2fb820(0x26d)]:[])[_0x2fb820(0x251)])return void UiUtil[_0x2fb820(0x2c9)]('title.info',_0x2fb820(0x298),'info',_0x2fb820(0x294));if(_0x44c3cc[_0x2fb820(0x286)]('grist_one')||_0x44c3cc[_0x2fb820(0x286)](_0x2fb820(0x1da))){let _0x3c8638=_0x3c6945[_0x2fb820(0x27b)];if(ValueUtil[_0x2fb820(0x292)](_0x3c8638))return void UiUtil[_0x2fb820(0x2c9)](_0x2fb820(0x2d4),_0x2fb820(0x236),'info',_0x2fb820(0x294));if(_0x44c3cc[_0x2fb820(0x286)]('grist_one')&&_0x3c8638[_0x2fb820(0x251)]>0x1)return void UiUtil['showAlertPopup']('title.info',_0x2fb820(0x1b0),_0x2fb820(0x1dc),_0x2fb820(0x294));}}let _0x219e24={};if(_0x44c3cc[_0x2fb820(0x286)]('filter')){if(!_0x43fe42)return void UiUtil[_0x2fb820(0x2c9)](_0x2fb820(0x24c),_0x2fb820(0x26a),_0x2fb820(0x1dc),_0x2fb820(0x294));let _0x489152=_0x43fe42?await _0x43fe42[_0x2fb820(0x2de)]():[];_0x219e24[_0x2fb820(0x2e0)]=_0x489152;}if(_0x44c3cc[_0x2fb820(0x286)](_0x2fb820(0x288)))_0x219e24['grist']=_0x3c6945['data'][_0x2fb820(0x26d)];else{if(_0x44c3cc['includes'](_0x2fb820(0x20a)))_0x219e24['grist']=_0x3c6945[_0x2fb820(0x27b)][0x0];else{if(_0x44c3cc[_0x2fb820(0x286)](_0x2fb820(0x1da)))_0x219e24[_0x2fb820(0x2dd)]=_0x3c6945[_0x2fb820(0x27b)];else{if(_0x44c3cc[_0x2fb820(0x286)](_0x2fb820(0x208))&&(_0x219e24['grist']=ServiceUtil[_0x2fb820(0x210)](_0x3c6945),!_0x219e24['grist']))return;}}}if(_0x2fb820(0x2ed)===_0x46d9ae){let _0x4a8262,_0x2819f8=Array[_0x2fb820(0x1bf)](_0x219e24[_0x2fb820(0x2dd)])?_0x219e24[_0x2fb820(0x2dd)]:[_0x219e24[_0x2fb820(0x2dd)]];_0x4a8262=_0x3e02e5[_0x2fb820(0x252)]?_0x2819f8[_0x2fb820(0x1ff)](_0x408aca=>{const _0x43a85c=_0x2fb820;let _0x9481e2={};return Object['keys'](_0x408aca)[_0x43a85c(0x2e0)](_0x137a14=>Object['keys'](_0x3e02e5[_0x43a85c(0x252)])[_0x43a85c(0x286)](_0x137a14))[_0x43a85c(0x1ff)](_0x3c97bb=>{const _0x3582c7=_0x43a85c;Object[_0x3582c7(0x2b7)](_0x3e02e5[_0x3582c7(0x252)])[_0x3582c7(0x286)](_0x3c97bb)&&(_0x3582c7(0x2ae)==typeof _0x408aca[_0x3c97bb]?_0x9481e2[_0x3e02e5['param_field'][_0x3c97bb]]=_0x408aca[_0x3c97bb]:_0x9481e2[_0x3e02e5[_0x3582c7(0x252)][_0x3c97bb]]={'id':_0x408aca[_0x3c97bb]['id']});}),_0x9481e2;}):_0x2819f8,UiUtil['pageNavigate'](_0x3e02e5[_0x2fb820(0x2b3)],_0x4a8262);}else{if(_0x2fb820(0x1b2)===_0x46d9ae){let _0x20681b={..._0x219e24[_0x2fb820(0x2dd)]?_0x219e24['grist']:{},..._0x219e24[_0x2fb820(0x2e0)]?_0x219e24[_0x2fb820(0x2e0)]:{}};await MetaUiUtil[_0x2fb820(0x1ee)](_0x543a6d,_0x3e02e5,_0x20681b);}else'scenario'===_0x46d9ae&&await MetaUiUtil[_0x2fb820(0x1f8)](_0x543a6d,_0x3e02e5,_0x219e24);}}static[a0_0xec59e1(0x2a6)](_0x4359fb,_0x62d60e,_0x5218b5){const _0x152534=a0_0xec59e1;let _0x1a25d2=_0x62d60e[_0x152534(0x2e8)],_0x4b356c={},_0x51cc28=_0x4359fb[_0x152534(0x258)][_0x152534(0x1c0)](),_0x112754=_0x4359fb;_0x4b356c=_0x51cc28[_0x152534(0x2be)](_0x152534(0x2d7))?{'detail':{..._0x1a25d2}}:_0x51cc28[_0x152534(0x2be)](_0x152534(0x28f))?_0x4359fb[_0x152534(0x2ac)][_0x152534(0x258)]['toLowerCase']()[_0x152534(0x2be)]('meta-tab-')?{'detail':{..._0x1a25d2}}:{'self':{..._0x1a25d2}}:_0x1a25d2,Object[_0x152534(0x2b7)](_0x4b356c)[_0x152534(0x1b6)](_0x388ef2=>{const _0xb0bb50=_0x152534;_0xb0bb50(0x22d)==_0x388ef2?_0x112754=_0x4359fb[_0xb0bb50(0x261)][_0xb0bb50(0x266)]:_0xb0bb50(0x284)==_0x388ef2?_0x112754=_0x4359fb[_0xb0bb50(0x261)]?_0x4359fb[_0xb0bb50(0x261)][_0xb0bb50(0x2ac)]:_0x4359fb[_0xb0bb50(0x2ac)]:_0xb0bb50(0x24d)==_0x388ef2&&(_0x112754=_0x4359fb),Object[_0xb0bb50(0x2b7)](_0x4b356c[_0x388ef2])['forEach'](_0x48d4b0=>{const _0x2984f1=_0xb0bb50;let _0x4595f4=_0x112754[_0x2984f1(0x2a1)]['querySelector']('#'+_0x48d4b0);_0x5218b5['id']&&_0x4595f4[_0x2984f1(0x217)](_0x5218b5['id']);let _0x2c40ec=_0x4b356c[_0x388ef2][_0x48d4b0];Object[_0x2984f1(0x2b7)](_0x2c40ec)[_0x2984f1(0x1b6)](_0x131851=>{let _0x15d258=_0x2c40ec[_0x131851],_0x3462cf='*'===_0x15d258?_0x5218b5:_0x5218b5[_0x15d258];_0x4595f4[_0x131851]=_0x3462cf;});});});}static async['commonButtonOpenPopup'](_0x5825fb,_0x4791c3,_0x53a8e1){const _0x131160=a0_0xec59e1;let _0x3958f9=TermsUtil[_0x131160(0x2ca)](_0x4791c3[_0x131160(0x259)]);ValueUtil[_0x131160(0x272)](_0x4791c3[_0x131160(0x1d5)])&&(_0x3958f9=_0x3958f9+'('+ValueUtil[_0x131160(0x28c)](_0x53a8e1,..._0x4791c3[_0x131160(0x1d5)][_0x131160(0x1e5)]('.'))+')');let _0x5b4031=_0x4791c3[_0x131160(0x235)]&&_0x131160(0x2ae)==typeof _0x4791c3['after']&&_0x131160(0x1ce)===_0x4791c3[_0x131160(0x235)]&&_0x5825fb&&_0x5825fb[_0x131160(0x1ce)]?_0x5825fb['fetch']['bind'](_0x5825fb):void 0x0;UiUtil[_0x131160(0x1fb)](_0x3958f9,_0x4791c3,_0x53a8e1,_0x5b4031);}static async[a0_0xec59e1(0x1f8)](_0xe15da6,_0x3b0605,_0x35b805){const _0x37d028=a0_0xec59e1;let _0x18a04a=await ServiceUtil[_0x37d028(0x1af)](_0x37d028(0x1db),_0x3b0605['name'],_0x35b805);if(!_0x18a04a['errors']&&!ValueUtil[_0x37d028(0x292)](_0x3b0605[_0x37d028(0x235)])&&_0x3b0605[_0x37d028(0x235)]){if('fetch'!==_0x3b0605[_0x37d028(0x235)]){if(_0x37d028(0x24b)==typeof _0x3b0605[_0x37d028(0x235)]){let _0x28f32b=_0x3b0605[_0x37d028(0x235)],_0xdc1ae3=ValueUtil[_0x37d028(0x28c)](_0x18a04a['data']['runScenario']['data'],..._0x28f32b[_0x37d028(0x25a)][_0x37d028(0x1e5)]('.'));if(0x0==Array[_0x37d028(0x1bf)](_0xdc1ae3)&&(_0xdc1ae3=[_0xdc1ae3]),_0x37d028(0x21d)===_0x28f32b[_0x37d028(0x244)])_0x28f32b[_0x37d028(0x283)]='meta-form-element',_0x28f32b[_0x37d028(0x2c0)]='pages/meta-form-element.js',_0x28f32b['parent_field']='id',_0xdc1ae3=_0xdc1ae3[0x0],await MetaUiUtil['commonButtonOpenPopup'](_0xe15da6,_0x28f32b,_0xdc1ae3);else{if(_0x37d028(0x2ed)===_0x28f32b[_0x37d028(0x244)]){let _0x5104b3,_0x14f0e9=_0xdc1ae3;_0x5104b3=_0x28f32b[_0x37d028(0x252)]?_0x14f0e9['map'](_0x2fab2b=>{const _0x3a4a46=_0x37d028;let _0x339220={};return Object['keys'](_0x2fab2b)[_0x3a4a46(0x2e0)](_0x4a22c8=>Object['keys'](_0x28f32b[_0x3a4a46(0x252)])[_0x3a4a46(0x286)](_0x4a22c8))[_0x3a4a46(0x1ff)](_0xd7a11f=>{const _0x5c1753=_0x3a4a46;Object[_0x5c1753(0x2b7)](_0x28f32b[_0x5c1753(0x252)])[_0x5c1753(0x286)](_0xd7a11f)&&('string'==typeof _0x2fab2b[_0xd7a11f]?_0x339220[_0x28f32b['param_field'][_0xd7a11f]]=_0x2fab2b[_0xd7a11f]:_0x339220[_0x28f32b[_0x5c1753(0x252)][_0xd7a11f]]={'id':_0x2fab2b[_0xd7a11f]['id']});}),_0x339220;}):_0x14f0e9,UiUtil[_0x37d028(0x1e9)](_0x28f32b[_0x37d028(0x2b3)],_0x5104b3);}else _0x37d028(0x2d2)===_0x28f32b['type']?(_0xdc1ae3=_0xdc1ae3[0x0],MetaUiUtil[_0x37d028(0x2a6)](_0xe15da6,_0x28f32b,_0xdc1ae3)):'popup'===_0x28f32b['type']?(_0xdc1ae3=_0xdc1ae3[0x0],await MetaUiUtil[_0x37d028(0x1ee)](_0xe15da6,_0x28f32b,_0xdc1ae3)):'value_reference'===_0x28f32b[_0x37d028(0x244)]&&(_0xdc1ae3=_0xdc1ae3[0x0],await MetaUiUtil[_0x37d028(0x1e3)](_0xe15da6,_0x28f32b,_0xdc1ae3));}}}else _0xe15da6[_0x37d028(0x1ce)]();}}static async[a0_0xec59e1(0x1e3)](_0x37f62a,_0x5cbcc1,_0xb6e6fb){const _0xc119cd=a0_0xec59e1;for(let _0x15da09=0x0;_0x15da09<_0x5cbcc1[_0xc119cd(0x215)][_0xc119cd(0x251)];_0x15da09++){let _0xfe625c=_0x5cbcc1[_0xc119cd(0x215)][_0x15da09];!0x0===ValueUtil[_0xc119cd(0x202)](_0xfe625c,_0xb6e6fb,Object[_0xc119cd(0x2b7)](_0xfe625c)[_0xc119cd(0x2e0)](_0x1eb087=>_0xc119cd(0x1d8)!=_0x1eb087))&&await MetaUiUtil['gristButtonHandler'](_0x37f62a,_0xfe625c,_0xb6e6fb);}}static[a0_0xec59e1(0x2c7)](_0x312ebc,_0x181689){return{'type':_0x312ebc,'name':_0x181689,'sortable':!0x1,'hidden':!0x0};}static['getGristColumnConfig'](_0x588a8d,_0x403642,_0x1418e0,_0x44a54d,_0x5a6e95,_0x30bc88){const _0x11da89=a0_0xec59e1;let _0x46f0e6=TermsUtil['tLabel'](_0x403642);return{'type':_0x588a8d,'name':_0x403642,'header':_0x46f0e6,'record':{'align':_0x1418e0,'editable':_0x44a54d},'sortable':_0x5a6e95,'width':_0x30bc88,'imex':{'width':Math[_0x11da89(0x26e)](_0x30bc88/0x6),'header':_0x46f0e6,'type':_0x588a8d,'key':_0x403642}};}static[a0_0xec59e1(0x1d7)](_0x39d293,_0x423aac,_0x253a03,_0x1c0068,_0x473fd6,_0x44b396,_0x1a1cb9){const _0x87603d=a0_0xec59e1;let _0x3c9c7e=TermsUtil[_0x87603d(0x26f)](_0x253a03);return{'type':_0x39d293,'name':_0x423aac,'header':_0x3c9c7e,'record':{'align':_0x1c0068,'editable':_0x473fd6},'sortable':_0x44b396,'width':_0x1a1cb9,'imex':{'width':Math[_0x87603d(0x26e)](_0x1a1cb9/0x6),'header':_0x3c9c7e,'type':_0x39d293,'key':_0x423aac}};}static[a0_0xec59e1(0x1ea)](_0x300646,_0x3ae5f0,_0x167d85,_0xfbfb1b,_0x17aa28,_0x35986b,_0x51f95a,_0x15bcfe){const _0x2fe8c9=a0_0xec59e1;let _0x4570bc=TermsUtil[_0x2fe8c9(0x26f)](_0x167d85);return{'type':_0x300646,'name':_0x3ae5f0,'header':_0x4570bc,'record':{'align':_0xfbfb1b,'editable':_0x17aa28,'mandatory':_0x51f95a},'sortable':_0x35986b,'width':_0x15bcfe,'imex':{'width':Math['floor'](_0x15bcfe/0x6),'header':_0x4570bc,'type':_0x300646,'key':_0x3ae5f0}};}static['getGristSelectorColumnConfig'](_0xd8abef,_0x16fecf,_0x32ab6c,_0x7d2d80,_0x39619d,_0x205ef5,_0x318199){const _0x4b5152=a0_0xec59e1;let _0x59a1db=TermsUtil[_0x4b5152(0x26f)](_0x16fecf);return{'type':_0x4b5152(0x297),'name':_0xd8abef,'header':_0x59a1db,'record':{'align':_0x32ab6c,'editable':!0x0,'mandatory':_0x205ef5,'options':_0x318199},'sortable':_0x7d2d80,'width':_0x39619d,'imex':{'width':Math[_0x4b5152(0x26e)](_0x39619d/0x6),'header':_0x59a1db,'type':_0x4b5152(0x2ae),'key':_0xd8abef}};}static async[a0_0xec59e1(0x23f)](_0x4f595f,_0xbb9cea,_0x4b2440,_0xda41a1,_0x33b173,_0x3e7e87,_0xc9a0c0){const _0x437b65=a0_0xec59e1;let _0x17281b=await ServiceUtil['getCodeSelectorData'](_0xc9a0c0);return MetaUiUtil[_0x437b65(0x253)](_0x4f595f,_0xbb9cea,_0x4b2440,_0xda41a1,_0x33b173,_0x3e7e87,_0x17281b);}static[a0_0xec59e1(0x213)](_0xcd69fe,_0x31e020,_0x3a1dd8,_0x599998,_0x55e91e){const _0x29de9b=a0_0xec59e1;let _0x546995=TermsUtil[_0x29de9b(0x26f)](_0x3a1dd8),_0x22813a={'name':_0xcd69fe,'type':_0x31e020,'label':_0x546995,'operator':_0x599998,'imex':{'width':0x10,'header':_0x546995,'type':_0x31e020,'key':_0xcd69fe}};return _0x55e91e&&(_0x22813a[_0x29de9b(0x1e2)]=_0x55e91e),_0x22813a;}static async[a0_0xec59e1(0x1c8)](_0x5b7b3b,_0x4591f7,_0x2981e4,_0x4e97bf,_0x259dcd){const _0x59c6ee=a0_0xec59e1;let _0x504671=await ServiceUtil['getCodeSelectorData'](_0x259dcd);return MetaUiUtil[_0x59c6ee(0x213)](_0x5b7b3b,_0x4591f7,_0x2981e4,_0x4e97bf,_0x504671);}static['getCustomButtonContainerStyles'](){return[css`
|
|
6
6
|
.button-container {
|
|
7
7
|
padding: var(--button-container-padding);
|
|
8
8
|
margin: var(--button-container-margin);
|
|
@@ -21,11 +21,11 @@ const a0_0x5752f7=a0_0x559b;(function(_0xa7005a,_0x522aa2){const _0xc78800=a0_0x
|
|
|
21
21
|
// margin: var(--context-action-bar-button-margin);
|
|
22
22
|
border-radius: var(--context-action-bar-more-button-border-radius);
|
|
23
23
|
}
|
|
24
|
-
`];}static[
|
|
24
|
+
`];}static[a0_0xec59e1(0x22e)](){return[css`
|
|
25
25
|
:host {
|
|
26
26
|
--grid-record-emphasized-background-color: red;
|
|
27
27
|
--grid-record-emphasized-color: yellow;
|
|
28
|
-
}`];}static[
|
|
28
|
+
}`];}static[a0_0xec59e1(0x1d3)](){return[css`
|
|
29
29
|
#grist-personal{
|
|
30
30
|
padding:0px;
|
|
31
31
|
margin:0px;
|
|
@@ -48,7 +48,7 @@ const a0_0x5752f7=a0_0x559b;(function(_0xa7005a,_0x522aa2){const _0xc78800=a0_0x
|
|
|
48
48
|
cursor: pointer;
|
|
49
49
|
margin-bottom:4px;
|
|
50
50
|
}
|
|
51
|
-
`];}static[
|
|
51
|
+
`];}static[a0_0xec59e1(0x1c1)](){const _0x46d1ef=a0_0xec59e1;return[ScrollbarStyles,CommonGristStyles,css`
|
|
52
52
|
:host {
|
|
53
53
|
display: flex;
|
|
54
54
|
flex-direction: column;
|
|
@@ -58,7 +58,7 @@ const a0_0x5752f7=a0_0x559b;(function(_0xa7005a,_0x522aa2){const _0xc78800=a0_0x
|
|
|
58
58
|
ox-grist {
|
|
59
59
|
overflow-y: auto;
|
|
60
60
|
flex: 1;
|
|
61
|
-
}`,...MetaUiUtil[
|
|
61
|
+
}`,...MetaUiUtil[_0x46d1ef(0x22e)](),...MetaUiUtil[_0x46d1ef(0x285)](),...MetaUiUtil[_0x46d1ef(0x1d3)]()];}static[a0_0xec59e1(0x209)](){const _0x182f68=a0_0xec59e1;return[ScrollbarStyles,CommonGristStyles,css`
|
|
62
62
|
:host {
|
|
63
63
|
display: flex;
|
|
64
64
|
flex-direction: column;
|
|
@@ -105,7 +105,7 @@ const a0_0x5752f7=a0_0x559b;(function(_0xa7005a,_0x522aa2){const _0xc78800=a0_0x
|
|
|
105
105
|
ox-grist {
|
|
106
106
|
overflow-y: auto;
|
|
107
107
|
flex: 1;
|
|
108
|
-
}`,...MetaUiUtil[
|
|
108
|
+
}`,...MetaUiUtil[_0x182f68(0x22e)](),...MetaUiUtil[_0x182f68(0x285)](),...MetaUiUtil['getGristPersonalizedStyles']()];}static['getBasicMasterDetailStyles'](){const _0x1bf78a=a0_0xec59e1;return[ScrollbarStyles,CommonGristStyles,css`
|
|
109
109
|
:host {
|
|
110
110
|
display: flex;
|
|
111
111
|
flex-direction: column;
|
|
@@ -152,7 +152,7 @@ const a0_0x5752f7=a0_0x559b;(function(_0xa7005a,_0x522aa2){const _0xc78800=a0_0x
|
|
|
152
152
|
ox-grist {
|
|
153
153
|
overflow-y: auto;
|
|
154
154
|
flex: 1;
|
|
155
|
-
}`,...MetaUiUtil[
|
|
155
|
+
}`,...MetaUiUtil[_0x1bf78a(0x22e)](),...MetaUiUtil[_0x1bf78a(0x285)](),...MetaUiUtil[_0x1bf78a(0x1d3)]()];}static[a0_0xec59e1(0x2cb)](){const _0x3cb743=a0_0xec59e1;return[ScrollbarStyles,CommonGristStyles,css`
|
|
156
156
|
:host {
|
|
157
157
|
display: flex;
|
|
158
158
|
flex-direction: column;
|
|
@@ -199,7 +199,7 @@ const a0_0x5752f7=a0_0x559b;(function(_0xa7005a,_0x522aa2){const _0xc78800=a0_0x
|
|
|
199
199
|
ox-grist {
|
|
200
200
|
overflow-y: auto;
|
|
201
201
|
flex: 1;
|
|
202
|
-
}`,...MetaUiUtil[
|
|
202
|
+
}`,...MetaUiUtil['getGristEmphasizedStyles'](),...MetaUiUtil['getCustomButtonContainerStyles'](),...MetaUiUtil[_0x3cb743(0x1d3)]()];}static[a0_0xec59e1(0x223)](_0x317555){const _0x27e330=a0_0xec59e1;return'top-down'==_0x317555?MetaUiUtil[_0x27e330(0x26b)]():MetaUiUtil['getMasterDetailLeftRightGristStyle']();}static['getMasterDetailTopDownGristStyle'](){return[CommonGristStyles,ScrollbarStyles,css`
|
|
203
203
|
:host {
|
|
204
204
|
display: flex;
|
|
205
205
|
flex-direction: column;
|
|
@@ -266,7 +266,7 @@ const a0_0x5752f7=a0_0x559b;(function(_0xa7005a,_0x522aa2){const _0xc78800=a0_0x
|
|
|
266
266
|
margin-left:7px;
|
|
267
267
|
margin-top:7px;
|
|
268
268
|
}
|
|
269
|
-
`];}static[
|
|
269
|
+
`];}static[a0_0xec59e1(0x2b9)](){return[CommonGristStyles,ScrollbarStyles,css`
|
|
270
270
|
:host {
|
|
271
271
|
display: flex;
|
|
272
272
|
flex-direction: column;
|
|
@@ -333,7 +333,7 @@ const a0_0x5752f7=a0_0x559b;(function(_0xa7005a,_0x522aa2){const _0xc78800=a0_0x
|
|
|
333
333
|
margin-left:7px;
|
|
334
334
|
margin-top:7px;
|
|
335
335
|
}
|
|
336
|
-
`];}static[
|
|
336
|
+
`];}static[a0_0xec59e1(0x27a)](){const _0x450af4=a0_0xec59e1;return[ScrollbarStyles,css`
|
|
337
337
|
:host {
|
|
338
338
|
display: flex;
|
|
339
339
|
flex: 1;
|
|
@@ -422,7 +422,7 @@ const a0_0x5752f7=a0_0x559b;(function(_0xa7005a,_0x522aa2){const _0xc78800=a0_0x
|
|
|
422
422
|
border-bottom: var(--record-view-edit-border-bottom);
|
|
423
423
|
}
|
|
424
424
|
|
|
425
|
-
`,...MetaUiUtil[
|
|
425
|
+
`,...MetaUiUtil[_0x450af4(0x285)]()];}static[a0_0xec59e1(0x1f0)](){return[css`
|
|
426
426
|
:host {
|
|
427
427
|
display: flex;
|
|
428
428
|
flex: 1;
|
|
@@ -477,185 +477,185 @@ const a0_0x5752f7=a0_0x559b;(function(_0xa7005a,_0x522aa2){const _0xc78800=a0_0x
|
|
|
477
477
|
overflow-x: overlay;
|
|
478
478
|
background-color: var(--main-section-background-color);
|
|
479
479
|
}
|
|
480
|
-
`];}static[
|
|
480
|
+
`];}static['isButtonExist'](_0x4c5b7a,_0x12c876){const _0x41154f=a0_0xec59e1;return!!(_0x4c5b7a?_0x4c5b7a[_0x41154f(0x2ce)](_0x16d08b=>_0x16d08b[_0x41154f(0x2e1)]==_0x12c876):null);}static['isGridButtonExist'](_0x19fe4c,_0x531117){const _0x1dc5c3=a0_0xec59e1;return!!(_0x19fe4c&&_0x19fe4c[_0x1dc5c3(0x214)]?_0x19fe4c[_0x1dc5c3(0x214)][_0x1dc5c3(0x2ce)](_0x338c07=>_0x338c07[_0x1dc5c3(0x2e1)]==_0x531117):null);}static[a0_0xec59e1(0x1fe)](_0x2d4f1b){const _0x1ef815=a0_0xec59e1;let _0x509d8d='';return _0x2d4f1b['filter'](_0x89531c=>_0x1ef815(0x254)!=_0x89531c['type'])[_0x1ef815(0x1b6)](_0x5cb3ac=>{const _0x4a7810=_0x1ef815;_0x509d8d+='\x0a',_0x509d8d+=_0x4a7810(0x24b)==_0x5cb3ac[_0x4a7810(0x244)]||_0x4a7810(0x245)==_0x5cb3ac[_0x4a7810(0x244)]?_0x5cb3ac[_0x4a7810(0x2e1)]+'\x0a{'+MetaUiUtil['getObjctColumnSelectFields'](_0x5cb3ac)+'}':_0x4a7810(0x25d)==_0x5cb3ac[_0x4a7810(0x244)]?_0x5cb3ac[_0x4a7810(0x2e1)]+_0x4a7810(0x212):_0x5cb3ac['name'];}),_0x509d8d;}static[a0_0xec59e1(0x290)](_0x376272){const _0x3ae386=a0_0xec59e1;let _0x425ed7='';return ValueUtil[_0x3ae386(0x272)](_0x376272[_0x3ae386(0x269)][_0x3ae386(0x1e2)])&&ValueUtil['isNotEmpty'](_0x376272[_0x3ae386(0x269)][_0x3ae386(0x1e2)]['select'])&&_0x376272['record'][_0x3ae386(0x1e2)]['select']['forEach'](_0xb6ccd0=>{const _0x2c4086=_0x3ae386;_0xb6ccd0[_0x2c4086(0x2e1)]&&''!==_0xb6ccd0['name']&&(_0x2c4086(0x24b)===_0xb6ccd0[_0x2c4086(0x244)]||'resource-object'===_0xb6ccd0[_0x2c4086(0x244)]?_0x425ed7+='\x0a'+_0xb6ccd0[_0x2c4086(0x2e1)]+_0x2c4086(0x238)+MetaUiUtil[_0x2c4086(0x290)](_0xb6ccd0)+_0x2c4086(0x2e9):_0x425ed7+='\x0a'+_0xb6ccd0[_0x2c4086(0x2e1)]);}),''==_0x425ed7&&(_0x425ed7+=_0x3ae386(0x23e)),_0x425ed7;}static[a0_0xec59e1(0x1fd)](_0x32491c){const _0x20a7d9=a0_0xec59e1;let _0xd993e7=_0x32491c[_0x20a7d9(0x20c)];if(_0xd993e7){let _0x50352a=_0x32491c[_0x20a7d9(0x24e)]?_0x32491c[_0x20a7d9(0x24e)]:'ox-grist',_0x458473=_0x32491c[_0x20a7d9(0x2c2)];return html`
|
|
481
481
|
<ox-grist
|
|
482
|
-
id=${
|
|
483
|
-
.config=${
|
|
484
|
-
.mode=${
|
|
482
|
+
id=${_0x50352a}
|
|
483
|
+
.config=${_0xd993e7}
|
|
484
|
+
.mode=${_0x458473}
|
|
485
485
|
auto-fetch
|
|
486
|
-
.fetchHandler=${
|
|
487
|
-
${MetaUiUtil[
|
|
486
|
+
.fetchHandler=${_0x32491c['fetchHandler'][_0x20a7d9(0x232)](_0x32491c)}>
|
|
487
|
+
${MetaUiUtil[_0x20a7d9(0x204)](_0x32491c)}
|
|
488
488
|
</ox-grist>
|
|
489
|
-
`;}return html``;}static[
|
|
489
|
+
`;}return html``;}static[a0_0xec59e1(0x2bc)](_0x10548d){const _0x216735=a0_0xec59e1;if(!_0x10548d)return html``;if(!_0x10548d['formConfigSet'])return html``;let _0x17893c=_0x10548d[_0x216735(0x220)],_0x4eedb3=_0x10548d[_0x216735(0x269)]||{},_0x411716=_0x17893c[_0x216735(0x2e0)](_0x225b09=>0x0==_0x225b09[_0x216735(0x21b)]);return ValueUtil['isEmpty'](_0x10548d['formRenderConfig'])?MetaUiUtil[_0x216735(0x26c)](_0x10548d,_0x411716,_0x4eedb3):MetaUiUtil['getBasicFormHtmlOnOption'](_0x10548d,_0x411716,_0x4eedb3);}static[a0_0xec59e1(0x2d5)](_0x5a9c20,_0x335a10,_0x43920e){const _0x5526a0=a0_0xec59e1;let _0x3fb054=_0x5a9c20[_0x5526a0(0x1c5)];return html`
|
|
490
490
|
<div class="root_container">
|
|
491
|
-
${
|
|
491
|
+
${_0x3fb054['map'](_0x1c82a0=>{const _0x1ffdc2=_0x5526a0;let _0x89f904=_0x335a10[_0x1ffdc2(0x2e0)](_0x21c434=>_0x1c82a0[_0x1ffdc2(0x1d4)][_0x1ffdc2(0x286)](_0x21c434[_0x1ffdc2(0x2e1)])),_0x39a11d='height:auto;grid-template-columns:';for(let _0x2f7e3b=0x0;_0x2f7e3b<_0x1c82a0['column'];_0x2f7e3b++)_0x39a11d+=_0x1ffdc2(0x25b);return _0x39a11d+=';',html`
|
|
492
492
|
<h2>
|
|
493
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
493
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1ffdc2(0x2ca)](_0x1c82a0['display'])}
|
|
494
494
|
</h2>
|
|
495
|
-
<div id="content_container" class="content_container" style="${
|
|
496
|
-
${
|
|
497
|
-
<label ?editable=${
|
|
498
|
-
${
|
|
495
|
+
<div id="content_container" class="content_container" style="${_0x39a11d}">
|
|
496
|
+
${_0x89f904[_0x1ffdc2(0x1ff)](_0x3aca56=>{const _0xd4f6e1=_0x1ffdc2;let {editable:_0x5e78bf=!0x1,mandatory:_0x4e7cf7=!0x1}=_0x3aca56[_0xd4f6e1(0x269)],_0x3982f5=_0x43920e[_0xd4f6e1(0x21e)]||{};return html`
|
|
497
|
+
<label ?editable=${_0x5e78bf}><span>${_0x4e7cf7?'*':''}${_0x3aca56[_0xd4f6e1(0x2c8)]}</span>
|
|
498
|
+
${_0x5e78bf?html`<mwc-icon>edit</mwc-icon>`:''}
|
|
499
499
|
</label>
|
|
500
500
|
<ox-grid-field
|
|
501
501
|
.rowIndex=${0x0}
|
|
502
|
-
.column=${
|
|
503
|
-
.record=${
|
|
504
|
-
.value=${
|
|
505
|
-
?dirty=${!!
|
|
502
|
+
.column=${_0x3aca56}
|
|
503
|
+
.record=${_0x43920e}
|
|
504
|
+
.value=${_0x43920e[_0x3aca56[_0xd4f6e1(0x2e1)]]}
|
|
505
|
+
?dirty=${!!_0x3982f5[_0x3aca56['name']]}
|
|
506
506
|
></ox-grid-field>
|
|
507
507
|
`;})}
|
|
508
508
|
</div>
|
|
509
509
|
`;})}
|
|
510
510
|
</div>
|
|
511
|
-
${
|
|
512
|
-
`;}static[
|
|
513
|
-
<div id="container" class="container" style="${
|
|
514
|
-
${
|
|
515
|
-
<label ?editable=${
|
|
516
|
-
${
|
|
511
|
+
${_0x5a9c20['isPage']?html``:MetaUiUtil[_0x5526a0(0x2cf)](_0x5a9c20)}
|
|
512
|
+
`;}static[a0_0xec59e1(0x26c)](_0x1e9972,_0xffc686,_0x3401ef){const _0x2ac987=a0_0xec59e1;let _0x30369d=_0x2ac987(0x2e7);_0x1e9972['column']&&0x0!=_0x1e9972['column']||(_0x1e9972[_0x2ac987(0x1e4)]=0x1);for(let _0x1ecece=0x0;_0x1ecece<_0x1e9972['column'];_0x1ecece++)_0x30369d+=_0x2ac987(0x25b);return _0x30369d+=';',html`
|
|
513
|
+
<div id="container" class="container" style="${_0x30369d}">
|
|
514
|
+
${_0xffc686['map'](_0x12d6ce=>{const _0x45f0ff=_0x2ac987;let {editable:_0x2e5f87=!0x1,mandatory:_0x1a703c=!0x1}=_0x12d6ce[_0x45f0ff(0x269)],_0x23ac7d=_0x3401ef['__dirtyfields__']||{};return html`
|
|
515
|
+
<label ?editable=${_0x2e5f87}><span>${_0x1a703c?'*':''}${_0x12d6ce[_0x45f0ff(0x2c8)]}</span>
|
|
516
|
+
${_0x2e5f87?html`<mwc-icon>edit</mwc-icon>`:''}
|
|
517
517
|
</label>
|
|
518
518
|
<ox-grid-field
|
|
519
519
|
.rowIndex=${0x0}
|
|
520
|
-
.column=${
|
|
521
|
-
.record=${
|
|
522
|
-
.value=${
|
|
523
|
-
?dirty=${!!
|
|
520
|
+
.column=${_0x12d6ce}
|
|
521
|
+
.record=${_0x3401ef}
|
|
522
|
+
.value=${_0x3401ef[_0x12d6ce[_0x45f0ff(0x2e1)]]}
|
|
523
|
+
?dirty=${!!_0x23ac7d[_0x12d6ce[_0x45f0ff(0x2e1)]]}
|
|
524
524
|
></ox-grid-field>
|
|
525
525
|
`;})}
|
|
526
526
|
</div>
|
|
527
|
-
${
|
|
528
|
-
`;}static[
|
|
527
|
+
${_0x1e9972['isPage']?html``:MetaUiUtil[_0x2ac987(0x2cf)](_0x1e9972)}
|
|
528
|
+
`;}static[a0_0xec59e1(0x1bc)](_0x4bd772){const _0x1eea43=a0_0xec59e1;if(!_0x4bd772)return html``;if(!_0x4bd772[_0x1eea43(0x1ad)])return html``;let _0x4e52ce=_0x4bd772[_0x1eea43(0x1ad)];return _0x4bd772[_0x1eea43(0x2d0)]||(_0x4bd772['currentTabKey']=_0x4e52ce[0x0]?.['name']||void 0x0),html`
|
|
529
529
|
<div class="tabs">
|
|
530
|
-
${
|
|
531
|
-
<div class="tab" ?activate="${
|
|
532
|
-
${
|
|
533
|
-
<span>${
|
|
530
|
+
${_0x4e52ce[_0x1eea43(0x1ff)](_0x4c007f=>{const _0x12705b=_0x1eea43;let _0x101307=TermsUtil[_0x12705b(0x26f)](_0x4c007f[_0x12705b(0x25f)]),_0x77a89e=_0x4c007f['name'];return html`
|
|
531
|
+
<div class="tab" ?activate="${_0x77a89e===_0x4bd772['currentTabKey']}" @click="${()=>_0x4bd772['currentTabKey']=_0x77a89e}">
|
|
532
|
+
${_0x4c007f[_0x12705b(0x2a3)]?html`<mwc-icon>${_0x4c007f['icon']}</mwc-icon>`:html``}
|
|
533
|
+
<span>${_0x101307}</span>
|
|
534
534
|
</div>
|
|
535
535
|
`;})}
|
|
536
536
|
</div>
|
|
537
537
|
<div class="content-container">
|
|
538
|
-
${
|
|
539
|
-
<div class='tab-contents' style="${
|
|
540
|
-
${MetaUiUtil[
|
|
538
|
+
${_0x4e52ce['map'](_0x47d01a=>{const _0x5a0340=_0x1eea43;let _0x33b627=_0x5a0340(0x2a7);return _0x47d01a[_0x5a0340(0x2e1)]==_0x4bd772[_0x5a0340(0x2d0)]&&(_0x33b627='display:flex'),html`
|
|
539
|
+
<div class='tab-contents' style="${_0x33b627}">
|
|
540
|
+
${MetaUiUtil['getBasicTabContent'](_0x4bd772,_0x47d01a)}
|
|
541
541
|
</div>
|
|
542
542
|
`;})}
|
|
543
543
|
</div>
|
|
544
|
-
`;}static[
|
|
545
|
-
${0x0==
|
|
544
|
+
`;}static[a0_0xec59e1(0x2e6)](_0x5da747){const _0x28cc94=a0_0xec59e1;let _0x5a90bd=(_0x5da747[_0x28cc94(0x2a5)]||{})['master_detail_type']||_0x28cc94(0x22b),_0x310e31=(_0x5da747['etcConfig']||{})['master_detail_size']||_0x28cc94(0x219),_0xc1dcce=_0x28cc94(0x229)==_0x5a90bd?_0x28cc94(0x2e7)+_0x310e31+';':_0x28cc94(0x29c)+_0x310e31+';',_0x21a074=_0x5da747['isPage']?UiUtil[_0x28cc94(0x1d9)]():_0x5da747[_0x28cc94(0x27c)];return html`
|
|
545
|
+
${0x0==_0x5da747[_0x28cc94(0x2aa)]?html``:html`
|
|
546
546
|
<div slot="headroom">
|
|
547
547
|
<div id="filters">
|
|
548
548
|
<ox-filters-form-base
|
|
549
549
|
id='ox-filters-form'
|
|
550
|
-
.filters=${
|
|
551
|
-
@filters-change=${
|
|
550
|
+
.filters=${_0x5da747[_0x28cc94(0x23a)]||[]}
|
|
551
|
+
@filters-change=${_0x12c3a1=>{const _0x28bfab=_0x28cc94;_0x5da747[_0x28bfab(0x2dd)]?.['fetch']();}}
|
|
552
552
|
></ox-filters-form-base>
|
|
553
553
|
</div>
|
|
554
554
|
</div>
|
|
555
555
|
`}
|
|
556
|
-
<div id="container" class="container" style="${
|
|
556
|
+
<div id="container" class="container" style="${_0xc1dcce}">
|
|
557
557
|
<div class="container_detail">
|
|
558
|
-
${MetaApi[
|
|
559
|
-
${MetaUiUtil[
|
|
558
|
+
${MetaApi[_0x28cc94(0x1fd)](_0x5da747)}
|
|
559
|
+
${MetaUiUtil[_0x28cc94(0x2cf)](_0x5da747)}
|
|
560
560
|
</div>
|
|
561
561
|
<div class="container_detail">
|
|
562
|
-
${!0x0===
|
|
562
|
+
${!0x0===_0x5da747[_0x28cc94(0x255)]?html`${!0x0===_0x5da747[_0x28cc94(0x1ec)]?html`<meta-tab-element
|
|
563
563
|
id="detail"
|
|
564
|
-
route_name="${
|
|
565
|
-
.activityDataSet=${(
|
|
564
|
+
route_name="${_0x21a074}"
|
|
565
|
+
.activityDataSet=${(_0x5da747[_0x28cc94(0x206)]||{})[_0x28cc94(0x284)]}
|
|
566
566
|
is_readonly=true
|
|
567
567
|
is_activity=true
|
|
568
568
|
is_detail=true>
|
|
569
569
|
</meta-tab-element>`:html`<meta-tab-element
|
|
570
570
|
id="detail"
|
|
571
|
-
route_name="${
|
|
572
|
-
.activityDataSet=${(
|
|
571
|
+
route_name="${_0x21a074}"
|
|
572
|
+
.activityDataSet=${(_0x5da747[_0x28cc94(0x206)]||{})['detail']}
|
|
573
573
|
is_activity=true
|
|
574
574
|
is_detail=true>
|
|
575
|
-
</meta-tab-element>`}`:html`${!0x0===
|
|
575
|
+
</meta-tab-element>`}`:html`${!0x0===_0x5da747['is_readonly']?html`<meta-tab-element id="detail" route_name="${_0x21a074}" is_readonly=true is_detail=true></meta-tab-element>`:html`<meta-tab-element id="detail" route_name="${_0x21a074}" is_detail=true></meta-tab-element>`}`}
|
|
576
576
|
</div>
|
|
577
577
|
</div>
|
|
578
|
-
`;}static[
|
|
579
|
-
${0x0==
|
|
578
|
+
`;}static['getTabDetailHtml'](_0x25b90d){const _0x4e4917=a0_0xec59e1;let _0x76a17a=_0x25b90d['etcConfig']['master_detail_type']||'top_bottom',_0x117508=_0x25b90d['etcConfig']['master_detail_size']||_0x4e4917(0x219),_0x554921=_0x25b90d['etcConfig']['master_detail_element'],_0x258282=JSON[_0x4e4917(0x2e2)](_0x554921||'{}'),_0x45e9e8=_0x4e4917(0x229)==_0x76a17a?'grid-template-columns:'+_0x117508+';':_0x4e4917(0x29c)+_0x117508+';';return MetaUiUtil[_0x4e4917(0x29e)](_0x25b90d),MetaUiUtil[_0x4e4917(0x276)](_0x25b90d,_0x258282),html`
|
|
579
|
+
${0x0==_0x25b90d[_0x4e4917(0x2aa)]?html``:html`
|
|
580
580
|
<div slot="headroom">
|
|
581
581
|
<div id="filters">
|
|
582
582
|
<ox-filters-form-base
|
|
583
583
|
id='ox-filters-form'
|
|
584
|
-
.filters=${
|
|
585
|
-
@filters-change=${
|
|
584
|
+
.filters=${_0x25b90d[_0x4e4917(0x23a)]||[]}
|
|
585
|
+
@filters-change=${_0x94208b=>{const _0x3be8da=_0x4e4917;_0x25b90d[_0x3be8da(0x1ce)]();}}
|
|
586
586
|
></ox-filters-form-base>
|
|
587
587
|
</div>
|
|
588
588
|
</div>
|
|
589
589
|
`}
|
|
590
|
-
<div id="container" class="container" style="${
|
|
590
|
+
<div id="container" class="container" style="${_0x45e9e8}">
|
|
591
591
|
<div class="container_detail">
|
|
592
|
-
${
|
|
592
|
+
${_0x25b90d[_0x4e4917(0x266)]}
|
|
593
593
|
</div>
|
|
594
594
|
<div class="container_detail">
|
|
595
|
-
${''==
|
|
596
|
-
${
|
|
595
|
+
${''==_0x258282[_0x4e4917(0x283)]||_0x4e4917(0x264)==_0x258282[_0x4e4917(0x283)]?html``:html`<h2 id='detail_title'><mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x4e4917(0x2ca)](''+_0x258282[_0x4e4917(0x25f)])}</h2>`}
|
|
596
|
+
${_0x25b90d[_0x4e4917(0x2ac)]}
|
|
597
597
|
</div>
|
|
598
598
|
</div>
|
|
599
|
-
`;}static[
|
|
600
|
-
${0x0==
|
|
599
|
+
`;}static['getMasterDetailHtml'](_0x80f4ba){const _0x2aaa7c=a0_0xec59e1;let _0x3a7027=_0x80f4ba[_0x2aaa7c(0x2a5)][_0x2aaa7c(0x295)]||_0x2aaa7c(0x22b),_0x377ac0=_0x80f4ba[_0x2aaa7c(0x2a5)]['master_detail_size']||'50%\x2050%',_0x460203=_0x80f4ba[_0x2aaa7c(0x2a5)][_0x2aaa7c(0x257)],_0x35b64f=JSON[_0x2aaa7c(0x2e2)](_0x460203||'{}'),_0x20f5b7=_0x2aaa7c(0x229)==_0x3a7027?'grid-template-columns:'+_0x377ac0+';':'grid-template-rows:'+_0x377ac0+';';return MetaUiUtil[_0x2aaa7c(0x276)](_0x80f4ba,_0x35b64f),html`
|
|
600
|
+
${0x0==_0x80f4ba['useMasterFilterForm']?html``:html`
|
|
601
601
|
<div slot="headroom">
|
|
602
602
|
<div id="filters">
|
|
603
603
|
<ox-filters-form-base
|
|
604
604
|
id='ox-filters-form'
|
|
605
|
-
.filters=${
|
|
606
|
-
@filters-change=${
|
|
605
|
+
.filters=${_0x80f4ba[_0x2aaa7c(0x23a)]||[]}
|
|
606
|
+
@filters-change=${_0x4f5310=>{const _0x41d81d=_0x2aaa7c;_0x80f4ba[_0x41d81d(0x2dd)]?.[_0x41d81d(0x1ce)]();}}
|
|
607
607
|
></ox-filters-form-base>
|
|
608
608
|
</div>
|
|
609
609
|
</div>
|
|
610
610
|
`}
|
|
611
|
-
<div id="container" class="container" style="${
|
|
611
|
+
<div id="container" class="container" style="${_0x20f5b7}">
|
|
612
612
|
<div class="container_detail">
|
|
613
|
-
${MetaApi[
|
|
614
|
-
${MetaUiUtil[
|
|
613
|
+
${MetaApi[_0x2aaa7c(0x1fd)](_0x80f4ba)}
|
|
614
|
+
${MetaUiUtil[_0x2aaa7c(0x2cf)](_0x80f4ba)}
|
|
615
615
|
</div>
|
|
616
616
|
<div class="container_detail">
|
|
617
|
-
${''==
|
|
618
|
-
${
|
|
617
|
+
${''==_0x35b64f[_0x2aaa7c(0x283)]||'meta-tab-element'==_0x35b64f['tagname']?html``:html`<h2 id='detail_title'><mwc-icon>list_alt</mwc-icon>${TermsUtil['tTitle'](''+_0x35b64f['display'])}</h2>`}
|
|
618
|
+
${_0x80f4ba[_0x2aaa7c(0x2ac)]}
|
|
619
619
|
</div>
|
|
620
620
|
</div>
|
|
621
|
-
`;}static[
|
|
621
|
+
`;}static['createDetailElement'](_0x1c0425,_0x5c9685){const _0x19bb72=a0_0xec59e1;if(!_0x1c0425[_0x19bb72(0x2ac)]){let _0x1c5574=_0x5c9685[_0x19bb72(0x2e1)]?_0x5c9685[_0x19bb72(0x2e1)]:_0x19bb72(0x284),_0xcf02d4='<'+_0x5c9685['tagname']+'\x20id=\x22'+_0x1c5574+_0x19bb72(0x1c9)+_0x1c5574+_0x19bb72(0x265)+_0x5c9685[_0x19bb72(0x2c4)]+'\x22\x20'+(!0x0===_0x1c0425[_0x19bb72(0x255)]?'is_activity=true':'')+'\x20'+(!0x0===_0x1c0425['is_readonly']?_0x19bb72(0x2ab):'')+_0x19bb72(0x1b4)+_0x5c9685[_0x19bb72(0x283)]+'>';_0x1c0425[_0x19bb72(0x2ac)]=UiUtil['htmlToElement'](_0xcf02d4),_0x1c0425['detailElement'][_0x19bb72(0x206)]=(_0x1c0425[_0x19bb72(0x206)]||{})[_0x19bb72(0x284)],_0x1c0425[_0x19bb72(0x258)][_0x19bb72(0x1c0)]()[_0x19bb72(0x2be)](_0x19bb72(0x289))&&(_0x1c0425['detailElement'][_0x19bb72(0x261)]=_0x1c0425);}}static['createMasterElement'](_0xeb61ba){const _0x26bbd7=a0_0xec59e1;if(!_0xeb61ba[_0x26bbd7(0x266)]&&_0xeb61ba[_0x26bbd7(0x24a)]){let _0x455de4=_0x26bbd7(0x22d),_0x34f324=_0x26bbd7(0x1f1)+_0x455de4+_0x26bbd7(0x1c9)+_0x455de4+_0x26bbd7(0x265)+_0xeb61ba['currentRouting']+'\x22\x20'+(!0x0===_0xeb61ba[_0x26bbd7(0x255)]?_0x26bbd7(0x1c4):'')+'\x20'+(!0x0===_0xeb61ba[_0x26bbd7(0x1ec)]?'is_readonly=true':'')+'\x20is_detail=true\x20style=\x22flex:1;\x22></meta-tab-element>';_0xeb61ba['masterElement']=UiUtil[_0x26bbd7(0x2d6)](_0x34f324),_0xeb61ba[_0x26bbd7(0x266)]['activityDataSet']=(_0xeb61ba['activityDataSet']||{})[_0x26bbd7(0x22d)],_0xeb61ba[_0x26bbd7(0x266)][_0x26bbd7(0x2eb)]=!0x0,_0xeb61ba[_0x26bbd7(0x266)][_0x26bbd7(0x224)]=_0xeb61ba[_0x26bbd7(0x24a)],_0xeb61ba[_0x26bbd7(0x266)]['rootElement']=_0xeb61ba;}}static['getBasicTabContent'](_0x3c4a97,_0x4283f1){const _0x290bde=a0_0xec59e1;if(_0x3c4a97['tabElements']||(_0x3c4a97[_0x290bde(0x2cd)]={}),Object[_0x290bde(0x2b7)](_0x3c4a97['tabElements'])[_0x290bde(0x2e0)](_0x5f527e=>_0x5f527e==_0x4283f1[_0x290bde(0x2e1)])['length']>0x0)return _0x3c4a97['tabElements'][_0x4283f1[_0x290bde(0x2e1)]];let _0x2f73e4='<'+_0x4283f1[_0x290bde(0x283)]+_0x290bde(0x29f)+_0x4283f1['name']+_0x290bde(0x280)+_0x4283f1[_0x290bde(0x20f)]+_0x290bde(0x230)+(!0x0===_0x3c4a97[_0x290bde(0x255)]?'is_activity=true':'')+'\x20'+(!0x0===_0x3c4a97[_0x290bde(0x1ec)]?'is_readonly=true':'')+_0x290bde(0x1fc)+_0x4283f1[_0x290bde(0x283)]+'>',_0x4c3e6f=UiUtil[_0x290bde(0x2d6)](_0x2f73e4);return _0x4c3e6f['activityDataSet']=(_0x3c4a97[_0x290bde(0x206)]||{})[_0x4283f1['name']],_0x3c4a97[_0x290bde(0x218)]&&(_0x4c3e6f['parent_id']=_0x3c4a97[_0x290bde(0x218)]),_0x3c4a97[_0x290bde(0x261)]?_0x4c3e6f[_0x290bde(0x261)]=_0x3c4a97[_0x290bde(0x261)]:_0x4c3e6f['detailElement']=_0x3c4a97,!0x1===_0x4283f1['filter_from']&&(_0x4c3e6f[_0x290bde(0x234)]=!0x1),_0x4283f1[_0x290bde(0x267)]&&(_0x4c3e6f['mainFilterForm']=_0x4283f1[_0x290bde(0x267)]),_0x3c4a97[_0x290bde(0x2cd)][_0x4283f1[_0x290bde(0x2e1)]]=_0x4c3e6f,_0x4c3e6f;}static[a0_0xec59e1(0x204)](_0x54f0a3){const _0x3aac30=a0_0xec59e1;let _0x39eeab=_0x54f0a3['useButtonAdd'],_0x2ad41c=_0x54f0a3[_0x3aac30(0x2ad)],_0x17a0aa=_0x54f0a3['recordCreationCallback'],_0x20cd4c=JSON['parse']((_0x54f0a3['etcConfig']||{})[_0x3aac30(0x22a)]||_0x3aac30(0x2e4));return 0x0==_0x2ad41c?html`
|
|
622
622
|
<div slot="headroom" style="flex-direction: column;padding: 0px;border-top: none;box-shadow: none;background: none;align-items: stretch;">
|
|
623
|
-
${this[
|
|
623
|
+
${this['getGridColumnPersonalizeButton'](_0x54f0a3)}
|
|
624
624
|
</div>
|
|
625
625
|
`:html`
|
|
626
626
|
<div slot="headroom" style="flex-direction: column;padding: 0px;border-top: none;box-shadow: none;background: none;align-items: stretch;">
|
|
627
627
|
<div slot="headroom">
|
|
628
628
|
<div id="filters"><ox-filters-form></ox-filters-form></div>
|
|
629
|
-
${
|
|
629
|
+
${_0x20cd4c?html`
|
|
630
630
|
<div id="sorters">
|
|
631
|
-
<mwc-icon @click=${
|
|
631
|
+
<mwc-icon @click=${_0x3d5bff=>{const _0x2a90a6=_0x3aac30,_0x177d76=_0x3d5bff[_0x2a90a6(0x2db)];_0x177d76['nextElementSibling']['open']({'right':0x0,'top':_0x177d76[_0x2a90a6(0x247)]+_0x177d76[_0x2a90a6(0x2c3)]});}}
|
|
632
632
|
>sort</mwc-icon>
|
|
633
633
|
<ox-popup id="sorter-control">
|
|
634
634
|
<ox-sorters-control></ox-sorters-control>
|
|
635
635
|
</ox-popup>
|
|
636
636
|
</div>
|
|
637
637
|
`:html``}
|
|
638
|
-
${MetaUiUtil[
|
|
638
|
+
${MetaUiUtil['getGridViewOption'](_0x54f0a3)}
|
|
639
639
|
<ox-record-creator
|
|
640
640
|
id="add"
|
|
641
|
-
?hidden="${!
|
|
642
|
-
.callback=${
|
|
641
|
+
?hidden="${!_0x39eeab}"
|
|
642
|
+
.callback=${_0x17a0aa}>
|
|
643
643
|
<button>
|
|
644
644
|
<mwc-icon>add</mwc-icon>
|
|
645
645
|
</button>
|
|
646
646
|
</ox-record-creator>
|
|
647
647
|
</div>
|
|
648
|
-
${this[
|
|
648
|
+
${this[_0x3aac30(0x1ed)](_0x54f0a3)}
|
|
649
649
|
</div>
|
|
650
|
-
`;}static['getGridColumnPersonalizeButton'](
|
|
650
|
+
`;}static['getGridColumnPersonalizeButton'](_0x55f652){const _0x59b303=a0_0xec59e1;return _0x59b303(0x279)!=_0x55f652[_0x59b303(0x2c2)]?html``:!0x0!==_0x55f652[_0x59b303(0x255)]?html`
|
|
651
651
|
<div id="grist-personal">
|
|
652
|
-
<mwc-icon @click=${
|
|
652
|
+
<mwc-icon @click=${_0x2d41a1=>{const _0x562a1b=_0x59b303;let _0x57b4db=MetaApi['createCustomElement'](_0x562a1b(0x1f2),_0x562a1b(0x1f2));_0x57b4db[_0x562a1b(0x1df)]=_0x2d41a1['currentTarget'][_0x562a1b(0x1b8)][_0x562a1b(0x1b8)][_0x562a1b(0x1b8)],_0x57b4db[_0x562a1b(0x216)]=_0x55f652[_0x562a1b(0x216)],MetaApi[_0x562a1b(0x1f4)](TermsUtil[_0x562a1b(0x2ca)](_0x562a1b(0x2c6)),_0x562a1b(0x221),_0x57b4db,!0x1);}}
|
|
653
653
|
>tune</mwc-icon>
|
|
654
654
|
</div>
|
|
655
|
-
`:html``;}static[
|
|
655
|
+
`:html``;}static[a0_0xec59e1(0x2ba)](_0x413d4f){const _0x598e3c=a0_0xec59e1;return ValueUtil[_0x598e3c(0x292)](_0x413d4f['gridViewOptions'])||0x1==_0x413d4f[_0x598e3c(0x2ec)][_0x598e3c(0x251)]?html``:html`
|
|
656
656
|
<div id="modes">
|
|
657
|
-
${
|
|
658
|
-
${
|
|
659
|
-
${
|
|
657
|
+
${_0x413d4f['gridViewOptions']['includes'](_0x598e3c(0x279))?html`<mwc-icon @click="${()=>_0x413d4f[_0x598e3c(0x2c2)]=_0x598e3c(0x279)}" ?active="${_0x598e3c(0x279)==_0x413d4f[_0x598e3c(0x2c2)]}">grid_on</mwc-icon>`:''}
|
|
658
|
+
${_0x413d4f[_0x598e3c(0x2ec)][_0x598e3c(0x286)](_0x598e3c(0x275))?html`<mwc-icon @click="${()=>_0x413d4f[_0x598e3c(0x2c2)]='LIST'}" ?active="${_0x598e3c(0x275)==_0x413d4f[_0x598e3c(0x2c2)]}">format_list_bulleted</mwc-icon>`:''}
|
|
659
|
+
${_0x413d4f[_0x598e3c(0x2ec)][_0x598e3c(0x286)](_0x598e3c(0x2e5))?html`<mwc-icon @click="${()=>_0x413d4f[_0x598e3c(0x2c2)]='CARD'}" ?active="${'CARD'==_0x413d4f[_0x598e3c(0x2c2)]}">apps</mwc-icon>`:''}
|
|
660
660
|
</div>
|
|
661
|
-
`;}static['getButtonContainer'](
|
|
661
|
+
`;}static['getButtonContainer'](_0x39ab87){const _0x2ddec9=a0_0xec59e1;return html`<div id="button-container" class="button-container">${MetaUiUtil[_0x2ddec9(0x1ca)](_0x39ab87)}</div>`;}}
|