@things-factory/meta-ui 6.1.52 → 6.1.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/actions/main.js +4 -4
- package/client/component/filter/filter-form-meta-code-select.js +9 -9
- package/client/component/filter/filter-form-meta-object-select.js +9 -9
- package/client/component/filter/filter-grist-meta-code-select.js +9 -9
- package/client/component/filter/filter-grist-meta-object-select.js +9 -9
- package/client/component/grist/editor/grist-editor-code-input.js +6 -6
- package/client/component/grist/editor/grist-editor-meta-code-selector.js +7 -7
- package/client/component/grist/editor/grist-editor-meta-object-selector.js +7 -7
- package/client/component/grist/renderer/grist-renderer-code-input.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-code-selector.js +1 -1
- package/client/component/grist/renderer/grist-renderer-meta-object-selector.js +1 -1
- package/client/component/popup/code-input-editor-popup.js +10 -10
- package/client/component/popup/meta-object-selector-popup.js +11 -11
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +3 -3
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +1 -1
- package/client/mixin/meta-main-tab-mixin.js +1 -1
- package/client/mixin/meta-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-detail-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/activity/meta-activity-list-page.js +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +3 -3
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/entity/config-entity.js +28 -28
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +16 -16
- package/client/pages/menu/export-menu-popup.js +7 -7
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-main-tab-element.js +1 -1
- package/client/pages/meta-main-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-detail-element.js +1 -1
- package/client/pages/meta-tab-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +6 -6
- package/client/pages/work-code/work-code-detail-popup.js +1 -1
- package/client/pages/work-code/work-code-page.js +1 -1
- package/client/reducers/main.js +1 -1
- package/client/utils/grist-default-value.js +1 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +103 -103
- 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 +11 -11
- package/client/viewparts/dynamic-menu-portrait-styles.js +2 -2
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +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/dynamic-menu/dynamic-menu-query.js +1 -1
- package/server/service/dynamic-menu/dynamic-menu-type.js +1 -1
- package/server/service/entity-event-subscriber/entity-event-subscriber.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
|
-
const
|
|
1
|
+
const a0_0x5ddfef=a0_0x414b;(function(_0x4b8924,_0x3cbd2e){const _0x2fde06=a0_0x414b,_0xae4eb5=_0x4b8924();while(!![]){try{const _0x7d0a92=-parseInt(_0x2fde06(0x13d))/0x1+parseInt(_0x2fde06(0x1d4))/0x2+parseInt(_0x2fde06(0xaa))/0x3+-parseInt(_0x2fde06(0x6e))/0x4+-parseInt(_0x2fde06(0x96))/0x5*(parseInt(_0x2fde06(0x1b5))/0x6)+-parseInt(_0x2fde06(0xb2))/0x7*(parseInt(_0x2fde06(0x1c4))/0x8)+-parseInt(_0x2fde06(0x1b9))/0x9*(-parseInt(_0x2fde06(0x121))/0xa);if(_0x7d0a92===_0x3cbd2e)break;else _0xae4eb5['push'](_0xae4eb5['shift']());}catch(_0x1d8093){_0xae4eb5['push'](_0xae4eb5['shift']());}}}(a0_0x3a89,0xa147d));import a0_0xa77dd1 from'graphql-tag';import{client}from'@operato/graphql';import a0_0x2b73cf from'moment-timezone';import{css,html}from'lit';import{ScrollbarStyles,CommonGristStyles,CommonButtonStyles}from'@operato/styles';import{store}from'@operato/shell';function a0_0x414b(_0x54bdb6,_0x20f150){const _0x3a89c2=a0_0x3a89();return a0_0x414b=function(_0x414b44,_0x24db33){_0x414b44=_0x414b44-0x64;let _0x46e615=_0x3a89c2[_0x414b44];return _0x46e615;},a0_0x414b(_0x54bdb6,_0x20f150);}import{TermsUtil}from'./terms-util';function a0_0x3a89(){const _0x592620=['desc','grist_selected','tLabel','createMasterElement','getMasterDetailHtml','gristButtonPassParam','display:none','getGridColumnPersonalizeButton','forEach','imex','main_filter_form','5gEeMji','keys','title.warning','emphasis','filterForm','invalid\x20license\x20key','\x0a{\x0aid\x0aname\x0athumbnail}','useFilterForm','data_history_list','result_name','nextElementSibling','number','service','__dirtyfields__','getCustomButtonContainerStyles','getMenuMetaData','parentElement','bind','formColumnConfig','confirm','916407BXqpRy','row','text.grid_is_not_exist','commonButtonOpenPopup','\x20\x0a\x20}','menuId','id,template','htmlToElement','68467tSFVYs','runScenario','datetime-local','recordCreationCallback','master','gridMobileMode','meta-code-selector','getObjctColumnSelectFields','mutation','isEmpty','skip_fields','getBasicFormHtmlOnOption','CARD','month','getTabDetailHtml','min','<meta-tab-element\x20id=\x22','getGristColumnConfig','object','year','param','records','isGridButtonExist','\x20id=\x22','scenario','gridMode','open_param','gutter','YYYY-MM-DD\x20HH:mm:ss','location','getGridColumnSet','is_activity=true','masterElement','args','subtract','midium','fieldChangeHandlers','toLowerCase','currentRouting','dispField','\x20is_detail=true\x20style=\x22flex:1;\x22></','title.info','pages/meta-form-element.js','customButtonHandler','infinityPage','editable','hidden','operator','day','getMasterDetailTopDownGristStyle','compareObjectValues','grid','selectorName','width','tabElements','default_form_column','activityDataSet','referenceField','getGridButtonSet','GRID','isButtonExist','gristConfigSet','getGristColumnConfig2','getGridViewOption','getGristGuttersConfig','\x20is_detail=true\x20style=\x22flex:1;\x22></meta-tab-element>','info','createButtonElement','second','startOf','left_right','getButtonContainer','parse','currentTarget','string','arguments[0].','gqlInfo','createDetailElement','replace','relation','routing','dec','getSelectColumns','useButtonAdd','selected','title','useMasterFilterForm','nameField','row-selector','classifier','\x22\x20style=\x22margin-left:7px;margin-top:7px;\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20icon=\x22','getGridOptionSet','gridDeskMode','codeField','list','getBasicMainTabStyles','buttonConfig','\x0aid\x0aname\x0adescription','column_list','false','meta-','\x27\x20style=\x22flex:1;\x22\x20','getBasicTabHtml','runnerPermission','is_readonly=true','offsetHeight','top_bottom','list_func','formRenderConfig','meta-grist-tab-','getBasicTabContent','15955670uudIKF','getBasicGristTabStyles','today','\x201fr\x202fr','\x20id=\x27','record','isNotEmpty','filterFields','getBasicMasterDetailGristStyle','-object-','handlers','showAlertPopup','formConfigSet','page','getGristSelectableConfig','push','find','grist_one','format','type','danger','selectable','tagname','length','isMobileEnv','param_field','split','getGristColumnConfig3','434506JcTnTv','tagName','getGridRowSet','gridEmphasized','unlimited','header_txt','rank','setParentId','getGristCodeSelectorColumnConfig','gristId','isPage','pages/hgistory/history-copy-list-popup.js','resource-object','findMenuMetaByRouting','dense','rootElement','findMenuMeta','createCustomElement','text.grid_data_is_empty','use_filter_form','setGridColumnSearchOption','add','text.button_bind_func_is_not_exist','self','popup','editor','logic','getBasicGristHtml','form','text.there_is_no_selected_items','getCodeByEntity','grid_column','YYYY-MM-DD','options','parent_id','getGristPersonalizedStyles','detail','board','getGridDetailHtml','meta-tab-detail-','\x20{\x20','custom','text.nothing_selected','parseGridConfigSet','stringify','mainFilterForm','currentTabKey','filter','url','errors','search','filter_from','after_set_fields','meta-form-element','findMenuGridPersnalTemplate','history_copy','grist_changed','searchConfig','tButton','master_detail_size','getBasicFormHtml','history-copy-list-popup','getGristHiddenColumnConfig','getButtonActionHandler','icon','column','50%\x2050%','history_json','use_grid_sort_button','parent_field','values','getBasicMasterDetailStyles','gristButtonValueReference','text.search_form_is_not_exist','change_event_handler','basicArgs','grist','<mwc-button\x20label=\x22','getContainerButtons','template','entity','outlined','use_row_checker','getGristSearchColumnConfig','tabRenderConfig','button','defaultPageConfig','searchFieldValues','notify','export','getGristSelectorColumnConfig','tText','getBasicTabDetailStyles','personal-column-selector','tTitle','sort','queryName','sec','detailElement','useButtonImport','grid-template-rows:','basic','display:flex','history-json-list-popup','value_reference','meta-object-selector','searchFields','menu','gridConfig','fetchHandler','\x22\x20name=\x22','includes','option','getContextObject','find_one_func','\x0a\x20\x20\x20\x20\x20\x20\x20\x20','header','getGristMetaObjectOptions','getBasicGristPageProperties','grid-template-columns:','7750464RHJylB','etcConfig','large','is_activity','18PQXIfR','date','indexOf','LIST','minute','master_detail_element','hour','tMenu','getBasicFormStyles','select','pass_field','984KuPZGM','after','fetch','model','getGristSearchCodeColumnConfig','display','parseFormConfigSet','gristButtonHandler','pageNavigate','gql','grist_all','\x27\x20route_name=\x27','backgroundColor','fontColor','floor','code','639760ZdjwVj','left','data','getCodeByScenario','name','label','useButtonExport','help','openPopupByElement','commonButtonCallScenario','getState','meta-tab-element','isArray','query','\x22\x20route_name=\x22','offsetTop','906260ObdyyJ','map','getCodeSelectorData','multiple','arguments[1]','defaultValue','menuInfo','pages','sorters','exportable','value_is_not_exist','getBasicGristStyles','pass_param','ox-grist','findOne','sequence','getGristEmphasizedStyles','config','getMasterDetailLeftRightGristStyle','open','startsWith','gridViewOptions','\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20','getGridListSet','getParams','getBasicTabStyles','filters','querySelector','is_readonly'];a0_0x3a89=function(){return _0x592620;};return a0_0x3a89();}import{ValueUtil}from'./value-util';import{ServiceUtil}from'./service-util';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';import{getValueGenerators,getValueGenerator}from'@operato/data-grist';export class MetaUiUtil{static async[a0_0x5ddfef(0x14d)](_0x41e237){const _0x38ab9b=a0_0x5ddfef;let _0x315299=await ServiceUtil[_0x38ab9b(0x7c)](_0x38ab9b(0x1a8),_0x41e237,_0x38ab9b(0x18c));if(!_0x315299)throw new Error(TermsUtil[_0x38ab9b(0x198)](_0x38ab9b(0x78),{'value':TermsUtil[_0x38ab9b(0x1c0)](_0x38ab9b(0x1a8))+'\x20'+_0x41e237}));if(!_0x315299[_0x38ab9b(0x18c)])throw new Error(TermsUtil[_0x38ab9b(0x198)](_0x38ab9b(0x78),{'value':TermsUtil[_0x38ab9b(0x1c0)](_0x38ab9b(0x1a8))+'\x20'+TermsUtil['tLabel'](_0x38ab9b(0x1c7))}));return this[_0x38ab9b(0xaf)]=_0x41e237,JSON[_0x38ab9b(0xfa)](_0x315299[_0x38ab9b(0x18c)]);}static async[a0_0x5ddfef(0xa5)](_0x256e98){const _0x4fe193=a0_0x5ddfef;if((await client['query']({'query':a0_0xa77dd1`
|
|
2
2
|
query ($id: String) {
|
|
3
3
|
metaUITemplateIsOverLimit(id: $id)
|
|
4
4
|
}
|
|
5
|
-
`,'variables':{'id':null}}))[_0x241afc(0x193)])return;let _0x4cbd83=[{'name':_0x241afc(0x25b),'operator':'eq','value':_0xc02424}];return await ServiceUtil[_0x241afc(0x1f0)](_0x241afc(0xef),_0x4cbd83,null,0x0,0x0,_0x241afc(0x1c9));}static async[a0_0x598c66(0x1d5)](_0x1bf5dc,_0xba1311){const _0x37a89a=a0_0x598c66;let _0x4e2807,_0x340f26=await MetaUiUtil[_0x37a89a(0x1fb)](_0xba1311);if(_0x340f26&&_0x340f26[_0x37a89a(0x17a)]&&0x0!=_0x340f26[_0x37a89a(0x17a)][_0x37a89a(0x209)]?(_0x4e2807=_0x340f26[_0x37a89a(0x17a)][0x0],!_0x4e2807['template']&&_0x1bf5dc[_0x37a89a(0xf2)]&&(_0x4e2807[_0x37a89a(0x20e)]=_0x1bf5dc[_0x37a89a(0xf2)])):_0x1bf5dc[_0x37a89a(0xf2)]&&(_0x4e2807={'id':_0xba1311,'template':_0x1bf5dc[_0x37a89a(0xf2)]}),!_0x4e2807)throw new Error(TermsUtil[_0x37a89a(0x1d0)](_0x37a89a(0x1eb),{'value':TermsUtil[_0x37a89a(0x226)](_0x37a89a(0x24c))+'\x20'+_0xba1311}));if(!_0x4e2807[_0x37a89a(0x20e)])throw new Error(TermsUtil['tText'](_0x37a89a(0x1eb),{'value':TermsUtil[_0x37a89a(0x226)](_0x37a89a(0x24c))+'\x20'+TermsUtil['tLabel'](_0x37a89a(0x109))}));return this[_0x37a89a(0x18d)]=_0x4e2807['id'],JSON[_0x37a89a(0x189)](MetaCrypto[_0x37a89a(0x21e)](_0x4e2807['template']));}static[a0_0x598c66(0x12b)](){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':_0x483c10=>Boolean(_0x483c10)},'is_popup':{'type':Boolean,'converter':_0x5eb7dc=>Boolean(_0x5eb7dc)},'is_activity':{'type':Boolean,'converter':_0x5d948d=>Boolean(_0x5d948d)},'is_readonly':{'type':Boolean,'converter':_0x49cd36=>Boolean(_0x49cd36)}};}static async[a0_0x598c66(0x1c3)](_0x429a99){const _0x570e2e=a0_0x598c66;if(0x0==store[_0x570e2e(0x25c)]()['metaUI'][_0x570e2e(0x1f1)])return void document[_0x570e2e(0x1f8)](new CustomEvent(_0x570e2e(0x1e5),{'detail':{'level':_0x570e2e(0x1a0),'message':TermsUtil[_0x570e2e(0x230)](_0x570e2e(0x256))}}));let _0x2f4192=_0x429a99['isPage']?UiUtil[_0x570e2e(0x218)]():_0x429a99[_0x570e2e(0x1ff)];_0x429a99[_0x570e2e(0x218)]=_0x2f4192;let _0x4e75fc=await MetaUiUtil[_0x570e2e(0x1d5)](_0x429a99,_0x2f4192);return!0x0===_0x429a99['is_activity']&&(_0x4e75fc['grid'][_0x570e2e(0x18c)][_0x570e2e(0x19f)]=!0x1,_0x4e75fc[_0x570e2e(0x22b)][_0x570e2e(0x18c)][_0x570e2e(0x16b)]=_0x570e2e(0x1d9),_0x4e75fc[_0x570e2e(0x22b)][_0x570e2e(0x103)]=!0x1,_0x4e75fc[_0x570e2e(0x22b)][_0x570e2e(0x241)]=[],_0x4e75fc[_0x570e2e(0x241)]=_0x4e75fc[_0x570e2e(0x241)][_0x570e2e(0x14b)](_0x24e95f=>_0x570e2e(0x215)==_0x24e95f[_0x570e2e(0x1ee)])),!0x0===_0x429a99[_0x570e2e(0x1aa)]&&(_0x4e75fc['grid_column'][_0x570e2e(0x1e1)](_0x39f8e1=>{const _0x4d5611=_0x570e2e;_0x39f8e1[_0x4d5611(0x1cc)]=!0x1;}),_0x4e75fc['button']=_0x4e75fc[_0x570e2e(0x241)][_0x570e2e(0x14b)](_0x53a12b=>'add'!=_0x53a12b[_0x570e2e(0x1ee)])),!0x1===_0x429a99[_0x570e2e(0x103)]&&(_0x4e75fc[_0x570e2e(0x22b)]['use_filter_form']=!0x1),_0x4e75fc['grid_column'][_0x570e2e(0x14b)](_0x1f0f88=>_0x1f0f88[_0x570e2e(0x129)])[_0x570e2e(0x1e1)](_0x51dcdb=>{const _0x5ef979=_0x570e2e;_0x429a99['fieldChangeHandlers']||(_0x429a99[_0x5ef979(0x195)]={}),_0x429a99['fieldChangeHandlers'][_0x51dcdb[_0x5ef979(0x1ee)]]=_0x51dcdb['change_event_handler'];}),_0x4e75fc['grid_column'][_0x570e2e(0x1e1)](_0x305ede=>{const _0x385cc9=_0x570e2e;[_0x385cc9(0x10b),_0x385cc9(0x253)]['includes'](_0x305ede[_0x385cc9(0x14e)])?_0x305ede[_0x385cc9(0x14e)]=_0x385cc9(0x147):['resource-code-selector'][_0x385cc9(0x20b)](_0x305ede[_0x385cc9(0x14e)])&&(_0x305ede[_0x385cc9(0x14e)]=_0x385cc9(0x239));}),_0x4e75fc;}static[a0_0x598c66(0x1de)](..._0x20da66){return{'pages':_0x20da66};}static[a0_0x598c66(0x11d)](_0x3aebb1,_0x48e65b){const _0x5daa91=a0_0x598c66;let _0x51871d=[{'type':'gutter','gutterName':_0x5daa91(0x23e)},{'type':_0x5daa91(0x157),'gutterName':_0x5daa91(0x188)}];return _0x3aebb1&&_0x51871d['push']({'type':_0x5daa91(0x157),'gutterName':_0x5daa91(0x1f5),'multiple':_0x48e65b}),_0x51871d;}static[a0_0x598c66(0x1fd)](_0x1d57ab){return{'selectable':{'multiple':_0x1d57ab}};}static async[a0_0x598c66(0x112)](_0x123cd1){const _0x449a29=a0_0x598c66;_0x123cd1['gqlInfo']||(_0x123cd1['gqlInfo']={}),_0x123cd1[_0x449a29(0x1c6)][_0x449a29(0x246)]||(_0x123cd1[_0x449a29(0x1c6)][_0x449a29(0x246)]={}),_0x123cd1[_0x449a29(0x1c6)][_0x449a29(0x246)]['after_set_fields']||(_0x123cd1[_0x449a29(0x1c6)][_0x449a29(0x246)]['after_set_fields']={}),_0x123cd1['gqlInfo'][_0x449a29(0xe9)]||(_0x123cd1[_0x449a29(0x1c6)]['mutation']={}),_0x123cd1[_0x449a29(0x1c6)][_0x449a29(0xe9)][_0x449a29(0x13c)]||(_0x123cd1[_0x449a29(0x1c6)]['mutation']['multiple']={}),_0x123cd1[_0x449a29(0x1c6)][_0x449a29(0xe9)][_0x449a29(0x13c)][_0x449a29(0x196)]||(_0x123cd1[_0x449a29(0x1c6)][_0x449a29(0xe9)][_0x449a29(0x13c)][_0x449a29(0x196)]=[]);let _0x209f25=MetaUiUtil[_0x449a29(0x1c0)](_0x123cd1),_0x5c4e3d=MetaUiUtil[_0x449a29(0x216)](_0x123cd1),_0x251651=MetaUiUtil[_0x449a29(0x160)](_0x123cd1),_0x2891de=MetaUiUtil['getGridButtonSet'](_0x123cd1),_0x45cde1=await MetaUiUtil[_0x449a29(0x127)](_0x123cd1);_0x45cde1[_0x449a29(0x14b)](_0x54907f=>['meta-object-selector'][_0x449a29(0x20b)](_0x54907f[_0x449a29(0x14e)]))['forEach'](_0x43d8d6=>{const _0x36e6a5=_0x449a29;_0x123cd1[_0x36e6a5(0x19c)][_0x36e6a5(0x14b)](_0x1292c2=>_0x1292c2[_0x36e6a5(0x1ee)]==_0x43d8d6['name'])[_0x36e6a5(0x1e1)](_0x1a08d3=>{const _0x22aa0f=_0x36e6a5,_0x2564c0=_0x43d8d6['record'][_0x22aa0f(0x135)],_0x3a1c7a=_0x2564c0[_0x22aa0f(0x201)]?_0x2564c0[_0x22aa0f(0x201)]:_0x43d8d6[_0x22aa0f(0x1ee)]+'Id',_0x1129ee=_0x123cd1[_0x22aa0f(0x19c)][_0x22aa0f(0x1b9)](_0x10f8b4=>_0x10f8b4[_0x22aa0f(0x1ee)]==_0x43d8d6[_0x22aa0f(0x1ee)]);_0x45cde1['push']({'type':_0x22aa0f(0x147),'header':_0x43d8d6[_0x22aa0f(0x100)],'name':_0x3a1c7a,'hidden':!0x0,'record':{'editable':!0x1,'mandatory':!0x1,'options':_0x2564c0},'unusable':!0x0}),_0x123cd1['gqlInfo'][_0x22aa0f(0x246)]['after_set_fields'][_0x3a1c7a]='x',_0x123cd1['gqlInfo'][_0x22aa0f(0xe9)][_0x22aa0f(0x13c)][_0x22aa0f(0x196)]['push'](_0x3a1c7a),_0x123cd1['searchConfig'][_0x1129ee][_0x22aa0f(0x1ee)]=_0x3a1c7a,_0x123cd1[_0x22aa0f(0x19c)][_0x1129ee]['type']=_0x22aa0f(0x147);});});let _0x460568=MetaUiUtil[_0x449a29(0x11d)](_0x209f25['use_row_checker'],_0x251651[_0x449a29(0x185)]['multiple']);if(0x1==_0x123cd1[_0x449a29(0x1cd)]&&(_0x45cde1=MetaUiUtil[_0x449a29(0x18b)](_0x123cd1,_0x45cde1)),_0x123cd1['gridEmphasized']&&(_0x123cd1['gridEmphasized']&&_0x123cd1[_0x449a29(0x153)][_0x449a29(0x184)]&&_0x123cd1[_0x449a29(0x153)][_0x449a29(0x184)]['length']>0x0&&(_0x251651['classifier']=function(_0x3c8437,_0x19f622){const _0x28ef11=_0x449a29;let _0x3f93f5=_0x123cd1[_0x28ef11(0x153)][_0x28ef11(0x184)];for(let _0x5e5d0d=0x0;_0x5e5d0d<_0x3f93f5['length'];_0x5e5d0d++){let _0x24dbbe=_0x3f93f5[_0x5e5d0d][_0x28ef11(0x163)][_0x28ef11(0x1bb)](/record./g,_0x28ef11(0x16a))[_0x28ef11(0x1bb)](/rowIndex/g,_0x28ef11(0x1cb));if(eval(''+_0x24dbbe))return{'emphasized':[_0x3f93f5[_0x5e5d0d][_0x28ef11(0x16f)],_0x3f93f5[_0x5e5d0d][_0x28ef11(0x12d)]]};}}),_0x123cd1[_0x449a29(0x153)]&&_0x123cd1[_0x449a29(0x153)][_0x449a29(0x152)])){let _0x43f0e0=_0x123cd1[_0x449a29(0x153)][_0x449a29(0x152)];Object['keys'](_0x43f0e0)[_0x449a29(0x1e1)](_0x49ba79=>{const _0x215359=_0x449a29;let _0xa2ebf=_0x43f0e0[_0x49ba79],_0x1d56f0=_0x45cde1[_0x215359(0x1b9)](_0x1b64c8=>_0x1b64c8[_0x215359(0x1ee)]==_0x49ba79);_0x45cde1[_0x1d56f0]['record']||(_0x45cde1[_0x1d56f0]['record']={}),_0x45cde1[_0x1d56f0]['record'][_0x215359(0x13e)]=function(_0x5e1d6f,_0x49d0e9){const _0x234aa0=_0x215359;for(let _0x58697c=0x0;_0x58697c<_0xa2ebf[_0x234aa0(0x209)];_0x58697c++){let _0x45ddcf=_0xa2ebf[_0x58697c]['logic'][_0x234aa0(0x1bb)](/record./g,_0x234aa0(0x16a))[_0x234aa0(0x1bb)](/rowIndex/g,'arguments[1]');if(eval(''+_0x45ddcf))return{'emphasized':[_0xa2ebf[_0x58697c][_0x234aa0(0x16f)],_0xa2ebf[_0x58697c]['fontColor']]};}};});}return{'list':_0x5c4e3d,'pagination':_0x209f25[_0x449a29(0x16b)],'sorters':_0x209f25[_0x449a29(0x12e)],'rows':_0x251651,'columns':[..._0x460568,..._0x2891de,..._0x45cde1]};}static async[a0_0x598c66(0x1b0)](_0x1d4101){const _0x22ac56=a0_0x598c66;let _0x35d207=_0x1d4101[_0x22ac56(0x13f)],_0x1ee73d=[],_0x2f284c=Object[_0x22ac56(0x244)](getValueGenerators());for(let _0x48bcb4=0x0;_0x48bcb4<_0x35d207[_0x22ac56(0x209)];_0x48bcb4++){let {type:_0x29dddf=_0x22ac56(0x225),name:_0x5de056,header:_0x2f7f87,hidden:_0x3cdd08=!0x1,editable:_0x273d9c=!0x0,mandatory:_0x524263=!0x1,align:_0x3aa8e5=_0x22ac56(0xff),select_opt:_0x3c5986,object_opt:_0x50f84d,default_value:_0x57508d}=_0x35d207[_0x48bcb4],_0x28eba2={'type':_0x29dddf,'name':_0x5de056,'header_txt':ValueUtil['isEmpty'](_0x2f7f87)?TermsUtil[_0x22ac56(0x1c1)](_0x5de056):TermsUtil['tLabel'](_0x2f7f87),'header':{'renderer':function(_0x4dd677){const _0x329b34=_0x22ac56;return _0x4dd677[_0x329b34(0x1a6)];}},'hidden':_0x3cdd08,'record':{'editable':_0x273d9c,'mandatory':_0x524263,'align':_0x3aa8e5,'classifier':function(){},'renderer':getRenderer(_0x29dddf)}};if(_0x273d9c&&(_0x28eba2[_0x22ac56(0x1d8)][_0x22ac56(0x1c4)]=getEditor(_0x29dddf)),_0x57508d){let _0x120ca9=_0x57508d[_0x22ac56(0x191)](','),_0x35297c=_0x120ca9[0x0];_0x2f284c[_0x22ac56(0x20b)](_0x35297c)?0x1==_0x120ca9[_0x22ac56(0x209)]?_0x28eba2[_0x22ac56(0x1d8)][_0x22ac56(0x190)]={'name':_0x35297c}:_0x28eba2[_0x22ac56(0x1d8)][_0x22ac56(0x190)]={'name':_0x35297c,'params':{'calc':_0x120ca9[0x1]}}:_0x28eba2[_0x22ac56(0x1d8)][_0x22ac56(0x190)]='number'===_0x29dddf?Number(_0x57508d):_0x57508d;}_0x29dddf[_0x22ac56(0x12f)](_0x22ac56(0x16c))&&_0x50f84d&&_0x50f84d['menu']&&(_0x50f84d=await MetaUiUtil[_0x22ac56(0x1b7)](_0x29dddf,_0x50f84d)),_0x22ac56(0x24a)===_0x29dddf&&ValueUtil[_0x22ac56(0x102)](_0x3c5986)&&(Array[_0x22ac56(0x1c7)](_0x3c5986)?_0x28eba2[_0x22ac56(0x1d8)]['options']=_0x3c5986:'code'===_0x3c5986['type']?_0x28eba2[_0x22ac56(0x1d8)][_0x22ac56(0x135)]=await ServiceUtil[_0x22ac56(0x213)](_0x3c5986[_0x22ac56(0x176)]?_0x3c5986[_0x22ac56(0x176)]:_0x3c5986[_0x22ac56(0x1ee)]):_0x22ac56(0x15e)===_0x3c5986[_0x22ac56(0x14e)]?_0x28eba2[_0x22ac56(0x1d8)][_0x22ac56(0x135)]=await ServiceUtil[_0x22ac56(0x181)](_0x3c5986[_0x22ac56(0x1ee)],_0x3c5986['args']):'entity'===_0x3c5986[_0x22ac56(0x14e)]&&(_0x28eba2[_0x22ac56(0x1d8)][_0x22ac56(0x135)]=await ServiceUtil[_0x22ac56(0x1f2)](_0x3c5986[_0x22ac56(0x164)]))),_0x22ac56(0x147)===_0x29dddf&&ValueUtil[_0x22ac56(0x102)](_0x50f84d)?_0x28eba2['record'][_0x22ac56(0x135)]={..._0x50f84d}:_0x22ac56(0x239)===_0x29dddf&&ValueUtil['isNotEmpty'](_0x50f84d)&&(_0x50f84d[_0x22ac56(0x122)]&&(_0x50f84d[_0x22ac56(0x22c)]=await ServiceUtil['getCodeByEntity'](_0x50f84d)),_0x28eba2[_0x22ac56(0x1d8)][_0x22ac56(0x135)]={..._0x50f84d}),_0x1ee73d[_0x22ac56(0x243)](_0x28eba2);}return _0x1ee73d;}static[a0_0x598c66(0x1c0)](_0x2b6a5c){const _0x3a0cd5=a0_0x598c66;let _0x467663=_0x2b6a5c[_0x3a0cd5(0x1d6)];_0x2b6a5c['useFilterForm']=!_0x467663||null==_0x467663[_0x3a0cd5(0x103)]||_0x467663[_0x3a0cd5(0x103)];let {mobile_mode:_0x59f9e2='LIST',desk_mode:_0x24ea2f=_0x3a0cd5(0x145),view_mode:_0x2d1c4a=[],use_row_checker:_0x426e83=!0x0,sorters:_0x315ce9=[],pages:_0x380b70=[0x32,0x64,0x1f4,0x3e8]}=ValueUtil[_0x3a0cd5(0x234)](_0x467663[_0x3a0cd5(0x18c)])?{}:_0x467663[_0x3a0cd5(0x18c)];return _0x3a0cd5(0x1d9)===_0x380b70||'-1'===_0x380b70?(_0x2b6a5c['infinityPage']=!0x0,_0x380b70={'infinite':!0x0}):(_0x2b6a5c[_0x3a0cd5(0x172)]=!0x1,_0x380b70[_0x3a0cd5(0x171)](function(_0x279197,_0xa93730){return _0x279197-_0xa93730;}),_0x380b70={'pages':_0x380b70}),ValueUtil['isNotEmpty'](_0x2d1c4a)&&(0x1==_0x2d1c4a[_0x3a0cd5(0x209)]?(_0x24ea2f=_0x2d1c4a[0x0],_0x59f9e2=_0x2d1c4a[0x0]):_0x2d1c4a[_0x3a0cd5(0x209)]>=0x2&&(_0x2d1c4a['includes'](_0x59f9e2)||(_0x59f9e2=_0x2d1c4a[0x1]),_0x2d1c4a['includes'](_0x24ea2f)||(_0x24ea2f=_0x2d1c4a[0x0]))),_0x2b6a5c[_0x3a0cd5(0x1a4)]=_0x59f9e2,_0x2b6a5c[_0x3a0cd5(0x255)]=_0x24ea2f,_0x2b6a5c[_0x3a0cd5(0x139)]=_0x2d1c4a,_0x2b6a5c[_0x3a0cd5(0x1b1)]=UiUtil[_0x3a0cd5(0x155)]()?_0x2b6a5c[_0x3a0cd5(0x1a4)]:_0x2b6a5c[_0x3a0cd5(0x255)],{'use_row_checker':_0x426e83,'sorters':_0x315ce9,'pages':_0x380b70};}static[a0_0x598c66(0x216)](_0x294818){const _0x3134f1=a0_0x598c66;let _0xeb6bfc={'fields':[ValueUtil[_0x3134f1(0x1a9)](_0x294818[_0x3134f1(0x116)],_0x3134f1(0x1ee)),ValueUtil[_0x3134f1(0x1a9)](_0x294818[_0x3134f1(0x116)],_0x3134f1(0x1d3))]};return _0x294818[_0x3134f1(0x1d6)][_0x3134f1(0x1be)]&&Object['assign'](_0xeb6bfc,_0x294818[_0x3134f1(0x1d6)][_0x3134f1(0x1be)]),_0xeb6bfc;}static[a0_0x598c66(0x160)](_0x5f401e){const _0x37295d=a0_0x598c66;let {multiple_select:_0x509eb6=!0x1,click:_0x555e84}=ValueUtil[_0x37295d(0x234)](_0x5f401e[_0x37295d(0x1d6)][_0x37295d(0x184)])?{}:_0x5f401e['gridConfig']['row'],_0x970bc0={'selectable':{'multiple':_0x509eb6},'appendable':_0x5f401e[_0x37295d(0x1b6)]};return ValueUtil[_0x37295d(0x102)](_0x555e84)&&(_0x970bc0[_0x37295d(0x217)]={'click':_0x555e84}),_0x970bc0;}static[a0_0x598c66(0x235)](_0x475f9e){const _0x5a2f2c=a0_0x598c66;let _0x437a4e=_0x475f9e['gridConfig']['button'];return ValueUtil['isEmpty'](_0x437a4e)?[]:_0x437a4e[_0x5a2f2c(0x19a)](_0x16eb73=>{const _0x40410d=_0x5a2f2c;let _0x145d45={'type':'gutter','gutterName':_0x40410d(0x241)};if(ValueUtil[_0x40410d(0x102)](_0x16eb73[_0x40410d(0x118)])&&(Array[_0x40410d(0x1c7)](_0x16eb73['icon'])?_0x145d45[_0x40410d(0x118)]=_0x24065d=>{const _0x3859b8=_0x40410d;if(ValueUtil[_0x3859b8(0x102)](_0x24065d))for(let _0x4a5525=0x0;_0x4a5525<_0x16eb73[_0x3859b8(0x118)]['length'];_0x4a5525++){let _0x153862=_0x16eb73[_0x3859b8(0x118)][_0x4a5525];if(!0x0===ValueUtil['compareObjectValues'](_0x153862,_0x24065d,Object['keys'](_0x153862)['filter'](_0x12348c=>_0x3859b8(0x118)!=_0x12348c)))return _0x153862[_0x3859b8(0x118)];}}:_0x145d45[_0x40410d(0x118)]=_0x16eb73['icon']),ValueUtil[_0x40410d(0x102)](_0x16eb73['name'])&&(_0x145d45[_0x40410d(0x1ee)]=_0x16eb73['name']),ValueUtil[_0x40410d(0x102)](_0x16eb73['label'])&&(_0x145d45[_0x40410d(0x167)]=TermsUtil[_0x40410d(0x168)](_0x16eb73[_0x40410d(0x17c)])),_0x40410d(0x1d4)===_0x16eb73[_0x40410d(0x14e)]){let _0x56a2f9=ValueUtil[_0x40410d(0x1a9)](_0x16eb73,_0x40410d(0x163));[_0x40410d(0x159),'history_json'][_0x40410d(0x20b)](_0x56a2f9)?_0x145d45[_0x40410d(0x217)]={'click':(_0x214ec9,_0x14cb23,_0x3957cf,_0x1995bb,_0xaecf2d)=>{const _0xeaf89a=_0x40410d;if(_0x1995bb['id']){let _0x6e17fc={'title':_0xeaf89a(0x14c),'type':_0xeaf89a(0x123),'tagname':_0xeaf89a(0x159)==_0x56a2f9?_0xeaf89a(0x22f):'history-json-list-popup','location':_0xeaf89a(0x159)==_0x56a2f9?_0xeaf89a(0x1ad):_0xeaf89a(0x165),'menu':_0x475f9e[_0xeaf89a(0x218)],'size':_0xeaf89a(0x161),'popup_field':_0xeaf89a(0xee),'parent_field':'id'},_0x5cb3ed={..._0x1995bb,'gqlFunc':ValueUtil[_0xeaf89a(0x1a9)](_0x475f9e[_0xeaf89a(0x1c6)],_0xeaf89a(0x246),_0xeaf89a(0x1d2)),'gristConfig':JSON['parse'](JSON[_0xeaf89a(0x211)](_0x475f9e[_0xeaf89a(0x25a)][_0xeaf89a(0x24e)]))};MetaUiUtil[_0xeaf89a(0x16e)](_0x475f9e,{'logic':_0x6e17fc},_0x5cb3ed);}}}:_0x145d45[_0x40410d(0x217)]={'click':_0x56a2f9};}else _0x145d45[_0x40410d(0x217)]={'click':(_0x4f9ce8,_0x39b14c,_0x823065,_0x21563d,_0x48bc36)=>{const _0x5af6fe=_0x40410d;_0x21563d['id']&&MetaUiUtil[_0x5af6fe(0x16e)](_0x475f9e,_0x16eb73,_0x21563d);}};return _0x145d45;});}static async['getGridColumnSet'](_0x5e1a5d){const _0x2b0530=a0_0x598c66;let _0xad4605=_0x5e1a5d[_0x2b0530(0x119)];if(ValueUtil['isEmpty'](_0xad4605))return[];let _0x31d3b3=Object['keys'](getValueGenerators()),_0x59154f=[];for(let _0x3e022e=0x0;_0x3e022e<_0xad4605['length'];_0x3e022e++){let {type:_0x3559da=_0x2b0530(0x225),name:_0x5edf1c,header:_0x408af5,hidden:_0xc20483=!0x1,editable:_0x2430a6=!0x0,mandatory:_0x1223ea=!0x1,sortable:_0x4134fe=!0x1,align:_0x6d1d01=_0x2b0530(0xff),width:_0x391d82=0x0,exportable:_0x4d9761=!0x1,select_opt:_0x36d42c,object_opt:_0x2aa445,format:_0x235ec3,default_value:_0x373c45}=_0xad4605[_0x3e022e],_0x4798ec={'type':_0x3559da,'name':_0x5edf1c,'header':ValueUtil[_0x2b0530(0x234)](_0x408af5)?'':TermsUtil['tLabel'](_0x408af5),'hidden':_0xc20483,'sortable':_0x4134fe,'width':_0x391d82,'record':{'editable':_0x2430a6,'mandatory':_0x1223ea,'align':_0x6d1d01,'format':_0x235ec3}};if(_0x373c45){let _0x43568d=_0x373c45[_0x2b0530(0x191)](','),_0x25db80=_0x43568d[0x0];_0x31d3b3[_0x2b0530(0x20b)](_0x25db80)?0x1==_0x43568d[_0x2b0530(0x209)]?_0x4798ec['record'][_0x2b0530(0x190)]={'name':_0x25db80}:_0x4798ec['record'][_0x2b0530(0x190)]={'name':_0x25db80,'params':{'calc':_0x43568d[0x1]}}:_0x4798ec[_0x2b0530(0x1d8)][_0x2b0530(0x190)]=_0x2b0530(0xf5)===_0x3559da?Number(_0x373c45):_0x373c45;}if(_0x3559da[_0x2b0530(0x12f)](_0x2b0530(0x16c))&&_0x2aa445&&_0x2aa445[_0x2b0530(0x24c)]&&(_0x2aa445=await MetaUiUtil[_0x2b0530(0x1b7)](_0x3559da,_0x2aa445)),'select'===_0x3559da&&ValueUtil[_0x2b0530(0x102)](_0x36d42c)&&(Array[_0x2b0530(0x1c7)](_0x36d42c)?_0x4798ec[_0x2b0530(0x1d8)][_0x2b0530(0x135)]=_0x36d42c:_0x2b0530(0x15b)===_0x36d42c[_0x2b0530(0x14e)]?_0x4798ec[_0x2b0530(0x1d8)][_0x2b0530(0x135)]=await ServiceUtil[_0x2b0530(0x213)](_0x36d42c[_0x2b0530(0x176)]?_0x36d42c[_0x2b0530(0x176)]:_0x36d42c[_0x2b0530(0x1ee)]):_0x2b0530(0x15e)===_0x36d42c[_0x2b0530(0x14e)]?_0x4798ec['record'][_0x2b0530(0x135)]=await ServiceUtil[_0x2b0530(0x181)](_0x36d42c[_0x2b0530(0x1ee)],_0x36d42c['args']):'entity'===_0x36d42c[_0x2b0530(0x14e)]&&(_0x4798ec[_0x2b0530(0x1d8)][_0x2b0530(0x135)]=await ServiceUtil[_0x2b0530(0x1f2)](_0x36d42c[_0x2b0530(0x164)]))),_0x2b0530(0x147)===_0x3559da&&ValueUtil[_0x2b0530(0x102)](_0x2aa445)){let _0x480c55;_0x4798ec[_0x2b0530(0x1d8)][_0x2b0530(0x135)]={..._0x2aa445},_0x2aa445[_0x2b0530(0x120)]&&_0x2aa445['basicArgs']['filters']&&(_0x480c55=[..._0x2aa445[_0x2b0530(0x120)][_0x2b0530(0x24f)]]),_0x480c55&&JSON[_0x2b0530(0x211)](_0x480c55)[_0x2b0530(0x20b)]('::')&&(_0x4798ec['handlers']={'dblclick':(_0x3615f3,_0x2b433d,_0x4b0806,_0x1f2236,_0xef5f7a)=>{const _0x2f38ac=_0x2b0530;let _0xfc72a7=[];_0x480c55[_0x2f38ac(0x1e1)](_0x4526ea=>{const _0x1f8ee6=_0x2f38ac;var {name:_0xf891d0,value:_0x6cc9f9,operator:_0x4eb1c1='eq'}=_0x4526ea;_0x6cc9f9['includes']('::')&&(_0x6cc9f9=ValueUtil[_0x1f8ee6(0x1a9)](_0x1f2236,..._0x6cc9f9['replace']('::','')[_0x1f8ee6(0x191)]('.'))),_0x6cc9f9||(_0x6cc9f9=''),_0xfc72a7[_0x1f8ee6(0x243)]({'name':_0xf891d0,'operator':_0x4eb1c1,'value':_0x6cc9f9});}),_0x4b0806[_0x2f38ac(0x1d8)][_0x2f38ac(0x135)]['basicArgs']['filters']=_0xfc72a7;}});}else'meta-code-selector'===_0x3559da&&ValueUtil[_0x2b0530(0x102)](_0x2aa445)&&(_0x2aa445['dispField']&&(_0x2aa445[_0x2b0530(0x22c)]=await ServiceUtil[_0x2b0530(0x1f2)](_0x2aa445)),_0x4798ec['record']['options']={..._0x2aa445});!0x0===_0x5e1a5d[_0x2b0530(0x19b)]&&!0x0===_0x4d9761&&(_0x4798ec['imex']={'header':_0x4798ec['header'],'key':_0x4798ec[_0x2b0530(0x1ee)],'width':_0x4798ec['width']/0x6,'type':_0x4798ec['type']}),_0x59154f['push'](_0x4798ec);}if(!0x0!==this[_0x2b0530(0x250)])return _0x59154f;let _0x1c6b09=await MetaApi[_0x2b0530(0x229)](this[_0x2b0530(0x18d)]),{template:_0x51de4a={}}=_0x1c6b09;if(!_0x51de4a[_0x2b0530(0x236)])return _0x59154f;let _0x483d32=_0x51de4a[_0x2b0530(0x236)];return _0x59154f=_0x59154f['map'](_0x30034a=>('id'==_0x30034a[_0x2b0530(0x1ee)]||(_0x30034a['hidden']=!_0x483d32[_0x2b0530(0x20b)](_0x30034a[_0x2b0530(0x1ee)]),_0x30034a['rank']=_0x483d32[_0x2b0530(0x21f)](_0x30034a['name']),-0x1==_0x30034a[_0x2b0530(0x1af)]&&(_0x30034a['rank']=0x1869f)),_0x30034a)),_0x59154f['sort']((_0x1c1404,_0x26e8cf)=>_0x1c1404[_0x2b0530(0x1af)]-_0x26e8cf[_0x2b0530(0x1af)]),_0x59154f;}static async[a0_0x598c66(0x1b7)](_0x1dc4a5,_0x3ac987){const _0x5b22e3=a0_0x598c66;let _0x7600a=await MetaUiUtil['getMenuMetaData'](_0x3ac987['menu']);if(_0x7600a&&_0x7600a['records']&&_0x7600a['records'][_0x5b22e3(0x209)]>0x0&&_0x7600a[_0x5b22e3(0x17a)][0x0][_0x5b22e3(0x20e)]){let _0x52c09f=_0x7600a[_0x5b22e3(0x17a)][0x0],_0x576379=JSON[_0x5b22e3(0x189)](MetaCrypto[_0x5b22e3(0x21e)](_0x52c09f[_0x5b22e3(0x20e)]));_0x3ac987[_0x5b22e3(0x1f3)]||(_0x3ac987['queryName']=_0x576379[_0x5b22e3(0x194)][_0x5b22e3(0x246)][_0x5b22e3(0x1dd)]),_0x3ac987[_0x5b22e3(0x24a)]||(_0x3ac987[_0x5b22e3(0x24a)]=_0x576379[_0x5b22e3(0x1e9)]),_0x3ac987[_0x5b22e3(0x17f)]&&0x0!=_0x3ac987[_0x5b22e3(0x17f)][_0x5b22e3(0x209)]||(_0x3ac987[_0x5b22e3(0x17f)]=_0x576379[_0x5b22e3(0x110)]),_0x3ac987[_0x5b22e3(0x1a2)]||(_0x3ac987[_0x5b22e3(0x1a2)]=_0x576379[_0x5b22e3(0x24c)][_0x5b22e3(0x167)]),_0x3ac987[_0x5b22e3(0x24f)]||(_0x3ac987[_0x5b22e3(0x24f)]=_0x576379['gql']['query']['filters']||[]),_0x1dc4a5[_0x5b22e3(0x20b)]('-object-')?_0x3ac987[_0x5b22e3(0x15a)]||(_0x3ac987[_0x5b22e3(0x15a)]=_0x576379['menu'][_0x5b22e3(0x1ee)]||_0x5b22e3(0x1ee)):_0x1dc4a5[_0x5b22e3(0x20b)]('-code-')&&(_0x3ac987[_0x5b22e3(0x10c)]||(_0x3ac987['codeField']=_0x576379[_0x5b22e3(0x24c)][_0x5b22e3(0x1ee)]||_0x5b22e3(0x15b)),_0x3ac987[_0x5b22e3(0x122)]||(_0x3ac987[_0x5b22e3(0x122)]=_0x576379[_0x5b22e3(0x24c)][_0x5b22e3(0x1d3)]||void 0x0));}return _0x3ac987;}static[a0_0x598c66(0x18b)](_0x3d6872,_0xb32be2){const _0x498da3=a0_0x598c66;let _0x272f0d=_0x3d6872[_0x498da3(0x19c)];return _0x272f0d&&_0x272f0d[_0x498da3(0x1e1)](_0x215ff0=>{const _0x38c5ed=_0x498da3;_0x38c5ed(0x225)==typeof _0x215ff0?_0xb32be2[_0x38c5ed(0x14b)](_0x1f814f=>_0x1f814f['name']==_0x215ff0)[_0x38c5ed(0x1e1)](_0x30db1e=>{const _0x5878c8=_0x38c5ed;_0x30db1e[_0x5878c8(0x14b)]=_0x5878c8(0x110);}):_0x38c5ed(0x253)==typeof _0x215ff0&&_0xb32be2[_0x38c5ed(0x14b)](_0x50d5c1=>_0x50d5c1[_0x38c5ed(0x1ee)]==_0x215ff0[_0x38c5ed(0x1ee)])[_0x38c5ed(0x1e1)](_0x43f36c=>{const _0x1f878c=_0x38c5ed;_0x43f36c[_0x1f878c(0x14b)]=_0x215ff0,_0x43f36c[_0x1f878c(0x14b)][_0x1f878c(0x14e)]=_0x1f878c(0x101)===_0x43f36c['type']&&'eq'==_0x215ff0[_0x1f878c(0x210)]?_0x1f878c(0x10e):_0x43f36c[_0x1f878c(0x14e)];let _0x47d620=_0x43f36c['filter'][_0x1f878c(0x17b)],_0xbc9de0=[_0x1f878c(0x158),'year','month',_0x1f878c(0x20f),_0x1f878c(0x107),_0x1f878c(0x1f6),_0x1f878c(0x1f7)];if(_0x47d620&&_0xbc9de0[_0x1f878c(0x14b)](_0xbadd2=>_0x47d620[_0x1f878c(0x12f)](_0xbadd2))['length']>0x0){let _0x4a79ae=[],_0x258932={'date':_0x1f878c(0x17d),'datetime':'YYYY-MM-DD\x20HH:mm:ss'},_0x391970={'today':_0x1f878c(0x222),'year':_0x1f878c(0x1e0),'month':_0x1f878c(0x179),'date':'day','hour':'hour','min':'minute','sec':'second'};_0x47d620[_0x1f878c(0x191)](',')[_0x1f878c(0x1e1)](_0x1596a1=>{const _0x5c8837=_0x1f878c,_0x39e7b0=a0_0x24e48b();if(_0xbc9de0[_0x5c8837(0x20b)](_0x1596a1))_0x4a79ae['push'](_0x39e7b0['startOf'](_0x391970[_0x1596a1])[_0x5c8837(0x1db)](_0x258932[_0x43f36c[_0x5c8837(0x14e)]]));else{if(_0x1596a1[_0x5c8837(0x20b)]('-')){let _0x2fedcd=_0x1596a1[_0x5c8837(0x191)]('-'),_0x340811=_0x2fedcd[0x0],_0x48e055=_0x2fedcd[0x1];_0x4a79ae[_0x5c8837(0x243)](_0x39e7b0['subtract'](_0x48e055,_0x391970[_0x340811])[_0x5c8837(0x1fc)](_0x391970[_0x340811])[_0x5c8837(0x1db)](_0x258932[_0x43f36c[_0x5c8837(0x14e)]]));}else{if(_0x1596a1[_0x5c8837(0x20b)]('+')){let _0x298443=_0x1596a1['split']('+'),_0x490046=_0x298443[0x0],_0x4767a7=_0x298443[0x1];_0x4a79ae[_0x5c8837(0x243)](_0x39e7b0[_0x5c8837(0x215)](_0x4767a7,_0x391970[_0x490046])[_0x5c8837(0x1fc)](_0x391970[_0x490046])['format'](_0x258932[_0x43f36c['type']]));}}}}),_0x4a79ae[_0x1f878c(0x209)]>0x0&&(_0x43f36c[_0x1f878c(0x14b)]['value']=0x1==_0x4a79ae[_0x1f878c(0x209)]?_0x4a79ae[0x0]:_0x4a79ae);}});}),_0xb32be2;}static['getContextObject'](_0x20efb5){const _0x3da407=a0_0x598c66;let _0x3ebfa6={'title':TermsUtil['tTitle'](_0x20efb5[_0x3da407(0x116)][_0x3da407(0x167)]),'help':_0x20efb5[_0x3da407(0x116)][_0x3da407(0x1d1)]||'','actions':[...MetaUiUtil[_0x3da407(0x125)](_0x20efb5)]};return _0x20efb5[_0x3da407(0x19b)]&&(_0x3ebfa6['exportable']={'name':_0x3ebfa6[_0x3da407(0x167)],'data':_0x20efb5[_0x3da407(0x17e)][_0x3da407(0x254)](_0x20efb5)}),_0x20efb5[_0x3da407(0x23d)]&&(_0x3ebfa6[_0x3da407(0xf3)]={'handler':_0x20efb5['import'][_0x3da407(0x254)](_0x20efb5)}),_0x3ebfa6;}static['getContextButtons'](_0x4888c6){const _0x1209e9=a0_0x598c66;let _0x38ea0b=_0x4888c6[_0x1209e9(0x23f)];return ValueUtil[_0x1209e9(0x234)](_0x38ea0b)?[]:_0x38ea0b[_0x1209e9(0x14b)](_0x2b508d=>_0x1209e9(0x17e)!=_0x2b508d[_0x1209e9(0x1ee)]&&'import'!=_0x2b508d[_0x1209e9(0x1ee)]&&_0x1209e9(0x215)!=_0x2b508d[_0x1209e9(0x1ee)])[_0x1209e9(0x19a)](_0x38f927=>{const _0x5cd92a=_0x1209e9;let {name:_0x57e9cb,label:_0x3b978b,style:_0x10f38e,type:_0x2c13d4=_0x5cd92a(0x1d4),action:_0x1509cf,logic:_0x1ea9b9}=_0x38f927;if(ValueUtil[_0x5cd92a(0x234)](_0x57e9cb))return{'title':'-1'};ValueUtil[_0x5cd92a(0x234)](_0x3b978b)&&(_0x3b978b=_0x57e9cb),ValueUtil[_0x5cd92a(0x234)](_0x10f38e)&&(_0x10f38e=_0x57e9cb),ValueUtil[_0x5cd92a(0x234)](_0x1509cf)&&(_0x1509cf=_0x57e9cb);let _0x4a27a8=ValueUtil[_0x5cd92a(0x102)](_0x10f38e)?CommonButtonStyles[_0x10f38e]||{'icon':_0x10f38e,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}}:{};return{'title':TermsUtil[_0x5cd92a(0x168)](_0x3b978b),'action':MetaUiUtil[_0x5cd92a(0x13b)](_0x4888c6,_0x2c13d4,_0x1509cf,_0x1ea9b9),..._0x4a27a8};})[_0x1209e9(0x14b)](_0xb157c3=>'-1'!=_0xb157c3[_0x1209e9(0x167)]);}static[a0_0x598c66(0x22a)](_0x108e57){const _0x133ff0=a0_0x598c66;let _0x3dc7b3=_0x108e57&&_0x108e57[_0x133ff0(0x23f)]?_0x108e57[_0x133ff0(0x23f)]:null;return _0x3dc7b3?_0x3dc7b3[_0x133ff0(0x14b)](_0x366a81=>_0x133ff0(0x215)!=_0x366a81[_0x133ff0(0x1ee)])[_0x133ff0(0x19a)](_0x2999ac=>{const _0x592df2=_0x133ff0;let {name:_0x48bba6,label:_0x4e2a7a,style:_0x267c30,type:_0x3d6e52='basic',action:_0x58f54b,logic:_0x489532}=_0x2999ac;ValueUtil['isEmpty'](_0x4e2a7a)&&(_0x4e2a7a=_0x48bba6),ValueUtil[_0x592df2(0x234)](_0x267c30)&&(_0x267c30=_0x48bba6),ValueUtil[_0x592df2(0x234)](_0x58f54b)&&(_0x58f54b=_0x48bba6);let _0x31d893=MetaUiUtil['createButtonElement'](TermsUtil['tButton'](_0x4e2a7a),_0x267c30);return _0x31d893[_0x592df2(0xf8)]=MetaUiUtil[_0x592df2(0x13b)](_0x108e57,_0x3d6e52,_0x58f54b,_0x489532),_0x31d893;}):[];}static[a0_0x598c66(0x202)](_0x4dd5af,_0x10326c){const _0x371d7f=a0_0x598c66;let _0x293940=CommonButtonStyles[_0x10326c]||{'icon':_0x10326c,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}},_0x472411='<mwc-button\x20label=\x22'+_0x4dd5af+_0x371d7f(0x10d)+(_0x293940['icon']?_0x293940[_0x371d7f(0x118)]:'')+'\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x293940['emphasis'][_0x371d7f(0x251)]?_0x371d7f(0x251):'')+_0x371d7f(0xf6)+(_0x293940['emphasis']['outlined']?_0x371d7f(0x11b):'')+_0x371d7f(0xf6)+(_0x293940[_0x371d7f(0x186)][_0x371d7f(0x11f)]?_0x371d7f(0x11f):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x293940[_0x371d7f(0x186)]['danger']?_0x371d7f(0x208):'')+'\x20>\x0a\x20\x20\x20\x20</mwc-button>\x0a\x20\x20\x20\x20';return UiUtil[_0x371d7f(0x111)](_0x472411);}static['getButtonActionHandler'](_0x37fc83,_0x165644,_0x3fd0e6,_0x556ff6){const _0xc122dd=a0_0x598c66;if(_0xc122dd(0x1d4)==_0x165644){if(_0x37fc83[_0x3fd0e6])return _0x37fc83[_0x3fd0e6][_0xc122dd(0x254)](_0x37fc83);}else{if(_0xc122dd(0x192)==_0x165644)return()=>MetaUiUtil[_0xc122dd(0x21c)](_0x37fc83,_0x556ff6);}return()=>{const _0x3543d0=_0xc122dd;UiUtil['showAlertPopup'](_0x3543d0(0x14a),_0x3543d0(0x1f4),_0x3543d0(0x18e),_0x3543d0(0xf4));};}static async['gristButtonHandler'](_0x4a4977,_0x13d0ea,_0x208360){const _0x3a4936=a0_0x598c66;let _0x28bae5=ValueUtil[_0x3a4936(0x1a9)](_0x13d0ea,'logic'),_0x17426e=ValueUtil[_0x3a4936(0x1a9)](_0x28bae5,_0x3a4936(0x14e));if(_0x3a4936(0x115)===_0x17426e)_0x28bae5[_0x3a4936(0x20a)]='meta-form-element',_0x28bae5['location']=_0x3a4936(0x12c),_0x28bae5[_0x3a4936(0x24b)]='id',await MetaUiUtil['commonButtonOpenPopup'](_0x4a4977,_0x28bae5,_0x208360);else{if(_0x3a4936(0x114)===_0x17426e)MetaUiUtil[_0x3a4936(0x20c)](_0x4a4977,_0x28bae5,_0x208360);else{if(_0x3a4936(0x16d)===_0x17426e){let _0x36b4db;_0x28bae5['param_field']?(_0x36b4db={},Object[_0x3a4936(0x244)](_0x208360)[_0x3a4936(0x14b)](_0x1d86b2=>Object[_0x3a4936(0x244)](_0x28bae5[_0x3a4936(0x223)])[_0x3a4936(0x20b)](_0x1d86b2))['map'](_0xf905e8=>{const _0x10b863=_0x3a4936;Object['keys'](_0x28bae5[_0x10b863(0x223)])[_0x10b863(0x20b)](_0xf905e8)&&('string'==typeof _0x208360[_0xf905e8]?_0x36b4db[_0x28bae5[_0x10b863(0x223)][_0xf905e8]]=_0x208360[_0xf905e8]:_0x36b4db[_0x28bae5[_0x10b863(0x223)][_0xf905e8]]={'id':_0x208360[_0xf905e8]['id']});})):_0x36b4db=_0x208360,UiUtil['pageNavigate'](_0x28bae5[_0x3a4936(0x240)],[_0x36b4db]);}else'popup'===_0x17426e?await MetaUiUtil['commonButtonOpenPopup'](_0x4a4977,_0x28bae5,_0x208360):_0x3a4936(0x15e)===_0x17426e?await MetaUiUtil['commonButtonCallScenario'](_0x4a4977,_0x28bae5,_0x208360):'value_reference'===_0x17426e&&await MetaUiUtil[_0x3a4936(0x221)](_0x4a4977,_0x28bae5,_0x208360);}}}static async[a0_0x598c66(0x21c)](_0x1dd26b,_0x3462d6){const _0x3d016c=a0_0x598c66;if(ValueUtil[_0x3d016c(0x234)](_0x3462d6))return;let _0x4ca05c=_0x1dd26b[_0x3d016c(0x25a)],_0x3a3ddf=_0x1dd26b[_0x3d016c(0x1ba)],_0x4bdf5c=ValueUtil[_0x3d016c(0x1a9)](_0x3462d6,'type'),_0x5f0528=ValueUtil[_0x3d016c(0x1a9)](_0x3462d6,_0x3d016c(0x149)),_0x44bcb3=_0x5f0528['filter'](_0x10fe62=>_0x10fe62['startsWith'](_0x3d016c(0x25a)));if(ValueUtil[_0x3d016c(0x102)](_0x44bcb3)){if(!_0x4ca05c)return void UiUtil[_0x3d016c(0x137)](_0x3d016c(0xe7),_0x3d016c(0x1e2),_0x3d016c(0x18e),'confirm');if(0x0==(_0x4ca05c[_0x3d016c(0x1c2)]?_0x4ca05c[_0x3d016c(0x1c2)][_0x3d016c(0x17a)]:[])['length'])return void UiUtil['showAlertPopup'](_0x3d016c(0xe7),_0x3d016c(0x175),'info','confirm');if(_0x5f0528['includes']('grist_one')||_0x5f0528[_0x3d016c(0x20b)](_0x3d016c(0x199))){let _0x442908=_0x4ca05c[_0x3d016c(0x25e)];if(ValueUtil[_0x3d016c(0x234)](_0x442908))return void UiUtil[_0x3d016c(0x137)](_0x3d016c(0x23b),'text.there_is_no_selected_items',_0x3d016c(0x18e),_0x3d016c(0xf4));if(_0x5f0528['includes'](_0x3d016c(0xf1))&&_0x442908[_0x3d016c(0x209)]>0x1)return void UiUtil[_0x3d016c(0x137)](_0x3d016c(0xe7),'text.please_select_only_one',_0x3d016c(0x18e),_0x3d016c(0xf4));}}let _0x3d58b2={};if(_0x5f0528[_0x3d016c(0x20b)](_0x3d016c(0x14b))){if(!_0x3a3ddf)return void UiUtil[_0x3d016c(0x137)](_0x3d016c(0xe7),_0x3d016c(0x14f),_0x3d016c(0x18e),_0x3d016c(0xf4));let _0x542e40=_0x3a3ddf?await _0x3a3ddf['getQueryFilters']():[];_0x3d58b2[_0x3d016c(0x14b)]=_0x542e40;}if(_0x5f0528[_0x3d016c(0x20b)](_0x3d016c(0x128)))_0x3d58b2[_0x3d016c(0x25a)]=_0x4ca05c[_0x3d016c(0x1c2)][_0x3d016c(0x17a)];else{if(_0x5f0528[_0x3d016c(0x20b)]('grist_one'))_0x3d58b2[_0x3d016c(0x25a)]=_0x4ca05c[_0x3d016c(0x25e)][0x0];else{if(_0x5f0528[_0x3d016c(0x20b)](_0x3d016c(0x199)))_0x3d58b2[_0x3d016c(0x25a)]=_0x4ca05c[_0x3d016c(0x25e)];else{if(_0x5f0528['includes'](_0x3d016c(0x146))&&(_0x3d58b2[_0x3d016c(0x25a)]=ServiceUtil['patchesForUpdateMultiple'](_0x4ca05c),!_0x3d58b2['grist']))return;}}}if(_0x3d016c(0x16d)===_0x4bdf5c){let _0x7b1570,_0x21b758=Array[_0x3d016c(0x1c7)](_0x3d58b2[_0x3d016c(0x25a)])?_0x3d58b2[_0x3d016c(0x25a)]:[_0x3d58b2[_0x3d016c(0x25a)]];_0x7b1570=_0x3462d6[_0x3d016c(0x223)]?_0x21b758[_0x3d016c(0x19a)](_0x450758=>{const _0x2f0c94=_0x3d016c;let _0x1b17ab={};return Object[_0x2f0c94(0x244)](_0x450758)[_0x2f0c94(0x14b)](_0x2141cf=>Object[_0x2f0c94(0x244)](_0x3462d6[_0x2f0c94(0x223)])[_0x2f0c94(0x20b)](_0x2141cf))[_0x2f0c94(0x19a)](_0x8497c4=>{const _0x182f60=_0x2f0c94;Object[_0x182f60(0x244)](_0x3462d6['param_field'])['includes'](_0x8497c4)&&(_0x182f60(0x225)==typeof _0x450758[_0x8497c4]?_0x1b17ab[_0x3462d6[_0x182f60(0x223)][_0x8497c4]]=_0x450758[_0x8497c4]:_0x1b17ab[_0x3462d6['param_field'][_0x8497c4]]={'id':_0x450758[_0x8497c4]['id']});}),_0x1b17ab;}):_0x21b758,UiUtil[_0x3d016c(0x21a)](_0x3462d6[_0x3d016c(0x240)],_0x7b1570);}else{if(_0x3d016c(0x123)===_0x4bdf5c){let _0xeb405d={..._0x3d58b2[_0x3d016c(0x25a)]?_0x3d58b2['grist']:{},..._0x3d58b2[_0x3d016c(0x14b)]?_0x3d58b2[_0x3d016c(0x14b)]:{}};await MetaUiUtil[_0x3d016c(0x18a)](_0x1dd26b,_0x3462d6,_0xeb405d);}else'scenario'===_0x4bdf5c&&await MetaUiUtil[_0x3d016c(0x104)](_0x1dd26b,_0x3462d6,_0x3d58b2);}}static[a0_0x598c66(0x20c)](_0x49d9cc,_0x539246,_0x4dd4cd){const _0x3b39db=a0_0x598c66;let _0x2a8f1d=_0x539246[_0x3b39db(0x131)],_0x4728c4={},_0x51dff5=_0x49d9cc[_0x3b39db(0x1dc)][_0x3b39db(0x106)](),_0x2f137b=_0x49d9cc;_0x4728c4=_0x51dff5[_0x3b39db(0x12f)](_0x3b39db(0x105))||_0x51dff5[_0x3b39db(0x12f)]('meta-master-detail-')?_0x2a8f1d['detail']?{..._0x2a8f1d}:{'detail':{..._0x2a8f1d}}:{..._0x2a8f1d},Object[_0x3b39db(0x244)](_0x4728c4)['forEach'](_0x2ca4c5=>{const _0x42a2ff=_0x3b39db;if('master'==_0x2ca4c5?_0x2f137b=_0x49d9cc[_0x42a2ff(0x18f)][_0x42a2ff(0x1b3)]:_0x42a2ff(0x156)==_0x2ca4c5?_0x2f137b=_0x49d9cc['rootElement']?_0x49d9cc[_0x42a2ff(0x18f)][_0x42a2ff(0x203)]:_0x49d9cc[_0x42a2ff(0x203)]:_0x42a2ff(0x231)==_0x2ca4c5&&(_0x2f137b=_0x49d9cc),_0x2f137b){if(_0x2f137b[_0x42a2ff(0x1dc)]['toLowerCase']()[_0x42a2ff(0x12f)]('meta-tab-element'))Object[_0x42a2ff(0x244)](_0x4728c4[_0x2ca4c5])[_0x42a2ff(0x1e1)](_0x46a1d6=>{const _0x12cf18=_0x42a2ff;let _0x4e7538=_0x2f137b[_0x12cf18(0x1bf)][_0x12cf18(0x126)]('#'+_0x46a1d6);_0x4dd4cd['id']&&_0x4e7538[_0x12cf18(0xf0)](_0x4dd4cd['id']);let _0xc78255=_0x4728c4[_0x2ca4c5][_0x46a1d6];Object[_0x12cf18(0x244)](_0xc78255)[_0x12cf18(0x1e1)](_0x3b5029=>{let _0x4725b2=_0xc78255[_0x3b5029],_0x1ffd42='*'===_0x4725b2?_0x4dd4cd:_0x4dd4cd[_0x4725b2];_0x4e7538[_0x3b5029]=_0x1ffd42;});});else{let _0x216464=_0x2f137b;_0x4dd4cd['id']&&_0x216464[_0x42a2ff(0xf0)](_0x4dd4cd['id']);let _0x596f7e=_0x4728c4[_0x2ca4c5];Object[_0x42a2ff(0x244)](_0x596f7e)['forEach'](_0x39809b=>{let _0x5ae24d=_0x596f7e[_0x39809b],_0x3b1d95='*'===_0x5ae24d?_0x4dd4cd:_0x4dd4cd[_0x5ae24d];_0x216464[_0x39809b]=_0x3b1d95;});}}});}static async[a0_0x598c66(0x18a)](_0x3e0d26,_0x290431,_0x4d3e40){const _0x395eab=a0_0x598c66;let _0x1d5ca3=TermsUtil['tTitle'](_0x290431['title']);ValueUtil['isNotEmpty'](_0x290431['title_detail'])&&(_0x1d5ca3=_0x1d5ca3+'('+ValueUtil[_0x395eab(0x1a9)](_0x4d3e40,..._0x290431[_0x395eab(0x187)][_0x395eab(0x191)]('.'))+')');let _0x183188=_0x290431[_0x395eab(0x1e4)]&&'string'==typeof _0x290431[_0x395eab(0x1e4)]&&_0x395eab(0x10f)===_0x290431['after']&&_0x3e0d26&&_0x3e0d26[_0x395eab(0x10f)]?_0x3e0d26['fetch']['bind'](_0x3e0d26):void 0x0;UiUtil['openDynamicPopup'](_0x1d5ca3,_0x290431,_0x4d3e40,_0x183188);}static async[a0_0x598c66(0x104)](_0x362d15,_0xdfa08a,_0x47b068){const _0x4786a8=a0_0x598c66;let _0xf1fc8=await ServiceUtil[_0x4786a8(0x198)](_0x4786a8(0x12a),_0xdfa08a[_0x4786a8(0x1ee)],_0x47b068);if(!_0xf1fc8[_0x4786a8(0x193)]&&!ValueUtil[_0x4786a8(0x234)](_0xdfa08a[_0x4786a8(0x1e4)])&&_0xdfa08a['after']){if(_0x4786a8(0x10f)!==_0xdfa08a['after']){if(_0x4786a8(0x253)==typeof _0xdfa08a[_0x4786a8(0x1e4)]){let _0x5db5d2=_0xdfa08a['after'],_0x15d25e=ValueUtil[_0x4786a8(0x1a9)](_0xf1fc8[_0x4786a8(0x1c2)][_0x4786a8(0x259)]['data'],..._0x5db5d2[_0x4786a8(0x13a)][_0x4786a8(0x191)]('.'));if(0x0==Array[_0x4786a8(0x1c7)](_0x15d25e)&&(_0x15d25e=[_0x15d25e]),_0x4786a8(0x115)===_0x5db5d2['type'])_0x5db5d2[_0x4786a8(0x20a)]=_0x4786a8(0x132),_0x5db5d2[_0x4786a8(0x22d)]=_0x4786a8(0x12c),_0x5db5d2[_0x4786a8(0x24b)]='id',_0x15d25e=_0x15d25e[0x0],await MetaUiUtil[_0x4786a8(0x18a)](_0x362d15,_0x5db5d2,_0x15d25e);else{if('page'===_0x5db5d2[_0x4786a8(0x14e)]){let _0x18f47c,_0x29c32c=_0x15d25e;_0x18f47c=_0x5db5d2[_0x4786a8(0x223)]?_0x29c32c[_0x4786a8(0x19a)](_0x2f2960=>{const _0x5d9f4c=_0x4786a8;let _0x2be285={};return Object[_0x5d9f4c(0x244)](_0x2f2960)[_0x5d9f4c(0x14b)](_0x309667=>Object[_0x5d9f4c(0x244)](_0x5db5d2[_0x5d9f4c(0x223)])['includes'](_0x309667))[_0x5d9f4c(0x19a)](_0x28eedd=>{const _0x4ff10a=_0x5d9f4c;Object[_0x4ff10a(0x244)](_0x5db5d2['param_field'])[_0x4ff10a(0x20b)](_0x28eedd)&&(_0x4ff10a(0x225)==typeof _0x2f2960[_0x28eedd]?_0x2be285[_0x5db5d2[_0x4ff10a(0x223)][_0x28eedd]]=_0x2f2960[_0x28eedd]:_0x2be285[_0x5db5d2['param_field'][_0x28eedd]]={'id':_0x2f2960[_0x28eedd]['id']});}),_0x2be285;}):_0x29c32c,UiUtil[_0x4786a8(0x21a)](_0x5db5d2[_0x4786a8(0x240)],_0x18f47c);}else _0x4786a8(0x114)===_0x5db5d2[_0x4786a8(0x14e)]?(_0x15d25e=_0x15d25e[0x0],MetaUiUtil[_0x4786a8(0x20c)](_0x362d15,_0x5db5d2,_0x15d25e)):_0x4786a8(0x123)===_0x5db5d2[_0x4786a8(0x14e)]?(_0x15d25e=_0x15d25e[0x0],await MetaUiUtil[_0x4786a8(0x18a)](_0x362d15,_0x5db5d2,_0x15d25e)):_0x4786a8(0x21d)===_0x5db5d2[_0x4786a8(0x14e)]&&(_0x15d25e=_0x15d25e[0x0],await MetaUiUtil[_0x4786a8(0x221)](_0x362d15,_0x5db5d2,_0x15d25e));}}}else _0x362d15[_0x4786a8(0x10f)]();}}static async[a0_0x598c66(0x221)](_0x4fd291,_0x21337e,_0x18ab49){const _0x53ac05=a0_0x598c66;for(let _0x5644da=0x0;_0x5644da<_0x21337e[_0x53ac05(0x237)][_0x53ac05(0x209)];_0x5644da++){let _0x324973=_0x21337e[_0x53ac05(0x237)][_0x5644da];!0x0===ValueUtil[_0x53ac05(0x1b5)](_0x324973,_0x18ab49,Object[_0x53ac05(0x244)](_0x324973)[_0x53ac05(0x14b)](_0x6331b7=>'logic'!=_0x6331b7))&&await MetaUiUtil[_0x53ac05(0x16e)](_0x4fd291,_0x324973,_0x18ab49);}}static['getGristHiddenColumnConfig'](_0x4c1c75,_0x1bed4b){return{'type':_0x4c1c75,'name':_0x1bed4b,'sortable':!0x1,'hidden':!0x0};}static[a0_0x598c66(0x245)](_0x3875b4,_0x14a979,_0x1f0db0,_0x41cf65,_0x24c9f3,_0x7503ff){const _0x563d13=a0_0x598c66;let _0x49d6af=TermsUtil[_0x563d13(0x1c1)](_0x14a979);return{'type':_0x3875b4,'name':_0x14a979,'header':_0x49d6af,'record':{'align':_0x1f0db0,'editable':_0x41cf65},'sortable':_0x24c9f3,'width':_0x7503ff,'imex':{'width':Math[_0x563d13(0x257)](_0x7503ff/0x6),'header':_0x49d6af,'type':_0x3875b4,'key':_0x14a979}};}static['getGristColumnConfig2'](_0x95978f,_0x23afeb,_0x33228d,_0x3dc020,_0x3e2b7c,_0x27603f,_0x1faa08){const _0x286af2=a0_0x598c66;let _0x2eddb0=TermsUtil[_0x286af2(0x1c1)](_0x33228d);return{'type':_0x95978f,'name':_0x23afeb,'header':_0x2eddb0,'record':{'align':_0x3dc020,'editable':_0x3e2b7c},'sortable':_0x27603f,'width':_0x1faa08,'imex':{'width':Math[_0x286af2(0x257)](_0x1faa08/0x6),'header':_0x2eddb0,'type':_0x95978f,'key':_0x23afeb}};}static[a0_0x598c66(0x1b2)](_0x3551fd,_0x237861,_0x2a596f,_0x574046,_0x2fd3f3,_0x90069d,_0x4435a0,_0x142770){const _0x5a53fe=a0_0x598c66;let _0x255216=TermsUtil[_0x5a53fe(0x1c1)](_0x2a596f);return{'type':_0x3551fd,'name':_0x237861,'header':_0x255216,'record':{'align':_0x574046,'editable':_0x2fd3f3,'mandatory':_0x4435a0},'sortable':_0x90069d,'width':_0x142770,'imex':{'width':Math[_0x5a53fe(0x257)](_0x142770/0x6),'header':_0x255216,'type':_0x3551fd,'key':_0x237861}};}static[a0_0x598c66(0x1fa)](_0x73a020,_0x26c31e,_0x192664,_0x26be41,_0x568143,_0x3437f2,_0x276e44){const _0x1aae4b=a0_0x598c66;let _0x2be67a=TermsUtil[_0x1aae4b(0x1c1)](_0x26c31e);return{'type':_0x1aae4b(0x24a),'name':_0x73a020,'header':_0x2be67a,'record':{'align':_0x192664,'editable':!0x0,'mandatory':_0x3437f2,'options':_0x276e44},'sortable':_0x26be41,'width':_0x568143,'imex':{'width':Math['floor'](_0x568143/0x6),'header':_0x2be67a,'type':_0x1aae4b(0x225),'key':_0x73a020}};}static async[a0_0x598c66(0x204)](_0x457e4b,_0x3cdc2d,_0x585301,_0x1f609b,_0x1420ca,_0x56b09c,_0x527c50){const _0x872390=a0_0x598c66;let _0x540f2d=await ServiceUtil[_0x872390(0x213)](_0x527c50);return MetaUiUtil[_0x872390(0x1fa)](_0x457e4b,_0x3cdc2d,_0x585301,_0x1f609b,_0x1420ca,_0x56b09c,_0x540f2d);}static[a0_0x598c66(0xfe)](_0xcc35dc,_0x55aa6a,_0x32d67e,_0x559d3f,_0x390ff6){const _0x59be64=a0_0x598c66;let _0x472d31=TermsUtil[_0x59be64(0x1c1)](_0x32d67e),_0xcc25a0={'name':_0xcc35dc,'type':_0x55aa6a,'label':_0x472d31,'operator':_0x559d3f,'imex':{'width':0x10,'header':_0x472d31,'type':_0x55aa6a,'key':_0xcc35dc}};return _0x390ff6&&(_0xcc25a0[_0x59be64(0x135)]=_0x390ff6),_0xcc25a0;}static async['getGristSearchCodeColumnConfig'](_0x252c75,_0x250749,_0x3f41e2,_0x27c1f5,_0x1baa64){let _0x2c528b=await ServiceUtil['getCodeSelectorData'](_0x1baa64);return MetaUiUtil['getGristSearchColumnConfig'](_0x252c75,_0x250749,_0x3f41e2,_0x27c1f5,_0x2c528b);}static[a0_0x598c66(0x200)](){return[css`
|
|
5
|
+
`,'variables':{'id':null}}))[_0x4fe193(0x16e)])return;let _0x8dd295=[{'name':_0x4fe193(0x102),'operator':'eq','value':_0x256e98}];return await ServiceUtil['searchByPagination']('menus',_0x8dd295,null,0x0,0x0,_0x4fe193(0xb0));}static async[a0_0x5ddfef(0x14a)](_0x3052d9,_0x4882d0){const _0x116ac1=a0_0x5ddfef;let _0x5237a7,_0x4100c0=await MetaUiUtil[_0x116ac1(0xa5)](_0x4882d0);if(_0x4100c0&&_0x4100c0[_0x116ac1(0xc7)]&&0x0!=_0x4100c0[_0x116ac1(0xc7)][_0x116ac1(0x138)]?(_0x5237a7=_0x4100c0[_0x116ac1(0xc7)][0x0],!_0x5237a7['template']&&_0x3052d9[_0x116ac1(0x193)]&&(_0x5237a7['template']=_0x3052d9[_0x116ac1(0x193)])):_0x3052d9[_0x116ac1(0x193)]&&(_0x5237a7={'id':_0x4882d0,'template':_0x3052d9[_0x116ac1(0x193)]}),!_0x5237a7)throw new Error(TermsUtil[_0x116ac1(0x198)]('value_is_not_exist',{'value':TermsUtil[_0x116ac1(0x1c0)](_0x116ac1(0x1a8))+'\x20'+_0x4882d0}));if(!_0x5237a7['template'])throw new Error(TermsUtil[_0x116ac1(0x198)](_0x116ac1(0x78),{'value':TermsUtil[_0x116ac1(0x1c0)](_0x116ac1(0x1a8))+'\x20'+TermsUtil[_0x116ac1(0x8d)](_0x116ac1(0x1c7))}));return this[_0x116ac1(0xaf)]=_0x5237a7['id'],JSON[_0x116ac1(0xfa)](MetaCrypto[_0x116ac1(0x103)](_0x5237a7[_0x116ac1(0x18c)]));}static[a0_0x5ddfef(0x1b3)](){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':_0x1ddd31=>Boolean(_0x1ddd31)},'is_popup':{'type':Boolean,'converter':_0x1603f7=>Boolean(_0x1603f7)},'is_activity':{'type':Boolean,'converter':_0x514cb2=>Boolean(_0x514cb2)},'is_readonly':{'type':Boolean,'converter':_0x14151f=>Boolean(_0x14151f)}};}static async['getMenuMeta'](_0x9cb5ca){const _0x579953=a0_0x5ddfef;if(0x0==store[_0x579953(0x68)]()['metaUI'][_0x579953(0x119)])return void document['dispatchEvent'](new CustomEvent(_0x579953(0x195),{'detail':{'level':'error','message':TermsUtil['tError'](_0x579953(0x9b))}}));let _0x5838d8=_0x9cb5ca[_0x579953(0x147)]?UiUtil[_0x579953(0xd8)]():_0x9cb5ca['route_name'];_0x9cb5ca[_0x579953(0xd8)]=_0x5838d8;let _0x421622=await MetaUiUtil[_0x579953(0x14a)](_0x9cb5ca,_0x5838d8);return!0x0===_0x9cb5ca[_0x579953(0x1b8)]&&(_0x421622['grid'][_0x579953(0x1ad)][_0x579953(0x18f)]=!0x1,_0x421622['grid'][_0x579953(0x1ad)]['pages']=_0x579953(0x141),_0x421622[_0x579953(0xe5)][_0x579953(0x150)]=!0x1,_0x421622[_0x579953(0xe5)][_0x579953(0x192)]=[],_0x421622['button']=_0x421622['button'][_0x579953(0x16c)](_0x1b51a7=>_0x579953(0x152)==_0x1b51a7[_0x579953(0x1d8)])),!0x0===_0x9cb5ca['is_readonly']&&(_0x421622['grid_column']['forEach'](_0x233222=>{const _0x1264b4=_0x579953;_0x233222[_0x1264b4(0xdf)]=!0x1;}),_0x421622[_0x579953(0x192)]=_0x421622['button'][_0x579953(0x16c)](_0x122e09=>_0x579953(0x152)!=_0x122e09[_0x579953(0x1d8)])),!0x1===_0x9cb5ca[_0x579953(0x150)]&&(_0x421622[_0x579953(0xe5)][_0x579953(0x150)]=!0x1),_0x421622[_0x579953(0x15c)]['filter'](_0x1fed3d=>_0x1fed3d[_0x579953(0x187)])['forEach'](_0x4f2687=>{const _0x1c6033=_0x579953;_0x9cb5ca[_0x1c6033(0xd6)]||(_0x9cb5ca[_0x1c6033(0xd6)]={}),_0x9cb5ca[_0x1c6033(0xd6)][_0x4f2687[_0x1c6033(0x1d8)]]=_0x4f2687[_0x1c6033(0x187)];}),_0x421622[_0x579953(0x15c)][_0x579953(0x93)](_0x3eedb0=>{const _0x46103d=_0x579953;[_0x46103d(0x149),_0x46103d(0xc4)]['includes'](_0x3eedb0[_0x46103d(0x134)])?_0x3eedb0[_0x46103d(0x134)]='meta-object-selector':['resource-code-selector']['includes'](_0x3eedb0[_0x46103d(0x134)])&&(_0x3eedb0[_0x46103d(0x134)]=_0x46103d(0xb8));}),_0x421622;}static['getGristPaginationCustomConfig'](..._0x446a40){return{'pages':_0x446a40};}static[a0_0x5ddfef(0xf2)](_0x11f1f8,_0x574b03){const _0x2bd595=a0_0x5ddfef;let _0x31becb=[{'type':_0x2bd595(0xcd),'gutterName':'dirty'},{'type':'gutter','gutterName':_0x2bd595(0x7d)}];return _0x11f1f8&&_0x31becb['push']({'type':_0x2bd595(0xcd),'gutterName':_0x2bd595(0x10a),'multiple':_0x574b03}),_0x31becb;}static[a0_0x5ddfef(0x12f)](_0x586890){return{'selectable':{'multiple':_0x586890}};}static async[a0_0x5ddfef(0x168)](_0x131964){const _0x4e7057=a0_0x5ddfef;_0x131964['gqlInfo']||(_0x131964[_0x4e7057(0xfe)]={}),_0x131964[_0x4e7057(0xfe)]['query']||(_0x131964[_0x4e7057(0xfe)][_0x4e7057(0x6b)]={}),_0x131964[_0x4e7057(0xfe)][_0x4e7057(0x6b)][_0x4e7057(0x171)]||(_0x131964[_0x4e7057(0xfe)][_0x4e7057(0x6b)][_0x4e7057(0x171)]={}),_0x131964[_0x4e7057(0xfe)][_0x4e7057(0xba)]||(_0x131964[_0x4e7057(0xfe)][_0x4e7057(0xba)]={}),_0x131964[_0x4e7057(0xfe)]['mutation'][_0x4e7057(0x71)]||(_0x131964['gqlInfo']['mutation']['multiple']={}),_0x131964[_0x4e7057(0xfe)][_0x4e7057(0xba)]['multiple'][_0x4e7057(0xbc)]||(_0x131964[_0x4e7057(0xfe)][_0x4e7057(0xba)][_0x4e7057(0x71)][_0x4e7057(0xbc)]=[]);let _0x2c4e7a=MetaUiUtil[_0x4e7057(0x10d)](_0x131964),_0x598068=MetaUiUtil[_0x4e7057(0x85)](_0x131964),_0x3ae7d5=MetaUiUtil[_0x4e7057(0x13f)](_0x131964),_0x4bab4b=MetaUiUtil[_0x4e7057(0xec)](_0x131964),_0x546318=await MetaUiUtil['getGridColumnSet'](_0x131964);_0x546318['filter'](_0x381fc7=>['meta-object-selector'][_0x4e7057(0x1ac)](_0x381fc7['type']))['forEach'](_0x200d46=>{const _0x412d27=_0x4e7057;_0x131964[_0x412d27(0x176)]['filter'](_0x35cad7=>_0x35cad7[_0x412d27(0x1d8)]==_0x200d46[_0x412d27(0x1d8)])[_0x412d27(0x93)](_0x430426=>{const _0x314106=_0x412d27,_0x173fed=_0x200d46[_0x314106(0x126)]['options'],_0x41400=_0x173fed[_0x314106(0xeb)]?_0x173fed[_0x314106(0xeb)]:_0x200d46['name']+'Id',_0xc78fa7=_0x131964[_0x314106(0x176)]['findIndex'](_0x43139a=>_0x43139a[_0x314106(0x1d8)]==_0x200d46[_0x314106(0x1d8)]);_0x546318['push']({'type':'meta-object-selector','header':_0x200d46['header'],'name':_0x41400,'hidden':!0x0,'record':{'editable':!0x1,'mandatory':!0x1,'options':_0x173fed},'unusable':!0x0}),_0x131964['gqlInfo']['query'][_0x314106(0x171)][_0x41400]='x',_0x131964[_0x314106(0xfe)][_0x314106(0xba)]['multiple'][_0x314106(0xbc)]['push'](_0x41400),_0x131964['searchConfig'][_0xc78fa7][_0x314106(0x1d8)]=_0x41400,_0x131964[_0x314106(0x176)][_0xc78fa7][_0x314106(0x134)]=_0x314106(0x1a6);});});let _0x4d0fe2=MetaUiUtil[_0x4e7057(0xf2)](_0x2c4e7a[_0x4e7057(0x18f)],_0x3ae7d5[_0x4e7057(0x136)][_0x4e7057(0x71)]);if(0x1==_0x131964[_0x4e7057(0x9d)]&&(_0x546318=MetaUiUtil[_0x4e7057(0x151)](_0x131964,_0x546318)),_0x131964[_0x4e7057(0x140)]&&(_0x131964[_0x4e7057(0x140)]&&_0x131964['gridEmphasized'][_0x4e7057(0xab)]&&_0x131964[_0x4e7057(0x140)][_0x4e7057(0xab)][_0x4e7057(0x138)]>0x0&&(_0x3ae7d5[_0x4e7057(0x10b)]=function(_0x5ae77a,_0x189ee9){const _0x4b4b7c=_0x4e7057;let _0x21a14d=_0x131964['gridEmphasized'][_0x4b4b7c(0xab)];for(let _0x13aeea=0x0;_0x13aeea<_0x21a14d[_0x4b4b7c(0x138)];_0x13aeea++){let _0x7cf229=_0x21a14d[_0x13aeea]['logic'][_0x4b4b7c(0x100)](/record./g,'arguments[0].')[_0x4b4b7c(0x100)](/rowIndex/g,_0x4b4b7c(0x72));if(eval(''+_0x7cf229))return{'emphasized':[_0x21a14d[_0x13aeea]['backgroundColor'],_0x21a14d[_0x13aeea][_0x4b4b7c(0x1d1)]]};}}),_0x131964[_0x4e7057(0x140)]&&_0x131964[_0x4e7057(0x140)][_0x4e7057(0x17e)])){let _0x48a002=_0x131964[_0x4e7057(0x140)][_0x4e7057(0x17e)];Object[_0x4e7057(0x97)](_0x48a002)[_0x4e7057(0x93)](_0x5e946f=>{const _0x2719f5=_0x4e7057;let _0x146811=_0x48a002[_0x5e946f],_0x31fd10=_0x546318['findIndex'](_0x470a96=>_0x470a96[_0x2719f5(0x1d8)]==_0x5e946f);_0x546318[_0x31fd10][_0x2719f5(0x126)]||(_0x546318[_0x31fd10][_0x2719f5(0x126)]={}),_0x546318[_0x31fd10][_0x2719f5(0x126)][_0x2719f5(0x10b)]=function(_0x28ef43,_0xaca70a){const _0x4db63d=_0x2719f5;for(let _0x3b2877=0x0;_0x3b2877<_0x146811[_0x4db63d(0x138)];_0x3b2877++){let _0x469607=_0x146811[_0x3b2877][_0x4db63d(0x157)][_0x4db63d(0x100)](/record./g,_0x4db63d(0xfd))[_0x4db63d(0x100)](/rowIndex/g,_0x4db63d(0x72));if(eval(''+_0x469607))return{'emphasized':[_0x146811[_0x3b2877][_0x4db63d(0x1d0)],_0x146811[_0x3b2877][_0x4db63d(0x1d1)]]};}};});}return{'list':_0x598068,'pagination':_0x2c4e7a[_0x4e7057(0x75)],'sorters':_0x2c4e7a[_0x4e7057(0x76)],'rows':_0x3ae7d5,'columns':[..._0x4d0fe2,..._0x4bab4b,..._0x546318]};}static async[a0_0x5ddfef(0x1ca)](_0x3a486a){const _0x3fc150=a0_0x5ddfef;let _0x17e0c7=_0x3a486a[_0x3fc150(0xa8)],_0x1d6ac0=[],_0x3376eb=Object[_0x3fc150(0x97)](getValueGenerators());for(let _0x288c3e=0x0;_0x288c3e<_0x17e0c7[_0x3fc150(0x138)];_0x288c3e++){let {type:_0x8a703d=_0x3fc150(0xfc),name:_0x16ec36,header:_0x5357ec,hidden:_0x5de26d=!0x1,editable:_0x5dae11=!0x0,mandatory:_0x5be0d9=!0x1,align:_0x1482f6=_0x3fc150(0x1d5),select_opt:_0x48172b,object_opt:_0x55ef20,default_value:_0x158b8a}=_0x17e0c7[_0x288c3e],_0x3d6b14={'type':_0x8a703d,'name':_0x16ec36,'header_txt':ValueUtil[_0x3fc150(0xbb)](_0x5357ec)?TermsUtil[_0x3fc150(0x8d)](_0x16ec36):TermsUtil[_0x3fc150(0x8d)](_0x5357ec),'header':{'renderer':function(_0x4db17b){const _0xa381f3=_0x3fc150;return _0x4db17b[_0xa381f3(0x142)];}},'hidden':_0x5de26d,'record':{'editable':_0x5dae11,'mandatory':_0x5be0d9,'align':_0x1482f6,'classifier':function(){},'renderer':getRenderer(_0x8a703d)}};if(_0x5dae11&&(_0x3d6b14[_0x3fc150(0x126)][_0x3fc150(0x156)]=getEditor(_0x8a703d)),_0x158b8a){let _0x5bfa54=_0x158b8a['split'](','),_0x31c778=_0x5bfa54[0x0];_0x3376eb['includes'](_0x31c778)?0x1==_0x5bfa54[_0x3fc150(0x138)]?_0x3d6b14[_0x3fc150(0x126)]['defaultValue']={'name':_0x31c778}:_0x3d6b14['record'][_0x3fc150(0x73)]={'name':_0x31c778,'params':{'calc':_0x5bfa54[0x1]}}:_0x3d6b14[_0x3fc150(0x126)][_0x3fc150(0x73)]=_0x3fc150(0xa1)===_0x8a703d?Number(_0x158b8a):_0x158b8a;}_0x8a703d[_0x3fc150(0x82)](_0x3fc150(0x116))&&_0x55ef20&&_0x55ef20[_0x3fc150(0x1a8)]&&(_0x55ef20=await MetaUiUtil[_0x3fc150(0x1b2)](_0x8a703d,_0x55ef20)),_0x3fc150(0x1c2)===_0x8a703d&&ValueUtil[_0x3fc150(0x127)](_0x48172b)&&(Array[_0x3fc150(0x6a)](_0x48172b)?_0x3d6b14[_0x3fc150(0x126)]['options']=_0x48172b:'code'===_0x48172b[_0x3fc150(0x134)]?_0x3d6b14[_0x3fc150(0x126)][_0x3fc150(0x15e)]=await ServiceUtil[_0x3fc150(0x70)](_0x48172b[_0x3fc150(0x183)]?_0x48172b[_0x3fc150(0x183)]:_0x48172b[_0x3fc150(0x1d8)]):_0x3fc150(0xca)===_0x48172b[_0x3fc150(0x134)]?_0x3d6b14[_0x3fc150(0x126)][_0x3fc150(0x15e)]=await ServiceUtil[_0x3fc150(0x1d7)](_0x48172b[_0x3fc150(0x1d8)],_0x48172b[_0x3fc150(0xd3)]):_0x3fc150(0x18d)===_0x48172b[_0x3fc150(0x134)]&&(_0x3d6b14[_0x3fc150(0x126)][_0x3fc150(0x15e)]=await ServiceUtil['getCodeByEntity'](_0x48172b[_0x3fc150(0xd3)]))),'meta-object-selector'===_0x8a703d&&ValueUtil[_0x3fc150(0x127)](_0x55ef20)?_0x3d6b14[_0x3fc150(0x126)][_0x3fc150(0x15e)]={..._0x55ef20}:_0x3fc150(0xb8)===_0x8a703d&&ValueUtil[_0x3fc150(0x127)](_0x55ef20)&&(_0x55ef20['dispField']&&(_0x55ef20['codes']=await ServiceUtil['getCodeByEntity'](_0x55ef20)),_0x3d6b14['record'][_0x3fc150(0x15e)]={..._0x55ef20}),_0x1d6ac0[_0x3fc150(0x130)](_0x3d6b14);}return _0x1d6ac0;}static[a0_0x5ddfef(0x10d)](_0x5d96b2){const _0x3fc75f=a0_0x5ddfef;let _0x151e46=_0x5d96b2[_0x3fc75f(0x1a9)];_0x5d96b2[_0x3fc75f(0x9d)]=!_0x151e46||null==_0x151e46['use_filter_form']||_0x151e46['use_filter_form'];let {mobile_mode:_0x10bbf0=_0x3fc75f(0x1bc),desk_mode:_0x24a045='GRID',view_mode:_0x7e8c69=[],use_row_checker:_0x50c155=!0x0,sorters:_0x2d8fb1=[],pages:_0x3032fd=[0x32,0x64,0x1f4,0x3e8]}=ValueUtil['isEmpty'](_0x151e46['option'])?{}:_0x151e46['option'];return _0x3fc75f(0x141)===_0x3032fd||'-1'===_0x3032fd?(_0x5d96b2[_0x3fc75f(0xde)]=!0x0,_0x3032fd={'infinite':!0x0}):(_0x5d96b2['infinityPage']=!0x1,_0x3032fd[_0x3fc75f(0x19c)](function(_0x2a5dc2,_0x4d36dd){return _0x2a5dc2-_0x4d36dd;}),_0x3032fd={'pages':_0x3032fd}),ValueUtil[_0x3fc75f(0x127)](_0x7e8c69)&&(0x1==_0x7e8c69['length']?(_0x24a045=_0x7e8c69[0x0],_0x10bbf0=_0x7e8c69[0x0]):_0x7e8c69[_0x3fc75f(0x138)]>=0x2&&(_0x7e8c69[_0x3fc75f(0x1ac)](_0x10bbf0)||(_0x10bbf0=_0x7e8c69[0x1]),_0x7e8c69[_0x3fc75f(0x1ac)](_0x24a045)||(_0x24a045=_0x7e8c69[0x0]))),_0x5d96b2[_0x3fc75f(0xb7)]=_0x10bbf0,_0x5d96b2[_0x3fc75f(0x10e)]=_0x24a045,_0x5d96b2['gridViewOptions']=_0x7e8c69,_0x5d96b2['gridMode']=UiUtil[_0x3fc75f(0x139)]()?_0x5d96b2[_0x3fc75f(0xb7)]:_0x5d96b2['gridDeskMode'],{'use_row_checker':_0x50c155,'sorters':_0x2d8fb1,'pages':_0x3032fd};}static[a0_0x5ddfef(0x85)](_0x401f6d){const _0x3972ac=a0_0x5ddfef;let _0x3ffdd4={'fields':[ValueUtil[_0x3972ac(0x86)](_0x401f6d[_0x3972ac(0x74)],'name'),ValueUtil[_0x3972ac(0x86)](_0x401f6d[_0x3972ac(0x74)],_0x3972ac(0x8b))]};return _0x401f6d['gridConfig']['list']&&Object['assign'](_0x3ffdd4,_0x401f6d['gridConfig'][_0x3972ac(0x110)]),_0x3ffdd4;}static[a0_0x5ddfef(0x13f)](_0x40e661){const _0x1763e2=a0_0x5ddfef;let {multiple_select:_0x3f9f03=!0x1,click:_0x1d166a}=ValueUtil[_0x1763e2(0xbb)](_0x40e661[_0x1763e2(0x1a9)][_0x1763e2(0xab)])?{}:_0x40e661[_0x1763e2(0x1a9)][_0x1763e2(0xab)],_0x5a5dd8={'selectable':{'multiple':_0x3f9f03},'appendable':_0x40e661[_0x1763e2(0x105)]};return ValueUtil[_0x1763e2(0x127)](_0x1d166a)&&(_0x5a5dd8[_0x1763e2(0x12b)]={'click':_0x1d166a}),_0x5a5dd8;}static[a0_0x5ddfef(0xec)](_0x4f0aa8){const _0x151f07=a0_0x5ddfef;let _0x505c9b=_0x4f0aa8[_0x151f07(0x1a9)][_0x151f07(0x192)];return ValueUtil[_0x151f07(0xbb)](_0x505c9b)?[]:_0x505c9b['map'](_0x2a1975=>{const _0x11d12c=_0x151f07;let _0x3b15da={'type':_0x11d12c(0xcd),'gutterName':_0x11d12c(0x192)};if(ValueUtil[_0x11d12c(0x127)](_0x2a1975['icon'])&&(Array['isArray'](_0x2a1975[_0x11d12c(0x17d)])?_0x3b15da[_0x11d12c(0x17d)]=_0x1891e2=>{const _0xd1fa28=_0x11d12c;if(ValueUtil[_0xd1fa28(0x127)](_0x1891e2))for(let _0x4bcf7c=0x0;_0x4bcf7c<_0x2a1975['icon']['length'];_0x4bcf7c++){let _0x40fda1=_0x2a1975[_0xd1fa28(0x17d)][_0x4bcf7c];if(!0x0===ValueUtil[_0xd1fa28(0xe4)](_0x40fda1,_0x1891e2,Object[_0xd1fa28(0x97)](_0x40fda1)['filter'](_0x5a1139=>_0xd1fa28(0x17d)!=_0x5a1139)))return _0x40fda1[_0xd1fa28(0x17d)];}}:_0x3b15da[_0x11d12c(0x17d)]=_0x2a1975[_0x11d12c(0x17d)]),ValueUtil[_0x11d12c(0x127)](_0x2a1975[_0x11d12c(0x1d8)])&&(_0x3b15da[_0x11d12c(0x1d8)]=_0x2a1975[_0x11d12c(0x1d8)]),ValueUtil[_0x11d12c(0x127)](_0x2a1975[_0x11d12c(0x1d9)])&&(_0x3b15da['title']=TermsUtil[_0x11d12c(0x177)](_0x2a1975[_0x11d12c(0x1d9)])),'basic'===_0x2a1975[_0x11d12c(0x134)]){let _0x27fe67=ValueUtil[_0x11d12c(0x86)](_0x2a1975,_0x11d12c(0x157));[_0x11d12c(0x174),_0x11d12c(0x180)][_0x11d12c(0x1ac)](_0x27fe67)?_0x3b15da[_0x11d12c(0x12b)]={'click':(_0x133c44,_0x173c64,_0x244448,_0x4a9b54,_0x38082b)=>{const _0x35b36f=_0x11d12c;if(_0x4a9b54['id']){let _0x3c7844={'title':_0x35b36f(0x9e),'type':'popup','tagname':'history_copy'==_0x27fe67?_0x35b36f(0x17a):_0x35b36f(0x1a4),'location':_0x35b36f(0x174)==_0x27fe67?_0x35b36f(0x148):'pages/hgistory/history-json-list-popup.js','menu':_0x4f0aa8[_0x35b36f(0xd8)],'size':_0x35b36f(0x1b7),'popup_field':_0x35b36f(0xcc),'parent_field':'id'},_0x2008a5={..._0x4a9b54,'gqlFunc':ValueUtil[_0x35b36f(0x86)](_0x4f0aa8[_0x35b36f(0xfe)],'query',_0x35b36f(0x1af)),'gristConfig':JSON['parse'](JSON[_0x35b36f(0x169)](_0x4f0aa8['grist'][_0x35b36f(0x7f)]))};MetaUiUtil['gristButtonHandler'](_0x4f0aa8,{'logic':_0x3c7844},_0x2008a5);}}}:_0x3b15da[_0x11d12c(0x12b)]={'click':_0x27fe67};}else _0x3b15da[_0x11d12c(0x12b)]={'click':(_0x39116f,_0x346f4b,_0x579eea,_0x43c096,_0x34bdd2)=>{const _0x292b17=_0x11d12c;_0x43c096['id']&&MetaUiUtil[_0x292b17(0x1cb)](_0x4f0aa8,_0x2a1975,_0x43c096);}};return _0x3b15da;});}static async[a0_0x5ddfef(0xd0)](_0x5bf0cf){const _0x133d8a=a0_0x5ddfef;let _0x38cf68=_0x5bf0cf['gridColumnConfig'];if(ValueUtil[_0x133d8a(0xbb)](_0x38cf68))return[];let _0x5e6ab8=Object[_0x133d8a(0x97)](getValueGenerators()),_0x5b465d=[];for(let _0xf735ec=0x0;_0xf735ec<_0x38cf68[_0x133d8a(0x138)];_0xf735ec++){let {type:_0x2b39cc=_0x133d8a(0xfc),name:_0x3c48b7,header:_0x4aaefa,hidden:_0x472712=!0x1,editable:_0x3ff04b=!0x0,mandatory:_0x44a597=!0x1,sortable:_0x4c7310=!0x1,align:_0x5efb03='left',width:_0x3c5f80=0x0,exportable:_0x36d663=!0x1,select_opt:_0x4d5d97,object_opt:_0x51c813,format:_0x505957,default_value:_0x171905}=_0x38cf68[_0xf735ec],_0x36d9e0={'type':_0x2b39cc,'name':_0x3c48b7,'header':ValueUtil[_0x133d8a(0xbb)](_0x4aaefa)?'':TermsUtil[_0x133d8a(0x8d)](_0x4aaefa),'hidden':_0x472712,'sortable':_0x4c7310,'width':_0x3c5f80,'record':{'editable':_0x3ff04b,'mandatory':_0x44a597,'align':_0x5efb03,'format':_0x505957}};if(_0x171905){let _0x380264=_0x171905['split'](','),_0x409d8b=_0x380264[0x0];_0x5e6ab8[_0x133d8a(0x1ac)](_0x409d8b)?0x1==_0x380264[_0x133d8a(0x138)]?_0x36d9e0[_0x133d8a(0x126)]['defaultValue']={'name':_0x409d8b}:_0x36d9e0[_0x133d8a(0x126)][_0x133d8a(0x73)]={'name':_0x409d8b,'params':{'calc':_0x380264[0x1]}}:_0x36d9e0[_0x133d8a(0x126)]['defaultValue']=_0x133d8a(0xa1)===_0x2b39cc?Number(_0x171905):_0x171905;}if(_0x2b39cc[_0x133d8a(0x82)](_0x133d8a(0x116))&&_0x51c813&&_0x51c813[_0x133d8a(0x1a8)]&&(_0x51c813=await MetaUiUtil[_0x133d8a(0x1b2)](_0x2b39cc,_0x51c813)),_0x133d8a(0x1c2)===_0x2b39cc&&ValueUtil[_0x133d8a(0x127)](_0x4d5d97)&&(Array[_0x133d8a(0x6a)](_0x4d5d97)?_0x36d9e0[_0x133d8a(0x126)][_0x133d8a(0x15e)]=_0x4d5d97:_0x133d8a(0x1d3)===_0x4d5d97[_0x133d8a(0x134)]?_0x36d9e0[_0x133d8a(0x126)][_0x133d8a(0x15e)]=await ServiceUtil[_0x133d8a(0x70)](_0x4d5d97['values']?_0x4d5d97[_0x133d8a(0x183)]:_0x4d5d97[_0x133d8a(0x1d8)]):_0x133d8a(0xca)===_0x4d5d97[_0x133d8a(0x134)]?_0x36d9e0[_0x133d8a(0x126)][_0x133d8a(0x15e)]=await ServiceUtil[_0x133d8a(0x1d7)](_0x4d5d97[_0x133d8a(0x1d8)],_0x4d5d97[_0x133d8a(0xd3)]):_0x133d8a(0x18d)===_0x4d5d97[_0x133d8a(0x134)]&&(_0x36d9e0[_0x133d8a(0x126)][_0x133d8a(0x15e)]=await ServiceUtil[_0x133d8a(0x15b)](_0x4d5d97[_0x133d8a(0xd3)]))),_0x133d8a(0x1a6)===_0x2b39cc&&ValueUtil['isNotEmpty'](_0x51c813)){let _0x118d25;_0x36d9e0[_0x133d8a(0x126)][_0x133d8a(0x15e)]={..._0x51c813},_0x51c813[_0x133d8a(0x188)]&&_0x51c813['basicArgs'][_0x133d8a(0x88)]&&(_0x118d25=[..._0x51c813[_0x133d8a(0x188)][_0x133d8a(0x88)]]),_0x118d25&&JSON[_0x133d8a(0x169)](_0x118d25)[_0x133d8a(0x1ac)]('::')&&(_0x36d9e0[_0x133d8a(0x12b)]={'dblclick':(_0x49c4ef,_0x48fb5b,_0x52f6e7,_0x2b7a22,_0x2259c8)=>{const _0x53012f=_0x133d8a;let _0x14dd98=[];_0x118d25['forEach'](_0xa4dfcd=>{const _0x2ac50a=a0_0x414b;var {name:_0x2eb687,value:_0x1b7299,operator:_0x116c29='eq'}=_0xa4dfcd;_0x1b7299['includes']('::')&&(_0x1b7299=ValueUtil[_0x2ac50a(0x86)](_0x2b7a22,..._0x1b7299[_0x2ac50a(0x100)]('::','')[_0x2ac50a(0x13b)]('.'))),_0x1b7299||(_0x1b7299=''),_0x14dd98[_0x2ac50a(0x130)]({'name':_0x2eb687,'operator':_0x116c29,'value':_0x1b7299});}),_0x52f6e7[_0x53012f(0x126)]['options'][_0x53012f(0x188)][_0x53012f(0x88)]=_0x14dd98;}});}else'meta-code-selector'===_0x2b39cc&&ValueUtil[_0x133d8a(0x127)](_0x51c813)&&(_0x51c813[_0x133d8a(0xd9)]&&(_0x51c813['codes']=await ServiceUtil[_0x133d8a(0x15b)](_0x51c813)),_0x36d9e0['record'][_0x133d8a(0x15e)]={..._0x51c813});!0x0===_0x5bf0cf['useButtonExport']&&!0x0===_0x36d663&&(_0x36d9e0[_0x133d8a(0x94)]={'header':_0x36d9e0[_0x133d8a(0x1b1)],'key':_0x36d9e0[_0x133d8a(0x1d8)],'width':_0x36d9e0[_0x133d8a(0xe7)]/0x6,'type':_0x36d9e0[_0x133d8a(0x134)]}),_0x5b465d['push'](_0x36d9e0);}if(!0x0!==this[_0x133d8a(0x1b8)])return _0x5b465d;let _0x153e44=await MetaApi[_0x133d8a(0x173)](this[_0x133d8a(0xaf)]),{template:_0x3d063f={}}=_0x153e44;if(!_0x3d063f[_0x133d8a(0xb6)])return _0x5b465d;let _0x281a8b=_0x3d063f[_0x133d8a(0xb6)];return _0x5b465d=_0x5b465d[_0x133d8a(0x6f)](_0x521e57=>('id'==_0x521e57[_0x133d8a(0x1d8)]||(_0x521e57[_0x133d8a(0xe0)]=!_0x281a8b[_0x133d8a(0x1ac)](_0x521e57[_0x133d8a(0x1d8)]),_0x521e57[_0x133d8a(0x143)]=_0x281a8b[_0x133d8a(0x1bb)](_0x521e57['name']),-0x1==_0x521e57[_0x133d8a(0x143)]&&(_0x521e57[_0x133d8a(0x143)]=0x1869f)),_0x521e57)),_0x5b465d[_0x133d8a(0x19c)]((_0xc3687b,_0x120c69)=>_0xc3687b[_0x133d8a(0x143)]-_0x120c69[_0x133d8a(0x143)]),_0x5b465d;}static async[a0_0x5ddfef(0x1b2)](_0x188b5d,_0x2f2dd5){const _0x164824=a0_0x5ddfef;let _0x4a627e=await MetaUiUtil[_0x164824(0xa5)](_0x2f2dd5[_0x164824(0x1a8)]);if(_0x4a627e&&_0x4a627e['records']&&_0x4a627e[_0x164824(0xc7)][_0x164824(0x138)]>0x0&&_0x4a627e[_0x164824(0xc7)][0x0][_0x164824(0x18c)]){let _0x568d92=_0x4a627e[_0x164824(0xc7)][0x0],_0x5eac61=JSON[_0x164824(0xfa)](MetaCrypto[_0x164824(0x103)](_0x568d92[_0x164824(0x18c)]));_0x2f2dd5[_0x164824(0x19d)]||(_0x2f2dd5['queryName']=_0x5eac61[_0x164824(0x1cd)][_0x164824(0x6b)][_0x164824(0x11d)]),_0x2f2dd5['select']||(_0x2f2dd5['select']=_0x5eac61[_0x164824(0x15c)]),_0x2f2dd5['filterFields']&&0x0!=_0x2f2dd5[_0x164824(0x128)][_0x164824(0x138)]||(_0x2f2dd5[_0x164824(0x128)]=_0x5eac61[_0x164824(0x16f)]),_0x2f2dd5[_0x164824(0xe6)]||(_0x2f2dd5[_0x164824(0xe6)]=_0x5eac61['menu'][_0x164824(0x107)]),_0x2f2dd5[_0x164824(0x88)]||(_0x2f2dd5['filters']=_0x5eac61[_0x164824(0x1cd)][_0x164824(0x6b)][_0x164824(0x88)]||[]),_0x188b5d[_0x164824(0x1ac)](_0x164824(0x12a))?_0x2f2dd5[_0x164824(0x109)]||(_0x2f2dd5[_0x164824(0x109)]=_0x5eac61[_0x164824(0x1a8)][_0x164824(0x1d8)]||_0x164824(0x1d8)):_0x188b5d[_0x164824(0x1ac)]('-code-')&&(_0x2f2dd5[_0x164824(0x10f)]||(_0x2f2dd5[_0x164824(0x10f)]=_0x5eac61[_0x164824(0x1a8)][_0x164824(0x1d8)]||_0x164824(0x1d3)),_0x2f2dd5[_0x164824(0xd9)]||(_0x2f2dd5[_0x164824(0xd9)]=_0x5eac61[_0x164824(0x1a8)][_0x164824(0x8b)]||void 0x0));}return _0x2f2dd5;}static[a0_0x5ddfef(0x151)](_0x411420,_0x484fb7){const _0x741c0d=a0_0x5ddfef;let _0x392897=_0x411420[_0x741c0d(0x176)];return _0x392897&&_0x392897[_0x741c0d(0x93)](_0x848978=>{const _0xa2cea2=_0x741c0d;_0xa2cea2(0xfc)==typeof _0x848978?_0x484fb7[_0xa2cea2(0x16c)](_0x2be9cb=>_0x2be9cb['name']==_0x848978)[_0xa2cea2(0x93)](_0x1822d7=>{const _0x2e7eed=_0xa2cea2;_0x1822d7['filter']=_0x2e7eed(0x16f);}):_0xa2cea2(0xc4)==typeof _0x848978&&_0x484fb7[_0xa2cea2(0x16c)](_0x16e6b5=>_0x16e6b5['name']==_0x848978[_0xa2cea2(0x1d8)])[_0xa2cea2(0x93)](_0x3828d7=>{const _0x3fdc05=_0xa2cea2;_0x3828d7[_0x3fdc05(0x16c)]=_0x848978,_0x3828d7[_0x3fdc05(0x16c)][_0x3fdc05(0x134)]='datetime'===_0x3828d7[_0x3fdc05(0x134)]&&'eq'==_0x848978[_0x3fdc05(0xe1)]?_0x3fdc05(0xb4):_0x3828d7[_0x3fdc05(0x134)];let _0x37f9c2=_0x3828d7[_0x3fdc05(0x16c)]['value'],_0x49ee90=[_0x3fdc05(0x123),_0x3fdc05(0xc5),_0x3fdc05(0xbf),_0x3fdc05(0x1ba),_0x3fdc05(0x1bf),_0x3fdc05(0xc1),_0x3fdc05(0x19e)];if(_0x37f9c2&&_0x49ee90[_0x3fdc05(0x16c)](_0x2a32bf=>_0x37f9c2[_0x3fdc05(0x82)](_0x2a32bf))[_0x3fdc05(0x138)]>0x0){let _0x4459b7=[],_0x17f58e={'date':_0x3fdc05(0x15d),'datetime':_0x3fdc05(0xce)},_0x2838cf={'today':_0x3fdc05(0xe2),'year':_0x3fdc05(0xc5),'month':_0x3fdc05(0xbf),'date':_0x3fdc05(0xe2),'hour':_0x3fdc05(0x1bf),'min':_0x3fdc05(0x1bd),'sec':_0x3fdc05(0xf6)};_0x37f9c2['split'](',')[_0x3fdc05(0x93)](_0x21464f=>{const _0x3e920f=_0x3fdc05,_0x419e23=a0_0x2b73cf();if(_0x49ee90[_0x3e920f(0x1ac)](_0x21464f))_0x4459b7[_0x3e920f(0x130)](_0x419e23[_0x3e920f(0xf7)](_0x2838cf[_0x21464f])[_0x3e920f(0x133)](_0x17f58e[_0x3828d7['type']]));else{if(_0x21464f[_0x3e920f(0x1ac)]('-')){let _0x57052d=_0x21464f[_0x3e920f(0x13b)]('-'),_0x31efb7=_0x57052d[0x0],_0x5a650f=_0x57052d[0x1];_0x4459b7['push'](_0x419e23[_0x3e920f(0xd4)](_0x5a650f,_0x2838cf[_0x31efb7])[_0x3e920f(0xf7)](_0x2838cf[_0x31efb7])[_0x3e920f(0x133)](_0x17f58e[_0x3828d7[_0x3e920f(0x134)]]));}else{if(_0x21464f[_0x3e920f(0x1ac)]('+')){let _0x2fa4e8=_0x21464f[_0x3e920f(0x13b)]('+'),_0x3886bf=_0x2fa4e8[0x0],_0x4cfdb3=_0x2fa4e8[0x1];_0x4459b7[_0x3e920f(0x130)](_0x419e23[_0x3e920f(0x152)](_0x4cfdb3,_0x2838cf[_0x3886bf])[_0x3e920f(0xf7)](_0x2838cf[_0x3886bf])[_0x3e920f(0x133)](_0x17f58e[_0x3828d7[_0x3e920f(0x134)]]));}}}}),_0x4459b7['length']>0x0&&(_0x3828d7[_0x3fdc05(0x16c)]['value']=0x1==_0x4459b7['length']?_0x4459b7[0x0]:_0x4459b7);}});}),_0x484fb7;}static[a0_0x5ddfef(0x1ae)](_0x39aa6d){const _0xda8adb=a0_0x5ddfef;let _0x568e47={'title':TermsUtil['tTitle'](_0x39aa6d['menuInfo'][_0xda8adb(0x107)]),'help':_0x39aa6d['menuInfo'][_0xda8adb(0x65)]||'','actions':[...MetaUiUtil['getContextButtons'](_0x39aa6d)]};return _0x39aa6d[_0xda8adb(0x64)]&&(_0x568e47[_0xda8adb(0x77)]={'name':_0x568e47[_0xda8adb(0x107)],'data':_0x39aa6d[_0xda8adb(0x196)]['bind'](_0x39aa6d)}),_0x39aa6d[_0xda8adb(0x1a0)]&&(_0x568e47['importable']={'handler':_0x39aa6d['import'][_0xda8adb(0xa7)](_0x39aa6d)}),_0x568e47;}static['getContextButtons'](_0x4fdeca){const _0x247f7b=a0_0x5ddfef;let _0x5aca2c=_0x4fdeca[_0x247f7b(0x112)];return ValueUtil[_0x247f7b(0xbb)](_0x5aca2c)?[]:_0x5aca2c[_0x247f7b(0x16c)](_0xae106f=>_0x247f7b(0x196)!=_0xae106f[_0x247f7b(0x1d8)]&&'import'!=_0xae106f[_0x247f7b(0x1d8)]&&_0x247f7b(0x152)!=_0xae106f[_0x247f7b(0x1d8)])[_0x247f7b(0x6f)](_0x8d4b09=>{const _0x3cba7f=_0x247f7b;let {name:_0x3a7f3f,label:_0x4442e0,style:_0x5d51cc,type:_0x20557c=_0x3cba7f(0x1a2),action:_0x399e6d,logic:_0x2fda2f}=_0x8d4b09;if(ValueUtil[_0x3cba7f(0xbb)](_0x3a7f3f))return{'title':'-1'};ValueUtil[_0x3cba7f(0xbb)](_0x4442e0)&&(_0x4442e0=_0x3a7f3f),ValueUtil[_0x3cba7f(0xbb)](_0x5d51cc)&&(_0x5d51cc=_0x3a7f3f),ValueUtil[_0x3cba7f(0xbb)](_0x399e6d)&&(_0x399e6d=_0x3a7f3f);let _0x310b61=ValueUtil[_0x3cba7f(0x127)](_0x5d51cc)?CommonButtonStyles[_0x5d51cc]||{'icon':_0x5d51cc,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}}:{};return{'title':TermsUtil[_0x3cba7f(0x177)](_0x4442e0),'action':MetaUiUtil['getButtonActionHandler'](_0x4fdeca,_0x20557c,_0x399e6d,_0x2fda2f),..._0x310b61};})['filter'](_0x4e3f72=>'-1'!=_0x4e3f72[_0x247f7b(0x107)]);}static[a0_0x5ddfef(0x18b)](_0x52968c){const _0x366719=a0_0x5ddfef;let _0x41fc40=_0x52968c&&_0x52968c[_0x366719(0x112)]?_0x52968c['buttonConfig']:null;return _0x41fc40?_0x41fc40[_0x366719(0x16c)](_0x47af0f=>_0x366719(0x152)!=_0x47af0f[_0x366719(0x1d8)])[_0x366719(0x6f)](_0xbf21eb=>{const _0x4e1638=_0x366719;let {name:_0x1db472,label:_0x446444,style:_0x253005,type:_0x56d3fd=_0x4e1638(0x1a2),action:_0x25fe04,logic:_0x2dd2bf}=_0xbf21eb;ValueUtil[_0x4e1638(0xbb)](_0x446444)&&(_0x446444=_0x1db472),ValueUtil[_0x4e1638(0xbb)](_0x253005)&&(_0x253005=_0x1db472),ValueUtil[_0x4e1638(0xbb)](_0x25fe04)&&(_0x25fe04=_0x1db472);let _0x5cdfa4=MetaUiUtil[_0x4e1638(0xf5)](TermsUtil[_0x4e1638(0x177)](_0x446444),_0x253005);return _0x5cdfa4['onclick']=MetaUiUtil[_0x4e1638(0x17c)](_0x52968c,_0x56d3fd,_0x25fe04,_0x2dd2bf),_0x5cdfa4;}):[];}static[a0_0x5ddfef(0xf5)](_0x241adb,_0x3deb9c){const _0x1c8858=a0_0x5ddfef;let _0x508bdb=CommonButtonStyles[_0x3deb9c]||{'icon':_0x3deb9c,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}},_0x115135=_0x1c8858(0x18a)+_0x241adb+_0x1c8858(0x10c)+(_0x508bdb['icon']?_0x508bdb[_0x1c8858(0x17d)]:'')+_0x1c8858(0x84)+(_0x508bdb[_0x1c8858(0x99)]['raised']?'raised':'')+_0x1c8858(0x1b0)+(_0x508bdb['emphasis'][_0x1c8858(0x18e)]?_0x1c8858(0x18e):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x508bdb[_0x1c8858(0x99)][_0x1c8858(0x14b)]?_0x1c8858(0x14b):'')+_0x1c8858(0x1b0)+(_0x508bdb[_0x1c8858(0x99)][_0x1c8858(0x135)]?_0x1c8858(0x135):'')+'\x20>\x0a\x20\x20\x20\x20</mwc-button>\x0a\x20\x20\x20\x20';return UiUtil[_0x1c8858(0xb1)](_0x115135);}static[a0_0x5ddfef(0x17c)](_0x5f4f74,_0x5d9e7f,_0x5ed658,_0x17dd51){const _0x122fcf=a0_0x5ddfef;if(_0x122fcf(0x1a2)==_0x5d9e7f){if(_0x5f4f74[_0x5ed658])return _0x5f4f74[_0x5ed658][_0x122fcf(0xa7)](_0x5f4f74);}else{if(_0x122fcf(0x166)==_0x5d9e7f)return()=>MetaUiUtil['customButtonHandler'](_0x5f4f74,_0x17dd51);}return()=>{const _0x35d3da=_0x122fcf;UiUtil[_0x35d3da(0x12c)](_0x35d3da(0x98),_0x35d3da(0x153),'info',_0x35d3da(0xa9));};}static async[a0_0x5ddfef(0x1cb)](_0x268d2b,_0x3dc79f,_0x4de8fe){const _0x1e25fe=a0_0x5ddfef;let _0x48bb05=ValueUtil[_0x1e25fe(0x86)](_0x3dc79f,_0x1e25fe(0x157)),_0xf75f56=ValueUtil[_0x1e25fe(0x86)](_0x48bb05,_0x1e25fe(0x134));if(_0x1e25fe(0x159)===_0xf75f56)_0x48bb05['tagname']=_0x1e25fe(0x172),_0x48bb05[_0x1e25fe(0xcf)]=_0x1e25fe(0xdc),_0x48bb05[_0x1e25fe(0x182)]='id',await MetaUiUtil[_0x1e25fe(0xad)](_0x268d2b,_0x48bb05,_0x4de8fe);else{if(_0x1e25fe(0x7a)===_0xf75f56)MetaUiUtil[_0x1e25fe(0x90)](_0x268d2b,_0x48bb05,_0x4de8fe);else{if(_0x1e25fe(0x12e)===_0xf75f56){let _0x13893a;_0x48bb05[_0x1e25fe(0x13a)]?(_0x13893a={},Object[_0x1e25fe(0x97)](_0x4de8fe)[_0x1e25fe(0x16c)](_0x2285ee=>Object[_0x1e25fe(0x97)](_0x48bb05[_0x1e25fe(0x13a)])[_0x1e25fe(0x1ac)](_0x2285ee))[_0x1e25fe(0x6f)](_0x19b895=>{const _0x3f0f23=_0x1e25fe;Object[_0x3f0f23(0x97)](_0x48bb05[_0x3f0f23(0x13a)])[_0x3f0f23(0x1ac)](_0x19b895)&&(_0x3f0f23(0xfc)==typeof _0x4de8fe[_0x19b895]?_0x13893a[_0x48bb05[_0x3f0f23(0x13a)][_0x19b895]]=_0x4de8fe[_0x19b895]:_0x13893a[_0x48bb05[_0x3f0f23(0x13a)][_0x19b895]]={'id':_0x4de8fe[_0x19b895]['id']});})):_0x13893a=_0x4de8fe,UiUtil[_0x1e25fe(0x1cc)](_0x48bb05['url'],[_0x13893a]);}else _0x1e25fe(0x155)===_0xf75f56?await MetaUiUtil[_0x1e25fe(0xad)](_0x268d2b,_0x48bb05,_0x4de8fe):_0x1e25fe(0xca)===_0xf75f56?await MetaUiUtil['commonButtonCallScenario'](_0x268d2b,_0x48bb05,_0x4de8fe):_0x1e25fe(0x1a5)===_0xf75f56&&await MetaUiUtil[_0x1e25fe(0x185)](_0x268d2b,_0x48bb05,_0x4de8fe);}}}static async[a0_0x5ddfef(0xdd)](_0x3d3b9c,_0x340338){const _0x4ffd46=a0_0x5ddfef;if(ValueUtil[_0x4ffd46(0xbb)](_0x340338))return;let _0x3bcf29=_0x3d3b9c['grist'],_0x48a398=_0x3d3b9c[_0x4ffd46(0x9a)],_0x579540=ValueUtil[_0x4ffd46(0x86)](_0x340338,_0x4ffd46(0x134)),_0x480077=ValueUtil[_0x4ffd46(0x86)](_0x340338,_0x4ffd46(0xc6)),_0x52c94b=_0x480077[_0x4ffd46(0x16c)](_0x4f9239=>_0x4f9239[_0x4ffd46(0x82)](_0x4ffd46(0x189)));if(ValueUtil[_0x4ffd46(0x127)](_0x52c94b)){if(!_0x3bcf29)return void UiUtil['showAlertPopup']('title.info',_0x4ffd46(0xac),_0x4ffd46(0xf4),_0x4ffd46(0xa9));if(0x0==(_0x3bcf29[_0x4ffd46(0x1d6)]?_0x3bcf29[_0x4ffd46(0x1d6)][_0x4ffd46(0xc7)]:[])[_0x4ffd46(0x138)])return void UiUtil[_0x4ffd46(0x12c)](_0x4ffd46(0xdb),_0x4ffd46(0x14f),_0x4ffd46(0xf4),_0x4ffd46(0xa9));if(_0x480077[_0x4ffd46(0x1ac)](_0x4ffd46(0x132))||_0x480077[_0x4ffd46(0x1ac)](_0x4ffd46(0x8c))){let _0xdc2044=_0x3bcf29[_0x4ffd46(0x106)];if(ValueUtil['isEmpty'](_0xdc2044))return void UiUtil[_0x4ffd46(0x12c)](_0x4ffd46(0x167),_0x4ffd46(0x15a),_0x4ffd46(0xf4),_0x4ffd46(0xa9));if(_0x480077['includes'](_0x4ffd46(0x132))&&_0xdc2044[_0x4ffd46(0x138)]>0x1)return void UiUtil[_0x4ffd46(0x12c)](_0x4ffd46(0xdb),'text.please_select_only_one','info',_0x4ffd46(0xa9));}}let _0x1a5f0a={};if(_0x480077[_0x4ffd46(0x1ac)](_0x4ffd46(0x16c))){if(!_0x48a398)return void UiUtil[_0x4ffd46(0x12c)]('title.info',_0x4ffd46(0x186),'info',_0x4ffd46(0xa9));let _0x25e199=_0x48a398?await _0x48a398['getQueryFilters']():[];_0x1a5f0a[_0x4ffd46(0x16c)]=_0x25e199;}if(_0x480077[_0x4ffd46(0x1ac)](_0x4ffd46(0x1ce)))_0x1a5f0a['grist']=_0x3bcf29['data'][_0x4ffd46(0xc7)];else{if(_0x480077[_0x4ffd46(0x1ac)](_0x4ffd46(0x132)))_0x1a5f0a['grist']=_0x3bcf29['selected'][0x0];else{if(_0x480077['includes'](_0x4ffd46(0x8c)))_0x1a5f0a['grist']=_0x3bcf29['selected'];else{if(_0x480077['includes'](_0x4ffd46(0x175))&&(_0x1a5f0a[_0x4ffd46(0x189)]=ServiceUtil['patchesForUpdateMultiple'](_0x3bcf29),!_0x1a5f0a[_0x4ffd46(0x189)]))return;}}}if(_0x4ffd46(0x12e)===_0x579540){let _0x57cc66,_0x801e22=Array[_0x4ffd46(0x6a)](_0x1a5f0a[_0x4ffd46(0x189)])?_0x1a5f0a['grist']:[_0x1a5f0a[_0x4ffd46(0x189)]];_0x57cc66=_0x340338[_0x4ffd46(0x13a)]?_0x801e22['map'](_0x2b1695=>{const _0x36c9c8=_0x4ffd46;let _0x5ea409={};return Object['keys'](_0x2b1695)['filter'](_0x243b8d=>Object[_0x36c9c8(0x97)](_0x340338[_0x36c9c8(0x13a)])[_0x36c9c8(0x1ac)](_0x243b8d))['map'](_0x26e0bc=>{const _0x38269c=_0x36c9c8;Object[_0x38269c(0x97)](_0x340338[_0x38269c(0x13a)])['includes'](_0x26e0bc)&&(_0x38269c(0xfc)==typeof _0x2b1695[_0x26e0bc]?_0x5ea409[_0x340338[_0x38269c(0x13a)][_0x26e0bc]]=_0x2b1695[_0x26e0bc]:_0x5ea409[_0x340338[_0x38269c(0x13a)][_0x26e0bc]]={'id':_0x2b1695[_0x26e0bc]['id']});}),_0x5ea409;}):_0x801e22,UiUtil[_0x4ffd46(0x1cc)](_0x340338[_0x4ffd46(0x16d)],_0x57cc66);}else{if(_0x4ffd46(0x155)===_0x579540){let _0x42428c={..._0x1a5f0a['grist']?_0x1a5f0a[_0x4ffd46(0x189)]:{},..._0x1a5f0a['filter']?_0x1a5f0a['filter']:{}};await MetaUiUtil[_0x4ffd46(0xad)](_0x3d3b9c,_0x340338,_0x42428c);}else _0x4ffd46(0xca)===_0x579540&&await MetaUiUtil[_0x4ffd46(0x67)](_0x3d3b9c,_0x340338,_0x1a5f0a);}}static[a0_0x5ddfef(0x90)](_0x794269,_0x33cee1,_0x17daf8){const _0x5b4b69=a0_0x5ddfef;let _0x3faa29=_0x33cee1[_0x5b4b69(0x1c3)],_0x2e6c48={},_0x1cdc8a=_0x794269[_0x5b4b69(0x13e)][_0x5b4b69(0xd7)](),_0xd1a4e7=_0x794269;_0x2e6c48=_0x1cdc8a[_0x5b4b69(0x82)](_0x5b4b69(0x11f))||_0x1cdc8a['startsWith']('meta-master-detail-')?_0x3faa29['detail']?{..._0x3faa29}:{'detail':{..._0x3faa29}}:{..._0x3faa29},Object[_0x5b4b69(0x97)](_0x2e6c48)['forEach'](_0x80fad6=>{const _0x20bb24=_0x5b4b69;if(_0x20bb24(0xb6)==_0x80fad6?_0xd1a4e7=_0x794269[_0x20bb24(0x14c)][_0x20bb24(0xd2)]:_0x20bb24(0x161)==_0x80fad6?_0xd1a4e7=_0x794269['rootElement']?_0x794269[_0x20bb24(0x14c)][_0x20bb24(0x19f)]:_0x794269['detailElement']:_0x20bb24(0x154)==_0x80fad6&&(_0xd1a4e7=_0x794269),_0xd1a4e7){if(_0xd1a4e7[_0x20bb24(0x13e)][_0x20bb24(0xd7)]()[_0x20bb24(0x82)](_0x20bb24(0x69)))Object[_0x20bb24(0x97)](_0x2e6c48[_0x80fad6])[_0x20bb24(0x93)](_0x1b1713=>{const _0x2fe90f=_0x20bb24;let _0xab6038=_0xd1a4e7['shadowRoot'][_0x2fe90f(0x89)]('#'+_0x1b1713);_0x17daf8['id']&&_0xab6038[_0x2fe90f(0x144)](_0x17daf8['id']);let _0x526c06=_0x2e6c48[_0x80fad6][_0x1b1713];Object['keys'](_0x526c06)[_0x2fe90f(0x93)](_0x2ad9c2=>{let _0x1e3716=_0x526c06[_0x2ad9c2],_0x478d1e='*'===_0x1e3716?_0x17daf8:_0x17daf8[_0x1e3716];_0xab6038[_0x2ad9c2]=_0x478d1e;});});else{let _0x2bada8=_0xd1a4e7;_0x17daf8['id']&&_0x2bada8[_0x20bb24(0x144)](_0x17daf8['id']);let _0x4bde56=_0x2e6c48[_0x80fad6];Object['keys'](_0x4bde56)[_0x20bb24(0x93)](_0x3e1504=>{let _0x550fa9=_0x4bde56[_0x3e1504],_0x31f85a='*'===_0x550fa9?_0x17daf8:_0x17daf8[_0x550fa9];_0x2bada8[_0x3e1504]=_0x31f85a;});}}});}static async['commonButtonOpenPopup'](_0x51ced3,_0x3050d1,_0x570bde){const _0x1e2792=a0_0x5ddfef;let _0x270f22=TermsUtil[_0x1e2792(0x19b)](_0x3050d1['title']);ValueUtil[_0x1e2792(0x127)](_0x3050d1['title_detail'])&&(_0x270f22=_0x270f22+'('+ValueUtil[_0x1e2792(0x86)](_0x570bde,..._0x3050d1['title_detail'][_0x1e2792(0x13b)]('.'))+')');let _0x48a021=_0x3050d1['after']&&_0x1e2792(0xfc)==typeof _0x3050d1[_0x1e2792(0x1c5)]&&_0x1e2792(0x1c6)===_0x3050d1[_0x1e2792(0x1c5)]&&_0x51ced3&&_0x51ced3[_0x1e2792(0x1c6)]?_0x51ced3[_0x1e2792(0x1c6)][_0x1e2792(0xa7)](_0x51ced3):void 0x0;UiUtil['openDynamicPopup'](_0x270f22,_0x3050d1,_0x570bde,_0x48a021);}static async['commonButtonCallScenario'](_0x122453,_0x3f3134,_0x2b252c){const _0x1857f1=a0_0x5ddfef;let _0x5ae539=await ServiceUtil['callScenario'](_0x1857f1(0xa2),_0x3f3134[_0x1857f1(0x1d8)],_0x2b252c);if(!_0x5ae539['errors']&&!ValueUtil['isEmpty'](_0x3f3134[_0x1857f1(0x1c5)])&&_0x3f3134[_0x1857f1(0x1c5)]){if(_0x1857f1(0x1c6)!==_0x3f3134[_0x1857f1(0x1c5)]){if('object'==typeof _0x3f3134[_0x1857f1(0x1c5)]){let _0xaf4b05=_0x3f3134[_0x1857f1(0x1c5)],_0x5bec35=ValueUtil['getParams'](_0x5ae539[_0x1857f1(0x1d6)][_0x1857f1(0xb3)][_0x1857f1(0x1d6)],..._0xaf4b05[_0x1857f1(0x9f)][_0x1857f1(0x13b)]('.'));if(0x0==Array[_0x1857f1(0x6a)](_0x5bec35)&&(_0x5bec35=[_0x5bec35]),_0x1857f1(0x159)===_0xaf4b05['type'])_0xaf4b05[_0x1857f1(0x137)]=_0x1857f1(0x172),_0xaf4b05[_0x1857f1(0xcf)]=_0x1857f1(0xdc),_0xaf4b05['parent_field']='id',_0x5bec35=_0x5bec35[0x0],await MetaUiUtil[_0x1857f1(0xad)](_0x122453,_0xaf4b05,_0x5bec35);else{if('page'===_0xaf4b05['type']){let _0x171365,_0x1bfb27=_0x5bec35;_0x171365=_0xaf4b05[_0x1857f1(0x13a)]?_0x1bfb27['map'](_0x1965de=>{const _0x2d2203=_0x1857f1;let _0x1a3617={};return Object['keys'](_0x1965de)['filter'](_0x5b8e8d=>Object[_0x2d2203(0x97)](_0xaf4b05[_0x2d2203(0x13a)])['includes'](_0x5b8e8d))['map'](_0x427865=>{const _0x36e01e=_0x2d2203;Object['keys'](_0xaf4b05[_0x36e01e(0x13a)])['includes'](_0x427865)&&('string'==typeof _0x1965de[_0x427865]?_0x1a3617[_0xaf4b05[_0x36e01e(0x13a)][_0x427865]]=_0x1965de[_0x427865]:_0x1a3617[_0xaf4b05[_0x36e01e(0x13a)][_0x427865]]={'id':_0x1965de[_0x427865]['id']});}),_0x1a3617;}):_0x1bfb27,UiUtil[_0x1857f1(0x1cc)](_0xaf4b05[_0x1857f1(0x16d)],_0x171365);}else _0x1857f1(0x7a)===_0xaf4b05[_0x1857f1(0x134)]?(_0x5bec35=_0x5bec35[0x0],MetaUiUtil['gristButtonPassParam'](_0x122453,_0xaf4b05,_0x5bec35)):'popup'===_0xaf4b05[_0x1857f1(0x134)]?(_0x5bec35=_0x5bec35[0x0],await MetaUiUtil[_0x1857f1(0xad)](_0x122453,_0xaf4b05,_0x5bec35)):'value_reference'===_0xaf4b05[_0x1857f1(0x134)]&&(_0x5bec35=_0x5bec35[0x0],await MetaUiUtil[_0x1857f1(0x185)](_0x122453,_0xaf4b05,_0x5bec35));}}}else _0x122453[_0x1857f1(0x1c6)]();}}static async['gristButtonValueReference'](_0x2d80a0,_0x24ace3,_0x1424d1){const _0x27e544=a0_0x5ddfef;for(let _0x1b09b8=0x0;_0x1b09b8<_0x24ace3[_0x27e544(0x101)]['length'];_0x1b09b8++){let _0x339195=_0x24ace3['relation'][_0x1b09b8];!0x0===ValueUtil[_0x27e544(0xe4)](_0x339195,_0x1424d1,Object[_0x27e544(0x97)](_0x339195)[_0x27e544(0x16c)](_0x164ebf=>_0x27e544(0x157)!=_0x164ebf))&&await MetaUiUtil[_0x27e544(0x1cb)](_0x2d80a0,_0x339195,_0x1424d1);}}static[a0_0x5ddfef(0x17b)](_0x478b28,_0x5113bb){return{'type':_0x478b28,'name':_0x5113bb,'sortable':!0x1,'hidden':!0x0};}static[a0_0x5ddfef(0xc3)](_0x321f6f,_0x5562cc,_0x166b75,_0x56e52a,_0x1423b9,_0x22de6f){const _0x31ce8f=a0_0x5ddfef;let _0x4e31bf=TermsUtil['tLabel'](_0x5562cc);return{'type':_0x321f6f,'name':_0x5562cc,'header':_0x4e31bf,'record':{'align':_0x166b75,'editable':_0x56e52a},'sortable':_0x1423b9,'width':_0x22de6f,'imex':{'width':Math[_0x31ce8f(0x1d2)](_0x22de6f/0x6),'header':_0x4e31bf,'type':_0x321f6f,'key':_0x5562cc}};}static[a0_0x5ddfef(0xf0)](_0x459627,_0x4a5427,_0x4497aa,_0x4ac180,_0x2b8eb8,_0x23886c,_0x2af7e0){const _0x5bc277=a0_0x5ddfef;let _0x24d7d1=TermsUtil[_0x5bc277(0x8d)](_0x4497aa);return{'type':_0x459627,'name':_0x4a5427,'header':_0x24d7d1,'record':{'align':_0x4ac180,'editable':_0x2b8eb8},'sortable':_0x23886c,'width':_0x2af7e0,'imex':{'width':Math[_0x5bc277(0x1d2)](_0x2af7e0/0x6),'header':_0x24d7d1,'type':_0x459627,'key':_0x4a5427}};}static[a0_0x5ddfef(0x13c)](_0x1b6f08,_0x5d534d,_0x189d0f,_0x7d8fd2,_0xc77485,_0x313c3e,_0x474ea8,_0x3c7d59){const _0x30c82f=a0_0x5ddfef;let _0x4417e6=TermsUtil[_0x30c82f(0x8d)](_0x189d0f);return{'type':_0x1b6f08,'name':_0x5d534d,'header':_0x4417e6,'record':{'align':_0x7d8fd2,'editable':_0xc77485,'mandatory':_0x474ea8},'sortable':_0x313c3e,'width':_0x3c7d59,'imex':{'width':Math[_0x30c82f(0x1d2)](_0x3c7d59/0x6),'header':_0x4417e6,'type':_0x1b6f08,'key':_0x5d534d}};}static[a0_0x5ddfef(0x197)](_0xa90b1c,_0x5724fd,_0x4fa63b,_0x28845d,_0x30f6c,_0x2b0e79,_0x3d63cd){const _0x2aefc0=a0_0x5ddfef;let _0x277aa5=TermsUtil[_0x2aefc0(0x8d)](_0x5724fd);return{'type':_0x2aefc0(0x1c2),'name':_0xa90b1c,'header':_0x277aa5,'record':{'align':_0x4fa63b,'editable':!0x0,'mandatory':_0x2b0e79,'options':_0x3d63cd},'sortable':_0x28845d,'width':_0x30f6c,'imex':{'width':Math[_0x2aefc0(0x1d2)](_0x30f6c/0x6),'header':_0x277aa5,'type':_0x2aefc0(0xfc),'key':_0xa90b1c}};}static async[a0_0x5ddfef(0x145)](_0x4cb5cb,_0x8d319b,_0x474963,_0x5d4127,_0x5a8343,_0x409a6e,_0x455155){const _0x498a6d=a0_0x5ddfef;let _0x5a273a=await ServiceUtil[_0x498a6d(0x70)](_0x455155);return MetaUiUtil['getGristSelectorColumnConfig'](_0x4cb5cb,_0x8d319b,_0x474963,_0x5d4127,_0x5a8343,_0x409a6e,_0x5a273a);}static[a0_0x5ddfef(0x190)](_0x236462,_0x5c4747,_0x20113e,_0x328d9c,_0x309a93){const _0x57f613=a0_0x5ddfef;let _0x4dd71d=TermsUtil[_0x57f613(0x8d)](_0x20113e),_0x192d35={'name':_0x236462,'type':_0x5c4747,'label':_0x4dd71d,'operator':_0x328d9c,'imex':{'width':0x10,'header':_0x4dd71d,'type':_0x5c4747,'key':_0x236462}};return _0x309a93&&(_0x192d35[_0x57f613(0x15e)]=_0x309a93),_0x192d35;}static async[a0_0x5ddfef(0x1c8)](_0x230749,_0x523c96,_0x5e865b,_0x433f60,_0x52f8df){const _0x350304=a0_0x5ddfef;let _0x2ff199=await ServiceUtil[_0x350304(0x70)](_0x52f8df);return MetaUiUtil[_0x350304(0x190)](_0x230749,_0x523c96,_0x5e865b,_0x433f60,_0x2ff199);}static['getCustomButtonContainerStyles'](){return[css`
|
|
6
6
|
.button-container {
|
|
7
7
|
padding: var(--button-container-padding);
|
|
8
8
|
margin: var(--button-container-margin);
|
|
@@ -21,11 +21,11 @@ const a0_0x598c66=a0_0x1ac4;(function(_0x31d3d0,_0x2b03d8){const _0x93e81d=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_0x5ddfef(0x7e)](){return[css`
|
|
25
25
|
:host {
|
|
26
26
|
--grid-record-emphasized-background-color: red;
|
|
27
27
|
--grid-record-emphasized-color: yellow;
|
|
28
|
-
}`];}static[
|
|
28
|
+
}`];}static[a0_0x5ddfef(0x160)](){return[css`
|
|
29
29
|
#grist-personal{
|
|
30
30
|
padding:5px 6px 0px 0px;
|
|
31
31
|
margin:0px;
|
|
@@ -49,7 +49,7 @@ const a0_0x598c66=a0_0x1ac4;(function(_0x31d3d0,_0x2b03d8){const _0x93e81d=a0_0x
|
|
|
49
49
|
#grist-personal > mwc-icon:hover{
|
|
50
50
|
background-color: var(--primary-color);
|
|
51
51
|
}
|
|
52
|
-
`];}static[
|
|
52
|
+
`];}static[a0_0x5ddfef(0x79)](){const _0x44852c=a0_0x5ddfef;return[ScrollbarStyles,CommonGristStyles,css`
|
|
53
53
|
:host {
|
|
54
54
|
display: flex;
|
|
55
55
|
flex-direction: column;
|
|
@@ -59,7 +59,7 @@ const a0_0x598c66=a0_0x1ac4;(function(_0x31d3d0,_0x2b03d8){const _0x93e81d=a0_0x
|
|
|
59
59
|
ox-grist {
|
|
60
60
|
overflow-y: auto;
|
|
61
61
|
flex: 1;
|
|
62
|
-
}`,...MetaUiUtil[
|
|
62
|
+
}`,...MetaUiUtil[_0x44852c(0x7e)](),...MetaUiUtil[_0x44852c(0xa4)](),...MetaUiUtil[_0x44852c(0x160)]()];}static[a0_0x5ddfef(0x122)](){const _0x37f668=a0_0x5ddfef;return[ScrollbarStyles,CommonGristStyles,css`
|
|
63
63
|
:host {
|
|
64
64
|
display: flex;
|
|
65
65
|
flex-direction: column;
|
|
@@ -106,7 +106,7 @@ const a0_0x598c66=a0_0x1ac4;(function(_0x31d3d0,_0x2b03d8){const _0x93e81d=a0_0x
|
|
|
106
106
|
ox-grist {
|
|
107
107
|
overflow-y: auto;
|
|
108
108
|
flex: 1;
|
|
109
|
-
}`,...MetaUiUtil[
|
|
109
|
+
}`,...MetaUiUtil['getGristEmphasizedStyles'](),...MetaUiUtil[_0x37f668(0xa4)](),...MetaUiUtil[_0x37f668(0x160)]()];}static[a0_0x5ddfef(0x184)](){const _0x269580=a0_0x5ddfef;return[ScrollbarStyles,CommonGristStyles,css`
|
|
110
110
|
:host {
|
|
111
111
|
display: flex;
|
|
112
112
|
flex-direction: column;
|
|
@@ -153,7 +153,7 @@ const a0_0x598c66=a0_0x1ac4;(function(_0x31d3d0,_0x2b03d8){const _0x93e81d=a0_0x
|
|
|
153
153
|
ox-grist {
|
|
154
154
|
overflow-y: auto;
|
|
155
155
|
flex: 1;
|
|
156
|
-
}`,...MetaUiUtil[
|
|
156
|
+
}`,...MetaUiUtil['getGristEmphasizedStyles'](),...MetaUiUtil[_0x269580(0xa4)](),...MetaUiUtil[_0x269580(0x160)]()];}static[a0_0x5ddfef(0x199)](){const _0x5b2942=a0_0x5ddfef;return[ScrollbarStyles,CommonGristStyles,css`
|
|
157
157
|
:host {
|
|
158
158
|
display: flex;
|
|
159
159
|
flex-direction: column;
|
|
@@ -200,7 +200,7 @@ const a0_0x598c66=a0_0x1ac4;(function(_0x31d3d0,_0x2b03d8){const _0x93e81d=a0_0x
|
|
|
200
200
|
ox-grist {
|
|
201
201
|
overflow-y: auto;
|
|
202
202
|
flex: 1;
|
|
203
|
-
}`,...MetaUiUtil[
|
|
203
|
+
}`,...MetaUiUtil[_0x5b2942(0x7e)](),...MetaUiUtil[_0x5b2942(0xa4)](),...MetaUiUtil[_0x5b2942(0x160)]()];}static[a0_0x5ddfef(0x111)](){const _0x20a500=a0_0x5ddfef;return[ScrollbarStyles,CommonGristStyles,css`
|
|
204
204
|
:host {
|
|
205
205
|
display: flex;
|
|
206
206
|
flex-direction: column;
|
|
@@ -215,7 +215,7 @@ const a0_0x598c66=a0_0x1ac4;(function(_0x31d3d0,_0x2b03d8){const _0x93e81d=a0_0x
|
|
|
215
215
|
ox-grist {
|
|
216
216
|
overflow-y: auto;
|
|
217
217
|
flex: 1;
|
|
218
|
-
}`,...MetaUiUtil[
|
|
218
|
+
}`,...MetaUiUtil['getGristEmphasizedStyles'](),...MetaUiUtil['getCustomButtonContainerStyles'](),...MetaUiUtil[_0x20a500(0x160)]()];}static[a0_0x5ddfef(0x129)](_0x283083){const _0x5f5cf7=a0_0x5ddfef;return'top-down'==_0x283083?MetaUiUtil[_0x5f5cf7(0xe3)]():MetaUiUtil[_0x5f5cf7(0x80)]();}static['getMasterDetailTopDownGristStyle'](){return[CommonGristStyles,ScrollbarStyles,css`
|
|
219
219
|
:host {
|
|
220
220
|
display: flex;
|
|
221
221
|
flex-direction: column;
|
|
@@ -282,7 +282,7 @@ const a0_0x598c66=a0_0x1ac4;(function(_0x31d3d0,_0x2b03d8){const _0x93e81d=a0_0x
|
|
|
282
282
|
margin-left:7px;
|
|
283
283
|
margin-top:7px;
|
|
284
284
|
}
|
|
285
|
-
`];}static[
|
|
285
|
+
`];}static[a0_0x5ddfef(0x80)](){return[CommonGristStyles,ScrollbarStyles,css`
|
|
286
286
|
:host {
|
|
287
287
|
display: flex;
|
|
288
288
|
flex-direction: column;
|
|
@@ -349,7 +349,7 @@ const a0_0x598c66=a0_0x1ac4;(function(_0x31d3d0,_0x2b03d8){const _0x93e81d=a0_0x
|
|
|
349
349
|
margin-left:7px;
|
|
350
350
|
margin-top:7px;
|
|
351
351
|
}
|
|
352
|
-
`];}static[
|
|
352
|
+
`];}static[a0_0x5ddfef(0x1c1)](){return[ScrollbarStyles,css`
|
|
353
353
|
:host {
|
|
354
354
|
display: flex;
|
|
355
355
|
flex: 1;
|
|
@@ -438,7 +438,7 @@ const a0_0x598c66=a0_0x1ac4;(function(_0x31d3d0,_0x2b03d8){const _0x93e81d=a0_0x
|
|
|
438
438
|
border-bottom: var(--record-view-edit-border-bottom);
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
-
`,...MetaUiUtil[
|
|
441
|
+
`,...MetaUiUtil['getCustomButtonContainerStyles']()];}static[a0_0x5ddfef(0x87)](){return[css`
|
|
442
442
|
:host {
|
|
443
443
|
display: flex;
|
|
444
444
|
flex: 1;
|
|
@@ -493,204 +493,204 @@ const a0_0x598c66=a0_0x1ac4;(function(_0x31d3d0,_0x2b03d8){const _0x93e81d=a0_0x
|
|
|
493
493
|
overflow-x: overlay;
|
|
494
494
|
background-color: var(--main-section-background-color);
|
|
495
495
|
}
|
|
496
|
-
`];}static[
|
|
496
|
+
`];}static[a0_0x5ddfef(0xee)](_0x3c0a85,_0x4772bc){const _0x29b551=a0_0x5ddfef;return!!(_0x3c0a85?_0x3c0a85[_0x29b551(0x131)](_0x149dbc=>_0x149dbc['name']==_0x4772bc):null);}static[a0_0x5ddfef(0xc8)](_0xf847cb,_0x13f436){const _0x77c220=a0_0x5ddfef;return!!(_0xf847cb&&_0xf847cb[_0x77c220(0x192)]?_0xf847cb[_0x77c220(0x192)][_0x77c220(0x131)](_0x17c1d1=>_0x17c1d1[_0x77c220(0x1d8)]==_0x13f436):null);}static[a0_0x5ddfef(0x104)](_0x3ff336){const _0x2e3d18=a0_0x5ddfef;let _0x5caa63='';return _0x3ff336[_0x2e3d18(0x16c)](_0x34c0b5=>'gutter'!=_0x34c0b5[_0x2e3d18(0x134)])[_0x2e3d18(0x93)](_0x2ea45f=>{const _0x32b42e=_0x2e3d18;_0x5caa63+='\x0a',_0x5caa63+=[_0x32b42e(0x1a6),_0x32b42e(0xc4),_0x32b42e(0x149)][_0x32b42e(0x1ac)](_0x2ea45f[_0x32b42e(0x134)])?_0x2ea45f[_0x32b42e(0x1d8)]+'\x0a{'+MetaUiUtil[_0x32b42e(0xb9)](_0x2ea45f)+'}':_0x32b42e(0x162)==_0x2ea45f[_0x32b42e(0x134)]?_0x2ea45f[_0x32b42e(0x1d8)]+_0x32b42e(0x9c):_0x2ea45f[_0x32b42e(0x1d8)];}),_0x5caa63;}static[a0_0x5ddfef(0xb9)](_0x50c56a){const _0x235fca=a0_0x5ddfef;let _0x21ba2e='';return ValueUtil[_0x235fca(0x127)](_0x50c56a[_0x235fca(0x126)])&&ValueUtil['isNotEmpty'](_0x50c56a[_0x235fca(0x126)][_0x235fca(0x15e)])&&ValueUtil[_0x235fca(0x127)](_0x50c56a[_0x235fca(0x126)][_0x235fca(0x15e)][_0x235fca(0x1c2)])&&_0x50c56a[_0x235fca(0x126)][_0x235fca(0x15e)][_0x235fca(0x1c2)][_0x235fca(0x93)](_0x49e79d=>{const _0x240523=_0x235fca;_0x49e79d[_0x240523(0x1d8)]&&''!==_0x49e79d['name']&&([_0x240523(0x1a6),_0x240523(0xc4),'resource-object'][_0x240523(0x1ac)](_0x49e79d[_0x240523(0x134)])?_0x21ba2e+='\x0a'+_0x49e79d[_0x240523(0x1d8)]+_0x240523(0x165)+MetaUiUtil[_0x240523(0xb9)](_0x49e79d)+_0x240523(0xae):_0x21ba2e+='\x0a'+_0x49e79d[_0x240523(0x1d8)]);}),''==_0x21ba2e&&(_0x21ba2e+=_0x235fca(0x113)),_0x21ba2e;}static[a0_0x5ddfef(0x158)](_0x42706b){const _0x3e2214=a0_0x5ddfef;let _0x2ba062=_0x42706b[_0x3e2214(0xef)];if(_0x2ba062){let _0x32263a=_0x42706b[_0x3e2214(0x146)]?_0x42706b[_0x3e2214(0x146)]:_0x3e2214(0x7b),_0x15c7d1=_0x42706b['gridMode'];return html`
|
|
497
497
|
<ox-grist
|
|
498
|
-
id=${
|
|
499
|
-
.config=${
|
|
500
|
-
.mode=${
|
|
498
|
+
id=${_0x32263a}
|
|
499
|
+
.config=${_0x2ba062}
|
|
500
|
+
.mode=${_0x15c7d1}
|
|
501
501
|
auto-fetch
|
|
502
|
-
.fetchHandler=${
|
|
503
|
-
${MetaUiUtil[
|
|
502
|
+
.fetchHandler=${_0x42706b[_0x3e2214(0x1aa)][_0x3e2214(0xa7)](_0x42706b)}>
|
|
503
|
+
${MetaUiUtil[_0x3e2214(0x163)](_0x42706b)}
|
|
504
504
|
</ox-grist>
|
|
505
|
-
`;}return html``;}static[
|
|
505
|
+
`;}return html``;}static[a0_0x5ddfef(0x179)](_0x3aba2b){const _0x3c2faa=a0_0x5ddfef;if(!_0x3aba2b)return html``;if(!_0x3aba2b[_0x3c2faa(0x12d)])return html``;let _0x1a1791=_0x3aba2b[_0x3c2faa(0x12d)],_0x183eca=_0x3aba2b['record']||{},_0x17fbab=_0x1a1791[_0x3c2faa(0x16c)](_0x45211b=>0x0==_0x45211b[_0x3c2faa(0xe0)]);return ValueUtil['isEmpty'](_0x3aba2b['formRenderConfig'])?MetaUiUtil['getBasicFormHtmlNoOption'](_0x3aba2b,_0x17fbab,_0x183eca):MetaUiUtil[_0x3c2faa(0xbd)](_0x3aba2b,_0x17fbab,_0x183eca);}static[a0_0x5ddfef(0xbd)](_0x4a0ed8,_0x2e5eaf,_0x3531ab){const _0x565b17=a0_0x5ddfef;let _0x31441f=_0x4a0ed8[_0x565b17(0x11e)];return html`
|
|
506
506
|
<div class="root_container">
|
|
507
|
-
${
|
|
507
|
+
${_0x31441f['map'](_0x368f22=>{const _0x365cf5=_0x565b17;let _0x386672=[];_0x368f22[_0x365cf5(0x114)][_0x365cf5(0x93)](_0x44adbb=>{const _0x3ae2f3=_0x365cf5;let _0x5e4239=_0x2e5eaf[_0x3ae2f3(0x16c)](_0x4243b8=>_0x44adbb==_0x4243b8[_0x3ae2f3(0x1d8)])||[];_0x5e4239['length']>0x0&&_0x386672[_0x3ae2f3(0x130)](_0x5e4239[0x0]);});let _0x390ee8='height:auto;grid-template-columns:';for(let _0x3ea0e8=0x0;_0x3ea0e8<_0x368f22['column'];_0x3ea0e8++)_0x390ee8+=_0x365cf5(0x124);return _0x390ee8+=';',html`
|
|
508
508
|
<h2>
|
|
509
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
509
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x365cf5(0x19b)](_0x368f22[_0x365cf5(0x1c9)])}
|
|
510
510
|
</h2>
|
|
511
|
-
<div id="content_container" class="content_container" style="${
|
|
512
|
-
${
|
|
513
|
-
<label ?editable=${
|
|
514
|
-
${
|
|
511
|
+
<div id="content_container" class="content_container" style="${_0x390ee8}">
|
|
512
|
+
${_0x386672[_0x365cf5(0x6f)](_0x4484cd=>{const _0x2482df=_0x365cf5;let {editable:_0x5081e9=!0x1,mandatory:_0x45c1ee=!0x1}=_0x4484cd[_0x2482df(0x126)],_0x53e2bf=_0x3531ab[_0x2482df(0xa3)]||{};return html`
|
|
513
|
+
<label ?editable=${_0x5081e9}><span>${_0x45c1ee?'*':''}${_0x4484cd['header_txt']}</span>
|
|
514
|
+
${_0x5081e9?html`<mwc-icon>edit</mwc-icon>`:''}
|
|
515
515
|
</label>
|
|
516
516
|
<ox-grid-field
|
|
517
517
|
.rowIndex=${0x0}
|
|
518
|
-
.column=${
|
|
519
|
-
.record=${
|
|
520
|
-
.value=${
|
|
521
|
-
?dirty=${!!
|
|
518
|
+
.column=${_0x4484cd}
|
|
519
|
+
.record=${_0x3531ab}
|
|
520
|
+
.value=${_0x3531ab[_0x4484cd[_0x2482df(0x1d8)]]}
|
|
521
|
+
?dirty=${!!_0x53e2bf[_0x4484cd[_0x2482df(0x1d8)]]}
|
|
522
522
|
></ox-grid-field>
|
|
523
523
|
`;})}
|
|
524
524
|
</div>
|
|
525
525
|
`;})}
|
|
526
526
|
</div>
|
|
527
|
-
${
|
|
528
|
-
`;}static['getBasicFormHtmlNoOption'](
|
|
529
|
-
<div id="container" class="container" style="${
|
|
530
|
-
${
|
|
531
|
-
<label ?editable=${
|
|
532
|
-
${
|
|
527
|
+
${_0x4a0ed8[_0x565b17(0x147)]?html``:MetaUiUtil[_0x565b17(0xf9)](_0x4a0ed8)}
|
|
528
|
+
`;}static['getBasicFormHtmlNoOption'](_0x37d92f,_0x2ee88b,_0x85f905){const _0x3439b0=a0_0x5ddfef;let _0x5b3960=_0x3439b0(0x1b4);_0x37d92f[_0x3439b0(0x17e)]&&0x0!=_0x37d92f['column']||(_0x37d92f['column']=0x1),_0x37d92f[_0x3439b0(0x17e)]=parseInt((_0x37d92f[_0x3439b0(0x1b6)]||{})[_0x3439b0(0xe9)]||_0x37d92f['column']);for(let _0x35c0d3=0x0;_0x35c0d3<_0x37d92f[_0x3439b0(0x17e)];_0x35c0d3++)_0x5b3960+=_0x3439b0(0x124);return _0x5b3960+=';',html`
|
|
529
|
+
<div id="container" class="container" style="${_0x5b3960}">
|
|
530
|
+
${_0x2ee88b[_0x3439b0(0x6f)](_0x14e358=>{const _0x3464bb=_0x3439b0;let {editable:_0x277198=!0x1,mandatory:_0x3d4072=!0x1}=_0x14e358[_0x3464bb(0x126)],_0x33f03e=_0x85f905[_0x3464bb(0xa3)]||{};return html`
|
|
531
|
+
<label ?editable=${_0x277198}><span>${_0x3d4072?'*':''}${_0x14e358[_0x3464bb(0x142)]}</span>
|
|
532
|
+
${_0x277198?html`<mwc-icon>edit</mwc-icon>`:''}
|
|
533
533
|
</label>
|
|
534
534
|
<ox-grid-field
|
|
535
535
|
.rowIndex=${0x0}
|
|
536
|
-
.column=${
|
|
537
|
-
.record=${
|
|
538
|
-
.value=${
|
|
539
|
-
?dirty=${!!
|
|
536
|
+
.column=${_0x14e358}
|
|
537
|
+
.record=${_0x85f905}
|
|
538
|
+
.value=${_0x85f905[_0x14e358['name']]}
|
|
539
|
+
?dirty=${!!_0x33f03e[_0x14e358[_0x3464bb(0x1d8)]]}
|
|
540
540
|
></ox-grid-field>
|
|
541
541
|
`;})}
|
|
542
542
|
</div>
|
|
543
|
-
${
|
|
544
|
-
`;}static[
|
|
543
|
+
${_0x37d92f[_0x3439b0(0x147)]?html``:MetaUiUtil[_0x3439b0(0xf9)](_0x37d92f)}
|
|
544
|
+
`;}static[a0_0x5ddfef(0x118)](_0x198657){const _0x2e3337=a0_0x5ddfef;if(!_0x198657)return html``;if(!_0x198657[_0x2e3337(0x191)])return html``;let _0x6363b9=_0x198657[_0x2e3337(0x191)];return _0x198657['currentTabKey']||(_0x198657[_0x2e3337(0x16b)]=_0x6363b9[0x0]?.[_0x2e3337(0x1d8)]||void 0x0),html`
|
|
545
545
|
<div class="tabs">
|
|
546
|
-
${
|
|
547
|
-
<div class="tab" ?activate="${
|
|
548
|
-
${
|
|
549
|
-
<span>${
|
|
546
|
+
${_0x6363b9[_0x2e3337(0x6f)](_0x14b3b0=>{const _0x4f7436=_0x2e3337;let _0x5dcf65=TermsUtil[_0x4f7436(0x8d)](_0x14b3b0[_0x4f7436(0x1c9)]),_0x13f63e=_0x14b3b0['name'];return html`
|
|
547
|
+
<div class="tab" ?activate="${_0x13f63e===_0x198657[_0x4f7436(0x16b)]}" @click="${()=>_0x198657[_0x4f7436(0x16b)]=_0x13f63e}">
|
|
548
|
+
${_0x14b3b0[_0x4f7436(0x17d)]?html`<mwc-icon>${_0x14b3b0[_0x4f7436(0x17d)]}</mwc-icon>`:html``}
|
|
549
|
+
<span>${_0x5dcf65}</span>
|
|
550
550
|
</div>
|
|
551
551
|
`;})}
|
|
552
552
|
</div>
|
|
553
553
|
<div class="content-container">
|
|
554
|
-
${
|
|
555
|
-
<div class='tab-contents' style="${
|
|
556
|
-
${MetaUiUtil[
|
|
554
|
+
${_0x6363b9[_0x2e3337(0x6f)](_0x769f5f=>{const _0x5b10ed=_0x2e3337;let _0x1a77bc=_0x5b10ed(0x91);return _0x769f5f[_0x5b10ed(0x1d8)]==_0x198657['currentTabKey']&&(_0x1a77bc=_0x5b10ed(0x1a3)),html`
|
|
555
|
+
<div class='tab-contents' style="${_0x1a77bc}">
|
|
556
|
+
${MetaUiUtil[_0x5b10ed(0x120)](_0x198657,_0x769f5f)}
|
|
557
557
|
</div>
|
|
558
558
|
`;})}
|
|
559
559
|
</div>
|
|
560
|
-
`;}static['getGristTabHtml'](
|
|
561
|
-
${0x0==
|
|
560
|
+
`;}static['getGristTabHtml'](_0x32a079){const _0x1ede26=a0_0x5ddfef;let _0x5bf7d1=(_0x32a079[_0x1ede26(0x1b6)]||{})['master_detail_type']||_0x1ede26(0x11c),_0x4132e2=(_0x32a079[_0x1ede26(0x1b6)]||{})['master_detail_size']||'50%\x2050%',_0x2aebd1=_0x1ede26(0xf8)==_0x5bf7d1?_0x1ede26(0x1b4)+_0x4132e2+';':_0x1ede26(0x1a1)+_0x4132e2+';',_0x1e9214=_0x32a079['isPage']?UiUtil[_0x1ede26(0xd8)]():_0x32a079['route_name'];return html`
|
|
561
|
+
${0x0==_0x32a079[_0x1ede26(0x108)]?html``:html`
|
|
562
562
|
<div slot="headroom">
|
|
563
563
|
<div id="filters">
|
|
564
564
|
<ox-filters-form-base
|
|
565
565
|
id='ox-filters-form'
|
|
566
|
-
.filters=${
|
|
567
|
-
.value=${
|
|
568
|
-
@filters-change=${
|
|
566
|
+
.filters=${_0x32a079[_0x1ede26(0x1a7)]||[]}
|
|
567
|
+
.value=${_0x32a079[_0x1ede26(0x194)]||[]}
|
|
568
|
+
@filters-change=${_0x5b0d50=>{const _0x2c2184=_0x1ede26;_0x32a079[_0x2c2184(0x189)]?.[_0x2c2184(0x1c6)]();}}
|
|
569
569
|
></ox-filters-form-base>
|
|
570
570
|
</div>
|
|
571
571
|
</div>
|
|
572
572
|
`}
|
|
573
|
-
<div id="container" class="container" style="${
|
|
573
|
+
<div id="container" class="container" style="${_0x2aebd1}">
|
|
574
574
|
<div class="container_detail">
|
|
575
|
-
${MetaApi[
|
|
576
|
-
${MetaUiUtil[
|
|
575
|
+
${MetaApi[_0x1ede26(0x158)](_0x32a079)}
|
|
576
|
+
${MetaUiUtil[_0x1ede26(0xf9)](_0x32a079)}
|
|
577
577
|
</div>
|
|
578
578
|
<div class="container_detail">
|
|
579
|
-
${!0x0===
|
|
579
|
+
${!0x0===_0x32a079[_0x1ede26(0x1b8)]?html`${!0x0===_0x32a079[_0x1ede26(0x8a)]?html`<meta-tab-element
|
|
580
580
|
id="detail"
|
|
581
|
-
route_name="${
|
|
582
|
-
.activityDataSet=${(
|
|
581
|
+
route_name="${_0x1e9214}"
|
|
582
|
+
.activityDataSet=${(_0x32a079['activityDataSet']||{})[_0x1ede26(0x161)]}
|
|
583
583
|
is_readonly=true
|
|
584
584
|
is_activity=true
|
|
585
585
|
is_detail=true>
|
|
586
586
|
</meta-tab-element>`:html`<meta-tab-element
|
|
587
587
|
id="detail"
|
|
588
|
-
route_name="${
|
|
589
|
-
.activityDataSet=${(
|
|
588
|
+
route_name="${_0x1e9214}"
|
|
589
|
+
.activityDataSet=${(_0x32a079['activityDataSet']||{})[_0x1ede26(0x161)]}
|
|
590
590
|
is_activity=true
|
|
591
591
|
is_detail=true>
|
|
592
|
-
</meta-tab-element>`}`:html`${!0x0===
|
|
592
|
+
</meta-tab-element>`}`:html`${!0x0===_0x32a079[_0x1ede26(0x8a)]?html`<meta-tab-element id="detail" route_name="${_0x1e9214}" is_readonly=true is_detail=true></meta-tab-element>`:html`<meta-tab-element id="detail" route_name="${_0x1e9214}" is_detail=true></meta-tab-element>`}`}
|
|
593
593
|
</div>
|
|
594
594
|
</div>
|
|
595
|
-
`;}static[
|
|
596
|
-
${0x0==
|
|
595
|
+
`;}static[a0_0x5ddfef(0xc0)](_0x50f5e7){const _0x4f306d=a0_0x5ddfef;let _0x459a79=_0x50f5e7['etcConfig']['master_detail_type']||'top_bottom',_0x43b988=_0x50f5e7[_0x4f306d(0x1b6)][_0x4f306d(0x178)]||_0x4f306d(0x17f),_0x3703cc=_0x50f5e7['etcConfig'][_0x4f306d(0x1be)],_0x30e87b=JSON[_0x4f306d(0xfa)](_0x3703cc||'{}'),_0x54eaef=_0x4f306d(0xf8)==_0x459a79?_0x4f306d(0x1b4)+_0x43b988+';':'grid-template-rows:'+_0x43b988+';';return MetaUiUtil[_0x4f306d(0x8e)](_0x50f5e7),MetaUiUtil[_0x4f306d(0xff)](_0x50f5e7,_0x30e87b),html`
|
|
596
|
+
${0x0==_0x50f5e7['useMasterFilterForm']?html``:html`
|
|
597
597
|
<div slot="headroom">
|
|
598
598
|
<div id="filters">
|
|
599
599
|
<ox-filters-form-base
|
|
600
600
|
id='ox-filters-form'
|
|
601
|
-
.filters=${
|
|
602
|
-
.value=${
|
|
603
|
-
@filters-change=${
|
|
601
|
+
.filters=${_0x50f5e7[_0x4f306d(0x1a7)]||[]}
|
|
602
|
+
.value=${_0x50f5e7[_0x4f306d(0x194)]||[]}
|
|
603
|
+
@filters-change=${_0x399306=>{_0x50f5e7['fetch']();}}
|
|
604
604
|
></ox-filters-form-base>
|
|
605
605
|
</div>
|
|
606
606
|
</div>
|
|
607
607
|
`}
|
|
608
|
-
<div id="container" class="container" style="${
|
|
608
|
+
<div id="container" class="container" style="${_0x54eaef}">
|
|
609
609
|
<div class="container_detail">
|
|
610
|
-
${
|
|
610
|
+
${_0x50f5e7[_0x4f306d(0xd2)]}
|
|
611
611
|
</div>
|
|
612
612
|
<div class="container_detail">
|
|
613
|
-
${''==
|
|
614
|
-
${
|
|
613
|
+
${''==_0x30e87b[_0x4f306d(0x137)]||_0x4f306d(0x69)==_0x30e87b[_0x4f306d(0x137)]?html``:html`<h2 id='detail_title'><mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x4f306d(0x19b)](''+_0x30e87b[_0x4f306d(0x1c9)])}</h2>`}
|
|
614
|
+
${_0x50f5e7[_0x4f306d(0x19f)]}
|
|
615
615
|
</div>
|
|
616
616
|
</div>
|
|
617
|
-
`;}static[
|
|
618
|
-
${0x0==
|
|
617
|
+
`;}static['getMainTabHtml'](_0x29cf9a){const _0x211548=a0_0x5ddfef;return MetaUiUtil['createMasterElement'](_0x29cf9a),html`
|
|
618
|
+
${0x0==_0x29cf9a[_0x211548(0x108)]?html``:html`
|
|
619
619
|
<div slot="headroom">
|
|
620
620
|
<div id="filters">
|
|
621
621
|
<ox-filters-form-base
|
|
622
622
|
id='ox-filters-form'
|
|
623
|
-
.filters=${
|
|
624
|
-
.value=${
|
|
625
|
-
@filters-change=${
|
|
623
|
+
.filters=${_0x29cf9a['searchFields']||[]}
|
|
624
|
+
.value=${_0x29cf9a[_0x211548(0x194)]||[]}
|
|
625
|
+
@filters-change=${_0x286f2a=>{const _0x2f36ed=_0x211548;_0x29cf9a[_0x2f36ed(0x1c6)]();}}
|
|
626
626
|
></ox-filters-form-base>
|
|
627
627
|
</div>
|
|
628
628
|
</div>
|
|
629
629
|
`}
|
|
630
630
|
<div id="container" class="container" >
|
|
631
|
-
${
|
|
631
|
+
${_0x29cf9a[_0x211548(0xd2)]}
|
|
632
632
|
</div>
|
|
633
|
-
`;}static[
|
|
634
|
-
${0x0==
|
|
633
|
+
`;}static[a0_0x5ddfef(0x8f)](_0x3ed9b7){const _0x42d0de=a0_0x5ddfef;let _0x1b36ec=_0x3ed9b7['etcConfig']['master_detail_type']||_0x42d0de(0x11c),_0x508c4e=_0x3ed9b7[_0x42d0de(0x1b6)]['master_detail_size']||_0x42d0de(0x17f),_0x343893=_0x3ed9b7[_0x42d0de(0x1b6)][_0x42d0de(0x1be)],_0x5b19e3=JSON[_0x42d0de(0xfa)](_0x343893||'{}'),_0x42ff11=_0x42d0de(0xf8)==_0x1b36ec?_0x42d0de(0x1b4)+_0x508c4e+';':_0x42d0de(0x1a1)+_0x508c4e+';';return MetaUiUtil['createDetailElement'](_0x3ed9b7,_0x5b19e3),html`
|
|
634
|
+
${0x0==_0x3ed9b7[_0x42d0de(0x108)]?html``:html`
|
|
635
635
|
<div slot="headroom">
|
|
636
636
|
<div id="filters">
|
|
637
637
|
<ox-filters-form-base
|
|
638
638
|
id='ox-filters-form'
|
|
639
|
-
.filters=${
|
|
640
|
-
.value=${
|
|
641
|
-
@filters-change=${
|
|
639
|
+
.filters=${_0x3ed9b7['searchFields']||[]}
|
|
640
|
+
.value=${_0x3ed9b7[_0x42d0de(0x194)]||[]}
|
|
641
|
+
@filters-change=${_0x1df060=>{const _0x2c2fb6=_0x42d0de;_0x3ed9b7[_0x2c2fb6(0x189)]?.['fetch']();}}
|
|
642
642
|
></ox-filters-form-base>
|
|
643
643
|
</div>
|
|
644
644
|
</div>
|
|
645
645
|
`}
|
|
646
|
-
<div id="container" class="container" style="${
|
|
646
|
+
<div id="container" class="container" style="${_0x42ff11}">
|
|
647
647
|
<div class="container_detail">
|
|
648
|
-
${MetaApi[
|
|
649
|
-
${MetaUiUtil[
|
|
648
|
+
${MetaApi[_0x42d0de(0x158)](_0x3ed9b7)}
|
|
649
|
+
${MetaUiUtil[_0x42d0de(0xf9)](_0x3ed9b7)}
|
|
650
650
|
</div>
|
|
651
651
|
<div class="container_detail">
|
|
652
|
-
${''==
|
|
653
|
-
${
|
|
652
|
+
${''==_0x5b19e3[_0x42d0de(0x137)]||'meta-tab-element'==_0x5b19e3['tagname']?html``:html`<h2 id='detail_title'><mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x42d0de(0x19b)](''+_0x5b19e3['display'])}</h2>`}
|
|
653
|
+
${_0x3ed9b7[_0x42d0de(0x19f)]}
|
|
654
654
|
</div>
|
|
655
655
|
</div>
|
|
656
|
-
`;}static[
|
|
656
|
+
`;}static[a0_0x5ddfef(0xff)](_0x255a41,_0x52a6f8){const _0x2b3f98=a0_0x5ddfef;if(!_0x255a41[_0x2b3f98(0x19f)]){let _0x46e8c8=_0x52a6f8[_0x2b3f98(0x1d8)]?_0x52a6f8[_0x2b3f98(0x1d8)]:'detail',_0x1a301c='<'+_0x52a6f8[_0x2b3f98(0x137)]+_0x2b3f98(0xc9)+_0x46e8c8+_0x2b3f98(0x1ab)+_0x46e8c8+'\x22\x20route_name=\x22'+_0x52a6f8['routing']+'\x22\x20'+(!0x0===_0x255a41[_0x2b3f98(0x1b8)]?_0x2b3f98(0xd1):'')+'\x20'+(!0x0===_0x255a41[_0x2b3f98(0x8a)]?_0x2b3f98(0x11a):'')+_0x2b3f98(0xda)+_0x52a6f8['tagname']+'>';_0x255a41[_0x2b3f98(0x19f)]=UiUtil['htmlToElement'](_0x1a301c),_0x255a41[_0x2b3f98(0x19f)]['activityDataSet']=(_0x255a41[_0x2b3f98(0xea)]||{})[_0x2b3f98(0x161)],_0x255a41[_0x2b3f98(0x13e)]['toLowerCase']()['startsWith'](_0x2b3f98(0x164))&&(_0x255a41['detailElement'][_0x2b3f98(0x14c)]=_0x255a41);}}static[a0_0x5ddfef(0x8e)](_0x1b4aa4){const _0x53dbcf=a0_0x5ddfef;if(!_0x1b4aa4[_0x53dbcf(0xd2)]&&_0x1b4aa4['filterForm']){let _0x57ab3d=_0x53dbcf(0xb6),_0x3065e2=_0x53dbcf(0xc2)+_0x57ab3d+_0x53dbcf(0x1ab)+_0x57ab3d+_0x53dbcf(0x6c)+_0x1b4aa4[_0x53dbcf(0xd8)]+'\x22\x20'+(!0x0===_0x1b4aa4[_0x53dbcf(0x1b8)]?_0x53dbcf(0xd1):'')+'\x20'+(!0x0===_0x1b4aa4['is_readonly']?'is_readonly=true':'')+_0x53dbcf(0xf3);_0x1b4aa4[_0x53dbcf(0xd2)]=UiUtil[_0x53dbcf(0xb1)](_0x3065e2),_0x1b4aa4[_0x53dbcf(0xd2)]['activityDataSet']=(_0x1b4aa4[_0x53dbcf(0xea)]||{})[_0x53dbcf(0xb6)],_0x1b4aa4[_0x53dbcf(0xd2)]['includeMainList']=!0x0,_0x1b4aa4[_0x53dbcf(0xd2)]['mainFilterForm']=_0x1b4aa4['filterForm'],_0x1b4aa4['masterElement']['rootElement']=_0x1b4aa4;}}static[a0_0x5ddfef(0x120)](_0x3b6618,_0x587f5a){const _0x2d0f79=a0_0x5ddfef;if(_0x3b6618[_0x2d0f79(0xe8)]||(_0x3b6618[_0x2d0f79(0xe8)]={}),Object[_0x2d0f79(0x97)](_0x3b6618[_0x2d0f79(0xe8)])[_0x2d0f79(0x16c)](_0x55eb24=>_0x55eb24==_0x587f5a[_0x2d0f79(0x1d8)])[_0x2d0f79(0x138)]>0x0)return _0x3b6618[_0x2d0f79(0xe8)][_0x587f5a[_0x2d0f79(0x1d8)]];let _0x4ae57e='<'+_0x587f5a[_0x2d0f79(0x137)]+_0x2d0f79(0x125)+_0x587f5a[_0x2d0f79(0x1d8)]+_0x2d0f79(0x1cf)+_0x587f5a[_0x2d0f79(0x1a8)]+_0x2d0f79(0x117)+(!0x0===_0x3b6618[_0x2d0f79(0x1b8)]?'is_activity=true':'')+'\x20'+(!0x0===_0x3b6618[_0x2d0f79(0x8a)]?'is_readonly=true':'')+'\x20is_detail=true></'+_0x587f5a['tagname']+'>',_0x2da038=UiUtil[_0x2d0f79(0xb1)](_0x4ae57e);return _0x2da038[_0x2d0f79(0xea)]=(_0x3b6618['activityDataSet']||{})[_0x587f5a['name']],_0x3b6618[_0x2d0f79(0x15f)]&&(_0x2da038[_0x2d0f79(0x15f)]=_0x3b6618[_0x2d0f79(0x15f)]),_0x3b6618[_0x2d0f79(0x14c)]?_0x2da038[_0x2d0f79(0x14c)]=_0x3b6618[_0x2d0f79(0x14c)]:_0x2da038['detailElement']=_0x3b6618,!0x1===_0x587f5a[_0x2d0f79(0x170)]&&(_0x2da038[_0x2d0f79(0x150)]=!0x1),_0x587f5a[_0x2d0f79(0x95)]&&(_0x2da038[_0x2d0f79(0x16a)]=_0x587f5a[_0x2d0f79(0x95)]),_0x3b6618[_0x2d0f79(0xe8)][_0x587f5a['name']]=_0x2da038,_0x2da038;}static[a0_0x5ddfef(0x163)](_0x480be7){const _0x3c764a=a0_0x5ddfef;let _0x11edd4=_0x480be7[_0x3c764a(0x105)],_0x5d3768=_0x480be7[_0x3c764a(0x9d)],_0x535dbf=_0x480be7[_0x3c764a(0xb5)],_0x22910a=JSON['parse']((_0x480be7['etcConfig']||{})[_0x3c764a(0x181)]||_0x3c764a(0x115));return 0x0==_0x5d3768?html`
|
|
657
657
|
<div slot="headroom" style="flex-direction: column;padding: 0px;border-top: none;box-shadow: none;background: none;align-items: stretch;">
|
|
658
|
-
${this['getGridColumnPersonalizeButton'](
|
|
658
|
+
${this['getGridColumnPersonalizeButton'](_0x480be7)}
|
|
659
659
|
</div>
|
|
660
660
|
`:html`
|
|
661
661
|
<div slot="headroom" style="flex-direction: column;padding: 0px;border-top: none;box-shadow: none;background: none;align-items: stretch;">
|
|
662
662
|
<div slot="headroom">
|
|
663
663
|
<div id="filters"><ox-filters-form></ox-filters-form></div>
|
|
664
|
-
${
|
|
664
|
+
${_0x22910a?html`
|
|
665
665
|
<div id="sorters">
|
|
666
|
-
<mwc-icon @click=${
|
|
666
|
+
<mwc-icon @click=${_0x598fe8=>{const _0x3ea57b=_0x3c764a,_0x1ed289=_0x598fe8[_0x3ea57b(0xfb)];_0x1ed289[_0x3ea57b(0xa0)][_0x3ea57b(0x81)]({'right':0x0,'top':_0x1ed289[_0x3ea57b(0x6d)]+_0x1ed289[_0x3ea57b(0x11b)]});}}
|
|
667
667
|
>sort</mwc-icon>
|
|
668
668
|
<ox-popup id="sorter-control">
|
|
669
669
|
<ox-sorters-control></ox-sorters-control>
|
|
670
670
|
</ox-popup>
|
|
671
671
|
</div>
|
|
672
672
|
`:html``}
|
|
673
|
-
${MetaUiUtil[
|
|
673
|
+
${MetaUiUtil[_0x3c764a(0xf1)](_0x480be7)}
|
|
674
674
|
<ox-record-creator
|
|
675
675
|
id="add"
|
|
676
|
-
?hidden="${!
|
|
677
|
-
.callback=${
|
|
676
|
+
?hidden="${!_0x11edd4}"
|
|
677
|
+
.callback=${_0x535dbf}>
|
|
678
678
|
<button>
|
|
679
679
|
<mwc-icon>add</mwc-icon>
|
|
680
680
|
</button>
|
|
681
681
|
</ox-record-creator>
|
|
682
682
|
</div>
|
|
683
|
-
${this[
|
|
683
|
+
${this['getGridColumnPersonalizeButton'](_0x480be7)}
|
|
684
684
|
</div>
|
|
685
|
-
`;}static[
|
|
685
|
+
`;}static[a0_0x5ddfef(0x92)](_0x38fe82){const _0x1cdede=a0_0x5ddfef;return _0x1cdede(0xed)!=_0x38fe82[_0x1cdede(0xcb)]?html``:!0x0!==_0x38fe82['is_activity']?html`
|
|
686
686
|
<div id="grist-personal">
|
|
687
|
-
<mwc-icon @click=${
|
|
687
|
+
<mwc-icon @click=${_0x5b8e16=>{const _0xdf52ca=_0x1cdede;let _0x32a52c=MetaApi[_0xdf52ca(0x14e)](_0xdf52ca(0x19a),_0xdf52ca(0x19a));_0x32a52c['configGrist']=_0x5b8e16[_0xdf52ca(0xfb)][_0xdf52ca(0xa6)][_0xdf52ca(0xa6)][_0xdf52ca(0xa6)],_0x32a52c[_0xdf52ca(0xaf)]=_0x38fe82[_0xdf52ca(0xaf)],MetaApi[_0xdf52ca(0x66)](TermsUtil['tTitle']('grid-column-personalize'),_0xdf52ca(0xd5),_0x32a52c,!0x1);}}
|
|
688
688
|
>settings</mwc-icon>
|
|
689
689
|
</div>
|
|
690
|
-
`:html``;}static[
|
|
690
|
+
`:html``;}static[a0_0x5ddfef(0xf1)](_0x1e2d71){const _0x50ab2b=a0_0x5ddfef;return ValueUtil[_0x50ab2b(0xbb)](_0x1e2d71[_0x50ab2b(0x83)])||0x1==_0x1e2d71['gridViewOptions']['length']?html``:html`
|
|
691
691
|
<div id="modes">
|
|
692
|
-
${
|
|
693
|
-
${
|
|
694
|
-
${
|
|
692
|
+
${_0x1e2d71[_0x50ab2b(0x83)]['includes'](_0x50ab2b(0xed))?html`<mwc-icon @click="${()=>_0x1e2d71[_0x50ab2b(0xcb)]=_0x50ab2b(0xed)}" ?active="${_0x50ab2b(0xed)==_0x1e2d71['gridMode']}">grid_on</mwc-icon>`:''}
|
|
693
|
+
${_0x1e2d71[_0x50ab2b(0x83)][_0x50ab2b(0x1ac)](_0x50ab2b(0x1bc))?html`<mwc-icon @click="${()=>_0x1e2d71[_0x50ab2b(0xcb)]='LIST'}" ?active="${'LIST'==_0x1e2d71['gridMode']}">format_list_bulleted</mwc-icon>`:''}
|
|
694
|
+
${_0x1e2d71[_0x50ab2b(0x83)][_0x50ab2b(0x1ac)](_0x50ab2b(0xbe))?html`<mwc-icon @click="${()=>_0x1e2d71['gridMode']=_0x50ab2b(0xbe)}" ?active="${_0x50ab2b(0xbe)==_0x1e2d71[_0x50ab2b(0xcb)]}">apps</mwc-icon>`:''}
|
|
695
695
|
</div>
|
|
696
|
-
`;}static[
|
|
696
|
+
`;}static[a0_0x5ddfef(0xf9)](_0x3c9295){const _0x4c038f=a0_0x5ddfef;return html`<div id="button-container" class="button-container">${MetaUiUtil[_0x4c038f(0x18b)](_0x3c9295)}</div>`;}}
|