import{t as C,r as u,j as e,d as c,b as T,P as M,T as s,l as v,a as k,f as N,c as d,u as R,e as $,I as A,g as F}from"./index-CGCOPtAd.js";import{P as z}from"./ProjectSelector-CA7uu16v.js";import"./field-B5157bDc.js";const{colors:{ui:{background__default:{rgba:P},background__info:{rgba:I},background__warning:{rgba:U},background__danger:{rgba:L}}},spacings:{comfortable:{medium:x}},shape:{corners:{borderRadius:q}}}=C,f={background:P,border:{type:"border",radius:q},spacings:{left:x,bottom:x,right:x,top:x}},E={background:I},V={background:L},W={background:U},H=Object.freeze(Object.defineProperty({__proto__:null,danger:V,info:E,primary:f,warning:W},Symbol.toStringTag,{value:"Module"})),{primary:B}=H,O=c(M).withConfig({displayName:"Card__StyledCard",componentId:"sc-bjucjn-0"})(["width:100%;position:relative;background-color:",";box-sizing:border-box;display:flex;flex-direction:column;grid-gap:16px;",";"],({$background:n})=>n,T(B.border)),D=u.forwardRef(function({children:t,variant:i="default",elevation:o="none",...a},h){const y=H[i==="default"?"primary":i],S={ref:h,$background:y.background,...a};return e.jsx(O,{elevation:o,...S,children:t})}),{spacings:j}=f,K=c.div.withConfig({displayName:"CardActions__StyledCardActions",componentId:"sc-1d5vskp-0"})(["display:grid;grid-gap:8px;grid-auto-flow:column;align-items:center;justify-content:",";padding:0 "," 0 ",";margin-top:auto;&:first-child{padding-top:",";}&:last-child{padding-bottom:",";}"],({$justifyContent:n})=>n,j.right,j.left,j.top,j.bottom),Z=u.forwardRef(function({children:t,alignRight:i=!1,meta:o="",...a},h){const y={ref:h,$justifyContent:i?"flex-end":"flex-start",...a};return e.jsxs(K,{...y,children:[t,o!==""&&e.jsx(s,{variant:"caption",children:o})]})}),{spacings:_}=f,G=c.div.withConfig({displayName:"CardContent__StyledCardContent",componentId:"sc-esm4ym-0"})(["display:grid;padding:0 "," 0 ",";&:last-child{padding-bottom:",";}"],_.right,_.left,_.bottom),J=u.forwardRef(function({children:t,...i},o){return e.jsx(G,{ref:o,...i,children:t})}),{spacings:l,border:p}=f,Q=c.div.withConfig({displayName:"CardMedia__StyledCardMedia",componentId:"sc-kr8q9c-0"})(["display:flex;width:auto;",""],({$fullWidth:n})=>n?v(["> *{width:100%;}&:first-child{img{border-top-right-radius:",";border-top-left-radius:",";}}&:last-child{img{border-bottom-right-radius:",";border-bottom-left-radius:",";}}"],p.type==="border"&&p.radius,p.type==="border"&&p.radius,p.type==="border"&&p.radius,p.type==="border"&&p.radius):v(["padding:0 "," 0 ",";&:first-child{padding:"," "," 0 ",";}&:last-child{padding:0 "," "," ",";}> *{width:100%;}"],l.right,l.left,l.top,l.right,l.left,l.right,l.bottom,l.left)),X=u.forwardRef(function({children:t,fullWidth:i=!1,...o},a){const h={...o,ref:a,$fullWidth:i};return e.jsx(Q,{...h,children:t})}),{spacings:g}=f,Y=c.div.withConfig({displayName:"CardHeader__StyledCardHeader",componentId:"sc-15k8edh-0"})(["display:flex;justify-content:space-between;align-items:center;padding:0 "," 0 ",";> :not(:first-child){margin-left:",";}&:first-child{padding-top:",";}&:last-child{padding-bottom:",";}"],g.right,g.left,g.left,g.top,g.bottom),ee=u.forwardRef(function({children:t,...i},o){const a={...i,ref:o};return e.jsx(Y,{...a,children:t})}),re=c.div.withConfig({displayName:"CardHeaderTitle__StyledCardHeaderTitle",componentId:"sc-11m80r3-0"})(["display:grid;flex-grow:2;grid-auto-columns:auto;"]),ne=u.forwardRef(function({children:t,...i},o){const a={...i,ref:o};return e.jsx(re,{...a,children:t})}),r=D;r.Actions=Z;r.Content=J;r.Header=ee;r.Media=X;r.HeaderTitle=ne;r.Actions.displayName="Card.Actions";r.Content.displayName="Card.Content";r.Header.displayName="Card.Header";r.Media.displayName="Card.Media";r.HeaderTitle.displayName="Card.HeaderTitle";const te="/assets/ert-cKWLsxhL.png",ie="/assets/sumo-wazaUMRa.png",oe="/assets/webviz-DzFxZuNs.png",se=c.div`
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: ${C.spacings.comfortable.medium};
`,m=c(r)`
  border: solid 1px ${C.colors.ui.background__medium.hex};
  background: ${C.colors.ui.background__light.hex};  
`,b=c.img`
  width: 35px;
  height: auto;
`;function ae(){return e.jsxs(e.Fragment,{children:[e.jsx(k,{variant:"h3",children:"Resources"}),e.jsxs(se,{children:[e.jsxs(m,{children:[e.jsxs(r.Header,{children:[e.jsx(r.HeaderTitle,{children:e.jsx(s,{variant:"h5",children:"FMU Hub"})}),e.jsx(b,{src:N})]}),e.jsx(r.Content,{children:e.jsx(d,{children:"FMU Hub - the place for everything related to FMU. Expert or noob, user or developer, skeptic or believer - the site is for you and the rest of the amazing FMU community."})}),e.jsx(r.Actions,{children:e.jsx(s,{link:!0,target:"_blank",rel:"noopener noreferrer",href:"https://fmu.equinor.com/",children:"Homepage"})})]}),e.jsxs(m,{children:[e.jsxs(r.Header,{children:[e.jsx(r.HeaderTitle,{children:e.jsx(s,{variant:"h5",children:"Sumo"})}),e.jsx(b,{src:ie})]}),e.jsx(r.Content,{children:e.jsx(d,{children:"Sumo is a solution for receiving, storing and serving results produced by numerical predictive models of the subsurface."})}),e.jsxs(r.Actions,{children:[e.jsx(s,{link:!0,target:"_blank",rel:"noopener noreferrer",href:"https://fmu-sumo.app.radix.equinor.com/",children:"Homepage"}),e.jsx(s,{link:!0,target:"_blank",rel:"noopener noreferrer",href:"https://doc-sumo-doc-prod.radix.equinor.com/",children:"Documentation"})]})]}),e.jsxs(m,{children:[e.jsxs(r.Header,{children:[e.jsx(r.HeaderTitle,{children:e.jsx(s,{variant:"h5",children:"ERT"})}),e.jsx(b,{src:te})]}),e.jsx(r.Content,{children:e.jsx(d,{children:"ERT - Ensemble based Reservoir Tool - is a tool to run ensemble-based reservoir models."})}),e.jsx(r.Actions,{children:e.jsx(s,{link:!0,target:"_blank",rel:"noopener noreferrer",href:"https://fmu-docs.equinor.com/docs/ert/index.html",children:"Documentation"})})]}),e.jsxs(m,{children:[e.jsxs(r.Header,{children:[e.jsx(r.HeaderTitle,{children:e.jsx(s,{variant:"h5",children:"Webviz"})}),e.jsx(b,{src:oe})]}),e.jsx(r.Content,{children:e.jsx(d,{children:"Webviz is a visualization tool and facilitate easy access of FMU modelling results."})}),e.jsx(r.Actions,{children:e.jsx(s,{link:!0,target:"_blank",rel:"noopener noreferrer",href:"https://webviz.fmu.equinor.com",children:"Documentation"})})]}),e.jsxs(m,{children:[e.jsx(r.Header,{children:e.jsx(r.HeaderTitle,{children:e.jsx(s,{variant:"h5",children:"fmu-dataio"})})}),e.jsx(r.Content,{children:e.jsx(d,{children:"fmu-dataio contains utility functions for data transfer of FMU data with rich metadata, for REP, Sumo, Webviz, etc."})}),e.jsx(r.Actions,{children:e.jsx(s,{link:!0,target:"_blank",rel:"noopener noreferrer",href:"https://fmu-dataio.readthedocs.io/en/latest/",children:"Documentation"})})]})]})]})}function de({projectData:n}){var t;return e.jsxs(A,{children:[e.jsx(k,{$variant:"h3",$marginBottom:"0",children:n.project_dir_name}),e.jsxs(d,{children:[e.jsx("span",{className:"emphasis",children:n.path}),e.jsx("br",{}),"Last modified:"," ",n.config.last_modified_at?e.jsxs(e.Fragment,{children:[F(n.config.last_modified_at)," by"," ",n.config.last_modified_by??e.jsx("span",{className:"missingValue",children:"unknown"})]}):e.jsx("span",{className:"missingValue",children:"unknown"})]}),e.jsx(d,{$marginBottom:"0",children:(t=n.config.model)!=null&&t.description?e.jsx("span",{className:"multilineValue",children:n.config.model.description}):e.jsx("span",{className:"missingValue",children:"No description found for the model"})})]})}const ue=function(){var i;const t=R();return e.jsxs(e.Fragment,{children:[e.jsx(k,{children:"FMU Settings"}),e.jsx(d,{$variant:"ingress",children:"This is an application for managing the settings of FMU projects."}),t.data?e.jsx(de,{projectData:t.data}):e.jsxs(e.Fragment,{children:[e.jsx(d,{children:"No project selected"}),e.jsx(z,{projectReadOnly:!(((i=t.lockStatus)==null?void 0:i.is_lock_acquired)??!1)})]}),e.jsx($,{}),e.jsx(ae,{})]})};export{ue as component};
