"use strict";var e=require('./../../ext-esm/tslib/tslib.es6.js'),s=require("react/jsx-runtime"),i=require("@material-ui/core");require("../../icons/WithCustomSize.js"),require("../../icons/IconParkProvider.js"),require("../../icons/customIcons/icons/AddMessage.js"),require("../../icons/customIcons/icons/Attention.js"),require("../../icons/customIcons/icons/Collapse.js"),require("../../icons/customIcons/icons/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.js"),require("../../icons/customIcons/icons/FolderClosedFilled.js"),require("../../icons/customIcons/icons/FolderOpened.js"),require("../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../icons/customIcons/icons/LessOrEqual.js"),require("../../icons/customIcons/icons/Search.js"),require("../../icons/customIcons/icons/Wellhub.js"),require("../../icons/customIcons/icons/MultiRuler.js"),require("../../icons/customIcons/icons/Checkbox.js"),require("../../icons/customIcons/icons/CheckboxChecked.js"),require("../../icons/customIcons/icons/CheckboxIndeterminate.js"),require("../../icons/customIcons/icons/Radio.js"),require("../../icons/customIcons/icons/RadioChecked.js");var o=require("../../icons/customIcons/icons/SimulFrac.js"),n=require("../../icons/customIcons/icons/ZipperFrac.js");require("../../icons/customIcons/icons/CautionFilled.js");var c=i.makeStyles((function(e){return{tooltipContent:{width:230,padding:4,fontSize:"12px",color:e.palette.primary.text6},tooltipTitle:{marginBottom:8,color:e.palette.primary.text1},labelContainer:{position:"absolute",top:0,left:0,height:14,padding:"1px 16px 0",color:e.palette.background.b2,fontSize:"12px",fontWeight:500,letterSpacing:.5,lineHeight:1,cursor:"default","&:before":{content:'""',position:"absolute",top:0,left:"-1%",width:"100%",height:"100%",transform:"skew(-40deg)",borderBottomRightRadius:2,backgroundColor:e.palette.primary.main}},labelContent:{position:"relative",display:"flex",alignItems:"center",gap:4}}})),t={simul:"SimulFrac",zipper:"ZipperFrac"},r={simul:"Fracturing multiple wells on a pad simultaneously",zipper:"Fracturing one well on a pad at a time"};module.exports=function(l){l.enableSimulFracInPadSelect;var a=l.fracFleetLines,u=c(),m=i.useTheme(),d=a.length?"simul":"zipper";return s.jsx(i.Tooltip,e.__assign({title:s.jsxs("div",e.__assign({className:u.tooltipContent},{children:[s.jsx("div",e.__assign({className:u.tooltipTitle},{children:t[d]})),s.jsx("div",{children:r[d]})]})),placement:"bottom"},{children:s.jsx("div",e.__assign({"data-testid":"FracModeLabel",className:u.labelContainer},{children:s.jsxs("div",e.__assign({className:u.labelContent},{children:["simul"===d?s.jsx(o.SimulFracCustomIcon,{size:12,fill:m.palette.background.b2}):s.jsx(n.ZipperFracCustomIcon,{size:12,fill:m.palette.background.b2}),s.jsx("span",{children:t[d]})]}))}))}))};
