{"version":3,"file":"WeeklyNudge.y-QSWKMQ.mjs","names":["React.useId","React.useMemo","React.useState","React.useRef","React.useCallback"],"sources":["https:/framerusercontent.com/modules/3VxYj1a4M53jKpDzc7do/u0KT6a8yPLFaTivuFltG/WeeklyNudge.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";// Shared presentation only; Flodesk owns validation and subscription behavior.\nexport const onlineDreaFlodeskCss='/* Add od-flodesk to each existing #fd-form-* container, without changing its ID.\\n   Newsletter: also add od-flodesk--newsletter.\\n   Existing page copy: add od-flodesk--external-copy (automatic in .odc .signup).\\n   Load Playfair Display and Montserrat with the site\\'s existing font mechanism.\\n   Vendor scripts, hidden fields, captcha and success/error visibility stay intact. */\\n.od-flodesk {\\n  --od-ink: #203b47;\\n  --od-accent: #ab2c4d;\\n  container: od-flodesk / inline-size;\\n  width: 100%;\\n  min-width: 0;\\n  margin-inline: auto;\\n}\\n.od-flodesk * { box-sizing: border-box; }\\n.od-flodesk [data-ff-el=\"root\"] > [class*=\"__container\"] {\\n  width: 100% !important;\\n  max-width: 100% !important;\\n  margin: 0 !important;\\n  padding: 0 !important;\\n  background: transparent !important;\\n  box-shadow: none !important;\\n}\\n.od-flodesk [data-ff-el=\"root\"][data-ff-type=\"inline\"],\\n.od-flodesk form {\\n  width: 100% !important;\\n  max-width: 100% !important;\\n  margin: 0 !important;\\n  padding: 0 !important;\\n  border: 0 !important;\\n  border-radius: 0 !important;\\n  background: transparent !important;\\n  box-shadow: none !important;\\n  color: var(--od-ink) !important;\\n  font: 400 15px/1.6 \"Montserrat\", Arial, sans-serif !important;\\n  text-align: left !important;\\n}\\n.od-flodesk [class*=\"__title\"] {\\n  margin: 0 0 14px !important;\\n  color: var(--od-ink) !important;\\n  font: 600 clamp(30px, 5cqw, 40px)/1.12 \"Playfair Display\", Georgia, serif !important;\\n  letter-spacing: -.035em !important;\\n  text-align: left !important;\\n  text-wrap: balance;\\n}\\n.od-flodesk [class*=\"__subtitle\"] {\\n  max-width: 560px;\\n  margin: 0 !important;\\n  color: var(--od-ink) !important;\\n  font: 400 15px/1.65 \"Montserrat\", Arial, sans-serif !important;\\n  letter-spacing: 0 !important;\\n  text-align: left !important;\\n}\\n.od-flodesk :is([class*=\"__title\"], [class*=\"__subtitle\"]) * {\\n  font-family: inherit !important;\\n  font-size: inherit !important;\\n  line-height: inherit !important;\\n  letter-spacing: inherit !important;\\n  color: inherit !important;\\n}\\n.od-flodesk :is([class*=\"__title\"], [class*=\"__subtitle\"]) p { margin: 0 !important; }\\n.od-flodesk--external-copy :is([class*=\"__title\"], [class*=\"__subtitle\"]),\\n.odc .signup .od-flodesk :is([class*=\"__title\"], [class*=\"__subtitle\"]) {\\n  display: none !important;\\n}\\n.od-flodesk [data-ff-el=\"content\"] {\\n  min-width: 0;\\n  margin: 24px 0 0 !important;\\n  padding: 0 !important;\\n}\\n.od-flodesk--external-copy [data-ff-el=\"content\"],\\n.odc .signup .od-flodesk [data-ff-el=\"content\"] { margin-top: 0 !important; }\\n/* Only layout live content. Flodesk continues to hide it on success/captcha. */\\n.od-flodesk [data-ff-el=\"root\"]:not([data-ff-stage=\"success\"]):not([data-ff-stage=\"captcha\"])\\n  form:not(.fd-has-success):not(.fd-has-captcha) [data-ff-el=\"content\"] {\\n  display: grid !important;\\n  grid-template-columns: minmax(0, 1fr);\\n  gap: 14px;\\n  align-items: end;\\n}\\n.od-flodesk [data-ff-el=\"fields\"] {\\n  display: grid !important;\\n  grid-template-columns: minmax(0, 1fr) !important;\\n  justify-content: stretch !important;\\n  gap: 12px;\\n  width: 100% !important;\\n  max-width: 100% !important;\\n  min-width: 0;\\n  margin: 0 !important;\\n  padding: 0 !important;\\n}\\n/* Never change group display: Flodesk inserts hidden decoy groups at runtime. */\\n.od-flodesk .fd-form-group:has(> .fd-form-control:not([type=\"hidden\"])) {\\n  position: relative;\\n  min-width: 0;\\n  max-width: 100% !important;\\n  margin: 0 !important;\\n  padding: 25px 0 0 !important;\\n}\\n.od-flodesk [data-ff-el=\"root\"][data-ff-type=\"inline\"] .fd-form-group > .fd-form-label {\\n  position: absolute !important;\\n  top: 0 !important;\\n  right: auto !important;\\n  bottom: auto !important;\\n  left: 0 !important;\\n  margin: 0 !important;\\n  padding: 0 !important;\\n  transform: none !important;\\n  opacity: 1 !important;\\n  color: var(--od-ink) !important;\\n  font: 600 13px/1.4 \"Montserrat\", Arial, sans-serif !important;\\n  letter-spacing: 0 !important;\\n  pointer-events: auto;\\n}\\n.od-flodesk input.fd-form-control:not([type=\"hidden\"]):not([type=\"checkbox\"]):not([type=\"radio\"]) {\\n  width: 100% !important;\\n  max-width: 100% !important;\\n  min-width: 0;\\n  min-height: 54px !important;\\n  height: auto !important;\\n  padding: 14px 18px !important;\\n  border-radius: 13px !important;\\n  font: 400 16px/1.5 \"Montserrat\", Arial, sans-serif !important;\\n  letter-spacing: 0 !important;\\n}\\n.od-flodesk .fd-form-group:not(.fd-has-error):not(.fd-has-success) input.fd-form-control:not(:disabled):not([aria-disabled=\"true\"]):not([type=\"hidden\"]):not([type=\"checkbox\"]):not([type=\"radio\"]) {\\n  color: var(--od-ink) !important;\\n  background: #fff !important;\\n  border: 1px solid #203b4766 !important;\\n}\\n/* Runtime placeholder strings are bot traps; labels carry the visible text. */\\n.od-flodesk input.fd-form-control::placeholder { color: transparent !important; opacity: 0 !important; }\\n.od-flodesk [data-ff-el=\"footer\"] {\\n  min-width: 0;\\n  margin: 0 !important;\\n  padding: 0 !important;\\n  text-align: left !important;\\n}\\n.od-flodesk .fd-btn {\\n  width: 100% !important;\\n  min-height: 54px !important;\\n  height: auto !important;\\n  margin: 0 !important;\\n  padding: 14px 26px !important;\\n  border-radius: 999px !important;\\n  font: 600 14px/1.55 \"Montserrat\", Arial, sans-serif !important;\\n  letter-spacing: 0 !important;\\n  text-transform: none !important;\\n  white-space: normal !important;\\n}\\n.od-flodesk .fd-btn:not(:disabled):not([aria-disabled=\"true\"]) {\\n  background: var(--od-accent) !important;\\n  color: #fff !important;\\n  border: 1px solid var(--od-accent) !important;\\n}\\n.od-flodesk .fd-btn:not(:disabled):not([aria-disabled=\"true\"]):hover {\\n  background: #8c2340 !important;\\n  border-color: #8c2340 !important;\\n}\\n.od-flodesk :is(input.fd-form-control, .fd-btn, a):focus-visible {\\n  outline: 3px solid var(--od-ink) !important;\\n  outline-offset: 4px !important;\\n}\\n.od-flodesk :is([data-ff-el=\"success\"], [data-ff-el=\"error\"]) {\\n  padding: 14px 0 !important;\\n  color: var(--od-ink) !important;\\n  font: 400 15px/1.6 \"Montserrat\", Arial, sans-serif !important;\\n  text-align: left !important;\\n}\\n.od-flodesk [data-ff-el=\"error\"] { color: #962441 !important; }\\n.od-flodesk [data-ff-el=\"success\"] [class*=\"__success-message\"] {\\n  color: var(--od-ink) !important;\\n  font: 400 15px/1.65 \"Montserrat\", Arial, sans-serif !important;\\n  text-align: left !important;\\n}\\n@container od-flodesk (min-width: 560px) {\\n  .od-flodesk:not(.od-flodesk--newsletter) [data-ff-el=\"root\"]:not([data-ff-stage=\"success\"]):not([data-ff-stage=\"captcha\"])\\n    form:not(.fd-has-success):not(.fd-has-captcha) [data-ff-el=\"content\"] {\\n    grid-template-columns: minmax(0, 1fr) minmax(180px, .8fr);\\n  }\\n  .od-flodesk:not(.od-flodesk--newsletter) [data-ff-el=\"content\"] > :not([data-ff-el=\"fields\"]):not([data-ff-el=\"footer\"]) {\\n    grid-column: 1 / -1;\\n  }\\n}\\n@container od-flodesk (min-width: 820px) {\\n  .od-flodesk--newsletter form {\\n    display: grid;\\n    grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr);\\n    grid-template-rows: auto 1fr;\\n    column-gap: 56px;\\n    align-items: start;\\n  }\\n  .od-flodesk--newsletter [class*=\"__title\"] { grid-column: 1; grid-row: 1; }\\n  .od-flodesk--newsletter [class*=\"__subtitle\"] { grid-column: 1; grid-row: 2; }\\n  .od-flodesk--newsletter [data-ff-el=\"content\"],\\n  .od-flodesk--newsletter [data-ff-el=\"success\"] { grid-column: 2; grid-row: 1 / span 2; margin-top: 0 !important; }\\n  .od-flodesk--newsletter [data-ff-el=\"error\"] { grid-column: 2; grid-row: 3; }\\n}\\n';const footerFlowCss='\\n.od-flodesk--newsletter [class*=\"__title\"]{font-size:clamp(34px,4.3cqw,48px)!important;line-height:1.12!important}.od-flodesk--newsletter [class*=\"__subtitle\"]{line-height:1.75!important}.od-flodesk--newsletter input.fd-form-control{border-radius:4px!important}.od-flodesk--newsletter .fd-btn{background:#203b47!important;border-color:#203b47!important}.od-flodesk--newsletter .fd-btn:hover{background:#ab2c4d!important;border-color:#ab2c4d!important}\\nnav[aria-label=\"Social links\"]{gap:12px!important;border:0!important;padding:10px 0!important;margin-top:16px!important}nav[aria-label=\"Social links\"] a{display:inline-flex!important;align-items:center;justify-content:center;width:44px;height:44px;font-size:0!important;border:0!important;border-radius:50%;color:#203b47;transition:background .2s,transform .2s}nav[aria-label=\"Social links\"] a::before{content:\"\";display:block;width:23px;height:23px;background:currentColor;mask-size:contain;mask-repeat:no-repeat;mask-position:center;-webkit-mask-size:contain;-webkit-mask-repeat:no-repeat;-webkit-mask-position:center}nav[aria-label=\"Social links\"] a:hover{background:#fff8;transform:translateY(-2px)}nav[aria-label=\"Social links\"] a:focus-visible{outline:2px solid #203b47;outline-offset:3px}\\nnav[aria-label=\"Social links\"] a[href*=\"instagram.com\"]::before{mask-image:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%225%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%2F%3E%3Ccircle%20cx%3D%2217.5%22%20cy%3D%226.5%22%20r%3D%22.8%22%20fill%3D%22black%22%20stroke%3D%22none%22%2F%3E%3C%2Fsvg%3E\");-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%225%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%2F%3E%3Ccircle%20cx%3D%2217.5%22%20cy%3D%226.5%22%20r%3D%22.8%22%20fill%3D%22black%22%20stroke%3D%22none%22%2F%3E%3C%2Fsvg%3E\");}\\nnav[aria-label=\"Social links\"] a[href*=\"threads.net\"]::before{mask-image:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M19.5%207c-1-3-3.5-4.5-7-4.5C6%202.5%203.5%207%204%2013c.5%205.5%203.5%208.5%208.5%208.5%204.5%200%207.5-2.5%207.5-6%200-3-2.5-5-6-5-3%200-5%201.4-5%203.5%200%202%201.5%203%203.5%202.8%203.5-.3%204.2-3.5%203.8-6.8-.3-3-2-4.5-4.5-4.5-1.8%200-3%20.7-3.8%202%22%2F%3E%3C%2Fsvg%3E\");-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M19.5%207c-1-3-3.5-4.5-7-4.5C6%202.5%203.5%207%204%2013c.5%205.5%203.5%208.5%208.5%208.5%204.5%200%207.5-2.5%207.5-6%200-3-2.5-5-6-5-3%200-5%201.4-5%203.5%200%202%201.5%203%203.5%202.8%203.5-.3%204.2-3.5%203.8-6.8-.3-3-2-4.5-4.5-4.5-1.8%200-3%20.7-3.8%202%22%2F%3E%3C%2Fsvg%3E\");}\\nnav[aria-label=\"Social links\"] a[href*=\"tiktok.com\"]::before{mask-image:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%203v12.5a4.5%204.5%200%201%201-4-4.5M14%203c.5%204%203%206%207%206V6c-2.5%200-4-1-4-3z%22%2F%3E%3C%2Fsvg%3E\");-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%203v12.5a4.5%204.5%200%201%201-4-4.5M14%203c.5%204%203%206%207%206V6c-2.5%200-4-1-4-3z%22%2F%3E%3C%2Fsvg%3E\");}\\nnav[aria-label=\"Social links\"] a[href*=\"linkedin.com\"]::before{mask-image:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%2010v7M11%2017v-7m0%203c0-4%206-4%206%200v4%22%2F%3E%3Ccircle%20cx%3D%227%22%20cy%3D%227%22%20r%3D%221%22%20fill%3D%22black%22%20stroke%3D%22none%22%2F%3E%3C%2Fsvg%3E\");-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%2010v7M11%2017v-7m0%203c0-4%206-4%206%200v4%22%2F%3E%3Ccircle%20cx%3D%227%22%20cy%3D%227%22%20r%3D%221%22%20fill%3D%22black%22%20stroke%3D%22none%22%2F%3E%3C%2Fsvg%3E\");}\\nnav[aria-label=\"Social links\"] a[href*=\"facebook.com\"]::before{mask-image:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%2021v-8h3l.5-4H14V6.5c0-1%20.5-1.5%201.5-1.5H18V2h-3c-3%200-5%202-5%205v2H7v4h3v8%22%20fill%3D%22black%22%20stroke%3D%22none%22%2F%3E%3C%2Fsvg%3E\");-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%2021v-8h3l.5-4H14V6.5c0-1%20.5-1.5%201.5-1.5H18V2h-3c-3%200-5%202-5%205v2H7v4h3v8%22%20fill%3D%22black%22%20stroke%3D%22none%22%2F%3E%3C%2Fsvg%3E\");}\\nnav[aria-label=\"Social links\"] a[href*=\"youtube.com\"]::before{mask-image:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%2220%22%20height%3D%2214%22%20rx%3D%224%22%2F%3E%3Cpath%20d%3D%22m10%209%206%203-6%203z%22%20fill%3D%22black%22%20stroke%3D%22none%22%2F%3E%3C%2Fsvg%3E\");-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%2220%22%20height%3D%2214%22%20rx%3D%224%22%2F%3E%3Cpath%20d%3D%22m10%209%206%203-6%203z%22%20fill%3D%22black%22%20stroke%3D%22none%22%2F%3E%3C%2Fsvg%3E\");}';const footerColorFrameCss='\\n:is(.ox-footer,.od-footer,footer){background:#203b47!important;color:#f8f3e9!important;border-top:6px solid #ab2c4d!important;padding:48px 6% 28px!important}\\n:is(.ox-footer,.od-footer,footer) :is(a,p,small,nav){color:#f8f3e9!important}\\n:is(.ox-footer,.od-footer,footer) nav{border-color:#f8f3e930!important}\\n:is(.ox-footer,.od-footer,footer) a{border-color:#f8f3e950!important}\\n:is(.ox-footer,.od-footer,footer) nav[aria-label=\"Social links\"] a{color:#f8f3e9!important}\\n:is(.ox-footer,.od-footer,footer) nav[aria-label=\"Social links\"] a:hover{background:#f8f3e91a!important}\\n:is(.ox-footer,.od-footer,footer) a:focus-visible{outline:2px solid #f8f3e9!important;outline-offset:5px}\\nsection[data-weekly-nudge-instance]:has(>.od-flodesk){width:calc(100% - 48px)!important;margin:24px!important;padding:48px 5%!important;border:1px solid #203b4738!important;box-shadow:0 0 0 24px #e9dfdb;background:#fff!important}\\n@media(max-width:600px){:is(.ox-footer,.od-footer,footer){padding:36px 6% 24px!important}section[data-weekly-nudge-instance]:has(>.od-flodesk){width:calc(100% - 32px)!important;margin:16px!important;padding:32px 6%!important;box-shadow:0 0 0 16px #e9dfdb}}\\n';const FORM_ID=\"68d1f428e69cb81f173008c8\";const CONTAINER_ID=`fd-form-${FORM_ID}`;const OWNER_KEY=\"__weeklyNudgeOwnerKey\";const MODULE_SCRIPT_ID=\"flodesk-universal-module\";const NOMODULE_SCRIPT_ID=\"flodesk-universal-nomodule\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function WeeklyNudge(props={}){const{bare=false,title=\"\",description=\"\",background=\"#FFFFFF\",primary=\"#203B47\",subtleBackground=\"#FFFFFF\",headingFont={fontFamily:\"Playfair Display, serif\",fontSize:\"40px\",lineHeight:\"1em\",letterSpacing:\"-0.04em\",fontWeight:700,fontStyle:\"normal\",textAlign:\"left\"},bodyFont={fontFamily:\"Montserrat, sans-serif\",fontSize:\"15px\",lineHeight:\"1.3em\",letterSpacing:\"-0.01em\",fontWeight:500,fontStyle:\"normal\",textAlign:\"left\"},style}=props;const isCanvas=RenderTarget.current()===RenderTarget.canvas;const reactId=React.useId();const instanceKey=React.useMemo(()=>`weekly-nudge-${reactId.replace(/:/g,\"\")}`,[reactId]);const[isOwner,setIsOwner]=React.useState(false);const[hasMountedForm,setHasMountedForm]=React.useState(false);const rootRef=React.useRef(null);const hasRequestedFormRef=React.useRef(false);const observerRef=React.useRef(null);const isElementVisible=React.useCallback(element=>{if(!element||typeof window===\"undefined\")return false;const styles=window.getComputedStyle(element);if(styles.display===\"none\"||styles.visibility===\"hidden\")return false;const rect=element.getBoundingClientRect();return rect.width>0&&rect.height>0;},[]);const evaluateOwnership=React.useCallback(()=>{if(typeof window===\"undefined\")return;if(isCanvas)return;const win=window;const rootEl=rootRef.current;const canOwn=isElementVisible(rootEl);const currentOwner=win[OWNER_KEY];const ownerEl=currentOwner?document.querySelector(`[data-weekly-nudge-instance=\"${currentOwner}\"]`):null;const ownerVisible=isElementVisible(ownerEl);if(!canOwn){React.startTransition(()=>setIsOwner(false));return;}if(!currentOwner||currentOwner===instanceKey||!ownerVisible){win[OWNER_KEY]=instanceKey;React.startTransition(()=>setIsOwner(true));}else{React.startTransition(()=>setIsOwner(false));}},[instanceKey,isCanvas,isElementVisible]);React.useEffect(()=>{if(typeof window===\"undefined\")return;if(isCanvas)return;const win=window;evaluateOwnership();const intervalId=window.setInterval(evaluateOwnership,600);return()=>{window.clearInterval(intervalId);if(win[OWNER_KEY]===instanceKey){delete win[OWNER_KEY];const container=document.getElementById(CONTAINER_ID);if(container)container.innerHTML=\"\";}};},[evaluateOwnership,instanceKey,isCanvas]);React.useEffect(()=>{if(typeof window===\"undefined\")return;if(isCanvas||!isOwner)return;const win=window;win.FlodeskObject=\"fd\";if(typeof win.fd!==\"function\"){const queued=function(...args){(queued.q=queued.q||[]).push(args);};queued.q=queued.q||[];win.fd=queued;}const existingModuleById=document.getElementById(MODULE_SCRIPT_ID);const existingNoModuleById=document.getElementById(NOMODULE_SCRIPT_ID);const hasModuleBySrc=!!document.querySelector('script[src*=\"assets.flodesk.com/universal.mjs\"]');const hasNoModuleBySrc=!!document.querySelector('script[src*=\"assets.flodesk.com/universal.js\"]');const stamp=Math.floor(Date.now()/(120*1e3))*60;if(!existingModuleById&&!hasModuleBySrc){const moduleScript=document.createElement(\"script\");moduleScript.id=MODULE_SCRIPT_ID;moduleScript.async=true;moduleScript.type=\"module\";moduleScript.src=`https://assets.flodesk.com/universal.mjs?v=${stamp}`;document.head.appendChild(moduleScript);}if(!existingNoModuleById&&!hasNoModuleBySrc){const noModuleScript=document.createElement(\"script\");noModuleScript.id=NOMODULE_SCRIPT_ID;noModuleScript.async=true;noModuleScript.noModule=true;noModuleScript.src=`https://assets.flodesk.com/universal.js?v=${stamp}`;document.head.appendChild(noModuleScript);}const container=document.getElementById(CONTAINER_ID);const isCurrentOwner=win[OWNER_KEY]===instanceKey;if(!container||!isCurrentOwner||hasRequestedFormRef.current)return;container.innerHTML=\"\";hasRequestedFormRef.current=true;win.fd?.(\"form\",{formId:FORM_ID,containerEl:`#${CONTAINER_ID}`});if(container.childNodes.length>0){React.startTransition(()=>setHasMountedForm(true));}else{React.startTransition(()=>setHasMountedForm(false));}const observer=new MutationObserver(mutations=>{const hasAdditions=mutations.some(mutation=>mutation.type===\"childList\"&&mutation.addedNodes.length>0);if(hasAdditions){React.startTransition(()=>setHasMountedForm(true));}});observer.observe(container,{childList:true,subtree:true});observerRef.current=observer;return()=>{observer.disconnect();observerRef.current=null;};},[instanceKey,isOwner,isCanvas]);React.useEffect(()=>{if(!isOwner){hasRequestedFormRef.current=false;React.startTransition(()=>setHasMountedForm(false));if(observerRef.current){observerRef.current.disconnect();observerRef.current=null;}}},[isOwner]);const shouldRenderContent=isCanvas||isOwner;const showPreview=isCanvas||!hasMountedForm;const sectionStyle=React.useMemo(()=>({position:\"relative\",width:\"100%\",boxSizing:\"border-box\",padding:!shouldRenderContent?\"0\":bare?\"0\":\"64px 6%\",color:primary,overflow:!shouldRenderContent?\"hidden\":undefined,...style,background:!shouldRenderContent?\"transparent\":bare?\"transparent\":\"#FFFFFF\",minHeight:1}),[background,bare,primary,shouldRenderContent,style]);return /*#__PURE__*/_jsxs(\"section\",{ref:rootRef,id:isOwner?\"weekly-nudge\":undefined,style:sectionStyle,\"aria-label\":\"Newsletter signup\",\"data-weekly-nudge-instance\":instanceKey,children:[/*#__PURE__*/_jsx(\"style\",{children:onlineDreaFlodeskCss+footerFlowCss+footerColorFrameCss}),shouldRenderContent&&!bare&&(title.trim()!==\"\"&&title.trim().toLowerCase()!==\"big inbox energy\"||description.trim()!==\"\")&&/*#__PURE__*/_jsxs(\"div\",{style:{maxWidth:1120,margin:\"0 auto 20px\"},children:[title.trim()!==\"\"&&title.trim().toLowerCase()!==\"big inbox energy\"&&/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,fontSize:headingFont.fontSize,lineHeight:headingFont.lineHeight,letterSpacing:headingFont.letterSpacing,fontFamily:headingFont.fontFamily||\"Playfair Display, serif\",fontWeight:headingFont.fontWeight,fontStyle:headingFont.fontStyle,textAlign:headingFont.textAlign},children:title}),description.trim()!==\"\"&&/*#__PURE__*/_jsx(\"p\",{style:{margin:\"12px 0 0\",maxWidth:680,fontSize:bodyFont.fontSize,lineHeight:bodyFont.lineHeight,letterSpacing:bodyFont.letterSpacing,fontFamily:bodyFont.fontFamily||\"Montserrat, sans-serif\",fontWeight:bodyFont.fontWeight,fontStyle:bodyFont.fontStyle,textAlign:bodyFont.textAlign},children:description})]}),shouldRenderContent&&isOwner?/*#__PURE__*/_jsx(\"div\",{id:CONTAINER_ID,className:\"od-flodesk od-flodesk--newsletter\",\"aria-live\":\"polite\",style:{maxWidth:1120,margin:\"0 auto\",width:\"100%\",minHeight:showPreview?0:72,display:\"block\"}}):null]});}addPropertyControls(WeeklyNudge,{bare:{type:ControlType.Boolean,title:\"Bare\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\",displayTextArea:true},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},primary:{type:ControlType.Color,title:\"Text\",defaultValue:\"#203B47\"},subtleBackground:{type:ControlType.Color,title:\"Preview Fill\",defaultValue:\"#FFFFFF\"},headingFont:{type:ControlType.Font,title:\"Heading Font\",defaultValue:{fontSize:\"40px\",variant:\"Bold\",letterSpacing:\"-0.04em\",lineHeight:\"1em\",textAlign:\"left\"},controls:\"extended\",defaultFontType:\"sans-serif\"},bodyFont:{type:ControlType.Font,title:\"Body Font\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\",textAlign:\"left\"},controls:\"extended\",defaultFontType:\"sans-serif\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"onlineDreaFlodeskCss\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"WeeklyNudge\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WeeklyNudge.map"],"mappings":"gPAIG,SAAwB,EAAY,EAAM,CAAC,EAAE,CAAC,GAAK,CAAC,OAAK,GAAM,QAAM,GAAG,cAAY,GAAG,aAAW,UAAU,UAAQ,UAAU,mBAAiB,UAAU,cAAY,CAAC,WAAW,0BAA0B,SAAS,OAAO,WAAW,MAAM,cAAc,UAAU,WAAW,IAAI,UAAU,SAAS,UAAU,MAAM,EAAE,WAAS,CAAC,WAAW,yBAAyB,SAAS,OAAO,WAAW,QAAQ,cAAc,UAAU,WAAW,IAAI,UAAU,SAAS,UAAU,MAAM,EAAE,SAAO,EAAY,EAAS,EAAa,QAAQ,IAAI,EAAa,OAAa,EAAQA,EAAY,EAAQ,EAAYC,MAAkB,gBAAgB,EAAQ,QAAQ,KAAK,EAAE,IAAI,CAAC,CAAO,CAAC,EAAO,CAAC,EAAQ,GAAYC,EA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