"use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("react"),a=require("classnames"),r=require("prop-types"),l=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 s=require("../shared/StaticField.js");require("../shared/SharedEditorElements.js"),require("../shared/ConfirmationPopup.js");var i=require("../sharedStyles.js"),u=require("../PressureLoss/index.js"),n=require("../constants.js"),o=require("../../../../../utils/mobileDetect.js"),d=require("react/jsx-runtime");function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=m(e),b=m(a),_=m(r);function x(e){var t=e.component,a=e.columns,r=i.useStyles({isMobile:o.isMobileDetected}),m=n.CONTAINER_XS/a;return d.jsxs(d.Fragment,{children:[d.jsxs(l.Grid,{container:!0,spacing:2,className:b.default(r.detailedView,f.default({},r.detailedViewMobile,o.isMobileDetected)),children:[d.jsx(s.StaticField,{label:"Name",value:t.name,format:null,xs:m}),d.jsx(s.StaticField,{label:"Revolution Per Gallon",unit:"revolutionPerVolume",value:t.rpg,xs:m}),d.jsx(s.StaticField,{label:"T.Weight",unit:"mass",value:t.weight,xs:m}),d.jsx(s.StaticField,{label:"# of stages",value:t.stages,xs:m}),d.jsx(s.StaticField,{label:"# of rotor lobes",value:t.number_rotor_lobes,format:"0.0",xs:m}),d.jsx(s.StaticField,{label:"# of stator lobes",value:t.number_stator_lobes,format:"0.0",xs:m}),d.jsx(s.StaticField,{label:"Bend Range",value:t.bend_range,xs:m}),d.jsx(s.StaticField,{label:"Max WOB",unit:"force",value:t.max_weight_on_bit,xs:m}),d.jsx(s.StaticField,{label:"Make",value:t.make,format:null,xs:m}),d.jsx(s.StaticField,{label:"Model",value:t.model,format:null,xs:m}),d.jsx(s.StaticField,{label:"Bit to Bend",unit:"length",value:t.bit_to_bend,xs:m}),d.jsx(l.Grid,{item:!0,xs:n.CONTAINER_XS,children:d.jsx("span",{className:r.additionalTitle,children:"Standard Flow Range"})}),d.jsx(s.StaticField,{label:"Min",unit:"volumeFlowRate",value:t.min_standard_flowrate,xs:m}),d.jsx(s.StaticField,{label:"Max",unit:"volumeFlowRate",value:t.max_standard_flowrate,xs:m}),d.jsx(s.StaticField,{label:"Max Operating Diff Pressure",unit:"pressure",value:t.max_operating_differential_pressure,xs:m}),d.jsx(s.StaticField,{label:"Torque at Max Operating Diff Pressure",unit:"torque",value:t.torque_at_max_operating_differential_pressure,xs:m}),d.jsx(s.StaticField,{label:"% Leakage Flow Loss",value:t.flow_loss_percentage,format:"0.0",xs:m})]}),d.jsx(u,{isEditing:!1,title:"Off Bottom Pressure Loss",data:t.off_bottom_pressure_loss||[]})]})}x.propTypes={component:_.default.shape({family:_.default.string,outer_diameter:_.default.number,inner_diameter:_.default.number,linear_weight:_.default.number,length:_.default.number,name:_.default.string,weight:_.default.number,off_bottom_pressure_loss:_.default.arrayOf(_.default.shape({})),rpg:_.default.number,stages:_.default.number,number_rotor_lobes:_.default.number,number_stator_lobes:_.default.number,bend_range:_.default.number,max_weight_on_bit:_.default.number,model:_.default.string,bit_to_bend:_.default.number,min_standard_flowrate:_.default.number,max_standard_flowrate:_.default.number,max_operating_differential_pressure:_.default.number,torque_at_max_operating_differential_pressure:_.default.number,flow_loss_percentage:_.default.number,make:_.default.string}).isRequired,columns:_.default.number.isRequired};var c=t.memo(x);module.exports=c;
