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3D,UAAU,IAAI4D,EAAE,uGAAuGN,UAAU,8BAA6B,UAACK,OAAAA,CAAK3D,UAAU,IAAI4D,EAAE,4IAA4IN,UAAU,gCAA+B,UAACK,OAAAA,CAAK3D,UAAU,IAAI4D,EAAE,wYAAwYN,UAAU,gCAA+B,UAACK,OAAAA,CAAK3D,UAAU,IAAI4D,EAAE,qVAAqVN,UAAU,gCAA+B,UAACK,OAAAA,CAAK3D,UAAU,IAAI4D,EAAE,gTAAgTN,UAAU,gCAA+B,UAACK,OAAAA,CAAK3D,UAAU,IAAI4D,EAAE,4NAA4NN,UAAU,+BAA8B,UAACK,OAAAA,CAAK3D,UAAU,IAAI4D,EAAE,6RAA6RN,UAAU,+BAA8B,UAACO,OAAAA,CAAK7D,UAAU,IAAIN,MAAM,QAAQI,OAAO,SAASwD,UAAU,+BAA8B,UAACO,OAAAA,CAAK7D,UAAU,IAAIN,MAAM,QAAQI,OAAO,SAASwD,UAAU,gCAA+B,UAACK,OAAAA,CAAK3D,UAAU,IAAI4D,EAAE,4cAA4cN,UAAU,+BAA8B,UAACK,OAAAA,CAAK3D,UAAU,IAAI4D,EAAE,iVAAiVN,UAAU,oCAIn7G,aCPA,WAAkB","sources":["webpack://_N_E/./components/product/Swatch/SwatchPopover/BrandIcon.jsx","webpack://_N_E/./components/product/Swatch/SwatchPopover/index.jsx","webpack://_N_E/./components/icons/IconSunbrella.jsx","webpack://_N_E/./components/product/Swatch/SwatchPopover/SwatchPopover.module.scss"],"sourcesContent":["\"use client\"\n\nimport Style from './SwatchPopover.module.scss';\nimport Image from \"next/image\"\nimport { IconSunbrella } from \"components/icons/IconSunbrella\"\nimport { useMemo } from 'react';\n\n\nfunction BrandIcon({ brandName }){\n\n function getBrandIcon(brandName){\n switch(brandName){\n case \"Sunbrella\": return ;\n case \"Bliss\": return \"/assets/logos/Logo+Bliss.png\";\n case \"Outdura\": return \"/assets/logos/Outdura-Logo-White.png\";\n case \"O'bravia\": return \"/assets/logos/obravia-R-logo-22-white.png\";\n case \"Revolution\": return \"/assets/logos/revolution-performance-fabric-vector-logo.png\";\n // case \"Tempotest\": return \"/assets/logos/Tempotest.png\";\n // case \"Spuncrylic\": return \"/assets/logos/Spuncrylic.png\";\n // case \"Symphony\": return \"/assets/logos/Symphony-Fabrics.png\";\n // case \"Textilene\": return \"/assets/logos/Textilene.png\";\n // case \"Phifertex\": return \"/assets/logos/phiphertex-logo-blanco.png\";\n // case \"Suncrylic\": return \"/assets/logos/Suncrylic.png\";\n // case \"Serge Ferrari\": return \"/assets/logos/Serge-Ferarri.png\";\n case \"Kingsley Bate\":\n case \"Kingsley Bate Exclusive\": return \"/assets/logos/KB_Logo.png\";\n default: return null;\n }\n }\n \n const brandIcon = useMemo(() => getBrandIcon(brandName), [brandName]);\n\n\n if (!brandIcon) return null;\n\n return (\n <>\n {brandName === \"Sunbrella\" ? (\n \n ):(\n \"\"\n\n )}\n \n )\n}\n\n\nexport default BrandIcon;","import Style from './SwatchPopover.module.scss';\nimport utils from 'styles/globals/utils.module.scss';\nimport clsx from \"clsx\";\nimport PropTypes from \"prop-types\";\nimport Image from \"next/image\";\nimport { IconClose } from \"components/icons/IconClose\";\nimport parseOptionLabel from 'components/applications/pip/helpers/parseOptionLabel.helper';\nimport { cloudinarySwatchLoader } from \"thirdparty/Cloudinary/cloudinaryLoader\";\nimport { blurImage } from 'lib/Constants/blurImage';\nimport PriceAdjustedValue from \"components/applications/pip/components/Options/PriceAdjustedValue\";\nimport React, { useContext, useState } from \"react\";\nimport { SwatchContext } from \"components/product/SwatchGroup/SwatchContext\";\nimport BrandIcon from './BrandIcon';\nimport { usePopper } from 'react-popper';\n\n\nconst SwatchPopover = React.forwardRef(({ \n label, \n image, \n isStocked, \n isSpecialOrder, \n color, \n brandName, \n text, \n grade, \n priceAdjust,\n fileName,\n isSet,\n qty,\n isMobile,\n hideSwatch,\n referenceElement\n\n}, ref) => {\n\n const swatchData = (color && brandName && grade) ? { color, brandName, text, grade, priceAdjust } : parseOptionLabel(label)\n const [ swatchContext, dispatch ] = useContext(SwatchContext)\n const [ arrowElement, setArrowElement ] = useState(null)\n const [ popperElement, setPopperElement ] = useState(null)\n\n function closePopover(){\n dispatch({ type: \"setPopover\", data: null })\n }\n\n const { styles, attributes } = usePopper(referenceElement, popperElement, {\n placement: \"bottom\",\n modifiers: [\n {\n name: 'offset',\n options: {\n offset: [0, -20],\n },\n },\n { \n name: 'arrow',\n options: {\n element: arrowElement\n }\n }\n ]\n })\n\n return(\n <>\n {(!isMobile && swatchContext.show && !hideSwatch ) && (\n
\n\n
\n \n\n {isStocked && (\n \n \n \n \n \n \n )}\n\n {isSpecialOrder && (\n \n \n \n \n \n \n )}\n \n\n {(fileName || image) && (\n {label\n )}\n\n\n
\n {(swatchData.grade || swatchData.brandName || isStocked || isSpecialOrder) && (\n
    \n
  • \n \n \n \n\n {swatchData.grade && (\n \n Grade {swatchData.grade}\n \n )}\n
  • \n
\n )}\n \n \n \n\n \n {swatchData?.text ? swatchData?.text.split(swatchData?.brandName)[1] ?? swatchData?.text : \"\"}\n \n\n\n {swatchData.priceAdjust && (\n \n Upcharge: \n \n \n \n \n )}\n \n\n {swatchData.ships && (\n \n Shipping: {swatchData.ships}\n \n )}\n \n\n {swatchData.care && (\n \n Care: Wash with warm water and soap. Dry clean only.\n \n )}\n\n \n {swatchData.leadTime && (\n \n Lead Time: 20 - 40 Weeks.\n \n )}\n \n \n
\n
\n\n
\n
\n )}\n \n )\n})\n\n\nSwatchPopover.displayName = \"SwatchPopover\";\n\n\nSwatchPopover.propTypes = {\n option_id: PropTypes.number,\n label: PropTypes.string,\n image: PropTypes.string,\n name: PropTypes.string\n}\n\n\nexport default SwatchPopover;","\nexport function IconSunbrella(props){\n return(\n \n \n {/* */}\n \n )\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"arrow\":\"SwatchPopover_arrow__60ITF\",\"popover\":\"SwatchPopover_popover__1QMOg\",\"block\":\"SwatchPopover_block__2q6yE\",\"close\":\"SwatchPopover_close__dD9h4\",\"image\":\"SwatchPopover_image__8aQpr\",\"brandLogo\":\"SwatchPopover_brandLogo__byPbB\",\"textCntr\":\"SwatchPopover_textCntr__5_TBt\",\"brandGrade\":\"SwatchPopover_brandGrade___UmEY\",\"brand\":\"SwatchPopover_brand__e1XAV\",\"grade\":\"SwatchPopover_grade__9KjE1\",\"badge\":\"SwatchPopover_badge__v10iS\",\"meta\":\"SwatchPopover_meta___6nJX\",\"logos\":\"SwatchPopover_logos__kH5mo\",\"title\":\"SwatchPopover_title__XRduW\",\"line\":\"SwatchPopover_line__zKGml\",\"specialIcon\":\"SwatchPopover_specialIcon__otBEQ\"};"],"names":["BrandIcon","brandName","brandIcon","useMemo","getBrandIcon","IconSunbrella","width","fill","Image","src","height","alt","className","Style","SwatchPopover","React","ref","label","image","isStocked","isSpecialOrder","color","text","grade","priceAdjust","fileName","isSet","qty","isMobile","hideSwatch","referenceElement","swatchData","parseOptionLabel","swatchContext","dispatch","useContext","SwatchContext","arrowElement","setArrowElement","useState","popperElement","setPopperElement","styles","attributes","usePopper","placement","modifiers","name","options","offset","element","show","div","style","popper","button","type","onClick","closePopover","data","IconClose","svg","viewBox","g","id","data-name","transform","circle","cx","cy","r","path","d","rect","rx","placeholder","quality","blurDataURL","blurImage","loader","cloudinarySwatchLoader","ul","li","span","clsx","utils","strong","split","small","PriceAdjustedValue","value","ships","care","leadTime","arrow","displayName","propTypes","option_id","PropTypes","props","xmlSpace","aria-label"],"sourceRoot":"","ignoreList":[]}