{"version":3,"sources":["FAQSectionPane.tsx"],"sourcesContent":["import { template } from \"uix/html/template.ts\";\nimport { Component } from \"uix/components/Component.ts\";\nimport Markdown from \"../Defaults/Markdown.tsx\";\n\nexport type FAQSectionPaneItem = {\n\ttitle: string,\n\tdescription: string | Element | Element[]\n}\ntype FAQSectionPaneOptions = {\n\titems: FAQSectionPaneItem[]\n}\n@template((_, {items}) =>\n\t<div class=\"faq-section-pane\">\n\t\t{(items as FAQSectionPaneItem[]).map(item => <details>\n\t\t\t<summary><h3>{item.title}</h3></summary>\n\t\t\t{Array.isArray(item.description) ? \n\t\t\t\titem.description.map(e => e) : \n\t\t\t\t<Markdown value={item.description}/>\n\t\t\t}\n\t\t</details>)}\n\t</div>\n)\nexport class FAQSectionPane extends Component<FAQSectionPaneOptions> {\n\t\n}\n"],"names":["Component","template","Markdown","_","items","div","class","map","item","details","summary","h3","title","Array","isArray","description","e","value","FAQSectionPane"],"mappings":"sBAsBoCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAtBpC,SAASC,QAAQ,QAAQ,uBAAuB;AAChD,SAASD,SAAS,QAAQ,8BAA8B;AACxD,OAAOE,cAAc,2BAA2B;OAS/CD,SAAS,CAACE,GAAG,EAACC,KAAK,EAAC,iBACpB,KAACC;QAAIC,OAAM;kBACT,AAACF,MAA+BG,GAAG,CAACC,CAAAA,qBAAQ,MAACC;;kCAC7C,KAACC;kCAAQ,cAAA,KAACC;sCAAIH,KAAKI,KAAK;;;oBACvBC,MAAMC,OAAO,CAACN,KAAKO,WAAW,IAC9BP,KAAKO,WAAW,CAACR,GAAG,CAACS,CAAAA,IAAKA,mBAC1B,KAACd;wBAASe,OAAOT,KAAKO,WAAW;;;;;AAK9B,IAAA,AAAMG,iBAAN,MAAMA,wBAAuBlB,aAAAA;;;;WAAAA;;;;;AAEpC;SAFA,AAAakB,mBAAAA,cAEZ","sourceRoot":"/lib/uix-components-new-0.2.1/Panes/","file":"FAQSectionPane.tsx"}