cortex-react-components 1.66.0 → 1.67.1
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-LWTJN5ZP.mjs → chunk-22SIVBWN.mjs} +1 -1
- package/dist/{chunk-3RPTKOCL.mjs → chunk-27L4MUAF.mjs} +1 -1
- package/dist/{chunk-HB4BHTNM.mjs → chunk-2AUQRBIQ.mjs} +1 -1
- package/dist/{chunk-R4QBZLWY.mjs → chunk-2VYQ47YU.mjs} +1 -1
- package/dist/{chunk-PADGOK5C.mjs → chunk-37NBXA5G.mjs} +1 -1
- package/dist/{chunk-7O2TMDTD.mjs → chunk-45X7FAJM.mjs} +1 -1
- package/dist/{chunk-RGWP2OVM.mjs → chunk-5J244QX4.mjs} +1 -1
- package/dist/chunk-63YL7TOA.mjs +6 -0
- package/dist/{chunk-3NS4UQ6J.mjs → chunk-666KIWPS.mjs} +1 -1
- package/dist/{chunk-LBOJXQGC.mjs → chunk-6IWLTYR6.mjs} +1 -1
- package/dist/{chunk-22KXWTT3.mjs → chunk-6MQ5LVWM.mjs} +1 -1
- package/dist/{chunk-6JAIW45L.mjs → chunk-6YHV3NNE.mjs} +1 -1
- package/dist/{chunk-26JAUUHC.mjs → chunk-737CTHXW.mjs} +1 -1
- package/dist/{chunk-NZKW64NF.mjs → chunk-A3EE2FIS.mjs} +1 -1
- package/dist/{chunk-ZJZ5HYAW.mjs → chunk-AAPY7EYG.mjs} +1 -1
- package/dist/{chunk-N363IQBL.mjs → chunk-ANTK5LAD.mjs} +1 -1
- package/dist/{chunk-6BDDYPGK.mjs → chunk-DGYIJMZB.mjs} +1 -1
- package/dist/{chunk-MYDBD7LR.mjs → chunk-DKIPNQOB.mjs} +1 -1
- package/dist/{chunk-BA6HNFXB.mjs → chunk-EHL6E6LB.mjs} +1 -1
- package/dist/{chunk-XLURG5E2.mjs → chunk-ENHSCJIL.mjs} +1 -1
- package/dist/{chunk-TTL25HL4.mjs → chunk-FSQNNG2C.mjs} +1 -1
- package/dist/{chunk-RVA4WIRX.mjs → chunk-HXNVIQ2U.mjs} +1 -1
- package/dist/{chunk-HBE5POUB.mjs → chunk-J5FPKJOI.mjs} +1 -1
- package/dist/{chunk-VEVYFZEV.mjs → chunk-JDBMSW23.mjs} +1 -1
- package/dist/{chunk-CYVVXQ2A.mjs → chunk-KIWDBOLE.mjs} +1 -1
- package/dist/{chunk-YOMT7VAV.mjs → chunk-KSAKCMAF.mjs} +1 -1
- package/dist/{chunk-FM2YMSMY.mjs → chunk-L2AV5DLK.mjs} +1 -1
- package/dist/{chunk-E7W2GFKO.mjs → chunk-L45A6K4C.mjs} +1 -1
- package/dist/{chunk-4P4Z2IYO.mjs → chunk-M4YY2VIS.mjs} +1 -1
- package/dist/{chunk-VNGK6ACI.mjs → chunk-MRJQKF4Z.mjs} +1 -1
- package/dist/{chunk-WOMRJVQK.mjs → chunk-N4NSSICX.mjs} +1 -1
- package/dist/{chunk-BZBPA7IN.mjs → chunk-NTB62C36.mjs} +1 -1
- package/dist/{chunk-BGQKHEB3.mjs → chunk-QUOLG5NC.mjs} +1 -1
- package/dist/chunk-S3XDFYVA.mjs +4 -0
- package/dist/{chunk-PKSY2IBO.mjs → chunk-SD57UQWG.mjs} +1 -1
- package/dist/chunk-STFTEKAH.mjs +4 -0
- package/dist/{chunk-ZYYWN6XG.mjs → chunk-SUO6GOJS.mjs} +1 -1
- package/dist/{chunk-ORLKLFWH.mjs → chunk-TASJS6US.mjs} +1 -1
- package/dist/{chunk-4EQF35LM.mjs → chunk-TT4SPGZU.mjs} +1 -1
- package/dist/{chunk-MO44Z74W.mjs → chunk-UVL5G6QE.mjs} +1 -1
- package/dist/{chunk-ND4NY6SK.mjs → chunk-WLAOMIUZ.mjs} +1 -1
- package/dist/{chunk-FN7WYXHM.mjs → chunk-WSDHDEFO.mjs} +1 -1
- package/dist/{chunk-EDB4YGKM.mjs → chunk-WU5Z6SOQ.mjs} +1 -1
- package/dist/{chunk-MJUFOUCH.mjs → chunk-XRGQ55SK.mjs} +1 -1
- package/dist/{chunk-OINI2PT2.mjs → chunk-Z7GMR4B6.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/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.d.ts +12 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmission.js +3 -3
- package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmission.stories.js +3 -3
- package/dist/components/DeliveryLead/DeliveryLeadSubmission.stories.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.d.ts +2 -2
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.js +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.stories.js +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.stories.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.d.ts +5 -3
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.js +3 -3
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.stories.js +3 -3
- package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.stories.mjs +1 -1
- package/dist/components/DeliveryLead/index.js +3 -3
- package/dist/components/DeliveryLead/index.mjs +1 -1
- package/dist/components/DeliveryLead/types.d.ts +1 -1
- package/dist/components/DeliveryLead/types.js +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/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/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
- package/dist/components/Holidays/index.mjs +1 -1
- package/dist/components/Layouts/FeatureGrid.stories.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 +8 -8
- 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 +13 -13
- 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/payload-types.d.ts +50 -14
- package/dist/payload-types.js +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/form/index.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-GRK7FP4A.mjs +0 -4
- package/dist/chunk-MAJERV65.mjs +0 -6
- package/dist/chunk-T5F3QYLN.mjs +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";"use client";var Ne=Object.create;var W=Object.defineProperty;var ze=Object.getOwnPropertyDescriptor;var Ce=Object.getOwnPropertyNames;var Se=Object.getPrototypeOf,Pe=Object.prototype.hasOwnProperty;var Le=(e,r)=>{for(var o in r)W(e,o,{get:r[o],enumerable:!0})},se=(e,r,o,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of Ce(r))!Pe.call(e,l)&&l!==o&&W(e,l,{get:()=>r[l],enumerable:!(a=ze(r,l))||a.enumerable});return e};var q=(e,r,o)=>(o=e!=null?Ne(Se(e)):{},se(r||!e||!e.__esModule?W(o,"default",{value:e,enumerable:!0}):o,e)),Re=e=>se(W({},"__esModule",{value:!0}),e);var dt={};Le(dt,{DeliveryLeadSubmissionList:()=>ct});module.exports=Re(dt);var U=require("react");var ge=require("clsx");var J="-",Ae=e=>{let r=Ge(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:s=>{let i=s.split(J);return i[0]===""&&i.length!==1&&i.shift(),le(i,r)||Me(s)},getConflictingClassGroupIds:(s,i)=>{let m=o[s]||[];return i&&a[s]?[...m,...a[s]]:m}}},le=(e,r)=>{if(e.length===0)return r.classGroupId;let o=e[0],a=r.nextPart.get(o),l=a?le(e.slice(1),a):void 0;if(l)return l;if(r.validators.length===0)return;let n=e.join(J);return r.validators.find(({validator:s})=>s(n))?.classGroupId},ae=/^\[(.+)\]$/,Me=e=>{if(ae.test(e)){let r=ae.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},Ge=e=>{let{theme:r,prefix:o}=e,a={nextPart:new Map,validators:[]};return Te(Object.entries(e.classGroups),o).forEach(([n,s])=>{X(s,a,n,r)}),a},X=(e,r,o,a)=>{e.forEach(l=>{if(typeof l=="string"){let n=l===""?r:ie(r,l);n.classGroupId=o;return}if(typeof l=="function"){if(je(l)){X(l(a),r,o,a);return}r.validators.push({validator:l,classGroupId:o});return}Object.entries(l).forEach(([n,s])=>{X(s,ie(r,n),o,a)})})},ie=(e,r)=>{let o=e;return r.split(J).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},je=e=>e.isThemeGetter,Te=(e,r)=>r?e.map(([o,a])=>{let l=a.map(n=>typeof n=="string"?r+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,i])=>[r+s,i])):n);return[o,l]}):e,Ee=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,a=new Map,l=(n,s)=>{o.set(n,s),r++,r>e&&(r=0,a=o,o=new Map)};return{get(n){let s=o.get(n);if(s!==void 0)return s;if((s=a.get(n))!==void 0)return l(n,s),s},set(n,s){o.has(n)?o.set(n,s):l(n,s)}}},ce="!",Ie=e=>{let{separator:r,experimentalParseClassName:o}=e,a=r.length===1,l=r[0],n=r.length,s=i=>{let m=[],f=0,y=0,v;for(let u=0;u<i.length;u++){let x=i[u];if(f===0){if(x===l&&(a||i.slice(u,u+n)===r)){m.push(i.slice(y,u)),y=u+n;continue}if(x==="/"){v=u;continue}}x==="["?f++:x==="]"&&f--}let w=m.length===0?i:i.substring(y),N=w.startsWith(ce),k=N?w.substring(1):w,b=v&&v>y?v-y:void 0;return{modifiers:m,hasImportantModifier:N,baseClassName:k,maybePostfixModifierPosition:b}};return o?i=>o({className:i,parseClassName:s}):s},Ve=e=>{if(e.length<=1)return e;let r=[],o=[];return e.forEach(a=>{a[0]==="["?(r.push(...o.sort(),a),o=[]):o.push(a)}),r.push(...o.sort()),r},Be=e=>({cache:Ee(e.cacheSize),parseClassName:Ie(e),...Ae(e)}),_e=/\s+/,We=(e,r)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:l}=r,n=[],s=e.trim().split(_e),i="";for(let m=s.length-1;m>=0;m-=1){let f=s[m],{modifiers:y,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:N}=o(f),k=!!N,b=a(k?w.substring(0,N):w);if(!b){if(!k){i=f+(i.length>0?" "+i:i);continue}if(b=a(w),!b){i=f+(i.length>0?" "+i:i);continue}k=!1}let u=Ve(y).join(":"),x=v?u+ce:u,h=x+b;if(n.includes(h))continue;n.push(h);let G=l(b,k);for(let R=0;R<G.length;++R){let V=G[R];n.push(x+V)}i=f+(i.length>0?" "+i:i)}return i};function De(){let e=0,r,o,a="";for(;e<arguments.length;)(r=arguments[e++])&&(o=de(r))&&(a&&(a+=" "),a+=o);return a}var de=e=>{if(typeof e=="string")return e;let r,o="";for(let a=0;a<e.length;a++)e[a]&&(r=de(e[a]))&&(o&&(o+=" "),o+=r);return o};function Ue(e,...r){let o,a,l,n=s;function s(m){let f=r.reduce((y,v)=>v(y),e());return o=Be(f),a=o.cache.get,l=o.cache.set,n=i,i(m)}function i(m){let f=a(m);if(f)return f;let y=We(m,o);return l(m,y),y}return function(){return n(De.apply(null,arguments))}}var d=e=>{let r=o=>o[e]||[];return r.isThemeGetter=!0,r},pe=/^\[(?:([a-z-]+):)?(.+)\]$/i,$e=/^\d+\/\d+$/,Oe=new Set(["px","full","screen"]),Fe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,He=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ke=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,C=e=>A(e)||Oe.has(e)||$e.test(e),S=e=>M(e,"length",ot),A=e=>!!e&&!Number.isNaN(Number(e)),K=e=>M(e,"number",A),T=e=>!!e&&Number.isInteger(Number(e)),Je=e=>e.endsWith("%")&&A(e.slice(0,-1)),c=e=>pe.test(e),P=e=>Fe.test(e),Ye=new Set(["length","size","percentage"]),Ze=e=>M(e,Ye,me),Qe=e=>M(e,"position",me),et=new Set(["image","url"]),tt=e=>M(e,et,st),rt=e=>M(e,"",nt),E=()=>!0,M=(e,r,o)=>{let a=pe.exec(e);return a?a[1]?typeof r=="string"?a[1]===r:r.has(a[1]):o(a[2]):!1},ot=e=>He.test(e)&&!qe.test(e),me=()=>!1,nt=e=>Ke.test(e),st=e=>Xe.test(e);var at=()=>{let e=d("colors"),r=d("spacing"),o=d("blur"),a=d("brightness"),l=d("borderColor"),n=d("borderRadius"),s=d("borderSpacing"),i=d("borderWidth"),m=d("contrast"),f=d("grayscale"),y=d("hueRotate"),v=d("invert"),w=d("gap"),N=d("gradientColorStops"),k=d("gradientColorStopPositions"),b=d("inset"),u=d("margin"),x=d("opacity"),h=d("padding"),G=d("saturate"),R=d("scale"),V=d("sepia"),Z=d("skew"),Q=d("space"),ee=d("translate"),$=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",c,r],p=()=>[c,r],te=()=>["",C,S],B=()=>["auto",A,c],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_=()=>["solid","dashed","dotted","double","none"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",c],ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[A,c];return{cacheSize:500,separator:":",theme:{colors:[E],spacing:[C,S],blur:["none","",P,c],brightness:z(),borderColor:[e],borderRadius:["none","","full",P,c],borderSpacing:p(),borderWidth:te(),contrast:z(),grayscale:j(),hueRotate:z(),invert:j(),gap:p(),gradientColorStops:[e],gradientColorStopPositions:[Je,S],inset:F(),margin:F(),opacity:z(),padding:p(),saturate:z(),scale:z(),sepia:j(),skew:z(),space:p(),translate:p()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[P]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"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:[...re(),c]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",T,c]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",c]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",T,c]}],"grid-cols":[{"grid-cols":[E]}],"col-start-end":[{col:["auto",{span:["full",T,c]},c]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[E]}],"row-start-end":[{row:["auto",{span:[T,c]},c]}],"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",c]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",c]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[u]}],mx:[{mx:[u]}],my:[{my:[u]}],ms:[{ms:[u]}],me:[{me:[u]}],mt:[{mt:[u]}],mr:[{mr:[u]}],mb:[{mb:[u]}],ml:[{ml:[u]}],"space-x":[{"space-x":[Q]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Q]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",c,r]}],"min-w":[{"min-w":[c,r,"min","max","fit"]}],"max-w":[{"max-w":[c,r,"none","full","min","max","fit","prose",{screen:[P]},P]}],h:[{h:[c,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[c,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[c,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[c,r,"auto","min","max","fit"]}],"font-size":[{text:["base",P,S]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",K]}],"font-family":[{font:[E]}],"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",c]}],"line-clamp":[{"line-clamp":["none",A,K]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",C,c]}],"list-image":[{"list-image":["none",c]}],"list-style-type":[{list:["none","disc","decimal",c]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",C,S]}],"underline-offset":[{"underline-offset":["auto",C,c]}],"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:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c]}],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",c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...re(),Qe]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ze]}],"bg-image":[{bg:["none",{"gradient-to":["ye","tr","r","br","b","bl","l","tl"]},tt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[N]}],"gradient-via":[{via:[N]}],"gradient-to":[{to:[N]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-ye":[{"rounded-ye":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-ye":[{"border-ye":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[..._(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:_()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-ye":[{"border-ye":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",..._()]}],"outline-offset":[{"outline-offset":[C,c]}],"outline-w":[{outline:[C,S]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[C,S]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",P,rt]}],"shadow-color":[{shadow:[E]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":oe()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[a]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",P,c]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[y]}],invert:[{invert:[v]}],saturate:[{saturate:[G]}],sepia:[{sepia:[V]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[y]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[V]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",c]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[T,c]}],"translate-x":[{"translate-x":[ee]}],"translate-y":[{"translate-y":[ee]}],"skew-x":[{"skew-x":[Z]}],"skew-y":[{"skew-y":[Z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",c]}],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",c]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"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",c]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[C,S,K]}],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-ye","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-ye":["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-ye","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-ye","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-ye","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-ye","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 ue=Ue(at);function I(...e){return ue((0,ge.clsx)(e))}var be=require("@radix-ui/react-slot"),fe=require("class-variance-authority"),xe=q(require("react")),ye=require("react/jsx-runtime"),it=(0,fe.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"}}}),D=xe.forwardRef(({asChild:e=!1,className:r,size:o,variant:a,...l},n)=>(0,ye.jsx)(e?be.Slot:"button",{className:I(it({className:r,size:o,variant:a})),ref:n,...l}));D.displayName="Button";var he=q(require("react")),Y=q(require("@radix-ui/react-label"));var lt=(0,fe.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),L=he.forwardRef(({className:e,...r},o)=>(0,ye.jsx)(Y.Root,{ref:o,className:I(lt(),e),...r}));L.displayName=Y.Root.displayName;var g=require("lucide-react"),ke={"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 ct({submissions:e,isLoading:r=!1}){let[o,a]=(0,U.useState)(null);(0,U.useEffect)(()=>{let s=i=>{i.key==="Escape"&&a(null)};if(o)return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[o]);let l=s=>new Date(s).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}),n=e.find(s=>s.id.toString()===o);return r?(0,ye.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,ye.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,ye.jsxs)("div",{className:"animate-pulse",children:[(0,ye.jsx)("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-6"}),(0,ye.jsx)("div",{className:"space-y-4",children:[...Array(5)].map((s,i)=>(0,ye.jsx)("div",{className:"h-16 bg-gray-200 rounded"},i))})]})})}):e.length===0?(0,ye.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,ye.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,ye.jsxs)("div",{className:"text-center py-12",children:[(0,ye.jsx)(g.FileText,{className:"mx-auto h-12 w-12 text-gray-400"}),(0,ye.jsx)("h3",{className:"mt-2 text-sm font-semibold text-gray-900 dark:text-zinc-100",children:"No submissions found"}),(0,ye.jsx)("p",{className:"mt-1 text-sm text-gray-500 dark:text-zinc-400",children:"You haven'ye submitted any delivery lead reports yet."})]})})}):(0,ye.jsxs)(ye.Fragment,{children:[(0,ye.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,ye.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,ye.jsxs)("div",{className:"mb-6",children:[(0,ye.jsx)("h2",{className:"text-2xl font-bold text-gray-900 dark:text-zinc-100",children:"My Delivery Lead Submissions"}),(0,ye.jsx)("p",{className:"text-sm text-gray-500 dark:text-zinc-400 mt-1",children:"View all your submitted delivery lead reports"})]}),(0,ye.jsx)("div",{className:"overflow-y-auto max-h-96",children:(0,ye.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,ye.jsx)("thead",{className:"bg-gray-50 dark:bg-zinc-800 sticky top-0 z-10",children:(0,ye.jsxs)("tr",{children:[(0,ye.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,ye.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,ye.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,ye.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,ye.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,ye.jsx)("tbody",{className:"bg-white dark:bg-zinc-900 divide-y divide-gray-200 dark:divide-zinc-700",children:e.map(s=>(0,ye.jsxs)("tr",{className:"hover:bg-gray-50 dark:hover:bg-zinc-800/50",children:[(0,ye.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,ye.jsxs)("div",{children:[(0,ye.jsx)("div",{className:"text-sm font-medium text-gray-900 dark:text-zinc-100",children:s.projectName}),(0,ye.jsxs)("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,ye.jsx)(g.Building,{className:"h-3 w-3"}),s.clientName]})]})}),(0,ye.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,ye.jsxs)("div",{className:"text-sm text-gray-900 dark:text-zinc-100 flex items-center gap-1",children:[(0,ye.jsx)(g.User,{className:"h-3 w-3"}),s.deliveryLead]})}),(0,ye.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,ye.jsxs)("div",{className:"flex flex-wrap gap-1",children:[s.milestones?.slice(0,3).map((i,m)=>(0,ye.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${ke[i.rag]}`,children:i.rag},m)),s.milestones&&s.milestones.length>3&&(0,ye.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,ye.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,ye.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,ye.jsxs)("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,ye.jsx)(g.Calendar,{className:"h-3 w-3"}),l(s.createdAt)]})}),(0,ye.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:(0,ye.jsx)(D,{variant:"ghost",size:"sm",onClick:()=>a(s.id.toString()),className:"text-accent hover:text-accent/80",children:"View Details"})})]},s.id))})]})})]})}),n&&(0,ye.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:(0,ye.jsxs)("div",{className:"bg-white dark:bg-zinc-900 rounded-xl shadow-xl max-w-4xl w-full max-h-[90vh] overflow-y-auto",children:[(0,ye.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-gray-200 dark:border-zinc-700",children:[(0,ye.jsxs)("div",{children:[(0,ye.jsx)("h2",{className:"text-xl font-semibold text-gray-900 dark:text-zinc-100",children:n.projectName}),(0,ye.jsxs)("p",{className:"text-sm text-gray-500 dark:text-zinc-400",children:[n.clientName," \u2022"," ",l(n.createdAt)]})]}),(0,ye.jsx)("button",{onClick:()=>a(null),className:"text-gray-400 hover:text-gray-600 dark:hover:text-zinc-300",children:(0,ye.jsx)(g.X,{className:"h-6 w-6"})})]}),(0,ye.jsxs)("div",{className:"p-6 space-y-6",children:[(0,ye.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,ye.jsxs)("div",{children:[(0,ye.jsxs)(L,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,ye.jsx)(g.FileText,{className:"h-4 w-4"}),"Project Summary"]}),(0,ye.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:n.projectSummary})]}),(0,ye.jsxs)("div",{children:[(0,ye.jsxs)(L,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,ye.jsx)(g.Users,{className:"h-4 w-4"}),"Project Update"]}),(0,ye.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:n.projectUpdate})]}),n.projectConcerns&&(0,ye.jsxs)("div",{children:[(0,ye.jsxs)(L,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,ye.jsx)(g.AlertTriangle,{className:"h-4 w-4"}),"Project Concerns"]}),(0,ye.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:n.projectConcerns})]}),n.commercialOpportunities&&(0,ye.jsxs)("div",{children:[(0,ye.jsxs)(L,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,ye.jsx)(g.Briefcase,{className:"h-4 w-4"}),"Commercial Opportunities"]}),(0,ye.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:n.commercialOpportunities})]}),n.commercialRisks&&(0,ye.jsxs)("div",{className:"lg:col-span-2",children:[(0,ye.jsxs)(L,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,ye.jsx)(g.ShieldAlert,{className:"h-4 w-4"}),"Commercial Risks"]}),(0,ye.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:n.commercialRisks})]})]}),(0,ye.jsxs)("div",{children:[(0,ye.jsxs)(L,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,ye.jsx)(g.ListChecks,{className:"h-4 w-4"}),"Milestones"]}),n.milestones&&n.milestones.length>0?(0,ye.jsx)("div",{className:"bg-gray-50 dark:bg-zinc-800 rounded-lg border overflow-hidden",children:(0,ye.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,ye.jsx)("thead",{className:"bg-gray-100 dark:bg-zinc-700",children:(0,ye.jsxs)("tr",{children:[(0,ye.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Name"}),(0,ye.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Commentary"}),(0,ye.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Due Date"}),(0,ye.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Status"})]})}),(0,ye.jsx)("tbody",{className:"divide-y divide-gray-200 dark:divide-zinc-700",children:n.milestones.map((s,i)=>(0,ye.jsxs)("tr",{children:[(0,ye.jsx)("td",{className:"px-4 py-2 text-sm text-gray-900 dark:text-zinc-100",children:s.name}),(0,ye.jsx)("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:s.commentary||"-"}),(0,ye.jsx)("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:s.dueDate?l(s.dueDate):"-"}),(0,ye.jsx)("td",{className:"px-4 py-2",children:(0,ye.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${ke[s.rag]}`,children:s.rag})})]},i))})]})}):(0,ye.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,ye.jsx)("div",{className:"flex justify-end p-6 border-ye border-gray-200 dark:border-zinc-700",children:(0,ye.jsx)(D,{onClick:()=>a(null),variant:"outline",children:"Close"})})]})})]})}0&&(module.exports={DeliveryLeadSubmissionList});
|
|
4
|
+
"use strict";"use client";var Ne=Object.create;var W=Object.defineProperty;var ze=Object.getOwnPropertyDescriptor;var Ce=Object.getOwnPropertyNames;var Se=Object.getPrototypeOf,Pe=Object.prototype.hasOwnProperty;var Le=(e,r)=>{for(var o in r)W(e,o,{get:r[o],enumerable:!0})},ae=(e,r,o,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Ce(r))!Pe.call(e,i)&&i!==o&&W(e,i,{get:()=>r[i],enumerable:!(s=ze(r,i))||s.enumerable});return e};var q=(e,r,o)=>(o=e!=null?Ne(Se(e)):{},ae(r||!e||!e.__esModule?W(o,"default",{value:e,enumerable:!0}):o,e)),Re=e=>ae(W({},"__esModule",{value:!0}),e);var dt={};Le(dt,{DeliveryLeadSubmissionList:()=>ct});module.exports=Re(dt);var D=require("react");var ge=require("clsx");var J="-",Ae=e=>{let r=je(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:c=>{let l=c.split(J);return l[0]===""&&l.length!==1&&l.shift(),le(l,r)||Me(c)},getConflictingClassGroupIds:(c,l)=>{let a=o[c]||[];return l&&s[c]?[...a,...s[c]]:a}}},le=(e,r)=>{if(e.length===0)return r.classGroupId;let o=e[0],s=r.nextPart.get(o),i=s?le(e.slice(1),s):void 0;if(i)return i;if(r.validators.length===0)return;let n=e.join(J);return r.validators.find(({validator:c})=>c(n))?.classGroupId},se=/^\[(.+)\]$/,Me=e=>{if(se.test(e)){let r=se.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},je=e=>{let{theme:r,prefix:o}=e,s={nextPart:new Map,validators:[]};return Te(Object.entries(e.classGroups),o).forEach(([n,c])=>{X(c,s,n,r)}),s},X=(e,r,o,s)=>{e.forEach(i=>{if(typeof i=="string"){let n=i===""?r:ie(r,i);n.classGroupId=o;return}if(typeof i=="function"){if(Ge(i)){X(i(s),r,o,s);return}r.validators.push({validator:i,classGroupId:o});return}Object.entries(i).forEach(([n,c])=>{X(c,ie(r,n),o,s)})})},ie=(e,r)=>{let o=e;return r.split(J).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},Ge=e=>e.isThemeGetter,Te=(e,r)=>r?e.map(([o,s])=>{let i=s.map(n=>typeof n=="string"?r+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([c,l])=>[r+c,l])):n);return[o,i]}):e,Ee=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,s=new Map,i=(n,c)=>{o.set(n,c),r++,r>e&&(r=0,s=o,o=new Map)};return{get(n){let c=o.get(n);if(c!==void 0)return c;if((c=s.get(n))!==void 0)return i(n,c),c},set(n,c){o.has(n)?o.set(n,c):i(n,c)}}},ce="!",Ie=e=>{let{separator:r,experimentalParseClassName:o}=e,s=r.length===1,i=r[0],n=r.length,c=l=>{let a=[],p=0,f=0,v;for(let g=0;g<l.length;g++){let y=l[g];if(p===0){if(y===i&&(s||l.slice(g,g+n)===r)){a.push(l.slice(f,g)),f=g+n;continue}if(y==="/"){v=g;continue}}y==="["?p++:y==="]"&&p--}let w=a.length===0?l:l.substring(f),N=w.startsWith(ce),k=N?w.substring(1):w,x=v&&v>f?v-f:void 0;return{modifiers:a,hasImportantModifier:N,baseClassName:k,maybePostfixModifierPosition:x}};return o?l=>o({className:l,parseClassName:c}):c},Ve=e=>{if(e.length<=1)return e;let r=[],o=[];return e.forEach(s=>{s[0]==="["?(r.push(...o.sort(),s),o=[]):o.push(s)}),r.push(...o.sort()),r},Be=e=>({cache:Ee(e.cacheSize),parseClassName:Ie(e),...Ae(e)}),_e=/\s+/,We=(e,r)=>{let{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:i}=r,n=[],c=e.trim().split(_e),l="";for(let a=c.length-1;a>=0;a-=1){let p=c[a],{modifiers:f,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:N}=o(p),k=!!N,x=s(k?w.substring(0,N):w);if(!x){if(!k){l=p+(l.length>0?" "+l:l);continue}if(x=s(w),!x){l=p+(l.length>0?" "+l:l);continue}k=!1}let g=Ve(f).join(":"),y=v?g+ce:g,h=y+x;if(n.includes(h))continue;n.push(h);let j=i(x,k);for(let R=0;R<j.length;++R){let V=j[R];n.push(y+V)}l=p+(l.length>0?" "+l:l)}return l};function $e(){let e=0,r,o,s="";for(;e<arguments.length;)(r=arguments[e++])&&(o=de(r))&&(s&&(s+=" "),s+=o);return s}var de=e=>{if(typeof e=="string")return e;let r,o="";for(let s=0;s<e.length;s++)e[s]&&(r=de(e[s]))&&(o&&(o+=" "),o+=r);return o};function De(e,...r){let o,s,i,n=c;function c(a){let p=r.reduce((f,v)=>v(f),e());return o=Be(p),s=o.cache.get,i=o.cache.set,n=l,l(a)}function l(a){let p=s(a);if(p)return p;let f=We(a,o);return i(a,f),f}return function(){return n($e.apply(null,arguments))}}var m=e=>{let r=o=>o[e]||[];return r.isThemeGetter=!0,r},pe=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ue=/^\d+\/\d+$/,Oe=new Set(["px","full","screen"]),Fe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,He=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ke=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,C=e=>A(e)||Oe.has(e)||Ue.test(e),S=e=>M(e,"length",ot),A=e=>!!e&&!Number.isNaN(Number(e)),K=e=>M(e,"number",A),T=e=>!!e&&Number.isInteger(Number(e)),Je=e=>e.endsWith("%")&&A(e.slice(0,-1)),d=e=>pe.test(e),P=e=>Fe.test(e),Ye=new Set(["length","size","percentage"]),Ze=e=>M(e,Ye,me),Qe=e=>M(e,"position",me),et=new Set(["image","url"]),tt=e=>M(e,et,at),rt=e=>M(e,"",nt),E=()=>!0,M=(e,r,o)=>{let s=pe.exec(e);return s?s[1]?typeof r=="string"?s[1]===r:r.has(s[1]):o(s[2]):!1},ot=e=>He.test(e)&&!qe.test(e),me=()=>!1,nt=e=>Ke.test(e),at=e=>Xe.test(e);var st=()=>{let e=m("colors"),r=m("spacing"),o=m("blur"),s=m("brightness"),i=m("borderColor"),n=m("borderRadius"),c=m("borderSpacing"),l=m("borderWidth"),a=m("contrast"),p=m("grayscale"),f=m("hueRotate"),v=m("invert"),w=m("gap"),N=m("gradientColorStops"),k=m("gradientColorStopPositions"),x=m("inset"),g=m("margin"),y=m("opacity"),h=m("padding"),j=m("saturate"),R=m("scale"),V=m("sepia"),Z=m("skew"),Q=m("space"),ee=m("translate"),U=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",d,r],u=()=>[d,r],te=()=>["",C,S],B=()=>["auto",A,d],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_=()=>["solid","dashed","dotted","double","none"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],G=()=>["","0",d],ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[A,d];return{cacheSize:500,separator:":",theme:{colors:[E],spacing:[C,S],blur:["none","",P,d],brightness:z(),borderColor:[e],borderRadius:["none","","full",P,d],borderSpacing:u(),borderWidth:te(),contrast:z(),grayscale:G(),hueRotate:z(),invert:G(),gap:u(),gradientColorStops:[e],gradientColorStopPositions:[Je,S],inset:F(),margin:F(),opacity:z(),padding:u(),saturate:z(),scale:z(),sepia:G(),skew:z(),space:u(),translate:u()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[P]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"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:[...re(),d]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",T,d]}],basis:[{basis:F()}],"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:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",T,d]}],"grid-cols":[{"grid-cols":[E]}],"col-start-end":[{col:["auto",{span:["full",T,d]},d]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[E]}],"row-start-end":[{row:["auto",{span:[T,d]},d]}],"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",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[Q]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Q]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",d,r]}],"min-w":[{"min-w":[d,r,"min","max","fit"]}],"max-w":[{"max-w":[d,r,"none","full","min","max","fit","prose",{screen:[P]},P]}],h:[{h:[d,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,r,"auto","min","max","fit"]}],"font-size":[{text:["base",P,S]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",K]}],"font-family":[{font:[E]}],"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",A,K]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",C,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:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",C,S]}],"underline-offset":[{"underline-offset":["auto",C,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:u()}],"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:[...re(),Qe]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ze]}],"bg-image":[{bg:["none",{"gradient-to":["ye","tr","r","br","b","bl","l","tl"]},tt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[N]}],"gradient-via":[{via:[N]}],"gradient-to":[{to:[N]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-ye":[{"rounded-ye":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"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-ye":[{"border-ye":[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:[..._(),"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:_()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-ye":[{"border-ye":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",..._()]}],"outline-offset":[{"outline-offset":[C,d]}],"outline-w":[{outline:[C,S]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[C,S]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",P,rt]}],"shadow-color":[{shadow:[E]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":oe()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",P,d]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[v]}],saturate:[{saturate:[j]}],sepia:[{sepia:[V]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[V]}],"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:z()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[T,d]}],"translate-x":[{"translate-x":[ee]}],"translate-y":[{"translate-y":[ee]}],"skew-x":[{"skew-x":[Z]}],"skew-y":[{"skew-y":[Z]}],"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":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[C,S,K]}],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-ye","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-ye":["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-ye","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-ye","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-ye","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-ye","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 ue=De(st);function I(...e){return ue((0,ge.clsx)(e))}var be=require("@radix-ui/react-slot"),fe=require("class-variance-authority"),xe=q(require("react")),ye=require("react/jsx-runtime"),it=(0,fe.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"}}}),$=xe.forwardRef(({asChild:e=!1,className:r,size:o,variant:s,...i},n)=>(0,ye.jsx)(e?be.Slot:"button",{className:I(it({className:r,size:o,variant:s})),ref:n,...i}));$.displayName="Button";var he=q(require("react")),Y=q(require("@radix-ui/react-label"));var lt=(0,fe.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),L=he.forwardRef(({className:e,...r},o)=>(0,ye.jsx)(Y.Root,{ref:o,className:I(lt(),e),...r}));L.displayName=Y.Root.displayName;var b=require("lucide-react"),ke={"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 ct({submissions:e,isLoading:r=!1}){let[o,s]=(0,D.useState)(null);(0,D.useEffect)(()=>{let a=p=>{p.key==="Escape"&&s(null)};if(o)return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[o]);let i=a=>new Date(a).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}),n=e.find(a=>a.id.toString()===o);function c(a){return typeof a=="object"&&a!==null&&"projectName"in a?a.projectName:`Project #${a}`}function l(a){return typeof a=="object"&&a!==null&&"name"in a?a.name:`Customer #${a}`}return r?(0,ye.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,ye.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,ye.jsxs)("div",{className:"animate-pulse",children:[(0,ye.jsx)("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-6"}),(0,ye.jsx)("div",{className:"space-y-4",children:[...Array(5)].map((a,p)=>(0,ye.jsx)("div",{className:"h-16 bg-gray-200 rounded"},p))})]})})}):e.length===0?(0,ye.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,ye.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,ye.jsxs)("div",{className:"text-center py-12",children:[(0,ye.jsx)(b.FileText,{className:"mx-auto h-12 w-12 text-gray-400"}),(0,ye.jsx)("h3",{className:"mt-2 text-sm font-semibold text-gray-900 dark:text-zinc-100",children:"No submissions found"}),(0,ye.jsx)("p",{className:"mt-1 text-sm text-gray-500 dark:text-zinc-400",children:"You haven'ye submitted any delivery lead reports yet."})]})})}):(0,ye.jsxs)(ye.Fragment,{children:[(0,ye.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,ye.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,ye.jsxs)("div",{className:"mb-6",children:[(0,ye.jsx)("h2",{className:"text-2xl font-bold text-gray-900 dark:text-zinc-100",children:"My Delivery Lead Submissions"}),(0,ye.jsx)("p",{className:"text-sm text-gray-500 dark:text-zinc-400 mt-1",children:"View all your submitted delivery lead reports"})]}),(0,ye.jsx)("div",{className:"overflow-y-auto max-h-96",children:(0,ye.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,ye.jsx)("thead",{className:"bg-gray-50 dark:bg-zinc-800 sticky top-0 z-10",children:(0,ye.jsxs)("tr",{children:[(0,ye.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,ye.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,ye.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,ye.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,ye.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,ye.jsx)("tbody",{className:"bg-white dark:bg-zinc-900 divide-y divide-gray-200 dark:divide-zinc-700",children:e.map(a=>(0,ye.jsxs)("tr",{className:"hover:bg-gray-50 dark:hover:bg-zinc-800/50",children:[(0,ye.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,ye.jsxs)("div",{children:[(0,ye.jsx)("div",{className:"text-sm font-medium text-gray-900 dark:text-zinc-100",children:c(a.project)}),(0,ye.jsxs)("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,ye.jsx)(b.Building,{className:"h-3 w-3"}),l(a.customer)]})]})}),(0,ye.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,ye.jsxs)("div",{className:"text-sm text-gray-900 dark:text-zinc-100 flex items-center gap-1",children:[(0,ye.jsx)(b.User,{className:"h-3 w-3"}),typeof a.project=="object"&&a.project!==null&&"deliveryLead"in a.project&&typeof a.project.deliveryLead=="object"&&a.project.deliveryLead!==null&&"name"in a.project.deliveryLead?a.project.deliveryLead.name:"\u2014"]})}),(0,ye.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,ye.jsxs)("div",{className:"flex flex-wrap gap-1",children:[a.milestones?.slice(0,3).map((p,f)=>(0,ye.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${ke[p.rag]}`,children:p.rag},f)),a.milestones&&a.milestones.length>3&&(0,ye.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:["+",a.milestones.length-3," more"]}),!a.milestones&&(0,ye.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,ye.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,ye.jsxs)("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,ye.jsx)(b.Calendar,{className:"h-3 w-3"}),i(a.createdAt)]})}),(0,ye.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:(0,ye.jsx)($,{variant:"ghost",size:"sm",onClick:()=>s(a.id.toString()),className:"text-accent hover:text-accent/80",children:"View Details"})})]},a.id))})]})})]})}),n&&(0,ye.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:(0,ye.jsxs)("div",{className:"bg-white dark:bg-zinc-900 rounded-xl shadow-xl max-w-4xl w-full max-h-[90vh] overflow-y-auto",children:[(0,ye.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-gray-200 dark:border-zinc-700",children:[(0,ye.jsxs)("div",{children:[(0,ye.jsx)("h2",{className:"text-xl font-semibold text-gray-900 dark:text-zinc-100",children:c(n.project)}),(0,ye.jsxs)("p",{className:"text-sm text-gray-500 dark:text-zinc-400",children:[l(n.customer)," \u2022"," ",i(n.createdAt)]})]}),(0,ye.jsx)("button",{onClick:()=>s(null),className:"text-gray-400 hover:text-gray-600 dark:hover:text-zinc-300",children:(0,ye.jsx)(b.X,{className:"h-6 w-6"})})]}),(0,ye.jsxs)("div",{className:"p-6 space-y-6",children:[(0,ye.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,ye.jsxs)("div",{children:[(0,ye.jsxs)(L,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,ye.jsx)(b.FileText,{className:"h-4 w-4"}),"Project Summary"]}),(0,ye.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:n.projectSummary})]}),(0,ye.jsxs)("div",{children:[(0,ye.jsxs)(L,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,ye.jsx)(b.Users,{className:"h-4 w-4"}),"Project Update"]}),(0,ye.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:n.projectUpdate})]}),n.projectConcerns&&(0,ye.jsxs)("div",{children:[(0,ye.jsxs)(L,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,ye.jsx)(b.AlertTriangle,{className:"h-4 w-4"}),"Project Concerns"]}),(0,ye.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:n.projectConcerns})]}),n.commercialOpportunities&&(0,ye.jsxs)("div",{children:[(0,ye.jsxs)(L,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,ye.jsx)(b.Briefcase,{className:"h-4 w-4"}),"Commercial Opportunities"]}),(0,ye.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:n.commercialOpportunities})]}),n.commercialRisks&&(0,ye.jsxs)("div",{className:"lg:col-span-2",children:[(0,ye.jsxs)(L,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,ye.jsx)(b.ShieldAlert,{className:"h-4 w-4"}),"Commercial Risks"]}),(0,ye.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:n.commercialRisks})]})]}),(0,ye.jsxs)("div",{children:[(0,ye.jsxs)(L,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,ye.jsx)(b.ListChecks,{className:"h-4 w-4"}),"Milestones"]}),n.milestones&&n.milestones.length>0?(0,ye.jsx)("div",{className:"bg-gray-50 dark:bg-zinc-800 rounded-lg border overflow-hidden",children:(0,ye.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,ye.jsx)("thead",{className:"bg-gray-100 dark:bg-zinc-700",children:(0,ye.jsxs)("tr",{children:[(0,ye.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Name"}),(0,ye.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Commentary"}),(0,ye.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Due Date"}),(0,ye.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Status"})]})}),(0,ye.jsx)("tbody",{className:"divide-y divide-gray-200 dark:divide-zinc-700",children:n.milestones.map((a,p)=>(0,ye.jsxs)("tr",{children:[(0,ye.jsx)("td",{className:"px-4 py-2 text-sm text-gray-900 dark:text-zinc-100",children:a.name}),(0,ye.jsx)("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:a.commentary||"-"}),(0,ye.jsx)("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:a.dueDate?i(a.dueDate):"-"}),(0,ye.jsx)("td",{className:"px-4 py-2",children:(0,ye.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${ke[a.rag]}`,children:a.rag})})]},p))})]})}):(0,ye.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,ye.jsx)("div",{className:"flex justify-end p-6 border-ye border-gray-200 dark:border-zinc-700",children:(0,ye.jsx)($,{onClick:()=>s(null),variant:"outline",children:"Close"})})]})})]})}0&&(module.exports={DeliveryLeadSubmissionList});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-STFTEKAH.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 DeliveryLeadSubmissionList};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";var Ce=Object.create;var B=Object.defineProperty;var Se=Object.getOwnPropertyDescriptor;var Le=Object.getOwnPropertyNames;var Pe=Object.getPrototypeOf,Ae=Object.prototype.hasOwnProperty;var Re=(e,r)=>{for(var o in r)B(e,o,{get:r[o],enumerable:!0})},se=(e,r,o,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let l of Le(r))!Ae.call(e,l)&&l!==o&&B(e,l,{get:()=>r[l],enumerable:!(a=Se(r,l))||a.enumerable});return e};var F=(e,r,o)=>(o=e!=null?Ce(Pe(e)):{},se(r||!e||!e.__esModule?B(o,"default",{value:e,enumerable:!0}):o,e)),Te=e=>se(B({},"__esModule",{value:!0}),e);var xt={};Re(xt,{Default:()=>ut,Empty:()=>bt,Loading:()=>gt,SingleSubmission:()=>ft,default:()=>mt});module.exports=Te(xt);var _=require("react");var ge=require("clsx");var K="-",je=e=>{let r=De(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:s=>{let i=s.split(K);return i[0]===""&&i.length!==1&&i.shift(),le(i,r)||Me(s)},getConflictingClassGroupIds:(s,i)=>{let m=o[s]||[];return i&&a[s]?[...m,...a[s]]:m}}},le=(e,r)=>{if(e.length===0)return r.classGroupId;let o=e[0],a=r.nextPart.get(o),l=a?le(e.slice(1),a):void 0;if(l)return l;if(r.validators.length===0)return;let n=e.join(K);return r.validators.find(({validator:s})=>s(n))?.classGroupId},ae=/^\[(.+)\]$/,Me=e=>{if(ae.test(e)){let r=ae.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},De=e=>{let{theme:r,prefix:o}=e,a={nextPart:new Map,validators:[]};return Ee(Object.entries(e.classGroups),o).forEach(([n,s])=>{J(s,a,n,r)}),a},J=(e,r,o,a)=>{e.forEach(l=>{if(typeof l=="string"){let n=l===""?r:ie(r,l);n.classGroupId=o;return}if(typeof l=="function"){if(Ge(l)){J(l(a),r,o,a);return}r.validators.push({validator:l,classGroupId:o});return}Object.entries(l).forEach(([n,s])=>{J(s,ie(r,n),o,a)})})},ie=(e,r)=>{let o=e;return r.split(K).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},Ge=e=>e.isThemeGetter,Ee=(e,r)=>r?e.map(([o,a])=>{let l=a.map(n=>typeof n=="string"?r+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([s,i])=>[r+s,i])):n);return[o,l]}):e,Ie=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,a=new Map,l=(n,s)=>{o.set(n,s),r++,r>e&&(r=0,a=o,o=new Map)};return{get(n){let s=o.get(n);if(s!==void 0)return s;if((s=a.get(n))!==void 0)return l(n,s),s},set(n,s){o.has(n)?o.set(n,s):l(n,s)}}},ce="!",Ve=e=>{let{separator:r,experimentalParseClassName:o}=e,a=r.length===1,l=r[0],n=r.length,s=i=>{let m=[],f=0,h=0,v;for(let u=0;u<i.length;u++){let x=i[u];if(f===0){if(x===l&&(a||i.slice(u,u+n)===r)){m.push(i.slice(h,u)),h=u+n;continue}if(x==="/"){v=u;continue}}x==="["?f++:x==="]"&&f--}let w=m.length===0?i:i.substring(h),N=w.startsWith(ce),k=N?w.substring(1):w,b=v&&v>h?v-h:void 0;return{modifiers:m,hasImportantModifier:N,baseClassName:k,maybePostfixModifierPosition:b}};return o?i=>o({className:i,parseClassName:s}):s},Oe=e=>{if(e.length<=1)return e;let r=[],o=[];return e.forEach(a=>{a[0]==="["?(r.push(...o.sort(),a),o=[]):o.push(a)}),r.push(...o.sort()),r},Be=e=>({cache:Ie(e.cacheSize),parseClassName:Ve(e),...je(e)}),Ue=/\s+/,_e=(e,r)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:l}=r,n=[],s=e.trim().split(Ue),i="";for(let m=s.length-1;m>=0;m-=1){let f=s[m],{modifiers:h,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:N}=o(f),k=!!N,b=a(k?w.substring(0,N):w);if(!b){if(!k){i=f+(i.length>0?" "+i:i);continue}if(b=a(w),!b){i=f+(i.length>0?" "+i:i);continue}k=!1}let u=Oe(h).join(":"),x=v?u+ce:u,y=x+b;if(n.includes(y))continue;n.push(y);let j=l(b,k);for(let A=0;A<j.length;++A){let I=j[A];n.push(x+I)}i=f+(i.length>0?" "+i:i)}return i};function We(){let e=0,r,o,a="";for(;e<arguments.length;)(r=arguments[e++])&&(o=de(r))&&(a&&(a+=" "),a+=o);return a}var de=e=>{if(typeof e=="string")return e;let r,o="";for(let a=0;a<e.length;a++)e[a]&&(r=de(e[a]))&&(o&&(o+=" "),o+=r);return o};function $e(e,...r){let o,a,l,n=s;function s(m){let f=r.reduce((h,v)=>v(h),e());return o=Be(f),a=o.cache.get,l=o.cache.set,n=i,i(m)}function i(m){let f=a(m);if(f)return f;let h=_e(m,o);return l(m,h),h}return function(){return n(We.apply(null,arguments))}}var d=e=>{let r=o=>o[e]||[];return r.isThemeGetter=!0,r},pe=/^\[(?:([a-z-]+):)?(.+)\]$/i,He=/^\d+\/\d+$/,qe=new Set(["px","full","screen"]),Fe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ze=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Je=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ke=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,C=e=>R(e)||qe.has(e)||He.test(e),S=e=>T(e,"length",st),R=e=>!!e&&!Number.isNaN(Number(e)),Z=e=>T(e,"number",R),D=e=>!!e&&Number.isInteger(Number(e)),Qe=e=>e.endsWith("%")&&R(e.slice(0,-1)),c=e=>pe.test(e),L=e=>Fe.test(e),Ye=new Set(["length","size","percentage"]),et=e=>T(e,Ye,me),tt=e=>T(e,"position",me),rt=new Set(["image","url"]),ot=e=>T(e,rt,it),nt=e=>T(e,"",at),G=()=>!0,T=(e,r,o)=>{let a=pe.exec(e);return a?a[1]?typeof r=="string"?a[1]===r:r.has(a[1]):o(a[2]):!1},st=e=>Ze.test(e)&&!Je.test(e),me=()=>!1,at=e=>Ke.test(e),it=e=>Xe.test(e);var lt=()=>{let e=d("colors"),r=d("spacing"),o=d("blur"),a=d("brightness"),l=d("borderColor"),n=d("borderRadius"),s=d("borderSpacing"),i=d("borderWidth"),m=d("contrast"),f=d("grayscale"),h=d("hueRotate"),v=d("invert"),w=d("gap"),N=d("gradientColorStops"),k=d("gradientColorStopPositions"),b=d("inset"),u=d("margin"),x=d("opacity"),y=d("padding"),j=d("saturate"),A=d("scale"),I=d("sepia"),Q=d("skew"),Y=d("space"),ee=d("translate"),W=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",c,r],p=()=>[c,r],te=()=>["",C,S],V=()=>["auto",R,c],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",c],ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[R,c];return{cacheSize:500,separator:":",theme:{colors:[G],spacing:[C,S],blur:["none","",L,c],brightness:z(),borderColor:[e],borderRadius:["none","","full",L,c],borderSpacing:p(),borderWidth:te(),contrast:z(),grayscale:M(),hueRotate:z(),invert:M(),gap:p(),gradientColorStops:[e],gradientColorStopPositions:[Qe,S],inset:H(),margin:H(),opacity:z(),padding:p(),saturate:z(),scale:z(),sepia:M(),skew:z(),space:p(),translate:p()},classGroups:{aspect:[{aspect:["auto","square","video",c]}],container:["container"],columns:[{columns:[L]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"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:[...re(),c]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",D,c]}],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",c]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",D,c]}],"grid-cols":[{"grid-cols":[G]}],"col-start-end":[{col:["auto",{span:["full",D,c]},c]}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":[G]}],"row-start-end":[{row:["auto",{span:[D,c]},c]}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",c]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",c]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[u]}],mx:[{mx:[u]}],my:[{my:[u]}],ms:[{ms:[u]}],me:[{me:[u]}],mt:[{mt:[u]}],mr:[{mr:[u]}],mb:[{mb:[u]}],ml:[{ml:[u]}],"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",c,r]}],"min-w":[{"min-w":[c,r,"min","max","fit"]}],"max-w":[{"max-w":[c,r,"none","full","min","max","fit","prose",{screen:[L]},L]}],h:[{h:[c,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[c,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[c,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[c,r,"auto","min","max","fit"]}],"font-size":[{text:["base",L,S]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Z]}],"font-family":[{font:[G]}],"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",c]}],"line-clamp":[{"line-clamp":["none",R,Z]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",C,c]}],"list-image":[{"list-image":["none",c]}],"list-style-type":[{list:["none","disc","decimal",c]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",C,S]}],"underline-offset":[{"underline-offset":["auto",C,c]}],"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:p()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c]}],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",c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...re(),tt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",et]}],"bg-image":[{bg:["none",{"gradient-to":["he","tr","r","br","b","bl","l","tl"]},ot]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[N]}],"gradient-via":[{via:[N]}],"gradient-to":[{to:[N]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-he":[{"rounded-he":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-he":[{"border-he":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[x]}],"divide-style":[{divide:O()}],"border-color":[{border:[l]}],"border-color-x":[{"border-x":[l]}],"border-color-y":[{"border-y":[l]}],"border-color-s":[{"border-s":[l]}],"border-color-e":[{"border-e":[l]}],"border-color-he":[{"border-he":[l]}],"border-color-r":[{"border-r":[l]}],"border-color-b":[{"border-b":[l]}],"border-color-l":[{"border-l":[l]}],"divide-color":[{divide:[l]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[C,c]}],"outline-w":[{outline:[C,S]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[C,S]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",L,nt]}],"shadow-color":[{shadow:[G]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":oe()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[a]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",L,c]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[v]}],saturate:[{saturate:[j]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",c]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",c]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",c]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[D,c]}],"translate-x":[{"translate-x":[ee]}],"translate-y":[{"translate-y":[ee]}],"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",c]}],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",c]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":p()}],"scroll-mx":[{"scroll-mx":p()}],"scroll-my":[{"scroll-my":p()}],"scroll-ms":[{"scroll-ms":p()}],"scroll-me":[{"scroll-me":p()}],"scroll-mt":[{"scroll-mt":p()}],"scroll-mr":[{"scroll-mr":p()}],"scroll-mb":[{"scroll-mb":p()}],"scroll-ml":[{"scroll-ml":p()}],"scroll-p":[{"scroll-p":p()}],"scroll-px":[{"scroll-px":p()}],"scroll-py":[{"scroll-py":p()}],"scroll-ps":[{"scroll-ps":p()}],"scroll-pe":[{"scroll-pe":p()}],"scroll-pt":[{"scroll-pt":p()}],"scroll-pr":[{"scroll-pr":p()}],"scroll-pb":[{"scroll-pb":p()}],"scroll-pl":[{"scroll-pl":p()}],"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",c]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[C,S,Z]}],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-he","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-he":["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-he","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-he","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-he","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-he","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 ue=$e(lt);function E(...e){return ue((0,ge.clsx)(e))}var be=require("@radix-ui/react-slot"),fe=require("class-variance-authority"),xe=F(require("react")),he=require("react/jsx-runtime"),ct=(0,fe.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),U=xe.forwardRef(({asChild:e=!1,className:r,size:o,variant:a,...l},n)=>(0,he.jsx)(e?be.Slot:"button",{className:E(ct({className:r,size:o,variant:a})),ref:n,...l}));U.displayName="Button";var ye=F(require("react")),X=F(require("@radix-ui/react-label"));var dt=(0,fe.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),P=ye.forwardRef(({className:e,...r},o)=>(0,he.jsx)(X.Root,{ref:o,className:E(dt(),e),...r}));P.displayName=X.Root.displayName;var g=require("lucide-react"),ke={"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 Ne({submissions:e,isLoading:r=!1}){let[o,a]=(0,_.useState)(null);(0,_.useEffect)(()=>{let s=i=>{i.key==="Escape"&&a(null)};if(o)return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[o]);let l=s=>new Date(s).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}),n=e.find(s=>s.id.toString()===o);return r?(0,he.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,he.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,he.jsxs)("div",{className:"animate-pulse",children:[(0,he.jsx)("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-6"}),(0,he.jsx)("div",{className:"space-y-4",children:[...Array(5)].map((s,i)=>(0,he.jsx)("div",{className:"h-16 bg-gray-200 rounded"},i))})]})})}):e.length===0?(0,he.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,he.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,he.jsxs)("div",{className:"text-center py-12",children:[(0,he.jsx)(g.FileText,{className:"mx-auto h-12 w-12 text-gray-400"}),(0,he.jsx)("h3",{className:"mt-2 text-sm font-semibold text-gray-900 dark:text-zinc-100",children:"No submissions found"}),(0,he.jsx)("p",{className:"mt-1 text-sm text-gray-500 dark:text-zinc-400",children:"You haven'he submitted any delivery lead reports yet."})]})})}):(0,he.jsxs)(he.Fragment,{children:[(0,he.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,he.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,he.jsxs)("div",{className:"mb-6",children:[(0,he.jsx)("h2",{className:"text-2xl font-bold text-gray-900 dark:text-zinc-100",children:"My Delivery Lead Submissions"}),(0,he.jsx)("p",{className:"text-sm text-gray-500 dark:text-zinc-400 mt-1",children:"View all your submitted delivery lead reports"})]}),(0,he.jsx)("div",{className:"overflow-y-auto max-h-96",children:(0,he.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,he.jsx)("thead",{className:"bg-gray-50 dark:bg-zinc-800 sticky top-0 z-10",children:(0,he.jsxs)("tr",{children:[(0,he.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,he.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,he.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,he.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,he.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,he.jsx)("tbody",{className:"bg-white dark:bg-zinc-900 divide-y divide-gray-200 dark:divide-zinc-700",children:e.map(s=>(0,he.jsxs)("tr",{className:"hover:bg-gray-50 dark:hover:bg-zinc-800/50",children:[(0,he.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,he.jsxs)("div",{children:[(0,he.jsx)("div",{className:"text-sm font-medium text-gray-900 dark:text-zinc-100",children:s.projectName}),(0,he.jsxs)("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,he.jsx)(g.Building,{className:"h-3 w-3"}),s.clientName]})]})}),(0,he.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,he.jsxs)("div",{className:"text-sm text-gray-900 dark:text-zinc-100 flex items-center gap-1",children:[(0,he.jsx)(g.User,{className:"h-3 w-3"}),s.deliveryLead]})}),(0,he.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,he.jsxs)("div",{className:"flex flex-wrap gap-1",children:[s.milestones?.slice(0,3).map((i,m)=>(0,he.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${ke[i.rag]}`,children:i.rag},m)),s.milestones&&s.milestones.length>3&&(0,he.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,he.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,he.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,he.jsxs)("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,he.jsx)(g.Calendar,{className:"h-3 w-3"}),l(s.createdAt)]})}),(0,he.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:(0,he.jsx)(U,{variant:"ghost",size:"sm",onClick:()=>a(s.id.toString()),className:"text-accent hover:text-accent/80",children:"View Details"})})]},s.id))})]})})]})}),n&&(0,he.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:(0,he.jsxs)("div",{className:"bg-white dark:bg-zinc-900 rounded-xl shadow-xl max-w-4xl w-full max-h-[90vh] overflow-y-auto",children:[(0,he.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-gray-200 dark:border-zinc-700",children:[(0,he.jsxs)("div",{children:[(0,he.jsx)("h2",{className:"text-xl font-semibold text-gray-900 dark:text-zinc-100",children:n.projectName}),(0,he.jsxs)("p",{className:"text-sm text-gray-500 dark:text-zinc-400",children:[n.clientName," \u2022"," ",l(n.createdAt)]})]}),(0,he.jsx)("button",{onClick:()=>a(null),className:"text-gray-400 hover:text-gray-600 dark:hover:text-zinc-300",children:(0,he.jsx)(g.X,{className:"h-6 w-6"})})]}),(0,he.jsxs)("div",{className:"p-6 space-y-6",children:[(0,he.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,he.jsxs)("div",{children:[(0,he.jsxs)(P,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,he.jsx)(g.FileText,{className:"h-4 w-4"}),"Project Summary"]}),(0,he.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:n.projectSummary})]}),(0,he.jsxs)("div",{children:[(0,he.jsxs)(P,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,he.jsx)(g.Users,{className:"h-4 w-4"}),"Project Update"]}),(0,he.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:n.projectUpdate})]}),n.projectConcerns&&(0,he.jsxs)("div",{children:[(0,he.jsxs)(P,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,he.jsx)(g.AlertTriangle,{className:"h-4 w-4"}),"Project Concerns"]}),(0,he.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:n.projectConcerns})]}),n.commercialOpportunities&&(0,he.jsxs)("div",{children:[(0,he.jsxs)(P,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,he.jsx)(g.Briefcase,{className:"h-4 w-4"}),"Commercial Opportunities"]}),(0,he.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:n.commercialOpportunities})]}),n.commercialRisks&&(0,he.jsxs)("div",{className:"lg:col-span-2",children:[(0,he.jsxs)(P,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,he.jsx)(g.ShieldAlert,{className:"h-4 w-4"}),"Commercial Risks"]}),(0,he.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:n.commercialRisks})]})]}),(0,he.jsxs)("div",{children:[(0,he.jsxs)(P,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,he.jsx)(g.ListChecks,{className:"h-4 w-4"}),"Milestones"]}),n.milestones&&n.milestones.length>0?(0,he.jsx)("div",{className:"bg-gray-50 dark:bg-zinc-800 rounded-lg border overflow-hidden",children:(0,he.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,he.jsx)("thead",{className:"bg-gray-100 dark:bg-zinc-700",children:(0,he.jsxs)("tr",{children:[(0,he.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Name"}),(0,he.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Commentary"}),(0,he.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Due Date"}),(0,he.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Status"})]})}),(0,he.jsx)("tbody",{className:"divide-y divide-gray-200 dark:divide-zinc-700",children:n.milestones.map((s,i)=>(0,he.jsxs)("tr",{children:[(0,he.jsx)("td",{className:"px-4 py-2 text-sm text-gray-900 dark:text-zinc-100",children:s.name}),(0,he.jsx)("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:s.commentary||"-"}),(0,he.jsx)("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:s.dueDate?l(s.dueDate):"-"}),(0,he.jsx)("td",{className:"px-4 py-2",children:(0,he.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${ke[s.rag]}`,children:s.rag})})]},i))})]})}):(0,he.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,he.jsx)("div",{className:"flex justify-end p-6 border-he border-gray-200 dark:border-zinc-700",children:(0,he.jsx)(U,{onClick:()=>a(null),variant:"outline",children:"Close"})})]})})]})}var pt={title:"Components/DeliveryLead/DeliveryLeadSubmissionList",component:Ne,parameters:{layout:"fullscreen"},tags:["autodocs"]},mt=pt,ze=[{id:"1",clientName:"TechCorp Solutions",projectName:"Digital Transformation Initiative",deliveryLead:"Sarah Johnson",projectSummary:"A comprehensive digital transformation project aimed at modernizing TechCorp's legacy systems and improving customer experience through innovative technology solutions.",milestones:[{name:"Requirements Gathering",commentary:"Completed stakeholder interviews and documented business requirements",dueDate:"2024-01-15",rag:"Complete"},{name:"System Design",commentary:"Architecture design in progress, facing some challenges with legacy integration",dueDate:"2024-02-28",rag:"At Risk"},{name:"Development Phase 1",commentary:"Core modules development started",dueDate:"2024-04-15",rag:"On-Track"},{name:"User Testing",commentary:"Planned for Q2 2024",dueDate:"2024-06-30",rag:"On-Track"}],projectUpdate:"The project is progressing well with requirements gathering completed ahead of schedule. The system design phase has encountered some challenges with legacy system integration, but the team is working on solutions. Development resources have been allocated and Phase 1 development is on track to begin next month.",projectConcerns:"Integration challenges with legacy systems may cause delays in the design phase. Additional technical expertise may be required for the integration work.",commercialOpportunities:"TechCorp has expressed interest in additional consulting services for their data migration strategy. There are also opportunities for ongoing support and maintenance contracts.",commercialRisks:"The integration challenges could impact project timeline and budget. Need to monitor scope creep and ensure proper change management processes are followed.",submittedAt:"2024-01-10T10:30:00Z"},{id:"2",clientName:"Global Retail Inc",projectName:"E-commerce Platform Enhancement",deliveryLead:"Michael Chen",projectSummary:"Enhancement of Global Retail's existing e-commerce platform to improve performance, add new features, and enhance the mobile shopping experience.",milestones:[{name:"Performance Optimization",commentary:"Database optimization completed, 40% improvement in load times",dueDate:"2024-01-31",rag:"Complete"},{name:"Mobile App Development",commentary:"Development team expanded, progress is behind schedule",dueDate:"2024-03-15",rag:"Off-Track"},{name:"Payment Integration",commentary:"New payment gateway integration in progress",dueDate:"2024-04-30",rag:"On-Track"}],projectUpdate:"Performance optimization phase has been completed successfully with significant improvements in page load times. However, the mobile app development is behind schedule due to resource constraints. The payment integration is progressing well and should be completed on time.",projectConcerns:"Mobile app development is behind schedule due to limited mobile development resources. May need to extend timeline or bring in additional developers.",commercialOpportunities:"Client is interested in ongoing platform maintenance and future enhancement projects. Potential for long-term partnership.",commercialRisks:"Schedule delays in mobile development could impact client satisfaction and future project opportunities.",submittedAt:"2024-01-08T14:15:00Z"},{id:"3",clientName:"Healthcare Systems Ltd",projectName:"Patient Management System",deliveryLead:"Emily Rodriguez",projectSummary:"Development of a comprehensive patient management system for healthcare providers, including appointment scheduling, medical records, and billing integration.",milestones:[{name:"Security Assessment",commentary:"HIPAA compliance review completed successfully",dueDate:"2024-01-20",rag:"Complete"},{name:"Core Development",commentary:"Patient portal and appointment scheduling modules completed",dueDate:"2024-02-28",rag:"Complete"},{name:"Integration Testing",commentary:"Testing with existing hospital systems in progress",dueDate:"2024-03-31",rag:"On-Track"},{name:"Go-Live",commentary:"Planned for April 2024",dueDate:"2024-04-15",rag:"On-Track"}],projectUpdate:"The project is progressing excellently with all major milestones completed on time. The security assessment passed all HIPAA compliance requirements. Core development is complete and integration testing is proceeding smoothly. The system is on track for successful go-live in April.",projectConcerns:"No major concerns at this time. The project is well-managed and on schedule.",commercialOpportunities:"Healthcare Systems is interested in expanding the system to additional facilities. There are also opportunities for training and support services.",commercialRisks:"Minimal risks at this stage. The project is well-positioned for success.",submittedAt:"2024-01-05T09:45:00Z"}],ut={args:{submissions:ze,isLoading:!1}},gt={args:{submissions:[],isLoading:!0}},bt={args:{submissions:[],isLoading:!1}},ft={args:{submissions:[ze[0]],isLoading:!1}};0&&(module.exports={Default,Empty,Loading,SingleSubmission});
|
|
4
|
+
"use strict";var Ce=Object.create;var B=Object.defineProperty;var Se=Object.getOwnPropertyDescriptor;var Le=Object.getOwnPropertyNames;var je=Object.getPrototypeOf,Pe=Object.prototype.hasOwnProperty;var Re=(e,r)=>{for(var o in r)B(e,o,{get:r[o],enumerable:!0})},ae=(e,r,o,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Le(r))!Pe.call(e,i)&&i!==o&&B(e,i,{get:()=>r[i],enumerable:!(s=Se(r,i))||s.enumerable});return e};var F=(e,r,o)=>(o=e!=null?Ce(je(e)):{},ae(r||!e||!e.__esModule?B(o,"default",{value:e,enumerable:!0}):o,e)),Ae=e=>ae(B({},"__esModule",{value:!0}),e);var yt={};Re(yt,{Default:()=>ut,Empty:()=>bt,Loading:()=>gt,SingleSubmission:()=>ft,default:()=>mt});module.exports=Ae(yt);var _=require("react");var ge=require("clsx");var K="-",Te=e=>{let r=De(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:c=>{let l=c.split(K);return l[0]===""&&l.length!==1&&l.shift(),le(l,r)||Me(c)},getConflictingClassGroupIds:(c,l)=>{let a=o[c]||[];return l&&s[c]?[...a,...s[c]]:a}}},le=(e,r)=>{if(e.length===0)return r.classGroupId;let o=e[0],s=r.nextPart.get(o),i=s?le(e.slice(1),s):void 0;if(i)return i;if(r.validators.length===0)return;let n=e.join(K);return r.validators.find(({validator:c})=>c(n))?.classGroupId},se=/^\[(.+)\]$/,Me=e=>{if(se.test(e)){let r=se.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},De=e=>{let{theme:r,prefix:o}=e,s={nextPart:new Map,validators:[]};return Ee(Object.entries(e.classGroups),o).forEach(([n,c])=>{J(c,s,n,r)}),s},J=(e,r,o,s)=>{e.forEach(i=>{if(typeof i=="string"){let n=i===""?r:ie(r,i);n.classGroupId=o;return}if(typeof i=="function"){if(Ge(i)){J(i(s),r,o,s);return}r.validators.push({validator:i,classGroupId:o});return}Object.entries(i).forEach(([n,c])=>{J(c,ie(r,n),o,s)})})},ie=(e,r)=>{let o=e;return r.split(K).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},Ge=e=>e.isThemeGetter,Ee=(e,r)=>r?e.map(([o,s])=>{let i=s.map(n=>typeof n=="string"?r+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([c,l])=>[r+c,l])):n);return[o,i]}):e,Ie=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,s=new Map,i=(n,c)=>{o.set(n,c),r++,r>e&&(r=0,s=o,o=new Map)};return{get(n){let c=o.get(n);if(c!==void 0)return c;if((c=s.get(n))!==void 0)return i(n,c),c},set(n,c){o.has(n)?o.set(n,c):i(n,c)}}},ce="!",Ve=e=>{let{separator:r,experimentalParseClassName:o}=e,s=r.length===1,i=r[0],n=r.length,c=l=>{let a=[],p=0,f=0,v;for(let g=0;g<l.length;g++){let x=l[g];if(p===0){if(x===i&&(s||l.slice(g,g+n)===r)){a.push(l.slice(f,g)),f=g+n;continue}if(x==="/"){v=g;continue}}x==="["?p++:x==="]"&&p--}let w=a.length===0?l:l.substring(f),N=w.startsWith(ce),k=N?w.substring(1):w,y=v&&v>f?v-f:void 0;return{modifiers:a,hasImportantModifier:N,baseClassName:k,maybePostfixModifierPosition:y}};return o?l=>o({className:l,parseClassName:c}):c},Oe=e=>{if(e.length<=1)return e;let r=[],o=[];return e.forEach(s=>{s[0]==="["?(r.push(...o.sort(),s),o=[]):o.push(s)}),r.push(...o.sort()),r},Be=e=>({cache:Ie(e.cacheSize),parseClassName:Ve(e),...Te(e)}),Ue=/\s+/,_e=(e,r)=>{let{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:i}=r,n=[],c=e.trim().split(Ue),l="";for(let a=c.length-1;a>=0;a-=1){let p=c[a],{modifiers:f,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:N}=o(p),k=!!N,y=s(k?w.substring(0,N):w);if(!y){if(!k){l=p+(l.length>0?" "+l:l);continue}if(y=s(w),!y){l=p+(l.length>0?" "+l:l);continue}k=!1}let g=Oe(f).join(":"),x=v?g+ce:g,h=x+y;if(n.includes(h))continue;n.push(h);let T=i(y,k);for(let P=0;P<T.length;++P){let I=T[P];n.push(x+I)}l=p+(l.length>0?" "+l:l)}return l};function We(){let e=0,r,o,s="";for(;e<arguments.length;)(r=arguments[e++])&&(o=de(r))&&(s&&(s+=" "),s+=o);return s}var de=e=>{if(typeof e=="string")return e;let r,o="";for(let s=0;s<e.length;s++)e[s]&&(r=de(e[s]))&&(o&&(o+=" "),o+=r);return o};function $e(e,...r){let o,s,i,n=c;function c(a){let p=r.reduce((f,v)=>v(f),e());return o=Be(p),s=o.cache.get,i=o.cache.set,n=l,l(a)}function l(a){let p=s(a);if(p)return p;let f=_e(a,o);return i(a,f),f}return function(){return n(We.apply(null,arguments))}}var m=e=>{let r=o=>o[e]||[];return r.isThemeGetter=!0,r},pe=/^\[(?:([a-z-]+):)?(.+)\]$/i,He=/^\d+\/\d+$/,qe=new Set(["px","full","screen"]),Fe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ze=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Je=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ke=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,C=e=>R(e)||qe.has(e)||He.test(e),S=e=>A(e,"length",at),R=e=>!!e&&!Number.isNaN(Number(e)),Z=e=>A(e,"number",R),D=e=>!!e&&Number.isInteger(Number(e)),Qe=e=>e.endsWith("%")&&R(e.slice(0,-1)),d=e=>pe.test(e),L=e=>Fe.test(e),Ye=new Set(["length","size","percentage"]),et=e=>A(e,Ye,me),tt=e=>A(e,"position",me),rt=new Set(["image","url"]),ot=e=>A(e,rt,it),nt=e=>A(e,"",st),G=()=>!0,A=(e,r,o)=>{let s=pe.exec(e);return s?s[1]?typeof r=="string"?s[1]===r:r.has(s[1]):o(s[2]):!1},at=e=>Ze.test(e)&&!Je.test(e),me=()=>!1,st=e=>Ke.test(e),it=e=>Xe.test(e);var lt=()=>{let e=m("colors"),r=m("spacing"),o=m("blur"),s=m("brightness"),i=m("borderColor"),n=m("borderRadius"),c=m("borderSpacing"),l=m("borderWidth"),a=m("contrast"),p=m("grayscale"),f=m("hueRotate"),v=m("invert"),w=m("gap"),N=m("gradientColorStops"),k=m("gradientColorStopPositions"),y=m("inset"),g=m("margin"),x=m("opacity"),h=m("padding"),T=m("saturate"),P=m("scale"),I=m("sepia"),Q=m("skew"),Y=m("space"),ee=m("translate"),W=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",d,r],u=()=>[d,r],te=()=>["",C,S],V=()=>["auto",R,d],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",d],ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[R,d];return{cacheSize:500,separator:":",theme:{colors:[G],spacing:[C,S],blur:["none","",L,d],brightness:z(),borderColor:[e],borderRadius:["none","","full",L,d],borderSpacing:u(),borderWidth:te(),contrast:z(),grayscale:M(),hueRotate:z(),invert:M(),gap:u(),gradientColorStops:[e],gradientColorStopPositions:[Qe,S],inset:H(),margin:H(),opacity:z(),padding:u(),saturate:z(),scale:z(),sepia:M(),skew:z(),space:u(),translate:u()},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[L]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"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:[...re(),d]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",D,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:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",D,d]}],"grid-cols":[{"grid-cols":[G]}],"col-start-end":[{col:["auto",{span:["full",D,d]},d]}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":[G]}],"row-start-end":[{row:["auto",{span:[D,d]},d]}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"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:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[h]}],px:[{px:[h]}],py:[{py:[h]}],ps:[{ps:[h]}],pe:[{pe:[h]}],pt:[{pt:[h]}],pr:[{pr:[h]}],pb:[{pb:[h]}],pl:[{pl:[h]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[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,r]}],"min-w":[{"min-w":[d,r,"min","max","fit"]}],"max-w":[{"max-w":[d,r,"none","full","min","max","fit","prose",{screen:[L]},L]}],h:[{h:[d,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[d,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[d,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[d,r,"auto","min","max","fit"]}],"font-size":[{text:["base",L,S]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Z]}],"font-family":[{font:[G]}],"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",R,Z]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",C,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":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",C,S]}],"underline-offset":[{"underline-offset":["auto",C,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:u()}],"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":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...re(),tt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",et]}],"bg-image":[{bg:["none",{"gradient-to":["xe","tr","r","br","b","bl","l","tl"]},ot]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[N]}],"gradient-via":[{via:[N]}],"gradient-to":[{to:[N]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-xe":[{"rounded-xe":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"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-xe":[{"border-xe":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[x]}],"border-style":[{border:[...O(),"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":[x]}],"divide-style":[{divide:O()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-xe":[{"border-xe":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[C,d]}],"outline-w":[{outline:[C,S]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[C,S]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",L,nt]}],"shadow-color":[{shadow:[G]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":[...oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":oe()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",L,d]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[v]}],saturate:[{saturate:[T]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"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:z()}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[P]}],"scale-x":[{"scale-x":[P]}],"scale-y":[{"scale-y":[P]}],rotate:[{rotate:[D,d]}],"translate-x":[{"translate-x":[ee]}],"translate-y":[{"translate-y":[ee]}],"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":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[C,S,Z]}],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-xe","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-xe":["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-xe","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-xe","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-xe","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-xe","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 ue=$e(lt);function E(...e){return ue((0,ge.clsx)(e))}var be=require("@radix-ui/react-slot"),fe=require("class-variance-authority"),ye=F(require("react")),xe=require("react/jsx-runtime"),ct=(0,fe.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),U=ye.forwardRef(({asChild:e=!1,className:r,size:o,variant:s,...i},n)=>(0,xe.jsx)(e?be.Slot:"button",{className:E(ct({className:r,size:o,variant:s})),ref:n,...i}));U.displayName="Button";var he=F(require("react")),X=F(require("@radix-ui/react-label"));var dt=(0,fe.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),j=he.forwardRef(({className:e,...r},o)=>(0,xe.jsx)(X.Root,{ref:o,className:E(dt(),e),...r}));j.displayName=X.Root.displayName;var b=require("lucide-react"),ke={"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 Ne({submissions:e,isLoading:r=!1}){let[o,s]=(0,_.useState)(null);(0,_.useEffect)(()=>{let a=p=>{p.key==="Escape"&&s(null)};if(o)return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[o]);let i=a=>new Date(a).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}),n=e.find(a=>a.id.toString()===o);function c(a){return typeof a=="object"&&a!==null&&"projectName"in a?a.projectName:`Project #${a}`}function l(a){return typeof a=="object"&&a!==null&&"name"in a?a.name:`Customer #${a}`}return r?(0,xe.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,xe.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,xe.jsxs)("div",{className:"animate-pulse",children:[(0,xe.jsx)("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-6"}),(0,xe.jsx)("div",{className:"space-y-4",children:[...Array(5)].map((a,p)=>(0,xe.jsx)("div",{className:"h-16 bg-gray-200 rounded"},p))})]})})}):e.length===0?(0,xe.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,xe.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,xe.jsxs)("div",{className:"text-center py-12",children:[(0,xe.jsx)(b.FileText,{className:"mx-auto h-12 w-12 text-gray-400"}),(0,xe.jsx)("h3",{className:"mt-2 text-sm font-semibold text-gray-900 dark:text-zinc-100",children:"No submissions found"}),(0,xe.jsx)("p",{className:"mt-1 text-sm text-gray-500 dark:text-zinc-400",children:"You haven'xe submitted any delivery lead reports yet."})]})})}):(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,xe.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,xe.jsxs)("div",{className:"mb-6",children:[(0,xe.jsx)("h2",{className:"text-2xl font-bold text-gray-900 dark:text-zinc-100",children:"My Delivery Lead Submissions"}),(0,xe.jsx)("p",{className:"text-sm text-gray-500 dark:text-zinc-400 mt-1",children:"View all your submitted delivery lead reports"})]}),(0,xe.jsx)("div",{className:"overflow-y-auto max-h-96",children:(0,xe.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,xe.jsx)("thead",{className:"bg-gray-50 dark:bg-zinc-800 sticky top-0 z-10",children:(0,xe.jsxs)("tr",{children:[(0,xe.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,xe.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,xe.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,xe.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,xe.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,xe.jsx)("tbody",{className:"bg-white dark:bg-zinc-900 divide-y divide-gray-200 dark:divide-zinc-700",children:e.map(a=>(0,xe.jsxs)("tr",{className:"hover:bg-gray-50 dark:hover:bg-zinc-800/50",children:[(0,xe.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,xe.jsxs)("div",{children:[(0,xe.jsx)("div",{className:"text-sm font-medium text-gray-900 dark:text-zinc-100",children:c(a.project)}),(0,xe.jsxs)("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,xe.jsx)(b.Building,{className:"h-3 w-3"}),l(a.customer)]})]})}),(0,xe.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,xe.jsxs)("div",{className:"text-sm text-gray-900 dark:text-zinc-100 flex items-center gap-1",children:[(0,xe.jsx)(b.User,{className:"h-3 w-3"}),typeof a.project=="object"&&a.project!==null&&"deliveryLead"in a.project&&typeof a.project.deliveryLead=="object"&&a.project.deliveryLead!==null&&"name"in a.project.deliveryLead?a.project.deliveryLead.name:"\u2014"]})}),(0,xe.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,xe.jsxs)("div",{className:"flex flex-wrap gap-1",children:[a.milestones?.slice(0,3).map((p,f)=>(0,xe.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${ke[p.rag]}`,children:p.rag},f)),a.milestones&&a.milestones.length>3&&(0,xe.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:["+",a.milestones.length-3," more"]}),!a.milestones&&(0,xe.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,xe.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,xe.jsxs)("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,xe.jsx)(b.Calendar,{className:"h-3 w-3"}),i(a.createdAt)]})}),(0,xe.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:(0,xe.jsx)(U,{variant:"ghost",size:"sm",onClick:()=>s(a.id.toString()),className:"text-accent hover:text-accent/80",children:"View Details"})})]},a.id))})]})})]})}),n&&(0,xe.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:(0,xe.jsxs)("div",{className:"bg-white dark:bg-zinc-900 rounded-xl shadow-xl max-w-4xl w-full max-h-[90vh] overflow-y-auto",children:[(0,xe.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-gray-200 dark:border-zinc-700",children:[(0,xe.jsxs)("div",{children:[(0,xe.jsx)("h2",{className:"text-xl font-semibold text-gray-900 dark:text-zinc-100",children:c(n.project)}),(0,xe.jsxs)("p",{className:"text-sm text-gray-500 dark:text-zinc-400",children:[l(n.customer)," \u2022"," ",i(n.createdAt)]})]}),(0,xe.jsx)("button",{onClick:()=>s(null),className:"text-gray-400 hover:text-gray-600 dark:hover:text-zinc-300",children:(0,xe.jsx)(b.X,{className:"h-6 w-6"})})]}),(0,xe.jsxs)("div",{className:"p-6 space-y-6",children:[(0,xe.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,xe.jsxs)("div",{children:[(0,xe.jsxs)(j,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,xe.jsx)(b.FileText,{className:"h-4 w-4"}),"Project Summary"]}),(0,xe.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:n.projectSummary})]}),(0,xe.jsxs)("div",{children:[(0,xe.jsxs)(j,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,xe.jsx)(b.Users,{className:"h-4 w-4"}),"Project Update"]}),(0,xe.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:n.projectUpdate})]}),n.projectConcerns&&(0,xe.jsxs)("div",{children:[(0,xe.jsxs)(j,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,xe.jsx)(b.AlertTriangle,{className:"h-4 w-4"}),"Project Concerns"]}),(0,xe.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:n.projectConcerns})]}),n.commercialOpportunities&&(0,xe.jsxs)("div",{children:[(0,xe.jsxs)(j,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,xe.jsx)(b.Briefcase,{className:"h-4 w-4"}),"Commercial Opportunities"]}),(0,xe.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:n.commercialOpportunities})]}),n.commercialRisks&&(0,xe.jsxs)("div",{className:"lg:col-span-2",children:[(0,xe.jsxs)(j,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,xe.jsx)(b.ShieldAlert,{className:"h-4 w-4"}),"Commercial Risks"]}),(0,xe.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:n.commercialRisks})]})]}),(0,xe.jsxs)("div",{children:[(0,xe.jsxs)(j,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,xe.jsx)(b.ListChecks,{className:"h-4 w-4"}),"Milestones"]}),n.milestones&&n.milestones.length>0?(0,xe.jsx)("div",{className:"bg-gray-50 dark:bg-zinc-800 rounded-lg border overflow-hidden",children:(0,xe.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,xe.jsx)("thead",{className:"bg-gray-100 dark:bg-zinc-700",children:(0,xe.jsxs)("tr",{children:[(0,xe.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Name"}),(0,xe.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Commentary"}),(0,xe.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Due Date"}),(0,xe.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Status"})]})}),(0,xe.jsx)("tbody",{className:"divide-y divide-gray-200 dark:divide-zinc-700",children:n.milestones.map((a,p)=>(0,xe.jsxs)("tr",{children:[(0,xe.jsx)("td",{className:"px-4 py-2 text-sm text-gray-900 dark:text-zinc-100",children:a.name}),(0,xe.jsx)("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:a.commentary||"-"}),(0,xe.jsx)("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:a.dueDate?i(a.dueDate):"-"}),(0,xe.jsx)("td",{className:"px-4 py-2",children:(0,xe.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${ke[a.rag]}`,children:a.rag})})]},p))})]})}):(0,xe.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,xe.jsx)("div",{className:"flex justify-end p-6 border-xe border-gray-200 dark:border-zinc-700",children:(0,xe.jsx)(U,{onClick:()=>s(null),variant:"outline",children:"Close"})})]})})]})}var pt={title:"DeliveryReport/DeliveryLeadSubmissionList",component:Ne,parameters:{layout:"fullscreen"},tags:["autodocs"]},mt=pt,ze=[{id:"1",clientName:"TechCorp Solutions",projectName:"Digital Transformation Initiative",deliveryLead:"Sarah Johnson",projectSummary:"A comprehensive digital transformation project aimed at modernizing TechCorp's legacy systems and improving customer experience through innovative technology solutions.",milestones:[{name:"Requirements Gathering",commentary:"Completed stakeholder interviews and documented business requirements",dueDate:"2024-01-15",rag:"Complete"},{name:"System Design",commentary:"Architecture design in progress, facing some challenges with legacy integration",dueDate:"2024-02-28",rag:"At Risk"},{name:"Development Phase 1",commentary:"Core modules development started",dueDate:"2024-04-15",rag:"On-Track"},{name:"User Testing",commentary:"Planned for Q2 2024",dueDate:"2024-06-30",rag:"On-Track"}],projectUpdate:"The project is progressing well with requirements gathering completed ahead of schedule. The system design phase has encountered some challenges with legacy system integration, but the team is working on solutions. Development resources have been allocated and Phase 1 development is on track to begin next month.",projectConcerns:"Integration challenges with legacy systems may cause delays in the design phase. Additional technical expertise may be required for the integration work.",commercialOpportunities:"TechCorp has expressed interest in additional consulting services for their data migration strategy. There are also opportunities for ongoing support and maintenance contracts.",commercialRisks:"The integration challenges could impact project timeline and budget. Need to monitor scope creep and ensure proper change management processes are followed.",submittedAt:"2024-01-10T10:30:00Z"},{id:"2",clientName:"Global Retail Inc",projectName:"E-commerce Platform Enhancement",deliveryLead:"Michael Chen",projectSummary:"Enhancement of Global Retail's existing e-commerce platform to improve performance, add new features, and enhance the mobile shopping experience.",milestones:[{name:"Performance Optimization",commentary:"Database optimization completed, 40% improvement in load times",dueDate:"2024-01-31",rag:"Complete"},{name:"Mobile App Development",commentary:"Development team expanded, progress is behind schedule",dueDate:"2024-03-15",rag:"Off-Track"},{name:"Payment Integration",commentary:"New payment gateway integration in progress",dueDate:"2024-04-30",rag:"On-Track"}],projectUpdate:"Performance optimization phase has been completed successfully with significant improvements in page load times. However, the mobile app development is behind schedule due to resource constraints. The payment integration is progressing well and should be completed on time.",projectConcerns:"Mobile app development is behind schedule due to limited mobile development resources. May need to extend timeline or bring in additional developers.",commercialOpportunities:"Client is interested in ongoing platform maintenance and future enhancement projects. Potential for long-term partnership.",commercialRisks:"Schedule delays in mobile development could impact client satisfaction and future project opportunities.",submittedAt:"2024-01-08T14:15:00Z"},{id:"3",clientName:"Healthcare Systems Ltd",projectName:"Patient Management System",deliveryLead:"Emily Rodriguez",projectSummary:"Development of a comprehensive patient management system for healthcare providers, including appointment scheduling, medical records, and billing integration.",milestones:[{name:"Security Assessment",commentary:"HIPAA compliance review completed successfully",dueDate:"2024-01-20",rag:"Complete"},{name:"Core Development",commentary:"Patient portal and appointment scheduling modules completed",dueDate:"2024-02-28",rag:"Complete"},{name:"Integration Testing",commentary:"Testing with existing hospital systems in progress",dueDate:"2024-03-31",rag:"On-Track"},{name:"Go-Live",commentary:"Planned for April 2024",dueDate:"2024-04-15",rag:"On-Track"}],projectUpdate:"The project is progressing excellently with all major milestones completed on time. The security assessment passed all HIPAA compliance requirements. Core development is complete and integration testing is proceeding smoothly. The system is on track for successful go-live in April.",projectConcerns:"No major concerns at this time. The project is well-managed and on schedule.",commercialOpportunities:"Healthcare Systems is interested in expanding the system to additional facilities. There are also opportunities for training and support services.",commercialRisks:"Minimal risks at this stage. The project is well-positioned for success.",submittedAt:"2024-01-05T09:45:00Z"}],ut={args:{submissions:ze,isLoading:!1}},gt={args:{submissions:[],isLoading:!0}},bt={args:{submissions:[],isLoading:!1}},ft={args:{submissions:[ze[0]],isLoading:!1}};0&&(module.exports={Default,Empty,Loading,SingleSubmission});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"../../chunk-
|
|
1
|
+
import{a as e}from"../../chunk-STFTEKAH.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";var n={title:"DeliveryReport/DeliveryLeadSubmissionList",component:e,parameters:{layout:"fullscreen"},tags:["autodocs"]},o=n,t=[{id:"1",clientName:"TechCorp Solutions",projectName:"Digital Transformation Initiative",deliveryLead:"Sarah Johnson",projectSummary:"A comprehensive digital transformation project aimed at modernizing TechCorp's legacy systems and improving customer experience through innovative technology solutions.",milestones:[{name:"Requirements Gathering",commentary:"Completed stakeholder interviews and documented business requirements",dueDate:"2024-01-15",rag:"Complete"},{name:"System Design",commentary:"Architecture design in progress, facing some challenges with legacy integration",dueDate:"2024-02-28",rag:"At Risk"},{name:"Development Phase 1",commentary:"Core modules development started",dueDate:"2024-04-15",rag:"On-Track"},{name:"User Testing",commentary:"Planned for Q2 2024",dueDate:"2024-06-30",rag:"On-Track"}],projectUpdate:"The project is progressing well with requirements gathering completed ahead of schedule. The system design phase has encountered some challenges with legacy system integration, but the team is working on solutions. Development resources have been allocated and Phase 1 development is on track to begin next month.",projectConcerns:"Integration challenges with legacy systems may cause delays in the design phase. Additional technical expertise may be required for the integration work.",commercialOpportunities:"TechCorp has expressed interest in additional consulting services for their data migration strategy. There are also opportunities for ongoing support and maintenance contracts.",commercialRisks:"The integration challenges could impact project timeline and budget. Need to monitor scope creep and ensure proper change management processes are followed.",submittedAt:"2024-01-10T10:30:00Z"},{id:"2",clientName:"Global Retail Inc",projectName:"E-commerce Platform Enhancement",deliveryLead:"Michael Chen",projectSummary:"Enhancement of Global Retail's existing e-commerce platform to improve performance, add new features, and enhance the mobile shopping experience.",milestones:[{name:"Performance Optimization",commentary:"Database optimization completed, 40% improvement in load times",dueDate:"2024-01-31",rag:"Complete"},{name:"Mobile App Development",commentary:"Development team expanded, progress is behind schedule",dueDate:"2024-03-15",rag:"Off-Track"},{name:"Payment Integration",commentary:"New payment gateway integration in progress",dueDate:"2024-04-30",rag:"On-Track"}],projectUpdate:"Performance optimization phase has been completed successfully with significant improvements in page load times. However, the mobile app development is behind schedule due to resource constraints. The payment integration is progressing well and should be completed on time.",projectConcerns:"Mobile app development is behind schedule due to limited mobile development resources. May need to extend timeline or bring in additional developers.",commercialOpportunities:"Client is interested in ongoing platform maintenance and future enhancement projects. Potential for long-term partnership.",commercialRisks:"Schedule delays in mobile development could impact client satisfaction and future project opportunities.",submittedAt:"2024-01-08T14:15:00Z"},{id:"3",clientName:"Healthcare Systems Ltd",projectName:"Patient Management System",deliveryLead:"Emily Rodriguez",projectSummary:"Development of a comprehensive patient management system for healthcare providers, including appointment scheduling, medical records, and billing integration.",milestones:[{name:"Security Assessment",commentary:"HIPAA compliance review completed successfully",dueDate:"2024-01-20",rag:"Complete"},{name:"Core Development",commentary:"Patient portal and appointment scheduling modules completed",dueDate:"2024-02-28",rag:"Complete"},{name:"Integration Testing",commentary:"Testing with existing hospital systems in progress",dueDate:"2024-03-31",rag:"On-Track"},{name:"Go-Live",commentary:"Planned for April 2024",dueDate:"2024-04-15",rag:"On-Track"}],projectUpdate:"The project is progressing excellently with all major milestones completed on time. The security assessment passed all HIPAA compliance requirements. Core development is complete and integration testing is proceeding smoothly. The system is on track for successful go-live in April.",projectConcerns:"No major concerns at this time. The project is well-managed and on schedule.",commercialOpportunities:"Healthcare Systems is interested in expanding the system to additional facilities. There are also opportunities for training and support services.",commercialRisks:"Minimal risks at this stage. The project is well-positioned for success.",submittedAt:"2024-01-05T09:45:00Z"}],a={args:{submissions:t,isLoading:!1}},s={args:{submissions:[],isLoading:!0}},r={args:{submissions:[],isLoading:!1}},m={args:{submissions:[t[0]],isLoading:!1}};export{a as Default,r as Empty,s as Loading,m as SingleSubmission,o as default};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { DeliveryLeadSubmissionData } from './types';
|
|
2
|
-
import {
|
|
2
|
+
import { DeliveryReport } from '@/payload-types';
|
|
3
|
+
import type { CustomerProjectPair } from './DeliveryLeadSubmission';
|
|
3
4
|
export interface DeliveryLeadSubmissionWithListProps {
|
|
4
|
-
submissions:
|
|
5
|
+
submissions: DeliveryReport[];
|
|
5
6
|
onSubmit?: (formData: DeliveryLeadSubmissionData) => Promise<{
|
|
6
7
|
success: boolean;
|
|
7
8
|
message: string;
|
|
8
9
|
}>;
|
|
9
10
|
isLoading?: boolean;
|
|
11
|
+
customerProjectPairs: CustomerProjectPair[];
|
|
10
12
|
}
|
|
11
|
-
export declare function DeliveryLeadSubmissionWithList({ submissions, onSubmit, isLoading, }: DeliveryLeadSubmissionWithListProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function DeliveryLeadSubmissionWithList({ submissions, onSubmit, isLoading, customerProjectPairs, }: DeliveryLeadSubmissionWithListProps): import("react/jsx-runtime").JSX.Element;
|