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nH,gBAAKR,UAAU,WAAU,mBACzB,iBAAKA,UAAU,gBAAgBK,MAAO,CAAEI,MAAO,WAAY,WACzD,mCACA,gBAAKZ,wBAAyB,CAAEC,OAAQK,EAAKO,yBALzCN,UAalB,gBAAKP,wBAAyB,CAAEC,OAAuB,QAAjB,EAAElC,EAAa,UAAE,OAAW,QAAX,EAAf,EAAiBgB,OAAO,UAAE,WAAX,EAAf,EAA4B+B,uBACpE,gBAAKX,UAAU,6BAA4B,UACzC,gBAAKA,UAAU,UAAS,UACtB,SAAC,IAAM,CAACA,UAAU,iBAAkBpD,EAAQ,SAC5B,QAD4B,EACzCoB,EAAW,UAAE,OAAiB,QAAjB,EAAb,EAAeiC,uBAAe,WAAjB,EAAb,EAAgCC,KAAI,CAACC,EAAMC,KACnC,gBAAiBP,wBAAyB,CAAEC,OAAQK,EAAKO,iBAA/CN,aAKxB,EAMDf,EAA+B,KAEjC,+BACE,2BACI,kE","sources":["pages/europe-2023/europe-2023-home.tsx"],"sourcesContent":["import { useEffect, useMemo, useState } from \"react\";\r\nimport { Helmet } from \"react-helmet-async\";\r\nimport { useSelector } from \"react-redux\";\r\nimport Slider from \"react-slick\";\r\nimport testimonialImg from \"../../assets/images/Pull-Quote-Image-Background-1176x380.png\";\r\nimport { useDynamicScripts } from \"../../hooks/useDynamicScript\";\r\nimport { retrievePageMenu } from \"../../redux/slice/page-menu.slice\";\r\nimport { retrieveSliderPhiladelphia } from \"../../redux/slice/slider-philadelphia-slice\";\r\nimport { retrieveSlider } from \"../../redux/slice/slider-slice\";\r\nimport { RootState, useAppDispatch } from \"../../redux/store\";\r\nimport Europe2023Banner from \"./components/europe-2023-banner\";\r\n\r\nconst settings = {\r\n  dots: false,\r\n  infinite: true,\r\n  arrows: true,\r\n  speed: 500,\r\n  slidesToShow: 4,\r\n  slidesToScroll: 2,\r\n  autoplay: true,\r\n  autoplaySpeed: 3000,\r\n  responsive: [\r\n    {\r\n      breakpoint: 1024,\r\n      settings: {\r\n        slidesToShow: 3,\r\n        slidesToScroll: 1,\r\n        infinite: true,\r\n        dots: true,\r\n      },\r\n    },\r\n    {\r\n      breakpoint: 600,\r\n      settings: {\r\n        slidesToShow: 2,\r\n        slidesToScroll: 1,\r\n        initialSlide: 2,\r\n      },\r\n    },\r\n    {\r\n      breakpoint: 480,\r\n      settings: {\r\n        slidesToShow: 1,\r\n        slidesToScroll: 1,\r\n      },\r\n    },\r\n  ],\r\n};\r\n\r\nconst settingsTestimonial = {\r\n  dots: false,\r\n  infinite: true,\r\n  arrows: true,\r\n  speed: 1000,\r\n  slidesToShow: 1,\r\n  slidesToScroll: 1,\r\n  autoplay: true,\r\n  autoplaySpeed: 3000,\r\n};\r\n\r\nconst Europe2023Home = () => {\r\n  const path = \"europe-2023%2FHome\";\r\n  const dispatch = useAppDispatch();\r\n  const { RapsEuropeData: pageMenuData } = useSelector((state: RootState) => state.rapsEurope);\r\n  const { SliderData } = useSelector((state: RootState) => state.Slider);\r\n  const { SliderPhiladelphiaData } = useSelector((state: RootState) => state.SliderPhiladelphia);\r\n\r\n  const [pageRendered, setPageRendered] = useState(false);\r\n    \r\n  useEffect(() => {\r\n    dispatch(retrievePageMenu(`%2F${path}`));\r\n    dispatch(retrieveSlider(`%2Feurope-2023%2FHome%2FSponsors-Slider`));\r\n    dispatch(retrieveSliderPhiladelphia(`%2Feurope-2023%2FHome%2FQuotes-Sliders`));\r\n  }, [dispatch]);\r\n\r\n  useEffect(() => {\r\n    if (pageMenuData[0]?.result !== undefined) {\r\n      setPageRendered(true);\r\n    }\r\n  }, [pageMenuData]);\r\n\r\n  // Dynamic Scripts\r\n  const [scriptHtmlString, setScriptHtmlString] = useState(\"\");\r\n\r\n  useEffect(() => {\r\n    if (pageMenuData[0]?.result[0]) {\r\n      if (pageMenuData[0]?.result[0].javaScriptField) {\r\n        setScriptHtmlString(pageMenuData[0].result[0].javaScriptField);\r\n      }\r\n\r\n      if (window.runGlobalScripts) {\r\n        window.runGlobalScripts();\r\n      }\r\n    }\r\n  }, [pageMenuData]);\r\n\r\n  useDynamicScripts({ htmlScriptString: scriptHtmlString, divId: \"europe-2023-home-script\" });\r\n  // End Dynamic Scripts\r\n\r\n  return (\r\n    <>\r\n      <Europe2023HomeStyleComponent />\r\n      {/*pageRendered && cachedGoogleAdsLoader*/}\r\n      <Helmet>\r\n        <title>{pageMenuData[0]?.result[0]?.menuItemName}</title>\r\n      </Helmet>\r\n      <Europe2023Banner\r\n        bannerImage={pageMenuData[0]?.result[0]?.mainHeaderImage}\r\n        mobileBanner={pageMenuData[0]?.result[0]?.mobileHeaderImage}\r\n        headerText={pageMenuData[0]?.result[0]?.headerText}\r\n        topCommonMesage={pageMenuData[0]?.result[0]?.topCommonMesage}\r\n      />\r\n      <div dangerouslySetInnerHTML={{ __html: pageMenuData[0]?.result[0]?.description }}></div>\r\n      <div>&nbsp;</div>\r\n      <div>&nbsp;</div>\r\n\r\n      <div className=\"container hero convergence\">\r\n        <Slider className=\"cursor-hand\" {...settingsTestimonial}>\r\n          {SliderPhiladelphiaData[0]?.sliderItemsList?.map((item, index) => {\r\n            return (\r\n              <div key={index}>\r\n                <div className=\"row testimonial\" style={{ backgroundImage: `url(${testimonialImg})`, backgroundRepeat: \"no-repeat\" }}>\r\n                  <div className=\"col-md-3\">&nbsp;</div>\r\n                  <div className=\"col-md-6 mt-4\" style={{ color: \"#6D6E70\" }}>\r\n                    <div>&nbsp;</div>\r\n                    <div dangerouslySetInnerHTML={{ __html: item.sliderContents }}></div>\r\n                  </div>\r\n                </div>\r\n              </div>\r\n            );\r\n          })}\r\n        </Slider>\r\n      </div>\r\n      <div dangerouslySetInnerHTML={{ __html: pageMenuData[0]?.result[0]?.councilDescription }}></div>\r\n      <div className=\"container hero convergence\">\r\n        <div className=\"gallery\">\r\n          <Slider className=\"cursor-hand\" {...settings}>\r\n            {SliderData[0]?.sliderItemsList?.map((item, index) => {\r\n              return <div key={index} dangerouslySetInnerHTML={{ __html: item.sliderContents }}></div>;\r\n            })}\r\n          </Slider>\r\n        </div>\r\n      </div>\r\n    </>\r\n  );\r\n};\r\n\r\nexport default Europe2023Home;\r\n\r\nconst Europe2023HomeStyleComponent = () => {\r\n  return (\r\n    <>\r\n      <style>\r\n        {`\r\n      b, strong {\r\n        font-weight: bold;\r\n    }\r\n    `}\r\n      </style>\r\n    </>\r\n  );\r\n};\r\n"],"names":["settings","dots","infinite","arrows","speed","slidesToShow","slidesToScroll","autoplay","autoplaySpeed","responsive","breakpoint","initialSlide","settingsTestimonial","dispatch","useAppDispatch","RapsEuropeData","pageMenuData","useSelector","state","rapsEurope","SliderData","Slider","SliderPhiladelphiaData","SliderPhiladelphia","pageRendered","setPageRendered","useState","useEffect","retrievePageMenu","retrieveSlider","retrieveSliderPhiladelphia","undefined","result","scriptHtmlString","setScriptHtmlString","javaScriptField","window","runGlobalScripts","useDynamicScripts","htmlScriptString","divId","Europe2023HomeStyleComponent","menuItemName","bannerImage","mainHeaderImage","mobileBanner","mobileHeaderImage","headerText","topCommonMesage","dangerouslySetInnerHTML","__html","description","className","sliderItemsList","map","item","index","style","backgroundImage","testimonialImg","backgroundRepeat","color","sliderContents","councilDescription"],"sourceRoot":""}