"use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("react"),a=require("classnames"),l=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 r=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"),d=require("react/jsx-runtime");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=o(e),m=o(a),f=o(l);function b(e){var t,a=e.component,l=e.columns,o=u.useStyles(),f=n.CONTAINER_XS/l;return d.jsx(d.Fragment,{children:d.jsxs(i.Grid,{container:!0,spacing:2,className:m.default(o.detailedView,c.default({},o.detailedViewMobile,s.isMobileDetected)),children:[d.jsx(r.StaticField,{label:"Name",value:a.name,format:null,xs:f}),d.jsx(r.StaticField,{label:"T.Weight",unit:"mass",value:a.weight,xs:f}),d.jsx(r.StaticField,{label:"Connection Type",value:a.connection_type,format:null,xs:f}),d.jsx(r.StaticField,{label:"Material",value:a.material,format:null,xs:f}),d.jsx(i.Grid,{item:!0,xs:n.CONTAINER_XS,children:d.jsx("span",{className:o.additionalTitle,children:"Under Reamer Configuration"})}),d.jsx(r.StaticField,{label:"Max OD (Opened)",unit:"shortLength",value:a.ur_opened_od,xs:f}),d.jsx(r.StaticField,{label:"Gauge Length",unit:"shortLength",value:a.gauge_length,xs:f}),d.jsx(r.StaticField,{label:"# of Blades",value:a.no_of_blades,xs:f}),d.jsx(r.StaticField,{label:"Blade Width",unit:"shortLength",value:a.blade_width,xs:f}),d.jsx(r.StaticField,{label:"Reamer to Bit Distance",unit:"length",value:a.ur_to_bit,xs:f}),d.jsx(r.StaticField,{label:"Flow Rate",unit:"volumeFlowRate",value:a.flow_rate,xs:f}),d.jsx(r.StaticField,{label:"TFA",value:a.tfa,xs:f}),d.jsx(r.StaticField,{label:"Activation Logic",value:null===(t=n.UR_ACTIVATION_LOGIC_TYPES.find((function(e){return e.type===a.activation_logic})))||void 0===t?void 0:t.name,format:null,xs:f}),a.activation_logic===n.UR_ACTIVATION_LOGIC_KEYS.DEPTH_ACTIVATION&&d.jsx(r.StaticField,{label:"Activation Depth",unit:"length",value:a.ur_opened_depth,xs:f})]})})}b.propTypes={component:f.default.shape({family:f.default.string,outer_diameter:f.default.number,inner_diameter:f.default.number,linear_weight:f.default.number,length:f.default.number,name:f.default.string,weight:f.default.number,connection_type:f.default.string,material:f.default.string,ur_opened_od:f.default.number,gauge_length:f.default.number,no_of_blades:f.default.number,blade_width:f.default.number,ur_to_bit:f.default.number,flow_rate:f.default.number,tfa:f.default.number,activation_logic:f.default.string,ur_opened_depth:f.default.number}).isRequired,columns:f.default.number.isRequired};var h=t.memo(b);module.exports=h;
//# sourceMappingURL=Browser.js.map
