{"version":3,"file":"ApplicationContributorsDynamic.BjsfMSY4.mjs","names":["React.useState","React.useMemo","React.useCallback","__esmMin","pe","init_npm_react_18_3_1","init_jsx_runtime","ne","c","p","_e","init_framer_Bf4_tcb2","ControlType","addPropertyControls","ContributorProfileLink","active","setActive","url","name","nameFont","linkHoverColor","primaryTextColor","showLinkIcon","ApplicationContributorsDynamic","props","visibleContributors","contributors","item","safeUrl","trimmed","value","descriptionText","description","hideCardWhenEmpty","heading","backgroundColor","borderColor","style","headingFont","showDescription","mutedTextColor","descriptionFont","contributor","roleTextColor","roleFont","contributionFont","index","init_ApplicationContributorsDynamic"],"sources":["https:/framerusercontent.com/modules/JD5w6SryTUjyo9AF0nbB/xpKLQj5MUF3pgwH04KEM/ApplicationContributorsDynamic.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Displays a small external-link symbol only for contributors with\n * a valid http(s) profile URL. This lives inside the shared card,\n * so each Framer instance retains its own separate list of people.\n */function ContributorProfileLink({name,url,primaryTextColor,linkHoverColor,showLinkIcon,nameFont}){const[active,setActive]=React.useState(false);return /*#__PURE__*/_jsxs(\"a\",{href:url,target:\"_blank\",rel:\"noopener noreferrer\",\"aria-label\":`View ${name}'s profile (opens in a new tab)`,title:\"View contributor profile (opens in a new tab)\",onMouseEnter:()=>setActive(true),onMouseLeave:()=>setActive(false),onFocus:()=>setActive(true),onBlur:()=>setActive(false),style:{...nameFont,display:\"inline-flex\",alignItems:\"center\",flexWrap:\"wrap\",gap:6,width:\"fit-content\",maxWidth:\"100%\",color:active?linkHoverColor:primaryTextColor,textDecoration:active?\"underline\":\"none\",textUnderlineOffset:\"3px\",cursor:\"pointer\",transition:\"color 160ms ease\",overflowWrap:\"anywhere\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{minWidth:0},children:name}),showLinkIcon?/*#__PURE__*/_jsxs(\"svg\",{\"aria-hidden\":\"true\",focusable:\"false\",width:\"15\",height:\"15\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.8\",strokeLinecap:\"round\",strokeLinejoin:\"round\",style:{flexShrink:0,opacity:.82},children:[/*#__PURE__*/_jsx(\"path\",{d:\"M14 4h6v6\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M10 14 20 4\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M20 13v6a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h6\"})]}):null]});}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function ApplicationContributorsDynamic(props){const{contributors=[],hideCardWhenEmpty=true,heading=\"Contributors\",description=\"\",showDescription=false,backgroundColor=\"#FFFFFF\",borderColor=\"#F5F5F5\",primaryTextColor=\"#000000\",mutedTextColor=\"#666666\",roleTextColor=\"#526E7A\",linkHoverColor=\"#087F97\",showLinkIcon=true,headingFont,descriptionFont,nameFont,roleFont,contributionFont,style}=props;const visibleContributors=React.useMemo(()=>{return(contributors??[]).filter(item=>item?.visible);},[contributors]);const safeUrl=React.useCallback(value=>{const trimmed=(value??\"\").trim();if(!trimmed)return\"\";if(/^https?:\\/\\//i.test(trimmed))return trimmed;return\"\";},[]);// An empty custom description uses the default concise help text.\n// A page-specific description always takes precedence.\nconst descriptionText=description?.trim()||\"Select a contributor's name to view their profile, where available.\";if(hideCardWhenEmpty&&visibleContributors.length===0){return null;}return /*#__PURE__*/_jsxs(\"section\",{\"aria-label\":heading||\"Contributors\",style:{position:\"relative\",width:\"100%\",height:\"auto\",boxSizing:\"border-box\",background:backgroundColor,border:`1px solid ${borderColor}`,borderRadius:20,padding:24,display:\"flex\",flexDirection:\"column\",gap:16,...style},children:[/*#__PURE__*/_jsxs(\"header\",{style:{display:\"flex\",flexDirection:\"column\",gap:8},children:[/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,color:primaryTextColor,...headingFont},children:heading}),showDescription?/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:mutedTextColor,...descriptionFont},children:descriptionText}):null]}),visibleContributors.length>0?/*#__PURE__*/_jsx(\"ul\",{style:{listStyle:\"none\",margin:0,padding:0,display:\"flex\",flexDirection:\"column\",gap:16},children:visibleContributors.map((contributor,index)=>{const url=safeUrl(contributor.profileUrl);return /*#__PURE__*/_jsxs(\"li\",{style:{margin:0,padding:0,display:\"flex\",flexDirection:\"column\",gap:4},children:[url?/*#__PURE__*/_jsx(ContributorProfileLink,{name:contributor.name,url:url,primaryTextColor:primaryTextColor,linkHoverColor:linkHoverColor,showLinkIcon:showLinkIcon,nameFont:nameFont}):/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:primaryTextColor,...nameFont},children:contributor.name}),contributor.role?.trim()?/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:roleTextColor,fontSize:\"13px\",lineHeight:\"1.35em\",...roleFont,fontStyle:\"italic\",overflowWrap:\"anywhere\"},children:contributor.role.trim()}):null,contributor.contribution?.trim()?/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:mutedTextColor,...contributionFont},children:contributor.contribution}):null]},`${contributor.name}-${index}`);})}):null]});}addPropertyControls(ApplicationContributorsDynamic,{heading:{type:ControlType.String,title:\"Heading\",defaultValue:\"Contributors\"},showDescription:{type:ControlType.Boolean,title:\"Show Desc\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"Select a contributor's name to view their profile, where available.\",displayTextArea:true,hidden:props=>!props.showDescription},hideCardWhenEmpty:{type:ControlType.Boolean,title:\"Hide Empty\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},contributors:{type:ControlType.Array,title:\"Contributors\",defaultValue:[],control:{type:ControlType.Object,controls:{name:{type:ControlType.String,title:\"Name\",defaultValue:\"Contributor Name\"},role:{type:ControlType.String,title:\"Role / Subtitle\",defaultValue:\"\",placeholder:\"Lead Editor \\xb7 Visual Designer\"},contribution:{type:ControlType.String,title:\"Contribution\",defaultValue:\"Contribution details\",displayTextArea:true},profileUrl:{type:ControlType.String,title:\"Profile URL\",defaultValue:\"\",placeholder:\"https://example.com/profile\"},visible:{type:ControlType.Boolean,title:\"Visible\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\"}}}},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"#F5F5F5\"},primaryTextColor:{type:ControlType.Color,title:\"Primary\",defaultValue:\"#000000\"},mutedTextColor:{type:ControlType.Color,title:\"Muted\",defaultValue:\"#666666\"},roleTextColor:{type:ControlType.Color,title:\"Role Color\",defaultValue:\"#526E7A\"},showLinkIcon:{type:ControlType.Boolean,title:\"Link Icon\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},linkHoverColor:{type:ControlType.Color,title:\"Link Hover\",defaultValue:\"#087F97\"},headingFont:{type:ControlType.Font,title:\"Heading Font\",defaultValue:{fontSize:\"18px\",variant:\"Bold\",letterSpacing:\"0em\",lineHeight:\"1.2em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},descriptionFont:{type:ControlType.Font,title:\"Desc Font\",defaultValue:{fontSize:\"14px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.4em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},nameFont:{type:ControlType.Font,title:\"Name Font\",defaultValue:{fontSize:\"15px\",variant:\"Bold\",letterSpacing:\"0em\",lineHeight:\"1.3em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},roleFont:{type:ControlType.Font,title:\"Role Font\",defaultValue:{fontSize:\"13px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.35em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},contributionFont:{type:ControlType.Font,title:\"Contribution Font\",defaultValue:{fontSize:\"14px\",variant:\"Regular\",letterSpacing:\"0em\",lineHeight:\"1.4em\"},controls:\"extended\",defaultFontType:\"sans-serif\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ApplicationContributorsDynamic\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ApplicationContributorsDynamic.map"],"mappings":"A,+LAIG,SAASc,EAAuB,CAAC,OAAK,MAAI,mBAAiB,iBAAe,eAAa,YAAU,CAAC,GAAK,CAACC,EAAOC,GAAWhB,EAAe,EAAK,EAAE,MAAoB,gBAAM,IAAI,CAAC,KAAKiB,EAAI,OAAO,SAAS,IAAI,sBAAsB,aAAa,QAAQC,EAAK,iCAAiC,MAAM,gDAAgD,iBAAiBF,EAAU,EAAI,EAAE,iBAAiBA,EAAU,EAAK,EAAE,YAAYA,EAAU,EAAI,EAAE,WAAWA,EAAU,EAAK,EAAE,MAAM,CAAC,GAAGG,EAAS,QAAQ,cAAc,WAAW,SAAS,SAAS,OAAO,IAAI,EAAE,MAAM,cAAc,SAAS,OAAO,MAAMJ,EAAOK,EAAeC,EAAiB,eAAeN,EAAO,YAAY,OAAO,oBAAoB,MAAM,OAAO,UAAU,WAAW,mBAAmB,aAAa,UAAU,EAAE,SAAS,CAAc,gBAAK,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,SAASG,CAAI,CAAC,EAAEI,EAA0B,gBAAM,MAAM,CAAC,cAAc,OAAO,UAAU,QAAQ,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,OAAO,eAAe,YAAY,MAAM,cAAc,QAAQ,eAAe,QAAQ,MAAM,CAAC,WAAW,EAAE,QAAQ,GAAG,EAAE,SAAS,CAAc,gBAAK,OAAO,CAAC,EAAE,WAAW,CAAC,EAAe,gBAAK,OAAO,CAAC,EAAE,aAAa,CAAC,EAAe,gBAAK,OAA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