cortex-react-components 1.43.1 → 1.43.3
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-HN4TEDPU.mjs → chunk-3PC5BLK7.mjs} +1 -1
- package/dist/{chunk-J4SEDIHB.mjs → chunk-5PW2VQWX.mjs} +1 -1
- package/dist/chunk-72SXYDHA.mjs +1 -0
- package/dist/{chunk-CDYA6NPD.mjs → chunk-CBDDGINA.mjs} +1 -1
- package/dist/{chunk-UBPXT2KW.mjs → chunk-CUBV2IRQ.mjs} +1 -1
- package/dist/{chunk-IPHHUHS3.mjs → chunk-D43ENVPX.mjs} +1 -1
- package/dist/{chunk-44RAJFV6.mjs → chunk-DYIUZ4V5.mjs} +1 -1
- package/dist/{chunk-IMAQJ7N3.mjs → chunk-EMZQNDA7.mjs} +1 -1
- package/dist/{chunk-7Z52ZEUX.mjs → chunk-GFV75XSU.mjs} +1 -1
- package/dist/{chunk-LBKMUSVR.mjs → chunk-IE2A7UT3.mjs} +1 -1
- package/dist/{chunk-ZSVSTJJR.mjs → chunk-KRJQF2ZW.mjs} +1 -1
- package/dist/{chunk-IEQA6MIO.mjs → chunk-LE5KFDND.mjs} +1 -1
- package/dist/{chunk-X5PEHTIN.mjs → chunk-MP3J7UPZ.mjs} +1 -1
- package/dist/{chunk-EIAOUSXS.mjs → chunk-UDX5Y4SA.mjs} +1 -1
- package/dist/{chunk-WDREYBFE.mjs → chunk-VWNFINDU.mjs} +1 -1
- package/dist/{chunk-4ZT572BM.mjs → chunk-YDGF5GEU.mjs} +1 -1
- package/dist/{chunk-K3ZHWH6Y.mjs → chunk-ZXPDKKGX.mjs} +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/DealDetails.stories.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.js +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.js +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.js +1 -1
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.stories.js +1 -1
- package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
- package/dist/components/CRM/NewDealForm.mjs +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/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.js +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/ApproveLeave.mjs +1 -1
- package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.stories.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/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- 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/index.mjs +1 -1
- package/dist/components/index.js +3 -3
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/IndexPage.stories.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/Intranet.stories.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Publish.mjs +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 +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +2 -1
- package/dist/chunk-4YNA7RS7.mjs +0 -1
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
'use client'
|
|
4
4
|
|
|
5
|
-
"use strict";var It=Object.create;var Pe=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)Pe(e,o,{get:t[o],enumerable:!0})},Xe=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of zt(t))!Ht.call(e,n)&&n!==o&&Pe(e,n,{get:()=>t[n],enumerable:!(a=Et(t,n))||a.enumerable});return e};var z=(e,t,o)=>(o=e!=null?It(Bt(e)):{},Xe(t||!e||!e.__esModule?Pe(o,"default",{value:e,enumerable:!0}):o,e)),Ft=e=>Xe(Pe({},"__esModule",{value:!0}),e);var Ao={};Vt(Ao,{CRMKanbanBoard:()=>To,DealCard:()=>Ue,DealDetails:()=>Ve,KanbanColumn:()=>Ke,NewCustomerForm:()=>_e,NewDealForm:()=>je});module.exports=Ft(Ao);var Me=require("react");var we=z(require("react")),M=z(require("@radix-ui/react-dialog")),nt=require("lucide-react");var st=require("clsx");var ze="-",Wt=e=>{let t=Ot(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:d=>{let r=d.split(ze);return r[0]===""&&r.length!==1&&r.shift(),et(r,t)||Gt(d)},getConflictingClassGroupIds:(d,r)=>{let g=o[d]||[];return r&&a[d]?[...g,...a[d]]:g}}},et=(e,t)=>{var d;if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),n=a?et(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;let i=e.join(ze);return(d=t.validators.find(({validator:r})=>r(i)))==null?void 0:d.classGroupId},Ze=/^\[(.+)\]$/,Gt=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}},Ot=e=>{let{theme:t,prefix:o}=e,a={nextPart:new Map,validators:[]};return _t(Object.entries(e.classGroups),o).forEach(([i,d])=>{Ee(d,a,i,t)}),a},Ee=(e,t,o,a)=>{e.forEach(n=>{if(typeof n=="string"){let i=n===""?t:Ye(t,n);i.classGroupId=o;return}if(typeof n=="function"){if(Ut(n)){Ee(n(a),t,o,a);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([i,d])=>{Ee(d,Ye(t,i),o,a)})})},Ye=(e,t)=>{let o=e;return t.split(ze).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},Ut=e=>e.isThemeGetter,_t=(e,t)=>t?e.map(([o,a])=>{let n=a.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([d,r])=>[t+d,r])):i);return[o,n]}):e,jt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,n=(i,d)=>{o.set(i,d),t++,t>e&&(t=0,a=o,o=new Map)};return{get(i){let d=o.get(i);if(d!==void 0)return d;if((d=a.get(i))!==void 0)return n(i,d),d},set(i,d){o.has(i)?o.set(i,d):n(i,d)}}},tt="!",Kt=e=>{let{separator:t,experimentalParseClassName:o}=e,a=t.length===1,n=t[0],i=t.length,d=r=>{let g=[],w=0,S=0,p;for(let b=0;b<r.length;b++){let R=r[b];if(w===0){if(R===n&&(a||r.slice(b,b+i)===t)){g.push(r.slice(S,b)),S=b+i;continue}if(R==="/"){p=b;continue}}R==="["?w++:R==="]"&&w--}let x=g.length===0?r:r.substring(S),h=x.startsWith(tt),y=h?x.substring(1):x,C=p&&p>S?p-S:void 0;return{modifiers:g,hasImportantModifier:h,baseClassName:y,maybePostfixModifierPosition:C}};return o?r=>o({className:r,parseClassName:d}):d},$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=/\B+/,Qt=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:n}=t,i=[],d=e.trim().split(Jt),r="";for(let g=d.length-1;g>=0;g-=1){let w=d[g],{modifiers:S,hasImportantModifier:p,baseClassName:x,maybePostfixModifierPosition:h}=o(w),y=!!h,C=a(y?x.substring(0,h):x);if(!C){if(!y){r=w+(r.length>0?" "+r:r);continue}if(C=a(x),!C){r=w+(r.length>0?" "+r:r);continue}y=!1}let b=$t(S).join(":"),R=p?b+tt:b,E=R+C;if(i.includes(E))continue;i.push(E);let W=n(C,y);for(let G=0;G<W.length;++G){let m=W[G];i.push(R+m)}r=w+(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,n,i=d;function d(g){let w=t.reduce((S,p)=>p(S),e());return o=qt(w),a=o.cache.get,n=o.cache.set,i=r,r(g)}function r(g){let w=a(g);if(w)return w;let S=Qt(g,o);return n(g,S),S}return function(){return i(Xt.apply(null,arguments))}}var D=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},rt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yt=/^\d+\/\d+$/,eo=new Set(["px","full","screen"]),to=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oo=/\d+(%|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_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,io=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$=e=>pe(e)||eo.has(e)||Yt.test(e),q=e=>ue(e,"length",fo),pe=e=>!!e&&!Number.isNaN(Number(e)),Ie=e=>ue(e,"number",pe),ye=e=>!!e&&Number.isInteger(Number(e)),so=e=>e.endsWith("%")&&pe(e.slice(0,-1)),u=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=D("colors"),t=D("spacing"),o=D("blur"),a=D("brightness"),n=D("borderColor"),i=D("borderRadius"),d=D("borderSpacing"),r=D("borderWidth"),g=D("contrast"),w=D("grayscale"),S=D("hueRotate"),p=D("invert"),x=D("gap"),h=D("gradientColorStops"),y=D("gradientColorStopPositions"),C=D("inset"),b=D("margin"),R=D("opacity"),E=D("padding"),W=D("saturate"),G=D("scale"),m=D("sepia"),P=D("skew"),O=D("space"),l=D("translate"),k=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],me=()=>["auto",u,t],N=()=>[u,t],$e=()=>["",$,q],Ne=()=>["auto",pe,u],qe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Re=()=>["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"],Le=()=>["start","end","center","between","around","evenly","stretch"],xe=()=>["","0",u],Qe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[pe,u];return{cacheSize:500,separator:":",theme:{colors:[Ce],spacing:[$,q],blur:["none","",J,u],brightness:K(),borderColor:[e],borderRadius:["none","","full",J,u],borderSpacing:N(),borderWidth:$e(),contrast:K(),grayscale:xe(),hueRotate:K(),invert:xe(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[so,q],inset:me(),margin:me(),opacity:K(),padding:N(),saturate:K(),scale:K(),sepia:xe(),skew:K(),space:N(),translate:N()},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:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ye,u]}],basis:[{basis:me()}],"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:xe()}],shrink:[{shrink:xe()}],order:[{order:["first","last","none",ye,u]}],"grid-cols":[{"grid-cols":[Ce]}],"col-start-end":[{col:["auto",{span:["full",ye,u]},u]}],"col-start":[{"col-start":Ne()}],"col-end":[{"col-end":Ne()}],"grid-rows":[{"grid-rows":[Ce]}],"row-start-end":[{row:["auto",{span:[ye,u]},u]}],"row-start":[{"row-start":Ne()}],"row-end":[{"row-end":Ne()}],"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:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...Le()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Le(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Le(),"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:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[O]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[O]}],"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",Ie]}],"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,Ie]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$,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":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Re(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$,q]}],"underline-offset":[{"underline-offset":["auto",$,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:N()}],"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":[R]}],"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:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-B":[{"rounded-B":[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-B":[{"border-B":[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":[R]}],"border-style":[{border:[...Re(),"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":[R]}],"divide-style":[{divide:Re()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-B":[{"border-B":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...Re()]}],"outline-offset":[{"outline-offset":[$,u]}],"outline-w":[{outline:[$,q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$e()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[$,q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",J,uo]}],"shadow-color":[{shadow:[Ce]}],opacity:[{opacity:[R]}],"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:[g]}],"drop-shadow":[{"drop-shadow":["","none",J,u]}],grayscale:[{grayscale:[w]}],"hue-rotate":[{"hue-rotate":[S]}],invert:[{invert:[p]}],saturate:[{saturate:[W]}],sepia:[{sepia:[m]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"backdrop-sepia":[{"backdrop-sepia":[m]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-x":[{"scale-x":[G]}],"scale-y":[{"scale-y":[G]}],rotate:[{rotate:[ye,u]}],"translate-x":[{"translate-x":[l]}],"translate-y":[{"translate-y":[l]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"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","n-resize","e-resize","B-resize","w-resize","Me-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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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:[$,q,Ie]}],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","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-B","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-B":["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-B","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-B","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-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 B=require("react/jsx-runtime"),fe=M.Root,lt=M.Trigger,ho=M.Portal;var ct=we.forwardRef(({className:e,...t},o)=>(0,B.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 Z=we.forwardRef(({className:e,children:t,...o},a)=>(0,B.jsxs)(ho,{children:[(0,B.jsx)(ct,{}),(0,B.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,B.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,B.jsx)(nt.B,{className:"h-4 w-4"}),(0,B.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Z.displayName=M.Content.displayName;var Y=({className:e,...t})=>(0,B.jsx)("div",{className:f("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Y.displayName="DialogHeader";var xo=({className:e,...t})=>(0,B.jsx)("div",{className:f("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});xo.displayName="DialogFooter";var ee=we.forwardRef(({className:e,...t},o)=>(0,B.jsx)(M.Title,{ref:o,className:f("text-lg font-semibold leading-none tracking-tight",e),...t}));ee.displayName=M.Title.displayName;var yo=we.forwardRef(({className:e,...t},o)=>(0,B.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=z(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-primary text-primary-foreground hover:bg-primary-ON_HOVER",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-secondary/80"}}}),H=pt.forwardRef(({asChild:e=!1,className:t,size:o,variant:a,...n},i)=>(0,B.jsx)(e?dt.Slot:"button",{className:f(Co({className:t,size:o,variant:a})),ref:i,...n}));H.displayName="Button";var ft=z(require("react"));var _=ft.forwardRef(({className:e,type:t,...o},a)=>(0,B.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=z(require("react")),Be=z(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"),L=bt.forwardRef(({className:e,...t},o)=>(0,B.jsx)(Be.Root,{ref:o,className:f(wo(),e),...t}));L.displayName=Be.Root.displayName;var xt=z(require("react")),te=xt.forwardRef(({className:e,...t},o)=>(0,B.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}));te.displayName="Textarea";var v=z(require("@radix-ui/react-select")),Q=z(require("react")),ge=v.Root;var be=v.Value,re=Q.forwardRef(({children:e,className:t,...o},a)=>(0,B.jsxs)(v.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,B.jsx)(v.Icon,{asChild:!0,children:(0,B.jsx)(nt.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));re.displayName=v.Trigger.displayName;var Ct=Q.forwardRef(({className:e,...t},o)=>(0,B.jsx)(v.ScrollUpButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,B.jsx)(nt.ChevronUp,{className:"h-4 w-4"})}));Ct.displayName=v.ScrollUpButton.displayName;var wt=Q.forwardRef(({className:e,...t},o)=>(0,B.jsx)(v.ScrollDownButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,B.jsx)(nt.ChevronDown,{className:"h-4 w-4"})}));wt.displayName=v.ScrollDownButton.displayName;var ae=Q.forwardRef(({children:e,className:t,position:o="popper",...a},n)=>(0,B.jsx)(v.Portal,{children:(0,B.jsxs)(v.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:n,...a,children:[(0,B.jsx)(Ct,{}),(0,B.jsx)(v.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,B.jsx)(wt,{})]})}));ae.displayName=v.Content.displayName;var So=Q.forwardRef(({className:e,...t},o)=>(0,B.jsx)(v.Label,{className:f("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));So.displayName=v.Label.displayName;var ie=Q.forwardRef(({children:e,className:t,...o},a)=>(0,B.jsxs)(v.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,B.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,B.jsx)(v.ItemIndicator,{children:(0,B.jsx)(nt.Check,{className:"h-4 w-4"})})}),(0,B.jsx)(v.ItemText,{children:e})]}));ie.displayName=v.Item.displayName;var No=Q.forwardRef(({className:e,...t},o)=>(0,B.jsx)(v.Separator,{className:f("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));No.displayName=v.Separator.displayName;var Se=z(require("@radix-ui/react-checkbox")),Nt=z(require("react")),se=Nt.forwardRef(({className:e,...t},o)=>(0,B.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,B.jsx)(Se.Indicator,{className:f("flex items-center justify-center text-current"),children:(0,B.jsx)(nt.Check,{className:"h-4 w-4"})})}));se.displayName=Se.Root.displayName;var Ro=(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 ke({className:e,variant:t,...o}){return(0,B.jsx)("div",{className:f(Ro({variant:t}),e),...o})}var He=z(require("react")),F=z(require("@radix-ui/react-scroll-area"));var ve=He.forwardRef(({className:e,children:t,...o},a)=>(0,B.jsxs)(F.Root,{ref:a,className:f("relative overflow-hidden",e),...o,children:[(0,B.jsx)(F.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,B.jsx)(Dt,{}),(0,B.jsx)(F.Corner,{})]}));ve.displayName=F.Root.displayName;var Dt=He.forwardRef(({className:e,orientation:t="vertical",...o},a)=>(0,B.jsx)(F.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,B.jsx)(F.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Dt.displayName=F.ScrollAreaScrollbar.displayName;function Ve({deal:e,users:t,customer:o,categories:a,onClose:n,onSave:i,onAddComment:d}){var m,P,O;let[r,g]=(0,Me.useState)({...e,value:e.value||0}),[w,S]=(0,Me.useState)(""),[p,x]=(0,Me.useState)(!1),[h,y]=(0,Me.useState)(null);(0,Me.useEffect)(()=>{x(JSON.stringify(e)!==JSON.stringify(r))},[e,r]);let C=()=>{i(r),x(!1),y(null)},b=(l,k)=>{g(U=>({...U,[l]:k}))},R=l=>{let k=r.categories.includes(l)?r.categories.filter(U=>U!==l):[...r.categories,l];b("categories",k)},E=()=>{w.trim()&&(d({id:Date.now().toString(),text:w,timestamp:new Date().toISOString()}),g(l=>({...l,comments:[...l.comments,{id:"0",text:w,timestamp:new Date().toISOString()}]})),S(""))},W=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"}},G=(l,k,U)=>{let me=h===l;return(0,B.jsxs)("div",{className:"grid gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:k}),(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[U,me?(0,B.jsx)(_,{value:r[l],onChange:N=>b(l,N.target.value),onBlur:()=>y(null),autoFocus:!0}):(0,B.jsx)("div",{className:"flex-grow cursor-pointer hover:bg-gray-100 p-2 rounded",onClick:()=>y(l),children:r[l]}),!me&&(0,B.jsx)(H,{variant:"ghost",size:"sm",onClick:()=>y(l),children:(0,B.jsx)(nt.Edit2Icon,{className:"w-4 h-4"})})]})]})};return(0,B.jsx)(fe,{open:!0,children:(0,B.jsxs)(Z,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,B.jsxs)(Y,{className:"flex flex-row items-center justify-between",children:[(0,B.jsx)(ee,{className:"text-2xl font-bold",children:o==null?void 0:o.name}),(0,B.jsxs)("div",{className:"flex space-x-2",children:[(0,B.jsx)(H,{variant:"outline",onClick:n,children:"Close"}),(0,B.jsxs)(H,{onClick:C,disabled:!p,children:[(0,B.jsx)(nt.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,B.jsxs)(ve,{className:"flex-grow pr-4",children:[(0,B.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,B.jsx)("div",{className:"grid gap-2",children:h==="value"?(0,B.jsx)(_,{type:"number",value:r.value,onChange:l=>b("value",Number(l.target.value)),onBlur:()=>y(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,B.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("value"),children:["\xA3",(m=r.value)==null?void 0:m.toLocaleString()]})}),(0,B.jsxs)("div",{className:"grid gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),h==="assignee"?(0,B.jsxs)(ge,{value:((O=(P=r==null?void 0:r.assignee)==null?void 0:P.id)==null?void 0:O.toString())||"",onValueChange:l=>b("assignee",l),children:[(0,B.jsx)(re,{children:(0,B.jsx)(be,{placeholder:"Select assignee"})}),(0,B.jsx)(ae,{children:t&&t.map(l=>{var k;return(0,B.jsx)(ie,{value:((k=l==null?void 0:l.id)==null?void 0:k.toString())||"",children:l.name},l.id)})})]}):(0,B.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("assignee"),children:[(0,B.jsx)(nt.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,B.jsx)("span",{children:r.assignee.name})]})]}),(0,B.jsxs)("div",{className:"grid gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),h==="closureDate"?(0,B.jsx)(_,{type:"date",value:r.closureDate.split("B")[0],onChange:l=>b("closureDate",l.target.value),onBlur:()=>y(null),autoFocus:!0}):(0,B.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("closureDate"),children:[(0,B.jsx)(nt.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,B.jsx)("span",{children:new Date(r.closureDate).toLocaleDateString("en-GB")})]})]})]}),(0,B.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,B.jsxs)("div",{className:"grid gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Description"}),h==="description"?(0,B.jsx)(te,{value:r.description,onChange:l=>b("description",l.target.value),onBlur:()=>y(null),className:"min-h-[100px]",autoFocus:!0}):(0,B.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>y("description"),children:r.description})]})}),(0,B.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,B.jsxs)("div",{className:"grid gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Status"}),h==="status"?(0,B.jsxs)(ge,{value:r.status,onValueChange:l=>{b("status",l),y(null)},children:[(0,B.jsx)(re,{children:(0,B.jsx)(be,{placeholder:"Select status"})}),(0,B.jsx)(ae,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(l=>(0,B.jsx)(ie,{value:l,children:l},l))})]}):(0,B.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("status"),children:r.status})]}),(0,B.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Categories"}),h==="categories"?(0,B.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.map(l=>(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,B.jsx)(se,{id:l.id,checked:r.categories.includes(l.id),onCheckedChange:()=>R(l.id)}),(0,B.jsx)("label",{htmlFor:l.id,className:`text-sm font-medium ${W(l.type)} px-2 py-1 rounded`,children:l.name})]},l.id))}):(0,B.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("categories"),children:r.categories.map(l=>{let k=a.find(U=>U.id===l);return k?(0,B.jsx)(ke,{variant:"secondary",className:W(k.type),children:k.name},k.id):null})})]})]}),(0,B.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,B.jsxs)("div",{className:"grid gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,B.jsx)(ve,{className:"h-[200px] overflow-y-auto",children:(0,B.jsx)("div",{className:"space-y-2",children:r.comments.slice().sort((l,k)=>new Date(k.timestamp).getTime()-new Date(l.timestamp).getTime()).map(l=>{var k;return(0,B.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,B.jsx)("p",{className:"text-sm text-gray-700",children:l.text}),(0,B.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(k=l==null?void 0:l.author)==null?void 0:k.name," - ",new Date(l.timestamp).toLocaleString()]})]},l.id)})})}),(0,B.jsxs)("div",{className:"flex mt-2",children:[(0,B.jsx)(_,{value:w,onChange:l=>S(l.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,B.jsxs)(H,{onClick:E,className:"ml-2",children:[(0,B.jsx)(nt.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,B.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(r.updatedAt).toLocaleString()]})]})]})]})})}var le=z(require("react"));var Fe=le.forwardRef(({className:e,...t},o)=>(0,B.jsx)("div",{ref:o,className:f("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Fe.displayName="Card";var We=le.forwardRef(({className:e,...t},o)=>(0,B.jsx)("div",{ref:o,className:f("flex flex-col space-y-1.5 p-6",e),...t}));We.displayName="CardHeader";var Ge=le.forwardRef(({className:e,...t},o)=>(0,B.jsx)("div",{ref:o,className:f("font-semibold leading-none tracking-tight",e),...t}));Ge.displayName="CardTitle";var Po=le.forwardRef(({className:e,...t},o)=>(0,B.jsx)("div",{ref:o,className:f("text-sm text-muted-foreground",e),...t}));Po.displayName="CardDescription";var Oe=le.forwardRef(({className:e,...t},o)=>(0,B.jsx)("div",{ref:o,className:f("p-6 pt-0",e),...t}));Oe.displayName="CardContent";var Do=le.forwardRef(({className:e,...t},o)=>(0,B.jsx)("div",{ref:o,className:f("flex items-center p-6 pt-0",e),...t}));Do.displayName="CardFooter";function Ue({deal:e,customer:t,categories:o,onClick:a}){let n=o.find(i=>i.type==="proposition"&&e.categories.includes(i.id));return(0,B.jsxs)(Fe,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:a,children:[(0,B.jsxs)(We,{className:"pb-2",children:[(0,B.jsx)("div",{className:"flex justify-between items-center",children:(0,B.jsx)(Ge,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,B.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,B.jsxs)(Oe,{children:[(0,B.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,B.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,B.jsx)(nt.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,B.jsx)("span",{children:e.assignee.name})]}),(0,B.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,B.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,B.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,B.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,B.jsx)(nt.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,B.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,B.jsx)("div",{className:"flex justify-between items-left",children:n&&(0,B.jsx)(ke,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:n.name})})]})]})}var Ae=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function _e({onSubmit:e}){var n;let[t,o]=(0,Me.useState)({name:"",intro:"",active:!0});return(0,B.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,B.jsxs)("div",{className:"space-y-2",children:[(0,B.jsx)(L,{htmlFor:"customerName",children:"Customer Name"}),(0,B.jsx)(_,{id:"customerName",value:t.name,onChange:i=>o({...t,name:i.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,B.jsxs)("div",{className:"space-y-2",children:[(0,B.jsx)(L,{htmlFor:"customerIntro",children:"Intro"}),(0,B.jsx)(te,{id:"customerIntro",value:(n=t.intro)!=null?n:"",onChange:i=>o({...t,intro:i.target.value}),placeholder:"Enter customer intro"})]}),(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,B.jsx)(se,{id:"activeCustomer",checked:!!t.active,onCheckedChange:i=>o({...t,active:i})}),(0,B.jsx)(L,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,B.jsx)(H,{type:"submit",className:"w-full",children:"Add Customer"})]})}function je({customers:e,users:t,categories:o,onSubmit:a,initialDeal:n,onAddCustomer:i,onClose:d}){var R,E,W,G;let[r,g]=(0,Me.useState)(n||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("B")[0],closureDate:"",comments:[],description:""}),[w,S]=(0,Me.useState)(!1),[p,x]=(0,Me.useState)({});(0,Me.useEffect)(()=>{n&&g(n)},[n]);let h=()=>{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"),x(m),Object.keys(m).length===0},y=m=>{m.preventDefault(),h()&&(a({...r}),g({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),x({}),d==null||d())},C=m=>{g(P=>{var O;return{...P,categories:(O=P.categories)!=null&&O.includes(m)?P.categories.filter(l=>l!==m):[...P.categories||[],m]}})},b=m=>{e.push(m),g({...r,customer:m}),S(!1),i(m)};return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("form",{onSubmit:y,className:"space-y-6",children:[(0,B.jsx)(ve,{className:"h-[60vh] pr-4",children:(0,B.jsxs)("div",{className:"space-y-6 px-4",children:[(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(L,{htmlFor:"customer",children:"Customer"}),(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,B.jsxs)(ge,{value:(E=(R=r.customer)==null?void 0:R.id)==null?void 0:E.toString(),onValueChange:m=>g({...r,customer:{id:Number(m)}}),children:[(0,B.jsx)(re,{children:(0,B.jsx)(be,{placeholder:"Select customer"})}),(0,B.jsx)(ae,{children:e.map(m=>{var P;return(0,B.jsx)(ie,{value:((P=m.id)==null?void 0:P.toString())||"",children:m.name},m.id)})})]}),(0,B.jsx)(H,{variant:"outline",size:"icon",onClick:()=>S(!0),children:(0,B.jsx)(nt.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,B.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(L,{htmlFor:"value",children:"Value"}),(0,B.jsx)(_,{id:"value",type:"number",value:r.value||"",onChange:m=>g({...r,value:Number.parseFloat(m.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,B.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(L,{htmlFor:"assignee",children:"Assignee"}),(0,B.jsxs)(ge,{value:(G=(W=r.assignee)==null?void 0:W.id)==null?void 0:G.toString(),onValueChange:m=>g({...r,assignee:{id:Number(m)}}),children:[(0,B.jsx)(re,{children:(0,B.jsx)(be,{placeholder:"Select assignee"})}),(0,B.jsx)(ae,{children:t&&t.map(m=>{var P;return(0,B.jsx)(ie,{value:((P=m.id)==null?void 0:P.toString())||"",children:m.name},m.id)})})]}),p.assignee&&(0,B.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(L,{htmlFor:"description",children:"Description"}),(0,B.jsx)(te,{id:"description",value:r.description||"",onChange:m=>g({...r,description:m.target.value}),placeholder:"Enter deal description"})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(L,{children:"Categories"}),(0,B.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(m=>(0,B.jsxs)("div",{className:"space-y-2",children:[(0,B.jsx)("h4",{className:"text-sm font-medium",children:m.charAt(0).toUpperCase()+m.slice(1)}),(0,B.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.filter(P=>P.type===m).map(P=>{var O;return(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,B.jsx)(se,{id:P.id,checked:(O=r.categories)==null?void 0:O.includes(P.id),onCheckedChange:()=>C(P.id)}),(0,B.jsx)("label",{htmlFor:P.id,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:P.name})]},P.id)})})]},m))})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(L,{htmlFor:"closureDate",children:"Closure Date"}),(0,B.jsx)(_,{id:"closureDate",type:"date",value:r.closureDate,onChange:m=>g({...r,closureDate:m.target.value})}),p.closureDate&&(0,B.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,B.jsx)(H,{type:"submit",className:"w-full",children:n?"Update Deal":"Add Deal"})]}),(0,B.jsx)(fe,{open:w,onOpenChange:S,children:(0,B.jsxs)(Z,{children:[(0,B.jsx)(Y,{children:(0,B.jsx)(ee,{children:"Add New Customer"})}),(0,B.jsx)(_e,{onSubmit:b})]})})]})}function Ke({status:e,deals:t,users:o,customers:a,categories:n,onDealClick:i,calculateColumnValue:d,calculateWeightedValue:r,addNewDeal:g,onAddCustomer:w}){let[S,p]=(0,Me.useState)(!1);return(0,B.jsxs)("div",{className:"flex flex-col w-80",children:[(0,B.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),g&&(0,B.jsxs)(fe,{open:S,onOpenChange:p,children:[(0,B.jsx)(lt,{asChild:!0,children:(0,B.jsxs)(H,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,B.jsx)(nt.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,B.jsxs)(Z,{children:[(0,B.jsx)(Y,{children:(0,B.jsx)(ee,{children:"Add New Deal"})}),(0,B.jsx)(je,{customers:a,users:o,categories:n,onSubmit:g,onAddCustomer:w,onClose:()=>p(!1)})]})]}),(0,B.jsx)(Ae.Droppable,{droppableId:e,isDropDisabled:!0,children:x=>(0,B.jsxs)("div",{ref:x.innerRef,...x.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((h,y)=>(0,B.jsx)(Ae.Draggable,{draggableId:h.id.toString(),index:y,children:C=>(0,B.jsx)("div",{ref:C.innerRef,...C.draggableProps,...C.dragHandleProps,children:(0,B.jsx)(Ue,{deal:h,customer:a.find(b=>b.id===h.customer.id),categories:n,onClick:()=>i(h)})})},h.id.toString())),x.placeholder]})}),(0,B.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,B.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,B.jsxs)("span",{className:"text-green-600",children:["\xA3",d(t).toLocaleString()]})]}),(0,B.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,B.jsxs)("span",{className:"text-blue-600",children:["\xA3",r(t,e).toLocaleString()]})]})]})]})}var ko=["Cold","Qualified","Proposal","SoW","Won","Lost"];function To({initialData:e,addNewDeal:t,updateDeal:o,addComment:a,addNewCustomer:n}){let[i,d]=(0,Me.useState)(null),r=p=>e.deals.filter(x=>x.status===p),g=p=>p.reduce((x,h)=>x+(h.value||0),0),w=(p,x)=>{let h={Cold:.2,Qualified:.4,Proposal:.6,SoW:.7,Won:1,Lost:0};return p.reduce((y,C)=>y+(C.value||0)*h[x],0)},S=(0,Me.useCallback)(p=>{let{source:x,destination:h}=p;if(!h||x.droppableId===h.droppableId&&x.index===h.index)return;let y=x.droppableId,C=h.droppableId;console.log("Moving from ",y,"to",C);let b=[...e.deals],[R]=b.splice(x.index,1);R.status=C,b.splice(h.index,0,R),o(R)},[o]);return(0,B.jsx)(Ae.DragDropContext,{onDragEnd:S,children:(0,B.jsxs)("div",{className:"p-4",children:[(0,B.jsx)("div",{className:"flex space-x-4 overflow-x-auto pb-4",children:ko.filter(p=>p!=="Won"&&p!=="Lost").map(p=>{let x=r(p);return(0,B.jsx)(Ke,{status:p,deals:x,customers:e.customers,users:e.users,categories:e.categories,onDealClick:d,calculateColumnValue:g,calculateWeightedValue:w,addNewDeal:p==="Cold"?t:void 0,onAddCustomer:n},p)})}),i&&(0,B.jsx)(Ve,{deal:i,users:e.users,customer:e.customers.find(p=>p.id===i.customer.id),categories:e.categories,onClose:()=>d(null),onSave:o,onAddComment:p=>a(i.id.toString(),p)})]})})}0&&(module.exports={CRMKanbanBoard,DealCard,DealDetails,KanbanColumn,NewCustomerForm,NewDealForm});
|
|
5
|
+
"use strict";var It=Object.create;var Pe=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)Pe(e,o,{get:t[o],enumerable:!0})},Xe=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of zt(t))!Ht.call(e,n)&&n!==o&&Pe(e,n,{get:()=>t[n],enumerable:!(a=Et(t,n))||a.enumerable});return e};var z=(e,t,o)=>(o=e!=null?It(Bt(e)):{},Xe(t||!e||!e.__esModule?Pe(o,"default",{value:e,enumerable:!0}):o,e)),Ft=e=>Xe(Pe({},"__esModule",{value:!0}),e);var Ao={};Vt(Ao,{CRMKanbanBoard:()=>To,DealCard:()=>Ue,DealDetails:()=>Ve,KanbanColumn:()=>Ke,NewCustomerForm:()=>_e,NewDealForm:()=>je});module.exports=Ft(Ao);var Me=require("react");var we=z(require("react")),M=z(require("@radix-ui/react-dialog")),nt=require("lucide-react");var st=require("clsx");var ze="-",Wt=e=>{let t=Ot(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:d=>{let r=d.split(ze);return r[0]===""&&r.length!==1&&r.shift(),et(r,t)||Gt(d)},getConflictingClassGroupIds:(d,r)=>{let g=o[d]||[];return r&&a[d]?[...g,...a[d]]:g}}},et=(e,t)=>{var d;if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),n=a?et(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;let i=e.join(ze);return(d=t.validators.find(({validator:r})=>r(i)))==null?void 0:d.classGroupId},Ze=/^\[(.+)\]$/,Gt=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}},Ot=e=>{let{theme:t,prefix:o}=e,a={nextPart:new Map,validators:[]};return _t(Object.entries(e.classGroups),o).forEach(([i,d])=>{Ee(d,a,i,t)}),a},Ee=(e,t,o,a)=>{e.forEach(n=>{if(typeof n=="string"){let i=n===""?t:Ye(t,n);i.classGroupId=o;return}if(typeof n=="function"){if(Ut(n)){Ee(n(a),t,o,a);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([i,d])=>{Ee(d,Ye(t,i),o,a)})})},Ye=(e,t)=>{let o=e;return t.split(ze).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},Ut=e=>e.isThemeGetter,_t=(e,t)=>t?e.map(([o,a])=>{let n=a.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([d,r])=>[t+d,r])):i);return[o,n]}):e,jt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,n=(i,d)=>{o.set(i,d),t++,t>e&&(t=0,a=o,o=new Map)};return{get(i){let d=o.get(i);if(d!==void 0)return d;if((d=a.get(i))!==void 0)return n(i,d),d},set(i,d){o.has(i)?o.set(i,d):n(i,d)}}},tt="!",Kt=e=>{let{separator:t,experimentalParseClassName:o}=e,a=t.length===1,n=t[0],i=t.length,d=r=>{let g=[],w=0,S=0,p;for(let v=0;v<r.length;v++){let R=r[v];if(w===0){if(R===n&&(a||r.slice(v,v+i)===t)){g.push(r.slice(S,v)),S=v+i;continue}if(R==="/"){p=v;continue}}R==="["?w++:R==="]"&&w--}let x=g.length===0?r:r.substring(S),b=x.startsWith(tt),y=b?x.substring(1):x,C=p&&p>S?p-S:void 0;return{modifiers:g,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:C}};return o?r=>o({className:r,parseClassName:d}):d},$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=/\B+/,Qt=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:n}=t,i=[],d=e.trim().split(Jt),r="";for(let g=d.length-1;g>=0;g-=1){let w=d[g],{modifiers:S,hasImportantModifier:p,baseClassName:x,maybePostfixModifierPosition:b}=o(w),y=!!b,C=a(y?x.substring(0,b):x);if(!C){if(!y){r=w+(r.length>0?" "+r:r);continue}if(C=a(x),!C){r=w+(r.length>0?" "+r:r);continue}y=!1}let v=$t(S).join(":"),R=p?v+tt:v,E=R+C;if(i.includes(E))continue;i.push(E);let W=n(C,y);for(let G=0;G<W.length;++G){let m=W[G];i.push(R+m)}r=w+(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,n,i=d;function d(g){let w=t.reduce((S,p)=>p(S),e());return o=qt(w),a=o.cache.get,n=o.cache.set,i=r,r(g)}function r(g){let w=a(g);if(w)return w;let S=Qt(g,o);return n(g,S),S}return function(){return i(Xt.apply(null,arguments))}}var D=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},rt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yt=/^\d+\/\d+$/,eo=new Set(["px","full","screen"]),to=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,oo=/\d+(%|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_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,io=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$=e=>pe(e)||eo.has(e)||Yt.test(e),q=e=>ue(e,"length",fo),pe=e=>!!e&&!Number.isNaN(Number(e)),Ie=e=>ue(e,"number",pe),ye=e=>!!e&&Number.isInteger(Number(e)),so=e=>e.endsWith("%")&&pe(e.slice(0,-1)),u=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=D("colors"),t=D("spacing"),o=D("blur"),a=D("brightness"),n=D("borderColor"),i=D("borderRadius"),d=D("borderSpacing"),r=D("borderWidth"),g=D("contrast"),w=D("grayscale"),S=D("hueRotate"),p=D("invert"),x=D("gap"),b=D("gradientColorStops"),y=D("gradientColorStopPositions"),C=D("inset"),v=D("margin"),R=D("opacity"),E=D("padding"),W=D("saturate"),G=D("scale"),m=D("sepia"),P=D("skew"),O=D("space"),l=D("translate"),k=()=>["auto","contain","none"],U=()=>["auto","hidden","clip","visible","scroll"],me=()=>["auto",u,t],N=()=>[u,t],$e=()=>["",$,q],Ne=()=>["auto",pe,u],qe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Re=()=>["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"],Le=()=>["start","end","center","between","around","evenly","stretch"],xe=()=>["","0",u],Qe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>[pe,u];return{cacheSize:500,separator:":",theme:{colors:[Ce],spacing:[$,q],blur:["none","",J,u],brightness:K(),borderColor:[e],borderRadius:["none","","full",J,u],borderSpacing:N(),borderWidth:$e(),contrast:K(),grayscale:xe(),hueRotate:K(),invert:xe(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[so,q],inset:me(),margin:me(),opacity:K(),padding:N(),saturate:K(),scale:K(),sepia:xe(),skew:K(),space:N(),translate:N()},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:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[C]}],"inset-x":[{"inset-x":[C]}],"inset-y":[{"inset-y":[C]}],start:[{start:[C]}],end:[{end:[C]}],top:[{top:[C]}],right:[{right:[C]}],bottom:[{bottom:[C]}],left:[{left:[C]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ye,u]}],basis:[{basis:me()}],"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:xe()}],shrink:[{shrink:xe()}],order:[{order:["first","last","none",ye,u]}],"grid-cols":[{"grid-cols":[Ce]}],"col-start-end":[{col:["auto",{span:["full",ye,u]},u]}],"col-start":[{"col-start":Ne()}],"col-end":[{"col-end":Ne()}],"grid-rows":[{"grid-rows":[Ce]}],"row-start-end":[{row:["auto",{span:[ye,u]},u]}],"row-start":[{"row-start":Ne()}],"row-end":[{"row-end":Ne()}],"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:[x]}],"gap-x":[{"gap-x":[x]}],"gap-y":[{"gap-y":[x]}],"justify-content":[{justify:["normal",...Le()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Le(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Le(),"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:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[O]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[O]}],"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",Ie]}],"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,Ie]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$,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":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Re(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$,q]}],"underline-offset":[{"underline-offset":["auto",$,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:N()}],"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":[R]}],"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:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[i]}],"rounded-B":[{"rounded-B":[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-B":[{"border-B":[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":[R]}],"border-style":[{border:[...Re(),"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":[R]}],"divide-style":[{divide:Re()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-B":[{"border-B":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...Re()]}],"outline-offset":[{"outline-offset":[$,u]}],"outline-w":[{outline:[$,q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$e()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[$,q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",J,uo]}],"shadow-color":[{shadow:[Ce]}],opacity:[{opacity:[R]}],"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:[g]}],"drop-shadow":[{"drop-shadow":["","none",J,u]}],grayscale:[{grayscale:[w]}],"hue-rotate":[{"hue-rotate":[S]}],invert:[{invert:[p]}],saturate:[{saturate:[W]}],sepia:[{sepia:[m]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[S]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"backdrop-sepia":[{"backdrop-sepia":[m]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:K()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:K()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-x":[{"scale-x":[G]}],"scale-y":[{"scale-y":[G]}],rotate:[{rotate:[ye,u]}],"translate-x":[{"translate-x":[l]}],"translate-y":[{"translate-y":[l]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"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","n-resize","e-resize","B-resize","w-resize","Me-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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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:[$,q,Ie]}],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","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-B","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-B":["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-B","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-B","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-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 B=require("react/jsx-runtime"),fe=M.Root,lt=M.Trigger,ho=M.Portal;var ct=we.forwardRef(({className:e,...t},o)=>(0,B.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 Z=we.forwardRef(({className:e,children:t,...o},a)=>(0,B.jsxs)(ho,{children:[(0,B.jsx)(ct,{}),(0,B.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,B.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,B.jsx)(nt.B,{className:"h-4 w-4"}),(0,B.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Z.displayName=M.Content.displayName;var Y=({className:e,...t})=>(0,B.jsx)("div",{className:f("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Y.displayName="DialogHeader";var xo=({className:e,...t})=>(0,B.jsx)("div",{className:f("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});xo.displayName="DialogFooter";var ee=we.forwardRef(({className:e,...t},o)=>(0,B.jsx)(M.Title,{ref:o,className:f("text-lg font-semibold leading-none tracking-tight",e),...t}));ee.displayName=M.Title.displayName;var yo=we.forwardRef(({className:e,...t},o)=>(0,B.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=z(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-primary text-primary-foreground hover:bg-primary-ON_HOVER",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-secondary/80"}}}),H=pt.forwardRef(({asChild:e=!1,className:t,size:o,variant:a,...n},i)=>(0,B.jsx)(e?dt.Slot:"button",{className:f(Co({className:t,size:o,variant:a})),ref:i,...n}));H.displayName="Button";var ft=z(require("react"));var _=ft.forwardRef(({className:e,type:t,...o},a)=>(0,B.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=z(require("react")),Be=z(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"),L=bt.forwardRef(({className:e,...t},o)=>(0,B.jsx)(Be.Root,{ref:o,className:f(wo(),e),...t}));L.displayName=Be.Root.displayName;var xt=z(require("react")),te=xt.forwardRef(({className:e,...t},o)=>(0,B.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}));te.displayName="Textarea";var h=z(require("@radix-ui/react-select")),Q=z(require("react")),ge=h.Root;var be=h.Value,re=Q.forwardRef(({children:e,className:t,...o},a)=>(0,B.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,B.jsx)(h.Icon,{asChild:!0,children:(0,B.jsx)(nt.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));re.displayName=h.Trigger.displayName;var Ct=Q.forwardRef(({className:e,...t},o)=>(0,B.jsx)(h.ScrollUpButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,B.jsx)(nt.ChevronUp,{className:"h-4 w-4"})}));Ct.displayName=h.ScrollUpButton.displayName;var wt=Q.forwardRef(({className:e,...t},o)=>(0,B.jsx)(h.ScrollDownButton,{className:f("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,B.jsx)(nt.ChevronDown,{className:"h-4 w-4"})}));wt.displayName=h.ScrollDownButton.displayName;var ae=Q.forwardRef(({children:e,className:t,position:o="popper",...a},n)=>(0,B.jsx)(h.Portal,{children:(0,B.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:n,...a,children:[(0,B.jsx)(Ct,{}),(0,B.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,B.jsx)(wt,{})]})}));ae.displayName=h.Content.displayName;var So=Q.forwardRef(({className:e,...t},o)=>(0,B.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 ie=Q.forwardRef(({children:e,className:t,...o},a)=>(0,B.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,B.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,B.jsx)(h.ItemIndicator,{children:(0,B.jsx)(nt.Check,{className:"h-4 w-4"})})}),(0,B.jsx)(h.ItemText,{children:e})]}));ie.displayName=h.Item.displayName;var No=Q.forwardRef(({className:e,...t},o)=>(0,B.jsx)(h.Separator,{className:f("-mx-1 my-1 h-px bg-muted",e),ref:o,...t}));No.displayName=h.Separator.displayName;var Se=z(require("@radix-ui/react-checkbox")),Nt=z(require("react")),se=Nt.forwardRef(({className:e,...t},o)=>(0,B.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,B.jsx)(Se.Indicator,{className:f("flex items-center justify-center text-current"),children:(0,B.jsx)(nt.Check,{className:"h-4 w-4"})})}));se.displayName=Se.Root.displayName;var Ro=(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 ke({className:e,variant:t,...o}){return(0,B.jsx)("div",{className:f(Ro({variant:t}),e),...o})}var He=z(require("react")),F=z(require("@radix-ui/react-scroll-area"));var ve=He.forwardRef(({className:e,children:t,...o},a)=>(0,B.jsxs)(F.Root,{ref:a,className:f("relative overflow-hidden",e),...o,children:[(0,B.jsx)(F.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,B.jsx)(Dt,{}),(0,B.jsx)(F.Corner,{})]}));ve.displayName=F.Root.displayName;var Dt=He.forwardRef(({className:e,orientation:t="vertical",...o},a)=>(0,B.jsx)(F.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,B.jsx)(F.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Dt.displayName=F.ScrollAreaScrollbar.displayName;function Ve({deal:e,users:t,customer:o,categories:a,onClose:n,onSave:i,onAddComment:d}){var m,P,O;let[r,g]=(0,Me.useState)({...e,value:e.value||0}),[w,S]=(0,Me.useState)(""),[p,x]=(0,Me.useState)(!1),[b,y]=(0,Me.useState)(null);(0,Me.useEffect)(()=>{x(JSON.stringify(e)!==JSON.stringify(r))},[e,r]);let C=()=>{i(r),x(!1),y(null)},v=(l,k)=>{g(U=>({...U,[l]:k}))},R=l=>{let k=r.categories.includes(l)?r.categories.filter(U=>U!==l):[...r.categories,l];v("categories",k)},E=()=>{w.trim()&&(d({id:Date.now().toString(),text:w,timestamp:new Date().toISOString()}),g(l=>({...l,comments:[...l.comments,{id:"0",text:w,timestamp:new Date().toISOString()}]})),S(""))},W=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"}},G=(l,k,U)=>{let me=b===l;return(0,B.jsxs)("div",{className:"grid gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:k}),(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[U,me?(0,B.jsx)(_,{value:r[l],onChange:N=>v(l,N.target.value),onBlur:()=>y(null),autoFocus:!0}):(0,B.jsx)("div",{className:"flex-grow cursor-pointer hover:bg-gray-100 p-2 rounded",onClick:()=>y(l),children:r[l]}),!me&&(0,B.jsx)(H,{variant:"ghost",size:"sm",onClick:()=>y(l),children:(0,B.jsx)(nt.Edit2Icon,{className:"w-4 h-4"})})]})]})};return(0,B.jsx)(fe,{open:!0,children:(0,B.jsxs)(Z,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,B.jsxs)(Y,{className:"flex flex-row items-center justify-between",children:[(0,B.jsx)(ee,{className:"text-2xl font-bold",children:o==null?void 0:o.name}),(0,B.jsxs)("div",{className:"flex space-x-2",children:[(0,B.jsx)(H,{variant:"outline",onClick:n,children:"Close"}),(0,B.jsxs)(H,{onClick:C,disabled:!p,children:[(0,B.jsx)(nt.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,B.jsxs)(ve,{className:"flex-grow pr-4",children:[(0,B.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,B.jsx)("div",{className:"grid gap-2",children:b==="value"?(0,B.jsx)(_,{type:"number",value:r.value,onChange:l=>v("value",Number(l.target.value)),onBlur:()=>y(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,B.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("value"),children:["\xA3",(m=r.value)==null?void 0:m.toLocaleString()]})}),(0,B.jsxs)("div",{className:"grid gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),b==="assignee"?(0,B.jsxs)(ge,{value:((O=(P=r==null?void 0:r.assignee)==null?void 0:P.id)==null?void 0:O.toString())||"",onValueChange:l=>v("assignee",l),children:[(0,B.jsx)(re,{children:(0,B.jsx)(be,{placeholder:"Select assignee"})}),(0,B.jsx)(ae,{children:t&&t.map(l=>{var k;return(0,B.jsx)(ie,{value:((k=l==null?void 0:l.id)==null?void 0:k.toString())||"",children:l.name},l.id)})})]}):(0,B.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("assignee"),children:[(0,B.jsx)(nt.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,B.jsx)("span",{children:r.assignee.name})]})]}),(0,B.jsxs)("div",{className:"grid gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),b==="closureDate"?(0,B.jsx)(_,{type:"date",value:r.closureDate.split("B")[0],onChange:l=>v("closureDate",l.target.value),onBlur:()=>y(null),autoFocus:!0}):(0,B.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("closureDate"),children:[(0,B.jsx)(nt.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,B.jsx)("span",{children:new Date(r.closureDate).toLocaleDateString("en-GB")})]})]})]}),(0,B.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,B.jsxs)("div",{className:"grid gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Description"}),b==="description"?(0,B.jsx)(te,{value:r.description,onChange:l=>v("description",l.target.value),onBlur:()=>y(null),className:"min-h-[100px]",autoFocus:!0}):(0,B.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>y("description"),children:r.description})]})}),(0,B.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,B.jsxs)("div",{className:"grid gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Status"}),b==="status"?(0,B.jsxs)(ge,{value:r.status,onValueChange:l=>{v("status",l),y(null)},children:[(0,B.jsx)(re,{children:(0,B.jsx)(be,{placeholder:"Select status"})}),(0,B.jsx)(ae,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(l=>(0,B.jsx)(ie,{value:l,children:l},l))})]}):(0,B.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("status"),children:r.status})]}),(0,B.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Categories"}),b==="categories"?(0,B.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.map(l=>(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,B.jsx)(se,{id:l.id,checked:r.categories.includes(l.id),onCheckedChange:()=>R(l.id)}),(0,B.jsx)("label",{htmlFor:l.id,className:`text-sm font-medium ${W(l.type)} px-2 py-1 rounded`,children:l.name})]},l.id))}):(0,B.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("categories"),children:r.categories.map(l=>{let k=a.find(U=>U.id===l);return k?(0,B.jsx)(ke,{variant:"secondary",className:W(k.type),children:k.name},k.id):null})})]})]}),(0,B.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,B.jsxs)("div",{className:"grid gap-2",children:[(0,B.jsx)(L,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,B.jsx)(ve,{className:"h-[200px] overflow-y-auto",children:(0,B.jsx)("div",{className:"space-y-2",children:r.comments.slice().sort((l,k)=>new Date(k.timestamp).getTime()-new Date(l.timestamp).getTime()).map(l=>{var k;return(0,B.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,B.jsx)("p",{className:"text-sm text-gray-700",children:l.text}),(0,B.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(k=l==null?void 0:l.author)==null?void 0:k.name," - ",new Date(l.timestamp).toLocaleString()]})]},l.id)})})}),(0,B.jsxs)("div",{className:"flex mt-2",children:[(0,B.jsx)(_,{value:w,onChange:l=>S(l.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,B.jsxs)(H,{onClick:E,className:"ml-2",children:[(0,B.jsx)(nt.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,B.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(r.updatedAt).toLocaleString()]})]})]})]})})}var le=z(require("react"));var Fe=le.forwardRef(({className:e,...t},o)=>(0,B.jsx)("div",{ref:o,className:f("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Fe.displayName="Card";var We=le.forwardRef(({className:e,...t},o)=>(0,B.jsx)("div",{ref:o,className:f("flex flex-col space-y-1.5 p-6",e),...t}));We.displayName="CardHeader";var Ge=le.forwardRef(({className:e,...t},o)=>(0,B.jsx)("div",{ref:o,className:f("font-semibold leading-none tracking-tight",e),...t}));Ge.displayName="CardTitle";var Po=le.forwardRef(({className:e,...t},o)=>(0,B.jsx)("div",{ref:o,className:f("text-sm text-muted-foreground",e),...t}));Po.displayName="CardDescription";var Oe=le.forwardRef(({className:e,...t},o)=>(0,B.jsx)("div",{ref:o,className:f("p-6 pt-0",e),...t}));Oe.displayName="CardContent";var Do=le.forwardRef(({className:e,...t},o)=>(0,B.jsx)("div",{ref:o,className:f("flex items-center p-6 pt-0",e),...t}));Do.displayName="CardFooter";function Ue({deal:e,customer:t,categories:o,onClick:a}){let n=o.find(i=>i.type==="proposition"&&e.categories.includes(i.id));return(0,B.jsxs)(Fe,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:a,children:[(0,B.jsxs)(We,{className:"pb-2",children:[(0,B.jsx)("div",{className:"flex justify-between items-center",children:(0,B.jsx)(Ge,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,B.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,B.jsxs)(Oe,{children:[(0,B.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,B.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,B.jsx)(nt.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,B.jsx)("span",{children:e.assignee.name})]}),(0,B.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,B.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,B.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,B.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,B.jsx)(nt.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,B.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,B.jsx)("div",{className:"flex justify-between items-left",children:n&&(0,B.jsx)(ke,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:n.name})})]})]})}var Ae=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function _e({onSubmit:e}){var n;let[t,o]=(0,Me.useState)({name:"",intro:"",active:!0});return(0,B.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,B.jsxs)("div",{className:"space-y-2",children:[(0,B.jsx)(L,{htmlFor:"customerName",children:"Customer Name"}),(0,B.jsx)(_,{id:"customerName",value:t.name,onChange:i=>o({...t,name:i.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,B.jsxs)("div",{className:"space-y-2",children:[(0,B.jsx)(L,{htmlFor:"customerIntro",children:"Intro"}),(0,B.jsx)(te,{id:"customerIntro",value:(n=t.intro)!=null?n:"",onChange:i=>o({...t,intro:i.target.value}),placeholder:"Enter customer intro"})]}),(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,B.jsx)(se,{id:"activeCustomer",checked:!!t.active,onCheckedChange:i=>o({...t,active:i})}),(0,B.jsx)(L,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,B.jsx)(H,{type:"submit",className:"w-full",children:"Add Customer"})]})}function je({customers:e,users:t,categories:o,onSubmit:a,initialDeal:n,onAddCustomer:i,onClose:d}){var R,E,W,G;let[r,g]=(0,Me.useState)(n||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("B")[0],closureDate:"",comments:[],description:""}),[w,S]=(0,Me.useState)(!1),[p,x]=(0,Me.useState)({});(0,Me.useEffect)(()=>{n&&g(n)},[n]);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"),x(m),Object.keys(m).length===0},y=m=>{m.preventDefault(),b()&&(a({...r}),g({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),x({}),d==null||d())},C=m=>{g(P=>{var O;return{...P,categories:(O=P.categories)!=null&&O.includes(m)?P.categories.filter(l=>l!==m):[...P.categories||[],m]}})},v=m=>{e.push(m),g({...r,customer:m}),S(!1),i(m)};return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("form",{onSubmit:y,className:"space-y-6",children:[(0,B.jsx)(ve,{className:"h-[60vh] pr-4",children:(0,B.jsxs)("div",{className:"space-y-6 px-4",children:[(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(L,{htmlFor:"customer",children:"Customer"}),(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,B.jsxs)(ge,{value:(E=(R=r.customer)==null?void 0:R.id)==null?void 0:E.toString(),onValueChange:m=>g({...r,customer:{id:Number(m)}}),children:[(0,B.jsx)(re,{children:(0,B.jsx)(be,{placeholder:"Select customer"})}),(0,B.jsx)(ae,{children:e.map(m=>{var P;return(0,B.jsx)(ie,{value:((P=m.id)==null?void 0:P.toString())||"",children:m.name},m.id)})})]}),(0,B.jsx)(H,{variant:"outline",size:"icon",onClick:()=>S(!0),children:(0,B.jsx)(nt.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,B.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(L,{htmlFor:"value",children:"Value"}),(0,B.jsx)(_,{id:"value",type:"number",value:r.value||"",onChange:m=>g({...r,value:Number.parseFloat(m.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,B.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(L,{htmlFor:"assignee",children:"Assignee"}),(0,B.jsxs)(ge,{value:(G=(W=r.assignee)==null?void 0:W.id)==null?void 0:G.toString(),onValueChange:m=>g({...r,assignee:{id:Number(m)}}),children:[(0,B.jsx)(re,{children:(0,B.jsx)(be,{placeholder:"Select assignee"})}),(0,B.jsx)(ae,{children:t&&t.map(m=>{var P;return(0,B.jsx)(ie,{value:((P=m.id)==null?void 0:P.toString())||"",children:m.name},m.id)})})]}),p.assignee&&(0,B.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(L,{htmlFor:"description",children:"Description"}),(0,B.jsx)(te,{id:"description",value:r.description||"",onChange:m=>g({...r,description:m.target.value}),placeholder:"Enter deal description"})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(L,{children:"Categories"}),(0,B.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(m=>(0,B.jsxs)("div",{className:"space-y-2",children:[(0,B.jsx)("h4",{className:"text-sm font-medium",children:m.charAt(0).toUpperCase()+m.slice(1)}),(0,B.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.filter(P=>P.type===m).map(P=>{var O;return(0,B.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,B.jsx)(se,{id:P.id,checked:(O=r.categories)==null?void 0:O.includes(P.id),onCheckedChange:()=>C(P.id)}),(0,B.jsx)("label",{htmlFor:P.id,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:P.name})]},P.id)})})]},m))})]}),(0,B.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,B.jsx)(L,{htmlFor:"closureDate",children:"Closure Date"}),(0,B.jsx)(_,{id:"closureDate",type:"date",value:r.closureDate,onChange:m=>g({...r,closureDate:m.target.value})}),p.closureDate&&(0,B.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,B.jsx)(H,{type:"submit",className:"w-full",children:n?"Update Deal":"Add Deal"})]}),(0,B.jsx)(fe,{open:w,onOpenChange:S,children:(0,B.jsxs)(Z,{children:[(0,B.jsx)(Y,{children:(0,B.jsx)(ee,{children:"Add New Customer"})}),(0,B.jsx)(_e,{onSubmit:v})]})})]})}function Ke({status:e,deals:t,users:o,customers:a,categories:n,onDealClick:i,calculateColumnValue:d,calculateWeightedValue:r,addNewDeal:g,onAddCustomer:w}){let[S,p]=(0,Me.useState)(!1);return(0,B.jsxs)("div",{className:"flex flex-col w-80",children:[(0,B.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),g&&(0,B.jsxs)(fe,{open:S,onOpenChange:p,children:[(0,B.jsx)(lt,{asChild:!0,children:(0,B.jsxs)(H,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,B.jsx)(nt.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,B.jsxs)(Z,{children:[(0,B.jsx)(Y,{children:(0,B.jsx)(ee,{children:"Add New Deal"})}),(0,B.jsx)(je,{customers:a,users:o,categories:n,onSubmit:g,onAddCustomer:w,onClose:()=>p(!1)})]})]}),(0,B.jsx)(Ae.Droppable,{droppableId:e,isDropDisabled:!1,children:x=>(0,B.jsxs)("div",{ref:x.innerRef,...x.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((b,y)=>(0,B.jsx)(Ae.Draggable,{draggableId:b.id.toString(),index:b.id,children:C=>(0,B.jsx)("div",{ref:C.innerRef,...C.draggableProps,...C.dragHandleProps,children:(0,B.jsx)(Ue,{deal:b,customer:a.find(v=>v.id===b.customer.id),categories:n,onClick:()=>i(b)})})},b.id.toString())),x.placeholder]})}),(0,B.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,B.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,B.jsxs)("span",{className:"text-green-600",children:["\xA3",d(t).toLocaleString()]})]}),(0,B.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,B.jsxs)("span",{className:"text-blue-600",children:["\xA3",r(t,e).toLocaleString()]})]})]})]})}var ko=["Cold","Qualified","Proposal","SoW","Won","Lost"];function To({initialData:e,addNewDeal:t,updateDeal:o,addComment:a,addNewCustomer:n}){let[i,d]=(0,Me.useState)(null),r=p=>e.deals.filter(x=>x.status===p),g=p=>p.reduce((x,b)=>x+(b.value||0),0),w=(p,x)=>{let b={Cold:.2,Qualified:.4,Proposal:.6,SoW:.7,Won:1,Lost:0};return p.reduce((y,C)=>y+(C.value||0)*b[x],0)},S=(0,Me.useCallback)(p=>{let{source:x,destination:b}=p;if(!b||x.droppableId===b.droppableId&&x.index===b.index)return;let y=x.droppableId,C=b.droppableId;console.log("Moving from ",y,"to",C);let v=[...e.deals],[R]=v.splice(x.index,1);R.status=C,v.splice(b.index,0,R),o(R)},[o]);return(0,B.jsx)(Ae.DragDropContext,{onDragEnd:S,children:(0,B.jsxs)("div",{className:"p-4",children:[(0,B.jsx)("div",{className:"flex space-x-4 overflow-x-auto pb-4",children:ko.filter(p=>p!=="Won"&&p!=="Lost").map(p=>{let x=r(p);return(0,B.jsx)(Ke,{status:p,deals:x,customers:e.customers,users:e.users,categories:e.categories,onDealClick:d,calculateColumnValue:g,calculateWeightedValue:w,addNewDeal:p==="Cold"?t:void 0,onAddCustomer:n},p)})}),i&&(0,B.jsx)(Ve,{deal:i,users:e.users,customer:e.customers.find(p=>p.id===i.customer.id),categories:e.categories,onClose:()=>d(null),onSave:o,onAddComment:p=>a(i.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-LE5KFDND.mjs";import{a as e}from"../../chunk-72SXYDHA.mjs";import{a as d}from"../../chunk-ZXPDKKGX.mjs";import{a as c}from"../../chunk-3FW5YDNM.mjs";import{a as b}from"../../chunk-QH3BNFVD.mjs";import{a}from"../../chunk-5PW2VQWX.mjs";import"../../chunk-4NKKWJ2X.mjs";import"../../chunk-4JC2TJML.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-A5EYIB3V.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.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 +1 @@
|
|
|
1
|
-
import{a as d}from"../../chunk-FGWIT6CV.mjs";import{a}from"../../chunk-ZWKWU7U4.mjs";import{a as e}from"../../chunk-YCX5N23N.mjs";import{a as g}from"../../chunk-66ZAIUUI.mjs";import{a as f}from"../../chunk-TQCGX4Y6.mjs";import
|
|
1
|
+
import{a as d}from"../../chunk-FGWIT6CV.mjs";import{a}from"../../chunk-ZWKWU7U4.mjs";import{a as e}from"../../chunk-YCX5N23N.mjs";import{a as g}from"../../chunk-66ZAIUUI.mjs";import{a as f}from"../../chunk-TQCGX4Y6.mjs";import{a as b}from"../../chunk-VZXLXNVY.mjs";import{a as c}from"../../chunk-Y2KKUQDU.mjs";import"../../chunk-JWDVKGZL.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-SFLOMJ2U.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{b as CustomerCard,c as EventCard,a as FeatureCard,e as Image,g as PricingCard,d as ProjectCard,f as ServiceCard};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunk-CWNEDSLD.mjs";import"../../../chunk-PRUIYGQW.mjs";import"../../../chunk-H4Y4SZIU.mjs";import"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-CWNEDSLD.mjs";import"../../../chunk-PRUIYGQW.mjs";import"../../../chunk-H4Y4SZIU.mjs";import"../../../chunk-RBZMFLLA.mjs";import"../../../chunk-WRPART4J.mjs";import"../../../chunk-7VKHSE4O.mjs";import"../../../chunk-N6EJQZAV.mjs";import"../../../chunk-HWEPDRG6.mjs";import"../../../chunk-XGQLOPHW.mjs";import"../../../chunk-4NKKWJ2X.mjs";import"../../../chunk-4JC2TJML.mjs";import"../../../chunk-JWDVKGZL.mjs";import"../../../chunk-A5EYIB3V.mjs";import"../../../chunk-DWRQHV42.mjs";import"../../../chunk-Y5ZFXDW5.mjs";import"../../../chunk-AWFQEK7A.mjs";import"../../../chunk-3YZN4MJB.mjs";import"../../../chunk-WNPA7YT3.mjs";import"../../../chunk-D43ENVPX.mjs";import"../../../chunk-BSQVKZCW.mjs";import"../../../chunk-Y5VTKEKS.mjs";import"../../../chunk-CGBVZQYY.mjs";import"../../../chunk-YNCJATT7.mjs";import"../../../chunk-QOIH63J3.mjs";import"../../../chunk-OAOCXXC2.mjs";import"../../../chunk-SBM5HULF.mjs";import"../../../chunk-Q6SEVCRG.mjs";import"../../../chunk-GLEWUUGS.mjs";import"../../../chunk-YNNW2C2U.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-6K2R3OAD.mjs";import"../../../chunk-FRWX5YES.mjs";import"../../../chunk-CV7PH2KH.mjs";import"../../../chunk-S7OK7D5I.mjs";export{a as PostHero};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";var ft=Object.create;var Z=Object.defineProperty;var bt=Object.getOwnPropertyDescriptor;var yt=Object.getOwnPropertyNames;var ht=Object.getPrototypeOf,xt=Object.prototype.hasOwnProperty;var vt=(t,e)=>{for(var r in e)Z(t,r,{get:e[r],enumerable:!0})},Te=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of yt(e))!xt.call(t,n)&&n!==r&&Z(t,n,{get:()=>e[n],enumerable:!(a=bt(e,n))||a.enumerable});return t};var G=(t,e,r)=>(r=t!=null?ft(ht(t)):{},Te(e||!t||!t.__esModule?Z(r,"default",{value:t,enumerable:!0}):r,t)),wt=t=>Te(Z({},"__esModule",{value:!0}),t);var ar={};vt(ar,{Breadcrumbs:()=>we,RenderHero:()=>or});module.exports=wt(ar);var se=require("@heroicons/react/20/solid");var it=G(require("next/image"));var Ge=require("clsx");var ue="-",kt=t=>{let e=At(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:i=>{let s=i.split(ue);return s[0]===""&&s.length!==1&&s.shift(),Me(s,e)||Ct(i)},getConflictingClassGroupIds:(i,s)=>{let d=r[i]||[];return s&&a[i]?[...d,...a[i]]:d}}},Me=(t,e)=>{var i;if(t.length===0)return e.classGroupId;let r=t[0],a=e.nextPart.get(r),n=a?Me(t.slice(1),a):void 0;if(n)return n;if(e.validators.length===0)return;let o=t.join(ue);return(i=e.validators.find(({validator:s})=>s(o)))==null?void 0:i.classGroupId},Ie=/^\[(.+)\]$/,Ct=t=>{if(Ie.test(t)){let e=Ie.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},At=t=>{let{theme:e,prefix:r}=t,a={nextPart:new Map,validators:[]};return Pt(Object.entries(t.classGroups),r).forEach(([o,i])=>{me(i,a,o,e)}),a},me=(t,e,r,a)=>{t.forEach(n=>{if(typeof n=="string"){let o=n===""?e:Se(e,n);o.classGroupId=r;return}if(typeof n=="function"){if(Nt(n)){me(n(a),e,r,a);return}e.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([o,i])=>{me(i,Se(e,o),r,a)})})},Se=(t,e)=>{let r=t;return e.split(ue).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},Nt=t=>t.isThemeGetter,Pt=(t,e)=>e?t.map(([r,a])=>{let n=a.map(o=>typeof o=="string"?e+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,s])=>[e+i,s])):o);return[r,n]}):t,Rt=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,a=new Map,n=(o,i)=>{r.set(o,i),e++,e>t&&(e=0,a=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=a.get(o))!==void 0)return n(o,i),i},set(o,i){r.has(o)?r.set(o,i):n(o,i)}}},ze="!",Bt=t=>{let{separator:e,experimentalParseClassName:r}=t,a=e.length===1,n=e[0],o=e.length,i=s=>{let d=[],g=0,f=0,w;for(let y=0;y<s.length;y++){let x=s[y];if(g===0){if(x===n&&(a||s.slice(y,y+o)===e)){d.push(s.slice(f,y)),f=y+o;continue}if(x==="/"){w=y;continue}}x==="["?g++:x==="]"&&g--}let h=d.length===0?s:s.substring(f),P=h.startsWith(ze),R=P?h.substring(1):h,b=w&&w>f?w-f:void 0;return{modifiers:d,hasImportantModifier:P,baseClassName:R,maybePostfixModifierPosition:b}};return r?s=>r({className:s,parseClassName:i}):i},Tt=t=>{if(t.length<=1)return t;let e=[],r=[];return t.forEach(a=>{a[0]==="["?(e.push(...r.sort(),a),r=[]):r.push(a)}),e.push(...r.sort()),e},It=t=>({cache:Rt(t.cacheSize),parseClassName:Bt(t),...kt(t)}),St=/\s+/,Mt=(t,e)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:n}=e,o=[],i=t.trim().split(St),s="";for(let d=i.length-1;d>=0;d-=1){let g=i[d],{modifiers:f,hasImportantModifier:w,baseClassName:h,maybePostfixModifierPosition:P}=r(g),R=!!P,b=a(R?h.substring(0,P):h);if(!b){if(!R){s=g+(s.length>0?" "+s:s);continue}if(b=a(h),!b){s=g+(s.length>0?" "+s:s);continue}R=!1}let y=Tt(f).join(":"),x=w?y+ze:y,C=x+b;if(o.includes(C))continue;o.push(C);let L=n(b,R);for(let H=0;H<L.length;++H){let Y=L[H];o.push(x+Y)}s=g+(s.length>0?" "+s:s)}return s};function zt(){let t=0,e,r,a="";for(;t<arguments.length;)(e=arguments[t++])&&(r=Ee(e))&&(a&&(a+=" "),a+=r);return a}var Ee=t=>{if(typeof t=="string")return t;let e,r="";for(let a=0;a<t.length;a++)t[a]&&(e=Ee(t[a]))&&(r&&(r+=" "),r+=e);return r};function Et(t,...e){let r,a,n,o=i;function i(d){let g=e.reduce((f,w)=>w(f),t());return r=It(g),a=r.cache.get,n=r.cache.set,o=s,s(d)}function s(d){let g=a(d);if(g)return g;let f=Mt(d,r);return n(d,f),f}return function(){return o(zt.apply(null,arguments))}}var p=t=>{let e=r=>r[t]||[];return e.isThemeGetter=!0,e},Fe=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ft=/^\d+\/\d+$/,Lt=new Set(["px","full","screen"]),Ht=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gt=/\d+(%|px|r?em|[sdl]?je([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$/,Ut=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Dt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ot=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,S=t=>O(t)||Lt.has(t)||Ft.test(t),z=t=>j(t,"length",Yt),O=t=>!!t&&!Number.isNaN(Number(t)),pe=t=>j(t,"number",O),Q=t=>!!t&&Number.isInteger(Number(t)),jt=t=>t.endsWith("%")&&O(t.slice(0,-1)),l=t=>Fe.test(t),E=t=>Ht.test(t),Vt=new Set(["length","size","percentage"]),_t=t=>j(t,Vt,Le),Qt=t=>j(t,"position",Le),Jt=new Set(["image","url"]),Kt=t=>j(t,Jt,Wt),Xt=t=>j(t,"",qt),J=()=>!0,j=(t,e,r)=>{let a=Fe.exec(t);return a?a[1]?typeof e=="string"?a[1]===e:e.has(a[1]):r(a[2]):!1},Yt=t=>Gt.test(t)&&!Ut.test(t),Le=()=>!1,qt=t=>Dt.test(t),Wt=t=>Ot.test(t);var Zt=()=>{let t=p("colors"),e=p("spacing"),r=p("blur"),a=p("brightness"),n=p("borderColor"),o=p("borderRadius"),i=p("borderSpacing"),s=p("borderWidth"),d=p("contrast"),g=p("grayscale"),f=p("hueRotate"),w=p("invert"),h=p("gap"),P=p("gradientColorStops"),R=p("gradientColorStopPositions"),b=p("inset"),y=p("margin"),x=p("opacity"),C=p("padding"),L=p("saturate"),H=p("scale"),Y=p("sepia"),ke=p("skew"),Ce=p("space"),Ae=p("translate"),ie=()=>["auto","contain","none"],le=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto",l,e],u=()=>[l,e],Ne=()=>["",S,z],q=()=>["auto",O,l],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"],de=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",l],Be=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[O,l];return{cacheSize:500,separator:":",theme:{colors:[J],spacing:[S,z],blur:["none","",E,l],brightness:I(),borderColor:[t],borderRadius:["none","","full",E,l],borderSpacing:u(),borderWidth:Ne(),contrast:I(),grayscale:_(),hueRotate:I(),invert:_(),gap:u(),gradientColorStops:[t],gradientColorStopPositions:[jt,z],inset:ce(),margin:ce(),opacity:I(),padding:u(),saturate:I(),scale:I(),sepia:_(),skew:I(),space:u(),translate:u()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[E]}],"break-after":[{"break-after":Be()}],"break-before":[{"break-before":Be()}],"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(),l]}],overflow:[{overflow:le()}],"overflow-x":[{"overflow-x":le()}],"overflow-y":[{"overflow-y":le()}],overscroll:[{overscroll:ie()}],"overscroll-x":[{"overscroll-x":ie()}],"overscroll-y":[{"overscroll-y":ie()}],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",Q,l]}],basis:[{basis:ce()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",Q,l]}],"grid-cols":[{"grid-cols":[J]}],"col-start-end":[{col:["auto",{span:["full",Q,l]},l]}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":[J]}],"row-start-end":[{row:["auto",{span:[Q,l]},l]}],"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",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...de()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...de(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...de(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[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]}],je:[{je:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[Ce]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Ce]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,e]}],"min-w":[{"min-w":[l,e,"min","max","fit"]}],"max-w":[{"max-w":[l,e,"none","full","min","max","fit","prose",{screen:[E]},E]}],h:[{h:[l,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,e,"auto","min","max","fit"]}],"font-size":[{text:["base",E,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pe]}],"font-family":[{font:[J]}],"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",l]}],"line-clamp":[{"line-clamp":["none",O,pe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",S,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",S,z]}],"underline-offset":[{"underline-offset":["auto",S,l]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],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",l]}],"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:[...Pe(),Qt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_t]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Kt]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[R]}],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],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-je":[{"rounded-je":[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-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:W()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[S,l]}],"outline-w":[{outline:[S,z]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:Ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[S,z]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",E,Xt]}],"shadow-color":[{shadow:[J]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...Re(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Re()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",E,l]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[w]}],saturate:[{saturate:[L]}],sepia:[{sepia:[Y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[L]}],"backdrop-sepia":[{"backdrop-sepia":[Y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[H]}],"scale-x":[{"scale-x":[H]}],"scale-y":[{"scale-y":[H]}],rotate:[{rotate:[Q,l]}],"translate-x":[{"translate-x":[Ae]}],"translate-y":[{"translate-y":[Ae]}],"skew-x":[{"skew-x":[ke]}],"skew-y":[{"skew-y":[ke]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","je-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-je":[{"scroll-je":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"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",l]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[S,z,pe]}],stroke:[{stroke:[t,"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","me","je","mr","mb","ml"],mx:["mr","ml"],my:["je","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-je","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-je"],"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-me","scroll-je","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-je","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 He=Et(Zt);function m(...t){return He((0,Ge.clsx)(t))}var Ue=require("@radix-ui/react-slot"),De=require("class-variance-authority"),Oe=G(require("react")),je=require("react/jsx-runtime"),$t=(0,De.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-primary text-primary-foreground hover:bg-primary-ON_HOVER",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-secondary/80"}}}),K=Oe.forwardRef(({asChild:t=!1,className:e,size:r,variant:a,...n},o)=>(0,je.jsx)(t?Ue.Slot:"button",{className:m($t({className:e,size:r,variant:a})),ref:o,...n}));K.displayName="Button";var ge=G(require("next/link")),U=t=>{let{type:e,appearance:r="inline",children:a,className:n,label:o,newTab:i,reference:s,size:d,url:g}=t,f=e==="reference"&&typeof(s==null?void 0:s.value)=="object"&&s.value.slug?`${(s==null?void 0:s.relationTo)!=="pages"?`/${s==null?void 0:s.relationTo}`:""}/${s.value.slug}`:g;if(!f)return null;let w=r==="link"?"clear":d,h=i?{rel:"noopener noreferrer",target:"_blank"}:{};return r==="inline"?(0,je.jsxs)(ge.default,{className:m(n),href:f||g||"",...h,children:[o&&o,a&&a]}):(0,je.jsx)(K,{asChild:!0,className:n,size:w,variant:r,children:(0,je.jsxs)(ge.default,{className:m(n),href:f||g||"",...h,children:[o&&o,a&&a]})})};var Ye=require("react");var _e=G(require("next/image")),er={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},Ve="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=",Qe=t=>{let{alt:e,fill:r,imgClassName:a,priority:n,resource:o,size:i,src:s,loading:d}=t,g,f,w=e,h=s||"";if(!h&&o&&typeof o=="object"){let{alt:b,filename:y,height:x,url:C,width:L}=o;g=L,f=x,w=b||"",h=C||Ve}let P=d||"lazy",R=i||Object.entries(er).map(([,b])=>`(max-width: ${b}px) ${b*2}w`).join(", ");return(0,je.jsx)("picture",{children:(0,je.jsx)(_e.default,{alt:w||"",className:m(a),fill:r,height:r?void 0:f,placeholder:"blur",blurDataURL:Ve,priority:P!=="lazy"&&n,quality:100,loading:P,sizes:R,src:h,width:r?void 0:g})})};var Je=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var Ke=()=>{if(Je){let t=window.location.protocol,e=window.location.hostname,r=window.location.port;return`${t}//${e}${r?`:${r}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var Xe=t=>{let{onClick:e,resource:r,videoClassName:a}=t,n=(0,$.useRef)(null);if((0,$.useEffect)(()=>{let{current:o}=n;o&&o.addEventListener("suspend",()=>{})},[]),r&&typeof r=="object"){let{filename:o}=r;return(0,je.jsx)("video",{autoPlay:!0,className:m(a),controls:!1,loop:!0,muted:!0,onClick:e,playsInline:!0,ref:n,children:(0,je.jsx)("source",{src:`${Ke()}/media/${o}`})})}return null};var V=t=>{var i;let{className:e,htmlElement:r="div",resource:a}=t,n=typeof a=="object"&&((i=a==null?void 0:a.mimeType)==null?void 0:i.includes("video"));return(0,je.jsx)(r||Ye.Fragment,{...r!==null?{className:e}:{},children:n?(0,je.jsx)(Xe,{...t}):(0,je.jsx)(Qe,{...t})})};var qe=({className:t,content:e,style:r})=>(0,je.jsx)("div",{className:m("mx-auto my-8 w-full",t),children:(0,je.jsx)("div",{className:m("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,je.jsx)(N,{content:e,enableGutter:!1,enableProse:!1})})});var We=({links:t,richText:e})=>(0,je.jsx)("div",{className:"container",children:(0,je.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,je.jsx)("div",{className:"max-w-[48rem] flex items-center",children:e&&(0,je.jsx)(N,{className:"mb-0",content:e,enableGutter:!1})}),(0,je.jsx)("div",{className:"flex flex-col gap-8",children:(t||[]).map(({link:r},a)=>(0,je.jsx)(U,{size:"lg",...r},a))})]})});var re=require("prism-react-renderer");var Ze=require("lucide-react");function et({code:t}){let[e,r]=(0,$e.useState)("Copy");function a(){e==="Copy"&&(r(()=>"Copied!"),setTimeout(()=>{r(()=>"Copy")},1e3))}return(0,je.jsx)("div",{className:"flex justify-end align-middle",children:(0,je.jsxs)(K,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(t),a()},children:[(0,je.jsx)("p",{children:e}),(0,je.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,je.jsx)(Ze.ClipboardCopy,{})})]})})}var tt=({code:t,language:e=""})=>t?(0,je.jsx)(re.Highlight,{code:t,language:e,theme:re.themes.vsDark,children:({getLineProps:r,getTokenProps:a,tokens:n})=>(0,je.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[n.map((o,i)=>(0,je.jsxs)("div",{...r({className:"table-row",line:o}),children:[(0,je.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:i+1}),(0,je.jsx)("span",{className:"table-cell pl-4",children:o.map((s,d)=>(0,je.jsx)("span",{...a({token:s})},d))})]},i)),(0,je.jsx)(et,{code:t})]})}):null;var rt=({className:t,code:e,language:r})=>(0,je.jsx)("div",{className:[t,"not-prose"].filter(Boolean).join(" "),children:(0,je.jsx)(tt,{code:e,language:r})});var ot=t=>{let{className:e,enableGutter:r=!0,imgClassName:a,media:n,staticImage:o}=t;return(0,je.jsx)("div",{className:m("",{container:r},e),children:(0,je.jsx)(V,{imgClassName:m("border border-border rounded-[0.8rem]",a),resource:n,src:o})})};var at=t=>{let{className:e,enableGutter:r=!0,imgClassName:a,media:n,staticImage:o}=t;return(0,je.jsx)("div",{className:m("",{container:r},e),children:(0,je.jsx)(V,{imgClassName:m("border border-border rounded-[0.8rem]",a),resource:n,src:o})})};var nt=({title:t,description:e,features:r,id:a})=>(0,je.jsxs)("section",{className:m("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[t&&(0,je.jsx)("h2",{className:"mb-6 je-0 text-2xl font-bold md:text-3xl",id:a||"",children:t}),e&&typeof e=="string"&&(0,je.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:e}),e&&typeof e=="object"&&(0,je.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:(0,je.jsx)(N,{content:e,enableGutter:!1})}),(0,je.jsx)("div",{className:`grid gap-8 je-10 md:grid-cols-${r?r.length:1}`,children:r&&r.map((n,o)=>{let i=(0,je.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,je.jsx)("div",{className:"text-accent h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,je.jsx)("i",{className:`${n.icon.type} fa-${n.icon.icon} fa-4x`})}),(0,je.jsx)("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:n.title}),n.content&&typeof n.content!="object"&&(0,je.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:n.content}}),n.content&&typeof n.content=="object"&&(0,je.jsx)("div",{className:"text-lg opacity-80",children:(0,je.jsx)(N,{content:n.content,enableGutter:!1})})]},o);return n.link?(0,je.jsx)("a",{href:n.link.url?n.link.url:"#",className:"no-underline group",children:i},o):i})})]});var ae=G(require("react"));function oe({nodes:t}){return(0,je.jsx)(ae.Fragment,{children:t==null?void 0:t.map((e,r)=>{if(e==null)return null;if(e.type==="text"&&e.text){let o=(0,je.jsx)(ae.default.Fragment,{children:e.text},r);return e.format&1&&(o=(0,je.jsx)("strong",{children:o},r)),e.format&2&&(o=(0,je.jsx)("em",{children:o},r)),e.format&4&&(o=(0,je.jsx)("span",{style:{textDecoration:"line-through"},children:o},r)),e.format&8&&(o=(0,je.jsx)("span",{style:{textDecoration:"underline"},children:o},r)),e.format&16&&(o=(0,je.jsx)("code",{children:e.text},r)),e.format&32&&(o=(0,je.jsx)("sub",{children:o},r)),e.format&64&&(o=(0,je.jsx)("sup",{children:o},r)),o}if(e.type==="table")return(0,je.jsx)("table",{children:(0,je.jsx)("tbody",{children:e.children.map((o,i)=>(0,je.jsx)("tr",{children:o.children.map((s,d)=>(0,je.jsx)("td",{children:oe({nodes:s.children})},d))},i))})},r);let a=o=>{if(o.children==null)return null;if((o==null?void 0:o.type)==="list"&&(o==null?void 0:o.listType)==="check")for(let i of o.children)"checked"in i&&(i!=null&&i.checked||(i.checked=!1));return oe({nodes:o.children})},n="children"in e?a(e):"";if(e.type==="block"){let o=e.fields,i=o==null?void 0:o.blockType;if(!o||!i)return null;switch(i){case"cta":return(0,je.jsx)(We,{...o},r);case"mediaBlock":return(0,je.jsx)(ot,{className:"col-start-1 col-span-3",imgClassName:"m-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"imageBlock":return(0,je.jsx)(at,{className:"col-start-1 col-span-3",imgClassName:"m-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"banner":return(0,je.jsx)(qe,{className:"col-start-2 mb-4",...o},r);case"code":return(0,je.jsx)(rt,{className:"col-start-2",...o},r);case"features":return(0,je.jsx)(nt,{...o},r);default:return null}}else switch(e.type){case"linebreak":return(0,je.jsx)("br",{className:"col-start-2"},r);case"paragraph":return(0,je.jsx)("p",{className:"col-start-2",children:n},r);case"heading":{let o=e==null?void 0:e.tag;return(0,je.jsx)(o,{className:"col-start-2",id:(e==null?void 0:e.id)||"",children:n},r)}case"list":{let o=e==null?void 0:e.tag;return(0,je.jsx)(o,{className:"list col-start-2",children:n},r)}case"listitem":return(e==null?void 0:e.checked)!=null?(0,je.jsx)("li",{"aria-checked":e.checked?"true":"false",className:` ${e.checked,""}`,role:"checkbox",tabIndex:-1,value:e==null?void 0:e.value,children:n},r):(0,je.jsx)("li",{value:e==null?void 0:e.value,children:n},r);case"quote":return(0,je.jsx)("blockquote",{className:"col-start-2",children:n},r);case"link":{let o=e.fields;return(0,je.jsx)(U,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:n},r)}case"autolink":{let o=e.fields;return(0,je.jsx)(U,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:n},r)}default:return null}})})}var N=({className:t,content:e,enableGutter:r=!0,enableProse:a=!0})=>{var n;return e?(0,je.jsx)("div",{className:m({"container ":r,"max-w-none":!r,"mx-auto prose dark:prose-invert ":a},t),children:e&&!Array.isArray(e)&&typeof e=="object"&&"root"in e&&oe({nodes:(n=e==null?void 0:e.root)==null?void 0:n.children})}):null};var lt=({links:t,media:e,children:r,richText:a})=>(0,je.jsxs)("div",{className:"relative -je-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,je.jsx)("div",{className:"container mb-8 z-10 relative flex items-end justify-center",children:(0,je.jsxs)("div",{className:"text-center",children:[r||a&&(0,je.jsx)(N,{className:"mb-6 prose prose-h1:text-2xl dark:prose-headings:text-white prose-headings:text-gray-900 dark:prose-p:text-white prose-p:text-gray-900",content:a,enableGutter:!1}),Array.isArray(t)&&t.length>0&&(0,je.jsx)("ul",{className:"flex justify-center gap-4",children:t.map(({link:n},o)=>(0,je.jsx)("li",{children:(0,je.jsx)(U,{...n})},o))})]})}),(0,je.jsxs)("div",{className:"min-h-[80vh] select-none",children:[e&&typeof e=="object"&&(0,je.jsx)(V,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:e}),e&&typeof e=="string"&&(0,je.jsx)("div",{children:(0,je.jsx)(it.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:e})}),(0,je.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-background/0 dark:to-background"})]})]});var ct=({children:t,richText:e})=>(0,je.jsx)("div",{className:"min-w-full py-10 bg-muted je-24",children:(0,je.jsx)("div",{className:"container",children:t||e&&(0,je.jsx)(N,{content:e,enableGutter:!1})})});var ve=G(require("next/image"));var tr=({media:t})=>{if(t&&typeof t=="object"){let{alt:e,filename:r,height:a,url:n,width:o}=t;return(0,je.jsx)(ve.default,{className:"mix-blend-overlay opacity-50",alt:e||"",fill:!0,priority:!0,src:n||"",width:o||0,height:a||0,style:{objectFit:"cover"}})}else if(t&&typeof t=="string")return(0,je.jsx)("div",{children:(0,je.jsx)(ve.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:t,style:{objectFit:"cover"}})});return null},dt=({links:t,media:e,children:r,richText:a})=>(0,je.jsxs)("div",{className:"relative bg-brand-one pb-12 je-20 pt-10",children:[e&&(0,je.jsx)(tr,{media:e}),(0,je.jsx)("div",{className:"mx-0 min-w-full relative z-9",children:(0,je.jsx)("div",{className:"container text-brand-one-foreground",children:r||a&&(0,je.jsx)(N,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:a,enableProse:!0,enableGutter:!1})})})]});function pt({children:t,isFluid:e=!1,isNoPadding:r=!1,className:a=""}){let n=m("container",e&&"full-width",r&&"no-padding",a);return(0,je.jsx)("div",{className:n,children:t})}var ut=G(require("next/image"));function gt({title:t,breadcrumbItems:e,image:r}){return(0,je.jsxs)("section",{className:"-z-10 relative flex min-h-[250px] pt-auto items-end",children:[(0,je.jsx)("div",{className:"absolute inset-0 z-0",children:r&&(0,je.jsx)(ut.default,{priority:!0,src:r.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),(0,je.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),(0,je.jsx)(pt,{children:(0,je.jsxs)("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-x-20 gap-y-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,je.jsx)("h1",{className:"underline underline-offset-8 decoration-1 decoration-accent font-secondary text-5xl font-bold lg:w-1/2",children:t}),e&&e.length>0&&(0,je.jsx)(we,{breadcrumbItems:e})]})})]})}var rr={highImpact:lt,lowImpact:ct,mediumImpact:dt,sectionHero:gt},or=t=>{let{type:e}=t||{};if(!e||e==="none")return null;let r=rr[e];return r?(0,je.jsx)(r,{...t}):null};function we({breadcrumbItems:t}){if(t&&t.length>0){let e=t.filter(r=>r.label.toLowerCase()!=="home");return(0,je.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,je.jsxs)("ol",{role:"list",className:"flex items-center space-x-4",children:[(0,je.jsx)("li",{children:(0,je.jsx)("div",{children:(0,je.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,je.jsx)(se.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,je.jsx)("span",{className:"sr-only",children:"Home"})]})})}),e.map((r,a)=>(0,je.jsx)("li",{children:(0,je.jsxs)("div",{className:"flex items-center",children:[(0,je.jsx)(se.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),r.href?(0,je.jsx)("a",{href:r.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label}):(0,je.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label})]})},a))]})})}return(0,je.jsx)(je.Fragment,{})}0&&(module.exports={Breadcrumbs,RenderHero});
|
|
4
|
+
"use strict";var ft=Object.create;var Z=Object.defineProperty;var bt=Object.getOwnPropertyDescriptor;var yt=Object.getOwnPropertyNames;var ht=Object.getPrototypeOf,xt=Object.prototype.hasOwnProperty;var vt=(t,e)=>{for(var r in e)Z(t,r,{get:e[r],enumerable:!0})},Te=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of yt(e))!xt.call(t,n)&&n!==r&&Z(t,n,{get:()=>e[n],enumerable:!(a=bt(e,n))||a.enumerable});return t};var G=(t,e,r)=>(r=t!=null?ft(ht(t)):{},Te(e||!t||!t.__esModule?Z(r,"default",{value:t,enumerable:!0}):r,t)),wt=t=>Te(Z({},"__esModule",{value:!0}),t);var ar={};vt(ar,{Breadcrumbs:()=>we,RenderHero:()=>or});module.exports=wt(ar);var se=require("@heroicons/react/20/solid");var it=G(require("next/image"));var Ge=require("clsx");var ue="-",kt=t=>{let e=At(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:i=>{let s=i.split(ue);return s[0]===""&&s.length!==1&&s.shift(),Me(s,e)||Ct(i)},getConflictingClassGroupIds:(i,s)=>{let d=r[i]||[];return s&&a[i]?[...d,...a[i]]:d}}},Me=(t,e)=>{var i;if(t.length===0)return e.classGroupId;let r=t[0],a=e.nextPart.get(r),n=a?Me(t.slice(1),a):void 0;if(n)return n;if(e.validators.length===0)return;let o=t.join(ue);return(i=e.validators.find(({validator:s})=>s(o)))==null?void 0:i.classGroupId},Ie=/^\[(.+)\]$/,Ct=t=>{if(Ie.test(t)){let e=Ie.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},At=t=>{let{theme:e,prefix:r}=t,a={nextPart:new Map,validators:[]};return Pt(Object.entries(t.classGroups),r).forEach(([o,i])=>{me(i,a,o,e)}),a},me=(t,e,r,a)=>{t.forEach(n=>{if(typeof n=="string"){let o=n===""?e:Se(e,n);o.classGroupId=r;return}if(typeof n=="function"){if(Nt(n)){me(n(a),e,r,a);return}e.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([o,i])=>{me(i,Se(e,o),r,a)})})},Se=(t,e)=>{let r=t;return e.split(ue).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},Nt=t=>t.isThemeGetter,Pt=(t,e)=>e?t.map(([r,a])=>{let n=a.map(o=>typeof o=="string"?e+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,s])=>[e+i,s])):o);return[r,n]}):t,Rt=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,a=new Map,n=(o,i)=>{r.set(o,i),e++,e>t&&(e=0,a=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=a.get(o))!==void 0)return n(o,i),i},set(o,i){r.has(o)?r.set(o,i):n(o,i)}}},ze="!",Bt=t=>{let{separator:e,experimentalParseClassName:r}=t,a=e.length===1,n=e[0],o=e.length,i=s=>{let d=[],g=0,f=0,w;for(let y=0;y<s.length;y++){let x=s[y];if(g===0){if(x===n&&(a||s.slice(y,y+o)===e)){d.push(s.slice(f,y)),f=y+o;continue}if(x==="/"){w=y;continue}}x==="["?g++:x==="]"&&g--}let h=d.length===0?s:s.substring(f),P=h.startsWith(ze),R=P?h.substring(1):h,b=w&&w>f?w-f:void 0;return{modifiers:d,hasImportantModifier:P,baseClassName:R,maybePostfixModifierPosition:b}};return r?s=>r({className:s,parseClassName:i}):i},Tt=t=>{if(t.length<=1)return t;let e=[],r=[];return t.forEach(a=>{a[0]==="["?(e.push(...r.sort(),a),r=[]):r.push(a)}),e.push(...r.sort()),e},It=t=>({cache:Rt(t.cacheSize),parseClassName:Bt(t),...kt(t)}),St=/\s+/,Mt=(t,e)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:n}=e,o=[],i=t.trim().split(St),s="";for(let d=i.length-1;d>=0;d-=1){let g=i[d],{modifiers:f,hasImportantModifier:w,baseClassName:h,maybePostfixModifierPosition:P}=r(g),R=!!P,b=a(R?h.substring(0,P):h);if(!b){if(!R){s=g+(s.length>0?" "+s:s);continue}if(b=a(h),!b){s=g+(s.length>0?" "+s:s);continue}R=!1}let y=Tt(f).join(":"),x=w?y+ze:y,C=x+b;if(o.includes(C))continue;o.push(C);let L=n(b,R);for(let H=0;H<L.length;++H){let Y=L[H];o.push(x+Y)}s=g+(s.length>0?" "+s:s)}return s};function zt(){let t=0,e,r,a="";for(;t<arguments.length;)(e=arguments[t++])&&(r=Ee(e))&&(a&&(a+=" "),a+=r);return a}var Ee=t=>{if(typeof t=="string")return t;let e,r="";for(let a=0;a<t.length;a++)t[a]&&(e=Ee(t[a]))&&(r&&(r+=" "),r+=e);return r};function Et(t,...e){let r,a,n,o=i;function i(d){let g=e.reduce((f,w)=>w(f),t());return r=It(g),a=r.cache.get,n=r.cache.set,o=s,s(d)}function s(d){let g=a(d);if(g)return g;let f=Mt(d,r);return n(d,f),f}return function(){return o(zt.apply(null,arguments))}}var p=t=>{let e=r=>r[t]||[];return e.isThemeGetter=!0,e},Fe=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ft=/^\d+\/\d+$/,Lt=new Set(["px","full","screen"]),Ht=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gt=/\d+(%|px|r?em|[sdl]?je([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$/,Ut=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Dt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ot=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,S=t=>O(t)||Lt.has(t)||Ft.test(t),z=t=>j(t,"length",Yt),O=t=>!!t&&!Number.isNaN(Number(t)),pe=t=>j(t,"number",O),Q=t=>!!t&&Number.isInteger(Number(t)),jt=t=>t.endsWith("%")&&O(t.slice(0,-1)),l=t=>Fe.test(t),E=t=>Ht.test(t),Vt=new Set(["length","size","percentage"]),_t=t=>j(t,Vt,Le),Qt=t=>j(t,"position",Le),Jt=new Set(["image","url"]),Kt=t=>j(t,Jt,Wt),Xt=t=>j(t,"",qt),J=()=>!0,j=(t,e,r)=>{let a=Fe.exec(t);return a?a[1]?typeof e=="string"?a[1]===e:e.has(a[1]):r(a[2]):!1},Yt=t=>Gt.test(t)&&!Ut.test(t),Le=()=>!1,qt=t=>Dt.test(t),Wt=t=>Ot.test(t);var Zt=()=>{let t=p("colors"),e=p("spacing"),r=p("blur"),a=p("brightness"),n=p("borderColor"),o=p("borderRadius"),i=p("borderSpacing"),s=p("borderWidth"),d=p("contrast"),g=p("grayscale"),f=p("hueRotate"),w=p("invert"),h=p("gap"),P=p("gradientColorStops"),R=p("gradientColorStopPositions"),b=p("inset"),y=p("margin"),x=p("opacity"),C=p("padding"),L=p("saturate"),H=p("scale"),Y=p("sepia"),ke=p("skew"),Ce=p("space"),Ae=p("translate"),ie=()=>["auto","contain","none"],le=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto",l,e],u=()=>[l,e],Ne=()=>["",S,z],q=()=>["auto",O,l],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"],de=()=>["start","end","center","between","around","evenly","stretch"],_=()=>["","0",l],Be=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[O,l];return{cacheSize:500,separator:":",theme:{colors:[J],spacing:[S,z],blur:["none","",E,l],brightness:I(),borderColor:[t],borderRadius:["none","","full",E,l],borderSpacing:u(),borderWidth:Ne(),contrast:I(),grayscale:_(),hueRotate:I(),invert:_(),gap:u(),gradientColorStops:[t],gradientColorStopPositions:[jt,z],inset:ce(),margin:ce(),opacity:I(),padding:u(),saturate:I(),scale:I(),sepia:_(),skew:I(),space:u(),translate:u()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[E]}],"break-after":[{"break-after":Be()}],"break-before":[{"break-before":Be()}],"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(),l]}],overflow:[{overflow:le()}],"overflow-x":[{"overflow-x":le()}],"overflow-y":[{"overflow-y":le()}],overscroll:[{overscroll:ie()}],"overscroll-x":[{"overscroll-x":ie()}],"overscroll-y":[{"overscroll-y":ie()}],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",Q,l]}],basis:[{basis:ce()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",Q,l]}],"grid-cols":[{"grid-cols":[J]}],"col-start-end":[{col:["auto",{span:["full",Q,l]},l]}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":[J]}],"row-start-end":[{row:["auto",{span:[Q,l]},l]}],"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",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...de()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...de(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...de(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[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]}],je:[{je:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[Ce]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Ce]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,e]}],"min-w":[{"min-w":[l,e,"min","max","fit"]}],"max-w":[{"max-w":[l,e,"none","full","min","max","fit","prose",{screen:[E]},E]}],h:[{h:[l,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,e,"auto","min","max","fit"]}],"font-size":[{text:["base",E,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pe]}],"font-family":[{font:[J]}],"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",l]}],"line-clamp":[{"line-clamp":["none",O,pe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",S,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",S,z]}],"underline-offset":[{"underline-offset":["auto",S,l]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],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",l]}],"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:[...Pe(),Qt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_t]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Kt]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[R]}],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],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-je":[{"rounded-je":[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-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:W()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[S,l]}],"outline-w":[{outline:[S,z]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:Ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[S,z]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",E,Xt]}],"shadow-color":[{shadow:[J]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...Re(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Re()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",E,l]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[w]}],saturate:[{saturate:[L]}],sepia:[{sepia:[Y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[w]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[L]}],"backdrop-sepia":[{"backdrop-sepia":[Y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[H]}],"scale-x":[{"scale-x":[H]}],"scale-y":[{"scale-y":[H]}],rotate:[{rotate:[Q,l]}],"translate-x":[{"translate-x":[Ae]}],"translate-y":[{"translate-y":[Ae]}],"skew-x":[{"skew-x":[ke]}],"skew-y":[{"skew-y":[ke]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","je-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-je":[{"scroll-je":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"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",l]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[S,z,pe]}],stroke:[{stroke:[t,"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","me","je","mr","mb","ml"],mx:["mr","ml"],my:["je","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-je","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-je"],"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-me","scroll-je","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-je","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 He=Et(Zt);function m(...t){return He((0,Ge.clsx)(t))}var Ue=require("@radix-ui/react-slot"),De=require("class-variance-authority"),Oe=G(require("react")),je=require("react/jsx-runtime"),$t=(0,De.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-primary text-primary-foreground hover:bg-primary-ON_HOVER",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-secondary/80"}}}),K=Oe.forwardRef(({asChild:t=!1,className:e,size:r,variant:a,...n},o)=>(0,je.jsx)(t?Ue.Slot:"button",{className:m($t({className:e,size:r,variant:a})),ref:o,...n}));K.displayName="Button";var ge=G(require("next/link")),U=t=>{let{type:e,appearance:r="inline",children:a,className:n,label:o,newTab:i,reference:s,size:d,url:g}=t,f=e==="reference"&&typeof(s==null?void 0:s.value)=="object"&&s.value.slug?`${(s==null?void 0:s.relationTo)!=="pages"?`/${s==null?void 0:s.relationTo}`:""}/${s.value.slug}`:g;if(!f)return null;let w=r==="link"?"clear":d,h=i?{rel:"noopener noreferrer",target:"_blank"}:{};return r==="inline"?(0,je.jsxs)(ge.default,{className:m(n),href:f||g||"",...h,children:[o&&o,a&&a]}):(0,je.jsx)(K,{asChild:!0,className:n,size:w,variant:r,children:(0,je.jsxs)(ge.default,{className:m(n),href:f||g||"",...h,children:[o&&o,a&&a]})})};var Ye=require("react");var _e=G(require("next/image")),er={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},Ve="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=",Qe=t=>{let{alt:e,fill:r,imgClassName:a,priority:n,resource:o,size:i,src:s,loading:d}=t,g,f,w=e,h=s||"";if(!h&&o&&typeof o=="object"){let{alt:b,filename:y,height:x,url:C,width:L}=o;g=L,f=x,w=b||"",h=C||Ve}let P=d||"lazy",R=i||Object.entries(er).map(([,b])=>`(max-width: ${b}px) ${b*2}w`).join(", ");return(0,je.jsx)("picture",{children:(0,je.jsx)(_e.default,{alt:w||"",className:m(a),fill:r,height:r?void 0:f,placeholder:"blur",blurDataURL:Ve,priority:P!=="lazy"&&n,quality:100,loading:P,sizes:R,src:h,width:r?void 0:g})})};var Je=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var Ke=()=>{if(Je){let t=window.location.protocol,e=window.location.hostname,r=window.location.port;return`${t}//${e}${r?`:${r}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var Xe=t=>{let{onClick:e,resource:r,videoClassName:a}=t,n=(0,$.useRef)(null);if((0,$.useEffect)(()=>{let{current:o}=n;o&&o.addEventListener("suspend",()=>{})},[]),r&&typeof r=="object"){let{filename:o}=r;return(0,je.jsx)("video",{autoPlay:!0,className:m(a),controls:!1,loop:!0,muted:!0,onClick:e,playsInline:!0,ref:n,children:(0,je.jsx)("source",{src:`${Ke()}/media/${o}`})})}return null};var V=t=>{var i;let{className:e,htmlElement:r="div",resource:a}=t,n=typeof a=="object"&&((i=a==null?void 0:a.mimeType)==null?void 0:i.includes("video"));return(0,je.jsx)(r||Ye.Fragment,{...r!==null?{className:e}:{},children:n?(0,je.jsx)(Xe,{...t}):(0,je.jsx)(Qe,{...t})})};var qe=({className:t,content:e,style:r})=>(0,je.jsx)("div",{className:m("mx-auto my-8 w-full",t),children:(0,je.jsx)("div",{className:m("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,je.jsx)(N,{content:e,enableGutter:!1,enableProse:!1})})});var We=({links:t,richText:e})=>(0,je.jsx)("div",{className:"container",children:(0,je.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,je.jsx)("div",{className:"max-w-[48rem] flex items-center",children:e&&(0,je.jsx)(N,{className:"mb-0",content:e,enableGutter:!1})}),(0,je.jsx)("div",{className:"flex flex-col gap-8",children:(t||[]).map(({link:r},a)=>(0,je.jsx)(U,{size:"lg",...r},a))})]})});var re=require("prism-react-renderer");var Ze=require("lucide-react");function et({code:t}){let[e,r]=(0,$e.useState)("Copy");function a(){e==="Copy"&&(r(()=>"Copied!"),setTimeout(()=>{r(()=>"Copy")},1e3))}return(0,je.jsx)("div",{className:"flex justify-end align-middle",children:(0,je.jsxs)(K,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(t),a()},children:[(0,je.jsx)("p",{children:e}),(0,je.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,je.jsx)(Ze.ClipboardCopy,{})})]})})}var tt=({code:t,language:e=""})=>t?(0,je.jsx)(re.Highlight,{code:t,language:e,theme:re.themes.vsDark,children:({getLineProps:r,getTokenProps:a,tokens:n})=>(0,je.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[n.map((o,i)=>(0,je.jsxs)("div",{...r({className:"table-row",line:o}),children:[(0,je.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:i+1}),(0,je.jsx)("span",{className:"table-cell pl-4",children:o.map((s,d)=>(0,je.jsx)("span",{...a({token:s})},d))})]},i)),(0,je.jsx)(et,{code:t})]})}):null;var rt=({className:t,code:e,language:r})=>(0,je.jsx)("div",{className:[t,"not-prose"].filter(Boolean).join(" "),children:(0,je.jsx)(tt,{code:e,language:r})});var ot=t=>{let{className:e,enableGutter:r=!0,imgClassName:a,media:n,staticImage:o}=t;return(0,je.jsx)("div",{className:m("",{container:r},e),children:(0,je.jsx)(V,{imgClassName:m("border border-border rounded-[0.8rem]",a),resource:n,src:o})})};var at=t=>{let{className:e,enableGutter:r=!0,imgClassName:a,media:n,staticImage:o}=t;return(0,je.jsx)("div",{className:m("",{container:r},e),children:(0,je.jsx)(V,{imgClassName:m("border border-border rounded-[0.8rem]",a),resource:n,src:o})})};var nt=({title:t,description:e,features:r,id:a})=>(0,je.jsxs)("section",{className:m("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[t&&(0,je.jsx)("h2",{className:"mb-6 je-0 text-2xl font-bold md:text-3xl",id:a||"",children:t}),e&&typeof e=="string"&&(0,je.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:e}),e&&typeof e=="object"&&(0,je.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:(0,je.jsx)(N,{content:e,enableGutter:!1})}),(0,je.jsx)("div",{className:`grid gap-8 je-10 md:grid-cols-${r?r.length:1}`,children:r&&r.map((n,o)=>{let i=(0,je.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,je.jsx)("div",{className:"text-accent h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,je.jsx)("i",{className:`${n.icon.type} fa-${n.icon.icon} fa-4x`})}),(0,je.jsx)("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:n.title}),n.content&&typeof n.content!="object"&&(0,je.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:n.content}}),n.content&&typeof n.content=="object"&&(0,je.jsx)("div",{className:"text-lg opacity-80",children:(0,je.jsx)(N,{content:n.content,enableGutter:!1})})]},o);return n.link?(0,je.jsx)("a",{href:n.link.url?n.link.url:"#",className:"no-underline group",children:i},o):i})})]});var ae=G(require("react"));function oe({nodes:t}){return(0,je.jsx)(ae.Fragment,{children:t==null?void 0:t.map((e,r)=>{if(e==null)return null;if(e.type==="text"&&e.text){let o=(0,je.jsx)(ae.default.Fragment,{children:e.text},r);return e.format&1&&(o=(0,je.jsx)("strong",{children:o},r)),e.format&2&&(o=(0,je.jsx)("em",{children:o},r)),e.format&4&&(o=(0,je.jsx)("span",{style:{textDecoration:"line-through"},children:o},r)),e.format&8&&(o=(0,je.jsx)("span",{style:{textDecoration:"underline"},children:o},r)),e.format&16&&(o=(0,je.jsx)("code",{children:e.text},r)),e.format&32&&(o=(0,je.jsx)("sub",{children:o},r)),e.format&64&&(o=(0,je.jsx)("sup",{children:o},r)),o}if(e.type==="table")return(0,je.jsx)("table",{children:(0,je.jsx)("tbody",{children:e.children.map((o,i)=>(0,je.jsx)("tr",{children:o.children.map((s,d)=>(0,je.jsx)("td",{children:oe({nodes:s.children})},d))},i))})},r);let a=o=>{if(o.children==null)return null;if((o==null?void 0:o.type)==="list"&&(o==null?void 0:o.listType)==="check")for(let i of o.children)"checked"in i&&(i!=null&&i.checked||(i.checked=!1));return oe({nodes:o.children})},n="children"in e?a(e):"";if(e.type==="block"){let o=e.fields,i=o==null?void 0:o.blockType;if(!o||!i)return null;switch(i){case"cta":return(0,je.jsx)(We,{...o},r);case"mediaBlock":return(0,je.jsx)(ot,{className:"col-start-1 col-span-3",imgClassName:"m-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"imageBlock":return(0,je.jsx)(at,{className:"col-start-1 col-span-3",imgClassName:"m-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"banner":return(0,je.jsx)(qe,{className:"col-start-2 mb-4",...o},r);case"code":return(0,je.jsx)(rt,{className:"col-start-2",...o},r);case"features":return(0,je.jsx)(nt,{...o},r);default:return null}}else switch(e.type){case"linebreak":return(0,je.jsx)("br",{className:"col-start-2"},r);case"paragraph":return(0,je.jsx)("p",{className:"col-start-2",children:n},r);case"heading":{let o=e==null?void 0:e.tag;return(0,je.jsx)(o,{className:"col-start-2",id:(e==null?void 0:e.id)||"",children:n},r)}case"list":{let o=e==null?void 0:e.tag;return(0,je.jsx)(o,{className:"list col-start-2",children:n},r)}case"listitem":return(e==null?void 0:e.checked)!=null?(0,je.jsx)("li",{"aria-checked":e.checked?"true":"false",className:` ${e.checked,""}`,role:"checkbox",tabIndex:-1,value:e==null?void 0:e.value,children:n},r):(0,je.jsx)("li",{value:e==null?void 0:e.value,children:n},r);case"quote":return(0,je.jsx)("blockquote",{className:"col-start-2",children:n},r);case"link":{let o=e.fields;return(0,je.jsx)(U,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:n},r)}case"autolink":{let o=e.fields;return(0,je.jsx)(U,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:n},r)}default:return null}})})}var N=({className:t,content:e,enableGutter:r=!0,enableProse:a=!0})=>{var n;return e?(0,je.jsx)("div",{className:m({"container ":r,"max-w-none":!r,"mx-auto prose dark:prose-invert ":a},t),children:e&&!Array.isArray(e)&&typeof e=="object"&&"root"in e&&oe({nodes:(n=e==null?void 0:e.root)==null?void 0:n.children})}):null};var lt=({links:t,media:e,children:r,richText:a})=>(0,je.jsxs)("div",{className:"relative -je-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,je.jsx)("div",{className:"container mb-8 z-10 relative flex items-end justify-center",children:(0,je.jsxs)("div",{className:"text-center",children:[r||a&&(0,je.jsx)(N,{className:"mb-6 prose prose-h1:text-2xl dark:prose-headings:text-white prose-headings:text-gray-900 dark:prose-p:text-white prose-p:text-gray-900",content:a,enableGutter:!1}),Array.isArray(t)&&t.length>0&&(0,je.jsx)("ul",{className:"flex justify-center gap-4",children:t.map(({link:n},o)=>(0,je.jsx)("li",{children:(0,je.jsx)(U,{...n})},o))})]})}),(0,je.jsxs)("div",{className:"min-h-[80vh] select-none",children:[e&&typeof e=="object"&&(0,je.jsx)(V,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:e}),e&&typeof e=="string"&&(0,je.jsx)("div",{children:(0,je.jsx)(it.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:e})}),(0,je.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-background/0 dark:to-background"})]})]});var ct=({children:t,richText:e})=>(0,je.jsx)("div",{className:"min-w-full py-10 bg-muted je-24",children:(0,je.jsx)("div",{className:"container",children:t||e&&(0,je.jsx)(N,{content:e,enableGutter:!1})})});var ve=G(require("next/image"));var tr=({media:t})=>{if(t&&typeof t=="object"){let{alt:e,filename:r,height:a,url:n,width:o}=t;return(0,je.jsx)(ve.default,{className:"mix-blend-overlay opacity-50",alt:e||"",fill:!0,priority:!0,src:n||"",width:o||0,height:a||0,style:{objectFit:"cover"}})}else if(t&&typeof t=="string")return(0,je.jsx)("div",{children:(0,je.jsx)(ve.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:t,style:{objectFit:"cover"}})});return null},dt=({links:t,media:e,children:r,richText:a})=>(0,je.jsxs)("div",{className:"relative bg-brand-one pb-12 je-20 pt-10",children:[e&&(0,je.jsx)(tr,{media:e}),(0,je.jsx)("div",{className:"mx-0 min-w-full relative z-9",children:(0,je.jsx)("div",{className:"container text-brand-one-foreground",children:r||a&&(0,je.jsx)(N,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:a,enableProse:!0,enableGutter:!1})})})]});function pt({children:t,isFluid:e=!1,isNoPadding:r=!1,className:a=""}){let n=m("container",e&&"full-width",r&&"no-padding",a);return(0,je.jsx)("div",{className:n,children:t})}var ut=G(require("next/image"));function gt({title:t,breadcrumbItems:e,image:r}){return(0,je.jsxs)("section",{className:"-z-10 relative flex min-h-[250px] pt-auto items-end",children:[(0,je.jsx)("div",{className:"absolute inset-0 z-0",children:r&&(0,je.jsx)(ut.default,{priority:!0,src:r.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),(0,je.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),(0,je.jsx)(pt,{children:(0,je.jsxs)("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-x-20 gap-y-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,je.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:w-1/2",children:t}),e&&e.length>0&&(0,je.jsx)(we,{breadcrumbItems:e})]})})]})}var rr={highImpact:lt,lowImpact:ct,mediumImpact:dt,sectionHero:gt},or=t=>{let{type:e}=t||{};if(!e||e==="none")return null;let r=rr[e];return r?(0,je.jsx)(r,{...t}):null};function we({breadcrumbItems:t}){if(t&&t.length>0){let e=t.filter(r=>r.label.toLowerCase()!=="home");return(0,je.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,je.jsxs)("ol",{role:"list",className:"flex items-center space-x-4",children:[(0,je.jsx)("li",{children:(0,je.jsx)("div",{children:(0,je.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,je.jsx)(se.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,je.jsx)("span",{className:"sr-only",children:"Home"})]})})}),e.map((r,a)=>(0,je.jsx)("li",{children:(0,je.jsxs)("div",{className:"flex items-center",children:[(0,je.jsx)(se.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),r.href?(0,je.jsx)("a",{href:r.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label}):(0,je.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:r.label})]})},a))]})})}return(0,je.jsx)(je.Fragment,{})}0&&(module.exports={Breadcrumbs,RenderHero});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,c as b}from"../../chunk-
|
|
1
|
+
import{b as a,c as b}from"../../chunk-CBDDGINA.mjs";import"../../chunk-7322R3ID.mjs";import"../../chunk-Q5EQOIL7.mjs";import"../../chunk-YQZH5MJU.mjs";import"../../chunk-QIGWPB3D.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-NWW7KWJK.mjs";import"../../chunk-UK4IPFAO.mjs";import"../../chunk-HUN2X4VH.mjs";import"../../chunk-ICTOXY7D.mjs";import"../../chunk-YNDKGRL6.mjs";import"../../chunk-TFWGOEV7.mjs";import"../../chunk-763KMQIQ.mjs";import"../../chunk-J2VQUYES.mjs";import"../../chunk-SJWGFZJ6.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-UESKYRNK.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{b as Breadcrumbs,a as RenderHero};
|