{"version":3,"file":"LifetimeCountdownBanner.C9RBdnXm.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/MXxSEpQ4DnB1MdSczpow/l8k25cBMZls9oKHzTcUe/LifetimeCountdownBanner.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";const DEADLINE_MS=Date.parse(\"2026-08-15T22:59:00-08:00\");const CSS=[\".ltd-banner, .ltd-banner * { box-sizing: border-box; }\",\".ltd-banner { position: relative; width: 100%; overflow: hidden; color: #453E46; background: linear-gradient(100deg, #FDF3FF 0%, #FCB1C7 50%, #EEF9FF 100%); font-family: Satoshi, Outfit, system-ui, sans-serif; }\",\".ltd-banner::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, #FF8C86 0%, #FFD056 100%); }\",\".ltd-inner { width: 100%; max-width: 1200px; min-height: 84px; margin: 0 auto; padding: 12px 48px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 28px; }\",\".ltd-copy { min-width: 0; display: flex; align-items: center; gap: 12px; }\",\".ltd-icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.72); border: 1px solid rgba(69,62,70,.10); box-shadow: 0 6px 20px rgba(69,62,70,.08); font-size: 18px; }\",\".ltd-message { min-width: 0; }\",\".ltd-eyebrow { display: inline-flex; align-items: center; margin: 0 0 2px; color: #AD4BB8; font-family: Outfit, Satoshi, system-ui, sans-serif; font-size: 11px; line-height: 1.1; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }\",\".ltd-title { margin: 0; font-family: Outfit, Satoshi, system-ui, sans-serif; font-size: 18px; line-height: 1.2; font-weight: 750; letter-spacing: -.01em; white-space: nowrap; }\",\".ltd-timer { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }\",\".ltd-unit { width: 58px; min-width: 58px; height: 54px; padding: 6px 5px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 9px; background: rgba(255,255,255,.76); border: 1px solid rgba(69,62,70,.10); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 18px rgba(69,62,70,.06); }\",\".ltd-value-window { display: block; width: 3ch; height: 24px; overflow: hidden; text-align: center; font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; line-height: 24px; font-weight: 700; font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }\",\".ltd-value { display: block; animation: ltdTick 220ms cubic-bezier(.2,.8,.2,1); }\",\".ltd-label { margin-top: 1px; color: #6F6871; font-size: 9px; line-height: 1; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }\",\".ltd-cta { flex: 0 0 auto; min-height: 42px; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; background: #AD4BB8; color: #FFFFFF; box-shadow: 0 8px 22px rgba(134,53,143,.20); font-size: 14px; line-height: 1; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }\",\".ltd-cta:hover { background: #9A3FA5; transform: translateY(-1px); box-shadow: 0 11px 26px rgba(134,53,143,.24); }\",\".ltd-cta:focus-visible { outline: 3px solid rgba(173,75,184,.32); outline-offset: 3px; }\",\".ltd-arrow { font-size: 17px; transform: translateY(-.5px); }\",\".ltd-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }\",\"@keyframes ltdTick { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }\",\"@media (min-width: 1920px) { .ltd-inner { max-width: 1500px; padding-left: 64px; padding-right: 64px; } .ltd-title { font-size: 20px; } .ltd-unit { width: 62px; min-width: 62px; } }\",\"@media (min-width: 810px) and (max-width: 1199px) { .ltd-inner { min-height: 82px; padding-left: 32px; padding-right: 32px; gap: 16px; } .ltd-copy { gap: 9px; } .ltd-icon { width: 30px; height: 30px; } .ltd-title { font-size: 15px; white-space: normal; } .ltd-unit { width: 50px; min-width: 50px; height: 50px; } .ltd-value-window { font-size: 16px; } .ltd-cta { padding-left: 14px; padding-right: 14px; font-size: 13px; } }\",\"@media (max-width: 809px) { .ltd-inner { min-height: 0; padding: 16px 16px 22px; grid-template-columns: 1fr; justify-items: stretch; gap: 12px; } .ltd-copy { justify-content: center; text-align: center; } .ltd-icon { display: none; } .ltd-title { font-size: 17px; white-space: normal; text-wrap: balance; } .ltd-timer { width: 100%; justify-content: center; gap: 6px; } .ltd-unit { width: calc((100% - 18px) / 4); min-width: 0; max-width: 68px; height: 53px; } .ltd-cta { width: min(100%, 290px); min-height: 44px; justify-self: center; } }\",\"@media (prefers-reduced-motion: reduce) { .ltd-value { animation: none; } .ltd-cta { transition: none; } }\"].join(\"\\n\");function getRemaining(){const distance=Math.max(0,DEADLINE_MS-Date.now());return{days:Math.floor(distance/864e5),hours:Math.floor(distance%864e5/36e5),minutes:Math.floor(distance%36e5/6e4),seconds:Math.floor(distance%6e4/1e3),expired:distance<=0};}function twoDigits(value){return String(value).padStart(2,\"0\");}function TimeUnit({value,label}){const formatted=twoDigits(value);return /*#__PURE__*/_jsxs(\"div\",{className:\"ltd-unit\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"ltd-value-window\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"span\",{className:\"ltd-value\",children:formatted},formatted)}),/*#__PURE__*/_jsx(\"span\",{className:\"ltd-label\",children:label})]});}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function LifetimeCountdownBanner(props){const[remaining,setRemaining]=React.useState(()=>getRemaining());React.useEffect(()=>{if(typeof window===\"undefined\")return;const update=()=>setRemaining(getRemaining());update();const interval=window.setInterval(update,250);return()=>window.clearInterval(interval);},[]);const readable=remaining.expired?\"The 550 dollar lifetime deal has ended.\":remaining.days+\" days, \"+remaining.hours+\" hours, \"+remaining.minutes+\" minutes, and \"+remaining.seconds+\" seconds remaining.\";return /*#__PURE__*/_jsxs(\"section\",{className:\"ltd-banner \"+(props.className||\"\"),style:props.style,\"aria-label\":\"Lifetime deal final call\",children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsxs(\"div\",{className:\"ltd-inner\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"ltd-copy\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"ltd-icon\",\"aria-hidden\":\"true\",children:\"⏰\"}),/*#__PURE__*/_jsxs(\"div\",{className:\"ltd-message\",children:[/*#__PURE__*/_jsx(\"div\",{className:\"ltd-eyebrow\",children:\"Price increases on Aug 15 at 11:59 PM PST\"}),/*#__PURE__*/_jsx(\"h2\",{className:\"ltd-title\",children:\"Lock in Teachery’s $550 Lifetime Deal\"})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"ltd-timer\",role:\"timer\",\"aria-live\":\"off\",\"aria-label\":readable,children:[/*#__PURE__*/_jsx(TimeUnit,{value:remaining.days,label:\"DAYS\"}),/*#__PURE__*/_jsx(TimeUnit,{value:remaining.hours,label:\"HRS\"}),/*#__PURE__*/_jsx(TimeUnit,{value:remaining.minutes,label:\"MINS\"}),/*#__PURE__*/_jsx(TimeUnit,{value:remaining.seconds,label:\"SECS\"}),/*#__PURE__*/_jsx(\"span\",{className:\"ltd-sr-only\",children:readable})]}),/*#__PURE__*/_jsxs(\"a\",{className:\"ltd-cta\",href:\"/lifetime-retirement\",children:[remaining.expired?\"See current plans\":\"Grab the deal\",/*#__PURE__*/_jsx(\"span\",{className:\"ltd-arrow\",\"aria-hidden\":\"true\",children:\"→\"})]})]})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LifetimeCountdownBanner\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\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