{"version":3,"file":"DateOverrides.C2nOJfCi.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/KipwDjbs0PP4n82Hk9Mr/WIwMolzdrYMFnwEGLFoG/DateOverrides.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{cloneElement,forwardRef,isValidElement}from\"react\";// Terms, Privacy, Methodology, Accessibility and Diversity: the small line\n// under the photo always names the current month and year, so the page reads\n// as current with no monthly edit. Three parts. The page is built with the\n// month it was published in, which is what a browser without scripts shows.\n// The small script right after the line runs before the page is first drawn\n// and writes the current month, so no reader sees the month change. And the\n// layer itself renders the same words once the page wakes up, so both agree.\n// The month is read in Pacific time so every reader sees the same line.\n// Only the first line of the layer changes: a second line under it (the\n// fixed \"Effective January 2025\" on Privacy) stays exactly as written.\nconst PREFIX=\"Current as of \";function currentDateLine(){const month=new Intl.DateTimeFormat(\"en-US\",{month:\"long\",year:\"numeric\",timeZone:\"America/Los_Angeles\"}).format(new Date);return PREFIX+month;}const CURRENT_DATE_SCRIPT=`(function(){try{var s=document.currentScript,b=s&&s.previousElementSibling,p=b&&(b.querySelector(\"p\")||b);if(!p)return;var n=document.createTreeWalker(p,4).nextNode();if(!n)return;var t=\"${PREFIX}\"+new Intl.DateTimeFormat(\"en-US\",{month:\"long\",year:\"numeric\",timeZone:\"America/Los_Angeles\"}).format(new Date());if(n.nodeValue!==t)n.nodeValue=t}catch(e){}})()`;// Swaps the first words of the layer for the current line and keeps its\n// paragraph, style, tag and any later line exactly as designed.\nfunction withLine(node,line,state){if(typeof node===\"string\"){if(state.done)return node;state.done=true;return line;}if(Array.isArray(node))return node.map(child=>withLine(child,line,state));if(/*#__PURE__*/isValidElement(node)){const children=node.props.children;if(children===undefined)return node;const next=withLine(children,line,state);const list=Array.isArray(next)?next:[next];return /*#__PURE__*/cloneElement(node,{suppressHydrationWarning:true},...list);}return node;}// Goes on the date line of a legal or policy page.\nexport function withCurrentDate(Component){return /*#__PURE__*/forwardRef((props,ref)=>/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Component,{...props,ref:ref,children:withLine(props.children,currentDateLine(),{done:false})}),/*#__PURE__*/_jsx(\"script\",{dangerouslySetInnerHTML:{__html:CURRENT_DATE_SCRIPT}})]}));}\nexport const __FramerMetadata__ = {\"exports\":{\"withCurrentDate\":{\"type\":\"reactHoc\",\"name\":\"withCurrentDate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DateOverrides.map"],"mappings":"yIAU8B,SAAS,GAAiB,CAAC,IAAM,EAAM,IAAI,KAAK,eAAe,QAAQ,CAAC,MAAM,OAAO,KAAK,UAAU,SAAS,qBAAqB,CAAC,CAAC,CAAC,OAAO,IAAI,IAAI,EAAE,OAAO,EAAO,CAAM,CAExM,SAAS,EAAS,EAAK,EAAK,EAAM,CAAC,GAAG,OAAO,GAAO,SAAoD,OAAvC,EAAM,KAAY,GAAK,EAAM,KAAK,GAAY,GAAM,GAAG,MAAM,QAAQ,CAAI,EAAE,OAAO,EAAK,IAAI,GAAO,EAAS,EAAM,EAAK,CAAK,CAAC,EAAE,GAAgB,EAAe,CAAI,EAAE,CAAC,IAAM,EAAS,EAAK,MAAM,SAAS,GAAG,IAAW,IAAA,GAAU,OAAO,EAAK,IAAM,EAAK,EAAS,EAAS,EAAK,CAAK,EAA6C,OAAoB,EAAa,EAAK,CAAC,yBAAyB,EAAI,EAAE,GAAtG,MAAM,QAAQ,CAAI,EAAE,EAAK,CAAC,CAAI,CAA+E,CAAE,CAAC,OAAO,CAAK,CAC5d,SAAgB,EAAgB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAmB,EAAMA,EAAU,CAAC,SAAS,CAAc,EAAK,EAAU,CAAC,GAAG,EAAU,MAAI,SAAS,EAAS,EAAM,SAAS,EAAgB,EAAE,CAAC,KAAK,EAAK,CAAC,CAAC,CAAC,EAAe,EAAK,SAAS,CAAC,wBAAwB,CAAC,OAAO,CAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,qBAbzP,IAA0D,EAUlI,EAAO,iBAAkM,EAAoB,8LAA8L,EAAO"}