cortex-react-components 1.67.0 → 1.67.2
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-DOFKMHT2.mjs → chunk-22SIVBWN.mjs} +1 -1
- package/dist/{chunk-A4BEHDZD.mjs → chunk-2MTAQ2YX.mjs} +1 -1
- package/dist/{chunk-PADGOK5C.mjs → chunk-37NBXA5G.mjs} +1 -1
- package/dist/{chunk-4GL57G4E.mjs → chunk-5J244QX4.mjs} +1 -1
- package/dist/{chunk-5BZ2F6QC.mjs → chunk-63YL7TOA.mjs} +1 -1
- package/dist/{chunk-SKQYQ4SD.mjs → chunk-737CTHXW.mjs} +1 -1
- package/dist/{chunk-ROEJPYRW.mjs → chunk-77KWI6EL.mjs} +1 -1
- package/dist/{chunk-N363IQBL.mjs → chunk-ANTK5LAD.mjs} +1 -1
- package/dist/chunk-ATUSSZXR.mjs +4 -0
- package/dist/{chunk-NTWNAEFS.mjs → chunk-DYW75KZH.mjs} +1 -1
- package/dist/{chunk-BMLVI7N2.mjs → chunk-ERUB6LU6.mjs} +1 -1
- package/dist/{chunk-OU3PM75Z.mjs → chunk-JBWGBBHF.mjs} +1 -1
- package/dist/{chunk-QPBS5LFV.mjs → chunk-JXW2QARY.mjs} +1 -1
- package/dist/{chunk-NIUDBN75.mjs → chunk-KD7K2ENG.mjs} +1 -1
- package/dist/{chunk-E7W2GFKO.mjs → chunk-L45A6K4C.mjs} +1 -1
- package/dist/{chunk-WLA5QCBE.mjs → chunk-MQRRCCAR.mjs} +1 -1
- package/dist/{chunk-VNGK6ACI.mjs → chunk-MRJQKF4Z.mjs} +1 -1
- package/dist/{chunk-7UO2RFVS.mjs → chunk-OETXRGQF.mjs} +1 -1
- package/dist/{chunk-RVQIK2IH.mjs → chunk-PKDUSZWL.mjs} +1 -1
- package/dist/{chunk-BGQKHEB3.mjs → chunk-QUOLG5NC.mjs} +1 -1
- package/dist/{chunk-XUEFN3EZ.mjs → chunk-RAYTIDSC.mjs} +1 -1
- package/dist/{chunk-ZYYWN6XG.mjs → chunk-SUO6GOJS.mjs} +1 -1
- package/dist/{chunk-7CT7LUE6.mjs → chunk-T2MQRMLU.mjs} +1 -1
- package/dist/{chunk-3NS4UQ6J.mjs → chunk-T6W76EOH.mjs} +1 -1
- package/dist/{chunk-PIPBEWH5.mjs → chunk-TASJS6US.mjs} +1 -1
- package/dist/{chunk-5WKGNZYL.mjs → chunk-TKHAUKFJ.mjs} +1 -1
- package/dist/{chunk-TIX4FFBC.mjs → chunk-V5EOKY7D.mjs} +1 -1
- package/dist/{chunk-T6FBWMZR.mjs → chunk-WKFNZUIR.mjs} +1 -1
- package/dist/{chunk-5WLZ6QNH.mjs → chunk-WSDHDEFO.mjs} +1 -1
- package/dist/{chunk-LYCOLJW7.mjs → chunk-ZKBLFPGO.mjs} +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/Content.stories.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/CogeBoard.mjs +1 -1
- package/dist/components/CRM/CogeBoard.stories.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.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.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.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/ContentCard.stories.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmission.js +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmission.stories.js +2 -2
- package/dist/components/DeliveryLead/DeliveryLeadSubmission.stories.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.js +2 -2
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.stories.js +2 -2
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.stories.mjs +1 -1
- package/dist/components/DeliveryLead/index.js +2 -2
- package/dist/components/DeliveryLead/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AddTaskModal.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/KanbanBoard.mjs +1 -1
- package/dist/components/DigitalColleagues/KanbanBoard.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskDetailsModal.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskDetailsModal.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskSidebar.stories.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/Print.stories.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/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +2 -2
- 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/hooks/index.mjs +1 -1
- package/dist/index.js +9 -9
- 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/Printable.stories.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogList.stories.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/ImageSection.stories.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PageSections.stories.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/ServiceSection.stories.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-HKE5CQ6Y.mjs +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";var De=Object.create;var ee=Object.defineProperty;var Ve=Object.getOwnPropertyDescriptor;var We=Object.getOwnPropertyNames;var Oe=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty;var _e=(e,t)=>{for(var r in t)ee(e,r,{get:t[r],enumerable:!0})},fe=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of We(t))!Ue.call(e,s)&&s!==r&&ee(e,s,{get:()=>t[s],enumerable:!(n=Ve(t,s))||n.enumerable});return e};var K=(e,t,r)=>(r=e!=null?De(Oe(e)):{},fe(t||!e||!e.__esModule?ee(r,"default",{value:e,enumerable:!0}):r,e)),Fe=e=>fe(ee({},"__esModule",{value:!0}),e);var Mt={};_e(Mt,{Default:()=>jt,default:()=>Nt,exampleCustomerProjectPairs:()=>Be});module.exports=Fe(Mt);var M=require("react");var ze=require("clsx");var le="-",$e=e=>{let t=He(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:c=>{let l=c.split(le);return l[0]===""&&l.length!==1&&l.shift(),ve(l,t)||qe(c)},getConflictingClassGroupIds:(c,l)=>{let f=r[c]||[];return l&&n[c]?[...f,...n[c]]:f}}},ve=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),s=n?ve(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;let a=e.join(le);return t.validators.find(({validator:c})=>c(a))?.classGroupId},ge=/^\[(.+)\]$/,qe=e=>{if(ge.test(e)){let t=ge.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},He=e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Ke(Object.entries(e.classGroups),r).forEach(([a,c])=>{se(c,n,a,t)}),n},se=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){let a=s===""?t:he(t,s);a.classGroupId=r;return}if(typeof s=="function"){if(Je(s)){se(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([a,c])=>{se(c,he(t,a),r,n)})})},he=(e,t)=>{let r=e;return t.split(le).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Je=e=>e.isThemeGetter,Ke=(e,t)=>t?e.map(([r,n])=>{let s=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,l])=>[t+c,l])):a);return[r,s]}):e,Xe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map,s=(a,c)=>{r.set(a,c),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let c=r.get(a);if(c!==void 0)return c;if((c=n.get(a))!==void 0)return s(a,c),c},set(a,c){r.has(a)?r.set(a,c):s(a,c)}}},ye="!",Ze=e=>{let{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],a=t.length,c=l=>{let f=[],x=0,v=0,R;for(let b=0;b<l.length;b++){let y=l[b];if(x===0){if(y===s&&(n||l.slice(b,b+a)===t)){f.push(l.slice(v,b)),v=b+a;continue}if(y==="/"){R=b;continue}}y==="["?x++:y==="]"&&x--}let k=f.length===0?l:l.substring(v),N=k.startsWith(ye),j=N?k.substring(1):k,h=R&&R>v?R-v:void 0;return{modifiers:f,hasImportantModifier:N,baseClassName:j,maybePostfixModifierPosition:h}};return r?l=>r({className:l,parseClassName:c}):c},Qe=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Ye=e=>({cache:Xe(e.cacheSize),parseClassName:Ze(e),...$e(e)}),et=/\s+/,tt=(e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,a=[],c=e.trim().split(et),l="";for(let f=c.length-1;f>=0;f-=1){let x=c[f],{modifiers:v,hasImportantModifier:R,baseClassName:k,maybePostfixModifierPosition:N}=r(x),j=!!N,h=n(j?k.substring(0,N):k);if(!h){if(!j){l=x+(l.length>0?" "+l:l);continue}if(h=n(k),!h){l=x+(l.length>0?" "+l:l);continue}j=!1}let b=Qe(v).join(":"),y=R?b+ye:b,z=y+h;if(a.includes(z))continue;a.push(z);let V=s(h,j);for(let L=0;L<V.length;++L){let U=V[L];a.push(y+U)}l=x+(l.length>0?" "+l:l)}return l};function rt(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=xe(t))&&(n&&(n+=" "),n+=r);return n}var xe=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=xe(e[n]))&&(r&&(r+=" "),r+=t);return r};function ot(e,...t){let r,n,s,a=c;function c(f){let x=t.reduce((v,R)=>R(v),e());return r=Ye(x),n=r.cache.get,s=r.cache.set,a=l,l(f)}function l(f){let x=n(f);if(x)return x;let v=tt(f,r);return s(f,v),v}return function(){return a(rt.apply(null,arguments))}}var m=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},we=/^\[(?:([a-z-]+):)?(.+)\]$/Ne,nt=/^\d+\/\d+$/,it=new Set(["px","full","screen"]),at=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,st=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|Ne|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,lt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ct=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,T=e=>_(e)||it.has(e)||nt.test(e),E=e=>F(e,"length",vt),_=e=>!!e&&!Number.isNaN(Number(e)),ae=e=>F(e,"number",_),X=e=>!!e&&Number.isInteger(Number(e)),pt=e=>e.endsWith("%")&&_(e.slice(0,-1)),d=e=>we.test(e),B=e=>at.test(e),ut=new Set(["length","size","percentage"]),mt=e=>F(e,ut,Se),bt=e=>F(e,"position",Se),ft=new Set(["image","url"]),gt=e=>F(e,ft,xt),ht=e=>F(e,"",yt),Z=()=>!0,F=(e,t,r)=>{let n=we.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},vt=e=>st.test(e)&&!lt.test(e),Se=()=>!1,yt=e=>ct.test(e),xt=e=>dt.test(e);var wt=()=>{let e=m("colors"),t=m("spacing"),r=m("blur"),n=m("brightness"),s=m("borderColor"),a=m("borderRadius"),c=m("borderSpacing"),l=m("borderWidth"),f=m("contrast"),x=m("grayscale"),v=m("hueRotate"),R=m("invert"),k=m("gap"),N=m("gradientColorStops"),j=m("gradientColorStopPositions"),h=m("inset"),b=m("margin"),y=m("opacity"),z=m("padding"),V=m("saturate"),L=m("scale"),U=m("sepia"),Q=m("skew"),Y=m("space"),W=m("translate"),$=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",d,t],o=()=>[d,t],w=()=>["",T,E],u=()=>["auto",_,d],A=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["solid","dashed","dotted","double","none"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>["start","end","center","between","around","evenly","stretch"],J=()=>["","0",d],be=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[_,d];return{cacheSize:500,separator:":",theme:{colors:[Z],spacing:[T,E],blur:["none","",B,d],brightness:I(),borderColor:[e],borderRadius:["none","","full",B,d],borderSpacing:o(),borderWidth:w(),contrast:I(),grayscale:J(),hueRotate:I(),invert:J(),gap:o(),gradientColorStops:[e],gradientColorStopPositions:[pt,E],inset:H(),margin:H(),opacity:I(),padding:o(),saturate:I(),scale:I(),sepia:J(),skew:I(),space:o(),translate:o()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[B]}],"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:[...A(),d]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",X,d]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:J()}],shrink:[{shrink:J()}],order:[{order:["first","last","none",X,d]}],"grid-cols":[{"grid-cols":[Z]}],"col-start-end":[{col:["auto",{span:["full",X,d]},d]}],"col-start":[{"col-start":u()}],"col-end":[{"col-end":u()}],"grid-rows":[{"grid-rows":[Z]}],"row-start-end":[{row:["auto",{span:[X,d]},d]}],"row-start":[{"row-start":u()}],"row-end":[{"row-end":u()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal",...ie()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ie(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ie(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[z]}],px:[{px:[z]}],py:[{py:[z]}],ps:[{ps:[z]}],pe:[{pe:[z]}],pt:[{pt:[z]}],pr:[{pr:[z]}],pb:[{pb:[z]}],pl:[{pl:[z]}],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":[Y]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Y]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[B]},B]}],h:[{h:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",B,E]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ae]}],"font-family":[{font:[Z]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",d]}],"line-clamp":[{"line-clamp":["none",_,ae]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",T,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",T,E]}],"underline-offset":[{"underline-offset":["auto",T,d]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:o()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...A(),bt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",mt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},gt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[j]}],"gradient-via-pos":[{via:[j]}],"gradient-to-pos":[{to:[j]}],"gradient-from":[{from:[N]}],"gradient-via":[{via:[N]}],"gradient-to":[{to:[N]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...G(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:G()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...G()]}],"outline-offset":[{"outline-offset":[T,d]}],"outline-w":[{outline:[T,E]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:w()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[T,E]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",B,ht]}],"shadow-color":[{shadow:[Z]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...me(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":me()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",B,d]}],grayscale:[{grayscale:[x]}],"hue-rotate":[{"hue-rotate":[v]}],invert:[{invert:[R]}],saturate:[{saturate:[V]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[x]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v]}],"backdrop-invert":[{"backdrop-invert":[R]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",d]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[X,d]}],"translate-x":[{"translate-x":[W]}],"translate-y":[{"translate-y":[W]}],"skew-x":[{"skew-x":[Q]}],"skew-y":[{"skew-y":[Q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":o()}],"scroll-mx":[{"scroll-mx":o()}],"scroll-my":[{"scroll-my":o()}],"scroll-ms":[{"scroll-ms":o()}],"scroll-me":[{"scroll-me":o()}],"scroll-mt":[{"scroll-mt":o()}],"scroll-mr":[{"scroll-mr":o()}],"scroll-mb":[{"scroll-mb":o()}],"scroll-ml":[{"scroll-ml":o()}],"scroll-p":[{"scroll-p":o()}],"scroll-px":[{"scroll-px":o()}],"scroll-py":[{"scroll-py":o()}],"scroll-ps":[{"scroll-ps":o()}],"scroll-pe":[{"scroll-pe":o()}],"scroll-pt":[{"scroll-pt":o()}],"scroll-pr":[{"scroll-pr":o()}],"scroll-pb":[{"scroll-pb":o()}],"scroll-pl":[{"scroll-pl":o()}],"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",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[T,E,ae]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],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-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-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 ke=ot(wt);function P(...e){return ke((0,ze.clsx)(e))}var Pe=require("@radix-ui/react-slot"),Ce=require("class-variance-authority"),Re=K(require("react")),Ne=require("react/jsx-runtime"),St=(0,Ce.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),te=Re.forwardRef(({asChild:e=!1,className:t,size:r,variant:n,...s},a)=>(0,Ne.jsx)(e?Pe.Slot:"button",{className:P(St({className:t,size:r,variant:n})),ref:a,...s}));te.displayName="Button";var je=K(require("react")),ce=K(require("@radix-ui/react-label"));var kt=(0,Ce.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),C=je.forwardRef(({className:e,...t},r)=>(0,Ne.jsx)(ce.Root,{ref:r,className:P(kt(),e),...t}));C.displayName=ce.Root.displayName;var S=require("lucide-react");var p=K(require("@radix-ui/react-select")),D=K(require("react")),de=p.Root;var pe=p.Value,re=D.forwardRef(({children:e,className:t,...r},n)=>(0,Ne.jsxs)(p.Trigger,{className:P("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:n,...r,children:[e,(0,Ne.jsx)(p.Icon,{asChild:!0,children:(0,Ne.jsx)(S.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));re.displayName=p.Trigger.displayName;var Ie=D.forwardRef(({className:e,...t},r)=>(0,Ne.jsx)(p.ScrollUpButton,{className:P("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ne.jsx)(S.ChevronUp,{className:"h-4 w-4"})}));Ie.displayName=p.ScrollUpButton.displayName;var Te=D.forwardRef(({className:e,...t},r)=>(0,Ne.jsx)(p.ScrollDownButton,{className:P("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ne.jsx)(S.ChevronDown,{className:"h-4 w-4"})}));Te.displayName=p.ScrollDownButton.displayName;var oe=D.forwardRef(({children:e,className:t,position:r="popper",...n},s)=>(0,Ne.jsx)(p.Portal,{children:(0,Ne.jsxs)(p.Content,{className:P("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,ref:s,...n,children:[(0,Ne.jsx)(Ie,{}),(0,Ne.jsx)(p.Viewport,{className:P("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Ne.jsx)(Te,{})]})}));oe.displayName=p.Content.displayName;var zt=D.forwardRef(({className:e,...t},r)=>(0,Ne.jsx)(p.Label,{className:P("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));zt.displayName=p.Label.displayName;var ne=D.forwardRef(({children:e,className:t,...r},n)=>(0,Ne.jsxs)(p.Item,{className:P("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:n,...r,children:[(0,Ne.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ne.jsx)(p.ItemIndicator,{children:(0,Ne.jsx)(S.Check,{className:"h-4 w-4"})})}),(0,Ne.jsx)(p.ItemText,{children:e})]}));ne.displayName=p.Item.displayName;var Pt=D.forwardRef(({className:e,...t},r)=>(0,Ne.jsx)(p.Separator,{className:P("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));Pt.displayName=p.Separator.displayName;var Ct=[{name:"",commentary:"",dueDate:"",rag:"On-Track"}],Ae=["On-Track","Off-Track","At Risk","Complete"],Ge=[{name:"Project Summary",icon:S.FileText},{name:"Milestones",icon:S.ListChecks},{name:"Project Update",icon:S.Users},{name:"Project Concerns",icon:S.AlertTriangle},{name:"Opportunities",icon:S.Briefcase},{name:"Risks",icon:S.ShieldAlert}];function Ee({onSubmit:e,customerProjectPairs:t}){let[r,n]=(0,M.useState)(Ge[0].name),[s,a]=(0,M.useState)(null),[c,l]=(0,M.useState)(null),[f,x]=(0,M.useState)(""),[v,R]=(0,M.useState)(""),[k,N]=(0,M.useState)(Ct),[j,h]=(0,M.useState)(""),[b,y]=(0,M.useState)(""),[z,V]=(0,M.useState)(""),[L,U]=(0,M.useState)(""),Q=Array.from(new Map(t.map(o=>[o.customer.id,o.customer])).values()),Y=t.filter(o=>o.customer.id===s).map(o=>o.project),W=(o,w,u)=>{N(A=>{let G=[...A];return w==="rag"&&!Ae.includes(u)?A:(G[o]={...G[o],[w]:u},G)})},$=()=>{N(o=>[...o,{name:"",commentary:"",dueDate:"",rag:"On-Track"}])},q=o=>{N(w=>w.filter((u,A)=>A!==o))},H=async o=>{o.preventDefault();let w={customer:s,project:c,projectSummary:v,milestones:k.length>0?k:null,projectUpdate:j,projectConcerns:b||null,commercialOpportunities:z||null,commercialRisks:L||null};if(e)return e(w);try{let u=await fetch("/api/delivery-lead-submission",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(w)});if(!u.ok)throw new Error("Failed to submit delivery lead");let A=await u.json();return{success:!0,message:"Delivery lead submitted successfully"}}catch(u){return console.error("Error submitting delivery lead:",u),{success:!1,message:"Failed to submit delivery lead"}}};return(0,Ne.jsx)("div",{className:"container mx-auto p-4 max-w-3xl",children:(0,Ne.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[(0,Ne.jsx)("div",{className:"mb-6 flex border-b border-zinc-200 dark:border-zinc-700 flex-wrap justify-evenly",children:Ge.map(o=>(0,Ne.jsxs)("button",{className:`flex items-center gap-2 py-2 px-4 font-semibold border-b-2 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/60
|
|
4
|
+
"use strict";var Be=Object.create;var ee=Object.defineProperty;var De=Object.getOwnPropertyDescriptor;var Ve=Object.getOwnPropertyNames;var We=Object.getPrototypeOf,Oe=Object.prototype.hasOwnProperty;var Ue=(e,t)=>{for(var r in t)ee(e,r,{get:t[r],enumerable:!0})},fe=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Ve(t))!Oe.call(e,s)&&s!==r&&ee(e,s,{get:()=>t[s],enumerable:!(n=De(t,s))||n.enumerable});return e};var K=(e,t,r)=>(r=e!=null?Be(We(e)):{},fe(t||!e||!e.__esModule?ee(r,"default",{value:e,enumerable:!0}):r,e)),_e=e=>fe(ee({},"__esModule",{value:!0}),e);var Lt={};Ue(Lt,{Default:()=>jt,NoCustomers:()=>Mt,default:()=>Rt});module.exports=_e(Lt);var M=require("react");var ze=require("clsx");var le="-",Fe=e=>{let t=qe(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:c=>{let l=c.split(le);return l[0]===""&&l.length!==1&&l.shift(),ve(l,t)||$e(c)},getConflictingClassGroupIds:(c,l)=>{let f=r[c]||[];return l&&n[c]?[...f,...n[c]]:f}}},ve=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),s=n?ve(e.slice(1),n):void 0;if(s)return s;if(t.validators.length===0)return;let a=e.join(le);return t.validators.find(({validator:c})=>c(a))?.classGroupId},ge=/^\[(.+)\]$/,$e=e=>{if(ge.test(e)){let t=ge.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},qe=e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Je(Object.entries(e.classGroups),r).forEach(([a,c])=>{se(c,n,a,t)}),n},se=(e,t,r,n)=>{e.forEach(s=>{if(typeof s=="string"){let a=s===""?t:he(t,s);a.classGroupId=r;return}if(typeof s=="function"){if(He(s)){se(s(n),t,r,n);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([a,c])=>{se(c,he(t,a),r,n)})})},he=(e,t)=>{let r=e;return t.split(le).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},He=e=>e.isThemeGetter,Je=(e,t)=>t?e.map(([r,n])=>{let s=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,l])=>[t+c,l])):a);return[r,s]}):e,Ke=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map,s=(a,c)=>{r.set(a,c),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let c=r.get(a);if(c!==void 0)return c;if((c=n.get(a))!==void 0)return s(a,c),c},set(a,c){r.has(a)?r.set(a,c):s(a,c)}}},ye="!",Xe=e=>{let{separator:t,experimentalParseClassName:r}=e,n=t.length===1,s=t[0],a=t.length,c=l=>{let f=[],x=0,v=0,R;for(let b=0;b<l.length;b++){let y=l[b];if(x===0){if(y===s&&(n||l.slice(b,b+a)===t)){f.push(l.slice(v,b)),v=b+a;continue}if(y==="/"){R=b;continue}}y==="["?x++:y==="]"&&x--}let k=f.length===0?l:l.substring(v),N=k.startsWith(ye),j=N?k.substring(1):k,h=R&&R>v?R-v:void 0;return{modifiers:f,hasImportantModifier:N,baseClassName:j,maybePostfixModifierPosition:h}};return r?l=>r({className:l,parseClassName:c}):c},Ze=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Qe=e=>({cache:Ke(e.cacheSize),parseClassName:Xe(e),...Fe(e)}),Ye=/\s+/,et=(e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:s}=t,a=[],c=e.trim().split(Ye),l="";for(let f=c.length-1;f>=0;f-=1){let x=c[f],{modifiers:v,hasImportantModifier:R,baseClassName:k,maybePostfixModifierPosition:N}=r(x),j=!!N,h=n(j?k.substring(0,N):k);if(!h){if(!j){l=x+(l.length>0?" "+l:l);continue}if(h=n(k),!h){l=x+(l.length>0?" "+l:l);continue}j=!1}let b=Ze(v).join(":"),y=R?b+ye:b,z=y+h;if(a.includes(z))continue;a.push(z);let V=s(h,j);for(let L=0;L<V.length;++L){let U=V[L];a.push(y+U)}l=x+(l.length>0?" "+l:l)}return l};function tt(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=xe(t))&&(n&&(n+=" "),n+=r);return n}var xe=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=xe(e[n]))&&(r&&(r+=" "),r+=t);return r};function rt(e,...t){let r,n,s,a=c;function c(f){let x=t.reduce((v,R)=>R(v),e());return r=Qe(x),n=r.cache.get,s=r.cache.set,a=l,l(f)}function l(f){let x=n(f);if(x)return x;let v=et(f,r);return s(f,v),v}return function(){return a(tt.apply(null,arguments))}}var m=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},we=/^\[(?:([a-z-]+):)?(.+)\]$/Ne,ot=/^\d+\/\d+$/,nt=new Set(["px","full","screen"]),it=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,at=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|Ne|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,st=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,lt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ct=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,T=e=>_(e)||nt.has(e)||ot.test(e),E=e=>F(e,"length",ht),_=e=>!!e&&!Number.isNaN(Number(e)),ae=e=>F(e,"number",_),X=e=>!!e&&Number.isInteger(Number(e)),dt=e=>e.endsWith("%")&&_(e.slice(0,-1)),d=e=>we.test(e),B=e=>it.test(e),pt=new Set(["length","size","percentage"]),ut=e=>F(e,pt,Se),mt=e=>F(e,"position",Se),bt=new Set(["image","url"]),ft=e=>F(e,bt,yt),gt=e=>F(e,"",vt),Z=()=>!0,F=(e,t,r)=>{let n=we.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},ht=e=>at.test(e)&&!st.test(e),Se=()=>!1,vt=e=>lt.test(e),yt=e=>ct.test(e);var xt=()=>{let e=m("colors"),t=m("spacing"),r=m("blur"),n=m("brightness"),s=m("borderColor"),a=m("borderRadius"),c=m("borderSpacing"),l=m("borderWidth"),f=m("contrast"),x=m("grayscale"),v=m("hueRotate"),R=m("invert"),k=m("gap"),N=m("gradientColorStops"),j=m("gradientColorStopPositions"),h=m("inset"),b=m("margin"),y=m("opacity"),z=m("padding"),V=m("saturate"),L=m("scale"),U=m("sepia"),Q=m("skew"),Y=m("space"),W=m("translate"),$=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",d,t],o=()=>[d,t],w=()=>["",T,E],u=()=>["auto",_,d],A=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["solid","dashed","dotted","double","none"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>["start","end","center","between","around","evenly","stretch"],J=()=>["","0",d],be=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[_,d];return{cacheSize:500,separator:":",theme:{colors:[Z],spacing:[T,E],blur:["none","",B,d],brightness:I(),borderColor:[e],borderRadius:["none","","full",B,d],borderSpacing:o(),borderWidth:w(),contrast:I(),grayscale:J(),hueRotate:I(),invert:J(),gap:o(),gradientColorStops:[e],gradientColorStopPositions:[dt,E],inset:H(),margin:H(),opacity:I(),padding:o(),saturate:I(),scale:I(),sepia:J(),skew:I(),space:o(),translate:o()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[B]}],"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:[...A(),d]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",X,d]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",d]}],grow:[{grow:J()}],shrink:[{shrink:J()}],order:[{order:["first","last","none",X,d]}],"grid-cols":[{"grid-cols":[Z]}],"col-start-end":[{col:["auto",{span:["full",X,d]},d]}],"col-start":[{"col-start":u()}],"col-end":[{"col-end":u()}],"grid-rows":[{"grid-rows":[Z]}],"row-start-end":[{row:["auto",{span:[X,d]},d]}],"row-start":[{"row-start":u()}],"row-end":[{"row-end":u()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[k]}],"gap-x":[{"gap-x":[k]}],"gap-y":[{"gap-y":[k]}],"justify-content":[{justify:["normal",...ie()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ie(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ie(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[z]}],px:[{px:[z]}],py:[{py:[z]}],ps:[{ps:[z]}],pe:[{pe:[z]}],pt:[{pt:[z]}],pr:[{pr:[z]}],pb:[{pb:[z]}],pl:[{pl:[z]}],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":[Y]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Y]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,t]}],"min-w":[{"min-w":[d,t,"min","max","fit"]}],"max-w":[{"max-w":[d,t,"none","full","min","max","fit","prose",{screen:[B]},B]}],h:[{h:[d,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,t,"auto","min","max","fit"]}],"font-size":[{text:["base",B,E]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ae]}],"font-family":[{font:[Z]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",d]}],"line-clamp":[{"line-clamp":["none",_,ae]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",T,d]}],"list-image":[{"list-image":["none",d]}],"list-style-type":[{list:["none","disc","decimal",d]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",T,E]}],"underline-offset":[{"underline-offset":["auto",T,d]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:o()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...A(),mt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ut]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ft]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[j]}],"gradient-via-pos":[{via:[j]}],"gradient-to-pos":[{to:[j]}],"gradient-from":[{from:[N]}],"gradient-via":[{via:[N]}],"gradient-to":[{to:[N]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...G(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:G()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...G()]}],"outline-offset":[{"outline-offset":[T,d]}],"outline-w":[{outline:[T,E]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:w()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[T,E]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",B,gt]}],"shadow-color":[{shadow:[Z]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...me(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":me()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",B,d]}],grayscale:[{grayscale:[x]}],"hue-rotate":[{"hue-rotate":[v]}],invert:[{invert:[R]}],saturate:[{saturate:[V]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[x]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[v]}],"backdrop-invert":[{"backdrop-invert":[R]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-x":[{"border-spacing-x":[c]}],"border-spacing-y":[{"border-spacing-y":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",d]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[X,d]}],"translate-x":[{"translate-x":[W]}],"translate-y":[{"translate-y":[W]}],"skew-x":[{"skew-x":[Q]}],"skew-y":[{"skew-y":[Q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":o()}],"scroll-mx":[{"scroll-mx":o()}],"scroll-my":[{"scroll-my":o()}],"scroll-ms":[{"scroll-ms":o()}],"scroll-me":[{"scroll-me":o()}],"scroll-mt":[{"scroll-mt":o()}],"scroll-mr":[{"scroll-mr":o()}],"scroll-mb":[{"scroll-mb":o()}],"scroll-ml":[{"scroll-ml":o()}],"scroll-p":[{"scroll-p":o()}],"scroll-px":[{"scroll-px":o()}],"scroll-py":[{"scroll-py":o()}],"scroll-ps":[{"scroll-ps":o()}],"scroll-pe":[{"scroll-pe":o()}],"scroll-pt":[{"scroll-pt":o()}],"scroll-pr":[{"scroll-pr":o()}],"scroll-pb":[{"scroll-pb":o()}],"scroll-pl":[{"scroll-pl":o()}],"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",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[T,E,ae]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],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-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-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 ke=rt(xt);function P(...e){return ke((0,ze.clsx)(e))}var Pe=require("@radix-ui/react-slot"),Ce=require("class-variance-authority"),Re=K(require("react")),Ne=require("react/jsx-runtime"),wt=(0,Ce.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),te=Re.forwardRef(({asChild:e=!1,className:t,size:r,variant:n,...s},a)=>(0,Ne.jsx)(e?Pe.Slot:"button",{className:P(wt({className:t,size:r,variant:n})),ref:a,...s}));te.displayName="Button";var je=K(require("react")),ce=K(require("@radix-ui/react-label"));var St=(0,Ce.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),C=je.forwardRef(({className:e,...t},r)=>(0,Ne.jsx)(ce.Root,{ref:r,className:P(St(),e),...t}));C.displayName=ce.Root.displayName;var S=require("lucide-react");var p=K(require("@radix-ui/react-select")),D=K(require("react")),de=p.Root;var pe=p.Value,re=D.forwardRef(({children:e,className:t,...r},n)=>(0,Ne.jsxs)(p.Trigger,{className:P("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:n,...r,children:[e,(0,Ne.jsx)(p.Icon,{asChild:!0,children:(0,Ne.jsx)(S.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));re.displayName=p.Trigger.displayName;var Ie=D.forwardRef(({className:e,...t},r)=>(0,Ne.jsx)(p.ScrollUpButton,{className:P("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ne.jsx)(S.ChevronUp,{className:"h-4 w-4"})}));Ie.displayName=p.ScrollUpButton.displayName;var Te=D.forwardRef(({className:e,...t},r)=>(0,Ne.jsx)(p.ScrollDownButton,{className:P("flex cursor-default items-center justify-center py-1",e),ref:r,...t,children:(0,Ne.jsx)(S.ChevronDown,{className:"h-4 w-4"})}));Te.displayName=p.ScrollDownButton.displayName;var oe=D.forwardRef(({children:e,className:t,position:r="popper",...n},s)=>(0,Ne.jsx)(p.Portal,{children:(0,Ne.jsxs)(p.Content,{className:P("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:r,ref:s,...n,children:[(0,Ne.jsx)(Ie,{}),(0,Ne.jsx)(p.Viewport,{className:P("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Ne.jsx)(Te,{})]})}));oe.displayName=p.Content.displayName;var kt=D.forwardRef(({className:e,...t},r)=>(0,Ne.jsx)(p.Label,{className:P("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...t}));kt.displayName=p.Label.displayName;var ne=D.forwardRef(({children:e,className:t,...r},n)=>(0,Ne.jsxs)(p.Item,{className:P("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:n,...r,children:[(0,Ne.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ne.jsx)(p.ItemIndicator,{children:(0,Ne.jsx)(S.Check,{className:"h-4 w-4"})})}),(0,Ne.jsx)(p.ItemText,{children:e})]}));ne.displayName=p.Item.displayName;var zt=D.forwardRef(({className:e,...t},r)=>(0,Ne.jsx)(p.Separator,{className:P("-mx-1 my-1 h-px bg-muted",e),ref:r,...t}));zt.displayName=p.Separator.displayName;var Pt=[{name:"",commentary:"",dueDate:"",rag:"On-Track"}],Ae=["On-Track","Off-Track","At Risk","Complete"],Ge=[{name:"Project Summary",icon:S.FileText},{name:"Milestones",icon:S.ListChecks},{name:"Project Update",icon:S.Users},{name:"Project Concerns",icon:S.AlertTriangle},{name:"Opportunities",icon:S.Briefcase},{name:"Risks",icon:S.ShieldAlert}];function Ee({onSubmit:e,customerProjectPairs:t}){let[r,n]=(0,M.useState)(Ge[0].name),[s,a]=(0,M.useState)(null),[c,l]=(0,M.useState)(null),[f,x]=(0,M.useState)(""),[v,R]=(0,M.useState)(""),[k,N]=(0,M.useState)(Pt),[j,h]=(0,M.useState)(""),[b,y]=(0,M.useState)(""),[z,V]=(0,M.useState)(""),[L,U]=(0,M.useState)(""),Q=Array.from(new Map((t??[]).map(o=>[o.customer.id,o.customer])).values()),Y=(t??[]).filter(o=>o.customer.id===s).map(o=>o.project),W=(o,w,u)=>{N(A=>{let G=[...A];return w==="rag"&&!Ae.includes(u)?A:(G[o]={...G[o],[w]:u},G)})},$=()=>{N(o=>[...o,{name:"",commentary:"",dueDate:"",rag:"On-Track"}])},q=o=>{N(w=>w.filter((u,A)=>A!==o))},H=async o=>{o.preventDefault();let w={customer:s,project:c,projectSummary:v,milestones:k.length>0?k:null,projectUpdate:j,projectConcerns:b||null,commercialOpportunities:z||null,commercialRisks:L||null};if(e)return e(w);try{let u=await fetch("/api/delivery-lead-submission",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(w)});if(!u.ok)throw new Error("Failed to submit delivery lead");let A=await u.json();return{success:!0,message:"Delivery lead submitted successfully"}}catch(u){return console.error("Error submitting delivery lead:",u),{success:!1,message:"Failed to submit delivery lead"}}};return(0,Ne.jsx)("div",{className:"container mx-auto p-4 max-w-3xl",children:(0,Ne.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[(0,Ne.jsx)("div",{className:"mb-6 flex border-b border-zinc-200 dark:border-zinc-700 flex-wrap justify-evenly",children:Ge.map(o=>(0,Ne.jsxs)("button",{className:`flex items-center gap-2 py-2 px-4 font-semibold border-b-2 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/60
|
|
5
5
|
${r===o.name?"border-accent text-accent bg-accent/10 dark:bg-accent/20":"border-transparent text-gray-500 dark:text-zinc-400 hover:text-accent hover:bg-accent/5 dark:hover:bg-accent/10"}
|
|
6
|
-
text-sm sm:text-base flex-1 basis-1/4 min-w-[180px] max-w-xs justify-center`,onClick:()=>n(o.name),type:"button",children:[(0,Ne.jsx)(o.icon,{className:"w-5 h-5"}),(0,Ne.jsx)("span",{children:o.name})]},o.name))}),(0,Ne.jsxs)("form",{onSubmit:H,className:"space-y-8",children:[r==="Project Summary"&&(0,Ne.jsxs)("div",{className:"space-y-6",children:[(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)(C,{children:"Client Name"}),(0,Ne.jsxs)(de,{value:s?.toString()??"",onValueChange:o=>a(Number(o)),children:[(0,Ne.jsx)(re,{children:(0,Ne.jsx)(pe,{placeholder:"Select client"})}),(0,Ne.jsx)(oe,{children:Q.map(o=>(0,Ne.jsx)(ne,{value:o.id.toString(),children:o.name},o.id))})]})]}),(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)(C,{children:"Project Name"}),(0,Ne.jsxs)(de,{value:c?.toString()??"",onValueChange:o=>l(Number(o)),disabled:!s,children:[(0,Ne.jsx)(re,{children:(0,Ne.jsx)(pe,{placeholder:s?"Select project":"Select client first"})}),(0,Ne.jsx)(oe,{children:Y.map(o=>(0,Ne.jsx)(ne,{value:o.id.toString(),children:o.name},o.id))})]})]}),(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)(C,{children:"Project Summary"}),(0,Ne.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:v,onChange:o=>R(o.target.value),required:!0,placeholder:"Provide a summary of the project, objectives, and outcomes"})]})]}),r==="Milestones"&&(0,Ne.jsxs)("div",{children:[(0,Ne.jsxs)("div",{className:"mb-4 flex justify-between items-center",children:[(0,Ne.jsxs)(C,{className:"text-lg flex items-center gap-2",children:[(0,Ne.jsx)(S.ListChecks,{className:"w-5 h-5"}),"Milestones"]}),(0,Ne.jsxs)(te,{type:"button",onClick:$,variant:"outline",className:"flex items-center gap-1",children:[(0,Ne.jsx)(S.PlusCircle,{className:"w-5 h-5"})," Add Milestone"]})]}),(0,Ne.jsx)("div",{className:"space-y-4",children:k.map((o,w)=>(0,Ne.jsxs)("div",{className:"grid grid-cols-5 gap-2 items-end border border-zinc-200 dark:border-zinc-700 p-2 rounded-lg bg-zinc-50 dark:bg-zinc-800 relative group",children:[(0,Ne.jsxs)("div",{className:"col-span-1",children:[(0,Ne.jsx)(C,{children:"Milestone"}),(0,Ne.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:o.name,onChange:u=>W(w,"name",u.target.value),required:!0,placeholder:"Milestone name"})]}),(0,Ne.jsxs)("div",{className:"col-span-2",children:[(0,Ne.jsx)(C,{children:"Commentary"}),(0,Ne.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:o.commentary,onChange:u=>W(w,"commentary",u.target.value),placeholder:"Commentary"})]}),(0,Ne.jsxs)("div",{className:"col-span-1",children:[(0,Ne.jsx)(C,{children:"Due Date"}),(0,Ne.jsx)("input",{type:"date",className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:o.dueDate,onChange:u=>W(w,"dueDate",u.target.value),placeholder:"Due date"})]}),(0,Ne.jsxs)("div",{className:"col-span-1",children:[(0,Ne.jsx)(C,{children:"RAG"}),(0,Ne.jsx)("select",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:o.rag,onChange:u=>W(w,"rag",u.target.value),children:Ae.map(u=>(0,Ne.jsx)("option",{value:u,children:u},u))})]}),(0,Ne.jsx)("button",{type:"button",className:"absolute -top-2 -right-2 bg-white dark:bg-zinc-900 rounded-full shadow p-1 border border-gray-200 dark:border-zinc-700 opacity-0 group-hover:opacity-100 transition-opacity hover:bg-red-50 dark:hover:bg-red-900",onClick:()=>q(w),"aria-label":"Remove Milestone",children:(0,Ne.jsx)(S.Trash2,{className:"w-5 h-5 text-red-500"})})]},w))})]}),r==="Project Update"&&(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)(C,{children:"Project Update & Immediate Focus"}),(0,Ne.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:j,onChange:o=>h(o.target.value),required:!0,placeholder:"[Provide a brief project update, including current progress and any immediate areas of focus or priority for the coming weeks]"})]}),r==="Project Concerns"&&(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)(C,{children:"Project Concerns"}),(0,Ne.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:b,onChange:o=>y(o.target.value),placeholder:"\u200B\u200B[Please highlight any project concerns, that may require escalation or support from the Cortex Reply senior leadership team]"})]}),r==="Opportunities"&&(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)(C,{children:"Commercial Opportunities"}),(0,Ne.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:z,onChange:o=>V(o.target.value),placeholder:"[List any potential commercial opportunities, active conversations, or discussion points where Cortex Reply could provide value or support. These may highlight areas for expansion or collaboration across our service offerings]"})]}),r==="Risks"&&(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)(C,{children:"Commercial Risk/Issue Details"}),(0,Ne.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:L,onChange:o=>U(o.target.value),placeholder:"[Please highlight any risks that could impact our commercial engagement, such as reputational concerns, risks to fixed-outcome milestones, changes in key client stakeholders, or challenges with project resourcing]"})]}),(0,Ne.jsx)("div",{className:"flex justify-end pt-4",children:(0,Ne.jsx)(te,{type:"submit",className:"px-6",children:"Submit"})})]})]})})}var
|
|
6
|
+
text-sm sm:text-base flex-1 basis-1/4 min-w-[180px] max-w-xs justify-center`,onClick:()=>n(o.name),type:"button",children:[(0,Ne.jsx)(o.icon,{className:"w-5 h-5"}),(0,Ne.jsx)("span",{children:o.name})]},o.name))}),(0,Ne.jsxs)("form",{onSubmit:H,className:"space-y-8",children:[r==="Project Summary"&&(0,Ne.jsxs)("div",{className:"space-y-6",children:[(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)(C,{children:"Client Name"}),(0,Ne.jsxs)(de,{value:s?.toString()??"",onValueChange:o=>a(Number(o)),children:[(0,Ne.jsx)(re,{children:(0,Ne.jsx)(pe,{placeholder:"Select client"})}),(0,Ne.jsx)(oe,{children:Q.map(o=>(0,Ne.jsx)(ne,{value:o.id.toString(),children:o.name},o.id))})]})]}),(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)(C,{children:"Project Name"}),(0,Ne.jsxs)(de,{value:c?.toString()??"",onValueChange:o=>l(Number(o)),disabled:!s,children:[(0,Ne.jsx)(re,{children:(0,Ne.jsx)(pe,{placeholder:s?"Select project":"Select client first"})}),(0,Ne.jsx)(oe,{children:Y.map(o=>(0,Ne.jsx)(ne,{value:o.id.toString(),children:o.name},o.id))})]})]}),(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)(C,{children:"Project Summary"}),(0,Ne.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:v,onChange:o=>R(o.target.value),required:!0,placeholder:"Provide a summary of the project, objectives, and outcomes"})]})]}),r==="Milestones"&&(0,Ne.jsxs)("div",{children:[(0,Ne.jsxs)("div",{className:"mb-4 flex justify-between items-center",children:[(0,Ne.jsxs)(C,{className:"text-lg flex items-center gap-2",children:[(0,Ne.jsx)(S.ListChecks,{className:"w-5 h-5"}),"Milestones"]}),(0,Ne.jsxs)(te,{type:"button",onClick:$,variant:"outline",className:"flex items-center gap-1",children:[(0,Ne.jsx)(S.PlusCircle,{className:"w-5 h-5"})," Add Milestone"]})]}),(0,Ne.jsx)("div",{className:"space-y-4",children:k.map((o,w)=>(0,Ne.jsxs)("div",{className:"grid grid-cols-5 gap-2 items-end border border-zinc-200 dark:border-zinc-700 p-2 rounded-lg bg-zinc-50 dark:bg-zinc-800 relative group",children:[(0,Ne.jsxs)("div",{className:"col-span-1",children:[(0,Ne.jsx)(C,{children:"Milestone"}),(0,Ne.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:o.name,onChange:u=>W(w,"name",u.target.value),required:!0,placeholder:"Milestone name"})]}),(0,Ne.jsxs)("div",{className:"col-span-2",children:[(0,Ne.jsx)(C,{children:"Commentary"}),(0,Ne.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:o.commentary,onChange:u=>W(w,"commentary",u.target.value),placeholder:"Commentary"})]}),(0,Ne.jsxs)("div",{className:"col-span-1",children:[(0,Ne.jsx)(C,{children:"Due Date"}),(0,Ne.jsx)("input",{type:"date",className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:o.dueDate,onChange:u=>W(w,"dueDate",u.target.value),placeholder:"Due date"})]}),(0,Ne.jsxs)("div",{className:"col-span-1",children:[(0,Ne.jsx)(C,{children:"RAG"}),(0,Ne.jsx)("select",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:o.rag,onChange:u=>W(w,"rag",u.target.value),children:Ae.map(u=>(0,Ne.jsx)("option",{value:u,children:u},u))})]}),(0,Ne.jsx)("button",{type:"button",className:"absolute -top-2 -right-2 bg-white dark:bg-zinc-900 rounded-full shadow p-1 border border-gray-200 dark:border-zinc-700 opacity-0 group-hover:opacity-100 transition-opacity hover:bg-red-50 dark:hover:bg-red-900",onClick:()=>q(w),"aria-label":"Remove Milestone",children:(0,Ne.jsx)(S.Trash2,{className:"w-5 h-5 text-red-500"})})]},w))})]}),r==="Project Update"&&(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)(C,{children:"Project Update & Immediate Focus"}),(0,Ne.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:j,onChange:o=>h(o.target.value),required:!0,placeholder:"[Provide a brief project update, including current progress and any immediate areas of focus or priority for the coming weeks]"})]}),r==="Project Concerns"&&(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)(C,{children:"Project Concerns"}),(0,Ne.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:b,onChange:o=>y(o.target.value),placeholder:"\u200B\u200B[Please highlight any project concerns, that may require escalation or support from the Cortex Reply senior leadership team]"})]}),r==="Opportunities"&&(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)(C,{children:"Commercial Opportunities"}),(0,Ne.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:z,onChange:o=>V(o.target.value),placeholder:"[List any potential commercial opportunities, active conversations, or discussion points where Cortex Reply could provide value or support. These may highlight areas for expansion or collaboration across our service offerings]"})]}),r==="Risks"&&(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)(C,{children:"Commercial Risk/Issue Details"}),(0,Ne.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:L,onChange:o=>U(o.target.value),placeholder:"[Please highlight any risks that could impact our commercial engagement, such as reputational concerns, risks to fixed-outcome milestones, changes in key client stakeholders, or challenges with project resourcing]"})]}),(0,Ne.jsx)("div",{className:"flex justify-end pt-4",children:(0,Ne.jsx)(te,{type:"submit",className:"px-6",children:"Submit"})})]})]})})}var Ct={title:"DeliveryReport/DeliveryLeadSubmission",component:Ee,parameters:{layout:"fullscreen"},decorators:[e=>(0,Ne.jsx)("div",{className:"container mx-auto p-4",children:(0,Ne.jsx)(e,{})})]},Rt=Ct,Nt=[{customer:{id:1,name:"Acme Corp"},project:{id:101,name:"Website Redesign"}},{customer:{id:1,name:"Acme Corp"},project:{id:102,name:"Mobile App"}},{customer:{id:2,name:"Globex"},project:{id:201,name:"ERP Migration"}},{customer:{id:2,name:"Globex"},project:{id:202,name:"Cloud Setup"}},{customer:{id:3,name:"Initech"},project:{id:301,name:"API Integration"}}],jt={args:{customerProjectPairs:Nt}},Mt={args:{}};0&&(module.exports={Default,NoCustomers});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../chunk-
|
|
1
|
+
import{a as e}from"../../chunk-63YL7TOA.mjs";import"../../chunk-OGZERPA4.mjs";import"../../chunk-EECIYMTX.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";import{jsx as o}from"react/jsx-runtime";var r={title:"DeliveryReport/DeliveryLeadSubmission",component:e,parameters:{layout:"fullscreen"},decorators:[t=>o("div",{className:"container mx-auto p-4",children:o(t,{})})]},a=r,i=[{customer:{id:1,name:"Acme Corp"},project:{id:101,name:"Website Redesign"}},{customer:{id:1,name:"Acme Corp"},project:{id:102,name:"Mobile App"}},{customer:{id:2,name:"Globex"},project:{id:201,name:"ERP Migration"}},{customer:{id:2,name:"Globex"},project:{id:202,name:"Cloud Setup"}},{customer:{id:3,name:"Initech"},project:{id:301,name:"API Integration"}}],n={args:{customerProjectPairs:i}},s={args:{}};export{n as Default,s as NoCustomers,a as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";"use client";var $e=Object.create;var ne=Object.defineProperty;var Fe=Object.getOwnPropertyDescriptor;var qe=Object.getOwnPropertyNames;var He=Object.getPrototypeOf,Je=Object.prototype.hasOwnProperty;var Ke=(e,o)=>{for(var r in o)ne(e,r,{get:o[r],enumerable:!0})},ve=(e,o,r,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of qe(o))!Je.call(e,c)&&c!==r&&ne(e,c,{get:()=>o[c],enumerable:!(n=Fe(o,c))||n.enumerable});return e};var ee=(e,o,r)=>(r=e!=null?$e(He(e)):{},ve(o||!e||!e.__esModule?ne(r,"default",{value:e,enumerable:!0}):r,e)),Xe=e=>ve(ne({},"__esModule",{value:!0}),e);var At={};Ke(At,{DeliveryLeadSubmissionWithList:()=>Tt});module.exports=Xe(At);var _e=require("react");var Re=require("clsx");var ue="-",Ye=e=>{let o=Qe(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:m=>{let d=m.split(ue);return d[0]===""&&d.length!==1&&d.shift(),ke(d,o)||Ze(m)},getConflictingClassGroupIds:(m,d)=>{let s=r[m]||[];return d&&n[m]?[...s,...n[m]]:s}}},ke=(e,o)=>{if(e.length===0)return o.classGroupId;let r=e[0],n=o.nextPart.get(r),c=n?ke(e.slice(1),n):void 0;if(c)return c;if(o.validators.length===0)return;let i=e.join(ue);return o.validators.find(({validator:m})=>m(i))?.classGroupId},he=/^\[(.+)\]$/,Ze=e=>{if(he.test(e)){let o=he.exec(e)[1],r=o?.substring(0,o.indexOf(":"));if(r)return"arbitrary.."+r}},Qe=e=>{let{theme:o,prefix:r}=e,n={nextPart:new Map,validators:[]};return tt(Object.entries(e.classGroups),r).forEach(([i,m])=>{pe(m,n,i,o)}),n},pe=(e,o,r,n)=>{e.forEach(c=>{if(typeof c=="string"){let i=c===""?o:we(o,c);i.classGroupId=r;return}if(typeof c=="function"){if(et(c)){pe(c(n),o,r,n);return}o.validators.push({validator:c,classGroupId:r});return}Object.entries(c).forEach(([i,m])=>{pe(m,we(o,i),r,n)})})},we=(e,o)=>{let r=e;return o.split(ue).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},et=e=>e.isThemeGetter,tt=(e,o)=>o?e.map(([r,n])=>{let c=n.map(i=>typeof i=="string"?o+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([m,d])=>[o+m,d])):i);return[r,c]}):e,rt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let o=0,r=new Map,n=new Map,c=(i,m)=>{r.set(i,m),o++,o>e&&(o=0,n=r,r=new Map)};return{get(i){let m=r.get(i);if(m!==void 0)return m;if((m=n.get(i))!==void 0)return c(i,m),m},set(i,m){r.has(i)?r.set(i,m):c(i,m)}}},ze="!",ot=e=>{let{separator:o,experimentalParseClassName:r}=e,n=o.length===1,c=o[0],i=o.length,m=d=>{let s=[],g=0,w=0,j;for(let x=0;x<d.length;x++){let N=d[x];if(g===0){if(N===c&&(n||d.slice(x,x+i)===o)){s.push(d.slice(w,x)),w=x+i;continue}if(N==="/"){j=x;continue}}N==="["?g++:N==="]"&&g--}let C=s.length===0?d:d.substring(w),M=C.startsWith(ze),D=M?C.substring(1):C,z=j&&j>w?j-w:void 0;return{modifiers:s,hasImportantModifier:M,baseClassName:D,maybePostfixModifierPosition:z}};return r?d=>r({className:d,parseClassName:m}):m},at=e=>{if(e.length<=1)return e;let o=[],r=[];return e.forEach(n=>{n[0]==="["?(o.push(...r.sort(),n),r=[]):r.push(n)}),o.push(...r.sort()),o},nt=e=>({cache:rt(e.cacheSize),parseClassName:ot(e),...Ye(e)}),it=/\s+/,st=(e,o)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:c}=o,i=[],m=e.trim().split(it),d="";for(let s=m.length-1;s>=0;s-=1){let g=m[s],{modifiers:w,hasImportantModifier:j,baseClassName:C,maybePostfixModifierPosition:M}=r(g),D=!!M,z=n(D?C.substring(0,M):C);if(!z){if(!D){d=g+(d.length>0?" "+d:d);continue}if(z=n(C),!z){d=g+(d.length>0?" "+d:d);continue}D=!1}let x=at(w).join(":"),N=j?x+ze:x,R=N+z;if(i.includes(R))continue;i.push(R);let W=c(z,D);for(let A=0;A<W.length;++A){let q=W[A];i.push(N+q)}d=g+(d.length>0?" "+d:d)}return d};function lt(){let e=0,o,r,n="";for(;e<arguments.length;)(o=arguments[e++])&&(r=Ne(o))&&(n&&(n+=" "),n+=r);return n}var Ne=e=>{if(typeof e=="string")return e;let o,r="";for(let n=0;n<e.length;n++)e[n]&&(o=Ne(e[n]))&&(r&&(r+=" "),r+=o);return r};function ct(e,...o){let r,n,c,i=m;function m(s){let g=o.reduce((w,j)=>j(w),e());return r=nt(g),n=r.cache.get,c=r.cache.set,i=d,d(s)}function d(s){let g=n(s);if(g)return g;let w=st(s,r);return c(s,w),w}return function(){return i(lt.apply(null,arguments))}}var f=e=>{let o=r=>r[e]||[];return o.isThemeGetter=!0,o},Se=/^\[(?:([a-z-]+):)?(.+)\]$/i,dt=/^\d+\/\d+$/,mt=new Set(["px","full","screen"]),pt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ut=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|De|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,bt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ft=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,E=e=>H(e)||mt.has(e)||dt.test(e),V=e=>J(e,"length",Nt),H=e=>!!e&&!Number.isNaN(Number(e)),me=e=>J(e,"number",H),te=e=>!!e&&Number.isInteger(Number(e)),xt=e=>e.endsWith("%")&&H(e.slice(0,-1)),p=e=>Se.test(e),U=e=>pt.test(e),yt=new Set(["length","size","percentage"]),vt=e=>J(e,yt,Pe),ht=e=>J(e,"position",Pe),wt=new Set(["image","url"]),kt=e=>J(e,wt,Pt),zt=e=>J(e,"",St),re=()=>!0,J=(e,o,r)=>{let n=Se.exec(e);return n?n[1]?typeof o=="string"?n[1]===o:o.has(n[1]):r(n[2]):!1},Nt=e=>ut.test(e)&&!gt.test(e),Pe=()=>!1,St=e=>bt.test(e),Pt=e=>ft.test(e);var Ct=()=>{let e=f("colors"),o=f("spacing"),r=f("blur"),n=f("brightness"),c=f("borderColor"),i=f("borderRadius"),m=f("borderSpacing"),d=f("borderWidth"),s=f("contrast"),g=f("grayscale"),w=f("hueRotate"),j=f("invert"),C=f("gap"),M=f("gradientColorStops"),D=f("gradientColorStopPositions"),z=f("inset"),x=f("margin"),N=f("opacity"),R=f("padding"),W=f("saturate"),A=f("scale"),q=f("sepia"),oe=f("skew"),ae=f("space"),_=f("translate"),X=()=>["auto","contain","none"],Y=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto",p,o],a=()=>[p,o],S=()=>["",E,V],b=()=>["auto",H,p],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["solid","dashed","dotted","double","none"],xe=()=>["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"],Q=()=>["","0",p],ye=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[H,p];return{cacheSize:500,separator:":",theme:{colors:[re],spacing:[E,V],blur:["none","",U,p],brightness:I(),borderColor:[e],borderRadius:["none","","full",U,p],borderSpacing:a(),borderWidth:S(),contrast:I(),grayscale:Q(),hueRotate:I(),invert:Q(),gap:a(),gradientColorStops:[e],gradientColorStopPositions:[xt,V],inset:Z(),margin:Z(),opacity:I(),padding:a(),saturate:I(),scale:I(),sepia:Q(),skew:I(),space:a(),translate:a()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[U]}],"break-after":[{"break-after":ye()}],"break-before":[{"break-before":ye()}],"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:[...B(),p]}],overflow:[{overflow:Y()}],"overflow-x":[{"overflow-x":Y()}],"overflow-y":[{"overflow-y":Y()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[z]}],"inset-x":[{"inset-x":[z]}],"inset-y":[{"inset-y":[z]}],start:[{start:[z]}],end:[{end:[z]}],top:[{top:[z]}],right:[{right:[z]}],bottom:[{bottom:[z]}],left:[{left:[z]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",te,p]}],basis:[{basis:Z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",te,p]}],"grid-cols":[{"grid-cols":[re]}],"col-start-end":[{col:["auto",{span:["full",te,p]},p]}],"col-start":[{"col-start":b()}],"col-end":[{"col-end":b()}],"grid-rows":[{"grid-rows":[re]}],"row-start-end":[{row:["auto",{span:[te,p]},p]}],"row-start":[{"row-start":b()}],"row-end":[{"row-end":b()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[C]}],"gap-x":[{"gap-x":[C]}],"gap-y":[{"gap-y":[C]}],"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:[R]}],px:[{px:[R]}],py:[{py:[R]}],ps:[{ps:[R]}],pe:[{pe:[R]}],pt:[{pt:[R]}],pr:[{pr:[R]}],pb:[{pb:[R]}],pl:[{pl:[R]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[ae]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ae]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,o]}],"min-w":[{"min-w":[p,o,"min","max","fit"]}],"max-w":[{"max-w":[p,o,"none","full","min","max","fit","prose",{screen:[U]},U]}],De:[{De:[p,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-De":[{"min-De":[p,o,"min","max","fit","svh","lvh","dvh"]}],"max-De":[{"max-De":[p,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,o,"auto","min","max","fit"]}],"font-size":[{text:["base",U,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",me]}],"font-family":[{font:[re]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",p]}],"line-clamp":[{"line-clamp":["none",H,me]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",E,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[N]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",E,V]}],"underline-offset":[{"underline-offset":["auto",E,p]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:a()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[N]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),ht]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",vt]}],"bg-image":[{bg:["none",{"gradient-to":["De","tr","r","br","b","bl","De","tl"]},kt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[D]}],"gradient-via-pos":[{via:[D]}],"gradient-to-pos":[{to:[D]}],"gradient-from":[{from:[M]}],"gradient-via":[{via:[M]}],"gradient-to":[{to:[M]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-De":[{"rounded-De":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-De":[{"rounded-De":[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:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-De":[{"border-De":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-De":[{"border-De":[d]}],"border-opacity":[{"border-opacity":[N]}],"border-style":[{border:[...G(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[N]}],"divide-style":[{divide:G()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-s":[{"border-s":[c]}],"border-color-e":[{"border-e":[c]}],"border-color-De":[{"border-De":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-De":[{"border-De":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",...G()]}],"outline-offset":[{"outline-offset":[E,p]}],"outline-w":[{outline:[E,V]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[N]}],"ring-offset-w":[{"ring-offset":[E,V]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",U,zt]}],"shadow-color":[{shadow:[re]}],opacity:[{opacity:[N]}],"mix-blend":[{"mix-blend":[...xe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":xe()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",U,p]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[j]}],saturate:[{saturate:[W]}],sepia:[{sepia:[q]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[j]}],"backdrop-opacity":[{"backdrop-opacity":[N]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"backdrop-sepia":[{"backdrop-sepia":[q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[m]}],"border-spacing-x":[{"border-spacing-x":[m]}],"border-spacing-y":[{"border-spacing-y":[m]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[te,p]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[oe]}],"skew-y":[{"skew-y":[oe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",p]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":a()}],"scroll-mx":[{"scroll-mx":a()}],"scroll-my":[{"scroll-my":a()}],"scroll-ms":[{"scroll-ms":a()}],"scroll-me":[{"scroll-me":a()}],"scroll-mt":[{"scroll-mt":a()}],"scroll-mr":[{"scroll-mr":a()}],"scroll-mb":[{"scroll-mb":a()}],"scroll-ml":[{"scroll-ml":a()}],"scroll-p":[{"scroll-p":a()}],"scroll-px":[{"scroll-px":a()}],"scroll-py":[{"scroll-py":a()}],"scroll-ps":[{"scroll-ps":a()}],"scroll-pe":[{"scroll-pe":a()}],"scroll-pt":[{"scroll-pt":a()}],"scroll-pr":[{"scroll-pr":a()}],"scroll-pb":[{"scroll-pb":a()}],"scroll-pl":[{"scroll-pl":a()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",p]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[E,V,me]}],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","De"],"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-De","rounded-r","rounded-b","rounded-De","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-De":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-De":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-De","border-w-r","border-w-b","border-w-De"],"border-w-x":["border-w-r","border-w-De"],"border-w-y":["border-w-De","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-De","border-color-r","border-color-b","border-color-De"],"border-color-x":["border-color-r","border-color-De"],"border-color-y":["border-color-De","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 Ce=ct(Ct);function L(...e){return Ce((0,Re.clsx)(e))}var Le=require("@radix-ui/react-slot"),je=require("class-variance-authority"),Me=ee(require("react")),De=require("react/jsx-runtime"),Rt=(0,je.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"De-10 px-4 py-2",icon:"De-10 w-10",lg:"De-11 rounded px-8",sm:"De-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),$=Me.forwardRef(({asChild:e=!1,className:o,size:r,variant:n,...c},i)=>(0,De.jsx)(e?Le.Slot:"button",{className:L(Rt({className:o,size:r,variant:n})),ref:i,...c}));$.displayName="Button";var Te=ee(require("react")),ge=ee(require("@radix-ui/react-label"));var Lt=(0,je.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),y=Te.forwardRef(({className:e,...o},r)=>(0,De.jsx)(ge.Root,{ref:r,className:L(Lt(),e),...o}));y.displayName=ge.Root.displayName;var v=require("lucide-react"),Ee={"On-Track":"bg-green-100 text-green-800 border-green-200","Off-Track":"bg-red-100 text-red-800 border-red-200","At Risk":"bg-yellow-100 text-yellow-800 border-yellow-200",Complete:"bg-blue-100 text-blue-800 border-blue-200"};function Be({submissions:e,isLoading:o=!1}){let[r,n]=(0,_e.useState)(null);(0,_e.useEffect)(()=>{let s=g=>{g.key==="Escape"&&n(null)};if(r)return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[r]);let c=s=>new Date(s).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}),i=e.find(s=>s.id.toString()===r);function m(s){return typeof s=="object"&&s!==null&&"projectName"in s?s.projectName:`Project #${s}`}function d(s){return typeof s=="object"&&s!==null&&"name"in s?s.name:`Customer #${s}`}return o?(0,De.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,De.jsx)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:(0,De.jsxs)("div",{className:"animate-pulse",children:[(0,De.jsx)("div",{className:"De-8 bg-gray-200 rounded w-1/4 mb-6"}),(0,De.jsx)("div",{className:"space-y-4",children:[...Array(5)].map((s,g)=>(0,De.jsx)("div",{className:"De-16 bg-gray-200 rounded"},g))})]})})}):e.length===0?(0,De.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,De.jsx)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:(0,De.jsxs)("div",{className:"text-center py-12",children:[(0,De.jsx)(v.FileText,{className:"mx-auto De-12 w-12 text-gray-400"}),(0,De.jsx)("h3",{className:"mt-2 text-sm font-semibold text-gray-900 dark:text-zinc-100",children:"No submissions found"}),(0,De.jsx)("p",{className:"mt-1 text-sm text-gray-500 dark:text-zinc-400",children:"You haven'De submitted any delivery lead reports yet."})]})})}):(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,De.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[(0,De.jsxs)("div",{className:"mb-6",children:[(0,De.jsx)("h2",{className:"text-2xl font-bold text-gray-900 dark:text-zinc-100",children:"My Delivery Lead Submissions"}),(0,De.jsx)("p",{className:"text-sm text-gray-500 dark:text-zinc-400 mt-1",children:"View all your submitted delivery lead reports"})]}),(0,De.jsx)("div",{className:"overflow-y-auto max-De-96",children:(0,De.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,De.jsx)("thead",{className:"bg-gray-50 dark:bg-zinc-800 sticky top-0 z-10",children:(0,De.jsxs)("tr",{children:[(0,De.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Project Details"}),(0,De.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Delivery Lead"}),(0,De.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Milestones"}),(0,De.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Submitted"}),(0,De.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Actions"})]})}),(0,De.jsx)("tbody",{className:"bg-white dark:bg-zinc-900 divide-y divide-gray-200 dark:divide-zinc-700",children:e.map(s=>(0,De.jsxs)("tr",{className:"hover:bg-gray-50 dark:hover:bg-zinc-800/50",children:[(0,De.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,De.jsxs)("div",{children:[(0,De.jsx)("div",{className:"text-sm font-medium text-gray-900 dark:text-zinc-100",children:m(s.project)}),(0,De.jsxs)("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,De.jsx)(v.Building,{className:"De-3 w-3"}),d(s.customer)]})]})}),(0,De.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,De.jsxs)("div",{className:"text-sm text-gray-900 dark:text-zinc-100 flex items-center gap-1",children:[(0,De.jsx)(v.User,{className:"De-3 w-3"}),typeof s.project=="object"&&s.project!==null&&"deliveryLead"in s.project&&typeof s.project.deliveryLead=="object"&&s.project.deliveryLead!==null&&"name"in s.project.deliveryLead?s.project.deliveryLead.name:"\u2014"]})}),(0,De.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,De.jsxs)("div",{className:"flex flex-wrap gap-1",children:[s.milestones?.slice(0,3).map((g,w)=>(0,De.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${Ee[g.rag]}`,children:g.rag},w)),s.milestones&&s.milestones.length>3&&(0,De.jsxs)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:["+",s.milestones.length-3," more"]}),!s.milestones&&(0,De.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:"No milestones"})]})}),(0,De.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,De.jsxs)("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,De.jsx)(v.Calendar,{className:"De-3 w-3"}),c(s.createdAt)]})}),(0,De.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:(0,De.jsx)($,{variant:"ghost",size:"sm",onClick:()=>n(s.id.toString()),className:"text-accent hover:text-accent/80",children:"View Details"})})]},s.id))})]})})]})}),i&&(0,De.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:(0,De.jsxs)("div",{className:"bg-white dark:bg-zinc-900 rounded-xl shadow-xl max-w-4xl w-full max-De-[90vh] overflow-y-auto",children:[(0,De.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-gray-200 dark:border-zinc-700",children:[(0,De.jsxs)("div",{children:[(0,De.jsx)("h2",{className:"text-xl font-semibold text-gray-900 dark:text-zinc-100",children:m(i.project)}),(0,De.jsxs)("p",{className:"text-sm text-gray-500 dark:text-zinc-400",children:[d(i.customer)," \u2022"," ",c(i.createdAt)]})]}),(0,De.jsx)("button",{onClick:()=>n(null),className:"text-gray-400 hover:text-gray-600 dark:hover:text-zinc-300",children:(0,De.jsx)(v.X,{className:"De-6 w-6"})})]}),(0,De.jsxs)("div",{className:"p-6 space-y-6",children:[(0,De.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,De.jsxs)("div",{children:[(0,De.jsxs)(y,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,De.jsx)(v.FileText,{className:"De-4 w-4"}),"Project Summary"]}),(0,De.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:i.projectSummary})]}),(0,De.jsxs)("div",{children:[(0,De.jsxs)(y,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,De.jsx)(v.Users,{className:"De-4 w-4"}),"Project Update"]}),(0,De.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:i.projectUpdate})]}),i.projectConcerns&&(0,De.jsxs)("div",{children:[(0,De.jsxs)(y,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,De.jsx)(v.AlertTriangle,{className:"De-4 w-4"}),"Project Concerns"]}),(0,De.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:i.projectConcerns})]}),i.commercialOpportunities&&(0,De.jsxs)("div",{children:[(0,De.jsxs)(y,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,De.jsx)(v.Briefcase,{className:"De-4 w-4"}),"Commercial Opportunities"]}),(0,De.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:i.commercialOpportunities})]}),i.commercialRisks&&(0,De.jsxs)("div",{className:"lg:col-span-2",children:[(0,De.jsxs)(y,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,De.jsx)(v.ShieldAlert,{className:"De-4 w-4"}),"Commercial Risks"]}),(0,De.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:i.commercialRisks})]})]}),(0,De.jsxs)("div",{children:[(0,De.jsxs)(y,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,De.jsx)(v.ListChecks,{className:"De-4 w-4"}),"Milestones"]}),i.milestones&&i.milestones.length>0?(0,De.jsx)("div",{className:"bg-gray-50 dark:bg-zinc-800 rounded-lg border overflow-hidden",children:(0,De.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,De.jsx)("thead",{className:"bg-gray-100 dark:bg-zinc-700",children:(0,De.jsxs)("tr",{children:[(0,De.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Name"}),(0,De.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Commentary"}),(0,De.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Due Date"}),(0,De.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Status"})]})}),(0,De.jsx)("tbody",{className:"divide-y divide-gray-200 dark:divide-zinc-700",children:i.milestones.map((s,g)=>(0,De.jsxs)("tr",{children:[(0,De.jsx)("td",{className:"px-4 py-2 text-sm text-gray-900 dark:text-zinc-100",children:s.name}),(0,De.jsx)("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:s.commentary||"-"}),(0,De.jsx)("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:s.dueDate?c(s.dueDate):"-"}),(0,De.jsx)("td",{className:"px-4 py-2",children:(0,De.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${Ee[s.rag]}`,children:s.rag})})]},g))})]})}):(0,De.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:"No milestones defined for this project."})]})]}),(0,De.jsx)("div",{className:"flex justify-end p-6 border-De border-gray-200 dark:border-zinc-700",children:(0,De.jsx)($,{onClick:()=>n(null),variant:"outline",children:"Close"})})]})})]})}var u=ee(require("@radix-ui/react-select")),O=ee(require("react")),be=u.Root;var fe=u.Value,se=O.forwardRef(({children:e,className:o,...r},n)=>(0,De.jsxs)(u.Trigger,{className:L("flex De-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",o),ref:n,...r,children:[e,(0,De.jsx)(u.Icon,{asChild:!0,children:(0,De.jsx)(v.ChevronDown,{className:"De-4 w-4 opacity-50"})})]}));se.displayName=u.Trigger.displayName;var Ge=O.forwardRef(({className:e,...o},r)=>(0,De.jsx)(u.ScrollUpButton,{className:L("flex cursor-default items-center justify-center py-1",e),ref:r,...o,children:(0,De.jsx)(v.ChevronUp,{className:"De-4 w-4"})}));Ge.displayName=u.ScrollUpButton.displayName;var Ve=O.forwardRef(({className:e,...o},r)=>(0,De.jsx)(u.ScrollDownButton,{className:L("flex cursor-default items-center justify-center py-1",e),ref:r,...o,children:(0,De.jsx)(v.ChevronDown,{className:"De-4 w-4"})}));Ve.displayName=u.ScrollDownButton.displayName;var le=O.forwardRef(({children:e,className:o,position:r="popper",...n},c)=>(0,De.jsx)(u.Portal,{children:(0,De.jsxs)(u.Content,{className:L("relative z-50 max-De-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",o),position:r,ref:c,...n,children:[(0,De.jsx)(Ge,{}),(0,De.jsx)(u.Viewport,{className:L("p-1",r==="popper"&&"De-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,De.jsx)(Ve,{})]})}));le.displayName=u.Content.displayName;var jt=O.forwardRef(({className:e,...o},r)=>(0,De.jsx)(u.Label,{className:L("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...o}));jt.displayName=u.Label.displayName;var ce=O.forwardRef(({children:e,className:o,...r},n)=>(0,De.jsxs)(u.Item,{className:L("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",o),ref:n,...r,children:[(0,De.jsx)("span",{className:"absolute left-2 flex De-3.5 w-3.5 items-center justify-center",children:(0,De.jsx)(u.ItemIndicator,{children:(0,De.jsx)(v.Check,{className:"De-4 w-4"})})}),(0,De.jsx)(u.ItemText,{children:e})]}));ce.displayName=u.Item.displayName;var Mt=O.forwardRef(({className:e,...o},r)=>(0,De.jsx)(u.Separator,{className:L("-mx-1 my-1 De-px bg-muted",e),ref:r,...o}));Mt.displayName=u.Separator.displayName;var Dt=[{name:"",commentary:"",dueDate:"",rag:"On-Track"}],Ue=["On-Track","Off-Track","At Risk","Complete"],Oe=[{name:"Project Summary",icon:v.FileText},{name:"Milestones",icon:v.ListChecks},{name:"Project Update",icon:v.Users},{name:"Project Concerns",icon:v.AlertTriangle},{name:"Opportunities",icon:v.Briefcase},{name:"Risks",icon:v.ShieldAlert}];function We({onSubmit:e,customerProjectPairs:o}){let[r,n]=(0,_e.useState)(Oe[0].name),[c,i]=(0,_e.useState)(null),[m,d]=(0,_e.useState)(null),[s,g]=(0,_e.useState)(""),[w,j]=(0,_e.useState)(""),[C,M]=(0,_e.useState)(Dt),[D,z]=(0,_e.useState)(""),[x,N]=(0,_e.useState)(""),[R,W]=(0,_e.useState)(""),[A,q]=(0,_e.useState)(""),oe=Array.from(new Map(o.map(a=>[a.customer.id,a.customer])).values()),ae=o.filter(a=>a.customer.id===c).map(a=>a.project),_=(a,S,b)=>{M(B=>{let G=[...B];return S==="rag"&&!Ue.includes(b)?B:(G[a]={...G[a],[S]:b},G)})},X=()=>{M(a=>[...a,{name:"",commentary:"",dueDate:"",rag:"On-Track"}])},Y=a=>{M(S=>S.filter((b,B)=>B!==a))},Z=async a=>{a.preventDefault();let S={customer:c,project:m,projectSummary:w,milestones:C.length>0?C:null,projectUpdate:D,projectConcerns:x||null,commercialOpportunities:R||null,commercialRisks:A||null};if(e)return e(S);try{let b=await fetch("/api/delivery-lead-submission",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(S)});if(!b.ok)throw new Error("Failed to submit delivery lead");let B=await b.json();return{success:!0,message:"Delivery lead submitted successfully"}}catch(b){return console.error("Error submitting delivery lead:",b),{success:!1,message:"Failed to submit delivery lead"}}};return(0,De.jsx)("div",{className:"container mx-auto p-4 max-w-3xl",children:(0,De.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[(0,De.jsx)("div",{className:"mb-6 flex border-b border-zinc-200 dark:border-zinc-700 flex-wrap justify-evenly",children:Oe.map(a=>(0,De.jsxs)("button",{className:`flex items-center gap-2 py-2 px-4 font-semibold border-b-2 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/60
|
|
4
|
+
"use strict";"use client";var $e=Object.create;var ne=Object.defineProperty;var Fe=Object.getOwnPropertyDescriptor;var qe=Object.getOwnPropertyNames;var He=Object.getPrototypeOf,Je=Object.prototype.hasOwnProperty;var Ke=(e,o)=>{for(var r in o)ne(e,r,{get:o[r],enumerable:!0})},ve=(e,o,r,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of qe(o))!Je.call(e,c)&&c!==r&&ne(e,c,{get:()=>o[c],enumerable:!(n=Fe(o,c))||n.enumerable});return e};var ee=(e,o,r)=>(r=e!=null?$e(He(e)):{},ve(o||!e||!e.__esModule?ne(r,"default",{value:e,enumerable:!0}):r,e)),Xe=e=>ve(ne({},"__esModule",{value:!0}),e);var At={};Ke(At,{DeliveryLeadSubmissionWithList:()=>Tt});module.exports=Xe(At);var _e=require("react");var Re=require("clsx");var ue="-",Ye=e=>{let o=Qe(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:m=>{let d=m.split(ue);return d[0]===""&&d.length!==1&&d.shift(),ke(d,o)||Ze(m)},getConflictingClassGroupIds:(m,d)=>{let s=r[m]||[];return d&&n[m]?[...s,...n[m]]:s}}},ke=(e,o)=>{if(e.length===0)return o.classGroupId;let r=e[0],n=o.nextPart.get(r),c=n?ke(e.slice(1),n):void 0;if(c)return c;if(o.validators.length===0)return;let i=e.join(ue);return o.validators.find(({validator:m})=>m(i))?.classGroupId},he=/^\[(.+)\]$/,Ze=e=>{if(he.test(e)){let o=he.exec(e)[1],r=o?.substring(0,o.indexOf(":"));if(r)return"arbitrary.."+r}},Qe=e=>{let{theme:o,prefix:r}=e,n={nextPart:new Map,validators:[]};return tt(Object.entries(e.classGroups),r).forEach(([i,m])=>{pe(m,n,i,o)}),n},pe=(e,o,r,n)=>{e.forEach(c=>{if(typeof c=="string"){let i=c===""?o:we(o,c);i.classGroupId=r;return}if(typeof c=="function"){if(et(c)){pe(c(n),o,r,n);return}o.validators.push({validator:c,classGroupId:r});return}Object.entries(c).forEach(([i,m])=>{pe(m,we(o,i),r,n)})})},we=(e,o)=>{let r=e;return o.split(ue).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},et=e=>e.isThemeGetter,tt=(e,o)=>o?e.map(([r,n])=>{let c=n.map(i=>typeof i=="string"?o+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([m,d])=>[o+m,d])):i);return[r,c]}):e,rt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let o=0,r=new Map,n=new Map,c=(i,m)=>{r.set(i,m),o++,o>e&&(o=0,n=r,r=new Map)};return{get(i){let m=r.get(i);if(m!==void 0)return m;if((m=n.get(i))!==void 0)return c(i,m),m},set(i,m){r.has(i)?r.set(i,m):c(i,m)}}},ze="!",ot=e=>{let{separator:o,experimentalParseClassName:r}=e,n=o.length===1,c=o[0],i=o.length,m=d=>{let s=[],g=0,w=0,j;for(let x=0;x<d.length;x++){let N=d[x];if(g===0){if(N===c&&(n||d.slice(x,x+i)===o)){s.push(d.slice(w,x)),w=x+i;continue}if(N==="/"){j=x;continue}}N==="["?g++:N==="]"&&g--}let C=s.length===0?d:d.substring(w),M=C.startsWith(ze),D=M?C.substring(1):C,z=j&&j>w?j-w:void 0;return{modifiers:s,hasImportantModifier:M,baseClassName:D,maybePostfixModifierPosition:z}};return r?d=>r({className:d,parseClassName:m}):m},at=e=>{if(e.length<=1)return e;let o=[],r=[];return e.forEach(n=>{n[0]==="["?(o.push(...r.sort(),n),r=[]):r.push(n)}),o.push(...r.sort()),o},nt=e=>({cache:rt(e.cacheSize),parseClassName:ot(e),...Ye(e)}),it=/\s+/,st=(e,o)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:c}=o,i=[],m=e.trim().split(it),d="";for(let s=m.length-1;s>=0;s-=1){let g=m[s],{modifiers:w,hasImportantModifier:j,baseClassName:C,maybePostfixModifierPosition:M}=r(g),D=!!M,z=n(D?C.substring(0,M):C);if(!z){if(!D){d=g+(d.length>0?" "+d:d);continue}if(z=n(C),!z){d=g+(d.length>0?" "+d:d);continue}D=!1}let x=at(w).join(":"),N=j?x+ze:x,R=N+z;if(i.includes(R))continue;i.push(R);let W=c(z,D);for(let A=0;A<W.length;++A){let q=W[A];i.push(N+q)}d=g+(d.length>0?" "+d:d)}return d};function lt(){let e=0,o,r,n="";for(;e<arguments.length;)(o=arguments[e++])&&(r=Ne(o))&&(n&&(n+=" "),n+=r);return n}var Ne=e=>{if(typeof e=="string")return e;let o,r="";for(let n=0;n<e.length;n++)e[n]&&(o=Ne(e[n]))&&(r&&(r+=" "),r+=o);return r};function ct(e,...o){let r,n,c,i=m;function m(s){let g=o.reduce((w,j)=>j(w),e());return r=nt(g),n=r.cache.get,c=r.cache.set,i=d,d(s)}function d(s){let g=n(s);if(g)return g;let w=st(s,r);return c(s,w),w}return function(){return i(lt.apply(null,arguments))}}var f=e=>{let o=r=>r[e]||[];return o.isThemeGetter=!0,o},Se=/^\[(?:([a-z-]+):)?(.+)\]$/i,dt=/^\d+\/\d+$/,mt=new Set(["px","full","screen"]),pt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ut=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|De|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,bt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ft=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,E=e=>H(e)||mt.has(e)||dt.test(e),V=e=>J(e,"length",Nt),H=e=>!!e&&!Number.isNaN(Number(e)),me=e=>J(e,"number",H),te=e=>!!e&&Number.isInteger(Number(e)),xt=e=>e.endsWith("%")&&H(e.slice(0,-1)),p=e=>Se.test(e),U=e=>pt.test(e),yt=new Set(["length","size","percentage"]),vt=e=>J(e,yt,Pe),ht=e=>J(e,"position",Pe),wt=new Set(["image","url"]),kt=e=>J(e,wt,Pt),zt=e=>J(e,"",St),re=()=>!0,J=(e,o,r)=>{let n=Se.exec(e);return n?n[1]?typeof o=="string"?n[1]===o:o.has(n[1]):r(n[2]):!1},Nt=e=>ut.test(e)&&!gt.test(e),Pe=()=>!1,St=e=>bt.test(e),Pt=e=>ft.test(e);var Ct=()=>{let e=f("colors"),o=f("spacing"),r=f("blur"),n=f("brightness"),c=f("borderColor"),i=f("borderRadius"),m=f("borderSpacing"),d=f("borderWidth"),s=f("contrast"),g=f("grayscale"),w=f("hueRotate"),j=f("invert"),C=f("gap"),M=f("gradientColorStops"),D=f("gradientColorStopPositions"),z=f("inset"),x=f("margin"),N=f("opacity"),R=f("padding"),W=f("saturate"),A=f("scale"),q=f("sepia"),oe=f("skew"),ae=f("space"),_=f("translate"),X=()=>["auto","contain","none"],Y=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto",p,o],a=()=>[p,o],S=()=>["",E,V],b=()=>["auto",H,p],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["solid","dashed","dotted","double","none"],xe=()=>["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"],Q=()=>["","0",p],ye=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[H,p];return{cacheSize:500,separator:":",theme:{colors:[re],spacing:[E,V],blur:["none","",U,p],brightness:I(),borderColor:[e],borderRadius:["none","","full",U,p],borderSpacing:a(),borderWidth:S(),contrast:I(),grayscale:Q(),hueRotate:I(),invert:Q(),gap:a(),gradientColorStops:[e],gradientColorStopPositions:[xt,V],inset:Z(),margin:Z(),opacity:I(),padding:a(),saturate:I(),scale:I(),sepia:Q(),skew:I(),space:a(),translate:a()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[U]}],"break-after":[{"break-after":ye()}],"break-before":[{"break-before":ye()}],"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:[...B(),p]}],overflow:[{overflow:Y()}],"overflow-x":[{"overflow-x":Y()}],"overflow-y":[{"overflow-y":Y()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[z]}],"inset-x":[{"inset-x":[z]}],"inset-y":[{"inset-y":[z]}],start:[{start:[z]}],end:[{end:[z]}],top:[{top:[z]}],right:[{right:[z]}],bottom:[{bottom:[z]}],left:[{left:[z]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",te,p]}],basis:[{basis:Z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:Q()}],shrink:[{shrink:Q()}],order:[{order:["first","last","none",te,p]}],"grid-cols":[{"grid-cols":[re]}],"col-start-end":[{col:["auto",{span:["full",te,p]},p]}],"col-start":[{"col-start":b()}],"col-end":[{"col-end":b()}],"grid-rows":[{"grid-rows":[re]}],"row-start-end":[{row:["auto",{span:[te,p]},p]}],"row-start":[{"row-start":b()}],"row-end":[{"row-end":b()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[C]}],"gap-x":[{"gap-x":[C]}],"gap-y":[{"gap-y":[C]}],"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:[R]}],px:[{px:[R]}],py:[{py:[R]}],ps:[{ps:[R]}],pe:[{pe:[R]}],pt:[{pt:[R]}],pr:[{pr:[R]}],pb:[{pb:[R]}],pl:[{pl:[R]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[ae]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ae]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,o]}],"min-w":[{"min-w":[p,o,"min","max","fit"]}],"max-w":[{"max-w":[p,o,"none","full","min","max","fit","prose",{screen:[U]},U]}],De:[{De:[p,o,"auto","min","max","fit","svh","lvh","dvh"]}],"min-De":[{"min-De":[p,o,"min","max","fit","svh","lvh","dvh"]}],"max-De":[{"max-De":[p,o,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,o,"auto","min","max","fit"]}],"font-size":[{text:["base",U,V]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",me]}],"font-family":[{font:[re]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",p]}],"line-clamp":[{"line-clamp":["none",H,me]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",E,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[N]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",E,V]}],"underline-offset":[{"underline-offset":["auto",E,p]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:a()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[N]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),ht]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",vt]}],"bg-image":[{bg:["none",{"gradient-to":["De","tr","r","br","b","bl","De","tl"]},kt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[D]}],"gradient-via-pos":[{via:[D]}],"gradient-to-pos":[{to:[D]}],"gradient-from":[{from:[M]}],"gradient-via":[{via:[M]}],"gradient-to":[{to:[M]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-De":[{"rounded-De":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-De":[{"rounded-De":[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:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-De":[{"border-De":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-De":[{"border-De":[d]}],"border-opacity":[{"border-opacity":[N]}],"border-style":[{border:[...G(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[N]}],"divide-style":[{divide:G()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-s":[{"border-s":[c]}],"border-color-e":[{"border-e":[c]}],"border-color-De":[{"border-De":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-De":[{"border-De":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",...G()]}],"outline-offset":[{"outline-offset":[E,p]}],"outline-w":[{outline:[E,V]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[N]}],"ring-offset-w":[{"ring-offset":[E,V]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",U,zt]}],"shadow-color":[{shadow:[re]}],opacity:[{opacity:[N]}],"mix-blend":[{"mix-blend":[...xe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":xe()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",U,p]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[j]}],saturate:[{saturate:[W]}],sepia:[{sepia:[q]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[j]}],"backdrop-opacity":[{"backdrop-opacity":[N]}],"backdrop-saturate":[{"backdrop-saturate":[W]}],"backdrop-sepia":[{"backdrop-sepia":[q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[m]}],"border-spacing-x":[{"border-spacing-x":[m]}],"border-spacing-y":[{"border-spacing-y":[m]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[te,p]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[oe]}],"skew-y":[{"skew-y":[oe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",p]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":a()}],"scroll-mx":[{"scroll-mx":a()}],"scroll-my":[{"scroll-my":a()}],"scroll-ms":[{"scroll-ms":a()}],"scroll-me":[{"scroll-me":a()}],"scroll-mt":[{"scroll-mt":a()}],"scroll-mr":[{"scroll-mr":a()}],"scroll-mb":[{"scroll-mb":a()}],"scroll-ml":[{"scroll-ml":a()}],"scroll-p":[{"scroll-p":a()}],"scroll-px":[{"scroll-px":a()}],"scroll-py":[{"scroll-py":a()}],"scroll-ps":[{"scroll-ps":a()}],"scroll-pe":[{"scroll-pe":a()}],"scroll-pt":[{"scroll-pt":a()}],"scroll-pr":[{"scroll-pr":a()}],"scroll-pb":[{"scroll-pb":a()}],"scroll-pl":[{"scroll-pl":a()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",p]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[E,V,me]}],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","De"],"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-De","rounded-r","rounded-b","rounded-De","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-De":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-De":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-De","border-w-r","border-w-b","border-w-De"],"border-w-x":["border-w-r","border-w-De"],"border-w-y":["border-w-De","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-De","border-color-r","border-color-b","border-color-De"],"border-color-x":["border-color-r","border-color-De"],"border-color-y":["border-color-De","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 Ce=ct(Ct);function L(...e){return Ce((0,Re.clsx)(e))}var Le=require("@radix-ui/react-slot"),je=require("class-variance-authority"),Me=ee(require("react")),De=require("react/jsx-runtime"),Rt=(0,je.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"De-10 px-4 py-2",icon:"De-10 w-10",lg:"De-11 rounded px-8",sm:"De-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),$=Me.forwardRef(({asChild:e=!1,className:o,size:r,variant:n,...c},i)=>(0,De.jsx)(e?Le.Slot:"button",{className:L(Rt({className:o,size:r,variant:n})),ref:i,...c}));$.displayName="Button";var Te=ee(require("react")),ge=ee(require("@radix-ui/react-label"));var Lt=(0,je.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),y=Te.forwardRef(({className:e,...o},r)=>(0,De.jsx)(ge.Root,{ref:r,className:L(Lt(),e),...o}));y.displayName=ge.Root.displayName;var v=require("lucide-react"),Ee={"On-Track":"bg-green-100 text-green-800 border-green-200","Off-Track":"bg-red-100 text-red-800 border-red-200","At Risk":"bg-yellow-100 text-yellow-800 border-yellow-200",Complete:"bg-blue-100 text-blue-800 border-blue-200"};function Be({submissions:e,isLoading:o=!1}){let[r,n]=(0,_e.useState)(null);(0,_e.useEffect)(()=>{let s=g=>{g.key==="Escape"&&n(null)};if(r)return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[r]);let c=s=>new Date(s).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}),i=e.find(s=>s.id.toString()===r);function m(s){return typeof s=="object"&&s!==null&&"projectName"in s?s.projectName:`Project #${s}`}function d(s){return typeof s=="object"&&s!==null&&"name"in s?s.name:`Customer #${s}`}return o?(0,De.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,De.jsx)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:(0,De.jsxs)("div",{className:"animate-pulse",children:[(0,De.jsx)("div",{className:"De-8 bg-gray-200 rounded w-1/4 mb-6"}),(0,De.jsx)("div",{className:"space-y-4",children:[...Array(5)].map((s,g)=>(0,De.jsx)("div",{className:"De-16 bg-gray-200 rounded"},g))})]})})}):e.length===0?(0,De.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,De.jsx)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:(0,De.jsxs)("div",{className:"text-center py-12",children:[(0,De.jsx)(v.FileText,{className:"mx-auto De-12 w-12 text-gray-400"}),(0,De.jsx)("h3",{className:"mt-2 text-sm font-semibold text-gray-900 dark:text-zinc-100",children:"No submissions found"}),(0,De.jsx)("p",{className:"mt-1 text-sm text-gray-500 dark:text-zinc-400",children:"You haven'De submitted any delivery lead reports yet."})]})})}):(0,De.jsxs)(De.Fragment,{children:[(0,De.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,De.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[(0,De.jsxs)("div",{className:"mb-6",children:[(0,De.jsx)("h2",{className:"text-2xl font-bold text-gray-900 dark:text-zinc-100",children:"My Delivery Lead Submissions"}),(0,De.jsx)("p",{className:"text-sm text-gray-500 dark:text-zinc-400 mt-1",children:"View all your submitted delivery lead reports"})]}),(0,De.jsx)("div",{className:"overflow-y-auto max-De-96",children:(0,De.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,De.jsx)("thead",{className:"bg-gray-50 dark:bg-zinc-800 sticky top-0 z-10",children:(0,De.jsxs)("tr",{children:[(0,De.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Project Details"}),(0,De.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Delivery Lead"}),(0,De.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Milestones"}),(0,De.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Submitted"}),(0,De.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Actions"})]})}),(0,De.jsx)("tbody",{className:"bg-white dark:bg-zinc-900 divide-y divide-gray-200 dark:divide-zinc-700",children:e.map(s=>(0,De.jsxs)("tr",{className:"hover:bg-gray-50 dark:hover:bg-zinc-800/50",children:[(0,De.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,De.jsxs)("div",{children:[(0,De.jsx)("div",{className:"text-sm font-medium text-gray-900 dark:text-zinc-100",children:m(s.project)}),(0,De.jsxs)("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,De.jsx)(v.Building,{className:"De-3 w-3"}),d(s.customer)]})]})}),(0,De.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,De.jsxs)("div",{className:"text-sm text-gray-900 dark:text-zinc-100 flex items-center gap-1",children:[(0,De.jsx)(v.User,{className:"De-3 w-3"}),typeof s.project=="object"&&s.project!==null&&"deliveryLead"in s.project&&typeof s.project.deliveryLead=="object"&&s.project.deliveryLead!==null&&"name"in s.project.deliveryLead?s.project.deliveryLead.name:"\u2014"]})}),(0,De.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,De.jsxs)("div",{className:"flex flex-wrap gap-1",children:[s.milestones?.slice(0,3).map((g,w)=>(0,De.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${Ee[g.rag]}`,children:g.rag},w)),s.milestones&&s.milestones.length>3&&(0,De.jsxs)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:["+",s.milestones.length-3," more"]}),!s.milestones&&(0,De.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:"No milestones"})]})}),(0,De.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,De.jsxs)("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,De.jsx)(v.Calendar,{className:"De-3 w-3"}),c(s.createdAt)]})}),(0,De.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:(0,De.jsx)($,{variant:"ghost",size:"sm",onClick:()=>n(s.id.toString()),className:"text-accent hover:text-accent/80",children:"View Details"})})]},s.id))})]})})]})}),i&&(0,De.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:(0,De.jsxs)("div",{className:"bg-white dark:bg-zinc-900 rounded-xl shadow-xl max-w-4xl w-full max-De-[90vh] overflow-y-auto",children:[(0,De.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-gray-200 dark:border-zinc-700",children:[(0,De.jsxs)("div",{children:[(0,De.jsx)("h2",{className:"text-xl font-semibold text-gray-900 dark:text-zinc-100",children:m(i.project)}),(0,De.jsxs)("p",{className:"text-sm text-gray-500 dark:text-zinc-400",children:[d(i.customer)," \u2022"," ",c(i.createdAt)]})]}),(0,De.jsx)("button",{onClick:()=>n(null),className:"text-gray-400 hover:text-gray-600 dark:hover:text-zinc-300",children:(0,De.jsx)(v.X,{className:"De-6 w-6"})})]}),(0,De.jsxs)("div",{className:"p-6 space-y-6",children:[(0,De.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,De.jsxs)("div",{children:[(0,De.jsxs)(y,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,De.jsx)(v.FileText,{className:"De-4 w-4"}),"Project Summary"]}),(0,De.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:i.projectSummary})]}),(0,De.jsxs)("div",{children:[(0,De.jsxs)(y,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,De.jsx)(v.Users,{className:"De-4 w-4"}),"Project Update"]}),(0,De.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:i.projectUpdate})]}),i.projectConcerns&&(0,De.jsxs)("div",{children:[(0,De.jsxs)(y,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,De.jsx)(v.AlertTriangle,{className:"De-4 w-4"}),"Project Concerns"]}),(0,De.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:i.projectConcerns})]}),i.commercialOpportunities&&(0,De.jsxs)("div",{children:[(0,De.jsxs)(y,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,De.jsx)(v.Briefcase,{className:"De-4 w-4"}),"Commercial Opportunities"]}),(0,De.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:i.commercialOpportunities})]}),i.commercialRisks&&(0,De.jsxs)("div",{className:"lg:col-span-2",children:[(0,De.jsxs)(y,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,De.jsx)(v.ShieldAlert,{className:"De-4 w-4"}),"Commercial Risks"]}),(0,De.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:i.commercialRisks})]})]}),(0,De.jsxs)("div",{children:[(0,De.jsxs)(y,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,De.jsx)(v.ListChecks,{className:"De-4 w-4"}),"Milestones"]}),i.milestones&&i.milestones.length>0?(0,De.jsx)("div",{className:"bg-gray-50 dark:bg-zinc-800 rounded-lg border overflow-hidden",children:(0,De.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,De.jsx)("thead",{className:"bg-gray-100 dark:bg-zinc-700",children:(0,De.jsxs)("tr",{children:[(0,De.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Name"}),(0,De.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Commentary"}),(0,De.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Due Date"}),(0,De.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Status"})]})}),(0,De.jsx)("tbody",{className:"divide-y divide-gray-200 dark:divide-zinc-700",children:i.milestones.map((s,g)=>(0,De.jsxs)("tr",{children:[(0,De.jsx)("td",{className:"px-4 py-2 text-sm text-gray-900 dark:text-zinc-100",children:s.name}),(0,De.jsx)("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:s.commentary||"-"}),(0,De.jsx)("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:s.dueDate?c(s.dueDate):"-"}),(0,De.jsx)("td",{className:"px-4 py-2",children:(0,De.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${Ee[s.rag]}`,children:s.rag})})]},g))})]})}):(0,De.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:"No milestones defined for this project."})]})]}),(0,De.jsx)("div",{className:"flex justify-end p-6 border-De border-gray-200 dark:border-zinc-700",children:(0,De.jsx)($,{onClick:()=>n(null),variant:"outline",children:"Close"})})]})})]})}var u=ee(require("@radix-ui/react-select")),O=ee(require("react")),be=u.Root;var fe=u.Value,se=O.forwardRef(({children:e,className:o,...r},n)=>(0,De.jsxs)(u.Trigger,{className:L("flex De-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",o),ref:n,...r,children:[e,(0,De.jsx)(u.Icon,{asChild:!0,children:(0,De.jsx)(v.ChevronDown,{className:"De-4 w-4 opacity-50"})})]}));se.displayName=u.Trigger.displayName;var Ge=O.forwardRef(({className:e,...o},r)=>(0,De.jsx)(u.ScrollUpButton,{className:L("flex cursor-default items-center justify-center py-1",e),ref:r,...o,children:(0,De.jsx)(v.ChevronUp,{className:"De-4 w-4"})}));Ge.displayName=u.ScrollUpButton.displayName;var Ve=O.forwardRef(({className:e,...o},r)=>(0,De.jsx)(u.ScrollDownButton,{className:L("flex cursor-default items-center justify-center py-1",e),ref:r,...o,children:(0,De.jsx)(v.ChevronDown,{className:"De-4 w-4"})}));Ve.displayName=u.ScrollDownButton.displayName;var le=O.forwardRef(({children:e,className:o,position:r="popper",...n},c)=>(0,De.jsx)(u.Portal,{children:(0,De.jsxs)(u.Content,{className:L("relative z-50 max-De-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",o),position:r,ref:c,...n,children:[(0,De.jsx)(Ge,{}),(0,De.jsx)(u.Viewport,{className:L("p-1",r==="popper"&&"De-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,De.jsx)(Ve,{})]})}));le.displayName=u.Content.displayName;var jt=O.forwardRef(({className:e,...o},r)=>(0,De.jsx)(u.Label,{className:L("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:r,...o}));jt.displayName=u.Label.displayName;var ce=O.forwardRef(({children:e,className:o,...r},n)=>(0,De.jsxs)(u.Item,{className:L("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",o),ref:n,...r,children:[(0,De.jsx)("span",{className:"absolute left-2 flex De-3.5 w-3.5 items-center justify-center",children:(0,De.jsx)(u.ItemIndicator,{children:(0,De.jsx)(v.Check,{className:"De-4 w-4"})})}),(0,De.jsx)(u.ItemText,{children:e})]}));ce.displayName=u.Item.displayName;var Mt=O.forwardRef(({className:e,...o},r)=>(0,De.jsx)(u.Separator,{className:L("-mx-1 my-1 De-px bg-muted",e),ref:r,...o}));Mt.displayName=u.Separator.displayName;var Dt=[{name:"",commentary:"",dueDate:"",rag:"On-Track"}],Ue=["On-Track","Off-Track","At Risk","Complete"],Oe=[{name:"Project Summary",icon:v.FileText},{name:"Milestones",icon:v.ListChecks},{name:"Project Update",icon:v.Users},{name:"Project Concerns",icon:v.AlertTriangle},{name:"Opportunities",icon:v.Briefcase},{name:"Risks",icon:v.ShieldAlert}];function We({onSubmit:e,customerProjectPairs:o}){let[r,n]=(0,_e.useState)(Oe[0].name),[c,i]=(0,_e.useState)(null),[m,d]=(0,_e.useState)(null),[s,g]=(0,_e.useState)(""),[w,j]=(0,_e.useState)(""),[C,M]=(0,_e.useState)(Dt),[D,z]=(0,_e.useState)(""),[x,N]=(0,_e.useState)(""),[R,W]=(0,_e.useState)(""),[A,q]=(0,_e.useState)(""),oe=Array.from(new Map((o??[]).map(a=>[a.customer.id,a.customer])).values()),ae=(o??[]).filter(a=>a.customer.id===c).map(a=>a.project),_=(a,S,b)=>{M(B=>{let G=[...B];return S==="rag"&&!Ue.includes(b)?B:(G[a]={...G[a],[S]:b},G)})},X=()=>{M(a=>[...a,{name:"",commentary:"",dueDate:"",rag:"On-Track"}])},Y=a=>{M(S=>S.filter((b,B)=>B!==a))},Z=async a=>{a.preventDefault();let S={customer:c,project:m,projectSummary:w,milestones:C.length>0?C:null,projectUpdate:D,projectConcerns:x||null,commercialOpportunities:R||null,commercialRisks:A||null};if(e)return e(S);try{let b=await fetch("/api/delivery-lead-submission",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(S)});if(!b.ok)throw new Error("Failed to submit delivery lead");let B=await b.json();return{success:!0,message:"Delivery lead submitted successfully"}}catch(b){return console.error("Error submitting delivery lead:",b),{success:!1,message:"Failed to submit delivery lead"}}};return(0,De.jsx)("div",{className:"container mx-auto p-4 max-w-3xl",children:(0,De.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[(0,De.jsx)("div",{className:"mb-6 flex border-b border-zinc-200 dark:border-zinc-700 flex-wrap justify-evenly",children:Oe.map(a=>(0,De.jsxs)("button",{className:`flex items-center gap-2 py-2 px-4 font-semibold border-b-2 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/60
|
|
5
5
|
${r===a.name?"border-accent text-accent bg-accent/10 dark:bg-accent/20":"border-transparent text-gray-500 dark:text-zinc-400 hover:text-accent hover:bg-accent/5 dark:hover:bg-accent/10"}
|
|
6
|
-
text-sm sm:text-base flex-1 basis-1/4 min-w-[180px] max-w-xs justify-center`,onClick:()=>n(a.name),type:"button",children:[(0,De.jsx)(a.icon,{className:"w-5 De-5"}),(0,De.jsx)("span",{children:a.name})]},a.name))}),(0,De.jsxs)("form",{onSubmit:Z,className:"space-y-8",children:[r==="Project Summary"&&(0,De.jsxs)("div",{className:"space-y-6",children:[(0,De.jsxs)("div",{children:[(0,De.jsx)(y,{children:"Client Name"}),(0,De.jsxs)(be,{value:c?.toString()??"",onValueChange:a=>i(Number(a)),children:[(0,De.jsx)(se,{children:(0,De.jsx)(fe,{placeholder:"Select client"})}),(0,De.jsx)(le,{children:oe.map(a=>(0,De.jsx)(ce,{value:a.id.toString(),children:a.name},a.id))})]})]}),(0,De.jsxs)("div",{children:[(0,De.jsx)(y,{children:"Project Name"}),(0,De.jsxs)(be,{value:m?.toString()??"",onValueChange:a=>d(Number(a)),disabled:!c,children:[(0,De.jsx)(se,{children:(0,De.jsx)(fe,{placeholder:c?"Select project":"Select client first"})}),(0,De.jsx)(le,{children:ae.map(a=>(0,De.jsx)(ce,{value:a.id.toString(),children:a.name},a.id))})]})]}),(0,De.jsxs)("div",{children:[(0,De.jsx)(y,{children:"Project Summary"}),(0,De.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-De-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:w,onChange:a=>j(a.target.value),required:!0,placeholder:"Provide a summary of the project, objectives, and outcomes"})]})]}),r==="Milestones"&&(0,De.jsxs)("div",{children:[(0,De.jsxs)("div",{className:"mb-4 flex justify-between items-center",children:[(0,De.jsxs)(y,{className:"text-lg flex items-center gap-2",children:[(0,De.jsx)(v.ListChecks,{className:"w-5 De-5"}),"Milestones"]}),(0,De.jsxs)($,{type:"button",onClick:X,variant:"outline",className:"flex items-center gap-1",children:[(0,De.jsx)(v.PlusCircle,{className:"w-5 De-5"})," Add Milestone"]})]}),(0,De.jsx)("div",{className:"space-y-4",children:C.map((a,S)=>(0,De.jsxs)("div",{className:"grid grid-cols-5 gap-2 items-end border border-zinc-200 dark:border-zinc-700 p-2 rounded-lg bg-zinc-50 dark:bg-zinc-800 relative group",children:[(0,De.jsxs)("div",{className:"col-span-1",children:[(0,De.jsx)(y,{children:"Milestone"}),(0,De.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:a.name,onChange:b=>_(S,"name",b.target.value),required:!0,placeholder:"Milestone name"})]}),(0,De.jsxs)("div",{className:"col-span-2",children:[(0,De.jsx)(y,{children:"Commentary"}),(0,De.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:a.commentary,onChange:b=>_(S,"commentary",b.target.value),placeholder:"Commentary"})]}),(0,De.jsxs)("div",{className:"col-span-1",children:[(0,De.jsx)(y,{children:"Due Date"}),(0,De.jsx)("input",{type:"date",className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:a.dueDate,onChange:b=>_(S,"dueDate",b.target.value),placeholder:"Due date"})]}),(0,De.jsxs)("div",{className:"col-span-1",children:[(0,De.jsx)(y,{children:"RAG"}),(0,De.jsx)("select",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:a.rag,onChange:b=>_(S,"rag",b.target.value),children:Ue.map(b=>(0,De.jsx)("option",{value:b,children:b},b))})]}),(0,De.jsx)("button",{type:"button",className:"absolute -top-2 -right-2 bg-white dark:bg-zinc-900 rounded-full shadow p-1 border border-gray-200 dark:border-zinc-700 opacity-0 group-hover:opacity-100 transition-opacity hover:bg-red-50 dark:hover:bg-red-900",onClick:()=>Y(S),"aria-label":"Remove Milestone",children:(0,De.jsx)(v.Trash2,{className:"w-5 De-5 text-red-500"})})]},S))})]}),r==="Project Update"&&(0,De.jsxs)("div",{children:[(0,De.jsx)(y,{children:"Project Update & Immediate Focus"}),(0,De.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-De-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:D,onChange:a=>z(a.target.value),required:!0,placeholder:"[Provide a brief project update, including current progress and any immediate areas of focus or priority for the coming weeks]"})]}),r==="Project Concerns"&&(0,De.jsxs)("div",{children:[(0,De.jsx)(y,{children:"Project Concerns"}),(0,De.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-De-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:x,onChange:a=>N(a.target.value),placeholder:"\u200B\u200B[Please highlight any project concerns, that may require escalation or support from the Cortex Reply senior leadership team]"})]}),r==="Opportunities"&&(0,De.jsxs)("div",{children:[(0,De.jsx)(y,{children:"Commercial Opportunities"}),(0,De.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-De-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:R,onChange:a=>W(a.target.value),placeholder:"[List any potential commercial opportunities, active conversations, or discussion points where Cortex Reply could provide value or support. These may highlight areas for expansion or collaboration across our service offerings]"})]}),r==="Risks"&&(0,De.jsxs)("div",{children:[(0,De.jsx)(y,{children:"Commercial Risk/Issue Details"}),(0,De.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-De-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:A,onChange:a=>q(a.target.value),placeholder:"[Please highlight any risks that could impact our commercial engagement, such as reputational concerns, risks to fixed-outcome milestones, changes in key client stakeholders, or challenges with project resourcing]"})]}),(0,De.jsx)("div",{className:"flex justify-end pt-4",children:(0,De.jsx)($,{type:"submit",className:"px-6",children:"Submit"})})]})]})})}function Tt({submissions:e,onSubmit:o,isLoading:r=!1,customerProjectPairs:n}){let[c,i]=(0,_e.useState)(!1);return(0,De.jsx)("div",{className:"min-De-screen
|
|
6
|
+
text-sm sm:text-base flex-1 basis-1/4 min-w-[180px] max-w-xs justify-center`,onClick:()=>n(a.name),type:"button",children:[(0,De.jsx)(a.icon,{className:"w-5 De-5"}),(0,De.jsx)("span",{children:a.name})]},a.name))}),(0,De.jsxs)("form",{onSubmit:Z,className:"space-y-8",children:[r==="Project Summary"&&(0,De.jsxs)("div",{className:"space-y-6",children:[(0,De.jsxs)("div",{children:[(0,De.jsx)(y,{children:"Client Name"}),(0,De.jsxs)(be,{value:c?.toString()??"",onValueChange:a=>i(Number(a)),children:[(0,De.jsx)(se,{children:(0,De.jsx)(fe,{placeholder:"Select client"})}),(0,De.jsx)(le,{children:oe.map(a=>(0,De.jsx)(ce,{value:a.id.toString(),children:a.name},a.id))})]})]}),(0,De.jsxs)("div",{children:[(0,De.jsx)(y,{children:"Project Name"}),(0,De.jsxs)(be,{value:m?.toString()??"",onValueChange:a=>d(Number(a)),disabled:!c,children:[(0,De.jsx)(se,{children:(0,De.jsx)(fe,{placeholder:c?"Select project":"Select client first"})}),(0,De.jsx)(le,{children:ae.map(a=>(0,De.jsx)(ce,{value:a.id.toString(),children:a.name},a.id))})]})]}),(0,De.jsxs)("div",{children:[(0,De.jsx)(y,{children:"Project Summary"}),(0,De.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-De-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:w,onChange:a=>j(a.target.value),required:!0,placeholder:"Provide a summary of the project, objectives, and outcomes"})]})]}),r==="Milestones"&&(0,De.jsxs)("div",{children:[(0,De.jsxs)("div",{className:"mb-4 flex justify-between items-center",children:[(0,De.jsxs)(y,{className:"text-lg flex items-center gap-2",children:[(0,De.jsx)(v.ListChecks,{className:"w-5 De-5"}),"Milestones"]}),(0,De.jsxs)($,{type:"button",onClick:X,variant:"outline",className:"flex items-center gap-1",children:[(0,De.jsx)(v.PlusCircle,{className:"w-5 De-5"})," Add Milestone"]})]}),(0,De.jsx)("div",{className:"space-y-4",children:C.map((a,S)=>(0,De.jsxs)("div",{className:"grid grid-cols-5 gap-2 items-end border border-zinc-200 dark:border-zinc-700 p-2 rounded-lg bg-zinc-50 dark:bg-zinc-800 relative group",children:[(0,De.jsxs)("div",{className:"col-span-1",children:[(0,De.jsx)(y,{children:"Milestone"}),(0,De.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:a.name,onChange:b=>_(S,"name",b.target.value),required:!0,placeholder:"Milestone name"})]}),(0,De.jsxs)("div",{className:"col-span-2",children:[(0,De.jsx)(y,{children:"Commentary"}),(0,De.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:a.commentary,onChange:b=>_(S,"commentary",b.target.value),placeholder:"Commentary"})]}),(0,De.jsxs)("div",{className:"col-span-1",children:[(0,De.jsx)(y,{children:"Due Date"}),(0,De.jsx)("input",{type:"date",className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:a.dueDate,onChange:b=>_(S,"dueDate",b.target.value),placeholder:"Due date"})]}),(0,De.jsxs)("div",{className:"col-span-1",children:[(0,De.jsx)(y,{children:"RAG"}),(0,De.jsx)("select",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:a.rag,onChange:b=>_(S,"rag",b.target.value),children:Ue.map(b=>(0,De.jsx)("option",{value:b,children:b},b))})]}),(0,De.jsx)("button",{type:"button",className:"absolute -top-2 -right-2 bg-white dark:bg-zinc-900 rounded-full shadow p-1 border border-gray-200 dark:border-zinc-700 opacity-0 group-hover:opacity-100 transition-opacity hover:bg-red-50 dark:hover:bg-red-900",onClick:()=>Y(S),"aria-label":"Remove Milestone",children:(0,De.jsx)(v.Trash2,{className:"w-5 De-5 text-red-500"})})]},S))})]}),r==="Project Update"&&(0,De.jsxs)("div",{children:[(0,De.jsx)(y,{children:"Project Update & Immediate Focus"}),(0,De.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-De-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:D,onChange:a=>z(a.target.value),required:!0,placeholder:"[Provide a brief project update, including current progress and any immediate areas of focus or priority for the coming weeks]"})]}),r==="Project Concerns"&&(0,De.jsxs)("div",{children:[(0,De.jsx)(y,{children:"Project Concerns"}),(0,De.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-De-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:x,onChange:a=>N(a.target.value),placeholder:"\u200B\u200B[Please highlight any project concerns, that may require escalation or support from the Cortex Reply senior leadership team]"})]}),r==="Opportunities"&&(0,De.jsxs)("div",{children:[(0,De.jsx)(y,{children:"Commercial Opportunities"}),(0,De.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-De-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:R,onChange:a=>W(a.target.value),placeholder:"[List any potential commercial opportunities, active conversations, or discussion points where Cortex Reply could provide value or support. These may highlight areas for expansion or collaboration across our service offerings]"})]}),r==="Risks"&&(0,De.jsxs)("div",{children:[(0,De.jsx)(y,{children:"Commercial Risk/Issue Details"}),(0,De.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-De-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:A,onChange:a=>q(a.target.value),placeholder:"[Please highlight any risks that could impact our commercial engagement, such as reputational concerns, risks to fixed-outcome milestones, changes in key client stakeholders, or challenges with project resourcing]"})]}),(0,De.jsx)("div",{className:"flex justify-end pt-4",children:(0,De.jsx)($,{type:"submit",className:"px-6",children:"Submit"})})]})]})})}function Tt({submissions:e,onSubmit:o,isLoading:r=!1,customerProjectPairs:n}){let[c,i]=(0,_e.useState)(!1);return(0,De.jsx)("div",{className:"min-De-screen ",children:(0,De.jsxs)("div",{className:"container mx-auto p-4 max-w-6xl",children:[(0,De.jsxs)("div",{className:"mb-8",children:[(0,De.jsx)("h1",{className:"text-3xl font-bold text-gray-900 dark:text-zinc-100 mb-2",children:"Delivery Report Management"}),(0,De.jsx)("p",{className:"text-gray-600 dark:text-zinc-400",children:"Submit new delivery reports and view your previous submissions"})]}),(0,De.jsx)("div",{className:"mb-8",children:(0,De.jsx)(We,{onSubmit:o,customerProjectPairs:n})}),(0,De.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800",children:[(0,De.jsxs)("button",{onClick:()=>i(!c),className:"w-full px-6 py-4 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-zinc-800/50 transition-colors",children:[(0,De.jsxs)("div",{className:"flex items-center gap-3",children:[(0,De.jsx)(v.List,{className:"De-5 w-5 text-gray-500 dark:text-zinc-400"}),(0,De.jsx)("h2",{className:"text-lg font-semibold text-gray-900 dark:text-zinc-100",children:"Previous Submissions"}),(0,De.jsxs)("span",{className:"text-sm text-gray-500 dark:text-zinc-400",children:["(",e.length,")"]})]}),(0,De.jsx)("div",{className:"flex items-center gap-2",children:c?(0,De.jsx)(v.ChevronUp,{className:"De-5 w-5 text-gray-500 dark:text-zinc-400"}):(0,De.jsx)(v.ChevronDown,{className:"De-5 w-5 text-gray-500 dark:text-zinc-400"})})]}),c&&(0,De.jsx)("div",{className:"border-De border-gray-200 dark:border-zinc-700",children:(0,De.jsx)(Be,{submissions:e,isLoading:r})})]})]})})}0&&(module.exports={DeliveryLeadSubmissionWithList});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-ATUSSZXR.mjs";import"../../chunk-63YL7TOA.mjs";import"../../chunk-STFTEKAH.mjs";import"../../chunk-OGZERPA4.mjs";import"../../chunk-EECIYMTX.mjs";import"../../chunk-BPSLUO5I.mjs";import"../../chunk-HTVHCBXQ.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-ZLSF5YXT.mjs";import"../../chunk-M6LJ4BNZ.mjs";export{a as DeliveryLeadSubmissionWithList};
|