PageSourceSearch

https://labs.rowansci.com/_next/static/chunks/3gj3y1se_4jt1.js

js rowansci.com collected 2026-09-25 15:24:20 UTC 42,686 bytes, 4 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,138310,e=>{"use strict";var t=e.i(271645);let r=t.forwardRef(function({title:e,titleId:r,...a},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15m3 0 3-3m0 0-3-3m3 3H9"}))});e.s(["ArrowRightStartOnRectangleIcon",0,r],138310)},247914,e=>{"use strict";var t=e.i(271645);let r=t.forwardRef(function({title:e,titleId:r,...a},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"}))});e.s(["ArrowUpIcon",0,r],247914)},474121,e=>{"use strict";var t=e.i(271645);let r=t.forwardRef(function({title:e,titleId:r,...a},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))});e.s(["Bars3Icon",0,r],474121)},269519,e=>{"use strict";var t=e.i(271645);let r=t.forwardRef(function({title:e,titleId:r,...a},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21"}))});e.s(["BuildingOfficeIcon",0,r],269519)},850820,e=>{"use strict";var t=e.i(271645);let r=t.forwardRef(function({title:e,titleId:r,...a},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"}))});e.s(["CircleStackIcon",0,r],850820)},694281,e=>{"use strict";var t=e.i(271645);let r=t.forwardRef(function({title:e,titleId:r,...a},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 8.25h19.5M2.25 9h19.5m-16.5 5.25h6m-6 2.25h3m-3.75 3h15a2.25 2.25 0 0 0 2.25-2.25V6.75A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25v10.5A2.25 2.25 0 0 0 4.5 19.5Z"}))});e.s(["CreditCardIcon",0,r],694281)},165683,e=>{"use strict";var t=e.i(271645);let r=t.forwardRef(function({title:e,titleId:r,...a},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.85
17-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776"}))});e.s(["FolderOpenIcon",0,r],165683)},255615,e=>{"use strict";var t=e.i(271645);let r=t.forwardRef(function({title:e,titleId:r,...a},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"}))});e.s(["HomeIcon",0,r],255615)},924189,e=>{"use strict";var t=e.i(271645);let r=t.forwardRef(function({title:e,titleId:r,...a},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"}))});e.s(["KeyIcon",0,r],924189)},39875,e=>{"use strict";var t=e.i(271645);let r=t.forwardRef(function({title:e,titleId:r,...a},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))});e.s(["MagnifyingGlassIcon",0,r],39875)},302292,e=>{"use strict";var t=e.i(271645);let r=t.forwardRef(function({title:e,titleId:r,...a},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h7.5c.621 0 1.125-.504 1.125-1.125m-9.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-7.5A1.125 1.125 0 0 1 12 18.375m9.75-12.75c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125m19.5 0v1.5c0 .621-.504 1.125-1.125 1.125M2.25 5.625v1.5c0 .621.504 1.125 1.125 1.125m0 0h17.25m-17.25 0h7.5c.621 0 1.125.504 1.125 1.125M3.375 8.25c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m17.25-3.75h-7.5c-.621 0-1.125.504-1.125 1.125m8.625-1.125c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M12 10.875v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125M13.125 12h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125M20.625 12c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5M12 14.625v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 14.625c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m0 1.5v-1.5m0 0c0-.621.504-1.125 1.125-1.125m0 0h7.5"}))});e.s(["TableCellsIcon",0,r],302292)},673130,e=>{"use strict";var t=e.i(271645);let r=t.forwardRef(function({title:e,titleId:r,...a},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},a),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))});e.s(["UserCircleIcon",0,r],673130)},830328,e=>{"use strict";var t=e.i(202086);async function r(e,r){let a=new FormData;a.append("subject",e.subject),a.append("body",e.body),e.attachments&&e.attachments.forEac
1h(e=>{a.append("attachments",e)});let{success:i}=await (0,t.default)({url:"/api/external/front/issue",method:"POST",body:a,addMessage:r});return i}async function a(e,r){let{success:a}=await (0,t.default)({url:"/api/external/send_email",method:"POST",body:e,addMessage:r});return a}async function i(e){let{json:r,success:a}=await (0,t.default)({url:"/api/external/stripe/available_subscriptions",method:"GET",addMessage:e});return!!a&&r}async function s(e,r){let a=(0,t.buildQueryURL)("/api/external/stripe/subscription_checkout",{subscription_plan:e||""}),{json:i,success:s}=await (0,t.default)({url:a,method:"POST",addMessage:r});return!!s&&i}async function n(e,r){let a=(0,t.buildQueryURL)("/api/external/stripe/credit_purchase",e),{json:i,success:s}=await (0,t.default)({url:a,method:"POST",addMessage:r});return!!s&&i}async function l(e){let{success:r}=await (0,t.default)({url:"/api/external/stripe/cancel_subscription",method:"POST",addMessage:e});return r}async function o(e){let{success:r}=await (0,t.default)({url:"/api/external/stripe/uncancel_subscription",method:"POST",addMessage:e});return r}async function c(){let{json:e,success:r}=await (0,t.default)({url:"/api/external/stripe/cancellation_time"});return!!r&&e}e.s(["CancelSubscription",0,l,"CreateCreditPurchaseCheckout",0,n,"CreateFrontIssue",0,r,"CreateSubscriptionCheckout",0,s,"GetAvailableSubscriptions",0,i,"SendEmail",0,a,"SubscriptionCancellationTime",0,c,"UncancelSubscription",0,o])},66334,177946,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(830328),i=e.i(28933),s=e.i(64625),n=e.i(853315),l=e.i(645913),o=e.i(265843),c=e.i(260223),d=e.i(498660),u=e.i(29833),m=e.i(283599);let h=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE"],f=["AU","BD","IN","IL","JP","KR","NZ"];function p(){let{user:e}=(0,r.useContext)(o.UserContext),{data:t}=(0,m.default)("/api/user/me/billing_information",()=>(0,u.ReadUserBillingInformation)());return((t||void 0)?.billing_address?.country||e?.billing_address?.country||e?.organization?.billing_address?.country||e?.signup_data?.country_code||"").toUpperCase()}function g(){let e=function(){let[e,t]=(0,r.useState)([]);return(0,r.useEffect)(()=>{(0,c.loadCsv)("/countries/countries.csv",3,!0).then(e=>{t(Array.from(new Map(e.map(([e,t,r])=>{let a=r.toUpperCase();return[a,{name:e,emoji:t,code:a}]}).filter(([e])=>"EU"!==e)).values()))}).catch(e=>console.error("Failed to load country data:",e))},[]),e}(),a=p(),[s,o]=(0,r.useState)(""),[u,m]=(0,r.useState)(""),g=(0,r.useMemo)(()=>e.map(e=>({name:`${e.name} ${e.emoji}`,value:e.code})),[e]);(0,r.useEffect)(()=>{a&&!u&&o(a)},[a,u]),(0,r.useEffect)(()=>{if(!s||u)return;let t=e.find(e=>e.code===s);t&&m(`${t.name} ${t.emoji}`)},[e,s,u]);let x=h.includes(s)||"GB"===s,b=f.includes(s),w=!!s&&"US"!==s&&!x;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Label,{htmlFor:"shared-billing-notes-country",className:"mb-1",children:"Your country"}),(0,t.jsx)(l.default,{id:"shared-billing-notes-country",name:"country",placeholder:"Country",inputValue:u,setInputValue:t=>{m(t.name),o(e.map(e=>e.code).includes(t.value)?t.value:"")},options:g,className:"mb-2 w-full max-w-64",disabled:!e.length}),w&&(0,t.jsxs)("p",{className:"mb-4",children:["Paid features have ",(0,t.jsx)(i.Anchor,{href:"/geographic-coverage",children:"limited availability"})," ","outside the US, the EU, and the UK."]}),x&&(0,t.jsxs)("p",{children:["Business customers: If you are VAT registered, please provide your VAT ID before completing checkout by emailing"," ",(0,t.jsx)(i.Anchor,{href:`mailto:${(0,d.env)("NEXT_PUBLIC_SALES_EMAIL")}`,children:(0,d.env)("NEXT_PUBLIC_SALES_EMAIL")}),". Purchases completed without a VAT ID will be treated as a consumer transaction, and VAT may be charged."]}),b&&(0,t.jsxs)("p",{children:["Business customers: B2B transactions are available via reverse charge. Please email"," ",(0,t.jsx)(i.Anchor,{href:`mailto:${(0,d.env)("NEXT_PUBLIC_SALES_EMAIL")}`,children:(0,d.env)("NEXT_PUBLIC_SALES_EMAIL")})," ","with your company name, billing address, and tax ID to enable paid features. Paid features are not available for consumer (B2C) purchases in your country."]}),(0,t.jsx)(i.HorizontalRule,{className:"my-4"}),(0,t.jsxs)("p",{children:["If you have questions about billing & cancellations or need assistance, please contact us at"," ",(0,t.jsx)(i.Anchor,{href:`mailto:${(0,d.env)("NEXT_PUBLIC_SALES_EMAIL")}`,children:(0,d.env)("NEXT_PUBLIC_SALES_EMAIL")}),"."]})]})}e.s(["SharedBillingNotes",0,g,"useDefaultCountry",0,p],177946);var x=e.i(146087),b=e.i(468879);e.i(19977);var w=e.i(93422),v=e.i(147060),j=e.i(519367),y=e.i(206672),k=e.i(855915);let C=["Geometry optimization","Conformational searching","Docking","Protein–ligand co-folding","And 15+ other core workflows"],_=["Solvent-dependent conformers",(0,t.jsxs)(t.Fragment,{children:["Macroscopic p",(0,t.jsx)("i",{children:"K"}),(0,t.jsx)("sub",{children:"a"})]}),"Hydrogen-bond donor/acceptor strength","Bond-dissociation energy","Pose-analysis MD","Batch docking","And 5+ other advanced workflows"],T=["Free-energy perturbation"],N=['Everything included in "Free"',..._],S=["Pri
1ority queuing","Self-service subscription management"],E=['Everything included in "Free Academic"',..._],I=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}),U=new Intl.NumberFormat("en-US",{maximumFractionDigits:1});function A({price:e}){return e?"label"in e?(0,t.jsx)("span",{className:"text-xl font-medium",children:e.label}):(0,t.jsxs)("span",{className:"font-medium",children:[(0,t.jsx)("span",{className:"text-xl",children:I.format(e.amountUSD)}),e.cadence&&` per ${e.cadence}`]}):null}function L(e){switch(e){case"individual":return{id:e,name:"Individual",highlight:!0,price:{amountUSD:300,cadence:"month"},weeklyCredits:2e3,access:N,features:S,description:"For individual scientists and early-stage R&D teams that want self-serve access"};case"individual annual":return{id:e,name:"Individual",highlight:!0,price:{amountUSD:3060,cadence:"year"},weeklyCredits:2e3,access:N,features:S,description:"For individual scientists and early-stage R&D teams that want self-serve access"};case"individual academic":return{id:e,name:"Individual Academic",highlight:!0,price:{amountUSD:65,cadence:"month"},weeklyCredits:500,access:E,features:S,description:"For graduate students, postdocs, and faculty with recurring workloads"};case"individual academic annual":return{id:e,name:"Individual Academic",highlight:!0,price:{amountUSD:702,cadence:"year"},weeklyCredits:500,access:E,features:S,description:"For graduate students, postdocs, and faculty with recurring workloads"};case"group_potemkin":return{id:e,name:"Group Academic",price:{label:"Custom"},access:["Custom pooled usage",'Everything included in "Individual Academic"',...T],features:["Priority queuing","Role-based access controls","Shared workspaces and secure collaboration"],description:"For research groups, academic labs, and departments that need shared access",getInTouch:!0};case"business_potemkin":return{id:e,name:"Enterprise",price:{label:"Custom"},access:["Custom pooled usage",'Everything included in "Individual"',...T,"Higher-throughput / organization-scale workflows","Custom workflow development available"],features:["Priority queuing","Role-based access controls","Shared workspaces and secure collaboration","Security & compliance documentation","Single-tenant or customer-managed deployment options","Priority support via private Slack","Onboarding and training"],description:"For teams that need collaboration, enterprise controls, support, or dedicated deployment",getInTouch:!0};default:return{id:e,name:e.replace(/[-_]+/g," ").replace(/\b\w/g,e=>e.toUpperCase())}}}function M({planName:e,isAnnual:r}){let a=!!e&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("strong",{className:"font-semibold",children:e})," "]});return(0,t.jsxs)("div",{className:"space-y-4",children:[r?(0,t.jsxs)("p",{children:["When you subscribe to the ",a,"plan with annual billing, you'll be billed once upfront for the full year at the time of purchase. All subscriptions automatically renew at the end of the billing cycle unless you cancel before the renewal date. We'll send you a reminder email before your annual renewal so you're never caught by surprise."]}):(0,t.jsxs)("p",{children:["When you subscribe to the ",a,"plan with monthly billing, you'll be billed at the time of purchase and renew on the same day each month. All subscriptions automatically renew at the end of the billing cycle unless you cancel before the renewal date."]}),(0,t.jsx)("p",{children:"You can manage or cancel your subscription anytime in your account settings. If you cancel, your plan will remain active until the end of your current billing period."}),(0,t.jsx)("p",{children:"All subscription payments are non-refundable."}),(0,t.jsx)(i.HorizontalRule,{}),(0,t.jsx)(g,{})]})}e.s(["UpgradeAccount",0,function({modalID:e}){let l=`${e}-confirm`,{addMessage:c}=(0,b.useMessageQueue)(),{user:u,planType:m}=(0,r.useContext)(o.UserContext),{activeModal:h,setActiveModal:f}=(0,w.useModalContext)(),[p,g]=(0,r.useState)(null),[_,T]=(0,r.useState)(null),[N,S]=(0,r.useState)(null),[E,I]=(0,r.useState)("monthly");(0,r.useEffect)(()=>{h===e&&(0,a.GetAvailableSubscriptions)(c).then(e=>g(!1===e?[]:e))},[h,e,c]);let B=(0,r.useMemo)(()=>u&&u.is_academic&&"organization"!==m?"group_potemkin":u&&!u.is_academic&&"organization"!==m?"business_potemkin":void 0,[u,m]),R=(0,r.useMemo)(()=>null!==p&&0===p.length,[p]),P=async e=>{T(e);let t=await (0,a.CreateSubscriptionCheckout)(e,c);if(t){window.location.href=t;return}c({title:"Checkout not available",body:"We couldn't start checkout for that plan. Please try again.",style:"warning"}),T(null)},O=async()=>{N&&(await P(N),f(null),S(null))},F=()=>{f(null),S(null)},D=(0,r.useMemo)(()=>p?.find(e=>e.startsWith("individual")&&!e.endsWith(" annual")),[p]),W=(0,r.useMemo)(()=>p?.find(e=>e.startsWith("individual")&&e.endsWith(" annual")),[p]),$="yearly"===E?W?"yearly":"monthly":D?"monthly":"yearly",z=("yearly"===$?W:D)??W,H=u?.is_academic?"10%":"15%",G=u?.individual_subscription?.subscription_plan.default_weekly_credits??(u?.is_academic?100:20),V=(0,r.useMemo)(()=>
1{let e={id:"free",name:u?.is_academic?"Free Academic":"Free",price:{amountUSD:0},weeklyCredits:G,access:C,features:[],current:!0,description:u?.is_academic?"For coursework, projects, and exploratory research":"For evaluation and light exploratory work"},t=z?L(z):void 0,r=t?.weeklyCredits&&G>0?t.weeklyCredits/G:void 0,a=t&&r&&r>1?{...t,usageComparison:`${U.format(r)}x ${e.name}'s credits`}:t;return[e,a,B?L(B):void 0].filter(e=>!!e)},[B,G,z,u]);return(0,k.envBool)("NEXT_PUBLIC_STRIPE_BILLING_ON")?R||"organization"===m?(0,t.jsxs)(j.default,{modalID:e,size:"xlarge",title:"Upgrade your account",children:["No self-service upgrade options are available for your account right now. If you believe this to be in error, please email"," ",(0,t.jsx)(i.Anchor,{href:`mailto:${(0,d.env)("NEXT_PUBLIC_SUPPORT_EMAIL")}`,children:(0,d.env)("NEXT_PUBLIC_SUPPORT_EMAIL")}),"."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(j.default,{modalID:e,size:"xlarge",title:"Upgrade your account",children:[(0,t.jsx)("div",{className:"mb-2 rounded-md border border-dark_acc-std",children:null===p?(0,t.jsx)("p",{className:"p-4 text-center",children:"Loading plans ..."}):(0,t.jsxs)(y.TableFullWidth,{className:"table-fixed",children:[(0,t.jsx)(y.TableHead,{children:(0,t.jsx)(y.TableRow,{children:V.map((e,r)=>(0,t.jsx)(y.TableHeader,{className:(0,x.classNames)(0!==r&&"border-l border-l-dark_acc-std",!!e.highlight&&"bg-offlight","text-center align-top text-dark!"),children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1 py-2",children:[(0,t.jsx)("span",{className:"text-xl font-medium",children:e.name}),(0,t.jsx)("span",{className:"text-sm font-normal",children:e.description})]})},e.id))})}),(0,t.jsxs)(y.TableBody,{children:[(0,t.jsx)(y.TableRow,{children:V.map((e,r)=>(0,t.jsx)(y.TableData,{className:(0,x.classNames)(0!==r&&"border-l border-l-dark_acc-std",!!e.highlight&&"bg-offlight","text-center"),children:(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 py-2",children:[(0,t.jsx)(A,{price:e.price}),e.id===z&&(0,t.jsx)(n.SegmentedToggle,{buttonClassName:"py-0.5",contentSized:!0,options:[{value:"monthly",label:"Monthly",disabled:!D},{value:"yearly",label:`Yearly \xb7 Save ${H}`,disabled:!W}],value:$,onChange:I})]})},e.id))}),(0,t.jsx)(y.TableRow,{children:V.map((e,r)=>(0,t.jsx)(y.TableData,{className:(0,x.classNames)(0!==r&&"border-l border-l-dark_acc-std",!!e.highlight&&"bg-offlight","py-2!"),children:(0,t.jsx)("div",{className:"flex flex-col items-center",children:e.current?(0,t.jsx)(v.Button,{variant:"offlight",type:"button",disabled:!0,children:"Current plan"}):e.getInTouch?(0,t.jsxs)(v.ButtonLink,{variant:"offlight",href:`mailto:${(0,d.env)("NEXT_PUBLIC_SALES_EMAIL")}`,children:["Get ",e.name," plan"]}):(0,t.jsx)(v.Button,{type:"button",variant:e.highlight?"primary":"offlight",onClick:()=>{S(e.id),f(l)},disabled:!!_,children:_===e.id?"Loading ...":`Get ${e.name} plan`},e.id)})},e.id))}),(0,t.jsx)(y.TableRow,{children:V.map((e,r)=>{var a,i;let n,l=[...null==e.weeklyCredits?[]:[(a=e.weeklyCredits,i=e.usageComparison,n=`${U.format(a)} credits/week`,i?`${n} (${i})`:n)],...e.access??[]];return(0,t.jsx)(y.TableData,{className:(0,x.classNames)(0!==r&&"border-l border-l-dark_acc-std",!!e.highlight&&"bg-offlight","py-2! align-top"),children:l.length>0&&(0,t.jsx)(s.UnorderedList,{className:"mb-0! w-full pl-6!",role:"list",children:l.map((e,r)=>(0,t.jsx)(s.ListItem,{children:e},r))})},e.id)})}),(0,t.jsx)(y.TableRow,{children:V.map((e,r)=>(0,t.jsx)(y.TableData,{className:(0,x.classNames)(0!==r&&"border-l border-l-dark_acc-std",!!e.highlight&&"bg-offlight","py-2! align-top"),children:e.features?.length>0&&(0,t.jsx)(s.UnorderedList,{className:"mb-0! w-full pl-6!",role:"list",children:e.features.map((e,r)=>(0,t.jsx)(s.ListItem,{children:e},r))})},e.id))})]})]})}),(0,t.jsxs)(i.Paragraph,{className:"mb-0! italic",children:[(0,t.jsx)(i.Anchor,{href:"/geographic-coverage",children:"Availability may vary by region."})," "]})]}),(0,t.jsx)(j.default,{modalID:l,onClose:F,title:"Confirm upgrade",size:"medium",bottomDiv:(0,t.jsxs)("div",{className:"mt-3 mb-4 flex items-center justify-center gap-2",children:[(0,t.jsx)(v.Button,{variant:"offlight",type:"button",onClick:F,disabled:!!_,children:"Cancel"}),(0,t.jsx)(v.Button,{variant:"primary",type:"button",onClick:O,disabled:!!_||!N,children:_===N?"Redirecting":"Continue to checkout"})]}
1),children:(0,t.jsx)(M,{planName:N?L(N).name:void 0,isAnnual:!!N?.endsWith(" annual")})})]}):null}],66334)},698476,e=>{"use strict";var t=e.i(843476),r=e.i(64625),a=e.i(146087),i=e.i(965357),s=e.i(21132),n=e.i(534354);function l({credits:e}){return(0,t.jsx)("b",{className:"font-semibold",children:(0,i.default)(e,2)})}function o({total:e,remaining:r,className:a}){return e?(0,t.jsx)(s.UsageMeter,{used:e-r,total:e,className:a}):null}e.s(["CreditsBreakdown",0,function({user:e,className:i}){if(!e)return null;let c=(0,n.getUserWeeklyCredits)(e),d=(0,n.getUserPurchasedCredits)(e),u=(0,n.getOrgWeeklyCredits)(e),m=(0,n.getOrgPurchasedCredits)(e),h=(0,n.getOverageInfo)(e),f=(0,n.getTotalCredits)(e);return(0,t.jsxs)("div",{className:"max-w-3xl",children:[(0,t.jsxs)("p",{className:"mb-2",children:["Credits remaining: ",(0,t.jsx)(l,{credits:f})]}),(0,t.jsx)("p",{className:"mb-2",children:"When running jobs, credits will be consumed in the following order:"}),(0,t.jsxs)(r.OrderedList,{className:(0,a.classNames)("mb-2! [&_li]:my-2",i),children:[c.total+c.remaining>0&&(0,t.jsxs)(r.ListItem,{children:[(0,t.jsxs)("span",{children:["Weekly credits: ",(0,t.jsx)(l,{credits:c.remaining})," of"," ",(0,t.jsx)(l,{credits:c.total})," remaining",c.used>=0&&(0,t.jsxs)(t.Fragment,{children:[" ","(",(0,t.jsx)(l,{credits:c.used})," used)"]})]}),(0,t.jsx)(o,{total:c.total,remaining:c.remaining,className:"mt-1 max-w-sm"})]}),u.total+u.remaining>0&&(0,t.jsxs)(r.ListItem,{children:[(0,t.jsxs)("span",{children:["Organization-level weekly credits: ",(0,t.jsx)(l,{credits:u.remaining})," of"," ",(0,t.jsx)(l,{credits:u.total})," remaining",u.used>=0&&(0,t.jsxs)(t.Fragment,{children:[" ","(",(0,t.jsx)(l,{credits:u.used})," used)"]})]}),(0,t.jsx)(o,{total:u.total,remaining:u.remaining,className:"mt-1 max-w-sm"})]}),d>0&&(0,t.jsxs)(r.ListItem,{children:["Purchased credits: ",(0,t.jsx)(l,{credits:d})]}),m>0&&(0,t.jsxs)(r.ListItem,{children:["Organization-level purchased credits: ",(0,t.jsx)(l,{credits:m})]}),h.enabled&&(h.unlimited||(h.max??0)>0||h.used>0)&&(0,t.jsx)(r.ListItem,{children:h.unlimited?(0,t.jsxs)(t.Fragment,{children:["Overage credits: unlimited (",(0,t.jsx)(l,{credits:h.used})," used, billed monthly at $",n.OVERAGE_RATE_PER_CREDIT_USD.toFixed(2),"/credit)"]}):(0,t.jsxs)(t.Fragment,{children:["Overage credits: ",(0,t.jsx)(l,{credits:h.remaining??0})," of"," ",(0,t.jsx)(l,{credits:h.max??0})," remaining (",(0,t.jsx)(l,{credits:h.used})," used, billed monthly at $",n.OVERAGE_RATE_PER_CREDIT_USD.toFixed(2),"/credit)",(0,t.jsx)(s.UsageMeter,{used:h.used,total:h.max??0,className:"mt-1 max-w-sm"})]})})]})]})},"NextCredits",0,function({user:e}){if(!e)return null;let r=(0,n.getUserWeeklyCredits)(e),a=(0,n.getUserPurchasedCredits)(e),i=(0,n.getOrgWeeklyCredits)(e),c=(0,n.getOrgPurchasedCredits)(e),d=(0,n.getOverageInfo)(e),u=(0,n.getTotalCredits)(e),m=(0,t.jsx)(t.Fragment,{});return r.remaining>0?m=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{children:["Next: ",(0,t.jsx)(l,{credits:r.remaining})," remaining weekly credits (of"," ",(0,t.jsx)(l,{credits:r.total}),")"]}),(0,t.jsx)(o,{total:r.total,remaining:r.remaining,className:"mt-1"})]}):i.remaining>0?m=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{children:["Next: ",(0,t.jsx)(l,{credits:i.remaining})," organization weekly credits (of"," ",(0,t.jsx)(l,{credits:i.total}),")"]}),(0,t.jsx)(o,{total:i.total,remaining:i.remaining,className:"mt-1"})]}):a>0?m=(0,t.jsxs)("p",{children:["Next: ",(0,t.jsx)(l,{credits:a})," purchased credits"]}):c>0?m=(0,t.jsxs)("p",{children:["Next: ",(0,t.jsx)(l,{credits:c})," organization-level purchased credits"]}):d.enabled&&(d.unlimited||(d.remaining??0)>0)&&(m=d.unlimited?(0,t.jsx)("p",{children:"Next: unlimited overage credits"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{children:["Next: ",(0,t.jsx)(l,{credits:d.remaining??0})," overage credits (of"," ",(0,t.jsx)(l,{credits:d.max??0}),")"]}),(0,t.jsx)(s.UsageMeter,{used:d.used,total:d.max??0,className:"mt-1 max-w-sm"})]})),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mb-1",children:["Credits remaining: ",(0,t.jsx)(l,{credits:u})]}),m]})}])},799282,e=>{"use strict";var t=e.i(843476);e.i(19977);var r=e.i(265843),a=e.i(524652),i=e.i(146087),s=e.i(271645),n=e.i(24226);function l(e,t=60,r=45){let a=e.trim().toLowerCase(),i=0;for(let e=0;e<a.length;
1e++)i=31*i+a.charCodeAt(e)|0;let s=Math.abs(i)%360;return`hsl(${s}deg ${t}% ${r}%)`}function o({user:e}){let a=(0,s.useContext)(r.UserContext)?.user?.uuid,i=(0,s.useMemo)(()=>{let t=[];return e.organization_role?t.push(e.organization_role.name):e.is_owner&&t.push("project owner"),!1===e.active&&t.push("deactivated"),t},[e]);return(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsxs)("p",{children:[(0,t.jsxs)("b",{className:"font-semibold",children:[`${e.firstname} ${e.lastname}`,a===e.uuid?" (me)":""]}),(0,t.jsx)("br",{}),(0,t.jsx)("span",{className:"text-subtle",children:e.username}),(0,t.jsx)("br",{}),e.email]}),i.length>0&&(0,t.jsx)("div",{className:"flex gap-1",children:i.map(e=>(0,t.jsx)(n.Pill,{children:e},e))})]})}e.s(["UserCirclePreview",0,function({user:e,className:r}){let s=l(e.email);return(0,t.jsx)(a.Tooltip,{content:(0,t.jsx)(o,{user:e}),children:(0,t.jsx)("div",{className:(0,i.classNames)("flex size-6 cursor-pointer items-center justify-center rounded-full text-sm font-semibold text-white select-none",r),style:{background:s},title:`${e.firstname} ${e.lastname}`,children:e.firstname?.[0]?.toUpperCase()??"?"})})},"UserNameCirclePreview",0,function({name:e,className:r}){let s=l(e);return(0,t.jsx)(a.Tooltip,{content:e,children:(0,t.jsx)("div",{className:(0,i.classNames)("flex size-6 cursor-pointer items-center justify-center rounded-full text-sm font-semibold text-white select-none",r),style:{background:s},title:e,children:e.trim()[0]?.toUpperCase()??"?"})})}])},716388,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(853315),i=e.i(147060),s=e.i(830328);e.i(19977);var n=e.i(93422),l=e.i(519367),o=e.i(190108),c=e.i(627853);let d=r.forwardRef(function({title:e,titleId:t,...a},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},a),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 12.75c1.148 0 2.278.08 3.383.237 1.037.146 1.866.966 1.866 2.013 0 3.728-2.35 6.75-5.25 6.75S6.75 18.728 6.75 15c0-1.046.83-1.867 1.866-2.013A24.204 24.204 0 0 1 12 12.75Zm0 0c2.883 0 5.647.508 8.207 1.44a23.91 23.91 0 0 1-1.152 6.06M12 12.75c-2.883 0-5.647.508-8.208 1.44.125 2.104.52 4.136 1.153 6.06M12 12.75a2.25 2.25 0 0 0 2.248-2.354M12 12.75a2.25 2.25 0 0 1-2.248-2.354M12 8.25c.995 0 1.971-.08 2.922-.236.403-.066.74-.358.795-.762a3.778 3.778 0 0 0-.399-2.25M12 8.25c-.995 0-1.97-.08-2.922-.236-.402-.066-.74-.358-.795-.762a3.734 3.734 0 0 1 .4-2.253M12 8.25a2.25 2.25 0 0 0-2.248 2.146M12 8.25a2.25 2.25 0 0 1 2.248 2.146M8.683 5a6.032 6.032 0 0 1-1.155-1.002c.07-.63.27-1.222.574-1.747m.581 2.749A3.75 3.75 0 0 1 15.318 5m0 0c.427-.283.815-.62 1.155-.999a4.471 4.471 0 0 0-.575-1.752M4.921 6a24.048 24.048 0 0 0-.392 3.314c1.668.546 3.416.914 5.223 1.082M19.08 6c.205 1.08.337 2.187.392 3.314a23.882 23.882 0 0 1-5.223 1.082"}))});var u=e.i(427217),m=e.i(468879),h=e.i(50798),f=e.i(825827),p=e.i(842319),g=e.i(855915),x=e.i(28933),b=e.i(265843),w=e.i(494399),v=e.i(280880);let j="theres_a_fly_in_my_soup";e.s(["BugButton",0,function(){let{activeModal:e,setActiveModal:x}=(0,n.useModalContext)(),{addMessage:y}=(0,m.useMessageQueue)(),{user:k}=(0,r.useContext)(b.UserContext),[C,_]=(0,r.useState)(""),[T,N]=(0,r.useState)(""),[S,E]=(0,r.useState)(null),[I,U]=(0,r.useState)(!1),[A,L]=(0,r.useState)([]),M=(0,r.useRef)(null),[B,R]=(0,r.useState)("idle");if((0,r.useEffect)(()=>{if(e===j){_(""),E(null),N(""),U(!1),R("idle"),L([]);let e=window.location.href.replace((0,h.getBaseUrl)()+"/","").split("/");if(2===e.length&&(0,o.getItemTypeByHref)(e[0])){let t=(0,o.getItemTypeByHref)(e[0]),r=e[1];"folder"!==t&&"calculation"!==t?(0,c.getItemCalls)(t).read(r).then(e=>E((0,o.createItem)(t,e))):E(!1)}else E(!1)}},[e]),!(0,g.envBool)("NEXT_PUBLIC_FRONT_SUPPORT_ON"))return;let P=k?.organization?.public_sharing_disabled??!1,O=!!S&&"shared_with_rowan"in S&&!!S.shared_with_rowan;async function F(e){e.preventDefault(),R("pending");let t=null;if(I&&S&&!O){if(!await (0,c.getItemCalls)(S.itemType).update({...S.toEyrie(),shared_with_rowan:!0},y)){R("failure"),setTimeout(()=>R("idle"),2e3);return}t=`${(0,h.getBaseUrl)()}${(0,o.getItemTypeConfig)(S.itemType).href}/${S?.uuid}`}else O&&S&&(t=`${(0,h.getBaseUrl)()}${(0,o.getItemTypeConfig)(S.itemType).href}/${S?.uuid}`);let r=t?`Workflow link: ${t}
2${T}`:T;A.length>0&&(r+=`
3
4Attached files: ${A.map(e=>e.name).join(", ")}`),await (0,s.CreateFrontIssue)({subject:C,body:r,attachments:A},y)?(y({title:"Ticket created",body:"Thanks for your feedback. We'll respond to you via email soon.",style:"success",timeout:5e3}),_(""),E(null),N(""),L([]),R("success"),x(null)):(R("failure"),setTimeout(()=>R("idle"),2e3))}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Button,{variant:"offlight",onClick:()=>x(j),tooltip:"Report an issue/leave feedback",children:(0,t.jsx)(d,{className:"-mx-1 size-5"})}),(0,t.jsx)(l.default,{title:"Report an issue/leave feedback",size:"medium",modalID:j,children:(0,t.jsxs)("form",{onSubmit:F,className:"flex w-full flex-col gap-1",children:[(0,t.jsx)(w.LabeledInput,{label:"Subject",id:"subject",className:"mb-1 w-full max-w-md",onChange:e=>_(e.target.value),value:C,placeholder:"Redox potential workflow won't load"}),!P&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center gap-x-1",children:[(0,t.jsx)(a.Label,{disabled:!S||O,htmlFor:"shareWithRowan",children:"Share workflow with Rowan?"}),!!S&&!O&&(0,t.jsx)(f.InfoTooltip,{children:"This option will allow the Rowan developer team to view this workflow as they work to resolve your issue. It will not make the workflow public."})]}),(0,t.jsxs)("div",{className:"mb-1 flex items-center gap-x-2",children:[(0,t.jsx)(a.Input,{type:"checkbox",id:"shareWithRowan",disabled:!S||O,onChange:()=>U(!I),checked:O||I}),(0,t.jsx)(a.PlainTextLabel,{htmlFor:"shareWithRowan",disabled:!S||O,children:null===S?"Loading ...":!1===S?"Not viewing a workflow":O?"Workflow already shared with Rowan":"Share workflow with Rowan"})]})]}),(0,t.jsx)(a.Label,{htmlFor:"description",children:"Description"}),(0,t.jsx)(a.TextArea,{id:"description",className:"mb-1 max-h-[50vh] w-full resize-none",rows:5,onChange:e=>N(e.target.value),value:T,placeholder:"On Google Chrome, my iron-containing redox potential prediction won't load."}),(0,t.jsx)(a.Label,{htmlFor:"file-upload",children:"Attachments (optional)"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("input",{id:"file-upload",type:"file",className:"hidden",multiple:!0,onChange:function(e){e.target.files&&L(Array.from(e.target.files))},ref:M}),(0,t.jsx)(i.Button,{variant:"light_acc",type:"button",onClick:()=>{M.current&&M.current.click()},children:"Choose files"})]}),A.length>0&&A.map((e,r)=>(0,t.jsxs)("div",{className:"flex items-center gap-1 text-sm",children:[(0,t.jsx)("button",{type:"button",onClick:()=>
4{L(A.filter((e,t)=>t!==r))},children:(0,t.jsx)(u.XMarkIcon,{className:"size-5"})}),(0,t.jsx)("span",{className:"truncate",children:e.name}),(0,t.jsxs)("span",{className:"whitespace-nowrap text-subtle",children:["(",(0,p.prettyPrintBytes)(e.size),")"]})]},r)),(0,t.jsxs)("div",{className:"mt-3 flex justify-center gap-2",children:[(0,t.jsx)(i.Button,{type:"button",variant:"offlight",onClick:()=>x(null),children:"Close"}),(0,t.jsx)(i.Button,{type:"submit",variant:"primary",id:"update-user",disabled:!C||!T||"pending"===B,children:v.SUBMIT_STATUS_BUTTON_TEXT[B]})]})]})})]})},"OpenTicketLink",0,function(){let{setActiveModal:e}=(0,n.useModalContext)();if((0,g.envBool)("NEXT_PUBLIC_FRONT_SUPPORT_ON"))return(0,t.jsx)("p",{className:"mt-1",children:(0,t.jsx)(x.Anchor,{onClick:()=>e(j),variant:"error",children:"Open a support ticket."})})}],716388)},331888,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(39875),i=e.i(427217),s=e.i(853315),n=e.i(146087);let l=(0,r.forwardRef)(function({value:e,onChange:r,onClear:l,containerClassName:o,inputClassName:c,disabled:d,...u},m){return(0,t.jsxs)("div",{className:(0,n.classNames)("relative flex items-center",o),children:[(0,t.jsx)(a.MagnifyingGlassIcon,{className:(0,n.classNames)("absolute left-0 ml-2.5 size-5 stroke-dark_acc-std",d?"opacity-50":"")}),(0,t.jsx)(s.Input,{ref:m,value:e,onChange:e=>r(e.target.value),disabled:d,className:(0,n.classNames)("px-9",c),...u}),e.length>0&&(0,t.jsx)("button",{type:"button",onClick:()=>{l?l():r("")},className:"absolute right-0 mr-1.5 p-1 disabled:opacity-50",disabled:d,children:(0,t.jsx)(i.XMarkIcon,{className:"size-5 stroke-dark_acc-std align-text-top"})})]})});e.s(["SearchInput",0,l])},21132,e=>{"use strict";var t=e.i(843476),r=e.i(146087);e.s(["UsageMeter",0,function({used:e,total:a,className:i,showOver:s}){if(!a||a<=0)return null;let n=e>a,l=Math.min(Math.ceil(e/a*100),100),o=n&&s?a/e*100:l,c=n&&s?(e-a)/e*100:0;return(0,t.jsx)("div",{className:(0,r.classNames)("h-4 w-full overflow-hidden rounded-md border border-dark_acc-std",i),children:(0,t.jsxs)("div",{className:"flex h-full w-full",children:[(0,t.jsx)("div",{className:"h-full bg-primary-std",style:{width:`${o}%`}}),n&&s&&(0,t.jsx)("div",{className:"h-full bg-error-600",style:{width:`${c}%`}})]})})}])},574503,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(190108),i=e.i(895309),s=e.i(257269),n=e.i(991448),l=e.i(684217),o=e.i(618566);let c=(0,r.createContext)(null);e.s(["SearchProvider",0,function({children:e}){let d=(0,o.usePathname)(),u=d?.startsWith("/search"),[m,h]=(0,r.useState)(0),[f,p]=(0,r.useState)(0),[g,x]=(0,r.useState)(!0),[b,w]=(0,r.useState)(!1),[v,j]=(0,r.useState)(null),[y,k]=(0,r.useState)(!0),[C,_]=(0,r.useState)(!0),[T,N]=(0,r.useState)(null),[S,E]=(0,r.useState)(null),I=(0,r.useRef)(null),U=(0,r.useCallback)(()=>{h(0),p(0),j(null),N(null),E(null)},[]),A=(0,r.useCallback)(()=>{U(),x(!0)},[U]),{sort:L,searchQuery:M,isQueryEmpty:B,updateSearchFilters:R,resetSearchFilters:P}=(0,n.useSearchFilters)(u,A),O=(0,r.useCallback)(async(e=0,t=0,r=!1)=>{if(B)return void U();h(e??0),p(t??0),w(!0),I.current&&I.current.abort();let n=new AbortController;I.current=n;try{let o=M.objectTypes?.length===1&&M.objectTypes.includes("folder"),c=M.objectTypes?.length>0&&!M.objectTypes?.includes("folder")||M.statuses?.length>0;if(o?(_(!1),E(0)):c&&(k(!1),N(0)),!y&&r||c){if(!o){let e=await (0,s.GetWorkflows)({page:t,size:10,sort:L.sort,asc:L.asc,name_contains:M.nameContains,starred:M.starred,project_uuid:M.projectUUID,public:M.public,object_types:M.objectTypes,statuses:M.statuses,created_after:M.createdAfter,created_before:M.createdBefore,updated_after:M.updatedAfter,updated_before:M.updatedBefore},{signal:n.signal});if(!e)throw Error("Get workflows call failed.");let r=e.workflows.map(e=>(0,a.createItem)(e.object_type,e));j(e=>{let t=new Set((e?.workflows||[]).map(e=>e.uuid)),a=r.filter(e=>!t.has(e.uuid));return{folders:e?.folders||[],workflows:[...e?.workflows||[],...a]}}),_(t+1<e.num_pages),E(e.num_pages)}}else{let t=await (0,l.GetFolders)({page:e,size:10,sort:L.sort,asc:L.asc,name_contains:M.nameContains,public:M.public,starred:M.starred,project_uuid:M.projectUUID,created_after:M.createdAfter,created_before:M.createdBefore,updated_after:M.updatedAfter,updated_before:M.updatedBefore},{signal:n.signal}),c=(t||null)?.folders.map(e=>new i.Folder(e)),d=e+1<(t||null)?.num_pages;if(N((t||null)?.num_pages??null),j(e=>{if(r){let t=new Set((e?.folders||[]).map(e=>e.uuid)),r=c.filter(e=>!t.has(e.uuid));return{folders:[...e?.folders||[],...r],workflows:e?.workflows||[]}}return{folders:c,workflows:[]}}),k(d),!d&&!o){let e=await (0,s.GetWorkflows)({page:0,size:10,sort:L.sort,asc:L.asc,name_contains:M.nameContains,starred:M.starred,project_uuid:M.projectUUID,public:M.public,object_types:M.objectTypes?M.objectTypes.filter(e=>"folder"!==e):void 0,statuses:M.statuses,created_after:M.createdAfter,created_before:M.createdBefore,updated_after:M.updatedAfter,updated_before:M.updatedBefore},{signal:n.signal});if(!e)throw Error("Get workflows call failed.");let t=e.workflows.map(e=>(0,a.createItem)(e.object_type,e));j(e=>({folders:e?.folders||[],workflows:t})),_(e.num_pages>1),E(e.num_pages)}}}catch(e){"AbortError"!==e.name&&console.error(e)}finally{w(!1)}},[B,L,M,y,U]),F=(0,r.useCallback)((e,t)=>{R(e,t),U(),x(!0)},[R,U]);(0,r.useEffect)(()=>{g&&!b&&(x(!1),O(m,f))},[g,b,O,m,f]);let D=(0,r.useCallback)(()=>{!b&&(y?O(m+1,f,!0):C&&O(m,f+1,!0))},[b,y,C,O,m,f]),W=(0,r.useCallback)(()=>{P(),U()},[P,U]),$=(0,r.useCallback)(e=>{0!==e.length&&(I.current&&I.current.abort(),j(t=>t?{folders:(t.folders??[]).filter(t=>!e.includes(t.uuid)),workflows:(t.workflows??[]).filter(t=>!e.includes(t.uuid))}:t),x(!0))},[]),z=(0,r.useCallback)(e=>{e?.uuid&&j(t=>{if(!t)return t;if("folder"===e.itemType){let r=(t.folders??[]).findIndex(t=>t.uuid===e.uuid);if(-1===r)return t;let a=[...t.folders??[]];return a[r]=new i.Folder(e),{...t,folders:a}}{let r=(t.workflows??[]).findIndex(t=>t.uuid===e.uuid);if(-1===r)return t;let i=[...t.workflows??[]];return i[r]=(0,a.createItem)(e.itemType,e),{...t,workflows:i}}})},[j]);(0,r.useEffect)(()=>()=>I.current?.abort(),[]);let H=(e,t,r)=>t?null==e?null:{min:(e-1)*10+1,max:10*e}:{min:r,max:r},G=H(T,y,v?.folders.length??0),V=H(S,C,v?.workflows.length??0),X=G?{min:G.min+(V?.min??0),max:V?G.max+V.max:null}:null;return(0,t.jsx)(c.Provider,{value:{sort:L,searchQuery:M,changeSearch:F,resetSearch:W,results:v,loadMore:D,hasMore:y||C,resultCountRange:X,activelyRefreshing:b,updateItem:z,removeDeleted:$},children:e})},"useSearch",0,function(){let e=(0,r.useContext)(c);if(!e)throw Error("useSearch must be used within a SearchProvider");return e}])},260223,e=>{"use strict";function t(e){let t=[],r="",a=!1;for(let i=0;i<e.length;i++){let s=e[i],n=e[i+1];'"'===s&&a&&'"'===n?(r+='"',i++):'"'===s?a=!a:","!==s||a?r+=s:(t.push(r),r="")}return t.push(r),t.map(e=>e.trim())}async function r(e,r,a){let i=await fetch(e);return(await i.text()).trim().split(/\r?\n/).slice(+!!a).map(t).filter(e=>e.length===r)}e.s(["loadCsv",0,r])},280880,e=>{"use strict";
4e.s(["ADD_STATUS_BUTTON_TEXT",0,{idle:"Add",pending:"Adding",failure:"Add failed",success:"Added"},"CREATE_STATUS_BUTTON_TEXT",0,{idle:"Create",pending:"Creating",failure:"Create failed",success:"Created"},"SUBMIT_STATUS_BUTTON_TEXT",0,{idle:"Submit",pending:"Submitting",failure:"Submit failed",success:"Submitted"},"UPDATE_STATUS_BUTTON_TEXT",0,{idle:"Update",pending:"Updating",failure:"Update failed",success:"Updated"}])}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.