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 l}from"../constants.js";import{isMobileDetected as m}from"../../../../../utils/mobileDetect.js";import{jsx as s,Fragment as u,jsxs as p}from"react/jsx-runtime";function d(t){var o=t.component,d=t.columns,h=i(),b=l/d;return s(u,{children:p(n,{container:!0,spacing:2,className:r(h.detailedView,e({},h.detailedViewMobile,m)),children:[s(a,{label:"Name",value:o.name,format:null,xs:b}),s(a,{label:"# of Joints",value:o.number_of_joints,format:"0",xs:b}),s(a,{label:"Component Length",unit:"length",value:o.component_length,format:"0.0",xs:b}),s(a,{label:"T.Weight",unit:"mass",value:o.weight,xs:b}),s(a,{label:"Grade",value:o.grade,format:null,xs:b}),s(a,{label:"TJ OD",unit:"shortLength",value:o.outer_diameter_tooljoint,xs:b}),s(a,{label:"TJ ID",unit:"shortLength",value:o.inner_diameter_tooljoint,xs:b}),s(a,{label:"TJ Length Per Joint",unit:"length",value:o.length_tooljoint,xs:b}),s(a,{label:"Connection Type",value:o.connection_type,format:null,xs:b}),s(a,{label:"Class",value:o.class,format:null,xs:b}),s(a,{label:"Material",value:o.material,format:null,xs:b})]})})}d.propTypes={component:o.shape({family: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,grade:o.string,class:o.string,material:o.string,outer_diameter_tooljoint:o.number,inner_diameter_tooljoint:o.number,length_tooljoint:o.number}).isRequired,columns:o.number.isRequired};var h=t(d);export{h as default};
