/*! Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one or more contributor license agreements. * Licensed under the Elastic License 2.0; you may not use this file except in compliance with the Elastic License 2.0. */ (window.cases_bundle_jsonpfunction=window.cases_bundle_jsonpfunction||[]).push([[21],{150:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(2),c=n.n(a),r=n(15),o=n(5),s=n(58);const l=({connectorType:e,title:t,listItems:n,isLoading:a})=>{const{triggersActionsUi:l}=Object(o.g)().services;return c.a.createElement(r.EuiSkeletonText,{lines:3,size:"m",isLoading:a,"data-test-subj":"connector-card-loading"},c.a.createElement(r.EuiFlexGroup,{direction:"column",alignItems:"stretch","data-test-subj":"connector-card"},c.a.createElement(r.EuiFlexGroup,{direction:"row",justifyContent:"spaceBetween",alignItems:"center"},c.a.createElement(r.EuiFlexItem,null,c.a.createElement(r.EuiText,{size:"s","data-test-subj":"connector-card-title"},c.a.createElement("strong",null,t))),c.a.createElement(r.EuiFlexItem,{grow:!1},c.a.createElement(r.EuiIcon,{size:"xl",type:Object(s.c)(l,e)}))),c.a.createElement(r.EuiFlexItem,{"data-test-subj":"connector-card-details"},n.length>0&&n.map(((e,t)=>c.a.createElement(r.EuiText,{size:"xs","data-test-subj":"card-list-item",key:`${e.title}-${t}`},c.a.createElement("strong",null,`${e.title}: `),`${e.description}`))))))};l.displayName="ConnectorCardDisplay";const i=Object(a.memo)(l)},337:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return m}));var a=n(2),c=n.n(a),r=n(15),o=n(4),s=n(150),l=n(1);const i=l.i18n.translate("xpack.cases.connectors.card.createCommentWarningTitle",{defaultMessage:"Unable to share case comments"}),m=({connector:e})=>{var t,n,a;return c.a.createElement(c.a.Fragment,null,c.a.createElement(s.a,{connectorType:o.h.casesWebhook,isLoading:!1,listItems:[],title:e.name}),c.a.createElement(r.EuiSpacer,null),(!(null!==(t=e.config)&&void 0!==t&&t.createCommentUrl)||!(null!==(n=e.config)&&void 0!==n&&n.createCommentJson))&&c.a.createElement(r.EuiCallOut,{title:i,color:"warning",iconType:"help","data-test-subj":"create-comment-warning"},c.a.createElement("p",null,(a=e.name,l.i18n.translate("xpack.cases.connectors.card.createCommentWarningDesc",{values:{connectorName:a},defaultMessage:"Configure the Create Comment URL and Create Comment Objects fields for the {connectorName} connector to share comments externally."})))))};m.displayName="CasesWebhookPreview"}}]);