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

assets.4662.2e69ad50d02b9a9bb502.js Maven / Gradle / Ivy

"use strict";(self.webpackChunkopen_metadata=self.webpackChunkopen_metadata||[]).push([[4662,2509],{52509:function(e,n,t){t.r(n),t.d(n,{ReactComponent:function(){return u}});var i,r,a,s,o,c=t(67294);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var n=1;n .ant-collapse-content-box {\n  padding-left: 20px;\n}\n.advanced-properties-collapse .ant-collapse-item .ant-collapse-header > .ant-collapse-header-text {\n  font-size: 16px;\n}\n',""]),n.Z=s},5883:function(e,n,t){var i=t(8081),r=t.n(i),a=t(23645),s=t.n(a)()(r());s.push([e.id,'/*\n *  Copyright 2023 Collate.\n *  Licensed under the Apache License, Version 2.0 (the "License");\n *  you may not use this file except in compliance with the License.\n *  You may obtain a copy of the License at\n *  http://www.apache.org/licenses/LICENSE-2.0\n *  Unless required by applicable law or agreed to in writing, software\n *  distributed under the License is distributed on an "AS IS" BASIS,\n *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *  See the License for the specific language governing permissions and\n *  limitations under the License.\n */\n/*\n *  Copyright 2022 Collate.\n *  Licensed under the Apache License, Version 2.0 (the "License");\n *  you may not use this file except in compliance with the License.\n *  You may obtain a copy of the License at\n *  http://www.apache.org/licenses/LICENSE-2.0\n *  Unless required by applicable law or agreed to in writing, software\n *  distributed under the License is distributed on an "AS IS" BASIS,\n *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *  See the License for the specific language governing permissions and\n *  limitations under the License.\n */\n/* navbar+tab_height+padding = 64+46+12  */\n.airflow-message-banner {\n  border: 1px solid #ffc34e;\n  border-radius: 4px;\n  padding: 8px;\n  background: #f0af2c0d;\n}\n.airflow-message-banner + .rjsf .form-group.field {\n  margin-top: 0px;\n}\n',""]),n.Z=s},3765:function(e,n,t){var i=t(8081),r=t.n(i),a=t(23645),s=t.n(a)()(r());s.push([e.id,'/*\n *  Copyright 2023 Collate.\n *  Licensed under the Apache License, Version 2.0 (the "License");\n *  you may not use this file except in compliance with the License.\n *  You may obtain a copy of the License at\n *  http://www.apache.org/licenses/LICENSE-2.0\n *  Unless required by applicable law or agreed to in writing, software\n *  distributed under the License is distributed on an "AS IS" BASIS,\n *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *  See the License for the specific language governing permissions and\n *  limitations under the License.\n */\n/*\n *  Copyright 2022 Collate.\n *  Licensed under the Apache License, Version 2.0 (the "License");\n *  you may not use this file except in compliance with the License.\n *  You may obtain a copy of the License at\n *  http://www.apache.org/licenses/LICENSE-2.0\n *  Unless required by applicable law or agreed to in writing, software\n *  distributed under the License is distributed on an "AS IS" BASIS,\n *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *  See the License for the specific language governing permissions and\n *  limitations under the License.\n */\n/* navbar+tab_height+padding = 64+46+12  */\n.service-doc-panel {\n  background: #fff;\n  padding-bottom: 8px;\n}\n.service-doc-panel .toastui-editor-contents h1:first-child {\n  padding-top: 8px !important;\n}\n.service-doc-panel .toastui-editor-contents > * {\n  padding: 5px 35px !important;\n}\n',""]),n.Z=s},68805:function(e,n){n.Z=function(){return null}},25074:function(e,n,t){t.d(n,{u:function(){return s}});var i=t(70655),r=t(96486),a=t(67294),s=function(e){var n,t=(0,i.ev)([],(0,i.CR)(new Set(null!==(n=e.errors)&&void 0!==n?n:[])));return(0,r.isEmpty)(t)?null:a.createElement("div",null,a.createElement("ul",null,t.map((function(n){return a.createElement("li",{className:"ant-form-item-explain-error",key:e.schema.$id+"-"+e.idSchema.$id},n)}))))}},2669:function(e,n,t){t.d(n,{O:function(){return M}});var i=t(70655),r=t(49101),a=t(27279),s=t(19650),o=t(71577),c=t(94184),l=t.n(c),u=t(96486),d=t(67294),m=t(68432),p=t(55846),f=t(93379),v=t.n(f),h=t(7795),g=t.n(h),y=t(90569),E=t.n(y),b=t(3565),w=t.n(b),I=t(19216),S=t.n(I),T=t(44589),N=t.n(T),C=t(76579),A={};A.styleTagTransform=N(),A.setAttributes=w(),A.insert=E().bind(null,"head"),A.domAPI=g(),A.insertStyleElement=S(),v()(C.Z,A),C.Z&&C.Z.locals&&C.Z.locals;var L=a.Z.Panel,M=function(e){var n=(0,m.$)().t,t=e.formContext,c=e.idSchema,f=e.title,v=e.onAddClick,h=e.schema,g=e.properties.reduce((function(e,n){var t=p.S0.includes(n.name),r=(0,i.ev)([],(0,i.CR)(e.advancedProperties)),a=(0,i.ev)([],(0,i.CR)(e.normalProperties));return t?r=(0,i.ev)((0,i.ev)([],(0,i.CR)(r)),[n]):a=(0,i.ev)((0,i.ev)([],(0,i.CR)(a)),[n]),(0,i.pi)((0,i.pi)({},e),{advancedProperties:r,normalProperties:a})}),{advancedProperties:[],normalProperties:[]}),y=g.advancedProperties,E=g.normalProperties;return d.createElement(d.Fragment,null,d.createElement(s.Z,{className:"w-full justify-between"},d.createElement("label",{className:l()("control-label",{"font-medium text-base-color text-md":!h.additionalProperties}),id:c.$id+"__title"},f),h.additionalProperties&&d.createElement(o.Z,{"data-testid":"add-item-"+f,icon:d.createElement(r.Z,{style:{color:"white",fontSize:"12px"}}),id:""+c.$id,size:"small",type:"primary",onClick:function(){v(h)()},onFocus:function(){(0,u.isUndefined)(t.handleFocus)||t.handleFocus(c.$id)}})),E.map((function(e,n){return d.createElement("div",{className:l()("property-wrapper",{"additional-fields":h.additionalProperties}),key:e.content.key+"-"+n},e.content)})),!(0,u.isEmpty)(y)&&d.createElement(d.Fragment,null,d.createElement(a.Z,{className:"advanced-properties-collapse",expandIconPosition:"end"},d.createElement(L,{header:f+" "+n("label.advanced-config"),key:"1"},y.map((function(e,n){return d.createElement("div",{className:l()("property-wrapper",{"additional-fields":h.additionalProperties}),key:e.content.key+"-"+n},e.content)}))))))}},95235:function(e,n,t){var i=t(70655),r=t(27202),a=t(96486),s=t(67294),o=t(88357),c=t(89204),l=t(24959),u=t(47460),d=t(98736),m=t(62560),p=t(73954),f=t(26813),v=t(27800),h=t(50162),g=t(87078),y=t(62941);n.Z=function(e){var n,t=e.data,E=e.okText,b=void 0===E?"Save":E,w=e.cancelText,I=void 0===w?"Cancel":w,S=e.serviceType,T=e.serviceCategory,N=e.status,C=e.onCancel,A=e.onSave,L=e.onFocus,M=e.disableTestConnection,Z=void 0!==M&&M,x=(0,a.isNil)(t)?{}:null===(n=t.connection)||void 0===n?void 0:n.config,j=function(e){return(0,i.mG)(void 0,void 0,void 0,(function(){var n;return(0,i.Jh)(this,(function(t){switch(t.label){case 0:return n=(0,d.Fz)(e.formData),[4,A((0,i.pi)((0,i.pi)({},e),{formData:n}))];case 1:return t.sent(),[2]}}))}))};return s.createElement(s.Fragment,null,s.createElement(o.Z,null),function(){var e,n,o={schema:{},uiSchema:{}},d=(0,a.cloneDeep)(x||{});try{for(var E=(0,i.XA)(Object.entries(d)),w=E.next();!w.done;w=E.next()){var A=(0,i.CR)(w.value,2),M=A[0],k=A[1];(0,a.isNil)(k)&&delete d[M]}}catch(n){e={error:n}}finally{try{w&&!w.done&&(n=E.return)&&n.call(E)}finally{if(e)throw e.error}}switch(T){case c.u.DATABASE_SERVICES:o=(0,u.c)(S);break;case c.u.MESSAGING_SERVICES:o=(0,m.m)(S);break;case c.u.DASHBOARD_SERVICES:o=(0,l.n)(S);break;case c.u.PIPELINE_SERVICES:o=(0,v.o)(S);break;case c.u.ML_MODEL_SERVICES:o=(0,f.$)(S);break;case c.u.METADATA_SERVICES:o=(0,p.J)(S);break;case c.u.STORAGE_SERVICES:o=g.Z.getStorageServiceConfig(S);break;case c.u.SEARCH_SERVICES:o=(0,h.C)(S)}return s.createElement(y.Z,{cancelText:I,disableTestConnection:Z,formData:d,okText:b,schema:o.schema,serviceCategory:T,serviceName:null==t?void 0:t.name,serviceType:S,status:N,uiSchema:o.uiSchema,validator:r.Z,onCancel:C,onFocus:L,onSubmit:j})}())}},88357:function(e,n,t){t.d(n,{Z:function(){return N}});var i=t(19650),r=t(56256),a=t(94184),s=t.n(a),o=t(96486),c=t(67294),l=t(52509),u=t(19894),d=t(93379),m=t.n(d),p=t(7795),f=t.n(p),v=t(90569),h=t.n(v),g=t(3565),y=t.n(g),E=t(19216),b=t.n(E),w=t(44589),I=t.n(w),S=t(5883),T={};T.styleTagTransform=I(),T.setAttributes=y(),T.insert=h().bind(null,"head"),T.domAPI=f(),T.insertStyleElement=b(),m()(S.Z,T),S.Z&&S.Z.locals&&S.Z.locals;var N=function(e){var n=e.className,t=(0,u.w)(),a=t.reason,d=t.isAirflowAvailable,m=t.isFetchingStatus;return d||m||(0,o.isEmpty)(a)?null:c.createElement(i.Z,{align:"center",className:s()("airflow-message-banner",n),"data-testid":"no-airflow-placeholder",size:16},c.createElement(l.ReactComponent,{className:"align-middle",height:24,width:24}),c.createElement(r.Z.Text,null,a))}},62941:function(e,n,t){t.d(n,{Z:function(){return M}});var i=t(70655),r=t(79508),a=t(67336),s=t(71577),o=t(94184),c=t.n(o),l=t(23031),u=t(96486),d=t(67294),m=t(19894),p=t(97354),f=t(30996),v=t(98736),h=t(49101),g=t(16165),y=t(8645),E=function(e){var n=e.formContext,t=e.idSchema,i=e.title,r=e.canAdd,a=e.onAddClick,o=e.items;return d.createElement(d.Fragment,null,d.createElement("div",{className:"d-flex justify-between items-center"},d.createElement("label",{className:"control-label"},i),r&&d.createElement(s.Z,{"data-testid":"add-item-"+i,icon:d.createElement(h.Z,{style:{color:"white",fontSize:"12px"}}),id:""+t.$id,size:"small",type:"primary",onClick:a,onFocus:function(){(0,u.isUndefined)(n.handleFocus)||n.handleFocus(t.$id)}})),o.map((function(e,n){return d.createElement("div",{className:c()("d-flex items-center w-full",{"m-t-sm":n>0}),key:e.key+"-"+n},d.createElement("div",{className:"flex-1 array-fields"},e.children),e.hasRemove&&d.createElement(g.Z,{className:"w-7 h-0 m-l-sm",component:y.ReactComponent,onClick:function(n){e.onDropIndexClick(e.index)(n)}}))})))},b=t(68805),w=t(25074),I=t(2669),S=t(4107),T=function(e){var n=e.onFocus,t=e.onBlur,r=e.onChange,a=(0,i._T)(e,["onFocus","onBlur","onChange"]);return d.createElement(S.Z.Password,{autoComplete:"off",autoFocus:a.autofocus,disabled:a.disabled,id:a.id,name:a.name,placeholder:a.placeholder,readOnly:a.readonly,required:a.required,value:a.value,onBlur:function(){return t(a.id,a.value)},onChange:function(e){return r(e.target.value)},onFocus:function(){return n(a.id,a.value)}})},N=t(69523),C=t(39873),A=t(34041),L=function(e){var n,t=e.onFocus,r=e.onBlur,a=e.onChange,s=(0,i._T)(e,["onFocus","onBlur","onChange"]);return d.createElement(A.Z,{autoFocus:s.autofocus,className:"d-block w-full",disabled:s.disabled,id:s.id,mode:s.multiple?"multiple":"tags",placeholder:s.placeholder,value:s.value,onBlur:function(){return r(s.id,s.value)},onChange:function(e){return a(e)},onFocus:function(){return t(s.id,s.value)}},(null!==(n=s.options.enumOptions)&&void 0!==n?n:[]).map((function(e){return d.createElement(A.Z.Option,{key:(0,u.uniqueId)(),value:e.value},(0,u.capitalize)(e.label))})))},M=function(e){var n=e.formData,t=e.schema,o=e.okText,h=e.cancelText,g=e.showFormHeader,y=void 0!==g&&g,S=e.status,A=void 0===S?"initial":S,M=e.onCancel,Z=e.onSubmit,x=e.uiSchema,j=e.disableTestConnection,k=e.onFocus,D=e.serviceCategory,R=e.serviceType,O=e.serviceName,F=e.showTestConnection,P=void 0===F||F,z=e.useSelectWidget,J=void 0!==z&&z,U=(0,i._T)(e,["formData","schema","okText","cancelText","showFormHeader","status","onCancel","onSubmit","uiSchema","disableTestConnection","onFocus","serviceCategory","serviceType","serviceName","showTestConnection","useSelectWidget"]),Y=(0,m.w)().isAirflowAvailable,G=(0,d.useRef)(null),B=(0,i.CR)((0,d.useState)((0,v.jv)(null!=n?n:{})),2),W=B[0],Q=B[1],H=(0,i.CR)((0,d.useState)(),2),V=H[0],_=H[1],q=(0,i.pi)({PasswordWidget:T},J&&{SelectWidget:L});return(0,d.useEffect)((function(){Y&&(0,i.mG)(void 0,void 0,void 0,(function(){var e,n,t;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,(0,p.ut)()];case 1:return e=i.sent(),n=e.status,t=e.data,_(200===n?(null==t?void 0:t.ip)||"[unknown]":void 0),[3,3];case 2:return i.sent(),_("[error - unknown]"),[3,3];case 3:return[2]}}))}))}),[Y]),d.createElement(a.ZP,(0,i.pi)({focusOnFirstError:!0,noHtml5Validate:!0,omitExtraData:!0,className:c()("rjsf",U.className,{"no-header":!y}),formContext:{handleFocus:k},formData:W,idSeparator:"/",ref:G,schema:t,showErrorList:!1,templates:{ArrayFieldTemplate:E,ObjectFieldTemplate:I.O,DescriptionFieldTemplate:b.Z,FieldErrorTemplate:w.u},transformErrors:f.O5,uiSchema:x,widgets:q,onChange:function(e){Q(e.formData),U.onChange&&U.onChange(e)},onFocus:k,onSubmit:Z},U),(0,u.isEmpty)(t)&&d.createElement("div",{className:"text-grey-muted text-center"},(0,l.t)("message.no-config-available")),!(0,u.isEmpty)(t)&&Y&&V&&d.createElement("div",{className:"d-flex justify-between bg-white global-border rounded-4 p-sm m-t-md","data-testid":"ip-address"},d.createElement("div",{className:"self-center"},(0,l.t)("message.airflow-host-ip-address",{hostIp:V}))),P&&!(0,u.isEmpty)(t)&&!(0,u.isUndefined)(W)&&Y&&d.createElement(C.Z,{connectionType:R,formData:W,isTestingDisabled:j,serviceCategory:D,serviceName:O,onValidateFormRequiredFields:function(){var e;return Boolean(null===(e=G.current)||void 0===e?void 0:e.validateForm())}}),d.createElement("div",{className:"m-t-lg d-flex justify-between"},d.createElement("div",null),d.createElement("div",{className:"text-right","data-testid":"buttons"},d.createElement(s.Z,{type:"link",onClick:function(){Q((0,v.jv)(null!=n?n:{})),M&&M()}},h),"waiting"===A?d.createElement(s.Z,{disabled:!0,className:"p-x-md p-y-xxs h-auto rounded-6",type:"primary"},d.createElement(N.Z,{size:"small",type:"white"})):"success"===A?d.createElement(s.Z,{disabled:!0,className:"p-x-md p-y-xxs h-auto rounded-6",type:"primary"},d.createElement(r.Z,null)):d.createElement(s.Z,{className:"font-medium p-x-md p-y-xxs h-auto rounded-6","data-testid":"submit-btn",htmlType:"submit",type:"primary"},o))))}},86879:function(e,n,t){t.d(n,{Z:function(){return L}});var i=t(70655),r=t(71230),a=t(15746),s=t(96486),o=t(67294),c=t(68432),l=t(16139),u=t(39117),d=t(73975),m=t(69523),p=t(24135),f=t(93379),v=t.n(f),h=t(7795),g=t.n(h),y=t(90569),E=t.n(y),b=t(3565),w=t.n(b),I=t(19216),S=t.n(I),T=t(44589),N=t.n(T),C=t(3765),A={};A.styleTagTransform=N(),A.setAttributes=w(),A.insert=E().bind(null,"head"),A.domAPI=g(),A.insertStyleElement=S(),v()(C.Z,A),C.Z&&C.Z.locals&&C.Z.locals;var L=function(e){var n=e.serviceType,t=e.serviceName,f=e.activeField,v=e.isWorkflow,h=e.workflowType,g=(0,c.$)().i18n,y=(0,i.CR)((0,o.useState)(!1),2),E=y[0],b=y[1],w=(0,i.CR)((0,o.useState)(""),2),I=w[0],S=w[1],T=(0,o.useCallback)((function(e){var n;if(e){var t=e.split("/");if(l.JJ.test(e))return t[1];var i=null!==(n=(0,s.last)(t))&&void 0!==n?n:"";return l.X$.test(i)?(0,s.first)(i.split("_")):i}}),[]);return(0,o.useEffect)((function(){(0,i.mG)(void 0,void 0,void 0,(function(){var e,r,a,s,o,c,l;return(0,i.Jh)(this,(function(m){switch(m.label){case 0:b(!0),m.label=1;case 1:return m.trys.push([1,3,4,5]),e="",r=g.language===d.Qv.English,a=g.language+"/"+n+"/"+t+".md",s=d.Qv.English+"/"+n+"/"+t+".md",v&&h&&(a=g.language+"/"+n+"/workflows/"+h+".md",s=d.Qv.English+"/"+n+"/workflows/"+h+".md"),[4,Promise.allSettled([(0,u.bA)(a),r?Promise.reject(""):(0,u.bA)(s)])];case 2:return o=i.CR.apply(void 0,[m.sent(),2]),c=o[0],l=o[1],"fulfilled"===c.status&&(e=c.value),r||"fulfilled"!==l.status||(e=l.value),S(e),[3,5];case 3:return m.sent(),S(""),[3,5];case 4:return b(!1),[7];case 5:return[2]}}))}))}),[t,n]),(0,o.useEffect)((function(){var e=T(f);if(e){var n=document.querySelector('[data-id="'+e+'"]');n&&(n.scrollIntoView({block:"center",behavior:"smooth",inline:"center"}),n.setAttribute("data-highlighted","true"))}}),[f,T]),E?o.createElement(m.Z,null):o.createElement(r.Z,{"data-testid":"service-requirements"},o.createElement(a.Z,{span:24},o.createElement(p.Z,{enableSeeMoreVariant:!1,markdown:I})))}},19894:function(e,n,t){t.d(n,{w:function(){return s}});var i=t(70655),r=t(67294),a=t(97354),s=function(){var e=(0,i.CR)((0,r.useState)(!1),2),n=e[0],t=e[1],s=(0,i.CR)((0,r.useState)(!1),2),o=s[0],c=s[1],l=(0,i.CR)((0,r.useState)(),2),u=l[0],d=l[1],m=(0,i.CR)((0,r.useState)(),2),p=m[0],f=m[1],v=(0,i.CR)((0,r.useState)("unknown"),2),h=v[0],g=v[1],y=function(){return(0,i.mG)(void 0,void 0,void 0,(function(){var e,n;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:t(!0),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,(0,a.Ef)()];case 2:return e=i.sent(),c(200===e.code),f(e.reason),g(e.platform),[3,5];case 3:return n=i.sent(),d(n),c(!1),[3,5];case 4:return t(!1),[7];case 5:return[2]}}))}))};return(0,r.useEffect)((function(){y()}),[]),{isFetchingStatus:n,isAirflowAvailable:o,error:u,fetchAirflowStatus:y,reason:p,platform:h}}},24662:function(e,n,t){t.r(n),t.d(n,{default:function(){return A}});var i=t(70655),r=t(91894),a=t(56256),s=t(96486),o=t(67294),c=t(68432),l=t(15137),u=t(83716),d=t(79686),m=t(86879),p=t(26387),f=t(69523),v=t(96840),h=t(95235),g=function(e){var n=e.serviceCategory,t=e.serviceFQN,r=e.serviceType,a=e.data,s=e.handleUpdate,c=e.disableTestConnection,u=e.onFocus,d=(0,l.k6)(),m=(0,i.CR)((0,o.useState)("initial"),2),p=m[0],f=m[1];return o.createElement("div",{className:"bg-white h-full"},o.createElement("div",{className:"w-full p-b-lg","data-testid":"service-config",id:"serviceConfig"},o.createElement("div",{className:"m-x-auto"},o.createElement(h.Z,{data:a,disableTestConnection:c,serviceCategory:n,serviceType:r,status:p,onCancel:function(){d.goBack()},onFocus:u,onSave:function(e){return(0,i.mG)(void 0,void 0,void 0,(function(){return(0,i.Jh)(this,(function(i){switch(i.label){case 0:if(!e.formData)return[2];f("waiting"),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,s(e.formData,n)];case 2:return i.sent(),setTimeout((function(){f("success"),d.push((0,v.jN)(n,t))}),200),[3,5];case 3:return i.sent(),[3,5];case 4:return setTimeout((function(){f("initial")}),500),[7];case 5:return[2]}}))}))}}))))},y=t(96162),E=t(55846),b=t(89204),w=t(99166),I=t(93895),S=t(24671),T=t(87078),N=t(75838),C=t(46321),A=function(){var e,n,t=this,h=(0,c.$)().t,A=(0,l.UO)(),L=A.fqn,M=A.serviceCategory,Z=(0,o.useMemo)((function(){return L===E.rn}),[L]),x=(0,i.CR)((0,o.useState)(!Z),2),j=x[0],k=x[1],D=(0,i.CR)((0,o.useState)(Z),2),R=D[0],O=D[1],F=(0,i.CR)((0,o.useState)(),2),P=F[0],z=F[1],J=(0,i.CR)((0,o.useState)([]),2),U=J[0],Y=J[1],G=(0,i.CR)((0,o.useState)(""),2),B=G[0],W=G[1];if((0,o.useEffect)((function(){(0,i.mG)(t,void 0,void 0,(function(){var e,n,t,r;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:k(!0),i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,(0,w.dO)(M,L,["owner"])];case 2:return e=i.sent(),z(e),Y([{name:(0,s.startCase)(M),url:(0,v.si)(y.CZ.SERVICES,(0,N.tJ)(M))},{name:(0,S.C_)(e),imgSrc:T.Z.getServiceTypeLogo(e.serviceType),url:(0,v.jN)(M,L)},{name:h("label.edit-entity",{entity:h("label.connection")}),url:"",activeTitle:!0}]),[3,5];case 3:return n=i.sent(),404===(null===(r=(t=n).response)||void 0===r?void 0:r.status)?O(!0):(0,C.Eo)(t),[3,5];case 4:return k(!1),[7];case 5:return[2]}}))}))}),[L,M]),j)return o.createElement(f.Z,null);if(R&&!j)return o.createElement(u.Z,null,(0,I.mW)(M,L));var Q=o.createElement("div",{className:"max-width-md w-9/10 service-form-container"},o.createElement(p.Z,{titleLinks:U}),o.createElement(r.Z,{className:"p-lg m-t-md"},o.createElement(a.Z.Title,{level:5},h("message.edit-service-entity-connection",{entity:L})),o.createElement(g,{data:P,disableTestConnection:b.u.METADATA_SERVICES===M&&E.rn===L,handleUpdate:function(e){return(0,i.mG)(t,void 0,void 0,(function(){var n,t,r,a,s;return(0,i.Jh)(this,(function(o){switch(o.label){case 0:n={name:null==P?void 0:P.name,serviceType:null==P?void 0:P.serviceType,description:null==P?void 0:P.description,owner:null==P?void 0:P.owner,connection:{config:e}},o.label=1;case 1:return o.trys.push([1,3,,4]),[4,(0,w.Pg)(M,null!==(a=null==P?void 0:P.id)&&void 0!==a?a:"",n)];case 2:return t=o.sent(),z((0,i.pi)((0,i.pi)({},t),{owner:null!==(s=null==t?void 0:t.owner)&&void 0!==s?s:null==P?void 0:P.owner})),[3,4];case 3:return r=o.sent(),(0,C.Eo)(r),[3,4];case 4:return[2]}}))}))},serviceCategory:M,serviceFQN:L,serviceType:(null==P?void 0:P.serviceType)||"",onFocus:function(e){(0,s.isEmpty)(e)||setTimeout((function(){W(e)}),50)}})));return o.createElement(d.Z,{firstPanel:{children:Q,minWidth:700,flex:.7},hideSecondPanel:null!==(e=!(null==P?void 0:P.serviceType))&&void 0!==e?e:"",pageTitle:h("label.edit-entity",{entity:h("label.connection")}),secondPanel:{children:o.createElement(m.Z,{activeField:B,serviceName:null!==(n=null==P?void 0:P.serviceType)&&void 0!==n?n:"",serviceType:(0,N.rP)(M)}),className:"service-doc-panel",minWidth:60,overlay:{displayThreshold:200,header:h("label.setup-guide"),rotation:"counter-clockwise"}}})}},97354:function(e,n,t){t.d(n,{E0:function(){return u},Ef:function(){return g},FD:function(){return m},MX:function(){return b},Pj:function(){return d},XZ:function(){return c},aw:function(){return p},cB:function(){return v},fT:function(){return E},g6:function(){return f},ne:function(){return l},tr:function(){return h},ut:function(){return y},z8:function(){return w}});var i=t(70655),r=t(80129),a=t.n(r),s=t(22334),o=t(2598),c=function(e){return(0,i.mG)(void 0,void 0,void 0,(function(){return(0,i.Jh)(this,(function(n){switch(n.label){case 0:return[4,o.Z.post("/services/ingestionPipelines",e)];case 1:return[2,n.sent().data]}}))}))},l=function(e,n){return(0,i.mG)(void 0,void 0,void 0,(function(){var t;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return t=(0,s.JP)("/services/ingestionPipelines/name/"+e,n),[4,o.Z.get(t)];case 1:return[2,i.sent().data]}}))}))},u=function(e,n){return(0,i.mG)(void 0,void 0,void 0,(function(){var t;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return t=(0,s.JP)("/services/ingestionPipelines/name/"+e,n),[4,o.Z.get(t)];case 1:return[2,i.sent().data]}}))}))},d=function(e){return(0,i.mG)(void 0,void 0,void 0,(function(){var n,t,r,c,l,u,d,m,p;return(0,i.Jh)(this,(function(i){switch(i.label){case 0:return n=e.arrQueryFields,t=e.serviceFilter,r=e.paging,c=e.pipelineType,l=e.testSuite,u=e.serviceType,d=e.limit,m=a().stringify({service:t,testSuite:l,pipelineType:(null==c?void 0:c.length)?c.join(","):void 0,serviceType:u,limit:d}),p=""+(0,s.JP)("/services/ingestionPipelines",n,m)+(r||""),[4,o.Z.get(p)];case 1:return[2,i.sent().data]}}))}))},m=function(e){return(0,i.mG)(void 0,void 0,void 0,(function(){return(0,i.Jh)(this,(function(n){switch(n.label){case 0:return[4,o.Z.post("/services/ingestionPipelines/trigger/"+e)];case 1:return[2,n.sent().data]}}))}))},p=function(e){return o.Z.post("/services/ingestionPipelines/deploy/"+e)},f=function(e){return o.Z.post("/services/ingestionPipelines/toggleIngestion/"+e)},v=function(e){return o.Z.delete("/services/ingestionPipelines/"+e+"?hardDelete=true")},h=function(e){return(0,i.mG)(void 0,void 0,void 0,(function(){return(0,i.Jh)(this,(function(n){switch(n.label){case 0:return[4,o.Z.put("/services/ingestionPipelines",e)];case 1:return[2,n.sent().data]}}))}))},g=function(){return(0,i.mG)(void 0,void 0,void 0,(function(){return(0,i.Jh)(this,(function(e){switch(e.label){case 0:return[4,o.Z.get("/services/ingestionPipelines/status")];case 1:return[2,e.sent().data]}}))}))},y=function(){return(0,i.mG)(void 0,void 0,void 0,(function(){return(0,i.Jh)(this,(function(e){switch(e.label){case 0:return[4,o.Z.get("/services/ingestionPipelines/ip")];case 1:return[2,e.sent()]}}))}))},E=function(e,n){return o.Z.get("/services/ingestionPipelines/logs/"+e+"/last",{params:{after:n}})},b=function(e){return o.Z.post("/services/ingestionPipelines/kill/"+e)},w=function(e,n){return(0,i.mG)(void 0,void 0,void 0,(function(){return(0,i.Jh)(this,(function(t){switch(t.label){case 0:return[4,o.Z.get("/services/ingestionPipelines/"+e+"/pipelineStatus",{params:n})];case 1:return[2,t.sent().data]}}))}))}}}]);




© 2015 - 2025 Weber Informatics LLC | Privacy Policy