{"version":3,"file":"TIGTopicTools.CcsWZPDF.mjs","names":["React.useState","React.useId"],"sources":["https:/framerusercontent.com/modules/MiAGV6vM2F0jfJdwJZ3p/EY3vR36RnuI7dZnsuxAG/TIGTopicTools.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,Link}from\"framer\";const EXPLORE=[\"Creative Leadership\",\"Creative Technology\",\"Consumer Behaviour\",\"Media Economics\",\"Advertising Media\",\"Airline Operations\",\"Brand & Distribution\",\"Design & Experience\",\"Airport Strategy\",\"Route Development\",\"Airline Network Planning\",\"Jet Airways\",\"Rail and Air Connectivity\"];const SHOW_TOPICS={AvGeek:[\"Airline Strategy\",\"Aircraft & Fleets\",\"Airports & Infrastructure\",\"Aviation Technology\",\"Loyalty & Passenger Experience\",\"Aviation Finance\"],AdGeek:[\"Agency Business\",\"Brand Strategy\",\"Client Relationships\",\"Agency Economics\"]};const RELATED={\"Airline Strategy\":[\"Aircraft & Fleets\",\"Airports & Infrastructure\",\"Loyalty & Passenger Experience\",\"Aviation Technology\"],\"Agency Business\":[\"Brand Strategy\",\"Creative Leadership\",\"Client Relationships\",\"Agency Economics\"],\"Aircraft & Fleets\":[\"Airline Strategy\",\"Aviation Technology\"],\"Airports & Infrastructure\":[\"Airline Strategy\",\"Aviation Technology\"],\"Aviation Technology\":[\"Airline Strategy\",\"Airports & Infrastructure\"],\"Loyalty & Passenger Experience\":[\"Airline Strategy\",\"Aviation Technology\"],\"Brand Strategy\":[\"Agency Business\",\"Creative Leadership\",\"Consumer Behaviour\"],\"Aviation Finance\":[\"Aircraft & Fleets\",\"Airline Strategy\"],\"Client Relationships\":[\"Agency Business\",\"Brand Strategy\"],\"Agency Economics\":[\"Agency Business\",\"Client Relationships\"]};const PERMANENT_TOPICS={\"Airline Strategy\":\"/topics/airline-strategy\",\"Aircraft & Fleets\":\"/topics/aircraft-fleets\",\"Airports & Infrastructure\":\"/topics/airports-infrastructure\",\"Aviation Technology\":\"/topics/aviation-technology\",\"Loyalty & Passenger Experience\":\"/topics/loyalty-passenger-experience\",\"Agency Business\":\"/topics/agency-business\",\"Brand Strategy\":\"/topics/brand-strategy\",\"Aviation Finance\":\"/topics/aviation-finance\",\"Client Relationships\":\"/topics/client-relationships\",\"Agency Economics\":\"/topics/agency-economics\"};function topicHref(label){return PERMANENT_TOPICS[label]||`/search?topic=${encodeURIComponent(label)}`;}function FilterLink({label}){const href=topicHref(label);return PERMANENT_TOPICS[label]?/*#__PURE__*/_jsx(Link,{href:href,openInNewTab:false,children:/*#__PURE__*/_jsx(\"a\",{children:label})}):/*#__PURE__*/_jsx(\"a\",{href:href,children:label});}const css=`.tig-topic-tools.archive-search{width:max-content}.tig-topic-tools .archive-search-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;min-width:44px;justify-content:center;white-space:nowrap;color:#132333;font:500 12px/1.5 'IBM Plex Mono',monospace;text-decoration:none}.tig-topic-tools .archive-search-link:hover{text-decoration:underline;text-underline-offset:4px}.tig-topic-tools .archive-search-link svg{width:14px;height:14px;flex:none}.tig-topic-tools .search-label-mobile{display:none}@media(max-width:767px){.tig-topic-tools .search-label-desktop{display:none}.tig-topic-tools .search-label-mobile{display:inline}}@media(max-width:359px){.tig-topic-tools .archive-search-link svg{display:none}}.tig-topic-tools .entry-links{display:flex;flex-wrap:wrap;gap:8px 24px}.tig-topic-tools .entry-links a{display:inline-flex;align-items:center;min-height:44px;color:#132333;font:500 12px/1.5 'IBM Plex Mono',monospace;text-decoration:underline;text-underline-offset:4px}.tig-topic-tools{position:relative;width:100%;color:#132333;font-family:Inter,sans-serif}.tig-topic-tools *{box-sizing:border-box}.tig-topic-tools h2{font:600 28px/1.2 'Space Grotesk',sans-serif;letter-spacing:-.02em;margin:0 0 16px}.tig-topic-tools p{font:400 16px/1.6 Inter,sans-serif;max-width:760px;margin:0 0 20px}.tig-topic-tools section+section{margin-top:36px}.tig-topic-tools label{display:block;font:500 12px/1.5 'IBM Plex Mono',monospace;letter-spacing:.05em;text-transform:uppercase;margin:0 0 10px}.tig-topic-tools form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px}.tig-topic-tools input{width:100%;flex:1 1 280px;min-width:0;min-height:48px;border:1px solid #132333;border-radius:2px;background:#f5f2e9;color:#132333;padding:12px 14px;font:16px Inter,sans-serif}.tig-topic-tools button{min-height:48px;padding:10px 18px;background:#132333;color:#f5f2e9;border:1px solid #132333;border-radius:2px;font:500 12px/1.5 'IBM Plex Mono',monospace;letter-spacing:.04em;text-transform:uppercase;cursor:pointer}.tig-topic-tools nav{display:flex;flex-wrap:wrap;gap:8px}.tig-topic-tools nav a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;padding:8px 12px;border:1px solid #8c969e;border-radius:2px;color:#132333;text-decoration:none;font:500 12px/1.45 'IBM Plex Mono',monospace}.tig-topic-tools nav a:hover{background:#e5e1d7}.tig-topic-tools :is(a,button,input):focus-visible{outline:3px solid #132333;outline-offset:3px}`;/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function TIGTopicTools(props){const mode=props.mode||\"search\";const topic=props.topic||\"Airline Strategy\";const labels=mode===\"index\"?EXPLORE:mode===\"show\"?SHOW_TOPICS[topic]||[]:RELATED[topic]||[];const[query,setQuery]=React.useState(\"\");const id=React.useId();return /*#__PURE__*/_jsxs(\"div\",{className:`tig-topic-tools${mode===\"archiveSearch\"?\" archive-search\":\"\"}`,style:props.style,children:[/*#__PURE__*/_jsx(\"style\",{children:css}),mode===\"archiveSearch\"&&/*#__PURE__*/_jsxs(\"a\",{className:\"archive-search-link\",href:`/search?show=${topic.toLowerCase()}&type=episode`,\"aria-label\":`Search ${topic} episodes`,children:[/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.8\",\"aria-hidden\":\"true\",focusable:\"false\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"10.5\",cy:\"10.5\",r:\"6.5\"}),/*#__PURE__*/_jsx(\"path\",{d:\"m15.5 15.5 4.5 4.5\"})]}),/*#__PURE__*/_jsx(\"span\",{className:\"search-label-desktop\",children:\"Search episodes\"}),/*#__PURE__*/_jsx(\"span\",{className:\"search-label-mobile\",children:\"Search\"})]}),(mode===\"archiveEntry\"||mode===\"allEntry\")&&/*#__PURE__*/_jsxs(\"div\",{className:\"entry-links\",children:[mode===\"archiveEntry\"&&/*#__PURE__*/_jsx(\"a\",{href:`#${topic.toLowerCase()}-conversations`,children:\"Browse conversations\"}),/*#__PURE__*/_jsx(\"a\",{href:mode===\"allEntry\"?\"/search?type=episode\":`/search?show=${topic.toLowerCase()}&type=episode`,children:mode===\"allEntry\"?\"Search all conversations\":\"Search these conversations\"})]}),mode===\"search\"&&/*#__PURE__*/_jsxs(\"section\",{\"aria-labelledby\":`${id}-search-heading`,children:[/*#__PURE__*/_jsx(\"h2\",{id:`${id}-search-heading`,children:\"Search within this topic\"}),/*#__PURE__*/_jsx(\"p\",{children:\"Find a person, airline, agency or question within these conversations.\"}),/*#__PURE__*/_jsxs(\"form\",{action:\"/search\",method:\"get\",children:[/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"topic\",value:topic}),/*#__PURE__*/_jsxs(\"div\",{style:{flex:\"1 1 280px\",minWidth:0,width:\"100%\"},children:[/*#__PURE__*/_jsxs(\"label\",{htmlFor:`${id}-query`,children:[\"Search \",topic]}),/*#__PURE__*/_jsx(\"input\",{id:`${id}-query`,name:\"q\",type:\"search\",value:query,onChange:event=>setQuery(event.target.value),placeholder:`Search ${topic.toLowerCase()}…`})]}),/*#__PURE__*/_jsx(\"button\",{type:\"submit\",children:\"Search conversations\"})]})]}),![\"search\",\"archiveEntry\",\"allEntry\",\"archiveSearch\"].includes(mode)&&/*#__PURE__*/_jsxs(\"section\",{\"aria-labelledby\":`${id}-related-heading`,children:[/*#__PURE__*/_jsx(\"h2\",{id:`${id}-related-heading`,children:mode===\"index\"?\"Explore more topics\":mode===\"show\"?\"Explore by topic\":\"Related Topics\"}),/*#__PURE__*/_jsx(\"p\",{children:mode===\"index\"?\"These additional subjects open filtered conversations.\":mode===\"show\"?`Browse ${topic===\"AvGeek\"?\"aviation\":\"advertising\"} conversations by subject.`:\"Follow a related label to its current conversations.\"}),/*#__PURE__*/_jsx(\"nav\",{\"aria-label\":mode===\"index\"?\"Explore topic filters\":mode===\"show\"?`${topic} topics`:\"Related topic filters\",children:labels.map(label=>/*#__PURE__*/_jsx(FilterLink,{label:label},label))})]})]});}addPropertyControls(TIGTopicTools,{mode:{type:ControlType.Enum,options:[\"search\",\"related\",\"index\",\"show\",\"archiveEntry\",\"allEntry\",\"archiveSearch\"],defaultValue:\"search\"},topic:{type:ControlType.String,defaultValue:\"Airline Strategy\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TIGTopicTools\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TIGTopicTools.map"],"mappings":"+LAA09D,SAAS,EAAU,EAAM,CAAC,OAAO,EAAiB,IAAQ,iBAAiB,mBAAmB,CAAK,GAAI,CAAC,SAAS,EAAW,CAAC,SAAO,CAAC,IAAM,EAAK,EAAU,CAAK,EAAE,OAAO,EAAiB,GAAoB,EAAK,EAAK,CAAM,OAAK,aAAa,GAAM,SAAsB,EAAK,IAAI,CAAC,SAAS,CAAK,CAAC,CAAC,CAAC,EAAe,EAAK,IAAI,CAAM,OAAK,SAAS,CAAK,CAAC,CAAE,CAGjzE,SAAwB,EAAc,EAAM,CAAC,IAAM,EAAK,EAAM,MAAM,SAAe,EAAM,EAAM,OAAO,mBAAyB,EAAO,IAAO,QAAQ,EAAQ,IAAO,OAAO,EAAY,IAAQ,CAAC,EAAE,EAAQ,IAA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