{"version":3,"file":"ProjectMarkets.BePRsLK1.mjs","names":[],"sources":["https:/framerusercontent.com/modules/NheDmjpP1bkGyGQjn3Gd/ZUN83Fr0c9NYDP2SOjTA/ProjectMarkets.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const CYAN=\"var(--token-cb527930-49f4-4d2e-a00c-258a7d7b2433)\";// Anything sitting over photography uses a fixed colour: the tokens flip in the\n// light palette and would vanish against the picture.\nconst ON_MEDIA=\"rgb(99, 207, 244)\";const HAIRLINE=\"var(--token-67fcfbb5-1cac-4c21-9e2d-70b5f58b48ee)\";const CSS=[// The site's \"Meta\" text preset, matched exactly so these read as the label\n// they replaced.\n\".per-mkt { display: flex; flex-wrap: wrap; align-items: baseline;\"+\" font-family: 'IBM Plex Mono', 'IBM Plex Mono Placeholder', monospace;\"+\" font-size: 11px; font-weight: 400; letter-spacing: 0.14em; line-height: 1.45;\"+\" text-transform: uppercase; color: \"+CYAN+\"; }\",'.per-mkt[data-tone=\"media\"] { color: '+ON_MEDIA+\"; }\",'.per-mkt[data-align=\"end\"] { justify-content: flex-end; text-align: right; }',// The separator hangs off the end of the word before it, not the start of the\n// word after: on a wrapped line a leading '·' reads as a bullet point.\n\".per-mkt-one:not(:last-child)::after { content: '\\xb7'; padding: 0 8px; color: \"+HAIRLINE+\"; }\",'.per-mkt[data-tone=\"media\"] .per-mkt-one:not(:last-child)::after { color: rgba(255, 255, 255, 0.35); }',// Stacked: one market per line, no separator. Where a list has to sit in a\n// narrow right-aligned column, wrapping an inline list leaves the separator\n// hanging at the end of the first line, so its words stop short of the line\n// below and the edge staggers.\n'.per-mkt[data-layout=\"stack\"] { flex-direction: column; flex-wrap: nowrap;'+\" align-items: flex-start; justify-content: flex-start; }\",'.per-mkt[data-layout=\"stack\"][data-align=\"end\"] { align-items: flex-end; }','.per-mkt[data-layout=\"stack\"] .per-mkt-one:not(:last-child)::after { content: none; }'].join(\"\\n\");function clean(value){return typeof value===\"string\"?value.trim():\"\";}/**\n * The vertical markets a project serves. Each market is a checkbox in the CMS and\n * arrives here as its own name or as nothing, so this renders however many were\n * ticked — and nothing at all when none were.\n *\n * It exists because a Framer text node holds one value: composing a list of ten\n * possible labels needs somewhere to do the joining.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 16\n */export default function ProjectMarkets(props){const markets=[props.one,props.two,props.three,props.four,props.five,props.six,props.seven,props.eight,props.nine,props.ten].map(clean).filter(Boolean);if(!markets.length)return /*#__PURE__*/_jsx(\"div\",{style:{...props.style}});return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style},children:[/*#__PURE__*/_jsx(\"style\",{\"aria-hidden\":\"true\",style:{display:\"none\"},dangerouslySetInnerHTML:{__html:CSS}}),/*#__PURE__*/_jsx(\"span\",{className:\"per-mkt\",\"data-tone\":props.tone===\"media\"?\"media\":\"page\",\"data-align\":props.align===\"end\"?\"end\":\"start\",\"data-layout\":props.layout===\"stack\"?\"stack\":\"inline\",children:markets.map(function(m){return /*#__PURE__*/_jsx(\"span\",{className:\"per-mkt-one\",children:m},m);})})]});}addPropertyControls(ProjectMarkets,{one:{type:ControlType.String,title:\"Corporate\",defaultValue:\"\"},two:{type:ControlType.String,title:\"Financial\",defaultValue:\"\"},three:{type:ControlType.String,title:\"NGO\",defaultValue:\"\"},four:{type:ControlType.String,title:\"Government\",defaultValue:\"\"},five:{type:ControlType.String,title:\"Defense\",defaultValue:\"\"},six:{type:ControlType.String,title:\"Mission Critical\",defaultValue:\"\"},seven:{type:ControlType.String,title:\"Entertainment\",defaultValue:\"\"},eight:{type:ControlType.String,title:\"Studios\",defaultValue:\"\"},nine:{type:ControlType.String,title:\"Healthcare\",defaultValue:\"\"},ten:{type:ControlType.String,title:\"Higher Education\",defaultValue:\"\"},tone:{type:ControlType.Enum,title:\"Tone\",options:[\"page\",\"media\"],optionTitles:[\"On the page\",\"Over a photograph\"],defaultValue:\"page\"},align:{type:ControlType.Enum,title:\"Align\",options:[\"start\",\"end\"],optionTitles:[\"Left\",\"Right\"],defaultValue:\"start\"},layout:{type:ControlType.Enum,title:\"Layout\",options:[\"inline\",\"stack\"],optionTitles:[\"Inline\",\"Stacked\"],defaultValue:\"inline\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProjectMarkets\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"16\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProjectMarkets.map"],"mappings":"8JAUyT,SAAS,EAAM,EAAM,CAAC,OAAO,OAAO,GAAQ,SAAS,EAAM,KAAK,EAAE,EAAG,CAY3X,SAAwB,EAAe,EAAM,CAAC,IAAM,EAAQ,CAAC,EAAM,IAAI,EAAM,IAAI,EAAM,MAAM,EAAM,KAAK,EAAM,KAAK,EAAM,IAAI,EAAM,MAAM,EAAM,MAAM,EAAM,KAAK,EAAM,GAAG,CAAC,CAAC,IAAI,CAAK,CAAC,CAAC,OAAO,OAAO,EAA8E,OAAxE,EAAQ,OAAoF,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,KAAK,EAAE,SAAS,CAAc,EAAK,QAAQ,CAAC,cAAc,OAAO,MAAM,CAAC,QAAQ,MAAM,EAAE,wBAAwB,CAAC,OAAO,CAAG,CAAC,CAAC,EAAe,EAAK,OAAO,CAAC,UAAU,UAAU,YAAY,EAAM,OAAO,QAAQ,QAAQ,OAAO,aAAa,EAAM,QAAQ,MAAM,MAAM,QAAQ,cAAc,EAAM,SAAS,QAAQ,QAAQ,SAAS,SAAS,EAAQ,IAAI,SAAS,EAAE,CAAC,OAAoB,EAAK,OAAO,CAAC,UAAU,c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