"use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("react"),n=require("classnames"),r=require("prop-types"),s=require("@material-ui/core"),i=require("../constants.js"),l=require("../../../../../utils/mobileDetect.js");require("../../../../Drillstring/BHAComponentsTable/components/shared/CancelButton.js"),require("../../../../Drillstring/BHAComponentsTable/components/shared/ExpandCollapseButton.js"),require("../../../../Drillstring/BHAComponentsTable/components/shared/FormatedNumber.js"),require("../../../../Drillstring/BHAComponentsTable/components/shared/InputText.js"),require("../../../../Drillstring/BHAComponentsTable/components/shared/MoreButton.js"),require("../../../../Drillstring/BHAComponentsTable/components/shared/SaveButton.js"),require("../../../../Drillstring/BHAComponentsTable/components/shared/SelectField.js");var o=require("../../../../Drillstring/BHAComponentsTable/components/shared/StaticField.js");require("../../../../Drillstring/BHAComponentsTable/components/shared/SharedEditorElements.js"),require("../../../../Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js");var a=require("../../../../Drillstring/BHAComponentsTable/components/sharedStyles.js"),u=require("react/jsx-runtime");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=m(e),c=m(n),p=m(r);function b(e){var t=e.component,n=e.columns,r=a.useStyles(),m=i.CONTAINER_XS/n;return u.jsx(u.Fragment,{children:u.jsxs(s.Grid,{container:!0,spacing:2,className:c.default(r.detailedView,d.default({},r.detailedViewMobile,l.isMobileDetected)),children:[u.jsx(o.StaticField,{label:"Name",value:t.name,format:null,xs:m}),u.jsx(o.StaticField,{label:"# of Joints",value:t.number_of_joints,format:"0",xs:m}),u.jsx(o.StaticField,{label:"Component Length",value:t.component_length,format:"0.0",xs:m}),u.jsx(o.StaticField,{label:"T.Weight",unit:"mass",value:t.weight,xs:m}),u.jsx(o.StaticField,{label:"Inside Mud Density",unit:"density",value:t.inside_mud_density,format:"0.0",xs:m}),u.jsx(o.StaticField,{label:"Grade",value:t.grade,format:null,xs:m}),u.jsx(o.StaticField,{label:"Connection Type",value:t.connection_type,format:null,xs:m})]})})}b.propTypes={component:p.default.shape({name:p.default.string,weight:p.default.number,component_length:p.default.number,number_of_joints:p.default.number,connection_type:p.default.string,inside_mud_density:p.default.number,grade:p.default.string}).isRequired,columns:p.default.number.isRequired};var f=t.memo(b);module.exports=f;
//# sourceMappingURL=Browser.js.map
