{"version":3,"file":"EmergencyNotice.D4bSZqJR.mjs","names":["_jsxs","_jsx","useId","useState","useEffect","__esmMin","ie","init_ssg_sandbox_shims","window","_e","init_jsx_runtime","c","p","init_npm_react_18_3_1","ce","init_framer_ChujFWHC","ControlType","useIsStaticRenderer","addPropertyControls","useReducedMotion","motion","init_framer_motion_1EwlFBEG","readDismissed","storageKey","writeDismissed","tickerSeconds","text","TriangleAlertIcon","EmergencyNotice","props","title","DEFAULT_TITLE","message","DEFAULT_MESSAGE","DEFAULT_STORAGE_KEY","dismissLabel","DEFAULT_DISMISS_LABEL","fillColor","DEFAULT_FILL","ticker","style","isStatic","reduceMotion","titleId","messageId","open","setOpen","ready","setReady","skipMotion","useTicker","dismiss","hidden","duration","loopSeconds","INK","init_EmergencyNotice"],"sources":["https:/framerusercontent.com/modules/1NwRbdXgs5dqua53zL7M/TKE36RpxggYGZN18BUtH/EmergencyNotice.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,useReducedMotion}from\"framer-motion\";import{useEffect,useId,useState}from\"react\";const DEFAULT_STORAGE_KEY=\"cmp-notice-happy-holidays-2026\";const DEFAULT_TITLE=\"Happy Holidays\";const DEFAULT_MESSAGE=\"Our office is closed for the holiday. We will resume normal business hours on Monday, 11/30.\";const DEFAULT_DISMISS_LABEL=\"Dismiss holiday notice\";const DEFAULT_FILL=\"#C2410C\";const INK=\"#FFFFFF\";function readDismissed(storageKey){if(typeof window===\"undefined\")return false;try{return window.sessionStorage.getItem(storageKey)===\"1\";}catch{return false;}}function writeDismissed(storageKey){if(typeof window===\"undefined\")return;try{window.sessionStorage.setItem(storageKey,\"1\");}catch{/* ignore quota / privacy mode */}}function tickerSeconds(text){return Math.max(14,Math.min(32,Math.round(text.length*.16)));}function TriangleAlertIcon(){return /*#__PURE__*/_jsxs(\"svg\",{width:\"22\",height:\"22\",viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",focusable:\"false\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M12 9v4\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M12 17h.01\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})]});}/**\n * Compact marketplace-style announcement bar for operational notices.\n * Title stays pinned; message tickers. Dismisses for the current browser session.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function EmergencyNotice(props){const{title=DEFAULT_TITLE,message=DEFAULT_MESSAGE,storageKey=DEFAULT_STORAGE_KEY,dismissLabel=DEFAULT_DISMISS_LABEL,fillColor=DEFAULT_FILL,ticker=true,style}=props;const isStatic=useIsStaticRenderer();const reduceMotion=useReducedMotion();const titleId=useId();const messageId=useId();const[open,setOpen]=useState(true);const[ready,setReady]=useState(isStatic);const skipMotion=Boolean(isStatic||reduceMotion);const useTicker=ticker&&!skipMotion;useEffect(()=>{if(isStatic){setOpen(true);setReady(true);return;}setOpen(!readDismissed(storageKey));setReady(true);},[isStatic,storageKey]);const dismiss=()=>{if(isStatic)return;writeDismissed(storageKey);setOpen(false);};const hidden=ready&&!open;const duration=skipMotion?0:hidden?.28:.48;const loopSeconds=tickerSeconds(message);if(!ready){return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"relative\",width:\"100%\",height:0,overflow:\"hidden\",...style}});}return /*#__PURE__*/_jsxs(motion.section,{className:useTicker?\"cmp-en\":\"cmp-en cmp-en--static\",role:\"region\",\"aria-labelledby\":titleId,\"aria-describedby\":messageId,\"aria-live\":\"polite\",\"aria-hidden\":hidden||undefined,initial:skipMotion?false:{y:\"-100%\",opacity:0},animate:hidden?{height:0,opacity:0,y:\"-100%\"}:{height:\"auto\",opacity:1,y:0},transition:{duration,ease:[.22,1,.36,1]},style:{position:\"relative\",width:\"100%\",overflow:\"hidden\",pointerEvents:hidden?\"none\":\"auto\",...style},children:[/*#__PURE__*/_jsxs(\"div\",{className:\"cmp-en__banner\",style:{background:fillColor},children:[/*#__PURE__*/_jsx(\"div\",{className:\"cmp-en__icon\",children:/*#__PURE__*/_jsx(TriangleAlertIcon,{})}),/*#__PURE__*/_jsx(\"h2\",{id:titleId,className:\"cmp-en__title\",children:title}),/*#__PURE__*/_jsx(\"p\",{id:messageId,className:\"cmp-en__sr\",children:message}),/*#__PURE__*/_jsx(\"div\",{className:\"cmp-en__viewport\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"cmp-en__track\",style:{animationDuration:`${loopSeconds}s`},children:[/*#__PURE__*/_jsx(\"span\",{className:\"cmp-en__item\",children:/*#__PURE__*/_jsx(\"span\",{className:\"cmp-en__message\",children:message})}),useTicker?/*#__PURE__*/_jsx(\"span\",{className:\"cmp-en__item\",children:/*#__PURE__*/_jsx(\"span\",{className:\"cmp-en__message\",children:message})}):null]})}),/*#__PURE__*/_jsx(\"button\",{type:\"button\",className:\"cmp-en__dismiss\",\"aria-label\":dismissLabel,onClick:dismiss,tabIndex:hidden?-1:0,children:/*#__PURE__*/_jsxs(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",\"aria-hidden\":\"true\",focusable:\"false\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M18 6 6 18\",stroke:\"currentColor\",strokeWidth:\"2.25\",strokeLinecap:\"round\"}),/*#__PURE__*/_jsx(\"path\",{d:\"m6 6 12 12\",stroke:\"currentColor\",strokeWidth:\"2.25\",strokeLinecap:\"round\"})]})})]}),/*#__PURE__*/_jsx(\"style\",{children:`\n                /* cmp-en type v5 pinned title 18/17 */\n                .cmp-en {\n                    box-sizing: border-box;\n                    display: block;\n                    background: transparent;\n                    font-family: Inter, \"Inter Fallback\", system-ui, sans-serif;\n                    color: ${INK};\n                    container-type: inline-size;\n                    container-name: cmp-en;\n                }\n                .cmp-en *,\n                .cmp-en *::before,\n                .cmp-en *::after {\n                    box-sizing: border-box;\n                }\n                .cmp-en__sr {\n                    position: absolute;\n                    width: 1px;\n                    height: 1px;\n                    padding: 0;\n                    margin: -1px;\n                    overflow: hidden;\n                    clip: rect(0, 0, 0, 0);\n                    white-space: nowrap;\n                    border: 0;\n                }\n                .cmp-en__banner {\n                    display: flex;\n                    align-items: center;\n                    gap: 12px;\n                    width: 100%;\n                    min-height: 56px;\n                    padding: 12px 12px 12px 16px;\n                    color: ${INK};\n                    box-shadow: 0 8px 24px rgba(11, 37, 69, 0.22);\n                }\n                .cmp-en__icon {\n                    display: flex;\n                    align-items: center;\n                    justify-content: center;\n                    width: 36px;\n                    height: 36px;\n                    border-radius: 999px;\n                    background: rgba(255, 255, 255, 0.16);\n                    color: ${INK};\n                    flex: none;\n                    animation: cmp-en-pulse 2.4s ease-in-out infinite;\n                }\n                .cmp-en__title {\n                    flex: none;\n                    margin: 0;\n                    max-width: none;\n                    font-size: 18px;\n                    font-weight: 700;\n                    line-height: 1.2;\n                    letter-spacing: -0.01em;\n                    color: ${INK};\n                    white-space: nowrap;\n                    text-decoration: underline;\n                    text-decoration-thickness: 2px;\n                    text-underline-offset: 3.5px;\n                    text-decoration-skip-ink: auto;\n                }\n                .cmp-en__viewport {\n                    flex: 1;\n                    min-width: 0;\n                    overflow: hidden;\n                }\n                .cmp-en:not(.cmp-en--static) .cmp-en__viewport {\n                    mask-image: linear-gradient(\n                        to right,\n                        transparent,\n                        #000 12px,\n                        #000 calc(100% - 16px),\n                        transparent\n                    );\n                    -webkit-mask-image: linear-gradient(\n                        to right,\n                        transparent,\n                        #000 12px,\n                        #000 calc(100% - 16px),\n                        transparent\n                    );\n                }\n                .cmp-en__track {\n                    display: flex;\n                    align-items: center;\n                    width: max-content;\n                    animation: cmp-en-ticker 22s linear infinite;\n                }\n                .cmp-en:hover .cmp-en__track,\n                .cmp-en:focus-within .cmp-en__track {\n                    animation-play-state: paused;\n                }\n                .cmp-en__item {\n                    display: inline-flex;\n                    align-items: center;\n                    padding-right: 80px;\n                    white-space: nowrap;\n                    color: ${INK};\n                }\n                .cmp-en__message {\n                    font-size: 17px;\n                    font-weight: 500;\n                    line-height: 1.3;\n                    color: ${INK};\n                    white-space: nowrap;\n                }\n                .cmp-en__dismiss {\n                    appearance: none;\n                    display: inline-flex;\n                    align-items: center;\n                    justify-content: center;\n                    width: 42px;\n                    height: 42px;\n                    flex: none;\n                    padding: 0;\n                    border: 0;\n                    border-radius: 999px;\n                    background: transparent;\n                    cursor: pointer;\n                    color: ${INK};\n                    transition: background-color 0.18s ease, transform 0.18s ease;\n                }\n                .cmp-en__dismiss:hover {\n                    background: rgba(255, 255, 255, 0.16);\n                    transform: scale(1.06);\n                }\n                .cmp-en__dismiss:active {\n                    transform: scale(0.96);\n                }\n                .cmp-en__dismiss:focus {\n                    outline: none;\n                }\n                .cmp-en__dismiss:focus-visible {\n                    outline: 2px solid ${INK};\n                    outline-offset: 2px;\n                }\n                .cmp-en--static .cmp-en__icon {\n                    animation: none;\n                }\n                .cmp-en--static .cmp-en__track {\n                    animation: none;\n                    width: 100%;\n                }\n                .cmp-en--static .cmp-en__item {\n                    padding-right: 8px;\n                    min-width: 0;\n                    max-width: 100%;\n                }\n                .cmp-en--static .cmp-en__message {\n                    display: block;\n                    overflow: hidden;\n                    text-overflow: ellipsis;\n                }\n                @container cmp-en (max-width: 1099.98px) {\n                    .cmp-en__banner {\n                        gap: 10px;\n                    }\n                    .cmp-en__title {\n                        font-size: 17px;\n                    }\n                    .cmp-en__message {\n                        font-size: 16px;\n                    }\n                }\n                @container cmp-en (max-width: 450.98px) {\n                    .cmp-en__banner {\n                        padding: 10px 8px 10px 12px;\n                        gap: 8px;\n                        min-height: 52px;\n                    }\n                    .cmp-en__icon {\n                        width: 32px;\n                        height: 32px;\n                    }\n                    .cmp-en__icon svg {\n                        width: 18px;\n                        height: 18px;\n                    }\n                    .cmp-en__title {\n                        font-size: 17px;\n                        text-underline-offset: 3px;\n                    }\n                    .cmp-en__message {\n                        font-size: 16px;\n                    }\n                    .cmp-en__dismiss {\n                        width: 40px;\n                        height: 40px;\n                    }\n                    .cmp-en__item {\n                        padding-right: 56px;\n                    }\n                }\n                @keyframes cmp-en-ticker {\n                    from { transform: translate3d(0, 0, 0); }\n                    to { transform: translate3d(-50%, 0, 0); }\n                }\n                @keyframes cmp-en-pulse {\n                    0%, 100% { transform: scale(1); }\n                    50% { transform: scale(1.06); }\n                }\n                @media (prefers-reduced-motion: reduce) {\n                    .cmp-en__icon,\n                    .cmp-en__track {\n                        animation: none !important;\n                    }\n                    .cmp-en__dismiss {\n                        transition: none;\n                    }\n                }\n            `})]});}addPropertyControls(EmergencyNotice,{title:{type:ControlType.String,title:\"Title\",defaultValue:DEFAULT_TITLE},message:{type:ControlType.String,title:\"Message\",displayTextArea:true,defaultValue:DEFAULT_MESSAGE},fillColor:{type:ControlType.Color,title:\"Fill\",defaultValue:DEFAULT_FILL},ticker:{type:ControlType.Boolean,title:\"Ticker\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},storageKey:{type:ControlType.String,title:\"Storage Key\",defaultValue:DEFAULT_STORAGE_KEY},dismissLabel:{type:ControlType.String,title:\"Dismiss Label\",defaultValue:DEFAULT_DISMISS_LABEL}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"EmergencyNotice\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EmergencyNotice.map"],"mappings":"A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