{"version":3,"sources":["webpack:///./src/components/PropertyDetailPage/ConstructionUpdates/ConstructionSlider.tsx","webpack:///./src/components/PropertyDetailPage/ConstructionUpdates/index.tsx","webpack:///./src/templates/Property/PropertyUpdates.tsx","webpack:///./src/assets/icons/MailIcon.tsx","webpack:///./src/assets/icons/Chain.tsx"],"names":["ConstructionSlider","props","useState","carousel","setCarousel","slideIndex","setSlide","sliderData","images","map","x","src","type","ref","c","className","dots","infinite","centerMode","slidesToShow","slidesToScroll","autoPlay","autoPlaySpeed","arrows","draggable","fade","afterChange","data","slide","currentSlide","videos","document","querySelectorAll","querySelector","forEach","video","click","alert","handleChange","item","index","key","url","loop","playing","length","onClick","slickPrev","slickNext","ConstructionUpdates","property","pageData","pageContext","date","constructionUpdates","split","join","brand","details","logoBrand","getCorrectLogoBrand","copied","setCopied","alt","style","width","marginTop","imageLogo","FacebookShareButton","TwitterShareButton","EmailShareButton","MailIcon","text","onCopy","Chain","moment","format","description","milestone","ml","title","list","unitsCompletion","unit","name","percentage","ReactSlider","thumbClassName","trackClassName","min","max","defaultValue","pearling","disabled","PropertyUpdates","PropertyLayout","active","PropertyBaseMenu","SvgComponent","height","viewBox","d","fill","fillRule"],"mappings":"mWAsGeA,G,8BA9FY,SAACC,GAC1B,MAAgCC,mBAAqB,MAA9CC,EAAP,KAAiBC,EAAjB,KACA,EAA+BF,mBAAwB,MAAhDG,EAAP,KAAmBC,EAAnB,KAEMC,EAAkBN,EAAMO,OAASP,EAAMO,OAAOC,KAAI,SAACC,GAAD,MAAa,CAAEC,IAAKD,EAAGE,KAAM,YAAc,GA4CnG,OACE,oCACE,kBAAC,IAAD,eACEC,IAAK,SAACC,GAAD,OAAOV,EAAYU,KA9Cb,CACfC,UAAW,kBACXC,MAAM,EACNC,UAAU,EACVC,YAAY,EACZC,aAAc,EACdC,eAAgB,EAChBC,UAAU,EACVC,cAAe,IACfC,QAAQ,EACRC,WAAW,EACXC,MAAM,GAkCJ,CAGEC,YAAa,SAACC,IAtBC,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IAAK,IACLC,aAAc,CAAC,EAAGR,EAAKE,YACvBO,UAAQ,EACRC,UAAQ,cCzGjBC,UAVS,SAACnE,GACvB,IAAMwB,EAAWxB,EACjB,OACE,kBAACoE,EAAA,EAAD,CAAgBC,OAAQ,EAAG7C,SAAUA,GACnC,kBAAC8C,EAAA,EAAD,CAAkB9C,SAAUA,IAC5B,kBAAC,EAAD,CAAqBA,SAAUA,O,kCCXrC,gBAce+C,IAZf,SAAsBjG,GACpB,OACE,qCAAKgE,MAAO,GAAIkC,OAAQ,GAAIC,QAAQ,aAAgBnG,GAClD,wBACEoG,EAAE,o5BACFC,KAAK,UACLC,SAAS,e,kCCRjB,gBAceL,IAZf,SAAsBjG,GACpB,OACE,qCAAKgE,MAAO,GAAIkC,OAAQ,GAAIC,QAAQ,aAAgBnG,GAClD,wBACEoG,EAAE,qpBACFC,KAAK,UACLC,SAAS","file":"component---src-templates-property-property-updates-tsx-b2bd616ff452830dad17.js","sourcesContent":["import React, { useState } from 'react'\nimport ReactPlayer from 'react-player'\nimport Slider from 'react-slick'\n\nimport 'slick-carousel/slick/slick.css'\nimport 'slick-carousel/slick/slick-theme.css'\nimport '../../JobOpenings/JobHeroBanner.scss'\n\nconst ConstructionSlider = (props: any): JSX.Element => {\n const [carousel, setCarousel] = useState(null)\n const [slideIndex, setSlide] = useState(null)\n\n const sliderData: any = props.images ? props.images.map((x: any) => ({ src: x, type: 'image' })) : []\n const settings = {\n className: 'job-hero-slider',\n dots: false,\n infinite: true,\n centerMode: false,\n slidesToShow: 1,\n slidesToScroll: 1,\n autoPlay: true,\n autoPlaySpeed: 2000,\n arrows: false,\n draggable: true,\n fade: true\n }\n\n const next = (): void => {\n if (carousel) {\n carousel.slickNext()\n }\n }\n\n const prev = (): void => {\n if (carousel) {\n carousel.slickPrev()\n }\n }\n\n const handleChange = (slide: number): void => {\n setSlide(slide)\n const currentSlide = sliderData[slide]\n\n const videos: any = document.querySelectorAll('.ytp-play-button')\n\n if (currentSlide.type === 'video') {\n let currentVideo: any = document.querySelector(`#career-video-${slide}`)\n } else {\n videos.forEach((video: any) => {\n video.click()\n alert('yes!')\n // video.pause()\n })\n }\n }\n\n return (\n <>\n setCarousel(c)}\n {...settings}\n afterChange={(data) => {\n handleChange(data)\n }}\n >\n {sliderData &&\n sliderData?.map((item: any, index: number) => {\n return (\n
\n
\n {item.type === 'image' && }\n\n {item.type === 'video' && (\n
\n \n
\n )}\n\n {/* {item.type === 'video' && (\n \n )} */}\n
\n
\n )\n })}\n \n {sliderData.length !== 0 ? (\n
\n
\n \n
\n
\n \n
\n
\n ) : null}\n \n )\n}\n\nexport default ConstructionSlider\n","import moment from 'moment'\nimport React, { useState } from 'react'\nimport CopyToClipboard from 'react-copy-to-clipboard'\nimport { FacebookShareButton, EmailShareButton, TwitterShareButton } from 'react-share'\nimport ReactSlider from 'react-slider'\n\nimport './ConstructionUpdates.scss'\nimport MailIcon from '../../../assets/icons/MailIcon'\nimport ChainIcon from '../../../assets/icons/Chain'\nimport ConstructionSlider from './ConstructionSlider'\nimport { getCorrectLogoBrand } from '../../../utils/getCorrectLogoBrand'\n\nconst ConstructionUpdates = (data: any): JSX.Element => {\n const { pageData } = data\n const { property } = pageData.pageContext\n const date = property.constructionUpdates.date.split('/').join('/1/')\n const { brand } = property.details\n\n const logoBrand = getCorrectLogoBrand(brand)\n\n const [copied, setCopied] = useState(false)\n const url = `https://dev-khaleesi-alisi.whitecloak.com/brand/property/construction-updates`\n\n return (\n
\n
\n \n
\n
\n
\n
\n \"brand\n
\n
\n \"name\n
\n\n
\n

Construction Updates

\n\n {property.details.brand !== 'avida' && (\n
\n {copied ? (\n <>\n
\n Copied to clipboard!\n
setCopied(false)}>\n \n
\n
\n \n ) : (\n
\n \n
\n \n
\n
\n\n \n
\n \n
\n
\n\n \n
\n \n
\n
\n\n setCopied(true)}>\n
\n \n
\n
\n
\n )}\n
\n )}\n
\n\n {property.constructionUpdates.date !== '' && (\n
\n {`As of ${moment(date).format('MMMM YYYY')}`}\n
\n )}\n\n
\n

