{"version":3,"file":"SourcesExpander.D862A8V_.mjs","names":["React.forwardRef","useSyncExternalStore","__esmMin","me","init_npm_react_18_3_1","init_jsx_runtime","J","c","ce","motion","addPropertyControls","init_framer_Bf4_tcb2","useSVGTemplate","cx","withCSS","ControlType","mask","Base","MotionSVG","SVG","svg","getProps","Icon","init_Ije9pWgN8","props","rest","animated","dots","stroke","width1","restProps","href","className","lKf_CQTz5","fICyAUQY1","style","createExpander","isOpen","listeners","setOpen","next","listener","subscribe","useOpen","open","toggle","onKeyDown","event","Component","withSourcesToggle","sources","withSourcesPanel","showWhenSourcesOpen","showWhenSourcesClosed","withSourcesChevron","withTemplateToggle","template","withTemplatePanel","showWhenTemplateOpen","showWhenTemplateClosed","withTemplateChevron","init_SourcesExpander"],"sources":["https:/framerusercontent.com/modules/js1leFgNDeqePLZh4P0U/HWO13pbdqiy8q9HeszL5/Ije9pWgN8.js","https:/framerusercontent.com/modules/t6VnLvQhLoXt2LeOfDEH/HqokdpA4teUGV85hCqfF/SourcesExpander.js"],"sourcesContent":["// Generated by Framer (6ca5d98)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 6.5 0 L 3.25 3.5 L 0 0\" fill=\"transparent\" height=\"3.5px\" id=\"yjbKDum4P\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--1335ju, 1.5)\" stroke=\"var(--18mrqx2, rgb(0, 0, 0))\" transform=\"translate(8.75 10.75)\" width=\"6.5px\"/></svg>';const getProps=({dots,height,id,stroke,width,width1,...props})=>{return{...props,BKVe8Pgvw:dots??props.BKVe8Pgvw??1,fICyAUQY1:stroke??props.fICyAUQY1??\"rgb(0, 0, 0)\",lKf_CQTz5:width1??props.lKf_CQTz5??1.5};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,fICyAUQY1,lKf_CQTz5,BKVe8Pgvw,...restProps}=getProps(props);const href=useSVGTemplate(\"3271978817\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-oBFII\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--1335ju\":lKf_CQTz5,\"--18mrqx2\":fICyAUQY1,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-oBFII { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"fICyAUQY1\":\"stroke\",\"lKf_CQTz5\":\"width1\",\"BKVe8Pgvw\":\"dots\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Chevron Down\",\"color\":{\"type\":\"variable\",\"value\":\"18mrqx2\"},\"set\":{\"localId\":\"vectorSet/SuYHhKUZG\",\"id\":\"SuYHhKUZG\",\"moduleId\":\"EqX8thWQjdZcOB1c6p5N\"}}\n * @framerDisableUnlink true\n */const Icon=withCSS(Component,css,\"framer-oBFII\");Icon.displayName=\"Chevron Down\";export default Icon;addPropertyControls(Icon,{fICyAUQY1:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Stroke\",type:ControlType.Color},lKf_CQTz5:{defaultValue:1.5,displayStepper:true,hidden:false,max:4,min:0,step:.5,title:\"Width\",type:ControlType.Number},BKVe8Pgvw:{defaultValue:1,displayStepper:true,hidden:true,max:4,min:1,title:\"Dots\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"24\",\"framerVariables\":\"{\\\"fICyAUQY1\\\":\\\"stroke\\\",\\\"lKf_CQTz5\\\":\\\"width1\\\",\\\"BKVe8Pgvw\\\":\\\"dots\\\"}\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerVector\":\"{\\\"name\\\":\\\"Chevron Down\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"18mrqx2\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/SuYHhKUZG\\\",\\\"id\\\":\\\"SuYHhKUZG\\\",\\\"moduleId\\\":\\\"EqX8thWQjdZcOB1c6p5N\\\"}}\",\"framerImmutableVariables\":\"true\",\"framerDisableUnlink\":\"true\",\"framerIntrinsicHeight\":\"24\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// SourcesExpander.tsx\n// Collapses a guide's sources list behind a \"Show all sources\" toggle, and (on the phone policy guide) the\n// full policy template behind its own toggle. Each set has its own open state, so the two don't move together.\n// Sources: withSourcesToggle, withSourcesPanel, showWhenSourcesClosed, showWhenSourcesOpen, withSourcesChevron.\n// Template: withTemplateToggle, withTemplatePanel, showWhenTemplateClosed, showWhenTemplateOpen, withTemplateChevron.\n// A closed panel stays in the page HTML (display: none), so its text and links remain crawlable.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useSyncExternalStore}from\"react\";function createExpander(){let isOpen=false;const listeners=new Set;const setOpen=next=>{isOpen=next;listeners.forEach(listener=>listener());};const subscribe=listener=>{listeners.add(listener);return()=>{listeners.delete(listener);};};const useOpen=()=>useSyncExternalStore(subscribe,()=>isOpen,()=>false);const withToggle=Component=>function ExpanderToggle(props){const open=useOpen();const toggle=()=>setOpen(!open);const onKeyDown=event=>{if(event.key!==\"Enter\"&&event.key!==\" \")return;event.preventDefault();toggle();};return /*#__PURE__*/_jsx(Component,{...props,role:\"button\",tabIndex:0,\"aria-expanded\":open,onClick:toggle,onKeyDown:onKeyDown});};const withPanel=Component=>function ExpanderPanel(props){const open=useOpen();// Close again when leaving the page, so the next guide starts collapsed.\n    useEffect(()=>()=>setOpen(false),[]);return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,display:open?undefined:\"none\"}});};const showWhenOpen=Component=>function OpenLabel(props){const open=useOpen();return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,display:open?undefined:\"none\"}});};const showWhenClosed=Component=>function ClosedLabel(props){const open=useOpen();return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,display:open?\"none\":undefined}});};const withChevron=Component=>function ExpanderChevron(props){const open=useOpen();return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,transform:open?\"rotate(180deg)\":\"none\",transition:\"transform 0.2s ease\"}});};return{withToggle,withPanel,showWhenOpen,showWhenClosed,withChevron};}const sources=createExpander();export function withSourcesToggle(Component){return sources.withToggle(Component);}export function withSourcesPanel(Component){return sources.withPanel(Component);}export function showWhenSourcesOpen(Component){return sources.showWhenOpen(Component);}export function showWhenSourcesClosed(Component){return sources.showWhenClosed(Component);}export function withSourcesChevron(Component){return sources.withChevron(Component);}const template=createExpander();export function withTemplateToggle(Component){return template.withToggle(Component);}export function withTemplatePanel(Component){return template.withPanel(Component);}export function showWhenTemplateOpen(Component){return template.showWhenOpen(Component);}export function showWhenTemplateClosed(Component){return template.showWhenClosed(Component);}export function withTemplateChevron(Component){return template.withChevron(Component);}\nexport const __FramerMetadata__ = {\"exports\":{\"withSourcesToggle\":{\"type\":\"reactHoc\",\"name\":\"withSourcesToggle\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"showWhenTemplateOpen\":{\"type\":\"reactHoc\",\"name\":\"showWhenTemplateOpen\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTemplateToggle\":{\"type\":\"reactHoc\",\"name\":\"withTemplateToggle\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSourcesPanel\":{\"type\":\"reactHoc\",\"name\":\"withSourcesPanel\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"showWhenTemplateClosed\":{\"type\":\"reactHoc\",\"name\":\"showWhenTemplateClosed\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTemplateChevron\":{\"type\":\"reactHoc\",\"name\":\"withTemplateChevron\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"showWhenSourcesClosed\":{\"type\":\"reactHoc\",\"name\":\"showWhenSourcesClosed\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTemplatePanel\":{\"type\":\"reactHoc\",\"name\":\"withTemplatePanel\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSourcesChevron\":{\"type\":\"reactHoc\",\"name\":\"withSourcesChevron\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"showWhenSourcesOpen\":{\"type\":\"reactHoc\",\"name\":\"showWhenSourcesOpen\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SourcesExpander.map"],"mappings":"A,qTACgM,EAAK,0BAAgC,EAAkB,gBAAW,SAAS,EAAM,EAAI,CAAC,MAAoB,gBAAK,MAAM,CAAC,GAAGwB,EAAU,MAAI,SAASA,EAAM,QAAQ,CAAC,CAAE,CAAC,EAAQ,EAAUf,EAAO,OAAOQ,CAAI,EAAQ,EAAiB,iBAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAGQ,GAAMD,EAAM,OAAOE,EAAsB,gBAAKR,EAAU,CAAC,GAAGO,EAA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