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J,EAAY,CAAC/E,UAAWR,EAAKsF,MAAM9E,WACjCR,EAAKsF,MAAMpI,MAKtB,EAAC+D,CAAA,CAnNY,CAASzB,EAAAA,U","sources":["webpack://gatsby-starter-default/./src/components/carousel/FacewallImage.js","webpack://gatsby-starter-default/./src/components/carousel/ImageCaption.js","webpack://gatsby-starter-default/./src/templates/index/FixedFacewallHomepage.js","webpack://gatsby-starter-default/./src/templates/index/ImageText.js","webpack://gatsby-starter-default/./src/templates/index/FirstTime.js","webpack://gatsby-starter-default/./src/templates/index/InTheCommunity.js","webpack://gatsby-starter-default/./src/components/program-toast/ProgramToast.js","webpack://gatsby-starter-default/./src/templates/index.js"],"sourcesContent":["import React from \"react\"\nimport PropTypes from \"prop-types\"\nimport { Link } from \"gatsby\"\nimport { Image } from \"../Core\"\nimport ImageCaption from \"./ImageCaption\"\n\nfunction FacewallImage(props) {\n let url = props.url\n if (url.charAt(0) !== \"/\") url = \"/\" + url\n\n return (\n <>\n
\n
\n \n \n \n {(props.reviewerName || props.procedure || props.monthYear) && (\n \n \n \n )}\n
\n
\n \n )\n}\n\nFacewallImage.propTypes = {\n className: PropTypes.string,\n url: PropTypes.string,\n procedure: PropTypes.string,\n imageUrl: PropTypes.string.isRequired,\n reviewerName: PropTypes.string,\n language: PropTypes.string,\n monthYear: PropTypes.object\n}\n\nexport default FacewallImage\n","import React from \"react\"\nimport classNames from \"classnames\"\nimport PropTypes from \"prop-types\"\nimport { getMonthYearFromStrings } from \"../../utils/utils\"\nimport { Text } from \"../Core\"\n\nfunction ImageCaption(props) {\n let nameClasses = classNames(\"image-caption staff fixed-facewall-name\", {\n last: !props.procedure && !props.monthYear\n })\n let procedureClasses = classNames(\n \"image-caption staff fixed-facewall-procedure\",\n {\n last: !props.monthYear\n }\n )\n let timeClasses = classNames(\"image-caption staff fixed-facewall-time\", {\n last: true\n })\n return (\n
\n {props.reviewerName && (\n
\n {props.language === \"es\" ? \"Conoce a\" : \"Meet\"} {props.reviewerName}\n
\n )}\n {props.language === \"es\"\n ? props.procedureEs &&\n !props.hideProcedureNames && (\n \n )\n : props.procedure &&\n !props.hideProcedureNames && (\n \n )}\n {props.monthYear && (\n
\n {getMonthYearFromStrings(props.monthYear.year, props.monthYear.month)}\n
\n )}\n
\n )\n}\n\nImageCaption.propTypes = {\n reviewerName: PropTypes.string,\n language: PropTypes.string,\n procedure: PropTypes.string,\n procedureEs: PropTypes.string,\n hideProcedureNames: PropTypes.bool,\n monthYear: PropTypes.object\n}\n\nexport default ImageCaption\n","import React, { Component } from \"react\"\nimport classNames from \"classnames\"\nimport PropTypes from \"prop-types\"\n\nimport { Button } from \"../../components/Button\"\n\nimport FacewallImage from \"../../components/carousel/FacewallImage\"\n\nclass FixedFacewallHomepage extends Component {\n constructor(props) {\n super(props)\n }\n\n render() {\n // Only allow rows of four, reviews should be sorted by most recent to least recent\n let reviewCount = this.props.reviews.length\n let nearestFourth = Math.floor((reviewCount / 4) * 4)\n let reviews = this.props.reviews.slice(0, nearestFourth)\n const images = reviews.map((review, i) => {\n return (\n 3 ? \"is-hidden-mobile\" : \"\"}\n key={review.title}\n imageUrl={review.thumbnailPublicId}\n reviewerName={review.reviewerName}\n procedure={\n review.otherProcedure && review.otherProcedureName\n ? review.otherProcedureName\n : review.mainProcedureDone\n }\n procedureEs={\n review.otherProcedure && review.otherProcedureName\n ? review.otherProcedureName\n : review.mainProcedureDone\n }\n url={review.title}\n monthYear={review.monthYear}\n middleColumnsis={this.props.middleColumnsis}\n language={this.props.language}\n />\n )\n })\n\n return (\n \n
\n
\n
\n

{this.props.heading}

