{"version":3,"file":"JSONLinks.Bfr1i_7c.mjs","names":["__esmMin","p","c","init_jsx_runtime","addPropertyControls","init_framer_Bf4_tcb2","ControlType","JsonLinks","props","items","json","wrapperStyle","headingStyle","headingSize","headingColor","headingLetterSpacing","listStyle","rowGap","linkStyle","linkSize","linkWeight","linkColor","heading","it","i","init_JSONLinks"],"sources":["https:/framerusercontent.com/modules/Wz8uT7Us1quE1MCKo2l0/OmG8yokp5FWz5up3XA7j/JSONLinks.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Renders a JSON-encoded array of {label, url} as a stack of links.\n * Heading is optional — leave blank to use a Framer text element above the\n * component as the section label.\n *\n * Used by the State Insurance pages for `Related state links` and\n * `Cross vertical links`. Returns null when the field is empty/unparseable\n * so the slot self-hides on records without data.\n */export default function JsonLinks(props){const{json,heading,headingColor,linkColor,fontFamily,headingSize,headingLetterSpacing,linkSize,linkWeight,gap,rowGap}=props;let items=[];try{items=json?JSON.parse(json):[];}catch{return null;}if(!Array.isArray(items)||items.length===0)return null;const wrapperStyle={display:\"flex\",flexDirection:\"column\",gap,fontFamily};const headingStyle={margin:0,fontSize:headingSize,fontWeight:500,color:headingColor,textTransform:\"uppercase\",letterSpacing:headingLetterSpacing};const listStyle={display:\"flex\",flexDirection:\"column\",gap:rowGap,margin:0,padding:0,listStyle:\"none\"};const linkStyle={fontSize:linkSize,fontWeight:linkWeight,color:linkColor,textDecoration:\"none\"};return /*#__PURE__*/_jsxs(\"nav\",{style:wrapperStyle,children:[heading?/*#__PURE__*/_jsx(\"div\",{style:headingStyle,children:heading}):null,/*#__PURE__*/_jsx(\"ul\",{style:listStyle,children:items.map((it,i)=>/*#__PURE__*/_jsx(\"li\",{children:/*#__PURE__*/_jsx(\"a\",{href:it.url,style:linkStyle,children:it.label})},i))})]});}addPropertyControls(JsonLinks,{json:{type:ControlType.String,title:\"JSON\",description:\"Bind to the CMS field (e.g. `Related state links`).\",defaultValue:\"\"},heading:{type:ControlType.String,title:\"Heading\",description:\"Leave blank to skip the heading and use a Framer text label above the component.\",defaultValue:\"\"},headingColor:{type:ControlType.Color,title:\"Heading color\",defaultValue:\"#6B7280\"},headingSize:{type:ControlType.Number,title:\"Heading size\",min:8,max:24,step:1,defaultValue:11},headingLetterSpacing:{type:ControlType.Number,title:\"Heading tracking\",min:0,max:4,step:.1,defaultValue:.6},linkColor:{type:ControlType.Color,title:\"Link color\",defaultValue:\"#1758DC\"},linkSize:{type:ControlType.Number,title:\"Link size\",min:10,max:24,step:1,defaultValue:14},linkWeight:{type:ControlType.Number,title:\"Link weight\",min:300,max:800,step:100,defaultValue:400},fontFamily:{type:ControlType.String,title:\"Font family\",defaultValue:\"inherit\"},gap:{type:ControlType.Number,title:\"Section gap\",min:0,max:32,step:1,defaultValue:8},rowGap:{type:ControlType.Number,title:\"Row gap\",min:0,max:16,step:1,defaultValue:4}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"JsonLinks\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./JSONLinks.map"],"mappings":"A,oKAQG,SAAwBO,EAAU,EAAM,CAAC,GAAK,CAAC,OAAK,UAAQ,eAAa,YAAU,aAAW,cAAY,uBAAqB,WAAS,aAAW,MAAI,UAAQC,EAAUC,EAAM,CAAC,EAAE,GAAG,CAAC,EAAMC,EAAK,KAAK,MAAMA,CAAI,EAAE,CAAC,CAAE,MAAM,CAAC,OAAO,IAAK,CAAC,GAAG,CAAC,MAAM,QAAQD,CAAK,GAAGA,EAAM,SAAS,EAAE,OAAO,KAAK,IAAME,EAAa,CAAC,QAAQ,OAAO,cAAc,SAAS,MAAI,YAAU,EAAQC,EAAa,CAAC,OAAO,EAAE,SAASC,EAAY,WAAW,IAAI,MAAMC,EAAa,cAAc,YAAY,cAAcC,CAAoB,EAAQC,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