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