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 a}from"../shared/StaticField.js";import"../shared/SharedEditorElements.js";import"../shared/ConfirmationPopup.js";import{useStyles as m}from"../sharedStyles.js";import{CONTAINER_XS as n}from"../constants.js";import{isMobileDetected as s}from"../../../../../utils/mobileDetect.js";import{jsx as l,Fragment as p,jsxs as u}from"react/jsx-runtime";function d(r){var i=r.component,d=r.columns,c=m(),h=n/d;return l(p,{children:u(o,{container:!0,spacing:2,className:t(c.detailedView,e({},c.detailedViewMobile,s)),children:[l(a,{label:"Name",value:i.name,format:null,xs:h}),l(a,{label:"T.Weight",unit:"mass",value:i.weight,xs:h}),l(a,{label:"Connection Type",value:i.connection_type,format:null,xs:h}),l(a,{label:"Material",value:i.material,format:null,xs:h})]})})}d.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}).isRequired,columns:i.number.isRequired};var c=r(d);export{c as default};
