All Downloads are FREE. Search and download functionalities are using the official Maven repository.

assets.83.b7ae5f06cfb24e54fb3e.js Maven / Gradle / Ivy

There is a newer version: 1.6.2
Show newest version
"use strict";(self.webpackChunkopen_metadata=self.webpackChunkopen_metadata||[]).push([[83,7107],{27107:function(e,t,n){n.r(t),n.d(t,{ReactComponent:function(){return s}});var i,a,r=n(67294);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t3&&r.createElement(C.Z,{showIngestionButton:!0,handleIngestionClick:function(){return U(!0)},handleViewServiceClick:Ne,name:ie.serviceName,state:m.Y.ADD,suffix:(0,D.Yn)(t)})));(0,r.useEffect)((function(){Me("")}),[$,H]);var me=r.createElement("div",{className:"max-width-md w-9/10 service-form-container"},r.createElement(E.Z,{titleLinks:R}),r.createElement("div",{className:"m-t-md"},Q?r.createElement(w.Z,{activeIngestionStep:$,handleCancelClick:function(){return U(!1)},handleViewServiceClick:Ne,heading:""+(0,u.t)("label.add-workflow-ingestion",{workflow:(0,a.capitalize)(L.Hz.Metadata)}),ingestionAction:Z,ingestionProgress:x,isIngestionCreated:b,isIngestionDeployed:z,pipelineType:L.Hz.Metadata,serviceCategory:t,serviceData:c,setActiveIngestionStep:function(e){return X(e)},showDeployButton:Y,status:m.Y.ADD,onAddIngestionSave:T,onFocus:de,onIngestionDeploy:k}):ge));return r.createElement(I.Z,{firstPanel:{children:me,minWidth:700,flex:.7},hideSecondPanel:!(ee&&3===H||Q),pageTitle:(0,u.t)("label.add-entity",{entity:(0,u.t)("label.service")}),secondPanel:{children:r.createElement(p.Z,{activeField:ue,isWorkflow:Q,serviceName:ee,serviceType:(0,D.rP)(t),workflowType:L.Hz.Metadata}),className:"service-doc-panel",minWidth:60,overlay:{displayThreshold:200,header:(0,u.t)("label.setup-guide"),rotation:"counter-clockwise"}}})},ue=n(28517),Me=n(97354),Ne=n(99166),de=function(){var e=(0,c.$)().t,t=(0,s.UO)().serviceCategory,n=(0,i.CR)((0,r.useState)(),2),l=n[0],o=n[1],u=(0,i.CR)((0,r.useState)(0),2),M=u[0],g=u[1],m=(0,i.CR)((0,r.useState)(!1),2),L=m[0],A=m[1],y=(0,i.CR)((0,r.useState)(!1),2),S=y[0],I=y[1],p=(0,i.CR)((0,r.useState)(ue.g.CREATING),2),C=p[0],E=p[1],w=(0,i.CR)((0,r.useState)(""),2),f=w[0],h=w[1],T=(0,i.CR)((0,r.useState)(!1),2),x=T[0],b=T[1],z=(0,i.CR)((0,r.useState)([]),2),Z=z[0],O=z[1],Y=(0,i.CR)((0,r.useState)(!1),2),k=Y[0],R=Y[1],Q=function(t){return new Promise((function(n){A(!0),g(N.lB),E(ue.g.DEPLOYING),(0,Me.aw)(null!=t?t:f).then((function(){I(!0),b(!1),g(N.$M),E(ue.g.DEPLOYED)})).catch((function(t){b(!0),E(ue.g.DEPLOYING_ERROR),(0,v.Eo)(t||e("server.deploy-entity-error",{entity:e("label.ingestion-workflow-lowercase")}))})).finally((function(){return n()}))}))};return(0,r.useEffect)((function(){O([{name:(0,a.startCase)(t),url:(0,j.si)(d.CZ.SERVICES,(0,D.tJ)(t))},{name:e("label.add-new-entity",{entity:e(k?"label.ingestion":"label.service")}),url:"",activeTitle:!0}])}),[t,k]),r.createElement(oe,{addIngestion:k,handleAddIngestion:function(e){R(e)},ingestionAction:C,ingestionProgress:M,isIngestionCreated:L,isIngestionDeployed:S,newServiceData:l,serviceCategory:t,showDeployButton:x,slashedBreadcrumb:Z,onAddIngestionSave:function(t){return g(N.aN),new Promise((function(n,i){return(0,Me.XZ)(t).then((function(t){var a;t?(h(null!==(a=t.id)&&void 0!==a?a:""),Q(t.id).finally((function(){return n()}))):((0,v.Eo)(e("server.create-entity-error",{entity:e("label.ingestion-workflow-lowercase")})),i())})).catch((function(a){(0,Me.ne)((null==l?void 0:l.name)+"."+t.name).then((function(t){if(!t)throw e("server.unexpected-response");n(),(0,v.Eo)(a,e("server.deploy-entity-error",{entity:e("label.ingestion-workflow-lowercase")}))})).catch((function(){(0,v.Eo)(a,e("server.create-entity-error",{entity:e("label.ingestion-workflow-lowercase")})),i()}))}))}))},onAddServiceSave:function(e){return(0,i.mG)(void 0,void 0,void 0,(function(){var n;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return[4,(0,Ne.WY)(t,e)];case 1:return n=i.sent(),o(n),[2]}}))}))},onIngestionDeploy:Q})}}}]);




© 2015 - 2025 Weber Informatics LLC | Privacy Policy