cortex-react-components 1.46.1 → 1.47.0
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-MFKBUKSI.mjs → chunk-3ODCIQYB.mjs} +1 -1
- package/dist/{chunk-4BZYZZOG.mjs → chunk-3TIFSACL.mjs} +1 -1
- package/dist/{chunk-AHFJJDUP.mjs → chunk-5BPR3YKT.mjs} +1 -1
- package/dist/{chunk-PDY43B6W.mjs → chunk-5EFOKBKA.mjs} +1 -1
- package/dist/{chunk-QM7QBP2I.mjs → chunk-7SSOLQR5.mjs} +1 -1
- package/dist/{chunk-OKGREBP5.mjs → chunk-BWGRPPZL.mjs} +1 -1
- package/dist/{chunk-YDGF5GEU.mjs → chunk-DIPGFDJV.mjs} +1 -1
- package/dist/{chunk-7FMMXR7S.mjs → chunk-DLCGGIZW.mjs} +1 -1
- package/dist/chunk-ECOVEIOV.mjs +1 -0
- package/dist/{chunk-MA2CFK7X.mjs → chunk-ENDXPA4H.mjs} +1 -1
- package/dist/chunk-G6K3PK47.mjs +1 -0
- package/dist/{chunk-KAJDV47B.mjs → chunk-GHBJK554.mjs} +1 -1
- package/dist/{chunk-2VBPJMVS.mjs → chunk-GT43S672.mjs} +1 -1
- package/dist/{chunk-RFZ2OZQN.mjs → chunk-H5DKU4M5.mjs} +1 -1
- package/dist/{chunk-HOHVBVME.mjs → chunk-HFSHDEMQ.mjs} +1 -1
- package/dist/chunk-HHUI6PDP.mjs +4 -0
- package/dist/{chunk-NFFHQJ5C.mjs → chunk-IJU5INGM.mjs} +1 -1
- package/dist/{chunk-TGED5EGX.mjs → chunk-KB6PO4K4.mjs} +1 -1
- package/dist/{chunk-Q7QS4VSI.mjs → chunk-KVIQW2PH.mjs} +1 -1
- package/dist/chunk-MY3PX5GI.mjs +1 -0
- package/dist/{chunk-XD4IKPMW.mjs → chunk-O7R6EGBU.mjs} +1 -1
- package/dist/{chunk-3ICCXFE6.mjs → chunk-PY53YVFX.mjs} +1 -1
- package/dist/{chunk-OVGEJMAF.mjs → chunk-QCIJUDO4.mjs} +1 -1
- package/dist/{chunk-V7YLLLES.mjs → chunk-RZTXT4UD.mjs} +1 -1
- package/dist/{chunk-QVF5FBGY.mjs → chunk-SBAFXZVU.mjs} +1 -1
- package/dist/chunk-SEG6IDDX.mjs +1 -0
- package/dist/{chunk-M3J4AMUT.mjs → chunk-TGHOEITH.mjs} +1 -1
- package/dist/{chunk-MN7UDYWI.mjs → chunk-UDH5ASIW.mjs} +1 -1
- package/dist/{chunk-4JNRVCRR.mjs → chunk-US6CSL53.mjs} +1 -1
- package/dist/{chunk-FNI2A5LW.mjs → chunk-W6VKKBUG.mjs} +1 -1
- package/dist/{chunk-KQE42INF.mjs → chunk-XGKZLSIS.mjs} +1 -1
- package/dist/{chunk-23L5ZJ2U.mjs → chunk-Z4CK655R.mjs} +1 -1
- package/dist/{chunk-CP7MAHWY.mjs → chunk-Z5PNO5CB.mjs} +1 -1
- package/dist/{chunk-6X3A3ENB.mjs → chunk-ZLEW2CSB.mjs} +1 -1
- package/dist/components/Blocks/Banner.js +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.js +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CallToAction.stories.js +1 -1
- package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
- package/dist/components/Blocks/Content.js +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.d.ts +4 -20
- package/dist/components/Blocks/FeaturesBlock.js +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.js +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.js +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.js +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContent.css +1 -0
- package/dist/components/Blocks/ReusableContent.d.ts +8 -0
- package/dist/components/Blocks/ReusableContent.js +4 -0
- package/dist/components/Blocks/ReusableContent.mjs +1 -0
- package/dist/components/Blocks/index.js +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/DealDetails.d.ts +8 -2
- 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.d.ts +16 -4
- 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.d.ts +8 -2
- 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.d.ts +11 -5
- 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.js +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/ContentCard.stories.js +1 -1
- package/dist/components/Cards/ContentCard.stories.mjs +1 -1
- package/dist/components/Cards/index.js +4 -4
- package/dist/components/Cards/index.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/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.js +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.js +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.js +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.js +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.js +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.js +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/BlogList.js +3 -3
- package/dist/components/Layouts/BlogList.mjs +1 -1
- package/dist/components/Layouts/BlogList.stories.js +3 -3
- package/dist/components/Layouts/BlogList.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 +3 -3
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.js +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.d.ts +12 -2
- package/dist/components/Payload/RichText/serialize.js +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/RichText.stories.js +1 -1
- package/dist/components/Payload/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.js +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +6 -6
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/index.js +8 -8
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.js +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.js +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.mjs +1 -1
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.js +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.js +186 -186
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Publish.js +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.js +1 -1
- 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 +2 -2
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/payload-types.d.ts +300 -3
- package/dist/payload-types.js +1 -1
- package/dist/sections/AboutSection.js +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.js +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.js +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.js +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.mjs +1 -1
- package/dist/sections/ContactSection.js +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.js +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/ImageSection.stories.js +1 -1
- package/dist/sections/ImageSection.stories.mjs +1 -1
- package/dist/sections/PricingSection.js +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.js +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +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-DBHEV3OE.mjs +0 -1
- package/dist/chunk-EJV6UKCA.mjs +0 -1
- package/dist/chunk-FBUZ37DL.mjs +0 -1
- package/dist/chunk-GTDG7AC2.mjs +0 -1
- package/dist/chunk-T44RKQFA.mjs +0 -1
- package/dist/chunk-TTN4NUDL.mjs +0 -1
- package/dist/chunk-Y3L5THWA.mjs +0 -4
- package/dist/chunk-YNC77MO4.mjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";var It=Object.create;var Re=Object.defineProperty;var Et=Object.getOwnPropertyDescriptor;var zt=Object.getOwnPropertyNames;var Bt=Object.getPrototypeOf,Ht=Object.prototype.hasOwnProperty;var Vt=(e,t)=>{for(var o in t)Re(e,o,{get:t[o],enumerable:!0})},Xe=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of zt(t))!Ht.call(e,s)&&s!==o&&Re(e,s,{get:()=>t[s],enumerable:!(a=Et(t,s))||a.enumerable});return e};var B=(e,t,o)=>(o=e!=null?It(Bt(e)):{},Xe(t||!e||!e.__esModule?Re(o,"default",{value:e,enumerable:!0}):o,e)),Ft=e=>Xe(Re({},"__esModule",{value:!0}),e);var Ao={};Vt(Ao,{CRMKanbanBoard:()=>To,DealCard:()=>_e,DealDetails:()=>Fe,KanbanColumn:()=>$e,NewCustomerForm:()=>je,NewDealForm:()=>Ke});module.exports=Ft(Ao);var Me=require("react");var we=B(require("react")),M=B(require("@radix-ui/react-dialog")),nt=require("lucide-react");var st=require("clsx");var Be="-",Wt=e=>{let t=Gt(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{let r=c.split(Be);return r[0]===""&&r.length!==1&&r.shift(),et(r,t)||Ut(c)},getConflictingClassGroupIds:(c,r)=>{let v=o[c]||[];return r&&a[c]?[...v,...a[c]]:v}}},et=(e,t)=>{var c;if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),s=a?et(e.slice(1),a):void 0;if(s)return s;if(t.validators.length===0)return;let i=e.join(Be);return(c=t.validators.find(({validator:r})=>r(i)))==null?void 0:c.classGroupId},Ze=/^\[(.+)\]$/,Ut=e=>{if(Ze.test(e)){let t=Ze.exec(e)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Gt=e=>{let{theme:t,prefix:o}=e,a={nextPart:new Map,validators:[]};return _t(Object.entries(e.classGroups),o).forEach(([i,c])=>{ze(c,a,i,t)}),a},ze=(e,t,o,a)=>{e.forEach(s=>{if(typeof s=="string"){let i=s===""?t:Ye(t,s);i.classGroupId=o;return}if(typeof s=="function"){if(Ot(s)){ze(s(a),t,o,a);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([i,c])=>{ze(c,Ye(t,i),o,a)})})},Ye=(e,t)=>{let o=e;return t.split(Be).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},Ot=e=>e.isThemeGetter,_t=(e,t)=>t?e.map(([o,a])=>{let s=a.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([c,r])=>[t+c,r])):i);return[o,s]}):e,jt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,s=(i,c)=>{o.set(i,c),t++,t>e&&(t=0,a=o,o=new Map)};return{get(i){let c=o.get(i);if(c!==void 0)return c;if((c=a.get(i))!==void 0)return s(i,c),c},set(i,c){o.has(i)?o.set(i,c):s(i,c)}}},tt="!",Kt=e=>{let{separator:t,experimentalParseClassName:o}=e,a=t.length===1,s=t[0],i=t.length,c=r=>{let v=[],P=0,D=0,S;for(let x=0;x<r.length;x++){let k=r[x];if(P===0){if(k===s&&(a||r.slice(x,x+i)===t)){v.push(r.slice(D,x)),D=x+i;continue}if(k==="/"){S=x;continue}}k==="["?P++:k==="]"&&P--}let g=v.length===0?r:r.substring(D),b=g.startsWith(tt),u=b?g.substring(1):g,y=S&&S>D?S-D:void 0;return{modifiers:v,hasImportantModifier:b,baseClassName:u,maybePostfixModifierPosition:y}};return o?r=>o({className:r,parseClassName:c}):c},$t=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(a=>{a[0]==="["?(t.push(...o.sort(),a),o=[]):o.push(a)}),t.push(...o.sort()),t},qt=e=>({cache:jt(e.cacheSize),parseClassName:Kt(e),...Wt(e)}),Jt=/\s+/,Qt=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:s}=t,i=[],c=e.trim().split(Jt),r="";for(let v=c.length-1;v>=0;v-=1){let P=c[v],{modifiers:D,hasImportantModifier:S,baseClassName:g,maybePostfixModifierPosition:b}=o(P),u=!!b,y=a(u?g.substring(0,b):g);if(!y){if(!u){r=P+(r.length>0?" "+r:r);continue}if(y=a(g),!y){r=P+(r.length>0?" "+r:r);continue}u=!1}let x=$t(D).join(":"),k=S?x+tt:x,L=k+y;if(i.includes(L))continue;i.push(L);let z=s(y,u);for(let F=0;F<z.length;++F){let O=z[F];i.push(k+O)}r=P+(r.length>0?" "+r:r)}return r};function Xt(){let e=0,t,o,a="";for(;e<arguments.length;)(t=arguments[e++])&&(o=ot(t))&&(a&&(a+=" "),a+=o);return a}var ot=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=ot(e[a]))&&(o&&(o+=" "),o+=t);return o};function Zt(e,...t){let o,a,s,i=c;function c(v){let P=t.reduce((D,S)=>S(D),e());return o=qt(P),a=o.cache.get,s=o.cache.set,i=r,r(v)}function r(v){let P=a(v);if(P)return P;let D=Qt(v,o);return s(v,D),D}return function(){return i(Xt.apply(null,arguments))}}var R=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},rt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yt=/^\H+\/\H+$/,eo=new Set(["px","full","screen"]),to=/^(\H+(\.\H+)?)?(xs|sm|md|lg|xl)$/,oo=/\H+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ro=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ao=/^(inset_)?-?((\H+)?\.?(\H+)[a-z]+|0)_-?((\H+)?\.?(\H+)[a-z]+|0)/,io=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,K=e=>pe(e)||eo.has(e)||Yt.test(e),q=e=>ue(e,"length",fo),pe=e=>!!e&&!Number.isNaN(Number(e)),Ee=e=>ue(e,"number",pe),ye=e=>!!e&&Number.isInteger(Number(e)),so=e=>e.endsWith("%")&&pe(e.slice(0,-1)),p=e=>rt.test(e),J=e=>to.test(e),no=new Set(["length","size","percentage"]),lo=e=>ue(e,no,at),co=e=>ue(e,"position",at),mo=new Set(["image","url"]),po=e=>ue(e,mo,bo),uo=e=>ue(e,"",go),Ce=()=>!0,ue=(e,t,o)=>{let a=rt.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):o(a[2]):!1},fo=e=>oo.test(e)&&!ro.test(e),at=()=>!1,go=e=>ao.test(e),bo=e=>io.test(e);var vo=()=>{let e=R("colors"),t=R("spacing"),o=R("blur"),a=R("brightness"),s=R("borderColor"),i=R("borderRadius"),c=R("borderSpacing"),r=R("borderWidth"),v=R("contrast"),P=R("grayscale"),D=R("hueRotate"),S=R("invert"),g=R("gap"),b=R("gradientColorStops"),u=R("gradientColorStopPositions"),y=R("inset"),x=R("margin"),k=R("opacity"),L=R("padding"),z=R("saturate"),F=R("scale"),O=R("sepia"),$=R("skew"),m=R("space"),w=R("translate"),G=()=>["auto","contain","none"],l=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto",p,t],C=()=>[p,t],Ne=()=>["",K,q],Pe=()=>["auto",pe,p],qe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],De=()=>["solid","dashed","dotted","double","none"],Je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ie=()=>["start","end","center","between","around","evenly","stretch"],xe=()=>["","0",p],Qe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>[pe,p];return{cacheSize:500,separator:":",theme:{colors:[Ce],spacing:[K,q],blur:["none","",J,p],brightness:j(),borderColor:[e],borderRadius:["none","","full",J,p],borderSpacing:C(),borderWidth:Ne(),contrast:j(),grayscale:xe(),hueRotate:j(),invert:xe(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[so,q],inset:N(),margin:N(),opacity:j(),padding:C(),saturate:j(),scale:j(),sepia:xe(),skew:j(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[J]}],"break-after":[{"break-after":Qe()}],"break-before":[{"break-before":Qe()}],"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:[...qe(),p]}],overflow:[{overflow:l()}],"overflow-x":[{"overflow-x":l()}],"overflow-y":[{"overflow-y":l()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ye,p]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:xe()}],shrink:[{shrink:xe()}],order:[{order:["first","last","none",ye,p]}],"grid-cols":[{"grid-cols":[Ce]}],"col-start-end":[{col:["auto",{span:["full",ye,p]},p]}],"col-start":[{"col-start":Pe()}],"col-end":[{"col-end":Pe()}],"grid-rows":[{"grid-rows":[Ce]}],"row-start-end":[{row:["auto",{span:[ye,p]},p]}],"row-start":[{"row-start":Pe()}],"row-end":[{"row-end":Pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...Ie()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ie(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ie(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pe:[{pe:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],H:[{H:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[m]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[m]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,t]}],"min-w":[{"min-w":[p,t,"min","max","fit"]}],"max-w":[{"max-w":[p,t,"none","full","min","max","fit","prose",{screen:[J]},J]}],h:[{h:[p,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[p,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[p,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,t,"auto","min","max","fit"]}],"font-size":[{text:["base",J,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ee]}],"font-family":[{font:[Ce]}],"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",p]}],"line-clamp":[{"line-clamp":["none",pe,Ee]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",K,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...De(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",K,q]}],"underline-offset":[{"underline-offset":["auto",K,p]}],"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:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],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",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...qe(),co]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",lo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},po]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[u]}],"gradient-via-pos":[{via:[u]}],"gradient-to-pos":[{to:[u]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[r]}],"border-w-x":[{"border-x":[r]}],"border-w-y":[{"border-y":[r]}],"border-w-s":[{"border-s":[r]}],"border-w-e":[{"border-e":[r]}],"border-w-t":[{"border-t":[r]}],"border-w-r":[{"border-r":[r]}],"border-w-b":[{"border-b":[r]}],"border-w-l":[{"border-l":[r]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...De(),"hidden"]}],"divide-x":[{"divide-x":[r]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[r]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:De()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...De()]}],"outline-offset":[{"outline-offset":[K,p]}],"outline-w":[{outline:[K,q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[K,q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",J,uo]}],"shadow-color":[{shadow:[Ce]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...Je(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Je()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[a]}],contrast:[{contrast:[v]}],"drop-shadow":[{"drop-shadow":["","none",J,p]}],grayscale:[{grayscale:[P]}],"hue-rotate":[{"hue-rotate":[D]}],invert:[{invert:[S]}],saturate:[{saturate:[z]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[v]}],"backdrop-grayscale":[{"backdrop-grayscale":[P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D]}],"backdrop-invert":[{"backdrop-invert":[S]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[z]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-x":[{"scale-x":[F]}],"scale-y":[{"scale-y":[F]}],rotate:[{rotate:[ye,p]}],"translate-x":[{"translate-x":[w]}],"translate-y":[{"translate-y":[w]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],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","H-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",p]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-H":[{"scroll-H":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",p]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[K,q,Ee]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","H","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-y"],"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-y":["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-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-H","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-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var it=Zt(vo);function f(...e){return it((0,st.clsx)(e))}var H=require("react/jsx-runtime"),fe=M.Root,lt=M.Trigger,ho=M.Portal;var ct=we.forwardRef(({className:e,...t},o)=>(0,H.jsx)(M.Overlay,{ref:o,className:f("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}));ct.displayName=M.Overlay.displayName;var Y=we.forwardRef(({className:e,children:t,...o},a)=>(0,H.jsxs)(ho,{children:[(0,H.jsx)(ct,{}),(0,H.jsxs)(M.Content,{ref:a,className:f("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-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),...o,children:[t,(0,H.jsxs)(M.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,H.jsx)(nt.H,{className:"h-4 w-4"}),(0,H.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Y.displayName=M.Content.displayName;var ee=({className:e,...t})=>(0,H.jsx)("div",{className:f("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ee.displayName="DialogHeader";var xo=({className:e,...t})=>(0,H.jsx)("div",{className:f("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});xo.displayName="DialogFooter";var te=we.forwardRef(({className:e,...t},o)=>(0,H.jsx)(M.Title,{ref:o,className:f("text-lg font-semibold leading-none tracking-tight",e),...t}));te.displayName=M.Title.displayName;var yo=we.forwardRef(({className:e,...t},o)=>(0,H.jsx)(M.Description,{ref:o,className:f("text-sm text-muted-foreground",e),...t}));yo.displayName=M.Description.displayName;var dt=require("@radix-ui/react-slot"),mt=require("class-variance-authority"),pt=B(require("react")),Co=(0,mt.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"}}}),W=pt.forwardRef(({asChild:e=!1,className:t,size:o,variant:a,...s},i)=>(0,H.jsx)(e?dt.Slot:"button",{className:f(Co({className:t,size:o,variant:a})),ref:i,...s}));W.displayName="Button";var ft=B(require("react"));var _=ft.forwardRef(({className:e,type:t,...o},a)=>(0,H.jsx)("input",{type:t,className:f("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,...o}));_.displayName="Input";var bt=B(require("react")),He=B(require("@radix-ui/react-label"));var wo=(0,mt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),E=bt.forwardRef(({className:e,...t},o)=>(0,H.jsx)(He.Root,{ref:o,className:f(wo(),e),...t}));E.displayName=He.Root.displayName;var xt=B(require("react")),oe=xt.forwardRef(({className:e,...t},o)=>(0,H.jsx)("textarea",{className:f("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:o,...t}));oe.displayName="Textarea";var h=B(require("@radix-ui/react-select")),Q=B(require("react")),ge=h.Root;var be=h.Value,ae=Q.forwardRef(({children:e,className:t,...o},a)=>(0,H.jsxs)(h.Trigger,{className:f("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,...o,children:[e,(0,H.jsx)(h.Icon,{asChild:!0,children:(0,H.jsx)(nt.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ae.displayName=h.Trigger.displayName;var Ct=Q.forwardRef(({className:e,...t},o)=>(0,H.jsx)(h.ScrollUpButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,H.jsx)(nt.ChevronUp,{className:"h-4 w-4"})}));Ct.displayName=h.ScrollUpButton.displayName;var wt=Q.forwardRef(({className:e,...t},o)=>(0,H.jsx)(h.ScrollDownButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,H.jsx)(nt.ChevronDown,{className:"h-4 w-4"})}));wt.displayName=h.ScrollDownButton.displayName;var ie=Q.forwardRef(({children:e,className:t,position:o="popper",...a},s)=>(0,H.jsx)(h.Portal,{children:(0,H.jsxs)(h.Content,{className:f("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",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:o,ref:s,...a,children:[(0,H.jsx)(Ct,{}),(0,H.jsx)(h.Viewport,{className:f("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,H.jsx)(wt,{})]})}));ie.displayName=h.Content.displayName;var So=Q.forwardRef(({className:e,...t},o)=>(0,H.jsx)(h.Label,{className:f("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));So.displayName=h.Label.displayName;var se=Q.forwardRef(({children:e,className:t,...o},a)=>(0,H.jsxs)(h.Item,{className:f("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,...o,children:[(0,H.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,H.jsx)(h.ItemIndicator,{children:(0,H.jsx)(nt.Check,{className:"h-4 w-4"})})}),(0,H.jsx)(h.ItemText,{children:e})]}));se.displayName=h.Item.displayName;var No=Q.forwardRef(({className:e,...t},o)=>(0,H.jsx)(h.Separator,{className:f("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));No.displayName=h.Separator.displayName;var Se=B(require("@radix-ui/react-checkbox")),Nt=B(require("react")),ne=Nt.forwardRef(({className:e,...t},o)=>(0,H.jsx)(Se.Root,{className:f("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:o,...t,children:(0,H.jsx)(Se.Indicator,{className:f("flex items-center justify-center text-current"),children:(0,H.jsx)(nt.Check,{className:"h-4 w-4"})})}));ne.displayName=Se.Root.displayName;var Po=(0,mt.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 Te({className:e,variant:t,...o}){return(0,H.jsx)("div",{className:f(Po({variant:t}),e),...o})}var Ve=B(require("react")),U=B(require("@radix-ui/react-scroll-area"));var ve=Ve.forwardRef(({className:e,children:t,...o},a)=>(0,H.jsxs)(U.Root,{ref:a,className:f("relative overflow-hidden",e),...o,children:[(0,H.jsx)(U.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,H.jsx)(Rt,{}),(0,H.jsx)(U.Corner,{})]}));ve.displayName=U.Root.displayName;var Rt=Ve.forwardRef(({className:e,orientation:t="vertical",...o},a)=>(0,H.jsx)(U.ScrollAreaScrollbar,{ref:a,orientation:t,className:f("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),...o,children:(0,H.jsx)(U.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Rt.displayName=U.ScrollAreaScrollbar.displayName;function Fe({deal:e,users:t,customer:o,categories:a,onClose:s,onSave:i,onAddComment:c}){var O,$,m,w,G;let[r,v]=(0,Me.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[P,D]=(0,Me.useState)(""),[S,g]=(0,Me.useState)(!1),[b,u]=(0,Me.useState)(null);(0,Me.useEffect)(()=>{g(JSON.stringify(e)!==JSON.stringify(r))},[e,r]);let y=()=>{i(r),g(!1),u(null)},x=(l,N)=>{v(C=>({...C,[l]:N}))},k=l=>{let N=(r.categories||[]).includes(l)?(r.categories||[]).filter(C=>C!==l):[...r.categories||[],l];x("categories",N)},L=()=>{if(P.trim()){let l={text:P,timestamp:new Date().toISOString()};c(l),v(N=>({...N,comments:[...N.comments||[],l]})),D("")}},z=l=>{switch(l){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"}},F=l=>t==null?void 0:t.find(N=>N.id===Number(l));return(0,H.jsx)(fe,{open:!0,children:(0,H.jsxs)(Y,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,H.jsxs)(ee,{className:"flex flex-row items-center justify-between",children:[(0,H.jsx)(te,{className:"text-2xl font-bold",children:o==null?void 0:o.name}),(0,H.jsxs)("div",{className:"flex space-x-2",children:[(0,H.jsx)(W,{variant:"outline",onClick:s,children:"Close"}),(0,H.jsxs)(W,{onClick:y,disabled:!S,children:[(0,H.jsx)(nt.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,H.jsxs)(ve,{className:"flex-grow pr-4",children:[(0,H.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,H.jsx)("div",{className:"grid gap-2",children:b==="value"?(0,H.jsx)(_,{type:"number",value:r.value,onChange:l=>x("value",Number(l.target.value)),onBlur:()=>u(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,H.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("value"),children:["\xA3",(O=r.value)==null?void 0:O.toLocaleString()]})}),(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(E,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),b==="assignee"?(0,H.jsxs)(ge,{value:((m=($=r==null?void 0:r.assignee)==null?void 0:$.id)==null?void 0:m.toString())||"",onValueChange:l=>x("assignee",F(l)),children:[(0,H.jsx)(ae,{children:(0,H.jsx)(be,{placeholder:"Select assignee"})}),(0,H.jsx)(ie,{children:t&&t.map(l=>{var N;return(0,H.jsx)(se,{value:((N=l==null?void 0:l.id)==null?void 0:N.toString())||"",children:l.name},l.id)})})]}):(0,H.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("assignee"),children:[(0,H.jsx)(nt.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,H.jsx)("span",{children:r.assignee.name})]})]}),(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(E,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),b==="closureDate"?(0,H.jsx)(_,{type:"date",value:(G=(w=r.closureDate)==null?void 0:w.split("H")[0])!=null?G:"",onChange:l=>x("closureDate",l.target.value),onBlur:()=>u(null),autoFocus:!0}):(0,H.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("closureDate"),children:[(0,H.jsx)(nt.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,H.jsx)("span",{children:r.closureDate?new Date(r.closureDate).toLocaleDateString("en-GB"):"N/H"})]})]})]}),(0,H.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(E,{className:"text-sm font-medium text-gray-500",children:"Description"}),b==="description"?(0,H.jsx)(oe,{value:r.description||"",onChange:l=>x("description",l.target.value),onBlur:()=>u(null),className:"min-h-[100px]",autoFocus:!0}):(0,H.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>u("description"),children:r.description})]})}),(0,H.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(E,{className:"text-sm font-medium text-gray-500",children:"Status"}),b==="status"?(0,H.jsxs)(ge,{value:r.status,onValueChange:l=>{x("status",l),u(null)},children:[(0,H.jsx)(ae,{children:(0,H.jsx)(be,{placeholder:"Select status"})}),(0,H.jsx)(ie,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(l=>(0,H.jsx)(se,{value:l,children:l},l))})]}):(0,H.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("status"),children:r.status})]}),(0,H.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,H.jsx)(E,{className:"text-sm font-medium text-gray-500",children:"Categories"}),b==="categories"?(0,H.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.map(l=>{var N,C;return(0,H.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,H.jsx)(ne,{id:((N=l.id)==null?void 0:N.toString())||"",checked:(r.categories||[]).some(Ne=>Ne.id===l.id),onCheckedChange:()=>l.id!==void 0&&k(l)}),(0,H.jsx)("label",{htmlFor:((C=l.id)!=null?C:"").toString(),className:`text-sm font-medium ${z(l.type||"sector")} px-2 py-1 rounded`,children:l.name})]},l.id)})}):(0,H.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>u("categories"),children:r.categories&&r.categories.map(l=>{console.log("cat",l);let N=l;return N?(0,H.jsx)(Te,{variant:"secondary",className:z(N.type||"sector"),children:N.name},N.id):null})})]})]}),(0,H.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,H.jsxs)("div",{className:"grid gap-2",children:[(0,H.jsx)(E,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,H.jsx)(ve,{className:"h-[200px] overflow-y-auto",children:(0,H.jsx)("div",{className:"space-y-2",children:r.comments&&r.comments.slice().sort((l,N)=>new Date(N.timestamp||"").getTime()-new Date(l.timestamp||"").getTime()).map(l=>{var N;return(0,H.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,H.jsx)("p",{className:"text-sm text-gray-700",children:l.text}),(0,H.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(N=l==null?void 0:l.author)==null?void 0:N.name," - ",new Date(l.timestamp||"").toLocaleString()]})]},l.id)})})}),(0,H.jsxs)("div",{className:"flex mt-2",children:[(0,H.jsx)(_,{value:P,onChange:l=>D(l.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,H.jsxs)(W,{onClick:L,className:"ml-2",children:[(0,H.jsx)(nt.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,H.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(r.updatedAt||"").toLocaleString()]})]})]})]})})}var ce=B(require("react"));var We=ce.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:f("rounded-xl border bg-card text-card-foreground shadow",e),...t}));We.displayName="Card";var Ue=ce.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:f("flex flex-col space-y-1.5 p-6",e),...t}));Ue.displayName="CardHeader";var Ge=ce.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:f("font-semibold leading-none tracking-tight",e),...t}));Ge.displayName="CardTitle";var Do=ce.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:f("text-sm text-muted-foreground",e),...t}));Do.displayName="CardDescription";var Oe=ce.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:f("p-6 pt-0",e),...t}));Oe.displayName="CardContent";var Ro=ce.forwardRef(({className:e,...t},o)=>(0,H.jsx)("div",{ref:o,className:f("flex items-center p-6 pt-0",e),...t}));Ro.displayName="CardFooter";function _e({deal:e,customer:t,categories:o,onClick:a}){let s=o.find(i=>{var c;return i.type==="proposition"&&((c=e.categories)!=null?c:[]).includes(i.id)});return(0,H.jsxs)(We,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:a,children:[(0,H.jsxs)(Ue,{className:"pb-2",children:[(0,H.jsx)("div",{className:"flex justify-between items-center",children:(0,H.jsx)(Ge,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,H.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,H.jsxs)(Oe,{children:[(0,H.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,H.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,H.jsx)(nt.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,H.jsx)("span",{children:e.assignee.name})]}),(0,H.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,H.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,H.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,H.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,H.jsx)(nt.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,H.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,H.jsx)("div",{className:"flex justify-between items-left",children:s&&(0,H.jsx)(Te,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:s.name})})]})]})}var Le=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function je({onSubmit:e}){var s;let[t,o]=(0,Me.useState)({name:"",intro:"",active:!0});return(0,H.jsxs)("form",{onSubmit:i=>{i.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),o({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,H.jsxs)("div",{className:"space-y-2",children:[(0,H.jsx)(E,{htmlFor:"customerName",children:"Customer Name"}),(0,H.jsx)(_,{id:"customerName",value:t.name,onChange:i=>o({...t,name:i.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,H.jsxs)("div",{className:"space-y-2",children:[(0,H.jsx)(E,{htmlFor:"customerIntro",children:"Intro"}),(0,H.jsx)(oe,{id:"customerIntro",value:(s=t.intro)!=null?s:"",onChange:i=>o({...t,intro:i.target.value}),placeholder:"Enter customer intro"})]}),(0,H.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,H.jsx)(ne,{id:"activeCustomer",checked:!!t.active,onCheckedChange:i=>o({...t,active:i})}),(0,H.jsx)(E,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,H.jsx)(W,{type:"submit",className:"w-full",children:"Add Customer"})]})}function Ke({customers:e,users:t,categories:o,onSubmit:a,initialDeal:s,onAddCustomer:i,onClose:c}){var z,F,O,$;let[r,v]=(0,Me.useState)(s||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("H")[0],closureDate:"",comments:[],description:""}),[P,D]=(0,Me.useState)(!1),[S,g]=(0,Me.useState)({});(0,Me.useEffect)(()=>{s&&v(s)},[s]);let b=()=>{let m={};return r.customer||(m.customer="Customer is required"),r.value||(m.value="Value is required"),r.assignee||(m.assignee="Assignee is required"),r.closureDate||(m.closureDate="Closure Date is required"),g(m),Object.keys(m).length===0},u=m=>{m.preventDefault(),b()&&(a({...r}),v({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),g({}),c==null||c())},y=m=>{v(w=>({...w,categories:(w.categories||[]).includes(m)?(w.categories||[]).filter(G=>G!==m):[...w.categories||[],m]}))},x=m=>{v({...r,customer:m}),D(!1),i(m)},k=m=>t==null?void 0:t.find(w=>w.id===Number(m)),L=m=>e==null?void 0:e.find(w=>w.id===Number(m));return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)("form",{onSubmit:u,className:"space-y-6",children:[(0,H.jsx)(ve,{className:"h-[60vh] pr-4",children:(0,H.jsxs)("div",{className:"space-y-6 px-4",children:[(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(E,{htmlFor:"customer",children:"Customer"}),(0,H.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,H.jsxs)(ge,{value:(F=(z=r.customer)==null?void 0:z.id)==null?void 0:F.toString(),onValueChange:m=>v({...r,customer:L(m)}),children:[(0,H.jsx)(ae,{children:(0,H.jsx)(be,{placeholder:"Select customer"})}),(0,H.jsx)(ie,{children:e.map(m=>{var w;return(0,H.jsx)(se,{value:((w=m.id)==null?void 0:w.toString())||"",children:m.name},m.id)})})]}),(0,H.jsx)(W,{variant:"outline",size:"icon",onClick:()=>D(!0),children:(0,H.jsx)(nt.PlusIcon,{className:"w-5 h-5"})})]}),S.customerId&&(0,H.jsx)("p",{className:"text-red-500 text-sm",children:S.customerId})]}),(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(E,{htmlFor:"value",children:"Value"}),(0,H.jsx)(_,{id:"value",type:"number",value:r.value||"",onChange:m=>v({...r,value:Number.parseFloat(m.target.value)}),placeholder:"Enter deal value"}),S.value&&(0,H.jsx)("p",{className:"text-red-500 text-sm",children:S.value})]}),(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(E,{htmlFor:"assignee",children:"Assignee"}),(0,H.jsxs)(ge,{value:($=(O=r.assignee)==null?void 0:O.id)==null?void 0:$.toString(),onValueChange:m=>v({...r,assignee:k(m)}),children:[(0,H.jsx)(ae,{children:(0,H.jsx)(be,{placeholder:"Select assignee"})}),(0,H.jsx)(ie,{children:t&&t.map(m=>{var w;return(0,H.jsx)(se,{value:((w=m.id)==null?void 0:w.toString())||"",children:m.name},m.id)})})]}),S.assignee&&(0,H.jsx)("p",{className:"text-red-500 text-sm",children:S.assignee})]}),(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(E,{htmlFor:"description",children:"Description"}),(0,H.jsx)(oe,{id:"description",value:r.description||"",onChange:m=>v({...r,description:m.target.value}),placeholder:"Enter deal description"})]}),(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(E,{children:"Categories"}),(0,H.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(m=>(0,H.jsxs)("div",{className:"space-y-2",children:[(0,H.jsx)("h4",{className:"text-sm font-medium",children:m.charAt(0).toUpperCase()+m.slice(1)}),(0,H.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.filter(w=>w.type===m).map(w=>{var G;return(0,H.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,H.jsx)(ne,{id:w.id.toString(),checked:(G=r.categories)==null?void 0:G.includes(w.id),onCheckedChange:()=>y(w)}),(0,H.jsx)("label",{htmlFor:w.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:w.name})]},w.id)})})]},m))})]}),(0,H.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,H.jsx)(E,{htmlFor:"closureDate",children:"Closure Date"}),(0,H.jsx)(_,{id:"closureDate",type:"date",value:r.closureDate||"",onChange:m=>v({...r,closureDate:m.target.value})}),S.closureDate&&(0,H.jsx)("p",{className:"text-red-500 text-sm",children:S.closureDate})]})]})}),(0,H.jsx)(W,{type:"submit",className:"w-full",children:s?"Update Deal":"Add Deal"})]}),(0,H.jsx)(fe,{open:P,onOpenChange:D,children:(0,H.jsxs)(Y,{children:[(0,H.jsx)(ee,{children:(0,H.jsx)(te,{children:"Add New Customer"})}),(0,H.jsx)(je,{onSubmit:x})]})})]})}function $e({status:e,deals:t,users:o,customers:a,categories:s,onDealClick:i,calculateColumnValue:c,calculateWeightedValue:r,addNewDeal:v,onAddCustomer:P}){let[D,S]=(0,Me.useState)(!1);return(0,H.jsxs)("div",{className:"flex flex-col w-80",children:[(0,H.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),v&&(0,H.jsxs)(fe,{open:D,onOpenChange:S,children:[(0,H.jsx)(lt,{asChild:!0,children:(0,H.jsxs)(W,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,H.jsx)(nt.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,H.jsxs)(Y,{children:[(0,H.jsx)(ee,{children:(0,H.jsx)(te,{children:"Add New Deal"})}),(0,H.jsx)(Ke,{customers:a,users:o,categories:s,onSubmit:v,onAddCustomer:P,onClose:()=>S(!1)})]})]}),(0,H.jsx)(Le.Droppable,{droppableId:e,isDropDisabled:!1,children:g=>(0,H.jsxs)("div",{ref:g.innerRef,...g.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((b,u)=>(0,H.jsx)(Le.Draggable,{draggableId:b.id.toString(),index:b.id,children:y=>(0,H.jsx)("div",{ref:y.innerRef,...y.draggableProps,...y.dragHandleProps,children:(0,H.jsx)(_e,{deal:b,customer:b.customer,categories:s,onClick:()=>i(b)})})},b.id.toString())),g.placeholder]})}),(0,H.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,H.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,H.jsxs)("span",{className:"text-green-600",children:["\xA3",c(t).toLocaleString()]})]}),(0,H.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,H.jsxs)("span",{className:"text-blue-600",children:["\xA3",r(t,e).toLocaleString()]})]})]})]})}var ko=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function To({initialData:e,addNewDeal:t,updateDeal:o,addComment:a,addNewCustomer:s}){var S;let[i,c]=(0,Me.useState)(null),r=g=>{var b;return((b=e.deals)!=null?b:[]).filter(u=>u.status===g)},v=g=>g.reduce((b,u)=>b+(u.value||0),0),P=(g,b)=>{let u={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return g.reduce((y,x)=>y+(x.value||0)*u[b],0)},D=(0,Me.useCallback)(g=>{var z;let{source:b,destination:u}=g;if(!u||b.droppableId===u.droppableId&&b.index===u.index)return;let y=b.droppableId,x=u.droppableId;console.log("Moving from ",y,"to",x);let k=[...(z=e.deals)!=null?z:[]],[L]=k.splice(b.index,1);L.status=x,k.splice(u.index,0,L),o(L)},[o]);return(0,H.jsx)(Le.DragDropContext,{onDragEnd:D,children:(0,H.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,H.jsx)("div",{className:"flex space-x-4 pb-4",children:ko.filter(g=>g!=="Won"&&g!=="Lost").map(g=>{var u,y;let b=r(g);return(0,H.jsx)($e,{status:g,deals:b,customers:(u=e.customers)!=null?u:[],users:e.users,categories:(y=e.categories)!=null?y:[],onDealClick:c,calculateColumnValue:v,calculateWeightedValue:P,addNewDeal:g==="Cold"?t:void 0,onAddCustomer:s},g)})}),i&&(0,H.jsx)(Fe,{deal:i,users:e.users,customer:i.customer,categories:(S=e.categories)!=null?S:[],onClose:()=>c(null),onSave:o,onAddComment:g=>a(i.id.toString(),g)})]})})}0&&(module.exports={CRMKanbanBoard,DealCard,DealDetails,KanbanColumn,NewCustomerForm,NewDealForm});
|
|
4
|
+
"use strict";var Mt=Object.create;var Re=Object.defineProperty;var Et=Object.getOwnPropertyDescriptor;var zt=Object.getOwnPropertyNames;var Bt=Object.getPrototypeOf,Ht=Object.prototype.hasOwnProperty;var Vt=(e,t)=>{for(var r in t)Re(e,r,{get:t[r],enumerable:!0})},Xe=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zt(t))!Ht.call(e,i)&&i!==r&&Re(e,i,{get:()=>t[i],enumerable:!(a=Et(t,i))||a.enumerable});return e};var H=(e,t,r)=>(r=e!=null?Mt(Bt(e)):{},Xe(t||!e||!e.__esModule?Re(r,"default",{value:e,enumerable:!0}):r,e)),Ft=e=>Xe(Re({},"__esModule",{value:!0}),e);var Ar={};Vt(Ar,{CRMKanbanBoard:()=>kr,DealCard:()=>_e,DealDetails:()=>Fe,KanbanColumn:()=>$e,NewCustomerForm:()=>je,NewDealForm:()=>Ke});module.exports=Ft(Ar);var Ie=require("react");var we=H(require("react")),L=H(require("@radix-ui/react-dialog")),nt=require("lucide-react");var it=require("clsx");var Be="-",Wt=e=>{let t=Gt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{let o=c.split(Be);return o[0]===""&&o.length!==1&&o.shift(),et(o,t)||Ut(c)},getConflictingClassGroupIds:(c,o)=>{let v=r[c]||[];return o&&a[c]?[...v,...a[c]]:v}}},et=(e,t)=>{var c;if(e.length===0)return t.classGroupId;let r=e[0],a=t.nextPart.get(r),i=a?et(e.slice(1),a):void 0;if(i)return i;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},Ze=/^\[(.+)\]$/,Ut=e=>{if(Ze.test(e)){let t=Ze.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Gt=e=>{let{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return _t(Object.entries(e.classGroups),r).forEach(([s,c])=>{ze(c,a,s,t)}),a},ze=(e,t,r,a)=>{e.forEach(i=>{if(typeof i=="string"){let s=i===""?t:Ye(t,i);s.classGroupId=r;return}if(typeof i=="function"){if(Ot(i)){ze(i(a),t,r,a);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([s,c])=>{ze(c,Ye(t,s),r,a)})})},Ye=(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},Ot=e=>e.isThemeGetter,_t=(e,t)=>t?e.map(([r,a])=>{let i=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,i]}):e,jt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map,i=(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 i(s,c),c},set(s,c){r.has(s)?r.set(s,c):i(s,c)}}},tt="!",Kt=e=>{let{separator:t,experimentalParseClassName:r}=e,a=t.length===1,i=t[0],s=t.length,c=o=>{let v=[],P=0,D=0,N;for(let x=0;x<o.length;x++){let k=o[x];if(P===0){if(k===i&&(a||o.slice(x,x+s)===t)){v.push(o.slice(D,x)),D=x+s;continue}if(k==="/"){N=x;continue}}k==="["?P++:k==="]"&&P--}let p=v.length===0?o:o.substring(D),g=p.startsWith(tt),b=g?p.substring(1):p,w=N&&N>D?N-D:void 0;return{modifiers:v,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:w}};return r?o=>r({className:o,parseClassName:c}):c},$t=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},qt=e=>({cache:jt(e.cacheSize),parseClassName:Kt(e),...Wt(e)}),Jt=/\s+/,Qt=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:i}=t,s=[],c=e.trim().split(Jt),o="";for(let v=c.length-1;v>=0;v-=1){let P=c[v],{modifiers:D,hasImportantModifier:N,baseClassName:p,maybePostfixModifierPosition:g}=r(P),b=!!g,w=a(b?p.substring(0,g):p);if(!w){if(!b){o=P+(o.length>0?" "+o:o);continue}if(w=a(p),!w){o=P+(o.length>0?" "+o:o);continue}b=!1}let x=$t(D).join(":"),k=N?x+tt:x,E=k+w;if(s.includes(E))continue;s.push(E);let B=i(w,b);for(let z=0;z<B.length;++z){let W=B[z];s.push(k+W)}o=P+(o.length>0?" "+o:o)}return o};function Xt(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=rt(t))&&(a&&(a+=" "),a+=r);return a}var rt=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=rt(e[a]))&&(r&&(r+=" "),r+=t);return r};function Zt(e,...t){let r,a,i,s=c;function c(v){let P=t.reduce((D,N)=>N(D),e());return r=qt(P),a=r.cache.get,i=r.cache.set,s=o,o(v)}function o(v){let P=a(v);if(P)return P;let D=Qt(v,r);return i(v,D),D}return function(){return s(Xt.apply(null,arguments))}}var R=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},ot=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yt=/^\V+\/\V+$/,er=new Set(["px","full","screen"]),tr=/^(\V+(\.\V+)?)?(xs|sm|md|lg|xl)$/,rr=/\V+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,or=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ar=/^(inset_)?-?((\V+)?\.?(\V+)[a-z]+|0)_-?((\V+)?\.?(\V+)[a-z]+|0)/,sr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,K=e=>pe(e)||er.has(e)||Yt.test(e),q=e=>ue(e,"length",ur),pe=e=>!!e&&!Number.isNaN(Number(e)),Ee=e=>ue(e,"number",pe),xe=e=>!!e&&Number.isInteger(Number(e)),ir=e=>e.endsWith("%")&&pe(e.slice(0,-1)),u=e=>ot.test(e),J=e=>tr.test(e),nr=new Set(["length","size","percentage"]),lr=e=>ue(e,nr,at),cr=e=>ue(e,"position",at),dr=new Set(["image","url"]),mr=e=>ue(e,dr,gr),pr=e=>ue(e,"",fr),Ce=()=>!0,ue=(e,t,r)=>{let a=ot.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},ur=e=>rr.test(e)&&!or.test(e),at=()=>!1,fr=e=>ar.test(e),gr=e=>sr.test(e);var br=()=>{let e=R("colors"),t=R("spacing"),r=R("blur"),a=R("brightness"),i=R("borderColor"),s=R("borderRadius"),c=R("borderSpacing"),o=R("borderWidth"),v=R("contrast"),P=R("grayscale"),D=R("hueRotate"),N=R("invert"),p=R("gap"),g=R("gradientColorStops"),b=R("gradientColorStopPositions"),w=R("inset"),x=R("margin"),k=R("opacity"),E=R("padding"),B=R("saturate"),z=R("scale"),W=R("sepia"),$=R("skew"),m=R("space"),h=R("translate"),O=()=>["auto","contain","none"],l=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",u,t],S=()=>[u,t],Ne=()=>["",K,q],Pe=()=>["auto",pe,u],qe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],De=()=>["solid","dashed","dotted","double","none"],Je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Me=()=>["start","end","center","between","around","evenly","stretch"],ye=()=>["","0",u],Qe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>[pe,u];return{cacheSize:500,separator:":",theme:{colors:[Ce],spacing:[K,q],blur:["none","",J,u],brightness:j(),borderColor:[e],borderRadius:["none","","full",J,u],borderSpacing:S(),borderWidth:Ne(),contrast:j(),grayscale:ye(),hueRotate:j(),invert:ye(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[ir,q],inset:C(),margin:C(),opacity:j(),padding:S(),saturate:j(),scale:j(),sepia:ye(),skew:j(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[J]}],"break-after":[{"break-after":Qe()}],"break-before":[{"break-before":Qe()}],"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:[...qe(),u]}],overflow:[{overflow:l()}],"overflow-x":[{"overflow-x":l()}],"overflow-y":[{"overflow-y":l()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[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",xe,u]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:ye()}],shrink:[{shrink:ye()}],order:[{order:["first","last","none",xe,u]}],"grid-cols":[{"grid-cols":[Ce]}],"col-start-end":[{col:["auto",{span:["full",xe,u]},u]}],"col-start":[{"col-start":Pe()}],"col-end":[{"col-end":Pe()}],"grid-rows":[{"grid-rows":[Ce]}],"row-start-end":[{row:["auto",{span:[xe,u]},u]}],"row-start":[{"row-start":Pe()}],"row-end":[{"row-end":Pe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...Me()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Me(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Me(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],V:[{V:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[m]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[m]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[J]},J]}],h:[{h:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",J,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ee]}],"font-family":[{font:[Ce]}],"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",u]}],"line-clamp":[{"line-clamp":["none",pe,Ee]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",K,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...De(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",K,q]}],"underline-offset":[{"underline-offset":["auto",K,u]}],"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:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],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",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...qe(),cr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",lr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},mr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],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-y":[{"border-y":[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":[k]}],"border-style":[{border:[...De(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:De()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...De()]}],"outline-offset":[{"outline-offset":[K,u]}],"outline-w":[{outline:[K,q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-w":[{"ring-offset":[K,q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",J,pr]}],"shadow-color":[{shadow:[Ce]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...Je(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Je()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[v]}],"drop-shadow":[{"drop-shadow":["","none",J,u]}],grayscale:[{grayscale:[P]}],"hue-rotate":[{"hue-rotate":[D]}],invert:[{invert:[N]}],saturate:[{saturate:[B]}],sepia:[{sepia:[W]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[v]}],"backdrop-grayscale":[{"backdrop-grayscale":[P]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D]}],"backdrop-invert":[{"backdrop-invert":[N]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[B]}],"backdrop-sepia":[{"backdrop-sepia":[W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[xe,u]}],"translate-x":[{"translate-x":[h]}],"translate-y":[{"translate-y":[h]}],"skew-x":[{"skew-x":[$]}],"skew-y":[{"skew-y":[$]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],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","V-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",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-V":[{"scroll-V":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[K,q,Ee]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","V","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-y"],"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-y":["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-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-V","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-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var st=Zt(br);function f(...e){return st((0,it.clsx)(e))}var V=require("react/jsx-runtime"),fe=L.Root,lt=L.Trigger,vr=L.Portal;var ct=we.forwardRef(({className:e,...t},r)=>(0,V.jsx)(L.Overlay,{ref:r,className:f("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}));ct.displayName=L.Overlay.displayName;var Y=we.forwardRef(({className:e,children:t,...r},a)=>(0,V.jsxs)(vr,{children:[(0,V.jsx)(ct,{}),(0,V.jsxs)(L.Content,{ref:a,className:f("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-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,V.jsxs)(L.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,V.jsx)(nt.V,{className:"h-4 w-4"}),(0,V.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Y.displayName=L.Content.displayName;var ee=({className:e,...t})=>(0,V.jsx)("div",{className:f("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ee.displayName="DialogHeader";var hr=({className:e,...t})=>(0,V.jsx)("div",{className:f("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});hr.displayName="DialogFooter";var te=we.forwardRef(({className:e,...t},r)=>(0,V.jsx)(L.Title,{ref:r,className:f("text-lg font-semibold leading-none tracking-tight",e),...t}));te.displayName=L.Title.displayName;var yr=we.forwardRef(({className:e,...t},r)=>(0,V.jsx)(L.Description,{ref:r,className:f("text-sm text-muted-foreground",e),...t}));yr.displayName=L.Description.displayName;var dt=require("@radix-ui/react-slot"),mt=require("class-variance-authority"),pt=H(require("react")),xr=(0,mt.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"}}}),U=pt.forwardRef(({asChild:e=!1,className:t,size:r,variant:a,...i},s)=>(0,V.jsx)(e?dt.Slot:"button",{className:f(xr({className:t,size:r,variant:a})),ref:s,...i}));U.displayName="Button";var ft=H(require("react"));var _=ft.forwardRef(({className:e,type:t,...r},a)=>(0,V.jsx)("input",{type:t,className:f("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}));_.displayName="Input";var bt=H(require("react")),He=H(require("@radix-ui/react-label"));var Cr=(0,mt.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),M=bt.forwardRef(({className:e,...t},r)=>(0,V.jsx)(He.Root,{ref:r,className:f(Cr(),e),...t}));M.displayName=He.Root.displayName;var yt=H(require("react")),re=yt.forwardRef(({className:e,...t},r)=>(0,V.jsx)("textarea",{className:f("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}));re.displayName="Textarea";var y=H(require("@radix-ui/react-select")),Q=H(require("react")),ge=y.Root;var be=y.Value,ae=Q.forwardRef(({children:e,className:t,...r},a)=>(0,V.jsxs)(y.Trigger,{className:f("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,V.jsx)(y.Icon,{asChild:!0,children:(0,V.jsx)(nt.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ae.displayName=y.Trigger.displayName;var Ct=Q.forwardRef(({className:e,...t},r)=>(0,V.jsx)(y.ScrollUpButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,V.jsx)(nt.ChevronUp,{className:"h-4 w-4"})}));Ct.displayName=y.ScrollUpButton.displayName;var wt=Q.forwardRef(({className:e,...t},r)=>(0,V.jsx)(y.ScrollDownButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,V.jsx)(nt.ChevronDown,{className:"h-4 w-4"})}));wt.displayName=y.ScrollDownButton.displayName;var se=Q.forwardRef(({children:e,className:t,position:r="popper",...a},i)=>(0,V.jsx)(y.Portal,{children:(0,V.jsxs)(y.Content,{className:f("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-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,ref:i,...a,children:[(0,V.jsx)(Ct,{}),(0,V.jsx)(y.Viewport,{className:f("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,V.jsx)(wt,{})]})}));se.displayName=y.Content.displayName;var wr=Q.forwardRef(({className:e,...t},r)=>(0,V.jsx)(y.Label,{className:f("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));wr.displayName=y.Label.displayName;var ie=Q.forwardRef(({children:e,className:t,...r},a)=>(0,V.jsxs)(y.Item,{className:f("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,V.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,V.jsx)(y.ItemIndicator,{children:(0,V.jsx)(nt.Check,{className:"h-4 w-4"})})}),(0,V.jsx)(y.ItemText,{children:e})]}));ie.displayName=y.Item.displayName;var Sr=Q.forwardRef(({className:e,...t},r)=>(0,V.jsx)(y.Separator,{className:f("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Sr.displayName=y.Separator.displayName;var Se=H(require("@radix-ui/react-checkbox")),Nt=H(require("react")),ne=Nt.forwardRef(({className:e,...t},r)=>(0,V.jsx)(Se.Root,{className:f("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,V.jsx)(Se.Indicator,{className:f("flex items-center justify-center text-current"),children:(0,V.jsx)(nt.Check,{className:"h-4 w-4"})})}));ne.displayName=Se.Root.displayName;var Nr=(0,mt.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 Ae({className:e,variant:t,...r}){return(0,V.jsx)("div",{className:f(Nr({variant:t}),e),...r})}var Ve=H(require("react")),G=H(require("@radix-ui/react-scroll-area"));var ve=Ve.forwardRef(({className:e,children:t,...r},a)=>(0,V.jsxs)(G.Root,{ref:a,className:f("relative overflow-hidden",e),...r,children:[(0,V.jsx)(G.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,V.jsx)(Rt,{}),(0,V.jsx)(G.Corner,{})]}));ve.displayName=G.Root.displayName;var Rt=Ve.forwardRef(({className:e,orientation:t="vertical",...r},a)=>(0,V.jsx)(G.ScrollAreaScrollbar,{ref:a,orientation:t,className:f("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,V.jsx)(G.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Rt.displayName=G.ScrollAreaScrollbar.displayName;function Fe({deal:e,users:t,customer:r,categories:a,onClose:i,onSave:s,onAddComment:c}){var W,$,m,h,O;let[o,v]=(0,Ie.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[P,D]=(0,Ie.useState)(""),[N,p]=(0,Ie.useState)(!1),[g,b]=(0,Ie.useState)(null);(0,Ie.useEffect)(()=>{p(JSON.stringify(e)!==JSON.stringify(o))},[e,o]);let w=async()=>{try{let l=await s(o);l.success?(p(!1),b(null)):console.error("Failed to save deal:",l.errors)}catch(l){console.error("Failed to save deal:",l)}},x=(l,C)=>{v(S=>({...S,[l]:C}))},k=l=>{let C=(o.categories||[]).includes(l)?(o.categories||[]).filter(S=>S!==l):[...o.categories||[],l];x("categories",C)},E=async()=>{if(P.trim()){let l={text:P,timestamp:new Date().toISOString()};try{let C=await c(l);if(!C.success){console.error("Failed to add comment:",C.errors);return}}catch(C){console.error("Failed to add comment:",C)}v(C=>({...C,comments:[...C.comments||[],l]})),D("")}},B=l=>{switch(l){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"}},z=l=>t==null?void 0:t.find(C=>C.id===Number(l));return(0,V.jsx)(fe,{open:!0,children:(0,V.jsxs)(Y,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,V.jsxs)(ee,{className:"flex flex-row items-center justify-between",children:[(0,V.jsx)(te,{className:"text-2xl font-bold",children:r==null?void 0:r.name}),(0,V.jsxs)("div",{className:"flex space-x-2",children:[(0,V.jsx)(U,{variant:"outline",onClick:i,children:"Close"}),(0,V.jsxs)(U,{onClick:w,disabled:!N,children:[(0,V.jsx)(nt.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,V.jsxs)(ve,{className:"flex-grow pr-4",children:[(0,V.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,V.jsx)("div",{className:"grid gap-2",children:g==="value"?(0,V.jsx)(_,{type:"number",value:o.value,onChange:l=>x("value",Number(l.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,V.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("value"),children:["\xA3",(W=o.value)==null?void 0:W.toLocaleString()]})}),(0,V.jsxs)("div",{className:"grid gap-2",children:[(0,V.jsx)(M,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),g==="assignee"?(0,V.jsxs)(ge,{value:((m=($=o==null?void 0:o.assignee)==null?void 0:$.id)==null?void 0:m.toString())||"",onValueChange:l=>x("assignee",z(l)),children:[(0,V.jsx)(ae,{children:(0,V.jsx)(be,{placeholder:"Select assignee"})}),(0,V.jsx)(se,{children:t&&t.map(l=>{var C;return(0,V.jsx)(ie,{value:((C=l==null?void 0:l.id)==null?void 0:C.toString())||"",children:l.name},l.id)})})]}):(0,V.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("assignee"),children:[(0,V.jsx)(nt.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,V.jsx)("span",{children:o.assignee.name})]})]}),(0,V.jsxs)("div",{className:"grid gap-2",children:[(0,V.jsx)(M,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),g==="closureDate"?(0,V.jsx)(_,{type:"date",value:(O=(h=o.closureDate)==null?void 0:h.split("V")[0])!=null?O:"",onChange:l=>x("closureDate",l.target.value),onBlur:()=>b(null),autoFocus:!0}):(0,V.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("closureDate"),children:[(0,V.jsx)(nt.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,V.jsx)("span",{children:o.closureDate?new Date(o.closureDate).toLocaleDateString("en-GB"):"N/V"})]})]})]}),(0,V.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,V.jsxs)("div",{className:"grid gap-2",children:[(0,V.jsx)(M,{className:"text-sm font-medium text-gray-500",children:"Description"}),g==="description"?(0,V.jsx)(re,{value:o.description||"",onChange:l=>x("description",l.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,V.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>b("description"),children:o.description})]})}),(0,V.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,V.jsxs)("div",{className:"grid gap-2",children:[(0,V.jsx)(M,{className:"text-sm font-medium text-gray-500",children:"Status"}),g==="status"?(0,V.jsxs)(ge,{value:o.status,onValueChange:l=>{x("status",l),b(null)},children:[(0,V.jsx)(ae,{children:(0,V.jsx)(be,{placeholder:"Select status"})}),(0,V.jsx)(se,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(l=>(0,V.jsx)(ie,{value:l,children:l},l))})]}):(0,V.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("status"),children:o.status})]}),(0,V.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,V.jsx)(M,{className:"text-sm font-medium text-gray-500",children:"Categories"}),g==="categories"?(0,V.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.map(l=>{var C,S;return(0,V.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,V.jsx)(ne,{id:((C=l.id)==null?void 0:C.toString())||"",checked:(o.categories||[]).some(Ne=>Ne.id===l.id),onCheckedChange:()=>l.id!==void 0&&k(l)}),(0,V.jsx)("label",{htmlFor:((S=l.id)!=null?S:"").toString(),className:`text-sm font-medium ${B(l.type||"sector")} px-2 py-1 rounded`,children:l.name})]},l.id)})}):(0,V.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("categories"),children:o.categories&&o.categories.map(l=>{console.log("cat",l);let C=l;return C?(0,V.jsx)(Ae,{variant:"secondary",className:B(C.type||"sector"),children:C.name},C.id):null})})]})]}),(0,V.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,V.jsxs)("div",{className:"grid gap-2",children:[(0,V.jsx)(M,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,V.jsx)(ve,{className:"h-[200px] overflow-y-auto",children:(0,V.jsx)("div",{className:"space-y-2",children:o.comments&&o.comments.slice().sort((l,C)=>new Date(C.timestamp||"").getTime()-new Date(l.timestamp||"").getTime()).map(l=>{var C;return(0,V.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,V.jsx)("p",{className:"text-sm text-gray-700",children:l.text}),(0,V.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(C=l==null?void 0:l.author)==null?void 0:C.name," - ",new Date(l.timestamp||"").toLocaleString()]})]},l.id)})})}),(0,V.jsxs)("div",{className:"flex mt-2",children:[(0,V.jsx)(_,{value:P,onChange:l=>D(l.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,V.jsxs)(U,{onClick:E,className:"ml-2",children:[(0,V.jsx)(nt.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,V.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(o.updatedAt||"").toLocaleString()]})]})]})]})})}var ce=H(require("react"));var We=ce.forwardRef(({className:e,...t},r)=>(0,V.jsx)("div",{ref:r,className:f("rounded-xl border bg-card text-card-foreground shadow",e),...t}));We.displayName="Card";var Ue=ce.forwardRef(({className:e,...t},r)=>(0,V.jsx)("div",{ref:r,className:f("flex flex-col space-y-1.5 p-6",e),...t}));Ue.displayName="CardHeader";var Ge=ce.forwardRef(({className:e,...t},r)=>(0,V.jsx)("div",{ref:r,className:f("font-semibold leading-none tracking-tight",e),...t}));Ge.displayName="CardTitle";var Pr=ce.forwardRef(({className:e,...t},r)=>(0,V.jsx)("div",{ref:r,className:f("text-sm text-muted-foreground",e),...t}));Pr.displayName="CardDescription";var Oe=ce.forwardRef(({className:e,...t},r)=>(0,V.jsx)("div",{ref:r,className:f("p-6 pt-0",e),...t}));Oe.displayName="CardContent";var Dr=ce.forwardRef(({className:e,...t},r)=>(0,V.jsx)("div",{ref:r,className:f("flex items-center p-6 pt-0",e),...t}));Dr.displayName="CardFooter";function _e({deal:e,customer:t,categories:r,onClick:a}){let i=r.find(s=>{var c;return s.type==="proposition"&&((c=e.categories)!=null?c:[]).includes(s.id)});return(0,V.jsxs)(We,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:a,children:[(0,V.jsxs)(Ue,{className:"pb-2",children:[(0,V.jsx)("div",{className:"flex justify-between items-center",children:(0,V.jsx)(Ge,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,V.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,V.jsxs)(Oe,{children:[(0,V.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,V.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,V.jsx)(nt.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,V.jsx)("span",{children:e.assignee.name})]}),(0,V.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,V.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,V.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,V.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,V.jsx)(nt.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,V.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,V.jsx)("div",{className:"flex justify-between items-left",children:i&&(0,V.jsx)(Ae,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:i.name})})]})]})}var Le=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function je({onSubmit:e}){var i;let[t,r]=(0,Ie.useState)({name:"",intro:"",active:!0});return(0,V.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),r({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,V.jsxs)("div",{className:"space-y-2",children:[(0,V.jsx)(M,{htmlFor:"customerName",children:"Customer Name"}),(0,V.jsx)(_,{id:"customerName",value:t.name,onChange:s=>r({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,V.jsxs)("div",{className:"space-y-2",children:[(0,V.jsx)(M,{htmlFor:"customerIntro",children:"Intro"}),(0,V.jsx)(re,{id:"customerIntro",value:(i=t.intro)!=null?i:"",onChange:s=>r({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,V.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,V.jsx)(ne,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>r({...t,active:s})}),(0,V.jsx)(M,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,V.jsx)(U,{type:"submit",className:"w-full",children:"Add Customer"})]})}function Ke({customers:e,users:t,categories:r,onSubmit:a,initialDeal:i,onAddCustomer:s,onClose:c}){var B,z,W,$;let[o,v]=(0,Ie.useState)(i||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("V")[0],closureDate:"",comments:[],description:""}),[P,D]=(0,Ie.useState)(!1),[N,p]=(0,Ie.useState)({});(0,Ie.useEffect)(()=>{i&&v(i)},[i]);let g=()=>{let m={};return o.customer||(m.customer="Customer is required"),o.value||(m.value="Value is required"),o.assignee||(m.assignee="Assignee is required"),o.closureDate||(m.closureDate="Closure Date is required"),p(m),Object.keys(m).length===0},b=async m=>{m.preventDefault(),p({});try{if(g()){let h=await a({...o});h.success?(v({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),c==null||c()):p(h.errors||{})}}catch{p({submit:"An error occurred while submitting the form."})}},w=m=>{console.log(m),v(h=>({...h,categories:(h.categories||[]).includes(m.id)?(h.categories||[]).filter(O=>O!==m.id):[...h.categories||[],m.id]}))},x=async m=>{v({...o,customer:m});try{let h=await s(m);h.success?D(!1):p(h.errors||{})}catch{p({submit:"An error occurred while submitting the form."})}},k=m=>t==null?void 0:t.find(h=>h.id===Number(m)),E=m=>e==null?void 0:e.find(h=>h.id===Number(m));return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)("form",{onSubmit:b,className:"space-y-6",children:[(0,V.jsx)(ve,{className:"h-[60vh] pr-4",children:(0,V.jsxs)("div",{className:"space-y-6 px-4",children:[(0,V.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,V.jsx)(M,{htmlFor:"customer",children:"Customer"}),(0,V.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,V.jsxs)(ge,{value:(z=(B=o.customer)==null?void 0:B.id)==null?void 0:z.toString(),onValueChange:m=>v({...o,customer:E(m)}),children:[(0,V.jsx)(ae,{children:(0,V.jsx)(be,{placeholder:"Select customer"})}),(0,V.jsx)(se,{children:e.map(m=>{var h;return(0,V.jsx)(ie,{value:((h=m.id)==null?void 0:h.toString())||"",children:m.name},m.id)})})]}),(0,V.jsx)(U,{variant:"outline",size:"icon",onClick:()=>D(!0),children:(0,V.jsx)(nt.PlusIcon,{className:"w-5 h-5"})})]}),N.customerId&&(0,V.jsx)("p",{className:"text-red-500 text-sm",children:N.customerId})]}),(0,V.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,V.jsx)(M,{htmlFor:"value",children:"Value"}),(0,V.jsx)(_,{id:"value",type:"number",value:o.value||"",onChange:m=>v({...o,value:Number.parseFloat(m.target.value)}),placeholder:"Enter deal value"}),N.value&&(0,V.jsx)("p",{className:"text-red-500 text-sm",children:N.value})]}),(0,V.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,V.jsx)(M,{htmlFor:"assignee",children:"Assignee"}),(0,V.jsxs)(ge,{value:($=(W=o.assignee)==null?void 0:W.id)==null?void 0:$.toString(),onValueChange:m=>v({...o,assignee:k(m)}),children:[(0,V.jsx)(ae,{children:(0,V.jsx)(be,{placeholder:"Select assignee"})}),(0,V.jsx)(se,{children:t&&t.map(m=>{var h;return(0,V.jsx)(ie,{value:((h=m.id)==null?void 0:h.toString())||"",children:m.name},m.id)})})]}),N.assignee&&(0,V.jsx)("p",{className:"text-red-500 text-sm",children:N.assignee})]}),(0,V.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,V.jsx)(M,{htmlFor:"description",children:"Description"}),(0,V.jsx)(re,{id:"description",value:o.description||"",onChange:m=>v({...o,description:m.target.value}),placeholder:"Enter deal description"})]}),(0,V.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,V.jsx)(M,{children:"Categories"}),(0,V.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(m=>(0,V.jsxs)("div",{className:"space-y-2",children:[(0,V.jsx)("h4",{className:"text-sm font-medium",children:m.charAt(0).toUpperCase()+m.slice(1)}),(0,V.jsx)("div",{className:"grid grid-cols-2 gap-2",children:r.filter(h=>h.type===m).map(h=>{var O;return(0,V.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,V.jsx)(ne,{id:h.id.toString(),checked:(O=o.categories)==null?void 0:O.includes(h.id),onCheckedChange:()=>w(h)}),(0,V.jsx)("label",{htmlFor:h.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:h.name})]},h.id)})})]},m))})]}),(0,V.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,V.jsx)(M,{htmlFor:"closureDate",children:"Closure Date"}),(0,V.jsx)(_,{id:"closureDate",type:"date",value:o.closureDate||"",onChange:m=>v({...o,closureDate:m.target.value})}),N.closureDate&&(0,V.jsx)("p",{className:"text-red-500 text-sm",children:N.closureDate})]})]})}),(0,V.jsx)(U,{type:"submit",className:"w-full",children:i?"Update Deal":"Add Deal"})]}),(0,V.jsx)(fe,{open:P,onOpenChange:D,children:(0,V.jsxs)(Y,{children:[(0,V.jsx)(ee,{children:(0,V.jsx)(te,{children:"Add New Customer"})}),(0,V.jsx)(je,{onSubmit:x})]})})]})}function $e({status:e,deals:t,users:r,customers:a,categories:i,onDealClick:s,calculateColumnValue:c,calculateWeightedValue:o,addNewDeal:v,onAddCustomer:P}){let[D,N]=(0,Ie.useState)(!1);return(0,V.jsxs)("div",{className:"flex flex-col w-80",children:[(0,V.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),v&&(0,V.jsxs)(fe,{open:D,onOpenChange:N,children:[(0,V.jsx)(lt,{asChild:!0,children:(0,V.jsxs)(U,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,V.jsx)(nt.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,V.jsxs)(Y,{children:[(0,V.jsx)(ee,{children:(0,V.jsx)(te,{children:"Add New Deal"})}),(0,V.jsx)(Ke,{customers:a,users:r,categories:i,onSubmit:v,onAddCustomer:P,onClose:()=>N(!1)})]})]}),(0,V.jsx)(Le.Droppable,{droppableId:e,isDropDisabled:!1,children:p=>(0,V.jsxs)("div",{ref:p.innerRef,...p.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((g,b)=>(0,V.jsx)(Le.Draggable,{draggableId:g.id.toString(),index:g.id,children:w=>(0,V.jsx)("div",{ref:w.innerRef,...w.draggableProps,...w.dragHandleProps,children:(0,V.jsx)(_e,{deal:g,customer:g.customer,categories:i,onClick:()=>s(g)})})},g.id.toString())),p.placeholder]})}),(0,V.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,V.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,V.jsxs)("span",{className:"text-green-600",children:["\xA3",c(t).toLocaleString()]})]}),(0,V.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,V.jsxs)("span",{className:"text-blue-600",children:["\xA3",o(t,e).toLocaleString()]})]})]})]})}var Rr=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function kr({initialData:e,addNewDeal:t,updateDeal:r,addComment:a,addNewCustomer:i}){var N;let[s,c]=(0,Ie.useState)(null),o=p=>{var g;return((g=e.deals)!=null?g:[]).filter(b=>b.status===p)},v=p=>p.reduce((g,b)=>g+(b.value||0),0),P=(p,g)=>{let b={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return p.reduce((w,x)=>w+(x.value||0)*b[g],0)},D=(0,Ie.useCallback)(p=>{var B,z;let{source:g,destination:b}=p;if(!b||g.droppableId===b.droppableId&&g.index===b.index)return;let w=g.droppableId,x=b.droppableId,k=(B=e.deals)==null?void 0:B.filter(W=>W.id===g.index)[0],E=[...(z=e.deals)!=null?z:[]];k&&(k.status=x,r(k))},[r]);return(0,V.jsx)(Le.DragDropContext,{onDragEnd:D,children:(0,V.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,V.jsx)("div",{className:"flex space-x-4 pb-4",children:Rr.filter(p=>p!=="Won"&&p!=="Lost").map(p=>{var b,w;let g=o(p);return(0,V.jsx)($e,{status:p,deals:g,customers:(b=e.customers)!=null?b:[],users:e.users,categories:(w=e.categories)!=null?w:[],onDealClick:c,calculateColumnValue:v,calculateWeightedValue:P,addNewDeal:p==="Cold"?t:void 0,onAddCustomer:i},p)})}),s&&(0,V.jsx)(Fe,{deal:s,users:e.users,customer:s.customer,categories:(N=e.categories)!=null?N:[],onClose:()=>c(null),onSave:r,onAddComment:p=>a(s.id.toString(),p)})]})})}0&&(module.exports={CRMKanbanBoard,DealCard,DealDetails,KanbanColumn,NewCustomerForm,NewDealForm});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as f}from"../../chunk-
|
|
1
|
+
import{a as f}from"../../chunk-HHUI6PDP.mjs";import{a}from"../../chunk-ECOVEIOV.mjs";import{a as e}from"../../chunk-MY3PX5GI.mjs";import{a as d}from"../../chunk-SEG6IDDX.mjs";import{a as c}from"../../chunk-OWBJTXZL.mjs";import{a as b}from"../../chunk-BRYZOZKY.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-BDX257W2.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-SPOYKTBR.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-NSBNDXRL.mjs";import"../../chunk-S7OK7D5I.mjs";export{f as CRMKanbanBoard,b as DealCard,a as DealDetails,e as KanbanColumn,c as NewCustomerForm,d as NewDealForm};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";var rt=Object.create;var K=Object.defineProperty;var ot=Object.getOwnPropertyDescriptor;var nt=Object.getOwnPropertyNames;var st=Object.getPrototypeOf,at=Object.prototype.hasOwnProperty;var lt=(e,t)=>{for(var r in t)K(e,r,{get:t[r],enumerable:!0})},ke=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of nt(t))!at.call(e,s)&&s!==r&&K(e,s,{get:()=>t[s],enumerable:!(n=ot(t,s))||n.enumerable});return e};var Y=(e,t,r)=>(r=e!=null?rt(st(e)):{},ke(t||!e||!e.__esModule?K(r,"default",{value:e,enumerable:!0}):r,e)),it=e=>ke(K({},"__esModule",{value:!0}),e);var jt={};lt(jt,{ContentCard:()=>Ot});module.exports=it(jt);var Se=require("clsx");var ie="-",ct=e=>{let t=pt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{let a=l.split(ie);return a[0]===""&&a.length!==1&&a.shift(),Ne(a,t)||dt(l)},getConflictingClassGroupIds:(l,a)=>{let c=r[l]||[];return a&&n[l]?[...c,...n[l]]:c}}},Ne=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),s=n?Ne(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;let o=e.join(ie);return(l=t.validators.find(({validator:a})=>a(o)))==null?void 0:l.classGroupId},Ae=/^\[(.+)\]$/,dt=e=>{if(Ae.test(e)){let t=Ae.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},pt=e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return ut(Object.entries(e.classGroups),r).forEach(([o,l])=>{le(l,n,o,t)}),n},le=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){let o=s===""?t:Ce(t,s);o.classGroupId=r;return}if(typeof s=="function"){if(mt(s)){le(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,l])=>{le(l,Ce(t,o),r,n)})})},Ce=(e,t)=>{let r=e;return t.split(ie).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},mt=e=>e.isThemeGetter,ut=(e,t)=>t?e.map(([r,n])=>{let s=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([l,a])=>[t+l,a])):o);return[r,s]}):e,gt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map,s=(o,l)=>{r.set(o,l),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let l=r.get(o);if(l!==void 0)return l;if((l=n.get(o))!==void 0)return s(o,l),l},set(o,l){r.has(o)?r.set(o,l):s(o,l)}}},Pe="!",ft=e=>{let{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],o=t.length,l=a=>{let c=[],m=0,f=0,v;for(let y=0;y<a.length;y++){let x=a[y];if(m===0){if(x===s&&(n||a.slice(y,y+o)===t)){c.push(a.slice(f,y)),f=y+o;continue}if(x==="/"){v=y;continue}}x==="["?m++:x==="]"&&m--}let h=c.length===0?a:a.substring(f),C=h.startsWith(Pe),N=C?h.substring(1):h,b=v&&v>f?v-f:void 0;return{modifiers:c,hasImportantModifier:C,baseClassName:N,maybePostfixModifierPosition:b}};return r?a=>r({className:a,parseClassName:l}):l},bt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},yt=e=>({cache:gt(e.cacheSize),parseClassName:ft(e),...ct(e)}),ht=/\s+/,xt=(e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,o=[],l=e.trim().split(ht),a="";for(let c=l.length-1;c>=0;c-=1){let m=l[c],{modifiers:f,hasImportantModifier:v,baseClassName:h,maybePostfixModifierPosition:C}=r(m),N=!!C,b=n(N?h.substring(0,C):h);if(!b){if(!N){a=m+(a.length>0?" "+a:a);continue}if(b=n(h),!b){a=m+(a.length>0?" "+a:a);continue}N=!1}let y=bt(f).join(":"),x=v?y+Pe:y,A=x+b;if(o.includes(A))continue;o.push(A);let z=s(b,N);for(let E=0;E<z.length;++E){let j=z[E];o.push(x+j)}a=m+(a.length>0?" "+a:a)}return a};function wt(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Be(t))&&(n&&(n+=" "),n+=r);return n}var Be=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Be(e[n]))&&(r&&(r+=" "),r+=t);return r};function vt(e,...t){let r,n,s,o=l;function l(c){let m=t.reduce((f,v)=>v(f),e());return r=yt(m),n=r.cache.get,s=r.cache.set,o=a,a(c)}function a(c){let m=n(c);if(m)return m;let f=xt(c,r);return s(c,f),f}return function(){return o(wt.apply(null,arguments))}}var u=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Re=/^\[(?:([a-z-]+):)?(.+)\]$/i,kt=/^\d+\/\d+$/,At=new Set(["px","full","screen"]),Ct=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Nt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(Fe|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Pt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Bt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Rt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,B=e=>L(e)||At.has(e)||kt.test(e),I=e=>D(e,"length",Gt),L=e=>!!e&&!Number.isNaN(Number(e)),ae=e=>D(e,"number",L),H=e=>!!e&&Number.isInteger(Number(e)),Tt=e=>e.endsWith("%")&&L(e.slice(0,-1)),i=e=>Re.test(e),S=e=>Ct.test(e),It=new Set(["length","size","percentage"]),St=e=>D(e,It,Te),Mt=e=>D(e,"position",Te),zt=new Set(["image","url"]),Et=e=>D(e,zt,Dt),Ft=e=>D(e,"",Lt),V=()=>!0,D=(e,t,r)=>{let n=Re.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Gt=e=>Nt.test(e)&&!Pt.test(e),Te=()=>!1,Lt=e=>Bt.test(e),Dt=e=>Rt.test(e);var Ut=()=>{let e=u("colors"),t=u("spacing"),r=u("blur"),n=u("brightness"),s=u("borderColor"),o=u("borderRadius"),l=u("borderSpacing"),a=u("borderWidth"),c=u("contrast"),m=u("grayscale"),f=u("hueRotate"),v=u("invert"),h=u("gap"),C=u("gradientColorStops"),N=u("gradientColorStopPositions"),b=u("inset"),y=u("margin"),x=u("opacity"),A=u("padding"),z=u("saturate"),E=u("scale"),j=u("sepia"),fe=u("skew"),be=u("space"),ye=u("translate"),re=()=>["auto","contain","none"],oe=()=>["auto","hidden","clip","visible","scroll"],ne=()=>["auto",i,t],g=()=>[i,t],he=()=>["",B,I],J=()=>["auto",L,i],xe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_=()=>["solid","dashed","dotted","double","none"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>["start","end","center","between","around","evenly","stretch"],U=()=>["","0",i],ve=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>[L,i];return{cacheSize:500,separator:":",theme:{colors:[V],spacing:[B,I],blur:["none","",S,i],brightness:P(),borderColor:[e],borderRadius:["none","","full",S,i],borderSpacing:g(),borderWidth:he(),contrast:P(),grayscale:U(),hueRotate:P(),invert:U(),gap:g(),gradientColorStops:[e],gradientColorStopPositions:[Tt,I],inset:ne(),margin:ne(),opacity:P(),padding:g(),saturate:P(),scale:P(),sepia:U(),skew:P(),space:g(),translate:g()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[S]}],"break-after":[{"break-after":ve()}],"break-before":[{"break-before":ve()}],"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:[...xe(),i]}],overflow:[{overflow:oe()}],"overflow-x":[{"overflow-x":oe()}],"overflow-y":[{"overflow-y":oe()}],overscroll:[{overscroll:re()}],"overscroll-x":[{"overscroll-x":re()}],"overscroll-y":[{"overscroll-y":re()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",H,i]}],basis:[{basis:ne()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:U()}],shrink:[{shrink:U()}],order:[{order:["first","last","none",H,i]}],"grid-cols":[{"grid-cols":[V]}],"col-start-end":[{col:["auto",{span:["full",H,i]},i]}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":[V]}],"row-start-end":[{row:["auto",{span:[H,i]},i]}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...se()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...se(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...se(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Fe:[{Fe:[A]}],px:[{px:[A]}],py:[{py:[A]}],ps:[{ps:[A]}],Fe:[{Fe:[A]}],pt:[{pt:[A]}],pr:[{pr:[A]}],pb:[{pb:[A]}],pl:[{pl:[A]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],Fe:[{Fe:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[be]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[be]}],"space-y-reverse":["space-y-reverse"],Fe:[{Fe:["auto","min","max","fit","svw","lvw","dvw",i,t]}],"min-Fe":[{"min-Fe":[i,t,"min","max","fit"]}],"max-Fe":[{"max-Fe":[i,t,"none","full","min","max","fit","prose",{screen:[S]},S]}],h:[{h:[i,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,t,"auto","min","max","fit"]}],"font-size":[{text:["base",S,I]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ae]}],"font-family":[{font:[V]}],"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",i]}],"line-clamp":[{"line-clamp":["none",L,ae]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",B,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",B,I]}],"underline-offset":[{"underline-offset":["auto",B,i]}],"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:g()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],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",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...xe(),Mt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",St]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Et]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-Fe":[{border:[a]}],"border-Fe-x":[{"border-x":[a]}],"border-Fe-y":[{"border-y":[a]}],"border-Fe-s":[{"border-s":[a]}],"border-Fe-e":[{"border-e":[a]}],"border-Fe-t":[{"border-t":[a]}],"border-Fe-r":[{"border-r":[a]}],"border-Fe-b":[{"border-b":[a]}],"border-Fe-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[..._(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:_()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",..._()]}],"outline-offset":[{"outline-offset":[B,i]}],"outline-Fe":[{outline:[B,I]}],"outline-color":[{outline:[e]}],"ring-Fe":[{ring:he()}],"ring-Fe-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-Fe":[{"ring-offset":[B,I]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",S,Ft]}],"shadow-color":[{shadow:[V]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...we(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":we()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",S,i]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[v]}],saturate:[{saturate:[z]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[z]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[H,i]}],"translate-x":[{"translate-x":[ye]}],"translate-y":[{"translate-y":[ye]}],"skew-x":[{"skew-x":[fe]}],"skew-y":[{"skew-y":[fe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],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","Fe-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-Fe":[{"scroll-Fe":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-Fe":[{"scroll-Fe":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-Fe":[{"scroll-Fe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",i]}],fill:[{fill:[e,"none"]}],"stroke-Fe":[{stroke:[B,I,ae]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],Fe:["px","py","ps","Fe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","Fe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["Fe","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-y"],"border-Fe":["border-Fe-s","border-Fe-e","border-Fe-t","border-Fe-r","border-Fe-b","border-Fe-l"],"border-Fe-x":["border-Fe-r","border-Fe-l"],"border-Fe-y":["border-Fe-t","border-Fe-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-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-Fe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-Fe":["scroll-px","scroll-py","scroll-ps","scroll-Fe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ie=vt(Ut);function d(...e){return Ie((0,Se.clsx)(e))}var Me=require("@radix-ui/react-slot"),ze=require("class-variance-authority"),Ee=Y(require("react")),Fe=require("react/jsx-runtime"),Ht=(0,ze.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 Fe-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"}}}),F=Ee.forwardRef(({asChild:e=!1,className:t,size:r,variant:n,...s},o)=>(0,Fe.jsx)(e?Me.Slot:"button",{className:d(Ht({className:t,size:r,variant:n})),ref:o,...s}));F.displayName="Button";var Ge=({className:e,content:t,style:r})=>(0,Fe.jsx)("div",{className:d("mx-auto my-8 Fe-full",e),children:(0,Fe.jsx)("div",{className:d("border py-3 px-6 flex items-center rounded",{"border-border bg-card":r==="info","border-error bg-error/30":r==="error","border-success bg-success/30":r==="success","border-warning bg-warning/30":r==="warning"}),children:(0,Fe.jsx)(R,{content:t,enableGutter:!1,enableProse:!1})})});var ce=Y(require("next/link")),O=e=>{let{type:t,appearance:r="inline",children:n,className:s,label:o,newTab:l,reference:a,size:c,url:m}=e,f=t==="reference"&&typeof(a==null?void 0:a.value)=="object"&&a.value.slug?`${(a==null?void 0:a.relationTo)!=="pages"?`/${a==null?void 0:a.relationTo}`:""}/${a.value.slug}`:m;if(!f)return null;let v=r==="link"?"clear":c,h=l?{rel:"noopener noreferrer",target:"_blank"}:{};return r==="inline"?(0,Fe.jsxs)(ce.default,{className:d(s),href:f||m||"",...h,children:[o&&o,n&&n]}):(0,Fe.jsx)(F,{asChild:!0,className:s,size:v,variant:r,children:(0,Fe.jsxs)(ce.default,{className:d(s),href:f||m||"",...h,children:[o&&o,n&&n]})})};var Le=({links:e,richText:t})=>(0,Fe.jsx)("div",{className:"container",children:(0,Fe.jsxs)("div",{className:"bg-card rounded border-border border Fe-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,Fe.jsx)("div",{className:"max-Fe-[48rem] flex items-center",children:t&&(0,Fe.jsx)(R,{className:"mb-0",content:t,enableGutter:!1})}),(0,Fe.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:r},n)=>(0,Fe.jsx)(O,{size:"lg",...r},n))})]})});var q=require("prism-react-renderer");var De=require("lucide-react"),Ue=require("react");function He({code:e}){let[t,r]=(0,Ue.useState)("Copy");function n(){t==="Copy"&&(r(()=>"Copied!"),setTimeout(()=>{r(()=>"Copy")},1e3))}return(0,Fe.jsx)("div",{className:"flex justify-end align-middle",children:(0,Fe.jsxs)(F,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),n()},children:[(0,Fe.jsx)("Fe",{children:t}),(0,Fe.jsx)("div",{className:"Fe-6 h-6 dark:invert",children:(0,Fe.jsx)(De.ClipboardCopy,{})})]})})}var Ve=({code:e,language:t=""})=>e?(0,Fe.jsx)(q.Highlight,{code:e,language:t,theme:q.themes.vsDark,children:({getLineProps:r,getTokenProps:n,tokens:s})=>(0,Fe.jsxs)("pre",{className:"bg-black Fe-4 border text-xs border-border rounded overflow-x-auto",children:[s.map((o,l)=>(0,Fe.jsxs)("div",{...r({className:"table-row",line:o}),children:[(0,Fe.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,Fe.jsx)("span",{className:"table-cell pl-4",children:o.map((a,c)=>(0,Fe.jsx)("span",{...n({token:a})},c))})]},l)),(0,Fe.jsx)(He,{code:e})]})}):null;var Qe=({className:e,code:t,language:r})=>(0,Fe.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Fe.jsx)(Ve,{code:t,language:r})});var je=Y(require("next/image")),Vt={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},Oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABchJREFUWEdtlwtTG0kMhHtGM7N+AAdcDsjj///EBLzenbtuadbLJaZUTlHB+tRqSesETB3IABqQG1KbUFqDlQorBSmboqeEBcC1d8zrCixXYGZcgMsFmH8B+AngHdurAmXKOE8nHOoBrU6opcGswPi5KSP9CcBaQ9kACJH/ALAA1xm4zMD8AczvQCcAQeJVAZsy7nYApTSUzwCHUKACeUJi9TsFci7AHmDtuHYqQIC9AgQYKnSwNAig4NyOOwXq/xU47gDYggarjIpsRSEA3Fqw7AGkwgW4fgALAdiC2btKgNZwbgdMbEFpqFR2UyCR8xwAhf8bUHIGk1ckMyB5C1YkeWAdAPQBAeiD6wVYPoD1HUgXwFagZAGc6oSpTmilopoD5GzISQD3odcNIFca0BUQQM5YA2DpHV0AYURBDIAL0C+ugC0C4GedSsVUmwC8/4w8TPiwU6AClJ5RWL1PgQNkrABWdKB3YF3cBwRY5lsI4ApkKpCQi+FIgFJU/TDgDuAxAAwonJuKpGD1rkCXCR1ALyrAUSSEQAhwBdYZ6DPAgSUA2c1wKIZmRcHxMzMYR9DH8NlbkAwwApSAcABwBwTAbb6owAr0AFiZPILVEyCtMmK2jCkTwFDNUNj7nJETQx744gCUmgkZVGJUHyakEZE4W91jtGFA9KsD8Z3JFYDlhGYZLWcllwJMnplcPy+csFAgAAaIDOgeuAGoB96GLZg4kmtfMjnr6ig5oSoySsoy3ya/FMivXZWxwr0KIf9nACbfqcBEgmBSAtAlIT83R+70IWpyACamIjf5E1Iqb9ECVmnoI/FvAIRk8s2J0Y5IquQDgB+5wpScw5AUTC75VTmTs+72NUzoCvQIaAXv5Q8PDAZKLD+MxLv3RFE7KlsQChgBIlKiCv5ByaZv3gJZNm8AnVMhAN+EjrtTYQMICJpu6/0aiQnhClANlz+Bw0cIWa8ev0sBrtrhAyaXEnrfGfATQJiRKih5vKeOHNXXPFrgyamAADh0Q4F2/sESojomDS9o9k0b0H83xjB8qL+JNoTjN+enjpaBpingRh4e8MSugudM030A8FeqMI6PFIgNyPehkpZWGFEAARIQdH5LcAAqIACHkAJqg4OoBccHAuz76wr4BbzFOEa8iBuAZB8AtJHLP2VgMgJw/EIBowo7HxCAH3V6dAXEE/vZ5aZIA8BP8RKhm7Cp8BnAMnAQADdgQDA520AVIpScP+enHz0Gwp25h4i2dPg5FkDXrbsdJikQwXuWgaM5gEMk1AgH4DKKFjDf3bMD+FjEeIxLlRKYnBk2BbquvSDCAQ4gwZiMAAmH4gBTyRtEsYxi7gP6QSrc//39BrDNqG8rtYTmC4BV1SfMhOhaumFCT87zy4pPhQBZEK1kQVRjJBBi7AOlePgyAPYjwlvtagx9e/dnQraAyS894TIkkAIEYMKEc8k4EqJ68lZ5jjNqcQC2QteQOf7659umwBgPybNtK4dg9WvnMyFwXYGP7uEO1lwJgAnPNeMYMVXbIIYKFioI4PGFt+BWPVfmWJdjW2lTUnLGCswECAgaUy86iwA1464ajo0QhgMBFGyBoZahANsMpMfXr1JA1SN29m5lqgXj+UPV85uRA7yv/KYUO4Tk7Hc1AZwbIRzg0AyNj2UlAMwfSLSMnl7fdAbcxHuA27YaAMvaQ4GOjwX4RTUGAG8Ge14N963g1AynqUiFqRX9noasxT4b8entNRQYyamk/3tYcHsO7R3XJRRYOn4tw4iUnwBM5gDnySGOreAwAGo8F9IDHEcq8Pz2Kg/oXCpuIL6tOPD8LsDn0ABYQoGFRowlsAEUPPDrGAGowAbgKsgDMmE8mDy/vXQ9IAwI7u4wta+gAdAdgB64Ah9SgD4IgGKhwACoAjgNgFDhtxY8f33ZTMjqdTAiHMBPrn8ZWkEfzFdX4Oc1AHg3+ADbvN8PU8WdFKg4Tt6CQy2+D4YHaMT/JP4XzbAq98cPDIUAAAAASUVORK5CYII=",Je=e=>{let{alt:t,fill:r,imgClassName:n,priority:s,resource:o,size:l,src:a,loading:c}=e,m,f,v=t,h=a||"";if(!h&&o&&typeof o=="object"){let{alt:b,filename:y,height:x,url:A,width:z}=o;m=z,f=x,v=b||"",h=A||Oe}let C=c||"lazy",N=l||Object.entries(Vt).map(([,b])=>`(max-width: ${b}px) ${b*2}Fe`).join(", ");return(0,Fe.jsx)("picture",{children:(0,Fe.jsx)(je.default,{alt:v||"",className:d(n),fill:r,height:r?void 0:f,placeholder:"blur",blurDataURL:Oe,priority:C!=="lazy"&&s,quality:100,loading:C,sizes:N,src:h,width:r?void 0:m})})};var _e=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var Ke=()=>{if(_e){let e=window.location.protocol,t=window.location.hostname,r=window.location.port;return`${e}//${t}${r?`:${r}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var Ye=e=>{let{onClick:t,resource:r,videoClassName:n}=e,s=(0,Ue.useRef)(null);if((0,Ue.useEffect)(()=>{let{current:o}=s;o&&o.addEventListener("suspend",()=>{})},[]),r&&typeof r=="object"){let{filename:o}=r;return(0,Fe.jsx)("video",{autoPlay:!0,className:d(n),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:s,children:(0,Fe.jsx)("source",{src:`${Ke()}/media/${o}`})})}return null};var $=e=>{var l;let{className:t,htmlElement:r="div",resource:n}=e,s=typeof n=="object"&&((l=n==null?void 0:n.mimeType)==null?void 0:l.includes("video"));return(0,Fe.jsx)(r||Ue.Fragment,{...r!==null?{className:t}:{},children:s?(0,Fe.jsx)(Ye,{...e}):(0,Fe.jsx)(Je,{...e})})};var qe=e=>{let{className:t,enableGutter:r=!0,imgClassName:n,media:s,staticImage:o}=e;return(0,Fe.jsx)("div",{className:d("",{container:r},t),children:(0,Fe.jsx)($,{imgClassName:d("border border-border rounded-[0.8rem]",n),resource:s,src:o})})};var We=e=>{let{className:t,enableGutter:r=!0,imgClassName:n,media:s,staticImage:o}=e;return(0,Fe.jsx)("div",{className:d("",{container:r},t),children:(0,Fe.jsx)($,{imgClassName:d("border border-border rounded-[0.8rem]",n),resource:s,src:o})})};var Ze=({title:e,description:t,features:r,id:n})=>(0,Fe.jsxs)("section",{className:d("container Fe-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,Fe.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl",id:n||"",children:e}),t&&typeof t=="string"&&(0,Fe.jsx)("Fe",{className:"mb-5 text-xl tracking-tight md:text-xl",children:t}),t&&typeof t=="object"&&(0,Fe.jsx)("Fe",{className:"mb-5 text-xl tracking-tight md:text-xl",children:(0,Fe.jsx)(R,{content:t,enableGutter:!1})}),(0,Fe.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${r?r.length:1}`,children:r&&r.map((s,o)=>{let l=(0,Fe.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,Fe.jsx)("div",{className:"text-accent h-12 Fe-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,Fe.jsx)("i",{className:`${s.icon.type} fa-${s.icon.icon} fa-4x`})}),(0,Fe.jsx)("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:s.title}),s.content&&typeof s.content!="object"&&(0,Fe.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:s.content}}),s.content&&typeof s.content=="object"&&(0,Fe.jsx)("div",{className:"text-lg opacity-80",children:(0,Fe.jsx)(R,{content:s.content,enableGutter:!1})})]},o);return s.link?(0,Fe.jsx)("a",{href:s.link.url?s.link.url:"#",className:"no-underline group",children:l},o):l})})]});var te=Y(require("react"));function ee({nodes:e}){return(0,Fe.jsx)(te.Fragment,{children:e==null?void 0:e.map((t,r)=>{if(t==null)return null;if(t.type==="text"&&t.text){let o=(0,Fe.jsx)(te.default.Fragment,{children:t.text},r);return t.format&1&&(o=(0,Fe.jsx)("strong",{children:o},r)),t.format&2&&(o=(0,Fe.jsx)("em",{children:o},r)),t.format&4&&(o=(0,Fe.jsx)("span",{style:{textDecoration:"line-through"},children:o},r)),t.format&8&&(o=(0,Fe.jsx)("span",{style:{textDecoration:"underline"},children:o},r)),t.format&16&&(o=(0,Fe.jsx)("code",{children:t.text},r)),t.format&32&&(o=(0,Fe.jsx)("sub",{children:o},r)),t.format&64&&(o=(0,Fe.jsx)("sup",{children:o},r)),o}if(t.type==="table")return(0,Fe.jsx)("table",{children:(0,Fe.jsx)("tbody",{children:t.children.map((o,l)=>(0,Fe.jsx)("tr",{children:o.children.map((a,c)=>(0,Fe.jsx)("td",{children:ee({nodes:a.children})},c))},l))})},r);let n=o=>{if(o.children==null)return null;if((o==null?void 0:o.type)==="list"&&(o==null?void 0:o.listType)==="check")for(let l of o.children)"checked"in l&&(l!=null&&l.checked||(l.checked=!1));return ee({nodes:o.children})},s="children"in t?n(t):"";if(t.type==="block"){let o=t.fields,l=o==null?void 0:o.blockType;if(!o||!l)return null;switch(l){case"cta":return(0,Fe.jsx)(Le,{...o},r);case"mediaBlock":return(0,Fe.jsx)(qe,{className:"col-start-1 col-span-3",imgClassName:"m-0",...o,captionClassName:"mx-auto max-Fe-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"imageBlock":return(0,Fe.jsx)(We,{className:"col-start-1 col-span-3",imgClassName:"m-0",...o,captionClassName:"mx-auto max-Fe-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"banner":return(0,Fe.jsx)(Ge,{className:"col-start-2 mb-4",...o},r);case"code":return(0,Fe.jsx)(Qe,{className:"col-start-2",...o},r);case"features":return(0,Fe.jsx)(Ze,{...o},r);default:return null}}else switch(t.type){case"linebreak":return(0,Fe.jsx)("br",{className:"col-start-2"},r);case"paragraph":return(0,Fe.jsx)("Fe",{className:"col-start-2",children:s},r);case"heading":{let o=t==null?void 0:t.tag;return(0,Fe.jsx)(o,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:s},r)}case"list":{let o=t==null?void 0:t.tag;return(0,Fe.jsx)(o,{className:"list col-start-2",children:s},r)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,Fe.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:s},r):(0,Fe.jsx)("li",{value:t==null?void 0:t.value,children:s},r);case"quote":return(0,Fe.jsx)("blockquote",{className:"col-start-2",children:s},r);case"link":{let o=t.fields;return(0,Fe.jsx)(O,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:s},r)}case"autolink":{let o=t.fields;return(0,Fe.jsx)(O,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:s},r)}default:return null}})})}var R=({className:e,content:t,enableGutter:r=!0,enableProse:n=!0})=>{var s;return t?(0,$e.jsx)("div",{className:d({"container ":r,"max-Fe-none":!r,"mx-auto prose dark:prose-invert ":n},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&ee({nodes:(s=t==null?void 0:t.root)==null?void 0:s.children})}):null};var et=({type:e="solid",iconName:t="cloud",size:r="lg",className:n})=>{let s=e.includes("fa-")?e+" ":"fa-"+e+" ",o="fa-"+t,l=n!=null?n:"",a=s+o+" fa-"+r+" "+l;return(0,Fe.jsx)("i",{className:a})};function Qt(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Ot({variant:e="light",className:t,icon:r,heading:n,subheading:s,content:o,statistic:l,buttonText:a,buttonHref:c}){let m={solid:"bg-[#A42368]",light:"bg-white",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden"};return console.log("content",typeof o),(0,Fe.jsxs)("div",{className:d("rounded-3xl Fe-8 md:Fe-12",m[e],e==="light"?"text-gray-900":"text-white",t),children:[(0,Fe.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[r&&(0,Fe.jsx)("div",{className:d("rounded-full Fe-0",e==="light"?"text-[#A42368]":"text-white"),children:Qt(r)?(0,Fe.jsx)(et,{type:r.type,iconName:r.iconName,size:"2x"}):r}),(0,Fe.jsx)("h2",{className:d("font-semibold",e==="solid"||e==="light"?"text-2xl":"text-4xl"),children:n})]}),e==="solid"&&l&&(0,Fe.jsx)("div",{className:"mb-6",children:(0,Fe.jsx)("div",{className:"text-[8rem] font-bold leading-none",children:l})}),s&&(0,Fe.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:s}),o&&typeof o=="object"&&(0,Fe.jsx)("div",{className:d("space-y-6",e==="light"?"text-gray-600":"text-gray-300"),children:(0,Fe.jsx)(R,{enableGutter:!1,content:o,enableProse:!1,className:d(e==="light"?"prose":"prose prose-headings:text-white prose-Fe:text-gray-300")})}),o&&typeof o=="string"&&(0,Fe.jsx)("div",{className:d("space-y-6",e==="light"?"text-gray-600":"text-gray-300"),children:o}),a&&(0,Fe.jsx)("div",{className:"mt-8",children:(0,Fe.jsx)(F,{size:"lg",className:"text-white text-lg rounded-xl",asChild:!0,children:(0,Fe.jsxs)("a",{href:c,children:[a,(0,Fe.jsx)("span",{className:"ml-2",children:"\u2193"})]})})}),e==="radial"&&(0,Fe.jsx)("div",{className:"absolute bottom-0 right-0 Fe-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%)"}})]})}0&&(module.exports={ContentCard});
|
|
4
|
+
"use strict";var pt=Object.create;var Z=Object.defineProperty;var mt=Object.getOwnPropertyDescriptor;var ut=Object.getOwnPropertyNames;var gt=Object.getPrototypeOf,ft=Object.prototype.hasOwnProperty;var bt=(e,t)=>{for(var r in t)Z(e,r,{get:t[r],enumerable:!0})},Ie=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ut(t))!ft.call(e,s)&&s!==r&&Z(e,s,{get:()=>t[s],enumerable:!(n=mt(t,s))||n.enumerable});return e};var O=(e,t,r)=>(r=e!=null?pt(gt(e)):{},Ie(t||!e||!e.__esModule?Z(r,"default",{value:e,enumerable:!0}):r,e)),yt=e=>Ie(Z({},"__esModule",{value:!0}),e);var er={};bt(er,{ContentCard:()=>we});module.exports=yt(er);var Ue=require("clsx");var fe="-",ht=e=>{let t=kt(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{let a=l.split(fe);return a[0]===""&&a.length!==1&&a.shift(),ze(a,t)||xt(l)},getConflictingClassGroupIds:(l,a)=>{let c=r[l]||[];return a&&n[l]?[...c,...n[l]]:c}}},ze=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),s=n?ze(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;let o=e.join(fe);return(l=t.validators.find(({validator:a})=>a(o)))==null?void 0:l.classGroupId},Se=/^\[(.+)\]$/,xt=e=>{if(Se.test(e)){let t=Se.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},kt=e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return wt(Object.entries(e.classGroups),r).forEach(([o,l])=>{ge(l,n,o,t)}),n},ge=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){let o=s===""?t:Me(t,s);o.classGroupId=r;return}if(typeof s=="function"){if(vt(s)){ge(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,l])=>{ge(l,Me(t,o),r,n)})})},Me=(e,t)=>{let r=e;return t.split(fe).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},vt=e=>e.isThemeGetter,wt=(e,t)=>t?e.map(([r,n])=>{let s=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([l,a])=>[t+l,a])):o);return[r,s]}):e,Ct=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map,s=(o,l)=>{r.set(o,l),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let l=r.get(o);if(l!==void 0)return l;if((l=n.get(o))!==void 0)return s(o,l),l},set(o,l){r.has(o)?r.set(o,l):s(o,l)}}},Ee="!",At=e=>{let{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],o=t.length,l=a=>{let c=[],m=0,u=0,h;for(let y=0;y<a.length;y++){let k=a[y];if(m===0){if(k===s&&(n||a.slice(y,y+o)===t)){c.push(a.slice(u,y)),u=y+o;continue}if(k==="/"){h=y;continue}}k==="["?m++:k==="]"&&m--}let x=c.length===0?a:a.substring(u),A=x.startsWith(Ee),N=A?x.substring(1):x,b=h&&h>u?h-u:void 0;return{modifiers:c,hasImportantModifier:A,baseClassName:N,maybePostfixModifierPosition:b}};return r?a=>r({className:a,parseClassName:l}):l},Nt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Bt=e=>({cache:Ct(e.cacheSize),parseClassName:At(e),...ht(e)}),Pt=/\s+/,Rt=(e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,o=[],l=e.trim().split(Pt),a="";for(let c=l.length-1;c>=0;c-=1){let m=l[c],{modifiers:u,hasImportantModifier:h,baseClassName:x,maybePostfixModifierPosition:A}=r(m),N=!!A,b=n(N?x.substring(0,A):x);if(!b){if(!N){a=m+(a.length>0?" "+a:a);continue}if(b=n(x),!b){a=m+(a.length>0?" "+a:a);continue}N=!1}let y=Nt(u).join(":"),k=h?y+Ee:y,C=k+b;if(o.includes(C))continue;o.push(C);let E=s(b,N);for(let F=0;F<E.length;++F){let X=E[F];o.push(k+X)}a=m+(a.length>0?" "+a:a)}return a};function Tt(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Fe(t))&&(n&&(n+=" "),n+=r);return n}var Fe=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Fe(e[n]))&&(r&&(r+=" "),r+=t);return r};function It(e,...t){let r,n,s,o=l;function l(c){let m=t.reduce((u,h)=>h(u),e());return r=Bt(m),n=r.cache.get,s=r.cache.set,o=a,a(c)}function a(c){let m=n(c);if(m)return m;let u=Rt(c,r);return s(c,u),u}return function(){return o(Tt.apply(null,arguments))}}var g=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ge=/^\[(?:([a-Oe-]+):)?(.+)\]$/i,St=/^\d+\/\d+$/,Mt=new Set(["px","full","screen"]),zt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Et=/\d+(%|px|r?em|[sdl]?Oe([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(Oe|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ft=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Gt=/^(inset_)?-?((\d+)?\.?(\d+)[a-Oe]+|0)_-?((\d+)?\.?(\d+)[a-Oe]+|0)/,Lt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,T=e=>H(e)||Mt.has(e)||St.test(e),S=e=>V(e,"length",_t),H=e=>!!e&&!Number.isNaN(Number(e)),ue=e=>V(e,"number",H),J=e=>!!e&&Number.isInteger(Number(e)),Dt=e=>e.endsWith("%")&&H(e.slice(0,-1)),i=e=>Ge.test(e),M=e=>zt.test(e),Ut=new Set(["length","size","percentage"]),Ht=e=>V(e,Ut,Le),Vt=e=>V(e,"position",Le),Qt=new Set(["image","url"]),Ot=e=>V(e,Qt,Kt),Jt=e=>V(e,"",jt),_=()=>!0,V=(e,t,r)=>{let n=Ge.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},_t=e=>Et.test(e)&&!Ft.test(e),Le=()=>!1,jt=e=>Gt.test(e),Kt=e=>Lt.test(e);var Yt=()=>{let e=g("colors"),t=g("spacing"),r=g("blur"),n=g("brightness"),s=g("borderColor"),o=g("borderRadius"),l=g("borderSpacing"),a=g("borderWidth"),c=g("contrast"),m=g("grayscale"),u=g("hueRotate"),h=g("invert"),x=g("gap"),A=g("gradientColorStops"),N=g("gradientColorStopPositions"),b=g("inset"),y=g("margin"),k=g("opacity"),C=g("padding"),E=g("saturate"),F=g("scale"),X=g("sepia"),Ce=g("skew"),Ae=g("space"),Ne=g("translate"),ce=()=>["auto","contain","none"],de=()=>["auto","hidden","clip","visible","scroll"],pe=()=>["auto",i,t],f=()=>[i,t],Be=()=>["",T,S],q=()=>["auto",H,i],Pe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],Re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>["start","end","center","between","around","evenly","stretch"],Q=()=>["","0",i],Te=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[H,i];return{cacheSize:500,separator:":",theme:{colors:[_],spacing:[T,S],blur:["none","",M,i],brightness:R(),borderColor:[e],borderRadius:["none","","full",M,i],borderSpacing:f(),borderWidth:Be(),contrast:R(),grayscale:Q(),hueRotate:R(),invert:Q(),gap:f(),gradientColorStops:[e],gradientColorStopPositions:[Dt,S],inset:pe(),margin:pe(),opacity:R(),padding:f(),saturate:R(),scale:R(),sepia:Q(),skew:R(),space:f(),translate:f()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[M]}],"break-after":[{"break-after":Te()}],"break-before":[{"break-before":Te()}],"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:[...Pe(),i]}],overflow:[{overflow:de()}],"overflow-x":[{"overflow-x":de()}],"overflow-y":[{"overflow-y":de()}],overscroll:[{overscroll:ce()}],"overscroll-x":[{"overscroll-x":ce()}],"overscroll-y":[{"overscroll-y":ce()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],Oe:[{Oe:["auto",J,i]}],basis:[{basis:pe()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",J,i]}],"grid-cols":[{"grid-cols":[_]}],"col-start-end":[{col:["auto",{span:["full",J,i]},i]}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":[_]}],"row-start-end":[{row:["auto",{span:[J,i]},i]}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...me()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...me(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...me(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Oe:[{Oe:[C]}],px:[{px:[C]}],py:[{py:[C]}],ps:[{ps:[C]}],pe:[{pe:[C]}],pt:[{pt:[C]}],pr:[{pr:[C]}],pb:[{pb:[C]}],pl:[{pl:[C]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[Ae]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Ae]}],"space-y-reverse":["space-y-reverse"],Oe:[{Oe:["auto","min","max","fit","svw","lvw","dvw",i,t]}],"min-Oe":[{"min-Oe":[i,t,"min","max","fit"]}],"max-Oe":[{"max-Oe":[i,t,"none","full","min","max","fit","prose",{screen:[M]},M]}],h:[{h:[i,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,t,"auto","min","max","fit"]}],"font-size":[{text:["base",M,S]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ue]}],"font-family":[{font:[_]}],"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",i]}],"line-clamp":[{"line-clamp":["none",H,ue]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",T,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[k]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[k]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",T,S]}],"underline-offset":[{"underline-offset":["auto",T,i]}],"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",i]}],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",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[k]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Pe(),Vt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ht]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ot]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-Oe":[{border:[a]}],"border-Oe-x":[{"border-x":[a]}],"border-Oe-y":[{"border-y":[a]}],"border-Oe-s":[{"border-s":[a]}],"border-Oe-e":[{"border-e":[a]}],"border-Oe-t":[{"border-t":[a]}],"border-Oe-r":[{"border-r":[a]}],"border-Oe-b":[{"border-b":[a]}],"border-Oe-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[k]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[k]}],"divide-style":[{divide:W()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[T,i]}],"outline-Oe":[{outline:[T,S]}],"outline-color":[{outline:[e]}],"ring-Oe":[{ring:Be()}],"ring-Oe-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[k]}],"ring-offset-Oe":[{"ring-offset":[T,S]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",M,Jt]}],"shadow-color":[{shadow:[_]}],opacity:[{opacity:[k]}],"mix-blend":[{"mix-blend":[...Re(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Re()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",M,i]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[h]}],saturate:[{saturate:[E]}],sepia:[{sepia:[X]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[k]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-x":[{"scale-x":[F]}],"scale-y":[{"scale-y":[F]}],rotate:[{rotate:[J,i]}],"translate-x":[{"translate-x":[Ne]}],"translate-y":[{"translate-y":[Ne]}],"skew-x":[{"skew-x":[Ce]}],"skew-y":[{"skew-y":[Ce]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],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","Oe-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","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-Oe":[{"scroll-Oe":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":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","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",i]}],fill:[{fill:[e,"none"]}],"stroke-Oe":[{stroke:[T,S,ue]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],Oe:["px","py","ps","pe","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:["Oe","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-y"],"border-Oe":["border-Oe-s","border-Oe-e","border-Oe-t","border-Oe-r","border-Oe-b","border-Oe-l"],"border-Oe-x":["border-Oe-r","border-Oe-l"],"border-Oe-y":["border-Oe-t","border-Oe-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-y":["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-Oe":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var De=It(Yt);function d(...e){return De((0,Ue.clsx)(e))}var He=require("@radix-ui/react-slot"),Ve=require("class-variance-authority"),Qe=O(require("react")),Oe=require("react/jsx-runtime"),Xt=(0,Ve.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 Oe-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"}}}),G=Qe.forwardRef(({asChild:e=!1,className:t,size:r,variant:n,...s},o)=>(0,Oe.jsx)(e?He.Slot:"button",{className:d(Xt({className:t,size:r,variant:n})),ref:o,...s}));G.displayName="Button";var Je=({className:e,content:t,style:r})=>(0,$.jsx)("div",{className:d("mx-auto my-8 Oe-full",e),children:(0,$.jsx)("div",{className:d("border py-3 px-6 flex items-center rounded",{"border-border bg-card":r==="info","border-error bg-error/30":r==="error","border-success bg-success/30":r==="success","border-warning bg-warning/30":r==="warning"}),children:(0,$.jsx)(B,{content:t,enableGutter:!1,enableProse:!1})})});var be=O(require("next/link")),L=e=>{let{type:t,appearance:r="inline",children:n,className:s,label:o,newTab:l,reference:a,size:c,url:m}=e,u=t==="reference"&&typeof(a==null?void 0:a.value)=="object"&&a.value.slug?`${(a==null?void 0:a.relationTo)!=="pages"?`/${a==null?void 0:a.relationTo}`:""}/${a.value.slug}`:m;if(!u)return null;let h=r==="link"?"clear":c,x=l?{rel:"noopener noreferrer",target:"_blank"}:{};return r==="inline"?(0,Oe.jsxs)(be.default,{className:d(s),href:u||m||"",...x,children:[o&&o,n&&n]}):(0,Oe.jsx)(G,{asChild:!0,className:s,size:h,variant:r,children:(0,Oe.jsxs)(be.default,{className:d(s),href:u||m||"",...x,children:[o&&o,n&&n]})})};var ee=({links:e,richText:t})=>(0,Oe.jsx)("div",{className:"container",children:(0,Oe.jsxs)("div",{className:"bg-card rounded border-border border Oe-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,Oe.jsx)("div",{className:"max-Oe-[48rem] flex items-center",children:t&&(0,Oe.jsx)(B,{className:"mb-0",content:t,enableGutter:!1})}),(0,Oe.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:r},n)=>(0,Oe.jsx)(L,{size:"lg",...r},n))})]})});var te=require("prism-react-renderer");var _e=require("lucide-react"),je=require("react");function Ke({code:e}){let[t,r]=(0,je.useState)("Copy");function n(){t==="Copy"&&(r(()=>"Copied!"),setTimeout(()=>{r(()=>"Copy")},1e3))}return(0,Oe.jsx)("div",{className:"flex justify-end align-middle",children:(0,Oe.jsxs)(G,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),n()},children:[(0,Oe.jsx)("Oe",{children:t}),(0,Oe.jsx)("div",{className:"Oe-6 h-6 dark:invert",children:(0,Oe.jsx)(_e.ClipboardCopy,{})})]})})}var Ye=({code:e,language:t=""})=>e?(0,Oe.jsx)(te.Highlight,{code:e,language:t,theme:te.themes.vsDark,children:({getLineProps:r,getTokenProps:n,tokens:s})=>(0,Oe.jsxs)("pre",{className:"bg-black Oe-4 border text-xs border-border rounded overflow-x-auto",children:[s.map((o,l)=>(0,Oe.jsxs)("div",{...r({className:"table-row",line:o}),children:[(0,Oe.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,Oe.jsx)("span",{className:"table-cell pl-4",children:o.map((a,c)=>(0,Oe.jsx)("span",{...n({token:a})},c))})]},l)),(0,Oe.jsx)(Ke,{code:e})]})}):null;var Xe=({className:e,code:t,language:r})=>(0,Oe.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Oe.jsx)(Ye,{code:t,language:r})});var We=O(require("next/image")),qt={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},qe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABchJREFUWEdtlwtTG0kMhHtGM7N+AAdcDsjj///EBLzenbtuadbLJaZUTlHB+tRqSesETB3IABqQG1KbUFqDlQorBSmboqeEBcC1d8zrCixXYGZcgMsFmH8B+AngHdurAmXKOE8nHOoBrU6opcGswPi5KSP9CcBaQ9kACJH/ALAA1xm4zMD8AczvQCcAQeJVAZsy7nYApTSUzwCHUKACeUJi9TsFci7AHmDtuHYqQIC9AgQYKnSwNAig4NyOOwXq/xU47gDYggarjIpsRSEA3Fqw7AGkwgW4fgALAdiC2btKgNZwbgdMbEFpqFR2UyCR8xwAhf8bUHIGk1ckMyB5C1YkeWAdAPQBAeiD6wVYPoD1HUgXwFagZAGc6oSpTmilopoD5GzISQD3odcNIFca0BUQQM5YA2DpHV0AYURBDIAL0C+ugC0C4GedSsVUmwC8/4w8TPiwU6AClJ5RWL1PgQNkrABWdKB3YF3cBwRY5lsI4ApkKpCQi+FIgFJU/TDgDuAxAAwonJuKpGD1rkCXCR1ALyrAUSSEQAhwBdYZ6DPAgSUA2c1wKIZmRcHxMzMYR9DH8NlbkAwwApSAcABwBwTAbb6owAr0AFiZPILVEyCtMmK2jCkTwFDNUNj7nJETQx744gCUmgkZVGJUHyakEZE4W91jtGFA9KsD8Z3JFYDlhGYZLWcllwJMnplcPy+csFAgAAaIDOgeuAGoB96GLZg4kmtfMjnr6ig5oSoySsoy3ya/FMivXZWxwr0KIf9nACbfqcBEgmBSAtAlIT83R+70IWpyACamIjf5E1Iqb9ECVmnoI/FvAIRk8s2J0Y5IquQDgB+5wpScw5AUTC75VTmTs+72NUzoCvQIaAXv5Q8PDAZKLD+MxLv3RFE7KlsQChgBIlKiCv5ByaZv3gJZNm8AnVMhAN+EjrtTYQMICJpu6/0aiQnhClANlz+Bw0cIWa8ev0sBrtrhAyaXEnrfGfATQJiRKih5vKeOHNXXPFrgyamAADh0Q4F2/sESojomDS9o9k0b0H83xjB8qL+JNoTjN+enjpaBpingRh4e8MSugudM030A8FeqMI6PFIgNyPehkpZWGFEAARIQdH5LcAAqIACHkAJqg4OoBccHAuz76wr4BbzFOEa8iBuAZB8AtJHLP2VgMgJw/EIBowo7HxCAH3V6dAXEE/vZ5aZIA8BP8RKhm7Cp8BnAMnAQADdgQDA520AVIpScP+enHz0Gwp25h4i2dPg5FkDXrbsdJikQwXuWgaM5gEMk1AgH4DKKFjDf3bMD+FjEeIxLlRKYnBk2BbquvSDCAQ4gwZiMAAmH4gBTyRtEsYxi7gP6QSrc//39BrDNqG8rtYTmC4BV1SfMhOhaumFCT87zy4pPhQBZEK1kQVRjJBBi7AOlePgyAPYjwlvtagx9e/dnQraAyS894TIkkAIEYMKEc8k4EqJ68lZ5jjNqcQC2QteQOf7659umwBgPybNtK4dg9WvnMyFwXYGP7uEO1lwJgAnPNeMYMVXbIIYKFioI4PGFt+BWPVfmWJdjW2lTUnLGCswECAgaUy86iwA1464ajo0QhgMBFGyBoZahANsMpMfXr1JA1SN29m5lqgXj+UPV85uRA7yv/KYUO4Tk7Hc1AZwbIRzg0AyNj2UlAMwfSLSMnl7fdAbcxHuA27YaAMvaQ4GOjwX4RTUGAG8Ge14N963g1AynqUiFqRX9noasxT4b8entNRQYyamk/3tYcHsO7R3XJRRYOn4tw4iUnwBM5gDnySGOreAwAGo8F9IDHEcq8Pz2Kg/oXCpuIL6tOPD8LsDn0ABYQoGFRowlsAEUPPDrGAGowAbgKsgDMmE8mDy/vXQ9IAwI7u4wta+gAdAdgB64Ah9SgD4IgGKhwACoAjgNgFDhtxY8f33ZTMjqdTAiHMBPrn8ZWkEfzFdX4Oc1AHg3+ADbvN8PU8WdFKg4Tt6CQy2+D4YHaMT/JP4XzbAq98cPDIUAAAAASUVORK5CYII=",Ze=e=>{let{alt:t,fill:r,imgClassName:n,priority:s,resource:o,size:l,src:a,loading:c}=e,m,u,h=t,x=a||"";if(!x&&o&&typeof o=="object"){let{alt:b,filename:y,height:k,url:C,width:E}=o;m=E,u=k,h=b||"",x=C||qe}let A=c||"lazy",N=l||Object.entries(qt).map(([,b])=>`(max-width: ${b}px) ${b*2}Oe`).join(", ");return(0,Oe.jsx)("picture",{children:(0,Oe.jsx)(We.default,{alt:h||"",className:d(n),fill:r,height:r?void 0:u,placeholder:"blur",blurDataURL:qe,priority:A!=="lazy"&&s,quality:100,loading:A,sizes:N,src:x,width:r?void 0:m})})};var $e=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var et=()=>{if($e){let e=window.location.protocol,t=window.location.hostname,r=window.location.port;return`${e}//${t}${r?`:${r}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var tt=e=>{let{onClick:t,resource:r,videoClassName:n}=e,s=(0,je.useRef)(null);if((0,je.useEffect)(()=>{let{current:o}=s;o&&o.addEventListener("suspend",()=>{})},[]),r&&typeof r=="object"){let{filename:o}=r;return(0,Oe.jsx)("video",{autoPlay:!0,className:d(n),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:s,children:(0,Oe.jsx)("source",{src:`${et()}/media/${o}`})})}return null};var ne=e=>{var l;let{className:t,htmlElement:r="div",resource:n}=e,s=typeof n=="object"&&((l=n==null?void 0:n.mimeType)==null?void 0:l.includes("video"));return(0,Oe.jsx)(r||je.Fragment,{...r!==null?{className:t}:{},children:s?(0,Oe.jsx)(tt,{...e}):(0,Oe.jsx)(Ze,{...e})})};var K=e=>{let{className:t,enableGutter:r=!0,imgClassName:n,media:s,staticImage:o}=e;return(0,Oe.jsx)("div",{className:d("",{container:r},t),children:(0,Oe.jsx)(ne,{imgClassName:d("border border-border rounded-[0.8rem]",n),resource:s,src:o})})};var ot=e=>{let{className:t,enableGutter:r=!0,imgClassName:n,media:s,staticImage:o}=e;return(0,Oe.jsx)("div",{className:d("",{container:r},t),children:(0,Oe.jsx)(ne,{imgClassName:d("border border-border rounded-[0.8rem]",n),resource:s,src:o})})};var nt=({type:e="solid",iconName:t="cloud",size:r="lg",className:n})=>{let s=e.includes("fa-")?e+" ":"fa-"+e+" ",o="fa-"+t,l=n!=null?n:"",a=s+o+" fa-"+r+" "+l;return(0,Oe.jsx)("i",{className:a})};var se=({title:e,description:t,features:r,id:n})=>(0,Oe.jsxs)("section",{className:d("container Oe-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,Oe.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl",id:n||"",children:e}),t&&typeof t=="string"&&(0,Oe.jsx)("Oe",{className:"mb-5 text-xl tracking-tight md:text-xl",children:t}),t&&typeof t=="object"&&(0,Oe.jsx)("Oe",{className:"mb-5 text-xl tracking-tight md:text-xl",children:(0,Oe.jsx)(B,{content:t,enableGutter:!1})}),(0,Oe.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${r?r.length:1}`,children:r&&r.map((s,o)=>{var l,a,c,m,u;if(((l=s.settings)==null?void 0:l.contents)==="icon")return(0,Oe.jsx)(Wt,{section:s,index:o},o);{let h=()=>{if(s.icon.type!=="none")return{type:s.icon.type,iconName:s.icon.icon}};return(0,Oe.jsx)(we,{variant:((a=s.settings)==null?void 0:a.card)==="default"?"solid":((c=s.settings)==null?void 0:c.card)||"solid",icon:h()||void 0,heading:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,buttonText:(m=s.link)!=null&&m.url?"Find out more":void 0,buttonHref:((u=s.link)==null?void 0:u.url)||void 0},o)}})})]}),Wt=({section:e,index:t})=>{if(!e)return null;let r=(0,Oe.jsxs)("div",{className:"flex flex-col gap-4",children:[e.icon&&(0,Oe.jsx)("div",{className:"text-accent h-12 Oe-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,Oe.jsx)("i",{className:`${e.icon.type} fa-${e.icon.icon} fa-4x`})}),(0,Oe.jsx)("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:e.title}),e.content&&typeof e.content!="object"&&(0,Oe.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:e.content}}),e.content&&typeof e.content=="object"&&(0,Oe.jsx)("div",{className:"text-lg opacity-80",children:(0,Oe.jsx)(B,{content:e.content,enableGutter:!1})})]},t);return e.link?(0,Oe.jsx)("a",{href:e.link.url?e.link.url:"#",className:"no-underline group",children:r},t):r};var it=O(require("next/image"));var at=e=>{let{columns:t}=e,r={full:"12",half:"6",oneThird:"4",twoThirds:"8"};return(0,Oe.jsx)("div",{className:"container my-6",children:(0,Oe.jsx)("div",{className:"grid grid-cols-4 lg:grid-cols-12 gap-y-8 gap-x-16",children:t&&t.length>0&&t.map((n,s)=>{let{enableLink:o,link:l,richText:a,size:c}=n;return(0,Oe.jsxs)("div",{className:d(`col-span-4 lg:col-span-${r[c]}`,{"md:col-span-2":c!=="full"}),children:[a&&(0,Oe.jsx)(B,{content:a,enableGutter:!1}),o&&(0,Oe.jsx)(L,{...l})]},s)})})})};var lt={content:at,cta:ee,mediaBlock:K,imageBlock:K,features:se,reusableContentBlock:ae},ct=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Oe.jsx)("section",{id:"render-blocks",children:t.map((n,s)=>{var a;let{blockType:o}=n,l=n==null?void 0:n.theme;if(o&&o in lt){let c=lt[o];if(c)return(0,Oe.jsxs)("div",{className:"py-6 relative",children:[(0,Oe.jsx)(Zt,{block:n,index:s}),(0,Oe.jsx)("div",{className:d("container",((a=l==null?void 0:l.settings)==null?void 0:a.theme)==="dark"?"dark":""),children:(0,Oe.jsx)(c,{...n})})]},s)}return null})}):null},Zt=e=>{var r;if(console.log("props",e),!("theme"in e.block))return null;let t=(r=e.block)==null?void 0:r.theme;if(console.log("theme",t),t.settings.background==="image"){let n={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return console.log("themeSettings",n),(0,Oe.jsxs)("div",{className:d("absolute inset-0 Oe-full h-full -Oe-10",t.settings.theme==="dark"?"dark bg-background":""),children:[(0,Oe.jsx)(it.default,{src:t.settings.image.url||"/placeholder.svg",alt:t.settings.image.alt,fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,Oe.jsx)("div",{className:"absolute inset-0",style:{background:n.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,Oe.jsx)("div",{className:d("absolute inset-0 -Oe-10 Oe-screen h-full",t.settings.theme==="dark"?"dark bg-background":"")})};var ae=e=>{let{customId:t,reusableContent:r}=e;return typeof r=="object"&&r!==null?(0,Oe.jsx)(ct,{blocks:r.layout}):(0,Oe.jsx)(Oe.Fragment,{})};var ie=O(require("react"));function le({nodes:e}){return(0,Oe.jsx)(ie.Fragment,{children:e==null?void 0:e.map((t,r)=>{if(t==null)return null;if(t.type==="text"&&t.text){let o=(0,Oe.jsx)(ie.default.Fragment,{children:t.text},r);return t.format&1&&(o=(0,Oe.jsx)("strong",{children:o},r)),t.format&2&&(o=(0,Oe.jsx)("em",{children:o},r)),t.format&4&&(o=(0,Oe.jsx)("span",{style:{textDecoration:"line-through"},children:o},r)),t.format&8&&(o=(0,Oe.jsx)("span",{style:{textDecoration:"underline"},children:o},r)),t.format&16&&(o=(0,Oe.jsx)("code",{children:t.text},r)),t.format&32&&(o=(0,Oe.jsx)("sub",{children:o},r)),t.format&64&&(o=(0,Oe.jsx)("sup",{children:o},r)),o}if(t.type==="table")return(0,Oe.jsx)("table",{children:(0,Oe.jsx)("tbody",{children:t.children.map((o,l)=>(0,Oe.jsx)("tr",{children:o.children.map((a,c)=>(0,Oe.jsx)("td",{children:le({nodes:a.children})},c))},l))})},r);let n=o=>{if(o.children==null)return null;if((o==null?void 0:o.type)==="list"&&(o==null?void 0:o.listType)==="check")for(let l of o.children)"checked"in l&&(l!=null&&l.checked||(l.checked=!1));return le({nodes:o.children})},s="children"in t?n(t):"";if(t.type==="block"){let o=t.fields,l=o==null?void 0:o.blockType;if(!o||!l)return null;switch(l){case"cta":return(0,Oe.jsx)(ee,{...o},r);case"mediaBlock":return(0,Oe.jsx)(K,{className:"col-start-1 col-span-3",imgClassName:"m-0",...o,captionClassName:"mx-auto max-Oe-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"imageBlock":return(0,Oe.jsx)(ot,{className:"col-start-1 col-span-3",imgClassName:"m-0",...o,captionClassName:"mx-auto max-Oe-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"banner":return(0,Oe.jsx)(Je,{className:"col-start-2 mb-4",...o},r);case"code":return(0,Oe.jsx)(Xe,{className:"col-start-2",...o},r);case"features":return(0,Oe.jsx)(se,{...o},r);case"reusableContentBlock":return(0,Oe.jsx)(ae,{...o,reusableContent:o.reusableContent},r);default:return null}}else switch(t.type){case"linebreak":return(0,Oe.jsx)("br",{className:"col-start-2"},r);case"paragraph":return(0,Oe.jsx)("Oe",{className:"col-start-2",children:s},r);case"heading":{let o=t==null?void 0:t.tag;return(0,Oe.jsx)(o,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:s},r)}case"list":{let o=t==null?void 0:t.tag;return(0,Oe.jsx)(o,{className:"list col-start-2",children:s},r)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,Oe.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:s},r):(0,Oe.jsx)("li",{value:t==null?void 0:t.value,children:s},r);case"quote":return(0,Oe.jsx)("blockquote",{className:"col-start-2",children:s},r);case"link":{let o=t.fields;return(0,Oe.jsx)(L,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:s},r)}case"autolink":{let o=t.fields;return(0,Oe.jsx)(L,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:s},r)}default:return null}})})}var B=({className:e,content:t,enableGutter:r=!0,enableProse:n=!0})=>{var s;return t?(0,Oe.jsx)("div",{className:d({"container ":r,"max-Oe-none":!r,"mx-auto prose dark:prose-invert ":n},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&le({nodes:(s=t==null?void 0:t.root)==null?void 0:s.children})}):null};function $t(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function we({variant:e="light",className:t,icon:r,heading:n,subheading:s,content:o,statistic:l,buttonText:a,buttonHref:c}){let m={solid:"bg-[#A42368]",light:"bg-white",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden"};return console.log("content",typeof o),(0,Oe.jsxs)("div",{className:d("rounded-3xl Oe-8 md:Oe-12",m[e],e==="light"?"text-gray-900":"text-white",t),children:[(0,Oe.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[r&&(0,Oe.jsx)("div",{className:d("rounded-full Oe-0",e==="light"?"text-[#A42368]":"text-white"),children:$t(r)?(0,Oe.jsx)(nt,{type:r.type,iconName:r.iconName,size:"2x"}):r}),(0,Oe.jsx)("h2",{className:d("font-semibold",e==="solid"||e==="light"?"text-2xl":"text-4xl"),children:n})]}),e==="solid"&&l&&(0,Oe.jsx)("div",{className:"mb-6",children:(0,Oe.jsx)("div",{className:"text-[8rem] font-bold leading-none",children:l})}),s&&(0,Oe.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:s}),o&&typeof o=="object"&&(0,Oe.jsx)("div",{className:d("space-y-6",e==="light"?"text-gray-600":"text-gray-300"),children:(0,Oe.jsx)(B,{enableGutter:!1,content:o,enableProse:!1,className:d(e==="light"?"prose":"prose prose-headings:text-white prose-Oe:text-gray-300")})}),o&&typeof o=="string"&&(0,Oe.jsx)("div",{className:d("space-y-6",e==="light"?"text-gray-600":"text-gray-300"),children:o}),a&&(0,Oe.jsx)("div",{className:"mt-8",children:(0,Oe.jsx)(G,{size:"lg",className:"text-white text-lg rounded-xl",asChild:!0,children:(0,Oe.jsxs)("a",{href:c,children:[a,(0,Oe.jsx)("span",{className:"ml-2",children:"\u2193"})]})})}),e==="radial"&&(0,Oe.jsx)("div",{className:"absolute bottom-0 right-0 Oe-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%)"}})]})}0&&(module.exports={ContentCard});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{i as a}from"../../chunk-G6K3PK47.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-44VMK4FL.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-2NFKSNJW.mjs";import"../../chunk-FI4SMRAR.mjs";import"../../chunk-5IQPAE6K.mjs";import"../../chunk-M6M43TLT.mjs";import"../../chunk-FGWIT6CV.mjs";import"../../chunk-ZWKWU7U4.mjs";import"../../chunk-EY5QX73B.mjs";import"../../chunk-YCX5N23N.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-KDGEXDC5.mjs";import"../../chunk-Y2KKUQDU.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-VZXLXNVY.mjs";import"../../chunk-BDX257W2.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-SPOYKTBR.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-NSBNDXRL.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as ContentCard};
|