{"version":3,"sources":["webpack://ecoverso.org/./node_modules/antd/es/_util/getRenderPropValue.js","webpack://ecoverso.org/./node_modules/antd/es/popover/index.js","webpack://ecoverso.org/./src/pages/testimonianze.tsx"],"names":["getRenderPropValue","propValue","__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","Popover","_a","ref","customizePrefixCls","prefixCls","title","content","otherProps","getPrefixCls","rootPrefixCls","overlay","className","concat","getOverlay","transitionName","displayName","defaultProps","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","testimonials","data","wordPress","nodes","useTranslation","Testimonal","testimonial","useState","isOpen","setIsOpen","id","replace","file","details","photo","type","car","carModel","carAction","style","display","marginRight","name","boughCourse","attendedRace","dangerouslySetInnerHTML","__html","location","date","to","onClick","map","key"],"mappings":"kJAAO,IAAIA,EAAqB,SAA4BC,GAC1D,OAAKA,EAIuC,mBAAdA,EAGrBA,IAGFA,EATE,O,yGCAPC,EAAgC,SAAUC,EAAGC,GAC/C,IAAIC,EAAI,GAER,IAAK,IAAIC,KAAKH,EACRI,OAAOC,UAAUC,eAAeC,KAAKP,EAAGG,IAAMF,EAAEO,QAAQL,GAAK,IAAGD,EAAEC,GAAKH,EAAEG,IAG/E,GAAS,MAALH,GAAqD,mBAAjCI,OAAOK,sBAA2C,KAAIC,EAAI,EAAb,IAAgBP,EAAIC,OAAOK,sBAAsBT,GAAIU,EAAIP,EAAEQ,OAAQD,IAClIT,EAAEO,QAAQL,EAAEO,IAAM,GAAKN,OAAOC,UAAUO,qBAAqBL,KAAKP,EAAGG,EAAEO,MAAKR,EAAEC,EAAEO,IAAMV,EAAEG,EAAEO,KAEhG,OAAOR,GAQLW,EAAuB,cAAiB,SAAUC,EAAIC,GACxD,IAAIC,EAAqBF,EAAGG,UACxBC,EAAQJ,EAAGI,MACXC,EAAUL,EAAGK,QACbC,EAAarB,EAAOe,EAAI,CAAC,YAAa,QAAS,YAG/CO,EADoB,aAAi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EAAYO,QAAQU,YAAa5B,UAAU,OAC1F,uBAAKwB,MAAO,CAAEC,QAAS,SAAUC,YAAa,SAC5C,gBAAC,KAAD,CAAMC,KAAK,yBAGb,KACHhB,EAAYO,QAAQW,aACnB,gBAAC,IAAD,CAASzC,MAAOhB,EAAE,8BAA+BiB,QAASsB,EAAYO,QAAQW,aAAc7B,UAAU,OACpG,uBAAKwB,MAAO,CAAEC,QAAS,SAAUC,YAAa,SAC5C,gBAAC,KAAD,CAAMC,KAAK,iBAGb,OAGR,uBAAKjC,UAAW,oCAAsCmB,EAAS,wCAA0C,KACvG,sBAAInB,UAAU,iCAAiCiB,EAAYvB,OAC3D,uBAAKM,UAAU,sCAAsCoC,wBAAyB,CAAEC,OAAQpB,EAAYO,QAAQP,eAC5G,uBAAKjB,UAAU,+CACf,uBAAKA,UAAU,gCACZiB,EAAYO,QAAQc,SADvB,KACkC,gBAAC,KAAD,CAAYC,KAAMtB,EAAYsB,QAEhE,uBAAKvC,UAAU,oCACZmB,EACC,gBAAC,KAAD,CAAQqB,GAAI,KAAM9C,MAAOhB,EAAE,UAAWgD,KAAK,QAAQe,QAAS,kBAAMrB,GAAU,MAE5E,gBAAC,KAAD,CAAQoB,GAAI,KAAM9C,MAAOhB,EAAE,eAAgBgD,KAAK,QAAQe,QAAS,kBAAMrB,GAAU,UAQ7F,OACE,gBAAC,IAAD,KACE,gBAAC,KAAD,CAAK1B,MAAOhB,EAAE,mBACd,uBAAKsB,UAAU,mBACb,uBAAKA,UAAU,WACb,0BAAKtB,EAAE,0CACP,qBAAGsB,UAAU,WAAWtB,EAAE,4FAG9B,uBAAKsB,UAAU,2DACb,uBAAKA,UAAU,0DACb,uBAAKA,UAAU,gBACZW,EAAa+B,KAAI,SAACzB,EAAa/B,GAAd,OAChB,gBAAC8B,EAAD,CAAYJ,KAAMK,EAAa0B,IAAKzD","file":"component---src-pages-testimonianze-tsx-12dcd74d99a40f9e2f92.js","sourcesContent":["export var getRenderPropValue = function getRenderPropValue(propValue) {\n if (!propValue) {\n return null;\n }\n\n var isRenderFunction = typeof propValue === 'function';\n\n if (isRenderFunction) {\n return propValue();\n }\n\n return propValue;\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport Tooltip from '../tooltip';\nimport { ConfigContext } from '../config-provider';\nimport { getRenderPropValue } from '../_util/getRenderPropValue';\nimport { getTransitionName } from '../_util/motion';\nvar Popover = /*#__PURE__*/React.forwardRef(function (_a, ref) {\n var customizePrefixCls = _a.prefixCls,\n title = _a.title,\n content = _a.content,\n otherProps = __rest(_a, [\"prefixCls\", \"title\", \"content\"]);\n\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls;\n\n var getOverlay = function getOverlay(prefixCls) {\n return /*#__PURE__*/React.createElement(React.Fragment, null, title && /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-title\")\n }, getRenderPropValue(title)), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-inner-content\")\n }, getRenderPropValue(content)));\n };\n\n var prefixCls = getPrefixCls('popover', customizePrefixCls);\n var rootPrefixCls = getPrefixCls();\n return /*#__PURE__*/React.createElement(Tooltip, _extends({}, otherProps, {\n prefixCls: prefixCls,\n ref: ref,\n overlay: getOverlay(prefixCls),\n transitionName: getTransitionName(rootPrefixCls, 'zoom-big', otherProps.transitionName)\n }));\n});\nPopover.displayName = 'Popover';\nPopover.defaultProps = {\n placement: 'top',\n trigger: 'hover',\n mouseEnterDelay: 0.1,\n mouseLeaveDelay: 0.1,\n overlayStyle: {}\n};\nexport default Popover;","import React, { useState } from \"react\"\n\nimport { graphql } from \"gatsby\"\n\nimport { useTranslation, FormatDate } from \"../i18n\"\n\nimport { Seo } from \"../seo/\"\n\nimport GridLayout from \"../Layout/GridLayout\"\nimport { Image, Icon, Button } from \"../Layout/Components\"\nimport { Popover } from \"antd\"\nimport { TestimonialData } from \"../rows/Testimonials\"\n\ntype Props = {\n data: {\n wordPress: {\n testimonials: {\n nodes: TestimonialData[]\n }\n }\n }\n}\n\nconst Testimonianze: React.FC = ({\n data: {\n wordPress: {\n testimonials: { nodes: testimonials },\n },\n },\n}) => {\n const { t } = useTranslation([])\n\n const Testimonal: React.FC<{ data: TestimonialData }> = ({ data: testimonial }) => {\n // console.log(\"Newspaper: \", article)\n // console.log(\"Newspaper: \", article.newspapers.nodes[0]?.slug)\n\n const [isOpen, setIsOpen] = useState(false)\n\n return (\n
\n
\n \n \n
\n {testimonial.details.car.carModel ? (\n \n
\n \n
\n
\n ) : null}\n {testimonial.details.boughCourse ? (\n \n
\n \n
\n
\n ) : null}\n {testimonial.details.attendedRace ? (\n \n
\n \n
\n
\n ) : null}\n
\n
\n
\n

{testimonial.title}

\n
\n
\n
\n {testimonial.details.location}, \n
\n
\n {isOpen ? (\n
\n
\n
\n )\n }\n\n return (\n \n \n
\n
\n

{t(\"La testimonianze dei nostri associati\")}

\n

{t(\"Queste sono le testimonianze dei nostri associati. Non credete a noi, CREDETE A LORO!\")}

\n
\n
\n
\n
\n
\n {testimonials.map((testimonial, i) => (\n \n ))}\n
\n
\n
\n
\n )\n}\n\nexport const query = graphql`\n query TestimonialsQuery {\n wordPress {\n testimonials(where: { orderby: { field: DATE, order: DESC } }, first: 1000) {\n nodes {\n ...testimonial\n }\n }\n }\n }\n`\n\nexport default Testimonianze\n"],"sourceRoot":""}