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