@things-factory/meta-ui 6.0.96 → 6.0.98
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-mixin.js +1 -1
- package/client/pages/activity/meta-activity-list-page.js +6 -6
- package/client/pages/activity/meta-activity-viewer-element.js +2 -2
- package/client/pages/activity/meta-activity-writer-element.js +3 -3
- package/client/pages/activity/meta-activiy-mixin.js +3 -3
- package/client/pages/entity/config-entity.js +29 -29
- package/client/pages/entity/main-menu-selector.js +8 -8
- package/client/pages/history/history-copy-list-popup.js +6 -6
- package/client/pages/history/history-json-list-popup.js +6 -6
- package/client/pages/loading-page.js +5 -5
- package/client/pages/menu/dynamic-menu-template.js +7 -7
- package/client/pages/menu/dynamic-menu.js +15 -15
- package/client/pages/meta-form-element.js +1 -1
- package/client/pages/meta-grist-element.js +1 -1
- package/client/pages/meta-grist-page.js +1 -1
- package/client/pages/meta-grist-tab-element.js +1 -1
- package/client/pages/meta-grist-tab-page.js +1 -1
- package/client/pages/meta-master-detail-element.js +1 -1
- package/client/pages/meta-master-detail-page.js +1 -1
- package/client/pages/meta-tab-element.js +1 -1
- package/client/pages/personalize/personal-column-selector.js +11 -11
- package/client/pages/terms/config-terminology.js +6 -6
- package/client/reducers/main.js +1 -1
- package/client/utils/meta-api.js +1 -1
- package/client/utils/meta-crypto.js +1 -1
- package/client/utils/meta-ui-util.js +84 -84
- package/client/utils/service-util.js +12 -12
- package/client/utils/terms-util.js +2 -2
- package/client/utils/ui-util.js +1 -1
- package/client/utils/value-util.js +1 -1
- package/client/viewparts/dynamic-menu-landscape-styles.js +1 -1
- package/client/viewparts/dynamic-menu-landscape.js +10 -10
- package/client/viewparts/dynamic-menu-part.js +12 -12
- package/client/viewparts/dynamic-menu-portrait-styles.js +1 -1
- package/client/viewparts/dynamic-menu-portrait.js +9 -9
- package/client/viewparts/dynamic-top-menu-bar.js +7 -7
- package/package.json +5 -5
- package/server/activity/CommonActivity.js +2 -2
- package/server/constants/error-code.js +1 -1
- package/server/errors/license-error.js +1 -1
- package/server/routes.js +1 -1
- package/server/service/grid-personalize/grid-personalize-mutation.js +1 -1
- package/server/service/grid-personalize/grid-personalize-query.js +1 -1
- package/server/service/grid-personalize/grid-personalize-type.js +1 -1
- package/server/service/grid-personalize/grid-personalize.js +1 -1
- package/server/service/meta-activity/meta-activity-mutation.js +1 -1
- package/server/service/meta-activity/meta-activity-query.js +1 -1
- package/server/service/meta-activity/meta-activity-type.js +1 -1
- package/server/service/meta-secret/meta-resolver.js +1 -1
- package/server/service/set-translations/set-translation-resolver.js +1 -1
- package/translations/en.json +21 -20
- package/translations/ko.json +2 -1
- package/translations/ms.json +33 -32
- package/translations/zh.json +2 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x4e7c01=a0_0x319f;(function(_0x2c9e23,_0x218356){const _0x3a7b53=a0_0x319f,_0x3bdc20=_0x2c9e23();while(!![]){try{const _0x1566d1=parseInt(_0x3a7b53(0x213))/0x1+parseInt(_0x3a7b53(0x1f9))/0x2*(-parseInt(_0x3a7b53(0x19e))/0x3)+parseInt(_0x3a7b53(0x167))/0x4*(-parseInt(_0x3a7b53(0x139))/0x5)+-parseInt(_0x3a7b53(0x1a8))/0x6+-parseInt(_0x3a7b53(0x208))/0x7*(-parseInt(_0x3a7b53(0x1ad))/0x8)+parseInt(_0x3a7b53(0x133))/0x9*(parseInt(_0x3a7b53(0x165))/0xa)+parseInt(_0x3a7b53(0x120))/0xb*(parseInt(_0x3a7b53(0xf9))/0xc);if(_0x1566d1===_0x218356)break;else _0x3bdc20['push'](_0x3bdc20['shift']());}catch(_0x177aa4){_0x3bdc20['push'](_0x3bdc20['shift']());}}}(a0_0x5050,0x898ef));import a0_0x317458 from'graphql-tag';function a0_0x319f(_0x3f7411,_0x525250){const _0x505057=a0_0x5050();return a0_0x319f=function(_0x319f6c,_0x4a230c){_0x319f6c=_0x319f6c-0xf2;let _0x238eba=_0x505057[_0x319f6c];return _0x238eba;},a0_0x319f(_0x3f7411,_0x525250);}import{client}from'@operato/graphql';import{css,html}from'lit';import{ScrollbarStyles,CommonGristStyles,CommonButtonStyles}from'@operato/styles';import{store}from'@operato/shell';import{TermsUtil}from'./terms-util';import{ValueUtil}from'./value-util';import{ServiceUtil}from'./service-util';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';function a0_0x5050(){const _0x3b159b=['createCustomElement','getBasicMasterDetailGristStyle','forEach','\x201fr\x202fr','includes','\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20','grist','getGristEmphasizedStyles','value_reference','text.button_bind_func_is_not_exist','option','error','findMenuMeta','GRID','entity','use_grid_sort_button','getGristPaginationCustomConfig','buttonConfig','parse','floor','menuId','fetch','importable','getGristSearchColumnConfig','htmlToElement','2183991OxVebh','tTitle','getMasterDetailTopDownGristStyle','getState','height:auto;grid-template-columns:','basicArgs','getGridOptionSet','tabRenderConfig','text.nothing_selected','row','4342020xYKYbY','currentTabKey','object','openDynamicPopup','assign','238880HsXOuK','metaUI','url','model','getMenuMeta','notify','indexOf','desc','is_activity','tLabel','setParentId','confirm','resource-object','currentTarget','grist_all','tagname','gridMode','getGristHiddenColumnConfig','title.info','parent_field','false','getBasicTabStyles','detail','50%\x2050%','emphasis','find_one_func','\x22\x20style=\x22margin-left:7px;margin-top:7px;\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20icon=\x22','formRenderConfig','isMobileEnv','length','row-selector','getGristSearchCodeColumnConfig','ox-grist','gristButtonValueReference','isPage','grist_one','currentRouting','formConfigSet','grist_selected','commonButtonOpenPopup','page','-TAB-','replace','CARD','history_json','editor','label','gutter','#detail','getSelectColumns','tText','filters','dense','add','getGristGuttersConfig','editable','createDetailElement','tMenu','offsetTop','getBasicFormHtmlNoOption','gristButtonPassParam','getGristTabHtml','split','history_copy','offsetHeight','large','gridViewOptions','getBasicGristHtml','isArray','icon','invalid\x20license\x20key','createButtonElement','getButtonContainer','getGristColumnConfig2','stringify','is_readonly','2dBtujv','getGristPersonalizedStyles','width','dirty','showAlertPopup','name','export','useMasterFilterForm','compareObjectValues','basic','getBasicFormStyles','selected','gridConfig','getBasicFormHtml','detailElement','210UkNEjF','scenario','popup','menu','pages','query','options','hidden','handlers','is_activity=true','gristButtonHandler','385156CnQGuu','tButton','getGristColumnConfig','open','logic','searchFields','param_field','master_detail_type','getGristSelectableConfig','customButtonHandler','getCodeByScenario','configGrist','startsWith','import','header','useButtonAdd','2998068cKDrOQ','meta-form-element','config','gridMobileMode','useButtonImport','code','title','\x20is_detail=true></','record','grid-column-personalize','getMasterDetailHtml','getContainerButtons','keys','header_txt','fetchHandler','activityDataSet','find','text.grid_data_is_empty','menuInfo','exportable','\x27\x20style=\x22flex:1;\x22\x20','menus','push','\x22\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20','pages/hgistory/history-copy-list-popup.js','title.warning','getGridViewOption','sort','getGridListSet','args','getButtonActionHandler','filter','text.there_is_no_selected_items','pageNavigate','template','useFilterForm','getQueryFilters','map','pass_param','33ZaYlcH','dec','form','findMenuMetaByRouting','isGridButtonExist','\x0a{\x0aid\x0aname\x0athumbnail}','master','location','tError','multiple','getGridColumnPersonalizeButton','getBasicMasterDetailStyles','string','getGridColumnSet','getCodeByEntity','commonButtonCallScenario','parent_id','getGristSelectorColumnConfig','grist_changed','1818GgDxnd','onclick','relation','parentElement','setGridColumnSearchOption','title_detail','35fShriQ','grid-template-rows:','patchesForUpdateMultiple','getGridRowSet','getMasterDetailLeftRightGristStyle','getCustomButtonContainerStyles','imex','after','findOne','searchByPagination','column','info','parseFormConfigSet','useButtonExport','sequence','getBasicFormHtmlOnOption','midium','shadowRoot','text.search_form_is_not_exist','getCodeSelectorData','__dirtyfields__','board','left_right','raised','\x20>\x0a\x20\x20\x20\x20</mwc-button>\x0a\x20\x20\x20\x20','button','bind','getBasicTabHtml','danger','unlimited','getParams','top_bottom','master_detail_element','getBasicGristTabStyles','personal-column-selector','text.grid_is_not_exist','getObjctColumnSelectFields','grid-template-columns:','filterForm','display:flex','type','selectable','custom','pass_field','32710OswIvm','isEmpty','386348xfqBgJ','history-copy-list-popup','param','service','open_param','etcConfig','list','getContextButtons','display','isNotEmpty','errors','use_filter_form','master_detail_size','data','value_is_not_exist','rank','LIST','gristId','runScenario','\x20\x0a\x20}','getBasicTabContent','runnerPermission','grid','route_name','select','tabElements','gridColumnConfig','records','use_row_checker','getGridButtonSet'];a0_0x5050=function(){return _0x3b159b;};return a0_0x5050();}import'./../pages/history/history-copy-list-popup';import'./../pages/history/history-json-list-popup';export class MetaUiUtil{static async[a0_0x4e7c01(0x191)](_0x4fb4ca){const _0x577f94=a0_0x4e7c01;let _0x431ae9=await ServiceUtil[_0x577f94(0x141)](_0x577f94(0x20b),_0x4fb4ca,_0x577f94(0x11b));if(!_0x431ae9)throw new Error(TermsUtil[_0x577f94(0x1df)](_0x577f94(0x175),{'value':TermsUtil[_0x577f94(0x1e6)](_0x577f94(0x20b))+'\x20'+_0x4fb4ca}));if(!_0x431ae9[_0x577f94(0x11b)])throw new Error(TermsUtil['tText']('value_is_not_exist',{'value':TermsUtil[_0x577f94(0x1e6)](_0x577f94(0x20b))+'\x20'+TermsUtil[_0x577f94(0x1b6)](_0x577f94(0x1b0))}));return this[_0x577f94(0x199)]=_0x4fb4ca,JSON[_0x577f94(0x197)](_0x431ae9[_0x577f94(0x11b)]);}static async['findMenuMetaByRouting'](_0x36fea5){const _0x36b2fc=a0_0x4e7c01;if((await client['query']({'query':a0_0x317458`
|
|
2
2
|
query ($id: String) {
|
|
3
3
|
metaUITemplateIsOverLimit(id: $id)
|
|
4
4
|
}
|
|
5
|
-
`,'variables':{'id':null}}))[_0x26baaa(0x1dd)])return;let _0x42689d=[{'name':_0x26baaa(0x236),'operator':'eq','value':_0x29f00b}],_0x1045a0=await ServiceUtil[_0x26baaa(0x232)](_0x26baaa(0x2b7),_0x42689d,null,0x0,0x0,'id,template');if(_0x1045a0||0x0!=_0x1045a0[_0x26baaa(0x240)]){let _0x231b3f=_0x1045a0[_0x26baaa(0x2a2)][0x0];if(!_0x231b3f[_0x26baaa(0x275)])throw new Error(TermsUtil[_0x26baaa(0x26b)](_0x26baaa(0x219),{'value':TermsUtil[_0x26baaa(0x2b1)](_0x26baaa(0x2e5))+'\x20'+TermsUtil[_0x26baaa(0x260)]('model')}));return this[_0x26baaa(0x225)]=_0x231b3f['id'],JSON[_0x26baaa(0x2a6)](MetaCrypto[_0x26baaa(0x1e4)](_0x231b3f[_0x26baaa(0x275)]));}throw new Error(TermsUtil[_0x26baaa(0x26b)](_0x26baaa(0x219),{'value':TermsUtil[_0x26baaa(0x2b1)](_0x26baaa(0x2e5))+'\x20'+_0x29f00b}));}static['getBasicGristPageProperties'](){return{'menuInfo':Object,'gridConfig':Object,'gridColumnConfig':Array,'formColumnConfig':Array,'buttonConfig':Array,'searchConfig':Array,'gqlInfo':String,'gqlFetchField':String,'searchFormElement':String,'useFilterForm':Boolean,'gristConfigSet':Object,'formConfigSet':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':!0x0,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x2bdfc2=>Boolean(_0x2bdfc2)},'is_popup':{'type':Boolean,'converter':_0x51affb=>Boolean(_0x51affb)},'is_activity':{'type':Boolean,'converter':_0x455199=>Boolean(_0x455199)},'is_readonly':{'type':Boolean,'converter':_0x296112=>Boolean(_0x296112)}};}static async[a0_0x53816b(0x1fc)](_0xa0d16f){const _0x52ea62=a0_0x53816b;if(0x0==store[_0x52ea62(0x253)]()[_0x52ea62(0x230)][_0x52ea62(0x296)])return void document[_0x52ea62(0x20c)](new CustomEvent(_0x52ea62(0x1d8),{'detail':{'level':'error','message':TermsUtil['tError'](_0x52ea62(0x2f0))}}));let _0x4f1c4a=_0xa0d16f['isPage']?UiUtil[_0x52ea62(0x25d)]():_0xa0d16f[_0x52ea62(0x2e1)];_0xa0d16f[_0x52ea62(0x25d)]=_0x4f1c4a;let _0x3c3065=await MetaUiUtil[_0x52ea62(0x2af)](_0x4f1c4a);return!0x0===_0xa0d16f['is_activity']&&(_0x3c3065[_0x52ea62(0x2d5)][_0x52ea62(0x22c)][_0x52ea62(0x2dc)]=!0x1,_0x3c3065['grid']['option'][_0x52ea62(0x269)]=_0x52ea62(0x2d2),_0x3c3065['grid'][_0x52ea62(0x2e8)]=!0x1,_0x3c3065['grid'][_0x52ea62(0x291)]=[],_0x3c3065[_0x52ea62(0x291)]=_0x3c3065[_0x52ea62(0x291)][_0x52ea62(0x26a)](_0x306353=>_0x52ea62(0x1ec)==_0x306353['name'])),!0x0===_0xa0d16f[_0x52ea62(0x27a)]&&(_0x3c3065[_0x52ea62(0x234)]['forEach'](_0x58d953=>{const _0x12de6a=_0x52ea62;_0x58d953[_0x12de6a(0x25e)]=!0x1;}),_0x3c3065['button']=_0x3c3065[_0x52ea62(0x291)][_0x52ea62(0x26a)](_0xcf313f=>_0x52ea62(0x1ec)!=_0xcf313f['name'])),_0x3c3065;}static['getGristPaginationCustomConfig'](..._0x2662db){return{'pages':_0x2662db};}static[a0_0x53816b(0x259)](_0x4b5258,_0x4ccd9b){const _0x3dea8a=a0_0x53816b;let _0x37adda=[{'type':_0x3dea8a(0x1f5),'gutterName':_0x3dea8a(0x28a)},{'type':'gutter','gutterName':'sequence'}];return _0x4b5258&&_0x37adda[_0x3dea8a(0x29d)]({'type':_0x3dea8a(0x1f5),'gutterName':'row-selector','multiple':_0x4ccd9b}),_0x37adda;}static['getGristSelectableConfig'](_0x3aee0e){return{'selectable':{'multiple':_0x3aee0e}};}static async[a0_0x53816b(0x1dc)](_0x9f7729){const _0x5c4b70=a0_0x53816b;let _0x37af66=MetaUiUtil['getGridOptionSet'](_0x9f7729),_0x26b19c=MetaUiUtil[_0x5c4b70(0x1d5)](_0x9f7729),_0x476a05=MetaUiUtil[_0x5c4b70(0x2c5)](_0x9f7729),_0x5994d0=MetaUiUtil[_0x5c4b70(0x278)](_0x9f7729),_0x5c7266=await MetaUiUtil['getGridColumnSet'](_0x9f7729),_0x374a8f=MetaUiUtil[_0x5c4b70(0x259)](_0x37af66[_0x5c4b70(0x2dc)],_0x476a05['selectable'][_0x5c4b70(0x271)]);return 0x1==_0x9f7729[_0x5c4b70(0x2da)]&&(_0x5c7266=MetaUiUtil[_0x5c4b70(0x2b3)](_0x9f7729,_0x5c7266)),{'list':_0x26b19c,'pagination':_0x37af66[_0x5c4b70(0x269)],'sorters':_0x37af66[_0x5c4b70(0x237)],'rows':_0x476a05,'columns':[..._0x374a8f,..._0x5994d0,..._0x5c7266]};}static async['parseFormConfigSet'](_0x2f9422){const _0x2c22c9=a0_0x53816b;let _0x3edc89=_0x2f9422['formColumnConfig'],_0x301896=[];for(let _0x46eaa4=0x0;_0x46eaa4<_0x3edc89[_0x2c22c9(0x240)];_0x46eaa4++){let {type:_0x24d9da=_0x2c22c9(0x26d),name:_0x3dfca9,header:_0x2701de,hidden:_0x16419a=!0x1,editable:_0x1aba72=!0x0,mandatory:_0x1cfa59=!0x1,align:_0x2a8b8d=_0x2c22c9(0x257),select_opt:_0x462668,object_opt:_0x49182a}=_0x3edc89[_0x46eaa4],_0x19f572={'type':_0x24d9da,'name':_0x3dfca9,'header_txt':ValueUtil[_0x2c22c9(0x2bb)](_0x2701de)?TermsUtil[_0x2c22c9(0x260)](_0x3dfca9):TermsUtil['tLabel'](_0x2701de),'header':{'renderer':function(_0x190300){const _0x14a468=_0x2c22c9;return _0x190300[_0x14a468(0x2a9)];}},'hidden':_0x16419a,'record':{'editable':_0x1aba72,'mandatory':_0x1cfa59,'align':_0x2a8b8d,'classifier':function(){},'renderer':getRenderer(_0x24d9da)}};_0x1aba72&&(_0x19f572[_0x2c22c9(0x1eb)]['editor']=getEditor(_0x24d9da)),_0x2c22c9(0x23b)===_0x24d9da&&ValueUtil['isNotEmpty'](_0x462668)&&(Array['isArray'](_0x462668)?_0x19f572[_0x2c22c9(0x1eb)]['options']=_0x462668:'code'===_0x462668[_0x2c22c9(0x2dd)]?_0x19f572[_0x2c22c9(0x1eb)]['options']=await ServiceUtil[_0x2c22c9(0x1e0)](_0x462668[_0x2c22c9(0x22b)]):_0x2c22c9(0x20e)===_0x462668[_0x2c22c9(0x2dd)]?_0x19f572['record'][_0x2c22c9(0x23d)]=await ServiceUtil['getCodeByScenario'](_0x462668[_0x2c22c9(0x22b)],_0x462668[_0x2c22c9(0x25b)]):_0x2c22c9(0x2bd)===_0x462668['type']&&(_0x19f572[_0x2c22c9(0x1eb)][_0x2c22c9(0x23d)]=await ServiceUtil[_0x2c22c9(0x245)](_0x462668['args']))),_0x2c22c9(0x2c4)!==_0x24d9da&&_0x2c22c9(0x294)!==_0x24d9da||!ValueUtil[_0x2c22c9(0x21f)](_0x49182a)||(_0x19f572[_0x2c22c9(0x1eb)][_0x2c22c9(0x23d)]=_0x49182a),_0x301896[_0x2c22c9(0x29d)](_0x19f572);}return _0x301896;}static[a0_0x53816b(0x1fe)](_0x431c9a){const _0x3923da=a0_0x53816b;let _0x5f0ebd=_0x431c9a['gridConfig'];_0x431c9a[_0x3923da(0x2da)]=!_0x5f0ebd||null==_0x5f0ebd[_0x3923da(0x2e8)]||_0x5f0ebd[_0x3923da(0x2e8)];let {mobile_mode:_0xb135be=_0x3923da(0x2f8),desk_mode:_0xc32860=_0x3923da(0x2c3),view_mode:_0x1bc6df=[],use_row_checker:_0x1e0b58=!0x0,sorters:_0x596479=[],pages:_0x47f579=[0x32,0x64,0x1f4,0x3e8]}=ValueUtil['isEmpty'](_0x5f0ebd['option'])?{}:_0x5f0ebd[_0x3923da(0x22c)];return _0x3923da(0x2d2)===_0x47f579||'-1'===_0x47f579?(_0x431c9a[_0x3923da(0x2f1)]=!0x0,_0x47f579={'infinite':!0x0}):(_0x431c9a[_0x3923da(0x2f1)]=!0x1,_0x47f579[_0x3923da(0x2ce)](function(_0x548a2e,_0x57f36b){return _0x548a2e-_0x57f36b;}),_0x47f579={'pages':_0x47f579}),ValueUtil[_0x3923da(0x21f)](_0x1bc6df)&&(0x1==_0x1bc6df[_0x3923da(0x240)]?(_0xc32860=_0x1bc6df[0x0],_0xb135be=_0x1bc6df[0x0]):_0x1bc6df[_0x3923da(0x240)]>=0x2&&(_0x1bc6df[_0x3923da(0x1db)](_0xb135be)||(_0xb135be=_0x1bc6df[0x1]),_0x1bc6df[_0x3923da(0x1db)](_0xc32860)||(_0xc32860=_0x1bc6df[0x0]))),_0x431c9a[_0x3923da(0x2c1)]=_0xb135be,_0x431c9a['gridDeskMode']=_0xc32860,_0x431c9a[_0x3923da(0x1f1)]=_0x1bc6df,_0x431c9a[_0x3923da(0x1e9)]=UiUtil['isMobileEnv']()?_0x431c9a[_0x3923da(0x2c1)]:_0x431c9a['gridDeskMode'],{'use_row_checker':_0x1e0b58,'sorters':_0x596479,'pages':_0x47f579};}static[a0_0x53816b(0x1d5)](_0x27b076){const _0x48afb2=a0_0x53816b;let _0x1e3432={'fields':[ValueUtil['getParams'](_0x27b076[_0x48afb2(0x1df)],_0x48afb2(0x22b)),ValueUtil[_0x48afb2(0x226)](_0x27b076[_0x48afb2(0x1df)],_0x48afb2(0x22a))]};return _0x27b076[_0x48afb2(0x24c)]['list']&&Object[_0x48afb2(0x2b9)](_0x1e3432,_0x27b076['gridConfig'][_0x48afb2(0x29e)]),_0x1e3432;}static[a0_0x53816b(0x2c5)](_0x8bc6fd){const _0x3dbd37=a0_0x53816b;let {multiple_select:_0x1fb8e3=!0x1,click:_0xc14181}=ValueUtil[_0x3dbd37(0x2bb)](_0x8bc6fd['gridConfig'][_0x3dbd37(0x241)])?{}:_0x8bc6fd['gridConfig']['row'],_0x47530e={'selectable':{'multiple':_0x1fb8e3},'appendable':_0x8bc6fd[_0x3dbd37(0x216)]};return ValueUtil[_0x3dbd37(0x21f)](_0xc14181)&&(_0x47530e[_0x3dbd37(0x2b8)]={'click':_0xc14181}),_0x47530e;}static['getGridButtonSet'](_0x498de0){const _0x1af517=a0_0x53816b;let _0x2f39bf=_0x498de0[_0x1af517(0x24c)][_0x1af517(0x291)];return ValueUtil[_0x1af517(0x2bb)](_0x2f39bf)?[]:_0x2f39bf[_0x1af517(0x218)](_0x4d064d=>{const _0x546df3=_0x1af517;let _0x2997a4={'type':'gutter','gutterName':_0x546df3(0x291)};if(ValueUtil['isNotEmpty'](_0x4d064d['icon'])&&(Array[_0x546df3(0x2aa)](_0x4d064d[_0x546df3(0x263)])?_0x2997a4['icon']=_0x23e6d5=>{const _0x416025=_0x546df3;if(ValueUtil[_0x416025(0x21f)](_0x23e6d5))for(let _0x7c624b=0x0;_0x7c624b<_0x4d064d[_0x416025(0x263)][_0x416025(0x240)];_0x7c624b++){let _0x6ba313=_0x4d064d[_0x416025(0x263)][_0x7c624b];if(!0x0===ValueUtil[_0x416025(0x27d)](_0x6ba313,_0x23e6d5,Object[_0x416025(0x267)](_0x6ba313)[_0x416025(0x26a)](_0x4a7061=>_0x416025(0x263)!=_0x4a7061)))return _0x6ba313[_0x416025(0x263)];}}:_0x2997a4[_0x546df3(0x263)]=_0x4d064d['icon']),ValueUtil['isNotEmpty'](_0x4d064d['name'])&&(_0x2997a4[_0x546df3(0x22b)]=_0x4d064d[_0x546df3(0x22b)]),ValueUtil[_0x546df3(0x21f)](_0x4d064d['label'])&&(_0x2997a4[_0x546df3(0x1d2)]=TermsUtil[_0x546df3(0x2d6)](_0x4d064d[_0x546df3(0x1ea)])),_0x546df3(0x2eb)===_0x4d064d['type']){let _0x3cf5f7=ValueUtil['getParams'](_0x4d064d,_0x546df3(0x2ab));[_0x546df3(0x288),_0x546df3(0x252)][_0x546df3(0x1db)](_0x3cf5f7)?_0x2997a4[_0x546df3(0x2b8)]={'click':(_0x5b70ca,_0x3aefad,_0x300e8b,_0x2a3d19,_0x4df32d)=>{const _0x38c4e8=_0x546df3;if(_0x2a3d19['id']){let _0x5b730b={'title':_0x38c4e8(0x217),'type':_0x38c4e8(0x1fd),'tagname':'history_copy'==_0x3cf5f7?'history-copy-list-popup':_0x38c4e8(0x28d),'location':_0x38c4e8(0x288)==_0x3cf5f7?_0x38c4e8(0x2e2):_0x38c4e8(0x239),'menu':_0x498de0['currentRouting'],'size':_0x38c4e8(0x2ad),'popup_field':_0x38c4e8(0x2f5),'parent_field':'id'},_0x3be5c1={..._0x2a3d19,'gqlFunc':ValueUtil['getParams'](_0x498de0[_0x38c4e8(0x1da)],_0x38c4e8(0x2c8),_0x38c4e8(0x299)),'gristConfig':JSON['parse'](JSON['stringify'](_0x498de0[_0x38c4e8(0x268)][_0x38c4e8(0x27b)]))};MetaUiUtil['gristButtonHandler'](_0x498de0,{'logic':_0x5b730b},_0x3be5c1);}}}:_0x2997a4[_0x546df3(0x2b8)]={'click':_0x3cf5f7};}else _0x2997a4['handlers']={'click':(_0x235592,_0x54d028,_0x52e953,_0x1ca266,_0x2700a3)=>{const _0x391612=_0x546df3;_0x1ca266['id']&&MetaUiUtil[_0x391612(0x2b2)](_0x498de0,_0x4d064d,_0x1ca266);}};return _0x2997a4;});}static async[a0_0x53816b(0x2bf)](_0x1406ba){const _0x2ebd80=a0_0x53816b;let _0x2ba61f=_0x1406ba[_0x2ebd80(0x26c)];if(ValueUtil[_0x2ebd80(0x2bb)](_0x2ba61f))return[];let _0x4ad397=[];for(let _0x47d943=0x0;_0x47d943<_0x2ba61f[_0x2ebd80(0x240)];_0x47d943++){let {type:_0xafd9f2=_0x2ebd80(0x26d),name:_0x142944,header:_0x56343e,hidden:_0x15e89c=!0x1,editable:_0x165f44=!0x0,mandatory:_0x383ab5=!0x1,sortable:_0x527d98=!0x1,align:_0x235a07=_0x2ebd80(0x257),width:_0x335ae6=0x0,exportable:_0x554706=!0x1,select_opt:_0x266108,object_opt:_0x35f856}=_0x2ba61f[_0x47d943],_0x299837={'type':_0xafd9f2,'name':_0x142944,'header':ValueUtil[_0x2ebd80(0x2bb)](_0x56343e)?'':TermsUtil[_0x2ebd80(0x260)](_0x56343e),'hidden':_0x15e89c,'sortable':_0x527d98,'width':_0x335ae6,'record':{'editable':_0x165f44,'mandatory':_0x383ab5,'align':_0x235a07}};if(_0x2ebd80(0x23b)===_0xafd9f2&&ValueUtil[_0x2ebd80(0x21f)](_0x266108))Array[_0x2ebd80(0x2aa)](_0x266108)?_0x299837[_0x2ebd80(0x1eb)][_0x2ebd80(0x23d)]=_0x266108:_0x2ebd80(0x231)===_0x266108['type']?_0x299837[_0x2ebd80(0x1eb)]['options']=await ServiceUtil[_0x2ebd80(0x1e0)](_0x266108[_0x2ebd80(0x22b)]):_0x2ebd80(0x20e)===_0x266108['type']?_0x299837['record']['options']=await ServiceUtil['getCodeByScenario'](_0x266108[_0x2ebd80(0x22b)],_0x266108[_0x2ebd80(0x25b)]):_0x2ebd80(0x2bd)===_0x266108['type']&&(_0x299837[_0x2ebd80(0x1eb)]['options']=await ServiceUtil[_0x2ebd80(0x245)](_0x266108[_0x2ebd80(0x25b)]));else{if((_0x2ebd80(0x2c4)===_0xafd9f2||'resource-object'===_0xafd9f2)&&ValueUtil[_0x2ebd80(0x21f)](_0x35f856)){let _0x33086a;_0x299837['record'][_0x2ebd80(0x23d)]={..._0x35f856},_0x35f856[_0x2ebd80(0x246)]&&_0x35f856['basicArgs']['filters']&&(_0x33086a=[..._0x35f856[_0x2ebd80(0x246)][_0x2ebd80(0x1fb)]]),_0x33086a&&JSON['stringify'](_0x33086a)[_0x2ebd80(0x1db)]('::')&&(_0x299837[_0x2ebd80(0x2b8)]={'dblclick':(_0x3cb829,_0x194739,_0xfd503c,_0x461ef6,_0x3f4d5c)=>{const _0x1cb1a4=_0x2ebd80;let _0x577029=[];_0x33086a[_0x1cb1a4(0x29a)](_0xd3a529=>{const _0x4a9ca5=_0x1cb1a4;var {name:_0x351889,value:_0xce20e1,operator:_0x425c28='eq'}=_0xd3a529;_0xce20e1['includes']('::')&&(_0xce20e1=ValueUtil['getParams'](_0x461ef6,..._0xce20e1['replace']('::','')[_0x4a9ca5(0x28f)]('.'))),_0xce20e1||(_0xce20e1=''),_0x577029['push']({'name':_0x351889,'operator':_0x425c28,'value':_0xce20e1});}),_0xfd503c[_0x1cb1a4(0x1eb)]['options'][_0x1cb1a4(0x246)][_0x1cb1a4(0x1fb)]=_0x577029;}});}}!0x0===_0x1406ba[_0x2ebd80(0x265)]&&!0x0===_0x554706&&(_0x299837[_0x2ebd80(0x281)]={'header':_0x299837[_0x2ebd80(0x2b5)],'key':_0x299837['name'],'width':_0x299837[_0x2ebd80(0x2de)]/0x6,'type':_0x299837[_0x2ebd80(0x2dd)]}),_0x4ad397[_0x2ebd80(0x29d)](_0x299837);}if(!0x0!==this[_0x2ebd80(0x2f2)])return _0x4ad397;let _0x1e90e3=await MetaApi[_0x2ebd80(0x274)](this[_0x2ebd80(0x225)]),{template:_0x38c302={}}=_0x1e90e3;if(!_0x38c302[_0x2ebd80(0x21b)])return _0x4ad397;let _0x4a2e08=_0x38c302[_0x2ebd80(0x21b)];return _0x4ad397=_0x4ad397['map'](_0x149918=>('id'==_0x149918[_0x2ebd80(0x22b)]||(_0x149918[_0x2ebd80(0x289)]=!_0x4a2e08[_0x2ebd80(0x1db)](_0x149918[_0x2ebd80(0x22b)]),_0x149918[_0x2ebd80(0x266)]=_0x4a2e08['indexOf'](_0x149918[_0x2ebd80(0x22b)]),-0x1==_0x149918[_0x2ebd80(0x266)]&&(_0x149918[_0x2ebd80(0x266)]=0x1869f)),_0x149918)),_0x4ad397[_0x2ebd80(0x2ce)]((_0x2024cf,_0x1cb974)=>_0x2024cf[_0x2ebd80(0x266)]-_0x1cb974[_0x2ebd80(0x266)]),_0x4ad397;}static[a0_0x53816b(0x2b3)](_0x124017,_0x17d609){const _0x37762a=a0_0x53816b;let _0x12d82c=_0x124017[_0x37762a(0x1fa)];return _0x12d82c&&_0x12d82c[_0x37762a(0x29a)](_0x14fa03=>{const _0x4acaa7=_0x37762a;'string'==typeof _0x14fa03?_0x17d609['filter'](_0x3397c5=>_0x3397c5['name']==_0x14fa03)['forEach'](_0x2de84d=>{const _0x3ac2c1=a0_0xfc94;_0x2de84d[_0x3ac2c1(0x26a)]=_0x3ac2c1(0x1d7);}):'object'==typeof _0x14fa03&&_0x17d609[_0x4acaa7(0x26a)](_0x4c8d87=>_0x4c8d87[_0x4acaa7(0x22b)]==_0x14fa03[_0x4acaa7(0x22b)])[_0x4acaa7(0x29a)](_0x3c0718=>{const _0x3354a5=_0x4acaa7;_0x3c0718[_0x3354a5(0x26a)]=_0x14fa03;});}),_0x17d609;}static[a0_0x53816b(0x1ef)](_0x2226a6){const _0x2a9144=a0_0x53816b;let _0x2c562b={'title':TermsUtil[_0x2a9144(0x2ec)](_0x2226a6[_0x2a9144(0x1df)]['title']),'help':_0x2226a6[_0x2a9144(0x1df)][_0x2a9144(0x29f)]||'','actions':[...MetaUiUtil[_0x2a9144(0x244)](_0x2226a6)]};return _0x2226a6[_0x2a9144(0x265)]&&(_0x2c562b['exportable']={'name':_0x2c562b[_0x2a9144(0x1d2)],'data':_0x2226a6[_0x2a9144(0x214)][_0x2a9144(0x206)](_0x2226a6)}),_0x2226a6['useButtonImport']&&(_0x2c562b[_0x2a9144(0x2f6)]={'handler':_0x2226a6[_0x2a9144(0x1f0)][_0x2a9144(0x206)](_0x2226a6)}),_0x2c562b;}static[a0_0x53816b(0x244)](_0x51d803){const _0x402c90=a0_0x53816b;let _0x196b5b=_0x51d803[_0x402c90(0x28e)];return ValueUtil[_0x402c90(0x2bb)](_0x196b5b)?[]:_0x196b5b[_0x402c90(0x26a)](_0x14889a=>_0x402c90(0x214)!=_0x14889a[_0x402c90(0x22b)]&&_0x402c90(0x1f0)!=_0x14889a[_0x402c90(0x22b)]&&'add'!=_0x14889a[_0x402c90(0x22b)])[_0x402c90(0x218)](_0x42f307=>{const _0x4e9cc8=_0x402c90;let {name:_0x6d183f,label:_0x4b9552,style:_0x466a7e,type:_0x9f7f72=_0x4e9cc8(0x2eb),action:_0x47a9d6,logic:_0x53a4e2}=_0x42f307;if(ValueUtil[_0x4e9cc8(0x2bb)](_0x6d183f))return{'title':'-1'};ValueUtil[_0x4e9cc8(0x2bb)](_0x4b9552)&&(_0x4b9552=_0x6d183f),ValueUtil[_0x4e9cc8(0x2bb)](_0x466a7e)&&(_0x466a7e=_0x6d183f),ValueUtil['isEmpty'](_0x47a9d6)&&(_0x47a9d6=_0x6d183f);let _0x59a997=ValueUtil['isNotEmpty'](_0x466a7e)?CommonButtonStyles[_0x466a7e]||{'icon':_0x466a7e,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}}:{};return{'title':TermsUtil[_0x4e9cc8(0x2d6)](_0x4b9552),'action':MetaUiUtil[_0x4e9cc8(0x2ac)](_0x51d803,_0x9f7f72,_0x47a9d6,_0x53a4e2),..._0x59a997};})[_0x402c90(0x26a)](_0x39f3f0=>'-1'!=_0x39f3f0['title']);}static['getContainerButtons'](_0x5a02c8){const _0xf711aa=a0_0x53816b;let _0x10fe30=_0x5a02c8&&_0x5a02c8[_0xf711aa(0x28e)]?_0x5a02c8['buttonConfig']:null;return _0x10fe30?_0x10fe30[_0xf711aa(0x26a)](_0x43d2b0=>_0xf711aa(0x1ec)!=_0x43d2b0[_0xf711aa(0x22b)])[_0xf711aa(0x218)](_0x453769=>{const _0x1f145b=_0xf711aa;let {name:_0x4999ca,label:_0x4fbe2a,style:_0x380353,type:_0x279927=_0x1f145b(0x2eb),action:_0x442d28,logic:_0x284b01}=_0x453769;ValueUtil['isEmpty'](_0x4fbe2a)&&(_0x4fbe2a=_0x4999ca),ValueUtil[_0x1f145b(0x2bb)](_0x380353)&&(_0x380353=_0x4999ca),ValueUtil[_0x1f145b(0x2bb)](_0x442d28)&&(_0x442d28=_0x4999ca);let _0x18451d=MetaUiUtil[_0x1f145b(0x1f3)](TermsUtil['tButton'](_0x4fbe2a),_0x380353);return _0x18451d[_0x1f145b(0x203)]=MetaUiUtil['getButtonActionHandler'](_0x5a02c8,_0x279927,_0x442d28,_0x284b01),_0x18451d;}):[];}static[a0_0x53816b(0x1f3)](_0x145df2,_0x31aff5){const _0x493079=a0_0x53816b;let _0x587e0c=CommonButtonStyles[_0x31aff5]||{'icon':_0x31aff5,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}},_0x56a6af='<mwc-button\x20label=\x22'+_0x145df2+'\x22\x20style=\x22margin-left:7px;margin-top:7px;\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20icon=\x22'+(_0x587e0c[_0x493079(0x263)]?_0x587e0c[_0x493079(0x263)]:'')+_0x493079(0x279)+(_0x587e0c['emphasis'][_0x493079(0x2a7)]?_0x493079(0x2a7):'')+_0x493079(0x280)+(_0x587e0c['emphasis'][_0x493079(0x255)]?_0x493079(0x255):'')+_0x493079(0x280)+(_0x587e0c['emphasis'][_0x493079(0x273)]?_0x493079(0x273):'')+_0x493079(0x280)+(_0x587e0c[_0x493079(0x248)][_0x493079(0x2e6)]?_0x493079(0x2e6):'')+_0x493079(0x292);return UiUtil[_0x493079(0x2b4)](_0x56a6af);}static[a0_0x53816b(0x2ac)](_0x584fa8,_0x4e5013,_0x53f785,_0x2e5833){const _0x586927=a0_0x53816b;if(_0x586927(0x2eb)==_0x4e5013){if(_0x584fa8[_0x53f785])return _0x584fa8[_0x53f785][_0x586927(0x206)](_0x584fa8);}else{if(_0x586927(0x1e8)==_0x4e5013)return()=>MetaUiUtil[_0x586927(0x272)](_0x584fa8,_0x2e5833);}return()=>{const _0xff7aac=_0x586927;UiUtil[_0xff7aac(0x2e7)](_0xff7aac(0x2a8),'text.button_bind_func_is_not_exist',_0xff7aac(0x2cc),_0xff7aac(0x262));};}static async[a0_0x53816b(0x2b2)](_0x31a67a,_0x585185,_0x5e0e45){const _0x453b4c=a0_0x53816b;let _0x22426b=ValueUtil['getParams'](_0x585185,_0x453b4c(0x2ab)),_0x2f8c0d=ValueUtil[_0x453b4c(0x226)](_0x22426b,_0x453b4c(0x2dd));if(_0x453b4c(0x2c7)===_0x2f8c0d)_0x22426b[_0x453b4c(0x22e)]=_0x453b4c(0x200),_0x22426b['location']='pages/meta-form-element.js',_0x22426b['parent_field']='id',await MetaUiUtil[_0x453b4c(0x251)](_0x31a67a,_0x22426b,_0x5e0e45);else{if(_0x453b4c(0x261)===_0x2f8c0d)MetaUiUtil[_0x453b4c(0x1f7)](_0x31a67a,_0x22426b,_0x5e0e45);else{if(_0x453b4c(0x27f)===_0x2f8c0d){let _0x1d10d4;_0x22426b[_0x453b4c(0x21e)]?(_0x1d10d4={},Object[_0x453b4c(0x267)](_0x5e0e45)[_0x453b4c(0x26a)](_0xbddd9f=>Object['keys'](_0x22426b[_0x453b4c(0x21e)])[_0x453b4c(0x1db)](_0xbddd9f))['map'](_0x5a0b31=>{const _0x307086=_0x453b4c;Object[_0x307086(0x267)](_0x22426b[_0x307086(0x21e)])['includes'](_0x5a0b31)&&(_0x307086(0x26d)==typeof _0x5e0e45[_0x5a0b31]?_0x1d10d4[_0x22426b['param_field'][_0x5a0b31]]=_0x5e0e45[_0x5a0b31]:_0x1d10d4[_0x22426b['param_field'][_0x5a0b31]]={'id':_0x5e0e45[_0x5a0b31]['id']});})):_0x1d10d4=_0x5e0e45,UiUtil[_0x453b4c(0x277)](_0x22426b[_0x453b4c(0x285)],[_0x1d10d4]);}else _0x453b4c(0x1fd)===_0x2f8c0d?await MetaUiUtil[_0x453b4c(0x251)](_0x31a67a,_0x22426b,_0x5e0e45):'scenario'===_0x2f8c0d?await MetaUiUtil[_0x453b4c(0x2d8)](_0x31a67a,_0x22426b,_0x5e0e45):'value_reference'===_0x2f8c0d&&await MetaUiUtil['gristButtonValueReference'](_0x31a67a,_0x22426b,_0x5e0e45);}}}static async[a0_0x53816b(0x272)](_0x244fb8,_0x27fb48){const _0x71eb88=a0_0x53816b;if(ValueUtil['isEmpty'](_0x27fb48))return;let _0x27363a=_0x244fb8[_0x71eb88(0x268)],_0x80a80d=_0x244fb8[_0x71eb88(0x229)],_0x5922c8=ValueUtil[_0x71eb88(0x226)](_0x27fb48,_0x71eb88(0x2dd)),_0x7331d4=ValueUtil[_0x71eb88(0x226)](_0x27fb48,_0x71eb88(0x2a0)),_0x81e6c=_0x7331d4[_0x71eb88(0x26a)](_0x137a5c=>_0x137a5c[_0x71eb88(0x2d7)](_0x71eb88(0x268)));if(ValueUtil[_0x71eb88(0x21f)](_0x81e6c)){if(!_0x27363a)return void UiUtil[_0x71eb88(0x2e7)](_0x71eb88(0x2ca),_0x71eb88(0x249),'info','confirm');if(0x0==(_0x27363a['data']?_0x27363a['data']['records']:[])[_0x71eb88(0x240)])return void UiUtil[_0x71eb88(0x2e7)]('title.info',_0x71eb88(0x1e6),_0x71eb88(0x2cc),'confirm');if(_0x7331d4['includes'](_0x71eb88(0x1ed))||_0x7331d4[_0x71eb88(0x1db)](_0x71eb88(0x2d3))){let _0x68ed74=_0x27363a[_0x71eb88(0x1ff)];if(ValueUtil[_0x71eb88(0x2bb)](_0x68ed74))return void UiUtil[_0x71eb88(0x2e7)](_0x71eb88(0x2a5),_0x71eb88(0x1f9),'info',_0x71eb88(0x262));if(_0x7331d4[_0x71eb88(0x1db)]('grist_one')&&_0x68ed74['length']>0x1)return void UiUtil[_0x71eb88(0x2e7)]('title.info',_0x71eb88(0x22f),_0x71eb88(0x2cc),_0x71eb88(0x262));}}let _0x51558a={};if(_0x7331d4[_0x71eb88(0x1db)]('filter')){if(!_0x80a80d)return void UiUtil[_0x71eb88(0x2e7)]('title.info',_0x71eb88(0x298),'info',_0x71eb88(0x262));let _0x1683d3=_0x80a80d?await _0x80a80d[_0x71eb88(0x235)]():[];_0x51558a[_0x71eb88(0x26a)]=_0x1683d3;}if(_0x7331d4['includes'](_0x71eb88(0x28c)))_0x51558a[_0x71eb88(0x268)]=_0x27363a[_0x71eb88(0x2c6)]['records'];else{if(_0x7331d4['includes'](_0x71eb88(0x1ed)))_0x51558a['grist']=_0x27363a[_0x71eb88(0x1ff)][0x0];else{if(_0x7331d4[_0x71eb88(0x1db)]('grist_selected'))_0x51558a[_0x71eb88(0x268)]=_0x27363a[_0x71eb88(0x1ff)];else{if(_0x7331d4[_0x71eb88(0x1db)]('grist_changed')&&(_0x51558a[_0x71eb88(0x268)]=ServiceUtil[_0x71eb88(0x2cf)](_0x27363a),!_0x51558a[_0x71eb88(0x268)]))return;}}}if('page'===_0x5922c8){let _0x39dead,_0x5d3f65=Array['isArray'](_0x51558a[_0x71eb88(0x268)])?_0x51558a[_0x71eb88(0x268)]:[_0x51558a[_0x71eb88(0x268)]];_0x39dead=_0x27fb48[_0x71eb88(0x21e)]?_0x5d3f65['map'](_0x8d4823=>{const _0x107121=_0x71eb88;let _0x3769b2={};return Object[_0x107121(0x267)](_0x8d4823)[_0x107121(0x26a)](_0x4fea0b=>Object[_0x107121(0x267)](_0x27fb48['param_field'])['includes'](_0x4fea0b))['map'](_0x40d9c8=>{const _0x16f27d=_0x107121;Object[_0x16f27d(0x267)](_0x27fb48[_0x16f27d(0x21e)])['includes'](_0x40d9c8)&&(_0x16f27d(0x26d)==typeof _0x8d4823[_0x40d9c8]?_0x3769b2[_0x27fb48['param_field'][_0x40d9c8]]=_0x8d4823[_0x40d9c8]:_0x3769b2[_0x27fb48[_0x16f27d(0x21e)][_0x40d9c8]]={'id':_0x8d4823[_0x40d9c8]['id']});}),_0x3769b2;}):_0x5d3f65,UiUtil[_0x71eb88(0x277)](_0x27fb48[_0x71eb88(0x285)],_0x39dead);}else{if(_0x71eb88(0x1fd)===_0x5922c8){let _0xafb84c={..._0x51558a[_0x71eb88(0x268)]?_0x51558a['grist']:{},..._0x51558a[_0x71eb88(0x26a)]?_0x51558a[_0x71eb88(0x26a)]:{}};await MetaUiUtil[_0x71eb88(0x251)](_0x244fb8,_0x27fb48,_0xafb84c);}else _0x71eb88(0x20e)===_0x5922c8&&await MetaUiUtil[_0x71eb88(0x2d8)](_0x244fb8,_0x27fb48,_0x51558a);}}static[a0_0x53816b(0x1f7)](_0x44d115,_0x3c6a1f,_0x49eeb6){const _0x35ee9c=a0_0x53816b;let _0x450914=_0x3c6a1f[_0x35ee9c(0x1d9)],_0x500cd4=_0x44d115['tagName'][_0x35ee9c(0x25a)](_0x35ee9c(0x276))>0x0?_0x44d115[_0x35ee9c(0x28b)][_0x35ee9c(0x2ed)](_0x35ee9c(0x264)):_0x44d115;Object[_0x35ee9c(0x267)](_0x450914)[_0x35ee9c(0x29a)](_0x2b52d4=>{const _0x479b9e=_0x35ee9c;let _0xad5236=_0x500cd4[_0x479b9e(0x28b)]['querySelector']('#'+_0x2b52d4);_0x49eeb6['id']&&_0xad5236[_0x479b9e(0x228)](_0x49eeb6['id']);let _0x1679e5=_0x450914[_0x2b52d4];Object[_0x479b9e(0x267)](_0x1679e5)[_0x479b9e(0x29a)](_0x3f4fe6=>{let _0x4705d7=_0x1679e5[_0x3f4fe6],_0x4d3108='*'===_0x4705d7?_0x49eeb6:_0x49eeb6[_0x4705d7];_0xad5236[_0x3f4fe6]=_0x4d3108;});});}static async[a0_0x53816b(0x251)](_0xdf384c,_0x65861b,_0x455568){const _0x13ab24=a0_0x53816b;let _0x1384e0=TermsUtil[_0x13ab24(0x2ec)](_0x65861b[_0x13ab24(0x1d2)]);ValueUtil[_0x13ab24(0x21f)](_0x65861b[_0x13ab24(0x286)])&&(_0x1384e0=_0x1384e0+'('+ValueUtil[_0x13ab24(0x226)](_0x455568,..._0x65861b[_0x13ab24(0x286)][_0x13ab24(0x28f)]('.'))+')');let _0x4e47fb=_0x65861b[_0x13ab24(0x1e2)]&&_0x13ab24(0x26d)==typeof _0x65861b['after']&&_0x13ab24(0x2d0)===_0x65861b[_0x13ab24(0x1e2)]&&_0xdf384c&&_0xdf384c['fetch']?_0xdf384c[_0x13ab24(0x2d0)]['bind'](_0xdf384c):void 0x0;UiUtil['openDynamicPopup'](_0x1384e0,_0x65861b,_0x455568,_0x4e47fb);}static async[a0_0x53816b(0x2d8)](_0x53d7a7,_0xaff37,_0x1015c1){const _0x2df843=a0_0x53816b;let _0x17113f=await ServiceUtil[_0x2df843(0x250)](_0x2df843(0x227),_0xaff37[_0x2df843(0x22b)],_0x1015c1);if(!_0x17113f[_0x2df843(0x1dd)]&&!ValueUtil[_0x2df843(0x2bb)](_0xaff37[_0x2df843(0x1e2)])&&_0xaff37[_0x2df843(0x1e2)]){if(_0x2df843(0x2d0)!==_0xaff37[_0x2df843(0x1e2)]){if(_0x2df843(0x2c4)==typeof _0xaff37[_0x2df843(0x1e2)]){let _0x4c2d6b=_0xaff37['after'],_0x469c82=ValueUtil[_0x2df843(0x226)](_0x17113f[_0x2df843(0x2c6)][_0x2df843(0x205)]['data'],..._0x4c2d6b[_0x2df843(0x20a)][_0x2df843(0x28f)]('.'));if(0x0==Array[_0x2df843(0x2aa)](_0x469c82)&&(_0x469c82=[_0x469c82]),'form'===_0x4c2d6b[_0x2df843(0x2dd)])_0x4c2d6b[_0x2df843(0x22e)]=_0x2df843(0x200),_0x4c2d6b['location']=_0x2df843(0x224),_0x4c2d6b[_0x2df843(0x24b)]='id',_0x469c82=_0x469c82[0x0],await MetaUiUtil[_0x2df843(0x251)](_0x53d7a7,_0x4c2d6b,_0x469c82);else{if('page'===_0x4c2d6b['type']){let _0x3fe402,_0x22841a=_0x469c82;_0x3fe402=_0x4c2d6b[_0x2df843(0x21e)]?_0x22841a[_0x2df843(0x218)](_0x43352a=>{const _0x42abe6=_0x2df843;let _0x160d4d={};return Object[_0x42abe6(0x267)](_0x43352a)[_0x42abe6(0x26a)](_0x2cee11=>Object[_0x42abe6(0x267)](_0x4c2d6b['param_field'])[_0x42abe6(0x1db)](_0x2cee11))[_0x42abe6(0x218)](_0x2d7d76=>{const _0x3ab8e6=_0x42abe6;Object[_0x3ab8e6(0x267)](_0x4c2d6b[_0x3ab8e6(0x21e)])['includes'](_0x2d7d76)&&('string'==typeof _0x43352a[_0x2d7d76]?_0x160d4d[_0x4c2d6b[_0x3ab8e6(0x21e)][_0x2d7d76]]=_0x43352a[_0x2d7d76]:_0x160d4d[_0x4c2d6b[_0x3ab8e6(0x21e)][_0x2d7d76]]={'id':_0x43352a[_0x2d7d76]['id']});}),_0x160d4d;}):_0x22841a,UiUtil['pageNavigate'](_0x4c2d6b[_0x2df843(0x285)],_0x3fe402);}else _0x2df843(0x261)===_0x4c2d6b[_0x2df843(0x2dd)]?(_0x469c82=_0x469c82[0x0],MetaUiUtil['gristButtonPassParam'](_0x53d7a7,_0x4c2d6b,_0x469c82)):_0x2df843(0x1fd)===_0x4c2d6b[_0x2df843(0x2dd)]?(_0x469c82=_0x469c82[0x0],await MetaUiUtil[_0x2df843(0x251)](_0x53d7a7,_0x4c2d6b,_0x469c82)):_0x2df843(0x2db)===_0x4c2d6b[_0x2df843(0x2dd)]&&(_0x469c82=_0x469c82[0x0],await MetaUiUtil[_0x2df843(0x2c0)](_0x53d7a7,_0x4c2d6b,_0x469c82));}}}else _0x53d7a7[_0x2df843(0x2d0)]();}}static async[a0_0x53816b(0x2c0)](_0x319795,_0x2d26fd,_0x595572){const _0xe37ac1=a0_0x53816b;for(let _0x3e48b0=0x0;_0x3e48b0<_0x2d26fd['relation'][_0xe37ac1(0x240)];_0x3e48b0++){let _0x5f593b=_0x2d26fd[_0xe37ac1(0x270)][_0x3e48b0];!0x0===ValueUtil[_0xe37ac1(0x27d)](_0x5f593b,_0x595572,Object['keys'](_0x5f593b)[_0xe37ac1(0x26a)](_0x1d268b=>'logic'!=_0x1d268b))&&await MetaUiUtil[_0xe37ac1(0x2b2)](_0x319795,_0x5f593b,_0x595572);}}static[a0_0x53816b(0x215)](_0x16227a,_0x477309){return{'type':_0x16227a,'name':_0x477309,'sortable':!0x1,'hidden':!0x0};}static['getGristColumnConfig'](_0x30a781,_0x5c2066,_0x41d172,_0x5f0b4a,_0x4a6f93,_0x593fb1){const _0x8e5e0f=a0_0x53816b;let _0xa262a7=TermsUtil[_0x8e5e0f(0x260)](_0x5c2066);return{'type':_0x30a781,'name':_0x5c2066,'header':_0xa262a7,'record':{'align':_0x41d172,'editable':_0x5f0b4a},'sortable':_0x4a6f93,'width':_0x593fb1,'imex':{'width':Math[_0x8e5e0f(0x20d)](_0x593fb1/0x6),'header':_0xa262a7,'type':_0x30a781,'key':_0x5c2066}};}static[a0_0x53816b(0x2a4)](_0x5a1971,_0x56497a,_0x262676,_0x42f16b,_0x4f7ea3,_0x3f8342,_0x10e4ca){const _0x5a2319=a0_0x53816b;let _0x7df98d=TermsUtil[_0x5a2319(0x260)](_0x262676);return{'type':_0x5a1971,'name':_0x56497a,'header':_0x7df98d,'record':{'align':_0x42f16b,'editable':_0x4f7ea3},'sortable':_0x3f8342,'width':_0x10e4ca,'imex':{'width':Math[_0x5a2319(0x20d)](_0x10e4ca/0x6),'header':_0x7df98d,'type':_0x5a1971,'key':_0x56497a}};}static[a0_0x53816b(0x27c)](_0x3e47fd,_0x301650,_0xd526f6,_0x1751ee,_0x30d715,_0x433ae9,_0x4b3d57,_0x47a168){const _0x1913bb=a0_0x53816b;let _0x2d73b8=TermsUtil['tLabel'](_0xd526f6);return{'type':_0x3e47fd,'name':_0x301650,'header':_0x2d73b8,'record':{'align':_0x1751ee,'editable':_0x30d715,'mandatory':_0x4b3d57},'sortable':_0x433ae9,'width':_0x47a168,'imex':{'width':Math[_0x1913bb(0x20d)](_0x47a168/0x6),'header':_0x2d73b8,'type':_0x3e47fd,'key':_0x301650}};}static[a0_0x53816b(0x290)](_0x440d1b,_0x267f61,_0x165265,_0x39adf7,_0x3c6362,_0x42fc04,_0xa3c9a9){const _0x450161=a0_0x53816b;let _0xde6dd2=TermsUtil[_0x450161(0x260)](_0x267f61);return{'type':_0x450161(0x23b),'name':_0x440d1b,'header':_0xde6dd2,'record':{'align':_0x165265,'editable':!0x0,'mandatory':_0x42fc04,'options':_0xa3c9a9},'sortable':_0x39adf7,'width':_0x3c6362,'imex':{'width':Math['floor'](_0x3c6362/0x6),'header':_0xde6dd2,'type':_0x450161(0x26d),'key':_0x440d1b}};}static async['getGristCodeSelectorColumnConfig'](_0x319288,_0x525c69,_0x3e01da,_0xc3f3a9,_0x4a83bb,_0xa08633,_0x4e37fb){const _0x77b45b=a0_0x53816b;let _0x5e6d71=await ServiceUtil[_0x77b45b(0x1e0)](_0x4e37fb);return MetaUiUtil[_0x77b45b(0x290)](_0x319288,_0x525c69,_0x3e01da,_0xc3f3a9,_0x4a83bb,_0xa08633,_0x5e6d71);}static[a0_0x53816b(0x1e7)](_0x3ee0be,_0x221c77,_0x11a879,_0x294196,_0x5ec76f){const _0x5d02b0=a0_0x53816b;let _0x3b70e3=TermsUtil['tLabel'](_0x11a879),_0x4d6e22={'name':_0x3ee0be,'type':_0x221c77,'label':_0x3b70e3,'operator':_0x294196,'imex':{'width':0x10,'header':_0x3b70e3,'type':_0x221c77,'key':_0x3ee0be}};return _0x5ec76f&&(_0x4d6e22[_0x5d02b0(0x23d)]=_0x5ec76f),_0x4d6e22;}static async[a0_0x53816b(0x2e3)](_0x4e7f94,_0x2c1d34,_0x4d4246,_0x39c5b7,_0x3e4aa4){const _0x7a7820=a0_0x53816b;let _0x491699=await ServiceUtil[_0x7a7820(0x1e0)](_0x3e4aa4);return MetaUiUtil[_0x7a7820(0x1e7)](_0x4e7f94,_0x2c1d34,_0x4d4246,_0x39c5b7,_0x491699);}static[a0_0x53816b(0x221)](){return[css`
|
|
5
|
+
`,'variables':{'id':null}}))[_0x36b2fc(0x171)])return;let _0x41102c=[{'name':'routing','operator':'eq','value':_0x36fea5}],_0x3e2d13=await ServiceUtil[_0x36b2fc(0x142)](_0x36b2fc(0x10e),_0x41102c,null,0x0,0x0,'id,template');if(_0x3e2d13||0x0!=_0x3e2d13['length']){let _0x21efaf=_0x3e2d13['records'][0x0];if(!_0x21efaf[_0x36b2fc(0x11b)])throw new Error(TermsUtil[_0x36b2fc(0x1df)]('value_is_not_exist',{'value':TermsUtil[_0x36b2fc(0x1e6)](_0x36b2fc(0x20b))+'\x20'+TermsUtil[_0x36b2fc(0x1b6)](_0x36b2fc(0x1b0))}));return this[_0x36b2fc(0x199)]=_0x21efaf['id'],JSON[_0x36b2fc(0x197)](MetaCrypto[_0x36b2fc(0x121)](_0x21efaf[_0x36b2fc(0x11b)]));}throw new Error(TermsUtil[_0x36b2fc(0x1df)](_0x36b2fc(0x175),{'value':TermsUtil[_0x36b2fc(0x1e6)](_0x36b2fc(0x20b))+'\x20'+_0x36fea5}));}static['getBasicGristPageProperties'](){return{'menuInfo':Object,'gridConfig':Object,'gridColumnConfig':Array,'formColumnConfig':Array,'buttonConfig':Array,'searchConfig':Array,'gqlInfo':String,'gqlFetchField':String,'searchFormElement':String,'useFilterForm':Boolean,'gristConfigSet':Object,'formConfigSet':Array,'useButtonExport':Boolean,'useButtonImport':Boolean,'useButtonAdd':Boolean,'gridMobileMode':String,'gridDeskMode':String,'gridViewOptions':Array,'gridMode':String,'infinityPage':!0x0,'route_name':String,'parent_id':String,'is_detail':{'type':Boolean,'converter':_0x194471=>Boolean(_0x194471)},'is_popup':{'type':Boolean,'converter':_0x1f2834=>Boolean(_0x1f2834)},'is_activity':{'type':Boolean,'converter':_0x1e02b1=>Boolean(_0x1e02b1)},'is_readonly':{'type':Boolean,'converter':_0x447602=>Boolean(_0x447602)}};}static async[a0_0x4e7c01(0x1b1)](_0x299f58){const _0x24be1c=a0_0x4e7c01;if(0x0==store[_0x24be1c(0x1a1)]()[_0x24be1c(0x1ae)][_0x24be1c(0x17c)])return void document['dispatchEvent'](new CustomEvent(_0x24be1c(0x1b2),{'detail':{'level':_0x24be1c(0x190),'message':TermsUtil[_0x24be1c(0x128)](_0x24be1c(0x1f3))}}));let _0x4116b8=_0x299f58[_0x24be1c(0x1cf)]?UiUtil[_0x24be1c(0x1d1)]():_0x299f58[_0x24be1c(0x17e)];_0x299f58[_0x24be1c(0x1d1)]=_0x4116b8;let _0x54acb1=await MetaUiUtil[_0x24be1c(0x123)](_0x4116b8);return!0x0===_0x299f58[_0x24be1c(0x1b5)]&&(_0x54acb1[_0x24be1c(0x17d)][_0x24be1c(0x18f)][_0x24be1c(0x183)]=!0x1,_0x54acb1[_0x24be1c(0x17d)]['option'][_0x24be1c(0x20c)]=_0x24be1c(0x156),_0x54acb1[_0x24be1c(0x17d)]['use_filter_form']=!0x1,_0x54acb1[_0x24be1c(0x17d)][_0x24be1c(0x152)]=[],_0x54acb1[_0x24be1c(0x152)]=_0x54acb1['button'][_0x24be1c(0x118)](_0x512d44=>_0x24be1c(0x1e2)==_0x512d44[_0x24be1c(0x1fe)])),!0x0===_0x299f58['is_readonly']&&(_0x54acb1['grid_column'][_0x24be1c(0x187)](_0x501ef2=>{const _0x5613a7=_0x24be1c;_0x501ef2[_0x5613a7(0x1e4)]=!0x1;}),_0x54acb1[_0x24be1c(0x152)]=_0x54acb1['button']['filter'](_0x13cdc3=>'add'!=_0x13cdc3[_0x24be1c(0x1fe)])),_0x54acb1;}static[a0_0x4e7c01(0x195)](..._0x1947ce){return{'pages':_0x1947ce};}static[a0_0x4e7c01(0x1e3)](_0x56838e,_0x3bb990){const _0x2d810f=a0_0x4e7c01;let _0x3cab3c=[{'type':_0x2d810f(0x1dc),'gutterName':_0x2d810f(0x1fc)},{'type':_0x2d810f(0x1dc),'gutterName':_0x2d810f(0x147)}];return _0x56838e&&_0x3cab3c[_0x2d810f(0x10f)]({'type':_0x2d810f(0x1dc),'gutterName':_0x2d810f(0x1cb),'multiple':_0x3bb990}),_0x3cab3c;}static[a0_0x4e7c01(0x21b)](_0x1dda54){return{'selectable':{'multiple':_0x1dda54}};}static async['parseGridConfigSet'](_0x42cda2){const _0x44581a=a0_0x4e7c01;let _0x5034ab=MetaUiUtil[_0x44581a(0x1a4)](_0x42cda2),_0x2bc243=MetaUiUtil[_0x44581a(0x115)](_0x42cda2),_0xab7aae=MetaUiUtil[_0x44581a(0x13c)](_0x42cda2),_0x4f4be3=MetaUiUtil[_0x44581a(0x184)](_0x42cda2),_0x2ed861=await MetaUiUtil[_0x44581a(0x12d)](_0x42cda2),_0x1172a9=MetaUiUtil[_0x44581a(0x1e3)](_0x5034ab[_0x44581a(0x183)],_0xab7aae[_0x44581a(0x162)][_0x44581a(0x129)]);return 0x1==_0x42cda2[_0x44581a(0x11c)]&&(_0x2ed861=MetaUiUtil['setGridColumnSearchOption'](_0x42cda2,_0x2ed861)),{'list':_0x2bc243,'pagination':_0x5034ab[_0x44581a(0x20c)],'sorters':_0x5034ab['sorters'],'rows':_0xab7aae,'columns':[..._0x1172a9,..._0x4f4be3,..._0x2ed861]};}static async[a0_0x4e7c01(0x145)](_0x2e3b23){const _0x53deaf=a0_0x4e7c01;let _0x4f3609=_0x2e3b23['formColumnConfig'],_0x4d37fb=[];for(let _0x7dfee0=0x0;_0x7dfee0<_0x4f3609[_0x53deaf(0x1ca)];_0x7dfee0++){let {type:_0x2997f0=_0x53deaf(0x12c),name:_0x1fb69c,header:_0x4f0193,hidden:_0x292435=!0x1,editable:_0x43b23c=!0x0,mandatory:_0x2692ea=!0x1,align:_0x447b96='left',select_opt:_0x11f621,object_opt:_0x4f3cfe}=_0x4f3609[_0x7dfee0],_0xb19e6={'type':_0x2997f0,'name':_0x1fb69c,'header_txt':ValueUtil[_0x53deaf(0x166)](_0x4f0193)?TermsUtil[_0x53deaf(0x1b6)](_0x1fb69c):TermsUtil[_0x53deaf(0x1b6)](_0x4f0193),'header':{'renderer':function(_0xada556){return _0xada556['header_txt'];}},'hidden':_0x292435,'record':{'editable':_0x43b23c,'mandatory':_0x2692ea,'align':_0x447b96,'classifier':function(){},'renderer':getRenderer(_0x2997f0)}};_0x43b23c&&(_0xb19e6[_0x53deaf(0x101)][_0x53deaf(0x1da)]=getEditor(_0x2997f0)),_0x53deaf(0x17f)===_0x2997f0&&ValueUtil[_0x53deaf(0x170)](_0x11f621)&&(Array[_0x53deaf(0x1f1)](_0x11f621)?_0xb19e6[_0x53deaf(0x101)][_0x53deaf(0x20e)]=_0x11f621:'code'===_0x11f621[_0x53deaf(0x161)]?_0xb19e6[_0x53deaf(0x101)][_0x53deaf(0x20e)]=await ServiceUtil['getCodeSelectorData'](_0x11f621[_0x53deaf(0x1fe)]):_0x53deaf(0x209)===_0x11f621[_0x53deaf(0x161)]?_0xb19e6[_0x53deaf(0x101)][_0x53deaf(0x20e)]=await ServiceUtil[_0x53deaf(0xf3)](_0x11f621[_0x53deaf(0x1fe)],_0x11f621[_0x53deaf(0x116)]):_0x53deaf(0x193)===_0x11f621[_0x53deaf(0x161)]&&(_0xb19e6['record']['options']=await ServiceUtil[_0x53deaf(0x12e)](_0x11f621[_0x53deaf(0x116)]))),'object'!==_0x2997f0&&'resource-object'!==_0x2997f0||!ValueUtil[_0x53deaf(0x170)](_0x4f3cfe)||(_0xb19e6[_0x53deaf(0x101)]['options']=_0x4f3cfe),_0x4d37fb[_0x53deaf(0x10f)](_0xb19e6);}return _0x4d37fb;}static[a0_0x4e7c01(0x1a4)](_0x4b1000){const _0x2deb1a=a0_0x4e7c01;let _0x54762c=_0x4b1000[_0x2deb1a(0x205)];_0x4b1000[_0x2deb1a(0x11c)]=!_0x54762c||null==_0x54762c[_0x2deb1a(0x172)]||_0x54762c['use_filter_form'];let {mobile_mode:_0x30ce5f=_0x2deb1a(0x177),desk_mode:_0x210077=_0x2deb1a(0x192),view_mode:_0x571735=[],use_row_checker:_0x1ee73f=!0x0,sorters:_0x13b509=[],pages:_0x120ddd=[0x32,0x64,0x1f4,0x3e8]}=ValueUtil['isEmpty'](_0x54762c[_0x2deb1a(0x18f)])?{}:_0x54762c[_0x2deb1a(0x18f)];return _0x2deb1a(0x156)===_0x120ddd||'-1'===_0x120ddd?(_0x4b1000['infinityPage']=!0x0,_0x120ddd={'infinite':!0x0}):(_0x4b1000['infinityPage']=!0x1,_0x120ddd[_0x2deb1a(0x114)](function(_0x49b1f1,_0x1c270b){return _0x49b1f1-_0x1c270b;}),_0x120ddd={'pages':_0x120ddd}),ValueUtil[_0x2deb1a(0x170)](_0x571735)&&(0x1==_0x571735[_0x2deb1a(0x1ca)]?(_0x210077=_0x571735[0x0],_0x30ce5f=_0x571735[0x0]):_0x571735[_0x2deb1a(0x1ca)]>=0x2&&(_0x571735['includes'](_0x30ce5f)||(_0x30ce5f=_0x571735[0x1]),_0x571735[_0x2deb1a(0x189)](_0x210077)||(_0x210077=_0x571735[0x0]))),_0x4b1000[_0x2deb1a(0xfc)]=_0x30ce5f,_0x4b1000['gridDeskMode']=_0x210077,_0x4b1000[_0x2deb1a(0x1ef)]=_0x571735,_0x4b1000[_0x2deb1a(0x1bd)]=UiUtil[_0x2deb1a(0x1c9)]()?_0x4b1000['gridMobileMode']:_0x4b1000['gridDeskMode'],{'use_row_checker':_0x1ee73f,'sorters':_0x13b509,'pages':_0x120ddd};}static['getGridListSet'](_0x3c1f9d){const _0x220eb4=a0_0x4e7c01;let _0x5991ea={'fields':[ValueUtil[_0x220eb4(0x157)](_0x3c1f9d[_0x220eb4(0x10b)],_0x220eb4(0x1fe)),ValueUtil[_0x220eb4(0x157)](_0x3c1f9d['menuInfo'],_0x220eb4(0x1b4))]};return _0x3c1f9d['gridConfig'][_0x220eb4(0x16d)]&&Object[_0x220eb4(0x1ac)](_0x5991ea,_0x3c1f9d[_0x220eb4(0x205)][_0x220eb4(0x16d)]),_0x5991ea;}static[a0_0x4e7c01(0x13c)](_0x1f4850){const _0x149899=a0_0x4e7c01;let {multiple_select:_0x24d943=!0x1,click:_0x3a8db6}=ValueUtil[_0x149899(0x166)](_0x1f4850[_0x149899(0x205)][_0x149899(0x1a7)])?{}:_0x1f4850['gridConfig'][_0x149899(0x1a7)],_0x35780a={'selectable':{'multiple':_0x24d943},'appendable':_0x1f4850[_0x149899(0xf8)]};return ValueUtil[_0x149899(0x170)](_0x3a8db6)&&(_0x35780a[_0x149899(0x210)]={'click':_0x3a8db6}),_0x35780a;}static[a0_0x4e7c01(0x184)](_0x105155){const _0x157dbc=a0_0x4e7c01;let _0x332c30=_0x105155[_0x157dbc(0x205)][_0x157dbc(0x152)];return ValueUtil[_0x157dbc(0x166)](_0x332c30)?[]:_0x332c30['map'](_0x435994=>{const _0x4afc29=_0x157dbc;let _0x253f3b={'type':_0x4afc29(0x1dc),'gutterName':_0x4afc29(0x152)};if(ValueUtil[_0x4afc29(0x170)](_0x435994[_0x4afc29(0x1f2)])&&(Array[_0x4afc29(0x1f1)](_0x435994['icon'])?_0x253f3b['icon']=_0xb16e10=>{const _0x38eaca=_0x4afc29;if(ValueUtil[_0x38eaca(0x170)](_0xb16e10))for(let _0x9e0aa1=0x0;_0x9e0aa1<_0x435994[_0x38eaca(0x1f2)][_0x38eaca(0x1ca)];_0x9e0aa1++){let _0x30788a=_0x435994[_0x38eaca(0x1f2)][_0x9e0aa1];if(!0x0===ValueUtil[_0x38eaca(0x201)](_0x30788a,_0xb16e10,Object['keys'](_0x30788a)[_0x38eaca(0x118)](_0x552bb1=>_0x38eaca(0x1f2)!=_0x552bb1)))return _0x30788a['icon'];}}:_0x253f3b[_0x4afc29(0x1f2)]=_0x435994['icon']),ValueUtil[_0x4afc29(0x170)](_0x435994['name'])&&(_0x253f3b[_0x4afc29(0x1fe)]=_0x435994[_0x4afc29(0x1fe)]),ValueUtil['isNotEmpty'](_0x435994[_0x4afc29(0x1db)])&&(_0x253f3b[_0x4afc29(0xff)]=TermsUtil[_0x4afc29(0x214)](_0x435994[_0x4afc29(0x1db)])),'basic'===_0x435994[_0x4afc29(0x161)]){let _0x29973c=ValueUtil[_0x4afc29(0x157)](_0x435994,_0x4afc29(0x217));[_0x4afc29(0x1ec),_0x4afc29(0x1d9)][_0x4afc29(0x189)](_0x29973c)?_0x253f3b['handlers']={'click':(_0x52cebc,_0x3194ed,_0x9b3046,_0x5e1e9a,_0x4d1b42)=>{const _0x48d021=_0x4afc29;if(_0x5e1e9a['id']){let _0x423476={'title':'data_history_list','type':_0x48d021(0x20a),'tagname':_0x48d021(0x1ec)==_0x29973c?_0x48d021(0x168):'history-json-list-popup','location':'history_copy'==_0x29973c?_0x48d021(0x111):'pages/hgistory/history-json-list-popup.js','menu':_0x105155['currentRouting'],'size':_0x48d021(0x1ee),'popup_field':_0x48d021(0x16b),'parent_field':'id'},_0x474bf2={..._0x5e1e9a,'gqlFunc':ValueUtil[_0x48d021(0x157)](_0x105155['gqlInfo'],_0x48d021(0x20d),_0x48d021(0x1c6)),'gristConfig':JSON[_0x48d021(0x197)](JSON[_0x48d021(0x1f7)](_0x105155['grist'][_0x48d021(0xfb)]))};MetaUiUtil[_0x48d021(0x212)](_0x105155,{'logic':_0x423476},_0x474bf2);}}}:_0x253f3b[_0x4afc29(0x210)]={'click':_0x29973c};}else _0x253f3b[_0x4afc29(0x210)]={'click':(_0x525422,_0x4ca43f,_0x36a518,_0x47282b,_0x1f359a)=>{const _0x2356d0=_0x4afc29;_0x47282b['id']&&MetaUiUtil[_0x2356d0(0x212)](_0x105155,_0x435994,_0x47282b);}};return _0x253f3b;});}static async[a0_0x4e7c01(0x12d)](_0x301e72){const _0x322915=a0_0x4e7c01;let _0x120fc9=_0x301e72[_0x322915(0x181)];if(ValueUtil[_0x322915(0x166)](_0x120fc9))return[];let _0x43fa3d=[];for(let _0xba980e=0x0;_0xba980e<_0x120fc9[_0x322915(0x1ca)];_0xba980e++){let {type:_0x1cc9f5=_0x322915(0x12c),name:_0x5d5bc1,header:_0x450167,hidden:_0x2a0ea9=!0x1,editable:_0x4003e7=!0x0,mandatory:_0x585d7d=!0x1,sortable:_0xc28dbf=!0x1,align:_0x33d035='left',width:_0x53c06b=0x0,exportable:_0x2f29c8=!0x1,select_opt:_0x5ecf5f,object_opt:_0x41d5d1}=_0x120fc9[_0xba980e],_0xeaeb30={'type':_0x1cc9f5,'name':_0x5d5bc1,'header':ValueUtil['isEmpty'](_0x450167)?'':TermsUtil[_0x322915(0x1b6)](_0x450167),'hidden':_0x2a0ea9,'sortable':_0xc28dbf,'width':_0x53c06b,'record':{'editable':_0x4003e7,'mandatory':_0x585d7d,'align':_0x33d035}};if(_0x322915(0x17f)===_0x1cc9f5&&ValueUtil[_0x322915(0x170)](_0x5ecf5f))Array[_0x322915(0x1f1)](_0x5ecf5f)?_0xeaeb30['record'][_0x322915(0x20e)]=_0x5ecf5f:_0x322915(0xfe)===_0x5ecf5f[_0x322915(0x161)]?_0xeaeb30[_0x322915(0x101)][_0x322915(0x20e)]=await ServiceUtil[_0x322915(0x14c)](_0x5ecf5f[_0x322915(0x1fe)]):_0x322915(0x209)===_0x5ecf5f[_0x322915(0x161)]?_0xeaeb30[_0x322915(0x101)][_0x322915(0x20e)]=await ServiceUtil['getCodeByScenario'](_0x5ecf5f[_0x322915(0x1fe)],_0x5ecf5f[_0x322915(0x116)]):_0x322915(0x193)===_0x5ecf5f[_0x322915(0x161)]&&(_0xeaeb30['record'][_0x322915(0x20e)]=await ServiceUtil[_0x322915(0x12e)](_0x5ecf5f['args']));else{if((_0x322915(0x1aa)===_0x1cc9f5||_0x322915(0x1b9)===_0x1cc9f5)&&ValueUtil[_0x322915(0x170)](_0x41d5d1)){let _0x3f028f;_0xeaeb30[_0x322915(0x101)][_0x322915(0x20e)]={..._0x41d5d1},_0x41d5d1[_0x322915(0x1a3)]&&_0x41d5d1['basicArgs']['filters']&&(_0x3f028f=[..._0x41d5d1['basicArgs']['filters']]),_0x3f028f&&JSON[_0x322915(0x1f7)](_0x3f028f)[_0x322915(0x189)]('::')&&(_0xeaeb30['handlers']={'dblclick':(_0x82ffbb,_0x2f11b1,_0x1aa88a,_0x1762b2,_0x2687a1)=>{const _0x594a62=_0x322915;let _0x38885c=[];_0x3f028f['forEach'](_0x3d1de5=>{const _0x257377=a0_0x319f;var {name:_0x4ac775,value:_0x79dc4,operator:_0x27c77d='eq'}=_0x3d1de5;_0x79dc4['includes']('::')&&(_0x79dc4=ValueUtil[_0x257377(0x157)](_0x1762b2,..._0x79dc4[_0x257377(0x1d7)]('::','')[_0x257377(0x1eb)]('.'))),_0x79dc4||(_0x79dc4=''),_0x38885c['push']({'name':_0x4ac775,'operator':_0x27c77d,'value':_0x79dc4});}),_0x1aa88a[_0x594a62(0x101)][_0x594a62(0x20e)][_0x594a62(0x1a3)][_0x594a62(0x1e0)]=_0x38885c;}});}}!0x0===_0x301e72[_0x322915(0x146)]&&!0x0===_0x2f29c8&&(_0xeaeb30[_0x322915(0x13f)]={'header':_0xeaeb30[_0x322915(0xf7)],'key':_0xeaeb30[_0x322915(0x1fe)],'width':_0xeaeb30[_0x322915(0x1fb)]/0x6,'type':_0xeaeb30[_0x322915(0x161)]}),_0x43fa3d[_0x322915(0x10f)](_0xeaeb30);}if(!0x0!==this[_0x322915(0x1b5)])return _0x43fa3d;let _0x424cd0=await MetaApi['findMenuGridPersnalTemplate'](this[_0x322915(0x199)]),{template:_0x375fd7={}}=_0x424cd0;if(!_0x375fd7[_0x322915(0x126)])return _0x43fa3d;let _0x2bae3a=_0x375fd7[_0x322915(0x126)];return _0x43fa3d=_0x43fa3d[_0x322915(0x11e)](_0x54f84f=>('id'==_0x54f84f[_0x322915(0x1fe)]||(_0x54f84f[_0x322915(0x20f)]=!_0x2bae3a[_0x322915(0x189)](_0x54f84f[_0x322915(0x1fe)]),_0x54f84f[_0x322915(0x176)]=_0x2bae3a['indexOf'](_0x54f84f[_0x322915(0x1fe)]),-0x1==_0x54f84f[_0x322915(0x176)]&&(_0x54f84f['rank']=0x1869f)),_0x54f84f)),_0x43fa3d[_0x322915(0x114)]((_0x3e5eb6,_0x4a7e21)=>_0x3e5eb6[_0x322915(0x176)]-_0x4a7e21['rank']),_0x43fa3d;}static[a0_0x4e7c01(0x137)](_0x34aa68,_0x4a30d6){const _0x5ea0ff=a0_0x4e7c01;let _0x546fb2=_0x34aa68['searchConfig'];return _0x546fb2&&_0x546fb2[_0x5ea0ff(0x187)](_0x1edb7f=>{const _0x276127=_0x5ea0ff;_0x276127(0x12c)==typeof _0x1edb7f?_0x4a30d6[_0x276127(0x118)](_0x5442e0=>_0x5442e0[_0x276127(0x1fe)]==_0x1edb7f)['forEach'](_0x1e0b5f=>{const _0x3a9775=_0x276127;_0x1e0b5f[_0x3a9775(0x118)]='search';}):_0x276127(0x1aa)==typeof _0x1edb7f&&_0x4a30d6['filter'](_0x481201=>_0x481201[_0x276127(0x1fe)]==_0x1edb7f[_0x276127(0x1fe)])['forEach'](_0x29ac9d=>{const _0x3219ba=_0x276127;_0x29ac9d[_0x3219ba(0x118)]=_0x1edb7f;});}),_0x4a30d6;}static['getContextObject'](_0x3b0911){const _0x660cd5=a0_0x4e7c01;let _0x28959f={'title':TermsUtil[_0x660cd5(0x19f)](_0x3b0911[_0x660cd5(0x10b)][_0x660cd5(0xff)]),'help':_0x3b0911[_0x660cd5(0x10b)]['help']||'','actions':[...MetaUiUtil['getContextButtons'](_0x3b0911)]};return _0x3b0911[_0x660cd5(0x146)]&&(_0x28959f[_0x660cd5(0x10c)]={'name':_0x28959f['title'],'data':_0x3b0911[_0x660cd5(0x1ff)][_0x660cd5(0x153)](_0x3b0911)}),_0x3b0911[_0x660cd5(0xfd)]&&(_0x28959f[_0x660cd5(0x19b)]={'handler':_0x3b0911[_0x660cd5(0xf6)][_0x660cd5(0x153)](_0x3b0911)}),_0x28959f;}static[a0_0x4e7c01(0x16e)](_0x596006){const _0x4579a3=a0_0x4e7c01;let _0x2ff70b=_0x596006[_0x4579a3(0x196)];return ValueUtil['isEmpty'](_0x2ff70b)?[]:_0x2ff70b[_0x4579a3(0x118)](_0x567c2b=>_0x4579a3(0x1ff)!=_0x567c2b[_0x4579a3(0x1fe)]&&_0x4579a3(0xf6)!=_0x567c2b[_0x4579a3(0x1fe)]&&_0x4579a3(0x1e2)!=_0x567c2b[_0x4579a3(0x1fe)])[_0x4579a3(0x11e)](_0xef9fc=>{const _0x4cdb04=_0x4579a3;let {name:_0x3fbc22,label:_0x24e816,style:_0x27737c,type:_0x50e57e=_0x4cdb04(0x202),action:_0x58c87b,logic:_0x360293}=_0xef9fc;if(ValueUtil[_0x4cdb04(0x166)](_0x3fbc22))return{'title':'-1'};ValueUtil[_0x4cdb04(0x166)](_0x24e816)&&(_0x24e816=_0x3fbc22),ValueUtil['isEmpty'](_0x27737c)&&(_0x27737c=_0x3fbc22),ValueUtil[_0x4cdb04(0x166)](_0x58c87b)&&(_0x58c87b=_0x3fbc22);let _0x1ac454=ValueUtil[_0x4cdb04(0x170)](_0x27737c)?CommonButtonStyles[_0x27737c]||{'icon':_0x27737c,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}}:{};return{'title':TermsUtil[_0x4cdb04(0x214)](_0x24e816),'action':MetaUiUtil[_0x4cdb04(0x117)](_0x596006,_0x50e57e,_0x58c87b,_0x360293),..._0x1ac454};})[_0x4579a3(0x118)](_0x560839=>'-1'!=_0x560839[_0x4579a3(0xff)]);}static[a0_0x4e7c01(0x104)](_0x2e55ce){const _0x155a5a=a0_0x4e7c01;let _0x141059=_0x2e55ce&&_0x2e55ce[_0x155a5a(0x196)]?_0x2e55ce[_0x155a5a(0x196)]:null;return _0x141059?_0x141059[_0x155a5a(0x118)](_0x2e9c98=>_0x155a5a(0x1e2)!=_0x2e9c98[_0x155a5a(0x1fe)])['map'](_0x314814=>{const _0x131010=_0x155a5a;let {name:_0x540562,label:_0x50a64f,style:_0x43d0cd,type:_0x1f252a=_0x131010(0x202),action:_0xa7b3b,logic:_0x5242a8}=_0x314814;ValueUtil[_0x131010(0x166)](_0x50a64f)&&(_0x50a64f=_0x540562),ValueUtil[_0x131010(0x166)](_0x43d0cd)&&(_0x43d0cd=_0x540562),ValueUtil[_0x131010(0x166)](_0xa7b3b)&&(_0xa7b3b=_0x540562);let _0x3a7f52=MetaUiUtil[_0x131010(0x1f4)](TermsUtil[_0x131010(0x214)](_0x50a64f),_0x43d0cd);return _0x3a7f52[_0x131010(0x134)]=MetaUiUtil[_0x131010(0x117)](_0x2e55ce,_0x1f252a,_0xa7b3b,_0x5242a8),_0x3a7f52;}):[];}static[a0_0x4e7c01(0x1f4)](_0x599e57,_0x322498){const _0x5e182=a0_0x4e7c01;let _0xc28dd0=CommonButtonStyles[_0x322498]||{'icon':_0x322498,'emphasis':{'raised':!0x0,'outlined':!0x1,'dense':!0x1,'danger':!0x1}},_0x225545='<mwc-button\x20label=\x22'+_0x599e57+_0x5e182(0x1c7)+(_0xc28dd0[_0x5e182(0x1f2)]?_0xc28dd0[_0x5e182(0x1f2)]:'')+_0x5e182(0x110)+(_0xc28dd0[_0x5e182(0x1c5)][_0x5e182(0x150)]?_0x5e182(0x150):'')+_0x5e182(0x18a)+(_0xc28dd0['emphasis']['outlined']?'outlined':'')+_0x5e182(0x18a)+(_0xc28dd0[_0x5e182(0x1c5)][_0x5e182(0x1e1)]?_0x5e182(0x1e1):'')+'\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xc28dd0[_0x5e182(0x1c5)][_0x5e182(0x155)]?_0x5e182(0x155):'')+_0x5e182(0x151);return UiUtil[_0x5e182(0x19d)](_0x225545);}static['getButtonActionHandler'](_0x216cfc,_0x19e704,_0x3eb753,_0x4a2718){const _0x46edc0=a0_0x4e7c01;if(_0x46edc0(0x202)==_0x19e704){if(_0x216cfc[_0x3eb753])return _0x216cfc[_0x3eb753][_0x46edc0(0x153)](_0x216cfc);}else{if(_0x46edc0(0x163)==_0x19e704)return()=>MetaUiUtil[_0x46edc0(0xf2)](_0x216cfc,_0x4a2718);}return()=>{const _0x2b8819=_0x46edc0;UiUtil[_0x2b8819(0x1fd)](_0x2b8819(0x112),_0x2b8819(0x18e),_0x2b8819(0x144),_0x2b8819(0x1b8));};}static async[a0_0x4e7c01(0x212)](_0x57d6a1,_0x2cba9c,_0x366d3b){const _0xeb5bf0=a0_0x4e7c01;let _0xde2672=ValueUtil['getParams'](_0x2cba9c,_0xeb5bf0(0x217)),_0x20ec43=ValueUtil[_0xeb5bf0(0x157)](_0xde2672,_0xeb5bf0(0x161));if(_0xeb5bf0(0x122)===_0x20ec43)_0xde2672[_0xeb5bf0(0x1bc)]=_0xeb5bf0(0xfa),_0xde2672[_0xeb5bf0(0x127)]='pages/meta-form-element.js',_0xde2672[_0xeb5bf0(0x1c0)]='id',await MetaUiUtil[_0xeb5bf0(0x1d4)](_0x57d6a1,_0xde2672,_0x366d3b);else{if(_0xeb5bf0(0x11f)===_0x20ec43)MetaUiUtil[_0xeb5bf0(0x1e9)](_0x57d6a1,_0xde2672,_0x366d3b);else{if(_0xeb5bf0(0x1d5)===_0x20ec43){let _0x3aca17;_0xde2672['param_field']?(_0x3aca17={},Object[_0xeb5bf0(0x105)](_0x366d3b)[_0xeb5bf0(0x118)](_0x572abf=>Object[_0xeb5bf0(0x105)](_0xde2672[_0xeb5bf0(0x219)])[_0xeb5bf0(0x189)](_0x572abf))[_0xeb5bf0(0x11e)](_0x20c906=>{const _0x152ec5=_0xeb5bf0;Object['keys'](_0xde2672[_0x152ec5(0x219)])[_0x152ec5(0x189)](_0x20c906)&&(_0x152ec5(0x12c)==typeof _0x366d3b[_0x20c906]?_0x3aca17[_0xde2672['param_field'][_0x20c906]]=_0x366d3b[_0x20c906]:_0x3aca17[_0xde2672[_0x152ec5(0x219)][_0x20c906]]={'id':_0x366d3b[_0x20c906]['id']});})):_0x3aca17=_0x366d3b,UiUtil[_0xeb5bf0(0x11a)](_0xde2672[_0xeb5bf0(0x1af)],[_0x3aca17]);}else'popup'===_0x20ec43?await MetaUiUtil['commonButtonOpenPopup'](_0x57d6a1,_0xde2672,_0x366d3b):'scenario'===_0x20ec43?await MetaUiUtil[_0xeb5bf0(0x12f)](_0x57d6a1,_0xde2672,_0x366d3b):_0xeb5bf0(0x18d)===_0x20ec43&&await MetaUiUtil[_0xeb5bf0(0x1ce)](_0x57d6a1,_0xde2672,_0x366d3b);}}}static async['customButtonHandler'](_0x3f5b2d,_0x7280e2){const _0x4fe81f=a0_0x4e7c01;if(ValueUtil[_0x4fe81f(0x166)](_0x7280e2))return;let _0xa986d8=_0x3f5b2d[_0x4fe81f(0x18b)],_0x2c432a=_0x3f5b2d[_0x4fe81f(0x15f)],_0x37ff3b=ValueUtil[_0x4fe81f(0x157)](_0x7280e2,'type'),_0x308f4e=ValueUtil[_0x4fe81f(0x157)](_0x7280e2,_0x4fe81f(0x169)),_0x4d7799=_0x308f4e[_0x4fe81f(0x118)](_0x23e407=>_0x23e407[_0x4fe81f(0xf5)](_0x4fe81f(0x18b)));if(ValueUtil[_0x4fe81f(0x170)](_0x4d7799)){if(!_0xa986d8)return void UiUtil[_0x4fe81f(0x1fd)]('title.info',_0x4fe81f(0x15c),'info',_0x4fe81f(0x1b8));if(0x0==(_0xa986d8[_0x4fe81f(0x174)]?_0xa986d8[_0x4fe81f(0x174)]['records']:[])[_0x4fe81f(0x1ca)])return void UiUtil['showAlertPopup'](_0x4fe81f(0x1bf),_0x4fe81f(0x10a),_0x4fe81f(0x144),_0x4fe81f(0x1b8));if(_0x308f4e[_0x4fe81f(0x189)](_0x4fe81f(0x1d0))||_0x308f4e[_0x4fe81f(0x189)](_0x4fe81f(0x1d3))){let _0x1c0d88=_0xa986d8[_0x4fe81f(0x204)];if(ValueUtil[_0x4fe81f(0x166)](_0x1c0d88))return void UiUtil[_0x4fe81f(0x1fd)](_0x4fe81f(0x1a6),_0x4fe81f(0x119),_0x4fe81f(0x144),_0x4fe81f(0x1b8));if(_0x308f4e['includes'](_0x4fe81f(0x1d0))&&_0x1c0d88[_0x4fe81f(0x1ca)]>0x1)return void UiUtil[_0x4fe81f(0x1fd)](_0x4fe81f(0x1bf),'text.please_select_only_one',_0x4fe81f(0x144),'confirm');}}let _0x5dbd72={};if(_0x308f4e[_0x4fe81f(0x189)](_0x4fe81f(0x118))){if(!_0x2c432a)return void UiUtil[_0x4fe81f(0x1fd)]('title.info',_0x4fe81f(0x14b),_0x4fe81f(0x144),_0x4fe81f(0x1b8));let _0x1f797e=_0x2c432a?await _0x2c432a[_0x4fe81f(0x11d)]():[];_0x5dbd72[_0x4fe81f(0x118)]=_0x1f797e;}if(_0x308f4e[_0x4fe81f(0x189)](_0x4fe81f(0x1bb)))_0x5dbd72['grist']=_0xa986d8['data'][_0x4fe81f(0x182)];else{if(_0x308f4e['includes'](_0x4fe81f(0x1d0)))_0x5dbd72[_0x4fe81f(0x18b)]=_0xa986d8['selected'][0x0];else{if(_0x308f4e['includes'](_0x4fe81f(0x1d3)))_0x5dbd72[_0x4fe81f(0x18b)]=_0xa986d8[_0x4fe81f(0x204)];else{if(_0x308f4e['includes'](_0x4fe81f(0x132))&&(_0x5dbd72['grist']=ServiceUtil[_0x4fe81f(0x13b)](_0xa986d8),!_0x5dbd72[_0x4fe81f(0x18b)]))return;}}}if(_0x4fe81f(0x1d5)===_0x37ff3b){let _0x512943,_0xed8a69=Array[_0x4fe81f(0x1f1)](_0x5dbd72[_0x4fe81f(0x18b)])?_0x5dbd72[_0x4fe81f(0x18b)]:[_0x5dbd72[_0x4fe81f(0x18b)]];_0x512943=_0x7280e2['param_field']?_0xed8a69['map'](_0x3b71b3=>{const _0x377ff1=_0x4fe81f;let _0x3f2bc8={};return Object[_0x377ff1(0x105)](_0x3b71b3)[_0x377ff1(0x118)](_0x4303a7=>Object[_0x377ff1(0x105)](_0x7280e2['param_field'])[_0x377ff1(0x189)](_0x4303a7))['map'](_0x14ffbf=>{const _0x51573c=_0x377ff1;Object[_0x51573c(0x105)](_0x7280e2[_0x51573c(0x219)])[_0x51573c(0x189)](_0x14ffbf)&&(_0x51573c(0x12c)==typeof _0x3b71b3[_0x14ffbf]?_0x3f2bc8[_0x7280e2[_0x51573c(0x219)][_0x14ffbf]]=_0x3b71b3[_0x14ffbf]:_0x3f2bc8[_0x7280e2[_0x51573c(0x219)][_0x14ffbf]]={'id':_0x3b71b3[_0x14ffbf]['id']});}),_0x3f2bc8;}):_0xed8a69,UiUtil[_0x4fe81f(0x11a)](_0x7280e2[_0x4fe81f(0x1af)],_0x512943);}else{if(_0x4fe81f(0x20a)===_0x37ff3b){let _0x346474={..._0x5dbd72[_0x4fe81f(0x18b)]?_0x5dbd72[_0x4fe81f(0x18b)]:{},..._0x5dbd72[_0x4fe81f(0x118)]?_0x5dbd72[_0x4fe81f(0x118)]:{}};await MetaUiUtil['commonButtonOpenPopup'](_0x3f5b2d,_0x7280e2,_0x346474);}else _0x4fe81f(0x209)===_0x37ff3b&&await MetaUiUtil[_0x4fe81f(0x12f)](_0x3f5b2d,_0x7280e2,_0x5dbd72);}}static[a0_0x4e7c01(0x1e9)](_0x2cb590,_0xf83521,_0x5872d3){const _0x31bae1=a0_0x4e7c01;let _0x3d9d44=_0xf83521[_0x31bae1(0x164)],_0x1b59c2=_0x2cb590['tagName'][_0x31bae1(0x1b3)](_0x31bae1(0x1d6))>0x0?_0x2cb590[_0x31bae1(0x14a)]['querySelector'](_0x31bae1(0x1dd)):_0x2cb590;Object[_0x31bae1(0x105)](_0x3d9d44)[_0x31bae1(0x187)](_0x4826f3=>{const _0x500b65=_0x31bae1;let _0x8dc594=_0x1b59c2[_0x500b65(0x14a)]['querySelector']('#'+_0x4826f3);_0x5872d3['id']&&_0x8dc594[_0x500b65(0x1b7)](_0x5872d3['id']);let _0x305c8f=_0x3d9d44[_0x4826f3];Object[_0x500b65(0x105)](_0x305c8f)[_0x500b65(0x187)](_0x2fb1ee=>{let _0x23ba94=_0x305c8f[_0x2fb1ee],_0x189f5a='*'===_0x23ba94?_0x5872d3:_0x5872d3[_0x23ba94];_0x8dc594[_0x2fb1ee]=_0x189f5a;});});}static async[a0_0x4e7c01(0x1d4)](_0x2434c2,_0x418772,_0x381eeb){const _0x5291a6=a0_0x4e7c01;let _0x2877b7=TermsUtil[_0x5291a6(0x19f)](_0x418772[_0x5291a6(0xff)]);ValueUtil[_0x5291a6(0x170)](_0x418772['title_detail'])&&(_0x2877b7=_0x2877b7+'('+ValueUtil[_0x5291a6(0x157)](_0x381eeb,..._0x418772[_0x5291a6(0x138)][_0x5291a6(0x1eb)]('.'))+')');let _0x51a5f3=_0x418772['after']&&_0x5291a6(0x12c)==typeof _0x418772[_0x5291a6(0x140)]&&_0x5291a6(0x19a)===_0x418772[_0x5291a6(0x140)]&&_0x2434c2&&_0x2434c2[_0x5291a6(0x19a)]?_0x2434c2['fetch'][_0x5291a6(0x153)](_0x2434c2):void 0x0;UiUtil[_0x5291a6(0x1ab)](_0x2877b7,_0x418772,_0x381eeb,_0x51a5f3);}static async[a0_0x4e7c01(0x12f)](_0x250aa4,_0x9d18e0,_0x58613d){const _0x3ed559=a0_0x4e7c01;let _0xddc7c7=await ServiceUtil['callScenario'](_0x3ed559(0x16a),_0x9d18e0['name'],_0x58613d);if(!_0xddc7c7[_0x3ed559(0x171)]&&!ValueUtil['isEmpty'](_0x9d18e0[_0x3ed559(0x140)])&&_0x9d18e0['after']){if(_0x3ed559(0x19a)!==_0x9d18e0[_0x3ed559(0x140)]){if(_0x3ed559(0x1aa)==typeof _0x9d18e0[_0x3ed559(0x140)]){let _0x59bbbe=_0x9d18e0[_0x3ed559(0x140)],_0x181065=ValueUtil[_0x3ed559(0x157)](_0xddc7c7['data'][_0x3ed559(0x179)]['data'],..._0x59bbbe['result_name'][_0x3ed559(0x1eb)]('.'));if(0x0==Array[_0x3ed559(0x1f1)](_0x181065)&&(_0x181065=[_0x181065]),_0x3ed559(0x122)===_0x59bbbe[_0x3ed559(0x161)])_0x59bbbe[_0x3ed559(0x1bc)]=_0x3ed559(0xfa),_0x59bbbe[_0x3ed559(0x127)]='pages/meta-form-element.js',_0x59bbbe[_0x3ed559(0x1c0)]='id',_0x181065=_0x181065[0x0],await MetaUiUtil[_0x3ed559(0x1d4)](_0x250aa4,_0x59bbbe,_0x181065);else{if('page'===_0x59bbbe[_0x3ed559(0x161)]){let _0x44f9cc,_0x89e09=_0x181065;_0x44f9cc=_0x59bbbe[_0x3ed559(0x219)]?_0x89e09[_0x3ed559(0x11e)](_0x2278c9=>{const _0x18ac6d=_0x3ed559;let _0x4540a7={};return Object['keys'](_0x2278c9)[_0x18ac6d(0x118)](_0x3717ed=>Object['keys'](_0x59bbbe[_0x18ac6d(0x219)])['includes'](_0x3717ed))[_0x18ac6d(0x11e)](_0x50ab14=>{const _0x1c0a44=_0x18ac6d;Object[_0x1c0a44(0x105)](_0x59bbbe[_0x1c0a44(0x219)])[_0x1c0a44(0x189)](_0x50ab14)&&(_0x1c0a44(0x12c)==typeof _0x2278c9[_0x50ab14]?_0x4540a7[_0x59bbbe[_0x1c0a44(0x219)][_0x50ab14]]=_0x2278c9[_0x50ab14]:_0x4540a7[_0x59bbbe[_0x1c0a44(0x219)][_0x50ab14]]={'id':_0x2278c9[_0x50ab14]['id']});}),_0x4540a7;}):_0x89e09,UiUtil['pageNavigate'](_0x59bbbe[_0x3ed559(0x1af)],_0x44f9cc);}else _0x3ed559(0x11f)===_0x59bbbe[_0x3ed559(0x161)]?(_0x181065=_0x181065[0x0],MetaUiUtil[_0x3ed559(0x1e9)](_0x250aa4,_0x59bbbe,_0x181065)):_0x3ed559(0x20a)===_0x59bbbe[_0x3ed559(0x161)]?(_0x181065=_0x181065[0x0],await MetaUiUtil[_0x3ed559(0x1d4)](_0x250aa4,_0x59bbbe,_0x181065)):_0x3ed559(0x18d)===_0x59bbbe[_0x3ed559(0x161)]&&(_0x181065=_0x181065[0x0],await MetaUiUtil[_0x3ed559(0x1ce)](_0x250aa4,_0x59bbbe,_0x181065));}}}else _0x250aa4[_0x3ed559(0x19a)]();}}static async['gristButtonValueReference'](_0xeef3b6,_0x1b7465,_0x3ae47c){const _0x212245=a0_0x4e7c01;for(let _0x30e502=0x0;_0x30e502<_0x1b7465[_0x212245(0x135)]['length'];_0x30e502++){let _0xd6cb92=_0x1b7465['relation'][_0x30e502];!0x0===ValueUtil[_0x212245(0x201)](_0xd6cb92,_0x3ae47c,Object[_0x212245(0x105)](_0xd6cb92)[_0x212245(0x118)](_0x5d1c71=>_0x212245(0x217)!=_0x5d1c71))&&await MetaUiUtil['gristButtonHandler'](_0xeef3b6,_0xd6cb92,_0x3ae47c);}}static[a0_0x4e7c01(0x1be)](_0x17506a,_0x5a2a2d){return{'type':_0x17506a,'name':_0x5a2a2d,'sortable':!0x1,'hidden':!0x0};}static[a0_0x4e7c01(0x215)](_0x2a52c8,_0x1127cd,_0x395666,_0x1b2819,_0x490229,_0x3dcc3f){const _0xb2aa2a=a0_0x4e7c01;let _0x2ded5b=TermsUtil[_0xb2aa2a(0x1b6)](_0x1127cd);return{'type':_0x2a52c8,'name':_0x1127cd,'header':_0x2ded5b,'record':{'align':_0x395666,'editable':_0x1b2819},'sortable':_0x490229,'width':_0x3dcc3f,'imex':{'width':Math['floor'](_0x3dcc3f/0x6),'header':_0x2ded5b,'type':_0x2a52c8,'key':_0x1127cd}};}static[a0_0x4e7c01(0x1f6)](_0x200585,_0x21593e,_0x2b02bb,_0x13030f,_0x29d68c,_0x370ad5,_0x5677af){const _0x4cccf1=a0_0x4e7c01;let _0x385994=TermsUtil[_0x4cccf1(0x1b6)](_0x2b02bb);return{'type':_0x200585,'name':_0x21593e,'header':_0x385994,'record':{'align':_0x13030f,'editable':_0x29d68c},'sortable':_0x370ad5,'width':_0x5677af,'imex':{'width':Math[_0x4cccf1(0x198)](_0x5677af/0x6),'header':_0x385994,'type':_0x200585,'key':_0x21593e}};}static['getGristColumnConfig3'](_0x639394,_0x44d938,_0x360f28,_0x25ba04,_0x1f07fd,_0x657794,_0x3d863d,_0x37fe55){const _0x27c77b=a0_0x4e7c01;let _0x2c7383=TermsUtil[_0x27c77b(0x1b6)](_0x360f28);return{'type':_0x639394,'name':_0x44d938,'header':_0x2c7383,'record':{'align':_0x25ba04,'editable':_0x1f07fd,'mandatory':_0x3d863d},'sortable':_0x657794,'width':_0x37fe55,'imex':{'width':Math[_0x27c77b(0x198)](_0x37fe55/0x6),'header':_0x2c7383,'type':_0x639394,'key':_0x44d938}};}static[a0_0x4e7c01(0x131)](_0x19becb,_0x59beb4,_0x5be31e,_0x2a1edf,_0x2368e5,_0x5a333d,_0x56e6ef){const _0x3ac956=a0_0x4e7c01;let _0x2a79b2=TermsUtil[_0x3ac956(0x1b6)](_0x59beb4);return{'type':_0x3ac956(0x17f),'name':_0x19becb,'header':_0x2a79b2,'record':{'align':_0x5be31e,'editable':!0x0,'mandatory':_0x5a333d,'options':_0x56e6ef},'sortable':_0x2a1edf,'width':_0x2368e5,'imex':{'width':Math[_0x3ac956(0x198)](_0x2368e5/0x6),'header':_0x2a79b2,'type':_0x3ac956(0x12c),'key':_0x19becb}};}static async['getGristCodeSelectorColumnConfig'](_0x4efe09,_0x137adf,_0x6a5793,_0x465955,_0x499dfc,_0x3cb4bc,_0x5e4615){const _0x388221=a0_0x4e7c01;let _0x137509=await ServiceUtil[_0x388221(0x14c)](_0x5e4615);return MetaUiUtil[_0x388221(0x131)](_0x4efe09,_0x137adf,_0x6a5793,_0x465955,_0x499dfc,_0x3cb4bc,_0x137509);}static[a0_0x4e7c01(0x19c)](_0xc4ff08,_0xcda4c4,_0x491898,_0x457d2a,_0x146eba){const _0x4ca508=a0_0x4e7c01;let _0x43a4ae=TermsUtil[_0x4ca508(0x1b6)](_0x491898),_0x2ef11d={'name':_0xc4ff08,'type':_0xcda4c4,'label':_0x43a4ae,'operator':_0x457d2a,'imex':{'width':0x10,'header':_0x43a4ae,'type':_0xcda4c4,'key':_0xc4ff08}};return _0x146eba&&(_0x2ef11d['options']=_0x146eba),_0x2ef11d;}static async[a0_0x4e7c01(0x1cc)](_0x32e644,_0xee08a5,_0x2e4f20,_0x2faf4b,_0xe0cd7a){const _0x1fa643=a0_0x4e7c01;let _0x1f305d=await ServiceUtil[_0x1fa643(0x14c)](_0xe0cd7a);return MetaUiUtil[_0x1fa643(0x19c)](_0x32e644,_0xee08a5,_0x2e4f20,_0x2faf4b,_0x1f305d);}static[a0_0x4e7c01(0x13e)](){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_0x53816b=a0_0xfc94;(function(_0x3c6093,_0x36f9bf){const _0x156efd=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_0x4e7c01(0x18c)](){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_0x4e7c01(0x1fa)](){return[css`
|
|
29
29
|
#grist-personal{
|
|
30
30
|
padding:0px;
|
|
31
31
|
margin:0px;
|
|
@@ -48,7 +48,7 @@ const a0_0x53816b=a0_0xfc94;(function(_0x3c6093,_0x36f9bf){const _0x156efd=a0_0x
|
|
|
48
48
|
cursor: pointer;
|
|
49
49
|
margin-bottom:4px;
|
|
50
50
|
}
|
|
51
|
-
`];}static[
|
|
51
|
+
`];}static['getBasicGristStyles'](){const _0x4ab485=a0_0x4e7c01;return[ScrollbarStyles,CommonGristStyles,css`
|
|
52
52
|
:host {
|
|
53
53
|
display: flex;
|
|
54
54
|
flex-direction: column;
|
|
@@ -58,7 +58,7 @@ const a0_0x53816b=a0_0xfc94;(function(_0x3c6093,_0x36f9bf){const _0x156efd=a0_0x
|
|
|
58
58
|
ox-grist {
|
|
59
59
|
overflow-y: auto;
|
|
60
60
|
flex: 1;
|
|
61
|
-
}`,...MetaUiUtil[
|
|
61
|
+
}`,...MetaUiUtil[_0x4ab485(0x18c)](),...MetaUiUtil[_0x4ab485(0x13e)](),...MetaUiUtil[_0x4ab485(0x1fa)]()];}static[a0_0x4e7c01(0x15a)](){const _0x1516c9=a0_0x4e7c01;return[ScrollbarStyles,CommonGristStyles,css`
|
|
62
62
|
:host {
|
|
63
63
|
display: flex;
|
|
64
64
|
flex-direction: column;
|
|
@@ -105,7 +105,7 @@ const a0_0x53816b=a0_0xfc94;(function(_0x3c6093,_0x36f9bf){const _0x156efd=a0_0x
|
|
|
105
105
|
ox-grist {
|
|
106
106
|
overflow-y: auto;
|
|
107
107
|
flex: 1;
|
|
108
|
-
}`,...MetaUiUtil[
|
|
108
|
+
}`,...MetaUiUtil[_0x1516c9(0x18c)](),...MetaUiUtil['getCustomButtonContainerStyles'](),...MetaUiUtil['getGristPersonalizedStyles']()];}static[a0_0x4e7c01(0x12b)](){const _0x43c197=a0_0x4e7c01;return[ScrollbarStyles,CommonGristStyles,css`
|
|
109
109
|
:host {
|
|
110
110
|
display: flex;
|
|
111
111
|
flex-direction: column;
|
|
@@ -152,7 +152,7 @@ const a0_0x53816b=a0_0xfc94;(function(_0x3c6093,_0x36f9bf){const _0x156efd=a0_0x
|
|
|
152
152
|
ox-grist {
|
|
153
153
|
overflow-y: auto;
|
|
154
154
|
flex: 1;
|
|
155
|
-
}`,...MetaUiUtil[
|
|
155
|
+
}`,...MetaUiUtil['getGristEmphasizedStyles'](),...MetaUiUtil[_0x43c197(0x13e)](),...MetaUiUtil[_0x43c197(0x1fa)]()];}static[a0_0x4e7c01(0x186)](_0x2de010){const _0x272c30=a0_0x4e7c01;return'top-down'==_0x2de010?MetaUiUtil[_0x272c30(0x1a0)]():MetaUiUtil[_0x272c30(0x13d)]();}static[a0_0x4e7c01(0x1a0)](){return[CommonGristStyles,ScrollbarStyles,css`
|
|
156
156
|
:host {
|
|
157
157
|
display: flex;
|
|
158
158
|
flex-direction: column;
|
|
@@ -219,7 +219,7 @@ const a0_0x53816b=a0_0xfc94;(function(_0x3c6093,_0x36f9bf){const _0x156efd=a0_0x
|
|
|
219
219
|
margin-left:7px;
|
|
220
220
|
margin-top:7px;
|
|
221
221
|
}
|
|
222
|
-
`];}static[
|
|
222
|
+
`];}static['getMasterDetailLeftRightGristStyle'](){return[CommonGristStyles,ScrollbarStyles,css`
|
|
223
223
|
:host {
|
|
224
224
|
display: flex;
|
|
225
225
|
flex-direction: column;
|
|
@@ -286,7 +286,7 @@ const a0_0x53816b=a0_0xfc94;(function(_0x3c6093,_0x36f9bf){const _0x156efd=a0_0x
|
|
|
286
286
|
margin-left:7px;
|
|
287
287
|
margin-top:7px;
|
|
288
288
|
}
|
|
289
|
-
`];}static[
|
|
289
|
+
`];}static[a0_0x4e7c01(0x203)](){const _0x353f9f=a0_0x4e7c01;return[ScrollbarStyles,css`
|
|
290
290
|
:host {
|
|
291
291
|
display: flex;
|
|
292
292
|
flex: 1;
|
|
@@ -375,7 +375,7 @@ const a0_0x53816b=a0_0xfc94;(function(_0x3c6093,_0x36f9bf){const _0x156efd=a0_0x
|
|
|
375
375
|
border-bottom: var(--record-view-edit-border-bottom);
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
-
`,...MetaUiUtil[
|
|
378
|
+
`,...MetaUiUtil[_0x353f9f(0x13e)]()];}static[a0_0x4e7c01(0x1c2)](){return[css`
|
|
379
379
|
:host {
|
|
380
380
|
display: flex;
|
|
381
381
|
flex: 1;
|
|
@@ -430,164 +430,164 @@ const a0_0x53816b=a0_0xfc94;(function(_0x3c6093,_0x36f9bf){const _0x156efd=a0_0x
|
|
|
430
430
|
overflow-x: overlay;
|
|
431
431
|
background-color: var(--main-section-background-color);
|
|
432
432
|
}
|
|
433
|
-
`];}static['isButtonExist'](
|
|
433
|
+
`];}static['isButtonExist'](_0x38f13e,_0x68463b){const _0x2e9fd1=a0_0x4e7c01;return!!(_0x38f13e?_0x38f13e[_0x2e9fd1(0x109)](_0x522bc2=>_0x522bc2['name']==_0x68463b):null);}static[a0_0x4e7c01(0x124)](_0x2861bc,_0x554e85){const _0x4756b6=a0_0x4e7c01;return!!(_0x2861bc&&_0x2861bc['button']?_0x2861bc[_0x4756b6(0x152)][_0x4756b6(0x109)](_0x30a538=>_0x30a538['name']==_0x554e85):null);}static[a0_0x4e7c01(0x1de)](_0x58c675){const _0x47bd6b=a0_0x4e7c01;let _0x4b6eeb='';return _0x58c675[_0x47bd6b(0x118)](_0x43d4e2=>_0x47bd6b(0x1dc)!=_0x43d4e2[_0x47bd6b(0x161)])[_0x47bd6b(0x187)](_0x427a84=>{const _0x4fa16b=_0x47bd6b;_0x4b6eeb+='\x0a',_0x4b6eeb+='object'==_0x427a84['type']||_0x4fa16b(0x1b9)==_0x427a84[_0x4fa16b(0x161)]?_0x427a84[_0x4fa16b(0x1fe)]+'\x0a{'+MetaUiUtil[_0x4fa16b(0x15d)](_0x427a84)+'}':_0x4fa16b(0x14e)==_0x427a84['type']?_0x427a84[_0x4fa16b(0x1fe)]+_0x4fa16b(0x125):_0x427a84['name'];}),_0x4b6eeb;}static['getObjctColumnSelectFields'](_0x2f95b9){const _0xb9fbb2=a0_0x4e7c01;let _0x43ffb5='';return ValueUtil['isNotEmpty'](_0x2f95b9['record']['options'])&&ValueUtil['isNotEmpty'](_0x2f95b9[_0xb9fbb2(0x101)][_0xb9fbb2(0x20e)][_0xb9fbb2(0x17f)])&&_0x2f95b9['record'][_0xb9fbb2(0x20e)][_0xb9fbb2(0x17f)]['forEach'](_0x1b2045=>{const _0x36ef79=_0xb9fbb2;_0x1b2045[_0x36ef79(0x1fe)]&&''!==_0x1b2045['name']&&(_0x36ef79(0x1aa)===_0x1b2045[_0x36ef79(0x161)]||_0x36ef79(0x1b9)===_0x1b2045['type']?_0x43ffb5+='\x0a'+_0x1b2045[_0x36ef79(0x1fe)]+'\x20{\x20'+MetaUiUtil[_0x36ef79(0x15d)](_0x1b2045)+_0x36ef79(0x17a):_0x43ffb5+='\x0a'+_0x1b2045['name']);}),''==_0x43ffb5&&(_0x43ffb5+='\x0aid\x0aname\x0adescription'),_0x43ffb5;}static[a0_0x4e7c01(0x1f0)](_0x3b029d){const _0x3f706c=a0_0x4e7c01;let _0x41500f=_0x3b029d['gristConfigSet'];if(_0x41500f){let _0xfcc1db=_0x3b029d[_0x3f706c(0x178)]?_0x3b029d[_0x3f706c(0x178)]:_0x3f706c(0x1cd),_0xa45e27=_0x3b029d[_0x3f706c(0x1bd)];return html`
|
|
434
434
|
<ox-grist
|
|
435
|
-
id=${
|
|
436
|
-
.config=${
|
|
437
|
-
.mode=${
|
|
435
|
+
id=${_0xfcc1db}
|
|
436
|
+
.config=${_0x41500f}
|
|
437
|
+
.mode=${_0xa45e27}
|
|
438
438
|
auto-fetch
|
|
439
|
-
.fetchHandler=${
|
|
440
|
-
${MetaUiUtil[
|
|
439
|
+
.fetchHandler=${_0x3b029d[_0x3f706c(0x107)]['bind'](_0x3b029d)}>
|
|
440
|
+
${MetaUiUtil['getGridDetailHtml'](_0x3b029d)}
|
|
441
441
|
</ox-grist>
|
|
442
|
-
`;}return html``;}static[
|
|
442
|
+
`;}return html``;}static[a0_0x4e7c01(0x206)](_0x5704d9){const _0x3da332=a0_0x4e7c01;if(!_0x5704d9)return html``;if(!_0x5704d9['formConfigSet'])return html``;let _0xcbbe04=_0x5704d9[_0x3da332(0x1d2)],_0x225e7f=_0x5704d9['record']||{},_0x372879=_0xcbbe04['filter'](_0x498711=>0x0==_0x498711[_0x3da332(0x20f)]);return ValueUtil['isEmpty'](_0x5704d9[_0x3da332(0x1c8)])?MetaUiUtil[_0x3da332(0x1e8)](_0x5704d9,_0x372879,_0x225e7f):MetaUiUtil[_0x3da332(0x148)](_0x5704d9,_0x372879,_0x225e7f);}static['getBasicFormHtmlOnOption'](_0x4f5f0a,_0x51b6a8,_0xafc011){const _0x1d6692=a0_0x4e7c01;let _0x477f15=_0x4f5f0a['formRenderConfig'];return html`
|
|
443
443
|
<div class="root_container">
|
|
444
|
-
${
|
|
444
|
+
${_0x477f15[_0x1d6692(0x11e)](_0x32b188=>{const _0x5b878a=_0x1d6692;let _0x2a13a2=_0x51b6a8[_0x5b878a(0x118)](_0x1aed9a=>_0x32b188['column_list']['includes'](_0x1aed9a['name'])),_0x41f94f=_0x5b878a(0x1a2);for(let _0x53d9ca=0x0;_0x53d9ca<_0x32b188[_0x5b878a(0x143)];_0x53d9ca++)_0x41f94f+=_0x5b878a(0x188);return _0x41f94f+=';',html`
|
|
445
445
|
<h2>
|
|
446
|
-
<mwc-icon>list_alt</mwc-icon>${TermsUtil[
|
|
446
|
+
<mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x5b878a(0x19f)](_0x32b188[_0x5b878a(0x16f)])}
|
|
447
447
|
</h2>
|
|
448
|
-
<div id="content_container" class="content_container" style="${
|
|
449
|
-
${
|
|
450
|
-
<label ?editable=${
|
|
451
|
-
${
|
|
448
|
+
<div id="content_container" class="content_container" style="${_0x41f94f}">
|
|
449
|
+
${_0x2a13a2[_0x5b878a(0x11e)](_0x2bcac9=>{const _0x4c1b85=_0x5b878a;let {editable:_0x1a95ac=!0x1,mandatory:_0x230058=!0x1}=_0x2bcac9[_0x4c1b85(0x101)],_0x35d743=_0xafc011[_0x4c1b85(0x14d)]||{};return html`
|
|
450
|
+
<label ?editable=${_0x1a95ac}><span>${_0x230058?'*':''}${_0x2bcac9[_0x4c1b85(0x106)]}</span>
|
|
451
|
+
${_0x1a95ac?html`<mwc-icon>edit</mwc-icon>`:''}
|
|
452
452
|
</label>
|
|
453
453
|
<ox-grid-field
|
|
454
454
|
.rowIndex=${0x0}
|
|
455
|
-
.column=${
|
|
456
|
-
.record=${
|
|
457
|
-
.value=${
|
|
458
|
-
?dirty=${!!
|
|
455
|
+
.column=${_0x2bcac9}
|
|
456
|
+
.record=${_0xafc011}
|
|
457
|
+
.value=${_0xafc011[_0x2bcac9['name']]}
|
|
458
|
+
?dirty=${!!_0x35d743[_0x2bcac9[_0x4c1b85(0x1fe)]]}
|
|
459
459
|
></ox-grid-field>
|
|
460
460
|
`;})}
|
|
461
461
|
</div>
|
|
462
462
|
`;})}
|
|
463
463
|
</div>
|
|
464
|
-
${
|
|
465
|
-
`;}static['getBasicFormHtmlNoOption'](
|
|
466
|
-
<div id="container" class="container" style="${
|
|
467
|
-
${
|
|
468
|
-
<label ?editable=${
|
|
469
|
-
${
|
|
464
|
+
${_0x4f5f0a[_0x1d6692(0x1cf)]?html``:MetaUiUtil[_0x1d6692(0x1f5)](_0x4f5f0a)}
|
|
465
|
+
`;}static['getBasicFormHtmlNoOption'](_0x46066a,_0x3e246f,_0x3e6b84){const _0x3647b2=a0_0x4e7c01;let _0x40222b=_0x3647b2(0x15e);_0x46066a['column']&&0x0!=_0x46066a[_0x3647b2(0x143)]||(_0x46066a[_0x3647b2(0x143)]=0x1);for(let _0x56a2cf=0x0;_0x56a2cf<_0x46066a[_0x3647b2(0x143)];_0x56a2cf++)_0x40222b+=_0x3647b2(0x188);return _0x40222b+=';',html`
|
|
466
|
+
<div id="container" class="container" style="${_0x40222b}">
|
|
467
|
+
${_0x3e246f[_0x3647b2(0x11e)](_0x43820c=>{const _0x34b4c8=_0x3647b2;let {editable:_0x1c9a39=!0x1,mandatory:_0x1e758d=!0x1}=_0x43820c[_0x34b4c8(0x101)],_0x3ba4ee=_0x3e6b84[_0x34b4c8(0x14d)]||{};return html`
|
|
468
|
+
<label ?editable=${_0x1c9a39}><span>${_0x1e758d?'*':''}${_0x43820c['header_txt']}</span>
|
|
469
|
+
${_0x1c9a39?html`<mwc-icon>edit</mwc-icon>`:''}
|
|
470
470
|
</label>
|
|
471
471
|
<ox-grid-field
|
|
472
472
|
.rowIndex=${0x0}
|
|
473
|
-
.column=${
|
|
474
|
-
.record=${
|
|
475
|
-
.value=${
|
|
476
|
-
?dirty=${!!
|
|
473
|
+
.column=${_0x43820c}
|
|
474
|
+
.record=${_0x3e6b84}
|
|
475
|
+
.value=${_0x3e6b84[_0x43820c[_0x34b4c8(0x1fe)]]}
|
|
476
|
+
?dirty=${!!_0x3ba4ee[_0x43820c[_0x34b4c8(0x1fe)]]}
|
|
477
477
|
></ox-grid-field>
|
|
478
478
|
`;})}
|
|
479
479
|
</div>
|
|
480
|
-
${
|
|
481
|
-
`;}static[
|
|
480
|
+
${_0x46066a[_0x3647b2(0x1cf)]?html``:MetaUiUtil['getButtonContainer'](_0x46066a)}
|
|
481
|
+
`;}static[a0_0x4e7c01(0x154)](_0x4849fb){const _0x1e1a80=a0_0x4e7c01;if(!_0x4849fb)return html``;if(!_0x4849fb[_0x1e1a80(0x1a5)])return html``;let _0x9aa3c8=_0x4849fb['tabRenderConfig'];return _0x4849fb[_0x1e1a80(0x1a9)]||(_0x4849fb[_0x1e1a80(0x1a9)]=_0x9aa3c8[0x0]?.[_0x1e1a80(0x1fe)]||void 0x0),html`
|
|
482
482
|
<div class="tabs">
|
|
483
|
-
${
|
|
484
|
-
<div class="tab" ?activate="${
|
|
485
|
-
${
|
|
486
|
-
<span>${
|
|
483
|
+
${_0x9aa3c8[_0x1e1a80(0x11e)](_0xee57b4=>{const _0x117fa7=_0x1e1a80;let _0x4fc6c8=TermsUtil[_0x117fa7(0x1b6)](_0xee57b4[_0x117fa7(0x16f)]),_0x46c1ae=_0xee57b4[_0x117fa7(0x1fe)];return html`
|
|
484
|
+
<div class="tab" ?activate="${_0x46c1ae===_0x4849fb[_0x117fa7(0x1a9)]}" @click="${()=>_0x4849fb['currentTabKey']=_0x46c1ae}">
|
|
485
|
+
${_0xee57b4['icon']?html`<mwc-icon>${_0xee57b4[_0x117fa7(0x1f2)]}</mwc-icon>`:html``}
|
|
486
|
+
<span>${_0x4fc6c8}</span>
|
|
487
487
|
</div>
|
|
488
488
|
`;})}
|
|
489
489
|
</div>
|
|
490
490
|
<div class="content-container">
|
|
491
|
-
${
|
|
492
|
-
<div class='tab-contents' style="${
|
|
493
|
-
${MetaUiUtil[
|
|
491
|
+
${_0x9aa3c8['map'](_0x2fffa9=>{const _0x28318d=_0x1e1a80;let _0x36c9b8='display:none';return _0x2fffa9[_0x28318d(0x1fe)]==_0x4849fb[_0x28318d(0x1a9)]&&(_0x36c9b8=_0x28318d(0x160)),html`
|
|
492
|
+
<div class='tab-contents' style="${_0x36c9b8}">
|
|
493
|
+
${MetaUiUtil[_0x28318d(0x17b)](_0x4849fb,_0x2fffa9)}
|
|
494
494
|
</div>
|
|
495
495
|
`;})}
|
|
496
496
|
</div>
|
|
497
|
-
`;}static[
|
|
498
|
-
${0x0==
|
|
497
|
+
`;}static[a0_0x4e7c01(0x1ea)](_0x4526cc){const _0x296cf3=a0_0x4e7c01;let _0x486924=(_0x4526cc[_0x296cf3(0x16c)]||{})[_0x296cf3(0x21a)]||_0x296cf3(0x158),_0x27ab9f=(_0x4526cc[_0x296cf3(0x16c)]||{})[_0x296cf3(0x173)]||_0x296cf3(0x1c4),_0x5bccfc='left_right'==_0x486924?_0x296cf3(0x15e)+_0x27ab9f+';':_0x296cf3(0x13a)+_0x27ab9f+';',_0x41c33a=_0x4526cc[_0x296cf3(0x1cf)]?UiUtil[_0x296cf3(0x1d1)]():_0x4526cc[_0x296cf3(0x17e)];return html`
|
|
498
|
+
${0x0==_0x4526cc[_0x296cf3(0x200)]?html``:html`
|
|
499
499
|
<div slot="headroom">
|
|
500
500
|
<div id="filters">
|
|
501
501
|
<ox-filters-form-base
|
|
502
502
|
id='ox-filters-form'
|
|
503
|
-
.filters=${
|
|
504
|
-
@filters-change=${
|
|
503
|
+
.filters=${_0x4526cc[_0x296cf3(0x218)]||[]}
|
|
504
|
+
@filters-change=${_0x47d325=>{const _0x186395=_0x296cf3;_0x4526cc[_0x186395(0x18b)]?.[_0x186395(0x19a)]();}}
|
|
505
505
|
></ox-filters-form-base>
|
|
506
506
|
</div>
|
|
507
507
|
</div>
|
|
508
508
|
`}
|
|
509
|
-
<div id="container" class="container" style="${
|
|
509
|
+
<div id="container" class="container" style="${_0x5bccfc}">
|
|
510
510
|
<div class="container_detail">
|
|
511
|
-
${MetaApi[
|
|
512
|
-
${MetaUiUtil[
|
|
511
|
+
${MetaApi[_0x296cf3(0x1f0)](_0x4526cc)}
|
|
512
|
+
${MetaUiUtil['getButtonContainer'](_0x4526cc)}
|
|
513
513
|
</div>
|
|
514
514
|
<div class="container_detail">
|
|
515
|
-
${!0x0===
|
|
515
|
+
${!0x0===_0x4526cc[_0x296cf3(0x1b5)]?html`${!0x0===_0x4526cc[_0x296cf3(0x1f8)]?html`<meta-tab-element
|
|
516
516
|
id="detail"
|
|
517
|
-
route_name="${
|
|
518
|
-
.activityDataSet=${(
|
|
517
|
+
route_name="${_0x41c33a}"
|
|
518
|
+
.activityDataSet=${(_0x4526cc[_0x296cf3(0x108)]||{})[_0x296cf3(0x1c3)]}
|
|
519
519
|
is_readonly=true
|
|
520
520
|
is_activity=true
|
|
521
521
|
is_detail=true>
|
|
522
522
|
</meta-tab-element>`:html`<meta-tab-element
|
|
523
523
|
id="detail"
|
|
524
|
-
route_name="${
|
|
525
|
-
.activityDataSet=${(
|
|
524
|
+
route_name="${_0x41c33a}"
|
|
525
|
+
.activityDataSet=${(_0x4526cc['activityDataSet']||{})[_0x296cf3(0x1c3)]}
|
|
526
526
|
is_activity=true
|
|
527
527
|
is_detail=true>
|
|
528
|
-
</meta-tab-element>`}`:html`${!0x0===
|
|
528
|
+
</meta-tab-element>`}`:html`${!0x0===_0x4526cc[_0x296cf3(0x1f8)]?html`<meta-tab-element id="detail" route_name="${_0x41c33a}" is_readonly=true is_detail=true></meta-tab-element>`:html`<meta-tab-element id="detail" route_name="${_0x41c33a}" is_detail=true></meta-tab-element>`}`}
|
|
529
529
|
</div>
|
|
530
530
|
</div>
|
|
531
|
-
`;}static[
|
|
532
|
-
${0x0==
|
|
531
|
+
`;}static[a0_0x4e7c01(0x103)](_0x1c2738){const _0x580fb2=a0_0x4e7c01;let _0x51387d=_0x1c2738[_0x580fb2(0x16c)][_0x580fb2(0x21a)]||'top_bottom',_0x284509=_0x1c2738[_0x580fb2(0x16c)]['master_detail_size']||_0x580fb2(0x1c4),_0x5cff4e=_0x1c2738[_0x580fb2(0x16c)][_0x580fb2(0x159)],_0x155dc3=JSON[_0x580fb2(0x197)](_0x5cff4e||'{}'),_0x2a52ca=_0x580fb2(0x14f)==_0x51387d?_0x580fb2(0x15e)+_0x284509+';':_0x580fb2(0x13a)+_0x284509+';';return _0x1c2738[_0x580fb2(0x1e5)](_0x155dc3),html`
|
|
532
|
+
${0x0==_0x1c2738[_0x580fb2(0x200)]?html``:html`
|
|
533
533
|
<div slot="headroom">
|
|
534
534
|
<div id="filters">
|
|
535
535
|
<ox-filters-form-base
|
|
536
536
|
id='ox-filters-form'
|
|
537
|
-
.filters=${
|
|
538
|
-
@filters-change=${
|
|
537
|
+
.filters=${_0x1c2738['searchFields']||[]}
|
|
538
|
+
@filters-change=${_0x29ff23=>{const _0x3b3b8e=_0x580fb2;_0x1c2738[_0x3b3b8e(0x18b)]?.[_0x3b3b8e(0x19a)]();}}
|
|
539
539
|
></ox-filters-form-base>
|
|
540
540
|
</div>
|
|
541
541
|
</div>
|
|
542
542
|
`}
|
|
543
|
-
<div id="container" class="container" style="${
|
|
543
|
+
<div id="container" class="container" style="${_0x2a52ca}">
|
|
544
544
|
<div class="container_detail">
|
|
545
|
-
${MetaApi[
|
|
546
|
-
${MetaUiUtil[
|
|
545
|
+
${MetaApi[_0x580fb2(0x1f0)](_0x1c2738)}
|
|
546
|
+
${MetaUiUtil['getButtonContainer'](_0x1c2738)}
|
|
547
547
|
</div>
|
|
548
548
|
<div class="container_detail">
|
|
549
|
-
${''==
|
|
550
|
-
${
|
|
549
|
+
${''==_0x155dc3[_0x580fb2(0x1bc)]||''==_0x155dc3[_0x580fb2(0x1bc)]?html``:html`<h2 id='detail_title'><mwc-icon>list_alt</mwc-icon>${TermsUtil[_0x580fb2(0x19f)](''+_0x155dc3[_0x580fb2(0x16f)])}</h2>`}
|
|
550
|
+
${_0x1c2738[_0x580fb2(0x207)]}
|
|
551
551
|
</div>
|
|
552
552
|
</div>
|
|
553
|
-
`;}static[
|
|
553
|
+
`;}static['getBasicTabContent'](_0x292bf4,_0x1ed1fc){const _0x2706da=a0_0x4e7c01;if(_0x292bf4[_0x2706da(0x180)]||(_0x292bf4['tabElements']={}),Object[_0x2706da(0x105)](_0x292bf4[_0x2706da(0x180)])[_0x2706da(0x118)](_0xae6c08=>_0xae6c08==_0x1ed1fc[_0x2706da(0x1fe)])[_0x2706da(0x1ca)]>0x0)return _0x292bf4[_0x2706da(0x180)][_0x1ed1fc['name']];let _0x140483='<'+_0x1ed1fc[_0x2706da(0x1bc)]+'\x20id=\x27'+_0x1ed1fc['name']+'\x27\x20route_name=\x27'+_0x1ed1fc[_0x2706da(0x20b)]+_0x2706da(0x10d)+(!0x0===_0x292bf4[_0x2706da(0x1b5)]?_0x2706da(0x211):'')+'\x20'+(!0x0===_0x292bf4[_0x2706da(0x1f8)]?'is_readonly=true':'')+_0x2706da(0x100)+_0x1ed1fc[_0x2706da(0x1bc)]+'>',_0x546bfb=UiUtil[_0x2706da(0x19d)](_0x140483);return _0x546bfb['activityDataSet']=(_0x292bf4[_0x2706da(0x108)]||{})[_0x1ed1fc[_0x2706da(0x1fe)]],_0x292bf4[_0x2706da(0x130)]&&(_0x546bfb[_0x2706da(0x130)]=_0x292bf4[_0x2706da(0x130)]),_0x292bf4[_0x2706da(0x180)][_0x1ed1fc[_0x2706da(0x1fe)]]=_0x546bfb,_0x546bfb;}static['getGridDetailHtml'](_0x33af45){const _0xa3aee=a0_0x4e7c01;let _0x34c092=_0x33af45[_0xa3aee(0xf8)],_0x5706c5=_0x33af45[_0xa3aee(0x11c)],_0xdb19c5=_0x33af45['recordCreationCallback'],_0x2644bb=JSON[_0xa3aee(0x197)]((_0x33af45['etcConfig']||{})[_0xa3aee(0x194)]||_0xa3aee(0x1c1));return 0x0==_0x5706c5?html`
|
|
554
554
|
<div slot="headroom" style="flex-direction: column;padding: 0px;border-top: none;box-shadow: none;background: none;align-items: stretch;">
|
|
555
|
-
${this[
|
|
555
|
+
${this[_0xa3aee(0x12a)](_0x33af45)}
|
|
556
556
|
</div>
|
|
557
557
|
`:html`
|
|
558
558
|
<div slot="headroom" style="flex-direction: column;padding: 0px;border-top: none;box-shadow: none;background: none;align-items: stretch;">
|
|
559
559
|
<div slot="headroom">
|
|
560
560
|
<div id="filters"><ox-filters-form></ox-filters-form></div>
|
|
561
|
-
${
|
|
561
|
+
${_0x2644bb?html`
|
|
562
562
|
<div id="sorters">
|
|
563
|
-
<mwc-icon @click=${
|
|
563
|
+
<mwc-icon @click=${_0x403e7c=>{const _0x58f9ce=_0xa3aee,_0x37e9d1=_0x403e7c[_0x58f9ce(0x1ba)];_0x37e9d1['nextElementSibling'][_0x58f9ce(0x216)]({'right':0x0,'top':_0x37e9d1[_0x58f9ce(0x1e7)]+_0x37e9d1[_0x58f9ce(0x1ed)]});}}
|
|
564
564
|
>sort</mwc-icon>
|
|
565
565
|
<ox-popup id="sorter-control">
|
|
566
566
|
<ox-sorters-control></ox-sorters-control>
|
|
567
567
|
</ox-popup>
|
|
568
568
|
</div>
|
|
569
569
|
`:html``}
|
|
570
|
-
${MetaUiUtil[
|
|
570
|
+
${MetaUiUtil[_0xa3aee(0x113)](_0x33af45)}
|
|
571
571
|
<ox-record-creator
|
|
572
572
|
id="add"
|
|
573
|
-
?hidden="${!
|
|
574
|
-
.callback=${
|
|
573
|
+
?hidden="${!_0x34c092}"
|
|
574
|
+
.callback=${_0xdb19c5}>
|
|
575
575
|
<button>
|
|
576
576
|
<mwc-icon>add</mwc-icon>
|
|
577
577
|
</button>
|
|
578
578
|
</ox-record-creator>
|
|
579
579
|
</div>
|
|
580
|
-
${this[
|
|
580
|
+
${this[_0xa3aee(0x12a)](_0x33af45)}
|
|
581
581
|
</div>
|
|
582
|
-
`;}static[
|
|
582
|
+
`;}static[a0_0x4e7c01(0x12a)](_0x4825ee){const _0x2d919b=a0_0x4e7c01;return'GRID'!=_0x4825ee[_0x2d919b(0x1bd)]?html``:!0x0!==_0x4825ee[_0x2d919b(0x1b5)]?html`
|
|
583
583
|
<div id="grist-personal">
|
|
584
|
-
<mwc-icon @click=${
|
|
584
|
+
<mwc-icon @click=${_0x3605d4=>{const _0x3fa4c1=_0x2d919b;let _0x2e496c=MetaApi[_0x3fa4c1(0x185)](_0x3fa4c1(0x15b),_0x3fa4c1(0x15b));_0x2e496c[_0x3fa4c1(0xf4)]=_0x3605d4[_0x3fa4c1(0x1ba)]['parentElement'][_0x3fa4c1(0x136)][_0x3fa4c1(0x136)],_0x2e496c[_0x3fa4c1(0x199)]=_0x4825ee[_0x3fa4c1(0x199)],MetaApi['openPopupByElement'](TermsUtil[_0x3fa4c1(0x19f)](_0x3fa4c1(0x102)),_0x3fa4c1(0x149),_0x2e496c,!0x1);}}
|
|
585
585
|
>tune</mwc-icon>
|
|
586
586
|
</div>
|
|
587
|
-
`:html``;}static[
|
|
587
|
+
`:html``;}static[a0_0x4e7c01(0x113)](_0x447848){const _0x5248f2=a0_0x4e7c01;return ValueUtil[_0x5248f2(0x166)](_0x447848[_0x5248f2(0x1ef)])||0x1==_0x447848[_0x5248f2(0x1ef)][_0x5248f2(0x1ca)]?html``:html`
|
|
588
588
|
<div id="modes">
|
|
589
|
-
${
|
|
590
|
-
${
|
|
591
|
-
${
|
|
589
|
+
${_0x447848[_0x5248f2(0x1ef)][_0x5248f2(0x189)](_0x5248f2(0x192))?html`<mwc-icon @click="${()=>_0x447848[_0x5248f2(0x1bd)]=_0x5248f2(0x192)}" ?active="${_0x5248f2(0x192)==_0x447848[_0x5248f2(0x1bd)]}">grid_on</mwc-icon>`:''}
|
|
590
|
+
${_0x447848[_0x5248f2(0x1ef)][_0x5248f2(0x189)](_0x5248f2(0x177))?html`<mwc-icon @click="${()=>_0x447848['gridMode']='LIST'}" ?active="${_0x5248f2(0x177)==_0x447848[_0x5248f2(0x1bd)]}">format_list_bulleted</mwc-icon>`:''}
|
|
591
|
+
${_0x447848[_0x5248f2(0x1ef)][_0x5248f2(0x189)](_0x5248f2(0x1d8))?html`<mwc-icon @click="${()=>_0x447848[_0x5248f2(0x1bd)]=_0x5248f2(0x1d8)}" ?active="${_0x5248f2(0x1d8)==_0x447848[_0x5248f2(0x1bd)]}">apps</mwc-icon>`:''}
|
|
592
592
|
</div>
|
|
593
|
-
`;}static[
|
|
593
|
+
`;}static[a0_0x4e7c01(0x1f5)](_0xbc719f){const _0x40faaa=a0_0x4e7c01;return html`<div id="button-container" class="button-container">${MetaUiUtil[_0x40faaa(0x104)](_0xbc719f)}</div>`;}}
|