PageSourceSearch

https://www.cromatic.bio/assets/index-CWrup8z4.js

js cromatic.bio collected 2026-10-08 23:15:03 UTC 512,406 bytes, 104 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="20214fed-3fce-51da-9bee-71a9a519bcab")}catch(e){}}();
3import{aC as e,bZ as t,bT as n,bO as s,bL as i,bS as a,c2 as o,bR as r,e5 as l,cg as c,c3 as d,cs as p,cK as u,bU as m,c7 as h,cP as x,bQ as f,c6 as g,e6 as v,e7 as y,e8 as b,bX as C,bN as j,cG as w,cH as _,cj as S,e9 as N,ck as k,ct as E,cu as P,bW as M,ea as T,eb as A,ec as V,ed as L,ee as F,ef as D,eg as R,eh as I,ei as O,ej as B,ek as q,el as z,em as H,e1 as Z,en as U,c4 as Q,bK as W,bM as $,eo as Y,ep as K,cl as G,cB as X,d0 as J,eq as ee,er as te,es as ne,et as se,cw as ie,d$ as ae,e0 as oe,cf as re,eu as le,bP as ce}from"./index-CL10LGZK.js";import{d as de}from"./dayjs.min-pqEW51Rf.js";import{k as pe,o as ue,v as me,w as he,$ as xe,A as fe,V as ge,L as ve,a as ye,x as be,y as Ce,z as je,s as we,p as _e,q as Se,r as Ne,N as ke}from"./index-B0PapF_k.js";import{H as Ee,F as Pe,a as Me,S as Te,d as Ae}from"./index-BOchebRH.js";import{u as Ve}from"./fragment-masking-9DdRl5C1.js";import{D as Le,a as Fe,b as De,e as Re,f as Ie,c as Oe}from"./index-_sxoNn_n.js";import{B as Be,u as qe,a as ze,b as He}from"./index-DtGYZJeZ.js";import{h as Ze,i as Ue,j as Qe,k as We,e as $e,f as Ye,l as Ke}from"./chunk-28-BLyaiMz-.js";import{bQ as Ge,bX as Xe,bY as Je,M as et,bZ as tt,V as nt,bE as st,bF as it,O as at,a$ as ot,b0 as rt,b1 as lt,b2 as ct,aJ as dt,b_ as pt,$ as ut,b$ as mt,c0 as ht,X as xt,c1 as ft,c2 as gt,e as vt,aH as yt,c3 as bt,c4 as Ct,k as jt,bR as wt,q as _t,c5 as St}from"./index-BehjRJXN.js";import{c as Nt}from"./createFluentIcon-CMy8slG1.js";import{u as kt}from"./useCrmConnected-DFMNf7Vk.js";import{a as Et,q as Pt}from"./transition-TqFPPMnJ.js";import{c as Mt}from"./createLucideIcon-CtfWecfK.js";import{H as Tt,n as At,N as Vt,W as Lt,O as Ft,z as Dt,M as Rt,F as It}from"./index-tvtGWuQ5.js";import{B as Ot,u as Bt,s as qt,C as zt,F as Ht}from"./zod-CropDHhg.js";import{a as Zt,b as Ut}from"./stringFormatter-CTqHttMF.js";import{X as Qt,P as Wt,C as $t}from"./x-Do7Oun7e.js";import{E as Yt,v as Kt,D as Gt}from"./index-MOP37tAv.js";import{b as Xt,P as Jt,d as en,e as tn,f as nn,c as sn,u as an}from"./index-YXz4pjeN.js";import{T as on}from"./react-select.esm-Df_EX7To.js";import"./svgSanitizer-CW6f11uo.js";import{M as rn}from"./minus-KEopYRQZ.js";import{M as ln}from"./index-BNaTVihY.js";import cn from"./index-D_nVYfBH.js";import{u as dn,s as pn}from"./useSuspenseQuery-sAtkDGBu.js";import"./use-flags-BUirF84g.js";import"./index-CaBoKfwF.js";import"./useTailwindBreakpoint-Cbp4mM37.js";import"./index-B0Wubt8t.js";import"./index-CKUgfQS8.js";import"./index-CK5iiery.js";import"./index-DlaT0n7H.js";import"./emotion-hash.esm-DFFAhID7.js";import"./index-CQplDvD-.js";const un=Nt("MoreHorizontalFilled","1em",["M6.75 10a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0Zm5 0a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0ZM15 11.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5Z"]),mn=Nt("AddFilled","1em",["M10 2.25c.41 0 .75.34.75.75v6.25H17a.75.75 0 0 1 0 1.5h-6.25V17a.75.75 0 0 1-1.5 0v-6.25H3a.75.75 0 0 1 0-1.5h6.25V3c0-.41.34-.75.75-.75Z"]),hn=Nt("Calendar20Regular","20",["M7 11a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm2-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm2-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm4-5.5A2.5 2.5 0 0 0 14.5 3h-9A2.5 2.5 0 0 0 3 5.5v9A2.5 2.5 0 0 0 5.5 17h9a2.5 2.5 0 0 0 2.5-2.5v-9ZM4 7h12v7.5c0 .83-.67 1.5-1.5 1.5h-9A1.5 1.5 0 0 1 4 14.5V7Zm1.5-3h9c.83 0 1.5.67 1.5 1.5V6H4v-.5C4 4.67 4.67 4 5.5 4Z"],{flipInRtl:!0}),xn=Nt("Mail20Regular","20",["M15.5 4A2.5 2.5 0 0 1 18 6.5v8a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 2 14.5v-8A2.5 2.5 0 0 1 4.5 4h11ZM17 7.96l-6.75 3.97a.5.5 0 0 1-.42.04l-.08-.04L3 7.96v6.54c0 .83.67 1.5 1.5 1.5h11c.83 0 1.5-.67 1.5-1.5V7.96ZM15.5 5h-11C3.67 5 3 5.67 3 6.5v.3l7 4.12 7-4.12v-.3c0-.83-.67-1.5-1.5-1.5Z"]),fn=Nt("Search20Regular","20",["M13.73 14.44a6.5 6.5 0 1 1 .7-.7l3.42 3.4a.5.5 0 0 1-.63.77l-.07-.06-3.42-3.41Zm-.71-.71A5.54 5.54 0 0 0 15 9.5a5.5 5.5 0 1 0-1.98 4.23Z"]),gn=Nt("DocumentLandscapeSplitHint24Regular","24",["M7 4.75c0-.41.34-.75.75-.75h.5a.75.75 0 0 1 0 1.5h-.5A.75.75 0 0 1 7 4.75ZM2.75 9.5c.41 0 .75.34.75.75v3.5a.75.75 0 0 1-1.5 0v-3.5c0-.41.34-.75.75-.75Zm5 9a.75.75 0 0 0 0 1.5h.5a.75.75 0 0 0 0-1.5h-.5ZM2 6c0-1.1.9-2 2-2h.75a.75.75 0 0 1 0 1.5H4a.5.5 0 0 0-.5.5v1.25a.75.75 0 0 1-1.5 0V6Zm2 14a2 2 0 0 1-2-2v-1.25a.75.75 0 0 1 1.5 0V18c0 .28.22.5.5.5h.75a.75.75 0 0 1 0 1.5H4Zm6.5-14.75c0-.69.56-1.25 1.25-1.25h2.59c.46 0 .9.18 1.23.51l5.92 5.92c.33.33.51.77.51 1.23V18a2 2 0 0 1-2 2h-8.25c-.69 0-1.25-.56-1.25-1.25V5.25Zm1.5.25v13h8a.5.5 0 0 0 .5-.5v-6H16a2 2 0 0 1-2-2V5.5h-2Zm3.5 1.06V10c0 .28.22.5.5.5h3.44L15.5 6.56Z"]),vn=Nt("ArrowDownload16Filled","16",["M3.5 13h9a.75.75 0 0 1 .1 1.5H3.5a.75.75 0 0 1-.1-1.5h9.1-9ZM7.9 1H8c.38 0 .7.28.74.65l.01.1v7.69l2.26-2.26a.75.75 0 0 1 .97-.07l.09.07c.26.27.29.69.07.98l-.07.08-3.54 3.54a.75.75 0 0 1-.98.07l-.08-.07-3.54-3.54a.75.75 0 0 1 .98-1.13l.08.07 2.26 2.26V1.75c0-.38.28-.7.65-.74L8 1h-.1Z"]),yn=Nt("ArrowSortDownLines24Filled","24",["M18 3a1 1 0 1 0-2 0v15.59l-1.8-1.8a1 1 0 0 0-1.4 1.42l3.5 3.5a1 1 0 0 0 1.4 0l3.5-3.5a1 1 0 0 0-1.4-1.42L18 18.6V3ZM3 4a1 1 0 0 0 0 2h10a1 1 0 1 0 0-2H3Zm3 5a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Zm5 3a1 1 0 1 0 0 2h2a1 1 0 1 0 0-2h-2Z"]);const bn=e.forwardRef(function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{d:"M8.433 7.418c.155-.103.346-.196.567-.267v1.698a2.305 2.305 0 01-.567-.267C8.07 8.34 8 8.114 8 8c0-.114.07-.34.433-.582zM11 12.849v-1.698c.22.071.412.164.567.267.364.243.433.468.433.582 0 .114-.07.34-.433.582a2.305 2.305 0 01-.567.267z"}),e.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a1 1 0 10-2 0v.092a4.535 4.535 0 00-1.676.662C6.602 6.234 6 7.009 6 8c0 .99.602 1.765 1.324 2.246.48.32 1.054.545 1.676.662v1.941c-.391-.127-.68-.317-.843-.504a1 1 0 10-1.51 1.31c.562.649 1.413 1.076 2.353 1.253V15a1 1 0 102 0v-.092a4.535 4.535 0 001.676-.662C13.398 13.766 14 12.991 14 12c0-.99-.602-1.765-1.324-2.246A4.535 4.535 0 0011 9.092V7.151c.391.127.68.317.843.504a1 1 0 101.511-1.31c-.563-.649-1.413-1.076-2.354-1.253V5z",clipRule:"evenodd"}))});const Cn=e.forwardRef(function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{d:"M11 3a1 1 0 100 2h2.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z"}),e.createElement("path",{d:"M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z"}))}),jn=Mt("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),wn=Mt("MessageCircleMore",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]]),_n=Mt("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);const Sn=e.forwardRef(function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}))});const Nn=e.forwardRef(function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"}))});const kn=e.forwardRef(function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"}))});const En=e.forwardRef(function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"}))});const Pn=e.forwardRef(function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))});const Mn=e.forwardRef(function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))});const Tn=e.forwardRef(function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"}))});const An=e.forwardRef(function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"}))});const Vn=e.forwardRef(function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4v16m8-8H4"}))});const Ln=e.forwardRef(function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"}))});const Fn=e.forwardRef(function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 
30 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"}))});const Dn=e.forwardRef(function(t,n){return e.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:n},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))});function Rn(t,n,s){e.useEffect(()=>(window.addEventListener(t,n,s),()=>window.removeEventListener(t,n,s)),[t,n])}function In(){return"undefined"!=typeof window?{x:window.pageXOffset,y:window.pageYOffset}:{x:0,y:0}}function On({x:e,y:t}){if("undefined"!=typeof window){const n={behavior:"smooth"};"number"==typeof e&&(n.left=e),"number"==typeof t&&(n.top=t),window.scrollTo(n)}}const Bn=t.forwardRef(({children:t,className:a,as:o,openInNewTab:r=!1,...l},c)=>{const d=o||"button",p=n(),u=e.useCallback(()=>{const e=`${s.Sourcerer}`;r?window.open(e,"_blank","noopener noreferrer"):p(e)},[p,r]);return i.jsx(d,{type:"button",onClick:u,...l,className:a,ref:c,children:t})}),qn=a("\n  fragment SourcererLiteServicesDropdownQueryFragment on Query {\n    croDbSubspecialties(filter: $filter) {\n      id\n      name\n      specialty {\n        id\n        name\n      }\n    }\n  }\n");a("\n  query Public_SourcererLiteSearchServices_Query($filter: CroDbSubspecialtiesFilterInput) {\n    croDbSubspecialties(filter: $filter) {\n      id\n      name\n      specialty {\n        id\n        name\n      }\n    }\n    ...SourcererLiteServicesDropdownQueryFragment\n  }\n"),t.forwardRef(({searchText:e,servicesFragment:t,onSelectService:n,isOpenSearchDropdown:s,containerClassName:a,selectedService:r},l)=>{const c=Ve(qn,t),d=c?.croDbSubspecialties||[];return i.jsx(pe,{className:o("max-h-[250px] overflow-auto absolute w-full left-0 shadow-2xl rounded-lg z-10 bg-white",s&&d.length>0?"border":"hidden",a),ref:l,children:d?.map(t=>i.jsx(ue,{className:o("h-auto py-3 px-5 text-yellow text-base",r===t?.name&&"text-primary"),onSelect:()=>n(t?.name||""),value:t?.name||"",children:i.jsx(Ee,{fullText:t?.name||"",searchText:e})},t?.id))})});const zn=e.forwardRef(({children:e,className:t},n)=>i.jsx("div",{ref:n,className:o("container mx-auto px-4 lg:px-8 py-6 lg:py-8",t),children:e})),Hn=({icon:e,iconBgColor:t,borderHoverColor:n,title:s,description:a,metrics:r,comingSoon:l,children:c})=>{let d="grid-cols-1 sm:grid-cols-1";return 2===r.length?d="grid-cols-1 sm:grid-cols-2":3===r.length&&(d="grid-cols-3 lg:grid-cols-2 xl:grid-cols-3"),i.jsxs("div",{className:o("bg-white border border-gray-200 rounded-xl p-6 transition-all duration-200 flex flex-col h-full",n,"hover:shadow-lg"),children:[i.jsxs("div",{className:"flex items-center justify-between mb-4",children:[i.jsx("div",{className:o("w-12 h-12 rounded-lg flex items-center justify-center",t),children:e}),l&&i.jsx("span",{className:"bg-yellow-100 text-yellow-700 text-xs font-medium px-2 py-1 rounded-full",children:"Coming Soon"})]}),i.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:s}),i.jsx("p",{className:"text-gray-600 text-sm mb-4 leading-relaxed flex-1",children:a}),i.jsxs("div",{className:"mt-auto",children:[i.jsx("div",{className:o("grid gap-4 mb-4 p-3 bg-gray-50 rounded-lg",d),children:r.map(e=>i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:o("text-xl lg:text-lg xl:text-xl font-bold",e.disabled?"text-gray-400":"text-gray-900"),children:e.value}),i.jsx("div",{className:o("text-xs",e.disabled?"text-gray-400":"text-gray-600"),children:e.label})]},e.label))}),c]})]})},Zn=({isOpen:e,setIsOpen:t,onClickContactUs:n})=>i.jsx(Le,{open:e,onOpenChange:t,children:i.jsx(Fe,{children:i.jsxs(De,{className:"max-w-sm sm:px-12 pt-12 pb-6 overflow-auto max-h-[100dvh]",closeClassName:"sm:right-12 sm:top-8",children:[i.jsxs(Re,{className:"text-left sm:text-center",children:[i.jsx(Ie,{className:"text-2xl",children:"White Glove Service"}),i.jsx("div",{className:"text-hoki-700",children:"Status: subscribed ✅"})]}),i.jsx("div",{className:"text-base font-normal mb-3",children:"With the White Glove Concierge Service, our expert team acts as an extension of your team, handling all aspects of vendor communication and ensuring a smooth, efficient path to project initiation."}),i.jsxs("div",{className:"flex flex-row gap-3 items-center",children:[i.jsx(Ze,{className:"text-bleu-500"}),i.jsx("span",{className:"text-base font-normal",children:"Expert negotiation support"})]}),i.jsxs("div",{className:"flex flex-row gap-3 items-center",children:[i.jsx(Ze,{className:"text-bleu-500"}),i.jsx("span",{className:"text-base font-normal",children:"Actionable RFP development"})]}),i.jsxs("div",{className:"flex flex-row gap-3 items-center",children:[i.jsx(Ze,{className:"text-bleu-500"}),i.jsx("span",{className:"text-base font-normal",children:"Strategic team selection"})]}),i.jsxs("div",{className:"flex flex-row gap-3 items-center",children:[i.jsx(Ze,{className:"text-bleu-500"}),i.jsx("span",{className:"text-base font-normal",children:"Faster quote acquisition"})]}),i.jsxs("div",{className:"flex flex-row gap-3 items-center",children:[i.jsx(Ze,{className:"text-bleu-500"}),i.jsx("span",{className:"text-base font-normal",children:"Earlier project initiation"})]}),i.jsxs(Oe,{className:"mt-4",children:[i.jsx(Be,{variant:"text",color:"hoki",className:"h-[44px] px-4 border border-transparent hover:bg-hoki-100 text-hoki-600 text-base font-medium rounded focus:outline-none focus:ring-2 focus:ring-offset-2",onClick:()=>t(!1),children:"Close"}),i.jsx(Be,{className:"h-[44px] px-4 border border-bleu-600 bg-bleu-600 hover:bg-bleu-700 text-base text-white font-medium rounded focus:outline-none focus:ring-2 focus:ring-offset-2",onClick:n,children:"Contact us"})]})]})})}),Un=({names:e})=>{const t=e.slice(4).length;return i.jsxs("div",{className:"flex flex-row-reverse items-center justify-end",children:[t>0&&i.jsxs(Ge.AvatarPlus,{className:"bg-[#EFF6FF]",children:["+",t]}),e.slice(0,4).reverse().map((e,t)=>i.jsx("span",{style:{zIndex:t+1},className:"[&:not(:first-child)]:-mr-1.5",children:i.jsx(Ge,{name:e,className:"border-2 border-white"})},`team-avatar:${e}`))]})},Qn=a("\n  query QuoteComparatorSessions_Query {\n    quoteComparatorSessions {\n      id\n      title\n      output_text\n      task_id\n      created_at\n      quote_comparator_attachments {\n        id\n        key\n        filename\n        signed_url\n        byte_size\n        formatted_filesize\n      }\n    }\n  }\n");a("\n  query QuoteComparatorSession_Query($id: String!) {\n    quoteComparatorSession(id: $id) {\n      id\n      title\n      output_text\n      task_id\n      created_at\n      quote_comparator_attachments {\n        id\n        key\n        filename\n        signed_url\n        byte_size\n        formatted_filesize\n      }\n    }\n  }\n"),a("\n  mutation CreateQuoteComparatorSession_Mutation($files: [Upload!]!) {\n    createQuoteComparatorSession(files: $files) {\n      id\n      task_id\n    }\n  }\n"),a("\n  mutation DeleteQuoteComparatorSession_Mutation($id: String!) {\n    deleteQuoteComparatorSession(id: $id) {\n      id\n    }\n  }\n");const Wn=a("\n  query Dashboard_UserQuery {\n    user {\n      id\n      full_name\n      first_name\n    }\n    collaborators {\n      id\n      full_name\n      status\n    }\n  }\n"),$n=a("\n  query Dashboard_SourcingSessionQuery($whiteglove_status: [WhiteGloveStatus]) {\n    sourcingSessions(whiteglove_status: $whiteglove_status) {\n      id\n      project_title\n      created_at\n    }\n  }\n"),Yn=()=>{const t=n(),a=Je(),{data:m,loading:h}=r(Wn),{data:x,loading:f}=r(Qn),{data:g,loading:v}=r($n,{variables:{whiteglove_status:[l.Submitted,l.InProgress,l.PausedQuoteCollection]}}),y=g?.sourcingSessions||[],b=y.length>0,C=y.map(e=>({title:e.project_title,date:e.created_at,to:s.SourcererSession(e.id),type:"sourcing"})),j=b,w=[...C].sort((e,t)=>
3e.date>t.date?-1:e.date<t.date?1:0),[_,S]=e.useState(!1);return h||v?i.jsx("div",{className:"flex items-center justify-center h-screenWithoutNav",children:i.jsx(c,{})}):i.jsxs("div",{className:"bg-white min-h-screenWithoutNav",children:[i.jsxs(zn,{children:[i.jsx("div",{className:"text-2xl font-medium text-hoki-800",children:`Welcome${j?" back":""}, ${m?.user?.first_name}`}),a,i.jsxs("div",{className:o("grid gap-6 mt-8","grid-cols-1 lg:grid-cols-3"),children:[i.jsx(Hn,{icon:i.jsx(fn,{className:"text-blue-600 w-6 h-6"}),iconBgColor:"bg-blue-100",borderHoverColor:"hover:border-blue-300",title:"Sourcerer",description:"Find the right vendor, on your budget, and skip hours of back-and-forth. Just submit your project and wait for quotes to come back.",metrics:[{value:"4,500+",label:"Vendors"},{value:"500+",label:"Services"},{value:"95%",label:"Match Rate"}],children:i.jsx(Bn,{className:"w-full bg-blue-50 hover:bg-blue-100 text-blue-700 border border-blue-200 hover:border-blue-300 font-medium py-2.5 px-4 rounded-lg transition-colors duration-200","data-testid":"button:new-project",children:"Find Vendors"})}),i.jsx(Hn,{icon:i.jsx(Xe,{className:"text-purple-600 w-6 h-6"}),iconBgColor:"bg-purple-100",borderHoverColor:"hover:border-purple-300",title:"Quote Negotiator",description:"Keep your vendor. Pay less. We help negotiate better pricing and contract terms on your behalf.",metrics:[{value:"5–7 Days",label:"Turnaround"},{value:"20%",label:"Price Reduction"},{value:"98%",label:"Success"}],children:i.jsx("button",{className:"w-full bg-purple-50 hover:bg-purple-100 text-purple-700 border border-purple-200 hover:border-purple-300 font-medium py-2.5 px-4 rounded-lg transition-colors duration-200",onClick:()=>{t(`${s.Negotiator}`)},type:"button",children:"Get Started"})}),i.jsx(Hn,{icon:i.jsx(gn,{className:"text-emerald-600 w-6 h-6"}),iconBgColor:"bg-emerald-100",borderHoverColor:"hover:border-emerald-300",title:"Quote Comparator",description:"Compare vendor quotes, capabilities, and performance metrics side by side.",metrics:[{value:"--",label:"Comparison Sessions",disabled:!0},{value:"--",label:"Total Quotes Compared",disabled:!0}],children:i.jsx("button",{className:o("w-full font-medium py-2.5 px-4 rounded-lg transition-colors duration-200","bg-gray-100 text-gray-500 cursor-not-allowed"),onClick:()=>{t(`${s.QuoteComparator}`)},disabled:!0,type:"button",children:"Coming Soon"})})]}),j&&i.jsx("div",{className:"col-span-1 md:col-span-3 lg:col-span-2 mt-5",children:i.jsxs("div",{className:"bg-white border rounded-lg p-6 h-[314px]",children:[i.jsxs("div",{className:"flex justify-between items-center",children:[i.jsx("div",{className:"text-lg font-semibold text-hoki-800",children:"New Projects"}),i.jsx(d,{to:s.Projects,className:"text-sm font-medium text-primary hover:text-bleu-700",children:"View all projects"})]}),i.jsx("div",{className:"flex flex-col gap-y-2.5 mt-4",children:w.slice(0,3).map(e=>i.jsxs(d,{to:e.to,className:o("px-5 border rounded-lg h-[60px] shadow-sm","flex items-center justify-between gap-x-2","hover:bg-hoki-50"),children:[i.jsx("div",{className:"text-hoki-800 font-medium line-clamp-1",children:e.title}),i.jsx("div",{className:"text-sm text-hoki-600 whitespace-nowrap",children:de(e.date).format("MMM D, YYYY")})]},e.to))})]})}),i.jsxs("div",{className:o("grid gap-6 mt-5","grid-cols-1 md:grid-cols-[minmax(362px,_1fr)_minmax(0,_1fr)_minmax(0,_1fr)]"),children:[i.jsx("div",{className:"col-span-1 md:col-span-3 lg:col-span-1",children:i.jsxs("div",{className:"bg-white border rounded-lg p-6 h-full",children:[i.jsxs("div",{className:"flex flex-row items-center justify-between",children:[i.jsx("div",{className:"text-lg font-semibold text-hoki-800",children:"Team members"}),i.jsx(d,{to:s.Settings_Team,className:"font-medium text-primary",children:"View all"})]}),i.jsx("div",{className:"text-hoki-800 my-3",children:"Collaborate on projects with colleagues in your organization"}),i.jsx(Un,{names:(m?.collaborators||[]).filter(e=>!!e?.full_name&&e?.status===p.Joined).map(e=>e.full_name)})]})}),i.jsx("div",{className:"col-span-1 md:col-span-3 lg:col-span-2 xl:col-span-1",children:i.jsxs("div",{className:"bg-white border rounded-lg p-6 h-full",children:[i.jsx("div",{className:"text-lg font-semibold text-hoki-800",children:"Questions?"}),i.jsx("div",{className:"flex flex-col gap-y-2.5 mt-4",children:i.jsxs(d,{to:`mailto:${u}`,className:o("px-5 border rounded-lg h-[54px] shadow-sm","font-medium text-primary","flex items-center gap-3","hover:bg-hoki-50"),children:[i.jsx(xn,{}),i.jsx("span",{children:u})]})}),i.jsx("div",{className:"flex flex-col gap-y-2.5 mt-4",children:i.jsxs(d,{to:s.Calendly30Min,target:"_blank",className:o("px-5 border rounded-lg h-[54px] shadow-sm","font-medium text-primary","flex items-center gap-3","hover:bg-hoki-50"),children:[i.jsx(hn,{}),i.jsx("span",{children:"Schedule a call"})]})})]})})]})]}),i.jsx(Zn,{isOpen:_,setIsOpen:S,onClickContactUs:()=>t(s.Settings_RequestConsultation)})]})},Kn=({header:e,subheader:t,graphic:n})=>i.jsxs("div",{className:"flex flex-col items-center my-24 text-center",children:[i.jsx("img",{src:n??"data:image/webp;base64,UklGRngNAABXRUJQVlA4WAoAAAAQAAAA4gAA4QAAQUxQSLMGAAABsJVtT1jbViQgIRIqAQmVgIODg4mDWQetg04HSKiESEBCLtYYEAINzz5XETEB8NYny/7ASu4s7VfA7eHjLXaGj7u3m/strJaC1R5WHW32w8rRZKTtsBiy9meFisWgaGNnsaxus9ihLlgsqIsWQ3WHxaBoO032aHtMdmkjk0VtbLJdnbMYqkOLOXWbxaBo8yYjbcFkeYXuFbq0JZMdK5T+b+38j+hYofTfGYq6d7umg5llf17t1hb7JZbG
3N8vagpQ/6WsRK/Qxhzd65vDDmgnfp2jzMoF15/fhKZAy3t8G1W0iG2s/38arcyJe3fM2UR2IorryNoe2IgNFG7uXydoeoVvd9jKPtiwU1YV3caz9FNrVRQXovcdZeHVJyKk7evmz8L8lp20GUV0QgqLt7OMzV9Pph7vVeamsLXf55XYKg5E6lDq0UY+TRbMbybF6kI7aSodfFk4jobpHbNfGcv9j6TKSU/cnhupQCosYjwRZWxBzszhZ/BwKi64M8kWblyKx7IaCjTRl14Hm4Fm4BBgdw52VHh56PtqCUJJiN9ws8xwusd0I19yizaKyZLMkFI2T5uDF9pWAIoVLkYQeWApXZMJaQBQhsOIxC7gk0AzXNOBqC2C10AFSQ9nBjnkigHdNRlgTALy4MJecNjAlafOdABxYtMzGpqx9E8J4EzM/d0CLbOpQxGeuPXEaP5m10omdvDon4G5uLHEO7mHNhH2iOmhH4vbTzeBk3eS6HNqoDYklHzcesvbYJWvLTUgsm8dL6v66PKOdLJ2Gu9RRD8faj5bA8jjaoY5dB68utVCHPNquDztEdXuD555uMKdv73Cr8w1HlzgYkLrY4VGHDU+XPNql7pBzrB4aua8fLKo75by6p2HrlAfb1T1ym7q/hr0T+7FQHclB0RYacq9zLCjaSoekjLDOc3cc69HGTg4uVWWDeup3jHWpww4QSE9GqA/cv7ihDnVbDwDU6qCVFHAaKqrzfUYNrLG4kYK6MCNSwamTC8F38AYIrLO4Lr/MzHSiFKqLE8pKOPa4+eu9g4sJh0vzQdZKHQLXUmbmHBrg/aIaDnJP1Vc60RRZT5Zj4RwqirZzPkUPe6lNiplO/ERvt7HiLLXLMXMOJvCa2AsdXZjpF98vqMpCuRMz38VS7GV4vi9HKOFXg2kTiBM6puOVMce2e0JpOqiOf5qKgaCo498Gzxa69fGDVceMwnziAExY85hoG4HL/g15xt4GzD9fgo12DTcJ8M+nPKVtPoeGgJcAp3+Qp+zmk1UA4NX2OACIc4L5Fg0JAACvFiYEoCmV+SCrAcCrgWnzPOVnPrsmALzqmJ855fkkXQB41U36nM+tDQCv6aX5PPoA8CpEM9un43iEfzFPzE/HDwPbxNx0tnH8vArM91FxiOC8nglB0HCKQJ7WOSMYhqaFU6JBAs86gR0cTapEMMQPj5gU7g4MgTxihhcf4xwivFlWENoCj1jANH/QjDTEaRtqO3nIzTbsWwIP+cCrXwpSA9IYwTrUcPKQBNZhX7XzmKd9UtU5CL7coYGq8hgnvHzSwL7mHgMtlGrSEBksRDWujOBNxL4CtqKP4PWDjlQDeKkLRqIqADxIFYGR2NcBQMiKgplSEwBeRQmBAXclJADgAqnwFvBtFEXYSwCAv/rdYJIMWSQJAWCiTmiTE7BIkBgAhNzjBJskgCjBvgMAXiSGNsC2AABZInUBcIFkEhjFA8AmQZ0AwF8CBFbZAACSAPtuABioJZgF/nUkkBQAQMhVN1jRNZUP4AVIBwBe9IXQDND0fIKrjb0SAAjPPxnBLPmLK21JD8C2BwRLNh1fILaRJnM2pW+QmxjtRi2hAtvCMvgKuJqOZdhqfFNeBqjOLWS3p6HUHS1st9yQ6/YmXIS/OlyUow6avNnuhtRAq3A17A13y7YIvuFqwUXAhrQm0BhawOxHXWnxq5DqcgsuyV8LNNAiHE20IrHpqXvsFur2pqsuL4JvOlYEm8KKQPNed9ptr6I2XARfldtc3bEGf21QqtIaHALPGmxVUeCuinbDql3gqApr4AXieqDAXrWvAQhuVd5uroYk3BpATZaAUrMtwZ8I1eASHCL3GpSKKHLVOMNRxS4Sa2AJvEhYDRTZKsoagKgr37Llnm8kA3v5lNFy+VsWgvwhg+njt73Pn+3g+rRBn9N46RN0SktAveIS5F5hCf56edtt54fTe+83Cf98iN57j2YjrqYf14JcT2EFmAm7MGe3AkyuD+cl4LMTxyVg1+lZg9CJ0U4xfS0COdUeEmf67Oyzh/HBvgBWUDggngYAADA7AJ0BKuMA4gA+nUieTKolo6OjMMtYsBOJZW7haEEM13/gO3w456K/vuK+cfIB6vf0HvDfMN+2/rX+jL0AP6r/gOsc9ADy2/ZL/tfngZsd/ZvxL/Uv617EtwMaVdyR+HJ9VnVKSZFwhWmV/wl2zy5ms3GS0+sEcylzj1oVnXef301VmSFARJP73/xDTrQrOvNjh8SEs2O5K4I5qdeMg5qRd0nQzdvwpODgUSDfcqo5uBQx8uWPtRLtvtaitXMzsfBDJ+QwnR9BK4UEBWeScWHR4lrIZbQbaG2IvTpAI1a7qCepLBQOc4hE1qZSf+6JFScvH96aj2raYTN/+yYn8yZI28+MW3kneSV9Win5ijV2kgdp0I0bvGsopFiU7qIOL+UHn7OWWxta6fgVWJl2B6Lj165OS7cg1yx0+lTKzfVrK3xtX1mkTAqeIDyBrA51/0nxfYGII9Em/uYOtbVMhRL6FVS0dN+RsDgri3azWEytP5fVnXnMQmGuCvV93Q6zMytY3MVc1ps5qP3S7V6e9Cl9t5QUnpDDgDoH6bsQxAxhRiFK81Nxu8gZS7cxqrNe4aysOV5rQrOpRk8K2zCizQsOStZD+aaZlVvmmNVZ15xG08obauI/++sVfQ4k1CyKV5KAAP793n9GKNhFxje3JQaPZhI9Pth2Bfol5Fh4oGmKX6DFSMhQOM3xnzoREAyIRP/8f1TybeCL5ETY4D7kCRLUWz+bvaGj0QI1ZlAwp2BF5f13uRWKUqxHLGpivYvRO4iCCdylT14oLw3Bz568sKX80q02sNagkWUaN4cBz0kFWf//+Yyh+qKpUBz1wbylOzeMIrP8qiM+IMBJdiyx6jI7uXJsvi18AyZEPTq1cWc/R2GGrJqX8QdpLGu4EgV6ZqUcrHkaTbTdyj3RSKguCd+jAMeoyGS+w0klyJ55rnGBbDb2F5JuzGPjLZz9QKib8cKN714NSpsFdzSclP4JR1Y1JZ8Co1Az8VRYS8yavJ3LFmVVp2l9HvUI/WOu+7n2u118fmEvQ4kV/gjJ//9KXeHADA5+Eipy1CCe0LRgapcHv6cn//BGXM/sxkX6oJsxKxLtolcGrZOM8b8A9RoBDLcEKItfljS/gKsL0EZf4aSpP42s5K2vJTiDnjgiCNYjqveR+f9oIP3zt0Auc66Xu3nf/8eU+hvWI8TXCA/+e9EVcRBv83wCv9bk5Kk/tUX6f5DCNbWTHFjH8KZjNI+rurE+SqyhzmA/5jVxMi1BRbx+r87RIIeg9hjtkT32527oxBApn0Aa4jaWNlLtot919Bl6/Dmf33LPKswHYnNK9PBqO1PEhjmUvYEnxu/ihF4f/8ip6W/TWkAJBsyxc+fgLrrrAF1OgWHAsIEStpc6bIp13VRZY4eur5Djdlza/0Oruv5XACIGeep/KHKIgR0ubM0aUFOo9KPGcsvuPjwm3tPVPHUYPMfiadU8aczU90wn3Vzjqb/es/h+LWQ7Rlas1NAjzDXkaSSDbbhbu+8NOTAPazOprq2evsbD4oDXKmxnd4pq3AlaXdTx31GPZtaKYfUFDdKQ2+2JRrTskZ26KApAR9tmRWtNksUAT5L246ZdlcAhlwgnR21kLXsFkeU8jYinPPbwdLddTwAai8lYYcBjsImqXujh/6NRkJTybGL5pmZ/3bpUPeZQaxOT+ovM85t6NmF8pEOHHXNgigKnefhfXxFRxZSnbDVlSubu+pFFQfvg91R3Hmhk71xsMUen1b4u2rEE4FxX7yrlao5vnn/TvyTQJixXJoMkTcwGsYVrk4NFD59UTTE8DrVjLZme6BWziOYJ/YojASGiAkaqgqrVsVzRCayAcdbtJJO9xnPCWg6f3RytiX+Z0fFsXL4OEQTPV9NbK/2PCyPkw/nmxWvGSgCiv41rIgRZbf1HT+JXMt6hqU7PvMZAClAsORrV/mATWolwouHDTek3bFArcOTZnQWflbEKP+M3MZcKooc/FtLRN2K1C6RSMh9bBfhL1YBbqPTLwExA2drRAHWvQChKaxllRSaLB+nz//aFVZWebZjKB+eoNWwAQFGJUaJmloB8vhpDkwMa8EcWXPON2mFbnNW5JsGGz1MCQXvlpxylo8NwmC4nsZNCXex/iR/0VPbNnaHE2ZTtfBgMhGDKn6hHltAUVzgL+t6zv4vAQyeuPk815teRoD0HLAj8ULZmSNKT3owK44ot04XgsFjVdnjxfPmCijGAn/yMjuCqktCzwmPicqS/yr//8G8AAAAA",alt:"Empty Graphic",width:151,height:150}),i.jsx("div",{className:"text-xl leading-8 font-semibold text-hoki-600 mt-7",children:e}),i.jsx("div",{className:"text-hoki-500 mt-1.5",children:t})]});function Gn({loading:e=!1,data:n,renderItem:s,renderEmptyState:a,keyExtractor:o}){return e?i.jsx("div",{className:"flex justify-center mt-20",children:i.jsx(c,{})}):0===n.length?a():i.jsx("div",{className:"flex flex-col gap-y-2",children:n.map((e,n)=>i.jsx(t.Fragment,{children:s(e)},o(e,n)))})}const Xn=({items:e,buttonClassName:n})=>i.jsxs(Et,{as:"div",className:"relative",onClick:e=>{e.stopPropagation(),e.preventDefault()},children:[i.jsx(Et.Button,{type:"button",className:o("hover:bg-hoki-100 rounded-full flex items-center",n),children:i.jsx(un,{className:"w-[21px] h-[21px] text-hoki-500"})}),i.jsx(Pt,{as:t.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:i.jsx(Et.Items,{className:o("absolute end-0 origin-top-right mt-0.5 w-
356 divide-y divide-hoki-100 rounded-md bg-white shadow-md overflow-hidden","text-hoki-600 text-sm font-medium"),children:e.map((e,t)=>{const n=t;return"button"===e.as?i.jsx(Et.Item,{as:"button",className:"w-full text-left py-2 px-4 hover:bg-hoki-50 inline-block",onClick:e.onClick,children:e.label},n):i.jsx(Et.Item,{as:d,to:e.to,className:"w-full text-left py-2 px-4 hover:bg-hoki-50 inline-block",children:e.label},n)})})})]}),Jn=({onCloseCancelProjectConfirmationModal:e,isOpenCancelProjectConfirmationModal:t,confirmDeleteSourcingSessionFn:n,sourcingSessionId:s,loadingDeleteSourcingSession:a})=>{const{toastSuccess:o}=m();return i.jsxs(et,{title:"Cancel your project",disableOnClose:!0,onClose:e,isOpen:t,children:[i.jsx("div",{className:"text-hoki-600",children:"Canceling this project will permanently delete all your vendor matches and shortlisted selections. This action cannot be undone."}),i.jsxs("div",{className:"flex items-center gap-2 justify-end mt-5",children:[i.jsx(Be,{onClick:e,color:"hoki",children:"Cancel"}),i.jsx(Be,{onClick:async()=>{await n({variables:{sourcingSessionId:s}}),o("The project was successfully canceled.")},isLoading:a,children:"Confirm"})]})]})},es=({onCloseWithdrawProjectConfirmationModal:e,isOpenWithdrawProjectConfirmationModal:t,confirmWithdrawSourcingSessionFn:n,sourcingSessionId:s,loadingWithdrawSourcingSession:a})=>{const{toastSuccess:o}=m();return i.jsxs(et,{title:"Withdraw your project",disableOnClose:!0,onClose:e,isOpen:t,children:[i.jsx("div",{className:"text-hoki-600",children:"Are you sure you want to withdraw this project?"}),i.jsxs("div",{className:"flex items-center gap-2 justify-end mt-5",children:[i.jsx(Be,{onClick:e,color:"hoki",children:"Cancel"}),i.jsx(Be,{onClick:async()=>{await n({variables:{sourcingSessionId:s}}),o("The project has been successfully withdrawn")},isLoading:a,children:"Confirm"})]})]})},ts=a("\n  fragment SourcingSessionCard_SourcingSessionFragment on SourcingSession {\n    id\n    biotech_invoice_status\n    project_title\n    created_at\n    whiteglove_status\n    has_unread_messages\n    sourcing_subspecialties {\n      id\n    }\n\n    sourcing_quotes {\n      id\n      biotech_invoice {\n        payment_status\n      }\n    }\n      \n    shortlisted_cros {\n      id\n    }\n\n    sourced_cros {\n      id\n      is_shortlisted\n    }\n\n    sourcing_quotes {\n      id\n      accepted_at\n    }\n\n    user {\n      id\n      full_name\n    }\n  }\n"),ns=({sourcingSessionFragment:e})=>{const t=Ve(ts,e),{isOpen:n,onClose:a,onOpen:r}=kt(),{isOpen:c,onClose:p,onOpen:u}=kt(),{toastError:x}=m(),[f,{loading:g}]=h(me,{update:(e,{data:t})=>{const n=t?.confirmRemoveSourcingSession?.id;n&&e.evict({id:e.identify({__typename:"SourcingSession",id:n})})},onCompleted:()=>{a()},onError:()=>{x("Something went wrong. Please try again.")}}),[v,{loading:y}]=h(he,{update(e,{data:t}){const n=t?.confirmWithdrawSourcingSession?.id;n&&e.modify({id:e.identify({__typename:"SourcingSession",id:n}),fields:{whiteglove_status:()=>t.confirmWithdrawSourcingSession.whiteglove_status}})},onCompleted:()=>{p()},onError:()=>{x("Something went wrong. Please try again.")},refetchQueries:["ProjectSourcingSessionsQuery"]}),b=t?.whiteglove_status===l.Submitted,C=t?.whiteglove_status===l.Completed,j=t?.whiteglove_status===l.PausedQuoteCollection,w=(t?.sourcing_quotes??[]).length,_=w>0,S=t?.whiteglove_status===l.Submitted&&!_?"bg-malachite-500":"bg-sunglow-300";let N;return N=b?_?`${w} ${w>1?"vendors":"vendor"} have submitted quotes`:"Concierge is getting quotes":j?"Quote Collection Paused":"Submit project",i.jsxs(i.Fragment,{children:[i.jsx(d,{to:s.SourcererSession(t?.id??""),children:i.jsxs("div",{className:"flex flex-col shadow rounded-b-lg",children:[i.jsx("div",{className:"border border-hoki-100 rounded-lg rounded-b-none py-[30px] pr-7 pl-6 pb-[31px]",children:i.jsxs("div",{className:"flex flex-col",children:[!C&&i.jsx("div",{className:"flex justify-end",children:i.jsx(Xn,{items:[b?{as:"button",label:"Withdraw project",onClick:u}:{as:"button",label:"Cancel project",onClick:r}]})}),i.jsx("div",{className:"text-hoki-600 text-sm",children:de(t?.created_at).format("MMMM DD, YYYY")}),i.jsxs("div",{className:"text-hoki-600 mt-1.5 flex justify-between flex-col md:flex-row md:items-center font-semibold gap-1",children:[t?.project_title,!C&&i.jsx("div",{className:o("rounded-[4px] pl-[9px] h-[43px] min-w-[181.31px]",S),children:i.jsxs("div",{className:"w-full h-full flex items-center bg-hoki-100",children:[i.jsx("div",{className:o("rounded-full h-[9px] w-[9px] ml-3",S)}),i.jsx("div",{className:"mx-6 text-base font-normal",children:N})]})})]})]})}),t?.has_unread_messages&&i.jsx("div",{className:o("border-t-0 px-10 flex items-center min-h-[42px] text-base rounded-b-lg","text-primary bg-blue-50"),children:i.jsxs("div",{className:"flex items-center gap-x-3",children:[i.jsx(wn,{}),"New message received"]})})]})}),i.jsx(Jn,{onCloseCancelProjectConfirmationModal:a,isOpenCancelProjectConfirmationModal:n,confirmDeleteSourcingSessionFn:f,sourcingSessionId:t?.id??"",loadingDeleteSourcingSession:g}),i.jsx(es,{onCloseWithdrawProjectConfirmationModal:p,isOpenWithdrawProjectConfirmationModal:c,confirmWithdrawSourcingSessionFn:v,sourcingSessionId:t?.id??"",loadingWithdrawSourcingSession:y})]})},ss=t=>e.createElement("svg",{width:17,height:19,viewBox:"0 0 17 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{d:"M7.294 0C5.236 0 3.561 1.864 3.561 4.156s1.675 4.157 3.733 4.157c2.059 0 3.733-1.865 3.733-4.157S9.353 0 7.294 0m0 1.583c1.236 0 2.24 1.155 2.24 2.573 0 1.419-1.004 2.573-2.24 2.573-1.235 0-2.24-1.154-2.24-2.573 0-1.418 1.005-2.573 2.24-2.573m-.1 7.973c-3.269 0-6.117 1.866-7.088 4.64-.412 1.178.427 2.429 1.61 2.429H8.65a5.4 5.4 0 0 1-.237-1.583H1.715c-.189 0-.238-.212-.209-.295.743-2.124 3.082-3.608 5.688-3.608.8
369 0 1.707.168 2.467.467.382-.45.835-.831 1.345-1.116a8.1 8.1 0 0 0-3.812-.934m6.073 1.527c-2.062 0-3.733 1.772-3.733 3.959 0 2.186 1.671 3.958 3.733 3.958S17 17.228 17 15.042s-1.671-3.959-3.733-3.959m0 1.584c.207 0 .373.177.373.396v1.583h1.493c.207 0 .374.177.374.396 0 .218-.167.396-.373.396H13.64v1.583c0 .218-.167.396-.373.396s-.373-.178-.373-.396v-1.584H11.4c-.207 0-.374-.177-.374-.395s.167-.396.374-.396h1.493v-1.584c0-.218.167-.395.373-.395",fill:"currentColor"})),is=a("\n  fragment WithdrawnSourcingSessionCard_SourcingSessionFragment on SourcingSession {\n    id\n    project_title\n    created_at\n  }\n"),as=({sourcingSessionFragment:e})=>{const t=Ve(is,e);return i.jsxs("div",{className:"border border-hoki-100 rounded-lg shadow py-[30px] px-6",children:[i.jsx("div",{className:"text-hoki-600 text-sm font-medium",children:de(t?.created_at).format("MMMM DD, YYYY")}),i.jsx("div",{className:"text-hoki-600 font-semibold mt-1.5",children:t?.project_title})]})},os=["draft","in-progress","completed","withdrawn"],rs=({label:e,count:t})=>{const n=t&&t>=99?99:t;return i.jsx(xe,{as:d,to:`/app/projects/${e.toLowerCase().replace(/\s+/g,"-")}`,children:({selected:t})=>i.jsxs("div",{className:o("px-4 py-3.5","flex items-center gap-x-2","hover:bg-hoki-50",t&&"border-b-primary border-b-[3px]"),children:[i.jsx("div",{className:o(t?"text-hoki-800 font-semibold":"text-hoki-600"),children:e}),n>0&&i.jsx("div",{className:o("text-xs font-medium","rounded-full w-[22px] h-[22px]","flex items-center justify-center",t?"text-primary bg-bleu-100":"text-hoki-600 bg-hoki-100"),children:n})]})})},ls=a("\n  query ProjectPage_Query {\n    collaborators {\n      id\n      full_name\n      status\n    }\n  }\n"),cs=a("\n  query ProjectSourcingSessionsQuery($whiteglove_status: [WhiteGloveStatus]) {\n    sourcingSessions(whiteglove_status: $whiteglove_status) {\n      biotech_invoice_status\n      id\n      sourcing_quotes {\n        biotech_invoice {\n          payment_status\n        }\n      }\n      ...SourcingSessionCard_SourcingSessionFragment\n      ...WithdrawnSourcingSessionCard_SourcingSessionFragment\n    }\n  }\n"),ds=()=>{const{data:e}=r(ls),{tab:a}=x(),o=a?os.findIndex(e=>e===a):0,[u,m]=t.useState(o),{data:h,loading:g}=r(cs,{variables:{whiteglove_status:[l.Draft,l.Downloaded]}}),v=h?.sourcingSessions||[],{data:y,loading:b}=r(cs,{variables:{whiteglove_status:[l.Submitted,l.InProgress,l.PausedQuoteCollection]}}),{data:C,loading:j}=r(cs,{variables:{whiteglove_status:[l.Completed]}}),w=y?.sourcingSessions??[],_=C?.sourcingSessions??[],{data:S,loading:N}=r(cs,{variables:{whiteglove_status:[l.Withdrawn]}}),k=S?.sourcingSessions||[],E=w.length,P=v.length,M=_.length,T=k.length,{pathname:A}=f(),V=n(),[L,F]=t.useState(!1);t.useEffect(()=>{const e=A.split("/");3!==e.length&&os.includes(e[3])||(E>P&&0===P?(V(s.InProgressProjects,{replace:!0}),m(1)):(V(s.DraftProjects,{replace:!0}),m(0)))},[A,E,P,V]);return g||b||N||j?i.jsx("div",{className:"bg-white min-h-screenWithoutNav flex items-center justify-center",children:i.jsx(c,{})}):0===E&&0===P&&0===M?i.jsx("div",{className:"p-10 bg-white min-h-screenWithoutNav relative",children:i.jsxs("div",{className:"flex flex-col items-center justify-center absolute top-1/4 left-0 right-0",children:[i.jsx("img",{src:"/assets/empty_graphic-Cfa2EgVA.webp",alt:"Empty Graphic",width:230,height:202,className:"-translate-x-10"}),i.jsx("div",{className:"font-medium text-xl mt-5",children:"You have no projects yet."}),i.jsxs(Bn,{className:"text-primary hover:text-bleu-700 inline-flex items-center gap-x-1 mt-5",children:[i.jsx(mn,{width:14,height:14}),i.jsx("span",{className:"font-medium",children:"New project"})]})]})}):i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"bg-white min-h-screenWithoutNav",children:i.jsxs(zn,{children:[i.jsxs("div",{className:"flex flex-col gap-y-4 justify-between",children:[i.jsx("div",{className:"text-2xl font-medium text-hoki-800",children:"Projects"}),i.jsxs("div",{className:"flex flex-row justify-between",children:[i.jsxs("div",{className:"flex flex-row gap-2",children:[i.jsx(d,{to:s.Settings_Team,children:i.jsx(Un,{names:(e?.collaborators||[]).filter(e=>!!e?.full_name&&e?.status===p.Joined).map(e=>e.full_name)})}),i.jsx("button",{type:"button",onClick:()=>F(!0),className:"inline-flex border border-hoki-400 items-center justify-center rounded-full border-dashed w-10 h-10 hover:shadow-md",children:i.jsx(ss,{})})]}),i.jsxs(Bn,{className:"bg-primary hover:bg-bleu-700 text-white self
3-start px-5 py-2 inline-flex items-center gap-x-1 rounded",children:[i.jsx(mn,{className:"w-[16px] h-[16px] !hidden sm:!block"}),i.jsx("span",{className:"font-semibold text-sm lg:text-base whitespace-nowrap",children:"New Project"})]})]})]}),i.jsx("div",{className:"mt-9",children:i.jsxs(xe.Group,{as:"div",defaultIndex:o,selectedIndex:u,onChange:e=>{m(e)},children:[i.jsxs(xe.List,{as:"div",className:"flex border-b border-b-hoki-200 overflow-auto",children:[i.jsx(rs,{label:"Draft",count:P}),i.jsx(rs,{label:"In progress",count:E}),i.jsx(rs,{label:"Completed",count:M}),i.jsx(rs,{label:"Withdrawn",count:T})]}),i.jsxs(xe.Panels,{children:[i.jsx(xe.Panel,{children:i.jsx("div",{className:"py-7",children:i.jsx(Gn,{data:v,loading:g,keyExtractor:e=>e.id,renderItem:e=>i.jsx(ns,{sourcingSessionFragment:e},e?.id),renderEmptyState:()=>i.jsx(Kn,{header:"You don't have any new projects yet",subheader:"When you have new projects, they will be shown here"})})})}),i.jsx(xe.Panel,{children:i.jsx("div",{className:"py-7",children:i.jsx(Gn,{data:w,loading:b,keyExtractor:e=>e.id,renderItem:e=>i.jsx(ns,{sourcingSessionFragment:e},e?.id),renderEmptyState:()=>i.jsx(Kn,{header:"You have no active projects.",subheader:"After you connect with vendors, your project details will appear here."})})})}),i.jsx(xe.Panel,{children:i.jsx("div",{className:"py-7",children:i.jsx(Gn,{data:_,loading:j,keyExtractor:e=>e.id,renderItem:e=>i.jsx(ns,{sourcingSessionFragment:e},e?.id),renderEmptyState:()=>i.jsx(Kn,{header:"You don't have completed projects yet."})})})}),i.jsx(xe.Panel,{children:i.jsx("div",{className:"py-7",children:i.jsx(Gn,{data:k,loading:N,keyExtractor:e=>e.id,renderItem:e=>i.jsx(as,{sourcingSessionFragment:e},e?.id),renderEmptyState:()=>i.jsx(Kn,{header:"You don't have any withdrawn projects.",graphic:"/assets/withdrawn_project_empty_graphic-DTucNxg_.webp"})})})})]})]})})]})}),i.jsx(tt,{open:L,setOpen:F})]})},ps=({isOpen:e,onClose:t})=>i.jsx(et,{isOpen:e,onClose:t,title:"",size:"default",children:i.jsxs("div",{className:"text-center py-2",children:[i.jsx("div",{className:"w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:i.jsx(An,{className:"w-8 h-8 text-blue-600"})}),i.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-3",children:"Expert Negotiation Team"}),i.jsx("p",{className:"text-gray-600 leading-relaxed mb-8 max-w-lg mx-auto",children:"Our negotiation specialists have deep industry experience and established relationships with leading scientific service providers."}),i.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-6 mb-6 text-left",children:[i.jsx("h3",{className:"font-semibold text-gray-800 mb-4 flex items-center gap-2",children:"What makes us different:"}),i.jsxs("div",{className:"space-y-3",children:[i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx(Sn,{className:"w-5 h-5 text-green-500 flex-shrink-0 mt-0.5"}),i.jsx("span",{className:"text-gray-700",children:"20+ years of experience in biotech procurement"})]}),i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx(Sn,{className:"w-5 h-5 text-green-500 flex-shrink-0 mt-0.5"}),i.jsx("span",{className:"text-gray-700",children:"Direct relationships with service providers"})]}),i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx(Sn,{className:"w-5 h-5 text-green-500 flex-shrink-0 mt-0.5"}),i.jsx("span",{className:"text-gray-700",children:"Deep understanding of market pricing dynamics"})]}),i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx(Sn,{className:"w-5 h-5 text-green-500 flex-shrink-0 mt-0.5"}),i.jsx("span",{className:"text-gray-700",children:"Proven track record of 20%+ average savings"})]})]})]})]})}),us=({isOpen:e,onClose:t})=>i.jsx(et,{isOpen:e,onClose:t,title:"",size:"default",children:i.jsxs("div",{className:"text-center py-2",children:[i.jsx("div",{className:"w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-6",children:i.jsx(Mn,{className:"w-8 h-8 text-blue-600"})}),i.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-8",children:"Our 3-Step Process"}),i.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-6 mb-6 text-left space-y-6",children:[i.jsx("div",{className:"flex gap-4",children:i.jsxs("div",{className:"flex-1",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[i.jsx("span",{className:"bg-slate-600 text-white text-xs font-medium px-3 py-1 rounded-md",children:"Step 1"}),i.jsx("h3",{className:"font-semibold text-gray-800",children:"Analysis & Research"})]}),i.jsx("p",{className:"text-gray-600",children:"We analyze your quotes and research market pricing to identify negotiation opportunities."})]})}),i.jsx("div",{className:"flex gap-4",children:i.jsxs("div",{className:"flex-1",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[i.jsx("span",{className:"bg-slate-600 text-white text-xs font-medium px-3 py-1 rounded-md",children:"Step 2"}),i.jsx("h3",{className:"font-semibold text-gray-800",children:"Strategic Negotiation"})]}),i.jsx("p",{className:"text-gray-600",children:"Our experts leverage industry relationships and market insights to negotiate better terms."})]})}),i.jsx("div",{className:"flex gap-4",children:i.jsxs("div",{className:"flex-1",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[i.jsx("span",{className:"bg-green-600 text-white text-xs font-medium px-3 py-1 rounded-md",children:"Step 3"}),i.jsx("h3",{className:"font-semibold text-gray-800",children:"Results Delivery"})]}),i.jsx("p",{className:"text-gray-600",children:"You receive updated quotes with improved pricing and terms, typically within 5-7 days."})]})})]})]})}),ms=({resetForm:e})=>i.jsx("div",{className:"bg-gray-50 overflow-auto h-screenWithoutNav",children:i.jsx(zn,{children:i.jsx("div",{className:"max-w-4xl mx-auto p-8",children:i.jsxs("div",{className:"bg-white rounded-3xl p-12 shadow-sm border border-blue-50 relative overflow-hidden backdrop-blur-sm",children:[i.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 bg-blue-500"}),i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"w-20 h-20 mx-auto mb-8 bg-green-500 rounded-full flex items-center justify-center",children:i.jsx(Nn,{className:"w-8 h-8 text-white"})}),i.jsx("h2",{className:"text-2xl font-semibold text-gray-800 mb
3-4",children:"Your quotes are being negotiated"}),i.jsx("p",{className:"text-gray-600 leading-relaxed mb-8",children:"Our expert team has received your quotes and is now working to secure better pricing. We'll reach out if we need any additional information."})]}),i.jsxs("div",{className:"bg-green-50 rounded-xl p-6 mb-8",children:[i.jsx("h3",{className:"font-semibold text-gray-800 mb-4",children:"What happens next:"}),i.jsxs("div",{className:"space-y-3",children:[i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-3 h-3 bg-green-500 rounded-full mr-4"}),i.jsx("div",{className:"text-gray-700 text-sm",children:"Quote analysis and vendor identification (1-2 days)"})]}),i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-3 h-3 bg-green-500 rounded-full mr-4"}),i.jsx("div",{className:"text-gray-700 text-sm",children:"Negotiation with service providers (3-5 days)"})]}),i.jsxs("div",{className:"flex items-center",children:[i.jsx("div",{className:"w-3 h-3 bg-green-500 rounded-full mr-4"}),i.jsx("div",{className:"text-gray-700 text-sm",children:"Updated quotes delivered to you (5-7 days average)"})]})]})]}),i.jsx("button",{type:"button",onClick:e,className:"bg-blue-50 text-blue-600 border border-blue-200 px-6 py-3 rounded-lg font-medium hover:bg-blue-100 transition-colors",children:"Submit Another Quote"})]})})})}),hs=100,xs=/(\d+)/,fs=({assessment:e,quoteId:t,isExpanded:n,onToggleExpansion:s})=>{const a=!!e,o=e||"",r=o.length>hs?`${o.substring(0,hs)}...`:o;return a?i.jsxs("div",{children:[i.jsx("p",{className:"text-sm text-gray-700 leading-relaxed line-clamp-2",children:r}),o.length>hs&&i.jsx("button",{type:"button",onClick:()=>s(t??""),className:"text-xs text-blue-600 hover:text-blue-800 font-medium transition-colors",children:n?"Show less":"Read more"})]}):i.jsx("span",{className:"text-sm text-gray-400 italic",children:"No assessment provided"})},gs=({attachments:e,onViewAttachment:t,onToggleAttachmentExpansion:n,quoteId:s,isAttachmentsExpanded:a})=>{const o=e?.filter(e=>e?.id&&e?.key&&e?.filename)||[],r=o.slice(0,2),l=o.length-2;return i.jsxs("div",{className:"flex space-x-1",children:[r.map(e=>i.jsx("button",{type:"button",onClick:()=>t(e.key,e.filename),className:"p-1.5 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-md transition-colors",title:`View ${e.filename}`,children:i.jsx(nt,{className:"w-4 h-4"})},e.id)),l>0&&i.jsx("button",{type:"button",onClick:()=>n(s),className:"p-1.5 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-md transition-colors text-xs font-medium",title:a?"Show fewer attachments":"View more attachments",children:a?`−${l}`:`+${l}`})]})},vs=({label:e,icon:t,onClick:n})=>i.jsxs("button",{type:"button",onClick:n,className:"flex gap-x-[10px] text-gray-700 text-sm font-medium items-center hover:text-gray-900 transition-colors",children:[i.jsx("div",{className:"w-[20px] h-[20px] flex items-center justify-center",children:t}),i.jsx("div",{children:e})]}),ys=({isLowestPrice:e,currentPrice:t,negotiatedPrice:n,price:s})=>{const a=!!n&&n>0,r=s&&n?((s-n)/s*100).toFixed(0):null;return i.jsxs("div",{className:"space-y-1",children:[i.jsx("div",{className:o("text-sm font-semibold",e?"text-emerald-700":"text-gray-900"),children:Tt(t)}),a&&!!s&&!!n&&i.jsxs("div",{className:"flex flex-row",children:[i.jsx("div",{className:"text-xs text-gray-400 line-through",children:Tt(s)}),!!r&&i.jsxs("div",{className:"ml-2 text-xs text-emerald-600 font-medium",children:["-",r,"%"]})]})]})},bs=({field:e,sortField:t,sortDirection:n})=>{if(t!==e)return i.jsx(fe,{className:"w-3 h-3 text-gray-400"});const s="asc"===n?st:it;return i.jsx(s,{className:"w-3 h-3 text-gray-600"})},Cs=({field:e,label:t,sortField:n,sortDirection:s,onSort:a})=>i.jsxs("button",{type:"button",onClick:()=>a(e),className:"flex items-center space-x-2 text-xs font-medium text-gray-600 uppercase tracking-wide hover:text-gray-900 transition-colors",children:[i.jsx("span",{children:t}),i.jsx(bs,{field:e,sortField:n,sortDirection:s})]}),js=({label:e})=>i.jsx("span",{className:"text-xs font-medium text-gray-600 uppercase tracking-wide",children:e}),ws=({isOpen:e,setIsOpen:t,vendorId:n,vendorName:s,vendorDescription:a,vendorSize:o,vendorRevenue:r,vendorCertifications:l,vend
3orTypes:c,vendorLocations:d,vendorIpoStatus:p,vendorWebsite:u,vendorSubspecialties:m,imgObjUrl:h})=>i.jsx(Le,{open:e,onOpenChange:e=>t(n,e),children:i.jsx(Fe,{children:i.jsxs(De,{className:"max-h-screen overflow-auto md:p-10",closeClassName:"top-7 right-10",children:[i.jsx(ge,{vendorId:n,name:s,description:a,companySize:o,revenue:Zt(r||""),certificates:l||[],vendorTypes:c||[],locations:d||[],ipoStatus:p,website:u,unmatchedServices:m||[],logoUrl:h}),i.jsx(Oe,{children:i.jsx(Ot,{type:"button",onClick:()=>t(n,!1),className:"h-[48px] w-[188px] font-medium",children:"Close"})})]})})}),_s=e=>e.split(".").pop()?.toLowerCase()||"",Ss=({isOpen:t,filename:n,url:s,onClose:a,size:o="lg",className:r=""})=>{const[l,c]=e.useState(!1),[d,p]=e.useState(!1),u=e.useRef(null),m=()=>{u.current&&(clearTimeout(u.current),u.current=null)};if(e.useEffect(()=>{if(t){c(!0),p(!1);const e=setTimeout(()=>{c(!1),p(!0)},1e4);u.current=e}else m();return()=>{m()}},[t]),!t)return null;const h=(e=>{const t=_s(e);return["pdf"].includes(t)?"pdf":["jpg","jpeg","png","gif","bmp","webp","svg"].includes(t)?"image":["doc","docx","xls","xlsx","ppt","pptx"].includes(t)?"office":["txt","csv","json","xml","html","css","js","md"].includes(t)?"text":"unsupported"})(n),x=_s(n),f=(e=>{switch(e){case"sm":return"max-w-2xl h-[80vh]";case"md":return"max-w-4xl h-[90vh]";case"lg":return"max-w-6xl h-[90vh]";case"xl":return"max-w-7xl h-[90vh]";case"full":return"max-w-full h-[95vh]";default:return"max-w-5xl h-[85vh]"}})(o),g=()=>{m(),c(!1),p(!1)},v=()=>{m(),c(!1),p(!0)},y=()=>{c(!0),p(!1);const e=setTimeout(()=>{c(!1),p(!0)},1e4);u.current=e};return i.jsx("div",{className:`fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4 ${r}`,role:"button",tabIndex:0,onClick:e=>{e.target===e.currentTarget&&a()},onKeyDown:e=>{"Escape"===e.key&&a()},"aria-label":"Close document viewer",children:i.jsxs("div",{className:`bg-white rounded-lg ${f} w-full flex flex-col`,children:[i.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-gray-200 flex-shrink-0",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-8 h-8 bg-blue-500 rounded-lg flex items-center justify-center text-white font-semibold text-xs",children:x.toUpperCase()}),i.jsxs("div",{children:[i.jsx("h3",{id:"document-viewer-title",className:"text-lg font-semibold text-gray-900 truncate max-w-md",children:n}),i.jsxs("p",{className:"text-sm text-gray-500 capitalize",children:[h," file"]})]})]}),i.jsx("div",{className:"flex items-center gap-2",children:i.jsx("button",{type:"button",onClick:a,className:"p-2 hover:bg-gray-100 rounded-lg transition-colors",children:i.jsx(Qt,{className:"w-5 h-5"})})})]}),i.jsx("div",{className:"flex-1 overflow-hidden",children:(()=>{switch(h){case"pdf":case"text":return i.jsx("iframe",{src:s,className:"w-full h-full",title:n});case"image":return i.jsx("div",{className:"flex items-center justify-center h-full bg-gray-50",children:i.jsx("img",{src:s,alt:n,className:"max-w-full max-h-full object-contain"})});case"office":return(()=>{if(d)return i.jsx("div",{className:"flex flex-col items-center justify-center h-full bg-gray-50 p-8",children:i.jsxs("div",{className:"text-center max-w-md",children:[i.jsx("div",{className:"w-16 h-16 bg-blue-500 rounded-lg flex items-center justify-center mx-auto mb-4",children:i.jsx(nt,{className:"w-8 h-8 text-white"})}),i.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"Preview Unavailable"}),i.jsx("p",{className:"text-gray-600 mb-6",children:`Unable to preview this ${x.toUpperCase()} file. The document may be too large, password-protected, or the preview service is temporarily unavailable.`}),i.jsx("div",{className:"space-y-3",children:i.jsxs("button",{type:"button",onClick:y,className:"inline-flex items-center gap-2 px-4 py-2 bg-gray-600 text-white rounded-lg hover:bg-gray-700 transition-colors w-full justify-center",children:[i.jsx(nt,{className:"w-4 h-4"}),"Try Preview Again"]})})]})});const e=`https://docs.google.com/gview?url=${encodeURIComponent(s)}&embedded=true`;return i.jsxs("div",{className:"h-full relative",children:[l&&i.jsxs("div",{className:"absolute inset-0 bg-white bg-opacity-90 flex flex-col items-center justify-center z-10",children:[i.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[i.jsx("div",{className:"w-6 h-6 border-2 border-blue-500 border-t-transparent roun
3ded-full animate-spin"}),i.jsx("span",{className:"text-gray-600",children:"Loading document preview..."})]}),i.jsx("div",{className:"text-center max-w-sm",children:i.jsx("p",{className:"text-sm text-gray-500",children:"This may take a few moments for larger documents."})})]}),i.jsx("iframe",{src:e,className:"w-full h-full",title:n,onLoad:g,onError:v,sandbox:"allow-scripts allow-same-origin allow-popups"})]})})();default:return i.jsx("div",{className:"flex flex-col items-center justify-center h-full bg-gray-50 p-8",children:i.jsxs("div",{className:"text-center max-w-md",children:[i.jsx("div",{className:"w-16 h-16 bg-gray-400 rounded-lg flex items-center justify-center mx-auto mb-4",children:i.jsx(nt,{className:"w-8 h-8 text-white"})}),i.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"Unsupported File Type"}),i.jsx("p",{className:"text-gray-600 mb-6",children:"This file type cannot be previewed in the browser."})]})})}})()})]})})},Ns=(e,t)=>t<=0||e<=0?0:(e-t)/t*100,ks=(e,t)=>t<=0||null===e?0:(e-t)/t*100,Es=t=>e.useMemo(()=>{if(!t?.length)return null;const e=(e=>e.map(e=>e?.negotiated_price||e?.price).filter(e=>"number"==typeof e&&e>0))(t),n=(e=>e.map(e=>{const t=xs.exec(e?.timeline||"");return t?parseInt(t[1],10):null}).filter(e=>"number"==typeof e))(t),s=e.length>0?Math.min(...e):0,i=n.length>0?Math.min(...n):0,a=t.map(e=>((e,t,n)=>{const s=e?.negotiated_price||e?.price||0,i=xs.exec(e?.timeline??""),a=i?parseInt(i[1],10):null;return{...e,currentPrice:s,timelineWeeks:a,isLowestPrice:s>0&&s===t,isFastestTimeline:null!==a&&a===n,priceComparison:Ns(s,t),timelineComparison:ks(a,n)}})(e,s,i));return{lowestPrice:s,fastestTimeline:i,quotes:a}},[t]),Ps=({quotes:n,onGetSignedUrl:s,emptyStateTitle:a="No quotes received",emptyStateDescription:r="Quotes will appear here once vendors respond to your request.",showSorting:l=!0,className:c=""})=>{const{toastError:d}=m(),[p,u]=e.useState({}),[h,x]=e.useState({}),[f,g]=e.useState({}),[v,y]=e.useState(null),[b,C]=e.useState("asc"),[j,w]=e.useState({isOpen:!1,url:"",filename:""}),_=Es(n),S=((t,n,s)=>e.useMemo(()=>t&&n?[...t].sort((e,t)=>{let i,a;switch(n){case"company":i=e.vendor_company?.company_name?.toLowerCase()||"",a=t.vendor_company?.company_name?.toLowerCase()||"";break;case"price":i=e.currentPrice,a=t.currentPrice;break;case"timeline":i=e.timelineWeeks||1/0,a=t.timelineWeeks||1/0;break;case"assessment":i=e.assessment?.length||0,a=t.assessment?.length||0;break;default:return 0}return i<a?"asc"===s?-1:1:i>a?"asc"===s?1:-1:0}):t||[],[t,n,s]))(_?.quotes||null,v,b),N=e.useCallback(async(e,t)=>{try{const n=await s(e);w({isOpen:!0,url:n,filename:t})}catch(R){d(`Failed to view attachment: ${R}`)}},[s,d]),k=e.useCallback((e,t=!0)=>{u(n=>({...n,[e]:t}))},[]),E=e.useCallback(e=>{x(t=>({...t,[e]:!t[e]}))},[]),P=e.useCallback(e=>{g(t=>({...t,[e]:!t[e]}))},[]),M=e.useCallback(e=>{v===e?C("asc"===b?"desc":"asc"):(y(e),C("asc"))},[v,b]),T=e.useCallback(()=>{w({isOpen:!1,url:"",filename:""})},[]);if(!n?.length)return i.jsx("div",{className:o("bg-white rounded-lg border border-gray-200",c),children:i.jsxs("div",{className:"text-center py-16",children:[i.jsx(nt,{className:"w-12 h-12 text-gray-400 mx-auto mb-4"}),i.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:a}),i.jsx("p",{className:"text-gray-500",children:r})]})});const A=l?Cs:js;return i.jsxs("div",{className:o("bg-white rounded-lg border border-gray-200 overflow-hidden",c),children:[i.jsx("div",{className:"overflow-x-auto",children:i.jsxs("table",{className:"w-full",children:[i.jsx("thead",{children:i.jsxs("tr",{className:"border-b border-gray-200 bg-white",children:[i.jsx("th",{className:"text-left px-6 py-2 w-72",children:i.jsx(A,{field:"company",label:"Vendor",sortField:v,sortDirection:b,onSort:M})}),i.jsx("th",{className:"text-left px-4 py-2 w-40",children:i.jsx(A,{field:"price",label:"Price",sortField:v,sortDirection:b,onSort:M})}),i.jsx("th",{className:"text-left px-4 py-2 w-32",children:i.jsx(A,{field:"timeline",label:"Timeline",sortField:v,sortDirection:b,onSort:M})}),i.jsx("th",{className:"text-left px-4 py-2",children:i.jsx(A,{field:"assessment",label:"Assessment",sortField:v,sortDirection:b,onSort:M})}),i.jsx("th",{className:"text-right px-6 py-2 w-24",children:i.jsx("span",{className:"text-xs font-medium text-gray-600 uppercase tracking-wide",children:"Actions"})})]})}),i.jsx("tbody",{className:"divide-y divide-gray-100",children:S?.map(e=>{const n=e?.vendor_company,s=n?.id??"",a=e?.id??"",r=h[a],l=f[a],c=e?.assessment||"",d=e?.quote_attachments||[],u=d?.filter(e=>e?.id&&e?.key&&e?.filename)||[],m=r&&c.length>hs||l&&u.length>2;return i.jsxs(t.Fragment,{children:[i.jsxs("tr",{className:"hover:bg-gray-50 transition-colors group",children:[i.jsx("td",{className:"px-6 py-2",children:i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsx("div",{className:"w-8 h-8 bg-gray-100 rounded-md flex items-center justify-center flex-shrink-0",children:n?.logo_url?i.jsx("img",{src:n.logo_url,alt:"logo",className:"w-full h-full object-contain rounded-md"}):i.jsx(at,{className:"w-4 h-4 text-gray-400"})}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("button",{type:"button",onClick:()=>k(s),className:"text-sm font-semibold text-gray-900 hover:text-blue-600 hover:underline text-left truncate block max-w-[220px] transition-colors",children:n?.company_name}
3),n?.vendor_company_locations?.[0]?.country&&i.jsx("div",{className:"text-xs text-gray-500",children:n.vendor_company_locations[0].country})]})]})}),i.jsx("td",{className:"px-4 py-2",children:i.jsx(ys,{isLowestPrice:e?.isLowestPrice,currentPrice:e?.currentPrice,negotiatedPrice:e?.negotiated_price,price:e?.price})}),i.jsx("td",{className:"px-4 py-2",children:i.jsx("div",{className:"space-y-1",children:i.jsx("div",{className:o("text-sm font-semibold",e.isFastestTimeline?"text-blue-700":"text-gray-900"),children:e?.timeline})})}),i.jsx("td",{className:"px-4 py-2",children:i.jsx(fs,{assessment:c,quoteId:a,isExpanded:r,onToggleExpansion:E})}),i.jsx("td",{className:"px-6 py-2",children:i.jsxs("div",{className:"flex items-center justify-end space-x-1",children:[u.length>0&&i.jsx(gs,{attachments:d,onViewAttachment:N,onToggleAttachmentExpansion:P,quoteId:a,isAttachmentsExpanded:l}),i.jsxs(ot,{children:[i.jsx(rt,{className:"p-1.5 hover:bg-gray-100 rounded-md transition-colors",children:i.jsx(Yt,{className:"w-4 h-4 text-gray-400"})}),i.jsx(lt,{className:"bg-white",align:"end",children:i.jsx(ct,{children:i.jsx(vs,{label:"View vendor profile",icon:i.jsx(at,{className:"w-4 h-4"}),onClick:()=>{k(s)}})})})]})]})})]}),m&&i.jsx("tr",{className:"bg-gray-50",children:i.jsx("td",{colSpan:5,className:"px-4 py-3",children:i.jsxs("div",{className:"space-y-4",children:[r&&c.length>hs&&i.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4",children:[i.jsx("div",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide mb-3",children:"Full Assessment"}),i.jsx("p",{className:"text-sm text-gray-700 leading-relaxed whitespace-pre-wrap",children:c})]}),l&&u.length>2&&i.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4",children:[i.jsx("div",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide mb-3",children:"Additional Attachments"}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:u.slice(2).map(e=>i.jsxs("button",{type:"button",onClick:()=>N(e.key,e.filename),className:"flex items-center gap-3 p-3 bg-blue-50 border border-blue-200 rounded-lg hover:bg-blue-100 transition-colors text-left",children:[i.jsx("div",{className:"w-8 h-8 bg-blue-500 rounded-lg flex items-center justify-center text-white font-semibold text-xs",children:i.jsx(nt,{className:"w-4 h-4"})}),i.jsx("div",{className:"flex-1 min-w-0",children:i.jsx("div",{className:"font-medium text-gray-800 truncate text-sm",children:e.filename})})]},e.id))})]})]})})}),i.jsx(ws,{imgObjUrl:n?.logo_url??"",isOpen:p[s]??!1,setIsOpen:(e,t)=>k(e,t),vendorId:s,vendorName:n?.company_name??"",vendorDescription:n?.company_description??"",vendorSize:n?.company_size??"",vendorRevenue:n?.company_revenue??"",vendorCertifications:n?.vendor_company_certifications?.map(e=>e?.certification_name??"")??[],vendorTypes:n?.vendor_company_types?.map(e=>e?.company_type??"")??[],vendorLocations:n?.vendor_company_locations?.map(e=>e?.country??"")??[],vendorIpoStatus:n?.company_ipo_status??"",vendorWebsite:n?.website_url??"",vendorSubspecialties:n?.vendor_company_subspecialties?.map(e=>e?.subspecialty?.name??"")??[]})]},a)})})]})}),i.jsx(Ss,{isOpen:j.isOpen,filename:j.filename,url:j.url,onClose:T,size:"md"})]})},Ms=g`
4  query GetSignedUrl($key: String!) {
5    signedUrl(key: $key)
6  }
7`,Ts=({quotes:t,negotiationStatus:n})=>{const{toastCatchError:s}=m(),[a]=qe(Ms,{fetchPolicy:"no-cache"}),o=e.useCallback(async e=>{try{const{data:t}=await a({variables:{key:e}});if(t?.signedUrl)return t.signedUrl;throw new Error("No signed URL returned")}catch(R){throw s(R),R}},[a,s]),r=t.map(e=>{const t=e.vendor_company;return{id:e.id,price:e.price,timeline:e.timeline,is_fastest:!1,assessment:e.assessment,accepted_at:null,status:null,negotiated_price:e.negotiated_price,quote_attachments:e.quote_attachments?.map(e=>({id:e?.id,key:e?.key,filename:e?.filename,content_type:e?.content_type}))||null,vendor_company:t?{id:t.id,company_name:t.company_name,company_description:t.company_description,company_ipo_status:t.company_ipo_status,company_revenue:t.company_revenue,company_
7size:t.company_size,website_url:t.website_url,logo_url:t.logo_url,vendor_company_subspecialties:t.vendor_company_subspecialties?.map(e=>({subspecialty:{id:e?.subspecialty?.id,name:e?.subspecialty?.name}}))||null,vendor_company_locations:t.vendor_company_locations?.map(e=>({country:e?.country}))||null,vendor_company_types:t.vendor_company_types?.map(e=>({company_type:e?.company_type}))||null,vendor_company_certifications:t.vendor_company_certifications?.map(e=>({certification_name:e?.certification_name}))||null}:null}});return i.jsx(Ps,{quotes:r,onGetSignedUrl:o,emptyStateTitle:"COMPLETED"===n?"No quotes available for this negotiation session.":"Quotes will appear here once negotiation is complete.",emptyStateDescription:"",showSorting:!1,className:""})},As=g`
8  query GetNegotiationSession($id: String!) {
9    negotiationSession(id: $id) {
10      id
11      title
12      status
13      created_at
14      completed_at
15      quote_attachments {
16        id
17        filename
18        formatted_filesize
19        signed_url
20      }
21    }
22  }
23`,Vs=g`
24  query GetNegotiatedQuotes($negotiationSessionId: String!) {
25    negotiatedQuotes(negotiation_session_id: $negotiationSessionId) {
26      id
27      price
28      negotiated_price
29      timeline
30      assessment
31      status
32      quote_type
33
34      quote_attachments {
35        id
36        key
37        filename
38        content_type
39      }
40
41      vendor_company {
42        id
43        company_name
44        company_description
45        company_ipo_status
46        company_revenue
47        company_size
48        website_url
49        logo_url
50        vendor_company_subspecialties {
51          subspecialty {
52            id
53            name
54          }
55        }
56        vendor_company_locations {
57          country
58        }
59        vendor_company_types {
60          company_type
61        }
62        vendor_company_certifications {
63          certification_name
64        }
65      }
66    }
67  }
68`,Ls=({sessionId:t,onBack:n})=>{const[s,a]=e.useState({filename:null,signed_url:null}),[o,l]=e.useState(!1),{data:c,loading:d,error:p}=r(As,{variables:{id:t},fetchPolicy:"cache-and-network"}),{data:u,loading:m,error:h}=r(Vs,{variables:{negotiationSessionId:t},fetchPolicy:"cache-and-network"}),x=c?.negotiationSession,f=u?.negotiatedQuotes||[],g=p||h;if(d||m)return i.jsx("div",{className:"bg-gray-50 min-h-screen",children:i.jsx("div",{className:"max-w-6xl mx-auto p-6",children:i.jsxs("div",{className:"flex items-center justify-center py-12",children:[i.jsx("div",{className:"w-8 h-8 border-2 border-blue-500 border-t-transparent rounded-full animate-spin mr-3"}),i.jsx("span",{className:"text-gray-600",children:"Loading negotiation details..."})]})})});if(g||!x)return i.jsx("div",{className:"bg-gray-50 min-h-screen",children:i.jsxs("div",{className:"max-w-6xl mx-auto p-6",children:[i.jsxs("button",{type:"button",onClick:n,className:"flex items-center gap-2 text-blue-600 hover:text-blue-800 mb-6",children:[i.jsx(dt,{size:20}),"Back to Negotiations"]}),i.jsxs("div",{className:"bg-white rounded-lg p-8 text-center",children:[i.jsx("div",{className:"text-red-600 mb-4",children:"Failed to load negotiation session"}),i.jsx("p",{className:"text-gray-600",children:g?.message||"Session not found"})]})]})});const v="COMPLETED"===x.status,y=f.reduce((e,t)=>t.price&&t.negotiated_price&&t.negotiated_price>0?e+(t.price-t.negotiated_price):e,0);return i.jsxs("div",{className:"bg-gray-50 min-h-screen",children:[i.jsxs("div",{className:"max-w-6xl mx-auto p-6",children:[i.jsxs("div",{className:"mb-6",children:[i.jsxs("button",{type:"button",onClick:n,className:"flex items-center gap-2 text-blue-600 hover:text-blue-800 mb-4",children:[i.jsx(dt,{size:20}),"Back to Negotiations"]}),i.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-sm",children:[i.jsxs("div",{className:"flex items-start justify-between mb-4",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-2xl font-semibold text-gray-800 mb-2",children:x.title}),i.jsxs("div",{className:"flex items-center gap-4 text-sm text-gray-600",children:[i.jsxs("span",{children:["Submitted"," ",pt(x.created_at)]}),x.completed_at&&i.jsxs("span",{children:["Completed"," ",pt(x.completed_at)]})]})]}),i.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full text-sm font-semibold "+(v?"bg-green-100 text-green-800":"bg-yellow-100 text-yellow-800"),children:[v?i.jsx(jn,{size:16}):i.jsx(ut,{size:16}),v?"Completed":"In Progress"]})]}),v&&f.length>0&&i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6 p-4 bg-gray-50 rounded-lg",children:[i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-2xl font-bold text-gray-800",children:f.length}),i.jsx("div",{className:"text-sm text-gray-600",children:"Quote(s) Negotiated"})]}),i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-2xl font-bold text-green-600",children:y>
680?`$${y.toLocaleString()}`:"N/A"}),i.jsx("div",{className:"text-sm text-gray-600",children:"Total Savings"})]}),i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-2xl font-bold text-blue-600",children:f.filter(e=>e.negotiated_price&&e.negotiated_price>0).length}),i.jsx("div",{className:"text-sm text-gray-600",children:"Successfully Negotiated"})]})]}),x.quote_attachments.length>0&&i.jsxs("div",{children:[i.jsx("h3",{className:"text-lg font-medium text-gray-800 mb-3 flex items-center gap-2",children:"Original Quote Files"}),i.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:x.quote_attachments.map(e=>i.jsxs("button",{type:"button",onClick:()=>(e=>{a(e),l(!0)})(e),className:"flex items-center gap-3 p-3 bg-blue-50 border border-blue-200 rounded-lg hover:bg-blue-100 transition-colors text-left",children:[i.jsx("div",{className:"w-10 h-10 bg-blue-500 rounded-lg flex items-center justify-center text-white font-semibold text-sm",children:i.jsx(nt,{})}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:"font-medium text-gray-800 truncate",children:e.filename}),i.jsx("div",{className:"text-sm text-gray-600",children:e.formatted_filesize})]})]},e.id))})]})]})]}),i.jsx("div",{className:"mb-6",children:i.jsxs("div",{className:"bg-white rounded-lg p-6 shadow-sm",children:[i.jsx("h2",{className:"text-xl font-semibold text-gray-800 mb-4",children:v?"Negotiated Quotes":"Quotes (Pending)"}),!v&&i.jsx("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-4 mb-6",children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx(ut,{className:"text-yellow-600",size:20}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-medium text-yellow-800",children:"Negotiation in Progress"}),i.jsx("p",{className:"text-yellow-700 text-sm mt-1",children:"Our team is actively working on negotiating your quotes. Results typically available within 5-7 business days."})]})]})}),i.jsx(Ts,{quotes:f,negotiationStatus:x.status})]})})]}),i.jsx(Ss,{isOpen:o,filename:s?.filename||"",url:s?.signed_url||"",onClose:()=>{l(!1),a({filename:null,signed_url:null})},size:"md"})]})},Fs=g`
69  mutation CreateNegotiationSession($input: CreateNegotiationSessionInput!) {
70    createNegotiationSession(input: $input) {
71      id
72      title
73      status
74      vendor_flexibility
75      created_at
76      quote_attachments {
77        id
78        filename
79        formatted_filesize
80        signed_url
81      }
82    }
83  }
84`,Ds=g`
85  query GetNegotiationSessions {
86    negotiationSessions {
87      id
88      title
89      status
90      vendor_flexibility
91      created_at
92      completed_at
93      quote_attachments {
94        id
95        filename
96        formatted_filesize
97        signed_url
98      }
99    }
100  }
101`,Rs=()=>{const{balance:t,refetch:n}=mt(),s=At(),[a,o]=e.useState(!1),[l,c]=e.useState("upload"),[d,p]=e.useState([]),[u,m]=e.useState(!1),[x,f]=e.useState(!1),[g,v]=e.useState(null),[y,b]=e.useState(!1),[C,j]=e.useState(null),[w,_]=e.useState(null),{data:S,loading:N,error:k,refetch:E}=r(Ds,{fetchPolicy:"cache-and-network",errorPolicy:"all"}),[P]=h(Fs,{refetchQueries:[{query:Ds}],awaitRefetchQueries:!0,onCompleted:async()=>{await E(),f(!0)},onError:e=>{j(e.message||"Failed to create negotiation session")}}),M=e=>{if(0===e)return"0 Bytes";const t=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/1024**t).toFixed(2))} ${["Bytes","KB","MB","GB"][t]}`},T=e=>{const t=e.split(".").pop()?.toLowerCase();switch(t){case"pdf":return"PDF";case"doc":case"docx":return"DOC";case"xls":case"xlsx":return"XLS";case"png":case"jpg":case"jpeg":return"IMG";default:return"FILE"}},A=()=>{p([]),m(!1),f(!1),j(null),b(!1),c("history"),E()},V=e=>{_(e)},L=()=>{_(null)},F=S?.negotiationSessions||[];return w?i.jsx(Ls,{sessionId:w,onBack:L}):x?i.jsx(ms,{resetForm:A}):i.jsxs("div",{className:"bg-gradient-to-br from-gray-50 to-gray-100 min-h-screen",children:[i.jsx(zn,{children:i.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 py-6 sm:py-8",children:[i.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between mb-6 sm:mb-8 gap-4",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-2xl sm:text-3xl font-semibold text-gray-900 mb-2",children:"Quote Negotiation"}),i.jsxs("div",{className:"flex items-center gap-2 text-green-700 text-xs md:text-sm",children:[i.jsx("div",{children:i.jsx(Ln,{className:"w-4 h-4 sm:w-5 sm:h-5"})}),i.jsx("span",{children:"Risk-Free Guarantee: Our fee is 10% of your total savings.\n                    No s
101avings, no fee."})]})]}),i.jsxs("div",{className:"flex rounded-xl bg-white shadow-lg border border-gray-200 overflow-hidden w-full sm:w-auto",children:[i.jsxs("button",{type:"button",onClick:()=>c("upload"),className:"flex-1 sm:flex-none flex items-center justify-center gap-2 px-4 sm:px-6 py-3 font-medium transition-all "+("upload"===l?"bg-blue-600 text-white shadow-sm":"text-gray-600 hover:text-gray-900 hover:bg-gray-50"),children:[i.jsx(Vn,{className:"w-4 h-4"}),i.jsx("span",{className:"hidden sm:inline",children:"Upload"}),i.jsx("span",{className:"sm:hidden",children:"New"})]}),i.jsxs("button",{type:"button",onClick:()=>c("history"),className:"flex-1 sm:flex-none flex items-center justify-center gap-2 px-4 sm:px-6 py-3 font-medium transition-all "+("history"===l?"bg-blue-600 text-white shadow-sm":"text-gray-600 hover:text-gray-900 hover:bg-gray-50"),children:[i.jsx(kn,{className:"w-4 h-4"}),"History",i.jsx("span",{className:"bg-gray-200 text-gray-700 px-2 py-0.5 rounded-full text-xs font-semibold",children:F.length})]})]})]}),"upload"===l&&i.jsxs("div",{className:"bg-white rounded-2xl shadow-lg border border-gray-200 p-4 sm:p-8",children:[i.jsx("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-4 mb-6",children:i.jsxs("div",{className:"flex items-start",children:[i.jsx(bn,{className:"w-5 h-5 text-blue-500 mr-3 mt-0.5 flex-shrink-0"}),i.jsxs("div",{children:[i.jsx("h3",{className:"text-blue-800 font-medium mb-1",children:"Token Retainer Required"}),i.jsxs("p",{className:"text-blue-700 text-sm leading-relaxed",children:["Starting a negotiation requires a"," ",i.jsx("strong",{children:"1-token retainer"}),". This token is held temporarily and will be"," ",i.jsx("strong",{children:"fully refunded"})," ","once the negotiation is complete."]})]})]})}),C&&i.jsx("div",{className:"bg-red-50 border border-red-200 rounded-xl p-4 mb-6",children:i.jsxs("div",{className:"flex items-center",children:[i.jsx(Pn,{className:"w-5 h-5 text-red-500 mr-3"}),i.jsxs("div",{children:[i.jsx("h3",{className:"text-red-800 font-medium",children:"Upload failed"}),i.jsx("p",{className:"text-red-700 text-sm mt-1",children:C})]})]})}),i.jsx(Vt,{onDrop:e=>{const t=e.map(e=>({id:Kt(),name:e.name,size:e.size,type:e.type,file:e}));p(e=>[...e,...t]),j(null)},accept:{"application/pdf":[".pdf"],"application/msword":[".doc"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[".docx"],"application/vnd.ms-excel":[".xls"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":[".xlsx"],"image/*":[".png",".jpg",".jpeg"]},multiple:!0,className:"mb-6",renderZone:({isDragActive:e})=>i.jsxs("div",{className:"border-2 border-dashed rounded-xl p-6 sm:p-10 text-center transition-all duration-200 "+(e?"border-blue-500 bg-blue-50 scale-[1.02]":"border-gray-300 hover:border-blue-400 hover:bg-gray-50"),children:[i.jsx("div",{className:"w-12 h-12 sm:w-14 sm:h-14 bg-gradient-to-br from-blue-500 to-blue-600 rounded-full flex items-center justify-center mx-auto mb-4 shadow-lg transition-transform "+(e?"scale-110":""),children:i.jsx(En,{className:"w-6 h-6 sm:w-7 sm:h-7 text-white"})}),i.jsx("div",{className:"text-lg sm:text-xl font-medium text-gray-800 mb-2",children:e?"Drop your files here":"Upload your quotes"}),i.jsx("div",{className:"text-sm sm:text-base text-gray-600 mb-4",children:"Drag & drop files or click to browse"}),i.jsx("div",{className:"flex justify-center gap-2 flex-wrap",children:["PDF","DOC","XLS","Images"].map(e=>i.jsx("span",{className:"bg-blue-100 text-blue-700 px-2 sm:px-3 py-1 rounded-full text-xs sm:text-sm font-medium",children:e},e))})]})}),d.length>0&&i.jsx("div",{className:"mb-6 space-y-3",children:d.map(e=>i.jsxs("div",{className:"flex items-center justify-between p-3 sm:p-4 bg-blue-50 border border-blue-200 rounded-xl",children:[i.jsxs("div",{className:"flex items-center min-w-0 flex-1",children:[i.jsx("div",{className:"w-8 h-8 sm:w-10 sm:h-10 bg-blue-500 rounded-lg text-white font-medium text-xs flex items-center justify-center mr-3 sm:mr-4 shadow-sm flex-shrink-0",children:T(e.name)}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("div",{className:"font-medium text-gray-900 truncate text-sm sm:text-base",children:e.name}),i.jsx("div",{className:"text-xs sm:text-sm text-gray-600",children:M(e.size)})]})]}),i.jsx("button",{type:"button",onClick:()=>(e=>{p(t=>t.filter(t=>t.id!==e))})(e.id),className:"ml-2 sm:ml-4 w-8 h-8 bg-white hover:bg-red-50 text-gray-400 hover:text-red-600 rounded-full flex items-center justify-center transition-colors shadow-sm flex-shrink-0",disabled:y,children:i.jsx(Dn,{className:"w-4 h-4"})})]},e.id))}),i.jsxs("div",{className:"mb-6 sm:mb-8",children:[i.jsx("h3",{className:"text-base sm:text-lg font-medium text-gray-900 mb-4",children:"Vendor Preferences"}),i.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:gap-4",children:[i.jsxs("button",{type:"button",onClick:()=>m(!1),className:"p-4 sm:p-5 rounded-xl border-2 text-left transition-all duration-200 "+(u?"border-gray-200 hover:border-gray-300 hover:shadow-sm":"border-blue-500 bg-blue-50 shadow-sm"),children:[i.jsxs("div",{className:"flex items-center mb-1",children:[i.jsx("div",{className:"w-4 h-4 sm:w-5 sm:h-5 rounded-full border-2 mr-3 flex items-center justify-center flex-shrink-0 "+(u?"border-gray-300":"border-blue-500 bg-blue-500"),children:!u&&i.jsx("div",{className:"w-1.5 h-1.5 sm:w-2 sm:h-2 bg-white rounded-full"})}),i.jsx(Tn,{className:"w-4 h-4 sm:w-5 sm:h-5 text-gray-500 mr-2 flex-shrink-0"}),i.jsx("span",{className:"font-medium text-gray-900 text-sm sm:text-base",children:"Current vendors only"})]}),i.jsx("p",{className:"text-xs sm:text-sm text-gray-600 ml-9 sm:ml-10",children:"Negotiate with vendors in your uploaded quotes"})]}),i.jsxs("button",{type:"button",onClick:()=>m(!0),className:"p-4 sm:p-5 rounded-xl border-2 text-left transition-all duration-200 "+(u?"border-blue-500 bg-blue-50 shadow-sm":"border-gray-200 hover:border-gray-300 hover:shadow-sm"),children:[i.jsxs("div",{className:"flex items-center mb-1",children:[i.jsx("div",{className:"w-4 h-4 sm:w-5 sm:h-5 rounded-full border-2 mr-3 flex items-center justify-center flex-shrink-0 "+(u?"border-blue-500 bg-blue-500":"border-gray-300"),children:u&&i.jsx("div",{className:"w-1.5 h-1.5 sm:w-2 sm:h-2 bg-white rounded-full"})}),i.jsx(Fn,{className:"w-4 h-4 sm:w-5 sm:h-5 text-gray-500 mr-2 flex-shrink-0"}),i.jsx("span",{className:"font-medium text-gray-900 text-sm sm:text-base",children:"Open to alternatives"})]}),i.jsx("p",{className:"text-xs sm:text-sm text-gray-600 ml-9 sm:ml-10",children:"Include quotes from other qualified vendors"})]})]})]}),i.jsx("button",{type:"button",onClick:t>0?async()=>
101{if(0!==d.length)if(t<1)j("Insufficient tokens. Please purchase tokens to start a negotiation.");else{b(!0),j(null);try{const e=d.map(e=>e.file).filter(e=>void 0!==e);if(0===e.length)throw new Error("No valid files selected for upload");const t=1===d.length?d[0].name.replace(/\.[^/.]+$/,""):`Quote Negotiation - ${(new Date).toLocaleDateString()}`;await P({variables:{input:{title:t,files:e,vendor_flexibility:u}}}),await n()}catch(R){R instanceof Error?j(R.message):j("An unexpected error occurred. Please try again."),b(!1)}}}:()=>o(!0),disabled:0===d.length||y,className:"w-full py-3 sm:py-4 rounded-xl text-base sm:text-lg font-medium transition-all duration-200 "+(d.length>0&&!y?"bg-gradient-to-r from-blue-600 to-blue-700 text-white hover:from-blue-700 hover:to-blue-800 shadow-lg hover:shadow-xl transform hover:-translate-y-0.5":"bg-gray-300 text-gray-500 cursor-not-allowed"),children:y?i.jsxs("div",{className:"flex items-center justify-center gap-2",children:[i.jsx("div",{className:"w-4 h-4 sm:w-5 sm:h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}),"Processing..."]}):i.jsxs("div",{className:"flex items-center justify-center gap-2",children:[i.jsx("span",{children:"Start Negotiation"}),d.length>0&&i.jsxs("div",{className:"flex items-center gap-2.5 opacity-90",children:[i.jsx("span",{children:"•"}),i.jsx("span",{children:"1 token"})]})]})}),d.length>0&&i.jsx("div",{className:"mt-4 text-center",children:i.jsx("p",{className:"text-sm text-gray-600 mb-1",children:"By starting this negotiation, 1 token will be reserved as a retainer."})}),i.jsxs("div",{className:"flex flex-col sm:flex-row justify-center gap-4 sm:gap-8 mt-6 sm:mt-8 pt-6 border-t border-gray-200",children:[i.jsxs("button",{type:"button",onClick:()=>v("expert"),className:"flex items-center justify-center sm:justify-start gap-2 text-blue-600 hover:text-blue-800 font-medium transition-colors",children:[i.jsx(An,{className:"w-4 h-4"}),"Expert Negotiation"]}),i.jsxs("button",{type:"button",onClick:()=>v("process"),className:"flex items-center justify-center sm:justify-start gap-2 text-blue-600 hover:text-blue-800 font-medium transition-colors",children:[i.jsx(Mn,{className:"w-4 h-4"}),"Our Process"]})]})]}),"history"===l&&i.jsxs("div",{className:"bg-white rounded-2xl shadow-lg border border-gray-200 p-4 sm:p-8",children:[N&&i.jsxs("div",{className:"flex items-center justify-center py-8",children:[i.jsx("div",{className:"w-8 h-8 border-2 border-blue-500 border-t-transparent rounded-full animate-spin mr-3"}),i.jsx("span",{className:"text-gray-600",children:"Loading your negotiations..."})]}),k&&i.jsxs("div",{className:"text-center py-8",children:[i.jsx("div",{className:"w-12 h-12 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-4",children:i.jsx(Pn,{className:"w-6 h-6 text-red-600"})}),i.jsx("h3",{className:"text-lg font-medium text-gray-800 mb-2",children:"Failed to Load Negotiations"}),i.jsx("p",{className:"text-gray-600 mb-4",children:k.message})]}),!N&&!k&&F.length>0&&i.jsx("div",{className:"space-y-3",children:F.map(e=>i.jsxs("div",{className:"group relative bg-white border border-gray-200 rounded-lg px-4 py-3 transition-all duration-150 cursor-pointer hover:shadow-md hover:border-gray-300 overflow-hidden",onClick:()=>V(e.id),onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),V(e.id))},tabIndex:0,role:"button",children:[i.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-1 transition-all duration-150 "+("COMPLETED"===e.status?"bg-green-500 group-hover:w-2":"bg-amber-500 group-hover:w-2")}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-4 min-w-0 flex-1",children:[i.jsx("div",{className:"w-6 h-6 rounded-md flex items-center justify-center flex-shrink-0 "+("COMPLETED"===e.status?"bg-green-100 text-green-700":"bg-amber-100 text-amber-700"),children:"COMPLETED"===e.status?i.jsx(Sn,{className:"w-4 h-4"}):i.jsx(kn,{className:"w-4 h-4"})}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("h3",{className:"font-semibold text-gray-900 group-hover:text-gray-700 transition-colors truncate mb-1",children:e.title}),i.jsxs("div",{className:"flex items-center gap-4 text-sm text-gray-600",children:[i.jsxs("span",{className:"flex items-center gap-1.5",children:[i.jsx(En,{className:"w-3.5 h-3.5"}),e.quote_attachments.length," ","file",1!==e.quote_attachments.length?"s":""]}),i.jsx("span",{className:"text-gray-400",children:"•"}),i.jsx("span",{children:pt(e.created_at)}),i.jsx("span",{className:"text-gray-400",children:"•"}),i.jsx("span",{className:"flex items-center gap-1.5",children:e.vendor_flexibility?i.jsxs(i.Fragment,{children:[i.jsx(Fn,{className:"w-3.5 h-3.5"}),"Alternative vendors"]}):i.jsxs(i.Fragment,{children:[i.jsx(Tn,{className:"w-3.5 h-3.5"}),"Current vendors"]})})]})]})]}),i.jsxs("div",{className:"flex items-center gap-2 text-gray-700 group-hover:text-blue-600 transition-colors font-medium ml-6",children:[i.jsx("span",{className:"text-sm whitespace-nowrap",children:"COMPLETED"===e.status?"View Results":"View Details"}),i.jsx("svg",{className:"w-4 h-4 transition-transform group-hover:translate-x-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:i.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]})]},e.id))}),!N&&!k&&0===F.length&&i.jsxs("div",{className:"text-center py-16",children:[i.jsx("div",{className:"w-20 h-20 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-6",children:i.jsx(kn,{className:"w-10 h-10 text-gray-400"})}
101),i.jsx("h3",{className:"text-xl font-semibold text-gray-800 mb-3",children:"No negotiations yet"}),i.jsx("p",{className:"text-gray-600 mb-8 max-w-md mx-auto",children:"Upload your first quote to get started with our\n                      negotiation service and start saving money."}),i.jsx("button",{type:"button",onClick:()=>c("upload"),className:"bg-blue-600 text-white px-8 py-3 rounded-xl font-medium hover:bg-blue-700 transition-colors",children:"Start Your First Negotiation"})]})]})]})}),i.jsx(ps,{isOpen:"expert"===g,onClose:()=>v(null)}),i.jsx(us,{isOpen:"process"===g,onClose:()=>v(null)}),s&&i.jsx(ht,{isOpen:a,onClose:()=>o(!1)})]})},Is=({onClick:e,isSelected:t=!1,isHidden:n=!1,children:s})=>i.jsxs(Et.Item,{as:"button",type:"button",className:o("px-3 py-2 bg-powder hover:bg-hoki-50 w-full text-sm text-left flex flex-row items-center justify-between",n&&"hidden"),onClick:e,children:[s,!0===t&&i.jsx(Pe,{className:"text-primary",height:16})]}),Os=({countryRegion:t,setCountryRegion:n})=>{const s=e=>e===b.Na?"North America":e;return i.jsxs(Et,{as:"div",className:"relative flex",children:[i.jsxs(Et.Button,{children:[i.jsxs("div",{className:"border bg-power hover:bg-hoki-50 border-hoki-200 rounded-3xl px-3.5 py-1 justify-start items-center gap-1 hidden lg:flex flex-wrap",children:[i.jsx("div",{className:"whitespace-nowrap",children:"Headquarters:"}),i.jsxs("div",{className:"font-medium whitespace-nowrap flex items-center gap-x-1",children:[s(v.find(e=>e.value===t).label),i.jsx("div",{className:"w-4 h-4",children:i.jsx(Lt,{})})]})]}),i.jsx("div",{className:"block lg:hidden",children:i.jsx(ve,{className:"scale-x-[-1]"})})]}),i.jsx(Pt,{as:e.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:i.jsx(Et.Items,{className:"z-10 absolute -bottom-2 translate-y-full -right-0 divide-y divide-hoki-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none overflow-hidden w-40",children:v.map(({label:e,value:a})=>i.jsx(Et.Item,{as:"div",children:i.jsxs("button",{type:"button",className:"px-3 py-2 bg-powder hover:bg-hoki-50 w-full text-sm text-left flex flex-row items-center justify-between",onClick:()=>n(a),children:[s(e),t===a&&i.jsx(Pe,{className:"text-primary",height:16})]})},a))})})]})},Bs=({sortBy:t,setSortBy:n})=>i.jsxs(Et,{as:"div",className:"relative flex",children:[i.jsxs(Et.Button,{children:[i.jsxs("div",{className:"border bg-power hover:bg-hoki-50 border-hoki-200 rounded-3xl px-3.5 py-1 justify-start items-center gap-1 hidden lg:flex flex-wrap",children:[i.jsx("div",{className:"whitespace-nowrap",children:"Sort by:"}),i.jsxs("div",{className:"font-medium whitespace-nowrap flex items-center gap-x-1",children:[y.find(e=>e.value===t)?.label,i.jsx("div",{className:"w-4 h-4",children:i.jsx(Lt,{})})]})]}),i.jsx("div",{className:"block lg:hidden",children:i.jsx(yn,{className:"scale-x-[-1]"})})]}),i.jsx(Pt,{as:e.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:i.jsx(Et.Items,{className:"z-10 absolute -bottom-2 translate-y-full -right-0 divide-y divide-hoki-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none overflow-hidden w-40",children:y.map(({label:e,value:s})=>i.jsx(Et.Item,{as:"div",children:i.jsxs("button",{type:"button",className:"px-3 py-2 bg-powder hover:bg-hoki-50 w-full text-sm text-left flex flex-row items-center justify-between",onClick:()=>n(s),children:[e,t===s&&i.jsx(Pe,{className:"text-primary",height:16})]})},s))})})]}),qs=({isSubmitted:t,isDraft:n,hasTimeline:s,onViewProject:a,onOpenPauseQuoteCollectionModal:o,onOpenCancelProjectConfirmationModal:r,onOpenWithdrawProjectConfirmationModal:l})=>i.jsxs(Et,{as:"div",className:"relative flex",children:[i.jsx(Et.Button,{className:"flex items-center gap-x-[10px] px-2 py-2 rounded-[4px] border border-hoki-300 bg-white text-[14px] font-medium h-9",children:i.jsx(un,{className:"w-[21px] h-[21px]"})}),i.jsx(Pt,{as:e.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:i.jsxs(Et.Items,{className:"z-10 absolute -bottom-2 translate-y-full -right-0 divide-y divide-hoki-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none overflow-hidden w-56",children:[s&&i.jsx(Is,{onClick:a,children:"View Procurement Details"}),t&&i.jsxs(i.Fragment,{children:[i.jsx(Is,{onClick:o,children:"Pause Quote Collection"}),i.jsx(Is,{isHidden:!0,onClick:l,children:"Withdraw project"})]}),n&&i.jsx(Is,{onClick:r,children:"Cancel project"})]})})]}),zs=e.createContext(null),Hs=()=>{const t=e.useContext(zs);if(!t)throw new Error("useWhitegloveService must be used within a WhitegloveServiceProvider");return t},Zs=a("\n  fragment ResultCard_SourcedCroFragment on SourcedCro {\n    id\n    is_shortlisted\n    vendor_company {\n      id\n      company_name\n      company_description\n      company_ipo_status\n      company_revenue\n      company_
101size\n      website_url\n      linkedin_url\n      crunchbase_url\n      product\n      logo_url\n      is_active\n      is_cromatic_vendor\n      vendor_company_subspecialties {\n        subspecialty {\n          name\n        }\n      }\n      vendor_company_locations {\n        country\n      }\n      vendor_company_types {\n        company_type\n      }\n      vendor_company_certifications {\n        certification_name\n      }\n    }\n  }\n"),Us=a("\n  fragment ResultCard_SourcingSessionFragment on SourcingSession {\n    id\n    whiteglove_status\n    sourcing_subspecialties {\n      id\n      name\n      related_subspecialties\n    }\n  }\n"),Qs=({ctaIsLoading:e,topMatchVendorCompanyIds:t=[],onShortlist:n,onRemoveFromShortlist:s,sourcedCroFragment:a,sourcingSessionFragment:r})=>{const d=Ve(Zs,a),p=d?.vendor_company,u=Ve(Us,r),{tempShortlistedVendors:m}=Hs();if(!p)return i.jsx("div",{className:"w-full h-[150px] p-7 bg-white rounded-lg shadow border border-hoki-200 justify-start items-center gap-2.5 inline-flex",children:i.jsx(c,{size:"lg"})});const h=new Set((u?.sourcing_subspecialties||[]).map(e=>e.name));(u?.sourcing_subspecialties||[]).forEach(e=>{e?.related_subspecialties&&e.related_subspecialties.forEach(e=>{e&&h.add(e)})});const x=Array.from(new Set(p.vendor_company_subspecialties?.filter(e=>h.has(e?.subspecialty?.name)).map(e=>e?.subspecialty?.name))),f=Array.from(new Set(p.vendor_company_subspecialties?.filter(e=>!h.has(e?.subspecialty?.name)).map(e=>e?.subspecialty?.name))),g=!0===d.is_shortlisted&&u?.whiteglove_status!==l.Draft&&u?.whiteglove_status!==l.Downloaded,v=(p.vendor_company_locations||[]).map(e=>e.country),y=(p.vendor_company_certifications||[]).map(e=>e.certification_name),b=(p.vendor_company_types||[]).map(e=>e.company_type),C=d?.is_shortlisted||m.map(e=>e.id).includes(d.id||"");return i.jsx(ge,{vendorId:p.id,name:p.company_name,companySize:p.company_size,revenue:Zt(p.company_revenue),description:p.company_description,ipoStatus:p.company_ipo_status,locations:v,website:p.website_url,certificates:y,logoUrl:p.logo_url,vendorTypes:b,matchedServices:x,unmatchedServices:f,topMatchVendorCompanyIds:t,renderCTA:()=>i.jsxs("button",{type:"button",className:o("inline-flex items-center justify-center border border-primary rounded w-[40px] sm:w-[150px] py-2 bg-powder enabled:hover:bg-bleu-50 disabled:opacity-50",C&&"bg-bleu-50"),disabled:e||g,onClick:()=>{C?s(d):n(d)},"data-testid":"button:shortlist",children:[C?i.jsx(Ue,{className:"text-primary sm:mr-1.5"}):i.jsx(Ft,{className:"text-primary sm:mr-1.5"}),i.jsx("span",{className:"text-sm hidden sm:block font-medium text-primary",children:C?"Shortlisted":"Add to shortlist"})]})})},Ws=({to:e,label:t,count:n,selected:s,onClick:a,testId:r})=>i.jsxs(d,{to:e,className:o("sm:text-base lg:text-lg pt-[18px] pb-[13px] px-2.5 cursor-pointer","flex items-center gap-x-3 hover:bg-hoki-100","print:hidden",s?"font-medium text-hoki-800 border-b-[3px] border-primary":"text-hoki-600"),onClick:a,"data-testid":r,children:[t,n>0&&i.jsx("div",{className:o("rounded-full h-[22px] flex-shrink-0 flex items-center justify-center text-xs font-semibold px-1",s?"bg-bleu-100 text-primary":"text-hoki-600 bg-hoki-100"),children:n>=50?"50+":n})]}),$s=({sessionId:n,matchedCounts:a,shortlistedCounts:o})=>{const r=f(),[l,c]=function(){const[t,n]=e.useState({x:0,y:0});return Rn("scroll",()=>n(In())),Rn("resize",()=>n(In())),e.useEffect(()=>{n(In())},[]),[t,On]}(),[d,p]=t.useState({}),u=()=>{p(e=>({...e,[r.pathname]:l}))};t.useEffect(()=>{d[r.pathname]&&window.scrollTo({top:d[r.pathname].y,behavior:"instant"})},[r,c,d]);const m=e=>r.pathname.includes(e);return i.jsxs(i.Fragment,{children:[i.jsx(Ws,{count:a,to:`${s.Sourcerer}/${n}/result/matched`,label:i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"lg:hidden",children:"Matched"}),i.jsx("span",{className:"hidden lg:block",children:"Matched Vendors"})]}),selected:m("matched"),onClick:u}),i.jsx(Ws,{count:o,to:`${s.Sourcerer}/${n}/result/shortlisted`,label:i.jsx("span",{children:"Shortlisted"}),selected:m("shortlisted"),onClick:u,testId:"tablink:shortlist"})]})};const Ys=t=>e.createElement("svg",{width:227,height:129,viewBox:"0 0 227 129",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("g",{id:"undraw_logistics_x-4-dc 1",clipPath:"url(#clip0_1446_34394)"},e.createElement("path",{id:"Vector",opacity:.1,d:"M78.6068 80.5113C108.765 80.5113 133.214 79.8564 133.214 79.0486C133.214 78.2408 108.765 77.5859 78.6068 77.5859C48.4483 77.5859 24 78.2408 24 79.0486C24 79.8564 48.4483 80.5113 78.6068 80.5113Z",fill:"#6C63FF"}),e.createElement("g",{id:"Group",opacity:.7},e.createElement("path",{id:"Vector_2",d:"M77.0439 64.5234H52.3213V78.1703H77.0439V64.5234Z",fill:"#65617D"}),e.createElement("path",{id:"Vector_3",opacity:.1,d:"M68.5391 66.8965H61.0234V68.4787H68.5391V66.8965Z",fill:"black"}),e.createElement("path",{id:"Vector_4",opacity:.1,d:"M67.5996 67.0938H61.9629V68.28
10104H67.5996V67.0938Z",fill:"black"}),e.createElement("path",{id:"Vector_5",d:"M102.162 64.5234H77.4395V78.1703H102.162V64.5234Z",fill:"#65617D"}),e.createElement("path",{id:"Vector_6",opacity:.1,d:"M93.6573 66.8965H86.1416V68.4787H93.6573V66.8965Z",fill:"black"}),e.createElement("path",{id:"Vector_7",opacity:.1,d:"M92.7178 67.0938H87.0811V68.2804H92.7178V67.0938Z",fill:"black"}),e.createElement("path",{id:"Vector_8",d:"M77.0439 50.4805H52.3213V64.1274H77.0439V50.4805Z",fill:"#65617D"}),e.createElement("path",{id:"Vector_9",opacity:.1,d:"M68.5391 52.8535H61.0234V54.4358H68.5391V52.8535Z",fill:"black"}),e.createElement("path",{id:"Vector_10",opacity:.1,d:"M67.5996 53.0508H61.9629V54.2375H67.5996V53.0508Z",fill:"black"}),e.createElement("path",{id:"Vector_11",d:"M102.162 50.4805H77.4395V64.1274H102.162V50.4805Z",fill:"#65617D"}),e.createElement("path",{id:"Vector_12",opacity:.1,d:"M93.6573 52.8535H86.1416V54.4358H93.6573V52.8535Z",fill:"black"}),e.createElement("path",{id:"Vector_13",opacity:.1,d:"M92.7178 53.0508H87.0811V54.2375H92.7178V53.0508Z",fill:"black"}),e.createElement("path",{id:"Vector_14",d:"M77.0439 36.2402H52.3213V49.8871H77.0439V36.2402Z",fill:"#65617D"}),e.createElement("path",{id:"Vector_15",opacity:.1,d:"M68.5391 38.6133H61.0234V40.1955H68.5391V38.6133Z",fill:"black"}),e.createElement("path",{id:"Vector_16",opacity:.1,d:"M67.5996 38.8125H61.9629V39.9992H67.5996V38.8125Z",fill:"black"}),e.createElement("path",{id:"Vector_17",d:"M102.162 36.2402H77.4395V49.8871H102.162V36.2402Z",fill:"#65617D"}),e.createElement("path",{id:"Vector_18",opacity:.1,d:"M93.6573 38.6133H86.1416V40.1955H93.6573V38.6133Z",fill:"black"}),e.createElement("path",{id:"Vector_19",opacity:.1,d:"M92.7178 38.8125H87.0811V39.9992H92.7178V38.8125Z",fill:"black"}),e.createElement("path",{id:"Vector_20",d:"M102.162 22H77.4395V35.6469H102.162V22Z",fill:"#65617D"}),e.createElement("path",{id:"Vector_21",opacity:.1,d:"M93.6573 24.373H86.1416V25.9553H93.6573V24.373Z",fill:"black"}),e.createElement("path",{id:"Vector_22",opacity:.1,d:"M92.7178 24.5703H87.0811V25.757H92.7178V24.5703Z",fill:"black"})),e.createElement("path",{id:"Vector_23",opacity:.1,d:"M173.709 0.0216834C173.709 0.0216834 157.058 -0.983045 159.016 10.686C159.016 10.686 158.62 12.7489 160.495 13.6844C160.495 13.6844 160.525 12.8201 162.204 13.1148C162.802 13.2139 163.409 13.2431 164.014 13.2018C164.831 13.1454 165.607 12.8247 166.225 12.2881C166.225 12.2881 170.907 10.3538 172.726 2.70359C172.726 2.70359 174.073 1.03432 174.02 0.605136L171.209 1.80567C171.209 1.80567 172.17 3.83292 171.407 5.51802C171.407 5.51802 171.316 1.87885 170.776 1.95796C170.667 1.97576 169.316 2.66008 169.316 2.66008C169.316 2.66008 170.968 6.19047 169.722 8.75766C169.722 8.75766 170.195 4.40649 168.8 2.91522L166.822 4.07026C166.822 4.07026 168.753 7.71734 167.443 10.6939C167.443 10.6939 167.78 6.12916 166.405 4.35111L164.613 5.74942C164.613 5.74942 166.427 9.34508 165.321 11.8134C165.321 11.8134 165.177 6.49901 164.226 6.09751C164.226 6.09751 162.657 7.48198 162.418 8.04763C162.418 8.04763 163.66 10.6583 162.889 12.0349C162.889 12.0349 162.416 8.49462 162.028 8.47484C162.028 8.47484 160.466 10.8205 160.304 12.4305C160.304 12.4305 160.371 10.0373 161.65 8.25135C161.65 8.25135 160.139 8.51044 159.257 9.49143C159.257 9.49143 159.501 7.83205 162.036 7.68767C162.036 7.68767 163.328 5.90764 163.672 5.79886C163.672 5.79886 161.152 5.58922 159.623 6.26563C159.623 6.26563 160.968 4.70118 164.135 5.41319L165.905 3.96741C165.905 3.96741 162.586 3.51449 161.178 4.01488C161.178 4.01488 162.798 2.63041 166.381 3.64107L168.312 2.4979C168.312 2.4979 165.481 1.88873 163.796 2.10234C163.796 2.10234 165.576 1.1431 168.877 2.18343L170.262 1.56437C170.262 1.56437 168.189 1.15694 167.582 1.09168C166.975 1.02641 166.943 0.860274 166.943 0.860274C168.256 0.641301 169.604 0.791252 170.837 1.29341C170.837 1.29341 173.761 0.20562 173.709 0.0216834Z",fill:"#6C63FF"}),e.createElement("path",{id:"Vector_24",opacity:.1,d:"M153.172 2.99031C153.172 2.99031 145.656 2.53542 146.536 7.81023C146.536 7.81023 146.36 8.74178 147.203 9.16503C147.203 9.16503 147.216 8.76947 147.976 8.90594C148.246 8.95134 148.52 8.96462 148.793 8.9455C149.162 8.92041 149.513 8.77523 149.791 8.53213C149.791 8.53213 151.908 7.65992 152.731 4.20271C152.731 4.20271 153.338 3.44719 153.314 3.25336L152.044 3.79528C152.044 3.79528 152.479 4.71298 152.137 5.47444C152.137 5.47444 152.096 3.8289 151.852 3.86846C151.803 3.86846 151.192 4.18491 151.192 4.18491C151.192 4.18491 151.939 5.781 151.376 6.94197C151.376 6.94197 151.589 4.97603 150.958 4.3016L150.064 4.82374C150.064 4.82374 150.939 6.47126 150.345 7.81617C150.345 7.81617 150.498 5.75331 149.877 4.95032L149.068 5.58124C149.068 5.58124 149.886 7.207 149.388 8.32248C149.388 8.32248 149.323 5.91945 148.892 5.73947C148.892 5.73947 148.184 6.36446 148.075 6.62157C148.075 6.62157 148.636 7.80825 148.288 8.42138C148.288 8.42138 148.075 6.82133 147.893 6.8154C147.893 6.8154 147.189 7.8755 147.114 8.59542C147.149 7.92354 147.359 7.2725 147.723 6.70661C147.315 6.78379 146.939 6.97834 146.641 7.26634C146.641 7.26634 146.752 6.51872 147.897 6.45148C147.897 6.45148 148.49 5.64849 148.636 5.59904C148.636 5.59904 147.497 5.50411 146.807 5.81067C146.807 5.81067 147.414 5.10261 148.846 5.425L149.637 4.77232C149.637 4.77232 148.138 4.57454 147.501 4.79407C147.501 4.79407 148.233 4.16909 149.853 4.62398L150.723 4.10382C150.723 4.10382 149.445 3.82692 148.682 3.92779C148.682 3.92779 149.487 3.49268 150.978 3.96339L151.601 3.68452C151.601 3.68452 150.664 3.49861 150.389 3.47092C150.114 3.44323 150.1 3.3661 150.1 3.3661C150.694 3.26733 151.303 3.33581 151.86 3.56388C151.86 3.56388 153.195 3.07338 153.172 2.99031Z",fill:"#6C63FF"}),e.createElement("path",{id:"Vector_25",d:"M44.3405 127.522C48.7327 127.522 52.2932 126.92 52.2932 126.177C52.2932 125.434 48.7327 124.832 44.3405 124.832C39.9483 124.832 36.3877 125.434 36.3877 126.177C36.3877 126.92 39.9483 127.522 44.3405 127.522Z",fill:"#6C63FF"}),e.createElement("path",{id:"Vector_26",d:"M47.6294 123.976C47.9925 123.68 48.2568 123.281 48.3869 122.831C48.4858 122.378 48.292 121.842 47.8569 121.666C47.3703 121.48 46.8502 121.818 46.4566 122.159C46.063 122.499 45.6101 122.888 45.0958 122.815C45.3608 122.574 45.5591 122.269 45.6714 121.929C45.7837 121.589 45.8061 121.226 45.7367 120.875C45.7141 120.729 45.6526 120.593 45.5587 120.479C45.2877 120.191 44.7992 120.313 44.4748 120.541C43.4463 121.265 43.1596 122.663 43.1536 123.919C43.0508 123.466 43.1378 122.993 43.1358 122.534C43.1339 122.075 43.0053 121.545 42.6117 121.302C42.369 121.172 42.0961 121.107 41.8206 121.116C41.3598 121.098 40.8436 121.146 40.5291 121.484C40.1335 121.903 40.2383 122.608 40.5785 123.066C40.9187 123.525 41.4389 123.82 41.9175 124.138C42.3004 124.367 42.6269 124.678 42.8728 125.05C42.9024 125.102 42.9263 125.157 42.944 125.214H45.8435C46.4919 124.884 47.0927 124.468 47.6294 123.976Z",fill:"#6C63FF"}),e.createElement("path",{id:"Vector_27",d:"M141.881 67.643C141.864 67.4932 141.811 67.3499 141.725 67.2262C141.639 67.1024 141.523 67.0023 141.388 66.935C141.275 66.8866 141.152 66.8615 141.029 66.8613C140.906 66.8611 140.783 66.8857 140.67 66.9337C140.556 66.9817 140.453 67.0521 140.367 67.1406C140.281 67.2292 140.214 67.3341 140.17 67.4492L135.777 76.6915L134.788 113.083H136.37L136.964 76.7726L141.797 68.2166C141.885 68.0389 141.914 67.8382 141.881 67.643Z",fill:"#3F3D56"}),e.createElement("path",{id:"Vector_28",opacity:.1,d:"M212.725 121.303C211.43 122.436 210.034 123.449 208.556 124.331C208.533 124.364 208.507 124.394 208.479 124.422C208.322 124.555 208.136 124.649 207.935 124.695C203.034 127.426 197.51 128.845 191.899 128.813H83.1552C70.695 127.531 63.0923 125.832 63.0923 123.967C63.0923 122.521 67.6571 121.174 75.5169 120.047C76.3317 119.928 77.1815 119.814 78.0663 119.703C78.6108 119.634 79.1679 119.568 79.7375 119.505L80.7047 119.392C81.422 119.311 82.1584 
101119.231 82.9139 119.153H82.9752L83.7663 119.074C84.4348 119.005 85.1172 118.94 85.8134 118.876L86.3197 118.831L87.6112 118.716C88.4498 118.641 89.3068 118.569 90.1823 118.5C90.9089 118.444 91.6472 118.387 92.3975 118.33C100.004 117.767 108.774 117.341 118.317 117.067L121.042 116.974L121.96 116.954L123.898 116.91L124.675 116.894L125.492 116.879L126.074 116.869L128.803 116.825L130.205 116.805H130.492C133.808 116.766 137.186 116.745 140.626 116.744C147.426 116.744 154.02 116.825 160.304 116.98C163.911 117.067 167.409 117.177 170.796 117.312H170.827C180.594 117.695 189.336 118.261 196.571 118.963L196.703 118.977C198.56 119.157 200.319 119.349 201.968 119.547C203.521 119.733 204.978 119.928 206.331 120.128C206.8 120.197 207.255 120.269 207.698 120.338L207.811 120.358C209.686 120.66 211.331 120.969 212.725 121.303Z",fill:"#6C63FF"}),e.createElement("path",{id:"Vector_29",d:"M208.556 124.33C208.533 124.362 208.507 124.393 208.479 124.421C208.322 124.554 208.136 124.647 207.935 124.694C207.535 124.806 207.124 124.872 206.709 124.891H206.584C206.347 124.899 206.11 124.891 205.874 124.868C205.702 124.843 205.528 124.831 205.354 124.834H205.33C205.078 124.87 204.829 124.931 204.589 125.018C204.054 125.165 203.502 125.243 202.947 125.251H202.749C202.128 125.251 201.499 125.23 200.876 125.234C200.776 125.234 200.679 125.234 200.574 125.234C199.506 125.261 198.444 125.431 197.376 125.449H197.034C195.987 125.423 194.917 125.2 194.085 124.567C193.917 124.456 193.78 124.303 193.689 124.124C193.618 123.935 193.594 123.731 193.62 123.531C193.64 123.173 193.709 122.783 193.978 122.542C194.147 122.412 194.341 122.319 194.547 122.267C194.909 122.15 195.273 122.037 195.635 121.925C195.997 121.812 196.411 121.691 196.8 121.577L196.875 121.553L197.093 121.488L197.233 121.44C197.404 121.385 197.567 121.311 197.72 121.219C197.922 121.091 198.093 120.92 198.22 120.718C198.242 120.683 198.266 120.645 198.285 120.607C198.305 120.57 198.285 120.546 198.272 120.514C198.238 120.267 198.212 120.014 198.169 119.773C197.612 119.644 197.105 119.357 196.707 118.946C196.366 118.608 196.078 118.219 195.855 117.793C195.362 116.867 195.109 115.833 194.741 114.85C194.178 113.355 193.357 111.974 192.53 110.606C191.775 109.344 191.015 108.078 190.157 106.885C189.585 106.094 188.97 105.341 188.404 104.548C186.804 102.335 185.656 99.8277 185.026 97.1704C184.93 96.6606 184.793 96.1593 184.617 95.6712C184.277 94.8405 183.654 94.1641 183.171 93.4047C182.652 92.586 182.297 91.6746 182.125 90.7208C182.026 90.1789 181.86 89.5934 181.32 89.5341L181.262 89.6468C180.143 91.8224 178.994 94.0376 177.307 95.8136C177.037 96.0747 176.79 96.3586 176.569 96.6621C176.392 96.9564 176.233 97.2616 176.094 97.5759C175.827 98.1402 175.473 98.6588 175.044 99.1126C174.917 99.2416 174.778 99.3588 174.629 99.4627C174.431 99.6063 174.212 99.7166 173.978 99.789C173.886 99.8171 173.792 99.8383 173.697 99.8523C173.697 99.8761 173.707 99.8978 173.709 99.9215C173.711 99.9453 173.721 99.973 173.725 99.9987C174.016 101.581 173.891 103.212 173.363 104.732C173.349 104.779 173.333 104.825 173.316 104.872C173.234 105.094 173.145 105.311 173.049 105.525C172.807 106.049 172.521 106.551 172.295 107.083C172.258 107.174 172.22 107.265 172.186 107.356C171.395 109.474 171.593 111.84 171.49 114.116C171.481 114.614 171.422 115.11 171.314 115.596C171.18 116.144 170.964 116.709 170.845 117.275C170.737 117.699 170.728 118.142 170.82 118.57L170.772 118.588C170.561 118.667 170.345 118.738 170.129 118.806V118.835C170.207 119.278 170.282 119.721 170.359 120.162C170.424 120.542 170.501 120.954 170.766 121.223C170.838 121.282 170.905 121.348 170.964 121.42C171.12 121.666 170.982 121.99 171.011 122.281C171.055 122.692 171.435 123.042 171.375 123.452C171.349 123.574 171.293 123.688 171.212 123.784C171.131 123.879 171.029 123.954 170.913 124.001C170.815 124.045 170.713 124.078 170.608 124.098L170.543 124.112C170.424 124.134 170.305 124.146 170.187 124.158C168.713 124.304 167.22 124.45 165.76 124.201C165.472 124.152 165.185 124.086 164.892 124.063C164.522 124.046 164.152 124.061 163.785 124.108C161.077 124.365 158.354 124.417 155.638 124.266C154.932 124.227 154.121 124.112 153.747 123.509C153.437 123.009 153.549 122.362 153.706 121.79C153.75 121.58 153.831 121.379 153.945 121.197C153.958 121.177 153.972 121.159 153.988 121.141C154.352 120.689 155.037 120.661 155.626 120.679L157.552 120.736C157.742 120.751 157.933 120.737 158.118 120.692C158.431 120.602 158.668 120.352 158.961 120.212C159.329 120.036 159.791 120.014 160.056 119.713L160.09 119.67C160.137 119.606 160.18 119.54 160.221 119.472C160.221 119.458 160.238 119.444 160.248 119.431C160.255 119.418 160.263 119.406 160.272 119.395C160.515 119.075 160.94 118.968 161.287 118.764C161.339 118.734 161.389 118.698 161.435 118.659L161.474 118.624C161.102 118.358 160.777 118.031 160.513 117.657C160.412 117.547 160.336 117.416 160.294 117.273C160.27 117.165 160.278 117.053 160.317 116.95C160.326 116.925 160.337 116.901 160.349 116.87
1017L160.359 116.858C160.493 116.592 160.77 116.353 160.923 116.082C160.928 116.074 160.933 116.064 160.937 116.055C161.146 115.659 161.188 115.046 160.877 114.727C161.035 112.123 161.751 109.585 161.91 106.972C161.973 105.938 161.947 104.9 161.995 103.861C162.042 102.823 162.153 101.816 162.27 100.798C162.531 98.4698 163.164 96.1894 163.075 93.8517C163.067 93.6337 163.076 93.4155 163.102 93.199C163.101 93.1832 163.101 93.1673 163.102 93.1515C163.166 92.6724 163.315 92.2088 163.543 91.7829C163.83 91.3015 164.155 90.8438 164.514 90.4142C165.731 88.832 167.192 87.2497 167.625 85.3036C167.849 84.2988 168.343 83.3792 168.836 82.4753C169.127 81.9373 169.429 81.3855 169.894 80.99C170.146 80.8156 170.38 80.6169 170.592 80.3966C170.917 79.9773 170.928 79.3978 171.12 78.8994C171.219 78.6403 171.371 78.403 171.447 78.136C171.447 78.1083 171.46 78.0826 171.466 78.0549C171.51 77.7854 171.533 77.513 171.536 77.24C171.536 77.1609 171.547 77.0838 171.557 77.0066C171.673 76.2247 171.9 75.4634 172.232 74.746C172.273 74.655 172.313 74.5621 172.352 74.4711C171.44 73.9387 170.635 73.2404 169.979 72.4122C169.757 72.1442 169.564 71.8531 169.404 71.5439C168.996 70.735 168.903 69.8134 168.711 68.9273C168.252 66.815 167.202 64.8253 167.056 62.6656C167.012 62.0069 167.056 61.3266 166.826 60.7036C166.763 60.5351 166.689 60.3713 166.603 60.2131C166.567 60.1458 166.534 60.0786 166.498 60.0153L166.459 59.9401L166.358 59.7424L166.196 59.8689C162.149 63.0372 157.901 65.9388 153.478 68.5555L153.098 68.7809C152.901 68.8763 152.729 69.0173 152.596 69.1923C152.58 69.218 152.566 69.2437 152.553 69.2695C152.462 69.4573 152.438 69.665 152.355 69.8628C152.177 70.3157 151.72 70.6045 151.253 70.739C150.409 70.9561 149.513 70.8407 148.751 70.4166C148.654 70.3671 148.553 70.3157 148.466 70.2584C148.235 70.3866 147.991 70.4906 147.739 70.5689C146.947 70.7983 146.119 70.7884 145.3 70.7864C144.481 70.7845 143.645 70.7864 142.869 71.0554C142.351 71.2314 141.849 71.5222 141.311 71.5499C141.249 71.5538 141.187 71.5538 141.125 71.5499C140.818 71.5147 140.52 71.427 140.243 71.2908L140.081 71.2176C139.997 71.1778 139.915 71.1335 139.835 71.0851C139.749 71.0317 139.668 70.9686 139.596 70.8972C139.491 70.7921 139.415 70.6621 139.374 70.5194C139.348 70.4163 139.348 70.3081 139.374 70.205C139.382 70.1587 139.406 70.1166 139.442 70.0863C139.477 70.0654 139.517 70.0551 139.558 70.0566C139.785 70.0542 140.012 70.0734 140.235 70.114C140.366 70.132 140.498 70.1392 140.63 70.1357H140.702C140.818 70.1232 140.931 70.0869 141.033 70.0291C141.135 69.9712 141.224 69.8931 141.295 69.7995C141.317 69.7706 141.334 69.7386 141.346 69.7046C141.37 69.649 141.382 69.5891 141.382 69.5286C141.383 69.5134 141.383 69.4982 141.382 69.4831C141.299 69.4455 141.216 69.4079 141.137 69.3624C141.095 69.3407 141.056 69.3169 141.016 69.2932L140.992 69.2774C140.921 69.2291 140.855 69.1741 140.795 69.1132C140.756 69.0751 140.722 69.0326 140.694 68.9866C140.641 68.915 140.602 68.8346 140.577 68.7493C140.414 68.7152 140.245 68.72 140.084 68.7631C139.869 68.8225 139.651 68.9491 139.438 68.9926C139.33 69.0197 139.217 69.0149 139.111 68.9787C138.803 68.868 138.694 68.4922 138.629 68.1698C138.617 68.1085 138.603 68.0452 138.593 67.9819C138.57 67.8603 138.57 67.7356 138.593 67.614C138.689 67.3377 138.871 67.0997 139.113 66.9356L139.762 66.3917L139.81 66.3522C139.81 66.2988 139.788 66.2454 139.78 66.192C139.757 66.0698 139.757 65.9444 139.78 65.8221C139.876 65.5463 140.058 65.309 140.3 65.1457L141.736 63.9373C142.005 63.7118 142.298 63.4745 142.648 63.4507C143.168 63.4151 143.583 63.8463 143.973 64.1924C144.463 64.6275 145.059 64.9835 145.713 65.0271C146.025 65.0413 146.337 64.9984 146.633 64.9005L146.801 64.8451C146.766 64.7719 146.73 64.6987 146.696 64.6256C146.639 64.5049 146.582 64.3823 146.526 64.2597C147.369 64.2063 148.134 63.7435 148.773 63.1897C149.412 62.6359 149.96 61.9812 150.604 61.4373C151.301 60.844 152.1 60.4029 152.806 59.8314C154.447 58.5003 155.537 56.5442 157.293 55.3714C157.903 54.962 158.607 54.6357 159.022 54.0265C159.151 53.8287 159.247 53.6309 159.38 53.4331C159.801 52.8398 160.523 52.5669 161.118 52.1555C161.714 51.7441 162.232 51.1409 162.717 50.5614C163.061 50.148 163.407 49.7346 163.735 49.3094C164.038 48.7457 164.293 48.1563 164.609 47.6006C164.878 47.1311 165.191 46.6886 165.545 46.2794C165.626 46.1212 165.709 45.963 165.798 45.8087C165.887 45.6544 165.952 45.5496 166.035 45.4131C166.093 45.3241 166.152 45.2391 166.213 45.1521C166.033 44.8336 165.861 44.5587 165.78 44.4381L165.741 44.3847C165.566 44.1988 165.38 44.0244 165.183 43.8625C164.976 43.8312 164.771 43.7876 164.57 43.732C163.349 43.3975 162.272 42.6708 161.505 41.664C160.738 40.6572 160.324 39.4262 160.325 38.1605C160.324 38.1546 160.324 38.1486 160.325 38.1427C160.326 37.2363 160.542 36.343 160.954 35.5359C161.037 35.3738 161.126 35.2175 161.223 35.0652C161.133 35.0367 161.045 35.001 160.96 34.9584C160.816 34.8873 160.69 34.7837 160.592 34.6558C160.512 34.5419 160.46 34.4103 160.44 34.2721C160.407 33.9462 160.456 33.617 160.583 33.3149C160.636 33.1694 160.698 33.02
10168 160.766 32.8877C160.772 32.8795 160.776 32.8709 160.78 32.8619C161.664 31.0819 163.549 29.9882 165.432 29.9111C167.463 29.83 169.441 30.7833 171.043 32.148C171.521 32.5402 171.949 32.9899 172.317 33.4869C173.153 34.6499 173.531 36.1372 173.642 37.6107C173.684 38.0664 173.676 38.5253 173.618 38.9793C173.597 39.1411 173.564 39.3011 173.519 39.4579C173.494 39.5509 173.46 39.6439 173.424 39.7368C173.389 39.8298 173.367 39.8713 173.335 39.9346V39.9445C173.306 40.0078 173.272 40.0671 173.239 40.1264L173.221 40.1522L173.195 40.1937C173.211 40.2313 173.229 40.2708 173.246 40.3084C173.264 40.346 173.28 40.3816 173.3 40.4172H173.324C173.719 40.4488 174.085 40.5042 174.488 40.5358C174.678 40.5449 174.867 40.574 175.05 40.6229C175.446 40.7415 175.744 41.0303 176.077 41.2637C176.899 41.8452 177.912 42.1161 178.721 42.7174C179.908 43.6034 180.501 45.067 181.221 46.3783C182.17 48.1346 183.717 49.6298 184.399 51.5087C184.708 52.3618 185.018 53.2136 185.329 54.0641C185.936 55.7314 186.543 57.4066 187.368 58.9789C188.515 61.1664 190.068 63.1323 190.987 65.4305C191.079 65.6609 191.25 65.8505 191.47 65.9645C192.723 67.7342 193.837 69.5982 194.803 71.54C195.311 72.5665 195.791 73.6325 195.94 74.7697C196.056 75.7823 195.972 76.8077 195.693 77.7879C195.535 78.3702 195.341 78.9422 195.113 79.5007C195.024 79.6962 194.958 79.9012 194.915 80.1118C194.915 80.1336 194.915 80.1553 194.915 80.1771C194.876 80.5568 195.02 80.9326 195.06 81.3123C195.093 81.618 195.058 81.9273 194.959 82.2182C194.943 82.2637 194.925 82.3092 194.907 82.3546C194.785 82.5859 194.681 82.8266 194.597 83.0746C194.59 83.1045 194.584 83.1349 194.581 83.1655C194.516 83.5947 194.686 84.0279 194.779 84.4571C195.127 86.0077 195.064 87.6216 194.977 89.2038C194.931 89.9949 195.57 90.6298 196.104 91.2132C197.093 92.307 197.866 93.5866 198.612 94.8603C199.019 95.507 199.361 96.1919 199.634 96.9054C199.917 97.7202 200.03 98.5826 200.186 99.4271C200.691 102.038 202.338 104.344 202.785 106.961C202.992 108.159 203.521 109.278 204.314 110.2C204.553 110.447 204.773 110.712 204.972 110.991C205.11 111.214 205.22 111.453 205.299 111.703C205.493 112.285 205.585 112.896 205.57 113.509C205.538 113.803 205.555 114.099 205.619 114.387C205.805 114.994 206.47 115.329 206.745 115.9C207.019 116.472 206.83 117.204 206.942 117.852C207.031 118.375 207.313 118.846 207.733 119.17C207.575 119.308 207.409 119.435 207.239 119.565C207.396 119.687 207.534 119.833 207.648 119.996C207.726 120.106 207.793 120.223 207.846 120.346C208.107 120.954 208.115 121.675 208.329 122.324C208.42 122.593 208.548 122.878 208.469 123.151C208.435 123.229 208.413 123.312 208.402 123.396C208.402 123.574 208.588 123.691 208.659 123.853C208.685 123.935 208.689 124.021 208.671 124.105C208.653 124.189 208.613 124.266 208.556 124.33Z",fill:"url(#paint0_linear_1446_34394)"}),e.createElement("path",{id:"Vector_30",d:"M166.697 47.1963C167.908 46.87 168.986 46.1876 170.042 45.5132L173.723 43.1695C172.724 43.0904 171.861 42.3784 171.349 41.516C170.837 40.6537 170.625 39.651 170.451 38.666C168.869 39.2831 167.498 40.3294 166.221 41.4349C165.714 41.872 164.639 42.5326 164.482 43.215C164.326 43.8973 165.323 44.4511 165.709 44.908C165.841 45.0603 167.089 47.0875 166.697 47.1963Z",fill:"#FBBEBE"}
101),e.createElement("path",{id:"Vector_31",opacity:.1,d:"M166.697 47.1963C167.908 46.87 168.986 46.1876 170.042 45.5132L173.723 43.1695C172.724 43.0904 171.861 42.3784 171.349 41.516C170.837 40.6537 170.625 39.651 170.451 38.666C168.869 39.2831 167.498 40.3294 166.221 41.4349C165.714 41.872 164.639 42.5326 164.482 43.215C164.326 43.8973 165.323 44.4511 165.709 44.908C165.841 45.0603 167.089 47.0875 166.697 47.1963Z",fill:"black"}),e.createElement("path",{id:"Vector_32",d:"M146.586 66.5548C145.937 66.8871 145.247 67.2273 144.521 67.1798C143.868 67.1383 143.273 66.7843 142.782 66.3511C142.387 66.007 141.979 65.5778 141.459 65.6134C141.111 65.6371 140.818 65.8725 140.549 66.096L139.115 67.2965C138.874 67.4587 138.692 67.6946 138.595 67.969C138.567 68.1552 138.578 68.3453 138.629 68.5267C138.694 68.8471 138.803 69.2209 139.111 69.3297C139.42 69.4385 139.756 69.2051 140.083 69.1161C140.282 69.0651 140.491 69.0689 140.689 69.1271C140.886 69.1852 141.064 69.2955 141.204 69.4464C141.321 69.561 141.391 69.7144 141.402 69.8776C141.402 70.2355 141.006 70.4709 140.642 70.4887C140.278 70.5065 139.93 70.3878 139.57 70.4096C139.549 70.4068 139.527 70.4085 139.505 70.4144C139.484 70.4203 139.465 70.4304 139.447 70.444C139.43 70.4576 139.416 70.4746 139.406 70.4938C139.395 70.513 139.389 70.5342 139.386 70.5559C139.364 70.6809 139.374 70.8094 139.414 70.9297C139.454 71.05 139.524 71.1582 139.618 71.2442C139.806 71.4157 140.024 71.55 140.263 71.6398C140.539 71.7766 140.838 71.8636 141.145 71.8969C141.752 71.9365 142.31 71.6002 142.885 71.4044C143.66 71.1434 144.495 71.1354 145.314 71.1374C146.133 71.1394 146.963 71.1513 147.749 70.9218C148.534 70.6924 149.279 70.1841 149.586 69.4266C149.622 69.3559 149.634 69.2753 149.62 69.1972C149.589 69.1139 149.53 69.0439 149.453 68.9994C148.35 68.1826 147.903 67.1897 146.661 66.6023L146.586 66.5548Z",fill:"#FBBEBE"}),e.createElement("path",{id:"Vector_33",opacity:.1,d:"M146.586 66.5548C145.937 66.8871 145.247 67.2273 144.521 67.1798C143.868 67.1383 143.273 66.7843 142.782 66.3511C142.387 66.007 141.979 65.5778 141.459 65.6134C141.111 65.6371 140.818 65.8725 140.549 66.096L139.115 67.2965C138.874 67.4587 138.692 67.6946 138.595 67.969C138.567 68.1552 138.578 68.3453 138.629 68.5267C138.694 68.8471 138.803 69.2209 139.111 69.3297C139.42 69.4385 139.756 69.2051 140.083 69.1161C140.282 69.0651 140.491 69.0689 140.689 69.1271C140.886 69.1852 141.064 69.2955 141.204 69.4464C141.321 69.561 141.391 69.7144 141.402 69.8776C141.402 70.2355 141.006 70.4709 140.642 70.4887C140.278 70.5065 139.93 70.3878 139.57 70.4096C139.549 70.4068 139.527 70.4085 139.505 70.4144C139.484 70.4203 139.465 70.4304 139.447 70.444C139.43 70.4576 139.416 70.4746 139.406 70.4938C139.395 70.513 139.389 70.5342 139.386 70.5559C139.364 70.6809 139.374 70.8094 139.414 70.9297C139.454 71.05 139.524 71.1582 139.618 71.2442C139.806 71.4157 140.024 71.55 140.263 71.6398C140.539 71.7766 140.838 71.8636 141.145 71.8969C141.752 71.9365 142.31 71.6002 142.885 71.4044C143.66 71.1434 144.495 71.1354 145.314 71.1374C146.133 71.1394 146.963 71.1513 147.749 70.9218C148.534 70.6924 149.279 70.1841 149.586 69.4266C149.622 69.3559 149.634 69.2753 149.62 69.1972C149.589 69.1139 149.53 69.0439 149.453 68.9994C148.35 68.1826 147.903 67.1897 146.661 66.6023L146.586 66.5548Z",fill:"black"}),e.createElement("path",{id:"Vector_34",d:"M169.746 45.4612C169.439 45.2631 169.09 45.1382 168.728 45.096C168.365 45.0539 167.997 45.0956 167.653 45.2179C166.964 45.4661 166.346 45.8781 165.851 46.4185C165.358 46.9218 164.93 47.4861 164.58 48.0976C164.243 48.691 163.986 49.312 163.65 49.9034C163.057 50.9615 162.281 51.895 161.502 52.8206C161.018 53.3962 160.527 53.9796 159.906 54.4029C159.285 54.8261 158.591 55.0852 158.169 55.6726C158.037 55.8585 157.942 56.0682 157.811 56.2561C157.398 56.8613 156.696 57.1857 156.085 57.5911C154.333 58.758 153.243 60.7002 151.605 62.0234C150.899 62.593 150.102 63.04 149.408 63.6214C148.761 64.1614 148.221 64.8081 147.576 65.3619C146.932 65.9157 146.174 66.3726 145.333 66.424C145.895 67.676 146.566 68.9042 147.529 69.8792C148.492 70.8543 149.936 71.4773 151.251 71.0956C151.718 70.9611 152.175 70.6763 152.353 70.2253C152.409 69.9936 152.487 69.7677 152.586 69.5509C152.718 69.3769 152.89 69.2366 153.087 69.1415C158.366 66.0596 163.399 62.5728 168.14 58.7125C169.411 57.6761 170.673 56.7486 171.979 55.7458C172.447 55.4139 172.879 55.0348 173.27 54.6145C173.814 53.9644 174.154 53.1679 174.247 52.325C174.34 51.4822 174.182 50.6307 173.792 49.8776C173.442 49.3015 173.041 48.7581 172.594 48.2539C171.78 47.1942 170.821 46.2542 169.746 45.4612Z",fill:"#6C63FF"}),e.createElement("path",{id:"Vector_35",opacity:.1,d:"M169.746 45.4612C169.439 45.2631 169.09 45.1382 168.728 45.096C168.365 45.0539 167.997 45.0956 167.653 45.2179C166.964 45.4661 166.346 45.8781 165.851 46.4185C165.358 46.9218 164.93 47.4861 164.58 48.0976C164.243 48.691 163.986 49.312 163.65 49.9034C163.057 50.9615 162.281 51.895 161.502 52.8206C161.018 53.3962 160.527 53.9796 159.906 54.4029C159.285 54.8261 158.591 55.0852 158.169 55.6726C158.037 55.8585 157.942 56.0682 157.811 56.2561C157.398 56.8613 156.696 57.1857 156.085 57.5911C154.333 58.758 153.243 60.7002 151.605 62.0234C150.899 62.593 150.102 63.04 149.408 63.6214C148.761 64.1614 148.221 64.8081 147.576 65.3619C146.932 65.9157 146.174 66.3726 145.333 66.424C145.895 67.676 146.566 68.9042 147.529 69.8792C148.492 70.8543 149.936 71.4773 151.251 71.0956C151.718 70.9611 152.175 70.6763 152.353 70.2253C152.409 69.9936 152.487 69.7677 152.586 69.5509C152.718 69.3769 152.89 69.2366 153.087 69.1415C158.366 66.0596 163.399 62.5728 168.14 58.7125C169.411 57.6761 170.673 56.7486 171.979 55.7458C172.447 55.4139 172.879 55.0348 173.27 54.6145C173.814 53.9644 174.154 53.1679 174.247 52.325C174.34 51.4822 174.182 50.6307 173.792 49.8776C173.442 49.3015 173.041 48.7581 172.594 48.2539C171.78 47.1942 170.821 46.2542 169.746 45.4612Z",fill:"black"}),e.createElement("path",{id:"Vector_36",d:"M161.247 118.832C160.901 119.03 160.476 119.14 160.233 119.461C160.153 119.564 160.1 119.684 160.015 119.783C159.752 120.092 159.285 120.106 158.919 120.282C158.627 120.42 158.389 120.677 158.079 120.758C157.893 120.802 157.701 120.817 157.511 120.802L155.589 120.744C154.979 120.727 154.265 120.758 153.911 121.255C153.796 121.437 153.715 121.638 153.67 121.848C153.522 122.416 153.401 123.059 153.712 123.557C154.083 124.15 154.898 124.271 155.6 124.31C158.313 124.461 161.033 124.408 163.737 124.152C164.103 124.105 164.472 124.09 164.841 124.107C165.134 124.13 165.42 124.196 165.709 124.245C167.167 124.492 168.658 124.348 170.129 124.202C170.378 124.19 170.623 124.138 170.855 124.047C170.971 124 171.073 123.926 171.153 123.83
101C171.234 123.735 171.289 123.621 171.316 123.5C171.377 123.092 170.996 122.746 170.954 122.337C170.925 122.048 171.063 121.725 170.905 121.48C170.846 121.408 170.779 121.342 170.707 121.282C170.442 121.008 170.365 120.606 170.3 120.23L169.953 118.199C169.944 118.056 169.885 117.92 169.787 117.815C169.715 117.763 169.631 117.728 169.542 117.714C168.035 117.374 166.49 117.685 164.993 117.875C164.223 117.988 163.443 118.027 162.665 117.991C162.329 117.97 162.198 117.93 161.947 118.15C161.696 118.369 161.562 118.648 161.247 118.832Z",fill:"#3F3D56"}),e.createElement("path",{id:"Vector_37",d:"M197.64 121.277C197.376 121.424 197.092 121.536 196.798 121.607C196.021 121.834 195.246 122.07 194.472 122.317C194.266 122.368 194.073 122.461 193.904 122.59C193.635 122.827 193.566 123.215 193.546 123.579C193.521 123.779 193.544 123.983 193.615 124.172C193.708 124.35 193.844 124.501 194.011 124.611C194.897 125.282 196.054 125.489 197.166 125.489C198.277 125.489 199.381 125.301 200.492 125.272C201.835 125.236 203.214 125.426 204.505 125.05C204.752 124.959 205.008 124.897 205.269 124.864C205.442 124.862 205.615 124.873 205.787 124.898C206.479 124.966 207.179 124.903 207.848 124.71C208.049 124.666 208.236 124.572 208.394 124.439C208.471 124.372 208.527 124.282 208.553 124.183C208.579 124.083 208.575 123.978 208.54 123.881C208.469 123.721 208.287 123.605 208.285 123.428C208.294 123.344 208.316 123.261 208.35 123.183C208.431 122.912 208.301 122.629 208.21 122.362C207.954 12
1011.599 207.996 120.721 207.539 120.058C207.082 119.396 206.244 119.123 205.447 119.018C204.799 118.926 204.14 118.945 203.498 119.073C202.777 119.228 202.102 119.55 201.394 119.756C200.572 119.992 199.714 120.073 198.862 119.995C198.297 119.948 198.491 120.037 198.299 120.511C198.163 120.828 197.933 121.095 197.64 121.277Z",fill:"#3F3D56"}),e.createElement("path",{id:"Vector_38",d:"M166.037 44.4537C169.205 44.4537 171.773 41.8858 171.773 38.7181C171.773 35.5504 169.205 32.9824 166.037 32.9824C162.869 32.9824 160.301 35.5504 160.301 38.7181C160.301 41.8858 162.869 44.4537 166.037 44.4537Z",fill:"#FBBEBE"}),e.createElement("path",{id:"Vector_39",d:"M207.619 119.225C205.838 120.754 203.435 121.423 201.092 121.446C200.103 121.456 199.076 121.349 198.234 120.837C198.174 120.513 198.151 120.163 198.091 119.838C197.069 119.625 196.276 118.792 195.781 117.87C195.287 116.949 195.036 115.924 194.668 114.947C194.106 113.46 193.283 112.089 192.461 110.729C191.705 109.475 190.948 108.217 190.087 107.032C189.518 106.241 188.901 105.497 188.337 104.708C186.74 102.511 185.594 100.02 184.965 97.3783C184.868 96.8717 184.732 96.3736 184.555 95.889C184.215 95.0623 183.592 94.3898 183.111 93.6363C182.593 92.8231 182.238 91.917 182.065 90.9682C181.968 90.4303 181.802 89.8488 181.262 89.7934C180.127 91.9987 178.97 94.2395 177.253 96.0334C176.983 96.2924 176.737 96.5743 176.515 96.8759C176.338 97.1689 176.18 97.4728 176.041 97.7857C175.775 98.347 175.421 98.8624 174.993 99.3126C174.634 99.6965 174.161 99.9544 173.644 100.048C174.025 101.949 173.798 103.921 172.995 105.685C172.756 106.207 172.469 106.706 172.243 107.234C171.322 109.409 171.535 111.864 171.438 114.223C171.43 114.718 171.372 115.21 171.264 115.693C171.025 116.658 170.531 117.684 170.77 118.65C168.29 119.597 165.535 119.538 162.908 119.138C162.394 119.091 161.896 118.94 161.443 118.693C161.07 118.429 160.745 118.104 160.481 117.732C160.38 117.623 160.305 117.493 160.262 117.35C160.159 116.899 160.657 116.559 160.889 116.164C161.12 115.768 161.162 115.141 160.843 114.817C161.002 112.228 161.718 109.7 161.876 107.103C161.939 106.075 161.913 105.042 161.961 104.012C162.008 102.981 162.119 101.979 162.234 100.966C162.495 98.654 163.128 96.3874 163.039 94.0635C163.012 93.3483 163.176 92.6388 163.515 92.0086C163.801 91.5296 164.125 91.0746 164.484 90.6478C165.699 89.0794 167.158 87.5071 167.592 85.5708C167.815 84.572 168.31 83.6582 168.8 82.7603C169.091 82.2243 169.393 81.6765 169.856 81.2829C170.108 81.1087 170.342 80.91 170.554 80.6896C170.879 80.2722 170.891 79.7007 171.082 79.2022C171.181 78.9451 171.334 78.7078 171.407 78.4428C171.467 78.15 171.497 77.8517 171.496 77.5527C171.559 76.5955 171.927 75.6699 172.315 74.7937C171.403 74.2659 170.598 73.5723 169.941 72.7487C169.721 72.4812 169.528 72.1915 169.368 71.8843C168.96 71.0814 168.867 70.1656 168.675 69.2855C168.219 67.1851 167.168 65.2092 167.022 63.0633C166.978 62.4087 167.022 61.7323 166.795 61.1132C166.69 60.8512 166.567 60.5968 166.427 60.3517C166.289 60.111 166.184 59.8529 166.114 59.5844C165.988 59.0009 166.162 58.3977 166.114 57.8043C166.067 57.2802 165.843 56.7897 165.732 56.2775C165.619 55.611 165.6 54.9319 165.675 54.2601C165.725 53.469 165.897 52.6521 165.829 51.8709C165.72 50.5782 165.885 49.277 166.313 48.0522C166.74 46.8274 167.422 45.7065 168.312 44.7627L168.357 44.7172C168.735 44.3216 169.148 43.9715 169.488 43.5522C169.951 42.9905 170.279 42.3299 170.768 41.7841C170.982 41.5408 171.223 41.3232 171.434 41.078C171.629 40.8208 171.844 40.58 172.077 40.3581C172.195 40.2483 172.339 40.1691 172.495 40.1274C172.65 40.0857 172.814 40.0827 172.971 40.1188C173.011 40.4137 173.103 40.6991 173.244 40.9613C173.656 40.9929 174.021 41.0503 174.431 41.0819C174.621 41.091 174.809 41.1201 174.993 41.169C175.378 41.2857 175.687 41.5645 176.017 41.8038C176.84 42.3833 177.851 42.6523 178.659 43.2496C179.846 44.1298 180.439 45.5834 181.155 46.8868C182.103 48.6332 183.647 50.1186 184.32 51.9856L185.248 54.5251C185.855 56.1825 186.462 57.8459 187.285 59.4083C188.43 61.5839 189.98 63.5439 190.9 65.8204C190.992 66.0487 191.162 66.2367 191.381 66.3504C192.633 68.1068 193.746 69.9584 194.709 71.8883C195.218 72.9089 195.698 73.969 195.845 75.0983C196.06 76.6944 195.625 78.3083 195.02 79.7995C194.922 80.0131 194.855 80.2395 194.822 80.472C194.783 80.8498 194.927 81.2216 194.966 81.5993C195.005 81.9521 194.952 82.3088 194.814 82.6357C194.691 82.8654 194.587 83.1049 194.504 83.3517C194.397 83.8066 194.587 84.2694 194.69 84.7243C195.038 86.265 194.974 87.8611 194.887 89.4394C194.842 90.2305 195.481 90.8575 196.013 9
1011.437C197.002 92.5228 197.773 93.7925 198.519 95.0603C198.924 95.7033 199.266 96.3842 199.539 97.0935C199.822 97.9024 199.935 98.7588 200.091 99.5994C200.593 102.192 202.239 104.485 202.686 107.085C202.893 108.277 203.421 109.389 204.213 110.303C204.451 110.55 204.671 110.815 204.871 111.094C205.008 111.316 205.117 111.554 205.196 111.802C205.39 112.38 205.482 112.987 205.467 113.596C205.435 113.888 205.452 114.182 205.516 114.469C205.702 115.072 206.367 115.404 206.639 115.972C206.912 116.539 206.725 117.267 206.837 117.912C206.922 118.433 207.202 118.902 207.619 119.225Z",fill:"#6C63FF"}),e.createElement("path",{id:"Vector_40",d:"M147.772 64.7755C147.123 65.1078 146.433 65.448 145.707 65.4005C145.055 65.359 144.459 65.005 143.969 64.5718C143.573 64.2277 143.166 63.7985 142.646 63.8341C142.298 63.8578 142.005 64.0932 141.736 64.3167L140.302 65.5172C140.061 65.6794 139.878 65.9153 139.782 66.1897C139.753 66.3759 139.765 66.566 139.815 66.7474C139.881 67.0678 139.989 67.4416 140.298 67.5504C140.607 67.6592 140.943 67.4258 141.269 67.3368C141.468 67.2858 141.678 67.2896 141.875 67.3478C142.073 67.4059 142.251 67.5162 142.39 67.6671C142.507 67.7817 142.577 67.9352 142.588 68.0983C142.588 68.4562 142.193 68.6916 141.829 68.7094C141.465 68.7272 141.117 68.6085 140.757 68.6303C140.735 68.6275 140.713 68.6292 140.692 68.6351C140.671 68.641 140.651 68.6511 140.634 68.6647C140.617 68.6783 140.603 68.6953 140.592 68.7145C140.582 68.7337 140.575 68.7549 140.573 68.7767C140.551 68.9016 140.56 69.0301 140.6 69.1504C140.641 69.2707 140.711 69.3789 140.804 69.4649C140.992 69.6365 141.211 69.7707 141.449 69.8605C141.726 69.9973 142.024 70.0843 142.331 70.1176C142.938 70.1572 143.496 69.8209 144.072 69.6251C144.847 69.3641 145.682 69.3561 146.5 69.3581C147.319 69.3601 148.15 69.372 148.935 69.1425C149.72 68.9131 150.466 68.4048 150.772 67.6473C150.809 67.5767 150.82 67.496 150.806 67.4179C150.775 67.3346 150.717 67.2646 150.64 67.2201C149.536 66.4033 149.089 65.4104 147.847 64.823L147.772 64.7755Z",fill:"#FBBEBE"}),e.createElement("path",{id:"Vector_41",d:"M163.246 35.192C162.904 35.2474 162.614 35.4788 162.289 35.6074C162.072 35.692 161.838 35.7293 161.605 35.7171C161.372 35.7048 161.144 35.6431 160.936 35.5362C160.792 35.4658 160.665 35.3629 160.567 35.2356C160.302 34.8677 160.394 34.3337 160.557 33.9025C161.324 31.8634 163.373 30.6015 165.402 30.5205C167.432 30.4394 169.405 31.3867 171.005 32.7415C171.481 33.1325 171.908 33.5794 172.277 34.0726C173.112 35.2296 173.49 36.707 173.6 38.1706C173.667 38.7848 173.626 39.4058 173.48 40.006C173.409 40.2977 173.281 40.5722 173.102 40.8132C172.924 41.0541 172.698 41.2565 172.439 41.4083C171.874 41.6971 171.195 41.6061 170.624 41.3292C170.052 41.0523 169.562 40.6152 169.071 40.1979C168.849 39.9836 168.586 39.8162 168.298 39.7054C168.154 39.6542 167.999 39.6457 167.85 39.6807C167.702 39.7158 167.567 39.7931 167.461 39.9032C167.196 40.2216 167.263 40.7438 167.022 41.0899C166.781 41.436 166.278 41.4854 165.855 41.4854C165.432 41.4854 165.003 41.4498 164.75 41.1136C164.518 40.809 164.552 40.364 164.639 39.9803C164.726 39.5966 164.874 39.2169 164.837 38.8233C164.756 38.0322 164.063 37.5456 163.848 36.8178C163.707 36.3412 164.016 36.1394 163.984 35.7083C163.96 35.3285 163.553 35.1426 163.246 35.192Z",fill:"#3F3D56"}),e.createElement("path",{id:"Vector_42",opacity:.1,d:"M181.266 89.746V89.7954C180.131 92.0007 178.974 94.2415 177.257 96.0354C176.987 96.2944 176.74 96.5763 176.519 96.878C176.342 97.1709 176.183 97.4748 176.045 97.7877C175.778 98.349 175.424 98.8644 174.996 99.3146L173.564 100.031L178.113 76.2969L181.266 89.746Z",fill:"black"}),e.createElement("path",{id:"Vector_43",opacity:.1,d:"M174.654 53.824C174.263 54.2443 173.831 54.6234 173.363 54.9553C172.057 55.9442 170.791 56.8778 169.524 57.9221C168.502 58.7541 167.465 59.5689 166.415 60.3666C166.277 60.1259 166.172 59.8678 166.102 59.5992C165.975 59.0158 166.149 58.4125 166.102 57.8192C166.055 57.2951 165.831 56.8046 165.72 56.2923C165.607 55.6258 165.588 54.9468 165.663 54.275C165.712 53.4838 165.884 52.667 165.817 51.8858C165.708 50.5899 165.873 49.2856 166.303 48.0582C166.733 46.8308 167.417 45.7081 168.311 44.7637L168.357 44.7182C168.57 44.5944 168.795 44.4937 169.029 44.4176C169.374 44.2966 169.742 44.2566 170.105 44.3005C170.468 44.3444 170.816 44.471 171.122 44.6707C172.197 45.4637 173.156 46.4038 173.97 47.4634C174.417 47.9676 174.818 48.5111 175.168 49.0872C175.559 49.8395 175.719 50.6905 175.627 51.5333C175.536 52.3762 175.197 53.1731 174.654 53.824Z",fill:"black"}),e.createElement("path",{id:"Vector_44",d:"M170.932 43.6819C170.625 43.4839 170.277 43.3589 169.914 43.3167C169.551 43.2746 169.184 43.3163 168.84 43.4386C168.151 43.6868 167.532 44.0988 167.038 44.6392C166.544 45.1425 166.117 45.7068 165.766 46.3183C165.43 46.9117 165.173 47.5327 164.837 48.1241C164.243 49.1822 163.468 50.1157 162.689 51.0413C162.204 51.6169 161.714 52.2003 161.093 52.6236C160.471 53.0468 159.777 53.3059 159.356 53.8933C159.223 54.0792 159.129 54.2889 158.998 54.4768C158.585 55.082 157.883 55.4064 157.271 55.8118C155.519 56.9787 154.429 58.9209 152.792 60.2441C152.086 60.8137 151.289 61.2607 150.594 61.8421C149.948 62.3821 149.408 63.0288 148.763 63.5826C148.118 64.1364 147.361 64.5933 146.52 64.6447C147.082 65.8967 147.752 67.1249 148.715 68.0999C149.679 69.075 151.122 69.698 152.438 69.3163C152.904 69.1818 153.361 68.897 153.539 68.446C153.595 68.2143 153.673 67.9884 153.773 67.7716C153.905 67.5976 154.076 67.4573 
101154.273 67.3622C159.553 64.2803 164.586 60.7935 169.326 56.9332C170.598 55.8969 171.86 54.9693 173.165 53.9665C173.633 53.6346 174.066 53.2555 174.457 52.8352C175.001 52.1851 175.341 51.3886 175.434 50.5457C175.527 49.7029 175.368 48.8514 174.979 48.0983C174.629 47.5222 174.228 46.9788 173.78 46.4746C172.966 45.4149 172.008 44.4749 170.932 43.6819Z",fill:"#6C63FF"}),e.createElement("g",{id:"Group_2",opacity:.1},e.createElement("path",{id:"Vector_45",d:"M166.251 40.6889C165.855 40.6889 165.398 40.6533 165.145 40.3171C164.916 40.0125 164.947 39.5675 165.034 39.1838C165.121 38.8001 165.27 38.4203 165.232 38.0268C165.151 37.2356 164.459 36.7491 164.243 36.0213C164.103 35.5446 164.411 35.3429 164.38 34.9117C164.352 34.5379 163.947 34.352 163.64 34.4014C163.298 34.4568 163.007 34.6882 162.683 34.8168C162.465 34.9013 162.232 34.9387 161.999 34.9265C161.766 34.9142 161.538 34.8525 161.33 34.7456C161.185 34.6752 161.059 34.5723 160.96 34.4449C160.695 34.0771 160.788 33.5431 160.95 33.1119C160.95 33.0961 160.964 33.0822 160.97 33.0664C160.805 33.331 160.665 33.6113 160.555 33.903C160.393 34.3342 160.3 34.8682 160.565 35.2361C160.663 35.3634 160.79 35.4663 160.934 35.5367C161.142 35.6436 161.37 35.7053 161.603 35.7176C161.836 35.7299 162.07 35.6925 162.287 35.6079C162.612 35.4793 162.902 35.2479 163.245 35.1926C163.551 35.1431 163.957 35.329 163.984 35.7028C164.016 36.134 163.707 36.3357 163.848 36.8124C164.059 37.5402 164.752 38.0347 164.837 38.8179C164.876 39.2134 164.732 39.5932 164.639 39.9749C164.546 40.3566 164.52 40.8036 164.75 41.1082C165.003 41.4444 165.456 41.4761 165.855 41.48C166.255 41.484 166.769 41.4563 167.022 41.0844C167.131 40.8977 167.203 40.6915 167.234 40.4773C166.965 40.6691 166.589 40.6928 166.251 40.6889Z",fill:"black"}),e.createElement("path",{id:"Vector_46",d:"M172.835 40.6179C172.269 40.9067 171.591 40.8157 171.019 40.5388C170.448 40.2619 169.957 39.8248 169.467 39.4075C169.244 39.1932 168.981 39.0258 168.693 38.915C168.55 38.8638 168.394 38.8553 168.246 38.8904C168.097 38.9255 167.962 39.0027 167.857 39.1128C167.722 39.3114 167.637 39.5393 167.609 39.7773C167.712 39.7167 167.827 39.6789 167.946 39.6662C168.064 39.6536 168.184 39.6666 168.298 39.7042C168.586 39.8149 168.849 39.9824 169.071 40.1966C169.561 40.614 170.06 41.053 170.624 41.3279C171.187 41.6029 171.874 41.6958 172.439 41.4071C172.939 41.1143 173.304 40.636 173.454 40.076C173.291 40.3013 173.08 40.4866 172.835 40.6179Z",fill:"black"})),e.createElement("path",{id:"Vector_47",d:"M123.613 125.642C126.89 125.642 129.547 122.986 129.547 119.709C129.547 116.432 126.89 113.775 123.613 113.775C120.336 113.775 117.68 116.432 117.68 119.709C117.68 122.986 120.336 125.642 123.613 125.642Z",fill:"#3F3D56"}),e.createElement("path",{id:"Vector_48",opacity:.1,d:"M123.613 125.642C126.89 125.642 129.547 122.986 129.547 119.709C129.547 116.432 126.89 113.775 123.613 113.775C120.336 113.775 117.68 116.432 117.68 119.709C117.68 122.986 120.336 125.642 123.613 125.642Z",fill:"black"}),e.createElement("path",{id:"Vector_49",d:"M123.613 123.467C125.689 123.467 127.371 121.784 127.371 119.709C127.371 117.634 125.689 115.951 123.613 115.951C121.538 115.951 119.855 117.634 119.855 119.709C119.855 121.784 121.538 123.467 123.613 123.467Z",fill:"#65617D"}),e.createElement("path",{id:"Vector_50",opacity:.1,d:"M123.613 123.467C125.689 123.467 127.371 121.784 127.371 119.709C127.371 117.634 125.689 115.951 123.613 115.951C121.538 115.951 119.855 117.634 119.855 119.709C119.855 121.784 121.538 123.467 123.613 123.467Z",fill:"black"}),e.createElement("path",{id:"Vector_51",d:"M119.064 110.414L122.957 119.215C123.015 119.347 123.109 119.459 123.229 119.539C123.349 119.619 123.489 119.664 123.633 119.666C123.777 119.669 123.919 119.631 124.042 119.556C124.165 119.481 124.264 119.372 124.327 119.243L128.953 109.82L119.064 110.414Z",fill:"#3F3D56"}),e.createElement("path",{id:"Vector_52",opacity:.1,d:"M119.064 110.414L122.957 119.215C123.015 119.347 123.109 119.459 123.229 119.539C123.349 119.619 123.489 119.664 123.633 119.666C123.777 119.669 123.919 119.631 124.042 119.556C124.165 119.481 124.264 119.372 124.327 119.243L128.953 109.82L119.064 110.414Z",fill:"black"}),e.createElement("path",{id:"Vector_53",d:"M86.6283 125.642C89.9052 125.642 92.5617 122.986 92.5617 119.709C92.5617 116.432 89.9052 113.775 86.6283 113.775C83.3513 113.775 80.6948 116.432 80.6948 119.709C80.6948 122.986 83.3513 125.642 86.6283 125.642Z",fill:"#3F3D56"}),e.createElement("path",{id:"Vector_54",opacity:.1,d:"M86.6283 125.642C89.9052 125.642 92.5617 122.986 92.5617 119.709C92.5617 116.432 89.9052 113.775 86.6283 113.775C83.3513 113.775 80.6948 116.432 80.6948 119.709C80.6948 122.986 83.3513 125.642 86.6283 125.642Z",fill:"black"}),e.createElement("path",{id:"Vector_55",d:"M86.628 123.467C88.7034 123.467 90.3858 121.784 90.3858 119.709C90.3858 117.634 88.7034 115.951 86.628 115.951C84.5526 115.951 82.8701 117.634 82.8701 119.709C82.8701 121.784 84.5526 123.467 86.628 123.467Z",fill:"#65617D"}),e.createElement("path",{id:"Vector_56",opacity:.1,d:"M86.628 123.467C88.7034 123.467 90.3858 121.784 90.3858 119.709C90.3858 117.634 88.7034 115.951 86.628 115.951C84.5526 115.951 82.8701 117.634 82.8701 119.709C82.8701 121.784 84.5526 123.467 86.628 123.467Z",fill:"black"}),e.createElement("path",{id:"Vector_57",d:"M82.0791 110.414L85.9714 119.215C86.0294 119.347 86.1239 119.459 86.2437 119.539C86.3636 119.619 86.5038 119.664 86.6479 119.666C86.792 119.669 86.9339 119.631 87.0569 119.556C87.1799 119.481 87.2788 119.372 87.342 119.243L91.9681 109.82L82.0791 110.414Z",fill:"#3F3D56"}),e.createElement("path",{id:"Vector_58",opacity:.1,d:"M82.0791 110.414L85.9714 119.215C86.0294 119.347 86.1239 119.459 86.2437 119.539C86.3636 119.619 86.5038 119.664 86.6479 119.666C86.792 119.669 86.9339 119.631 87.0569 119.556C87.1799 119.481 87.2788 119.372 87.342 119.243L91.9681 109.82L82.0791 110.414Z",fill:"black"}),e.createElement("path",{id:"Vector_59",d:"M142.869 68.0395C142.853 67.8897 142.799 67.7464 142.713 67.6226C142.627 67.4989 142.511 67.3988 142.377 67.3315C142.263 67.2831 142.141 67.258 142.018 67.2578C141.894 67.2576 141.772 67.2822 141.658 67.3302C141.545 67.3782 141.442 67.4485 141.356 67.5371C141.27 67.6257 141.203 67.7306 141.158 67.8457L137.755 76.2969L136.766 114.271H138.348L138.941 76.378L142.786 68.6131C142.874 68.4354 142.903 68.2347 142.869 68.0395Z",fill:"#3F3D56"}),e.createElement("path",{id:"Vector_60",d:"M72.8823 111.304L78.2224 107.942L135.876 107.447L137.359 
101111.304H72.8823Z",fill:"#6C63FF"}),e.createElement("path",{id:"Vector_61",d:"M72.8823 114.863V111.303L138.403 110.67L138.34 113.083H74.069V114.863H72.8823Z",fill:"#3F3D56"}),e.createElement("path",{id:"Vector_62",d:"M81.1893 127.718C84.4662 127.718 87.1227 125.062 87.1227 121.785C87.1227 118.508 84.4662 115.852 81.1893 115.852C77.9123 115.852 75.2559 118.508 75.2559 121.785C75.2559 125.062 77.9123 127.718 81.1893 127.718Z",fill:"#3F3D56"}),e.createElement("path",{id:"Vector_63",d:"M81.189 125.543C83.2644 125.543 84.9468 123.861 84.9468 121.785C84.9468 119.71 83.2644 118.027 81.189 118.027C79.1136 118.027 77.4312 119.71 77.4312 121.785C77.4312 123.861 79.1136 125.543 81.189 125.543Z",fill:"#65617D"}),e.createElement("path",{id:"Vector_64",d:"M76.6401 112.49L80.5325 121.291C80.5904 121.423 80.6849 121.536 80.8048 121.616C80.9246 121.696 81.0649 121.74 81.2089 121.743C81.353 121.746 81.4949 121.707 81.6179 121.632C81.7409 121.557 81.8398 121.448 81.9031 121.319L86.5292 111.896L76.6401 112.49Z",fill:"#3F3D56"}),e.createElement("path",{id:"Vector_65",d:"M127.272 127.718C130.549 127.718 133.206 125.062 133.206 121.785C133.206 118.508 130.549 115.852 127.272 115.852C123.995 115.852 121.339 118.508 121.339 121.785C121.339 125.062 123.995 127.718 127.272 127.718Z",fill:"#3F3D56"}),e.createElement("path",{id:"Vector_66",d:"M127.272 125.543C129.347 125.543 131.03 123.861 131.03 121.785C131.03 119.71 129.347 118.027 127.272 118.027C125.197 118.027 123.514 119.71 123.514 121.785C123.514 123.861 125.197 125.543 127.272 125.543Z",fill:"#65617D"}),e.createElement("path",{id:"Vector_67",d:"M122.723 112.49L126.615 121.291C126.673 121.423 126.768 121.536 126.888 121.616C127.008 121.696 127.148 121.74 127.292 121.743C127.436 121.746 127.578 121.707 127.701 121.632C127.824 121.557 127.923 121.448 127.986 121.319L132.612 111.896L122.723 112.49Z",fill:"#3F3D56"})),e.createElement("defs",null,e.createElement("linearGradient",{id:"paint0_linear_1446_34394",x1:173.618,y1:125.471,x2:173.618,y2:29.915,gradientUnits:"userSpaceOnUse"},e.createElement("stop",{stopColor:"#808080",stopOpacity:.25}),e.createElement("stop",{offset:.54,stopColor:"#808080",stopOpacity:.12}),e.createElement("stop",{offset:1,stopColor:"#808080",stopOpacity:.1})),e.createElement("clipPath",{id:"clip0_1446_34394"},e.createElement("rect",{width:226.261,height:128.807,fill:"white"})))),Ks=t=>e.createElement("svg",{width:176,height:110,viewBox:"0 0 176 110",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("g",{id:"Group 1000003361"},e.createElement("path",{id:"Vector",d:"M130.427 108.855H54.479V30.9299C54.479 14.3508 67.967 0.862732 84.5461 0.862732H100.36C116.939 0.862732 130.427 14.3508 130.427 30.9299V108.855Z",fill:"#F2F2F2"}),e.createElement("path",{id:"Vector_2",d:"M114.613 108.855H54.4791V30.9298C54.4625 24.5771 56.4741 18.3849 60.2211 13.2548C60.3593 13.0666 60.497 12.8807 60.6391 12.6969C62.4515 10.3199 64.6083 8.22644 67.0384 6.48572C67.1756 6.38584 67.3134 6.2877 67.4533 6.18956C69.4867 4.78242 71.6863 3.63211 74.0019 2.76481C74.1395 2.71269 74.2795 2.66047 74.4195 2.61038C76.5138 1.86298 78.6848 1.35101 80.8924 1.08394C81.0293 1.06524 81.1698 1.05061 81.3103 1.03598C83.4616 0.805959 85.6313 0.805959 87.7826 1.03598C87.9228 1.05061 88.0633 1.06524 88.2017 1.08414C90.4088 1.35123 92.5792 1.86313 94.673 2.61039C94.8131 2.66048 94.9531 2.7127 95.091 2.76492C97.3781 3.62127 99.5518 4.75442 101.564 6.13906C101.703 6.23508 101.843 6.33322 101.981 6.43137C103.343 7.40366 104.623 8.48685 105.806 9.66988C106.755 10.6188 107.64 11.6303 108.454 12.6976C108.596 12.8808 108.733 13.0666 108.871 13.2545C112.618 18.3847 114.63 24.577 114.613 30.9298V108.855Z",fill:"#CCCCCC"}),e.createElement("path",{id:"Vector_3",d:"M98.0769 86.2783H71.0268C70.6706 86.2803 70.3281 86.1408 70.0746 85.8905C69.821 85.6403 69.6771 85.2997 69.6743 84.9435V24.5658C69.6771 24.2096 69.821 23.869 70.0746 23.6187C70.3281 23.3685 70.6706 23.229 71.0268 23.2309H98.0769C98.4331 23.229 98.7756 23.3685 99.0291 23.6187C99.2827 23.869 99.4266 24.2096 99.4294 24.5658V84.9435C99.4266 85.2997 99.2827 85.6403 99.0291 85.8905C98.7756 86.1408 98.4331 86.2803 98.0769 86.2783Z",fill:"white"}),e.createElement("path",{id:"Vector_4",d:"M79.4538 23.2311H79.0376V86.4866H79.4538V23.2311Z",fill:"#CCCCCC"}),e.createElement("path",{id:"Vector_5",d:"M89.8522 23.2311H89.436V86.4866H89.8522V23.2311Z",fill:"#CCCCCC"}),e.createElement("path",{id:"Vector_6",d:"M99.4294 42.7673H69.6743V43.1834H99.4294V42.7673Z",fill:"#CCCCCC"}),e.createElement("path",{id:"Vector_7",d:"M58.7624 107.336C61.9457 104.646 63.8792 100.397 63.3722 96.2602C62.8651 92.1236 59.7244 88.3208 55.6505 87.4424C51.5766 86.564 46.9326 88.9956 45.6952 92.9752C45.0142 85.3026 44.2295 77.3086 40.1503 70.7748
101C36.4567 64.8585 30.0592 60.6252 23.1259 59.8678C16.1925 59.1105 8.89256 61.9709 4.56847 67.4433C0.244386 72.9157 -0.814348 80.8715 2.21413 87.1543C4.4451 91.7826 8.55534 95.227 12.8619 98.0293C26.6011 106.969 43.6446 110.698 59.8618 108.311",fill:"#F2F2F2"}),e.createElement("path",{id:"Vector_8",d:"M11.4229 62.1293C17.1438 66.789 22.3921 72.0006 27.0919 77.6886C31.7925 83.3707 35.9308 89.4954 39.4488 95.9766C41.4152 99.6123 43.1817 103.353 44.7403 107.181C45.0581 107.96 43.7935 108.299 43.4793 107.528C40.7185 100.779 37.303 94.3169 33.2816 88.2341C29.2798 82.1732 24.6994 76.5149 19.605 71.3385C16.7235 68.4122 13.6833 65.6465 10.4982 63.054C9.84533 62.5223 10.7754 61.602 11.4229 62.1293Z",fill:"white"}),e.createElement("path",{id:"Vector_9",d:"M99.527 66.5112H69.772V66.9273H99.527V66.5112Z",fill:"#CCCCCC"}),e.createElement("path",{id:"Vector_10",d:"M175.266 108.989H21.644C21.5784 108.988 21.5156 108.962 21.4693 108.916C21.423 108.869 21.397 108.806 21.397 108.741C21.397 108.675 21.423 108.612 21.4693 108.566C21.5156 108.519 21.5784 108.493 21.644 108.493H175.266C175.332 108.493 175.395 108.519 175.441 108.566C175.487 108.612 175.513 108.675 175.513 108.741C175.513 108.806 175.487 108.869 175.441 108.916C175.395 108.962 175.332 108.988 175.266 108.989Z",fill:"#3F3D56"}),e.createElement("path",{id:"Vector_11",d:"M92.8751 59.9036C95.3505 73.1247 108.075 81.8385 121.302 79.3579C125.302 78.6084 128.891 76.9195 131.879 74.5603L161.963 107.009C163.805 108.993 166.945 108.988 168.782 106.993C170.497 105.13 170.402 102.237 168.565 100.49L136.423 69.8577C140.286 64.6115 142.049 57.84 140.756 50.9312C138.281 37.7101 125.556 28.9964 112.329 31.477C99.103 33.9576 90.3945 46.6772 92.8751 59.9036ZM98.0686 58.9325C96.1316 48.5773 102.951 38.6126 113.306 36.6757C123.661 34.7387 133.626 41.5577 135.563 51.9129C137.5 62.2681 130.681 72.2327 120.325 74.1697C109.97 76.1067 100.006 69.2877 98.0686 58.9325Z",fill:"#4E5C6F"}))),Gs=()=>{const a=n(),{toastError:r}=m(),{sessionId:p}=x(),u=C(),{sourcingSession:h,sourcedCros:g,shortlistedCros:v,shortlistedCounts:y,shortlistSourcedCro:b,removeFromShortlist:S,fetchMoreSourcedCros:N,hasMoreSourcedCros:k,countryRegionFilter:E,setCountryRegionFilter:P,sortBy:M,setSortBy:T,loadingQuery:A,loadingPaginatedSourcedCros:V,loadingSourcedCroId:L,loadingShortlist:F,loadingRemoveShortlist:D,loadingFetchMoreCros:R,loadingChangeFilter:I,addTempShortlistVendor:O,removeTempShortlistVendor:B}=Hs(),[q,z]=e.useState(!1),H=e.useMemo(()=>F||D,[F,D]),[Z,U]=t.useState(null),{isSticky:Q}=function(e){const{ref:n}=e,[s,i]=t.useState(!1);return t.useEffect(()=>{if(!n)return;const e=new IntersectionObserver(([e])=>i(e.intersectionRatio<1),{threshold:1,rootMargin:"-60px 0px 0px 0px"});return e.observe(n),()=>e.disconnect()},[n]),{isSticky:s}}({ref:Z}),{onOpen:W}=kt();e.useEffect(()=>{!q&&v&&v.length<=0&&(W(),z(!0))},[q,v,W]);const{pathname:$}=f(),Y=e.useCallback(e=>{switch(h?.whiteglove_status){case l.Draft:case l.Downloaded:u?.capture("sourcerer_shortlist_cro",{company_name:e.vendor_company?.company_name}),b(e.id);break;case l.PausedQuoteCollection:r("Quote collection has been paused. Shortlisting vendors is no longer available.");break;default:O(e)}},[b,O,h,r,u]),K=e.useCallback(e=>{switch(h?.whiteglove_status){case l.Draft:case l.Downloaded:u?.capture("sourcerer_remove_shortlisted_cro",{company_name:e.vendor_company?.company_name}),S(e.id);break;default:B(e)}},[S,B,h,u]);return $.includes("/matched")||$.includes("/shortlisted")?A?i.jsx("div",{className:"h-screenWithoutNav flex justify-center items-center",children:i.jsx(c,{})}):i.jsxs(i.Fragment,{children:[h?.whiteglove_status===l.Submitted&&i.jsxs("div",{className:"flex flex-row gap-4 py-4 px-4 sm:px-[50px] items-center bg-primary text-white",children:[i.jsx(Dt,{className:"flex-shrink-0"}),i.jsx("span",{className:"text-lg",children:"No action needed! We’re reviewing your request and will be in touch with you shortly."})]}),h?.whiteglove_status===l.PausedQuoteCollection&&i.jsxs("div",{className:"flex flex-row gap-4 py-4 px-4 sm:px-[24px] items-center bg-yellow-600 text-white",children:[i.jsx(Dt,{className:"flex-shrink-0"}),"Quote collection has been paused. We're reviewing your request and will follow up with 
101next steps shortly."]}),i.jsxs("div",{className:"px-4 sm:px-[50px] py-[22px]",children:[i.jsxs("div",{className:"text-lg mb-5 flex flex-col gap-1 text-hoki-900 print:hidden",children:[i.jsx("div",{className:"font-semibold",children:"Based on your project details, we've found the best vendors for you."}),i.jsxs("div",{className:"",children:["You’ve requested"," ",i.jsxs("strong",{children:[h?.quote_collection_limit," ","quotes"]})," ","— you’re welcome to shortlist your top picks, or simply leave it to us. Our experts will help you select the right vendors and secure quotes."]})]}),i.jsxs("div",{className:"mt-4 print:mt-0",children:[i.jsxs("div",{className:o("bg-white px-8 flex items-center md:gap-x-4 rounded z-10 sticky top-[56px]",Q&&"shadow-lg"),ref:e=>U(e),children:[i.jsx($s,{matchedCounts:g?.page_info?.total_count??0,shortlistedCounts:y,sessionId:p}),$.includes("/matched")&&i.jsxs("div",{className:"flex gap-x-2 gap-y-2 flex-wrap justify-end ml-auto text-sm text-hoki-600",children:[i.jsx(Os,{countryRegion:E,setCountryRegion:P}),i.jsx(Bs,{sortBy:M,setSortBy:T})]})]}),i.jsx("div",{className:"mt-3.5",children:i.jsxs(w,{children:[i.jsx(_,{path:"/matched",element:i.jsxs("div",{className:"flex flex-col gap-y-5",children:[V||I?i.jsx("div",{className:"flex items-center justify-center h-[200px] bg-white rounded-lg",children:i.jsx(c,{})}):i.jsxs("div",{className:"w-full relative px-8 divide-y shadow-sm bg-white rounded-lg",children:[g?.edges?.map(e=>i.jsx(Qs,{onShortlist:Y,onRemoveFromShortlist:K,ctaIsLoading:L===e.node.id&&H,sourcedCroFragment:e?.node,sourcingSessionFragment:h,topMatchVendorCompanyIds:g?.top_match_vendor_company_ids||[]},`result-view:${e.node.id}`)),k&&i.jsx("div",{className:"py-5",children:i.jsx(Be,{variant:"text",color:"bleu",onClick:N,isLoading:R,children:"Show more"})})]}),!V&&0===g?.edges?.length&&i.jsxs("div",{className:"bg-white text-center flex flex-col gap-2 items-center justify-center py-20",children:[i.jsx(Ks,{}),i.jsx("div",{className:"text-hoki-600 text-xl font-semibold mt-6",children:"No results found"}),i.jsx("div",{className:"text-hoki-600",children:"Try a different search term to find what you’re looking for"}),i.jsxs("div",{className:"text-hoki-600 mb-4",children:["Need more help?"," ",i.jsx(d,{to:s.CalendlyMeet,target:"_blank",className:"text-primary hover:underline font-semibold",children:"Schedule a meeting"})," ","with the Cromatic team"]}),i.jsx(Be,{type:"button",color:"bleu",onClick:()=>a(s.SourcererSession(h?.id??""),{replace:!0}),children:"Retry"})]})]})}),i.jsx(_,{path:"/shortlisted",element:i.jsxs("div",{className:"w-full relative px-8 divide-y shadow-sm bg-white rounded-sm",children:[v?.map(e=>i.jsx(Qs,{onShortlist:Y,onRemoveFromShortlist:K,ctaIsLoading:L===e.id&&H,sourcedCroFragment:e,sourcingSessionFragment:h},`shortlisted-view:${e.id}`)),0===y&&i.jsxs("div",{className:"bg-white text-center flex flex-col gap-2 items-center justify-center py-20",children:[i.jsx(Ys,{}),i.jsx("div",{className:"text-hoki-600 text-xl font-semibold mt-6",children:"No vendors shortlisted"}),i.jsx("div",{className:"text-hoki-600",children:"When you shortlist vendors they will appear here"})]})]})})]})})]})]})]}):i.jsx(j,{replace:!0,to:s.SourcererMatchedVendor(p??"")})},Xs=["questions","answers","proposals","interviews","selection","contract"],Js=3,ei=3,ti=5,ni=3,si=5,ii=7,ai=({setValue:t,watch:n,includeInterviews:s,setIncludeInterviews:a})=>{const[o]=e.useState(!!n("vendor_question_deadline")),[r,l]=e.useState({questions:"",answers:"",proposals:"",interviews:"",selection:"",contract:""}),[c,d]=e.useState(0),p=(e,t)=>{const n=new Date(e);let s=0;for(;s<t;)n.setDate(n.getDate()+1),0!==n.getDay()&&6!==n.getDay()&&(s+=1);return n},u=(e,t)=>{let n=0;const s=new Date(e);s.setHours(0,0,0,0);const i=new Date(t);for(i.setHours(0,0,0,0),s.setDate(s.getDate()+1);s<=i;)0!==s.getDay()&&6!==s.getDay()&&(n+=1),s.setDate(s.getDate()+1);return Math.max(0,n)},m=e=>e.toISOString().split("T")[0];e.useEffect(()=>{const e={questions:n("vendor_question_deadline"),answers:n("answers_deadline"),proposals:n("vendor_proposal_submission_deadline"),interviews:n("vendor_interviews_deadline")||"",selection:n("vendor_prelim_selection_notification_deadline"),contract:n("contract_selection_deadline")},t=n("expected_budget");if(t&&d(Number(t)),e.questions)l(e);else{const e={questions:m(p(new Date,Js)),answers:"",proposals:"",interviews:"",selection:"",contract:""};let t=new Date(e.questions);
101e.answers=m(p(t,ei)),t=new Date(e.answers),e.proposals=m(p(t,ti)),t=new Date(e.proposals),s&&(e.interviews=m(p(t,ni)),t=new Date(e.interviews)),e.selection=m(p(t,si)),t=new Date(e.selection),e.contract=m(p(t,ii)),l(e)}},[s,n]),e.useEffect(()=>{r.questions&&t("vendor_question_deadline",r.questions),r.answers&&t("answers_deadline",r.answers),r.proposals&&t("vendor_proposal_submission_deadline",r.proposals),r.selection&&t("vendor_prelim_selection_notification_deadline",r.selection),r.contract&&t("contract_selection_deadline",r.contract),s&&r.interviews?t("vendor_interviews_deadline",r.interviews):t("vendor_interviews_deadline",void 0)},[r,s,t]),e.useEffect(()=>{t("expected_budget",c||0)},[c,t]),e.useEffect(()=>{if(!r.proposals)return;if(o)return;const e=new Date(r.proposals),t=()=>{const t=m(p(e,ni)),n=m(p(new Date(t),si));return{interviews:t,selection:n,contract:m(p(new Date(n),ii))}},n=()=>{const t=m(p(e,si));return{interviews:"",selection:t,contract:m(p(new Date(t),ii))}};l(e=>({...e,...s?t():n()}))},[o,s,r.proposals]);const h=e=>{const t=m(new Date);if("questions"===e)return t;const n=[...Xs.slice(0,Xs.indexOf(e)).filter(e=>"interviews"!==e||s)].reverse();for(const s of n)if(r[s]){const e=new Date(r[s]);return e.setDate(e.getDate()+1),m(e)}return t},x=(()=>{if(!r.contract)return null;const e=new Date,t=new Date(r.contract),n=u(e,t);return{days:n,weeks:Math.round(n/5*10)/10}})();return i.jsxs("div",{className:"flex flex-col gap-6",children:[i.jsx("header",{children:i.jsx("h2",{className:"text-xl font-semibold text-comet-900",children:"Set Your Procurement Timeline & Budget"})}),i.jsx("div",{className:"bg-blue-50 rounded-lg p-4",children:i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx(xt,{className:"w-5 h-5 text-blue-600 mt-0.5 flex-shrink-0"}),i.jsx("div",{className:"flex-1",children:i.jsx("p",{className:"text-sm text-blue-900",children:"Your RFP will be sent to relevant vendors today when you submit. All durations are calculated from today's submission date."})})]})}),x&&i.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[i.jsxs("div",{className:"flex items-center justify-between mb-2",children:[i.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Procurement Time"}),i.jsxs("span",{className:"text-lg font-semibold text-gray-900",children:[x.weeks," ","weeks"]})]}),i.jsxs("div",{className:"text-xs text-gray-600",children:["Approximately"," ",x.days," ","business days from RFP release to contract finalization"]})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center justify-between mb-2",children:[i.jsx("h3",{className:"text-sm font-medium text-comet-900",children:"Key Deadlines"}),i.jsxs("label",{htmlFor:"include-interviews",className:"flex items-center gap-2 text-sm",children:[i.jsx("input",{id:"include-interviews",type:"checkbox",checked:s,onChange:e=>a(e.target.checked),className:"rounded border-hoki-300"}),i.jsx("span",{className:"text-comet-900",children:"Include vendor interviews"})]})]}),i.jsx("div",{className:"space-y-3",children:[{key:"questions",label:"Vendor Questions Deadline",description:"Last day for vendors to submit questions",tip:"Allow enough time for vendors to review your RFP thoroughly"},{key:"answers",label:"Answer Response Deadline",description:"Date by which you'll respond to all vendor questions",tip:"Quick responses help maintain vendor engagement"},{key:"proposals",label:"Proposal Submission Deadline",description:"Final date for vendors to submit their proposals",tip:"Most critical deadline - ensure vendors have adequate time"},{key:"interviews",label:"Vendor Interviews Complete",description:"Target date to complete all vendor interviews",tip:"Schedule time for presentations and Q&A sessions",optional:!0},{key:"selection",label:"Vendor Selection Date",description:"Date to notify selected vendors",tip:"Include time for internal stakeholder reviews"},{key:"contract",label:"Project Initiation Date",description:"Date the project is planned to start",tip:"Include buffer time for negotiations"}].filter(e=>!e.optional||e.optional&&s).map(({key:e,label:t,description:n,tip:a})=>{const o=(e=>{if(!r[e])return null;if("questions"===e)return u(new Date,new Date(r[e]));const t=[...Xs.slice(0,Xs.indexOf(e)).filter(e=>"interviews"!==e||s)].reverse();for(const n of t)if(r[n])return u(new Date(r[n]),new Date(r[e]));return null})(e);return i.jsx("div",{className:"bg-white border border-gray-200 rounded-lg p-4 hover:border-gray-300 transition-colors",children:i.jsxs("div",{className:"flex items-center justify-between gap-4",children:[i.jsxs("div",{className:"flex-1",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("h4",{className:"text-sm font-medium text-gray-900",children:t}),i.jsxs("div",{className:"group relative",children:[i.jsx(xt,{className:"w-4 h-4 text-hoki-400 cursor-help"}),i.jsx("div",{className:"absolute left-0 bottom-6 w-48 p-2 bg-gray-800 text-white text-xs rounded-lg opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none z-10",children:a})]})]}),i.jsx("p",{className:"text-xs text-hoki-600 mt-1",children:n})]}),i.jsxs("div",{className:"flex items-center gap-6",children:[null!==o&&i.jsx("div",{className:"text-right",children:i.jsxs("div",{className:"text-xs text-gray-900",children:[o," business ","days"]})}),i.jsx("div",{className:"flex items-center gap-2",children:i.jsx(Gt,{value:r[e]?new Date(r[e]):void 0,minDate:new Date(h(e)),onChange:t=>{var n,s;n=e,s=ft(t),l(e=>({...e,[n]:s}))}})})]})]})},e)})})]}),i.jsxs("div",{className:"bg-white border border-gray-200 rounded-lg p-6",children:[i.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[i.jsx(gt,{className:"w-5 h-5 text-green-600"}),i.jsx("h3",{className:"text-lg font-medium text-comet-900",children:"Expected Budget"})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsx("div",{children:i.jsxs("div",{className:"relative",children:[i.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:i.jsx("span",{className:"text-gray-500 text-sm",children:"$"})}),i.jsx("input",{id:"budget",type:"number",value:c.toString(),onKeyDown:e=>
101["e","E","+","-",".","Enter"].includes(e.key)&&e.preventDefault(),min:0,onPaste:e=>(e.preventDefault(),!1),onChange:e=>d(Number(e.target.value)),placeholder:"What is your expected budget?",className:"w-full pl-8 pr-3 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500"})]})}),i.jsx("div",{className:"bg-gray-50 rounded-lg p-3",children:i.jsxs("div",{className:"flex flex-row items-center gap-2 mb-3",children:[i.jsx(xt,{className:"w-4 h-4 text-blue-700 mt-0.5 flex-shrink-0"}),i.jsx("p",{className:"text-xs font-medium text-blue-700",children:"This will only be shared with your procurement expert and will not be shared with vendors."})]})})]})]})]})};async function oi(e){try{return{data:await e,error:null}}catch(R){return{data:null,error:R}}}const ri=S({vendor_question_deadline:k().min(1,"Enter vendor question deadline"),answers_deadline:k().min(1,"Enter answers deadline"),vendor_proposal_submission_deadline:k().min(1,"Enter proposal submission deadline"),vendor_prelim_selection_notification_deadline:k().min(1,"Enter selection notification deadline"),vendor_interviews_deadline:k().optional(),contract_selection_deadline:k().min(1,"Enter contract selection deadline"),expected_budget:N().min(1,"Enter expected budget")}),li=a("\n  mutation UpdateTimelineBudget($input: UpdateTimelineBudgetInput!) {\n    updateTimelineBudget(input: $input) {\n      id\n      clinical_stage\n      project_title\n      project_desc\n      preparation_details\n      vendor_requirement\n      expected_timeline\n      expected_budget\n      submitted_rfp_at\n      vendor_question_deadline\n      vendor_answer_deadline\n      vendor_proposal_deadline\n      vendor_selection_deadline\n      vendor_contract_deadline\n      vendor_interview_deadline\n    }\n  }\n");const ci=({setIsEditingProject:n})=>{const{sourcingSession:s}=Hs(),[a]=function(){const[t,n]=h(li);return[e.useCallback(e=>t({variables:{input:e}}),[t]),n]}(),{toastError:o,toastSuccess:r}=m(),[l,c]=e.useState(!!s?.vendor_interview_deadline),[d,p]=t.useState(!1),{trigger:u,setValue:x,watch:f}
101=Bt({resolver:qt(ri),defaultValues:{vendor_question_deadline:new Date(s?.vendor_question_deadline).toISOString().split("T")[0],answers_deadline:new Date(s?.vendor_answer_deadline).toISOString().split("T")[0],vendor_proposal_submission_deadline:new Date(s?.vendor_proposal_deadline).toISOString().split("T")[0],vendor_prelim_selection_notification_deadline:new Date(s?.vendor_selection_deadline).toISOString().split("T")[0],vendor_interviews_deadline:new Date(s?.vendor_interview_deadline).toISOString().split("T")[0],contract_selection_deadline:new Date(s?.vendor_contract_deadline).toISOString().split("T")[0],expected_budget:s?.expected_budget||0}}),g=t.useCallback(async()=>{const e=f();if(!s?.id)return void o("Sourcing session not found please refresh and try again");p(!0);const{data:t,error:i}=await oi(a({sourcing_session_id:s?.id,vendor_question_deadline:e.vendor_question_deadline,vendor_answer_deadline:e.answers_deadline,vendor_proposal_deadline:e.vendor_proposal_submission_deadline,vendor_selection_deadline:e.vendor_prelim_selection_notification_deadline,vendor_contract_deadline:e.contract_selection_deadline,vendor_interview_deadline:l?e.vendor_interviews_deadline:null,expected_budget:e.expected_budget}));p(!1),i&&o("Failed to submit RFP details."),t?.data?.updateTimelineBudget?.id&&(r("Project updated"),n(!1))},[s,a,n,r,o,f,l]);return i.jsxs("div",{className:"px-[54px] py-[25px]",children:[i.jsx(ai,{setValue:x,watch:f,includeInterviews:l,setIncludeInterviews:c}),i.jsxs("div",{className:"flex flex-row gap-x-3 justify-end font-medium mt-10",children:[i.jsx("button",{type:"button",className:"py-3 px-4 text-hoki-600 hover:text-hoki-800",onClick:()=>n(!1),children:"Back"}),i.jsx("button",{type:"button",disabled:d,className:"bg-primary hover:shadow-button text-white w-full max-w-[195px] disabled:opacity-60 py-3 px-4 rounded-md",onClick:async()=>{(await Promise.all([u("vendor_question_deadline"),u("answers_deadline"),u("vendor_proposal_submission_deadline"),u("vendor_prelim_selection_notification_deadline"),u("contract_selection_deadline"),u("expected_budget")])).every(e=>e)?await g():o("Please fill up all the required fields")},"data-testid":"button:continue",children:i.jsx("span",{className:"inline-flex items-center gap-x-1",children:"Update"})})]})]})},di=({date:e,label:t})=>{const n=new Date(e)<new Date;return i.jsxs("div",{className:"flex items-center gap-3 py-2",children:[i.jsx("div",{className:"w-3 h-3 rounded-full "+(n?"bg-green-500":"bg-gray-300")}),i.jsx("div",{className:"flex-1",children:i.jsx("div",{className:"text-sm font-medium text-gray-900",children:t})}),i.jsx("div",{className:"text-sm text-gray-600",children:pt(e)})]})};function pi(){const{sourcingSession:t,setCurrentStep:n}=Hs(),[s,a]=e.useState(!1),o=[{date:t?.vendor_question_deadline,label:"Vendor questions deadline"},{date:t?.vendor_answer_deadline,label:"Answer response deadline"},{date:t?.vendor_proposal_deadline,label:"Proposal submission deadline"},{date:t?.vendor_interview_deadline,label:"Vendor interviews complete"},{date:t?.vendor_selection_deadline,label:"Vendor selection date"},{date:t?.vendor_contract_deadline,label:"Project initiation date"}].filter(e=>e.date);return s?i.jsx("div",{className:"px-[54px] py-[25px]",children:i.jsx(zn,{className:"bg-white rounded-lg mb-10 relative",children:i.jsx(ci,{setIsEditingProject:a})})}):i.jsxs("div",{className:"px-[54px] py-[25px]",children:[i.jsxs("div",{className:"flex flex-col md:flex-row justify-between gap-4 print:hidden",children:[i.jsxs("div",{className:"flex items-center gap-4",children:[i.jsx("button",{type:"button",onClick:()=>n(1),children:i.jsx(vt,{size:20})}),i.jsx("div",{className:"typography-nav font-semibold text-hoki-800",children:"Procurement details"})]}),i.jsxs(Ot,{onClick:()=>a(!0),type:"button",variant:"secondary",className:"text-sm",children:[i.jsx(_n,{size:12}),"Edit details"]})]}),i.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 my-6",children:[i.jsxs("div",{className:"flex items-center gap-3 p-3 bg-white rounded-lg",children:[i.jsx(gt,{className:"w-5 h-5 text-green-600"}),i.jsxs("div",{children:[i.jsx("div",{className:"text-sm text-gray-600",children:"Budget"}),i.jsx("div",{className:"font-semibold text-gray-900",children:t?.expected_budget&&t?.expected_budget>0?Tt(t.expected_budget):"Not specified"})]})]}),i.jsxs("div",{className:"flex items-center gap-3 p-3 bg-white rounded-lg",children:[i.jsx(ut,{className:"w-5 h-5 text-orange-600"}),i.jsxs("div",{children:[i.jsx("div",{className:"text-sm text-gray-600",children:"Created"}),i.jsx("div",{className:"font-semibold text-gray-900",children:t?.created_at?pt(t.created_at):""})]})]})]}),i.jsx("div",{className:"grid grid-cols-1 gap-6",children:o.length>0&&i.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-4",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[i.jsx(ye,{className:"w-5 h-5 text-gray-600"}),i.jsx("h3",{className:"font-semibold text-gray-900",children:"Procurement Timeline"})]}),i.jsx("div",{className:"space-y-1",children:o.map(e=>i.jsx(di,{date:e.date,label:e.label},e.label))})]})})]})}const ui=a("\n  fragment QuoteTable_SourcingSession on SourcingSession {\n    biotech_invoice {\n      id\n      payment_status\n    }\n    sourcing_quotes {\n      id\n      price\n      timeline\n      is_fastest\n      assessment\n      accepted_at\n      status\n      sourcing_session_id\n      negotiated_price\n\n      biotech_invoice {\n        payment_status\n      }\n\n      quote_metadata {\n        id\n        key\n        value\n      }\n\n      quote_attachments {\n        id\n        key\n        filename\n        content_type\n      }\n\n      vendor_company {\n        id\n        company_name\n        company_description\n        company_ipo_status\n        company_revenue\n        company_
101size\n        website_url\n        logo_url\n        vendor_company_subspecialties {\n          subspecialty {\n            id\n            name\n          }\n        }\n        vendor_company_locations {\n          country\n        }\n        vendor_company_types {\n          company_type\n        }\n        vendor_company_certifications {\n          certification_name\n        }\n      }\n    }\n  }\n"),mi=({sourcingSessionFragment:t})=>{const{sourcing_quotes:n}=Ve(ui,t),{getSignedUrl:s}=Hs(),{toastCatchError:a}=m(),o=e.useCallback(async e=>{try{const{data:t}=await s({variables:{key:e}});if(t?.signedUrl)return t.signedUrl;throw new Error("No signed URL returned")}catch(R){throw a(R),R}},[s,a]);return i.jsx(Ps,{quotes:n??[],onGetSignedUrl:o,emptyStateTitle:"No quotes received",emptyStateDescription:"Quotes will appear here once vendors respond to your request.",showSorting:!0})},hi=t=>e.createElement("svg",{width:126,height:117,viewBox:"0 0 126 117",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("g",{clipPath:"url(#clip0_358_2777)"},e.createElement("path",{d:"M31.2594 97.5989C24.618 74.7714 24.4107 51.9747 32.7269 29.2187C32.7581 27.8348 33.3371 26.5197 34.3368 25.562C35.3364 24.6044 36.6751 24.0824 38.0591 24.1105L89.7013 25.2188C91.0853 25.25 92.4003 25.829 93.358 26.8287C94.3156 27.8283 94.8376 29.167 94.8095 30.551C100.514 54.6154 101.595 77.7309 93.3421 98.9312C93.3108 100.315 92.7318 101.63 91.7322 102.588C90.7326 103.545 89.3939 104.068 88.0098 104.039L36.3677 102.931C34.9837 102.9 33.6686 102.321 32.7109 101.321C31.7533 100.322 31.2313 98.9829 31.2594 97.5989Z",fill:"#BFDBFE"}),e.createElement("path",{opacity:.2,d:"M41.9491 100.413C40.5651 100.381 39.25 99.8024 38.2924 98.8027C37.3348 97.8031 36.8127 96.4644 36.8409 95.0804C30.1994 72.2528 29.9922 49.4561 38.3083 26.7002C38.3333 25.7916 38.5979 24.9058 39.0753 24.1323L38.0591 24.1105C36.6751 24.0824 35.3364 24.6044 34.3367 25.562C33.3371 26.5196 32.7581 27.8346 32.7268 29.2186C24.4107 51.9746 24.6179 74.7713 31.2594 97.5988C31.2313 98.9828 31.7533 100.322 32.7109 101.321C33.6686 102.321 34.9836 102.9 36.3676 102.931L88.0097 104.039C88.9271 104.056 89.8325 103.83 90.6342 103.384C91.4359 102.937 92.1055 102.287 92.575 101.499L41.9491 100.413Z",fill:"#3B84FB"}),e.createElement("path",{d:"M80.3572 63.3409L45.7488 62.6942C45.1985 62.6832 44.6751 62.4543 44.2935 62.0577C43.912 61.6611 43.7034 61.1292 43.7137 60.579C43.724 60.0287 43.9522 59.505 44.3483 59.1229C44.7445 58.7408 45.276 58.5316 45.8263 58.5412L80.4348 59.1879C80.9843 59.1999 81.5067 59.4293 81.8874 59.8258C82.2681 60.2223 82.4761 60.7535 82.4658 61.3031C82.4556 61.8526 82.2279 62.3757 81.8326 62.7577C81.4373 63.1397 80.9068 63.3494 80.3572 63.3409Z",fill:"white"}),e.createElement("path",{d:"M53.5749 51.4489L45.9611 51.3066C45.4103 51.298 44.8855 51.0711 44.5021 50.6756C44.1187 50.2801 43.9081 49.7485 43.9167 49.1977C43.9253 48.6469 44.1522 48.1221 44.5477 47.7387C44.9432 47.3554 45.4748 47.1448 46.0256 47.1533L46.0387 47.1536L53.6525 47.2959C54.2022 47.3078 54.7246 47.5371 55.1054 47.9336C55.4862 48.3301 55.6943 48.8614 55.6841 49.4111C55.6738 49.9607 55.446 50.4839 55.0506 50.8659C54.6553 51.2479 54.1246 51.4575 53.5749 51.4489Z",fill:"white"}),e.createElement("path",{d:"M80.1885 72.4699L45.58 71.8232C45.0296 71.813 44.5058 71.5848 44.1236 71.1886C43.7414 70.7924 43.5321 70.2607 43.5418 69.7103C43.5514 69.1599 43.7791 68.6359 44.1749 68.2533C44.5708 67.8707 45.1022 67.6609 45.6526 67.67L45.6576 67.6702L80.2661 68.3169C80.8156 68.3289 81.3379 68.5583 81.7186 68.9548C82.0993 69.3513 82.3074 69.8825 82.2971 70.432C82.2868 70.9816 82.0591 71.5047 81.6639 71.8867C81.2686 72.2687 80.7381 72.4784 80.1885 72.4699Z",fill:"white"}),e.createElement("path",{d:"M95.9169 112.611C104.77 107.5 107.803 96.1805 102.692 87.3279C97.5805 78.4752 86.2607 75.4421 77.408 80.5532C68.5554 85.6642 65.5223 96.9841 70.6333 105.837C75.7444 114.689 87.0642 117.723 95.9169 112.611Z",fill:"white"}),e.createElement("path",{d:"M84.1366 106.216C83.8169 106.216 83.5017 106.141 83.2158 105.998C82.93 105.855 82.6813 105.648 82.4896 105.392L77.4401 98.6592C77.2776 98.4429 77.1594 98.1967 77.0921 97.9347C77.0248 97.6727 77.0098 97.4 77.0479 97.1321C77.0861 96.8643 7
1017.1766 96.6067 77.3144 96.3739C77.4522 96.1411 77.6345 95.9377 77.8509 95.7754C78.0673 95.6131 78.3136 95.495 78.5757 95.428C78.8378 95.3609 79.1105 95.3461 79.3783 95.3845C79.646 95.4229 79.9036 95.5137 80.1363 95.6517C80.369 95.7896 80.5722 95.9721 80.7343 96.1887L84.0379 100.593L92.5226 87.8661C92.6726 87.6412 92.8654 87.4479 93.0901 87.2975C93.3147 87.147 93.5668 87.0423 93.8319 86.9893C94.097 86.9363 94.37 86.936 94.6353 86.9885C94.9005 87.0409 95.1528 87.1451 95.3778 87.2951C95.6027 87.4451 95.796 87.6379 95.9464 87.8626C96.0969 88.0872 96.2016 88.3393 96.2546 88.6044C96.3076 88.8695 96.3079 89.1425 96.2555 89.4078C96.203 89.673 96.0988 89.9253 95.9488 90.1503L85.8498 105.299C85.6671 105.573 85.4214 105.799 85.1333 105.958C84.8452 106.118 84.523 106.206 84.1939 106.215C84.1748 106.215 84.1557 106.216 84.1366 106.216Z",fill:"#0000FF"}),e.createElement("path",{d:"M108.402 33.3615C109.584 32.9295 110.3 31.9123 109.999 31.0895C109.699 30.2667 108.496 29.9499 107.313 30.3818C106.131 30.8138 105.415 31.8309 105.716 32.6537C106.016 33.4765 107.219 33.7934 108.402 33.3615Z",fill:"white"}),e.createElement("path",{d:"M120.773 25.0455C121.956 24.6136 122.671 23.5964 122.37 22.7736C122.07 21.9508 120.867 21.6339 119.685 22.0659C118.502 22.4978 117.787 23.515 118.087 24.3378C118.388 25.1606 119.59 25.4775 120.773 25.0455Z",fill:"#7C8A9E"}),e.createElement("path",{d:"M108.846 22.0159C109.335 21.7568 109.43 20.9766 109.057 20.2734C108.685 19.5701 107.986 19.2101 107.497 19.4692C107.008 19.7283 106.913 20.5084 107.286 21.2117C107.658 21.9149 108.357 22.275 108.846 22.0159Z",fill:"#E6E6E6"}),e.createElement("path",{d:"M104.235 28.5701C104.724 28.311 104.819 27.5308 104.446 26.8276C104.074 26.1243 103.375 25.7643 102.886 26.0234C102.397 26.2825 102.302 27.0626 102.674 27.7659C103.047 28.4691 103.745 28.8292 104.235 28.5701Z",fill:"#FBBF24"}),e.createElement("path",{d:"M116.158 29.6555C116.648 29.3964 116.742 28.6163 116.37 27.913C115.997 27.2098 115.299 26.8497 114.81 27.1088C114.32 27.3679 114.226 28.1481 114.598 28.8513C114.971 29.5546 115.669 29.9147 116.158 29.6555Z",fill:"#7C8A9E"}),e.createElement("path",{d:"M10.5089 11.2266C9.74315 10.8013 8.62676 11.3489 8.01541 12.4498C7.40406 13.5506 7.52926 14.7877 8.29505 15.213C9.06085 15.6383 10.1772 15.0907 10.7886 13.9899C11.3999 12.889 11.2747 11.6519 10.5089 11.2266Z",fill:"white"}),e.createElement("path",{d:"M6.60071 25.6133C5.83492 25.188 4.71853 25.7356 4.10718 26.8365C3.49584 27.9373 3.62104 29.1744 4.38683 29.5997C5.15262 30.025 6.26903 29.4774 6.88038 28.3766C7.49173 27.2758 7.36651 26.0386 6.60071 25.6133Z",fill:"#7C8A9E"}),e.createElement("path",{d:"M23.1789 11.6875C22.4131 11.2622 21.2967 11.8099 20.6853 12.9107C20.074 14.0115 20.1992 15.2487 20.965 15.6739C21.7308 16.0992 22.8472 15.5516 23.4585 14.4508C24.0699 13.35 23.9447 12.1128 23.1789 11.6875Z",fill:"#FBBF24"}),e.createElement("path",{d:"M28.5769 9.5211C27.835 9.2333 27.0712 9.41841 26.871 9.93455C26.6708 10.4507 27.11 11.1024 27.8519 11.3902C28.5939 11.678 29.3576 11.4929 29.5578 10.9767C29.758 10.4606 29.3189 9.80889 28.5769 9.5211Z",fill:"#E6E6E6"}),e.createElement("path",{d:"M37.9207 10.7276C37.1787 10.4398 36.415 10.625 36.2148 11.1411C36.0146 11.6572 36.4537 12.3089 37.1957 12.5967C37.9376 12.8845 38.7014 12.6994 38.9016 12.1833C39.1018 11.6671 38.6626 11.0154 37.9207 10.7276Z",fill:"#7C8A9E"}),e.createElement("path",{d:"M16.8113 20.9044C16.0693 20.6166 15.3056 20.8017 15.1054 21.3178C14.9052 21.834 15.3443 22.4857 16.0863 22.7735C16.8282 23.0613 17.592 22.8762 17.7922 22.36C17.9924 21.8439 17.5532 21.1922 16.8113 20.9044Z",fill:"#E6E6E6"}),e.createElement("path",{d:"M16.0086 12.9317C15.2666 12.6439 14.5029 12.8291 14.3026 13.3452C14.1024 13.8613 14.5416 14.513 15.2835 14.8008C16.0255 15.0886 16.7893 14.9035 16.9895 14.3874C17.1897 13.8712 16.7505 13.2195 16.0086 12.9317Z",fill:"#FBBF24"}),e.createElement("path",{d:"M6.28199 19.9171C5.54005 19.6293 4.77629 19.8144 4.57609 20.3305C4.37588 20.8467 4.81504 21.4984 5.55699 21.7862C6.29893 22.074 7.06269 21.8889 7.26289 21.3727C7.4631 20.8566 7.02394 20.2049 6.28199 19.9171Z",fill:"#7C8A9E"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_358_2777"},e.createElement("rect",{width:126,height:116.963,fill:"white"})))),xi=({isOpen:t,setIsOpen:n})=>
101{const{toastCatchError:s}=m(),{sourcingSession:a,updateStep:o}=Hs(),r=a?.sourcing_quotes?.find(e=>e?.accepted_at),l=r?.vendor_company?.company_name??"",[c,d]=e.useState(!1),p=e.useCallback(async()=>{d(!0);try{o(3),n(!1)}catch(R){s(R)}},[o,s,n]);return i.jsx(Le,{open:t&&!!l,onOpenChange:n,children:i.jsx(Fe,{children:i.jsxs(De,{className:"max-w-[775px] max-h-screen overflow-auto md:p-10 gap-7",closeClassName:"top-7 right-10",children:[i.jsxs("div",{className:"flex flex-col items-center justify-center text-center",children:[i.jsx(hi,{}),i.jsx("div",{className:"typography-nav font-semibold text-hoki-800",children:"Quote selected successfully!"}),i.jsxs("div",{className:"typography-smallparagraph mt-[11px]",children:["Thanks for accepting a quote from"," ",i.jsx("span",{className:"font-semibold",children:l}),", ","your Cromatic concierge will start preparing the project and reach out to you very soon."]}),i.jsx("div",{className:"typography-smallparagraph mt-[18px]",children:"Now, you will need to make a payment of 1% of the total quote amount to proceed with the vendor selection."})]}),i.jsx(Oe,{className:"flex flex-row gap-4 font-medium",children:i.jsx(Ot,{type:"button",onClick:p,isLoading:c,className:"h-[48px] w-[182px] font-medium px-3",children:"Next"})})]})})})};var fi,gi={exports:{}};var vi,yi,bi=(fi||(fi=1,"undefined"!=typeof self&&self,gi.exports=(vi=E(),yi=P(),function(){var e={328:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PrintContextConsumer=t.PrintContext=void 0;var s=n(496),i=Object.prototype.hasOwnProperty.call(s,"createContext");t.PrintContext=i?s.createContext({}):null,t.PrintContextConsumer=t.PrintContext?t.PrintContext.Consumer:function(){return null}},428:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ReactToPrint=void 0;var s=n(316),i=n(496),a=n(190),o=n(328),r=n(940),l=function(e){function t(){var t=e.apply(this,s.__spreadArray([],s.__read(arguments),!1))||this;return t.startPrint=function(e){var n=t.props,s=n.onAfterPrint,i=n.onPrintError,a=n.print,o=n.documentTitle;setTimeout(function(){var n,r;if(e.contentWindow)if(e.contentWindow.focus(),a)a(e).then(function(){return null==s?void 0:s()}).then(function(){return t.handleRemoveIframe()}).catch(function(e){i?i("print",e):t.logMessages(["An error was thrown by the specified `print` function"])});else{if(e.contentWindow.print){var l=null!==(r=null===(n=e.contentDocument)||void 0===n?void 0:n.title)&&void 0!==r?r:"",c=e.ownerDocument.title;o&&(e.ownerDocument.title=o,e.contentDocument&&(e.contentDocument.title=o)),e.contentWindow.print(),o&&(e.ownerDocument.title=c,e.contentDocument&&(e.contentDocument.title=l))}else t.logMessages(["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."]);null==s||s(),t.handleRemoveIframe()}else t.logMessages(["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/"])},500)},t.triggerPrint=function(e){var n=t.props,s=n.onBeforePrint,i=n.onPrintError;if(s){var a=s();a&&"function"==typeof a.then?a.then(function(){t.startPrint(e)}).catch(function(e){i&&i("onBeforePrint",e)}):t.startPrint(e)}else t.startPrint(e)},t.handlePrint=function(e){var n=t.props,i=n.bodyClass,o=n.content,r=n.copyStyles,l=n.fonts,c=n.pageStyle,d=n.nonce,p="function"==typeof e?e():null;if(p&&"function"==typeof o&&t.logMessages(['"react-to-print" received a `content` prop and a content param passed the callback return by `useReactToPrint. The `content` prop will be ignored.'],"warning"),p||"function"!=typeof o||(p=o()),void 0!==p)if(null!==p){var u=document.createElement("iframe");u.width="".concat(document.documentElement.clientWidth,"px"),u.height="".concat(document.documentElement.clientHeight,"px"),u.style.position="absolute",u.style.top="-".concat(document.documentElement.clientHeight+100,"px"),u.style.left="-".concat(document.documentElement.clientWidth+100,"px"),u.id="printWindow",u.srcdoc="<!DOCTYPE html>";var m=(0,a.findDOMNode)(p);if(m){var h=m.cloneNode(!0),x=h instanceof Text,f=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),g=x?[]:h.querySelectorAll("img"),v=x?[]:h.querySelectorAll("video"),y=l?l.length:0;t.numResourcesToLoad=f.length+g.length+v.length+y,t.resourcesLoaded=[],t.resourcesErrored=[];var b=function(e,n){t.resourcesLoaded.includes(e)?t.logMessages(["Tried to mark a resource that has already been handled",e],"debug"):(n?(t.logMessages(s.__spreadArray(['"react-to-
101print" was unable to load a resource but will continue attempting to print the page'],s.__read(n),!1)),t.resourcesErrored.push(e)):t.resourcesLoaded.push(e),t.resourcesLoaded.length+t.resourcesErrored.length===t.numResourcesToLoad&&t.triggerPrint(u))};u.onload=function(){var e,n,a,o;u.onload=null;var p=u.contentDocument||(null===(n=u.contentWindow)||void 0===n?void 0:n.document);if(p){p.body.appendChild(h),l&&((null===(a=u.contentDocument)||void 0===a?void 0:a.fonts)&&(null===(o=u.contentWindow)||void 0===o?void 0:o.FontFace)?l.forEach(function(e){var t=new FontFace(e.family,e.source,{weight:e.weight,style:e.style});u.contentDocument.fonts.add(t),t.loaded.then(function(){b(t)}).catch(function(e){b(t,["Failed loading the font:",t,"Load error:",e])})}):(l.forEach(function(e){return b(e)}),t.logMessages(['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'])));var f="function"==typeof c?c():c;if("string"!=typeof f)t.logMessages(['"react-to-print" expected a "string" from `pageStyle` but received "'.concat(typeof f,'". Styles from `pageStyle` will not be applied.')]);else{var y=p.createElement("style");d&&(y.setAttribute("nonce",d),p.head.setAttribute("nonce",d)),y.appendChild(p.createTextNode(f)),p.head.appendChild(y)}if(i&&(e=p.body.classList).add.apply(e,s.__spreadArray([],s.__read(i.split(" ")),!1)),!x){for(var C=x?[]:m.querySelectorAll("canvas"),j=p.querySelectorAll("canvas"),w=0;w<C.length;++w){var _=C[w],S=j[w].getContext("2d");S&&S.drawImage(_,0,0)}var N=function(e){var t=g[e],n=t.getAttribute("src");if(n){var s=new Image;s.onload=function(){return b(t)},s.onerror=function(e,n,s,i,a){return b(t,["Error loading <img>",t,"Error",a])},s.src=n}else b(t,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it. The <img> is:',t])};for(w=0;w<g.length;w++)N(w);var k=function(e){var t=v[e];t.preload="auto";var n=t.getAttribute("poster");if(n){var s=new Image;s.onload=function(){return b(t)},s.onerror=function(e,s,i,a,o){return b(t,["Error loading video poster",n,"for video",t,"Error:",o])},s.src=n}else t.readyState>=2?b(t):(t.onloadeddata=function(){return b(t)},t.onerror=function(e,n,s,i,a){return b(t,["Error loading video",t,"Error",a])},t.onstalled=function(){return b(t,["Loading video stalled, skipping",t])})};for(w=0;w<v.length;w++)k(w);var E="input",P=m.querySelectorAll(E),M=p.querySelectorAll(E);for(w=0;w<P.length;w++)M[w].value=P[w].value;var T="input[type=checkbox],input[type=radio]",A=m.querySelectorAll(T),V=p.querySelectorAll(T);for(w=0;w<A.length;w++)V[w].checked=A[w].checked;var L="select",F=m.querySelectorAll(L),D=p.querySelectorAll(L);for(w=0;w<F.length;w++)D[w].value=F[w].value}if(r)for(var R=document.querySelectorAll("style, link[rel~='stylesheet'], link[as='style']"),I=function(e,n){var s=R[e];if("style"===s.tagName.toLowerCase()){var i=p.createElement(s.tagName),a=s.sheet;if(a){var o="";try{for(var r=a.cssRules.length,l=0;l<r;++l)"string"==typeof a.cssRules[l].cssText&&(o+="".concat(a.cssRules[l].cssText,"\r\n"))}catch(e){t.logMessages(["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/gregnb/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",s],"warning")}i.setAttribute("id","react-to-print-".concat(e)),d&&i.setAttribute("nonce",d),i.appendChild(p.createTextNode(o)),p.head.appendChild(i)}}else if(s.getAttribute("href"))if(s.hasAttribute("disabled"))t.logMessages(["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",s],"warning"),b(s);else{for(var c=p.createElement(s.tagName),u=(l=0,s.attributes.length);l<u;++l){var m=s.attributes[l];m&&c.setAttribute(m.nodeName,m.nodeValue||"")}c.onload=function(){return b(c)},c.onerror=function(e,t,n,s,i){return b(c,["Failed to load",c,"Error:",i])},d&&c.setAttribute("nonce",d),p.head.appendChild(c)}
101else t.logMessages(["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",s],"warning"),b(s)},O=(w=0,R.length);w<O;++w)I(w)}0!==t.numResourcesToLoad&&r||t.triggerPrint(u)},t.handleRemoveIframe(!0),document.body.appendChild(u)}else t.logMessages(['"react-to-print" could not locate the DOM node corresponding with the `content` prop'])}else t.logMessages(['There is nothing to print because the "content" prop returned "null". Please ensure "content" is renderable before allowing "react-to-print" to be called.']);else t.logMessages(["To print a functional component ensure it is wrapped with `React.forwardRef`, and ensure the forwarded ref is used. See the README for an example: https://github.com/gregnb/react-to-print#examples"])},t.handleRemoveIframe=function(e){var n=t.props.removeAfterPrint;if(e||n){var s=document.getElementById("printWindow");s&&document.body.removeChild(s)}},t.logMessages=function(e,n){void 0===n&&(n="error"),t.props.suppressErrors},t}return s.__extends(t,e),t.prototype.handleClick=function(e,t){var n=this,s=this.props,i=s.onBeforeGetContent,a=s.onPrintError;if(i){var o=i();o&&"function"==typeof o.then?o.then(function(){return n.handlePrint(t)}).catch(function(e){a&&a("onBeforeGetContent",e)}):this.handlePrint(t)}else this.handlePrint(t)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.trigger;if(n)return i.cloneElement(n(),{onClick:this.handleClick.bind(this)});if(!o.PrintContext)return this.logMessages(['"react-to-print" requires React ^16.3.0 to be able to use "PrintContext"']),null;var s={handlePrint:this.handleClick.bind(this)};return i.createElement(o.PrintContext.Provider,{value:s},t)},t.defaultProps=r.defaultProps,t}(i.Component);t.ReactToPrint=l},940:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=void 0,t.defaultProps={copyStyles:!0,pageStyle:"\n        @page {\n            /* Remove browser default header (title) and footer (url) */\n            margin: 0;\n        }\n        @media print {\n            body {\n                /* Tell browsers to print background colors */\n                -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */\n                color-adjust: exact; /* Firefox */\n            }\n        }\n    ",removeAfterPrint:!1,suppressErrors:!1}},892:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useReactToPrint=void 0;
101var s=n(316),i=n(496),a=n(428),o=n(940),r=n(860),l=Object.prototype.hasOwnProperty.call(i,"useMemo")&&Object.prototype.hasOwnProperty.call(i,"useCallback");t.useReactToPrint=function(e){if(!l)return e.suppressErrors,function(){throw new Error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"')};var t=i.useMemo(function(){return new a.ReactToPrint(s.__assign(s.__assign({},o.defaultProps),e))},[e]);return i.useCallback(function(e,n){return(0,r.wrapCallbackWithArgs)(t,t.handleClick,n)(e)},[t])}},860:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.wrapCallbackWithArgs=void 0;var s=n(316);t.wrapCallbackWithArgs=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];return t.apply(e,s.__spreadArray(s.__spreadArray([],s.__read(i),!1),s.__read(n),!1))}}},496:function(e){e.exports=vi},190:function(e){e.exports=yi},316:function(e,t,n){n.r(t),n.d(t,{__addDisposableResource:function(){return L},__assign:function(){return a},__asyncDelegator:function(){return S},__asyncGenerator:function(){return _},__asyncValues:function(){return N},__await:function(){return w},__awaiter:function(){return h},__classPrivateFieldGet:function(){return T},__classPrivateFieldIn:function(){return V},__classPrivateFieldSet:function(){return A},__createBinding:function(){return f},__decorate:function(){return r},__disposeResources:function(){return D},__esDecorate:function(){return c},__exportStar:function(){return g},__extends:function(){return i},__generator:function(){return x},__importDefault:function(){return M},__importStar:function(){return P}
vendor: 9,038 bytes, line 101
101,__makeTemplateObject:function(){return k},__metadata:function(){return m},__param:function(){return l},__propKey:function(){return p},__read:function(){return y},__rest:function(){return o},__runInitializers:function(){return d},__setFunctionName:function(){return u},__spread:function(){return b},__spreadArray:function(){return j},__spreadArrays:function(){return C},__values:function(){return v}});var s=function(e,t){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};function o(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}function r(e,t,n,s){var i,a=arguments.length,o=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function l(e,t){return function(n,s){t(n,s,e)}}function c(e,t,n,s,i,a){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var r,l=s.kind,c="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?s.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,s.name):{}),u=!1,m=n.length-1;m>=0;m--){var h={};for(var x in s)h[x]="access"===x?{}:s[x];for(var x in s.access)h.access[x]=s.access[x];h.addInitializer=function(e){if(u)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(e||null))};var f=(0,n[m])("accessor"===l?{get:p.get,set:p.set}:p[c],h);if("accessor"===l){if(void 0===f)continue;if(null===f||"object"!=typeof f)throw new TypeError("Object expected");(r=o(f.get))&&(p.get=r),(r=o(f.set))&&(p.set=r),(r=o(f.init))&&i.unshift(r)}else(r=o(f))&&("field"===l?i.unshift(r):p[c]=r)}d&&Object.defineProperty(d,s.name,p),u=!0}function d(e,t,n){for(var s=arguments.length>2,i=0;i<t.length;i++)n=s?t[i].call(e,n):t[i].call(e);return s?n:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function u(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function m(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,s){return new(n||(n=Promise))(function(i,a){function o(e){try{l(s.next(e))}catch(e){a(e)}}function r(e){try{l(s.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,r)}l((s=s.apply(e,t||[])).next())})}function x(e,t){var n,s,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function r(r){return function(l){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,r[0]&&(o=0)),o;)try{if(n=1,s&&(i=2&r[0]?s.return:r[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,r[1])).done)return i;switch(s=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,s=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){o=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){o.label=r[1];break}if(6===r[0]&&o.label<i[1]){o.label=i[1],i=r;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(r);break}i[2]&&o.ops.pop(),o.trys.pop();continue}r=t.call(e,o)}catch(e){r=[6,e],s=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,l])}}}var f=Object.create?function(e,t,n,s){void 0===s&&(s=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,i)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]};function g(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||f(t,e,n)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],s=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&s>=e.length&&(e=void 0),{value:e&&e[s++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var s,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(s=a.next()).done;)o.push(s.value)}catch(e){i={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function C(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var s=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,r=a.length;o<r;o++,i++)s[i]=a[o];return s}function j(e,t,n){if(n||2===arguments.length)for(var s,i=0,a=t.length;i<a;i++)!s&&i in t||(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}function w(e){return this instanceof w?(this.v=e,this):new w(e)}function _(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s,i=n.apply(e,t||[]),a=[];return s={},o("next"),o("throw"),o("return"),s[Symbol.asyncIterator]=function(){return this},s;function o(e){i[e]&&(s[e]=function(t){return new Promise(function(n,s){a.push([e,t,n,s])>1||r(e,t)})})}function r(e,t){try{(n=i[e](t)).value instanceof w?Promise.resolve(n.value.v).then(l,c):d(a[0][2],n)}catch(e){d(a[0][3],e)}var n}function l(e){r("next",e)}function c(e){r("throw",e)}function d(e,t){e(t),a.shift(),a.length&&r(a[0][0],a[0][1])}}function S(e){var t,n;return t={},s("next"),s("throw",function(e){throw e}),s("return"),t[Symbol.iterator]=function(){return this},t;function s(s,i){t[s]=e[s]?function(t){return(n=!n)?{value:w(e[s](t)),done:!1}:i?i(t):t}:i}}function N(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},s("next"),s("throw"),s("return"),t[Symbol.asyncIterator]=function(){return this},t);function s(n){t[n]=e[n]&&function(t){return new Promise(function(s,i){!function(e,t,n,s){Promise.resolve(s).then(function(t){e({value:t,done:n})},t)}(s,i,(t=e[n](t)).done,t.value)})}}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function P(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&f(t,e,n);return E(t,e),t}function M(e){return e&&e.__esModule?e:{default:e}}function T(e,t,n,s){if("a"===n&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?s:"a"===n?s.call(e):s?s.value:t.get(e)}function A(e,t,n,s,i){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?i.call(e,n):i?i.value=n:t.set(e,n),n}function V(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function L(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var s;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");s=t[Symbol.asyncDispose]}if(void 0===s){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");s=t[Symbol.dispose]}if("function"!=typeof s)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:s,async:n})}else n&&e.stack.push({async:!0});return t}var F="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var s=new Error(n);
101return s.name="SuppressedError",s.error=e,s.suppressed=t,s};function D(e){function t(t){e.error=e.hasError?new F(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var s=e.stack.pop();try{var i=s.dispose&&s.dispose.call(s.value);if(s.async)return Promise.resolve(i).then(n,function(e){return t(e),n()})}catch(e){t(e)}}if(e.hasError)throw e.error}()}t.default={__extends:i,__assign:a,__rest:o,__decorate:r,__param:l,__metadata:m,__awaiter:h,__generator:x,__createBinding:f,__exportStar:g,__values:v,__read:y,__spread:b,__spreadArrays:C,__spreadArray:j,__await:w,__asyncGenerator:_,__asyncDelegator:S,__asyncValues:N,__makeTemplateObject:k,__importStar:P,__importDefault:M,__classPrivateFieldGet:T,__classPrivateFieldSet:A,__classPrivateFieldIn:V,__addDisposableResource:L,__disposeResources:D}}},t={};function n(s){var i=t[s];if(void 0!==i)return i.exports;var a=t[s]={exports:{}};return e[s](a,a.exports,n),a.exports}n.d=function(e,t){for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return function(){var e=s;Object.defineProperty(e,"__esModule",{value:!0}),e.useReactToPrint=e.ReactToPrint=e.PrintContextConsumer=void 0;var t=n(328);Object.defineProperty(e,"PrintContextConsumer",{enumerable:!0,get:function(){return t.PrintContextConsumer}});var i=n(428);Object.defineProperty(e,"ReactToPrint",{enumerable:!0,get:function(){return i.ReactToPrint}});var a=n(892);Object.defineProperty(e,"useReactToPrint",{enumerable:!0,get:function(){return a.useReactToPrint}});var o=n(428);e.default=o.ReactToPrint}(),s}())),gi.exports);const Ci=M(bi);function ji(e,t,n){try{return e(t)}catch(R){return z("[nuqs] Error while parsing value `%s`: %O"+(n?" (for key `%s`)":""),t,R,n),null}}function wi(e){function t(t){if(void 0===t)return null;let n="";if(Array.isArray(t)){if(void 0===t[0])return null;n=t[0]}return"string"==typeof t&&(n=t),ji(e.parse,n)}return{type:"single",eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide:n=>t(n)??e}},withOptions(e){return{...this,...e}}}}function _i(e,t){return e.valueOf()===t.valueOf()}wi({parse:e=>e,serialize:String}),wi({parse:e=>{const t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)}),wi({parse:e=>{const t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)}),wi({parse:e=>{const t=parseInt(e,16);return t==t?t:null},serialize:e=>{const t=Math.round(e).toString(16);return(1&t.length?"0":"")+t}}),wi({parse:e=>{const t=parseFloat(e);return t==t?t:null},serialize:String}),wi({parse:e=>"true"===e.toLowerCase(),serialize:String}),wi({parse:e=>{const t=parseInt(e);return t==t?new Date(t):null},serialize:e=>""+e.valueOf(),eq:_i}),wi({parse:e=>{const t=new Date(e);return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString(),eq:_i}),wi({parse:e=>{const t=new Date(e.slice(0,10));return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString().slice(0,10),eq:_i});const Si=q(),Ni={};function ki(e,t,n,s,i,a){let o=!1;const r=Object.entries(e).reduce((e,[r,l])=>{const c=t?.[r]??r,d=s[c],p="multi"===l.type?[]:null,u=void 0===d?("multi"===l.type?n?.getAll(c):n?.get(c))??p:d;return i&&a&&O(i[c]??p,u)?(e[r]=a[r]??null,e):(o=!0,e[r]=(B(u)?null:ji(l.parse,u,c))??null,i&&(i[c]=u),e)},{});if(!o){const t=Object.keys(e),n=Object.keys(a??{});o=t.length!==n.length||t.some(e=>!n.includes(e))}return{state:r,hasChanged:o}}function Ei(e,t){return Object.fromEntries(Object.keys(e).map(n=>[n,e[n]??t[n]??null]))}function Pi(t,n={}){const{parse:s,type:i,serialize:a,eq:o,defaultValue:r,...l}=n,[{[t]:c},d]=function(t,n={}){const s=e.useId(),i=T(),a=A(),{history:o="replace",scroll:r=i?.scroll??!1,shallow:l=i?.shallow??!0,throttleMs:c=V.timeMs,limitUrlUpdates:d=i?.limitUrlUpdates,clearOnDefault:p=i?.clearOnDefault??!0,startTransition:u,urlKeys:m=Ni}=n,h=Object.keys(t).join(","),x=e.useMemo(()=>Object.fromEntries(Object.keys(t).map(e=>[e,m[e]??e])),[h,JSON.stringify(m)]),f=L(Object.values(x)),g=f.searchParams,v=e.useRef({}),y=e.useMemo(()=>Object.fromEntries(Object.keys(t).map(e=>[e,t[e].defaultValue??null])),[Object.values(t).map(({defaultValue:e})=>e).join(",")]),b=F.useQueuedQueries(Object.values(x)),[C,j]=e.useState(()=>ki(t,m,g??new URLSearchParams,b).state),w=e.useRef(C);if(D("[nuq+ %s `%s`] render - state: %O, iSP: %s",s,h,C,g),Object.keys(v.current).join("&")!==Object.values(x).join("&")){const{state:e,hasChanged:n}=ki(t,m,g,b,v.current,w.current);n&&(D("[nuq+ %s `%s`] State changed: %O",s,h,{state:e,initialSearchParams:g,queuedQueries:b,queryRef:v.current,stateRef:w.current}),w.current=e,j(e)),v.current=Object.fromEntries(Object.entries(x).map(([e,n])=>[n,"multi"===t[e]?.type?g?.getAll(n):g?.get(n)??null]))}e.useEffect(()=>{const{state:e,hasChanged:n}=ki(t,m,g,b,v.current,w.current);n&&(D("[nuq+ %s `%s`] State changed: %O",s,h,{state:e,initialSearchParams:g,queuedQueries:b,queryRef:v.current,stateRef:w.current}),w.current=e,j(e))},[Object.values(x).map(e=>`${e}=${g?.getAll(e)}`).join("&"),JSON.stringify(b)]),e.useEffect(()=>{const e=Object.keys(t).reduce((e,n)=>(e[n]=({state:e,query:i})=>{j(a=>{const{defaultValue:o}=t[n],r=x[n],l=e??o??null,c=a[n]??o??null;return Object.is(c,l)?(D("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). no change, skipping, resolved: %O",s,h,r,e,o,w.current),a):(w.current={...w.current,[n]:l},v.current[r]=i,D("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). updateInternalState, resolved: %O",s,h,r,e,o,w.current),w.current)})},e),{});for(const n of Object.keys(t)){const t=x[n];D("[nuq+ %s `%s`] Subscribing to sync for `%s`",s,t,h),Si.on(t,e[n])}return()=>{for(const n of Object.keys(t)){const t=x[n];D("[nuq+ %s `%s`] Unsubscribing to sync for `%s`",s,t,h),Si.off(t,e[n])}}},[h,x]);const _=e.useCallback((e,n={})=>{const i=Object.fromEntries(Object.keys(t).map(e=>[e,null])),m="function"==typeof e?e(Ei(w.current,y))??i:e??i;let g;D("[nuq+ %s `%s`] setState: %O",s,h,m);let v=0,b=!1;const C=[];for(let[s,h]of Object.entries(m)){const e=t[s],i=x[s];if(!e||void 0===h)continue;(n.clearOnDefault??e.clearOnDefault??p)&&null!==h&&void 0!==e.defaultValue&&(e.eq??((e,t)=>e===t))(h,e.defaultValue)&&(h=null);const m=null===h?null:(e.serialize??String)(h);Si.emit(i,{state:h,query:m});const y={key:i,query:m,options:{history:n.history??e.history??o,shallow:n.shallow??e.shallow??l,scroll:n.scroll??e.scroll??r,startTransition:n.startTransition??e.startTransition??u}};if("debounce"===n?.limitUrlUpdates?.method||"debounce"===d?.method||"debounce"===e.limitUrlUpdates?.method){y.options.shallow;const t=n?.limitUrlUpdates?.timeMs??d?.timeMs??e.limitUrlUpdates?.timeMs??V.timeMs,s=F.push(y,t,f,a);v<t&&(g=s,v=t)}else{const t=n?.limitUrlUpdates?.timeMs??e?.limitUrlUpdates?.timeMs??d?.timeMs??n.throttleMs??e.throttleMs??c;C.push(F.abort(i)),I.push(y,t),b=!0}}const j=C.reduce((e,t)=>
101t(e),b?I.flush(f,a):I.getPendingPromise(f));return g??j},[h,o,l,r,c,d?.method,d?.timeMs,u,x,f.updateUrl,f.getSearchParamsSnapshot,f.rateLimitFactor,a,y]);return[e.useMemo(()=>Ei(C,y),[C,y]),_]}({[t]:{parse:s??(e=>e),type:i,serialize:a,eq:o,defaultValue:r}},l);return[c,e.useCallback((e,n={})=>d(n=>({[t]:"function"==typeof e?e(n[t]):e}),n),[t,d])]}const Mi=({label:e,value:t,isTotal:n,isFirst:s})=>i.jsxs("div",{className:o("grid grid-cols-2 font-inter",n?"!border-t-[2.57px] border-primary text-primary":"",s?"pb-4":"py-4"),children:[i.jsx("div",{className:"text-base font-semibold",children:e}),i.jsx("div",{className:"text-base font-medium text-right",children:t})]});function Ti({onDownloadInvoice:e,selectedQuoteId:t}){const{sourcingSession:n}=Hs(),s=n?.sourcing_quotes?.find(e=>e?.id===t),a=(s?.final_price??0)*H;return i.jsxs(zn,{className:"mt-[15px] bg-white px-[40px] py-[50px] text-hoki-800 rounded-lg",children:[i.jsxs("div",{className:"text-lg font-semibold flex justify-between",children:[i.jsx("div",{children:"Invoice details"}),i.jsx("div",{className:"text-base",children:"Amount"})]}),i.jsx("hr",{className:"mt-[17px] mb-6"}),i.jsxs("div",{className:"flex items-center justify-between text-[18px]",children:[i.jsx("div",{className:"flex flex-col gap-y-[11px]",children:i.jsx("div",{className:"text-base font-semibold",children:"Cromatic Service Fee"})}),i.jsx("span",{className:"font-medium text-base font-inter",children:Tt(Number(a))})]}),i.jsx("hr",{className:"mt-6 mb-[30px]"}),i.jsx("div",{children:i.jsxs("div",{className:"ml-auto grid divide-y border-b-[2.57px] border-primary md:max-w-[40%]",children:[i.jsx(Mi,{label:"Quote",value:Tt(Number(s?.final_price??0)),isFirst:!0}),i.jsx(Mi,{label:"Service Rate",value:"1%"}),i.jsx(Mi,{label:"Amount Due to Cromatic",value:Tt(a),isTotal:!0})]})}),e&&i.jsx("div",{className:"flex justify-end mt-6 print:hidden",children:i.jsxs(Ot,{type:"button",variant:"secondary",className:"text-primary",onClick:e,children:[i.jsx(yt,{size:14}),"Invoice"]})})]})}const Ai=({label:e,value:t})=>i.jsxs("div",{className:"grid grid-cols-[230px_1fr] items-center text-lg py-[16px]",children:[i.jsx("div",{className:"flex flex-col text-hoki-600 max-w-[329px]",children:e}),i.jsx("div",{className:"flex items-center text-hoki-800",children:t})]}),Vi="Cromatic Inc.",Li="Evolve Bank & Trust",Fi="084106768",Di="9801778932";function Ri({selectedQuoteId:t}){const n=e.useRef(null),{sourcingSession:s}=Hs(),a=s?.sourcing_quotes?.find(e=>e?.id===t),o=Number(a?.final_price??0)*H;return i.jsxs("div",{ref:n,children:[i.jsx("div",{className:"text-lg text-hoki-800 font-semibold mt-[40px] mb-[17px] print:hidden",children:"Pay through bank transfer"}),i.jsxs(zn,{className:"border mt-[26px] bg-white !px-[40px] !py-[35px] text-hoki-800 rounded-lg",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("div",{className:"text-2xl font-semibold",children:"Cromatic bank account details"}),i.jsx(Ci,{trigger:()=>i.jsxs("button",{className:"print:hidden text-lg flex items-center gap-x-1 text-primary",type:"button",children:[i.jsx(vn,{}),"Instructions"]}),documentTitle:`Cromatic Payment Instruction - ${s?.biotech_invoice?.reference_id}`,content:()=>n.current,pageStyle:"@media print"})]}),i.jsxs("div",{className:"grid mt-[40px]",children:[i.jsx(Ai,{label:"Total amount",value:i.jsx("div",{className:"flex items-center font-bold",children:Tt(Number(o))})}),i.jsx(Ai,{label:"Beneficiary name",value:Vi}),i.jsx(Ai,{label:"Beneficiary address",value:i.jsxs("div",{children:[i.jsx("div",{children:"97 Willow Street,"}),i.jsx("div",{children:"Redwood City, CA 94063"})]})}),i.jsx(Ai,{label:"Account number",value:Di}),i.jsx(Ai,{label:"Bank name",value:Li}),i.jsx(Ai,{label:"ABA Routing number",value:Fi}),i.jsx(Ai,{label:"Bank address",value:i.jsxs("div",{children:[i.jsx("div",{children:"6000 Poplar Ave, Suite 300"}),i.jsx("div",{children:"Memphis, TN 38119"})]})}),i.jsx(Ai,{label:"Reference ID",value:i.jsxs("div",{className:"flex flex-col gap-y-[9px]",children:[i.jsx("div",{className:"font-semibold text-lg",children:a?.biotech_invoice?.reference_id}),i.jsx("div",{children:"The reference ID must be included in the payment transaction"})]})})]})]})]})}const Ii=a("\n  mutation UploadBiotechInvoicePaymentReceipt($file: Upload!, $id: String, $sourcingQuoteId: String) {\n    uploadBiotechInvoicePaymentReceipt(file: $file, id: $id, sourcing_quote_id: $sourcingQuoteId) {\n      id\n    }\n  }
101\n"),Oi=S({file:Z(File,{message:"Proof of payment is required."})});function Bi({selectedQuoteId:n}){const{sourcingSession:s}=Hs(),[,a]=Pi("success"),r=s?.sourcing_quotes?.find(e=>e?.id===n),[l,{loading:c}]=(()=>{const[e,n]=h(Ii);return[t.useCallback(t=>e({variables:{...t},refetchQueries:["SourcingResultPageQuery"]}),[e]),n]})(),{toastCatchError:d}=m(),{control:p,handleSubmit:u}=Bt({resolver:qt(Oi)}),[x,f]=e.useState(null),g=e.useCallback(async e=>{try{await l({file:e.file,id:r?.biotech_invoice?.id??"",sourcingQuoteId:r?.id??""}),a("true")}catch(R){d(R)}},[l,r?.biotech_invoice,r?.id,d,a]);return i.jsxs("form",{onSubmit:u(g),className:"flex flex-col",children:[i.jsxs(zn,{className:"mt-[31px] bg-white !px-0 !py-0 text-hoki-800 rounded-lg",children:[i.jsx("div",{className:"text-2xl font-semibold",children:"Upload proof of payment"}),i.jsx(zt,{control:p,name:"file",render:({field:e,fieldState:{error:t,invalid:n}})=>i.jsxs(Ht,{className:"flex flex-col gap-2",isInvalid:n,children:[i.jsx(Ht.ErrorMessage,{className:"text-red-500",children:t?.message}),i.jsx("div",{className:o("rounded-lg border-hoki-200 border-dashed border-2 mt-2",n?"mt-2":"mt-5"),children:i.jsx(Vt,{accept:{"application/pdf":[".pdf"],"image/png":[".png"],"image/jpeg":[".jpg",".jpeg"]},maxFiles:1,onDrop:t=>{f(t[0]),e.onChange(t[0])},multiple:!1,renderZone:()=>i.jsxs("div",{className:"flex flex-col justify-center items-center gap-3 min-h-[193px] h-full",children:[i.jsx("div",{className:"text-primary",children:x?i.jsxs("div",{className:"border relative",children:["application/pdf"===x.type?i.jsx(be,{className:"w-[64px] h-[64px]"}):i.jsx(Ce,{className:"w-[64px] h-[64px]"}),i.jsx("button",{type:"button",onClick:t=>{t.stopPropagation(),f(null),e.onChange(null)},children:i.jsx(Qe,{className:"absolute -top-2.5 -end-2.5 text-hoki-600 hover:text-hoki-700"})})]}):i.jsx(je,{})}),x?i.jsxs("div",{className:"flex flex-col items-center gap-3",children:[i.jsx("div",{className:"text-center text-hoki-600 line-clamp-1",children:x.name}),i.jsx("p",{className:"text-primary text-center text-sm md:text-base",children:"Replace"})]}):i.jsxs("div",{className:"flex flex-col items-center",children:[i.jsxs("p",{className:"text-hoki-500 text-center text-sm md:text-base",children:["Drag and drop file here, or"," ",i.jsx("span",{className:"text-primary",children:"click here"})," ","to select."]}),i.jsx("p",{className:"text-hoki-500 text-xs",children:"PNG, JPG & PDF file formats supported."})]})]})})})]})})]}),i.jsx("div",{className:"flex justify-end items-center mt-[38px]",children:i.jsx(Ot,{className:"w-[237px] h-[48px] text-base",type:"submit",isLoading:c,disabled:c,children:"Confirm payment"})})]})}const qi=a("\n  mutation CreateStripeCheckoutSessionLinkForUnlockVendor($input: CreateStripeCheckoutSessionLinkForCromaticPartnershipInput!) {\n    createStripeCheckoutSessionLinkForCromaticPartnership(input: $input)\n  }\n");function zi({selectedQuoteId:t}){const[n,s]=e.useState(!1),[a,o]=e.useState(null),{sourcingSession:r}=Hs(),l=r?.sourcing_quotes?.find(e=>e?.id===t),[c,{loading:d}]=function(){const[t,n]=h(qi);return[e.useCallback(e=>t({variables:{input:e}}),[t]),n]}(),p=Number(l?.final_price??0)*H;return i.jsxs("div",{className:"bg-white border border-gray-200 rounded-md p-6 mt-4",children:[i.jsx("h3",{className:"font-semibold text-lg mb-4",children:"Pay with Card"}),a&&i.jsx("div",{className:"bg-red-50 border border-red-200 text-red-700 p-3 rounded-md mb-4",children:a}),i.jsxs("div",{className:"flex flex-col",children:[i.jsxs("div",{className:"mb-6",children:[i.jsx("p",{className:"text-gray-700 mb-2",children:"You'll be redirected to Stripe's secure payment page to complete your payment."}),i.jsxs("div",{className:"text-sm text-gray-600 mt-2 font-medium",children:["Total Amount:"," ",Tt(p)]})]}),i.jsx(Ot,{onClick:async()=>{s(!0),o(null);try{const{data:e}=await c({sourcing_quote_id:t,success_url:`${window.location.href}&success=true`});if(!e?.createStripeCheckoutSessionLinkForCromaticPartnership)throw new Error("Unable to set up payment.");window.location.href=e.createStripeCheckoutSessionLinkForCromaticPartnership}catch(e){o(e instanceof Error?e.message:"An error occurred while setting up payment"),s(!1)}},disabled:n||p>
101U,className:"bg-primary hover:bg-primary-dark text-white px-6 py-3 rounded-md w-full md:w-auto md:self-end",children:n||d?"Processing...":"Proceed to Checkout"}),i.jsxs("div",{className:"mt-6 flex items-center",children:[i.jsx("div",{className:"flex-1 border-t border-gray-200"}),i.jsx("span",{className:"px-3 text-gray-500 text-sm",children:"Secure Payment"}),i.jsx("div",{className:"flex-1 border-t border-gray-200"})]}),i.jsxs("div",{className:"mt-4 text-xs text-gray-500",children:[i.jsx("p",{children:"By proceeding with payment, you agree to our terms of service and privacy policy."}),i.jsx("p",{className:"mt-2",children:"Your payment will be processed securely through Stripe."})]})]})]})}var Hi="Collapsible",[Zi,Ui]=sn(Hi),[Qi,Wi]=Zi(Hi),$i=e.forwardRef((t,n)=>{const{__scopeCollapsible:s,open:a,defaultOpen:o,disabled:r,onOpenChange:l,...c}=t,[d,p]=Xt({prop:a,defaultProp:o??!1,onChange:l,caller:Hi});return i.jsx(Qi,{scope:s,disabled:r,contentId:en(),open:d,onOpenToggle:e.useCallback(()=>p(e=>!e),[p]),children:i.jsx(Jt.div,{"data-state":ea(d),"data-disabled":r?"":void 0,...c,ref:n})})});$i.displayName=Hi;var Yi="CollapsibleTrigger",Ki=e.forwardRef((e,t)=>{const{__scopeCollapsible:n,...s}=e,a=Wi(Yi,n);return i.jsx(Jt.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":ea(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...s,ref:t,onClick:tn(e.onClick,a.onOpenToggle)})});
vendor: 4,408 bytes, line 101
101Ki.displayName=Yi;var Gi="CollapsibleContent",Xi=e.forwardRef((e,t)=>{const{forceMount:n,...s}=e,a=Wi(Gi,e.__scopeCollapsible);return i.jsx(nn,{present:n||a.open,children:({present:e})=>i.jsx(Ji,{...s,ref:t,present:e})})});Xi.displayName=Gi;var Ji=e.forwardRef((t,n)=>{const{__scopeCollapsible:s,present:a,children:o,...r}=t,l=Wi(Gi,s),[c,d]=e.useState(a),p=e.useRef(null),u=Q(n,p),m=e.useRef(0),h=m.current,x=e.useRef(0),f=x.current,g=l.open||c,v=e.useRef(g),y=e.useRef(void 0);return e.useEffect(()=>{const e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),an(()=>{const e=p.current;if(e){y.current=y.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();m.current=t.height,x.current=t.width,v.current||(e.style.transitionDuration=y.current.transitionDuration,e.style.animationName=y.current.animationName),d(a)}},[l.open,a]),i.jsx(Jt.div,{"data-state":ea(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!g,...r,ref:u,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":f?`${f}px`:void 0,...t.style},children:g&&o})});function ea(e){return e?"open":"closed"}var ta=$i,na=Ki,sa=Xi,ia="Accordion",aa=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[oa,ra,la]=bt(ia),[ca]=sn(ia,[la,Ui]),da=Ui(),pa=t.forwardRef((e,t)=>{const{type:n,...s}=e,a=s,o=s;return i.jsx(oa.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?i.jsx(ga,{...o,ref:t}):i.jsx(fa,{...a,ref:t})})});pa.displayName=ia;var[ua,ma]=ca(ia),[ha,xa]=ca(ia,{collapsible:!1}),fa=t.forwardRef((e,n)=>{const{value:s,defaultValue:a,onValueChange:o=()=>{},collapsible:r=!1,...l}=e,[c,d]=Xt({prop:s,defaultProp:a??"",onChange:o,caller:ia});return i.jsx(ua,{scope:e.__scopeAccordion,value:t.useMemo(()=>c?[c]:[],[c]),onItemOpen:d,onItemClose:t.useCallback(()=>r&&d(""),[r,d]),children:i.jsx(ha,{scope:e.__scopeAccordion,collapsible:r,children:i.jsx(ba,{...l,ref:n})})})}),ga=t.forwardRef((e,n)=>{const{value:s,defaultValue:a,onValueChange:o=()=>{},...r}=e,[l,c]=Xt({prop:s,defaultProp:a??[],onChange:o,caller:ia}),d=t.useCallback(e=>c((t=[])=>[...t,e]),[c]),p=t.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return i.jsx(ua,{scope:e.__scopeAccordion,value:l,onItemOpen:d,onItemClose:p,children:i.jsx(ha,{scope:e.__scopeAccordion,collapsible:!0,children:i.jsx(ba,{...r,ref:n})})})}),[va,ya]=ca(ia),ba=t.forwardRef((e,n)=>{const{__scopeAccordion:s,disabled:a,dir:o,orientation:r="vertical",...l}=e,c=t.useRef(null),d=Q(c,n),p=ra(s),u="ltr"===Ct(o),m=tn(e.onKeyDown,e=>{if(!aa.includes(e.key))return;const t=e.target,n=p().filter(e=>!e.ref.current?.disabled),s=n.findIndex(e=>e.ref.current===t),i=n.length;if(-1===s)return;e.preventDefault();let a=s;const o=i-1,l=()=>{a=s+1,a>o&&(a=0)},c=()=>{a=s-1,a<0&&(a=o)};switch(e.key){case"Home":a=0;break;case"End":a=o;break;case"ArrowRight":"horizontal"===r&&(u?l():c());break;case"ArrowDown":"vertical"===r&&l();break;case"ArrowLeft":"horizontal"===r&&(u?c():l());break;case"ArrowUp":"vertical"===r&&c()}const d=a%i;n[d].ref.current?.focus()});return i.jsx(va,{scope:s,disabled:a,direction:o,orientation:r,children:i.jsx(oa.Slot,{scope:s,children:i.jsx(Jt.div,{...l,"data-orientation":r,ref:d,onKeyDown:a?void 0:m})})})}),Ca="AccordionItem",[ja,wa]=ca(Ca),_a=t.forwardRef((e,t)=>{const{__scopeAccordion:n,value:s,...a}=e,o=ya(Ca,n),r=ma(Ca,n),l=da(n),c=en(),d=s&&r.value.includes(s)||!1,p=o.disabled||e.disabled;return i.jsx(ja,{scope:n,open:d,disabled:p,triggerId:c,children:i.jsx(ta,{"data-orientation":o.orientation,"data-state":Ta(d),...l,...a,ref:t,disabled:p,open:d,onOpenChange:e=>{e?r.onItemOpen(s):r.onItemClose(s)}})})});_a.displayName=Ca;var Sa="AccordionHeader",Na=t.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,a=ya(ia,n),o=wa(Sa,n);return i.jsx(Jt.h3,{"data-orientation":a.orientation,"data-state":Ta(o.open),"data-disabled":o.disabled?"":void 0,...s,ref:t})});Na.displayName=Sa;var ka="AccordionTrigger",Ea=t.forwardRef((e,t)=>{const{__scopeAccordion:n,...s}=e,a=ya(ia,n),o=wa(ka,n),r=xa(ka,n),l=da(n);return i.jsx(oa.ItemSlot,{scope:n,children:i.jsx(na,{"aria-disabled":o.open&&!r.collapsible||void 0,"data-orientation":a.orientation,id:o.triggerId,...l,...s,ref:t})})});Ea.displayName=ka;var Pa="AccordionContent",Ma=t.forwardRef((e,t)=>
101{const{__scopeAccordion:n,...s}=e,a=ya(ia,n),o=wa(Pa,n),r=da(n);return i.jsx(sa,{role:"region","aria-labelledby":o.triggerId,"data-orientation":a.orientation,...r,...s,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function Ta(e){return e?"open":"closed"}Ma.displayName=Pa;var Aa=_a,Va=Na,La=Ea,Fa=Ma;const Da=pa,Ra=e.forwardRef(({className:e,...t},n)=>i.jsx(Aa,{ref:n,className:o("border-b",e),...t}));Ra.displayName="AccordionItem";const Ia=e.forwardRef(({className:e,children:t,...n},s)=>i.jsx(Va,{className:"flex",children:i.jsxs(La,{ref:s,className:o("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,i.jsx(jt,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));Ia.displayName=La.displayName;const Oa=e.forwardRef(({className:e,children:t,...n},s)=>i.jsx(Fa,{ref:s,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:i.jsx("div",{className:o("pb-4 pt-0",e),children:t})}));Oa.displayName=Fa.displayName;const Ba=({selectedQuoteId:t})=>{const n=e.useRef(null),{sourcingSession:s}=Hs();return i.jsxs(i.Fragment,{children:[i.jsx(Ci,{trigger:()=>i.jsxs("button",{type:"button",className:"flex items-center gap-x-1 text-primary",children:[i.jsx(vn,{})," ","Download invoice"]}),documentTitle:`Invoice ${s?.biotech_invoice?.reference_id}`,content:()=>n.current,pageStyle:"@media print"}),i.jsxs("div",{ref:n,className:"hidden print:block",children:[i.jsx(Ti,{selectedQuoteId:t}),i.jsx("div",{className:"print:break-before-page",children:i.jsx(Ri,{selectedQuoteId:t})})]})]})},qa=()=>{const t=e.useRef(null),{sourcingSession:n}=Hs();return i.jsxs(i.Fragment,{children:[i.jsx(Ci,{trigger:()=>i.jsxs("button",{type:"button",className:"ml-auto flex items-center gap-x-1",children:[i.jsx(vn,{})," ","Download project details"]}),documentTitle:`${n?.project_title}`,content:()=>t.current,pageStyle:"@media print"}),i.jsx("div",{ref:t,className:"hidden print:block",children:i.jsx(pi,{})})]})};function za({selectedQuoteId:e}){const{sourcingSession:t}=Hs(),n=t?.sourcing_quotes?.find(t=>t?.id===e),a=n?.biotech_invoice?.payment_status,o=n?.vendor_company,r=o?.logo_url,l=Number(n?.final_price??0)*H,c="paid"===a||"processing"===a;return i.jsxs("div",{className:"flex flex-col",children:[i.jsx("div",{className:"font-semibold",children:"You've unlocked a vendor"}),i.jsx("div",{className:"mt-2 text-sm",children:"Thanks for using Cromatic. The vendor's details are now available, and we're here to help you move forward with you project."}),i.jsxs("div",{className:"mt-2 text-sm",children:[i.jsx("span",{className:"font-semibold",children:"Need support or have questions?"})," ",i.jsx(d,{to:s.SourcererChat(t.id),className:"text-primary hover:underline",children:"Start a chat"})," ","with your Cromatic expert."]}),i.jsxs("div",{className:"mt-7 p-10 bg-white border border-hoki-200 rounded-lg",children:[i.jsxs("div",{className:"flex items-center justify-between w-full",children:[i.jsx("div",{className:"text-[20px] font-semibold",children:"Project summary"}),i.jsx(qa,{})]}),i.jsxs("div",{className:"mt-5",children:[i.jsx("div",{children:"Project name:"}),i.jsx("div",{className:"font-semibold",children:t?.project_title})]}),i.jsxs("div",{className:"grid grid-cols-1 divide-y lg:divide-none lg:grid-cols-3 mt-[38px] gap-x-4",children:[i.jsxs("div",{className:"flex flex-col gap-y-[9px] py-4 lg:py-0",children:[i.jsx("div",{children:"Vendor:"}),i.jsxs("div",{className:"font-semibold text-[20px] flex items-center gap-x-2 flex-wrap",children:[i.jsx("div",{className:"w-[30px] h-full",children:r?i.jsx("img",{className:"w-full h-full object-contain",alt:"logo",src:r}):i.jsx(Me,{className:"text-hoki-600 w-full h-full"})}),o?.company_name]})]}),i.jsxs("div",{className:"flex flex-col gap-y-[9px] py-4 lg:py-0",children:[i.jsx("div",{children:"Quote:"}),i.jsx("div",{className:"font-semibold",children:c&&n?.negotiated_price?i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"line-through",children:Tt(n?.price??0)}),i.jsxs("div",{className:"flex gap-x-3 flex-wrap items-center",children:[Tt(n?.negotiated_price??0),i.jsx("div",{className:"text-sm font-normal flex items-center gap-x-[7px] text-malachite-700 bg-malachite-100 rounded-lg py-1 pl-3 pr-4",children:"Special Price"})]})]}):i.jsx("div",{children:Tt(n?.price??0)})})]}),i.jsxs("div",{className:"flex flex-col gap-y-[9px] py-4 lg:py-0",children:[i.jsx("div",{children:"Cromatic Service Fee:"}),i.jsxs("div",{className:"flex items-center gap-x-2 font-semibold",children:[Tt(Number(l)),"paid"===a?i.jsxs("div",{className:"text-sm font-normal flex items-center gap-x-[7px] text-malachite-700 bg-malachite-100 rounded-lg py-1 pl-3 pr-4",children:[i.jsx(Ue,{className:"text-malachite-700"}),"Paid"]}):i.jsx("div",{className:"text-sm font-normal text-sunglow-700 bg-sunglow-100 rounded-lg py-1 pl-3 pr-4",children:"Processing"})]}),n?.id&&i.jsx(Ba,{selectedQuoteId:n?.id})]})]})]})]})}function Ha({selectedQuoteId:t,setSelectedQuoteId:n}){const{toastError:s}=m(),[a,r]=Pi("success"),l=!!a,{sourcingSession:c}=Hs(),d=c?.sourcing_quotes?.find(e=>e?.id===t),p="paid"===d?.biotech_invoice?.payment_status,u="processing"===d?.biotech_invoice?.payment_status,h=e.useRef(null),x=bi.useReactToPrint({content:()=>h.current}),f=Number(d?.final_price??0)*H,g=f>U,[v,y]=e.useState(g?"bankTransfer":"stripe");e.useEffect(()=>{g&&"stripe"===v&&y("bankTransfer")},[f,g,v]);return i.jsxs("div",{className:"flex flex-col px-[35px] py-[15px]",children:[!l&&i.jsx("div",{children:i.jsxs(Ot,{type:"button",onClick:()=>{n(null),r(null)},className:"flex items-center text-primary mb-1 hover:underline px-0",variant:"link",children:[i.jsx(dt,{size:14}),i.jsx("span",{className:"text-sm",children:"Back to quotes"})]})}),p||u?i.jsx(za,{selectedQuoteId:t}):i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"text-base font-semibold mb-2",children:"Thank y
101ou for using our services. Please pay our service fee to unlock the vendor."}),i.jsx("div",{ref:h,children:i.jsx(Ti,{onDownloadInvoice:x,selectedQuoteId:t})}),i.jsxs("div",{className:"mt-6",children:[i.jsx("h3",{className:"typography-smallparagraph font-semibold mb-4",children:"Select your payment method:"}),i.jsxs("div",{className:"mb-4 text-sm text-hoki-600",children:["Please choose one of the following payment methods to continue:",g&&i.jsx("div",{className:"mt-2 text-red-600",children:"Note: Card payments are not available for amounts over $999,999.99. Please use bank transfer instead."})]}),i.jsxs(Da,{type:"single",collapsible:!0,value:v,onValueChange:e=>{g&&"stripe"===e?s(`Card payments are not available for amounts over ${U}. Please use bank transfer instead.`,{duration:5e3}):y(e)},className:"border rounded-md overflow-hidden",children:[i.jsxs(Ra,{value:"stripe",className:o("border-0 border-t bg-white",g?"opacity-50 cursor-not-allowed":""),children:[i.jsx(Ia,{className:o("p-7 py-4 hover:no-underline","stripe"===v?"bg-blue-50":"hover:bg-gray-50",g?"pointer-events-none":""),children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:o("w-5 h-5 rounded-full border-2 flex items-center justify-center","stripe"===v?"border-primary":"border-gray-300"),children:"stripe"===v&&i.jsx("div",{className:"w-3 h-3 rounded-full bg-primary"})}),i.jsx("span",{className:"font-medium",children:"Pay with Card"}),"stripe"===v&&i.jsx("span",{className:"ml-2 text-xs bg-blue-100 text-primary px-2 py-1 rounded",children:"Selected"}),g&&i.jsx("span",{className:"ml-2 text-xs bg-red-100 text-red-600 px-2 py-1 rounded",children:"Not Available"})]})}),i.jsxs(Oa,{className:"p-7",children:[i.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Make a secure payment directly using your credit or debit card."}),i.jsx(zi,{selectedQuoteId:t})]})]}),i.jsxs(Ra,{value:"bankTransfer",className:"border-0 last:border-0 bg-white",children:[i.jsx(Ia,{className:o("p-7 py-4 hover:no-underline","bankTransfer"===v?"bg-blue-50":"hover:bg-gray-50"),children:i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:o("w-5 h-5 rounded-full border-2 flex items-center justify-center","bankTransfer"===v?"border-primary":"border-gray-300"),children:"bankTransfer"===v&&i.jsx("div",{className:"w-3 h-3 rounded-full bg-primary"})}),i.jsx("span",{className:"font-medium",children:"Bank Transfer"}),"bankTransfer"===v&&i.jsx("span",{className:"ml-2 text-xs bg-blue-100 text-primary px-2 py-1 rounded",children:"Selected"})]})}),i.jsxs(Oa,{className:"p-7",children:[i.jsx("p",{className:"text-sm text-gray-600 mb-4",children:"Transfer the payment to our bank account and upload proof of payment."}),i.jsx(Ri,{selectedQuoteId:t}),i.jsx(Bi,{selectedQuoteId:t})]})]})]})]})]}),l&&i.jsx("div",{className:"flex justify-end mt-3",children:i.jsx(Ot,{type:"button",onClick:()=>{n(null),r(null)},className:"h-[42px]",children:"Proceed to quotes"})})]})}const Za=()=>{const[t,n]=e.useState(!1),[s,a]=W(),{qid:o,setQid:r}=Hs(),l=e=>{if(r(e),e)a({...s,qid:e});else{const e=new URLSearchParams(s);e.delete("qid"),a(e)}},{sourcingSession:c}=Hs(),d=c?.quote_collection_limit||3,p=c?.sourcing_quotes?.length||0,u=p>=d;return o?i.jsx(Ha,{selectedQuoteId:o,setSelectedQuoteId:l}):i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"py-[15px]",children:i.jsxs("div",{className:"typography-nav font-semibold text-hoki-800 px-[35px] flex w-full items-center justify-between flex-wrap",children:[i.jsx("div",{className:"flex flex-col gap-y-[3px]",children:i.jsx("div",{children:"Your Curated Vendor Quotes"})}),i.jsxs("div",{className:"text-sm font-normal text-gray-600 flex items-center gap-x-2",children:[i.jsx("span",{children:"Quote Collection:"}),i.jsxs("span",{className:"font-medium "+(u?"text-green-600":"text-amber-600"),children:[p," ","of"," ",d]}),u&&i.jsx("span",{className:"text-xs bg-green-100 text-green-700 px-2 py-1 rounded-full",children:"Quote Collection Completed"})]})]})}),c&&!o&&i.jsx("div",{className:"px-[35px] pb-[22px] flex flex-col overflow-x-auto gap-x-[10px] gap-y-10",children:i.jsx(mi,{sourcingSessionFragment:c})}),i.jsx(xi,{isOpen:t,setIsOpen:n})]})},Ua=a("\n  mutation MarkSourcingSessionNotificationsAsRead ($input: Mar
101kSourcingSessionNotificationsAsReadInput!) {\n    markSourcingSessionNotificationsAsRead(input: $input) {\n      id\n      message\n      notification_type\n      read_at\n      params\n      recipient_id\n      sender_id\n      created_at\n      url\n    }\n  }\n"),Qa=()=>{const{currentStep:e,loadingQuery:n}=Hs(),{sessionId:s}=x(),[a]=(()=>{const[e,n]=h(Ua);return[t.useCallback(t=>e({variables:{input:t}}),[e]),n]})();return t.useEffect(()=>{s&&a({sourcing_session_id:s})},[a,s]),n||null===e?i.jsx($,{hasNavbar:!0}):i.jsxs("div",{children:[0===e&&i.jsx(pi,{}),1===e&&i.jsx(Gs,{}),2===e&&i.jsx(Za,{})]})};var Wa,$a,Ya,Ka,Ga,Xa,Ja,eo;var to=function(){if(eo)return Ja;eo=1;let e=function(){if($a)return Wa;function e(){this._types=Object.create(null),this._extensions=Object.create(null);for(let e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}return $a=1,e.prototype.define=function(e,t){for(let n in e){let s=e[n].map(function(e){return e.toLowerCase()});n=n.toLowerCase();for(let e=0;e<s.length;e++){const i=s[e];if("*"!==i[0]){if(!t&&i in this._types)throw new Error('Attempt to change mapping for "'+i+'" extension from "'+this._types[i]+'" to "'+n+'". Pass `force=true` to allow this, otherwise remove "'+i+'" from the list of extensions for "'+n+'".');this._types[i]=n}}if(t||!this._extensions[n]){const e=s[0];this._extensions[n]="*"!==e[0]?e:e.substr(1)}}},e.prototype.getType=function(e){let t=(e=String(e)).replace(/^.*[/\\]/,"").toLowerCase(),n=t.replace(/^.*\./,"").toLowerCase(),s=t.length<e.length;return(n.length<t.length-1||!s)&&this._types[n]||null},e.prototype.getExtension=function(e){return(e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1)&&this._extensions[e.toLowerCase()]||null},Wa=e}();return Ja=new e(Ka?Ya:(Ka=1,Ya={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["w
101off"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}),Xa?Ga:(Xa=1,Ga
vendor: 14,447 bytes, line 101
101={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smz
vendor: 11,430 bytes, line 101
101ip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}
101))}();const no=M(to);a("\n  query SourcingSession_Query2($id: String!) {\n    sourcingSession(id: $id) {\n      id\n      project_title\n      project_desc\n      preparation_details\n      vendor_requirement\n      clinical_stage\n      task_id\n      expected_timeline\n      expected_budget\n      skipped_steps\n      agent_messages {\n        id\n        role\n        content\n        response_id\n      }\n      sourcing_subspecialties {\n        id\n        name\n      }\n      sourcing_attachments {\n        id\n        key\n        filename\n        signed_url\n        byte_size\n        formatted_filesize\n      }\n      sourced_cros {\n        id\n        name\n        score\n        is_shortlisted\n        vendor_company_id\n        vendor_company {\n          id\n          company_name\n          company_description\n          company_ipo_status\n          company_revenue\n          company_size\n          website_url\n          linkedin_url\n          crunchbase_url\n          product\n          logo_url\n          is_active\n          is_cromatic_vendor\n          vendor_company_subspecialties {\n            subspecialty {\n              name\n            }\n          }\n          vendor_company_locations {\n            country\n          }\n          vendor_company_types {\n            company_type\n          }\n          vendor_company_certifications {\n            certification_name\n          }\n        }\n      }\n\n      ...ProposalQcStep_SourcingSession\n    }\n  }\n"),a("\n  subscription SourceCros_Subscription($task_id: String!) {\n    sourceCros(task_id: $task_id) {\n      task_id\n      status\n      data {\n        id\n        sourced_cros {\n          id\n          name\n          score\n          is_shortlisted\n          vendor_company_id\n          vendor_company {\n            id\n            company_name\n            company_description\n            company_ipo_status\n            company_revenue\n            company_size\n            website_url\n            linkedin_url\n            crunchbase_url\n            product\n            logo_url\n            is_active\n            is_cromatic_vendor\n            vendor_company_subspecialties {\n              subspecialty {\n                name\n              }\n            }\n            vendor_company_locations {\n              country\n            }\n            vendor_company_types {\n              company_type\n            }\n            vendor_company_certifications {\n              certification_name\n            }\n          }\n        }\n      }\n    }\n  }\n"),a("\n  subscription AgenticSourcerer_SourceRfpSpecialties_Subscription($sourcing_session_id: String!) {\n    watchRfpSpecialtiesBySession(sourcing_session_id: $sourcing_session_id) {\n      sourcing_session_id\n      data {\n        id\n        project_title\n        project_desc\n        preparation_details\n        vendor_requirement\n        clinical_stage\n        sourcing_subspecialties {\n          id\n          name\n        }\n      }\n      status\n    }\n  }\n");t.createContext(null),Y.UploadRfp,Y.ProjectDetails;const so=a("\n  query CheckSourcingTask($taskId: String!) {\n    checkSourcingTask(task_id: $taskId) {\n      status\n      data {\n        id\n        sourcing_subspecialties {\n          id\n          name\n        }\n        sourced_cros {\n          id\n          name\n          score\n          is_shortlisted\n          vendor_company_id\n          vendor_company {\n            id\n            company_name\n            company_description\n            company_ipo_status\n            company_revenue\n            company_size\n            website_url\n            linkedin_url\n            crunchbase_url\n            product\n            logo_url\n            is_active\n            is_cromatic_vendor\n            vendor_company_subspecialties {\n              subspecialty {\n                name\n              }\n            }\n            vendor_company_locations {\n              country\n            }\n            vendor_company_types {\n              company_type\n            }\n            vendor_company_certifications {\n              certification_name\n            }\n          }\n        }\n      }\n    }\n  }\n");const io=e.createContext({});function ao(t){const n=e.useRef(null);return null===n.current&&(n.current=t()),n.current}const oo="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,ro=e.createContext(null);function lo(e,t){-1===e.indexOf(t)&&e.push(t)}function co(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const po=(e,t,n)=>n>t?t:n<e?e:n;const uo={},mo=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function ho(e){return"object"==typeof e&&null!==e}const xo=e=>/^0[^.\s]+$/u.test(e);function fo(e){let t;return()=>(void 0===t&&(t=e()),t)}const go=e=>e,vo=(e,t)=>n=>t(e(n)),yo=(...e)=>e.reduce(vo),bo=(e,t,n)=>{const s=t-e;return 0===s?1:(n-e)/s};class Co{constructor(){this.subscriptions=[]}add(e){return lo(this.subscriptions,e),()=>co(this.subscriptions,e)}
101notify(e,t,n){const s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](e,t,n);else for(let i=0;i<s;i++){const s=this.subscriptions[i];s&&s(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const jo=e=>1e3*e,wo=e=>e/1e3;function _o(e,t){return t?e*(1e3/t):0}const So=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function No(e,t,n,s){if(e===t&&n===s)return go;const i=t=>function(e,t,n,s,i){let a,o,r=0;do{o=t+(n-t)/2,a=So(o,s,i)-e,a>0?n=o:t=o}while(Math.abs(a)>1e-7&&++r<12);return o}(t,0,1,e,n);return e=>0===e||1===e?e:So(i(e),t,s)}const ko=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Eo=e=>t=>1-e(1-t),Po=No(.33,1.53,.69,.99),Mo=Eo(Po),To=ko(Mo),Ao=e=>e>=1?1:(e*=2)<1?.5*Mo(e):.5*(2-Math.pow(2,-10*(e-1))),Vo=e=>1-Math.sin(Math.acos(e)),Lo=Eo(Vo),Fo=ko(Vo),Do=No(.42,0,1,1),Ro=No(0,0,.58,1),Io=No(.42,0,.58,1),Oo=e=>Array.isArray(e)&&"number"==typeof e[0],Bo={linear:go,easeIn:Do,easeInOut:Io,easeOut:Ro,circIn:Vo,circInOut:Fo,circOut:Lo,backIn:Mo,backInOut:To,backOut:Po,anticipate:Ao},qo=e=>{if(Oo(e)){e.length;const[t,n,s,i]=e;return No(t,n,s,i)}return"string"==typeof e?Bo[e]:e},zo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ho(e,t){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=zo.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,s=!1,i=!1;const a=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function r(t){a.has(t)&&(l.schedule(t),e()),t(o)}const l={schedule:(e,i=!1,o=!1)=>{const r=o&&s?t:n;return i&&a.add(e),r.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,s)return void(i=!0);s=!0;const a=t;t=n,n=a,t.forEach(r),t.clear(),s=!1,i&&(i=!1,l.process(e))}};return l}(a),e),{}),{setup:r,read:l,resolveKeyframes:c,preUpdate:d,update:p,preRender:u,render:m,postRender:h}=o,x=()=>{const a=uo.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=s?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,r.process(i),l.process(i),c.process(i),d.process(i),p.process(i),u.process(i),m.process(i),h.process(i),i.isProcessing=!1,n&&t&&(s=!1,e(x))};return{schedule:zo.reduce((t,a)=>{const r=o[a];return t[a]=(t,a=!1,o=!1)=>(n||(n=!0,s=!0,i.isProcessing||e(x)),r.schedule(t,a,o)),t},{}),cancel:e=>{for(let t=0;t<zo.length;t++)o[zo[t]].cancel(e)},state:i,steps:o}}const{schedule:Zo,cancel:Uo,state:Qo,steps:Wo}=Ho("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:go,!0);let $o;function Yo(){$o=void 0}const Ko={now:()=>(void 0===$o&&Ko.set(Qo.isProcessing||uo.useManualTiming?Qo.timestamp:performance.now()),$o),set:e=>{$o=e,queueMicrotask(Yo)}},Go=e=>t=>"string"==typeof t&&t.startsWith(e),Xo=Go("--"),Jo=Go("var(--"),er=e=>!!Jo(e)&&tr.test(e.split("/*")[0].trim()),tr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function nr(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}const sr={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ir={...sr,transform:e=>po(0,1,e)},ar={...sr,default:1},or=e=>Math.round(1e5*e)/1e5,rr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const lr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cr=(e,t)=>
vendor: 4,436 bytes, line 101
101n=>Boolean("string"==typeof n&&lr.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),dr=(e,t,n)=>s=>{if("string"!=typeof s)return s;const[i,a,o,r]=s.match(rr);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:void 0!==r?parseFloat(r):1}},pr={...sr,transform:e=>Math.round((e=>po(0,255,e))(e))},ur={test:cr("rgb","red"),parse:dr("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+pr.transform(e)+", "+pr.transform(t)+", "+pr.transform(n)+", "+or(ir.transform(s))+")"};const mr={test:cr("#"),parse:function(e){let t="",n="",s="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,s+=s,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}},transform:ur.transform},hr=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),xr=hr("deg"),fr=hr("%"),gr=hr("px"),vr=hr("vh"),yr=hr("vw"),br=(()=>({...fr,parse:e=>fr.parse(e)/100,transform:e=>fr.transform(100*e)}))(),Cr={test:cr("hsl","hue"),parse:dr("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+fr.transform(or(t))+", "+fr.transform(or(n))+", "+or(ir.transform(s))+")"},jr={test:e=>ur.test(e)||mr.test(e)||Cr.test(e),parse:e=>ur.test(e)?ur.parse(e):Cr.test(e)?Cr.parse(e):mr.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?ur.transform(e):Cr.transform(e),getAnimatableNone:e=>{const t=jr.parse(e);return t.alpha=0,jr.transform(t)}},wr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const _r="number",Sr="color",Nr=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function kr(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(Nr,e=>(jr.test(e)?(s.color.push(a),i.push(Sr),n.push(jr.parse(e))):e.startsWith("var(")?(s.var.push(a),i.push("var"),n.push(e)):(s.number.push(a),i.push(_r),n.push(parseFloat(e))),++a,"${}")).split("${}");return{values:n,split:o,indexes:s,types:i}}function Er({split:e,types:t}){const n=e.length;return s=>{let i="";for(let a=0;a<n;a++)if(i+=e[a],void 0!==s[a]){const e=t[a];i+=e===_r?or(s[a]):e===Sr?jr.transform(s[a]):s[a]}return i}}const Pr=(e,t)=>{return"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof(n=e)?0:jr.test(n)?jr.getAnimatableNone(n):n;var n};const Mr={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(rr)?.length||0)+(e.match(wr)?.length||0)>0},parse:function(e){return kr(e).values},createTransformer:function(e){return Er(kr(e))},getAnimatableNone:function(e){const t=kr(e);return Er(t)(t.values.map((e,n)=>Pr(e,t.split[n])))}};function Tr(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ar(e,t){return n=>n>0?t:e}const Vr=(e,t,n)=>e+(t-e)*n,Lr=(e,t,n)=>{const s=e*e,i=n*(t*t-s)+s;return i<0?0:Math.sqrt(i)},Fr=[mr,ur,Cr];function Dr(e){const t=(n=e,Fr.find(e=>e.test(n)));var n;if(!Boolean(t))return!1;let s=t.parse(e);return t===Cr&&(s=function({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,n/=100;let i=0,a=0,o=0;if(t/=100){const s=n<.5?n*(1+t):n+t-n*t,r=2*n-s;i=Tr(r,s,e+1/3),a=Tr(r,s,e),o=Tr(r,s,e-1/3)}else i=a=o=n;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*o),alpha:s}}(s)),s}const Rr=(e,t)=>{const n=Dr(e),s=Dr(t);if(!n||!s)return Ar(e,t);const i={...n};return e=>(i.red=Lr(n.red,s.red,e),i.green=Lr(n.green,s.green,e),i.blue=Lr(n.blue,s.blue,e),i.alpha=Vr(n.alpha,s.alpha,e),ur.transform(i))},Ir=new Set(["none","hidden"]);function Or(e,t){return n=>Vr(e,t,n)}function Br(e){return"number"==typeof e?Or:"string"==typeof e?er(e)?Ar:jr.test(e)?Rr:Hr:Array.isArray(e)?qr:"object"==typeof e?jr.test(e)?Rr:zr:Ar}function qr(e,t){const n=[...e],s=n.length,i=e.map((e,n)=>Br(e)(e,t[n]));return e=>{for(let t=0;t<s;t++)n[t]=i[t](e);return n}}function zr(e,t){const n={...e,...t},s={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(s[i]=Br(e[i])(e[i],t[i]));return e=>{for(const t in s)n[t]=s[t](e);return n}}const Hr=(e,t)=>
101{const n=Mr.createTransformer(t),s=kr(e),i=kr(t);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Ir.has(e)&&!i.values.length||Ir.has(t)&&!s.values.length?function(e,t){return Ir.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):yo(qr(function(e,t){const n=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],o=e.indexes[a][s[a]],r=e.values[o]??0;n[i]=r,s[a]++}return n}(s,i),i.values),n):Ar(e,t)};function Zr(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return Vr(e,t,n);return Br(e)(e,t)}const Ur=e=>{const t=({timestamp:t})=>e(t);return{start:(e=!0)=>Zo.update(t,e),stop:()=>Uo(t),now:()=>Qo.isProcessing?Qo.timestamp:Ko.now()}},Qr=(e,t,n=10)=>{let s="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)s+=Math.round(1e4*e(a/(i-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Wr=2e4;function $r(e){let t=0;let n=e.next(t);for(;!n.done&&t<Wr;)t+=50,n=e.next(t);return t>=Wr?1/0:t}const Yr=100,Kr=10,Gr=1,Xr=0,Jr=800,el=.3,tl=.3,nl={granular:.01,default:2},sl={granular:.005,default:.5},il=.01,al=10,ol=.05,rl=1;function ll(e,t){return e*Math.sqrt(1-t*t)}const cl=.001;const dl=["duration","bounce"],pl=["stiffness","damping","mass"];function ul(e,t){return t.some(t=>void 0!==e[t])}function ml(e){let t={velocity:Xr,stiffness:Yr,damping:Kr,mass:Gr,isResolvedFromDuration:!1,...e};if(!ul(e,pl)&&ul(e,dl))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(1.2*n),i=s*s,a=2*po(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Gr,stiffness:i,damping:a}}else{const n=function({duration:e=Jr,bounce:t=el,velocity:n=Xr,mass:s=Gr}){let i,a,o=1-t;o=po(ol,rl,o),e=po(il,al,wo(e)),o<1?(i=t=>{const s=t*o,i=s*e,a=s-n,r=ll(t,o),l=Math.exp(-i);return cl-a/r*l},a=t=>{const s=t*o*e,a=s*n+n,r=Math.pow(o,2)*Math.pow(t,2)*e,l=Math.exp(-s),c=ll(Math.pow(t,2),o);return(-i(t)+cl>0?-1:1)*((a-r)*l)/c}):(i=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,a=t=>Math.exp(-t*e)*(e*e*(n-t)));const r=function(e,t,n){let s=n;for(let i=1;i<12;i++)s-=e(s)/t(s);return s}(i,a,5/e);if(e=jo(e),isNaN(r))return{stiffness:Yr,damping:Kr,duration:e};{const t=Math.pow(r,2)*s;return{stiffness:t,damping:2*o*Math.sqrt(s*t),duration:e}}}({...e,velocity:0});t={...t,...n,mass:Gr},t.isResolvedFromDuration=!0}return t}function hl(e=tl,t=el){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],r={done:!1,value:a},{stiffness:l,damping:c,mass:d,duration:p,velocity:u,isResolvedFromDuration:m}=ml({...n,velocity:-wo(n.velocity||0)}),h=u||0,x=c/(2*Math.sqrt(l*d)),f=o-a,g=wo(Math.sqrt(l/d)),v=Math.abs(f)<5;let y,b,C,j,w,_;if(s||(s=v?nl.granular:nl.default),i||(i=v?sl.granular:sl.default),x<1)C=ll(g,x),j=(h+x*g*f)/C,y=e=>{const t=Math.exp(-x*g*e);return o-t*(j*Math.sin(C*e)+f*Math.cos(C*e))},w=x*g*j+f*C,_=x*g*f-j*C,b=e=>Math.exp(-x*g*e)*(w*Math.sin(C*e)+_*Math.cos(C*e));else if(1===x){y=e=>o-Math.exp(-g*e)*(f+(h+g*f)*e);const e=h+g*f;b=t=>Math.exp(-g*t)*(g*e*t-h)}else{const e=g*Math.sqrt(x*x-1);y=t=>{const n=Math.exp(-x*g*t),s=Math.min(e*t,300);return o-n*((h+x*g*f)*Math.sinh(s)+e*f*Math.cosh(s))/e};const t=(h+x*g*f)/e,n=x*g*t-f*e,s=x*g*f-t*e;b=t=>{const i=Math.exp(-x*g*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+s*Math.cosh(a))}}const S={calculatedDuration:m&&p||null,velocity:e=>jo(b(e)),next:e=>{if(!m&&x<1){const t=Math.exp(-x*g*e),n=Math.sin(C*e),a=Math.cos(C*e),l=o-t*(j*n+f*a),c=jo(t*(w*n+_*a));return r.done=Math.abs(c)<=s&&Math.abs(o-l)<=i,r.value=r.done?o:l,r}const t=y(e);if(m)r.done=e>=p;else{const n=jo(b(e));r.done=Math.abs(n)<=s&&Math.abs(o-t)<=i}return r.value=r.done?o:t,r},toString:()=>{const e=Math.min($r(S),Wr),t=Qr(t=>S.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return S}hl.applyToOptions=e=>{const t=function(e,t=100,n){const s=n({...e,keyframes:[0,t]}),i=Math.min($r(s),Wr);return{type:"keyframes",ease:e=>s.next(i*e).value/t,duration:wo(i)}}(e,100,hl);return e.ease=t.ease,e.duration=jo(t.duration),e.type="keyframes",e};function xl(e,t,n){const s=Math.max(t-5,0);return _o(n-e(s),t-s)}function fl({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:a=
vendor: 10,719 bytes, line 101
101500,modifyTarget:o,min:r,max:l,restDelta:c=.5,restSpeed:d}){const p=e[0],u={done:!1,value:p},m=e=>void 0===r?l:void 0===l||Math.abs(r-e)<Math.abs(l-e)?r:l;let h=n*t;const x=p+h,f=void 0===o?x:o(x);f!==x&&(h=f-p);const g=e=>-h*Math.exp(-e/s),v=e=>f+g(e),y=e=>{const t=g(e),n=v(e);u.done=Math.abs(t)<=c,u.value=u.done?f:n};let b,C;const j=e=>{var t;(t=u.value,void 0!==r&&t<r||void 0!==l&&t>l)&&(b=e,C=hl({keyframes:[u.value,m(u.value)],velocity:xl(v,e,u.value),damping:i,stiffness:a,restDelta:c,restSpeed:d}))};return j(0),{calculatedDuration:null,next:e=>{let t=!1;return C||void 0!==b||(t=!0,y(e),j(e)),void 0!==b&&e>=b?C.next(e-b):(!t&&y(e),u)}}}function gl(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const a=e.length;if(t.length,1===a)return()=>t[0];if(2===a&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const r=function(e,t,n){const s=[],i=n||uo.mix||Zr,a=e.length-1;for(let o=0;o<a;o++){let n=i(e[o],e[o+1]);if(t){const e=Array.isArray(t)?t[o]||go:t;n=yo(e,n)}s.push(n)}return s}(t,s,i),l=r.length,c=n=>{if(o&&n<e[0])return t[0];let s=0;if(l>1)for(;s<e.length-2&&!(n<e[s+1]);s++);const i=bo(e[s],e[s+1],n);return r[s](i)};return n?t=>c(po(e[0],e[a-1],t)):c}function vl(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const i=bo(0,t,s);e.push(Vr(n,1,i))}}(t,e.length-1),t}function yl({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const i=(e=>Array.isArray(e)&&"number"!=typeof e[0])(s)?s.map(qo):qo(s),a={done:!1,value:t[0]},o=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:vl(t),e),r=gl(o,t,{ease:Array.isArray(i)?i:(l=t,c=i,l.map(()=>c||Io).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(a.value=r(t),a.done=t>=e,a)}}const bl=e=>null!==e;function Cl(e,{repeat:t,repeatType:n="loop"},s,i=1){const a=e.filter(bl),o=i<0||t&&"loop"!==n&&t%2==1?0:a.length-1;return o&&void 0!==s?s:a[o]}const jl={decay:fl,inertia:fl,tween:yl,keyframes:yl,spring:hl};function wl(e){"string"==typeof e.type&&(e.type=jl[e.type])}class _l{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const Sl=e=>e/100;class Nl extends _l{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:e}=this.options;e&&e.updatedAt!==Ko.now()&&this.tick(Ko.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){const{options:e}=this;wl(e);const{type:t=yl,repeat:n=0,repeatDelay:s=0,repeatType:i,velocity:a=0}=e;let{keyframes:o}=e;const r=t||yl;r!==yl&&"number"!=typeof o[0]&&(this.mixKeyframes=yo(Sl,Zr(o[0],o[1])),o=[0,100]);const l=r({...e,keyframes:o});"mirror"===i&&(this.mirroredGenerator=r({...e,keyframes:[...o].reverse(),velocity:-a})),null===l.calculatedDuration&&(l.calculatedDuration=$r(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+s,this.totalDuration=this.resolvedDuration*(n+1)-s,this.generator=l}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:n,totalDuration:s,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:r}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:u,type:m,onUpdate:h,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-s/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const f=this.currentTime-l*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?f<0:f>s;this.currentTime=Math.max(f,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let v,y=this.currentTime,b=n;if(d){const e=Math.min(this.currentTime,s)/o;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,d+1);Boolean(t%2)&&("reverse"===p?(n=1-n,u&&(n-=u/o)):"mirror"===p&&(b=a)),y=po(0,1,n)*o}g?(this.delayState.value=c[0],v=this.delayState):v=b.next(y),i&&!g&&(v.value=i(v.value));let{done:C}=v;g||null===r||(C=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const j=null===this.holdTime&&("finished"===this.state||"running"===this.state&&C);return j&&m!==fl&&(v.value=Cl(c,this.options,x,this.speed)),h&&h(v.value),j&&this.finish(),v}then(e,t){return this.finished.then(e,t)}get duration(){return wo(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+wo(e)}get time(){return wo(this.currentTime)}set time(e){e=jo(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);return xl(e=>this.generator.next(e).value,e,this.generator.next(e).value)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(Ko.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=wo(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Ur,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();const n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ko.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}const kl=e=>180*e/Math.PI,El=e=>{const t=kl(Math.atan2(e[1],e[0]));return Ml(t)},Pl={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:El,rotateZ:El,skewX:e=>kl(Math.atan(e[1])),skewY:e=>kl(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ml=e=>((e%=360)<0&&(e+=360),e),Tl=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Al=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Vl={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Tl,scaleY:Al,scale:e=>(Tl(e)+Al(e))/2,rotateX:e=>Ml(kl(Math.atan2(e[6],e[5]))),rotateY:e=>Ml(kl(Math.atan2(-e[2],e[0]))),rotateZ:El,rotate:El,skewX:e=>kl(Math.atan(e[4])),skewY:e=>kl(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ll(e){return e.includes("scale")?1:0}function Fl(e,t){if(!e||"none"===e)return Ll(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Vl,i=n;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Pl,i=t}if(!i)return Ll(t);const a=s[t],o=i[1].split(",").map(Dl);return"function"==typeof a?a(o):o[a]}function Dl(e){return parseFloat(e.trim())}const Rl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Il=(()=>new Set(Rl))(),Ol=e=>e===sr||e===gr,Bl=new Set(["x","y","z"]),ql=Rl.filter(e=>!Bl.has(e));const zl={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:s})=>{const i=e.max-e.min;return"border-box"===s?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:s})=>{const i=e.max-e.min;return"border-box"===s?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Fl(t,"x"),y:(e,{transform:t})=>Fl(t,"y")};zl.translateX=zl.x,zl.translateY=zl.y;const Hl=new Set;let Zl=!1,Ul=!1,Ql=!1;function Wl(){if(Ul){const e=Array.from(Hl).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{const t=function(e){const t=[];return ql.forEach(n=>{const s=e.getValue(n);void 0!==s&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}Ul=!1,Zl=!1,Hl.forEach(e=>e.complete(Ql)),Hl.clear()}function $l(){Hl.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ul=!0)})}class Yl{constructor(e,t,n,s,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=s,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Hl.add(this),Zl||(Zl=!0,Zo.read($l),Zo.resolveKeyframes(Wl))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:s}=this;if(null===e[0]){const i=s?.get(),a=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){const s=n.readValue(t,a);null!=s&&(e[0]=s)}void 0===e[0]&&(e[0]=a),s&&void 0===i&&s.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Hl.delete(this)}cancel(){"scheduled"===this.state&&(Hl.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}function Kl(e,t,n){(e=>e.startsWith("--"))(t)?e.style.setProperty(t,n):e.style[t]=n}const Gl={};function Xl(e,t){const n=fo(e);return()=>Gl[t]??n()}const Jl=Xl(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),ec=Xl(()=>{try{document.createElement("div").animate({opacity:0}
101,{easing:"linear(0, 1)"})}catch(vi){return!1}return!0},"linearEasing"),tc=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,nc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tc([0,.65,.55,1]),circOut:tc([.55,0,1,.45]),backIn:tc([.31,.01,.66,-.59]),backOut:tc([.33,1.53,.69,.99])};function sc(e,t){return e?"function"==typeof e?ec()?Qr(e,t):"ease-out":Oo(e)?tc(e):Array.isArray(e)?e.map(e=>sc(e,t)||nc.easeOut):nc[e]:void 0}function ic(e,t,n,{delay:s=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:r="easeOut",times:l}={},c=void 0){const d={[t]:n};l&&(d.offset=l);const p=sc(r,i);Array.isArray(p)&&(d.easing=p);const u={delay:s,duration:i,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:a+1,direction:"reverse"===o?"alternate":"normal"};c&&(u.pseudoElement=c);return e.animate(d,u)}function ac(e){return"function"==typeof e&&"applyToOptions"in e}class oc extends _l{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:s,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:r}=e;this.isPseudoElement=Boolean(i),this.allowFlatten=a,this.options=e,e.type;const l=function({type:e,...t}){return ac(e)&&ec()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=ic(t,n,s,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const e=Cl(s,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Kl(t,n,e),this.animation.cancel()}r?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(vi){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return wo(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+wo(e)}get time(){return wo(Number(this.animation.currentTime)||0)}set time(e){const t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=jo(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Jl()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),go):s(this)}}const rc={anticipate:Ao,backInOut:To,circInOut:Fo};function lc(e){"string"==typeof e.ease&&e.ease in rc&&(e.ease=rc[e.ease])}class cc extends oc{constructor(e){lc(e),wl(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:n,onComplete:s,element:i,...a}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);const o=new Nl({...a,autoplay:!1}),r=Math.max(10,Ko.now()-this.startTime),l=po(0,10,r-10),c=o.sample(r).value,{name:d}=this.options;i&&d&&Kl(i,d,c),t.setWithVelocity(o.sample(Math.max(0,r-l)).value,c,l),o.stop()}}const dc=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!Mr.test(e)&&"0"!==e||e.startsWith("url(")));function pc(e){e.duration=0,e.type="keyframes"}const uc=new Set(["opacity","clipPath","filter","transform"]),mc=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;const hc=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),xc=fo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function fc(e){const{motionValue:t,name:n,repeatDelay:s,repeatType:i,damping:a,type:o,keyframes:r}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return xc()&&n&&(uc.has(n)||hc.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&mc.test(e[t]))return!0;return!1}(r))&&("transform"!==n||!d)&&!c&&!s&&"mirror"!==i&&0!==a&&"inertia"!==o}class gc extends _l{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:a="loop",keyframes:o,name:r,motionValue:l,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ko.now();const p={autoplay:e,delay:t,type:n,repeat:s,repeatDelay:i,repeatType:a,name:r,motionValue:l,element:c,...d},u=c?.KeyframeResolver||Yl;this.keyframeResolver=new u(o,(e,t,n)=>this.onKeyframesResolved(e,t,p,!n),r,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,s){this.keyframeResolver=void 0;const{name:i,type:a,velocity:o,delay:r,isHandoff:l,onUpdate:c}=n;this.resolvedAt=Ko.now();let d=!0;(function(e,t,n,s){const i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;const a=e[e.length-1],o=dc(i,t),r=dc(a,t);return!(!o||!r)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||ac(n))&&s)})(e,i,a,o)||(d=!1,!uo.instantAnimations&&r||c?.(Cl(e,n,t)),e[0]=e[e.length-1],pc(n),n.repeat=0);const p={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},u=d&&!l&&fc(p),m=p.motionValue?.owner?.current;let h;if(u)try{h=new cc({...p,element:m})}catch{h=new Nl(p)}else h=new Nl(p);h.finished.then(()=>{this.notifyFinished()}).catch(go),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Ql=!0,$l(),Wl(),Ql=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function vc(e,t,n,s=0,i=1){const a=Array.from(e).sort((e,t)=>
101e.sortNodePosition(t)).indexOf(t),o=e.size,r=(o-1)*s;return"function"==typeof n?n(a,o):1===i?a*s:r-a*s}const yc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function bc(e,t,n=1){const[s,i]=function(e){const t=yc.exec(e);if(!t)return[,];const[,n,s,i]=t;return[`--${n??s}`,i]}(e);if(!s)return;const a=window.getComputedStyle(t).getPropertyValue(s);if(a){const e=a.trim();return mo(e)?parseFloat(e):e}return er(i)?bc(i,t,n+1):i}const Cc={type:"spring",stiffness:500,damping:25,restSpeed:10},jc={type:"keyframes",duration:.8},wc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_c=(e,{keyframes:t})=>t.length>2?jc:Il.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Cc:wc;function Sc(e,t){if(e?.inherit&&t){const{inherit:n,...s}=e;return{...t,...s}}return e}function Nc(e,t){const n=e?.[t]??e?.default??e;return n!==e?Sc(n,e):n}const kc=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);const Ec=(e,t,n,s={},i,a)=>o=>{const r=Nc(s,e)||{},l=r.delay||s.delay||0;let{elapsed:c=0}=s;c-=jo(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...r,delay:-c,onUpdate:e=>{t.set(e),r.onUpdate&&r.onUpdate(e)},onComplete:()=>{o(),r.onComplete&&r.onComplete()},name:e,motionValue:t,element:a?void 0:i};(function(e){for(const t in e)if(!kc.has(t))return!0;return!1})(r)||Object.assign(d,_c(e,d)),d.duration&&(d.duration=jo(d.duration)),d.repeatDelay&&(d.repeatDelay=jo(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let p=!1;if((!1===d.type||0===d.duration&&!d.repeatDelay)&&(pc(d),0===d.delay&&(p=!0)),(uo.instantAnimations||uo.skipAnimations||i?.shouldSkipAnimations)&&(p=!0,pc(d),d.delay=0),d.allowFlatten=!r.type&&!r.ease,p&&!a&&void 0!==t.get()){const e=Cl(d.keyframes,r);if(void 0!==e)return void Zo.update(()=>{d.onUpdate(e),d.onComplete()})}return r.isSync?new Nl(d):new gc(d)};function Pc(e){const t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Mc(e,t,n,s){if("function"==typeof t){const[i,a]=Pc(s);t=t(void 0!==n?n:e.custom,i,a)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[i,a]=Pc(s);t=t(void 0!==n?n:e.custom,i,a)}return t}function Tc(e,t,n){const s=e.getProps();return Mc(s,t,void 0!==n?n:s.custom,e)}const Ac=new Set(["width","height","top","left","right","bottom",...Rl]);class Vc{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{const t=Ko.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const n of this.dependents)n.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=Ko.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Co);const n=this.events[e].add(t);return"change"===e?()=>{n(),Zo.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Ko.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return _o(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Lc(e,t){return new Vc(e,t)}const Fc=e=>Array.isArray(e);function Dc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Lc(n))}function Rc(e){return Fc(e)?e[e.length-1]||0:e}const Ic=e=>Boolean(e&&e.getVelocity);function Oc(e,t){const n=e.getValue("willChange");if(s=n,Boolean(Ic(s)&&s.add))return n.add(t);if(!n&&uo.WillChange){const n=new uo.WillChange("auto");e.addValue("willChange",n),n.add(t)}var s}function Bc(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const qc="data-"+Bc("framerAppearId");function zc(e){return e.props[qc]}function Hc({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,s}
101function Zc(e,t,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:a,transitionEnd:o,...r}=t;const l=e.getDefaultTransition();a=a?Sc(a,l):l;const c=a?.reduceMotion;s&&(a=s);const d=[],p=i&&e.animationState&&e.animationState.getState()[i];for(const u in r){const t=e.getValue(u,e.latestValues[u]??null),s=r[u];if(void 0===s||p&&Hc(p,u))continue;const i={delay:n,...Nc(a||{},u)},o=t.get();if(void 0!==o&&!t.isAnimating()&&!Array.isArray(s)&&s===o&&!i.velocity){Zo.update(()=>t.set(s));continue}let l=!1;if(window.MotionHandoffAnimation){const t=zc(e);if(t){const e=window.MotionHandoffAnimation(t,u,Zo);null!==e&&(i.startTime=e,l=!0)}}Oc(e,u);const m=c??e.shouldReduceMotion;t.start(Ec(u,t,s,m&&Ac.has(u)?{type:!1}:i,e,l));const h=t.animation;h&&d.push(h)}if(o){const t=()=>Zo.update(()=>{o&&function(e,t){const n=Tc(e,t);let{transitionEnd:s={},transition:i={},...a}=n||{};a={...a,...s};for(const o in a)Dc(e,o,Rc(a[o]))}(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Uc(e,t,n={}){const s=Tc(e,t,"exit"===n.type?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const a=s?()=>Promise.all(Zc(e,s,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(s=0)=>{const{delayChildren:a=0,staggerChildren:o,staggerDirection:r}=i;return function(e,t,n=0,s=0,i=0,a=1,o){const r=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),r.push(Uc(l,t,{...o,delay:n+("function"==typeof s?0:s)+vc(e.variantChildren,l,s,i,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(r)}(e,t,s,a,o,r,n)}:()=>Promise.resolve(),{when:r}=i;if(r){const[e,t]="beforeChildren"===r?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}const Qc=e=>t=>t.test(e),Wc=[sr,gr,fr,xr,yr,vr,{test:e=>"auto"===e,parse:e=>e}],$c=e=>Wc.find(Qc(e));function Yc(e){return"number"==typeof e?0===e:null===e||("none"===e||"0"===e||xo(e))}const Kc=new Set(["brightness","contrast","saturate","opacity"]);function Gc(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[s]=n.match(rr)||[];if(!s)return e;const i=n.replace(s,"");let a=Kc.has(t)?1:0;return s!==n&&(a*=100),t+"("+a+i+")"}const Xc=/\b([a-z-]*)\(.*?\)/gu,Jc={...Mr,getAnimatableNone:e=>{const t=e.match(Xc);return t?t.map(Gc).join(" "):e}},ed={...Mr,getAnimatableNone:e=>{const t=Mr.parse(e);return Mr.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},td={...sr,transform:Math.round},nd={borderWidth:gr,borderTopWidth:gr,borderRightWidth:gr,borderBottomWidth:gr,borderLeftWidth:gr,borderRadius:gr,borderTopLeftRadius:gr,borderTopRightRadius:gr,borderBottomRightRadius:gr,borderBottomLeftRadius:gr,width:gr,maxWidth:gr,height:gr,maxHeight:gr,top:gr,right:gr,bottom:gr,left:gr,inset:gr,insetBlock:gr,insetBlockStart:gr,insetBlockEnd:gr,insetInline:gr,insetInlineStart:gr,insetInlineEnd:gr,padding:gr,paddingTop:gr,paddingRight:gr,paddingBottom:gr,paddingLeft:gr,paddingBlock:gr,paddingBlockStart:gr,paddingBlockEnd:gr,paddingInline:gr,paddingInlineStart:gr,paddingInlineEnd:gr,margin:gr,marginTop:gr,marginRight:gr,marginBottom:gr,marginLeft:gr,marginBlock:gr,marginBlockStart:gr,marginBlockEnd:gr,marginInline:gr,marginInlineStart:gr,marginInlineEnd:gr,fontSize:gr,backgroundPositionX:gr,backgroundPositionY:gr,...{rotate:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scale:ar,scaleX:ar,scaleY:ar,scaleZ:ar,skew:xr,skewX:xr,skewY:xr,distance:gr,translateX:gr,translateY:gr,translateZ:gr,x:gr,y:gr,z:gr,perspective:gr,transformPerspective:gr,opacity:ir,originX:br,originY:br,originZ:gr},zIndex:td,fillOpacity:ir,strokeOpacity:ir,numOctaves:td},sd={...nd,color:jr,backgroundColor:jr,outlineColor:jr,fill:jr,stroke:jr,borderColor:jr,borderTopColor:jr,borderRightColor:jr,borderBottomColor:jr,borderLeftColor:jr,filter:Jc,WebkitFilter:Jc,mask:ed,WebkitMask:ed},id=e=>sd[e],ad=new Set([Jc,ed]);function od(e,t){let n=id(e);return ad.has(n)||(n=Mr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const rd=new Set(["auto","none","0"]);class ld extends Yl{constructor(e,t,n,s,i){super(e,t,n,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if("string"==typeof n&&(n=n.trim(),er(n))){const s=bc(n,t.current);void 0!==s&&(e[r]=s),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!Ac.has(n)||2!==e.length)return;const[s,i]=e,a=$c(s),o=$c(i);if(nr(s)!==nr(i)&&zl[n])this.needsMeasurement=!0;else if(a!==o)if(Ol(a)&&Ol(o))for(let r=0;r<e.length;r++){const t=e[r];"string"==typeof t&&(e[r]=parseFloat(t))}else zl[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let s=0;s<e.length;s++)(null===e[s]||Yc(e[s]))&&n.push(s);n.length&&function(e,t,n){let s,i=0;for(;i<e.length&&!s;){const t=e[i];"string"==typeof t&&!rd.has(t)&&kr(t).values.length&&(s=e[i]),i++}if(s&&n)for(const a of t)e[a]=od(n,s)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=zl[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const s=t[t.length-1];void 0!==s&&e.getValue(n,s).jump(s,!1)}measureEndState(){const{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;const s=e.getValue(t);s&&s.jump(this.measuredOrigin,!1);const i=n.length-1,a=n[i];n[i]=zl[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
vendor: 28,511 bytes, line 101
101h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}function cd(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document;const s=n?.[e]??t.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(e=>null!=e)}const dd=(e,t)=>t&&"number"==typeof e?t.transform(e):e;function pd(e){return ho(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:ud}=Ho(queueMicrotask,!1),md={x:!1,y:!1};function hd(){return md.x||md.y}function xd(e,t){const n=cd(e),s=new AbortController;return[n,{passive:!0,...t,signal:s.signal},()=>s.abort()]}function fd(e,t,n={}){const[s,i,a]=xd(e,n);return s.forEach(e=>{let n,s=!1,a=!1;const o=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},r=e=>{s=!1,window.removeEventListener("pointerup",r),window.removeEventListener("pointercancel",r),a&&(a=!1,o(e))},l=e=>{"touch"!==e.pointerType&&(s?a=!0:o(e))};e.addEventListener("pointerenter",s=>{if("touch"===s.pointerType||hd())return;a=!1;const o=t(e,s);"function"==typeof o&&(n=o,e.addEventListener("pointerleave",l,i))},i),e.addEventListener("pointerdown",()=>{s=!0,window.addEventListener("pointerup",r,i),window.addEventListener("pointercancel",r,i)},i)}),a}const gd=(e,t)=>!!t&&(e===t||gd(e,t.parentElement)),vd=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,yd=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const bd=new Set(["INPUT","SELECT","TEXTAREA"]);const Cd=new WeakSet;function jd(e){return t=>{"Enter"===t.key&&e(t)}}function wd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function _d(e){return vd(e)&&!hd()}const Sd=new WeakSet;function Nd(e,t,n={}){const[s,i,a]=xd(e,n),o=e=>{const s=e.currentTarget;if(!_d(e))return;if(Sd.has(e))return;Cd.add(s),n.stopPropagation&&Sd.add(e);const a=t(s,e),o=(e,t)=>{window.removeEventListener("pointerup",r),window.removeEventListener("pointercancel",l),Cd.has(s)&&Cd.delete(s),_d(e)&&"function"==typeof a&&a(e,{success:t})},r=e=>{o(e,s===window||s===document||n.useGlobalTarget||gd(s,e.target))},l=e=>{o(e,!1)};window.addEventListener("pointerup",r,i),window.addEventListener("pointercancel",l,i)};return s.forEach(e=>{var t;(n.useGlobalTarget?window:e).addEventListener("pointerdown",o,i),pd(e)&&(e.addEventListener("focus",e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const s=jd(()=>{if(Cd.has(n))return;wd(n,"down");const e=jd(()=>{wd(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>wd(n,"cancel"),t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)})(e,i)),t=e,yd.has(t.tagName)||!0===t.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),a}function kd(e){return ho(e)&&"ownerSVGElement"in e}const Ed=new WeakMap;let Pd;const Md=(e,t,n)=>(s,i)=>i&&i[0]?i[0][e+"Size"]:kd(s)&&"getBBox"in s?s.getBBox()[t]:s[n],Td=Md("inline","width","offsetWidth"),Ad=Md("block","height","offsetHeight");function Vd({target:e,borderBoxSize:t}){Ed.get(e)?.forEach(n=>{n(e,{get width(){return Td(e,t)},get height(){return Ad(e,t)}})})}function Ld(e){e.forEach(Vd)}function Fd(e,t){Pd||"undefined"!=typeof ResizeObserver&&(Pd=new ResizeObserver(Ld));const n=cd(e);return n.forEach(e=>{let n=Ed.get(e);n||(n=new Set,Ed.set(e,n)),n.add(t),Pd?.observe(e)}),()=>{n.forEach(e=>{const n=Ed.get(e);n?.delete(t),n?.size||Pd?.unobserve(e)})}}const Dd=new Set;let Rd;function Id(e){return Dd.add(e),Rd||(Rd=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Dd.forEach(t=>t(e))},window.addEventListener("resize",Rd)),()=>{Dd.delete(e),Dd.size||"function"!=typeof Rd||(window.removeEventListener("resize",Rd),Rd=void 0)}}function Od(e,t){return"function"==typeof e?Id(e):Fd(e,t)}const Bd=[...Wc,jr,Mr],qd=()=>({x:{min:0,max:0},y:{min:0,max:0}}),zd=new WeakMap;function Hd(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function Zd(e){return"string"==typeof e||Array.isArray(e)}const Ud=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Qd=["initial",...Ud];function Wd(e){return Hd(e.animate)||Qd.some(t=>Zd(e[t]))}function $d(e){return Boolean(Wd(e)||e.variants)}const Yd={current:null},Kd={current:!1},Gd="undefined"!=typeof window;const Xd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Jd={};function ep(e){Jd=e}class tp{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:a,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Yl,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=Ko.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Zo.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=r,this.blockInitialAnimation=Boolean(a),this.isControllingVariants=Wd(t),this.isVariantNode=$d(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:d,...p}=this.scrapeMotionValuesFromProps(t,{},this);for(const u in p){const e=p[u];void 0!==l[u]&&Ic(e)&&e.set(l[u])}}mount(e){if(this.hasBeenMounted)for(const t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=e,zd.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(Kd.current||function(){if(Kd.current=!0,Gd)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Yd.current=e.matches;e.addEventListener("change",t),t()}else Yd.current=!1}(),this.shouldReduceMotion=Yd.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Uo(this.notifyUpdate),Uo(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&uc.has(e)&&this.current instanceof HTMLElement){const{factory:n,keyframes:s,times:i,ease:a,duration:o}=t.accelerate,r=new oc({element:this.current,name:e,keyframes:s,times:i,ease:a,duration:jo(o)}),l=n(r);return void this.valueSubscriptions.set(e,()=>{l(),r.cancel()})}const n=Il.has(e);n&&this.onBindTransform&&this.onBindTransform();const s=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&Zo.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{s(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Jd){const t=Jd[e];if(!t)continue;const{isEnabled:n,Feature:s}=t;if(!this.features[e]&&s&&n(this.props)&&(this.features[e]=new s(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<Xd.length;n++){const t=Xd[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const s=e["on"+t];s&&(this.propEventSubscriptions[t]=this.on(t,s))}this.prevMotionValues=function(e,t,n){for(const s in t){const i=t[s],a=n[s];if(Ic(i))e.addValue(s,i);else if(Ic(a))e.addValue(s,Lc(i,{owner:e}));else if(a!==i)if(e.hasValue(s)){const t=e.getValue(s);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{const t=e.getStaticValue(s);e.addValue(s,Lc(void 0!==t?t:i,{owner:e}))}}for(const s in n)void 0===t[s]&&e.removeValue(s);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Lc(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var s;return null!=n&&("string"==typeof n&&(mo(n)||xo(n))?n=parseFloat(n):(s=n,!Bd.find(Qc(s))&&Mr.test(t)&&(n=od(e,t))),this.setBaseTarget(e,Ic(n)?n.get():n)),Ic(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){const{initial:t}=this.props;let n;if("string"==typeof t||"object"==typeof t){const s=Mc(this.props,t,this.presenceContext?.custom);s&&(n=s[e])}if(t&&void 0!==n)return n;const s=this.getBaseTargetFromProps(this.props,e);return void 0===s||Ic(s)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:s}on(e,t){return this.events[e]||(this.events[e]=new Co),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){ud.render(this.render)}}class np extends tp{constructor(){super(...arguments),this.KeyframeResolver=ld}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){const n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ic(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class sp{constructor(e){this.isMounted=!1,this.node=e}update(){}}function ip({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function ap(e){return void 0===e||1===e}function op({scale:e,scaleX:t,scaleY:n}){return!ap(e)||!ap(t)||!ap(n)}function rp(e){return op(e)||lp(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function lp(e){return cp(e.x)||cp(e.y)}function cp(e){return e&&"0%"!==e}function dp(e,t,n){return n+t*(e-n)}function pp(e,t,n,s,i){return void 0!==i&&(e=dp(e,i,s)),dp(e,n,s)+t}function up(e,t=0,n=1,s,i){e.min=pp(e.min,t,n,s,i),e.max=pp(e.max,t,n,s,i)}function mp(e,{x:t,y:n}){up(e.x,t.translate,t.scale,t.originPoint),up(e.y,n.translate,n.scale,n.originPoint)}const hp=.999999999999,xp=1.0000000000001;function fp(e,t){e.min+=t,e.max+=t}function gp(e,t,n,s,i=.5){up(e,t,n,Vr(e.min,e.max,i),s)}function vp(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function yp(e,t,n){const s=n??e;gp(e.x,vp(t.x,s.x),t.scaleX,t.scale,t.originX),gp(e.y,vp(t.y,s.y),t.scaleY,t.scale,t.originY)}function bp(e,t){return ip(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}(e.getBoundingClientRect(),t))}const Cp={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},jp=Rl.length;function wp(e,t,n){const{style:s,vars:i,transformOrigin:a}=e;let o=!1,r=!1;for(const l in t){const e=t[l];if(Il.has(l))o=!0;else if(Xo(l))i[l]=e;else{const t=dd(e,nd[l]);l.startsWith("origin")?(r=!0,a[l]=t):s[l]=t}}if(t.transform||(o||n?s.transform=function(e,t,n){let s="",i=!0;for(let a=0;a<jp;a++){const o=Rl[a],r=e[o];if(void 0===r)continue;let l=!0;if("number"==typeof r)l=r===(o.startsWith("scale")?1:0);else{const e=parseFloat(r);l=o.startsWith("scale")?1===e:0===e}if(!l||n){const e=dd(r,nd[o]);l||(i=!1,s+=`${Cp[o]||o}(${e}) `),n&&(t[o]=e)}}return s=s.trim(),n?s=n(t,i?"":s):i&&(s="none"),s}(t,e.transform,n):s.transform&&(s.transform="none")),r){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;s.transformOrigin=`${e} ${t} ${n}`}}function _p(e,{style:t,vars:n},s,i){const a=e.style;let o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,s),n)a.setProperty(o,n[o])}function Sp(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Np={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!gr.test(e))return e;e=parseFloat(e)}return`${Sp(e,t.target.x)}% ${Sp(e,t.target.y)}%`}},kp={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,i=Mr.parse(e);if(i.length>5)return s;const a=Mr.createTransformer(e),o="number"!=typeof i[0]?1:0,r=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=r,i[1+o]/=l;const c=Vr(r,l,.5);return"number"==typeof i[2+o]&&(i[2+o]/=c),"number"==typeof i[3+o]&&(i[3+o]/=c),a(i)}},Ep={borderRadius:{...Np,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Np,borderTopRightRadius:Np,borderBottomLeftRadius:Np,borderBottomRightRadius:Np,boxShadow:kp};function Pp(e,{layout:t,layoutId:n}){return Il.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Ep[e]||"opacity"===e)}function Mp(e,t,n){const s=e.style,i=t?.style,a={};if(!s)return a;for(const o in s)(Ic(s[o])||i&&Ic(i[o])||Pp(o,e)||void 0!==n?.getValue(o)?.liveStyle)&&(a[o]=s[o]);return a}class Tp extends np{constructor(){super(...arguments),this.type="html",this.renderInstance=_p}readValueFromInstance(e,t){if(Il.has(t))return this.projection?.isProjecting?Ll(t):((e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Fl(n,t)})(e,t);{const s=(n=e,window.getComputedStyle(n)),i=(Xo(t)?s.getPropertyValue(t):s[t])||0;return"string"==typeof i?i.trim():i}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return bp(e,t)}build(e,t,n){wp(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Mp(e,t,n)}}const Ap={offset:"stroke-dashoffset",array:"stroke-dasharray"},Vp={offset:"strokeDashoffset",array:"strokeDasharray"};const Lp=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Fp(e,{attrX:t,attrY:n,attrScale:s,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...r},l,c,d){if(wp(e,r,c),l)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:p,style:u}=e;p.transform&&(u.transform=p.transform,delete p.transform),(u.transform||p.transformOrigin)&&(u.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),u.transform&&(u.transformBox=d?.transformBox??"fill-box",delete p.transformBox);for(const m of Lp)void 0!==p[m]&&(u[m]=p[m],delete p[m]);void 0!==t&&(p.x=t),void 0!==n&&(p.y=n),void 0!==s&&(p.scale=s),void 0!==i&&function(e,t,n=1,s=0,i=!0){e.pathLength=1;const a=i?Ap:Vp;e[a.offset]=""+-s,e[a.array]=`${t} ${n}`}(p,i,a,o,!1)}const Dp=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Rp=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Ip(e,t,n){const s=Mp(e,t,n);for(const i in e)if(Ic(e[i])||Ic(t[i])){s[-1!==Rl.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]}return s}class Op extends np{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=qd}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Il.has(t)){const e=id(t);return e&&e.default||0}return t=Dp.has(t)?t:Bc(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Ip(e,t,n)}build(e,t,n){Fp(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,s){!function(e,t,n,s){_p(e,t,void 0,s);for(const i in t.attrs)e.setAttribute(Dp.has(i)?i:Bc(i),t.attrs[i])}(e,t,0,s)}mount(e){this.isSVGTag=Rp(e.tagName),super.mount(e)}}const Bp=Qd.length;function qp(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&qp(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<Bp;n++){const s=Qd[n],i=e.props[s];(Zd(i)||!1===i)&&(t[s]=i)}return t}function zp(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}const Hp=[...Ud].reverse(),Zp=Ud.length;function Up(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let s;if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map(t=>Uc(e,t,n));s=Promise.all(i)}else if("string"==typeof t)s=Uc(e,t,n);else{const i="function"==typeof t?Tc(e,t,n.custom):t;s=Promise.all(Zc(e,i,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}(e,t,n)))}function Qp(e){let t=Up(e),n=Yp(),s=!0,i=!1;const a=t=>(n,s)=>{const i=Tc(e,s,"exit"===t?e.presenceContext?.custom:void 0);if(i){const{transition:e,transitionEnd:t,...s}=i;n={...n,...s,...t}}return n};function o(o){const{props:r}=e,l=qp(e.parent)||{},c=[],d=new Set;let p={},u=1/0;for(let t=0;t<Zp;t++){const m=Hp[t],h=n[m],x=void 0!==r[m]?r[m]:l[m],f=Zd(x),g=m===o?h.isActive:null;!1===g&&(u=t);let v=x===l[m]&&x!==r[m]&&f;if(v&&(s||i)&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...p},!h.isActive&&null===g||!x&&!h.prevProp||Hd(x)||"boolean"==typeof x)continue;if("exit"===m&&h.isActive&&!0!==g){h.prevResolvedValues&&(p={...p,...h.prevResolvedValues});continue}const y=Wp(h.prevProp,x);let b=y||m===o&&h.isActive&&!v&&f||t>u&&f,C=!1;const j=Array.isArray(x)?x:[x];let w=j.reduce(a(m),{});!1===g&&(w={});const{prevResolvedValues:_={}}=h,S={..._,...w},N=t=>{b=!0,d.has(t)&&(C=!0,d.delete(t)),h.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in S){const t=w[e],n=_[e];if(p.hasOwnProperty(e))continue;let s=!1;s=Fc(t)&&Fc(n)?!zp(t,n):t!==n,s?null!=t?N(e):d.add(e):void 0!==t&&d.has(e)?N(e):h.protectedKeys[e]=!0}h.prevProp=x,h.prevResolvedValues=w,h.isActive&&(p={...p,...w}),(s||i)&&e.blockInitialAnimation&&(b=!1);const k=v&&y;b&&(!k||C)&&c.push(...j.map(t=>{const n={type:m};if("string"==typeof t&&(s||i)&&!k&&e.manuallyAnimateOnMount&&e.parent){const{parent:s}=e,i=Tc(s,t);if(s.enteringChildren&&i){const{delayChildren:t}=i.transition||{};n.delay=vc(s.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(d.size){const t={};if("boolean"!=typeof r.initial){const n=Tc(e,Array.isArray(r.initial)?r.initial[0]:r.initial);n&&n.transition&&(t.transition=n.transition)}d.forEach(n=>{const s=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=s??null}),c.push({animation:t})}let m=Boolean(c.length);return!s||!1!==r.initial&&r.initial!==r.animate||e.manuallyAnimateOnMount||(m=!1),s=!1,i=!1,m?t(c):Promise.resolve()}return{animateChanges:o,setActive:function(t,s){if(n[t].isActive===s)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,s)),n[t].isActive=s;const i=o(t);for(const e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=Yp(),i=!0}}}function Wp(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!zp(t,e)}function $p(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Yp(){return{animate:$p(!0),whileInView:$p(),whileHover:$p(),whileTap:$p(),whileDrag:$p(),whileFocus:$p(),exit:$p()}}function Kp(e,t){e.min=t.min,e.max=t.max}function Gp(e,t){Kp(e.x,t.x),Kp(e.y,t.y)}function Xp(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Jp(e){return e.max-e.min}function eu(e,t,n,s=.5){e.origin=s,e.originPoint=Vr(t.min,t.max,e.origin),e.scale=Jp(n)/Jp(t),e.translate=Vr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function tu(e,t,n,s){eu(e.x,t.x,n.x,s?s.originX:void 0),eu(e.y,t.y,n.y,s?s.originY:void 0)}function nu(e,t,n,s=0){const i=s?Vr(n.min,n.max,s):n.min;e.min=i+t.min,e.max=e.min+Jp(t)}function su(e,t,n,s=0){const i=s?Vr(n.min,n.max,s):n.min;e.min=t.min-i,e.max=e.min+Jp(t)}function iu(e,t,n,s){su(e.x,t.x,n.x,s?.x),su(e.y,t.y,n.y,s?.y)}function au(e,t,n,s,i){return e=dp(e-=t,1/n,s),void 0!==i&&(e=dp(e,1/i,s)),e}function ou(e,t,[n,s,i],a,o){!function(e,t=0,n=1,s=.5,i,a=e,o=e){fr.test(t)&&(t=parseFloat(t),t=Vr(o.min,o.max,t/100)-o.min);if("number"!=typeof t)return;let r=Vr(a.min,a.max,s);e===a&&(r-=t),e.min=au(e.min,t,n,r,i),e.max=au(e.max,t,n,r,i)}(e,t[n],t[s],t[i],t.scale,a,o)}const ru=["x","scaleX","originX"],lu=["y","scaleY","originY"];function cu(e,t,n,s){ou(e.x,t,ru,n?n.x:void 0,s?s.x:void 0),ou(e.y,t,lu,n?n.y:void 0,s?s.y:void 0)}function du(e){return 0===e.translate&&1===e.scale}function pu(e){return du(e.x)&&du(e.y)}function uu(e,t){return e.min===t.min&&e.max===t.max}function mu(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function hu(e,t){return mu(e.x,t.x)&&mu(e.y,t.y)}function xu(e){return Jp(e.x)/Jp(e.y)}function fu(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function gu(e){return[e("x"),e("y")]}const vu=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],yu=vu.length,bu=e=>"string"==typeof e?parseFloat(e):e,Cu=e=>"number"==typeof e||gr.test(e);function ju(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const wu=Su(0,.5,Lo),_u=Su(.5,.95,go);function Su(e,t,n){return s=>s<e?0:s>t?1:n(bo(e,t,s))}function Nu(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}const ku=(e,t)=>e.depth-t.depth;class Eu{constructor(){this.children=[],this.isDirty=!1}add(e){lo(this.children,e),this.isDirty=!0}remove(e){co(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ku),this.isDirty=!1,this.children.forEach(e)}}function Pu(e){return Ic(e)?e.get():e}class Mu{constructor(){this.members=[]}add(e){lo(this.members,e);for(let t=this.members.length-1;t>=0;t--){const n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;const s=n.instance;s&&!1!==s.isConnected||n.snapshot||(co(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(co(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent&&!1!==e.instance?.isConnected)return this.promote(e),!0}return!1}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();const{layoutDependency:s}=n.options,{layoutDependency:i}=e.options;void 0!==s&&s===i||(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Tu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Au=["","X","Y","Z"];let Vu=0;function Lu(e,t,n,s){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),s&&(s[e]=0))}function Fu(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=zc(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Zo,!(t||s))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&Fu(s)}function Du({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Vu++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Ou),this.nodes.forEach($u),this.nodes.forEach(Yu),this.nodes.forEach(Bu)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Eu)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Co),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;var n;this.isSVG=kd(t)&&!(kd(n=t)&&"svg"===n.tagName),this.instance=t;const{layoutId:s,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||s)&&(this.isLayoutDirty=!0),e){let n,s=0;const i=()=>this.root.updateBlockedByResize=!1;Zo.read(()=>{s=window.innerWidth}),e(t,()=>{const e=window.innerWidth;e!==s&&(s=e,this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=Ko.now(),s=({timestamp:i})=>{const a=i-n;a>=t&&(Uo(s),e(a-t))};return Zo.setup(s,!0),()=>Uo(s)}(i,250),Tu.hasAnimatedSinceResize&&(Tu.hasAnimatedSinceResize=!1,this.nodes.forEac
vendor: 7,331 bytes, line 101
101h(Wu)))})}s&&this.root.registerSharedNode(s,this),!1!==this.options.animate&&a&&(s||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:s})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||a.getDefaultTransition()||tm,{onLayoutAnimationStart:o,onLayoutAnimationComplete:r}=a.getProps(),l=!this.targetLayout||!hu(this.targetLayout,s),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const t={...Nc(i,"layout"),onPlay:o,onComplete:r};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||Wu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Uo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ku),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Fu(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let i=0;i<this.path.length;i++){const e=this.path[i];e.shouldResetTransform=!0,"string"!=typeof e.latestValues.x&&"string"!=typeof e.latestValues.y||(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked()){const e=this.updateBlockedByResize;return this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Hu),void this.nodes.forEach(zu)}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(Zu);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Uu),this.nodes.forEach(Qu),this.nodes.forEach(Ru),this.nodes.forEach(Iu)):this.nodes.forEach(Zu),this.clearAllSnapshots();const e=Ko.now();Qo.delta=po(0,1e3/60,e-Qo.timestamp),Qo.timestamp=e,Qo.isProcessing=!0,Wo.update.process(Qo),Wo.preRender.process(Qo),Wo.render.process(Qo),Qo.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ud.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(qu),this.sharedNodes.forEach(Gu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Zo.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Zo.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||Jp(this.snapshot.measuredBox.x)||Jp(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}}),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){const t=s(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!pu(this.projectionDelta),n=this.getTransformTemplate(),s=n?n(this.latestValues,""):void 0,a=s!==this.prevTransformTemplateValue;e&&this.instance&&(t||rp(this.latestValues)||a)&&(i(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var s;return e&&(n=this.removeTransform(n)),im((s=n).x),im(s.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(om))){const{scroll:e}=this.root;e&&(fp(t.x,e.offset.x),fp(t.y,e.offset.y))}return t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};if(Gp(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){const s=this.path[n],{scroll:i,options:a}=s;s!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Gp(t,e),fp(t.x,i.offset.x),fp(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){const s=n||{x:{min:0,max:0},y:{min:0,max:0}};Gp(s,e);for(let i=0;i<this.path.length;i++){const e=this.path[i];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&(fp(s.x,-e.scroll.offset.x),fp(s.y,-e.scroll.offset.y)),rp(e.latestValues)&&yp(s,e.latestValues,e.layout?.layoutBox)}return rp(this.latestValues)&&yp(s,this.latestValues,this.layout?.layoutBox),s}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Gp(t,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];if(!rp(e.latestValues))continue;let s;e.instance&&(op(e.latestValues)&&e.updateSnapshot(),s=qd(),Gp(s,e.measurePageBox())),cu(t,e.latestValues,e.snapshot?.layoutBox,s)}return rp(this.latestValues)&&cu(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Qo.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){const t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
vendor: 15,788 bytes, line 101
101isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:s,layoutId:i}=this.options;if(!this.layout||!s&&!i)return;this.resolvedRelativeTargetAt=Qo.timestamp;const a=this.getClosestProjectingParent();var o,r,l,c;(a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),o=this.target,r=this.relativeTarget,l=this.relativeParent.target,c=this.options.layoutAnchor||void 0,nu(o.x,r.x,l.x,c?.x),nu(o.y,r.y,l.y,c?.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.applyTransform(this.layout.layoutBox,!1,this.target):Gp(this.target,this.layout.layoutBox),mp(this.target,this.targetDelta)):Gp(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&a&&Boolean(a.resumingFrom)===Boolean(this.resumingFrom)&&!a.options.layoutScroll&&a.target&&1!==this.animationProgress?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(this.parent&&!op(this.parent.latestValues)&&!lp(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},iu(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Gp(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const e=this.getLead(),t=Boolean(this.resumingFrom)||this!==e;let n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Qo.timestamp&&(n=!1),n)return;const{layout:s,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!i)return;Gp(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,o=this.treeScale.y;!function(e,t,n,s=!1){const i=n.length;if(!i)return;let a,o;t.x=t.y=1;for(let r=0;r<i;r++){a=n[r],o=a.projectionDelta;const{visualElement:i}=a.options;i&&i.props.style&&"contents"===i.props.style.display||(s&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(fp(e.x,-a.scroll.offset.x),fp(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,mp(e,o)),s&&rp(a.latestValues)&&yp(e,a.latestValues,a.layout?.layoutBox))}t.x<xp&&t.x>hp&&(t.x=1),t.y<xp&&t.y>hp&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,t),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:r}=e;r?(this.projectionDelta&&this.prevProjectionDelta?(Xp(this.prevProjectionDelta.x,this.projectionDelta.x),Xp(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),tu(this.projectionDelta,this.layoutCorrected,r,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&fu(this.projectionDelta.x,this.prevProjectionDelta.x)&&fu(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",r))):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const n=this.snapshot,s=n?n.latestValues:{},i={...this.latestValues},a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const o={x:{min:0,max:0},y:{min:0,max:0}},r=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,d=Boolean(r&&!c&&!0===this.options.crossfade&&!this.path.some(em));let p;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,u,m,h,x,f;Xu(a.x,e.x,n),Xu(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(iu(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,h=this.relativeTargetOrigin,x=o,f=n,Ju(m.x,h.x,x.x,f),Ju(m.y,h.y,x.y,f),p&&(l=this.relativeTarget,u=p,uu(l.x,u.x)&&uu(l.y,u.y))&&(this.isProjectionDirty=!1),p||(p={x:{min:0,max:0},y:{min:0,max:0}}),Gp(p,this.relativeTarget)),r&&(this.animationValues=i,function(e,t,n,s,i,a){i?(e.opacity=Vr(0,n.opacity??1,wu(s)),e.opacityExit=Vr(t.opacity??1,0,_u(s))):a&&(e.opacity=Vr(t.opacity??1,n.opacity??1,s));for(let o=0;o<yu;o++){const i=vu[o];let a=ju(t,i),r=ju(n,i);void 0===a&&void 0===r||(a||(a=0),r||(r=0),0===a||0===r||Cu(a)===Cu(r)?(e[i]=Math.max(Vr(bu(a),bu(r),s),0),(fr.test(r)||fr.test(a))&&(e[i]+="%")):e[i]=r)}(t.rotate||n.rotate)&&(e.rotate=Vr(t.rotate||0,n.rotate||0,s))}(i,s,this.latestValues,n,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Uo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Zo.update(()=>{Tu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Lc(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(e,t,n){const s=Ic(e)?e:Lc(e);return s.start(Ec("",s,t,n)),s.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:s,latestValues:i}=e;if(t&&n&&s){if(this!==e&&this.layout&&s&&am(this.options.animationType,this.layout.layoutBox,s.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=Jp(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const s=Jp(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+s}Gp(t,n),yp(t,i),tu(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Mu);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){const{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){const{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const s=this.getStack();s&&s.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const s={};n.z&&Lu("z",e,s,this.animationValues);for(let i=0;i<Au.length;i++)Lu(`rotate${Au[i]}`,e,s,this.animationValues),Lu(`skew${Au[i]}`,e,s,this.animationValues);e.render();for(const i in s)e.setStaticValue(i,s[i]),this.animationValues&&(this.animationValues[i]=s[i]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(e.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=Pu(t?.pointerEvents)||"",void(e.transform=n?n(this.latestValues,""):"none");const s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target)return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=Pu(t?.pointerEvents)||""),void(this.hasProjected&&!rp(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1));e.visibility="";const i=s.animationValues||s.latestValues;this.applyTransformsToTarget();let a=function(e,t,n){let s="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(s=`translate3d(${i}px, ${a}px, ${o}px) `),1===t.x&&1===t.y||(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:r}=n;e&&(s=`perspective(${e}px) ${s}`),t&&(s+=`rotate(${t}deg) `),i&&(s+=`rotateX(${i}deg) `),a&&(s+=`rotateY(${a}deg) `),o&&(s+=`skewX(${o}deg) `),r&&(s+=`skewY(${r}deg) `)}const r=e.x.scale*t.x,l=e.y.scale*t.y;return 1===r&&1===l||(s+=`scale(${r}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;const{x:o,y:r}=this.projectionDelta;e.transformOrigin=`${100*o.origin}% ${100*r.origin}% 0`,s.animationValues?e.opacity=s===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=s===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0;for(const l in Ep){if(void 0===i[l])continue;const{correct:t,applyTo:n,isCSSVariable:o}=Ep[l],r="none"===a?i[l]:t(i[l],s);if(n){const t=n.length;for(let s=0;s<t;s++)e[n[s]]=r}else o?this.options.visualElement.renderState.vars[l]=r:e[l]=r}this.options.layoutId&&(e.pointerEvents=s===this?Pu(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(zu),this.root.sharedNodes.clear()}}}function Ru(e){e.updateLayout()}function Iu(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if("size"===i)gu(e=>{const s=a?t.measuredBox[e]:t.layoutBox[e],i=Jp(s);s.min=n[e].min,s.max=s.min+i});else if("x"===i||"y"===i){const e="x"===i?"y":"x";Kp(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else am(i,t.layoutBox,n)&&gu(s=>{const i=a?t.measuredBox[s]:t.layoutBox[s],o=Jp(n[s]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[s].max=e.relativeTarget[s].min+o)});const o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};tu(o,n,t.layoutBox);const r={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a?tu(r,e.applyTransform(s,!0),t.measuredBox):tu(r,n,t.layoutBox);const l=!pu(o);let c=!1;if(!e.resumeFrom){const s=e.getClosestProjectingParent();if(s&&!s.resumeFrom){const{snapshot:i,layout:a}=s;if(i&&a){const o=e.options.layoutAnchor||void 0,r={x:{min:0,max:0},y:{min:0,max:0}};iu(r,t.layoutBox,i.layoutBox,o);const l={x:{min:0,max:0},y:{min:0,max:0}};iu(l,n,a.layoutBox,o),hu(r,l)||(c=!0),s.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=r,e.relativeParent=s)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:r,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Ou(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Bu(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function qu(e){e.clearSnapshot()}function zu(e){e.clearMeasurements()}function Hu(e){e.isLayoutDirty=!0,e.updateLayout()}function Zu(e){e.isLayoutDirty=!1}function Uu(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Qu(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Wu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function $u(e){e.resolveTargetDelta()}function Yu(e){e.calcProjection()}function Ku(e){e.resetSkewAndRotation()}function Gu(e){e.removeLeadSnapshot()}function Xu(e,t,n){e.translate=Vr(t.translate,0,n),e.scale=Vr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ju(e,t,n,s){e.min=Vr(t.min,n.min,s),e.max=Vr(t.max,n.max,s)}function em(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const tm={duration:.45,ease:[.4,0,.1,1]},nm=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sm=nm("applewebkit/")&&!nm("chrome/")?Math.round:go;function im(e){e.min=sm(e.min),e.max=sm(e.max)}function am(e,t,n){return"position"===e||"preserve-aspect"===e&&(s=xu(t),i=xu(n),a=.2,!(Math.abs(s-i)<=a));var s,i,a}function om(e){return e!==e.root&&e.scroll?.wasRoot}const rm=Du({attachResizeListener:(e,t)=>Nu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),lm={current:void 0},cm=Du({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lm.current){const e=new rm({});e.mount(window),e.setOptions({layoutScroll:!0}),lm.current=e}return lm.current},resetTransform:(e,t)=>
101{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),dm=e.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function pm(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function um(...t){return e.useCallback(function(...e){return t=>{let n=!1;const s=e.map(e=>{const s=pm(e,t);return n||"function"!=typeof s||(n=!0),s});if(n)return()=>{for(let t=0;t<s.length;t++){const n=s[t];"function"==typeof n?n():pm(e[t],null)}}}}(...t),t)}class mm extends e.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(pd(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){const e=t.offsetParent,n=pd(e)&&e.offsetWidth||0,s=pd(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=s-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function hm({children:t,isPresent:n,anchorX:s,anchorY:a,root:o,pop:r}){const l=e.useId(),c=e.useRef(null),d=e.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=e.useContext(dm),u=t.props?.ref??t?.ref,m=um(c,u);return e.useInsertionEffect(()=>{const{width:e,height:t,top:i,left:u,right:m,bottom:h}=d.current;if(n||!1===r||!c.current||!e||!t)return;const x="left"===s?`left: ${u}`:`right: ${m}`,f="bottom"===a?`bottom: ${h}`:`top: ${i}`;c.current.dataset.motionPopId=l;const g=document.createElement("style");p&&(g.nonce=p);const v=o??document.head;return v.appendChild(g),g.sheet&&g.sheet.insertRule(`\n          [data-motion-pop-id="${l}"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${t}px !important;\n            ${x}px !important;\n            ${f}px !important;\n          }\n        `),()=>{c.current?.removeAttribute("data-motion-pop-id"),v.contains(g)&&v.removeChild(g)}},[n]),i.jsx(mm,{isPresent:n,childRef:c,sizeRef:d,pop:r,children:!1===r?t:e.cloneElement(t,{ref:m})})}const xm=({children:t,initial:n,isPresent:s,onExitComplete:a,custom:o,presenceAffectsLayout:r,mode:l,anchorX:c,anchorY:d,root:p})=>{const u=ao(fm),m=e.useId();let h=!0,x=e.useMemo(()=>(h=!1,{id:m,initial:n,isPresent:s,custom:o,onExitComplete:e=>{u.set(e,!0);for(const t of u.values())if(!t)return;a&&a()},register:e=>(u.set(e,!1),()=>u.delete(e))}),[s,u,a]);return r&&h&&(x={...x}),e.useMemo(()=>{u.forEach((e,t)=>u.set(t,!1))},[s]),e.useEffect(()=>{!s&&!u.size&&a&&a()},[s]),t=i.jsx(hm,{pop:"popLayout"===l,isPresent:s,anchorX:c,anchorY:d,root:p,children:t}),i.jsx(ro.Provider,{value:x,children:t})};function fm(){return new Map}function gm(t=!0){const n=e.useContext(ro);if(null===n)return[!0,null];const{isPresent:s,onExitComplete:i,register:a}=n,o=e.useId();e.useEffect(()=>{if(t)return a(o)},[t]);const r=e.useCallback(()=>t&&i&&i(o),[o,i,t]);return!s&&i?[!1,r]:[!0]}const vm=e=>e.key||"";function ym(t){const n=[];return e.Children.forEach(t,t=>{e.isValidElement(t)&&n.push(t)}),n}const bm=({children:t,custom:n,initial:s=!0,onExitComplete:a,presenceAffectsLayout:o=!0,mode:r="sync",propagate:l=!1,anchorX:c="left",anchorY:d="top",root:p})=>{const[u,m]=gm(l),h=e.useMemo(()=>ym(t),[t]),x=l&&!u?[]:h.map(vm),f=e.useRef(!0),g=e.useRef(h),v=ao(()=>new Map),y=e.useRef(new Set),[b,C]=e.useState(h),[j,w]=e.useState(h);oo(()=>{f.current=!1,g.current=h;for(let e=0;e<j.length;e++){const t=vm(j[e]);x.includes(t)?(v.delete(t),y.current.delete(t)):!0!==v.get(t)&&v.set(t,!1)}},[j,x.length,x.join("-")]);const _=[];if(h!==b){let e=[...h];for(let t=0;t<j.length;t++){const n=j[t],s=vm(n);x.includes(s)||(e.splice(t,0,n),_.push(n))}return"wait"===r&&_.length&&(e=_),w(ym(e)),C(h),null}const{forceRender:S}=e.useContext(io);return i.jsx(i.Fragment,{children:j.map(e=>{const t=vm(e),b=!(l&&!u)&&(h===j||x.includes(t));return i.jsx(xm,{isPresent:b,initial:!(f.current&&!s)&&void 0,custom:n,presenceAffectsLayout:o,mode:r,root:p,onExitComplete:b?void 0:()=>{if(y.current.has(t))return;if(!v.has(t))return;y.current.add(t),v.set(t,!0);let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(S?.(),w(g.current),l&&m?.(),a&&a())},anchorX:c,anchorY:d,children:e},t)})})},Cm=e.createContext({strict:!1}),jm={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let wm=!1;function _m(){return function(){if(wm)return;const e={};for(const t in jm)e[t]={isEnabled:e=>jm[t].some(t=>!!e[t])};ep(e),wm=!0}(),Jd}const Sm=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Nm(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Sm.has(e)}let km=e=>!Nm(e);try{"function"==typeof(Em=require("@emotion/is-prop-valid").default)&&(km=e=>e.startsWith("on")?!Nm(e):Em(e))}catch{}var Em;const Pm=e.createContext({});function Mm(t){const{initial:n,animate:s}=function(e,t){if(Wd(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Zd(t)?t:void 0,animate:Zd(n)?n:void 0}}return!1!==e.inherit?t:{}}(t,e.useContext(Pm));return e.useMemo(()=>({initial:n,animate:s}),[Tm(n),Tm(s)])}function Tm(e){return Array.isArray(e)?e.join(" "):e}const Am=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Vm(e,t,n){for(const s in t)Ic(t[s])||Pp(s,n)||(e[s]=t[s])}function Lm(t,n){const s={};return Vm(s,t.style||{},t),Object.assign(s,function({transformTemplate:t},n){return e.useMemo(()=>{const e={style:{},transform:{},transformOrigin:{},vars:{}};return wp(e,n,t),Object.assign({},e.vars,e.style)},[n])}
101(t,n)),s}function Fm(e,t){const n={},s=Lm(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}const Dm=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}});function Rm(t,n,s,i){const a=e.useMemo(()=>{const e={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Fp(e,n,Rp(i),t.transformTemplate,t.style),{...e.attrs,style:{...e.style}}},[n]);if(t.style){const e={};Vm(e,t.style,t),a.style={...e,...a.style}}return a}const Im=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Om(e){return"string"==typeof e&&!e.includes("-")&&!!(Im.indexOf(e)>-1||/[A-Z]/u.test(e))}function Bm(t,n,s,{latestValues:i},a,o=!1,r){const l=(r??Om(t)?Rm:Fm)(n,i,a,t),c=function(e,t,n){const s={};for(const i in e)"values"===i&&"object"==typeof e.values||Ic(e[i])||(km(i)||!0===n&&Nm(i)||!t&&!Nm(i)||e.draggable&&i.startsWith("onDrag"))&&(s[i]=e[i]);return s}(n,"string"==typeof t,o),d=t!==e.Fragment?{...c,...l,ref:s}:{},{children:p}=n,u=e.useMemo(()=>Ic(p)?p.get():p,[p]);return e.createElement(t,{...d,children:u})}function qm(e,t,n,s){const i={},a=s(e,{});
vendor: 5,566 bytes, line 101
101for(const u in a)i[u]=Pu(a[u]);let{initial:o,animate:r}=e;const l=Wd(e),c=$d(e);t&&c&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===r&&(r=t.animate));let d=!!n&&!1===n.initial;d=d||!1===o;const p=d?r:o;if(p&&"boolean"!=typeof p&&!Hd(p)){const t=Array.isArray(p)?p:[p];for(let n=0;n<t.length;n++){const s=Mc(e,t[n]);if(s){const{transitionEnd:e,transition:t,...n}=s;for(const s in n){let e=n[s];if(Array.isArray(e)){e=e[d?e.length-1:0]}null!==e&&(i[s]=e)}for(const s in e)i[s]=e[s]}}}return i}const zm=t=>(n,s)=>{const i=e.useContext(Pm),a=e.useContext(ro),o=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t},n,s,i){return{latestValues:qm(n,s,i,e),renderState:t()}}(t,n,i,a);return s?o():ao(o)},Hm=zm({scrapeMotionValuesFromProps:Mp,createRenderState:Am}),Zm=zm({scrapeMotionValuesFromProps:Ip,createRenderState:Dm}),Um=Symbol.for("motionComponentSymbol");function Qm(t,n,s){const i=e.useRef(s);e.useInsertionEffect(()=>{i.current=s});const a=e.useRef(null);return e.useCallback(e=>{e&&t.onMount?.(e);const s=i.current;if("function"==typeof s)if(e){const t=s(e);"function"==typeof t&&(a.current=t)}else a.current?(a.current(),a.current=null):s(e);else s&&(s.current=e);n&&(e?n.mount(e):n.unmount())},[n])}const Wm=e.createContext({});function $m(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ym(t,n,s,i,a,o){const{visualElement:r}=e.useContext(Pm),l=e.useContext(Cm),c=e.useContext(ro),d=e.useContext(dm),p=d.reducedMotion,u=d.skipAnimations,m=e.useRef(null),h=e.useRef(!1);i=i||l.renderer,!m.current&&i&&(m.current=i(t,{visualState:n,parent:r,props:s,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:p,skipAnimations:u,isSVG:o}),h.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));const x=m.current,f=e.useContext(Wm);!x||x.projection||!a||"html"!==x.type&&"svg"!==x.type||function(e,t,n,s){const{layoutId:i,layout:a,drag:o,dragConstraints:r,layoutScroll:l,layoutRoot:c,layoutAnchor:d,layoutCrossfade:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Km(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:Boolean(o)||r&&$m(r),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:s,crossfade:p,layoutScroll:l,layoutRoot:c,layoutAnchor:d})}(m.current,s,a,f);const g=e.useRef(!1);e.useInsertionEffect(()=>{x&&g.current&&x.update(s,c)});const v=s[qc],y=e.useRef(Boolean(v)&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return oo(()=>{h.current=!0,x&&(g.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),y.current&&x.animationState&&x.animationState.animateChanges())}),e.useEffect(()=>{x&&(!y.current&&x.animationState&&x.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),y.current=!1),x.enteringChildren=void 0)}),x}function Km(e){if(e)return!1!==e.options.allowProjection?e.projection:Km(e.parent)}function Gm(t,{forwardMotionProps:n=!1,type:s}={},a,o){a&&function(e){const t=_m();for(const n in e)t[n]={...t[n],...e[n]};ep(t)}(a);const r=s?"svg"===s:Om(t),l=r?Zm:Hm;function c(s,a){let c;const d={...e.useContext(dm),...s,layoutId:Xm(s)},{isStatic:p}=d,u=Mm(s),m=l(s,p);if(!p&&"undefined"!=typeof window){e.useContext(Cm).strict;const n=function(e){const t=_m(),{drag:n,layout:s}=t;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(e)||s?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(d);c=n.MeasureLayout,u.visualElement=Ym(t,m,d,o,n.ProjectionNode,r)}return i.jsxs(Pm.Provider,{value:u,children:[c&&u.visualElement?i.jsx(c,{visualElement:u.visualElement,...d}):null,Bm(t,s,Qm(m,u.visualElement,a),m,p,n,r)]})}c.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;const d=e.forwardRef(c);return d[Um]=t,d}function Xm({layoutId:t}){const n=e.useContext(io).id;return n&&void 0!==t?n+"-"+t:t}function Jm(e,t){if("undefined"==typeof Proxy)return Gm;const n=new Map,s=(n,s)=>Gm(n,s,e,t);return new Proxy((e,t)=>s(e,t),{get:(i,a)=>"create"===a?s:(n.has(a)||n.set(a,Gm(a,void 0,e,t)),n.get(a))})}const eh=(t,n)=>n.isSVG??Om(t)?new Op(n):new Tp(n,{allowProjection:t!==e.Fragment});let th=0;const nh={animation:{Feature:class extends sp{constructor(e){super(e),e.animationState||(e.animationState=Qp(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Hd(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends sp{constructor(){super(...arguments),this.id=th++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){const{initial:e,custom:t}=this.node.getProps();if("string"==typeof e){const n=Tc(this.node,e,t);if(n){const{transition:e,transitionEnd:t,...s}=n;for(const n in s)this.node.getValue(n)?.jump(s[n])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);return void(this.isExitComplete=!1)}const s=this.node.animationState.setActive("exit",!e);t&&!e&&s.then(()=>
vendor: 5,722 bytes, line 101
101{this.isExitComplete=!0,t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function sh(e){return{point:{x:e.pageX,y:e.pageY}}}function ih(e,t,n,s){return Nu(e,t,(e=>t=>vd(t)&&e(t,sh(t)))(n),s)}const ah=({current:e})=>e?e.ownerDocument.defaultView:null,oh=(e,t)=>Math.abs(e-t);const rh=new Set(["auto","scroll"]);class lh{constructor(e,t,{transformPagePoint:n,contextWindow:s=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ch(this.lastRawMoveEventInfo,this.transformPagePoint));const e=ph(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=oh(e.x,t.x),s=oh(e.y,t.y);return Math.sqrt(n**2+s**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;const{point:s}=e,{timestamp:i}=Qo;this.history.push({...s,timestamp:i});const{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=ch(t,this.transformPagePoint),Zo.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:s,resumeAnimation:i}=this.handlers;if(!this.dragSnapToOrigin&&this.startEvent||i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const a=ph("pointercancel"===e.type?this.lastMoveEventInfo:ch(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),s&&s(e,a)},!vd(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=s||window;const r=ch(sh(e),this.transformPagePoint),{point:l}=r,{timestamp:c}=Qo;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=t;d&&d(e,ph(r,this.history)),this.removeListeners=yo(ih(this.contextWindow,"pointermove",this.handlePointerMove),ih(this.contextWindow,"pointerup",this.handlePointerUp),ih(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){const e=getComputedStyle(t);(rh.has(e.overflowX)||rh.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const t=this.scrollPositions.get(e);if(!t)return;const n=e===window,s=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i=s.x-t.x,a=s.y-t.y;0===i&&0===a||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i,this.lastMoveEventInfo.point.y+=a):this.history.length>0&&(this.history[0].x-=i,this.history[0].y-=a),this.scrollPositions.set(e,s),Zo.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Uo(this.updatePoint)}}function ch(e,t){return t?{point:t(e.point)}:e}function dh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ph({point:e},t){return{point:e,delta:dh(e,mh(t)),offset:dh(e,uh(t)),velocity:hh(t,.1)}}function uh(e){return e[0]}function mh(e){return e[e.length-1]}function hh(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const i=mh(e);for(;n>=0&&(s=e[n],!(i.timestamp-s.timestamp>jo(t)));)n--;if(!s)return{x:0,y:0};s===e[0]&&e.length>2&&i.timestamp-s.timestamp>2*jo(t)&&(s=e[1]);const a=wo(i.timestamp-s.timestamp);if(0===a)return{x:0,y:0};const o={x:(i.x-s.x)/a,y:(i.y-s.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function xh(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function fh(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,s]=[s,n]),{min:n,max:s}}const gh=.35;function vh(e,t,n){return{min:yh(e,t),max:yh(e,n)}}function yh(e,t){return"number"==typeof e?e:e[t]||0}const bh=new WeakMap;class Ch{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){const{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new lh(e,{onSessionStart:e=>{t&&this.snapToCursor(sh(e).point),this.stopAnimation()},onStart:(e,t)=>{const{drag:n,dragPropagation:s,onDragStart:i}=this.getProps();if(n&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(a=n)||"y"===a?md[a]?null:(md[a]=!0,()=>{md[a]=!1}):md.x||md.y?null:(md.x=md.y=!0,()=>{md.x=md.y=!1}),!this.openDragLock))return;var a;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),gu
vendor: 3,885 bytes, line 101
101(e=>{let t=this.getAxisMotionValue(e).get()||0;if(fr.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const s=n.layout.layoutBox[e];if(s){t=Jp(s)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),i&&Zo.update(()=>i(e,t),!1,!0),Oc(this.visualElement,"transform");const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;const{dragPropagation:n,dragDirectionLock:s,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:o}=t;if(s&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(o),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),a&&Zo.update(()=>a(e,t),!1,!0)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{const{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,distanceThreshold:n,contextWindow:ah(this.visualElement),element:this.visualElement.current})}stop(e,t){const n=e||this.latestPointerEvent,s=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!s||!n)return;const{velocity:a}=s;this.startAnimation(a);const{onDragEnd:o}=this.getProps();o&&Zo.postRender(()=>o(n,s))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){const{drag:s}=this.getProps();if(!n||!wh(e,s,this.currentDirection))return;const i=this.getAxisMotionValue(e);let a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:n},s){return void 0!==t&&e<t?e=s?Vr(t,e,s.min):Math.max(e,t):void 0!==n&&e>n&&(e=s?Vr(n,e,s.max):Math.min(e,n)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;e&&$m(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:s,right:i}){return{x:xh(e.x,n,i),y:xh(e.y,t,s)}}(n.layoutBox,e),this.elastic=function(e=gh){return!1===e?e=0:!0===e&&(e=gh),{x:vh(e,"left","right"),y:vh(e,"top","bottom")}}(t),s!==this.constraints&&!$m(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&gu(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!$m(e))return!1;const n=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=function(e,t,n){const s=bp(e,n),{scroll:i}=t;return i&&(fp(s.x,i.offset.x),fp(s.y,i.offset.y)),s}(n,s.root,this.visualElement.getTransformPagePoint());let a=function(e,t){return{x:fh(e.x,t.x),y:fh(e.y,t.y)}}(s.layout.layoutBox,i);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=ip(e))}return a}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:s,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),r=this.constraints||{}
vendor: 9,050 bytes, line 101
101,l=gu(o=>{if(!wh(o,t,this.currentDirection))return;let l=r&&r[o]||{};!0!==a&&a!==o||(l={min:0,max:0});const c=s?200:1e6,d=s?40:1e7,p={type:"inertia",velocity:n?e[o]:0,bounceStiffness:c,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(o,p)});return Promise.all(l).then(o)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return Oc(this.visualElement,e),n.start(Ec(e,n,0,t,this.visualElement,!1))}stopAnimation(){gu(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),s=n[t];return s||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){gu(t=>{const{drag:n}=this.getProps();if(!wh(t,n,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(t);if(s&&s.layout){const{min:n,max:a}=s.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-Vr(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!$m(t)||!n||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};gu(e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();s[e]=function(e,t){let n=.5;const s=Jp(e),i=Jp(t);return i>s?n=bo(t.min,t.max-s,e.min):s>i&&(n=bo(e.min,e.max-i,t.min)),po(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),gu(t=>{if(!wh(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(Vr(i,a,s[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;bh.set(this.visualElement,this);const e=this.visualElement.current,t=ih(e,"pointerdown",t=>{const{drag:n,dragListener:s=!0}=this.getProps(),i=t.target,a=i!==e&&function(e){return bd.has(e.tagName)||!0===e.isContentEditable}(i);n&&s&&!a&&this.start(t)});let n;const s=()=>{const{dragConstraints:t}=this.getProps();$m(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||(n=function(e,t,n){const s=Od(e,jh(n)),i=Od(t,jh(n));return()=>{s(),i()}}(e,t.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,a=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Zo.read(s);const o=Nu(window,"resize",()=>this.scalePositionWithinConstraints()),r=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(gu(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),t(),a(),r&&r(),n&&n()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:a=gh,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:s,dragConstraints:i,dragElastic:a,dragMomentum:o}}}function jh(e){let t=!0;return()=>{t?t=!1:e()}}function wh(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const _h=e=>(t,n)=>{e&&Zo.update(()=>e(t,n),!1,!0)};let Sh=!1;class Nh extends e.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:s}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&s&&n.register(i),Sh&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Tu.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:s,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Sh=!0,s||e.layoutDependency!==t||void 0===t||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||Zo.postRender(()=>{const e=a.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),ud.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:s}=e;Sh=!0,s&&(s.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(s),n&&n.deregister&&n.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function kh(t){const[n,s]=gm(),a=e.useContext(io);return i.jsx(Nh,{...t,layoutGroup:a,switchLayoutGroup:e.useContext(Wm),isPresent:n,safeToRemove:s})}const Eh={pan:{Feature:class extends sp{constructor(){super(...arguments),this.removePointerDownListener=go}onPointerDown(e){this.session=new lh(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ah(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:s}=this.node.getProps();return{onSessionStart:_h(e),onStart:_h(t),onMove:_h(n),onEnd:(e,t)=>{delete this.session,s&&Zo.postRender(()=>s(e,t))}}}mount(){this.removePointerDownListener=ih(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends sp{constructor(e){super(e),this.removeGroupControls=go,this.removeListeners=go,this.controls=new Ch(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||go}update(){const{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:cm,MeasureLayout:kh}};function Ph(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover","Start"===n);const i=s["onHover"+n];i&&Zo.postRender(()=>i(t,sh(t)))}function Mh(e,t,n){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap","Start"===n);const i=s["onTap"+("End"===n?"":n)];i&&Zo.postRender(()=>i(t,sh(t)))}const Th=new WeakMap,Ah=new WeakMap,Vh=e=>{const t=Th.get(e.target);t&&t(e)},Lh=e=>{e.forEach(Vh)};function Fh(e,t,n){const s=function({root:e,...t}){const n=e||document;Ah.has(n)||Ah.set(n,{});const s=Ah.get(n),i=JSON.stringify(t);return s[i]||(s[i]=new IntersectionObserver(Lh,{root:e,...t})),s[i]}(t);return Th.set(e,n),s.observe(e),()=>{Th.delete(e),s.unobserve(e)}}const Dh={some:0,all:1};const Rh=Jm({...nh,...{inView:{Feature:class extends sp{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:s="some",once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:Dh[s]};this.stopObserver=Fh(this.node.current,a,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:s}=this.node.getProps(),a=t?n:s;a&&a(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends sp{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Nd(e,(e,t)=>(Mh(this.node,t,"Start"),(e,{success:t})=>Mh(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:!1===n?.tap})}unmount(){}}},focus:{Feature:class extends sp{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(vi){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=yo(Nu(this.node.current,"focus",()=>this.onFocus()),Nu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends sp{mount(){const{current:e}=this.node;e&&(this.unmount=fd(e,(e,t)=>(Ph(this.node,t,"Start"),e=>Ph(this.node,e,"End"))))}unmount(){}}}},...Eh,...{layout:{ProjectionNode:cm,MeasureLayout:kh}}},eh);
101a("\n  mutation SkipAgenticStep($input: SkipAgenticStepInput!) {\n    skipAgenticStep(input: $input) {\n      id\n      skipped_steps\n      task_id\n    }\n  }"),a("\n  fragment ProposalQcStep_SourcingSession on SourcingSession {\n    id\n    agent_messages {\n      id\n      role\n      content\n      response_id\n      has_error\n    }\n    sourcing_subspecialties {\n      id\n      name\n    }\n  }\n"),S({input:k().optional(),file:Z(File).optional()}).superRefine(({input:e,file:t},n)=>{e&&0!==e.trim().length||t||n.addIssue({path:["input"],code:G.custom,message:"Missing input or file"})}),a("\n  mutation SourceSpecialtiesByRfpForm($input: SourceSpecialtiesByRfpFormInput!) {\n    sourceSpecialtiesByRfpForm(input: $input) {\n      id\n      clinical_stage\n      expected_budget\n      expected_timeline\n      preparation_details\n      project_desc\n      project_title\n      vendor_requirement\n    }\n  }\n"),a("\n  mutation SourceSpecialtiesByRfpFile($file: Upload!) {\n    sourceSpecialtiesByRfpFile(file: $file) {\n      id\n      task_id\n      clinical_stage\n      expected_budget\n      expected_timeline\n      preparation_details\n      project_desc\n      project_title\n      vendor_requirement\n      agent_messages {\n        id\n        role\n        content\n        response_id\n      }\n    }\n  }\n"),S({isUploadRfp:X({required_error:"Please select one method to submit project details"})}),S({rfpFile:J().refine(e=>!!e,"Please upload a RFP to move forward").refine(e=>["application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword"].includes(e?.type),"Only .pdf, .docx, or .doc files are accepted")}),S({clinical_stage:ee([te.Preclinical,te.Clinical,te.Both]).refine(e=>e.trim().length>0,{message:"Please select type of project request"}),project_title:k().trim().min(1,"Enter project title"),project_desc:k().trim().min(1,"Enter project description"),preparation_details:k().trim().min(1,"Enter preparation details"),vendor_requirement:k().trim().min(1,"Enter vendor requirement"),expected_timeline:k().trim().min(1,"Enter expected project start date"),expected_budget:N().min(1,"Enter expected budget")}),a("\n  fragment ResultCard_SourcedCroFragment on SourcedCro {\n    id\n    is_shortlisted\n    vendor_company {\n      id\n      company_name\n      company_description\n      company_ipo_status\n      company_revenue\n      company_size\n      website_url\n      linkedin_url\n      crunchbase_url\n      product\n      logo_url\n      is_active\n      is_cromatic_vendor\n      vendor_company_subspecialties {\n        subspecialty {\n          name\n        }\n      }\n      vendor_company_locations {\n        country\n      }\n      vendor_company_types {\n        company_type\n      }\n      vendor_company_certifications {\n        certification_name\n      }\n    }\n  }\n"),a("\n  fragment ResultCard_SourcingSessionFragment on SourcingSession {\n    id\n    whiteglove_status\n    sourcing_subspecialties {\n      id\n      name\n      related_subspecialties\n    }\n  }\n"),a("\n  query SpecialtiesSearch_Query($filter: CroDbSubspecialtiesFilterInput) {\n    croDbSubspecialties(filter: $filter) {\n      id\n      name\n      specialty {\n        id\n        name\n      }\n    }\n  }\n"),a("\n  mutation SourcererResult_SourceCros($names: [String!]!, $sourcing_session_id: String!) {\n    sourceCros(\n      names: $names\n      sourcing_session_id: $sourcing_session_id\n    ) {\n      id\n    }\n  }\n"),e.createContext(null),a("\n  fragment QuoteComparison_SourcingSession on SourcingSession {\n    biotech_invoice {\n      id\n      payment_status\n    }\n    sourcing_quotes {\n      id\n      price\n      timeline\n      is_fastest\n      assessment\n      accepted_at\n      status\n      sourcing_session_id\n      negotiated_price\n      biotech_invoice {\n        payment_status\n      }\n      quote_metadata {\n        id\n        key\n        value\n      }\n\n      quote_attachments {\n        id\n        key\n        filename\n        content_type\n      }\n\n      vendor_company {\n        id\n        company_name\n        company_description\n        company_ipo_status\n        company_revenue\n        company_
101size\n        website_url\n        logo_url\n        vendor_company_subspecialties {\n          subspecialty {\n            id\n            name\n          }\n        }\n        vendor_company_locations {\n          country\n        }\n        vendor_company_types {\n          company_type\n        }\n        vendor_company_certifications {\n          certification_name\n        }\n      }\n    }\n  }\n"),a("\n  fragment QuotesStatusModal_SourcingSession on SourcingSession {\n    id\n    shortlisted_cros {\n      id\n      name\n      vendor_company {\n        logo_url\n      }\n    }\n    sourcing_quotes {\n      status\n      accepted_at\n      sourced_cro_id\n    }\n  }\n"),S({file:Z(File,{message:"Proof of payment is required."})});const Ih=a("\n  query SourcingSession_Query($id: String!) {\n    sourcingSession(id: $id) {\n      id\n      project_title\n      project_desc\n      preparation_details\n      vendor_requirement\n      clinical_stage\n      task_id\n      expected_timeline\n      expected_budget\n      quote_collection_limit\n      submitted_rfp_at\n      vendor_question_deadline\n      vendor_answer_deadline\n      vendor_proposal_deadline\n      vendor_selection_deadline\n      vendor_contract_deadline\n      vendor_interview_deadline\n      sourcing_subspecialties {\n        id\n        name\n      }\n      sourcing_attachments {\n        id\n        key\n        filename\n        signed_url\n        byte_size\n        formatted_filesize\n      }\n      sourced_cros {\n        id\n        name\n        score\n        is_shortlisted\n        vendor_company_id\n        vendor_company {\n          id\n          company_name\n          company_description\n          company_ipo_status\n          company_revenue\n          company_size\n          website_url\n          linkedin_url\n          crunchbase_url\n          product\n          logo_url\n          is_active\n          is_cromatic_vendor\n          vendor_company_subspecialties {\n            subspecialty {\n              name\n            }\n          }\n          vendor_company_locations {\n            country\n          }\n          vendor_company_types {\n            company_type\n          }\n          vendor_company_certifications {\n            certification_name\n          }\n        }\n      }\n    }\n  }\n"),Oh=a("\n  mutation ExtractFileRfp_Mutation($file: Upload!, $sourcing_session_id: String) {\n    extractFileRfp(file: $file, sourcing_session_id: $sourcing_session_id) {\n      id\n      project_title\n      project_desc\n      preparation_details\n      vendor_requirement\n      clinical_stage\n      task_id\n      sourcing_subspecialties {\n        id\n        name\n      }\n      sourcing_attachments {\n        id\n        key\n        filename\n        signed_url\n        byte_size\n        formatted_filesize\n      }\n    }\n  }\n");a("\n  mutation SourceRfpSpecialties_Mutation(\n    $clinical_stage: ClinicalStage!,\n    $project_title: String!,\n    $project_desc: String!,\n    $preparation_details: String!,\n    $vendor_requirement: String!,\n    $expected_timeline: String!,\n    $expected_budget: Float!,\n    $sourcing_session_id: String\n    ) {\n    sourceRfpSpecialties(\n      clinical_stage: $clinical_stage\n      project_title: $project_title\n      project_desc: $project_desc\n      preparation_details: $preparation_details\n      vendor_requirement: $vendor_requirement\n      expected_timeline: $expected_timeline\n      expected_budget: $expected_budget\n      sourcing_session_id: $sourcing_session_id\n    ) {\n      id\n    }\n  }\n"),a("\n  subscription SourceRfpSpecialties_Subscription($task_id: String!) {\n    sourceRfpSpecialties(task_id: $task_id) {\n      task_id\n      sourcing_session_id\n      data {\n        id\n        project_title\n        project_desc\n        preparation_details\n        vendor_requirement\n        clinical_stage\n        sourcing_subspecialties {\n          id\n          name\n        }\n        sourced_cros {\n          id\n          name\n          score\n          is_shortlisted\n          vendor_company_id\n          vendor_company {\n            id\n            company_name\n            company_description\n            company_ipo_status\n            company_revenue\n            company_
101size\n            website_url\n            linkedin_url\n            crunchbase_url\n            product\n            logo_url\n            is_active\n            is_cromatic_vendor\n            vendor_company_subspecialties {\n              subspecialty {\n                name\n              }\n            }\n            vendor_company_locations {\n              country\n            }\n            vendor_company_types {\n              company_type\n            }\n            vendor_company_certifications {\n              certification_name\n            }\n          }\n        }\n      }\n      status\n    }\n  }\n"),a("\n  mutation SourceCros_Mutation($names: [String!]!, $sourcing_session_id: String!) {\n    sourceCros(\n      names: $names\n      sourcing_session_id: $sourcing_session_id\n    ) {\n      id\n    }\n  }\n");const Bh=a("\n  subscription SourceCros_Subscription($task_id: String!) {\n    sourceCros(task_id: $task_id) {\n      task_id\n      status\n      data {\n        id\n        sourced_cros {\n          id\n          name\n          score\n          is_shortlisted\n          vendor_company_id\n          vendor_company {\n            id\n            company_name\n            company_description\n            company_ipo_status\n            company_revenue\n            company_size\n            website_url\n            linkedin_url\n            crunchbase_url\n            product\n            logo_url\n            is_active\n            is_cromatic_vendor\n            vendor_company_subspecialties {\n              subspecialty {\n                name\n              }\n            }\n            vendor_company_locations {\n              country\n            }\n            vendor_company_types {\n              company_type\n            }\n            vendor_company_certifications {\n              certification_name\n            }\n          }\n        }\n      }\n    }\n  }\n"),qh=a("\n  mutation CancelAiTask_Mutation($sourcingSessionId: String!, $taskId: String!) {\n    cancelAiTask(sourcing_session_id: $sourcingSessionId, task_id: $taskId) {\n      id\n    }\n  }\n"),zh=e=>{const{onNextStep:t}=e;return i.jsxs("div",{className:"flex flex-col items-center py-20 justify-center",children:[i.jsx("img",{src:"/assets/welcome_graphic-Dl5BCQJP.webp",alt:"Sourcerer Welcome Graphic",width:171,height:157}),i.jsxs("div",{className:"space-y-2",children:[i.jsx("div",{className:"flex justify-center items-center flex-wrap",children:i.jsxs("div",{className:"flex items-center flex-wrap justify-center",children:[i.jsx("div",{className:"text-lg font-semibold text-center text-hoki-800",children:"Welcome to the Cromatic Sourcerer"}),i.jsx("div",{className:"w-[14px] shrink-0"}),i.jsx("span",{className:"typography-h7 text-primary w-14 h-[25px] bg-external-cool-white flex justify-center items-center rounded-lg",children:"Beta*"})]})}),i.jsxs("p",{className:"font-normal text-center text-hoki-800",children:["The Sourcerer helps you gather quotes from relevant",i.jsx("br",{}),"vendors for your project."]})]}),i.jsx(Be,{type:"button",color:"bleu",className:"font-semibold !py-3 !px-8 mt-4",onClick:t,"data-testid":"button:get-started",children:"Submit Project"}),i.jsxs("p",{className:"border border-primary border-opacity-30 rounded-lg text-center md:w-[766px] p-4 typography-smallparagraph bg-external-cool-white text-primary mt-[66.5px]",children:["*Cromatic","'","s"," ",i.jsx("strong",{children:"Sourcerer"})," ","is in beta. If you have any feedback, email us at"," ",i.jsx("strong",{children:u})]})]})},Hh=t.createContext(null),Zh=()=>{const{onBack:e,onNext:n,isNextButtonOutline:s}=(()=>{const e=t.useContext(Hh);if(!e)throw new Error("useSourcererNavigatorContext has to be used within <SourcererNavigatorContext.Provider>");return e})();return i.jsxs("div",{className:"flex flex-row gap-x-3 justify-end font-medium",children:[i.jsx("button",{type:"button",className:"py-3 px-4 text-hoki-600 hover:text-hoki-800",onClick:e,children:"Back"}),i.jsx("button",{type:"button",className:o("disabled:opacity-60 py-3 px-4 rounded-md","w-full max-w-[195px]",s?"border border-primary text-primary hover:shadow-md bg-white":"bg-primary hover:shadow-button text-white"),onClick:n,"data-testid":"button:continue",children:i.jsx("span",{className:"inline-flex items-center gap-x-1",children:"Continue"})})]})},Uh=t=>e.createElement("svg",{width:52,height:54,viewBox:"0 0 52 54",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{d:"M49.6302 39.2593C50.0068 40.2977 49.4703 41.4448 48.4319 41.8214L17.7377 52.9532C16.6993 53.3298 15.5523 52.7933 15.1757 51.7549L1.61938 14.3758C1.24279 13.3374 1.77928 12.1903 2.81767 11.8138L33.5118 0.681883C34.5502 0.305289 35.6973 0.841781 36.0739 1.88017L49.6302 39.2593Z",fill:"#DBEAFE"}),e.createElement("path",{d:"M35.533 19.9602L15.834 27.1045L16.1718 28.0359L35.8708 20.8916L35.533 19.9602Z",fill:"white"}),e.createElement("path",{d:"M36.411 22.3821L16.7119 29.5264L17.0497 30.4577L36.7487 23.3135L36.411 22.3821Z",fill:"white"}),e.createElement("path",{d:"M37.2899 24.803L17.5908 31.9473L17.9286 32.8786L37.6276 25.7344L37.2899 24.803Z",fill:"white"}),e.createElement("path",{d:"M14.4513 28.9338C14.8084 28.9338 15.0978 28.6443 15.0978 28.2872C15.0978 27.9301 14.8084 27.6406 14.4513 27.6406C14.0942 27.6406 13.8047 27.9301 13.8047 28.2872C13.8047 28.6443 14.0942 28.9338 14.4513 28.9338Z",fill:"white"}),e.createElement("path",{d:"M31.7489 9.52566L12.0498 16.6699L12.3876 17.6013L32.0866 10.457L31.7489 9.52566Z",fill:"white"}),e.createElement("path",{d:"M32.6268 11.9475L12.9277 19.0918L13.2655 20.0232L32.9646 12.8789L32.6268 11.9475Z",fill:"white"}),e.createElement("path",{d:"M33.5057 14.3694L13.8066 21.5137L14.1444 22.445L33.8435 15.3008L33.5057 14.3694Z",fill:"white"}),e.createElement("path",{d:"M10.63 18.3986C10.9871 18.3986 11.2765 18.1091 11.2765 17.752C11.2765 17.3949 10.9871 17.1055 10.63 17.1055C10.2729 17.1055 9.9834 17.3949 9.9834 17.752C9.9834 18.1091 10.2729 18.3986 10.63 18.3986Z",fill:"white"}),e.createElement("path",{d:"M39.3543 30.4964L19.6553 37.6406L19.9931 38.572L39.6921 31.4277L39.3543 30.4964Z",fill:"white"}),e.createElement("path",{d:"M40.2323 32.9173L20.5332 40.0615L20.871 40.9929L40.57 33.8486L40.2323 32.9173Z",fill:"white"}),e.createElement("path",{d:"M41.1102 35.3391L21.4111 42.4834L21.7489 43.4148L41.448 36.2705L41.1102 35.3391Z",fill:"white"}),e.createElement("path",{d:"M18.2354 39.3683C18.5925 39.3683 18.882 39.0789 18.882 38.7218C18.882 38.3647 18.5925 38.0752 18.2354 38.0752C17.8783 38.0752 17.5889 38.3647 17.5889 38.7218C17.5889 39.0789 17.8783 39.3683 18.2354 39.3683Z",fill:"white"}),e.createElement("path",{d:"M51.8936 53.6316H15.2432V9.87012H51.8936V53.6316Z",fill:"white"}),e.createElement("path",{d:"M51.8936 52.6316C51.8936 53.1839 51.4459 53.6316 50.8936 53.6316H16.2432C15.6909 53.6316 15.2432 53.1839 15.2432 52.6316V10.8701C15.2432 10.3178 15.6909 9.87012 16.2432 9.87012H50.8936C51.4459 9.87012 51.8936 10.3178 51.8936 10.8701V52.6316ZM15.8897 51.985C15.8897 52.5373 16.3375 52.985 16.8897 52.985H50.247C50.7993 52.985 51.247 52.5373 51.247 51.985V11.5167C51.247 10.9644 50.7993 10.5167 50.247 10.5167H16.8897C16.3375 10.5167 15.8897 10.9644 15.8897 11.5167V51.985Z",fill:"#3264ED"}),e.createElement("path",{d:"M24.3134 46.1383H20.9128C20.8696 46.1382 20.8283 46.1211 20.7977 46.0905C20.7672 46.06 20.75 46.0186 20.75 45.9755V42.5749C20.75 42.5317 20.7672 42.4904 20.7977 42.4598C20.8283 42.4293 20.8696 42.4122 20.9128 42.4121H24.3134C24.3565 42.4122 24.3979 42.4293 24.4284 42.4598C24.4589 42.4904 24.4761 42.5317 24.4762 42.5749V45.9755C24.4761 46.0186 24.4589 46.06 24.4284 46.0905C24.3979 46.1211 24.3565 46.1382 24.3134 46.1383Z",fill:"#3B84FB"}),e.createElement("path",{d:"M47.0869 17.1055H20.0498V18.0962H47.0869V17.1055Z",fill:"#E2E8F0"}),e.createElement("path",{d:"M47.0869 28.7607H20.0498V29.7515H47.0869V28.7607Z",fill:"#E2E8F0"}),e.createElement("path",{d:"M46.3871 42.4541H26.2559V43.4448H46.3871V42.4541Z",fill:"#E2E8F0"}),e.createElement("path",{d:"M47.0869 19.6885H20.0498V20.6792H47.0869V19.6885Z",fill:"#E2E8F0"}),e.createElement("path",{d:"M47.0869 31.3438H20.0498V32.3345H47.0869V31.3438Z",fill:"#E2E8F0"}),e.createElement("path",{d:"M46.3871 45.0371H26.2559V46.0278H46.3871V45.0371Z",fill:"#E2E8F0"}),e.createElement("path",{d:"M47.0869 22.2715H20.0498V23.2622H47.0869V22.2715Z",fill:"#E2E8F0"}),e.createElement("path",{d:"M47.0869 25.5166H20.0498V26.5073H47.0869V25.5166Z",fill:"#E2E8F0"}),e.createElement("path",{d:"M46.3871 33.9277H26.2559V34.9185H46.3871V33.9277Z",fill:"#E2E8F0"}),e.createElement("path",{d:"M46.3871 47.6201H26.2559V48.6108H46.3871V47.6201Z",fill:"#E2E8F0"}),e.createElement("line",{x1:20.0498,y1:39.7537,x2:47.0872,y2:39.7537,stroke:"#E2E8F0",strokeWidth:.71922}),e.createElement("line",{x1:20.0498,y1:37.7156,x2:47.0872,y2:37.7156,stroke:"#E2E8F0",strokeWidth:.71922}),e.createElement("rect",{x:16,y:42.54,width:36,height:6,fill:"#3264ED"})),Qh=t=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:51,height:54,viewBox:"0 0 48 45",fill:"none",...t},e.createElement("path",{d:"M36.7178 43.0515C36.7178 43.6038 36.2701 44.0515 35.7178 44.0515H1.06738C0.5151 44.0515 0.0673828 43.6038 0.0673828 43.0515V1.29004C0.0673828 0.737755 0.515098 0.290039 1.06738 0.290039H35.7178C36.2701 0.290039 36.7178 0.737754 36.7178 1.29004V43.0515ZM0.713956 42.4049C0.713956 42.9572 1.16167 43.4049 1.71396 43.4049H35.0712C35.6235 43.4049 36.0712 42.9572 36.0712 42.4049V1.93661C36.0712 1.38432 35.6235 0.936608 35.0712 0.936608H1.71396C1.16167 0.936608 0.713956 1.38432 0.713956 1.93661V42.4049Z",fill:"#3B84FB"}),e.createElement("path",{d:"M25.8393 22.1709H5.77402C5.27697 22.1709 4.87402 22.5738 4.87402 23.0709C4.874
10102 23.568 5.27697 23.9709 5.77402 23.9709H25.8393C26.3363 23.9709 26.7393 23.568 26.7393 23.0709C26.7393 22.5738 26.3363 22.1709 25.8393 22.1709Z",fill:"#BFDBFE"}),e.createElement("path",{d:"M25.8393 40.7617H5.77402C5.27697 40.7617 4.87402 41.1647 4.87402 41.6617C4.87402 42.1588 5.27697 42.5617 5.77402 42.5617H25.8393C26.3363 42.5617 26.7393 42.1588 26.7393 41.6617C26.7393 41.1647 26.3363 40.7617 25.8393 40.7617Z",fill:"#BFDBFE"}),e.createElement("rect",{x:4.57324,y:25.6875,width:27.3379,height:11.8062,rx:2,fill:"#DBEAFE"}),e.createElement("path",{d:"M31.0111 4.5H5.77402C5.27697 4.5 4.87402 4.90294 4.87402 5.4C4.87402 5.89706 5.27697 6.3 5.77402 6.3H31.0111C31.5082 6.3 31.9111 5.89706 31.9111 5.4C31.9111 4.90294 31.5082 4.5 31.0111 4.5Z",fill:"#BFDBFE"}),e.createElement("rect",{x:4.57324,y:8.0166,width:27.3379,height:11.8062,rx:1,fill:"#DBEAFE"}),e.createElement("path",{d:"M43.6534 28.3381L36.8926 21.5773L39.7459 17.2979L47.9329 25.4848L43.6534 28.3381Z",fill:"#1D4ED8"}),e.createElement("path",{d:"M36.6043 22.8623C34.6716 24.3201 32.317 24.8427 28.1566 24.8427H27.7007L27.6111 25.2898C26.5798 30.4488 23.0826 40.5856 22.6689 41.7754L32.7668 31.6775C32.7957 31.6486 32.8319 31.6336 32.8647 31.6125C32.7668 31.4112 32.7073 31.1877 32.7073 30.9492C32.7073 30.1057 33.3912 29.4219 34.2346 29.4219C35.0781 29.4219 35.7619 30.1057 35.7619 30.9492C35.7619 31.7932 35.0786 32.477 34.2346 32.477C34.0189 32.477 33.8143 32.4314 33.6286 32.3503C33.6053 32.3892 33.5864 32.4303 33.553 32.4637L23.4551 42.5621C24.641 42.1501 34.7817 38.6518 39.9413 37.6199L40.3883 37.531V37.0751C40.3883 32.9146 40.911 30.5594 42.3693 28.6268L36.6043 22.8623Z",fill:"#3B84FB"})),Wh=({onClick:e,children:t,selected:n,...s})=>i.jsx("button",{type:"button",onClick:e,className:o("flex !w-[267px] flex-col justify-start items-center rounded-[20px] border-2  relative pt-[51px] px-5 h-[210px] pb-5",n?"border-primary bg-external-cool-white":"border-hoki-200"),...s,children:t}),$h=({isUploadRfp:e,setIsUploadRfp:t,errorMessage:n})=>i.jsxs("div",{className:"flex flex-col",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx("p",{className:"text-2xl text-center font-semibold text-hoki-800",children:"First, tell us about your project."}),i.jsx("p",{className:"text-xl font-normal text-hoki-600 text-center",children:"How would you like to submit project details?"})]}),i.jsxs("div",{className:"flex flex-col md:flex-row gap-x-6 gap-y-4 items-center mt-7",children:[i.jsxs(Wh,{onClick:()=>t(!0),selected:!0===e,"data-testid":"card-button:upload-rfp",children:[i.jsx(Uh,{}),i.jsx("p",{className:"typography-smallparagraph font-medium mt-4",children:"Upload Request for Proposal"}),i.jsx("p",{className:"typography-h7 font-normal mt-1",children:"Example document type: RFP, quote, project description"}),!0===e?i.jsx(We,{className:"absolute right-4 top-3 text-primary"}):i.jsx("div",{className:"w-[28px] h-[28px] rounded-full border border-hoki-200 absolute right-4 top-3"})]}),i.jsxs(Wh,{onClick:()=>t(!1),selected:!1===e,"data-testid":"card-button:manual-rfp",children:[i.jsx(Qh,{}),i.jsx("p",{className:"typography-smallparagraph font-medium mt-4",children:"Enter project details manually"}),i.jsx("p",{className:"typography-h7 font-normal mt-1",children:"Tell us about your project in a few simple steps"}),!1===e?i.jsx(We,{className:"absolute right-4 top-3 text-primary"}):i.jsx("div",{className:"w-[28px] h-[28px] rounded-full border border-hoki-200 absolute right-4 top-3"})]})]}),i.jsxs("div",{className:"text-sm font-normal mt-2",children:[i.jsx("span",{className:"text-hoki-800",children:"Here are "}),i.jsx(d,{to:s.RfpTipsBlogPost,target:"_blank",className:"text-primary hover:underline font-medium",children:"some tips"}),i.jsx("span",{className:"text-hoki-800",children:" for writing an RFP"})]}),i.jsx("div",{className:"relative",children:n&&i.jsx("div",{className:"text-red-600 text-sm absolute mt-1.5",children:n})}),i.jsx("div",{className:"mt-12",children:i.jsx(Zh,{})})]}),Yh=e=>i.jsxs("div",{className:"flex flex-col gap-6",children:[i.jsx(ai,{...e}),i.jsx(Zh,{})]}),Kh=({rfpFile:e,setRfpFile:t,setShouldUploadRfp:n,removeRfpFile:s,errorMessage:a})=>i.jsxs("div",{className:"flex flex-col",children:[i.jsx("div",{children:i.jsx("p",{className:"text-2xl font-semibold text-comet-900 text-center",children:"Now, upload your project details."})}),i.jsx("div",{className:"rounded-lg border-hoki-200 border-dashed border-2 mt-9",children:i.jsx(Vt,{accept:{"application/pdf":[".pdf"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[".docx"],"application/msword":[".doc"]},maxFiles:1,onDrop:e=>{t(e[0]),n(!0)},multiple:!1,renderZone:()=>i.jsxs("div",{className:"flex flex-col justify-center items-center gap-3 min-h-[193px] h-full",children:[i.jsx("div",{className:"text-primary",children:e?i.jsxs("div",{className:"border relative",children:["application/pdf"===e.type?i.jsx(be,{className:"w-[64px] h-[64px]"}):i.jsx(Ce,{className:"w-[64px] h-[64px]"}),i.jsx("button",{type:"button",onClick:e=>{e.stopPropagation(),s()},children:i.jsx(Qe,{className:"absolute -top-2.5 -end-2.5 text-hoki-600 hover:text-hoki-700"})})]}):i.jsx(je,{})}),e?i.jsxs("div",{className:"flex flex-col items-center gap-3",children:[i.jsx("div",{className:"text-center text-hoki-600 line-clamp-1",children:e.name}),i.jsx("p",{className:"text-primary text-center text-sm md:text-base",children:"Replace"})]}):i.jsxs("p",{className:"text-hoki-500 text-center text-sm md:text-base",children:["Drag and drop file here, or"," ",i.jsx("span",{className:"text-primary",children:"click here"})," ","to select."]})]}),testId:"dropzone:rfp"})}),i.jsx("div",{className:"relative",children:a&&i.jsx("div",{className:"text-red-600 text-sm absolute mt-1.5",children:a})}),i.jsx("div",{className:"mt-12",children:i.jsx(Zh,{})})]}),Gh=({label:e,onCancel:t,loadingCancel:n})=>i.jsxs("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-50",children:[i.jsx("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-40 bg-mercury-900"}),i.jsx("div",{className:"absolute top-1/2 transform -translate-y-1/2 w-full flex justify-center",children:i.jsxs("div",{className:"w-4/5 max-w-[775px] min-h-[311px] flex flex-col gap-4 md:gap-8 p-5 md:px-24 justify-center text-center bg-white rounded-xl shadow border border-hoki-200",children:[i.jsx("div",{className:"text-center text-hoki-700 text-xl",children:e}),i.jsx("div",{className:"text-center text-hoki-700 text-lg font-semibold",children:"Do not close this tab while we process your request."}),i.jsx("div",{className:"w-full bg-hoki-100 rounded-full h-4 overflow-hidden",children:i.jsx("div",{className:"w-full h-4 animate-progress origin-left-right bg-primary rounded-full"})}),t&&i.jsx("div",{children:i.jsx("button",{type:"button",className:o("mt-4 md:mt-8 text-primary font-medium",n?"opacity-70":"hover:underline"),onClick:t,disabled:n,children:"Cancel"})})]})})]}),Xh=({onCancel:e,loadingCancel:t})=>i.jsxs("div",{className:"fixed top-0 left-0 right-0 bottom-0 z-50",children:[i.jsx("div",{className:"fixed top-0 left-0 right-0 bottom-0 opacity-40 bg-mercury-900"}),i.jsx("div",{className:"absolute top-1/2 transform -translate-y-1/2 w-full flex justify-center px-3",children:i.jsx("div",{className:"py-12 flex-grow max-w-[775px] flex flex-col gap-9 justify-center bg-white rounded-lg px-6",children:i.jsxs("div",{className:"flex flex-col items-center max-w-[500px] w-full mx-auto text-center",children:[i.jsx("img",{src:"data:image/webp;base64,UklGRqwOAABXRUJQVlA4WAoAAAAQAAAA7AAAxQAAQUxQSMsHAAABoFXbetbs2hIi4ZGAhEjAwYmDLw6Kg+KAOuA4iAQkPBIiYV80/+UNtxExAZhSUV6H4Ambxb0iv4OTp2NekcXvB2MEVll7mcfCtudjiW3on8qnUTSzZUbZGnGbqzXy/VthrpTkewzbSqfK8fu/IbDp9Ikm4iKv83TSCbZNmKmDaeW3rr+wT5Rjte0jbWSeROtCH8QWF6bZKBuaPluLaKbpZEvbx8QGXGfpzaYqXeAbXJjkFxurdMGnal8m6c3mKl2wlQWPST7YUaULnGbiZjDJ5m
101LXuHYB7HaGc7cGsyzK3q8+MIu11grMJO3sr9LBvCKTka+nQL6k2cXS1xRJHIHx3ejFcjND8EOQvo1WuClCGONo8U9Zuc+R0SHWBgero0wRJA6wof7FhmGOsGi3HfXCpnaOINpJTYOjjZo5goQuKqgXNn5PErDFDgsaHq1oZwnyaebRMja7pgmQjzbZ0NKxvZ8nAOsnVp1oenSIMlPAVqOmTezAMFfYy1TQ1LKrnSs4LdnQ9uijZq6AZc9RnTR4sfM2W4BohuRha17sHWW6gK2A1JeU/GP/c8JgS0iea+Y/jmgn7Kgg9SUA/uOQYcLkU0MyuJWD2vkC5FM1sM4YIJ9foZsyQD4/opMGyOcn6GYNkM8v6LwB8hmPduIA+QwXpg6QXXN6jcBl7gDZNHGZfYht9gDZlLwMtiHi/AGy7QaD0D6A9CD+MbgxjmcVbszIo7r+/1vWMY4b09BI+v6SHULl9uyh8XIFEtlXza1Fg7v7x6RKZmdv9zvLCLy9hdmQcd3kd2QIe3chR5vCuvW1uDd/dyz0mfse4/+/Y8vJL46BIfTutMClJPIXVe6C5ua2nJrUzt/cbmO9OXNlVqTdj7gh4hD7zcF8vtQiv26/aDGkDhHuDpDVWfyJY8T7+zvHoNyXW/+Yawx3X39uHGN/DBzzegrLIDQPwY6yPIR1FP8Q/CjHQ9hH0YdwjkLzDEIvvTL2GWi3LeOfAbubzP+PwPRDSMVHsPQzPkV5ArafmJhyt2Kk7425ARBSe06CHsPZEHn9MzmJ7KvmtrZ+C2wqZIyStIO9mFTJ7OztbuvTzwIxETMnSe5jLcyGjOsmtxWG2BNcEi9+RzNUyNGmYF3fBbd99XOATcnXP6a3oWLBlvmz4xDQ+LUAWJiNMhLngf1XAPBfHhDNMYx0FbjpkS/5OmCUpa+BtpzKXxe6HUgqyYiT5a8vF8jrXy+EzIq/3vVSSe0kGVj7Al5MXqYT9i+1+Pu3ToKihi/H7NkLxroFU+i0y5b5NCo2vSZy7RJNau/npsl2oU/Z5yB9Qgr97DSZPrQJ100xz532hO8mE6V9ovmS2GnH7ZqXksHd0tWH9gu+j+J2zcXk+47OTiGB0EPlfg5m/Q19OkWTEO0guF1hPt7Q3olrAkts5nG/awHlfnyvI4UlNtpww66F/GQj1ytmsGiTE3e8FESkX/zJ0GbtRZuBaAM1t4SQOzL8UWmydNtzMHuVCu5ZYkpNJvyGoql0uwoA0YoFdy3h6zDIr+4XTRt0oykB1lCy4cbFWoN7jt1cGSD+Sm2Ycu121AAw1u/HhjkP3WKDqT+7UR7Fp59/FFu/41H4fvFRuH6UJ2EHcE9CBjielT4JDEDzJHSA9VmFJxGq9gb0D+JTZfcGUZ7DXme0juE5bFUOtgH9Y3BVHjgbRHkKa9UOSKxjeAq26gDgG9A/BKkKABAaRHkG0Br9WhrwfAifmviFrQHXZ+BraL6MNojmEdgq+YLEOp6PwMSaNQHbgPYJINS4FHwDNU9gr9ky2Ov4fgKu5sgh1NE+AKn5v8BonZr5g1ZcBZBYxfcD+FRoCWwd7fz5ChbB16mZvqVGirBX8T19iBVLGUIV7fSFCldhtEpNI9lklvYKXwGJNdzaSGSUSVor9hrYKi4tTCR5yRyZiqMKvupqYfmtKePs1EDLQh32Gm4NfILL138kX1PzKdMGCDVc6vaUAFj4LTPjy9jCaE2os4kNgOjXjpldKkwDSKygr0IgqQAQ+C1Tg1i2tICtiVIlSh4AHJOnmZpQtjaBr2CogigtAE1xmZq9zLXBXkFfBbNbYGE6YmrXsq0RQkWUKpjTwGcoU2PKjlZGyxjqIAc+OTs10KL/W0FiGX0dNhsm6VN0NYOtiFJnznOSfFFsB1/GUAcXM4q5XYrYAXsZfR00s00OYpF0QCjTBj61YXZDke1htCRIAxMZr91ievci1wMSc9Gg5UcwxWuR7wKb49bEujkyRXsf+FyUFmafI2jJ0Qk7Y4KhBc5J+pRcvbAsMUHXYpcC2WRefIl2A3wqmgZuzdiD1HlZSjgA9gTfDcQnbCAZt3lBLJEBEBK0deYAYJXfgokNJcsIEhN8mxocwJvJaGZmz8TrHIPZ0ODN7DUzyx4SAWO6HF2VY/6YGcAPpQWhSnMqc7OOZFlqKiLzFnMrIx0FccX3cpz2yzB/YHLNQML8bvAtkaQFsBSskyNhoH+ZYJEWkgwA1pxibtfIcf4xGT3y9osCbJm4TI15M6umm3kzeRrkFyY34PzoV1gws3KxcOslF7/VotSmInACZlkMplUW59+RpaHXTpJxMyh2KVrrMLee9drLkgyCStGUP2RyQoPQC+5cUW9T24HJ3X+gsU9c7v7O8NtXgyv8ZoKh9o7sxC4AVlA4ILoGAACQNQCdASrtAMYAPp1GnkwsKCmmJPEbWLATiWNu4MBj+AMMB+Gf4geQB9ACc7qwIEfP8z31fKOfAc4eQ/1lfoD/X+4BznPMB+wH7Le8F6MP7f6gH9a/2PWX+gn+1Xpw+yB/Zv+z6Ymq2eUv7N+I/hZ/kbUfcgoGhKNZC9pLLF5oe4PrRWPsVcB57BhUdudwESCd7NrHMJR7htMG031S5rLRJCwxvsZeR30PmpUhqhiGI/QSLL1z6EQl76DlyfwF5L9hk9/ugEUosN+OgHr8JezivGD5UVGq5nHgc766AWJZYLtagpojTFvn+yaxqo5V8xFFlhx3pzGLfD4ycI9o2zmGDQ4Iujd2phgcyAEdr9syNY/iC6KHRvUTrOZLV57yDoikiWL8ciqMa2jHSWf/rrwj2cvsoa8i0UDX+quQaU0hyJLUiBv6FOrD2VrD977GhOHwYoABk1QS99ygsx/8w0YDw2cRN1PzcHkgake5pspa5os8G0wqzSKvKoOsKhzgLamiJExeizwLpypYGRKnw0LXQQllTiiIjBrh6yc+F4YnvlwdKdjCzFXlyghtfdPwScX1T9sjUAD9FB
101ID6RJ4NHmp7yq+wUuSwUoN3UUH9w6rg6yRTrcOaB9LKuuY2jLiuHxD1XsvejgaAqL+Uev8Xor6X/4+RZj6OKicITuuozGYS9mSQM4fKkYg2K1+6hR2H7lR01fzURK2Nsu+v6MpTynpnL2ORdxBdv8PjwXtjwUXUQr1Mb9M9/LRaIfx7Gy6JPQFE5KJ8gYxDU09EGyb50r0ExCYyrlVHnjcVjOqUOkk7mk1VG7CRiKZl3soP+OGm29OLQ0xtRZL7FJNYQit561Kw7U/pKgg/4mf/8SC//4nMPihu6WfmLu0qZRvL0p6XByydHIJrUtF6uTV6aHHAx0tA8QB7DVYj1fGVxsTscUkjgquDXc9CL03YVzElzBBNJE5xrgvwScxmLlez9HB8KFhSECUf6iWt12UdqqDEAEDD8jDnRAmXxu+Rnqg3Wh6WnStSPs3oHV4LKllHerJqq7Au22HeLRlC8d56DPFHrk2EyVBQDs7Vh6cDjFT3fKqeTcEn4Bf/XCwmNsgHIfWtx441ETSuiwut1PeZ+vlcyrkqfTrUZNhP3Ho9WWRDZ6h2al3KsQjLd4+E+ahMU2n64aFEIplcw/v3nyN1OIkuK6oE8Ul+aTNIzZjBjJyMqmoofwDEo746pj64Pgbg2AYvXIMlmvBtag5Sk5rM1XyIX7I4v39vzvFaNfBJFM4LfdEyCxd7+wEBdoOSOBSvzZtg80dtADwi2ZPPFQtZmD2FPxdfeNekK3mQHVQfG1AhO49f3OpTxjKWuFuoGe2ugGH//6QTomiIfu1X0iZ6Q1siDApocypPEK6ocfInjwy4QueYIW/43Z4XJVg+lRzvenpM0//EYhT6K6Ldu912tymHn4flUo9pFTle64ABEKFHeqHsosmDe53Ags//W2l7jMs07TfehlE9cdgElpwZpRsTDaibJAv/jFbW/f0MYKLmq3eIxpUQrQEBgylRYGlxjAAEUQMbqk8mEfgLbHj8wEhP8V3rP+XGq/bt/lVxmqxPZsCOn5V5h5nU2L6kOxsqB1Fx9mkwN73EjOfKA/3hB49OfdVrBhussWt1Vu1PpDPI3rOP49ttteCHYCAjA5VuLhYtBEazJkaMk8OL9eioTFz+KLL/CN4V1zMwePGjbIJkuran3A8ics0OzDiKmM5ftfsGiNSNTgbdz/tyL+rC3zN8pSxvfuCaCizNVigM1RN1gA9qmjyL3ykVeaaItoT8UrJho59UF9WJXr6Lr/xrVk3ZbjFgJj6BySyqX6KVDbxQfyLgPHn8UXSsXHWeaTlV5q9PV/kCjQzCfpe1A7hlGhtKzABLEPCIjB83iDv/OdlEAo5P7tkehLgA/jy8OYItKR+E4K4Brp3Zrx6VBj3QhhBd5TTCT2WQACAlNTQePg7kFjLktHCXQW/JJbm74Qs6WtfPDjFdYNJSQyIdcJr1hZQ/nMgAFGQSPSWFbSV1Ulesc73EoTjb+3jjRbT+ifR2QS1QQOzyms584emukKr8nCAm5Q31aNy/hUiipCJvglg3B+MwFQPJplvKrrky89Xu2z7zdBad9bAX9z6cKG4QPpNHci54hR1vESVa7XTjVM3fHoSD5H2dv3rPXvruNxmvlIO3S7kLNntss1LekGjSkAxIAvlsCYSxi5Ae8rNKWqhlvhsdzo2LcVBtfYTvBBR4b1t/ot50xGoVQr28o44WLN6AnOD9tv2KnZ/3MdF8AA=",alt:"Sourcing Vendor Graphic",width:158,height:131}),i.jsx("div",{className:"text-2xl text-comet-900 font-semibold mt-3",children:"Your request has been submitted"}),i.jsx("div",{className:"text-xl text-hoki-700 mt-2",children:"Please wait while we match your project with vendors that provide the required services."}),i.jsx("div",{className:"text-hoki-700 text-lg font-semibold mt-9",children:"Do not close this tab while we process your request."}),i.jsx("div",{className:"w-full bg-hoki-100 rounded-full h-4 overflow-hidden mt-5",children:i.jsx("div",{className:"w-full h-4 animate-progress origin-left-right bg-primary rounded-full"})}),i.jsx("div",{children:i.jsx("button",{type:"button",className:o("mt-8 text-primary font-medium",t?"opacity-70":"hover:text-bleu-700"),onClick:e,disabled:t,children:"Cancel"})})]})})})]});function Jh({selectedQuotes:e,setSelectedQuotes:t,onTopUp:n}){const{balance:s}=mt(),a=e>s;return i.jsxs("div",{children:[s<3&&i.jsx("div",{className:"bg-red-50 border border-red-200 rounded-lg p-6 mb-6",children:i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx("div",{className:"w-6 h-6 bg-red-100 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:i.jsx("span",{className:"text-red-600 text-sm font-bold",children:"!"})}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-semibold text-red-900 mb-2",children:"Insufficient Tokens"}),i.jsxs("p",{className:"text-red-800 text-sm mb-4",children:["You need at least 3 tokens to start quote collection. You currently have"," ",s," ","tokens."]}),i.jsx("button",{type:"button",onClick:n,className:"bg-red-600 text-white px-4 py-2 rounded-lg text-sm font-medium hover:bg-red-700 transition-colors",children:"Top Up Tokens"})]})]})}),s>=3&&a&&i.jsx("div",{className:"bg-orange-50 border border-orange-200 rounded-lg p-6 mb-6",children:i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx("div",{className:"w-6 h-6 bg-orange-100 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:i.jsx("span",{className:"text-orange-600 text-sm font-bold",children:"!"})}),i.jsxs("div",{children:[i.jsx("h3",{className:"font-semibold text-orange-900 mb-2",children:"Not Enough Tokens"}),i.jsxs("p",{className:"text-orange-800 text-sm mb-4",children:["You can select up to"," ",s," ","quotes with your current token balance.",s<e&&` You've selected ${e} quotes.`]}),i.jsxs("div",{className:"flex gap-3",children:[i.jsxs("button",{type:"button",onClick:()=>t(s),className:"bg-orange-600 text-white px-4 py-2 rounded-lg text-sm font-medium hover:bg-orange-700 transition-colors",children:["Select"," ",s," ","Quotes"]}),i.jsx("button",{type:"button",onClick:n,className:"bg-orange-900 text-white px-4 py-2 rounded-lg text-sm font-medium hover:bg-gray-700 transition-colors",children:"Top Up Tokens"})]})]})]})})]})}const ex=a("\n  mutation PayQuoteCollection_Mutation($input: PayQuoteCollectionInput!) {\n    payQuoteCollection(input: $input) {\n      id\n      quote_collection_limit\n    }\n  }\n");function tx({sourcingSessionId:t,onSuccessSelection:n}){const[s]=function(){const[t,n]=h(ex);return[e.useCallback(e=>t({variables:{input:e}}),[t]),n]}(),{toastError:a}=m(),[o,r]=e.useState(!1),[l,c]=e.useState(!1),[d,p]=e.useState(5),{balance:u,refetch:x}=mt(),f=At(),g=d>u,v=e.useCallback(async e=>{r(!0);const{data:i,error:o}=await oi(s({quote_collection_limit:e,sourcing_session_id:t}));await x(),r(!1),o&&a("Failed to set quote collection limit. Please try again."),i&&n?.()},[s,x,t,a,n]),y=e=>{p(t=>e?t+1:Math.max(3,t-1))};return i.jsxs("div",{className:"max-w-4xl mx-auto p-6",children:[i.jsxs("div",{className:"text-center mb-8",children:[i.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-3",children:"What's the maximum number of quotes you'd like us to collect?"}),i.jsx("p",{className:"text-gray-600 text-lg",children:"Set your quote collection limit - you can stop anytime and we'll refund unused tokens"})]}),i.jsxs("div",{className:"bg-white border-2 border-gray-200 rounded-xl p-8 mb-6",children:[i.jsxs("div",{className:"grid lg:grid-cols-2 gap-8",children:[i.jsxs("div",{children:[i.jsxs("div",{className:"mb-2",children:[i.jsx("span",{className:"block text-sm font-medium text-gray-700 mb-3",children:"Maximum Number of Quotes"}),i.jsxs("div",{className:"flex items-center justify-center space-x-4 mb-4",children:[i.jsx("button",{type:"button",onClick:()=>y(!1),disabled:d<=3||o,className:"w-12 h-12 rounded-full border-2 border-gray-300 flex items-center justify-center hover:border-primary disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:i.jsx(rn,{className:"w-5 h-5"})}),i.jsxs("div",{className:"text-center",children:[i.jsx("input",{type:"number",min:"3",value:d,onChange:e=>{const t=parseInt(e.target.value,10)||3;p(Math.max(3,t))},disabled:o,className:"w-20 text-4xl font-bold text-center border-none outline-none bg-transparent text-gray-900"}),i.jsx("div",{className:"text-sm text-gray-500 mt-1",children:"quotes"})]}),i.jsx("button",{type:"button",onClick:()=>y(!0),disabled:o,className:"w-12 h-12 rounded-full border-2 border-gray-300 flex items-center justify-center hover:border-primary disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:i.jsx(Wt,{className:"w-5 h-5"})})]}),i.jsxs("div",{className:"mb-4",children:[i.jsx("input",{type:"range",min:"3",max:"20",value:d,onChange:e=>p(parseInt(e.target.value,10)),disabled:o,className:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer slider"}),i.jsxs("div",{className:"flex justify-between text-xs text-gray-500 mt-1",children:[i.jsx("span",{children:"3 (Min)"}),i.jsx("span",{children:"20+"})]})]})]}),i.jsxs("div",{className:"text-center mb-8",children:[i.jsx("p",{className:"text-sm text-gray-500 mb-3",children:"Popular choices:"}),i.jsx("div",{className:"flex justify-center space-x-4",children:[5,8,10].map(e=>i.jsxs("button",{type:"button",onClick:()=>p(e),disabled:o,className:"px-4 py-2 rounded-full text-sm border transition-colors "+(d===e?"bg-blue-100 border-primary text-primary":"bg-white border-gray-300 text-gray-600 hover:border-gray-400"),children:[e," ","quotes"]},e))})]}),i.jsxs("div",{className:`text-sm font-medium ${b=d,b<=5?"text-blue-600":b<=8?"text-green-600":b<=12?"text-purple-600":"text-orange-600"}
101 mb-6`,children:["💡"," ",(e=>e<=5?"Good starting point for basic comparison":e<=8?"Balanced approach for comprehensive analysis":e<=12?"Thorough comparison for critical decisions":"Maximum market coverage for complex projects")(d)]}),i.jsxs("div",{className:"space-y-3",children:[i.jsx("h4",{className:"font-semibold text-gray-900",children:"What you'll receive:"}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx($t,{className:"w-4 h-4 text-green-500"}),i.jsxs("span",{className:"text-sm text-gray-700",children:["Up to"," ",d," ","curated quotes from relevant suppliers"]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx($t,{className:"w-4 h-4 text-green-500"}),i.jsx("span",{className:"text-sm text-gray-700",children:"Detailed comparison report"})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx($t,{className:"w-4 h-4 text-green-500"}),i.jsx("span",{className:"text-sm text-gray-700",children:"Procurement specialist support"})]})]})]})]}),i.jsxs("div",{className:"lg:border-l lg:pl-8",children:[i.jsx("div",{className:"bg-gray-50 rounded-lg p-6 mb-6",children:i.jsxs("div",{className:"text-center",children:[i.jsxs("div",{className:"text-3xl font-bold text-gray-900 mb-2",children:[d," ","tokens"]}),i.jsx("div",{className:"text-gray-600 text-sm mb-4",children:"Maximum tokens reserved"}),i.jsxs("div",{className:"text-sm text-gray-600",children:["Up to"," ",d," ","quotes × 1 token each ="," ",d," ","tokens max"]})]})}),i.jsx("div",{className:"bg-blue-50 rounded-lg p-4 mb-6",children:i.jsxs("div",{className:"flex items-start gap-2",children:[i.jsx(xt,{className:"w-5 h-5 text-blue-600 mt-0.5 flex-shrink-0"}),i.jsxs("div",{children:[i.jsx("h4",{className:"font-semibold text-blue-900 mb-2",children:"How tokens work"}),i.jsxs("ul",{className:"text-sm text-blue-800 space-y-1 list-disc",children:[i.jsx("li",{children:"1 token = 1 quote from a verified supplier"}),i.jsx("li",{children:"Tokens only charged when quotes are delivered"}),i.jsx("li",{children:"Stop collection anytime during the process"}),i.jsx("li",{children:"Unused tokens are automatically refunded"})]})]})]})}),i.jsx("div",{className:"bg-green-50 rounded-lg p-4 mb-6",children:i.jsxs("div",{className:"flex items-start gap-2",children:[i.jsx(xt,{className:"w-5 h-5 text-green-600 mt-0.5 flex-shrink-0"}),i.jsxs("div",{children:[i.jsx("h4",{className:"font-semibold text-green-900 mb-2",children:"Why collect multiple quotes?"}),i.jsxs("ul",{className:"text-sm text-green-800 space-y-1 list-disc",children:[i.jsx("li",{children:"Better negotiating position"}),i.jsx("li",{children:"Market price validation"}),i.jsx("li",{children:"Risk mitigation through options"}),i.jsx("li",{children:"Quality and service comparison"})]})]})]})})]})]}),i.jsxs("div",{className:"flex flex-col items-center justify-center pt-6 mt-6 border-t",children:[g&&i.jsx(Jh,{selectedQuotes:d,setSelectedQuotes:p,onTopUp:()=>c(!0)}),i.jsx("button",{type:"button",onClick:()=>v(d),disabled:o||g,className:"px-8 py-3 bg-primary text-white font-semibold rounded-lg hover:bg-primary/80 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:o?"Processing...":`Collect ${d} Quotes`})]})]}),f&&i.jsx(ht,{isOpen:l,onClose:()=>c(!1)})]});var b}const nx=a("\n  mutation SubmitRfpDetails($input: SubmitRfpDetailsInput!) {\n    submitRfpDetails(input: $input) {\n      id\n      clinical_stage\n      project_title\n      project_desc\n      preparation_details\n      vendor_requirement\n      expected_timeline\n      expected_budget\n      submitted_rfp_at\n      vendor_question_deadline\n      vendor_answer_deadline\n      vendor_proposal_deadline\n      vendor_selection_deadline\n      vendor_contract_deadline\n      vendor_interview_deadline\n    }\n  }\n");const sx=a("\n  query LoadingVendorStep_SourcingSession ($id: String!) {\n    sourcingSession(id: $id) {\n      id\n      sourced_cros {\n        id\n        name\n        score\n        is_shortlisted\n        vendor_company_id\n        vendor_company {\n          id\n          company_name\n          company_description\n          company_ipo_status\n          company_revenue\n          company_
101size\n          website_url\n          linkedin_url\n          crunchbase_url\n          product\n          logo_url\n          is_active\n          is_cromatic_vendor\n          vendor_company_subspecialties {\n            subspecialty {\n              name\n            }\n          }\n          vendor_company_locations {\n            country\n          }\n          vendor_company_types {\n            company_type\n          }\n          vendor_company_certifications {\n            certification_name\n          }\n        }\n      }\n    }\n  }\n");function ix({sourcingSessionId:t}){const[a,l]=e.useState(0),c=n(),d=["Analyzing...","Processing...","Sourcing..."];e.useEffect(()=>{const e=setInterval(()=>{l(e=>(e+1)%d.length)},1500);return()=>{clearInterval(e)}},[d.length]);const{data:p}=r(sx,{variables:{id:t},pollInterval:1e3});return e.useEffect(()=>{p?.sourcingSession?.sourced_cros&&p.sourcingSession.sourced_cros.length>0&&c(s.SourcererMatchedVendor(t))},[p,c,t]),i.jsx("div",{className:"flex items-center justify-center h-full",children:i.jsxs("div",{className:"text-center",children:[i.jsxs("div",{className:"relative mb-8 w-32 h-32 mx-auto",children:[i.jsx(Rh.div,{className:"absolute top-1/2 left-1/2 w-4 h-4 bg-primary rounded-full transform",initial:{translateX:"-48%",translateY:"-50%",scale:1.2},animate:{scale:[1,1.2,1]},transition:{duration:2,repeat:Number.POSITIVE_INFINITY}}),[0,60,120].map((e,t)=>i.jsx(Rh.div,{className:o("absolute inset-0 rounded-full z-20",0===t&&"border border-gray-300"),style:{transform:`rotate(${e}deg)`},animate:{rotate:e+360},transition:{duration:3+t,repeat:Number.POSITIVE_INFINITY,ease:"linear"},children:i.jsx(Rh.div,{className:"absolute w-3 h-3 bg-primary z-50 rounded-full -top-1.5 left-1/2 transform -translate-x-1/2",animate:{scale:[1,1.2,1]},transition:{duration:1,repeat:Number.POSITIVE_INFINITY}})},t))]}),i.jsx(bm,{mode:"wait",children:i.jsx(Rh.h2,{className:"text-xl font-light text-gray-800 mb-6 h-8",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.5},children:d[a]},a)})]})})}const ax=S({isUploadRfp:X({required_error:"Please select one method to submit project details"})}),ox=S({rfpFile:J().refine(e=>!!e,"Please upload a RFP to move forward").refine(e=>["application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/msword"].includes(e?.type),"Only .pdf, .docx, or .doc files are accepted")}),rx=()=>{const{trigger:o,setValue:l,watch:c,formState:d}=Bt({resolver:qt(ax),defaultValues:{isUploadRfp:void 0}}),{setValue:p,watch:u,reset:g,formState:v}=Bt({resolver:qt(ox),defaultValues:{rfpFile:void 0}}),{trigger:y,setValue:b,watch:C}
101=Bt({resolver:qt(ri),defaultValues:{vendor_question_deadline:"",answers_deadline:"",vendor_proposal_submission_deadline:"",vendor_prelim_selection_notification_deadline:"",vendor_interviews_deadline:"",contract_selection_deadline:"",expected_budget:void 0}}),j=n(),w=f(),{sessionId:_}=x(),{toastError:S,toastCatchError:N}=m(),[k,E]=e.useState(""),[P,M]=e.useState([]),[T,A]=e.useState(Y.Welcome),[V,L]=e.useState(!1),[F,D]=t.useState(!1),[I,O]=t.useState(!1),[B,q]=e.useState(!1),z=c("isUploadRfp"),H=t.useCallback(e=>{l("isUploadRfp",e,{shouldValidate:!0})},[l]),[Z,U]=e.useState(!1),Q=u("rfpFile"),W=t.useCallback(e=>{p("rfpFile",e,{shouldValidate:!0})},[p]),{loading:G,data:X}=r(Ih,{variables:{id:_},skip:!_,onError(e){S(e.message),j(s.Sourcerer,{replace:!0})}});t.useEffect(()=>{if(!F&&X){const e=X;if(e.sourcingSession?.vendor_question_deadline&&b("vendor_question_deadline",new Date(e.sourcingSession.vendor_question_deadline).toISOString().split("T")[0]),e.sourcingSession?.vendor_answer_deadline&&b("answers_deadline",new Date(e.sourcingSession.vendor_answer_deadline).toISOString().split("T")[0]),e.sourcingSession?.vendor_proposal_deadline&&b("vendor_proposal_submission_deadline",new Date(e.sourcingSession.vendor_proposal_deadline).toISOString().split("T")[0]),e.sourcingSession?.vendor_selection_deadline&&b("vendor_prelim_selection_notification_deadline",new Date(e.sourcingSession.vendor_selection_deadline).toISOString().split("T")[0]),e.sourcingSession?.vendor_contract_deadline&&b("contract_selection_deadline",new Date(e.sourcingSession.vendor_contract_deadline).toISOString().split("T")[0]),e.sourcingSession?.vendor_interview_deadline&&(b("vendor_interviews_deadline",new Date(e.sourcingSession.vendor_interview_deadline).toISOString().split("T")[0]),q(!0)),e.sourcingSession?.expected_budget&&b("expected_budget",e.sourcingSession?.expected_budget),(e.sourcingSession?.sourcing_subspecialties||[]).length>0&&M(e.sourcingSession?.sourcing_subspecialties?.map(e=>e?.name)),e.sourcingSession?.sourcing_attachments&&e.sourcingSession.sourcing_attachments.length>0){const t=e.sourcingSession.sourcing_attachments[0];if(t){H(!0);const e=new ArrayBuffer(t.byte_size),n=new Blob([e]),s=no.getType(t.filename),i=new File([n],t.filename,{type:s||"application/pdf"});W(i)}}else H(!1);const t=w.state?.step;t&&Object.values(Y).includes(t)?A(w.state.step):e.sourcingSession?.sourced_cros&&e.sourcingSession?.sourced_cros.length>0?j(s.SourcererMatchedVendor(_)):e?.sourcingSession?.submitted_rfp_at&&!e.sourcingSession?.quote_collection_limit?A(Y.SelectQuoteLimit):A(e?.sourcingSession?.submitted_rfp_at?Y.LoadingVendor:Y.ProjectTimeline),D(!0)}},[F,X,w,_,H,W,j,b]);const[J,{loading:ee}]=h(Oh,{onError(e){S(e.message),A(Y.UploadRfp)},update:(e,{data:t})=>{const n=t?.extractFileRfp;n&&e.modify({fields:{sourcingSessions:(t=[])=>[e.writeFragment({data:n,fragment:a("\n                  fragment ExtractedFileRfp_SourcingSession on SourcingSession {\n                    id\n                    clinical_stage\n                    project_title\n                    project_desc\n                    preparation_details\n                    vendor_requirement\n                  }\n                ")}),...t]}})}}),[te]=function(){const[t,n]=h(nx);return[e.useCallback(e=>t({variables:{input:e}}),[t]),n]}(),[ne,{loading:se}]=h(qh);!function({taskId:e,interval:n=1e4,onFailure:s,onSuccess:i}){const{data:a}=r(so,{variables:{taskId:e},skip:!e,pollInterval:n}),[o,l]=t.useState();t.useEffect(()=>{if(!a?.checkSourcingTask)return;const e=a.checkSourcingTask.status;e!==o&&(a.checkSourcingTask.status===K.Failure&&s?.(a),a.checkSourcingTask.status===K.Success&&i?.(a),l(e))},[a,s,i,o])}({taskId:k,onSuccess:()=>{L(!1),E(""),_&&j(s.SourcererMatchedVendor(_),{replace:!0})},onFailure:()=>{L(!1),E(""),S("Something went wrong. Please try again.",{autoDismiss:!1})}}),Rt(Bh,{variables:{task_id:k},skip:!k,onData({data:e}){L(!1),E(""),e.data?.sourceCros?.status!==K.Failure?j(s.SourcererMatchedVendor(_),{replace:!0}):S("Something went wrong. Please try again.",{autoDismiss:!1})}});const ie=t.useCallback(()=>{switch(T){case Y.GetStarted:case Y.UploadRfp:A(Y.Welcome);break;case Y.ProjectTimeline:A(Y.UploadRfp);break;case Y.Specialties:A(Y.ProjectTimeline)}},[T]),ae=t.useCallback(async()=>{const e=C();O(!0);const{data:t,error:n}=await oi(te({clinical_stage:X?.sourcingSession?.clinical_stage,project_title:X?.sourcingSession?.project_title,project_desc:X?.sourcingSession?.project_desc,preparation_details:X?.sourcingSession?.preparation_details,vendor_requirement:X?.sourcingSession?.vendor_requirement,sourcing_session_id:_,vendor_question_deadline:e.vendor_question_deadline,vendor_answer_deadline:e.answers_deadline,vendor_proposal_deadline:e.vendor_proposal_submission_deadline,vendor_selection_deadline:e.vendor_prelim_selection_notification_deadline,vendor_contract_deadline:e.contract_selection_deadline,vendor_interview_deadline:B?e.vendor_interviews_deadline:null,expected_budget:e.expected_budget}));O(!1),n&&S("Failed to submit RFP details."),t?.data?.submitRfpDetails?.id&&(A(Y.SelectQuoteLimit),j(s.SourcererSession(t.data.submitRfpDetails.id),{replace:!0}))},[X?.sourcingSession,_,j,te,S,C,B]),oe=t.useCallback(async()=>{switch(T){case Y.Welcome:A(Y.UploadRfp);break;case Y.GetStarted:if(!1===await o("isUploadRfp"))return;A(z?Y.UploadRfp:Y.ProjectTimeline);break;case Y.UploadRfp:if(!Q){S("Please attach the RFP document to proceed");break}if(Z){const e=await J({variables:{file:Q,..._?{sourcing_session_id:_}:{}}});if(!e.data?.extractFileRfp?.id)return;e.data?.extractFileRfp?.id&&j(s.SourcererSession(e.data.extractFileRfp.id),{replace:!0}),U(!1),A(Y.ProjectTimeline)}else A(Y.ProjectTimeline);break;case Y.ProjectTimeline:if(!(await Promise.all([y("vendor_question_deadline"),y("answers_deadline"),y("vendor_proposal_submission_deadline"),y("vendor_prelim_selection_notification_deadline"),y("contract_selection_deadline"),y("expected_budget")])).every(e=>e))return void S("Please fill up all the required fields");await ae();break}},[T,J,z,_,Q,Z,o,j,ae,y,S]),re=e.useMemo(()=>{let e=!1;switch(T){case Y.UploadRfp:Q||(e=!0);break;case Y.ProjectTimeline:{const t=C();t.vendor_question_deadline&&t.answers_deadline&&t.vendor_proposal_submission_deadline&&t.vendor_prelim_selection_notification_deadline&&t.contract_selection_deadline||(e=!0);break}case Y.Specialties:0===P.length&&(e=!0)}return e},[T,Q,P,C]),le=e.useMemo(()=>{switch(T){case Y.GetStarted:return!z;case Y.UploadRfp:return!Q;case Y.Specialties:return 0===P.length;default:return!1}},[T,z,Q,P]),ce=e.useMemo(()=>({currentStep:T,isNextButtonLoading:I,isNextButtonDisabled:re,isNextButtonOutline:le,onNext:oe,onBack:ie}),[T,oe,ie,re,le,I]),de=e.useMemo(()=>[Y.UploadRfp,Y.ProjectTimeline,Y.SelectQuoteLimit,Y.LoadingVendor],[]),pe
101=e.useMemo(()=>{switch(T){case Y.LoadingVendor:return 3;case Y.ProjectTimeline:return 1;case Y.SelectQuoteLimit:return z&&V?3:2;case Y.UploadRfp:default:return 0}},[T,z,V]),ue=t.useCallback(async()=>{try{const e=await ne({variables:{sourcingSessionId:X.sourcingSession.id,taskId:X.sourcingSession.task_id}});e.data?.cancelAiTask?.id&&(L(!1),E(""))}catch(R){N(R)}},[ne,X,N]);return!_||!G&&F?i.jsx(Hh.Provider,{value:ce,children:i.jsx("div",{className:"bg-white overflow-auto h-screenWithoutNav",children:i.jsx(zn,{className:"h-full",children:i.jsxs("div",{className:"flex flex-col h-full",children:[ee&&i.jsx(Gh,{label:"Please wait while Sourcerer processes your RFP document.",loadingCancel:se}),V&&i.jsx(Xh,{onCancel:ue,loadingCancel:se}),i.jsxs("div",{className:"bg-white flex flex-col flex-grow justify-start w-full max-w-xl mx-auto p-8",children:[T===Y.Welcome&&i.jsx("div",{className:"flex flex-col max-w-[650px] mx-auto ",children:i.jsx(zh,{onNextStep:oe})}),T===Y.GetStarted&&i.jsx("div",{className:"flex flex-col max-w-[545px] mx-auto",children:i.jsx($h,{isUploadRfp:z,setIsUploadRfp:H,errorMessage:d.errors.isUploadRfp?.message})}),i.jsxs(i.Fragment,{children:[de.includes(T)&&i.jsx("div",{className:"max-w-[720px] mx-auto w-full mb-9",children:i.jsx(Te,{steps:["Provide Info","Set Timeline","Select Quote Limit","View Vendors"],currentStep:pe})}),T===Y.UploadRfp&&i.jsx("div",{className:"flex flex-col max-w-[573px] w-full mx-auto",children:i.jsx(Kh,{rfpFile:Q,setRfpFile:W,setShouldUploadRfp:U,removeRfpFile:g,errorMessage:v.errors.rfpFile?.message})}),T===Y.ProjectTimeline&&i.jsx("div",{className:"flex flex-col max-w-[680px] w-full mx-auto",children:i.jsx(Yh,{setValue:b,watch:C,includeInterviews:B,setIncludeInterviews:q})}),T===Y.SelectQuoteLimit&&i.jsx("div",{className:"flex flex-col mx-auto",children:i.jsx(tx,{sourcingSessionId:_,onSuccessSelection:()=>A(Y.LoadingVendor)})}),T===Y.LoadingVendor&&i.jsx(ix,{sourcingSessionId:_})]})]})]})})})}):i.jsx($,{hasNavbar:!0})};a("\n  fragment SourcererLiteResultCard_SourcererLiteVendorFragment on CroDbVendorCompany {\n    id\n    company_name\n    company_description\n    company_ipo_status\n    company_revenue\n    company_size\n    website_url\n    logo_url\n    vendor_company_subspecialties {\n      subspecialty {\n        name\n      }\n    }\n    vendor_company_locations {\n      country\n    }\n    vendor_company_types {\n      company_type\n    }\n    vendor_company_certifications {\n      certification_name\n    }\n  }\n"),a("\n  mutation createSourcingSessionFromSourcererLite(\n    $shortlisted_vendor_ids: [String!]!\n    $subspecialty: String!\n    $project_title: String!\n    $project_desc: String!\n    $preparation_details: String!\n    $vendor_requirement: String!\n    $expected_timeline: String!\n    $expected_budget: Float!\n    $quote_collection_limit: Int!\n  ) {\n    createSourcingSessionFromSourcererLite(\n      shortlisted_vendor_ids: $shortlisted_vendor_ids\n      subspecialty: $subspecialty\n      project_title: $project_title\n      project_desc: $project_desc\n      preparation_details: $preparation_details\n      vendor_requirement: $vendor_requirement\n      expected_timeline: $expected_timeline\n      expected_budget: $expected_budget\n      quote_collection_limit: $quote_collection_limit\n    ) {\n      id\n      project_title\n      created_at\n    }\n  }\n  "),a("\n  query SourcererLiteSearch_Query($keyword: String!, $fingerprint: String, $ipAddress: String, $after: String, $first: Int, $sortBy: SourcingResultSortBy, $filterCountryBy: SourcingResultCountryRegionFilter, $disableSpellCheck: Boolean) {\n    sourcererLiteSearch(keyword: $keyword, fingerprint: $fingerprint, ip_address: $ipAddress, after: $after, first: $first, sort_by: $sortBy, filter_country_by: $filterCountryBy, disable_spellcheck: $disableSpellCheck) {\n      edges {\n        cursor\n        node {\n          id\n          ...SourcererLiteResultCard_SourcererLiteVendorFragment\n        }\n      }\n      page_info {\n        end_cursor\n        has_next_page\n        total_count\n      }\n      related_subspecialty_names\n      did_you_mean_suggestion\n    }\n  }\n");const lx=({mailto:e})=>
101i.jsx("a",{className:"text-primary cursor-pointer hover:underline",href:`mailto:${e}`,children:e}),cx=({children:e})=>i.jsx(ln,{components:{ol:({node:e,...t})=>i.jsx("ol",{className:"list-decimal pl-4",...t}),ul:({node:e,...t})=>i.jsx("ul",{className:"list-disc pl-4",...t}),a:({node:e,...t})=>i.jsx("a",{className:"text-primary underline font-medium",...t})},children:e}),dx=e=>{const t=document.createElement("a");return t.href=e,t.host!==window.location.host},px=({perk:t,isOpen:n,onClose:s})=>{const[a,o]=e.useState(!1);if(!t)return null;return i.jsxs(et,{isOpen:n,onClose:()=>{o(!1),s()},title:"Perk details",children:[i.jsxs("div",{className:"justify-start items-start gap-4 inline-flex",children:[i.jsx("img",{className:"w-[68px] h-[68px] rounded-lg border border-hoki-200",src:t.image_url,alt:"perk"}),i.jsxs("div",{className:"flex flex-col justify-start items-start gap-2",children:[i.jsx("div",{className:"w-full text-hoki-900 font-semibold line-clamp-2",children:t.title}),i.jsx("div",{className:"w-full text-sm text-hoki-600 line-clamp-2",children:i.jsx(cx,{children:t.reward_description})})]})]}),i.jsx("div",{className:"border-b my-4"}),i.jsxs("div",{className:"flex flex-col gap-6",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-semibold mb-2 text-hoki-500",children:"About"}),i.jsx("div",{className:"text-sm text-hoki-500",children:i.jsx(cx,{children:t.description})})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-semibold mb-2 text-hoki-500",children:"Reward"}),i.jsx("div",{className:"text-sm text-hoki-500",children:i.jsx(cx,{children:t.reward_description})})]}),i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsxs("button",{type:"button",onClick:()=>{o(!a)},className:"flex items-center gap-2 font-semibold text-primary mb-1",children:["How to redeem",a?i.jsx(It,{width:20}):i.jsx(Lt,{width:20})]}),!!a&&i.jsx("div",{className:"text-sm text-hoki-500",children:i.jsx(cx,{children:t.how_to_redeem})})]}),!!a&&t.external_url&&i.jsx("div",{children:i.jsx(Be,{as:"a",href:dx(t.external_url)?t.external_url:`https://${t.external_url}`,target:"_blank",rel:"noopener noreferrer",children:i.jsxs("span",{className:"inline-flex gap-3 justify-between",children:["View Link",i.jsx(Cn,{width:18,height:18})]})})}),!!a&&i.jsx("div",{className:"text-xs text-hoki-500",children:i.jsx(cx,{children:t.terms})})]})]})},ux=a("\n  query PerkCategories_Query {\n    user {\n      id\n    }\n    perkCategories {\n      id\n      name\n      description\n      perks {\n        id\n        title\n        description\n        image_url\n        reward_description\n        how_to_redeem\n        terms\n        external_url\n      }\n    }\n  }\n"),mx=()=>{const{data:t,loading:n}=r(ux),[s,a]=e.useState(null),{isOpen:o,onClose:l,onOpen:d}=kt();if(n)return i.jsx("div",{className:"flex justify-center items-center h-screenWithoutNav",children:i.jsx(c,{})});return i.jsxs(zn,{children:[i.jsx("h1",{className:"text-2xl font-medium text-hoki-900 pb-3",children:"Exclusive Perks for Cromatic users"}),i.jsx("div",{className:"flex flex-col bg-white rounded-lg w-full p-9 gap-9",children:t?.perkCategories?.map(e=>i.jsxs("div",{className:"flex flex-col gap-6",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"text-xl font-semibold",children:e?.name}),i.jsx("p",{className:"text-hoki-600 line-clamp-1",children:e?.description})]}),i.jsx("div",{className:"grid grid-col sm:grid-cols-2 xl:grid-cols-3 gap-5",children:e?.perks?.map(e=>i.jsx("button",{type:"button",onClick:()=>(e=>{a(e),d()})(e),className:"w-full px-4 py-5 rounded-xl border border-hoki-200 flex flex-col justify-start items-start gap-2.5",children:i.jsxs("div",{className:"justify-start items-start gap-4 inline-flex",children:[i.jsx("img",{className:"w-20 h-20 md:w-[107px] md:h-[107px] rounded-lg border border-hoki-200",src:e.image_url,alt:"perk"}),i.jsxs("div",{className:"flex flex-col justify-start items-start gap-2",children:[i.jsx("div",{className:"w-full text-left text-hoki-900 font-semibold line-clamp-2",children:e?.title}),i.jsx("div",{className:"w-full text-left text-sm text-hoki-600 line-clamp-2",children:i.jsx(cx,{children:e.reward_description})})]})]})}))})]}))}),i.jsx(px,{perk:s,isOpen:o,onClose:l}),i.jsxs("p",{className:"mt-10 text-sm font-normal text-center text-hoki-600",children:["If you encounter any issues, please email us at"," ",i.jsx(lx,{mailto:u})]})]})},hx=()=>{const{pathname:e}=f();return e.includes("/experiments")?i.jsx(j,{replace:!0,to:e.replace("/experiments","/projects")}):i.jsx(j,{replace:!0,to:s.AllProjects})},xx=a("\n  mutation RemoveSourcedCroFromShortlist_Mutation(\n    $sourcing_session_id: String!\n    $sourced_cro_id: String!\n  ) {\n    removeSourcedCroFromShortlist(\n      sourcing_session_id: $sourcing_session_id\n      sourced_cro_id: $sourced_cro_id\n    ) {\n      id\n      is_shortlisted\n    }\n  }\n"),fx=a("\n  mutation ShortlistSourcedCro_Mutation(\n    $sourcing_session_id: String!\n    $sourced_cro_id: String!\n  ) {\n    shortlistSourcedCro(\n      sourcing_session_id: $sourcing_session_id\n      sourced_cro_id: $sourced_cro_id\n    ) {\n      id\n      is_shortlisted\n    }\n  }\n"),gx=a("\n  mutation UpdateWhiteGloveStatus_Mutation(\n    $sourcing_session_id: String!\n    $whiteglove_status: String!\n  ) {\n    updateWhiteGloveStatus(\n      sourcing_session_id: $sourcing_session_id\n      whiteglove_status: $whiteglove_status\n    ) {\n      id\n      whiteglove_status\n    }\n  }\n"),vx=a("\n  query SourcingResultPageQuery($sourcingSessionId: String!) {\n    sourcingSession(id: $sourcingSessionId) {\n      id\n      project_title\n      project_desc\n      clinical_stage\n      preparation_details\n      vendor_requirement\n      whiteglove_status\n      expected_timeline\n      vendor_question_deadline\n      vendor_answer_deadline\n      vendor_proposal_deadline\n      vendor_selection_deadline\n      vendor_contract_deadline\n      vendor_interview_deadline\n      expected_budget\n      quote_collection_limit\n      created_at\n      has_unread_messages\n      biotech_invoice {\n        id\n        payment_status\n        reference_id\n      }\n      sourcing_quotes {\n        id\n        accepted_at\n        status\n        price\n        negotiated_price\n        final_price\n        vendor_company {\n          logo_url\n          company_name\n        }\n        biotech_invoice {\n          id\n          payment_status\n          reference_id\n          biotech_invoice_items {\n            id\n            amount\n          }\n        }\n      }\n      shortlisted_cros {\n        id\n        name\n        is_shortlisted\n        vendor_company {\n          id\n          logo_url\n          company_
101size\n          company_revenue\n          vendor_company_locations {\n            country\n          }\n          vendor_company_types {\n            company_type\n          }\n        }\n        ...ResultCard_SourcedCroFragment\n      }\n      sourcing_subspecialties {\n        id\n        name\n      }\n      ...QuotesStatusModal_SourcingSession\n      ...ResultCard_SourcingSessionFragment\n      ...QuoteComparison_SourcingSession\n      ...QuoteTable_SourcingSession\n    }\n  }\n"),yx=a("\n  query PaginatedSourcedCros($sourcingSessionId: String!, $sourcedCrosFirst: Int, $sourcedCrosAfter: String, $sourcedCrosFilterCountryBy: SourcingResultCountryRegionFilter, $sourcedCrosSortBy: SourcingResultSortBy) {\n    sourcedCros(sourcing_session_id: $sourcingSessionId, first: $sourcedCrosFirst, after: $sourcedCrosAfter, filterCountryBy: $sourcedCrosFilterCountryBy, sortBy: $sourcedCrosSortBy){\n      edges {\n        cursor\n        node {\n          id\n          name\n          is_shortlisted\n          vendor_company {\n            id\n            company_size\n            company_revenue\n            vendor_company_locations {\n              country\n            }\n          }\n          ...ResultCard_SourcedCroFragment\n        }\n      }\n      page_info {\n        end_cursor\n        has_next_page\n        total_count\n      }\n      top_match_vendor_company_ids\n    }\n  }\n"),bx=({children:t})=>{const{sourcingSession:n,currentStep:s,setCurrentStep:o,getSignedUrl:c,updateStep:d,furthestStepReached:p,updateFurthestStepReached:u,sourcedCros:m,shortlistedCros:f,shortlistedCounts:g,shortlistSourcedCro:v,removeFromShortlist:y,updateWhiteGloveStatus:C,fetchMoreSourcedCros:j,hasMoreSourcedCros:w,countryRegionFilter:_,setCountryRegionFilter:S,sortBy:N,setSortBy:k,loadingQuery:E,loadingPaginatedSourcedCros:P,loadingSourcedCroId:M,loadingShortlist:T,loadingRemoveShortlist:A,loadingFetchMoreCros:V,loadingChangeFilter:L}=(()=>
101{const[t,n]=W(),s="success"===t.get("payment"),{sessionId:i}=x(),[o,c]=e.useState(""),[d,p]=e.useState(null),[u,m]=e.useState(1),[f,g]=e.useState(b.All),[v,y]=e.useState(ne.BestMatch),{data:C,loading:j,refetch:w}=r(vx,{...i?{variables:{sourcingSessionId:i},pollInterval:s?5e3:0}:{skip:!0},onCompleted(e){if((e?.sourcingSession?.sourcing_quotes??[]).length>0)return p(2),void m(2);p(1),m(1)}});e.useEffect(()=>{C?.sourcingSession?.biotech_invoice?.payment_status===se.Paid&&(t.delete("payment"),n(t))},[s,C,w,t,n]);const _=C?.sourcingSession,S=_?.shortlisted_cros,N=_?.shortlisted_cros?.length||0,{data:k,fetchMore:E,networkStatus:P}=r(yx,{...i?{variables:{sourcingSessionId:i,sourcedCrosFirst:10,sourcedCrosFilterCountryBy:f,sourcedCrosSortBy:v},fetchPolicy:"network-only",nextFetchPolicy:"network-only",notifyOnNetworkStatusChange:!0}:{skip:!0}}),M=k?.sourcedCros,[T,{loading:A}]=h(fx,{update(e,{data:t}){const n=t?.shortlistSourcedCro;n&&(e.modify({id:e.identify({__typename:"SourcedCro",id:n.id}),fields:{is_shortlisted:()=>n.is_shortlisted??null}}),i&&e.modify({id:e.identify({__typename:"SourcingSession",id:i}),fields:{whiteglove_status:e=>l.Draft,shortlisted_cros:(t=[])=>{const s=e.readFragment({id:`SourcedCro:${n.id}`,fragment:a("\n                      fragment ShortlistSourcedCro_SourcedCro on SourcedCro {\n                        id\n                        name\n                        is_shortlisted\n                        vendor_company {\n                          id\n                          company_size\n                          company_revenue\n                          vendor_company_locations {\n                            country\n                          }\n                        }\n                        ...ResultCard_SourcedCroFragment\n                      }\n                    "),fragmentName:"ShortlistSourcedCro_SourcedCro"});if(s){const n=e.writeFragment({data:{...s,is_shortlisted:!0},fragment:a("\n                        fragment ShortlistSourcedCro_SourcedCro on SourcedCro {\n                          id\n                          name\n                          is_shortlisted\n                          vendor_company {\n                            id\n                            company_size\n                            company_revenue\n                            vendor_company_locations {\n                              country\n                            }\n                          }\n                          ...ResultCard_SourcedCroFragment\n                        }\n                      "),fragmentName:"ShortlistSourcedCro_SourcedCro"});return[...t,n]}return t}}}))}}),[V,{loading:L}]=h(xx,{update(e,{data:t}){const n=t?.removeSourcedCroFromShortlist;n&&(e.modify({id:e.identify({__typename:"SourcedCro",id:n.id}),fields:{is_shortlisted:()=>n.is_shortlisted||null}}),i&&e.modify({id:e.identify({__typename:"SourcingSession",id:i}),fields:{whiteglove_status:e=>l.Draft,shortlisted_cros:(e=[],{readField:t})=>e.filter(e=>n.id!==t("id",e))}}))}}),[F]=h(gx,{update(e,{data:t}){const n=t?.updateWhiteGloveStatus;n?.id&&e.modify({id:e.identify({__typename:"SourcingSession",id:n.id}),fields:{whiteglove_status:()=>n.whiteglove_status}})}}),D=e.useCallback(async()=>{M&&!0===M.page_info?.has_next_page&&await E({variables:{sourcingSessionId:i,sourcedCrosAfter:M.page_info.end_cursor,sourcedCrosFirst:10,sourcedCrosFilterCountryBy:f,sourcedCrosSortBy:v}})},[E,i,M,f,v]),[R]=qe(we),I=e.useCallback(e=>{p(e),m(e)},[p,m]),O=e.useCallback(e=>{m(e)},[m]);return{sourcingSession:_,currentStep:d,furthestStepReached:u,setCurrentStep:p,getSignedUrl:R,updateStep:I,updateFurthestStepReached:O,sourcedCros:M,shortlistedCros:S,shortlistedCounts:N,shortlistSourcedCro:async e=>{c(e),await T({variables:{sourced_cro_id:e,sourcing_session_id:i}})},removeFromShortlist:async e=>{c(e),await V({variables:{sourced_cro_id:e,sourcing_session_id:i}})},updateWhiteGloveStatus:async e=>{await F({variables:{sourcing_session_id:i,whiteglove_status:e}})},fetchMoreSourcedCros:D,hasMoreSourcedCros:!0===M?.page_info?.has_next_page,countryRegionFilter:f,setCountryRegionFilter:g,sortBy:v,setSortBy:y,loadingQuery:j,loadingPaginatedSourcedCros:P===ie.loading,loadingSourcedCroId:o,loadingShortlist:A,loadingRemoveShortlist:L,loadingFetchMoreCros:P===ie.fetch
101More,loadingChangeFilter:P===ie.setVariables}})(),[F,D]=Pi("qid"),[R,I]=e.useState([]),O=e.useCallback(e=>{I(t=>t.map(e=>e.id).includes(e.id)?t:[...t,e])},[]),B=e.useCallback(e=>{I(t=>t.filter(t=>t.id!==e.id))},[]),q=e.useCallback(()=>{I([])},[]),z=e.useMemo(()=>({tempShortlistedVendors:R,addTempShortlistVendor:O,removeTempShortlistVendor:B,resetTempShortlistVendor:q,sourcingSession:n,currentStep:s,furthestStepReached:p,setCurrentStep:o,getSignedUrl:c,updateStep:d,updateFurthestStepReached:u,sourcedCros:m,shortlistedCros:f,shortlistedCounts:g,shortlistSourcedCro:v,removeFromShortlist:y,updateWhiteGloveStatus:C,fetchMoreSourcedCros:j,hasMoreSourcedCros:w,countryRegionFilter:_,setCountryRegionFilter:S,sortBy:N,setSortBy:k,loadingQuery:E,loadingPaginatedSourcedCros:P,loadingSourcedCroId:M,loadingShortlist:T,loadingRemoveShortlist:A,loadingFetchMoreCros:V,loadingChangeFilter:L,qid:F,setQid:D}),[R,O,B,q,n,s,p,o,c,d,u,m,f,g,v,y,C,j,w,_,S,N,k,E,P,M,T,A,V,L,F,D]);return i.jsx(zs.Provider,{value:z,children:t})},Cx=t=>e.createElement("svg",{width:37,height:39,viewBox:"0 0 37 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{d:"M34.753 28.2261C35.0194 28.9606 34.6398 29.7721 33.9053 30.0385L12.1915 37.9135C11.4569 38.1799 10.6455 37.8003 10.3791 37.0658L0.789018 10.6229C0.522608 9.88832 0.902135 9.07686 1.63671 8.81045L23.3505 0.935504C24.085 0.669093 24.8965 1.04862 25.1629 1.7832L34.753 28.2261Z",fill:"#DBEAFE"}),e.createElement("path",{d:"M24.7813 14.5739L10.8457 19.6279L11.0847 20.2868L25.0202 15.2328L24.7813 14.5739Z",fill:"white"}),e.createElement("path",{d:"M25.4024 16.2868L11.4668 21.3408L11.7058 21.9997L25.6413 16.9457L25.4024 16.2868Z",fill:"white"}),e.createElement("path",{d:"M26.0235 17.9997L12.0879 23.0537L12.3268 23.7126L26.2624 18.6586L26.0235 17.9997Z",fill:"white"}),e.createElement("path",{d:"M9.86756 20.9216C10.1202 20.9216 10.325 20.7169 10.325 20.4642C10.325 20.2116 10.1202 20.0068 9.86756 20.0068C9.61494 20.0068 9.41016 20.2116 9.41016 20.4642C9.41016 20.7169 9.61494 20.9216 9.86756 20.9216Z",fill:"white"}),e.createElement("path",{d:"M22.1035 7.19208L8.16797 12.2461L8.40692 12.905L22.3425 7.85095L22.1035 7.19208Z",fill:"white"}),e.createElement("path",{d:"M22.7246 8.90497L8.78906 13.959L9.02802 14.6179L22.9636 9.56384L22.7246 8.90497Z",fill:"white"}),e.createElement("path",{d:"M23.3457 10.6188L9.41016 15.6729L9.64911 16.3317L23.5847 11.2777L23.3457 10.6188Z",fill:"white"}),e.createElement("path",{d:"M7.16443 13.4685C7.41704 13.4685 7.62183 13.2637 7.62183 13.0111C7.62183 12.7585 7.41704 12.5537 7.16443 12.5537C6.91181 12.5537 6.70703 12.7585 6.70703 13.0111C6.70703 13.2637 6.91181 13.4685 7.16443 13.4685Z",fill:"white"}),e.createElement("path",{d:"M27.4844 22.027L13.5488 27.0811L13.7878 27.7399L27.7233 22.6859L27.4844 22.027Z",fill:"white"}),e.createElement("path",{d:"M28.1055 23.7399L14.1699 28.7939L14.4089 29.4528L28.3444 24.3988L28.1055 23.7399Z",fill:"white"}),e.createElement("path",{d:"M28.7266 25.4528L14.791 30.5068L15.03 31.1657L28.9655 26.1117L28.7266 25.4528Z",fill:"white"}),e.createElement("path",{d:"M12.5433 28.3035C12.796 28.3035 13.0007 28.0987 13.0007 27.8461C13.0007 27.5935 12.796 27.3887 12.5433 27.3887C12.2907 27.3887 12.0859 27.5935 12.0859 27.8461C12.0859 28.0987 12.2907 28.3035 12.5433 28.3035Z",fill:"white"}),e.createElement("path",{d:"M36.3551 38.3934H10.4277V7.43555H36.3551V38.3934Z",fill:"white"}),e.createElement("path",{d:"M36.3551 37.686C36.3551 38.0767 36.0384 38.3934 35.6477 38.3934H11.1352C10.7445 38.3934 10.4277 38.0767 10.4277 37.686V8.14297C10.4277 7.75227 10.7445 7.43555 11.1352 7.43555H35.6477C36.0384 7.43555 36.3551 7.75227 36.3551 8.14297V37.686ZM10.8851 37.2286C10.8851 37.6193 11.2019 37.936 11.5926 37.936H35.1903C35.581 37.936 35.8977 37.6193 35.8977 37.2286V8.60037C35.8977 8.20967 35.581 7.89294 35.1903 7.89294H11.5926C11.2019 7.89294 10.8851 8.20967 10.8851 8.60037V37.2286Z",fill:"#3264ED"}),e.createElement("path",{d:"M16.8431 33.093H14.4374C14.4069 33.093 14.3776 33.0808 14.356 33.0592C14.3344 33.0376 14.3223 33.0084 14.3223 32.9778V30.5722C14.3223 30.5417 14.3344 30.5124 14.356 30.4908C14.3776 30.4692 14.4069 30.4571 14.4374 30.457H16.8431C16.8736 30.4571 16.9029 30.4692 16.9245 30.4908C16.9461 30.5124 16.9582 30.5417 16.9582 30.5722V32.9778C16.9582 33.0084 16.9461 33.0376 16.9245 33.0592C16.9029 33.0808 16.8736 33.093 16.8431 33.093Z",fill:"#3B84FB"}),e.createElement("path",{d:"M32.9548 12.5537H13.8281V13.2546H32.9548V12.5537Z",fill:"#E2E8F0"}),e.createElement("path",{d:"M32.9548 20.7998H13.8281V21.5007H32.9548V20.7998Z",fill:"#E2E8F0"}),e.createElement("path",{d:"M32.4601 30.4863H18.2188V31.1872H32.4601V30.4863Z",fill:"#E2E8F0"}),e.createElement("path",{d:"M32.9548 14.3818H13.8281V15.0827H32.9548V14.3818Z",fill:"#E2E8F0"}),e.createElement("path",{d:"M32.9548 22.627H13.8281V23.3278H32.9548V22.627Z",fill:"#E2E8F0"}),e.createElement("path",{d:"M32.4601 32.3135H18.2188V33.0143H32.4601V32.3135Z",fill:"#E2E8F0"}),e.createElement("path",{d:"M32.9548 16.209H13.8281V16.9099H32.9548V16.209Z",fill:"#E2E8F0"}),e.createElement("path",{d:"M32.9548 18.5049H13.8281V19.2057H32.9548V18.5049Z",fill:"#E2E8F0"}),e.createElement("path",{d:"M32.4581 24.4551H18.2168V25.1559H32.4581V24.4551Z",fill:"#E2E8F0"}),e.createElement("path",{d:"M32.4581 34.1406H18.2168V34.8415H32.4581V34.1406Z",fill:"#E2E8F0"}),e.createElement("line",{x1:13.8281,y1:28.5757,x2:32.955,y2:28.5757,stroke:"#E2E8F0",strokeWidth:.508793}),e.createElement("line",{x1:13.8281,y1:27.1343,x2:32.955,y2:27.1343,stroke:"#E2E8F0",strokeWidth:.508793}),e.createElement("rect",{x:10.7109,y:22.6201,width:25.6434,height:12.1556,fill:"#3264ED"}),e.createElement("path",{d:"M16.8613 29.8166V28.8743H18.245C18.4261 28.8743 18.5902 28.8375 18.7374 28.7639C18.8845 28.6904 19.0005 28.5857 19.0854 28.4498
101C19.1703 28.3084 19.2128 28.1386 19.2128 27.9405C19.2128 27.7481 19.1703 27.5811 19.0854 27.4396C19.0005 27.2982 18.8845 27.1906 18.7374 27.1171C18.5902 27.0435 18.4261 27.0067 18.245 27.0067H16.8613V26.0644H18.3638C18.743 26.0644 19.0826 26.1408 19.3825 26.2936C19.6881 26.4464 19.9287 26.6643 20.1041 26.9473C20.2795 27.2246 20.3673 27.5557 20.3673 27.9405C20.3673 28.3253 20.2795 28.6592 20.1041 28.9422C19.9287 29.2195 19.6881 29.4346 19.3825 29.5874C19.0826 29.7402 18.743 29.8166 18.3638 29.8166H16.8613ZM16.0124 32.0322V26.0644H17.1669V32.0322H16.0124ZM21.9749 32.0322V31.005H23.4944C23.8793 31.005 24.216 30.9258 24.5046 30.7674C24.7933 30.6032 25.0168 30.374 25.1753 30.0797C25.3394 29.7855 25.4215 29.4374 25.4215 29.0356C25.4215 28.6451 25.3394 28.3055 25.1753 28.0169C25.0111 27.7226 24.7848 27.4962 24.4961 27.3378C24.2075 27.1736 23.8736 27.0916 23.4944 27.0916H21.9494V26.0644H23.5114C23.9528 26.0644 24.3603 26.138 24.7338 26.2851C25.113 26.4323 25.4413 26.6417 25.7186 26.9133C26.0015 27.1793 26.2194 27.4934 26.3722 27.8556C26.5307 28.2178 26.6099 28.614 26.6099 29.0441C26.6099 29.4742 26.5307 29.8732 26.3722 30.241C26.2194 30.6032 26.0044 30.9202 25.7271 31.1918C25.4497 31.4578 25.1215 31.6644 24.7423 31.8115C24.3688 31.9587 23.9642 32.0322 23.5284 32.0322H21.9749ZM21.1854 32.0322V26.0644H22.3399V32.0322H21.1854ZM27.5273 32.0322V26.0644H28.6819V32.0322H27.5273ZM28.3762 29.5874V28.5602H31.3814V29.5874H28.3762ZM28.3762 27.0831V26.0644H31.5257V27.0831H28.3762Z",fill:"#FFFFFE"})),jx=t=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:17,height:17,viewBox:"0 0 17 17",fill:"none",...t},e.createElement("path",{d:"M8.23637 0.214942C7.99342 0.218502 7.76182 0.318367 7.59246 0.492594C7.4231 0.66682 7.32984 0.901155 7.33316 1.14411V9.93091L6.14798 8.74573C6.06352 8.65775 5.96235 8.58752 5.8504 8.53913C5.73845 8.49075 5.61798 8.46519 5.49603 8.46395C5.37408 8.4627 5.25311 8.48581 5.1402 8.53191C5.02729 8.578 4.92471 8.64616 4.83847 8.7324C4.75224 8.81864 4.68408 8.92121 4.63798 9.03412C4.59188 9.14703 4.56878 9.268 4.57002 9.38995C4.57126 9.5119 4.59682 9.63238 4.64521 9.74433C4.69359 9.85628 4.76383 9.95744 4.8518 10.0419L7.60171 12.7918C7.77361 12.9636 8.00673 13.0602 8.24979 13.0602C8.49286 13.0602 8.72598 12.9636 8.89788 12.7918L11.6478 10.0419C11.7358 9.95744 11.806 9.85628 11.8544 9.74433C11.9028 9.63238 11.9283 9.5119 11.9296 9.38995C11.9308 9.268 11.9077 9.14703 11.8616 9.03412C11.8155 8.92121 11.7474 8.81864 11.6611 8.7324C11.5749 8.64616 11.4723 8.578 11.3594 8.53191C11.2465 8.48581 11.1255 8.4627 11.0036 8.46395C10.8816 8.46519 10.7611 8.49075 10.6492 8.53913C10.5372 8.58752 10.4361 8.65775 10.3516 8.74573L9.16643 9.93091V1.14411C9.16811 1.02155 9.14519 0.899898 9.09903 0.78635C9.05287 0.672802 8.98441 0.569664 8.8977 0.483035C8.81099 0.396406 8.70778 0.328045 8.59419 0.281997C8.4806 0.235949 8.35892 0.213148 8.23637 0.214942ZM0.903293 11.6729C0.660343 11.6764 0.428744 11.7763 0.259385 11.9505C0.0900265 12.1247 -0.00323756 12.3591 8.58701e-05 12.602V13.977C8.58701e-05 15.4849 1.24211 16.7269 2.74999 16.7269H13.7496C15.2575 16.7269 16.4995 15.4849 16.4995 13.977V12.602C16.5012 12.4806 16.4788 12.36 16.4335 12.2473C16.3882 12.1345 16.3209 12.032 16.2357 11.9455C16.1504 11.8589 16.0487 11.7903 15.9367 11.7434C15.8246 11.6965 15.7043 11.6723 15.5829 11.6723C15.4614 11.6723 15.3411 11.6965 15.2291 11.7434C15.117 11.7903 15.0154 11.8589 14.9301 11.9455C14.8448 12.032 14.7775 12.1345 14.7323 12.2473C14.687 12.36 14.6645 12.4806 14.6662 12.602V13.977C14.6662 14.494 14.2666 14.8936 13.7496 14.8936H2.74999C2.23302 14.8936 1.83335 14.494 1.83335 13.977V12.602C1.83503 12.4795 1.81211 12.3578 1.76596 12.2443C1.7198 12.1307 1.65134 12.0276 1.56463 11.941C1.47791 11.8543 1.37471 11.786 1.26112 11.7399C1.14752 11.6939 1.02585 11.6711 0.903293 11.6729Z",fill:"#4E5C6F"})),wx=e=>{const t=e.split(".").pop(),n=e.substring(0,e.lastIndexOf("."));if(n.length<=10)return e;const s=`${n.substring(0,10)}...`;return t?`${s}.${t}`:s},_x=a("\n  fragment MessageBubble_SourcingSessionMessage on SourcingSessionMessage {\n    id\n    content\n    created_at\n    sender {\n      __typename\n      ... on User {\n        id\n        first_name\n        last_name\n      }\n      ... on Admin {\n        id\n      }\n    }\n    attachments {\n      id\n      filename\n      key\n    }\n  }\n");const Sx=({isSender:e,sourcingSessionMessageFragment:t})=>{const[n,{loading:s}]=qe(we),a=Ve(_x,t),r=a?.attachments?.[0],l=e?"bg-bleu-100":"bg-hoki-100",d="Admin"===(p=a.sender).__typename?"Cromatic Admin":"User"===p.__typename?`${p.first_name} ${p.last_name}`.trim():"";var p;return i.jsx("div",{className:o("w-full typography-nav flex",e?"justify-end":" justify-start"),children:i.jsxs("div",{className:"flex flex-col gap-[10px]",children:[i.jsxs("div",{className:o("flex items-center gap-[7px]",e&&"justify-end"),children:[i.jsx(Ge,{name:d,size:"sm"}),i.jsx("span",{className:"text-sm font-semibold whitespace-nowrap text-primary",children:d}),i.jsx("span",{className:"text-sm text-hoki-500",children:de(a?.created_at).format("h:mm A")})]}),r&&i.jsxs("div",{className:o("flex gap-3 items-center justify-end",!e&&"flex-row-reverse"),children:[i.jsx("button",{type:"button",onClick:async()=>
101{if(!r?.key)throw new Error("Missing attachement key.");const{data:e}=await n({variables:{key:r.key}});e?.signedUrl&&Ae(e.signedUrl,r.filename??"Attachment")},children:s?i.jsx(c,{}):i.jsx(jx,{})}),i.jsxs("div",{className:"flex gap-[18px] flex-row items-center px-5 py-4 rounded-[6px] bg-hoki-100",children:[i.jsx(Cx,{}),i.jsx("span",{className:"text-lg text-hoki-900",children:wx(r.filename??"")})]})]}),a?.content&&i.jsx("div",{className:o("flex max-w-[502px]",e&&"justify-end"),children:i.jsx("div",{className:o("px-5 py-[17px] rounded-[6px] block w-fit whitespace-pre-wrap",l),children:a?.content})})]})})},Nx=t=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:21,height:21,viewBox:"0 0 21 21",fill:"none",...t},e.createElement("path",{d:"M19.0113 9.09909L5.8816 1.6069C5.60477 1.45183 5.28729 1.38472 4.97138 1.41449C4.65548 1.44426 4.35613 1.5695 4.11314 1.77356C3.87015 1.97761 3.69505 2.25081 3.61113 2.55682C3.5272 2.86282 3.53843 3.18712 3.64331 3.48659L6.00113 10.4678L3.64331 17.4491C3.56042 17.6846 3.53517 17.9366 3.56969 18.1838C3.60421 18.4311 3.69748 18.6665 3.8417 18.8704C3.98592 19.0742 4.17688 19.2405 4.39858 19.3553C4.62029 19.4701 4.86629 19.5301 5.11597 19.5303C5.38447 19.5298 5.64834 19.4604 5.88238 19.3288L5.88941 19.3241L19.0144 11.8186C19.2551 11.6824 19.4552 11.4847 19.5945 11.2459C19.7338 11.007 19.8072 10.7354 19.8072 10.4589C19.8072 10.1823 19.7338 9.91074 19.5945 9.67185C19.4552 9.43296 19.2551 9.23531 19.0144 9.09909H19.0113ZM5.67769 17.285L7.66363 11.4053H11.991C12.2396 11.4053 12.4781 11.3066 12.6539 11.1308C12.8297 10.9549 12.9285 10.7165 12.9285 10.4678C12.9285 10.2192 12.8297 9.98074 12.6539 9.80492C12.4781 9.62911 12.2396 9.53034 11.991 9.53034H7.66363L5.67691 3.64909L17.6113 10.4592L5.67769 17.285Z",fill:"white"})),kx=t=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:19,height:20,viewBox:"0 0 19 20",fill:"none",...t},e.createElement("path",{d:"M17.8549 10.5791L10.1617 18.2666C9.10651 19.3215 7.67546 19.914 6.18341 19.9137C4.69135 19.9134 3.26051 19.3205 2.20565 18.2652C1.15079 17.21 0.55833 15.779 0.558594 14.2869C0.558858 12.7948 1.15183 11.364 2.20706 10.3091L11.4096 1.13195C12.1131 0.428797 13.0671 0.0339161 14.0618 0.0341798C14.5543 0.0343104 15.042 0.131448 15.497 0.320045C15.9519 0.508642 16.3653 0.785006 16.7135 1.13336C17.0616 1.48171 17.3378 1.89523 17.5261 2.3503C17.7145 2.80537 17.8114 3.29309 17.8112 3.7856C17.8111 4.27811 17.714 4.76578 17.5254 5.22075C17.3368 5.67573 17.0604 6.0891 16.7121 6.43726L16.6961 6.45226L7.71487 15.0979C7.60838 15.2003 7.48275 15.2808 7.34516 15.3347C7.20758 15.3885 7.06073 15.4148 6.91299 15.4119C6.76526 15.409 6.61954 15.3771 6.48416 15.3179C6.34877 15.2587 6.22636 15.1734 6.12393 15.0669C6.0215 14.9605 5.94105 14.8348 5.88717 14.6972C5.83329 14.5597 5.80703 14.4128 5.80991 14.2651C5.81278 14.1173 5.84472 13.9716 5.90391 13.8362C5.9631 13.7008 6.04838 13.5784 6.15487 13.476L15.1277 4.83976C15.4081 4.55756 15.565 4.17549 15.5638 3.77762C15.5626 3.37975 15.4033 2.99867 15.1211 2.7182C14.9814 2.57933 14.8157 2.46934 14.6334 2.39451C14.4512 2.31968 14.256 2.28148 14.059 2.28209C13.6611 2.28332 13.28 2.44256 12.9996 2.72476L3.79706 11.8991C3.16414 12.5323 2.80868 13.391 2.80885 14.2862C2.80894 14.7295 2.89633 15.1684 3.06605 15.5779C3.23577 15.9874 3.48449 16.3595 3.798 16.6729C4.11151 16.9863 4.48367 17.2348 4.89325 17.4044C5.30282 17.574 5.74178 17.6612 6.18506 17.6611C7.08032 17.6609 7.93883 17.3051 8.57175 16.6719L16.2649 8.98445C16.3695 8.8798 16.4938 8.79679 16.6305 8.74016C16.7672 8.68352 16.9138 8.65438 17.0617 8.65438C17.2097 8.65438 17.3563 8.68352 17.493 8.74016C17.6297 8.79679 17.754 8.8798 17.8586 8.98445C17.9633 9.0891 18.0463 9.21333 18.1029 9.35006C18.1595 9.48679 18.1887 9.63333 18.1887 9.78133C18.1887 9.92932 18.1595 10.0759 18.1029 10.2126C18.0463 10.3493 17.9633 10.4736 17.8586 10.5782L17.8549 10.5791Z",fill:"#1E293B"})),Ex=a("\n  mutation MarkChatAsRead($input: MarkChatAsReadInput!) {\n    markChatAsRead(input: $input) {\n      id\n    }\n  }\n"),Px=a("\n  fragment MarkChatAsRead_SourcingSession on SourcingSession {\n    has_unread_messages\n  }\n"),Mx=S({file:Z(File).optional(),content:k().optional()}).superRefine(({content:e,file:t},n)=>{t||e&&0!==e.trim().length||n.addIssue({code:G.custom,message:"Cannot send an empty chat. Please enter a message or add a file.",path:["content"]})}),Tx=a("\n  mutation SendSourcingSessionMessage($content: String, $file: Upload, $sourcing_session_id: String!) {\n    sendSourcingSessionMessage(content: $content, file: $file, sourcing_session_id: $sourcing_session_id) {\n      id\n      content\n      created_at\n      attachments {\n        id\n        key\n        content_type\n        filename\n        byte_size\n      }\n      sender {\n        __typename\n        ... on User {\n          id\n          first_name\n          last_name\n        }\n        ... on Admin {\n          id\n          username\n        }\n      }\n    }\n  }\n"),Ax=a("\n  query SourcingSessionChat($sourcing_session_id: String!, $after: String) {\n    sourcingSessionChat(sourcing_session_id: $sourcing_session_id) {\n      id\n      sourcing_session_messages_connection(first: 15, after: $after) {\n        edges {\n          cursor\n          node {\n            id\n            content\n            created_at\n            sender {\n              __typename\n              ... on User {\n                id\n                first_name\n                last_name\n              }\n              ... on Admin {\n                id\n                username\n              }\n            }\n            attachments {\n              id\n              key\n              content_type\n              filename\n              byte_size\n            }\n            ...MessageBubble_SourcingSessionMessage\n          }\n        }\n        pageInfo {\n          endCursor\n          hasNextPage\n          hasPreviousPage\n        }\n      }\n    }\n  }\n"),Vx=a("\n  subscription SourcingSessionChatSubscription($sourcing_session_chat_id: String!) {\n    newSourcingSessionMessage(sourcing_session_chat_id: $sourcing_session_chat_id) {\n      cursor\n      node {\n        id\n        content\n        sender {\n          __typename\n          ... on User {\n            id\n            first_name\n            last_name\n          }\n          ... on Admin {\n            id\n            username\n          }\n        }\n        attachments {\n          id\n          key\n          content_type\n          filename\n          byte_size\n        }\n        created_at\n      }\n    }\n  }\n"),Lx=a("\n  query SourcererChatUser {\n    user {\n      id\n    }\n  }\n"),Fx=()=>{const{control:n,handleSubmit:s,reset:a,setValue:l,watch:d}=Bt({resolver:qt(Mx)}),p=d("content"),u=d("file"),[m]=(()=>{const[e,n]=h(Ex);return[t.useCallback(t=>e({variables:{input:t},refetchQueries:[ae,oe],update:e=>{const n=t.sourcing_session_id,s=e.identify({__typename:"SourcingSession",id:n});if(s){const t=e.readFragment({id:s,fragment:Px});t&&e.writeFragment({id:s,fragment:Px,data:{...t,has_unread_messages:!1}})}}}),[e]),n]})(),x=e.useRef(null),f=e.useRef(null),[g,v]=e.useState(!1),y=e.useRef(null),{setIsNewMessageVisible:b,dismissFloatingButton:C,setUnreadMessageIdOnNextUpdate:j,unreadMessageId:w,isNewMessageVisible:_,flagToUpdateUnreadMessageId:S,setUnreadMessageId:N,showFloatingButton:k,isFloatingButtonVisible:E}=_e(),[P,M]=e.useState(null),T=Se({current:P}),A=Ne(),V=e.useRef(0),[L,F]=e.useState(!1),[D,R]=e.useState(!1),I=e.useRef(!1),[O,B]=e.useState(!1),q=e.useRef(null),[z,H]=e.useState(null),Z=e=>{const t=e.target.files?.[0];var n;
101t&&(H({file:t,name:t.name,size:(n=t.size,n<1024?`${n} B`:n<1048576?`${(n/1024).toFixed(1)} KB`:`${(n/1048576).toFixed(1)} MB`)}),l("file",t))},{sourcingSession:U}=Hs(),{data:Q}=r(Lx),W=Q?.user?.id,{data:$,subscribeToMore:Y,fetchMore:K,loading:G}=r(Ax,{variables:{sourcing_session_id:U?.id??""}}),X=$?.sourcingSessionChat?.id,[J,{loading:ee}]=h(Tx,{update(e,{data:t}){const n=t?.sendSourcingSessionMessage;n&&$?.sourcingSessionChat?.id&&e.modify({id:e.identify({id:$.sourcingSessionChat.id,__typename:"SourcingSessionChat"}),fields:{sourcing_session_messages_connection:e=>({...e,edges:[{__typename:"SourcingSessionMessageEdge",cursor:n?.id,node:{__ref:`SourcingSessionMessage:${n.id}`}},...e.edges]})}})}}),te=e.useMemo(()=>$?.sourcingSessionChat?.sourcing_session_messages_connection?.edges||[],[$]),ne=e.useCallback(async e=>{ee||(await J({variables:{content:e.content?.trim(),file:e.file,sourcing_session_id:U?.id??""}}),I.current=!0,a({content:"",file:void 0}),H(null),q.current&&(q.current.value=""))},[ee,a,U,J]),se=e.useCallback(async e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),s(ne)(),e.target.rows=1)},[s,ne]),ie=async e=>{await ne(e)};e.useEffect(()=>{b(T),T&&C(),T&&A&&j()},[T,A,b,C,j]);const re=e.useMemo(()=>{if(te){return[...te].sort((e,t)=>de(e?.node?.created_at)>de(t?.node?.created_at)?1:de(e?.node?.created_at)<de(t?.node?.created_at)?-1:0).reduce((e,t)=>{const n=de(t?.node?.created_at).format("dddd, MMMM D");e[n]||(e[n]=[]);const s={...t?.node,attachments:t?.node?.attachments?.filter(e=>null!=e)||null};return e[n].push(s),e},{})}return{}},[te]);e.useEffect(()=>{!G&&te.length>0&&!g&&f.current&&(f.current.scrollIntoView({inline:"nearest",block:"nearest"}),v(!0))},[G,te.length,g]);const le=e=>{const t=de(e);return t.isSame(de(),"day")?"Today":t.isSame(de().subtract(1,"day"),"day")?"Yesterday":e};e.useEffect(()=>{if(y.current){const e=y.current.scrollHeight>y.current.clientHeight;B(e)}},[re]),e.useEffect(()=>{y.current&&Object.entries(re).length>0&&!g&&(V.current=y.current.scrollHeight)},[re,g]),e.useEffect(()=>{U?.has_unread_messages&&U?.id&&m({sourcing_session_id:U?.id??""})},[U?.has_unread_messages,U?.id,m]),e.useEffect(()=>{if(L&&y.current&&V.current>0){const e=y.current.scrollHeight-V.current;y.current.scrollTo(0,e),V.current=y.current.scrollHeight,F(!1)}},[re,L]);e.useEffect(()=>{let e=!1;if(y.current&&V.current>0){const{scrollTop:t,clientHeight:n}=y.current;e=V.current-t-n<120}(e||_||!0===I.current)&&f.current&&(f.current.scrollIntoView({inline:"nearest",block:"nearest"}),I.current=!1)},[re]),e.useImperativeHandle(null,()=>({scrollToBottomOnNextUpdate(){I.current=!0},scrollToBottom(){f.current&&f.current.scrollIntoView({inline:"nearest",block:"nearest"})}}));const ce=e.useCallback(e=>Y({document:Vx,variables:{sourcing_session_chat_id:e},updateQuery:(e,{subscriptionData:t})=>{if(!t.data)return e;const{newSourcingSessionMessage:n}=t.data;if(!n)return e;const s=n.node.sender.id===W;let i=!1;if(y.current&&V.current>0){const{scrollTop:e,clientHeight:t}=y.current;i=V.current-e-t<120}return i||s?I.current=!0:k(),(s||i)&&f.current&&f.current.scrollIntoView({behavior:"smooth"}),!A&&S&&n.node?.id&&N(n.node.id),n.node?.id&&m({sourcing_session_id:U?.id??""}),{...e,sourcingSessionChat:{...e.sourcingSessionChat||{},sourcing_session_messages_connection:{...e.sourcingSessionChat?.sourcing_session_messages_connection||{},edges:[n,...e?.sourcingSessionChat?.sourcing_session_messages_connection?.edges||[]],pageInfo:{...e.sourcingSessionChat?.sourcing_session_messages_connection?.pageInfo||{},startCursor:n.cursor}}}}}}),[S,A,N,k,Y,W,m,U?.id]);e.useEffect(()=>X&&ce?ce(X):()=>null,[X,ce]);const pe=e.useCallback(()=>{y.current&&(y.current.scrollTo({top:y.current.scrollHeight,behavior:"smooth"}),C())},[C]),ue=Object.entries(re).length>0;return i.jsxs("div",{className:"flex flex-col flex-1 min-h-0 bg-white border-t pb-0 md:pb-[20px]",children:[i.jsxs("div",{className:"relative flex flex-1 overflow-hidden",children:[i.jsxs("div",{className:"flex flex-col flex-1 px-4 sm:px-[29px] overflow-y-auto",onScroll:async()=>{if(y.current){const{scrollTop:e}=y.current,t=$?.sourcingSessionChat?.sourcing_session_messages_connection?.pageInfo;if(0===e&&t?.hasNextPage&&!D){R(!0);try{await K({variables:{sourcing_session_id:U?.id??"",after:t.endCursor,first:15},updateQuery:(e,{fetchMoreResult:t})=>t?{sourcingSessionChat:{...e.sourcingSessionChat,__typename:"SourcingSessionChat",s
101ourcing_session_messages_connection:{__typename:"SourcingSessionMessagesConnection",edges:[...e.sourcingSessionChat?.sourcing_session_messages_connection?.edges??[],...t.sourcingSessionChat?.sourcing_session_messages_connection?.edges??[]],pageInfo:t.sourcingSessionChat?.sourcing_session_messages_connection?.pageInfo??{endCursor:"",hasNextPage:!1}}}}:e}),F(!0)}finally{R(!1)}}}},ref:y,children:[!ue&&G&&i.jsx("div",{className:"flex flex-col flex-1 items-center justify-center",children:i.jsx(c,{})}),D&&i.jsx("div",{className:"flex justify-center mt-3",children:i.jsx(c,{})}),!G&&i.jsxs("div",{className:"flex-1 w-full max-w-[730px] mx-auto",children:[ue&&O&&!1===$?.sourcingSessionChat?.sourcing_session_messages_connection?.pageInfo?.hasNextPage&&i.jsx("div",{className:"text-center text-xs text-hoki-400 py-4",children:"You have reached the end"}),!ue&&i.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-hoki-900 text-center py-4 max-w-[482px] mx-auto gap-2",children:[i.jsx("p",{className:"text-2xl font-medium",children:"Do you have any questions about the project?"}),i.jsx("p",{className:"text-lg font-normal",children:"Chat with a Cromatic expert right now! We will get back to you within 24 hours."})]}),Object.entries(re).map(([e,t],n)=>{const s=0===n;return i.jsxs("div",{className:o("flex flex-col gap-2",s?"mt-4":""),children:[i.jsx("div",{className:"text-center pb-2 mt-4",children:i.jsx("p",{className:"text-xs text-hoki-400 font-normal leading-none",children:le(e)})}),i.jsx("div",{className:"flex flex-col gap-9",children:t.map(e=>{const t=w===e.id;return i.jsxs("div",{children:[t&&i.jsxs("div",{className:"flex items-center gap-x-3",ref:M,children:[i.jsx("div",{className:"flex-grow h-px bg-persimmon-600"}),i.jsx("div",{className:"text-persimmon-600 text-xs",children:"New messages"})]}),i.jsx(Sx,{isSender:e?.sender?.id===W,sourcingSessionMessageFragment:e},e?.id)]},e?.id)})})]},`message-group:${e}`)}),ue&&i.jsx("div",{ref:f,className:"h-[30px]"})]})]}),E&&i.jsx("div",{className:"absolute inset-x-0 flex justify-center bottom-4",children:i.jsxs("button",{type:"button",className:"text-sm py-2 px-4 bg-bleu-600 rounded-full text-white inline-flex gap-2 items-center shadow-md",onClick:pe,children:[i.jsx(wt,{width:16,height:16}),"New messages below"]})})]}),i.jsx("div",{className:"w-full max-w-[730px] mx-auto",children:i.jsx("form",{id:"chat-form",ref:x,onSubmit:s(ie),className:"bg-white",children:i.jsxs("div",{className:"flex-1 flex flex-col",children:[z&&i.jsxs("div",{className:"flex items-center gap-2 py-1 px-2 bg-gray-50 rounded mb-1",children:[i.jsx(kx,{className:"w-4 h-4 text-hoki-400"}),i.jsx("span",{className:"text-xs text-hoki-800 truncate",children:z.name}),i.jsxs("span",{className:"text-xs text-hoki-400",children:["(",z.size,")"]}),i.jsx("button",{type:"button",onClick:()=>{H(null),q.current&&(q.current.value="",l("file",void 0))},className:"text-xs text-hoki-400 hover:text-hoki-500",children:"×"})]}),i.jsxs("div",{className:"w-full flex flex-row self-end bg-white gap-2 py-[7px] items-center border border-hoki-200 rounded-[45px]",children:[i.jsx(zt,{control:n,name:"content",render:({field:e})=>i.jsx(on,{...e,placeholder:"Ask your expert any question...",rows:1,maxRows:4,onKeyDown:se,className:"outline-0 focus:outline-none pl-6 focus:border-none focus:ring-0 border-none bg-transparent text-hoki-800 resize-none !text-sm",disabled:ee})}),i.jsx(zt,{control:n,name:"file",render:()=>i.jsx("input",{type:"file",ref:q,onChange:Z,className:"hidden",accept:".pdf,.doc,.docx,.txt"})}),i.jsx("button",{type:"button",className:"mr-3",onClick:()=>q.current?.click(),children:i.jsx(kx,{})}),i.jsxs(Ot,{onClick:s(ie),className:"rounded-full px-4 py-4 text-sm gap-2 min-w-[94px] mr-4",disabled:!p?.trim()&&!u,isLoading:ee,children:["Send",i.jsx(Nx,{})]})]})]})})})]})},Dx=a("\n  query WhitegloveStatus_Query($sourcingSessionId: String!) {\n    sourcingSession(id: $sourcingSessionId) {\n      id\n      whiteglove_status\n    }\n  }\n"),Rx=({children:t})=>{const{sessionId:a}=x(),o=n(),{toastError:c}=m(),{data:d}=r(Dx,{variables:{sourcingSessionId:a??""},skip:!a});return e.useEffect(()=>{d?.sourcingSession?.whiteglove_status===l.Withdrawn&&(c("This sourcing session has been withdrawn. Redirecting to the dashboard."),o(s.App))},[d,o,c]),i.jsx(i.Fragment,{children:t})},Ix=({vendorId:e,logoUrl:t,name:n,vendorTypes:s})=>i.jsxs("div",{className:"flex flex-row items-center gap-3.5",children:[i.jsx("div",{className:"w-[32px] h-[32px] bg-white rounded",children:t?i.jsx("img",{className:"w-full h-full object-contain rounded",alt:"logo",src:t}):i.jsx(Me,{className:"text-hoki-600 w-full h-full"})}),i.jsx("span",{className:"text-hoki-800 font-medium",children:n}),i.jsx("div",{className:"flex gap-2 flex-wrap",children:s?.map(t=>i.jsx("div",{className:o("h-[26px] px-3 py-1 rounded-full justify-start items-center flex",Ut(t)),children:i.jsx("div",{className:"text-white text-xs font-bold",children:t?.replace("_"," ")})},`company-type:${e}:${t}`))})]}),Ox=({onClose:e,onSendShortlist:t,isOpen:n,loading:s})=>{const{shortlistedCros:a,shortlistedCounts:o}=Hs();return i.jsx(et,{hideHeaderBorder:!0,onClose:e,isOpen:n,children:i.jsxs("div",{className:"md:px-4 md:pb-5 -mt-5 text-hoki-900",children:[i.jsxs("div",{className:"flex flex-col gap-3 mb-8",children:[i.jsx("div",{className:"text-2xl font-semibold",children:"Almost done! Confirm your shortlist:"}),i.jsx("div",{className:"text-base",children:"Ready to streamline your outsourcing? Confirm to send us your shortlist and our team will expertly manage your next steps—from RFP review to vendor selection, price negotiations, and a smooth quoting process."})]}),i.jsx("div",{className:"text-base font-semibold mb-4",children:`Selected vendors (${o}):`}),i.jsx("div",{className:"h-[251px] overflow-y-auto flex flex-col gap-5 mb-6 bg-hoki-100 px-9 py-6 rounded-md",children:a?.map(e=>i.jsx(Ix,{vendorId:e?.id,name:e?.name,logoUrl:e?.vendor_company?.logo_url,vendorTypes:(e?.vendor_company?.vendor_company_types||[]).map(e=>e.company_type)},`vendor-list-item:${e?.id}`))}),i.jsxs("div",{children:[i.jsx("strong",{className:"text-base",children:"Next steps: "}),i.jsx("span",{className:"text-base",children:"Once you confirm, our team will reach out to you via email. Keep an eye on your inbox for our follow-up!"})]}),i.jsx("div",{className:"flex items-center gap-4 justify-end mt-5",children:i.jsx(Be,{className:"w-[236px] h-10",isLoading:s,onClick:t,"data-testid":"button:send-shortlist",children:"Send shortlist to Cromatic"})})]})})},Bx=({onClose:e,onSendShortlist:t,isOpen:n,loading:s})=>{const{tempShortlistedVendors:a}=Hs(),o=a.length;return i.jsx(et,{hideHeaderBorder:!0,onClose:e,isOpen:n,children:i.jsxs("div",{className:"md:px-4 md:pb-5 -mt-5 text-hoki-900",children:[i.jsxs("div",{className:"flex flex-col gap-3 mb-8",children:[i.jsx("div",{className:"text-2xl font-semibold",children:"Add to your shortlist:"}),i.jsx("div",{className:"text-base",children:"You're one step closer to streamlining your outsourcing! Confirm to send us the additional vendors for your shortlist, and we'll seamlessly include them in the next steps—from RFP review to vendor selection, price negotiations, and a smooth quoting process."})]}),i.jsx("div",{className:"text-base font-semibold mb-4",children:`New vend
101ors to add (${o}):`}),i.jsx("div",{className:"h-[251px] overflow-y-auto flex flex-col gap-5 mb-6 bg-hoki-100 px-9 py-6 rounded-md",children:a?.map(e=>i.jsx(Ix,{vendorId:e?.id,name:e?.name,logoUrl:e?.vendor_company?.logo_url,vendorTypes:(e?.vendor_company?.vendor_company_types||[]).map(e=>e.company_type)},e?.id))}),i.jsxs("div",{children:[i.jsx("strong",{className:"text-base",children:"Next steps: "}),i.jsx("span",{className:"text-base",children:"Once you confirm, our team will include these additional vendors and reach out via email with updated details. Keep an eye on your inbox for follow-up information!"})]}),i.jsx("div",{className:"flex items-center gap-4 justify-end mt-5",children:i.jsx(Be,{className:"w-[236px] h-10",isLoading:s,onClick:t,"data-testid":"button:send-shortlist",children:"Send shortlist to Cromatic"})})]})})},qx=a("\n  mutation PauseQuoteCollection_Mutation($sourcing_session_id: String!) {\n    pauseQuoteCollection(sourcing_session_id: $sourcing_session_id) {\n      id\n      quote_collection_limit\n    }\n  }\n");const zx=({onClosePauseQuoteCollectionModal:t,isOpenPauseQuoteCollectionModal:n,sourcedQuotesCount:s,quoteCollectionLimit:a,sourcingSessionId:o})=>{const[r,{loading:l}]=function(){const[t,n]=h(qx);return[e.useCallback(e=>t({variables:{sourcing_session_id:e}}),[t]),n]}(),{toastSuccess:c}=m(),{refetch:d}=mt(),p=re(),u=Math.max(3,s),x=Math.max(a-u,0);return i.jsxs(et,{title:"Pause Quote Collection",disableOnClose:!0,onClose:t,isOpen:n,children:[i.jsxs("div",{className:"text-hoki-600 space-y-4",children:[i.jsxs("p",{children:["Are you sure you want to pause quote collection for this project? This will stop collecting new quotes immediately. This action is"," ",i.jsx("strong",{children:"permanent"})," ","and cannot be undone."]}),i.jsxs("ul",{className:"list-disc list-inside",children:[i.jsxs("li",{children:[i.jsx("strong",{children:s})," ","quotes have been collected so far."]}),i.jsxs("li",{children:[i.jsx("strong",{children:x})," ","token",x>0&&"s"," ","will be refunded."]}),i.jsx("li",{children:"Projects are subject to a 3-token minimum charge, even if fewer quotes are sourced."})]})]}),i.jsxs("div",{className:"flex items-center gap-2 justify-end mt-5",children:[i.jsx(Be,{onClick:t,color:"hoki",children:"Cancel"}),i.jsx(Be,{color:"bittersweet",onClick:async()=>{await r(o),c("The quote collection process has been successfully paused."),t(),await p.refetchQueries({include:["SourcingResultPageQuery"]}),await d()},isLoading:l,children:"Confirm"})]})]})},Hx={"bottom-right":"bottom-4 right-4","bottom-left":"bottom-4 left-4"};function Zx({className:t,position:n="bottom-right",threshold:s=300}){const[a,r]=e.useState(!1);e.useEffect(()=>{const e=()=>{r(window.scrollY>s)};return e(),window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[s]);return i.jsx("button",{type:"button",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},className:o("fixed z-50 rounded-full shadow-md transition-all duration-300 p-2 bg-white",Hx[n],a?"opacity-100 translate-y-0":"opacity-0 translate-y-4 pointer-events-none",t),children:i.jsx(st,{size:16,className:"text-primary bg-white rounded-full"})})}const Ux=a("\n  mutation SendSourcingShortlist($sourcingSessionId: String!) {\n    sendSourcingShortlist(sourcing_session_id: $sourcingSessionId) {\n      id\n      whiteglove_status\n    }\n  }\n"),Qx=a("\n  mutation SendExtraSourcingShortlist($sourcingSessionId: String!, $sourcedCroIds: [String!]!) {\n    sendExtraSourcingShortlist(sourcing_session_id: $sourcingSessionId, sourced_cro_ids: $sourcedCroIds) {\n      id\n    }\n  }\n"),Wx=({shortlistedCount:e,onNext:n})=>{const[s,a]=t.useState(!1),{x:r}=ze({delay:200,from:{x:!0===s?1:0},x:1}),{isDesktopSidebarOpen:l}=_t();return i.jsxs(He.div,{className:o("fixed bottom-0 z-10 px-4 lg:px-18 h-[72px] bg-bleu-100 rounded border-t border-hoki-200 flex items-center gap-3 justify-between",l?"w-[calc(100vw-237px)]":"md:w-[calc(100vw-80px)] w-full"),style:{opacity:r.to({range:[0,1],output:[0,1]})},"data-testid":"div:upsell-banner",children:[i.jsxs("div",{className:"text-hoki-800 text-sm lg:text-lg",children:[i.jsx("span",{children:"You've added"}),i.jsx("strong",{children:` ${e} ${e>1?"companies":"company"} `}),i.jsx("span",{children:"to your shortlist. Ready to move forward?"})]}),i.jsxs(Be,{onClick:()=>{a(!0),n()},className:"h-[40px] inline-flex gap-2 items-center justify-center font-medium px-2 md:px-6 rounded border text-sm md:text-base","data-testid":"button:next",children:["Next",i.jsx($e,{})]})]})},$x=({children:a})=>{const r=n(),{sessionId:c}=x(),{sourcingSession:p,shortlistedCounts:u,loadingQuery:g,setCurrentStep:v}=Hs(),{tempShortlistedVendors:y,resetTempShortlistVendor:b}=Hs(),[C,{loading:w}]=(()=>{const[e,n]=h(Ux);return[t.useCallback(t=>e({variables:{sourcingSessionId:t},update(e,{data:t}){const n=t?.sendSourcingShortlist;if(n){e.modify({id:e.identify({__typename:"SourcingSession",id:n.id}),fields:{whiteglove_status:()=>n.whiteglove_status}});const t=e.readQuery({query:le,variables:{whiteglove_status:[l.Draft,l.Downloaded]}});e.writeQuery({query:le,variables:{whiteglove_status:[l.Draft,l.Downloaded]},data:{sourcingSessions:t?.sourcingSessions?.filter(e=>
101e?.id!==n.id)}});const s=t?.sourcingSessions?.find(e=>e?.id===n.id),i=e.readQuery({query:le,variables:{whiteglove_status:[l.Submitted,l.InProgress,l.PausedQuoteCollection]}});s&&e.writeQuery({query:le,variables:{whiteglove_status:[l.Submitted,l.InProgress,l.PausedQuoteCollection]},data:{sourcingSessions:[s,...i?.sourcingSessions||[]]}})}}}),[e]),n]})(),[_,{loading:S}]=(()=>{const[e,n]=h(Qx);return[t.useCallback((t,n)=>e({variables:{sourcingSessionId:t,sourcedCroIds:n},refetchQueries:["SourcingResultPageQuery"]}),[e]),n]})(),N=p?.sourcing_quotes,k=N?.some(e=>"processing"===e?.biotech_invoice?.payment_status||"paid"===e?.biotech_invoice?.payment_status),E=()=>k?i.jsx("div",{className:"bg-malachite-100 flex flex-row gap-2 justify-center items-center text-malachite-600 px-[11px] py-[4px] rounded-[8px] text-[14px] font-medium h-[28px]",children:"Matched successfully"}):p?.whiteglove_status===l.Draft?i.jsxs("div",{className:"bg-yellow-100 flex flex-row gap-2 justify-center items-center text-yellow-600 px-[11px] py-[4px] rounded-[8px] text-[14px] font-medium h-[28px]",children:[i.jsx("div",{className:"w-[7px] h-[7px] bg-yellow-600 rounded-full"}),"Draft"]}):p?.whiteglove_status===l.Submitted?i.jsxs("div",{className:"bg-malachite-100 flex flex-row gap-2 justify-center items-center text-malachite-600 px-[11px] py-[4px] rounded-[8px] text-[14px] font-medium h-[28px]",children:[i.jsx("div",{className:"w-[7px] h-[7px] bg-malachite-600 rounded-full"}),"In progress"]}):p?.whiteglove_status===l.PausedQuoteCollection?i.jsxs("div",{className:"bg-yellow-100 flex flex-row gap-2 justify-center items-center text-yellow-600 px-[11px] py-[4px] rounded-[8px] text-[14px] font-medium h-[28px]",children:[i.jsx("div",{className:"w-[7px] h-[7px] bg-yellow-600 rounded-full"}),"Quote Collection Paused"]}):null,{toastSuccess:P,toastCatchError:M}=m(),T=e.useRef(null),{isOpen:A,onClose:V,onOpen:L}=kt(),{isOpen:F,onClose:D,onOpen:I}=kt(),[O,{loading:B}]=h(me,{update:(e,{data:t})=>{const n=t?.confirmRemoveSourcingSession?.id;n&&e.evict({id:e.identify({__typename:"SourcingSession",id:n})})},onCompleted:()=>{r(s.Sourcerer,{replace:!0})}}),[q,{loading:z}]=h(he,{onCompleted:()=>{r(s.DraftProjects,{replace:!0})},refetchQueries:["ProjectSourcingSessionsQuery"]}),{isOpen:H,onClose:Z,onOpen:U}=kt(),{isOpen:Q,onClose:W,onOpen:Y}=kt(),{isOpen:K,onClose:G,onOpen:X}=kt(),{pathname:J}=f(),ee=e.useCallback(()=>{v(0),r(s.SourcererMatchedVendor(c??""))},[v,r,c]),te=e.useCallback(async()=>{try{if(!c)throw new Error("Something went wrong.");await C(c),window.scrollTo({top:0,behavior:"smooth"}),P("Successfully sent your shortlist."),V()}catch(R){M(R)}},[C,P,M,V,c]),ne=e.useCallback(async()=>{try{if(!c)throw new Error("Something went wrong.");await _(c,y.map(e=>e.id)),window.scrollTo({top:0,behavior:"smooth"}
101),P("Successfully add new vendors to your shortlist."),D(),b()}catch(R){M(R)}},[_,P,M,D,b,c,y]),se=J.includes("/chat"),ie=J.includes("/matched"),ae=J.includes("/shortlisted"),oe=u>0&&p?.whiteglove_status===l.Draft&&!se,re=p?.whiteglove_status!==l.Draft&&p?.whiteglove_status!==l.Downloaded,ce=y.length>0&&re&&!se,de=oe||ce,pe=e.useCallback(()=>se?s.SourcererMatchedVendor(c??""):re?s.InProgressProjects:s.AllProjects,[se,re,c]);return ie||ae||se?g?i.jsx($,{hasNavbar:!0}):i.jsxs("div",{className:o("relative",de&&"pb-[120px]"),children:[i.jsxs("div",{ref:T,className:o("flex flex-col w-full",se?"h-screenWithoutNav":"min-h-screenWithoutNav"),children:[i.jsx("div",{className:"flex flex-col gap-5 text-hoki-900 print:hidden bg-white px-[24px] py-[23px]",children:i.jsxs("div",{className:"flex gap-[17.5px] text-hoki-900 text-[26px] font-semibold",children:[i.jsx(d,{to:pe(),children:i.jsx(Ye,{})}),i.jsx("div",{className:"flex items-center gap-[10px] w-full",children:i.jsxs("div",{className:"flex w-full flex-wrap flex-row gap-[17px] justify-between",children:[se?i.jsxs("div",{className:"flex flex-col",children:[i.jsx("div",{className:"text-2xl font-medium",children:"Chat with Cromatic"}),i.jsx("div",{className:"flex flex-row items-center gap-x-[10px] flex-wrap text-lg font-medium mt-[5px]",children:i.jsxs("div",{className:"font-normal flex flex-row items-center gap-x-[8px] flex-wrap",children:[i.jsxs("div",{children:["Project:"," ",p?.project_title]}),E()]})})]}):i.jsxs("div",{className:"flex flex-row items-center gap-x-[10px] flex-wrap",children:[p?.project_title,E()]}),i.jsxs("div",{className:"flex gap-x-[10px]",children:[se?i.jsx(d,{to:s.CalendlyMeet,target:"_blank",children:i.jsxs("button",{type:"button",className:"flex items-center gap-2 px-4 py-2 rounded-[4px] bg-primary text-white text-[14px] font-medium h-9",children:[i.jsx(hn,{}),i.jsx("div",{className:"leading-none",children:"Meet with an expert"})]})}):i.jsx(d,{to:s.SourcererChat(c??""),children:i.jsxs("button",{type:"button",className:"flex items-center gap-2 px-4 py-2 rounded-[4px] bg-primary text-white text-[14px] font-medium h-9 relative",children:[i.jsx(Ke,{}),i.jsx("div",{className:"leading-none",children:"Chat with an expert"}),p?.has_unread_messages&&i.jsx("div",{className:"absolute -top-1 -right-1 w-3 h-3 bg-red-500 rounded-full"})]})}),i.jsx(qs,{isSubmitted:p?.whiteglove_status===l.Submitted,isDraft:p?.whiteglove_status===l.Draft,hasTimeline:p?.vendor_answer_deadline,onViewProject:ee,onOpenPauseQuoteCollectionModal:X,onOpenCancelProjectConfirmationModal:U,onOpenWithdrawProjectConfirmationModal:Y})]})]})})]})}),a]}),oe&&i.jsx(Wx,{shortlistedCount:u,onNext:L}),ce&&i.jsx(Wx,{shortlistedCount:y.length,onNext:I}),i.jsx(Ox,{onClose:V,isOpen:A,loading:w,onSendShortlist:te}),i.jsx(Bx,{onClose:D,isOpen:F,loading:S,onSendShortlist:ne}),i.jsx(Jn,{onCloseCancelProjectConfirmationModal:Z,isOpenCancelProjectConfirmationModal:H,confirmDeleteSourcingSessionFn:O,sourcingSessionId:c,loadingDeleteSourcingSession:B}),i.jsx(es,{onCloseWithdrawProjectConfirmationModal:W,isOpenWithdrawProjectConfirmationModal:Q,confirmWithdrawSourcingSessionFn:q,sourcingSessionId:c,loadingWithdrawSourcingSession:z}),i.jsx(zx,{onClosePauseQuoteCollectionModal:G,isOpenPauseQuoteCollectionModal:K,sourcedQuotesCount:N?.length||0,quoteCollectionLimit:p?.quote_collection_limit||0,sourcingSessionId:c||""}),i.jsx(Zx,{position:"bottom-right",className:o(de&&"bottom-24"),threshold:418})]}):i.jsx(j,{replace:!0,to:s.SourcererMatchedVendor(c??"")})},Yx=a("\n  query SourcererLayout_SourcingSession($id: String!) {\n    sourcingSession(id: $id) {\n      id\n    }\n  }\n"),Kx=()=>{const{sessionId:e}=x(),{toastError:n}=m(),a=dn(Yx,e?{variables:{id:e}}:pn),o=t.useMemo(()=>!(!e||null!==a.data?.sourcingSession),[e,a]);return t.useEffect(()=>{o&&n("Project not found.",{id:e})},[n,o,e]),o?i.jsx(j,{to:s.Sourcerer}):i.jsx(ce,{})},Gx=()=>{const e=St(),t=Je(),n=$x;return i.jsxs(w,{children:[i.jsx(_,{index:!0,element:i.jsx(Yn,{})}),i.jsx(_,{path:"projects",element:i.jsx(ds,{})}),i.jsx(_,{path:"experiments/*",element:i.jsx(hx,{})}),i.jsx(_,{path:"projects/:tab?",element:i.jsx(ds,{})}),i.jsx(_,{path:"perks",element:i.jsx(mx,{})}),i.jsx(_,{path:"negotiator",element:i.jsx(Rs,{})}),e,i.jsxs(_,{path:"sourcerer/:sessionId?",element:i.jsx(Kx,{}),children:[i.jsxs(_,{element:i.jsx(Rx,{children:i.jsx(bx,{children:i.jsx(n,{children:i.jsx(ke,{})})})}),children:[i.jsx(_,{path:"result/*",element:i.jsx(Qa,{})}),i.jsx(_,{path:"chat",element:i.jsx(Fx,{})})]}),i.jsx(_,{index:!0,element:i.jsx(rx,{})})]}),t,i.jsx(_,{path:"*",element:i.jsx(cn,{})})]})};export{Gx as default};
102//# sourceMappingURL=index-CWrup8z4.js.map
103
104//# debugId=20214fed-3fce-51da-9bee-71a9a519bcab

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.