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,EAAAA,cAAA,OAAKG,IAAMoE,EAAkBnE,IAAI,aAAaC,UC1E7C,yBD2EDL,EAAAA,cAAA,OAAKK,UC/EJ,wBDgFGwB,EAAQlB,KACVX,EAAAA,cAAA,OAAKK,UC/EN,yBDgFGwB,EAAQoC,IAEZjE,EAAAA,cAAA,OAAKK,UC7EJ,uBD6EgCqB,GAAG,kBAClC1B,EAAAA,cAAA,QAAMK,UC5EP,yBD4EwC,qCACvCL,EAAAA,cAACmE,EAAAA,EAAa,CACZ9D,UC/EH,uBDgFG+D,YAAU,EACVC,SApDE,8zB","sources":["webpack://artfully-walls/./app/javascript/arts/components/collections/collections.js","webpack://artfully-walls/./app/javascript/arts/actions/collections.js","webpack://artfully-walls/./app/javascript/arts/components/collections/index.js","webpack://artfully-walls/./app/javascript/arts/components/gift_cards/gift_cards.js","webpack://artfully-walls/./app/javascript/arts/components/gift_cards/styles.module.scss?ca80"],"sourcesContent":["import React, { useEffect } from 'react';\nimport { Link } from 'react-router-dom';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport { Loader } from 'semantic-ui-react';\nimport Collection from './collection';\nimport * as AppClasses from '../Application/styles.module.scss';\nimport { eGiftCards } from '../gift_cards/gift_cards';\nimport * as Classes from './styles.module.scss';\nimport GTMPageView from '../Application/data_layer';\nimport { trackEvent } from '../../config/analytics';\n\nconst Collections = ({\n title,\n loading,\n items,\n loadCollections,\n withGiftCard\n}) => {\n useEffect(() => {\n if (items.length === 0 && !loading) {\n loadCollections();\n }\n }, []);\n\n useEffect(() => {\n if (!loading && items.length) {\n trackEvent('collections center', { 'collections count': items.length, title });\n }\n }, [loading, items.length]);\n\n const giftCard = withGiftCard ? (\n <>\n

Gifts

\n \n \"Gift\n \n \n \n ) : null;\n\n const actionLabel = giftCard ? 'SHOP NOW' : 'VIEW COLLECTION';\n\n const collection = loading ? (\n \n Loading, hold on for a sec...\n \n ) : (\n <>\n

{ items.length ? title : null }

