cortex-react-components 1.58.23 → 1.59.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.
Files changed (154) hide show
  1. package/dist/{chunk-JVM2ZAN6.mjs → chunk-2QKC72KJ.mjs} +1 -1
  2. package/dist/{chunk-NO3JTFER.mjs → chunk-3S7DEGD3.mjs} +1 -1
  3. package/dist/{chunk-LCRFWXVK.mjs → chunk-4SHAKQSO.mjs} +1 -1
  4. package/dist/{chunk-HJXEIYVK.mjs → chunk-4XZH7H6Z.mjs} +1 -1
  5. package/dist/{chunk-C2GNS62O.mjs → chunk-54TJBDXV.mjs} +1 -1
  6. package/dist/{chunk-K7XFS6IQ.mjs → chunk-5SW4N6XT.mjs} +1 -1
  7. package/dist/{chunk-PIM2JQYT.mjs → chunk-7PNAXVQ2.mjs} +1 -1
  8. package/dist/{chunk-CSNKYRV5.mjs → chunk-7XB4Y3U2.mjs} +1 -1
  9. package/dist/{chunk-UFDQJZAB.mjs → chunk-AFHR37IB.mjs} +1 -1
  10. package/dist/{chunk-L2QAYSRV.mjs → chunk-D4DEMLBK.mjs} +1 -1
  11. package/dist/{chunk-HPMQRCDC.mjs → chunk-DKN3LCV5.mjs} +1 -1
  12. package/dist/{chunk-UHW6FJUK.mjs → chunk-E3CE275D.mjs} +1 -1
  13. package/dist/{chunk-JZE6HGP6.mjs → chunk-E3OJ5OL6.mjs} +1 -1
  14. package/dist/{chunk-OJPHYSRN.mjs → chunk-EIEBANVZ.mjs} +1 -1
  15. package/dist/{chunk-Q32SRZ5X.mjs → chunk-ELSPLJLY.mjs} +1 -1
  16. package/dist/{chunk-6SQK6BMG.mjs → chunk-EUAYEIH6.mjs} +1 -1
  17. package/dist/{chunk-BTY3MRVI.mjs → chunk-GETBIECR.mjs} +1 -1
  18. package/dist/{chunk-3TNHR4R3.mjs → chunk-HAOGHXCM.mjs} +1 -1
  19. package/dist/{chunk-VNPAYMAG.mjs → chunk-IEC7SW45.mjs} +1 -1
  20. package/dist/{chunk-C3TKY5VE.mjs → chunk-J2S55IKX.mjs} +1 -1
  21. package/dist/chunk-K2RDP7A3.mjs +1 -0
  22. package/dist/chunk-KLTE56MS.mjs +1 -0
  23. package/dist/{chunk-BRYZOZKY.mjs → chunk-KTQEW4OB.mjs} +1 -1
  24. package/dist/chunk-KUJXSGYS.mjs +1 -0
  25. package/dist/{chunk-IABQ3JMG.mjs → chunk-L7DXIYCC.mjs} +1 -1
  26. package/dist/{chunk-IFZ6ABCM.mjs → chunk-LNPXUJPX.mjs} +1 -1
  27. package/dist/{chunk-75OAUMGO.mjs → chunk-M53XY4LJ.mjs} +1 -1
  28. package/dist/{chunk-IAP7Y2DK.mjs → chunk-MBMWYNTW.mjs} +1 -1
  29. package/dist/{chunk-GM53J62R.mjs → chunk-QOXCD64Q.mjs} +1 -1
  30. package/dist/{chunk-WDVSSHIB.mjs → chunk-S4K46TIQ.mjs} +1 -1
  31. package/dist/{chunk-KLCZHZKQ.mjs → chunk-S7I4XJS6.mjs} +1 -1
  32. package/dist/{chunk-6ARDJ33C.mjs → chunk-TGZJYJ2U.mjs} +1 -1
  33. package/dist/{chunk-MFTCHZFC.mjs → chunk-ULDVX7QK.mjs} +1 -1
  34. package/dist/{chunk-VV6P75VN.mjs → chunk-XT5GKZWD.mjs} +1 -1
  35. package/dist/{chunk-26FHIJPI.mjs → chunk-YFEJX756.mjs} +1 -1
  36. package/dist/chunk-Z2EKZZJU.mjs +1 -0
  37. package/dist/components/Blocks/Banner.mjs +1 -1
  38. package/dist/components/Blocks/CallToAction.mjs +1 -1
  39. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  40. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  41. package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
  42. package/dist/components/Blocks/Content.mjs +1 -1
  43. package/dist/components/Blocks/Content.stories.mjs +1 -1
  44. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  45. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  46. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  47. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  48. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  49. package/dist/components/Blocks/index.mjs +1 -1
  50. package/dist/components/CRM/DealCard.js +1 -1
  51. package/dist/components/CRM/DealCard.mjs +1 -1
  52. package/dist/components/CRM/DealCard.stories.js +1 -1
  53. package/dist/components/CRM/DealCard.stories.mjs +1 -1
  54. package/dist/components/CRM/DealDetails.js +1 -1
  55. package/dist/components/CRM/DealDetails.mjs +1 -1
  56. package/dist/components/CRM/DealDetails.stories.js +1 -1
  57. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  58. package/dist/components/CRM/KanbanBoard.js +1 -1
  59. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  60. package/dist/components/CRM/KanbanBoard.stories.js +1 -1
  61. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  62. package/dist/components/CRM/KanbanColumn.js +1 -1
  63. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  64. package/dist/components/CRM/KanbanColumn.stories.js +1 -1
  65. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  66. package/dist/components/CRM/NewCustomerForm.js +1 -1
  67. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  68. package/dist/components/CRM/NewCustomerForm.stories.js +1 -1
  69. package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
  70. package/dist/components/CRM/NewDealForm.js +1 -1
  71. package/dist/components/CRM/NewDealForm.mjs +1 -1
  72. package/dist/components/CRM/NewDealForm.stories.js +1 -1
  73. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  74. package/dist/components/CRM/index.js +1 -1
  75. package/dist/components/CRM/index.mjs +1 -1
  76. package/dist/components/Cards/ContentCard.mjs +1 -1
  77. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  78. package/dist/components/Cards/FeatureCard.mjs +1 -1
  79. package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
  80. package/dist/components/Cards/index.mjs +1 -1
  81. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  82. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  83. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  84. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  85. package/dist/components/Heros/PostHero/index.mjs +1 -1
  86. package/dist/components/Heros/RenderHero.mjs +1 -1
  87. package/dist/components/Heros/index.mjs +1 -1
  88. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  89. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  90. package/dist/components/Holidays/index.mjs +1 -1
  91. package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
  92. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  93. package/dist/components/Layouts/Print.mjs +1 -1
  94. package/dist/components/Layouts/Print.stories.mjs +1 -1
  95. package/dist/components/Layouts/SlideShow.mjs +1 -1
  96. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  97. package/dist/components/Layouts/index.mjs +1 -1
  98. package/dist/components/Payload/RichText/index.mjs +1 -1
  99. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  100. package/dist/components/Payload/RichText.stories.mjs +1 -1
  101. package/dist/components/Payload/index.mjs +1 -1
  102. package/dist/components/index.js +3 -3
  103. package/dist/components/index.mjs +1 -1
  104. package/dist/components/ui/index.mjs +1 -1
  105. package/dist/globals.css +1 -1
  106. package/dist/index.js +7 -7
  107. package/dist/index.mjs +1 -1
  108. package/dist/metafile-cjs.json +1 -1
  109. package/dist/metafile-esm.json +1 -1
  110. package/dist/pages/Blog.js +1 -1
  111. package/dist/pages/Blog.mjs +1 -1
  112. package/dist/pages/Blog.stories.js +1 -1
  113. package/dist/pages/Blog.stories.mjs +1 -1
  114. package/dist/pages/IndexPage.mjs +1 -1
  115. package/dist/pages/IndexPage.stories.mjs +1 -1
  116. package/dist/pages/Intranet.mjs +1 -1
  117. package/dist/pages/Intranet.stories.mjs +1 -1
  118. package/dist/pages/LandingPage.mjs +1 -1
  119. package/dist/pages/LandingPage.stories.mjs +1 -1
  120. package/dist/pages/Page.mjs +1 -1
  121. package/dist/pages/Page.stories.mjs +1 -1
  122. package/dist/pages/Printable.stories.mjs +1 -1
  123. package/dist/pages/Publish.mjs +1 -1
  124. package/dist/pages/Publish.stories.mjs +1 -1
  125. package/dist/pages/Website.mjs +1 -1
  126. package/dist/pages/Website.stories.mjs +1 -1
  127. package/dist/sections/AboutSection.mjs +1 -1
  128. package/dist/sections/AboutSection.stories.mjs +1 -1
  129. package/dist/sections/BlogDetail.js +1 -1
  130. package/dist/sections/BlogDetail.mjs +1 -1
  131. package/dist/sections/BlogDetail.stories.js +1 -1
  132. package/dist/sections/BlogDetail.stories.mjs +1 -1
  133. package/dist/sections/BlogList.mjs +1 -1
  134. package/dist/sections/BlogList.stories.mjs +1 -1
  135. package/dist/sections/ContactSection.mjs +1 -1
  136. package/dist/sections/ContactSection.stories.mjs +1 -1
  137. package/dist/sections/ImageSection.stories.mjs +1 -1
  138. package/dist/sections/PageSections.mjs +1 -1
  139. package/dist/sections/PageSections.stories.mjs +1 -1
  140. package/dist/sections/PricingSection.mjs +1 -1
  141. package/dist/sections/PricingSection.stories.mjs +1 -1
  142. package/dist/sections/ServiceDetail.mjs +1 -1
  143. package/dist/sections/ServiceDetailSection.mjs +1 -1
  144. package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
  145. package/dist/sections/ServiceSection.mjs +1 -1
  146. package/dist/sections/ServiceSection.stories.mjs +1 -1
  147. package/dist/sections/form/index.mjs +1 -1
  148. package/dist/sections/index.js +2 -2
  149. package/dist/sections/index.mjs +1 -1
  150. package/package.json +1 -1
  151. package/dist/chunk-4TCLIMFP.mjs +0 -1
  152. package/dist/chunk-6YWAX7NS.mjs +0 -1
  153. package/dist/chunk-OWBJTXZL.mjs +0 -1
  154. package/dist/chunk-QT5WSNLK.mjs +0 -1
