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