mirror of
https://github.com/OpenMaxIO/openmaxio-object-browser
synced 2026-07-01 07:41:18 -07:00
2 lines
5.3 KiB
JavaScript
2 lines
5.3 KiB
JavaScript
"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[5153],{72237:(e,t,n)=>{n.d(t,{A:()=>l});var o=n(65043),i=n(70579);const l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n){return(0,i.jsx)(o.Suspense,{fallback:t,children:(0,i.jsx)(e,{...n})})}}},35153:(e,t,n)=>{n.r(t),n.d(t,{default:()=>j});var o=n(65043),i=n(89923),l=n(20649),s=n(56969),r=n(94574),a=n(33097),c=n.n(a),d=n(70579);const p=e=>(0,d.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"min-icon",fill:"currentcolor",...e,children:(0,d.jsx)("polygon",{points:"8.5 16.5 21.5 3.6 23.4 5.5 8.5 20.4 .6 12.5 2.5 10.5 8.5 16.5"})}),u=r.Ay.div((e=>{let{theme:t}=e;return{display:"grid",gridTemplateColumns:"repeat(1, minmax(350px, 400px));",alignItems:"center",justifyContent:"center",marginTop:30,marginLeft:30,"& > div":{borderBottom:`${c()(t,"borderColor","#EAEAEA")} 1px solid`,padding:"13px 20px",justifyContent:"center","&.openSource":{borderRight:"#002562 2px solid",borderLeft:"#002562 2px solid",position:"relative","&.first:before":{content:"' '",width:"calc(100% + 4px)",height:16,display:"block",backgroundColor:"#001F55",position:"absolute",top:-14,left:-2,border:"#002562 2px solid",borderBottom:0,borderTopLeftRadius:12,borderTopRightRadius:12},"&.last":{paddingBottom:30,"&:after":{content:"' '",width:"calc(100% + 4px)",height:16,display:"block",position:"absolute",bottom:-14,left:-2,border:"#002562 2px solid",borderTop:0,borderBottomLeftRadius:12,borderBottomRightRadius:12}}},"&.feature-information":{textAlign:"center"},"&.feature-label":{paddingLeft:5},"&.noBorderBottom":{borderBottom:0}},"& .planName":{fontWeight:600,fontSize:35,marginBottom:20,textAlign:"center",marginTop:10},"& .planIcon":{height:45,display:"flex",alignItems:"flex-start",justifyContent:"center","& svg":{height:35},"&.commercial":{"& svg":{height:20}}},"& .planDescription":{display:"flex",justifyContent:"center"}}})),m=e=>{var t;let{licenseInfo:n}=e,l=n?null===n||void 0===n||null===(t=n.plan)||void 0===t?void 0:t.toLowerCase():"community";const r=(e,t,n)=>{let o="community"!==l?"https://subnet.min.io":e;return(0,d.jsx)(i.$nd,{id:`license-action-${e}`,variant:n,sx:{marginTop:"12px",width:"80%",height:"55px"},onClick:e=>{e.preventDefault(),window.open(`${o}?ref=con`,"_blank")},label:t})};return(0,d.jsxs)(u,{children:[[null,...s.qZ].map(((e,t)=>(0,d.jsx)(i.azJ,{className:""+(1===t?"openSource first":""),children:null!==e&&(0,d.jsxs)(i.azJ,{children:[(0,d.jsx)(i.azJ,{className:"planName",children:e.planName}),(0,d.jsx)(i.azJ,{className:"planIcon "+("commercial"===e.planType?"commercial":""),children:null===e||void 0===e?void 0:e.planIcon}),(0,d.jsx)(i.azJ,{className:"planDescription",children:null===e||void 0===e?void 0:e.planDescription})]})},`${null===e||void 0===e?void 0:e.planType}-${t}`))),s.c_.map(((e,t)=>{return(0,d.jsxs)(i.azJ,{className:"feature-information",sx:{display:"flex",borderLeft:"#002562 2px solid",borderRight:"#002562 2px solid",flexDirection:"column",gap:"10px",alignItems:"center"},children:[(0,d.jsx)(i.azJ,{className:"feature-label ",children:e.featureLabel}),(n=e.featurePlans.eosPlus||null,n?(0,d.jsxs)(o.Fragment,{children:[n.content,n.isCheck&&(0,d.jsx)(p,{style:{width:16,height:16}})]}):(0,d.jsx)(o.Fragment,{}))]},`${e.featureLabel}-${t}`);var n})),[...s.qZ].map((e=>e&&"community"===l?(0,d.jsx)("div",{style:{borderLeft:"#002562 2px solid",display:"flex",alignItems:"center",justifyContent:"center",borderRight:"#002562 2px solid",borderBottom:"#002562 2px solid",borderBottomLeftRadius:"10px",borderBottomRightRadius:"10px"},children:r("commercial"===e.planType?"https://min.io/signup":"https://slack.min.io","commercial"===e.planType?"Subscribe":"Join Slack","commercial"===e.planType?"callAction":"regular")},"plan-subscribe-btn"):(0,d.jsx)("div",{style:{borderLeft:"#002562 2px solid",display:"flex",alignItems:"center",justifyContent:"center",borderRight:"#002562 2px solid",borderBottom:"#002562 2px solid",borderBottomLeftRadius:"10px",borderBottomRightRadius:"10px"},children:r("https://subnet.min.io/","Log in to SUBNET","callAction")},"plan-subscribe-btn-1")))]})};var x=n(72237),f=n(48793),h=n(64159),b=n(21383);const g=(0,x.A)(o.lazy((()=>n.e(8963).then(n.bind(n,98963))))),j=()=>{const[e,t]=(0,o.useState)(!1),[n,r]=(0,o.useState)(),[a,c]=(0,o.useState)(0),[p,u]=(0,o.useState)(!1),[x,j]=(0,o.useState)(!0);(0,o.useState)(!1);const[v,y]=(0,o.useState)(!1),[R,S]=(0,o.useState)(!1),L=(0,b.jL)();(0,o.useEffect)((()=>{L((0,h.ph)("license"))}),[]);const T=n&&v,E=(0,s.Gy)();(0,o.useEffect)((()=>{!T&&!E&&!x&&!p&&S(!0)}),[T,E,x,p]);const A=(0,o.useCallback)((()=>{p||(u(!0),l.A.invoke("GET","/api/v1/subnet/info").then((e=>{e&&("STANDARD"===e.plan?c(1):["ENTERPRISE","ENTERPRISE-LITE","ENTERPRISE-PLUS"].includes(e.plan)?c(2):c(1),r(e)),y(!0),u(!1)})).catch((()=>{y(!1),u(!1)})))}),[p]);return(0,o.useEffect)((()=>{x&&(A(),j(!1))}),[A,x,j]),p?(0,d.jsx)(i.xA9,{item:!0,xs:12,children:(0,d.jsx)(i.z21,{})}):(0,d.jsxs)(o.Fragment,{children:[(0,d.jsx)(f.A,{label:"MinIO License and Support Plan"}),(0,d.jsxs)(i.Mxu,{children:[(0,d.jsx)(m,{activateProductModal:e,closeModalAndFetchLicenseInfo:()=>{t(!1),A()},licenseInfo:n,currentPlanID:a,setActivateProductModal:t}),(0,d.jsx)(g,{isOpen:R,onClose:()=>{S(!1)}})]})]})}}}]);
|
|
//# sourceMappingURL=5153.a670aac5.chunk.js.map
|