@things-factory/meta-ui 6.0.126 → 6.0.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/actions/main.js +4 -4
- package/client/bootstrap.js +4 -21
- package/client/component/filter/filter-form-resource-code-select.js +9 -9
- package/client/component/filter/filter-grist-resource-code-select.js +9 -9
- package/client/component/grist/editor/ox-grist-editor-resource-code-selector.js +9 -9
- package/client/component/grist/renderer/ox-grist-renderer-resource-code-selector.js +1 -1
- package/client/component/grist/selector/ox-resource-code-selector-popup.js +11 -11
- package/client/index.js +4 -0
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +1 -1
- package/client/mixin/meta-main-tab-mixin.js +1 -0
- 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 +2 -2
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/entity/config-entity.js +29 -29
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-main-tab-element.js +1 -0
- package/client/pages/meta-main-tab-page.js +1 -0
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-detail-element.js +1 -1
- package/client/pages/meta-tab-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +6 -6
- package/client/pages/work-code/work-code-detail-popup.js +1 -1
- package/client/pages/work-code/work-code-page.js +1 -1
- package/client/reducers/main.js +1 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +126 -95
- package/client/utils/service-util.js +13 -13
- package/client/utils/terms-util.js +2 -2
- package/client/utils/ui-util.js +1 -1
- package/client/utils/value-util.js +1 -1
- package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +12 -12
- package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +2 -2
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-activity/meta-activity-mutation.js +1 -1
- package/server/service/meta-activity/meta-activity-query.js +1 -1
- package/server/service/meta-activity/meta-activity-type.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
- package/server/service/work-code/work-code-mutation.js +1 -1
- package/server/service/work-code/work-code-query.js +1 -1
- package/server/service/work-code/work-code-type.js +1 -1
- package/server/service/work-code/work-code.js +1 -1
- package/server/service/work-code-detail/work-code-detail-mutation.js +1 -1
- package/server/service/work-code-detail/work-code-detail-query.js +1 -1
- package/server/service/work-code-detail/work-code-detail-type.js +1 -1
- package/server/service/work-code-detail/work-code-detail.js +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
const a0_0x102ceb=a0_0x2594;(function(_0x490c35,_0x354677){const _0x122663=a0_0x2594,_0x5c48c4=_0x490c35();while(!![]){try{const _0x15bf7f=parseInt(_0x122663(0x19c))/0x1*(-parseInt(_0x122663(0x1ea))/0x2)+parseInt(_0x122663(0x1de))/0x3+-parseInt(_0x122663(0x198))/0x4*(parseInt(_0x122663(0x256))/0x5)+parseInt(_0x122663(0x21f))/0x6+parseInt(_0x122663(0x1bf))/0x7*(parseInt(_0x122663(0x29a))/0x8)+-parseInt(_0x122663(0x27d))/0x9*(-parseInt(_0x122663(0x233))/0xa)+-parseInt(_0x122663(0x217))/0xb*(-parseInt(_0x122663(0x29e))/0xc);if(_0x15bf7f===_0x354677)break;else _0x5c48c4['push'](_0x5c48c4['shift']());}catch(_0x3fd4aa){_0x5c48c4['push'](_0x5c48c4['shift']());}}}(a0_0x2dca,0x4af45));import a0_0x3e1b47 from'graphql-tag';import{client}from'@operato/graphql';import a0_0x26253f from'moment-timezone';import{css,html}from'lit';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';function a0_0x2594(_0xa89b16,_0x3794b0){const _0x2dca48=a0_0x2dca();return a0_0x2594=function(_0x259400,_0x2d1d0e){_0x259400=_0x259400-0x170;let _0x3e5479=_0x2dca48[_0x259400];return _0x3e5479;},a0_0x2594(_0xa89b16,_0x3794b0);}import{UiUtil}from'./ui-util';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';function a0_0x2dca(){const _0x4afa33=['text.there_is_no_selected_items','select','logic','mainFilterForm','parent_field','getBasicTabDetailStyles','model','bind','parseFormConfigSet','tagname','today','is_readonly=true','unlimited','<mwc-button\x20label=\x22','commonButtonCallScenario','51464PPsnQO','getGristColumnConfig2','personal-column-selector','nextElementSibling','masterElement','getGristTabHtml','\x0a{\x0aid\x0aname\x0athumbnail}','getGridColumnPersonalizeButton','useButtonExport','routing','editable','config','pages/hgistory/history-copy-list-popup.js','gqlInfo','floor','import','menuId','fetch','getCustomButtonContainerStyles','object','grid','main_filter_form','\x0aid\x0aname\x0adescription','compareObjectValues','datetime','gridViewOptions','tError','editor','find','isNotEmpty','open','919422RpgegW','LIST','map','YYYY-MM-DD','getGristCodeSelectorColumnConfig','value_is_not_exist','history_json','getMasterDetailLeftRightGristStyle','id,template','master','display:flex','shadowRoot','34576VXhymX','getGristHiddenColumnConfig','runnerPermission','fetchHandler','icon','records','getContextObject','result_name','\x20is_detail=true\x20style=\x22flex:1;\x22></meta-tab-element>','gristButtonHandler','relation','findMenuGridPersnalTemplate','grist','offsetHeight','split','menu','search','detail','getBasicTabHtml','buttonConfig','title_detail','imex','notify','\x20is_detail=true></','row','detailElement','text.please_select_only_one','getGristPersonalizedStyles','param','GRID','gridConfig','query','tagName','header','large','50%\x2050%','\x22\x20name=\x22','text.button_bind_func_is_not_exist','rank','filter_from','getGristColumnConfig','error','dec','value_reference','\x20id=\x27','198vukQGz','searchByPagination','getGridColumnSet','parentElement','patchesForUpdateMultiple','desc','createDetailElement','scenario','2438316ZykDiF','setGridColumnSearchOption','stringify','getBasicGristStyles','currentRouting','param_field','tTitle','getMenuMeta','getCodeByEntity','formColumnConfig','formConfigSet','meta-grist-tab-','use_row_checker','grist_all','name','isArray','__dirtyfields__','keys','getObjctColumnSelectFields','\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20','23860iqSQrj','setParentId','is_readonly','tabElements','gristButtonValueReference','\x27\x20style=\x22flex:1;\x22\x20','title.info','midium','parent_id','htmlToElement','option','getBasicGristHtml','data','url','activityDataSet','createMasterElement','args','export','getBasicFormHtmlNoOption','getMasterDetailTopDownGristStyle','grid-template-columns:','getGristGuttersConfig','after','left','callScenario','includes','\x22\x20style=\x22margin-left:7px;margin-top:7px;\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20icon=\x22','isEmpty','metaUI','dirty','isPage','template','getGridListSet','getSelectColumns','gristConfigSet','245thZGND','options','open_param','title','grist_selected','height:auto;grid-template-columns:','label','getCodeByScenario','invalid\x20license\x20key','etcConfig','formRenderConfig','pages/meta-form-element.js','tText','danger','grist_changed','getQueryFilters','meta-tab-element','onclick','useMasterFilterForm','master_detail_element','master_detail_type','tMenu','meta-form-element','list','useFilterForm','getBasicGristTabStyles','gristId','\x22\x20route_name=\x22','codes','format','basicArgs','top-down','location','history_copy','commonButtonOpenPopup','defaultPageConfig','code','resource-code-selector','grist_one','423sMRUjH','importable','CARD','exportable','is_activity','basic','createCustomElement','meta-master-detail-','getMasterDetailHtml','currentTarget','dispatchEvent','\x201fr\x202fr','pageNavigate','add','left_right','filter','getBasicFormStyles','default_form_column','filterForm','toLowerCase','history-json-list-popup','dense','getBasicTabContent','searchFields','gridMobileMode','getGristSelectableConfig','showAlertPopup','getCodeSelectorData','createButtonElement','128lZsmsP','display:none','page','offsetTop','4548DMOrGM','useButtonAdd','configGrist','getButtonContainer','button','data_history_list','getGridRowSet','hidden','getGristPaginationCustomConfig','parseGridConfigSet','header_txt','menuInfo','meta-tab-','errors','getGridOptionSet','menus','handlers','sorters','\x20>\x0a\x20\x20\x20\x20</mwc-button>\x0a\x20\x20\x20\x20','outlined','text.grid_is_not_exist','findOne','\x20\x0a\x20}','service','top_bottom','getBasicMasterDetailGristStyle','getGristSearchCodeColumnConfig','row-selector','selected','false','values','getState','popup','record','getGridDetailHtml','form','startsWith','string','getContextButtons','info','route_name','sort','is_activity=true','pages','getGristSelectorColumnConfig','isGridButtonExist','gutter','confirm','customButtonHandler','raised','emphasis','display','text.nothing_selected','gridDeskMode','gridMode','text.search_form_is_not_exist','type','\x22\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20','column','getGristEmphasizedStyles','forEach','column_list','resource-object','parse','entity','isMobileEnv','sequence','custom','filters','grid-template-rows:','getParams','infinityPage','text.grid_data_is_empty','gridColumnConfig','assign','multiple','tabRenderConfig','openPopupByElement','getBasicFormHtmlOnOption','useButtonImport','45388dITqMc','push','selectable','findMenuMetaByRouting','5FwhcsS','getBasicMasterDetailStyles','replace','value','pass_field','use_filter_form','title.warning','getContainerButtons','getGristSearchColumnConfig','history-copy-list-popup','length','currentTabKey','searchFieldValues','tLabel','gristButtonPassParam','querySelector','pass_param','getButtonActionHandler','rootElement','tButton'];a0_0x2dca=function(){return _0x4afa33;};return a0_0x2dca();}export class MetaUiUtil{static async['findMenuMeta'](_0x418827){const _0x22b19a=a0_0x2594;let _0x4cde06=await ServiceUtil[_0x22b19a(0x2b3)]('menu',_0x418827,_0x22b19a(0x252));if(!_0x4cde06)throw new Error(TermsUtil['tText']('value_is_not_exist',{'value':TermsUtil[_0x22b19a(0x26b)](_0x22b19a(0x1f9))+'\x20'+_0x418827}));if(!_0x4cde06[_0x22b19a(0x252)])throw new Error(TermsUtil['tText'](_0x22b19a(0x1e3),{'value':TermsUtil[_0x22b19a(0x26b)](_0x22b19a(0x1f9))+'\x20'+TermsUtil['tLabel'](_0x22b19a(0x1b6))}));return this[_0x22b19a(0x1cf)]=_0x418827,JSON['parse'](_0x4cde06[_0x22b19a(0x252)]);}static async[a0_0x102ceb(0x19b)](_0xf1d47c,_0x52c49e){const _0x282397=a0_0x102ceb;if((await client['query']({'query':a0_0x3e1b47`
|
|
2
2
|
query ($id: String) {
|
|
3
3
|
metaUITemplateIsOverLimit(id: $id)
|
|
4
4
|
}
|
|
5
|
-
`,'variables':{'id':null}}))['errors'])return;let _0x4cd727,_0x5686fd=[{'name':_0x5ed231(0x14f),'operator':'eq','value':_0x5cb7ea}],_0x12897e=await ServiceUtil[_0x5ed231(0x138)](_0x5ed231(0x116),_0x5686fd,null,0x0,0x0,_0x5ed231(0xb0));if(_0x12897e&&_0x12897e['records']&&0x0!=_0x12897e[_0x5ed231(0x18b)][_0x5ed231(0xde)]?(_0x4cd727=_0x12897e[_0x5ed231(0x18b)][0x0],!_0x4cd727[_0x5ed231(0x14b)]&&_0xe93136['defaultPageConfig']&&(_0x4cd727[_0x5ed231(0x14b)]=_0xe93136[_0x5ed231(0x156)])):_0xe93136[_0x5ed231(0x156)]&&(_0x4cd727={'id':_0x5cb7ea,'template':_0xe93136[_0x5ed231(0x156)]}),!_0x4cd727)throw new Error(TermsUtil['tText'](_0x5ed231(0x185),{'value':TermsUtil['tMenu'](_0x5ed231(0x1e4))+'\x20'+_0x5cb7ea}));if(!_0x4cd727[_0x5ed231(0x14b)])throw new Error(TermsUtil[_0x5ed231(0x167)](_0x5ed231(0x185),{'value':TermsUtil[_0x5ed231(0x17d)](_0x5ed231(0x1e4))+'\x20'+TermsUtil[_0x5ed231(0x196)](_0x5ed231(0xb7))}));return this[_0x5ed231(0x18f)]=_0x4cd727['id'],JSON[_0x5ed231(0x171)](MetaCrypto['dec'](_0x4cd727['template']));}static[a0_0x547c41(0xb8)](){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':_0x43041c=>Boolean(_0x43041c)},'is_popup':{'type':Boolean,'converter':_0x4d18b8=>Boolean(_0x4d18b8)},'is_activity':{'type':Boolean,'converter':_0x7a42e7=>Boolean(_0x7a42e7)},'is_readonly':{'type':Boolean,'converter':_0x55364b=>Boolean(_0x55364b)}};}static async[a0_0x547c41(0x10a)](_0x2ff60b){const _0x3e857e=a0_0x547c41;if(0x0==store[_0x3e857e(0xd3)]()[_0x3e857e(0x1ed)][_0x3e857e(0x17f)])return void document[_0x3e857e(0xc7)](new CustomEvent('notify',{'detail':{'level':_0x3e857e(0x150),'message':TermsUtil['tError'](_0x3e857e(0xfb))}}));let _0x390490=_0x2ff60b[_0x3e857e(0x148)]?UiUtil[_0x3e857e(0xa3)]():_0x2ff60b[_0x3e857e(0x147)];_0x2ff60b[_0x3e857e(0xa3)]=_0x390490;let _0x3df4d3=await MetaUiUtil[_0x3e857e(0xdb)](_0x2ff60b,_0x390490);return!0x0===_0x2ff60b[_0x3e857e(0x1e7)]&&(_0x3df4d3[_0x3e857e(0x145)]['option']['use_row_checker']=!0x1,_0x3df4d3['grid'][_0x3e857e(0x1e2)][_0x3e857e(0x169)]=_0x3e857e(0x18a),_0x3df4d3['grid'][_0x3e857e(0x1da)]=!0x1,_0x3df4d3['grid']['button']=[],_0x3df4d3[_0x3e857e(0xcb)]=_0x3df4d3[_0x3e857e(0xcb)]['filter'](_0x5979f2=>_0x3e857e(0x1d6)==_0x5979f2[_0x3e857e(0x159)])),!0x0===_0x2ff60b[_0x3e857e(0x13b)]&&(_0x3df4d3[_0x3e857e(0x1ba)][_0x3e857e(0x1b9)](_0x4f9d92=>{const _0x286a83=_0x3e857e;_0x4f9d92[_0x286a83(0xfa)]=!0x1;}),_0x3df4d3[_0x3e857e(0xcb)]=_0x3df4d3['button']['filter'](_0x36a170=>_0x3e857e(0x1d6)!=_0x36a170[_0x3e857e(0x159)])),!0x1===_0x2ff60b[_0x3e857e(0x1da)]&&(_0x3df4d3['grid'][_0x3e857e(0x1da)]=!0x1),_0x3df4d3;}static[a0_0x547c41(0x195)](..._0x340703){return{'pages':_0x340703};}static[a0_0x547c41(0x1d1)](_0x4730b5,_0x5f2e04){const _0x32d0bc=a0_0x547c41;let _0x2df597=[{'type':'gutter','gutterName':'dirty'},{'type':_0x32d0bc(0x176),'gutterName':_0x32d0bc(0x104)}];return _0x4730b5&&_0x2df597[_0x32d0bc(0x155)]({'type':_0x32d0bc(0x176),'gutterName':_0x32d0bc(0x13c),'multiple':_0x5f2e04}),_0x2df597;}static[a0_0x547c41(0xe6)](_0x321377){return{'selectable':{'multiple':_0x321377}};}static async[a0_0x547c41(0x1cc)](_0x2d215e){const _0x5df422=a0_0x547c41;let _0x29c170=MetaUiUtil[_0x5df422(0xd5)](_0x2d215e),_0x28294e=MetaUiUtil[_0x5df422(0xfe)](_0x2d215e),_0x8564f9=MetaUiUtil[_0x5df422(0x1e9)](_0x2d215e),_0x4dc207=MetaUiUtil[_0x5df422(0x179)](_0x2d215e),_0xb80cd=await MetaUiUtil[_0x5df422(0x177)](_0x2d215e),_0x226017=MetaUiUtil['getGristGuttersConfig'](_0x29c170[_0x5df422(0x128)],_0x8564f9[_0x5df422(0xf1)][_0x5df422(0x137)]);return 0x1==_0x2d215e[_0x5df422(0x16e)]&&(_0xb80cd=MetaUiUtil[_0x5df422(0x125)](_0x2d215e,_0xb80cd)),{'list':_0x28294e,'pagination':_0x29c170['pages'],'sorters':_0x29c170[_0x5df422(0x194)],'rows':_0x8564f9,'columns':[..._0x226017,..._0x4dc207,..._0xb80cd]};}static async[a0_0x547c41(0x1d2)](_0x2a16b5){const _0x4f10a0=a0_0x547c41;let _0x57ea03=_0x2a16b5[_0x4f10a0(0xe0)],_0x59a1b0=[];for(let _0x3ac9f3=0x0;_0x3ac9f3<_0x57ea03[_0x4f10a0(0xde)];_0x3ac9f3++){let {type:_0x34f69f=_0x4f10a0(0x18c),name:_0x5189a6,header:_0x3a60a7,hidden:_0x1af87e=!0x1,editable:_0x29c5a5=!0x0,mandatory:_0x36b18b=!0x1,align:_0x5dccba=_0x4f10a0(0x146),select_opt:_0x1c2f85,object_opt:_0x457b52}=_0x57ea03[_0x3ac9f3],_0x2ac62b={'type':_0x34f69f,'name':_0x5189a6,'header_txt':ValueUtil[_0x4f10a0(0x1a8)](_0x3a60a7)?TermsUtil[_0x4f10a0(0x196)](_0x5189a6):TermsUtil[_0x4f10a0(0x196)](_0x3a60a7),'header':{'renderer':function(_0x48623c){const _0xf7c451=_0x4f10a0;return _0x48623c[_0xf7c451(0x17e)];}},'hidden':_0x1af87e,'record':{'editable':_0x29c5a5,'mandatory':_0x36b18b,'align':_0x5dccba,'classifier':function(){},'renderer':getRenderer(_0x34f69f)}};_0x29c5a5&&(_0x2ac62b[_0x4f10a0(0xf6)][_0x4f10a0(0x102)]=getEditor(_0x34f69f)),_0x4f10a0(0x132)===_0x34f69f&&ValueUtil['isNotEmpty'](_0x1c2f85)?Array[_0x4f10a0(0x10c)](_0x1c2f85)?_0x2ac62b['record']['options']=_0x1c2f85:_0x4f10a0(0xb9)===_0x1c2f85['type']?_0x2ac62b[_0x4f10a0(0xf6)][_0x4f10a0(0x1c8)]=await ServiceUtil[_0x4f10a0(0x1dc)](_0x1c2f85['values']?_0x1c2f85[_0x4f10a0(0x1cd)]:_0x1c2f85[_0x4f10a0(0x159)]):_0x4f10a0(0xc8)===_0x1c2f85['type']?_0x2ac62b[_0x4f10a0(0xf6)][_0x4f10a0(0x1c8)]=await ServiceUtil[_0x4f10a0(0xf3)](_0x1c2f85[_0x4f10a0(0x159)],_0x1c2f85[_0x4f10a0(0xcc)]):'entity'===_0x1c2f85[_0x4f10a0(0x183)]&&(_0x2ac62b[_0x4f10a0(0xf6)][_0x4f10a0(0x1c8)]=await ServiceUtil['getCodeByEntity'](_0x1c2f85[_0x4f10a0(0xcc)])):_0x4f10a0(0x19c)!==_0x34f69f&&_0x4f10a0(0x1ef)!==_0x34f69f||!ValueUtil[_0x4f10a0(0x1c2)](_0x457b52)?_0x4f10a0(0x19e)===_0x34f69f&&ValueUtil[_0x4f10a0(0x1c2)](_0x457b52)&&(_0x2ac62b[_0x4f10a0(0xf6)]['options']=_0x457b52,_0x457b52['dispField']&&(_0x2ac62b['record']['options'][_0x4f10a0(0xd1)]=await ServiceUtil['getCodeByEntity'](_0x457b52))):(_0x457b52[_0x4f10a0(0x132)]&&_0x457b52[_0x4f10a0(0x132)][_0x4f10a0(0x1b9)](_0x4adb94=>{const _0x5acae0=_0x4f10a0;_0x4adb94[_0x5acae0(0x1e3)]||(_0x4adb94[_0x5acae0(0x1e3)]=_0x4adb94[_0x5acae0(0x159)]),_0x4adb94[_0x5acae0(0x1e3)]=TermsUtil['tLabel'](_0x4adb94[_0x5acae0(0x1e3)]);}),_0x2ac62b['record'][_0x4f10a0(0x1c8)]=_0x457b52),_0x59a1b0[_0x4f10a0(0x155)](_0x2ac62b);}return _0x59a1b0;}static[a0_0x547c41(0xd5)](_0x2a90c5){const _0x2f3d9a=a0_0x547c41;let _0x571604=_0x2a90c5[_0x2f3d9a(0x11f)];_0x2a90c5[_0x2f3d9a(0x16e)]=!_0x571604||null==_0x571604['use_filter_form']||_0x571604[_0x2f3d9a(0x1da)];let {mobile_mode:_0x1e5f24='LIST',desk_mode:_0x293de6=_0x2f3d9a(0x188),view_mode:_0x342e5d=[],use_row_checker:_0x111e42=!0x0,sorters:_0x433573=[],pages:_0x47c4fc=[0x32,0x64,0x1f4,0x3e8]}=ValueUtil[_0x2f3d9a(0x1a8)](_0x571604[_0x2f3d9a(0x1e2)])?{}:_0x571604['option'];return _0x2f3d9a(0x18a)===_0x47c4fc||'-1'===_0x47c4fc?(_0x2a90c5['infinityPage']=!0x0,_0x47c4fc={'infinite':!0x0}):(_0x2a90c5[_0x2f3d9a(0x19a)]=!0x1,_0x47c4fc['sort'](function(_0x5e7227,_0x18501b){return _0x5e7227-_0x18501b;}),_0x47c4fc={'pages':_0x47c4fc}),ValueUtil['isNotEmpty'](_0x342e5d)&&(0x1==_0x342e5d[_0x2f3d9a(0xde)]?(_0x293de6=_0x342e5d[0x0],_0x1e5f24=_0x342e5d[0x0]):_0x342e5d[_0x2f3d9a(0xde)]>=0x2&&(_0x342e5d['includes'](_0x1e5f24)||(_0x1e5f24=_0x342e5d[0x1]),_0x342e5d['includes'](_0x293de6)||(_0x293de6=_0x342e5d[0x0]))),_0x2a90c5[_0x2f3d9a(0x134)]=_0x1e5f24,_0x2a90c5[_0x2f3d9a(0x127)]=_0x293de6,_0x2a90c5[_0x2f3d9a(0xcd)]=_0x342e5d,_0x2a90c5[_0x2f3d9a(0x1cf)]=UiUtil['isMobileEnv']()?_0x2a90c5['gridMobileMode']:_0x2a90c5[_0x2f3d9a(0x127)],{'use_row_checker':_0x111e42,'sorters':_0x433573,'pages':_0x47c4fc};}static[a0_0x547c41(0xfe)](_0x195ffd){const _0x1d2c76=a0_0x547c41;let _0x13bcd6={'fields':[ValueUtil['getParams'](_0x195ffd['menuInfo'],_0x1d2c76(0x159)),ValueUtil['getParams'](_0x195ffd['menuInfo'],_0x1d2c76(0xbf))]};return _0x195ffd[_0x1d2c76(0x11f)][_0x1d2c76(0xba)]&&Object[_0x1d2c76(0x174)](_0x13bcd6,_0x195ffd['gridConfig'][_0x1d2c76(0xba)]),_0x13bcd6;}static[a0_0x547c41(0x1e9)](_0xc65338){const _0xa538e9=a0_0x547c41;let {multiple_select:_0x3b9d11=!0x1,click:_0x7e7cc8}=ValueUtil[_0xa538e9(0x1a8)](_0xc65338[_0xa538e9(0x11f)][_0xa538e9(0xeb)])?{}:_0xc65338[_0xa538e9(0x11f)][_0xa538e9(0xeb)],_0x1a34d5={'selectable':{'multiple':_0x3b9d11},'appendable':_0xc65338[_0xa538e9(0x1e1)]};return ValueUtil[_0xa538e9(0x1c2)](_0x7e7cc8)&&(_0x1a34d5[_0xa538e9(0x140)]={'click':_0x7e7cc8}),_0x1a34d5;}static[a0_0x547c41(0x179)](_0x1cfa13){const _0x389738=a0_0x547c41;let _0x4fdd82=_0x1cfa13[_0x389738(0x11f)][_0x389738(0xcb)];return ValueUtil[_0x389738(0x1a8)](_0x4fdd82)?[]:_0x4fdd82['map'](_0x5a0858=>{const _0x10a1c8=_0x389738;let _0x4e8baf={'type':_0x10a1c8(0x176),'gutterName':_0x10a1c8(0xcb)};if(ValueUtil[_0x10a1c8(0x1c2)](_0x5a0858[_0x10a1c8(0x131)])&&(Array[_0x10a1c8(0x10c)](_0x5a0858[_0x10a1c8(0x131)])?_0x4e8baf[_0x10a1c8(0x131)]=_0x10ccf2=>{const _0x4c3d3e=_0x10a1c8;if(ValueUtil['isNotEmpty'](_0x10ccf2))for(let _0x20c790=0x0;_0x20c790<_0x5a0858['icon'][_0x4c3d3e(0xde)];_0x20c790++){let _0x8e6d68=_0x5a0858[_0x4c3d3e(0x131)][_0x20c790];if(!0x0===ValueUtil[_0x4c3d3e(0x1b3)](_0x8e6d68,_0x10ccf2,Object['keys'](_0x8e6d68)[_0x4c3d3e(0x175)](_0x154bb8=>_0x4c3d3e(0x131)!=_0x154bb8)))return _0x8e6d68[_0x4c3d3e(0x131)];}}:_0x4e8baf[_0x10a1c8(0x131)]=_0x5a0858[_0x10a1c8(0x131)]),ValueUtil[_0x10a1c8(0x1c2)](_0x5a0858[_0x10a1c8(0x159)])&&(_0x4e8baf[_0x10a1c8(0x159)]=_0x5a0858['name']),ValueUtil[_0x10a1c8(0x1c2)](_0x5a0858['label'])&&(_0x4e8baf['title']=TermsUtil[_0x10a1c8(0x10d)](_0x5a0858[_0x10a1c8(0x10b)])),_0x10a1c8(0xdc)===_0x5a0858[_0x10a1c8(0x183)]){let _0x5124e6=ValueUtil[_0x10a1c8(0x103)](_0x5a0858,_0x10a1c8(0x1d8));[_0x10a1c8(0x1a0),_0x10a1c8(0xf9)]['includes'](_0x5124e6)?_0x4e8baf[_0x10a1c8(0x140)]={'click':(_0x23a206,_0x4924a7,_0x415924,_0x47edb3,_0x14bb18)=>{const _0x1dc4d5=_0x10a1c8;if(_0x47edb3['id']){let _0x15df87={'title':_0x1dc4d5(0x1a7),'type':_0x1dc4d5(0xa8),'tagname':_0x1dc4d5(0x1a0)==_0x5124e6?_0x1dc4d5(0x153):_0x1dc4d5(0xfc),'location':_0x1dc4d5(0x1a0)==_0x5124e6?'pages/hgistory/history-copy-list-popup.js':_0x1dc4d5(0x1d7),'menu':_0x1cfa13[_0x1dc4d5(0xa3)],'size':_0x1dc4d5(0x1a5),'popup_field':_0x1dc4d5(0xb3),'parent_field':'id'},_0x50b2cd={..._0x47edb3,'gqlFunc':ValueUtil[_0x1dc4d5(0x103)](_0x1cfa13[_0x1dc4d5(0xf8)],_0x1dc4d5(0x199),_0x1dc4d5(0x12d)),'gristConfig':JSON[_0x1dc4d5(0x171)](JSON[_0x1dc4d5(0x121)](_0x1cfa13[_0x1dc4d5(0x136)]['config']))};MetaUiUtil[_0x1dc4d5(0x119)](_0x1cfa13,{'logic':_0x15df87},_0x50b2cd);}}}:_0x4e8baf['handlers']={'click':_0x5124e6};}else _0x4e8baf[_0x10a1c8(0x140)]={'click':(_0x52b793,_0x36501b,_0x5ab5d7,_0x55aefd,_0x18fa22)=>{const _0xf5dd1=_0x10a1c8;_0x55aefd['id']&&MetaUiUtil[_0xf5dd1(0x119)](_0x1cfa13,_0x5a0858,_0x55aefd);}};return _0x4e8baf;});}static async[a0_0x547c41(0x177)](_0x17fb52){const _0x1f783c=a0_0x547c41;let _0xf70f6c=_0x17fb52[_0x1f783c(0xd2)];if(ValueUtil[_0x1f783c(0x1a8)](_0xf70f6c))return[];let _0x4221c2=[];for(let _0x18266f=0x0;_0x18266f<_0xf70f6c[_0x1f783c(0xde)];_0x18266f++){let {type:_0x4c3657=_0x1f783c(0x18c),name:_0x126222,header:_0x493590,hidden:_0xd56c79=!0x1,editable:_0x47e6e6=!0x0,mandatory:_0x5659a9=!0x1,sortable:_0x5332a1=!0x1,align:_0x28f776=_0x1f783c(0x146),width:_0x3c7e00=0x0,exportable:_0x550817=!0x1,select_opt:_0x241d44,object_opt:_0x58c9bb}=_0xf70f6c[_0x18266f],_0x3c6278={'type':_0x4c3657,'name':_0x126222,'header':ValueUtil[_0x1f783c(0x1a8)](_0x493590)?'':TermsUtil[_0x1f783c(0x196)](_0x493590),'hidden':_0xd56c79,'sortable':_0x5332a1,'width':_0x3c7e00,'record':{'editable':_0x47e6e6,'mandatory':_0x5659a9,'align':_0x28f776}};if(_0x1f783c(0x132)===_0x4c3657&&ValueUtil[_0x1f783c(0x1c2)](_0x241d44))Array[_0x1f783c(0x10c)](_0x241d44)?_0x3c6278[_0x1f783c(0xf6)][_0x1f783c(0x1c8)]=_0x241d44:_0x1f783c(0xb9)===_0x241d44[_0x1f783c(0x183)]?_0x3c6278[_0x1f783c(0xf6)][_0x1f783c(0x1c8)]=await ServiceUtil[_0x1f783c(0x1dc)](_0x241d44[_0x1f783c(0x1cd)]?_0x241d44[_0x1f783c(0x1cd)]:_0x241d44['name']):_0x1f783c(0xc8)===_0x241d44[_0x1f783c(0x183)]?_0x3c6278['record'][_0x1f783c(0x1c8)]=await ServiceUtil[_0x1f783c(0xf3)](_0x241d44['name'],_0x241d44[_0x1f783c(0xcc)]):_0x1f783c(0x1b6)===_0x241d44[_0x1f783c(0x183)]&&(_0x3c6278[_0x1f783c(0xf6)]['options']=await ServiceUtil['getCodeByEntity'](_0x241d44[_0x1f783c(0xcc)]));else{if(_0x1f783c(0x19c)!==_0x4c3657&&_0x1f783c(0x1ef)!==_0x4c3657||!ValueUtil[_0x1f783c(0x1c2)](_0x58c9bb))'resource-code-selector'===_0x4c3657&&ValueUtil[_0x1f783c(0x1c2)](_0x58c9bb)&&(_0x3c6278[_0x1f783c(0xf6)][_0x1f783c(0x1c8)]=_0x58c9bb,_0x58c9bb['dispField']&&(_0x3c6278[_0x1f783c(0xf6)][_0x1f783c(0x1c8)][_0x1f783c(0xd1)]=await ServiceUtil['getCodeByEntity'](_0x58c9bb)));else{let _0x3f30c2;_0x58c9bb[_0x1f783c(0x132)]&&_0x58c9bb['select'][_0x1f783c(0x1b9)](_0x136770=>{const _0x206a5a=_0x1f783c;_0x136770[_0x206a5a(0x1e3)]||(_0x136770['header']=_0x136770['name']),_0x136770['header']=TermsUtil[_0x206a5a(0x196)](_0x136770['header']);}),_0x3c6278[_0x1f783c(0xf6)][_0x1f783c(0x1c8)]={..._0x58c9bb},_0x58c9bb['basicArgs']&&_0x58c9bb[_0x1f783c(0xb1)]['filters']&&(_0x3f30c2=[..._0x58c9bb['basicArgs'][_0x1f783c(0x111)]]),_0x3f30c2&&JSON[_0x1f783c(0x121)](_0x3f30c2)[_0x1f783c(0x133)]('::')&&(_0x3c6278[_0x1f783c(0x140)]={'dblclick':(_0x268357,_0x537294,_0x23bd90,_0x153c70,_0xdf4218)=>{const _0x3867fe=_0x1f783c;let _0x1d04e0=[];_0x3f30c2[_0x3867fe(0x1b9)](_0x1fb7a9=>{const _0x2cc5c4=_0x3867fe;var {name:_0x3976c8,value:_0xa6dfd,operator:_0x575f91='eq'}=_0x1fb7a9;_0xa6dfd['includes']('::')&&(_0xa6dfd=ValueUtil['getParams'](_0x153c70,..._0xa6dfd[_0x2cc5c4(0x190)]('::','')['split']('.'))),_0xa6dfd||(_0xa6dfd=''),_0x1d04e0[_0x2cc5c4(0x155)]({'name':_0x3976c8,'operator':_0x575f91,'value':_0xa6dfd});}),_0x23bd90[_0x3867fe(0xf6)][_0x3867fe(0x1c8)][_0x3867fe(0xb1)][_0x3867fe(0x111)]=_0x1d04e0;}});}}!0x0===_0x17fb52[_0x1f783c(0xca)]&&!0x0===_0x550817&&(_0x3c6278[_0x1f783c(0xdd)]={'header':_0x3c6278[_0x1f783c(0x1e3)],'key':_0x3c6278['name'],'width':_0x3c6278[_0x1f783c(0xd0)]/0x6,'type':_0x3c6278[_0x1f783c(0x183)]}),_0x4221c2[_0x1f783c(0x155)](_0x3c6278);}if(!0x0!==this[_0x1f783c(0x1e7)])return _0x4221c2;let _0x16e1fa=await MetaApi[_0x1f783c(0xe4)](this['menuId']),{template:_0x2cf74c={}}=_0x16e1fa;if(!_0x2cf74c[_0x1f783c(0xb2)])return _0x4221c2;let _0x5ccddb=_0x2cf74c[_0x1f783c(0xb2)];return _0x4221c2=_0x4221c2[_0x1f783c(0x1e5)](_0x3d206a=>('id'==_0x3d206a[_0x1f783c(0x159)]||(_0x3d206a[_0x1f783c(0xaf)]=!_0x5ccddb[_0x1f783c(0x133)](_0x3d206a[_0x1f783c(0x159)]),_0x3d206a['rank']=_0x5ccddb[_0x1f783c(0x1dd)](_0x3d206a['name']),-0x1==_0x3d206a['rank']&&(_0x3d206a[_0x1f783c(0x16b)]=0x1869f)),_0x3d206a)),_0x4221c2[_0x1f783c(0xc4)]((_0x11b82d,_0x4216b4)=>_0x11b82d['rank']-_0x4216b4[_0x1f783c(0x16b)]),_0x4221c2;}static['setGridColumnSearchOption'](_0x4da59b,_0x55c9f2){const _0x4ea223=a0_0x547c41;let _0x17de2e=_0x4da59b[_0x4ea223(0x1bc)];return _0x17de2e&&_0x17de2e['forEach'](_0x39e5b4=>{const _0xf0a817=_0x4ea223;_0xf0a817(0x18c)==typeof _0x39e5b4?_0x55c9f2[_0xf0a817(0x175)](_0x5240f7=>_0x5240f7[_0xf0a817(0x159)]==_0x39e5b4)[_0xf0a817(0x1b9)](_0x47a7f8=>{const _0x5766a6=_0xf0a817;_0x47a7f8[_0x5766a6(0x175)]='search';}):_0xf0a817(0x19c)==typeof _0x39e5b4&&_0x55c9f2[_0xf0a817(0x175)](_0x32998c=>_0x32998c[_0xf0a817(0x159)]==_0x39e5b4[_0xf0a817(0x159)])[_0xf0a817(0x1b9)](_0x1cc46c=>{const _0x51d6c1=_0xf0a817;_0x1cc46c[_0x51d6c1(0x175)]=_0x39e5b4;let _0x17d742=_0x1cc46c['filter'][_0x51d6c1(0xa4)];if(_0x17d742&&_0x17d742[_0x51d6c1(0x110)](_0x51d6c1(0x11c))){let _0x7e009=_0x17d742[_0x51d6c1(0x107)](','),_0x486895=[];_0x7e009[_0x51d6c1(0x1b9)](_0x59de99=>{const _0x10cbf6=_0x51d6c1,_0x44a02e=a0_0x175fd1();_0x10cbf6(0x11c)==_0x59de99?_0x486895[_0x10cbf6(0x155)](_0x44a02e[_0x10cbf6(0x172)](_0x10cbf6(0xe8))):_0x59de99[_0x10cbf6(0x133)]('-')?_0x486895[_0x10cbf6(0x155)](_0x44a02e[_0x10cbf6(0x112)](_0x59de99['split']('-')[0x1],_0x10cbf6(0x1e0))[_0x10cbf6(0x172)](_0x10cbf6(0xe8))):_0x59de99[_0x10cbf6(0x133)]('+')&&_0x486895['push'](_0x44a02e['add'](_0x59de99[_0x10cbf6(0x107)]('+')[0x1],_0x10cbf6(0x1e0))[_0x10cbf6(0x172)](_0x10cbf6(0xe8)));}),_0x1cc46c[_0x51d6c1(0x175)][_0x51d6c1(0xa4)]=0x1==_0x486895['length']?_0x486895[0x0]:_0x486895;}});}),_0x55c9f2;}static[a0_0x547c41(0x180)](_0x48c707){const _0x3e2f40=a0_0x547c41;let _0x25b170={'title':TermsUtil[_0x3e2f40(0x13e)](_0x48c707['menuInfo']['title']),'help':_0x48c707[_0x3e2f40(0x154)][_0x3e2f40(0x17a)]||'','actions':[...MetaUiUtil[_0x3e2f40(0xe7)](_0x48c707)]};return _0x48c707[_0x3e2f40(0xca)]&&(_0x25b170['exportable']={'name':_0x25b170[_0x3e2f40(0x12f)],'data':_0x48c707[_0x3e2f40(0xbd)][_0x3e2f40(0x12e)](_0x48c707)}),_0x48c707['useButtonImport']&&(_0x25b170[_0x3e2f40(0xb6)]={'handler':_0x48c707['import'][_0x3e2f40(0x12e)](_0x48c707)}),_0x25b170;}static['getContextButtons'](_0x2a52a6){const _0x16df3d=a0_0x547c41;let _0x1f0433=_0x2a52a6[_0x16df3d(0x1b0)];return ValueUtil['isEmpty'](_0x1f0433)?[]:_0x1f0433[_0x16df3d(0x175)](_0x15686f=>_0x16df3d(0xbd)!=_0x15686f[_0x16df3d(0x159)]&&_0x16df3d(0x16f)!=_0x15686f[_0x16df3d(0x159)]&&_0x16df3d(0x1d6)!=_0x15686f[_0x16df3d(0x159)])['map'](_0x262e71=>{const _0x454954=_0x16df3d;let {name:_0x115621,label:_0x16c8e6,style:_0x159d7d,type:_0x1cc3af=_0x454954(0xdc),action:_0x2933ba,logic:_0x22092c}=_0x262e71;if(ValueUtil[_0x454954(0x1a8)](_0x115621))return{'title':'-1'};ValueUtil[_0x454954(0x1a8)](_0x16c8e6)&&(_0x16c8e6=_0x115621),ValueUtil[_0x454954(0x1a8)](_0x159d7d)&&(_0x159d7d=_0x115621),ValueUtil[_0x454954(0x1a8)](_0x2933ba)&&(_0x2933ba=_0x115621);let _0x12ce35=ValueUtil[_0x454954(0x1c2)](_0x159d7d)?CommonButtonStyles[_0x159d7d]||{'icon':_0x159d7d,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}}:{};return{'title':TermsUtil[_0x454954(0x10d)](_0x16c8e6),'action':MetaUiUtil[_0x454954(0x14a)](_0x2a52a6,_0x1cc3af,_0x2933ba,_0x22092c),..._0x12ce35};})['filter'](_0x558208=>'-1'!=_0x558208['title']);}static[a0_0x547c41(0xa9)](_0x436970){const _0x15bfff=a0_0x547c41;let _0x593799=_0x436970&&_0x436970[_0x15bfff(0x1b0)]?_0x436970[_0x15bfff(0x1b0)]:null;return _0x593799?_0x593799['filter'](_0x5bb6e7=>_0x15bfff(0x1d6)!=_0x5bb6e7[_0x15bfff(0x159)])[_0x15bfff(0x1e5)](_0x3b4ed9=>{const _0x46a30a=_0x15bfff;let {name:_0x4132ce,label:_0x5d0f3e,style:_0x421e82,type:_0x189bff=_0x46a30a(0xdc),action:_0x3c02bd,logic:_0x52f597}=_0x3b4ed9;ValueUtil[_0x46a30a(0x1a8)](_0x5d0f3e)&&(_0x5d0f3e=_0x4132ce),ValueUtil[_0x46a30a(0x1a8)](_0x421e82)&&(_0x421e82=_0x4132ce),ValueUtil[_0x46a30a(0x1a8)](_0x3c02bd)&&(_0x3c02bd=_0x4132ce);let _0x19a3fd=MetaUiUtil[_0x46a30a(0xfd)](TermsUtil['tButton'](_0x5d0f3e),_0x421e82);return _0x19a3fd[_0x46a30a(0x11d)]=MetaUiUtil['getButtonActionHandler'](_0x436970,_0x189bff,_0x3c02bd,_0x52f597),_0x19a3fd;}):[];}static[a0_0x547c41(0xfd)](_0x5a18b5,_0x51c07c){const _0x4c684f=a0_0x547c41;let _0x555850=CommonButtonStyles[_0x51c07c]||{'icon':_0x51c07c,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}},_0x46f313=_0x4c684f(0xe3)+_0x5a18b5+'\x22\x20style=\x22margin-left:7px;margin-top:7px;\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20icon=\x22'+(_0x555850[_0x4c684f(0x131)]?_0x555850[_0x4c684f(0x131)]:'')+'\x22\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x555850[_0x4c684f(0x11b)][_0x4c684f(0x1d0)]?'raised':'')+_0x4c684f(0x12b)+(_0x555850[_0x4c684f(0x11b)]['outlined']?_0x4c684f(0x1d9):'')+_0x4c684f(0x12b)+(_0x555850[_0x4c684f(0x11b)][_0x4c684f(0xad)]?'dense':'')+_0x4c684f(0x12b)+(_0x555850['emphasis']['danger']?_0x4c684f(0x1e6):'')+_0x4c684f(0x15b);return UiUtil[_0x4c684f(0x143)](_0x46f313);}static[a0_0x547c41(0x14a)](_0x5d4a8f,_0x42611f,_0x13e78e,_0x53ea51){const _0x41daab=a0_0x547c41;if(_0x41daab(0xdc)==_0x42611f){if(_0x5d4a8f[_0x13e78e])return _0x5d4a8f[_0x13e78e]['bind'](_0x5d4a8f);}else{if(_0x41daab(0xf7)==_0x42611f)return()=>MetaUiUtil['customButtonHandler'](_0x5d4a8f,_0x53ea51);}return()=>{const _0x24d8bc=_0x41daab;UiUtil[_0x24d8bc(0x1de)](_0x24d8bc(0x198),_0x24d8bc(0x142),_0x24d8bc(0x114),_0x24d8bc(0xef));};}static async[a0_0x547c41(0x119)](_0x397f41,_0x578ab8,_0x3c5b2b){const _0x3f89f9=a0_0x547c41;let _0x5b038c=ValueUtil['getParams'](_0x578ab8,'logic'),_0x4c1630=ValueUtil[_0x3f89f9(0x103)](_0x5b038c,_0x3f89f9(0x183));if(_0x3f89f9(0x12c)===_0x4c1630)_0x5b038c[_0x3f89f9(0x123)]='meta-form-element',_0x5b038c[_0x3f89f9(0x1c9)]=_0x3f89f9(0x189),_0x5b038c[_0x3f89f9(0x11a)]='id',await MetaUiUtil['commonButtonOpenPopup'](_0x397f41,_0x5b038c,_0x3c5b2b);else{if(_0x3f89f9(0xf2)===_0x4c1630)MetaUiUtil[_0x3f89f9(0x193)](_0x397f41,_0x5b038c,_0x3c5b2b);else{if('page'===_0x4c1630){let _0x6faa83;_0x5b038c[_0x3f89f9(0x152)]?(_0x6faa83={},Object[_0x3f89f9(0x1aa)](_0x3c5b2b)[_0x3f89f9(0x175)](_0x2f55ea=>Object['keys'](_0x5b038c[_0x3f89f9(0x152)])['includes'](_0x2f55ea))[_0x3f89f9(0x1e5)](_0xce5822=>{const _0x42459a=_0x3f89f9;Object[_0x42459a(0x1aa)](_0x5b038c[_0x42459a(0x152)])[_0x42459a(0x133)](_0xce5822)&&(_0x42459a(0x18c)==typeof _0x3c5b2b[_0xce5822]?_0x6faa83[_0x5b038c[_0x42459a(0x152)][_0xce5822]]=_0x3c5b2b[_0xce5822]:_0x6faa83[_0x5b038c['param_field'][_0xce5822]]={'id':_0x3c5b2b[_0xce5822]['id']});})):_0x6faa83=_0x3c5b2b,UiUtil[_0x3f89f9(0x17c)](_0x5b038c[_0x3f89f9(0xcf)],[_0x6faa83]);}else _0x3f89f9(0xa8)===_0x4c1630?await MetaUiUtil[_0x3f89f9(0xab)](_0x397f41,_0x5b038c,_0x3c5b2b):_0x3f89f9(0xc8)===_0x4c1630?await MetaUiUtil[_0x3f89f9(0x1a3)](_0x397f41,_0x5b038c,_0x3c5b2b):'value_reference'===_0x4c1630&&await MetaUiUtil[_0x3f89f9(0x108)](_0x397f41,_0x5b038c,_0x3c5b2b);}}}static async[a0_0x547c41(0xa7)](_0x4d81bb,_0x3d80be){const _0x2adc99=a0_0x547c41;if(ValueUtil[_0x2adc99(0x1a8)](_0x3d80be))return;let _0x8a4f52=_0x4d81bb[_0x2adc99(0x136)],_0x3c3acb=_0x4d81bb['filterForm'],_0x4c83e3=ValueUtil[_0x2adc99(0x103)](_0x3d80be,'type'),_0x309cf3=ValueUtil[_0x2adc99(0x103)](_0x3d80be,'param'),_0x249f39=_0x309cf3[_0x2adc99(0x175)](_0x35e7af=>_0x35e7af['startsWith'](_0x2adc99(0x136)));if(ValueUtil[_0x2adc99(0x1c2)](_0x249f39)){if(!_0x8a4f52)return void UiUtil[_0x2adc99(0x1de)](_0x2adc99(0x182),_0x2adc99(0xd8),'info','confirm');if(0x0==(_0x8a4f52[_0x2adc99(0xed)]?_0x8a4f52[_0x2adc99(0xed)]['records']:[])['length'])return void UiUtil['showAlertPopup'](_0x2adc99(0x182),_0x2adc99(0xce),_0x2adc99(0x114),'confirm');if(_0x309cf3[_0x2adc99(0x133)]('grist_one')||_0x309cf3[_0x2adc99(0x133)](_0x2adc99(0x130))){let _0x3a9738=_0x8a4f52[_0x2adc99(0xa6)];if(ValueUtil['isEmpty'](_0x3a9738))return void UiUtil[_0x2adc99(0x1de)](_0x2adc99(0x14e),_0x2adc99(0x14d),_0x2adc99(0x114),_0x2adc99(0xef));if(_0x309cf3['includes'](_0x2adc99(0x15f))&&_0x3a9738['length']>0x1)return void UiUtil[_0x2adc99(0x1de)](_0x2adc99(0x182),_0x2adc99(0x1cb),'info',_0x2adc99(0xef));}}let _0x2af1a4={};if(_0x309cf3[_0x2adc99(0x133)]('filter')){if(!_0x3c3acb)return void UiUtil[_0x2adc99(0x1de)](_0x2adc99(0x182),'text.search_form_is_not_exist','info',_0x2adc99(0xef));let _0x1d26b8=_0x3c3acb?await _0x3c3acb['getQueryFilters']():[];_0x2af1a4['filter']=_0x1d26b8;}if(_0x309cf3[_0x2adc99(0x133)](_0x2adc99(0x1bb)))_0x2af1a4[_0x2adc99(0x136)]=_0x8a4f52[_0x2adc99(0xed)]['records'];else{if(_0x309cf3[_0x2adc99(0x133)](_0x2adc99(0x15f)))_0x2af1a4[_0x2adc99(0x136)]=_0x8a4f52[_0x2adc99(0xa6)][0x0];else{if(_0x309cf3['includes']('grist_selected'))_0x2af1a4[_0x2adc99(0x136)]=_0x8a4f52['selected'];else{if(_0x309cf3[_0x2adc99(0x133)]('grist_changed')&&(_0x2af1a4['grist']=ServiceUtil[_0x2adc99(0xbc)](_0x8a4f52),!_0x2af1a4['grist']))return;}}}if('page'===_0x4c83e3){let _0x58fd60,_0x2c25dd=Array[_0x2adc99(0x10c)](_0x2af1a4[_0x2adc99(0x136)])?_0x2af1a4[_0x2adc99(0x136)]:[_0x2af1a4[_0x2adc99(0x136)]];_0x58fd60=_0x3d80be[_0x2adc99(0x152)]?_0x2c25dd[_0x2adc99(0x1e5)](_0x290439=>{const _0x1a501e=_0x2adc99;let _0x8a12f4={};return Object[_0x1a501e(0x1aa)](_0x290439)[_0x1a501e(0x175)](_0xa68e03=>Object[_0x1a501e(0x1aa)](_0x3d80be['param_field'])[_0x1a501e(0x133)](_0xa68e03))[_0x1a501e(0x1e5)](_0x243888=>{const _0x27b4eb=_0x1a501e;Object[_0x27b4eb(0x1aa)](_0x3d80be[_0x27b4eb(0x152)])[_0x27b4eb(0x133)](_0x243888)&&(_0x27b4eb(0x18c)==typeof _0x290439[_0x243888]?_0x8a12f4[_0x3d80be[_0x27b4eb(0x152)][_0x243888]]=_0x290439[_0x243888]:_0x8a12f4[_0x3d80be['param_field'][_0x243888]]={'id':_0x290439[_0x243888]['id']});}),_0x8a12f4;}):_0x2c25dd,UiUtil['pageNavigate'](_0x3d80be[_0x2adc99(0xcf)],_0x58fd60);}else{if(_0x2adc99(0xa8)===_0x4c83e3){let _0x3af8bb={..._0x2af1a4['grist']?_0x2af1a4[_0x2adc99(0x136)]:{},..._0x2af1a4[_0x2adc99(0x175)]?_0x2af1a4[_0x2adc99(0x175)]:{}};await MetaUiUtil['commonButtonOpenPopup'](_0x4d81bb,_0x3d80be,_0x3af8bb);}else'scenario'===_0x4c83e3&&await MetaUiUtil[_0x2adc99(0x1a3)](_0x4d81bb,_0x3d80be,_0x2af1a4);}}static[a0_0x547c41(0x193)](_0x11e4a5,_0x604900,_0x47dabe){const _0x403f05=a0_0x547c41;let _0x9662f2=_0x604900[_0x403f05(0x139)],_0x4bcf6c={},_0x5ccf32=_0x11e4a5[_0x403f05(0x186)][_0x403f05(0xf5)](),_0x318628=_0x11e4a5;_0x4bcf6c=_0x5ccf32[_0x403f05(0x110)](_0x403f05(0x13a))?{'detail':{..._0x9662f2}}:_0x5ccf32['startsWith']('meta-master-detail-')?_0x11e4a5[_0x403f05(0xd9)][_0x403f05(0x186)][_0x403f05(0xf5)]()[_0x403f05(0x110)](_0x403f05(0x1eb))?{'detail':{..._0x9662f2}}:{'self':{..._0x9662f2}}:_0x9662f2,Object[_0x403f05(0x1aa)](_0x4bcf6c)['forEach'](_0x5ed51e=>{const _0x223ba6=_0x403f05;_0x223ba6(0xb2)==_0x5ed51e?_0x318628=_0x11e4a5[_0x223ba6(0x144)][_0x223ba6(0xc2)]:_0x223ba6(0x1ce)==_0x5ed51e?_0x318628=_0x11e4a5[_0x223ba6(0x144)]?_0x11e4a5[_0x223ba6(0x144)][_0x223ba6(0xd9)]:_0x11e4a5[_0x223ba6(0xd9)]:'self'==_0x5ed51e&&(_0x318628=_0x11e4a5),Object[_0x223ba6(0x1aa)](_0x4bcf6c[_0x5ed51e])[_0x223ba6(0x1b9)](_0x692bda=>{const _0x30dc21=_0x223ba6;let _0x29994e=_0x318628[_0x30dc21(0x163)]['querySelector']('#'+_0x692bda);_0x47dabe['id']&&_0x29994e['setParentId'](_0x47dabe['id']);let _0x6c98ba=_0x4bcf6c[_0x5ed51e][_0x692bda];Object[_0x30dc21(0x1aa)](_0x6c98ba)[_0x30dc21(0x1b9)](_0x1e1286=>{let _0x570925=_0x6c98ba[_0x1e1286],_0x57504a='*'===_0x570925?_0x47dabe:_0x47dabe[_0x570925];_0x29994e[_0x1e1286]=_0x57504a;});});});}static async[a0_0x547c41(0xab)](_0x4a44bd,_0x1e1caa,_0x2c6af7){const _0x29fab3=a0_0x547c41;let _0x26a660=TermsUtil['tTitle'](_0x1e1caa[_0x29fab3(0x12f)]);ValueUtil[_0x29fab3(0x1c2)](_0x1e1caa[_0x29fab3(0x12a)])&&(_0x26a660=_0x26a660+'('+ValueUtil[_0x29fab3(0x103)](_0x2c6af7,..._0x1e1caa['title_detail'][_0x29fab3(0x107)]('.'))+')');let _0x3227aa=_0x1e1caa[_0x29fab3(0x184)]&&_0x29fab3(0x18c)==typeof _0x1e1caa[_0x29fab3(0x184)]&&_0x29fab3(0xe2)===_0x1e1caa[_0x29fab3(0x184)]&&_0x4a44bd&&_0x4a44bd['fetch']?_0x4a44bd['fetch']['bind'](_0x4a44bd):void 0x0;UiUtil[_0x29fab3(0xc1)](_0x26a660,_0x1e1caa,_0x2c6af7,_0x3227aa);}static async[a0_0x547c41(0x1a3)](_0x4a8852,_0x17a14c,_0x42205f){const _0x1a0d0d=a0_0x547c41;let _0xa1c59a=await ServiceUtil[_0x1a0d0d(0x1c6)](_0x1a0d0d(0x1ac),_0x17a14c[_0x1a0d0d(0x159)],_0x42205f);if(!_0xa1c59a[_0x1a0d0d(0x126)]&&!ValueUtil[_0x1a0d0d(0x1a8)](_0x17a14c[_0x1a0d0d(0x184)])&&_0x17a14c[_0x1a0d0d(0x184)]){if(_0x1a0d0d(0xe2)!==_0x17a14c['after']){if('object'==typeof _0x17a14c['after']){let _0x1c9d38=_0x17a14c['after'],_0x3ac856=ValueUtil[_0x1a0d0d(0x103)](_0xa1c59a['data'][_0x1a0d0d(0x1d3)]['data'],..._0x1c9d38[_0x1a0d0d(0x16c)][_0x1a0d0d(0x107)]('.'));if(0x0==Array[_0x1a0d0d(0x10c)](_0x3ac856)&&(_0x3ac856=[_0x3ac856]),_0x1a0d0d(0x12c)===_0x1c9d38[_0x1a0d0d(0x183)])_0x1c9d38['tagname']=_0x1a0d0d(0x1ee),_0x1c9d38[_0x1a0d0d(0x1c9)]=_0x1a0d0d(0x189),_0x1c9d38[_0x1a0d0d(0x11a)]='id',_0x3ac856=_0x3ac856[0x0],await MetaUiUtil[_0x1a0d0d(0xab)](_0x4a8852,_0x1c9d38,_0x3ac856);else{if(_0x1a0d0d(0xa5)===_0x1c9d38['type']){let _0x4d4b8a,_0x22052c=_0x3ac856;_0x4d4b8a=_0x1c9d38[_0x1a0d0d(0x152)]?_0x22052c['map'](_0x1db6b2=>{const _0x4f9f2e=_0x1a0d0d;let _0x5b6252={};return Object['keys'](_0x1db6b2)[_0x4f9f2e(0x175)](_0xa57d9=>Object['keys'](_0x1c9d38[_0x4f9f2e(0x152)])[_0x4f9f2e(0x133)](_0xa57d9))[_0x4f9f2e(0x1e5)](_0x2a7739=>{const _0x38ad27=_0x4f9f2e;Object[_0x38ad27(0x1aa)](_0x1c9d38['param_field'])[_0x38ad27(0x133)](_0x2a7739)&&(_0x38ad27(0x18c)==typeof _0x1db6b2[_0x2a7739]?_0x5b6252[_0x1c9d38['param_field'][_0x2a7739]]=_0x1db6b2[_0x2a7739]:_0x5b6252[_0x1c9d38[_0x38ad27(0x152)][_0x2a7739]]={'id':_0x1db6b2[_0x2a7739]['id']});}),_0x5b6252;}):_0x22052c,UiUtil['pageNavigate'](_0x1c9d38[_0x1a0d0d(0xcf)],_0x4d4b8a);}else'pass_param'===_0x1c9d38[_0x1a0d0d(0x183)]?(_0x3ac856=_0x3ac856[0x0],MetaUiUtil[_0x1a0d0d(0x193)](_0x4a8852,_0x1c9d38,_0x3ac856)):'popup'===_0x1c9d38[_0x1a0d0d(0x183)]?(_0x3ac856=_0x3ac856[0x0],await MetaUiUtil[_0x1a0d0d(0xab)](_0x4a8852,_0x1c9d38,_0x3ac856)):_0x1a0d0d(0x13f)===_0x1c9d38[_0x1a0d0d(0x183)]&&(_0x3ac856=_0x3ac856[0x0],await MetaUiUtil['gristButtonValueReference'](_0x4a8852,_0x1c9d38,_0x3ac856));}}}else _0x4a8852[_0x1a0d0d(0xe2)]();}}static async[a0_0x547c41(0x108)](_0x2f1aa9,_0x3e3cd1,_0x3959bc){const _0x489228=a0_0x547c41;for(let _0x342c12=0x0;_0x342c12<_0x3e3cd1[_0x489228(0xe9)][_0x489228(0xde)];_0x342c12++){let _0x54eee3=_0x3e3cd1[_0x489228(0xe9)][_0x342c12];!0x0===ValueUtil['compareObjectValues'](_0x54eee3,_0x3959bc,Object[_0x489228(0x1aa)](_0x54eee3)[_0x489228(0x175)](_0x52ba68=>'logic'!=_0x52ba68))&&await MetaUiUtil[_0x489228(0x119)](_0x2f1aa9,_0x54eee3,_0x3959bc);}}static[a0_0x547c41(0x18d)](_0x165578,_0x4f540a){return{'type':_0x165578,'name':_0x4f540a,'sortable':!0x1,'hidden':!0x0};}static[a0_0x547c41(0x1b7)](_0x57447c,_0xe62b00,_0x37735c,_0x3f64bf,_0x29624e,_0x5cabbe){const _0x9f5333=a0_0x547c41;let _0x569593=TermsUtil[_0x9f5333(0x196)](_0xe62b00);return{'type':_0x57447c,'name':_0xe62b00,'header':_0x569593,'record':{'align':_0x37735c,'editable':_0x3f64bf},'sortable':_0x29624e,'width':_0x5cabbe,'imex':{'width':Math['floor'](_0x5cabbe/0x6),'header':_0x569593,'type':_0x57447c,'key':_0xe62b00}};}static['getGristColumnConfig2'](_0x1d55c9,_0x5cfa31,_0xab2574,_0x47e574,_0x5bb15d,_0xeb5e93,_0x23a59f){const _0x4a11f3=a0_0x547c41;let _0x4163ea=TermsUtil[_0x4a11f3(0x196)](_0xab2574);return{'type':_0x1d55c9,'name':_0x5cfa31,'header':_0x4163ea,'record':{'align':_0x47e574,'editable':_0x5bb15d},'sortable':_0xeb5e93,'width':_0x23a59f,'imex':{'width':Math[_0x4a11f3(0x10e)](_0x23a59f/0x6),'header':_0x4163ea,'type':_0x1d55c9,'key':_0x5cfa31}};}static['getGristColumnConfig3'](_0x2915c7,_0xb4b7ba,_0x1ca6ef,_0x59d29c,_0x1061a3,_0x349e99,_0x43bf73,_0x4ba322){const _0x10dab8=a0_0x547c41;let _0x456370=TermsUtil[_0x10dab8(0x196)](_0x1ca6ef);return{'type':_0x2915c7,'name':_0xb4b7ba,'header':_0x456370,'record':{'align':_0x59d29c,'editable':_0x1061a3,'mandatory':_0x43bf73},'sortable':_0x349e99,'width':_0x4ba322,'imex':{'width':Math['floor'](_0x4ba322/0x6),'header':_0x456370,'type':_0x2915c7,'key':_0xb4b7ba}};}static[a0_0x547c41(0x13d)](_0x242bbb,_0xd936a7,_0xad2c55,_0x464d08,_0x42acc3,_0x31c49,_0x195d82){const _0x52034b=a0_0x547c41;let _0xeabcb8=TermsUtil[_0x52034b(0x196)](_0xd936a7);return{'type':'select','name':_0x242bbb,'header':_0xeabcb8,'record':{'align':_0xad2c55,'editable':!0x0,'mandatory':_0x31c49,'options':_0x195d82},'sortable':_0x464d08,'width':_0x42acc3,'imex':{'width':Math[_0x52034b(0x10e)](_0x42acc3/0x6),'header':_0xeabcb8,'type':'string','key':_0x242bbb}};}static async['getGristCodeSelectorColumnConfig'](_0x27c8a8,_0x331b32,_0x68899a,_0x4a20fe,_0xda11ed,_0x197927,_0x5124b2){const _0x556e36=a0_0x547c41;let _0x926e39=await ServiceUtil[_0x556e36(0x1dc)](_0x5124b2);return MetaUiUtil[_0x556e36(0x13d)](_0x27c8a8,_0x331b32,_0x68899a,_0x4a20fe,_0xda11ed,_0x197927,_0x926e39);}static[a0_0x547c41(0x1a6)](_0x376d03,_0x1267e7,_0x50df2a,_0x55ebf0,_0x311935){const _0x29adc8=a0_0x547c41;let _0x2f21d9=TermsUtil[_0x29adc8(0x196)](_0x50df2a),_0x954d28={'name':_0x376d03,'type':_0x1267e7,'label':_0x2f21d9,'operator':_0x55ebf0,'imex':{'width':0x10,'header':_0x2f21d9,'type':_0x1267e7,'key':_0x376d03}};return _0x311935&&(_0x954d28[_0x29adc8(0x1c8)]=_0x311935),_0x954d28;}static async[a0_0x547c41(0x1db)](_0x373908,_0x407189,_0x5e0cb2,_0x10373d,_0x557554){const _0x30d54c=a0_0x547c41;let _0x432629=await ServiceUtil[_0x30d54c(0x1dc)](_0x557554);return MetaUiUtil[_0x30d54c(0x1a6)](_0x373908,_0x407189,_0x5e0cb2,_0x10373d,_0x432629);}static[a0_0x547c41(0x192)](){return[css`
|
|
5
|
+
`,'variables':{'id':null}}))[_0x282397(0x2ab)])return;let _0x52ceb,_0x2ec59b=[{'name':_0x282397(0x1c8),'operator':'eq','value':_0x52c49e}],_0x33b3f9=await ServiceUtil[_0x282397(0x218)](_0x282397(0x2ad),_0x2ec59b,null,0x0,0x0,_0x282397(0x1e6));if(_0x33b3f9&&_0x33b3f9[_0x282397(0x1ef)]&&0x0!=_0x33b3f9[_0x282397(0x1ef)][_0x282397(0x1a6)]?(_0x52ceb=_0x33b3f9['records'][0x0],!_0x52ceb[_0x282397(0x252)]&&_0xf1d47c[_0x282397(0x279)]&&(_0x52ceb[_0x282397(0x252)]=_0xf1d47c[_0x282397(0x279)])):_0xf1d47c[_0x282397(0x279)]&&(_0x52ceb={'id':_0x52c49e,'template':_0xf1d47c[_0x282397(0x279)]}),!_0x52ceb)throw new Error(TermsUtil[_0x282397(0x262)](_0x282397(0x1e3),{'value':TermsUtil[_0x282397(0x26b)](_0x282397(0x1f9))+'\x20'+_0x52c49e}));if(!_0x52ceb[_0x282397(0x252)])throw new Error(TermsUtil[_0x282397(0x262)](_0x282397(0x1e3),{'value':TermsUtil['tMenu'](_0x282397(0x1f9))+'\x20'+TermsUtil[_0x282397(0x1a9)](_0x282397(0x1b6))}));return this['menuId']=_0x52ceb['id'],JSON['parse'](MetaCrypto[_0x282397(0x214)](_0x52ceb[_0x282397(0x252)]));}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':_0x41bf04=>Boolean(_0x41bf04)},'is_popup':{'type':Boolean,'converter':_0x398b3f=>Boolean(_0x398b3f)},'is_activity':{'type':Boolean,'converter':_0x10e1c4=>Boolean(_0x10e1c4)},'is_readonly':{'type':Boolean,'converter':_0x1ce858=>Boolean(_0x1ce858)}};}static async[a0_0x102ceb(0x226)](_0x368235){const _0x553939=a0_0x102ceb;if(0x0==store[_0x553939(0x2bd)]()[_0x553939(0x24f)][_0x553939(0x1ec)])return void document[_0x553939(0x287)](new CustomEvent(_0x553939(0x200),{'detail':{'level':_0x553939(0x213),'message':TermsUtil[_0x553939(0x1d9)](_0x553939(0x25e))}}));let _0x1ee46=_0x368235['isPage']?UiUtil[_0x553939(0x223)]():_0x368235[_0x553939(0x170)];_0x368235['currentRouting']=_0x1ee46;let _0x163bbb=await MetaUiUtil['findMenuMetaByRouting'](_0x368235,_0x1ee46);return!0x0===_0x368235['is_activity']&&(_0x163bbb[_0x553939(0x1d3)]['option'][_0x553939(0x22b)]=!0x1,_0x163bbb['grid'][_0x553939(0x23d)][_0x553939(0x173)]=_0x553939(0x1bc),_0x163bbb[_0x553939(0x1d3)][_0x553939(0x1a1)]=!0x1,_0x163bbb[_0x553939(0x1d3)][_0x553939(0x2a2)]=[],_0x163bbb['button']=_0x163bbb[_0x553939(0x2a2)]['filter'](_0x2e789d=>_0x553939(0x28a)==_0x2e789d[_0x553939(0x22d)])),!0x0===_0x368235['is_readonly']&&(_0x163bbb['grid_column']['forEach'](_0x107d76=>{const _0x2b13b5=_0x553939;_0x107d76[_0x2b13b5(0x1c9)]=!0x1;}),_0x163bbb[_0x553939(0x2a2)]=_0x163bbb[_0x553939(0x2a2)][_0x553939(0x28c)](_0x15f9e5=>_0x553939(0x28a)!=_0x15f9e5['name'])),!0x1===_0x368235[_0x553939(0x1a1)]&&(_0x163bbb[_0x553939(0x1d3)][_0x553939(0x1a1)]=!0x1),_0x163bbb;}static[a0_0x102ceb(0x2a6)](..._0x13915c){return{'pages':_0x13915c};}static[a0_0x102ceb(0x248)](_0x2c3cfa,_0x56f9c7){const _0x279649=a0_0x102ceb;let _0x13d7f8=[{'type':_0x279649(0x176),'gutterName':_0x279649(0x250)},{'type':'gutter','gutterName':_0x279649(0x18a)}];return _0x2c3cfa&&_0x13d7f8[_0x279649(0x199)]({'type':_0x279649(0x176),'gutterName':_0x279649(0x2b9),'multiple':_0x56f9c7}),_0x13d7f8;}static[a0_0x102ceb(0x296)](_0x485b44){return{'selectable':{'multiple':_0x485b44}};}static async[a0_0x102ceb(0x2a7)](_0x35d9df){const _0x367dd5=a0_0x102ceb;let _0x3848ea=MetaUiUtil[_0x367dd5(0x2ac)](_0x35d9df),_0x49645e=MetaUiUtil[_0x367dd5(0x253)](_0x35d9df),_0x40bc07=MetaUiUtil['getGridRowSet'](_0x35d9df),_0x4ff8d2=MetaUiUtil['getGridButtonSet'](_0x35d9df),_0x23f2b0=await MetaUiUtil[_0x367dd5(0x219)](_0x35d9df),_0x37f148=MetaUiUtil[_0x367dd5(0x248)](_0x3848ea['use_row_checker'],_0x40bc07[_0x367dd5(0x19a)][_0x367dd5(0x193)]);return 0x1==_0x35d9df[_0x367dd5(0x26e)]&&(_0x23f2b0=MetaUiUtil[_0x367dd5(0x220)](_0x35d9df,_0x23f2b0)),{'list':_0x49645e,'pagination':_0x3848ea[_0x367dd5(0x173)],'sorters':_0x3848ea[_0x367dd5(0x2af)],'rows':_0x40bc07,'columns':[..._0x37f148,..._0x4ff8d2,..._0x23f2b0]};}static async[a0_0x102ceb(0x1b8)](_0x4d50c0){const _0x522201=a0_0x102ceb;let _0x44a6f1=_0x4d50c0[_0x522201(0x228)],_0x3f2508=[];for(let _0x42475b=0x0;_0x42475b<_0x44a6f1[_0x522201(0x1a6)];_0x42475b++){let {type:_0x1b0c07=_0x522201(0x2c3),name:_0x13ce97,header:_0x175e8c,hidden:_0x47981a=!0x1,editable:_0x12b498=!0x0,mandatory:_0x234f55=!0x1,align:_0x4e94c5=_0x522201(0x24a),select_opt:_0x48a6d1,object_opt:_0x101bbc}=_0x44a6f1[_0x42475b],_0x2da276={'type':_0x1b0c07,'name':_0x13ce97,'header_txt':ValueUtil[_0x522201(0x24e)](_0x175e8c)?TermsUtil['tLabel'](_0x13ce97):TermsUtil[_0x522201(0x1a9)](_0x175e8c),'header':{'renderer':function(_0x4f7597){return _0x4f7597['header_txt'];}},'hidden':_0x47981a,'record':{'editable':_0x12b498,'mandatory':_0x234f55,'align':_0x4e94c5,'classifier':function(){},'renderer':getRenderer(_0x1b0c07)}};_0x12b498&&(_0x2da276[_0x522201(0x2bf)][_0x522201(0x1da)]=getEditor(_0x1b0c07)),_0x522201(0x1b1)===_0x1b0c07&&ValueUtil[_0x522201(0x1dc)](_0x48a6d1)?Array[_0x522201(0x22e)](_0x48a6d1)?_0x2da276[_0x522201(0x2bf)][_0x522201(0x257)]=_0x48a6d1:'code'===_0x48a6d1[_0x522201(0x180)]?_0x2da276[_0x522201(0x2bf)][_0x522201(0x257)]=await ServiceUtil['getCodeSelectorData'](_0x48a6d1[_0x522201(0x2bc)]?_0x48a6d1[_0x522201(0x2bc)]:_0x48a6d1[_0x522201(0x22d)]):_0x522201(0x21e)===_0x48a6d1['type']?_0x2da276[_0x522201(0x2bf)]['options']=await ServiceUtil[_0x522201(0x25d)](_0x48a6d1[_0x522201(0x22d)],_0x48a6d1['args']):_0x522201(0x188)===_0x48a6d1[_0x522201(0x180)]&&(_0x2da276[_0x522201(0x2bf)][_0x522201(0x257)]=await ServiceUtil[_0x522201(0x227)](_0x48a6d1[_0x522201(0x243)])):_0x522201(0x1d2)!==_0x1b0c07&&_0x522201(0x186)!==_0x1b0c07||!ValueUtil[_0x522201(0x1dc)](_0x101bbc)?_0x522201(0x27b)===_0x1b0c07&&ValueUtil['isNotEmpty'](_0x101bbc)&&(_0x2da276[_0x522201(0x2bf)][_0x522201(0x257)]=_0x101bbc,_0x101bbc['dispField']&&(_0x2da276['record']['options']['codes']=await ServiceUtil['getCodeByEntity'](_0x101bbc))):(_0x101bbc[_0x522201(0x1b1)]&&_0x101bbc['select'][_0x522201(0x184)](_0x426c40=>{const _0x5c9aa5=_0x522201;_0x426c40[_0x5c9aa5(0x20b)]||(_0x426c40['header']=_0x426c40[_0x5c9aa5(0x22d)]),_0x426c40['header']=TermsUtil[_0x5c9aa5(0x1a9)](_0x426c40[_0x5c9aa5(0x20b)]);}),_0x2da276[_0x522201(0x2bf)][_0x522201(0x257)]=_0x101bbc),_0x3f2508[_0x522201(0x199)](_0x2da276);}return _0x3f2508;}static[a0_0x102ceb(0x2ac)](_0xa22245){const _0x178f29=a0_0x102ceb;let _0x2c383b=_0xa22245['gridConfig'];_0xa22245['useFilterForm']=!_0x2c383b||null==_0x2c383b['use_filter_form']||_0x2c383b['use_filter_form'];let {mobile_mode:_0x51514d='LIST',desk_mode:_0x3f5c63=_0x178f29(0x207),view_mode:_0x230db2=[],use_row_checker:_0x5a4146=!0x0,sorters:_0x8165a2=[],pages:_0x4991d7=[0x32,0x64,0x1f4,0x3e8]}=ValueUtil['isEmpty'](_0x2c383b['option'])?{}:_0x2c383b[_0x178f29(0x23d)];return'unlimited'===_0x4991d7||'-1'===_0x4991d7?(_0xa22245[_0x178f29(0x18f)]=!0x0,_0x4991d7={'infinite':!0x0}):(_0xa22245[_0x178f29(0x18f)]=!0x1,_0x4991d7[_0x178f29(0x171)](function(_0x28e246,_0x53ecea){return _0x28e246-_0x53ecea;}),_0x4991d7={'pages':_0x4991d7}),ValueUtil[_0x178f29(0x1dc)](_0x230db2)&&(0x1==_0x230db2[_0x178f29(0x1a6)]?(_0x3f5c63=_0x230db2[0x0],_0x51514d=_0x230db2[0x0]):_0x230db2['length']>=0x2&&(_0x230db2['includes'](_0x51514d)||(_0x51514d=_0x230db2[0x1]),_0x230db2[_0x178f29(0x24c)](_0x3f5c63)||(_0x3f5c63=_0x230db2[0x0]))),_0xa22245[_0x178f29(0x295)]=_0x51514d,_0xa22245[_0x178f29(0x17d)]=_0x3f5c63,_0xa22245['gridViewOptions']=_0x230db2,_0xa22245[_0x178f29(0x17e)]=UiUtil[_0x178f29(0x189)]()?_0xa22245[_0x178f29(0x295)]:_0xa22245[_0x178f29(0x17d)],{'use_row_checker':_0x5a4146,'sorters':_0x8165a2,'pages':_0x4991d7};}static[a0_0x102ceb(0x253)](_0xde61c4){const _0x1e28e1=a0_0x102ceb;let _0x2194c7={'fields':[ValueUtil['getParams'](_0xde61c4[_0x1e28e1(0x2a9)],'name'),ValueUtil[_0x1e28e1(0x18e)](_0xde61c4[_0x1e28e1(0x2a9)],_0x1e28e1(0x21c))]};return _0xde61c4[_0x1e28e1(0x208)][_0x1e28e1(0x26d)]&&Object[_0x1e28e1(0x192)](_0x2194c7,_0xde61c4[_0x1e28e1(0x208)][_0x1e28e1(0x26d)]),_0x2194c7;}static[a0_0x102ceb(0x2a4)](_0x1f806f){const _0x2b1123=a0_0x102ceb;let {multiple_select:_0x48585d=!0x1,click:_0x2e0e5f}=ValueUtil[_0x2b1123(0x24e)](_0x1f806f['gridConfig'][_0x2b1123(0x202)])?{}:_0x1f806f[_0x2b1123(0x208)][_0x2b1123(0x202)],_0x208329={'selectable':{'multiple':_0x48585d},'appendable':_0x1f806f[_0x2b1123(0x29f)]};return ValueUtil[_0x2b1123(0x1dc)](_0x2e0e5f)&&(_0x208329[_0x2b1123(0x2ae)]={'click':_0x2e0e5f}),_0x208329;}static['getGridButtonSet'](_0x20a48c){const _0x226206=a0_0x102ceb;let _0x547382=_0x20a48c[_0x226206(0x208)][_0x226206(0x2a2)];return ValueUtil[_0x226206(0x24e)](_0x547382)?[]:_0x547382[_0x226206(0x1e0)](_0x18c6d8=>{const _0x5c6bfc=_0x226206;let _0x4ec039={'type':_0x5c6bfc(0x176),'gutterName':'button'};if(ValueUtil[_0x5c6bfc(0x1dc)](_0x18c6d8['icon'])&&(Array[_0x5c6bfc(0x22e)](_0x18c6d8[_0x5c6bfc(0x1ee)])?_0x4ec039[_0x5c6bfc(0x1ee)]=_0x4bf8e5=>{const _0x44423b=_0x5c6bfc;if(ValueUtil[_0x44423b(0x1dc)](_0x4bf8e5))for(let _0x2e5280=0x0;_0x2e5280<_0x18c6d8[_0x44423b(0x1ee)][_0x44423b(0x1a6)];_0x2e5280++){let _0xa9f44f=_0x18c6d8['icon'][_0x2e5280];if(!0x0===ValueUtil[_0x44423b(0x1d6)](_0xa9f44f,_0x4bf8e5,Object[_0x44423b(0x230)](_0xa9f44f)[_0x44423b(0x28c)](_0x26dffa=>'icon'!=_0x26dffa)))return _0xa9f44f[_0x44423b(0x1ee)];}}:_0x4ec039['icon']=_0x18c6d8[_0x5c6bfc(0x1ee)]),ValueUtil[_0x5c6bfc(0x1dc)](_0x18c6d8['name'])&&(_0x4ec039[_0x5c6bfc(0x22d)]=_0x18c6d8[_0x5c6bfc(0x22d)]),ValueUtil['isNotEmpty'](_0x18c6d8['label'])&&(_0x4ec039[_0x5c6bfc(0x259)]=TermsUtil[_0x5c6bfc(0x1af)](_0x18c6d8[_0x5c6bfc(0x25c)])),_0x5c6bfc(0x282)===_0x18c6d8[_0x5c6bfc(0x180)]){let _0x5317cd=ValueUtil[_0x5c6bfc(0x18e)](_0x18c6d8,_0x5c6bfc(0x1b2));[_0x5c6bfc(0x277),_0x5c6bfc(0x1e4)][_0x5c6bfc(0x24c)](_0x5317cd)?_0x4ec039['handlers']={'click':(_0x3fcd93,_0x56863e,_0x5d9e20,_0x355053,_0x45a68f)=>{const _0x1bd4db=_0x5c6bfc;if(_0x355053['id']){let _0x1deec6={'title':_0x1bd4db(0x2a3),'type':'popup','tagname':_0x1bd4db(0x277)==_0x5317cd?_0x1bd4db(0x1a5):_0x1bd4db(0x291),'location':_0x1bd4db(0x277)==_0x5317cd?_0x1bd4db(0x1cb):'pages/hgistory/history-json-list-popup.js','menu':_0x20a48c[_0x1bd4db(0x223)],'size':_0x1bd4db(0x20c),'popup_field':_0x1bd4db(0x258),'parent_field':'id'},_0x2f076c={..._0x355053,'gqlFunc':ValueUtil[_0x1bd4db(0x18e)](_0x20a48c[_0x1bd4db(0x1cc)],_0x1bd4db(0x209),'find_one_func'),'gristConfig':JSON[_0x1bd4db(0x187)](JSON[_0x1bd4db(0x221)](_0x20a48c[_0x1bd4db(0x1f6)][_0x1bd4db(0x1ca)]))};MetaUiUtil[_0x1bd4db(0x1f3)](_0x20a48c,{'logic':_0x1deec6},_0x2f076c);}}}:_0x4ec039[_0x5c6bfc(0x2ae)]={'click':_0x5317cd};}else _0x4ec039[_0x5c6bfc(0x2ae)]={'click':(_0x3f8935,_0xb428a8,_0x7a5af5,_0x26d2ea,_0x18153f)=>{const _0x16f9e9=_0x5c6bfc;_0x26d2ea['id']&&MetaUiUtil[_0x16f9e9(0x1f3)](_0x20a48c,_0x18c6d8,_0x26d2ea);}};return _0x4ec039;});}static async[a0_0x102ceb(0x219)](_0x3b5756){const _0x4c1c56=a0_0x102ceb;let _0x22cbc8=_0x3b5756[_0x4c1c56(0x191)];if(ValueUtil['isEmpty'](_0x22cbc8))return[];let _0xf96f35=[];for(let _0x522707=0x0;_0x522707<_0x22cbc8[_0x4c1c56(0x1a6)];_0x522707++){let {type:_0x40f65e=_0x4c1c56(0x2c3),name:_0x30ec59,header:_0x254c9a,hidden:_0x59bc65=!0x1,editable:_0x17abce=!0x0,mandatory:_0x5ba986=!0x1,sortable:_0x98877c=!0x1,align:_0x19b86b=_0x4c1c56(0x24a),width:_0x4f4b1b=0x0,exportable:_0x9c8ce5=!0x1,select_opt:_0xee3203,object_opt:_0x5ed289}=_0x22cbc8[_0x522707],_0x4d35d7={'type':_0x40f65e,'name':_0x30ec59,'header':ValueUtil[_0x4c1c56(0x24e)](_0x254c9a)?'':TermsUtil[_0x4c1c56(0x1a9)](_0x254c9a),'hidden':_0x59bc65,'sortable':_0x98877c,'width':_0x4f4b1b,'record':{'editable':_0x17abce,'mandatory':_0x5ba986,'align':_0x19b86b}};if(_0x4c1c56(0x1b1)===_0x40f65e&&ValueUtil[_0x4c1c56(0x1dc)](_0xee3203))Array[_0x4c1c56(0x22e)](_0xee3203)?_0x4d35d7[_0x4c1c56(0x2bf)][_0x4c1c56(0x257)]=_0xee3203:_0x4c1c56(0x27a)===_0xee3203[_0x4c1c56(0x180)]?_0x4d35d7['record']['options']=await ServiceUtil[_0x4c1c56(0x298)](_0xee3203[_0x4c1c56(0x2bc)]?_0xee3203[_0x4c1c56(0x2bc)]:_0xee3203[_0x4c1c56(0x22d)]):_0x4c1c56(0x21e)===_0xee3203[_0x4c1c56(0x180)]?_0x4d35d7[_0x4c1c56(0x2bf)]['options']=await ServiceUtil[_0x4c1c56(0x25d)](_0xee3203[_0x4c1c56(0x22d)],_0xee3203[_0x4c1c56(0x243)]):'entity'===_0xee3203['type']&&(_0x4d35d7['record']['options']=await ServiceUtil['getCodeByEntity'](_0xee3203[_0x4c1c56(0x243)]));else{if('object'!==_0x40f65e&&'resource-object'!==_0x40f65e||!ValueUtil[_0x4c1c56(0x1dc)](_0x5ed289))_0x4c1c56(0x27b)===_0x40f65e&&ValueUtil[_0x4c1c56(0x1dc)](_0x5ed289)&&(_0x4d35d7[_0x4c1c56(0x2bf)]['options']=_0x5ed289,_0x5ed289['dispField']&&(_0x4d35d7[_0x4c1c56(0x2bf)][_0x4c1c56(0x257)][_0x4c1c56(0x272)]=await ServiceUtil[_0x4c1c56(0x227)](_0x5ed289)));else{let _0x4e9f61;_0x5ed289[_0x4c1c56(0x1b1)]&&_0x5ed289[_0x4c1c56(0x1b1)][_0x4c1c56(0x184)](_0x5b1967=>{const _0xea468e=_0x4c1c56;_0x5b1967[_0xea468e(0x20b)]||(_0x5b1967['header']=_0x5b1967['name']),_0x5b1967[_0xea468e(0x20b)]=TermsUtil[_0xea468e(0x1a9)](_0x5b1967[_0xea468e(0x20b)]);}),_0x4d35d7[_0x4c1c56(0x2bf)][_0x4c1c56(0x257)]={..._0x5ed289},_0x5ed289[_0x4c1c56(0x274)]&&_0x5ed289[_0x4c1c56(0x274)][_0x4c1c56(0x18c)]&&(_0x4e9f61=[..._0x5ed289[_0x4c1c56(0x274)]['filters']]),_0x4e9f61&&JSON[_0x4c1c56(0x221)](_0x4e9f61)[_0x4c1c56(0x24c)]('::')&&(_0x4d35d7['handlers']={'dblclick':(_0x208117,_0x440289,_0x392d4e,_0x3eb8c9,_0x58f6ce)=>{const _0x438b57=_0x4c1c56;let _0x1caa64=[];_0x4e9f61[_0x438b57(0x184)](_0x16f7b7=>{const _0x3cc8c5=_0x438b57;var {name:_0x2a8ef0,value:_0xf00b6c,operator:_0x4ce059='eq'}=_0x16f7b7;_0xf00b6c[_0x3cc8c5(0x24c)]('::')&&(_0xf00b6c=ValueUtil[_0x3cc8c5(0x18e)](_0x3eb8c9,..._0xf00b6c[_0x3cc8c5(0x19e)]('::','')[_0x3cc8c5(0x1f8)]('.'))),_0xf00b6c||(_0xf00b6c=''),_0x1caa64[_0x3cc8c5(0x199)]({'name':_0x2a8ef0,'operator':_0x4ce059,'value':_0xf00b6c});}),_0x392d4e[_0x438b57(0x2bf)][_0x438b57(0x257)][_0x438b57(0x274)][_0x438b57(0x18c)]=_0x1caa64;}});}}!0x0===_0x3b5756[_0x4c1c56(0x1c7)]&&!0x0===_0x9c8ce5&&(_0x4d35d7[_0x4c1c56(0x1ff)]={'header':_0x4d35d7['header'],'key':_0x4d35d7[_0x4c1c56(0x22d)],'width':_0x4d35d7['width']/0x6,'type':_0x4d35d7[_0x4c1c56(0x180)]}),_0xf96f35[_0x4c1c56(0x199)](_0x4d35d7);}if(!0x0!==this[_0x4c1c56(0x281)])return _0xf96f35;let _0x131f73=await MetaApi[_0x4c1c56(0x1f5)](this['menuId']),{template:_0x307b3f={}}=_0x131f73;if(!_0x307b3f[_0x4c1c56(0x1e7)])return _0xf96f35;let _0x10b1e5=_0x307b3f[_0x4c1c56(0x1e7)];return _0xf96f35=_0xf96f35[_0x4c1c56(0x1e0)](_0x297016=>('id'==_0x297016['name']||(_0x297016[_0x4c1c56(0x2a5)]=!_0x10b1e5[_0x4c1c56(0x24c)](_0x297016[_0x4c1c56(0x22d)]),_0x297016['rank']=_0x10b1e5['indexOf'](_0x297016['name']),-0x1==_0x297016['rank']&&(_0x297016['rank']=0x1869f)),_0x297016)),_0xf96f35['sort']((_0x4c2fb6,_0x1d35f9)=>_0x4c2fb6[_0x4c1c56(0x210)]-_0x1d35f9[_0x4c1c56(0x210)]),_0xf96f35;}static['setGridColumnSearchOption'](_0x1d5ac4,_0x3e9963){const _0x9c65e8=a0_0x102ceb;let _0x2c67c4=_0x1d5ac4['searchConfig'];return _0x2c67c4&&_0x2c67c4[_0x9c65e8(0x184)](_0x2dd7f0=>{const _0x30b4c2=_0x9c65e8;_0x30b4c2(0x2c3)==typeof _0x2dd7f0?_0x3e9963[_0x30b4c2(0x28c)](_0x1c0678=>_0x1c0678[_0x30b4c2(0x22d)]==_0x2dd7f0)[_0x30b4c2(0x184)](_0x1d8433=>{const _0x415656=_0x30b4c2;_0x1d8433[_0x415656(0x28c)]=_0x415656(0x1fa);}):'object'==typeof _0x2dd7f0&&_0x3e9963[_0x30b4c2(0x28c)](_0x439f98=>_0x439f98[_0x30b4c2(0x22d)]==_0x2dd7f0[_0x30b4c2(0x22d)])['forEach'](_0x18eac4=>{const _0x1699cf=_0x30b4c2;_0x18eac4[_0x1699cf(0x28c)]=_0x2dd7f0,_0x18eac4[_0x1699cf(0x28c)][_0x1699cf(0x180)]=_0x1699cf(0x1d7)===_0x18eac4[_0x1699cf(0x180)]?'datetime-local':_0x18eac4[_0x1699cf(0x180)];let _0x515e54=_0x18eac4['filter'][_0x1699cf(0x19f)];if(_0x515e54&&_0x515e54['startsWith'](_0x1699cf(0x1ba))){let _0x43980e=_0x515e54[_0x1699cf(0x1f8)](','),_0x1f3977=[];_0x43980e['forEach'](_0x46ad6f=>{const _0x18e6e1=_0x1699cf,_0x2e3e60=a0_0x26253f();_0x18e6e1(0x1ba)==_0x46ad6f?_0x1f3977['push'](_0x2e3e60[_0x18e6e1(0x273)](_0x18e6e1(0x1e1))):_0x46ad6f['includes']('-')?_0x1f3977[_0x18e6e1(0x199)](_0x2e3e60['subtract'](_0x46ad6f[_0x18e6e1(0x1f8)]('-')[0x1],'day')[_0x18e6e1(0x273)](_0x18e6e1(0x1e1))):_0x46ad6f[_0x18e6e1(0x24c)]('+')&&_0x1f3977[_0x18e6e1(0x199)](_0x2e3e60[_0x18e6e1(0x28a)](_0x46ad6f[_0x18e6e1(0x1f8)]('+')[0x1],'day')['format']('YYYY-MM-DD'));}),_0x18eac4[_0x1699cf(0x28c)][_0x1699cf(0x19f)]=0x1==_0x1f3977[_0x1699cf(0x1a6)]?_0x1f3977[0x0]:_0x1f3977;}});}),_0x3e9963;}static[a0_0x102ceb(0x1f0)](_0x382e40){const _0x438243=a0_0x102ceb;let _0x508429={'title':TermsUtil[_0x438243(0x225)](_0x382e40[_0x438243(0x2a9)][_0x438243(0x259)]),'help':_0x382e40['menuInfo']['help']||'','actions':[...MetaUiUtil[_0x438243(0x2c4)](_0x382e40)]};return _0x382e40[_0x438243(0x1c7)]&&(_0x508429[_0x438243(0x280)]={'name':_0x508429[_0x438243(0x259)],'data':_0x382e40[_0x438243(0x244)][_0x438243(0x1b7)](_0x382e40)}),_0x382e40[_0x438243(0x197)]&&(_0x508429[_0x438243(0x27e)]={'handler':_0x382e40[_0x438243(0x1ce)][_0x438243(0x1b7)](_0x382e40)}),_0x508429;}static['getContextButtons'](_0x594d6a){const _0x1fc508=a0_0x102ceb;let _0x4fd5cc=_0x594d6a[_0x1fc508(0x1fd)];return ValueUtil['isEmpty'](_0x4fd5cc)?[]:_0x4fd5cc[_0x1fc508(0x28c)](_0x491629=>_0x1fc508(0x244)!=_0x491629[_0x1fc508(0x22d)]&&_0x1fc508(0x1ce)!=_0x491629['name']&&'add'!=_0x491629['name'])[_0x1fc508(0x1e0)](_0x5ed67e=>{const _0x433702=_0x1fc508;let {name:_0x4d2a5d,label:_0x1a37b5,style:_0x29c00e,type:_0x15af6c=_0x433702(0x282),action:_0x5439fd,logic:_0xc78648}=_0x5ed67e;if(ValueUtil[_0x433702(0x24e)](_0x4d2a5d))return{'title':'-1'};ValueUtil['isEmpty'](_0x1a37b5)&&(_0x1a37b5=_0x4d2a5d),ValueUtil[_0x433702(0x24e)](_0x29c00e)&&(_0x29c00e=_0x4d2a5d),ValueUtil[_0x433702(0x24e)](_0x5439fd)&&(_0x5439fd=_0x4d2a5d);let _0x50a245=ValueUtil[_0x433702(0x1dc)](_0x29c00e)?CommonButtonStyles[_0x29c00e]||{'icon':_0x29c00e,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}}:{};return{'title':TermsUtil[_0x433702(0x1af)](_0x1a37b5),'action':MetaUiUtil[_0x433702(0x1ad)](_0x594d6a,_0x15af6c,_0x5439fd,_0xc78648),..._0x50a245};})[_0x1fc508(0x28c)](_0x3d8799=>'-1'!=_0x3d8799[_0x1fc508(0x259)]);}static['getContainerButtons'](_0x529594){const _0x9fbfc2=a0_0x102ceb;let _0x1dacd1=_0x529594&&_0x529594[_0x9fbfc2(0x1fd)]?_0x529594[_0x9fbfc2(0x1fd)]:null;return _0x1dacd1?_0x1dacd1['filter'](_0x50fcc3=>'add'!=_0x50fcc3[_0x9fbfc2(0x22d)])[_0x9fbfc2(0x1e0)](_0x8d0152=>{const _0x7b9114=_0x9fbfc2;let {name:_0x46815c,label:_0x3f187e,style:_0x4dc620,type:_0x167fc4=_0x7b9114(0x282),action:_0x2311cb,logic:_0x48cdca}=_0x8d0152;ValueUtil['isEmpty'](_0x3f187e)&&(_0x3f187e=_0x46815c),ValueUtil[_0x7b9114(0x24e)](_0x4dc620)&&(_0x4dc620=_0x46815c),ValueUtil['isEmpty'](_0x2311cb)&&(_0x2311cb=_0x46815c);let _0x1b90ab=MetaUiUtil[_0x7b9114(0x299)](TermsUtil[_0x7b9114(0x1af)](_0x3f187e),_0x4dc620);return _0x1b90ab[_0x7b9114(0x267)]=MetaUiUtil[_0x7b9114(0x1ad)](_0x529594,_0x167fc4,_0x2311cb,_0x48cdca),_0x1b90ab;}):[];}static[a0_0x102ceb(0x299)](_0x45398f,_0x90901b){const _0x40f23e=a0_0x102ceb;let _0x30af33=CommonButtonStyles[_0x90901b]||{'icon':_0x90901b,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}},_0x57b43f=_0x40f23e(0x1bd)+_0x45398f+_0x40f23e(0x24d)+(_0x30af33[_0x40f23e(0x1ee)]?_0x30af33['icon']:'')+_0x40f23e(0x181)+(_0x30af33[_0x40f23e(0x17a)]['raised']?_0x40f23e(0x179):'')+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x30af33[_0x40f23e(0x17a)]['outlined']?_0x40f23e(0x2b1):'')+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x30af33['emphasis'][_0x40f23e(0x292)]?_0x40f23e(0x292):'')+_0x40f23e(0x232)+(_0x30af33[_0x40f23e(0x17a)]['danger']?_0x40f23e(0x263):'')+_0x40f23e(0x2b0);return UiUtil[_0x40f23e(0x23c)](_0x57b43f);}static[a0_0x102ceb(0x1ad)](_0x13e8ed,_0x58e0f6,_0x168bfe,_0x1f369e){const _0x1a8c6c=a0_0x102ceb;if(_0x1a8c6c(0x282)==_0x58e0f6){if(_0x13e8ed[_0x168bfe])return _0x13e8ed[_0x168bfe]['bind'](_0x13e8ed);}else{if(_0x1a8c6c(0x18b)==_0x58e0f6)return()=>MetaUiUtil[_0x1a8c6c(0x178)](_0x13e8ed,_0x1f369e);}return()=>{const _0x4924ab=_0x1a8c6c;UiUtil[_0x4924ab(0x297)](_0x4924ab(0x1a2),_0x4924ab(0x20f),_0x4924ab(0x2c5),'confirm');};}static async[a0_0x102ceb(0x1f3)](_0x3776da,_0x4cc71d,_0x25756d){const _0x20d77b=a0_0x102ceb;let _0x1ec1a5=ValueUtil[_0x20d77b(0x18e)](_0x4cc71d,_0x20d77b(0x1b2)),_0x1c7061=ValueUtil[_0x20d77b(0x18e)](_0x1ec1a5,_0x20d77b(0x180));if('form'===_0x1c7061)_0x1ec1a5[_0x20d77b(0x1b9)]=_0x20d77b(0x26c),_0x1ec1a5['location']=_0x20d77b(0x261),_0x1ec1a5[_0x20d77b(0x1b4)]='id',await MetaUiUtil[_0x20d77b(0x278)](_0x3776da,_0x1ec1a5,_0x25756d);else{if('pass_param'===_0x1c7061)MetaUiUtil['gristButtonPassParam'](_0x3776da,_0x1ec1a5,_0x25756d);else{if('page'===_0x1c7061){let _0x38ee66;_0x1ec1a5[_0x20d77b(0x224)]?(_0x38ee66={},Object[_0x20d77b(0x230)](_0x25756d)[_0x20d77b(0x28c)](_0x59969b=>Object[_0x20d77b(0x230)](_0x1ec1a5['param_field'])[_0x20d77b(0x24c)](_0x59969b))[_0x20d77b(0x1e0)](_0x34461c=>{const _0x19b986=_0x20d77b;Object[_0x19b986(0x230)](_0x1ec1a5[_0x19b986(0x224)])[_0x19b986(0x24c)](_0x34461c)&&('string'==typeof _0x25756d[_0x34461c]?_0x38ee66[_0x1ec1a5[_0x19b986(0x224)][_0x34461c]]=_0x25756d[_0x34461c]:_0x38ee66[_0x1ec1a5[_0x19b986(0x224)][_0x34461c]]={'id':_0x25756d[_0x34461c]['id']});})):_0x38ee66=_0x25756d,UiUtil['pageNavigate'](_0x1ec1a5['url'],[_0x38ee66]);}else _0x20d77b(0x2be)===_0x1c7061?await MetaUiUtil[_0x20d77b(0x278)](_0x3776da,_0x1ec1a5,_0x25756d):_0x20d77b(0x21e)===_0x1c7061?await MetaUiUtil[_0x20d77b(0x1be)](_0x3776da,_0x1ec1a5,_0x25756d):_0x20d77b(0x215)===_0x1c7061&&await MetaUiUtil['gristButtonValueReference'](_0x3776da,_0x1ec1a5,_0x25756d);}}}static async[a0_0x102ceb(0x178)](_0x1561f9,_0x458b40){const _0x24ad75=a0_0x102ceb;if(ValueUtil[_0x24ad75(0x24e)](_0x458b40))return;let _0x130841=_0x1561f9[_0x24ad75(0x1f6)],_0x48a69c=_0x1561f9[_0x24ad75(0x28f)],_0x263f8f=ValueUtil[_0x24ad75(0x18e)](_0x458b40,_0x24ad75(0x180)),_0x2a3169=ValueUtil[_0x24ad75(0x18e)](_0x458b40,_0x24ad75(0x206)),_0xbe9d87=_0x2a3169[_0x24ad75(0x28c)](_0x2b4de0=>_0x2b4de0['startsWith'](_0x24ad75(0x1f6)));if(ValueUtil[_0x24ad75(0x1dc)](_0xbe9d87)){if(!_0x130841)return void UiUtil[_0x24ad75(0x297)](_0x24ad75(0x239),_0x24ad75(0x2b2),'info','confirm');if(0x0==(_0x130841[_0x24ad75(0x23f)]?_0x130841[_0x24ad75(0x23f)][_0x24ad75(0x1ef)]:[])[_0x24ad75(0x1a6)])return void UiUtil[_0x24ad75(0x297)]('title.info',_0x24ad75(0x190),'info','confirm');if(_0x2a3169[_0x24ad75(0x24c)](_0x24ad75(0x27c))||_0x2a3169['includes']('grist_selected')){let _0x41a8ea=_0x130841['selected'];if(ValueUtil[_0x24ad75(0x24e)](_0x41a8ea))return void UiUtil['showAlertPopup'](_0x24ad75(0x17c),_0x24ad75(0x1b0),_0x24ad75(0x2c5),_0x24ad75(0x177));if(_0x2a3169[_0x24ad75(0x24c)](_0x24ad75(0x27c))&&_0x41a8ea[_0x24ad75(0x1a6)]>0x1)return void UiUtil[_0x24ad75(0x297)](_0x24ad75(0x239),_0x24ad75(0x204),_0x24ad75(0x2c5),'confirm');}}let _0xa09f69={};if(_0x2a3169[_0x24ad75(0x24c)](_0x24ad75(0x28c))){if(!_0x48a69c)return void UiUtil[_0x24ad75(0x297)](_0x24ad75(0x239),_0x24ad75(0x17f),_0x24ad75(0x2c5),_0x24ad75(0x177));let _0x3678d3=_0x48a69c?await _0x48a69c[_0x24ad75(0x265)]():[];_0xa09f69[_0x24ad75(0x28c)]=_0x3678d3;}if(_0x2a3169[_0x24ad75(0x24c)](_0x24ad75(0x22c)))_0xa09f69[_0x24ad75(0x1f6)]=_0x130841[_0x24ad75(0x23f)][_0x24ad75(0x1ef)];else{if(_0x2a3169[_0x24ad75(0x24c)]('grist_one'))_0xa09f69[_0x24ad75(0x1f6)]=_0x130841[_0x24ad75(0x2ba)][0x0];else{if(_0x2a3169['includes'](_0x24ad75(0x25a)))_0xa09f69[_0x24ad75(0x1f6)]=_0x130841[_0x24ad75(0x2ba)];else{if(_0x2a3169['includes'](_0x24ad75(0x264))&&(_0xa09f69[_0x24ad75(0x1f6)]=ServiceUtil[_0x24ad75(0x21b)](_0x130841),!_0xa09f69[_0x24ad75(0x1f6)]))return;}}}if(_0x24ad75(0x29c)===_0x263f8f){let _0x4a7147,_0x3033e8=Array['isArray'](_0xa09f69[_0x24ad75(0x1f6)])?_0xa09f69[_0x24ad75(0x1f6)]:[_0xa09f69['grist']];_0x4a7147=_0x458b40[_0x24ad75(0x224)]?_0x3033e8[_0x24ad75(0x1e0)](_0xd233e4=>{const _0x17eb97=_0x24ad75;let _0x2c7a78={};return Object[_0x17eb97(0x230)](_0xd233e4)['filter'](_0x2f9d16=>Object[_0x17eb97(0x230)](_0x458b40[_0x17eb97(0x224)])[_0x17eb97(0x24c)](_0x2f9d16))['map'](_0x4b8e45=>{const _0x13a0a2=_0x17eb97;Object[_0x13a0a2(0x230)](_0x458b40[_0x13a0a2(0x224)])[_0x13a0a2(0x24c)](_0x4b8e45)&&('string'==typeof _0xd233e4[_0x4b8e45]?_0x2c7a78[_0x458b40[_0x13a0a2(0x224)][_0x4b8e45]]=_0xd233e4[_0x4b8e45]:_0x2c7a78[_0x458b40[_0x13a0a2(0x224)][_0x4b8e45]]={'id':_0xd233e4[_0x4b8e45]['id']});}),_0x2c7a78;}):_0x3033e8,UiUtil[_0x24ad75(0x289)](_0x458b40[_0x24ad75(0x240)],_0x4a7147);}else{if(_0x24ad75(0x2be)===_0x263f8f){let _0x202bc5={..._0xa09f69[_0x24ad75(0x1f6)]?_0xa09f69[_0x24ad75(0x1f6)]:{},..._0xa09f69[_0x24ad75(0x28c)]?_0xa09f69[_0x24ad75(0x28c)]:{}};await MetaUiUtil[_0x24ad75(0x278)](_0x1561f9,_0x458b40,_0x202bc5);}else _0x24ad75(0x21e)===_0x263f8f&&await MetaUiUtil[_0x24ad75(0x1be)](_0x1561f9,_0x458b40,_0xa09f69);}}static[a0_0x102ceb(0x1aa)](_0x137db1,_0x21722b,_0x365db5){const _0x520f24=a0_0x102ceb;let _0x1b37d1=_0x21722b[_0x520f24(0x1a0)],_0x15b5d1={},_0x4be794=_0x137db1[_0x520f24(0x20a)][_0x520f24(0x290)](),_0x26de76=_0x137db1;_0x15b5d1=_0x4be794['startsWith'](_0x520f24(0x22a))?{'detail':{..._0x1b37d1}}:_0x4be794[_0x520f24(0x2c2)](_0x520f24(0x284))?_0x137db1['detailElement']['tagName'][_0x520f24(0x290)]()[_0x520f24(0x2c2)](_0x520f24(0x2aa))?{'detail':{..._0x1b37d1}}:{'self':{..._0x1b37d1}}:_0x1b37d1,Object[_0x520f24(0x230)](_0x15b5d1)['forEach'](_0x38c768=>{const _0x298bcd=_0x520f24;_0x298bcd(0x1e7)==_0x38c768?_0x26de76=_0x137db1[_0x298bcd(0x1ae)][_0x298bcd(0x1c3)]:_0x298bcd(0x1fb)==_0x38c768?_0x26de76=_0x137db1[_0x298bcd(0x1ae)]?_0x137db1[_0x298bcd(0x1ae)][_0x298bcd(0x203)]:_0x137db1[_0x298bcd(0x203)]:'self'==_0x38c768&&(_0x26de76=_0x137db1),Object['keys'](_0x15b5d1[_0x38c768])[_0x298bcd(0x184)](_0x5dbd13=>{const _0x52446d=_0x298bcd;let _0x450c5d=_0x26de76[_0x52446d(0x1e9)][_0x52446d(0x1ab)]('#'+_0x5dbd13);_0x365db5['id']&&_0x450c5d[_0x52446d(0x234)](_0x365db5['id']);let _0x2d0f7b=_0x15b5d1[_0x38c768][_0x5dbd13];Object['keys'](_0x2d0f7b)[_0x52446d(0x184)](_0x4c0fb0=>{let _0x1021a9=_0x2d0f7b[_0x4c0fb0],_0x57f214='*'===_0x1021a9?_0x365db5:_0x365db5[_0x1021a9];_0x450c5d[_0x4c0fb0]=_0x57f214;});});});}static async[a0_0x102ceb(0x278)](_0x39ed1a,_0x3b141f,_0x4c968a){const _0x4d0546=a0_0x102ceb;let _0x1680a4=TermsUtil[_0x4d0546(0x225)](_0x3b141f[_0x4d0546(0x259)]);ValueUtil[_0x4d0546(0x1dc)](_0x3b141f[_0x4d0546(0x1fe)])&&(_0x1680a4=_0x1680a4+'('+ValueUtil['getParams'](_0x4c968a,..._0x3b141f[_0x4d0546(0x1fe)]['split']('.'))+')');let _0x379152=_0x3b141f[_0x4d0546(0x249)]&&_0x4d0546(0x2c3)==typeof _0x3b141f['after']&&_0x4d0546(0x1d0)===_0x3b141f[_0x4d0546(0x249)]&&_0x39ed1a&&_0x39ed1a[_0x4d0546(0x1d0)]?_0x39ed1a[_0x4d0546(0x1d0)][_0x4d0546(0x1b7)](_0x39ed1a):void 0x0;UiUtil['openDynamicPopup'](_0x1680a4,_0x3b141f,_0x4c968a,_0x379152);}static async['commonButtonCallScenario'](_0x4ed299,_0x1e975a,_0x14ad29){const _0x494099=a0_0x102ceb;let _0x2caf2c=await ServiceUtil[_0x494099(0x24b)](_0x494099(0x2b5),_0x1e975a['name'],_0x14ad29);if(!_0x2caf2c[_0x494099(0x2ab)]&&!ValueUtil[_0x494099(0x24e)](_0x1e975a[_0x494099(0x249)])&&_0x1e975a[_0x494099(0x249)]){if('fetch'!==_0x1e975a[_0x494099(0x249)]){if(_0x494099(0x1d2)==typeof _0x1e975a[_0x494099(0x249)]){let _0x3a0422=_0x1e975a['after'],_0x5bfb59=ValueUtil[_0x494099(0x18e)](_0x2caf2c['data']['runScenario'][_0x494099(0x23f)],..._0x3a0422[_0x494099(0x1f1)][_0x494099(0x1f8)]('.'));if(0x0==Array['isArray'](_0x5bfb59)&&(_0x5bfb59=[_0x5bfb59]),_0x494099(0x2c1)===_0x3a0422[_0x494099(0x180)])_0x3a0422['tagname']=_0x494099(0x26c),_0x3a0422[_0x494099(0x276)]=_0x494099(0x261),_0x3a0422[_0x494099(0x1b4)]='id',_0x5bfb59=_0x5bfb59[0x0],await MetaUiUtil[_0x494099(0x278)](_0x4ed299,_0x3a0422,_0x5bfb59);else{if(_0x494099(0x29c)===_0x3a0422[_0x494099(0x180)]){let _0x913ab0,_0x42b264=_0x5bfb59;_0x913ab0=_0x3a0422['param_field']?_0x42b264[_0x494099(0x1e0)](_0x372c41=>{const _0x4738fa=_0x494099;let _0x51932a={};return Object[_0x4738fa(0x230)](_0x372c41)[_0x4738fa(0x28c)](_0x2f6288=>Object[_0x4738fa(0x230)](_0x3a0422[_0x4738fa(0x224)])[_0x4738fa(0x24c)](_0x2f6288))[_0x4738fa(0x1e0)](_0x3de9d2=>{const _0x1b7019=_0x4738fa;Object[_0x1b7019(0x230)](_0x3a0422[_0x1b7019(0x224)])[_0x1b7019(0x24c)](_0x3de9d2)&&('string'==typeof _0x372c41[_0x3de9d2]?_0x51932a[_0x3a0422['param_field'][_0x3de9d2]]=_0x372c41[_0x3de9d2]:_0x51932a[_0x3a0422['param_field'][_0x3de9d2]]={'id':_0x372c41[_0x3de9d2]['id']});}),_0x51932a;}):_0x42b264,UiUtil[_0x494099(0x289)](_0x3a0422[_0x494099(0x240)],_0x913ab0);}else _0x494099(0x1ac)===_0x3a0422[_0x494099(0x180)]?(_0x5bfb59=_0x5bfb59[0x0],MetaUiUtil['gristButtonPassParam'](_0x4ed299,_0x3a0422,_0x5bfb59)):_0x494099(0x2be)===_0x3a0422['type']?(_0x5bfb59=_0x5bfb59[0x0],await MetaUiUtil[_0x494099(0x278)](_0x4ed299,_0x3a0422,_0x5bfb59)):'value_reference'===_0x3a0422[_0x494099(0x180)]&&(_0x5bfb59=_0x5bfb59[0x0],await MetaUiUtil['gristButtonValueReference'](_0x4ed299,_0x3a0422,_0x5bfb59));}}}else _0x4ed299[_0x494099(0x1d0)]();}}static async[a0_0x102ceb(0x237)](_0x300059,_0x23744e,_0x2d7f57){const _0xff4266=a0_0x102ceb;for(let _0x264309=0x0;_0x264309<_0x23744e[_0xff4266(0x1f4)][_0xff4266(0x1a6)];_0x264309++){let _0x393f1f=_0x23744e[_0xff4266(0x1f4)][_0x264309];!0x0===ValueUtil[_0xff4266(0x1d6)](_0x393f1f,_0x2d7f57,Object[_0xff4266(0x230)](_0x393f1f)[_0xff4266(0x28c)](_0x7e0af1=>'logic'!=_0x7e0af1))&&await MetaUiUtil[_0xff4266(0x1f3)](_0x300059,_0x393f1f,_0x2d7f57);}}static[a0_0x102ceb(0x1eb)](_0x4230c6,_0x343959){return{'type':_0x4230c6,'name':_0x343959,'sortable':!0x1,'hidden':!0x0};}static[a0_0x102ceb(0x212)](_0x3438c5,_0x2b97d6,_0x559622,_0x2b41b8,_0x41abe5,_0xf8ee6c){let _0x4b36a0=TermsUtil['tLabel'](_0x2b97d6);return{'type':_0x3438c5,'name':_0x2b97d6,'header':_0x4b36a0,'record':{'align':_0x559622,'editable':_0x2b41b8},'sortable':_0x41abe5,'width':_0xf8ee6c,'imex':{'width':Math['floor'](_0xf8ee6c/0x6),'header':_0x4b36a0,'type':_0x3438c5,'key':_0x2b97d6}};}static[a0_0x102ceb(0x1c0)](_0x326c76,_0x2de1f8,_0x3050d8,_0x125691,_0x4a97aa,_0x395a89,_0x4b4146){const _0x356023=a0_0x102ceb;let _0x53dc13=TermsUtil['tLabel'](_0x3050d8);return{'type':_0x326c76,'name':_0x2de1f8,'header':_0x53dc13,'record':{'align':_0x125691,'editable':_0x4a97aa},'sortable':_0x395a89,'width':_0x4b4146,'imex':{'width':Math[_0x356023(0x1cd)](_0x4b4146/0x6),'header':_0x53dc13,'type':_0x326c76,'key':_0x2de1f8}};}static['getGristColumnConfig3'](_0x442ad3,_0x218f1e,_0x43ec76,_0x213653,_0x7bc14f,_0x23e3a1,_0x53182e,_0x1999d0){const _0x363e2c=a0_0x102ceb;let _0x18dc29=TermsUtil['tLabel'](_0x43ec76);return{'type':_0x442ad3,'name':_0x218f1e,'header':_0x18dc29,'record':{'align':_0x213653,'editable':_0x7bc14f,'mandatory':_0x53182e},'sortable':_0x23e3a1,'width':_0x1999d0,'imex':{'width':Math[_0x363e2c(0x1cd)](_0x1999d0/0x6),'header':_0x18dc29,'type':_0x442ad3,'key':_0x218f1e}};}static['getGristSelectorColumnConfig'](_0x272e1e,_0x85bbb0,_0x588472,_0x2ac696,_0x3e370b,_0x1034b3,_0x4d7c36){const _0x237442=a0_0x102ceb;let _0x59c129=TermsUtil[_0x237442(0x1a9)](_0x85bbb0);return{'type':_0x237442(0x1b1),'name':_0x272e1e,'header':_0x59c129,'record':{'align':_0x588472,'editable':!0x0,'mandatory':_0x1034b3,'options':_0x4d7c36},'sortable':_0x2ac696,'width':_0x3e370b,'imex':{'width':Math[_0x237442(0x1cd)](_0x3e370b/0x6),'header':_0x59c129,'type':'string','key':_0x272e1e}};}static async[a0_0x102ceb(0x1e2)](_0x3aa990,_0x5eff2a,_0x14fb88,_0x4a0b67,_0x3eedcb,_0x4f4ab2,_0x4659b3){const _0x249209=a0_0x102ceb;let _0x6911a4=await ServiceUtil[_0x249209(0x298)](_0x4659b3);return MetaUiUtil[_0x249209(0x174)](_0x3aa990,_0x5eff2a,_0x14fb88,_0x4a0b67,_0x3eedcb,_0x4f4ab2,_0x6911a4);}static['getGristSearchColumnConfig'](_0x4db899,_0x40ed31,_0x47fb6f,_0x1445ae,_0x23fe66){let _0x376996=TermsUtil['tLabel'](_0x47fb6f),_0x2cd2ad={'name':_0x4db899,'type':_0x40ed31,'label':_0x376996,'operator':_0x1445ae,'imex':{'width':0x10,'header':_0x376996,'type':_0x40ed31,'key':_0x4db899}};return _0x23fe66&&(_0x2cd2ad['options']=_0x23fe66),_0x2cd2ad;}static async[a0_0x102ceb(0x2b8)](_0x207ce3,_0xa241ef,_0x3b3714,_0x4295f4,_0x7d1574){const _0x287ca7=a0_0x102ceb;let _0x24a1d8=await ServiceUtil[_0x287ca7(0x298)](_0x7d1574);return MetaUiUtil[_0x287ca7(0x1a4)](_0x207ce3,_0xa241ef,_0x3b3714,_0x4295f4,_0x24a1d8);}static[a0_0x102ceb(0x1d1)](){return[css`
|
|
6
6
|
.button-container {
|
|
7
7
|
padding: var(--button-container-padding);
|
|
8
8
|
margin: var(--button-container-margin);
|
|
@@ -21,11 +21,11 @@ function a0_0x4edd(_0x5bdcb5,_0x27df35){const _0x407b63=a0_0x407b();return 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_0x102ceb(0x183)](){return[css`
|
|
25
25
|
:host {
|
|
26
26
|
--grid-record-emphasized-background-color: red;
|
|
27
27
|
--grid-record-emphasized-color: yellow;
|
|
28
|
-
}`];}static[
|
|
28
|
+
}`];}static['getGristPersonalizedStyles'](){return[css`
|
|
29
29
|
#grist-personal{
|
|
30
30
|
padding:0px;
|
|
31
31
|
margin:0px;
|
|
@@ -48,7 +48,7 @@ function a0_0x4edd(_0x5bdcb5,_0x27df35){const _0x407b63=a0_0x407b();return a0_0x
|
|
|
48
48
|
cursor: pointer;
|
|
49
49
|
margin-bottom:4px;
|
|
50
50
|
}
|
|
51
|
-
`];}static[
|
|
51
|
+
`];}static[a0_0x102ceb(0x222)](){const _0x32c2d3=a0_0x102ceb;return[ScrollbarStyles,CommonGristStyles,css`
|
|
52
52
|
:host {
|
|
53
53
|
display: flex;
|
|
54
54
|
flex-direction: column;
|
|
@@ -58,7 +58,7 @@ function a0_0x4edd(_0x5bdcb5,_0x27df35){const _0x407b63=a0_0x407b();return a0_0x
|
|
|
58
58
|
ox-grist {
|
|
59
59
|
overflow-y: auto;
|
|
60
60
|
flex: 1;
|
|
61
|
-
}`,...MetaUiUtil[
|
|
61
|
+
}`,...MetaUiUtil[_0x32c2d3(0x183)](),...MetaUiUtil[_0x32c2d3(0x1d1)](),...MetaUiUtil['getGristPersonalizedStyles']()];}static[a0_0x102ceb(0x26f)](){const _0x5d0745=a0_0x102ceb;return[ScrollbarStyles,CommonGristStyles,css`
|
|
62
62
|
:host {
|
|
63
63
|
display: flex;
|
|
64
64
|
flex-direction: column;
|
|
@@ -105,7 +105,7 @@ function a0_0x4edd(_0x5bdcb5,_0x27df35){const _0x407b63=a0_0x407b();return a0_0x
|
|
|
105
105
|
ox-grist {
|
|
106
106
|
overflow-y: auto;
|
|
107
107
|
flex: 1;
|
|
108
|
-
}`,...MetaUiUtil[
|
|
108
|
+
}`,...MetaUiUtil[_0x5d0745(0x183)](),...MetaUiUtil['getCustomButtonContainerStyles'](),...MetaUiUtil[_0x5d0745(0x205)]()];}static[a0_0x102ceb(0x19d)](){const _0x4f8a52=a0_0x102ceb;return[ScrollbarStyles,CommonGristStyles,css`
|
|
109
109
|
:host {
|
|
110
110
|
display: flex;
|
|
111
111
|
flex-direction: column;
|
|
@@ -152,7 +152,7 @@ function a0_0x4edd(_0x5bdcb5,_0x27df35){const _0x407b63=a0_0x407b();return a0_0x
|
|
|
152
152
|
ox-grist {
|
|
153
153
|
overflow-y: auto;
|
|
154
154
|
flex: 1;
|
|
155
|
-
}`,...MetaUiUtil[
|
|
155
|
+
}`,...MetaUiUtil['getGristEmphasizedStyles'](),...MetaUiUtil[_0x4f8a52(0x1d1)](),...MetaUiUtil[_0x4f8a52(0x205)]()];}static[a0_0x102ceb(0x1b5)](){const _0x26871c=a0_0x102ceb;return[ScrollbarStyles,CommonGristStyles,css`
|
|
156
156
|
:host {
|
|
157
157
|
display: flex;
|
|
158
158
|
flex-direction: column;
|
|
@@ -199,7 +199,22 @@ function a0_0x4edd(_0x5bdcb5,_0x27df35){const _0x407b63=a0_0x407b();return a0_0x
|
|
|
199
199
|
ox-grist {
|
|
200
200
|
overflow-y: auto;
|
|
201
201
|
flex: 1;
|
|
202
|
-
}`,...MetaUiUtil[
|
|
202
|
+
}`,...MetaUiUtil[_0x26871c(0x183)](),...MetaUiUtil['getCustomButtonContainerStyles'](),...MetaUiUtil['getGristPersonalizedStyles']()];}static['getBasicMainTabStyles'](){const _0x1dff01=a0_0x102ceb;return[ScrollbarStyles,CommonGristStyles,css`
|
|
203
|
+
:host {
|
|
204
|
+
display: flex;
|
|
205
|
+
flex-direction: column;
|
|
206
|
+
overflow-x: overlay;
|
|
207
|
+
background-color: var(--main-section-background-color);
|
|
208
|
+
}
|
|
209
|
+
.container {
|
|
210
|
+
flex: 1;
|
|
211
|
+
display: grid;
|
|
212
|
+
overflow: hidden;
|
|
213
|
+
}
|
|
214
|
+
ox-grist {
|
|
215
|
+
overflow-y: auto;
|
|
216
|
+
flex: 1;
|
|
217
|
+
}`,...MetaUiUtil[_0x1dff01(0x183)](),...MetaUiUtil[_0x1dff01(0x1d1)](),...MetaUiUtil[_0x1dff01(0x205)]()];}static[a0_0x102ceb(0x2b7)](_0x26ef1e){const _0x3bada1=a0_0x102ceb;return _0x3bada1(0x275)==_0x26ef1e?MetaUiUtil[_0x3bada1(0x246)]():MetaUiUtil[_0x3bada1(0x1e5)]();}static['getMasterDetailTopDownGristStyle'](){return[CommonGristStyles,ScrollbarStyles,css`
|
|
203
218
|
:host {
|
|
204
219
|
display: flex;
|
|
205
220
|
flex-direction: column;
|
|
@@ -266,7 +281,7 @@ function a0_0x4edd(_0x5bdcb5,_0x27df35){const _0x407b63=a0_0x407b();return a0_0x
|
|
|
266
281
|
margin-left:7px;
|
|
267
282
|
margin-top:7px;
|
|
268
283
|
}
|
|
269
|
-
`];}static[
|
|
284
|
+
`];}static['getMasterDetailLeftRightGristStyle'](){return[CommonGristStyles,ScrollbarStyles,css`
|
|
270
285
|
:host {
|
|
271
286
|
display: flex;
|
|
272
287
|
flex-direction: column;
|
|
@@ -333,7 +348,7 @@ function a0_0x4edd(_0x5bdcb5,_0x27df35){const _0x407b63=a0_0x407b();return a0_0x
|
|
|
333
348
|
margin-left:7px;
|
|
334
349
|
margin-top:7px;
|
|
335
350
|
}
|
|
336
|
-
`];}static[
|
|
351
|
+
`];}static[a0_0x102ceb(0x28d)](){return[ScrollbarStyles,css`
|
|
337
352
|
:host {
|
|
338
353
|
display: flex;
|
|
339
354
|
flex: 1;
|
|
@@ -477,188 +492,204 @@ function a0_0x4edd(_0x5bdcb5,_0x27df35){const _0x407b63=a0_0x407b();return a0_0x
|
|
|
477
492
|
overflow-x: overlay;
|
|
478
493
|
background-color: var(--main-section-background-color);
|
|
479
494
|
}
|
|
480
|
-
`];}static[
|
|
495
|
+
`];}static['isButtonExist'](_0x23859c,_0x55f1f4){const _0x5dcce6=a0_0x102ceb;return!!(_0x23859c?_0x23859c[_0x5dcce6(0x1db)](_0x2cbf48=>_0x2cbf48[_0x5dcce6(0x22d)]==_0x55f1f4):null);}static[a0_0x102ceb(0x175)](_0x2615c1,_0x5cfb8e){const _0x1beeda=a0_0x102ceb;return!!(_0x2615c1&&_0x2615c1['button']?_0x2615c1[_0x1beeda(0x2a2)]['find'](_0x10dfe8=>_0x10dfe8['name']==_0x5cfb8e):null);}static[a0_0x102ceb(0x254)](_0x163388){const _0x2ad6bb=a0_0x102ceb;let _0x596762='';return _0x163388[_0x2ad6bb(0x28c)](_0x34a453=>'gutter'!=_0x34a453[_0x2ad6bb(0x180)])['forEach'](_0x3f5b2a=>{const _0x347612=_0x2ad6bb;_0x596762+='\x0a',_0x596762+=_0x347612(0x1d2)==_0x3f5b2a[_0x347612(0x180)]||_0x347612(0x186)==_0x3f5b2a['type']?_0x3f5b2a[_0x347612(0x22d)]+'\x0a{'+MetaUiUtil[_0x347612(0x231)](_0x3f5b2a)+'}':'board'==_0x3f5b2a[_0x347612(0x180)]?_0x3f5b2a['name']+_0x347612(0x1c5):_0x3f5b2a[_0x347612(0x22d)];}),_0x596762;}static[a0_0x102ceb(0x231)](_0x2be0d8){const _0x22ff1c=a0_0x102ceb;let _0x22bec8='';return ValueUtil[_0x22ff1c(0x1dc)](_0x2be0d8[_0x22ff1c(0x2bf)][_0x22ff1c(0x257)])&&ValueUtil[_0x22ff1c(0x1dc)](_0x2be0d8['record'][_0x22ff1c(0x257)][_0x22ff1c(0x1b1)])&&_0x2be0d8[_0x22ff1c(0x2bf)][_0x22ff1c(0x257)][_0x22ff1c(0x1b1)][_0x22ff1c(0x184)](_0xceeb5e=>{const _0x38d26d=_0x22ff1c;_0xceeb5e[_0x38d26d(0x22d)]&&''!==_0xceeb5e['name']&&('object'===_0xceeb5e['type']||_0x38d26d(0x186)===_0xceeb5e[_0x38d26d(0x180)]?_0x22bec8+='\x0a'+_0xceeb5e['name']+'\x20{\x20'+MetaUiUtil[_0x38d26d(0x231)](_0xceeb5e)+_0x38d26d(0x2b4):_0x22bec8+='\x0a'+_0xceeb5e[_0x38d26d(0x22d)]);}),''==_0x22bec8&&(_0x22bec8+=_0x22ff1c(0x1d5)),_0x22bec8;}static['getBasicGristHtml'](_0xc688ca){const _0x139d91=a0_0x102ceb;let _0x347140=_0xc688ca[_0x139d91(0x255)];if(_0x347140){let _0x87795b=_0xc688ca[_0x139d91(0x270)]?_0xc688ca[_0x139d91(0x270)]:'ox-grist',_0x5680e0=_0xc688ca[_0x139d91(0x17e)];return html`
|
|
481
496
|
<ox-grist
|
|
482
|
-
id=${
|
|
483
|
-
.config=${
|
|
484
|
-
.mode=${
|
|
497
|
+
id=${_0x87795b}
|
|
498
|
+
.config=${_0x347140}
|
|
499
|
+
.mode=${_0x5680e0}
|
|
485
500
|
auto-fetch
|
|
486
|
-
.fetchHandler=${
|
|
487
|
-
${MetaUiUtil[
|
|
501
|
+
.fetchHandler=${_0xc688ca[_0x139d91(0x1ed)][_0x139d91(0x1b7)](_0xc688ca)}>
|
|
502
|
+
${MetaUiUtil[_0x139d91(0x2c0)](_0xc688ca)}
|
|
488
503
|
</ox-grist>
|
|
489
|
-
`;}return html``;}static[
|
|
504
|
+
`;}return html``;}static['getBasicFormHtml'](_0x44b7ce){const _0x2a0fc5=a0_0x102ceb;if(!_0x44b7ce)return html``;if(!_0x44b7ce[_0x2a0fc5(0x229)])return html``;let _0x411b04=_0x44b7ce[_0x2a0fc5(0x229)],_0x51b58d=_0x44b7ce['record']||{},_0x25ab10=_0x411b04[_0x2a0fc5(0x28c)](_0x59f528=>0x0==_0x59f528['hidden']);return ValueUtil[_0x2a0fc5(0x24e)](_0x44b7ce[_0x2a0fc5(0x260)])?MetaUiUtil[_0x2a0fc5(0x245)](_0x44b7ce,_0x25ab10,_0x51b58d):MetaUiUtil[_0x2a0fc5(0x196)](_0x44b7ce,_0x25ab10,_0x51b58d);}static[a0_0x102ceb(0x196)](_0x2e953d,_0x19a378,_0x23dc7e){const _0x2ae7a5=a0_0x102ceb;let _0x47cf16=_0x2e953d['formRenderConfig'];return html`
|
|
490
505
|
<div class="root_container">
|
|
491
|
-
${
|
|
506
|
+
${_0x47cf16['map'](_0x5c29ce=>{const _0x3bdd1f=a0_0x2594;let _0x3ca732=_0x19a378[_0x3bdd1f(0x28c)](_0x4653e0=>_0x5c29ce[_0x3bdd1f(0x185)][_0x3bdd1f(0x24c)](_0x4653e0[_0x3bdd1f(0x22d)])),_0x3be493=_0x3bdd1f(0x25b);for(let _0x4b5422=0x0;_0x4b5422<_0x5c29ce['column'];_0x4b5422++)_0x3be493+=_0x3bdd1f(0x288);return _0x3be493+=';',html`
|
|
492
507
|
<h2>
|
|
493
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
508
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x3bdd1f(0x225)](_0x5c29ce[_0x3bdd1f(0x17b)])}
|
|
494
509
|
</h2>
|
|
495
|
-
<div id="content_container" class="content_container" style="${
|
|
496
|
-
${
|
|
497
|
-
<label ?editable=${
|
|
498
|
-
${
|
|
510
|
+
<div id="content_container" class="content_container" style="${_0x3be493}">
|
|
511
|
+
${_0x3ca732[_0x3bdd1f(0x1e0)](_0x2b7435=>{const _0x1fd8c2=_0x3bdd1f;let {editable:_0x378d8a=!0x1,mandatory:_0x36c39b=!0x1}=_0x2b7435[_0x1fd8c2(0x2bf)],_0x3600d9=_0x23dc7e[_0x1fd8c2(0x22f)]||{};return html`
|
|
512
|
+
<label ?editable=${_0x378d8a}><span>${_0x36c39b?'*':''}${_0x2b7435[_0x1fd8c2(0x2a8)]}</span>
|
|
513
|
+
${_0x378d8a?html`<mwc-icon>edit</mwc-icon>`:''}
|
|
499
514
|
</label>
|
|
500
515
|
<ox-grid-field
|
|
501
516
|
.rowIndex=${0x0}
|
|
502
|
-
.column=${
|
|
503
|
-
.record=${
|
|
504
|
-
.value=${
|
|
505
|
-
?dirty=${!!
|
|
517
|
+
.column=${_0x2b7435}
|
|
518
|
+
.record=${_0x23dc7e}
|
|
519
|
+
.value=${_0x23dc7e[_0x2b7435[_0x1fd8c2(0x22d)]]}
|
|
520
|
+
?dirty=${!!_0x3600d9[_0x2b7435[_0x1fd8c2(0x22d)]]}
|
|
506
521
|
></ox-grid-field>
|
|
507
522
|
`;})}
|
|
508
523
|
</div>
|
|
509
524
|
`;})}
|
|
510
525
|
</div>
|
|
511
|
-
${
|
|
512
|
-
`;}static[
|
|
513
|
-
<div id="container" class="container" style="${
|
|
514
|
-
${
|
|
515
|
-
<label ?editable=${
|
|
516
|
-
${
|
|
526
|
+
${_0x2e953d['isPage']?html``:MetaUiUtil[_0x2ae7a5(0x2a1)](_0x2e953d)}
|
|
527
|
+
`;}static[a0_0x102ceb(0x245)](_0x236ec3,_0x1d64ba,_0x16a526){const _0x4f0d96=a0_0x102ceb;let _0x238d27=_0x4f0d96(0x247);_0x236ec3[_0x4f0d96(0x182)]&&0x0!=_0x236ec3['column']||(_0x236ec3[_0x4f0d96(0x182)]=0x1),_0x236ec3[_0x4f0d96(0x182)]=parseInt((_0x236ec3[_0x4f0d96(0x25f)]||{})[_0x4f0d96(0x28e)]||_0x236ec3[_0x4f0d96(0x182)]);for(let _0x8f7e04=0x0;_0x8f7e04<_0x236ec3[_0x4f0d96(0x182)];_0x8f7e04++)_0x238d27+=_0x4f0d96(0x288);return _0x238d27+=';',html`
|
|
528
|
+
<div id="container" class="container" style="${_0x238d27}">
|
|
529
|
+
${_0x1d64ba[_0x4f0d96(0x1e0)](_0x93465b=>{const _0x32f0ef=_0x4f0d96;let {editable:_0x294865=!0x1,mandatory:_0x47fa00=!0x1}=_0x93465b[_0x32f0ef(0x2bf)],_0x307230=_0x16a526['__dirtyfields__']||{};return html`
|
|
530
|
+
<label ?editable=${_0x294865}><span>${_0x47fa00?'*':''}${_0x93465b[_0x32f0ef(0x2a8)]}</span>
|
|
531
|
+
${_0x294865?html`<mwc-icon>edit</mwc-icon>`:''}
|
|
517
532
|
</label>
|
|
518
533
|
<ox-grid-field
|
|
519
534
|
.rowIndex=${0x0}
|
|
520
|
-
.column=${
|
|
521
|
-
.record=${
|
|
522
|
-
.value=${
|
|
523
|
-
?dirty=${!!
|
|
535
|
+
.column=${_0x93465b}
|
|
536
|
+
.record=${_0x16a526}
|
|
537
|
+
.value=${_0x16a526[_0x93465b['name']]}
|
|
538
|
+
?dirty=${!!_0x307230[_0x93465b[_0x32f0ef(0x22d)]]}
|
|
524
539
|
></ox-grid-field>
|
|
525
540
|
`;})}
|
|
526
541
|
</div>
|
|
527
|
-
${
|
|
528
|
-
`;}static[
|
|
542
|
+
${_0x236ec3[_0x4f0d96(0x251)]?html``:MetaUiUtil[_0x4f0d96(0x2a1)](_0x236ec3)}
|
|
543
|
+
`;}static[a0_0x102ceb(0x1fc)](_0x1299fb){const _0x5c74cb=a0_0x102ceb;if(!_0x1299fb)return html``;if(!_0x1299fb[_0x5c74cb(0x194)])return html``;let _0x30ce87=_0x1299fb[_0x5c74cb(0x194)];return _0x1299fb['currentTabKey']||(_0x1299fb[_0x5c74cb(0x1a7)]=_0x30ce87[0x0]?.[_0x5c74cb(0x22d)]||void 0x0),html`
|
|
529
544
|
<div class="tabs">
|
|
530
|
-
${
|
|
531
|
-
<div class="tab" ?activate="${
|
|
532
|
-
${
|
|
533
|
-
<span>${
|
|
545
|
+
${_0x30ce87[_0x5c74cb(0x1e0)](_0x88ea63=>{const _0x16dfca=_0x5c74cb;let _0x138f06=TermsUtil[_0x16dfca(0x1a9)](_0x88ea63['display']),_0x1734e0=_0x88ea63[_0x16dfca(0x22d)];return html`
|
|
546
|
+
<div class="tab" ?activate="${_0x1734e0===_0x1299fb['currentTabKey']}" @click="${()=>_0x1299fb['currentTabKey']=_0x1734e0}">
|
|
547
|
+
${_0x88ea63[_0x16dfca(0x1ee)]?html`<mwc-icon>${_0x88ea63[_0x16dfca(0x1ee)]}</mwc-icon>`:html``}
|
|
548
|
+
<span>${_0x138f06}</span>
|
|
534
549
|
</div>
|
|
535
550
|
`;})}
|
|
536
551
|
</div>
|
|
537
552
|
<div class="content-container">
|
|
538
|
-
${
|
|
539
|
-
<div class='tab-contents' style="${
|
|
540
|
-
${MetaUiUtil[
|
|
553
|
+
${_0x30ce87['map'](_0x404630=>{const _0x31bf61=_0x5c74cb;let _0x69901b=_0x31bf61(0x29b);return _0x404630[_0x31bf61(0x22d)]==_0x1299fb[_0x31bf61(0x1a7)]&&(_0x69901b=_0x31bf61(0x1e8)),html`
|
|
554
|
+
<div class='tab-contents' style="${_0x69901b}">
|
|
555
|
+
${MetaUiUtil[_0x31bf61(0x293)](_0x1299fb,_0x404630)}
|
|
541
556
|
</div>
|
|
542
557
|
`;})}
|
|
543
558
|
</div>
|
|
544
|
-
`;}static[
|
|
545
|
-
${0x0==
|
|
559
|
+
`;}static[a0_0x102ceb(0x1c4)](_0x3be781){const _0x52af40=a0_0x102ceb;let _0x5e26f5=(_0x3be781[_0x52af40(0x25f)]||{})['master_detail_type']||_0x52af40(0x2b6),_0x235570=(_0x3be781[_0x52af40(0x25f)]||{})['master_detail_size']||'50%\x2050%',_0x4571cc='left_right'==_0x5e26f5?_0x52af40(0x247)+_0x235570+';':_0x52af40(0x18d)+_0x235570+';',_0x1e8620=_0x3be781[_0x52af40(0x251)]?UiUtil[_0x52af40(0x223)]():_0x3be781[_0x52af40(0x170)];return html`
|
|
560
|
+
${0x0==_0x3be781[_0x52af40(0x268)]?html``:html`
|
|
546
561
|
<div slot="headroom">
|
|
547
562
|
<div id="filters">
|
|
548
563
|
<ox-filters-form-base
|
|
549
564
|
id='ox-filters-form'
|
|
550
|
-
.filters=${
|
|
551
|
-
.value=${
|
|
552
|
-
@filters-change=${
|
|
565
|
+
.filters=${_0x3be781['searchFields']||[]}
|
|
566
|
+
.value=${_0x3be781[_0x52af40(0x1a8)]||[]}
|
|
567
|
+
@filters-change=${_0x8de292=>{const _0x440eff=_0x52af40;_0x3be781[_0x440eff(0x1f6)]?.[_0x440eff(0x1d0)]();}}
|
|
553
568
|
></ox-filters-form-base>
|
|
554
569
|
</div>
|
|
555
570
|
</div>
|
|
556
571
|
`}
|
|
557
|
-
<div id="container" class="container" style="${
|
|
572
|
+
<div id="container" class="container" style="${_0x4571cc}">
|
|
558
573
|
<div class="container_detail">
|
|
559
|
-
${MetaApi[
|
|
560
|
-
${MetaUiUtil[
|
|
574
|
+
${MetaApi[_0x52af40(0x23e)](_0x3be781)}
|
|
575
|
+
${MetaUiUtil['getButtonContainer'](_0x3be781)}
|
|
561
576
|
</div>
|
|
562
577
|
<div class="container_detail">
|
|
563
|
-
${!0x0===
|
|
578
|
+
${!0x0===_0x3be781[_0x52af40(0x281)]?html`${!0x0===_0x3be781[_0x52af40(0x235)]?html`<meta-tab-element
|
|
564
579
|
id="detail"
|
|
565
|
-
route_name="${
|
|
566
|
-
.activityDataSet=${(
|
|
580
|
+
route_name="${_0x1e8620}"
|
|
581
|
+
.activityDataSet=${(_0x3be781['activityDataSet']||{})['detail']}
|
|
567
582
|
is_readonly=true
|
|
568
583
|
is_activity=true
|
|
569
584
|
is_detail=true>
|
|
570
585
|
</meta-tab-element>`:html`<meta-tab-element
|
|
571
586
|
id="detail"
|
|
572
|
-
route_name="${
|
|
573
|
-
.activityDataSet=${(
|
|
587
|
+
route_name="${_0x1e8620}"
|
|
588
|
+
.activityDataSet=${(_0x3be781[_0x52af40(0x241)]||{})['detail']}
|
|
574
589
|
is_activity=true
|
|
575
590
|
is_detail=true>
|
|
576
|
-
</meta-tab-element>`}`:html`${!0x0===
|
|
591
|
+
</meta-tab-element>`}`:html`${!0x0===_0x3be781[_0x52af40(0x235)]?html`<meta-tab-element id="detail" route_name="${_0x1e8620}" is_readonly=true is_detail=true></meta-tab-element>`:html`<meta-tab-element id="detail" route_name="${_0x1e8620}" is_detail=true></meta-tab-element>`}`}
|
|
577
592
|
</div>
|
|
578
593
|
</div>
|
|
579
|
-
`;}static['getTabDetailHtml'](
|
|
580
|
-
${0x0==
|
|
594
|
+
`;}static['getTabDetailHtml'](_0x3be671){const _0x2ab388=a0_0x102ceb;let _0x279bc7=_0x3be671['etcConfig'][_0x2ab388(0x26a)]||'top_bottom',_0x4dddba=_0x3be671[_0x2ab388(0x25f)]['master_detail_size']||'50%\x2050%',_0x24ac18=_0x3be671[_0x2ab388(0x25f)][_0x2ab388(0x269)],_0x29826b=JSON[_0x2ab388(0x187)](_0x24ac18||'{}'),_0x582d15=_0x2ab388(0x28b)==_0x279bc7?_0x2ab388(0x247)+_0x4dddba+';':_0x2ab388(0x18d)+_0x4dddba+';';return MetaUiUtil[_0x2ab388(0x242)](_0x3be671),MetaUiUtil[_0x2ab388(0x21d)](_0x3be671,_0x29826b),html`
|
|
595
|
+
${0x0==_0x3be671[_0x2ab388(0x268)]?html``:html`
|
|
581
596
|
<div slot="headroom">
|
|
582
597
|
<div id="filters">
|
|
583
598
|
<ox-filters-form-base
|
|
584
599
|
id='ox-filters-form'
|
|
585
|
-
.filters=${
|
|
586
|
-
.value=${
|
|
587
|
-
@filters-change=${
|
|
600
|
+
.filters=${_0x3be671['searchFields']||[]}
|
|
601
|
+
.value=${_0x3be671['searchFieldValues']||[]}
|
|
602
|
+
@filters-change=${_0x3fa1ea=>{_0x3be671['fetch']();}}
|
|
588
603
|
></ox-filters-form-base>
|
|
589
604
|
</div>
|
|
590
605
|
</div>
|
|
591
606
|
`}
|
|
592
|
-
<div id="container" class="container" style="${
|
|
607
|
+
<div id="container" class="container" style="${_0x582d15}">
|
|
593
608
|
<div class="container_detail">
|
|
594
|
-
${
|
|
609
|
+
${_0x3be671[_0x2ab388(0x1c3)]}
|
|
595
610
|
</div>
|
|
596
611
|
<div class="container_detail">
|
|
597
|
-
${''==
|
|
598
|
-
${
|
|
612
|
+
${''==_0x29826b['tagname']||_0x2ab388(0x266)==_0x29826b[_0x2ab388(0x1b9)]?html``:html`<h2 id='detail_title'><mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x2ab388(0x225)](''+_0x29826b[_0x2ab388(0x17b)])}</h2>`}
|
|
613
|
+
${_0x3be671[_0x2ab388(0x203)]}
|
|
599
614
|
</div>
|
|
600
615
|
</div>
|
|
601
|
-
`;}static['
|
|
602
|
-
${0x0==
|
|
616
|
+
`;}static['getMainTabHtml'](_0x212e6e){const _0xc788ad=a0_0x102ceb;return MetaUiUtil[_0xc788ad(0x242)](_0x212e6e),html`
|
|
617
|
+
${0x0==_0x212e6e[_0xc788ad(0x268)]?html``:html`
|
|
618
|
+
<div slot="headroom">
|
|
619
|
+
<div id="filters">
|
|
620
|
+
<ox-filters-form-base
|
|
621
|
+
id='ox-filters-form'
|
|
622
|
+
.filters=${_0x212e6e['searchFields']||[]}
|
|
623
|
+
.value=${_0x212e6e[_0xc788ad(0x1a8)]||[]}
|
|
624
|
+
@filters-change=${_0x289c42=>{const _0x4ed54f=_0xc788ad;_0x212e6e[_0x4ed54f(0x1d0)]();}}
|
|
625
|
+
></ox-filters-form-base>
|
|
626
|
+
</div>
|
|
627
|
+
</div>
|
|
628
|
+
`}
|
|
629
|
+
<div id="container" class="container" >
|
|
630
|
+
${_0x212e6e[_0xc788ad(0x1c3)]}
|
|
631
|
+
</div>
|
|
632
|
+
`;}static[a0_0x102ceb(0x285)](_0x4109d1){const _0x35daa8=a0_0x102ceb;let _0x1a33b9=_0x4109d1['etcConfig']['master_detail_type']||_0x35daa8(0x2b6),_0x16d773=_0x4109d1[_0x35daa8(0x25f)]['master_detail_size']||_0x35daa8(0x20d),_0x143d59=_0x4109d1[_0x35daa8(0x25f)]['master_detail_element'],_0x17343d=JSON['parse'](_0x143d59||'{}'),_0x1a070e=_0x35daa8(0x28b)==_0x1a33b9?'grid-template-columns:'+_0x16d773+';':_0x35daa8(0x18d)+_0x16d773+';';return MetaUiUtil[_0x35daa8(0x21d)](_0x4109d1,_0x17343d),html`
|
|
633
|
+
${0x0==_0x4109d1[_0x35daa8(0x268)]?html``:html`
|
|
603
634
|
<div slot="headroom">
|
|
604
635
|
<div id="filters">
|
|
605
636
|
<ox-filters-form-base
|
|
606
637
|
id='ox-filters-form'
|
|
607
|
-
.filters=${
|
|
608
|
-
.value=${
|
|
609
|
-
@filters-change=${
|
|
638
|
+
.filters=${_0x4109d1[_0x35daa8(0x294)]||[]}
|
|
639
|
+
.value=${_0x4109d1['searchFieldValues']||[]}
|
|
640
|
+
@filters-change=${_0xb06bc2=>{const _0x3d0055=_0x35daa8;_0x4109d1[_0x3d0055(0x1f6)]?.['fetch']();}}
|
|
610
641
|
></ox-filters-form-base>
|
|
611
642
|
</div>
|
|
612
643
|
</div>
|
|
613
644
|
`}
|
|
614
|
-
<div id="container" class="container" style="${
|
|
645
|
+
<div id="container" class="container" style="${_0x1a070e}">
|
|
615
646
|
<div class="container_detail">
|
|
616
|
-
${MetaApi[
|
|
617
|
-
${MetaUiUtil[
|
|
647
|
+
${MetaApi[_0x35daa8(0x23e)](_0x4109d1)}
|
|
648
|
+
${MetaUiUtil[_0x35daa8(0x2a1)](_0x4109d1)}
|
|
618
649
|
</div>
|
|
619
650
|
<div class="container_detail">
|
|
620
|
-
${''==
|
|
621
|
-
${
|
|
651
|
+
${''==_0x17343d[_0x35daa8(0x1b9)]||_0x35daa8(0x266)==_0x17343d['tagname']?html``:html`<h2 id='detail_title'><mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x35daa8(0x225)](''+_0x17343d[_0x35daa8(0x17b)])}</h2>`}
|
|
652
|
+
${_0x4109d1[_0x35daa8(0x203)]}
|
|
622
653
|
</div>
|
|
623
654
|
</div>
|
|
624
|
-
`;}static[
|
|
655
|
+
`;}static[a0_0x102ceb(0x21d)](_0x6e6f9e,_0x52a360){const _0x429674=a0_0x102ceb;if(!_0x6e6f9e[_0x429674(0x203)]){let _0x57c7e2=_0x52a360[_0x429674(0x22d)]?_0x52a360[_0x429674(0x22d)]:_0x429674(0x1fb),_0x2addc2='<'+_0x52a360[_0x429674(0x1b9)]+'\x20id=\x22'+_0x57c7e2+_0x429674(0x20e)+_0x57c7e2+'\x22\x20route_name=\x22'+_0x52a360[_0x429674(0x1c8)]+'\x22\x20'+(!0x0===_0x6e6f9e[_0x429674(0x281)]?_0x429674(0x172):'')+'\x20'+(!0x0===_0x6e6f9e['is_readonly']?_0x429674(0x1bb):'')+'\x20is_detail=true\x20style=\x22flex:1;\x22></'+_0x52a360[_0x429674(0x1b9)]+'>';_0x6e6f9e['detailElement']=UiUtil[_0x429674(0x23c)](_0x2addc2),_0x6e6f9e[_0x429674(0x203)]['activityDataSet']=(_0x6e6f9e[_0x429674(0x241)]||{})[_0x429674(0x1fb)],_0x6e6f9e[_0x429674(0x20a)]['toLowerCase']()['startsWith']('meta-tab-detail-')&&(_0x6e6f9e[_0x429674(0x203)]['rootElement']=_0x6e6f9e);}}static[a0_0x102ceb(0x242)](_0x4a2a7e){const _0x38b4f4=a0_0x102ceb;if(!_0x4a2a7e[_0x38b4f4(0x1c3)]&&_0x4a2a7e[_0x38b4f4(0x28f)]){let _0x299904='master',_0xf41ba7='<meta-tab-element\x20id=\x22'+_0x299904+'\x22\x20name=\x22'+_0x299904+_0x38b4f4(0x271)+_0x4a2a7e[_0x38b4f4(0x223)]+'\x22\x20'+(!0x0===_0x4a2a7e['is_activity']?_0x38b4f4(0x172):'')+'\x20'+(!0x0===_0x4a2a7e[_0x38b4f4(0x235)]?'is_readonly=true':'')+_0x38b4f4(0x1f2);_0x4a2a7e['masterElement']=UiUtil[_0x38b4f4(0x23c)](_0xf41ba7),_0x4a2a7e['masterElement'][_0x38b4f4(0x241)]=(_0x4a2a7e[_0x38b4f4(0x241)]||{})[_0x38b4f4(0x1e7)],_0x4a2a7e[_0x38b4f4(0x1c3)]['includeMainList']=!0x0,_0x4a2a7e[_0x38b4f4(0x1c3)][_0x38b4f4(0x1b3)]=_0x4a2a7e[_0x38b4f4(0x28f)],_0x4a2a7e[_0x38b4f4(0x1c3)]['rootElement']=_0x4a2a7e;}}static[a0_0x102ceb(0x293)](_0x21a416,_0x11ef84){const _0x213790=a0_0x102ceb;if(_0x21a416[_0x213790(0x236)]||(_0x21a416[_0x213790(0x236)]={}),Object[_0x213790(0x230)](_0x21a416[_0x213790(0x236)])[_0x213790(0x28c)](_0x240019=>_0x240019==_0x11ef84[_0x213790(0x22d)])[_0x213790(0x1a6)]>0x0)return _0x21a416[_0x213790(0x236)][_0x11ef84[_0x213790(0x22d)]];let _0x1e64e4='<'+_0x11ef84[_0x213790(0x1b9)]+_0x213790(0x216)+_0x11ef84[_0x213790(0x22d)]+'\x27\x20route_name=\x27'+_0x11ef84['menu']+_0x213790(0x238)+(!0x0===_0x21a416[_0x213790(0x281)]?'is_activity=true':'')+'\x20'+(!0x0===_0x21a416['is_readonly']?_0x213790(0x1bb):'')+_0x213790(0x201)+_0x11ef84[_0x213790(0x1b9)]+'>',_0x4f274e=UiUtil[_0x213790(0x23c)](_0x1e64e4);return _0x4f274e['activityDataSet']=(_0x21a416['activityDataSet']||{})[_0x11ef84[_0x213790(0x22d)]],_0x21a416[_0x213790(0x23b)]&&(_0x4f274e[_0x213790(0x23b)]=_0x21a416[_0x213790(0x23b)]),_0x21a416['rootElement']?_0x4f274e['rootElement']=_0x21a416[_0x213790(0x1ae)]:_0x4f274e[_0x213790(0x203)]=_0x21a416,!0x1===_0x11ef84[_0x213790(0x211)]&&(_0x4f274e[_0x213790(0x1a1)]=!0x1),_0x11ef84['main_filter_form']&&(_0x4f274e[_0x213790(0x1b3)]=_0x11ef84[_0x213790(0x1d4)]),_0x21a416[_0x213790(0x236)][_0x11ef84[_0x213790(0x22d)]]=_0x4f274e,_0x4f274e;}static[a0_0x102ceb(0x2c0)](_0x216a88){const _0x1bf6c7=a0_0x102ceb;let _0x23f9f7=_0x216a88[_0x1bf6c7(0x29f)],_0x1522be=_0x216a88[_0x1bf6c7(0x26e)],_0x14650e=_0x216a88['recordCreationCallback'],_0x2c4659=JSON['parse']((_0x216a88[_0x1bf6c7(0x25f)]||{})['use_grid_sort_button']||_0x1bf6c7(0x2bb));return 0x0==_0x1522be?html`
|
|
625
656
|
<div slot="headroom" style="flex-direction: column;padding: 0px;border-top: none;box-shadow: none;background: none;align-items: stretch;">
|
|
626
|
-
${this[
|
|
657
|
+
${this[_0x1bf6c7(0x1c6)](_0x216a88)}
|
|
627
658
|
</div>
|
|
628
659
|
`:html`
|
|
629
660
|
<div slot="headroom" style="flex-direction: column;padding: 0px;border-top: none;box-shadow: none;background: none;align-items: stretch;">
|
|
630
661
|
<div slot="headroom">
|
|
631
662
|
<div id="filters"><ox-filters-form></ox-filters-form></div>
|
|
632
|
-
${
|
|
663
|
+
${_0x2c4659?html`
|
|
633
664
|
<div id="sorters">
|
|
634
|
-
<mwc-icon @click=${
|
|
665
|
+
<mwc-icon @click=${_0xba7f70=>{const _0x47adba=_0x1bf6c7,_0x5e340c=_0xba7f70[_0x47adba(0x286)];_0x5e340c[_0x47adba(0x1c2)][_0x47adba(0x1dd)]({'right':0x0,'top':_0x5e340c[_0x47adba(0x29d)]+_0x5e340c[_0x47adba(0x1f7)]});}}
|
|
635
666
|
>sort</mwc-icon>
|
|
636
667
|
<ox-popup id="sorter-control">
|
|
637
668
|
<ox-sorters-control></ox-sorters-control>
|
|
638
669
|
</ox-popup>
|
|
639
670
|
</div>
|
|
640
671
|
`:html``}
|
|
641
|
-
${MetaUiUtil[
|
|
672
|
+
${MetaUiUtil['getGridViewOption'](_0x216a88)}
|
|
642
673
|
<ox-record-creator
|
|
643
674
|
id="add"
|
|
644
|
-
?hidden="${!
|
|
645
|
-
.callback=${
|
|
675
|
+
?hidden="${!_0x23f9f7}"
|
|
676
|
+
.callback=${_0x14650e}>
|
|
646
677
|
<button>
|
|
647
678
|
<mwc-icon>add</mwc-icon>
|
|
648
679
|
</button>
|
|
649
680
|
</ox-record-creator>
|
|
650
681
|
</div>
|
|
651
|
-
${this[
|
|
682
|
+
${this[_0x1bf6c7(0x1c6)](_0x216a88)}
|
|
652
683
|
</div>
|
|
653
|
-
`;}static[
|
|
684
|
+
`;}static[a0_0x102ceb(0x1c6)](_0x3b3257){const _0x202418=a0_0x102ceb;return _0x202418(0x207)!=_0x3b3257['gridMode']?html``:!0x0!==_0x3b3257[_0x202418(0x281)]?html`
|
|
654
685
|
<div id="grist-personal">
|
|
655
|
-
<mwc-icon @click=${
|
|
686
|
+
<mwc-icon @click=${_0xa885d9=>{const _0x1d2af0=_0x202418;let _0x319d32=MetaApi[_0x1d2af0(0x283)](_0x1d2af0(0x1c1),'personal-column-selector');_0x319d32[_0x1d2af0(0x2a0)]=_0xa885d9[_0x1d2af0(0x286)][_0x1d2af0(0x21a)]['parentElement']['parentElement'],_0x319d32[_0x1d2af0(0x1cf)]=_0x3b3257[_0x1d2af0(0x1cf)],MetaApi[_0x1d2af0(0x195)](TermsUtil[_0x1d2af0(0x225)]('grid-column-personalize'),_0x1d2af0(0x23a),_0x319d32,!0x1);}}
|
|
656
687
|
>tune</mwc-icon>
|
|
657
688
|
</div>
|
|
658
|
-
`:html``;}static[
|
|
689
|
+
`:html``;}static['getGridViewOption'](_0x1adef7){const _0xb99fc1=a0_0x102ceb;return ValueUtil[_0xb99fc1(0x24e)](_0x1adef7[_0xb99fc1(0x1d8)])||0x1==_0x1adef7['gridViewOptions']['length']?html``:html`
|
|
659
690
|
<div id="modes">
|
|
660
|
-
${
|
|
661
|
-
${
|
|
662
|
-
${
|
|
691
|
+
${_0x1adef7[_0xb99fc1(0x1d8)][_0xb99fc1(0x24c)](_0xb99fc1(0x207))?html`<mwc-icon @click="${()=>_0x1adef7['gridMode']=_0xb99fc1(0x207)}" ?active="${_0xb99fc1(0x207)==_0x1adef7[_0xb99fc1(0x17e)]}">grid_on</mwc-icon>`:''}
|
|
692
|
+
${_0x1adef7[_0xb99fc1(0x1d8)][_0xb99fc1(0x24c)](_0xb99fc1(0x1df))?html`<mwc-icon @click="${()=>_0x1adef7['gridMode']=_0xb99fc1(0x1df)}" ?active="${_0xb99fc1(0x1df)==_0x1adef7[_0xb99fc1(0x17e)]}">format_list_bulleted</mwc-icon>`:''}
|
|
693
|
+
${_0x1adef7[_0xb99fc1(0x1d8)][_0xb99fc1(0x24c)]('CARD')?html`<mwc-icon @click="${()=>_0x1adef7[_0xb99fc1(0x17e)]=_0xb99fc1(0x27f)}" ?active="${_0xb99fc1(0x27f)==_0x1adef7[_0xb99fc1(0x17e)]}">apps</mwc-icon>`:''}
|
|
663
694
|
</div>
|
|
664
|
-
`;}static[
|
|
695
|
+
`;}static[a0_0x102ceb(0x2a1)](_0x240130){const _0x215a5a=a0_0x102ceb;return html`<div id="button-container" class="button-container">${MetaUiUtil[_0x215a5a(0x1a3)](_0x240130)}</div>`;}}
|