{"version":3,"sources":["webpack:///./scripts/Components/Faq/styles|lazy|/^\\.\\/.*\\.scss$/|groupOptions: {}|namespace object","webpack:///./scripts/Components/Faq/Faq.js","webpack:///./scripts/Components/Faq/FaqContainer.js"],"names":["map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","id","keys","Object","module","exports","Faq","question","answer","icon","items","showMore","defaultExpanded","expanded","setExpanded","useState","answerExpanded","setAnswerExpanded","itemsArr","JSONparse","value","defaultValue","JSON","parse","error","onAnswerExpandClick","React","className","onClick","Icon","iconCode","dangerouslySetInnerHTML","__html","length","item","i","key","translate","window","__litium","themeName","FaqContainer","type","_extends"],"mappings":"wEAAA,IAAIA,EAAM,CACT,aAAc,CACb,MACA,MAED,cAAe,CACd,KACA,MAED,kBAAmB,CAClB,MACA,MAED,iBAAkB,CACjB,MACA,KAED,aAAc,CACb,MACA,OAGF,SAASC,EAAoBC,GAC5B,IAAIC,EAAoBC,EAAEJ,EAAKE,GAC9B,OAAOG,QAAQC,UAAUC,MAAK,KAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBP,EAAM,KAEjD,MADAM,EAAEE,KAAO,mBACHF,CAAC,IAIT,IAAIG,EAAMX,EAAIE,GAAMU,EAAKD,EAAI,GAC7B,OAAOR,EAAoBK,EAAEG,EAAI,IAAIJ,MAAK,IAClCJ,EAAoBS,IAE7B,CACAX,EAAoBY,KAAO,IAAOC,OAAOD,KAAKb,GAC9CC,EAAoBW,GAAK,MACzBG,EAAOC,QAAUf,C,kGClCjB,MAQMgB,EAAMA,EACVC,WACAC,SACAC,OACAC,QACAC,YAAW,EACXC,mBAAkB,MAElB,MAAOC,EAAUC,IAAeC,cAASH,IAClCI,EAAgBC,IAAqBF,eAAUJ,GAChDO,EAlBUC,EAACC,EAAOC,KACxB,IACE,OAAOC,KAAKC,MAAMH,EACpB,CAAE,MAAOI,GACP,OAAOH,CACT,GAaiBF,CAAUT,EAAO,IAM5Be,EAAuB5B,IAC3BoB,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5255\n\t],\n\t\"./main.scss\": [\n\t\t4767,\n\t\t4767\n\t],\n\t\"./oh-poppy.scss\": [\n\t\t73638,\n\t\t3638\n\t],\n\t\"./vincent.scss\": [\n\t\t60207,\n\t\t207\n\t],\n\t\"./wtg.scss\": [\n\t\t13077,\n\t\t3077\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(() => {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(() => {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = () => (Object.keys(map));\nwebpackAsyncContext.id = 73065;\nmodule.exports = webpackAsyncContext;","import React, { useState } from 'react';\nimport Icon from '../IconBase/Icon';\nimport { translate } from '../../Services/translation';\n\nconst JSONparse = (value, defaultValue) => {\n try {\n return JSON.parse(value);\n } catch (error) {\n return defaultValue;\n }\n};\n\nconst Faq = ({\n question,\n answer,\n icon,\n items,\n showMore = false,\n defaultExpanded = false,\n}) => {\n const [expanded, setExpanded] = useState(defaultExpanded);\n const [answerExpanded, setAnswerExpanded] = useState(!showMore);\n const itemsArr = JSONparse(items, []);\n\n const onClick = (e) => {\n setExpanded(!expanded);\n };\n\n const onAnswerExpandClick = (e) => {\n setAnswerExpanded(!answerExpanded);\n };\n\n return (\n \n \n {icon && }\n {question}\n \n \n \n showMore && !answerExpanded && onAnswerExpandClick(e)}\n >\n {answer &&
}\n {itemsArr && itemsArr.length > 0 && (\n
\n {itemsArr &&\n itemsArr.length > 0 &&\n itemsArr.map((item, i) => (\n \n ))}\n
\n )}\n \n {showMore && (\n \n {answerExpanded\n ? translate('toggle.showless')\n : translate('toggle.showmore')}\n \n )}\n \n \n );\n};\n\nexport default Faq;\n","import React, { useState } from 'react';\nimport Faq from './Faq';\nimport(`./styles/${window.__litium.themeName}.scss`);\n\nconst FaqContainer = ({ items, type = 'default' }) => {\n return (\n
\n {items.length > 0 &&\n items.map((item, i) => )}\n
\n );\n};\n\nexport default FaqContainer;\n"],"sourceRoot":""}