import e from"@babel/runtime/helpers/defineProperty";import{memo as t}from"react";import r from"classnames";import o from"prop-types";import{Grid as n}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 i}from"../sharedStyles.js";import{CONTAINER_XS as m}from"../constants.js";import{isMobileDetected as s}from"../../../../../utils/mobileDetect.js";import{jsx as l,Fragment as u,jsxs as p}from"react/jsx-runtime";function d(t){var o=t.component,d=t.columns,c=i(),b=m/d;return l(u,{children:p(n,{container:!0,spacing:2,className:r(c.detailedView,e({},c.detailedViewMobile,s)),children:[l(a,{label:"Name",value:o.name,format:null,xs:b}),l(a,{label:"Sub Category",value:o.sub_category,format:null,xs:b}),l(a,{label:"# of Joints",value:o.number_of_joints,format:"0",xs:b}),l(a,{label:"Component Length",unit:"length",value:o.component_length,format:"0.0",xs:b}),l(a,{label:"T.Weight",unit:"mass",value:o.weight,xs:b}),l(a,{label:"Connection Type",value:o.connection_type,format:null,xs:b}),l(a,{label:"Material",value:o.material,format:null,xs:b})]})})}d.propTypes={component:o.shape({family:o.string,sub_category:o.string,outer_diameter:o.number,inner_diameter:o.number,linear_weight:o.number,component_length:o.number,length:o.number,name:o.string,number_of_joints:o.number,weight:o.number,connection_type:o.string,material:o.string}).isRequired,columns:o.number.isRequired};var c=t(d);export{c as default};