{property.constructionUpdates.description}

\n
\n\n {property.constructionUpdates &&\n property.constructionUpdates.milestone.map((ml: any) => {\n return (\n
\n {ml.title}\n
    \n
  • {ml.list}
  • \n
\n
\n )\n })}\n\n {property.details.brand !== 'avida' && (\n
\n Percentage of Completion\n {property.constructionUpdates.unitsCompletion.map((unit: any, index: number) => {\n return (\n
\n {unit.name}\n
\n {unit.percentage !== '' ? `${unit.percentage}%` : '0%'}\n \n
\n
\n )\n })}\n
\n )}\n
\n
\n
\n )\n}\n\nexport default ConstructionUpdates\n","import React, { ReactElement } from 'react'\nimport './Property.scss'\nimport PropertyLayout from '../../components/Layout/PropertyLayout'\nimport PropertyBaseMenu from '../../components/PropertyBaseMenu/PropertyBaseMenu'\nimport ConstructionUpdates from '../../components/PropertyDetailPage/ConstructionUpdates'\n\nconst PropertyUpdates = (data: any) => {\n const pageData = data\n return (\n \n \n \n \n )\n}\n\nexport default PropertyUpdates\n","import * as React from 'react'\n\nfunction SvgComponent(props: React.SVGProps): JSX.Element {\n return (\n \n \n \n )\n}\n\nexport default SvgComponent\n","import * as React from 'react'\n\nfunction SvgComponent(props: React.SVGProps): JSX.Element {\n return (\n \n \n \n )\n}\n\nexport default SvgComponent\n"],"sourceRoot":""}