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AyBjf,IAC7C,OAAQhM,EAAO,cAAegM,GAAG,OAAS,CAAC,EAAGhM,EAAO,CACnDiQ,UAAWA,EACX2Z,gBAAiBA,KAEd5d,EAAEkf,mBACL,OAAQnB,EAASjoB,QAAS,SAK5BkK,EAAE6K,gBACJ,EAwCEsU,UAvCkB,SAAuBnf,GACzCie,EAAiBnoB,SAAU,GAC3B,OAAQ9B,EAAO,YAAagM,GAAG,OAAS,CAAC,EAAGhM,EAAO,CACjDiQ,UAAWA,EACX2Z,gBAAiBA,IAErB,IAkCiB,gBAAoB,SAAS,OAAS,CAAC,EAAGW,EAAgB,CACzEta,QAASA,EACTpP,UAAW,SACXmoB,SAAUA,EACV/kB,GAAIA,EACJoT,KAAMA,EACN3H,UAAU,EACV5M,IAAKinB,EACLZ,UAjHK,OAAOA,GAGLH,GAAY,EAAI,EAFdG,EAiHTlqB,KAAMA,EACN0iB,MAAOA,KACS,eAAmB6I,EAAc,CACjD1nB,IAAKknB,IAET,IACAja,EAASqb,aAAe,CAAC,KAAM,UAAW,YAAa,iBAAkB,uBAAwB,WAAY,SAAU,KAAM,gBAAiB,QAAS,OAAQ,WAAY,UAAW,cAAe,YAAa,QAAS,WAAY,SAAU,WAAY,SAAU,OAAQ,SAC/Qrb,EAASsb,YAAc,WACvBtb,EAASoP,UAiEL,CAAC,EACL,K","sources":["webpack://artfully-walls/./app/javascript/arts/actions/walls.js","webpack://artfully-walls/./app/javascript/arts/assets/bag.js","webpack://artfully-walls/./app/javascript/arts/components/Application/scroll.js","webpack://artfully-walls/./app/javascript/arts/components/InfiniteScroll/container.js","webpack://artfully-walls/./app/javascript/arts/components/InfiniteScroll/index.js","webpack://artfully-walls/./app/javascript/arts/components/category/category_description.js","webpack://artfully-walls/./app/javascript/arts/actions/wall.js","webpack://artfully-walls/./app/javascript/arts/components/wall_single/styles.module.scss?7a3b","webpack://artfully-walls/./app/javascript/arts/config/use_component_size.js","webpack://artfully-walls/./app/javascript/arts/components/wall_single/dots.js","webpack://artfully-walls/./app/javascript/arts/components/wall_single/wall_picture_shuffler.js","webpack://artfully-walls/./app/javascript/arts/components/wall_single/wall_picture_preview.js","webpack://artfully-walls/./app/javascript/arts/components/wall_single/shuffle_button.js","webpack://artfully-walls/./app/javascript/arts/components/wall_single/preview.js","webpack://artfully-walls/./app/javascript/arts/components/wall_single/sharing.js","webpack://artfully-walls/./app/javascript/arts/components/wall_single/rearrange.js","webpack://artfully-walls/./app/javascript/arts/components/walls_as_grid/wall_preview.js","webpack://artfully-walls/./app/javascript/arts/components/wall_single/toolbar.js","webpack://artfully-walls/./app/javascript/arts/components/wall_single/wall_picture.js","webpack://artfully-walls/./app/javascript/arts/components/walls_as_page/next.js","webpack://artfully-walls/./app/javascript/arts/components/wall_single/rearrange_modal.js","webpack://artfully-walls/./app/javascript/arts/components/wall_single/wall_single.js","webpack://artfully-walls/./app/javascript/arts/components/wall_single/index.js","webpack://artfully-walls/./app/javascript/arts/components/wall/prev.js","webpack://artfully-walls/./app/javascript/arts/components/wall/carousel.js","webpack://artfully-walls/./app/javascript/arts/components/wall/wall_page.js","webpack://artfully-walls/./app/javascript/arts/components/wall/wall.js","webpack://artfully-walls/./app/javascript/arts/components/wall/index.js","webpack://artfully-walls/./app/javascript/arts/components/walls_as_grid/wall.js","webpack://artfully-walls/./app/javascript/arts/components/walls_as_grid/container.js","webpack://artfully-walls/./app/javascript/arts/components/walls_as_grid/no_results.js","webpack://artfully-walls/./app/javascript/arts/components/walls/list.js","webpack://artfully-walls/./app/javascript/arts/components/walls_as_grid/walls_as_grid.js","webpack://artfully-walls/./app/javascript/arts/components/walls_as_grid/index.js","webpack://artfully-walls/./app/javascript/arts/components/walls_as_page/walls_as_page.js","webpack://artfully-walls/./app/javascript/arts/components/walls_as_page/index.js","webpack://artfully-walls/./app/javascript/arts/components/walls/index.js","webpack://artfully-walls/./app/javascript/arts/components/walls/shared.js","webpack://artfully-walls/./app/javascript/arts/config/hooks.js","webpack://artfully-walls/./app/javascript/shared/preview_const.js","webpack://artfully-walls/./app/javascript/wall_builder/components/canvas/image.js","webpack://artfully-walls/./app/javascript/wall_builder/components/canvas/silhouette.js","webpack://artfully-walls/./app/javascript/wall_builder/components/assets/settings.js","webpack://artfully-walls/./app/javascript/wall_builder/components/assets/trash.js","webpack://artfully-walls/./app/javascript/wall_builder/components/work/work.js","webpack://artfully-walls/./app/javascript/wall_builder/components/work/work_picture_image.js","webpack://artfully-walls/./app/javascript/wall_builder/config/const.js","webpack://artfully-walls/./app/javascript/arts/components/category/styles.module.scss?215b","webpack://artfully-walls/./app/javascript/wall_builder/components/canvas/classes.module.scss?a4f6","webpack://artfully-walls/./app/javascript/wall_builder/components/work/classes.module.scss?f0e0","webpack://artfully-walls/./node_modules/semantic-ui-react/dist/es/modules/Checkbox/Checkbox.js"],"sourcesContent":["import Constants from 'arts/config/constants';\nimport { loadWallsApi, loadWallFiltersApi } from 'arts/config/api';\n\nexport const fetchWalls = (page, params) => (dispatch) => {\n dispatch({\n type: Constants.Walls.FETCH,\n page\n });\n\n loadWallsApi(page, params)\n .then((walls) => dispatch({\n type: Constants.Walls.FETCH_SUCCESS,\n walls,\n page,\n params\n })).catch(() => {});\n};\n\nexport const resetWalls = () => ({\n type: Constants.Walls.RESET\n});\n\nexport const fetchWallFilters = () => (dispatch) => {\n loadWallFiltersApi()\n .then(\n (filters) => dispatch({\n type: Constants.WallFilters.FETCH_SUCCESS,\n filters\n })\n ).catch(() => {});\n};\n","import React from 'react';\n\nconst SvgComponent = (props) => (\n \n \n \n);\n\nexport default SvgComponent;\n","import { useEffect } from 'react';\n\nexport default () => {\n useEffect(() => {\n window.scrollTo(0, 0);\n }, []);\n\n return null;\n};\n","import React from 'react';\nimport T from 'prop-types';\nimport * as AppClasses from '../Application/styles.module.scss';\n\nconst Container = ({ children }) => (\n
\n
    \n { children }\n
