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B,GAAN1G,OAAU0G,EAAOa,MAAM,EAAGb,EAAOrK,OAAS,GAAE,MAAA2D,OAAK0G,EAAOa,MAAMb,EAAOrK,OAAS,IAH1D,EAItB,EAEa4L,EAAa,WAA+B,IAApBC,EAASL,UAAAxL,OAAA,QAAAyL,IAAAD,UAAA,GAAAA,UAAA,GAAG,GAC/C,OAD4BA,UAAAxL,OAAA,QAAAyL,IAAAD,UAAA,GAAAA,UAAA,GAAG,IACpB7B,OAAOmC,SAASnB,KAAKkB,EAClC,iBC9CA,OAOC,WACA,aAEA,IAAIE,EAAS,CAAC,EAAEC,eAEhB,SAASC,IAGR,IAFA,IAAIC,EAAU,GAELC,EAAI,EAAGA,EAAIX,UAAUxL,OAAQmM,IAAK,CAC1C,IAAIC,EAAMZ,UAAUW,GACpB,GAAKC,EAAL,CAEA,IAAIC,SAAiBD,EAErB,GAAgB,WAAZC,GAAoC,WAAZA,EAC3BH,EAAQI,KAAKC,MAAQA,KAAKH,IAAQA,QAC5B,GAAII,MAAMC,QAAQL,GACxBF,EAAQI,KAAKL,EAAWS,MAAMH,KAAMH,SAC9B,GAAgB,WAAZC,EAAsB,CAChC,GAAID,EAAIO,WAAalQ,OAAOmQ,UAAUD,WAAaP,EAAIO,SAASA,WAAW3C,SAAS,iBAAkB,CACrGkC,EAAQI,KAAKF,EAAIO,YACjB,QACD,CAEA,IAAK,IAAIhM,KAAOyL,EACXL,EAAOc,KAAKT,EAAKzL,IAAQyL,EAAIzL,IAChCuL,EAAQI,KAAKC,MAAQA,KAAK5L,IAAQA,EAGrC,CAnBkB,CAoBnB,CAEA,OAAOuL,EAAQvB,KAAK,IACrB,CAEqCmC,EAAOC,SAC3Cd,EAAWtP,QAAUsP,EACrBa,EAAOC,QAAUd,QAKhB,KAFwB,EAAF,WACtB,OAAOA,CACP,UAFoB,OAEpB,YAIH,CA9CA","sources":["webpack:///./app/javascript/components/Item/AddToWishlist/FavoriteIcon/style.js","webpack:///./app/javascript/components/Item/AddToWishlist/constants.js","webpack:///./app/javascript/components/Item/AddToWishlist/FavoriteIcon/index.jsx","webpack:///./app/javascript/components/Item/Tags/loading.jsx","webpack:///./app/javascript/components/ProductCategoryBrand/Information/desktop/style.js","webpack:///./app/javascript/components/ProductCategoryBrand/Information/desktop/loading.jsx","webpack:///./app/javascript/components/ProductCategoryBrand/Information/desktop/index.jsx","webpack:///./app/javascript/components/ProductCategoryBrand/Overview/desktop/style.js","webpack:///./app/javascript/components/ProductCategoryBrand/Overview/desktop/loading.jsx","webpack:///./app/javascript/components/ProductCategoryBrand/Overview/desktop/index.jsx","webpack:///./app/javascript/components/Search/ItemCard/PriceOnCard/index.jsx","webpack:///./app/javascript/components/Search/ItemCard/PriceOnCard/loading.jsx","webpack:///./app/javascript/components/Search/ItemCard/PriceOnCard/style.js","webpack:///./app/javascript/templates/ProductCategory/Brand/desktop/style.js","webpack:///./app/javascript/templates/ProductCategory/Brand/desktop/index.jsx","webpack:///./app/javascript/packs/desktop/product_categories/brands/show.jsx","webpack:///./app/javascript/templates/ProductCategory/Brand/hooks.js","webpack:///./app/javascript/utilities/addToWishlist.js","webpack:///./app/javascript/utilities/string.js","webpack:///./node_modules/classnames/bind.js"],"sourcesContent":["import { styled } from 'styled-components'\nimport { ButtonIcon as ButtonIconElement } from 'elements'\n\nexport const DefaultButton = styled(ButtonIconElement)`\n border-color: ${props => props.theme.colors.zinc300};\n\n &:active, &:hover {\n border-color: ${props => props.theme.colors.zinc300};\n }\n`\n\nexport const SmallButton = styled.button`\n width: 24px;\n height: 24px;\n background-color: transparent;\n border: none;\n color: ${props => props.$fill ? props.theme.colors.mainRed : props.theme.colors.textHeading};\n padding: 0;\n`\n","export const getButtonType = (isWishlist, isUpdateWishlist) => {\n if (isUpdateWishlist) return 'default'\n\n return isWishlist ? 'red-outlined' : 'outlined'\n}\n\nexport const getIconType = (isWishlist, isUpdateWishlist) => {\n if (isUpdateWishlist) return 'fa-solid fa-spinner fa-spin'\n\n return isWishlist ? 'fa-solid fa-heart' : 'fa-regular fa-heart'\n}\n","import * as Styled from './style'\nimport { getButtonType, getIconType } from '../constants'\n\nimport React from 'react'\nimport PropTypes from 'prop-types'\n\n// This component is to be used with useAddToWishlist hook\n// app/javascript/utilities/addToWishlist.js\nconst FavoriteIcon = ({\n onAddToWishlist,\n isWishlist = false,\n isUpdateWishlist = false,\n size = 'default'\n}) => {\n const iconType = getIconType(isWishlist, isUpdateWishlist)\n\n if (size === 'small') return (\n <Styled.SmallButton $fill={isWishlist} onClick={onAddToWishlist}>\n <i className={iconType}></i>\n </Styled.SmallButton>\n )\n\n return (\n <Styled.DefaultButton\n icon={<i className={iconType}></i>}\n onClick={onAddToWishlist}\n htmlType={getButtonType(isWishlist, isUpdateWishlist)}\n size=\"small\"\n rounded />\n )\n}\n\nFavoriteIcon.propTypes = {\n onAddToWishlist: PropTypes.func.isRequired,\n isWishlist: PropTypes.bool,\n isUpdateWishlist: PropTypes.bool,\n size: PropTypes.oneOf(['small', 'default'])\n}\n\nexport default FavoriteIcon\n","import * as Styled from './style'\n\nimport { renderElementMultipleTimes } from '../../../utilities/render'\n\nimport React from 'react'\nimport PropTypes from 'prop-types'\n\nimport { Skeleton } from 'elements'\n\nconst renderTag = size => {\n const badgeProps = {\n default: { height: '28px', width: '100px' },\n small: { height: '18px', width: '60px' }\n }\n\n return <Skeleton {...badgeProps[size]} type=\"image\" noWrapper rounded />\n}\n\nconst Loading = ({\n align = 'start',\n count = 4,\n gap = '8px',\n size = 'default',\n wrapperStyle\n}) => {\n return (\n <Styled.Wrapper $align={align} $customStyle={wrapperStyle} $gap={gap}>\n {renderElementMultipleTimes(count, renderTag(size))}\n </Styled.Wrapper>\n )\n}\n\nLoading.propTypes = {\n align: PropTypes.string,\n count: PropTypes.number,\n gap: PropTypes.string,\n size: PropTypes.oneOf(['default', 'small']),\n wrapperStyle: PropTypes.object\n}\n\nexport default Loading\n","import styled from 'styled-components'\n\nexport const GridBox = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${props => props.$gap};\n align-items: ${props => props.$align};\n`\n\nexport const FlexBox = styled.div`\n display: flex;\n gap: ${props => props.$gap};\n`\n\nexport const Wrapper = styled.div`\n background-color: ${props => props.theme.colors.blue50};\n border-radius: 16px;\n padding: 24px;\n`\n\nexport const Image = styled.div`\n width: 192px;\n height: 192px;\n flex: none;\n\n > img {\n width: 100%;\n height: 100%;\n border-radius: 8px;\n object-fit: cover;\n }\n`\n\nexport const Title = styled.h2`\n color: ${props => props.theme.colors.textHeading};\n font-size: 24px;\n font-weight: 600;\n margin: 0;\n`\n\nexport const Description = styled.p`\n color: ${props => props.theme.colors.textHeading};\n margin: 0;\n white-space: pre-line;\n`\n\nexport const Divider = styled.div`\n width: 100%;\n height: 1px;\n background-color: ${props => props.theme.colors.zinc300};\n\n display: ${props => props.$hide && 'none'};\n`\n\nexport const Logo = styled.div`\n width: 100px;\n height: 100px;\n\n > img {\n width: 100%;\n height: 100%;\n border-radius: 8px;\n object-fit: cover;\n }\n`\n\nexport const Name = styled.div`\n color: ${props => props.theme.colors.textHeading};\n font-size: 14px;\n text-align: center;\n`\n","import * as Styled from './style'\nimport PagedListLoading from '../../../PagedList/loading'\nimport { Skeleton } from '../../../../elements'\n\nimport { renderElementMultipleTimes } from '../../../../utilities/render'\n\nimport React from 'react'\nimport PropTypes from 'prop-types'\n\nexport const CardLoading = () => {\n return (\n <Styled.GridBox $gap=\"8px\" $align=\"center\">\n <Styled.Logo>\n <Skeleton width=\"100%\" height=\"100%\" type=\"image\" rounded />\n </Styled.Logo>\n <div>\n <Skeleton width=\"100px\" height=\"14px\" />\n <Skeleton width=\"40px\" height=\"14px\" align=\"center\" />\n </div>\n </Styled.GridBox>\n )\n}\n\nconst ProductCategoryInformationLoading = ({\n column = 10,\n row = 1,\n innerHeight\n}) => {\n return (\n <Styled.GridBox as={Styled.Wrapper} $gap=\"24px\">\n <Styled.FlexBox $gap=\"24px\">\n <Styled.Image>\n <Skeleton width=\"100%\" height=\"100%\" type=\"image\" rounded />\n </Styled.Image>\n\n <Styled.GridBox $gap=\"8px\">\n <Skeleton width=\"40%\" height=\"24px\" />\n <div>\n <Skeleton width=\"100%\" height=\"16px\" />\n <Skeleton width=\"100%\" height=\"16px\" />\n <Skeleton width=\"100%\" height=\"16px\" />\n <Skeleton width=\"100%\" height=\"16px\" />\n <Skeleton width=\"100%\" height=\"16px\" />\n <Skeleton width=\"100%\" height=\"16px\" />\n </div>\n </Styled.GridBox>\n </Styled.FlexBox>\n\n <Styled.Divider />\n\n <PagedListLoading\n column={column}\n row={row}\n innerHeight={innerHeight}>\n {renderElementMultipleTimes(column * row, <CardLoading />)}\n </PagedListLoading>\n </Styled.GridBox>\n )\n}\n\nProductCategoryInformationLoading.propTypes = {\n column: PropTypes.number,\n row: PropTypes.number,\n innerHeight: PropTypes.string.isRequired,\n pagedListCustomStyle: PropTypes.any\n}\n\nexport default ProductCategoryInformationLoading\n","import * as Styled from './style'\nimport ProductCategoryInformationLoading, { CardLoading } from './loading'\nimport PagedList from '../../../PagedList'\n\nimport { useHooks } from '../hooks'\nimport { i18n } from '../../../../utilities/i18n'\nimport { renderElementMultipleTimes } from '../../../../utilities/render'\n\nimport NoImage from '../../../../../assets/images/base/placeholder-300.png'\n\nimport React from 'react'\nimport PropTypes from 'prop-types'\n\nconst renderChildrenList = (children, scales, loading) => {\n if (loading) return renderElementMultipleTimes(scales.count, <CardLoading />)\n\n return children.map(({ logo, name, url }, index) => {\n return (\n <Styled.GridBox key={index} as=\"a\" href={url} $gap=\"8px\" $align=\"center\">\n <Styled.Logo>\n <img src={logo?.small || NoImage} alt={name} />\n </Styled.Logo>\n\n <Styled.Name>{name}</Styled.Name>\n </Styled.GridBox>\n )\n })\n}\n\nconst ProductCategoryInformation = ({ brandId }) => {\n const { title, children, collapsedState, innerHeight, loading, scales, ...hooks } = useHooks({ brandId })\n\n if (loading) {\n return (\n <ProductCategoryInformationLoading\n column={scales.column}\n row={scales.row}\n innerHeight={innerHeight} />\n )\n }\n\n return (\n <Styled.GridBox as={Styled.Wrapper} $gap=\"24px\">\n <Styled.FlexBox $gap=\"24px\">\n <Styled.Image>\n <img src={hooks.image} alt={title} />\n </Styled.Image>\n\n <Styled.GridBox $gap=\"8px\">\n <Styled.Title>{title}</Styled.Title>\n <Styled.Description>{hooks.description}</Styled.Description>\n </Styled.GridBox>\n </Styled.FlexBox>\n\n <Styled.Divider $hide={children.length < 1} />\n\n <PagedList\n title={i18n.t('BrandInformation.children')}\n collapsedState={collapsedState}\n column={scales.column}\n row={scales.row}\n innerHeight={innerHeight}\n onFetchQuery={hooks.onFetchQuery}\n pagination={hooks.pagination}>\n {renderChildrenList(children, scales, loading || hooks.loadMore)}\n </PagedList>\n </Styled.GridBox>\n )\n}\n\nProductCategoryInformation.propTypes = {\n brandId: PropTypes.string.isRequired\n}\n\nexport default ProductCategoryInformation\n","import styled from 'styled-components'\n\nexport const FlexBox = styled.div`\n display: flex;\n gap: ${props => props.$gap};\n`\n\nexport const GridBox = styled.div`\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: ${props => props.$gap};\n`\n\nexport const Thumbnail = styled.div`\n width: 214px;\n height: 214px;\n flex: none;\n position: relative;\n`\n\nexport const Image = styled.div`\n width: 192px;\n height: 192px;\n background-color: ${props => props.theme.colors.white};\n border-radius: 8px;\n\n position: absolute;\n top: 0;\n left: 0;\n\n > img {\n width: 100%;\n height: 100%;\n border-radius: 8px;\n object-fit: cover;\n }\n`\n\nexport const Logo = styled.div`\n width: 100px;\n height: 100px;\n background-color: ${props => props.theme.colors.white};\n border-radius: 8px;\n\n position: absolute;\n bottom: 0;\n right: 0;\n\n > img {\n width: 100%;\n height: 100%;\n border-radius: 8px;\n object-fit: cover;\n }\n`\n\nexport const Title = styled.h1`\n color: ${props => props.theme.colors.textHeading};\n font-size: 24px;\n font-weight: 600;\n margin: 0;\n`\n\nexport const Description = styled.p`\n color: ${props => props.theme.colors.textHeading};\n margin: 0;\n white-space: pre-line;\n`\n","import * as Styled from './style'\nimport { Skeleton } from '../../../../elements'\n\nimport React, { Fragment } from 'react'\n\nconst ProductCategoryBrandOverviewLoading = () => {\n return (\n <Fragment>\n <Styled.FlexBox $gap=\"40px\">\n <Styled.Thumbnail>\n <Styled.Image>\n <Skeleton width=\"100%\" height=\"100%\" type=\"image\" rounded />\n </Styled.Image>\n <Styled.Logo>\n <Skeleton width=\"100%\" height=\"100%\" type=\"image\" rounded />\n </Styled.Logo>\n </Styled.Thumbnail>\n\n <Styled.GridBox $gap=\"8px\">\n <Skeleton width=\"50%\" size=\"24px\" />\n <div>\n <Skeleton width=\"100%\" size=\"16px\" />\n <Skeleton width=\"100%\" size=\"16px\" />\n <Skeleton width=\"100%\" size=\"16px\" />\n <Skeleton width=\"40%\" size=\"16px\" />\n <Skeleton width=\"100%\" size=\"16px\" />\n <Skeleton width=\"100%\" size=\"16px\" />\n <Skeleton width=\"60%\" size=\"16px\" />\n </div>\n </Styled.GridBox>\n </Styled.FlexBox>\n\n <Styled.FlexBox $gap=\"8px\">\n <Skeleton width=\"160px\" height=\"36px\" type=\"box\" rounded />\n <Skeleton width=\"240px\" height=\"36px\" type=\"box\" rounded />\n </Styled.FlexBox>\n </Fragment>\n )\n}\n\nProductCategoryBrandOverviewLoading.propTypes = {}\n\nexport default ProductCategoryBrandOverviewLoading\n","import * as Styled from './style'\nimport ProductCategoryBrandOverviewLoading from './loading'\nimport { Button } from '../../../../elements'\n\nimport translations from '../translations'\nimport { i18n, initializeI18n } from '../../../../utilities/i18n'\n\nimport React, { Fragment } from 'react'\nimport PropTypes from 'prop-types'\n\nconst BUTTON_LINK_PROPS = {\n as: 'a',\n htmlType: 'primary-outlined',\n size: 'small'\n}\n\nconst ProductCategoryBrandOverview = ({\n title,\n description,\n brand,\n category,\n loading\n}) => {\n initializeI18n({ localeFiles: translations })\n\n if (loading) return <ProductCategoryBrandOverviewLoading />\n\n return (\n <Fragment>\n <Styled.FlexBox $gap=\"40px\">\n <Styled.Thumbnail>\n <Styled.Image>\n <img {...category.thumbnail} />\n </Styled.Image>\n <Styled.Logo>\n <img {...brand.thumbnail} />\n </Styled.Logo>\n </Styled.Thumbnail>\n\n <Styled.GridBox $gap=\"8px\">\n <Styled.Title>{title}</Styled.Title>\n <Styled.Description>{description}</Styled.Description>\n </Styled.GridBox>\n </Styled.FlexBox>\n\n <Styled.FlexBox $gap=\"8px\">\n <Button href={category.url} {...BUTTON_LINK_PROPS}>\n {i18n.t('Overview.seeCategory', { name: category.name })}\n </Button>\n <Button href={brand.url} {...BUTTON_LINK_PROPS}>\n {i18n.t('Overview.seeBrand', { name: brand.name })}\n </Button>\n </Styled.FlexBox>\n </Fragment>\n )\n}\n\nProductCategoryBrandOverview.propTypes = {\n title: PropTypes.string,\n description: PropTypes.string,\n brand: PropTypes.shape({\n name: PropTypes.string,\n url: PropTypes.string,\n thumbnail: PropTypes.shape({\n src: PropTypes.string,\n alt: PropTypes.string\n })\n }),\n category: PropTypes.shape({\n name: PropTypes.string,\n url: PropTypes.string,\n thumbnail: PropTypes.shape({\n src: PropTypes.string,\n alt: PropTypes.string\n })\n }),\n loading: PropTypes.bool\n}\n\nexport default ProductCategoryBrandOverview\n","import Styled from './style'\nimport { formatNumber } from '../../../../utilities/number'\nimport { Badge } from 'elements'\n\nimport React from 'react'\nimport PropTypes from 'prop-types'\n\nimport { i18n } from 'utilities/i18n'\n\nconst renderDiscountBadge = (discount, discountPercent) => {\n if (!discount && (!discountPercent || discountPercent == '0')) return null\n\n return (\n <Badge htmlType='red' size='small'>\n - {discount ? `฿ ${formatNumber(discount)}` : `${discountPercent}%`}\n </Badge>\n )\n}\n\nconst renderListPrice = (price, color, size) => {\n if (!price) return null\n\n return (\n <Styled.PriceBeforeDiscount color={color} size={size} $prefix={false}>\n {formatNumber(parseFloat(price))}\n </Styled.PriceBeforeDiscount>\n )\n}\n\nconst renderPrice = (price, color, size, placeholderSize, prefix) => {\n if (!price || parseInt(price) === 0) {\n return (\n <Styled.FinalPrice color={color} size={placeholderSize}>\n {i18n.t('Shared.contactStaff')}\n </Styled.FinalPrice>\n )\n }\n\n return (\n <Styled.FinalPrice color={color} size={size} $prefix={prefix}>\n {formatNumber(parseFloat(price))}\n </Styled.FinalPrice>\n )\n}\n\nconst renderPricePerUnit = (pricePerUnit, unit) => {\n if (!pricePerUnit) return null\n\n return (\n <Styled.PricePerUnit>\n {i18n.t('Product.pricePerUnitBaht', {unit: unit, price: formatNumber(parseFloat(pricePerUnit))})}\n </Styled.PricePerUnit>\n )\n}\n\nconst PriceOnCard = ({\n align,\n inline = false,\n unit,\n listPrice = '14px',\n listPriceColor,\n listPriceSize,\n placeholderSize,\n prefix = false,\n price,\n priceColor,\n priceSize = '20px',\n pricePerUnitInPack,\n reverse = false,\n discount,\n discountPercent\n}) => {\n const gotDiscount = discount || listPrice ? parseFloat(listPrice) > parseFloat(price) : false\n\n return (\n <Styled $inline={inline} $align={align} $reverse={reverse}>\n {renderPricePerUnit(pricePerUnitInPack, unit)}\n <Styled.Flex $discount={gotDiscount}>\n {renderDiscountBadge(discount, discountPercent)}\n {renderListPrice(listPrice, listPriceColor, listPriceSize)}\n </Styled.Flex>\n {renderPrice(price, priceColor, priceSize, placeholderSize, prefix)}\n </Styled>\n )\n}\n\nPriceOnCard.propTypes = {\n align: PropTypes.oneOf(['start', 'baseline', 'center', 'end']),\n inline: PropTypes.bool,\n listPrice: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n listPriceColor: PropTypes.string,\n listPriceSize: PropTypes.string,\n placeholderSize: PropTypes.string,\n prefix: PropTypes.bool,\n price: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n priceColor: PropTypes.string,\n priceSize: PropTypes.string,\n pricePerPiece: PropTypes.string,\n reverse: PropTypes.bool,\n unit: PropTypes.string,\n discount: PropTypes.number,\n discountPercent: PropTypes.string\n}\n\nexport default PriceOnCard\n","import Styled from './style'\n\nimport React from 'react'\nimport PropTypes from 'prop-types'\nimport { Skeleton } from 'elements'\n\nconst Loading = ({\n listPriceSize = '14px',\n priceSize = '20px',\n reverse = false,\n inline = false,\n hideDiscountPercent = false\n}) => {\n return (\n <Styled $inline={inline} $reverse={reverse}>\n <Styled.Flex $discount>\n {!hideDiscountPercent && <Skeleton width=\"50px\" height=\"18px\" type=\"image\" circle noWrapper />}\n <Skeleton width=\"40px\" size={listPriceSize} noWrapper />\n </Styled.Flex>\n <Skeleton width=\"60px\" size={priceSize} />\n </Styled>\n )\n}\n\nLoading.propTypes = {\n align: PropTypes.oneOf(['start', 'baseline', 'center', 'end']),\n inline: PropTypes.bool,\n hideDiscountPercent: PropTypes.bool,\n isMobile: PropTypes.bool,\n listPriceSize: PropTypes.string,\n priceSize: PropTypes.string,\n reverse: PropTypes.bool\n}\n\n\nexport default Loading\n","import styled, { css } from 'styled-components'\n\nconst directionStyle = ($align, $inline, $reverse) => {\n let direction = $inline ? 'row' : 'column'\n let align = 'start'\n let gap = '0'\n\n if ($inline) {\n direction = 'row'\n align = 'center'\n gap = '8px'\n }\n\n if ($reverse) {\n direction += '-reverse'\n }\n\n return css`\n flex-direction: ${direction};\n gap: ${gap};\n align-items: ${$align || align};\n `\n}\n\nconst Styled = styled.div`\n display: flex;\n line-height: 1.5;\n\n ${props => directionStyle(props.$align, props.$inline, props.$reverse)}\n`\n\nconst prefixStyle = ({ $prefix }) => {\n if (!$prefix) return null\n\n return css`&:before { content: '฿ ' }`\n}\n\nStyled.FinalPrice = styled.div`\n color: ${props => props.color || props.theme.colors.textPrice};\n font-size: ${props => props.size};\n\n ${prefixStyle}\n`\n\nStyled.PriceBeforeDiscount = styled.div`\n color: ${props => props.theme.colors[props.color] || props.color || props.theme.colors.textSubHeading};\n font-size: ${props => props.size};\n text-decoration: line-through;\n\n ${prefixStyle}\n`\n\nStyled.PricePerUnit = styled.div`\n font-size: 14px;\n color: ${props => props.theme.colors.grey800};\n`\n\nStyled.Discount = styled.div`\n width: 39px;\n height: 18px;\n text-align: center;\n padding: 0 6px;\n border-radius: 100px;\n background-color: ${props => props.theme.colors.mainRed};\n font-size: 10px;\n line-height: 18px;\n color: ${props => props.theme.colors.white};\n`\n\nStyled.Flex = styled.div`\n display: ${props => props.$discount ? 'flex' : 'none'};\n gap: 4px;\n`\n\nexport default Styled\n","import styled from 'styled-components'\n\nexport const BGWhite = styled.div`\n background-color: ${props => props.theme.colors.white};\n line-height: 1.5;\n margin-bottom: 2px;\n\n position: relative;\n`\n\nexport const Wrapper = styled.div`\n width: ${props => props.theme.screen.desktop};\n margin: 0 auto;\n padding: 24px 0;\n\n display: flex;\n flex-direction: column;\n gap: 24px;\n`\n","import * as Styled from './style'\nimport ProductCategoryBrandOverview from '../../../../components/ProductCategoryBrand/Overview/desktop'\nimport ProductCategoryChildrenList from '../../../../components/ProductCategory/ChildrenList/desktop'\nimport ProductsFilterLayout from '../../../../components/ProductCategory/desktop/ProductsFilterLayout'\nimport ProductCategoryAttachments from '../../../../components/ProductCategory/Attachments'\nimport ProductCategoryInformation from '../../../../components/ProductCategoryBrand/Information/desktop'\nimport Description from '../../../../components/Description'\n\nimport { useHooks } from '../hooks'\nimport useSearchFilterHooks from '../../../../components/Search/Filters/hooks'\nimport useSearchSortOptionsHooks from '../../../../components/Search/SortOptions/hooks'\nimport theme from '../../../../theme'\n\nimport React from 'react'\nimport PropTypes from 'prop-types'\n\nconst ProductCategoryBrandTemplate = ({ productCategoryId, brandId }) => {\n const DEFAULT_BRANDS = [brandId]\n const INIT_FILTERS = {\n brands: DEFAULT_BRANDS,\n ratings: [],\n priceRates: []\n }\n\n const { title, shortDescription, description, brand, loading, ...hooks } = useHooks(productCategoryId, brandId)\n const filterHooks = useSearchFilterHooks(INIT_FILTERS)\n const sortHooks = useSearchSortOptionsHooks({ defaultSort: ['items_sum_sales_count desc'] })\n\n return (\n <Styled.BGWhite>\n <Styled.Wrapper>\n <ProductCategoryBrandOverview\n title={title}\n description={shortDescription}\n brand={brand}\n category={hooks.category}\n loading={loading} />\n\n <ProductCategoryChildrenList\n slug={productCategoryId}\n brandId={brandId} />\n\n <ProductsFilterLayout\n slug={productCategoryId}\n name={title}\n filterHooks={filterHooks}\n sortHooks={sortHooks}\n defaultBrands={DEFAULT_BRANDS}\n useInView />\n\n <ProductCategoryAttachments\n slug={productCategoryId}\n customStyle={{\n border: `1px solid ${theme.colors.zinc300}`,\n borderRadius: '16px',\n padding: '16px'\n }}\n useInView />\n\n <ProductCategoryInformation brandId={brandId} />\n\n <Description\n title={title}\n description={description}\n loading={loading}\n imageMaxWidth=\"50%\" />\n </Styled.Wrapper>\n </Styled.BGWhite>\n )\n}\n\nProductCategoryBrandTemplate.propTypes = {\n productCategoryId: PropTypes.string.isRequired,\n brandId: PropTypes.string.isRequired\n}\n\nexport default ProductCategoryBrandTemplate\n","import ProductCategoryBrandTemplate from '../../../../templates/ProductCategory/Brand/desktop'\n\nimport { renderRoot } from '../../../../utilities/render'\n\nconst _ProductCategoryBrand = () => {\n const root = document.getElementById('product_category_brand_page')\n const rootData = (root && root.dataset) || {}\n\n renderRoot(root, [{\n component: ProductCategoryBrandTemplate,\n params: rootData\n }])\n}\n\nconst ProductCategoryBrandPage = () => {\n _ProductCategoryBrand()\n}\n\nexport default ProductCategoryBrandPage\n","import HomeRedLogo from '../../../../assets/images/base/osh-logo/logo-home-red.png'\nimport NoImage from '../../../../assets/images/base/placeholder-300.png'\n\nimport { gql, useQuery } from '@apollo/client'\n\nconst QUERY = gql`\n query ProductCategoryBrandTemplate($productCategoryId: ID!, $brandId: ID!) {\n productCategory(id: $productCategoryId) {\n id\n name\n pageDisplayName\n shortDescription\n attachmentsAttached\n url\n brand(slug: $brandId) {\n id\n name\n url\n logo {\n small\n }\n productCategoryBrand(slug: $productCategoryId) {\n id\n pageDisplayName\n shortDescription\n description {\n id\n body\n }\n }\n }\n icon {\n medium\n }\n }\n }\n`\n\nexport const useHooks = (productCategoryId, brandId) => {\n const { loading, data, error } = useQuery(QUERY, { variables: { productCategoryId, brandId } })\n\n if (error) { console.error(error) }\n\n const { brand: brandData, ...productCategoryData } = data?.productCategory || {}\n const { logo, productCategoryBrand, ...brand } = brandData || {}\n const { icon, pageDisplayName, ...productCategory } = productCategoryData || {}\n\n\n return {\n title: productCategoryBrand?.pageDisplayName || `${pageDisplayName} ${brandData?.name}`,\n shortDescription: productCategoryBrand?.shortDescription || productCategory?.shortDescription,\n description: productCategoryBrand?.description,\n emptyAttachments: !productCategory?.attachmentsAttached,\n brand: {\n ...brand,\n thumbnail: {\n src: logo?.small || NoImage,\n alt: brand?.name\n }\n },\n category: {\n ...productCategory,\n thumbnail: {\n src: icon?.medium || HomeRedLogo,\n alt: productCategory?.name\n }\n },\n loading\n }\n}\n","import { useAuthorizationContext } from '../context/authorizationContext'\n\nimport { useState } from 'react'\nimport PropTypes from 'prop-types'\nimport { gql, useMutation } from '@apollo/client'\n\nconst MUTATION = gql`\n mutation wishList($itemId: String!, $sourceType: String, $sourceId: String) {\n wishList(itemExternalId: $itemId, sourceType: $sourceType, sourceId: $sourceId){\n wishList {\n id\n items {\n id\n }\n }\n item {\n id\n isWishlistItem\n }\n }\n }\n`\n\nexport const useAddToWishlist = () => {\n const { onAuthorize } = useAuthorizationContext()\n const [pending, setPending] = useState([false])\n\n const [addToWishlist, { loading: saving }] = useMutation(MUTATION, {\n onCompleted: ({ wishList }) => {\n const itemId = wishList.item?.id\n if (!itemId) return null\n\n setPending(values => values.filter(value => value !== itemId))\n }\n\n })\n\n const onAddWishList = params => {\n const { itemId } = params\n\n onAuthorize(null, () => {\n if (!itemId || pending.includes(itemId)) return null\n\n setPending(values => [...values, itemId])\n addToWishlist({ variables: { ...params } })\n })\n }\n\n return {\n onAddWishList,\n pending,\n saving\n }\n}\n\nuseAddToWishlist.propTypes = {\n onAuthorize: PropTypes.func\n}\n","export const camelCase = function (string) {\n const words = string.split('_')\n return words.shift() + words.map((word) => capitalize(word)).join('')\n}\n\nexport const camelize = (text) => {\n return text.replace(/(?:^\\w|[A-Z]|\\b\\w)/g, (word, index) => {\n return index === 0 ? word.toLowerCase() : word.toUpperCase()\n }).replace(/\\s+/g, '')\n}\n\nexport const capitalize = function (string) {\n return string.charAt(0).toUpperCase() + string.slice(1)\n}\n\nexport const titleize = function (string) {\n return string.charAt(0).toUpperCase() + string.slice(1).replace(/([A-Z])/g, (g) => ` ${g[0].toUpperCase()}`)\n}\n\nexport const snakeCase = function (string) {\n return string.replace(/([A-Z])/g, (g) => `_${g[0].toLowerCase()}`)\n}\n\nexport const turncateString = (string, limit) => {\n if (!string) { return '' }\n if (!limit || string.length <= limit) { return string }\n\n return `${string.substring(0, limit)}...`\n}\n\nexport const hideString = (string, limit = 1) => {\n if (!string) return ''\n if (!limit || string.length <= limit) return string\n\n return `${string.trim().slice(0, limit)}***`\n}\n\nexport const hidePhoneNumber = (string) => {\n if (!string) return ''\n if (string.length < 3) return string\n\n return `${string.slice(0, string.length - 7)}**${string.slice(string.length - 2)}`\n}\n\nexport const joinString = (arr = [], separator = '') => {\n return arr.filter(Boolean).join(separator)\n}\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(this && this[arg] || arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tclasses.push(classNames.apply(this, arg));\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(this && this[key] || key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":["DefaultButton","styled","ButtonIconElement","_templateObject","_taggedTemplateLiteral","props","theme","colors","zinc300","SmallButton","button","_templateObject2","$fill","mainRed","textHeading","getButtonType","isWishlist","isUpdateWishlist","_ref","onAddToWishlist","_ref$isWishlist","_ref$isUpdateWishlist","_ref$size","size","iconType","getIconType","React","Styled","onClick","className","icon","htmlType","rounded","_ref$align","align","_ref$count","count","_ref$gap","gap","wrapperStyle","$align","$customStyle","$gap","renderElementMultipleTimes","Skeleton","Object","assign","default","height","width","small","type","noWrapper","renderTag","GridBox","div","FlexBox","Wrapper","_templateObject3","blue50","Image","_templateObject4","Title","h2","_templateObject5","Description","p","_templateObject6","Divider","_templateObject7","$hide","Logo","_templateObject8","Name","_templateObject9","CardLoading","_ref$column","column","_ref$row","row","innerHeight","as","PagedListLoading","_ref2","brandId","_useHooks","useHooks","title","children","collapsedState","loading","scales","hooks","_objectWithoutProperties","_excluded","ProductCategoryInformationLoading","src","image","alt","description","length","PagedList","i18n","t","onFetchQuery","pagination","map","index","logo","name","url","key","href","NoImage","renderChildrenList","loadMore","Thumbnail","white","h1","Fragment","BUTTON_LINK_PROPS","brand","category","initializeI18n","localeFiles","translations","ProductCategoryBrandOverviewLoading","thumbnail","Button","_ref$inline","inline","unit","_ref$listPrice","listPrice","listPriceColor","listPriceSize","placeholderSize","_ref$prefix","prefix","price","priceColor","_ref$priceSize","priceSize","pricePerUnitInPack","_ref$reverse","reverse","discount","discountPercent","gotDiscount","parseFloat","$inline","$reverse","pricePerUnit","PricePerUnit","formatNumber","renderPricePerUnit","Flex","$discount","Badge","concat","renderDiscountBadge","color","PriceBeforeDiscount","$prefix","renderListPrice","parseInt","FinalPrice","renderPrice","_ref$listPriceSize","_ref$hideDiscountPerc","hideDiscountPercent","circle","direction","css","prefixStyle","textPrice","textSubHeading","grey800","Discount","BGWhite","screen","desktop","productCategoryId","DEFAULT_BRANDS","INIT_FILTERS","brands","ratings","priceRates","shortDescription","filterHooks","useSearchFilterHooks","sortHooks","useSearchSortOptionsHooks","defaultSort","ProductCategoryBrandOverview","ProductCategoryChildrenList","slug","ProductsFilterLayout","defaultBrands","useInView","ProductCategoryAttachments","customStyle","border","borderRadius","padding","ProductCategoryInformation","imageMaxWidth","root","rootData","document","getElementById","dataset","renderRoot","component","ProductCategoryBrandTemplate","params","QUERY","gql","_useQuery","useQuery","variables","data","error","console","productCategory","brandData","productCategoryData","productCategoryBrand","_excluded2","_ref3","pageDisplayName","_excluded3","emptyAttachments","attachmentsAttached","_objectSpread","medium","HomeRedLogo","MUTATION","useAddToWishlist","onAuthorize","useAuthorizationContext","_useState2","_slicedToArray","useState","pending","setPending","_useMutation2","useMutation","onCompleted","_wishList$item","itemId","wishList","item","id","values","filter","value","addToWishlist","saving","onAddWishList","includes","_toConsumableArray","propTypes","PropTypes","camelCase","string","words","split","shift","word","capitalize","join","camelize","text","replace","toLowerCase","toUpperCase","charAt","slice","titleize","g","snakeCase","hideString","limit","arguments","undefined","trim","hidePhoneNumber","joinString","separator","Boolean","hasOwn","hasOwnProperty","classNames","classes","i","arg","argType","push","this","Array","isArray","apply","toString","prototype","call","module","exports"],"sourceRoot":""}