@things-factory/meta-ui 6.0.108 → 6.0.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/actions/main.js +4 -4
- package/client/mixin/meta-base-mixin.js +1 -1
- package/client/mixin/meta-basic-grist-mixin.js +4 -4
- package/client/mixin/meta-button-mixin.js +1 -1
- package/client/mixin/meta-form-mixin.js +1 -1
- package/client/mixin/meta-grist-tab-mixin.js +1 -1
- package/client/mixin/meta-master-detail-mixin.js +1 -1
- package/client/mixin/meta-service-mixin.js +1 -1
- package/client/mixin/meta-tab-detail-mixin.js +1 -1
- package/client/mixin/meta-tab-mixin.js +1 -1
- package/client/pages/activity/meta-activity-list-page.js +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +3 -3
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/entity/config-entity.js +28 -28
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-detail-element.js +1 -1
- package/client/pages/meta-tab-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +5 -5
- 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 +96 -93
- package/client/utils/service-util.js +12 -12
- package/client/utils/terms-util.js +2 -2
- package/client/utils/ui-util.js +1 -1
- package/client/utils/value-util.js +1 -1
- package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +11 -11
- package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +2 -2
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-activity/meta-activity-mutation.js +1 -1
- package/server/service/meta-activity/meta-activity-query.js +1 -1
- package/server/service/meta-activity/meta-activity-type.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x3b1615=a0_0x4394;(function(_0x54ce51,_0x5ab78f){const _0x1ef207=a0_0x4394,_0x2a49ce=_0x54ce51();while(!![]){try{const _0x1b5d53=-parseInt(_0x1ef207(0x195))/0x1+parseInt(_0x1ef207(0x179))/0x2*(-parseInt(_0x1ef207(0x1d7))/0x3)+parseInt(_0x1ef207(0x12b))/0x4+parseInt(_0x1ef207(0x182))/0x5+-parseInt(_0x1ef207(0xf0))/0x6+parseInt(_0x1ef207(0x1e8))/0x7*(-parseInt(_0x1ef207(0xf6))/0x8)+-parseInt(_0x1ef207(0x1b3))/0x9*(-parseInt(_0x1ef207(0x219))/0xa);if(_0x1b5d53===_0x5ab78f)break;else _0x2a49ce['push'](_0x2a49ce['shift']());}catch(_0xa9cbbb){_0x2a49ce['push'](_0x2a49ce['shift']());}}}(a0_0x31b9,0xbb787));import a0_0x5345d7 from'graphql-tag';import{client}from'@operato/graphql';import a0_0x46ba08 from'moment-timezone';import{css,html}from'lit';function a0_0x4394(_0x10b752,_0x5ade79){const _0x31b959=a0_0x31b9();return a0_0x4394=function(_0x439469,_0x4d5af5){_0x439469=_0x439469-0xe0;let _0x322f1a=_0x31b959[_0x439469];return _0x322f1a;},a0_0x4394(_0x10b752,_0x5ade79);}import{ScrollbarStyles,CommonGristStyles,CommonButtonStyles}from'@operato/styles';import{store}from'@operato/shell';import{TermsUtil}from'./terms-util';import{ValueUtil}from'./value-util';function a0_0x31b9(){const _0x55ba21=['add','getBasicMasterDetailStyles','getGristSearchCodeColumnConfig','sequence','board','exportable','findOne','findMenuGridPersnalTemplate','dispatchEvent','raised','detailElement','grist_all','compareObjectValues','row-selector','grist','list','getGristGuttersConfig','title_detail','getGristPaginationCustomConfig','findMenuMetaByRouting','getGristPersonalizedStyles','routing','createMasterElement','pages/meta-form-element.js','<mwc-button\x20label=\x22','createDetailElement','data','grist_changed','\x20id=\x27','tagname','getGristSelectorColumnConfig','display','personal-column-selector','menuId','dense','getParams','parent_id','gristButtonPassParam','currentTabKey','showAlertPopup','gridMode','mainFilterForm','meta-master-detail-','logic','left','after','value_is_not_exist','querySelector','import','keys','5014952zyytAU','gridMobileMode','includes','\x20{\x20','push','currentRouting','grist_selected','service','filters','errors','is_activity=true','find_one_func','config','setParentId','getBasicGristHtml','master_detail_size','resource-object','location','masterElement','etcConfig','column','htmlToElement','title.info','indexOf','top-down','floor','column_list','form','text.button_bind_func_is_not_exist','fetchHandler','tButton','label','grid-template-columns:','offsetHeight','\x22\x20name=\x22','confirm','tText','startsWith','<meta-tab-element\x20id=\x22','createCustomElement','subtract','openDynamicPopup','toLowerCase','height:auto;grid-template-columns:','param_field','getGridColumnSet','header_txt','use_filter_form','grist_one','display:none','name','CARD','\x20is_detail=true\x20style=\x22flex:1;\x22></meta-tab-element>','getBasicTabStyles','entity','useFilterForm','history-copy-list-popup','width','param','getGristEmphasizedStyles','route_name','useButtonExport','dec','text.there_is_no_selected_items','top_bottom','meta-grist-tab-','args','useButtonAdd','isNotEmpty','history_json','format','commonButtonCallScenario','records','today','rootElement','replace','grid-template-rows:','self','12182GqpdxR','text.search_form_is_not_exist','findMenuMeta','basic','meta-form-element','grid_column','main_filter_form','getCustomButtonContainerStyles','\x27\x20style=\x22flex:1;\x22\x20','6389750Kaeqsx','importable','\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20','popup','export','url','nextElementSibling','getButtonActionHandler','getCodeSelectorData','getGridOptionSet','is_activity','pages/hgistory/history-copy-list-popup.js','imex','isEmpty','\x27\x20route_name=\x27','button','getMasterDetailTopDownGristStyle','getMasterDetailHtml','midium','421501LwjgFg','getObjctColumnSelectFields','activityDataSet','open_param','getBasicFormHtmlNoOption','data_history_list','YYYY-MM-DD','value','find','menu','LIST','getCodeByScenario','isGridButtonExist','onclick','getMasterDetailLeftRightGristStyle','GRID','getGridViewOption','editable','ox-grist','tabElements','\x20\x0a\x20}','isMobileEnv','getGridButtonSet','meta-tab-element','hidden','display:flex','use_grid_sort_button','is_readonly','searchFields','buttonConfig','45otfGgJ','parent_field','icon','patchesForUpdateMultiple','tagName','relation','desc','gristButtonValueReference','value_reference','grid-column-personalize','\x20is_detail=true\x20style=\x22flex:1;\x22></','\x22\x20route_name=\x22','row','filter_from','formRenderConfig','template','getGristColumnConfig2','searchConfig','tLabel','fetch','customButtonHandler','pages','grid','tTitle','getMenuMeta','handlers','runnerPermission','info','parentElement','getCodeByEntity','history-json-list-popup','pass_param','__dirtyfields__','gristConfigSet','createButtonElement','tMenu','696cxelHq','options','menus','getGristSearchColumnConfig','search','gridColumnConfig','filterForm','detail','result_name','gristId','title','sorters','gridDeskMode','useButtonImport','getContextObject','outlined','master_detail_element','39991afPeHL','getGridDetailHtml','meta-tab-','useMasterFilterForm','getGristCodeSelectorColumnConfig','length','emphasis','getBasicTabDetailStyles','map','stringify','error','isArray','getBasicTabHtml','getGristSelectableConfig','getContainerButtons','getContextButtons','rank','query','tabRenderConfig','selected','getSelectColumns','page','bind','option','left_right','gridConfig','assign','formColumnConfig','gridViewOptions','getState','string','split','getBasicFormHtmlOnOption','pageNavigate','gristButtonHandler','parse','object','\x201fr\x202fr','getBasicGristPageProperties','is_readonly=true','shadowRoot','getButtonContainer','getGridRowSet','multiple','type','notify','\x20is_detail=true></','forEach','menuInfo','4963390aIINcl','50%\x2050%','select','danger','getBasicTabContent','getGridListSet','getGristColumnConfig','dirty','\x20>\x0a\x20\x20\x20\x20</mwc-button>\x0a\x20\x20\x20\x20','gqlInfo','filter','isPage','master_detail_type','getGridColumnPersonalizeButton','basicArgs','searchFieldValues','currentTarget','pages/hgistory/history-json-list-popup.js','day','\x22\x20style=\x22margin-left:7px;margin-top:7px;\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20icon=\x22','includeMainList','false','runScenario','commonButtonOpenPopup','title.warning','tError','header','infinityPage','gutter','history_copy','6615684wKimhu','model','pass_field','record','setGridColumnSearchOption','master','1832ysiYso','id,template','getBasicFormHtml'];a0_0x31b9=function(){return _0x55ba21;};return a0_0x31b9();}import{ServiceUtil}from'./service-util';import{UiUtil}from'./ui-util';import{MetaCrypto}from'./meta-crypto';import{getEditor,getRenderer}from'@operato/data-grist';import{MetaApi}from'./meta-api';import'./../pages/personalize/personal-column-selector';import'./../pages/history/history-copy-list-popup';import'./../pages/history/history-json-list-popup';export class MetaUiUtil{static async[a0_0x3b1615(0x17b)](_0x40fad6){const _0x473a84=a0_0x3b1615;let _0x34c687=await ServiceUtil[_0x473a84(0xff)]('menu',_0x40fad6,_0x473a84(0x1c2));if(!_0x34c687)throw new Error(TermsUtil['tText'](_0x473a84(0x127),{'value':TermsUtil[_0x473a84(0x1d6)](_0x473a84(0x19e))+'\x20'+_0x40fad6}));if(!_0x34c687[_0x473a84(0x1c2)])throw new Error(TermsUtil[_0x473a84(0x14f)](_0x473a84(0x127),{'value':TermsUtil[_0x473a84(0x1d6)](_0x473a84(0x19e))+'\x20'+TermsUtil['tLabel'](_0x473a84(0xf1))}));return this['menuId']=_0x40fad6,JSON[_0x473a84(0x20b)](_0x34c687[_0x473a84(0x1c2)]);}static async['findMenuMetaByRouting'](_0x22c3dc){const _0x5b6eee=a0_0x3b1615;if((await client['query']({'query':a0_0x5345d7`
|
|
2
2
|
query ($id: String) {
|
|
3
3
|
metaUITemplateIsOverLimit(id: $id)
|
|
4
4
|
}
|
|
5
|
-
`,'variables':{'id':null}}))[_0x27f12c(0x111)])return;let _0x67b0bc=[{'name':'routing','operator':'eq','value':_0x1b551c}],_0x407e4d=await ServiceUtil['searchByPagination']('menus',_0x67b0bc,null,0x0,0x0,'id,template');if(_0x407e4d||0x0!=_0x407e4d[_0x27f12c(0x102)]){let _0x15db73=_0x407e4d['records'][0x0];if(!_0x15db73[_0x27f12c(0x175)])throw new Error(TermsUtil[_0x27f12c(0x21d)](_0x27f12c(0x211),{'value':TermsUtil['tMenu'](_0x27f12c(0x1ad))+'\x20'+TermsUtil[_0x27f12c(0x11e)]('model')}));return this[_0x27f12c(0x1a7)]=_0x15db73['id'],JSON['parse'](MetaCrypto['dec'](_0x15db73['template']));}throw new Error(TermsUtil[_0x27f12c(0x21d)](_0x27f12c(0x211),{'value':TermsUtil[_0x27f12c(0x1f3)](_0x27f12c(0x1ad))+'\x20'+_0x1b551c}));}static[a0_0x5752f7(0x1e9)](){return{'menuInfo':Object,'gridConfig':Object,'gridColumnConfig':Array,'formColumnConfig':Array,'buttonConfig':Array,'searchConfig':Array,'gqlInfo':String,'gqlFetchField':String,'searchFormElement':String,'useFilterForm':Boolean,'gristConfigSet':Object,'formConfigSet':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':!0x0,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0xeefc9f=>Boolean(_0xeefc9f)},'is_popup':{'type':Boolean,'converter':_0x55a325=>Boolean(_0x55a325)},'is_activity':{'type':Boolean,'converter':_0x1ae270=>Boolean(_0x1ae270)},'is_readonly':{'type':Boolean,'converter':_0x273b32=>Boolean(_0x273b32)}};}static async[a0_0x5752f7(0x220)](_0x4468af){const _0x459dc6=a0_0x5752f7;if(0x0==store[_0x459dc6(0x1a2)]()['metaUI']['runnerPermission'])return void document['dispatchEvent'](new CustomEvent(_0x459dc6(0x1e2),{'detail':{'level':_0x459dc6(0x20e),'message':TermsUtil[_0x459dc6(0x18f)](_0x459dc6(0x132))}}));let _0xef72e9=_0x4468af[_0x459dc6(0x1ff)]?UiUtil[_0x459dc6(0x200)]():_0x4468af[_0x459dc6(0x178)];_0x4468af[_0x459dc6(0x200)]=_0xef72e9;let _0x4106f7=await MetaUiUtil[_0x459dc6(0x21b)](_0xef72e9);return!0x0===_0x4468af[_0x459dc6(0x13d)]&&(_0x4106f7[_0x459dc6(0x1c2)]['option'][_0x459dc6(0x207)]=!0x1,_0x4106f7[_0x459dc6(0x1c2)]['option'][_0x459dc6(0x1b0)]=_0x459dc6(0x10e),_0x4106f7['grid'][_0x459dc6(0x1c1)]=!0x1,_0x4106f7[_0x459dc6(0x1c2)][_0x459dc6(0x123)]=[],_0x4106f7[_0x459dc6(0x123)]=_0x4106f7[_0x459dc6(0x123)][_0x459dc6(0x19e)](_0x1c9dee=>_0x459dc6(0x180)==_0x1c9dee[_0x459dc6(0x1b4)])),!0x0===_0x4468af[_0x459dc6(0x1ca)]&&(_0x4106f7[_0x459dc6(0x21a)]['forEach'](_0x5e469d=>{const _0x3bce6c=_0x459dc6;_0x5e469d[_0x3bce6c(0x142)]=!0x1;}),_0x4106f7[_0x459dc6(0x123)]=_0x4106f7[_0x459dc6(0x123)][_0x459dc6(0x19e)](_0x172de7=>_0x459dc6(0x180)!=_0x172de7[_0x459dc6(0x1b4)])),!0x1===_0x4468af[_0x459dc6(0x1c1)]&&(_0x4106f7[_0x459dc6(0x1c2)][_0x459dc6(0x1c1)]=!0x1),_0x4106f7;}static[a0_0x5752f7(0x1c5)](..._0x3ed91a){return{'pages':_0x3ed91a};}static['getGristGuttersConfig'](_0xde4d10,_0x5a3eb6){const _0x551952=a0_0x5752f7;let _0x2281c5=[{'type':_0x551952(0x173),'gutterName':_0x551952(0x120)},{'type':'gutter','gutterName':_0x551952(0x147)}];return _0xde4d10&&_0x2281c5[_0x551952(0x134)]({'type':_0x551952(0x173),'gutterName':'row-selector','multiple':_0x5a3eb6}),_0x2281c5;}static['getGristSelectableConfig'](_0x437cad){return{'selectable':{'multiple':_0x437cad}};}static async['parseGridConfigSet'](_0x97be29){const _0x5626f5=a0_0x5752f7;let _0x2c30ae=MetaUiUtil[_0x5626f5(0x129)](_0x97be29),_0x2151dc=MetaUiUtil[_0x5626f5(0x198)](_0x97be29),_0x2ecbf0=MetaUiUtil['getGridRowSet'](_0x97be29),_0x515ec6=MetaUiUtil[_0x5626f5(0x158)](_0x97be29),_0x167e83=await MetaUiUtil[_0x5626f5(0x117)](_0x97be29),_0x94b866=MetaUiUtil['getGristGuttersConfig'](_0x2c30ae['use_row_checker'],_0x2ecbf0['selectable'][_0x5626f5(0x22d)]);return 0x1==_0x97be29[_0x5626f5(0x136)]&&(_0x167e83=MetaUiUtil[_0x5626f5(0x154)](_0x97be29,_0x167e83)),{'list':_0x2151dc,'pagination':_0x2c30ae[_0x5626f5(0x1b0)],'sorters':_0x2c30ae[_0x5626f5(0x1e7)],'rows':_0x2ecbf0,'columns':[..._0x94b866,..._0x515ec6,..._0x167e83]};}static async[a0_0x5752f7(0x181)](_0x442dbe){const _0x2f63ae=a0_0x5752f7;let _0x2c9825=_0x442dbe[_0x2f63ae(0x124)],_0x24ce5b=[];for(let _0x50de6e=0x0;_0x50de6e<_0x2c9825[_0x2f63ae(0x102)];_0x50de6e++){let {type:_0x50d6d9='string',name:_0x3b1359,header:_0x58059f,hidden:_0x2f4828=!0x1,editable:_0x4595dc=!0x0,mandatory:_0x44ccb6=!0x1,align:_0x3849ff=_0x2f63ae(0x1f5),select_opt:_0x1944c3,object_opt:_0x2a6e1c}=_0x2c9825[_0x50de6e],_0x22a3e0={'type':_0x50d6d9,'name':_0x3b1359,'header_txt':ValueUtil[_0x2f63ae(0x17f)](_0x58059f)?TermsUtil['tLabel'](_0x3b1359):TermsUtil['tLabel'](_0x58059f),'header':{'renderer':function(_0x41602e){const _0x3706b0=_0x2f63ae;return _0x41602e[_0x3706b0(0x1b3)];}},'hidden':_0x2f4828,'record':{'editable':_0x4595dc,'mandatory':_0x44ccb6,'align':_0x3849ff,'classifier':function(){},'renderer':getRenderer(_0x50d6d9)}};_0x4595dc&&(_0x22a3e0[_0x2f63ae(0x22e)][_0x2f63ae(0x1a1)]=getEditor(_0x50d6d9)),'select'===_0x50d6d9&&ValueUtil['isNotEmpty'](_0x1944c3)&&(Array['isArray'](_0x1944c3)?_0x22a3e0[_0x2f63ae(0x22e)][_0x2f63ae(0x106)]=_0x1944c3:_0x2f63ae(0x1fa)===_0x1944c3[_0x2f63ae(0x157)]?_0x22a3e0['record'][_0x2f63ae(0x106)]=await ServiceUtil[_0x2f63ae(0x1de)](_0x1944c3[_0x2f63ae(0x1b4)]):_0x2f63ae(0x197)===_0x1944c3['type']?_0x22a3e0[_0x2f63ae(0x22e)]['options']=await ServiceUtil['getCodeByScenario'](_0x1944c3[_0x2f63ae(0x1b4)],_0x1944c3[_0x2f63ae(0x186)]):'entity'===_0x1944c3[_0x2f63ae(0x157)]&&(_0x22a3e0['record'][_0x2f63ae(0x106)]=await ServiceUtil[_0x2f63ae(0x152)](_0x1944c3['args']))),'object'!==_0x50d6d9&&_0x2f63ae(0x131)!==_0x50d6d9||!ValueUtil['isNotEmpty'](_0x2a6e1c)||(_0x22a3e0[_0x2f63ae(0x22e)][_0x2f63ae(0x106)]=_0x2a6e1c),_0x24ce5b[_0x2f63ae(0x134)](_0x22a3e0);}return _0x24ce5b;}static[a0_0x5752f7(0x129)](_0x595081){const _0x4e854f=a0_0x5752f7;let _0x8302c5=_0x595081[_0x4e854f(0x16f)];_0x595081['useFilterForm']=!_0x8302c5||null==_0x8302c5[_0x4e854f(0x1c1)]||_0x8302c5[_0x4e854f(0x1c1)];let {mobile_mode:_0x323915=_0x4e854f(0x219),desk_mode:_0x57971a=_0x4e854f(0x172),view_mode:_0x55425f=[],use_row_checker:_0x42fdc7=!0x0,sorters:_0x563056=[],pages:_0x17a775=[0x32,0x64,0x1f4,0x3e8]}=ValueUtil['isEmpty'](_0x8302c5[_0x4e854f(0x1df)])?{}:_0x8302c5[_0x4e854f(0x1df)];return _0x4e854f(0x10e)===_0x17a775||'-1'===_0x17a775?(_0x595081[_0x4e854f(0x1d7)]=!0x0,_0x17a775={'infinite':!0x0}):(_0x595081['infinityPage']=!0x1,_0x17a775[_0x4e854f(0x104)](function(_0xf96e5b,_0x35f545){return _0xf96e5b-_0x35f545;}),_0x17a775={'pages':_0x17a775}),ValueUtil['isNotEmpty'](_0x55425f)&&(0x1==_0x55425f[_0x4e854f(0x102)]?(_0x57971a=_0x55425f[0x0],_0x323915=_0x55425f[0x0]):_0x55425f[_0x4e854f(0x102)]>=0x2&&(_0x55425f[_0x4e854f(0x17e)](_0x323915)||(_0x323915=_0x55425f[0x1]),_0x55425f['includes'](_0x57971a)||(_0x57971a=_0x55425f[0x0]))),_0x595081['gridMobileMode']=_0x323915,_0x595081[_0x4e854f(0x10f)]=_0x57971a,_0x595081['gridViewOptions']=_0x55425f,_0x595081[_0x4e854f(0x1bc)]=UiUtil['isMobileEnv']()?_0x595081[_0x4e854f(0x22a)]:_0x595081[_0x4e854f(0x10f)],{'use_row_checker':_0x42fdc7,'sorters':_0x563056,'pages':_0x17a775};}static['getGridListSet'](_0x4f2c8d){const _0x277b3b=a0_0x5752f7;let _0x45bddc={'fields':[ValueUtil['getParams'](_0x4f2c8d['menuInfo'],_0x277b3b(0x1b4)),ValueUtil[_0x277b3b(0x17c)](_0x4f2c8d['menuInfo'],_0x277b3b(0x217))]};return _0x4f2c8d['gridConfig'][_0x277b3b(0x14c)]&&Object['assign'](_0x45bddc,_0x4f2c8d[_0x277b3b(0x16f)][_0x277b3b(0x14c)]),_0x45bddc;}static[a0_0x5752f7(0x214)](_0x337796){const _0x45b80d=a0_0x5752f7;let {multiple_select:_0x46fc6f=!0x1,click:_0x2d7120}=ValueUtil[_0x45b80d(0x17f)](_0x337796[_0x45b80d(0x16f)][_0x45b80d(0x21e)])?{}:_0x337796['gridConfig'][_0x45b80d(0x21e)],_0x14f83c={'selectable':{'multiple':_0x46fc6f},'appendable':_0x337796['useButtonAdd']};return ValueUtil[_0x45b80d(0x18d)](_0x2d7120)&&(_0x14f83c[_0x45b80d(0x20f)]={'click':_0x2d7120}),_0x14f83c;}static[a0_0x5752f7(0x158)](_0x45cd4e){const _0x858527=a0_0x5752f7;let _0xdd408e=_0x45cd4e[_0x858527(0x16f)]['button'];return ValueUtil[_0x858527(0x17f)](_0xdd408e)?[]:_0xdd408e[_0x858527(0x1d2)](_0x22523e=>{const _0x536f28=_0x858527;let _0x310e6d={'type':_0x536f28(0x173),'gutterName':_0x536f28(0x123)};if(ValueUtil[_0x536f28(0x18d)](_0x22523e[_0x536f28(0x224)])&&(Array[_0x536f28(0x118)](_0x22523e[_0x536f28(0x224)])?_0x310e6d[_0x536f28(0x224)]=_0x58d252=>{const _0x343409=_0x536f28;if(ValueUtil[_0x343409(0x18d)](_0x58d252))for(let _0x3fa265=0x0;_0x3fa265<_0x22523e[_0x343409(0x224)][_0x343409(0x102)];_0x3fa265++){let _0x5913c6=_0x22523e[_0x343409(0x224)][_0x3fa265];if(!0x0===ValueUtil[_0x343409(0x100)](_0x5913c6,_0x58d252,Object[_0x343409(0x237)](_0x5913c6)[_0x343409(0x19e)](_0x181eec=>_0x343409(0x224)!=_0x181eec)))return _0x5913c6[_0x343409(0x224)];}}:_0x310e6d[_0x536f28(0x224)]=_0x22523e[_0x536f28(0x224)]),ValueUtil[_0x536f28(0x18d)](_0x22523e[_0x536f28(0x1b4)])&&(_0x310e6d[_0x536f28(0x1b4)]=_0x22523e[_0x536f28(0x1b4)]),ValueUtil[_0x536f28(0x18d)](_0x22523e[_0x536f28(0x188)])&&(_0x310e6d[_0x536f28(0x167)]=TermsUtil['tButton'](_0x22523e['label'])),_0x536f28(0x1b1)===_0x22523e[_0x536f28(0x157)]){let _0x16c8e9=ValueUtil[_0x536f28(0x17c)](_0x22523e,'logic');['history_copy',_0x536f28(0x208)][_0x536f28(0x17e)](_0x16c8e9)?_0x310e6d[_0x536f28(0x20f)]={'click':(_0xd59651,_0x3b1b19,_0x1a9de3,_0x6e6541,_0x4f0791)=>{const _0xc12e3d=_0x536f28;if(_0x6e6541['id']){let _0x27f6b8={'title':'data_history_list','type':_0xc12e3d(0x159),'tagname':_0xc12e3d(0x1ae)==_0x16c8e9?_0xc12e3d(0x16b):_0xc12e3d(0x13c),'location':'history_copy'==_0x16c8e9?'pages/hgistory/history-copy-list-popup.js':'pages/hgistory/history-json-list-popup.js','menu':_0x45cd4e[_0xc12e3d(0x200)],'size':_0xc12e3d(0x1e0),'popup_field':_0xc12e3d(0x15f),'parent_field':'id'},_0x547386={..._0x6e6541,'gqlFunc':ValueUtil['getParams'](_0x45cd4e[_0xc12e3d(0x165)],_0xc12e3d(0x212),_0xc12e3d(0x202)),'gristConfig':JSON[_0xc12e3d(0x218)](JSON['stringify'](_0x45cd4e[_0xc12e3d(0x149)][_0xc12e3d(0x190)]))};MetaUiUtil[_0xc12e3d(0x19b)](_0x45cd4e,{'logic':_0x27f6b8},_0x547386);}}}:_0x310e6d[_0x536f28(0x20f)]={'click':_0x16c8e9};}else _0x310e6d[_0x536f28(0x20f)]={'click':(_0x536da8,_0x1aa085,_0x259e76,_0x4806d7,_0x3655d9)=>{const _0x51465b=_0x536f28;_0x4806d7['id']&&MetaUiUtil[_0x51465b(0x19b)](_0x45cd4e,_0x22523e,_0x4806d7);}};return _0x310e6d;});}static async['getGridColumnSet'](_0x3f1a7a){const _0x42c604=a0_0x5752f7;let _0x57a166=_0x3f1a7a['gridColumnConfig'];if(ValueUtil[_0x42c604(0x17f)](_0x57a166))return[];let _0x117f29=[];for(let _0x14313d=0x0;_0x14313d<_0x57a166[_0x42c604(0x102)];_0x14313d++){let {type:_0x2aa8c7=_0x42c604(0x1e1),name:_0x49727e,header:_0xae4ff9,hidden:_0x1773f0=!0x1,editable:_0x4eb452=!0x0,mandatory:_0x31ac49=!0x1,sortable:_0x3b4448=!0x1,align:_0x2c44cf=_0x42c604(0x1f5),width:_0x2c345a=0x0,exportable:_0x3976d9=!0x1,select_opt:_0x53b1ac,object_opt:_0x17090b}=_0x57a166[_0x14313d],_0x2c6c07={'type':_0x2aa8c7,'name':_0x49727e,'header':ValueUtil[_0x42c604(0x17f)](_0xae4ff9)?'':TermsUtil[_0x42c604(0x11e)](_0xae4ff9),'hidden':_0x1773f0,'sortable':_0x3b4448,'width':_0x2c345a,'record':{'editable':_0x4eb452,'mandatory':_0x31ac49,'align':_0x2c44cf}};if(_0x42c604(0x177)===_0x2aa8c7&&ValueUtil['isNotEmpty'](_0x53b1ac))Array[_0x42c604(0x118)](_0x53b1ac)?_0x2c6c07['record'][_0x42c604(0x106)]=_0x53b1ac:_0x42c604(0x1fa)===_0x53b1ac[_0x42c604(0x157)]?_0x2c6c07['record']['options']=await ServiceUtil[_0x42c604(0x1de)](_0x53b1ac['name']):_0x42c604(0x197)===_0x53b1ac['type']?_0x2c6c07[_0x42c604(0x22e)][_0x42c604(0x106)]=await ServiceUtil[_0x42c604(0x235)](_0x53b1ac[_0x42c604(0x1b4)],_0x53b1ac[_0x42c604(0x186)]):_0x42c604(0x1f7)===_0x53b1ac[_0x42c604(0x157)]&&(_0x2c6c07[_0x42c604(0x22e)][_0x42c604(0x106)]=await ServiceUtil[_0x42c604(0x152)](_0x53b1ac[_0x42c604(0x186)]));else{if((_0x42c604(0x1e3)===_0x2aa8c7||'resource-object'===_0x2aa8c7)&&ValueUtil[_0x42c604(0x18d)](_0x17090b)){let _0x3ea6f9;_0x17090b['select']&&_0x17090b[_0x42c604(0x177)][_0x42c604(0x17b)](_0x59a950=>{const _0x19ae13=_0x42c604;_0x59a950[_0x19ae13(0x1d5)]||(_0x59a950[_0x19ae13(0x1d5)]=_0x59a950['name']),_0x59a950[_0x19ae13(0x1d5)]=TermsUtil[_0x19ae13(0x11e)](_0x59a950[_0x19ae13(0x1d5)]);}),_0x2c6c07['record'][_0x42c604(0x106)]={..._0x17090b},_0x17090b[_0x42c604(0x1ac)]&&_0x17090b[_0x42c604(0x1ac)]['filters']&&(_0x3ea6f9=[..._0x17090b[_0x42c604(0x1ac)][_0x42c604(0x13f)]]),_0x3ea6f9&&JSON['stringify'](_0x3ea6f9)[_0x42c604(0x17e)]('::')&&(_0x2c6c07[_0x42c604(0x20f)]={'dblclick':(_0x53dfdc,_0x63186c,_0x58028d,_0xa421f8,_0x168a0c)=>{const _0x541d22=_0x42c604;let _0x5a9e39=[];_0x3ea6f9['forEach'](_0x4e24cf=>{const _0x753182=a0_0x559b;var {name:_0xb98903,value:_0x2b26e6,operator:_0x27fb55='eq'}=_0x4e24cf;_0x2b26e6[_0x753182(0x17e)]('::')&&(_0x2b26e6=ValueUtil[_0x753182(0x17c)](_0xa421f8,..._0x2b26e6['replace']('::','')[_0x753182(0x101)]('.'))),_0x2b26e6||(_0x2b26e6=''),_0x5a9e39[_0x753182(0x134)]({'name':_0xb98903,'operator':_0x27fb55,'value':_0x2b26e6});}),_0x58028d[_0x541d22(0x22e)][_0x541d22(0x106)][_0x541d22(0x1ac)]['filters']=_0x5a9e39;}});}}!0x0===_0x3f1a7a[_0x42c604(0x1da)]&&!0x0===_0x3976d9&&(_0x2c6c07[_0x42c604(0x1c9)]={'header':_0x2c6c07['header'],'key':_0x2c6c07[_0x42c604(0x1b4)],'width':_0x2c6c07[_0x42c604(0x15c)]/0x6,'type':_0x2c6c07[_0x42c604(0x157)]}),_0x117f29[_0x42c604(0x134)](_0x2c6c07);}if(!0x0!==this['is_activity'])return _0x117f29;let _0x20443e=await MetaApi[_0x42c604(0x153)](this['menuId']),{template:_0x613df1={}}=_0x20443e;if(!_0x613df1['master'])return _0x117f29;let _0xce5925=_0x613df1[_0x42c604(0x1d3)];return _0x117f29=_0x117f29['map'](_0x14f403=>('id'==_0x14f403[_0x42c604(0x1b4)]||(_0x14f403[_0x42c604(0x13e)]=!_0xce5925['includes'](_0x14f403[_0x42c604(0x1b4)]),_0x14f403[_0x42c604(0x18c)]=_0xce5925['indexOf'](_0x14f403[_0x42c604(0x1b4)]),-0x1==_0x14f403[_0x42c604(0x18c)]&&(_0x14f403['rank']=0x1869f)),_0x14f403)),_0x117f29[_0x42c604(0x104)]((_0x333793,_0x169d68)=>_0x333793[_0x42c604(0x18c)]-_0x169d68[_0x42c604(0x18c)]),_0x117f29;}static[a0_0x5752f7(0x154)](_0x2883af,_0xa26df){const _0x43026a=a0_0x5752f7;let _0x3877c9=_0x2883af[_0x43026a(0x1e8)];return _0x3877c9&&_0x3877c9[_0x43026a(0x17b)](_0x219e1f=>{const _0xd3b493=_0x43026a;_0xd3b493(0x1e1)==typeof _0x219e1f?_0xa26df[_0xd3b493(0x19e)](_0x4daf46=>_0x4daf46[_0xd3b493(0x1b4)]==_0x219e1f)[_0xd3b493(0x17b)](_0x4afbb1=>{const _0x4dd590=_0xd3b493;_0x4afbb1[_0x4dd590(0x19e)]=_0x4dd590(0x1e4);}):_0xd3b493(0x1e3)==typeof _0x219e1f&&_0xa26df[_0xd3b493(0x19e)](_0x1a9331=>_0x1a9331['name']==_0x219e1f['name'])[_0xd3b493(0x17b)](_0x357d60=>{const _0x6ccc25=_0xd3b493;_0x357d60['filter']=_0x219e1f;let _0x1f838e=_0x357d60[_0x6ccc25(0x19e)][_0x6ccc25(0x18b)];if(_0x1f838e&&_0x1f838e[_0x6ccc25(0x116)](_0x6ccc25(0x1a4))){const _0x2ce661=a0_0x2eff15();let _0x5405fa=_0x1f838e[_0x6ccc25(0x101)](','),_0x564252=[];_0x5405fa[_0x6ccc25(0x17b)](_0xca1017=>{const _0x2459d6=_0x6ccc25;_0x2459d6(0x1a4)==_0xca1017?_0x564252[_0x2459d6(0x134)](_0x2ce661[_0x2459d6(0x10d)](_0x2459d6(0x17a))):_0xca1017[_0x2459d6(0x17e)]('-')?_0x564252[_0x2459d6(0x134)](_0x2ce661[_0x2459d6(0x1c3)](_0xca1017[_0x2459d6(0x101)]('-')[0x1],'day')[_0x2459d6(0x10d)](_0x2459d6(0x17a))):_0xca1017[_0x2459d6(0x17e)]('+')&&_0x564252[_0x2459d6(0x134)](_0x2ce661[_0x2459d6(0x180)](_0xca1017[_0x2459d6(0x101)]('+')[0x1],'day')[_0x2459d6(0x10d)](_0x2459d6(0x17a)));}),_0x357d60[_0x6ccc25(0x19e)][_0x6ccc25(0x18b)]=0x1==_0x564252[_0x6ccc25(0x102)]?_0x564252[0x0]:_0x564252;}});}),_0xa26df;}static['getContextObject'](_0x3ccf78){const _0x3a2360=a0_0x5752f7;let _0xfe0e7e={'title':TermsUtil[_0x3a2360(0x168)](_0x3ccf78[_0x3a2360(0x11f)][_0x3a2360(0x167)]),'help':_0x3ccf78['menuInfo'][_0x3a2360(0x210)]||'','actions':[...MetaUiUtil[_0x3a2360(0x13b)](_0x3ccf78)]};return _0x3ccf78[_0x3a2360(0x1da)]&&(_0xfe0e7e[_0x3a2360(0x1b6)]={'name':_0xfe0e7e[_0x3a2360(0x167)],'data':_0x3ccf78['export'][_0x3a2360(0x176)](_0x3ccf78)}),_0x3ccf78[_0x3a2360(0x11a)]&&(_0xfe0e7e[_0x3a2360(0x16e)]={'handler':_0x3ccf78[_0x3a2360(0x1d4)]['bind'](_0x3ccf78)}),_0xfe0e7e;}static[a0_0x5752f7(0x13b)](_0x535bb6){const _0x20db28=a0_0x5752f7;let _0x3ca056=_0x535bb6[_0x20db28(0x232)];return ValueUtil[_0x20db28(0x17f)](_0x3ca056)?[]:_0x3ca056[_0x20db28(0x19e)](_0x3868e5=>_0x20db28(0x156)!=_0x3868e5['name']&&_0x20db28(0x1d4)!=_0x3868e5[_0x20db28(0x1b4)]&&_0x20db28(0x180)!=_0x3868e5[_0x20db28(0x1b4)])[_0x20db28(0x1d2)](_0x43de10=>{const _0x2cd98e=_0x20db28;let {name:_0x1f24d4,label:_0x248173,style:_0x257c07,type:_0x180c49='basic',action:_0x381274,logic:_0x382aa8}=_0x43de10;if(ValueUtil[_0x2cd98e(0x17f)](_0x1f24d4))return{'title':'-1'};ValueUtil[_0x2cd98e(0x17f)](_0x248173)&&(_0x248173=_0x1f24d4),ValueUtil[_0x2cd98e(0x17f)](_0x257c07)&&(_0x257c07=_0x1f24d4),ValueUtil[_0x2cd98e(0x17f)](_0x381274)&&(_0x381274=_0x1f24d4);let _0x573335=ValueUtil[_0x2cd98e(0x18d)](_0x257c07)?CommonButtonStyles[_0x257c07]||{'icon':_0x257c07,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}}:{};return{'title':TermsUtil[_0x2cd98e(0x209)](_0x248173),'action':MetaUiUtil[_0x2cd98e(0x225)](_0x535bb6,_0x180c49,_0x381274,_0x382aa8),..._0x573335};})[_0x20db28(0x19e)](_0x58d31f=>'-1'!=_0x58d31f['title']);}static[a0_0x5752f7(0x1bd)](_0x804140){const _0x10b3c1=a0_0x5752f7;let _0x4a807d=_0x804140&&_0x804140[_0x10b3c1(0x232)]?_0x804140['buttonConfig']:null;return _0x4a807d?_0x4a807d[_0x10b3c1(0x19e)](_0x41276f=>_0x10b3c1(0x180)!=_0x41276f[_0x10b3c1(0x1b4)])[_0x10b3c1(0x1d2)](_0x2ba529=>{const _0x35168c=_0x10b3c1;let {name:_0x5dab68,label:_0x5f2293,style:_0x4675d3,type:_0x3d79d9=_0x35168c(0x1b1),action:_0x34979d,logic:_0x4c152d}=_0x2ba529;ValueUtil[_0x35168c(0x17f)](_0x5f2293)&&(_0x5f2293=_0x5dab68),ValueUtil[_0x35168c(0x17f)](_0x4675d3)&&(_0x4675d3=_0x5dab68),ValueUtil['isEmpty'](_0x34979d)&&(_0x34979d=_0x5dab68);let _0x28c25f=MetaUiUtil['createButtonElement'](TermsUtil['tButton'](_0x5f2293),_0x4675d3);return _0x28c25f['onclick']=MetaUiUtil['getButtonActionHandler'](_0x804140,_0x3d79d9,_0x34979d,_0x4c152d),_0x28c25f;}):[];}static[a0_0x5752f7(0x204)](_0x566c39,_0x49dc44){const _0x201ccd=a0_0x5752f7;let _0x34b4c1=CommonButtonStyles[_0x49dc44]||{'icon':_0x49dc44,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}},_0x1b8667=_0x201ccd(0x233)+_0x566c39+'\x22\x20style=\x22margin-left:7px;margin-top:7px;\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20icon=\x22'+(_0x34b4c1[_0x201ccd(0x224)]?_0x34b4c1[_0x201ccd(0x224)]:'')+_0x201ccd(0x107)+(_0x34b4c1[_0x201ccd(0x10c)][_0x201ccd(0x17d)]?_0x201ccd(0x17d):'')+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x34b4c1[_0x201ccd(0x10c)][_0x201ccd(0xff)]?_0x201ccd(0xff):'')+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x34b4c1[_0x201ccd(0x10c)][_0x201ccd(0x196)]?'dense':'')+_0x201ccd(0x1cd)+(_0x34b4c1[_0x201ccd(0x10c)]['danger']?_0x201ccd(0x1a3):'')+_0x201ccd(0x1ec);return UiUtil[_0x201ccd(0x1f0)](_0x1b8667);}static[a0_0x5752f7(0x225)](_0x37d280,_0x3e20e8,_0x1c57d1,_0x149e19){const _0x2471fa=a0_0x5752f7;if(_0x2471fa(0x1b1)==_0x3e20e8){if(_0x37d280[_0x1c57d1])return _0x37d280[_0x1c57d1]['bind'](_0x37d280);}else{if(_0x2471fa(0x13a)==_0x3e20e8)return()=>MetaUiUtil['customButtonHandler'](_0x37d280,_0x149e19);}return()=>{const _0x2b4d3e=_0x2471fa;UiUtil[_0x2b4d3e(0x229)](_0x2b4d3e(0x162),_0x2b4d3e(0x1f8),_0x2b4d3e(0xfd),_0x2b4d3e(0x1e5));};}static async['gristButtonHandler'](_0x51d231,_0x44d3d8,_0x5f178d){const _0x1173fa=a0_0x5752f7;let _0x443424=ValueUtil[_0x1173fa(0x17c)](_0x44d3d8,_0x1173fa(0x15e)),_0x577101=ValueUtil[_0x1173fa(0x17c)](_0x443424,_0x1173fa(0x157));if(_0x1173fa(0x18e)===_0x577101)_0x443424[_0x1173fa(0x21f)]=_0x1173fa(0x1f9),_0x443424[_0x1173fa(0x19c)]=_0x1173fa(0x1f1),_0x443424[_0x1173fa(0x15a)]='id',await MetaUiUtil[_0x1173fa(0x179)](_0x51d231,_0x443424,_0x5f178d);else{if(_0x1173fa(0x1f2)===_0x577101)MetaUiUtil[_0x1173fa(0x19f)](_0x51d231,_0x443424,_0x5f178d);else{if(_0x1173fa(0x108)===_0x577101){let _0x14b91b;_0x443424[_0x1173fa(0x227)]?(_0x14b91b={},Object[_0x1173fa(0x237)](_0x5f178d)[_0x1173fa(0x19e)](_0x431daf=>Object[_0x1173fa(0x237)](_0x443424[_0x1173fa(0x227)])[_0x1173fa(0x17e)](_0x431daf))['map'](_0x519f05=>{const _0x4caa9a=_0x1173fa;Object['keys'](_0x443424[_0x4caa9a(0x227)])[_0x4caa9a(0x17e)](_0x519f05)&&(_0x4caa9a(0x1e1)==typeof _0x5f178d[_0x519f05]?_0x14b91b[_0x443424[_0x4caa9a(0x227)][_0x519f05]]=_0x5f178d[_0x519f05]:_0x14b91b[_0x443424['param_field'][_0x519f05]]={'id':_0x5f178d[_0x519f05]['id']});})):_0x14b91b=_0x5f178d,UiUtil[_0x1173fa(0x135)](_0x443424[_0x1173fa(0x22c)],[_0x14b91b]);}else _0x1173fa(0x159)===_0x577101?await MetaUiUtil['commonButtonOpenPopup'](_0x51d231,_0x443424,_0x5f178d):'scenario'===_0x577101?await MetaUiUtil['commonButtonCallScenario'](_0x51d231,_0x443424,_0x5f178d):_0x1173fa(0x151)===_0x577101&&await MetaUiUtil[_0x1173fa(0x171)](_0x51d231,_0x443424,_0x5f178d);}}}static async[a0_0x5752f7(0x201)](_0x4adb59,_0xe490e){const _0x23274e=a0_0x5752f7;if(ValueUtil[_0x23274e(0x17f)](_0xe490e))return;let _0x4b4aff=_0x4adb59['grist'],_0x169b28=_0x4adb59[_0x23274e(0x112)],_0x4098fc=ValueUtil['getParams'](_0xe490e,_0x23274e(0x157)),_0x20000c=ValueUtil['getParams'](_0xe490e,_0x23274e(0x10b)),_0x443a99=_0x20000c[_0x23274e(0x19e)](_0x5bf735=>_0x5bf735['startsWith'](_0x23274e(0x149)));if(ValueUtil[_0x23274e(0x18d)](_0x443a99)){if(!_0x4b4aff)return void UiUtil[_0x23274e(0x229)](_0x23274e(0x1ba),'text.grid_is_not_exist',_0x23274e(0xfd),_0x23274e(0x1e5));if(0x0==(_0x4b4aff[_0x23274e(0x1c8)]?_0x4b4aff['data'][_0x23274e(0x1fc)]:[])[_0x23274e(0x102)])return void UiUtil[_0x23274e(0x229)](_0x23274e(0x1ba),_0x23274e(0x12d),_0x23274e(0xfd),'confirm');if(_0x20000c['includes'](_0x23274e(0x12c))||_0x20000c[_0x23274e(0x17e)]('grist_selected')){let _0x3b0037=_0x4b4aff[_0x23274e(0x11b)];if(ValueUtil[_0x23274e(0x17f)](_0x3b0037))return void UiUtil['showAlertPopup'](_0x23274e(0x194),_0x23274e(0x20b),_0x23274e(0xfd),'confirm');if(_0x20000c[_0x23274e(0x17e)](_0x23274e(0x12c))&&_0x3b0037['length']>0x1)return void UiUtil[_0x23274e(0x229)](_0x23274e(0x1ba),_0x23274e(0x213),_0x23274e(0xfd),_0x23274e(0x1e5));}}let _0x49e24c={};if(_0x20000c[_0x23274e(0x17e)]('filter')){if(!_0x169b28)return void UiUtil[_0x23274e(0x229)](_0x23274e(0x1ba),_0x23274e(0x22b),_0x23274e(0xfd),_0x23274e(0x1e5));let _0x518069=_0x169b28?await _0x169b28['getQueryFilters']():[];_0x49e24c[_0x23274e(0x19e)]=_0x518069;}if(_0x20000c[_0x23274e(0x17e)](_0x23274e(0x1b7)))_0x49e24c[_0x23274e(0x149)]=_0x4b4aff['data'][_0x23274e(0x1fc)];else{if(_0x20000c[_0x23274e(0x17e)](_0x23274e(0x12c)))_0x49e24c['grist']=_0x4b4aff[_0x23274e(0x11b)][0x0];else{if(_0x20000c['includes'](_0x23274e(0x14d)))_0x49e24c[_0x23274e(0x149)]=_0x4b4aff[_0x23274e(0x11b)];else{if(_0x20000c[_0x23274e(0x17e)](_0x23274e(0x1be))&&(_0x49e24c[_0x23274e(0x149)]=ServiceUtil[_0x23274e(0x1fd)](_0x4b4aff),!_0x49e24c[_0x23274e(0x149)]))return;}}}if(_0x23274e(0x108)===_0x4098fc){let _0x53a577,_0x57b2de=Array['isArray'](_0x49e24c[_0x23274e(0x149)])?_0x49e24c[_0x23274e(0x149)]:[_0x49e24c[_0x23274e(0x149)]];_0x53a577=_0xe490e[_0x23274e(0x227)]?_0x57b2de[_0x23274e(0x1d2)](_0x460d62=>{const _0x4fc7fd=_0x23274e;let _0x89139={};return Object['keys'](_0x460d62)['filter'](_0x1808e4=>Object[_0x4fc7fd(0x237)](_0xe490e[_0x4fc7fd(0x227)])['includes'](_0x1808e4))[_0x4fc7fd(0x1d2)](_0x49870a=>{const _0x32e1ad=_0x4fc7fd;Object['keys'](_0xe490e[_0x32e1ad(0x227)])[_0x32e1ad(0x17e)](_0x49870a)&&(_0x32e1ad(0x1e1)==typeof _0x460d62[_0x49870a]?_0x89139[_0xe490e[_0x32e1ad(0x227)][_0x49870a]]=_0x460d62[_0x49870a]:_0x89139[_0xe490e[_0x32e1ad(0x227)][_0x49870a]]={'id':_0x460d62[_0x49870a]['id']});}),_0x89139;}):_0x57b2de,UiUtil[_0x23274e(0x135)](_0xe490e['url'],_0x53a577);}else{if(_0x23274e(0x159)===_0x4098fc){let _0x1b8920={..._0x49e24c['grist']?_0x49e24c[_0x23274e(0x149)]:{},..._0x49e24c[_0x23274e(0x19e)]?_0x49e24c[_0x23274e(0x19e)]:{}};await MetaUiUtil[_0x23274e(0x179)](_0x4adb59,_0xe490e,_0x1b8920);}else'scenario'===_0x4098fc&&await MetaUiUtil[_0x23274e(0x1db)](_0x4adb59,_0xe490e,_0x49e24c);}}static[a0_0x5752f7(0x19f)](_0x326d02,_0x1a2545,_0x3fd24a){const _0x44f417=a0_0x5752f7;let _0x1d27bc=_0x1a2545[_0x44f417(0x222)],_0x67ceee={},_0x170670=_0x326d02[_0x44f417(0x193)]['toLowerCase'](),_0xfbe99c=_0x326d02;_0x67ceee=_0x170670['startsWith'](_0x44f417(0x1a5))?{'detail':{..._0x1d27bc}}:_0x170670['startsWith'](_0x44f417(0x1dd))?_0x326d02[_0x44f417(0x130)][_0x44f417(0x193)]['toLowerCase']()['startsWith'](_0x44f417(0x115))?{'detail':{..._0x1d27bc}}:{'self':{..._0x1d27bc}}:_0x1d27bc,Object[_0x44f417(0x237)](_0x67ceee)[_0x44f417(0x17b)](_0x5d40ca=>{const _0x108d65=_0x44f417;_0x108d65(0x1d3)==_0x5d40ca?_0xfbe99c=_0x326d02[_0x108d65(0x109)][_0x108d65(0x1ee)]:'detail'==_0x5d40ca?_0xfbe99c=_0x326d02[_0x108d65(0x109)]?_0x326d02[_0x108d65(0x109)]['detailElement']:_0x326d02['detailElement']:'self'==_0x5d40ca&&(_0xfbe99c=_0x326d02),Object[_0x108d65(0x237)](_0x67ceee[_0x5d40ca])[_0x108d65(0x17b)](_0x1082e5=>{const _0x17222a=_0x108d65;let _0x5d7da3=_0xfbe99c[_0x17222a(0x20c)][_0x17222a(0x228)]('#'+_0x1082e5);_0x3fd24a['id']&&_0x5d7da3[_0x17222a(0x12b)](_0x3fd24a['id']);let _0x53ff70=_0x67ceee[_0x5d40ca][_0x1082e5];Object[_0x17222a(0x237)](_0x53ff70)[_0x17222a(0x17b)](_0x119762=>{let _0x3b8576=_0x53ff70[_0x119762],_0xf6c667='*'===_0x3b8576?_0x3fd24a:_0x3fd24a[_0x3b8576];_0x5d7da3[_0x119762]=_0xf6c667;});});});}static async[a0_0x5752f7(0x179)](_0x1bc89f,_0x26f06b,_0x1e35ff){const _0x2671e5=a0_0x5752f7;let _0x43b681=TermsUtil[_0x2671e5(0x168)](_0x26f06b[_0x2671e5(0x167)]);ValueUtil[_0x2671e5(0x18d)](_0x26f06b[_0x2671e5(0x1d0)])&&(_0x43b681=_0x43b681+'('+ValueUtil['getParams'](_0x1e35ff,..._0x26f06b[_0x2671e5(0x1d0)][_0x2671e5(0x101)]('.'))+')');let _0x39bf10=_0x26f06b[_0x2671e5(0x141)]&&_0x2671e5(0x1e1)==typeof _0x26f06b[_0x2671e5(0x141)]&&'fetch'===_0x26f06b['after']&&_0x1bc89f&&_0x1bc89f[_0x2671e5(0x12e)]?_0x1bc89f[_0x2671e5(0x12e)][_0x2671e5(0x176)](_0x1bc89f):void 0x0;UiUtil[_0x2671e5(0x14a)](_0x43b681,_0x26f06b,_0x1e35ff,_0x39bf10);}static async[a0_0x5752f7(0x1db)](_0x2f1b21,_0x5b30af,_0x1c447e){const _0x50aa19=a0_0x5752f7;let _0x574353=await ServiceUtil[_0x50aa19(0x14b)](_0x50aa19(0x199),_0x5b30af['name'],_0x1c447e);if(!_0x574353['errors']&&!ValueUtil[_0x50aa19(0x17f)](_0x5b30af['after'])&&_0x5b30af[_0x50aa19(0x141)]){if(_0x50aa19(0x12e)!==_0x5b30af[_0x50aa19(0x141)]){if('object'==typeof _0x5b30af[_0x50aa19(0x141)]){let _0x59458c=_0x5b30af[_0x50aa19(0x141)],_0x52e015=ValueUtil['getParams'](_0x574353['data'][_0x50aa19(0x12f)][_0x50aa19(0x1c8)],..._0x59458c[_0x50aa19(0x10a)][_0x50aa19(0x101)]('.'));if(0x0==Array[_0x50aa19(0x118)](_0x52e015)&&(_0x52e015=[_0x52e015]),_0x50aa19(0x18e)===_0x59458c[_0x50aa19(0x157)])_0x59458c[_0x50aa19(0x21f)]=_0x50aa19(0x1f9),_0x59458c[_0x50aa19(0x19c)]=_0x50aa19(0x1f1),_0x59458c[_0x50aa19(0x15a)]='id',_0x52e015=_0x52e015[0x0],await MetaUiUtil[_0x50aa19(0x179)](_0x2f1b21,_0x59458c,_0x52e015);else{if(_0x50aa19(0x108)===_0x59458c['type']){let _0x36013f,_0x5df7c3=_0x52e015;_0x36013f=_0x59458c['param_field']?_0x5df7c3[_0x50aa19(0x1d2)](_0x50e7ed=>{const _0x12cc22=_0x50aa19;let _0x1b485c={};return Object[_0x12cc22(0x237)](_0x50e7ed)[_0x12cc22(0x19e)](_0x136adb=>Object[_0x12cc22(0x237)](_0x59458c['param_field'])[_0x12cc22(0x17e)](_0x136adb))[_0x12cc22(0x1d2)](_0x3681ce=>{const _0x168dbc=_0x12cc22;Object[_0x168dbc(0x237)](_0x59458c[_0x168dbc(0x227)])['includes'](_0x3681ce)&&(_0x168dbc(0x1e1)==typeof _0x50e7ed[_0x3681ce]?_0x1b485c[_0x59458c[_0x168dbc(0x227)][_0x3681ce]]=_0x50e7ed[_0x3681ce]:_0x1b485c[_0x59458c[_0x168dbc(0x227)][_0x3681ce]]={'id':_0x50e7ed[_0x3681ce]['id']});}),_0x1b485c;}):_0x5df7c3,UiUtil[_0x50aa19(0x135)](_0x59458c[_0x50aa19(0x22c)],_0x36013f);}else _0x50aa19(0x1f2)===_0x59458c['type']?(_0x52e015=_0x52e015[0x0],MetaUiUtil[_0x50aa19(0x19f)](_0x2f1b21,_0x59458c,_0x52e015)):_0x50aa19(0x159)===_0x59458c['type']?(_0x52e015=_0x52e015[0x0],await MetaUiUtil[_0x50aa19(0x179)](_0x2f1b21,_0x59458c,_0x52e015)):_0x50aa19(0x151)===_0x59458c['type']&&(_0x52e015=_0x52e015[0x0],await MetaUiUtil[_0x50aa19(0x171)](_0x2f1b21,_0x59458c,_0x52e015));}}}else _0x2f1b21['fetch']();}}static async[a0_0x5752f7(0x171)](_0x33f67f,_0x279a20,_0x124865){const _0x28ebac=a0_0x5752f7;for(let _0x19050c=0x0;_0x19050c<_0x279a20[_0x28ebac(0x170)][_0x28ebac(0x102)];_0x19050c++){let _0x31f249=_0x279a20['relation'][_0x19050c];!0x0===ValueUtil[_0x28ebac(0x100)](_0x31f249,_0x124865,Object[_0x28ebac(0x237)](_0x31f249)['filter'](_0x449928=>_0x28ebac(0x15e)!=_0x449928))&&await MetaUiUtil[_0x28ebac(0x19b)](_0x33f67f,_0x31f249,_0x124865);}}static[a0_0x5752f7(0x138)](_0x2e131f,_0x130bfb){return{'type':_0x2e131f,'name':_0x130bfb,'sortable':!0x1,'hidden':!0x0};}static[a0_0x5752f7(0x128)](_0xcef87e,_0x63a5dc,_0x3a4978,_0x18a788,_0x453eb1,_0x5940b7){const _0x327106=a0_0x5752f7;let _0x171ffc=TermsUtil['tLabel'](_0x63a5dc);return{'type':_0xcef87e,'name':_0x63a5dc,'header':_0x171ffc,'record':{'align':_0x3a4978,'editable':_0x18a788},'sortable':_0x453eb1,'width':_0x5940b7,'imex':{'width':Math[_0x327106(0x103)](_0x5940b7/0x6),'header':_0x171ffc,'type':_0xcef87e,'key':_0x63a5dc}};}static['getGristColumnConfig2'](_0x3f47c8,_0x4e3cb3,_0x5bf6c1,_0x29693d,_0x10893d,_0x4907ef,_0xebc3f0){const _0x24bda0=a0_0x5752f7;let _0x3fc15a=TermsUtil[_0x24bda0(0x11e)](_0x5bf6c1);return{'type':_0x3f47c8,'name':_0x4e3cb3,'header':_0x3fc15a,'record':{'align':_0x29693d,'editable':_0x10893d},'sortable':_0x4907ef,'width':_0xebc3f0,'imex':{'width':Math['floor'](_0xebc3f0/0x6),'header':_0x3fc15a,'type':_0x3f47c8,'key':_0x4e3cb3}};}static['getGristColumnConfig3'](_0x2f3fb5,_0x3083ce,_0x18a560,_0x1db72f,_0x3fe2de,_0x311d16,_0x4ba312,_0x5a0079){const _0x22c2ac=a0_0x5752f7;let _0x14b206=TermsUtil[_0x22c2ac(0x11e)](_0x18a560);return{'type':_0x2f3fb5,'name':_0x3083ce,'header':_0x14b206,'record':{'align':_0x1db72f,'editable':_0x3fe2de,'mandatory':_0x4ba312},'sortable':_0x311d16,'width':_0x5a0079,'imex':{'width':Math[_0x22c2ac(0x103)](_0x5a0079/0x6),'header':_0x14b206,'type':_0x2f3fb5,'key':_0x3083ce}};}static[a0_0x5752f7(0x160)](_0x309215,_0x7386b3,_0x12e847,_0x42c766,_0x3613b4,_0x24d24a,_0x4c0493){const _0x4ae5c9=a0_0x5752f7;let _0xb4663e=TermsUtil[_0x4ae5c9(0x11e)](_0x7386b3);return{'type':_0x4ae5c9(0x177),'name':_0x309215,'header':_0xb4663e,'record':{'align':_0x12e847,'editable':!0x0,'mandatory':_0x24d24a,'options':_0x4c0493},'sortable':_0x42c766,'width':_0x3613b4,'imex':{'width':Math[_0x4ae5c9(0x103)](_0x3613b4/0x6),'header':_0xb4663e,'type':_0x4ae5c9(0x1e1),'key':_0x309215}};}static async['getGristCodeSelectorColumnConfig'](_0x3ebce2,_0x4eae20,_0x26b68c,_0x577860,_0x4548cf,_0x87bb23,_0x2ba462){const _0x2ca5fa=a0_0x5752f7;let _0x59ec0c=await ServiceUtil[_0x2ca5fa(0x1de)](_0x2ba462);return MetaUiUtil[_0x2ca5fa(0x160)](_0x3ebce2,_0x4eae20,_0x26b68c,_0x577860,_0x4548cf,_0x87bb23,_0x59ec0c);}static[a0_0x5752f7(0x185)](_0x4dd995,_0x366dc0,_0x4d8497,_0x8605b8,_0x98af6d){const _0x398bcf=a0_0x5752f7;let _0x4be9df=TermsUtil['tLabel'](_0x4d8497),_0x358345={'name':_0x4dd995,'type':_0x366dc0,'label':_0x4be9df,'operator':_0x8605b8,'imex':{'width':0x10,'header':_0x4be9df,'type':_0x366dc0,'key':_0x4dd995}};return _0x98af6d&&(_0x358345[_0x398bcf(0x106)]=_0x98af6d),_0x358345;}static async['getGristSearchCodeColumnConfig'](_0x11f1c3,_0x2cc2dc,_0x218685,_0x60a002,_0x3d4242){const _0x2db137=a0_0x5752f7;let _0x396d8f=await ServiceUtil[_0x2db137(0x1de)](_0x3d4242);return MetaUiUtil[_0x2db137(0x185)](_0x11f1c3,_0x2cc2dc,_0x218685,_0x60a002,_0x396d8f);}static[a0_0x5752f7(0x1dc)](){return[css`
|
|
5
|
+
`,'variables':{'id':null}}))[_0x5b6eee(0x134)])return;let _0x4134c6=[{'name':'routing','operator':'eq','value':_0x22c3dc}],_0x56c48c=await ServiceUtil['searchByPagination'](_0x5b6eee(0x1d9),_0x4134c6,null,0x0,0x0,_0x5b6eee(0xf7));if(_0x56c48c||0x0!=_0x56c48c[_0x5b6eee(0x1ed)]){let _0x201707=_0x56c48c[_0x5b6eee(0x173)][0x0];if(!_0x201707['template'])throw new Error(TermsUtil[_0x5b6eee(0x14f)]('value_is_not_exist',{'value':TermsUtil[_0x5b6eee(0x1d6)]('menu')+'\x20'+TermsUtil[_0x5b6eee(0x1c5)](_0x5b6eee(0xf1))}));return this[_0x5b6eee(0x11a)]=_0x201707['id'],JSON[_0x5b6eee(0x20b)](MetaCrypto[_0x5b6eee(0x169)](_0x201707[_0x5b6eee(0x1c2)]));}throw new Error(TermsUtil['tText'](_0x5b6eee(0x127),{'value':TermsUtil[_0x5b6eee(0x1d6)](_0x5b6eee(0x19e))+'\x20'+_0x22c3dc}));}static[a0_0x3b1615(0x20e)](){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':_0x3b707c=>Boolean(_0x3b707c)},'is_popup':{'type':Boolean,'converter':_0x2c1256=>Boolean(_0x2c1256)},'is_activity':{'type':Boolean,'converter':_0x23eebf=>Boolean(_0x23eebf)},'is_readonly':{'type':Boolean,'converter':_0x477f30=>Boolean(_0x477f30)}};}static async[a0_0x3b1615(0x1cb)](_0x2a6a87){const _0x3338aa=a0_0x3b1615;if(0x0==store[_0x3338aa(0x205)]()['metaUI'][_0x3338aa(0x1cd)])return void document[_0x3338aa(0x101)](new CustomEvent(_0x3338aa(0x215),{'detail':{'level':_0x3338aa(0x1f2),'message':TermsUtil[_0x3338aa(0xeb)]('invalid\x20license\x20key')}}));let _0x46887a=_0x2a6a87[_0x3338aa(0x224)]?UiUtil[_0x3338aa(0x130)]():_0x2a6a87[_0x3338aa(0x167)];_0x2a6a87[_0x3338aa(0x130)]=_0x46887a;let _0x53db59=await MetaUiUtil[_0x3338aa(0x10c)](_0x46887a);return!0x0===_0x2a6a87[_0x3338aa(0x18c)]&&(_0x53db59[_0x3338aa(0x1c9)][_0x3338aa(0x1ff)]['use_row_checker']=!0x1,_0x53db59[_0x3338aa(0x1c9)][_0x3338aa(0x1ff)][_0x3338aa(0x1c8)]='unlimited',_0x53db59[_0x3338aa(0x1c9)][_0x3338aa(0x15a)]=!0x1,_0x53db59[_0x3338aa(0x1c9)][_0x3338aa(0x191)]=[],_0x53db59[_0x3338aa(0x191)]=_0x53db59[_0x3338aa(0x191)]['filter'](_0xed1c65=>_0x3338aa(0xf9)==_0xed1c65[_0x3338aa(0x15d)])),!0x0===_0x2a6a87[_0x3338aa(0x1b0)]&&(_0x53db59[_0x3338aa(0x17e)][_0x3338aa(0x217)](_0x13141d=>{const _0x941a2c=_0x3338aa;_0x13141d[_0x941a2c(0x1a6)]=!0x1;}),_0x53db59[_0x3338aa(0x191)]=_0x53db59[_0x3338aa(0x191)][_0x3338aa(0x223)](_0x1c9f93=>_0x3338aa(0xf9)!=_0x1c9f93[_0x3338aa(0x15d)])),!0x1===_0x2a6a87[_0x3338aa(0x15a)]&&(_0x53db59[_0x3338aa(0x1c9)][_0x3338aa(0x15a)]=!0x1),_0x53db59;}static[a0_0x3b1615(0x10b)](..._0x654255){return{'pages':_0x654255};}static[a0_0x3b1615(0x109)](_0xe09640,_0x5612bb){const _0x4516d2=a0_0x3b1615;let _0x377b37=[{'type':_0x4516d2(0xee),'gutterName':_0x4516d2(0x220)},{'type':_0x4516d2(0xee),'gutterName':_0x4516d2(0xfc)}];return _0xe09640&&_0x377b37[_0x4516d2(0x12f)]({'type':_0x4516d2(0xee),'gutterName':_0x4516d2(0x106),'multiple':_0x5612bb}),_0x377b37;}static[a0_0x3b1615(0x1f5)](_0x2cd703){return{'selectable':{'multiple':_0x2cd703}};}static async['parseGridConfigSet'](_0x29d079){const _0x2b29c7=a0_0x3b1615;let _0x707ab5=MetaUiUtil['getGridOptionSet'](_0x29d079),_0x3dcd17=MetaUiUtil[_0x2b29c7(0x21e)](_0x29d079),_0x36e227=MetaUiUtil[_0x2b29c7(0x212)](_0x29d079),_0x169c5f=MetaUiUtil[_0x2b29c7(0x1ab)](_0x29d079),_0x56f303=await MetaUiUtil[_0x2b29c7(0x158)](_0x29d079),_0xd2aec6=MetaUiUtil['getGristGuttersConfig'](_0x707ab5['use_row_checker'],_0x36e227['selectable'][_0x2b29c7(0x213)]);return 0x1==_0x29d079['useFilterForm']&&(_0x56f303=MetaUiUtil[_0x2b29c7(0xf4)](_0x29d079,_0x56f303)),{'list':_0x3dcd17,'pagination':_0x707ab5[_0x2b29c7(0x1c8)],'sorters':_0x707ab5[_0x2b29c7(0x1e2)],'rows':_0x36e227,'columns':[..._0xd2aec6,..._0x169c5f,..._0x56f303]};}static async['parseFormConfigSet'](_0x1fded4){const _0x36d792=a0_0x3b1615;let _0x556a83=_0x1fded4[_0x36d792(0x203)],_0x36eb78=[];for(let _0x34d4b2=0x0;_0x34d4b2<_0x556a83[_0x36d792(0x1ed)];_0x34d4b2++){let {type:_0x4c632c='string',name:_0x3ce02e,header:_0x3352e3,hidden:_0x1f1194=!0x1,editable:_0x1aec9d=!0x0,mandatory:_0x4f159c=!0x1,align:_0x1b5650='left',select_opt:_0x2f6942,object_opt:_0x3833ba}=_0x556a83[_0x34d4b2],_0x131f66={'type':_0x4c632c,'name':_0x3ce02e,'header_txt':ValueUtil[_0x36d792(0x18f)](_0x3352e3)?TermsUtil[_0x36d792(0x1c5)](_0x3ce02e):TermsUtil[_0x36d792(0x1c5)](_0x3352e3),'header':{'renderer':function(_0xc0d1b8){const _0x461c58=_0x36d792;return _0xc0d1b8[_0x461c58(0x159)];}},'hidden':_0x1f1194,'record':{'editable':_0x1aec9d,'mandatory':_0x4f159c,'align':_0x1b5650,'classifier':function(){},'renderer':getRenderer(_0x4c632c)}};_0x1aec9d&&(_0x131f66['record']['editor']=getEditor(_0x4c632c)),_0x36d792(0x21b)===_0x4c632c&&ValueUtil['isNotEmpty'](_0x2f6942)&&(Array[_0x36d792(0x1f3)](_0x2f6942)?_0x131f66[_0x36d792(0xf3)][_0x36d792(0x1d8)]=_0x2f6942:'code'===_0x2f6942['type']?_0x131f66[_0x36d792(0xf3)][_0x36d792(0x1d8)]=await ServiceUtil[_0x36d792(0x18a)](_0x2f6942['name']):'scenario'===_0x2f6942[_0x36d792(0x214)]?_0x131f66['record'][_0x36d792(0x1d8)]=await ServiceUtil[_0x36d792(0x1a0)](_0x2f6942[_0x36d792(0x15d)],_0x2f6942[_0x36d792(0x16d)]):_0x36d792(0x161)===_0x2f6942[_0x36d792(0x214)]&&(_0x131f66[_0x36d792(0xf3)][_0x36d792(0x1d8)]=await ServiceUtil[_0x36d792(0x1d0)](_0x2f6942[_0x36d792(0x16d)]))),_0x36d792(0x20c)!==_0x4c632c&&_0x36d792(0x13b)!==_0x4c632c||!ValueUtil[_0x36d792(0x16f)](_0x3833ba)||(_0x131f66[_0x36d792(0xf3)][_0x36d792(0x1d8)]=_0x3833ba),_0x36eb78[_0x36d792(0x12f)](_0x131f66);}return _0x36eb78;}static[a0_0x3b1615(0x18b)](_0x2b2a45){const _0x56a145=a0_0x3b1615;let _0x1a66dd=_0x2b2a45['gridConfig'];_0x2b2a45['useFilterForm']=!_0x1a66dd||null==_0x1a66dd[_0x56a145(0x15a)]||_0x1a66dd['use_filter_form'];let {mobile_mode:_0x515e1b='LIST',desk_mode:_0x4c62d9=_0x56a145(0x1a4),view_mode:_0x27954a=[],use_row_checker:_0x4dedd8=!0x0,sorters:_0x46b5f2=[],pages:_0x4b9465=[0x32,0x64,0x1f4,0x3e8]}=ValueUtil[_0x56a145(0x18f)](_0x1a66dd['option'])?{}:_0x1a66dd[_0x56a145(0x1ff)];return'unlimited'===_0x4b9465||'-1'===_0x4b9465?(_0x2b2a45[_0x56a145(0xed)]=!0x0,_0x4b9465={'infinite':!0x0}):(_0x2b2a45[_0x56a145(0xed)]=!0x1,_0x4b9465['sort'](function(_0x53019b,_0x120f9f){return _0x53019b-_0x120f9f;}),_0x4b9465={'pages':_0x4b9465}),ValueUtil[_0x56a145(0x16f)](_0x27954a)&&(0x1==_0x27954a[_0x56a145(0x1ed)]?(_0x4c62d9=_0x27954a[0x0],_0x515e1b=_0x27954a[0x0]):_0x27954a[_0x56a145(0x1ed)]>=0x2&&(_0x27954a['includes'](_0x515e1b)||(_0x515e1b=_0x27954a[0x1]),_0x27954a[_0x56a145(0x12d)](_0x4c62d9)||(_0x4c62d9=_0x27954a[0x0]))),_0x2b2a45[_0x56a145(0x12c)]=_0x515e1b,_0x2b2a45[_0x56a145(0x1e3)]=_0x4c62d9,_0x2b2a45[_0x56a145(0x204)]=_0x27954a,_0x2b2a45['gridMode']=UiUtil[_0x56a145(0x1aa)]()?_0x2b2a45[_0x56a145(0x12c)]:_0x2b2a45[_0x56a145(0x1e3)],{'use_row_checker':_0x4dedd8,'sorters':_0x46b5f2,'pages':_0x4b9465};}static[a0_0x3b1615(0x21e)](_0x163162){const _0x47d304=a0_0x3b1615;let _0x342080={'fields':[ValueUtil['getParams'](_0x163162[_0x47d304(0x218)],'name'),ValueUtil[_0x47d304(0x11c)](_0x163162[_0x47d304(0x218)],_0x47d304(0x1b9))]};return _0x163162[_0x47d304(0x201)][_0x47d304(0x108)]&&Object[_0x47d304(0x202)](_0x342080,_0x163162[_0x47d304(0x201)][_0x47d304(0x108)]),_0x342080;}static[a0_0x3b1615(0x212)](_0x80fea5){const _0x42c699=a0_0x3b1615;let {multiple_select:_0x1c1fbe=!0x1,click:_0x1f3198}=ValueUtil['isEmpty'](_0x80fea5[_0x42c699(0x201)][_0x42c699(0x1bf)])?{}:_0x80fea5[_0x42c699(0x201)][_0x42c699(0x1bf)],_0x354c4a={'selectable':{'multiple':_0x1c1fbe},'appendable':_0x80fea5[_0x42c699(0x16e)]};return ValueUtil[_0x42c699(0x16f)](_0x1f3198)&&(_0x354c4a[_0x42c699(0x1cc)]={'click':_0x1f3198}),_0x354c4a;}static[a0_0x3b1615(0x1ab)](_0x19a5a9){const _0x278695=a0_0x3b1615;let _0x10119f=_0x19a5a9[_0x278695(0x201)]['button'];return ValueUtil['isEmpty'](_0x10119f)?[]:_0x10119f[_0x278695(0x1f0)](_0x3e0760=>{const _0x1cfb51=_0x278695;let _0x5a32c3={'type':_0x1cfb51(0xee),'gutterName':'button'};if(ValueUtil[_0x1cfb51(0x16f)](_0x3e0760[_0x1cfb51(0x1b5)])&&(Array[_0x1cfb51(0x1f3)](_0x3e0760[_0x1cfb51(0x1b5)])?_0x5a32c3[_0x1cfb51(0x1b5)]=_0x26cac6=>{const _0x18188d=_0x1cfb51;if(ValueUtil[_0x18188d(0x16f)](_0x26cac6))for(let _0x197603=0x0;_0x197603<_0x3e0760[_0x18188d(0x1b5)][_0x18188d(0x1ed)];_0x197603++){let _0x4fa286=_0x3e0760[_0x18188d(0x1b5)][_0x197603];if(!0x0===ValueUtil[_0x18188d(0x105)](_0x4fa286,_0x26cac6,Object[_0x18188d(0x12a)](_0x4fa286)[_0x18188d(0x223)](_0x48bebc=>_0x18188d(0x1b5)!=_0x48bebc)))return _0x4fa286[_0x18188d(0x1b5)];}}:_0x5a32c3['icon']=_0x3e0760[_0x1cfb51(0x1b5)]),ValueUtil[_0x1cfb51(0x16f)](_0x3e0760[_0x1cfb51(0x15d)])&&(_0x5a32c3[_0x1cfb51(0x15d)]=_0x3e0760[_0x1cfb51(0x15d)]),ValueUtil[_0x1cfb51(0x16f)](_0x3e0760[_0x1cfb51(0x14a)])&&(_0x5a32c3['title']=TermsUtil[_0x1cfb51(0x149)](_0x3e0760['label'])),'basic'===_0x3e0760[_0x1cfb51(0x214)]){let _0x52760d=ValueUtil[_0x1cfb51(0x11c)](_0x3e0760,_0x1cfb51(0x124));[_0x1cfb51(0xef),_0x1cfb51(0x170)][_0x1cfb51(0x12d)](_0x52760d)?_0x5a32c3[_0x1cfb51(0x1cc)]={'click':(_0x123041,_0x8015ed,_0x2b1b7c,_0x2087e1,_0x57929d)=>{const _0x17d26a=_0x1cfb51;if(_0x2087e1['id']){let _0x5765e1={'title':_0x17d26a(0x19a),'type':_0x17d26a(0x185),'tagname':_0x17d26a(0xef)==_0x52760d?_0x17d26a(0x163):_0x17d26a(0x1d1),'location':_0x17d26a(0xef)==_0x52760d?_0x17d26a(0x18d):_0x17d26a(0xe3),'menu':_0x19a5a9[_0x17d26a(0x130)],'size':'large','popup_field':_0x17d26a(0x198),'parent_field':'id'},_0x4034d0={..._0x2087e1,'gqlFunc':ValueUtil['getParams'](_0x19a5a9[_0x17d26a(0x222)],_0x17d26a(0x1f9),_0x17d26a(0x136)),'gristConfig':JSON['parse'](JSON[_0x17d26a(0x1f1)](_0x19a5a9[_0x17d26a(0x107)][_0x17d26a(0x137)]))};MetaUiUtil['gristButtonHandler'](_0x19a5a9,{'logic':_0x5765e1},_0x4034d0);}}}:_0x5a32c3[_0x1cfb51(0x1cc)]={'click':_0x52760d};}else _0x5a32c3[_0x1cfb51(0x1cc)]={'click':(_0x2dfc6a,_0x280071,_0x5ddab5,_0x951b90,_0x569c37)=>{_0x951b90['id']&&MetaUiUtil['gristButtonHandler'](_0x19a5a9,_0x3e0760,_0x951b90);}};return _0x5a32c3;});}static async[a0_0x3b1615(0x158)](_0x56d9b4){const _0x1df9c7=a0_0x3b1615;let _0x424716=_0x56d9b4[_0x1df9c7(0x1dc)];if(ValueUtil[_0x1df9c7(0x18f)](_0x424716))return[];let _0x55a622=[];for(let _0x223f32=0x0;_0x223f32<_0x424716['length'];_0x223f32++){let {type:_0x31a728=_0x1df9c7(0x206),name:_0x3602e4,header:_0x545009,hidden:_0x568508=!0x1,editable:_0x410929=!0x0,mandatory:_0x29e355=!0x1,sortable:_0x2cd9ca=!0x1,align:_0x82ff1d=_0x1df9c7(0x125),width:_0x454eb6=0x0,exportable:_0xb901b7=!0x1,select_opt:_0x5e37b0,object_opt:_0x3b9eb9}=_0x424716[_0x223f32],_0xa69b26={'type':_0x31a728,'name':_0x3602e4,'header':ValueUtil['isEmpty'](_0x545009)?'':TermsUtil[_0x1df9c7(0x1c5)](_0x545009),'hidden':_0x568508,'sortable':_0x2cd9ca,'width':_0x454eb6,'record':{'editable':_0x410929,'mandatory':_0x29e355,'align':_0x82ff1d}};if(_0x1df9c7(0x21b)===_0x31a728&&ValueUtil[_0x1df9c7(0x16f)](_0x5e37b0))Array['isArray'](_0x5e37b0)?_0xa69b26[_0x1df9c7(0xf3)][_0x1df9c7(0x1d8)]=_0x5e37b0:'code'===_0x5e37b0['type']?_0xa69b26[_0x1df9c7(0xf3)][_0x1df9c7(0x1d8)]=await ServiceUtil[_0x1df9c7(0x18a)](_0x5e37b0[_0x1df9c7(0x15d)]):'scenario'===_0x5e37b0[_0x1df9c7(0x214)]?_0xa69b26[_0x1df9c7(0xf3)][_0x1df9c7(0x1d8)]=await ServiceUtil['getCodeByScenario'](_0x5e37b0['name'],_0x5e37b0[_0x1df9c7(0x16d)]):_0x1df9c7(0x161)===_0x5e37b0[_0x1df9c7(0x214)]&&(_0xa69b26['record'][_0x1df9c7(0x1d8)]=await ServiceUtil['getCodeByEntity'](_0x5e37b0[_0x1df9c7(0x16d)]));else{if((_0x1df9c7(0x20c)===_0x31a728||_0x1df9c7(0x13b)===_0x31a728)&&ValueUtil[_0x1df9c7(0x16f)](_0x3b9eb9)){let _0x30fe13;_0x3b9eb9['select']&&_0x3b9eb9[_0x1df9c7(0x21b)][_0x1df9c7(0x217)](_0x551a62=>{const _0x2446d1=_0x1df9c7;_0x551a62[_0x2446d1(0xec)]||(_0x551a62[_0x2446d1(0xec)]=_0x551a62['name']),_0x551a62[_0x2446d1(0xec)]=TermsUtil[_0x2446d1(0x1c5)](_0x551a62[_0x2446d1(0xec)]);}),_0xa69b26['record'][_0x1df9c7(0x1d8)]={..._0x3b9eb9},_0x3b9eb9[_0x1df9c7(0xe0)]&&_0x3b9eb9[_0x1df9c7(0xe0)][_0x1df9c7(0x133)]&&(_0x30fe13=[..._0x3b9eb9[_0x1df9c7(0xe0)][_0x1df9c7(0x133)]]),_0x30fe13&&JSON['stringify'](_0x30fe13)[_0x1df9c7(0x12d)]('::')&&(_0xa69b26[_0x1df9c7(0x1cc)]={'dblclick':(_0x9866fb,_0x171cfa,_0x2a4347,_0x23f70b,_0x44065a)=>{const _0x64b3e6=_0x1df9c7;let _0x177e4a=[];_0x30fe13[_0x64b3e6(0x217)](_0x10ada8=>{const _0x42685a=_0x64b3e6;var {name:_0x5b947b,value:_0x2efebd,operator:_0x362759='eq'}=_0x10ada8;_0x2efebd[_0x42685a(0x12d)]('::')&&(_0x2efebd=ValueUtil[_0x42685a(0x11c)](_0x23f70b,..._0x2efebd[_0x42685a(0x176)]('::','')[_0x42685a(0x207)]('.'))),_0x2efebd||(_0x2efebd=''),_0x177e4a[_0x42685a(0x12f)]({'name':_0x5b947b,'operator':_0x362759,'value':_0x2efebd});}),_0x2a4347[_0x64b3e6(0xf3)][_0x64b3e6(0x1d8)][_0x64b3e6(0xe0)][_0x64b3e6(0x133)]=_0x177e4a;}});}}!0x0===_0x56d9b4['useButtonExport']&&!0x0===_0xb901b7&&(_0xa69b26[_0x1df9c7(0x18e)]={'header':_0xa69b26[_0x1df9c7(0xec)],'key':_0xa69b26['name'],'width':_0xa69b26[_0x1df9c7(0x164)]/0x6,'type':_0xa69b26['type']}),_0x55a622[_0x1df9c7(0x12f)](_0xa69b26);}if(!0x0!==this[_0x1df9c7(0x18c)])return _0x55a622;let _0x38b565=await MetaApi[_0x1df9c7(0x100)](this['menuId']),{template:_0x32407a={}}=_0x38b565;if(!_0x32407a[_0x1df9c7(0xf5)])return _0x55a622;let _0x2cb968=_0x32407a[_0x1df9c7(0xf5)];return _0x55a622=_0x55a622[_0x1df9c7(0x1f0)](_0x3dec36=>('id'==_0x3dec36['name']||(_0x3dec36[_0x1df9c7(0x1ad)]=!_0x2cb968[_0x1df9c7(0x12d)](_0x3dec36['name']),_0x3dec36['rank']=_0x2cb968[_0x1df9c7(0x142)](_0x3dec36[_0x1df9c7(0x15d)]),-0x1==_0x3dec36[_0x1df9c7(0x1f8)]&&(_0x3dec36['rank']=0x1869f)),_0x3dec36)),_0x55a622['sort']((_0x309f13,_0x11f9c3)=>_0x309f13[_0x1df9c7(0x1f8)]-_0x11f9c3['rank']),_0x55a622;}static[a0_0x3b1615(0xf4)](_0x44cc53,_0x43b1bb){const _0x321efc=a0_0x3b1615;let _0x33e8a0=_0x44cc53[_0x321efc(0x1c4)];return _0x33e8a0&&_0x33e8a0[_0x321efc(0x217)](_0x277e31=>{const _0x1b2f5e=_0x321efc;_0x1b2f5e(0x206)==typeof _0x277e31?_0x43b1bb[_0x1b2f5e(0x223)](_0x43bbb2=>_0x43bbb2['name']==_0x277e31)[_0x1b2f5e(0x217)](_0x813691=>{const _0x5baa65=_0x1b2f5e;_0x813691[_0x5baa65(0x223)]=_0x5baa65(0x1db);}):_0x1b2f5e(0x20c)==typeof _0x277e31&&_0x43b1bb['filter'](_0x5e21f8=>_0x5e21f8['name']==_0x277e31[_0x1b2f5e(0x15d)])[_0x1b2f5e(0x217)](_0x1bad28=>{const _0x343813=_0x1b2f5e;_0x1bad28[_0x343813(0x223)]=_0x277e31;let _0x5d0c50=_0x1bad28[_0x343813(0x223)][_0x343813(0x19c)];if(_0x5d0c50&&_0x5d0c50[_0x343813(0x150)](_0x343813(0x174))){const _0x4d0b76=a0_0x46ba08();let _0xe193c8=_0x5d0c50['split'](','),_0xf3811f=[];_0xe193c8[_0x343813(0x217)](_0x59d597=>{const _0xe7eb34=_0x343813;_0xe7eb34(0x174)==_0x59d597?_0xf3811f[_0xe7eb34(0x12f)](_0x4d0b76[_0xe7eb34(0x171)](_0xe7eb34(0x19b))):_0x59d597['includes']('-')?_0xf3811f[_0xe7eb34(0x12f)](_0x4d0b76[_0xe7eb34(0x153)](_0x59d597[_0xe7eb34(0x207)]('-')[0x1],'day')[_0xe7eb34(0x171)]('YYYY-MM-DD')):_0x59d597['includes']('+')&&_0xf3811f[_0xe7eb34(0x12f)](_0x4d0b76[_0xe7eb34(0xf9)](_0x59d597[_0xe7eb34(0x207)]('+')[0x1],_0xe7eb34(0xe4))[_0xe7eb34(0x171)](_0xe7eb34(0x19b)));}),_0x1bad28[_0x343813(0x223)][_0x343813(0x19c)]=0x1==_0xf3811f['length']?_0xf3811f[0x0]:_0xf3811f;}});}),_0x43b1bb;}static[a0_0x3b1615(0x1e5)](_0x45a076){const _0x1416c3=a0_0x3b1615;let _0x3a2810={'title':TermsUtil[_0x1416c3(0x1ca)](_0x45a076['menuInfo'][_0x1416c3(0x1e1)]),'help':_0x45a076[_0x1416c3(0x218)]['help']||'','actions':[...MetaUiUtil[_0x1416c3(0x1f7)](_0x45a076)]};return _0x45a076[_0x1416c3(0x168)]&&(_0x3a2810[_0x1416c3(0xfe)]={'name':_0x3a2810[_0x1416c3(0x1e1)],'data':_0x45a076[_0x1416c3(0x186)][_0x1416c3(0x1fe)](_0x45a076)}),_0x45a076[_0x1416c3(0x1e4)]&&(_0x3a2810[_0x1416c3(0x183)]={'handler':_0x45a076[_0x1416c3(0x129)]['bind'](_0x45a076)}),_0x3a2810;}static[a0_0x3b1615(0x1f7)](_0x514524){const _0x214cae=a0_0x3b1615;let _0x241fb1=_0x514524[_0x214cae(0x1b2)];return ValueUtil[_0x214cae(0x18f)](_0x241fb1)?[]:_0x241fb1[_0x214cae(0x223)](_0x2005e1=>_0x214cae(0x186)!=_0x2005e1['name']&&_0x214cae(0x129)!=_0x2005e1[_0x214cae(0x15d)]&&_0x214cae(0xf9)!=_0x2005e1[_0x214cae(0x15d)])[_0x214cae(0x1f0)](_0x116c70=>{const _0x328dea=_0x214cae;let {name:_0x3b326c,label:_0x2f8ac7,style:_0x5ddfd4,type:_0x21fd67=_0x328dea(0x17c),action:_0xa340cc,logic:_0x2d765a}=_0x116c70;if(ValueUtil[_0x328dea(0x18f)](_0x3b326c))return{'title':'-1'};ValueUtil[_0x328dea(0x18f)](_0x2f8ac7)&&(_0x2f8ac7=_0x3b326c),ValueUtil[_0x328dea(0x18f)](_0x5ddfd4)&&(_0x5ddfd4=_0x3b326c),ValueUtil[_0x328dea(0x18f)](_0xa340cc)&&(_0xa340cc=_0x3b326c);let _0x3b0cc9=ValueUtil[_0x328dea(0x16f)](_0x5ddfd4)?CommonButtonStyles[_0x5ddfd4]||{'icon':_0x5ddfd4,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}}:{};return{'title':TermsUtil[_0x328dea(0x149)](_0x2f8ac7),'action':MetaUiUtil[_0x328dea(0x189)](_0x514524,_0x21fd67,_0xa340cc,_0x2d765a),..._0x3b0cc9};})[_0x214cae(0x223)](_0x30718f=>'-1'!=_0x30718f[_0x214cae(0x1e1)]);}static[a0_0x3b1615(0x1f6)](_0x1ec200){const _0x39a89b=a0_0x3b1615;let _0x582c85=_0x1ec200&&_0x1ec200[_0x39a89b(0x1b2)]?_0x1ec200[_0x39a89b(0x1b2)]:null;return _0x582c85?_0x582c85[_0x39a89b(0x223)](_0x54553e=>_0x39a89b(0xf9)!=_0x54553e[_0x39a89b(0x15d)])[_0x39a89b(0x1f0)](_0x42aa9d=>{const _0x5e1f3c=_0x39a89b;let {name:_0x900148,label:_0x3c54b1,style:_0xc51643,type:_0x26aa8a='basic',action:_0x57547b,logic:_0x2f7345}=_0x42aa9d;ValueUtil['isEmpty'](_0x3c54b1)&&(_0x3c54b1=_0x900148),ValueUtil['isEmpty'](_0xc51643)&&(_0xc51643=_0x900148),ValueUtil[_0x5e1f3c(0x18f)](_0x57547b)&&(_0x57547b=_0x900148);let _0x1d86e6=MetaUiUtil[_0x5e1f3c(0x1d5)](TermsUtil['tButton'](_0x3c54b1),_0xc51643);return _0x1d86e6[_0x5e1f3c(0x1a2)]=MetaUiUtil['getButtonActionHandler'](_0x1ec200,_0x26aa8a,_0x57547b,_0x2f7345),_0x1d86e6;}):[];}static['createButtonElement'](_0x355c22,_0x4e9091){const _0x763e2=a0_0x3b1615;let _0x395966=CommonButtonStyles[_0x4e9091]||{'icon':_0x4e9091,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}},_0x231eb2=_0x763e2(0x111)+_0x355c22+_0x763e2(0xe5)+(_0x395966['icon']?_0x395966[_0x763e2(0x1b5)]:'')+'\x22\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x395966[_0x763e2(0x1ee)][_0x763e2(0x102)]?_0x763e2(0x102):'')+_0x763e2(0x184)+(_0x395966[_0x763e2(0x1ee)][_0x763e2(0x1e6)]?_0x763e2(0x1e6):'')+_0x763e2(0x184)+(_0x395966[_0x763e2(0x1ee)][_0x763e2(0x11b)]?'dense':'')+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x395966['emphasis'][_0x763e2(0x21c)]?_0x763e2(0x21c):'')+_0x763e2(0x221);return UiUtil[_0x763e2(0x140)](_0x231eb2);}static[a0_0x3b1615(0x189)](_0x3f88a1,_0x36787f,_0x1cd30d,_0x576875){const _0x3aa687=a0_0x3b1615;if(_0x3aa687(0x17c)==_0x36787f){if(_0x3f88a1[_0x1cd30d])return _0x3f88a1[_0x1cd30d][_0x3aa687(0x1fe)](_0x3f88a1);}else{if('custom'==_0x36787f)return()=>MetaUiUtil[_0x3aa687(0x1c7)](_0x3f88a1,_0x576875);}return()=>{const _0x363562=_0x3aa687;UiUtil[_0x363562(0x120)](_0x363562(0xea),_0x363562(0x147),_0x363562(0x1ce),_0x363562(0x14e));};}static async[a0_0x3b1615(0x20a)](_0x13d965,_0x327620,_0x10ef04){const _0x368dee=a0_0x3b1615;let _0x4ff203=ValueUtil[_0x368dee(0x11c)](_0x327620,_0x368dee(0x124)),_0x408f44=ValueUtil[_0x368dee(0x11c)](_0x4ff203,_0x368dee(0x214));if(_0x368dee(0x146)===_0x408f44)_0x4ff203[_0x368dee(0x116)]=_0x368dee(0x17d),_0x4ff203[_0x368dee(0x13c)]=_0x368dee(0x110),_0x4ff203[_0x368dee(0x1b4)]='id',await MetaUiUtil[_0x368dee(0xe9)](_0x13d965,_0x4ff203,_0x10ef04);else{if('pass_param'===_0x408f44)MetaUiUtil[_0x368dee(0x11e)](_0x13d965,_0x4ff203,_0x10ef04);else{if(_0x368dee(0x1fd)===_0x408f44){let _0x1e6c60;_0x4ff203['param_field']?(_0x1e6c60={},Object[_0x368dee(0x12a)](_0x10ef04)[_0x368dee(0x223)](_0x4a13f0=>Object[_0x368dee(0x12a)](_0x4ff203[_0x368dee(0x157)])[_0x368dee(0x12d)](_0x4a13f0))[_0x368dee(0x1f0)](_0x2f5ec5=>{const _0x3aa5c6=_0x368dee;Object['keys'](_0x4ff203['param_field'])[_0x3aa5c6(0x12d)](_0x2f5ec5)&&(_0x3aa5c6(0x206)==typeof _0x10ef04[_0x2f5ec5]?_0x1e6c60[_0x4ff203[_0x3aa5c6(0x157)][_0x2f5ec5]]=_0x10ef04[_0x2f5ec5]:_0x1e6c60[_0x4ff203[_0x3aa5c6(0x157)][_0x2f5ec5]]={'id':_0x10ef04[_0x2f5ec5]['id']});})):_0x1e6c60=_0x10ef04,UiUtil[_0x368dee(0x209)](_0x4ff203[_0x368dee(0x187)],[_0x1e6c60]);}else'popup'===_0x408f44?await MetaUiUtil['commonButtonOpenPopup'](_0x13d965,_0x4ff203,_0x10ef04):'scenario'===_0x408f44?await MetaUiUtil[_0x368dee(0x172)](_0x13d965,_0x4ff203,_0x10ef04):_0x368dee(0x1bb)===_0x408f44&&await MetaUiUtil[_0x368dee(0x1ba)](_0x13d965,_0x4ff203,_0x10ef04);}}}static async[a0_0x3b1615(0x1c7)](_0x35ae01,_0x2fa87a){const _0x5d44e6=a0_0x3b1615;if(ValueUtil['isEmpty'](_0x2fa87a))return;let _0x3469e8=_0x35ae01[_0x5d44e6(0x107)],_0x1a8d5b=_0x35ae01['filterForm'],_0x24d667=ValueUtil['getParams'](_0x2fa87a,_0x5d44e6(0x214)),_0x2eadcd=ValueUtil[_0x5d44e6(0x11c)](_0x2fa87a,_0x5d44e6(0x165)),_0x3d88f2=_0x2eadcd[_0x5d44e6(0x223)](_0x9f0b3a=>_0x9f0b3a[_0x5d44e6(0x150)](_0x5d44e6(0x107)));if(ValueUtil[_0x5d44e6(0x16f)](_0x3d88f2)){if(!_0x3469e8)return void UiUtil[_0x5d44e6(0x120)]('title.info','text.grid_is_not_exist',_0x5d44e6(0x1ce),_0x5d44e6(0x14e));if(0x0==(_0x3469e8[_0x5d44e6(0x113)]?_0x3469e8[_0x5d44e6(0x113)][_0x5d44e6(0x173)]:[])['length'])return void UiUtil[_0x5d44e6(0x120)](_0x5d44e6(0x141),'text.grid_data_is_empty','info',_0x5d44e6(0x14e));if(_0x2eadcd[_0x5d44e6(0x12d)](_0x5d44e6(0x15b))||_0x2eadcd[_0x5d44e6(0x12d)]('grist_selected')){let _0x1b4984=_0x3469e8[_0x5d44e6(0x1fb)];if(ValueUtil[_0x5d44e6(0x18f)](_0x1b4984))return void UiUtil[_0x5d44e6(0x120)]('text.nothing_selected',_0x5d44e6(0x16a),_0x5d44e6(0x1ce),_0x5d44e6(0x14e));if(_0x2eadcd[_0x5d44e6(0x12d)](_0x5d44e6(0x15b))&&_0x1b4984[_0x5d44e6(0x1ed)]>0x1)return void UiUtil['showAlertPopup'](_0x5d44e6(0x141),'text.please_select_only_one','info','confirm');}}let _0x32cd5d={};if(_0x2eadcd[_0x5d44e6(0x12d)](_0x5d44e6(0x223))){if(!_0x1a8d5b)return void UiUtil['showAlertPopup'](_0x5d44e6(0x141),_0x5d44e6(0x17a),_0x5d44e6(0x1ce),_0x5d44e6(0x14e));let _0x563f36=_0x1a8d5b?await _0x1a8d5b['getQueryFilters']():[];_0x32cd5d[_0x5d44e6(0x223)]=_0x563f36;}if(_0x2eadcd['includes'](_0x5d44e6(0x104)))_0x32cd5d[_0x5d44e6(0x107)]=_0x3469e8[_0x5d44e6(0x113)][_0x5d44e6(0x173)];else{if(_0x2eadcd[_0x5d44e6(0x12d)](_0x5d44e6(0x15b)))_0x32cd5d[_0x5d44e6(0x107)]=_0x3469e8[_0x5d44e6(0x1fb)][0x0];else{if(_0x2eadcd[_0x5d44e6(0x12d)](_0x5d44e6(0x131)))_0x32cd5d[_0x5d44e6(0x107)]=_0x3469e8[_0x5d44e6(0x1fb)];else{if(_0x2eadcd['includes'](_0x5d44e6(0x114))&&(_0x32cd5d[_0x5d44e6(0x107)]=ServiceUtil[_0x5d44e6(0x1b6)](_0x3469e8),!_0x32cd5d['grist']))return;}}}if(_0x5d44e6(0x1fd)===_0x24d667){let _0x303e78,_0x537e4d=Array[_0x5d44e6(0x1f3)](_0x32cd5d['grist'])?_0x32cd5d[_0x5d44e6(0x107)]:[_0x32cd5d[_0x5d44e6(0x107)]];_0x303e78=_0x2fa87a[_0x5d44e6(0x157)]?_0x537e4d['map'](_0x27b810=>{const _0x53ab1a=_0x5d44e6;let _0x1a84d1={};return Object[_0x53ab1a(0x12a)](_0x27b810)[_0x53ab1a(0x223)](_0x420c25=>Object[_0x53ab1a(0x12a)](_0x2fa87a[_0x53ab1a(0x157)])[_0x53ab1a(0x12d)](_0x420c25))[_0x53ab1a(0x1f0)](_0x1bbf5b=>{const _0x81bbbe=_0x53ab1a;Object[_0x81bbbe(0x12a)](_0x2fa87a[_0x81bbbe(0x157)])[_0x81bbbe(0x12d)](_0x1bbf5b)&&(_0x81bbbe(0x206)==typeof _0x27b810[_0x1bbf5b]?_0x1a84d1[_0x2fa87a[_0x81bbbe(0x157)][_0x1bbf5b]]=_0x27b810[_0x1bbf5b]:_0x1a84d1[_0x2fa87a['param_field'][_0x1bbf5b]]={'id':_0x27b810[_0x1bbf5b]['id']});}),_0x1a84d1;}):_0x537e4d,UiUtil['pageNavigate'](_0x2fa87a[_0x5d44e6(0x187)],_0x303e78);}else{if(_0x5d44e6(0x185)===_0x24d667){let _0x55638b={..._0x32cd5d[_0x5d44e6(0x107)]?_0x32cd5d['grist']:{},..._0x32cd5d[_0x5d44e6(0x223)]?_0x32cd5d['filter']:{}};await MetaUiUtil[_0x5d44e6(0xe9)](_0x35ae01,_0x2fa87a,_0x55638b);}else'scenario'===_0x24d667&&await MetaUiUtil[_0x5d44e6(0x172)](_0x35ae01,_0x2fa87a,_0x32cd5d);}}static[a0_0x3b1615(0x11e)](_0x3a4c63,_0x5d1087,_0x6e7b4e){const _0x232fd9=a0_0x3b1615;let _0x3ed69b=_0x5d1087[_0x232fd9(0xf2)],_0x1f748e={},_0x519528=_0x3a4c63[_0x232fd9(0x1b7)][_0x232fd9(0x155)](),_0xdefefb=_0x3a4c63;_0x1f748e=_0x519528[_0x232fd9(0x150)](_0x232fd9(0x16c))?{'detail':{..._0x3ed69b}}:_0x519528[_0x232fd9(0x150)](_0x232fd9(0x123))?_0x3a4c63[_0x232fd9(0x103)]['tagName']['toLowerCase']()[_0x232fd9(0x150)](_0x232fd9(0x1ea))?{'detail':{..._0x3ed69b}}:{'self':{..._0x3ed69b}}:_0x3ed69b,Object[_0x232fd9(0x12a)](_0x1f748e)[_0x232fd9(0x217)](_0x113cf7=>{const _0x42111d=_0x232fd9;_0x42111d(0xf5)==_0x113cf7?_0xdefefb=_0x3a4c63[_0x42111d(0x175)][_0x42111d(0x13d)]:_0x42111d(0x1de)==_0x113cf7?_0xdefefb=_0x3a4c63[_0x42111d(0x175)]?_0x3a4c63[_0x42111d(0x175)][_0x42111d(0x103)]:_0x3a4c63[_0x42111d(0x103)]:_0x42111d(0x178)==_0x113cf7&&(_0xdefefb=_0x3a4c63),Object[_0x42111d(0x12a)](_0x1f748e[_0x113cf7])[_0x42111d(0x217)](_0x532bfc=>{const _0x785eaf=_0x42111d;let _0x25818f=_0xdefefb[_0x785eaf(0x210)][_0x785eaf(0x128)]('#'+_0x532bfc);_0x6e7b4e['id']&&_0x25818f[_0x785eaf(0x138)](_0x6e7b4e['id']);let _0x181173=_0x1f748e[_0x113cf7][_0x532bfc];Object[_0x785eaf(0x12a)](_0x181173)['forEach'](_0x264193=>{let _0x101281=_0x181173[_0x264193],_0x11a094='*'===_0x101281?_0x6e7b4e:_0x6e7b4e[_0x101281];_0x25818f[_0x264193]=_0x11a094;});});});}static async[a0_0x3b1615(0xe9)](_0x2cd29a,_0x522cf9,_0x3f8fcd){const _0x567967=a0_0x3b1615;let _0x4bd48e=TermsUtil[_0x567967(0x1ca)](_0x522cf9[_0x567967(0x1e1)]);ValueUtil[_0x567967(0x16f)](_0x522cf9['title_detail'])&&(_0x4bd48e=_0x4bd48e+'('+ValueUtil['getParams'](_0x3f8fcd,..._0x522cf9[_0x567967(0x10a)][_0x567967(0x207)]('.'))+')');let _0x57671a=_0x522cf9[_0x567967(0x126)]&&'string'==typeof _0x522cf9[_0x567967(0x126)]&&'fetch'===_0x522cf9['after']&&_0x2cd29a&&_0x2cd29a[_0x567967(0x1c6)]?_0x2cd29a[_0x567967(0x1c6)]['bind'](_0x2cd29a):void 0x0;UiUtil[_0x567967(0x154)](_0x4bd48e,_0x522cf9,_0x3f8fcd,_0x57671a);}static async[a0_0x3b1615(0x172)](_0x555f93,_0x4d1d22,_0x2c8ac0){const _0x404771=a0_0x3b1615;let _0x9a5b32=await ServiceUtil['callScenario'](_0x404771(0x132),_0x4d1d22['name'],_0x2c8ac0);if(!_0x9a5b32[_0x404771(0x134)]&&!ValueUtil[_0x404771(0x18f)](_0x4d1d22[_0x404771(0x126)])&&_0x4d1d22[_0x404771(0x126)]){if(_0x404771(0x1c6)!==_0x4d1d22[_0x404771(0x126)]){if(_0x404771(0x20c)==typeof _0x4d1d22[_0x404771(0x126)]){let _0x55481e=_0x4d1d22[_0x404771(0x126)],_0x45156b=ValueUtil[_0x404771(0x11c)](_0x9a5b32[_0x404771(0x113)][_0x404771(0xe8)][_0x404771(0x113)],..._0x55481e[_0x404771(0x1df)][_0x404771(0x207)]('.'));if(0x0==Array[_0x404771(0x1f3)](_0x45156b)&&(_0x45156b=[_0x45156b]),_0x404771(0x146)===_0x55481e[_0x404771(0x214)])_0x55481e['tagname']=_0x404771(0x17d),_0x55481e[_0x404771(0x13c)]=_0x404771(0x110),_0x55481e[_0x404771(0x1b4)]='id',_0x45156b=_0x45156b[0x0],await MetaUiUtil[_0x404771(0xe9)](_0x555f93,_0x55481e,_0x45156b);else{if(_0x404771(0x1fd)===_0x55481e[_0x404771(0x214)]){let _0x4b88a0,_0x377d72=_0x45156b;_0x4b88a0=_0x55481e[_0x404771(0x157)]?_0x377d72[_0x404771(0x1f0)](_0x5b1c46=>{const _0x327683=_0x404771;let _0x109c47={};return Object[_0x327683(0x12a)](_0x5b1c46)['filter'](_0x2fc0e3=>Object[_0x327683(0x12a)](_0x55481e[_0x327683(0x157)])['includes'](_0x2fc0e3))[_0x327683(0x1f0)](_0x1d8f09=>{const _0x559d3e=_0x327683;Object[_0x559d3e(0x12a)](_0x55481e['param_field'])[_0x559d3e(0x12d)](_0x1d8f09)&&(_0x559d3e(0x206)==typeof _0x5b1c46[_0x1d8f09]?_0x109c47[_0x55481e[_0x559d3e(0x157)][_0x1d8f09]]=_0x5b1c46[_0x1d8f09]:_0x109c47[_0x55481e[_0x559d3e(0x157)][_0x1d8f09]]={'id':_0x5b1c46[_0x1d8f09]['id']});}),_0x109c47;}):_0x377d72,UiUtil[_0x404771(0x209)](_0x55481e[_0x404771(0x187)],_0x4b88a0);}else _0x404771(0x1d2)===_0x55481e[_0x404771(0x214)]?(_0x45156b=_0x45156b[0x0],MetaUiUtil[_0x404771(0x11e)](_0x555f93,_0x55481e,_0x45156b)):'popup'===_0x55481e['type']?(_0x45156b=_0x45156b[0x0],await MetaUiUtil[_0x404771(0xe9)](_0x555f93,_0x55481e,_0x45156b)):_0x404771(0x1bb)===_0x55481e[_0x404771(0x214)]&&(_0x45156b=_0x45156b[0x0],await MetaUiUtil[_0x404771(0x1ba)](_0x555f93,_0x55481e,_0x45156b));}}}else _0x555f93[_0x404771(0x1c6)]();}}static async[a0_0x3b1615(0x1ba)](_0x1fdb27,_0x14643f,_0x369e52){const _0x40edba=a0_0x3b1615;for(let _0x3fe9ab=0x0;_0x3fe9ab<_0x14643f[_0x40edba(0x1b8)][_0x40edba(0x1ed)];_0x3fe9ab++){let _0x4af465=_0x14643f[_0x40edba(0x1b8)][_0x3fe9ab];!0x0===ValueUtil['compareObjectValues'](_0x4af465,_0x369e52,Object['keys'](_0x4af465)[_0x40edba(0x223)](_0x3926c4=>_0x40edba(0x124)!=_0x3926c4))&&await MetaUiUtil[_0x40edba(0x20a)](_0x1fdb27,_0x4af465,_0x369e52);}}static['getGristHiddenColumnConfig'](_0x5afcdb,_0x191241){return{'type':_0x5afcdb,'name':_0x191241,'sortable':!0x1,'hidden':!0x0};}static[a0_0x3b1615(0x21f)](_0x235044,_0x35cd43,_0x4f1032,_0x4c4a72,_0x2153b4,_0x3b9c03){const _0x3590af=a0_0x3b1615;let _0x5ac7a8=TermsUtil[_0x3590af(0x1c5)](_0x35cd43);return{'type':_0x235044,'name':_0x35cd43,'header':_0x5ac7a8,'record':{'align':_0x4f1032,'editable':_0x4c4a72},'sortable':_0x2153b4,'width':_0x3b9c03,'imex':{'width':Math[_0x3590af(0x144)](_0x3b9c03/0x6),'header':_0x5ac7a8,'type':_0x235044,'key':_0x35cd43}};}static[a0_0x3b1615(0x1c3)](_0x26134f,_0xe534ef,_0x3f8c6a,_0x17c82c,_0x419bd5,_0x184086,_0x20e537){const _0x17dba8=a0_0x3b1615;let _0x441bfb=TermsUtil['tLabel'](_0x3f8c6a);return{'type':_0x26134f,'name':_0xe534ef,'header':_0x441bfb,'record':{'align':_0x17c82c,'editable':_0x419bd5},'sortable':_0x184086,'width':_0x20e537,'imex':{'width':Math[_0x17dba8(0x144)](_0x20e537/0x6),'header':_0x441bfb,'type':_0x26134f,'key':_0xe534ef}};}static['getGristColumnConfig3'](_0x139caa,_0x2b8ee4,_0x1d39d2,_0x5e2f22,_0x52c67e,_0x346e36,_0x295f05,_0x14015b){const _0x4c400d=a0_0x3b1615;let _0x16ad75=TermsUtil[_0x4c400d(0x1c5)](_0x1d39d2);return{'type':_0x139caa,'name':_0x2b8ee4,'header':_0x16ad75,'record':{'align':_0x5e2f22,'editable':_0x52c67e,'mandatory':_0x295f05},'sortable':_0x346e36,'width':_0x14015b,'imex':{'width':Math[_0x4c400d(0x144)](_0x14015b/0x6),'header':_0x16ad75,'type':_0x139caa,'key':_0x2b8ee4}};}static[a0_0x3b1615(0x117)](_0x266b56,_0x3e10ea,_0xeb07b4,_0x486d8f,_0x5633dd,_0x2db290,_0x1df573){const _0x14151f=a0_0x3b1615;let _0x1eed5d=TermsUtil[_0x14151f(0x1c5)](_0x3e10ea);return{'type':_0x14151f(0x21b),'name':_0x266b56,'header':_0x1eed5d,'record':{'align':_0xeb07b4,'editable':!0x0,'mandatory':_0x2db290,'options':_0x1df573},'sortable':_0x486d8f,'width':_0x5633dd,'imex':{'width':Math[_0x14151f(0x144)](_0x5633dd/0x6),'header':_0x1eed5d,'type':_0x14151f(0x206),'key':_0x266b56}};}static async[a0_0x3b1615(0x1ec)](_0x26151e,_0x566f34,_0x11ad1d,_0x3d1ab8,_0x998d74,_0x3c857f,_0x4ff30e){const _0x5e1fce=a0_0x3b1615;let _0x202488=await ServiceUtil[_0x5e1fce(0x18a)](_0x4ff30e);return MetaUiUtil[_0x5e1fce(0x117)](_0x26151e,_0x566f34,_0x11ad1d,_0x3d1ab8,_0x998d74,_0x3c857f,_0x202488);}static[a0_0x3b1615(0x1da)](_0x187030,_0x222681,_0x55e280,_0x3d6e2b,_0x575de2){const _0x5cdb7b=a0_0x3b1615;let _0x19322e=TermsUtil[_0x5cdb7b(0x1c5)](_0x55e280),_0x174b2e={'name':_0x187030,'type':_0x222681,'label':_0x19322e,'operator':_0x3d6e2b,'imex':{'width':0x10,'header':_0x19322e,'type':_0x222681,'key':_0x187030}};return _0x575de2&&(_0x174b2e[_0x5cdb7b(0x1d8)]=_0x575de2),_0x174b2e;}static async[a0_0x3b1615(0xfb)](_0x4b8ada,_0x48d474,_0x226ad8,_0x5c5ef9,_0x4f446d){let _0x4b31a1=await ServiceUtil['getCodeSelectorData'](_0x4f446d);return MetaUiUtil['getGristSearchColumnConfig'](_0x4b8ada,_0x48d474,_0x226ad8,_0x5c5ef9,_0x4b31a1);}static[a0_0x3b1615(0x180)](){return[css`
|
|
6
6
|
.button-container {
|
|
7
7
|
padding: var(--button-container-padding);
|
|
8
8
|
margin: var(--button-container-margin);
|
|
@@ -21,11 +21,11 @@ const a0_0x5752f7=a0_0x559b;(function(_0xa7005a,_0x522aa2){const _0xc78800=a0_0x
|
|
|
21
21
|
// margin: var(--context-action-bar-button-margin);
|
|
22
22
|
border-radius: var(--context-action-bar-more-button-border-radius);
|
|
23
23
|
}
|
|
24
|
-
`];}static[
|
|
24
|
+
`];}static[a0_0x3b1615(0x166)](){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_0x3b1615(0x10d)](){return[css`
|
|
29
29
|
#grist-personal{
|
|
30
30
|
padding:0px;
|
|
31
31
|
margin:0px;
|
|
@@ -48,7 +48,7 @@ const a0_0x5752f7=a0_0x559b;(function(_0xa7005a,_0x522aa2){const _0xc78800=a0_0x
|
|
|
48
48
|
cursor: pointer;
|
|
49
49
|
margin-bottom:4px;
|
|
50
50
|
}
|
|
51
|
-
`];}static['getBasicGristStyles'](){const
|
|
51
|
+
`];}static['getBasicGristStyles'](){const _0x363497=a0_0x3b1615;return[ScrollbarStyles,CommonGristStyles,css`
|
|
52
52
|
:host {
|
|
53
53
|
display: flex;
|
|
54
54
|
flex-direction: column;
|
|
@@ -58,7 +58,7 @@ const a0_0x5752f7=a0_0x559b;(function(_0xa7005a,_0x522aa2){const _0xc78800=a0_0x
|
|
|
58
58
|
ox-grist {
|
|
59
59
|
overflow-y: auto;
|
|
60
60
|
flex: 1;
|
|
61
|
-
}`,...MetaUiUtil[
|
|
61
|
+
}`,...MetaUiUtil[_0x363497(0x166)](),...MetaUiUtil[_0x363497(0x180)](),...MetaUiUtil[_0x363497(0x10d)]()];}static['getBasicGristTabStyles'](){const _0x4c2cd4=a0_0x3b1615;return[ScrollbarStyles,CommonGristStyles,css`
|
|
62
62
|
:host {
|
|
63
63
|
display: flex;
|
|
64
64
|
flex-direction: column;
|
|
@@ -105,7 +105,7 @@ const a0_0x5752f7=a0_0x559b;(function(_0xa7005a,_0x522aa2){const _0xc78800=a0_0x
|
|
|
105
105
|
ox-grist {
|
|
106
106
|
overflow-y: auto;
|
|
107
107
|
flex: 1;
|
|
108
|
-
}`,...MetaUiUtil[
|
|
108
|
+
}`,...MetaUiUtil[_0x4c2cd4(0x166)](),...MetaUiUtil[_0x4c2cd4(0x180)](),...MetaUiUtil[_0x4c2cd4(0x10d)]()];}static[a0_0x3b1615(0xfa)](){const _0x40c951=a0_0x3b1615;return[ScrollbarStyles,CommonGristStyles,css`
|
|
109
109
|
:host {
|
|
110
110
|
display: flex;
|
|
111
111
|
flex-direction: column;
|
|
@@ -152,7 +152,7 @@ const a0_0x5752f7=a0_0x559b;(function(_0xa7005a,_0x522aa2){const _0xc78800=a0_0x
|
|
|
152
152
|
ox-grist {
|
|
153
153
|
overflow-y: auto;
|
|
154
154
|
flex: 1;
|
|
155
|
-
}`,...MetaUiUtil[
|
|
155
|
+
}`,...MetaUiUtil[_0x40c951(0x166)](),...MetaUiUtil[_0x40c951(0x180)](),...MetaUiUtil[_0x40c951(0x10d)]()];}static[a0_0x3b1615(0x1ef)](){const _0x142184=a0_0x3b1615;return[ScrollbarStyles,CommonGristStyles,css`
|
|
156
156
|
:host {
|
|
157
157
|
display: flex;
|
|
158
158
|
flex-direction: column;
|
|
@@ -199,7 +199,7 @@ const a0_0x5752f7=a0_0x559b;(function(_0xa7005a,_0x522aa2){const _0xc78800=a0_0x
|
|
|
199
199
|
ox-grist {
|
|
200
200
|
overflow-y: auto;
|
|
201
201
|
flex: 1;
|
|
202
|
-
}`,...MetaUiUtil[
|
|
202
|
+
}`,...MetaUiUtil[_0x142184(0x166)](),...MetaUiUtil[_0x142184(0x180)](),...MetaUiUtil[_0x142184(0x10d)]()];}static['getBasicMasterDetailGristStyle'](_0x4f8ecc){const _0x245fb3=a0_0x3b1615;return _0x245fb3(0x143)==_0x4f8ecc?MetaUiUtil[_0x245fb3(0x192)]():MetaUiUtil[_0x245fb3(0x1a3)]();}static[a0_0x3b1615(0x192)](){return[CommonGristStyles,ScrollbarStyles,css`
|
|
203
203
|
:host {
|
|
204
204
|
display: flex;
|
|
205
205
|
flex-direction: column;
|
|
@@ -266,7 +266,7 @@ const a0_0x5752f7=a0_0x559b;(function(_0xa7005a,_0x522aa2){const _0xc78800=a0_0x
|
|
|
266
266
|
margin-left:7px;
|
|
267
267
|
margin-top:7px;
|
|
268
268
|
}
|
|
269
|
-
`];}static[
|
|
269
|
+
`];}static[a0_0x3b1615(0x1a3)](){return[CommonGristStyles,ScrollbarStyles,css`
|
|
270
270
|
:host {
|
|
271
271
|
display: flex;
|
|
272
272
|
flex-direction: column;
|
|
@@ -333,7 +333,7 @@ const a0_0x5752f7=a0_0x559b;(function(_0xa7005a,_0x522aa2){const _0xc78800=a0_0x
|
|
|
333
333
|
margin-left:7px;
|
|
334
334
|
margin-top:7px;
|
|
335
335
|
}
|
|
336
|
-
`];}static['getBasicFormStyles'](){const
|
|
336
|
+
`];}static['getBasicFormStyles'](){const _0x11cdbc=a0_0x3b1615;return[ScrollbarStyles,css`
|
|
337
337
|
:host {
|
|
338
338
|
display: flex;
|
|
339
339
|
flex: 1;
|
|
@@ -422,7 +422,7 @@ const a0_0x5752f7=a0_0x559b;(function(_0xa7005a,_0x522aa2){const _0xc78800=a0_0x
|
|
|
422
422
|
border-bottom: var(--record-view-edit-border-bottom);
|
|
423
423
|
}
|
|
424
424
|
|
|
425
|
-
`,...MetaUiUtil[
|
|
425
|
+
`,...MetaUiUtil[_0x11cdbc(0x180)]()];}static[a0_0x3b1615(0x160)](){return[css`
|
|
426
426
|
:host {
|
|
427
427
|
display: flex;
|
|
428
428
|
flex: 1;
|
|
@@ -477,185 +477,188 @@ const a0_0x5752f7=a0_0x559b;(function(_0xa7005a,_0x522aa2){const _0xc78800=a0_0x
|
|
|
477
477
|
overflow-x: overlay;
|
|
478
478
|
background-color: var(--main-section-background-color);
|
|
479
479
|
}
|
|
480
|
-
`];}static[
|
|
480
|
+
`];}static['isButtonExist'](_0x1025c1,_0x36b5ca){const _0x2baa2f=a0_0x3b1615;return!!(_0x1025c1?_0x1025c1[_0x2baa2f(0x19d)](_0x3d461a=>_0x3d461a[_0x2baa2f(0x15d)]==_0x36b5ca):null);}static[a0_0x3b1615(0x1a1)](_0x5b956c,_0x4c0e0a){const _0xa6d6c=a0_0x3b1615;return!!(_0x5b956c&&_0x5b956c['button']?_0x5b956c[_0xa6d6c(0x191)]['find'](_0x5ba003=>_0x5ba003[_0xa6d6c(0x15d)]==_0x4c0e0a):null);}static[a0_0x3b1615(0x1fc)](_0x191009){const _0x5276f9=a0_0x3b1615;let _0x5a0a08='';return _0x191009[_0x5276f9(0x223)](_0x244a85=>_0x5276f9(0xee)!=_0x244a85[_0x5276f9(0x214)])[_0x5276f9(0x217)](_0x7c97d4=>{const _0x3346eb=_0x5276f9;_0x5a0a08+='\x0a',_0x5a0a08+=_0x3346eb(0x20c)==_0x7c97d4['type']||_0x3346eb(0x13b)==_0x7c97d4[_0x3346eb(0x214)]?_0x7c97d4[_0x3346eb(0x15d)]+'\x0a{'+MetaUiUtil[_0x3346eb(0x196)](_0x7c97d4)+'}':_0x3346eb(0xfd)==_0x7c97d4['type']?_0x7c97d4[_0x3346eb(0x15d)]+'\x0a{\x0aid\x0aname\x0athumbnail}':_0x7c97d4[_0x3346eb(0x15d)];}),_0x5a0a08;}static[a0_0x3b1615(0x196)](_0x5b533d){const _0x19a463=a0_0x3b1615;let _0x4c429b='';return ValueUtil[_0x19a463(0x16f)](_0x5b533d[_0x19a463(0xf3)][_0x19a463(0x1d8)])&&ValueUtil[_0x19a463(0x16f)](_0x5b533d[_0x19a463(0xf3)][_0x19a463(0x1d8)][_0x19a463(0x21b)])&&_0x5b533d[_0x19a463(0xf3)][_0x19a463(0x1d8)][_0x19a463(0x21b)]['forEach'](_0x3a1cee=>{const _0xc87d69=_0x19a463;_0x3a1cee['name']&&''!==_0x3a1cee[_0xc87d69(0x15d)]&&(_0xc87d69(0x20c)===_0x3a1cee[_0xc87d69(0x214)]||_0xc87d69(0x13b)===_0x3a1cee[_0xc87d69(0x214)]?_0x4c429b+='\x0a'+_0x3a1cee['name']+_0xc87d69(0x12e)+MetaUiUtil['getObjctColumnSelectFields'](_0x3a1cee)+_0xc87d69(0x1a9):_0x4c429b+='\x0a'+_0x3a1cee[_0xc87d69(0x15d)]);}),''==_0x4c429b&&(_0x4c429b+='\x0aid\x0aname\x0adescription'),_0x4c429b;}static[a0_0x3b1615(0x139)](_0x324570){const _0x11872e=a0_0x3b1615;let _0x130926=_0x324570[_0x11872e(0x1d4)];if(_0x130926){let _0x12dbfe=_0x324570[_0x11872e(0x1e0)]?_0x324570[_0x11872e(0x1e0)]:_0x11872e(0x1a7),_0x2d59bc=_0x324570[_0x11872e(0x121)];return html`
|
|
481
481
|
<ox-grist
|
|
482
|
-
id=${
|
|
483
|
-
.config=${
|
|
484
|
-
.mode=${
|
|
482
|
+
id=${_0x12dbfe}
|
|
483
|
+
.config=${_0x130926}
|
|
484
|
+
.mode=${_0x2d59bc}
|
|
485
485
|
auto-fetch
|
|
486
|
-
.fetchHandler=${
|
|
487
|
-
${MetaUiUtil['getGridDetailHtml'](
|
|
486
|
+
.fetchHandler=${_0x324570[_0x11872e(0x148)][_0x11872e(0x1fe)](_0x324570)}>
|
|
487
|
+
${MetaUiUtil['getGridDetailHtml'](_0x324570)}
|
|
488
488
|
</ox-grist>
|
|
489
|
-
`;}return html``;}static[
|
|
489
|
+
`;}return html``;}static[a0_0x3b1615(0xf8)](_0x45d52f){const _0xf5ba73=a0_0x3b1615;if(!_0x45d52f)return html``;if(!_0x45d52f['formConfigSet'])return html``;let _0x9d6df4=_0x45d52f['formConfigSet'],_0x247ab4=_0x45d52f[_0xf5ba73(0xf3)]||{},_0x511eb9=_0x9d6df4[_0xf5ba73(0x223)](_0x4dfb5b=>0x0==_0x4dfb5b['hidden']);return ValueUtil[_0xf5ba73(0x18f)](_0x45d52f[_0xf5ba73(0x1c1)])?MetaUiUtil[_0xf5ba73(0x199)](_0x45d52f,_0x511eb9,_0x247ab4):MetaUiUtil[_0xf5ba73(0x208)](_0x45d52f,_0x511eb9,_0x247ab4);}static[a0_0x3b1615(0x208)](_0x259a9f,_0x26aae6,_0x5311a){const _0x8c1684=a0_0x3b1615;let _0x3d1f7a=_0x259a9f['formRenderConfig'];return html`
|
|
490
490
|
<div class="root_container">
|
|
491
|
-
${
|
|
491
|
+
${_0x3d1f7a['map'](_0x5c854a=>{const _0x56117a=a0_0x4394;let _0x237a78=_0x26aae6['filter'](_0x4d752d=>_0x5c854a[_0x56117a(0x145)][_0x56117a(0x12d)](_0x4d752d[_0x56117a(0x15d)])),_0x14cd5f=_0x56117a(0x156);for(let _0x5dc679=0x0;_0x5dc679<_0x5c854a[_0x56117a(0x13f)];_0x5dc679++)_0x14cd5f+=_0x56117a(0x20d);return _0x14cd5f+=';',html`
|
|
492
492
|
<h2>
|
|
493
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
493
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x56117a(0x1ca)](_0x5c854a['display'])}
|
|
494
494
|
</h2>
|
|
495
|
-
<div id="content_container" class="content_container" style="${
|
|
496
|
-
${
|
|
497
|
-
<label ?editable=${
|
|
498
|
-
${
|
|
495
|
+
<div id="content_container" class="content_container" style="${_0x14cd5f}">
|
|
496
|
+
${_0x237a78['map'](_0x267568=>{const _0x1ced37=_0x56117a;let {editable:_0x3648ae=!0x1,mandatory:_0x1ffbc2=!0x1}=_0x267568[_0x1ced37(0xf3)],_0x7299f0=_0x5311a[_0x1ced37(0x1d3)]||{};return html`
|
|
497
|
+
<label ?editable=${_0x3648ae}><span>${_0x1ffbc2?'*':''}${_0x267568[_0x1ced37(0x159)]}</span>
|
|
498
|
+
${_0x3648ae?html`<mwc-icon>edit</mwc-icon>`:''}
|
|
499
499
|
</label>
|
|
500
500
|
<ox-grid-field
|
|
501
501
|
.rowIndex=${0x0}
|
|
502
|
-
.column=${
|
|
503
|
-
.record=${
|
|
504
|
-
.value=${
|
|
505
|
-
?dirty=${!!
|
|
502
|
+
.column=${_0x267568}
|
|
503
|
+
.record=${_0x5311a}
|
|
504
|
+
.value=${_0x5311a[_0x267568[_0x1ced37(0x15d)]]}
|
|
505
|
+
?dirty=${!!_0x7299f0[_0x267568[_0x1ced37(0x15d)]]}
|
|
506
506
|
></ox-grid-field>
|
|
507
507
|
`;})}
|
|
508
508
|
</div>
|
|
509
509
|
`;})}
|
|
510
510
|
</div>
|
|
511
|
-
${
|
|
512
|
-
`;}static[
|
|
513
|
-
<div id="container" class="container" style="${
|
|
514
|
-
${
|
|
515
|
-
<label ?editable=${
|
|
516
|
-
${
|
|
511
|
+
${_0x259a9f[_0x8c1684(0x224)]?html``:MetaUiUtil[_0x8c1684(0x211)](_0x259a9f)}
|
|
512
|
+
`;}static[a0_0x3b1615(0x199)](_0x712a22,_0x1b247f,_0x1ea1e0){const _0x572b2c=a0_0x3b1615;let _0x216a0b=_0x572b2c(0x14b);_0x712a22[_0x572b2c(0x13f)]&&0x0!=_0x712a22[_0x572b2c(0x13f)]||(_0x712a22['column']=0x1);for(let _0x5823ce=0x0;_0x5823ce<_0x712a22[_0x572b2c(0x13f)];_0x5823ce++)_0x216a0b+=_0x572b2c(0x20d);return _0x216a0b+=';',html`
|
|
513
|
+
<div id="container" class="container" style="${_0x216a0b}">
|
|
514
|
+
${_0x1b247f[_0x572b2c(0x1f0)](_0x4f1d9d=>{const _0x1e7208=_0x572b2c;let {editable:_0x27f408=!0x1,mandatory:_0x3bb2d6=!0x1}=_0x4f1d9d['record'],_0x4e8234=_0x1ea1e0[_0x1e7208(0x1d3)]||{};return html`
|
|
515
|
+
<label ?editable=${_0x27f408}><span>${_0x3bb2d6?'*':''}${_0x4f1d9d['header_txt']}</span>
|
|
516
|
+
${_0x27f408?html`<mwc-icon>edit</mwc-icon>`:''}
|
|
517
517
|
</label>
|
|
518
518
|
<ox-grid-field
|
|
519
519
|
.rowIndex=${0x0}
|
|
520
|
-
.column=${
|
|
521
|
-
.record=${
|
|
522
|
-
.value=${
|
|
523
|
-
?dirty=${!!
|
|
520
|
+
.column=${_0x4f1d9d}
|
|
521
|
+
.record=${_0x1ea1e0}
|
|
522
|
+
.value=${_0x1ea1e0[_0x4f1d9d[_0x1e7208(0x15d)]]}
|
|
523
|
+
?dirty=${!!_0x4e8234[_0x4f1d9d[_0x1e7208(0x15d)]]}
|
|
524
524
|
></ox-grid-field>
|
|
525
525
|
`;})}
|
|
526
526
|
</div>
|
|
527
|
-
${
|
|
528
|
-
`;}static[
|
|
527
|
+
${_0x712a22[_0x572b2c(0x224)]?html``:MetaUiUtil['getButtonContainer'](_0x712a22)}
|
|
528
|
+
`;}static[a0_0x3b1615(0x1f4)](_0x326494){const _0x4a6c03=a0_0x3b1615;if(!_0x326494)return html``;if(!_0x326494[_0x4a6c03(0x1fa)])return html``;let _0x56be18=_0x326494[_0x4a6c03(0x1fa)];return _0x326494[_0x4a6c03(0x11f)]||(_0x326494['currentTabKey']=_0x56be18[0x0]?.[_0x4a6c03(0x15d)]||void 0x0),html`
|
|
529
529
|
<div class="tabs">
|
|
530
|
-
${
|
|
531
|
-
<div class="tab" ?activate="${
|
|
532
|
-
${
|
|
533
|
-
<span>${
|
|
530
|
+
${_0x56be18['map'](_0x414d51=>{const _0xf125d3=_0x4a6c03;let _0x1ac6c3=TermsUtil['tLabel'](_0x414d51[_0xf125d3(0x118)]),_0x55367d=_0x414d51[_0xf125d3(0x15d)];return html`
|
|
531
|
+
<div class="tab" ?activate="${_0x55367d===_0x326494['currentTabKey']}" @click="${()=>_0x326494['currentTabKey']=_0x55367d}">
|
|
532
|
+
${_0x414d51[_0xf125d3(0x1b5)]?html`<mwc-icon>${_0x414d51[_0xf125d3(0x1b5)]}</mwc-icon>`:html``}
|
|
533
|
+
<span>${_0x1ac6c3}</span>
|
|
534
534
|
</div>
|
|
535
535
|
`;})}
|
|
536
536
|
</div>
|
|
537
537
|
<div class="content-container">
|
|
538
|
-
${
|
|
539
|
-
<div class='tab-contents' style="${
|
|
540
|
-
${MetaUiUtil[
|
|
538
|
+
${_0x56be18['map'](_0x2c9a4a=>{const _0x2c43d0=_0x4a6c03;let _0x30c18a=_0x2c43d0(0x15c);return _0x2c9a4a['name']==_0x326494[_0x2c43d0(0x11f)]&&(_0x30c18a=_0x2c43d0(0x1ae)),html`
|
|
539
|
+
<div class='tab-contents' style="${_0x30c18a}">
|
|
540
|
+
${MetaUiUtil[_0x2c43d0(0x21d)](_0x326494,_0x2c9a4a)}
|
|
541
541
|
</div>
|
|
542
542
|
`;})}
|
|
543
543
|
</div>
|
|
544
|
-
`;}static[
|
|
545
|
-
${0x0==
|
|
544
|
+
`;}static['getGristTabHtml'](_0x2c80c6){const _0x38921b=a0_0x3b1615;let _0x586dee=(_0x2c80c6[_0x38921b(0x13e)]||{})[_0x38921b(0x225)]||_0x38921b(0x16b),_0x2cb260=(_0x2c80c6[_0x38921b(0x13e)]||{})[_0x38921b(0x13a)]||_0x38921b(0x21a),_0x43a686='left_right'==_0x586dee?_0x38921b(0x14b)+_0x2cb260+';':_0x38921b(0x177)+_0x2cb260+';',_0x468a11=_0x2c80c6[_0x38921b(0x224)]?UiUtil[_0x38921b(0x130)]():_0x2c80c6[_0x38921b(0x167)];return html`
|
|
545
|
+
${0x0==_0x2c80c6[_0x38921b(0x1eb)]?html``:html`
|
|
546
546
|
<div slot="headroom">
|
|
547
547
|
<div id="filters">
|
|
548
548
|
<ox-filters-form-base
|
|
549
549
|
id='ox-filters-form'
|
|
550
|
-
.filters=${
|
|
551
|
-
|
|
550
|
+
.filters=${_0x2c80c6[_0x38921b(0x1b1)]||[]}
|
|
551
|
+
.value=${_0x2c80c6[_0x38921b(0xe1)]||[]}
|
|
552
|
+
@filters-change=${_0x13c1fa=>{const _0x58c6fb=_0x38921b;_0x2c80c6[_0x58c6fb(0x107)]?.['fetch']();}}
|
|
552
553
|
></ox-filters-form-base>
|
|
553
554
|
</div>
|
|
554
555
|
</div>
|
|
555
556
|
`}
|
|
556
|
-
<div id="container" class="container" style="${
|
|
557
|
+
<div id="container" class="container" style="${_0x43a686}">
|
|
557
558
|
<div class="container_detail">
|
|
558
|
-
${MetaApi[
|
|
559
|
-
${MetaUiUtil[
|
|
559
|
+
${MetaApi[_0x38921b(0x139)](_0x2c80c6)}
|
|
560
|
+
${MetaUiUtil['getButtonContainer'](_0x2c80c6)}
|
|
560
561
|
</div>
|
|
561
562
|
<div class="container_detail">
|
|
562
|
-
${!0x0===
|
|
563
|
+
${!0x0===_0x2c80c6[_0x38921b(0x18c)]?html`${!0x0===_0x2c80c6[_0x38921b(0x1b0)]?html`<meta-tab-element
|
|
563
564
|
id="detail"
|
|
564
|
-
route_name="${
|
|
565
|
-
.activityDataSet=${(
|
|
565
|
+
route_name="${_0x468a11}"
|
|
566
|
+
.activityDataSet=${(_0x2c80c6[_0x38921b(0x197)]||{})[_0x38921b(0x1de)]}
|
|
566
567
|
is_readonly=true
|
|
567
568
|
is_activity=true
|
|
568
569
|
is_detail=true>
|
|
569
570
|
</meta-tab-element>`:html`<meta-tab-element
|
|
570
571
|
id="detail"
|
|
571
|
-
route_name="${
|
|
572
|
-
.activityDataSet=${(
|
|
572
|
+
route_name="${_0x468a11}"
|
|
573
|
+
.activityDataSet=${(_0x2c80c6[_0x38921b(0x197)]||{})[_0x38921b(0x1de)]}
|
|
573
574
|
is_activity=true
|
|
574
575
|
is_detail=true>
|
|
575
|
-
</meta-tab-element>`}`:html`${!0x0===
|
|
576
|
+
</meta-tab-element>`}`:html`${!0x0===_0x2c80c6[_0x38921b(0x1b0)]?html`<meta-tab-element id="detail" route_name="${_0x468a11}" is_readonly=true is_detail=true></meta-tab-element>`:html`<meta-tab-element id="detail" route_name="${_0x468a11}" is_detail=true></meta-tab-element>`}`}
|
|
576
577
|
</div>
|
|
577
578
|
</div>
|
|
578
|
-
`;}static[
|
|
579
|
-
${0x0==
|
|
579
|
+
`;}static['getTabDetailHtml'](_0x46bf4a){const _0x3c2673=a0_0x3b1615;let _0x380699=_0x46bf4a['etcConfig'][_0x3c2673(0x225)]||'top_bottom',_0x163b22=_0x46bf4a[_0x3c2673(0x13e)][_0x3c2673(0x13a)]||_0x3c2673(0x21a),_0x1b7413=_0x46bf4a['etcConfig'][_0x3c2673(0x1e7)],_0x225499=JSON[_0x3c2673(0x20b)](_0x1b7413||'{}'),_0x412baf=_0x3c2673(0x200)==_0x380699?_0x3c2673(0x14b)+_0x163b22+';':_0x3c2673(0x177)+_0x163b22+';';return MetaUiUtil['createMasterElement'](_0x46bf4a),MetaUiUtil[_0x3c2673(0x112)](_0x46bf4a,_0x225499),html`
|
|
580
|
+
${0x0==_0x46bf4a[_0x3c2673(0x1eb)]?html``:html`
|
|
580
581
|
<div slot="headroom">
|
|
581
582
|
<div id="filters">
|
|
582
583
|
<ox-filters-form-base
|
|
583
584
|
id='ox-filters-form'
|
|
584
|
-
.filters=${
|
|
585
|
-
|
|
585
|
+
.filters=${_0x46bf4a[_0x3c2673(0x1b1)]||[]}
|
|
586
|
+
.value=${_0x46bf4a[_0x3c2673(0xe1)]||[]}
|
|
587
|
+
@filters-change=${_0x558e95=>{const _0x34160a=_0x3c2673;_0x46bf4a[_0x34160a(0x1c6)]();}}
|
|
586
588
|
></ox-filters-form-base>
|
|
587
589
|
</div>
|
|
588
590
|
</div>
|
|
589
591
|
`}
|
|
590
|
-
<div id="container" class="container" style="${
|
|
592
|
+
<div id="container" class="container" style="${_0x412baf}">
|
|
591
593
|
<div class="container_detail">
|
|
592
|
-
${
|
|
594
|
+
${_0x46bf4a[_0x3c2673(0x13d)]}
|
|
593
595
|
</div>
|
|
594
596
|
<div class="container_detail">
|
|
595
|
-
${''==
|
|
596
|
-
${
|
|
597
|
+
${''==_0x225499[_0x3c2673(0x116)]||_0x3c2673(0x1ac)==_0x225499['tagname']?html``:html`<h2 id='detail_title'><mwc-icon>list_alt</mwc-icon>${TermsUtil['tTitle'](''+_0x225499['display'])}</h2>`}
|
|
598
|
+
${_0x46bf4a['detailElement']}
|
|
597
599
|
</div>
|
|
598
600
|
</div>
|
|
599
|
-
`;}static[
|
|
600
|
-
${0x0==
|
|
601
|
+
`;}static[a0_0x3b1615(0x193)](_0x47bd11){const _0x21e87e=a0_0x3b1615;let _0x41eedb=_0x47bd11[_0x21e87e(0x13e)]['master_detail_type']||_0x21e87e(0x16b),_0x16c016=_0x47bd11[_0x21e87e(0x13e)][_0x21e87e(0x13a)]||_0x21e87e(0x21a),_0x46a718=_0x47bd11['etcConfig']['master_detail_element'],_0x177056=JSON[_0x21e87e(0x20b)](_0x46a718||'{}'),_0xfbc93d='left_right'==_0x41eedb?_0x21e87e(0x14b)+_0x16c016+';':_0x21e87e(0x177)+_0x16c016+';';return MetaUiUtil['createDetailElement'](_0x47bd11,_0x177056),html`
|
|
602
|
+
${0x0==_0x47bd11[_0x21e87e(0x1eb)]?html``:html`
|
|
601
603
|
<div slot="headroom">
|
|
602
604
|
<div id="filters">
|
|
603
605
|
<ox-filters-form-base
|
|
604
606
|
id='ox-filters-form'
|
|
605
|
-
.filters=${
|
|
606
|
-
|
|
607
|
+
.filters=${_0x47bd11[_0x21e87e(0x1b1)]||[]}
|
|
608
|
+
.value=${_0x47bd11[_0x21e87e(0xe1)]||[]}
|
|
609
|
+
@filters-change=${_0x258738=>{const _0x22ebee=_0x21e87e;_0x47bd11[_0x22ebee(0x107)]?.[_0x22ebee(0x1c6)]();}}
|
|
607
610
|
></ox-filters-form-base>
|
|
608
611
|
</div>
|
|
609
612
|
</div>
|
|
610
613
|
`}
|
|
611
|
-
<div id="container" class="container" style="${
|
|
614
|
+
<div id="container" class="container" style="${_0xfbc93d}">
|
|
612
615
|
<div class="container_detail">
|
|
613
|
-
${MetaApi[
|
|
614
|
-
${MetaUiUtil['getButtonContainer'](
|
|
616
|
+
${MetaApi[_0x21e87e(0x139)](_0x47bd11)}
|
|
617
|
+
${MetaUiUtil['getButtonContainer'](_0x47bd11)}
|
|
615
618
|
</div>
|
|
616
619
|
<div class="container_detail">
|
|
617
|
-
${''==
|
|
618
|
-
${
|
|
620
|
+
${''==_0x177056[_0x21e87e(0x116)]||'meta-tab-element'==_0x177056[_0x21e87e(0x116)]?html``:html`<h2 id='detail_title'><mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x21e87e(0x1ca)](''+_0x177056['display'])}</h2>`}
|
|
621
|
+
${_0x47bd11[_0x21e87e(0x103)]}
|
|
619
622
|
</div>
|
|
620
623
|
</div>
|
|
621
|
-
`;}static[
|
|
624
|
+
`;}static[a0_0x3b1615(0x112)](_0x3275f6,_0x4eaa57){const _0x4bbf00=a0_0x3b1615;if(!_0x3275f6[_0x4bbf00(0x103)]){let _0x2e0495=_0x4eaa57['name']?_0x4eaa57[_0x4bbf00(0x15d)]:_0x4bbf00(0x1de),_0x6ab5af='<'+_0x4eaa57['tagname']+'\x20id=\x22'+_0x2e0495+'\x22\x20name=\x22'+_0x2e0495+_0x4bbf00(0x1be)+_0x4eaa57[_0x4bbf00(0x10e)]+'\x22\x20'+(!0x0===_0x3275f6[_0x4bbf00(0x18c)]?_0x4bbf00(0x135):'')+'\x20'+(!0x0===_0x3275f6[_0x4bbf00(0x1b0)]?'is_readonly=true':'')+_0x4bbf00(0x1bd)+_0x4eaa57[_0x4bbf00(0x116)]+'>';_0x3275f6[_0x4bbf00(0x103)]=UiUtil['htmlToElement'](_0x6ab5af),_0x3275f6[_0x4bbf00(0x103)][_0x4bbf00(0x197)]=(_0x3275f6['activityDataSet']||{})[_0x4bbf00(0x1de)],_0x3275f6[_0x4bbf00(0x1b7)][_0x4bbf00(0x155)]()[_0x4bbf00(0x150)]('meta-tab-detail-')&&(_0x3275f6[_0x4bbf00(0x103)][_0x4bbf00(0x175)]=_0x3275f6);}}static[a0_0x3b1615(0x10f)](_0x3278f2){const _0x100aa5=a0_0x3b1615;if(!_0x3278f2['masterElement']&&_0x3278f2[_0x100aa5(0x1dd)]){let _0x16c555=_0x100aa5(0xf5),_0x22d63a=_0x100aa5(0x151)+_0x16c555+_0x100aa5(0x14d)+_0x16c555+'\x22\x20route_name=\x22'+_0x3278f2[_0x100aa5(0x130)]+'\x22\x20'+(!0x0===_0x3278f2[_0x100aa5(0x18c)]?'is_activity=true':'')+'\x20'+(!0x0===_0x3278f2[_0x100aa5(0x1b0)]?'is_readonly=true':'')+_0x100aa5(0x15f);_0x3278f2[_0x100aa5(0x13d)]=UiUtil[_0x100aa5(0x140)](_0x22d63a),_0x3278f2['masterElement'][_0x100aa5(0x197)]=(_0x3278f2[_0x100aa5(0x197)]||{})[_0x100aa5(0xf5)],_0x3278f2[_0x100aa5(0x13d)][_0x100aa5(0xe6)]=!0x0,_0x3278f2[_0x100aa5(0x13d)][_0x100aa5(0x122)]=_0x3278f2[_0x100aa5(0x1dd)],_0x3278f2[_0x100aa5(0x13d)][_0x100aa5(0x175)]=_0x3278f2;}}static[a0_0x3b1615(0x21d)](_0x387803,_0x6762e6){const _0x1e131e=a0_0x3b1615;if(_0x387803[_0x1e131e(0x1a8)]||(_0x387803['tabElements']={}),Object['keys'](_0x387803[_0x1e131e(0x1a8)])[_0x1e131e(0x223)](_0x4ddaf3=>_0x4ddaf3==_0x6762e6[_0x1e131e(0x15d)])[_0x1e131e(0x1ed)]>0x0)return _0x387803['tabElements'][_0x6762e6[_0x1e131e(0x15d)]];let _0x2782f3='<'+_0x6762e6[_0x1e131e(0x116)]+_0x1e131e(0x115)+_0x6762e6[_0x1e131e(0x15d)]+_0x1e131e(0x190)+_0x6762e6['menu']+_0x1e131e(0x181)+(!0x0===_0x387803[_0x1e131e(0x18c)]?_0x1e131e(0x135):'')+'\x20'+(!0x0===_0x387803[_0x1e131e(0x1b0)]?_0x1e131e(0x20f):'')+_0x1e131e(0x216)+_0x6762e6[_0x1e131e(0x116)]+'>',_0x49aafa=UiUtil[_0x1e131e(0x140)](_0x2782f3);return _0x49aafa[_0x1e131e(0x197)]=(_0x387803[_0x1e131e(0x197)]||{})[_0x6762e6[_0x1e131e(0x15d)]],_0x387803[_0x1e131e(0x11d)]&&(_0x49aafa[_0x1e131e(0x11d)]=_0x387803[_0x1e131e(0x11d)]),_0x387803[_0x1e131e(0x175)]?_0x49aafa[_0x1e131e(0x175)]=_0x387803[_0x1e131e(0x175)]:_0x49aafa[_0x1e131e(0x103)]=_0x387803,!0x1===_0x6762e6[_0x1e131e(0x1c0)]&&(_0x49aafa[_0x1e131e(0x15a)]=!0x1),_0x6762e6[_0x1e131e(0x17f)]&&(_0x49aafa[_0x1e131e(0x122)]=_0x6762e6[_0x1e131e(0x17f)]),_0x387803[_0x1e131e(0x1a8)][_0x6762e6[_0x1e131e(0x15d)]]=_0x49aafa,_0x49aafa;}static[a0_0x3b1615(0x1e9)](_0x5bf375){const _0x30c07d=a0_0x3b1615;let _0x291bfc=_0x5bf375[_0x30c07d(0x16e)],_0x115de7=_0x5bf375[_0x30c07d(0x162)],_0x5030c2=_0x5bf375['recordCreationCallback'],_0xd0e0b8=JSON[_0x30c07d(0x20b)]((_0x5bf375[_0x30c07d(0x13e)]||{})[_0x30c07d(0x1af)]||_0x30c07d(0xe7));return 0x0==_0x115de7?html`
|
|
622
625
|
<div slot="headroom" style="flex-direction: column;padding: 0px;border-top: none;box-shadow: none;background: none;align-items: stretch;">
|
|
623
|
-
${this[
|
|
626
|
+
${this[_0x30c07d(0x226)](_0x5bf375)}
|
|
624
627
|
</div>
|
|
625
628
|
`:html`
|
|
626
629
|
<div slot="headroom" style="flex-direction: column;padding: 0px;border-top: none;box-shadow: none;background: none;align-items: stretch;">
|
|
627
630
|
<div slot="headroom">
|
|
628
631
|
<div id="filters"><ox-filters-form></ox-filters-form></div>
|
|
629
|
-
${
|
|
632
|
+
${_0xd0e0b8?html`
|
|
630
633
|
<div id="sorters">
|
|
631
|
-
<mwc-icon @click=${
|
|
634
|
+
<mwc-icon @click=${_0x2089f1=>{const _0x32b401=_0x30c07d,_0x56c4d7=_0x2089f1['currentTarget'];_0x56c4d7[_0x32b401(0x188)]['open']({'right':0x0,'top':_0x56c4d7['offsetTop']+_0x56c4d7[_0x32b401(0x14c)]});}}
|
|
632
635
|
>sort</mwc-icon>
|
|
633
636
|
<ox-popup id="sorter-control">
|
|
634
637
|
<ox-sorters-control></ox-sorters-control>
|
|
635
638
|
</ox-popup>
|
|
636
639
|
</div>
|
|
637
640
|
`:html``}
|
|
638
|
-
${MetaUiUtil[
|
|
641
|
+
${MetaUiUtil['getGridViewOption'](_0x5bf375)}
|
|
639
642
|
<ox-record-creator
|
|
640
643
|
id="add"
|
|
641
|
-
?hidden="${!
|
|
642
|
-
.callback=${
|
|
644
|
+
?hidden="${!_0x291bfc}"
|
|
645
|
+
.callback=${_0x5030c2}>
|
|
643
646
|
<button>
|
|
644
647
|
<mwc-icon>add</mwc-icon>
|
|
645
648
|
</button>
|
|
646
649
|
</ox-record-creator>
|
|
647
650
|
</div>
|
|
648
|
-
${this[
|
|
651
|
+
${this[_0x30c07d(0x226)](_0x5bf375)}
|
|
649
652
|
</div>
|
|
650
|
-
`;}static[
|
|
653
|
+
`;}static[a0_0x3b1615(0x226)](_0x38f79a){const _0x5ce0c0=a0_0x3b1615;return _0x5ce0c0(0x1a4)!=_0x38f79a[_0x5ce0c0(0x121)]?html``:!0x0!==_0x38f79a['is_activity']?html`
|
|
651
654
|
<div id="grist-personal">
|
|
652
|
-
<mwc-icon @click=${
|
|
655
|
+
<mwc-icon @click=${_0x31733d=>{const _0x271a43=_0x5ce0c0;let _0x47821f=MetaApi[_0x271a43(0x152)](_0x271a43(0x119),_0x271a43(0x119));_0x47821f['configGrist']=_0x31733d[_0x271a43(0xe2)][_0x271a43(0x1cf)]['parentElement'][_0x271a43(0x1cf)],_0x47821f[_0x271a43(0x11a)]=_0x38f79a[_0x271a43(0x11a)],MetaApi['openPopupByElement'](TermsUtil[_0x271a43(0x1ca)](_0x271a43(0x1bc)),_0x271a43(0x194),_0x47821f,!0x1);}}
|
|
653
656
|
>tune</mwc-icon>
|
|
654
657
|
</div>
|
|
655
|
-
`:html``;}static[
|
|
658
|
+
`:html``;}static[a0_0x3b1615(0x1a5)](_0x6225d7){const _0x58dafa=a0_0x3b1615;return ValueUtil[_0x58dafa(0x18f)](_0x6225d7['gridViewOptions'])||0x1==_0x6225d7[_0x58dafa(0x204)][_0x58dafa(0x1ed)]?html``:html`
|
|
656
659
|
<div id="modes">
|
|
657
|
-
${
|
|
658
|
-
${
|
|
659
|
-
${
|
|
660
|
+
${_0x6225d7[_0x58dafa(0x204)][_0x58dafa(0x12d)](_0x58dafa(0x1a4))?html`<mwc-icon @click="${()=>_0x6225d7[_0x58dafa(0x121)]=_0x58dafa(0x1a4)}" ?active="${_0x58dafa(0x1a4)==_0x6225d7['gridMode']}">grid_on</mwc-icon>`:''}
|
|
661
|
+
${_0x6225d7[_0x58dafa(0x204)]['includes'](_0x58dafa(0x19f))?html`<mwc-icon @click="${()=>_0x6225d7['gridMode']=_0x58dafa(0x19f)}" ?active="${_0x58dafa(0x19f)==_0x6225d7[_0x58dafa(0x121)]}">format_list_bulleted</mwc-icon>`:''}
|
|
662
|
+
${_0x6225d7[_0x58dafa(0x204)][_0x58dafa(0x12d)](_0x58dafa(0x15e))?html`<mwc-icon @click="${()=>_0x6225d7['gridMode']=_0x58dafa(0x15e)}" ?active="${'CARD'==_0x6225d7['gridMode']}">apps</mwc-icon>`:''}
|
|
660
663
|
</div>
|
|
661
|
-
`;}static[
|
|
664
|
+
`;}static[a0_0x3b1615(0x211)](_0x1393fe){const _0x589c86=a0_0x3b1615;return html`<div id="button-container" class="button-container">${MetaUiUtil[_0x589c86(0x1f6)](_0x1393fe)}</div>`;}}
|