\n
\n);\nContainer.propTypes = {\n children: T.node.isRequired\n};\n\nexport default Container;\n","/* eslint-disable prefer-destructuring */\nimport React, {\n useState, useEffect, useRef, useCallback, useMemo\n} from 'react';\nimport T from 'prop-types';\nimport DefaultContainer from './container';\n\nconst InfiniteScroll = ({\n items,\n itemRenderer,\n itemsContainer = DefaultContainer,\n onLoad,\n rootClassName,\n threshold = 100\n}) => {\n const rootRef = useRef(null);\n const [ticking, setTicking] = useState(false);\n\n const recalculate = useCallback(() => {\n if (!rootRef.current) {\n return;\n }\n const { top, height } = rootRef.current.getBoundingClientRect();\n const scrollY = window.scrollY || window.pageYOffset;\n const innerHeight = window.innerHeight;\n const rootElBottom = top + scrollY + height;\n const viewportBottom = scrollY + innerHeight;\n\n const shouldLoad = rootElBottom - threshold <= viewportBottom;\n\n if (shouldLoad) {\n setTicking(true);\n }\n }, [onLoad, threshold]);\n\n const onChange = useCallback(() => {\n if (!ticking) {\n setTimeout(() => {\n window.requestAnimationFrame(recalculate);\n }, 0);\n }\n }, [ticking, recalculate]);\n\n useEffect(() => {\n window.addEventListener('resize', onChange);\n window.addEventListener('scroll', onChange);\n\n recalculate();\n\n return () => {\n window.removeEventListener('resize', onChange);\n window.removeEventListener('scroll', onChange);\n };\n }, [onChange, recalculate]);\n\n useEffect(() => {\n if (ticking && items.length) {\n setTimeout(() => { setTicking(false); }, 0);\n }\n }, [items && items.length, ticking]);\n\n useEffect(() => {\n if (ticking) {\n onLoad();\n }\n }, [ticking, onLoad]);\n\n const content = useMemo(() => (\n React.createElement(\n itemsContainer,\n null,\n items.map(itemRenderer)\n )\n ), [items, itemRenderer, itemsContainer]);\n\n return (\n
\n { content }\n
\n );\n};\n\nInfiniteScroll.propTypes = {\n items: T.instanceOf(Array).isRequired,\n itemRenderer: T.func.isRequired,\n itemsContainer: T.oneOfType([T.element, T.func]),\n onLoad: T.func.isRequired,\n rootClassName: T.string,\n threshold: T.number\n};\n\nexport default InfiniteScroll;\n","import React, { useState, useMemo, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport ReactMarkdown from 'react-markdown';\nimport { loadPageDescriptionApi } from 'arts/config/api';\nimport * as AppClasses from '../Application/styles.module.scss';\nimport * as Classes from './styles.module.scss';\n\nconst CategoryDescription = ({ description, skipShowMore, loadadble }) => {\n const [showMore, setShowMore] = useState(!!skipShowMore);\n const [renderDescription, setRenderDescription] = useState(description);\n\n useEffect(() => {\n setRenderDescription(description);\n }, [description]);\n\n useEffect(() => {\n if (loadadble) {\n loadPageDescriptionApi().then(res => setRenderDescription(res.description)).catch(() => {});\n }\n }, [loadadble, description, window.location.href]);\n\n const button = useMemo(() => {\n if (skipShowMore) return null;\n if (showMore) {\n return (\n \n );\n }\n return (\n \n );\n }, [showMore, skipShowMore]);\n\n if (!renderDescription) return null;\n\n return (\n
\n
\n \n { renderDescription }\n \n { button }\n
\n
\n );\n};\n\nCategoryDescription.propTypes = {\n description: PropTypes.string,\n skipShowMore: PropTypes.bool,\n loadadble: PropTypes.bool\n};\n\nexport default CategoryDescription;\n","import Constants from 'arts/config/constants';\nimport { loadWallApi } from 'arts/config/api';\n\nexport const fetchWall = (id, sharingToken) => (dispatch) => {\n dispatch({\n type: Constants.Wall.FETCH,\n id,\n sharingToken\n });\n loadWallApi(id, sharingToken).then((wall) => dispatch({\n type: Constants.Wall.FETCH_SUCCESS,\n wall,\n sharingToken\n })).catch((error) => {\n if (error.status === 404) {\n window.location.href = '/walls';\n }\n });\n};\n","// extracted by mini-css-extract-plugin\nvar _1 = \"drkU39myMOZFp5kIe4yP\";\nvar _2 = \"u5QQPOkQtqXFq4qCf5bq\";\nvar _3 = \"C6MYTRo_ozj5pPbsipiw\";\nvar _4 = \"hGq6NTveajvOfbSbMtMg\";\nvar _5 = \"fBtbnW67R0RXAkh1CheY\";\nvar _6 = \"MTYUfFx5Ae93DFa62Ke4\";\nvar _7 = \"IXL_VtmRx4pmZjkvf4rz\";\nvar _8 = \"t3k73dkFKfxSUO_4n42R\";\nvar _9 = \"WB5MFw9gB6oBWrM8KUE5\";\nvar _a = \"_pf_Q3NVsOAmp8JR3m2N\";\nvar _b = \"WtCGmaxiARHIRe7hzTc5\";\nvar _c = \"SIiBIcF7xeatn48vzljq\";\nvar _d = \"fhX7EGvNJZobXrF8yOAl\";\nvar _e = \"FipsZELb2EARvtXkCSig\";\nvar _f = \"VrDR7RaQgeg1ZliCzjpQ\";\nvar _10 = \"vvybA6Yavt1d77BYUn0B\";\nvar _11 = \"RY_VXmlSJRWaFfNSILKz\";\nvar _12 = \"10px\";\nvar _13 = \"9px\";\nvar _14 = \"YlZ8qi0JgIT92Vc3h1VZ\";\nvar _15 = \"SDfFEAafSGmZtLYplQ0p\";\nvar _16 = \"PC454QiitoaJZ5DdqBuK\";\nvar _17 = \"ZzvFApgz7XZ6B4CryHM3\";\nvar _18 = \"eBOvrg1IR7Mnp05GV0QN\";\nvar _19 = \"QhnMJ7vKAynjsc27Cjnj\";\nvar _1a = \"XA20P0Mxt9Ptd0LxHgW1\";\nvar _1b = \"RETgg_AGtgAioqm9mlTC\";\nvar _1c = \"_oXyVMGZRCo5NIBk6m2A\";\nvar _1d = \"sjO1leCu7MVV0dj8CTwU\";\nvar _1e = \"r1rVXXBisl9v22eSMEo_\";\nvar _1f = \"JHge8WzEiH34VKyakF3m\";\nvar _20 = \"DuUGVa9Tbi464kmzxQxc\";\nvar _21 = \"lT9YlkXsRRb713GCa701\";\nvar _22 = \"zw3eCnvtE4HdvIxbK6zg\";\nvar _23 = \"kjZzJiIIpjIAyU1MkXrZ\";\nvar _24 = \"942px\";\nvar _25 = \"Poah3RLLBkjgdPi8vRex\";\nvar _26 = \"FRdLikO1VRl8Xzwa2ZMQ\";\nvar _27 = \"CeGkYt8XyQrt0AEHpxqw\";\nvar _28 = \"QjQsR3NPdZA8XSRZc6Px\";\nvar _29 = \"Gdyimub_JtZGZUlH5O0A\";\nvar _2a = \"gnSlT3ouU2BXMqBIa4pJ\";\nvar _2b = \"JMj56fFvF_6fV53OnEgm\";\nvar _2c = \"Dlo8wh8roJ98nmVyhjb5\";\nvar _2d = \"ARefwxAIk96GWngGolMA\";\nvar _2e = \"IVRPd5y7Mwy524Cvoozl\";\nvar _2f = \"uw_fMXmgvL21nsypmzpG\";\nvar _30 = \"zEtn1Z4YA7I5DasTLn0f\";\nvar _31 = \"OzPsQGUMoFzx3SLwmJCq\";\nvar _32 = \"tRbK4qDVNYGvQyDAuB3r\";\nvar _33 = \"i5CcGHy4YB4BXIM3UDqB\";\nvar _34 = \"BQ835jbD0cIUBlnBgY_m\";\nvar _35 = \"uJMvFake6IcqVd3KQYqP\";\nvar _36 = \"jZ6HZsIPJKxyghcTLRhS\";\nvar _37 = \"lc200XZ9cxXtlAmOBu8S\";\nvar _38 = \"xO828WMXlQFxNtgcijj8\";\nvar _39 = \"q_n4TcMT_soHYQCrGYFS\";\nvar _3a = \"idAbOikFwQ67cvHsH_ZW\";\nvar _3b = \"dYL31PYDEy89ZfL2ReKs\";\nvar _3c = \"KVE_HCdUzAUn6pzC39Rg\";\nvar _3d = \"q4Ba1EU_ef8yIO0JiQuU\";\nvar _3e = \"sND4OMsD7R6PyQoYRwRV\";\nvar _3f = \"xwl1XbkyZhqXZy1pVP7y\";\nvar _40 = \"d3orClvtbP6alRvayXzv\";\nexport { _1 as \"active\", _2 as \"affirm\", _3 as \"author\", _4 as \"buttonKeeper\", _5 as \"c2Text\", _6 as \"carousel\", _7 as \"checkBox\", _8 as \"column1\", _9 as \"column2\", _a as \"columnHeader\", _b as \"darkBG\", _c as \"dc\", _d as \"description\", _e as \"details\", _f as \"detais\", _10 as \"discount\", _11 as \"divider\", _12 as \"dotcontainerpadding\", _13 as \"dotitemsize\", _14 as \"dots\", _15 as \"end\", _16 as \"favorite\", _17 as \"first\", _18 as \"full\", _19 as \"hanging\", _1a as \"ic\", _1b as \"itemTools\", _1c as \"keeper\", _1d as \"last\", _1e as \"left\", _1f as \"loader\", _20 as \"mobileHidden\", _21 as \"mobileSwap\", _22 as \"mobileTitle\", _23 as \"mobileVisible\", _24 as \"mobilewidth\", _25 as \"next\", _26 as \"preview\", _27 as \"price\", _28 as \"raPages\", _29 as \"raTutorial\", _2a as \"raTutorialLink\", _2b as \"recommend\", _2c as \"right\", _2d as \"sharing\", _2e as \"shuffleButton\", _2f as \"shuffleLabel\", _30 as \"shuffler\", _31 as \"small\", _32 as \"space\", _33 as \"spacer\", _34 as \"swap\", _35 as \"t\", _36 as \"tool\", _37 as \"toolbar\", _38 as \"unselected\", _39 as \"view\", _3a as \"wall\", _3b as \"wallDetails\", _3c as \"wallKeeper\", _3d as \"withArrows\", _3e as \"work\", _3f as \"workPosition\", _40 as \"zoomIn\" }\n","import {\n useEffect, useRef, useState\n} from 'react';\n\nexport const useComponentSize = () => {\n const ref = useRef(null);\n const [size, setSize] = useState({ width: 0, height: 0 });\n\n const calculateSize = () => {\n requestAnimationFrame(() => {\n const rect = ref.current?.getBoundingClientRect();\n setSize({ width: rect.width, height: rect.height });\n });\n };\n\n useEffect(() => {\n setTimeout(() => calculateSize(), 100);\n window.addEventListener('resize', calculateSize);\n return (() => window.removeEventListener('resize', calculateSize));\n }, []);\n\n return [ref, size];\n};\n","import React, { useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { useComponentSize } from '../../config/use_component_size';\nimport * as Classes from './styles.module.scss';\n\nconst { dotitemsize, dotcontainerpadding } = Classes;\n\nconst Dots = ({ count, activeIndex }) => {\n const [ref, size] = useComponentSize();\n const [offset, setOffset] = useState(0);\n const { width } = size;\n\n const activeWidth = width - 2 * parseInt(dotcontainerpadding, 10);\n const visibleItemsCount = Math.min(Math.floor(activeWidth / parseInt(dotitemsize, 10)), count);\n\n useEffect(() => {\n if (visibleItemsCount < count) {\n if (activeIndex <= offset) {\n setOffset(Math.max(activeIndex - 1, 0));\n } else if (activeIndex >= offset + visibleItemsCount - 1) {\n if (activeIndex === count - 1) {\n setOffset(activeIndex - visibleItemsCount + 1);\n } else {\n setOffset(activeIndex - visibleItemsCount + 2);\n }\n }\n }\n }, [activeIndex, count, visibleItemsCount]);\n\n /*\n optional small dot\n optional dots\n active index\n optional dots\n optional small dot\n [O O O A o], visibleItemsCount = 5, activeIndex = 3\n [o O O A o]\n */\n\n const firstSmall = offset > 0;\n const lastSmall = offset + visibleItemsCount < count;\n const dots = Array.from({ length: visibleItemsCount }, (v, index) => {\n if (index === activeIndex - offset) { return 'A'; }\n if (index === 0 && firstSmall) { return 'o'; }\n if (index === visibleItemsCount - 1 && lastSmall) { return 'o'; }\n return 'O';\n });\n\n return (\n
\n {\n dots.map((dot, index) => {\n let className;\n if (dot === 'A') {\n className = Classes.active;\n }\n if (dot === 'o') {\n className = Classes.small;\n }\n return (\n
\n );\n })\n }\n
\n );\n};\n\nDots.propTypes = {\n count: PropTypes.number.isRequired,\n activeIndex: PropTypes.number.isRequired\n};\n\nexport default Dots;\n","import React, {\n useState, useEffect, useMemo, useRef\n} from 'react';\nimport { Link } from 'react-router-dom';\nimport classnames from 'classnames';\nimport PropTypes from 'prop-types';\nimport { Loader } from 'semantic-ui-react';\nimport AliceCarousel from 'react-alice-carousel';\nimport WorkPictureImage from 'wb/components/work/work_picture_image';\nimport { pathWithQuickShop } from 'arts/components/WorkListItem/info';\nimport { getWallShufflerMatches } from '../../config/api';\nimport { scaledPreviewDmentions } from '../../../shared/preview_const';\nimport Bag from '../../assets/bag';\nimport * as Classes from './styles.module.scss';\nimport Dots from './dots';\nimport { trackEvent } from '../../config/analytics';\n\nconst WallPictureShuffler = ({\n frameOption, dpi,\n workId, workSizeId, frameId, title,\n calculatePosition, className, x, y,\n overrideWallPicture, wallPictureId, paperId,\n wallId\n}) => {\n const [loading, setLoading] = useState(true);\n const [activeIndex, setActiveIndex] = useState(0);\n const [alternativeWorkPictures, setAlternativeWorkPictures] = useState([{\n title,\n frameOption,\n workId,\n workSizeId,\n frameId,\n paperId\n }]);\n\n const carousel = useRef(null);\n\n const adjustedActiveIndex = useMemo(() => {\n if (activeIndex < 0) {\n return activeIndex + alternativeWorkPictures.length;\n }\n if (activeIndex >= alternativeWorkPictures.length) {\n return activeIndex - alternativeWorkPictures.length;\n }\n return activeIndex;\n }, [activeIndex, alternativeWorkPictures.length]);\n\n useEffect(() => {\n getWallShufflerMatches(\n workSizeId, frameId\n ).then((wps) => {\n setAlternativeWorkPictures(s => [...s, ...wps]);\n setLoading(false);\n }).catch(() => {});\n }, []);\n\n useEffect(() => {\n overrideWallPicture(wallPictureId, alternativeWorkPictures[adjustedActiveIndex]);\n if (workId !== alternativeWorkPictures[adjustedActiveIndex].workId) {\n trackEvent('wall shuffle replace', {\n 'wall id': wallId,\n 'wall picture id': wallPictureId,\n from: workId,\n to: alternativeWorkPictures[adjustedActiveIndex].workId\n });\n }\n }, [adjustedActiveIndex]);\n\n const setNewItemPosition = (e) => setActiveIndex(e.item);\n\n const prevItem = (e) => carousel?.current?.slidePrev(e);\n const nextItem = (e) => carousel?.current?.slideNext(e);\n\n const toolbar = useMemo(() => {\n if (loading) {\n return (\n \n );\n }\n const wId = alternativeWorkPictures[adjustedActiveIndex].workId;\n return (\n <>\n \n \n \n
\n \n
\n \n \n \n \n \n \n );\n }, [loading, adjustedActiveIndex, workId]);\n\n const { previewWidth, previewHeight } = frameOption;\n const { width, height } = scaledPreviewDmentions(previewWidth, previewHeight, dpi);\n const { left, top } = calculatePosition({ x, y });\n\n return (\n \n
\n { toolbar }\n
\n \n {\n alternativeWorkPictures.map(\n (\n {\n title: altTitle,\n frameOption: {\n zoomPreviewUrl,\n previewHeight: altPreviewHeight,\n previewWidth: altPreviewWidth\n }\n },\n index\n ) => (\n \n )\n )\n }\n \n \n
\n );\n};\n\nWallPictureShuffler.propTypes = {\n frameOption: PropTypes.object.isRequired,\n dpi: PropTypes.number.isRequired,\n workSizeId: PropTypes.number.isRequired,\n workId: PropTypes.number.isRequired,\n title: PropTypes.string.isRequired,\n calculatePosition: PropTypes.func.isRequired,\n x: PropTypes.number.isRequired,\n y: PropTypes.number.isRequired,\n className: PropTypes.string,\n frameId: PropTypes.number,\n overrideWallPicture: PropTypes.func.isRequired,\n wallPictureId: PropTypes.number.isRequired,\n paperId: PropTypes.number.isRequired,\n wallId: PropTypes.number.isRequired\n};\n\nexport default WallPictureShuffler;\n","/* eslint-disable jsx-a11y/anchor-is-valid */\nimport React, { useMemo } from 'react';\nimport { Link } from 'react-router-dom';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport Work from 'wb/components/work/work';\nimport { pathWithQuickShop } from 'arts/components/WorkListItem/info';\nimport * as Classes from './styles.module.scss';\nimport WallPictureShuffler from './wall_picture_shuffler';\nimport Bag from '../../assets/bag';\nimport { wallPictureToPreview } from '../../config/lib';\nimport { useWindowSize } from '../visual_search/use_window_size';\n\nconst { mobilewidth } = Classes;\n\nconst workPictureToWorkProps = (wp, index) => {\n const {\n workId, x, y, title, workSizeId, frameId, landscape, workSizes\n } = wp;\n return {\n workId,\n x,\n y,\n title,\n workSizeId,\n frameId,\n landscape,\n workSizes,\n index,\n dragging: false,\n loadWorkDetails: null,\n moveWorkTo: null,\n removeFromCanvas: null,\n onClick: null\n };\n};\n\nconst WallPicturePreview = ({\n wp, isSkipped, dpi, previewX, previewY, index, showPlus, shuffleMode, overrideWallPicture, wallId\n}) => {\n const calculatePosition = ({ x, y }) => ({\n left: (x - previewX) * dpi,\n top: (y - previewY) * dpi\n });\n\n const workProps = workPictureToWorkProps(wp, index);\n if (!workProps.workSizeId) {\n return null;\n }\n\n const { width } = useWindowSize();\n\n const tools = useMemo(() => {\n if (!showPlus) { return null; }\n return (\n
\n \n
\n );\n }, [showPlus, wp]);\n\n if (shuffleMode) {\n const frameOption = (((wp.workSizes || [])[0] || {}).options || [])[0];\n if (!frameOption) {\n return null;\n }\n return (\n \n );\n }\n\n if (width < parseInt(mobilewidth, 10)) {\n return (\n \n { tools }\n \n
\n );\n }\n\n return (\n \n { tools }\n \n \n );\n};\n\nWallPicturePreview.propTypes = {\n wp: PropTypes.object.isRequired,\n isSkipped: PropTypes.bool,\n dpi: PropTypes.number.isRequired,\n previewX: PropTypes.number.isRequired,\n previewY: PropTypes.number.isRequired,\n index: PropTypes.number.isRequired,\n showPlus: PropTypes.bool.isRequired,\n shuffleMode: PropTypes.bool,\n overrideWallPicture: PropTypes.func,\n wallId: PropTypes.number.isRequired\n};\n\nexport default WallPicturePreview;\n","import React from 'react';\nimport { Checkbox } from 'semantic-ui-react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport * as Classes from './styles.module.scss';\n\nconst ShuffleButton = ({\n setShuffleMode, shuffleMode, className, isDarkBackground\n}) => {\n if (!window.hasShuffle) { return null; }\n const changeShuffleMode = (e, { checked }) => setShuffleMode(checked);\n return (\n
\n SWAP\n \n
\n );\n};\n\nShuffleButton.propTypes = {\n setShuffleMode: PropTypes.func.isRequired,\n shuffleMode: PropTypes.bool.isRequired,\n className: PropTypes.string,\n isDarkBackground: PropTypes.bool\n};\n\nexport default ShuffleButton;\n","import React, { useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport WallConstants from 'wb/config/const';\nimport Silhouette from 'wb/components/canvas/silhouette';\nimport { useComponentSize } from 'arts/config/use_component_size';\nimport * as Classes from './styles.module.scss';\nimport WallPicturePreview from './wall_picture_preview';\nimport QuickShop from '../QuickShopModal/quick_shop';\nimport ShuffleButton from './shuffle_button';\n\n// def wall_background_style(wall)\n// res = \"background:#{wall.preview_background_color}\"\n// if wall.background_image.blank ?\n// res << \";#{backround_3d(wall.preview_background_color)}\"\n// else\n// res << \" url(\\\"#{wall.background_image.remote_url}\\\"); background-size: cover\"\n// end\n// res\n// end\n\nconst Preview = ({\n wallPictures, previewX, previewY, previewWidth, previewHeight,\n currentColor, skipWallPictures, withSilhouette, className, background3DColor, backgroundImageUrl,\n allowShuffle, shuffleMode, setShuffleMode, overrideWallPicture,\n wallId, isDarkBackground\n}) => {\n const [ref, rect] = useComponentSize();\n\n const [dpi, setDpi] = useState(0);\n\n useEffect(() => {\n if (rect.width) {\n setDpi(rect.width / previewWidth);\n }\n }, [rect && rect.width]);\n\n const renderPreview = dpi ? (\n wallPictures.map((wp, index) => (\n \n ))\n ) : null;\n\n const sY = previewHeight === 138 ? (\n (previewHeight - WallConstants.silhouette.height + 43) / 2\n ) : (previewHeight - WallConstants.silhouette.height - 10) / 2;\n\n const silhouette = (dpi && withSilhouette) ? (\n \n ) : null;\n\n const style = {\n backgroundColor: currentColor\n };\n if (backgroundImageUrl) {\n style.backgroundImage = `url(${ backgroundImageUrl })`;\n } else if (background3DColor && background3DColor.length) {\n style.backgroundImage = `linear-gradient(135deg, ${ background3DColor[0] }, ${ background3DColor[1] })`;\n }\n\n return (\n \n { silhouette }\n { renderPreview }\n \n {\n allowShuffle && (\n \n )\n }\n
\n );\n};\n\nPreview.propTypes = {\n className: PropTypes.string,\n previewX: PropTypes.number.isRequired,\n previewY: PropTypes.number.isRequired,\n previewWidth: PropTypes.number.isRequired,\n previewHeight: PropTypes.number.isRequired,\n wallPictures: PropTypes.array.isRequired,\n currentColor: PropTypes.string.isRequired,\n skipWallPictures: PropTypes.object.isRequired,\n withSilhouette: PropTypes.bool,\n background3DColor: PropTypes.array,\n backgroundImageUrl: PropTypes.string,\n allowShuffle: PropTypes.bool,\n setShuffleMode: PropTypes.func,\n shuffleMode: PropTypes.bool,\n overrideWallPicture: PropTypes.func,\n wallId: PropTypes.number.isRequired,\n isDarkBackground: PropTypes.bool\n};\n\nexport default Preview;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport PinIt from 'arts/components/Social/pin_it';\nimport Favorite from '../favorite';\nimport * as Classes from './styles.module.scss';\n\nconst Share = ({\n id, href, description, imageUrl, noFavorites\n}) => {\n const pinit = imageUrl ? (\n \n ) : null;\n\n const renderFavorite = noFavorites ? null : (\n \n );\n\n return (\n <>\n { pinit }\n { renderFavorite }\n \n );\n};\n\nShare.propTypes = {\n id: PropTypes.number.isRequired,\n description: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n imageUrl: PropTypes.string,\n noFavorites: PropTypes.bool.isRequired\n};\n\nexport default Share;\n","import React from 'react';\n\nconst SvgComponent = (props) => (\n \n \n \n \n \n \n \n \n \n \n \n);\n\nexport default SvgComponent;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Modal from 'arts/components/Modal';\nimport { MODAL_SELECTOR } from 'arts/config/constants';\nimport * as Classes from '../Modal/styles.module.scss';\n\nconst WallPreview = ({ children, onCancel }) => (\n \n { children }\n \n);\n\nWallPreview.propTypes = {\n onCancel: PropTypes.func.isRequired,\n children: PropTypes.node.isRequired\n};\n\nexport default WallPreview;\n","/* eslint-disable jsx-a11y/media-has-caption */\n\nimport React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport Sharing from './sharing';\nimport * as Classes from './styles.module.scss';\nimport Rearrange from './rearrange';\nimport WallPreview from '../walls_as_grid/wall_preview';\nimport ZoomModal from '../Viewer/zoom_modal';\nimport Preview from './preview';\nimport ScaleIcon from '../Viewer/scale_icon.js';\n\nconst ToolBar = ({\n id, href, description, imageUrl, wallPictures, width, height, currentColor, noFavorites\n}) => {\n const [displayEnlarge, setDisplayEnlarge] = useState(false);\n const showEnlarge = () => setDisplayEnlarge(true);\n const hideEnlarge = () => setDisplayEnlarge(false);\n const [displayPreview, setDisplayPreview] = useState(false);\n const showPreview = () => setDisplayPreview(true);\n const hidePreview = () => setDisplayPreview(false);\n\n const enlarge = displayEnlarge ? (\n \n ) : null;\n\n const preview = displayPreview ? (\n \n
\n \n
\n
\n \n ) : null;\n\n const enlargeButton = imageUrl ? (\n \n ) : null;\n\n return (\n <>\n { enlarge }\n { preview }\n
\n
\n
\n \n \n Rearrange Wall\n \n \n { enlargeButton }\n
\n
\n \n
\n
\n
\n \n );\n};\n\nToolBar.propTypes = {\n id: PropTypes.number.isRequired,\n description: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n imageUrl: PropTypes.string,\n wallPictures: PropTypes.array,\n width: PropTypes.number,\n height: PropTypes.number,\n currentColor: PropTypes.string,\n noFavorites: PropTypes.bool.isRequired\n};\n\nexport default ToolBar;\n","import React from 'react';\nimport classnames from 'classnames';\nimport PropTypes from 'prop-types';\nimport { Link } from 'react-router-dom';\nimport { Checkbox } from 'semantic-ui-react';\nimport { humanSizes } from 'wb/config/utils';\nimport * as Classes from './styles.module.scss';\nimport { calculatePaperProps } from '../Viewer/utils';\nimport PaperView from '../Viewer/paper_view';\nimport Warning from '../PapersMenu/warning';\n\nconst WallPicture = ({\n wallPictureId, landscape, title, frameOption, workHref, authorHref, authorName, skipFrames,\n onToggleSkipped, prices, selected, onToggleSelected, isAvailable, index, onClick\n}) => {\n const hasFrameCheck = !!frameOption.frameId;\n\n const toggleSkipped = () => onToggleSkipped(wallPictureId);\n\n const toggleSelected = () => {\n if (isAvailable) { onToggleSelected(wallPictureId); }\n };\n\n const framedPrint = hasFrameCheck ? (\n \n ) : null;\n\n const price = skipFrames[wallPictureId] ? prices.noFramesPrice : prices.price;\n\n if (!price) {\n return null;\n }\n\n const workTo = `${ workHref }?paper_id=${ frameOption.paperId }&frame_id=${ frameOption.frameId }`;\n\n const renderPaper = () => {\n const {\n paperHeight, paperWidth, printHeight, printWidth\n } = frameOption;\n const { width, borderH, borderW } = calculatePaperProps({\n paperHeight, paperWidth, printHeight, printWidth, landscape, useWidth: false\n });\n const paperProps = {\n width, borderH, borderW, imageUrl: frameOption.noFramePreviewUrl, title\n };\n return ;\n };\n\n const noFrame = (skipFrames[wallPictureId] || !frameOption.frameId);\n\n const previewImage = noFrame ? renderPaper() : (\n \n );\n\n const {\n paperMaterial,\n frameApiName,\n frameFinalFramedSize,\n warning,\n displayPaperWidth,\n displayPaperHeight,\n displayPrintWidth,\n displayPrintHeight\n } = frameOption;\n\n const hs = humanSizes(landscape, displayPrintWidth, displayPrintHeight);\n const phs = humanSizes(landscape, displayPaperWidth, displayPaperHeight);\n\n let finalSize = null;\n if (paperMaterial !== 'Canvas') {\n finalSize = noFrame ? (\n <>\n Paper Size: \n { phs }\n \n ) : (\n <>\n Final Framed Size: \n { frameFinalFramedSize }\n \n );\n }\n\n const sizes = (\n
\n
\n Image Size: \n { hs }\n
\n
\n { finalSize }\n
\n
\n Printed on \n { paperMaterial }\n
\n {\n noFrame ? null : (\n
\n { frameApiName }\n
\n )\n }\n
\n );\n\n const renderAuthor = authorHref ? (\n
\n By \n \n { authorName }\n \n
\n ) : null;\n\n const selectItem = isAvailable ? (\n \n ) : null;\n\n const onLinkClick = () => onClick(index);\n\n return (\n
  • \n
    \n \n { previewImage }\n \n
    \n
    \n
    \n
    \n
    \n \n { title }\n \n { renderAuthor }\n
    \n { sizes }\n
    \n { framedPrint }\n
    \n
    \n
    \n
    \n { prices.currency }\n { price.toFixed(2) }\n
    \n { selectItem }\n
    \n
    \n \n
    \n
  • \n );\n};\n\nWallPicture.propTypes = {\n // we should keep the id for the parent original wall picture\n wallPictureId: PropTypes.number.isRequired,\n\n landscape: PropTypes.bool.isRequired,\n isAvailable: PropTypes.bool.isRequired,\n title: PropTypes.string.isRequired,\n frameOption: PropTypes.object.isRequired,\n workHref: PropTypes.string.isRequired,\n authorHref: PropTypes.string.isRequired,\n authorName: PropTypes.string.isRequired,\n prices: PropTypes.object.isRequired,\n\n skipFrames: PropTypes.object.isRequired,\n onToggleSkipped: PropTypes.func.isRequired,\n selected: PropTypes.bool.isRequired,\n onToggleSelected: PropTypes.func.isRequired,\n index: PropTypes.number.isRequired,\n onClick: PropTypes.func.isRequired\n};\n\nexport default WallPicture;\n","import React from 'react';\n\nconst SvgComponent = (props) => (\n \n \n \n);\n\nexport default SvgComponent;\n","/* eslint-disable jsx-a11y/anchor-is-valid */\nimport React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport Left from 'arts/assets/chevron_left';\nimport Right from 'arts/assets/chevron_right';\nimport { MODAL_SELECTOR } from 'arts/config/constants';\nimport Modal from '../Modal';\nimport * as PageClasses from '../works/styles.module.scss';\nimport * as Classes from './styles.module.scss';\n\nconst RearrangeModal = ({\n visible, onCancel\n}) => {\n const [page, setPage] = useState(1);\n\n const setCPage = (e, p) => {\n e.preventDefault();\n setPage(p);\n };\n\n const prevPage = (e) => {\n e.preventDefault();\n let p = page - 1;\n if (p === 0) {\n p = 1;\n }\n setPage(p);\n };\n\n const nextPage = (e) => {\n e.preventDefault();\n let p = page + 1;\n if (p === 6) {\n p = 5;\n }\n setPage(p);\n };\n\n if (!visible) {\n return null;\n }\n\n return (\n \n
    \n

    \n REARRANGE WALL TUTORIAL\n

    \n
    \n

    Style this Gallery Wall as you wish, with these few super easy steps!

    \n \n
    \n \"About\"\n
    \n \n );\n};\n\nRearrangeModal.propTypes = {\n visible: PropTypes.bool.isRequired,\n onCancel: PropTypes.func.isRequired\n};\n\nexport default RearrangeModal;\n","/* eslint-disable jsx-a11y/media-has-caption */\n/* eslint-disable jsx-a11y/anchor-is-valid */\nimport React, {\n useEffect, useMemo, useState, useCallback\n} from 'react';\nimport PropTypes from 'prop-types';\nimport { Checkbox, Loader } from 'semantic-ui-react';\nimport classnames from 'classnames';\nimport queryString from 'query-string';\nimport * as AppClasses from '../Application/styles.module.scss';\nimport * as Classes from './styles.module.scss';\nimport BreadCrumbsGeneric from '../bread_crumbs';\nimport Preview from './preview';\nimport ToolBar from './toolbar';\nimport WallPicture from './wall_picture';\nimport Scroll from '../Application/scroll';\nimport Next from '../walls_as_page/next';\nimport { clearFilters } from '../walls';\nimport RearrangeModal from './rearrange_modal';\nimport GTMPageView from '../Application/data_layer';\nimport { AffirmPromo } from '../AddToCart/add_to_cart';\nimport { scheduleProductView } from '../../config/api';\nimport { onWallImpression, onWallWorkPictureClick, trackEvent } from '../../config/analytics';\nimport ShuffleButton from './shuffle_button';\nimport { wallPictureToPreview } from '../../config/lib';\n\nconst toggleValue = (originalValues, v) => {\n const values = { ...originalValues };\n if (values[v]) {\n delete values[v];\n } else {\n values[v] = true;\n }\n return values;\n};\n\nconst WallSingle = ({\n id, description, name, loading, fetchWall, href, discountPercent,\n wallPictures, previewX, previewY, previewWidth, previewHeight, currentColor,\n imageUrl, background3DColor, backgroundColors, hangingImageUrl, hangingImageHref,\n skipBreadCrumbs, width, height, sharingToken, backgroundImageUrl,\n addWallToCart, addWallPicturesToCart,\n singleWall,\n isDarkBackground,\n currency\n}) => {\n const [skipFrames, setSkipFrames] = useState({});\n const [skipWallPictures, setSkipWallPictures] = useState({});\n const [overriddenPictures, setOverriddenPictures] = useState({});\n const [shuffleMode, setShuffleModeAdv] = useState(false);\n\n const overrideWallPicture = (wallPictureId, alternative) => {\n setOverriddenPictures(\n s => ({ ...s, [wallPictureId]: alternative })\n );\n };\n\n const originalOrOverriden = (wp) => {\n const aCopy = JSON.parse(JSON.stringify(wp));\n const overriden = overriddenPictures[wp.wallPictureId];\n if (overriden) {\n const newWp = { ...aCopy, ...overriden };\n return newWp;\n }\n return wp;\n };\n\n const setShuffleMode = (mode) => {\n if (!mode) {\n setOverriddenPictures({});\n }\n trackEvent('wall shuffle', { mode: mode ? 'on' : 'off', 'wall id': id, 'wall name': name });\n setShuffleModeAdv(mode);\n };\n\n const onToggleSkipped = (v) => setSkipFrames(toggleValue(skipFrames, v));\n\n const onToggleSelected = (v) => setSkipWallPictures(toggleValue(skipWallPictures, v));\n\n const [rearrabgeVisible, setRearrabgeVisible] = useState(false);\n\n const toggleRearrangeBanner = (e) => {\n if (e) { e.preventDefault(); }\n setRearrabgeVisible(!rearrabgeVisible);\n };\n\n const allAvailable = () => Object.keys(skipWallPictures).length === 0\n && wallPictures.map(wp => wp.isAvailable).findIndex(v => v === false) === -1;\n\n const hasSkipFrames = () => Object.keys(skipFrames).length !== 0;\n\n const toggleSkipFrames = useCallback(() => {\n if (hasSkipFrames()) {\n setSkipFrames({});\n return;\n }\n const sf = {};\n wallPictures.forEach(wp => { sf[wp.wallPictureId] = true; });\n setSkipFrames(sf);\n }, [skipFrames, wallPictures]);\n\n useEffect(() => {\n if (!name && !loading && fetchWall) {\n fetchWall(id, sharingToken);\n }\n }, []);\n\n useEffect(() => {\n if (name && singleWall) {\n trackEvent('wall', {\n 'wall id': id,\n 'wall name': name\n });\n scheduleProductView(\n onWallImpression({\n id, name, wallPictures, discountPercent\n })\n );\n }\n }, [name]);\n\n const hanging = useMemo(() => (\n hangingImageUrl ? (\n
  • \n \n How To Hang This Wall\n \"How\n View Instructions\n \n
  • \n ) : null\n ), [hangingImageUrl]);\n\n const links = useMemo(() => [\n { text: 'Gallery Walls', to: '/walls' },\n { text: name, to: href }\n ], [id, name]);\n\n const discount = useMemo(() => (\n discountPercent ? (\n <>\n Purchase Entire Wall & Save \n { parseInt(discountPercent, 10) }\n %\n \n ) : null\n ), [id, discountPercent]);\n\n if (!name) {\n return (\n
    \n \n Loading wall details, hold on for a sec...\n \n
    \n );\n }\n\n const selectedItems = () => wallPictures\n .filter((wp) => !skipWallPictures[wp.wallPictureId])\n .filter((wp) => wp.isAvailable);\n\n const calculatePrice = () => {\n const wholeWall = !hasSkipFrames() && allAvailable();\n const totalPrice = selectedItems()\n .map((wp) => (skipFrames[wp.wallPictureId] ? wp.prices.noFramesPrice : wp.prices.price))\n .reduce((sum, price) => sum + price, 0);\n const price = wholeWall ? totalPrice * (1 - (discountPercent / 100)) : totalPrice;\n return price;\n };\n\n const currentPrice = () => `${ currency }${ calculatePrice().toFixed(2) }`;\n\n const addToCart = () => {\n const overrides = {};\n Object.keys(overriddenPictures).forEach((k) => {\n const { workSizeId } = overriddenPictures[k];\n overrides[k] = workSizeId;\n });\n if (Object.keys(skipWallPictures).length || Object.keys(skipFrames).length) {\n const wps = {};\n wallPictures.forEach(wp => {\n if (!skipWallPictures[wp.wallPictureId]) {\n wps[wp.wallPictureId] = !skipFrames[wp.wallPictureId];\n }\n });\n addWallPicturesToCart(wps, id, overrides);\n return;\n }\n addWallToCart(id, overrides);\n };\n\n const previewProps = {\n wallPictures,\n previewX,\n previewY,\n previewWidth,\n previewHeight,\n currentColor,\n skipWallPictures,\n background3DColor,\n backgroundImageUrl,\n allowShuffle: true,\n isDarkBackground,\n shuffleMode,\n setShuffleMode,\n overrideWallPicture,\n wallId: id\n };\n\n const toolBarProps = {\n id,\n href,\n description,\n imageUrl,\n wallPictures,\n currentColor,\n width,\n height,\n noFavorites: !!sharingToken\n };\n\n const asTheyAppear = (withMobile) => (\n <>\n
    \n \n Items as they appear on the wall above > total items: \n { selectedItems().length }\n  = \n { currentPrice() }\n \n
    \n \n \n );\n\n const onWallPictureClick = (position) => onWallWorkPictureClick(\n wallPictures[position], id, position\n );\n\n const wall = (\n <>\n \n { singleWall && id ? : null }\n
    \n { !skipBreadCrumbs ? : null }\n
    \n {/* mobile discount name name starts here */}\n
    \n
    \n { discount }\n
    \n

    { name }

    \n \n
    \n {/* mobile discount name name ends here */}\n
    \n {/* desktop version is here */}\n \n \n
    \n
    \n
    \n
    \n { discount }\n
    \n

    { name }

    \n

    \n { description }\n

    \n \n
    \n \n
    \n \n
    \n
    \n

    \n { description }\n

    \n
    \n
    \n
    \n
    \n
    \n
    \n { asTheyAppear(true) }\n
    \n
      \n {\n wallPictures.map(\n (wp, index) => (\n \n )\n )\n }\n
    \n
    \n { asTheyAppear(false) }\n
    \n
    \n
    \n
    \n \n \n \"Gallery\n \n
    \n
    ADDITIONAL WALL INFORMATION
    \n
    \n
      \n
    • \n Recommended Paint Colors\n
      \n
    • \n { hanging }\n
    • \n Learn More About Our Gallery Walls\n \n
    • \n
    \n
    \n
    \n
    \n \n );\n\n if (skipBreadCrumbs) {\n return wall;\n }\n\n const params = clearFilters(queryString.parse(window.location.search));\n return (\n
    \n { wall }\n \n \n \n
    \n );\n};\n\nWallSingle.propTypes = {\n fetchWall: PropTypes.func,\n id: PropTypes.number,\n currency: PropTypes.string,\n loading: PropTypes.bool,\n name: PropTypes.string,\n description: PropTypes.string,\n href: PropTypes.string,\n discountPercent: PropTypes.number,\n previewX: PropTypes.number,\n previewY: PropTypes.number,\n previewWidth: PropTypes.number,\n previewHeight: PropTypes.number,\n wallPictures: PropTypes.array,\n currentColor: PropTypes.string,\n imageUrl: PropTypes.string,\n backgroundImageUrl: PropTypes.string,\n backgroundColors: PropTypes.array,\n background3DColor: PropTypes.array,\n hangingImageUrl: PropTypes.string,\n hangingImageHref: PropTypes.string,\n skipBreadCrumbs: PropTypes.bool,\n width: PropTypes.number,\n height: PropTypes.number,\n sharingToken: PropTypes.string,\n addWallToCart: PropTypes.func.isRequired,\n addWallPicturesToCart: PropTypes.func.isRequired,\n singleWall: PropTypes.bool,\n isDarkBackground: PropTypes.bool\n};\n\nexport default WallSingle;\n","import { connect } from 'react-redux';\nimport { fetchWall } from 'arts/actions/wall';\nimport { addWallToCart, addWallPicturesToCart } from 'arts/actions/cart_items';\nimport WallSingle from './wall_single';\n\nconst mapStateToProps = ({ wall }, { id, sharingToken }) => {\n const loadedWall = wall[id] || wall[sharingToken];\n if (loadedWall) {\n return { ...loadedWall, sharingToken };\n }\n return { id, sharingToken };\n};\n\nexport default connect(mapStateToProps, {\n fetchWall, addWallToCart, addWallPicturesToCart\n})(WallSingle);\n","import React from 'react';\n\nconst SvgComponent = (props) => (\n \n \n \n);\n\nexport default SvgComponent;\n","import React, { useState, useEffect } from 'react';\nimport classnames from 'classnames';\nimport ReactRouterPropTypes from 'react-router-prop-types';\nimport queryString from 'query-string';\nimport PropTypes from 'prop-types';\nimport WallSingle from '../wall_single/wall_single';\nimport Prev from './prev';\nimport Next from '../walls_as_page/next';\nimport * as Classes from '../walls/styles.module.scss';\nimport { scheduleProductView } from '../../config/api';\nimport { onWallImpression } from '../../config/analytics';\n\nconst PREFETCH_ITEMS = 5;\n\nconst Carousel = ({\n items, onLoad, loading, params, history, currentIndex, addWallToCart, addWallPicturesToCart\n}) => {\n const [renderIndex, setRenderIndex] = useState(1);\n const [moving, setMoving] = useState(false);\n\n const resetToActive = (index) => {\n scheduleProductView(onWallImpression(items[index]));\n setMoving(false);\n setRenderIndex(1);\n if (!loading && currentIndex + PREFETCH_ITEMS >= items.length) {\n onLoad();\n }\n history.push(`${ items[index].href }?${ queryString.stringify({ ...params }) }`);\n };\n\n const onPrev = () => {\n setMoving(true);\n setRenderIndex(renderIndex - 1);\n setTimeout(() => resetToActive(currentIndex - 1), 501);\n };\n\n const onNext = () => {\n setMoving(true);\n setRenderIndex(renderIndex + 1);\n setTimeout(() => resetToActive(currentIndex + 1), 501);\n };\n\n useEffect(() => {\n onLoad();\n scheduleProductView(onWallImpression(items && items[0]));\n }, []);\n\n const renderItems = () => {\n const walls = [];\n if (currentIndex === 0) {\n walls.push((\n
    \n
    \n
    \n ));\n } else {\n walls.push((\n
    \n \n
    \n ));\n }\n walls.push((\n
    \n \n
    \n ));\n if (currentIndex + 1 < items.length) {\n walls.push((\n
    \n \n
    \n ));\n }\n return walls;\n };\n\n const prev = (currentIndex === 0 ? null : (\n \n ));\n\n const next = (currentIndex + 1 >= items.length ? null : (\n \n ));\n\n const innerStyle = {\n transform: `translate3d(-${ renderIndex * 100 }%, 0, 0)`\n };\n\n return (\n
    \n
    \n \n { items.length ? renderItems() : null }\n
    \n
    \n { prev }\n { next }\n
    \n );\n};\n\nCarousel.propTypes = {\n currentIndex: PropTypes.number.isRequired,\n items: PropTypes.array.isRequired,\n onLoad: PropTypes.func.isRequired,\n loading: PropTypes.bool.isRequired,\n params: PropTypes.object.isRequired,\n history: ReactRouterPropTypes.history.isRequired,\n addWallToCart: PropTypes.func.isRequired,\n addWallPicturesToCart: PropTypes.func.isRequired\n};\n\nexport default Carousel;\n","import React, { useEffect } from 'react';\nimport queryString from 'query-string';\nimport PropTypes from 'prop-types';\nimport ReactRouterPropTypes from 'react-router-prop-types';\nimport Carousel from './carousel';\nimport Filter from '../works/filter';\nimport BreadCrumbsGeneric from '../bread_crumbs';\nimport GridSelection, { PAGE, THUMB } from '../walls/grid_selection';\nimport { clearFilters } from '../walls';\nimport { BREADCRUMBS_LINKS, VALID_QUERY_PARAMS } from '../walls/shared';\nimport GTMPageView from '../Application/data_layer';\n\nimport * as AppClasses from '../Application/styles.module.scss';\nimport * as Classes from '../walls/styles.module.scss';\nimport { trackEvent } from '../../config/analytics';\nimport { humanizeParams } from '../works/works';\n\nconst WallPage = ({\n walls,\n loading,\n hasMore,\n fetchWalls,\n resetWalls,\n wallFilters,\n page,\n history,\n id,\n addWallToCart,\n addWallPicturesToCart\n}) => {\n const activeFilters = clearFilters(queryString.parse(window.location.search));\n\n const currentIndex = walls.findIndex(w => w.id === id);\n\n const canFetch = () => !loading && hasMore;\n\n const loadNextPage = () => {\n if (!canFetch()) { return; }\n fetchWalls(page + 1, clearFilters(queryString.parse(window.location.search)));\n };\n\n const renderBreadCrumbs = () => {\n const bc = [...BREADCRUMBS_LINKS];\n const { name, href } = walls[currentIndex];\n bc.push({ to: href, text: name });\n return bc;\n };\n\n const resetWallsFilter = () => {\n resetWalls();\n setTimeout(loadNextPage, 0);\n };\n\n useEffect(() => {\n if (!loading && walls.length && wallFilters) {\n const humanParams = humanizeParams(activeFilters, wallFilters);\n const wall = walls.find(w => w.id === Number(id));\n const { id: wallId, name } = wall || {};\n const eventProps = {\n ...humanParams,\n as: 'page',\n 'walls count': walls.length,\n 'wall id': wallId,\n 'wall name': name\n };\n trackEvent('walls center', eventProps);\n }\n }, [loading, walls.length, wallFilters, id]);\n\n return (\n
    \n \n \n
    \n \n \n \n
    \n \n
    \n \n
    \n
    \n );\n};\n\nWallPage.propTypes = {\n id: PropTypes.number.isRequired,\n fetchWalls: PropTypes.func.isRequired,\n resetWalls: PropTypes.func.isRequired,\n fetchWallFilters: PropTypes.func.isRequired,\n // walls\n loading: PropTypes.bool.isRequired,\n walls: PropTypes.array.isRequired,\n hasMore: PropTypes.bool.isRequired,\n page: PropTypes.number.isRequired,\n // filters\n wallFilters: PropTypes.arrayOf(PropTypes.any),\n history: ReactRouterPropTypes.history.isRequired,\n addWallToCart: PropTypes.func.isRequired,\n addWallPicturesToCart: PropTypes.func.isRequired\n};\n\nexport default WallPage;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport WallSingle from '../wall_single';\nimport WallPage from './wall_page';\n\nconst Wall = ({ id, single, ...rest }) => {\n if (id === 'style' || id === 'room') {\n return null;\n }\n if (single) {\n return ;\n }\n const { walls, ...props } = rest;\n return ;\n};\n\nWall.propTypes = {\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n single: PropTypes.bool.isRequired\n};\n\nexport default Wall;\n","import { connect } from 'react-redux';\nimport { fetchWall } from 'arts/actions/wall';\nimport { addWallToCart, addWallPicturesToCart } from 'arts/actions/cart_items';\nimport { fetchWalls, resetWalls, fetchWallFilters } from 'arts/actions/walls';\nimport Wall from './wall';\n\nconst mapStateToProps = ({\n wall, walls, wallFilters: { filters }\n}, { match: { params: { id } } }) => {\n let wallId = parseInt(id, 10);\n let sharingToken = null;\n if (id !== wallId.toString()) {\n if (id === 'style' || id === 'room') {\n wallId = id;\n } else {\n sharingToken = id;\n }\n }\n const w = (walls.walls || []).find(v => v.id === wallId);\n if (w) {\n return {\n ...w,\n single: false,\n wallFilters: filters,\n walls\n };\n }\n const loadedWall = wall[wallId] || wall[sharingToken];\n if (loadedWall) {\n return {\n ...loadedWall,\n single: true,\n sharingToken\n };\n }\n return {\n id: sharingToken ? null : wallId,\n single: true,\n sharingToken\n };\n};\n\nexport default connect(mapStateToProps, {\n fetchWall, fetchWalls, resetWalls, fetchWallFilters, addWallToCart, addWallPicturesToCart\n})(Wall);\n","import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Link } from 'react-router-dom';\nimport PinIt from 'arts/components/Social/pin_it';\nimport Favorite from '../favorite';\nimport { WallStoreItem } from '../store_item';\nimport { onWallClick } from '../../config/analytics';\n\nimport * as AppClasses from '../Application/styles.module.scss';\nimport * as Classes from '../walls/styles.module.scss';\nimport ZoomModal from '../Viewer/zoom_modal';\n\nconst Wall = ({\n id, name, description, imageUrl, href, allowStores, storeItemId,\n wallPictures, discountPercent, position\n}) => {\n const [displayPreview, setDisplayPreview] = useState(false);\n const showPreview = () => setDisplayPreview(true);\n const hidePreview = () => setDisplayPreview(false);\n\n const preview = displayPreview ? (\n \n ) : null;\n\n const storeOpts = allowStores ? (\n \n ) : null;\n\n const onClick = () => onWallClick({\n id, name, wallPictures, discountPercent\n }, position);\n\n return (\n
  • \n { preview }\n
    \n \n \n \n { storeOpts }\n
    \n \n {\n

    { name }

    \n

    \n { description }\n

    \n \n
    \n \n SHOP THIS WALL\n \n
    \n
  • \n );\n};\n\nWall.propTypes = {\n id: PropTypes.number.isRequired,\n name: PropTypes.string.isRequired,\n description: PropTypes.string.isRequired,\n imageUrl: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n allowStores: PropTypes.bool,\n storeItemId: PropTypes.number,\n discountPercent: PropTypes.number.isRequired,\n wallPictures: PropTypes.array.isRequired,\n position: PropTypes.number.isRequired\n};\n\nexport default Wall;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport * as AppClasses from '../Application/styles.module.scss';\nimport * as Classes from '../walls/styles.module.scss';\n\nconst Container = React.forwardRef(({ children }, ref) => (\n
      \n { children }\n
    \n));\n\nContainer.propTypes = {\n children: PropTypes.node.isRequired\n};\n\nexport default Container;\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst NoResults = ({ loading, walls }) => {\n const noResults = !loading && walls.length === 0;\n return noResults ? (\n
    \n There are no results that match your selection - please try again.\n
    \n ) : null;\n};\n\nNoResults.propTypes = {\n loading: PropTypes.bool.isRequired,\n walls: PropTypes.array.isRequired\n};\n\nexport default NoResults;\n","import React, { useEffect, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport ReactRouterPropTypes from 'react-router-prop-types';\nimport * as AppClasses from 'arts/components/Application/styles.module.scss';\nimport * as Classes from 'arts/components/walls/styles.module.scss';\nimport { usePrevious } from 'arts/config/hooks';\nimport Filter from '../works/filter';\nimport BreadCrumbsGeneric from '../bread_crumbs';\nimport GridSelection, { THUMB } from './grid_selection';\nimport { VALID_QUERY_PARAMS, BREADCRUMBS_LINKS } from './shared';\nimport GTMPageView from '../Application/data_layer';\n\nconst mapSlugsToIds = (params) => {\n const out = { ...params };\n Object.keys(out).forEach(key => {\n if (key === 'with_home_decor_style_id' || key === 'with_room_id') {\n if (!parseInt(out[key], 10)) {\n const slugMap = (key === 'with_home_decor_style_id') ? window.slugsMaps.home_decor_styles : window.slugsMaps.rooms;\n const id = slugMap[out[key]];\n out[key] = id;\n }\n }\n });\n return out;\n};\n\nconst GALERRY_WALLS = 'Gallery Walls';\n\nconst getParams = (params, pathname, wallFilters) => {\n if (pathname === '/walls') {\n return [mapSlugsToIds(params), [], GALERRY_WALLS];\n }\n // string to id using window.slugsMaps - udpate params and skipFilterKeys\n // URL to params using pathname - udpate params and skipFilterKeys\n if (pathname.match(/\\/walls\\/room/)) {\n const slug = pathname.split('/').pop();\n const id = parseInt(window.slugsMaps.rooms[slug], 10);\n const filter = (wallFilters || []).find(f => f.key === 'with_room_id');\n const title = filter ? filter.options.find(o => o.id === id).name : '';\n return [mapSlugsToIds({ ...params, with_room_id: id }), [], `${ title } ${ GALERRY_WALLS }`];\n }\n\n if (pathname.match(/\\/walls\\/style/)) {\n const slug = pathname.split('/').pop();\n const id = parseInt(window.slugsMaps.home_decor_styles[slug], 10);\n const filter = (wallFilters || []).find(f => f.key === 'with_home_decor_style_id');\n const title = filter ? filter.options.find(o => o.id === id).name : '';\n return [mapSlugsToIds({ ...params, with_home_decor_style_id: id }), [], `${ title } ${ GALERRY_WALLS }`];\n }\n\n return [params, []];\n};\n\nconst WallsList = ({\n fetchWallFilters,\n resetWalls,\n // filters\n wallFilters,\n activeFilters,\n history,\n // children\n loadNextPage,\n children\n}) => {\n const prevFilters = usePrevious(activeFilters);\n\n const [\n queryParams, skipFilterKeys, title\n ] = useMemo(\n () => getParams(activeFilters, window.location.pathname, wallFilters),\n [window.location.pathname, window.location.search, wallFilters]\n );\n\n const resetWallsFilter = () => {\n resetWalls();\n setTimeout(loadNextPage, 0);\n };\n\n useEffect(() => {\n if (activeFilters.with_work_id !== (prevFilters || {}).with_work_id) {\n resetWallsFilter();\n }\n }, [activeFilters.with_work_id]);\n\n useEffect(() => {\n if (!wallFilters) {\n fetchWallFilters();\n }\n }, []);\n\n return (\n
    \n
    \n

    { title }

    \n
    \n \n \n
    \n \n \n \n
    \n \n { children }\n
    \n );\n};\n\nWallsList.propTypes = {\n resetWalls: PropTypes.func.isRequired,\n fetchWallFilters: PropTypes.func.isRequired,\n // filters\n wallFilters: PropTypes.arrayOf(PropTypes.any),\n activeFilters: PropTypes.object.isRequired,\n history: ReactRouterPropTypes.history.isRequired,\n // children\n loadNextPage: PropTypes.func.isRequired,\n children: PropTypes.node.isRequired\n};\n\nexport default WallsList;\n","import React, { useEffect, useRef, useMemo } from 'react';\nimport queryString from 'query-string';\nimport PropTypes from 'prop-types';\nimport ReactRouterPropTypes from 'react-router-prop-types';\nimport InfiniteScroll from 'arts/components/InfiniteScroll';\nimport { Loader } from 'semantic-ui-react';\nimport Wall from './wall';\nimport WallsContainer from './container';\nimport NoResults from './no_results';\nimport CategoryDescription from '../category/category_description';\nimport { trackEvent } from '../../config/analytics';\n\nimport * as AppClasses from '../Application/styles.module.scss';\nimport { humanizeParams } from '../works/works';\nimport WallsList from '../walls/list';\n\n// eslint-disable-next-line react/prop-types\nconst ParentContainer = (parentRef) => ({ children }) => (\n \n { children }\n \n);\n\nconst WallsAsGrid = ({\n walls,\n loading,\n hasMore,\n fetchWalls,\n resetWalls,\n fetchWallFilters,\n wallFilters,\n page,\n history,\n activeFilters\n}) => {\n const canFetch = () => !loading && hasMore;\n\n const parentRef = useRef(null);\n\n const loadNextPage = () => {\n if (!canFetch()) { return; }\n fetchWalls(page + 1, activeFilters);\n };\n\n const renderWall = (wall, position) => {\n const href = `${ wall.href }?as=thumb&${ queryString.stringify({ ...activeFilters }) }`;\n return (\n \n );\n };\n\n useEffect(() => {\n if (!loading && walls.length && wallFilters) {\n const humanParams = humanizeParams(activeFilters, wallFilters);\n trackEvent('walls center', { ...humanParams, as: 'grid', 'walls count': walls.length });\n }\n }, [loading, walls.length, wallFilters]);\n\n const pc = useMemo(() => ParentContainer(parentRef), [parentRef]);\n\n return (\n \n
    \n \n {\n loading\n ? (\n
    \n \n Loading more items, hold on for a sec...\n \n
    \n )\n : null\n }\n \n \n
    \n \n );\n};\n\nWallsAsGrid.propTypes = {\n fetchWalls: PropTypes.func.isRequired,\n resetWalls: PropTypes.func.isRequired,\n fetchWallFilters: PropTypes.func.isRequired,\n // walls\n loading: PropTypes.bool.isRequired,\n walls: PropTypes.array.isRequired,\n hasMore: PropTypes.bool.isRequired,\n page: PropTypes.number.isRequired,\n // filters\n wallFilters: PropTypes.arrayOf(PropTypes.any),\n activeFilters: PropTypes.object.isRequired,\n history: ReactRouterPropTypes.history.isRequired\n};\n\nexport default WallsAsGrid;\n","import { connect } from 'react-redux';\nimport { fetchWalls, resetWalls, fetchWallFilters } from 'arts/actions/walls';\nimport WallsAsGrid from './walls_as_grid';\n\nconst mapStateToProps = ({ walls, wallFilters: { filters } }) => ({\n ...walls,\n wallFilters: filters\n});\n\nexport default connect(mapStateToProps, { fetchWalls, resetWalls, fetchWallFilters })(WallsAsGrid);\n","import React, { useEffect } from 'react';\nimport ReactRouterPropTypes from 'react-router-prop-types';\nimport PropTypes from 'prop-types';\nimport { Redirect } from 'react-router-dom';\nimport queryString from 'query-string';\nimport { Loader } from 'semantic-ui-react';\nimport NoResults from '../walls_as_grid/no_results';\nimport WallsList from '../walls/list';\n\n// this is only loader and redirector\n\nconst WallsAsPage = ({\n walls,\n loading,\n fetchWalls,\n hasMore,\n page,\n activeFilters,\n wallFilters,\n fetchWallFilters,\n history,\n resetWalls\n}) => {\n const canFetch = () => !loading && hasMore;\n\n const loadNextPage = () => {\n if (!canFetch()) { return; }\n fetchWalls(page + 1, activeFilters);\n };\n\n useEffect(() => {\n if (!walls.length) {\n loadNextPage();\n }\n }, []);\n\n if (walls.length) {\n const index = 0;\n const to = `${ walls[index].href }?${ queryString.stringify(activeFilters) }`;\n return ;\n }\n\n return (\n \n {\n loading\n ? (\n \n Loading more items, hold on for a sec...\n \n )\n : null\n }\n \n \n );\n};\n\nWallsAsPage.propTypes = {\n fetchWalls: PropTypes.func.isRequired,\n fetchWallFilters: PropTypes.func.isRequired,\n resetWalls: PropTypes.func.isRequired,\n // walls\n loading: PropTypes.bool.isRequired,\n walls: PropTypes.array.isRequired,\n hasMore: PropTypes.bool.isRequired,\n page: PropTypes.number.isRequired,\n // filters\n wallFilters: PropTypes.arrayOf(PropTypes.any),\n activeFilters: PropTypes.object.isRequired,\n history: ReactRouterPropTypes.history.isRequired\n};\n\nexport default WallsAsPage;\n","import { connect } from 'react-redux';\nimport { fetchWalls, resetWalls, fetchWallFilters } from 'arts/actions/walls';\nimport WallsAsPage from './walls_as_page';\n\nconst mapStateToProps = ({ walls, wallFilters: { filters } }) => ({\n ...walls,\n wallFilters: filters\n});\n\nexport default connect(mapStateToProps, { fetchWalls, resetWalls, fetchWallFilters })(WallsAsPage);\n","import React from 'react';\nimport queryString from 'query-string';\nimport { useParams } from 'react-router-dom';\nimport ReactRouterPropTypes from 'react-router-prop-types';\nimport { DEFAULT_GRID, THUMB } from './grid_selection';\nimport WallsAsGrid from '../walls_as_grid';\nimport WallsAsPage from '../walls_as_page';\nimport { VALID_QUERY_PARAMS } from './shared';\n\nexport const clearFilters = (params, skipParam = null) => {\n const out = {};\n VALID_QUERY_PARAMS.forEach(key => {\n const val = params[key];\n if (val && key !== skipParam) {\n out[key] = val;\n }\n });\n\n return out;\n};\n\nconst Walls = ({ history }) => {\n const extraParams = queryString.parse(window.location.search);\n const params = { ...useParams(), ...extraParams };\n const activeFilters = clearFilters(params);\n const format = params.as || DEFAULT_GRID;\n const props = {\n history, activeFilters\n };\n if (format === THUMB) {\n return ;\n }\n return ;\n};\n\nWalls.propTypes = {\n history: ReactRouterPropTypes.history.isRequired\n};\n\nexport default Walls;\n","export const VALID_QUERY_PARAMS = [\n 'newest',\n 'with_home_decor_style_id',\n 'with_room_id',\n 'with_price',\n 'query',\n 'with_work_id'\n];\n\nexport const BREADCRUMBS_LINKS = [{\n text: 'Gallery Walls',\n to: '/walls'\n}];\n","import { useRef, useEffect } from 'react';\n\nexport const usePrevious = (value) => {\n const ref = useRef();\n useEffect(() => {\n ref.current = value;\n });\n return ref.current;\n};\n","const PreviewConst = {\n ratio: 1.66666666,\n width: 1200,\n height: 720,\n scaleX: 158.33,\n scaleY: 95.0\n};\n\nexport const scaledPreviewDmentions = (previewWidth, previewHeight, dpi) => ({\n width: ((previewWidth || 0) * PreviewConst.scaleX * dpi) / 100,\n height: ((previewHeight || 0) * PreviewConst.scaleY * dpi) / 100\n});\n\nexport default PreviewConst;\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst Image = ({\n widthIn, heightIn, dpi, src, className\n}) => {\n const style = {\n width: widthIn * dpi,\n height: heightIn * dpi\n };\n\n return (\n // eslint-disable-next-line jsx-a11y/img-redundant-alt\n \n );\n};\n\nImage.propTypes = {\n widthIn: PropTypes.number.isRequired,\n heightIn: PropTypes.number.isRequired,\n dpi: PropTypes.number.isRequired,\n src: PropTypes.oneOfType([PropTypes.object, PropTypes.string]).isRequired,\n className: PropTypes.string\n};\n\nexport default Image;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Constants from '../../config/const';\nimport Image from './image';\nimport * as classes from './classes.module.scss';\n\nconst { width, height } = Constants.silhouette;\n\nconst Silhouette = ({\n dpi, x, y, silhouette\n}) => {\n const style = {\n width: width * dpi,\n height: height * dpi,\n left: x,\n top: y\n };\n return (\n
    \n \n
    \n );\n};\n\nSilhouette.propTypes = {\n dpi: PropTypes.number.isRequired,\n x: PropTypes.number.isRequired,\n y: PropTypes.number.isRequired,\n silhouette: PropTypes.string.isRequired\n};\n\nexport default Silhouette;\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst SvgComponent = ({ fill, ...props }) => (\n \n \n \n);\n\nSvgComponent.propTypes = {\n fill: PropTypes.string.isRequired\n};\n\nexport default SvgComponent;\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst SvgComponent = ({ fill, ...props }) => (\n \n \n \n);\n\nSvgComponent.propTypes = {\n fill: PropTypes.string.isRequired\n};\n\nexport default SvgComponent;\n","import React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport { Loader } from 'semantic-ui-react';\nimport * as classes from './classes.module.scss';\nimport Settings from '../assets/settings';\nimport Trash from '../assets/trash';\nimport WorkPictureImage from './work_picture_image';\n\nexport default class Work extends PureComponent {\n static propTypes = {\n workId: PropTypes.number.isRequired,\n index: PropTypes.number.isRequired,\n x: PropTypes.number.isRequired,\n y: PropTypes.number.isRequired,\n dpi: PropTypes.number.isRequired,\n dragging: PropTypes.bool.isRequired,\n\n title: PropTypes.string,\n workSizeId: PropTypes.number.isRequired,\n frameId: PropTypes.number,\n landscape: PropTypes.bool,\n\n workSizes: PropTypes.array,\n loadWorkDetails: PropTypes.func,\n moveWorkTo: PropTypes.func,\n removeFromCanvas: PropTypes.func,\n onClick: PropTypes.func,\n\n readOnly: PropTypes.bool\n };\n\n componentDidMount() {\n const { workId, workSizes, loadWorkDetails } = this.props;\n if (!(workSizes || []).length) {\n loadWorkDetails(workId);\n }\n }\n\n componentDidUpdate(prevProps) {\n const {\n x, y, moveWorkTo, index\n } = this.props;\n if (!moveWorkTo) {\n return;\n }\n if (prevProps.x !== x || prevProps.y !== y) {\n moveWorkTo({ x, y, index });\n }\n }\n\n onClick = () => {\n const { index, onClick } = this.props;\n onClick(index);\n }\n\n removeWork = (e) => {\n e.preventDefault();\n e.stopPropagation();\n const { index, removeFromCanvas } = this.props;\n removeFromCanvas(index);\n }\n\n findWorkSize() {\n const { workSizeId, workSizes } = this.props;\n const res = (workSizes || []).find((ws) => ws.id === workSizeId);\n return res || (workSizes || [])[0];\n }\n\n findFramedOption() {\n const { frameId } = this.props;\n const workSize = this.findWorkSize();\n if (!workSize) {\n return {};\n }\n const fId = frameId || null;\n const option = workSize.options.find((o) => o.frameId === fId)\n || workSize.options.find((o) => o.frameId === null);\n if (!option) {\n return workSize.options[0];\n }\n return option;\n }\n\n render() {\n const {\n workSizes, title, dragging, readOnly\n } = this.props;\n\n if (!(workSizes || []).length) {\n return ;\n }\n\n const frameOption = this.findFramedOption();\n\n if (!frameOption) {\n return null;\n }\n\n const controls = readOnly ? null : (\n <>\n \n \n \n );\n\n return (\n \n { controls }\n \n );\n }\n}\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport * as classes from './classes.module.scss';\nimport { scaledPreviewDmentions } from '../../../shared/preview_const';\n\nconst WorkPictureImage = ({\n previewHeight, previewWidth, dpi, zoomPreviewUrl, dragging, title, children\n}) => {\n const style = scaledPreviewDmentions(previewWidth, previewHeight, dpi);\n\n return (\n \n {\n { children }\n
    \n );\n};\n\nWorkPictureImage.propTypes = {\n previewHeight: PropTypes.number.isRequired,\n previewWidth: PropTypes.number.isRequired,\n dpi: PropTypes.number.isRequired,\n zoomPreviewUrl: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n dragging: PropTypes.bool,\n children: PropTypes.node\n};\n\nexport default WorkPictureImage;\n","import livingRoom from '../components/assets/living-room.gif';\nimport console from '../components/assets/console.gif';\nimport chaise from '../components/assets/chaise.gif';\nimport livingRoomSmall from '../components/assets/living-room-small.png';\nimport consoleSmall from '../components/assets/console-small.png';\nimport chaiseSmall from '../components/assets/chaise-small.png';\nimport PreviewConst from '../../shared/preview_const';\n\nconst Const = {\n hangings: {\n load: 'hangings:load',\n loaded: 'hangings:loaded',\n update: 'hangings:update',\n reset: 'hangings:reset',\n saving: 'hangings:saving',\n saved: 'hangings:saved'\n },\n pin: {\n toggle: 'pin:toggle'\n },\n crop: {\n set: 'crop:set',\n reset: 'crop:reset'\n },\n savingWall: {\n start: 'wall:saving:start',\n end: 'wall:saving:end',\n uploadAssetsStart: 'wall:saving:uploadAssets:start',\n uploadAssetsEnd: 'wall:saving:uploadAssets:end'\n },\n panel: {\n open: 'panel:open',\n close: 'panel:close'\n },\n favoriteWorks: {\n load: 'favoriteWorks:load',\n success: 'favoriteWorks:load:success'\n },\n works: {\n load: 'works:load',\n success: 'works:load:success',\n filtersLoaded: 'works:filters:loaded',\n addFilter: 'works:filter:add',\n removeFilter: 'works:filter:remove'\n },\n work: {\n load: 'work:load',\n success: 'work:load:success'\n },\n panelKinds: {\n works: 'panel:kind:works',\n other: 'panel:kind:other',\n grids: 'panel:kind:grids',\n export: 'panel:kind:export',\n info: 'panel:kind:info',\n details: 'panel:kind:details',\n moreLikeThis: 'panel:kind:moreLikeThis',\n customPreview: 'panel:kind:customPreview',\n hanging: 'panel:kind:hanging'\n },\n moreLikeThisSources: {\n works: 'moreLikeThisSources:works',\n more: 'moreLikeThisSources:more',\n canvas: 'moreLikeThisSources:canvas'\n },\n export: {\n savePreview: 'export:preview:save',\n previewSaved: 'export:preview:saved',\n showSharing: 'export:sharing:showSharing',\n setLogo: 'export:setLogo',\n publishing: 'export:publishing',\n published: 'export:published'\n },\n canvas: {\n add: 'canvas:add',\n remove: 'canvas:remove',\n move: 'canvas:move',\n zoomIn: 'canvas:zoomIn',\n zoomOut: 'canvas:zoomOut',\n setSize: 'canvas:setWorkSize',\n setFrame: 'canvas:setFrame',\n setCenter: 'canvas:setCenter',\n resetZoom: 'canvas:resetZoom',\n setSilhouette: 'canvas:setSilhouette',\n hideSilhouette: 'canvas:hideSilhouette',\n setColor: 'canvas:setColor',\n showRuler: 'canvas:showRuler',\n hideRuler: 'canvas:hideRuler',\n showGuides: 'canvas:showGuides',\n hideGuides: 'canvas:hideGuides',\n showWidth: 'canvas:showWidth',\n hideWidth: 'canvas:hideWidth',\n showHeight: 'canvas:showHeight',\n hideHeight: 'canvas:hideHeight',\n setWidth: 'canvas:setWidth',\n setHeight: 'canvas:setHeight',\n recalculateDpis: 'canvas:recalculateDpis',\n resetCenter: 'canvas:resetCenter',\n updateAttributes: 'canvas:updateAttributes'\n },\n defaultColor: '#ffffff',\n customImage: {\n add: 'customImage:add',\n remove: 'customImage:remove',\n move: 'customImage:move',\n update: 'customImage:update'\n },\n wallPaper: {\n add: 'wallPaper:add',\n remove: 'wallPaper:remove',\n update: 'wallPaper:update'\n },\n silhouette: {\n // width: 158.33,\n width: 230, // 158.33 - 1881\n height: 172.3, // 118.403304348 - 1410\n // height: 118.40,\n whitePos: 130,\n zero: 140.4,\n // whitePos: 89.49,\n mappingSmall: {\n livingRoom: livingRoomSmall, console: consoleSmall, chaise: chaiseSmall\n },\n mapping: {\n livingRoom, console, chaise\n },\n default: 'livingRoom'\n },\n undo: {\n pop: 'undo:pop',\n push: 'undo:push'\n },\n workDetails: {\n show: 'workDetails:show',\n hide: 'workDetails:hide'\n },\n moreLikeThis: {\n set: 'moreLikeThis:set',\n reset: 'moreLikeThis:reset',\n loading: 'moreLikeThis:loading',\n loaded: 'moreLikeThis:loaded'\n },\n preview: PreviewConst,\n dpi: {\n minRulers: 2.25,\n maxRulers: 288,\n rulers: {\n 2.25: {\n step: 10,\n stepCm: 25,\n labelStep: 20,\n labelStepCm: 50,\n guideStep: 5\n },\n 4.5: {\n step: 5,\n stepCm: 20,\n labelStep: 10,\n labelStepCm: 25,\n guideStep: 5\n },\n 9: {\n step: 5,\n stepCm: 25,\n labelStep: 5,\n labelStepCm: 10,\n guideStep: 2.5\n },\n 18: {\n step: 1,\n stepCm: 5,\n labelStep: 5,\n labelStepCm: 10,\n guideStep: 1\n },\n 36: {\n step: 1,\n stepCm: 5,\n labelStep: 5,\n labelStepCm: 10,\n guideStep: 0.5\n },\n 72: {\n step: 1,\n stepCm: 5,\n labelStep: 5,\n labelStepCm: 10,\n guideStep: 0.5\n },\n 144: {\n step: 1,\n stepCm: 5,\n labelStep: 1,\n labelStepCm: 10,\n guideStep: 0.5\n },\n 288: {\n step: 1,\n stepCm: 5,\n labelStep: 1,\n labelStepCm: 10,\n guideStep: 0.5\n }\n }\n }\n};\n\nexport default Const;\n","// extracted by mini-css-extract-plugin\nvar _1 = \"GnTxdLjaEAveUAPAK3Vg\";\nvar _2 = \"fHvf_erHDz6DUBG_TlfU\";\nvar _3 = \"SHYWF0Nt0E1U9D9FgA7L\";\nvar _4 = \"ZH_xP52rJyit3BsoOKMV\";\nvar _5 = \"hwtBvA5Gzgvnx6eDE27P\";\nvar _6 = \"Uctz7l38jJxS11gPk0E4\";\nvar _7 = \"wiVGqipIp7M28JdA_07g\";\nvar _8 = \"tGyt_x2fGxoqlBqCw7g1\";\nexport { _1 as \"description\", _2 as \"header\", _3 as \"headerText\", _4 as \"imgD\", _5 as \"imgM\", _6 as \"imgMHolder\", _7 as \"showLess\", _8 as \"showMore\" }\n","// extracted by mini-css-extract-plugin\nvar _1 = \"asJdWqq0nckEaCuoqs01\";\nvar _2 = \"JV4TKZsYXEophEtqeZ7b\";\nvar _3 = \"Rc0sVsIxe4gA7rCx8BJk\";\nvar _4 = \"l4J_ELXZJT6zciZ9Ilv3\";\nvar _5 = \"NAvlvktilNC7DlGTGKDl\";\nvar _6 = \"sIJZmzM1M5n_r59xB2Tm\";\nvar _7 = \"pwQpBE0APkO4yLrgsmYb\";\nvar _8 = \"vvUl7wpa79gz6apYzpQr\";\nvar _9 = \"x54ZOdnl0q9oZxtM8_09\";\nexport { _1 as \"canvas\", _2 as \"customImage\", _3 as \"draggingSilhouette\", _4 as \"meter\", _5 as \"silhouette\", _6 as \"welcome\", _7 as \"whiteBg\", _8 as \"work\", _9 as \"workingArea\" }\n","// extracted by mini-css-extract-plugin\nvar _1 = \"AB51E6bsDIdqx9qhsoC6\";\nvar _2 = \"GyshaaCuOPwjuygKlVbM\";\nvar _3 = \"WEuN_Xjz69BG6OJeNKnv\";\nvar _4 = \"ShYK0ABicadIG2cCcZB1\";\nexport { _1 as \"cog\", _2 as \"dragging\", _3 as \"remove\", _4 as \"work\" }\n","\"use client\";\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _invoke from \"lodash-es/invoke\";\nimport _get from \"lodash-es/get\";\nimport _isNil from \"lodash-es/isNil\";\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { createHTMLLabel, customPropTypes, getComponentType, getUnhandledProps, htmlInputAttrs, partitionHTMLProps, useKeyOnly, useAutoControlledValue, useMergedRefs, useIsomorphicLayoutEffect } from '../../lib';\n/**\n * A checkbox allows a user to select a value from a small set of options, often binary.\n * @see Form\n * @see Radio\n */\nvar Checkbox = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var className = props.className,\n disabled = props.disabled,\n label = props.label,\n id = props.id,\n name = props.name,\n radio = props.radio,\n readOnly = props.readOnly,\n slider = props.slider,\n tabIndex = props.tabIndex,\n toggle = props.toggle,\n _props$type = props.type,\n type = _props$type === void 0 ? 'checkbox' : _props$type,\n value = props.value;\n var _useAutoControlledVal = useAutoControlledValue({\n state: props.checked,\n defaultState: props.defaultChecked,\n initialState: false\n }),\n checked = _useAutoControlledVal[0],\n setChecked = _useAutoControlledVal[1];\n var _useAutoControlledVal2 = useAutoControlledValue({\n state: props.indeterminate,\n defaultState: props.defaultIndeterminate,\n initialState: false\n }),\n indeterminate = _useAutoControlledVal2[0],\n setIndeterminate = _useAutoControlledVal2[1];\n var inputRef = useMergedRefs(React.useRef(), ref);\n var labelRef = React.useRef();\n var isClickFromMouse = React.useRef();\n\n // ----------------------------------------\n // Effects\n // ----------------------------------------\n\n useIsomorphicLayoutEffect(function () {\n // Note: You can't directly set the indeterminate prop on the input, so we\n // need to maintain a ref to the input and set it manually whenever the\n // component updates.\n if (inputRef.current) {\n inputRef.current.indeterminate = !!indeterminate;\n }\n });\n\n // ----------------------------------------\n // Helpers\n // ----------------------------------------\n\n var canToggle = function canToggle() {\n return !disabled && !readOnly && !(radio && checked);\n };\n var computeTabIndex = function computeTabIndex() {\n if (!_isNil(tabIndex)) {\n return tabIndex;\n }\n return disabled ? -1 : 0;\n };\n\n // ----------------------------------------\n // Handlers\n // ----------------------------------------\n\n var handleChange = function handleChange(e) {\n if (!canToggle()) {\n return;\n }\n _invoke(props, 'onChange', e, _extends({}, props, {\n checked: !checked,\n indeterminate: false\n }));\n setChecked(!checked);\n setIndeterminate(false);\n };\n var handleClick = function handleClick(e) {\n var isInputClick = _invoke(inputRef.current, 'contains', e.target);\n var isLabelClick = _invoke(labelRef.current, 'contains', e.target);\n var isRootClick = !isLabelClick && !isInputClick;\n var hasId = !_isNil(id);\n var isLabelClickAndForwardedToInput = isLabelClick && hasId;\n\n // https://github.com/Semantic-Org/Semantic-UI-React/pull/3351\n if (!isLabelClickAndForwardedToInput) {\n _invoke(props, 'onClick', e, _extends({}, props, {\n checked: !checked,\n indeterminate: !!indeterminate\n }));\n }\n if (isClickFromMouse.current) {\n isClickFromMouse.current = false;\n if (isLabelClick && !hasId) {\n handleChange(e);\n }\n\n // Changes should be triggered for the slider variation\n if (isRootClick) {\n handleChange(e);\n }\n if (isLabelClick && hasId) {\n // To prevent two clicks from being fired from the component we have to stop the propagation\n // from the \"input\" click: https://github.com/Semantic-Org/Semantic-UI-React/issues/3433\n e.stopPropagation();\n }\n }\n };\n var handleMouseDown = function handleMouseDown(e) {\n _invoke(props, 'onMouseDown', e, _extends({}, props, {\n checked: !!checked,\n indeterminate: !!indeterminate\n }));\n if (!e.defaultPrevented) {\n _invoke(inputRef.current, 'focus');\n }\n\n // Heads up!\n // We need to call \"preventDefault\" to keep element focused.\n e.preventDefault();\n };\n var handleMouseUp = function handleMouseUp(e) {\n isClickFromMouse.current = true;\n _invoke(props, 'onMouseUp', e, _extends({}, props, {\n checked: !!checked,\n indeterminate: !!indeterminate\n }));\n };\n\n // ----------------------------------------\n // Render\n // ----------------------------------------\n\n var classes = cx('ui', useKeyOnly(checked, 'checked'), useKeyOnly(disabled, 'disabled'), useKeyOnly(indeterminate, 'indeterminate'),\n // auto apply fitted class to compact white space when there is no label\n // https://semantic-ui.com/modules/checkbox.html#fitted\n useKeyOnly(_isNil(label), 'fitted'), useKeyOnly(radio, 'radio'), useKeyOnly(readOnly, 'read-only'), useKeyOnly(slider, 'slider'), useKeyOnly(toggle, 'toggle'), 'checkbox', className);\n var unhandled = getUnhandledProps(Checkbox, props);\n var ElementType = getComponentType(props);\n var _partitionHTMLProps = partitionHTMLProps(unhandled, {\n htmlProps: htmlInputAttrs\n }),\n htmlInputProps = _partitionHTMLProps[0],\n rest = _partitionHTMLProps[1];\n\n // Heads Up!\n // Do not remove empty labels, they are required by SUI CSS\n var labelElement = createHTMLLabel(label, {\n defaultProps: {\n htmlFor: id\n },\n autoGenerateKey: false\n }) || /*#__PURE__*/React.createElement(\"label\", {\n htmlFor: id\n });\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes,\n onClick: handleClick,\n onChange: handleChange,\n onMouseDown: handleMouseDown,\n onMouseUp: handleMouseUp\n }), /*#__PURE__*/React.createElement(\"input\", _extends({}, htmlInputProps, {\n checked: checked,\n className: \"hidden\",\n disabled: disabled,\n id: id,\n name: name,\n readOnly: true,\n ref: inputRef,\n tabIndex: computeTabIndex(),\n type: type,\n value: value\n })), /*#__PURE__*/React.cloneElement(labelElement, {\n ref: labelRef\n }));\n});\nCheckbox.handledProps = [\"as\", \"checked\", \"className\", \"defaultChecked\", \"defaultIndeterminate\", \"disabled\", \"fitted\", \"id\", \"indeterminate\", \"label\", \"name\", \"onChange\", \"onClick\", \"onMouseDown\", \"onMouseUp\", \"radio\", \"readOnly\", \"slider\", \"tabIndex\", \"toggle\", \"type\", \"value\"];\nCheckbox.displayName = 'Checkbox';\nCheckbox.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n /** Whether or not checkbox is checked. */\n checked: PropTypes.bool,\n /** Additional classes. */\n className: PropTypes.string,\n /** The initial value of checked. */\n defaultChecked: PropTypes.bool,\n /** Whether or not checkbox is indeterminate. */\n defaultIndeterminate: PropTypes.bool,\n /** A checkbox can appear disabled and be unable to change states */\n disabled: PropTypes.bool,\n /** Removes padding for a label. Auto applied when there is no label. */\n fitted: PropTypes.bool,\n /** A unique identifier. */\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /** Whether or not checkbox is indeterminate. */\n indeterminate: PropTypes.bool,\n /** The text of the associated label element. */\n label: customPropTypes.itemShorthand,\n /** The HTML input name. */\n name: PropTypes.string,\n /**\n * Called when the user attempts to change the checked state.\n *\n * @param {SyntheticEvent} event - React's original SyntheticEvent.\n * @param {object} data - All props and proposed checked/indeterminate state.\n */\n onChange: PropTypes.func,\n /**\n * Called when the checkbox or label is clicked.\n *\n * @param {SyntheticEvent} event - React's original SyntheticEvent.\n * @param {object} data - All props and current checked/indeterminate state.\n */\n onClick: PropTypes.func,\n /**\n * Called when the user presses down on the mouse.\n *\n * @param {SyntheticEvent} event - React's original SyntheticEvent.\n * @param {object} data - All props and current checked/indeterminate state.\n */\n onMouseDown: PropTypes.func,\n /**\n * Called when the user releases the mouse.\n *\n * @param {SyntheticEvent} event - React's original SyntheticEvent.\n * @param {object} data - All props and current checked/indeterminate state.\n */\n onMouseUp: PropTypes.func,\n /** Format as a radio element. This means it is an exclusive option. */\n radio: customPropTypes.every([PropTypes.bool, customPropTypes.disallow(['slider', 'toggle'])]),\n /** A checkbox can be read-only and unable to change states. */\n readOnly: PropTypes.bool,\n /** Format to emphasize the current selection state. */\n slider: customPropTypes.every([PropTypes.bool, customPropTypes.disallow(['radio', 'toggle'])]),\n /** A checkbox can receive focus. */\n tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n /** Format to show an on or off choice. */\n toggle: customPropTypes.every([PropTypes.bool, customPropTypes.disallow(['radio', 'slider'])]),\n /** HTML input type, either checkbox or radio. */\n type: PropTypes.oneOf(['checkbox', 'radio']),\n /** The HTML input value. */\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number])\n} : {};\nexport default Checkbox;"],"names":["fetchWalls","page","params","dispatch","type","Constants","Walls","FETCH","loadWallsApi","then","walls","FETCH_SUCCESS","catch","resetWalls","RESET","fetchWallFilters","loadWallFiltersApi","filters","WallFilters","props","React","Object","assign","viewBox","fill","xmlns","d","useEffect","window","scrollTo","Container","children","className","AppClasses","InfiniteScroll","items","itemRenderer","itemsContainer","DefaultContainer","onLoad","rootClassName","threshold","rootRef","useRef","ticking","setTicking","useState","recalculate","useCallback","current","top","height","getBoundingClientRect","scrollY","pageYOffset","innerHeight","onChange","setTimeout","requestAnimationFrame","addEventListener","removeEventListener","length","content","useMemo","map","ref","CategoryDescription","description","skipShowMore","loadadble","showMore","setShowMore","renderDescription","setRenderDescription","loadPageDescriptionApi","res","location","href","button","Classes","onClick","classnames","ReactMarkdown","fetchWall","id","sharingToken","Wall","loadWallApi","wall","error","status","_1","_2","_3","_4","_5","_6","_7","_8","_9","_a","_b","_c","_d","_e","_f","_10","_11","_12","_13","_14","_15","_16","_17","_18","_19","_1a","_1b","_1c","_1d","_1e","_1f","_20","_21","_22","_23","_24","_25","_26","_27","_28","_29","_2a","_2b","_2c","_2d","_2e","_2f","_30","_31","_32","_33","_34","_35","_36","_37","_38","_39","_3a","_3b","_3c","_3d","_3e","_3f","_40","useComponentSize","size","setSize","width","calculateSize","rect","dotitemsize","dotcontainerpadding","Dots","count","activeIndex","offset","setOffset","activeWidth","parseInt","visibleItemsCount","Math","min","floor","max","firstSmall","lastSmall","dots","Array","from","v","index","dot","key","WallPictureShuffler","frameOption","dpi","workId","workSizeId","frameId","title","calculatePosition","x","y","overrideWallPicture","wallPictureId","paperId","wallId","loading","setLoading","setActiveIndex","alternativeWorkPictures","setAlternativeWorkPictures","carousel","adjustedActiveIndex","getWallShufflerMatches","wps","s","trackEvent","to","prevItem","e","slidePrev","nextItem","slideNext","toolbar","Loader","active","inline","wId","Link","pathWithQuickShop","Bag","style","stroke","label","strokeLinecap","previewWidth","previewHeight","scaledPreviewDmentions","left","AliceCarousel","animationDuration","infinite","autoHeight","mouseTracking","mouseDragEnabled","responsive","ssrSilentMode","disableButtonsControls","disableDotsControls","onSlideChanged","item","altTitle","zoomPreviewUrl","altPreviewHeight","altPreviewWidth","WorkPictureImage","mobilewidth","WallPicturePreview","wp","isSkipped","previewX","previewY","showPlus","shuffleMode","workProps","workPictureToWorkProps","landscape","workSizes","dragging","loadWorkDetails","moveWorkTo","removeFromCanvas","useWindowSize","tools","options","wallPictureToPreview","Work","readOnly","ShuffleButton","setShuffleMode","isDarkBackground","hasShuffle","Checkbox","toggle","checked","changeShuffleMode","Preview","wallPictures","currentColor","skipWallPictures","withSilhouette","background3DColor","backgroundImageUrl","allowShuffle","setDpi","renderPreview","isAvailable","sY","WallConstants","silhouette","Silhouette","backgroundColor","backgroundImage","QuickShop","Share","imageUrl","noFavorites","pinit","PinIt","renderFavorite","Favorite","clipPath","WallPreview","onCancel","Modal","selector","MODAL_SELECTOR","ToolBar","displayEnlarge","setDisplayEnlarge","displayPreview","setDisplayPreview","enlarge","ZoomModal","img","onHide","hideEnlarge","preview","hidePreview","enlargeButton","showEnlarge","Rearrange","showPreview","ScaleIcon","Sharing","WallPicture","workHref","authorHref","authorName","skipFrames","onToggleSkipped","prices","selected","onToggleSelected","framedPrint","toggleSkipped","price","noFramesPrice","workTo","noFrame","previewImage","renderPaper","paperHeight","paperWidth","printHeight","printWidth","borderH","borderW","calculatePaperProps","useWidth","paperProps","noFramePreviewUrl","PaperView","unframed","src","alt","paperMaterial","frameApiName","frameFinalFramedSize","warning","displayPaperWidth","displayPaperHeight","displayPrintWidth","displayPrintHeight","hs","humanSizes","phs","finalSize","sizes","renderAuthor","selectItem","toggleSelected","onLinkClick","currency","toFixed","Warning","flat","RearrangeModal","visible","setPage","setCPage","p","preventDefault","PageClasses","Left","Right","toggleValue","originalValues","values","WallSingle","name","discountPercent","backgroundColors","hangingImageUrl","hangingImageHref","skipBreadCrumbs","addWallToCart","addWallPicturesToCart","singleWall","setSkipFrames","setSkipWallPictures","overriddenPictures","setOverriddenPictures","setShuffleModeAdv","mode","rearrabgeVisible","setRearrabgeVisible","toggleRearrangeBanner","hasSkipFrames","keys","toggleSkipFrames","sf","forEach","scheduleProductView","onWallImpression","hanging","links","text","discount","selectedItems","filter","calculatePrice","wholeWall","findIndex","totalPrice","reduce","sum","currentPrice","addToCart","overrides","k","previewProps","alternative","toolBarProps","asTheyAppear","withMobile","onWallPictureClick","position","onWallWorkPictureClick","Scroll","GTMPageView","pageType","section","BreadCrumbsGeneric","AffirmPromo","onWall","aCopy","JSON","parse","stringify","overriden","originalOrOverriden","rgb","poster","autoPlay","loop","playsInline","controls","clearFilters","queryString","search","currentLocale","basename","Next","connect","mapStateToProps","loadedWall","Carousel","history","currentIndex","renderIndex","setRenderIndex","moving","setMoving","resetToActive","push","prev","onPrev","Prev","next","onNext","innerStyle","transform","renderItems","WallPage","hasMore","wallFilters","activeFilters","w","loadNextPage","humanParams","humanizeParams","find","Number","eventProps","as","Filter","path","VALID_QUERY_PARAMS","artFilters","resetWallsFilter","renderBreadCrumbs","bc","BREADCRUMBS_LINKS","GridSelection","grid","PAGE","single","rest","match","toString","allowStores","storeItemId","storeOpts","WallStoreItem","onWallClick","propTypes","PropTypes","isRequired","NoResults","mapSlugsToIds","out","slugsMaps","home_decor_styles","rooms","GALERRY_WALLS","WallsList","prevFilters","usePrevious","queryParams","skipFilterKeys","getParams","pathname","slug","split","pop","f","o","with_room_id","with_home_decor_style_id","with_work_id","THUMB","WallsAsGrid","parentRef","pc","WallsContainer","ParentContainer","renderWall","forwardRef","WallsAsPage","Redirect","skipParam","val","extraParams","useParams","DEFAULT_GRID","value","PreviewConst","ratio","scaleX","scaleY","Image","widthIn","heightIn","classes","mapping","SvgComponent","PureComponent","componentDidMount","this","componentDidUpdate","prevProps","removeWork","stopPropagation","findWorkSize","ws","findFramedOption","workSize","fId","option","render","Settings","data","Trash","draggable","hangings","load","loaded","update","reset","saving","saved","pin","crop","set","savingWall","start","end","uploadAssetsStart","uploadAssetsEnd","panel","open","close","favoriteWorks","success","works","filtersLoaded","addFilter","removeFilter","work","panelKinds","other","grids","export","info","details","moreLikeThis","customPreview","moreLikeThisSources","more","canvas","savePreview","previewSaved","showSharing","setLogo","publishing","published","add","remove","move","zoomIn","zoomOut","setFrame","setCenter","resetZoom","setSilhouette","hideSilhouette","setColor","showRuler","hideRuler","showGuides","hideGuides","showWidth","hideWidth","showHeight","hideHeight","setWidth","setHeight","recalculateDpis","resetCenter","updateAttributes","defaultColor","customImage","wallPaper","whitePos","zero","mappingSmall","livingRoom","console","chaise","default","undo","workDetails","show","hide","minRulers","maxRulers","rulers","step","stepCm","labelStep","labelStepCm","guideStep","disabled","radio","slider","tabIndex","_props$type","_useAutoControlledVal","state","defaultState","defaultChecked","initialState","setChecked","_useAutoControlledVal2","indeterminate","defaultIndeterminate","setIndeterminate","inputRef","labelRef","isClickFromMouse","handleChange","unhandled","ElementType","_partitionHTMLProps","htmlProps","htmlInputProps","labelElement","defaultProps","htmlFor","autoGenerateKey","isInputClick","target","isLabelClick","isRootClick","hasId","onMouseDown","defaultPrevented","onMouseUp","handledProps","displayName"],"sourceRoot":""}