tocco-admin 3.16.49 → 3.16.51

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/changelog.md CHANGED
@@ -1,3 +1,10 @@
1
+ 3.16.51
2
+ - do not load any displays without paths
3
+
4
+ 3.16.50
5
+ - fix forms without id
6
+ - Relations pointing to session-only entities are not shown in list
7
+
1
8
  3.16.49
2
9
  - load displays when initializing form
3
10
  - improve action and settings bar
@@ -0,0 +1 @@
1
+ "use strict";(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[19592],{19592(e,t,n){n.r(t),n.d(t,{default:()=>Lt});var r,o,i,a=n(71468),c=n(64467),l=n(66590),s=n(10582),u=n(6730),d=n(6192),p=n(12199),y=n(57574),f=n(97699),m="entityModelBrowser/INIT",h="entityModelBrowser/SET_INIT",b="entityModelBrowser/SET_SEARCH_VALUE",x="entityModelBrowser/SET_SEARCH_LIST",v="entityModelBrowser/SET_SELECTED_ENTITY",w="entityModelBrowser/SET_LOCALES",j="entityModelBrowser/SET_ENTITY_MODEL_DATA",g="entityModelBrowser/CLEAR_ENTITY_MODEL_DATA",A="entityModelBrowser/FETCH_ENTITY_MODEL",O="entityModelBrowser/RESET_TABLE",T=function(e){return{type:v,payload:{selectedEntity:e}}},P=function(e){return{type:w,payload:{locales:e}}},D=function(e,t){return{type:j,payload:{entityModel:e,entityModelData:t}}},M=n(5544),k=n(4883),S=n(87046),E=n(44581),N=n(88208),_=n(144),L=n(38978),C=n(15115),z=n(7946),B=n(44989),R=n(33779),I=n(97481),J=n(72954),V=n(50075),q=n(57528),W=n(51510),F=n(47616),Y=n(57488),H=n(26166),Q=n(17819),G=W.Ay.div.withConfig({displayName:"Box"})(r||(r=(0,q.A)(["\n background-color: ",";\n position: relative;\n height: calc(100% - 43px);\n display: grid;\n grid-template-rows: auto 1fr;\n border-radius: 0 0 "," ",";\n overflow: clip;\n\n &:first-of-type {\n z-index: 2; /* higher than StyledTether to prevent cover on scroll */\n }\n"])),F.A.color("paper"),Y.t7.radii("large"),Y.t7.radii("large")),U=W.Ay.div.withConfig({displayName:"StyledSearchWrapper"})(o||(o=(0,q.A)(["\n padding: "," "," 0 ",";\n"])),H.A.space(-1.1),H.A.space(-.375),H.A.space(-1.1)),Z=W.Ay.div.withConfig({displayName:"StyledTableWrapper"})(i||(i=(0,q.A)(["\n width: 100%;\n height: 100%;\n overflow: auto;\n\n "," {\n overflow-x: hidden;\n }\n"])),Q.dm),K=n(56375),X=n(74848),$=function(e,t,n){var r;return{id:t,label:n?(r=n,e.formatMessage({id:r})):"",resizable:!0,sorting:{sortable:!1},dynamic:!0,readOnly:!0,alignment:"left",CellRenderer:function(e){var t=e.rowData,n=e.column;return(0,X.jsx)(K.Ay.Span,{breakWords:!1,children:t[n.id]})}}};const ee=function(e){var t=e.pathPrefix,n=e.searchList,r=e.selectedEntity,o=e.searchValue,i=e.setSearchValue,a=(0,S.tz)(),c=function(e){return a.formatMessage({id:e})},l=(0,E.Zp)(),s=(0,k.useRef)(null);V.A.useAutofocus(s);var u=function(e){return[$(e,"modelName","client.entity-model-browser.entityName"),$(e,"label","default.label")]}(a),d=function(e,t){var n=(e?Object.values(e).filter((function(e){return"SESSION_ONLY"!==e.metaData.entityType})):[]).map((function(e){return{__key:e.metaData.modelName,entityType:e.metaData.entityType,label:e.metaData.label.startsWith("##")?"":e.metaData.label,modelName:e.metaData.modelName}}));return t?n.filter((function(e){return function(e,t){var n=t.toLowerCase();return e.modelName.toLowerCase().includes(n)||e.label.toLowerCase().includes(n)}(e,t)})):n}(n,o);return(0,X.jsxs)(G,{children:[(0,X.jsx)(U,{ref:s,children:(0,X.jsx)(I.A,{value:o,minInputLength:2,onSearch:i,placeholder:c("client.entity-model-browser.searchField"),"aria-label":c("client.entity-model-browser.searchField")})}),(0,X.jsx)(Z,{children:(0,X.jsx)(J.A,{dataLoadingInProgress:!n,columns:u,data:d,selectionStyle:"none",scrollBehaviour:"inline",clickable:!0,onRowClick:function(e){l("/".concat(t,"/").concat(e,"/model"))},lastOpened:r})})]})};var te={setSearchValue:function(e){return{type:b,payload:{searchValue:e}}}};const ne=(0,a.Ng)((function(e){return{pathPrefix:e.input.pathPrefix,searchValue:e.entityModelBrowser.searchValue,searchList:e.entityModelBrowser.searchList,selectedEntity:e.entityModelBrowser.selectedEntity}}),te)(ee);var re,oe,ie=n(60436),ae=n(64116),ce=n(3634),le=n(85431),se=W.Ay.div.withConfig({displayName:"StyledWrapper"})(re||(re=(0,q.A)(["\n display: flex;\n flex-direction: column;\n"]))),ue=W.Ay.span.withConfig({displayName:"StyledHeadline"})(oe||(oe=(0,q.A)(["\n ","\n"])),(0,le.A)({fontWeight:Y.t7.fontWeight("bold")}));const de=function(e){var t=e.documentation;return(0,X.jsx)("div",{children:Object.keys(t).map((function(e){return(0,X.jsxs)(se,{children:[(0,X.jsx)(ue,{children:e}),(0,X.jsx)(K.Ay.Span,{children:t[e]})]},e)}))})};var pe,ye,fe,me,he,be,xe,ve,we=n(71581),je=W.Ay.span.withConfig({displayName:"StyledIconsWrapper"})(pe||(pe=(0,q.A)(["\n display: flex;\n flex-direction: row-reverse;\n align-items: flex-end;\n"]))),ge=W.Ay.span.withConfig({displayName:"StyledIconWrapper"})(ye||(ye=(0,q.A)(["\n font-size: ",";\n"])),H.A.font(1)),Ae=(0,W.Ay)(we.N_).withConfig({displayName:"StyledLink"})(fe||(fe=(0,q.A)(["\n color: ",";\n ","\n"])),Y.t7.color("text"),(0,le.A)()),Oe=function(e){return"key"===e.rowType?me||(me=(0,X.jsx)(ge,{children:(0,X.jsx)(ae.A,{icon:"key"})})):null},Te=function(e){var t=e.rowType,n=e.typeDescription;return"header"===t?(0,X.jsx)(K.Ay.Span,{children:(0,X.jsx)(S.sA,{id:"client.entity-model-browser.entityType.".concat(n)})}):(0,X.jsx)(K.Ay.Span,{children:n})},Pe=function(e){var t,n=e.rowType,r=e.name,o=e.targetEntity,i=e.typeDescription,a=(0,E.zy)();return"header"===n?(0,X.jsx)(Ae,{to:"/e/".concat(r),target:"_blank",rel:"noreferrer",children:he||(he=(0,X.jsx)(ge,{children:(0,X.jsx)(ae.A,{icon:"external-link"})}))}):"relation"===n?(0,X.jsx)(Ae,{to:"../".concat(o,"/model"),state:{relations:[].concat((0,ie.A)((null===(t=a.state)||void 0===t?void 0:t.relations)||[]),[{name:r,typeDescription:i,targetEntity:o}])},children:be||(be=(0,X.jsx)(ge,{children:(0,X.jsx)(ae.A,{icon:"link-simple"})}))}):null},De=function(e){var t=e.name;return"header"===e.rowType?(0,X.jsx)(K.Ay.Span,{children:t}):(0,X.jsxs)(K.Ay.Span,{children:["└─ ",t]})},Me=function(e){var t=e.documentation;return(0,X.jsx)(je,{children:t&&(0,X.jsx)(ce.A,{content:(0,X.jsx)(de,{documentation:t}),children:xe||(xe=(0,X.jsx)(ge,{children:(0,X.jsx)(ae.A,{icon:"question-circle"})}))})})},ke=function(e){return!0===e.bool?ve||(ve=(0,X.jsx)(ge,{children:(0,X.jsx)(ae.A,{icon:"check"})})):null};function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){(0,c.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Ne=function(e){var t=e.locales,n=e.entityModelData,r=function(e,t){return[Ee(Ee({},$(e,"entityModelLink","")),{},{width:27,resizable:!1,CellRenderer:function(e){var t=e.rowData;return(0,X.jsx)(Pe,Ee({},t))}}),Ee(Ee({},$(e,"name","client.entity-model-browser.entityName")),{},{shrinkToContent:!0,CellRenderer:function(e){var t=e.rowData;return(0,X.jsx)(De,Ee({},t))}}),Ee(Ee({},$(e,"typeDescription","client.entity-model-browser.typeDescription")),{},{CellRenderer:function(e){var t=e.rowData;return(0,X.jsx)(Te,Ee({},t))}})].concat((0,ie.A)(t.map((function(t){return Ee(Ee({},$(e,"label_".concat(t),"")),{},{label:t})}))),[Ee(Ee({},$(e,"mandatory","client.entity-model-browser.mandatory")),{},{width:50,resizable:!1,alignment:"center",CellRenderer:function(e){var t=e.rowData;return(0,X.jsx)(ke,{bool:t.mandatory})}}),Ee(Ee({},$(e,"localized","client.entity-model-browser.localized")),{},{width:75,resizable:!1,alignment:"center",CellRenderer:function(e){var t=e.rowData;return(0,X.jsx)(ke,{bool:t.localized})}}),Ee(Ee({},$(e,"key","client.entity-model-browser.key")),{},{width:65,resizable:!1,alignment:"center",CellRenderer:function(e){var t=e.rowData;return(0,X.jsx)(Oe,Ee({},t))}}),$(e,"definingModule","client.entity-model-browser.moduleInfo"),Ee(Ee({},$(e,"docs","")),{},{width:27,resizable:!1,alignment:"right",CellRenderer:function(e){var t=e.rowData;return(0,X.jsx)(Me,Ee({},t))}})])}((0,S.tz)(),t);return(0,X.jsx)(J.A,{dataLoadingInProgress:!n,columns:r,data:n,selectionStyle:"none",scrollBehaviour:"inline",disableVirtualTable:!0})};const _e=(0,a.Ng)((function(e){return{locales:e.entityModelBrowser.locales,entityModelData:e.entityModelBrowser.entityModelData}}),{})(Ne);var Le=n(73615);const Ce=function(e){var t,n=e.pathPrefix,r=e.modelNames,o=(0,S.tz)(),i=(null===(t=(0,E.zy)().state)||void 0===t?void 0:t.relations)||[],a=function(e,t,n,r){var o=r.formatMessage({id:"client.entity-model-browser.title"});return[{display:o,title:o,path:e,type:null,clickable:!1}].concat((0,ie.A)(t.reduce((function(e,t,r){var i=e.breadcrumbs,a=e.prevPath,c="".concat(a,"/").concat(t),l={relations:n.slice(0,r)},s=n?n[r-1]:void 0,u=s?" (".concat(s.name," / ").concat(s.typeDescription,")"):"";return{prevPath:c,breadcrumbs:[].concat((0,ie.A)(i),[{display:"".concat(t).concat(u),title:"".concat(o," - ").concat(t),path:"".concat(c,"/model"),state:l,type:0===r?"table":"link-simple",clickable:!1}])}}),{breadcrumbs:[],prevPath:e}).breadcrumbs))}(n,r,i.length===r.length-1?i:[],o);return(0,X.jsx)(Le.A,{updateDocumentTitle:!0,breadcrumbsInfo:a,showToccoHome:!0})};const ze=(0,a.Ng)((function(e){return{pathPrefix:e.input.pathPrefix}}),{})(Ce);var Be,Re,Ie,Je=W.Ay.div.withConfig({displayName:"StyledPaneWrapper"})(Be||(Be=(0,q.A)(["\n display: flex;\n height: 100%;\n flex-direction: column;\n margin-bottom: ",";\n"])),Y.t7.space("outerPadding"));const Ve=function(e){var t=e.pathPrefix,n=e.initialize,r=e.initialized,o=(0,S.tz)(),i=(0,E.g)(),a=(0,E.zy)(),c=(0,k.useState)(!1),s=(0,M.A)(c,2),u=s[0],d=s[1];(0,k.useEffect)((function(){n(i.entityModel)}),[n,i.entityModel]);var p,y=R.A.extractParamsFromPath("/".concat(t,"{/:entityModel}*/model"),a.pathname),f=(null==y?void 0:y.entityModel)||[],m={id:"entity-model-export",label:(p="client.entity-model-browser.export",o.formatMessage({id:p})),icon:"file-export",actionType:"simple",runInBackgroundTask:!0,endpoint:"actions/entityModelExport",properties:{model:f.at(-1)}},h=(0,X.jsx)(l.A.Action,{definition:m,selection:{},disabled:0===f.length},m.id);return(0,X.jsxs)(N.A,{required:[r],children:[(0,X.jsx)(ze,{modelNames:f}),(0,X.jsx)(Je,{children:(0,X.jsxs)(_.A,{sidepanelPosition:"left",sidepanelCollapsed:u,setSidepanelCollapsed:d,scrollBehaviour:"inline",children:[Re||(Re=(0,X.jsxs)(L.A,{children:[(0,X.jsx)(C.A,{}),(0,X.jsx)(ne,{})]})),(0,X.jsxs)(z.A,{actionBar:!0,children:[(0,X.jsx)(B.E7,{children:h}),Ie||(Ie=(0,X.jsx)(B.kM,{children:(0,X.jsx)(_e,{})}))]})]})})]})};var qe={initialize:function(e){return{type:m,payload:{entityModel:e}}}};const We=(0,a.Ng)((function(e){return{pathPrefix:e.input.pathPrefix,initialized:e.entityModelBrowser.initialized}}),qe)(Ve);var Fe,Ye=function(){return Fe||(Fe=(0,X.jsx)(f.A.ErrorBoundary,{children:(0,X.jsxs)(y.BV,{children:[(0,X.jsx)(y.qh,{path:"/",element:(0,X.jsx)(We,{})}),(0,X.jsx)(y.qh,{path:"model",element:(0,X.jsx)(We,{})}),(0,X.jsx)(y.qh,{path:":entityModel/*",element:(0,X.jsx)(Ye,{})})]})}))};const He=Ye;var Qe=n(98671);function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){(0,c.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ze={initialized:!1,searchValue:"",searchList:void 0,selectedEntity:null,locales:void 0,entityModelData:[],loadedModels:{}},Ke=(0,c.A)((0,c.A)((0,c.A)((0,c.A)((0,c.A)((0,c.A)((0,c.A)({},h,Qe.A.singleTransferReducer("initialized")),b,Qe.A.singleTransferReducer("searchValue")),x,Qe.A.singleTransferReducer("searchList")),v,Qe.A.singleTransferReducer("selectedEntity")),w,Qe.A.singleTransferReducer("locales")),j,(function(e,t){var n=t.payload,r=n.entityModel,o=n.entityModelData;return Ue(Ue({},e),{},{entityModelData:o,loadedModels:Ue(Ue({},e.loadedModels),{},(0,c.A)({},r,o))})})),g,(function(e){return Ue(Ue({},e),{},{entityModelData:[]})}));const Xe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ze,t=arguments.length>1?arguments[1]:void 0,n=Ke[t.type];return n?n(e,t):e};var $e=n(54756),et=n.n($e),tt=n(69917),nt=n(93750);function rt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(n),!0).forEach((function(t){(0,c.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var it=function(e,t){return"key"===e.rowType?-1:"key"===t.rowType?1:e.name<t.name?-1:e.name>t.name?1:0},at=function(e,t){return e.name<t.name?-1:e.name>t.name?1:0},ct=function(e,t){var n=Object.keys(e),r=e[n[0]],o=function(e){return n.reduce((function(t,n){return ot(ot({},t),{},(0,c.A)({},"label_".concat(n),e(n)))}),{})},i=ot(ot({__key:"header",rowType:"header",documentation:r.documentation,name:r.name},o((function(t){return e[t].label}))),{},{typeDescription:r.entityType,mandatory:null,localized:null,definingModule:r.definingModule}),a=r.keyField,l=r.fields.map((function(t){return ot(ot({__key:t.fieldName,rowType:t.fieldName===a?"key":"",documentation:t.documentation,name:t.fieldName},o((function(n){var r;return null===(r=e[n].fields.find((function(e){return e.fieldName===t.fieldName})))||void 0===r?void 0:r.label}))),{},{typeDescription:t.type,mandatory:t.validation.mandatory,localized:t.localized,definingModule:t.definingModule})})).sort(it),s=r.relations.filter((function(e){var n;return"SESSION_ONLY"!==(null==t||null===(n=t[e.targetEntity])||void 0===n?void 0:n.metaData.entityType)})).map((function(t){return ot(ot({__key:t.relationName,rowType:"relation",documentation:t.documentation,name:t.relationName},o((function(n){var r;return null===(r=e[n].relations.find((function(e){return e.relationName===t.relationName})))||void 0===r?void 0:r.label}))),{},{typeDescription:t.relationDisplay.cardinality,mandatory:"n:1"===t.relationDisplay.cardinality,localized:null,definingModule:t.definingModule,targetEntity:t.targetEntity})})).sort(at);return[i].concat(l).concat(s)};function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(n),!0).forEach((function(t){(0,c.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ut=et().mark(ht),dt=et().mark(bt),pt=et().mark(wt),yt=et().mark(jt),ft=et().mark(At),mt=function(e){return e.entityModelBrowser};function ht(){return et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,tt.Q7)([(0,tt.jP)(m,xt),(0,tt.p8)(v,vt),(0,tt.p8)(A,gt),(0,tt.p8)(O,At)]);case 1:case"end":return e.stop()}}),ut)}function bt(){var e,t,n;return et().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=1,(0,tt.Lt)(mt);case 1:if(e=r.sent,!e.locales){r.next=2;break}return r.abrupt("return");case 2:return r.next=3,(0,tt.T1)(nt.A.fetchAllEntities,"Interface_language",{paths:["unique_id"]},{method:"GET"});case 3:return t=r.sent,n=t.map((function(e){return e.paths.unique_id.value})),r.next=4,(0,tt.yJ)(P(n));case 4:case"end":return r.stop()}}),dt)}function xt(e){var t=e.payload.entityModel;return et().mark((function e(){return et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,tt.Q7)([(0,tt.T1)(bt),(0,tt.T1)(wt)]);case 1:if(!t){e.next=3;break}return e.next=2,(0,tt.yJ)(T(t));case 2:e.next=4;break;case 3:return e.next=4,(0,tt.yJ)(T(null));case 4:return e.next=5,(0,tt.yJ)({type:h,payload:{initialized:!0}});case 5:case"end":return e.stop()}}),e)}))()}function vt(e){var t=e.payload.selectedEntity;return et().mark((function e(){return et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=2;break}return e.next=1,(0,tt.yJ)({type:A,payload:{entityModel:t}});case 1:e.next=3;break;case 2:return e.next=3,(0,tt.yJ)({type:O});case 3:case"end":return e.stop()}}),e)}))()}function wt(){var e,t,n;return et().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=1,(0,tt.Lt)(mt);case 1:if(e=r.sent,!e.searchList){r.next=2;break}return r.abrupt("return");case 2:return r.next=3,(0,tt.T1)(nt.A.simpleRequest,"/entities");case 3:return t=r.sent,n=t.body.entities,r.next=4,(0,tt.yJ)({type:x,payload:{searchList:n}});case 4:r.next=6;break;case 5:return r.prev=5,r.catch(0),r.next=6,(0,tt.yJ)(d.A.toaster({type:"error",title:"client.actions.entitymodel.error.loadSearchList.header",body:"client.actions.entitymodel.error.loadSearchList.body"}));case 6:case"end":return r.stop()}}),pt,null,[[0,5]])}function jt(e,t){var n,r,o;return et().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n="/entities/".concat(e,"/model"),r={method:"GET",queryParams:{locale:t}},i.next=1,(0,tt.T1)(nt.A.simpleRequest,n,r);case 1:return o=i.sent,i.abrupt("return",o.body);case 2:case"end":return i.stop()}}),yt)}function gt(e){var t=e.payload.entityModel;return et().mark((function e(){var n,r,o,i,a,l;return et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,tt.Lt)(mt);case 1:if(n=e.sent,r=n.locales,o=n.loadedModels,i=n.searchList,!o[t]){e.next=3;break}return e.next=2,(0,tt.yJ)(D(t,o[t]));case 2:return e.abrupt("return");case 3:return e.prev=3,e.next=4,(0,tt.Q7)(r.reduce((function(e,n){return st(st({},e),{},(0,c.A)({},n,(0,tt.T1)(jt,t,n)))}),{}));case 4:return a=e.sent,e.next=5,(0,tt.T1)(ct,a,i);case 5:return l=e.sent,e.next=6,(0,tt.yJ)(D(t,l));case 6:e.next=9;break;case 7:return e.prev=7,e.catch(3),e.next=8,(0,tt.yJ)(d.A.toaster({type:"error",title:"client.actions.entitymodel.error.loadTableList.header",body:"client.actions.entitymodel.error.loadTableList.body"}));case 8:return e.next=9,(0,tt.yJ)(D(t,[]));case 9:case"end":return e.stop()}}),e,null,[[3,7]])}))()}function At(){return et().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(0,tt.yJ)({type:g});case 1:case"end":return e.stop()}}),ft)}const Ot={entityModelBrowser:Xe};var Tt,Pt=[ht],Dt="entity-model-browser",Mt=["emitAction"],kt=function(e,t,n,r){var o=Tt||(Tt=(0,X.jsx)(He,{})),i=s.A.createStore(Ot,Pt,t,Dt);return u.A.addToStore(i,(function(e){return e.input.emitAction})),d.A.addToStore(i,!1),p.A.addToStore(i,(function(e){return s.A.getEvents(Mt,e.input)})),l.A.addToStore(i,(function(){return{appComponent:l.A.actionFactory({})}})),s.A.createApp(Dt,o,i,{input:t,events:n,actions:[],publicPath:r,textResourceModules:["component","common",Dt]})};const St=function(e){return s.A.useApp({initApp:kt,props:e,packageName:Dt}).component};function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach((function(t){(0,c.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const _t=function(e){return(0,X.jsx)(St,Nt(Nt({},e),{},{pathPrefix:"em"}))};const Lt={container:(0,a.Ng)((function(e,t){return{}}),{})(_t)}}}]);