{"version":3,"file":"index-D-BDsoWU.js","sources":["../../../app/javascript/src/explore/elements/LiveClassPromotion/elements/Blurb/index.tsx","../../../app/javascript/src/explore/elements/LiveClassPromotion/index.tsx","../../../app/javascript/src/explore/services/RouterFactory/ExploreRouter/index.js","../../../app/javascript/src/explore/services/RouterFactory/PrizeRouter/index.js","../../../app/javascript/src/explore/services/RouterFactory/index.js","../../../app/javascript/src/explore/scenes/LiveClasses/compositions/SortedClasses/elements/ClassGrid/elements/ClassCard/index.tsx","../../../app/javascript/src/explore/scenes/LiveClasses/compositions/SortedClasses/elements/ClassGrid/index.tsx","../../../app/javascript/src/explore/scenes/LiveClasses/compositions/SortedClasses/elements/Tabs/index.tsx","../../../app/javascript/src/explore/scenes/LiveClasses/compositions/SortedClasses/index.tsx","../../../app/javascript/src/explore/scenes/LiveClasses/elements/Header/elements/Description/index.tsx","../../../app/javascript/src/explore/scenes/LiveClasses/elements/Header/elements/HowItWorks/elements/Step/index.tsx","../../../app/javascript/src/explore/scenes/LiveClasses/elements/Header/elements/HowItWorks/index.tsx","../../../app/javascript/src/explore/scenes/LiveClasses/elements/Header/elements/Media/index.tsx","../../../app/javascript/src/explore/scenes/LiveClasses/elements/Header/index.tsx","../../../app/javascript/src/explore/scenes/LiveClasses/index.tsx"],"sourcesContent":["import * as React from 'react';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport { IconLookup } from '@fortawesome/fontawesome-common-types';\n\ninterface Props {\n  className?: string;\n  headline: string;\n  icon: IconLookup;\n  text: string;\n}\n\nexport const Blurb: React.FC<Props> = ({\n  className, headline, icon, text,\n}) => (\n  <div className={className}>\n    <FontAwesomeIcon className=\"fs-11\" icon={icon} />\n    <h2 className=\"mt-4 fs-5\">{headline}</h2>\n    <p className=\"mt-1\">{text}</p>\n  </div>\n);\n","import * as React from 'react';\nimport cls from 'classnames';\nimport { faHatChef, faKeynote, faPhoneLaptop, faTurkey } from '@fortawesome/pro-regular-svg-icons';\n\nimport { Blurb } from './elements/Blurb';\n\nimport styles from './index.module.sass';\n\ninterface Props {\n  className?: string;\n}\n\nexport const LiveClassPromotion = ({ className }: Props ) => (\n  <section className={cls( 'text-center spec__promotion', className )}>\n    <h1 className={`${styles.headline} fs-5 fs-md-8 text-uppercase`}>Why GB LIVE! Cook-Alongs?</h1>\n\n    <div className=\"row mt-3\">\n      <Blurb\n        className=\"col-12 col-md-6 col-lg-3 pt-1 px-md-9 px-lg-4 mt-8\"\n        headline=\"America’s Best Chefs\"\n        icon={faHatChef}\n        text=\"The country’s most acclaimed chefs come right into your home in real time via Goldbelly-exclusive Zoom classes.\"\n      />\n      <Blurb\n        className=\"col-12 col-md-6 col-lg-3 pt-1 px-md-9 px-lg-4 mt-8\"\n        headline=\"Cooking Together, Separately\"\n        icon={faTurkey}\n        text=\"Experience cooking &amp; eating together with hundreds of food lovers from across the country while you all prepare a chef-curated meal.\"\n      />\n      <Blurb\n        className=\"col-12 col-md-6 col-lg-3 pt-1 px-md-9 px-lg-4 mt-8\"\n        headline=\"Interact with the Chefs\"\n        icon={faKeynote}\n        text=\"Get to know top culinary talent & ask them questions about the meal, the food world, and about themselves!\"\n      />\n      <Blurb\n        className=\"col-12 col-md-6 col-lg-3 pt-1 px-md-9 px-lg-4 mt-8\"\n        headline=\"All from Your Home\"\n        icon={faPhoneLaptop}\n        text=\"Just buy one (or more) of the Goldbelly LIVE! meal kits and we'll send the meal kit and the Zoom link right to you.\"\n      />\n    </div>\n  </section>\n);\n","const sanitize = ( url ) => url.replace( /\\/{2,}/g, '/' );\n\nclass ExploreRouter {\n  productPath = ( product, merchant ) => {\n    const productPermalink = product.permalink;\n\n    if ( productPermalink ) {\n      return sanitize( `${this.merchantPath( merchant )}/${productPermalink}` );\n    }\n\n    return '';\n  };\n\n  merchantPath = ( merchant ) => {\n    const merchantPermalink = merchant.permalink;\n\n    if ( merchantPermalink ) {\n      return sanitize( `/${merchantPermalink}` );\n    }\n\n    return '';\n  };\n}\n\nexport default ExploreRouter;\n","const sanitize = ( url ) => url.replace( /\\/{2,}/g, '/' );\n\nclass PrizeRouter {\n  productPath = ( product ) => {\n    if ( product.permalink ) {\n      return sanitize( `/${product.permalink}` );\n    }\n\n    return '';\n  };\n}\n\nexport default PrizeRouter;\n","import ExploreRouter from './ExploreRouter';\nimport PrizeRouter from './PrizeRouter';\n\n/*\n * I'm not 100% sure this is the way to go, but we can easily\n * undo if it's not.\n */\nclass RouterFactory {\n  static getInstance( isWhitelabel = false ) {\n    if ( isWhitelabel ) {\n      return new PrizeRouter();\n    }\n\n    return new ExploreRouter();\n  }\n}\n\nexport default RouterFactory;\n","import React from 'react';\nimport { ProductPreview, ProductSummary } from '@goldbely/explore-component-library';\nimport camelCaseKeys from 'camelcase-keys';\nimport cls from 'classnames';\nimport { useDispatch } from 'react-redux';\n\nimport * as cartActionCreators from 'src/explore/compositions/Cart/actions';\nimport * as cartCartItemsActionCreators from 'src/explore/data/cart/cart_items/actions';\nimport useFavorite from 'src/explore/hooks/useFavorite';\nimport { useShopConfig } from 'src/explore/hooks/useShopConfig';\nimport RouterFactory from 'src/explore/services/RouterFactory';\nimport { URLHelper } from 'src/explore/services/URLHelper';\nimport { URLOpener } from 'src/explore/services/URLOpener';\nimport { IProduct } from 'src/explore/types/shoppe';\n\nimport styles from './index.module.sass';\n\ninterface Props {\n  product: IProduct;\n  clickRef?: string;\n  recommId?: string;\n  searchId?: string;\n}\n\nexport const ClassCard = ({ product, clickRef, recommId, searchId }: Props ) => {\n  const dispatch = useDispatch();\n  const [ isFavorite, toggleFavorite ] = useFavorite( product.id, recommId );\n  const config = camelCaseKeys( useShopConfig(), { deep: true });\n\n  const { merchant } = product;\n\n  const router = React.useMemo(() => RouterFactory.getInstance(), []);\n\n  const handleAddToCart = (\n    event: React.FormEvent | React.KeyboardEvent<any> | React.MouseEvent | null\n  ) => {\n    event.preventDefault();\n    event.stopPropagation();\n\n    dispatch(\n      cartCartItemsActionCreators.create({\n        cart_item: {\n          product_id: product.id,\n          quantity: product.defaultQuantity,\n        },\n        search_id: searchId,\n        ref: clickRef,\n        recommId,\n      })\n    );\n    dispatch( cartActionCreators.open());\n  };\n\n  const generateProductUrl = () =>\n    URLHelper.href( router.productPath( product, merchant ), {\n      search_id: searchId,\n      recomm_id: recommId,\n      ref: clickRef,\n    });\n\n  const generateMerchantUrl = () =>\n    // @ts-ignore PrizeRouter instance doesn't have mechantPath property\n    // eslint-disable-next-line max-len\n    router.merchantPath && URLHelper.href( router.merchantPath( merchant ), { ref: clickRef });\n\n  const handleProductClick = ( event: React.MouseEvent<HTMLButtonElement, MouseEvent> ) => {\n    const url = generateProductUrl();\n    URLOpener.open( url, { event });\n  };\n\n  return (\n    <button\n      type=\"button\"\n      className={cls( styles.card, 'spec__class-card bg-transparent border-0 p-0 text-left w-100' )}\n      onClick={handleProductClick}\n    >\n      <ProductPreview\n        className={{\n          favorite: cls( styles.heart, 'fs-8' ),\n          slider: styles.ctaClass,\n        }}\n        isFavorite={isFavorite}\n        soldOutLabel={config.ui?.soldOutLabel}\n        product={product as any} // TODO: cleanup IProduct\n        onAddToCart={handleAddToCart}\n        onClickFavorite={toggleFavorite}\n      />\n\n      <div className=\"position-relative fs-3 fs-lg-4 pt-2 pt-lg-3 pr-3\">\n        <h2 className=\"fs-5 fs-lg-8 lh-1 text-uppercase pb-1\">{product.effectiveName}</h2>\n\n        <div className=\"pb-1\">\n          {'From '}\n          <a href={generateMerchantUrl()}>{merchant.name}</a>\n        </div>\n\n        <ProductSummary\n          hideMerchant\n          hideName\n          linkParameters={{\n            recomm_id: recommId,\n            ref: clickRef,\n            search_id: searchId,\n          }}\n          product={product as any} // TODO: cleanup IProduct\n        />\n      </div>\n    </button>\n  );\n};\n","import React from 'react';\nimport cls from 'classnames';\n\nimport { IProduct } from 'src/explore/types/shoppe';\nimport { ClassCard } from './elements/ClassCard';\n\ninterface Props {\n  products: IProduct[];\n  clickRef?: string;\n  recommId?: string;\n  searchId?: string;\n}\n\nexport const ClassGrid = ({\n  products, clickRef, recommId, searchId,\n}: Props ) => {\n  if ( products?.length > 0 ) {\n    return (\n      <ul className=\"spec__class-grid row m-0\">\n        {products.map(( product ) => (\n          <li key={product.id} className={cls( 'col-12 col-md-4 px-1 pt-4 pb-8' )}>\n            <ClassCard\n              product={product}\n              clickRef={clickRef}\n              recommId={recommId}\n              searchId={searchId}\n            />\n          </li>\n        ))}\n      </ul>\n    );\n  }\n\n  return <h1 className=\"spec__empty-message mt-1 py-6 text-center\">Sorry, no classes found.</h1>;\n};\n","import * as React from 'react';\nimport cls from 'classnames';\n\nimport styles from './index.module.sass';\n\nconst TABS = [\n  { id: 'upcoming', label: 'Upcoming', path: '/pick_up_checkout' },\n  { id: 'past', label: 'Past', path: '/local' },\n];\n\ninterface Props {\n  activeTab?: string;\n  onClick?: ( id: string ) => void;\n}\n\nexport const Tabs = ({ activeTab, onClick }: Props ) => (\n  <div\n    className={cls(\n      styles.tabs,\n      'spec__tabs d-flex justify-content-center border-bottom mb-6 mt-6 mt-lg-9 mx-1'\n    )}\n  >\n    {TABS.map(( t ) => (\n      <button\n        key={t.id}\n        className={cls(\n          'bg-transparent text-uppercase fs-5 fs-lg-8 px-6 px-md-4 px-lg-8 pb-3 pb-lg-4',\n          {\n            [styles.active]: t.id === activeTab,\n            'text-secondary border-secondary': t.id === activeTab,\n          },\n          styles.tab\n        )}\n        onClick={() => onClick( t.id )}\n        type=\"button\"\n      >\n        {t.label}\n      </button>\n    ))}\n  </div>\n);\n","import * as React from 'react';\n\nimport { FilteredSearch, IAPIFilters } from 'src/explore/compositions/FilteredSearch';\nimport ProductSkeletons from 'src/explore/elements/ProductSkeletons';\nimport withLazyLoadSkeleton from 'src/explore/hocs/withLazyLoadSkeleton';\nimport { Deserializer } from 'src/explore/services/api';\n\nimport { ClassGrid } from './elements/ClassGrid';\nimport { Tabs } from './elements/Tabs';\n\nconst AVAILABLE_SORTING = [\n  null,\n  'best_sellers',\n  'class_date_low',\n  'class_date_high',\n  'price_low',\n  'price_high',\n];\n\nconst LazyGrid = withLazyLoadSkeleton( ClassGrid, ProductSkeletons );\n\nconst SortedClasses = () => {\n  const [ activeTab, setTab ] = React.useState( 'upcoming' );\n\n  const params = React.useMemo(() => {\n    const filters: IAPIFilters = { is_class: true };\n\n    if ( activeTab === 'past' ) {\n      filters.past = true;\n    }\n    return filters;\n  }, [ activeTab ]);\n\n  return (\n    <div className=\"container-xl\">\n      <Tabs activeTab={activeTab} onClick={( tabId ) => setTab( tabId )} />\n\n      <FilteredSearch\n        apiPath=\"search\"\n        apiResponseParser={Deserializer.deserialize}\n        availableSorting={AVAILABLE_SORTING}\n        conditions={params}\n        loadMore=\"Show More Classes\"\n        pageSize={40} // 10 rows\n        syncUrl\n        defaultSortOrder=\"best_sellers\"\n        onRenderContent={({ data, loading, meta }) => (\n          <LazyGrid\n            clickRef=\"live_classes\"\n            across={3}\n            pristine={loading}\n            skeletonClass=\"mt-4\"\n            products={data}\n            searchId={meta?.search_id}\n          />\n        )}\n      />\n    </div>\n  );\n};\n\nexport default SortedClasses;\n","import React from 'react';\nimport cls from 'classnames';\nimport { faVideo } from '@fortawesome/pro-regular-svg-icons';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\n\nimport styles from './index.module.sass';\n\ninterface DescriptionProps {\n  learn: boolean;\n  onClick: () => void;\n}\n\nexport const Description = ({ learn, onClick }: DescriptionProps ) => (\n  <div className=\"row\">\n    <div\n      className={cls(\n        styles.text,\n        'col-md-5 col-lg-6 col-xl-5 d-flex pt-md-7 pt-lg-9 pb-lg-6 pl-md-8'\n      )}\n    >\n      <div className=\"position-relative w-100\">\n        <FontAwesomeIcon className=\"fs-10\" icon={faVideo} />\n        <h1 className={`${styles.headline} mt-1 mt-lg-0 text-white fs-lg-12 text-uppercase`}>\n          Goldbelly Live!\n          <br />\n          Cook-Alongs\n        </h1>\n        <p className=\"d-none d-md-block mt-2\">\n          Live from your kitchen, it&rsquo;s&hellip; Goldbelly LIVE! Our series of interactive\n          cook-alongs brings America&rsquo;s most acclaimed chefs, pizza makers, bakers, &amp; more\n          right into your home in real time via exclusive Zoom classes. With the purchase of\n          Goldbelly-exclusive meal kits, access to the classes is FREE&mdash;Order &amp; reserve\n          your spot today!\n        </p>\n        <button\n          className={cls(\n            styles.button,\n            'btn btn-outline-light d-block py-2 px-sm-8 mt-4 mt-md-6 mt-lg-4 mb-md-1 fs-4',\n            {\n              [styles.hide]: learn,\n            }\n          )}\n          disabled={learn}\n          type=\"button\"\n          onClick={onClick}\n        >\n          Learn How It Works\n        </button>\n        <h2\n          className={cls( styles.howItWorks, 'position-absolute text-white fs-5 text-uppercase', {\n            [styles.show]: learn,\n          })}\n        >\n          How It Works\n        </h2>\n      </div>\n    </div>\n  </div>\n);\n","import React from 'react';\nimport cls from 'classnames';\nimport { FontAwesomeIcon } from '@fortawesome/react-fontawesome';\nimport { IconLookup } from '@fortawesome/fontawesome-common-types';\n\nimport SvgIcon from 'src/explore/elements/SvgIcon';\n\nimport styles from './index.module.sass';\n\ninterface StepProps {\n  children?: React.ReactNode;\n  icon: IconLookup;\n  withArrow?: boolean;\n}\n\nexport const Step = ({ children, icon, withArrow }: StepProps ) => (\n  <li\n    className={cls( 'col-md-4 position-relative d-flex flex-md-column align-items-sm-center', {\n      'pt-3 pt-md-0 mt-9 mt-md-0': withArrow,\n    })}\n  >\n    {withArrow && (\n      <>\n        <SvgIcon\n          icon=\"arrow-down\"\n          svgClasses={`${styles.down} position-absolute d-md-none mx-auto fs-9`}\n        />\n        <SvgIcon\n          icon=\"arrow-right\"\n          svgClasses={`${styles.right} position-absolute d-none d-md-block d-xl-none pt-3 my-auto fs-9`}\n        />\n        <SvgIcon\n          icon=\"arrow-right-sm\"\n          svgClasses={`${styles.rightSmall} position-absolute d-none d-xl-block fs-12`}\n        />\n      </>\n    )}\n    <FontAwesomeIcon\n      className=\"flex-shrink-0 mt-2 mt-sm-0 mr-6 mr-md-0 ml-1 ml-md-0 fs-8\"\n      fixedWidth\n      icon={icon}\n    />\n    <p className=\"px-md-3 px-xl-5 m-0 mt-md-2\">{children}</p>\n  </li>\n);\n","import React from 'react';\nimport cls from 'classnames';\nimport { faBoxOpen, faShoppingCart } from '@fortawesome/pro-regular-svg-icons';\nimport { faLaptop } from '@fortawesome/pro-solid-svg-icons';\n\nimport { Expand } from 'src/explore/elements/Expand';\n\nimport { Step } from './elements/Step';\n\nimport styles from './index.module.sass';\n\ninterface HowItWorksProps {\n  open: boolean;\n}\n\nexport const HowItWorks = ({ open }: HowItWorksProps ) => (\n  <div\n    className={cls( styles.wrap, 'position-relative', {\n      [styles.open]: open,\n    })}\n  >\n    <Expand\n      isOpen={open}\n      initialHeight={{\n        xs: 23,\n        sm: 34,\n        md: 38,\n      }}\n    >\n      <div className=\"container-xl pt-3 pt-md-5 pt-lg-0 pb-7 pb-lg-8\">\n        <ol className={`${styles.list} row mb-2 mb-md-1 mb-lg-2 fs-5 text-md-center`}>\n          <Step icon={faShoppingCart}>\n            Purchase a curated meal kits with GB LIVE! Cook-Along experience included\n          </Step>\n          <Step icon={faBoxOpen} withArrow>\n            Receive your meal kit and class details & instructions the day before the class\n          </Step>\n          <Step icon={faLaptop} withArrow>\n            Join the Zoom class & get ready to experience a one-of-a-kind interactive class\n          </Step>\n        </ol>\n      </div>\n    </Expand>\n  </div>\n);\n","import React, { useState } from 'react';\nimport cls from 'classnames';\n\nimport { LazyImgix } from 'src/explore/elements/LazyImgix';\nimport { Video } from 'src/explore/elements/Video';\n\nimport styles from './index.module.sass';\n\ninterface MediaProps {\n  image: string;\n  open: boolean;\n  video: string;\n}\n\nexport const Media = ({ image, open, video }: MediaProps ) => {\n  const [ videoStatus, setVideoStatus ] = useState( null );\n\n  return (\n    <div className={cls( styles.media, 'position-absolute overflow-hidden' )}>\n      <LazyImgix\n        alt=\"Goldbelly LIVE! Cook-Alongs\"\n        className={cls( styles.image, 'position-absolute' )}\n        imgixParams={{ ar: '1:0.28333' }}\n        sizes=\"100vw\"\n        src={image}\n      />\n      <Video\n        autoPlay\n        className={cls( styles.video, 'position-absolute', {\n          [styles.loaded]: videoStatus === 'success',\n          [styles.open]: open,\n        })}\n        loop\n        muted\n        playsInline\n        src={video}\n        onLoadedData={() => setVideoStatus( 'success' )}\n      />\n    </div>\n  );\n};\n","import React, { useState } from 'react';\n\nimport { Routes } from 'src/explore/services/Routes';\n\nimport { Description } from './elements/Description';\nimport { HowItWorks } from './elements/HowItWorks';\nimport { Media } from './elements/Media';\n\nconst image = Routes.image.consumer( 'live-classes/gb-live-product-pool-hero-1440x408.jpg' );\nconst video = Routes.video.consumer( 'live-classes/gb-live-product-pool-hero-1440x408.mp4' );\n\nexport const Header = () => {\n  const [ learn, setLearn ] = useState( false );\n\n  return (\n    <header className=\"position-relative text-white\">\n      <Media image={image} open={learn} video={video} />\n\n      <div className=\"container-xl position-relative pt-lg-3\">\n        <Description learn={learn} onClick={() => setLearn( true )} />\n      </div>\n\n      <HowItWorks open={learn} />\n    </header>\n  );\n};\n","import React from 'react';\n\nimport { LiveClassPromotion } from 'src/explore/elements/LiveClassPromotion';\nimport { LiveClassSupport } from 'src/explore/elements/LiveClassSupport';\n\nimport SortedClasses from './compositions/SortedClasses';\nimport { Header } from './elements/Header';\n\nimport styles from './index.module.sass';\n\nconst LiveClasses = () => (\n  <>\n    <Header />\n\n    <SortedClasses />\n\n    <div className=\"container-xl pb-8 pb-md-9 mb-1 mb-md-0 text-dark\">\n      <LiveClassPromotion className=\"border-top pb-8 pb-sm-9 pt-9\" />\n\n      <LiveClassSupport className={`${styles.support} pt-4 pt-md-9 mt-2`} />\n    </div>\n  </>\n);\n\nexport default LiveClasses;\n"],"names":["Blurb","className","headline","icon","text","React.createElement","FontAwesomeIcon","LiveClassPromotion","cls","styles","faHatChef","faTurkey","faKeynote","faPhoneLaptop","sanitize","url","ExploreRouter","__publicField","product","merchant","productPermalink","merchantPermalink","PrizeRouter","RouterFactory","isWhitelabel","ClassCard","clickRef","recommId","searchId","dispatch","useDispatch","isFavorite","toggleFavorite","useFavorite","config","camelCaseKeys","useShopConfig","router","React","handleAddToCart","event","cartCartItemsActionCreators.create","cartActionCreators.open","generateProductUrl","URLHelper","generateMerchantUrl","handleProductClick","URLOpener","ProductPreview","_a","ProductSummary","ClassGrid","products","TABS","Tabs","activeTab","onClick","t","AVAILABLE_SORTING","LazyGrid","withLazyLoadSkeleton","ProductSkeletons","SortedClasses","setTab","React.useState","params","React.useMemo","filters","tabId","FilteredSearch","Deserializer","data","loading","meta","Description","learn","faVideo","Step","children","withArrow","SvgIcon","HowItWorks","open","Expand","faShoppingCart","faBoxOpen","faLaptop","Media","image","video","videoStatus","setVideoStatus","useState","LazyImgix","Video","Routes","Header","setLearn","LiveClasses","LiveClassSupport"],"mappings":"sgFAWO,MAAMA,EAAyB,CAAC,CACrC,UAAAC,EAAW,SAAAC,EAAU,KAAAC,EAAM,KAAAC,CAC7B,IACEC,gBAAC,OAAI,UAAAJ,GACHI,EAAAA,cAACC,GAAgB,UAAU,QAAQ,KAAAH,CAAY,CAAA,EAC/CE,EAAAA,cAAC,MAAG,UAAU,WAAA,EAAaH,CAAS,EACpCG,EAAAA,cAAC,KAAE,UAAU,MAAA,EAAQD,CAAK,CAC5B,0CCNWG,GAAqB,CAAC,CAAE,UAAAN,qBAClC,UAAQ,CAAA,UAAWO,EAAK,8BAA+BP,CAAU,CAAA,kBAC/D,KAAG,CAAA,UAAW,GAAGQ,GAAO,QAAQ,8BAAA,EAAgC,2BAAyB,EAE1FJ,EAAAA,cAAC,MAAI,CAAA,UAAU,UACb,EAAAA,EAAA,cAACL,EAAA,CACC,UAAU,qDACV,SAAS,uBACT,KAAMU,EACN,KAAK,iHAAA,CACP,EACAL,EAAA,cAACL,EAAA,CACC,UAAU,qDACV,SAAS,+BACT,KAAMW,EACN,KAAK,sIAAA,CACP,EACAN,EAAA,cAACL,EAAA,CACC,UAAU,qDACV,SAAS,0BACT,KAAMY,EACN,KAAK,4GAAA,CACP,EACAP,EAAA,cAACL,EAAA,CACC,UAAU,qDACV,SAAS,qBACT,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