/*! 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([[25],{336:function(e,t,n){"use strict";n.r(t),n.d(t,"CreateCaseFlyout",(function(){return h})),n.d(t,"default",(function(){return h}));var a=n(2),o=n.n(a),l=n(53),i=n.n(l),u=n(15),s=n(133),r=n(12),c=n(149),d=n(254);const m=i()(u.EuiFlyout).withConfig({displayName:"StyledFlyout",componentId:"sc-mh8efq-0"})(["",""],(({theme:e})=>`\n z-index: ${e.eui.euiZModal};\n `)),y=i()(u.EuiFlyoutBody).withConfig({displayName:"StyledEuiFlyoutBody",componentId:"sc-mh8efq-1"})(["",""],(({theme:e})=>`\n && .euiFlyoutBody__overflow {\n overflow-y: auto;\n overflow-x: hidden;\n }\n\n && .euiFlyoutBody__overflowContent {\n display: block;\n padding: ${e.eui.euiSizeL} ${e.eui.euiSizeL} 70px;\n height: auto;\n }\n `)),f=i.a.div.withConfig({displayName:"FormWrapper",componentId:"sc-mh8efq-2"})(["width:100%;"]),h=o.a.memo((({afterCaseCreated:e,attachments:t,headerContent:n,initialValue:a,onClose:l,onSuccess:i})=>{const h=l||r.noop,p=i||r.noop;return o.a.createElement(o.a.Fragment,null,o.a.createElement(s.ReactQueryDevtools,{initialIsOpen:!1}),o.a.createElement(m,{onClose:l,"tour-step":"create-case-flyout","data-test-subj":"create-case-flyout"},o.a.createElement(u.EuiFlyoutHeader,{"data-test-subj":"create-case-flyout-header",hasBorder:!0},o.a.createElement(u.EuiTitle,{size:"m"},o.a.createElement("h2",null,c.j)),n&&n),o.a.createElement(y,null,o.a.createElement(f,null,o.a.createElement(d.a,{afterCaseCreated:e,attachments:t,onCancel:h,onSuccess:p,withSteps:!1,initialValue:a})))))}));h.displayName="CreateCaseFlyout"}}]);