\n {this.props.blurb}\n
\n
\n
\n
\n {images}\n
\n
\n
\n {this.props.language === \"es\" ? (\n \n ) : (\n \n )}\n
\n
\n \n )\n }\n}\n\nFixedFacewallHomepage.propTypes = {\n reviews: PropTypes.array.isRequired,\n className: PropTypes.string,\n middleColumnsis: PropTypes.number,\n sideColumnIs: PropTypes.number,\n paddingTop: PropTypes.string,\n paddingBottom: PropTypes.string,\n heading: PropTypes.string,\n blurb: PropTypes.element\n}\n\nexport default FixedFacewallHomepage\n","import React from \"react\"\n\nimport { Columns, Section } from \"../../components/Containers\"\nimport { Text, Image } from \"../../components/Core\"\nimport { Button, ButtonGroup, ButtonGroupMap } from \"../../components/Button\"\n\nfunction ImageText(props) {\n // if no complimentary image\n if (!props.textImage) {\n return (\n \n
\n
\n \n {props.post.homeSectionOne.heading && (\n \n )}\n \n {props.post.homeSectionOne.buttons && (\n
\n \n
\n )}\n
\n
\n \n \n )\n } else if (props.topDown) {\n return (\n \n \n
\n
\n \n
\n
\n
\n \n \n \n \n\n \n \n \n \n \n \n \n )\n }\n if (props.textImage || props.imageText) {\n return (\n }\n rightColumn={}\n />\n )\n }\n}\n\nfunction LeftRight(props) {\n return (\n \n
\n
\n {props.leftColumn}\n
\n {props.rightColumn}\n
\n
\n \n )\n}\n\nfunction TextColumn(props) {\n return (\n \n
\n
\n \n \n {props.post.homeSectionOne.buttons && (\n \n )}\n
\n
\n \n )\n}\n\nfunction PictureColumn(props) {\n return (\n
\n
\n \n \n
\n
\n \n )\n}\n\nexport default ImageText\n","import React from \"react\"\n\nimport { Section, Columns } from \"../../components/Containers\"\nimport { Text, Image } from \"../../components/Core\"\nimport { ButtonGroupMap } from \"../../components/Button\"\n\nfunction FirstTime(props) {\n const { useImages, image } = props\n return (\n
\n \n
\n
\n {useImages && image && (\n
\n \n
\n )}\n
\n \n \n \n
\n
\n
\n
\n
\n )\n}\n\nexport default FirstTime\n","import React from \"react\"\n\nimport { Text, Image } from \"../../components/Core\"\nimport { ButtonGroupMap } from \"../../components/Button\"\nimport { Columns, Section } from \"../../components/Containers\"\n\nfunction InTheCommunity({\n heading,\n blurb,\n image,\n buttons,\n colorBack,\n useImages\n}) {\n return (\n
\n \n
\n
\n
\n \n \n \n
\n {useImages && image && (\n
\n \n
\n )}\n
\n
\n
\n
\n )\n}\n\nexport default InTheCommunity\n","import React, { useState } from \"react\"\nimport { Text } from \"../Core\"\n\nimport \"./ProgramToast.scss\"\n\nconst ProgramToast = ({ closeDate, children }) => {\n if (!children) return null\n\n const [close, setClose] = useState(false)\n\n const today = new Date()\n const end = new Date(closeDate)\n\n if (close || today > end) return null\n\n return (\n
\n setClose(true)}>\n ✖\n \n \n
\n )\n}\n\nexport default ProgramToast\n","import React, { Component } from \"react\"\nimport { graphql } from \"gatsby\"\nimport { sortReviewsByDate } from \"../utils/utils\"\n\nimport Layout from \"../components/layout\"\nimport SEO from \"../components/seo\"\nimport FixedFacewallHomepage from \"./index/FixedFacewallHomepage\"\nimport StaticHeading from \"./index/StaticHeading\"\nimport Sizzle from \"./index/Sizzle\"\nimport ImageText from \"./index/ImageText\"\nimport AllRatingsReviews from \"../components/SocialReviews/AllSocialReviews\"\nimport FirstTime from \"./index/FirstTime\"\nimport InTheCommunity from \"./index/InTheCommunity\"\nimport LearnMoreCards from \"./index/LearnMoreCards\"\n// import ImageTexts from \"../components/ImageTexts\"\nimport StaticHero from \"./index/StaticHero\"\nimport { TestimonialPreview } from \"../components/Cards\"\nimport { Image, Text } from \"../components/Core\"\nimport { Columns, Section } from \"../components/Containers\"\nimport TheaterVideo from \"../components/Theater/TheaterVideo\"\nimport TestimonialGrid from \"../components/Cards/TestimonialGrid\"\nimport { ProgramToast } from \"../components/program-toast\"\n\nclass IndexPage extends Component {\n constructor(props) {\n super(props)\n this.state = {\n playing: false\n }\n }\n\n render() {\n const post = this.props.data.allUniquePagesJson.nodes[0]\n const { metaTitle, metaDescription, language } = this.props.pageContext\n\n const staticStyle = {\n position: \"relative\",\n overflow: \"unset\",\n width: \"100%\",\n zIndex: 1\n }\n const sizzleButtonStyle = {\n position: \"absolute\",\n top: 0,\n zIndex: 200\n }\n\n const hasReviews = this.props.data.hasReviews.nodes[0].reviews\n let allReviews = this.props.data.allReviews.nodes\n\n const sortedReviews = sortReviewsByDate(allReviews)\n\n // shuffleArray(allReviews);\n\n let fixedFacewallReviews = []\n if (sortedReviews.length >= 8) {\n fixedFacewallReviews = sortedReviews.slice(0, 8)\n } else {\n fixedFacewallReviews = sortedReviews.slice(0, 4)\n }\n\n let schemaData = null\n if (language === \"en\") {\n schemaData = {\n presets: post.schemas.presets,\n customSchema: post.schemas.custom,\n dateModified: this.props.pageContext.dateModified,\n language,\n metaTitle: metaTitle,\n description: metaDescription,\n path: this.props.location.pathname\n }\n }\n\n return (\n \n \n\n
\n {post.hasSizzle ? (\n \n \n \n ) : (\n \n )}\n\n {hasReviews && (\n \n \n
\n \n {post.featuredReviews?.length &&\n post.featuredReviews.length > 1 && (\n
\n {post.featuredReviews.map(card => (\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\n {language === \"es\" && (\n
\n \n
\n )}\n {/* */}\n\n \n\n {post.inTheCommunity.hasThisSection && (\n \n )}\n\n {post.homeRatingsReviews.hasThisSection && (\n
\n \n
\n )}\n
\n {post.toast.hasThisSection && (\n \n {post.toast.text}\n \n )}\n \n )\n }\n}\n\nexport const pageQuery = graphql`\n query reviewsIndexQuery($title: String!, $language: String!) {\n allReviews: allReviewsJson(\n filter: { reviewType: { eq: \"Patient\" }, language: { eq: $language } }\n limit: 30\n ) {\n nodes {\n ...FacewallData\n }\n }\n hasReviews: allDataJson(filter: { optionsItem: { eq: \"build-pages\" } }) {\n nodes {\n reviews\n }\n }\n allUniquePagesJson(filter: { title: { eq: $title } }) {\n nodes {\n schemas {\n presets\n custom\n }\n hasSizzle\n hero {\n heading\n subheading\n bgImage\n }\n toast {\n hasThisSection\n text\n closeDate\n }\n featuredReviews {\n heading\n subHeading\n youtube\n image\n }\n homeSectionOne {\n buttons {\n button {\n buttonText\n href\n appearance\n destination\n }\n }\n heading\n imageId\n text\n }\n learnMoreCards {\n blurb\n hasThisSection\n heading\n cards {\n blurb\n heading\n imageId\n button {\n buttonText\n href\n }\n }\n }\n homeRatingsReviews {\n hasThisSection\n heading\n # blurb\n buttonOne {\n buttonText\n href\n }\n }\n inTheCommunity {\n buttons {\n button {\n buttonText\n href\n appearance\n destination\n }\n }\n hasThisSection\n heading\n imageId\n leftRight\n subheading\n text\n }\n firstTimePatient {\n buttons {\n button {\n href\n buttonText\n destination\n appearance\n }\n }\n heading\n text\n useImages\n image\n }\n metaTitle\n sizzleYoutube\n metaDescription\n title\n }\n }\n }\n`\n\nexport default IndexPage\n"],"names":["props","url","charAt","React","className","Link","title","reviewerName","to","toLowerCase","Image","useAR","publicId","imageUrl","responsiveUseBreakpoints","procedure","monthYear","ImageCaption","language","hideProcedureNames","nameClasses","classNames","last","procedureClasses","timeClasses","procedureEs","Text","as","text","getMonthYearFromStrings","year","month","_Component","FixedFacewallHomepage","call","_inheritsLoose","prototype","render","reviewCount","this","reviews","length","nearestFourth","Math","floor","images","slice","map","review","i","FacewallImage","key","thumbnailPublicId","otherProcedure","otherProcedureName","mainProcedureDone","middleColumnsis","style","paddingTop","paddingBottom","heading","blurb","Button","contained","buttonText","href","Component","useImages","image","Section","colorBack","Columns","sideColumnsSize","marginBottom","post","firstTimePatient","ButtonGroupMap","buttons","isCentered","isCenteredMobile","noReverse","_ref","closeDate","children","close","setClose","useState","today","Date","end","onClick","IndexPage","_this","state","playing","_post$featuredReviews","data","allUniquePagesJson","nodes","metaTitle","metaDescription","pageContext","hasReviews","allReviews","sortedReviews","sortReviewsByDate","fixedFacewallReviews","schemaData","presets","schemas","customSchema","custom","dateModified","description","path","location","pathname","Layout","navSpacer","layoutClass","noFab","pageTitle","SEO","lang","position","overflow","width","zIndex","hasSizzle","Sizzle","sizzleButtonStyle","top","youtube","sizzleYoutube","StaticHeading","hero","subheading","StaticHero","bgImage","zeroTop","zeroBottom","featuredReviews","card","TestimonialPreview","subHeading","TestimonialGrid","LearnMoreCards","learnMoreCards","homeSectionOne","useStringReplace","FirstTime","inTheCommunity","hasThisSection","InTheCommunity","imageId","homeRatingsReviews","AllRatingsReviews","animation","buttonHref","buttonOne","toast","ProgramToast"],"sourceRoot":""}