@things-factory/meta-ui 6.0.130 → 6.0.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/actions/main.js +4 -4
- package/client/bootstrap.js +19 -0
- package/client/component/filter/filter-form-resource-code-select.js +9 -9
- package/client/component/filter/filter-grist-resource-code-select.js +10 -10
- package/client/component/grist/editor/ox-grist-editor-resource-code-selector.js +9 -9
- package/client/component/grist/renderer/ox-grist-renderer-resource-code-selector.js +1 -1
- package/client/component/grist/selector/ox-resource-code-selector-popup.js +11 -11
- package/client/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 +29 -29
- package/client/pages/entity/main-menu-selector.js +7 -7
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-main-tab-element.js +1 -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/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +102 -102
- 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 +2 -2
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +12 -12
- package/client/viewparts/dynamic-menu-portrait-styles.js +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/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_0x5393c2=a0_0x4be9;(function(_0x227071,_0xde0552){const _0x23b281=a0_0x4be9,_0x396df7=_0x227071();while(!![]){try{const _0x49c028=-parseInt(_0x23b281(0x20a))/0x1+parseInt(_0x23b281(0x20f))/0x2*(parseInt(_0x23b281(0x211))/0x3)+parseInt(_0x23b281(0x191))/0x4*(parseInt(_0x23b281(0x1e0))/0x5)+parseInt(_0x23b281(0x284))/0x6*(parseInt(_0x23b281(0x1fa))/0x7)+parseInt(_0x23b281(0x204))/0x8*(-parseInt(_0x23b281(0x159))/0x9)+-parseInt(_0x23b281(0x271))/0xa+parseInt(_0x23b281(0x1be))/0xb*(parseInt(_0x23b281(0x183))/0xc);if(_0x49c028===_0xde0552)break;else _0x396df7['push'](_0x396df7['shift']());}catch(_0x208bdd){_0x396df7['push'](_0x396df7['shift']());}}}(a0_0x2990,0xca2f9));import a0_0x3c7a27 from'graphql-tag';import{client}from'@operato/graphql';import a0_0x20a3c0 from'moment-timezone';import{css,html}from'lit';import{ScrollbarStyles,CommonGristStyles,CommonButtonStyles}from'@operato/styles';function a0_0x2990(){const _0x13fd5f=['gutter','url','getQueryFilters','label','push','use_row_checker','createDetailElement','detail','getMainTabHtml','pageNavigate','map','editable','activityDataSet','select','unlimited','isButtonExist','fetch','getGridOptionSet','\x20id=\x27','meta-tab-detail-','column_list','getGridColumnSet','etcConfig','786145xoLZgg','text.button_bind_func_is_not_exist','text.nothing_selected','master_detail_size','pages/hgistory/history-copy-list-popup.js','header_txt','text.please_select_only_one','useButtonImport','button','tError','<mwc-button\x20label=\x22','title.info','routing','searchFieldValues','display','popup','gristButtonPassParam','add','grid_column','pass_field','history-copy-list-popup','height:auto;grid-template-columns:','row','row-selector','getCodeSelectorData','model','4213013GOXHzD','is_activity','getGristSelectableConfig','find','toLowerCase','isGridButtonExist','route_name','meta-form-element','useButtonAdd','getButtonActionHandler','12230608xXeSpG','getBasicTabContent','getCodeByScenario','menu','createMasterElement','gridMobileMode','567258fSNdYQ','keys','header','useButtonExport','open_param','1891410gYuneh','tMenu','3EBooHX','htmlToElement','compareObjectValues','today','searchByPagination','createCustomElement','args','tText','getContextButtons','formRenderConfig','use_filter_form','getContainerButtons','sorters','hidden','sort','GRID','open','shadowRoot','\x0aid\x0aname\x0adescription','menus','master_detail_element','findMenuGridPersnalTemplate','buttonConfig','tabRenderConfig','getBasicTabHtml','searchFields','useMasterFilterForm','\x22\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20','master','page','confirm','gridConfig','subtract','getGridRowSet','options','ox-grist','getGridListSet','tTitle','multiple','logic','grist','openPopupByElement','getBasicTabStyles','info','replace','YYYY-MM-DD','is_activity=true','isPage','name','parent_field','text.grid_data_is_empty','getBasicMasterDetailStyles','assign','showAlertPopup','param_field','formConfigSet','grid-template-columns:','getBasicGristHtml','getButtonContainer','setGridColumnSearchOption','parseGridConfigSet','\x20is_detail=true></','entity','recordCreationCallback','handlers','\x20\x0a\x20}','configGrist','tagName','getGridColumnPersonalizeButton','left','\x20>\x0a\x20\x20\x20\x20</mwc-button>\x0a\x20\x20\x20\x20','invalid\x20license\x20key','grist_selected','error','default_form_column','width','rank','\x20{\x20','dec','metaUI','resource-object','getBasicFormStyles','isMobileEnv','list','pages/hgistory/history-json-list-popup.js','getBasicFormHtml','\x20id=\x22','length','onclick','getGristSearchCodeColumnConfig','left_right','filters','\x27\x20route_name=\x27','getGridButtonSet','midium','value_is_not_exist','10331910yjKltz','parseFormConfigSet','getGridViewOption','forEach','template','string','codes','getMasterDetailLeftRightGristStyle','detailElement','large','value','pages/meta-form-element.js','top-down','getGristColumnConfig2','gristId','menuInfo','getGristGuttersConfig','querySelector','\x22\x20route_name=\x22','12PYzTvx','indexOf','emphasis','startsWith','getState','basicArgs','display:flex','getParams','records','masterElement','includeMainList','use_grid_sort_button','createButtonElement','errors','basic','code','split','setParentId','CARD','commonButtonCallScenario','bind','day','column','filter','floor','tagname','gridMode','tButton','getCustomButtonContainerStyles','gristButtonHandler','data','defaultPageConfig','grist_all','findMenuMeta','menuId','\x27\x20style=\x22flex:1;\x22\x20','includes','getMasterDetailTopDownGristStyle','9lroOoK','type','getBasicMasterDetailGristStyle','getBasicGristPageProperties','getContextObject','help','callScenario','outlined','import','relation','infinityPage','parse','title','getGridDetailHtml','grid','getGristEmphasizedStyles','isEmpty','getSelectColumns','top_bottom','meta-grist-tab-','parent_id','dispField','isArray','currentTarget','is_readonly','self','gristButtonValueReference','is_readonly=true','config','rootElement','getGristSearchColumnConfig','tabElements','nextElementSibling','selected','__dirtyfields__','commonButtonOpenPopup','getGristColumnConfig3','getBasicFormHtmlNoOption','\x0a{\x0aid\x0aname\x0athumbnail}','getBasicGristTabStyles','formColumnConfig','format','16035816Wrehai','getMasterDetailHtml','main_filter_form','grist_one','title_detail','icon','getTabDetailHtml','meta-tab-','imex','raised','getCodeByEntity','currentRouting','<meta-tab-element\x20id=\x22','gridDeskMode','12Wlzkad','filter_from','\x20is_detail=true\x20style=\x22flex:1;\x22></','gridViewOptions','useFilterForm','findMenuMetaByRouting','\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20','title.warning','personal-column-selector','value_reference','object','data_history_list','dispatchEvent','resource-code-selector','history_json','filterForm','location','after','importable','getBasicFormHtmlOnOption','history_copy','isNotEmpty','getGristPersonalizedStyles','50%\x2050%','export','result_name','getObjctColumnSelectFields','record','master_detail_type','parentElement','selectable','option','text.search_form_is_not_exist','\x20is_detail=true\x20style=\x22flex:1;\x22></meta-tab-element>','LIST','scenario','meta-tab-element','grid-template-rows:','danger','desc','\x201fr\x202fr','openDynamicPopup','gqlInfo','currentTabKey','gristConfigSet','11bGPIYJ','getGristPaginationCustomConfig','tLabel','service','\x22\x20name=\x22','customButtonHandler','id,template','mainFilterForm','values','pages','dense'];a0_0x2990=function(){return _0x13fd5f;};return a0_0x2990();}import{store}from'@operato/shell';import{TermsUtil}from'./terms-util';import{ValueUtil}from'./value-util';import{ServiceUtil}from'./service-util';import{UiUtil}from'./ui-util';function a0_0x4be9(_0x46ed3f,_0x498821){const _0x299096=a0_0x2990();return a0_0x4be9=function(_0x4be92e,_0x2f7c91){_0x4be92e=_0x4be92e-0x148;let _0x543622=_0x299096[_0x4be92e];return _0x543622;},a0_0x4be9(_0x46ed3f,_0x498821);}import{MetaCrypto}from'./meta-crypto';import{getEditor,getRenderer}from'@operato/data-grist';import{MetaApi}from'./meta-api';import'./../pages/personalize/personal-column-selector';import'./../pages/history/history-copy-list-popup';import'./../pages/history/history-json-list-popup';export class MetaUiUtil{static async[a0_0x5393c2(0x154)](_0x4cb849){const _0xfc2785=a0_0x5393c2;let _0x44632c=await ServiceUtil['findOne'](_0xfc2785(0x207),_0x4cb849,_0xfc2785(0x275));if(!_0x44632c)throw new Error(TermsUtil['tText'](_0xfc2785(0x270),{'value':TermsUtil[_0xfc2785(0x210)](_0xfc2785(0x207))+'\x20'+_0x4cb849}));if(!_0x44632c[_0xfc2785(0x275)])throw new Error(TermsUtil['tText'](_0xfc2785(0x270),{'value':TermsUtil['tMenu']('menu')+'\x20'+TermsUtil[_0xfc2785(0x1c0)](_0xfc2785(0x1f9))}));return this['menuId']=_0x4cb849,JSON[_0xfc2785(0x164)](_0x44632c[_0xfc2785(0x275)]);}static async[a0_0x5393c2(0x196)](_0x468809,_0x23415a){const _0x1ada25=a0_0x5393c2;if((await client['query']({'query':a0_0x3c7a27`
|
|
2
2
|
query ($id: String) {
|
|
3
3
|
metaUITemplateIsOverLimit(id: $id)
|
|
4
4
|
}
|
|
5
|
-
`,'variables':{'id':null}}))[_0x282397(0x2ab)])return;let _0x52ceb,_0x2ec59b=[{'name':_0x282397(0x1c8),'operator':'eq','value':_0x52c49e}],_0x33b3f9=await ServiceUtil[_0x282397(0x218)](_0x282397(0x2ad),_0x2ec59b,null,0x0,0x0,_0x282397(0x1e6));if(_0x33b3f9&&_0x33b3f9[_0x282397(0x1ef)]&&0x0!=_0x33b3f9[_0x282397(0x1ef)][_0x282397(0x1a6)]?(_0x52ceb=_0x33b3f9['records'][0x0],!_0x52ceb[_0x282397(0x252)]&&_0xf1d47c[_0x282397(0x279)]&&(_0x52ceb[_0x282397(0x252)]=_0xf1d47c[_0x282397(0x279)])):_0xf1d47c[_0x282397(0x279)]&&(_0x52ceb={'id':_0x52c49e,'template':_0xf1d47c[_0x282397(0x279)]}),!_0x52ceb)throw new Error(TermsUtil[_0x282397(0x262)](_0x282397(0x1e3),{'value':TermsUtil[_0x282397(0x26b)](_0x282397(0x1f9))+'\x20'+_0x52c49e}));if(!_0x52ceb[_0x282397(0x252)])throw new Error(TermsUtil[_0x282397(0x262)](_0x282397(0x1e3),{'value':TermsUtil['tMenu'](_0x282397(0x1f9))+'\x20'+TermsUtil[_0x282397(0x1a9)](_0x282397(0x1b6))}));return this['menuId']=_0x52ceb['id'],JSON['parse'](MetaCrypto[_0x282397(0x214)](_0x52ceb[_0x282397(0x252)]));}static['getBasicGristPageProperties'](){return{'menuInfo':Object,'gridConfig':Object,'gridColumnConfig':Array,'formColumnConfig':Array,'buttonConfig':Array,'searchConfig':Array,'gqlInfo':String,'gqlFetchField':String,'searchFormElement':String,'useFilterForm':Boolean,'gristConfigSet':Object,'formConfigSet':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':!0x0,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x41bf04=>Boolean(_0x41bf04)},'is_popup':{'type':Boolean,'converter':_0x398b3f=>Boolean(_0x398b3f)},'is_activity':{'type':Boolean,'converter':_0x10e1c4=>Boolean(_0x10e1c4)},'is_readonly':{'type':Boolean,'converter':_0x1ce858=>Boolean(_0x1ce858)}};}static async[a0_0x102ceb(0x226)](_0x368235){const _0x553939=a0_0x102ceb;if(0x0==store[_0x553939(0x2bd)]()[_0x553939(0x24f)][_0x553939(0x1ec)])return void document[_0x553939(0x287)](new CustomEvent(_0x553939(0x200),{'detail':{'level':_0x553939(0x213),'message':TermsUtil[_0x553939(0x1d9)](_0x553939(0x25e))}}));let _0x1ee46=_0x368235['isPage']?UiUtil[_0x553939(0x223)]():_0x368235[_0x553939(0x170)];_0x368235['currentRouting']=_0x1ee46;let _0x163bbb=await MetaUiUtil['findMenuMetaByRouting'](_0x368235,_0x1ee46);return!0x0===_0x368235['is_activity']&&(_0x163bbb[_0x553939(0x1d3)]['option'][_0x553939(0x22b)]=!0x1,_0x163bbb['grid'][_0x553939(0x23d)][_0x553939(0x173)]=_0x553939(0x1bc),_0x163bbb[_0x553939(0x1d3)][_0x553939(0x1a1)]=!0x1,_0x163bbb[_0x553939(0x1d3)][_0x553939(0x2a2)]=[],_0x163bbb['button']=_0x163bbb[_0x553939(0x2a2)]['filter'](_0x2e789d=>_0x553939(0x28a)==_0x2e789d[_0x553939(0x22d)])),!0x0===_0x368235['is_readonly']&&(_0x163bbb['grid_column']['forEach'](_0x107d76=>{const _0x2b13b5=_0x553939;_0x107d76[_0x2b13b5(0x1c9)]=!0x1;}),_0x163bbb[_0x553939(0x2a2)]=_0x163bbb[_0x553939(0x2a2)][_0x553939(0x28c)](_0x15f9e5=>_0x553939(0x28a)!=_0x15f9e5['name'])),!0x1===_0x368235[_0x553939(0x1a1)]&&(_0x163bbb[_0x553939(0x1d3)][_0x553939(0x1a1)]=!0x1),_0x163bbb;}static[a0_0x102ceb(0x2a6)](..._0x13915c){return{'pages':_0x13915c};}static[a0_0x102ceb(0x248)](_0x2c3cfa,_0x56f9c7){const _0x279649=a0_0x102ceb;let _0x13d7f8=[{'type':_0x279649(0x176),'gutterName':_0x279649(0x250)},{'type':'gutter','gutterName':_0x279649(0x18a)}];return _0x2c3cfa&&_0x13d7f8[_0x279649(0x199)]({'type':_0x279649(0x176),'gutterName':_0x279649(0x2b9),'multiple':_0x56f9c7}),_0x13d7f8;}static[a0_0x102ceb(0x296)](_0x485b44){return{'selectable':{'multiple':_0x485b44}};}static async[a0_0x102ceb(0x2a7)](_0x35d9df){const _0x367dd5=a0_0x102ceb;let _0x3848ea=MetaUiUtil[_0x367dd5(0x2ac)](_0x35d9df),_0x49645e=MetaUiUtil[_0x367dd5(0x253)](_0x35d9df),_0x40bc07=MetaUiUtil['getGridRowSet'](_0x35d9df),_0x4ff8d2=MetaUiUtil['getGridButtonSet'](_0x35d9df),_0x23f2b0=await MetaUiUtil[_0x367dd5(0x219)](_0x35d9df),_0x37f148=MetaUiUtil[_0x367dd5(0x248)](_0x3848ea['use_row_checker'],_0x40bc07[_0x367dd5(0x19a)][_0x367dd5(0x193)]);return 0x1==_0x35d9df[_0x367dd5(0x26e)]&&(_0x23f2b0=MetaUiUtil[_0x367dd5(0x220)](_0x35d9df,_0x23f2b0)),{'list':_0x49645e,'pagination':_0x3848ea[_0x367dd5(0x173)],'sorters':_0x3848ea[_0x367dd5(0x2af)],'rows':_0x40bc07,'columns':[..._0x37f148,..._0x4ff8d2,..._0x23f2b0]};}static async[a0_0x102ceb(0x1b8)](_0x4d50c0){const _0x522201=a0_0x102ceb;let _0x44a6f1=_0x4d50c0[_0x522201(0x228)],_0x3f2508=[];for(let _0x42475b=0x0;_0x42475b<_0x44a6f1[_0x522201(0x1a6)];_0x42475b++){let {type:_0x1b0c07=_0x522201(0x2c3),name:_0x13ce97,header:_0x175e8c,hidden:_0x47981a=!0x1,editable:_0x12b498=!0x0,mandatory:_0x234f55=!0x1,align:_0x4e94c5=_0x522201(0x24a),select_opt:_0x48a6d1,object_opt:_0x101bbc}=_0x44a6f1[_0x42475b],_0x2da276={'type':_0x1b0c07,'name':_0x13ce97,'header_txt':ValueUtil[_0x522201(0x24e)](_0x175e8c)?TermsUtil['tLabel'](_0x13ce97):TermsUtil[_0x522201(0x1a9)](_0x175e8c),'header':{'renderer':function(_0x4f7597){return _0x4f7597['header_txt'];}},'hidden':_0x47981a,'record':{'editable':_0x12b498,'mandatory':_0x234f55,'align':_0x4e94c5,'classifier':function(){},'renderer':getRenderer(_0x1b0c07)}};_0x12b498&&(_0x2da276[_0x522201(0x2bf)][_0x522201(0x1da)]=getEditor(_0x1b0c07)),_0x522201(0x1b1)===_0x1b0c07&&ValueUtil[_0x522201(0x1dc)](_0x48a6d1)?Array[_0x522201(0x22e)](_0x48a6d1)?_0x2da276[_0x522201(0x2bf)][_0x522201(0x257)]=_0x48a6d1:'code'===_0x48a6d1[_0x522201(0x180)]?_0x2da276[_0x522201(0x2bf)][_0x522201(0x257)]=await ServiceUtil['getCodeSelectorData'](_0x48a6d1[_0x522201(0x2bc)]?_0x48a6d1[_0x522201(0x2bc)]:_0x48a6d1[_0x522201(0x22d)]):_0x522201(0x21e)===_0x48a6d1['type']?_0x2da276[_0x522201(0x2bf)]['options']=await ServiceUtil[_0x522201(0x25d)](_0x48a6d1[_0x522201(0x22d)],_0x48a6d1['args']):_0x522201(0x188)===_0x48a6d1[_0x522201(0x180)]&&(_0x2da276[_0x522201(0x2bf)][_0x522201(0x257)]=await ServiceUtil[_0x522201(0x227)](_0x48a6d1[_0x522201(0x243)])):_0x522201(0x1d2)!==_0x1b0c07&&_0x522201(0x186)!==_0x1b0c07||!ValueUtil[_0x522201(0x1dc)](_0x101bbc)?_0x522201(0x27b)===_0x1b0c07&&ValueUtil['isNotEmpty'](_0x101bbc)&&(_0x2da276[_0x522201(0x2bf)][_0x522201(0x257)]=_0x101bbc,_0x101bbc['dispField']&&(_0x2da276['record']['options']['codes']=await ServiceUtil['getCodeByEntity'](_0x101bbc))):(_0x101bbc[_0x522201(0x1b1)]&&_0x101bbc['select'][_0x522201(0x184)](_0x426c40=>{const _0x5c9aa5=_0x522201;_0x426c40[_0x5c9aa5(0x20b)]||(_0x426c40['header']=_0x426c40[_0x5c9aa5(0x22d)]),_0x426c40['header']=TermsUtil[_0x5c9aa5(0x1a9)](_0x426c40[_0x5c9aa5(0x20b)]);}),_0x2da276[_0x522201(0x2bf)][_0x522201(0x257)]=_0x101bbc),_0x3f2508[_0x522201(0x199)](_0x2da276);}return _0x3f2508;}static[a0_0x102ceb(0x2ac)](_0xa22245){const _0x178f29=a0_0x102ceb;let _0x2c383b=_0xa22245['gridConfig'];_0xa22245['useFilterForm']=!_0x2c383b||null==_0x2c383b['use_filter_form']||_0x2c383b['use_filter_form'];let {mobile_mode:_0x51514d='LIST',desk_mode:_0x3f5c63=_0x178f29(0x207),view_mode:_0x230db2=[],use_row_checker:_0x5a4146=!0x0,sorters:_0x8165a2=[],pages:_0x4991d7=[0x32,0x64,0x1f4,0x3e8]}=ValueUtil['isEmpty'](_0x2c383b['option'])?{}:_0x2c383b[_0x178f29(0x23d)];return'unlimited'===_0x4991d7||'-1'===_0x4991d7?(_0xa22245[_0x178f29(0x18f)]=!0x0,_0x4991d7={'infinite':!0x0}):(_0xa22245[_0x178f29(0x18f)]=!0x1,_0x4991d7[_0x178f29(0x171)](function(_0x28e246,_0x53ecea){return _0x28e246-_0x53ecea;}),_0x4991d7={'pages':_0x4991d7}),ValueUtil[_0x178f29(0x1dc)](_0x230db2)&&(0x1==_0x230db2[_0x178f29(0x1a6)]?(_0x3f5c63=_0x230db2[0x0],_0x51514d=_0x230db2[0x0]):_0x230db2['length']>=0x2&&(_0x230db2['includes'](_0x51514d)||(_0x51514d=_0x230db2[0x1]),_0x230db2[_0x178f29(0x24c)](_0x3f5c63)||(_0x3f5c63=_0x230db2[0x0]))),_0xa22245[_0x178f29(0x295)]=_0x51514d,_0xa22245[_0x178f29(0x17d)]=_0x3f5c63,_0xa22245['gridViewOptions']=_0x230db2,_0xa22245[_0x178f29(0x17e)]=UiUtil[_0x178f29(0x189)]()?_0xa22245[_0x178f29(0x295)]:_0xa22245[_0x178f29(0x17d)],{'use_row_checker':_0x5a4146,'sorters':_0x8165a2,'pages':_0x4991d7};}static[a0_0x102ceb(0x253)](_0xde61c4){const _0x1e28e1=a0_0x102ceb;let _0x2194c7={'fields':[ValueUtil['getParams'](_0xde61c4[_0x1e28e1(0x2a9)],'name'),ValueUtil[_0x1e28e1(0x18e)](_0xde61c4[_0x1e28e1(0x2a9)],_0x1e28e1(0x21c))]};return _0xde61c4[_0x1e28e1(0x208)][_0x1e28e1(0x26d)]&&Object[_0x1e28e1(0x192)](_0x2194c7,_0xde61c4[_0x1e28e1(0x208)][_0x1e28e1(0x26d)]),_0x2194c7;}static[a0_0x102ceb(0x2a4)](_0x1f806f){const _0x2b1123=a0_0x102ceb;let {multiple_select:_0x48585d=!0x1,click:_0x2e0e5f}=ValueUtil[_0x2b1123(0x24e)](_0x1f806f['gridConfig'][_0x2b1123(0x202)])?{}:_0x1f806f[_0x2b1123(0x208)][_0x2b1123(0x202)],_0x208329={'selectable':{'multiple':_0x48585d},'appendable':_0x1f806f[_0x2b1123(0x29f)]};return ValueUtil[_0x2b1123(0x1dc)](_0x2e0e5f)&&(_0x208329[_0x2b1123(0x2ae)]={'click':_0x2e0e5f}),_0x208329;}static['getGridButtonSet'](_0x20a48c){const _0x226206=a0_0x102ceb;let _0x547382=_0x20a48c[_0x226206(0x208)][_0x226206(0x2a2)];return ValueUtil[_0x226206(0x24e)](_0x547382)?[]:_0x547382[_0x226206(0x1e0)](_0x18c6d8=>{const _0x5c6bfc=_0x226206;let _0x4ec039={'type':_0x5c6bfc(0x176),'gutterName':'button'};if(ValueUtil[_0x5c6bfc(0x1dc)](_0x18c6d8['icon'])&&(Array[_0x5c6bfc(0x22e)](_0x18c6d8[_0x5c6bfc(0x1ee)])?_0x4ec039[_0x5c6bfc(0x1ee)]=_0x4bf8e5=>{const _0x44423b=_0x5c6bfc;if(ValueUtil[_0x44423b(0x1dc)](_0x4bf8e5))for(let _0x2e5280=0x0;_0x2e5280<_0x18c6d8[_0x44423b(0x1ee)][_0x44423b(0x1a6)];_0x2e5280++){let _0xa9f44f=_0x18c6d8['icon'][_0x2e5280];if(!0x0===ValueUtil[_0x44423b(0x1d6)](_0xa9f44f,_0x4bf8e5,Object[_0x44423b(0x230)](_0xa9f44f)[_0x44423b(0x28c)](_0x26dffa=>'icon'!=_0x26dffa)))return _0xa9f44f[_0x44423b(0x1ee)];}}:_0x4ec039['icon']=_0x18c6d8[_0x5c6bfc(0x1ee)]),ValueUtil[_0x5c6bfc(0x1dc)](_0x18c6d8['name'])&&(_0x4ec039[_0x5c6bfc(0x22d)]=_0x18c6d8[_0x5c6bfc(0x22d)]),ValueUtil['isNotEmpty'](_0x18c6d8['label'])&&(_0x4ec039[_0x5c6bfc(0x259)]=TermsUtil[_0x5c6bfc(0x1af)](_0x18c6d8[_0x5c6bfc(0x25c)])),_0x5c6bfc(0x282)===_0x18c6d8[_0x5c6bfc(0x180)]){let _0x5317cd=ValueUtil[_0x5c6bfc(0x18e)](_0x18c6d8,_0x5c6bfc(0x1b2));[_0x5c6bfc(0x277),_0x5c6bfc(0x1e4)][_0x5c6bfc(0x24c)](_0x5317cd)?_0x4ec039['handlers']={'click':(_0x3fcd93,_0x56863e,_0x5d9e20,_0x355053,_0x45a68f)=>{const _0x1bd4db=_0x5c6bfc;if(_0x355053['id']){let _0x1deec6={'title':_0x1bd4db(0x2a3),'type':'popup','tagname':_0x1bd4db(0x277)==_0x5317cd?_0x1bd4db(0x1a5):_0x1bd4db(0x291),'location':_0x1bd4db(0x277)==_0x5317cd?_0x1bd4db(0x1cb):'pages/hgistory/history-json-list-popup.js','menu':_0x20a48c[_0x1bd4db(0x223)],'size':_0x1bd4db(0x20c),'popup_field':_0x1bd4db(0x258),'parent_field':'id'},_0x2f076c={..._0x355053,'gqlFunc':ValueUtil[_0x1bd4db(0x18e)](_0x20a48c[_0x1bd4db(0x1cc)],_0x1bd4db(0x209),'find_one_func'),'gristConfig':JSON[_0x1bd4db(0x187)](JSON[_0x1bd4db(0x221)](_0x20a48c[_0x1bd4db(0x1f6)][_0x1bd4db(0x1ca)]))};MetaUiUtil[_0x1bd4db(0x1f3)](_0x20a48c,{'logic':_0x1deec6},_0x2f076c);}}}:_0x4ec039[_0x5c6bfc(0x2ae)]={'click':_0x5317cd};}else _0x4ec039[_0x5c6bfc(0x2ae)]={'click':(_0x3f8935,_0xb428a8,_0x7a5af5,_0x26d2ea,_0x18153f)=>{const _0x16f9e9=_0x5c6bfc;_0x26d2ea['id']&&MetaUiUtil[_0x16f9e9(0x1f3)](_0x20a48c,_0x18c6d8,_0x26d2ea);}};return _0x4ec039;});}static async[a0_0x102ceb(0x219)](_0x3b5756){const _0x4c1c56=a0_0x102ceb;let _0x22cbc8=_0x3b5756[_0x4c1c56(0x191)];if(ValueUtil['isEmpty'](_0x22cbc8))return[];let _0xf96f35=[];for(let _0x522707=0x0;_0x522707<_0x22cbc8[_0x4c1c56(0x1a6)];_0x522707++){let {type:_0x40f65e=_0x4c1c56(0x2c3),name:_0x30ec59,header:_0x254c9a,hidden:_0x59bc65=!0x1,editable:_0x17abce=!0x0,mandatory:_0x5ba986=!0x1,sortable:_0x98877c=!0x1,align:_0x19b86b=_0x4c1c56(0x24a),width:_0x4f4b1b=0x0,exportable:_0x9c8ce5=!0x1,select_opt:_0xee3203,object_opt:_0x5ed289}=_0x22cbc8[_0x522707],_0x4d35d7={'type':_0x40f65e,'name':_0x30ec59,'header':ValueUtil[_0x4c1c56(0x24e)](_0x254c9a)?'':TermsUtil[_0x4c1c56(0x1a9)](_0x254c9a),'hidden':_0x59bc65,'sortable':_0x98877c,'width':_0x4f4b1b,'record':{'editable':_0x17abce,'mandatory':_0x5ba986,'align':_0x19b86b}};if(_0x4c1c56(0x1b1)===_0x40f65e&&ValueUtil[_0x4c1c56(0x1dc)](_0xee3203))Array[_0x4c1c56(0x22e)](_0xee3203)?_0x4d35d7[_0x4c1c56(0x2bf)][_0x4c1c56(0x257)]=_0xee3203:_0x4c1c56(0x27a)===_0xee3203[_0x4c1c56(0x180)]?_0x4d35d7['record']['options']=await ServiceUtil[_0x4c1c56(0x298)](_0xee3203[_0x4c1c56(0x2bc)]?_0xee3203[_0x4c1c56(0x2bc)]:_0xee3203[_0x4c1c56(0x22d)]):_0x4c1c56(0x21e)===_0xee3203[_0x4c1c56(0x180)]?_0x4d35d7[_0x4c1c56(0x2bf)]['options']=await ServiceUtil[_0x4c1c56(0x25d)](_0xee3203[_0x4c1c56(0x22d)],_0xee3203[_0x4c1c56(0x243)]):'entity'===_0xee3203['type']&&(_0x4d35d7['record']['options']=await ServiceUtil['getCodeByEntity'](_0xee3203[_0x4c1c56(0x243)]));else{if('object'!==_0x40f65e&&'resource-object'!==_0x40f65e||!ValueUtil[_0x4c1c56(0x1dc)](_0x5ed289))_0x4c1c56(0x27b)===_0x40f65e&&ValueUtil[_0x4c1c56(0x1dc)](_0x5ed289)&&(_0x4d35d7[_0x4c1c56(0x2bf)]['options']=_0x5ed289,_0x5ed289['dispField']&&(_0x4d35d7[_0x4c1c56(0x2bf)][_0x4c1c56(0x257)][_0x4c1c56(0x272)]=await ServiceUtil[_0x4c1c56(0x227)](_0x5ed289)));else{let _0x4e9f61;_0x5ed289[_0x4c1c56(0x1b1)]&&_0x5ed289[_0x4c1c56(0x1b1)][_0x4c1c56(0x184)](_0x5b1967=>{const _0xea468e=_0x4c1c56;_0x5b1967[_0xea468e(0x20b)]||(_0x5b1967['header']=_0x5b1967['name']),_0x5b1967[_0xea468e(0x20b)]=TermsUtil[_0xea468e(0x1a9)](_0x5b1967[_0xea468e(0x20b)]);}),_0x4d35d7[_0x4c1c56(0x2bf)][_0x4c1c56(0x257)]={..._0x5ed289},_0x5ed289[_0x4c1c56(0x274)]&&_0x5ed289[_0x4c1c56(0x274)][_0x4c1c56(0x18c)]&&(_0x4e9f61=[..._0x5ed289[_0x4c1c56(0x274)]['filters']]),_0x4e9f61&&JSON[_0x4c1c56(0x221)](_0x4e9f61)[_0x4c1c56(0x24c)]('::')&&(_0x4d35d7['handlers']={'dblclick':(_0x208117,_0x440289,_0x392d4e,_0x3eb8c9,_0x58f6ce)=>{const _0x438b57=_0x4c1c56;let _0x1caa64=[];_0x4e9f61[_0x438b57(0x184)](_0x16f7b7=>{const _0x3cc8c5=_0x438b57;var {name:_0x2a8ef0,value:_0xf00b6c,operator:_0x4ce059='eq'}=_0x16f7b7;_0xf00b6c[_0x3cc8c5(0x24c)]('::')&&(_0xf00b6c=ValueUtil[_0x3cc8c5(0x18e)](_0x3eb8c9,..._0xf00b6c[_0x3cc8c5(0x19e)]('::','')[_0x3cc8c5(0x1f8)]('.'))),_0xf00b6c||(_0xf00b6c=''),_0x1caa64[_0x3cc8c5(0x199)]({'name':_0x2a8ef0,'operator':_0x4ce059,'value':_0xf00b6c});}),_0x392d4e[_0x438b57(0x2bf)][_0x438b57(0x257)][_0x438b57(0x274)][_0x438b57(0x18c)]=_0x1caa64;}});}}!0x0===_0x3b5756[_0x4c1c56(0x1c7)]&&!0x0===_0x9c8ce5&&(_0x4d35d7[_0x4c1c56(0x1ff)]={'header':_0x4d35d7['header'],'key':_0x4d35d7[_0x4c1c56(0x22d)],'width':_0x4d35d7['width']/0x6,'type':_0x4d35d7[_0x4c1c56(0x180)]}),_0xf96f35[_0x4c1c56(0x199)](_0x4d35d7);}if(!0x0!==this[_0x4c1c56(0x281)])return _0xf96f35;let _0x131f73=await MetaApi[_0x4c1c56(0x1f5)](this['menuId']),{template:_0x307b3f={}}=_0x131f73;if(!_0x307b3f[_0x4c1c56(0x1e7)])return _0xf96f35;let _0x10b1e5=_0x307b3f[_0x4c1c56(0x1e7)];return _0xf96f35=_0xf96f35[_0x4c1c56(0x1e0)](_0x297016=>('id'==_0x297016['name']||(_0x297016[_0x4c1c56(0x2a5)]=!_0x10b1e5[_0x4c1c56(0x24c)](_0x297016[_0x4c1c56(0x22d)]),_0x297016['rank']=_0x10b1e5['indexOf'](_0x297016['name']),-0x1==_0x297016['rank']&&(_0x297016['rank']=0x1869f)),_0x297016)),_0xf96f35['sort']((_0x4c2fb6,_0x1d35f9)=>_0x4c2fb6[_0x4c1c56(0x210)]-_0x1d35f9[_0x4c1c56(0x210)]),_0xf96f35;}static['setGridColumnSearchOption'](_0x1d5ac4,_0x3e9963){const _0x9c65e8=a0_0x102ceb;let _0x2c67c4=_0x1d5ac4['searchConfig'];return _0x2c67c4&&_0x2c67c4[_0x9c65e8(0x184)](_0x2dd7f0=>{const _0x30b4c2=_0x9c65e8;_0x30b4c2(0x2c3)==typeof _0x2dd7f0?_0x3e9963[_0x30b4c2(0x28c)](_0x1c0678=>_0x1c0678[_0x30b4c2(0x22d)]==_0x2dd7f0)[_0x30b4c2(0x184)](_0x1d8433=>{const _0x415656=_0x30b4c2;_0x1d8433[_0x415656(0x28c)]=_0x415656(0x1fa);}):'object'==typeof _0x2dd7f0&&_0x3e9963[_0x30b4c2(0x28c)](_0x439f98=>_0x439f98[_0x30b4c2(0x22d)]==_0x2dd7f0[_0x30b4c2(0x22d)])['forEach'](_0x18eac4=>{const _0x1699cf=_0x30b4c2;_0x18eac4[_0x1699cf(0x28c)]=_0x2dd7f0,_0x18eac4[_0x1699cf(0x28c)][_0x1699cf(0x180)]=_0x1699cf(0x1d7)===_0x18eac4[_0x1699cf(0x180)]?'datetime-local':_0x18eac4[_0x1699cf(0x180)];let _0x515e54=_0x18eac4['filter'][_0x1699cf(0x19f)];if(_0x515e54&&_0x515e54['startsWith'](_0x1699cf(0x1ba))){let _0x43980e=_0x515e54[_0x1699cf(0x1f8)](','),_0x1f3977=[];_0x43980e['forEach'](_0x46ad6f=>{const _0x18e6e1=_0x1699cf,_0x2e3e60=a0_0x26253f();_0x18e6e1(0x1ba)==_0x46ad6f?_0x1f3977['push'](_0x2e3e60[_0x18e6e1(0x273)](_0x18e6e1(0x1e1))):_0x46ad6f['includes']('-')?_0x1f3977[_0x18e6e1(0x199)](_0x2e3e60['subtract'](_0x46ad6f[_0x18e6e1(0x1f8)]('-')[0x1],'day')[_0x18e6e1(0x273)](_0x18e6e1(0x1e1))):_0x46ad6f[_0x18e6e1(0x24c)]('+')&&_0x1f3977[_0x18e6e1(0x199)](_0x2e3e60[_0x18e6e1(0x28a)](_0x46ad6f[_0x18e6e1(0x1f8)]('+')[0x1],'day')['format']('YYYY-MM-DD'));}),_0x18eac4[_0x1699cf(0x28c)][_0x1699cf(0x19f)]=0x1==_0x1f3977[_0x1699cf(0x1a6)]?_0x1f3977[0x0]:_0x1f3977;}});}),_0x3e9963;}static[a0_0x102ceb(0x1f0)](_0x382e40){const _0x438243=a0_0x102ceb;let _0x508429={'title':TermsUtil[_0x438243(0x225)](_0x382e40[_0x438243(0x2a9)][_0x438243(0x259)]),'help':_0x382e40['menuInfo']['help']||'','actions':[...MetaUiUtil[_0x438243(0x2c4)](_0x382e40)]};return _0x382e40[_0x438243(0x1c7)]&&(_0x508429[_0x438243(0x280)]={'name':_0x508429[_0x438243(0x259)],'data':_0x382e40[_0x438243(0x244)][_0x438243(0x1b7)](_0x382e40)}),_0x382e40[_0x438243(0x197)]&&(_0x508429[_0x438243(0x27e)]={'handler':_0x382e40[_0x438243(0x1ce)][_0x438243(0x1b7)](_0x382e40)}),_0x508429;}static['getContextButtons'](_0x594d6a){const _0x1fc508=a0_0x102ceb;let _0x4fd5cc=_0x594d6a[_0x1fc508(0x1fd)];return ValueUtil['isEmpty'](_0x4fd5cc)?[]:_0x4fd5cc[_0x1fc508(0x28c)](_0x491629=>_0x1fc508(0x244)!=_0x491629[_0x1fc508(0x22d)]&&_0x1fc508(0x1ce)!=_0x491629['name']&&'add'!=_0x491629['name'])[_0x1fc508(0x1e0)](_0x5ed67e=>{const _0x433702=_0x1fc508;let {name:_0x4d2a5d,label:_0x1a37b5,style:_0x29c00e,type:_0x15af6c=_0x433702(0x282),action:_0x5439fd,logic:_0xc78648}=_0x5ed67e;if(ValueUtil[_0x433702(0x24e)](_0x4d2a5d))return{'title':'-1'};ValueUtil['isEmpty'](_0x1a37b5)&&(_0x1a37b5=_0x4d2a5d),ValueUtil[_0x433702(0x24e)](_0x29c00e)&&(_0x29c00e=_0x4d2a5d),ValueUtil[_0x433702(0x24e)](_0x5439fd)&&(_0x5439fd=_0x4d2a5d);let _0x50a245=ValueUtil[_0x433702(0x1dc)](_0x29c00e)?CommonButtonStyles[_0x29c00e]||{'icon':_0x29c00e,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}}:{};return{'title':TermsUtil[_0x433702(0x1af)](_0x1a37b5),'action':MetaUiUtil[_0x433702(0x1ad)](_0x594d6a,_0x15af6c,_0x5439fd,_0xc78648),..._0x50a245};})[_0x1fc508(0x28c)](_0x3d8799=>'-1'!=_0x3d8799[_0x1fc508(0x259)]);}static['getContainerButtons'](_0x529594){const _0x9fbfc2=a0_0x102ceb;let _0x1dacd1=_0x529594&&_0x529594[_0x9fbfc2(0x1fd)]?_0x529594[_0x9fbfc2(0x1fd)]:null;return _0x1dacd1?_0x1dacd1['filter'](_0x50fcc3=>'add'!=_0x50fcc3[_0x9fbfc2(0x22d)])[_0x9fbfc2(0x1e0)](_0x8d0152=>{const _0x7b9114=_0x9fbfc2;let {name:_0x46815c,label:_0x3f187e,style:_0x4dc620,type:_0x167fc4=_0x7b9114(0x282),action:_0x2311cb,logic:_0x48cdca}=_0x8d0152;ValueUtil['isEmpty'](_0x3f187e)&&(_0x3f187e=_0x46815c),ValueUtil[_0x7b9114(0x24e)](_0x4dc620)&&(_0x4dc620=_0x46815c),ValueUtil['isEmpty'](_0x2311cb)&&(_0x2311cb=_0x46815c);let _0x1b90ab=MetaUiUtil[_0x7b9114(0x299)](TermsUtil[_0x7b9114(0x1af)](_0x3f187e),_0x4dc620);return _0x1b90ab[_0x7b9114(0x267)]=MetaUiUtil[_0x7b9114(0x1ad)](_0x529594,_0x167fc4,_0x2311cb,_0x48cdca),_0x1b90ab;}):[];}static[a0_0x102ceb(0x299)](_0x45398f,_0x90901b){const _0x40f23e=a0_0x102ceb;let _0x30af33=CommonButtonStyles[_0x90901b]||{'icon':_0x90901b,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}},_0x57b43f=_0x40f23e(0x1bd)+_0x45398f+_0x40f23e(0x24d)+(_0x30af33[_0x40f23e(0x1ee)]?_0x30af33['icon']:'')+_0x40f23e(0x181)+(_0x30af33[_0x40f23e(0x17a)]['raised']?_0x40f23e(0x179):'')+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x30af33[_0x40f23e(0x17a)]['outlined']?_0x40f23e(0x2b1):'')+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x30af33['emphasis'][_0x40f23e(0x292)]?_0x40f23e(0x292):'')+_0x40f23e(0x232)+(_0x30af33[_0x40f23e(0x17a)]['danger']?_0x40f23e(0x263):'')+_0x40f23e(0x2b0);return UiUtil[_0x40f23e(0x23c)](_0x57b43f);}static[a0_0x102ceb(0x1ad)](_0x13e8ed,_0x58e0f6,_0x168bfe,_0x1f369e){const _0x1a8c6c=a0_0x102ceb;if(_0x1a8c6c(0x282)==_0x58e0f6){if(_0x13e8ed[_0x168bfe])return _0x13e8ed[_0x168bfe]['bind'](_0x13e8ed);}else{if(_0x1a8c6c(0x18b)==_0x58e0f6)return()=>MetaUiUtil[_0x1a8c6c(0x178)](_0x13e8ed,_0x1f369e);}return()=>{const _0x4924ab=_0x1a8c6c;UiUtil[_0x4924ab(0x297)](_0x4924ab(0x1a2),_0x4924ab(0x20f),_0x4924ab(0x2c5),'confirm');};}static async[a0_0x102ceb(0x1f3)](_0x3776da,_0x4cc71d,_0x25756d){const _0x20d77b=a0_0x102ceb;let _0x1ec1a5=ValueUtil[_0x20d77b(0x18e)](_0x4cc71d,_0x20d77b(0x1b2)),_0x1c7061=ValueUtil[_0x20d77b(0x18e)](_0x1ec1a5,_0x20d77b(0x180));if('form'===_0x1c7061)_0x1ec1a5[_0x20d77b(0x1b9)]=_0x20d77b(0x26c),_0x1ec1a5['location']=_0x20d77b(0x261),_0x1ec1a5[_0x20d77b(0x1b4)]='id',await MetaUiUtil[_0x20d77b(0x278)](_0x3776da,_0x1ec1a5,_0x25756d);else{if('pass_param'===_0x1c7061)MetaUiUtil['gristButtonPassParam'](_0x3776da,_0x1ec1a5,_0x25756d);else{if('page'===_0x1c7061){let _0x38ee66;_0x1ec1a5[_0x20d77b(0x224)]?(_0x38ee66={},Object[_0x20d77b(0x230)](_0x25756d)[_0x20d77b(0x28c)](_0x59969b=>Object[_0x20d77b(0x230)](_0x1ec1a5['param_field'])[_0x20d77b(0x24c)](_0x59969b))[_0x20d77b(0x1e0)](_0x34461c=>{const _0x19b986=_0x20d77b;Object[_0x19b986(0x230)](_0x1ec1a5[_0x19b986(0x224)])[_0x19b986(0x24c)](_0x34461c)&&('string'==typeof _0x25756d[_0x34461c]?_0x38ee66[_0x1ec1a5[_0x19b986(0x224)][_0x34461c]]=_0x25756d[_0x34461c]:_0x38ee66[_0x1ec1a5[_0x19b986(0x224)][_0x34461c]]={'id':_0x25756d[_0x34461c]['id']});})):_0x38ee66=_0x25756d,UiUtil['pageNavigate'](_0x1ec1a5['url'],[_0x38ee66]);}else _0x20d77b(0x2be)===_0x1c7061?await MetaUiUtil[_0x20d77b(0x278)](_0x3776da,_0x1ec1a5,_0x25756d):_0x20d77b(0x21e)===_0x1c7061?await MetaUiUtil[_0x20d77b(0x1be)](_0x3776da,_0x1ec1a5,_0x25756d):_0x20d77b(0x215)===_0x1c7061&&await MetaUiUtil['gristButtonValueReference'](_0x3776da,_0x1ec1a5,_0x25756d);}}}static async[a0_0x102ceb(0x178)](_0x1561f9,_0x458b40){const _0x24ad75=a0_0x102ceb;if(ValueUtil[_0x24ad75(0x24e)](_0x458b40))return;let _0x130841=_0x1561f9[_0x24ad75(0x1f6)],_0x48a69c=_0x1561f9[_0x24ad75(0x28f)],_0x263f8f=ValueUtil[_0x24ad75(0x18e)](_0x458b40,_0x24ad75(0x180)),_0x2a3169=ValueUtil[_0x24ad75(0x18e)](_0x458b40,_0x24ad75(0x206)),_0xbe9d87=_0x2a3169[_0x24ad75(0x28c)](_0x2b4de0=>_0x2b4de0['startsWith'](_0x24ad75(0x1f6)));if(ValueUtil[_0x24ad75(0x1dc)](_0xbe9d87)){if(!_0x130841)return void UiUtil[_0x24ad75(0x297)](_0x24ad75(0x239),_0x24ad75(0x2b2),'info','confirm');if(0x0==(_0x130841[_0x24ad75(0x23f)]?_0x130841[_0x24ad75(0x23f)][_0x24ad75(0x1ef)]:[])[_0x24ad75(0x1a6)])return void UiUtil[_0x24ad75(0x297)]('title.info',_0x24ad75(0x190),'info','confirm');if(_0x2a3169[_0x24ad75(0x24c)](_0x24ad75(0x27c))||_0x2a3169['includes']('grist_selected')){let _0x41a8ea=_0x130841['selected'];if(ValueUtil[_0x24ad75(0x24e)](_0x41a8ea))return void UiUtil['showAlertPopup'](_0x24ad75(0x17c),_0x24ad75(0x1b0),_0x24ad75(0x2c5),_0x24ad75(0x177));if(_0x2a3169[_0x24ad75(0x24c)](_0x24ad75(0x27c))&&_0x41a8ea[_0x24ad75(0x1a6)]>0x1)return void UiUtil[_0x24ad75(0x297)](_0x24ad75(0x239),_0x24ad75(0x204),_0x24ad75(0x2c5),'confirm');}}let _0xa09f69={};if(_0x2a3169[_0x24ad75(0x24c)](_0x24ad75(0x28c))){if(!_0x48a69c)return void UiUtil[_0x24ad75(0x297)](_0x24ad75(0x239),_0x24ad75(0x17f),_0x24ad75(0x2c5),_0x24ad75(0x177));let _0x3678d3=_0x48a69c?await _0x48a69c[_0x24ad75(0x265)]():[];_0xa09f69[_0x24ad75(0x28c)]=_0x3678d3;}if(_0x2a3169[_0x24ad75(0x24c)](_0x24ad75(0x22c)))_0xa09f69[_0x24ad75(0x1f6)]=_0x130841[_0x24ad75(0x23f)][_0x24ad75(0x1ef)];else{if(_0x2a3169[_0x24ad75(0x24c)]('grist_one'))_0xa09f69[_0x24ad75(0x1f6)]=_0x130841[_0x24ad75(0x2ba)][0x0];else{if(_0x2a3169['includes'](_0x24ad75(0x25a)))_0xa09f69[_0x24ad75(0x1f6)]=_0x130841[_0x24ad75(0x2ba)];else{if(_0x2a3169['includes'](_0x24ad75(0x264))&&(_0xa09f69[_0x24ad75(0x1f6)]=ServiceUtil[_0x24ad75(0x21b)](_0x130841),!_0xa09f69[_0x24ad75(0x1f6)]))return;}}}if(_0x24ad75(0x29c)===_0x263f8f){let _0x4a7147,_0x3033e8=Array['isArray'](_0xa09f69[_0x24ad75(0x1f6)])?_0xa09f69[_0x24ad75(0x1f6)]:[_0xa09f69['grist']];_0x4a7147=_0x458b40[_0x24ad75(0x224)]?_0x3033e8[_0x24ad75(0x1e0)](_0xd233e4=>{const _0x17eb97=_0x24ad75;let _0x2c7a78={};return Object[_0x17eb97(0x230)](_0xd233e4)['filter'](_0x2f9d16=>Object[_0x17eb97(0x230)](_0x458b40[_0x17eb97(0x224)])[_0x17eb97(0x24c)](_0x2f9d16))['map'](_0x4b8e45=>{const _0x13a0a2=_0x17eb97;Object[_0x13a0a2(0x230)](_0x458b40[_0x13a0a2(0x224)])[_0x13a0a2(0x24c)](_0x4b8e45)&&('string'==typeof _0xd233e4[_0x4b8e45]?_0x2c7a78[_0x458b40[_0x13a0a2(0x224)][_0x4b8e45]]=_0xd233e4[_0x4b8e45]:_0x2c7a78[_0x458b40[_0x13a0a2(0x224)][_0x4b8e45]]={'id':_0xd233e4[_0x4b8e45]['id']});}),_0x2c7a78;}):_0x3033e8,UiUtil[_0x24ad75(0x289)](_0x458b40[_0x24ad75(0x240)],_0x4a7147);}else{if(_0x24ad75(0x2be)===_0x263f8f){let _0x202bc5={..._0xa09f69[_0x24ad75(0x1f6)]?_0xa09f69[_0x24ad75(0x1f6)]:{},..._0xa09f69[_0x24ad75(0x28c)]?_0xa09f69[_0x24ad75(0x28c)]:{}};await MetaUiUtil[_0x24ad75(0x278)](_0x1561f9,_0x458b40,_0x202bc5);}else _0x24ad75(0x21e)===_0x263f8f&&await MetaUiUtil[_0x24ad75(0x1be)](_0x1561f9,_0x458b40,_0xa09f69);}}static[a0_0x102ceb(0x1aa)](_0x137db1,_0x21722b,_0x365db5){const _0x520f24=a0_0x102ceb;let _0x1b37d1=_0x21722b[_0x520f24(0x1a0)],_0x15b5d1={},_0x4be794=_0x137db1[_0x520f24(0x20a)][_0x520f24(0x290)](),_0x26de76=_0x137db1;_0x15b5d1=_0x4be794['startsWith'](_0x520f24(0x22a))?{'detail':{..._0x1b37d1}}:_0x4be794[_0x520f24(0x2c2)](_0x520f24(0x284))?_0x137db1['detailElement']['tagName'][_0x520f24(0x290)]()[_0x520f24(0x2c2)](_0x520f24(0x2aa))?{'detail':{..._0x1b37d1}}:{'self':{..._0x1b37d1}}:_0x1b37d1,Object[_0x520f24(0x230)](_0x15b5d1)['forEach'](_0x38c768=>{const _0x298bcd=_0x520f24;_0x298bcd(0x1e7)==_0x38c768?_0x26de76=_0x137db1[_0x298bcd(0x1ae)][_0x298bcd(0x1c3)]:_0x298bcd(0x1fb)==_0x38c768?_0x26de76=_0x137db1[_0x298bcd(0x1ae)]?_0x137db1[_0x298bcd(0x1ae)][_0x298bcd(0x203)]:_0x137db1[_0x298bcd(0x203)]:'self'==_0x38c768&&(_0x26de76=_0x137db1),Object['keys'](_0x15b5d1[_0x38c768])[_0x298bcd(0x184)](_0x5dbd13=>{const _0x52446d=_0x298bcd;let _0x450c5d=_0x26de76[_0x52446d(0x1e9)][_0x52446d(0x1ab)]('#'+_0x5dbd13);_0x365db5['id']&&_0x450c5d[_0x52446d(0x234)](_0x365db5['id']);let _0x2d0f7b=_0x15b5d1[_0x38c768][_0x5dbd13];Object['keys'](_0x2d0f7b)[_0x52446d(0x184)](_0x4c0fb0=>{let _0x1021a9=_0x2d0f7b[_0x4c0fb0],_0x57f214='*'===_0x1021a9?_0x365db5:_0x365db5[_0x1021a9];_0x450c5d[_0x4c0fb0]=_0x57f214;});});});}static async[a0_0x102ceb(0x278)](_0x39ed1a,_0x3b141f,_0x4c968a){const _0x4d0546=a0_0x102ceb;let _0x1680a4=TermsUtil[_0x4d0546(0x225)](_0x3b141f[_0x4d0546(0x259)]);ValueUtil[_0x4d0546(0x1dc)](_0x3b141f[_0x4d0546(0x1fe)])&&(_0x1680a4=_0x1680a4+'('+ValueUtil['getParams'](_0x4c968a,..._0x3b141f[_0x4d0546(0x1fe)]['split']('.'))+')');let _0x379152=_0x3b141f[_0x4d0546(0x249)]&&_0x4d0546(0x2c3)==typeof _0x3b141f['after']&&_0x4d0546(0x1d0)===_0x3b141f[_0x4d0546(0x249)]&&_0x39ed1a&&_0x39ed1a[_0x4d0546(0x1d0)]?_0x39ed1a[_0x4d0546(0x1d0)][_0x4d0546(0x1b7)](_0x39ed1a):void 0x0;UiUtil['openDynamicPopup'](_0x1680a4,_0x3b141f,_0x4c968a,_0x379152);}static async['commonButtonCallScenario'](_0x4ed299,_0x1e975a,_0x14ad29){const _0x494099=a0_0x102ceb;let _0x2caf2c=await ServiceUtil[_0x494099(0x24b)](_0x494099(0x2b5),_0x1e975a['name'],_0x14ad29);if(!_0x2caf2c[_0x494099(0x2ab)]&&!ValueUtil[_0x494099(0x24e)](_0x1e975a[_0x494099(0x249)])&&_0x1e975a[_0x494099(0x249)]){if('fetch'!==_0x1e975a[_0x494099(0x249)]){if(_0x494099(0x1d2)==typeof _0x1e975a[_0x494099(0x249)]){let _0x3a0422=_0x1e975a['after'],_0x5bfb59=ValueUtil[_0x494099(0x18e)](_0x2caf2c['data']['runScenario'][_0x494099(0x23f)],..._0x3a0422[_0x494099(0x1f1)][_0x494099(0x1f8)]('.'));if(0x0==Array['isArray'](_0x5bfb59)&&(_0x5bfb59=[_0x5bfb59]),_0x494099(0x2c1)===_0x3a0422[_0x494099(0x180)])_0x3a0422['tagname']=_0x494099(0x26c),_0x3a0422[_0x494099(0x276)]=_0x494099(0x261),_0x3a0422[_0x494099(0x1b4)]='id',_0x5bfb59=_0x5bfb59[0x0],await MetaUiUtil[_0x494099(0x278)](_0x4ed299,_0x3a0422,_0x5bfb59);else{if(_0x494099(0x29c)===_0x3a0422[_0x494099(0x180)]){let _0x913ab0,_0x42b264=_0x5bfb59;_0x913ab0=_0x3a0422['param_field']?_0x42b264[_0x494099(0x1e0)](_0x372c41=>{const _0x4738fa=_0x494099;let _0x51932a={};return Object[_0x4738fa(0x230)](_0x372c41)[_0x4738fa(0x28c)](_0x2f6288=>Object[_0x4738fa(0x230)](_0x3a0422[_0x4738fa(0x224)])[_0x4738fa(0x24c)](_0x2f6288))[_0x4738fa(0x1e0)](_0x3de9d2=>{const _0x1b7019=_0x4738fa;Object[_0x1b7019(0x230)](_0x3a0422[_0x1b7019(0x224)])[_0x1b7019(0x24c)](_0x3de9d2)&&('string'==typeof _0x372c41[_0x3de9d2]?_0x51932a[_0x3a0422['param_field'][_0x3de9d2]]=_0x372c41[_0x3de9d2]:_0x51932a[_0x3a0422['param_field'][_0x3de9d2]]={'id':_0x372c41[_0x3de9d2]['id']});}),_0x51932a;}):_0x42b264,UiUtil[_0x494099(0x289)](_0x3a0422[_0x494099(0x240)],_0x913ab0);}else _0x494099(0x1ac)===_0x3a0422[_0x494099(0x180)]?(_0x5bfb59=_0x5bfb59[0x0],MetaUiUtil['gristButtonPassParam'](_0x4ed299,_0x3a0422,_0x5bfb59)):_0x494099(0x2be)===_0x3a0422['type']?(_0x5bfb59=_0x5bfb59[0x0],await MetaUiUtil[_0x494099(0x278)](_0x4ed299,_0x3a0422,_0x5bfb59)):'value_reference'===_0x3a0422[_0x494099(0x180)]&&(_0x5bfb59=_0x5bfb59[0x0],await MetaUiUtil['gristButtonValueReference'](_0x4ed299,_0x3a0422,_0x5bfb59));}}}else _0x4ed299[_0x494099(0x1d0)]();}}static async[a0_0x102ceb(0x237)](_0x300059,_0x23744e,_0x2d7f57){const _0xff4266=a0_0x102ceb;for(let _0x264309=0x0;_0x264309<_0x23744e[_0xff4266(0x1f4)][_0xff4266(0x1a6)];_0x264309++){let _0x393f1f=_0x23744e[_0xff4266(0x1f4)][_0x264309];!0x0===ValueUtil[_0xff4266(0x1d6)](_0x393f1f,_0x2d7f57,Object[_0xff4266(0x230)](_0x393f1f)[_0xff4266(0x28c)](_0x7e0af1=>'logic'!=_0x7e0af1))&&await MetaUiUtil[_0xff4266(0x1f3)](_0x300059,_0x393f1f,_0x2d7f57);}}static[a0_0x102ceb(0x1eb)](_0x4230c6,_0x343959){return{'type':_0x4230c6,'name':_0x343959,'sortable':!0x1,'hidden':!0x0};}static[a0_0x102ceb(0x212)](_0x3438c5,_0x2b97d6,_0x559622,_0x2b41b8,_0x41abe5,_0xf8ee6c){let _0x4b36a0=TermsUtil['tLabel'](_0x2b97d6);return{'type':_0x3438c5,'name':_0x2b97d6,'header':_0x4b36a0,'record':{'align':_0x559622,'editable':_0x2b41b8},'sortable':_0x41abe5,'width':_0xf8ee6c,'imex':{'width':Math['floor'](_0xf8ee6c/0x6),'header':_0x4b36a0,'type':_0x3438c5,'key':_0x2b97d6}};}static[a0_0x102ceb(0x1c0)](_0x326c76,_0x2de1f8,_0x3050d8,_0x125691,_0x4a97aa,_0x395a89,_0x4b4146){const _0x356023=a0_0x102ceb;let _0x53dc13=TermsUtil['tLabel'](_0x3050d8);return{'type':_0x326c76,'name':_0x2de1f8,'header':_0x53dc13,'record':{'align':_0x125691,'editable':_0x4a97aa},'sortable':_0x395a89,'width':_0x4b4146,'imex':{'width':Math[_0x356023(0x1cd)](_0x4b4146/0x6),'header':_0x53dc13,'type':_0x326c76,'key':_0x2de1f8}};}static['getGristColumnConfig3'](_0x442ad3,_0x218f1e,_0x43ec76,_0x213653,_0x7bc14f,_0x23e3a1,_0x53182e,_0x1999d0){const _0x363e2c=a0_0x102ceb;let _0x18dc29=TermsUtil['tLabel'](_0x43ec76);return{'type':_0x442ad3,'name':_0x218f1e,'header':_0x18dc29,'record':{'align':_0x213653,'editable':_0x7bc14f,'mandatory':_0x53182e},'sortable':_0x23e3a1,'width':_0x1999d0,'imex':{'width':Math[_0x363e2c(0x1cd)](_0x1999d0/0x6),'header':_0x18dc29,'type':_0x442ad3,'key':_0x218f1e}};}static['getGristSelectorColumnConfig'](_0x272e1e,_0x85bbb0,_0x588472,_0x2ac696,_0x3e370b,_0x1034b3,_0x4d7c36){const _0x237442=a0_0x102ceb;let _0x59c129=TermsUtil[_0x237442(0x1a9)](_0x85bbb0);return{'type':_0x237442(0x1b1),'name':_0x272e1e,'header':_0x59c129,'record':{'align':_0x588472,'editable':!0x0,'mandatory':_0x1034b3,'options':_0x4d7c36},'sortable':_0x2ac696,'width':_0x3e370b,'imex':{'width':Math[_0x237442(0x1cd)](_0x3e370b/0x6),'header':_0x59c129,'type':'string','key':_0x272e1e}};}static async[a0_0x102ceb(0x1e2)](_0x3aa990,_0x5eff2a,_0x14fb88,_0x4a0b67,_0x3eedcb,_0x4f4ab2,_0x4659b3){const _0x249209=a0_0x102ceb;let _0x6911a4=await ServiceUtil[_0x249209(0x298)](_0x4659b3);return MetaUiUtil[_0x249209(0x174)](_0x3aa990,_0x5eff2a,_0x14fb88,_0x4a0b67,_0x3eedcb,_0x4f4ab2,_0x6911a4);}static['getGristSearchColumnConfig'](_0x4db899,_0x40ed31,_0x47fb6f,_0x1445ae,_0x23fe66){let _0x376996=TermsUtil['tLabel'](_0x47fb6f),_0x2cd2ad={'name':_0x4db899,'type':_0x40ed31,'label':_0x376996,'operator':_0x1445ae,'imex':{'width':0x10,'header':_0x376996,'type':_0x40ed31,'key':_0x4db899}};return _0x23fe66&&(_0x2cd2ad['options']=_0x23fe66),_0x2cd2ad;}static async[a0_0x102ceb(0x2b8)](_0x207ce3,_0xa241ef,_0x3b3714,_0x4295f4,_0x7d1574){const _0x287ca7=a0_0x102ceb;let _0x24a1d8=await ServiceUtil[_0x287ca7(0x298)](_0x7d1574);return MetaUiUtil[_0x287ca7(0x1a4)](_0x207ce3,_0xa241ef,_0x3b3714,_0x4295f4,_0x24a1d8);}static[a0_0x102ceb(0x1d1)](){return[css`
|
|
5
|
+
`,'variables':{'id':null}}))[_0x1ada25(0x291)])return;let _0x429618,_0x1254ff=[{'name':_0x1ada25(0x1ec),'operator':'eq','value':_0x23415a}],_0x49fd20=await ServiceUtil[_0x1ada25(0x215)](_0x1ada25(0x224),_0x1254ff,null,0x0,0x0,_0x1ada25(0x1c4));if(_0x49fd20&&_0x49fd20[_0x1ada25(0x28c)]&&0x0!=_0x49fd20[_0x1ada25(0x28c)][_0x1ada25(0x268)]?(_0x429618=_0x49fd20[_0x1ada25(0x28c)][0x0],!_0x429618[_0x1ada25(0x275)]&&_0x468809[_0x1ada25(0x152)]&&(_0x429618[_0x1ada25(0x275)]=_0x468809[_0x1ada25(0x152)])):_0x468809[_0x1ada25(0x152)]&&(_0x429618={'id':_0x23415a,'template':_0x468809[_0x1ada25(0x152)]}),!_0x429618)throw new Error(TermsUtil['tText'](_0x1ada25(0x270),{'value':TermsUtil[_0x1ada25(0x210)](_0x1ada25(0x207))+'\x20'+_0x23415a}));if(!_0x429618['template'])throw new Error(TermsUtil[_0x1ada25(0x218)](_0x1ada25(0x270),{'value':TermsUtil[_0x1ada25(0x210)](_0x1ada25(0x207))+'\x20'+TermsUtil[_0x1ada25(0x1c0)](_0x1ada25(0x1f9))}));return this[_0x1ada25(0x155)]=_0x429618['id'],JSON[_0x1ada25(0x164)](MetaCrypto[_0x1ada25(0x25f)](_0x429618['template']));}static[a0_0x5393c2(0x15c)](){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':_0x4d4e1c=>Boolean(_0x4d4e1c)},'is_popup':{'type':Boolean,'converter':_0x53a2c0=>Boolean(_0x53a2c0)},'is_activity':{'type':Boolean,'converter':_0x1e696d=>Boolean(_0x1e696d)},'is_readonly':{'type':Boolean,'converter':_0x4db922=>Boolean(_0x4db922)}};}static async['getMenuMeta'](_0x353069){const _0x505106=a0_0x5393c2;if(0x0==store[_0x505106(0x288)]()[_0x505106(0x260)]['runnerPermission'])return void document[_0x505106(0x19d)](new CustomEvent('notify',{'detail':{'level':_0x505106(0x25a),'message':TermsUtil[_0x505106(0x1e9)](_0x505106(0x258))}}));let _0x3652f0=_0x353069[_0x505106(0x240)]?UiUtil['currentRouting']():_0x353069[_0x505106(0x200)];_0x353069[_0x505106(0x18e)]=_0x3652f0;let _0xb1d0a0=await MetaUiUtil[_0x505106(0x196)](_0x353069,_0x3652f0);return!0x0===_0x353069[_0x505106(0x1fb)]&&(_0xb1d0a0[_0x505106(0x167)][_0x505106(0x1b0)][_0x505106(0x1ce)]=!0x1,_0xb1d0a0[_0x505106(0x167)][_0x505106(0x1b0)][_0x505106(0x1c7)]=_0x505106(0x1d7),_0xb1d0a0[_0x505106(0x167)][_0x505106(0x21b)]=!0x1,_0xb1d0a0[_0x505106(0x167)][_0x505106(0x1e8)]=[],_0xb1d0a0[_0x505106(0x1e8)]=_0xb1d0a0[_0x505106(0x1e8)][_0x505106(0x14a)](_0x1a7ef4=>'add'==_0x1a7ef4[_0x505106(0x241)])),!0x0===_0x353069['is_readonly']&&(_0xb1d0a0[_0x505106(0x1f2)][_0x505106(0x274)](_0x55dd00=>{const _0x253fb9=_0x505106;_0x55dd00[_0x253fb9(0x1d4)]=!0x1;}),_0xb1d0a0[_0x505106(0x1e8)]=_0xb1d0a0['button'][_0x505106(0x14a)](_0x19de74=>'add'!=_0x19de74[_0x505106(0x241)])),!0x1===_0x353069[_0x505106(0x21b)]&&(_0xb1d0a0['grid'][_0x505106(0x21b)]=!0x1),_0xb1d0a0;}static[a0_0x5393c2(0x1bf)](..._0x261ff8){return{'pages':_0x261ff8};}static[a0_0x5393c2(0x281)](_0x1837e0,_0x4a8d9b){const _0x7a7b53=a0_0x5393c2;let _0x149aa6=[{'type':_0x7a7b53(0x1c9),'gutterName':'dirty'},{'type':_0x7a7b53(0x1c9),'gutterName':'sequence'}];return _0x1837e0&&_0x149aa6['push']({'type':'gutter','gutterName':_0x7a7b53(0x1f7),'multiple':_0x4a8d9b}),_0x149aa6;}static[a0_0x5393c2(0x1fc)](_0xca898e){return{'selectable':{'multiple':_0xca898e}};}static async[a0_0x5393c2(0x24d)](_0x2436e3){const _0x5e55d8=a0_0x5393c2;let _0x1ba0eb=MetaUiUtil[_0x5e55d8(0x1da)](_0x2436e3),_0x376167=MetaUiUtil[_0x5e55d8(0x235)](_0x2436e3),_0x177544=MetaUiUtil[_0x5e55d8(0x232)](_0x2436e3),_0x1aaf95=MetaUiUtil[_0x5e55d8(0x26e)](_0x2436e3),_0x51b3bd=await MetaUiUtil[_0x5e55d8(0x1de)](_0x2436e3),_0xdddd2c=MetaUiUtil[_0x5e55d8(0x281)](_0x1ba0eb[_0x5e55d8(0x1ce)],_0x177544[_0x5e55d8(0x1af)][_0x5e55d8(0x237)]);return 0x1==_0x2436e3[_0x5e55d8(0x195)]&&(_0x51b3bd=MetaUiUtil[_0x5e55d8(0x24c)](_0x2436e3,_0x51b3bd)),{'list':_0x376167,'pagination':_0x1ba0eb[_0x5e55d8(0x1c7)],'sorters':_0x1ba0eb[_0x5e55d8(0x21d)],'rows':_0x177544,'columns':[..._0xdddd2c,..._0x1aaf95,..._0x51b3bd]};}static async[a0_0x5393c2(0x272)](_0x4355bf){const _0xf8c018=a0_0x5393c2;let _0x5722b0=_0x4355bf[_0xf8c018(0x181)],_0x299525=[];for(let _0x985636=0x0;_0x985636<_0x5722b0[_0xf8c018(0x268)];_0x985636++){let {type:_0x4d3c09=_0xf8c018(0x276),name:_0x1d9674,header:_0x278ee1,hidden:_0x582e48=!0x1,editable:_0x505129=!0x0,mandatory:_0x56c22b=!0x1,align:_0x4aa203='left',select_opt:_0xd05cda,object_opt:_0xc3190d}=_0x5722b0[_0x985636],_0x5cfc67={'type':_0x4d3c09,'name':_0x1d9674,'header_txt':ValueUtil['isEmpty'](_0x278ee1)?TermsUtil[_0xf8c018(0x1c0)](_0x1d9674):TermsUtil[_0xf8c018(0x1c0)](_0x278ee1),'header':{'renderer':function(_0x3182a2){return _0x3182a2['header_txt'];}},'hidden':_0x582e48,'record':{'editable':_0x505129,'mandatory':_0x56c22b,'align':_0x4aa203,'classifier':function(){},'renderer':getRenderer(_0x4d3c09)}};_0x505129&&(_0x5cfc67['record']['editor']=getEditor(_0x4d3c09)),_0xf8c018(0x1d6)===_0x4d3c09&&ValueUtil['isNotEmpty'](_0xd05cda)?Array['isArray'](_0xd05cda)?_0x5cfc67[_0xf8c018(0x1ac)]['options']=_0xd05cda:_0xf8c018(0x293)===_0xd05cda[_0xf8c018(0x15a)]?_0x5cfc67[_0xf8c018(0x1ac)]['options']=await ServiceUtil[_0xf8c018(0x1f8)](_0xd05cda[_0xf8c018(0x1c6)]?_0xd05cda['values']:_0xd05cda[_0xf8c018(0x241)]):'scenario'===_0xd05cda['type']?_0x5cfc67[_0xf8c018(0x1ac)]['options']=await ServiceUtil[_0xf8c018(0x206)](_0xd05cda[_0xf8c018(0x241)],_0xd05cda[_0xf8c018(0x217)]):_0xf8c018(0x24f)===_0xd05cda['type']&&(_0x5cfc67[_0xf8c018(0x1ac)]['options']=await ServiceUtil[_0xf8c018(0x18d)](_0xd05cda[_0xf8c018(0x217)])):_0xf8c018(0x19b)!==_0x4d3c09&&'resource-object'!==_0x4d3c09||!ValueUtil[_0xf8c018(0x1a6)](_0xc3190d)?_0xf8c018(0x19e)===_0x4d3c09&&ValueUtil[_0xf8c018(0x1a6)](_0xc3190d)&&(_0x5cfc67[_0xf8c018(0x1ac)]['options']=_0xc3190d,_0xc3190d['dispField']&&(_0x5cfc67[_0xf8c018(0x1ac)][_0xf8c018(0x233)]['codes']=await ServiceUtil[_0xf8c018(0x18d)](_0xc3190d))):(_0xc3190d[_0xf8c018(0x1d6)]&&_0xc3190d[_0xf8c018(0x1d6)][_0xf8c018(0x274)](_0x579d54=>{const _0xad3f00=_0xf8c018;_0x579d54['header']||(_0x579d54[_0xad3f00(0x20c)]=_0x579d54[_0xad3f00(0x241)]),_0x579d54['header']=TermsUtil[_0xad3f00(0x1c0)](_0x579d54[_0xad3f00(0x20c)]);}),_0x5cfc67[_0xf8c018(0x1ac)][_0xf8c018(0x233)]=_0xc3190d),_0x299525[_0xf8c018(0x1cd)](_0x5cfc67);}return _0x299525;}static['getGridOptionSet'](_0x1d8fc7){const _0x264a97=a0_0x5393c2;let _0x5c73a=_0x1d8fc7[_0x264a97(0x230)];_0x1d8fc7['useFilterForm']=!_0x5c73a||null==_0x5c73a[_0x264a97(0x21b)]||_0x5c73a['use_filter_form'];let {mobile_mode:_0x5c52af=_0x264a97(0x1b3),desk_mode:_0x5d3be5=_0x264a97(0x220),view_mode:_0x572df2=[],use_row_checker:_0x26e182=!0x0,sorters:_0xc38b1=[],pages:_0x33d812=[0x32,0x64,0x1f4,0x3e8]}=ValueUtil['isEmpty'](_0x5c73a[_0x264a97(0x1b0)])?{}:_0x5c73a[_0x264a97(0x1b0)];return _0x264a97(0x1d7)===_0x33d812||'-1'===_0x33d812?(_0x1d8fc7[_0x264a97(0x163)]=!0x0,_0x33d812={'infinite':!0x0}):(_0x1d8fc7[_0x264a97(0x163)]=!0x1,_0x33d812[_0x264a97(0x21f)](function(_0x1ccda4,_0x4992b8){return _0x1ccda4-_0x4992b8;}),_0x33d812={'pages':_0x33d812}),ValueUtil[_0x264a97(0x1a6)](_0x572df2)&&(0x1==_0x572df2['length']?(_0x5d3be5=_0x572df2[0x0],_0x5c52af=_0x572df2[0x0]):_0x572df2['length']>=0x2&&(_0x572df2[_0x264a97(0x157)](_0x5c52af)||(_0x5c52af=_0x572df2[0x1]),_0x572df2['includes'](_0x5d3be5)||(_0x5d3be5=_0x572df2[0x0]))),_0x1d8fc7[_0x264a97(0x209)]=_0x5c52af,_0x1d8fc7[_0x264a97(0x190)]=_0x5d3be5,_0x1d8fc7[_0x264a97(0x194)]=_0x572df2,_0x1d8fc7[_0x264a97(0x14d)]=UiUtil[_0x264a97(0x263)]()?_0x1d8fc7[_0x264a97(0x209)]:_0x1d8fc7[_0x264a97(0x190)],{'use_row_checker':_0x26e182,'sorters':_0xc38b1,'pages':_0x33d812};}static[a0_0x5393c2(0x235)](_0x123f0b){const _0x212fb0=a0_0x5393c2;let _0x13a930={'fields':[ValueUtil[_0x212fb0(0x28b)](_0x123f0b[_0x212fb0(0x280)],'name'),ValueUtil[_0x212fb0(0x28b)](_0x123f0b[_0x212fb0(0x280)],_0x212fb0(0x1b8))]};return _0x123f0b[_0x212fb0(0x230)][_0x212fb0(0x264)]&&Object[_0x212fb0(0x245)](_0x13a930,_0x123f0b[_0x212fb0(0x230)][_0x212fb0(0x264)]),_0x13a930;}static[a0_0x5393c2(0x232)](_0x3a89ac){const _0x482372=a0_0x5393c2;let {multiple_select:_0x1a3863=!0x1,click:_0x4b60c6}=ValueUtil['isEmpty'](_0x3a89ac[_0x482372(0x230)][_0x482372(0x1f6)])?{}:_0x3a89ac[_0x482372(0x230)][_0x482372(0x1f6)],_0x25c459={'selectable':{'multiple':_0x1a3863},'appendable':_0x3a89ac[_0x482372(0x202)]};return ValueUtil[_0x482372(0x1a6)](_0x4b60c6)&&(_0x25c459[_0x482372(0x251)]={'click':_0x4b60c6}),_0x25c459;}static[a0_0x5393c2(0x26e)](_0x39995c){const _0x5f1890=a0_0x5393c2;let _0x20aff3=_0x39995c[_0x5f1890(0x230)][_0x5f1890(0x1e8)];return ValueUtil['isEmpty'](_0x20aff3)?[]:_0x20aff3[_0x5f1890(0x1d3)](_0x4113c2=>{const _0x18c056=_0x5f1890;let _0x1744b6={'type':'gutter','gutterName':_0x18c056(0x1e8)};if(ValueUtil['isNotEmpty'](_0x4113c2['icon'])&&(Array[_0x18c056(0x16f)](_0x4113c2['icon'])?_0x1744b6[_0x18c056(0x188)]=_0x2b33f5=>{const _0xe26dbe=_0x18c056;if(ValueUtil['isNotEmpty'](_0x2b33f5))for(let _0x27a641=0x0;_0x27a641<_0x4113c2[_0xe26dbe(0x188)][_0xe26dbe(0x268)];_0x27a641++){let _0x125fba=_0x4113c2[_0xe26dbe(0x188)][_0x27a641];if(!0x0===ValueUtil['compareObjectValues'](_0x125fba,_0x2b33f5,Object[_0xe26dbe(0x20b)](_0x125fba)['filter'](_0x55c250=>_0xe26dbe(0x188)!=_0x55c250)))return _0x125fba['icon'];}}:_0x1744b6[_0x18c056(0x188)]=_0x4113c2[_0x18c056(0x188)]),ValueUtil['isNotEmpty'](_0x4113c2['name'])&&(_0x1744b6[_0x18c056(0x241)]=_0x4113c2[_0x18c056(0x241)]),ValueUtil['isNotEmpty'](_0x4113c2[_0x18c056(0x1cc)])&&(_0x1744b6[_0x18c056(0x165)]=TermsUtil[_0x18c056(0x14e)](_0x4113c2['label'])),_0x18c056(0x292)===_0x4113c2['type']){let _0x2b7538=ValueUtil[_0x18c056(0x28b)](_0x4113c2,'logic');['history_copy',_0x18c056(0x19f)][_0x18c056(0x157)](_0x2b7538)?_0x1744b6['handlers']={'click':(_0x57cf81,_0x1362a1,_0xb85fb1,_0x5cd59c,_0x4ee2c7)=>{const _0x181147=_0x18c056;if(_0x5cd59c['id']){let _0x1da997={'title':_0x181147(0x19c),'type':_0x181147(0x1ef),'tagname':'history_copy'==_0x2b7538?_0x181147(0x1f4):'history-json-list-popup','location':_0x181147(0x1a5)==_0x2b7538?_0x181147(0x1e4):_0x181147(0x265),'menu':_0x39995c['currentRouting'],'size':_0x181147(0x27a),'popup_field':_0x181147(0x20e),'parent_field':'id'},_0x5a9036={..._0x5cd59c,'gqlFunc':ValueUtil[_0x181147(0x28b)](_0x39995c[_0x181147(0x1bb)],'query','find_one_func'),'gristConfig':JSON[_0x181147(0x164)](JSON['stringify'](_0x39995c[_0x181147(0x239)][_0x181147(0x175)]))};MetaUiUtil[_0x181147(0x150)](_0x39995c,{'logic':_0x1da997},_0x5a9036);}}}:_0x1744b6[_0x18c056(0x251)]={'click':_0x2b7538};}else _0x1744b6[_0x18c056(0x251)]={'click':(_0x5aa2e7,_0x4b7984,_0x4a8fdf,_0x37d471,_0x191a4d)=>{_0x37d471['id']&&MetaUiUtil['gristButtonHandler'](_0x39995c,_0x4113c2,_0x37d471);}};return _0x1744b6;});}static async['getGridColumnSet'](_0x3f54ae){const _0x7ea574=a0_0x5393c2;let _0x33b0e2=_0x3f54ae['gridColumnConfig'];if(ValueUtil[_0x7ea574(0x169)](_0x33b0e2))return[];let _0x21d029=[];for(let _0x4df053=0x0;_0x4df053<_0x33b0e2[_0x7ea574(0x268)];_0x4df053++){let {type:_0x150575=_0x7ea574(0x276),name:_0x423aa1,header:_0x3b5883,hidden:_0xe6d516=!0x1,editable:_0xb58f73=!0x0,mandatory:_0x324d5b=!0x1,sortable:_0x3160c2=!0x1,align:_0x41df09=_0x7ea574(0x256),width:_0x3cfb3b=0x0,exportable:_0x3878ae=!0x1,select_opt:_0x25e36b,object_opt:_0x243629}=_0x33b0e2[_0x4df053],_0x221121={'type':_0x150575,'name':_0x423aa1,'header':ValueUtil['isEmpty'](_0x3b5883)?'':TermsUtil['tLabel'](_0x3b5883),'hidden':_0xe6d516,'sortable':_0x3160c2,'width':_0x3cfb3b,'record':{'editable':_0xb58f73,'mandatory':_0x324d5b,'align':_0x41df09}};if(_0x7ea574(0x1d6)===_0x150575&&ValueUtil['isNotEmpty'](_0x25e36b))Array['isArray'](_0x25e36b)?_0x221121[_0x7ea574(0x1ac)][_0x7ea574(0x233)]=_0x25e36b:_0x7ea574(0x293)===_0x25e36b[_0x7ea574(0x15a)]?_0x221121['record'][_0x7ea574(0x233)]=await ServiceUtil[_0x7ea574(0x1f8)](_0x25e36b[_0x7ea574(0x1c6)]?_0x25e36b[_0x7ea574(0x1c6)]:_0x25e36b[_0x7ea574(0x241)]):'scenario'===_0x25e36b[_0x7ea574(0x15a)]?_0x221121['record']['options']=await ServiceUtil[_0x7ea574(0x206)](_0x25e36b[_0x7ea574(0x241)],_0x25e36b[_0x7ea574(0x217)]):'entity'===_0x25e36b[_0x7ea574(0x15a)]&&(_0x221121['record']['options']=await ServiceUtil[_0x7ea574(0x18d)](_0x25e36b[_0x7ea574(0x217)]));else{if('object'!==_0x150575&&_0x7ea574(0x261)!==_0x150575||!ValueUtil['isNotEmpty'](_0x243629))_0x7ea574(0x19e)===_0x150575&&ValueUtil[_0x7ea574(0x1a6)](_0x243629)&&(_0x221121[_0x7ea574(0x1ac)][_0x7ea574(0x233)]=_0x243629,_0x243629[_0x7ea574(0x16e)]&&(_0x221121[_0x7ea574(0x1ac)][_0x7ea574(0x233)][_0x7ea574(0x277)]=await ServiceUtil[_0x7ea574(0x18d)](_0x243629)));else{let _0xdf9a4c;_0x243629[_0x7ea574(0x1d6)]&&_0x243629[_0x7ea574(0x1d6)][_0x7ea574(0x274)](_0x3feda4=>{const _0xb03083=_0x7ea574;_0x3feda4[_0xb03083(0x20c)]||(_0x3feda4['header']=_0x3feda4[_0xb03083(0x241)]),_0x3feda4['header']=TermsUtil['tLabel'](_0x3feda4[_0xb03083(0x20c)]);}),_0x221121['record'][_0x7ea574(0x233)]={..._0x243629},_0x243629[_0x7ea574(0x289)]&&_0x243629[_0x7ea574(0x289)][_0x7ea574(0x26c)]&&(_0xdf9a4c=[..._0x243629[_0x7ea574(0x289)][_0x7ea574(0x26c)]]),_0xdf9a4c&&JSON['stringify'](_0xdf9a4c)[_0x7ea574(0x157)]('::')&&(_0x221121['handlers']={'dblclick':(_0x3a8b36,_0xcfd709,_0xfb2246,_0xf2eb20,_0x13db26)=>{const _0x4e9617=_0x7ea574;let _0x3bc05c=[];_0xdf9a4c[_0x4e9617(0x274)](_0x497a95=>{const _0xe50112=_0x4e9617;var {name:_0x2f9548,value:_0x226524,operator:_0xd8d44d='eq'}=_0x497a95;_0x226524[_0xe50112(0x157)]('::')&&(_0x226524=ValueUtil['getParams'](_0xf2eb20,..._0x226524[_0xe50112(0x23d)]('::','')[_0xe50112(0x294)]('.'))),_0x226524||(_0x226524=''),_0x3bc05c[_0xe50112(0x1cd)]({'name':_0x2f9548,'operator':_0xd8d44d,'value':_0x226524});}),_0xfb2246[_0x4e9617(0x1ac)][_0x4e9617(0x233)][_0x4e9617(0x289)][_0x4e9617(0x26c)]=_0x3bc05c;}});}}!0x0===_0x3f54ae[_0x7ea574(0x20d)]&&!0x0===_0x3878ae&&(_0x221121[_0x7ea574(0x18b)]={'header':_0x221121[_0x7ea574(0x20c)],'key':_0x221121[_0x7ea574(0x241)],'width':_0x221121[_0x7ea574(0x25c)]/0x6,'type':_0x221121[_0x7ea574(0x15a)]}),_0x21d029['push'](_0x221121);}if(!0x0!==this[_0x7ea574(0x1fb)])return _0x21d029;let _0x3f8aba=await MetaApi[_0x7ea574(0x226)](this[_0x7ea574(0x155)]),{template:_0x2c6778={}}=_0x3f8aba;if(!_0x2c6778[_0x7ea574(0x22d)])return _0x21d029;let _0x1e5afc=_0x2c6778['master'];return _0x21d029=_0x21d029[_0x7ea574(0x1d3)](_0x5e7f3d=>('id'==_0x5e7f3d[_0x7ea574(0x241)]||(_0x5e7f3d[_0x7ea574(0x21e)]=!_0x1e5afc[_0x7ea574(0x157)](_0x5e7f3d[_0x7ea574(0x241)]),_0x5e7f3d['rank']=_0x1e5afc[_0x7ea574(0x285)](_0x5e7f3d[_0x7ea574(0x241)]),-0x1==_0x5e7f3d[_0x7ea574(0x25d)]&&(_0x5e7f3d[_0x7ea574(0x25d)]=0x1869f)),_0x5e7f3d)),_0x21d029[_0x7ea574(0x21f)]((_0x1dbd5d,_0x302a8e)=>_0x1dbd5d[_0x7ea574(0x25d)]-_0x302a8e['rank']),_0x21d029;}static[a0_0x5393c2(0x24c)](_0x574b4d,_0x25c995){const _0x5a3ef7=a0_0x5393c2;let _0x4ca956=_0x574b4d['searchConfig'];return _0x4ca956&&_0x4ca956[_0x5a3ef7(0x274)](_0x1a802b=>{const _0x2f4c51=_0x5a3ef7;'string'==typeof _0x1a802b?_0x25c995[_0x2f4c51(0x14a)](_0x1ab531=>_0x1ab531['name']==_0x1a802b)[_0x2f4c51(0x274)](_0x2fa73d=>{_0x2fa73d['filter']='search';}):_0x2f4c51(0x19b)==typeof _0x1a802b&&_0x25c995[_0x2f4c51(0x14a)](_0x193ded=>_0x193ded[_0x2f4c51(0x241)]==_0x1a802b['name'])[_0x2f4c51(0x274)](_0x213733=>{const _0x5e09d2=_0x2f4c51;_0x213733[_0x5e09d2(0x14a)]=_0x1a802b,_0x213733[_0x5e09d2(0x14a)][_0x5e09d2(0x15a)]='datetime'===_0x213733['type']?'datetime-local':_0x213733[_0x5e09d2(0x15a)],[_0x5e09d2(0x19b),'resource-object'][_0x5e09d2(0x157)](_0x213733[_0x5e09d2(0x15a)])&&(_0x213733['filter'][_0x5e09d2(0x241)]=_0x213733['filter']['searchField']?_0x213733[_0x5e09d2(0x14a)]['searchField']:_0x213733[_0x5e09d2(0x241)]+'Id');let _0xf0e70f=_0x213733['filter'][_0x5e09d2(0x27b)];if(_0xf0e70f&&_0xf0e70f[_0x5e09d2(0x287)](_0x5e09d2(0x214))){let _0x239dc8=_0xf0e70f[_0x5e09d2(0x294)](','),_0x108394=[];_0x239dc8['forEach'](_0x3a8f4f=>{const _0x2ebb90=_0x5e09d2,_0x5ac6bf=a0_0x20a3c0();_0x2ebb90(0x214)==_0x3a8f4f?_0x108394['push'](_0x5ac6bf['format']('YYYY-MM-DD')):_0x3a8f4f[_0x2ebb90(0x157)]('-')?_0x108394[_0x2ebb90(0x1cd)](_0x5ac6bf[_0x2ebb90(0x231)](_0x3a8f4f[_0x2ebb90(0x294)]('-')[0x1],_0x2ebb90(0x148))[_0x2ebb90(0x182)](_0x2ebb90(0x23e))):_0x3a8f4f[_0x2ebb90(0x157)]('+')&&_0x108394[_0x2ebb90(0x1cd)](_0x5ac6bf[_0x2ebb90(0x1f1)](_0x3a8f4f['split']('+')[0x1],'day')[_0x2ebb90(0x182)](_0x2ebb90(0x23e)));}),_0x213733[_0x5e09d2(0x14a)]['value']=0x1==_0x108394[_0x5e09d2(0x268)]?_0x108394[0x0]:_0x108394;}});}),_0x25c995;}static[a0_0x5393c2(0x15d)](_0x125881){const _0x53cc62=a0_0x5393c2;let _0xf25127={'title':TermsUtil[_0x53cc62(0x236)](_0x125881['menuInfo'][_0x53cc62(0x165)]),'help':_0x125881[_0x53cc62(0x280)][_0x53cc62(0x15e)]||'','actions':[...MetaUiUtil[_0x53cc62(0x219)](_0x125881)]};return _0x125881[_0x53cc62(0x20d)]&&(_0xf25127['exportable']={'name':_0xf25127[_0x53cc62(0x165)],'data':_0x125881[_0x53cc62(0x1a9)][_0x53cc62(0x298)](_0x125881)}),_0x125881[_0x53cc62(0x1e7)]&&(_0xf25127[_0x53cc62(0x1a3)]={'handler':_0x125881[_0x53cc62(0x161)]['bind'](_0x125881)}),_0xf25127;}static[a0_0x5393c2(0x219)](_0x55fa3b){const _0x213993=a0_0x5393c2;let _0x414fd7=_0x55fa3b[_0x213993(0x227)];return ValueUtil[_0x213993(0x169)](_0x414fd7)?[]:_0x414fd7[_0x213993(0x14a)](_0x14545a=>_0x213993(0x1a9)!=_0x14545a[_0x213993(0x241)]&&_0x213993(0x161)!=_0x14545a['name']&&_0x213993(0x1f1)!=_0x14545a[_0x213993(0x241)])['map'](_0x57aef9=>{const _0x57d308=_0x213993;let {name:_0x1afad6,label:_0x5406a3,style:_0x199f51,type:_0xd1df79=_0x57d308(0x292),action:_0x2f083f,logic:_0x14d9cd}=_0x57aef9;if(ValueUtil[_0x57d308(0x169)](_0x1afad6))return{'title':'-1'};ValueUtil[_0x57d308(0x169)](_0x5406a3)&&(_0x5406a3=_0x1afad6),ValueUtil[_0x57d308(0x169)](_0x199f51)&&(_0x199f51=_0x1afad6),ValueUtil['isEmpty'](_0x2f083f)&&(_0x2f083f=_0x1afad6);let _0x314a6c=ValueUtil['isNotEmpty'](_0x199f51)?CommonButtonStyles[_0x199f51]||{'icon':_0x199f51,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}}:{};return{'title':TermsUtil[_0x57d308(0x14e)](_0x5406a3),'action':MetaUiUtil[_0x57d308(0x203)](_0x55fa3b,_0xd1df79,_0x2f083f,_0x14d9cd),..._0x314a6c};})[_0x213993(0x14a)](_0x33d7c2=>'-1'!=_0x33d7c2[_0x213993(0x165)]);}static[a0_0x5393c2(0x21c)](_0x317bfd){const _0x51efc8=a0_0x5393c2;let _0x574c95=_0x317bfd&&_0x317bfd['buttonConfig']?_0x317bfd[_0x51efc8(0x227)]:null;return _0x574c95?_0x574c95['filter'](_0x536c17=>_0x51efc8(0x1f1)!=_0x536c17[_0x51efc8(0x241)])[_0x51efc8(0x1d3)](_0x1b1288=>{const _0x52338d=_0x51efc8;let {name:_0x1cc06a,label:_0x531b2b,style:_0x47f3a0,type:_0x3856f0=_0x52338d(0x292),action:_0x455d2f,logic:_0x12a1c8}=_0x1b1288;ValueUtil[_0x52338d(0x169)](_0x531b2b)&&(_0x531b2b=_0x1cc06a),ValueUtil['isEmpty'](_0x47f3a0)&&(_0x47f3a0=_0x1cc06a),ValueUtil['isEmpty'](_0x455d2f)&&(_0x455d2f=_0x1cc06a);let _0x18476f=MetaUiUtil['createButtonElement'](TermsUtil['tButton'](_0x531b2b),_0x47f3a0);return _0x18476f[_0x52338d(0x269)]=MetaUiUtil[_0x52338d(0x203)](_0x317bfd,_0x3856f0,_0x455d2f,_0x12a1c8),_0x18476f;}):[];}static[a0_0x5393c2(0x290)](_0x191353,_0x1509e7){const _0x54d785=a0_0x5393c2;let _0x19607b=CommonButtonStyles[_0x1509e7]||{'icon':_0x1509e7,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}},_0x32f200=_0x54d785(0x1ea)+_0x191353+'\x22\x20style=\x22margin-left:7px;margin-top:7px;\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20icon=\x22'+(_0x19607b[_0x54d785(0x188)]?_0x19607b['icon']:'')+_0x54d785(0x22c)+(_0x19607b['emphasis'][_0x54d785(0x18c)]?_0x54d785(0x18c):'')+_0x54d785(0x197)+(_0x19607b[_0x54d785(0x286)]['outlined']?_0x54d785(0x160):'')+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x19607b[_0x54d785(0x286)][_0x54d785(0x1c8)]?_0x54d785(0x1c8):'')+_0x54d785(0x197)+(_0x19607b[_0x54d785(0x286)][_0x54d785(0x1b7)]?'danger':'')+_0x54d785(0x257);return UiUtil[_0x54d785(0x212)](_0x32f200);}static['getButtonActionHandler'](_0x3fef44,_0x4425cc,_0xc1773a,_0x1f9cff){const _0x367ea2=a0_0x5393c2;if('basic'==_0x4425cc){if(_0x3fef44[_0xc1773a])return _0x3fef44[_0xc1773a][_0x367ea2(0x298)](_0x3fef44);}else{if('custom'==_0x4425cc)return()=>MetaUiUtil[_0x367ea2(0x1c3)](_0x3fef44,_0x1f9cff);}return()=>{const _0x18b9a9=_0x367ea2;UiUtil['showAlertPopup'](_0x18b9a9(0x198),_0x18b9a9(0x1e1),_0x18b9a9(0x23c),_0x18b9a9(0x22f));};}static async[a0_0x5393c2(0x150)](_0x5e8320,_0x355969,_0x4db529){const _0x2b10ed=a0_0x5393c2;let _0x528895=ValueUtil[_0x2b10ed(0x28b)](_0x355969,_0x2b10ed(0x238)),_0x59ecdc=ValueUtil[_0x2b10ed(0x28b)](_0x528895,'type');if('form'===_0x59ecdc)_0x528895[_0x2b10ed(0x14c)]=_0x2b10ed(0x201),_0x528895[_0x2b10ed(0x1a1)]=_0x2b10ed(0x27c),_0x528895['parent_field']='id',await MetaUiUtil['commonButtonOpenPopup'](_0x5e8320,_0x528895,_0x4db529);else{if('pass_param'===_0x59ecdc)MetaUiUtil['gristButtonPassParam'](_0x5e8320,_0x528895,_0x4db529);else{if(_0x2b10ed(0x22e)===_0x59ecdc){let _0x429f38;_0x528895[_0x2b10ed(0x247)]?(_0x429f38={},Object[_0x2b10ed(0x20b)](_0x4db529)[_0x2b10ed(0x14a)](_0x27c1ee=>Object[_0x2b10ed(0x20b)](_0x528895[_0x2b10ed(0x247)])['includes'](_0x27c1ee))[_0x2b10ed(0x1d3)](_0x59bd8f=>{const _0x244930=_0x2b10ed;Object[_0x244930(0x20b)](_0x528895[_0x244930(0x247)])[_0x244930(0x157)](_0x59bd8f)&&(_0x244930(0x276)==typeof _0x4db529[_0x59bd8f]?_0x429f38[_0x528895[_0x244930(0x247)][_0x59bd8f]]=_0x4db529[_0x59bd8f]:_0x429f38[_0x528895[_0x244930(0x247)][_0x59bd8f]]={'id':_0x4db529[_0x59bd8f]['id']});})):_0x429f38=_0x4db529,UiUtil[_0x2b10ed(0x1d2)](_0x528895[_0x2b10ed(0x1ca)],[_0x429f38]);}else _0x2b10ed(0x1ef)===_0x59ecdc?await MetaUiUtil[_0x2b10ed(0x17c)](_0x5e8320,_0x528895,_0x4db529):_0x2b10ed(0x1b4)===_0x59ecdc?await MetaUiUtil[_0x2b10ed(0x297)](_0x5e8320,_0x528895,_0x4db529):_0x2b10ed(0x19a)===_0x59ecdc&&await MetaUiUtil['gristButtonValueReference'](_0x5e8320,_0x528895,_0x4db529);}}}static async[a0_0x5393c2(0x1c3)](_0x22c6af,_0x1b389d){const _0x7197a4=a0_0x5393c2;if(ValueUtil[_0x7197a4(0x169)](_0x1b389d))return;let _0x2921bc=_0x22c6af[_0x7197a4(0x239)],_0x7c810=_0x22c6af['filterForm'],_0x3234cf=ValueUtil[_0x7197a4(0x28b)](_0x1b389d,'type'),_0x30841d=ValueUtil[_0x7197a4(0x28b)](_0x1b389d,'param'),_0x450be8=_0x30841d[_0x7197a4(0x14a)](_0x3e1267=>_0x3e1267[_0x7197a4(0x287)](_0x7197a4(0x239)));if(ValueUtil[_0x7197a4(0x1a6)](_0x450be8)){if(!_0x2921bc)return void UiUtil[_0x7197a4(0x246)](_0x7197a4(0x1eb),'text.grid_is_not_exist',_0x7197a4(0x23c),_0x7197a4(0x22f));if(0x0==(_0x2921bc[_0x7197a4(0x151)]?_0x2921bc[_0x7197a4(0x151)][_0x7197a4(0x28c)]:[])[_0x7197a4(0x268)])return void UiUtil[_0x7197a4(0x246)](_0x7197a4(0x1eb),_0x7197a4(0x243),_0x7197a4(0x23c),_0x7197a4(0x22f));if(_0x30841d['includes'](_0x7197a4(0x186))||_0x30841d['includes'](_0x7197a4(0x259))){let _0x2fb218=_0x2921bc[_0x7197a4(0x17a)];if(ValueUtil[_0x7197a4(0x169)](_0x2fb218))return void UiUtil['showAlertPopup'](_0x7197a4(0x1e2),'text.there_is_no_selected_items','info',_0x7197a4(0x22f));if(_0x30841d[_0x7197a4(0x157)](_0x7197a4(0x186))&&_0x2fb218[_0x7197a4(0x268)]>0x1)return void UiUtil[_0x7197a4(0x246)](_0x7197a4(0x1eb),_0x7197a4(0x1e6),_0x7197a4(0x23c),_0x7197a4(0x22f));}}let _0x1143c7={};if(_0x30841d['includes'](_0x7197a4(0x14a))){if(!_0x7c810)return void UiUtil[_0x7197a4(0x246)](_0x7197a4(0x1eb),_0x7197a4(0x1b1),_0x7197a4(0x23c),_0x7197a4(0x22f));let _0x50013f=_0x7c810?await _0x7c810[_0x7197a4(0x1cb)]():[];_0x1143c7['filter']=_0x50013f;}if(_0x30841d['includes'](_0x7197a4(0x153)))_0x1143c7[_0x7197a4(0x239)]=_0x2921bc[_0x7197a4(0x151)]['records'];else{if(_0x30841d['includes'](_0x7197a4(0x186)))_0x1143c7[_0x7197a4(0x239)]=_0x2921bc[_0x7197a4(0x17a)][0x0];else{if(_0x30841d[_0x7197a4(0x157)](_0x7197a4(0x259)))_0x1143c7[_0x7197a4(0x239)]=_0x2921bc[_0x7197a4(0x17a)];else{if(_0x30841d[_0x7197a4(0x157)]('grist_changed')&&(_0x1143c7[_0x7197a4(0x239)]=ServiceUtil['patchesForUpdateMultiple'](_0x2921bc),!_0x1143c7[_0x7197a4(0x239)]))return;}}}if(_0x7197a4(0x22e)===_0x3234cf){let _0x4a71dc,_0xf0264e=Array['isArray'](_0x1143c7['grist'])?_0x1143c7[_0x7197a4(0x239)]:[_0x1143c7[_0x7197a4(0x239)]];_0x4a71dc=_0x1b389d[_0x7197a4(0x247)]?_0xf0264e[_0x7197a4(0x1d3)](_0x3dcbfa=>{const _0x380a70=_0x7197a4;let _0x51d517={};return Object[_0x380a70(0x20b)](_0x3dcbfa)[_0x380a70(0x14a)](_0x31672f=>Object[_0x380a70(0x20b)](_0x1b389d[_0x380a70(0x247)])[_0x380a70(0x157)](_0x31672f))[_0x380a70(0x1d3)](_0x3d4530=>{const _0x540b34=_0x380a70;Object[_0x540b34(0x20b)](_0x1b389d[_0x540b34(0x247)])[_0x540b34(0x157)](_0x3d4530)&&(_0x540b34(0x276)==typeof _0x3dcbfa[_0x3d4530]?_0x51d517[_0x1b389d['param_field'][_0x3d4530]]=_0x3dcbfa[_0x3d4530]:_0x51d517[_0x1b389d[_0x540b34(0x247)][_0x3d4530]]={'id':_0x3dcbfa[_0x3d4530]['id']});}),_0x51d517;}):_0xf0264e,UiUtil[_0x7197a4(0x1d2)](_0x1b389d[_0x7197a4(0x1ca)],_0x4a71dc);}else{if(_0x7197a4(0x1ef)===_0x3234cf){let _0x3f13ed={..._0x1143c7[_0x7197a4(0x239)]?_0x1143c7['grist']:{},..._0x1143c7[_0x7197a4(0x14a)]?_0x1143c7[_0x7197a4(0x14a)]:{}};await MetaUiUtil[_0x7197a4(0x17c)](_0x22c6af,_0x1b389d,_0x3f13ed);}else _0x7197a4(0x1b4)===_0x3234cf&&await MetaUiUtil[_0x7197a4(0x297)](_0x22c6af,_0x1b389d,_0x1143c7);}}static['gristButtonPassParam'](_0x3ea487,_0x6e8a23,_0x15bbf1){const _0x12f995=a0_0x5393c2;let _0x155d2d=_0x6e8a23[_0x12f995(0x1f3)],_0x235419={},_0xbfd041=_0x3ea487[_0x12f995(0x254)][_0x12f995(0x1fe)](),_0xc1b366=_0x3ea487;_0x235419=_0xbfd041['startsWith'](_0x12f995(0x16c))?{'detail':{..._0x155d2d}}:_0xbfd041[_0x12f995(0x287)]('meta-master-detail-')?_0x3ea487[_0x12f995(0x279)]['tagName'][_0x12f995(0x1fe)]()['startsWith'](_0x12f995(0x18a))?{'detail':{..._0x155d2d}}:{'self':{..._0x155d2d}}:_0x155d2d,Object['keys'](_0x235419)[_0x12f995(0x274)](_0x18103d=>{const _0x30809e=_0x12f995;_0x30809e(0x22d)==_0x18103d?_0xc1b366=_0x3ea487['rootElement']['masterElement']:_0x30809e(0x1d0)==_0x18103d?_0xc1b366=_0x3ea487[_0x30809e(0x176)]?_0x3ea487['rootElement'][_0x30809e(0x279)]:_0x3ea487['detailElement']:_0x30809e(0x172)==_0x18103d&&(_0xc1b366=_0x3ea487),Object[_0x30809e(0x20b)](_0x235419[_0x18103d])[_0x30809e(0x274)](_0x68dcf4=>{const _0x58b696=_0x30809e;let _0x56d85f=_0xc1b366[_0x58b696(0x222)][_0x58b696(0x282)]('#'+_0x68dcf4);_0x15bbf1['id']&&_0x56d85f[_0x58b696(0x295)](_0x15bbf1['id']);let _0x4a1e47=_0x235419[_0x18103d][_0x68dcf4];Object[_0x58b696(0x20b)](_0x4a1e47)['forEach'](_0x245ff8=>{let _0x47f9bd=_0x4a1e47[_0x245ff8],_0x24a9ed='*'===_0x47f9bd?_0x15bbf1:_0x15bbf1[_0x47f9bd];_0x56d85f[_0x245ff8]=_0x24a9ed;});});});}static async[a0_0x5393c2(0x17c)](_0x53b1d0,_0x634001,_0xa4dbcc){const _0x71498b=a0_0x5393c2;let _0x1dd008=TermsUtil[_0x71498b(0x236)](_0x634001[_0x71498b(0x165)]);ValueUtil[_0x71498b(0x1a6)](_0x634001['title_detail'])&&(_0x1dd008=_0x1dd008+'('+ValueUtil[_0x71498b(0x28b)](_0xa4dbcc,..._0x634001[_0x71498b(0x187)]['split']('.'))+')');let _0x4474da=_0x634001[_0x71498b(0x1a2)]&&_0x71498b(0x276)==typeof _0x634001['after']&&_0x71498b(0x1d9)===_0x634001['after']&&_0x53b1d0&&_0x53b1d0[_0x71498b(0x1d9)]?_0x53b1d0[_0x71498b(0x1d9)]['bind'](_0x53b1d0):void 0x0;UiUtil[_0x71498b(0x1ba)](_0x1dd008,_0x634001,_0xa4dbcc,_0x4474da);}static async[a0_0x5393c2(0x297)](_0x5639e5,_0x238ec1,_0x347d2e){const _0xb6d07b=a0_0x5393c2;let _0x173fea=await ServiceUtil[_0xb6d07b(0x15f)](_0xb6d07b(0x1c1),_0x238ec1[_0xb6d07b(0x241)],_0x347d2e);if(!_0x173fea[_0xb6d07b(0x291)]&&!ValueUtil[_0xb6d07b(0x169)](_0x238ec1[_0xb6d07b(0x1a2)])&&_0x238ec1['after']){if(_0xb6d07b(0x1d9)!==_0x238ec1[_0xb6d07b(0x1a2)]){if('object'==typeof _0x238ec1[_0xb6d07b(0x1a2)]){let _0x2afe00=_0x238ec1[_0xb6d07b(0x1a2)],_0x36d80d=ValueUtil[_0xb6d07b(0x28b)](_0x173fea[_0xb6d07b(0x151)]['runScenario'][_0xb6d07b(0x151)],..._0x2afe00[_0xb6d07b(0x1aa)]['split']('.'));if(0x0==Array[_0xb6d07b(0x16f)](_0x36d80d)&&(_0x36d80d=[_0x36d80d]),'form'===_0x2afe00['type'])_0x2afe00[_0xb6d07b(0x14c)]=_0xb6d07b(0x201),_0x2afe00[_0xb6d07b(0x1a1)]=_0xb6d07b(0x27c),_0x2afe00[_0xb6d07b(0x242)]='id',_0x36d80d=_0x36d80d[0x0],await MetaUiUtil['commonButtonOpenPopup'](_0x5639e5,_0x2afe00,_0x36d80d);else{if('page'===_0x2afe00['type']){let _0x109da3,_0x1c7b48=_0x36d80d;_0x109da3=_0x2afe00['param_field']?_0x1c7b48[_0xb6d07b(0x1d3)](_0x1a78fa=>{const _0x10c57d=_0xb6d07b;let _0x4a49ba={};return Object[_0x10c57d(0x20b)](_0x1a78fa)[_0x10c57d(0x14a)](_0x56756c=>Object[_0x10c57d(0x20b)](_0x2afe00[_0x10c57d(0x247)])[_0x10c57d(0x157)](_0x56756c))[_0x10c57d(0x1d3)](_0x2f2666=>{const _0x201cb0=_0x10c57d;Object[_0x201cb0(0x20b)](_0x2afe00[_0x201cb0(0x247)])[_0x201cb0(0x157)](_0x2f2666)&&(_0x201cb0(0x276)==typeof _0x1a78fa[_0x2f2666]?_0x4a49ba[_0x2afe00[_0x201cb0(0x247)][_0x2f2666]]=_0x1a78fa[_0x2f2666]:_0x4a49ba[_0x2afe00['param_field'][_0x2f2666]]={'id':_0x1a78fa[_0x2f2666]['id']});}),_0x4a49ba;}):_0x1c7b48,UiUtil[_0xb6d07b(0x1d2)](_0x2afe00['url'],_0x109da3);}else'pass_param'===_0x2afe00[_0xb6d07b(0x15a)]?(_0x36d80d=_0x36d80d[0x0],MetaUiUtil[_0xb6d07b(0x1f0)](_0x5639e5,_0x2afe00,_0x36d80d)):_0xb6d07b(0x1ef)===_0x2afe00[_0xb6d07b(0x15a)]?(_0x36d80d=_0x36d80d[0x0],await MetaUiUtil['commonButtonOpenPopup'](_0x5639e5,_0x2afe00,_0x36d80d)):_0xb6d07b(0x19a)===_0x2afe00[_0xb6d07b(0x15a)]&&(_0x36d80d=_0x36d80d[0x0],await MetaUiUtil[_0xb6d07b(0x173)](_0x5639e5,_0x2afe00,_0x36d80d));}}}else _0x5639e5[_0xb6d07b(0x1d9)]();}}static async['gristButtonValueReference'](_0x2959dd,_0x50c7a2,_0x752dbb){const _0x2b67b7=a0_0x5393c2;for(let _0x34aeb6=0x0;_0x34aeb6<_0x50c7a2[_0x2b67b7(0x162)]['length'];_0x34aeb6++){let _0x146cb2=_0x50c7a2[_0x2b67b7(0x162)][_0x34aeb6];!0x0===ValueUtil[_0x2b67b7(0x213)](_0x146cb2,_0x752dbb,Object[_0x2b67b7(0x20b)](_0x146cb2)[_0x2b67b7(0x14a)](_0xf2b856=>_0x2b67b7(0x238)!=_0xf2b856))&&await MetaUiUtil[_0x2b67b7(0x150)](_0x2959dd,_0x146cb2,_0x752dbb);}}static['getGristHiddenColumnConfig'](_0x4f0ffc,_0x4f60ee){return{'type':_0x4f0ffc,'name':_0x4f60ee,'sortable':!0x1,'hidden':!0x0};}static['getGristColumnConfig'](_0x278fd7,_0x156127,_0x5e54df,_0x39c114,_0x27f2a6,_0x13a04e){const _0x25b5a7=a0_0x5393c2;let _0xc2d91d=TermsUtil[_0x25b5a7(0x1c0)](_0x156127);return{'type':_0x278fd7,'name':_0x156127,'header':_0xc2d91d,'record':{'align':_0x5e54df,'editable':_0x39c114},'sortable':_0x27f2a6,'width':_0x13a04e,'imex':{'width':Math[_0x25b5a7(0x14b)](_0x13a04e/0x6),'header':_0xc2d91d,'type':_0x278fd7,'key':_0x156127}};}static[a0_0x5393c2(0x27e)](_0x340db3,_0xb14532,_0x3e549d,_0x52d55a,_0x3286ae,_0x155f76,_0xb0c1f6){const _0x5ab734=a0_0x5393c2;let _0x11adc1=TermsUtil[_0x5ab734(0x1c0)](_0x3e549d);return{'type':_0x340db3,'name':_0xb14532,'header':_0x11adc1,'record':{'align':_0x52d55a,'editable':_0x3286ae},'sortable':_0x155f76,'width':_0xb0c1f6,'imex':{'width':Math['floor'](_0xb0c1f6/0x6),'header':_0x11adc1,'type':_0x340db3,'key':_0xb14532}};}static[a0_0x5393c2(0x17d)](_0x2aee70,_0x4c6ed3,_0xded0de,_0x4830b,_0xe35ba5,_0x38f48e,_0x38474e,_0x365a84){const _0x42628a=a0_0x5393c2;let _0x449f89=TermsUtil[_0x42628a(0x1c0)](_0xded0de);return{'type':_0x2aee70,'name':_0x4c6ed3,'header':_0x449f89,'record':{'align':_0x4830b,'editable':_0xe35ba5,'mandatory':_0x38474e},'sortable':_0x38f48e,'width':_0x365a84,'imex':{'width':Math[_0x42628a(0x14b)](_0x365a84/0x6),'header':_0x449f89,'type':_0x2aee70,'key':_0x4c6ed3}};}static['getGristSelectorColumnConfig'](_0x58f42d,_0x23deed,_0x39c7d1,_0x151253,_0xddce03,_0xee5484,_0x4ad76e){const _0x4d20c7=a0_0x5393c2;let _0x39effe=TermsUtil[_0x4d20c7(0x1c0)](_0x23deed);return{'type':_0x4d20c7(0x1d6),'name':_0x58f42d,'header':_0x39effe,'record':{'align':_0x39c7d1,'editable':!0x0,'mandatory':_0xee5484,'options':_0x4ad76e},'sortable':_0x151253,'width':_0xddce03,'imex':{'width':Math[_0x4d20c7(0x14b)](_0xddce03/0x6),'header':_0x39effe,'type':_0x4d20c7(0x276),'key':_0x58f42d}};}static async['getGristCodeSelectorColumnConfig'](_0x40f69d,_0x3c4ed2,_0x4e0d29,_0xfd00a9,_0x5c293a,_0x456258,_0x503458){const _0x27832c=a0_0x5393c2;let _0x1cc6e7=await ServiceUtil[_0x27832c(0x1f8)](_0x503458);return MetaUiUtil['getGristSelectorColumnConfig'](_0x40f69d,_0x3c4ed2,_0x4e0d29,_0xfd00a9,_0x5c293a,_0x456258,_0x1cc6e7);}static[a0_0x5393c2(0x177)](_0x1bc22a,_0x436637,_0x41521f,_0x46790b,_0x51a2ea){const _0x9530=a0_0x5393c2;let _0x1dd812=TermsUtil[_0x9530(0x1c0)](_0x41521f),_0xedab8={'name':_0x1bc22a,'type':_0x436637,'label':_0x1dd812,'operator':_0x46790b,'imex':{'width':0x10,'header':_0x1dd812,'type':_0x436637,'key':_0x1bc22a}};return _0x51a2ea&&(_0xedab8[_0x9530(0x233)]=_0x51a2ea),_0xedab8;}static async[a0_0x5393c2(0x26a)](_0x2b6994,_0x4680f0,_0x2e910b,_0x130ac9,_0x549615){const _0xcb9ec9=a0_0x5393c2;let _0x4b4e86=await ServiceUtil[_0xcb9ec9(0x1f8)](_0x549615);return MetaUiUtil['getGristSearchColumnConfig'](_0x2b6994,_0x4680f0,_0x2e910b,_0x130ac9,_0x4b4e86);}static[a0_0x5393c2(0x14f)](){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_0x102ceb=a0_0x2594;(function(_0x490c35,_0x354677){const _0x122663=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_0x5393c2(0x168)](){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_0x5393c2(0x1a7)](){return[css`
|
|
29
29
|
#grist-personal{
|
|
30
30
|
padding:0px;
|
|
31
31
|
margin:0px;
|
|
@@ -48,7 +48,7 @@ const a0_0x102ceb=a0_0x2594;(function(_0x490c35,_0x354677){const _0x122663=a0_0x
|
|
|
48
48
|
cursor: pointer;
|
|
49
49
|
margin-bottom:4px;
|
|
50
50
|
}
|
|
51
|
-
`];}static[
|
|
51
|
+
`];}static['getBasicGristStyles'](){const _0x557828=a0_0x5393c2;return[ScrollbarStyles,CommonGristStyles,css`
|
|
52
52
|
:host {
|
|
53
53
|
display: flex;
|
|
54
54
|
flex-direction: column;
|
|
@@ -58,7 +58,7 @@ const a0_0x102ceb=a0_0x2594;(function(_0x490c35,_0x354677){const _0x122663=a0_0x
|
|
|
58
58
|
ox-grist {
|
|
59
59
|
overflow-y: auto;
|
|
60
60
|
flex: 1;
|
|
61
|
-
}`,...MetaUiUtil[
|
|
61
|
+
}`,...MetaUiUtil[_0x557828(0x168)](),...MetaUiUtil[_0x557828(0x14f)](),...MetaUiUtil[_0x557828(0x1a7)]()];}static[a0_0x5393c2(0x180)](){const _0x4044ca=a0_0x5393c2;return[ScrollbarStyles,CommonGristStyles,css`
|
|
62
62
|
:host {
|
|
63
63
|
display: flex;
|
|
64
64
|
flex-direction: column;
|
|
@@ -105,7 +105,7 @@ const a0_0x102ceb=a0_0x2594;(function(_0x490c35,_0x354677){const _0x122663=a0_0x
|
|
|
105
105
|
ox-grist {
|
|
106
106
|
overflow-y: auto;
|
|
107
107
|
flex: 1;
|
|
108
|
-
}`,...MetaUiUtil[
|
|
108
|
+
}`,...MetaUiUtil[_0x4044ca(0x168)](),...MetaUiUtil[_0x4044ca(0x14f)](),...MetaUiUtil[_0x4044ca(0x1a7)]()];}static[a0_0x5393c2(0x244)](){const _0x42ad2b=a0_0x5393c2;return[ScrollbarStyles,CommonGristStyles,css`
|
|
109
109
|
:host {
|
|
110
110
|
display: flex;
|
|
111
111
|
flex-direction: column;
|
|
@@ -152,7 +152,7 @@ const a0_0x102ceb=a0_0x2594;(function(_0x490c35,_0x354677){const _0x122663=a0_0x
|
|
|
152
152
|
ox-grist {
|
|
153
153
|
overflow-y: auto;
|
|
154
154
|
flex: 1;
|
|
155
|
-
}`,...MetaUiUtil[
|
|
155
|
+
}`,...MetaUiUtil[_0x42ad2b(0x168)](),...MetaUiUtil[_0x42ad2b(0x14f)](),...MetaUiUtil[_0x42ad2b(0x1a7)]()];}static['getBasicTabDetailStyles'](){const _0x3d7eb0=a0_0x5393c2;return[ScrollbarStyles,CommonGristStyles,css`
|
|
156
156
|
:host {
|
|
157
157
|
display: flex;
|
|
158
158
|
flex-direction: column;
|
|
@@ -199,7 +199,7 @@ const a0_0x102ceb=a0_0x2594;(function(_0x490c35,_0x354677){const _0x122663=a0_0x
|
|
|
199
199
|
ox-grist {
|
|
200
200
|
overflow-y: auto;
|
|
201
201
|
flex: 1;
|
|
202
|
-
}`,...MetaUiUtil[
|
|
202
|
+
}`,...MetaUiUtil[_0x3d7eb0(0x168)](),...MetaUiUtil[_0x3d7eb0(0x14f)](),...MetaUiUtil['getGristPersonalizedStyles']()];}static['getBasicMainTabStyles'](){const _0x2370b9=a0_0x5393c2;return[ScrollbarStyles,CommonGristStyles,css`
|
|
203
203
|
:host {
|
|
204
204
|
display: flex;
|
|
205
205
|
flex-direction: column;
|
|
@@ -214,7 +214,7 @@ const a0_0x102ceb=a0_0x2594;(function(_0x490c35,_0x354677){const _0x122663=a0_0x
|
|
|
214
214
|
ox-grist {
|
|
215
215
|
overflow-y: auto;
|
|
216
216
|
flex: 1;
|
|
217
|
-
}`,...MetaUiUtil[
|
|
217
|
+
}`,...MetaUiUtil['getGristEmphasizedStyles'](),...MetaUiUtil[_0x2370b9(0x14f)](),...MetaUiUtil[_0x2370b9(0x1a7)]()];}static[a0_0x5393c2(0x15b)](_0x3c884a){const _0x5ebd91=a0_0x5393c2;return _0x5ebd91(0x27d)==_0x3c884a?MetaUiUtil[_0x5ebd91(0x158)]():MetaUiUtil[_0x5ebd91(0x278)]();}static[a0_0x5393c2(0x158)](){return[CommonGristStyles,ScrollbarStyles,css`
|
|
218
218
|
:host {
|
|
219
219
|
display: flex;
|
|
220
220
|
flex-direction: column;
|
|
@@ -348,7 +348,7 @@ const a0_0x102ceb=a0_0x2594;(function(_0x490c35,_0x354677){const _0x122663=a0_0x
|
|
|
348
348
|
margin-left:7px;
|
|
349
349
|
margin-top:7px;
|
|
350
350
|
}
|
|
351
|
-
`];}static[
|
|
351
|
+
`];}static[a0_0x5393c2(0x262)](){const _0x36f414=a0_0x5393c2;return[ScrollbarStyles,css`
|
|
352
352
|
:host {
|
|
353
353
|
display: flex;
|
|
354
354
|
flex: 1;
|
|
@@ -437,7 +437,7 @@ const a0_0x102ceb=a0_0x2594;(function(_0x490c35,_0x354677){const _0x122663=a0_0x
|
|
|
437
437
|
border-bottom: var(--record-view-edit-border-bottom);
|
|
438
438
|
}
|
|
439
439
|
|
|
440
|
-
`,...MetaUiUtil[
|
|
440
|
+
`,...MetaUiUtil[_0x36f414(0x14f)]()];}static[a0_0x5393c2(0x23b)](){return[css`
|
|
441
441
|
:host {
|
|
442
442
|
display: flex;
|
|
443
443
|
flex: 1;
|
|
@@ -492,204 +492,204 @@ const a0_0x102ceb=a0_0x2594;(function(_0x490c35,_0x354677){const _0x122663=a0_0x
|
|
|
492
492
|
overflow-x: overlay;
|
|
493
493
|
background-color: var(--main-section-background-color);
|
|
494
494
|
}
|
|
495
|
-
`];}static[
|
|
495
|
+
`];}static[a0_0x5393c2(0x1d8)](_0xefe6e5,_0x35687f){const _0x2c0ef2=a0_0x5393c2;return!!(_0xefe6e5?_0xefe6e5[_0x2c0ef2(0x1fd)](_0x4b6db9=>_0x4b6db9['name']==_0x35687f):null);}static[a0_0x5393c2(0x1ff)](_0x145b5d,_0x516a85){const _0x384dbf=a0_0x5393c2;return!!(_0x145b5d&&_0x145b5d['button']?_0x145b5d[_0x384dbf(0x1e8)][_0x384dbf(0x1fd)](_0x507f24=>_0x507f24[_0x384dbf(0x241)]==_0x516a85):null);}static[a0_0x5393c2(0x16a)](_0x1d3a26){const _0x5036bd=a0_0x5393c2;let _0x15de58='';return _0x1d3a26[_0x5036bd(0x14a)](_0x4ec5e4=>'gutter'!=_0x4ec5e4['type'])[_0x5036bd(0x274)](_0x27425b=>{const _0x48dbfd=_0x5036bd;_0x15de58+='\x0a',_0x15de58+=_0x48dbfd(0x19b)==_0x27425b[_0x48dbfd(0x15a)]||_0x48dbfd(0x261)==_0x27425b['type']?_0x27425b['name']+'\x0a{'+MetaUiUtil[_0x48dbfd(0x1ab)](_0x27425b)+'}':'board'==_0x27425b[_0x48dbfd(0x15a)]?_0x27425b[_0x48dbfd(0x241)]+_0x48dbfd(0x17f):_0x27425b['name'];}),_0x15de58;}static[a0_0x5393c2(0x1ab)](_0x407ec2){const _0x323452=a0_0x5393c2;let _0x3dc578='';return ValueUtil[_0x323452(0x1a6)](_0x407ec2[_0x323452(0x1ac)][_0x323452(0x233)])&&ValueUtil[_0x323452(0x1a6)](_0x407ec2[_0x323452(0x1ac)][_0x323452(0x233)][_0x323452(0x1d6)])&&_0x407ec2['record']['options'][_0x323452(0x1d6)][_0x323452(0x274)](_0x1bafa1=>{const _0x286cb0=_0x323452;_0x1bafa1[_0x286cb0(0x241)]&&''!==_0x1bafa1[_0x286cb0(0x241)]&&('object'===_0x1bafa1[_0x286cb0(0x15a)]||_0x286cb0(0x261)===_0x1bafa1[_0x286cb0(0x15a)]?_0x3dc578+='\x0a'+_0x1bafa1[_0x286cb0(0x241)]+_0x286cb0(0x25e)+MetaUiUtil[_0x286cb0(0x1ab)](_0x1bafa1)+_0x286cb0(0x252):_0x3dc578+='\x0a'+_0x1bafa1[_0x286cb0(0x241)]);}),''==_0x3dc578&&(_0x3dc578+=_0x323452(0x223)),_0x3dc578;}static['getBasicGristHtml'](_0x5c7204){const _0x312b9e=a0_0x5393c2;let _0x57931e=_0x5c7204[_0x312b9e(0x1bd)];if(_0x57931e){let _0xf2df79=_0x5c7204[_0x312b9e(0x27f)]?_0x5c7204[_0x312b9e(0x27f)]:_0x312b9e(0x234),_0x437481=_0x5c7204[_0x312b9e(0x14d)];return html`
|
|
496
496
|
<ox-grist
|
|
497
|
-
id=${
|
|
498
|
-
.config=${
|
|
499
|
-
.mode=${
|
|
497
|
+
id=${_0xf2df79}
|
|
498
|
+
.config=${_0x57931e}
|
|
499
|
+
.mode=${_0x437481}
|
|
500
500
|
auto-fetch
|
|
501
|
-
.fetchHandler=${
|
|
502
|
-
${MetaUiUtil[
|
|
501
|
+
.fetchHandler=${_0x5c7204['fetchHandler'][_0x312b9e(0x298)](_0x5c7204)}>
|
|
502
|
+
${MetaUiUtil[_0x312b9e(0x166)](_0x5c7204)}
|
|
503
503
|
</ox-grist>
|
|
504
|
-
`;}return html``;}static[
|
|
504
|
+
`;}return html``;}static[a0_0x5393c2(0x266)](_0x1cc4b0){const _0x3cba10=a0_0x5393c2;if(!_0x1cc4b0)return html``;if(!_0x1cc4b0[_0x3cba10(0x248)])return html``;let _0xe56934=_0x1cc4b0[_0x3cba10(0x248)],_0x234e3a=_0x1cc4b0[_0x3cba10(0x1ac)]||{},_0x30c987=_0xe56934[_0x3cba10(0x14a)](_0x5d9ca7=>0x0==_0x5d9ca7[_0x3cba10(0x21e)]);return ValueUtil[_0x3cba10(0x169)](_0x1cc4b0[_0x3cba10(0x21a)])?MetaUiUtil[_0x3cba10(0x17e)](_0x1cc4b0,_0x30c987,_0x234e3a):MetaUiUtil[_0x3cba10(0x1a4)](_0x1cc4b0,_0x30c987,_0x234e3a);}static[a0_0x5393c2(0x1a4)](_0xc24151,_0x3f84e1,_0x5a7173){const _0x427c3e=a0_0x5393c2;let _0x2af228=_0xc24151[_0x427c3e(0x21a)];return html`
|
|
505
505
|
<div class="root_container">
|
|
506
|
-
${
|
|
506
|
+
${_0x2af228['map'](_0x47b1f9=>{const _0x1ecb53=_0x427c3e;let _0x19b133=_0x3f84e1[_0x1ecb53(0x14a)](_0xc84be2=>_0x47b1f9[_0x1ecb53(0x1dd)]['includes'](_0xc84be2[_0x1ecb53(0x241)])),_0x20da10=_0x1ecb53(0x1f5);for(let _0x1272d2=0x0;_0x1272d2<_0x47b1f9['column'];_0x1272d2++)_0x20da10+='\x201fr\x202fr';return _0x20da10+=';',html`
|
|
507
507
|
<h2>
|
|
508
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
508
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x1ecb53(0x236)](_0x47b1f9[_0x1ecb53(0x1ee)])}
|
|
509
509
|
</h2>
|
|
510
|
-
<div id="content_container" class="content_container" style="${
|
|
511
|
-
${
|
|
512
|
-
<label ?editable=${
|
|
513
|
-
${
|
|
510
|
+
<div id="content_container" class="content_container" style="${_0x20da10}">
|
|
511
|
+
${_0x19b133['map'](_0x31a73c=>{const _0x4b5abd=_0x1ecb53;let {editable:_0xe3b351=!0x1,mandatory:_0x237a51=!0x1}=_0x31a73c[_0x4b5abd(0x1ac)],_0x37d5a1=_0x5a7173[_0x4b5abd(0x17b)]||{};return html`
|
|
512
|
+
<label ?editable=${_0xe3b351}><span>${_0x237a51?'*':''}${_0x31a73c['header_txt']}</span>
|
|
513
|
+
${_0xe3b351?html`<mwc-icon>edit</mwc-icon>`:''}
|
|
514
514
|
</label>
|
|
515
515
|
<ox-grid-field
|
|
516
516
|
.rowIndex=${0x0}
|
|
517
|
-
.column=${
|
|
518
|
-
.record=${
|
|
519
|
-
.value=${
|
|
520
|
-
?dirty=${!!
|
|
517
|
+
.column=${_0x31a73c}
|
|
518
|
+
.record=${_0x5a7173}
|
|
519
|
+
.value=${_0x5a7173[_0x31a73c[_0x4b5abd(0x241)]]}
|
|
520
|
+
?dirty=${!!_0x37d5a1[_0x31a73c[_0x4b5abd(0x241)]]}
|
|
521
521
|
></ox-grid-field>
|
|
522
522
|
`;})}
|
|
523
523
|
</div>
|
|
524
524
|
`;})}
|
|
525
525
|
</div>
|
|
526
|
-
${
|
|
527
|
-
`;}static[
|
|
528
|
-
<div id="container" class="container" style="${
|
|
529
|
-
${
|
|
530
|
-
<label ?editable=${
|
|
531
|
-
${
|
|
526
|
+
${_0xc24151[_0x427c3e(0x240)]?html``:MetaUiUtil[_0x427c3e(0x24b)](_0xc24151)}
|
|
527
|
+
`;}static['getBasicFormHtmlNoOption'](_0x2637fe,_0xc75591,_0x60badb){const _0x3c2ac1=a0_0x5393c2;let _0x291bad='grid-template-columns:';_0x2637fe[_0x3c2ac1(0x149)]&&0x0!=_0x2637fe[_0x3c2ac1(0x149)]||(_0x2637fe['column']=0x1),_0x2637fe['column']=parseInt((_0x2637fe[_0x3c2ac1(0x1df)]||{})[_0x3c2ac1(0x25b)]||_0x2637fe[_0x3c2ac1(0x149)]);for(let _0x27945b=0x0;_0x27945b<_0x2637fe[_0x3c2ac1(0x149)];_0x27945b++)_0x291bad+=_0x3c2ac1(0x1b9);return _0x291bad+=';',html`
|
|
528
|
+
<div id="container" class="container" style="${_0x291bad}">
|
|
529
|
+
${_0xc75591['map'](_0x44f7a3=>{const _0x2666f4=_0x3c2ac1;let {editable:_0x2fd128=!0x1,mandatory:_0x140f72=!0x1}=_0x44f7a3[_0x2666f4(0x1ac)],_0x353264=_0x60badb[_0x2666f4(0x17b)]||{};return html`
|
|
530
|
+
<label ?editable=${_0x2fd128}><span>${_0x140f72?'*':''}${_0x44f7a3[_0x2666f4(0x1e5)]}</span>
|
|
531
|
+
${_0x2fd128?html`<mwc-icon>edit</mwc-icon>`:''}
|
|
532
532
|
</label>
|
|
533
533
|
<ox-grid-field
|
|
534
534
|
.rowIndex=${0x0}
|
|
535
|
-
.column=${
|
|
536
|
-
.record=${
|
|
537
|
-
.value=${
|
|
538
|
-
?dirty=${!!
|
|
535
|
+
.column=${_0x44f7a3}
|
|
536
|
+
.record=${_0x60badb}
|
|
537
|
+
.value=${_0x60badb[_0x44f7a3[_0x2666f4(0x241)]]}
|
|
538
|
+
?dirty=${!!_0x353264[_0x44f7a3[_0x2666f4(0x241)]]}
|
|
539
539
|
></ox-grid-field>
|
|
540
540
|
`;})}
|
|
541
541
|
</div>
|
|
542
|
-
${
|
|
543
|
-
`;}static[
|
|
542
|
+
${_0x2637fe['isPage']?html``:MetaUiUtil[_0x3c2ac1(0x24b)](_0x2637fe)}
|
|
543
|
+
`;}static[a0_0x5393c2(0x229)](_0x5b9b94){const _0xf9c913=a0_0x5393c2;if(!_0x5b9b94)return html``;if(!_0x5b9b94[_0xf9c913(0x228)])return html``;let _0x393718=_0x5b9b94[_0xf9c913(0x228)];return _0x5b9b94[_0xf9c913(0x1bc)]||(_0x5b9b94[_0xf9c913(0x1bc)]=_0x393718[0x0]?.['name']||void 0x0),html`
|
|
544
544
|
<div class="tabs">
|
|
545
|
-
${
|
|
546
|
-
<div class="tab" ?activate="${
|
|
547
|
-
${
|
|
548
|
-
<span>${
|
|
545
|
+
${_0x393718['map'](_0x524f10=>{const _0x12cbb2=_0xf9c913;let _0x3d3151=TermsUtil[_0x12cbb2(0x1c0)](_0x524f10[_0x12cbb2(0x1ee)]),_0x52cf93=_0x524f10[_0x12cbb2(0x241)];return html`
|
|
546
|
+
<div class="tab" ?activate="${_0x52cf93===_0x5b9b94['currentTabKey']}" @click="${()=>_0x5b9b94[_0x12cbb2(0x1bc)]=_0x52cf93}">
|
|
547
|
+
${_0x524f10[_0x12cbb2(0x188)]?html`<mwc-icon>${_0x524f10[_0x12cbb2(0x188)]}</mwc-icon>`:html``}
|
|
548
|
+
<span>${_0x3d3151}</span>
|
|
549
549
|
</div>
|
|
550
550
|
`;})}
|
|
551
551
|
</div>
|
|
552
552
|
<div class="content-container">
|
|
553
|
-
${
|
|
554
|
-
<div class='tab-contents' style="${
|
|
555
|
-
${MetaUiUtil[
|
|
553
|
+
${_0x393718[_0xf9c913(0x1d3)](_0x31b52f=>{const _0xfc3774=_0xf9c913;let _0x591b20='display:none';return _0x31b52f[_0xfc3774(0x241)]==_0x5b9b94['currentTabKey']&&(_0x591b20=_0xfc3774(0x28a)),html`
|
|
554
|
+
<div class='tab-contents' style="${_0x591b20}">
|
|
555
|
+
${MetaUiUtil[_0xfc3774(0x205)](_0x5b9b94,_0x31b52f)}
|
|
556
556
|
</div>
|
|
557
557
|
`;})}
|
|
558
558
|
</div>
|
|
559
|
-
`;}static[
|
|
560
|
-
${0x0==
|
|
559
|
+
`;}static['getGristTabHtml'](_0x77a654){const _0x283683=a0_0x5393c2;let _0x5bf9b5=(_0x77a654[_0x283683(0x1df)]||{})['master_detail_type']||'top_bottom',_0x4708ef=(_0x77a654[_0x283683(0x1df)]||{})['master_detail_size']||_0x283683(0x1a8),_0x495ec9=_0x283683(0x26b)==_0x5bf9b5?_0x283683(0x249)+_0x4708ef+';':_0x283683(0x1b6)+_0x4708ef+';',_0x3c31f2=_0x77a654[_0x283683(0x240)]?UiUtil[_0x283683(0x18e)]():_0x77a654[_0x283683(0x200)];return html`
|
|
560
|
+
${0x0==_0x77a654[_0x283683(0x22b)]?html``:html`
|
|
561
561
|
<div slot="headroom">
|
|
562
562
|
<div id="filters">
|
|
563
563
|
<ox-filters-form-base
|
|
564
564
|
id='ox-filters-form'
|
|
565
|
-
.filters=${
|
|
566
|
-
.value=${
|
|
567
|
-
@filters-change=${
|
|
565
|
+
.filters=${_0x77a654[_0x283683(0x22a)]||[]}
|
|
566
|
+
.value=${_0x77a654[_0x283683(0x1ed)]||[]}
|
|
567
|
+
@filters-change=${_0x13558d=>{const _0x49cfac=_0x283683;_0x77a654[_0x49cfac(0x239)]?.[_0x49cfac(0x1d9)]();}}
|
|
568
568
|
></ox-filters-form-base>
|
|
569
569
|
</div>
|
|
570
570
|
</div>
|
|
571
571
|
`}
|
|
572
|
-
<div id="container" class="container" style="${
|
|
572
|
+
<div id="container" class="container" style="${_0x495ec9}">
|
|
573
573
|
<div class="container_detail">
|
|
574
|
-
${MetaApi[
|
|
575
|
-
${MetaUiUtil[
|
|
574
|
+
${MetaApi[_0x283683(0x24a)](_0x77a654)}
|
|
575
|
+
${MetaUiUtil[_0x283683(0x24b)](_0x77a654)}
|
|
576
576
|
</div>
|
|
577
577
|
<div class="container_detail">
|
|
578
|
-
${!0x0===
|
|
578
|
+
${!0x0===_0x77a654['is_activity']?html`${!0x0===_0x77a654[_0x283683(0x171)]?html`<meta-tab-element
|
|
579
579
|
id="detail"
|
|
580
|
-
route_name="${
|
|
581
|
-
.activityDataSet=${(
|
|
580
|
+
route_name="${_0x3c31f2}"
|
|
581
|
+
.activityDataSet=${(_0x77a654['activityDataSet']||{})[_0x283683(0x1d0)]}
|
|
582
582
|
is_readonly=true
|
|
583
583
|
is_activity=true
|
|
584
584
|
is_detail=true>
|
|
585
585
|
</meta-tab-element>`:html`<meta-tab-element
|
|
586
586
|
id="detail"
|
|
587
|
-
route_name="${
|
|
588
|
-
.activityDataSet=${(
|
|
587
|
+
route_name="${_0x3c31f2}"
|
|
588
|
+
.activityDataSet=${(_0x77a654[_0x283683(0x1d5)]||{})[_0x283683(0x1d0)]}
|
|
589
589
|
is_activity=true
|
|
590
590
|
is_detail=true>
|
|
591
|
-
</meta-tab-element>`}`:html`${!0x0===
|
|
591
|
+
</meta-tab-element>`}`:html`${!0x0===_0x77a654[_0x283683(0x171)]?html`<meta-tab-element id="detail" route_name="${_0x3c31f2}" is_readonly=true is_detail=true></meta-tab-element>`:html`<meta-tab-element id="detail" route_name="${_0x3c31f2}" is_detail=true></meta-tab-element>`}`}
|
|
592
592
|
</div>
|
|
593
593
|
</div>
|
|
594
|
-
`;}static[
|
|
595
|
-
${0x0==
|
|
594
|
+
`;}static[a0_0x5393c2(0x189)](_0x26cba6){const _0x555ffe=a0_0x5393c2;let _0x444bf0=_0x26cba6['etcConfig']['master_detail_type']||_0x555ffe(0x16b),_0x1536e8=_0x26cba6[_0x555ffe(0x1df)]['master_detail_size']||'50%\x2050%',_0x12da3e=_0x26cba6[_0x555ffe(0x1df)][_0x555ffe(0x225)],_0x1a4690=JSON['parse'](_0x12da3e||'{}'),_0x4f99e2=_0x555ffe(0x26b)==_0x444bf0?_0x555ffe(0x249)+_0x1536e8+';':'grid-template-rows:'+_0x1536e8+';';return MetaUiUtil['createMasterElement'](_0x26cba6),MetaUiUtil['createDetailElement'](_0x26cba6,_0x1a4690),html`
|
|
595
|
+
${0x0==_0x26cba6[_0x555ffe(0x22b)]?html``:html`
|
|
596
596
|
<div slot="headroom">
|
|
597
597
|
<div id="filters">
|
|
598
598
|
<ox-filters-form-base
|
|
599
599
|
id='ox-filters-form'
|
|
600
|
-
.filters=${
|
|
601
|
-
.value=${
|
|
602
|
-
@filters-change=${
|
|
600
|
+
.filters=${_0x26cba6[_0x555ffe(0x22a)]||[]}
|
|
601
|
+
.value=${_0x26cba6[_0x555ffe(0x1ed)]||[]}
|
|
602
|
+
@filters-change=${_0x3205f8=>{_0x26cba6['fetch']();}}
|
|
603
603
|
></ox-filters-form-base>
|
|
604
604
|
</div>
|
|
605
605
|
</div>
|
|
606
606
|
`}
|
|
607
|
-
<div id="container" class="container" style="${
|
|
607
|
+
<div id="container" class="container" style="${_0x4f99e2}">
|
|
608
608
|
<div class="container_detail">
|
|
609
|
-
${
|
|
609
|
+
${_0x26cba6[_0x555ffe(0x28d)]}
|
|
610
610
|
</div>
|
|
611
611
|
<div class="container_detail">
|
|
612
|
-
${''==
|
|
613
|
-
${
|
|
612
|
+
${''==_0x1a4690[_0x555ffe(0x14c)]||_0x555ffe(0x1b5)==_0x1a4690[_0x555ffe(0x14c)]?html``:html`<h2 id='detail_title'><mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x555ffe(0x236)](''+_0x1a4690[_0x555ffe(0x1ee)])}</h2>`}
|
|
613
|
+
${_0x26cba6['detailElement']}
|
|
614
614
|
</div>
|
|
615
615
|
</div>
|
|
616
|
-
`;}static[
|
|
617
|
-
${0x0==
|
|
616
|
+
`;}static[a0_0x5393c2(0x1d1)](_0x1b521f){const _0x47dab5=a0_0x5393c2;return MetaUiUtil[_0x47dab5(0x208)](_0x1b521f),html`
|
|
617
|
+
${0x0==_0x1b521f[_0x47dab5(0x22b)]?html``:html`
|
|
618
618
|
<div slot="headroom">
|
|
619
619
|
<div id="filters">
|
|
620
620
|
<ox-filters-form-base
|
|
621
621
|
id='ox-filters-form'
|
|
622
|
-
.filters=${
|
|
623
|
-
.value=${
|
|
624
|
-
@filters-change=${
|
|
622
|
+
.filters=${_0x1b521f[_0x47dab5(0x22a)]||[]}
|
|
623
|
+
.value=${_0x1b521f[_0x47dab5(0x1ed)]||[]}
|
|
624
|
+
@filters-change=${_0x33b261=>{const _0x56deec=_0x47dab5;_0x1b521f[_0x56deec(0x1d9)]();}}
|
|
625
625
|
></ox-filters-form-base>
|
|
626
626
|
</div>
|
|
627
627
|
</div>
|
|
628
628
|
`}
|
|
629
629
|
<div id="container" class="container" >
|
|
630
|
-
${
|
|
630
|
+
${_0x1b521f[_0x47dab5(0x28d)]}
|
|
631
631
|
</div>
|
|
632
|
-
`;}static[
|
|
633
|
-
${0x0==
|
|
632
|
+
`;}static[a0_0x5393c2(0x184)](_0x47e55e){const _0xe271a1=a0_0x5393c2;let _0x408a37=_0x47e55e[_0xe271a1(0x1df)][_0xe271a1(0x1ad)]||_0xe271a1(0x16b),_0x19efb8=_0x47e55e[_0xe271a1(0x1df)][_0xe271a1(0x1e3)]||'50%\x2050%',_0x44b9b5=_0x47e55e['etcConfig']['master_detail_element'],_0x2aae8e=JSON['parse'](_0x44b9b5||'{}'),_0x122954=_0xe271a1(0x26b)==_0x408a37?_0xe271a1(0x249)+_0x19efb8+';':_0xe271a1(0x1b6)+_0x19efb8+';';return MetaUiUtil[_0xe271a1(0x1cf)](_0x47e55e,_0x2aae8e),html`
|
|
633
|
+
${0x0==_0x47e55e[_0xe271a1(0x22b)]?html``:html`
|
|
634
634
|
<div slot="headroom">
|
|
635
635
|
<div id="filters">
|
|
636
636
|
<ox-filters-form-base
|
|
637
637
|
id='ox-filters-form'
|
|
638
|
-
.filters=${
|
|
639
|
-
.value=${
|
|
640
|
-
@filters-change=${
|
|
638
|
+
.filters=${_0x47e55e[_0xe271a1(0x22a)]||[]}
|
|
639
|
+
.value=${_0x47e55e[_0xe271a1(0x1ed)]||[]}
|
|
640
|
+
@filters-change=${_0x3c81cb=>{const _0x5b4cc3=_0xe271a1;_0x47e55e[_0x5b4cc3(0x239)]?.['fetch']();}}
|
|
641
641
|
></ox-filters-form-base>
|
|
642
642
|
</div>
|
|
643
643
|
</div>
|
|
644
644
|
`}
|
|
645
|
-
<div id="container" class="container" style="${
|
|
645
|
+
<div id="container" class="container" style="${_0x122954}">
|
|
646
646
|
<div class="container_detail">
|
|
647
|
-
${MetaApi[
|
|
648
|
-
${MetaUiUtil[
|
|
647
|
+
${MetaApi[_0xe271a1(0x24a)](_0x47e55e)}
|
|
648
|
+
${MetaUiUtil[_0xe271a1(0x24b)](_0x47e55e)}
|
|
649
649
|
</div>
|
|
650
650
|
<div class="container_detail">
|
|
651
|
-
${''==
|
|
652
|
-
${
|
|
651
|
+
${''==_0x2aae8e[_0xe271a1(0x14c)]||_0xe271a1(0x1b5)==_0x2aae8e['tagname']?html``:html`<h2 id='detail_title'><mwc-icon>list_alt</mwc-icon>${TermsUtil['tTitle'](''+_0x2aae8e[_0xe271a1(0x1ee)])}</h2>`}
|
|
652
|
+
${_0x47e55e[_0xe271a1(0x279)]}
|
|
653
653
|
</div>
|
|
654
654
|
</div>
|
|
655
|
-
`;}static[
|
|
655
|
+
`;}static[a0_0x5393c2(0x1cf)](_0x41005d,_0x4c1f64){const _0x509bd3=a0_0x5393c2;if(!_0x41005d[_0x509bd3(0x279)]){let _0x550e87=_0x4c1f64[_0x509bd3(0x241)]?_0x4c1f64[_0x509bd3(0x241)]:_0x509bd3(0x1d0),_0x2a9310='<'+_0x4c1f64[_0x509bd3(0x14c)]+_0x509bd3(0x267)+_0x550e87+_0x509bd3(0x1c2)+_0x550e87+_0x509bd3(0x283)+_0x4c1f64[_0x509bd3(0x1ec)]+'\x22\x20'+(!0x0===_0x41005d[_0x509bd3(0x1fb)]?_0x509bd3(0x23f):'')+'\x20'+(!0x0===_0x41005d[_0x509bd3(0x171)]?_0x509bd3(0x174):'')+_0x509bd3(0x193)+_0x4c1f64[_0x509bd3(0x14c)]+'>';_0x41005d[_0x509bd3(0x279)]=UiUtil[_0x509bd3(0x212)](_0x2a9310),_0x41005d['detailElement']['activityDataSet']=(_0x41005d[_0x509bd3(0x1d5)]||{})[_0x509bd3(0x1d0)],_0x41005d[_0x509bd3(0x254)]['toLowerCase']()[_0x509bd3(0x287)](_0x509bd3(0x1dc))&&(_0x41005d[_0x509bd3(0x279)]['rootElement']=_0x41005d);}}static[a0_0x5393c2(0x208)](_0x357ff7){const _0x4b50fc=a0_0x5393c2;if(!_0x357ff7[_0x4b50fc(0x28d)]&&_0x357ff7['filterForm']){let _0x64873b=_0x4b50fc(0x22d),_0x241ff3=_0x4b50fc(0x18f)+_0x64873b+_0x4b50fc(0x1c2)+_0x64873b+_0x4b50fc(0x283)+_0x357ff7['currentRouting']+'\x22\x20'+(!0x0===_0x357ff7['is_activity']?'is_activity=true':'')+'\x20'+(!0x0===_0x357ff7['is_readonly']?'is_readonly=true':'')+_0x4b50fc(0x1b2);_0x357ff7['masterElement']=UiUtil[_0x4b50fc(0x212)](_0x241ff3),_0x357ff7[_0x4b50fc(0x28d)]['activityDataSet']=(_0x357ff7[_0x4b50fc(0x1d5)]||{})[_0x4b50fc(0x22d)],_0x357ff7[_0x4b50fc(0x28d)][_0x4b50fc(0x28e)]=!0x0,_0x357ff7[_0x4b50fc(0x28d)][_0x4b50fc(0x1c5)]=_0x357ff7[_0x4b50fc(0x1a0)],_0x357ff7[_0x4b50fc(0x28d)][_0x4b50fc(0x176)]=_0x357ff7;}}static[a0_0x5393c2(0x205)](_0x58d241,_0x513cb9){const _0x3e3714=a0_0x5393c2;if(_0x58d241[_0x3e3714(0x178)]||(_0x58d241[_0x3e3714(0x178)]={}),Object[_0x3e3714(0x20b)](_0x58d241['tabElements'])[_0x3e3714(0x14a)](_0x4778ae=>_0x4778ae==_0x513cb9[_0x3e3714(0x241)])[_0x3e3714(0x268)]>0x0)return _0x58d241[_0x3e3714(0x178)][_0x513cb9[_0x3e3714(0x241)]];let _0x220873='<'+_0x513cb9[_0x3e3714(0x14c)]+_0x3e3714(0x1db)+_0x513cb9[_0x3e3714(0x241)]+_0x3e3714(0x26d)+_0x513cb9[_0x3e3714(0x207)]+_0x3e3714(0x156)+(!0x0===_0x58d241[_0x3e3714(0x1fb)]?_0x3e3714(0x23f):'')+'\x20'+(!0x0===_0x58d241[_0x3e3714(0x171)]?_0x3e3714(0x174):'')+_0x3e3714(0x24e)+_0x513cb9[_0x3e3714(0x14c)]+'>',_0x5e8841=UiUtil['htmlToElement'](_0x220873);return _0x5e8841['activityDataSet']=(_0x58d241[_0x3e3714(0x1d5)]||{})[_0x513cb9[_0x3e3714(0x241)]],_0x58d241[_0x3e3714(0x16d)]&&(_0x5e8841['parent_id']=_0x58d241['parent_id']),_0x58d241[_0x3e3714(0x176)]?_0x5e8841[_0x3e3714(0x176)]=_0x58d241[_0x3e3714(0x176)]:_0x5e8841[_0x3e3714(0x279)]=_0x58d241,!0x1===_0x513cb9[_0x3e3714(0x192)]&&(_0x5e8841[_0x3e3714(0x21b)]=!0x1),_0x513cb9[_0x3e3714(0x185)]&&(_0x5e8841[_0x3e3714(0x1c5)]=_0x513cb9[_0x3e3714(0x185)]),_0x58d241[_0x3e3714(0x178)][_0x513cb9[_0x3e3714(0x241)]]=_0x5e8841,_0x5e8841;}static['getGridDetailHtml'](_0x4c2eb3){const _0x81b6f0=a0_0x5393c2;let _0x186fa4=_0x4c2eb3[_0x81b6f0(0x202)],_0x26fae9=_0x4c2eb3[_0x81b6f0(0x195)],_0x5a5dfa=_0x4c2eb3[_0x81b6f0(0x250)],_0x1ce81c=JSON[_0x81b6f0(0x164)]((_0x4c2eb3[_0x81b6f0(0x1df)]||{})[_0x81b6f0(0x28f)]||'false');return 0x0==_0x26fae9?html`
|
|
656
656
|
<div slot="headroom" style="flex-direction: column;padding: 0px;border-top: none;box-shadow: none;background: none;align-items: stretch;">
|
|
657
|
-
${this[
|
|
657
|
+
${this[_0x81b6f0(0x255)](_0x4c2eb3)}
|
|
658
658
|
</div>
|
|
659
659
|
`:html`
|
|
660
660
|
<div slot="headroom" style="flex-direction: column;padding: 0px;border-top: none;box-shadow: none;background: none;align-items: stretch;">
|
|
661
661
|
<div slot="headroom">
|
|
662
662
|
<div id="filters"><ox-filters-form></ox-filters-form></div>
|
|
663
|
-
${
|
|
663
|
+
${_0x1ce81c?html`
|
|
664
664
|
<div id="sorters">
|
|
665
|
-
<mwc-icon @click=${
|
|
665
|
+
<mwc-icon @click=${_0x2ae091=>{const _0x229631=_0x81b6f0,_0x20b517=_0x2ae091[_0x229631(0x170)];_0x20b517[_0x229631(0x179)][_0x229631(0x221)]({'right':0x0,'top':_0x20b517['offsetTop']+_0x20b517['offsetHeight']});}}
|
|
666
666
|
>sort</mwc-icon>
|
|
667
667
|
<ox-popup id="sorter-control">
|
|
668
668
|
<ox-sorters-control></ox-sorters-control>
|
|
669
669
|
</ox-popup>
|
|
670
670
|
</div>
|
|
671
671
|
`:html``}
|
|
672
|
-
${MetaUiUtil[
|
|
672
|
+
${MetaUiUtil[_0x81b6f0(0x273)](_0x4c2eb3)}
|
|
673
673
|
<ox-record-creator
|
|
674
674
|
id="add"
|
|
675
|
-
?hidden="${!
|
|
676
|
-
.callback=${
|
|
675
|
+
?hidden="${!_0x186fa4}"
|
|
676
|
+
.callback=${_0x5a5dfa}>
|
|
677
677
|
<button>
|
|
678
678
|
<mwc-icon>add</mwc-icon>
|
|
679
679
|
</button>
|
|
680
680
|
</ox-record-creator>
|
|
681
681
|
</div>
|
|
682
|
-
${this[
|
|
682
|
+
${this[_0x81b6f0(0x255)](_0x4c2eb3)}
|
|
683
683
|
</div>
|
|
684
|
-
`;}static[
|
|
684
|
+
`;}static[a0_0x5393c2(0x255)](_0x35fb77){const _0x3f865b=a0_0x5393c2;return'GRID'!=_0x35fb77['gridMode']?html``:!0x0!==_0x35fb77[_0x3f865b(0x1fb)]?html`
|
|
685
685
|
<div id="grist-personal">
|
|
686
|
-
<mwc-icon @click=${
|
|
686
|
+
<mwc-icon @click=${_0x236738=>{const _0x231d9c=_0x3f865b;let _0x193782=MetaApi[_0x231d9c(0x216)]('personal-column-selector',_0x231d9c(0x199));_0x193782[_0x231d9c(0x253)]=_0x236738[_0x231d9c(0x170)][_0x231d9c(0x1ae)][_0x231d9c(0x1ae)]['parentElement'],_0x193782[_0x231d9c(0x155)]=_0x35fb77[_0x231d9c(0x155)],MetaApi[_0x231d9c(0x23a)](TermsUtil[_0x231d9c(0x236)]('grid-column-personalize'),_0x231d9c(0x26f),_0x193782,!0x1);}}
|
|
687
687
|
>tune</mwc-icon>
|
|
688
688
|
</div>
|
|
689
|
-
`:html``;}static[
|
|
689
|
+
`:html``;}static[a0_0x5393c2(0x273)](_0x5c0839){const _0x325601=a0_0x5393c2;return ValueUtil[_0x325601(0x169)](_0x5c0839[_0x325601(0x194)])||0x1==_0x5c0839[_0x325601(0x194)][_0x325601(0x268)]?html``:html`
|
|
690
690
|
<div id="modes">
|
|
691
|
-
${
|
|
692
|
-
${
|
|
693
|
-
${
|
|
691
|
+
${_0x5c0839['gridViewOptions'][_0x325601(0x157)](_0x325601(0x220))?html`<mwc-icon @click="${()=>_0x5c0839[_0x325601(0x14d)]=_0x325601(0x220)}" ?active="${'GRID'==_0x5c0839[_0x325601(0x14d)]}">grid_on</mwc-icon>`:''}
|
|
692
|
+
${_0x5c0839[_0x325601(0x194)][_0x325601(0x157)]('LIST')?html`<mwc-icon @click="${()=>_0x5c0839[_0x325601(0x14d)]='LIST'}" ?active="${_0x325601(0x1b3)==_0x5c0839[_0x325601(0x14d)]}">format_list_bulleted</mwc-icon>`:''}
|
|
693
|
+
${_0x5c0839['gridViewOptions']['includes'](_0x325601(0x296))?html`<mwc-icon @click="${()=>_0x5c0839[_0x325601(0x14d)]=_0x325601(0x296)}" ?active="${_0x325601(0x296)==_0x5c0839[_0x325601(0x14d)]}">apps</mwc-icon>`:''}
|
|
694
694
|
</div>
|
|
695
|
-
`;}static[
|
|
695
|
+
`;}static['getButtonContainer'](_0x2a5639){return html`<div id="button-container" class="button-container">${MetaUiUtil['getContainerButtons'](_0x2a5639)}</div>`;}}
|