"use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("react"),t=require("classnames"),a=require("prop-types"),i=require("@material-ui/core");require("../shared/CancelButton.js"),require("../shared/ExpandCollapseButton.js"),require("../shared/FormatedNumber.js"),require("../shared/InputText.js"),require("../shared/MoreButton.js"),require("../shared/SaveButton.js"),require("../shared/SelectField.js");var s=require("../shared/StaticField.js");require("../shared/SharedEditorElements.js"),require("../shared/ConfirmationPopup.js");var u=require("../sharedStyles.js"),l=require("../PressureLoss/index.js"),n=require("../constants.js"),d=require("../../../../../utils/mobileDetect.js"),o=require("react/jsx-runtime");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=m(e),f=m(t),p=m(a);function j(e){var r=e.component,t=e.columns,a=u.useStyles(),m=n.CONTAINER_XS/t;return o.jsxs(o.Fragment,{children:[o.jsxs(i.Grid,{container:!0,spacing:2,className:f.default(a.detailedView,c.default({},a.detailedViewMobile,d.isMobileDetected)),children:[o.jsx(s.StaticField,{label:"Name",value:r.name,format:null,xs:m}),o.jsx(s.StaticField,{label:"T.Weight",unit:"mass",value:r.weight,xs:m}),o.jsx(s.StaticField,{label:"Connection Type",value:r.connection_type,format:null,xs:m}),o.jsx(s.StaticField,{label:"Material",value:r.material,format:null,xs:m})]}),o.jsx(l,{isEditing:!1,data:r.pressure_loss||[]})]})}j.propTypes={component:p.default.shape({family:p.default.string,outer_diameter:p.default.number,inner_diameter:p.default.number,linear_weight:p.default.number,length:p.default.number,name:p.default.string,weight:p.default.number,connection_type:p.default.string,material:p.default.string,pressure_loss:p.default.arrayOf(p.default.shape({}))}).isRequired,columns:p.default.number.isRequired};var h=r.memo(j);module.exports=h;
//# sourceMappingURL=Browser.js.map
