{"version":3,"file":"LimitCollection.CAedRId3.mjs","names":[],"sources":["https:/framerusercontent.com/modules/bTaL8WGHAdpUYiMKaJhU/6tRQHUK6ds1sCfmAqD9s/LimitCollection.js"],"sourcesContent":["// cms-today-limit.tsx\nimport{jsx as _jsx}from\"react/jsx-runtime\";/** Local YYYY-MM-DD (keeps your working override intact) */function localISODate(){const now=new Date;const y=now.getFullYear();const m=String(now.getMonth()+1).padStart(2,\"0\");const d=String(now.getDate()).padStart(2,\"0\");return`${y}-${m}-${d}`;}export function withTodaysDate(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,today:localISODate()});}/** ---------- LIMIT (stable, no StrictMode mismatch) ---------- */const LIMIT=4;const STYLE_ID=\"framer-limit-css-v1\";function ensureLimitStyle(){if(typeof document===\"undefined\")return;if(document.getElementById(STYLE_ID))return;const style=document.createElement(\"style\");style.id=STYLE_ID;style.textContent=`\n    /* Hide all children after the ${LIMIT}th */\n    .limit-${LIMIT} > *:nth-child(n+${LIMIT+1}) { display: none !important; }\n  `;document.head.appendChild(style);}/**\n * Attach THIS override to the **Collection List** layer.\n * Uses a deterministic class (e.g., \"limit-4\") so CSS always matches.\n */export function withLimitCSS(Component){return props=>{ensureLimitStyle();const className=[props.className,`limit-${LIMIT}`].filter(Boolean).join(\" \");return /*#__PURE__*/_jsx(Component,{...props,className:className});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withLimitCSS\":{\"type\":\"reactHoc\",\"name\":\"withLimitCSS\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTodaysDate\":{\"type\":\"reactHoc\",\"name\":\"withTodaysDate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LimitCollection.map"],"mappings":"oGACuG,SAAS,GAAc,CAAC,IAAM,EAAI,IAAI,KAA8H,MAAM,GAAvH,EAAI,aAAa,CAA2G,GAAlG,OAAO,EAAI,UAAU,CAAC,EAAE,CAAC,SAAS,EAAE,IAAI,CAA+D,GAAtD,OAAO,EAAI,SAAS,CAAC,CAAC,SAAS,EAAE,IAAI,GAAyB,SAAgB,EAAe,EAAU,CAAC,MAAO,IAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,GAAc,CAAC,CAAC,CAAwH,SAAS,GAAkB,CAAyC,GAArC,OAAO,SAAW,KAAsB,SAAS,eAAe,EAAS,CAAC,OAAO,IAAM,EAAM,SAAS,cAAc,QAAQ,CAAC,EAAM,GAAG,EAAS,EAAM,YAAY;qCAC1qB,EAAM;aAC9B,EAAM,mBAAmB,EAAM,EAAE;IAC1C,SAAS,KAAK,YAAY,EAAM,CAGjC,SAAgB,EAAa,EAAU,CAAC,MAAO,IAAO,CAAC,GAAkB,CAAC,IAAM,EAAU,CAAC,EAAM,UAAU,SAAS,IAAQ,CAAC,OAAO,QAAQ,CAAC,KAAK,IAAI,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAgB,YAAU,CAAC,uBANjL,CAAub,EAAM,EAAQ,EAAS"}