cortex-react-components 1.53.18 → 1.53.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-TZE7RZAV.mjs → chunk-3BBZH3T3.mjs} +1 -1
- package/dist/{chunk-ZODTQZTN.mjs → chunk-3PTHLA3K.mjs} +1 -1
- package/dist/{chunk-IQ7LAP7P.mjs → chunk-4TCLIMFP.mjs} +1 -1
- package/dist/{chunk-F7BI5FYX.mjs → chunk-5J5WPYIM.mjs} +1 -1
- package/dist/chunk-5TMU7KTC.mjs +2 -0
- package/dist/{chunk-BRFSZTQJ.mjs → chunk-6YWAX7NS.mjs} +1 -1
- package/dist/{chunk-LCJZMDQF.mjs → chunk-7WSF7CDA.mjs} +1 -1
- package/dist/{chunk-XMTEY7XQ.mjs → chunk-ANAWSXMS.mjs} +1 -1
- package/dist/{chunk-NFLAGBIE.mjs → chunk-CM5OUS2S.mjs} +1 -1
- package/dist/{chunk-OGKJF5LR.mjs → chunk-CSNKYRV5.mjs} +1 -1
- package/dist/{chunk-D7A7EUEW.mjs → chunk-DFB6DJCW.mjs} +1 -1
- package/dist/{chunk-GZLUDIN3.mjs → chunk-E6MYDQ3V.mjs} +1 -1
- package/dist/{chunk-RQ23CZK5.mjs → chunk-F55C2C5H.mjs} +1 -1
- package/dist/chunk-FUJT4M2J.mjs +5 -0
- package/dist/{chunk-FK6Y5G5N.mjs → chunk-GF62H2LB.mjs} +1 -1
- package/dist/{chunk-VCC562W2.mjs → chunk-HFN2NHXV.mjs} +1 -1
- package/dist/{chunk-OLKBLOEH.mjs → chunk-I6OTINHS.mjs} +1 -1
- package/dist/{chunk-WV4NLWRU.mjs → chunk-ICM6QD7O.mjs} +1 -1
- package/dist/{chunk-LLJZRF3C.mjs → chunk-KLCZHZKQ.mjs} +1 -1
- package/dist/{chunk-65KP55SA.mjs → chunk-KXGA6R7U.mjs} +1 -1
- package/dist/chunk-L4FTRAKV.mjs +4 -0
- package/dist/{chunk-GFX7ISZC.mjs → chunk-LY5LYSJP.mjs} +1 -1
- package/dist/{chunk-XRSFJHOZ.mjs → chunk-NO4A4H5A.mjs} +1 -1
- package/dist/{chunk-XDFXEM2U.mjs → chunk-O6CPA4ET.mjs} +1 -1
- package/dist/{chunk-4MQV5KBS.mjs → chunk-OJPHYSRN.mjs} +1 -1
- package/dist/chunk-PIM2JQYT.mjs +1 -0
- package/dist/{chunk-TATBOD3E.mjs → chunk-PYOE47AG.mjs} +1 -1
- package/dist/{chunk-2QVJBFPH.mjs → chunk-QFWNMI4Q.mjs} +1 -1
- package/dist/chunk-RHGDR5Z3.mjs +1 -0
- package/dist/{chunk-QSIJJSKA.mjs → chunk-S3LKALPI.mjs} +1 -1
- package/dist/{chunk-HDVYZQKY.mjs → chunk-SWROLJQ7.mjs} +1 -1
- package/dist/{chunk-TTY5DT75.mjs → chunk-TOO2CCBL.mjs} +1 -1
- package/dist/chunk-VP6NKH2R.mjs +1 -0
- package/dist/{chunk-BRYLOPR4.mjs → chunk-WXN6BK2F.mjs} +1 -1
- package/dist/{chunk-DHLQCOMJ.mjs → chunk-YJMQPBXM.mjs} +1 -1
- package/dist/chunk-ZL6WMZEV.mjs +4 -0
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/Content.stories.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/DealDetails.js +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/DealDetails.stories.js +1 -1
- package/dist/components/CRM/DealDetails.stories.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.js +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.js +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.js +1 -1
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.stories.js +1 -1
- package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
- package/dist/components/CRM/NewDealForm.js +1 -1
- package/dist/components/CRM/NewDealForm.mjs +1 -1
- package/dist/components/CRM/NewDealForm.stories.js +1 -1
- package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
- package/dist/components/CRM/index.js +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/ContentCard.stories.mjs +1 -1
- package/dist/components/Cards/FeatureCard.js +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.stories.js +1 -1
- package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
- package/dist/components/Cards/index.js +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
- package/dist/components/HeaderFooter/Footer.mjs +1 -1
- package/dist/components/HeaderFooter/Footer.stories.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/FeatureGrid.stories.js +1 -1
- package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.js +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.js +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/Print.stories.js +1 -1
- package/dist/components/Layouts/Print.stories.mjs +1 -1
- package/dist/components/Layouts/SlideShow.js +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.js +1 -1
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.js +4 -4
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +5 -5
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +7 -7
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/IndexPage.stories.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/Intranet.stories.mjs +1 -1
- package/dist/pages/LandingPage.js +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/LandingPage.stories.js +1 -1
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Printable.stories.js +4 -4
- package/dist/pages/Printable.stories.mjs +1 -1
- package/dist/pages/Publish.js +4 -4
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.js +4 -4
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.js +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.js +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogList.js +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogList.stories.js +1 -1
- package/dist/sections/BlogList.stories.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/ImageSection.stories.mjs +1 -1
- package/dist/sections/MainPageSection.js +1 -1
- package/dist/sections/MainPageSection.mjs +1 -1
- package/dist/sections/PageSections.js +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PageSections.stories.js +3 -3
- package/dist/sections/PageSections.stories.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
- package/dist/sections/ServiceSection.js +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/ServiceSection.stories.js +1 -1
- package/dist/sections/ServiceSection.stories.mjs +1 -1
- package/dist/sections/index.js +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-2GAB2DAK.mjs +0 -5
- package/dist/chunk-6ZTACGHK.mjs +0 -4
- package/dist/chunk-G5HD4IFA.mjs +0 -1
- package/dist/chunk-KDC7QCYU.mjs +0 -4
- package/dist/chunk-KQ3VIRWA.mjs +0 -1
- package/dist/chunk-ST57SBGX.mjs +0 -1
- package/dist/chunk-TUFJTJCO.mjs +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as H,j,k as E,l as G,m as _,n as $,o as J}from"./chunk-O5BAW5XQ.mjs";import{a as h}from"./chunk-44VMK4FL.mjs";import{a as I}from"./chunk-2A6JF3LE.mjs";import{a as S}from"./chunk-4YJ3HV64.mjs";import{a as T}from"./chunk-2NFKSNJW.mjs";import{b as P}from"./chunk-BDX257W2.mjs";import{a as g}from"./chunk-SFLOMJ2U.mjs";import{a as l}from"./chunk-NIQ4466A.mjs";import{jsx as k,jsxs as U}from"react/jsx-runtime";var R=({links:a,richText:e})=>k("div",{className:"container",children:U("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[k("div",{className:"max-w-[48rem] flex items-center",children:e&&k(u,{className:"mb-0",content:e,enableGutter:!1})}),k("div",{className:"flex flex-col gap-8",children:(a||[]).map(({link:t},s)=>k(h,{size:"lg",...t},s))})]})});import X from"next/image";import{jsx as n,jsxs as w}from"react/jsx-runtime";function F(a){return a&&typeof a=="object"&&"type"in a&&"iconName"in a}function q({image:a,icon:e,title:t,subtitle:s,content:c,statistic:r,settings:o,link:p,className:d}){var b,x;let f={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:"bg-background"},y={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return w("div",{className:l("min-w-56 max-w-xl h-full flex flex-col group",a?"p-0 md:p-0":"p-8 md:p-8",o&&!a&&f[(o==null?void 0:o.card)==="default"?"solid":o==null?void 0:o.card],a&&"bg-foreground",o&&(o==null?void 0:o.card)==="outline"?"text-gray-900":"text-white",y[(b=o==null?void 0:o.width)!=null?b:"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",o&&`intersect:animate-delay-${o.order||1}00`,d),children:[a&&n("div",{className:"relative h-64 w-full mb-0",children:n(X,{src:a.url||"/placeholder.svg",alt:a.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),w("div",{className:l(a?"p-4 pb-8 md:px-12":"p-0 md:p-0","flex flex-col flex-grow"),children:[s&&n("div",{className:"mb-4 text-primary uppercase font-light",children:s}),n("div",{className:"flex items-center gap-4 mb-2",children:n(O,{icon:{type:(e==null?void 0:e.type)||"fa-light",iconName:(e==null?void 0:e.icon)||"no-icon-error"},heading:t!=null?t:"",variant:(o==null?void 0:o.card)==="default"?"solid":(x=o==null?void 0:o.card)!=null?x:"solid",iconSize:(o==null?void 0:o.iconSize)||"large"})}),r&&n("div",{className:"mb-6",children:n("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",(o==null?void 0:o.card)==="outline"||(o==null?void 0:o.card)==="light"?"text-brand-green":"text-white"),children:r})}),c&&typeof c=="object"&&n(u,{enableGutter:!1,content:c,enableProse:!1,className:l("space-y-6",(o==null?void 0:o.card)==="outline"||(o==null?void 0:o.card)==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100",a&&"prose prose-headings:text-background prose-p:text-background")}),c&&typeof c=="string"&&n("div",{className:l("space-y-6",(o==null?void 0:o.card)==="outline"||(o==null?void 0:o.card)==="light"?"prose text-foreground":"prose text-gray-100",a&&"prose text-background"),children:c}),p&&p.url&&n("div",{className:"pt-6 h-full flex items-end justify-start",children:n("a",{className:"text-accent justify-start font-semibold uppercase",href:p.url||"#",children:(p==null?void 0:p.label)||"Find out more"})}),(o==null?void 0:o.card)==="radial"&&n("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})]})}var O=({icon:a,heading:e,variant:t,iconSize:s,subtitle:c})=>a&&s==="small"&&a.iconName!="no-icon-error"?w("div",{className:"flex items-start justify-between w-full mb-2",children:[n("div",{className:l("font-semibold",t==="outline"||t==="light"?"text-primary":"text-white",s==="small"?"text-2xl":"text-3xl"),children:e}),F(a)&&n("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",t==="outline"||t==="light"?"text-primary":"text-white",s==="small"?"mt-2":""),children:n(g,{type:a.type,iconName:a.iconName,size:"2x"})})]}):a&&a.iconName!="no-icon-error"?w("div",{className:"flex flex-col gap-4",children:[F(a)&&n("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",t==="outline"||t==="light"?"text-accent":""),children:n(g,{type:a.type,iconName:a.iconName,size:"4x"})}),n("h3",{className:l("font-normal",t==="outline"||t==="light"?"text-2xl text-primary":"text-3xl"),children:e})]}):n("div",{className:"flex items-center gap-4 mb-2",children:n("div",{className:l("font-regular",t==="outline"||t==="light"?"text-2xl text-primary":"text-3xl"),children:e})});import{jsx as m,jsxs as B}from"react/jsx-runtime";function D(a){return a&&typeof a=="object"&&"type"in a&&"iconName"in a}function z({variant:a="outline",className:e,icon:t,iconSize:s="large",width:c="auto",order:r=0,heading:o,subheading:p,content:d,statistic:f,buttonText:y,buttonHref:b}){let x={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:""},M={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return B("div",{className:l("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",x[a],a==="outline"?"text-gray-900":"text-white",e,M[c],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${r+1}00`),children:[m("div",{className:"flex items-center gap-4 mb-2",children:m(K,{icon:t,heading:o,variant:a,iconSize:s})}),f&&m("div",{className:"mb-6",children:m("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",a==="outline"||a==="light"?"text-primary":"text-white"),children:f})}),p&&m("div",{className:"mb-4 text-xl md:text-2xl font-light",children:p}),d&&typeof d=="object"&&m("div",{className:l("space-y-6"),children:m(u,{enableGutter:!1,content:d,enableProse:!1,className:l(a==="outline"||a==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),d&&typeof d=="string"&&m("div",{className:l("space-y-6",a==="outline"||a==="light"?"text-gray-900":"text-gray-100"),children:d}),y&&m("div",{className:"mt-auto pt-6 flex items-center justify-center",children:m(P,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:m("a",{href:b,children:y})})}),a==="radial"&&m("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var K=({icon:a,heading:e,variant:t,iconSize:s})=>a&&s==="small"?B("div",{className:"flex items-start gap-4 mb-2",children:[D(a)&&m("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",t==="outline"||t==="light"?"text-primary":"text-white",s==="small"?"mt-2":""),children:m(g,{type:a.type,iconName:a.iconName,size:"2x"})}),m("div",{className:l("font-semibold",t==="outline"||t==="light"?"text-primary":"text-white",s==="small"?"text-2xl":"text-3xl"),children:e})]}):a?B("div",{className:"flex flex-col gap-4",children:[D(a)&&m("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",t==="outline"||t==="light"?"text-accent":""),children:m(g,{type:a.type,iconName:a.iconName,size:"4x"})}),m("h3",{className:l("font-semibold",t==="outline"||t==="light"?"text-2xl text-primary":"text-3xl"),children:e})]}):m("div",{className:"flex items-center gap-4 mb-2",children:m("div",{className:l("font-semibold",t==="outline"||t==="light"?"text-2xl text-primary":"text-3xl"),children:e})});import{jsx as N,jsxs as Q}from"react/jsx-runtime";var A=({title:a,description:e,features:t,id:s,nested:c=!1})=>Q("section",{className:l(!c&&"container","w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[a&&N("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl text-primary",id:s||"",children:a}),e&&typeof e=="string"&&N("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:e}),e&&typeof e=="object"&&N("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:N(u,{content:e,enableGutter:!1})}),N("div",{className:`grid gap-8 mt-10 md:grid-cols-${t?t.length:1}`,children:t&&t.map((r,o)=>{var d,f,y,b,x;let p=()=>{if(r.icon&&"type"in r.icon&&r.icon.type!=="none")return{type:r.icon.type,iconName:r.icon.icon}};return N(z,{variant:((d=r.settings)==null?void 0:d.card)==="default"?"light":((f=r.settings)==null?void 0:f.card)||"outline",icon:p()||void 0,iconSize:((y=r.settings)==null?void 0:y.iconSize)||"large",width:"auto",order:o,heading:r.title||"",content:r.content||void 0,statistic:r.statistic||void 0,buttonText:(b=r.link)!=null&&b.url?"Find out more":void 0,buttonHref:((x=r.link)==null?void 0:x.url)||void 0},o)})})]});import V,{Fragment as W}from"react";import{jsx as i}from"react/jsx-runtime";function v({nodes:a}){return i(W,{children:a==null?void 0:a.map((e,t)=>{if(e==null)return null;if(e.type==="text"&&e.text){let r=i(V.Fragment,{children:e.text},t);return e.format&1&&(r=i("strong",{children:r},t)),e.format&2&&(r=i("em",{children:r},t)),e.format&4&&(r=i("span",{style:{textDecoration:"line-through"},children:r},t)),e.format&8&&(r=i("span",{style:{textDecoration:"underline"},children:r},t)),e.format&16&&(r=i("code",{children:e.text},t)),e.format&32&&(r=i("sub",{children:r},t)),e.format&64&&(r=i("sup",{children:r},t)),r}if(e.type==="table")return i("table",{children:i("tbody",{children:e.children.map((r,o)=>i("tr",{children:r.children.map((p,d)=>i("td",{children:v({nodes:p.children})},d))},o))})},t);let s=r=>{if(r.children==null)return null;if((r==null?void 0:r.type)==="list"&&(r==null?void 0:r.listType)==="check")for(let o of r.children)"checked"in o&&(o!=null&&o.checked||(o.checked=!1));return v({nodes:r.children})},c="children"in e?s(e):"";if(e.type==="block"){let r=e.fields,o=r==null?void 0:r.blockType;if(!r||!o)return null;switch(o){case"cta":return i(R,{...r},t);case"mediaBlock":return i(I,{className:"col-start-1 col-span-3",imgClassName:"m-0",...r,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},t);case"imageBlock":return i(S,{className:"col-start-1 col-span-3",imgClassName:"m-0",...r,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},t);case"banner":return i(L,{className:"col-start-2 mb-4",...r},t);case"code":return i(T,{className:"col-start-2",...r},t);case"features":return i(A,{...r,nested:!0},t);case"reusableContentBlock":v({nodes:r.reusableContent.layout});default:return null}}else switch(e.type){case"linebreak":return i("br",{className:"col-start-2"},t);case"paragraph":return i("p",{className:"col-start-2",children:c},t);case"heading":{let r=e==null?void 0:e.tag;return i(r,{className:"col-start-2",id:(e==null?void 0:e.id)||"",children:c},t)}case"list":{let r=e==null?void 0:e.tag;return i(r,{className:"list col-start-2",children:c},t)}case"listitem":return(e==null?void 0:e.checked)!=null?i("li",{"aria-checked":e.checked?"true":"false",className:` ${e.checked,""}`,role:"checkbox",tabIndex:-1,value:e==null?void 0:e.value,children:c},t):i("li",{value:e==null?void 0:e.value,children:c},t);case"quote":return i("blockquote",{className:"col-start-2",children:c},t);case"link":{let r=e.fields;return i(h,{newTab:!!(r!=null&&r.newTab),reference:r.doc,type:r.linkType==="internal"?"reference":"custom",url:r.url,children:c},t)}case"autolink":{let r=e.fields;return i(h,{newTab:!!(r!=null&&r.newTab),reference:r.doc,type:r.linkType==="internal"?"reference":"custom",url:r.url,children:c},t)}default:return null}})})}import{jsx as Y}from"react/jsx-runtime";var u=({className:a,content:e,enableGutter:t=!0,enableProse:s=!0})=>{var c;return e?Y("div",{className:l({"container ":t,"max-w-none":!t,"mx-auto prose dark:prose-invert ":s},a),children:e&&!Array.isArray(e)&&typeof e=="object"&&"root"in e&&v({nodes:(c=e==null?void 0:e.root)==null?void 0:c.children})}):null};import{jsx as C}from"react/jsx-runtime";var L=({className:a,content:e,style:t})=>C("div",{className:l("mx-auto my-8 w-full",a),children:C("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":t==="info","border-error bg-error/30":t==="error","border-success bg-success/30":t==="success","border-warning bg-warning/30":t==="warning"}),children:C(u,{content:e,enableGutter:!1,enableProse:!1})})});export{L as a,R as b,A as c,v as d,u as e,q as f,z as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as p}from"./chunk-SV7NMNDI.mjs";import{e as s,f as m}from"./chunk-
|
|
1
|
+
import{a as p}from"./chunk-SV7NMNDI.mjs";import{e as s,f as m}from"./chunk-VP6NKH2R.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import{a as r}from"./chunk-NIQ4466A.mjs";import{jsx as e,jsxs as d}from"react/jsx-runtime";function N({services:a,className:c,title:o,content:l}){let f={settings:{width:"full",card:"light"}};return d(n,{className:"py-8",children:[d("div",{className:r("w-full text-left"),children:[o&&e("h2",{className:"text-3xl md:text-5xl text-primary",children:o}),e("div",{className:"mt-4 text-gray-700 py-12 ",children:l&&e(s,{enableGutter:!1,content:l,enableProse:!1,className:r("prose prose-headings:text-3xl prose-p:text-2xl prose-headings:text-foreground prose-p:text-foreground")})})]}),a&&a.length>0&&e("div",{className:"-mx-4 flex h-[32rem] flex-wrap justify-between gap-y-4",children:a.map((t,i)=>e("div",{"data-aos":"fade-up","data-aos-delay":p([200,400,600],i),className:"w-full h-full md:px-4 md:w-1/2 lg:w-1/3",children:e(m,{...f,icon:{type:"none"},title:t.title,image:t.image,content:t.content,link:t.link})},i))})]})}export{N as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as b}from"./chunk-
|
|
1
|
+
import{e as b}from"./chunk-VP6NKH2R.mjs";import{a as y}from"./chunk-44VMK4FL.mjs";import{a as d}from"./chunk-NIQ4466A.mjs";import{jsx as s,jsxs as h}from"react/jsx-runtime";var H=k=>{var p;let{columns:i,theme:n}=k,T={full:"12",half:"6",oneThird:"4",twoThirds:"8"},R={none:"",line:"border border-primary p-4 rounded-lg"},c=o=>{if(o.type&&o.type==="block"&&o.fields&&(o.fields.blockType==="imageBlock"||o.fields.blockType==="mediaBlock"))return!0;if(o.root&&o.root.children){for(let e of o.root.children)if(c(e))return!0}if(o.children){for(let e of o.children)if(c(e))return!0}return!1},v=(o,e,r)=>{if(e==="none"||r==="full")return{processedRichText:o,heading:null};let t=o,l=null;return o&&o.root&&o.root.children&&o.root.children[0].tag==="h2"&&(t={...o,root:{...o.root,children:o.root.children.slice(1)}},l=o.root.children[0]),{processedRichText:t,heading:l}};return s("div",{className:"container my-6",children:s("div",{className:d("grid grid-cols-4 lg:grid-cols-12 gap-y-8",(p=n==null?void 0:n.settings)!=null&&p.box?"gap-x-8":"gap-x-16"),children:i&&i.length>0&&i.map((o,e)=>{var m,g;let{enableLink:r,link:t,richText:l,size:a}=o,{processedRichText:f,heading:u}=v(l,((m=n==null?void 0:n.settings)==null?void 0:m.box)||"none",a||"full");return h("div",{className:d(`col-span-4 lg:col-span-${T[a]}`,{"md:col-span-2":a!=="full"},R[a!=="full"&&!c(l)&&((g=n==null?void 0:n.settings)==null?void 0:g.box)||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${e+1}00`),children:[u&&s("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:u.children[0].text}),f&&s(b,{content:f,enableGutter:!1,className:"rich-text"}),r&&s(y,{...t})]},e)})})})};export{H as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
import{a as F}from"./chunk-FUJT4M2J.mjs";import{a as T}from"./chunk-KXGA6R7U.mjs";import{a as v}from"./chunk-NIQ4466A.mjs";import{a as R}from"./chunk-C5XNOZXC.mjs";import{useState as A}from"react";import G from"html2canvas";import{jsPDF as W}from"jspdf";import{Fragment as J,jsx as e,jsxs as g}from"react/jsx-runtime";function ae({type:p="slideshow",orientation:d="landscape",...i}){let h=i.page,[C,n]=A(d),{contentWithIds:s,tableOfContents:a}=R(h);if(p==="slideshow")return e("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:e(T,{blocks:s,hero:i.hero,title:i.page.title,logoImage:i.logoImage})});if(p==="print")return g(J,{children:[e(U,{layout:C,changeLayout:n}),e(F,{page:i.page,layout:C,logoImage:i.logoImage})]})}var U=({changeLayout:p,layout:d="landscape"})=>{let i=async()=>{var s;if(d==="flow"){let a=(s=document.getElementById("printable-content"))==null?void 0:s.innerHTML;if(a){var n=window.document.body.innerHTML;window.document.body.innerHTML=a,window.print(),window.document.body.innerHTML=n}}else await new Promise(a=>setTimeout(a,300)),window.print()},h=n=>{p&&p(n)},C=async n=>{let s=document.getElementById(n);if(!s)throw new Error(`Element with id ${n} not found`);let a=document.createElement("canvas"),P=window.devicePixelRatio;a.width=Math.max(s.clientWidth||0)*P,a.height=Math.max(s.clientHeight||0)*P+100;let u=a.getContext("2d");if(!u)throw new Error("Failed to get 2D context");let q=u.drawImage,z=Array.from(s.getElementsByTagName("img")).reduce((y,c)=>(y[c.src]=c,y),{});u.drawImage=function(...y){let[c,S,j,l,r,D,B,m,w]=y;if(c instanceof HTMLImageElement){let Y=z[c.src].style.objectFit||"fill",$=z[c.src].style.objectPosition||"center center";r=c.height,l=c.width;let L=l/r,b=m/w,[x,f]=$.split(" ");switch(f||(f=x),Y){case"cover":if(L>b){let t=r*b,o=(l-t)/2;x==="left"&&(o=0),x==="right"&&(o=l-t),S+=o,l=t}else{let t=l/b,o=(r-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=r-t),j+=o,r=t}break;case"contain":if(L>b){let t=m/L,o=(w-t)/2;f==="top"&&(o=0),f==="bottom"&&(o=w-t),B+=o,w=t}else{let t=w*L,o=(m-t)/2;x==="left"&&(o=0),x==="right"&&(o=m-t),D+=o,m=t}break;case"fill":break}}return q.call(u,c,S,j,l,r,D,B,m,w)};let k=document.getElementById(n);if(!k)throw new Error(`Element with id ${n} not found`);var O=a.width,X=a.height;let I=(await G(k,{canvas:a,windowHeight:X,windowWidth:O,scale:window.devicePixelRatio})).toDataURL("image/png"),N=new W({}).getImageProperties(I),M=297,E=M*(N.height/N.width),H=new W({unit:"mm",format:[M,E]});H.addImage(I,"PNG",0,0,M,E),H.save("print.pdf")};return e("div",{className:v("fixed right-2 z-20 top-20 space-y-6 print:hidden"),children:e("div",{className:"flex flex-row-reverse z-20 min-w-70 gap-4",children:g("nav",{className:"z-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[g("a",{onClick:i,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:e("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),e("small",{className:"text-xs font-medium",children:"Print"})]}),e("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),g("a",{onClick:()=>h("portrait"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="portrait"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:e("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),e("small",{className:"text-xs",children:"Portrait"})]}),g("a",{onClick:()=>h("landscape"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="landscape"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:e("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),e("small",{className:"text-xs",children:"Landscape"})]}),g("a",{onClick:()=>h("flow"),className:v("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",d==="flow"?"text-accent":"hover:text-accent"),children:[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:e("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),e("small",{className:"text-xs",children:"Continuous"})]})]})})})};export{ae as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-VP6NKH2R.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-44VMK4FL.mjs";import"../../chunk-M6M43TLT.mjs";import"../../chunk-FGWIT6CV.mjs";import"../../chunk-OI2YT2ZF.mjs";import"../../chunk-EY5QX73B.mjs";import"../../chunk-YCX5N23N.mjs";import"../../chunk-2A6JF3LE.mjs";import"../../chunk-4YJ3HV64.mjs";import"../../chunk-FCCL6W7R.mjs";import"../../chunk-WLBZXBU3.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-2NFKSNJW.mjs";import"../../chunk-FI4SMRAR.mjs";import"../../chunk-5IQPAE6K.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-BDX257W2.mjs";import"../../chunk-Y2KKUQDU.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-VZXLXNVY.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-C5XNOZXC.mjs";import"../../chunk-SPOYKTBR.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as BannerBlock};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a}from"../../chunk-
|
|
1
|
+
import{b as a}from"../../chunk-VP6NKH2R.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-44VMK4FL.mjs";import"../../chunk-M6M43TLT.mjs";import"../../chunk-FGWIT6CV.mjs";import"../../chunk-OI2YT2ZF.mjs";import"../../chunk-EY5QX73B.mjs";import"../../chunk-YCX5N23N.mjs";import"../../chunk-2A6JF3LE.mjs";import"../../chunk-4YJ3HV64.mjs";import"../../chunk-FCCL6W7R.mjs";import"../../chunk-WLBZXBU3.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-2NFKSNJW.mjs";import"../../chunk-FI4SMRAR.mjs";import"../../chunk-5IQPAE6K.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-BDX257W2.mjs";import"../../chunk-Y2KKUQDU.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-VZXLXNVY.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-C5XNOZXC.mjs";import"../../chunk-SPOYKTBR.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as CallToActionBlock};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as t}from"../../chunk-
|
|
1
|
+
import{b as t}from"../../chunk-VP6NKH2R.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-44VMK4FL.mjs";import"../../chunk-M6M43TLT.mjs";import"../../chunk-FGWIT6CV.mjs";import"../../chunk-OI2YT2ZF.mjs";import"../../chunk-EY5QX73B.mjs";import"../../chunk-YCX5N23N.mjs";import"../../chunk-2A6JF3LE.mjs";import"../../chunk-4YJ3HV64.mjs";import"../../chunk-FCCL6W7R.mjs";import"../../chunk-WLBZXBU3.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-2NFKSNJW.mjs";import"../../chunk-FI4SMRAR.mjs";import"../../chunk-5IQPAE6K.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-BDX257W2.mjs";import"../../chunk-Y2KKUQDU.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-VZXLXNVY.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-C5XNOZXC.mjs";import"../../chunk-SPOYKTBR.mjs";import"../../chunk-S7OK7D5I.mjs";import{jsx as i}from"react/jsx-runtime";var r={title:"Reusable Blocks/CallToAction",component:t},c=r,o=l=>i(t,{...l}),e=o.bind({});e.args={richText:{root:{children:[{type:"text",text:"This is a regular text."},{type:"text",text:"This is bold text.",format:1}]}},links:[{link:{type:"custom",label:"Learn More",url:"#"}},{link:{type:"custom",label:"Get Started",url:"#"}}]};var a=o.bind({});a.args={...e.args,links:[{link:{type:"custom",label:"Learn More",url:"#"}}]};export{e as Default,a as SingleLink,c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-YJMQPBXM.mjs";import"../../chunk-VP6NKH2R.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-44VMK4FL.mjs";import"../../chunk-M6M43TLT.mjs";import"../../chunk-FGWIT6CV.mjs";import"../../chunk-OI2YT2ZF.mjs";import"../../chunk-EY5QX73B.mjs";import"../../chunk-YCX5N23N.mjs";import"../../chunk-2A6JF3LE.mjs";import"../../chunk-4YJ3HV64.mjs";import"../../chunk-FCCL6W7R.mjs";import"../../chunk-WLBZXBU3.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-2NFKSNJW.mjs";import"../../chunk-FI4SMRAR.mjs";import"../../chunk-5IQPAE6K.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-BDX257W2.mjs";import"../../chunk-Y2KKUQDU.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-VZXLXNVY.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-C5XNOZXC.mjs";import"../../chunk-SPOYKTBR.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as ContentBlock};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t}from"../../chunk-3TVLETYW.mjs";import{a as o}from"../../chunk-
|
|
1
|
+
import{c as t}from"../../chunk-3TVLETYW.mjs";import{a as o}from"../../chunk-YJMQPBXM.mjs";import"../../chunk-VP6NKH2R.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-44VMK4FL.mjs";import"../../chunk-M6M43TLT.mjs";import"../../chunk-FGWIT6CV.mjs";import"../../chunk-OI2YT2ZF.mjs";import"../../chunk-EY5QX73B.mjs";import"../../chunk-YCX5N23N.mjs";import"../../chunk-2A6JF3LE.mjs";import"../../chunk-4YJ3HV64.mjs";import"../../chunk-FCCL6W7R.mjs";import"../../chunk-WLBZXBU3.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-2NFKSNJW.mjs";import"../../chunk-FI4SMRAR.mjs";import"../../chunk-5IQPAE6K.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-BDX257W2.mjs";import"../../chunk-Y2KKUQDU.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-VZXLXNVY.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-C5XNOZXC.mjs";import"../../chunk-SPOYKTBR.mjs";import"../../chunk-S7OK7D5I.mjs";var n={title:"Reusable Blocks/ContentBlock",component:o},m=n,e={args:{...t.content.halfWithEmbeddedImage}},c={args:{...t.content.media}},l={args:{...t.content.oneThirdWithImageTheme3Collumns}},h={args:{...t.content.headerAndTheme3Collumns}},i={args:{...t.content.boxesWithThreeColumns}},r,p={args:{...e.args,theme:{...e.args.theme,settings:{...(r=e.args.theme)==null?void 0:r.settings,box:"line"}}}},g={args:{...t.content.halfWithFeature}};export{p as BoxesWithImage,i as BoxesWithThreeColumns,e as Default,g as Features,h as HeaderAndThreeColumns,c as Media,l as ThreeColumns,m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a}from"../../chunk-
|
|
1
|
+
import{c as a}from"../../chunk-VP6NKH2R.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-44VMK4FL.mjs";import"../../chunk-M6M43TLT.mjs";import"../../chunk-FGWIT6CV.mjs";import"../../chunk-OI2YT2ZF.mjs";import"../../chunk-EY5QX73B.mjs";import"../../chunk-YCX5N23N.mjs";import"../../chunk-2A6JF3LE.mjs";import"../../chunk-4YJ3HV64.mjs";import"../../chunk-FCCL6W7R.mjs";import"../../chunk-WLBZXBU3.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-2NFKSNJW.mjs";import"../../chunk-FI4SMRAR.mjs";import"../../chunk-5IQPAE6K.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-BDX257W2.mjs";import"../../chunk-Y2KKUQDU.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-VZXLXNVY.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-C5XNOZXC.mjs";import"../../chunk-SPOYKTBR.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as FeaturesBlock};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as t}from"../../chunk-3TVLETYW.mjs";import{c as e}from"../../chunk-
|
|
1
|
+
import{b as t}from"../../chunk-3TVLETYW.mjs";import{c as e}from"../../chunk-VP6NKH2R.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-44VMK4FL.mjs";import"../../chunk-M6M43TLT.mjs";import"../../chunk-FGWIT6CV.mjs";import"../../chunk-OI2YT2ZF.mjs";import"../../chunk-EY5QX73B.mjs";import"../../chunk-YCX5N23N.mjs";import"../../chunk-2A6JF3LE.mjs";import"../../chunk-4YJ3HV64.mjs";import"../../chunk-FCCL6W7R.mjs";import"../../chunk-WLBZXBU3.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-2NFKSNJW.mjs";import"../../chunk-FI4SMRAR.mjs";import"../../chunk-5IQPAE6K.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-BDX257W2.mjs";import"../../chunk-Y2KKUQDU.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-VZXLXNVY.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-C5XNOZXC.mjs";import"../../chunk-SPOYKTBR.mjs";import"../../chunk-S7OK7D5I.mjs";var i={title:"Reusable Blocks/FeaturesBlock",component:e,tags:["autodocs"],parameters:{layout:"padded"}},l=i,c={args:{title:"Lorem ipsum dolor sit amet",description:"Donec malesuada arcu at velit laoreet convallis. Sed at eros vel lacus varius varius nec id metus.",features:[{icon:{type:"fa-thin",icon:"robot"},title:"Sed at eros vel lacus varius varius nec id metus.",content:t.simple,settings:{card:"outline",icon:"large"}},{icon:{type:"fa-thin",icon:"lightbulb"},link:{label:"label",type:"custom",url:"#"},title:"Intelligent Insights",statistic:"80%",content:"They provide valuable insights and improve ways of working, saving time and boosting efficiency across your organisation.",settings:{card:"light"}},{icon:{type:"fa-kit",icon:"software"},title:"Collaborative Partners",statistic:"80%",content:"Digital colleagues work alongside human employees, assisting with tasks and enhancing overall performance.",settings:{card:"solid"}}]}},u={args:{features:[{icon:{type:"fa-thin",icon:"robot"},title:"Sed at eros vel lacus varius varius nec id metus.",link:{label:"label",type:"custom",url:"#"},content:t.simple,settings:{card:"outline",iconSize:"large"}},{icon:{type:"fa-thin",icon:"lightbulb"},link:{label:"label",type:"custom",url:"#"},title:"Sed at eros vel lacus varius varius nec id metus.",content:t.simple,statistic:"80%",settings:{card:"radial",iconSize:"small"}},{icon:{type:"fa-kit",icon:"software"},title:"Sed at eros vel lacus.",content:t.simple,statistic:"80%",settings:{card:"gradient",iconSize:"large"}}]}},d={args:{features:[{icon:{type:"fa-thin",icon:"robot"},title:"Sed at eros vel lacus varius varius nec id metus.",link:{label:"label",type:"custom",url:"#"},content:t.simple,settings:{card:"outline",iconSize:"small"}},{icon:{type:"fa-thin",icon:"lightbulb"},link:{label:"label",type:"custom",url:"#"},title:"Sed at eros vel lacus varius varius nec id metus.",content:t.simple,settings:{card:"light",iconSize:"small"}},{icon:{type:"fa-kit",icon:"software"},title:"Sed at eros vel lacus.",content:t.simple,statistic:"80%",settings:{card:"gradient",iconSize:"small"}}]}},g={args:{title:"What Are Digital Colleagues?",features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."},{icon:{type:"fa-thin",icon:"lightbulb"},title:"Intelligent Insights",content:"They provide valuable insights and improve ways of working, saving time and boosting efficiency across your organisation."}]}},p={args:{title:"What Are Digital Colleagues?",features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."}]}},y={args:{title:"What Are Digital Colleagues?",features:[{title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."}]}},m={args:{features:[{icon:{type:"fa-thin",icon:"robot"},title:"AI-Powered Assistants",content:"Digital colleagues are generative AI tools that augment your existing workforce, enhancing productivity and customer experience."},{icon:{type:"fa-thin",icon:"lightbulb"},title:"Intelligent Insights",content:"They provide valuable insights and improve ways of working, saving time and boosting efficiency across your organisation."},{icon:{type:"fa-kit",icon:"delivery"},title:"Collaborative Partners",content:"Digital colleagues work alongside human employees, assisting with tasks and enhancing overall performance."}]}},f={args:{title:"Test Content",features:[{id:"67a8f0ffa2a234ac414429cb",title:"Test Feature",statistic:"80%",content:{root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Some text here!",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},settings:{card:"default",contents:"statistic"},link:{type:"none",newTab:null,url:null},icon:{type:"fa-thin",icon:"cloud"}}],blockType:"features",theme:{settings:{theme:"default",background:"transparent",image:null,overlay:null}}}},h={args:{title:"Test Content",features:[{id:"67a8f0ffa2a234ac414429cb",title:"Test Feature",statistic:"80%",content:{root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Some text here!",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},settings:{card:"default",contents:"statistic"},link:{type:"none",newTab:null,url:null},icon:{type:"fa-thin",icon:"cloud"}},{id:"67a8f0ffa2a234ac414429cb",title:"Test Feature",statistic:"80%",content:{root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Some text here!",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},settings:{card:"default",contents:"statistic"},link:{type:"none",newTab:null,url:null},icon:{type:"fa-thin",icon:"cloud"}},{id:"67a8f0ffa2a234ac414429cb",title:"Test Feature",statistic:"80%",content:{root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Some text here!",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},settings:{card:"default",contents:"statistic"},link:{type:"none",newTab:null,url:null},icon:{type:"fa-thin",icon:"cloud"}}],blockType:"features",theme:{settings:{theme:"default",background:"transparent",image:null,overlay:null}}}};export{f as Cards,c as Default,u as MoreOptions,y as NoIcon,m as NoTitle,p as OneFeature,d as OtherOptions,h as ThreeCards,g as TwoFeatures,l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-SWROLJQ7.mjs";import"../../chunk-MGS3DQ22.mjs";import"../../chunk-6P7CY367.mjs";import"../../chunk-VP6NKH2R.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-44VMK4FL.mjs";import"../../chunk-M6M43TLT.mjs";import"../../chunk-FGWIT6CV.mjs";import"../../chunk-OI2YT2ZF.mjs";import"../../chunk-EY5QX73B.mjs";import"../../chunk-YCX5N23N.mjs";import"../../chunk-2A6JF3LE.mjs";import"../../chunk-4YJ3HV64.mjs";import"../../chunk-FCCL6W7R.mjs";import"../../chunk-WLBZXBU3.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-2NFKSNJW.mjs";import"../../chunk-FI4SMRAR.mjs";import"../../chunk-5IQPAE6K.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-BDX257W2.mjs";import"../../chunk-Y2KKUQDU.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-VZXLXNVY.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-C5XNOZXC.mjs";import"../../chunk-SPOYKTBR.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as RelatedPosts};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,c as b}from"../../chunk-
|
|
1
|
+
import{b as a,c as b}from"../../chunk-HFN2NHXV.mjs";import"../../chunk-YJMQPBXM.mjs";import"../../chunk-VP6NKH2R.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-44VMK4FL.mjs";import"../../chunk-M6M43TLT.mjs";import"../../chunk-FGWIT6CV.mjs";import"../../chunk-OI2YT2ZF.mjs";import"../../chunk-EY5QX73B.mjs";import"../../chunk-YCX5N23N.mjs";import"../../chunk-2A6JF3LE.mjs";import"../../chunk-4YJ3HV64.mjs";import"../../chunk-FCCL6W7R.mjs";import"../../chunk-WLBZXBU3.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-2NFKSNJW.mjs";import"../../chunk-FI4SMRAR.mjs";import"../../chunk-5IQPAE6K.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-BDX257W2.mjs";import"../../chunk-Y2KKUQDU.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-VZXLXNVY.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-C5XNOZXC.mjs";import"../../chunk-SPOYKTBR.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as RenderBlocks,b as Theme};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-HFN2NHXV.mjs";import"../../chunk-YJMQPBXM.mjs";import"../../chunk-VP6NKH2R.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-44VMK4FL.mjs";import"../../chunk-M6M43TLT.mjs";import"../../chunk-FGWIT6CV.mjs";import"../../chunk-OI2YT2ZF.mjs";import"../../chunk-EY5QX73B.mjs";import"../../chunk-YCX5N23N.mjs";import"../../chunk-2A6JF3LE.mjs";import"../../chunk-4YJ3HV64.mjs";import"../../chunk-FCCL6W7R.mjs";import"../../chunk-WLBZXBU3.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-2NFKSNJW.mjs";import"../../chunk-FI4SMRAR.mjs";import"../../chunk-5IQPAE6K.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-BDX257W2.mjs";import"../../chunk-Y2KKUQDU.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-VZXLXNVY.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-C5XNOZXC.mjs";import"../../chunk-SPOYKTBR.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as ReusableContentBlock};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as l}from"../../chunk-6HFYLEVF.mjs";import{a as s}from"../../chunk-SWROLJQ7.mjs";import"../../chunk-MGS3DQ22.mjs";import{a as m}from"../../chunk-EPTHSTUM.mjs";import{a as h}from"../../chunk-UZ2XYB7D.mjs";import{a as k}from"../../chunk-53QLSQCO.mjs";import{a as o}from"../../chunk-JCH2CCQ7.mjs";import"../../chunk-2LJVMEWU.mjs";import"../../chunk-KPIWBWE2.mjs";import"../../chunk-6P7CY367.mjs";import{a as p,b as q,c as r}from"../../chunk-HFN2NHXV.mjs";import{a as n}from"../../chunk-YJMQPBXM.mjs";import{a,b,c as g}from"../../chunk-VP6NKH2R.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-44VMK4FL.mjs";import"../../chunk-M6M43TLT.mjs";import"../../chunk-FGWIT6CV.mjs";import"../../chunk-OI2YT2ZF.mjs";import"../../chunk-EY5QX73B.mjs";import"../../chunk-YCX5N23N.mjs";import{a as e}from"../../chunk-2A6JF3LE.mjs";import{a as f}from"../../chunk-4YJ3HV64.mjs";import"../../chunk-FCCL6W7R.mjs";import"../../chunk-WLBZXBU3.mjs";import"../../chunk-TFWGOEV7.mjs";import{a as d}from"../../chunk-2NFKSNJW.mjs";import"../../chunk-FI4SMRAR.mjs";import{a as c}from"../../chunk-5IQPAE6K.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-BDX257W2.mjs";import{a as i}from"../../chunk-H7D3PZKE.mjs";import{a as j}from"../../chunk-IQPZEEYJ.mjs";import"../../chunk-Y2KKUQDU.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-VZXLXNVY.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-C5XNOZXC.mjs";import"../../chunk-SPOYKTBR.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as BannerBlock,b as CallToActionBlock,d as CodeBlock,n as ContentBlock,c as CopyButton,g as FeaturesBlock,o as HeadingImage,f as ImageBlock,i as InfoTile,h as Insight,j as MOTD,e as MediaBlock,k as OrgChart,l as ProposalSummary,s as RelatedPosts,q as RenderBlocks,p as ReusableContentBlock,r as Theme,m as WhyUs};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";var st=Object.create;var se=Object.defineProperty;var lt=Object.getOwnPropertyDescriptor;var ct=Object.getOwnPropertyNames;var dt=Object.getPrototypeOf,pt=Object.prototype.hasOwnProperty;var mt=(e,t)=>{for(var r in t)se(e,r,{get:t[r],enumerable:!0})},Ae=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of ct(t))!pt.call(e,l)&&l!==r&&se(e,l,{get:()=>t[l],enumerable:!(a=lt(t,l))||a.enumerable});return e};var A=(e,t,r)=>(r=e!=null?st(dt(e)):{},Ae(t||!e||!e.__esModule?se(r,"default",{value:e,enumerable:!0}):r,e)),ut=e=>Ae(se({},"__esModule",{value:!0}),e);var er={};mt(er,{DealDetails:()=>Yt});module.exports=ut(er);var O=require("react");var ee=A(require("react")),P=A(require("@radix-ui/react-dialog")),We=require("lucide-react");var Ge=require("clsx");var be="-",ft=e=>{let t=bt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{let o=c.split(be);return o[0]===""&&o.length!==1&&o.shift(),Ie(o,t)||gt(c)},getConflictingClassGroupIds:(c,o)=>{let v=r[c]||[];return o&&a[c]?[...v,...a[c]]:v}}},Ie=(e,t)=>{var c;if(e.length===0)return t.classGroupId;let r=e[0],a=t.nextPart.get(r),l=a?Ie(e.slice(1),a):void 0;if(l)return l;if(t.validators.length===0)return;let s=e.join(be);return(c=t.validators.find(({validator:o})=>o(s)))==null?void 0:c.classGroupId},Te=/^\[(.+)\]$/,gt=e=>{if(Te.test(e)){let t=Te.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},bt=e=>{let{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return ht(Object.entries(e.classGroups),r).forEach(([s,c])=>{ge(c,a,s,t)}),a},ge=(e,t,r,a)=>{e.forEach(l=>{if(typeof l=="string"){let s=l===""?t:ze(t,l);s.classGroupId=r;return}if(typeof l=="function"){if(vt(l)){ge(l(a),t,r,a);return}t.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([s,c])=>{ge(c,ze(t,s),r,a)})})},ze=(e,t)=>{let r=e;return t.split(be).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},vt=e=>e.isThemeGetter,ht=(e,t)=>t?e.map(([r,a])=>{let l=a.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([c,o])=>[t+c,o])):s);return[r,l]}):e,yt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map,l=(s,c)=>{r.set(s,c),t++,t>e&&(t=0,a=r,r=new Map)};return{get(s){let c=r.get(s);if(c!==void 0)return c;if((c=a.get(s))!==void 0)return l(s,c),c},set(s,c){r.has(s)?r.set(s,c):l(s,c)}}},Le="!",xt=e=>{let{separator:t,experimentalParseClassName:r}=e,a=t.length===1,l=t[0],s=t.length,c=o=>{let v=[],x=0,S=0,D;for(let g=0;g<o.length;g++){let C=o[g];if(x===0){if(C===l&&(a||o.slice(g,g+s)===t)){v.push(o.slice(S,g)),S=g+s;continue}if(C==="/"){D=g;continue}}C==="["?x++:C==="]"&&x--}let N=v.length===0?o:o.substring(S),R=N.startsWith(Le),h=R?N.substring(1):N,w=D&&D>S?D-S:void 0;return{modifiers:v,hasImportantModifier:R,baseClassName:h,maybePostfixModifierPosition:w}};return r?o=>r({className:o,parseClassName:c}):c},wt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(a=>{a[0]==="["?(t.push(...r.sort(),a),r=[]):r.push(a)}),t.push(...r.sort()),t},Pt=e=>({cache:yt(e.cacheSize),parseClassName:xt(e),...ft(e)}),St=/\s+/,Ct=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:l}=t,s=[],c=e.trim().split(St),o="";for(let v=c.length-1;v>=0;v-=1){let x=c[v],{modifiers:S,hasImportantModifier:D,baseClassName:N,maybePostfixModifierPosition:R}=r(x),h=!!R,w=a(h?N.substring(0,R):N);if(!w){if(!h){o=x+(o.length>0?" "+o:o);continue}if(w=a(N),!w){o=x+(o.length>0?" "+o:o);continue}h=!1}let g=wt(S).join(":"),C=D?g+Le:g,k=C+w;if(s.includes(k))continue;s.push(k);let E=l(w,h);for(let I=0;I<E.length;++I){let F=E[I];s.push(C+F)}o=x+(o.length>0?" "+o:o)}return o};function Rt(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Me(t))&&(a&&(a+=" "),a+=r);return a}var Me=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=Me(e[a]))&&(r&&(r+=" "),r+=t);return r};function Nt(e,...t){let r,a,l,s=c;function c(v){let x=t.reduce((S,D)=>D(S),e());return r=Pt(x),a=r.cache.get,l=r.cache.set,s=o,o(v)}function o(v){let x=a(v);if(x)return x;let S=Ct(v,r);return l(v,S),S}return function(){return s(Rt.apply(null,arguments))}}var b=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ee=/^\[(?:([a-z-]+):)?(.+)\]$/T,kt=/^\d+\/\d+$/,Dt=new Set(["px","full","screen"]),At=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|T|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,It=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Lt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,M=e=>$(e)||Dt.has(e)||kt.test(e),B=e=>J(e,"length",Ut),$=e=>!!e&&!Number.isNaN(Number(e)),fe=e=>J(e,"number",$),Z=e=>!!e&&Number.isInteger(Number(e)),Mt=e=>e.endsWith("%")&&$(e.slice(0,-1)),d=e=>Ee.test(e),V=e=>At.test(e),Et=new Set(["length","size","percentage"]),Bt=e=>J(e,Et,Be),Vt=e=>J(e,"position",Be),Gt=new Set(["image","url"]),Wt=e=>J(e,Gt,jt),Ht=e=>J(e,"",Ft),Y=()=>!0,J=(e,t,r)=>{let a=Ee.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},Ut=e=>Tt.test(e)&&!zt.test(e),Be=()=>!1,Ft=e=>It.test(e),jt=e=>Lt.test(e);var Ot=()=>{let e=b("colors"),t=b("spacing"),r=b("blur"),a=b("brightness"),l=b("borderColor"),s=b("borderRadius"),c=b("borderSpacing"),o=b("borderWidth"),v=b("contrast"),x=b("grayscale"),S=b("hueRotate"),D=b("invert"),N=b("gap"),R=b("gradientColorStops"),h=b("gradientColorStopPositions"),w=b("inset"),g=b("margin"),C=b("opacity"),k=b("padding"),E=b("saturate"),I=b("scale"),F=b("sepia"),q=b("skew"),X=b("space"),K=b("translate"),_=()=>["auto","contain","none"],n=()=>["auto","hidden","clip","visible","scroll"],m=()=>["auto",d,t],f=()=>[d,t],ae=()=>["",M,B],ie=()=>["auto",$,d],Ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ne=()=>["solid","dashed","dotted","double","none"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>["start","end","center","between","around","evenly","stretch"],Q=()=>["","0",d],De=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[$,d];return{cacheSize:500,separator:":",theme:{colors:[Y],spacing:[M,B],blur:["none","",V,d],brightness:L(),borderColor:[e],borderRadius:["none","","full",V,d],borderSpacing:f(),borderWidth:ae(),contrast:L(),grayscale:Q(),hueRotate:L(),invert:Q(),gap:f(),gradientColorStops:[e],gradientColorStopPositions:[Mt,B],inset:m(),margin:m(),opacity:L(),padding:f(),saturate:L(),scale:L(),sepia:Q(),skew:L(),space:f(),translate:f()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[V]}],"break-after":[{"break-after":De()}],"break-before":[{"break-before":De()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ne(),d]}],overflow:[{overflow:n()}],"overflow-x":[{"overflow-x":n()}],"overflow-T":[{"overflow-T":n()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-T":[{"overscroll-T":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-T":[{"inset-T":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Z,d]}],basis:[{basis:m()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",Z,d]}],"grid-cols":[{"grid-cols":[Y]}],"col-start-end":[{col:["auto",{span:["full",Z,d]},d]}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":[Y]}],"row-start-end":[{row:["auto",{span:[Z,d]},d]}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[N]}],"gap-x":[{"gap-x":[N]}],"gap-T":[{"gap-T":[N]}],"justify-content":[{justify:["normal",...ue()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ue(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ue(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],T:[{T:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[X]}],"space-x-reverse":["space-x-reverse"],"space-T":[{"space-T":[X]}],"space-T-reverse":["space-T-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[V]},V]}],h:[{h:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",V,B]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",fe]}],"font-family":[{font:[Y]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",d]}],"line-clamp":[{"line-clamp":["none",$,fe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",M,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",M,B]}],"underline-offset":[{"underline-offset":["auto",M,d]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ne(),Vt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","T","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Bt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Wt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[R]}],"gradient-via":[{via:[R]}],"gradient-to":[{to:[R]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-T":[{"border-T":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...ne(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-T":[{"divide-T":[o]}],"divide-T-reverse":["divide-T-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:ne()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-T":[{"border-T":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...ne()]}],"outline-offset":[{"outline-offset":[M,d]}],"outline-w":[{outline:[M,B]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[M,B]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",V,Ht]}],"shadow-color":[{shadow:[Y]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...ke(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ke()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[v]}],"drop-shadow":[{"drop-shadow":["","none",V,d]}],grayscale:[{grayscale:[x]}],"hue-rotate":[{"hue-rotate":[S]}],invert:[{invert:[D]}],saturate:[{saturate:[E]}],sepia:[{sepia:[F]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[v]}],"backdrop-grayscale":[{"backdrop-grayscale":[x]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S]}],"backdrop-invert":[{"backdrop-invert":[D]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-T":[{"border-spacing-T":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",d]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-T":[{"scale-T":[I]}],rotate:[{rotate:[Z,d]}],"translate-x":[{"translate-x":[K]}],"translate-T":[{"translate-T":[K]}],"skew-x":[{"skew-x":[q]}],"skew-T":[{"skew-T":[q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","T","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-T":[{"scroll-T":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","T","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-T":[{"touch-pan":["T","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[M,B,fe]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-T"],overscroll:["overscroll-x","overscroll-T"],inset:["inset-x","inset-T","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-T":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-T"],p:["px","py","ps","T","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-T"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-T":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-T":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-T","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-T","touch-pz"],"touch-x":["touch"],"touch-T":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ve=Nt(Ot);function u(...e){return Ve((0,Ge.clsx)(e))}var T=require("react/jsx-runtime"),He=P.Root;var _t=P.Portal;var Ue=ee.forwardRef(({className:e,...t},r)=>(0,T.jsx)(P.Overlay,{ref:r,className:u("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ue.displayName=P.Overlay.displayName;var ve=ee.forwardRef(({className:e,children:t,...r},a)=>(0,T.jsxs)(_t,{children:[(0,T.jsx)(Ue,{}),(0,T.jsxs)(P.Content,{ref:a,className:u("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-T-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[t,(0,T.jsxs)(P.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,T.jsx)(We.X,{className:"h-4 w-4"}),(0,T.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));ve.displayName=P.Content.displayName;var he=({className:e,...t})=>(0,T.jsx)("div",{className:u("flex flex-col space-T-1.5 text-center sm:text-left",e),...t});he.displayName="DialogHeader";var $t=({className:e,...t})=>(0,T.jsx)("div",{className:u("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});$t.displayName="DialogFooter";var ye=ee.forwardRef(({className:e,...t},r)=>(0,T.jsx)(P.Title,{ref:r,className:u("text-lg font-semibold leading-none tracking-tight",e),...t}));ye.displayName=P.Title.displayName;var Jt=ee.forwardRef(({className:e,...t},r)=>(0,T.jsx)(P.Description,{ref:r,className:u("text-sm text-muted-foreground",e),...t}));Jt.displayName=P.Description.displayName;var Fe=require("@radix-ui/react-slot"),je=require("class-variance-authority"),Oe=A(require("react")),qt=(0,je.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),te=Oe.forwardRef(({asChild:e=!1,className:t,size:r,variant:a,...l},s)=>(0,T.jsx)(e?Fe.Slot:"button",{className:u(qt({className:t,size:r,variant:a})),ref:s,...l}));te.displayName="Button";var $e=A(require("react"));var re=$e.forwardRef(({className:e,type:t,...r},a)=>(0,T.jsx)("input",{type:t,className:u("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...r}));re.displayName="Input";var qe=A(require("react")),xe=A(require("@radix-ui/react-label"));var Xt=(0,je.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),G=qe.forwardRef(({className:e,...t},r)=>(0,T.jsx)(xe.Root,{ref:r,className:u(Xt(),e),...t}));G.displayName=xe.Root.displayName;var Qe=A(require("react")),we=Qe.forwardRef(({className:e,...t},r)=>(0,T.jsx)("textarea",{className:u("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));we.displayName="Textarea";var p=A(require("@radix-ui/react-select")),W=A(require("react")),Pe=p.Root;var Se=p.Value,le=W.forwardRef(({children:e,className:t,...r},a)=>(0,T.jsxs)(p.Trigger,{className:u("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:a,...r,children:[e,(0,T.jsx)(p.Icon,{asChild:!0,children:(0,T.jsx)(We.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));le.displayName=p.Trigger.displayName;var Ye=W.forwardRef(({className:e,...t},r)=>(0,T.jsx)(p.ScrollUpButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,T.jsx)(We.ChevronUp,{className:"h-4 w-4"})}));Ye.displayName=p.ScrollUpButton.displayName;var et=W.forwardRef(({className:e,...t},r)=>(0,T.jsx)(p.ScrollDownButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,T.jsx)(We.ChevronDown,{className:"h-4 w-4"})}));et.displayName=p.ScrollDownButton.displayName;var ce=W.forwardRef(({children:e,className:t,position:r="popper",...a},l)=>(0,T.jsx)(p.Portal,{children:(0,T.jsxs)(p.Content,{className:u("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-T-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-T-1",t),position:r,ref:l,...a,children:[(0,T.jsx)(Ye,{}),(0,T.jsx)(p.Viewport,{className:u("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,T.jsx)(et,{})]})}));ce.displayName=p.Content.displayName;var Kt=W.forwardRef(({className:e,...t},r)=>(0,T.jsx)(p.Label,{className:u("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));Kt.displayName=p.Label.displayName;var de=W.forwardRef(({children:e,className:t,...r},a)=>(0,T.jsxs)(p.Item,{className:u("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:a,...r,children:[(0,T.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,T.jsx)(p.ItemIndicator,{children:(0,T.jsx)(We.Check,{className:"h-4 w-4"})})}),(0,T.jsx)(p.ItemText,{children:e})]}));de.displayName=p.Item.displayName;var Qt=W.forwardRef(({className:e,...t},r)=>(0,T.jsx)(p.Separator,{className:u("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Qt.displayName=p.Separator.displayName;var oe=A(require("@radix-ui/react-checkbox")),rt=A(require("react")),Ce=rt.forwardRef(({className:e,...t},r)=>(0,T.jsx)(oe.Root,{className:u("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:r,...t,children:(0,T.jsx)(oe.Indicator,{className:u("flex items-center justify-center text-current"),children:(0,T.jsx)(We.Check,{className:"h-4 w-4"})})}));Ce.displayName=oe.Root.displayName;var Zt=(0,je.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function at({className:e,variant:t,...r}){return(0,T.jsx)("div",{className:u(Zt({variant:t}),e),...r})}var Re=A(require("react")),z=A(require("@radix-ui/react-scroll-area"));var me=Re.forwardRef(({className:e,children:t,...r},a)=>(0,T.jsxs)(z.Root,{ref:a,className:u("relative overflow-hidden",e),...r,children:[(0,T.jsx)(z.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,T.jsx)(nt,{}),(0,T.jsx)(z.Corner,{})]}));me.displayName=z.Root.displayName;var nt=Re.forwardRef(({className:e,orientation:t="vertical",...r},a)=>(0,T.jsx)(z.ScrollAreaScrollbar,{ref:a,orientation:t,className:u("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:(0,T.jsx)(z.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));nt.displayName=z.ScrollAreaScrollbar.displayName;function Yt({deal:e,users:t,customer:r,categories:a,onClose:l,onSave:s,onAddComment:c}){var F,q,X,K,_;let[o,v]=(0,O.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[x,S]=(0,O.useState)(""),[D,N]=(0,O.useState)(!1),[R,h]=(0,O.useState)(null);(0,O.useEffect)(()=>{N(JSON.stringify(e)!==JSON.stringify(o))},[e,o]);let w=async()=>{try{let n=await s(o);n.success?(N(!1),h(null)):console.error("Failed to save deal:",n.errors)}catch(n){console.error("Failed to save deal:",n)}},g=(n,m)=>{v(f=>({...f,[n]:m}))},C=n=>{let m=(o.categories||[]).includes(n)?(o.categories||[]).filter(f=>f!==n):[...o.categories||[],n];g("categories",m)},k=async()=>{if(x.trim()){let n={text:x,timestamp:new Date().toISOString()};try{let m=await c(n);if(!m.success){console.error("Failed to add comment:",m.errors);return}}catch(m){console.error("Failed to add comment:",m)}v(m=>({...m,comments:[...m.comments||[],n]})),S("")}},E=n=>{switch(n){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},I=n=>t==null?void 0:t.find(m=>m.id===Number(n));return(0,T.jsx)(He,{open:!0,children:(0,T.jsxs)(ve,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,T.jsxs)(he,{className:"flex flex-row items-center justify-between",children:[(0,T.jsx)(ye,{className:"text-2xl font-bold",children:r==null?void 0:r.name}),(0,T.jsxs)("div",{className:"flex space-x-2",children:[(0,T.jsx)(te,{variant:"outline",onClick:l,children:"Close"}),(0,T.jsxs)(te,{onClick:w,disabled:!D,children:[(0,T.jsx)(We.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,T.jsxs)(me,{className:"flex-grow pr-4",children:[(0,T.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,T.jsx)("div",{className:"grid gap-2",children:R==="value"?(0,T.jsx)(re,{type:"number",value:o.value,onChange:n=>g("value",Number(n.target.value)),onBlur:()=>h(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,T.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("value"),children:["\xA3",(F=o.value)==null?void 0:F.toLocaleString()]})}),(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(G,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),R==="assignee"?(0,T.jsxs)(Pe,{value:((X=(q=o==null?void 0:o.assignee)==null?void 0:q.id)==null?void 0:X.toString())||"",onValueChange:n=>g("assignee",I(n)),children:[(0,T.jsx)(le,{children:(0,T.jsx)(Se,{placeholder:"Select assignee"})}),(0,T.jsx)(ce,{children:t&&t.map(n=>{var m;return(0,T.jsx)(de,{value:((m=n==null?void 0:n.id)==null?void 0:m.toString())||"",children:n.name},n.id)})})]}):(0,T.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("assignee"),children:[(0,T.jsx)(We.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,T.jsx)("span",{children:o.assignee.name})]})]}),(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(G,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),R==="closureDate"?(0,T.jsx)(re,{type:"date",value:(_=(K=o.closureDate)==null?void 0:K.split("T")[0])!=null?_:"",onChange:n=>g("closureDate",n.target.value),onBlur:()=>h(null),autoFocus:!0}):(0,T.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("closureDate"),children:[(0,T.jsx)(We.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,T.jsx)("span",{children:o.closureDate?new Date(o.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),(0,T.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(G,{className:"text-sm font-medium text-gray-500",children:"Description"}),R==="description"?(0,T.jsx)(we,{value:o.description||"",onChange:n=>g("description",n.target.value),onBlur:()=>h(null),className:"min-h-[100px]",autoFocus:!0}):(0,T.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>h("description"),children:o.description})]})}),(0,T.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(G,{className:"text-sm font-medium text-gray-500",children:"Status"}),R==="status"?(0,T.jsxs)(Pe,{value:o.status,onValueChange:n=>{g("status",n),h(null)},children:[(0,T.jsx)(le,{children:(0,T.jsx)(Se,{placeholder:"Select status"})}),(0,T.jsx)(ce,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(n=>(0,T.jsx)(de,{value:n,children:n},n))})]}):(0,T.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("status"),children:o.status})]}),(0,T.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,T.jsx)(G,{className:"text-sm font-medium text-gray-500",children:"Categories"}),R==="categories"?(0,T.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.map(n=>{var m,f;return(0,T.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,T.jsx)(Ce,{id:((m=n.id)==null?void 0:m.toString())||"",checked:(o.categories||[]).some(ae=>ae.id===n.id),onCheckedChange:()=>n.id!==void 0&&C(n)}),(0,T.jsx)("label",{htmlFor:((f=n.id)!=null?f:"").toString(),className:`text-sm font-medium ${E(n.type||"sector")} px-2 py-1 rounded`,children:n.name})]},n.id)})}):(0,T.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("categories"),children:o.categories&&o.categories.map(n=>{console.log("cat",n);let m=n;return m?(0,T.jsx)(at,{variant:"secondary",className:E(m.type||"sector"),children:m.name},m.id):null})})]})]}),(0,T.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(G,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,T.jsx)(me,{className:"h-[200px] overflow-T-auto",children:(0,T.jsx)("div",{className:"space-T-2",children:o.comments&&o.comments.slice().sort((n,m)=>new Date(m.timestamp||"").getTime()-new Date(n.timestamp||"").getTime()).map(n=>{var m;return(0,T.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,T.jsx)("p",{className:"text-sm text-gray-700",children:n.text}),(0,T.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(m=n==null?void 0:n.author)==null?void 0:m.name," - ",new Date(n.timestamp||"").toLocaleString()]})]},n.id)})})}),(0,T.jsxs)("div",{className:"flex mt-2",children:[(0,T.jsx)(re,{value:x,onChange:n=>S(n.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,T.jsxs)(te,{onClick:k,className:"ml-2",children:[(0,T.jsx)(We.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,T.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(o.updatedAt||"").toLocaleString()]})]})]})]})})}0&&(module.exports={DealDetails});
|
|
4
|
+
"use strict";var st=Object.create;var se=Object.defineProperty;var lt=Object.getOwnPropertyDescriptor;var ct=Object.getOwnPropertyNames;var dt=Object.getPrototypeOf,pt=Object.prototype.hasOwnProperty;var mt=(e,t)=>{for(var r in t)se(e,r,{get:t[r],enumerable:!0})},Ae=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of ct(t))!pt.call(e,l)&&l!==r&&se(e,l,{get:()=>t[l],enumerable:!(a=lt(t,l))||a.enumerable});return e};var A=(e,t,r)=>(r=e!=null?st(dt(e)):{},Ae(t||!e||!e.__esModule?se(r,"default",{value:e,enumerable:!0}):r,e)),ut=e=>Ae(se({},"__esModule",{value:!0}),e);var er={};mt(er,{DealDetails:()=>Yt});module.exports=ut(er);var O=require("react");var ee=A(require("react")),P=A(require("@radix-ui/react-dialog")),We=require("lucide-react");var Ge=require("clsx");var be="-",ft=e=>{let t=bt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{let o=c.split(be);return o[0]===""&&o.length!==1&&o.shift(),Ie(o,t)||gt(c)},getConflictingClassGroupIds:(c,o)=>{let v=r[c]||[];return o&&a[c]?[...v,...a[c]]:v}}},Ie=(e,t)=>{var c;if(e.length===0)return t.classGroupId;let r=e[0],a=t.nextPart.get(r),l=a?Ie(e.slice(1),a):void 0;if(l)return l;if(t.validators.length===0)return;let s=e.join(be);return(c=t.validators.find(({validator:o})=>o(s)))==null?void 0:c.classGroupId},Te=/^\[(.+)\]$/,gt=e=>{if(Te.test(e)){let t=Te.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},bt=e=>{let{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return ht(Object.entries(e.classGroups),r).forEach(([s,c])=>{ge(c,a,s,t)}),a},ge=(e,t,r,a)=>{e.forEach(l=>{if(typeof l=="string"){let s=l===""?t:ze(t,l);s.classGroupId=r;return}if(typeof l=="function"){if(vt(l)){ge(l(a),t,r,a);return}t.validators.push({validator:l,classGroupId:r});return}Object.entries(l).forEach(([s,c])=>{ge(c,ze(t,s),r,a)})})},ze=(e,t)=>{let r=e;return t.split(be).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},vt=e=>e.isThemeGetter,ht=(e,t)=>t?e.map(([r,a])=>{let l=a.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([c,o])=>[t+c,o])):s);return[r,l]}):e,yt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map,l=(s,c)=>{r.set(s,c),t++,t>e&&(t=0,a=r,r=new Map)};return{get(s){let c=r.get(s);if(c!==void 0)return c;if((c=a.get(s))!==void 0)return l(s,c),c},set(s,c){r.has(s)?r.set(s,c):l(s,c)}}},Le="!",xt=e=>{let{separator:t,experimentalParseClassName:r}=e,a=t.length===1,l=t[0],s=t.length,c=o=>{let v=[],x=0,S=0,D;for(let g=0;g<o.length;g++){let C=o[g];if(x===0){if(C===l&&(a||o.slice(g,g+s)===t)){v.push(o.slice(S,g)),S=g+s;continue}if(C==="/"){D=g;continue}}C==="["?x++:C==="]"&&x--}let N=v.length===0?o:o.substring(S),R=N.startsWith(Le),h=R?N.substring(1):N,w=D&&D>S?D-S:void 0;return{modifiers:v,hasImportantModifier:R,baseClassName:h,maybePostfixModifierPosition:w}};return r?o=>r({className:o,parseClassName:c}):c},wt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(a=>{a[0]==="["?(t.push(...r.sort(),a),r=[]):r.push(a)}),t.push(...r.sort()),t},Pt=e=>({cache:yt(e.cacheSize),parseClassName:xt(e),...ft(e)}),St=/\s+/,Ct=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:l}=t,s=[],c=e.trim().split(St),o="";for(let v=c.length-1;v>=0;v-=1){let x=c[v],{modifiers:S,hasImportantModifier:D,baseClassName:N,maybePostfixModifierPosition:R}=r(x),h=!!R,w=a(h?N.substring(0,R):N);if(!w){if(!h){o=x+(o.length>0?" "+o:o);continue}if(w=a(N),!w){o=x+(o.length>0?" "+o:o);continue}h=!1}let g=wt(S).join(":"),C=D?g+Le:g,k=C+w;if(s.includes(k))continue;s.push(k);let E=l(w,h);for(let I=0;I<E.length;++I){let F=E[I];s.push(C+F)}o=x+(o.length>0?" "+o:o)}return o};function Rt(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Me(t))&&(a&&(a+=" "),a+=r);return a}var Me=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=Me(e[a]))&&(r&&(r+=" "),r+=t);return r};function Nt(e,...t){let r,a,l,s=c;function c(v){let x=t.reduce((S,D)=>D(S),e());return r=Pt(x),a=r.cache.get,l=r.cache.set,s=o,o(v)}function o(v){let x=a(v);if(x)return x;let S=Ct(v,r);return l(v,S),S}return function(){return s(Rt.apply(null,arguments))}}var b=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ee=/^\[(?:([a-z-]+):)?(.+)\]$/T,kt=/^\d+\/\d+$/,Dt=new Set(["px","full","screen"]),At=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|T|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,It=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Lt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,M=e=>$(e)||Dt.has(e)||kt.test(e),B=e=>J(e,"length",Ut),$=e=>!!e&&!Number.isNaN(Number(e)),fe=e=>J(e,"number",$),Z=e=>!!e&&Number.isInteger(Number(e)),Mt=e=>e.endsWith("%")&&$(e.slice(0,-1)),d=e=>Ee.test(e),V=e=>At.test(e),Et=new Set(["length","size","percentage"]),Bt=e=>J(e,Et,Be),Vt=e=>J(e,"position",Be),Gt=new Set(["image","url"]),Wt=e=>J(e,Gt,jt),Ht=e=>J(e,"",Ft),Y=()=>!0,J=(e,t,r)=>{let a=Ee.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},Ut=e=>Tt.test(e)&&!zt.test(e),Be=()=>!1,Ft=e=>It.test(e),jt=e=>Lt.test(e);var Ot=()=>{let e=b("colors"),t=b("spacing"),r=b("blur"),a=b("brightness"),l=b("borderColor"),s=b("borderRadius"),c=b("borderSpacing"),o=b("borderWidth"),v=b("contrast"),x=b("grayscale"),S=b("hueRotate"),D=b("invert"),N=b("gap"),R=b("gradientColorStops"),h=b("gradientColorStopPositions"),w=b("inset"),g=b("margin"),C=b("opacity"),k=b("padding"),E=b("saturate"),I=b("scale"),F=b("sepia"),q=b("skew"),X=b("space"),K=b("translate"),_=()=>["auto","contain","none"],n=()=>["auto","hidden","clip","visible","scroll"],m=()=>["auto",d,t],f=()=>[d,t],ae=()=>["",M,B],ie=()=>["auto",$,d],Ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ne=()=>["solid","dashed","dotted","double","none"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>["start","end","center","between","around","evenly","stretch"],Q=()=>["","0",d],De=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[$,d];return{cacheSize:500,separator:":",theme:{colors:[Y],spacing:[M,B],blur:["none","",V,d],brightness:L(),borderColor:[e],borderRadius:["none","","full",V,d],borderSpacing:f(),borderWidth:ae(),contrast:L(),grayscale:Q(),hueRotate:L(),invert:Q(),gap:f(),gradientColorStops:[e],gradientColorStopPositions:[Mt,B],inset:m(),margin:m(),opacity:L(),padding:f(),saturate:L(),scale:L(),sepia:Q(),skew:L(),space:f(),translate:f()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[V]}],"break-after":[{"break-after":De()}],"break-before":[{"break-before":De()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Ne(),d]}],overflow:[{overflow:n()}],"overflow-x":[{"overflow-x":n()}],"overflow-T":[{"overflow-T":n()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-T":[{"overscroll-T":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-T":[{"inset-T":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Z,d]}],basis:[{basis:m()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",Z,d]}],"grid-cols":[{"grid-cols":[Y]}],"col-start-end":[{col:["auto",{span:["full",Z,d]},d]}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":[Y]}],"row-start-end":[{row:["auto",{span:[Z,d]},d]}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[N]}],"gap-x":[{"gap-x":[N]}],"gap-T":[{"gap-T":[N]}],"justify-content":[{justify:["normal",...ue()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ue(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ue(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],T:[{T:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[X]}],"space-x-reverse":["space-x-reverse"],"space-T":[{"space-T":[X]}],"space-T-reverse":["space-T-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[V]},V]}],h:[{h:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",V,B]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",fe]}],"font-family":[{font:[Y]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",d]}],"line-clamp":[{"line-clamp":["none",$,fe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",M,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ne(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",M,B]}],"underline-offset":[{"underline-offset":["auto",M,d]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ne(),Vt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","T","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Bt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Wt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[R]}],"gradient-via":[{via:[R]}],"gradient-to":[{to:[R]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-T":[{"border-T":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...ne(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-T":[{"divide-T":[o]}],"divide-T-reverse":["divide-T-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:ne()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-T":[{"border-T":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-t":[{"border-t":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...ne()]}],"outline-offset":[{"outline-offset":[M,d]}],"outline-w":[{outline:[M,B]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[M,B]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",V,Ht]}],"shadow-color":[{shadow:[Y]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...ke(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ke()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[v]}],"drop-shadow":[{"drop-shadow":["","none",V,d]}],grayscale:[{grayscale:[x]}],"hue-rotate":[{"hue-rotate":[S]}],invert:[{invert:[D]}],saturate:[{saturate:[E]}],sepia:[{sepia:[F]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[v]}],"backdrop-grayscale":[{"backdrop-grayscale":[x]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S]}],"backdrop-invert":[{"backdrop-invert":[D]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-T":[{"border-spacing-T":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",d]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-T":[{"scale-T":[I]}],rotate:[{rotate:[Z,d]}],"translate-x":[{"translate-x":[K]}],"translate-T":[{"translate-T":[K]}],"skew-x":[{"skew-x":[q]}],"skew-T":[{"skew-T":[q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","T","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-T":[{"scroll-T":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","T","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-T":[{"touch-pan":["T","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[M,B,fe]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-T"],overscroll:["overscroll-x","overscroll-T"],inset:["inset-x","inset-T","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-T":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-T"],p:["px","py","ps","T","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-T"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-T":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-T":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-T","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-T","touch-pz"],"touch-x":["touch"],"touch-T":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ve=Nt(Ot);function u(...e){return Ve((0,Ge.clsx)(e))}var T=require("react/jsx-runtime"),He=P.Root;var _t=P.Portal;var Ue=ee.forwardRef(({className:e,...t},r)=>(0,T.jsx)(P.Overlay,{ref:r,className:u("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ue.displayName=P.Overlay.displayName;var ve=ee.forwardRef(({className:e,children:t,...r},a)=>(0,T.jsxs)(_t,{children:[(0,T.jsx)(Ue,{}),(0,T.jsxs)(P.Content,{ref:a,className:u("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-T-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[t,(0,T.jsxs)(P.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,T.jsx)(We.X,{className:"h-4 w-4"}),(0,T.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));ve.displayName=P.Content.displayName;var he=({className:e,...t})=>(0,T.jsx)("div",{className:u("flex flex-col space-T-1.5 text-center sm:text-left",e),...t});he.displayName="DialogHeader";var $t=({className:e,...t})=>(0,T.jsx)("div",{className:u("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});$t.displayName="DialogFooter";var ye=ee.forwardRef(({className:e,...t},r)=>(0,T.jsx)(P.Title,{ref:r,className:u("text-lg font-semibold leading-none tracking-tight",e),...t}));ye.displayName=P.Title.displayName;var Jt=ee.forwardRef(({className:e,...t},r)=>(0,T.jsx)(P.Description,{ref:r,className:u("text-sm text-muted-foreground",e),...t}));Jt.displayName=P.Description.displayName;var Fe=require("@radix-ui/react-slot"),je=require("class-variance-authority"),Oe=A(require("react")),qt=(0,je.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),te=Oe.forwardRef(({asChild:e=!1,className:t,size:r,variant:a,...l},s)=>(0,T.jsx)(e?Fe.Slot:"button",{className:u(qt({className:t,size:r,variant:a})),ref:s,...l}));te.displayName="Button";var $e=A(require("react"));var re=$e.forwardRef(({className:e,type:t,...r},a)=>(0,T.jsx)("input",{type:t,className:u("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...r}));re.displayName="Input";var qe=A(require("react")),xe=A(require("@radix-ui/react-label"));var Xt=(0,je.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),G=qe.forwardRef(({className:e,...t},r)=>(0,T.jsx)(xe.Root,{ref:r,className:u(Xt(),e),...t}));G.displayName=xe.Root.displayName;var Qe=A(require("react")),we=Qe.forwardRef(({className:e,...t},r)=>(0,T.jsx)("textarea",{className:u("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));we.displayName="Textarea";var p=A(require("@radix-ui/react-select")),W=A(require("react")),Pe=p.Root;var Se=p.Value,le=W.forwardRef(({children:e,className:t,...r},a)=>(0,T.jsxs)(p.Trigger,{className:u("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:a,...r,children:[e,(0,T.jsx)(p.Icon,{asChild:!0,children:(0,T.jsx)(We.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));le.displayName=p.Trigger.displayName;var Ye=W.forwardRef(({className:e,...t},r)=>(0,T.jsx)(p.ScrollUpButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,T.jsx)(We.ChevronUp,{className:"h-4 w-4"})}));Ye.displayName=p.ScrollUpButton.displayName;var et=W.forwardRef(({className:e,...t},r)=>(0,T.jsx)(p.ScrollDownButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,T.jsx)(We.ChevronDown,{className:"h-4 w-4"})}));et.displayName=p.ScrollDownButton.displayName;var ce=W.forwardRef(({children:e,className:t,position:r="popper",...a},l)=>(0,T.jsx)(p.Portal,{children:(0,T.jsxs)(p.Content,{className:u("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-T-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-T-1",t),position:r,ref:l,...a,children:[(0,T.jsx)(Ye,{}),(0,T.jsx)(p.Viewport,{className:u("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,T.jsx)(et,{})]})}));ce.displayName=p.Content.displayName;var Kt=W.forwardRef(({className:e,...t},r)=>(0,T.jsx)(p.Label,{className:u("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));Kt.displayName=p.Label.displayName;var de=W.forwardRef(({children:e,className:t,...r},a)=>(0,T.jsxs)(p.Item,{className:u("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:a,...r,children:[(0,T.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,T.jsx)(p.ItemIndicator,{children:(0,T.jsx)(We.Check,{className:"h-4 w-4"})})}),(0,T.jsx)(p.ItemText,{children:e})]}));de.displayName=p.Item.displayName;var Qt=W.forwardRef(({className:e,...t},r)=>(0,T.jsx)(p.Separator,{className:u("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Qt.displayName=p.Separator.displayName;var oe=A(require("@radix-ui/react-checkbox")),rt=A(require("react")),Ce=rt.forwardRef(({className:e,...t},r)=>(0,T.jsx)(oe.Root,{className:u("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:r,...t,children:(0,T.jsx)(oe.Indicator,{className:u("flex items-center justify-center text-current"),children:(0,T.jsx)(We.Check,{className:"h-4 w-4"})})}));Ce.displayName=oe.Root.displayName;var Zt=(0,je.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function at({className:e,variant:t,...r}){return(0,T.jsx)("div",{className:u(Zt({variant:t}),e),...r})}var Re=A(require("react")),z=A(require("@radix-ui/react-scroll-area"));var me=Re.forwardRef(({className:e,children:t,...r},a)=>(0,T.jsxs)(z.Root,{ref:a,className:u("relative overflow-hidden",e),...r,children:[(0,T.jsx)(z.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,T.jsx)(nt,{}),(0,T.jsx)(z.Corner,{})]}));me.displayName=z.Root.displayName;var nt=Re.forwardRef(({className:e,orientation:t="vertical",...r},a)=>(0,T.jsx)(z.ScrollAreaScrollbar,{ref:a,orientation:t,className:u("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:(0,T.jsx)(z.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));nt.displayName=z.ScrollAreaScrollbar.displayName;function Yt({deal:e,users:t,customer:r,categories:a,onClose:l,onSave:s,onAddComment:c}){var F,q,X,K,_;let[o,v]=(0,O.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[x,S]=(0,O.useState)(""),[D,N]=(0,O.useState)(!1),[R,h]=(0,O.useState)(null);(0,O.useEffect)(()=>{N(JSON.stringify(e)!==JSON.stringify(o))},[e,o]);let w=async()=>{try{let n=await s(o);n.success?(N(!1),h(null)):console.error("Failed to save deal:",n.errors)}catch(n){console.error("Failed to save deal:",n)}},g=(n,m)=>{v(f=>({...f,[n]:m}))},C=n=>{let m=(o.categories||[]).includes(n)?(o.categories||[]).filter(f=>f!==n):[...o.categories||[],n];g("categories",m)},k=async()=>{if(x.trim()){let n={text:x,timestamp:new Date().toISOString()};try{let m=await c(n);if(!m.success){console.error("Failed to add comment:",m.errors);return}}catch(m){console.error("Failed to add comment:",m)}v(m=>({...m,comments:[...m.comments||[],n]})),S("")}},E=n=>{switch(n){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},I=n=>t==null?void 0:t.find(m=>m.id===Number(n));return(0,T.jsx)(He,{open:!0,children:(0,T.jsxs)(ve,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,T.jsxs)(he,{className:"flex flex-row items-center justify-between",children:[(0,T.jsx)(ye,{className:"text-2xl font-bold",children:r==null?void 0:r.name}),(0,T.jsxs)("div",{className:"flex space-x-2",children:[(0,T.jsx)(te,{variant:"outline",onClick:l,children:"Close"}),(0,T.jsxs)(te,{onClick:w,disabled:!D,children:[(0,T.jsx)(We.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,T.jsxs)(me,{className:"flex-grow pr-4",children:[(0,T.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,T.jsx)("div",{className:"grid gap-2",children:R==="value"?(0,T.jsx)(re,{type:"number",value:o.value,onChange:n=>g("value",Number(n.target.value)),onBlur:()=>h(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,T.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("value"),children:["\xA3",(F=o.value)==null?void 0:F.toLocaleString()]})}),(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(G,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),R==="assignee"?(0,T.jsxs)(Pe,{value:((X=(q=o==null?void 0:o.assignee)==null?void 0:q.id)==null?void 0:X.toString())||"",onValueChange:n=>g("assignee",I(n)),children:[(0,T.jsx)(le,{children:(0,T.jsx)(Se,{placeholder:"Select assignee"})}),(0,T.jsx)(ce,{children:t&&t.map(n=>{var m;return(0,T.jsx)(de,{value:((m=n==null?void 0:n.id)==null?void 0:m.toString())||"",children:n.name},n.id)})})]}):(0,T.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("assignee"),children:[(0,T.jsx)(We.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,T.jsx)("span",{children:o.assignee.name})]})]}),(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(G,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),R==="closureDate"?(0,T.jsx)(re,{type:"date",value:(_=(K=o.closureDate)==null?void 0:K.split("T")[0])!=null?_:"",onChange:n=>g("closureDate",n.target.value),onBlur:()=>h(null),autoFocus:!0}):(0,T.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("closureDate"),children:[(0,T.jsx)(We.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,T.jsx)("span",{children:o.closureDate?new Date(o.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),(0,T.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(G,{className:"text-sm font-medium text-gray-500",children:"Description"}),R==="description"?(0,T.jsx)(we,{value:o.description||"",onChange:n=>g("description",n.target.value),onBlur:()=>h(null),className:"min-h-[100px]",autoFocus:!0}):(0,T.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>h("description"),children:o.description})]})}),(0,T.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(G,{className:"text-sm font-medium text-gray-500",children:"Status"}),R==="status"?(0,T.jsxs)(Pe,{value:o.status,onValueChange:n=>{g("status",n),h(null)},children:[(0,T.jsx)(le,{children:(0,T.jsx)(Se,{placeholder:"Select status"})}),(0,T.jsx)(ce,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(n=>(0,T.jsx)(de,{value:n,children:n},n))})]}):(0,T.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("status"),children:o.status})]}),(0,T.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,T.jsx)(G,{className:"text-sm font-medium text-gray-500",children:"Categories"}),R==="categories"?(0,T.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.map(n=>{var m,f;return(0,T.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,T.jsx)(Ce,{id:((m=n.id)==null?void 0:m.toString())||"",checked:(o.categories||[]).some(ae=>ae.id===n.id),onCheckedChange:()=>n.id!==void 0&&C(n)}),(0,T.jsx)("label",{htmlFor:((f=n.id)!=null?f:"").toString(),className:`text-sm font-medium ${E(n.type||"sector")} px-2 py-1 rounded`,children:n.name})]},n.id)})}):(0,T.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("categories"),children:o.categories&&o.categories.map(n=>{let m=n;return m?(0,T.jsx)(at,{variant:"secondary",className:E(m.type||"sector"),children:m.name},m.id):null})})]})]}),(0,T.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,T.jsxs)("div",{className:"grid gap-2",children:[(0,T.jsx)(G,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,T.jsx)(me,{className:"h-[200px] overflow-T-auto",children:(0,T.jsx)("div",{className:"space-T-2",children:o.comments&&o.comments.slice().sort((n,m)=>new Date(m.timestamp||"").getTime()-new Date(n.timestamp||"").getTime()).map(n=>{var m;return(0,T.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,T.jsx)("p",{className:"text-sm text-gray-700",children:n.text}),(0,T.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(m=n==null?void 0:n.author)==null?void 0:m.name," - ",new Date(n.timestamp||"").toLocaleString()]})]},n.id)})})}),(0,T.jsxs)("div",{className:"flex mt-2",children:[(0,T.jsx)(re,{value:x,onChange:n=>S(n.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,T.jsxs)(te,{onClick:k,className:"ml-2",children:[(0,T.jsx)(We.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,T.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(o.updatedAt||"").toLocaleString()]})]})]})]})})}0&&(module.exports={DealDetails});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-6YWAX7NS.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-BDX257W2.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-C5XNOZXC.mjs";import"../../chunk-SPOYKTBR.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as DealDetails};
|