@@ -1 +0,0 @@
1
- import{a as N}from"./chunk-4NKKWJ2X.mjs";import{a as f,c as C,d as y,g as h,i as D}from"./chunk-4JC2TJML.mjs";import{a as R}from"./chunk-A5EYIB3V.mjs";import{a as r}from"./chunk-DWRQHV42.mjs";import{a as O}from"./chunk-Y5ZFXDW5.mjs";import{a as F,f as T,g as E,i as U}from"./chunk-JWDVKGZL.mjs";import{a as g}from"./chunk-QOIH63J3.mjs";import{b as u}from"./chunk-BDX257W2.mjs";import{b as H}from"./chunk-Q6SEVCRG.mjs";import{useState as p,useEffect as K}from"react";import{UserIcon as X,CalendarIcon as Y,SaveIcon as Z,PlusIcon as _}from"lucide-react";import{jsx as a,jsxs as l}from"react/jsx-runtime";function ue({deal:i,users:m,customer:v,categories:V,onClose:J,onSave:G,onAddComment:M}){var P,L,B,I,A;let[s,b]=p({...i,value:i.value||0,comments:i.comments||[],customer:i.customer||{}}),[x,S]=p(""),[Q,w]=p(!1),[n,o]=p(null);K(()=>{w(JSON.stringify(i)!==JSON.stringify(s))},[i,s]);let W=async()=>{try{let e=await G(s);e.success?(w(!1),o(null)):console.error("Failed to save deal:",e.errors)}catch(e){console.error("Failed to save deal:",e)}},c=(e,t)=>{b(d=>({...d,[e]:t}))},$=e=>{let t=(s.categories||[]).includes(e)?(s.categories||[]).filter(d=>d!==e):[...s.categories||[],e];c("categories",t)},j=async()=>{if(x.trim()){let e={text:x,timestamp:new Date().toISOString()};try{let t=await M(e);if(!t.success){console.error("Failed to add comment:",t.errors);return}}catch(t){console.error("Failed to add comment:",t)}b(t=>({...t,comments:[...t.comments||[],e]})),S("")}},k=e=>{switch(e){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},q=e=>m==null?void 0:m.find(t=>t.id===Number(e));return a(F,{open:!0,children:l(T,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[l(E,{className:"flex flex-row items-center justify-between",children:[a(U,{className:"text-2xl font-bold",children:v==null?void 0:v.name}),l("div",{className:"flex space-x-2",children:[a(u,{variant:"outline",onClick:J,children:"Close"}),l(u,{onClick:W,disabled:!Q,children:[a(Z,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),l(N,{className:"flex-grow pr-4",children:[l("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[a("div",{className:"grid gap-2",children:n==="value"?a(g,{type:"number",value:s.value,onChange:e=>c("value",Number(e.target.value)),onBlur:()=>o(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):l("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("value"),children:["\xA3",(P=s.value)==null?void 0:P.toLocaleString()]})}),l("div",{className:"grid gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),n==="assignee"?l(f,{value:((B=(L=s==null?void 0:s.assignee)==null?void 0:L.id)==null?void 0:B.toString())||"",onValueChange:e=>c("assignee",q(e)),children:[a(y,{children:a(C,{placeholder:"Select assignee"})}),a(h,{children:m&&m.map(e=>{var t;return a(D,{value:((t=e==null?void 0:e.id)==null?void 0:t.toString())||"",children:e.name},e.id)})})]}):l("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("assignee"),children:[a(X,{className:"w-4 h-4 text-gray-400"}),a("span",{children:s.assignee.name})]})]}),l("div",{className:"grid gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),n==="closureDate"?a(g,{type:"date",value:(A=(I=s.closureDate)==null?void 0:I.split("T")[0])!=null?A:"",onChange:e=>c("closureDate",e.target.value),onBlur:()=>o(null),autoFocus:!0}):l("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("closureDate"),children:[a(Y,{className:"w-4 h-4 text-gray-400"}),a("span",{children:s.closureDate?new Date(s.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),a("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:l("div",{className:"grid gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Description"}),n==="description"?a(R,{value:s.description||"",onChange:e=>c("description",e.target.value),onBlur:()=>o(null),className:"min-h-[100px]",autoFocus:!0}):a("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>o("description"),children:s.description})]})}),l("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[l("div",{className:"grid gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Status"}),n==="status"?l(f,{value:s.status,onValueChange:e=>{c("status",e),o(null)},children:[a(y,{children:a(C,{placeholder:"Select status"})}),a(h,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(e=>a(D,{value:e,children:e},e))})]}):a("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("status"),children:s.status})]}),l("div",{className:"grid col-span-2 gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Categories"}),n==="categories"?a("div",{className:"grid grid-cols-2 gap-2",children:V.map(e=>{var t,d;return l("div",{className:"flex items-center space-x-2",children:[a(O,{id:((t=e.id)==null?void 0:t.toString())||"",checked:(s.categories||[]).some(z=>z.id===e.id),onCheckedChange:()=>e.id!==void 0&&$(e)}),a("label",{htmlFor:((d=e.id)!=null?d:"").toString(),className:`text-sm font-medium ${k(e.type||"sector")} px-2 py-1 rounded`,children:e.name})]},e.id)})}):a("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>o("categories"),children:s.categories&&s.categories.map(e=>{let t=e;return t?a(H,{variant:"secondary",className:k(t.type||"sector"),children:t.name},t.id):null})})]})]}),l("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[l("div",{className:"grid gap-2",children:[a(r,{className:"text-sm font-medium text-gray-500",children:"Comments"}),a(N,{className:"h-[200px] overflow-y-auto",children:a("div",{className:"space-y-2",children:s.comments&&s.comments.slice().sort((e,t)=>new Date(t.timestamp||"").getTime()-new Date(e.timestamp||"").getTime()).map(e=>{var t;return l("div",{className:"bg-gray-50 p-3 rounded-lg",children:[a("p",{className:"text-sm text-gray-700",children:e.text}),l("p",{className:"text-xs text-gray-500 mt-1",children:[(t=e==null?void 0:e.author)==null?void 0:t.name," - ",new Date(e.timestamp||"").toLocaleString()]})]},e.id)})})}),l("div",{className:"flex mt-2",children:[a(g,{value:x,onChange:e=>S(e.target.value),placeholder:"Add a comment...",className:"flex-grow"}),l(u,{onClick:j,className:"ml-2",children:[a(_,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),l("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(s.updatedAt||"").toLocaleString()]})]})]})]})})}export{ue as a};
@@ -1 +0,0 @@
1
- import{a as c}from"./chunk-A5EYIB3V.mjs";import{a as m}from"./chunk-DWRQHV42.mjs";import{a as u}from"./chunk-Y5ZFXDW5.mjs";import{a as s}from"./chunk-QOIH63J3.mjs";import{b as n}from"./chunk-BDX257W2.mjs";import{useState as p}from"react";import{jsx as r,jsxs as a}from"react/jsx-runtime";function S({onSubmit:l}){var i;let[e,o]=p({name:"",intro:"",active:!0});return a("form",{onSubmit:t=>{t.preventDefault(),e.name&&(l({...e,name:e.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),o({name:"",intro:"",active:!0}))},className:"space-y-4",children:[a("div",{className:"space-y-2",children:[r(m,{htmlFor:"customerName",children:"Customer Name"}),r(s,{id:"customerName",value:e.name,onChange:t=>o({...e,name:t.target.value}),placeholder:"Enter customer name",required:!0})]}),a("div",{className:"space-y-2",children:[r(m,{htmlFor:"customerIntro",children:"Intro"}),r(c,{id:"customerIntro",value:(i=e.intro)!=null?i:"",onChange:t=>o({...e,intro:t.target.value}),placeholder:"Enter customer intro"})]}),a("div",{className:"flex items-center space-x-2",children:[r(u,{id:"activeCustomer",checked:!!e.active,onCheckedChange:t=>o({...e,active:t})}),r(m,{htmlFor:"activeCustomer",children:"Active Customer"})]}),r(n,{type:"submit",className:"w-full",children:"Add Customer"})]})}export{S as a};
@@ -1 +0,0 @@
1
- import{a as x}from"./chunk-KML6U7IE.mjs";import{a as N}from"./chunk-TXXFXCXB.mjs";import{f as h}from"./chunk-HPMQRCDC.mjs";import{b as v}from"./chunk-BDX257W2.mjs";import{a as c,b as C,c as b,e as p}from"./chunk-D76EO57Z.mjs";import{a as k}from"./chunk-UESKYRNK.mjs";import{a as P}from"./chunk-WISCWNL2.mjs";import L from"next/image";import{notFound as M}from"next/navigation";import I from"next/link";import{jsx as t,jsxs as o}from"react/jsx-runtime";function T({image:a,name:r,about:m,socialLinks:s}){return!a||!a.src||a.src.length<3||!r?null:t("div",{className:"mt-1 z-10 px-0 pt-0 lg:px-10",children:t(c,{children:o(p,{children:[a&&a.src&&t(L,{src:a.src,alt:a.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:x,className:"mx-auto mt-6 rounded-full object-cover"}),t("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:r}),t("p",{children:m}),s&&s.length>0&&t("nav",{"aria-label":"social links",children:t("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:s.map((e,n)=>t("li",{children:t(P,{href:e.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:t("span",{children:e.icon})})},n))})})]})})})}function j({page:a,categoryList:r,edit:m=!1,path:s="/admin/collections/posts/"}){var g;if(!a)return M();let{meta:e,populatedAuthors:n,authors:d,categories:y,content:U,title:w}=a,z={image:{src:e&&e.image&&e.image.url||void 0,alt:e&&e.image&&e.image.alt||void 0},authorName:((g=n==null?void 0:n[0])==null?void 0:g.name)||"",category:y,commentCount:0,title:w,description:(e==null?void 0:e.description)||""},u=d==null?void 0:d.map(i=>{var l,f;return{name:i.name||"",about:"",image:{src:i.profilePicture&&((f=(l=i.profilePicture.sizes)==null?void 0:l.square)==null?void 0:f.url)||"",alt:i.name||"blog author"},socialLinks:[]}});return t(k,{children:o("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[t("div",{children:o("div",{className:"[&_p+P]:mt-4",children:[t("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),t(h,{content:U,enableGutter:!1,className:"prose-invert"})]})}),o("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[m&&t("div",{className:"mt-4 lg:-mt-10 z-10 px-0 pt-0 lg:px-10",children:o(c,{children:[t(C,{children:t(b,{className:"text-accent",children:"Content Actions"})}),o(p,{children:[t("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),t(I,{href:`${s}${a.id}`,children:t(v,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),u&&u.map((i,l)=>t(T,{...i},l)),r&&r.links&&t("div",{className:"mt-4 px-0 pt-0 lg:px-10",children:t(N,{links:r.links,title:r.title})})]})]})})}export{j as a};