cortex-react-components 1.34.2 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-2GYQYXLF.mjs +1 -0
- package/dist/chunk-65EMMROH.mjs +4 -0
- package/dist/{chunk-FOMIQYMA.mjs → chunk-6TGQ2756.mjs} +1 -1
- package/dist/{chunk-3PC5BLK7.mjs → chunk-7DYXQ6BN.mjs} +1 -1
- package/dist/{chunk-A2QVFCP5.mjs → chunk-7WPMELBG.mjs} +1 -1
- package/dist/{chunk-6ZXYKK6J.mjs → chunk-C7U6C7PB.mjs} +1 -1
- package/dist/{chunk-XKUS4OC7.mjs → chunk-CWNEDSLD.mjs} +1 -1
- package/dist/{chunk-IPHHUHS3.mjs → chunk-D43ENVPX.mjs} +1 -1
- package/dist/{chunk-IMAQJ7N3.mjs → chunk-EMZQNDA7.mjs} +1 -1
- package/dist/chunk-HNZ74SX3.mjs +4 -0
- package/dist/{chunk-MZ45XGZG.mjs → chunk-HXJ67UB3.mjs} +1 -1
- package/dist/{chunk-LBKMUSVR.mjs → chunk-IE2A7UT3.mjs} +1 -1
- package/dist/{chunk-ULKXH4YN.mjs → chunk-MBCAGZ76.mjs} +1 -1
- package/dist/{chunk-VDSYKQJA.mjs → chunk-MGTUBWFI.mjs} +1 -1
- package/dist/chunk-PFG3VUW7.mjs +1 -0
- package/dist/{chunk-OVAOTY36.mjs → chunk-TO2JWPLJ.mjs} +1 -1
- package/dist/{chunk-VP7B5S7N.mjs → chunk-UQ3BPZ7T.mjs} +1 -1
- package/dist/chunk-WJP5QP2O.mjs +4 -0
- package/dist/{chunk-OBJPMP7L.mjs → chunk-WYGN4HPP.mjs} +1 -1
- package/dist/{chunk-LQZTCLMG.mjs → chunk-Y2KKUQDU.mjs} +2 -2
- package/dist/chunk-ZDYIZAK5.mjs +1 -0
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/EventCard.js +2 -2
- package/dist/components/Cards/EventCard.mjs +1 -1
- package/dist/components/Cards/EventCard.stories.js +2 -2
- package/dist/components/Cards/EventCard.stories.mjs +1 -1
- package/dist/components/Cards/index.js +2 -2
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMobile.stories.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.js +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.js +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.d.ts +8 -0
- package/dist/components/Heros/RenderHero.js +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.js +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.js +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Menus/Categories.js +1 -1
- package/dist/components/Menus/Categories.mjs +1 -1
- package/dist/components/Menus/Categories.stories.js +1 -1
- package/dist/components/Menus/Categories.stories.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.js +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/index.js +7 -7
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.js +7 -7
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.js +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.js +1 -1
- package/dist/pages/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/IndexPage.stories.mjs +1 -1
- package/dist/pages/Intranet.js +2 -2
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/Intranet.stories.js +2 -2
- package/dist/pages/Intranet.stories.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.js +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.js +1 -1
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Website.js +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.js +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/BlogDetail.js +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.js +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogListSection.js +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.js +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/MainPageSection.js +1 -1
- package/dist/sections/MainPageSection.mjs +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.js +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-3FTRFEVM.mjs +0 -4
- package/dist/chunk-3IHGGPRN.mjs +0 -1
- package/dist/chunk-456IOI6A.mjs +0 -1
- package/dist/chunk-AO2FTKDA.mjs +0 -1
- package/dist/chunk-GFTFZ7JY.mjs +0 -4
- package/dist/chunk-K6CEB2MJ.mjs +0 -4
- package/dist/chunk-S7CP4YF5.mjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";var vt=Object.create;var te=Object.defineProperty;var Ct=Object.getOwnPropertyDescriptor;var wt=Object.getOwnPropertyNames;var kt=Object.getPrototypeOf,Pt=Object.prototype.hasOwnProperty;var Nt=(e,t)=>{for(var r in t)te(e,r,{get:t[r],enumerable:!0})},Ie=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of wt(t))!Pt.call(e,s)&&s!==r&&te(e,s,{get:()=>t[s],enumerable:!(a=Ct(t,s))||a.enumerable});return e};var B=(e,t,r)=>(r=e!=null?vt(kt(e)):{},Ie(t||!e||!e.__esModule?te(r,"default",{value:e,enumerable:!0}):r,e)),Rt=e=>Ie(te({},"__esModule",{value:!0}),e);var ur={};Nt(ur,{Default:()=>U,LoadsOfBlogs:()=>yt,NoAuthorImage:()=>xt,NoCategories:()=>At,default:()=>pr});module.exports=Rt(ur);var Ee="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//Z";var Qe=require("clsx");var he="-",Tt=e=>{let t=St(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{let n=i.split(he);return n[0]===""&&n.length!==1&&n.shift(),Fe(n,t)||Bt(i)},getConflictingClassGroupIds:(i,n)=>{let c=r[i]||[];return n&&a[i]?[...c,...a[i]]:c}}},Fe=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let r=e[0],a=t.nextPart.get(r),s=a?Fe(e.slice(1),a):void 0;if(s)return s;if(t.validators.length===0)return;let o=e.join(he);return(i=t.validators.find(({validator:n})=>n(o)))==null?void 0:i.classGroupId},Le=/^\[(.+)\]$/,Bt=e=>{if(Le.test(e)){let t=Le.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},St=e=>{let{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return It(Object.entries(e.classGroups),r).forEach(([o,i])=>{be(i,a,o,t)}),a},be=(e,t,r,a)=>{e.forEach(s=>{if(typeof s=="string"){let o=s===""?t:ze(t,s);o.classGroupId=r;return}if(typeof s=="function"){if(Mt(s)){be(s(a),t,r,a);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,i])=>{be(i,ze(t,o),r,a)})})},ze=(e,t)=>{let r=e;return t.split(he).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},Mt=e=>e.isThemeGetter,It=(e,t)=>t?e.map(([r,a])=>{let s=a.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,n])=>[t+i,n])):o);return[r,s]}):e,Et=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map,s=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,a=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=a.get(o))!==void 0)return s(o,i),i},set(o,i){r.has(o)?r.set(o,i):s(o,i)}}},De="!",Lt=e=>{let{separator:t,experimentalParseClassName:r}=e,a=t.length===1,s=t[0],o=t.length,i=n=>{let c=[],m=0,h=0,x;for(let y=0;y<n.length;y++){let C=n[y];if(m===0){if(C===s&&(a||n.slice(y,y+o)===t)){c.push(n.slice(h,y)),h=y+o;continue}if(C==="/"){x=y;continue}}C==="["?m++:C==="]"&&m--}let A=c.length===0?n:n.substring(h),v=A.startsWith(De),w=v?A.substring(1):A,g=x&&x>h?x-h:void 0;return{modifiers:c,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:g}};return r?n=>r({className:n,parseClassName:i}):i},zt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(a=>{a[0]==="["?(t.push(...r.sort(),a),r=[]):r.push(a)}),t.push(...r.sort()),t},Ft=e=>({cache:Et(e.cacheSize),parseClassName:Lt(e),...Tt(e)}),Dt=/\s+/,Ht=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:s}=t,o=[],i=e.trim().split(Dt),n="";for(let c=i.length-1;c>=0;c-=1){let m=i[c],{modifiers:h,hasImportantModifier:x,baseClassName:A,maybePostfixModifierPosition:v}=r(m),w=!!v,g=a(w?A.substring(0,v):A);if(!g){if(!w){n=m+(n.length>0?" "+n:n);continue}if(g=a(A),!g){n=m+(n.length>0?" "+n:n);continue}w=!1}let y=zt(h).join(":"),C=x?y+De:y,k=C+g;if(o.includes(k))continue;o.push(k);let E=s(g,w);for(let L=0;L<E.length;++L){let W=E[L];o.push(C+W)}n=m+(n.length>0?" "+n:n)}return n};function Ut(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=He(t))&&(a&&(a+=" "),a+=r);return a}var He=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=He(e[a]))&&(r&&(r+=" "),r+=t);return r};function Gt(e,...t){let r,a,s,o=i;function i(c){let m=t.reduce((h,x)=>x(h),e());return r=Ft(m),a=r.cache.get,s=r.cache.set,o=n,n(c)}function n(c){let m=a(c);if(m)return m;let h=Ht(c,r);return s(c,h),h}return function(){return o(Ut.apply(null,arguments))}}var f=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ue=/^\[(?:([a-z-]+):)?(.+)\]$/i,Kt=/^\Ve+\/\Ve+$/,Qt=new Set(["px","full","screen"]),Ot=/^(\Ve+(\.\Ve+)?)?(xs|sm|md|lg|xl)$/,Vt=/\Ve+(%|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$/,Yt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,jt=/^(inset_)?-?((\Ve+)?\.?(\Ve+)[a-z]+|0)_-?((\Ve+)?\.?(\Ve+)[a-z]+|0)/,_t=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,R=e=>G(e)||Qt.has(e)||Kt.test(e),S=e=>K(e,"length",tr),G=e=>!!e&&!Number.isNaN(Number(e)),fe=e=>K(e,"number",G),_=e=>!!e&&Number.isInteger(Number(e)),Jt=e=>e.endsWith("%")&&G(e.slice(0,-1)),l=e=>Ue.test(e),M=e=>Ot.test(e),qt=new Set(["length","size","percentage"]),Zt=e=>K(e,qt,Ge),Xt=e=>K(e,"position",Ge),Wt=new Set(["image","url"]),$t=e=>K(e,Wt,or),er=e=>K(e,"",rr),J=()=>!0,K=(e,t,r)=>{let a=Ue.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},tr=e=>Vt.test(e)&&!Yt.test(e),Ge=()=>!1,rr=e=>jt.test(e),or=e=>_t.test(e);var ar=()=>{let e=f("colors"),t=f("spacing"),r=f("blur"),a=f("brightness"),s=f("borderColor"),o=f("borderRadius"),i=f("borderSpacing"),n=f("borderWidth"),c=f("contrast"),m=f("grayscale"),h=f("hueRotate"),x=f("invert"),A=f("gap"),v=f("gradientColorStops"),w=f("gradientColorStopPositions"),g=f("inset"),y=f("margin"),C=f("opacity"),k=f("padding"),E=f("saturate"),L=f("scale"),W=f("sepia"),Pe=f("skew"),Ne=f("space"),Re=f("translate"),pe=()=>["auto","contain","none"],ue=()=>["auto","hidden","clip","visible","scroll"],me=()=>["auto",l,t],b=()=>[l,t],Te=()=>["",R,S],$=()=>["auto",G,l],Be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ee=()=>["solid","dashed","dotted","double","none"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ge=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",l],Me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>[G,l];return{cacheSize:500,separator:":",theme:{colors:[J],spacing:[R,S],blur:["none","",M,l],brightness:N(),borderColor:[e],borderRadius:["none","","full",M,l],borderSpacing:b(),borderWidth:Te(),contrast:N(),grayscale:j(),hueRotate:N(),invert:j(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[Jt,S],inset:me(),margin:me(),opacity:N(),padding:b(),saturate:N(),scale:N(),sepia:j(),skew:N(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[M]}],"break-after":[{"break-after":Me()}],"break-before":[{"break-before":Me()}],"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:[...Be(),l]}],overflow:[{overflow:ue()}],"overflow-x":[{"overflow-x":ue()}],"overflow-y":[{"overflow-y":ue()}],overscroll:[{overscroll:pe()}],"overscroll-x":[{"overscroll-x":pe()}],"overscroll-y":[{"overscroll-y":pe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_,l]}],basis:[{basis:me()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",_,l]}],"grid-cols":[{"grid-cols":[J]}],"col-start-end":[{col:["auto",{span:["full",_,l]},l]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[J]}],"row-start-end":[{row:["auto",{span:[_,l]},l]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[A]}],"gap-x":[{"gap-x":[A]}],"gap-y":[{"gap-y":[A]}],"justify-content":[{justify:["normal",...ge()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ge(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ge(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],et:[{et:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[Ne]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Ne]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,t]}],"min-w":[{"min-w":[l,t,"min","max","fit"]}],"max-w":[{"max-w":[l,t,"none","full","min","max","fit","prose",{screen:[M]},M]}],h:[{h:[l,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,t,"auto","min","max","fit"]}],"font-size":[{text:["base",M,S]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",fe]}],"font-family":[{font:[J]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",G,fe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",R,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",R,S]}],"underline-offset":[{"underline-offset":["auto",R,l]}],"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:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Be(),Xt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Zt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$t]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...ee(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:ee()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...ee()]}],"outline-offset":[{"outline-offset":[R,l]}],"outline-w":[{outline:[R,S]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[R,S]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",M,er]}],"shadow-color":[{shadow:[J]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...Se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Se()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",M,l]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[x]}],saturate:[{saturate:[E]}],sepia:[{sepia:[W]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[_,l]}],"translate-x":[{"translate-x":[Re]}],"translate-y":[{"translate-y":[Re]}],"skew-x":[{"skew-x":[Pe]}],"skew-y":[{"skew-y":[Pe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],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","tt-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-et":[{"scroll-et":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[R,S,fe]}],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","et","mr","mb","ml"],mx:["mr","ml"],my:["et","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-et","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-et","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ke=Gt(ar);function p(...e){return Ke((0,Qe.clsx)(e))}var Ve=require("react/jsx-runtime");function Oe({children:e,isFluid:t=!1,isNoPadding:r=!1,className:a=""}){let s=p("container",t&&"full-width",r&&"no-padding",a);return(0,Ve.jsx)("div",{className:s,children:e})}var Ye=B(require("next/link"));function je({children:e,href:t,openNewTab:r,...a}){return(0,Ve.jsx)(Ye.default,{href:t,target:r?"_blank":"_self",...a,children:e})}var ft=B(require("next/image"));var Je=({className:e,content:t,style:r})=>(0,Ve.jsx)("div",{className:p("mx-auto my-8 w-full",e),children:(0,Ve.jsx)("div",{className:p("border py-3 px-6 flex items-center rounded",{"border-border bg-card":r==="info","border-error bg-error/30":r==="error","border-success bg-success/30":r==="success","border-warning bg-warning/30":r==="warning"}),children:(0,Ve.jsx)(Q,{content:t,enableGutter:!1,enableProse:!1})})});var qe=require("@radix-ui/react-slot"),Ze=require("class-variance-authority"),Xe=B(require("react")),sr=(0,Ze.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),z=Xe.forwardRef(({asChild:e=!1,className:t,size:r,variant:a,...s},o)=>(0,Ve.jsx)(e?qe.Slot:"button",{className:p(sr({className:t,size:r,variant:a})),ref:o,...s}));z.displayName="Button";var ye=B(require("next/link")),oe=e=>{let{type:t,appearance:r="inline",children:a,className:s,label:o,newTab:i,reference:n,size:c,url:m}=e,h=t==="reference"&&typeof(n==null?void 0:n.value)=="object"&&n.value.slug?`${(n==null?void 0:n.relationTo)!=="pages"?`/${n==null?void 0:n.relationTo}`:""}/${n.value.slug}`:m;if(!h)return null;let x=r==="link"?"clear":c,A=i?{rel:"noopener noreferrer",target:"_blank"}:{};return r==="inline"?(0,Ve.jsxs)(ye.default,{className:p(s),href:h||m||"",...A,children:[o&&o,a&&a]}):(0,Ve.jsx)(z,{asChild:!0,className:s,size:x,variant:r,children:(0,Ve.jsxs)(ye.default,{className:p(s),href:h||m||"",...A,children:[o&&o,a&&a]})})};var $e=({links:e,richText:t})=>(0,Ve.jsx)("div",{className:"container",children:(0,Ve.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,Ve.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,Ve.jsx)(Q,{className:"mb-0",content:t,enableGutter:!1})}),(0,Ve.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:r},a)=>(0,Ve.jsx)(oe,{size:"lg",...r},a))})]})});var ae=require("prism-react-renderer");var et=require("lucide-react"),tt=require("react");function rt({code:e}){let[t,r]=(0,tt.useState)("Copy");function a(){t==="Copy"&&(r(()=>"Copied!"),setTimeout(()=>{r(()=>"Copy")},1e3))}return(0,Ve.jsx)("div",{className:"flex justify-end align-middle",children:(0,Ve.jsxs)(z,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),a()},children:[(0,Ve.jsx)("p",{children:t}),(0,Ve.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,Ve.jsx)(et.ClipboardCopy,{})})]})})}var ot=({code:e,language:t=""})=>e?(0,Ve.jsx)(ae.Highlight,{code:e,language:t,theme:ae.themes.vsDark,children:({getLineProps:r,getTokenProps:a,tokens:s})=>(0,Ve.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[s.map((o,i)=>(0,Ve.jsxs)("div",{...r({className:"table-row",line:o}),children:[(0,Ve.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:i+1}),(0,Ve.jsx)("span",{className:"table-cell pl-4",children:o.map((n,c)=>(0,Ve.jsx)("span",{...a({token:n})},c))})]},i)),(0,Ve.jsx)(rt,{code:e})]})}):null;var at=({className:e,code:t,language:r})=>(0,Ve.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Ve.jsx)(ot,{code:t,language:r})});var nt=B(require("next/image"));var st=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var se=()=>{if(st){let e=window.location.protocol,t=window.location.hostname,r=window.location.port;return`${e}//${t}${r?`:${r}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var nr={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},ir="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABchJREFUWEdtlwtTG0kMhHtGM7N+AAdcDsjj///EBLzenbtuadbLJaZUTlHB+tRqSesETB3IABqQG1KbUFqDlQorBSmboqeEBcC1d8zrCixXYGZcgMsFmH8B+AngHdurAmXKOE8nHOoBrU6opcGswPi5KSP9CcBaQ9kACJH/ALAA1xm4zMD8AczvQCcAQeJVAZsy7nYApTSUzwCHUKACeUJi9TsFci7AHmDtuHYqQIC9AgQYKnSwNAig4NyOOwXq/xU47gDYggarjIpsRSEA3Fqw7AGkwgW4fgALAdiC2btKgNZwbgdMbEFpqFR2UyCR8xwAhf8bUHIGk1ckMyB5C1YkeWAdAPQBAeiD6wVYPoD1HUgXwFagZAGc6oSpTmilopoD5GzISQD3odcNIFca0BUQQM5YA2DpHV0AYURBDIAL0C+ugC0C4GedSsVUmwC8/4w8TPiwU6AClJ5RWL1PgQNkrABWdKB3YF3cBwRY5lsI4ApkKpCQi+FIgFJU/TDgDuAxAAwonJuKpGD1rkCXCR1ALyrAUSSEQAhwBdYZ6DPAgSUA2c1wKIZmRcHxMzMYR9DH8NlbkAwwApSAcABwBwTAbb6owAr0AFiZPILVEyCtMmK2jCkTwFDNUNj7nJETQx744gCUmgkZVGJUHyakEZE4W91jtGFA9KsD8Z3JFYDlhGYZLWcllwJMnplcPy+csFAgAAaIDOgeuAGoB96GLZg4kmtfMjnr6ig5oSoySsoy3ya/FMivXZWxwr0KIf9nACbfqcBEgmBSAtAlIT83R+70IWpyACamIjf5E1Iqb9ECVmnoI/FvAIRk8s2J0Y5IquQDgB+5wpScw5AUTC75VTmTs+72NUzoCvQIaAXv5Q8PDAZKLD+MxLv3RFE7KlsQChgBIlKiCv5ByaZv3gJZNm8AnVMhAN+EjrtTYQMICJpu6/0aiQnhClANlz+Bw0cIWa8ev0sBrtrhAyaXEnrfGfATQJiRKih5vKeOHNXXPFrgyamAADh0Q4F2/sESojomDS9o9k0b0H83xjB8qL+JNoTjN+enjpaBpingRh4e8MSugudM030A8FeqMI6PFIgNyPehkpZWGFEAARIQdH5LcAAqIACHkAJqg4OoBccHAuz76wr4BbzFOEa8iBuAZB8AtJHLP2VgMgJw/EIBowo7HxCAH3V6dAXEE/vZ5aZIA8BP8RKhm7Cp8BnAMnAQADdgQDA520AVIpScP+enHz0Gwp25h4i2dPg5FkDXrbsdJikQwXuWgaM5gEMk1AgH4DKKFjDf3bMD+FjEeIxLlRKYnBk2BbquvSDCAQ4gwZiMAAmH4gBTyRtEsYxi7gP6QSrc//39BrDNqG8rtYTmC4BV1SfMhOhaumFCT87zy4pPhQBZEK1kQVRjJBBi7AOlePgyAPYjwlvtagx9e/dnQraAyS894TIkkAIEYMKEc8k4EqJ68lZ5jjNqcQC2QteQOf7659umwBgPybNtK4dg9WvnMyFwXYGP7uEO1lwJgAnPNeMYMVXbIIYKFioI4PGFt+BWPVfmWJdjW2lTUnLGCswECAgaUy86iwA1464ajo0QhgMBFGyBoZahANsMpMfXr1JA1SN29m5lqgXj+UPV85uRA7yv/KYUO4Tk7Hc1AZwbIRzg0AyNj2UlAMwfSLSMnl7fdAbcxHuA27YaAMvaQ4GOjwX4RTUGAG8Ge14N963g1AynqUiFqRX9noasxT4b8entNRQYyamk/3tYcHsO7R3XJRRYOn4tw4iUnwBM5gDnySGOreAwAGo8F9IDHEcq8Pz2Kg/oXCpuIL6tOPD8LsDn0ABYQoGFRowlsAEUPPDrGAGowAbgKsgDMmE8mDy/vXQ9IAwI7u4wta+gAdAdgB64Ah9SgD4IgGKhwACoAjgNgFDhtxY8f33ZTMjqdTAiHMBPrn8ZWkEfzFdX4Oc1AHg3+ADbvN8PU8WdFKg4Tt6CQy2+D4YHaMT/JP4XzbAq98cPDIUAAAAASUVORK5CYII=",it=e=>{let{alt:t,fill:r,imgClassName:a,priority:s,resource:o,size:i,src:n,loading:c}=e,m,h,x=t,A=n||"";if(!A&&o&&typeof o=="object"){let{alt:g,filename:y,height:C,url:k,width:E}=o;m=E,h=C,x=g||"",A=`${se()}${k}`}let v=c||"lazy",w=i||Object.entries(nr).map(([,g])=>`(max-width: ${g}px) ${g*2}w`).join(", ");return(0,Ve.jsx)("picture",{children:(0,Ve.jsx)(nt.default,{alt:x||"",className:p(a),fill:r,height:r?void 0:h,placeholder:"blur",blurDataURL:ir,priority:v!=="lazy"&&s,quality:100,loading:v,sizes:w,src:A,width:r?void 0:m})})};var lt=e=>{let{onClick:t,resource:r,videoClassName:a}=e,s=(0,tt.useRef)(null);if((0,tt.useEffect)(()=>{let{current:o}=s;o&&o.addEventListener("suspend",()=>{})},[]),r&&typeof r=="object"){let{filename:o}=r;return(0,Ve.jsx)("video",{autoPlay:!0,className:p(a),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:s,children:(0,Ve.jsx)("source",{src:`${se()}/media/${o}`})})}return null};var dt=e=>{var i;let{className:t,htmlElement:r="div",resource:a}=e,s=typeof a=="object"&&((i=a==null?void 0:a.mimeType)==null?void 0:i.includes("video"));return(0,Ve.jsx)(r||tt.Fragment,{...r!==null?{className:t}:{},children:s?(0,Ve.jsx)(lt,{...e}):(0,Ve.jsx)(it,{...e})})};var pt=e=>{let{className:t,enableGutter:r=!0,imgClassName:a,media:s,staticImage:o}=e;return(0,Ve.jsx)("div",{className:p("",{container:r},t),children:(0,Ve.jsx)(dt,{imgClassName:p("border border-border rounded-[0.8rem]",a),resource:s,src:o})})};var ce=B(require("react"));function le({nodes:e}){return(0,Ve.jsx)(ce.Fragment,{children:e==null?void 0:e.map((t,r)=>{if(t==null)return null;if(t.type==="text"){let o=(0,Ve.jsx)(ce.default.Fragment,{children:t.text},r);return t.format&1&&(o=(0,Ve.jsx)("strong",{children:o},r)),t.format&2&&(o=(0,Ve.jsx)("em",{children:o},r)),t.format&4&&(o=(0,Ve.jsx)("span",{style:{textDecoration:"line-through"},children:o},r)),t.format&8&&(o=(0,Ve.jsx)("span",{style:{textDecoration:"underline"},children:o},r)),t.format&16&&(o=(0,Ve.jsx)("code",{children:t.text},r)),t.format&32&&(o=(0,Ve.jsx)("sub",{children:o},r)),t.format&64&&(o=(0,Ve.jsx)("sup",{children:o},r)),o}if(t.type==="table")return(0,Ve.jsx)("table",{children:(0,Ve.jsx)("tbody",{children:t.children.map((o,i)=>(0,Ve.jsx)("tr",{children:o.children.map((n,c)=>(0,Ve.jsx)("td",{children:le({nodes:n.children})},c))},i))})},r);let a=o=>{if(o.children==null)return null;if((o==null?void 0:o.type)==="list"&&(o==null?void 0:o.listType)==="check")for(let i of o.children)"checked"in i&&(i!=null&&i.checked||(i.checked=!1));return le({nodes:o.children})},s="children"in t?a(t):"";if(t.type==="block"){let o=t.fields,i=o==null?void 0:o.blockType;if(!o||!i)return null;switch(i){case"cta":return(0,Ve.jsx)($e,{...o},r);case"mediaBlock":return(0,Ve.jsx)(pt,{className:"col-start-1 col-span-3",imgClassName:"m-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"banner":return(0,Ve.jsx)(Je,{className:"col-start-2 mb-4",...o},r);case"code":return(0,Ve.jsx)(at,{className:"col-start-2",...o},r);default:return null}}else switch(t.type){case"linebreak":return(0,Ve.jsx)("br",{className:"col-start-2"},r);case"paragraph":return(0,Ve.jsx)("p",{className:"col-start-2",children:s},r);case"heading":{let o=t==null?void 0:t.tag;return(0,Ve.jsx)(o,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:s},r)}case"list":{let o=t==null?void 0:t.tag;return(0,Ve.jsx)(o,{className:"list col-start-2",children:s},r)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,Ve.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:s},r):(0,Ve.jsx)("li",{value:t==null?void 0:t.value,children:s},r);case"quote":return(0,Ve.jsx)("blockquote",{className:"col-start-2",children:s},r);case"link":{let o=t.fields;return(0,Ve.jsx)(oe,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:s},r)}default:return null}})})}var Q=({className:e,content:t,enableGutter:r=!0,enableProse:a=!0})=>{var s;return t?(0,Ve.jsx)("div",{className:p({"container ":r,"max-w-none":!r,"mx-auto prose dark:prose-invert ":a},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&le({nodes:(s=t==null?void 0:t.root)==null?void 0:s.children})}):null};var bt=require("next/navigation");var D=B(require("react"));var O=D.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)("div",{ref:r,className:p("rounded-xl border bg-card text-card-foreground shadow",e),...t}));O.displayName="Card";var Z=D.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)("div",{ref:r,className:p("flex flex-col space-y-1.5 p-6",e),...t}));Z.displayName="CardHeader";var X=D.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)("div",{ref:r,className:p("font-semibold leading-none tracking-tight",e),...t}));X.displayName="CardTitle";var lr=D.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)("div",{ref:r,className:p("text-sm text-muted-foreground",e),...t}));lr.displayName="CardDescription";var V=D.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)("div",{ref:r,className:p("p-6 pt-0",e),...t}));V.displayName="CardContent";var cr=D.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)("div",{ref:r,className:p("flex items-center p-6 pt-0",e),...t}));cr.displayName="CardFooter";var To=p("transition-colors duration-400 hover:text-primary ease-in-out");function gt({title:e,links:t}){let r=(0,bt.useSearchParams)(),a=(0,bt.usePathname)(),{replace:s}=(0,bt.useRouter)();function o(i){console.log(i);let n=new URLSearchParams(r);i?n.set("category",i):n.delete("category"),s(`${a}?${n.toString()}`)}return(0,Ve.jsxs)(O,{children:[(0,Ve.jsx)(Z,{children:(0,Ve.jsx)(X,{className:"text-accent",children:e&&e})}),(0,Ve.jsx)(V,{children:t&&t.length>0&&(0,Ve.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Ve.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((i,n)=>(0,Ve.jsxs)("li",{className:"flex items-center text-sm text-primary first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),o(i.href)},children:[i.label,(0,Ve.jsx)(et.ExternalLink,{className:"ml-1 h-3 w-3"})]},n))})})})]})}var ht=B(require("next/link"));function dr({image:e,name:t,about:r,socialLinks:a}){return!e||!e.src||e.src.length<3||!t?null:(0,Ve.jsx)("div",{className:"et-1 z-10 px-0 pt-0 lg:px-10",children:(0,Ve.jsx)(O,{children:(0,Ve.jsxs)(V,{children:[e&&e.src&&(0,Ve.jsx)(ft.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:Ee,className:"mx-auto et-6 rounded-full object-cover"}),(0,Ve.jsx)("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:t}),(0,Ve.jsx)("p",{children:r}),a&&a.length>0&&(0,Ve.jsx)("nav",{"aria-label":"social links",children:(0,Ve.jsx)("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:a.map((s,o)=>(0,Ve.jsx)("li",{children:(0,Ve.jsx)(je,{href:s.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:(0,Ve.jsx)("span",{children:s.icon})})},o))})})]})})})}function we({page:e,categoryList:t,edit:r=!1,path:a="/admin/collections/posts/"}){var A;if(!e)return(0,bt.notFound)();let{meta:s,populatedAuthors:o,authors:i,categories:n,content:c,title:m}=e,h={image:{src:s&&s.image&&s.image.url||void 0,alt:s&&s.image&&s.image.alt||void 0},authorName:((A=o==null?void 0:o[0])==null?void 0:A.name)||"",category:n,commentCount:0,title:m,description:(s==null?void 0:s.description)||""},x=i==null?void 0:i.map(v=>{var w,g;return{name:v.name||"",about:"",image:{src:v.profilePicture&&((g=(w=v.profilePicture.sizes)==null?void 0:w.square)==null?void 0:g.url)||"",alt:v.name||"blog author"},socialLinks:[]}});return(0,Ve.jsx)(Oe,{children:(0,Ve.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,Ve.jsx)("div",{children:(0,Ve.jsxs)("div",{className:"[&_p+Ve]:et-4",children:[(0,Ve.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,Ve.jsx)(Q,{content:c,enableGutter:!1})]})}),(0,Ve.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[r&&(0,Ve.jsx)("div",{className:"et-4 lg:-et-10 z-10 px-0 pt-0 lg:px-10",children:(0,Ve.jsxs)(O,{children:[(0,Ve.jsx)(Z,{children:(0,Ve.jsx)(X,{className:"text-accent",children:"CMS Actions"})}),(0,Ve.jsxs)(V,{children:[(0,Ve.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,Ve.jsx)(ht.default,{href:`${a}${e.id}`,children:(0,Ve.jsx)(z,{variant:"outline",className:"w-full text-accent",children:"Edit"})})]})]})}),x&&x.map((v,w)=>(0,Ve.jsx)(dr,{...v},w)),t&&t.links&&(0,Ve.jsx)("div",{className:"et-4 px-0 pt-0 lg:px-10",children:(0,Ve.jsx)(gt,{links:t.links,title:t.title})})]})]})})}var pr={title:"Sections/BlogDetail",component:we,tags:["autodocs"],parameters:{nextjs:{appDirectory:!0},docs:{description:{component:"A card component that displays a service with an icon, title, description, and a link."}}},argTypes:{icon:{control:"text"},title:{control:"text"},description:{control:"text"},slug:{control:"text"}},decorators:[e=>(0,Ve.jsx)(e,{})]},de=e=>(0,Ve.jsx)(we,{...e}),U=de.bind({});U.args={categoryList:{title:"Categories",links:[{label:"Category 1",href:1},{label:"Category 2",href:2},{label:"Category 3",href:3}]},page:{id:2,title:"Test Post 2",content:{root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus lacinia odio vitae vestibulum vestibulum. Cras vehicula, libero a pharetra dictum, urna lectus porttitor lacus, at dapibus justo quam vel metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed non velit nec arcu volutpat dignissim in a lorem.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Proin sagittis sem et elit fringilla, nec fringilla eros maximus. Nulla facilisi. Ut sit amet facilisis lectus. Fusce ornare metus at ante tristique, nec elementum eros fermentum. Integer volutpat magna sed justo tincidunt, sit amet aliquam arcu pellentesque. Phasellus imperdiet mi vitae ligula pharetra, a dignissim velit vehicula.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Suspendisse potenti. Donec malesuada arcu at velit laoreet convallis. Sed at eros vel lacus varius varius nec id metus. Praesent faucibus, orci a varius dapibus, lorem libero convallis est, et consequat libero magna sit amet risus. Maecenas tincidunt erat et felis sodales, nec malesuada sem tincidunt. Duis sed nisl euismod, ullamcorper augue at, rutrum felis.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Aenean Ve ligula ac libero vehicula luctus. Integer ultricies nisl id mi dictum, eget tincidunt augue interdum. Sed eu malesuada erat. Nam fringilla lectus id dolor gravida lacinia. Aliquam erat volutpat. Vestibulum nec ipsum vitae elit dapibus suscipit vel at ipsum.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},relatedPosts:[],categories:[{id:1,title:"Test Category 1",slug:"test-category-1",updatedAt:"2025-01-06T20:16:54.416Z",createdAt:"2025-01-06T20:16:54.416Z",_status:"published"}],meta:{title:"Test Post 1",image:null,description:null},publishedAt:"2025-01-06T20:17:25.595Z",authors:[{id:1,name:"Rob",jobRole:null,profilePicture:null,workHistory:[],certifications:[],areasOfExpertise:[],dateOfBirth:null,joinDate:null,role:"admin",sub:null,updatedAt:"2025-01-06T20:16:54.416Z",createdAt:"2025-01-06T20:16:54.416Z",enableAPIKey:null,apiKey:null,email:"rob@sdsdd.com",loginAttempts:0}],populatedAuthors:[{id:1,name:"Rob Ellison"}],publishedToWebsite:!1,slug:"test-post-2",slugLock:!0,updatedAt:"2025-01-06T20:17:31.465Z",createdAt:"2025-01-06T20:17:27.818Z",_status:"published"}};var yt=de.bind({});yt.args={...U.args,pages:{totalPages:40,page:20}};var At=de.bind({});At.args={...U.args,page:{...U.args.page,categoryList:{title:"Categories"}},categoryList:null};var xt=de.bind({});xt.args={...U.args,page:{...U.args.page,authors:[{id:1,name:"Dave Brown",jobRole:null,profilePicture:null,workHistory:[],certifications:[],areasOfExpertise:[],dateOfBirth:null,joinDate:null,role:"admin",sub:null,updatedAt:"2025-01-06T20:16:54.416Z",createdAt:"2025-01-06T20:16:54.416Z",enableAPIKey:null,apiKey:null,email:""}],populatedAuthors:[{id:1,name:"Dave Brown"}]}};0&&(module.exports={Default,LoadsOfBlogs,NoAuthorImage,NoCategories});
|
|
4
|
+
"use strict";var vt=Object.create;var te=Object.defineProperty;var Ct=Object.getOwnPropertyDescriptor;var wt=Object.getOwnPropertyNames;var kt=Object.getPrototypeOf,Pt=Object.prototype.hasOwnProperty;var Nt=(e,t)=>{for(var r in t)te(e,r,{get:t[r],enumerable:!0})},Ie=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of wt(t))!Pt.call(e,s)&&s!==r&&te(e,s,{get:()=>t[s],enumerable:!(a=Ct(t,s))||a.enumerable});return e};var B=(e,t,r)=>(r=e!=null?vt(kt(e)):{},Ie(t||!e||!e.__esModule?te(r,"default",{value:e,enumerable:!0}):r,e)),Rt=e=>Ie(te({},"__esModule",{value:!0}),e);var ur={};Nt(ur,{Default:()=>U,LoadsOfBlogs:()=>yt,NoAuthorImage:()=>xt,NoCategories:()=>At,default:()=>pr});module.exports=Rt(ur);var Ee="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//Z";var Qe=require("clsx");var he="-",Tt=e=>{let t=St(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{let n=i.split(he);return n[0]===""&&n.length!==1&&n.shift(),Fe(n,t)||Bt(i)},getConflictingClassGroupIds:(i,n)=>{let c=r[i]||[];return n&&a[i]?[...c,...a[i]]:c}}},Fe=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let r=e[0],a=t.nextPart.get(r),s=a?Fe(e.slice(1),a):void 0;if(s)return s;if(t.validators.length===0)return;let o=e.join(he);return(i=t.validators.find(({validator:n})=>n(o)))==null?void 0:i.classGroupId},Le=/^\[(.+)\]$/,Bt=e=>{if(Le.test(e)){let t=Le.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},St=e=>{let{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return It(Object.entries(e.classGroups),r).forEach(([o,i])=>{be(i,a,o,t)}),a},be=(e,t,r,a)=>{e.forEach(s=>{if(typeof s=="string"){let o=s===""?t:ze(t,s);o.classGroupId=r;return}if(typeof s=="function"){if(Mt(s)){be(s(a),t,r,a);return}t.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([o,i])=>{be(i,ze(t,o),r,a)})})},ze=(e,t)=>{let r=e;return t.split(he).forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},Mt=e=>e.isThemeGetter,It=(e,t)=>t?e.map(([r,a])=>{let s=a.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,n])=>[t+i,n])):o);return[r,s]}):e,Et=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map,s=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,a=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=a.get(o))!==void 0)return s(o,i),i},set(o,i){r.has(o)?r.set(o,i):s(o,i)}}},De="!",Lt=e=>{let{separator:t,experimentalParseClassName:r}=e,a=t.length===1,s=t[0],o=t.length,i=n=>{let c=[],m=0,h=0,x;for(let y=0;y<n.length;y++){let C=n[y];if(m===0){if(C===s&&(a||n.slice(y,y+o)===t)){c.push(n.slice(h,y)),h=y+o;continue}if(C==="/"){x=y;continue}}C==="["?m++:C==="]"&&m--}let A=c.length===0?n:n.substring(h),v=A.startsWith(De),w=v?A.substring(1):A,g=x&&x>h?x-h:void 0;return{modifiers:c,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:g}};return r?n=>r({className:n,parseClassName:i}):i},zt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(a=>{a[0]==="["?(t.push(...r.sort(),a),r=[]):r.push(a)}),t.push(...r.sort()),t},Ft=e=>({cache:Et(e.cacheSize),parseClassName:Lt(e),...Tt(e)}),Dt=/\s+/,Ht=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:s}=t,o=[],i=e.trim().split(Dt),n="";for(let c=i.length-1;c>=0;c-=1){let m=i[c],{modifiers:h,hasImportantModifier:x,baseClassName:A,maybePostfixModifierPosition:v}=r(m),w=!!v,g=a(w?A.substring(0,v):A);if(!g){if(!w){n=m+(n.length>0?" "+n:n);continue}if(g=a(A),!g){n=m+(n.length>0?" "+n:n);continue}w=!1}let y=zt(h).join(":"),C=x?y+De:y,k=C+g;if(o.includes(k))continue;o.push(k);let E=s(g,w);for(let L=0;L<E.length;++L){let W=E[L];o.push(C+W)}n=m+(n.length>0?" "+n:n)}return n};function Ut(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=He(t))&&(a&&(a+=" "),a+=r);return a}var He=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=He(e[a]))&&(r&&(r+=" "),r+=t);return r};function Gt(e,...t){let r,a,s,o=i;function i(c){let m=t.reduce((h,x)=>x(h),e());return r=Ft(m),a=r.cache.get,s=r.cache.set,o=n,n(c)}function n(c){let m=a(c);if(m)return m;let h=Ht(c,r);return s(c,h),h}return function(){return o(Ut.apply(null,arguments))}}var f=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ue=/^\[(?:([a-z-]+):)?(.+)\]$/i,Kt=/^\Ve+\/\Ve+$/,Qt=new Set(["px","full","screen"]),Ot=/^(\Ve+(\.\Ve+)?)?(xs|sm|md|lg|xl)$/,Vt=/\Ve+(%|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$/,Yt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,jt=/^(inset_)?-?((\Ve+)?\.?(\Ve+)[a-z]+|0)_-?((\Ve+)?\.?(\Ve+)[a-z]+|0)/,_t=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,R=e=>G(e)||Qt.has(e)||Kt.test(e),S=e=>K(e,"length",tr),G=e=>!!e&&!Number.isNaN(Number(e)),fe=e=>K(e,"number",G),_=e=>!!e&&Number.isInteger(Number(e)),Jt=e=>e.endsWith("%")&&G(e.slice(0,-1)),l=e=>Ue.test(e),M=e=>Ot.test(e),qt=new Set(["length","size","percentage"]),Zt=e=>K(e,qt,Ge),Xt=e=>K(e,"position",Ge),Wt=new Set(["image","url"]),$t=e=>K(e,Wt,or),er=e=>K(e,"",rr),J=()=>!0,K=(e,t,r)=>{let a=Ue.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},tr=e=>Vt.test(e)&&!Yt.test(e),Ge=()=>!1,rr=e=>jt.test(e),or=e=>_t.test(e);var ar=()=>{let e=f("colors"),t=f("spacing"),r=f("blur"),a=f("brightness"),s=f("borderColor"),o=f("borderRadius"),i=f("borderSpacing"),n=f("borderWidth"),c=f("contrast"),m=f("grayscale"),h=f("hueRotate"),x=f("invert"),A=f("gap"),v=f("gradientColorStops"),w=f("gradientColorStopPositions"),g=f("inset"),y=f("margin"),C=f("opacity"),k=f("padding"),E=f("saturate"),L=f("scale"),W=f("sepia"),Pe=f("skew"),Ne=f("space"),Re=f("translate"),pe=()=>["auto","contain","none"],ue=()=>["auto","hidden","clip","visible","scroll"],me=()=>["auto",l,t],b=()=>[l,t],Te=()=>["",R,S],$=()=>["auto",G,l],Be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ee=()=>["solid","dashed","dotted","double","none"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ge=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",l],Me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>[G,l];return{cacheSize:500,separator:":",theme:{colors:[J],spacing:[R,S],blur:["none","",M,l],brightness:N(),borderColor:[e],borderRadius:["none","","full",M,l],borderSpacing:b(),borderWidth:Te(),contrast:N(),grayscale:j(),hueRotate:N(),invert:j(),gap:b(),gradientColorStops:[e],gradientColorStopPositions:[Jt,S],inset:me(),margin:me(),opacity:N(),padding:b(),saturate:N(),scale:N(),sepia:j(),skew:N(),space:b(),translate:b()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[M]}],"break-after":[{"break-after":Me()}],"break-before":[{"break-before":Me()}],"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:[...Be(),l]}],overflow:[{overflow:ue()}],"overflow-x":[{"overflow-x":ue()}],"overflow-y":[{"overflow-y":ue()}],overscroll:[{overscroll:pe()}],"overscroll-x":[{"overscroll-x":pe()}],"overscroll-y":[{"overscroll-y":pe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_,l]}],basis:[{basis:me()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",_,l]}],"grid-cols":[{"grid-cols":[J]}],"col-start-end":[{col:["auto",{span:["full",_,l]},l]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[J]}],"row-start-end":[{row:["auto",{span:[_,l]},l]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[A]}],"gap-x":[{"gap-x":[A]}],"gap-y":[{"gap-y":[A]}],"justify-content":[{justify:["normal",...ge()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ge(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ge(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],et:[{et:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[Ne]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Ne]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,t]}],"min-w":[{"min-w":[l,t,"min","max","fit"]}],"max-w":[{"max-w":[l,t,"none","full","min","max","fit","prose",{screen:[M]},M]}],h:[{h:[l,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,t,"auto","min","max","fit"]}],"font-size":[{text:["base",M,S]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",fe]}],"font-family":[{font:[J]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",G,fe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",R,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",R,S]}],"underline-offset":[{"underline-offset":["auto",R,l]}],"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:b()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Be(),Xt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Zt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$t]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...ee(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:ee()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...ee()]}],"outline-offset":[{"outline-offset":[R,l]}],"outline-w":[{outline:[R,S]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[R,S]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",M,er]}],"shadow-color":[{shadow:[J]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...Se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Se()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",M,l]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[x]}],saturate:[{saturate:[E]}],sepia:[{sepia:[W]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:N()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:N()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[_,l]}],"translate-x":[{"translate-x":[Re]}],"translate-y":[{"translate-y":[Re]}],"skew-x":[{"skew-x":[Pe]}],"skew-y":[{"skew-y":[Pe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],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","tt-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-et":[{"scroll-et":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[R,S,fe]}],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","et","mr","mb","ml"],mx:["mr","ml"],my:["et","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-et","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-et","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ke=Gt(ar);function p(...e){return Ke((0,Qe.clsx)(e))}var Ve=require("react/jsx-runtime");function Oe({children:e,isFluid:t=!1,isNoPadding:r=!1,className:a=""}){let s=p("container",t&&"full-width",r&&"no-padding",a);return(0,Ve.jsx)("div",{className:s,children:e})}var Ye=B(require("next/link"));function je({children:e,href:t,openNewTab:r,...a}){return(0,Ve.jsx)(Ye.default,{href:t,target:r?"_blank":"_self",...a,children:e})}var ft=B(require("next/image"));var Je=({className:e,content:t,style:r})=>(0,Ve.jsx)("div",{className:p("mx-auto my-8 w-full",e),children:(0,Ve.jsx)("div",{className:p("border py-3 px-6 flex items-center rounded",{"border-border bg-card":r==="info","border-error bg-error/30":r==="error","border-success bg-success/30":r==="success","border-warning bg-warning/30":r==="warning"}),children:(0,Ve.jsx)(Q,{content:t,enableGutter:!1,enableProse:!1})})});var qe=require("@radix-ui/react-slot"),Ze=require("class-variance-authority"),Xe=B(require("react")),sr=(0,Ze.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),z=Xe.forwardRef(({asChild:e=!1,className:t,size:r,variant:a,...s},o)=>(0,Ve.jsx)(e?qe.Slot:"button",{className:p(sr({className:t,size:r,variant:a})),ref:o,...s}));z.displayName="Button";var ye=B(require("next/link")),oe=e=>{let{type:t,appearance:r="inline",children:a,className:s,label:o,newTab:i,reference:n,size:c,url:m}=e,h=t==="reference"&&typeof(n==null?void 0:n.value)=="object"&&n.value.slug?`${(n==null?void 0:n.relationTo)!=="pages"?`/${n==null?void 0:n.relationTo}`:""}/${n.value.slug}`:m;if(!h)return null;let x=r==="link"?"clear":c,A=i?{rel:"noopener noreferrer",target:"_blank"}:{};return r==="inline"?(0,Ve.jsxs)(ye.default,{className:p(s),href:h||m||"",...A,children:[o&&o,a&&a]}):(0,Ve.jsx)(z,{asChild:!0,className:s,size:x,variant:r,children:(0,Ve.jsxs)(ye.default,{className:p(s),href:h||m||"",...A,children:[o&&o,a&&a]})})};var $e=({links:e,richText:t})=>(0,Ve.jsx)("div",{className:"container",children:(0,Ve.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,Ve.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,Ve.jsx)(Q,{className:"mb-0",content:t,enableGutter:!1})}),(0,Ve.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:r},a)=>(0,Ve.jsx)(oe,{size:"lg",...r},a))})]})});var ae=require("prism-react-renderer");var et=require("lucide-react"),tt=require("react");function rt({code:e}){let[t,r]=(0,tt.useState)("Copy");function a(){t==="Copy"&&(r(()=>"Copied!"),setTimeout(()=>{r(()=>"Copy")},1e3))}return(0,Ve.jsx)("div",{className:"flex justify-end align-middle",children:(0,Ve.jsxs)(z,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),a()},children:[(0,Ve.jsx)("p",{children:t}),(0,Ve.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,Ve.jsx)(et.ClipboardCopy,{})})]})})}var ot=({code:e,language:t=""})=>e?(0,Ve.jsx)(ae.Highlight,{code:e,language:t,theme:ae.themes.vsDark,children:({getLineProps:r,getTokenProps:a,tokens:s})=>(0,Ve.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[s.map((o,i)=>(0,Ve.jsxs)("div",{...r({className:"table-row",line:o}),children:[(0,Ve.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:i+1}),(0,Ve.jsx)("span",{className:"table-cell pl-4",children:o.map((n,c)=>(0,Ve.jsx)("span",{...a({token:n})},c))})]},i)),(0,Ve.jsx)(rt,{code:e})]})}):null;var at=({className:e,code:t,language:r})=>(0,Ve.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Ve.jsx)(ot,{code:t,language:r})});var nt=B(require("next/image"));var st=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var se=()=>{if(st){let e=window.location.protocol,t=window.location.hostname,r=window.location.port;return`${e}//${t}${r?`:${r}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var nr={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},ir="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABchJREFUWEdtlwtTG0kMhHtGM7N+AAdcDsjj///EBLzenbtuadbLJaZUTlHB+tRqSesETB3IABqQG1KbUFqDlQorBSmboqeEBcC1d8zrCixXYGZcgMsFmH8B+AngHdurAmXKOE8nHOoBrU6opcGswPi5KSP9CcBaQ9kACJH/ALAA1xm4zMD8AczvQCcAQeJVAZsy7nYApTSUzwCHUKACeUJi9TsFci7AHmDtuHYqQIC9AgQYKnSwNAig4NyOOwXq/xU47gDYggarjIpsRSEA3Fqw7AGkwgW4fgALAdiC2btKgNZwbgdMbEFpqFR2UyCR8xwAhf8bUHIGk1ckMyB5C1YkeWAdAPQBAeiD6wVYPoD1HUgXwFagZAGc6oSpTmilopoD5GzISQD3odcNIFca0BUQQM5YA2DpHV0AYURBDIAL0C+ugC0C4GedSsVUmwC8/4w8TPiwU6AClJ5RWL1PgQNkrABWdKB3YF3cBwRY5lsI4ApkKpCQi+FIgFJU/TDgDuAxAAwonJuKpGD1rkCXCR1ALyrAUSSEQAhwBdYZ6DPAgSUA2c1wKIZmRcHxMzMYR9DH8NlbkAwwApSAcABwBwTAbb6owAr0AFiZPILVEyCtMmK2jCkTwFDNUNj7nJETQx744gCUmgkZVGJUHyakEZE4W91jtGFA9KsD8Z3JFYDlhGYZLWcllwJMnplcPy+csFAgAAaIDOgeuAGoB96GLZg4kmtfMjnr6ig5oSoySsoy3ya/FMivXZWxwr0KIf9nACbfqcBEgmBSAtAlIT83R+70IWpyACamIjf5E1Iqb9ECVmnoI/FvAIRk8s2J0Y5IquQDgB+5wpScw5AUTC75VTmTs+72NUzoCvQIaAXv5Q8PDAZKLD+MxLv3RFE7KlsQChgBIlKiCv5ByaZv3gJZNm8AnVMhAN+EjrtTYQMICJpu6/0aiQnhClANlz+Bw0cIWa8ev0sBrtrhAyaXEnrfGfATQJiRKih5vKeOHNXXPFrgyamAADh0Q4F2/sESojomDS9o9k0b0H83xjB8qL+JNoTjN+enjpaBpingRh4e8MSugudM030A8FeqMI6PFIgNyPehkpZWGFEAARIQdH5LcAAqIACHkAJqg4OoBccHAuz76wr4BbzFOEa8iBuAZB8AtJHLP2VgMgJw/EIBowo7HxCAH3V6dAXEE/vZ5aZIA8BP8RKhm7Cp8BnAMnAQADdgQDA520AVIpScP+enHz0Gwp25h4i2dPg5FkDXrbsdJikQwXuWgaM5gEMk1AgH4DKKFjDf3bMD+FjEeIxLlRKYnBk2BbquvSDCAQ4gwZiMAAmH4gBTyRtEsYxi7gP6QSrc//39BrDNqG8rtYTmC4BV1SfMhOhaumFCT87zy4pPhQBZEK1kQVRjJBBi7AOlePgyAPYjwlvtagx9e/dnQraAyS894TIkkAIEYMKEc8k4EqJ68lZ5jjNqcQC2QteQOf7659umwBgPybNtK4dg9WvnMyFwXYGP7uEO1lwJgAnPNeMYMVXbIIYKFioI4PGFt+BWPVfmWJdjW2lTUnLGCswECAgaUy86iwA1464ajo0QhgMBFGyBoZahANsMpMfXr1JA1SN29m5lqgXj+UPV85uRA7yv/KYUO4Tk7Hc1AZwbIRzg0AyNj2UlAMwfSLSMnl7fdAbcxHuA27YaAMvaQ4GOjwX4RTUGAG8Ge14N963g1AynqUiFqRX9noasxT4b8entNRQYyamk/3tYcHsO7R3XJRRYOn4tw4iUnwBM5gDnySGOreAwAGo8F9IDHEcq8Pz2Kg/oXCpuIL6tOPD8LsDn0ABYQoGFRowlsAEUPPDrGAGowAbgKsgDMmE8mDy/vXQ9IAwI7u4wta+gAdAdgB64Ah9SgD4IgGKhwACoAjgNgFDhtxY8f33ZTMjqdTAiHMBPrn8ZWkEfzFdX4Oc1AHg3+ADbvN8PU8WdFKg4Tt6CQy2+D4YHaMT/JP4XzbAq98cPDIUAAAAASUVORK5CYII=",it=e=>{let{alt:t,fill:r,imgClassName:a,priority:s,resource:o,size:i,src:n,loading:c}=e,m,h,x=t,A=n||"";if(!A&&o&&typeof o=="object"){let{alt:g,filename:y,height:C,url:k,width:E}=o;m=E,h=C,x=g||"",A=`${se()}${k}`}let v=c||"lazy",w=i||Object.entries(nr).map(([,g])=>`(max-width: ${g}px) ${g*2}w`).join(", ");return(0,Ve.jsx)("picture",{children:(0,Ve.jsx)(nt.default,{alt:x||"",className:p(a),fill:r,height:r?void 0:h,placeholder:"blur",blurDataURL:ir,priority:v!=="lazy"&&s,quality:100,loading:v,sizes:w,src:A,width:r?void 0:m})})};var lt=e=>{let{onClick:t,resource:r,videoClassName:a}=e,s=(0,tt.useRef)(null);if((0,tt.useEffect)(()=>{let{current:o}=s;o&&o.addEventListener("suspend",()=>{})},[]),r&&typeof r=="object"){let{filename:o}=r;return(0,Ve.jsx)("video",{autoPlay:!0,className:p(a),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:s,children:(0,Ve.jsx)("source",{src:`${se()}/media/${o}`})})}return null};var dt=e=>{var i;let{className:t,htmlElement:r="div",resource:a}=e,s=typeof a=="object"&&((i=a==null?void 0:a.mimeType)==null?void 0:i.includes("video"));return(0,Ve.jsx)(r||tt.Fragment,{...r!==null?{className:t}:{},children:s?(0,Ve.jsx)(lt,{...e}):(0,Ve.jsx)(it,{...e})})};var pt=e=>{let{className:t,enableGutter:r=!0,imgClassName:a,media:s,staticImage:o}=e;return(0,Ve.jsx)("div",{className:p("",{container:r},t),children:(0,Ve.jsx)(dt,{imgClassName:p("border border-border rounded-[0.8rem]",a),resource:s,src:o})})};var ce=B(require("react"));function le({nodes:e}){return(0,Ve.jsx)(ce.Fragment,{children:e==null?void 0:e.map((t,r)=>{if(t==null)return null;if(t.type==="text"){let o=(0,Ve.jsx)(ce.default.Fragment,{children:t.text},r);return t.format&1&&(o=(0,Ve.jsx)("strong",{children:o},r)),t.format&2&&(o=(0,Ve.jsx)("em",{children:o},r)),t.format&4&&(o=(0,Ve.jsx)("span",{style:{textDecoration:"line-through"},children:o},r)),t.format&8&&(o=(0,Ve.jsx)("span",{style:{textDecoration:"underline"},children:o},r)),t.format&16&&(o=(0,Ve.jsx)("code",{children:t.text},r)),t.format&32&&(o=(0,Ve.jsx)("sub",{children:o},r)),t.format&64&&(o=(0,Ve.jsx)("sup",{children:o},r)),o}if(t.type==="table")return(0,Ve.jsx)("table",{children:(0,Ve.jsx)("tbody",{children:t.children.map((o,i)=>(0,Ve.jsx)("tr",{children:o.children.map((n,c)=>(0,Ve.jsx)("td",{children:le({nodes:n.children})},c))},i))})},r);let a=o=>{if(o.children==null)return null;if((o==null?void 0:o.type)==="list"&&(o==null?void 0:o.listType)==="check")for(let i of o.children)"checked"in i&&(i!=null&&i.checked||(i.checked=!1));return le({nodes:o.children})},s="children"in t?a(t):"";if(t.type==="block"){let o=t.fields,i=o==null?void 0:o.blockType;if(!o||!i)return null;switch(i){case"cta":return(0,Ve.jsx)($e,{...o},r);case"mediaBlock":return(0,Ve.jsx)(pt,{className:"col-start-1 col-span-3",imgClassName:"m-0",...o,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},r);case"banner":return(0,Ve.jsx)(Je,{className:"col-start-2 mb-4",...o},r);case"code":return(0,Ve.jsx)(at,{className:"col-start-2",...o},r);default:return null}}else switch(t.type){case"linebreak":return(0,Ve.jsx)("br",{className:"col-start-2"},r);case"paragraph":return(0,Ve.jsx)("p",{className:"col-start-2",children:s},r);case"heading":{let o=t==null?void 0:t.tag;return(0,Ve.jsx)(o,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:s},r)}case"list":{let o=t==null?void 0:t.tag;return(0,Ve.jsx)(o,{className:"list col-start-2",children:s},r)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,Ve.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:s},r):(0,Ve.jsx)("li",{value:t==null?void 0:t.value,children:s},r);case"quote":return(0,Ve.jsx)("blockquote",{className:"col-start-2",children:s},r);case"link":{let o=t.fields;return(0,Ve.jsx)(oe,{newTab:!!(o!=null&&o.newTab),reference:o.doc,type:o.linkType==="internal"?"reference":"custom",url:o.url,children:s},r)}default:return null}})})}var Q=({className:e,content:t,enableGutter:r=!0,enableProse:a=!0})=>{var s;return t?(0,Ve.jsx)("div",{className:p({"container ":r,"max-w-none":!r,"mx-auto prose dark:prose-invert ":a},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&le({nodes:(s=t==null?void 0:t.root)==null?void 0:s.children})}):null};var bt=require("next/navigation");var D=B(require("react"));var O=D.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)("div",{ref:r,className:p("rounded-xl border bg-card text-card-foreground shadow",e),...t}));O.displayName="Card";var Z=D.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)("div",{ref:r,className:p("flex flex-col space-y-1.5 p-6",e),...t}));Z.displayName="CardHeader";var X=D.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)("div",{ref:r,className:p("font-semibold leading-none tracking-tight",e),...t}));X.displayName="CardTitle";var lr=D.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)("div",{ref:r,className:p("text-sm text-muted-foreground",e),...t}));lr.displayName="CardDescription";var V=D.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)("div",{ref:r,className:p("p-6 pt-0",e),...t}));V.displayName="CardContent";var cr=D.forwardRef(({className:e,...t},r)=>(0,Ve.jsx)("div",{ref:r,className:p("flex items-center p-6 pt-0",e),...t}));cr.displayName="CardFooter";var To=p("transition-colors duration-400 hover:text-primary ease-in-out");function gt({title:e,links:t}){let r=(0,bt.useSearchParams)(),a=(0,bt.usePathname)(),{replace:s}=(0,bt.useRouter)();function o(i){console.log(i);let n=new URLSearchParams(r);i?n.set("category",i):n.delete("category"),s(`${a}?${n.toString()}`)}return(0,Ve.jsxs)(O,{children:[(0,Ve.jsx)(Z,{children:(0,Ve.jsx)(X,{className:"text-accent",children:e&&e})}),(0,Ve.jsx)(V,{children:t&&t.length>0&&(0,Ve.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Ve.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((i,n)=>(0,Ve.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),o(i.href)},children:[i.label,(0,Ve.jsx)(et.ExternalLink,{className:"ml-1 h-3 w-3"})]},n))})})})]})}var ht=B(require("next/link"));function dr({image:e,name:t,about:r,socialLinks:a}){return!e||!e.src||e.src.length<3||!t?null:(0,Ve.jsx)("div",{className:"et-1 z-10 px-0 pt-0 lg:px-10",children:(0,Ve.jsx)(O,{children:(0,Ve.jsxs)(V,{children:[e&&e.src&&(0,Ve.jsx)(ft.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:Ee,className:"mx-auto et-6 rounded-full object-cover"}),(0,Ve.jsx)("h3",{className:"font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:t}),(0,Ve.jsx)("p",{children:r}),a&&a.length>0&&(0,Ve.jsx)("nav",{"aria-label":"social links",children:(0,Ve.jsx)("ul",{className:"inline-flex items-center divide-x divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:a.map((s,o)=>(0,Ve.jsx)("li",{children:(0,Ve.jsx)(je,{href:s.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:(0,Ve.jsx)("span",{children:s.icon})})},o))})})]})})})}function we({page:e,categoryList:t,edit:r=!1,path:a="/admin/collections/posts/"}){var A;if(!e)return(0,bt.notFound)();let{meta:s,populatedAuthors:o,authors:i,categories:n,content:c,title:m}=e,h={image:{src:s&&s.image&&s.image.url||void 0,alt:s&&s.image&&s.image.alt||void 0},authorName:((A=o==null?void 0:o[0])==null?void 0:A.name)||"",category:n,commentCount:0,title:m,description:(s==null?void 0:s.description)||""},x=i==null?void 0:i.map(v=>{var w,g;return{name:v.name||"",about:"",image:{src:v.profilePicture&&((g=(w=v.profilePicture.sizes)==null?void 0:w.square)==null?void 0:g.url)||"",alt:v.name||"blog author"},socialLinks:[]}});return(0,Ve.jsx)(Oe,{children:(0,Ve.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,Ve.jsx)("div",{children:(0,Ve.jsxs)("div",{className:"[&_p+Ve]:et-4",children:[(0,Ve.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,Ve.jsx)(Q,{content:c,enableGutter:!1})]})}),(0,Ve.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[r&&(0,Ve.jsx)("div",{className:"et-4 lg:-et-10 z-10 px-0 pt-0 lg:px-10",children:(0,Ve.jsxs)(O,{children:[(0,Ve.jsx)(Z,{children:(0,Ve.jsx)(X,{className:"text-accent",children:"Content Actions"})}),(0,Ve.jsxs)(V,{children:[(0,Ve.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,Ve.jsx)(ht.default,{href:`${a}${e.id}`,children:(0,Ve.jsx)(z,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),x&&x.map((v,w)=>(0,Ve.jsx)(dr,{...v},w)),t&&t.links&&(0,Ve.jsx)("div",{className:"et-4 px-0 pt-0 lg:px-10",children:(0,Ve.jsx)(gt,{links:t.links,title:t.title})})]})]})})}var pr={title:"Sections/BlogDetail",component:we,tags:["autodocs"],parameters:{nextjs:{appDirectory:!0},docs:{description:{component:"A card component that displays a service with an icon, title, description, and a link."}}},argTypes:{icon:{control:"text"},title:{control:"text"},description:{control:"text"},slug:{control:"text"}},decorators:[e=>(0,Ve.jsx)(e,{})]},de=e=>(0,Ve.jsx)(we,{...e}),U=de.bind({});U.args={categoryList:{title:"Categories",links:[{label:"Category 1",href:1},{label:"Category 2",href:2},{label:"Category 3",href:3}]},page:{id:2,title:"Test Post 2",content:{root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus lacinia odio vitae vestibulum vestibulum. Cras vehicula, libero a pharetra dictum, urna lectus porttitor lacus, at dapibus justo quam vel metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed non velit nec arcu volutpat dignissim in a lorem.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Proin sagittis sem et elit fringilla, nec fringilla eros maximus. Nulla facilisi. Ut sit amet facilisis lectus. Fusce ornare metus at ante tristique, nec elementum eros fermentum. Integer volutpat magna sed justo tincidunt, sit amet aliquam arcu pellentesque. Phasellus imperdiet mi vitae ligula pharetra, a dignissim velit vehicula.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Suspendisse potenti. Donec malesuada arcu at velit laoreet convallis. Sed at eros vel lacus varius varius nec id metus. Praesent faucibus, orci a varius dapibus, lorem libero convallis est, et consequat libero magna sit amet risus. Maecenas tincidunt erat et felis sodales, nec malesuada sem tincidunt. Duis sed nisl euismod, ullamcorper augue at, rutrum felis.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Aenean Ve ligula ac libero vehicula luctus. Integer ultricies nisl id mi dictum, eget tincidunt augue interdum. Sed eu malesuada erat. Nam fringilla lectus id dolor gravida lacinia. Aliquam erat volutpat. Vestibulum nec ipsum vitae elit dapibus suscipit vel at ipsum.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},relatedPosts:[],categories:[{id:1,title:"Test Category 1",slug:"test-category-1",updatedAt:"2025-01-06T20:16:54.416Z",createdAt:"2025-01-06T20:16:54.416Z",_status:"published"}],meta:{title:"Test Post 1",image:null,description:null},publishedAt:"2025-01-06T20:17:25.595Z",authors:[{id:1,name:"Rob",jobRole:null,profilePicture:null,workHistory:[],certifications:[],areasOfExpertise:[],dateOfBirth:null,joinDate:null,role:"admin",sub:null,updatedAt:"2025-01-06T20:16:54.416Z",createdAt:"2025-01-06T20:16:54.416Z",enableAPIKey:null,apiKey:null,email:"rob@sdsdd.com",loginAttempts:0}],populatedAuthors:[{id:1,name:"Rob Ellison"}],publishedToWebsite:!1,slug:"test-post-2",slugLock:!0,updatedAt:"2025-01-06T20:17:31.465Z",createdAt:"2025-01-06T20:17:27.818Z",_status:"published"}};var yt=de.bind({});yt.args={...U.args,pages:{totalPages:40,page:20}};var At=de.bind({});At.args={...U.args,page:{...U.args.page,categoryList:{title:"Categories"}},categoryList:null};var xt=de.bind({});xt.args={...U.args,page:{...U.args.page,authors:[{id:1,name:"Dave Brown",jobRole:null,profilePicture:null,workHistory:[],certifications:[],areasOfExpertise:[],dateOfBirth:null,joinDate:null,role:"admin",sub:null,updatedAt:"2025-01-06T20:16:54.416Z",createdAt:"2025-01-06T20:16:54.416Z",enableAPIKey:null,apiKey:null,email:""}],populatedAuthors:[{id:1,name:"Dave Brown"}]}};0&&(module.exports={Default,LoadsOfBlogs,NoAuthorImage,NoCategories});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"../chunk-
|
|
1
|
+
import{a as i}from"../chunk-PFG3VUW7.mjs";import"../chunk-KML6U7IE.mjs";import"../chunk-65EMMROH.mjs";import"../chunk-BBLJ3L2P.mjs";import"../chunk-O5BAW5XQ.mjs";import"../chunk-YAH6C5YX.mjs";import"../chunk-ODLDYXPZ.mjs";import"../chunk-QRNJ7O2L.mjs";import"../chunk-7WBETZEV.mjs";import"../chunk-TFWGOEV7.mjs";import"../chunk-763KMQIQ.mjs";import"../chunk-J2VQUYES.mjs";import"../chunk-SJWGFZJ6.mjs";import"../chunk-44TDI42O.mjs";import"../chunk-BOPZHZ27.mjs";import"../chunk-D76EO57Z.mjs";import"../chunk-GLEWUUGS.mjs";import"../chunk-WISCWNL2.mjs";import"../chunk-UESKYRNK.mjs";import"../chunk-NIQ4466A.mjs";import"../chunk-6K2R3OAD.mjs";import"../chunk-D2WXBUVJ.mjs";import{jsx as r}from"react/jsx-runtime";var u={title:"Sections/BlogDetail",component:i,tags:["autodocs"],parameters:{nextjs:{appDirectory:!0},docs:{description:{component:"A card component that displays a service with an icon, title, description, and a link."}}},argTypes:{icon:{control:"text"},title:{control:"text"},description:{control:"text"},slug:{control:"text"}},decorators:[a=>r(a,{})]},e=a=>r(i,{...a}),t=e.bind({});t.args={categoryList:{title:"Categories",links:[{label:"Category 1",href:1},{label:"Category 2",href:2},{label:"Category 3",href:3}]},page:{id:2,title:"Test Post 2",content:{root:{type:"root",format:"",indent:0,version:1,children:[{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus lacinia odio vitae vestibulum vestibulum. Cras vehicula, libero a pharetra dictum, urna lectus porttitor lacus, at dapibus justo quam vel metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed non velit nec arcu volutpat dignissim in a lorem.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Proin sagittis sem et elit fringilla, nec fringilla eros maximus. Nulla facilisi. Ut sit amet facilisis lectus. Fusce ornare metus at ante tristique, nec elementum eros fermentum. Integer volutpat magna sed justo tincidunt, sit amet aliquam arcu pellentesque. Phasellus imperdiet mi vitae ligula pharetra, a dignissim velit vehicula.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Suspendisse potenti. Donec malesuada arcu at velit laoreet convallis. Sed at eros vel lacus varius varius nec id metus. Praesent faucibus, orci a varius dapibus, lorem libero convallis est, et consequat libero magna sit amet risus. Maecenas tincidunt erat et felis sodales, nec malesuada sem tincidunt. Duis sed nisl euismod, ullamcorper augue at, rutrum felis.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[],direction:null,textStyle:"",textFormat:0},{type:"paragraph",format:"",indent:0,version:1,children:[{mode:"normal",text:"Aenean ut ligula ac libero vehicula luctus. Integer ultricies nisl id mi dictum, eget tincidunt augue interdum. Sed eu malesuada erat. Nam fringilla lectus id dolor gravida lacinia. Aliquam erat volutpat. Vestibulum nec ipsum vitae elit dapibus suscipit vel at ipsum.",type:"text",style:"",detail:0,format:0,version:1}],direction:"ltr",textStyle:"",textFormat:0}],direction:"ltr"}},relatedPosts:[],categories:[{id:1,title:"Test Category 1",slug:"test-category-1",updatedAt:"2025-01-06T20:16:54.416Z",createdAt:"2025-01-06T20:16:54.416Z",_status:"published"}],meta:{title:"Test Post 1",image:null,description:null},publishedAt:"2025-01-06T20:17:25.595Z",authors:[{id:1,name:"Rob",jobRole:null,profilePicture:null,workHistory:[],certifications:[],areasOfExpertise:[],dateOfBirth:null,joinDate:null,role:"admin",sub:null,updatedAt:"2025-01-06T20:16:54.416Z",createdAt:"2025-01-06T20:16:54.416Z",enableAPIKey:null,apiKey:null,email:"rob@sdsdd.com",loginAttempts:0}],populatedAuthors:[{id:1,name:"Rob Ellison"}],publishedToWebsite:!1,slug:"test-post-2",slugLock:!0,updatedAt:"2025-01-06T20:17:31.465Z",createdAt:"2025-01-06T20:17:27.818Z",_status:"published"}};var l=e.bind({});l.args={...t.args,pages:{totalPages:40,page:20}};var o=e.bind({});o.args={...t.args,page:{...t.args.page,categoryList:{title:"Categories"}},categoryList:null};var s=e.bind({});s.args={...t.args,page:{...t.args.page,authors:[{id:1,name:"Dave Brown",jobRole:null,profilePicture:null,workHistory:[],certifications:[],areasOfExpertise:[],dateOfBirth:null,joinDate:null,role:"admin",sub:null,updatedAt:"2025-01-06T20:16:54.416Z",createdAt:"2025-01-06T20:16:54.416Z",enableAPIKey:null,apiKey:null,email:""}],populatedAuthors:[{id:1,name:"Dave Brown"}]}};export{t as Default,l as LoadsOfBlogs,s as NoAuthorImage,o as NoCategories,u as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";var Ve=Object.create;var j=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var Ue=Object.getOwnPropertyNames;var We=Object.getPrototypeOf,_e=Object.prototype.hasOwnProperty;var je=(e,t)=>{for(var r in t)j(e,r,{get:t[r],enumerable:!0})},be=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ue(t))!_e.call(e,a)&&a!==r&&j(e,a,{get:()=>t[a],enumerable:!(o=Oe(t,a))||o.enumerable});return e};var Z=(e,t,r)=>(r=e!=null?Ve(We(e)):{},be(t||!e||!e.__esModule?j(r,"default",{value:e,enumerable:!0}):r,e)),Ye=e=>be(j({},"__esModule",{value:!0}),e);var zt={};je(zt,{BlogListSection:()=>Tt});module.exports=Ye(zt);var Ne=require("clsx");var te="-",qe=e=>{let t=Ke(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let n=i.split(te);return n[0]===""&&n.length!==1&&n.shift(),ye(n,t)||Je(i)},getConflictingClassGroupIds:(i,n)=>{let c=r[i]||[];return n&&o[i]?[...c,...o[i]]:c}}},ye=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?ye(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let s=e.join(te);return(i=t.validators.find(({validator:n})=>n(s)))==null?void 0:i.classGroupId},he=/^\[(.+)\]$/,Je=e=>{if(he.test(e)){let t=he.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ke=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ze(Object.entries(e.classGroups),r).forEach(([s,i])=>{ee(i,o,s,t)}),o},ee=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let s=a===""?t:xe(t,a);s.classGroupId=r;return}if(typeof a=="function"){if(Xe(a)){ee(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([s,i])=>{ee(i,xe(t,s),r,o)})})},xe=(e,t)=>{let r=e;return t.split(te).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Xe=e=>e.isThemeGetter,Ze=(e,t)=>t?e.map(([r,o])=>{let a=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,n])=>[t+i,n])):s);return[r,a]}):e,Qe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(s,i)=>{r.set(s,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return a(s,i),i},set(s,i){r.has(s)?r.set(s,i):a(s,i)}}},ve="!",et=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],s=t.length,i=n=>{let c=[],d=0,b=0,p;for(let h=0;h<n.length;h++){let v=n[h];if(d===0){if(v===a&&(o||n.slice(h,h+s)===t)){c.push(n.slice(b,h)),b=h+s;continue}if(v==="/"){p=h;continue}}v==="["?d++:v==="]"&&d--}let f=c.length===0?n:n.substring(b),P=f.startsWith(ve),N=P?f.substring(1):f,y=p&&p>b?p-b:void 0;return{modifiers:c,hasImportantModifier:P,baseClassName:N,maybePostfixModifierPosition:y}};return r?n=>r({className:n,parseClassName:i}):i},tt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},rt=e=>({cache:Qe(e.cacheSize),parseClassName:et(e),...qe(e)}),ot=/\s+/,nt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,s=[],i=e.trim().split(ot),n="";for(let c=i.length-1;c>=0;c-=1){let d=i[c],{modifiers:b,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:P}=r(d),N=!!P,y=o(N?f.substring(0,P):f);if(!y){if(!N){n=d+(n.length>0?" "+n:n);continue}if(y=o(f),!y){n=d+(n.length>0?" "+n:n);continue}N=!1}let h=tt(b).join(":"),v=p?h+ve:h,w=v+y;if(s.includes(w))continue;s.push(w);let B=a(y,N);for(let L=0;L<B.length;++L){let U=B[L];s.push(v+U)}n=d+(n.length>0?" "+n:n)}return n};function st(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=we(t))&&(o&&(o+=" "),o+=r);return o}var we=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=we(e[o]))&&(r&&(r+=" "),r+=t);return r};function at(e,...t){let r,o,a,s=i;function i(c){let d=t.reduce((b,p)=>p(b),e());return r=rt(d),o=r.cache.get,a=r.cache.set,s=n,n(c)}function n(c){let d=o(c);if(d)return d;let b=nt(c,r);return a(c,b),b}return function(){return s(st.apply(null,arguments))}}var u=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ce=/^\[(?:([a-z-]+):)?(.+)\]$/i,it=/^\d+\/\d+$/,lt=new Set(["px","full","screen"]),ct=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dt=/\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$/,pt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ut=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,M=e=>D(e)||lt.has(e)||it.test(e),T=e=>$(e,"length",wt),D=e=>!!e&&!Number.isNaN(Number(e)),Q=e=>$(e,"number",D),V=e=>!!e&&Number.isInteger(Number(e)),mt=e=>e.endsWith("%")&&D(e.slice(0,-1)),l=e=>Ce.test(e),z=e=>ct.test(e),ft=new Set(["length","size","percentage"]),bt=e=>$(e,ft,ke),ht=e=>$(e,"position",ke),xt=new Set(["image","url"]),yt=e=>$(e,xt,kt),vt=e=>$(e,"",Ct),O=()=>!0,$=(e,t,r)=>{let o=Ce.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},wt=e=>dt.test(e)&&!pt.test(e),ke=()=>!1,Ct=e=>ut.test(e),kt=e=>gt.test(e);var Pt=()=>{let e=u("colors"),t=u("spacing"),r=u("blur"),o=u("brightness"),a=u("borderColor"),s=u("borderRadius"),i=u("borderSpacing"),n=u("borderWidth"),c=u("contrast"),d=u("grayscale"),b=u("hueRotate"),p=u("invert"),f=u("gap"),P=u("gradientColorStops"),N=u("gradientColorStopPositions"),y=u("inset"),h=u("margin"),v=u("opacity"),w=u("padding"),B=u("saturate"),L=u("scale"),U=u("sepia"),ce=u("skew"),de=u("space"),pe=u("translate"),q=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto",l,t],m=()=>[l,t],ue=()=>["",M,T],W=()=>["auto",D,l],ge=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_=()=>["solid","dashed","dotted","double","none"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>["start","end","center","between","around","evenly","stretch"],F=()=>["","0",l],fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[D,l];return{cacheSize:500,separator:":",theme:{colors:[O],spacing:[M,T],blur:["none","",z,l],brightness:R(),borderColor:[e],borderRadius:["none","","full",z,l],borderSpacing:m(),borderWidth:ue(),contrast:R(),grayscale:F(),hueRotate:R(),invert:F(),gap:m(),gradientColorStops:[e],gradientColorStopPositions:[mt,T],inset:K(),margin:K(),opacity:R(),padding:m(),saturate:R(),scale:R(),sepia:F(),skew:R(),space:m(),translate:m()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[z]}],"break-after":[{"break-after":fe()}],"break-before":[{"break-before":fe()}],"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:[...ge(),l]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],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",V,l]}],basis:[{basis:K()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",V,l]}],"grid-cols":[{"grid-cols":[O]}],"col-start-end":[{col:["auto",{span:["full",V,l]},l]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[O]}],"row-start-end":[{row:["auto",{span:[V,l]},l]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...X()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...X(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...X(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[de]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[de]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,t]}],"min-w":[{"min-w":[l,t,"min","max","fit"]}],"max-w":[{"max-w":[l,t,"none","full","min","max","fit","prose",{screen:[z]},z]}],h:[{h:[l,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,t,"auto","min","max","fit"]}],"font-size":[{text:["base",z,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Q]}],"font-family":[{font:[O]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",D,Q]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",M,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",M,T]}],"underline-offset":[{"underline-offset":["auto",M,l]}],"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:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ge(),ht]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",bt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},yt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[..._(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:_()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",..._()]}],"outline-offset":[{"outline-offset":[M,l]}],"outline-w":[{outline:[M,T]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[M,T]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",z,vt]}],"shadow-color":[{shadow:[O]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...me(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":me()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",z,l]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[p]}],saturate:[{saturate:[B]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[B]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[V,l]}],"translate-x":[{"translate-x":[pe]}],"translate-y":[{"translate-y":[pe]}],"skew-x":[{"skew-x":[ce]}],"skew-y":[{"skew-y":[ce]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],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",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[M,T,Q]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Pe=at(Pt);function x(...e){return Pe((0,Ne.clsx)(e))}var Re=require("react/jsx-runtime");function Se({children:e,isFluid:t=!1,isNoPadding:r=!1,className:o=""}){let a=x("container",t&&"full-width",r&&"no-padding",o);return(0,Re.jsx)("div",{className:a,children:e})}var Te=Z(require("next/image"));var Me=e=>{let t=e?new Date(e):new Date,r=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),a=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${r} ${o}${(i=>{if(i>3&&i<21)return"th";switch(i%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(o)} ${a}`};function ze({blogs:e}){return(0,Re.jsx)("div",{children:e&&e.length>0&&(0,Re.jsx)("div",{className:"grid gap-10 lg:gap-10",children:e.map((t,r)=>(0,Re.jsx)(Nt,{post:t,id:r},r))})})}var Nt=({post:e,id:t})=>{let{slug:r,image:o,authors:a,categories:s,title:i,description:n,publishedAt:c}=e;return(0,Re.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,Re.jsxs)("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0",children:[o&&(0,Re.jsx)(Te.default,{src:o.src,alt:o.alt,width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,Re.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,Re.jsxs)("div",{children:[(0,Re.jsxs)("div",{className:"flex items-center gap-x-4 text-xs",children:[(0,Re.jsx)("time",{dateTime:e.publishedAt,className:"text-foreground",children:Me(e.publishedAt)}),e.categories&&e.categories.map((d,b)=>(0,Re.jsx)("a",{href:`#${d}`,className:"relative z-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:d},b))]}),(0,Re.jsxs)("div",{className:"group relative max-w-xl",children:[(0,Re.jsx)("h3",{className:"mt-3 text-lg/6 font-semibold text-accent group-hover:text-xl/6",children:(0,Re.jsxs)("a",{href:e.slug,children:[(0,Re.jsx)("span",{className:"absolute inset-0"}),e.title]})}),(0,Re.jsx)("p",{className:"mt-5 text-sm/6 text-foreground",children:e.description})]}),(0,Re.jsx)("div",{className:"mt-6 flex flex-wrap lg:border-t gap-y-2 border-gray-200 dark:border-gray-700 pt-6",children:a&&a.map((d,b)=>(0,Re.jsxs)("div",{className:"relative flex items-center gap-x-4",children:[d.image?(0,Re.jsx)("img",{alt:d.image.alt,src:d.image.src,className:"size-10 rounded-full bg-gray-50"}):(0,Re.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,Re.jsx)("div",{className:"text-sm/6",children:(0,Re.jsxs)("p",{className:"text-foreground pr-6",children:[(0,Re.jsx)("span",{className:"absolute inset-0"}),d.name]})})]},b))})]})]},t)};var E=require("next/navigation");var A=Z(require("react"));var re=A.forwardRef(({className:e,...t},r)=>(0,Re.jsx)("div",{ref:r,className:x("rounded-xl border bg-card text-card-foreground shadow",e),...t}));re.displayName="Card";var oe=A.forwardRef(({className:e,...t},r)=>(0,Re.jsx)("div",{ref:r,className:x("flex flex-col space-y-1.5 p-6",e),...t}));oe.displayName="CardHeader";var ne=A.forwardRef(({className:e,...t},r)=>(0,Re.jsx)("div",{ref:r,className:x("font-semibold leading-none tracking-tight",e),...t}));ne.displayName="CardTitle";var St=A.forwardRef(({className:e,...t},r)=>(0,Re.jsx)("div",{ref:r,className:x("text-sm text-muted-foreground",e),...t}));St.displayName="CardDescription";var se=A.forwardRef(({className:e,...t},r)=>(0,Re.jsx)("div",{ref:r,className:x("p-6 pt-0",e),...t}));se.displayName="CardContent";var Rt=A.forwardRef(({className:e,...t},r)=>(0,Re.jsx)("div",{ref:r,className:x("flex items-center p-6 pt-0",e),...t}));Rt.displayName="CardFooter";var Le=require("lucide-react"),Yt=x("transition-colors duration-400 hover:text-primary ease-in-out");function Ae({title:e,links:t}){let r=(0,E.useSearchParams)(),o=(0,E.usePathname)(),{replace:a}=(0,E.useRouter)();function s(i){console.log(i);let n=new URLSearchParams(r);i?n.set("category",i):n.delete("category"),a(`${o}?${n.toString()}`)}return(0,Re.jsxs)(re,{children:[(0,Re.jsx)(oe,{children:(0,Re.jsx)(ne,{className:"text-accent",children:e&&e})}),(0,Re.jsx)(se,{children:t&&t.length>0&&(0,Re.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Re.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((i,n)=>(0,Re.jsxs)("li",{className:"flex items-center text-sm text-primary first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(i.href)},children:[i.label,(0,Re.jsx)(Le.ExternalLink,{className:"ml-1 h-3 w-3"})]},n))})})})]})}var Ie=require("@radix-ui/react-slot"),De=require("class-variance-authority"),$e=Z(require("react")),Mt=(0,De.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),ae=$e.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...a},s)=>(0,Re.jsx)(e?Ie.Slot:"button",{className:x(Mt({className:t,size:r,variant:o})),ref:s,...a}));ae.displayName="Button";var Y=require("react-icons/fa6"),Ge=require("react"),ie=x("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function He({pages:e}){let t=(0,E.useSearchParams)(),r=(0,E.usePathname)(),{replace:o}=(0,E.useRouter)(),{totalPages:a,page:s}=e,[i,n]=(0,Ge.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&i.start>1?n(f=>({start:f.start-1,end:f.end-1})):p==="right"&&i.end<a&&n(f=>({start:f.start+1,end:f.end+1}))};function d(p){let f=new URLSearchParams(t);p?f.set("page",p):f.delete("page"),o(`${r}?${f.toString()}`)}if(a<=1)return null;let b=[];for(let p=i.start;p<=i.end;p++)b.push(p);return(0,Re.jsx)("div",{className:"mt-12",children:(0,Re.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[i.start>1&&(0,Re.jsx)("li",{children:(0,Re.jsx)("button",{className:x(ie,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,Re.jsx)(Y.FaArrowLeft,{})})}),b.map((p,f)=>(0,Re.jsx)("li",{children:(0,Re.jsx)("a",{className:x(ie,p===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:P=>{P.preventDefault(),d(p.toString())},children:p})},f)),i.end<a&&(0,Re.jsx)("li",{children:(0,Re.jsx)("button",{className:x(ie,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,Re.jsx)(Y.FaArrowRight,{})})})]})})}function Fe({types:e}){let[t,r]=(0,Ge.useState)(e&&e[0].href),o=(0,E.useSearchParams)(),a=(0,E.usePathname)(),{replace:s}=(0,E.useRouter)();function i(n){let c=new URLSearchParams(o);n?c.set("type",n):c.delete("type"),r(n),s(`${a}?${c.toString()}`)}return(0,Re.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((n,c)=>(0,Re.jsx)(ae,{variant:n.href===t?"default":"ghost",className:x("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",n.href===t&&"bg-accent text-accent-foreground"),onClick:()=>i(n.href),children:n.label},c))})}function Tt({blogs:e,pages:t,categories:r,types:o}){return(0,Re.jsx)("section",{children:(0,Re.jsx)(Se,{children:(0,Re.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,Re.jsxs)("div",{children:[o&&(0,Re.jsx)(Fe,{types:o}),(0,Re.jsx)(ze,{blogs:e}),(0,Re.jsx)(He,{pages:t})]}),(0,Re.jsx)("div",{className:"grid gap-30px w-full self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:(0,Re.jsx)("div",{className:"lg:-mt-24 w-full",children:r&&r.links&&(0,Re.jsx)(Ae,{links:r.links,title:r.title})})})]})})})}0&&(module.exports={BlogListSection});
|
|
4
|
+
"use strict";var Ve=Object.create;var j=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var Ue=Object.getOwnPropertyNames;var We=Object.getPrototypeOf,_e=Object.prototype.hasOwnProperty;var je=(e,t)=>{for(var r in t)j(e,r,{get:t[r],enumerable:!0})},be=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ue(t))!_e.call(e,a)&&a!==r&&j(e,a,{get:()=>t[a],enumerable:!(o=Oe(t,a))||o.enumerable});return e};var Z=(e,t,r)=>(r=e!=null?Ve(We(e)):{},be(t||!e||!e.__esModule?j(r,"default",{value:e,enumerable:!0}):r,e)),Ye=e=>be(j({},"__esModule",{value:!0}),e);var zt={};je(zt,{BlogListSection:()=>Tt});module.exports=Ye(zt);var Ne=require("clsx");var te="-",qe=e=>{let t=Ke(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let n=i.split(te);return n[0]===""&&n.length!==1&&n.shift(),ye(n,t)||Je(i)},getConflictingClassGroupIds:(i,n)=>{let c=r[i]||[];return n&&o[i]?[...c,...o[i]]:c}}},ye=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),a=o?ye(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;let s=e.join(te);return(i=t.validators.find(({validator:n})=>n(s)))==null?void 0:i.classGroupId},he=/^\[(.+)\]$/,Je=e=>{if(he.test(e)){let t=he.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ke=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ze(Object.entries(e.classGroups),r).forEach(([s,i])=>{ee(i,o,s,t)}),o},ee=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){let s=a===""?t:xe(t,a);s.classGroupId=r;return}if(typeof a=="function"){if(Xe(a)){ee(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([s,i])=>{ee(i,xe(t,s),r,o)})})},xe=(e,t)=>{let r=e;return t.split(te).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Xe=e=>e.isThemeGetter,Ze=(e,t)=>t?e.map(([r,o])=>{let a=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,n])=>[t+i,n])):s);return[r,a]}):e,Qe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,a=(s,i)=>{r.set(s,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return a(s,i),i},set(s,i){r.has(s)?r.set(s,i):a(s,i)}}},ve="!",et=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],s=t.length,i=n=>{let c=[],d=0,b=0,p;for(let h=0;h<n.length;h++){let v=n[h];if(d===0){if(v===a&&(o||n.slice(h,h+s)===t)){c.push(n.slice(b,h)),b=h+s;continue}if(v==="/"){p=h;continue}}v==="["?d++:v==="]"&&d--}let f=c.length===0?n:n.substring(b),P=f.startsWith(ve),N=P?f.substring(1):f,y=p&&p>b?p-b:void 0;return{modifiers:c,hasImportantModifier:P,baseClassName:N,maybePostfixModifierPosition:y}};return r?n=>r({className:n,parseClassName:i}):i},tt=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},rt=e=>({cache:Qe(e.cacheSize),parseClassName:et(e),...qe(e)}),ot=/\s+/,nt=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,s=[],i=e.trim().split(ot),n="";for(let c=i.length-1;c>=0;c-=1){let d=i[c],{modifiers:b,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:P}=r(d),N=!!P,y=o(N?f.substring(0,P):f);if(!y){if(!N){n=d+(n.length>0?" "+n:n);continue}if(y=o(f),!y){n=d+(n.length>0?" "+n:n);continue}N=!1}let h=tt(b).join(":"),v=p?h+ve:h,w=v+y;if(s.includes(w))continue;s.push(w);let B=a(y,N);for(let L=0;L<B.length;++L){let U=B[L];s.push(v+U)}n=d+(n.length>0?" "+n:n)}return n};function st(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=we(t))&&(o&&(o+=" "),o+=r);return o}var we=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=we(e[o]))&&(r&&(r+=" "),r+=t);return r};function at(e,...t){let r,o,a,s=i;function i(c){let d=t.reduce((b,p)=>p(b),e());return r=rt(d),o=r.cache.get,a=r.cache.set,s=n,n(c)}function n(c){let d=o(c);if(d)return d;let b=nt(c,r);return a(c,b),b}return function(){return s(st.apply(null,arguments))}}var u=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ce=/^\[(?:([a-z-]+):)?(.+)\]$/i,it=/^\d+\/\d+$/,lt=new Set(["px","full","screen"]),ct=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dt=/\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$/,pt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ut=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,M=e=>D(e)||lt.has(e)||it.test(e),T=e=>$(e,"length",wt),D=e=>!!e&&!Number.isNaN(Number(e)),Q=e=>$(e,"number",D),V=e=>!!e&&Number.isInteger(Number(e)),mt=e=>e.endsWith("%")&&D(e.slice(0,-1)),l=e=>Ce.test(e),z=e=>ct.test(e),ft=new Set(["length","size","percentage"]),bt=e=>$(e,ft,ke),ht=e=>$(e,"position",ke),xt=new Set(["image","url"]),yt=e=>$(e,xt,kt),vt=e=>$(e,"",Ct),O=()=>!0,$=(e,t,r)=>{let o=Ce.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},wt=e=>dt.test(e)&&!pt.test(e),ke=()=>!1,Ct=e=>ut.test(e),kt=e=>gt.test(e);var Pt=()=>{let e=u("colors"),t=u("spacing"),r=u("blur"),o=u("brightness"),a=u("borderColor"),s=u("borderRadius"),i=u("borderSpacing"),n=u("borderWidth"),c=u("contrast"),d=u("grayscale"),b=u("hueRotate"),p=u("invert"),f=u("gap"),P=u("gradientColorStops"),N=u("gradientColorStopPositions"),y=u("inset"),h=u("margin"),v=u("opacity"),w=u("padding"),B=u("saturate"),L=u("scale"),U=u("sepia"),ce=u("skew"),de=u("space"),pe=u("translate"),q=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto",l,t],m=()=>[l,t],ue=()=>["",M,T],W=()=>["auto",D,l],ge=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_=()=>["solid","dashed","dotted","double","none"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>["start","end","center","between","around","evenly","stretch"],F=()=>["","0",l],fe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[D,l];return{cacheSize:500,separator:":",theme:{colors:[O],spacing:[M,T],blur:["none","",z,l],brightness:R(),borderColor:[e],borderRadius:["none","","full",z,l],borderSpacing:m(),borderWidth:ue(),contrast:R(),grayscale:F(),hueRotate:R(),invert:F(),gap:m(),gradientColorStops:[e],gradientColorStopPositions:[mt,T],inset:K(),margin:K(),opacity:R(),padding:m(),saturate:R(),scale:R(),sepia:F(),skew:R(),space:m(),translate:m()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[z]}],"break-after":[{"break-after":fe()}],"break-before":[{"break-before":fe()}],"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:[...ge(),l]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],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",V,l]}],basis:[{basis:K()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",V,l]}],"grid-cols":[{"grid-cols":[O]}],"col-start-end":[{col:["auto",{span:["full",V,l]},l]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[O]}],"row-start-end":[{row:["auto",{span:[V,l]},l]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...X()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...X(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...X(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[de]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[de]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,t]}],"min-w":[{"min-w":[l,t,"min","max","fit"]}],"max-w":[{"max-w":[l,t,"none","full","min","max","fit","prose",{screen:[z]},z]}],h:[{h:[l,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,t,"auto","min","max","fit"]}],"font-size":[{text:["base",z,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Q]}],"font-family":[{font:[O]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",D,Q]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",M,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",M,T]}],"underline-offset":[{"underline-offset":["auto",M,l]}],"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:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ge(),ht]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",bt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},yt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[..._(),"hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:_()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",..._()]}],"outline-offset":[{"outline-offset":[M,l]}],"outline-w":[{outline:[M,T]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[M,T]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",z,vt]}],"shadow-color":[{shadow:[O]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...me(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":me()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",z,l]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[p]}],saturate:[{saturate:[B]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[B]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[V,l]}],"translate-x":[{"translate-x":[pe]}],"translate-y":[{"translate-y":[pe]}],"skew-x":[{"skew-x":[ce]}],"skew-y":[{"skew-y":[ce]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],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",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[M,T,Q]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Pe=at(Pt);function x(...e){return Pe((0,Ne.clsx)(e))}var Re=require("react/jsx-runtime");function Se({children:e,isFluid:t=!1,isNoPadding:r=!1,className:o=""}){let a=x("container",t&&"full-width",r&&"no-padding",o);return(0,Re.jsx)("div",{className:a,children:e})}var Te=Z(require("next/image"));var Me=e=>{let t=e?new Date(e):new Date,r=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),a=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${r} ${o}${(i=>{if(i>3&&i<21)return"th";switch(i%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(o)} ${a}`};function ze({blogs:e}){return(0,Re.jsx)("div",{children:e&&e.length>0&&(0,Re.jsx)("div",{className:"grid gap-10 lg:gap-10",children:e.map((t,r)=>(0,Re.jsx)(Nt,{post:t,id:r},r))})})}var Nt=({post:e,id:t})=>{let{slug:r,image:o,authors:a,categories:s,title:i,description:n,publishedAt:c}=e;return(0,Re.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,Re.jsxs)("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0",children:[o&&(0,Re.jsx)(Te.default,{src:o.src,alt:o.alt,width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,Re.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,Re.jsxs)("div",{children:[(0,Re.jsxs)("div",{className:"flex items-center gap-x-4 text-xs",children:[(0,Re.jsx)("time",{dateTime:e.publishedAt,className:"text-foreground",children:Me(e.publishedAt)}),e.categories&&e.categories.map((d,b)=>(0,Re.jsx)("a",{href:`#${d}`,className:"relative z-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:d},b))]}),(0,Re.jsxs)("div",{className:"group relative max-w-xl",children:[(0,Re.jsx)("h3",{className:"mt-3 text-lg/6 font-semibold text-accent group-hover:text-xl/6",children:(0,Re.jsxs)("a",{href:e.slug,children:[(0,Re.jsx)("span",{className:"absolute inset-0"}),e.title]})}),(0,Re.jsx)("p",{className:"mt-5 text-sm/6 text-foreground",children:e.description})]}),(0,Re.jsx)("div",{className:"mt-6 flex flex-wrap lg:border-t gap-y-2 border-gray-200 dark:border-gray-700 pt-6",children:a&&a.map((d,b)=>(0,Re.jsxs)("div",{className:"relative flex items-center gap-x-4",children:[d.image?(0,Re.jsx)("img",{alt:d.image.alt,src:d.image.src,className:"size-10 rounded-full bg-gray-50"}):(0,Re.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,Re.jsx)("div",{className:"text-sm/6",children:(0,Re.jsxs)("p",{className:"text-foreground pr-6",children:[(0,Re.jsx)("span",{className:"absolute inset-0"}),d.name]})})]},b))})]})]},t)};var E=require("next/navigation");var A=Z(require("react"));var re=A.forwardRef(({className:e,...t},r)=>(0,Re.jsx)("div",{ref:r,className:x("rounded-xl border bg-card text-card-foreground shadow",e),...t}));re.displayName="Card";var oe=A.forwardRef(({className:e,...t},r)=>(0,Re.jsx)("div",{ref:r,className:x("flex flex-col space-y-1.5 p-6",e),...t}));oe.displayName="CardHeader";var ne=A.forwardRef(({className:e,...t},r)=>(0,Re.jsx)("div",{ref:r,className:x("font-semibold leading-none tracking-tight",e),...t}));ne.displayName="CardTitle";var St=A.forwardRef(({className:e,...t},r)=>(0,Re.jsx)("div",{ref:r,className:x("text-sm text-muted-foreground",e),...t}));St.displayName="CardDescription";var se=A.forwardRef(({className:e,...t},r)=>(0,Re.jsx)("div",{ref:r,className:x("p-6 pt-0",e),...t}));se.displayName="CardContent";var Rt=A.forwardRef(({className:e,...t},r)=>(0,Re.jsx)("div",{ref:r,className:x("flex items-center p-6 pt-0",e),...t}));Rt.displayName="CardFooter";var Le=require("lucide-react"),Yt=x("transition-colors duration-400 hover:text-primary ease-in-out");function Ae({title:e,links:t}){let r=(0,E.useSearchParams)(),o=(0,E.usePathname)(),{replace:a}=(0,E.useRouter)();function s(i){console.log(i);let n=new URLSearchParams(r);i?n.set("category",i):n.delete("category"),a(`${o}?${n.toString()}`)}return(0,Re.jsxs)(re,{children:[(0,Re.jsx)(oe,{children:(0,Re.jsx)(ne,{className:"text-accent",children:e&&e})}),(0,Re.jsx)(se,{children:t&&t.length>0&&(0,Re.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Re.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((i,n)=>(0,Re.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(i.href)},children:[i.label,(0,Re.jsx)(Le.ExternalLink,{className:"ml-1 h-3 w-3"})]},n))})})})]})}var Ie=require("@radix-ui/react-slot"),De=require("class-variance-authority"),$e=Z(require("react")),Mt=(0,De.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),ae=$e.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...a},s)=>(0,Re.jsx)(e?Ie.Slot:"button",{className:x(Mt({className:t,size:r,variant:o})),ref:s,...a}));ae.displayName="Button";var Y=require("react-icons/fa6"),Ge=require("react"),ie=x("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function He({pages:e}){let t=(0,E.useSearchParams)(),r=(0,E.usePathname)(),{replace:o}=(0,E.useRouter)(),{totalPages:a,page:s}=e,[i,n]=(0,Ge.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&i.start>1?n(f=>({start:f.start-1,end:f.end-1})):p==="right"&&i.end<a&&n(f=>({start:f.start+1,end:f.end+1}))};function d(p){let f=new URLSearchParams(t);p?f.set("page",p):f.delete("page"),o(`${r}?${f.toString()}`)}if(a<=1)return null;let b=[];for(let p=i.start;p<=i.end;p++)b.push(p);return(0,Re.jsx)("div",{className:"mt-12",children:(0,Re.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[i.start>1&&(0,Re.jsx)("li",{children:(0,Re.jsx)("button",{className:x(ie,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,Re.jsx)(Y.FaArrowLeft,{})})}),b.map((p,f)=>(0,Re.jsx)("li",{children:(0,Re.jsx)("a",{className:x(ie,p===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:P=>{P.preventDefault(),d(p.toString())},children:p})},f)),i.end<a&&(0,Re.jsx)("li",{children:(0,Re.jsx)("button",{className:x(ie,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,Re.jsx)(Y.FaArrowRight,{})})})]})})}function Fe({types:e}){let[t,r]=(0,Ge.useState)(e&&e[0].href),o=(0,E.useSearchParams)(),a=(0,E.usePathname)(),{replace:s}=(0,E.useRouter)();function i(n){let c=new URLSearchParams(o);n?c.set("type",n):c.delete("type"),r(n),s(`${a}?${c.toString()}`)}return(0,Re.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((n,c)=>(0,Re.jsx)(ae,{variant:n.href===t?"default":"ghost",className:x("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",n.href===t&&"bg-accent text-accent-foreground"),onClick:()=>i(n.href),children:n.label},c))})}function Tt({blogs:e,pages:t,categories:r,types:o}){return(0,Re.jsx)("section",{children:(0,Re.jsx)(Se,{children:(0,Re.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,Re.jsxs)("div",{children:[o&&(0,Re.jsx)(Fe,{types:o}),(0,Re.jsx)(ze,{blogs:e}),(0,Re.jsx)(He,{pages:t})]}),(0,Re.jsx)("div",{className:"grid gap-30px w-full self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:(0,Re.jsx)("div",{className:"lg:-mt-24 w-full",children:r&&r.links&&(0,Re.jsx)(Ae,{links:r.links,title:r.title})})})]})})})}0&&(module.exports={BlogListSection});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-6TGQ2756.mjs";import"../chunk-AD7PG4E2.mjs";import"../chunk-WZLEEZ5C.mjs";import"../chunk-JODGODRI.mjs";import"../chunk-6ZNVXWZR.mjs";import"../chunk-TST7OX5V.mjs";import"../chunk-65EMMROH.mjs";import"../chunk-EMZQNDA7.mjs";import"../chunk-D76EO57Z.mjs";import"../chunk-IE2A7UT3.mjs";import"../chunk-D43ENVPX.mjs";import"../chunk-BSQVKZCW.mjs";import"../chunk-Y5VTKEKS.mjs";import"../chunk-CGBVZQYY.mjs";import"../chunk-QOIH63J3.mjs";import"../chunk-YNCJATT7.mjs";import"../chunk-OAOCXXC2.mjs";import"../chunk-GLEWUUGS.mjs";import"../chunk-YNNW2C2U.mjs";import"../chunk-SFLOMJ2U.mjs";import"../chunk-UESKYRNK.mjs";import"../chunk-NIQ4466A.mjs";import"../chunk-6K2R3OAD.mjs";import"../chunk-FRWX5YES.mjs";import"../chunk-D2WXBUVJ.mjs";export{a as BlogListSection};
|