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