cortex-react-components 1.4.3 → 1.5.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-Q4PYWFOV.mjs → chunk-3FH4D24Y.mjs} +1 -1
- package/dist/{chunk-5UEX2ZT3.mjs → chunk-3GEC74P7.mjs} +1 -1
- package/dist/chunk-5GC7OIJP.mjs +4 -0
- package/dist/{chunk-E6LAVMGN.mjs → chunk-5SWDYMFR.mjs} +1 -1
- package/dist/chunk-6M36WM2P.mjs +1 -0
- package/dist/{chunk-OANFAQE4.mjs → chunk-6ZHKTYRN.mjs} +1 -1
- package/dist/chunk-BJKCW3JV.mjs +1 -0
- package/dist/chunk-C6AUISPJ.mjs +1 -0
- package/dist/{chunk-YQY5Z73J.mjs → chunk-ED34GA67.mjs} +1 -1
- package/dist/{chunk-MT7IEKDP.mjs → chunk-FS4U2L75.mjs} +1 -1
- package/dist/chunk-FUEY5ODP.mjs +4 -0
- package/dist/{chunk-BZVOHDLV.mjs → chunk-IUS3FIWG.mjs} +1 -1
- package/dist/chunk-PKS6BM5A.mjs +1 -0
- package/dist/chunk-RPNCR5DE.mjs +1 -0
- package/dist/chunk-VIQ2LSEB.mjs +1 -0
- package/dist/{chunk-MY7YCD7T.mjs → chunk-VIRO5TNH.mjs} +1 -1
- package/dist/{chunk-HQ5V5FY5.mjs → chunk-WBBN5JFF.mjs} +1 -1
- package/dist/{chunk-6XQN7JHH.mjs → chunk-YWDNHDQY.mjs} +1 -1
- package/dist/client/Blocks/Banner.mjs +1 -1
- package/dist/client/Blocks/CallToAction.mjs +1 -1
- package/dist/client/Blocks/CaseStudy.mjs +1 -1
- package/dist/client/Blocks/CaseStudy.stories.mjs +1 -1
- package/dist/client/Blocks/ConsultantProfile.mjs +1 -1
- package/dist/client/Blocks/ConsultantProfile.stories.mjs +1 -1
- package/dist/client/Blocks/Content.mjs +1 -1
- package/dist/client/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/client/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/client/Blocks/ImageBlock.mjs +1 -1
- package/dist/client/Blocks/MediaBlock.mjs +1 -1
- package/dist/client/Blocks/RelatedPosts.mjs +1 -1
- package/dist/client/Blocks/RenderBlocks.mjs +1 -1
- package/dist/client/Blocks/index.d.ts +11 -0
- package/dist/client/Blocks/index.js +1 -1
- package/dist/client/Blocks/index.mjs +1 -1
- package/dist/client/Cards/EventCard.mjs +1 -1
- package/dist/client/Cards/EventCard.stories.mjs +1 -1
- package/dist/client/Cards/Image.d.ts +1 -1
- package/dist/client/Cards/Image.js +1 -1
- package/dist/client/Cards/Image.mjs +1 -1
- package/dist/client/Cards/Image.stories.js +1 -1
- package/dist/client/Cards/Image.stories.mjs +1 -1
- package/dist/client/Cards/index.d.ts +2 -0
- package/dist/client/Cards/index.js +5 -1
- package/dist/client/Cards/index.mjs +1 -1
- package/dist/client/Layouts/NewsGrid.mjs +1 -1
- package/dist/client/Layouts/NewsGrid.stories.mjs +1 -1
- package/dist/client/Layouts/index.mjs +1 -1
- package/dist/client/Payload/Card/index.mjs +1 -1
- package/dist/client/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/client/Payload/Logo/index.mjs +1 -0
- package/dist/client/Payload/Media/ImageMedia/index.mjs +1 -1
- package/dist/client/Payload/Media/VideoMedia/index.mjs +1 -1
- package/dist/client/Payload/Media/index.mjs +1 -1
- package/dist/client/Payload/PageRange/index.mjs +1 -1
- package/dist/client/Payload/Pagination/index.mjs +1 -3
- package/dist/client/Payload/RichText/index.mjs +1 -1
- package/dist/client/Payload/RichText/serialize.mjs +1 -1
- package/dist/client/Payload/index.d.ts +8 -0
- package/dist/client/Payload/index.js +4 -0
- package/dist/client/Payload/index.mjs +1 -0
- package/dist/client/index.d.ts +5 -0
- package/dist/client/index.js +6 -1
- package/dist/client/index.mjs +1 -1
- package/dist/client/ui/index.mjs +1 -1
- package/dist/index.js +6 -1
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
- package/dist/chunk-I6MWUGBD.mjs +0 -1
- package/dist/chunk-RTU6IVSY.mjs +0 -1
- package/dist/chunk-UVJPKH6R.mjs +0 -4
- package/dist/client/Payload/Logo/Logo.mjs +0 -1
- /package/dist/{chunk-KQTFKGAZ.mjs → chunk-R7ZYTXG2.mjs} +0 -0
- /package/dist/client/Payload/Logo/{Logo.d.ts → index.d.ts} +0 -0
- /package/dist/client/Payload/Logo/{Logo.js → index.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"../../chunk-N6Y7HNC6.mjs";import{a as c}from"../../chunk-FS4U2L75.mjs";import{a as d}from"../../chunk-Q56L3H6V.mjs";import{a as b}from"../../chunk-LFACHBX2.mjs";import"../../chunk-VIRO5TNH.mjs";import"../../chunk-IUS3FIWG.mjs";import"../../chunk-6ZHKTYRN.mjs";import"../../chunk-TLXHEFFH.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-US547EKQ.mjs";export{a as FeatureGrid,c as NewsGrid,d as TextAndImages,b as VerticalSlider};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../../chunk-YWDNHDQY.mjs";import"../../../chunk-6P7CY367.mjs";import"../../../chunk-VIRO5TNH.mjs";import"../../../chunk-IUS3FIWG.mjs";import"../../../chunk-6ZHKTYRN.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-US547EKQ.mjs";export{a as Card};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a}from"../../../chunk-C6AUISPJ.mjs";import"../../../chunk-YWDNHDQY.mjs";import"../../../chunk-6P7CY367.mjs";import"../../../chunk-VIRO5TNH.mjs";import"../../../chunk-IUS3FIWG.mjs";import"../../../chunk-6ZHKTYRN.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-US547EKQ.mjs";export{a as CollectionArchive};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../../../chunk-PKS6BM5A.mjs";import"../../../chunk-US547EKQ.mjs";export{a as Logo};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../../../chunk-IUS3FIWG.mjs";import"../../../../chunk-NIQ4466A.mjs";import"../../../../chunk-44TDI42O.mjs";import"../../../../chunk-BOPZHZ27.mjs";import"../../../../chunk-US547EKQ.mjs";export{a as ImageMedia};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../../../chunk-6ZHKTYRN.mjs";import"../../../../chunk-NIQ4466A.mjs";import"../../../../chunk-44TDI42O.mjs";import"../../../../chunk-BOPZHZ27.mjs";import"../../../../chunk-US547EKQ.mjs";export{a as VideoMedia};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-VIRO5TNH.mjs";import"../../../chunk-IUS3FIWG.mjs";import"../../../chunk-6ZHKTYRN.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-US547EKQ.mjs";export{a as Media};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../../chunk-
|
|
1
|
+
import{a}from"../../../chunk-BJKCW3JV.mjs";import"../../../chunk-US547EKQ.mjs";export{a as PageRange};
|
|
@@ -1,4 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
"use client";import{a as m,b as r,c as t,d as o,e as c,f as l,g as e}from"../../../chunk-N4CGJXNI.mjs";import"../../../chunk-TLXHEFFH.mjs";import{a as p}from"../../../chunk-NIQ4466A.mjs";import"../../../chunk-US547EKQ.mjs";import{useRouter as I}from"next/navigation";import{jsx as a,jsxs as d}from"react/jsx-runtime";var $=u=>{let i=I(),{className:C,page:n,totalPages:s}=u,g=n<s,P=n>1,h=n-1>1,k=n+1<s;return a("div",{className:p("my-12",C),children:a(m,{children:d(r,{children:[a(t,{children:a(c,{disabled:!P,onClick:()=>{i.push(`/posts/page/${n-1}`)}})}),h&&a(t,{children:a(e,{})}),P&&a(t,{children:a(o,{onClick:()=>{i.push(`/posts/page/${n-1}`)},children:n-1})}),a(t,{children:a(o,{isActive:!0,onClick:()=>{i.push(`/posts/page/${n}`)},children:n})}),g&&a(t,{children:a(o,{onClick:()=>{i.push(`/posts/page/${n+1}`)},children:n+1})}),k&&a(t,{children:a(e,{})}),a(t,{children:a(l,{disabled:!g,onClick:()=>{i.push(`/posts/page/${n+1}`)}})})]})})})};export{$ as Pagination};
|
|
2
|
+
"use strict";import{a}from"../../../chunk-FUEY5ODP.mjs";import"../../../chunk-N4CGJXNI.mjs";import"../../../chunk-TLXHEFFH.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-US547EKQ.mjs";export{a as Pagination};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{d as a}from"../../../chunk-RPNCR5DE.mjs";import"../../../chunk-DYHP6A4B.mjs";import"../../../chunk-CJTRVASG.mjs";import"../../../chunk-ED34GA67.mjs";import"../../../chunk-VIRO5TNH.mjs";import"../../../chunk-IUS3FIWG.mjs";import"../../../chunk-6ZHKTYRN.mjs";import"../../../chunk-NEW735FX.mjs";import"../../../chunk-VI6PF7VY.mjs";import"../../../chunk-PV4EARTR.mjs";import"../../../chunk-TLXHEFFH.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-US547EKQ.mjs";export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{c as a}from"../../../chunk-RPNCR5DE.mjs";import"../../../chunk-DYHP6A4B.mjs";import"../../../chunk-CJTRVASG.mjs";import"../../../chunk-ED34GA67.mjs";import"../../../chunk-VIRO5TNH.mjs";import"../../../chunk-IUS3FIWG.mjs";import"../../../chunk-6ZHKTYRN.mjs";import"../../../chunk-NEW735FX.mjs";import"../../../chunk-VI6PF7VY.mjs";import"../../../chunk-PV4EARTR.mjs";import"../../../chunk-TLXHEFFH.mjs";import"../../../chunk-NIQ4466A.mjs";import"../../../chunk-44TDI42O.mjs";import"../../../chunk-BOPZHZ27.mjs";import"../../../chunk-US547EKQ.mjs";export{a as serializeLexical};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
"use strict";var qe=Object.create;var J=Object.defineProperty;var Xe=Object.getOwnPropertyDescriptor;var et=Object.getOwnPropertyNames;var tt=Object.getPrototypeOf,ot=Object.prototype.hasOwnProperty;var rt=(e,t)=>{for(var o in t)J(e,o,{get:t[o],enumerable:!0})},ke=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of et(t))!ot.call(e,a)&&a!==o&&J(e,a,{get:()=>t[a],enumerable:!(r=Xe(t,a))||r.enumerable});return e};var S=(e,t,o)=>(o=e!=null?qe(tt(e)):{},ke(t||!e||!e.__esModule?J(o,"default",{value:e,enumerable:!0}):o,e)),nt=e=>ke(J({},"__esModule",{value:!0}),e);var Yt={};rt(Yt,{CMSLink:()=>Ht,Card:()=>de,CollectionArchive:()=>Dt,Logo:()=>Vt,Media:()=>le,PageRange:()=>Qt,Pagination:()=>Kt});module.exports=nt(Yt);var Se=require("clsx");var se="-",st=e=>{let t=it(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{let s=i.split(se);return s[0]===""&&s.length!==1&&s.shift(),Me(s,t)||at(i)},getConflictingClassGroupIds:(i,s)=>{let p=o[i]||[];return s&&r[i]?[...p,...r[i]]:p}}},Me=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?Me(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(se);return(i=t.validators.find(({validator:s})=>s(n)))==null?void 0:i.classGroupId},Re=/^\[(.+)\]$/,at=e=>{if(Re.test(e)){let t=Re.exec(e)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},it=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return ct(Object.entries(e.classGroups),o).forEach(([n,i])=>{ne(i,r,n,t)}),r},ne=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:Ne(t,a);n.classGroupId=o;return}if(typeof a=="function"){if(lt(a)){ne(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([n,i])=>{ne(i,Ne(t,n),o,r)})})},Ne=(e,t)=>{let o=e;return t.split(se).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},lt=e=>e.isThemeGetter,ct=(e,t)=>t?e.map(([o,r])=>{let a=r.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,s])=>[t+i,s])):n);return[o,a]}):e,dt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(n,i)=>{o.set(n,i),t++,t>e&&(t=0,r=o,o=new Map)};return{get(n){let i=o.get(n);if(i!==void 0)return i;if((i=r.get(n))!==void 0)return a(n,i),i},set(n,i){o.has(n)?o.set(n,i):a(n,i)}}},Ee="!",pt=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],n=t.length,i=s=>{let p=[],c=0,g=0,d;for(let f=0;f<s.length;f++){let v=s[f];if(c===0){if(v===a&&(r||s.slice(f,f+n)===t)){p.push(s.slice(g,f)),g=f+n;continue}if(v==="/"){d=f;continue}}v==="["?c++:v==="]"&&c--}let u=p.length===0?s:s.substring(g),w=u.startsWith(Ee),A=w?u.substring(1):u,m=d&&d>g?d-g:void 0;return{modifiers:p,hasImportantModifier:w,baseClassName:A,maybePostfixModifierPosition:m}};return o?s=>o({className:s,parseClassName:i}):i},ut=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},gt=e=>({cache:dt(e.cacheSize),parseClassName:pt(e),...st(e)}),mt=/\s+/,ft=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,n=[],i=e.trim().split(mt),s="";for(let p=i.length-1;p>=0;p-=1){let c=i[p],{modifiers:g,hasImportantModifier:d,baseClassName:u,maybePostfixModifierPosition:w}=o(c),A=!!w,m=r(A?u.substring(0,w):u);if(!m){if(!A){s=c+(s.length>0?" "+s:s);continue}if(m=r(u),!m){s=c+(s.length>0?" "+s:s);continue}A=!1}let f=ut(g).join(":"),v=d?f+Ee:f,P=v+m;if(n.includes(P))continue;n.push(P);let N=a(m,A);for(let M=0;M<N.length;++M){let F=N[M];n.push(v+F)}s=c+(s.length>0?" "+s:s)}return s};function bt(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Le(t))&&(r&&(r+=" "),r+=o);return r}var Le=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Le(e[r]))&&(o&&(o+=" "),o+=t);return o};function ht(e,...t){let o,r,a,n=i;function i(p){let c=t.reduce((g,d)=>d(g),e());return o=gt(c),r=o.cache.get,a=o.cache.set,n=s,s(p)}function s(p){let c=r(p);if(c)return c;let g=ft(p,o);return a(p,g),g}return function(){return n(bt.apply(null,arguments))}}var b=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Ie=/^\[(?:([a-z-]+):)?(.+)\]$/i,yt=/^\d+\/\d+$/,wt=new Set(["px","full","screen"]),vt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xt=/\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$/,At=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Pt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ct=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=e=>U(e)||wt.has(e)||yt.test(e),T=e=>G(e,"length",Tt),U=e=>!!e&&!Number.isNaN(Number(e)),re=e=>G(e,"number",U),j=e=>!!e&&Number.isInteger(Number(e)),kt=e=>e.endsWith("%")&&U(e.slice(0,-1)),l=e=>Ie.test(e),z=e=>vt.test(e),Rt=new Set(["length","size","percentage"]),Nt=e=>G(e,Rt,Te),Mt=e=>G(e,"position",Te),Et=new Set(["image","url"]),Lt=e=>G(e,Et,St),It=e=>G(e,"",zt),O=()=>!0,G=(e,t,o)=>{let r=Ie.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Tt=e=>xt.test(e)&&!At.test(e),Te=()=>!1,zt=e=>Pt.test(e),St=e=>Ct.test(e);var Bt=()=>{let e=b("colors"),t=b("spacing"),o=b("blur"),r=b("brightness"),a=b("borderColor"),n=b("borderRadius"),i=b("borderSpacing"),s=b("borderWidth"),p=b("contrast"),c=b("grayscale"),g=b("hueRotate"),d=b("invert"),u=b("gap"),w=b("gradientColorStops"),A=b("gradientColorStopPositions"),m=b("inset"),f=b("margin"),v=b("opacity"),P=b("padding"),N=b("saturate"),M=b("scale"),F=b("sepia"),K=b("skew"),we=b("space"),ve=b("translate"),X=()=>["auto","contain","none"],ee=()=>["auto","hidden","clip","visible","scroll"],te=()=>["auto",l,t],h=()=>[l,t],xe=()=>["",L,T],Y=()=>["auto",U,l],Ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],Pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>["start","end","center","between","around","evenly","stretch"],V=()=>["","0",l],Ce=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[U,l];return{cacheSize:500,separator:":",theme:{colors:[O],spacing:[L,T],blur:["none","",z,l],brightness:E(),borderColor:[e],borderRadius:["none","","full",z,l],borderSpacing:h(),borderWidth:xe(),contrast:E(),grayscale:V(),hueRotate:E(),invert:V(),gap:h(),gradientColorStops:[e],gradientColorStopPositions:[kt,T],inset:te(),margin:te(),opacity:E(),padding:h(),saturate:E(),scale:E(),sepia:V(),skew:E(),space:h(),translate:h()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[z]}],"break-after":[{"break-after":Ce()}],"break-before":[{"break-before":Ce()}],"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:[...Ae(),l]}],overflow:[{overflow:ee()}],"overflow-ae":[{"overflow-ae":ee()}],"overflow-y":[{"overflow-y":ee()}],overscroll:[{overscroll:X()}],"overscroll-ae":[{"overscroll-ae":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-ae":[{"inset-ae":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",j,l]}],basis:[{basis:te()}],"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:V()}],shrink:[{shrink:V()}],order:[{order:["first","last","none",j,l]}],"grid-cols":[{"grid-cols":[O]}],"col-start-end":[{col:["auto",{span:["full",j,l]},l]}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":[O]}],"row-start-end":[{row:["auto",{span:[j,l]},l]}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"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:[u]}],"gap-ae":[{"gap-ae":[u]}],"gap-y":[{"gap-y":[u]}],"justify-content":[{justify:["normal",...oe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...oe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...oe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[P]}],px:[{px:[P]}],py:[{py:[P]}],ps:[{ps:[P]}],pe:[{pe:[P]}],pt:[{pt:[P]}],pr:[{pr:[P]}],pb:[{pb:[P]}],pl:[{pl:[P]}],m:[{m:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],me:[{me:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-ae":[{"space-ae":[we]}],"space-ae-reverse":["space-ae-reverse"],"space-y":[{"space-y":[we]}],"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",re]}],"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",U,re]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",L,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",L,T]}],"underline-offset":[{"underline-offset":["auto",L,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:h()}],"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:[...Ae(),Mt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","ae","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Nt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Lt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-ae":[{"border-ae":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...$(),"hidden"]}],"divide-ae":[{"divide-ae":[s]}],"divide-ae-reverse":["divide-ae-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:$()}],"border-color":[{border:[a]}],"border-color-ae":[{"border-ae":[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":[L,l]}],"outline-w":[{outline:[L,T]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:xe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[L,T]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",z,It]}],"shadow-color":[{shadow:[O]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...Pe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Pe()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",z,l]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[d]}],saturate:[{saturate:[N]}],sepia:[{sepia:[F]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[F]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-ae":[{"border-spacing-ae":[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:E()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-ae":[{"scale-ae":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[j,l]}],"translate-ae":[{"translate-ae":[ve]}],"translate-y":[{"translate-y":[ve]}],"skew-ae":[{"skew-ae":[K]}],"skew-y":[{"skew-y":[K]}],"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","ae",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","ae","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-ae":[{"touch-pan":["ae","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:[L,T,re]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-ae","overflow-y"],overscroll:["overscroll-ae","overscroll-y"],inset:["inset-ae","inset-y","start","end","top","right","bottom","left"],"inset-ae":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-ae","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-ae","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-ae":["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-ae":["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-ae","touch-y","touch-pz"],"touch-ae":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var ze=ht(Bt);function y(...e){return ze((0,Se.clsx)(e))}var Be=require("next/navigation"),R=require("react");function Ft({external:e=!1,newTab:t=!1,scroll:o=!0}){let r=(0,Be.useRouter)(),a=(0,R.useRef)(null),n=(0,R.useRef)(null),i=(0,R.useRef)(0),s=(0,R.useRef)(!1),p=(0,R.useRef)(0),c=(0,R.useCallback)(d=>{if(d.target){let u=d.target,w=+new Date,A=u==null?void 0:u.closest("a");p.current=d.button,A?s.current=!0:(s.current=!1,i.current=w)}},[r,a,n,i]),g=(0,R.useCallback)(d=>{var u,w;if((u=n.current)!=null&&u.href){let m=+new Date-i.current;if((w=n.current)!=null&&w.href&&m<=250&&!s.current&&p.current===0&&!d.ctrlKey)if(e){let f=t?"_blank":"_self";window.open(n.current.href,f)}else r.push(n.current.href,{scroll:o})}},[r,a,n,i]);return(0,R.useEffect)(()=>{let d=a.current;return d&&(d.addEventListener("mousedown",c),d.addEventListener("mouseup",g)),()=>{d&&d&&(d==null||d.removeEventListener("mousedown",c),d==null||d.removeEventListener("mouseup",g))}},[a,n,r]),{card:{ref:a},link:{ref:n}}}var Fe=Ft;var je=S(require("next/link"));var Ge=S(require("next/image"));var Ue=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var _=()=>{if(Ue){let e=window.location.protocol,t=window.location.hostname,o=window.location.port;return`${e}//${t}${o?`:${o}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var ae=require("react/jsx-runtime"),Ut={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},Gt="data:image/png;base64,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",De=e=>{let{alt:t,fill:o,imgClassName:r,priority:a,resource:n,size:i,src:s,loading:p}=e,c,g,d=t,u=s||"";if(!u&&n&&typeof n=="object"){let{alt:m,filename:f,height:v,url:P,width:N}=n;c=N,g=v,d=m||"",u=`${_()}${P}`}let w=p||"lazy",A=i||Object.entries(Ut).map(([,m])=>`(max-width: ${m}px) ${m*2}w`).join(", ");return(0,ae.jsx)("picture",{children:(0,ae.jsx)(Ge.default,{alt:d||"",className:y(r),fill:o,height:o?void 0:g,placeholder:"blur",blurDataURL:Gt,priority:w!=="lazy"&&a,quality:100,loading:w,sizes:A,src:u,width:o?void 0:c})})};var He=e=>{let{onClick:t,resource:o,videoClassName:r}=e,a=(0,R.useRef)(null);if((0,R.useEffect)(()=>{let{current:n}=a;n&&n.addEventListener("suspend",()=>{})},[]),o&&typeof o=="object"){let{filename:n}=o;return(0,ae.jsx)("video",{autoPlay:!0,className:y(r),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:a,children:(0,ae.jsx)("source",{src:`${_()}/media/${n}`})})}return null};var le=e=>{var i;let{className:t,htmlElement:o="div",resource:r}=e,a=typeof r=="object"&&((i=r==null?void 0:r.mimeType)==null?void 0:i.includes("video"));return(0,ae.jsx)(o||R.Fragment,{...o!==null?{className:t}:{},children:a?(0,ae.jsx)(He,{...e}):(0,ae.jsx)(De,{...e})})};var de=e=>{let{card:t,link:o}=Fe({}),{className:r,doc:a,relationTo:n,showCategories:i,title:s}=e,{slug:p,categories:c,meta:g,title:d}=a||{},{description:u,image:w}=g||{},A=c&&Array.isArray(c)&&c.length>0,m=s||d,f=u==null?void 0:u.replace(/\s/g," "),v=`/${n}/${p}`;return(0,ae.jsxs)("article",{className:y("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",r),ref:t.ref,children:[(0,ae.jsxs)("div",{className:"relative w-full ",children:[!w&&(0,ae.jsx)("div",{className:"",children:"No image"}),w&&typeof w!="string"&&(0,ae.jsx)(le,{resource:w,size:"33vw"})]}),(0,ae.jsxs)("div",{className:"p-4",children:[i&&A&&(0,ae.jsx)("div",{className:"uppercase text-sm mb-4",children:i&&A&&(0,ae.jsx)("div",{children:c==null?void 0:c.map((P,N)=>{if(typeof P=="object"){let{title:M}=P,F=M||"Untitled category",K=N===c.length-1;return(0,ae.jsxs)(R.Fragment,{children:[F,!K&&(0,ae.jsx)(R.Fragment,{children:", \xA0"})]},N)}return null})})}),m&&(0,ae.jsx)("div",{className:"prose",children:(0,ae.jsx)("h3",{children:(0,ae.jsx)(je.default,{className:"not-prose",href:v,ref:o.ref,children:m})})}),u&&(0,ae.jsx)("div",{className:"mt-2",children:u&&(0,ae.jsx)("p",{children:f})})]})]})};var Dt=e=>{let{posts:t}=e;return(0,ae.jsx)("div",{className:y("container"),children:(0,ae.jsx)("div",{children:(0,ae.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-ae-4 lg:gap-y-8 lg:gap-ae-8 xl:gap-ae-8",children:t==null?void 0:t.map((o,r)=>typeof o=="object"&&o!==null?(0,ae.jsx)("div",{className:"col-span-4",children:(0,ae.jsx)(de,{className:"h-full",doc:o,relationTo:"posts",showCategories:!0})},r):null)})})})};var Oe=require("@radix-ui/react-slot"),Qe=require("class-variance-authority"),Ke=S(require("react")),pe=(0,Qe.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"}}}),ue=Ke.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...a},n)=>(0,ae.jsx)(e?Oe.Slot:"button",{className:y(pe({className:t,size:o,variant:r})),ref:n,...a}));ue.displayName="Button";var ge=S(require("next/link")),Ht=e=>{let{type:t,appearance:o="inline",children:r,className:a,label:n,newTab:i,reference:s,size:p,url:c}=e,g=t==="reference"&&typeof(s==null?void 0:s.value)=="object"&&s.value.slug?`${(s==null?void 0:s.relationTo)!=="pages"?`/${s==null?void 0:s.relationTo}`:""}/${s.value.slug}`:c;if(!g)return null;let d=o==="link"?"clear":p,u=i?{rel:"noopener noreferrer",target:"_blank"}:{};return o==="inline"?(0,ae.jsxs)(ge.default,{className:y(a),href:g||c||"",...u,children:[n&&n,r&&r]}):(0,ae.jsx)(ue,{asChild:!0,className:a,size:d,variant:o,children:(0,ae.jsxs)(ge.default,{className:y(a),href:g||c||"",...u,children:[n&&n,r&&r]})})};var $e=S(require("clsx")),Je=S(require("next/image")),Vt=e=>{let{loading:t,priority:o,className:r}=e;return(0,ae.jsx)(Je.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:o||"low",decoding:"async",className:(0,$e.default)("max-w-[9.375rem] w-full h-[34px]",r),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var jt={plural:"Docs",singular:"Doc"},Ot={posts:{plural:"Posts",singular:"Post"}},Qt=e=>{let{className:t,collection:o,collectionLabels:r,currentPage:a,limit:n,totalDocs:i}=e,s=(a?a-1:1)*(n||1)+1;i&&s>i&&(s=0);let p=(a||1)*(n||1);i&&p>i&&(p=i);let{plural:c,singular:g}=r||Ot[o||""]||jt||{};return(0,ae.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof i=="undefined"||i===0)&&"Search produced no results.",typeof i!="undefined"&&i>0&&`Showing ${s}${s>0?` - ${p}`:""} of ${i} ${i>1?c:g}`]})};var H=require("lucide-react"),me=S(require("react")),fe=({className:e,...t})=>(0,ae.jsx)("nav",{"aria-label":"pagination",className:y("mx-auto flex w-full justify-center",e),role:"navigation",...t});fe.displayName="Pagination";var be=me.forwardRef(({className:e,...t},o)=>(0,ae.jsx)("ul",{className:y("flex flex-row items-center gap-1",e),ref:o,...t}));be.displayName="PaginationContent";var I=me.forwardRef(({className:e,...t},o)=>(0,ae.jsx)("li",{className:y("",e),ref:o,...t}));I.displayName="PaginationItem";var B=({className:e,isActive:t,size:o="icon",...r})=>(0,ae.jsx)("button",{"aria-current":t?"page":void 0,className:y(pe({size:o,variant:t?"outline":"ghost"}),e),...r});B.displayName="PaginationLink";var he=({className:e,...t})=>(0,ae.jsxs)(B,{"aria-label":"Go to previous page",className:y("gap-1 pl-2.5",e),size:"default",...t,children:[(0,ae.jsx)(H.ChevronLeft,{className:"h-4 w-4"}),(0,ae.jsx)("span",{children:"Previous"})]});he.displayName="PaginationPrevious";var ye=({className:e,...t})=>(0,ae.jsxs)(B,{"aria-label":"Go to next page",className:y("gap-1 pr-2.5",e),size:"default",...t,children:[(0,ae.jsx)("span",{children:"Next"}),(0,ae.jsx)(H.ChevronRight,{className:"h-4 w-4"})]});ye.displayName="PaginationNext";var q=({className:e,...t})=>(0,ae.jsxs)("span",{"aria-hidden":!0,className:y("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,ae.jsx)(H.MoreHorizontal,{className:"h-4 w-4"}),(0,ae.jsx)("span",{className:"sr-only",children:"More pages"})]});q.displayName="PaginationEllipsis";var Kt=e=>{let t=(0,Be.useRouter)(),{className:o,page:r,totalPages:a}=e,n=r<a,i=r>1,s=r-1>1,p=r+1<a;return(0,ae.jsx)("div",{className:y("my-12",o),children:(0,ae.jsx)(fe,{children:(0,ae.jsxs)(be,{children:[(0,ae.jsx)(I,{children:(0,ae.jsx)(he,{disabled:!i,onClick:()=>{t.push(`/posts/page/${r-1}`)}})}),s&&(0,ae.jsx)(I,{children:(0,ae.jsx)(q,{})}),i&&(0,ae.jsx)(I,{children:(0,ae.jsx)(B,{onClick:()=>{t.push(`/posts/page/${r-1}`)},children:r-1})}),(0,ae.jsx)(I,{children:(0,ae.jsx)(B,{isActive:!0,onClick:()=>{t.push(`/posts/page/${r}`)},children:r})}),n&&(0,ae.jsx)(I,{children:(0,ae.jsx)(B,{onClick:()=>{t.push(`/posts/page/${r+1}`)},children:r+1})}),p&&(0,ae.jsx)(I,{children:(0,ae.jsx)(q,{})}),(0,ae.jsx)(I,{children:(0,ae.jsx)(ye,{disabled:!n,onClick:()=>{t.push(`/posts/page/${r+1}`)}})})]})})})};0&&(module.exports={CMSLink,Card,CollectionArchive,Logo,Media,PageRange,Pagination});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"../../chunk-PKS6BM5A.mjs";import{a as f}from"../../chunk-BJKCW3JV.mjs";import{a as g}from"../../chunk-FUEY5ODP.mjs";import{a as c}from"../../chunk-C6AUISPJ.mjs";import"../../chunk-N4CGJXNI.mjs";import{a as b}from"../../chunk-YWDNHDQY.mjs";import"../../chunk-6P7CY367.mjs";import"../../chunk-RPNCR5DE.mjs";import"../../chunk-DYHP6A4B.mjs";import{a as d}from"../../chunk-CJTRVASG.mjs";import"../../chunk-ED34GA67.mjs";import{a}from"../../chunk-VIRO5TNH.mjs";import"../../chunk-IUS3FIWG.mjs";import"../../chunk-6ZHKTYRN.mjs";import"../../chunk-NEW735FX.mjs";import"../../chunk-VI6PF7VY.mjs";import"../../chunk-PV4EARTR.mjs";import"../../chunk-TLXHEFFH.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-44TDI42O.mjs";import"../../chunk-BOPZHZ27.mjs";import"../../chunk-US547EKQ.mjs";export{d as CMSLink,b as Card,c as CollectionArchive,e as Logo,a as Media,f as PageRange,g as Pagination};
|
package/dist/client/index.d.ts
CHANGED
|
@@ -4,3 +4,8 @@
|
|
|
4
4
|
* i.e., server component re-exported from file with "use client" will behave as client component
|
|
5
5
|
* */
|
|
6
6
|
export * from "./ui";
|
|
7
|
+
export * from "./Cards";
|
|
8
|
+
export * from "./Layouts";
|
|
9
|
+
export * from "./Payload";
|
|
10
|
+
export * from "./Images";
|
|
11
|
+
export * from "./Blocks";
|