{"version":3,"file":"TopicLink.H8jBqBeM.mjs","names":[],"sources":["https:/framerusercontent.com/modules/xvXmnvMYFztRj0RYD62h/TyLvdZFf1TLcqvmDrKCO/TopicLink.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * Drop inside a Themen card on a Rechtsgebiet page. Bind:\n *   rechtsgebietSlug → current item's Rechtsgebiet / Slug\n *   itemSlug         → current item's Slug\n * Result: a link to /<rechtsgebietSlug>/<itemSlug>.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerDisableUnlink\n */export default function TopicLink(props){const{rechtsgebietSlug=\"\",itemSlug=\"\",label=\"Mehr erfahren\",stretched=false,openInNewTab=false}=props;const href=rechtsgebietSlug&&itemSlug?`/${rechtsgebietSlug}/${itemSlug}`:\"#\";const isCanvas=RenderTarget.current()===RenderTarget.canvas;if(stretched){return /*#__PURE__*/_jsx(\"a\",{href:href,target:openInNewTab?\"_blank\":undefined,rel:openInNewTab?\"noopener noreferrer\":undefined,\"aria-label\":label,style:{position:\"absolute\",inset:0,zIndex:10,display:\"block\",textIndent:\"-9999px\",overflow:\"hidden\",outline:isCanvas?\"1px dashed rgba(0,128,255,.4)\":undefined},children:label});}return /*#__PURE__*/_jsx(\"a\",{href:href,target:openInNewTab?\"_blank\":undefined,rel:openInNewTab?\"noopener noreferrer\":undefined,style:{display:\"inline-flex\",alignItems:\"center\",gap:\"0.4em\",textDecoration:\"none\",color:\"inherit\",font:\"inherit\",cursor:\"pointer\"},children:label});}addPropertyControls(TopicLink,{rechtsgebietSlug:{type:ControlType.String,title:\"Rechtsgebiet Slug\",defaultValue:\"\"},itemSlug:{type:ControlType.String,title:\"Item Slug\",defaultValue:\"\"},label:{type:ControlType.String,title:\"Label\",defaultValue:\"Mehr erfahren\"},stretched:{type:ControlType.Boolean,title:\"Stretched overlay\",defaultValue:false,description:\"When on, renders as an invisible link over the parent — the whole card becomes clickable.\"},openInNewTab:{type:ControlType.Boolean,title:\"Open in new tab\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TopicLink\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TopicLink.map"],"mappings":"8JASG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,mBAAiB,GAAG,WAAS,GAAG,QAAM,gBAAgB,YAAU,GAAM,eAAa,IAAO,EAAY,EAAK,GAAkB,EAAS,IAAI,EAAiB,GAAG,IAAW,IAAU,EAAS,EAAa,QAAQ,IAAI,EAAa,OAA0V,OAAhV,EAA+B,EAAK,IAAI,CAAM,OAAK,OAAO,EAAa,SAAS,IAAA,GAAU,IAAI,EAAa,sBAAsB,IAAA,GAAU,aAAa,EAAM,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,OAAO,GAAG,QAAQ,QAAQ,WAAW,UAAU,SAAS,SAAS,QAAQ,EAAS,gCAAgC,IAAA,EAAS,EAAE,SAAS,CAAK,CAAC,EAAuB,EAAK,IAAI,CAAM,OAAK,OAAO,EAAa,SAAS,IAAA,GAAU,IAAI,EAAa,sBAAsB,IAAA,GAAU,MAAM,CAAC,QAAQ,cAAc,WAAW,SAAS,IAAI,QAAQ,eAAe,OAAO,MAAM,UAAU,KAAK,UAAU,OAAO,SAAS,EAAE,SAAS,CAAK,CAAC,CAAE,iBATz1B,IAAiE,EASyxB,EAAoB,EAAU,CAAC,iBAAiB,CAAC,KAAK,EAAY,OAAO,MAAM,oBAAoB,aAAa,EAAE,EAAE,SAAS,CAAC,KAAK,EAAY,OAAO,MAAM,YAAY,aAAa,EAAE,EAAE,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,eAAe,EAAE,UAAU,CAAC,KAAK,EAAY,QAAQ,MAAM,oBAAoB,aAAa,GAAM,YAAY,2FAA2F,EAAE,aAAa,CAAC,KAAK,EAAY,QAAQ,MAAM,kBAAkB,aAAa,EAAK,CAAC,CAAC"}