\n \n \n );\n\n return (\n
\n { title ? : null }\n
\n { giftCard }\n { collection }\n
\n
\n );\n};\n\nCollections.propTypes = {\n title: PropTypes.string.isRequired,\n loading: PropTypes.bool.isRequired,\n items: PropTypes.array.isRequired,\n loadCollections: PropTypes.func.isRequired,\n withGiftCard: PropTypes.bool\n};\n\nexport default Collections;\n","import Constants from 'arts/config/constants';\nimport { loadCollectionsApi } from 'arts/config/api';\n\nexport const loadCollections = () => (dispatch) => {\n dispatch({ type: Constants.Collections.LOAD });\n loadCollectionsApi({}).then((items) => {\n dispatch({ type: Constants.Collections.LOADED, items });\n }).catch(() => {});\n};\n\nexport const loadDesignerPicks = () => (dispatch) => {\n dispatch({ type: Constants.DesignerPicks.LOAD });\n loadCollectionsApi({ picks: true }).then((items) => {\n dispatch({ type: Constants.DesignerPicks.LOADED, items });\n }).catch(() => {});\n};\n\nexport const loadGiftGuides = () => (dispatch) => {\n dispatch({ type: Constants.GiftGuides.LOAD });\n loadCollectionsApi({ gifts: true }).then((items) => {\n dispatch({ type: Constants.GiftGuides.LOADED, items });\n }).catch(() => {});\n};\n","import React from 'react';\nimport { connect } from 'react-redux';\nimport CollectionsRenderer from './collections';\nimport { loadCollections, loadDesignerPicks, loadGiftGuides } from '../../actions/collections';\n\nconst mapStateToPropsCollections = ({ collections }) => collections;\nconst mapStateToPropsDesignerPicks = ({ designerPicks }) => designerPicks;\nconst mapStateToPropsGiftGuides = ({ giftGuides }) => giftGuides;\n\nconst CollectionsWrapper = connect(mapStateToPropsCollections, {\n loadCollections\n})(CollectionsRenderer);\n\nconst PicksWrapper = connect(mapStateToPropsDesignerPicks, {\n loadCollections: loadDesignerPicks\n})(CollectionsRenderer);\n\nconst GiftGuiddesWrapper = connect(mapStateToPropsGiftGuides, {\n loadCollections: loadGiftGuides\n})(CollectionsRenderer);\n\nexport const Collections = () => ;\nexport const DesignerPicks = () => ;\nexport const GiftGuides = () => ;\n","/* eslint-disable react/no-children-prop */\nimport React, { useEffect } from 'react';\n// import PropTypes from 'prop-types';\nimport { Link } from 'react-router-dom';\nimport numeral from 'arts/config/numeral';\nimport ReactMarkdown from 'react-markdown';\nimport giftCardsHeader from 'arts/assets/gift_card_header.jpg';\nimport eGiftCardsImage from 'arts/assets/e_gift_cards_image.png';\nimport balanceInquiryImage from 'arts/assets/balance_inquiry_image.png';\nimport { trackEvent } from 'arts/config/analytics';\nimport * as AppClasses from '../Application/styles.module.scss';\nimport * as Classes from './styles.module.scss';\nimport GTMPageView from '../Application/data_layer';\n\nexport const eGiftCards = () => {\n numeral.locale(window.currentLocale.currentLocale);\n const from = numeral(25).format('$0');\n const to = numeral(2000).format('$0');\n return ({\n image: eGiftCardsImage,\n title: 'E-Gift Cards',\n text: `Show them how much you care with our e-gift card. It is emailed directly to the recipient with a personal message from you on any date you select. Available amount from ${ from } - ${ to }.`,\n link: {\n name: 'SHOP NOW',\n href: '/gift_cards/card'\n }\n });\n};\n\nconst BALANCE_INQUERY = {\n image: balanceInquiryImage,\n title: 'Balance Inquiry',\n text: 'See the amount of funds left on your e-gift card.',\n link: {\n name: 'CHECK BALANCE',\n href: '/gift_cards/balance_inquiry'\n }\n};\n\nconst TERMS = `Artfully Walls Gift Cards are issued by Artfully Walls Ltd. (\"we\", \"us\", and \"our\").\n\nThe Gift Cards may only be redeemed toward the purchase of products our Web Site, www.artfullywalls.com. In addition to the terms set forth below, the purchase and use of the Gift Cards and the use of our Web Site are governed by the our term of use that can be accessed at https://www.artfullywalls.com/terms_of_use.\n\nCoupons and discounts cannot be applied to gift card purchases. If other merchandise is included in your order, the coupon value will apply only to those items.\n\nArtfully Walls shall not be responsible for the loss, unauthorized use or theft of a Gift Card.\n\nGift Card are nonrefundable and cannot be transferred, exchanged or resold and cannot be redeemed for cash (except where required by applicable law).`;\n\n/* eslint-disable jsx-a11y/anchor-is-valid */\nconst section = (items) => (\n
\n
\n {\n
{ items.title }
\n \n
\n \n \n \n
\n
\n);\n/* eslint-enable jsx-a11y/anchor-is-valid */\n\nconst GiftCards = () => {\n useEffect(() => {\n trackEvent('gift cards');\n }, []);\n\n return (\n
\n \n
\n \"Gift\n
\n { section(eGiftCards()) }\n
\n { section(BALANCE_INQUERY) }\n
\n
\n e-Gift Card Terms and Conditions:\n \n
\n
\n
\n );\n};\n\nexport default GiftCards;\n","// extracted by mini-css-extract-plugin\nvar _1 = \"BBO5XHgu7VSDVtYDjgob\";\nvar _2 = \"Q1R1FYmp00PuEQn1LKhF\";\nvar _3 = \"UZ3_21St7D6BubSAtHMj\";\nvar _4 = \"oialr9Z3Dv272nkwKrAM\";\nvar _5 = \"TLyOanxjB4ajcqH4hs1v\";\nvar _6 = \"V3kKF7_Z9POoq2Y0kqXJ\";\nvar _7 = \"KrQ2A2lNGcpxGmtZrTZg\";\nvar _8 = \"YI3osNHFdpVFPQcHnAWu\";\nvar _9 = \"wiMipEds4ipEOrkPlgDR\";\nvar _a = \"sQ4npnTkNFinfmNbKLLZ\";\nvar _b = \"_8_bWQFYToMlFoJGK4a4Q\";\nvar _c = \"dg4rhQ8KD88qkj_P2vZS\";\nvar _d = \"Y_6GAu74ZIAePDEKjXgy\";\nexport { _1 as \"button\", _2 as \"container\", _3 as \"delimiterBlackHorizontal\", _4 as \"delimiterGaryVertical\", _5 as \"image\", _6 as \"imageTop\", _7 as \"items\", _8 as \"section\", _9 as \"terms\", _a as \"termsText\", _b as \"termsTitle\", _c as \"text\", _d as \"title\" }\n"],"names":["Collections","title","loading","items","loadCollections","withGiftCard","useEffect","length","trackEvent","giftCard","React","Link","to","src","alt","className","Classes","classnames","AppClasses","Collection","name","eGiftCards","description","text","actionLabel","link","collectionHref","collection","Loader","active","inline","map","i","Object","assign","key","id","GTMPageView","pageType","section","toLowerCase","CollectionsWrapper","connect","mapStateToPropsCollections","collections","dispatch","type","Constants","LOAD","loadCollectionsApi","then","LOADED","catch","CollectionsRenderer","PicksWrapper","mapStateToPropsDesignerPicks","designerPicks","loadDesignerPicks","DesignerPicks","picks","GiftGuiddesWrapper","mapStateToPropsGiftGuides","giftGuides","loadGiftGuides","GiftGuides","gifts","numeral","locale","window","currentLocale","from","format","image","eGiftCardsImage","href","BALANCE_INQUERY","balanceInquiryImage","ReactMarkdown","escapeHtml","children","GiftCards","giftCardsHeader"],"sourceRoot":""}