{"version":3,"sources":["usecases/buyer/inventory/index.ts","view/hooks/inventory.ts","utils/brand.ts","redux/favoriteproduct/thunk/index.ts","view/widgets/FavoriteListDialog/index.tsx","view/widgets/ProductCartForm/Quantity/index.tsx","view/widgets/ListViewLogger/index.tsx","view/widgets/ProductSearchProvider/index.tsx","view/widgets/ListViewItem/index.tsx","view/widgets/InventoryProvider/index.tsx","view/widgets/TypeSelectModal/index.tsx","view/widgets/ProductCartForm/AddToCart/index.tsx","view/widgets/ProductCartForm/index.tsx","view/widgets/ProductCartForm/hooks.ts","view/widgets/HorizontalSlider/index.tsx","view/widgets/ProductListViewItem/DetailViewItem/index.tsx","view/widgets/ProductListViewItem/GridViewItem/index.tsx","view/widgets/ProductListViewItem/GridViewItemSmall/index.tsx","view/widgets/ProductListViewItem/index.tsx","widgets/Field/index.tsx","view/widgets/Skeleton/index.tsx","../node_modules/react-slick/lib/utils/innerSliderUtils.js","webpack:///./src/widgets/Field/styles.scss?6351","widgets/Field/styles.scss","webpack:///./src/widgets/Field/styles.modules.scss?a9e0","widgets/Field/styles.modules.scss","view/widgets/InventoryModal/index.tsx","view/widgets/ProductCartForm/OptionSelector/index.tsx","view/widgets/ProductCartForm/OrderTable/index.tsx","view/widgets/ProductCartForm/OrderTable/OrderTableCol/index.tsx","view/widgets/ProductCartForm/SingleRow/index.tsx","view/widgets/ProductCartForm/SubscribeButton/index.tsx","view/widgets/ProductCartForm/TypeRows/index.tsx","view/widgets/FavoriteListCreateModal/index.tsx","redux/favoritelist/thunk/index.ts","view/widgets/SaleProductAlert/index.tsx","view/widgets/ProductDetailModal/ImageCarousel/index.tsx","view/widgets/ProductDetailModal/index.tsx","webpack:///./src/view/widgets/ProductCartForm/styles.modules.scss?7608","view/widgets/ProductCartForm/styles.modules.scss","webpack:///./src/view/widgets/FavoriteListDialog/styles.scss?dee7","view/widgets/FavoriteListDialog/styles.scss","webpack:///./src/view/widgets/FavoriteListCreateModal/styles.scss?00d1","view/widgets/FavoriteListCreateModal/styles.scss","webpack:///./src/view/widgets/ListViewItem/styles.scss?8634","view/widgets/ListViewItem/styles.scss","webpack:///./src/view/widgets/TypeSelectModal/styles.modules.scss?bb93","view/widgets/TypeSelectModal/styles.modules.scss","webpack:///./src/view/widgets/TypeSelectModal/styles.scss?d212","view/widgets/TypeSelectModal/styles.scss","webpack:///./src/view/widgets/ProductCartForm/OptionSelector/styles.modules.scss?1c22","view/widgets/ProductCartForm/OptionSelector/styles.modules.scss","webpack:///./src/view/widgets/ProductCartForm/OrderTable/styles.modules.scss?91be","view/widgets/ProductCartForm/OrderTable/styles.modules.scss","webpack:///./src/view/widgets/ProductCartForm/OrderTable/OrderTableCol/styles.modules.scss?2ee0","view/widgets/ProductCartForm/OrderTable/OrderTableCol/styles.modules.scss","webpack:///./src/view/widgets/ProductCartForm/SingleRow/styles.modules.scss?9ed8","view/widgets/ProductCartForm/SingleRow/styles.modules.scss","webpack:///./src/view/widgets/ProductCartForm/TypeRows/styles.modules.scss?12d1","view/widgets/ProductCartForm/TypeRows/styles.modules.scss","webpack:///./src/view/widgets/ProductDetailModal/styles.scss?5f4e","view/widgets/ProductDetailModal/styles.scss","webpack:///./src/view/widgets/ProductDetailModal/ImageCarousel/styles.scss?08c0","view/widgets/ProductDetailModal/ImageCarousel/styles.scss","utils/debounce.ts","webpack:///./src/view/widgets/ProductListViewItem/DetailViewItem/styles.modules.scss?a836","view/widgets/ProductListViewItem/DetailViewItem/styles.modules.scss","webpack:///./src/view/widgets/ProductListViewItem/GridViewItem/styles.scss?17f4","view/widgets/ProductListViewItem/GridViewItem/styles.scss","webpack:///./src/view/widgets/ProductListViewItem/GridViewItemSmall/styles.scss?abe4","view/widgets/ProductListViewItem/GridViewItemSmall/styles.scss","domain/file/Video.ts","usecases/buyer/search/product.ts","domain/product/CollectionVideo.ts","redux/brand/thunk/details.ts","view/hooks/head.ts","domain/product/Collection.ts","../node_modules/@react-icons/all-files/fi/FiChevronDown.js","../node_modules/enquire.js/src/Util.js","webpack:///./src/view/widgets/HorizontalSlider/styles.scss?383c","view/widgets/HorizontalSlider/styles.scss","view/widgets/ProductListViewItemByAlgolia/index.tsx","redux/favorite/thunk/index.ts","../node_modules/react-slick/lib/index.js","utils/compare.ts","../node_modules/reactstrap/es/Badge.js","../node_modules/@material-ui/core/esm/Button/Button.js","../node_modules/lodash.debounce/index.js","view/widgets/BrandListViewItem/index.tsx","redux/collection/selectors/index.ts","view/widgets/ProductSearchPagination/index.tsx","../node_modules/react-slick/lib/slider.js","../node_modules/react-slick/lib/inner-slider.js","../node_modules/react-slick/lib/initial-state.js","../node_modules/react-slick/lib/track.js","../node_modules/react-slick/lib/dots.js","../node_modules/react-slick/lib/arrows.js","../node_modules/json2mq/index.js","../node_modules/string-convert/camel2hyphen.js","../node_modules/react-slick/lib/default-props.js","../node_modules/enquire.js/src/index.js","../node_modules/enquire.js/src/MediaQueryDispatch.js","../node_modules/enquire.js/src/MediaQuery.js","../node_modules/enquire.js/src/QueryHandler.js","redux/favorite/selectors/index.ts","view/widgets/SendMessage/index.tsx","redux/collection/thunk/index.ts","view/widgets/SendMessage/MessageModal/index.tsx","webpack:///./src/view/widgets/SendMessage/MessageModal/styles.scss?3846","view/widgets/SendMessage/MessageModal/styles.scss","../node_modules/@react-icons/all-files/fi/FiArrowDown.js","view/widgets/ProductSearchSortDropdown/index.tsx","../node_modules/@trendyol-js/react-carousel/dist/es/index.js","../node_modules/@react-icons/all-files/hi/HiChevronRight.js","../node_modules/@react-icons/all-files/hi/HiChevronLeft.js","webpack:///./src/view/widgets/ProductSearchSortDropdown/styles.scss?5edc","view/widgets/ProductSearchSortDropdown/styles.scss","webpack:///./src/view/widgets/BrandListViewItem/styles.scss?1cb1","view/widgets/BrandListViewItem/styles.scss","../node_modules/@react-icons/all-files/fi/FiArrowUp.js","webpack:///./src/view/widgets/SendMessage/styles.scss?70be","view/widgets/SendMessage/styles.scss","view/hooks/thunk.ts","view/pages/buyer/ListViewBrand/hooks.tsx","../node_modules/react-instantsearch-core/dist/es/connectors/connectRefinementList.js","../node_modules/@material-ui/core/esm/Container/Container.js","../node_modules/@material-ui/lab/esm/internal/svg-icons/FirstPage.js","../node_modules/@material-ui/lab/esm/internal/svg-icons/LastPage.js","../node_modules/@material-ui/lab/esm/internal/svg-icons/NavigateBefore.js","../node_modules/@material-ui/lab/esm/internal/svg-icons/NavigateNext.js","../node_modules/@material-ui/lab/esm/PaginationItem/PaginationItem.js","../node_modules/@material-ui/lab/esm/Pagination/Pagination.js","../node_modules/@material-ui/lab/esm/Pagination/usePagination.js","../node_modules/@material-ui/core/esm/MenuItem/MenuItem.js","view/pages/buyer/ListViewQuery/Sidebar/index.tsx","../node_modules/@react-icons/all-files/ai/AiFillAppstore.js","../node_modules/@react-icons/all-files/ai/AiOutlineUnorderedList.js","view/widgets/BrandDetailModal/index.tsx","../node_modules/@react-icons/all-files/fi/FiBook.js","../node_modules/@material-ui/lab/esm/internal/svg-icons/Star.js","../node_modules/@material-ui/lab/esm/Rating/Rating.js","../node_modules/@material-ui/core/esm/Grow/Grow.js","webpack:///./src/view/widgets/BrandDetailModal/styles.scss?ad0c","view/widgets/BrandDetailModal/styles.scss","../node_modules/@react-icons/all-files/fi/FiTruck.js","../node_modules/@react-icons/all-files/fi/FiAlertCircle.js","../node_modules/reactstrap/es/Progress.js","webpack:///./src/view/widgets/ProductReviewList/styles.scss?2d18","view/widgets/ProductReviewList/styles.scss","../node_modules/@material-ui/lab/esm/internal/svg-icons/SuccessOutlined.js","../node_modules/@material-ui/lab/esm/internal/svg-icons/ReportProblemOutlined.js","../node_modules/@material-ui/lab/esm/internal/svg-icons/ErrorOutline.js","../node_modules/@material-ui/lab/esm/internal/svg-icons/InfoOutlined.js","../node_modules/@material-ui/lab/esm/Alert/Alert.js","../node_modules/@material-ui/styles/esm/styled/styled.js","view/widgets/Rating/index.tsx","../node_modules/@material-ui/core/esm/styles/styled.js","view/widgets/ProductReviewList/index.tsx","view/widgets/ProductReviewList/graphql.ts","../node_modules/@material-ui/core/esm/Tooltip/Tooltip.js","../node_modules/@material-ui/core/esm/Tab/Tab.js","../node_modules/@material-ui/core/esm/utils/scrollLeft.js","../node_modules/@material-ui/core/esm/internal/animate.js","../node_modules/@material-ui/core/esm/Tabs/ScrollbarSize.js","../node_modules/@material-ui/core/esm/Tabs/TabIndicator.js","../node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowLeft.js","../node_modules/@material-ui/core/esm/internal/svg-icons/KeyboardArrowRight.js","../node_modules/@material-ui/core/esm/TabScrollButton/TabScrollButton.js","../node_modules/@material-ui/core/esm/Tabs/Tabs.js","../node_modules/@material-ui/core/esm/Popover/Popover.js","../node_modules/@material-ui/core/esm/MenuList/MenuList.js","../node_modules/@material-ui/core/esm/Menu/Menu.js","webpack:///./src/view/pages/buyer/ListViewBrand/styles.scss?be9d","view/pages/buyer/ListViewBrand/styles.scss","webpack:///./src/view/pages/buyer/ListViewBrand/ListViewContainer/styles.scss?9655","view/pages/buyer/ListViewBrand/ListViewContainer/styles.scss","webpack:///./src/view/pages/buyer/ListViewBrand/ListViewContainer/AlgoliaList/DetailList/styles.scss?e7a9","view/pages/buyer/ListViewBrand/ListViewContainer/AlgoliaList/DetailList/styles.scss","webpack:///./src/view/widgets/CollectionListViewItem/styles.scss?e45e","view/widgets/CollectionListViewItem/styles.scss","webpack:///./src/view/pages/buyer/ListViewBrand/ListViewContainer/AlgoliaList/ListViewHeader/styles.scss?0331","view/pages/buyer/ListViewBrand/ListViewContainer/AlgoliaList/ListViewHeader/styles.scss","webpack:///./src/view/pages/buyer/ListViewBrand/ListViewContainer/BrandHeader/styles.scss?32d9","view/pages/buyer/ListViewBrand/ListViewContainer/BrandHeader/styles.scss","webpack:///./src/view/widgets/BrandConditionModal/styles.scss?89a0","view/widgets/BrandConditionModal/styles.scss","webpack:///./src/view/pages/buyer/ListViewBrand/ListViewContainer/SideCart/styles.scss?62a1","view/pages/buyer/ListViewBrand/ListViewContainer/SideCart/styles.scss","webpack:///./src/view/pages/buyer/ListViewBrand/ListViewContainerDirect/styles.scss?4698","view/pages/buyer/ListViewBrand/ListViewContainerDirect/styles.scss","webpack:///./src/view/pages/buyer/ListViewBrand/ListViewContainerDirect/AlgoliaList/DetailList/styles.scss?302a","view/pages/buyer/ListViewBrand/ListViewContainerDirect/AlgoliaList/DetailList/styles.scss","webpack:///./src/view/pages/buyer/ListViewBrand/ListViewContainerDirect/AlgoliaList/ListViewHeader/styles.scss?ddee","view/pages/buyer/ListViewBrand/ListViewContainerDirect/AlgoliaList/ListViewHeader/styles.scss","webpack:///./src/view/pages/buyer/ListViewBrand/ListViewContainerDirect/BrandHeader/styles.scss?71fc","view/pages/buyer/ListViewBrand/ListViewContainerDirect/BrandHeader/styles.scss","../node_modules/@react-icons/all-files/fi/FiExternalLink.js","webpack:///./src/view/pages/buyer/ListViewBrand/ListViewContainerDirect/SideCart/styles.scss?291a","view/pages/buyer/ListViewBrand/ListViewContainerDirect/SideCart/styles.scss","view/pages/buyer/ListViewBrand/ListViewContainer/AlgoliaList/DetailList/Collections/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainer/AlgoliaList/DetailList/LimitedProducts/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainer/AlgoliaList/DetailList/index.tsx","view/widgets/CollectionListViewItem/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainer/AlgoliaList/GridList/Collections/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainer/AlgoliaList/GridList/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainer/AlgoliaList/ListViewHeader/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainer/AlgoliaList/index.tsx","view/widgets/BrandConditionModal/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainer/BrandHeader/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainer/SideCart/Segment/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainer/SideCart/index.tsx","view/widgets/SimilarBrands/SkeletonItems/index.tsx","view/widgets/SimilarBrands/Items/index.tsx","view/widgets/SimilarBrands/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainer/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainerDirect/AlgoliaList/DetailList/Collections/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainerDirect/AlgoliaList/DetailList/LimitedProducts/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainerDirect/AlgoliaList/DetailList/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainerDirect/AlgoliaList/GridList/Collections/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainerDirect/AlgoliaList/GridList/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainerDirect/AlgoliaList/ListViewHeader/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainerDirect/AlgoliaList/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainerDirect/BrandHeader/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainerDirect/SideCart/Segment/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainerDirect/SideCart/index.tsx","view/pages/buyer/ListViewBrand/ListViewContainerDirect/index.tsx","view/pages/buyer/ListViewBrand/index.tsx"],"names":["fetchInventories","createUseCase","_ref2","_asyncToGenerator","_regeneratorRuntime","mark","_callee","productIds","_ref","_res$data$searchInven","_res$data","_res$data$searchInven2","dispatch","res","inventories","refetchProductIds","_res2$data$searchProd","_res2$data","_res2$data$searchProd2","res2","products","wrap","_context","prev","next","fetchedInventories","executeQuery","searchInventorys","filter","or","map","productId","product_id","eq","limit","sent","data","items","item","_item$product","_item$productType","_item$product2","_item$productType2","product","product_public_status","productType","published","suspended","some","inventory","length","searchProducts","id","push","apply","_toConsumableArray","flatMap","_product$producttype$","_product$producttype","producttype","type","_type$id","_ref3","_ref4","_type$sku","product_type_id","brand_id","product_brand_id","sku","undefined","out_of_stock","recievedInventories","stop","_x","_x2","arguments","useInventory","useDispatch","useCallback","fetchInventoriesThunk","clear","clearedInventory","isLoading","useSelector","selectIsInventoryLoading","useSelectInventoriesByProduct","selectInventories","useMemo","makeSelectInventoriesByProduct","useSelectInventoryByProduct","makeSelectInventoryByProduct","useSelectIsOutOfStockByProduct","selector","makeSelectIsOutOfStockByProduct","useSelectInventoryBySku","brandId","productTypeId","makeSelectInventoryQtyBySku","useSelectIsOutOfStockBySku","makeSelectIsOutOfStockBySku","useSelectAvailableInventoryBySku","makeSelectAvailableInventoryBySku","BRAND","visa","mastercard","jcb","amex","diners","discover","unknown","formatBrand","brand","isProtectedBrand","account","_brand$exclude_zip_co","exclude_zip_code","includes","zip_code","saveBrandIdToLocalStorage","localStorage","setItem","retrieveBrandIdFromLocalStorage","getItem","deleteBrandIdFromLocalStorage","removeItem","addFavoriteProduct","account_id","list_id","_item$product3","_item$product4","_item$product5","_item$product6","_item$product7","_item$product7$brand","_item$product8","_item$product$product","_item$product9","API","graphql","graphqlOperation","createFavoriteProduct","input","favorite_list_id","addedFavoriteProduct","productSaved","category","product_category","category2","product_subcategory","name","product_name","brand_name","price","Math","round","product_retail_price","product_wholesale_rate","addDefaultFavoriteProduct","defaultListId","concat","_callee2","_exist$data","_exist$data$searchFav","_exist$data$searchFav2","_item$product10","_item$product11","_item$product12","_item$product13","_item$product14","_item$product15","_item$product16","_item$product16$brand","_item$product17","_item$product$product2","_item$product18","exist","favoriteProductListData","_context2","searchFavoriteProductLists","list_name","order","createFavoriteProductList","removeFavoriteProduct","_callee3","_context3","deleteFavoriteProduct","removedFavoriteProduct","listId","_x3","FavoriteListDialog","TogglerComponent","togglerComponent","user","authUserSelector","_useThunk","useThunk","addFavoriteProductThunk","_slicedToArray","_useThunk3","removeFavoriteProductThunk","_useState","useState","_useState2","isOpen","setIsOpen","toggle","event","preventDefault","stopPropagation","_useState3","_useState4","createBoardIsOpen","setCreateBoardIsOpen","favoriteLists","selectFavoriteProductLists","isListLoading","selectIsFavoriteProductListLoading","savedListId","makeSelectFavoriteProductListIdByProduct","favoriteProductId","makeSelectFavoriteProductId","handleListClick","attributes","sub","handleCreateList","React","createElement","Fragment","onClick","className","style","width","height","FiEdit2","size","color","fill","Dialog","open","onClose","DialogTitle","List","list","ListItem","button","key","ListItemText","listName","FiCheck","FiPlus","FavoriteCreateListModal","accountId","InputQuantity","lot","minimum","cart","_useFormikContext","useFormikContext","quantities","values","setFieldValue","productItemSelector","cartProduct","cartProductSelector","isOutOfStock","availableInventory","preOrder","product_preorder","max","onBlur","value","qty","Number","isNaN","over","min","textAlign","padding","tabIndex","_quantities$name","border","FieldWithValidity","e","currentTarget","_quantities$name2","ListViewLogger","index","searchCategory","subCategory","search_type","keywords","tags","sort","sortState","filters","sorts","_getCategory","summaryCategory","categories","mainCategory","getCategory","_getCategory2","useEffect","pushViewItemListEvent","i","_item$product_sale_wh","item_name","item_id","calculatePrice","product_sale_wholesale_rate","item_brand","item_category","item_category2","item_list_name","document","title","item_list_id","location","pathname","quantity","sub_category","_category3","_category4","_category","_category2","_product$product_sale","image_url","getPublicImageUrl","image_key","position","product_number","url","protocol","host","productListFiltered","field","direction","productListViewed","ProductSearchIndex","recommended","PRODUCT_SEARCH_INDEX_FEATURED","brandRecommended","PRODUCT_SEARCH_INDEX_BRAND","newest","PRODUCT_SEARCH_INDEX_CREATED_AT_DESC","highestPrice","PRODUCT_SEARCH_INDEX_PRICE_DESC","lowestPrice","PRODUCT_SEARCH_INDEX_PRICE_ASC","highestWholesaleRate","PRODUCT_SEARCH_INDEX_WHOLESALE_RATE_DESC","lowestWholesaleRate","PRODUCT_SEARCH_INDEX_WHOLESALE_RATE_ASC","useProductSearchSelector","compare","memoizedSelector","state","productEquals","a","b","JSON","stringify","useSelectProducts","selectProducts","ProductSearchLog","memo","_items$","auth","page","selectProductListPage","selectProductListSortType","selectProductListFilters","selectProductListCategory","selectProductListSubCategory","query","selectProductListQuery","replaceAll","split","Object","entries","_values$map","ProductSearchResultsProvider","personalize","children","_useInstantSearch","useInstantSearch","hits","searching","isSearchStalled","searchResults","productListSort","useFlag","searchedProducts","clearedProducts","getPersonalizedProducts","recievedProducts","recievedNbHits","nbHits","RefinementList","connectRefinementList","_ref5","attribute","refine","searchForItems","labels","label","makeSelectProductListFiltersByAttribute","deepEquals","recievedRefinementItems","ProductSearchListProvider","_ref6","directOwners","selectDirectContactOwners","indexName","productFilters","selectProductListFilterValueStrings","selectProductListBrandId","isNewProducts","selectNewProducts","isPreview","selectIsPreview","join","Date","getTime","owner","offset","selectProductListOffset","attributesToRetrieve","groupByBrand","selectProductListGroupByBrand","refinementAttributes","selectProductListRefinementAttributes","InstantSearchProvider","distinct","ProductSearchProvider","_ref7","_ref7$personalize","props","_objectWithoutProperties","_excluded","isInitialized","selectIsProductListInitialized","initializedProductSearchList","_objectSpread","clearedProductSearchState","ListViewItem","_ref$col","col","Col","InventoryProvider","_useInventory","TypeSelectModal","_qs$parse","_history$location$sea","_history$location$sea2","_product$producttype2","_product$imageKeys2","Product","create","productOrderLot","_product$product_orde","product_order_lot","_product$product_mini","product_minimum_quantity","history","useHistory","is_direct","qs","parse","search","direct","isCompleted","setIsCompleted","image","setImage","selectColor","find","imageKey","imageUrl","selectSize","selectType","t","type_name","getProductCart","clearProductCart","_product$imageKeys","imageKeys","setTimeout","Modal","ModalHeader","LoadingContainer","Row","xs","src","alt","formatCurrency","unitPrice","is_open_price","Link","to","ProductCartForm","productTypes","onSelectColor","onSelectSize","onSelectType","isDirect","onSubmit","AddToCart","showMessage","setShowMessage","_useFormikContext$val","isSubmitting","dirty","totalQuantity","reduce","Button","disabled","block","Spinner","preview","buyerInfo","buyerInfoSelector","isInventoryLoading","setQuantities","selectedColor","setSelectedColor","_useState5","_useState6","selectedSize","setSelectedSize","_useState7","_useState8","selectedType","setSelectedType","_useState9","_useState10","isModalOpen","setIsModalOpen","sellOnlyDirect","sell_only_direct","colors","_a$color","_b$color","_type$imageKey","_defineProperty","keys","sizes","_a$size","_b$size","_type$imageKey2","options","_a$type_name","_b$type_name","_type$imageKey3","isSaved","makeSelectIsSavedByProduct","handleSelectColor","_document$getElementB","getElementById","scrollIntoView","behavior","handleSelectSize","handleSelectType","_useCart","isCart","addCartAll","_useThunk2","addCart","loading","complete","addToCart","abrupt","cartItems","cartProductsSelector","cartQuantities","_productType$id","updateCartThunk","_useThunk4","updateCart","updating","update","_ref9","_ref8","_ref10","_cartItem$id","_ref11","cartItem","_useThunk5","getCartByProduct","fetchCart","clearCartProducts","isComplete","useCart","handleSubmit","formik","_quantities","setSubmitting","finish","_inventory$availableI","_inventories$availabl","_inventories","_product$sku","_cartQuantities$produ","_cartQuantities$type$","validationSchema","_inventories5","_inventories6","_product$sku2","_inventories$inventor2","_inventories7","_product$sku3","Yup","shape","_type$product","_inventories2","_inventories3","_type$sku2","_inventories$inventor","_inventories4","_type$sku3","nullable","typeError","Formik","initialValues","validateOnMount","enableReinitialize","Form","OptionSelector","optionLabel","selectedOption","onSelect","OrderTable","OrderTableCol","TypeRows","types","SingleRow","SaleProductAlert","SubscribeButton","assign","outline","FiHeart","isReturnableCategory","RETURNABLE_PRICE_LIMIT","textDecoration","InventoryModal","HorizontalSlider","xl","lg","md","sm","_ref$contentAlign","contentAlign","childCount","Children","count","settings","infinite","speed","slidesToShow","slidesToScroll","initialSlide","nextArrow","FiChevronRight","prevArrow","FiChevronLeft","responsive","breakpoint","BREAKPOINT_CONFIG","Slider","ProductDetailViewItem","_location$search","_location$search$spli","_product$imageKeys$","productJson","isShowDetail","setIsShowDetail","encodeURIComponent","paddingTop","onError","top","left","objectFit","productSaleWholesaleRate","productWholesaleRate","product_estimated_ship_date_min","product_estimated_ship_date_max","product_preorder_shipping_date","ProductDetailModal","SEASON_LABEL","AW","SS","BUTTON_ACTION_LABEL","option","collection","Item","_product$brand3","_product$imageKeys$0$","_product$imageKeys2$i","_product$imageKeys2$i2","_SEASON_LABEL$product","_product$productSaleW","_product$product_orde2","_ref$showBrand","showBrand","unAuth","_ref$isLongListView","isLongListView","hideBadge","moveFavoriteList","accountSelector","addCartThunk","productUrl","URL","href","searchParams","brandUrl","outOfStock","addDefaultFavoriteProductThunk","addLoading","_useThunk6","removeLoading","handleClick","productClicked","signup","nextPath","referralId","handleAddToCart","_product$brand","is_sale_brand","pushSelectItemEvent","pushAddToCartEvent","buttonAction","_product$brand2","message","setMessage","isProtected","profile","isNewItem","dt","newItemDueDt","setDate","getDate","publishedAt","productCreated","isFavoritHover","setFavoriteHover","handleFavoriteAdd","cx","onMouseEnter","onMouseLeave","followed","w","h","display","alignItems","justifyContent","background","margin","fontWeight","fontSize","lineHeight","letterSpacing","textTransform","minHeight","Chip","variant","product_year","product_season","originalUnitPrice","disableElevation","FiShoppingCart","UncontrolledTooltip","target","placement","translate","brand_minimum_buy","product_content","ProductListViewItem","_ref3$col","_ref3$isLongListView","_ref3$showBrand","isHover","setHover","bottom","ProductListViewSmallItem","_ref$layout","layout","DetailViewItem","GridViewItemSmall","GridViewItem","Field","_ref$component","component","Component","defaultValue","hidden","restProps","_useField","useField","_useField2","meta","hiddenStyleName","htmlFor","_getClassName","_styleModuleImportMap","touched","error","styles","onChange","persist","ErrorMessage","Skeleton","_ref$height","backgroundColor","defineProperty","exports","canUseDOM","slidesOnLeft","slidesOnRight","siblingDirection","getTotalSlides","getPostClones","getPreClones","getTrackLeft","getTrackAnimateCSS","getTrackCSS","checkSpecKeys","getSlideCount","checkNavigable","getNavigableIndexes","swipeEnd","swipeMove","swipeStart","keyHandler","changeSlide","slideHandler","initializedState","extractObject","canGoNext","getSwipeDirection","getHeight","getWidth","lazySlidesOnRight","lazySlidesOnLeft","lazyEndIndex","lazyStartIndex","getRequiredLazySlides","getOnDemandLazySlides","_react","_interopRequireDefault","_reactDom","obj","__esModule","default","source","ownKeys","getOwnPropertySymbols","sym","getOwnPropertyDescriptor","enumerable","forEach","configurable","writable","spec","onDemandSlides","startIndex","endIndex","slideIndex","lazyLoadedList","indexOf","requiredSlides","currentSlide","centerMode","floor","parseInt","centerPadding","elem","offsetWidth","offsetHeight","touchObject","xDist","yDist","r","swipeAngle","verticalSwiping","startX","curX","startY","curY","atan2","PI","abs","canGo","slideCount","newObject","slideWidth","listWidth","ceil","findDOMNode","listRef","trackWidth","trackRef","vertical","centerPaddingAdj","slice","slideHeight","querySelector","listHeight","rtl","slidesToLoad","autoplaying","autoplay","waitForAnimate","animating","fade","lazyLoad","useCSS","finalSlide","animationLeft","finalLeft","animationSlide","nextState","trackStyle","swipeLeft","indexOffset","previousInt","slideOffset","targetSlide","accessibility","tagName","match","keyCode","swipe","draggable","dragging","touches","pageX","clientX","pageY","clientY","scrolling","swipeToSlide","edgeFriction","edgeDragged","onEdge","swiped","swiping","swipeEvent","curLeft","swipeLength","sqrt","pow","verticalSwipeLength","positionOffset","dotCount","swipeDirection","touchSwipeLength","touchThreshold","onSwipe","minSwipe","newSlide","currentLeft","counter","indexes","navigables","prevNavigable","n","centerOffset","swipedSlide","slides","querySelectorAll","Array","from","every","slide","offsetTop","offsetLeft","currentIndex","dataset","keysArray","hasOwnProperty","console","trackHeight","trackChildren","opacity","transition","WebkitTransition","useTransform","WebkitTransform","transform","msTransform","window","addEventListener","attachEvent","marginTop","marginLeft","cssEase","unslick","targetLeft","variableWidth","slidesToOffset","targetSlideIndex","trackElem","childNodes","right","content","module","locals","___CSS_LOADER_API_IMPORT___","_useGraphql","useGraphql","listInventoriesByProduct","_data$listInventories","_inventory$product","_inventory$productTyp","_useGraphql2","fetch","Table","borderless","_inventory$productTyp2","getProductTypeString","scrollLeft","setScrollLeft","handleScroll","element","onScroll","setValues","incrementAll","typeId","decrementAll","_productType$product","MdAddShoppingCart","outOfStocks","isSubscribed","setSubscribed","handleSubscribe","createInStockNotification","buyer_id","completed","FiMail","outOfStockAll","setListName","addFavoriteProductListThunk","addFavoriteProductList","DialogContent","placeholder","onInput","removeFavoriteProductList","favoriteProductIds","Promise","all","deleteFavoriteProductList","removedFavoriteProductList","updateFavoriteProductList","rs","updateFavoriteProductListQuery","updatedFavoriteProductList","_callee4","charList","_context4","random","recievedFavoriteProductList","_x4","_saleProduct$collecti","_saleProduct$collecti2","_saleProduct$collecti3","_saleProduct$collecti4","_saleProduct$collecti5","_saleProduct$collecti6","_saleProduct$imageKey","_saleProduct$imageKey2","_saleProduct$imageKey3","saleProduct","setSaleProduct","setInventory","process","copied_product_id","ne","then","_res$data$searchProdu","_res$data$searchProdu2","_inventory$data","_inventory$data$searc","_inventory$data$searc2","_inventory","_item$inventory","collections","collection_id","SERVICE_NAME","ImageCarousel","images","activeIndex","setActiveIndex","handleNext","handlePrev","showControls","setShowArrows","handleMouseEnter","handleMouseLeave","SwipeableViews","autoPlay","_map","_imageKeys$items","_imageKeys","contentClassName","close","zIndex","isSaleProduct","wholesaleRate","product_description","product_size","fn","interval","timer","_len","args","_key","clearTimeout","Video","_Entity","params","_classCallCheck","_inherits","_createClass","get","_exec","this","exec","_upload","Storage","put","directory","uid","extension","originFileObj","_delete2","_yield$Storage$remove","remove","_create","_video$size","_video$type","video","_objectDestructuringEmpty","_generateThumbnailByFile","file","resolve","reject","canvas","muted","createObjectURL","onloadeddata","ctx","getContext","videoWidth","videoHeight","drawImage","pause","thumbnail","toDataURL","_generateThumbnailByUrl","_callee5","_url$match","response","blob","fileName","_context5","status","File","generateThumbnailByFile","t0","Entity","_res$data$getPersonal","flag","itemIds","getFlag","getPersonalizedProductsQuery","userId","personalizeRate","Error","itemId","warn","paginate","getState","listState","selectProductListState","itemsPerPage","changedOffset","changedPage","CollectionVideo","thumbUrl","upload","getDirectory","replace","toJson","videoKey","lastModified","lastModifiedDate","percent","linkProps","xhr","_createByVideoKey","signedUrl","collectionId","_CollectionVideo","limitSize","shortenLimitSize","getBrandInfo","_brandData$brand_moda","brandData","iconUrl","_brandData$brand_moda2","modalImageUrl","getBrandInfoStart","customQueries","getBrandReadModel","getImageUrl","brand_imageKey","brand_icon_imageKey","brand_modal_imageKeys","receiveBrandDetails","getSaleBrandInfo","brands","queries","searchBrands","getProducts","keyword","_options$nextToken","_nextToken","productData","_productData$data$sea","nextToken","getBrandProductsStart","wildcard","searchProductswithimagekey","receiveBrandProductsNextToken","getSignedProducts","_x5","_callee8","signedProducts","_context8","getSignedBrandProductsStart","_callee7","_item$imageKeys","_item$imageKeys$items","_item$imageKeys2","_item$imageKeys2$item","_context7","_x8","setBrandProducts","addBrandProducts","_x7","useHeadContent","headContent","setHeadContent","useHeadContext","Collection","_updateCollectionImage","imageFile","_response$data","mutations","updateCollection","removeItems","_setCollectionVideo","videoFile","_response$data2","uploadedImage","video_key","_addProduct","collectionProduct","_res$items","_result$data2","_pc$quantity","_result$data","pc","_result","result","searchProductCollections","updateProductCollection","createProductCollection","_getVideo","createByVideoKey","_this$productCollecti","productCollections","_this$productCollecti2","_pc$product","_this$productCollecti3","_this$productCollecti4","_product$originalUnit","_this$productCollecti5","_this$productCollecti6","_product$unitPrice","_this$productCollecti7","_this$productCollecti8","_product$originalUnit2","retailPrice","_this$productCollecti9","_this$productCollecti10","_this$productCollecti11","_this$productCollecti12","_this$productCollecti13","description","productCollection","preorder","season","season_year","_excluded2","_excluded3","ProductBase","_createById","getCollection","_register","_callee6","collectionInput","_response$data3","_context6","createCollection","_createByCopiedBrand","_product$collections2","_product$collections3","_product$collections4","_getRecursively","listProducts","targetCollectionId","getRecursively","_ref12","_listProducts$items2","_ref13","_listProducts$items","copied_brand_id","t1","t2","t3","t4","call","_product$collections$","_product$collections","_product$collections$2","createById","_x6","GenIcon","FiChevronDown","isFunction","isArray","prototype","toString","each","ProductListViewItemByAlgolia","discount","_buyerInfo$contacts","_buyerInfo$contacts$i","contacts","brand_owner","product_owner","_productJson$image_ke","_productJson$video_ke","is_published","brand_additional_minimum_buy","image_keys","videoKeys","video_keys","addFavoriteBrand","noAppend","_item$brand","_item$brand2","favoriteBrand","searchFavoriteBrands","setFavoriteBrand","createFavoriteBrand","appendFavoriteBrand","brandFollowed","brand_category","pushFollowBrandEvent","removeFavoriteBrand","noRemove","deleteFavoriteBrand","removeFavoriteBrandAction","pushUnfollowBrandEvent","getFavoriteBrands","favoriteBrands","_res","_items","t5","_product$imageKeys$it","t6","t7","t8","t9","t10","setFavoriteBrands","getFavoriteBrand","_default","propTypes","string","pill","bool","tag","innerRef","oneOfType","object","func","node","cssModule","Badge","Tag","classes","ref","defaultProps","_props$color","_props$component","_props$disabled","_props$disableElevati","_props$disableFocusRi","disableFocusRipple","endIconProp","endIcon","focusVisibleClassName","_props$fullWidth","fullWidth","_props$size","startIconProp","startIcon","_props$type","_props$variant","other","root","colorInherit","focusRipple","focusVisible","theme","typography","boxSizing","minWidth","borderRadius","palette","text","primary","transitions","duration","short","action","hoverOpacity","textPrimary","main","textSecondary","secondary","outlined","disabledBackground","outlinedPrimary","outlinedSecondary","contained","getContrastText","grey","boxShadow","shadows","A100","containedPrimary","contrastText","dark","containedSecondary","borderColor","textSizeSmall","pxToRem","textSizeLarge","outlinedSizeSmall","outlinedSizeLarge","containedSizeSmall","containedSizeLarge","sizeSmall","sizeLarge","marginRight","iconSizeSmall","iconSizeMedium","iconSizeLarge","reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","freeGlobal","global","freeSelf","self","Function","objectToString","nativeMax","nativeMin","now","isObject","toNumber","isObjectLike","isSymbol","valueOf","isBinary","test","wait","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","thisArg","leadingEdge","timerExpired","shouldInvoke","timeSinceLastCall","trailingEdge","remainingWait","debounced","isInvoking","cancel","flush","_brand$brand_minimum_","addToFavorite","adding","removeFromFavorite","removing","favorite","makeFavoriteBrandSelector","onFollowLinkClick","setIsHover","isNewBrand","_brand$product","_brand$product$items","newBrandDueDt","itemAddDate","createdAt","onPointerEnter","onPointerLeave","brand_content","SkeletonItem","BrandListViewItem","collectionSelector","collectionListSelector","createSelector","collectionList","byId","collectionListNextTokenSelector","collectionItemSelector","_collection$item","individualCollectionListSelector","_collection$productCo","IndividualProduct","individualCollectionItemSelector","_collection$item$prod","ProductSearchPagination","nbPages","selectProductListNbPages","useLocation","handlePageChange","set","pushState","pageQuery","URLSearchParams","Pagination","_","_innerSlider","_json2mq","_defaultProps","_innerSliderUtils","_typeof","Symbol","iterator","constructor","_extends","_defineProperties","descriptor","_getPrototypeOf","o","setPrototypeOf","getPrototypeOf","__proto__","_setPrototypeOf","p","_assertThisInitialized","ReferenceError","enquire","_React$Component","_this","instance","Constructor","_possibleConstructorReturn","innerSlider","slickPrev","slickNext","dontAnimate","slickGoTo","_responsiveMediaHandlers","protoProps","staticProps","subClass","superClass","handler","register","_this2","breakpoints","breakpt","x","y","bQuery","maxWidth","media","setState","unregister","newProps","_this3","resp","toArray","child","trim","rows","slidesPerRow","newChildren","currentWidth","j","row","k","cloneElement","InnerSlider","innerSliderRefHandler","_initialState","_lodash","_classnames","_track","_dots","_arrows","_resizeObserverPolyfill","excluded","sourceKeys","_objectWithoutPropertiesLoose","sourceSymbolKeys","propertyIsEnumerable","track","adaptiveHeight","ssrInit","onInit","prevState","onLazyLoad","updateState","adaptHeight","lazyLoadTimer","setInterval","progressiveLazyLoad","ro","onWindowResized","callbackTimers","observe","onfocus","pauseOnFocus","onSlideFocus","onblur","onSlideBlur","animationEndCallback","clearInterval","removeEventListener","detachEvent","autoplayTimer","nextProps","setTrackStyle","_arr","_i","checkImagesLoad","onReInit","debouncedResize","resizeWindow","callback","updatedState","_trackWidth","_trackLeft","childrenWidths","preClones","postClones","_i2","_i3","_trackStyle","childrenCount","trackLeft","imagesCount","loadedCount","onclick","prevClickHandler","parentNode","focus","onload","onerror","onLazyLoadError","_index","_this$props","asNavFor","beforeChange","afterChange","_slideHandler","firstBatch","clickable","dir","ontouchmove","returnValue","disableBodyScroll","triggerSlideHandler","enableBodyScroll","nextIndex","playType","play","autoplaySpeed","pauseType","dots","trackProps","pauseOnHover","onTrackOver","onTrackLeave","onMouseOver","focusOnSelect","selectHandler","dotProps","pauseOnDotsHover","clickHandler","onDotsLeave","onDotsOver","Dots","arrowProps","arrows","PrevArrow","NextArrow","verticalHeightStyle","centerPaddingStyle","listStyle","touchMove","listProps","onMouseDown","onMouseMove","onMouseUp","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel","onKeyDown","innerSliderProps","listRefHandler","Track","trackRefHandler","currentDirection","initialized","getSlideClasses","slickActive","slickCenter","slickCloned","getKey","fallbackKey","renderSlides","preCloneSlides","postCloneSlides","childOnClickOptions","childStyle","getSlideStyle","slideClass","slideClasses","preCloneNo","reverse","_React$PureComponent","mouseEvents","PureComponent","leftBound","rightBound","dotOptions","bind","customPaging","appendDots","dotsClass","prevClasses","prevHandler","prevArrowProps","customProps","_React$PureComponent2","nextClasses","nextHandler","nextArrowProps","camel2hyphen","obj2mq","mq","features","feature","isDimension","q","str","toLowerCase","easing","MediaQueryDispatch","MediaQuery","Util","matchMedia","browserIsIncapable","matches","shouldDegrade","isUnconditional","addHandler","removeHandler","QueryHandler","handlers","mql","listener","assess","addListener","constuctor","qh","on","equals","destroy","splice","removeListener","deferSetup","setup","initialised","off","unmatch","favoriteBrandsSelector","favorites","_favorites$find","SendMessage","productName","tel","isInitOpen","showModal","setShowModal","MessageModal","isShow","getSignedProduct","signedPosts","signedTypes","signedProduct","getCollectionList","onlyPublished","_res$data$listCollect","token","listCollectionsByBrandWithProductsUnAuth","listCollectionsByBrandWithProductsPreview","listCollectionsByBrandWithProducts","sortDirection","listCollectionsByBrand","display_order","setCollectionList","_item$productCollecti","_productType$publishe","_a$sort_order","_b$sort_order","sort_order","_yield$collection$pro","_callee10","_item$productCollecti2","collectionModel","_context10","getCollectionWithProductUnAuth","getCollectionWithProductPreview","getCollectionWithProduct","_productType$publishe2","_ref14","_callee9","_productType$imageKey","_product$imageKeys$it2","_context9","t11","_x10","_a$sort_order2","_b$sort_order2","setCollection","_x9","_ref15","_ref16","_callee12","uploadedVideo","_context12","createCollectionQuery","_ref17","_callee11","_context11","_x12","_x11","_ref18","removedProductIds","oldImageKey","oldVideoKey","_ref19","_callee15","oldVideoFile","_context15","updateCollectionQuery","_ref20","_callee13","_context13","_x14","_ref21","_callee14","_context14","deleteProductCollection","_x15","_x13","deleteCollection","_ref22","_callee17","removed","_context17","deleteCollectionQuery","_ref24","_callee16","_ref23","_context16","_x17","removeCollection","_x16","updateProducts","_callee19","_context19","_ref26","_callee18","model","_context18","ProductModel","_x18","updateCollectionsOrderDisplay","sortCollections","updCollections","_ref27","_callee20","_iterator","_step","_context20","clearCollectionList","_createForOfIteratorHelper","s","done","f","_x19","_shipping_address","_message$length","brandInfoSelector","sendMessage","submit","msg","companyName","shopName","buyerName","buyer_owner","owners","show","onHide","Header","Title","getResizeImageUrl","Body","maxLength","company_name","shop_name","last_name","first_name","shipping_address","phone_number","required","Footer","FiArrowDown","SORT_LABEL","ProductSearchSortDropdown","acliveKeys","setOpen","sortType","sortMenu","useQuery","onSelectSortType","decodedQuery","decode","substring","encode","replaceState","changedSortType","buttonRef","useRef","FiArrowUp","Menu","anchorEl","current","anchorOrigin","horizontal","getContentAnchorEl","transitionDuration","MenuItem","insertAt","head","getElementsByTagName","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","Right","Left","arr","C","R","leftIcon","l","rightIcon","c","u","d","m","v","g","scrollWidth","L","classList","T","M","I","getComputedStyle","E","add","HiChevronRight","HiChevronLeft","useThunkQueue","isProcessing","setIsProcessing","queue","extrArgument","useLimitedProducts","limitedProducts","_buyerInfo$contacts2","_item$contactListConn","contactListConnections","_item$contactListConn2","conn","limited_publishing_list","contact_list_id","flat","getId","getCurrentRefinement","searchState","context","currentRefinement","getValue","selectedValue","getLimit","showMore","showMoreLimit","_refine","nextRefinement","nextValue","sortBy","displayName","isRequired","operator","oneOf","number","defaultRefinement","arrayOf","searchable","transformItems","facetOrdering","getProvidedProps","metadata","searchForFacetValuesResults","indexContextValue","results","ais","contextValue","multiIndexContext","canRefine","Boolean","getFacetByName","isFromSearch","_highlightResult","highlighted","isRefined","getFacetValues","transformedItems","searchForFacetValues","facetName","maxFacetHits","cleanUp","_cleanUp","getSearchParameters","searchParameters","addKey","addRefinementKey","setQueryParameters","maxValuesPerFacet","val","getMetadata","nextSelectedItems","Container","_props$disableGutters","disableGutters","_props$fixed","fixed","_props$maxWidth","String","paddingLeft","spacing","paddingRight","up","acc","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl","createSvgIcon","_props$selected","selected","_props$shape","Icon","useTheme","previous","NavigateNext","NavigateBefore","last","FirstPage","first","LastPage","ellipsis","capitalize","ButtonBase","icon","withStyles","body2","hover","selectedOpacity","disabledOpacity","activatedOpacity","rounded","defaultGetAriaLabel","boundaryCount","_props$getItemAriaLab","defaultPage","getItemAriaLabel","_props$renderItem","hideNextButton","hidePrevButton","renderItem","showFirstButton","showLastButton","siblingCount","_props$boundaryCount","_props$componentName","componentName","_props$count","_props$defaultPage","_props$hideNextButton","_props$hidePrevButton","handleChange","pageProp","_props$showFirstButto","_props$showLastButton","_props$siblingCount","_useControlled","useControlled","controlled","_useControlled2","setPageState","range","start","end","startPages","endPages","siblingsStart","siblingsEnd","itemList","buttonPage","usePagination","ul","flexWrap","ListItemClasses","_props$role","role","tabIndexProp","dense","gutters","body1","paddingBottom","overflow","whiteSpace","AlgoliaRefinementListSidebar","customItems","setCustomItems","selectedItem","setSelectedItem","sortedItems","customRefine","selectAllItems","objectID","AiFillAppstore","AiOutlineUnorderedList","BrandDetailModal","_brand$tags","_brand$featured_in","_brand$modalImageUrl","_brand$modalImageUrl2","_brand$modalImageUrl3","_brand$stockists","_brand$stockists2","videoId","movie_url","_videoUrl$searchParam","videoUrl","brand_logo_imageKey","brand_yomigana","designed_in","brand_instagram_account","startsWith","rel","established","featured_in","frameBorder","allowFullScreen","stockists","stockist","address","FiBook","roundValueToPrecision","precision","decimalPart","nearest","toFixed","IconContainer","defaultIcon","Star","defaultLabelText","_props$defaultValue","emptyIcon","_props$emptyLabelText","emptyLabelText","_props$getLabelText","getLabelText","_props$icon","_props$IconContainerC","IconContainerComponent","_props$max","nameProp","onChangeActive","_props$precision","_props$readOnly","readOnly","valueProp","valueDerived","setValueState","valueRounded","_React$useState","_React$useState$","_useIsFocusVisible","useIsFocusVisible","isFocusVisible","onBlurVisible","focusVisibleRef","_React$useState2","setFocusVisible","rootRef","handleFocusRef","useForkRef","handleRef","newValue","parseFloat","handleClear","handleFocus","newFocus","handleBlur","labelProps","container","filled","iconFilled","iconEmpty","iconHover","iconFocus","active","iconActive","visuallyhidden","onFocus","checked","rootNode","_rootNode$getBounding","getBoundingClientRect","newHover","clamp","itemValue","decimal","$","indexDecimal","itemDecimalValue","defaultChecked","pristine","cursor","WebkitTapHighlightColor","pointerEvents","clip","shortest","getScale","entering","entered","Grow","_props$disableStrictM","disableStrictModeCompat","inProp","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","_props$timeout","timeout","_props$TransitionComp","TransitionComponent","autoTimeout","enableStrictModeCompat","unstable_strictMode","nodeRef","foreignRef","normalizedTransitionCallback","nodeOrAppearing","maybeAppearing","isAppearing","handleEntering","handleEnter","_getTransitionProps","mode","delay","getAutoHeightDuration","clientHeight","handleEntered","handleExiting","handleExit","_getTransitionProps2","handleExited","appear","addEndListener","nodeOrNext","maybeNext","childProps","visibility","muiSupportAuto","FiTruck","FiAlertCircle","enumerableOnly","symbols","getOwnPropertyDescriptors","defineProperties","bar","multi","animated","striped","barClassName","barStyle","barAriaValueText","barAriaLabelledBy","Progress","progressClasses","progressBarProps","defaultIconMapping","success","SuccessOutlined","warning","ReportProblemOutlined","ErrorOutline","info","InfoOutlined","Close","_props$closeText","closeText","_props$iconMapping","iconMapping","_props$severity","severity","Paper","square","elevation","IconButton","getColor","getBackgroundColor","standardSuccess","standardInfo","standardWarning","standardError","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","filledSuccess","fontWeightMedium","filledInfo","filledWarning","filledError","omit","fields","output","prop","styled","componentCreator","stylesOptions","filterProps","classNamePrefix","stylesOrCreator","useStyles","makeStyles","StyledComponent","forwardRef","classNameProp","clone","ComponentProp","spread","FinalComponent","defaultTheme","Rating","TabPanel","aria-labelledby","a11yProps","ProductReviewList","isTab","containerClass","searchReviews","review","fetchReview","_useGraphql3","_useGraphql4","fetchProducts","setValue","handleProductClick","_review$items","_review$product_ids","product_ids","reviewList","_review$items$map","_review$items2","ids","rate","comment","replies","totalRateAverage","sum","_review$items3","allReviews","_products$filter","moment","format","reply","_products$","_products$$brand","_product$imageKeys$it3","filterReviews","purchasedReviews","_products$filter2","_products$2","_products$2$brand","_product$imageKeys$it4","Tabs","TabIndicatorProps","Tab","hystersisOpen","hystersisTimer","Tooltip","_props$arrow","arrow","_props$disableFocusLi","disableFocusListener","_props$disableHoverLi","disableHoverListener","_props$disableTouchLi","disableTouchListener","_props$enterDelay","enterDelay","_props$enterNextDelay","enterNextDelay","_props$enterTouchDela","enterTouchDelay","idProp","_props$interactive","interactive","_props$leaveDelay","leaveDelay","_props$leaveTouchDela","leaveTouchDelay","onOpen","openProp","_props$placement","_props$PopperComponen","PopperComponent","PopperProps","TransitionProps","childNode","setChildNode","arrowRef","setArrowRef","ignoreNonTouchEvents","closeTimer","enterTimer","leaveTimer","touchTimer","openState","setOpenState","handleOpen","forward","childrenProps","removeAttribute","_React$useState3","childIsFocusVisible","setChildIsFocusVisible","handleClose","handleLeave","detectTouchStart","handleUseRef","handleOwnRef","shouldShowNativeTitle","interactiveWrapperListeners","mergedPopperProps","popperOptions","modifiers","enabled","popper","popperInteractive","popperArrow","placementInner","TransitionPropsInner","shorter","tooltip","touch","tooltipArrow","transformOrigin","marginBottom","common","white","fontFamily","wordWrap","fontWeightRegular","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","flip","indicator","selectionFollowsFocus","_props$textColor","textColor","_props$wrapped","wrapped","labelIcon","wrapper","_extends2","flexShrink","textColorInherit","textColorPrimary","textColorSecondary","flexGrow","flexBasis","flexDirection","cachedType","detectScrollType","dummy","body","removeChild","getNormalizedScrollLeft","clientWidth","easeInOutSin","sin","ScrollbarSize","scrollbarHeight","setMeasurements","handleResize","debounce","prevHeight","orientation","colorPrimary","colorSecondary","KeyboardArrowLeft","KeyboardArrowRight","ariaLabel","ariaLabelledBy","_props$centered","centered","childrenProp","_props$indicatorColor","indicatorColor","_props$orientation","_props$ScrollButtonCo","ScrollButtonComponent","_props$scrollButtons","scrollButtons","_props$TabIndicatorPr","TabScrollButtonProps","scrollable","isRtl","scrollStart","clientSize","mounted","setMounted","indicatorStyle","setIndicatorStyle","displayScroll","setDisplayScroll","_React$useState4","scrollerStyle","setScrollerStyle","valueToIndex","Map","tabsRef","tabListRef","getTabsMeta","tabsMeta","tabMeta","tabsNode","rect","scrollTop","scrollLeftNormalized","_children","tab","updateIndicatorState","useEventCallback","_newIndicatorStyle","_getTabsMeta","startValue","correction","newIndicatorStyle","dStart","dSize","scroll","scrollValue","property","cb","_options$ease","ease","_options$duration","cancelled","step","timestamp","requestAnimationFrame","animate","moveTabsScroll","delta","handleStartScrollClick","handleEndScrollClick","handleScrollbarSizeChange","scrollSelectedIntoView","_getTabsMeta2","nextScrollStart","_nextScrollStart","updateScrollButtonState","showStartScroll","showEndScroll","_tabsRef$current","scrollHeight","win","ownerWindow","handleTabsScroll","updateIndicator","updateScrollButtons","childIndex","childValue","conditionalElements","scrollbarSizeListener","scrollButtonsActive","showScrollButtons","scrollButtonStart","scrollButtonsDesktop","scrollButtonEnd","getConditionalElements","scroller","flexContainer","flexContainerVertical","getAttribute","newFocusTarget","previousItemKey","nextItemKey","previousElementSibling","lastChild","nextElementSibling","WebkitOverflowScrolling","flex","overflowX","scrollbarWidth","down","getOffsetTop","getOffsetLeft","getTransformOriginValue","getAnchorEl","_props$anchorOrigin","anchorPosition","_props$anchorReferenc","anchorReference","containerProp","_props$elevation","_props$marginThreshol","marginThreshold","_props$PaperProps","PaperProps","_props$transformOrigi","_props$transitionDura","transitionDurationProp","_props$TransitionProp","paperRef","getAnchorOffset","contentAnchorOffset","resolvedAnchorEl","anchorRect","nodeType","ownerDocument","anchorVertical","getContentAnchorOffset","contentAnchorEl","contains","parent","parentElement","getScrollParent","getTransformOrigin","elemRect","getPositioningStyle","elemTransformOrigin","anchorOffset","containerWindow","heightThreshold","innerHeight","widthThreshold","innerWidth","diff","_diff","_diff2","_diff3","setPositioningStyles","positioning","handlePaperRef","updatePosition","BackdropProps","invisible","createChainedFunction","paper","overflowY","maxHeight","nextItem","disableListWrap","previousItem","textCriteriaMatches","nextFocus","textCriteria","innerText","textContent","repeating","moveFocus","currentFocus","disabledItemsFocusable","traversalFunction","wrappedOnce","nextFocusDisabled","hasAttribute","useEnhancedEffect","actions","_props$autoFocus","autoFocus","_props$autoFocusItem","autoFocusItem","_props$disabledItemsF","_props$disableListWra","textCriteriaRef","previousKeyMatched","lastTime","adjustStyleForScrollbar","containerElement","noExplicitWidth","scrollbarSize","getScrollbarSize","activeItemIndex","newChildProps","activeElement","criteria","lowerKey","currTime","performance","keepFocusOnCurrent","RTL_ORIGIN","LTR_ORIGIN","_props$disableAutoFoc","disableAutoFocusItem","_props$MenuListProps","MenuListProps","onEnteringProp","PopoverClasses","menuListActionsRef","contentAnchorRef","setRef","FiExternalLink","Collections","setCollectionId","handleCollectionClick","changedFilterValues","ScrollingCarousel","LimitedProducts","DetailList","_products$map","isMounted","_listRef$current","ImagesCarousel","CollectionListViewItem","_collection$productCo6","_collection$productCo7","_ref2$col","sale","collectionUrl","_collection$productCo2","_collection$productCo3","_collection$productCo4","_collection$productCo5","_product$productType","_product$product","_product$product$imag","_product$product$imag2","is_consign","isSaleCollection","originalPrice","hasOpenPrice","GridList","selectIsProductSearching","_useLimitedProducts","subcategory","setSubcategory","handleSubcategory","ListViewBrandHeader","setViewType","viewType","onInputKeyword","changedQuery","toggleView","view","clearedFilters","changedItemsPerPage","ProductList","toggleViewType","BrandConditionModal","brand_logo_reprint","product_image_reprint","brand_online_sale","allow_direct_shipping","allow_sell_before_buy","post_to_sns","terms_of_sample","other_terms","BrandHeader","_qs$parse2","_history$location$sea3","_history$location$sea4","getFavorites","isConditionModalOpen","setConditionModalOpen","isDetailModalOpen","setDetailModalOpen","contactId","follow","setIsFollowed","unFollow","scrollToReviews","isFollowed","clearFavoriteBrands","brand_address","reviews","review_average","FiMessageSquare","isFreeShipping","brand_shippinng_fee","brand_shippinng_fee_criteria","formatDate","getFreeShippingPeriod","Alert","average_shipping_days","service_rate","FiPackage","tagIndex","Segment","_segment$items","segment","isLast","selectItem","setIsFirstOrder","isFirstOrder","shippingDate","isPreorder","isConsign","groupedItems","_item$productType3","totalPrice","SideCart","makeSelectCartItemsByBrand","subtotal","makeSelectCartSubtotalByBrands","retailSubtotal","makeSelectCartRetailSubtotalByBrands","hasOrdered","makeSelectHasOrderedBrand","_brand$brand_addition","segments","makeSelectCartSegmentsByBrand","originalShippingFee","makeSelectCartOriginalShippingFeeByBrands","savedForLaterBrands","selectCartSavedForLaterBrands","overMinimumBrands","selectOverMinimumBrands","removeCart","pushRemoveFromCartEvent","item_variant","SkeletonItems","Items","brandIds","SimilarBrands","getSimilarBrands","similarBrands","fetchSimilarBrands","BRAND_SEARCH_INDEX","ListViewBrandContainer","_brand$product$items$","breadcrumbs","projectId","selectProjectId","fluid","_brand$tags2","ListViewBrandContainerDirect","ListViewBrand","_user$attributes$prof","useParams","isAuthLoading","authenticatingSelector","_useThunkQueue","clearBrandDetails","brandViewed","AuthPage","brand_public_status","Redirect","BuyerPage","directBrand","ListViewContainerDirect"],"mappings":"gaAaaA,EAAmBC,YAC9B,6BAA4B,eAAAC,EAAAC,YAAAC,cAAAC,MAC5B,SAAAC,EAAOC,EAAoBC,GAAA,IAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAA,OAAAhB,cAAAiB,MAAA,SAAAC,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,OACM,OADFZ,EAAQJ,EAARI,UACpBa,eAAsBH,EAAAE,KAAA,EAEbE,YAGhBC,KAAkB,CAClBC,OAAQ,CACNC,GAAItB,EAAWuB,KAAI,SAACC,GAAS,MAAM,CAAEC,WAAY,CAAEC,GAAIF,QAEzDG,MAAO,MACN,KAAD,EAcF,GAtBMrB,EAAG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,IAAatmF,GAC5BpL,EACEusB,aAAO,CACLC,SAAS,UAADrjB,OAAYhD,EAAM3D,IAAE2G,OAAG8J,SAASwJ,QACxCtW,MAAQA,EACRurF,UAAWA,EACXjlE,WAAYtmB,EAAM3D,QAGrB,CAAC2D,EAAOurF,EAAWtmF,IAEtB8G,qBAAU,WACH/L,GAAUiF,GAGfmrF,aAAY,CACVjzF,SAAU6C,EAAM3D,GAChBiG,KAAMtC,EAAMwC,WACZN,SAAUlC,EAAM2uC,mBAEjB,CAAC1pC,EAAMjF,IAENgwF,GAAiBv4B,IAAiBz3D,EAC7BkH,IAAAC,cAACwQ,KAAgB,CAACxZ,WAAS,IAGU,WAAjB,QAAzB2xF,EAAC7qF,aAAI,EAAJA,EAAM8B,WAAWkgB,eAAO,IAAA6oE,IAAI,SAE7B5oF,IAAAC,cAACkpF,KAAQ,KACPnpF,IAAAC,cAACkoF,GAAsB,CAACrvF,MAAOA,EAAOwZ,SAAO,KAKjB,OAA9BxZ,EAAMswF,oBACDppF,IAAAC,cAACopF,IAAQ,CAACn4E,GAAG,UAGlBpY,EAAMymB,cACDvf,IAAAC,cAACopF,IAAQ,CAACn4E,GAAG,UAGlB7B,GAAUvW,EAAM4a,iBAEhB1T,IAAAC,cAACqpF,KACC,CACAj6E,OAAQA,EACRk6E,YAAczwF,EACdurF,UAAWA,EACXtmE,QAAM,GAEN/d,IAAAC,cAACupF,GAAuB,CAAC1wF,MAAOA,KAMpCkH,IAAAC,cAACqpF,KACC,CACAj6E,OAAQA,EACRk6E,YAAczwF,EACdurF,UAAWA,EACXtmE,QAAM,GAEN/d,IAAAC,cAACkoF,GAAsB,CAACrvF,MAAOA","file":"static/js/42.f11fca29.chunk.js","sourcesContent":["import { createUseCase } from '~core/usecase/createUseCase';\nimport { searchInventorys, searchProducts } from '~graphql/queries';\nimport { fetchedInventories, recievedInventories } from '~redux/inventory';\nimport {\n Inventory,\n Product,\n SearchInventorysQuery,\n SearchInventorysQueryVariables,\n SearchProductsQuery,\n SearchProductsQueryVariables,\n} from '~types/api';\nimport { executeQuery } from '~utils/graphql';\n\nexport const fetchInventories = createUseCase(\n 'inventory/fetchInventories',\n async (productIds: string[], { dispatch }) => {\n dispatch(fetchedInventories());\n\n const res = await executeQuery<\n SearchInventorysQuery,\n SearchInventorysQueryVariables\n >(searchInventorys, {\n filter: {\n or: productIds.map((productId) => ({ product_id: { eq: productId } })),\n },\n limit: 1000,\n });\n\n const inventories = (res.data?.searchInventorys?.items ?? []).filter(\n (item) =>\n item?.product?.product_public_status !== '非公開' &&\n item?.productType?.published !== false &&\n item?.product?.suspended !== true &&\n item?.productType?.suspended !== true\n ) as Omit[];\n const refetchProductIds = productIds.filter(\n (productId) =>\n !inventories.some((inventory) => inventory.product_id === productId)\n );\n\n //在庫情報未登録の商品を取得\n if (refetchProductIds.length) {\n const res2 = await executeQuery<\n SearchProductsQuery,\n SearchProductsQueryVariables\n >(searchProducts, {\n filter: {\n or: refetchProductIds.map((productId) => ({ id: { eq: productId } })),\n },\n limit: 1000,\n });\n const products = (res2.data?.searchProducts?.items ?? []) as Product[];\n inventories.push(\n ...products.flatMap((product) =>\n (product.producttype?.items ?? [null])\n .filter(\n (item) =>\n product?.product_public_status !== '非公開' &&\n !product?.suspended &&\n !item?.suspended &&\n item?.published !== false\n )\n .map((type) => ({\n id: type?.id ?? product?.id,\n product_id: product?.id,\n product_type_id: type?.id,\n brand_id: product?.product_brand_id,\n sku: type?.sku ?? product?.sku ?? type?.id ?? product?.id,\n product: product,\n productType: type ?? undefined,\n inventory: type?.out_of_stock || product?.out_of_stock ? 0 : null,\n }))\n )\n );\n }\n\n dispatch(recievedInventories(inventories));\n }\n);\n","import { useCallback, useMemo } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { Product } from '~redux/brand/types';\nimport {\n clearedInventory,\n makeSelectAvailableInventoryBySku,\n makeSelectInventoriesByProduct,\n makeSelectInventoryByProduct,\n makeSelectInventoryQtyBySku,\n makeSelectIsOutOfStockByProduct,\n makeSelectIsOutOfStockByProductId,\n makeSelectIsOutOfStockBySku,\n selectIsInventoryLoading,\n} from '~redux/inventory';\nimport { fetchInventories as fetchInventoriesThunk } from '~usecases/buyer/inventory';\n\nexport const useInventory = () => {\n const dispatch = useDispatch();\n const fetchInventories = useCallback((productIds: string[]) => {\n if (!productIds.length) return;\n dispatch(fetchInventoriesThunk(productIds));\n }, []);\n const clear = useCallback(() => {\n dispatch(clearedInventory());\n }, []);\n const isLoading = useSelector(selectIsInventoryLoading);\n return {\n fetchInventories,\n clear,\n isLoading,\n };\n};\n\nexport const useSelectInventoriesByProduct = (productId: string) => {\n const selectInventories = useMemo(\n () => makeSelectInventoriesByProduct(productId),\n [productId]\n );\n return useSelector(selectInventories);\n};\n\nexport const useSelectInventoryByProduct = (productId: string) => {\n const selectInventories = useMemo(\n () => makeSelectInventoryByProduct(productId),\n [productId]\n );\n return useSelector(selectInventories);\n};\n\nexport const useSelectIsOutOfStockByProductId = (productId: string) => {\n const selector = useMemo(() => makeSelectIsOutOfStockByProductId(productId), [\n productId,\n ]);\n return useSelector(selector);\n};\n\nexport const useSelectIsOutOfStockByProduct = (product: Product) => {\n const selector = useMemo(() => makeSelectIsOutOfStockByProduct(product), [\n product,\n ]);\n return useSelector(selector);\n};\n\nexport const useSelectInventoryBySku = (\n brandId: string,\n sku?: string,\n productId?: string,\n productTypeId?: string\n) => {\n const selector = useMemo(\n () =>\n makeSelectInventoryQtyBySku(brandId, sku ?? productTypeId ?? productId!),\n [productId]\n );\n return useSelector(selector);\n};\n\nexport const useSelectIsOutOfStockBySku = (\n brandId: string,\n sku?: string,\n productId?: string,\n productTypeId?: string\n) => {\n const selector = useMemo(\n () =>\n makeSelectIsOutOfStockBySku(brandId, sku ?? productTypeId ?? productId!),\n [productId]\n );\n return useSelector(selector);\n};\n\nexport const useSelectAvailableInventoryBySku = (\n brandId: string,\n sku?: string,\n productId?: string,\n productTypeId?: string\n) => {\n const selector = useMemo(\n () =>\n makeSelectAvailableInventoryBySku(\n brandId,\n sku ?? productTypeId ?? productId!\n ),\n [productId]\n );\n return useSelector(selector);\n};\n","import { Account } from '~redux/account/actions/account';\nimport { Brand, BrandDetails } from '~redux/brand/types';\n\nexport type BrandType =\n | 'visa'\n | 'mastercard'\n | 'jcb'\n | 'amex'\n | 'diners'\n | 'discover'\n | 'unknown';\n\nconst BRAND: Record = {\n visa: 'Visa',\n mastercard: 'Mastercard',\n jcb: 'JCB',\n amex: 'American Express',\n diners: 'Diners Club',\n discover: 'Discover',\n unknown: 'Unknown',\n};\n\nexport const formatBrand = (brand: BrandType) => {\n return BRAND[brand];\n};\n\nexport const isProtectedBrand = (\n brand?: Brand | BrandDetails,\n account?: Account\n) => {\n return !brand || !account\n ? true\n : brand.exclude_zip_code?.includes(account.zip_code!);\n};\n\nexport const isProtected = (\n protectedZipCodes?: string[],\n account?: Account\n) => {\n return protectedZipCodes?.includes(account?.zip_code!);\n};\n\nexport const saveBrandIdToLocalStorage = (brandId: string): void => {\n localStorage.setItem('brandId', brandId);\n};\n\nexport const retrieveBrandIdFromLocalStorage = () =>\n localStorage.getItem('brandId');\n\nexport const deleteBrandIdFromLocalStorage = () =>\n localStorage.removeItem('brandId');\n","import { API, graphqlOperation } from 'aws-amplify';\nimport { Dispatch } from 'redux';\nimport {\n deleteFavoriteProduct,\n createFavoriteProduct,\n createFavoriteProductList,\n} from '../../../graphql/mutations';\nimport { searchFavoriteProductLists } from '../../../graphql/queries';\n\nimport { Product } from '~domain/product/Product';\n\nimport {\n addedFavoriteProduct,\n removedFavoriteProduct,\n} from '~redux/favorite/reducers/product';\nimport { FavoriteProductList } from '~redux/favoritelist/actions';\nimport {\n DeleteFavoriteProductMutation,\n DeleteFavoriteProductMutationVariables,\n} from '~types/api';\nimport { executeQuery } from '~utils/graphql';\nimport { productSaved } from '~utils/segment';\n\nexport const addFavoriteProduct = (\n account_id: string,\n list_id: string,\n product: Product\n) => {\n return async (dispatch: Dispatch): Promise => {\n const res = await API.graphql(\n graphqlOperation(createFavoriteProduct, {\n input: {\n account_id: account_id,\n favorite_list_id: list_id,\n product_id: product.id,\n },\n })\n );\n const {\n data: { createFavoriteProduct: item },\n } = res;\n\n dispatch(addedFavoriteProduct(item));\n\n productSaved({\n brand_id: item?.product?.product_brand_id,\n product_id: item?.product?.id,\n sku: item?.product?.sku,\n category: item?.product?.product_category,\n category2: item?.product?.product_subcategory,\n name: item?.product?.product_name,\n brand: item?.product?.brand?.brand_name,\n price: Math.round(\n item?.product?.product_retail_price *\n ((item?.product?.product_wholesale_rate ?? 0) / 100)\n ),\n });\n };\n};\n\nexport const addDefaultFavoriteProduct = (\n account_id: string,\n product: Product\n) => {\n const defaultListId = `${account_id}defFavList`;\n const defaultListName = 'お気に入りの商品';\n\n return async (dispatch: Dispatch): Promise => {\n const exist = await API.graphql(\n graphqlOperation(searchFavoriteProductLists, {\n filter: { account_id: { eq: account_id }, id: { eq: defaultListId } },\n })\n );\n if (!exist?.data?.searchFavoriteProductLists?.items?.length) {\n const favoriteProductListData: FavoriteProductList = {\n id: defaultListId,\n account_id: account_id,\n list_name: defaultListName,\n order: 0,\n };\n await API.graphql(\n graphqlOperation(createFavoriteProductList, {\n input: favoriteProductListData,\n })\n );\n }\n\n const res = await API.graphql(\n graphqlOperation(createFavoriteProduct, {\n input: {\n account_id: account_id,\n favorite_list_id: defaultListId,\n product_id: product.id,\n },\n })\n );\n const {\n data: { createFavoriteProduct: item },\n } = res;\n\n dispatch(addedFavoriteProduct(item));\n\n productSaved({\n brand_id: item?.product?.product_brand_id,\n product_id: item?.product?.id,\n sku: item?.product?.sku,\n category: item?.product?.product_category,\n category2: item?.product?.product_subcategory,\n name: item?.product?.product_name,\n brand: item?.product?.brand?.brand_name,\n price: Math.round(\n item?.product?.product_retail_price *\n ((item?.product?.product_wholesale_rate ?? 0) / 100)\n ),\n });\n };\n};\n\nexport const removeFavoriteProduct = (id: string) => {\n return async (dispatch: Dispatch): Promise => {\n const res = await executeQuery<\n DeleteFavoriteProductMutation,\n DeleteFavoriteProductMutationVariables\n >(deleteFavoriteProduct, {\n input: { id },\n });\n const item = res.data?.deleteFavoriteProduct;\n dispatch(\n removedFavoriteProduct({\n listId: item?.favorite_list_id!,\n productId: item?.product_id!,\n })\n );\n };\n};\n","import './styles.scss';\nimport {\n Dialog,\n DialogTitle,\n List,\n ListItem,\n ListItemText,\n} from '@material-ui/core';\nimport { FiCheck } from '@react-icons/all-files/fi/FiCheck';\nimport { FiEdit2 } from '@react-icons/all-files/fi/FiEdit2';\nimport { FiPlus } from '@react-icons/all-files/fi/FiPlus';\nimport React, { useState, useCallback, HTMLAttributes } from 'react';\nimport { useSelector } from 'react-redux';\nimport FavoriteCreateListModal from '../FavoriteListCreateModal';\nimport { Product } from '~domain/product/Product';\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\nimport {\n makeSelectFavoriteProductId,\n makeSelectFavoriteProductListIdByProduct,\n selectFavoriteProductLists,\n selectIsFavoriteProductListLoading,\n} from '~redux/favorite/reducers/product';\nimport {\n removeFavoriteProduct as removeFavoriteProductThunk,\n addFavoriteProduct as addFavoriteProductThunk,\n} from '~redux/favoriteproduct/thunk';\nimport { useThunk } from '~utils/hooks';\n\nexport type FavoriteListDialogProps = {\n product: Product;\n togglerComponent?: React.ComponentType>;\n};\n\nconst FavoriteListDialog: React.FC = ({\n product,\n togglerComponent: TogglerComponent,\n}) => {\n const user = useSelector(authUserSelector);\n const [addFavoriteProduct] = useThunk(addFavoriteProductThunk);\n const [removeFavoriteProduct] = useThunk(removeFavoriteProductThunk);\n\n const [isOpen, setIsOpen] = useState(false);\n const toggle = useCallback((event?) => {\n event?.preventDefault();\n event?.stopPropagation();\n setIsOpen((prev) => !prev);\n }, []);\n const [createBoardIsOpen, setCreateBoardIsOpen] = useState(false);\n const favoriteLists = useSelector(selectFavoriteProductLists);\n const isListLoading = useSelector(selectIsFavoriteProductListLoading);\n const savedListId = useSelector(\n makeSelectFavoriteProductListIdByProduct(product.id)\n );\n const favoriteProductId = useSelector(\n makeSelectFavoriteProductId(product.id)\n );\n\n const handleListClick = useCallback(\n (listId: string) => {\n if (favoriteProductId) {\n removeFavoriteProduct(favoriteProductId);\n }\n if (savedListId !== listId) {\n addFavoriteProduct(user?.attributes.sub!, listId, product);\n }\n toggle();\n },\n [user, savedListId, favoriteProductId]\n );\n\n const handleCreateList = useCallback(() => {\n setCreateBoardIsOpen(true);\n }, []);\n\n if (isListLoading) {\n return null;\n }\n\n return (\n <>\n {TogglerComponent && }\n {!TogglerComponent && (\n \n )}\n \n 保存するリストを選択してください\n \n {favoriteLists.map((list) => (\n handleListClick(list.listId)}\n >\n \n
\n
{list.listName}
\n {savedListId === list.listId && (\n
\n \n 保存済み\n
\n )}\n
\n
\n \n ))}\n handleCreateList()}>\n \n \n 新しいリストを作成\n \n \n
\n \n
\n \n );\n};\n\nexport default FavoriteListDialog;\n","import { useFormikContext } from 'formik';\nimport React, { FormEvent, useCallback, useMemo } from 'react';\nimport { useSelector } from 'react-redux';\nimport { cartProductSelector } from '~redux/cart/selectors';\nimport { productItemSelector } from '~redux/product/selectors';\nimport {\n useSelectAvailableInventoryBySku,\n useSelectInventoryBySku,\n useSelectIsOutOfStockBySku,\n} from '~view/hooks/inventory';\nimport FieldWithValidity from '~view/widgets/FieldWithValidity';\n\ntype InputQuantityProps = {\n name: string;\n lot: number;\n minimum: number;\n brandId: string;\n productId: string;\n productTypeId?: string;\n sku?: string;\n cart?: boolean;\n};\n\nconst InputQuantity: React.FC = ({\n name,\n lot,\n minimum,\n brandId,\n productId,\n productTypeId,\n sku,\n cart,\n}) => {\n const {\n values: { quantities },\n setFieldValue,\n } = useFormikContext<{ quantities: Record }>();\n\n const product = useSelector(productItemSelector);\n const cartProduct = useSelector(cartProductSelector);\n const isOutOfStock = useSelectIsOutOfStockBySku(\n brandId,\n sku,\n productId,\n productTypeId\n );\n const inventory = useSelectInventoryBySku(\n brandId,\n sku,\n productId,\n productTypeId\n );\n const availableInventory = useSelectAvailableInventoryBySku(\n brandId,\n sku,\n productId,\n productTypeId\n );\n const preOrder = useMemo(\n () => (product ?? cartProduct)?.product_preorder === 1,\n [product]\n );\n const limit = useMemo(() => {\n // 予約販売の場合は在庫数を無視する\n if (preOrder) {\n return 1000;\n }\n\n return Math.max((cart ? inventory : availableInventory) ?? 1000, 0);\n }, [cart, inventory, availableInventory]);\n const max = useMemo(() => limit - (limit % lot), [limit, lot]);\n\n const onBlur = useCallback(\n (value: string) => {\n const qty = Number(value);\n if (!qty || isNaN(qty)) {\n setFieldValue(`quantities.${name}`, 0);\n return;\n }\n if (qty < minimum) {\n setFieldValue(`quantities.${name}`, minimum);\n return;\n }\n const over = lot - (qty % lot);\n setFieldValue(\n `quantities.${name}`,\n Math.min(qty + (over === lot ? 0 : over), max)\n );\n },\n [name, lot, minimum, max]\n );\n\n if (!preOrder && isOutOfStock) {\n return (\n \n 売り切れ\n \n );\n }\n\n return (\n
\n \n setFieldValue(\n `quantities.${name}`,\n Math.max((quantities[name] ?? 0) - lot, 0)\n )\n }\n className=\"bg-white\"\n style={{\n border: 0,\n width: '30px',\n padding: '5px 0',\n }}\n >\n -\n \n ) =>\n onBlur(e.currentTarget.value)\n }\n className=\"bg-white\"\n style={{\n width: '60px',\n height: 'auto',\n padding: '5px',\n textAlign: 'center',\n }}\n />\n {\n setFieldValue(\n `quantities.${name}`,\n Math.min((quantities[name] ?? 0) + lot, max)\n );\n }}\n className=\"bg-white\"\n style={{\n border: 0,\n width: '30px',\n padding: '5px 0',\n }}\n >\n +\n \n
\n );\n};\n\nexport default InputQuantity;\n","import React, { useEffect } from 'react';\nimport { AuthUser } from '~redux/auth/actions/authUser';\nimport { ProductReadModel } from '~types/api';\nimport { pushViewItemListEvent } from '~utils/gtm';\nimport { getPublicImageUrl } from '~utils/image';\nimport { calculatePrice } from '~utils/price';\nimport { productListFiltered, productListViewed } from '~utils/segment';\n\nexport type SearchCategory = {\n summaryCategory?: string;\n categories: Category[];\n};\n\nexport type Category = {\n mainCategory: string;\n subCategory?: string;\n};\n\ntype ListViewLoggerProps = {\n listId?: string;\n products: ProductReadModel[];\n index: number;\n user?: AuthUser;\n searchCategory?: SearchCategory;\n category?: string;\n subCategory?: string;\n brand?: string;\n search_type?: string;\n keywords?: string[];\n tags?: string[];\n sort?: string;\n sortState?: { field: string; direction: 'desc' | 'asc' };\n filters?: { type: string; value: any }[];\n sorts?: { type: string; value: string }[];\n};\n\nconst getCategory = (searchCategory?: SearchCategory) => {\n let category: string | undefined = undefined;\n let subCategory: string | undefined = undefined;\n\n if (searchCategory) {\n if (searchCategory.summaryCategory) {\n category = searchCategory.summaryCategory;\n } else {\n if (searchCategory.categories.length > 0) {\n category = searchCategory.categories[0].mainCategory;\n subCategory = searchCategory.categories[0].subCategory;\n }\n }\n }\n\n return [category, subCategory];\n};\n\nconst ListViewLogger: React.FC = ({\n listId,\n products,\n index,\n user,\n searchCategory,\n category,\n subCategory,\n brand,\n search_type,\n keywords,\n tags,\n sort,\n sortState,\n filters,\n sorts,\n}) => {\n if (!category) {\n [category, subCategory] = getCategory(searchCategory);\n }\n\n useEffect(() => {\n pushViewItemListEvent({\n items: products.map((item, i) => ({\n item_name: item.product_name!,\n item_id: item.id!,\n price: calculatePrice(\n item.product_retail_price!,\n item.product_sale_wholesale_rate ?? item.product_wholesale_rate!\n ),\n item_brand: item.brand_name!,\n item_category: item.product_category!,\n item_category2: item.product_subcategory!,\n item_list_name: document.title,\n item_list_id: listId ?? location.pathname,\n index: index + i,\n quantity: 1,\n })),\n user,\n category,\n sub_category: subCategory,\n brand,\n search_type,\n keywords,\n tags,\n sort,\n });\n }, [products, listId]);\n\n useEffect(() => {\n const items = products.map((product, i) => ({\n brand_id: product.brand_id!,\n brand: product.brand_name!,\n category: `${product.product_category}/${product.product_subcategory}`,\n image_url: getPublicImageUrl(product.image_key),\n name: product.product_name!,\n position: index + i + 1,\n price: calculatePrice(\n product.product_retail_price!,\n product.product_sale_wholesale_rate ?? product.product_wholesale_rate!\n ),\n product_id: product.id!,\n // quantity: 1,\n sku: product.product_number!,\n url: `${document.location.protocol}//${document.location.host}/productdetail/${product.id}`,\n // variant: product.producttype?.[0]?.type_name ?? undefined,\n }));\n\n if (filters) {\n productListFiltered(\n listId ??\n (brand\n ? brand\n : subCategory\n ? `${category}/${subCategory}`\n : category ?? 'search'),\n subCategory ? `${category}/${subCategory}` : category ?? 'ALL',\n items,\n filters,\n sorts ??\n (sortState\n ? [{ type: sortState.field, value: sortState.direction }]\n : undefined)\n );\n return;\n }\n\n productListViewed(\n listId ??\n (brand\n ? brand\n : subCategory\n ? `${category}/${subCategory}`\n : category ?? 'search'),\n subCategory ? `${category}/${subCategory}` : category ?? 'ALL',\n items\n );\n }, [products, index, keywords, sortState, listId, category, subCategory]);\n\n return null;\n};\n\nexport default ListViewLogger;\n","import React, { PropsWithChildren, useEffect, useMemo } from 'react';\nimport {\n connectRefinementList,\n RefinementListProvided,\n} from 'react-instantsearch-core';\nimport { useDispatch, useSelector } from 'react-redux';\nimport InstantSearchProvider, {\n useInstantSearch,\n} from '../InstantSearchProvider';\nimport ListViewLogger from '../ListViewLogger';\nimport {\n PRODUCT_SEARCH_INDEX_BRAND,\n PRODUCT_SEARCH_INDEX_CREATED_AT_DESC,\n PRODUCT_SEARCH_INDEX_FEATURED,\n PRODUCT_SEARCH_INDEX_PRICE_ASC,\n PRODUCT_SEARCH_INDEX_PRICE_DESC,\n PRODUCT_SEARCH_INDEX_WHOLESALE_RATE_ASC,\n PRODUCT_SEARCH_INDEX_WHOLESALE_RATE_DESC,\n} from '~constants/search';\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\nimport { selectDirectContactOwners } from '~redux/contact';\nimport { RootState } from '~redux/reducer';\nimport {\n clearedProducts,\n clearedProductSearchState,\n ProductSearchSortType,\n recievedNbHits,\n recievedProducts,\n searchedProducts,\n selectProductListFilterValueStrings,\n selectProductListSortType,\n selectProductListOffset,\n initializedProductSearchList,\n selectProducts,\n selectProductListPage,\n selectProductListFilters,\n selectProductListCategory,\n selectProductListSubCategory,\n selectProductListQuery,\n ProductListState,\n selectProductListBrandId,\n selectIsProductListInitialized,\n selectProductListGroupByBrand,\n selectNewProducts,\n selectProductListRefinementAttributes,\n recievedRefinementItems,\n makeSelectProductListFiltersByAttribute,\n selectIsPreview,\n} from '~redux/search/product';\nimport { ProductReadModel } from '~types/api';\nimport { getPersonalizedProducts } from '~usecases/buyer/search/product';\nimport { deepEquals } from '~utils/compare';\nimport { useFlag } from '~view/contexts/FlagsContext';\n\nconst ProductSearchIndex: Record = {\n recommended: PRODUCT_SEARCH_INDEX_FEATURED,\n brandRecommended: PRODUCT_SEARCH_INDEX_BRAND,\n newest: PRODUCT_SEARCH_INDEX_CREATED_AT_DESC,\n highestPrice: PRODUCT_SEARCH_INDEX_PRICE_DESC,\n lowestPrice: PRODUCT_SEARCH_INDEX_PRICE_ASC,\n highestWholesaleRate: PRODUCT_SEARCH_INDEX_WHOLESALE_RATE_DESC,\n lowestWholesaleRate: PRODUCT_SEARCH_INDEX_WHOLESALE_RATE_ASC,\n};\n\nexport const useProductSearchSelector = (\n selector: (state: RootState, listId: string) => TSelected,\n listId: string,\n compare?: (a: TSelected, b: TSelected) => boolean\n) => {\n const memoizedSelector = useMemo(() => selector, []);\n return useSelector(\n (state: RootState) => memoizedSelector(state, listId),\n compare\n );\n};\n\nexport const productEquals = (a: ProductReadModel[], b: ProductReadModel[]) =>\n JSON.stringify(a.map((product) => product.id)) ===\n JSON.stringify(b.map((product) => product.id));\n\nexport const useSelectProducts = (listId: string) =>\n useProductSearchSelector(selectProducts, listId, productEquals);\n\nconst ProductSearchLog: React.FC<{ listId: string }> = React.memo(\n ({ listId }) => {\n const auth = useSelector(authUserSelector);\n const items = useSelectProducts(listId);\n const page = useProductSearchSelector(selectProductListPage, listId);\n const sort = useProductSearchSelector(selectProductListSortType, listId);\n const filters = useProductSearchSelector(\n selectProductListFilters,\n listId,\n (a, b) => JSON.stringify(a) === JSON.stringify(b)\n );\n const category = useProductSearchSelector(\n selectProductListCategory,\n listId\n );\n const subCategory = useProductSearchSelector(\n selectProductListSubCategory,\n listId\n );\n const query = useProductSearchSelector(selectProductListQuery, listId);\n\n return (\n \n values?.map((value) => ({ type, value })) ?? []\n )\n : undefined\n }\n />\n );\n }\n);\n\nconst ProductSearchResultsProvider: React.FC<{\n listId: string;\n personalize: boolean;\n}> = React.memo(({ listId, personalize, children }) => {\n const dispatch = useDispatch();\n const auth = useSelector(authUserSelector);\n const sort = useProductSearchSelector(selectProductListSortType, listId);\n const {\n hits,\n searching,\n isSearchStalled,\n searchResults,\n } = useInstantSearch();\n const productListSort = useFlag<'default' | 'conversion' | 'personalize'>(\n 'productListSort',\n 'default'\n );\n\n useEffect(() => {\n if (searching || isSearchStalled) {\n dispatch(searchedProducts(listId));\n return () => {\n dispatch(clearedProducts(listId));\n };\n }\n if (\n !auth ||\n sort !== 'recommended' ||\n !hits.length ||\n !personalize ||\n !['personalize', 'hybrid'].includes(productListSort)\n ) {\n dispatch(recievedProducts({ listId, products: hits }));\n return;\n }\n dispatch(\n getPersonalizedProducts({\n accountId: auth.attributes.sub,\n listId,\n products: hits,\n })\n );\n }, [auth, searching, isSearchStalled, productListSort, personalize]);\n\n useEffect(() => {\n if (!searchResults) {\n return;\n }\n dispatch(recievedNbHits({ listId, nbHits: searchResults.nbHits }));\n }, [searchResults?.nbHits]);\n\n return <>{children};\n});\n\nconst RefinementList = React.memo(\n connectRefinementList(\n ({\n listId,\n attribute,\n items,\n refine,\n searchForItems,\n }: PropsWithChildren<\n RefinementListProvided & { listId: string; attribute: string }\n >) => {\n const dispatch = useDispatch();\n const labels = useMemo(() => items.map((item) => item.label), [items]);\n const filters = useProductSearchSelector(\n makeSelectProductListFiltersByAttribute(attribute),\n listId,\n deepEquals\n );\n\n useEffect(() => {\n dispatch(recievedRefinementItems({ listId, attribute, items: labels }));\n }, [listId, attribute, JSON.stringify(labels)]);\n\n useEffect(() => {\n refine(filters);\n }, [filters]);\n\n return null;\n }\n )\n);\n\nconst ProductSearchListProvider: React.FC<{\n listId: string;\n personalize: boolean;\n}> = React.memo(({ listId, personalize, children }) => {\n const directOwners = useSelector(selectDirectContactOwners, deepEquals);\n const sort = useProductSearchSelector(selectProductListSortType, listId);\n const indexName = useMemo(() => ProductSearchIndex[sort ?? 'recommended'], [\n sort,\n ]);\n const productFilters = useProductSearchSelector(\n selectProductListFilterValueStrings,\n listId,\n (a, b) => JSON.stringify(a) === JSON.stringify(b)\n );\n const category = useProductSearchSelector(selectProductListCategory, listId);\n const subCategory = useProductSearchSelector(\n selectProductListSubCategory,\n listId\n );\n const brandId = useProductSearchSelector(selectProductListBrandId, listId);\n const query = useProductSearchSelector(selectProductListQuery, listId);\n const isNewProducts = useProductSearchSelector(selectNewProducts, listId);\n const isPreview = useProductSearchSelector(selectIsPreview, listId);\n const filters = useMemo(() => {\n if (isPreview) {\n return `brand_id:'${brandId}'AND suspended:false AND is_published:true OR is_limited:true${\n productFilters.length ? ` AND (${productFilters.join(') AND (')})` : ''\n } AND (product_preorder_shipping_date_timestamp > ${new Date().getTime()} OR product_preorder_shipping_date_timestamp = 0)`;\n }\n return `category_page_id:'${\n brandId\n ? `brands > ${brandId}`\n : category\n ? `products > ${category}`\n : 'products'\n }${subCategory ? ` > ${subCategory}` : ''}'${\n productFilters.length ? ` AND (${productFilters.join(') AND (')})` : ''\n } AND (sell_only_direct:false${\n directOwners?.length\n ? ` OR ${directOwners\n .map((owner) => `product_owner:'${owner}'`)\n .join(' OR ')}`\n : ''\n }) AND (product_preorder_shipping_date_timestamp > ${new Date().getTime()} OR product_preorder_shipping_date_timestamp = 0)${\n isNewProducts\n ? ` AND publishedAtTimestamp >= ${\n new Date().getTime() - 30 * 24 * 60 * 60 * 1000\n }`\n : ''\n }`;\n }, [\n category,\n subCategory,\n brandId,\n isNewProducts,\n productFilters,\n isPreview,\n ]);\n const offset = useProductSearchSelector(selectProductListOffset, listId);\n const auth = useSelector(authUserSelector);\n const attributesToRetrieve = useMemo(() => {\n const attributes = ['*'];\n if (!auth) {\n attributes.push('-product_wholesale_rate');\n attributes.push('-product_sale_wholesale_rate');\n attributes.push('-wholesale_rate');\n attributes.push('-wholesale_price');\n attributes.push('-brand_minimum_buy');\n attributes.push('-brand_additional_minimum_buy');\n attributes.push('-out_of_stock');\n }\n return attributes;\n }, [auth]);\n const groupByBrand = useProductSearchSelector(\n selectProductListGroupByBrand,\n listId\n );\n const refinementAttributes = useProductSearchSelector(\n selectProductListRefinementAttributes,\n listId\n );\n\n return (\n \n \n {children}\n \n {refinementAttributes.map((attribute) => (\n \n ))}\n \n );\n});\n\ntype ProductSearchProviderProps = {\n listId: string;\n personalize?: boolean;\n} & Partial;\n\nconst ProductSearchProvider: React.FC = React.memo(\n ({ listId, children, personalize = false, ...props }) => {\n const dispatch = useDispatch();\n const isInitialized = useProductSearchSelector(\n selectIsProductListInitialized,\n listId\n );\n\n useEffect(() => {\n dispatch(\n initializedProductSearchList({\n listId,\n ...props,\n })\n );\n return () => {\n dispatch(clearedProductSearchState(listId));\n };\n }, [listId]);\n\n if (!isInitialized) {\n return null;\n }\n\n return (\n \n {children}\n \n \n );\n }\n);\n\nexport default ProductSearchProvider;\n","import './styles.scss';\nimport React from 'react';\nimport { Col } from 'reactstrap';\n\ntype ListViewItemProps = {\n className?: string;\n col?: boolean;\n};\n\nconst ListViewItem: React.FC = ({\n className,\n children,\n col = true,\n}) => {\n if (!col) {\n return (\n
\n
{children}
\n
\n );\n }\n\n return (\n // \n \n
{children}
\n \n );\n};\n\nexport default ListViewItem;\n","import React, { useEffect } from 'react';\nimport { useSelector } from 'react-redux';\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\nimport { useInventory } from '~view/hooks/inventory';\n\ntype InventoryProviderProps = {\n productIds: string[];\n};\n\nconst InventoryProvider: React.FC = ({\n productIds,\n children,\n}) => {\n const user = useSelector(authUserSelector);\n const { fetchInventories, clear } = useInventory();\n\n useEffect(() => {\n if (!user) return;\n fetchInventories(productIds);\n }, [JSON.stringify(productIds), user]);\n\n useEffect(() => {\n return () => {\n clear();\n };\n }, []);\n\n return <>{children};\n};\n\nexport default InventoryProvider;\n","import qs from 'querystring';\nimport './styles.modules.scss';\nimport React, { useCallback, useEffect, useMemo, useState } from 'react';\nimport './styles.scss';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useHistory } from 'react-router';\nimport { Link } from 'react-router-dom';\nimport { Col, Modal, ModalHeader, Row } from 'reactstrap';\nimport LoadingContainer from '../LoadingContainer';\nimport ProductCartForm from '../ProductCartForm';\nimport { Product } from '~domain/product/Product';\nimport { clearProductCart } from '~redux/cart/actions';\nimport { cartProductSelector } from '~redux/cart/selectors';\nimport { getProductCart } from '~redux/cart/thunk';\nimport { formatCurrency } from '~utils/formatter';\n\ntype TypeSelectModalProps = {\n productId: string;\n isOpen: boolean;\n toggle: () => void;\n cart?: boolean;\n index: number;\n};\n\nconst TypeSelectModal: React.FC = ({\n productId,\n isOpen,\n toggle,\n cart,\n index,\n}) => {\n //constants\n const dispatch = useDispatch();\n const cartProduct = useSelector(cartProductSelector);\n const product = useMemo(\n () => (cartProduct ? Product.create(cartProduct) : null),\n [cartProduct]\n );\n const productOrderLot = useMemo(() => product?.product_order_lot ?? 1, [\n product,\n ]);\n const minimum = useMemo(\n () => product?.product_minimum_quantity ?? productOrderLot,\n [product, productOrderLot]\n );\n const history = useHistory();\n const is_direct = !!qs.parse(history.location.search?.split('?')?.[1])\n ?.direct;\n const [isCompleted, setIsCompleted] = useState(false);\n const [image, setImage] = useState();\n\n //callbacks\n const selectColor = useCallback(\n (color) => {\n const productType = product!.producttype.find(\n (type) => type.color === color\n );\n if (!productType?.imageKey) {\n return;\n }\n setImage(productType.imageUrl!);\n },\n [product]\n );\n\n const selectSize = useCallback(\n (size) => {\n const productType = product!.producttype.find(\n (type) => type.size === size\n );\n if (!productType?.imageKey) {\n return;\n }\n setImage(productType.imageUrl!);\n },\n [product]\n );\n\n const selectType = useCallback(\n (type) => {\n const productType = product!.producttype.find(\n (t) => t.type_name === type\n );\n if (!productType?.imageKey) {\n return;\n }\n setImage(productType.imageUrl!);\n },\n [product]\n );\n\n //effects\n useEffect(() => {\n if (!isOpen) {\n return;\n }\n dispatch(getProductCart(productId));\n return () => {\n dispatch(clearProductCart());\n };\n }, [productId, isOpen]);\n\n useEffect(() => {\n if (!product?.producttype?.length) {\n return;\n }\n if (product.producttype[0].color) {\n selectColor(product.producttype[0].color);\n }\n if (product.producttype[0].type_name) {\n selectType(product.producttype[0].type_name);\n }\n }, [product?.producttype?.length]);\n\n useEffect(() => {\n if (!product?.imageKeys?.length) {\n return;\n }\n setImage(product.imageKeys[0].imageUrl);\n }, [product?.imageKeys?.length]);\n\n useEffect(() => {\n if (!isCompleted) {\n return;\n }\n setTimeout(() => {\n setIsCompleted(false);\n toggle();\n }, 300);\n }, [isCompleted]);\n\n return (\n \n \n {!product && }\n {product && (\n <>\n \n \n \n \n \n
{product.product_name}
\n

\n {formatCurrency(product.unitPrice)}\n (上代:\n {product.is_open_price\n ? 'オープン価格'\n : formatCurrency(product.product_retail_price)}\n )\n

\n

最低発注数量:{minimum}

\n

\n \n 商品詳細\n \n

\n \n
\n setIsCompleted(true)}\n />\n \n )}\n
\n );\n};\n\nexport default TypeSelectModal;\n","import { useFormikContext } from 'formik';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport { Button, Spinner } from 'reactstrap';\n\ntype AddToCartProps = {\n cart?: boolean;\n};\n\nconst AddToCart: React.FC = ({ cart }) => {\n const [showMessage, setShowMessage] = useState(false);\n const {\n values: { quantities, color },\n setFieldValue,\n isSubmitting,\n dirty,\n } = useFormikContext<{\n quantities: Record;\n color?: string;\n }>();\n\n const totalQuantity = useMemo(\n () =>\n Object.values(quantities).reduce((prev, quantity) => {\n const qty = Number(quantity ?? 0);\n return prev + (isNaN(qty) ? 0 : qty);\n }, 0),\n [quantities]\n );\n\n useEffect(() => {\n if (!color && isSubmitting) {\n setShowMessage(true);\n return;\n }\n setTimeout(() => setShowMessage(false), 1000);\n }, [isSubmitting, color]);\n\n return (\n setFieldValue('color', undefined, false)}\n disabled={\n (!color && isSubmitting) ||\n (cart && !dirty) ||\n (!cart && !totalQuantity)\n }\n block\n >\n {!color && isSubmitting && }\n {!isSubmitting &&\n showMessage &&\n (cart ? 'カートを更新しました!' : 'カートに追加しました!')}\n {(isSubmitting || !showMessage) &&\n (cart ? 'カートを更新する' : 'すべてカートに追加する')}\n \n );\n};\n\nexport default AddToCart;\n","import './styles.modules.scss';\nimport { FiCheck } from '@react-icons/all-files/fi/FiCheck';\nimport { FiHeart } from '@react-icons/all-files/fi/FiHeart';\nimport { Form, Formik } from 'formik';\nimport React, { useCallback, useEffect, useMemo, useState } from 'react';\nimport { useSelector } from 'react-redux';\nimport { Button } from 'reactstrap';\nimport * as Yup from 'yup';\nimport FavoriteListDialog from '../FavoriteListDialog';\nimport InventoryModal from '../InventoryModal';\nimport SaleProductAlert from '../SaleProductAlert';\nimport AddToCart from './AddToCart';\nimport OptionSelector from './OptionSelector';\nimport OrderTable from './OrderTable';\nimport OrderTableCol from './OrderTable/OrderTableCol';\nimport SingleRow from './SingleRow';\nimport SubscribeButton from './SubscribeButton';\nimport TypeRows from './TypeRows';\nimport { useCart } from './hooks';\nimport { OptionRecord } from './types';\nimport { RETURNABLE_PRICE_LIMIT } from '~constants/trade';\nimport { Product } from '~domain/product/Product';\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\nimport { ProductType } from '~redux/brand/types';\nimport { buyerInfoSelector } from '~redux/buyer/selectors';\nimport { makeSelectIsSavedByProduct } from '~redux/favorite/reducers/product';\nimport { makeSelectIsOutOfStockByProduct } from '~redux/inventory';\nimport { Product as TProduct } from '~types/api';\nimport { formatCurrency } from '~utils/formatter';\nimport {\n useInventory,\n useSelectInventoriesByProduct,\n useSelectInventoryByProduct,\n} from '~view/hooks/inventory';\n\ntype ProductCartFormProps = {\n product: Product;\n productTypes?: ProductType[];\n onSelectColor?: (color: string) => void;\n onSelectSize?: (size: string) => void;\n onSelectType?: (type: string) => void;\n isDirect: boolean;\n preview?: boolean;\n cart?: boolean;\n onSubmit?: () => void;\n};\n\nconst ProductCartForm: React.FC = ({\n product,\n productTypes,\n onSelectColor,\n onSelectSize,\n onSelectType,\n isDirect,\n preview,\n cart,\n onSubmit,\n}) => {\n //constants\n const auth = useSelector(authUserSelector);\n const buyerInfo = useSelector(buyerInfoSelector);\n const { isLoading: isInventoryLoading } = useInventory();\n const inventories = useSelectInventoriesByProduct(product.id);\n const inventory = useSelectInventoryByProduct(product.id);\n const isOutOfStock = useSelector(makeSelectIsOutOfStockByProduct(product));\n const productOrderLot = useMemo(() => product.product_order_lot ?? 1, [\n product,\n ]);\n const minimum = useMemo(\n () => product.product_minimum_quantity ?? productOrderLot,\n [product, productOrderLot]\n );\n const [quantities, setQuantities] = useState<\n Record\n >({});\n const [selectedColor, setSelectedColor] = useState();\n const [selectedSize, setSelectedSize] = useState();\n const [selectedType, setSelectedType] = useState();\n const [isModalOpen, setIsModalOpen] = useState(false);\n const sellOnlyDirect = useMemo(\n () => isDirect && product.brand.sell_only_direct,\n [isDirect, product]\n );\n\n const colors: OptionRecord | undefined = useMemo(() => {\n if (!productTypes?.length) {\n return;\n }\n const colors = productTypes\n .sort((a, b) => ((a.color ?? '') > (b.color ?? '') ? 1 : -1))\n .reduce(\n (prev, type) =>\n !type.color\n ? prev\n : {\n ...prev,\n [type.color]: { imageKey: type.imageKey ?? undefined },\n },\n {} as OptionRecord\n );\n if (!Object.keys(colors).length) {\n return;\n }\n return colors;\n }, [productTypes]);\n\n const sizes: OptionRecord | undefined = useMemo(() => {\n if (!productTypes?.length) {\n return;\n }\n const sizes = productTypes\n .sort((a, b) => ((a.size ?? '') > (b.size ?? '') ? 1 : -1))\n .reduce(\n (prev, type) =>\n !type.size\n ? prev\n : {\n ...prev,\n [type.size]: { imageKey: type.imageKey ?? undefined },\n },\n {} as OptionRecord\n );\n if (!Object.keys(sizes).length) {\n return;\n }\n return sizes;\n }, [productTypes]);\n\n const options: OptionRecord | undefined = useMemo(() => {\n if (!productTypes?.length) {\n return;\n }\n const options = productTypes\n .sort((a, b) => ((a.type_name ?? '') > (b.type_name ?? '') ? 1 : -1))\n .reduce(\n (prev, type) =>\n !type.type_name\n ? prev\n : {\n ...prev,\n [type.type_name]: { imageKey: type.imageKey ?? undefined },\n },\n {} as OptionRecord\n );\n if (!Object.keys(options).length) {\n return;\n }\n return options;\n }, [productTypes]);\n\n const isSaved = useSelector(makeSelectIsSavedByProduct(product.id));\n\n //callbacks\n const handleSelectColor = useCallback(\n (color) => {\n setSelectedColor(color);\n onSelectColor?.(color);\n document\n .getElementById(`product-type-col-${product.id}-${color}`)\n ?.scrollIntoView({ behavior: 'smooth', block: 'nearest' });\n },\n [product.id]\n );\n\n const handleSelectSize = useCallback((size) => {\n setSelectedSize(size);\n onSelectSize?.(size);\n }, []);\n\n const handleSelectType = useCallback((type) => {\n setSelectedType(type);\n onSelectType?.(type);\n }, []);\n\n const { addToCart, updateCart, cartQuantities } = useCart(product.id, cart);\n const handleSubmit = useCallback(\n async (values, formik) => {\n if (!auth || !buyerInfo) {\n return;\n }\n try {\n const quantities = !values.color\n ? values.quantities\n : productTypes!\n .filter((type) => type.color === values.color)\n .reduce(\n (prev, type) => ({\n ...prev,\n [type.id]: values.quantities[type.id],\n }),\n {}\n );\n if (cart) {\n await updateCart({ product, productTypes, quantities, isDirect });\n return;\n }\n await addToCart({ product, productTypes, quantities, isDirect });\n } finally {\n formik.setSubmitting(false);\n onSubmit && onSubmit();\n }\n },\n [\n product,\n productTypes,\n auth,\n buyerInfo,\n isDirect,\n cart,\n addToCart,\n updateCart,\n onSubmit,\n ]\n );\n\n //effects\n useEffect(() => {\n if (!productTypes?.length) {\n return;\n }\n if (productTypes[0].color) {\n setSelectedColor(productTypes[0].color);\n }\n if (productTypes[0].type_name) {\n setSelectedType(productTypes[0].type_name);\n }\n }, [productTypes?.length]);\n\n useEffect(() => {\n if (cart) return;\n if (!productTypes?.length) {\n setQuantities({\n [product.id]: Math.min(\n product.out_of_stock ? 0 : minimum,\n Math.max(\n inventories[product.sku ?? product.id]?.availableInventory ??\n minimum,\n 0\n )\n ),\n });\n return;\n }\n const quantities = productTypes.reduce((prev, type) => {\n const inventory = inventories[type.sku ?? type.id];\n return type.published === false || type.suspended\n ? prev\n : {\n ...prev,\n [type.id]: Math.min(\n type.out_of_stock ? 0 : minimum,\n Math.max(inventory?.availableInventory ?? minimum, 0)\n ),\n };\n }, {} as Record);\n setQuantities(quantities);\n }, [cart, minimum, isInventoryLoading]);\n\n useEffect(() => {\n if (!cart || !cartQuantities) {\n return;\n }\n const quantities = productTypes?.length\n ? productTypes.reduce(\n (prev, type) => ({\n ...prev,\n [type.id]: cartQuantities[type.id] ?? 0,\n }),\n {}\n )\n : { [product.id]: cartQuantities[product.id] ?? 0 };\n setQuantities(quantities);\n }, [product, productTypes, cartQuantities, cart]);\n\n const validationSchema = useMemo(\n () =>\n Yup.object().shape({\n quantities: Yup.object().shape(\n productTypes?.length\n ? productTypes.reduce(\n (prev, type) => ({\n ...prev,\n [type.id]: Yup.number()\n .nullable()\n .typeError('数値を入力してください。')\n .min(0, '0以上の数値を入力してください。')\n .max(\n type.product?.product_preorder === 1\n ? 1000\n : inventories?.[type.sku ?? type.id]?.[\n cart ? 'inventory' : 'availableInventory'\n ] ?? 1000,\n `${\n inventories?.[type.sku ?? type.id]?.inventory ?? '1,000'\n }点まで注文可能です。`\n ),\n }),\n {}\n )\n : {\n [product.id]: Yup.number()\n .nullable()\n .typeError('数値を入力してください。')\n .min(0, '0以上の数値を入力してください。')\n .max(\n product?.product_preorder === 1\n ? 1000\n : inventories?.[product.sku ?? product.id]?.[\n cart ? 'inventory' : 'availableInventory'\n ] ?? 1000,\n `${\n inventories?.[product.sku ?? product.id]?.inventory ??\n '1,000'\n }点まで注文可能です。`\n ),\n }\n ),\n }),\n [cart, isInventoryLoading]\n );\n\n return (\n \n {() => (\n
\n {colors && (\n \n )}\n {sizes && !colors && (\n \n )}\n {options && (\n \n )}\n {(cart || !isOutOfStock) && (\n
\n
\n 数量\n {productOrderLot !== 1 && (\n (発注単位:{productOrderLot})\n )}\n
\n {colors && sizes && (\n \n {Object.keys(colors).map((color) => (\n \n ))}\n \n )}\n {colors && !sizes && (\n \n )}\n {!colors && sizes && (\n \n )}\n {!colors && !sizes && options && (\n \n )}\n {!colors && !sizes && !options && (\n \n )}\n
\n )}\n {!preview && (\n
\n \n {(cart || !isOutOfStock) && (\n
\n \n
\n )}\n
\n \n
\n {!sellOnlyDirect && (\n
\n (\n \n )}\n />\n
\n )}\n
\n )}\n {!product.isReturnableCategory && (\n
\n \n {product.product_subcategory}は返品できません\n \n
\n )}\n {!sellOnlyDirect &&\n product.product_retail_price >= RETURNABLE_PRICE_LIMIT && (\n
\n \n 希望小売価格(上代)が\n {formatCurrency(RETURNABLE_PRICE_LIMIT)}\n 以上の商品は返品できません\n \n
\n )}\n {!!inventory &&\n (!productTypes?.length ? (\n <>\n {inventory < 10 && (\n 残り{inventory}点\n )}\n \n ) : (\n setIsModalOpen(true)}\n >\n <>\n {inventory < 10 && (\n 残り{inventory}点\n )}\n {inventory >= 10 && 在庫あり}\n \n setIsModalOpen(false)}\n />\n \n ))}\n \n )}\n \n );\n};\n\nexport default ProductCartForm;\n","import { useCallback, useEffect, useMemo } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\nimport { Product, ProductType } from '~redux/brand/types';\nimport { buyerInfoSelector } from '~redux/buyer/selectors';\nimport { clearCartProducts } from '~redux/cart/actions';\nimport { cartProductsSelector } from '~redux/cart/selectors';\nimport {\n addCartAll,\n getCartByProduct,\n updateCart as updateCartThunk,\n} from '~redux/cart/thunk';\nimport { useThunk } from '~utils/hooks';\n\nexport const useCart = (productId: string, isCart?: boolean) => {\n const [addCart, loading, complete] = useThunk(addCartAll);\n const user = useSelector(authUserSelector);\n const buyerInfo = useSelector(buyerInfoSelector);\n const addToCart = useCallback(\n async ({\n product,\n productTypes,\n quantities,\n isDirect,\n }: {\n product: Product;\n productTypes?: ProductType[];\n quantities: Record;\n isDirect?: boolean;\n }) => {\n if (!user || !buyerInfo) {\n return;\n }\n await addCart(\n buyerInfo,\n Object.entries(quantities)\n .filter(([, quantity]) => !!quantity)\n .map(([key, quantity]) => ({\n quantity,\n owner: user.attributes.sub,\n product_id: product.id!,\n product_type_id: productTypes?.length ? key : undefined,\n product,\n is_direct: isDirect,\n brand_id: product.product_brand_id!,\n })),\n user\n );\n },\n [user, buyerInfo]\n );\n\n const cartItems = useSelector(cartProductsSelector);\n const cartQuantities = useMemo | undefined>(() => {\n if (!cartItems?.length) {\n return;\n }\n return cartItems.reduce((prev, { productType, product_id, quantity }) => {\n const key = productType?.id ?? product_id;\n return { ...prev, [key]: quantity };\n }, {});\n }, [cartItems?.length]);\n\n const [updateCart, updating] = useThunk(updateCartThunk);\n const update = useCallback(\n async ({\n product,\n productTypes,\n quantities,\n isDirect,\n }: {\n product: Product;\n productTypes?: ProductType[];\n quantities: Record;\n isDirect: boolean;\n }) => {\n if (!user || !buyerInfo || !product) {\n return;\n }\n const items = Object.entries(quantities).map(([key, quantity]) => {\n const cartItem = cartItems.find(\n (item) => item.product_id === key || item.product_type_id === key\n );\n return {\n id: cartItem?.id ?? '',\n quantity,\n owner: user.attributes.sub,\n product_id: product.id!,\n product_type_id: productTypes?.length ? key : undefined,\n product,\n is_direct: isDirect,\n brand_id: product.product_brand_id!,\n };\n });\n await updateCart(user, buyerInfo, items);\n },\n [buyerInfo, user, cartItems]\n );\n\n const dispatch = useDispatch();\n const [fetchCart] = useThunk(getCartByProduct);\n useEffect(() => {\n if (!user || !isCart) {\n return;\n }\n fetchCart(productId, user.attributes.sub);\n return () => {\n dispatch(clearCartProducts());\n };\n }, [isCart, user]);\n\n return {\n cartQuantities,\n addToCart,\n updateCart: update,\n isLoading: loading || updating,\n isComplete: complete,\n };\n};\n","import { FiChevronLeft } from '@react-icons/all-files/fi/FiChevronLeft';\nimport { FiChevronRight } from '@react-icons/all-files/fi/FiChevronRight';\nimport React, { useMemo } from 'react';\nimport Slider from 'react-slick';\nimport { BREAKPOINT_CONFIG } from '~view/contexts/breakpoint';\nimport './styles.scss';\n\nconst HorizontalSlider: React.FC<{\n xl?: number;\n lg?: number;\n md?: number;\n sm?: number;\n xs?: number;\n contentAlign?: 'center' | 'left' | 'right';\n}> = ({ xl, lg, md, sm, xs, contentAlign = 'left', children }) => {\n const childCount = React.Children.count(children);\n const settings = useMemo(\n () => ({\n infinite: childCount > (xl ?? 5),\n speed: 500,\n slidesToShow: xl ?? 5,\n slidesToScroll: xl ?? 5,\n initialSlide: 0,\n nextArrow: ,\n prevArrow: ,\n responsive: [\n {\n breakpoint: BREAKPOINT_CONFIG.xl,\n settings: {\n infinite: childCount > (lg ?? 4),\n slidesToShow: lg ?? 4,\n slidesToScroll: lg ?? 4,\n },\n },\n {\n breakpoint: BREAKPOINT_CONFIG.lg,\n settings: {\n infinite: childCount > (md ?? 3),\n slidesToShow: md ?? 3,\n slidesToScroll: md ?? 3,\n },\n },\n {\n breakpoint: BREAKPOINT_CONFIG.md,\n settings: {\n infinite: false,\n slidesToShow: sm ?? 2,\n slidesToScroll: sm ?? 2,\n },\n },\n {\n breakpoint: BREAKPOINT_CONFIG.sm,\n settings: {\n infinite: false,\n slidesToShow: xs ?? 2,\n slidesToScroll: xs ?? 2,\n },\n },\n ],\n }),\n [xl, lg, md, sm, xs, childCount]\n );\n return (\n \n {children}\n \n );\n};\n\nexport default HorizontalSlider;\n","import './styles.modules.scss';\nimport qs from 'querystring';\nimport React, { useCallback, useMemo, useState } from 'react';\nimport { Link } from 'react-router-dom';\nimport { Col, Row } from 'reactstrap';\nimport ProductCartForm from '../../ProductCartForm';\nimport { Product } from '~domain/product/Product';\nimport { Product as TProduct, ProductType } from '~redux/brand/types';\nimport { formatCurrency } from '~utils/formatter';\nimport { getPublicImageUrl } from '~utils/image';\nimport ProductDetailModal from '~view/widgets/ProductDetailModal';\n\ntype ProductDetailViewItemProps = {\n product: TProduct;\n productTypes?: ProductType[];\n index: number;\n preview?: boolean;\n};\n\nconst ProductDetailViewItem: React.FC = ({\n product: productJson,\n productTypes,\n preview,\n}) => {\n const product = useMemo(() => Product.create(productJson), [productJson]);\n const selectColor = useCallback(\n (color) => {\n const productType = productTypes?.find((type) => type.color === color);\n if (!productType?.imageKey) {\n return;\n }\n },\n [productTypes]\n );\n\n const selectSize = useCallback(\n (size) => {\n const productType = productTypes?.find((type) => type.size === size);\n if (!productType?.imageKey) {\n return;\n }\n },\n [productTypes]\n );\n\n const selectType = useCallback((type) => {\n const productType = productTypes?.find((t) => t.type_name === type);\n if (!productType?.imageKey) {\n return;\n }\n }, []);\n\n const is_direct = !!qs.parse(location.search?.split('?')?.[1])?.direct;\n\n const [image, setImage] = useState();\n\n const [isShowDetail, setIsShowDetail] = useState(false);\n\n return (\n \n \n \n \n {\n e.currentTarget.src =\n 'https://placehold.jp/500x500.png?text=No image';\n }}\n className=\"border bg-black-50\"\n style={{\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n objectFit: 'contain',\n }}\n loading=\"lazy\"\n alt={product.product_name}\n />\n \n \n
\n {product.imageKeys?.map(({ imageKey }) => (\n setImage(imageKey)}\n >\n {\n e.currentTarget.src =\n 'https://placehold.jp/60x60.png?text=No image';\n }}\n loading=\"lazy\"\n />\n
\n ))}\n \n {/*
{product.product_content}
*/}\n \n \n \n

{product.product_name}

\n \n

\n

{formatCurrency(product.unitPrice)}
\n (\n \n 希望小売価格:\n {product.is_open_price\n ? 'オープン価格'\n : formatCurrency(product.product_retail_price)}\n \n {!product.is_open_price && (\n \n 、 掛け率:\n {product.productSaleWholesaleRate ? (\n <>\n \n {product.productSaleWholesaleRate}%\n \n  \n {product.productWholesaleRate}%\n \n ) : (\n <>{product.productWholesaleRate}%\n )}\n \n )}\n )\n

\n {product.product_preorder != 1 ? (\n

\n 発送予定日:\n {product.product_estimated_ship_date_min}〜\n {product.product_estimated_ship_date_max}\n 営業日で発送予定\n

\n ) : (\n

\n 発送予定日:\n {product.product_preorder_shipping_date}\n に発送予定\n

\n )}\n

\n 品番:{product.product_number}\n

\n

\n setIsShowDetail(true)}\n >\n 詳細を表示\n \n

\n {isShowDetail && (\n setIsShowDetail(false)}\n />\n )}\n \n \n
\n );\n};\n\nexport default ProductDetailViewItem;\n","/* eslint-disable import/order */\n/* eslint-disable import/no-unresolved */\nimport cx from 'classnames';\nimport React, {\n MouseEventHandler,\n useCallback,\n useEffect,\n useMemo,\n useState,\n} from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useHistory } from 'react-router';\nimport { Link } from 'react-router-dom';\nimport { Spinner, UncontrolledTooltip } from 'reactstrap';\nimport ListViewItem from '../../ListViewItem';\nimport TypeSelectModal from '../../TypeSelectModal';\nimport { Product } from '~domain/product/Product';\nimport { accountSelector } from '~redux/account/selectors/account';\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\nimport { Brand, Product as TProduct, ProductType } from '~redux/brand/types';\nimport { buyerInfoSelector } from '~redux/buyer/selectors';\nimport { addCart as addCartThunk } from '~redux/cart/thunk';\nimport {\n addDefaultFavoriteProduct as addDefaultFavoriteProductThunk,\n removeFavoriteProduct as removeFavoriteProductThunk,\n} from '~redux/favoriteproduct/thunk';\nimport { formatCurrency } from '~utils/formatter';\nimport { useThunk } from '~utils/hooks';\nimport './styles.scss';\nimport { pushAddToCartEvent, pushSelectItemEvent } from '~utils/gtm';\nimport { isProtectedBrand } from '~utils/brand';\nimport qs from 'querystring';\nimport { productClicked } from '~utils/segment';\nimport { signup } from '~redux/auth/reducers/signup';\nimport { getPublicImageUrl } from '~utils/image';\nimport {\n useSelectInventoryByProduct,\n useSelectIsOutOfStockByProduct,\n} from '~view/hooks/inventory';\nimport FavoriteListDialog from '~view/widgets/FavoriteListDialog';\nimport { Button, Chip } from '@material-ui/core';\nimport { makeSelectFavoriteProductId } from '~redux/favorite/reducers/product';\nimport { FiShoppingCart } from '@react-icons/all-files/fi/FiShoppingCart';\n\ntype ItemProps = {\n product: TProduct;\n productTypes?: ProductType[];\n border?: boolean;\n index: number;\n col?: boolean;\n showBrand?: boolean;\n unAuth?: boolean;\n isLongListView?: boolean;\n hideBadge?: boolean;\n image?: string;\n moveFavoriteList?: boolean;\n};\n\nconst SEASON_LABEL: Record = {\n AW: 'A/W',\n SS: 'S/S',\n};\n\ntype ButtonAction = 'cart' | 'option' | 'collection';\nconst BUTTON_ACTION_LABEL: Record = {\n cart: 'カートに追加',\n option: 'サイズなどを見る',\n collection: 'コレクションを見る',\n};\n\nconst Item: React.FC = ({\n product: productJson,\n productTypes,\n border,\n index,\n col = true,\n showBrand = true,\n unAuth,\n isLongListView = false,\n hideBadge,\n image,\n moveFavoriteList,\n}) => {\n const dispatch = useDispatch();\n const user = useSelector(authUserSelector);\n const account = useSelector(accountSelector)!;\n const buyerInfo = useSelector(buyerInfoSelector)!;\n const history = useHistory();\n const is_direct = !!qs.parse(history.location.search?.split('?')?.[1])\n ?.direct;\n const [isModalOpen, setIsModalOpen] = useState(false);\n const [addCart, loading, complete] = useThunk(addCartThunk);\n const product = useMemo(() => Product.create(productJson), [productJson]);\n const productUrl = useMemo(() => {\n const url = new URL(location.href);\n url.searchParams.delete('page');\n return `/productdetail/${encodeURIComponent(product.id)}/${url.search}`;\n }, [product.id]);\n const brandUrl = useMemo(() => {\n const url = new URL(location.href);\n url.searchParams.delete('page');\n return `/brand/${product.product_brand_id}${url.search}`;\n }, [product.product_brand_id]);\n const inventory = useSelectInventoryByProduct(product.id);\n const outOfStock = useSelectIsOutOfStockByProduct(product);\n // 予約販売は売り切れにしない\n const isOutOfStock = useMemo(\n () => product.product_preorder !== 1 && outOfStock,\n [product.product_preorder, outOfStock]\n );\n\n const [addDefaultFavoriteProduct, addLoading] = useThunk(\n addDefaultFavoriteProductThunk\n );\n const [removeFavoriteProduct, removeLoading] = useThunk(\n removeFavoriteProductThunk\n );\n\n const handleClick = useCallback(\n (e) => {\n if (!user && !unAuth && !is_direct) {\n e.preventDefault();\n e.stopPropagation();\n }\n\n productClicked({\n brand: product.brand.brand_name,\n brand_id: product.product_brand_id,\n category: product.product_category,\n category2: product.product_subcategory,\n image_url: product.imageUrl,\n name: product.product_name,\n position: index + 1,\n price: product.unitPrice,\n product_id: product.id,\n sku: product.product_number,\n url: `${document.location.protocol}//${document.location.host}/productdetail/${product.id}`,\n });\n\n if (!user && !unAuth && !is_direct) {\n dispatch(\n signup({\n nextPath: productUrl,\n referralId: is_direct ? product.product_brand_id : undefined,\n })\n );\n return;\n }\n },\n [user, product, index, history, productUrl, is_direct, unAuth]\n );\n\n const handleAddToCart: React.MouseEventHandler = useCallback(\n (event) => {\n event.preventDefault();\n event.stopPropagation();\n if (!product || !user) {\n return;\n }\n productClicked({\n brand: product.brand.brand_name,\n brand_id: product.product_brand_id,\n category: product.product_category,\n category2: product.product_subcategory,\n image_url: product.imageUrl,\n name: product.product_name,\n position: index + 1,\n price: product.unitPrice,\n product_id: product.id,\n quantity: 1,\n sku: product.product_number,\n url: `${document.location.protocol}//${document.location.host}/productdetail/${product.id}`,\n });\n if (product?.brand?.is_sale_brand) {\n history.push(productUrl);\n } else if (productTypes?.length) {\n setIsModalOpen(true);\n } else {\n addToCart(\n Math.max(\n product.product_minimum_quantity ?? 1,\n product.product_order_lot ?? 1\n )\n );\n }\n pushSelectItemEvent(\n [\n {\n item_name: product.product_name,\n item_id: product.id,\n price: product.unitPrice,\n item_brand: product.brand.brand_name,\n item_category: product.product_category,\n item_category2: product.product_subcategory,\n item_list_name: document.title,\n item_list_id: document.location.pathname,\n index,\n quantity: 1,\n },\n ],\n user\n );\n },\n [product, productTypes, user]\n );\n\n const addToCart = useCallback(\n (quantity: number) => {\n if (!product || !user) {\n return;\n }\n addCart(buyerInfo, {\n product,\n product_id: product.id,\n quantity,\n owner: user.attributes.sub,\n brand_id: product.product_brand_id,\n is_direct,\n });\n pushAddToCartEvent(\n [\n {\n item_name: product.product_name,\n item_id: product.id,\n price: product.unitPrice,\n item_brand: product.brand.brand_name,\n item_category: product.product_category,\n item_category2: product.product_subcategory,\n item_list_name: document.title,\n item_list_id: document.location.pathname,\n index,\n quantity,\n },\n ],\n user\n );\n },\n [product, user]\n );\n\n const buttonAction = useMemo(() => {\n return product?.brand?.is_sale_brand\n ? 'collection'\n : productTypes?.length\n ? 'option'\n : 'cart';\n }, [product?.brand?.is_sale_brand, productTypes?.length]);\n const [message, setMessage] = useState(BUTTON_ACTION_LABEL[buttonAction]);\n\n useEffect(() => {\n if (loading) {\n setMessage(BUTTON_ACTION_LABEL[buttonAction]);\n return;\n }\n if (complete) {\n setMessage('追加しました!');\n setTimeout(() => setMessage(BUTTON_ACTION_LABEL[buttonAction]), 1000);\n return;\n }\n if (isOutOfStock && buttonAction === 'cart') {\n setMessage('売り切れ');\n return;\n }\n setMessage(BUTTON_ACTION_LABEL[buttonAction]);\n }, [loading, complete, buttonAction, isOutOfStock]);\n\n const isProtected = useMemo(\n () =>\n user?.attributes.profile === 'buyer' &&\n account &&\n isProtectedBrand(product.brand as Brand, account),\n [product, account, user]\n );\n\n const isNewItem = useMemo(() => {\n const dt = new Date();\n const newItemDueDt = new Date();\n newItemDueDt.setDate(newItemDueDt.getDate() - 30);\n if (!product.publishedAt) return;\n const productCreated: Date = new Date(product.publishedAt);\n return newItemDueDt <= productCreated && productCreated <= dt;\n }, [product]);\n\n const [isFavoritHover, setFavoriteHover] = useState(false);\n\n const favoriteProductId = useSelector(\n makeSelectFavoriteProductId(product.id)\n );\n\n const handleFavoriteAdd: React.MouseEventHandler = useCallback(\n async (event) => {\n event.preventDefault();\n event.stopPropagation();\n if (!product || !user) {\n return;\n }\n if (!favoriteProductId) {\n await addDefaultFavoriteProduct(account.id, product);\n return;\n }\n removeFavoriteProduct(favoriteProductId);\n },\n [product, favoriteProductId, user]\n );\n\n return (\n \n {moveFavoriteList && (\n
\n \n
\n )}\n (!isFavoritHover ? handleClick(e) : null)}\n title={product.product_name}\n to={productUrl}\n >\n \n {user && (\n setFavoriteHover(true)}\n onMouseLeave={() => setFavoriteHover(false)}\n // @ts-ignore\n disabled={addLoading || removeLoading}\n >\n \n \n )}\n \n {isOutOfStock && (\n \n \n 売り切れ\n

\n \n )}\n \n \n
\n
\n {isNewItem && !hideBadge && (\n \n )}\n {product.product_preorder === 1 && (\n \n )}\n {(!!product.product_year || product.product_season) && (\n \n )}\n
\n
{product.product_name}
\n
\n
\n {user && !isProtected ? (\n <>\n
\n
\n {!!product.productSaleWholesaleRate && (\n \n {formatCurrency(product.originalUnitPrice)}\n \n )}\n \n {formatCurrency(product.unitPrice)}(\n {product.productSaleWholesaleRate ??\n product.productWholesaleRate}\n %)\n \n
\n {!product.is_open_price && (\n \n 上代 {formatCurrency(product.product_retail_price)}\n \n )}\n {product.is_open_price && (\n オープン価格\n )}\n
\n {!showBrand && (\n
\n \n 発注単位:{product.product_order_lot ?? 1}\n \n {!!inventory && inventory < 10 && (\n \n 残り{inventory}点\n \n )}\n
\n )}\n {user?.attributes.profile === 'buyer' && !isProtected && (\n
\n \n {loading && }\n {!loading && buttonAction === 'cart' && (\n \n )}\n {message}\n \n
\n )}\n \n ) : (\n \n \n 希望小売価格:{formatCurrency(product.product_retail_price)}\n \n \n \n バイヤー登録して卸価格を表示\n \n \n )}\n
\n \n \n {showBrand && (\n
\n \n {product.brand.brand_name}\n \n {user && !isProtected && (\n
\n 最小発注金額:\n {product.brand.brand_minimum_buy\n ? formatCurrency(product.brand.brand_minimum_buy)\n : 'なし'}\n
\n )}\n
\n )}\n
{product.product_content}
\n {isModalOpen && (\n setIsModalOpen((prev) => !prev)}\n index={index}\n />\n )}\n \n );\n};\n\ntype ProductListViewItemProps = {\n product?: TProduct;\n productTypes?: ProductType[];\n border?: boolean;\n index?: number;\n col?: boolean;\n showBrand?: boolean;\n unAuth?: boolean;\n isLongListView?: boolean;\n hideBadge?: boolean;\n};\n\nconst ProductListViewItem: React.FC = ({\n product,\n border,\n col = true,\n isLongListView = false,\n index,\n showBrand = true,\n ...props\n}) => {\n if (!product) {\n return (\n \n
\n \n
\n
\n
\n {showBrand && (\n
\n
\n
\n
\n )}\n \n );\n }\n return (\n \n );\n};\n\nexport default ProductListViewItem;\n","/* eslint-disable import/order */\n/* eslint-disable import/no-unresolved */\nimport cx from 'classnames';\nimport React, {\n MouseEventHandler,\n useCallback,\n useEffect,\n useMemo,\n useState,\n} from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useHistory } from 'react-router';\nimport { Link } from 'react-router-dom';\nimport { Spinner, UncontrolledTooltip } from 'reactstrap';\nimport ListViewItem from '../../ListViewItem';\nimport TypeSelectModal from '../../TypeSelectModal';\nimport { Product } from '~domain/product/Product';\nimport { accountSelector } from '~redux/account/selectors/account';\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\nimport { Brand, Product as TProduct, ProductType } from '~redux/brand/types';\nimport { buyerInfoSelector } from '~redux/buyer/selectors';\nimport { addCart as addCartThunk } from '~redux/cart/thunk';\nimport {\n addDefaultFavoriteProduct as addDefaultFavoriteProductThunk,\n removeFavoriteProduct as removeFavoriteProductThunk,\n} from '~redux/favoriteproduct/thunk';\nimport { formatCurrency } from '~utils/formatter';\nimport { useThunk } from '~utils/hooks';\nimport './styles.scss';\nimport { pushAddToCartEvent, pushSelectItemEvent } from '~utils/gtm';\nimport { isProtectedBrand } from '~utils/brand';\nimport qs from 'querystring';\nimport { productClicked } from '~utils/segment';\nimport { signup } from '~redux/auth/reducers/signup';\nimport { getPublicImageUrl } from '~utils/image';\nimport {\n useSelectInventoryByProduct,\n useSelectIsOutOfStockByProduct,\n} from '~view/hooks/inventory';\nimport FavoriteListDialog from '~view/widgets/FavoriteListDialog';\nimport { Button, Chip } from '@material-ui/core';\nimport { makeSelectFavoriteProductId } from '~redux/favorite/reducers/product';\nimport { FiShoppingCart } from '@react-icons/all-files/fi/FiShoppingCart';\n\ntype ItemProps = {\n product: TProduct;\n productTypes?: ProductType[];\n border?: boolean;\n index: number;\n col?: boolean;\n showBrand?: boolean;\n unAuth?: boolean;\n isLongListView?: boolean;\n hideBadge?: boolean;\n image?: string;\n moveFavoriteList?: boolean;\n};\n\nconst SEASON_LABEL: Record = {\n AW: 'A/W',\n SS: 'S/S',\n};\n\ntype ButtonAction = 'cart' | 'option' | 'collection';\nconst BUTTON_ACTION_LABEL: Record = {\n cart: 'カートに追加',\n option: 'サイズなどを見る',\n collection: 'コレクションを見る',\n};\n\nconst Item: React.FC = ({\n product: productJson,\n productTypes,\n border,\n index,\n col = true,\n showBrand = true,\n unAuth,\n isLongListView = false,\n hideBadge,\n image,\n moveFavoriteList,\n}) => {\n const dispatch = useDispatch();\n const user = useSelector(authUserSelector);\n const account = useSelector(accountSelector)!;\n const buyerInfo = useSelector(buyerInfoSelector)!;\n const history = useHistory();\n const is_direct = !!qs.parse(history.location.search?.split('?')?.[1])\n ?.direct;\n const [isModalOpen, setIsModalOpen] = useState(false);\n const [addCart, loading, complete] = useThunk(addCartThunk);\n const product = useMemo(() => Product.create(productJson), [productJson]);\n const productUrl = useMemo(() => {\n const url = new URL(location.href);\n url.searchParams.delete('page');\n return `/productdetail/${encodeURIComponent(product.id)}/${url.search}`;\n }, [product.id]);\n const brandUrl = useMemo(() => {\n const url = new URL(location.href);\n url.searchParams.delete('page');\n return `/brand/${product.product_brand_id}${url.search}`;\n }, [product.product_brand_id]);\n const inventory = useSelectInventoryByProduct(product.id);\n const outOfStock = useSelectIsOutOfStockByProduct(product);\n // 予約販売は売り切れにしない\n const isOutOfStock = useMemo(\n () => product.product_preorder !== 1 && outOfStock,\n [product.product_preorder, outOfStock]\n );\n\n const [addDefaultFavoriteProduct, addLoading] = useThunk(\n addDefaultFavoriteProductThunk\n );\n const [removeFavoriteProduct, removeLoading] = useThunk(\n removeFavoriteProductThunk\n );\n\n const handleClick = useCallback(\n (e) => {\n if (!user && !unAuth && !is_direct) {\n e.preventDefault();\n e.stopPropagation();\n }\n\n productClicked({\n brand: product.brand.brand_name,\n brand_id: product.product_brand_id,\n category: product.product_category,\n category2: product.product_subcategory,\n image_url: product.imageUrl,\n name: product.product_name,\n position: index + 1,\n price: product.unitPrice,\n product_id: product.id,\n sku: product.product_number,\n url: `${document.location.protocol}//${document.location.host}/productdetail/${product.id}`,\n });\n\n if (!user && !unAuth && !is_direct) {\n dispatch(\n signup({\n nextPath: productUrl,\n referralId: is_direct ? product.product_brand_id : undefined,\n })\n );\n return;\n }\n },\n [user, product, index, history, productUrl, is_direct, unAuth]\n );\n\n const handleAddToCart: React.MouseEventHandler = useCallback(\n (event) => {\n event.preventDefault();\n event.stopPropagation();\n if (!product || !user) {\n return;\n }\n productClicked({\n brand: product.brand.brand_name,\n brand_id: product.product_brand_id,\n category: product.product_category,\n category2: product.product_subcategory,\n image_url: product.imageUrl,\n name: product.product_name,\n position: index + 1,\n price: product.unitPrice,\n product_id: product.id,\n quantity: 1,\n sku: product.product_number,\n url: `${document.location.protocol}//${document.location.host}/productdetail/${product.id}`,\n });\n if (product?.brand?.is_sale_brand) {\n history.push(productUrl);\n } else if (productTypes?.length) {\n setIsModalOpen(true);\n } else {\n addToCart(\n Math.max(\n product.product_minimum_quantity ?? 1,\n product.product_order_lot ?? 1\n )\n );\n }\n pushSelectItemEvent(\n [\n {\n item_name: product.product_name,\n item_id: product.id,\n price: product.unitPrice,\n item_brand: product.brand.brand_name,\n item_category: product.product_category,\n item_category2: product.product_subcategory,\n item_list_name: document.title,\n item_list_id: document.location.pathname,\n index,\n quantity: 1,\n },\n ],\n user\n );\n },\n [product, productTypes, user]\n );\n\n const addToCart = useCallback(\n (quantity: number) => {\n if (!product || !user) {\n return;\n }\n addCart(buyerInfo, {\n product,\n product_id: product.id,\n quantity,\n owner: user.attributes.sub,\n brand_id: product.product_brand_id,\n is_direct,\n });\n pushAddToCartEvent(\n [\n {\n item_name: product.product_name,\n item_id: product.id,\n price: product.unitPrice,\n item_brand: product.brand.brand_name,\n item_category: product.product_category,\n item_category2: product.product_subcategory,\n item_list_name: document.title,\n item_list_id: document.location.pathname,\n index,\n quantity,\n },\n ],\n user\n );\n },\n [product, user]\n );\n\n const buttonAction = useMemo(() => {\n return product?.brand?.is_sale_brand\n ? 'collection'\n : productTypes?.length\n ? 'option'\n : 'cart';\n }, [product?.brand?.is_sale_brand, productTypes?.length]);\n const [message, setMessage] = useState(BUTTON_ACTION_LABEL[buttonAction]);\n\n useEffect(() => {\n if (loading) {\n setMessage(BUTTON_ACTION_LABEL[buttonAction]);\n return;\n }\n if (complete) {\n setMessage('追加しました!');\n setTimeout(() => setMessage(BUTTON_ACTION_LABEL[buttonAction]), 1000);\n return;\n }\n if (isOutOfStock && buttonAction === 'cart') {\n setMessage('売り切れ');\n return;\n }\n setMessage(BUTTON_ACTION_LABEL[buttonAction]);\n }, [loading, complete, buttonAction, isOutOfStock]);\n\n const isProtected = useMemo(\n () =>\n user?.attributes.profile === 'buyer' &&\n account &&\n isProtectedBrand(product.brand as Brand, account),\n [product, account, user]\n );\n\n const isNewItem = useMemo(() => {\n const dt = new Date();\n const newItemDueDt = new Date();\n newItemDueDt.setDate(newItemDueDt.getDate() - 30);\n if (!product.publishedAt) return;\n const productCreated: Date = new Date(product.publishedAt);\n return newItemDueDt <= productCreated && productCreated <= dt;\n }, [product]);\n\n const [isHover, setHover] = useState(false);\n const [isFavoritHover, setFavoriteHover] = useState(false);\n\n const favoriteProductId = useSelector(\n makeSelectFavoriteProductId(product.id)\n );\n\n const handleFavoriteAdd: React.MouseEventHandler = useCallback(\n async (event) => {\n event.preventDefault();\n event.stopPropagation();\n if (!product || !user) {\n return;\n }\n if (!favoriteProductId) {\n await addDefaultFavoriteProduct(account.id, product);\n return;\n }\n removeFavoriteProduct(favoriteProductId);\n },\n [product, favoriteProductId, user]\n );\n\n return (\n \n {moveFavoriteList && (\n
\n \n
\n )}\n (!isFavoritHover ? handleClick(e) : null)}\n title={product.product_name}\n to={productUrl}\n onMouseEnter={() => setHover(true)}\n onMouseLeave={() => setHover(false)}\n >\n \n {user && (\n setFavoriteHover(true)}\n onMouseLeave={() => setFavoriteHover(false)}\n // @ts-ignore\n disabled={addLoading || removeLoading}\n >\n \n \n )}\n \n {isOutOfStock && (\n \n \n 売り切れ\n

\n
\n )}\n {isHover && user?.attributes.profile === 'buyer' && !isProtected && (\n \n \n {loading && }\n {!loading && buttonAction === 'cart' && (\n \n )}\n {message}\n \n
\n )}\n
\n
\n
\n
\n {isNewItem && New}\n {/* {product.product_preorder === 1 && (\n \n )}\n {(!!product.product_year || product.product_season) && (\n \n )} */}\n
\n {showBrand && (\n \n {product.brand.brand_name}\n \n )}\n
{product.product_name}
\n
\n
\n {user && !isProtected ? (\n <>\n
\n \n {!!product.productSaleWholesaleRate && (\n \n {formatCurrency(product.originalUnitPrice)}\n \n )}\n \n {formatCurrency(product.unitPrice)}\n {!product.is_open_price &&\n `(${\n product.productSaleWholesaleRate ??\n product.productWholesaleRate\n }\n %)`}\n \n \n {!product.is_open_price && (\n \n 上代 {formatCurrency(product.product_retail_price)}\n \n )}\n {product.is_open_price && (\n オープン価格\n )}\n
\n {!showBrand && (\n
\n \n 発注単位:{product.product_order_lot ?? 1}\n \n {!!inventory && inventory < 10 && (\n \n 残り{inventory}点\n \n )}\n
\n )}\n \n ) : (\n \n \n 希望小売価格:{formatCurrency(product.product_retail_price)}\n \n \n \n バイヤー登録して卸価格を表示\n \n \n )}\n
\n
\n \n
{product.product_content}
\n {isModalOpen && (\n setIsModalOpen((prev) => !prev)}\n index={index}\n />\n )}\n \n );\n};\n\ntype ProductListViewItemProps = {\n product?: TProduct;\n productTypes?: ProductType[];\n border?: boolean;\n index?: number;\n col?: boolean;\n showBrand?: boolean;\n unAuth?: boolean;\n isLongListView?: boolean;\n hideBadge?: boolean;\n};\n\nconst ProductListViewSmallItem: React.FC = ({\n product,\n border,\n col = true,\n isLongListView = false,\n index,\n showBrand = true,\n ...props\n}) => {\n if (!product) {\n return (\n \n
\n \n
\n
\n
\n {showBrand && (\n
\n
\n
\n
\n )}\n \n );\n }\n return (\n \n );\n};\n\nexport default ProductListViewSmallItem;\n","import React from 'react';\nimport DetailViewItem from './DetailViewItem';\nimport GridViewItem from './GridViewItem';\nimport GridViewItemSmall from './GridViewItemSmall';\nimport { Product as TProduct, ProductType } from '~redux/brand/types';\n\ntype ProductListViewItemProps = {\n product?: TProduct;\n productTypes?: ProductType[];\n border?: boolean;\n index?: number;\n col?: boolean;\n showBrand?: boolean;\n unAuth?: boolean;\n isLongListView?: boolean;\n hideBadge?: boolean;\n layout?: 'grid' | 'detail';\n preview?: boolean;\n image?: string;\n moveFavoriteList?: boolean;\n};\n\nconst ProductListViewItem: React.FC = ({\n layout = 'grid',\n product,\n index,\n ...props\n}) => {\n if (!product) {\n return ;\n }\n\n if (!product.brand) {\n return null;\n }\n\n if (layout === 'detail') {\n return ;\n }\n\n return ;\n};\n\nexport default ProductListViewItem;\n","import './styles.scss';\nimport { Select } from 'antd';\nimport TextArea from 'antd/lib/input/TextArea';\nimport cx from 'classnames';\nimport { ErrorMessage, useField, useFormikContext } from 'formik';\nimport React, { HTMLAttributes, useEffect } from 'react';\nimport { Input } from 'reactstrap';\nimport styles from './styles.modules.scss';\n\ntype FieldComponentWithProps<\n T extends React.ComponentType\n> = T extends React.ComponentType ? P : never;\n\ntype FieldType = typeof Input | typeof TextArea | typeof Select | 'input';\n\ntype FieldProps = Omit<\n T extends React.ComponentType\n ? FieldComponentWithProps\n : HTMLAttributes,\n 'onFocus'\n> & {\n component?: T;\n label?: string;\n name: string;\n className?: string;\n defaultValue?: any;\n hidden?: boolean;\n};\n\nconst Field = ({\n component: Component = 'input',\n label,\n name,\n defaultValue,\n className,\n hidden,\n ...restProps\n}: FieldProps) => {\n const type =\n (restProps as any).type === 'number' ||\n (restProps as any).type === 'checkbox'\n ? (restProps as any).type\n : undefined;\n const { setFieldValue } = useFormikContext();\n const [field, meta] = useField({\n name,\n type,\n value:\n (restProps as any).type === 'checkbox'\n ? (restProps as any).value\n : undefined,\n });\n const hiddenStyleName = cx({\n hidden,\n });\n\n useEffect(() => {\n if (defaultValue) {\n setFieldValue(name, defaultValue);\n }\n }, []);\n\n return (\n <>\n {label && (\n \n )}\n {\n if (!e?.persist) {\n setFieldValue(name, e);\n return;\n }\n\n field.onChange(e);\n }}\n onBlur={(e: any) => {\n if (!e?.persist) {\n setFieldValue(name, e);\n return;\n }\n\n field.onBlur(e);\n }}\n />\n \n \n );\n};\n\nexport default Field;\n","import React from 'react';\n\nconst Skeleton: React.FC<{\n width?: number;\n height?: number;\n className?: string;\n}> = ({ width, height = 20, className }) => (\n
\n);\n\nexport default Skeleton;\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.canUseDOM = exports.slidesOnLeft = exports.slidesOnRight = exports.siblingDirection = exports.getTotalSlides = exports.getPostClones = exports.getPreClones = exports.getTrackLeft = exports.getTrackAnimateCSS = exports.getTrackCSS = exports.checkSpecKeys = exports.getSlideCount = exports.checkNavigable = exports.getNavigableIndexes = exports.swipeEnd = exports.swipeMove = exports.swipeStart = exports.keyHandler = exports.changeSlide = exports.slideHandler = exports.initializedState = exports.extractObject = exports.canGoNext = exports.getSwipeDirection = exports.getHeight = exports.getWidth = exports.lazySlidesOnRight = exports.lazySlidesOnLeft = exports.lazyEndIndex = exports.lazyStartIndex = exports.getRequiredLazySlides = exports.getOnDemandLazySlides = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _reactDom = _interopRequireDefault(require(\"react-dom\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar getOnDemandLazySlides = function getOnDemandLazySlides(spec) {\n var onDemandSlides = [];\n var startIndex = lazyStartIndex(spec);\n var endIndex = lazyEndIndex(spec);\n\n for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {\n if (spec.lazyLoadedList.indexOf(slideIndex) < 0) {\n onDemandSlides.push(slideIndex);\n }\n }\n\n return onDemandSlides;\n}; // return list of slides that need to be present\n\n\nexports.getOnDemandLazySlides = getOnDemandLazySlides;\n\nvar getRequiredLazySlides = function getRequiredLazySlides(spec) {\n var requiredSlides = [];\n var startIndex = lazyStartIndex(spec);\n var endIndex = lazyEndIndex(spec);\n\n for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {\n requiredSlides.push(slideIndex);\n }\n\n return requiredSlides;\n}; // startIndex that needs to be present\n\n\nexports.getRequiredLazySlides = getRequiredLazySlides;\n\nvar lazyStartIndex = function lazyStartIndex(spec) {\n return spec.currentSlide - lazySlidesOnLeft(spec);\n};\n\nexports.lazyStartIndex = lazyStartIndex;\n\nvar lazyEndIndex = function lazyEndIndex(spec) {\n return spec.currentSlide + lazySlidesOnRight(spec);\n};\n\nexports.lazyEndIndex = lazyEndIndex;\n\nvar lazySlidesOnLeft = function lazySlidesOnLeft(spec) {\n return spec.centerMode ? Math.floor(spec.slidesToShow / 2) + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : 0;\n};\n\nexports.lazySlidesOnLeft = lazySlidesOnLeft;\n\nvar lazySlidesOnRight = function lazySlidesOnRight(spec) {\n return spec.centerMode ? Math.floor((spec.slidesToShow - 1) / 2) + 1 + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : spec.slidesToShow;\n}; // get width of an element\n\n\nexports.lazySlidesOnRight = lazySlidesOnRight;\n\nvar getWidth = function getWidth(elem) {\n return elem && elem.offsetWidth || 0;\n};\n\nexports.getWidth = getWidth;\n\nvar getHeight = function getHeight(elem) {\n return elem && elem.offsetHeight || 0;\n};\n\nexports.getHeight = getHeight;\n\nvar getSwipeDirection = function getSwipeDirection(touchObject) {\n var verticalSwiping = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var xDist, yDist, r, swipeAngle;\n xDist = touchObject.startX - touchObject.curX;\n yDist = touchObject.startY - touchObject.curY;\n r = Math.atan2(yDist, xDist);\n swipeAngle = Math.round(r * 180 / Math.PI);\n\n if (swipeAngle < 0) {\n swipeAngle = 360 - Math.abs(swipeAngle);\n }\n\n if (swipeAngle <= 45 && swipeAngle >= 0 || swipeAngle <= 360 && swipeAngle >= 315) {\n return \"left\";\n }\n\n if (swipeAngle >= 135 && swipeAngle <= 225) {\n return \"right\";\n }\n\n if (verticalSwiping === true) {\n if (swipeAngle >= 35 && swipeAngle <= 135) {\n return \"up\";\n } else {\n return \"down\";\n }\n }\n\n return \"vertical\";\n}; // whether or not we can go next\n\n\nexports.getSwipeDirection = getSwipeDirection;\n\nvar canGoNext = function canGoNext(spec) {\n var canGo = true;\n\n if (!spec.infinite) {\n if (spec.centerMode && spec.currentSlide >= spec.slideCount - 1) {\n canGo = false;\n } else if (spec.slideCount <= spec.slidesToShow || spec.currentSlide >= spec.slideCount - spec.slidesToShow) {\n canGo = false;\n }\n }\n\n return canGo;\n}; // given an object and a list of keys, return new object with given keys\n\n\nexports.canGoNext = canGoNext;\n\nvar extractObject = function extractObject(spec, keys) {\n var newObject = {};\n keys.forEach(function (key) {\n return newObject[key] = spec[key];\n });\n return newObject;\n}; // get initialized state\n\n\nexports.extractObject = extractObject;\n\nvar initializedState = function initializedState(spec) {\n // spec also contains listRef, trackRef\n var slideCount = _react.default.Children.count(spec.children);\n\n var listWidth = Math.ceil(getWidth(_reactDom.default.findDOMNode(spec.listRef)));\n var trackWidth = Math.ceil(getWidth(_reactDom.default.findDOMNode(spec.trackRef)));\n var slideWidth;\n\n if (!spec.vertical) {\n var centerPaddingAdj = spec.centerMode && parseInt(spec.centerPadding) * 2;\n\n if (typeof spec.centerPadding === \"string\" && spec.centerPadding.slice(-1) === \"%\") {\n centerPaddingAdj *= listWidth / 100;\n }\n\n slideWidth = Math.ceil((listWidth - centerPaddingAdj) / spec.slidesToShow);\n } else {\n slideWidth = listWidth;\n }\n\n var slideHeight = _reactDom.default.findDOMNode(spec.listRef) && getHeight(_reactDom.default.findDOMNode(spec.listRef).querySelector('[data-index=\"0\"]'));\n var listHeight = slideHeight * spec.slidesToShow;\n var currentSlide = spec.currentSlide === undefined ? spec.initialSlide : spec.currentSlide;\n\n if (spec.rtl && spec.currentSlide === undefined) {\n currentSlide = slideCount - 1 - spec.initialSlide;\n }\n\n var lazyLoadedList = spec.lazyLoadedList || [];\n var slidesToLoad = getOnDemandLazySlides({\n currentSlide: currentSlide,\n lazyLoadedList: lazyLoadedList\n }, spec);\n lazyLoadedList.concat(slidesToLoad);\n var state = {\n slideCount: slideCount,\n slideWidth: slideWidth,\n listWidth: listWidth,\n trackWidth: trackWidth,\n currentSlide: currentSlide,\n slideHeight: slideHeight,\n listHeight: listHeight,\n lazyLoadedList: lazyLoadedList\n };\n\n if (spec.autoplaying === null && spec.autoplay) {\n state[\"autoplaying\"] = \"playing\";\n }\n\n return state;\n};\n\nexports.initializedState = initializedState;\n\nvar slideHandler = function slideHandler(spec) {\n var waitForAnimate = spec.waitForAnimate,\n animating = spec.animating,\n fade = spec.fade,\n infinite = spec.infinite,\n index = spec.index,\n slideCount = spec.slideCount,\n lazyLoadedList = spec.lazyLoadedList,\n lazyLoad = spec.lazyLoad,\n currentSlide = spec.currentSlide,\n centerMode = spec.centerMode,\n slidesToScroll = spec.slidesToScroll,\n slidesToShow = spec.slidesToShow,\n useCSS = spec.useCSS;\n if (waitForAnimate && animating) return {};\n var animationSlide = index,\n finalSlide,\n animationLeft,\n finalLeft;\n var state = {},\n nextState = {};\n\n if (fade) {\n if (!infinite && (index < 0 || index >= slideCount)) return {};\n\n if (index < 0) {\n animationSlide = index + slideCount;\n } else if (index >= slideCount) {\n animationSlide = index - slideCount;\n }\n\n if (lazyLoad && lazyLoadedList.indexOf(animationSlide) < 0) {\n lazyLoadedList.push(animationSlide);\n }\n\n state = {\n animating: true,\n currentSlide: animationSlide,\n lazyLoadedList: lazyLoadedList\n };\n nextState = {\n animating: false\n };\n } else {\n finalSlide = animationSlide;\n\n if (animationSlide < 0) {\n finalSlide = animationSlide + slideCount;\n if (!infinite) finalSlide = 0;else if (slideCount % slidesToScroll !== 0) finalSlide = slideCount - slideCount % slidesToScroll;\n } else if (!canGoNext(spec) && animationSlide > currentSlide) {\n animationSlide = finalSlide = currentSlide;\n } else if (centerMode && animationSlide >= slideCount) {\n animationSlide = infinite ? slideCount : slideCount - 1;\n finalSlide = infinite ? 0 : slideCount - 1;\n } else if (animationSlide >= slideCount) {\n finalSlide = animationSlide - slideCount;\n if (!infinite) finalSlide = slideCount - slidesToShow;else if (slideCount % slidesToScroll !== 0) finalSlide = 0;\n }\n\n animationLeft = getTrackLeft(_objectSpread({}, spec, {\n slideIndex: animationSlide\n }));\n finalLeft = getTrackLeft(_objectSpread({}, spec, {\n slideIndex: finalSlide\n }));\n\n if (!infinite) {\n if (animationLeft === finalLeft) animationSlide = finalSlide;\n animationLeft = finalLeft;\n }\n\n lazyLoad && lazyLoadedList.concat(getOnDemandLazySlides(_objectSpread({}, spec, {\n currentSlide: animationSlide\n })));\n\n if (!useCSS) {\n state = {\n currentSlide: finalSlide,\n trackStyle: getTrackCSS(_objectSpread({}, spec, {\n left: finalLeft\n })),\n lazyLoadedList: lazyLoadedList\n };\n } else {\n state = {\n animating: true,\n currentSlide: finalSlide,\n trackStyle: getTrackAnimateCSS(_objectSpread({}, spec, {\n left: animationLeft\n })),\n lazyLoadedList: lazyLoadedList\n };\n nextState = {\n animating: false,\n currentSlide: finalSlide,\n trackStyle: getTrackCSS(_objectSpread({}, spec, {\n left: finalLeft\n })),\n swipeLeft: null\n };\n }\n }\n\n return {\n state: state,\n nextState: nextState\n };\n};\n\nexports.slideHandler = slideHandler;\n\nvar changeSlide = function changeSlide(spec, options) {\n var indexOffset, previousInt, slideOffset, unevenOffset, targetSlide;\n var slidesToScroll = spec.slidesToScroll,\n slidesToShow = spec.slidesToShow,\n slideCount = spec.slideCount,\n currentSlide = spec.currentSlide,\n lazyLoad = spec.lazyLoad,\n infinite = spec.infinite;\n unevenOffset = slideCount % slidesToScroll !== 0;\n indexOffset = unevenOffset ? 0 : (slideCount - currentSlide) % slidesToScroll;\n\n if (options.message === \"previous\") {\n slideOffset = indexOffset === 0 ? slidesToScroll : slidesToShow - indexOffset;\n targetSlide = currentSlide - slideOffset;\n\n if (lazyLoad && !infinite) {\n previousInt = currentSlide - slideOffset;\n targetSlide = previousInt === -1 ? slideCount - 1 : previousInt;\n }\n } else if (options.message === \"next\") {\n slideOffset = indexOffset === 0 ? slidesToScroll : indexOffset;\n targetSlide = currentSlide + slideOffset;\n\n if (lazyLoad && !infinite) {\n targetSlide = (currentSlide + slidesToScroll) % slideCount + indexOffset;\n }\n } else if (options.message === \"dots\") {\n // Click on dots\n targetSlide = options.index * options.slidesToScroll;\n\n if (targetSlide === options.currentSlide) {\n return null;\n }\n } else if (options.message === \"children\") {\n // Click on the slides\n targetSlide = options.index;\n\n if (targetSlide === options.currentSlide) {\n return null;\n }\n\n if (infinite) {\n var direction = siblingDirection(_objectSpread({}, spec, {\n targetSlide: targetSlide\n }));\n\n if (targetSlide > options.currentSlide && direction === \"left\") {\n targetSlide = targetSlide - slideCount;\n } else if (targetSlide < options.currentSlide && direction === \"right\") {\n targetSlide = targetSlide + slideCount;\n }\n }\n } else if (options.message === \"index\") {\n targetSlide = Number(options.index);\n\n if (targetSlide === options.currentSlide) {\n return null;\n }\n }\n\n return targetSlide;\n};\n\nexports.changeSlide = changeSlide;\n\nvar keyHandler = function keyHandler(e, accessibility, rtl) {\n if (e.target.tagName.match(\"TEXTAREA|INPUT|SELECT\") || !accessibility) return \"\";\n if (e.keyCode === 37) return rtl ? \"next\" : \"previous\";\n if (e.keyCode === 39) return rtl ? \"previous\" : \"next\";\n return \"\";\n};\n\nexports.keyHandler = keyHandler;\n\nvar swipeStart = function swipeStart(e, swipe, draggable) {\n e.target.tagName === \"IMG\" && e.preventDefault();\n if (!swipe || !draggable && e.type.indexOf(\"mouse\") !== -1) return \"\";\n return {\n dragging: true,\n touchObject: {\n startX: e.touches ? e.touches[0].pageX : e.clientX,\n startY: e.touches ? e.touches[0].pageY : e.clientY,\n curX: e.touches ? e.touches[0].pageX : e.clientX,\n curY: e.touches ? e.touches[0].pageY : e.clientY\n }\n };\n};\n\nexports.swipeStart = swipeStart;\n\nvar swipeMove = function swipeMove(e, spec) {\n // spec also contains, trackRef and slideIndex\n var scrolling = spec.scrolling,\n animating = spec.animating,\n vertical = spec.vertical,\n swipeToSlide = spec.swipeToSlide,\n verticalSwiping = spec.verticalSwiping,\n rtl = spec.rtl,\n currentSlide = spec.currentSlide,\n edgeFriction = spec.edgeFriction,\n edgeDragged = spec.edgeDragged,\n onEdge = spec.onEdge,\n swiped = spec.swiped,\n swiping = spec.swiping,\n slideCount = spec.slideCount,\n slidesToScroll = spec.slidesToScroll,\n infinite = spec.infinite,\n touchObject = spec.touchObject,\n swipeEvent = spec.swipeEvent,\n listHeight = spec.listHeight,\n listWidth = spec.listWidth;\n if (scrolling) return;\n if (animating) return e.preventDefault();\n if (vertical && swipeToSlide && verticalSwiping) e.preventDefault();\n var swipeLeft,\n state = {};\n var curLeft = getTrackLeft(spec);\n touchObject.curX = e.touches ? e.touches[0].pageX : e.clientX;\n touchObject.curY = e.touches ? e.touches[0].pageY : e.clientY;\n touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curX - touchObject.startX, 2)));\n var verticalSwipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curY - touchObject.startY, 2)));\n\n if (!verticalSwiping && !swiping && verticalSwipeLength > 10) {\n return {\n scrolling: true\n };\n }\n\n if (verticalSwiping) touchObject.swipeLength = verticalSwipeLength;\n var positionOffset = (!rtl ? 1 : -1) * (touchObject.curX > touchObject.startX ? 1 : -1);\n if (verticalSwiping) positionOffset = touchObject.curY > touchObject.startY ? 1 : -1;\n var dotCount = Math.ceil(slideCount / slidesToScroll);\n var swipeDirection = getSwipeDirection(spec.touchObject, verticalSwiping);\n var touchSwipeLength = touchObject.swipeLength;\n\n if (!infinite) {\n if (currentSlide === 0 && swipeDirection === \"right\" || currentSlide + 1 >= dotCount && swipeDirection === \"left\" || !canGoNext(spec) && swipeDirection === \"left\") {\n touchSwipeLength = touchObject.swipeLength * edgeFriction;\n\n if (edgeDragged === false && onEdge) {\n onEdge(swipeDirection);\n state[\"edgeDragged\"] = true;\n }\n }\n }\n\n if (!swiped && swipeEvent) {\n swipeEvent(swipeDirection);\n state[\"swiped\"] = true;\n }\n\n if (!vertical) {\n if (!rtl) {\n swipeLeft = curLeft + touchSwipeLength * positionOffset;\n } else {\n swipeLeft = curLeft - touchSwipeLength * positionOffset;\n }\n } else {\n swipeLeft = curLeft + touchSwipeLength * (listHeight / listWidth) * positionOffset;\n }\n\n if (verticalSwiping) {\n swipeLeft = curLeft + touchSwipeLength * positionOffset;\n }\n\n state = _objectSpread({}, state, {\n touchObject: touchObject,\n swipeLeft: swipeLeft,\n trackStyle: getTrackCSS(_objectSpread({}, spec, {\n left: swipeLeft\n }))\n });\n\n if (Math.abs(touchObject.curX - touchObject.startX) < Math.abs(touchObject.curY - touchObject.startY) * 0.8) {\n return state;\n }\n\n if (touchObject.swipeLength > 10) {\n state[\"swiping\"] = true;\n e.preventDefault();\n }\n\n return state;\n};\n\nexports.swipeMove = swipeMove;\n\nvar swipeEnd = function swipeEnd(e, spec) {\n var dragging = spec.dragging,\n swipe = spec.swipe,\n touchObject = spec.touchObject,\n listWidth = spec.listWidth,\n touchThreshold = spec.touchThreshold,\n verticalSwiping = spec.verticalSwiping,\n listHeight = spec.listHeight,\n currentSlide = spec.currentSlide,\n swipeToSlide = spec.swipeToSlide,\n scrolling = spec.scrolling,\n onSwipe = spec.onSwipe;\n\n if (!dragging) {\n if (swipe) e.preventDefault();\n return {};\n }\n\n var minSwipe = verticalSwiping ? listHeight / touchThreshold : listWidth / touchThreshold;\n var swipeDirection = getSwipeDirection(touchObject, verticalSwiping); // reset the state of touch related state variables.\n\n var state = {\n dragging: false,\n edgeDragged: false,\n scrolling: false,\n swiping: false,\n swiped: false,\n swipeLeft: null,\n touchObject: {}\n };\n\n if (scrolling) {\n return state;\n }\n\n if (!touchObject.swipeLength) {\n return state;\n }\n\n if (touchObject.swipeLength > minSwipe) {\n e.preventDefault();\n\n if (onSwipe) {\n onSwipe(swipeDirection);\n }\n\n var slideCount, newSlide;\n\n switch (swipeDirection) {\n case \"left\":\n case \"up\":\n newSlide = currentSlide + getSlideCount(spec);\n slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;\n state[\"currentDirection\"] = 0;\n break;\n\n case \"right\":\n case \"down\":\n newSlide = currentSlide - getSlideCount(spec);\n slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;\n state[\"currentDirection\"] = 1;\n break;\n\n default:\n slideCount = currentSlide;\n }\n\n state[\"triggerSlideHandler\"] = slideCount;\n } else {\n // Adjust the track back to it's original position.\n var currentLeft = getTrackLeft(spec);\n state[\"trackStyle\"] = getTrackAnimateCSS(_objectSpread({}, spec, {\n left: currentLeft\n }));\n }\n\n return state;\n};\n\nexports.swipeEnd = swipeEnd;\n\nvar getNavigableIndexes = function getNavigableIndexes(spec) {\n var max = spec.infinite ? spec.slideCount * 2 : spec.slideCount;\n var breakpoint = spec.infinite ? spec.slidesToShow * -1 : 0;\n var counter = spec.infinite ? spec.slidesToShow * -1 : 0;\n var indexes = [];\n\n while (breakpoint < max) {\n indexes.push(breakpoint);\n breakpoint = counter + spec.slidesToScroll;\n counter += Math.min(spec.slidesToScroll, spec.slidesToShow);\n }\n\n return indexes;\n};\n\nexports.getNavigableIndexes = getNavigableIndexes;\n\nvar checkNavigable = function checkNavigable(spec, index) {\n var navigables = getNavigableIndexes(spec);\n var prevNavigable = 0;\n\n if (index > navigables[navigables.length - 1]) {\n index = navigables[navigables.length - 1];\n } else {\n for (var n in navigables) {\n if (index < navigables[n]) {\n index = prevNavigable;\n break;\n }\n\n prevNavigable = navigables[n];\n }\n }\n\n return index;\n};\n\nexports.checkNavigable = checkNavigable;\n\nvar getSlideCount = function getSlideCount(spec) {\n var centerOffset = spec.centerMode ? spec.slideWidth * Math.floor(spec.slidesToShow / 2) : 0;\n\n if (spec.swipeToSlide) {\n var swipedSlide;\n\n var slickList = _reactDom.default.findDOMNode(spec.listRef);\n\n var slides = slickList.querySelectorAll(\".slick-slide\");\n Array.from(slides).every(function (slide) {\n if (!spec.vertical) {\n if (slide.offsetLeft - centerOffset + getWidth(slide) / 2 > spec.swipeLeft * -1) {\n swipedSlide = slide;\n return false;\n }\n } else {\n if (slide.offsetTop + getHeight(slide) / 2 > spec.swipeLeft * -1) {\n swipedSlide = slide;\n return false;\n }\n }\n\n return true;\n });\n\n if (!swipedSlide) {\n return 0;\n }\n\n var currentIndex = spec.rtl === true ? spec.slideCount - spec.currentSlide : spec.currentSlide;\n var slidesTraversed = Math.abs(swipedSlide.dataset.index - currentIndex) || 1;\n return slidesTraversed;\n } else {\n return spec.slidesToScroll;\n }\n};\n\nexports.getSlideCount = getSlideCount;\n\nvar checkSpecKeys = function checkSpecKeys(spec, keysArray) {\n return keysArray.reduce(function (value, key) {\n return value && spec.hasOwnProperty(key);\n }, true) ? null : console.error(\"Keys Missing:\", spec);\n};\n\nexports.checkSpecKeys = checkSpecKeys;\n\nvar getTrackCSS = function getTrackCSS(spec) {\n checkSpecKeys(spec, [\"left\", \"variableWidth\", \"slideCount\", \"slidesToShow\", \"slideWidth\"]);\n var trackWidth, trackHeight;\n var trackChildren = spec.slideCount + 2 * spec.slidesToShow;\n\n if (!spec.vertical) {\n trackWidth = getTotalSlides(spec) * spec.slideWidth;\n } else {\n trackHeight = trackChildren * spec.slideHeight;\n }\n\n var style = {\n opacity: 1,\n transition: \"\",\n WebkitTransition: \"\"\n };\n\n if (spec.useTransform) {\n var WebkitTransform = !spec.vertical ? \"translate3d(\" + spec.left + \"px, 0px, 0px)\" : \"translate3d(0px, \" + spec.left + \"px, 0px)\";\n var transform = !spec.vertical ? \"translate3d(\" + spec.left + \"px, 0px, 0px)\" : \"translate3d(0px, \" + spec.left + \"px, 0px)\";\n var msTransform = !spec.vertical ? \"translateX(\" + spec.left + \"px)\" : \"translateY(\" + spec.left + \"px)\";\n style = _objectSpread({}, style, {\n WebkitTransform: WebkitTransform,\n transform: transform,\n msTransform: msTransform\n });\n } else {\n if (spec.vertical) {\n style[\"top\"] = spec.left;\n } else {\n style[\"left\"] = spec.left;\n }\n }\n\n if (spec.fade) style = {\n opacity: 1\n };\n if (trackWidth) style.width = trackWidth;\n if (trackHeight) style.height = trackHeight; // Fallback for IE8\n\n if (window && !window.addEventListener && window.attachEvent) {\n if (!spec.vertical) {\n style.marginLeft = spec.left + \"px\";\n } else {\n style.marginTop = spec.left + \"px\";\n }\n }\n\n return style;\n};\n\nexports.getTrackCSS = getTrackCSS;\n\nvar getTrackAnimateCSS = function getTrackAnimateCSS(spec) {\n checkSpecKeys(spec, [\"left\", \"variableWidth\", \"slideCount\", \"slidesToShow\", \"slideWidth\", \"speed\", \"cssEase\"]);\n var style = getTrackCSS(spec); // useCSS is true by default so it can be undefined\n\n if (spec.useTransform) {\n style.WebkitTransition = \"-webkit-transform \" + spec.speed + \"ms \" + spec.cssEase;\n style.transition = \"transform \" + spec.speed + \"ms \" + spec.cssEase;\n } else {\n if (spec.vertical) {\n style.transition = \"top \" + spec.speed + \"ms \" + spec.cssEase;\n } else {\n style.transition = \"left \" + spec.speed + \"ms \" + spec.cssEase;\n }\n }\n\n return style;\n};\n\nexports.getTrackAnimateCSS = getTrackAnimateCSS;\n\nvar getTrackLeft = function getTrackLeft(spec) {\n if (spec.unslick) {\n return 0;\n }\n\n checkSpecKeys(spec, [\"slideIndex\", \"trackRef\", \"infinite\", \"centerMode\", \"slideCount\", \"slidesToShow\", \"slidesToScroll\", \"slideWidth\", \"listWidth\", \"variableWidth\", \"slideHeight\"]);\n var slideIndex = spec.slideIndex,\n trackRef = spec.trackRef,\n infinite = spec.infinite,\n centerMode = spec.centerMode,\n slideCount = spec.slideCount,\n slidesToShow = spec.slidesToShow,\n slidesToScroll = spec.slidesToScroll,\n slideWidth = spec.slideWidth,\n listWidth = spec.listWidth,\n variableWidth = spec.variableWidth,\n slideHeight = spec.slideHeight,\n fade = spec.fade,\n vertical = spec.vertical;\n var slideOffset = 0;\n var targetLeft;\n var targetSlide;\n var verticalOffset = 0;\n\n if (fade || spec.slideCount === 1) {\n return 0;\n }\n\n var slidesToOffset = 0;\n\n if (infinite) {\n slidesToOffset = -getPreClones(spec); // bring active slide to the beginning of visual area\n // if next scroll doesn't have enough children, just reach till the end of original slides instead of shifting slidesToScroll children\n\n if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) {\n slidesToOffset = -(slideIndex > slideCount ? slidesToShow - (slideIndex - slideCount) : slideCount % slidesToScroll);\n } // shift current slide to center of the frame\n\n\n if (centerMode) {\n slidesToOffset += parseInt(slidesToShow / 2);\n }\n } else {\n if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) {\n slidesToOffset = slidesToShow - slideCount % slidesToScroll;\n }\n\n if (centerMode) {\n slidesToOffset = parseInt(slidesToShow / 2);\n }\n }\n\n slideOffset = slidesToOffset * slideWidth;\n verticalOffset = slidesToOffset * slideHeight;\n\n if (!vertical) {\n targetLeft = slideIndex * slideWidth * -1 + slideOffset;\n } else {\n targetLeft = slideIndex * slideHeight * -1 + verticalOffset;\n }\n\n if (variableWidth === true) {\n var targetSlideIndex;\n\n var trackElem = _reactDom.default.findDOMNode(trackRef);\n\n targetSlideIndex = slideIndex + getPreClones(spec);\n targetSlide = trackElem && trackElem.childNodes[targetSlideIndex];\n targetLeft = targetSlide ? targetSlide.offsetLeft * -1 : 0;\n\n if (centerMode === true) {\n targetSlideIndex = infinite ? slideIndex + getPreClones(spec) : slideIndex;\n targetSlide = trackElem && trackElem.children[targetSlideIndex];\n targetLeft = 0;\n\n for (var slide = 0; slide < targetSlideIndex; slide++) {\n targetLeft -= trackElem && trackElem.children[slide] && trackElem.children[slide].offsetWidth;\n }\n\n targetLeft -= parseInt(spec.centerPadding);\n targetLeft += targetSlide && (listWidth - targetSlide.offsetWidth) / 2;\n }\n }\n\n return targetLeft;\n};\n\nexports.getTrackLeft = getTrackLeft;\n\nvar getPreClones = function getPreClones(spec) {\n if (spec.unslick || !spec.infinite) {\n return 0;\n }\n\n if (spec.variableWidth) {\n return spec.slideCount;\n }\n\n return spec.slidesToShow + (spec.centerMode ? 1 : 0);\n};\n\nexports.getPreClones = getPreClones;\n\nvar getPostClones = function getPostClones(spec) {\n if (spec.unslick || !spec.infinite) {\n return 0;\n }\n\n return spec.slideCount;\n};\n\nexports.getPostClones = getPostClones;\n\nvar getTotalSlides = function getTotalSlides(spec) {\n return spec.slideCount === 1 ? 1 : getPreClones(spec) + spec.slideCount + getPostClones(spec);\n};\n\nexports.getTotalSlides = getTotalSlides;\n\nvar siblingDirection = function siblingDirection(spec) {\n if (spec.targetSlide > spec.currentSlide) {\n if (spec.targetSlide > spec.currentSlide + slidesOnRight(spec)) {\n return \"left\";\n }\n\n return \"right\";\n } else {\n if (spec.targetSlide < spec.currentSlide - slidesOnLeft(spec)) {\n return \"right\";\n }\n\n return \"left\";\n }\n};\n\nexports.siblingDirection = siblingDirection;\n\nvar slidesOnRight = function slidesOnRight(_ref) {\n var slidesToShow = _ref.slidesToShow,\n centerMode = _ref.centerMode,\n rtl = _ref.rtl,\n centerPadding = _ref.centerPadding;\n\n // returns no of slides on the right of active slide\n if (centerMode) {\n var right = (slidesToShow - 1) / 2 + 1;\n if (parseInt(centerPadding) > 0) right += 1;\n if (rtl && slidesToShow % 2 === 0) right += 1;\n return right;\n }\n\n if (rtl) {\n return 0;\n }\n\n return slidesToShow - 1;\n};\n\nexports.slidesOnRight = slidesOnRight;\n\nvar slidesOnLeft = function slidesOnLeft(_ref2) {\n var slidesToShow = _ref2.slidesToShow,\n centerMode = _ref2.centerMode,\n rtl = _ref2.rtl,\n centerPadding = _ref2.centerPadding;\n\n // returns no of slides on the left of active slide\n if (centerMode) {\n var left = (slidesToShow - 1) / 2 + 1;\n if (parseInt(centerPadding) > 0) left += 1;\n if (!rtl && slidesToShow % 2 === 0) left += 1;\n return left;\n }\n\n if (rtl) {\n return slidesToShow - 1;\n }\n\n return 0;\n};\n\nexports.slidesOnLeft = slidesOnLeft;\n\nvar canUseDOM = function canUseDOM() {\n return !!(typeof window !== \"undefined\" && window.document && window.document.createElement);\n};\n\nexports.canUseDOM = canUseDOM;","\nvar content = require(\"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".form-control.ant-select.ant-select-enabled,.form-control.ant-select.ant-select-disabled{padding:0}.form-control>.ant-select-selection{height:100%}.form-control .ant-select-selection__rendered{height:100%;display:flex;align-items:center}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\", function() {\n\t\tvar newContent = require(\"!!../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".src-widgets-Field-___styles-modules__hidden{display:absolute;bottom:0;right:0;visibility:hidden;opacity:0;z-index:-1}\", \"\"]);\n// Exports\nexports.locals = {\n\t\"hidden\": \"src-widgets-Field-___styles-modules__hidden\"\n};\nmodule.exports = exports;\n","import React, { useEffect } from 'react';\nimport { Modal, Table } from 'reactstrap';\nimport LoadingContainer from '../LoadingContainer';\nimport { TInventory } from '~domain/inventory/Inventory';\nimport { listInventoriesByProduct } from '~graphql/queries';\nimport { getProductTypeString } from '~utils/product';\nimport { useGraphql } from '~view/hooks/graphql';\n\nconst InventoryModal: React.FC<{\n productId: string;\n isOpen: boolean;\n toggle: () => void;\n}> = ({ productId, isOpen, toggle }) => {\n const [inventories, fetch, loading] = useGraphql(\n listInventoriesByProduct,\n (data) =>\n (data.listInventoriesByProduct.items as TInventory[])?.filter(\n (inventory) =>\n !inventory.product?.suspended && !inventory.productType?.suspended\n )\n );\n\n useEffect(() => {\n fetch({ product_id: productId });\n }, [productId]);\n\n return (\n \n {loading && }\n {!loading && (\n \n \n \n \n サイズ、カラー、種類\n \n \n \n \n \n {inventories?.map(\n (inventory) =>\n inventory.productType &&\n (inventory.productType.published ?? true) &&\n inventory.inventory !== undefined && (\n \n \n {getProductTypeString(inventory.productType)}\n \n \n \n )\n )}\n \n
残り個数
\n {inventory.inventory === 0\n ? '売り切れ'\n : inventory.inventory}\n
\n )}\n
\n );\n};\n\nexport default InventoryModal;\n","import './styles.modules.scss';\nimport React from 'react';\nimport { OptionRecord } from '../types';\nimport { getPublicImageUrl } from '~utils/image';\n\ntype OptionSelectorProps = {\n optionLabel: string;\n selectedOption: string;\n options: OptionRecord;\n onSelect: (type: string) => void;\n};\n\nconst OptionSelector: React.FC = ({\n optionLabel,\n selectedOption,\n options,\n onSelect,\n}) => (\n
\n \n
\n {Object.entries(options).map(([option, { imageKey }]) => (\n
\n
onSelect(option)}>\n {!imageKey && (\n \n {option}\n
\n )}\n {imageKey && (\n \n )}\n
\n
\n ))}\n
\n
\n);\n\nexport default OptionSelector;\n","import './styles.modules.scss';\nimport React, { useCallback, useState } from 'react';\n\ntype OrderTableProps = {\n sizes: string[];\n};\n\nconst OrderTable: React.FC = ({ sizes, children }) => {\n const [scrollLeft, setScrollLeft] = useState(false);\n const handleScroll = useCallback((event: React.UIEvent) => {\n const element = event.currentTarget;\n setScrollLeft(!!element.scrollLeft);\n }, []);\n\n return (\n
\n
\n
\n
サイズ
\n {sizes.map((size) => (\n
\n {size}\n
\n ))}\n
\n 合計\n
\n
\n
\n
\n {children}\n
\n
\n );\n};\n\nexport default OrderTable;\n","import './styles.modules.scss';\nimport { MdAddShoppingCart } from '@react-icons/all-files/md/MdAddShoppingCart';\nimport { useFormikContext } from 'formik';\nimport React, { useCallback, useEffect, useMemo, useState } from 'react';\nimport { Spinner } from 'reactstrap';\nimport InputQuantity from '../../Quantity';\nimport { Product, ProductType } from '~redux/brand/types';\n\ntype OrderTableColProps = {\n color: string;\n sizes: string[];\n selectedColor: string;\n onSelectColor: (color: string) => void;\n cart?: boolean;\n productId: string;\n preview?: boolean;\n product: Product;\n productTypes: ProductType[];\n};\n\nconst OrderTableCol: React.FC = ({\n color,\n sizes,\n selectedColor,\n onSelectColor,\n cart,\n productId,\n preview,\n product,\n productTypes,\n}) => {\n const { values, isSubmitting, setFieldValue, setValues } = useFormikContext<{\n color: string;\n quantities: Record;\n }>();\n\n const totalQuantity = useMemo(\n () =>\n sizes.reduce((prev, size) => {\n const type = productTypes.find(\n (type) => type.size === size && type.color === color\n );\n const qty = Number(values.quantities[type?.id ?? '']);\n return isNaN(qty) ? prev : (prev ?? 0) + qty;\n }, undefined as number | undefined),\n [productTypes, values, sizes, color]\n );\n\n const [isCompleted, setIsCompleted] = useState();\n useEffect(() => {\n if (isSubmitting) {\n setIsCompleted(false);\n return;\n }\n if (isCompleted === false) {\n setIsCompleted(true);\n setTimeout(() => setIsCompleted(false), 1000);\n }\n }, [isSubmitting]);\n\n const lot = useMemo(() => product.product_order_lot ?? 1, [product]);\n const max = useMemo(() => 1000 - (1000 % lot), [product, lot]);\n const min = useMemo(\n () =>\n Math.min(\n product.product_minimum_quantity ?? 1,\n product.product_order_lot ?? 1\n ),\n [product]\n );\n\n const incrementAll = useCallback(() => {\n const quantities = Object.entries(values.quantities).reduce(\n (prev, [typeId, quantity]) => {\n const productType = productTypes.find((t) => t.id === typeId);\n if (productType?.color !== color || productType.out_of_stock) {\n return { ...prev, [typeId]: quantity };\n }\n return { ...prev, [typeId]: Math.min((quantity ?? 0) + lot, max) };\n },\n {}\n );\n setValues({ ...values, quantities });\n }, [color, productTypes, values, lot, max]);\n\n const decrementAll = useCallback(() => {\n const quantities = Object.entries(values.quantities).reduce(\n (prev, [typeId, quantity]) => {\n const productType = productTypes.find((t) => t.id === typeId);\n if (productType?.color !== color) {\n return { ...prev, [typeId]: quantity };\n }\n return { ...prev, [typeId]: Math.max((quantity ?? 0) - lot, 0) };\n },\n {}\n );\n setValues({ ...values, quantities });\n }, [color, productTypes, values, lot]);\n\n return (\n onSelectColor(color)}\n >\n
\n
{color}
\n
\n {sizes.map((size) => {\n const productType = productTypes.find(\n (type) => type.color === color && type.size === size\n );\n // const inventory = inventories?.[productType?.sku!];\n // const limit =\n // (cart ? inventory?.inventory : inventory?.availableInventory) ?? max;\n if (!productType) {\n return
;\n }\n\n if (\n productType.product?.product_preorder !== 1 && // 予約販売の場合は売り切れにしない\n productType.out_of_stock\n ) {\n return (\n
\n 売り切れ\n
\n );\n }\n\n return (\n
\n \n
\n );\n })}\n\n
\n {totalQuantity === undefined && (totalQuantity ?? 0)}\n {cart && totalQuantity !== undefined && (\n <>\n \n -\n \n
\n {totalQuantity ?? 0}\n
\n \n +\n \n \n )}\n {!cart && totalQuantity !== undefined && (\n <>\n \n -\n \n setFieldValue('color', color, false)}\n >\n {values.color === color && isSubmitting ? (\n \n ) : values.color === color && isCompleted ? (\n \n ) : (\n <>\n \n {totalQuantity > 999 ? 999 : totalQuantity}\n \n )}\n \n \n +\n \n \n )}\n
\n
\n );\n};\n\nexport default OrderTableCol;\n","import './styles.modules.scss';\nimport React, { useMemo } from 'react';\nimport InputQuantity from '../Quantity';\nimport { Product } from '~redux/brand/types';\n\ntype SingleRowProps = {\n product: Product;\n isCart?: boolean;\n};\n\nconst SingleRow: React.FC = ({ product, isCart }) => {\n const lot = useMemo(() => product.product_order_lot ?? 1, [product]);\n const min = useMemo(\n () =>\n Math.min(\n product.product_minimum_quantity ?? 1,\n product.product_order_lot ?? 1\n ),\n [product]\n );\n\n return (\n
\n
\n \n
\n
\n );\n};\n\nexport default SingleRow;\n","import { FiCheck } from '@react-icons/all-files/fi/FiCheck';\nimport { FiMail } from '@react-icons/all-files/fi/FiMail';\nimport React, { useCallback, useMemo, useState } from 'react';\nimport { useSelector } from 'react-redux';\nimport { Button } from 'reactstrap';\nimport { createInStockNotification } from '~graphql/mutations';\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\nimport { Product } from '~types/api';\nimport { executeQuery } from '~utils/graphql';\nimport { useSelectInventoriesByProduct } from '~view/hooks/inventory';\n\nconst SubscribeButton: React.FC<{\n product: Product;\n cart?: boolean;\n}> = ({ product, cart }) => {\n const user = useSelector(authUserSelector);\n const inventories = useSelectInventoriesByProduct(product.id!);\n const outOfStocks = useMemo(\n () =>\n Object.values(inventories).filter((inventory) => inventory.isOutOfStock),\n [inventories]\n );\n\n const [isSubscribed, setSubscribed] = useState(false);\n const handleSubscribe = useCallback(() => {\n if (!user) {\n return;\n }\n outOfStocks.map((inventory) =>\n executeQuery(createInStockNotification, {\n input: {\n brand_id: product.product_brand_id,\n buyer_id: user.attributes.sub,\n product_id: product.id,\n product_type_id: inventory.product_type_id,\n completed: false,\n },\n })\n );\n setSubscribed(true);\n }, [user, outOfStocks.length]);\n\n if (cart || !outOfStocks?.length || product.product_preorder === 1) {\n return null;\n }\n\n return (\n \n {isSubscribed && }\n {!isSubscribed && }\n 売り切れ商品の再入荷通知を受け取る\n \n );\n};\n\nexport default SubscribeButton;\n","import './styles.modules.scss';\nimport { useFormikContext } from 'formik';\nimport React, { useCallback, useMemo } from 'react';\nimport InputQuantity from '../Quantity';\nimport { Product, ProductType } from '~redux/brand/types';\n\ntype TypeRowsProps = {\n product: Product;\n types: ProductType[];\n isCart?: boolean;\n};\n\nconst TypeRows: React.FC = ({ product, types, isCart }) => {\n const { values, setValues } = useFormikContext<{\n quantities: Record;\n }>();\n const totalQuantity = useMemo(\n () =>\n Object.values(values.quantities).reduce((prev, value) => {\n const qty = Number(value);\n return prev + (isNaN(qty) ? 0 : qty);\n }, 0),\n [values.quantities]\n );\n const lot = useMemo(() => product.product_order_lot ?? 1, [product]);\n const min = useMemo(\n () =>\n Math.min(\n product.product_minimum_quantity ?? 1,\n product.product_order_lot ?? 1\n ),\n [product]\n );\n const outOfStockAll = useMemo(\n () => types.every(({ out_of_stock }) => out_of_stock),\n [types]\n );\n\n const incrementAll = useCallback(() => {\n const quantities = Object.entries(values.quantities).reduce(\n (prev, [key, quantity]) => {\n const type = types.find((type) => type.id === key);\n return { ...prev, [key]: quantity + (type?.out_of_stock ? 0 : lot) };\n },\n {}\n );\n setValues({ ...values, quantities });\n }, [values, lot, types]);\n\n const decrementAll = useCallback(() => {\n const quantities = Object.entries(values.quantities).reduce(\n (prev, [key, quantity]) => ({\n ...prev,\n [key]: Math.max(quantity - lot, 0),\n }),\n {}\n );\n setValues({ ...values, quantities });\n }, [values, lot]);\n\n return (\n
\n {types.map((type) => {\n return (\n
\n
{type.size || type.color || type.type_name}
\n
\n \n
\n
\n );\n })}\n {!outOfStockAll && (\n
\n
合計
\n
\n \n -\n \n
\n {totalQuantity}\n
\n \n +\n \n
\n
\n )}\n
\n );\n};\n\nexport default TypeRows;\n","import { Dialog, DialogContent, DialogTitle } from '@material-ui/core';\nimport React, { useState } from 'react';\nimport { Button, Col } from 'react-bootstrap';\nimport { Row } from 'reactstrap';\nimport { addFavoriteProductList as addFavoriteProductListThunk } from '~redux/favoritelist/thunk';\nimport { useThunk } from '~utils/hooks';\nimport './styles.scss';\n\ntype FavoriteCreateListModalProps = {\n accountId: string | undefined;\n isOpen: boolean;\n setIsOpen: (isOpen: boolean) => void;\n};\n\nconst FavoriteCreateListModal: React.FC = ({\n accountId,\n isOpen,\n setIsOpen,\n}) => {\n const [listName, setListName] = useState('');\n const [addFavoriteProductList] = useThunk(addFavoriteProductListThunk);\n return (\n \n お気に入りリストを作成\n \n setListName(e.currentTarget.value)}\n />\n \n \n \n \n \n {\n if (!accountId) {\n return;\n }\n addFavoriteProductList(accountId, listName);\n\n setIsOpen(false);\n }}\n >\n 作成\n \n \n \n \n \n );\n};\n\nexport default FavoriteCreateListModal;\n","import { Dispatch } from 'redux';\nimport {\n createFavoriteProductList,\n deleteFavoriteProductList,\n updateFavoriteProductList as updateFavoriteProductListQuery,\n} from '../../../graphql/mutations';\nimport { FavoriteProductList } from '../actions';\nimport {\n recievedFavoriteProductList,\n removedFavoriteProductList,\n updatedFavoriteProductList,\n} from '~redux/favorite/reducers/product';\nimport { removeFavoriteProduct } from '~redux/favoriteproduct/thunk';\nimport { executeQuery } from '~utils/graphql';\n\nexport const removeFavoriteProductList = (\n id: string,\n favoriteProductIds: string[]\n) => {\n return async (dispatch: Dispatch): Promise => {\n await Promise.all(\n favoriteProductIds.map(async (id) => {\n await removeFavoriteProduct(id)(dispatch);\n })\n );\n await executeQuery(deleteFavoriteProductList, {\n input: { id },\n });\n dispatch(removedFavoriteProductList(id));\n };\n};\n\nexport const updateFavoriteProductList = (\n account_id: string,\n list_id: string,\n list_name: string\n) => {\n return async (dispatch: Dispatch): Promise => {\n const rs = await executeQuery(updateFavoriteProductListQuery, {\n input: {\n id: list_id,\n account_id: account_id,\n list_name: list_name,\n },\n });\n dispatch(\n updatedFavoriteProductList({\n listId: list_id,\n list: rs.data.updateFavoriteProductList,\n })\n );\n };\n};\n\nexport const addFavoriteProductList = (\n account_id: string,\n listName: string,\n listId?: string\n) => {\n return async (dispatch: Dispatch): Promise => {\n let id = listId;\n if (!id) {\n const charList =\n 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';\n const len = 16;\n id = Array.from(Array(len))\n .map(() => charList[Math.floor(Math.random() * charList.length)])\n .join('');\n }\n const favoriteProductListData: FavoriteProductList = {\n id: id,\n account_id: account_id,\n list_name: listName,\n order: 0,\n };\n\n const res = await executeQuery(createFavoriteProductList, {\n input: favoriteProductListData,\n });\n const {\n data: { createFavoriteProductList: item },\n } = res;\n\n dispatch(recievedFavoriteProductList([item]));\n };\n};\n","// biome-ignore lint/style/useImportType: \nimport React, { useCallback, useEffect, useState } from 'react';\nimport { Link } from 'react-router-dom';\nimport { UncontrolledTooltip } from 'reactstrap';\nimport { SERVICE_NAME } from '~constants/app';\nimport { searchInventorys, searchProducts } from '~graphql/queries';\nimport type {\n Product,\n SearchInventorysQuery,\n SearchInventorysQueryVariables,\n SearchProductsQuery,\n SearchProductsQueryVariables,\n} from '~types/api';\nimport { formatCurrency } from '~utils/formatter';\nimport { executeQuery } from '~utils/graphql';\nimport { getPublicImageUrl } from '~utils/image';\nimport { calculatePrice } from '~utils/price';\n\nconst SaleProductAlert: React.FC<{ productId: string; className?: string }> = ({\n productId,\n className,\n}) => {\n const [saleProduct, setSaleProduct] = useState();\n const [inventory, setInventory] = useState();\n useEffect(() => {\n executeQuery(\n searchProducts,\n {\n filter: {\n product_brand_id: { eq: process.env.REACT_APP_HOMULA_BRAND_ID },\n copied_product_id: { eq: productId },\n product_public_status: { ne: '非公開' },\n suspended: { ne: true },\n out_of_stock: { ne: true },\n },\n }\n ).then(async (res) => {\n if (res.data?.searchProducts?.items?.length) {\n const product = res.data.searchProducts.items[0];\n const inventory = await executeQuery<\n SearchInventorysQuery,\n SearchInventorysQueryVariables\n >(searchInventorys, { filter: { product_id: { eq: product!.id } } });\n setInventory(\n inventory.data?.searchInventorys?.items?.reduce(\n (prev, item) => prev + (item?.inventory ?? 0),\n 0\n )\n );\n setSaleProduct(res.data.searchProducts.items[0] as Product);\n return;\n }\n setSaleProduct(undefined);\n });\n }, [productId]);\n\n const handleClick = useCallback((e) => {\n e.stopPropagation();\n }, []);\n\n if (!saleProduct || !inventory) {\n return null;\n }\n\n return (\n \n
\n
\n \n さらにお得に注文できます\n \n \n 詳細を見る\n \n
\n
\n
\n \n
\n
\n
\n \n {formatCurrency(\n calculatePrice(\n saleProduct.product_retail_price!,\n saleProduct.product_wholesale_rate!\n )\n )}\n \n \n {formatCurrency(\n calculatePrice(\n saleProduct.product_retail_price!,\n saleProduct.product_sale_wholesale_rate!\n )\n )}\n \n 残り{inventory}点\n
\n
発送元:{SERVICE_NAME}
\n
\n
\n 最短翌日発送\n
\n
\n 1点から注文可能\n
\n
\n
\n
\n
\n \n );\n};\n\nexport default SaleProductAlert;\n","import './styles.scss';\nimport { FiChevronLeft } from '@react-icons/all-files/fi/FiChevronLeft';\nimport { FiChevronRight } from '@react-icons/all-files/fi/FiChevronRight';\nimport React, { useCallback, useState } from 'react';\nimport SwipeableViews from 'react-swipeable-views';\n\nconst ImageCarousel: React.FC<{ images: string[] }> = ({ images }) => {\n const [activeIndex, setActiveIndex] = useState(0);\n const handleNext = useCallback(\n (e) => {\n e.preventDefault();\n setActiveIndex((index) => (index === images.length - 1 ? 0 : index + 1));\n },\n [images]\n );\n const handlePrev = useCallback(\n (e) => {\n e.preventDefault();\n setActiveIndex((index) => (index === 0 ? images.length - 1 : index - 1));\n },\n [images]\n );\n\n const [showControls, setShowArrows] = useState(false);\n const handleMouseEnter = useCallback(() => setShowArrows(true), []);\n const handleMouseLeave = useCallback(() => setShowArrows(false), []);\n\n return (\n \n {images.map((image) => (\n
\n \n {images.length > 1 && (\n \n \n \n )}\n {images.length > 1 && (\n \n \n \n )}\n
\n ))}\n \n );\n};\n\nexport default ImageCarousel;\n","import './styles.scss';\nimport React from 'react';\nimport { Button, Col, Modal, Row } from 'reactstrap';\nimport ImageCarousel from './ImageCarousel';\nimport { Product } from '~domain/product/Product';\nimport { ProductType } from '~types/api';\nimport { formatCurrency } from '~utils/formatter';\nimport { getPublicImageUrl } from '~utils/image';\nimport { getProductTypeString } from '~utils/product';\n\ntype ProductDetailModalProps = {\n product: Product;\n productType?: ProductType;\n isOpen: boolean;\n toggle: () => void;\n};\n\nconst ProductDetailModal: React.FC = ({\n product,\n productType,\n isOpen,\n toggle,\n}) => {\n return (\n \n \n \n \n \n \n getPublicImageUrl(item.imageKey, 'large')\n ) ?? []),\n ]}\n />\n
\n \n \n
\n

\n {product.brand.brand_name}\n

\n
\n
{product.product_name}
\n {productType && (\n

{getProductTypeString(productType)}

\n )}\n
\n
\n {product.isSaleProduct && (\n \n {formatCurrency(product.originalUnitPrice)}\n \n )}\n \n {formatCurrency(product.unitPrice)}\n {!product.is_open_price && (\n ({product.wholesaleRate}%)\n )}\n \n {!product.is_open_price && (\n \n 上代 {formatCurrency(product.product_retail_price)}\n \n )}\n {product.is_open_price && (\n オープン価格\n )}\n
\n
\n

\n 商品概要\n

{product.product_content}
\n

\n

\n 商品詳細\n

{product.product_description}
\n

\n

\n サイズ詳細\n

{product.product_size}
\n

\n \n \n \n );\n};\n\nexport default ProductDetailModal;\n","\nvar content = require(\"!!../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".src-view-widgets-ProductCartForm-___styles-modules__add-to-cart{border-radius:0 !important;background-color:#333 !important}.src-view-widgets-ProductCartForm-___styles-modules__add-to-cart:hover{background-color:#000 !important}.src-view-widgets-ProductCartForm-___styles-modules__add-to-cart.src-view-widgets-ProductCartForm-___styles-modules__modal{width:100%}\", \"\"]);\n// Exports\nexports.locals = {\n\t\"add-to-cart\": \"src-view-widgets-ProductCartForm-___styles-modules__add-to-cart\",\n\t\"modal\": \"src-view-widgets-ProductCartForm-___styles-modules__modal\"\n};\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".product-details-view-item-hart-icon::after{pointer-events:none;position:relative;font-family:FontAwesome;font-style:normal;font-size:20px;content:\\\"\\\";color:#6c757d;text-shadow:3px 0 0 #fff,0 3px 0 #fff,-3px 0 0 #fff,0 -3px 0 #fff;z-index:3}.product-details-view-item-penchil-icon::after{pointer-events:none;position:relative;font-family:FontAwesome;font-style:normal;font-size:20px;content:\\\"\\\";color:#6c757d;text-shadow:3px 0 0 #fff,0 3px 0 #fff,-3px 0 0 #fff,0 -3px 0 #fff;z-index:3}.product-details-view-item-follow-link:hover{user-select:none;z-index:3;opacity:.5}.product-details-view-item-hart-icon.followed::after{color:#f08080}.product-details-view-item-penchil-icon.hidden::after{visibility:hidden}.product-details-view-item-penchil-icon.show::after{visibility:visible}.check-mark{content:\\\"\\\";width:10px;height:5px;border-left:2px solid #25af01;border-bottom:2px solid #25af01;transform:rotate(-45deg)}.drop-menu{width:350px}.create-button{width:auto;height:40px}.save-button{width:auto;height:40px}.item:hover{background:#fff}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".button{width:80%}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".list-view-item{position:relative;transition:all .2s ease-out 0s;box-shadow:none;height:100%}.list-view-item-inner{color:#000}@keyframes animateZoom{0%{opacity:0;transform:scale(0.5)}100%{opacity:1;transform:scale(1)}}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".src-view-widgets-TypeSelectModal-___styles-modules__cart-input *{border-radius:0 !important}.src-view-widgets-TypeSelectModal-___styles-modules__add-to-cart{border-radius:0 !important}.src-view-widgets-TypeSelectModal-___styles-modules__size-name{display:flex;align-items:center}.src-view-widgets-TypeSelectModal-___styles-modules__quantity-control,.src-view-widgets-TypeSelectModal-___styles-modules__quantity-control:focus{padding:5px 10px !important;border:none !important;color:inherit !important;background-color:#e8e8e8 !important}.src-view-widgets-TypeSelectModal-___styles-modules__quantity-control:hover,.src-view-widgets-TypeSelectModal-___styles-modules__quantity-control:focus:hover{color:inherit !important;background-color:#969696 !important}.src-view-widgets-TypeSelectModal-___styles-modules__quantity{height:inherit !important;padding:5px 10px !important;text-align:right}\", \"\"]);\n// Exports\nexports.locals = {\n\t\"cart-input\": \"src-view-widgets-TypeSelectModal-___styles-modules__cart-input\",\n\t\"add-to-cart\": \"src-view-widgets-TypeSelectModal-___styles-modules__add-to-cart\",\n\t\"size-name\": \"src-view-widgets-TypeSelectModal-___styles-modules__size-name\",\n\t\"quantity-control\": \"src-view-widgets-TypeSelectModal-___styles-modules__quantity-control\",\n\t\"quantity\": \"src-view-widgets-TypeSelectModal-___styles-modules__quantity\"\n};\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".type-select-modal-img{object-fit:contain;height:158px;width:158px;margin:auto}.type-select-modal-link{text-decoration:underline;color:inherit}.modal-add-to-cart{width:100%;border-radius:0 !important}.type-select-modal-row{align-items:center}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".src-view-widgets-ProductCartForm-OptionSelector-___styles-modules__product-options{display:flex;flex-wrap:wrap}.src-view-widgets-ProductCartForm-OptionSelector-___styles-modules__product-options>*{text-align:center}.src-view-widgets-ProductCartForm-OptionSelector-___styles-modules__product-option img{width:60px;height:60px;object-fit:cover}.src-view-widgets-ProductCartForm-OptionSelector-___styles-modules__product-option .src-view-widgets-ProductCartForm-OptionSelector-___styles-modules__option{border:1px solid #e8e8e8;cursor:pointer}.src-view-widgets-ProductCartForm-OptionSelector-___styles-modules__product-option .src-view-widgets-ProductCartForm-OptionSelector-___styles-modules__option:hover{border:1px solid #333}.src-view-widgets-ProductCartForm-OptionSelector-___styles-modules__product-option .src-view-widgets-ProductCartForm-OptionSelector-___styles-modules__selected{border:1px solid #333}\", \"\"]);\n// Exports\nexports.locals = {\n\t\"product-options\": \"src-view-widgets-ProductCartForm-OptionSelector-___styles-modules__product-options\",\n\t\"product-option\": \"src-view-widgets-ProductCartForm-OptionSelector-___styles-modules__product-option\",\n\t\"option\": \"src-view-widgets-ProductCartForm-OptionSelector-___styles-modules__option\",\n\t\"selected\": \"src-view-widgets-ProductCartForm-OptionSelector-___styles-modules__selected\"\n};\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".src-view-widgets-ProductCartForm-OrderTable-___styles-modules__order-table{display:flex;overflow:hidden}.src-view-widgets-ProductCartForm-OrderTable-___styles-modules__order-table .src-view-widgets-ProductCartForm-OrderTable-___styles-modules__sizes{flex-shrink:0}.src-view-widgets-ProductCartForm-OrderTable-___styles-modules__order-table .src-view-widgets-ProductCartForm-OrderTable-___styles-modules__sizes .src-view-widgets-ProductCartForm-OrderTable-___styles-modules__cell{padding:0 10px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.src-view-widgets-ProductCartForm-OrderTable-___styles-modules__order-table .src-view-widgets-ProductCartForm-OrderTable-___styles-modules__col{max-width:200px;flex-shrink:0;border:1px solid #e8e8e8;border-right:0}.src-view-widgets-ProductCartForm-OrderTable-___styles-modules__order-table .src-view-widgets-ProductCartForm-OrderTable-___styles-modules__shadow{box-shadow:rgba(149,157,165,.2) 8px 0px 24px;z-index:1}.src-view-widgets-ProductCartForm-OrderTable-___styles-modules__order-table .src-view-widgets-ProductCartForm-OrderTable-___styles-modules__cell{display:flex;align-items:center;border-bottom:1px solid #e8e8e8;height:40px}.src-view-widgets-ProductCartForm-OrderTable-___styles-modules__order-table .src-view-widgets-ProductCartForm-OrderTable-___styles-modules__cell:last-child{border-bottom:0}.src-view-widgets-ProductCartForm-OrderTable-___styles-modules__order-table .src-view-widgets-ProductCartForm-OrderTable-___styles-modules__order-table-input{display:flex;overflow:auto}\", \"\"]);\n// Exports\nexports.locals = {\n\t\"order-table\": \"src-view-widgets-ProductCartForm-OrderTable-___styles-modules__order-table\",\n\t\"sizes\": \"src-view-widgets-ProductCartForm-OrderTable-___styles-modules__sizes\",\n\t\"cell\": \"src-view-widgets-ProductCartForm-OrderTable-___styles-modules__cell\",\n\t\"col\": \"src-view-widgets-ProductCartForm-OrderTable-___styles-modules__col\",\n\t\"shadow\": \"src-view-widgets-ProductCartForm-OrderTable-___styles-modules__shadow\",\n\t\"order-table-input\": \"src-view-widgets-ProductCartForm-OrderTable-___styles-modules__order-table-input\"\n};\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__col{width:150px;cursor:pointer;flex-shrink:0;border-top:1px solid #e8e8e8;border-bottom:1px solid #e8e8e8}.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__col:last-child{border-right:1px solid #e8e8e8}.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__col.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__selected{border:1px solid #333;border-right:1px solid #333}.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__shadow{box-shadow:rgba(149,157,165,.2) 8px 0px 24px;z-index:1}.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__cell{display:flex;align-items:center;border-bottom:1px solid #e8e8e8;height:40px;padding:0 10px;justify-content:center}.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__cell *{margin-right:5px}.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__cell .src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__color{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__cell:last-child{border-bottom:0}.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__cell.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__cart{display:flex;align-items:center}.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__cell.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__cart .src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__add-to-cart{width:60px}.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__cell.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__cart .src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__add-to-cart:disabled,.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__cell.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__cart .src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__add-to-cart:hover:disabled{color:#969696;background-color:#e8e8e8;border:1px solid #e8e8e8}.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__cell.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__not-on-sale{background-color:#f0f0f0}.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__qty{display:flex;align-items:center}.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__qty *{margin-right:5px}.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__qty *:last-child{margin-right:0}.src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__cart-done::after{font-family:\\\"FontAwesome\\\";content:\\\"\\\"}\", \"\"]);\n// Exports\nexports.locals = {\n\t\"col\": \"src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__col\",\n\t\"selected\": \"src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__selected\",\n\t\"shadow\": \"src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__shadow\",\n\t\"cell\": \"src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__cell\",\n\t\"color\": \"src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__color\",\n\t\"cart\": \"src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__cart\",\n\t\"add-to-cart\": \"src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__add-to-cart\",\n\t\"not-on-sale\": \"src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__not-on-sale\",\n\t\"qty\": \"src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__qty\",\n\t\"cart-done\": \"src-view-widgets-ProductCartForm-OrderTable-OrderTableCol-___styles-modules__cart-done\"\n};\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".src-view-widgets-ProductCartForm-SingleRow-___styles-modules__single-type-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e6e6e6;border-right:1px solid #e6e6e6;border-left:1px solid #e6e6e6;padding:5px 10px}.src-view-widgets-ProductCartForm-SingleRow-___styles-modules__single-type-row:last-child{border-bottom:1px solid #e6e6e6}.src-view-widgets-ProductCartForm-SingleRow-___styles-modules__qty{display:flex;align-items:center}.src-view-widgets-ProductCartForm-SingleRow-___styles-modules__qty *{margin-right:5px}.src-view-widgets-ProductCartForm-SingleRow-___styles-modules__qty *:last-child{margin-right:0}\", \"\"]);\n// Exports\nexports.locals = {\n\t\"single-type-row\": \"src-view-widgets-ProductCartForm-SingleRow-___styles-modules__single-type-row\",\n\t\"qty\": \"src-view-widgets-ProductCartForm-SingleRow-___styles-modules__qty\"\n};\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".src-view-widgets-ProductCartForm-TypeRows-___styles-modules__single-type-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e6e6e6;border-right:1px solid #e6e6e6;border-left:1px solid #e6e6e6;padding:5px 10px}.src-view-widgets-ProductCartForm-TypeRows-___styles-modules__single-type-row:last-child{border-bottom:1px solid #e6e6e6}.src-view-widgets-ProductCartForm-TypeRows-___styles-modules__qty{display:flex;align-items:center}.src-view-widgets-ProductCartForm-TypeRows-___styles-modules__qty *{margin-right:5px}.src-view-widgets-ProductCartForm-TypeRows-___styles-modules__qty *:last-child{margin-right:0}.src-view-widgets-ProductCartForm-TypeRows-___styles-modules__total-qty{width:130px;text-align:center;padding:5px 0;display:flex;align-items:center}\", \"\"]);\n// Exports\nexports.locals = {\n\t\"single-type-row\": \"src-view-widgets-ProductCartForm-TypeRows-___styles-modules__single-type-row\",\n\t\"qty\": \"src-view-widgets-ProductCartForm-TypeRows-___styles-modules__qty\",\n\t\"total-qty\": \"src-view-widgets-ProductCartForm-TypeRows-___styles-modules__total-qty\"\n};\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".product-detail-modal{max-width:1200px;max-height:600px;overflow:hidden}.product-detail-modal .product-detail-modal-inner{height:100%;overflow:hidden}.product-detail-modal .product-details{height:100%;overflow:auto}@media screen and (max-width: 991px){.product-detail-modal{overflow:auto;max-height:100%}.product-detail-modal .product-detail-modal-inner{height:auto;overflow:auto}.product-detail-modal .product-details{height:auto}}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".product-detail-modal-swipeable-images{position:absolute;top:0;width:100%;height:100%}.product-detail-modal-swipeable-images div{height:100%}.product-detail-modal-swipeable-images .product-detail-modal-swipeable-next,.product-detail-modal-swipeable-images .product-detail-modal-swipeable-prev{position:absolute;top:50%;transform:translateY(-50%);padding:5px 5px;background-color:#fff;opacity:.3}.product-detail-modal-swipeable-images .product-detail-modal-swipeable-next.mouseover,.product-detail-modal-swipeable-images .product-detail-modal-swipeable-prev.mouseover{opacity:.8}.product-detail-modal-swipeable-images .product-detail-modal-swipeable-next:hover,.product-detail-modal-swipeable-images .product-detail-modal-swipeable-prev:hover{opacity:1}.product-detail-modal-swipeable-images .product-detail-modal-swipeable-next{right:0}.product-detail-modal-swipeable-images .product-detail-modal-swipeable-prev{left:0}.product-detail-modal-swipeable-images img{width:100%;height:100%;object-fit:cover}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","export default any>(fn: T, interval: number) => {\n let timer: NodeJS.Timeout;\n return (...args: T extends (...args: infer P) => void ? P : never) => {\n clearTimeout(timer);\n timer = setTimeout(() => {\n fn(...args);\n }, interval);\n };\n};\n","\nvar content = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!../../../../../node_modules/postcss-loader/src/index.js??ref--5-oneOf-4-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-4-3!./styles.modules.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".src-view-widgets-ProductListViewItem-DetailViewItem-___styles-modules__product-description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.src-view-widgets-ProductListViewItem-DetailViewItem-___styles-modules__detail-view-item-thumbnails{width:60px;height:60px;cursor:pointer;border:1px solid #d3d3d3}.src-view-widgets-ProductListViewItem-DetailViewItem-___styles-modules__detail-view-item-thumbnails:hover{border:1px solid #000}.src-view-widgets-ProductListViewItem-DetailViewItem-___styles-modules__detail-view-item-thumbnails img{width:100%;height:100%;object-fit:contain}\", \"\"]);\n// Exports\nexports.locals = {\n\t\"product-description\": \"src-view-widgets-ProductListViewItem-DetailViewItem-___styles-modules__product-description\",\n\t\"detail-view-item-thumbnails\": \"src-view-widgets-ProductListViewItem-DetailViewItem-___styles-modules__detail-view-item-thumbnails\"\n};\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".product-list-view-item .item-link{color:inherit}.product-list-view-item .thumbnail-product{width:100%;height:100%;position:absolute;top:0;left:0;object-fit:cover}.product-list-view-item .information{text-align:left}.product-list-view-item .information .item-title{margin:0;width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.product-list-view-item .information .item-title:empty{height:20px;background-color:#e8e8e8}.product-list-view-item .information .content{font-weight:600}.product-list-view-item .information .item-title a{display:block;color:#323232}.product-list-view-item .information .item-title a:hover,.product-list-view-item .information .item-title a:focus{color:#000}.retail-price .sale-wholesale-rate{color:red}.product-list-view-item-image{position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:0;padding-top:100%}.product-list-view-item-image:empty{background-color:#e8e8e8}.product-list-view-item-add-cart{position:absolute;bottom:1rem;display:flex;width:100%;justify-content:center}.product-list-view-item-add-cart>button{background-color:#fff;border:1px solid #e6e6e6;padding:.5rem 2rem}.product-list-view-item .description{display:none}.product-list-view-item.inner-border .list-view-item-inner{border:1px solid #e6e6e6}.product-list-view-item .border-bottom{border-bottom:1px solid #e6e6e6}.product-list-view-item .lock-icon::after{font-family:\\\"FontAwesome\\\";font-style:normal;content:\\\"\\\";margin-left:5px}.product-new-mark{margin-top:10px;margin-bottom:0px}.product-list-view-item-brand{color:inherit;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.product-list-view-item-brand:hover{text-decoration:underline}.product-long-list-view-item .item-link{color:inherit}.product-long-list-view-item .product-list-view-item-image{display:flex;position:relative;height:0px;flex-shrink:0;width:100%;padding-top:calc(133.333% - 0px)}@media screen and (max-width: 991px){.product-long-list-view-item .product-list-view-item-image{padding-top:100%}}.product-long-list-view-item .thumbnail-product{position:absolute;top:0px;left:0px;width:100%;height:100%;object-fit:cover}.product-long-list-view-item .information{text-align:left}.product-long-list-view-item .information .item-title{font-weight:500;line-height:22px;margin:0;width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.product-long-list-view-item .information .item-title:empty{height:20px;background-color:#e8e8e8}.product-long-list-view-item .information .content{font-weight:600}.product-long-list-view-item .information .item-title a{display:block;color:#323232}.product-long-list-view-item .information .item-title a:hover,.product-long-list-view-item .information .item-title a:focus{color:#000}.product-long-list-view-item .list-view-price{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;margin-bottom:10px}.product-long-list-view-item .product-list-view-item-add-cart{position:absolute;bottom:1rem;display:flex;width:100%;justify-content:center}.product-long-list-view-item .product-list-view-item-add-cart>button{background-color:#fff;border:1px solid #e6e6e6;padding:.5rem 2rem}.product-long-list-view-item .description{display:none}.product-long-list-view-item .border-bottom{border-bottom:1px solid #e6e6e6}.product-long-list-view-item .product-list-view-item-brand{color:inherit;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.product-long-list-view-item .product-list-view-item-brand:hover{text-decoration:underline}.product-long-list-view-item .lock-icon::after{font-family:\\\"FontAwesome\\\";font-style:normal;content:\\\"\\\";margin-left:5px}.product-long-list-view-item.inner-border .list-view-item-inner{border:1px solid #e6e6e6}.product-list-view-item-heart-icon::after{position:absolute;top:10px;right:10px;font-family:FontAwesome;font-style:normal;font-size:20px;content:\\\"\\\";color:#6c757d;text-shadow:3px 0 0 #fff,0 3px 0 #fff,-3px 0 0 #fff,0 -3px 0 #fff;z-index:3}.product-list-view-item-heart-icon.followed::after{color:#f08080}.product-list-view-item-image:hover::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none;content:\\\"\\\"}.product-list-view-item-follow-link:hover{z-index:3;opacity:.5}.favorite-drop-down-item{position:absolute;top:40px;right:18px;z-index:3}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".product-list-view-item-small .item-link{color:inherit}.product-list-view-item-small .thumbnail-product{width:100%;height:100%;position:absolute;top:0;left:0;object-fit:cover}.product-list-view-item-small .information{text-align:left}.product-list-view-item-small .information .item-title{height:70px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.product-list-view-item-small .information .item-title:empty{height:20px;background-color:#e8e8e8}.product-list-view-item-small .information .content{font-weight:600}.product-list-view-item-small .information .item-title a{color:#323232}.product-list-view-item-small .information .item-title a:hover,.product-list-view-item-small .information .item-title a:focus{color:#000}.retail-price .sale-wholesale-rate{color:red}.product-list-view-item-image{position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:0;padding-top:calc(133.333% - 0px)}.product-list-view-item-image:empty{background-color:#e8e8e8}.product-list-view-item-add-cart{position:absolute;bottom:1rem;display:flex;width:100%;justify-content:center}.product-list-view-item-add-cart>button{background-color:#fff;border:1px solid #e6e6e6;padding:.5rem 2rem}.product-list-view-item-small .description{display:none}.product-list-view-item-small.inner-border .list-view-item-inner{border:1px solid #e6e6e6}.product-list-view-item-small .border-bottom{border-bottom:1px solid #e6e6e6}.product-list-view-item-small .lock-icon::after{font-family:\\\"FontAwesome\\\";font-style:normal;content:\\\"\\\";margin-left:5px}.product-new-mark{margin-top:10px;margin-bottom:0px}.product-list-view-item-brand{color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-list-view-item-brand:hover{text-decoration:underline}.product-long-list-view-item-small .item-link{color:inherit}.product-long-list-view-item-small .product-list-view-item-image{display:flex;position:relative;height:0px;flex-shrink:0;width:100%;padding-top:calc(133.333% - 0px)}@media screen and (max-width: 991px){.product-long-list-view-item-small .product-list-view-item-image{padding-top:calc(133.333% - 0px)}}.product-long-list-view-item-small .thumbnail-product{position:absolute;top:0px;left:0px;width:100%;height:100%;object-fit:cover}.product-long-list-view-item-small .information{text-align:left}.product-long-list-view-item-small .information .item-title{height:50px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.product-long-list-view-item-small .information .item-title:empty{height:20px;background-color:#e8e8e8}.product-long-list-view-item-small .information .content{font-weight:600}.product-long-list-view-item-small .information .item-title a{display:block;color:#323232}.product-long-list-view-item-small .information .item-title a:hover,.product-long-list-view-item-small .information .item-title a:focus{color:#000}.product-long-list-view-item-small .list-view-price{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;margin-bottom:10px}.product-long-list-view-item-small .product-list-view-item-add-cart{position:absolute;bottom:1rem;display:flex;width:100%;justify-content:center}.product-long-list-view-item-small .product-list-view-item-add-cart>button{background-color:#fff;border:1px solid #e6e6e6;padding:.5rem 2rem}.product-long-list-view-item-small .description{display:none}.product-long-list-view-item-small .border-bottom{border-bottom:1px solid #e6e6e6}.product-long-list-view-item-small .product-list-view-item-brand{color:inherit;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.product-long-list-view-item-small .product-list-view-item-brand:hover{text-decoration:underline}.product-long-list-view-item-small .lock-icon::after{font-family:\\\"FontAwesome\\\";font-style:normal;content:\\\"\\\";margin-left:5px}.product-long-list-view-item-small.inner-border .list-view-item-inner{border:1px solid #e6e6e6}.product-list-view-item-heart-icon::after{position:absolute;top:10px;right:10px;font-family:FontAwesome;font-style:normal;font-size:20px;content:\\\"\\\";color:#6c757d;text-shadow:3px 0 0 #fff,0 3px 0 #fff,-3px 0 0 #fff,0 -3px 0 #fff;z-index:3}.product-list-view-item-heart-icon.followed::after{color:#f08080}.product-list-view-item-image:hover::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none;content:\\\"\\\"}.product-list-view-item-follow-link:hover{z-index:3;opacity:.5}.favorite-drop-down-item{position:absolute;top:40px;right:18px;z-index:3}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","import { UploadFile } from 'antd/lib/upload/interface';\nimport { Storage } from 'aws-amplify';\nimport { Entity } from '~core/domain/Entity';\nimport { PartialRequired } from '~types/utils';\n\nexport type VideoType = {\n directory: string;\n} & PartialRequired;\n\ntype VideoTypeJson = VideoType;\n\nexport class Video extends Entity {\n private constructor(params: VideoType) {\n super(params);\n }\n\n static async create({ ...video }: VideoTypeJson) {\n return new Video({\n ...video,\n size: video.size ?? 0,\n type: video.type ?? 'video',\n // thumbUrl:\n // (video.originFileObj &&\n // (await Video.generateThumbnailByFile(video.originFileObj as File))) ||\n // (video.url && (await Video.generateThumbnailByUrl(video.url))),\n });\n }\n\n private get extension() {\n return this.name && /\\.([^.]*)$/.exec(this.name)?.[1];\n }\n\n async upload() {\n const { key } = (await Storage.put(\n `${this.directory}${this.uid}.${this.extension}`,\n this.originFileObj\n )) as { key: string };\n\n return key;\n }\n\n static async generateThumbnailByFile(file: File) {\n return new Promise((resolve, reject) => {\n try {\n const canvas = document.createElement('canvas');\n const video = document.createElement('video');\n\n video.autoplay = true;\n video.muted = true;\n video.src = URL.createObjectURL(file);\n\n video.onloadeddata = () => {\n const ctx = canvas.getContext('2d');\n canvas.width = video.videoWidth;\n canvas.height = video.videoHeight;\n\n ctx?.drawImage(video, 0, 0, video.videoWidth, video.videoHeight);\n video.pause();\n\n const thumbnail = canvas.toDataURL('image/png');\n return resolve(thumbnail);\n };\n } catch (error) {\n reject(error);\n }\n });\n }\n\n static async generateThumbnailByUrl(url: string) {\n const response = await fetch(url).catch(() => undefined);\n if (response?.status !== 200) {\n return;\n }\n\n const blob = await response.blob();\n const fileName = url.match(/.+\\/([^?]+)+\\??.*$/)?.[1];\n\n try {\n const file = new File([blob], fileName ?? 'movie.mp4', {\n type: 'video/mp4',\n });\n const thumbnail = await Video.generateThumbnailByFile(file);\n return thumbnail;\n } catch (error) {\n console.error(error);\n return;\n }\n }\n\n async delete() {\n const { key } = await Storage.remove(\n `${this.directory}${this.uid}.${this.extension}`\n );\n\n return key;\n }\n}\n","import { createUseCase } from '~core/usecase/createUseCase';\nimport { getPersonalizedProducts as getPersonalizedProductsQuery } from '~graphql/queries';\nimport {\n changedOffset,\n changedPage,\n recievedProducts,\n selectProductListState,\n} from '~redux/search/product';\nimport { ProductReadModel } from '~types/api';\nimport { executeQuery } from '~utils/graphql';\nimport { warn } from '~utils/log';\nimport { getFlag } from '~view/contexts/FlagsContext';\n\nexport const getPersonalizedProducts = createUseCase(\n 'search/product/getPersonalizedProducts',\n async (\n {\n accountId,\n listId,\n products,\n }: { accountId: string; listId: string; products: ProductReadModel[] },\n { dispatch }\n ) => {\n try {\n const flag = getFlag<'personalize' | 'hybrid'>(\n 'productListSort',\n 'personalize'\n );\n const res = await executeQuery(getPersonalizedProductsQuery, {\n userId: accountId,\n itemIds: products.map((product) => product.id!),\n personalizeRate: flag === 'hybrid' ? 50 : undefined,\n });\n const itemIds = (res.data?.getPersonalizedProducts ?? []) as string[];\n if (itemIds.length !== products.length) {\n throw new Error();\n }\n dispatch(\n recievedProducts({\n listId,\n products: itemIds.map(\n (itemId: string) =>\n products.find((product) => product.id === itemId)!\n ),\n })\n );\n } catch (e: any) {\n warn(e);\n dispatch(\n recievedProducts({\n listId,\n products,\n })\n );\n }\n }\n);\n\nconst MAX_OFFSET = 500;\nexport const paginate = createUseCase(\n 'search/product/paginate',\n async (\n { listId, page }: { listId: string; page: number },\n { dispatch, getState }\n ) => {\n const state = getState();\n const listState = selectProductListState(state, listId);\n if (!listState) {\n return;\n }\n let offset = 0;\n for (let i = 1; i <= page; i++) {\n const length = listState.itemsPerPage * i;\n if (length > offset + MAX_OFFSET) {\n offset = (i - 1) * listState.itemsPerPage - 1;\n }\n }\n if (offset != listState.offset) {\n dispatch(changedOffset({ listId, offset }));\n }\n dispatch(changedPage({ listId, page }));\n }\n);\n","import { UploadFile } from 'antd/lib/upload/interface';\nimport { Storage } from 'aws-amplify';\n// import { deleteCollectionVideoKey } from '../../graphql/mutations';\nimport { Entity } from '~core/domain/Entity';\nimport { Video } from '~domain/file/Video';\nimport { PartialOptionaled } from '~types/utils';\n\nexport type CollectionVideoType = {\n videoKey: string;\n collection_id: string;\n brand_id: string;\n video: Video;\n};\n\ntype CollectionVideoJson = Omit &\n PartialOptionaled, 'size' | 'type'>;\n\nexport class CollectionVideo extends Entity {\n static limitSize = 78643200;\n static shortenLimitSize = `${CollectionVideo.limitSize / 1024 ** 2}MB`;\n\n private constructor(params: CollectionVideoType) {\n super(params);\n }\n\n static async create({\n uid,\n size,\n url,\n name,\n type,\n ...params\n }: CollectionVideoJson) {\n const video = await Video.create({\n uid,\n name,\n url,\n size: size ?? 0,\n type: type ?? 'video',\n directory: CollectionVideo.getDirectory({\n brand_id: params.brand_id,\n collection_id: params.collection_id,\n }),\n originFileObj: params.originFileObj,\n });\n\n return new CollectionVideo({\n ...params,\n video,\n });\n }\n\n static async createByVideoKey({\n videoKey,\n uid,\n brand_id,\n collection_id,\n }: Pick<\n CollectionVideoJson,\n 'videoKey' | 'uid' | 'brand_id' | 'collection_id'\n >) {\n const signedUrl = await Storage.get(\n `${CollectionVideo.getDirectory({\n brand_id,\n collection_id,\n })}${videoKey}`\n );\n\n return await CollectionVideo.create({\n brand_id,\n collection_id,\n uid: uid,\n name: videoKey,\n status: 'done',\n url: signedUrl as string,\n videoKey,\n });\n }\n\n static getPath({\n brandId,\n collectionId,\n videoKey,\n }: {\n brandId: string;\n collectionId: string;\n videoKey: string;\n }) {\n return `${CollectionVideo.getDirectory({\n brand_id: brandId,\n collection_id: collectionId,\n })}${videoKey}`;\n }\n\n private static getDirectory(params: {\n brand_id: string;\n collection_id: string;\n }) {\n return `videos/collection/${params.brand_id}/${params.collection_id}/`;\n }\n\n get uid() {\n return this.video.uid;\n }\n\n get size() {\n return this.video.size;\n }\n\n get name() {\n return this.video.name;\n }\n\n get type() {\n return this.video.type;\n }\n\n get url() {\n return this.video.url;\n }\n\n get thumbUrl() {\n return this.video.thumbUrl;\n }\n\n async upload() {\n const key = await this.video.upload();\n const directory = CollectionVideo.getDirectory({\n brand_id: this.brand_id,\n collection_id: this.collection_id,\n });\n const fileName = key.replace(directory, '');\n return await CollectionVideo.create({\n ...this.toJson(),\n name: fileName,\n videoKey: fileName,\n });\n }\n\n async delete() {\n await this.video.delete();\n }\n\n toJson(): CollectionVideoJson {\n return {\n videoKey: this.videoKey,\n brand_id: this.brand_id,\n collection_id: this.collection_id,\n uid: this.video.uid,\n size: this.video.size,\n name: this.video.name,\n fileName: this.video.fileName,\n lastModified: this.video.lastModified,\n lastModifiedDate: this.video.lastModifiedDate,\n url: this.video.url,\n status: this.video.status,\n percent: this.video.percent,\n originFileObj: this.video.originFileObj,\n response: this.video.response,\n error: this.video.error,\n linkProps: this.video.linkProps,\n type: this.video.type,\n xhr: this.video.xhr,\n preview: this.video.preview,\n };\n }\n}\n","import { API, graphqlOperation, Storage } from 'aws-amplify';\nimport { Dispatch } from 'redux';\nimport { searchProductswithimagekey } from '../../../graphql/custom_queries';\nimport * as customQueries from '../../../graphql/custom_queries';\nimport * as queries from '../../../graphql/queries';\nimport { Product } from '../types';\nimport {\n addBrandProducts,\n getBrandInfoStart,\n receiveBrandDetails,\n getBrandProductsStart,\n receiveBrandProductsNextToken,\n getSignedBrandProductsStart,\n setBrandProducts,\n} from './../actions/details';\nimport { executeQuery } from '~utils/graphql';\nimport { getImageUrl } from '~utils/image';\nimport { getQueryFilter } from '~utils/search';\n\nexport const getBrandInfo = (brandId: string, unAuth?: boolean) => {\n return async (dispatch: Dispatch) => {\n dispatch(getBrandInfoStart());\n\n const data = await executeQuery(\n unAuth ? customQueries.getBrandUnAuth : customQueries.getBrand,\n {\n id: brandId,\n },\n unAuth\n );\n const brandData = data.data.getBrandReadModel;\n\n const signedUrl = await getImageUrl(brandData.brand_imageKey);\n brandData.imageUrl = signedUrl;\n const iconUrl = await getImageUrl(brandData.brand_icon_imageKey);\n brandData.iconUrl = iconUrl;\n if (brandData.brand_modal_imageKeys?.length) {\n const modalImageUrl = await Promise.all(\n brandData.brand_modal_imageKeys?.map(async (imageKey: string) =>\n imageKey ? await getImageUrl(imageKey) : ''\n )\n );\n brandData.modalImageUrl = modalImageUrl;\n }\n\n dispatch(receiveBrandDetails(brandData));\n };\n};\n\nexport const getSaleBrandInfo = () => {\n return async (dispatch: Dispatch) => {\n const response = await API.graphql(\n graphqlOperation(queries.searchBrands, {\n filter: { id: { eq: process.env.REACT_APP_HOMULA_BRAND_ID } },\n sort: { direction: 'asc', field: 'createdAt' },\n })\n );\n const {\n data: {\n searchBrands: { items: brands },\n },\n } = response;\n const brand = brands[0];\n\n if (!brand || !brand.id) {\n return;\n }\n\n dispatch(getBrandInfo(brand.id));\n };\n};\n\nexport const getBrandInfoPrevie = (brandId: string) => {\n return async (dispatch: Dispatch) => {\n dispatch(getBrandInfoStart());\n\n const data = await API.graphql(\n graphqlOperation(queries.getBrand, {\n id: brandId,\n })\n );\n const brandData = data.data.getBrand;\n const signedUrl = await Storage.get(brandData.brand_imageKey);\n brandData.imageUrl = signedUrl;\n\n dispatch(receiveBrandDetails(brandData));\n };\n};\n\ntype Options = {\n sort?: {\n field: string;\n direction: 'asc' | 'desc';\n };\n filter?: {\n product_category?: { match: string };\n id?: { eq?: string; ne?: string };\n };\n limit?: number;\n nextToken?: string;\n};\n\nexport const getProducts = (\n brandId: string,\n keyword?: string,\n options?: Options,\n all?: boolean,\n unAuth?: boolean\n) => {\n return async (dispatch: Dispatch) => {\n dispatch(getBrandProductsStart());\n\n let filter: any = {\n ...options?.filter,\n product_brand_id: { eq: brandId },\n // product_public_status: { eq: '公開' },\n suspended: { ne: true },\n };\n\n if (!all) {\n filter = {\n ...filter,\n product_public_status: { eq: '公開' },\n };\n }\n\n if (keyword) {\n filter = {\n ...filter,\n ...{\n or: [\n { product_name: { match: keyword } },\n { product_name: { wildcard: `*${keyword}*` } },\n ],\n },\n };\n }\n\n const products: any[] = [];\n let _nextToken = options?.nextToken?.replaceAll('Infinity', '\"Infinity\"');\n do {\n const productData: any = await executeQuery(\n unAuth\n ? customQueries.searchProductswithimagekeyUnAuth\n : searchProductswithimagekey,\n {\n ...options,\n filter,\n nextToken: _nextToken,\n },\n unAuth\n );\n const {\n data: {\n searchProducts: { nextToken, items },\n },\n } = productData;\n _nextToken = nextToken;\n products.push(...items);\n } while (all && _nextToken);\n\n dispatch(receiveBrandProductsNextToken(_nextToken));\n getSignedProducts(products, !options?.nextToken)(dispatch);\n };\n};\n\nexport const getProductsPreview = (brandId: string, options?: Options) => {\n return async (dispatch: Dispatch) => {\n dispatch(getBrandProductsStart());\n\n if (options?.nextToken) {\n options = {\n ...options,\n nextToken: options.nextToken.replaceAll('Infinity', '\"Infinity\"'),\n };\n }\n\n const productData = await API.graphql(\n graphqlOperation(customQueries.searchProductswithimagekeyPreview, {\n ...options,\n filter: {\n ...options?.filter,\n product_brand_id: { eq: brandId },\n product_public_status: { eq: '公開' },\n suspended: { ne: true },\n },\n })\n );\n const {\n data: {\n searchProducts: { nextToken, items },\n },\n } = productData;\n\n dispatch(receiveBrandProductsNextToken(nextToken));\n getSignedProducts(items, !options?.nextToken)(dispatch);\n };\n};\n\nexport const getSignedProducts = (products: Product[], replace?: boolean) => {\n return async (dispatch: Dispatch) => {\n dispatch(getSignedBrandProductsStart());\n\n const signedProducts = await Promise.all(\n products.map(async (item: any) => {\n if (item.imageKeys?.items[0]?.imageKey) {\n item.imageUrl = await getImageUrl(item.imageKeys?.items[0]?.imageKey);\n } else {\n item.imageUrl = 'https://placehold.jp/200x200.png?text=No image';\n }\n return item;\n })\n );\n\n if (replace) {\n dispatch(setBrandProducts(signedProducts));\n return;\n }\n\n dispatch(addBrandProducts(signedProducts));\n };\n};\n","import { useEffect } from 'react';\nimport { useHeadContext, HeadContent } from '~view/contexts/headContext';\n\nexport const useHeadContent = (headContent?: HeadContent) => {\n const { setHeadContent } = useHeadContext();\n useEffect(() => {\n if (!headContent) {\n return;\n }\n if (process.env.NODE_ENV === 'development') {\n headContent.title = '[DEV] ' + headContent.title;\n }\n setHeadContent(headContent);\n }, [JSON.stringify(headContent)]);\n};\n","import { GraphQLResult } from '@aws-amplify/api-graphql';\nimport { API, graphqlOperation } from 'aws-amplify';\nimport { Entity } from '~core/domain/Entity';\nimport { CollectionVideo } from '~domain/product/CollectionVideo';\nimport { Brand, ProductType } from '~redux/brand/types';\nimport { Collection as CollectionJson } from '~redux/collection/types';\nimport {\n Collection as CollectionResponseJson,\n CreateCollectionInput,\n CreateProductCollectionInput,\n GetCollectionQuery,\n ListProductsQuery,\n ListProductsQueryVariables,\n ProductCollection as ProductCollectionJson,\n SearchProductCollectionsQuery,\n SearchProductCollectionsQueryVariables,\n UpdateProductCollectionInput,\n} from '~types/api';\nimport { removeItems } from '~utils/graphql';\nimport * as mutations from '../../graphql/mutations';\nimport * as queries from '../../graphql/queries';\nimport { CollectionImage } from './CollectionImage';\nimport { Product } from './Product';\nimport { ProductBase } from './base/ProductBase';\n\ntype ProductCollection = {\n id?: string;\n collection_id?: string;\n product_id: string;\n product_type_id?: string;\n quantity: number;\n product?: ProductBase;\n productType?: ProductType;\n owner: string;\n};\n\ntype CollectionType = {\n id?: string;\n brand_id: string;\n name: string;\n description: string;\n image_key: string;\n imageUrl?: string;\n video_key?: string;\n productCollections?: ProductCollection[];\n published: boolean;\n preorder?: boolean | null;\n is_consign?: boolean | null;\n season?: string | null;\n season_year?: number | null;\n brand?: Brand;\n owner: string;\n createdAt?: string;\n display_order?: number | null;\n};\n\nexport class Collection extends Entity {\n private constructor(params: CollectionType) {\n super(params);\n }\n\n static create({ productCollections, ...collection }: CollectionJson) {\n return new Collection({\n ...collection,\n productCollections: productCollections?.map(\n ({ product, ...productCollection }) => ({\n ...productCollection,\n product:\n product &&\n (product instanceof ProductBase\n ? product\n : Product.create(product)),\n })\n ),\n });\n }\n\n static async createById(id: string) {\n const {\n data: { getCollection },\n } = (await API.graphql(\n graphqlOperation(queries.getCollection, {\n id,\n })\n )) as {\n data: GetCollectionQuery;\n };\n\n return getCollection\n ? Collection.create(removeItems(getCollection))\n : undefined;\n }\n\n static async register(\n collectionInput: Omit\n ) {\n const response = await (API.graphql(\n graphqlOperation(mutations.createCollection, {\n input: { ...collectionInput },\n })\n ) as Promise<\n GraphQLResult<{\n createCollection: CollectionResponseJson;\n }>\n >);\n\n if (!response.data?.createCollection) {\n return undefined;\n }\n\n return Collection.create(removeItems(response.data.createCollection));\n }\n\n static async createByCopiedBrand(\n brandId: string\n ): Promise {\n const getRecursively = async (\n nextToken?: string\n ): Promise<\n NonNullable['items']>\n > => {\n const {\n data: { listProducts },\n } = (await API.graphql(\n graphqlOperation(queries.listProducts, {\n filter: {\n copied_brand_id: {\n eq: brandId,\n },\n } as ListProductsQueryVariables['filter'],\n nextToken,\n limit: 10000,\n })\n )) as {\n data: ListProductsQuery;\n };\n\n if (listProducts?.nextToken) {\n return [\n ...(listProducts.items ?? []),\n ...(await getRecursively(listProducts.nextToken)),\n ];\n }\n\n return listProducts?.items ?? [];\n };\n\n const listProducts = await getRecursively();\n\n const product = listProducts?.find(\n (product) => product?.collections?.items?.length ?? 0 > 0\n );\n const targetCollectionId = (product?.collections?.items?.find(\n (collection) => collection\n ) as ProductCollectionJson | undefined)?.collection_id;\n\n return targetCollectionId\n ? Collection.createById(targetCollectionId)\n : undefined;\n }\n\n async updateCollectionImage(imageFile: CollectionImage) {\n const response = await (API.graphql(\n graphqlOperation(mutations.updateCollection, {\n input: { id: this.id, image_key: imageFile.imageKey },\n })\n ) as Promise<\n GraphQLResult<{\n updateCollection: CollectionResponseJson;\n }>\n >);\n\n if (!response.data?.updateCollection) {\n return undefined;\n }\n\n return Collection.create(removeItems(response.data.updateCollection));\n }\n\n async setCollectionVideo(videoFile: CollectionVideo) {\n const uploadedImage = await videoFile.upload();\n const video_key = uploadedImage.videoKey;\n const response = await (API.graphql(\n graphqlOperation(mutations.updateCollection, {\n input: { id: this.id, video_key },\n })\n ) as Promise<\n GraphQLResult<{\n updateCollection: CollectionResponseJson;\n }>\n >);\n\n if (!response.data?.updateCollection) {\n return undefined;\n }\n\n return Collection.create(removeItems(response.data.updateCollection));\n }\n\n async addProduct(\n collectionProduct: Omit<\n CreateProductCollectionInput,\n 'id' | 'collection_id'\n >\n ) {\n const {\n data: { searchProductCollections: res },\n } = (await API.graphql(\n graphqlOperation(queries.searchProductCollections, {\n filter: {\n collection_id: { eq: this.id },\n product_id: { eq: collectionProduct.product_id },\n product_type_id: collectionProduct.product_type_id && {\n eq: collectionProduct.product_type_id,\n },\n } as SearchProductCollectionsQueryVariables['filter'],\n limit: 10000,\n })\n )) as {\n data: SearchProductCollectionsQuery;\n };\n\n //商品が既に存在する場合は数量を更新\n if (res?.items?.length) {\n const pc = res.items[0];\n const result = (await API.graphql(\n graphqlOperation(mutations.updateProductCollection, {\n input: {\n id: pc!.id,\n quantity: (pc?.quantity ?? 0) + collectionProduct.quantity,\n } as UpdateProductCollectionInput,\n })\n )) as GraphQLResult<{\n updateProductCollection: ProductCollectionJson;\n }>;\n // console.log(result);\n return result?.data?.updateProductCollection;\n }\n\n //商品をコレクションに追加\n const result = (await API.graphql(\n graphqlOperation(mutations.createProductCollection, {\n input: {\n ...collectionProduct,\n collection_id: this.id,\n },\n })\n )) as GraphQLResult<{\n createProductCollection: ProductCollectionJson;\n }>;\n // console.log(result);\n return result.data?.createProductCollection;\n }\n\n async getVideo() {\n return this.video_key && this.id\n ? await CollectionVideo.createByVideoKey({\n brand_id: this.brand_id,\n collection_id: this.id,\n videoKey: this.video_key,\n uid: this.video_key,\n })\n : undefined;\n }\n\n get isSaleCollection() {\n return this.productCollections?.some(\n ({ product }) => !!product?.isSaleProduct || product?.brand.is_sale_brand\n );\n }\n\n get hasOpenPrice() {\n return this.productCollections?.some((pc) => pc.product?.is_open_price);\n }\n\n // セール前価格\n get originalPrice() {\n return (\n this.productCollections?.reduce(\n (prev, { product, quantity }) =>\n prev + (product?.originalUnitPrice ?? 0) * quantity,\n 0\n ) ?? 0\n );\n }\n\n // セール後価格(セール品ではない場合はセール前価格と同じ)\n // memo: ¥6,638(上代:¥13,980)\n get price() {\n return (\n this.productCollections?.reduce(\n (prev, { product, quantity }) =>\n prev + (product?.unitPrice ?? 0) * quantity,\n 0\n ) ?? 0\n );\n }\n\n // セール前卸掛率\n // ROUND(sum(product_price*掛け率)/sum(product_price))\n get originalWholesaleRate() {\n // 下代\n const wholesalePrice =\n this.productCollections?.reduce(\n (prev, { product, quantity }) =>\n prev + (product?.originalUnitPrice ?? 0) * quantity,\n 0\n ) ?? 0;\n\n // 上代\n const retailPrice = this.retailPrice;\n\n return wholesalePrice / retailPrice;\n }\n\n // セール後卸掛率(セール品ではない場合はセール前卸掛率と同じ)\n // ROUND(sum(product_price*SALE掛け率)/sum(product_price))\n get wholesaleRate() {\n // 下代\n const wholesalePrice =\n this.productCollections?.reduce(\n (prev, { product, quantity }) => prev + product!.unitPrice * quantity,\n 0\n ) ?? 0;\n\n // 上代\n const retailPrice = this.retailPrice;\n\n return wholesalePrice / retailPrice;\n }\n\n get retailPrice() {\n return (\n this.productCollections?.reduce(\n (prev, { product, quantity }) =>\n prev + product!.product_retail_price * quantity,\n 0\n ) ?? 0\n );\n }\n\n toJson(): CollectionJson {\n return {\n id: this.id,\n brand_id: this.brand_id,\n name: this.name,\n description: this.description,\n image_key: this.image_key,\n imageUrl: this.imageUrl,\n productCollections: this.productCollections?.map(\n ({ product, ...productCollection }) => ({\n ...productCollection,\n product: product?.toJson(),\n })\n ),\n published: this.published,\n brand: this.brand,\n owner: this.owner,\n preorder: this.preorder,\n season: this.season,\n season_year: this.season_year,\n };\n }\n}\n","// THIS FILE IS AUTO GENERATED\nvar GenIcon = require('../lib').GenIcon\nmodule.exports.FiChevronDown = function FiChevronDown (props) {\n return GenIcon({\"tag\":\"svg\",\"attr\":{\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":\"2\",\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\"},\"child\":[{\"tag\":\"polyline\",\"attr\":{\"points\":\"6 9 12 15 18 9\"}}]})(props);\n};\n","/**\n * Helper function for iterating over a collection\n *\n * @param collection\n * @param fn\n */\nfunction each(collection, fn) {\n var i = 0,\n length = collection.length,\n cont;\n\n for(i; i < length; i++) {\n cont = fn(collection[i], i);\n if(cont === false) {\n break; //allow early exit\n }\n }\n}\n\n/**\n * Helper function for determining whether target object is an array\n *\n * @param target the object under test\n * @return {Boolean} true if array, false otherwise\n */\nfunction isArray(target) {\n return Object.prototype.toString.apply(target) === '[object Array]';\n}\n\n/**\n * Helper function for determining whether target object is a function\n *\n * @param target the object under test\n * @return {Boolean} true if function, false otherwise\n */\nfunction isFunction(target) {\n return typeof target === 'function';\n}\n\nmodule.exports = {\n isFunction : isFunction,\n isArray : isArray,\n each : each\n};\n","\nvar content = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".horizontal-slider{margin:0 -0.5rem}.horizontal-slider .slick-arrow{position:absolute;top:40%;display:block;cursor:pointer}.horizontal-slider .slick-arrow.slick-prev{left:-20px}.horizontal-slider .slick-arrow.slick-next{right:-20px}.horizontal-slider.slider-left .slick-track{margin-left:0}.horizontal-slider.slider-right .slick-track{margin-right:0}@media screen and (max-width: 767px){.horizontal-slider .slick-arrow{display:none !important}.horizontal-slider .slick-list{overflow:auto}.horizontal-slider .slick-list::-webkit-scrollbar{display:none}.horizontal-slider .slick-track{width:auto !important;transform:none !important;display:flex}.horizontal-slider .slick-slide{float:none;flex-shrink:0;max-width:47.619047619%}}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","/* eslint-disable @typescript-eslint/no-non-null-assertion */\n/* eslint-disable import/order */\n/* eslint-disable import/no-unresolved */\nimport React, { useMemo, memo } from 'react';\nimport { useSelector } from 'react-redux';\nimport { Product, ProductType } from '~redux/brand/types';\nimport { buyerInfoSelector } from '~redux/buyer/selectors';\nimport { Hit } from 'react-instantsearch-core';\nimport ProductListViewItem from '../ProductListViewItem';\nimport { getPublicImageUrl } from '~utils/image';\nimport { ProductReadModel } from '~types/api';\n\ninterface Props {\n productJson: Hit;\n}\n\ninterface HitComponentProps extends Props {\n border?: boolean;\n index: number;\n col?: boolean;\n showBrand?: boolean;\n indexName?: string;\n layout?: 'grid' | 'detail';\n preview?: boolean;\n isLongListView?: boolean;\n moveFavoriteList?: boolean;\n}\n\nexport const ProductListViewItemByAlgolia: React.FC = memo(\n ({ productJson, ...props }) => {\n const buyerInfo = useSelector(buyerInfoSelector);\n const discount = useMemo(\n () =>\n buyerInfo?.contacts?.items?.find(\n (item) => item.brand_owner === productJson.product_owner\n ),\n [buyerInfo, productJson]\n );\n const product: Product = useMemo(\n () => ({\n ...productJson,\n product_brand_id: productJson.brand_id,\n product_public_status: productJson.is_published ? '公開' : '非公開',\n producttype: productJson.options,\n brand: {\n id: productJson.brand_id,\n brand_name: productJson.brand_name,\n brand_minimum_buy: productJson.brand_minimum_buy,\n brand_additional_minimum_buy:\n productJson.brand_additional_minimum_buy,\n },\n imageKeys: productJson.image_keys?.map((imageKey) => ({ imageKey })),\n videoKeys: productJson.video_keys?.map((videoKey) => ({ videoKey })),\n imageUrl: getPublicImageUrl(productJson.image_key),\n discount: discount\n ? {\n items: [discount],\n }\n : null,\n }),\n [buyerInfo, productJson]\n );\n\n return (\n \n );\n }\n);\n","import { API, graphqlOperation, Storage } from 'aws-amplify';\nimport { Dispatch } from 'redux';\nimport { searchProductswithimagekey } from '../../../graphql/custom_queries';\nimport {\n createFavoriteBrand,\n deleteFavoriteBrand,\n} from '../../../graphql/mutations';\nimport { searchFavoriteBrands } from '../../../graphql/queries';\nimport {\n appendFavoriteBrand,\n FavoriteBrand,\n removeFavoriteBrand as removeFavoriteBrandAction,\n setFavoriteBrand,\n setFavoriteBrands,\n} from '../actions';\nimport { AuthUser } from '~redux/auth/actions/authUser';\nimport { pushFollowBrandEvent, pushUnfollowBrandEvent } from '~utils/gtm';\nimport { getPublicImageUrl } from '~utils/image';\nimport { brandFollowed } from '~utils/segment';\n\nexport const addFavoriteBrand = (\n user: AuthUser,\n brand_id: string,\n noAppend?: boolean\n) => {\n return async (dispatch: Dispatch): Promise => {\n const exist = await API.graphql(\n graphqlOperation(searchFavoriteBrands, {\n filter: {\n account_id: { eq: user.attributes.sub },\n brand_id: { eq: brand_id },\n },\n })\n );\n\n if (exist?.data?.searchFavoriteBrands?.items?.length) {\n const favoriteBrand = exist.data.searchFavoriteBrands.items[0];\n dispatch(setFavoriteBrand({ id: favoriteBrand.id, brand_id }));\n return;\n }\n\n const res = await API.graphql(\n graphqlOperation(createFavoriteBrand, {\n input: { account_id: user.attributes.sub, brand_id },\n })\n );\n\n const {\n data: { createFavoriteBrand: item },\n } = res;\n\n if (!noAppend) {\n dispatch(appendFavoriteBrand(item));\n }\n\n brandFollowed({\n brand_id,\n name: item?.brand?.brand_name,\n category: item?.brand?.brand_category,\n });\n\n pushFollowBrandEvent(user, item.brand);\n };\n};\n\nexport const removeFavoriteBrand = (\n id: string,\n user: AuthUser,\n noRemove?: boolean\n) => {\n return async (dispatch: Dispatch): Promise => {\n const res = await API.graphql(\n graphqlOperation(deleteFavoriteBrand, {\n input: { id },\n })\n );\n\n const {\n data: { deleteFavoriteBrand: item },\n } = res;\n\n if (!noRemove) {\n dispatch(removeFavoriteBrandAction(id));\n }\n\n pushUnfollowBrandEvent(user, item.brand);\n };\n};\n\nexport const getFavoriteBrands = (account_id: string, product?: boolean) => {\n return async (dispatch: Dispatch): Promise => {\n const res = await API.graphql(\n graphqlOperation(searchFavoriteBrands, {\n filter: { account_id: { eq: account_id } },\n sort: { direction: 'desc', field: 'createdAt' },\n })\n );\n\n const {\n data: {\n searchFavoriteBrands: { items },\n },\n } = res;\n\n const favoriteBrands: FavoriteBrand[] = await Promise.all(\n items.map(async (item: any) => {\n let products = [];\n if (product) {\n const res = await API.graphql(\n graphqlOperation(searchProductswithimagekey, {\n filter: {\n product_brand_id: { eq: item.brand.id },\n product_public_status: { eq: '公開' },\n suspended: { ne: true },\n },\n sort: { field: 'createdAt', direction: 'desc' },\n limit: 10,\n })\n );\n const {\n data: {\n searchProducts: { items },\n },\n } = res;\n products = items;\n }\n\n return {\n ...item,\n brand: {\n ...item.brand,\n product: {\n items: await Promise.all(\n products.map(async (product: any) => ({\n ...product,\n imageUrl: getPublicImageUrl(\n product.imageKeys.items[0]?.imageKey\n ),\n }))\n ),\n },\n },\n };\n })\n );\n\n dispatch(setFavoriteBrands(favoriteBrands));\n };\n};\n\nexport const getFavoriteBrand = (account_id: string, brand_id: string) => {\n return async (dispatch: Dispatch): Promise => {\n const res = await API.graphql(\n graphqlOperation(searchFavoriteBrands, {\n filter: { account_id: { eq: account_id }, brand_id: { eq: brand_id } },\n })\n );\n\n const {\n data: {\n searchFavoriteBrands: { items },\n },\n } = res;\n\n dispatch(setFavoriteBrands(items));\n };\n};\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _slider = _interopRequireDefault(require(\"./slider\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _default = _slider.default;\nexports.default = _default;","export const deepEquals = (a: any, b: any) =>\n JSON.stringify(a) === JSON.stringify(b);\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { mapToCssModules, tagPropType } from './utils';\nvar propTypes = {\n color: PropTypes.string,\n pill: PropTypes.bool,\n tag: tagPropType,\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func, PropTypes.string]),\n children: PropTypes.node,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\nvar defaultProps = {\n color: 'secondary',\n pill: false,\n tag: 'span'\n};\n\nvar Badge = function Badge(props) {\n var className = props.className,\n cssModule = props.cssModule,\n color = props.color,\n innerRef = props.innerRef,\n pill = props.pill,\n Tag = props.tag,\n attributes = _objectWithoutPropertiesLoose(props, [\"className\", \"cssModule\", \"color\", \"innerRef\", \"pill\", \"tag\"]);\n\n var classes = mapToCssModules(classNames(className, 'badge', 'badge-' + color, pill ? 'badge-pill' : false), cssModule);\n\n if (attributes.href && Tag === 'span') {\n Tag = 'a';\n }\n\n return /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, {\n className: classes,\n ref: innerRef\n }));\n};\n\nBadge.propTypes = propTypes;\nBadge.defaultProps = defaultProps;\nexport default Badge;","import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport withStyles from '../styles/withStyles';\nimport { alpha } from '../styles/colorManipulator';\nimport ButtonBase from '../ButtonBase';\nimport capitalize from '../utils/capitalize';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: _extends({}, theme.typography.button, {\n boxSizing: 'border-box',\n minWidth: 64,\n padding: '6px 16px',\n borderRadius: theme.shape.borderRadius,\n color: theme.palette.text.primary,\n transition: theme.transitions.create(['background-color', 'box-shadow', 'border'], {\n duration: theme.transitions.duration.short\n }),\n '&:hover': {\n textDecoration: 'none',\n backgroundColor: alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n },\n '&$disabled': {\n backgroundColor: 'transparent'\n }\n },\n '&$disabled': {\n color: theme.palette.action.disabled\n }\n }),\n\n /* Styles applied to the span element that wraps the children. */\n label: {\n width: '100%',\n // Ensure the correct width for iOS Safari\n display: 'inherit',\n alignItems: 'inherit',\n justifyContent: 'inherit'\n },\n\n /* Styles applied to the root element if `variant=\"text\"`. */\n text: {\n padding: '6px 8px'\n },\n\n /* Styles applied to the root element if `variant=\"text\"` and `color=\"primary\"`. */\n textPrimary: {\n color: theme.palette.primary.main,\n '&:hover': {\n backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n },\n\n /* Styles applied to the root element if `variant=\"text\"` and `color=\"secondary\"`. */\n textSecondary: {\n color: theme.palette.secondary.main,\n '&:hover': {\n backgroundColor: alpha(theme.palette.secondary.main, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n },\n\n /* Styles applied to the root element if `variant=\"outlined\"`. */\n outlined: {\n padding: '5px 15px',\n border: \"1px solid \".concat(theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'),\n '&$disabled': {\n border: \"1px solid \".concat(theme.palette.action.disabledBackground)\n }\n },\n\n /* Styles applied to the root element if `variant=\"outlined\"` and `color=\"primary\"`. */\n outlinedPrimary: {\n color: theme.palette.primary.main,\n border: \"1px solid \".concat(alpha(theme.palette.primary.main, 0.5)),\n '&:hover': {\n border: \"1px solid \".concat(theme.palette.primary.main),\n backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n },\n\n /* Styles applied to the root element if `variant=\"outlined\"` and `color=\"secondary\"`. */\n outlinedSecondary: {\n color: theme.palette.secondary.main,\n border: \"1px solid \".concat(alpha(theme.palette.secondary.main, 0.5)),\n '&:hover': {\n border: \"1px solid \".concat(theme.palette.secondary.main),\n backgroundColor: alpha(theme.palette.secondary.main, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n '&$disabled': {\n border: \"1px solid \".concat(theme.palette.action.disabled)\n }\n },\n\n /* Styles applied to the root element if `variant=\"contained\"`. */\n contained: {\n color: theme.palette.getContrastText(theme.palette.grey[300]),\n backgroundColor: theme.palette.grey[300],\n boxShadow: theme.shadows[2],\n '&:hover': {\n backgroundColor: theme.palette.grey.A100,\n boxShadow: theme.shadows[4],\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n boxShadow: theme.shadows[2],\n backgroundColor: theme.palette.grey[300]\n },\n '&$disabled': {\n backgroundColor: theme.palette.action.disabledBackground\n }\n },\n '&$focusVisible': {\n boxShadow: theme.shadows[6]\n },\n '&:active': {\n boxShadow: theme.shadows[8]\n },\n '&$disabled': {\n color: theme.palette.action.disabled,\n boxShadow: theme.shadows[0],\n backgroundColor: theme.palette.action.disabledBackground\n }\n },\n\n /* Styles applied to the root element if `variant=\"contained\"` and `color=\"primary\"`. */\n containedPrimary: {\n color: theme.palette.primary.contrastText,\n backgroundColor: theme.palette.primary.main,\n '&:hover': {\n backgroundColor: theme.palette.primary.dark,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: theme.palette.primary.main\n }\n }\n },\n\n /* Styles applied to the root element if `variant=\"contained\"` and `color=\"secondary\"`. */\n containedSecondary: {\n color: theme.palette.secondary.contrastText,\n backgroundColor: theme.palette.secondary.main,\n '&:hover': {\n backgroundColor: theme.palette.secondary.dark,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: theme.palette.secondary.main\n }\n }\n },\n\n /* Styles applied to the root element if `disableElevation={true}`. */\n disableElevation: {\n boxShadow: 'none',\n '&:hover': {\n boxShadow: 'none'\n },\n '&$focusVisible': {\n boxShadow: 'none'\n },\n '&:active': {\n boxShadow: 'none'\n },\n '&$disabled': {\n boxShadow: 'none'\n }\n },\n\n /* Pseudo-class applied to the ButtonBase root element if the button is keyboard focused. */\n focusVisible: {},\n\n /* Pseudo-class applied to the root element if `disabled={true}`. */\n disabled: {},\n\n /* Styles applied to the root element if `color=\"inherit\"`. */\n colorInherit: {\n color: 'inherit',\n borderColor: 'currentColor'\n },\n\n /* Styles applied to the root element if `size=\"small\"` and `variant=\"text\"`. */\n textSizeSmall: {\n padding: '4px 5px',\n fontSize: theme.typography.pxToRem(13)\n },\n\n /* Styles applied to the root element if `size=\"large\"` and `variant=\"text\"`. */\n textSizeLarge: {\n padding: '8px 11px',\n fontSize: theme.typography.pxToRem(15)\n },\n\n /* Styles applied to the root element if `size=\"small\"` and `variant=\"outlined\"`. */\n outlinedSizeSmall: {\n padding: '3px 9px',\n fontSize: theme.typography.pxToRem(13)\n },\n\n /* Styles applied to the root element if `size=\"large\"` and `variant=\"outlined\"`. */\n outlinedSizeLarge: {\n padding: '7px 21px',\n fontSize: theme.typography.pxToRem(15)\n },\n\n /* Styles applied to the root element if `size=\"small\"` and `variant=\"contained\"`. */\n containedSizeSmall: {\n padding: '4px 10px',\n fontSize: theme.typography.pxToRem(13)\n },\n\n /* Styles applied to the root element if `size=\"large\"` and `variant=\"contained\"`. */\n containedSizeLarge: {\n padding: '8px 22px',\n fontSize: theme.typography.pxToRem(15)\n },\n\n /* Styles applied to the root element if `size=\"small\"`. */\n sizeSmall: {},\n\n /* Styles applied to the root element if `size=\"large\"`. */\n sizeLarge: {},\n\n /* Styles applied to the root element if `fullWidth={true}`. */\n fullWidth: {\n width: '100%'\n },\n\n /* Styles applied to the startIcon element if supplied. */\n startIcon: {\n display: 'inherit',\n marginRight: 8,\n marginLeft: -4,\n '&$iconSizeSmall': {\n marginLeft: -2\n }\n },\n\n /* Styles applied to the endIcon element if supplied. */\n endIcon: {\n display: 'inherit',\n marginRight: -4,\n marginLeft: 8,\n '&$iconSizeSmall': {\n marginRight: -2\n }\n },\n\n /* Styles applied to the icon element if supplied and `size=\"small\"`. */\n iconSizeSmall: {\n '& > *:first-child': {\n fontSize: 18\n }\n },\n\n /* Styles applied to the icon element if supplied and `size=\"medium\"`. */\n iconSizeMedium: {\n '& > *:first-child': {\n fontSize: 20\n }\n },\n\n /* Styles applied to the icon element if supplied and `size=\"large\"`. */\n iconSizeLarge: {\n '& > *:first-child': {\n fontSize: 22\n }\n }\n };\n};\nvar Button = /*#__PURE__*/React.forwardRef(function Button(props, ref) {\n var children = props.children,\n classes = props.classes,\n className = props.className,\n _props$color = props.color,\n color = _props$color === void 0 ? 'default' : _props$color,\n _props$component = props.component,\n component = _props$component === void 0 ? 'button' : _props$component,\n _props$disabled = props.disabled,\n disabled = _props$disabled === void 0 ? false : _props$disabled,\n _props$disableElevati = props.disableElevation,\n disableElevation = _props$disableElevati === void 0 ? false : _props$disableElevati,\n _props$disableFocusRi = props.disableFocusRipple,\n disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi,\n endIconProp = props.endIcon,\n focusVisibleClassName = props.focusVisibleClassName,\n _props$fullWidth = props.fullWidth,\n fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth,\n _props$size = props.size,\n size = _props$size === void 0 ? 'medium' : _props$size,\n startIconProp = props.startIcon,\n _props$type = props.type,\n type = _props$type === void 0 ? 'button' : _props$type,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'text' : _props$variant,\n other = _objectWithoutProperties(props, [\"children\", \"classes\", \"className\", \"color\", \"component\", \"disabled\", \"disableElevation\", \"disableFocusRipple\", \"endIcon\", \"focusVisibleClassName\", \"fullWidth\", \"size\", \"startIcon\", \"type\", \"variant\"]);\n\n var startIcon = startIconProp && /*#__PURE__*/React.createElement(\"span\", {\n className: clsx(classes.startIcon, classes[\"iconSize\".concat(capitalize(size))])\n }, startIconProp);\n var endIcon = endIconProp && /*#__PURE__*/React.createElement(\"span\", {\n className: clsx(classes.endIcon, classes[\"iconSize\".concat(capitalize(size))])\n }, endIconProp);\n return /*#__PURE__*/React.createElement(ButtonBase, _extends({\n className: clsx(classes.root, classes[variant], className, color === 'inherit' ? classes.colorInherit : color !== 'default' && classes[\"\".concat(variant).concat(capitalize(color))], size !== 'medium' && [classes[\"\".concat(variant, \"Size\").concat(capitalize(size))], classes[\"size\".concat(capitalize(size))]], disableElevation && classes.disableElevation, disabled && classes.disabled, fullWidth && classes.fullWidth),\n component: component,\n disabled: disabled,\n focusRipple: !disableFocusRipple,\n focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),\n ref: ref,\n type: type\n }, other), /*#__PURE__*/React.createElement(\"span\", {\n className: classes.label\n }, startIcon, children, endIcon));\n});\nprocess.env.NODE_ENV !== \"production\" ? Button.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * The content of the button.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n */\n color: PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary']),\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * If `true`, the button will be disabled.\n */\n disabled: PropTypes.bool,\n\n /**\n * If `true`, no elevation is used.\n */\n disableElevation: PropTypes.bool,\n\n /**\n * If `true`, the keyboard focus ripple will be disabled.\n */\n disableFocusRipple: PropTypes.bool,\n\n /**\n * If `true`, the ripple effect will be disabled.\n *\n * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n * to highlight the element by applying separate styles with the `focusVisibleClassName`.\n */\n disableRipple: PropTypes.bool,\n\n /**\n * Element placed after the children.\n */\n endIcon: PropTypes.node,\n\n /**\n * @ignore\n */\n focusVisibleClassName: PropTypes.string,\n\n /**\n * If `true`, the button will take up the full width of its container.\n */\n fullWidth: PropTypes.bool,\n\n /**\n * The URL to link to when the button is clicked.\n * If defined, an `a` element will be used as the root node.\n */\n href: PropTypes.string,\n\n /**\n * The size of the button.\n * `small` is equivalent to the dense button styling.\n */\n size: PropTypes.oneOf(['large', 'medium', 'small']),\n\n /**\n * Element placed before the children.\n */\n startIcon: PropTypes.node,\n\n /**\n * @ignore\n */\n type: PropTypes.oneOfType([PropTypes.oneOf(['button', 'reset', 'submit']), PropTypes.string]),\n\n /**\n * The variant to use.\n */\n variant: PropTypes.oneOf(['contained', 'outlined', 'text'])\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiButton'\n})(Button);","/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = debounce;\n","import cx from 'classnames';\nimport React, {\n MouseEventHandler,\n useCallback,\n useMemo,\n useState,\n} from 'react';\nimport { useSelector } from 'react-redux';\nimport { Link } from 'react-router-dom';\nimport { Badge } from 'reactstrap';\nimport ListViewItem from '../ListViewItem';\nimport Skeleton from '../Skeleton';\nimport { accountSelector } from '~redux/account/selectors/account';\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\nimport { Brand } from '~redux/brand/types';\nimport { makeFavoriteBrandSelector } from '~redux/favorite/selectors';\nimport { addFavoriteBrand, removeFavoriteBrand } from '~redux/favorite/thunk';\nimport { isProtectedBrand } from '~utils/brand';\nimport { formatCurrency } from '~utils/formatter';\nimport './styles.scss';\nimport { useThunk } from '~utils/hooks';\nimport { getPublicImageUrl } from '~utils/image';\n\nconst Item: React.FC<{ brand: Brand; image?: string }> = ({ brand, image }) => {\n const account = useSelector(accountSelector);\n const user = useSelector(authUserSelector);\n const url = useMemo(() => `/brand/${brand.id}`, [brand.id]);\n const minimum = useMemo(\n () =>\n brand.brand_minimum_buy == 0\n ? `最小発注金額:設定なし`\n : `最小発注金額:${formatCurrency(brand.brand_minimum_buy ?? 0)}`,\n [brand.brand_minimum_buy]\n );\n\n const [addToFavorite, adding] = useThunk(addFavoriteBrand);\n const [removeFromFavorite, removing] = useThunk(removeFavoriteBrand);\n const favorite = useSelector(makeFavoriteBrandSelector(brand.id));\n const onFollowLinkClick: MouseEventHandler = useCallback(\n (event) => {\n event.preventDefault();\n event.stopPropagation();\n if (!user) {\n return;\n }\n if (!favorite) {\n addToFavorite(user, brand.id);\n return;\n }\n removeFromFavorite(favorite.id, user);\n },\n [user, favorite]\n );\n\n const isProtected = useMemo(\n () => account && isProtectedBrand(brand, account),\n [brand, account]\n );\n\n const [isHover, setIsHover] = useState(false);\n\n const isNewBrand = useMemo(() => {\n let isNewBrand = false;\n brand.product?.items?.forEach((product) => {\n const dt = new Date();\n const newBrandDueDt = new Date();\n newBrandDueDt.setDate(newBrandDueDt.getDate() - 30);\n const itemAddDate = new Date(product.createdAt);\n if (newBrandDueDt <= itemAddDate && itemAddDate <= dt) {\n isNewBrand = true;\n return;\n }\n });\n return isNewBrand;\n }, [brand]);\n\n return (\n \n setIsHover(true)}\n onPointerLeave={() => setIsHover(false)}\n >\n
\n
\n {isNewBrand && (\n

\n \n 新着あり\n \n

\n )}\n \n {user && (\n \n \n \n )}\n {isHover && (\n

{brand.brand_content}

\n )}\n
\n
\n \n
\n
\n \n {brand.brand_name}\n \n
\n {user && !isProtected && (\n
\n {minimum}\n
\n )}\n
\n
{brand.brand_content}
\n
\n );\n};\n\nconst SkeletonItem = () => (\n \n
\n
\n \n
\n \n);\n\ntype BrandListViewItemProps = {\n brand?: Brand;\n image?: string;\n};\n\nconst BrandListViewItem: React.FC = ({\n brand,\n image,\n}) => {\n if (!brand) {\n return ;\n }\n return ;\n};\n\nexport default BrandListViewItem;\n","import { createSelector } from 'reselect';\nimport { Collection } from '~domain/product/Collection';\nimport { IndividualProduct } from '~domain/product/IndividualProduct';\nimport { RootState } from '../../reducer';\n\nconst collectionSelector = (state: RootState) => state.collection;\n\nexport const collectionListSelector = createSelector(\n collectionSelector,\n (collection) => Object.values(collection.collectionList.byId)\n);\n\nexport const collectionListNextTokenSelector = createSelector(\n collectionSelector,\n (collection) => collection.collectionList.nextToken\n);\n\nexport const collectionItemSelector = createSelector(\n collectionSelector,\n (collection) => collection.item ?? undefined\n);\n\nexport const individualCollectionListSelector = createSelector(\n collectionSelector,\n (collection) =>\n Object.values(collection.collectionList.byId).map((collection) =>\n Collection.create({\n ...collection,\n productCollections: collection.productCollections?.map(\n ({ product, ...productCollection }) => ({\n ...productCollection,\n product: product && IndividualProduct.create(product),\n })\n ),\n })\n )\n);\n\nexport const individualCollectionItemSelector = createSelector(\n collectionSelector,\n (collection) =>\n collection.item\n ? Collection.create({\n ...collection.item,\n productCollections: collection.item.productCollections?.map(\n ({ product, ...productCollection }) => ({\n ...productCollection,\n product: product && IndividualProduct.create(product),\n })\n ),\n })\n : undefined\n);\n","import Pagination from '@material-ui/lab/Pagination';\nimport React, { useCallback, useEffect } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { useLocation } from 'react-router';\nimport { useProductSearchSelector } from '../ProductSearchProvider';\nimport {\n selectProductListNbPages,\n selectProductListPage,\n} from '~redux/search/product';\nimport { paginate } from '~usecases/buyer/search/product';\n\nconst ProductSearchPagination: React.FC<{\n listId: string;\n}> = ({ listId }) => {\n const dispatch = useDispatch();\n const page = useProductSearchSelector(selectProductListPage, listId);\n const nbPages = useProductSearchSelector(selectProductListNbPages, listId);\n const location = useLocation();\n\n const handlePageChange = useCallback(\n (page: number) => {\n const url = new URL(window.location.href);\n url.searchParams.set('page', page.toString());\n window.history.pushState(null, '', `${url.pathname}${url.search}`);\n dispatch(paginate({ listId, page }));\n },\n [listId]\n );\n\n useEffect(() => {\n const pageQuery = new URLSearchParams(location.search).get('page');\n dispatch(paginate({ listId, page: Number(pageQuery ? pageQuery : 1) }));\n }, [listId, location]);\n\n return (\n
\n handlePageChange(page)}\n count={nbPages}\n page={page}\n color=\"primary\"\n />\n
\n );\n};\n\nexport default ProductSearchPagination;\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _innerSlider = require(\"./inner-slider\");\n\nvar _json2mq = _interopRequireDefault(require(\"json2mq\"));\n\nvar _defaultProps = _interopRequireDefault(require(\"./default-props\"));\n\nvar _innerSliderUtils = require(\"./utils/innerSliderUtils\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar enquire = (0, _innerSliderUtils.canUseDOM)() && require(\"enquire.js\");\n\nvar Slider =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(Slider, _React$Component);\n\n function Slider(props) {\n var _this;\n\n _classCallCheck(this, Slider);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Slider).call(this, props));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"innerSliderRefHandler\", function (ref) {\n return _this.innerSlider = ref;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"slickPrev\", function () {\n return _this.innerSlider.slickPrev();\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"slickNext\", function () {\n return _this.innerSlider.slickNext();\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"slickGoTo\", function (slide) {\n var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n return _this.innerSlider.slickGoTo(slide, dontAnimate);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"slickPause\", function () {\n return _this.innerSlider.pause(\"paused\");\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"slickPlay\", function () {\n return _this.innerSlider.autoPlay(\"play\");\n });\n\n _this.state = {\n breakpoint: null\n };\n _this._responsiveMediaHandlers = [];\n return _this;\n }\n\n _createClass(Slider, [{\n key: \"media\",\n value: function media(query, handler) {\n // javascript handler for css media query\n enquire.register(query, handler);\n\n this._responsiveMediaHandlers.push({\n query: query,\n handler: handler\n });\n } // handles responsive breakpoints\n\n }, {\n key: \"componentWillMount\",\n value: function componentWillMount() {\n var _this2 = this;\n\n // performance monitoring\n //if (process.env.NODE_ENV !== 'production') {\n //const { whyDidYouUpdate } = require('why-did-you-update')\n //whyDidYouUpdate(React)\n //}\n if (this.props.responsive) {\n var breakpoints = this.props.responsive.map(function (breakpt) {\n return breakpt.breakpoint;\n }); // sort them in increasing order of their numerical value\n\n breakpoints.sort(function (x, y) {\n return x - y;\n });\n breakpoints.forEach(function (breakpoint, index) {\n // media query for each breakpoint\n var bQuery;\n\n if (index === 0) {\n bQuery = (0, _json2mq.default)({\n minWidth: 0,\n maxWidth: breakpoint\n });\n } else {\n bQuery = (0, _json2mq.default)({\n minWidth: breakpoints[index - 1] + 1,\n maxWidth: breakpoint\n });\n } // when not using server side rendering\n\n\n (0, _innerSliderUtils.canUseDOM)() && _this2.media(bQuery, function () {\n _this2.setState({\n breakpoint: breakpoint\n });\n });\n }); // Register media query for full screen. Need to support resize from small to large\n // convert javascript object to media query string\n\n var query = (0, _json2mq.default)({\n minWidth: breakpoints.slice(-1)[0]\n });\n (0, _innerSliderUtils.canUseDOM)() && this.media(query, function () {\n _this2.setState({\n breakpoint: null\n });\n });\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this._responsiveMediaHandlers.forEach(function (obj) {\n enquire.unregister(obj.query, obj.handler);\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this3 = this;\n\n var settings;\n var newProps;\n\n if (this.state.breakpoint) {\n newProps = this.props.responsive.filter(function (resp) {\n return resp.breakpoint === _this3.state.breakpoint;\n });\n settings = newProps[0].settings === \"unslick\" ? \"unslick\" : _objectSpread({}, _defaultProps.default, this.props, newProps[0].settings);\n } else {\n settings = _objectSpread({}, _defaultProps.default, this.props);\n } // force scrolling by one if centerMode is on\n\n\n if (settings.centerMode) {\n if (settings.slidesToScroll > 1 && process.env.NODE_ENV !== \"production\") {\n console.warn(\"slidesToScroll should be equal to 1 in centerMode, you are using \".concat(settings.slidesToScroll));\n }\n\n settings.slidesToScroll = 1;\n } // force showing one slide and scrolling by one if the fade mode is on\n\n\n if (settings.fade) {\n if (settings.slidesToShow > 1 && process.env.NODE_ENV !== \"production\") {\n console.warn(\"slidesToShow should be equal to 1 when fade is true, you're using \".concat(settings.slidesToShow));\n }\n\n if (settings.slidesToScroll > 1 && process.env.NODE_ENV !== \"production\") {\n console.warn(\"slidesToScroll should be equal to 1 when fade is true, you're using \".concat(settings.slidesToScroll));\n }\n\n settings.slidesToShow = 1;\n settings.slidesToScroll = 1;\n } // makes sure that children is an array, even when there is only 1 child\n\n\n var children = _react.default.Children.toArray(this.props.children); // Children may contain false or null, so we should filter them\n // children may also contain string filled with spaces (in certain cases where we use jsx strings)\n\n\n children = children.filter(function (child) {\n if (typeof child === \"string\") {\n return !!child.trim();\n }\n\n return !!child;\n }); // rows and slidesPerRow logic is handled here\n\n if (settings.variableWidth && (settings.rows > 1 || settings.slidesPerRow > 1)) {\n console.warn(\"variableWidth is not supported in case of rows > 1 or slidesPerRow > 1\");\n settings.variableWidth = false;\n }\n\n var newChildren = [];\n var currentWidth = null;\n\n for (var i = 0; i < children.length; i += settings.rows * settings.slidesPerRow) {\n var newSlide = [];\n\n for (var j = i; j < i + settings.rows * settings.slidesPerRow; j += settings.slidesPerRow) {\n var row = [];\n\n for (var k = j; k < j + settings.slidesPerRow; k += 1) {\n if (settings.variableWidth && children[k].props.style) {\n currentWidth = children[k].props.style.width;\n }\n\n if (k >= children.length) break;\n row.push(_react.default.cloneElement(children[k], {\n key: 100 * i + 10 * j + k,\n tabIndex: -1,\n style: {\n width: \"\".concat(100 / settings.slidesPerRow, \"%\"),\n display: \"inline-block\"\n }\n }));\n }\n\n newSlide.push(_react.default.createElement(\"div\", {\n key: 10 * i + j\n }, row));\n }\n\n if (settings.variableWidth) {\n newChildren.push(_react.default.createElement(\"div\", {\n key: i,\n style: {\n width: currentWidth\n }\n }, newSlide));\n } else {\n newChildren.push(_react.default.createElement(\"div\", {\n key: i\n }, newSlide));\n }\n }\n\n if (settings === \"unslick\") {\n var className = \"regular slider \" + (this.props.className || \"\");\n return _react.default.createElement(\"div\", {\n className: className\n }, newChildren);\n } else if (newChildren.length <= settings.slidesToShow) {\n settings.unslick = true;\n }\n\n return _react.default.createElement(_innerSlider.InnerSlider, _extends({\n ref: this.innerSliderRefHandler\n }, settings), newChildren);\n }\n }]);\n\n return Slider;\n}(_react.default.Component);\n\nexports.default = Slider;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.InnerSlider = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _reactDom = _interopRequireDefault(require(\"react-dom\"));\n\nvar _initialState = _interopRequireDefault(require(\"./initial-state\"));\n\nvar _lodash = _interopRequireDefault(require(\"lodash.debounce\"));\n\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\n\nvar _innerSliderUtils = require(\"./utils/innerSliderUtils\");\n\nvar _track = require(\"./track\");\n\nvar _dots = require(\"./dots\");\n\nvar _arrows = require(\"./arrows\");\n\nvar _resizeObserverPolyfill = _interopRequireDefault(require(\"resize-observer-polyfill\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar InnerSlider =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inherits(InnerSlider, _React$Component);\n\n function InnerSlider(props) {\n var _this;\n\n _classCallCheck(this, InnerSlider);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(InnerSlider).call(this, props));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"listRefHandler\", function (ref) {\n return _this.list = ref;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"trackRefHandler\", function (ref) {\n return _this.track = ref;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"adaptHeight\", function () {\n if (_this.props.adaptiveHeight && _this.list) {\n var elem = _this.list.querySelector(\"[data-index=\\\"\".concat(_this.state.currentSlide, \"\\\"]\"));\n\n _this.list.style.height = (0, _innerSliderUtils.getHeight)(elem) + \"px\";\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"componentWillMount\", function () {\n _this.ssrInit();\n\n _this.props.onInit && _this.props.onInit();\n\n if (_this.props.lazyLoad) {\n var slidesToLoad = (0, _innerSliderUtils.getOnDemandLazySlides)(_objectSpread({}, _this.props, _this.state));\n\n if (slidesToLoad.length > 0) {\n _this.setState(function (prevState) {\n return {\n lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad)\n };\n });\n\n if (_this.props.onLazyLoad) {\n _this.props.onLazyLoad(slidesToLoad);\n }\n }\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"componentDidMount\", function () {\n var spec = _objectSpread({\n listRef: _this.list,\n trackRef: _this.track\n }, _this.props);\n\n _this.updateState(spec, true, function () {\n _this.adaptHeight();\n\n _this.props.autoplay && _this.autoPlay(\"update\");\n });\n\n if (_this.props.lazyLoad === \"progressive\") {\n _this.lazyLoadTimer = setInterval(_this.progressiveLazyLoad, 1000);\n }\n\n _this.ro = new _resizeObserverPolyfill.default(function () {\n if (_this.state.animating) {\n _this.onWindowResized(false); // don't set trackStyle hence don't break animation\n\n\n _this.callbackTimers.push(setTimeout(function () {\n return _this.onWindowResized();\n }, _this.props.speed));\n } else {\n _this.onWindowResized();\n }\n });\n\n _this.ro.observe(_this.list);\n\n Array.prototype.forEach.call(document.querySelectorAll(\".slick-slide\"), function (slide) {\n slide.onfocus = _this.props.pauseOnFocus ? _this.onSlideFocus : null;\n slide.onblur = _this.props.pauseOnFocus ? _this.onSlideBlur : null;\n }); // To support server-side rendering\n\n if (!window) {\n return;\n }\n\n if (window.addEventListener) {\n window.addEventListener(\"resize\", _this.onWindowResized);\n } else {\n window.attachEvent(\"onresize\", _this.onWindowResized);\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"componentWillUnmount\", function () {\n if (_this.animationEndCallback) {\n clearTimeout(_this.animationEndCallback);\n }\n\n if (_this.lazyLoadTimer) {\n clearInterval(_this.lazyLoadTimer);\n }\n\n if (_this.callbackTimers.length) {\n _this.callbackTimers.forEach(function (timer) {\n return clearTimeout(timer);\n });\n\n _this.callbackTimers = [];\n }\n\n if (window.addEventListener) {\n window.removeEventListener(\"resize\", _this.onWindowResized);\n } else {\n window.detachEvent(\"onresize\", _this.onWindowResized);\n }\n\n if (_this.autoplayTimer) {\n clearInterval(_this.autoplayTimer);\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"componentWillReceiveProps\", function (nextProps) {\n var spec = _objectSpread({\n listRef: _this.list,\n trackRef: _this.track\n }, nextProps, _this.state);\n\n var setTrackStyle = false;\n\n var _arr = Object.keys(_this.props);\n\n for (var _i = 0; _i < _arr.length; _i++) {\n var key = _arr[_i];\n\n if (!nextProps.hasOwnProperty(key)) {\n setTrackStyle = true;\n break;\n }\n\n if (_typeof(nextProps[key]) === \"object\" || typeof nextProps[key] === \"function\") {\n continue;\n }\n\n if (nextProps[key] !== _this.props[key]) {\n setTrackStyle = true;\n break;\n }\n }\n\n _this.updateState(spec, setTrackStyle, function () {\n if (_this.state.currentSlide >= _react.default.Children.count(nextProps.children)) {\n _this.changeSlide({\n message: \"index\",\n index: _react.default.Children.count(nextProps.children) - nextProps.slidesToShow,\n currentSlide: _this.state.currentSlide\n });\n }\n\n if (nextProps.autoplay) {\n _this.autoPlay(\"update\");\n } else {\n _this.pause(\"paused\");\n }\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"componentDidUpdate\", function () {\n _this.checkImagesLoad();\n\n _this.props.onReInit && _this.props.onReInit();\n\n if (_this.props.lazyLoad) {\n var slidesToLoad = (0, _innerSliderUtils.getOnDemandLazySlides)(_objectSpread({}, _this.props, _this.state));\n\n if (slidesToLoad.length > 0) {\n _this.setState(function (prevState) {\n return {\n lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad)\n };\n });\n\n if (_this.props.onLazyLoad) {\n _this.props.onLazyLoad(slidesToLoad);\n }\n }\n } // if (this.props.onLazyLoad) {\n // this.props.onLazyLoad([leftMostSlide])\n // }\n\n\n _this.adaptHeight();\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onWindowResized\", function (setTrackStyle) {\n if (_this.debouncedResize) _this.debouncedResize.cancel();\n _this.debouncedResize = (0, _lodash.default)(function () {\n return _this.resizeWindow(setTrackStyle);\n }, 50);\n\n _this.debouncedResize();\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"resizeWindow\", function () {\n var setTrackStyle = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n if (!_reactDom.default.findDOMNode(_this.track)) return;\n\n var spec = _objectSpread({\n listRef: _this.list,\n trackRef: _this.track\n }, _this.props, _this.state);\n\n _this.updateState(spec, setTrackStyle, function () {\n if (_this.props.autoplay) _this.autoPlay(\"update\");else _this.pause(\"paused\");\n }); // animating state should be cleared while resizing, otherwise autoplay stops working\n\n\n _this.setState({\n animating: false\n });\n\n clearTimeout(_this.animationEndCallback);\n delete _this.animationEndCallback;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"updateState\", function (spec, setTrackStyle, callback) {\n var updatedState = (0, _innerSliderUtils.initializedState)(spec);\n spec = _objectSpread({}, spec, updatedState, {\n slideIndex: updatedState.currentSlide\n });\n var targetLeft = (0, _innerSliderUtils.getTrackLeft)(spec);\n spec = _objectSpread({}, spec, {\n left: targetLeft\n });\n var trackStyle = (0, _innerSliderUtils.getTrackCSS)(spec);\n\n if (setTrackStyle || _react.default.Children.count(_this.props.children) !== _react.default.Children.count(spec.children)) {\n updatedState[\"trackStyle\"] = trackStyle;\n }\n\n _this.setState(updatedState, callback);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"ssrInit\", function () {\n if (_this.props.variableWidth) {\n var _trackWidth = 0,\n _trackLeft = 0;\n var childrenWidths = [];\n var preClones = (0, _innerSliderUtils.getPreClones)(_objectSpread({}, _this.props, _this.state, {\n slideCount: _this.props.children.length\n }));\n var postClones = (0, _innerSliderUtils.getPostClones)(_objectSpread({}, _this.props, _this.state, {\n slideCount: _this.props.children.length\n }));\n\n _this.props.children.forEach(function (child) {\n childrenWidths.push(child.props.style.width);\n _trackWidth += child.props.style.width;\n });\n\n for (var i = 0; i < preClones; i++) {\n _trackLeft += childrenWidths[childrenWidths.length - 1 - i];\n _trackWidth += childrenWidths[childrenWidths.length - 1 - i];\n }\n\n for (var _i2 = 0; _i2 < postClones; _i2++) {\n _trackWidth += childrenWidths[_i2];\n }\n\n for (var _i3 = 0; _i3 < _this.state.currentSlide; _i3++) {\n _trackLeft += childrenWidths[_i3];\n }\n\n var _trackStyle = {\n width: _trackWidth + \"px\",\n left: -_trackLeft + \"px\"\n };\n\n if (_this.props.centerMode) {\n var currentWidth = \"\".concat(childrenWidths[_this.state.currentSlide], \"px\");\n _trackStyle.left = \"calc(\".concat(_trackStyle.left, \" + (100% - \").concat(currentWidth, \") / 2 ) \");\n }\n\n _this.setState({\n trackStyle: _trackStyle\n });\n\n return;\n }\n\n var childrenCount = _react.default.Children.count(_this.props.children);\n\n var spec = _objectSpread({}, _this.props, _this.state, {\n slideCount: childrenCount\n });\n\n var slideCount = (0, _innerSliderUtils.getPreClones)(spec) + (0, _innerSliderUtils.getPostClones)(spec) + childrenCount;\n var trackWidth = 100 / _this.props.slidesToShow * slideCount;\n var slideWidth = 100 / slideCount;\n var trackLeft = -slideWidth * ((0, _innerSliderUtils.getPreClones)(spec) + _this.state.currentSlide) * trackWidth / 100;\n\n if (_this.props.centerMode) {\n trackLeft += (100 - slideWidth * trackWidth / 100) / 2;\n }\n\n var trackStyle = {\n width: trackWidth + \"%\",\n left: trackLeft + \"%\"\n };\n\n _this.setState({\n slideWidth: slideWidth + \"%\",\n trackStyle: trackStyle\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"checkImagesLoad\", function () {\n var images = document.querySelectorAll(\".slick-slide img\");\n var imagesCount = images.length,\n loadedCount = 0;\n Array.prototype.forEach.call(images, function (image) {\n var handler = function handler() {\n return ++loadedCount && loadedCount >= imagesCount && _this.onWindowResized();\n };\n\n if (!image.onclick) {\n image.onclick = function () {\n return image.parentNode.focus();\n };\n } else {\n var prevClickHandler = image.onclick;\n\n image.onclick = function () {\n prevClickHandler();\n image.parentNode.focus();\n };\n }\n\n if (!image.onload) {\n if (_this.props.lazyLoad) {\n image.onload = function () {\n _this.adaptHeight();\n\n _this.callbackTimers.push(setTimeout(_this.onWindowResized, _this.props.speed));\n };\n } else {\n image.onload = handler;\n\n image.onerror = function () {\n handler();\n _this.props.onLazyLoadError && _this.props.onLazyLoadError();\n };\n }\n }\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"progressiveLazyLoad\", function () {\n var slidesToLoad = [];\n\n var spec = _objectSpread({}, _this.props, _this.state);\n\n for (var index = _this.state.currentSlide; index < _this.state.slideCount + (0, _innerSliderUtils.getPostClones)(spec); index++) {\n if (_this.state.lazyLoadedList.indexOf(index) < 0) {\n slidesToLoad.push(index);\n break;\n }\n }\n\n for (var _index = _this.state.currentSlide - 1; _index >= -(0, _innerSliderUtils.getPreClones)(spec); _index--) {\n if (_this.state.lazyLoadedList.indexOf(_index) < 0) {\n slidesToLoad.push(_index);\n break;\n }\n }\n\n if (slidesToLoad.length > 0) {\n _this.setState(function (state) {\n return {\n lazyLoadedList: state.lazyLoadedList.concat(slidesToLoad)\n };\n });\n\n if (_this.props.onLazyLoad) {\n _this.props.onLazyLoad(slidesToLoad);\n }\n } else {\n if (_this.lazyLoadTimer) {\n clearInterval(_this.lazyLoadTimer);\n delete _this.lazyLoadTimer;\n }\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"slideHandler\", function (index) {\n var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var _this$props = _this.props,\n asNavFor = _this$props.asNavFor,\n beforeChange = _this$props.beforeChange,\n onLazyLoad = _this$props.onLazyLoad,\n speed = _this$props.speed,\n afterChange = _this$props.afterChange; // capture currentslide before state is updated\n\n var currentSlide = _this.state.currentSlide;\n\n var _slideHandler = (0, _innerSliderUtils.slideHandler)(_objectSpread({\n index: index\n }, _this.props, _this.state, {\n trackRef: _this.track,\n useCSS: _this.props.useCSS && !dontAnimate\n })),\n state = _slideHandler.state,\n nextState = _slideHandler.nextState;\n\n if (!state) return;\n beforeChange && beforeChange(currentSlide, state.currentSlide);\n var slidesToLoad = state.lazyLoadedList.filter(function (value) {\n return _this.state.lazyLoadedList.indexOf(value) < 0;\n });\n onLazyLoad && slidesToLoad.length > 0 && onLazyLoad(slidesToLoad);\n\n _this.setState(state, function () {\n asNavFor && asNavFor.innerSlider.state.currentSlide !== _this.state.currentSlide && asNavFor.innerSlider.slideHandler(index);\n if (!nextState) return;\n _this.animationEndCallback = setTimeout(function () {\n var animating = nextState.animating,\n firstBatch = _objectWithoutProperties(nextState, [\"animating\"]);\n\n _this.setState(firstBatch, function () {\n _this.callbackTimers.push(setTimeout(function () {\n return _this.setState({\n animating: animating\n });\n }, 10));\n\n afterChange && afterChange(state.currentSlide);\n delete _this.animationEndCallback;\n });\n }, speed);\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"changeSlide\", function (options) {\n var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n var spec = _objectSpread({}, _this.props, _this.state);\n\n var targetSlide = (0, _innerSliderUtils.changeSlide)(spec, options);\n if (targetSlide !== 0 && !targetSlide) return;\n\n if (dontAnimate === true) {\n _this.slideHandler(targetSlide, dontAnimate);\n } else {\n _this.slideHandler(targetSlide);\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"clickHandler\", function (e) {\n if (_this.clickable === false) {\n e.stopPropagation();\n e.preventDefault();\n }\n\n _this.clickable = true;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"keyHandler\", function (e) {\n var dir = (0, _innerSliderUtils.keyHandler)(e, _this.props.accessibility, _this.props.rtl);\n dir !== \"\" && _this.changeSlide({\n message: dir\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"selectHandler\", function (options) {\n _this.changeSlide(options);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"disableBodyScroll\", function () {\n var preventDefault = function preventDefault(e) {\n e = e || window.event;\n if (e.preventDefault) e.preventDefault();\n e.returnValue = false;\n };\n\n window.ontouchmove = preventDefault;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"enableBodyScroll\", function () {\n window.ontouchmove = null;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"swipeStart\", function (e) {\n if (_this.props.verticalSwiping) {\n _this.disableBodyScroll();\n }\n\n var state = (0, _innerSliderUtils.swipeStart)(e, _this.props.swipe, _this.props.draggable);\n state !== \"\" && _this.setState(state);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"swipeMove\", function (e) {\n var state = (0, _innerSliderUtils.swipeMove)(e, _objectSpread({}, _this.props, _this.state, {\n trackRef: _this.track,\n listRef: _this.list,\n slideIndex: _this.state.currentSlide\n }));\n if (!state) return;\n\n if (state[\"swiping\"]) {\n _this.clickable = false;\n }\n\n _this.setState(state);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"swipeEnd\", function (e) {\n var state = (0, _innerSliderUtils.swipeEnd)(e, _objectSpread({}, _this.props, _this.state, {\n trackRef: _this.track,\n listRef: _this.list,\n slideIndex: _this.state.currentSlide\n }));\n if (!state) return;\n var triggerSlideHandler = state[\"triggerSlideHandler\"];\n delete state[\"triggerSlideHandler\"];\n\n _this.setState(state);\n\n if (triggerSlideHandler === undefined) return;\n\n _this.slideHandler(triggerSlideHandler);\n\n if (_this.props.verticalSwiping) {\n _this.enableBodyScroll();\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"slickPrev\", function () {\n // this and fellow methods are wrapped in setTimeout\n // to make sure initialize setState has happened before\n // any of such methods are called\n _this.callbackTimers.push(setTimeout(function () {\n return _this.changeSlide({\n message: \"previous\"\n });\n }, 0));\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"slickNext\", function () {\n _this.callbackTimers.push(setTimeout(function () {\n return _this.changeSlide({\n message: \"next\"\n });\n }, 0));\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"slickGoTo\", function (slide) {\n var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n slide = Number(slide);\n if (isNaN(slide)) return \"\";\n\n _this.callbackTimers.push(setTimeout(function () {\n return _this.changeSlide({\n message: \"index\",\n index: slide,\n currentSlide: _this.state.currentSlide\n }, dontAnimate);\n }, 0));\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"play\", function () {\n var nextIndex;\n\n if (_this.props.rtl) {\n nextIndex = _this.state.currentSlide - _this.props.slidesToScroll;\n } else {\n if ((0, _innerSliderUtils.canGoNext)(_objectSpread({}, _this.props, _this.state))) {\n nextIndex = _this.state.currentSlide + _this.props.slidesToScroll;\n } else {\n return false;\n }\n }\n\n _this.slideHandler(nextIndex);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"autoPlay\", function (playType) {\n if (_this.autoplayTimer) {\n clearInterval(_this.autoplayTimer);\n }\n\n var autoplaying = _this.state.autoplaying;\n\n if (playType === \"update\") {\n if (autoplaying === \"hovered\" || autoplaying === \"focused\" || autoplaying === \"paused\") {\n return;\n }\n } else if (playType === \"leave\") {\n if (autoplaying === \"paused\" || autoplaying === \"focused\") {\n return;\n }\n } else if (playType === \"blur\") {\n if (autoplaying === \"paused\" || autoplaying === \"hovered\") {\n return;\n }\n }\n\n _this.autoplayTimer = setInterval(_this.play, _this.props.autoplaySpeed + 50);\n\n _this.setState({\n autoplaying: \"playing\"\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"pause\", function (pauseType) {\n if (_this.autoplayTimer) {\n clearInterval(_this.autoplayTimer);\n _this.autoplayTimer = null;\n }\n\n var autoplaying = _this.state.autoplaying;\n\n if (pauseType === \"paused\") {\n _this.setState({\n autoplaying: \"paused\"\n });\n } else if (pauseType === \"focused\") {\n if (autoplaying === \"hovered\" || autoplaying === \"playing\") {\n _this.setState({\n autoplaying: \"focused\"\n });\n }\n } else {\n // pauseType is 'hovered'\n if (autoplaying === \"playing\") {\n _this.setState({\n autoplaying: \"hovered\"\n });\n }\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onDotsOver\", function () {\n return _this.props.autoplay && _this.pause(\"hovered\");\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onDotsLeave\", function () {\n return _this.props.autoplay && _this.state.autoplaying === \"hovered\" && _this.autoPlay(\"leave\");\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onTrackOver\", function () {\n return _this.props.autoplay && _this.pause(\"hovered\");\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onTrackLeave\", function () {\n return _this.props.autoplay && _this.state.autoplaying === \"hovered\" && _this.autoPlay(\"leave\");\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onSlideFocus\", function () {\n return _this.props.autoplay && _this.pause(\"focused\");\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onSlideBlur\", function () {\n return _this.props.autoplay && _this.state.autoplaying === \"focused\" && _this.autoPlay(\"blur\");\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"render\", function () {\n var className = (0, _classnames.default)(\"slick-slider\", _this.props.className, {\n \"slick-vertical\": _this.props.vertical,\n \"slick-initialized\": true\n });\n\n var spec = _objectSpread({}, _this.props, _this.state);\n\n var trackProps = (0, _innerSliderUtils.extractObject)(spec, [\"fade\", \"cssEase\", \"speed\", \"infinite\", \"centerMode\", \"focusOnSelect\", \"currentSlide\", \"lazyLoad\", \"lazyLoadedList\", \"rtl\", \"slideWidth\", \"slideHeight\", \"listHeight\", \"vertical\", \"slidesToShow\", \"slidesToScroll\", \"slideCount\", \"trackStyle\", \"variableWidth\", \"unslick\", \"centerPadding\"]);\n var pauseOnHover = _this.props.pauseOnHover;\n trackProps = _objectSpread({}, trackProps, {\n onMouseEnter: pauseOnHover ? _this.onTrackOver : null,\n onMouseLeave: pauseOnHover ? _this.onTrackLeave : null,\n onMouseOver: pauseOnHover ? _this.onTrackOver : null,\n focusOnSelect: _this.props.focusOnSelect ? _this.selectHandler : null\n });\n var dots;\n\n if (_this.props.dots === true && _this.state.slideCount >= _this.props.slidesToShow) {\n var dotProps = (0, _innerSliderUtils.extractObject)(spec, [\"dotsClass\", \"slideCount\", \"slidesToShow\", \"currentSlide\", \"slidesToScroll\", \"clickHandler\", \"children\", \"customPaging\", \"infinite\", \"appendDots\"]);\n var pauseOnDotsHover = _this.props.pauseOnDotsHover;\n dotProps = _objectSpread({}, dotProps, {\n clickHandler: _this.changeSlide,\n onMouseEnter: pauseOnDotsHover ? _this.onDotsLeave : null,\n onMouseOver: pauseOnDotsHover ? _this.onDotsOver : null,\n onMouseLeave: pauseOnDotsHover ? _this.onDotsLeave : null\n });\n dots = _react.default.createElement(_dots.Dots, dotProps);\n }\n\n var prevArrow, nextArrow;\n var arrowProps = (0, _innerSliderUtils.extractObject)(spec, [\"infinite\", \"centerMode\", \"currentSlide\", \"slideCount\", \"slidesToShow\", \"prevArrow\", \"nextArrow\"]);\n arrowProps.clickHandler = _this.changeSlide;\n\n if (_this.props.arrows) {\n prevArrow = _react.default.createElement(_arrows.PrevArrow, arrowProps);\n nextArrow = _react.default.createElement(_arrows.NextArrow, arrowProps);\n }\n\n var verticalHeightStyle = null;\n\n if (_this.props.vertical) {\n verticalHeightStyle = {\n height: _this.state.listHeight\n };\n }\n\n var centerPaddingStyle = null;\n\n if (_this.props.vertical === false) {\n if (_this.props.centerMode === true) {\n centerPaddingStyle = {\n padding: \"0px \" + _this.props.centerPadding\n };\n }\n } else {\n if (_this.props.centerMode === true) {\n centerPaddingStyle = {\n padding: _this.props.centerPadding + \" 0px\"\n };\n }\n }\n\n var listStyle = _objectSpread({}, verticalHeightStyle, centerPaddingStyle);\n\n var touchMove = _this.props.touchMove;\n var listProps = {\n className: \"slick-list\",\n style: listStyle,\n onClick: _this.clickHandler,\n onMouseDown: touchMove ? _this.swipeStart : null,\n onMouseMove: _this.state.dragging && touchMove ? _this.swipeMove : null,\n onMouseUp: touchMove ? _this.swipeEnd : null,\n onMouseLeave: _this.state.dragging && touchMove ? _this.swipeEnd : null,\n onTouchStart: touchMove ? _this.swipeStart : null,\n onTouchMove: _this.state.dragging && touchMove ? _this.swipeMove : null,\n onTouchEnd: touchMove ? _this.swipeEnd : null,\n onTouchCancel: _this.state.dragging && touchMove ? _this.swipeEnd : null,\n onKeyDown: _this.props.accessibility ? _this.keyHandler : null\n };\n var innerSliderProps = {\n className: className,\n dir: \"ltr\"\n };\n\n if (_this.props.unslick) {\n listProps = {\n className: \"slick-list\"\n };\n innerSliderProps = {\n className: className\n };\n }\n\n return _react.default.createElement(\"div\", innerSliderProps, !_this.props.unslick ? prevArrow : \"\", _react.default.createElement(\"div\", _extends({\n ref: _this.listRefHandler\n }, listProps), _react.default.createElement(_track.Track, _extends({\n ref: _this.trackRefHandler\n }, trackProps), _this.props.children)), !_this.props.unslick ? nextArrow : \"\", !_this.props.unslick ? dots : \"\");\n });\n\n _this.list = null;\n _this.track = null;\n _this.state = _objectSpread({}, _initialState.default, {\n currentSlide: _this.props.initialSlide,\n slideCount: _react.default.Children.count(_this.props.children)\n });\n _this.callbackTimers = [];\n _this.clickable = true;\n _this.debouncedResize = null;\n return _this;\n }\n\n return InnerSlider;\n}(_react.default.Component);\n\nexports.InnerSlider = InnerSlider;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar initialState = {\n animating: false,\n autoplaying: null,\n currentDirection: 0,\n currentLeft: null,\n currentSlide: 0,\n direction: 1,\n dragging: false,\n edgeDragged: false,\n initialized: false,\n lazyLoadedList: [],\n listHeight: null,\n listWidth: null,\n scrolling: false,\n slideCount: null,\n slideHeight: null,\n slideWidth: null,\n swipeLeft: null,\n swiped: false,\n // used by swipeEvent. differentites between touch and swipe.\n swiping: false,\n touchObject: {\n startX: 0,\n startY: 0,\n curX: 0,\n curY: 0\n },\n trackStyle: {},\n trackWidth: 0\n};\nvar _default = initialState;\nexports.default = _default;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Track = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\n\nvar _innerSliderUtils = require(\"./utils/innerSliderUtils\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// given specifications/props for a slide, fetch all the classes that need to be applied to the slide\nvar getSlideClasses = function getSlideClasses(spec) {\n var slickActive, slickCenter, slickCloned;\n var centerOffset, index;\n\n if (spec.rtl) {\n index = spec.slideCount - 1 - spec.index;\n } else {\n index = spec.index;\n }\n\n slickCloned = index < 0 || index >= spec.slideCount;\n\n if (spec.centerMode) {\n centerOffset = Math.floor(spec.slidesToShow / 2);\n slickCenter = (index - spec.currentSlide) % spec.slideCount === 0;\n\n if (index > spec.currentSlide - centerOffset - 1 && index <= spec.currentSlide + centerOffset) {\n slickActive = true;\n }\n } else {\n slickActive = spec.currentSlide <= index && index < spec.currentSlide + spec.slidesToShow;\n }\n\n var slickCurrent = index === spec.currentSlide;\n return {\n \"slick-slide\": true,\n \"slick-active\": slickActive,\n \"slick-center\": slickCenter,\n \"slick-cloned\": slickCloned,\n \"slick-current\": slickCurrent // dubious in case of RTL\n\n };\n};\n\nvar getSlideStyle = function getSlideStyle(spec) {\n var style = {};\n\n if (spec.variableWidth === undefined || spec.variableWidth === false) {\n style.width = spec.slideWidth;\n }\n\n if (spec.fade) {\n style.position = \"relative\";\n\n if (spec.vertical) {\n style.top = -spec.index * parseInt(spec.slideHeight);\n } else {\n style.left = -spec.index * parseInt(spec.slideWidth);\n }\n\n style.opacity = spec.currentSlide === spec.index ? 1 : 0;\n style.transition = \"opacity \" + spec.speed + \"ms \" + spec.cssEase + \", \" + \"visibility \" + spec.speed + \"ms \" + spec.cssEase;\n style.WebkitTransition = \"opacity \" + spec.speed + \"ms \" + spec.cssEase + \", \" + \"visibility \" + spec.speed + \"ms \" + spec.cssEase;\n }\n\n return style;\n};\n\nvar getKey = function getKey(child, fallbackKey) {\n return child.key || fallbackKey;\n};\n\nvar renderSlides = function renderSlides(spec) {\n var key;\n var slides = [];\n var preCloneSlides = [];\n var postCloneSlides = [];\n\n var childrenCount = _react.default.Children.count(spec.children);\n\n var startIndex = (0, _innerSliderUtils.lazyStartIndex)(spec);\n var endIndex = (0, _innerSliderUtils.lazyEndIndex)(spec);\n\n _react.default.Children.forEach(spec.children, function (elem, index) {\n var child;\n var childOnClickOptions = {\n message: \"children\",\n index: index,\n slidesToScroll: spec.slidesToScroll,\n currentSlide: spec.currentSlide\n }; // in case of lazyLoad, whether or not we want to fetch the slide\n\n if (!spec.lazyLoad || spec.lazyLoad && spec.lazyLoadedList.indexOf(index) >= 0) {\n child = elem;\n } else {\n child = _react.default.createElement(\"div\", null);\n }\n\n var childStyle = getSlideStyle(_objectSpread({}, spec, {\n index: index\n }));\n var slideClass = child.props.className || \"\";\n var slideClasses = getSlideClasses(_objectSpread({}, spec, {\n index: index\n })); // push a cloned element of the desired slide\n\n slides.push(_react.default.cloneElement(child, {\n key: \"original\" + getKey(child, index),\n \"data-index\": index,\n className: (0, _classnames.default)(slideClasses, slideClass),\n tabIndex: \"-1\",\n \"aria-hidden\": !slideClasses[\"slick-active\"],\n style: _objectSpread({\n outline: \"none\"\n }, child.props.style || {}, childStyle),\n onClick: function onClick(e) {\n child.props && child.props.onClick && child.props.onClick(e);\n\n if (spec.focusOnSelect) {\n spec.focusOnSelect(childOnClickOptions);\n }\n }\n })); // if slide needs to be precloned or postcloned\n\n if (spec.infinite && spec.fade === false) {\n var preCloneNo = childrenCount - index;\n\n if (preCloneNo <= (0, _innerSliderUtils.getPreClones)(spec) && childrenCount !== spec.slidesToShow) {\n key = -preCloneNo;\n\n if (key >= startIndex) {\n child = elem;\n }\n\n slideClasses = getSlideClasses(_objectSpread({}, spec, {\n index: key\n }));\n preCloneSlides.push(_react.default.cloneElement(child, {\n key: \"precloned\" + getKey(child, key),\n \"data-index\": key,\n tabIndex: \"-1\",\n className: (0, _classnames.default)(slideClasses, slideClass),\n \"aria-hidden\": !slideClasses[\"slick-active\"],\n style: _objectSpread({}, child.props.style || {}, childStyle),\n onClick: function onClick(e) {\n child.props && child.props.onClick && child.props.onClick(e);\n\n if (spec.focusOnSelect) {\n spec.focusOnSelect(childOnClickOptions);\n }\n }\n }));\n }\n\n if (childrenCount !== spec.slidesToShow) {\n key = childrenCount + index;\n\n if (key < endIndex) {\n child = elem;\n }\n\n slideClasses = getSlideClasses(_objectSpread({}, spec, {\n index: key\n }));\n postCloneSlides.push(_react.default.cloneElement(child, {\n key: \"postcloned\" + getKey(child, key),\n \"data-index\": key,\n tabIndex: \"-1\",\n className: (0, _classnames.default)(slideClasses, slideClass),\n \"aria-hidden\": !slideClasses[\"slick-active\"],\n style: _objectSpread({}, child.props.style || {}, childStyle),\n onClick: function onClick(e) {\n child.props && child.props.onClick && child.props.onClick(e);\n\n if (spec.focusOnSelect) {\n spec.focusOnSelect(childOnClickOptions);\n }\n }\n }));\n }\n }\n });\n\n if (spec.rtl) {\n return preCloneSlides.concat(slides, postCloneSlides).reverse();\n } else {\n return preCloneSlides.concat(slides, postCloneSlides);\n }\n};\n\nvar Track =\n/*#__PURE__*/\nfunction (_React$PureComponent) {\n _inherits(Track, _React$PureComponent);\n\n function Track() {\n _classCallCheck(this, Track);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Track).apply(this, arguments));\n }\n\n _createClass(Track, [{\n key: \"render\",\n value: function render() {\n var slides = renderSlides(this.props);\n var _this$props = this.props,\n onMouseEnter = _this$props.onMouseEnter,\n onMouseOver = _this$props.onMouseOver,\n onMouseLeave = _this$props.onMouseLeave;\n var mouseEvents = {\n onMouseEnter: onMouseEnter,\n onMouseOver: onMouseOver,\n onMouseLeave: onMouseLeave\n };\n return _react.default.createElement(\"div\", _extends({\n className: \"slick-track\",\n style: this.props.trackStyle\n }, mouseEvents), slides);\n }\n }]);\n\n return Track;\n}(_react.default.PureComponent);\n\nexports.Track = Track;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Dots = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nvar getDotCount = function getDotCount(spec) {\n var dots;\n\n if (spec.infinite) {\n dots = Math.ceil(spec.slideCount / spec.slidesToScroll);\n } else {\n dots = Math.ceil((spec.slideCount - spec.slidesToShow) / spec.slidesToScroll) + 1;\n }\n\n return dots;\n};\n\nvar Dots =\n/*#__PURE__*/\nfunction (_React$PureComponent) {\n _inherits(Dots, _React$PureComponent);\n\n function Dots() {\n _classCallCheck(this, Dots);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(Dots).apply(this, arguments));\n }\n\n _createClass(Dots, [{\n key: \"clickHandler\",\n value: function clickHandler(options, e) {\n // In Autoplay the focus stays on clicked button even after transition\n // to next slide. That only goes away by click somewhere outside\n e.preventDefault();\n this.props.clickHandler(options);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this = this;\n\n var dotCount = getDotCount({\n slideCount: this.props.slideCount,\n slidesToScroll: this.props.slidesToScroll,\n slidesToShow: this.props.slidesToShow,\n infinite: this.props.infinite\n }); // Apply join & split to Array to pre-fill it for IE8\n //\n // Credit: http://stackoverflow.com/a/13735425/1849458\n\n var _this$props = this.props,\n onMouseEnter = _this$props.onMouseEnter,\n onMouseOver = _this$props.onMouseOver,\n onMouseLeave = _this$props.onMouseLeave;\n var mouseEvents = {\n onMouseEnter: onMouseEnter,\n onMouseOver: onMouseOver,\n onMouseLeave: onMouseLeave\n };\n var dots = Array.apply(null, Array(dotCount + 1).join(\"0\").split(\"\")).map(function (x, i) {\n var leftBound = i * _this.props.slidesToScroll;\n var rightBound = i * _this.props.slidesToScroll + (_this.props.slidesToScroll - 1);\n var className = (0, _classnames.default)({\n \"slick-active\": _this.props.currentSlide >= leftBound && _this.props.currentSlide <= rightBound\n });\n var dotOptions = {\n message: \"dots\",\n index: i,\n slidesToScroll: _this.props.slidesToScroll,\n currentSlide: _this.props.currentSlide\n };\n\n var onClick = _this.clickHandler.bind(_this, dotOptions);\n\n return _react.default.createElement(\"li\", {\n key: i,\n className: className\n }, _react.default.cloneElement(_this.props.customPaging(i), {\n onClick: onClick\n }));\n });\n return _react.default.cloneElement(this.props.appendDots(dots), _objectSpread({\n className: this.props.dotsClass\n }, mouseEvents));\n }\n }]);\n\n return Dots;\n}(_react.default.PureComponent);\n\nexports.Dots = Dots;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.NextArrow = exports.PrevArrow = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\n\nvar _innerSliderUtils = require(\"./utils/innerSliderUtils\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nvar PrevArrow =\n/*#__PURE__*/\nfunction (_React$PureComponent) {\n _inherits(PrevArrow, _React$PureComponent);\n\n function PrevArrow() {\n _classCallCheck(this, PrevArrow);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(PrevArrow).apply(this, arguments));\n }\n\n _createClass(PrevArrow, [{\n key: \"clickHandler\",\n value: function clickHandler(options, e) {\n if (e) {\n e.preventDefault();\n }\n\n this.props.clickHandler(options, e);\n }\n }, {\n key: \"render\",\n value: function render() {\n var prevClasses = {\n \"slick-arrow\": true,\n \"slick-prev\": true\n };\n var prevHandler = this.clickHandler.bind(this, {\n message: \"previous\"\n });\n\n if (!this.props.infinite && (this.props.currentSlide === 0 || this.props.slideCount <= this.props.slidesToShow)) {\n prevClasses[\"slick-disabled\"] = true;\n prevHandler = null;\n }\n\n var prevArrowProps = {\n key: \"0\",\n \"data-role\": \"none\",\n className: (0, _classnames.default)(prevClasses),\n style: {\n display: \"block\"\n },\n onClick: prevHandler\n };\n var customProps = {\n currentSlide: this.props.currentSlide,\n slideCount: this.props.slideCount\n };\n var prevArrow;\n\n if (this.props.prevArrow) {\n prevArrow = _react.default.cloneElement(this.props.prevArrow, _objectSpread({}, prevArrowProps, customProps));\n } else {\n prevArrow = _react.default.createElement(\"button\", _extends({\n key: \"0\",\n type: \"button\"\n }, prevArrowProps), \" \", \"Previous\");\n }\n\n return prevArrow;\n }\n }]);\n\n return PrevArrow;\n}(_react.default.PureComponent);\n\nexports.PrevArrow = PrevArrow;\n\nvar NextArrow =\n/*#__PURE__*/\nfunction (_React$PureComponent2) {\n _inherits(NextArrow, _React$PureComponent2);\n\n function NextArrow() {\n _classCallCheck(this, NextArrow);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(NextArrow).apply(this, arguments));\n }\n\n _createClass(NextArrow, [{\n key: \"clickHandler\",\n value: function clickHandler(options, e) {\n if (e) {\n e.preventDefault();\n }\n\n this.props.clickHandler(options, e);\n }\n }, {\n key: \"render\",\n value: function render() {\n var nextClasses = {\n \"slick-arrow\": true,\n \"slick-next\": true\n };\n var nextHandler = this.clickHandler.bind(this, {\n message: \"next\"\n });\n\n if (!(0, _innerSliderUtils.canGoNext)(this.props)) {\n nextClasses[\"slick-disabled\"] = true;\n nextHandler = null;\n }\n\n var nextArrowProps = {\n key: \"1\",\n \"data-role\": \"none\",\n className: (0, _classnames.default)(nextClasses),\n style: {\n display: \"block\"\n },\n onClick: nextHandler\n };\n var customProps = {\n currentSlide: this.props.currentSlide,\n slideCount: this.props.slideCount\n };\n var nextArrow;\n\n if (this.props.nextArrow) {\n nextArrow = _react.default.cloneElement(this.props.nextArrow, _objectSpread({}, nextArrowProps, customProps));\n } else {\n nextArrow = _react.default.createElement(\"button\", _extends({\n key: \"1\",\n type: \"button\"\n }, nextArrowProps), \" \", \"Next\");\n }\n\n return nextArrow;\n }\n }]);\n\n return NextArrow;\n}(_react.default.PureComponent);\n\nexports.NextArrow = NextArrow;","var camel2hyphen = require('string-convert/camel2hyphen');\n\nvar isDimension = function (feature) {\n var re = /[height|width]$/;\n return re.test(feature);\n};\n\nvar obj2mq = function (obj) {\n var mq = '';\n var features = Object.keys(obj);\n features.forEach(function (feature, index) {\n var value = obj[feature];\n feature = camel2hyphen(feature);\n // Add px to dimension features\n if (isDimension(feature) && typeof value === 'number') {\n value = value + 'px';\n }\n if (value === true) {\n mq += feature;\n } else if (value === false) {\n mq += 'not ' + feature;\n } else {\n mq += '(' + feature + ': ' + value + ')';\n }\n if (index < features.length-1) {\n mq += ' and '\n }\n });\n return mq;\n};\n\nvar json2mq = function (query) {\n var mq = '';\n if (typeof query === 'string') {\n return query;\n }\n // Handling array of media queries\n if (query instanceof Array) {\n query.forEach(function (q, index) {\n mq += obj2mq(q);\n if (index < query.length-1) {\n mq += ', '\n }\n });\n return mq;\n }\n // Handling single media query\n return obj2mq(query);\n};\n\nmodule.exports = json2mq;","var camel2hyphen = function (str) {\n return str\n .replace(/[A-Z]/g, function (match) {\n return '-' + match.toLowerCase();\n })\n .toLowerCase();\n};\n\nmodule.exports = camel2hyphen;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar defaultProps = {\n accessibility: true,\n adaptiveHeight: false,\n afterChange: null,\n appendDots: function appendDots(dots) {\n return _react.default.createElement(\"ul\", {\n style: {\n display: \"block\"\n }\n }, dots);\n },\n arrows: true,\n autoplay: false,\n autoplaySpeed: 3000,\n beforeChange: null,\n centerMode: false,\n centerPadding: \"50px\",\n className: \"\",\n cssEase: \"ease\",\n customPaging: function customPaging(i) {\n return _react.default.createElement(\"button\", null, i + 1);\n },\n dots: false,\n dotsClass: \"slick-dots\",\n draggable: true,\n easing: \"linear\",\n edgeFriction: 0.35,\n fade: false,\n focusOnSelect: false,\n infinite: true,\n initialSlide: 0,\n lazyLoad: null,\n nextArrow: null,\n onEdge: null,\n onInit: null,\n onLazyLoadError: null,\n onReInit: null,\n pauseOnDotsHover: false,\n pauseOnFocus: false,\n pauseOnHover: true,\n prevArrow: null,\n responsive: null,\n rows: 1,\n rtl: false,\n slide: \"div\",\n slidesPerRow: 1,\n slidesToScroll: 1,\n slidesToShow: 1,\n speed: 500,\n swipe: true,\n swipeEvent: null,\n swipeToSlide: false,\n touchMove: true,\n touchThreshold: 5,\n useCSS: true,\n useTransform: true,\n variableWidth: false,\n vertical: false,\n waitForAnimate: true\n};\nvar _default = defaultProps;\nexports.default = _default;","var MediaQueryDispatch = require('./MediaQueryDispatch');\nmodule.exports = new MediaQueryDispatch();\n","var MediaQuery = require('./MediaQuery');\nvar Util = require('./Util');\nvar each = Util.each;\nvar isFunction = Util.isFunction;\nvar isArray = Util.isArray;\n\n/**\n * Allows for registration of query handlers.\n * Manages the query handler's state and is responsible for wiring up browser events\n *\n * @constructor\n */\nfunction MediaQueryDispatch () {\n if(!window.matchMedia) {\n throw new Error('matchMedia not present, legacy browsers require a polyfill');\n }\n\n this.queries = {};\n this.browserIsIncapable = !window.matchMedia('only all').matches;\n}\n\nMediaQueryDispatch.prototype = {\n\n constructor : MediaQueryDispatch,\n\n /**\n * Registers a handler for the given media query\n *\n * @param {string} q the media query\n * @param {object || Array || Function} options either a single query handler object, a function, or an array of query handlers\n * @param {function} options.match fired when query matched\n * @param {function} [options.unmatch] fired when a query is no longer matched\n * @param {function} [options.setup] fired when handler first triggered\n * @param {boolean} [options.deferSetup=false] whether setup should be run immediately or deferred until query is first matched\n * @param {boolean} [shouldDegrade=false] whether this particular media query should always run on incapable browsers\n */\n register : function(q, options, shouldDegrade) {\n var queries = this.queries,\n isUnconditional = shouldDegrade && this.browserIsIncapable;\n\n if(!queries[q]) {\n queries[q] = new MediaQuery(q, isUnconditional);\n }\n\n //normalise to object in an array\n if(isFunction(options)) {\n options = { match : options };\n }\n if(!isArray(options)) {\n options = [options];\n }\n each(options, function(handler) {\n if (isFunction(handler)) {\n handler = { match : handler };\n }\n queries[q].addHandler(handler);\n });\n\n return this;\n },\n\n /**\n * unregisters a query and all it's handlers, or a specific handler for a query\n *\n * @param {string} q the media query to target\n * @param {object || function} [handler] specific handler to unregister\n */\n unregister : function(q, handler) {\n var query = this.queries[q];\n\n if(query) {\n if(handler) {\n query.removeHandler(handler);\n }\n else {\n query.clear();\n delete this.queries[q];\n }\n }\n\n return this;\n }\n};\n\nmodule.exports = MediaQueryDispatch;\n","var QueryHandler = require('./QueryHandler');\nvar each = require('./Util').each;\n\n/**\n * Represents a single media query, manages it's state and registered handlers for this query\n *\n * @constructor\n * @param {string} query the media query string\n * @param {boolean} [isUnconditional=false] whether the media query should run regardless of whether the conditions are met. Primarily for helping older browsers deal with mobile-first design\n */\nfunction MediaQuery(query, isUnconditional) {\n this.query = query;\n this.isUnconditional = isUnconditional;\n this.handlers = [];\n this.mql = window.matchMedia(query);\n\n var self = this;\n this.listener = function(mql) {\n // Chrome passes an MediaQueryListEvent object, while other browsers pass MediaQueryList directly\n self.mql = mql.currentTarget || mql;\n self.assess();\n };\n this.mql.addListener(this.listener);\n}\n\nMediaQuery.prototype = {\n\n constuctor : MediaQuery,\n\n /**\n * add a handler for this query, triggering if already active\n *\n * @param {object} handler\n * @param {function} handler.match callback for when query is activated\n * @param {function} [handler.unmatch] callback for when query is deactivated\n * @param {function} [handler.setup] callback for immediate execution when a query handler is registered\n * @param {boolean} [handler.deferSetup=false] should the setup callback be deferred until the first time the handler is matched?\n */\n addHandler : function(handler) {\n var qh = new QueryHandler(handler);\n this.handlers.push(qh);\n\n this.matches() && qh.on();\n },\n\n /**\n * removes the given handler from the collection, and calls it's destroy methods\n *\n * @param {object || function} handler the handler to remove\n */\n removeHandler : function(handler) {\n var handlers = this.handlers;\n each(handlers, function(h, i) {\n if(h.equals(handler)) {\n h.destroy();\n return !handlers.splice(i,1); //remove from array and exit each early\n }\n });\n },\n\n /**\n * Determine whether the media query should be considered a match\n *\n * @return {Boolean} true if media query can be considered a match, false otherwise\n */\n matches : function() {\n return this.mql.matches || this.isUnconditional;\n },\n\n /**\n * Clears all handlers and unbinds events\n */\n clear : function() {\n each(this.handlers, function(handler) {\n handler.destroy();\n });\n this.mql.removeListener(this.listener);\n this.handlers.length = 0; //clear array\n },\n\n /*\n * Assesses the query, turning on all handlers if it matches, turning them off if it doesn't match\n */\n assess : function() {\n var action = this.matches() ? 'on' : 'off';\n\n each(this.handlers, function(handler) {\n handler[action]();\n });\n }\n};\n\nmodule.exports = MediaQuery;\n","/**\n * Delegate to handle a media query being matched and unmatched.\n *\n * @param {object} options\n * @param {function} options.match callback for when the media query is matched\n * @param {function} [options.unmatch] callback for when the media query is unmatched\n * @param {function} [options.setup] one-time callback triggered the first time a query is matched\n * @param {boolean} [options.deferSetup=false] should the setup callback be run immediately, rather than first time query is matched?\n * @constructor\n */\nfunction QueryHandler(options) {\n this.options = options;\n !options.deferSetup && this.setup();\n}\n\nQueryHandler.prototype = {\n\n constructor : QueryHandler,\n\n /**\n * coordinates setup of the handler\n *\n * @function\n */\n setup : function() {\n if(this.options.setup) {\n this.options.setup();\n }\n this.initialised = true;\n },\n\n /**\n * coordinates setup and triggering of the handler\n *\n * @function\n */\n on : function() {\n !this.initialised && this.setup();\n this.options.match && this.options.match();\n },\n\n /**\n * coordinates the unmatch event for the handler\n *\n * @function\n */\n off : function() {\n this.options.unmatch && this.options.unmatch();\n },\n\n /**\n * called when a handler is to be destroyed.\n * delegates to the destroy or unmatch callbacks, depending on availability.\n *\n * @function\n */\n destroy : function() {\n this.options.destroy ? this.options.destroy() : this.off();\n },\n\n /**\n * determines equality by reference.\n * if object is supplied compare options, if function, compare match callback\n *\n * @function\n * @param {object || function} [target] the target for comparison\n */\n equals : function(target) {\n return this.options === target || this.options.match === target;\n }\n\n};\n\nmodule.exports = QueryHandler;\n","import { createSelector } from 'reselect';\nimport { RootState } from '../../reducer';\n\nconst favoriteSelector = (state: RootState) => state.favorite;\n\nexport const favoriteBrandsSelector = createSelector(\n favoriteSelector,\n (favorite) => favorite.favoriteBrands\n);\n\nexport const makeFavoriteBrandSelector = (brandId: string) =>\n createSelector(\n favoriteBrandsSelector,\n (favorites) =>\n favorites.find(({ brand }) => brand.id === brandId) ?? undefined\n );\n","import React, { useState } from 'react';\nimport MessageModal from './MessageModal';\nimport './styles.scss';\n\ntype SendMessageProps = {\n brandId: string;\n productName?: string;\n className?: string;\n children?: React.ReactNode;\n tel?: boolean;\n isInitOpen?: boolean;\n};\n\nconst SendMessage: React.FC = ({\n brandId,\n productName,\n className,\n children,\n tel,\n isInitOpen,\n}) => {\n const [showModal, setShowModal] = useState(!!isInitOpen);\n\n return (\n <>\n setShowModal(true)}\n className={className || 'send-message-link'}\n >\n {children}\n \n {showModal && (\n setShowModal(false)}\n tel={tel}\n />\n )}\n \n );\n};\n\nexport default SendMessage;\n","import { API, Storage, graphqlOperation } from 'aws-amplify';\nimport { Dispatch } from 'redux';\nimport { searchContacts, searchProductCollections } from '~/graphql/queries';\nimport { Collection } from '~domain/product/Collection';\nimport { CollectionVideo } from '~domain/product/CollectionVideo';\nimport { Product as ProductModel } from '~domain/product/Product';\nimport {\n getCollectionWithProduct,\n getCollectionWithProductPreview,\n getCollectionWithProductUnAuth,\n listCollectionsByBrandWithProducts,\n listCollectionsByBrandWithProductsPreview,\n listCollectionsByBrandWithProductsUnAuth,\n} from '../../../graphql/custom_queries';\nimport {\n createCollection as createCollectionQuery,\n createProductCollection,\n deleteCollection as deleteCollectionQuery,\n deleteProductCollection,\n updateCollection as updateCollectionQuery,\n updateProductCollection,\n} from '../../../graphql/mutations';\nimport {\n clearCollectionList,\n removeCollection,\n setCollection,\n setCollectionList,\n} from '../actions';\nimport {\n Collection as CollectionJson,\n ProductCollection as ProductCollectionJson,\n} from '../types';\n\nimport { Product } from '~redux/brand/types';\nimport { PartialRequired } from '~types/utils';\nimport { executeQuery } from '~utils/graphql';\nimport { getImageUrl, getPublicImageUrl } from '~utils/image';\n\nconst getSignedProduct = async (product: Product) => {\n const signedPosts = await Promise.all(\n product.imageKeys.items.map(async (item: any) => {\n const signedUrl = getPublicImageUrl(item.imageKey);\n item.imageUrl = signedUrl;\n return item;\n })\n );\n\n const signedTypes = await Promise.all(\n product.producttype.items.map(async (item: any) => {\n if (!item) {\n return;\n }\n const signedUrl = item.imageKey ? getPublicImageUrl(item.imageKey) : null;\n item.imageUrl = signedUrl;\n return item;\n })\n );\n\n const signedProduct = {\n ...product,\n imageKeys: signedPosts,\n producttype: signedTypes,\n };\n return signedProduct;\n};\n\nexport const getCollectionList = ({\n brand_id,\n onlyPublished,\n unAuth,\n preview,\n nextToken,\n directOwners,\n}: {\n brand_id: string;\n onlyPublished?: boolean;\n unAuth?: boolean;\n preview?: boolean;\n nextToken?: string;\n directOwners?: string[];\n}) => {\n return async (dispatch: Dispatch): Promise => {\n const res = await executeQuery(\n unAuth\n ? listCollectionsByBrandWithProductsUnAuth\n : preview\n ? listCollectionsByBrandWithProductsPreview\n : listCollectionsByBrandWithProducts,\n {\n brand_id,\n limit: 50,\n filter: onlyPublished ? { published: { eq: true } } : undefined,\n sortDirection: 'DESC',\n nextToken,\n },\n unAuth\n );\n\n const {\n data: {\n listCollectionsByBrand: { items, nextToken: token },\n },\n } = res;\n\n if (items && items.length) {\n if (items.some((item: Collection) => item.display_order)) {\n const sortItems = items.sort((a: Collection, b: Collection) => {\n if (!a.display_order) return 1;\n if (!b.display_order) return -1;\n return a.display_order - b.display_order;\n });\n // console.log(sortItems);\n }\n }\n\n dispatch(\n setCollectionList({\n items: (await Promise.all(\n items\n .filter(\n (item: CollectionJson) =>\n !onlyPublished ||\n preview ||\n !item.brand?.sell_only_direct ||\n directOwners?.includes(item.brand?.brand_owner)\n )\n .map(async (item: CollectionJson) => ({\n ...item,\n productCollections: ((await Promise.all(\n (item.productCollections as any)?.items\n .filter(\n ({ product, productType }: ProductCollectionJson) =>\n product &&\n (!onlyPublished ||\n (product.product_public_status !== '非公開' &&\n !product.suspended &&\n !productType?.suspended &&\n (productType?.published ?? true)))\n )\n .map(async (collection: any) => {\n const signedProduct = await getSignedProduct(\n collection.product\n );\n return { ...collection, product: signedProduct };\n })\n )) as ProductCollectionJson[]).sort(\n (a, b) => (a.sort_order ?? 0) - (b.sort_order ?? 0)\n ),\n imageUrl: await getImageUrl(item.image_key),\n }))\n .filter(\n async (collection: Promise) =>\n (await collection).productCollections?.length\n )\n .map(async (collection: Promise) =>\n Collection.create(await collection)\n )\n )) as Collection[],\n nextToken: token,\n })\n );\n };\n};\n\nexport const getCollection = (\n id: string,\n all?: boolean,\n unAuth?: boolean,\n preview?: boolean\n) => async (dispatch: Dispatch): Promise => {\n const res = await executeQuery(\n unAuth\n ? getCollectionWithProductUnAuth\n : preview\n ? getCollectionWithProductPreview\n : getCollectionWithProduct,\n { id },\n unAuth\n );\n\n const {\n data: { getCollection: item },\n } = res;\n\n const collection: CollectionJson = {\n ...item,\n productCollections: ((await Promise.all(\n (item.productCollections as any)?.items\n .filter(\n ({ product, productType }: ProductCollectionJson) =>\n product &&\n (all ||\n (product.product_public_status !== '非公開' &&\n !product.suspended &&\n !productType?.suspended &&\n (productType?.published ?? true)))\n )\n .map(\n async ({ product, productType, ...item }: ProductCollectionJson) => ({\n ...item,\n productType,\n product: {\n ...product,\n producttype: product?.producttype?.items,\n imageUrl: await getImageUrl(\n productType?.imageKey ??\n (product?.imageKeys as any)?.items?.[0]?.imageKey\n ),\n },\n })\n )\n )) as ProductCollectionJson[]).sort(\n (a, b) => (a.sort_order ?? 0) - (b.sort_order ?? 0)\n ),\n imageUrl: getPublicImageUrl(item.image_key, 'small'),\n };\n\n const collectionModel = Collection.create(collection);\n\n dispatch(setCollection(collectionModel));\n};\n\nexport const createCollection = ({\n collection,\n productCollections,\n imageFile,\n videoFile,\n}: {\n collection: CollectionJson;\n productCollections: ProductCollectionJson[];\n imageFile: any;\n videoFile?: CollectionVideo;\n}) => async (dispatch: Dispatch): Promise => {\n //ファイルのアップロード\n await Storage.put(collection.image_key, imageFile);\n\n let video_key = null;\n if (videoFile) {\n const uploadedVideo = await videoFile.upload();\n video_key = uploadedVideo.videoKey;\n }\n\n const res = await API.graphql(\n graphqlOperation(createCollectionQuery, {\n input: { ...collection, video_key },\n })\n );\n\n const {\n data: { createCollection: item },\n } = res;\n\n await Promise.all(\n productCollections.map(\n async (input) =>\n await API.graphql(\n graphqlOperation(createProductCollection, {\n input: {\n ...input,\n collection_id: item.id,\n },\n })\n )\n )\n );\n};\n\nexport const updateCollection = ({\n collection,\n productCollections,\n removedProductIds,\n oldImageKey,\n imageFile,\n oldVideoKey,\n videoFile,\n}: {\n collection: CollectionJson;\n productCollections: ProductCollectionJson[];\n removedProductIds: string[];\n oldImageKey: string;\n imageFile?: any;\n oldVideoKey?: string;\n videoFile?: CollectionVideo;\n}) => async (dispatch: Dispatch): Promise => {\n //ファイルのアップロード\n let image_key = oldImageKey;\n if (imageFile) {\n await Storage.put(collection.image_key, imageFile);\n await Storage.remove(oldImageKey);\n image_key = collection.image_key;\n }\n\n let video_key = null;\n if (videoFile) {\n if (oldVideoKey !== videoFile.videoKey) {\n const uploadedVideo = await videoFile.upload();\n video_key = uploadedVideo.videoKey;\n } else {\n video_key = oldVideoKey;\n }\n }\n\n if (oldVideoKey) {\n const oldVideoFile = await CollectionVideo.createByVideoKey({\n uid: oldVideoKey,\n collection_id: collection.id!,\n brand_id: collection.brand_id,\n videoKey: oldVideoKey,\n });\n\n await oldVideoFile.delete().catch(() => {\n // console.log(`${oldVideoKey}の削除に失敗`);\n });\n }\n\n await API.graphql(\n graphqlOperation(updateCollectionQuery, {\n input: { ...collection, image_key, video_key },\n })\n );\n\n await Promise.all(\n productCollections.map(async (input) => {\n if (input.id) {\n await API.graphql(\n graphqlOperation(updateProductCollection, {\n input,\n })\n );\n } else {\n await API.graphql(\n graphqlOperation(createProductCollection, {\n input: {\n ...input,\n collection_id: collection.id,\n },\n })\n );\n }\n })\n );\n\n await Promise.all(\n removedProductIds.map(\n async (id) =>\n await API.graphql(\n graphqlOperation(deleteProductCollection, { input: { id } })\n )\n )\n );\n};\n\nexport const deleteCollection = (id: string) => {\n return async (dispatch: Dispatch): Promise => {\n const removed = await API.graphql(\n graphqlOperation(deleteCollectionQuery, { input: { id } })\n );\n\n const res = await API.graphql(\n graphqlOperation(searchProductCollections, {\n filter: { collection_id: { eq: id } },\n })\n );\n\n const {\n data: {\n searchProductCollections: { items },\n },\n } = res;\n\n await Promise.all(\n items.map(async ({ id }: any) => {\n await API.graphql(\n graphqlOperation(deleteProductCollection, { input: { id } })\n );\n })\n );\n\n await Storage.remove(removed.data.deleteCollection.image_key);\n\n if (removed.data.deleteCollection.video_key) {\n const videoFile = await CollectionVideo.createByVideoKey({\n uid: removed.data.deleteCollection.video_key,\n collection_id: removed.data.deleteCollection.id!,\n brand_id: removed.data.deleteCollection.brand_id,\n videoKey: removed.data.deleteCollection.video_key,\n });\n\n await videoFile.delete().catch(() => {\n // console.log(`${removed.data.deleteCollection.video_key}の削除に失敗`);\n });\n }\n\n dispatch(removeCollection(id));\n };\n};\n\nexport const updateProducts = (\n products: PartialRequired, 'id'>[]\n) => {\n return async () => {\n await Promise.all(\n products.map(async (product) => {\n const model = await ProductModel.createById(product.id);\n return model.update({\n product_sale_wholesale_rate: product.product_sale_wholesale_rate,\n });\n })\n );\n };\n};\n\nexport const updateCollectionsOrderDisplay = (\n sortCollections: Collection[],\n updCollections: Collection[]\n) => {\n return async (dispatch: Dispatch): Promise => {\n dispatch(clearCollectionList());\n dispatch(setCollectionList({ items: sortCollections }));\n for (const collection of updCollections) {\n await API.graphql(\n graphqlOperation(updateCollectionQuery, {\n input: {\n id: collection.id,\n display_order: collection.display_order,\n },\n })\n );\n }\n };\n};\n","import React, { useCallback, useEffect, useState } from 'react';\nimport { Modal } from 'react-bootstrap';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { Button, Spinner } from 'reactstrap';\nimport './styles.scss';\nimport * as Yup from 'yup';\nimport Field from '../../../../widgets/Field';\nimport { accountSelector } from '~redux/account/selectors/account';\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\nimport { brandInfoSelector } from '~redux/brand/selectors';\nimport { getBrandInfo } from '~redux/brand/thunk/details';\nimport { buyerInfoSelector } from '~redux/buyer/selectors';\nimport { sendMessage } from '~redux/messages/thunk';\nimport { Form, Formik } from 'formik';\nimport { useThunk } from '~utils/hooks';\nimport { getResizeImageUrl } from '~utils/image';\n\ntype MessageModalProps = {\n brandId: string;\n productName?: string;\n isShow: boolean;\n close: () => void;\n tel?: boolean;\n};\n\nconst MessageModal: React.FC = ({\n brandId,\n productName,\n isShow,\n close,\n tel,\n}) => {\n const dispatch = useDispatch();\n const user = useSelector(authUserSelector);\n const account = useSelector(accountSelector);\n const brand = useSelector(brandInfoSelector);\n const buyerInfo = useSelector(buyerInfoSelector);\n const [message, setMessage] = useState('');\n const [submit, loading, complete] = useThunk(sendMessage);\n\n const onSubmit = useCallback(\n (values?: any) => {\n if (!user || !brand?.brand_owner) {\n return;\n }\n let msg = message;\n if (tel) {\n msg = `【自動送信】バイヤー様から電話でのご連絡がリクエストされました。\n・会社名:${values.companyName}\n・店舗名:${values.shopName}\n・担当者名:${values.buyerName}\n・電話番号:${values.tel}\n・問い合わせ内容:${values.description}\n`;\n }\n submit(msg, productName || '', user.attributes.sub, {\n buyer_owner: user.attributes.sub,\n brand_id: brandId,\n brand_owner: brand.brand_owner,\n owners: [user.attributes.sub, brand.brand_owner],\n });\n },\n [user, message, brandId, brand?.brand_owner]\n );\n\n useEffect(() => {\n if (brandId && isShow) {\n dispatch(getBrandInfo(brandId));\n }\n }, [brandId, isShow]);\n\n useEffect(() => {\n if (!complete) {\n return;\n }\n setTimeout(close, 500);\n }, [complete]);\n\n if (!user || !brand) {\n return null;\n }\n\n if (tel && (!account || !buyerInfo)) {\n return null;\n }\n\n return (\n \n \n \n {brand.iconUrl && (\n \n )}\n {!tel && (\n <>\n {brand.brand_name}\n へメッセージを送信する\n \n )}\n {tel && `ブランド担当者から電話で話を聞く`}\n \n \n \n {!tel && (\n setMessage(e.currentTarget.value)}\n maxLength={2000}\n >\n )}\n {tel && (\n \n {() => (\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n \n {loading && }\n {!complete && '電話で話を聞く'}\n {complete && 'リクエストを送信しました!'}\n \n ※上記の情報がブランドへ送信されます\n \n )}\n \n )}\n
\n {!tel && (\n \n onSubmit()}\n disabled={(message?.length ?? 0) < 5}\n block\n >\n {loading && }\n {!complete && '送信'}\n {complete && 'メッセージを送信しました!'}\n \n \n )}\n
\n );\n};\n\nexport default MessageModal;\n","\nvar content = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".message-modal-title{font-weight:bold}.message-modal-title>img{margin-right:5px;border-radius:100%;margin-right:10px;width:60px;height:60px;object-fit:cover}.message-modal-text{resize:none}.message-modal-footer{display:flex;justify-content:center;border:none}.message-modal-submit{width:100%}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// THIS FILE IS AUTO GENERATED\nvar GenIcon = require('../lib').GenIcon\nmodule.exports.FiArrowDown = function FiArrowDown (props) {\n return GenIcon({\"tag\":\"svg\",\"attr\":{\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":\"2\",\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\"},\"child\":[{\"tag\":\"line\",\"attr\":{\"x1\":\"12\",\"y1\":\"5\",\"x2\":\"12\",\"y2\":\"19\"}},{\"tag\":\"polyline\",\"attr\":{\"points\":\"19 12 12 19 5 12\"}}]})(props);\n};\n","import './styles.scss';\nimport qs from 'querystring';\nimport { Button, Menu, MenuItem } from '@material-ui/core';\nimport { FiArrowDown } from '@react-icons/all-files/fi/FiArrowDown';\nimport { FiArrowUp } from '@react-icons/all-files/fi/FiArrowUp';\nimport React, {\n useState,\n useCallback,\n useMemo,\n useEffect,\n useRef,\n} from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useProductSearchSelector } from '../ProductSearchProvider';\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\nimport {\n changedSortType,\n ProductSearchSortType,\n selectProductListSortType,\n} from '~redux/search/product';\nimport { useQuery } from '~view/hooks/route';\n\nconst SORT_LABEL: Record = {\n recommended: 'おすすめ順',\n brandRecommended: 'おすすめ順',\n newest: '新着順',\n lowestWholesaleRate: '掛け率の低い順',\n highestWholesaleRate: '掛け率の高い順',\n lowestPrice: '上代の安い順',\n highestPrice: '上代の高い順',\n};\n\nexport type SortSelectProps = {\n listId: string;\n acliveKeys?: ProductSearchSortType[];\n};\n\nconst ProductSearchSortDropdown: React.FC = ({\n listId,\n acliveKeys,\n}) => {\n const dispatch = useDispatch();\n const auth = useSelector(authUserSelector);\n const [isOpen, setOpen] = useState(false);\n const sortType = useProductSearchSelector(selectProductListSortType, listId);\n\n const sortMenu = useMemo(\n () =>\n acliveKeys?.length\n ? acliveKeys\n : auth\n ? [\n 'recommended',\n 'newest',\n 'lowestWholesaleRate',\n 'highestWholesaleRate',\n 'lowestPrice',\n 'highestPrice',\n ]\n : ['recommended', 'newest', 'lowestPrice', 'highestPrice'],\n [auth, acliveKeys]\n );\n\n const sort = useQuery().get('sort');\n const onSelectSortType = useCallback(\n (type: ProductSearchSortType) => {\n const decodedQuery = qs.decode(window.location.search.substring(1));\n const search = qs.encode({ ...decodedQuery, sort: type, page: 1 });\n window.history.replaceState(\n null,\n '',\n `${window.location.pathname}?${search}`\n );\n dispatch(changedSortType({ listId, sort: type }));\n setOpen(false);\n },\n [listId]\n );\n\n useEffect(() => {\n if (!sort) {\n return;\n }\n dispatch(changedSortType({ listId, sort: sort as ProductSearchSortType }));\n }, []);\n\n const buttonRef = useRef(null);\n\n return (\n <>\n setOpen(true)}\n >\n \n 並び順: {SORT_LABEL[sortType]}\n \n \n \n \n \n \n setOpen((prev) => !prev)}\n anchorEl={buttonRef.current}\n anchorOrigin={{\n horizontal: 'left',\n vertical: 'bottom',\n }}\n getContentAnchorEl={null}\n transitionDuration={100}\n >\n {sortMenu.map((key, index) => (\n onSelectSortType(key as ProductSearchSortType)}\n >\n {SORT_LABEL[key as ProductSearchSortType]}\n \n ))}\n \n \n );\n};\n\nexport default ProductSearchSortDropdown;\n","import t,{useRef as e,useEffect as n,useState as r,useLayoutEffect as i,useCallback as o}from\"react\";\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */var s=function(){return(s=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&te;return n?{left:i,right:i}:{left:i&&0!==r,right:i&&r+e0?h.Right:h.Left),g(s(s({},v),{drag:0,isDown:!1,finished:!0,pointers:!0}))}},_=function(t){if(t.persist(),v.isDown){var e=y(t);g(s(s({},v),{drag:v.start-e,pointers:!1}))}},L=e.swiping?{onTouchCancel:w,onTouchEnd:w,onTouchMove:_,onTouchStart:p,onMouseDown:p,onMouseLeave:w,onMouseUp:w,onMouseMove:_}:{};return t.createElement(\"div\",{ref:d,className:c},t.createElement(\"div\",s({\"data-testid\":\"trackList\"},L,{className:f,style:{transform:\"translateX(\"+(e.transform-v.drag)+\"px)\",transition:\"transform \"+e.transition+\"s ease 0s\",width:a*e.items.length}}),e.items.map((function(e,n){return t.createElement(\"div\",{key:n,style:{width:a,pointerEvents:v.pointers?\"all\":\"none\"},className:u},e)}))))},k={children:[],show:1,slide:1,transition:.5,swiping:!1,swipeOn:1,responsive:!1,infinite:!0,className:\"\",useArrowKeys:!1,a11y:{},dynamic:!1,paginationCallback:null,pageCount:0,rightArrow:null,leftArrow:null},b=function(i){var o,a,c,u,f=s(s({},k),i),d=r(w(f.children,f.slide,f.infinite)),y=d[0],b=d[1],E=r(0),x=E[0],C=E[1],R=r({transform:0,transition:0,isSliding:!1}),T=R[0],M=R[1],I=r(0),N=I[0],D=I[1],A=r(p(f.children.length,f.show,f.infinite,N)),S=A[0],W=A[1],z=(c=i.children,u=e(),n((function(){u.current=c})),u.current),X=r(0),B=X[0],q=X[1],O=e(w(f.children,f.slide,f.infinite)),K=e(!1);f.dynamic&&n((function(){var t=_(O.current,f.children,z,f.slide,f.infinite);b(t),O.current=t,B=0;l--)(i-l<0||!a[l-i])&&a.unshift(s.current()),s.prev();break;case h.Right:for(l=0;l * {\\n\\tflex: 0 0 auto;\\n}\\n\\n.styles-module_sliding__3T6T6 > * {\\n\\tpointer-events: none;\\n}\\n\");var R=function(n){var i=n.children,s=n.className,a=n.leftIcon,l=n.rightIcon,c=e(null),u=r(!1),f=u[0],d=u[1],m=r({startX:0,scrollLeft:0}),v=m[0],g=m[1],p=function(){var t=c.current;return{left:!!t&&t.scrollLeft>0,right:!!t&&t.scrollWidth>t.scrollLeft+t.offsetWidth}},w=r(p()),y=w[0],_=w[1],L=function(t){_(p())},k=o((function(t){null!==t&&(Object.defineProperty(c,\"current\",{value:t}),_(p()),t.addEventListener(\"scroll\",L))}),[c,i]),b=function(t){d(!1),_(p()),c.current.classList.remove(C)},R=function(t){var e=function(t){for(var e,n,r=c.current,i=t===h.Left?r.scrollLeft+r.offsetWidth:r.scrollLeft,o=0,s=0,a=Array.from(r.children);s=i){var f=t===h.Left?o-i:u;return(r.offsetWidth-f)*t}}return r.offsetWidth}(t),n=c.current.scrollLeft;T(500,e,n)},T=function(t,e,n){for(var r=0,i=0;r<=t;i++)window.setTimeout(M,r,i*e/100+n),r+=t/100},M=function(t){c.current.scrollLeft=t},I=function(e,n,r){return t.createElement(\"div\",{\"data-arrow\":n,onClick:function(){return R(e)}},null!=r?r:t.createElement(\"button\",null))};return t.createElement(\"div\",{className:E+\" \"+s,\"data-testid\":\"carousel\"},y.left&&I(h.Right,\"left\",a),y.right&&I(h.Left,\"right\",l),t.createElement(\"div\",{ref:k,onMouseDown:function(t){d(!0),g({startX:t.pageX-c.current.offsetLeft,scrollLeft:c.current.scrollLeft})},onMouseLeave:b,onMouseUp:b,onMouseMove:function(t){if(f){t.preventDefault(),c.current.classList.add(C);var e=t.pageX-c.current.offsetLeft-v.startX;c.current.scrollLeft=v.scrollLeft-e}},className:x},i))};export{b as Carousel,R as ScrollingCarousel};\n","// THIS FILE IS AUTO GENERATED\nvar GenIcon = require('../lib').GenIcon\nmodule.exports.HiChevronRight = function HiChevronRight (props) {\n return GenIcon({\"tag\":\"svg\",\"attr\":{\"viewBox\":\"0 0 20 20\",\"fill\":\"currentColor\"},\"child\":[{\"tag\":\"path\",\"attr\":{\"fillRule\":\"evenodd\",\"d\":\"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z\",\"clipRule\":\"evenodd\"}}]})(props);\n};\n","// THIS FILE IS AUTO GENERATED\nvar GenIcon = require('../lib').GenIcon\nmodule.exports.HiChevronLeft = function HiChevronLeft (props) {\n return GenIcon({\"tag\":\"svg\",\"attr\":{\"viewBox\":\"0 0 20 20\",\"fill\":\"currentColor\"},\"child\":[{\"tag\":\"path\",\"attr\":{\"fillRule\":\"evenodd\",\"d\":\"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z\",\"clipRule\":\"evenodd\"}}]})(props);\n};\n","\nvar content = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".sort-select>button{width:200px;border-radius:40px;background-color:#e8e8e8;border:0;color:#000}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".brand-list-view-item-link{color:inherit}.brand-list-view-item .thumbnail-brand{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}.brand-list-view-item .information{text-align:left}.brand-list-view-item .information .title{font-size:14px;font-weight:500;line-height:22px;margin:0}.brand-list-view-item .information .title>a{white-space:nowrap;overflow:hidden;width:100%;text-overflow:ellipsis}.brand-list-view-item .information .title:empty{width:240px;height:20px;background-color:#e8e8e8}.brand-list-view-item .information .content{font-size:16px;font-weight:600}.brand-list-view-item .description{display:none}.brand-list-view-item .information .title a{display:block;color:#323232}.brand-list-view-item .information .title a:hover,.brand-list-view-item .information .title a:focus{color:#000}.brand-list-view-item-image-wrapper{display:flex;flex-direction:column;align-items:center}.brand-list-view-item-image{position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:0;padding-top:min(240px,100%)}.brand-list-view-item-image:empty{background-color:#e8e8e8}.brand-list-view-item-image:hover::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none;content:\\\"\\\";background-color:rgba(0,0,0,.2)}.brand-list-view-item-follow-link:hover{z-index:3;opacity:.5}.brand-list-view-item-hart-icon::after{position:absolute;top:10px;right:10px;font-family:FontAwesome;font-style:normal;font-size:20px;content:\\\"\\\";color:#6c757d;text-shadow:3px 0 0 #fff,0 3px 0 #fff,-3px 0 0 #fff,0 -3px 0 #fff;z-index:3}.brand-list-view-item-hart-icon.followed::after{color:#f08080}.brand-list-view-item .brand-description{position:absolute;top:25%;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;z-index:2;color:#fff;font-weight:bold;padding:0 10px}.brand-new-mark{z-index:3;position:absolute;top:5px;left:10px;font-size:20px;font-family:FontAwesome}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// THIS FILE IS AUTO GENERATED\nvar GenIcon = require('../lib').GenIcon\nmodule.exports.FiArrowUp = function FiArrowUp (props) {\n return GenIcon({\"tag\":\"svg\",\"attr\":{\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":\"2\",\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\"},\"child\":[{\"tag\":\"line\",\"attr\":{\"x1\":\"12\",\"y1\":\"19\",\"x2\":\"12\",\"y2\":\"5\"}},{\"tag\":\"polyline\",\"attr\":{\"points\":\"5 12 12 5 19 12\"}}]})(props);\n};\n","\nvar content = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".send-message-link{color:inherit}.send-message-off-underline{color:inherit}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","import { useCallback, useState } from 'react';\nimport { useDispatch } from 'react-redux';\nimport { ThunkAction } from 'redux-thunk';\nimport { QueueCallback } from '~redux/queue';\nimport { RootState } from '~redux/reducer';\n\nexport const useThunkQueue = (key: string) => {\n const dispatch = useDispatch();\n const [isProcessing, setIsProcessing] = useState(false);\n const queue = useCallback(\n (fn: ThunkAction, RootState, any, any>) => {\n dispatch({\n queue: key,\n callback: (async (next, dispatch, getState, extrArgument) => {\n setIsProcessing(true);\n await fn(dispatch, getState, extrArgument);\n setIsProcessing(false);\n next();\n }) as QueueCallback,\n });\n },\n [key]\n );\n\n return {\n queue,\n isProcessing,\n };\n};\n","import { useEffect } from 'react';\nimport { useSelector } from 'react-redux';\nimport { searchProductswithimagekey } from '~graphql/custom_queries';\nimport { buyerInfoSelector } from '~redux/buyer/selectors';\nimport { Product, SearchableProductFilterInput } from '~types/api';\nimport { useGraphql } from '~view/hooks/graphql';\n\nexport const useLimitedProducts = (brandId: string) => {\n const buyerInfo = useSelector(buyerInfoSelector);\n const [limitedProducts, fetch, loading] = useGraphql(\n searchProductswithimagekey,\n (data) => data.searchProducts.items\n );\n\n useEffect(() => {\n if (\n !buyerInfo ||\n !buyerInfo.contacts?.items.some(\n (item) => item.contactListConnections?.items.length\n )\n ) {\n return;\n }\n const filter: SearchableProductFilterInput = {\n suspended: { ne: true },\n product_public_status: { eq: '限定公開' },\n product_brand_id: { eq: brandId },\n or: buyerInfo.contacts?.items\n .map((item) =>\n item.contactListConnections?.items.map((conn) => ({\n limited_publishing_list: { eq: conn.contact_list_id },\n }))\n )\n .flat(),\n };\n fetch({\n filter,\n limit: 1000,\n sort: { field: 'product_display_order', direction: 'asc' },\n });\n }, [buyerInfo, brandId]);\n\n return { limitedProducts, loading };\n};\n","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport PropTypes from 'prop-types';\nimport createConnector from '../core/createConnector';\nimport { cleanUpValue, getIndexId, refineValue, getCurrentRefinementValue, getResults } from '../core/indexUtils';\nvar namespace = 'refinementList';\n\nfunction getId(props) {\n return props.attribute;\n}\n\nfunction getCurrentRefinement(props, searchState, context) {\n var currentRefinement = getCurrentRefinementValue(props, searchState, context, \"\".concat(namespace, \".\").concat(getId(props)), []);\n\n if (typeof currentRefinement !== 'string') {\n return currentRefinement;\n }\n\n if (currentRefinement) {\n return [currentRefinement];\n }\n\n return [];\n}\n\nfunction getValue(name, props, searchState, context) {\n var currentRefinement = getCurrentRefinement(props, searchState, context);\n var isAnewValue = currentRefinement.indexOf(name) === -1;\n var nextRefinement = isAnewValue ? currentRefinement.concat([name]) // cannot use .push(), it mutates\n : currentRefinement.filter(function (selectedValue) {\n return selectedValue !== name;\n }); // cannot use .splice(), it mutates\n\n return nextRefinement;\n}\n\nfunction getLimit(_ref) {\n var showMore = _ref.showMore,\n limit = _ref.limit,\n showMoreLimit = _ref.showMoreLimit;\n return showMore ? showMoreLimit : limit;\n}\n\nfunction _refine(props, searchState, nextRefinement, context) {\n var id = getId(props); // Setting the value to an empty string ensures that it is persisted in\n // the URL as an empty value.\n // This is necessary in the case where `defaultRefinement` contains one\n // item and we try to deselect it. `nextSelected` would be an empty array,\n // which would not be persisted to the URL.\n // {foo: ['bar']} => \"foo[0]=bar\"\n // {foo: []} => \"\"\n\n var nextValue = _defineProperty({}, id, nextRefinement.length > 0 ? nextRefinement : '');\n\n var resetPage = true;\n return refineValue(searchState, nextValue, context, resetPage, namespace);\n}\n\nfunction _cleanUp(props, searchState, context) {\n return cleanUpValue(searchState, context, \"\".concat(namespace, \".\").concat(getId(props)));\n}\n/**\n * connectRefinementList connector provides the logic to build a widget that will\n * give the user the ability to choose multiple values for a specific facet.\n * @name connectRefinementList\n * @kind connector\n * @requirements The attribute passed to the `attribute` prop must be present in \"attributes for faceting\"\n * on the Algolia dashboard or configured as `attributesForFaceting` via a set settings call to the Algolia API.\n * @propType {string} attribute - the name of the attribute in the record\n * @propType {boolean} [searchable=false] - allow search inside values\n * @propType {string} [operator=or] - How to apply the refinements. Possible values: 'or' or 'and'.\n * @propType {boolean} [showMore=false] - true if the component should display a button that will expand the number of items\n * @propType {number} [limit=10] - the minimum number of displayed items\n * @propType {number} [showMoreLimit=20] - the maximun number of displayed items. Only used when showMore is set to `true`\n * @propType {string[]} defaultRefinement - the values of the items selected by default. The searchState of this widget takes the form of a list of `string`s, which correspond to the values of all selected refinements. However, when there are no refinements selected, the value of the searchState is an empty string.\n * @propType {function} [transformItems] - Function to modify the items being displayed, e.g. for filtering or sorting them. Takes an items as parameter and expects it back in return.\n * @providedPropType {function} refine - a function to toggle a refinement\n * @providedPropType {function} createURL - a function to generate a URL for the corresponding search state\n * @providedPropType {string[]} currentRefinement - the refinement currently applied\n * @providedPropType {array.<{count: number, isRefined: boolean, label: string, value: string}>} items - the list of items the RefinementList can display.\n * @providedPropType {function} searchForItems - a function to toggle a search inside items values\n * @providedPropType {boolean} isFromSearch - a boolean that says if the `items` props contains facet values from the global search or from the search inside items.\n * @providedPropType {boolean} canRefine - a boolean that says whether you can refine\n */\n\n\nvar sortBy = ['isRefined', 'count:desc', 'name:asc'];\nexport default createConnector({\n displayName: 'AlgoliaRefinementList',\n propTypes: {\n id: PropTypes.string,\n attribute: PropTypes.string.isRequired,\n operator: PropTypes.oneOf(['and', 'or']),\n showMore: PropTypes.bool,\n limit: PropTypes.number,\n showMoreLimit: PropTypes.number,\n defaultRefinement: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])),\n searchable: PropTypes.bool,\n transformItems: PropTypes.func,\n facetOrdering: PropTypes.bool\n },\n defaultProps: {\n operator: 'or',\n showMore: false,\n limit: 10,\n showMoreLimit: 20,\n facetOrdering: true\n },\n getProvidedProps: function getProvidedProps(props, searchState, searchResults, metadata, searchForFacetValuesResults) {\n var attribute = props.attribute,\n searchable = props.searchable,\n indexContextValue = props.indexContextValue,\n facetOrdering = props.facetOrdering;\n var results = getResults(searchResults, {\n ais: props.contextValue,\n multiIndexContext: props.indexContextValue\n });\n var canRefine = Boolean(results) && Boolean(results.getFacetByName(attribute));\n var isFromSearch = Boolean(searchForFacetValuesResults && searchForFacetValuesResults[attribute] && searchForFacetValuesResults.query !== ''); // Search For Facet Values is not available with derived helper (used for multi index search)\n\n if (searchable && indexContextValue) {\n throw new Error('react-instantsearch: searching in *List is not available when used inside a' + ' multi index context');\n }\n\n if (!canRefine) {\n return {\n items: [],\n currentRefinement: getCurrentRefinement(props, searchState, {\n ais: props.contextValue,\n multiIndexContext: props.indexContextValue\n }),\n canRefine: canRefine,\n isFromSearch: isFromSearch,\n searchable: searchable\n };\n }\n\n var items = isFromSearch ? searchForFacetValuesResults[attribute].map(function (v) {\n return {\n label: v.value,\n value: getValue(v.value, props, searchState, {\n ais: props.contextValue,\n multiIndexContext: props.indexContextValue\n }),\n _highlightResult: {\n label: {\n value: v.highlighted\n }\n },\n count: v.count,\n isRefined: v.isRefined\n };\n }) : results.getFacetValues(attribute, {\n sortBy: sortBy,\n facetOrdering: facetOrdering\n }).map(function (v) {\n return {\n label: v.name,\n value: getValue(v.name, props, searchState, {\n ais: props.contextValue,\n multiIndexContext: props.indexContextValue\n }),\n count: v.count,\n isRefined: v.isRefined\n };\n });\n var transformedItems = props.transformItems ? props.transformItems(items) : items;\n return {\n items: transformedItems.slice(0, getLimit(props)),\n currentRefinement: getCurrentRefinement(props, searchState, {\n ais: props.contextValue,\n multiIndexContext: props.indexContextValue\n }),\n isFromSearch: isFromSearch,\n searchable: searchable,\n canRefine: transformedItems.length > 0\n };\n },\n refine: function refine(props, searchState, nextRefinement) {\n return _refine(props, searchState, nextRefinement, {\n ais: props.contextValue,\n multiIndexContext: props.indexContextValue\n });\n },\n searchForFacetValues: function searchForFacetValues(props, searchState, nextRefinement) {\n return {\n facetName: props.attribute,\n query: nextRefinement,\n maxFacetHits: getLimit(props)\n };\n },\n cleanUp: function cleanUp(props, searchState) {\n return _cleanUp(props, searchState, {\n ais: props.contextValue,\n multiIndexContext: props.indexContextValue\n });\n },\n getSearchParameters: function getSearchParameters(searchParameters, props, searchState) {\n var attribute = props.attribute,\n operator = props.operator;\n var addKey = operator === 'and' ? 'addFacet' : 'addDisjunctiveFacet';\n var addRefinementKey = \"\".concat(addKey, \"Refinement\");\n searchParameters = searchParameters.setQueryParameters({\n maxValuesPerFacet: Math.max(searchParameters.maxValuesPerFacet || 0, getLimit(props))\n });\n searchParameters = searchParameters[addKey](attribute);\n return getCurrentRefinement(props, searchState, {\n ais: props.contextValue,\n multiIndexContext: props.indexContextValue\n }).reduce(function (res, val) {\n return res[addRefinementKey](attribute, val);\n }, searchParameters);\n },\n getMetadata: function getMetadata(props, searchState) {\n var id = getId(props);\n var context = {\n ais: props.contextValue,\n multiIndexContext: props.indexContextValue\n };\n return {\n id: id,\n index: getIndexId(context),\n items: getCurrentRefinement(props, searchState, context).length > 0 ? [{\n attribute: props.attribute,\n label: \"\".concat(props.attribute, \": \"),\n currentRefinement: getCurrentRefinement(props, searchState, context),\n value: function value(nextState) {\n return _refine(props, nextState, [], context);\n },\n items: getCurrentRefinement(props, searchState, context).map(function (item) {\n return {\n label: \"\".concat(item),\n value: function value(nextState) {\n var nextSelectedItems = getCurrentRefinement(props, nextState, context).filter(function (other) {\n return other !== item;\n });\n return _refine(props, searchState, nextSelectedItems, context);\n }\n };\n })\n }] : []\n };\n }\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport withStyles from '../styles/withStyles';\nimport capitalize from '../utils/capitalize';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: _defineProperty({\n width: '100%',\n marginLeft: 'auto',\n boxSizing: 'border-box',\n marginRight: 'auto',\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n display: 'block'\n }, theme.breakpoints.up('sm'), {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3)\n }),\n\n /* Styles applied to the root element if `disableGutters={true}`. */\n disableGutters: {\n paddingLeft: 0,\n paddingRight: 0\n },\n\n /* Styles applied to the root element if `fixed={true}`. */\n fixed: Object.keys(theme.breakpoints.values).reduce(function (acc, breakpoint) {\n var value = theme.breakpoints.values[breakpoint];\n\n if (value !== 0) {\n acc[theme.breakpoints.up(breakpoint)] = {\n maxWidth: value\n };\n }\n\n return acc;\n }, {}),\n\n /* Styles applied to the root element if `maxWidth=\"xs\"`. */\n maxWidthXs: _defineProperty({}, theme.breakpoints.up('xs'), {\n maxWidth: Math.max(theme.breakpoints.values.xs, 444)\n }),\n\n /* Styles applied to the root element if `maxWidth=\"sm\"`. */\n maxWidthSm: _defineProperty({}, theme.breakpoints.up('sm'), {\n maxWidth: theme.breakpoints.values.sm\n }),\n\n /* Styles applied to the root element if `maxWidth=\"md\"`. */\n maxWidthMd: _defineProperty({}, theme.breakpoints.up('md'), {\n maxWidth: theme.breakpoints.values.md\n }),\n\n /* Styles applied to the root element if `maxWidth=\"lg\"`. */\n maxWidthLg: _defineProperty({}, theme.breakpoints.up('lg'), {\n maxWidth: theme.breakpoints.values.lg\n }),\n\n /* Styles applied to the root element if `maxWidth=\"xl\"`. */\n maxWidthXl: _defineProperty({}, theme.breakpoints.up('xl'), {\n maxWidth: theme.breakpoints.values.xl\n })\n };\n};\nvar Container = /*#__PURE__*/React.forwardRef(function Container(props, ref) {\n var classes = props.classes,\n className = props.className,\n _props$component = props.component,\n Component = _props$component === void 0 ? 'div' : _props$component,\n _props$disableGutters = props.disableGutters,\n disableGutters = _props$disableGutters === void 0 ? false : _props$disableGutters,\n _props$fixed = props.fixed,\n fixed = _props$fixed === void 0 ? false : _props$fixed,\n _props$maxWidth = props.maxWidth,\n maxWidth = _props$maxWidth === void 0 ? 'lg' : _props$maxWidth,\n other = _objectWithoutProperties(props, [\"classes\", \"className\", \"component\", \"disableGutters\", \"fixed\", \"maxWidth\"]);\n\n return /*#__PURE__*/React.createElement(Component, _extends({\n className: clsx(classes.root, className, fixed && classes.fixed, disableGutters && classes.disableGutters, maxWidth !== false && classes[\"maxWidth\".concat(capitalize(String(maxWidth)))]),\n ref: ref\n }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? Container.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * @ignore\n */\n children: PropTypes\n /* @typescript-to-proptypes-ignore */\n .node.isRequired,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * If `true`, the left and right padding is removed.\n */\n disableGutters: PropTypes.bool,\n\n /**\n * Set the max-width to match the min-width of the current breakpoint.\n * This is useful if you'd prefer to design for a fixed set of sizes\n * instead of trying to accommodate a fully fluid viewport.\n * It's fluid by default.\n */\n fixed: PropTypes.bool,\n\n /**\n * Determine the max-width of the container.\n * The container width grows with the size of the screen.\n * Set to `false` to disable `maxWidth`.\n */\n maxWidth: PropTypes.oneOf(['lg', 'md', 'sm', 'xl', 'xs', false])\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiContainer'\n})(Container);","import * as React from 'react';\nimport { createSvgIcon } from '@material-ui/core/utils';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z\"\n}), 'FirstPage');","import * as React from 'react';\nimport { createSvgIcon } from '@material-ui/core/utils';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z\"\n}), 'LastPage');","import * as React from 'react';\nimport { createSvgIcon } from '@material-ui/core/utils';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z\"\n}), 'NavigateBefore');","import * as React from 'react';\nimport { createSvgIcon } from '@material-ui/core/utils';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"\n}), 'NavigateNext');","import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { alpha, useTheme, withStyles } from '@material-ui/core/styles';\nimport ButtonBase from '@material-ui/core/ButtonBase';\nimport FirstPageIcon from '../internal/svg-icons/FirstPage';\nimport LastPageIcon from '../internal/svg-icons/LastPage';\nimport NavigateBeforeIcon from '../internal/svg-icons/NavigateBefore';\nimport NavigateNextIcon from '../internal/svg-icons/NavigateNext';\nimport { capitalize } from '@material-ui/core/utils';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: _extends({}, theme.typography.body2, {\n borderRadius: 32 / 2,\n textAlign: 'center',\n boxSizing: 'border-box',\n minWidth: 32,\n height: 32,\n padding: '0 6px',\n margin: '0 3px',\n color: theme.palette.text.primary\n }),\n\n /* Styles applied to the root element if `type=\"page\"`. */\n page: {\n transition: theme.transitions.create(['color', 'background-color'], {\n duration: theme.transitions.duration.short\n }),\n '&:hover': {\n backgroundColor: theme.palette.action.hover,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n '&$focusVisible': {\n backgroundColor: theme.palette.action.focus\n },\n '&$selected': {\n backgroundColor: theme.palette.action.selected,\n '&:hover, &$focusVisible': {\n backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: theme.palette.action.selected\n }\n },\n '&$disabled': {\n opacity: 1,\n color: theme.palette.action.disabled,\n backgroundColor: theme.palette.action.selected\n }\n },\n '&$disabled': {\n opacity: theme.palette.action.disabledOpacity\n }\n },\n\n /* Styles applied applied to the root element if `size=\"small\"`. */\n sizeSmall: {\n minWidth: 26,\n height: 26,\n borderRadius: 26 / 2,\n margin: '0 1px',\n padding: '0 4px',\n '& $icon': {\n fontSize: theme.typography.pxToRem(18)\n }\n },\n\n /* Styles applied applied to the root element if `size=\"large\"`. */\n sizeLarge: {\n minWidth: 40,\n height: 40,\n borderRadius: 40 / 2,\n padding: '0 10px',\n fontSize: theme.typography.pxToRem(15),\n '& $icon': {\n fontSize: theme.typography.pxToRem(22)\n }\n },\n\n /* Styles applied to the root element if `variant=\"text\"` and `color=\"primary\"`. */\n textPrimary: {\n '&$selected': {\n color: theme.palette.primary.contrastText,\n backgroundColor: theme.palette.primary.main,\n '&:hover, &$focusVisible': {\n backgroundColor: theme.palette.primary.dark,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: theme.palette.primary.main\n }\n },\n '&$disabled': {\n color: theme.palette.action.disabled\n }\n }\n },\n\n /* Styles applied to the root element if `variant=\"text\"` and `color=\"secondary\"`. */\n textSecondary: {\n '&$selected': {\n color: theme.palette.secondary.contrastText,\n backgroundColor: theme.palette.secondary.main,\n '&:hover, &$focusVisible': {\n backgroundColor: theme.palette.secondary.dark,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: theme.palette.secondary.main\n }\n },\n '&$disabled': {\n color: theme.palette.action.disabled\n }\n }\n },\n\n /* Styles applied to the root element if `outlined=\"true\"`. */\n outlined: {\n border: \"1px solid \".concat(theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'),\n '&$selected': {\n '&$disabled': {\n border: \"1px solid \".concat(theme.palette.action.disabledBackground)\n }\n }\n },\n\n /* Styles applied to the root element if `variant=\"outlined\"` and `color=\"primary\"`. */\n outlinedPrimary: {\n '&$selected': {\n color: theme.palette.primary.main,\n border: \"1px solid \".concat(alpha(theme.palette.primary.main, 0.5)),\n backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.activatedOpacity),\n '&:hover, &$focusVisible': {\n backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.activatedOpacity + theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n '&$disabled': {\n color: theme.palette.action.disabled\n }\n }\n },\n\n /* Styles applied to the root element if `variant=\"outlined\"` and `color=\"secondary\"`. */\n outlinedSecondary: {\n '&$selected': {\n color: theme.palette.secondary.main,\n border: \"1px solid \".concat(alpha(theme.palette.secondary.main, 0.5)),\n backgroundColor: alpha(theme.palette.secondary.main, theme.palette.action.activatedOpacity),\n '&:hover, &$focusVisible': {\n backgroundColor: alpha(theme.palette.secondary.main, theme.palette.action.activatedOpacity + theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n '&$disabled': {\n color: theme.palette.action.disabled\n }\n }\n },\n\n /* Styles applied to the root element if `rounded=\"true\"`. */\n rounded: {\n borderRadius: theme.shape.borderRadius\n },\n\n /* Styles applied to the root element if `type=\"start-ellipsis\"` or `type=\"end-ellipsis\"`. */\n ellipsis: {\n height: 'auto',\n '&$disabled': {\n opacity: theme.palette.action.disabledOpacity\n }\n },\n\n /* Pseudo-class applied to the root element if keyboard focused. */\n focusVisible: {},\n\n /* Pseudo-class applied to the root element if `disabled={true}`. */\n disabled: {},\n\n /* Pseudo-class applied to the root element if `selected={true}`. */\n selected: {},\n\n /* Styles applied to the icon element. */\n icon: {\n fontSize: theme.typography.pxToRem(20),\n margin: '0 -8px'\n }\n };\n};\nvar PaginationItem = /*#__PURE__*/React.forwardRef(function PaginationItem(props, ref) {\n var classes = props.classes,\n className = props.className,\n _props$color = props.color,\n color = _props$color === void 0 ? 'standard' : _props$color,\n component = props.component,\n _props$disabled = props.disabled,\n disabled = _props$disabled === void 0 ? false : _props$disabled,\n page = props.page,\n _props$selected = props.selected,\n selected = _props$selected === void 0 ? false : _props$selected,\n _props$shape = props.shape,\n shape = _props$shape === void 0 ? 'round' : _props$shape,\n _props$size = props.size,\n size = _props$size === void 0 ? 'medium' : _props$size,\n _props$type = props.type,\n type = _props$type === void 0 ? 'page' : _props$type,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'text' : _props$variant,\n other = _objectWithoutProperties(props, [\"classes\", \"className\", \"color\", \"component\", \"disabled\", \"page\", \"selected\", \"shape\", \"size\", \"type\", \"variant\"]);\n\n var theme = useTheme();\n var normalizedIcons = theme.direction === 'rtl' ? {\n previous: NavigateNextIcon,\n next: NavigateBeforeIcon,\n last: FirstPageIcon,\n first: LastPageIcon\n } : {\n previous: NavigateBeforeIcon,\n next: NavigateNextIcon,\n first: FirstPageIcon,\n last: LastPageIcon\n };\n var Icon = normalizedIcons[type];\n return type === 'start-ellipsis' || type === 'end-ellipsis' ? /*#__PURE__*/React.createElement(\"div\", {\n ref: ref,\n className: clsx(classes.root, classes.ellipsis, disabled && classes.disabled, size !== 'medium' && classes[\"size\".concat(capitalize(size))])\n }, \"\\u2026\") : /*#__PURE__*/React.createElement(ButtonBase, _extends({\n ref: ref,\n component: component,\n disabled: disabled,\n focusVisibleClassName: classes.focusVisible,\n className: clsx(classes.root, classes.page, classes[variant], classes[shape], className, color !== 'standard' && classes[\"\".concat(variant).concat(capitalize(color))], disabled && classes.disabled, selected && classes.selected, size !== 'medium' && classes[\"size\".concat(capitalize(size))])\n }, other), type === 'page' && page, Icon ? /*#__PURE__*/React.createElement(Icon, {\n className: classes.icon\n }) : null);\n});\nprocess.env.NODE_ENV !== \"production\" ? PaginationItem.propTypes = {\n /**\n * @ignore\n */\n classes: PropTypes.object.isRequired,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The active color.\n */\n color: PropTypes.oneOf(['standard', 'primary', 'secondary']),\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * If `true`, the item will be disabled.\n */\n disabled: PropTypes.bool,\n\n /**\n * The current page number.\n */\n page: PropTypes.number,\n\n /**\n * If `true` the pagination item is selected.\n */\n selected: PropTypes.bool,\n\n /**\n * The shape of the pagination item.\n */\n shape: PropTypes.oneOf(['round', 'rounded']),\n\n /**\n * The size of the pagination item.\n */\n size: PropTypes.oneOf(['small', 'medium', 'large']),\n\n /**\n * The type of pagination item.\n */\n type: PropTypes.oneOf(['page', 'first', 'last', 'next', 'previous', 'start-ellipsis', 'end-ellipsis']),\n\n /**\n * The pagination item variant.\n */\n variant: PropTypes.oneOf(['text', 'outlined'])\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiPaginationItem'\n})(PaginationItem);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { withStyles } from '@material-ui/core/styles';\nimport usePagination from './usePagination';\nimport PaginationItem from '../PaginationItem';\nexport var styles = {\n /* Styles applied to the root element. */\n root: {},\n\n /* Styles applied to the ul element. */\n ul: {\n display: 'flex',\n flexWrap: 'wrap',\n alignItems: 'center',\n padding: 0,\n margin: 0,\n listStyle: 'none'\n }\n};\n\nfunction defaultGetAriaLabel(type, page, selected) {\n if (type === 'page') {\n return \"\".concat(selected ? '' : 'Go to ', \"page \").concat(page);\n }\n\n return \"Go to \".concat(type, \" page\");\n}\n\nvar Pagination = /*#__PURE__*/React.forwardRef(function Pagination(props, ref) {\n var boundaryCount = props.boundaryCount,\n classes = props.classes,\n className = props.className,\n _props$color = props.color,\n color = _props$color === void 0 ? 'standard' : _props$color,\n count = props.count,\n defaultPage = props.defaultPage,\n disabled = props.disabled,\n _props$getItemAriaLab = props.getItemAriaLabel,\n getItemAriaLabel = _props$getItemAriaLab === void 0 ? defaultGetAriaLabel : _props$getItemAriaLab,\n hideNextButton = props.hideNextButton,\n hidePrevButton = props.hidePrevButton,\n onChange = props.onChange,\n page = props.page,\n _props$renderItem = props.renderItem,\n renderItem = _props$renderItem === void 0 ? function (item) {\n return /*#__PURE__*/React.createElement(PaginationItem, item);\n } : _props$renderItem,\n _props$shape = props.shape,\n shape = _props$shape === void 0 ? 'round' : _props$shape,\n showFirstButton = props.showFirstButton,\n showLastButton = props.showLastButton,\n siblingCount = props.siblingCount,\n _props$size = props.size,\n size = _props$size === void 0 ? 'medium' : _props$size,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'text' : _props$variant,\n other = _objectWithoutProperties(props, [\"boundaryCount\", \"classes\", \"className\", \"color\", \"count\", \"defaultPage\", \"disabled\", \"getItemAriaLabel\", \"hideNextButton\", \"hidePrevButton\", \"onChange\", \"page\", \"renderItem\", \"shape\", \"showFirstButton\", \"showLastButton\", \"siblingCount\", \"size\", \"variant\"]);\n\n var _usePagination = usePagination(_extends({}, props, {\n componentName: 'Pagination'\n })),\n items = _usePagination.items;\n\n return /*#__PURE__*/React.createElement(\"nav\", _extends({\n \"aria-label\": \"pagination navigation\",\n className: clsx(classes.root, className),\n ref: ref\n }, other), /*#__PURE__*/React.createElement(\"ul\", {\n className: classes.ul\n }, items.map(function (item, index) {\n return /*#__PURE__*/React.createElement(\"li\", {\n key: index\n }, renderItem(_extends({}, item, {\n color: color,\n 'aria-label': getItemAriaLabel(item.type, item.page, item.selected),\n shape: shape,\n size: size,\n variant: variant\n })));\n })));\n}); // @default tags synced with default values from usePagination\n\nprocess.env.NODE_ENV !== \"production\" ? Pagination.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * Number of always visible pages at the beginning and end.\n * @default 1\n */\n boundaryCount: PropTypes.number,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The active color.\n */\n color: PropTypes.oneOf(['primary', 'secondary', 'standard']),\n\n /**\n * The total number of pages.\n * @default 1\n */\n count: PropTypes.number,\n\n /**\n * The page selected by default when the component is uncontrolled.\n * @default 1\n */\n defaultPage: PropTypes.number,\n\n /**\n * If `true`, the pagination component will be disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n\n /**\n * Accepts a function which returns a string value that provides a user-friendly name for the current page.\n *\n * For localization purposes, you can use the provided [translations](/guides/localization/).\n *\n * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous'). Defaults to 'page'.\n * @param {number} page The page number to format.\n * @param {bool} selected If true, the current page is selected.\n * @returns {string}\n */\n getItemAriaLabel: PropTypes.func,\n\n /**\n * If `true`, hide the next-page button.\n * @default false\n */\n hideNextButton: PropTypes.bool,\n\n /**\n * If `true`, hide the previous-page button.\n * @default false\n */\n hidePrevButton: PropTypes.bool,\n\n /**\n * Callback fired when the page is changed.\n *\n * @param {object} event The event source of the callback.\n * @param {number} page The page selected.\n */\n onChange: PropTypes.func,\n\n /**\n * The current page.\n */\n page: PropTypes.number,\n\n /**\n * Render the item.\n *\n * @param {PaginationRenderItemParams} params The props to spread on a PaginationItem.\n * @returns {ReactNode}\n */\n renderItem: PropTypes.func,\n\n /**\n * The shape of the pagination items.\n */\n shape: PropTypes.oneOf(['round', 'rounded']),\n\n /**\n * If `true`, show the first-page button.\n * @default false\n */\n showFirstButton: PropTypes.bool,\n\n /**\n * If `true`, show the last-page button.\n * @default false\n */\n showLastButton: PropTypes.bool,\n\n /**\n * Number of always visible pages before and after the current page.\n * @default 1\n */\n siblingCount: PropTypes.number,\n\n /**\n * The size of the pagination component.\n */\n size: PropTypes.oneOf(['large', 'medium', 'small']),\n\n /**\n * The variant to use.\n */\n variant: PropTypes.oneOf(['outlined', 'text'])\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiPagination'\n})(Pagination);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport { useControlled } from '@material-ui/core/utils';\nexport default function usePagination() {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n // keep default values in sync with @default tags in Pagination.propTypes\n var _props$boundaryCount = props.boundaryCount,\n boundaryCount = _props$boundaryCount === void 0 ? 1 : _props$boundaryCount,\n _props$componentName = props.componentName,\n componentName = _props$componentName === void 0 ? 'usePagination' : _props$componentName,\n _props$count = props.count,\n count = _props$count === void 0 ? 1 : _props$count,\n _props$defaultPage = props.defaultPage,\n defaultPage = _props$defaultPage === void 0 ? 1 : _props$defaultPage,\n _props$disabled = props.disabled,\n disabled = _props$disabled === void 0 ? false : _props$disabled,\n _props$hideNextButton = props.hideNextButton,\n hideNextButton = _props$hideNextButton === void 0 ? false : _props$hideNextButton,\n _props$hidePrevButton = props.hidePrevButton,\n hidePrevButton = _props$hidePrevButton === void 0 ? false : _props$hidePrevButton,\n handleChange = props.onChange,\n pageProp = props.page,\n _props$showFirstButto = props.showFirstButton,\n showFirstButton = _props$showFirstButto === void 0 ? false : _props$showFirstButto,\n _props$showLastButton = props.showLastButton,\n showLastButton = _props$showLastButton === void 0 ? false : _props$showLastButton,\n _props$siblingCount = props.siblingCount,\n siblingCount = _props$siblingCount === void 0 ? 1 : _props$siblingCount,\n other = _objectWithoutProperties(props, [\"boundaryCount\", \"componentName\", \"count\", \"defaultPage\", \"disabled\", \"hideNextButton\", \"hidePrevButton\", \"onChange\", \"page\", \"showFirstButton\", \"showLastButton\", \"siblingCount\"]);\n\n var _useControlled = useControlled({\n controlled: pageProp,\n default: defaultPage,\n name: componentName,\n state: 'page'\n }),\n _useControlled2 = _slicedToArray(_useControlled, 2),\n page = _useControlled2[0],\n setPageState = _useControlled2[1];\n\n var handleClick = function handleClick(event, value) {\n if (!pageProp) {\n setPageState(value);\n }\n\n if (handleChange) {\n handleChange(event, value);\n }\n }; // https://dev.to/namirsab/comment/2050\n\n\n var range = function range(start, end) {\n var length = end - start + 1;\n return Array.from({\n length: length\n }, function (_, i) {\n return start + i;\n });\n };\n\n var startPages = range(1, Math.min(boundaryCount, count));\n var endPages = range(Math.max(count - boundaryCount + 1, boundaryCount + 1), count);\n var siblingsStart = Math.max(Math.min( // Natural start\n page - siblingCount, // Lower boundary when page is high\n count - boundaryCount - siblingCount * 2 - 1), // Greater than startPages\n boundaryCount + 2);\n var siblingsEnd = Math.min(Math.max( // Natural end\n page + siblingCount, // Upper boundary when page is low\n boundaryCount + siblingCount * 2 + 2), // Less than endPages\n endPages[0] - 2); // Basic list of items to render\n // e.g. itemList = ['first', 'previous', 1, 'ellipsis', 4, 5, 6, 'ellipsis', 10, 'next', 'last']\n\n var itemList = [].concat(_toConsumableArray(showFirstButton ? ['first'] : []), _toConsumableArray(hidePrevButton ? [] : ['previous']), _toConsumableArray(startPages), _toConsumableArray(siblingsStart > boundaryCount + 2 ? ['start-ellipsis'] : boundaryCount + 1 < count - boundaryCount ? [boundaryCount + 1] : []), _toConsumableArray(range(siblingsStart, siblingsEnd)), _toConsumableArray(siblingsEnd < count - boundaryCount - 1 ? ['end-ellipsis'] : count - boundaryCount > boundaryCount ? [count - boundaryCount] : []), _toConsumableArray(endPages), _toConsumableArray(hideNextButton ? [] : ['next']), _toConsumableArray(showLastButton ? ['last'] : [])); // Map the button type to its page number\n\n var buttonPage = function buttonPage(type) {\n switch (type) {\n case 'first':\n return 1;\n\n case 'previous':\n return page - 1;\n\n case 'next':\n return page + 1;\n\n case 'last':\n return count;\n\n default:\n return null;\n }\n }; // Convert the basic item list to PaginationItem props objects\n\n\n var items = itemList.map(function (item) {\n return typeof item === 'number' ? {\n onClick: function onClick(event) {\n handleClick(event, item);\n },\n type: 'page',\n page: item,\n selected: item === page,\n disabled: disabled,\n 'aria-current': item === page ? 'true' : undefined\n } : {\n onClick: function onClick(event) {\n handleClick(event, buttonPage(item));\n },\n type: item,\n page: buttonPage(item),\n selected: false,\n disabled: disabled || item.indexOf('ellipsis') === -1 && (item === 'next' || item === 'last' ? page >= count : page <= 1)\n };\n });\n return _extends({\n items: items\n }, other);\n}","import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport withStyles from '../styles/withStyles';\nimport ListItem from '../ListItem';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: _extends({}, theme.typography.body1, _defineProperty({\n minHeight: 48,\n paddingTop: 6,\n paddingBottom: 6,\n boxSizing: 'border-box',\n width: 'auto',\n overflow: 'hidden',\n whiteSpace: 'nowrap'\n }, theme.breakpoints.up('sm'), {\n minHeight: 'auto'\n })),\n // TODO v5: remove\n\n /* Styles applied to the root element if `disableGutters={false}`. */\n gutters: {},\n\n /* Styles applied to the root element if `selected={true}`. */\n selected: {},\n\n /* Styles applied to the root element if dense. */\n dense: _extends({}, theme.typography.body2, {\n minHeight: 'auto'\n })\n };\n};\nvar MenuItem = /*#__PURE__*/React.forwardRef(function MenuItem(props, ref) {\n var classes = props.classes,\n className = props.className,\n _props$component = props.component,\n component = _props$component === void 0 ? 'li' : _props$component,\n _props$disableGutters = props.disableGutters,\n disableGutters = _props$disableGutters === void 0 ? false : _props$disableGutters,\n ListItemClasses = props.ListItemClasses,\n _props$role = props.role,\n role = _props$role === void 0 ? 'menuitem' : _props$role,\n selected = props.selected,\n tabIndexProp = props.tabIndex,\n other = _objectWithoutProperties(props, [\"classes\", \"className\", \"component\", \"disableGutters\", \"ListItemClasses\", \"role\", \"selected\", \"tabIndex\"]);\n\n var tabIndex;\n\n if (!props.disabled) {\n tabIndex = tabIndexProp !== undefined ? tabIndexProp : -1;\n }\n\n return /*#__PURE__*/React.createElement(ListItem, _extends({\n button: true,\n role: role,\n tabIndex: tabIndex,\n component: component,\n selected: selected,\n disableGutters: disableGutters,\n classes: _extends({\n dense: classes.dense\n }, ListItemClasses),\n className: clsx(classes.root, className, selected && classes.selected, !disableGutters && classes.gutters),\n ref: ref\n }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? MenuItem.propTypes = {\n /**\n * Menu item contents.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object.isRequired,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * If `true`, compact vertical padding designed for keyboard and mouse input will be used.\n */\n dense: PropTypes.bool,\n\n /**\n * @ignore\n */\n disabled: PropTypes.bool,\n\n /**\n * If `true`, the left and right padding is removed.\n */\n disableGutters: PropTypes.bool,\n\n /**\n * `classes` prop applied to the [`ListItem`](/api/list-item/) element.\n */\n ListItemClasses: PropTypes.object,\n\n /**\n * @ignore\n */\n role: PropTypes.string,\n\n /**\n * @ignore\n */\n selected: PropTypes.bool,\n\n /**\n * @ignore\n */\n tabIndex: PropTypes.number\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiMenuItem'\n})(MenuItem);","import React, { useCallback, useEffect, useState } from 'react';\nimport { RefinementListProvided } from 'react-instantsearch-core';\nimport { connectRefinementList } from 'react-instantsearch-dom';\nimport './custom.css';\n\ntype Props = RefinementListProvided & {\n query: string;\n onSelect?: (value?: string) => void;\n};\n\nconst RefinementListSidebar: React.FC = ({\n items,\n query,\n refine,\n currentRefinement,\n onSelect,\n}) => {\n const [customItems, setCustomItems] = useState(items);\n const [selectedItem, setSelectedItem] = useState();\n\n useEffect(() => {\n const sortedItems = items.sort((a, b) => b.count - a.count);\n setCustomItems(sortedItems);\n }, [items.length]);\n\n const customRefine = useCallback(\n ({ value }: { value: string }) => {\n refine([value]);\n onSelect && onSelect(value);\n setSelectedItem(value);\n },\n [refine, currentRefinement]\n );\n\n const selectAllItems = useCallback(() => {\n refine([]);\n onSelect && onSelect(undefined);\n setSelectedItem(undefined);\n }, [refine]);\n\n return (\n \n );\n};\n\nconst AlgoliaRefinementListSidebar = connectRefinementList(\n RefinementListSidebar\n);\n\nexport default AlgoliaRefinementListSidebar;\n","// THIS FILE IS AUTO GENERATED\nvar GenIcon = require('../lib').GenIcon\nmodule.exports.AiFillAppstore = function AiFillAppstore (props) {\n return GenIcon({\"tag\":\"svg\",\"attr\":{\"viewBox\":\"0 0 1024 1024\"},\"child\":[{\"tag\":\"path\",\"attr\":{\"d\":\"M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zM464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16z\"}}]})(props);\n};\n","// THIS FILE IS AUTO GENERATED\nvar GenIcon = require('../lib').GenIcon\nmodule.exports.AiOutlineUnorderedList = function AiOutlineUnorderedList (props) {\n return GenIcon({\"tag\":\"svg\",\"attr\":{\"viewBox\":\"0 0 1024 1024\"},\"child\":[{\"tag\":\"path\",\"attr\":{\"d\":\"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 284a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 284a56 56 0 1 0 112 0 56 56 0 1 0-112 0z\"}}]})(props);\n};\n","import React, { useMemo } from 'react';\nimport { Modal } from 'reactstrap';\nimport { BrandDetails } from '~redux/brand/types';\nimport { getPublicImageUrl } from '~utils/image';\nimport './styles.scss';\n\ntype BrandDetailModalProps = {\n brand: BrandDetails;\n isOpen: boolean;\n toggle: () => void;\n};\n\nconst BrandDetailModal: React.FC = ({\n brand,\n isOpen,\n toggle,\n}) => {\n const videoId = useMemo(() => {\n if (!brand.movie_url) {\n return;\n }\n try {\n const videoUrl = new URL(brand.movie_url);\n const videoId = videoUrl.searchParams.get('v') ?? videoUrl.pathname;\n return videoId;\n } catch (e) {\n return;\n }\n }, [brand.movie_url]);\n\n return (\n \n
\n {\n e.currentTarget.src = `https://via.placeholder.com/80/fff/000/?text=${brand.brand_name.substring(\n 0,\n 1\n )}`;\n }}\n />\n
\n

\n {brand.brand_name}\n

\n
{brand.brand_yomigana}
\n
\n
\n
\n

{brand.brand_content}

\n
\n
\n {brand.designed_in && (\n
\n

\n Designed In\n

\n

{brand.designed_in}

\n
\n )}\n {brand.brand_instagram_account && (\n
\n

\n Instagram\n

\n \n

{brand.brand_instagram_account}

\n \n
\n )}\n {brand.established && (\n
\n

\n Established\n

\n

{brand.established}

\n
\n )}\n {brand.tags?.length > 0 && (\n
\n
\n {brand.tags.map((tag) => (\n
\n {tag}\n
\n ))}\n
\n
\n )}\n
\n
\n
\n
\n {brand.featured_in?.length > 0 && (\n <>\n

\n Featured in\n

\n
\n
\n {brand.featured_in.map((item) => (\n \n {item}\n \n ))}\n
\n
\n \n )}\n {brand.modalImageUrl?.length > 0 && (\n
\n {brand.modalImageUrl?.length === 1 && (\n \n )}\n {brand.modalImageUrl?.length === 2 && (\n
\n \n \n
\n )}\n
\n )}\n {videoId && (\n
\n
\n \n
\n
\n )}\n {(brand.stockists ?? []).length > 0 && (\n
\n
\n

\n Stockists\n

\n {(brand.stockists ?? []).map((item) => (\n

\n {item.stockist}\n
\n {item.address}\n

\n ))}\n
\n
\n )}\n
\n
\n \n );\n};\n\nexport default BrandDetailModal;\n","// THIS FILE IS AUTO GENERATED\nvar GenIcon = require('../lib').GenIcon\nmodule.exports.FiBook = function FiBook (props) {\n return GenIcon({\"tag\":\"svg\",\"attr\":{\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":\"2\",\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\"},\"child\":[{\"tag\":\"path\",\"attr\":{\"d\":\"M4 19.5A2.5 2.5 0 0 1 6.5 17H20\"}},{\"tag\":\"path\",\"attr\":{\"d\":\"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z\"}}]})(props);\n};\n","import * as React from 'react';\nimport { createSvgIcon } from '@material-ui/core/utils';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z\"\n}), 'Star');","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { chainPropTypes } from '@material-ui/utils';\nimport { useTheme, withStyles } from '@material-ui/core/styles';\nimport { capitalize, useForkRef, useIsFocusVisible, useControlled, unstable_useId as useId } from '@material-ui/core/utils';\nimport Star from '../internal/svg-icons/Star';\n\nfunction clamp(value, min, max) {\n if (value < min) {\n return min;\n }\n\n if (value > max) {\n return max;\n }\n\n return value;\n}\n\nfunction getDecimalPrecision(num) {\n var decimalPart = num.toString().split('.')[1];\n return decimalPart ? decimalPart.length : 0;\n}\n\nfunction roundValueToPrecision(value, precision) {\n if (value == null) {\n return value;\n }\n\n var nearest = Math.round(value / precision) * precision;\n return Number(nearest.toFixed(getDecimalPrecision(precision)));\n}\n\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n display: 'inline-flex',\n position: 'relative',\n fontSize: theme.typography.pxToRem(24),\n color: '#ffb400',\n cursor: 'pointer',\n textAlign: 'left',\n WebkitTapHighlightColor: 'transparent',\n '&$disabled': {\n opacity: 0.5,\n pointerEvents: 'none'\n },\n '&$focusVisible $iconActive': {\n outline: '1px solid #999'\n }\n },\n\n /* Styles applied to the root element if `size=\"small\"`. */\n sizeSmall: {\n fontSize: theme.typography.pxToRem(18)\n },\n\n /* Styles applied to the root element if `size=\"large\"`. */\n sizeLarge: {\n fontSize: theme.typography.pxToRem(30)\n },\n\n /* Styles applied to the root element if `readOnly={true}`. */\n readOnly: {\n pointerEvents: 'none'\n },\n\n /* Pseudo-class applied to the root element if `disabled={true}`. */\n disabled: {},\n\n /* Pseudo-class applied to the root element if keyboard focused. */\n focusVisible: {},\n\n /* Visually hide an element. */\n visuallyhidden: {\n border: 0,\n clip: 'rect(0 0 0 0)',\n height: 1,\n margin: -1,\n color: '#000',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n top: 20,\n width: 1\n },\n\n /* Styles applied to the pristine label. */\n pristine: {\n 'input:focus + &': {\n top: 0,\n bottom: 0,\n position: 'absolute',\n outline: '1px solid #999',\n width: '100%'\n }\n },\n\n /* Styles applied to the label elements. */\n label: {\n cursor: 'inherit'\n },\n\n /* Styles applied to the icon wrapping elements. */\n icon: {\n display: 'flex',\n transition: theme.transitions.create('transform', {\n duration: theme.transitions.duration.shortest\n }),\n // Fix mouseLeave issue.\n // https://github.com/facebook/react/issues/4492\n pointerEvents: 'none'\n },\n\n /* Styles applied to the icon wrapping elements when empty. */\n iconEmpty: {\n color: theme.palette.action.disabled\n },\n\n /* Styles applied to the icon wrapping elements when filled. */\n iconFilled: {},\n\n /* Styles applied to the icon wrapping elements when hover. */\n iconHover: {},\n\n /* Styles applied to the icon wrapping elements when focus. */\n iconFocus: {},\n\n /* Styles applied to the icon wrapping elements when active. */\n iconActive: {\n transform: 'scale(1.2)'\n },\n\n /* Styles applied to the icon wrapping elements when decimals are necessary. */\n decimal: {\n position: 'relative'\n }\n };\n};\n\nfunction IconContainer(props) {\n var value = props.value,\n other = _objectWithoutProperties(props, [\"value\"]);\n\n return /*#__PURE__*/React.createElement(\"span\", other);\n}\n\nprocess.env.NODE_ENV !== \"production\" ? IconContainer.propTypes = {\n value: PropTypes.number.isRequired\n} : void 0;\nvar defaultIcon = /*#__PURE__*/React.createElement(Star, {\n fontSize: \"inherit\"\n});\n\nfunction defaultLabelText(value) {\n return \"\".concat(value, \" Star\").concat(value !== 1 ? 's' : '');\n}\n\nvar Rating = /*#__PURE__*/React.forwardRef(function Rating(props, ref) {\n var classes = props.classes,\n className = props.className,\n _props$defaultValue = props.defaultValue,\n defaultValue = _props$defaultValue === void 0 ? null : _props$defaultValue,\n _props$disabled = props.disabled,\n disabled = _props$disabled === void 0 ? false : _props$disabled,\n emptyIcon = props.emptyIcon,\n _props$emptyLabelText = props.emptyLabelText,\n emptyLabelText = _props$emptyLabelText === void 0 ? 'Empty' : _props$emptyLabelText,\n _props$getLabelText = props.getLabelText,\n getLabelText = _props$getLabelText === void 0 ? defaultLabelText : _props$getLabelText,\n _props$icon = props.icon,\n icon = _props$icon === void 0 ? defaultIcon : _props$icon,\n _props$IconContainerC = props.IconContainerComponent,\n IconContainerComponent = _props$IconContainerC === void 0 ? IconContainer : _props$IconContainerC,\n _props$max = props.max,\n max = _props$max === void 0 ? 5 : _props$max,\n nameProp = props.name,\n onChange = props.onChange,\n onChangeActive = props.onChangeActive,\n onMouseLeave = props.onMouseLeave,\n onMouseMove = props.onMouseMove,\n _props$precision = props.precision,\n precision = _props$precision === void 0 ? 1 : _props$precision,\n _props$readOnly = props.readOnly,\n readOnly = _props$readOnly === void 0 ? false : _props$readOnly,\n _props$size = props.size,\n size = _props$size === void 0 ? 'medium' : _props$size,\n valueProp = props.value,\n other = _objectWithoutProperties(props, [\"classes\", \"className\", \"defaultValue\", \"disabled\", \"emptyIcon\", \"emptyLabelText\", \"getLabelText\", \"icon\", \"IconContainerComponent\", \"max\", \"name\", \"onChange\", \"onChangeActive\", \"onMouseLeave\", \"onMouseMove\", \"precision\", \"readOnly\", \"size\", \"value\"]);\n\n var name = useId(nameProp);\n\n var _useControlled = useControlled({\n controlled: valueProp,\n default: defaultValue,\n name: 'Rating'\n }),\n _useControlled2 = _slicedToArray(_useControlled, 2),\n valueDerived = _useControlled2[0],\n setValueState = _useControlled2[1];\n\n var valueRounded = roundValueToPrecision(valueDerived, precision);\n var theme = useTheme();\n\n var _React$useState = React.useState({\n hover: -1,\n focus: -1\n }),\n _React$useState$ = _React$useState[0],\n hover = _React$useState$.hover,\n focus = _React$useState$.focus,\n setState = _React$useState[1];\n\n var value = valueRounded;\n\n if (hover !== -1) {\n value = hover;\n }\n\n if (focus !== -1) {\n value = focus;\n }\n\n var _useIsFocusVisible = useIsFocusVisible(),\n isFocusVisible = _useIsFocusVisible.isFocusVisible,\n onBlurVisible = _useIsFocusVisible.onBlurVisible,\n focusVisibleRef = _useIsFocusVisible.ref;\n\n var _React$useState2 = React.useState(false),\n focusVisible = _React$useState2[0],\n setFocusVisible = _React$useState2[1];\n\n var rootRef = React.useRef();\n var handleFocusRef = useForkRef(focusVisibleRef, rootRef);\n var handleRef = useForkRef(handleFocusRef, ref);\n\n var handleMouseMove = function handleMouseMove(event) {\n if (onMouseMove) {\n onMouseMove(event);\n }\n\n var rootNode = rootRef.current;\n\n var _rootNode$getBounding = rootNode.getBoundingClientRect(),\n right = _rootNode$getBounding.right,\n left = _rootNode$getBounding.left;\n\n var _rootNode$firstChild$ = rootNode.firstChild.getBoundingClientRect(),\n width = _rootNode$firstChild$.width;\n\n var percent;\n\n if (theme.direction === 'rtl') {\n percent = (right - event.clientX) / (width * max);\n } else {\n percent = (event.clientX - left) / (width * max);\n }\n\n var newHover = roundValueToPrecision(max * percent + precision / 2, precision);\n newHover = clamp(newHover, precision, max);\n setState(function (prev) {\n return prev.hover === newHover && prev.focus === newHover ? prev : {\n hover: newHover,\n focus: newHover\n };\n });\n setFocusVisible(false);\n\n if (onChangeActive && hover !== newHover) {\n onChangeActive(event, newHover);\n }\n };\n\n var handleMouseLeave = function handleMouseLeave(event) {\n if (onMouseLeave) {\n onMouseLeave(event);\n }\n\n var newHover = -1;\n setState({\n hover: newHover,\n focus: newHover\n });\n\n if (onChangeActive && hover !== newHover) {\n onChangeActive(event, newHover);\n }\n };\n\n var handleChange = function handleChange(event) {\n var newValue = parseFloat(event.target.value);\n setValueState(newValue);\n\n if (onChange) {\n onChange(event, newValue);\n }\n };\n\n var handleClear = function handleClear(event) {\n // Ignore keyboard events\n // https://github.com/facebook/react/issues/7407\n if (event.clientX === 0 && event.clientY === 0) {\n return;\n }\n\n setState({\n hover: -1,\n focus: -1\n });\n setValueState(null);\n\n if (onChange && parseFloat(event.target.value) === valueRounded) {\n onChange(event, null);\n }\n };\n\n var handleFocus = function handleFocus(event) {\n if (isFocusVisible(event)) {\n setFocusVisible(true);\n }\n\n var newFocus = parseFloat(event.target.value);\n setState(function (prev) {\n return {\n hover: prev.hover,\n focus: newFocus\n };\n });\n\n if (onChangeActive && focus !== newFocus) {\n onChangeActive(event, newFocus);\n }\n };\n\n var handleBlur = function handleBlur(event) {\n if (hover !== -1) {\n return;\n }\n\n if (focusVisible !== false) {\n setFocusVisible(false);\n onBlurVisible();\n }\n\n var newFocus = -1;\n setState(function (prev) {\n return {\n hover: prev.hover,\n focus: newFocus\n };\n });\n\n if (onChangeActive && focus !== newFocus) {\n onChangeActive(event, newFocus);\n }\n };\n\n var item = function item(state, labelProps) {\n var id = \"\".concat(name, \"-\").concat(String(state.value).replace('.', '-'));\n var container = /*#__PURE__*/React.createElement(IconContainerComponent, {\n value: state.value,\n className: clsx(classes.icon, state.filled ? classes.iconFilled : classes.iconEmpty, state.hover && classes.iconHover, state.focus && classes.iconFocus, state.active && classes.iconActive)\n }, emptyIcon && !state.filled ? emptyIcon : icon);\n\n if (readOnly) {\n return /*#__PURE__*/React.createElement(\"span\", _extends({\n key: state.value\n }, labelProps), container);\n }\n\n return /*#__PURE__*/React.createElement(React.Fragment, {\n key: state.value\n }, /*#__PURE__*/React.createElement(\"label\", _extends({\n className: classes.label,\n htmlFor: id\n }, labelProps), container, /*#__PURE__*/React.createElement(\"span\", {\n className: classes.visuallyhidden\n }, getLabelText(state.value))), /*#__PURE__*/React.createElement(\"input\", {\n onFocus: handleFocus,\n onBlur: handleBlur,\n onChange: handleChange,\n onClick: handleClear,\n disabled: disabled,\n value: state.value,\n id: id,\n type: \"radio\",\n name: name,\n checked: state.checked,\n className: classes.visuallyhidden\n }));\n };\n\n return /*#__PURE__*/React.createElement(\"span\", _extends({\n ref: handleRef,\n onMouseMove: handleMouseMove,\n onMouseLeave: handleMouseLeave,\n className: clsx(classes.root, className, size !== 'medium' && classes[\"size\".concat(capitalize(size))], disabled && classes.disabled, focusVisible && classes.focusVisible, readOnly && classes.readOnly),\n role: readOnly ? 'img' : null,\n \"aria-label\": readOnly ? getLabelText(value) : null\n }, other), Array.from(new Array(max)).map(function (_, index) {\n var itemValue = index + 1;\n\n if (precision < 1) {\n var items = Array.from(new Array(1 / precision));\n return /*#__PURE__*/React.createElement(\"span\", {\n key: itemValue,\n className: clsx(classes.decimal, itemValue === Math.ceil(value) && (hover !== -1 || focus !== -1) && classes.iconActive)\n }, items.map(function ($, indexDecimal) {\n var itemDecimalValue = roundValueToPrecision(itemValue - 1 + (indexDecimal + 1) * precision, precision);\n return item({\n value: itemDecimalValue,\n filled: itemDecimalValue <= value,\n hover: itemDecimalValue <= hover,\n focus: itemDecimalValue <= focus,\n checked: itemDecimalValue === valueRounded\n }, {\n style: items.length - 1 === indexDecimal ? {} : {\n width: itemDecimalValue === value ? \"\".concat((indexDecimal + 1) * precision * 100, \"%\") : '0%',\n overflow: 'hidden',\n zIndex: 1,\n position: 'absolute'\n }\n });\n }));\n }\n\n return item({\n value: itemValue,\n active: itemValue === value && (hover !== -1 || focus !== -1),\n filled: itemValue <= value,\n hover: itemValue <= hover,\n focus: itemValue <= focus,\n checked: itemValue === valueRounded\n });\n }), !readOnly && !disabled && valueRounded == null && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"input\", {\n value: \"\",\n id: \"\".concat(name, \"-empty\"),\n type: \"radio\",\n name: name,\n defaultChecked: true,\n className: classes.visuallyhidden\n }), /*#__PURE__*/React.createElement(\"label\", {\n className: classes.pristine,\n htmlFor: \"\".concat(name, \"-empty\")\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: classes.visuallyhidden\n }, emptyLabelText))));\n});\nprocess.env.NODE_ENV !== \"production\" ? Rating.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.number,\n\n /**\n * If `true`, the rating will be disabled.\n */\n disabled: PropTypes.bool,\n\n /**\n * The icon to display when empty.\n */\n emptyIcon: PropTypes.node,\n\n /**\n * The label read when the rating input is empty.\n */\n emptyLabelText: PropTypes.node,\n\n /**\n * Accepts a function which returns a string value that provides a user-friendly name for the current value of the rating.\n *\n * For localization purposes, you can use the provided [translations](/guides/localization/).\n *\n * @param {number} value The rating label's value to format.\n * @returns {string}\n */\n getLabelText: PropTypes.func,\n\n /**\n * The icon to display.\n */\n icon: PropTypes.node,\n\n /**\n * The component containing the icon.\n */\n IconContainerComponent: PropTypes.elementType,\n\n /**\n * Maximum rating.\n */\n max: PropTypes.number,\n\n /**\n * The name attribute of the radio `input` elements.\n * If `readOnly` is false, the prop is required,\n * this input name`should be unique within the parent form.\n */\n name: chainPropTypes(PropTypes.string, function (props) {\n if (!props.readOnly && !props.name) {\n return new Error(['Material-UI: The prop `name` is required (when `readOnly` is false).', 'Additionally, the input name should be unique within the parent form.'].join('\\n'));\n }\n\n return null;\n }),\n\n /**\n * Callback fired when the value changes.\n *\n * @param {object} event The event source of the callback.\n * @param {number} value The new value.\n */\n onChange: PropTypes.func,\n\n /**\n * Callback function that is fired when the hover state changes.\n *\n * @param {object} event The event source of the callback.\n * @param {number} value The new value.\n */\n onChangeActive: PropTypes.func,\n\n /**\n * @ignore\n */\n onMouseLeave: PropTypes.func,\n\n /**\n * @ignore\n */\n onMouseMove: PropTypes.func,\n\n /**\n * The minimum increment value change allowed.\n */\n precision: chainPropTypes(PropTypes.number, function (props) {\n if (props.precision < 0.1) {\n return new Error(['Material-UI: The prop `precision` should be above 0.1.', 'A value below this limit has an imperceptible impact.'].join('\\n'));\n }\n\n return null;\n }),\n\n /**\n * Removes all hover effects and pointer events.\n */\n readOnly: PropTypes.bool,\n\n /**\n * The size of the rating.\n */\n size: PropTypes.oneOf(['large', 'medium', 'small']),\n\n /**\n * The rating value.\n */\n value: PropTypes.number\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiRating'\n})(Rating);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { Transition } from 'react-transition-group';\nimport useTheme from '../styles/useTheme';\nimport { reflow, getTransitionProps } from '../transitions/utils';\nimport useForkRef from '../utils/useForkRef';\n\nfunction getScale(value) {\n return \"scale(\".concat(value, \", \").concat(Math.pow(value, 2), \")\");\n}\n\nvar styles = {\n entering: {\n opacity: 1,\n transform: getScale(1)\n },\n entered: {\n opacity: 1,\n transform: 'none'\n }\n};\n/**\n * The Grow transition is used by the [Tooltip](/components/tooltips/) and\n * [Popover](/components/popover/) components.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\n\nvar Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {\n var children = props.children,\n _props$disableStrictM = props.disableStrictModeCompat,\n disableStrictModeCompat = _props$disableStrictM === void 0 ? false : _props$disableStrictM,\n inProp = props.in,\n onEnter = props.onEnter,\n onEntered = props.onEntered,\n onEntering = props.onEntering,\n onExit = props.onExit,\n onExited = props.onExited,\n onExiting = props.onExiting,\n style = props.style,\n _props$timeout = props.timeout,\n timeout = _props$timeout === void 0 ? 'auto' : _props$timeout,\n _props$TransitionComp = props.TransitionComponent,\n TransitionComponent = _props$TransitionComp === void 0 ? Transition : _props$TransitionComp,\n other = _objectWithoutProperties(props, [\"children\", \"disableStrictModeCompat\", \"in\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"style\", \"timeout\", \"TransitionComponent\"]);\n\n var timer = React.useRef();\n var autoTimeout = React.useRef();\n var theme = useTheme();\n var enableStrictModeCompat = theme.unstable_strictMode && !disableStrictModeCompat;\n var nodeRef = React.useRef(null);\n var foreignRef = useForkRef(children.ref, ref);\n var handleRef = useForkRef(enableStrictModeCompat ? nodeRef : undefined, foreignRef);\n\n var normalizedTransitionCallback = function normalizedTransitionCallback(callback) {\n return function (nodeOrAppearing, maybeAppearing) {\n if (callback) {\n var _ref = enableStrictModeCompat ? [nodeRef.current, nodeOrAppearing] : [nodeOrAppearing, maybeAppearing],\n _ref2 = _slicedToArray(_ref, 2),\n node = _ref2[0],\n isAppearing = _ref2[1]; // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n\n\n if (isAppearing === undefined) {\n callback(node);\n } else {\n callback(node, isAppearing);\n }\n }\n };\n };\n\n var handleEntering = normalizedTransitionCallback(onEntering);\n var handleEnter = normalizedTransitionCallback(function (node, isAppearing) {\n reflow(node); // So the animation always start from the start.\n\n var _getTransitionProps = getTransitionProps({\n style: style,\n timeout: timeout\n }, {\n mode: 'enter'\n }),\n transitionDuration = _getTransitionProps.duration,\n delay = _getTransitionProps.delay;\n\n var duration;\n\n if (timeout === 'auto') {\n duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n autoTimeout.current = duration;\n } else {\n duration = transitionDuration;\n }\n\n node.style.transition = [theme.transitions.create('opacity', {\n duration: duration,\n delay: delay\n }), theme.transitions.create('transform', {\n duration: duration * 0.666,\n delay: delay\n })].join(',');\n\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n });\n var handleEntered = normalizedTransitionCallback(onEntered);\n var handleExiting = normalizedTransitionCallback(onExiting);\n var handleExit = normalizedTransitionCallback(function (node) {\n var _getTransitionProps2 = getTransitionProps({\n style: style,\n timeout: timeout\n }, {\n mode: 'exit'\n }),\n transitionDuration = _getTransitionProps2.duration,\n delay = _getTransitionProps2.delay;\n\n var duration;\n\n if (timeout === 'auto') {\n duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n autoTimeout.current = duration;\n } else {\n duration = transitionDuration;\n }\n\n node.style.transition = [theme.transitions.create('opacity', {\n duration: duration,\n delay: delay\n }), theme.transitions.create('transform', {\n duration: duration * 0.666,\n delay: delay || duration * 0.333\n })].join(',');\n node.style.opacity = '0';\n node.style.transform = getScale(0.75);\n\n if (onExit) {\n onExit(node);\n }\n });\n var handleExited = normalizedTransitionCallback(onExited);\n\n var addEndListener = function addEndListener(nodeOrNext, maybeNext) {\n var next = enableStrictModeCompat ? nodeOrNext : maybeNext;\n\n if (timeout === 'auto') {\n timer.current = setTimeout(next, autoTimeout.current || 0);\n }\n };\n\n React.useEffect(function () {\n return function () {\n clearTimeout(timer.current);\n };\n }, []);\n return /*#__PURE__*/React.createElement(TransitionComponent, _extends({\n appear: true,\n in: inProp,\n nodeRef: enableStrictModeCompat ? nodeRef : undefined,\n onEnter: handleEnter,\n onEntered: handleEntered,\n onEntering: handleEntering,\n onExit: handleExit,\n onExited: handleExited,\n onExiting: handleExiting,\n addEndListener: addEndListener,\n timeout: timeout === 'auto' ? null : timeout\n }, other), function (state, childProps) {\n return /*#__PURE__*/React.cloneElement(children, _extends({\n style: _extends({\n opacity: 0,\n transform: getScale(0.75),\n visibility: state === 'exited' && !inProp ? 'hidden' : undefined\n }, styles[state], style, children.props.style),\n ref: handleRef\n }, childProps));\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Grow.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * A single child content element.\n */\n children: PropTypes.element,\n\n /**\n * Enable this prop if you encounter 'Function components cannot be given refs',\n * use `unstable_createStrictModeTheme`,\n * and can't forward the ref in the child component.\n */\n disableStrictModeCompat: PropTypes.bool,\n\n /**\n * If `true`, show the component; triggers the enter or exit animation.\n */\n in: PropTypes.bool,\n\n /**\n * @ignore\n */\n onEnter: PropTypes.func,\n\n /**\n * @ignore\n */\n onEntered: PropTypes.func,\n\n /**\n * @ignore\n */\n onEntering: PropTypes.func,\n\n /**\n * @ignore\n */\n onExit: PropTypes.func,\n\n /**\n * @ignore\n */\n onExited: PropTypes.func,\n\n /**\n * @ignore\n */\n onExiting: PropTypes.func,\n\n /**\n * @ignore\n */\n style: PropTypes.object,\n\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n *\n * Set to 'auto' to automatically calculate transition time based on height.\n */\n timeout: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nGrow.muiSupportAuto = true;\nexport default Grow;","\nvar content = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".brand-detail-modal{max-height:600px;max-width:800px;overflow-y:auto;overflow-x:hidden}.detail-line{width:120px;border-bottom:1px solid #4a4a4a;margin:40px 0}.brand-name-wrapper{display:flex;align-items:center}.brand-detail-info{display:flex;flex-wrap:wrap}.brand-detail-modal-content{white-space:pre-wrap;margin:0}.brand-detail-modal-featuredin-logo{font-style:italic;padding:4px 16px;background-color:#eaeaea;color:#666}.brand-detail-modal-header{font-weight:400;font-size:32px;margin:0}.brand-detail-modal-featuredin{text-decoration:underline}.brand-detail-modal-tags{display:flex;flex-wrap:wrap;justify-content:center}.brand-detail-modal-tag{font-weight:200;font-size:12px;line-height:20px;letter-spacing:.25px;text-align:center;padding:4px 16px;background-color:#eaeaea;margin-bottom:8px;color:#666;margin-right:8px;white-space:nowrap}.brand-detail-modal-icon{width:80px;aspect-ratio:auto 80/80;height:80px;margin-right:20px;border-radius:100%;object-fit:contain}.brand-detail-modal-images{display:flex;flex-wrap:wrap;justify-content:space-between}.brand-detail-modal-images img{width:48%;min-width:250px;margin-bottom:20px}.brand-detail-modal-instagram{color:inherit}.brand-detail-modal-stockists-header{text-decoration:underline}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// THIS FILE IS AUTO GENERATED\nvar GenIcon = require('../lib').GenIcon\nmodule.exports.FiTruck = function FiTruck (props) {\n return GenIcon({\"tag\":\"svg\",\"attr\":{\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":\"2\",\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\"},\"child\":[{\"tag\":\"rect\",\"attr\":{\"x\":\"1\",\"y\":\"3\",\"width\":\"15\",\"height\":\"13\"}},{\"tag\":\"polygon\",\"attr\":{\"points\":\"16 8 20 8 23 11 23 16 16 16 16 8\"}},{\"tag\":\"circle\",\"attr\":{\"cx\":\"5.5\",\"cy\":\"18.5\",\"r\":\"2.5\"}},{\"tag\":\"circle\",\"attr\":{\"cx\":\"18.5\",\"cy\":\"18.5\",\"r\":\"2.5\"}}]})(props);\n};\n","// THIS FILE IS AUTO GENERATED\nvar GenIcon = require('../lib').GenIcon\nmodule.exports.FiAlertCircle = function FiAlertCircle (props) {\n return GenIcon({\"tag\":\"svg\",\"attr\":{\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":\"2\",\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\"},\"child\":[{\"tag\":\"circle\",\"attr\":{\"cx\":\"12\",\"cy\":\"12\",\"r\":\"10\"}},{\"tag\":\"line\",\"attr\":{\"x1\":\"12\",\"y1\":\"8\",\"x2\":\"12\",\"y2\":\"12\"}},{\"tag\":\"line\",\"attr\":{\"x1\":\"12\",\"y1\":\"16\",\"x2\":\"12.01\",\"y2\":\"16\"}}]})(props);\n};\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { mapToCssModules, tagPropType, toNumber } from './utils';\nvar propTypes = {\n children: PropTypes.node,\n bar: PropTypes.bool,\n multi: PropTypes.bool,\n tag: tagPropType,\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n min: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n max: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n animated: PropTypes.bool,\n striped: PropTypes.bool,\n color: PropTypes.string,\n className: PropTypes.string,\n barClassName: PropTypes.string,\n cssModule: PropTypes.object,\n style: PropTypes.object,\n barStyle: PropTypes.object,\n barAriaValueText: PropTypes.string,\n barAriaLabelledBy: PropTypes.string\n};\nvar defaultProps = {\n tag: 'div',\n value: 0,\n min: 0,\n max: 100,\n style: {},\n barStyle: {}\n};\n\nvar Progress = function Progress(props) {\n var children = props.children,\n className = props.className,\n barClassName = props.barClassName,\n cssModule = props.cssModule,\n value = props.value,\n min = props.min,\n max = props.max,\n animated = props.animated,\n striped = props.striped,\n color = props.color,\n bar = props.bar,\n multi = props.multi,\n Tag = props.tag,\n style = props.style,\n barStyle = props.barStyle,\n barAriaValueText = props.barAriaValueText,\n barAriaLabelledBy = props.barAriaLabelledBy,\n attributes = _objectWithoutPropertiesLoose(props, [\"children\", \"className\", \"barClassName\", \"cssModule\", \"value\", \"min\", \"max\", \"animated\", \"striped\", \"color\", \"bar\", \"multi\", \"tag\", \"style\", \"barStyle\", \"barAriaValueText\", \"barAriaLabelledBy\"]);\n\n var percent = toNumber(value) / toNumber(max) * 100;\n var progressClasses = mapToCssModules(classNames(className, 'progress'), cssModule);\n var progressBarClasses = mapToCssModules(classNames('progress-bar', bar ? className || barClassName : barClassName, animated ? 'progress-bar-animated' : null, color ? \"bg-\" + color : null, striped || animated ? 'progress-bar-striped' : null), cssModule);\n var progressBarProps = {\n className: progressBarClasses,\n style: _objectSpread(_objectSpread(_objectSpread({}, bar ? style : {}), barStyle), {}, {\n width: percent + \"%\"\n }),\n role: 'progressbar',\n 'aria-valuenow': value,\n 'aria-valuemin': min,\n 'aria-valuemax': max,\n 'aria-valuetext': barAriaValueText,\n 'aria-labelledby': barAriaLabelledBy,\n children: children\n };\n\n if (bar) {\n return /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, progressBarProps));\n }\n\n return /*#__PURE__*/React.createElement(Tag, _extends({}, attributes, {\n style: style,\n className: progressClasses\n }), multi ? children : /*#__PURE__*/React.createElement(\"div\", progressBarProps));\n};\n\nProgress.propTypes = propTypes;\nProgress.defaultProps = defaultProps;\nexport default Progress;","\nvar content = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".review-list h4{font-size:22px}.review-list .rate-wrapper{display:flex;align-items:center;margin-bottom:10px}.review-list .rate-wrapper p{margin:0 0 0 10px}.review-list .tabs{width:100%;border-bottom:1px solid #e6e6e6}.review-list .review{margin-top:20px;padding-bottom:20px;border-bottom:1px solid #e6e6e6}.review-list .review:last-child{border-bottom:0}.review-list .review .title{font-weight:bold}.review-list .review .date{color:#757575}@media screen and (max-width: 767px){.review-list{padding:1.5rem}}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","import * as React from 'react';\nimport { createSvgIcon } from '@material-ui/core/utils';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z\"\n}), 'SuccessOutlined');","import * as React from 'react';\nimport { createSvgIcon } from '@material-ui/core/utils';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z\"\n}), 'ReportProblemOutlined');","import * as React from 'react';\nimport { createSvgIcon } from '@material-ui/core/utils';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z\"\n}), 'ErrorOutline');","import * as React from 'react';\nimport { createSvgIcon } from '@material-ui/core/utils';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z\"\n}), 'InfoOutlined');","import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { withStyles, lighten, darken } from '@material-ui/core/styles';\nimport Paper from '@material-ui/core/Paper';\nimport SuccessOutlinedIcon from '../internal/svg-icons/SuccessOutlined';\nimport ReportProblemOutlinedIcon from '../internal/svg-icons/ReportProblemOutlined';\nimport ErrorOutlineIcon from '../internal/svg-icons/ErrorOutline';\nimport InfoOutlinedIcon from '../internal/svg-icons/InfoOutlined';\nimport CloseIcon from '../internal/svg-icons/Close';\nimport IconButton from '@material-ui/core/IconButton';\nimport { capitalize } from '@material-ui/core/utils';\nexport var styles = function styles(theme) {\n var getColor = theme.palette.type === 'light' ? darken : lighten;\n var getBackgroundColor = theme.palette.type === 'light' ? lighten : darken;\n return {\n /* Styles applied to the root element. */\n root: _extends({}, theme.typography.body2, {\n borderRadius: theme.shape.borderRadius,\n backgroundColor: 'transparent',\n display: 'flex',\n padding: '6px 16px'\n }),\n\n /* Styles applied to the root element if `variant=\"standard\"` and `color=\"success\"`. */\n standardSuccess: {\n color: getColor(theme.palette.success.main, 0.6),\n backgroundColor: getBackgroundColor(theme.palette.success.main, 0.9),\n '& $icon': {\n color: theme.palette.success.main\n }\n },\n\n /* Styles applied to the root element if `variant=\"standard\"` and `color=\"info\"`. */\n standardInfo: {\n color: getColor(theme.palette.info.main, 0.6),\n backgroundColor: getBackgroundColor(theme.palette.info.main, 0.9),\n '& $icon': {\n color: theme.palette.info.main\n }\n },\n\n /* Styles applied to the root element if `variant=\"standard\"` and `color=\"warning\"`. */\n standardWarning: {\n color: getColor(theme.palette.warning.main, 0.6),\n backgroundColor: getBackgroundColor(theme.palette.warning.main, 0.9),\n '& $icon': {\n color: theme.palette.warning.main\n }\n },\n\n /* Styles applied to the root element if `variant=\"standard\"` and `color=\"error\"`. */\n standardError: {\n color: getColor(theme.palette.error.main, 0.6),\n backgroundColor: getBackgroundColor(theme.palette.error.main, 0.9),\n '& $icon': {\n color: theme.palette.error.main\n }\n },\n\n /* Styles applied to the root element if `variant=\"outlined\"` and `color=\"success\"`. */\n outlinedSuccess: {\n color: getColor(theme.palette.success.main, 0.6),\n border: \"1px solid \".concat(theme.palette.success.main),\n '& $icon': {\n color: theme.palette.success.main\n }\n },\n\n /* Styles applied to the root element if `variant=\"outlined\"` and `color=\"info\"`. */\n outlinedInfo: {\n color: getColor(theme.palette.info.main, 0.6),\n border: \"1px solid \".concat(theme.palette.info.main),\n '& $icon': {\n color: theme.palette.info.main\n }\n },\n\n /* Styles applied to the root element if `variant=\"outlined\"` and `color=\"warning\"`. */\n outlinedWarning: {\n color: getColor(theme.palette.warning.main, 0.6),\n border: \"1px solid \".concat(theme.palette.warning.main),\n '& $icon': {\n color: theme.palette.warning.main\n }\n },\n\n /* Styles applied to the root element if `variant=\"outlined\"` and `color=\"error\"`. */\n outlinedError: {\n color: getColor(theme.palette.error.main, 0.6),\n border: \"1px solid \".concat(theme.palette.error.main),\n '& $icon': {\n color: theme.palette.error.main\n }\n },\n\n /* Styles applied to the root element if `variant=\"filled\"` and `color=\"success\"`. */\n filledSuccess: {\n color: '#fff',\n fontWeight: theme.typography.fontWeightMedium,\n backgroundColor: theme.palette.success.main\n },\n\n /* Styles applied to the root element if `variant=\"filled\"` and `color=\"info\"`. */\n filledInfo: {\n color: '#fff',\n fontWeight: theme.typography.fontWeightMedium,\n backgroundColor: theme.palette.info.main\n },\n\n /* Styles applied to the root element if `variant=\"filled\"` and `color=\"warning\"`. */\n filledWarning: {\n color: '#fff',\n fontWeight: theme.typography.fontWeightMedium,\n backgroundColor: theme.palette.warning.main\n },\n\n /* Styles applied to the root element if `variant=\"filled\"` and `color=\"error\"`. */\n filledError: {\n color: '#fff',\n fontWeight: theme.typography.fontWeightMedium,\n backgroundColor: theme.palette.error.main\n },\n\n /* Styles applied to the icon wrapper element. */\n icon: {\n marginRight: 12,\n padding: '7px 0',\n display: 'flex',\n fontSize: 22,\n opacity: 0.9\n },\n\n /* Styles applied to the message wrapper element. */\n message: {\n padding: '8px 0'\n },\n\n /* Styles applied to the action wrapper element if `action` is provided. */\n action: {\n display: 'flex',\n alignItems: 'center',\n marginLeft: 'auto',\n paddingLeft: 16,\n marginRight: -8\n }\n };\n};\nvar defaultIconMapping = {\n success: /*#__PURE__*/React.createElement(SuccessOutlinedIcon, {\n fontSize: \"inherit\"\n }),\n warning: /*#__PURE__*/React.createElement(ReportProblemOutlinedIcon, {\n fontSize: \"inherit\"\n }),\n error: /*#__PURE__*/React.createElement(ErrorOutlineIcon, {\n fontSize: \"inherit\"\n }),\n info: /*#__PURE__*/React.createElement(InfoOutlinedIcon, {\n fontSize: \"inherit\"\n })\n};\n\nvar _ref = /*#__PURE__*/React.createElement(CloseIcon, {\n fontSize: \"small\"\n});\n\nvar Alert = /*#__PURE__*/React.forwardRef(function Alert(props, ref) {\n var action = props.action,\n children = props.children,\n classes = props.classes,\n className = props.className,\n _props$closeText = props.closeText,\n closeText = _props$closeText === void 0 ? 'Close' : _props$closeText,\n color = props.color,\n icon = props.icon,\n _props$iconMapping = props.iconMapping,\n iconMapping = _props$iconMapping === void 0 ? defaultIconMapping : _props$iconMapping,\n onClose = props.onClose,\n _props$role = props.role,\n role = _props$role === void 0 ? 'alert' : _props$role,\n _props$severity = props.severity,\n severity = _props$severity === void 0 ? 'success' : _props$severity,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'standard' : _props$variant,\n other = _objectWithoutProperties(props, [\"action\", \"children\", \"classes\", \"className\", \"closeText\", \"color\", \"icon\", \"iconMapping\", \"onClose\", \"role\", \"severity\", \"variant\"]);\n\n return /*#__PURE__*/React.createElement(Paper, _extends({\n role: role,\n square: true,\n elevation: 0,\n className: clsx(classes.root, classes[\"\".concat(variant).concat(capitalize(color || severity))], className),\n ref: ref\n }, other), icon !== false ? /*#__PURE__*/React.createElement(\"div\", {\n className: classes.icon\n }, icon || iconMapping[severity] || defaultIconMapping[severity]) : null, /*#__PURE__*/React.createElement(\"div\", {\n className: classes.message\n }, children), action != null ? /*#__PURE__*/React.createElement(\"div\", {\n className: classes.action\n }, action) : null, action == null && onClose ? /*#__PURE__*/React.createElement(\"div\", {\n className: classes.action\n }, /*#__PURE__*/React.createElement(IconButton, {\n size: \"small\",\n \"aria-label\": closeText,\n title: closeText,\n color: \"inherit\",\n onClick: onClose\n }, _ref)) : null);\n});\nprocess.env.NODE_ENV !== \"production\" ? Alert.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * The action to display. It renders after the message, at the end of the alert.\n */\n action: PropTypes.node,\n\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * Override the default label for the *close popup* icon button.\n *\n * For localization purposes, you can use the provided [translations](/guides/localization/).\n */\n closeText: PropTypes.string,\n\n /**\n * The main color for the alert. Unless provided, the value is taken from the `severity` prop.\n */\n color: PropTypes.oneOf(['error', 'info', 'success', 'warning']),\n\n /**\n * Override the icon displayed before the children.\n * Unless provided, the icon is mapped to the value of the `severity` prop.\n */\n icon: PropTypes.node,\n\n /**\n * The component maps the `severity` prop to a range of different icons,\n * for instance success to ``.\n * If you wish to change this mapping, you can provide your own.\n * Alternatively, you can use the `icon` prop to override the icon displayed.\n */\n iconMapping: PropTypes.shape({\n error: PropTypes.node,\n info: PropTypes.node,\n success: PropTypes.node,\n warning: PropTypes.node\n }),\n\n /**\n * Callback fired when the component requests to be closed.\n * When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.\n *\n * @param {object} event The event source of the callback.\n */\n onClose: PropTypes.func,\n\n /**\n * The ARIA role attribute of the element.\n */\n role: PropTypes.string,\n\n /**\n * The severity of the alert. This defines the color and icon used.\n */\n severity: PropTypes.oneOf(['error', 'info', 'success', 'warning']),\n\n /**\n * The variant to use.\n */\n variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiAlert'\n})(Alert);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport { chainPropTypes, getDisplayName } from '@material-ui/utils';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport makeStyles from '../makeStyles';\n\nfunction omit(input, fields) {\n var output = {};\n Object.keys(input).forEach(function (prop) {\n if (fields.indexOf(prop) === -1) {\n output[prop] = input[prop];\n }\n });\n return output;\n} // styled-components's API removes the mapping between components and styles.\n// Using components as a low-level styling construct can be simpler.\n\n\nexport default function styled(Component) {\n var componentCreator = function componentCreator(style) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var name = options.name,\n stylesOptions = _objectWithoutProperties(options, [\"name\"]);\n\n if (process.env.NODE_ENV !== 'production' && Component === undefined) {\n throw new Error(['You are calling styled(Component)(style) with an undefined component.', 'You may have forgotten to import it.'].join('\\n'));\n }\n\n var classNamePrefix = name;\n\n if (process.env.NODE_ENV !== 'production') {\n if (!name) {\n // Provide a better DX outside production.\n var displayName = getDisplayName(Component);\n\n if (displayName !== undefined) {\n classNamePrefix = displayName;\n }\n }\n }\n\n var stylesOrCreator = typeof style === 'function' ? function (theme) {\n return {\n root: function root(props) {\n return style(_extends({\n theme: theme\n }, props));\n }\n };\n } : {\n root: style\n };\n var useStyles = makeStyles(stylesOrCreator, _extends({\n Component: Component,\n name: name || Component.displayName,\n classNamePrefix: classNamePrefix\n }, stylesOptions));\n var filterProps;\n var propTypes = {};\n\n if (style.filterProps) {\n filterProps = style.filterProps;\n delete style.filterProps;\n }\n /* eslint-disable react/forbid-foreign-prop-types */\n\n\n if (style.propTypes) {\n propTypes = style.propTypes;\n delete style.propTypes;\n }\n /* eslint-enable react/forbid-foreign-prop-types */\n\n\n var StyledComponent = /*#__PURE__*/React.forwardRef(function StyledComponent(props, ref) {\n var children = props.children,\n classNameProp = props.className,\n clone = props.clone,\n ComponentProp = props.component,\n other = _objectWithoutProperties(props, [\"children\", \"className\", \"clone\", \"component\"]);\n\n var classes = useStyles(props);\n var className = clsx(classes.root, classNameProp);\n var spread = other;\n\n if (filterProps) {\n spread = omit(spread, filterProps);\n }\n\n if (clone) {\n return /*#__PURE__*/React.cloneElement(children, _extends({\n className: clsx(children.props.className, className)\n }, spread));\n }\n\n if (typeof children === 'function') {\n return children(_extends({\n className: className\n }, spread));\n }\n\n var FinalComponent = ComponentProp || Component;\n return /*#__PURE__*/React.createElement(FinalComponent, _extends({\n ref: ref,\n className: className\n }, spread), children);\n });\n process.env.NODE_ENV !== \"production\" ? StyledComponent.propTypes = _extends({\n /**\n * A render function or node.\n */\n children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * If `true`, the component will recycle it's children HTML element.\n * It's using `React.cloneElement` internally.\n *\n * This prop will be deprecated and removed in v5\n */\n clone: chainPropTypes(PropTypes.bool, function (props) {\n if (props.clone && props.component) {\n return new Error('You can not use the clone and component prop at the same time.');\n }\n\n return null;\n }),\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType\n }, propTypes) : void 0;\n\n if (process.env.NODE_ENV !== 'production') {\n StyledComponent.displayName = \"Styled(\".concat(classNamePrefix, \")\");\n }\n\n hoistNonReactStatics(StyledComponent, Component);\n return StyledComponent;\n };\n\n return componentCreator;\n}","import { styled } from '@material-ui/core';\nimport Rating from '@material-ui/lab/Rating';\n\nexport default styled(Rating)({\n '& .MuiRating-iconFilled': {\n color: '#333',\n },\n});\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { styled as styledWithoutDefault } from '@material-ui/styles';\nimport defaultTheme from './defaultTheme';\n\nvar styled = function styled(Component) {\n var componentCreator = styledWithoutDefault(Component);\n return function (style, options) {\n return componentCreator(style, _extends({\n defaultTheme: defaultTheme\n }, options));\n };\n};\n\nexport default styled;","import Tab from '@material-ui/core/Tab';\nimport Tabs from '@material-ui/core/Tabs';\nimport moment from 'moment';\nimport './styles.scss';\nimport React, { useMemo, useEffect, useState, useCallback } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { Link } from 'react-router-dom';\nimport HorizontalSlider from '../HorizontalSlider';\nimport Rating from '../Rating';\nimport { searchReviews, searchProducts } from './graphql';\nimport { signup } from '~redux/auth/reducers/signup';\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\nimport { Product, Review } from '~types/api';\nimport { getPublicImageUrl } from '~utils/image';\nimport { useGraphql } from '~view/hooks/graphql';\n\ntype ProductReviewListProps = {\n brandId: string | undefined;\n productId?: any;\n isTab?: boolean;\n containerClass?: string;\n};\n\ntype TabPanelProps = {\n children?: React.ReactNode;\n index: any;\n value: any;\n};\n\nconst TabPanel = (props: TabPanelProps) => {\n const { children, value, index, ...other } = props;\n\n return (\n
\n );\n};\n\nconst a11yProps = (index: any) => {\n return {\n id: `simple-tab-${index}`,\n 'aria-controls': `simple-tabpanel-${index}`,\n };\n};\n\nconst ProductReviewList: React.FC = ({\n brandId,\n productId,\n isTab,\n containerClass,\n}) => {\n const auth = useSelector(authUserSelector);\n const [review, fetchReview] = useGraphql<{\n items: Review[];\n nextToken?: string;\n }>(searchReviews, (data) => data.searchReviews, !auth);\n const [products, fetchProducts] = useGraphql(\n searchProducts,\n (data) => data.searchProducts.items,\n !auth\n );\n const [value, setValue] = useState(0);\n const dispatch = useDispatch();\n const handleProductClick = useCallback(\n (e) => {\n if (auth) {\n return;\n }\n e.preventDefault();\n e.stopPropagation();\n dispatch(signup({ nextPath: e.currentTarget.pathname }));\n },\n [auth]\n );\n\n useEffect(() => {\n if (!brandId) {\n return;\n }\n fetchReview({\n filter: { brand_id: { eq: brandId } },\n });\n }, [brandId]);\n\n useEffect(() => {\n if (!review?.items?.length) {\n return;\n }\n fetchProducts({\n filter: {\n or: review.items.flatMap((review) =>\n review.product_ids?.map((productId) => ({\n id: { eq: productId },\n }))\n ),\n },\n });\n }, [review]);\n\n const reviewList = useMemo(\n () =>\n review?.items?.map((review: any) => ({\n id: review.id,\n ids: review.product_ids,\n brandId: review.brand_id,\n rate: review.rate,\n title: review.title,\n comment: review.comment,\n createdAt: review.createdAt,\n replies: review.replies.items,\n })) ?? [],\n [review]\n );\n\n useEffect(() => {\n if (reviewList.some((review) => review.ids.includes(productId))) {\n setValue(1);\n return;\n }\n }, [reviewList, productId]);\n\n const totalRateAverage = useMemo(\n () =>\n review != undefined\n ? reviewList.reduce(\n (sum, i) =>\n Math.round((sum + i.rate / review?.items?.length) * 10) / 10,\n 0\n )\n : 0,\n [review, reviewList]\n );\n\n const handleChange = (event: React.ChangeEvent<{}>, newValue: number) => {\n setValue(newValue);\n };\n\n const allReviews = reviewList.map((review) => {\n return (\n
\n
\n \n

\n {moment(review.createdAt).format('YYYY/MM/DD')}\n

\n
\n

{review.title}

\n

{review.comment}

\n {review.replies.map((reply: any) => {\n return (\n

\n

\n {products?.[0]?.brand?.brand_name}\n

\n {reply.comment}\n

\n );\n })}\n
\n \n {products\n ?.filter((product) => review.ids.includes(product.id))\n ?.map((product) => (\n
\n \n \n \n
\n ))}\n \n
\n
\n );\n });\n\n const filterReviews = reviewList.filter((item) =>\n item.ids.includes(productId)\n );\n\n const purchasedReviews = filterReviews?.map((review) => (\n
\n
\n \n

{moment(review.createdAt).format('YYYY/MM/DD')}

\n
\n

{review.title}

\n

{review.comment}

\n {review.replies.map((reply: any) => {\n return (\n

\n

\n {products?.[0]?.brand?.brand_name}\n

\n {reply.comment}\n

\n );\n })}\n
\n \n {products\n ?.filter((product) => review.ids.includes(product.id))\n ?.map((product) => (\n
\n \n \n \n
\n ))}\n \n
\n
\n ));\n\n if (reviewList.length == 0) return null;\n\n if (isTab == false) {\n return (\n \n

{reviewList.length} 件のブランドレビュー

\n
\n \n

{totalRateAverage}

\n
\n {allReviews}\n \n );\n }\n\n return (\n \n

{reviewList.length} 件のブランドレビュー

\n
\n \n

{totalRateAverage}

\n
\n \n \n \n \n \n {allReviews}\n \n \n {purchasedReviews}\n \n \n );\n};\n\nexport default ProductReviewList;\n","export const searchReviews = /* GraphQL */ `\n query SearchReviews(\n $filter: SearchableReviewFilterInput\n $sort: SearchableReviewSortInput\n $limit: Int\n $nextToken: String\n $from: Int\n ) {\n searchReviews(\n filter: $filter\n sort: $sort\n limit: $limit\n nextToken: $nextToken\n from: $from\n ) {\n items {\n id\n brand_id\n product_ids\n buyer_id\n order_id\n rate\n title\n comment\n remove_flag\n createdAt\n updatedAt\n brand {\n id\n brand_owner\n brand_name\n brand_yomigana\n brand_type\n brand_content\n brand_imageKey\n brand_icon_imageKey\n brand_logo_imageKey\n brand_publication\n brand_retail_stores_number\n brand_category\n brand_target_age\n brand_target_gender\n brand_website_url\n brand_work_with_big_box\n brand_address\n brand_instagram_account\n brand_facebook_account\n brand_rating\n brand_annual_turnover\n brand_public_status\n brand_howtoknowhomula\n brand_audit_status\n createdAt\n updatedAt\n owner\n designed_in\n established\n tagIds\n tags\n brand_collections\n movie_url\n brand_modal_imageKeys\n stockists {\n stockist\n address\n }\n featured_in\n exclude_zip_code\n is_sale_brand\n hubspot_company_id\n return_to_brand\n terms_of_sample\n auto_message_enabled\n auto_message\n account {\n id\n email\n first_name\n last_name\n web_site_URL\n instagram_account\n zip_code\n location\n tel\n company_name\n term_approval_status\n createdAt\n updatedAt\n owner\n }\n product {\n nextToken\n }\n collections {\n nextToken\n }\n contacts {\n nextToken\n }\n }\n replies {\n items {\n id\n review_id\n brand_id\n comment\n createdAt\n updatedAt\n }\n nextToken\n }\n }\n nextToken\n total\n }\n }\n`;\nexport const searchProducts = /* GraphQL */ `\n query SearchProducts(\n $filter: SearchableProductFilterInput\n $sort: SearchableProductSortInput\n $limit: Int\n $nextToken: String\n $from: Int\n ) {\n searchProducts(\n filter: $filter\n sort: $sort\n limit: $limit\n nextToken: $nextToken\n from: $from\n ) {\n items {\n id\n imageKeys {\n items {\n imageKey\n }\n }\n brand {\n brand_name\n }\n }\n nextToken\n total\n }\n }\n`;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { deepmerge, elementAcceptingRef } from '@material-ui/utils';\nimport { alpha } from '../styles/colorManipulator';\nimport withStyles from '../styles/withStyles';\nimport capitalize from '../utils/capitalize';\nimport Grow from '../Grow';\nimport Popper from '../Popper';\nimport useForkRef from '../utils/useForkRef';\nimport useId from '../utils/unstable_useId';\nimport setRef from '../utils/setRef';\nimport useIsFocusVisible from '../utils/useIsFocusVisible';\nimport useControlled from '../utils/useControlled';\nimport useTheme from '../styles/useTheme';\n\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\n\nfunction arrowGenerator() {\n return {\n '&[x-placement*=\"bottom\"] $arrow': {\n top: 0,\n left: 0,\n marginTop: '-0.71em',\n marginLeft: 4,\n marginRight: 4,\n '&::before': {\n transformOrigin: '0 100%'\n }\n },\n '&[x-placement*=\"top\"] $arrow': {\n bottom: 0,\n left: 0,\n marginBottom: '-0.71em',\n marginLeft: 4,\n marginRight: 4,\n '&::before': {\n transformOrigin: '100% 0'\n }\n },\n '&[x-placement*=\"right\"] $arrow': {\n left: 0,\n marginLeft: '-0.71em',\n height: '1em',\n width: '0.71em',\n marginTop: 4,\n marginBottom: 4,\n '&::before': {\n transformOrigin: '100% 100%'\n }\n },\n '&[x-placement*=\"left\"] $arrow': {\n right: 0,\n marginRight: '-0.71em',\n height: '1em',\n width: '0.71em',\n marginTop: 4,\n marginBottom: 4,\n '&::before': {\n transformOrigin: '0 0'\n }\n }\n };\n}\n\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the Popper component. */\n popper: {\n zIndex: theme.zIndex.tooltip,\n pointerEvents: 'none' // disable jss-rtl plugin\n\n },\n\n /* Styles applied to the Popper component if `interactive={true}`. */\n popperInteractive: {\n pointerEvents: 'auto'\n },\n\n /* Styles applied to the Popper component if `arrow={true}`. */\n popperArrow: arrowGenerator(),\n\n /* Styles applied to the tooltip (label wrapper) element. */\n tooltip: {\n backgroundColor: alpha(theme.palette.grey[700], 0.9),\n borderRadius: theme.shape.borderRadius,\n color: theme.palette.common.white,\n fontFamily: theme.typography.fontFamily,\n padding: '4px 8px',\n fontSize: theme.typography.pxToRem(10),\n lineHeight: \"\".concat(round(14 / 10), \"em\"),\n maxWidth: 300,\n wordWrap: 'break-word',\n fontWeight: theme.typography.fontWeightMedium\n },\n\n /* Styles applied to the tooltip (label wrapper) element if `arrow={true}`. */\n tooltipArrow: {\n position: 'relative',\n margin: '0'\n },\n\n /* Styles applied to the arrow element. */\n arrow: {\n overflow: 'hidden',\n position: 'absolute',\n width: '1em',\n height: '0.71em'\n /* = width / sqrt(2) = (length of the hypotenuse) */\n ,\n boxSizing: 'border-box',\n color: alpha(theme.palette.grey[700], 0.9),\n '&::before': {\n content: '\"\"',\n margin: 'auto',\n display: 'block',\n width: '100%',\n height: '100%',\n backgroundColor: 'currentColor',\n transform: 'rotate(45deg)'\n }\n },\n\n /* Styles applied to the tooltip (label wrapper) element if the tooltip is opened by touch. */\n touch: {\n padding: '8px 16px',\n fontSize: theme.typography.pxToRem(14),\n lineHeight: \"\".concat(round(16 / 14), \"em\"),\n fontWeight: theme.typography.fontWeightRegular\n },\n\n /* Styles applied to the tooltip (label wrapper) element if `placement` contains \"left\". */\n tooltipPlacementLeft: _defineProperty({\n transformOrigin: 'right center',\n margin: '0 24px '\n }, theme.breakpoints.up('sm'), {\n margin: '0 14px'\n }),\n\n /* Styles applied to the tooltip (label wrapper) element if `placement` contains \"right\". */\n tooltipPlacementRight: _defineProperty({\n transformOrigin: 'left center',\n margin: '0 24px'\n }, theme.breakpoints.up('sm'), {\n margin: '0 14px'\n }),\n\n /* Styles applied to the tooltip (label wrapper) element if `placement` contains \"top\". */\n tooltipPlacementTop: _defineProperty({\n transformOrigin: 'center bottom',\n margin: '24px 0'\n }, theme.breakpoints.up('sm'), {\n margin: '14px 0'\n }),\n\n /* Styles applied to the tooltip (label wrapper) element if `placement` contains \"bottom\". */\n tooltipPlacementBottom: _defineProperty({\n transformOrigin: 'center top',\n margin: '24px 0'\n }, theme.breakpoints.up('sm'), {\n margin: '14px 0'\n })\n };\n};\nvar hystersisOpen = false;\nvar hystersisTimer = null;\nexport function testReset() {\n hystersisOpen = false;\n clearTimeout(hystersisTimer);\n}\nvar Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(props, ref) {\n var _props$arrow = props.arrow,\n arrow = _props$arrow === void 0 ? false : _props$arrow,\n children = props.children,\n classes = props.classes,\n _props$disableFocusLi = props.disableFocusListener,\n disableFocusListener = _props$disableFocusLi === void 0 ? false : _props$disableFocusLi,\n _props$disableHoverLi = props.disableHoverListener,\n disableHoverListener = _props$disableHoverLi === void 0 ? false : _props$disableHoverLi,\n _props$disableTouchLi = props.disableTouchListener,\n disableTouchListener = _props$disableTouchLi === void 0 ? false : _props$disableTouchLi,\n _props$enterDelay = props.enterDelay,\n enterDelay = _props$enterDelay === void 0 ? 100 : _props$enterDelay,\n _props$enterNextDelay = props.enterNextDelay,\n enterNextDelay = _props$enterNextDelay === void 0 ? 0 : _props$enterNextDelay,\n _props$enterTouchDela = props.enterTouchDelay,\n enterTouchDelay = _props$enterTouchDela === void 0 ? 700 : _props$enterTouchDela,\n idProp = props.id,\n _props$interactive = props.interactive,\n interactive = _props$interactive === void 0 ? false : _props$interactive,\n _props$leaveDelay = props.leaveDelay,\n leaveDelay = _props$leaveDelay === void 0 ? 0 : _props$leaveDelay,\n _props$leaveTouchDela = props.leaveTouchDelay,\n leaveTouchDelay = _props$leaveTouchDela === void 0 ? 1500 : _props$leaveTouchDela,\n onClose = props.onClose,\n onOpen = props.onOpen,\n openProp = props.open,\n _props$placement = props.placement,\n placement = _props$placement === void 0 ? 'bottom' : _props$placement,\n _props$PopperComponen = props.PopperComponent,\n PopperComponent = _props$PopperComponen === void 0 ? Popper : _props$PopperComponen,\n PopperProps = props.PopperProps,\n title = props.title,\n _props$TransitionComp = props.TransitionComponent,\n TransitionComponent = _props$TransitionComp === void 0 ? Grow : _props$TransitionComp,\n TransitionProps = props.TransitionProps,\n other = _objectWithoutProperties(props, [\"arrow\", \"children\", \"classes\", \"disableFocusListener\", \"disableHoverListener\", \"disableTouchListener\", \"enterDelay\", \"enterNextDelay\", \"enterTouchDelay\", \"id\", \"interactive\", \"leaveDelay\", \"leaveTouchDelay\", \"onClose\", \"onOpen\", \"open\", \"placement\", \"PopperComponent\", \"PopperProps\", \"title\", \"TransitionComponent\", \"TransitionProps\"]);\n\n var theme = useTheme();\n\n var _React$useState = React.useState(),\n childNode = _React$useState[0],\n setChildNode = _React$useState[1];\n\n var _React$useState2 = React.useState(null),\n arrowRef = _React$useState2[0],\n setArrowRef = _React$useState2[1];\n\n var ignoreNonTouchEvents = React.useRef(false);\n var closeTimer = React.useRef();\n var enterTimer = React.useRef();\n var leaveTimer = React.useRef();\n var touchTimer = React.useRef();\n\n var _useControlled = useControlled({\n controlled: openProp,\n default: false,\n name: 'Tooltip',\n state: 'open'\n }),\n _useControlled2 = _slicedToArray(_useControlled, 2),\n openState = _useControlled2[0],\n setOpenState = _useControlled2[1];\n\n var open = openState;\n\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n var _React$useRef = React.useRef(openProp !== undefined),\n isControlled = _React$useRef.current; // eslint-disable-next-line react-hooks/rules-of-hooks\n\n\n React.useEffect(function () {\n if (childNode && childNode.disabled && !isControlled && title !== '' && childNode.tagName.toLowerCase() === 'button') {\n console.error(['Material-UI: You are providing a disabled `button` child to the Tooltip component.', 'A disabled element does not fire events.', \"Tooltip needs to listen to the child element's events to display the title.\", '', 'Add a simple wrapper element, such as a `span`.'].join('\\n'));\n }\n }, [title, childNode, isControlled]);\n }\n\n var id = useId(idProp);\n React.useEffect(function () {\n return function () {\n clearTimeout(closeTimer.current);\n clearTimeout(enterTimer.current);\n clearTimeout(leaveTimer.current);\n clearTimeout(touchTimer.current);\n };\n }, []);\n\n var handleOpen = function handleOpen(event) {\n clearTimeout(hystersisTimer);\n hystersisOpen = true; // The mouseover event will trigger for every nested element in the tooltip.\n // We can skip rerendering when the tooltip is already open.\n // We are using the mouseover event instead of the mouseenter event to fix a hide/show issue.\n\n setOpenState(true);\n\n if (onOpen) {\n onOpen(event);\n }\n };\n\n var handleEnter = function handleEnter() {\n var forward = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n return function (event) {\n var childrenProps = children.props;\n\n if (event.type === 'mouseover' && childrenProps.onMouseOver && forward) {\n childrenProps.onMouseOver(event);\n }\n\n if (ignoreNonTouchEvents.current && event.type !== 'touchstart') {\n return;\n } // Remove the title ahead of time.\n // We don't want to wait for the next render commit.\n // We would risk displaying two tooltips at the same time (native + this one).\n\n\n if (childNode) {\n childNode.removeAttribute('title');\n }\n\n clearTimeout(enterTimer.current);\n clearTimeout(leaveTimer.current);\n\n if (enterDelay || hystersisOpen && enterNextDelay) {\n event.persist();\n enterTimer.current = setTimeout(function () {\n handleOpen(event);\n }, hystersisOpen ? enterNextDelay : enterDelay);\n } else {\n handleOpen(event);\n }\n };\n };\n\n var _useIsFocusVisible = useIsFocusVisible(),\n isFocusVisible = _useIsFocusVisible.isFocusVisible,\n onBlurVisible = _useIsFocusVisible.onBlurVisible,\n focusVisibleRef = _useIsFocusVisible.ref;\n\n var _React$useState3 = React.useState(false),\n childIsFocusVisible = _React$useState3[0],\n setChildIsFocusVisible = _React$useState3[1];\n\n var handleBlur = function handleBlur() {\n if (childIsFocusVisible) {\n setChildIsFocusVisible(false);\n onBlurVisible();\n }\n };\n\n var handleFocus = function handleFocus() {\n var forward = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n return function (event) {\n // Workaround for https://github.com/facebook/react/issues/7769\n // The autoFocus of React might trigger the event before the componentDidMount.\n // We need to account for this eventuality.\n if (!childNode) {\n setChildNode(event.currentTarget);\n }\n\n if (isFocusVisible(event)) {\n setChildIsFocusVisible(true);\n handleEnter()(event);\n }\n\n var childrenProps = children.props;\n\n if (childrenProps.onFocus && forward) {\n childrenProps.onFocus(event);\n }\n };\n };\n\n var handleClose = function handleClose(event) {\n clearTimeout(hystersisTimer);\n hystersisTimer = setTimeout(function () {\n hystersisOpen = false;\n }, 800 + leaveDelay);\n setOpenState(false);\n\n if (onClose) {\n onClose(event);\n }\n\n clearTimeout(closeTimer.current);\n closeTimer.current = setTimeout(function () {\n ignoreNonTouchEvents.current = false;\n }, theme.transitions.duration.shortest);\n };\n\n var handleLeave = function handleLeave() {\n var forward = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n return function (event) {\n var childrenProps = children.props;\n\n if (event.type === 'blur') {\n if (childrenProps.onBlur && forward) {\n childrenProps.onBlur(event);\n }\n\n handleBlur();\n }\n\n if (event.type === 'mouseleave' && childrenProps.onMouseLeave && event.currentTarget === childNode) {\n childrenProps.onMouseLeave(event);\n }\n\n clearTimeout(enterTimer.current);\n clearTimeout(leaveTimer.current);\n event.persist();\n leaveTimer.current = setTimeout(function () {\n handleClose(event);\n }, leaveDelay);\n };\n };\n\n var detectTouchStart = function detectTouchStart(event) {\n ignoreNonTouchEvents.current = true;\n var childrenProps = children.props;\n\n if (childrenProps.onTouchStart) {\n childrenProps.onTouchStart(event);\n }\n };\n\n var handleTouchStart = function handleTouchStart(event) {\n detectTouchStart(event);\n clearTimeout(leaveTimer.current);\n clearTimeout(closeTimer.current);\n clearTimeout(touchTimer.current);\n event.persist();\n touchTimer.current = setTimeout(function () {\n handleEnter()(event);\n }, enterTouchDelay);\n };\n\n var handleTouchEnd = function handleTouchEnd(event) {\n if (children.props.onTouchEnd) {\n children.props.onTouchEnd(event);\n }\n\n clearTimeout(touchTimer.current);\n clearTimeout(leaveTimer.current);\n event.persist();\n leaveTimer.current = setTimeout(function () {\n handleClose(event);\n }, leaveTouchDelay);\n };\n\n var handleUseRef = useForkRef(setChildNode, ref);\n var handleFocusRef = useForkRef(focusVisibleRef, handleUseRef); // can be removed once we drop support for non ref forwarding class components\n\n var handleOwnRef = React.useCallback(function (instance) {\n // #StrictMode ready\n setRef(handleFocusRef, ReactDOM.findDOMNode(instance));\n }, [handleFocusRef]);\n var handleRef = useForkRef(children.ref, handleOwnRef); // There is no point in displaying an empty tooltip.\n\n if (title === '') {\n open = false;\n } // For accessibility and SEO concerns, we render the title to the DOM node when\n // the tooltip is hidden. However, we have made a tradeoff when\n // `disableHoverListener` is set. This title logic is disabled.\n // It's allowing us to keep the implementation size minimal.\n // We are open to change the tradeoff.\n\n\n var shouldShowNativeTitle = !open && !disableHoverListener;\n\n var childrenProps = _extends({\n 'aria-describedby': open ? id : null,\n title: shouldShowNativeTitle && typeof title === 'string' ? title : null\n }, other, children.props, {\n className: clsx(other.className, children.props.className),\n onTouchStart: detectTouchStart,\n ref: handleRef\n });\n\n var interactiveWrapperListeners = {};\n\n if (!disableTouchListener) {\n childrenProps.onTouchStart = handleTouchStart;\n childrenProps.onTouchEnd = handleTouchEnd;\n }\n\n if (!disableHoverListener) {\n childrenProps.onMouseOver = handleEnter();\n childrenProps.onMouseLeave = handleLeave();\n\n if (interactive) {\n interactiveWrapperListeners.onMouseOver = handleEnter(false);\n interactiveWrapperListeners.onMouseLeave = handleLeave(false);\n }\n }\n\n if (!disableFocusListener) {\n childrenProps.onFocus = handleFocus();\n childrenProps.onBlur = handleLeave();\n\n if (interactive) {\n interactiveWrapperListeners.onFocus = handleFocus(false);\n interactiveWrapperListeners.onBlur = handleLeave(false);\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (children.props.title) {\n console.error(['Material-UI: You have provided a `title` prop to the child of .', \"Remove this title prop `\".concat(children.props.title, \"` or the Tooltip component.\")].join('\\n'));\n }\n }\n\n var mergedPopperProps = React.useMemo(function () {\n return deepmerge({\n popperOptions: {\n modifiers: {\n arrow: {\n enabled: Boolean(arrowRef),\n element: arrowRef\n }\n }\n }\n }, PopperProps);\n }, [arrowRef, PopperProps]);\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.cloneElement(children, childrenProps), /*#__PURE__*/React.createElement(PopperComponent, _extends({\n className: clsx(classes.popper, interactive && classes.popperInteractive, arrow && classes.popperArrow),\n placement: placement,\n anchorEl: childNode,\n open: childNode ? open : false,\n id: childrenProps['aria-describedby'],\n transition: true\n }, interactiveWrapperListeners, mergedPopperProps), function (_ref) {\n var placementInner = _ref.placement,\n TransitionPropsInner = _ref.TransitionProps;\n return /*#__PURE__*/React.createElement(TransitionComponent, _extends({\n timeout: theme.transitions.duration.shorter\n }, TransitionPropsInner, TransitionProps), /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(classes.tooltip, classes[\"tooltipPlacement\".concat(capitalize(placementInner.split('-')[0]))], ignoreNonTouchEvents.current && classes.touch, arrow && classes.tooltipArrow)\n }, title, arrow ? /*#__PURE__*/React.createElement(\"span\", {\n className: classes.arrow,\n ref: setArrowRef\n }) : null));\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Tooltip.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * If `true`, adds an arrow to the tooltip.\n */\n arrow: PropTypes.bool,\n\n /**\n * Tooltip reference element.\n */\n children: elementAcceptingRef.isRequired,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * Do not respond to focus events.\n */\n disableFocusListener: PropTypes.bool,\n\n /**\n * Do not respond to hover events.\n */\n disableHoverListener: PropTypes.bool,\n\n /**\n * Do not respond to long press touch events.\n */\n disableTouchListener: PropTypes.bool,\n\n /**\n * The number of milliseconds to wait before showing the tooltip.\n * This prop won't impact the enter touch delay (`enterTouchDelay`).\n */\n enterDelay: PropTypes.number,\n\n /**\n * The number of milliseconds to wait before showing the tooltip when one was already recently opened.\n */\n enterNextDelay: PropTypes.number,\n\n /**\n * The number of milliseconds a user must touch the element before showing the tooltip.\n */\n enterTouchDelay: PropTypes.number,\n\n /**\n * This prop is used to help implement the accessibility logic.\n * If you don't provide this prop. It falls back to a randomly generated id.\n */\n id: PropTypes.string,\n\n /**\n * Makes a tooltip interactive, i.e. will not close when the user\n * hovers over the tooltip before the `leaveDelay` is expired.\n */\n interactive: PropTypes.bool,\n\n /**\n * The number of milliseconds to wait before hiding the tooltip.\n * This prop won't impact the leave touch delay (`leaveTouchDelay`).\n */\n leaveDelay: PropTypes.number,\n\n /**\n * The number of milliseconds after the user stops touching an element before hiding the tooltip.\n */\n leaveTouchDelay: PropTypes.number,\n\n /**\n * Callback fired when the component requests to be closed.\n *\n * @param {object} event The event source of the callback.\n */\n onClose: PropTypes.func,\n\n /**\n * Callback fired when the component requests to be open.\n *\n * @param {object} event The event source of the callback.\n */\n onOpen: PropTypes.func,\n\n /**\n * If `true`, the tooltip is shown.\n */\n open: PropTypes.bool,\n\n /**\n * Tooltip placement.\n */\n placement: PropTypes.oneOf(['bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n\n /**\n * The component used for the popper.\n */\n PopperComponent: PropTypes.elementType,\n\n /**\n * Props applied to the [`Popper`](/api/popper/) element.\n */\n PopperProps: PropTypes.object,\n\n /**\n * Tooltip title. Zero-length titles string are never displayed.\n */\n title: PropTypes\n /* @typescript-to-proptypes-ignore */\n .node.isRequired,\n\n /**\n * The component used for the transition.\n * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n */\n TransitionComponent: PropTypes.elementType,\n\n /**\n * Props applied to the [`Transition`](http://reactcommunity.org/react-transition-group/transition#Transition-props) element.\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiTooltip',\n flip: false\n})(Tooltip);","import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport withStyles from '../styles/withStyles';\nimport ButtonBase from '../ButtonBase';\nimport capitalize from '../utils/capitalize';\nimport unsupportedProp from '../utils/unsupportedProp';\nexport var styles = function styles(theme) {\n var _extends2;\n\n return {\n /* Styles applied to the root element. */\n root: _extends({}, theme.typography.button, (_extends2 = {\n maxWidth: 264,\n minWidth: 72,\n position: 'relative',\n boxSizing: 'border-box',\n minHeight: 48,\n flexShrink: 0,\n padding: '6px 12px'\n }, _defineProperty(_extends2, theme.breakpoints.up('sm'), {\n padding: '6px 24px'\n }), _defineProperty(_extends2, \"overflow\", 'hidden'), _defineProperty(_extends2, \"whiteSpace\", 'normal'), _defineProperty(_extends2, \"textAlign\", 'center'), _defineProperty(_extends2, theme.breakpoints.up('sm'), {\n minWidth: 160\n }), _extends2)),\n\n /* Styles applied to the root element if both `icon` and `label` are provided. */\n labelIcon: {\n minHeight: 72,\n paddingTop: 9,\n '& $wrapper > *:first-child': {\n marginBottom: 6\n }\n },\n\n /* Styles applied to the root element if the parent [`Tabs`](/api/tabs/) has `textColor=\"inherit\"`. */\n textColorInherit: {\n color: 'inherit',\n opacity: 0.7,\n '&$selected': {\n opacity: 1\n },\n '&$disabled': {\n opacity: 0.5\n }\n },\n\n /* Styles applied to the root element if the parent [`Tabs`](/api/tabs/) has `textColor=\"primary\"`. */\n textColorPrimary: {\n color: theme.palette.text.secondary,\n '&$selected': {\n color: theme.palette.primary.main\n },\n '&$disabled': {\n color: theme.palette.text.disabled\n }\n },\n\n /* Styles applied to the root element if the parent [`Tabs`](/api/tabs/) has `textColor=\"secondary\"`. */\n textColorSecondary: {\n color: theme.palette.text.secondary,\n '&$selected': {\n color: theme.palette.secondary.main\n },\n '&$disabled': {\n color: theme.palette.text.disabled\n }\n },\n\n /* Pseudo-class applied to the root element if `selected={true}` (controlled by the Tabs component). */\n selected: {},\n\n /* Pseudo-class applied to the root element if `disabled={true}` (controlled by the Tabs component). */\n disabled: {},\n\n /* Styles applied to the root element if `fullWidth={true}` (controlled by the Tabs component). */\n fullWidth: {\n flexShrink: 1,\n flexGrow: 1,\n flexBasis: 0,\n maxWidth: 'none'\n },\n\n /* Styles applied to the root element if `wrapped={true}`. */\n wrapped: {\n fontSize: theme.typography.pxToRem(12),\n lineHeight: 1.5\n },\n\n /* Styles applied to the `icon` and `label`'s wrapper element. */\n wrapper: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: '100%',\n flexDirection: 'column'\n }\n };\n};\nvar Tab = /*#__PURE__*/React.forwardRef(function Tab(props, ref) {\n var classes = props.classes,\n className = props.className,\n _props$disabled = props.disabled,\n disabled = _props$disabled === void 0 ? false : _props$disabled,\n _props$disableFocusRi = props.disableFocusRipple,\n disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi,\n fullWidth = props.fullWidth,\n icon = props.icon,\n indicator = props.indicator,\n label = props.label,\n onChange = props.onChange,\n onClick = props.onClick,\n onFocus = props.onFocus,\n selected = props.selected,\n selectionFollowsFocus = props.selectionFollowsFocus,\n _props$textColor = props.textColor,\n textColor = _props$textColor === void 0 ? 'inherit' : _props$textColor,\n value = props.value,\n _props$wrapped = props.wrapped,\n wrapped = _props$wrapped === void 0 ? false : _props$wrapped,\n other = _objectWithoutProperties(props, [\"classes\", \"className\", \"disabled\", \"disableFocusRipple\", \"fullWidth\", \"icon\", \"indicator\", \"label\", \"onChange\", \"onClick\", \"onFocus\", \"selected\", \"selectionFollowsFocus\", \"textColor\", \"value\", \"wrapped\"]);\n\n var handleClick = function handleClick(event) {\n if (onChange) {\n onChange(event, value);\n }\n\n if (onClick) {\n onClick(event);\n }\n };\n\n var handleFocus = function handleFocus(event) {\n if (selectionFollowsFocus && !selected && onChange) {\n onChange(event, value);\n }\n\n if (onFocus) {\n onFocus(event);\n }\n };\n\n return /*#__PURE__*/React.createElement(ButtonBase, _extends({\n focusRipple: !disableFocusRipple,\n className: clsx(classes.root, classes[\"textColor\".concat(capitalize(textColor))], className, disabled && classes.disabled, selected && classes.selected, label && icon && classes.labelIcon, fullWidth && classes.fullWidth, wrapped && classes.wrapped),\n ref: ref,\n role: \"tab\",\n \"aria-selected\": selected,\n disabled: disabled,\n onClick: handleClick,\n onFocus: handleFocus,\n tabIndex: selected ? 0 : -1\n }, other), /*#__PURE__*/React.createElement(\"span\", {\n className: classes.wrapper\n }, icon, label), indicator);\n});\nprocess.env.NODE_ENV !== \"production\" ? Tab.propTypes = {\n /**\n * This prop isn't supported.\n * Use the `component` prop if you need to change the children structure.\n */\n children: unsupportedProp,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object.isRequired,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * If `true`, the tab will be disabled.\n */\n disabled: PropTypes.bool,\n\n /**\n * If `true`, the keyboard focus ripple will be disabled.\n */\n disableFocusRipple: PropTypes.bool,\n\n /**\n * If `true`, the ripple effect will be disabled.\n */\n disableRipple: PropTypes.bool,\n\n /**\n * @ignore\n */\n fullWidth: PropTypes.bool,\n\n /**\n * The icon element.\n */\n icon: PropTypes.node,\n\n /**\n * @ignore\n * For server-side rendering consideration, we let the selected tab\n * render the indicator.\n */\n indicator: PropTypes.node,\n\n /**\n * The label element.\n */\n label: PropTypes.node,\n\n /**\n * @ignore\n */\n onChange: PropTypes.func,\n\n /**\n * @ignore\n */\n onClick: PropTypes.func,\n\n /**\n * @ignore\n */\n onFocus: PropTypes.func,\n\n /**\n * @ignore\n */\n selected: PropTypes.bool,\n\n /**\n * @ignore\n */\n selectionFollowsFocus: PropTypes.bool,\n\n /**\n * @ignore\n */\n textColor: PropTypes.oneOf(['secondary', 'primary', 'inherit']),\n\n /**\n * You can provide your own value. Otherwise, we fallback to the child position index.\n */\n value: PropTypes.any,\n\n /**\n * Tab labels appear in a single row.\n * They can use a second line if needed.\n */\n wrapped: PropTypes.bool\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiTab'\n})(Tab);","// Source from https://github.com/alitaheri/normalize-scroll-left\nvar cachedType;\n/**\n * Based on the jquery plugin https://github.com/othree/jquery.rtl-scroll-type\n *\n * Types of scrollLeft, assuming scrollWidth=100 and direction is rtl.\n *\n * Type | <- Most Left | Most Right -> | Initial\n * ---------------- | ------------ | ------------- | -------\n * default | 0 | 100 | 100\n * negative (spec*) | -100 | 0 | 0\n * reverse | 100 | 0 | 0\n *\n * Edge 85: default\n * Safari 14: negative\n * Chrome 85: negative\n * Firefox 81: negative\n * IE 11: reverse\n *\n * spec* https://drafts.csswg.org/cssom-view/#dom-window-scroll\n */\n\nexport function detectScrollType() {\n if (cachedType) {\n return cachedType;\n }\n\n var dummy = document.createElement('div');\n var container = document.createElement('div');\n container.style.width = '10px';\n container.style.height = '1px';\n dummy.appendChild(container);\n dummy.dir = 'rtl';\n dummy.style.fontSize = '14px';\n dummy.style.width = '4px';\n dummy.style.height = '1px';\n dummy.style.position = 'absolute';\n dummy.style.top = '-1000px';\n dummy.style.overflow = 'scroll';\n document.body.appendChild(dummy);\n cachedType = 'reverse';\n\n if (dummy.scrollLeft > 0) {\n cachedType = 'default';\n } else {\n dummy.scrollLeft = 1;\n\n if (dummy.scrollLeft === 0) {\n cachedType = 'negative';\n }\n }\n\n document.body.removeChild(dummy);\n return cachedType;\n} // Based on https://stackoverflow.com/a/24394376\n\nexport function getNormalizedScrollLeft(element, direction) {\n var scrollLeft = element.scrollLeft; // Perform the calculations only when direction is rtl to avoid messing up the ltr bahavior\n\n if (direction !== 'rtl') {\n return scrollLeft;\n }\n\n var type = detectScrollType();\n\n switch (type) {\n case 'negative':\n return element.scrollWidth - element.clientWidth + scrollLeft;\n\n case 'reverse':\n return element.scrollWidth - element.clientWidth - scrollLeft;\n\n default:\n return scrollLeft;\n }\n}","function easeInOutSin(time) {\n return (1 + Math.sin(Math.PI * time - Math.PI / 2)) / 2;\n}\n\nexport default function animate(property, element, to) {\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n var cb = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function () {};\n var _options$ease = options.ease,\n ease = _options$ease === void 0 ? easeInOutSin : _options$ease,\n _options$duration = options.duration,\n duration = _options$duration === void 0 ? 300 : _options$duration;\n var start = null;\n var from = element[property];\n var cancelled = false;\n\n var cancel = function cancel() {\n cancelled = true;\n };\n\n var step = function step(timestamp) {\n if (cancelled) {\n cb(new Error('Animation cancelled'));\n return;\n }\n\n if (start === null) {\n start = timestamp;\n }\n\n var time = Math.min(1, (timestamp - start) / duration);\n element[property] = ease(time) * (to - from) + from;\n\n if (time >= 1) {\n requestAnimationFrame(function () {\n cb(null);\n });\n return;\n }\n\n requestAnimationFrame(step);\n };\n\n if (from === to) {\n cb(new Error('Element already at target position'));\n return cancel;\n }\n\n requestAnimationFrame(step);\n return cancel;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport debounce from '../utils/debounce';\nvar styles = {\n width: 99,\n height: 99,\n position: 'absolute',\n top: -9999,\n overflow: 'scroll'\n};\n/**\n * @ignore - internal component.\n * The component originates from https://github.com/STORIS/react-scrollbar-size.\n * It has been moved into the core in order to minimize the bundle size.\n */\n\nexport default function ScrollbarSize(props) {\n var onChange = props.onChange,\n other = _objectWithoutProperties(props, [\"onChange\"]);\n\n var scrollbarHeight = React.useRef();\n var nodeRef = React.useRef(null);\n\n var setMeasurements = function setMeasurements() {\n scrollbarHeight.current = nodeRef.current.offsetHeight - nodeRef.current.clientHeight;\n };\n\n React.useEffect(function () {\n var handleResize = debounce(function () {\n var prevHeight = scrollbarHeight.current;\n setMeasurements();\n\n if (prevHeight !== scrollbarHeight.current) {\n onChange(scrollbarHeight.current);\n }\n });\n window.addEventListener('resize', handleResize);\n return function () {\n handleResize.clear();\n window.removeEventListener('resize', handleResize);\n };\n }, [onChange]);\n React.useEffect(function () {\n setMeasurements();\n onChange(scrollbarHeight.current);\n }, [onChange]);\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n style: styles,\n ref: nodeRef\n }, other));\n}\nprocess.env.NODE_ENV !== \"production\" ? ScrollbarSize.propTypes = {\n onChange: PropTypes.func.isRequired\n} : void 0;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport withStyles from '../styles/withStyles';\nimport capitalize from '../utils/capitalize';\nexport var styles = function styles(theme) {\n return {\n root: {\n position: 'absolute',\n height: 2,\n bottom: 0,\n width: '100%',\n transition: theme.transitions.create()\n },\n colorPrimary: {\n backgroundColor: theme.palette.primary.main\n },\n colorSecondary: {\n backgroundColor: theme.palette.secondary.main\n },\n vertical: {\n height: '100%',\n width: 2,\n right: 0\n }\n };\n};\n/**\n * @ignore - internal component.\n */\n\nvar TabIndicator = /*#__PURE__*/React.forwardRef(function TabIndicator(props, ref) {\n var classes = props.classes,\n className = props.className,\n color = props.color,\n orientation = props.orientation,\n other = _objectWithoutProperties(props, [\"classes\", \"className\", \"color\", \"orientation\"]);\n\n return /*#__PURE__*/React.createElement(\"span\", _extends({\n className: clsx(classes.root, classes[\"color\".concat(capitalize(color))], className, orientation === 'vertical' && classes.vertical),\n ref: ref\n }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? TabIndicator.propTypes = {\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object.isRequired,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * @ignore\n * The color of the tab indicator.\n */\n color: PropTypes.oneOf(['primary', 'secondary']).isRequired,\n\n /**\n * The tabs orientation (layout flow direction).\n */\n orientation: PropTypes.oneOf(['horizontal', 'vertical']).isRequired\n} : void 0;\nexport default withStyles(styles, {\n name: 'PrivateTabIndicator'\n})(TabIndicator);","import * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z\"\n}), 'KeyboardArrowLeft');","import * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n/**\n * @ignore - internal component.\n */\n\nexport default createSvgIcon( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z\"\n}), 'KeyboardArrowRight');","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\n\n/* eslint-disable jsx-a11y/aria-role */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport KeyboardArrowLeft from '../internal/svg-icons/KeyboardArrowLeft';\nimport KeyboardArrowRight from '../internal/svg-icons/KeyboardArrowRight';\nimport withStyles from '../styles/withStyles';\nimport ButtonBase from '../ButtonBase';\nexport var styles = {\n /* Styles applied to the root element. */\n root: {\n width: 40,\n flexShrink: 0,\n opacity: 0.8,\n '&$disabled': {\n opacity: 0\n }\n },\n\n /* Styles applied to the root element if `orientation=\"vertical\"`. */\n vertical: {\n width: '100%',\n height: 40,\n '& svg': {\n transform: 'rotate(90deg)'\n }\n },\n\n /* Pseudo-class applied to the root element if `disabled={true}`. */\n disabled: {}\n};\n\nvar _ref = /*#__PURE__*/React.createElement(KeyboardArrowLeft, {\n fontSize: \"small\"\n});\n\nvar _ref2 = /*#__PURE__*/React.createElement(KeyboardArrowRight, {\n fontSize: \"small\"\n});\n\nvar TabScrollButton = /*#__PURE__*/React.forwardRef(function TabScrollButton(props, ref) {\n var classes = props.classes,\n classNameProp = props.className,\n direction = props.direction,\n orientation = props.orientation,\n disabled = props.disabled,\n other = _objectWithoutProperties(props, [\"classes\", \"className\", \"direction\", \"orientation\", \"disabled\"]);\n\n return /*#__PURE__*/React.createElement(ButtonBase, _extends({\n component: \"div\",\n className: clsx(classes.root, classNameProp, disabled && classes.disabled, orientation === 'vertical' && classes.vertical),\n ref: ref,\n role: null,\n tabIndex: null\n }, other), direction === 'left' ? _ref : _ref2);\n});\nprocess.env.NODE_ENV !== \"production\" ? TabScrollButton.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * Which direction should the button indicate?\n */\n direction: PropTypes.oneOf(['left', 'right']).isRequired,\n\n /**\n * If `true`, the element will be disabled.\n */\n disabled: PropTypes.bool,\n\n /**\n * The tabs orientation (layout flow direction).\n */\n orientation: PropTypes.oneOf(['horizontal', 'vertical']).isRequired\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiTabScrollButton'\n})(TabScrollButton);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { refType } from '@material-ui/utils';\nimport debounce from '../utils/debounce';\nimport ownerWindow from '../utils/ownerWindow';\nimport { getNormalizedScrollLeft, detectScrollType } from '../utils/scrollLeft';\nimport animate from '../internal/animate';\nimport ScrollbarSize from './ScrollbarSize';\nimport withStyles from '../styles/withStyles';\nimport TabIndicator from './TabIndicator';\nimport TabScrollButton from '../TabScrollButton';\nimport useEventCallback from '../utils/useEventCallback';\nimport useTheme from '../styles/useTheme';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n overflow: 'hidden',\n minHeight: 48,\n WebkitOverflowScrolling: 'touch',\n // Add iOS momentum scrolling.\n display: 'flex'\n },\n\n /* Styles applied to the root element if `orientation=\"vertical\"`. */\n vertical: {\n flexDirection: 'column'\n },\n\n /* Styles applied to the flex container element. */\n flexContainer: {\n display: 'flex'\n },\n\n /* Styles applied to the flex container element if `orientation=\"vertical\"`. */\n flexContainerVertical: {\n flexDirection: 'column'\n },\n\n /* Styles applied to the flex container element if `centered={true}` & `!variant=\"scrollable\"`. */\n centered: {\n justifyContent: 'center'\n },\n\n /* Styles applied to the tablist element. */\n scroller: {\n position: 'relative',\n display: 'inline-block',\n flex: '1 1 auto',\n whiteSpace: 'nowrap'\n },\n\n /* Styles applied to the tablist element if `!variant=\"scrollable\"`\b\b\b. */\n fixed: {\n overflowX: 'hidden',\n width: '100%'\n },\n\n /* Styles applied to the tablist element if `variant=\"scrollable\"`. */\n scrollable: {\n overflowX: 'scroll',\n // Hide dimensionless scrollbar on MacOS\n scrollbarWidth: 'none',\n // Firefox\n '&::-webkit-scrollbar': {\n display: 'none' // Safari + Chrome\n\n }\n },\n\n /* Styles applied to the `ScrollButtonComponent` component. */\n scrollButtons: {},\n\n /* Styles applied to the `ScrollButtonComponent` component if `scrollButtons=\"auto\"` or scrollButtons=\"desktop\"`. */\n scrollButtonsDesktop: _defineProperty({}, theme.breakpoints.down('xs'), {\n display: 'none'\n }),\n\n /* Styles applied to the `TabIndicator` component. */\n indicator: {}\n };\n};\nvar Tabs = /*#__PURE__*/React.forwardRef(function Tabs(props, ref) {\n var ariaLabel = props['aria-label'],\n ariaLabelledBy = props['aria-labelledby'],\n action = props.action,\n _props$centered = props.centered,\n centered = _props$centered === void 0 ? false : _props$centered,\n childrenProp = props.children,\n classes = props.classes,\n className = props.className,\n _props$component = props.component,\n Component = _props$component === void 0 ? 'div' : _props$component,\n _props$indicatorColor = props.indicatorColor,\n indicatorColor = _props$indicatorColor === void 0 ? 'secondary' : _props$indicatorColor,\n onChange = props.onChange,\n _props$orientation = props.orientation,\n orientation = _props$orientation === void 0 ? 'horizontal' : _props$orientation,\n _props$ScrollButtonCo = props.ScrollButtonComponent,\n ScrollButtonComponent = _props$ScrollButtonCo === void 0 ? TabScrollButton : _props$ScrollButtonCo,\n _props$scrollButtons = props.scrollButtons,\n scrollButtons = _props$scrollButtons === void 0 ? 'auto' : _props$scrollButtons,\n selectionFollowsFocus = props.selectionFollowsFocus,\n _props$TabIndicatorPr = props.TabIndicatorProps,\n TabIndicatorProps = _props$TabIndicatorPr === void 0 ? {} : _props$TabIndicatorPr,\n TabScrollButtonProps = props.TabScrollButtonProps,\n _props$textColor = props.textColor,\n textColor = _props$textColor === void 0 ? 'inherit' : _props$textColor,\n value = props.value,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'standard' : _props$variant,\n other = _objectWithoutProperties(props, [\"aria-label\", \"aria-labelledby\", \"action\", \"centered\", \"children\", \"classes\", \"className\", \"component\", \"indicatorColor\", \"onChange\", \"orientation\", \"ScrollButtonComponent\", \"scrollButtons\", \"selectionFollowsFocus\", \"TabIndicatorProps\", \"TabScrollButtonProps\", \"textColor\", \"value\", \"variant\"]);\n\n var theme = useTheme();\n var scrollable = variant === 'scrollable';\n var isRtl = theme.direction === 'rtl';\n var vertical = orientation === 'vertical';\n var scrollStart = vertical ? 'scrollTop' : 'scrollLeft';\n var start = vertical ? 'top' : 'left';\n var end = vertical ? 'bottom' : 'right';\n var clientSize = vertical ? 'clientHeight' : 'clientWidth';\n var size = vertical ? 'height' : 'width';\n\n if (process.env.NODE_ENV !== 'production') {\n if (centered && scrollable) {\n console.error('Material-UI: You can not use the `centered={true}` and `variant=\"scrollable\"` properties ' + 'at the same time on a `Tabs` component.');\n }\n }\n\n var _React$useState = React.useState(false),\n mounted = _React$useState[0],\n setMounted = _React$useState[1];\n\n var _React$useState2 = React.useState({}),\n indicatorStyle = _React$useState2[0],\n setIndicatorStyle = _React$useState2[1];\n\n var _React$useState3 = React.useState({\n start: false,\n end: false\n }),\n displayScroll = _React$useState3[0],\n setDisplayScroll = _React$useState3[1];\n\n var _React$useState4 = React.useState({\n overflow: 'hidden',\n marginBottom: null\n }),\n scrollerStyle = _React$useState4[0],\n setScrollerStyle = _React$useState4[1];\n\n var valueToIndex = new Map();\n var tabsRef = React.useRef(null);\n var tabListRef = React.useRef(null);\n\n var getTabsMeta = function getTabsMeta() {\n var tabsNode = tabsRef.current;\n var tabsMeta;\n\n if (tabsNode) {\n var rect = tabsNode.getBoundingClientRect(); // create a new object with ClientRect class props + scrollLeft\n\n tabsMeta = {\n clientWidth: tabsNode.clientWidth,\n scrollLeft: tabsNode.scrollLeft,\n scrollTop: tabsNode.scrollTop,\n scrollLeftNormalized: getNormalizedScrollLeft(tabsNode, theme.direction),\n scrollWidth: tabsNode.scrollWidth,\n top: rect.top,\n bottom: rect.bottom,\n left: rect.left,\n right: rect.right\n };\n }\n\n var tabMeta;\n\n if (tabsNode && value !== false) {\n var _children = tabListRef.current.children;\n\n if (_children.length > 0) {\n var tab = _children[valueToIndex.get(value)];\n\n if (process.env.NODE_ENV !== 'production') {\n if (!tab) {\n console.error([\"Material-UI: The value provided to the Tabs component is invalid.\", \"None of the Tabs' children match with `\".concat(value, \"`.\"), valueToIndex.keys ? \"You can provide one of the following values: \".concat(Array.from(valueToIndex.keys()).join(', '), \".\") : null].join('\\n'));\n }\n }\n\n tabMeta = tab ? tab.getBoundingClientRect() : null;\n }\n }\n\n return {\n tabsMeta: tabsMeta,\n tabMeta: tabMeta\n };\n };\n\n var updateIndicatorState = useEventCallback(function () {\n var _newIndicatorStyle;\n\n var _getTabsMeta = getTabsMeta(),\n tabsMeta = _getTabsMeta.tabsMeta,\n tabMeta = _getTabsMeta.tabMeta;\n\n var startValue = 0;\n\n if (tabMeta && tabsMeta) {\n if (vertical) {\n startValue = tabMeta.top - tabsMeta.top + tabsMeta.scrollTop;\n } else {\n var correction = isRtl ? tabsMeta.scrollLeftNormalized + tabsMeta.clientWidth - tabsMeta.scrollWidth : tabsMeta.scrollLeft;\n startValue = tabMeta.left - tabsMeta.left + correction;\n }\n }\n\n var newIndicatorStyle = (_newIndicatorStyle = {}, _defineProperty(_newIndicatorStyle, start, startValue), _defineProperty(_newIndicatorStyle, size, tabMeta ? tabMeta[size] : 0), _newIndicatorStyle);\n\n if (isNaN(indicatorStyle[start]) || isNaN(indicatorStyle[size])) {\n setIndicatorStyle(newIndicatorStyle);\n } else {\n var dStart = Math.abs(indicatorStyle[start] - newIndicatorStyle[start]);\n var dSize = Math.abs(indicatorStyle[size] - newIndicatorStyle[size]);\n\n if (dStart >= 1 || dSize >= 1) {\n setIndicatorStyle(newIndicatorStyle);\n }\n }\n });\n\n var scroll = function scroll(scrollValue) {\n animate(scrollStart, tabsRef.current, scrollValue);\n };\n\n var moveTabsScroll = function moveTabsScroll(delta) {\n var scrollValue = tabsRef.current[scrollStart];\n\n if (vertical) {\n scrollValue += delta;\n } else {\n scrollValue += delta * (isRtl ? -1 : 1); // Fix for Edge\n\n scrollValue *= isRtl && detectScrollType() === 'reverse' ? -1 : 1;\n }\n\n scroll(scrollValue);\n };\n\n var handleStartScrollClick = function handleStartScrollClick() {\n moveTabsScroll(-tabsRef.current[clientSize]);\n };\n\n var handleEndScrollClick = function handleEndScrollClick() {\n moveTabsScroll(tabsRef.current[clientSize]);\n };\n\n var handleScrollbarSizeChange = React.useCallback(function (scrollbarHeight) {\n setScrollerStyle({\n overflow: null,\n marginBottom: -scrollbarHeight\n });\n }, []);\n\n var getConditionalElements = function getConditionalElements() {\n var conditionalElements = {};\n conditionalElements.scrollbarSizeListener = scrollable ? /*#__PURE__*/React.createElement(ScrollbarSize, {\n className: classes.scrollable,\n onChange: handleScrollbarSizeChange\n }) : null;\n var scrollButtonsActive = displayScroll.start || displayScroll.end;\n var showScrollButtons = scrollable && (scrollButtons === 'auto' && scrollButtonsActive || scrollButtons === 'desktop' || scrollButtons === 'on');\n conditionalElements.scrollButtonStart = showScrollButtons ? /*#__PURE__*/React.createElement(ScrollButtonComponent, _extends({\n orientation: orientation,\n direction: isRtl ? 'right' : 'left',\n onClick: handleStartScrollClick,\n disabled: !displayScroll.start,\n className: clsx(classes.scrollButtons, scrollButtons !== 'on' && classes.scrollButtonsDesktop)\n }, TabScrollButtonProps)) : null;\n conditionalElements.scrollButtonEnd = showScrollButtons ? /*#__PURE__*/React.createElement(ScrollButtonComponent, _extends({\n orientation: orientation,\n direction: isRtl ? 'left' : 'right',\n onClick: handleEndScrollClick,\n disabled: !displayScroll.end,\n className: clsx(classes.scrollButtons, scrollButtons !== 'on' && classes.scrollButtonsDesktop)\n }, TabScrollButtonProps)) : null;\n return conditionalElements;\n };\n\n var scrollSelectedIntoView = useEventCallback(function () {\n var _getTabsMeta2 = getTabsMeta(),\n tabsMeta = _getTabsMeta2.tabsMeta,\n tabMeta = _getTabsMeta2.tabMeta;\n\n if (!tabMeta || !tabsMeta) {\n return;\n }\n\n if (tabMeta[start] < tabsMeta[start]) {\n // left side of button is out of view\n var nextScrollStart = tabsMeta[scrollStart] + (tabMeta[start] - tabsMeta[start]);\n scroll(nextScrollStart);\n } else if (tabMeta[end] > tabsMeta[end]) {\n // right side of button is out of view\n var _nextScrollStart = tabsMeta[scrollStart] + (tabMeta[end] - tabsMeta[end]);\n\n scroll(_nextScrollStart);\n }\n });\n var updateScrollButtonState = useEventCallback(function () {\n if (scrollable && scrollButtons !== 'off') {\n var _tabsRef$current = tabsRef.current,\n scrollTop = _tabsRef$current.scrollTop,\n scrollHeight = _tabsRef$current.scrollHeight,\n clientHeight = _tabsRef$current.clientHeight,\n scrollWidth = _tabsRef$current.scrollWidth,\n clientWidth = _tabsRef$current.clientWidth;\n var showStartScroll;\n var showEndScroll;\n\n if (vertical) {\n showStartScroll = scrollTop > 1;\n showEndScroll = scrollTop < scrollHeight - clientHeight - 1;\n } else {\n var scrollLeft = getNormalizedScrollLeft(tabsRef.current, theme.direction); // use 1 for the potential rounding error with browser zooms.\n\n showStartScroll = isRtl ? scrollLeft < scrollWidth - clientWidth - 1 : scrollLeft > 1;\n showEndScroll = !isRtl ? scrollLeft < scrollWidth - clientWidth - 1 : scrollLeft > 1;\n }\n\n if (showStartScroll !== displayScroll.start || showEndScroll !== displayScroll.end) {\n setDisplayScroll({\n start: showStartScroll,\n end: showEndScroll\n });\n }\n }\n });\n React.useEffect(function () {\n var handleResize = debounce(function () {\n updateIndicatorState();\n updateScrollButtonState();\n });\n var win = ownerWindow(tabsRef.current);\n win.addEventListener('resize', handleResize);\n return function () {\n handleResize.clear();\n win.removeEventListener('resize', handleResize);\n };\n }, [updateIndicatorState, updateScrollButtonState]);\n var handleTabsScroll = React.useCallback(debounce(function () {\n updateScrollButtonState();\n }));\n React.useEffect(function () {\n return function () {\n handleTabsScroll.clear();\n };\n }, [handleTabsScroll]);\n React.useEffect(function () {\n setMounted(true);\n }, []);\n React.useEffect(function () {\n updateIndicatorState();\n updateScrollButtonState();\n });\n React.useEffect(function () {\n scrollSelectedIntoView();\n }, [scrollSelectedIntoView, indicatorStyle]);\n React.useImperativeHandle(action, function () {\n return {\n updateIndicator: updateIndicatorState,\n updateScrollButtons: updateScrollButtonState\n };\n }, [updateIndicatorState, updateScrollButtonState]);\n var indicator = /*#__PURE__*/React.createElement(TabIndicator, _extends({\n className: classes.indicator,\n orientation: orientation,\n color: indicatorColor\n }, TabIndicatorProps, {\n style: _extends({}, indicatorStyle, TabIndicatorProps.style)\n }));\n var childIndex = 0;\n var children = React.Children.map(childrenProp, function (child) {\n if (! /*#__PURE__*/React.isValidElement(child)) {\n return null;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (isFragment(child)) {\n console.error([\"Material-UI: The Tabs component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n }\n }\n\n var childValue = child.props.value === undefined ? childIndex : child.props.value;\n valueToIndex.set(childValue, childIndex);\n var selected = childValue === value;\n childIndex += 1;\n return /*#__PURE__*/React.cloneElement(child, {\n fullWidth: variant === 'fullWidth',\n indicator: selected && !mounted && indicator,\n selected: selected,\n selectionFollowsFocus: selectionFollowsFocus,\n onChange: onChange,\n textColor: textColor,\n value: childValue\n });\n });\n\n var handleKeyDown = function handleKeyDown(event) {\n var target = event.target; // Keyboard navigation assumes that [role=\"tab\"] are siblings\n // though we might warn in the future about nested, interactive elements\n // as a a11y violation\n\n var role = target.getAttribute('role');\n\n if (role !== 'tab') {\n return;\n }\n\n var newFocusTarget = null;\n var previousItemKey = orientation !== \"vertical\" ? 'ArrowLeft' : 'ArrowUp';\n var nextItemKey = orientation !== \"vertical\" ? 'ArrowRight' : 'ArrowDown';\n\n if (orientation !== \"vertical\" && theme.direction === 'rtl') {\n // swap previousItemKey with nextItemKey\n previousItemKey = 'ArrowRight';\n nextItemKey = 'ArrowLeft';\n }\n\n switch (event.key) {\n case previousItemKey:\n newFocusTarget = target.previousElementSibling || tabListRef.current.lastChild;\n break;\n\n case nextItemKey:\n newFocusTarget = target.nextElementSibling || tabListRef.current.firstChild;\n break;\n\n case 'Home':\n newFocusTarget = tabListRef.current.firstChild;\n break;\n\n case 'End':\n newFocusTarget = tabListRef.current.lastChild;\n break;\n\n default:\n break;\n }\n\n if (newFocusTarget !== null) {\n newFocusTarget.focus();\n event.preventDefault();\n }\n };\n\n var conditionalElements = getConditionalElements();\n return /*#__PURE__*/React.createElement(Component, _extends({\n className: clsx(classes.root, className, vertical && classes.vertical),\n ref: ref\n }, other), conditionalElements.scrollButtonStart, conditionalElements.scrollbarSizeListener, /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(classes.scroller, scrollable ? classes.scrollable : classes.fixed),\n style: scrollerStyle,\n ref: tabsRef,\n onScroll: handleTabsScroll\n }, /*#__PURE__*/React.createElement(\"div\", {\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n className: clsx(classes.flexContainer, vertical && classes.flexContainerVertical, centered && !scrollable && classes.centered),\n onKeyDown: handleKeyDown,\n ref: tabListRef,\n role: \"tablist\"\n }, children), mounted && indicator), conditionalElements.scrollButtonEnd);\n});\nprocess.env.NODE_ENV !== \"production\" ? Tabs.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * Callback fired when the component mounts.\n * This is useful when you want to trigger an action programmatically.\n * It supports two actions: `updateIndicator()` and `updateScrollButtons()`\n *\n * @param {object} actions This object contains all possible actions\n * that can be triggered programmatically.\n */\n action: refType,\n\n /**\n * The label for the Tabs as a string.\n */\n 'aria-label': PropTypes.string,\n\n /**\n * An id or list of ids separated by a space that label the Tabs.\n */\n 'aria-labelledby': PropTypes.string,\n\n /**\n * If `true`, the tabs will be centered.\n * This property is intended for large views.\n */\n centered: PropTypes.bool,\n\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * Determines the color of the indicator.\n */\n indicatorColor: PropTypes.oneOf(['primary', 'secondary']),\n\n /**\n * Callback fired when the value changes.\n *\n * @param {object} event The event source of the callback\n * @param {any} value We default to the index of the child (number)\n */\n onChange: PropTypes.func,\n\n /**\n * The tabs orientation (layout flow direction).\n */\n orientation: PropTypes.oneOf(['horizontal', 'vertical']),\n\n /**\n * The component used to render the scroll buttons.\n */\n ScrollButtonComponent: PropTypes.elementType,\n\n /**\n * Determine behavior of scroll buttons when tabs are set to scroll:\n *\n * - `auto` will only present them when not all the items are visible.\n * - `desktop` will only present them on medium and larger viewports.\n * - `on` will always present them.\n * - `off` will never present them.\n */\n scrollButtons: PropTypes.oneOf(['auto', 'desktop', 'off', 'on']),\n\n /**\n * If `true` the selected tab changes on focus. Otherwise it only\n * changes on activation.\n */\n selectionFollowsFocus: PropTypes.bool,\n\n /**\n * Props applied to the tab indicator element.\n */\n TabIndicatorProps: PropTypes.object,\n\n /**\n * Props applied to the [`TabScrollButton`](/api/tab-scroll-button/) element.\n */\n TabScrollButtonProps: PropTypes.object,\n\n /**\n * Determines the color of the `Tab`.\n */\n textColor: PropTypes.oneOf(['inherit', 'primary', 'secondary']),\n\n /**\n * The value of the currently selected `Tab`.\n * If you don't want any selected `Tab`, you can set this property to `false`.\n */\n value: PropTypes.any,\n\n /**\n * Determines additional display behavior of the tabs:\n *\n * - `scrollable` will invoke scrolling properties and allow for horizontally\n * scrolling (or swiping) of the tab bar.\n * -`fullWidth` will make the tabs grow to use all the available space,\n * which should be used for small views, like on mobile.\n * - `standard` will render the default state.\n */\n variant: PropTypes.oneOf(['fullWidth', 'scrollable', 'standard'])\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiTabs'\n})(Tabs);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport * as ReactDOM from 'react-dom';\nimport { chainPropTypes, elementTypeAcceptingRef, refType, HTMLElementType } from '@material-ui/utils';\nimport debounce from '../utils/debounce';\nimport clsx from 'clsx';\nimport ownerDocument from '../utils/ownerDocument';\nimport ownerWindow from '../utils/ownerWindow';\nimport createChainedFunction from '../utils/createChainedFunction';\nimport deprecatedPropType from '../utils/deprecatedPropType';\nimport withStyles from '../styles/withStyles';\nimport Modal from '../Modal';\nimport Grow from '../Grow';\nimport Paper from '../Paper';\nexport function getOffsetTop(rect, vertical) {\n var offset = 0;\n\n if (typeof vertical === 'number') {\n offset = vertical;\n } else if (vertical === 'center') {\n offset = rect.height / 2;\n } else if (vertical === 'bottom') {\n offset = rect.height;\n }\n\n return offset;\n}\nexport function getOffsetLeft(rect, horizontal) {\n var offset = 0;\n\n if (typeof horizontal === 'number') {\n offset = horizontal;\n } else if (horizontal === 'center') {\n offset = rect.width / 2;\n } else if (horizontal === 'right') {\n offset = rect.width;\n }\n\n return offset;\n}\n\nfunction getTransformOriginValue(transformOrigin) {\n return [transformOrigin.horizontal, transformOrigin.vertical].map(function (n) {\n return typeof n === 'number' ? \"\".concat(n, \"px\") : n;\n }).join(' ');\n} // Sum the scrollTop between two elements.\n\n\nfunction getScrollParent(parent, child) {\n var element = child;\n var scrollTop = 0;\n\n while (element && element !== parent) {\n element = element.parentElement;\n scrollTop += element.scrollTop;\n }\n\n return scrollTop;\n}\n\nfunction getAnchorEl(anchorEl) {\n return typeof anchorEl === 'function' ? anchorEl() : anchorEl;\n}\n\nexport var styles = {\n /* Styles applied to the root element. */\n root: {},\n\n /* Styles applied to the `Paper` component. */\n paper: {\n position: 'absolute',\n overflowY: 'auto',\n overflowX: 'hidden',\n // So we see the popover when it's empty.\n // It's most likely on issue on userland.\n minWidth: 16,\n minHeight: 16,\n maxWidth: 'calc(100% - 32px)',\n maxHeight: 'calc(100% - 32px)',\n // We disable the focus ring for mouse, touch and keyboard users.\n outline: 0\n }\n};\nvar Popover = /*#__PURE__*/React.forwardRef(function Popover(props, ref) {\n var action = props.action,\n anchorEl = props.anchorEl,\n _props$anchorOrigin = props.anchorOrigin,\n anchorOrigin = _props$anchorOrigin === void 0 ? {\n vertical: 'top',\n horizontal: 'left'\n } : _props$anchorOrigin,\n anchorPosition = props.anchorPosition,\n _props$anchorReferenc = props.anchorReference,\n anchorReference = _props$anchorReferenc === void 0 ? 'anchorEl' : _props$anchorReferenc,\n children = props.children,\n classes = props.classes,\n className = props.className,\n containerProp = props.container,\n _props$elevation = props.elevation,\n elevation = _props$elevation === void 0 ? 8 : _props$elevation,\n getContentAnchorEl = props.getContentAnchorEl,\n _props$marginThreshol = props.marginThreshold,\n marginThreshold = _props$marginThreshol === void 0 ? 16 : _props$marginThreshol,\n onEnter = props.onEnter,\n onEntered = props.onEntered,\n onEntering = props.onEntering,\n onExit = props.onExit,\n onExited = props.onExited,\n onExiting = props.onExiting,\n open = props.open,\n _props$PaperProps = props.PaperProps,\n PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps,\n _props$transformOrigi = props.transformOrigin,\n transformOrigin = _props$transformOrigi === void 0 ? {\n vertical: 'top',\n horizontal: 'left'\n } : _props$transformOrigi,\n _props$TransitionComp = props.TransitionComponent,\n TransitionComponent = _props$TransitionComp === void 0 ? Grow : _props$TransitionComp,\n _props$transitionDura = props.transitionDuration,\n transitionDurationProp = _props$transitionDura === void 0 ? 'auto' : _props$transitionDura,\n _props$TransitionProp = props.TransitionProps,\n TransitionProps = _props$TransitionProp === void 0 ? {} : _props$TransitionProp,\n other = _objectWithoutProperties(props, [\"action\", \"anchorEl\", \"anchorOrigin\", \"anchorPosition\", \"anchorReference\", \"children\", \"classes\", \"className\", \"container\", \"elevation\", \"getContentAnchorEl\", \"marginThreshold\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"open\", \"PaperProps\", \"transformOrigin\", \"TransitionComponent\", \"transitionDuration\", \"TransitionProps\"]);\n\n var paperRef = React.useRef(); // Returns the top/left offset of the position\n // to attach to on the anchor element (or body if none is provided)\n\n var getAnchorOffset = React.useCallback(function (contentAnchorOffset) {\n if (anchorReference === 'anchorPosition') {\n if (process.env.NODE_ENV !== 'production') {\n if (!anchorPosition) {\n console.error('Material-UI: You need to provide a `anchorPosition` prop when using ' + '.');\n }\n }\n\n return anchorPosition;\n }\n\n var resolvedAnchorEl = getAnchorEl(anchorEl); // If an anchor element wasn't provided, just use the parent body element of this Popover\n\n var anchorElement = resolvedAnchorEl && resolvedAnchorEl.nodeType === 1 ? resolvedAnchorEl : ownerDocument(paperRef.current).body;\n var anchorRect = anchorElement.getBoundingClientRect();\n\n if (process.env.NODE_ENV !== 'production') {\n var box = anchorElement.getBoundingClientRect();\n\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n console.warn(['Material-UI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n }\n\n var anchorVertical = contentAnchorOffset === 0 ? anchorOrigin.vertical : 'center';\n return {\n top: anchorRect.top + getOffsetTop(anchorRect, anchorVertical),\n left: anchorRect.left + getOffsetLeft(anchorRect, anchorOrigin.horizontal)\n };\n }, [anchorEl, anchorOrigin.horizontal, anchorOrigin.vertical, anchorPosition, anchorReference]); // Returns the vertical offset of inner content to anchor the transform on if provided\n\n var getContentAnchorOffset = React.useCallback(function (element) {\n var contentAnchorOffset = 0;\n\n if (getContentAnchorEl && anchorReference === 'anchorEl') {\n var contentAnchorEl = getContentAnchorEl(element);\n\n if (contentAnchorEl && element.contains(contentAnchorEl)) {\n var scrollTop = getScrollParent(element, contentAnchorEl);\n contentAnchorOffset = contentAnchorEl.offsetTop + contentAnchorEl.clientHeight / 2 - scrollTop || 0;\n } // != the default value\n\n\n if (process.env.NODE_ENV !== 'production') {\n if (anchorOrigin.vertical !== 'top') {\n console.error(['Material-UI: You can not change the default `anchorOrigin.vertical` value ', 'when also providing the `getContentAnchorEl` prop to the popover component.', 'Only use one of the two props.', 'Set `getContentAnchorEl` to `null | undefined`' + ' or leave `anchorOrigin.vertical` unchanged.'].join('\\n'));\n }\n }\n }\n\n return contentAnchorOffset;\n }, [anchorOrigin.vertical, anchorReference, getContentAnchorEl]); // Return the base transform origin using the element\n // and taking the content anchor offset into account if in use\n\n var getTransformOrigin = React.useCallback(function (elemRect) {\n var contentAnchorOffset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n return {\n vertical: getOffsetTop(elemRect, transformOrigin.vertical) + contentAnchorOffset,\n horizontal: getOffsetLeft(elemRect, transformOrigin.horizontal)\n };\n }, [transformOrigin.horizontal, transformOrigin.vertical]);\n var getPositioningStyle = React.useCallback(function (element) {\n // Check if the parent has requested anchoring on an inner content node\n var contentAnchorOffset = getContentAnchorOffset(element);\n var elemRect = {\n width: element.offsetWidth,\n height: element.offsetHeight\n }; // Get the transform origin point on the element itself\n\n var elemTransformOrigin = getTransformOrigin(elemRect, contentAnchorOffset);\n\n if (anchorReference === 'none') {\n return {\n top: null,\n left: null,\n transformOrigin: getTransformOriginValue(elemTransformOrigin)\n };\n } // Get the offset of of the anchoring element\n\n\n var anchorOffset = getAnchorOffset(contentAnchorOffset); // Calculate element positioning\n\n var top = anchorOffset.top - elemTransformOrigin.vertical;\n var left = anchorOffset.left - elemTransformOrigin.horizontal;\n var bottom = top + elemRect.height;\n var right = left + elemRect.width; // Use the parent window of the anchorEl if provided\n\n var containerWindow = ownerWindow(getAnchorEl(anchorEl)); // Window thresholds taking required margin into account\n\n var heightThreshold = containerWindow.innerHeight - marginThreshold;\n var widthThreshold = containerWindow.innerWidth - marginThreshold; // Check if the vertical axis needs shifting\n\n if (top < marginThreshold) {\n var diff = top - marginThreshold;\n top -= diff;\n elemTransformOrigin.vertical += diff;\n } else if (bottom > heightThreshold) {\n var _diff = bottom - heightThreshold;\n\n top -= _diff;\n elemTransformOrigin.vertical += _diff;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (elemRect.height > heightThreshold && elemRect.height && heightThreshold) {\n console.error(['Material-UI: The popover component is too tall.', \"Some part of it can not be seen on the screen (\".concat(elemRect.height - heightThreshold, \"px).\"), 'Please consider adding a `max-height` to improve the user-experience.'].join('\\n'));\n }\n } // Check if the horizontal axis needs shifting\n\n\n if (left < marginThreshold) {\n var _diff2 = left - marginThreshold;\n\n left -= _diff2;\n elemTransformOrigin.horizontal += _diff2;\n } else if (right > widthThreshold) {\n var _diff3 = right - widthThreshold;\n\n left -= _diff3;\n elemTransformOrigin.horizontal += _diff3;\n }\n\n return {\n top: \"\".concat(Math.round(top), \"px\"),\n left: \"\".concat(Math.round(left), \"px\"),\n transformOrigin: getTransformOriginValue(elemTransformOrigin)\n };\n }, [anchorEl, anchorReference, getAnchorOffset, getContentAnchorOffset, getTransformOrigin, marginThreshold]);\n var setPositioningStyles = React.useCallback(function () {\n var element = paperRef.current;\n\n if (!element) {\n return;\n }\n\n var positioning = getPositioningStyle(element);\n\n if (positioning.top !== null) {\n element.style.top = positioning.top;\n }\n\n if (positioning.left !== null) {\n element.style.left = positioning.left;\n }\n\n element.style.transformOrigin = positioning.transformOrigin;\n }, [getPositioningStyle]);\n\n var handleEntering = function handleEntering(element, isAppearing) {\n if (onEntering) {\n onEntering(element, isAppearing);\n }\n\n setPositioningStyles();\n };\n\n var handlePaperRef = React.useCallback(function (instance) {\n // #StrictMode ready\n paperRef.current = ReactDOM.findDOMNode(instance);\n }, []);\n React.useEffect(function () {\n if (open) {\n setPositioningStyles();\n }\n });\n React.useImperativeHandle(action, function () {\n return open ? {\n updatePosition: function updatePosition() {\n setPositioningStyles();\n }\n } : null;\n }, [open, setPositioningStyles]);\n React.useEffect(function () {\n if (!open) {\n return undefined;\n }\n\n var handleResize = debounce(function () {\n setPositioningStyles();\n });\n window.addEventListener('resize', handleResize);\n return function () {\n handleResize.clear();\n window.removeEventListener('resize', handleResize);\n };\n }, [open, setPositioningStyles]);\n var transitionDuration = transitionDurationProp;\n\n if (transitionDurationProp === 'auto' && !TransitionComponent.muiSupportAuto) {\n transitionDuration = undefined;\n } // If the container prop is provided, use that\n // If the anchorEl prop is provided, use its parent body element as the container\n // If neither are provided let the Modal take care of choosing the container\n\n\n var container = containerProp || (anchorEl ? ownerDocument(getAnchorEl(anchorEl)).body : undefined);\n return /*#__PURE__*/React.createElement(Modal, _extends({\n container: container,\n open: open,\n ref: ref,\n BackdropProps: {\n invisible: true\n },\n className: clsx(classes.root, className)\n }, other), /*#__PURE__*/React.createElement(TransitionComponent, _extends({\n appear: true,\n in: open,\n onEnter: onEnter,\n onEntered: onEntered,\n onExit: onExit,\n onExited: onExited,\n onExiting: onExiting,\n timeout: transitionDuration\n }, TransitionProps, {\n onEntering: createChainedFunction(handleEntering, TransitionProps.onEntering)\n }), /*#__PURE__*/React.createElement(Paper, _extends({\n elevation: elevation,\n ref: handlePaperRef\n }, PaperProps, {\n className: clsx(classes.paper, PaperProps.className)\n }), children)));\n});\nprocess.env.NODE_ENV !== \"production\" ? Popover.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * A ref for imperative actions.\n * It currently only supports updatePosition() action.\n */\n action: refType,\n\n /**\n * A HTML element, or a function that returns it.\n * It's used to set the position of the popover.\n */\n anchorEl: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.func]), function (props) {\n if (props.open && (!props.anchorReference || props.anchorReference === 'anchorEl')) {\n var resolvedAnchorEl = getAnchorEl(props.anchorEl);\n\n if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) {\n var box = resolvedAnchorEl.getBoundingClientRect();\n\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n return new Error(['Material-UI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n } else {\n return new Error(['Material-UI: The `anchorEl` prop provided to the component is invalid.', \"It should be an Element instance but it's `\".concat(resolvedAnchorEl, \"` instead.\")].join('\\n'));\n }\n }\n\n return null;\n }),\n\n /**\n * This is the point on the anchor where the popover's\n * `anchorEl` will attach to. This is not used when the\n * anchorReference is 'anchorPosition'.\n *\n * Options:\n * vertical: [top, center, bottom];\n * horizontal: [left, center, right].\n */\n anchorOrigin: PropTypes.shape({\n horizontal: PropTypes.oneOfType([PropTypes.oneOf(['center', 'left', 'right']), PropTypes.number]).isRequired,\n vertical: PropTypes.oneOfType([PropTypes.oneOf(['bottom', 'center', 'top']), PropTypes.number]).isRequired\n }),\n\n /**\n * This is the position that may be used\n * to set the position of the popover.\n * The coordinates are relative to\n * the application's client area.\n */\n anchorPosition: PropTypes.shape({\n left: PropTypes.number.isRequired,\n top: PropTypes.number.isRequired\n }),\n\n /**\n * This determines which anchor prop to refer to to set\n * the position of the popover.\n */\n anchorReference: PropTypes.oneOf(['anchorEl', 'anchorPosition', 'none']),\n\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * A HTML element, component instance, or function that returns either.\n * The `container` will passed to the Modal component.\n *\n * By default, it uses the body of the anchorEl's top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes\n /* @typescript-to-proptypes-ignore */\n .oneOfType([HTMLElementType, PropTypes.instanceOf(React.Component), PropTypes.func]),\n\n /**\n * The elevation of the popover.\n */\n elevation: PropTypes.number,\n\n /**\n * This function is called in order to retrieve the content anchor element.\n * It's the opposite of the `anchorEl` prop.\n * The content anchor element should be an element inside the popover.\n * It's used to correctly scroll and set the position of the popover.\n * The positioning strategy tries to make the content anchor element just above the\n * anchor element.\n */\n getContentAnchorEl: PropTypes.func,\n\n /**\n * Specifies how close to the edge of the window the popover can appear.\n */\n marginThreshold: PropTypes.number,\n\n /**\n * Callback fired when the component requests to be closed.\n */\n onClose: PropTypes.func,\n\n /**\n * Callback fired before the component is entering.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onEnter: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * Callback fired when the component has entered.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onEntered: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * Callback fired when the component is entering.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onEntering: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * Callback fired before the component is exiting.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onExit: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * Callback fired when the component has exited.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onExited: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * Callback fired when the component is exiting.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onExiting: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * If `true`, the popover is visible.\n */\n open: PropTypes.bool.isRequired,\n\n /**\n * Props applied to the [`Paper`](/api/paper/) element.\n */\n PaperProps: PropTypes\n /* @typescript-to-proptypes-ignore */\n .shape({\n component: elementTypeAcceptingRef\n }),\n\n /**\n * This is the point on the popover which\n * will attach to the anchor's origin.\n *\n * Options:\n * vertical: [top, center, bottom, x(px)];\n * horizontal: [left, center, right, x(px)].\n */\n transformOrigin: PropTypes.shape({\n horizontal: PropTypes.oneOfType([PropTypes.oneOf(['center', 'left', 'right']), PropTypes.number]).isRequired,\n vertical: PropTypes.oneOfType([PropTypes.oneOf(['bottom', 'center', 'top']), PropTypes.number]).isRequired\n }),\n\n /**\n * The component used for the transition.\n * [Follow this guide](/components/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n */\n TransitionComponent: PropTypes.elementType,\n\n /**\n * Set to 'auto' to automatically calculate transition time based on height.\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n\n /**\n * Props applied to the [`Transition`](http://reactcommunity.org/react-transition-group/transition#Transition-props) element.\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiPopover'\n})(Popover);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport * as ReactDOM from 'react-dom';\nimport ownerDocument from '../utils/ownerDocument';\nimport List from '../List';\nimport getScrollbarSize from '../utils/getScrollbarSize';\nimport useForkRef from '../utils/useForkRef';\n\nfunction nextItem(list, item, disableListWrap) {\n if (list === item) {\n return list.firstChild;\n }\n\n if (item && item.nextElementSibling) {\n return item.nextElementSibling;\n }\n\n return disableListWrap ? null : list.firstChild;\n}\n\nfunction previousItem(list, item, disableListWrap) {\n if (list === item) {\n return disableListWrap ? list.firstChild : list.lastChild;\n }\n\n if (item && item.previousElementSibling) {\n return item.previousElementSibling;\n }\n\n return disableListWrap ? null : list.lastChild;\n}\n\nfunction textCriteriaMatches(nextFocus, textCriteria) {\n if (textCriteria === undefined) {\n return true;\n }\n\n var text = nextFocus.innerText;\n\n if (text === undefined) {\n // jsdom doesn't support innerText\n text = nextFocus.textContent;\n }\n\n text = text.trim().toLowerCase();\n\n if (text.length === 0) {\n return false;\n }\n\n if (textCriteria.repeating) {\n return text[0] === textCriteria.keys[0];\n }\n\n return text.indexOf(textCriteria.keys.join('')) === 0;\n}\n\nfunction moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable, traversalFunction, textCriteria) {\n var wrappedOnce = false;\n var nextFocus = traversalFunction(list, currentFocus, currentFocus ? disableListWrap : false);\n\n while (nextFocus) {\n // Prevent infinite loop.\n if (nextFocus === list.firstChild) {\n if (wrappedOnce) {\n return;\n }\n\n wrappedOnce = true;\n } // Same logic as useAutocomplete.js\n\n\n var nextFocusDisabled = disabledItemsFocusable ? false : nextFocus.disabled || nextFocus.getAttribute('aria-disabled') === 'true';\n\n if (!nextFocus.hasAttribute('tabindex') || !textCriteriaMatches(nextFocus, textCriteria) || nextFocusDisabled) {\n // Move to the next element.\n nextFocus = traversalFunction(list, nextFocus, disableListWrap);\n } else {\n nextFocus.focus();\n return;\n }\n }\n}\n\nvar useEnhancedEffect = typeof window === 'undefined' ? React.useEffect : React.useLayoutEffect;\n/**\n * A permanently displayed menu following https://www.w3.org/TR/wai-aria-practices/#menubutton.\n * It's exposed to help customization of the [`Menu`](/api/menu/) component. If you\n * use it separately you need to move focus into the component manually. Once\n * the focus is placed inside the component it is fully keyboard accessible.\n */\n\nvar MenuList = /*#__PURE__*/React.forwardRef(function MenuList(props, ref) {\n var actions = props.actions,\n _props$autoFocus = props.autoFocus,\n autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus,\n _props$autoFocusItem = props.autoFocusItem,\n autoFocusItem = _props$autoFocusItem === void 0 ? false : _props$autoFocusItem,\n children = props.children,\n className = props.className,\n _props$disabledItemsF = props.disabledItemsFocusable,\n disabledItemsFocusable = _props$disabledItemsF === void 0 ? false : _props$disabledItemsF,\n _props$disableListWra = props.disableListWrap,\n disableListWrap = _props$disableListWra === void 0 ? false : _props$disableListWra,\n onKeyDown = props.onKeyDown,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'selectedMenu' : _props$variant,\n other = _objectWithoutProperties(props, [\"actions\", \"autoFocus\", \"autoFocusItem\", \"children\", \"className\", \"disabledItemsFocusable\", \"disableListWrap\", \"onKeyDown\", \"variant\"]);\n\n var listRef = React.useRef(null);\n var textCriteriaRef = React.useRef({\n keys: [],\n repeating: true,\n previousKeyMatched: true,\n lastTime: null\n });\n useEnhancedEffect(function () {\n if (autoFocus) {\n listRef.current.focus();\n }\n }, [autoFocus]);\n React.useImperativeHandle(actions, function () {\n return {\n adjustStyleForScrollbar: function adjustStyleForScrollbar(containerElement, theme) {\n // Let's ignore that piece of logic if users are already overriding the width\n // of the menu.\n var noExplicitWidth = !listRef.current.style.width;\n\n if (containerElement.clientHeight < listRef.current.clientHeight && noExplicitWidth) {\n var scrollbarSize = \"\".concat(getScrollbarSize(true), \"px\");\n listRef.current.style[theme.direction === 'rtl' ? 'paddingLeft' : 'paddingRight'] = scrollbarSize;\n listRef.current.style.width = \"calc(100% + \".concat(scrollbarSize, \")\");\n }\n\n return listRef.current;\n }\n };\n }, []);\n\n var handleKeyDown = function handleKeyDown(event) {\n var list = listRef.current;\n var key = event.key;\n /**\n * @type {Element} - will always be defined since we are in a keydown handler\n * attached to an element. A keydown event is either dispatched to the activeElement\n * or document.body or document.documentElement. Only the first case will\n * trigger this specific handler.\n */\n\n var currentFocus = ownerDocument(list).activeElement;\n\n if (key === 'ArrowDown') {\n // Prevent scroll of the page\n event.preventDefault();\n moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable, nextItem);\n } else if (key === 'ArrowUp') {\n event.preventDefault();\n moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable, previousItem);\n } else if (key === 'Home') {\n event.preventDefault();\n moveFocus(list, null, disableListWrap, disabledItemsFocusable, nextItem);\n } else if (key === 'End') {\n event.preventDefault();\n moveFocus(list, null, disableListWrap, disabledItemsFocusable, previousItem);\n } else if (key.length === 1) {\n var criteria = textCriteriaRef.current;\n var lowerKey = key.toLowerCase();\n var currTime = performance.now();\n\n if (criteria.keys.length > 0) {\n // Reset\n if (currTime - criteria.lastTime > 500) {\n criteria.keys = [];\n criteria.repeating = true;\n criteria.previousKeyMatched = true;\n } else if (criteria.repeating && lowerKey !== criteria.keys[0]) {\n criteria.repeating = false;\n }\n }\n\n criteria.lastTime = currTime;\n criteria.keys.push(lowerKey);\n var keepFocusOnCurrent = currentFocus && !criteria.repeating && textCriteriaMatches(currentFocus, criteria);\n\n if (criteria.previousKeyMatched && (keepFocusOnCurrent || moveFocus(list, currentFocus, false, disabledItemsFocusable, nextItem, criteria))) {\n event.preventDefault();\n } else {\n criteria.previousKeyMatched = false;\n }\n }\n\n if (onKeyDown) {\n onKeyDown(event);\n }\n };\n\n var handleOwnRef = React.useCallback(function (instance) {\n // #StrictMode ready\n listRef.current = ReactDOM.findDOMNode(instance);\n }, []);\n var handleRef = useForkRef(handleOwnRef, ref);\n /**\n * the index of the item should receive focus\n * in a `variant=\"selectedMenu\"` it's the first `selected` item\n * otherwise it's the very first item.\n */\n\n var activeItemIndex = -1; // since we inject focus related props into children we have to do a lookahead\n // to check if there is a `selected` item. We're looking for the last `selected`\n // item and use the first valid item as a fallback\n\n React.Children.forEach(children, function (child, index) {\n if (! /*#__PURE__*/React.isValidElement(child)) {\n return;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (isFragment(child)) {\n console.error([\"Material-UI: The Menu component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n }\n }\n\n if (!child.props.disabled) {\n if (variant === 'selectedMenu' && child.props.selected) {\n activeItemIndex = index;\n } else if (activeItemIndex === -1) {\n activeItemIndex = index;\n }\n }\n });\n var items = React.Children.map(children, function (child, index) {\n if (index === activeItemIndex) {\n var newChildProps = {};\n\n if (autoFocusItem) {\n newChildProps.autoFocus = true;\n }\n\n if (child.props.tabIndex === undefined && variant === 'selectedMenu') {\n newChildProps.tabIndex = 0;\n }\n\n return /*#__PURE__*/React.cloneElement(child, newChildProps);\n }\n\n return child;\n });\n return /*#__PURE__*/React.createElement(List, _extends({\n role: \"menu\",\n ref: handleRef,\n className: className,\n onKeyDown: handleKeyDown,\n tabIndex: autoFocus ? 0 : -1\n }, other), items);\n});\nprocess.env.NODE_ENV !== \"production\" ? MenuList.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * If `true`, will focus the `[role=\"menu\"]` container and move into tab order.\n */\n autoFocus: PropTypes.bool,\n\n /**\n * If `true`, will focus the first menuitem if `variant=\"menu\"` or selected item\n * if `variant=\"selectedMenu\"`.\n */\n autoFocusItem: PropTypes.bool,\n\n /**\n * MenuList contents, normally `MenuItem`s.\n */\n children: PropTypes.node,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * If `true`, will allow focus on disabled items.\n */\n disabledItemsFocusable: PropTypes.bool,\n\n /**\n * If `true`, the menu items will not wrap focus.\n */\n disableListWrap: PropTypes.bool,\n\n /**\n * @ignore\n */\n onKeyDown: PropTypes.func,\n\n /**\n * The variant to use. Use `menu` to prevent selected items from impacting the initial focus\n * and the vertical alignment relative to the anchor element.\n */\n variant: PropTypes.oneOf(['menu', 'selectedMenu'])\n} : void 0;\nexport default MenuList;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport { isFragment } from 'react-is';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { HTMLElementType } from '@material-ui/utils';\nimport withStyles from '../styles/withStyles';\nimport Popover from '../Popover';\nimport MenuList from '../MenuList';\nimport * as ReactDOM from 'react-dom';\nimport setRef from '../utils/setRef';\nimport useTheme from '../styles/useTheme';\nimport deprecatedPropType from '../utils/deprecatedPropType';\nvar RTL_ORIGIN = {\n vertical: 'top',\n horizontal: 'right'\n};\nvar LTR_ORIGIN = {\n vertical: 'top',\n horizontal: 'left'\n};\nexport var styles = {\n /* Styles applied to the `Paper` component. */\n paper: {\n // specZ: The maximum height of a simple menu should be one or more rows less than the view\n // height. This ensures a tapable area outside of the simple menu with which to dismiss\n // the menu.\n maxHeight: 'calc(100% - 96px)',\n // Add iOS momentum scrolling.\n WebkitOverflowScrolling: 'touch'\n },\n\n /* Styles applied to the `List` component via `MenuList`. */\n list: {\n // We disable the focus ring for mouse, touch and keyboard users.\n outline: 0\n }\n};\nvar Menu = /*#__PURE__*/React.forwardRef(function Menu(props, ref) {\n var _props$autoFocus = props.autoFocus,\n autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus,\n children = props.children,\n classes = props.classes,\n _props$disableAutoFoc = props.disableAutoFocusItem,\n disableAutoFocusItem = _props$disableAutoFoc === void 0 ? false : _props$disableAutoFoc,\n _props$MenuListProps = props.MenuListProps,\n MenuListProps = _props$MenuListProps === void 0 ? {} : _props$MenuListProps,\n onClose = props.onClose,\n onEnteringProp = props.onEntering,\n open = props.open,\n _props$PaperProps = props.PaperProps,\n PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps,\n PopoverClasses = props.PopoverClasses,\n _props$transitionDura = props.transitionDuration,\n transitionDuration = _props$transitionDura === void 0 ? 'auto' : _props$transitionDura,\n _props$TransitionProp = props.TransitionProps;\n _props$TransitionProp = _props$TransitionProp === void 0 ? {} : _props$TransitionProp;\n\n var onEntering = _props$TransitionProp.onEntering,\n TransitionProps = _objectWithoutProperties(_props$TransitionProp, [\"onEntering\"]),\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'selectedMenu' : _props$variant,\n other = _objectWithoutProperties(props, [\"autoFocus\", \"children\", \"classes\", \"disableAutoFocusItem\", \"MenuListProps\", \"onClose\", \"onEntering\", \"open\", \"PaperProps\", \"PopoverClasses\", \"transitionDuration\", \"TransitionProps\", \"variant\"]);\n\n var theme = useTheme();\n var autoFocusItem = autoFocus && !disableAutoFocusItem && open;\n var menuListActionsRef = React.useRef(null);\n var contentAnchorRef = React.useRef(null);\n\n var getContentAnchorEl = function getContentAnchorEl() {\n return contentAnchorRef.current;\n };\n\n var handleEntering = function handleEntering(element, isAppearing) {\n if (menuListActionsRef.current) {\n menuListActionsRef.current.adjustStyleForScrollbar(element, theme);\n }\n\n if (onEnteringProp) {\n onEnteringProp(element, isAppearing);\n }\n\n if (onEntering) {\n onEntering(element, isAppearing);\n }\n };\n\n var handleListKeyDown = function handleListKeyDown(event) {\n if (event.key === 'Tab') {\n event.preventDefault();\n\n if (onClose) {\n onClose(event, 'tabKeyDown');\n }\n }\n };\n /**\n * the index of the item should receive focus\n * in a `variant=\"selectedMenu\"` it's the first `selected` item\n * otherwise it's the very first item.\n */\n\n\n var activeItemIndex = -1; // since we inject focus related props into children we have to do a lookahead\n // to check if there is a `selected` item. We're looking for the last `selected`\n // item and use the first valid item as a fallback\n\n React.Children.map(children, function (child, index) {\n if (! /*#__PURE__*/React.isValidElement(child)) {\n return;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (isFragment(child)) {\n console.error([\"Material-UI: The Menu component doesn't accept a Fragment as a child.\", 'Consider providing an array instead.'].join('\\n'));\n }\n }\n\n if (!child.props.disabled) {\n if (variant !== \"menu\" && child.props.selected) {\n activeItemIndex = index;\n } else if (activeItemIndex === -1) {\n activeItemIndex = index;\n }\n }\n });\n var items = React.Children.map(children, function (child, index) {\n if (index === activeItemIndex) {\n return /*#__PURE__*/React.cloneElement(child, {\n ref: function ref(instance) {\n // #StrictMode ready\n contentAnchorRef.current = ReactDOM.findDOMNode(instance);\n setRef(child.ref, instance);\n }\n });\n }\n\n return child;\n });\n return /*#__PURE__*/React.createElement(Popover, _extends({\n getContentAnchorEl: getContentAnchorEl,\n classes: PopoverClasses,\n onClose: onClose,\n TransitionProps: _extends({\n onEntering: handleEntering\n }, TransitionProps),\n anchorOrigin: theme.direction === 'rtl' ? RTL_ORIGIN : LTR_ORIGIN,\n transformOrigin: theme.direction === 'rtl' ? RTL_ORIGIN : LTR_ORIGIN,\n PaperProps: _extends({}, PaperProps, {\n classes: _extends({}, PaperProps.classes, {\n root: classes.paper\n })\n }),\n open: open,\n ref: ref,\n transitionDuration: transitionDuration\n }, other), /*#__PURE__*/React.createElement(MenuList, _extends({\n onKeyDown: handleListKeyDown,\n actions: menuListActionsRef,\n autoFocus: autoFocus && (activeItemIndex === -1 || disableAutoFocusItem),\n autoFocusItem: autoFocusItem,\n variant: variant\n }, MenuListProps, {\n className: clsx(classes.list, MenuListProps.className)\n }), items));\n});\nprocess.env.NODE_ENV !== \"production\" ? Menu.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * A HTML element, or a function that returns it.\n * It's used to set the position of the menu.\n */\n anchorEl: PropTypes\n /* @typescript-to-proptypes-ignore */\n .oneOfType([HTMLElementType, PropTypes.func]),\n\n /**\n * If `true` (Default) will focus the `[role=\"menu\"]` if no focusable child is found. Disabled\n * children are not focusable. If you set this prop to `false` focus will be placed\n * on the parent modal container. This has severe accessibility implications\n * and should only be considered if you manage focus otherwise.\n */\n autoFocus: PropTypes.bool,\n\n /**\n * Menu contents, normally `MenuItem`s.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * When opening the menu will not focus the active item but the `[role=\"menu\"]`\n * unless `autoFocus` is also set to `false`. Not using the default means not\n * following WAI-ARIA authoring practices. Please be considerate about possible\n * accessibility implications.\n */\n disableAutoFocusItem: PropTypes.bool,\n\n /**\n * Props applied to the [`MenuList`](/api/menu-list/) element.\n */\n MenuListProps: PropTypes.object,\n\n /**\n * Callback fired when the component requests to be closed.\n *\n * @param {object} event The event source of the callback.\n * @param {string} reason Can be: `\"escapeKeyDown\"`, `\"backdropClick\"`, `\"tabKeyDown\"`.\n */\n onClose: PropTypes.func,\n\n /**\n * Callback fired before the Menu enters.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onEnter: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * Callback fired when the Menu has entered.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onEntered: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * Callback fired when the Menu is entering.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onEntering: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * Callback fired before the Menu exits.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onExit: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * Callback fired when the Menu has exited.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onExited: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * Callback fired when the Menu is exiting.\n * @deprecated Use the `TransitionProps` prop instead.\n */\n onExiting: deprecatedPropType(PropTypes.func, 'Use the `TransitionProps` prop instead.'),\n\n /**\n * If `true`, the menu is visible.\n */\n open: PropTypes.bool.isRequired,\n\n /**\n * @ignore\n */\n PaperProps: PropTypes.object,\n\n /**\n * `classes` prop applied to the [`Popover`](/api/popover/) element.\n */\n PopoverClasses: PropTypes.object,\n\n /**\n * The length of the transition in `ms`, or 'auto'\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n\n /**\n * Props applied to the transition element.\n * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition) component.\n */\n TransitionProps: PropTypes.object,\n\n /**\n * The variant to use. Use `menu` to prevent selected items from impacting the initial focus\n * and the vertical alignment relative to the anchor element.\n */\n variant: PropTypes.oneOf(['menu', 'selectedMenu'])\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiMenu'\n})(Menu);","\nvar content = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".list-view-header{margin-bottom:30px}.list-view-header .loop-header-tools{padding:10px 0}.brand-footer{padding:10px}.brand-footer-message{display:flex;justify-content:center}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".list-view-header{margin-bottom:30px}.list-view-header .loop-header-tools{padding:10px 0}.brand-footer{padding:10px}.brand-footer-message{display:flex;justify-content:center;flex-wrap:wrap}.brand-footer .brand-contact-link{background-color:#fff;border:1px solid #000;display:block;padding:15px;width:200px;text-align:center;margin-bottom:5px;position:relative;margin-right:10px}.brand-footer .brand-contact-link.negative{background-color:#333;color:#fff;border:0}.brand-footer .brand-contact-link:hover{background-color:#000;color:#fff}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".list-view-detail-list-header{-ms-overflow-style:none;scrollbar-width:none;overflow-y:scroll}.list-view-detail-list-header::-webkit-scrollbar{display:none}.list-view-brand-slider [data-arrow=right]{position:absolute;right:0;top:10px;cursor:pointer}.list-view-brand-slider [data-arrow=left]{position:absolute;left:0;top:10px;cursor:pointer}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".collection-list-view-item .item-link{color:inherit}.collection-list-view-item .thumbnail-collection{width:100%;height:100%;object-fit:contain;position:absolute;top:0}.collection-list-view-item .information{text-align:left}.collection-list-view-item .information .title{font-size:14px;font-weight:500;line-height:22px;margin:0;min-height:45px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.collection-list-view-item .information .content{font-size:16px;font-weight:600}.collection-list-view-item .information .title a{display:block;color:#323232}.collection-list-view-item .information .title a:hover,.collection-list-view-item .information .title a:focus{color:#000}.collection-list-view-item-image{position:relative;display:flex;justify-content:center;align-items:center;width:100%;padding-top:100%}.collection-list-view-item-add-cart{position:absolute;bottom:1rem;display:flex;width:100%;justify-content:center}.collection-list-view-item-add-cart>button{background-color:#fff;border:1px solid #e6e6e6;padding:.5rem 2rem}.collection-list-view-item .description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;color:#6c757d}.collection-list-view-item .description.hide{display:none}.collection-list-view-item.inner-border .list-view-item-inner{border:1px solid #e6e6e6}.collection-list-view-item .border-bottom{border-bottom:1px solid #e6e6e6}.collection-swipeable-images{position:absolute;top:0;width:100%;height:100%}.collection-swipeable-images div{height:100%}.collection-swipeable-images .collection-swipeable-next,.collection-swipeable-images .collection-swipeable-prev{position:absolute;top:50%;transform:translateY(-50%);padding:5px 5px;background-color:#fff;opacity:.3}.collection-swipeable-images .collection-swipeable-next.mouseover,.collection-swipeable-images .collection-swipeable-prev.mouseover{opacity:.8}.collection-swipeable-images .collection-swipeable-next:hover,.collection-swipeable-images .collection-swipeable-prev:hover{opacity:1}.collection-swipeable-images .collection-swipeable-next{right:0}.collection-swipeable-images .collection-swipeable-prev{left:0}.collection-swipeable-images img{width:100%;height:100%;object-fit:cover}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".list-view-brand-header .loop-header-tools{padding:10px 0}.listview-header-wrapper{align-items:center}.brand-listview-search{display:inline}@media screen and (max-width: 992px){.list-view-brand-header{top:60px}}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".brand-header .brand-name *{vertical-align:middle}.brand-header .brand-card-title{line-height:32px}.brand-header .follow-button{background:#e8e8e8;color:#333}.brand-header .follow-button.unfollow{background:#769aab;color:#fff}.brand-header .heart-icon::after{font-family:FontAwesome;margin-right:5px;content:\\\"\\\";font-style:normal}.brand-header .unfollow .heart-icon::after{content:\\\"\\\";color:#f08080}.brand-header .brand-yomigana{font-size:.6em}.brand-header .brand-story-container{cursor:pointer;color:#000}.brand-header .brand-story-container:hover{opacity:.7}.brand-header .brand-story{position:relative;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:pre-wrap}.brand-header .read-brand-story-more{position:absolute;text-decoration:underline;bottom:0;right:0;opacity:.9}.brand-deal-conditions{color:inherit;text-decoration:underline}.brand-typography-readmore{color:inherit;text-decoration:underline}.brand-detail-tags{display:flex;flex-wrap:wrap;width:80%}.brand-detail-tag{font-weight:200;font-size:12px;line-height:20px;letter-spacing:.25px;text-align:center;padding:4px 16px;background-color:#eaeaea;margin-bottom:8px;color:#666;margin-right:8px;white-space:nowrap}.brand-header .free-shipping{color:#dc3545}.brand-header .order-brand-product{background-color:#333 !important;border-radius:0}.brand-header-image{position:relative}.brand-header-image-wrapper{position:relative;width:100%;padding-top:23%;height:0;min-height:120px}.brand-header-image-wrapper img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}.brand-header .brand-contact-wrapper{position:absolute;top:15px;right:15px}.brand-header .brand-contact-link{background-color:#fff;border:1px solid #000;display:block;padding:15px;width:200px;text-align:center;margin-bottom:5px;position:relative}.brand-header .brand-contact-link.negative{background-color:#333;color:#fff;border:0}.brand-header .brand-contact-link:hover{background-color:#000;color:#fff}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".brand-condition-modal{border-radius:0}.brand-condition-modal .other-terms{white-space:pre-wrap}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".list-view-header{margin-bottom:30px}.list-view-header .loop-header-tools{padding:10px 0}.brand-footer{padding:10px}.brand-footer-message{display:flex;justify-content:center;flex-wrap:wrap}.brand-footer .brand-contact-link{background-color:#fff;border:1px solid #000;display:block;padding:15px;width:200px;text-align:center;margin-bottom:5px;position:relative;margin-right:10px}.brand-footer .brand-contact-link.negative{background-color:#333;color:#fff;border:0}.brand-footer .brand-contact-link:hover{background-color:#000;color:#fff}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".list-view-detail-list-header{-ms-overflow-style:none;scrollbar-width:none;overflow-y:scroll}.list-view-detail-list-header::-webkit-scrollbar{display:none}.list-view-brand-slider [data-arrow=right]{position:absolute;right:0;top:10px;cursor:pointer}.list-view-brand-slider [data-arrow=left]{position:absolute;left:0;top:10px;cursor:pointer}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".list-view-brand-header .loop-header-tools{padding:10px 0}.listview-header-wrapper{align-items:center}.brand-listview-search{display:inline}@media screen and (max-width: 992px){.list-view-brand-header{top:60px}}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","\nvar content = require(\"!!../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".brand-header .brand-name *{vertical-align:middle}.brand-header .brand-card-title{line-height:32px}.brand-header .follow-button{background:#e8e8e8;color:#333}.brand-header .follow-button.unfollow{background:#769aab;color:#fff}.brand-header .heart-icon::after{font-family:FontAwesome;margin-right:5px;content:\\\"\\\";font-style:normal}.brand-header .unfollow .heart-icon::after{content:\\\"\\\";color:#f08080}.brand-header .brand-yomigana{font-size:.6em}.brand-header .brand-story-container{cursor:pointer;color:#000}.brand-header .brand-story-container:hover{opacity:.7}.brand-header .brand-story{position:relative;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:pre-wrap}.brand-header .read-brand-story-more{position:absolute;text-decoration:underline;bottom:0;right:0;opacity:.9}.brand-deal-conditions{color:inherit;text-decoration:underline}.brand-typography-readmore{color:inherit;text-decoration:underline}.brand-detail-tags{display:flex;flex-wrap:wrap;width:80%}.brand-detail-tag{font-weight:200;font-size:12px;line-height:20px;letter-spacing:.25px;text-align:center;padding:4px 16px;background-color:#eaeaea;margin-bottom:8px;color:#666;margin-right:8px;white-space:nowrap}.brand-header .free-shipping{color:#dc3545}.brand-header .order-brand-product{background-color:#333 !important;border-radius:0}.brand-header-image{position:relative}.brand-header-image-wrapper{position:relative;width:100%;padding-top:23%;height:0;min-height:120px}.brand-header-image-wrapper img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover}.brand-header .brand-contact-wrapper{position:absolute;top:15px;right:15px}.brand-header .brand-contact-link{background-color:#fff;border:1px solid #000;display:block;padding:15px;width:200px;text-align:center;margin-bottom:5px;position:relative}.brand-header .brand-contact-link.negative{background-color:#333;color:#fff;border:0}.brand-header .brand-contact-link:hover{background-color:#000;color:#fff}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// THIS FILE IS AUTO GENERATED\nvar GenIcon = require('../lib').GenIcon\nmodule.exports.FiExternalLink = function FiExternalLink (props) {\n return GenIcon({\"tag\":\"svg\",\"attr\":{\"viewBox\":\"0 0 24 24\",\"fill\":\"none\",\"stroke\":\"currentColor\",\"strokeWidth\":\"2\",\"strokeLinecap\":\"round\",\"strokeLinejoin\":\"round\"},\"child\":[{\"tag\":\"path\",\"attr\":{\"d\":\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\"}},{\"tag\":\"polyline\",\"attr\":{\"points\":\"15 3 21 3 21 9\"}},{\"tag\":\"line\",\"attr\":{\"x1\":\"10\",\"y1\":\"14\",\"x2\":\"21\",\"y2\":\"3\"}}]})(props);\n};\n","\nvar content = require(\"!!../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../../../../../../../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\", function() {\n\t\tvar newContent = require(\"!!../../../../../../../node_modules/css-loader/dist/cjs.js!../../../../../../../node_modules/sass-loader/dist/cjs.js??ref--5-oneOf-3-2!./styles.scss\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \"\", \"\"]);\n// Exports\nmodule.exports = exports;\n","import { HiChevronLeft } from '@react-icons/all-files/hi/HiChevronLeft';\nimport { HiChevronRight } from '@react-icons/all-files/hi/HiChevronRight';\nimport { ScrollingCarousel } from '@trendyol-js/react-carousel';\nimport React, { useCallback, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { Button } from 'reactstrap';\nimport { collectionListSelector } from '~redux/collection/selectors';\nimport { changedFilterValues } from '~redux/search/product';\nimport { paginate } from '~usecases/buyer/search/product';\nimport { getPublicImageUrl } from '~utils/image';\n\nconst Collections: React.FC<{ listId: string }> = ({ listId }) => {\n const dispatch = useDispatch();\n const collections = useSelector(collectionListSelector);\n const [collectionId, setCollectionId] = useState();\n\n const handleCollectionClick = useCallback(\n (collectionId) => {\n if (!collectionId) {\n dispatch(\n changedFilterValues({ listId, attribute: 'collection_id', items: [] })\n );\n dispatch(paginate({ listId, page: 1 }));\n setCollectionId(collectionId);\n return;\n }\n dispatch(\n changedFilterValues({\n listId,\n attribute: 'collection_id',\n items: [`collection_id:'${collectionId}'`],\n })\n );\n dispatch(paginate({ listId, page: 1 }));\n setCollectionId(collectionId);\n },\n [listId]\n );\n\n if (!collections?.length) {\n return null;\n }\n\n return (\n \n \n \n }\n leftIcon={\n
\n \n
\n }\n >\n handleCollectionClick(undefined)}\n outline={!!collectionId}\n >\n
すべて
\n \n <>\n {collections.map((collection) => (\n handleCollectionClick(collection.id!)}\n >\n
\n \n {collection.name}\n
\n \n ))}\n \n \n );\n};\n\nexport default Collections;\n","import React from 'react';\nimport { useLimitedProducts } from '~view/pages/buyer/ListViewBrand/hooks';\nimport ProductListViewItem from '~view/widgets/ProductListViewItem';\n\nconst LimitedProducts: React.FC<{ brandId: string; preview?: boolean }> = ({\n brandId,\n preview,\n}) => {\n const { limitedProducts } = useLimitedProducts(brandId);\n\n if (!limitedProducts?.length) {\n return null;\n }\n\n return (\n <>\n {limitedProducts?.map((product, i) => (\n
\n \n
\n ))}\n \n );\n};\n\nexport default LimitedProducts;\n","import './styles.scss';\nimport React, { useEffect, useRef } from 'react';\nimport { Col, Row } from 'reactstrap';\nimport Collections from './Collections';\nimport LimitedProducts from './LimitedProducts';\nimport { BrandDetails } from '~redux/brand/types';\nimport {\n selectProducts,\n selectProductListPage,\n selectProductListQuery,\n selectProductListSortType,\n} from '~redux/search/product';\nimport InventoryProvider from '~view/widgets/InventoryProvider';\nimport { ProductListViewItemByAlgolia } from '~view/widgets/ProductListViewItemByAlgolia';\nimport ProductSearchPagination from '~view/widgets/ProductSearchPagination';\nimport { useProductSearchSelector } from '~view/widgets/ProductSearchProvider';\n\ntype DetailListProps = {\n listId: string;\n isProtected?: boolean | null;\n brand: BrandDetails;\n preview?: boolean;\n};\n\nconst DetailList: React.FC = ({\n listId,\n isProtected,\n brand,\n preview,\n}) => {\n const products = useProductSearchSelector(selectProducts, listId);\n const listRef = useRef(null);\n\n const page = useProductSearchSelector(selectProductListPage, listId);\n const sort = useProductSearchSelector(selectProductListSortType, listId);\n const query = useProductSearchSelector(selectProductListQuery, listId);\n const filters = useProductSearchSelector(\n selectProductListQuery,\n listId,\n (a, b) => JSON.stringify(a) === JSON.stringify(b)\n );\n const isMounted = useRef(false);\n useEffect(() => {\n if (!isMounted.current) {\n isMounted.current = true;\n return;\n }\n listRef.current?.scrollIntoView({ block: 'center' });\n }, [page, sort, query, filters]);\n\n return (\n \n \n {!isProtected && }\n product.id!) ?? []}\n >\n
\n \n {products.map((product, i) => (\n
\n \n
\n ))}\n \n
\n \n
\n \n \n );\n};\n\nexport default DetailList;\n","import './styles.scss';\nimport qs from 'querystring';\nimport { FiChevronLeft } from '@react-icons/all-files/fi/FiChevronLeft';\nimport { FiChevronRight } from '@react-icons/all-files/fi/FiChevronRight';\nimport cx from 'classnames';\nimport React, { useCallback, useMemo, useState } from 'react';\nimport { useSelector } from 'react-redux';\nimport { useHistory } from 'react-router';\nimport { Link } from 'react-router-dom';\nimport SwipeableViews from 'react-swipeable-views';\nimport { Badge } from 'reactstrap';\nimport ListViewItem from '../ListViewItem';\nimport { Collection } from '~domain/product/Collection';\nimport { accountSelector } from '~redux/account/selectors/account';\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\nimport { Brand } from '~redux/brand/types';\nimport { isProtectedBrand } from '~utils/brand';\nimport { formatCurrency } from '~utils/formatter';\nimport { getPublicImageUrl, getResizeImageUrl } from '~utils/image';\n\nconst ImagesCarousel: React.FC<{ images: string[] }> = ({ images }) => {\n const [activeIndex, setActiveIndex] = useState(0);\n const handleNext = useCallback(\n (e) => {\n e.preventDefault();\n setActiveIndex((index) => (index === images.length - 1 ? 0 : index + 1));\n },\n [images]\n );\n const handlePrev = useCallback(\n (e) => {\n e.preventDefault();\n setActiveIndex((index) => (index === 0 ? images.length - 1 : index - 1));\n },\n [images]\n );\n\n const [showControls, setShowArrows] = useState(false);\n const handleMouseEnter = useCallback(() => setShowArrows(true), []);\n const handleMouseLeave = useCallback(() => setShowArrows(false), []);\n\n return (\n \n {images.map((image) => (\n
\n \n {images.length > 1 && (\n \n \n \n )}\n {images.length > 1 && (\n \n \n \n )}\n
\n ))}\n \n );\n};\n\ntype CollectionListViewItemProps = {\n collection: Collection;\n col?: boolean;\n sale?: boolean;\n};\n\nconst CollectionListViewItem: React.FC = ({\n collection,\n col = true,\n sale,\n}) => {\n const user = useSelector(authUserSelector);\n const account = useSelector(accountSelector);\n const history = useHistory();\n const is_direct = !!qs.parse(history.location.search?.split('?')?.[1])\n ?.direct;\n const [isHover, setIsHover] = useState(false);\n const collectionUrl = useMemo(\n () => `/${sale ? 'sale' : 'collection'}/${collection.id}${location.search}`,\n [collection.id, is_direct, sale]\n );\n const quantity = useMemo(\n () =>\n collection.productCollections?.reduce(\n (prev, { quantity }) => prev + quantity,\n 0\n ) ?? 0,\n [collection]\n );\n\n const isProtected = useMemo(\n () =>\n user?.attributes.profile === 'buyer' &&\n account &&\n isProtectedBrand(\n collection?.productCollections?.[0]?.product?.brand as Brand,\n account\n ),\n [collection, account, user]\n );\n\n return (\n <>\n {quantity !== 0 && (\n \n setIsHover(true)}\n onMouseLeave={() => setIsHover(false)}\n title={collection.name}\n >\n \n {!sale && collection.imageUrl && (\n \n )}\n {(sale || !collection.imageUrl) && (\n \n getPublicImageUrl(\n product.productType?.imageKey ||\n product.product?.imageKeys?.[0]?.imageKey,\n 'medium'\n )\n ) ?? []\n }\n />\n )}\n {isHover && (\n
\n }\n />\n
\n )}\n
\n
\n {quantity}点の商品\n
\n
\n
\n {!sale && collection.is_consign && (\n
\n \n 委託販売\n \n
\n )}\n {collection.name}\n
\n {user && !collection.preorder && !isProtected && (\n
\n {collection.isSaleCollection &&\n collection.originalPrice !== collection.price && (\n \n {formatCurrency(collection.originalPrice)}\n \n )}\n \n {formatCurrency(collection.price)}(\n {Math.round(collection.wholesaleRate * 1000) / 10}%)\n \n
\n {!collection.hasOpenPrice && (\n \n 上代 {formatCurrency(collection.retailPrice)}\n \n )}\n
\n )}\n \n {collection.description}\n
\n
\n \n \n )}\n \n );\n};\n\nexport default CollectionListViewItem;\n","import React from 'react';\nimport { useSelector } from 'react-redux';\nimport { Row } from 'reactstrap';\nimport { collectionListSelector } from '~redux/collection/selectors';\nimport CollectionListViewItem from '~view/widgets/CollectionListViewItem';\n\nconst Collections: React.FC = () => {\n const collections = useSelector(collectionListSelector);\n\n return (\n \n {collections.map((collection) => (\n \n ))}\n \n );\n};\n\nexport default Collections;\n","import React, { useCallback, useEffect, useRef, useState } from 'react';\nimport { useHistory } from 'react-router';\nimport { Col, Row } from 'reactstrap';\nimport { useLimitedProducts } from '../../../hooks';\nimport Collections from './Collections';\nimport { BrandDetails } from '~redux/brand/types';\nimport {\n selectIsProductSearching,\n selectProducts,\n selectProductListPage,\n selectProductListQuery,\n selectProductListSortType,\n} from '~redux/search/product';\nimport AlgoliaRefinementListSidebar from '~view/pages/buyer/ListViewQuery/Sidebar';\nimport InventoryProvider from '~view/widgets/InventoryProvider';\nimport ProductListViewItem from '~view/widgets/ProductListViewItem';\nimport { ProductListViewItemByAlgolia } from '~view/widgets/ProductListViewItemByAlgolia';\nimport ProductSearchPagination from '~view/widgets/ProductSearchPagination';\nimport { useProductSearchSelector } from '~view/widgets/ProductSearchProvider';\n\ntype GridListProps = {\n listId: string;\n isProtected?: boolean | null;\n brand: BrandDetails;\n};\n\nconst GridList: React.FC = ({ listId, isProtected, brand }) => {\n const products = useProductSearchSelector(selectProducts, listId);\n const searching = useProductSearchSelector(selectIsProductSearching, listId);\n\n const { limitedProducts, loading } = useLimitedProducts(brand.id);\n const listRef = useRef(null);\n\n const history = useHistory();\n const [subcategory, setSubcategory] = useState();\n const handleSubcategory = useCallback(\n (subcategory) => {\n setSubcategory(subcategory);\n const url = new URL(location.href);\n url.searchParams.delete('page');\n history.push(`${url.pathname}${url.search}`);\n if (!listRef?.current) {\n return;\n }\n listRef.current.scrollIntoView({ block: 'center' });\n },\n [listRef]\n );\n\n const page = useProductSearchSelector(selectProductListPage, listId);\n const sort = useProductSearchSelector(selectProductListSortType, listId);\n const query = useProductSearchSelector(selectProductListQuery, listId);\n const isMounted = useRef(false);\n useEffect(() => {\n if (!isMounted.current) {\n isMounted.current = true;\n return;\n }\n listRef.current?.scrollIntoView({ block: 'center' });\n }, [page, sort, query]);\n\n return (\n
\n \n \n \n \n \n {!isProtected &&\n !query &&\n sort === 'brandRecommended' &&\n !subcategory && }\n
\n \n product.id!) ?? []}\n >\n {limitedProducts?.map((product, index) => (\n \n ))}\n {!searching &&\n products?.map((product, index) => (\n \n ))}\n \n {(searching || loading) &&\n [...Array(20)].map(() => (\n \n ))}\n \n {!searching && !products.length && !limitedProducts?.length && (\n \n
\n {query &&
該当する商品は見つかりませんでした。
}\n {!query && (\n <>\n
ただいま準備中です
\n
商品が登録されるまでしばらくお待ちください!
\n \n )}\n
\n
\n )}\n \n
\n
\n \n
\n
\n );\n};\n\nexport default GridList;\n","import './styles.scss';\nimport { AiFillAppstore } from '@react-icons/all-files/ai/AiFillAppstore';\nimport { AiOutlineUnorderedList } from '@react-icons/all-files/ai/AiOutlineUnorderedList';\nimport React, { useCallback, useMemo } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { Col, Row } from 'reactstrap';\nimport { accountSelector } from '~redux/account/selectors/account';\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\nimport { Brand } from '~redux/brand/types';\nimport {\n changedItemsPerPage,\n changedQuery,\n clearedFilters,\n selectIsProductSearching,\n selectProducts,\n} from '~redux/search/product';\nimport { paginate } from '~usecases/buyer/search/product';\nimport { isProtectedBrand } from '~utils/brand';\nimport debounce from '~utils/debounce';\nimport { useProductSearchSelector } from '~view/widgets/ProductSearchProvider';\nimport ProductSearchSortDropdown from '~view/widgets/ProductSearchSortDropdown';\n\ntype ListViewBrandHeaderProps = {\n listId: string;\n setViewType: (type: 'grid' | 'list') => void;\n viewType: 'grid' | 'list';\n brand: Brand;\n};\n\nconst ListViewBrandHeader: React.FC = ({\n listId,\n setViewType,\n viewType,\n brand,\n}) => {\n const auth = useSelector(authUserSelector);\n const account = useSelector(accountSelector);\n const isProtected = useMemo(\n () =>\n auth?.attributes.profile === 'buyer' &&\n account &&\n isProtectedBrand(brand, account),\n [brand, account, auth]\n );\n\n const products = useProductSearchSelector(selectProducts, listId);\n const searching = useProductSearchSelector(selectIsProductSearching, listId);\n\n const dispatch = useDispatch();\n const onInputKeyword = useCallback(\n debounce((query) => {\n dispatch(changedQuery({ listId, query }));\n }, 300),\n [listId]\n );\n\n const toggleView = useCallback(\n (view) => {\n dispatch(clearedFilters(listId));\n dispatch(\n changedItemsPerPage({ listId, itemsPerPage: view === 'grid' ? 60 : 10 })\n );\n dispatch(paginate({ listId, page: 1 }));\n dispatch(changedQuery({ listId, query: undefined }));\n setViewType(view);\n },\n [listId]\n );\n\n return (\n
\n \n \n
\n \n \n {(searching || !!products.length) && (\n \n \n onInputKeyword(e.currentTarget.value)}\n maxLength={40}\n />\n \n \n
\n \n
\n {auth && !isProtected && (\n \n )}\n \n
\n )}\n
\n );\n};\n\nexport default ListViewBrandHeader;\n","import qs from 'querystring';\r\nimport React, { useEffect, useCallback, useState, useMemo } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { useHistory } from 'react-router';\r\nimport { Container } from 'reactstrap';\r\nimport DetailList from './DetailList';\r\nimport GridList from './GridList';\r\nimport ListViewBrandHeader from './ListViewHeader';\r\nimport { accountSelector } from '~redux/account/selectors/account';\r\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\r\nimport { Brand, BrandDetails } from '~redux/brand/types';\r\nimport { clearCollectionList } from '~redux/collection/actions';\r\nimport { getCollectionList } from '~redux/collection/thunk';\r\nimport { selectDirectContactOwners } from '~redux/contact';\r\nimport { changedItemsPerPage } from '~redux/search/product';\r\nimport { isProtectedBrand } from '~utils/brand';\r\n\r\nexport type ProductListProps = {\r\n brand: BrandDetails;\r\n preview?: boolean;\r\n listId: string;\r\n};\r\n\r\nconst ProductList: React.FC = ({\r\n brand,\r\n preview,\r\n listId,\r\n}) => {\r\n const dispatch = useDispatch();\r\n const user = useSelector(authUserSelector);\r\n const account = useSelector(accountSelector);\r\n\r\n const history = useHistory();\r\n const [viewType, setViewType] = useState<'grid' | 'list'>('grid');\r\n const toggleViewType = useCallback((view: 'grid' | 'list') => {\r\n setViewType(view);\r\n const url = new URL(location.href);\r\n url.searchParams.set('layout', view);\r\n url.searchParams.delete('page');\r\n history.push(`${location.pathname}${url.search}`);\r\n }, []);\r\n\r\n const { layout } = qs.parse(location.search.substring(1));\r\n useEffect(() => {\r\n if (!layout) return;\r\n setViewType(layout as 'grid' | 'list');\r\n dispatch(\r\n changedItemsPerPage({ listId, itemsPerPage: layout === 'grid' ? 60 : 10 })\r\n );\r\n }, [layout]);\r\n\r\n const directOwners = useSelector(selectDirectContactOwners);\r\n useEffect(() => {\r\n dispatch(\r\n getCollectionList({\r\n brand_id: brand.id,\r\n directOwners,\r\n onlyPublished: true,\r\n unAuth: !user,\r\n })\r\n );\r\n return () => {\r\n dispatch(clearCollectionList());\r\n };\r\n }, [brand.id, user, directOwners]);\r\n\r\n const isProtected = useMemo(\r\n () => account && isProtectedBrand(brand, account),\r\n [account]\r\n );\r\n\r\n return (\r\n \r\n
\r\n \r\n
\r\n {viewType === 'grid' && (\r\n \r\n )}\r\n {viewType === 'list' && (\r\n \r\n )}\r\n
\r\n );\r\n};\r\n\r\nexport default ProductList;\r\n","import React from 'react';\nimport { Col, Modal, ModalBody, ModalHeader, Row, Table } from 'reactstrap';\nimport { BrandDetails } from '~redux/brand/types';\nimport './styles.scss';\n\ntype BrandConditionModalProps = {\n brand: BrandDetails;\n isOpen: boolean;\n toggle: () => void;\n};\n\nconst BrandConditionModal: React.FC = ({\n brand,\n isOpen,\n toggle,\n}) => {\n return (\n \n
お取引に関する条件
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {brand.terms_of_sample && (\n \n \n \n \n )}\n {brand.other_terms && (\n \n \n \n \n )}\n
\n ブランドロゴを使った販促(購入後)\n \n {typeof brand.brand_logo_reprint !== 'boolean'\n ? '要相談'\n : brand.brand_logo_reprint\n ? '許可する'\n : '許可しない'}\n
商品画像を使った販促(購入後)\n {typeof brand.product_image_reprint !== 'boolean'\n ? '要相談'\n : brand.product_image_reprint\n ? '許可する'\n : '許可しない'}\n
オンラインモールでの販売\n {typeof brand.brand_online_sale !== 'boolean'\n ? '要相談'\n : brand.brand_online_sale\n ? '許可する'\n : '許可しない'}\n
消費者への直送\n {typeof brand.allow_direct_shipping !== 'boolean'\n ? '要相談'\n : brand.allow_direct_shipping\n ? '可'\n : '不可'}\n
ご購入前の販売\n {typeof brand.allow_sell_before_buy !== 'boolean'\n ? '要相談'\n : brand.allow_sell_before_buy\n ? '許可する'\n : '許可しない'}\n
SNS等での購入店舗の紹介\n {typeof brand.post_to_sns !== 'boolean'\n ? '要相談'\n : brand.post_to_sns\n ? '紹介する'\n : '紹介しない'}\n
サンプル・テスターについて{brand.terms_of_sample}
その他{brand.other_terms}
\n
\n \n );\n};\n\nexport default BrandConditionModal;\n","import './styles.scss';\nimport qs from 'querystring';\nimport { Button, Chip, Container, Tooltip } from '@material-ui/core';\nimport Alert from '@material-ui/lab/Alert';\nimport Rating from '@material-ui/lab/Rating';\nimport { FiAlertCircle } from '@react-icons/all-files/fi/FiAlertCircle';\nimport { FiBook } from '@react-icons/all-files/fi/FiBook';\nimport { FiCheck } from '@react-icons/all-files/fi/FiCheck';\nimport { FiChevronDown } from '@react-icons/all-files/fi/FiChevronDown';\nimport { FiChevronRight } from '@react-icons/all-files/fi/FiChevronRight';\nimport { FiHeart } from '@react-icons/all-files/fi/FiHeart';\nimport { FiMessageSquare } from '@react-icons/all-files/fi/FiMessageSquare';\nimport { FiPackage } from '@react-icons/all-files/fi/FiPackage';\nimport { FiTruck } from '@react-icons/all-files/fi/FiTruck';\n// biome-ignore lint/style/useImportType: \nimport React, { useCallback, useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useHistory } from 'react-router-dom';\nimport { signup } from '~redux/auth/reducers/signup';\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\nimport type { Brand, BrandDetails } from '~redux/brand/types';\nimport { clearFavoriteBrands } from '~redux/favorite/actions';\nimport { makeFavoriteBrandSelector } from '~redux/favorite/selectors';\nimport {\n addFavoriteBrand,\n getFavoriteBrand,\n removeFavoriteBrand,\n} from '~redux/favorite/thunk';\nimport { formatCurrency, formatDate } from '~utils/formatter';\nimport { useThunk } from '~utils/hooks';\nimport { getPublicImageUrl } from '~utils/image';\nimport { getFreeShippingPeriod, isFreeShipping } from '~utils/shipping';\nimport BrandConditionModal from '~view/widgets/BrandConditionModal';\nimport BrandDetailModal from '~view/widgets/BrandDetailModal';\nimport SendMessage from '../../../../../widgets/SendMessage';\n\ntype BrandHeaderProps = {\n brand: BrandDetails;\n isProtected?: boolean;\n preview?: boolean;\n};\n\nconst BrandHeader: React.FC = ({\n brand,\n isProtected,\n preview,\n}) => {\n const dispatch = useDispatch();\n const user = useSelector(authUserSelector);\n const favoriteBrand = useSelector(makeFavoriteBrandSelector(brand.id));\n const [getFavorites] = useThunk(getFavoriteBrand);\n const [isConditionModalOpen, setConditionModalOpen] = useState(false);\n const [isDetailModalOpen, setDetailModalOpen] = useState(false);\n const [addToFavorite] = useThunk(addFavoriteBrand);\n const [removeFromFavorite] = useThunk(removeFavoriteBrand);\n const history = useHistory();\n const direct = !!qs.parse(history.location.search?.split('?')?.[1])?.direct;\n const contactId = qs.parse(history.location.search?.split('?')?.[1])\n ?.contactId;\n\n const follow = useCallback(() => {\n if (!user || !brand) {\n return;\n }\n addToFavorite(user, brand.id);\n setIsFollowed((prev) => !prev);\n }, [user, brand]);\n\n const unFollow = useCallback(() => {\n setIsFollowed(false);\n if (!favoriteBrand || !user) {\n return;\n }\n removeFromFavorite(favoriteBrand.id, user);\n }, [favoriteBrand, user]);\n\n const order = useCallback(() => {\n dispatch(\n signup({\n nextPath: `/brand/${brand.id}${location.search}`,\n referralId: direct ? brand.id : undefined,\n brand: (brand as unknown) as Brand,\n contactId: contactId as string,\n })\n );\n }, [direct, brand]);\n\n const scrollToReviews = useCallback(() => {\n const reviewList = document.getElementById(`review-list-${brand.id}`);\n if (reviewList) {\n reviewList.scrollIntoView({ block: 'center' });\n }\n }, [brand]);\n\n const [isFollowed, setIsFollowed] = useState(false);\n useEffect(() => {\n setIsFollowed(!!favoriteBrand);\n }, [favoriteBrand]);\n\n useEffect(() => {\n if (!user || !brand) {\n return;\n }\n getFavorites(user.attributes.sub, brand.id);\n return () => {\n dispatch(clearFavoriteBrands());\n };\n }, [user]);\n\n if (!brand) {\n return null;\n }\n\n const getAverageShipping = (val: number) => {\n if (0 <= val && val < 4) {\n return '1〜3日以内';\n } else if (4 <= val && val < 8) {\n return '4〜7日以内';\n } else if (8 <= val && val < 11) {\n return '8〜10日以内';\n } else if (11 <= val && val < 14) {\n return '11〜13日以内';\n } else if (14 <= val) {\n return '14日以上';\n }\n };\n\n return (\n
\n
\n
\n ) =>\n (e.target.src = 'https://placehold.jp/500x200.png?text=No image')\n }\n alt=\"brand key visual\"\n />\n
\n
\n \n
\n
\n {\n {\n e.currentTarget.src = `https://via.placeholder.com/80/fff/000/?text=${brand.brand_name.substring(\n 0,\n 1\n )}`;\n }}\n >\n }\n
\n
\n
\n \n {brand.brand_name}\n \n

{brand.company_name}

\n
\n
\n {[brand.brand_yomigana, brand.brand_address]\n .filter((item) => item)\n .join('・')}\n
\n {!!brand.reviews && (\n
\n
\n \n
\n
\n {brand.review_average!.toFixed(1)}\n \n ({brand.reviews}件のレビューを見る)\n \n
\n
\n )}\n
\n {!preview && (\n
\n {user && !isProtected && (\n <>\n
\n \n {!isFollowed ? (\n <>\n \n お気に入りに追加\n \n ) : (\n <>\n \n お気に入りに追加済み\n \n )}\n \n \n \n \n お問い合わせ\n \n \n
\n \n )}\n {!user && (\n \n 取引条件を見る\n \n )}\n
\n )}\n
\n {user && !isProtected && (\n
\n
\n {!!brand.brand_minimum_buy && (\n \n 最小発注金額\n {formatCurrency(brand.brand_minimum_buy)}\n \n )}\n {!brand.brand_minimum_buy && 最小発注金額なし}\n {!!brand.brand_additional_minimum_buy && (\n \n (2回目以降\n {formatCurrency(brand.brand_additional_minimum_buy)})\n \n )}\n
\n
\n {(!isFreeShipping() || preview) && (\n <>\n {brand.brand_shippinng_fee ? (\n \n 送料{formatCurrency(brand.brand_shippinng_fee)}\n {!!brand.brand_shippinng_fee_criteria && (\n \n ({brand.brand_shippinng_fee_criteria / 10000}\n 万円以降は送料無料)\n \n )}\n \n ) : (\n 送料無料\n )}\n \n )}\n {isFreeShipping() && !preview && (\n <>\n {brand.brand_shippinng_fee_criteria ? (\n <>\n \n 送料\n {formatCurrency(brand.brand_shippinng_fee)}\n \n 無料({formatDate(getFreeShippingPeriod(), 'MM/dd')}\n ご注文分まで)\n \n \n \n ) : (\n 送料無料\n )}\n \n )}\n
\n
\n setConditionModalOpen(true)}\n >\n その他の取引条件を見る\n \n \n {isConditionModalOpen && (\n setConditionModalOpen(false)}\n />\n )}\n
\n
\n )}\n
\n }\n className=\"bg-light p-3 mb-2 rounded flex-grow-1 brand-story-container text-black\"\n onClick={() => setDetailModalOpen(true)}\n action={}\n >\n
{brand.brand_content}
\n \n {user &&\n !isProtected &&\n (!!brand.average_shipping_days || !!brand.service_rate) && (\n
\n {brand.average_shipping_days != null && (\n
\n
\n \n 平均発送日数\n
\n \n \n {getAverageShipping(brand.average_shipping_days)}\n \n \n \n
\n )}\n {brand.service_rate != null && (\n
\n
\n \n 平均納品率\n
\n \n \n {Math.round(brand?.service_rate * 100)}%\n \n \n \n
\n )}\n
\n )}\n
\n {brand.tags?.length > 0 && (\n
\n {brand.tags.map((tag, tagIndex) => (\n \n ))}\n
\n )}\n setDetailModalOpen((prev) => !prev)}\n />\n
\n
\n );\n};\n\nexport default BrandHeader;\n","import React, { useEffect, useState } from 'react';\nimport { Badge, Button } from 'reactstrap';\nimport { CartSegment } from '~domain/order/CartSegment';\nimport { CartItem } from '~redux/cart/types';\nimport { formatCurrency } from '~utils/formatter';\n\ntype SegmentProps = {\n segment: CartSegment;\n isLast: boolean;\n selectItem: (item: CartItem) => void;\n removeItem: (items: CartItem[], qty: number) => void;\n};\n\nconst Segment: React.FC = ({\n segment,\n isLast,\n selectItem,\n removeItem,\n}) => {\n const [isFirstOrder, setIsFirstOrder] = useState(false);\n useEffect(() => {\n if (!segment) return;\n segment.isFirstOrder().then(setIsFirstOrder);\n }, [segment?.items?.length]);\n\n return (\n
\n
\n
\n
\n 発送予定日\n
\n
\n {segment.shippingDate}\n
\n
\n
\n {segment.isPreorder && (\n \n 予約注文\n \n )}\n {/* {!segment.isConsign && isFirstOrder && (\n \n 返品可能\n \n )} */}\n {segment.isConsign && (\n \n 委託販売\n \n )}\n
\n
\n \n \n ))}\n
\n
\n );\n};\n\nexport default Segment;\n","import './styles.scss';\r\n// biome-ignore lint/style/useImportType: \r\nimport React, { useCallback, useMemo, useState } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { Link } from 'react-router-dom';\r\nimport { Button, Progress } from 'reactstrap';\r\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\r\nimport type { BrandDetails } from '~redux/brand/types';\r\nimport {\r\n makeSelectCartItemsByBrand,\r\n makeSelectCartOriginalShippingFeeByBrands,\r\n makeSelectCartRetailSubtotalByBrands,\r\n makeSelectCartSegmentsByBrand,\r\n makeSelectCartSubtotalByBrands,\r\n makeSelectHasOrderedBrand,\r\n selectCartSavedForLaterBrands,\r\n selectOverMinimumBrands,\r\n} from '~redux/cart/selectors';\r\nimport { removeCart } from '~redux/cart/thunk';\r\nimport type { CartItem } from '~redux/cart/types';\r\nimport { formatCurrency, formatDate } from '~utils/formatter';\r\nimport { pushRemoveFromCartEvent } from '~utils/gtm';\r\nimport { getProductTypeString } from '~utils/product';\r\nimport { getFreeShippingPeriod, isFreeShipping } from '~utils/shipping';\r\nimport TypeSelectModal from '~view/widgets/TypeSelectModal';\r\nimport Segment from './Segment';\r\n\r\nexport type SideCartProps = { brand: BrandDetails };\r\n\r\nconst SideCart: React.FC = ({ brand }) => {\r\n const dispatch = useDispatch();\r\n const user = useSelector(authUserSelector);\r\n const [selectedItem, setSelectedItem] = useState();\r\n\r\n const cartItems = useSelector(makeSelectCartItemsByBrand(brand.id));\r\n const subtotal = useSelector(makeSelectCartSubtotalByBrands([brand.id]));\r\n const retailSubtotal = useSelector(\r\n makeSelectCartRetailSubtotalByBrands([brand.id])\r\n );\r\n const hasOrdered = useSelector(makeSelectHasOrderedBrand(brand.id));\r\n const minimum = useMemo(\r\n () =>\r\n hasOrdered\r\n ? brand.brand_additional_minimum_buy ?? brand.brand_minimum_buy\r\n : brand.brand_minimum_buy,\r\n [hasOrdered]\r\n );\r\n const segments = useSelector(makeSelectCartSegmentsByBrand(brand.id));\r\n const originalShippingFee = useSelector(\r\n makeSelectCartOriginalShippingFeeByBrands([brand.id])\r\n );\r\n const savedForLaterBrands = useSelector(selectCartSavedForLaterBrands);\r\n const overMinimumBrands = useSelector(selectOverMinimumBrands);\r\n\r\n const removeItem = useCallback(\r\n (items: CartItem[], quantity: number) => {\r\n if (!user) {\r\n return;\r\n }\r\n items.forEach((item) => dispatch(removeCart(item.id, quantity)));\r\n pushRemoveFromCartEvent(\r\n items.map((item, index) => ({\r\n item_name: item.product.product_name,\r\n item_id: item.product.id,\r\n // @ts-ignore\r\n price: item.product.unitPrice,\r\n item_brand: item.product.brand.brand_name,\r\n item_category: item.product.product_category,\r\n item_category2: item.product.product_subcategory,\r\n item_variant: item.productType\r\n ? getProductTypeString(item.productType)\r\n : undefined,\r\n item_list_name: document.title,\r\n item_list_id: document.location.pathname,\r\n index: index,\r\n quantity: quantity,\r\n })),\r\n user\r\n );\r\n },\r\n [user]\r\n );\r\n\r\n return (\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n {!cartItems?.length && (\r\n
\r\n

\r\n {`最小発注金額:${\r\n minimum ? formatCurrency(minimum) : 'なし'\r\n }`}\r\n

\r\n
\r\n )}\r\n {!!cartItems?.length && (\r\n

\r\n {subtotal >= minimum\r\n ? '注文可能です!'\r\n : `あと${formatCurrency(minimum - subtotal)}で注文可能です`}\r\n

\r\n )}\r\n
\r\n
\r\n
\r\n
\r\n \r\n {!cartItems?.length && (\r\n
\r\n {/* {!hasOrdered ? (\r\n
\r\n {brand.brand_name}\r\n との初回お取引で購入した商品は{SERVICE_NAME}へ返品できます。\r\n
\r\n ) : (\r\n 'このブランドのカートは空です!'\r\n )} */}\r\n このブランドのカートは空です!\r\n
\r\n )}\r\n {!!cartItems?.length && (\r\n <>\r\n {segments.map((segment, i) => (\r\n setSelectedItem(item)}\r\n removeItem={removeItem}\r\n />\r\n ))}\r\n \r\n )}\r\n
\r\n
\r\n
\r\n
\r\n 小計\r\n
\r\n
\r\n
\r\n {formatCurrency(subtotal)}\r\n
\r\n
\r\n \r\n 上代:\r\n {formatCurrency(retailSubtotal)}\r\n \r\n
\r\n
\r\n
\r\n
\r\n
送料
\r\n {(!isFreeShipping() || originalShippingFee === 0) && (\r\n
{formatCurrency(originalShippingFee)}
\r\n )}\r\n {isFreeShipping() && originalShippingFee !== 0 && (\r\n
\r\n
\r\n {formatCurrency(originalShippingFee)}\r\n ¥0\r\n
\r\n
\r\n \r\n 送料無料キャンペーン中(\r\n {formatDate(getFreeShippingPeriod(), 'MM/dd')}\r\n ご注文分まで)\r\n \r\n
\r\n
\r\n )}\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n {Boolean(!savedForLaterBrands.length) && (\r\n \r\n \r\n このブランドのみ注文する\r\n \r\n \r\n )}\r\n
\r\n {selectedItem && (\r\n setSelectedItem(undefined)}\r\n index={0}\r\n cart\r\n />\r\n )}\r\n
\r\n );\r\n};\r\n\r\nexport default SideCart;\r\n","import React from 'react';\nimport { Container } from 'reactstrap';\nimport BrandListViewItem from '~view/widgets/BrandListViewItem';\nimport HorizontalSlider from '~view/widgets/HorizontalSlider';\nimport Skeleton from '~view/widgets/Skeleton';\n\nconst SkeletonItems: React.FC = () => {\n return (\n \n
\n \n
\n \n {[...new Array(5)].map(() => (\n \n ))}\n \n
\n );\n};\n\nexport default SkeletonItems;\n","import React, { useMemo } from 'react';\nimport { Container } from 'reactstrap';\nimport SkeletonItems from '../SkeletonItems';\nimport { BrandReadModel } from '~types/api';\nimport BrandListViewItem from '~view/widgets/BrandListViewItem';\nimport HorizontalSlider from '~view/widgets/HorizontalSlider';\nimport { useInstantSearch } from '~view/widgets/InstantSearchProvider';\n\nconst Items: React.FC<{ brandIds: string[] }> = ({ brandIds }) => {\n const {\n hits,\n searching,\n isSearchStalled,\n } = useInstantSearch();\n\n const brands = useMemo(\n () =>\n brandIds\n .map((brandId) => hits?.find((brand) => brand.id === brandId))\n .filter((brand) => brand),\n [brandIds, hits]\n );\n\n if (searching && !isSearchStalled) {\n return ;\n }\n\n if (!brands?.length) {\n return null;\n }\n\n return (\n \n
\n
おすすめのブランド
\n
\n \n {brands.map((brand) => (\n \n ))}\n \n
\n );\n};\n\nexport default Items;\n","import React, { useEffect, useMemo } from 'react';\nimport { useSelector } from 'react-redux';\nimport InstantSearchProvider from '../InstantSearchProvider';\nimport Items from './Items';\nimport SkeletonItems from './SkeletonItems';\nimport { BRAND_SEARCH_INDEX } from '~constants/search';\nimport { getSimilarBrands } from '~graphql/queries';\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\nimport { useGraphql } from '~view/hooks/graphql';\n\nconst SimilarBrands: React.FC<{ brandId: string }> = ({ brandId }) => {\n const user = useSelector(authUserSelector);\n const [similarBrands, fetchSimilarBrands, isLoading] = useGraphql(\n getSimilarBrands,\n (data) => {\n return data.getSimilarBrands;\n }\n );\n\n useEffect(() => {\n if (!user) return;\n fetchSimilarBrands({\n userId: user.attributes.sub,\n brandId,\n limit: 20,\n });\n }, [user]);\n\n const filter = useMemo(\n () =>\n `category_page_id:brands AND (${similarBrands\n ?.map((brandId) => `id:'${brandId}'`)\n .join(' OR ')})`,\n [similarBrands]\n );\n\n if (isLoading) {\n return ;\n }\n\n if (!similarBrands) {\n return null;\n }\n\n return (\n \n \n \n );\n};\n\nexport default SimilarBrands;\n","import './styles.scss';\r\nimport React, { useMemo } from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport { Link } from 'react-router-dom';\r\nimport { Col, Container, Row } from 'reactstrap';\r\nimport ProductList from './AlgoliaList';\r\nimport BrandHeader from './BrandHeader';\r\nimport SideCart from './SideCart';\r\nimport { accountSelector } from '~redux/account/selectors/account';\r\nimport { BrandDetails } from '~redux/brand/types';\r\nimport { selectProjectId } from '~redux/project';\r\nimport { isProtectedBrand } from '~utils/brand';\r\nimport { getPublicImageUrl } from '~utils/image';\r\nimport { useHeadContent } from '~view/hooks/head';\r\nimport ProductReviewList from '~view/widgets/ProductReviewList';\r\nimport ProductSearchProvider from '~view/widgets/ProductSearchProvider';\r\nimport SendMessage from '~view/widgets/SendMessage';\r\nimport SimilarBrands from '~view/widgets/SimilarBrands';\r\n\r\ntype BuyerListViewBrandProps = {\r\n brand: BrandDetails;\r\n preview?: boolean;\r\n};\r\n\r\nconst ListViewBrandContainer: React.FC = ({\r\n brand,\r\n preview,\r\n}) => {\r\n const account = useSelector(accountSelector);\r\n const isProtected = !!useMemo(\r\n () => account && isProtectedBrand(brand, account),\r\n [brand, account]\r\n );\r\n useHeadContent({\r\n title: `${brand.brand_name}の卸売商品一覧`,\r\n description: brand.brand_content,\r\n image: getPublicImageUrl(brand.brand_icon_imageKey || '', {\r\n w: 300,\r\n h: 300,\r\n }),\r\n url: `${process.env.REACT_APP_DOMAIN}/brand/${brand.id}`,\r\n breadcrumbs: [\r\n {\r\n text: 'トップ',\r\n url: process.env.REACT_APP_DOMAIN,\r\n },\r\n {\r\n text: brand.brand_name,\r\n },\r\n ],\r\n });\r\n\r\n const listId = useMemo(() => `brands > ${brand.id}`, [brand]);\r\n\r\n const projectId = useSelector(selectProjectId);\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n
\r\n Home /{' '}\r\n {brand.brand_name}\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n {account && !isProtected && !preview && (\r\n \r\n \r\n \r\n )}\r\n
\r\n {account &&\r\n !isProtected &&\r\n !preview &&\r\n (brand?.product?.items?.length ?? 0) > 0 && (\r\n \r\n \r\n \r\n ブランドへの問い合わせ\r\n \r\n \r\n \r\n )}\r\n {account && !preview && projectId !== 'mag' && (\r\n \r\n )}\r\n {projectId !== 'mag' && (\r\n \r\n \r\n \r\n )}\r\n
\r\n );\r\n};\r\n\r\nexport default ListViewBrandContainer;\r\n","import { HiChevronLeft } from '@react-icons/all-files/hi/HiChevronLeft';\nimport { HiChevronRight } from '@react-icons/all-files/hi/HiChevronRight';\nimport { ScrollingCarousel } from '@trendyol-js/react-carousel';\nimport React, { useCallback, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { Button } from 'reactstrap';\nimport { collectionListSelector } from '~redux/collection/selectors';\nimport { changedFilterValues } from '~redux/search/product';\nimport { paginate } from '~usecases/buyer/search/product';\nimport { getPublicImageUrl } from '~utils/image';\n\nconst Collections: React.FC<{ listId: string }> = ({ listId }) => {\n const dispatch = useDispatch();\n const collections = useSelector(collectionListSelector);\n const [collectionId, setCollectionId] = useState();\n\n const handleCollectionClick = useCallback(\n (collectionId) => {\n if (!collectionId) {\n dispatch(\n changedFilterValues({ listId, attribute: 'collection_id', items: [] })\n );\n dispatch(paginate({ listId, page: 1 }));\n setCollectionId(collectionId);\n return;\n }\n dispatch(\n changedFilterValues({\n listId,\n attribute: 'collection_id',\n items: [`collection_id:'${collectionId}'`],\n })\n );\n dispatch(paginate({ listId, page: 1 }));\n setCollectionId(collectionId);\n },\n [listId]\n );\n\n if (!collections?.length) {\n return null;\n }\n\n return (\n \n \n \n }\n leftIcon={\n
\n \n
\n }\n >\n handleCollectionClick(undefined)}\n outline={!!collectionId}\n >\n
すべて
\n \n <>\n {collections.map((collection) => (\n handleCollectionClick(collection.id!)}\n >\n
\n \n {collection.name}\n
\n \n ))}\n \n \n );\n};\n\nexport default Collections;\n","import React from 'react';\nimport { useLimitedProducts } from '~view/pages/buyer/ListViewBrand/hooks';\nimport ProductListViewItem from '~view/widgets/ProductListViewItem';\n\nconst LimitedProducts: React.FC<{ brandId: string; preview?: boolean }> = ({\n brandId,\n preview,\n}) => {\n const { limitedProducts } = useLimitedProducts(brandId);\n\n if (!limitedProducts?.length) {\n return null;\n }\n\n return (\n <>\n {limitedProducts?.map((product, i) => (\n
\n \n
\n ))}\n \n );\n};\n\nexport default LimitedProducts;\n","import './styles.scss';\nimport React, { useEffect, useRef } from 'react';\nimport { Col, Row } from 'reactstrap';\nimport Collections from './Collections';\nimport LimitedProducts from './LimitedProducts';\nimport { BrandDetails } from '~redux/brand/types';\nimport {\n selectProducts,\n selectProductListPage,\n selectProductListQuery,\n selectProductListSortType,\n} from '~redux/search/product';\nimport InventoryProvider from '~view/widgets/InventoryProvider';\nimport { ProductListViewItemByAlgolia } from '~view/widgets/ProductListViewItemByAlgolia';\nimport ProductSearchPagination from '~view/widgets/ProductSearchPagination';\nimport { useProductSearchSelector } from '~view/widgets/ProductSearchProvider';\n\ntype DetailListProps = {\n listId: string;\n isProtected?: boolean | null;\n brand: BrandDetails;\n preview?: boolean;\n};\n\nconst DetailList: React.FC = ({\n listId,\n isProtected,\n brand,\n preview,\n}) => {\n const products = useProductSearchSelector(selectProducts, listId);\n const listRef = useRef(null);\n\n const page = useProductSearchSelector(selectProductListPage, listId);\n const sort = useProductSearchSelector(selectProductListSortType, listId);\n const query = useProductSearchSelector(selectProductListQuery, listId);\n const filters = useProductSearchSelector(\n selectProductListQuery,\n listId,\n (a, b) => JSON.stringify(a) === JSON.stringify(b)\n );\n const isMounted = useRef(false);\n useEffect(() => {\n if (!isMounted.current) {\n isMounted.current = true;\n return;\n }\n listRef.current?.scrollIntoView({ block: 'center' });\n }, [page, sort, query, filters]);\n\n return (\n \n \n {!isProtected && }\n product.id!) ?? []}\n >\n
\n \n {products.map((product, i) => (\n
\n \n
\n ))}\n \n
\n \n
\n \n \n );\n};\n\nexport default DetailList;\n","import React from 'react';\nimport { useSelector } from 'react-redux';\nimport { Row } from 'reactstrap';\nimport { collectionListSelector } from '~redux/collection/selectors';\nimport CollectionListViewItem from '~view/widgets/CollectionListViewItem';\n\nconst Collections: React.FC = () => {\n const collections = useSelector(collectionListSelector);\n\n return (\n \n {collections.map((collection) => (\n \n ))}\n \n );\n};\n\nexport default Collections;\n","import React, { useCallback, useEffect, useRef, useState } from 'react';\nimport { useHistory } from 'react-router';\nimport { Col, Row } from 'reactstrap';\nimport { useLimitedProducts } from '../../../hooks';\nimport Collections from './Collections';\nimport { BrandDetails } from '~redux/brand/types';\nimport {\n selectIsProductSearching,\n selectProducts,\n selectProductListPage,\n selectProductListQuery,\n selectProductListSortType,\n} from '~redux/search/product';\nimport AlgoliaRefinementListSidebar from '~view/pages/buyer/ListViewQuery/Sidebar';\nimport InventoryProvider from '~view/widgets/InventoryProvider';\nimport ProductListViewItem from '~view/widgets/ProductListViewItem';\nimport { ProductListViewItemByAlgolia } from '~view/widgets/ProductListViewItemByAlgolia';\nimport ProductSearchPagination from '~view/widgets/ProductSearchPagination';\nimport { useProductSearchSelector } from '~view/widgets/ProductSearchProvider';\n\ntype GridListProps = {\n listId: string;\n isProtected?: boolean | null;\n brand: BrandDetails;\n};\n\nconst GridList: React.FC = ({ listId, isProtected, brand }) => {\n const products = useProductSearchSelector(selectProducts, listId);\n const searching = useProductSearchSelector(selectIsProductSearching, listId);\n\n const { limitedProducts, loading } = useLimitedProducts(brand.id);\n const listRef = useRef(null);\n\n const history = useHistory();\n const [subcategory, setSubcategory] = useState();\n const handleSubcategory = useCallback(\n (subcategory) => {\n setSubcategory(subcategory);\n const url = new URL(location.href);\n url.searchParams.delete('page');\n history.push(`${url.pathname}${url.search}`);\n if (!listRef?.current) {\n return;\n }\n listRef.current.scrollIntoView({ block: 'center' });\n },\n [listRef]\n );\n\n const page = useProductSearchSelector(selectProductListPage, listId);\n const sort = useProductSearchSelector(selectProductListSortType, listId);\n const query = useProductSearchSelector(selectProductListQuery, listId);\n const isMounted = useRef(false);\n useEffect(() => {\n if (!isMounted.current) {\n isMounted.current = true;\n return;\n }\n listRef.current?.scrollIntoView({ block: 'center' });\n }, [page, sort, query]);\n\n return (\n
\n \n \n \n \n \n {!isProtected &&\n !query &&\n sort === 'brandRecommended' &&\n !subcategory && }\n
\n \n product.id!) ?? []}\n >\n {limitedProducts?.map((product, index) => (\n \n ))}\n {!searching &&\n products?.map((product, index) => (\n \n ))}\n \n {(searching || loading) &&\n [...Array(20)].map(() => (\n \n ))}\n \n {!searching && !products.length && !limitedProducts?.length && (\n \n
\n {query &&
該当する商品は見つかりませんでした。
}\n {!query && (\n <>\n
ただいま準備中です
\n
商品が登録されるまでしばらくお待ちください!
\n \n )}\n
\n
\n )}\n \n
\n
\n \n
\n
\n );\n};\n\nexport default GridList;\n","import './styles.scss';\nimport { AiFillAppstore } from '@react-icons/all-files/ai/AiFillAppstore';\nimport { AiOutlineUnorderedList } from '@react-icons/all-files/ai/AiOutlineUnorderedList';\nimport React, { useCallback, useMemo } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { Col, Row } from 'reactstrap';\nimport { accountSelector } from '~redux/account/selectors/account';\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\nimport { Brand } from '~redux/brand/types';\nimport {\n changedItemsPerPage,\n changedQuery,\n clearedFilters,\n selectIsProductSearching,\n selectProducts,\n} from '~redux/search/product';\nimport { paginate } from '~usecases/buyer/search/product';\nimport { isProtectedBrand } from '~utils/brand';\nimport debounce from '~utils/debounce';\nimport { useProductSearchSelector } from '~view/widgets/ProductSearchProvider';\nimport ProductSearchSortDropdown from '~view/widgets/ProductSearchSortDropdown';\n\ntype ListViewBrandHeaderProps = {\n listId: string;\n setViewType: (type: 'grid' | 'list') => void;\n viewType: 'grid' | 'list';\n brand: Brand;\n};\n\nconst ListViewBrandHeader: React.FC = ({\n listId,\n setViewType,\n viewType,\n brand,\n}) => {\n const auth = useSelector(authUserSelector);\n const account = useSelector(accountSelector);\n const isProtected = useMemo(\n () =>\n auth?.attributes.profile === 'buyer' &&\n account &&\n isProtectedBrand(brand, account),\n [brand, account, auth]\n );\n\n const products = useProductSearchSelector(selectProducts, listId);\n const searching = useProductSearchSelector(selectIsProductSearching, listId);\n\n const dispatch = useDispatch();\n const onInputKeyword = useCallback(\n debounce((query) => {\n dispatch(changedQuery({ listId, query }));\n }, 300),\n [listId]\n );\n\n const toggleView = useCallback(\n (view) => {\n dispatch(clearedFilters(listId));\n dispatch(\n changedItemsPerPage({ listId, itemsPerPage: view === 'grid' ? 60 : 10 })\n );\n dispatch(paginate({ listId, page: 1 }));\n dispatch(changedQuery({ listId, query: undefined }));\n setViewType(view);\n },\n [listId]\n );\n\n return (\n
\n \n \n
\n \n \n {(searching || !!products.length) && (\n \n \n onInputKeyword(e.currentTarget.value)}\n maxLength={40}\n />\n \n \n
\n \n
\n {auth && !isProtected && (\n \n )}\n \n
\n )}\n
\n );\n};\n\nexport default ListViewBrandHeader;\n","import qs from 'querystring';\r\nimport React, { useEffect, useCallback, useState, useMemo } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { useHistory } from 'react-router';\r\nimport { Container } from 'reactstrap';\r\nimport DetailList from './DetailList';\r\nimport GridList from './GridList';\r\nimport ListViewBrandHeader from './ListViewHeader';\r\nimport { accountSelector } from '~redux/account/selectors/account';\r\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\r\nimport { Brand, BrandDetails } from '~redux/brand/types';\r\nimport { clearCollectionList } from '~redux/collection/actions';\r\nimport { getCollectionList } from '~redux/collection/thunk';\r\nimport { selectDirectContactOwners } from '~redux/contact';\r\nimport { changedItemsPerPage } from '~redux/search/product';\r\nimport { isProtectedBrand } from '~utils/brand';\r\n\r\nexport type ProductListProps = {\r\n brand: BrandDetails;\r\n preview?: boolean;\r\n listId: string;\r\n};\r\n\r\nconst ProductList: React.FC = ({\r\n brand,\r\n preview,\r\n listId,\r\n}) => {\r\n const dispatch = useDispatch();\r\n const user = useSelector(authUserSelector);\r\n const account = useSelector(accountSelector);\r\n\r\n const history = useHistory();\r\n const [viewType, setViewType] = useState<'grid' | 'list'>('grid');\r\n const toggleViewType = useCallback((view: 'grid' | 'list') => {\r\n setViewType(view);\r\n const url = new URL(location.href);\r\n url.searchParams.set('layout', view);\r\n url.searchParams.delete('page');\r\n history.push(`${location.pathname}${url.search}`);\r\n }, []);\r\n\r\n const { layout } = qs.parse(location.search.substring(1));\r\n useEffect(() => {\r\n if (!layout) return;\r\n setViewType(layout as 'grid' | 'list');\r\n dispatch(\r\n changedItemsPerPage({ listId, itemsPerPage: layout === 'grid' ? 60 : 10 })\r\n );\r\n }, [layout]);\r\n\r\n const directOwners = useSelector(selectDirectContactOwners);\r\n useEffect(() => {\r\n dispatch(\r\n getCollectionList({\r\n brand_id: brand.id,\r\n directOwners,\r\n onlyPublished: true,\r\n unAuth: !user,\r\n })\r\n );\r\n return () => {\r\n dispatch(clearCollectionList());\r\n };\r\n }, [brand.id, user, directOwners]);\r\n\r\n const isProtected = useMemo(\r\n () => account && isProtectedBrand(brand, account),\r\n [account]\r\n );\r\n\r\n return (\r\n \r\n
\r\n \r\n
\r\n {viewType === 'grid' && (\r\n \r\n )}\r\n {viewType === 'list' && (\r\n \r\n )}\r\n
\r\n );\r\n};\r\n\r\nexport default ProductList;\r\n","import './styles.scss';\nimport { Button, Chip, Container } from '@material-ui/core';\nimport Alert from '@material-ui/lab/Alert';\nimport { FiBook } from '@react-icons/all-files/fi/FiBook';\nimport { FiChevronDown } from '@react-icons/all-files/fi/FiChevronDown';\nimport { FiExternalLink } from '@react-icons/all-files/fi/FiExternalLink';\nimport { FiMessageSquare } from '@react-icons/all-files/fi/FiMessageSquare';\nimport React, { useEffect, useState } from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport SendMessage from '../../../../../widgets/SendMessage';\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\nimport { BrandDetails } from '~redux/brand/types';\nimport { clearFavoriteBrands } from '~redux/favorite/actions';\nimport { getFavoriteBrand } from '~redux/favorite/thunk';\nimport { formatCurrency } from '~utils/formatter';\nimport { useThunk } from '~utils/hooks';\nimport { getPublicImageUrl } from '~utils/image';\nimport BrandDetailModal from '~view/widgets/BrandDetailModal';\n\ntype BrandHeaderProps = {\n brand: BrandDetails;\n isProtected?: boolean;\n preview?: boolean;\n};\n\nconst BrandHeader: React.FC = ({\n brand,\n isProtected,\n preview,\n}) => {\n const dispatch = useDispatch();\n const user = useSelector(authUserSelector);\n const [getFavorites] = useThunk(getFavoriteBrand);\n const [isDetailModalOpen, setDetailModalOpen] = useState(false);\n\n useEffect(() => {\n if (!user || !brand) {\n return;\n }\n getFavorites(user.attributes.sub, brand.id);\n return () => {\n dispatch(clearFavoriteBrands());\n };\n }, [user]);\n\n if (!brand) {\n return null;\n }\n\n return (\n
\n
\n
\n ) =>\n (e.target.src = 'https://placehold.jp/500x200.png?text=No image')\n }\n alt=\"brand key visual\"\n />\n
\n
\n \n
\n
\n {\n {\n e.currentTarget.src = `https://via.placeholder.com/80/fff/000/?text=${brand.brand_name.substring(\n 0,\n 1\n )}`;\n }}\n >\n }\n
\n
\n
\n \n {brand.brand_name}\n \n

{brand.company_name}

\n
\n
\n {[brand.brand_yomigana, brand.brand_address]\n .filter((item) => item)\n .join('・')}\n
\n
\n {!preview && (\n
\n {user && !isProtected && (\n <>\n
\n \n \n \n お問い合わせ\n \n \n
\n \n )}\n
\n )}\n
\n {user && !isProtected && (\n
\n
\n {!!brand.brand_minimum_buy && (\n \n 最小発注金額\n {formatCurrency(brand.brand_minimum_buy)}\n \n )}\n {!brand.brand_minimum_buy && 最小発注金額なし}\n {!!brand.brand_additional_minimum_buy && (\n \n (2回目以降\n {formatCurrency(brand.brand_additional_minimum_buy)})\n \n )}\n
\n
\n )}\n
\n }\n className=\"bg-light p-3 mb-2 rounded flex-grow-1 brand-story-container text-black\"\n onClick={() => setDetailModalOpen(true)}\n action={}\n >\n
{brand.brand_content}
\n \n
\n {brand.tags?.length > 0 && (\n
\n {brand.tags.map((tag, tagIndex) => (\n \n ))}\n
\n )}\n {user && !isProtected && brand.tags?.includes('展示会開催中') && (\n \n \n \n }\n >\n {brand.brand_name}\n は展示会の参加希望者を募集中です。\n \n )}\n setDetailModalOpen((prev) => !prev)}\n />\n
\n
\n );\n};\n\nexport default BrandHeader;\n","import React, { useEffect, useState } from 'react';\nimport { Badge, Button } from 'reactstrap';\nimport { CartSegment } from '~domain/order/CartSegment';\nimport { CartItem } from '~redux/cart/types';\nimport { formatCurrency } from '~utils/formatter';\n\ntype SegmentProps = {\n segment: CartSegment;\n isLast: boolean;\n selectItem: (item: CartItem) => void;\n removeItem: (items: CartItem[], qty: number) => void;\n};\n\nconst Segment: React.FC = ({\n segment,\n isLast,\n selectItem,\n removeItem,\n}) => {\n return (\n \n
\n );\n};\n\nexport default Segment;\n","import './styles.scss';\r\nimport React, { useCallback, useMemo, useState } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { Link } from 'react-router-dom';\r\nimport { Button, Progress } from 'reactstrap';\r\nimport Segment from './Segment';\r\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\r\nimport { BrandDetails } from '~redux/brand/types';\r\nimport {\r\n makeSelectCartItemsByBrand,\r\n makeSelectCartRetailSubtotalByBrands,\r\n makeSelectCartSegmentsByBrand,\r\n makeSelectCartSubtotalByBrands,\r\n makeSelectHasOrderedBrand,\r\n selectCartSavedForLaterBrands,\r\n selectOverMinimumBrands,\r\n} from '~redux/cart/selectors';\r\nimport { removeCart } from '~redux/cart/thunk';\r\nimport { CartItem } from '~redux/cart/types';\r\nimport { formatCurrency } from '~utils/formatter';\r\nimport { pushRemoveFromCartEvent } from '~utils/gtm';\r\nimport { getProductTypeString } from '~utils/product';\r\nimport TypeSelectModal from '~view/widgets/TypeSelectModal';\r\n\r\nexport type SideCartProps = { brand: BrandDetails };\r\n\r\nconst SideCart: React.FC = ({ brand }) => {\r\n const dispatch = useDispatch();\r\n const user = useSelector(authUserSelector);\r\n const [selectedItem, setSelectedItem] = useState();\r\n\r\n const cartItems = useSelector(makeSelectCartItemsByBrand(brand.id));\r\n const subtotal = useSelector(makeSelectCartSubtotalByBrands([brand.id]));\r\n const retailSubtotal = useSelector(\r\n makeSelectCartRetailSubtotalByBrands([brand.id])\r\n );\r\n const hasOrdered = useSelector(makeSelectHasOrderedBrand(brand.id));\r\n const minimum = useMemo(\r\n () =>\r\n hasOrdered\r\n ? brand.brand_additional_minimum_buy ?? brand.brand_minimum_buy\r\n : brand.brand_minimum_buy,\r\n [hasOrdered]\r\n );\r\n const segments = useSelector(makeSelectCartSegmentsByBrand(brand.id));\r\n const savedForLaterBrands = useSelector(selectCartSavedForLaterBrands);\r\n const overMinimumBrands = useSelector(selectOverMinimumBrands);\r\n\r\n const removeItem = useCallback(\r\n (items: CartItem[], quantity: number) => {\r\n if (!user) {\r\n return;\r\n }\r\n items.forEach((item) => dispatch(removeCart(item.id, quantity)));\r\n pushRemoveFromCartEvent(\r\n items.map((item, index) => ({\r\n item_name: item.product.product_name,\r\n item_id: item.product.id,\r\n // @ts-ignore\r\n price: item.product.unitPrice,\r\n item_brand: item.product.brand.brand_name,\r\n item_category: item.product.product_category,\r\n item_category2: item.product.product_subcategory,\r\n item_variant: item.productType\r\n ? getProductTypeString(item.productType)\r\n : undefined,\r\n item_list_name: document.title,\r\n item_list_id: document.location.pathname,\r\n index: index,\r\n quantity: quantity,\r\n })),\r\n user\r\n );\r\n },\r\n [user]\r\n );\r\n\r\n return (\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n {!cartItems?.length && (\r\n
\r\n

\r\n {`最小発注金額:${\r\n minimum ? formatCurrency(minimum) : 'なし'\r\n }`}\r\n

\r\n
\r\n )}\r\n {!!cartItems?.length && (\r\n

\r\n {subtotal >= minimum\r\n ? '注文可能です!'\r\n : `あと${formatCurrency(minimum - subtotal)}で注文可能です`}\r\n

\r\n )}\r\n
\r\n
\r\n
\r\n
\r\n \r\n {!cartItems?.length && (\r\n
\r\n このブランドのカートは空です!\r\n
\r\n )}\r\n {!!cartItems?.length && (\r\n <>\r\n {segments.map((segment, i) => (\r\n setSelectedItem(item)}\r\n removeItem={removeItem}\r\n />\r\n ))}\r\n \r\n )}\r\n
\r\n
\r\n
\r\n
\r\n 小計\r\n
\r\n
\r\n
\r\n {formatCurrency(subtotal)}\r\n
\r\n
\r\n \r\n 上代:\r\n {formatCurrency(retailSubtotal)}\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n {Boolean(!savedForLaterBrands.length) && (\r\n \r\n \r\n このブランドのみ注文する\r\n \r\n \r\n )}\r\n
\r\n {selectedItem && (\r\n setSelectedItem(undefined)}\r\n index={0}\r\n cart\r\n />\r\n )}\r\n
\r\n );\r\n};\r\n\r\nexport default SideCart;\r\n","import './styles.scss';\r\nimport qs from 'querystring';\r\nimport React, { useEffect, useMemo } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { Link, useHistory } from 'react-router-dom';\r\nimport { Col, Container, Row } from 'reactstrap';\r\nimport ProductList from './AlgoliaList';\r\nimport BrandHeader from './BrandHeader';\r\nimport SideCart from './SideCart';\r\nimport { accountSelector } from '~redux/account/selectors/account';\r\nimport { signup } from '~redux/auth/reducers/signup';\r\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\r\nimport { BrandDetails, Brand } from '~redux/brand/types';\r\nimport { isProtectedBrand } from '~utils/brand';\r\nimport { getPublicImageUrl } from '~utils/image';\r\nimport { useHeadContent } from '~view/hooks/head';\r\nimport ProductSearchProvider from '~view/widgets/ProductSearchProvider';\r\nimport SendMessage from '~view/widgets/SendMessage';\r\n\r\ntype BuyerListViewBrandDirectProps = {\r\n brand: BrandDetails;\r\n preview?: boolean;\r\n};\r\n\r\nconst ListViewBrandContainerDirect: React.FC = ({\r\n brand,\r\n preview,\r\n}) => {\r\n const account = useSelector(accountSelector);\r\n const isProtected = !!useMemo(\r\n () => account && isProtectedBrand(brand, account),\r\n [brand, account]\r\n );\r\n const history = useHistory();\r\n const contactId = qs.parse(history.location.search?.split('?')?.[1])\r\n ?.contactId;\r\n useHeadContent({\r\n title: `${brand.brand_name}の卸売商品一覧`,\r\n description: brand.brand_content,\r\n image: getPublicImageUrl(brand.brand_icon_imageKey || '', {\r\n w: 300,\r\n h: 300,\r\n }),\r\n url: `${process.env.REACT_APP_DOMAIN}/brand/${brand.id}`,\r\n breadcrumbs: [\r\n {\r\n text: 'トップ',\r\n url: process.env.REACT_APP_DOMAIN,\r\n },\r\n {\r\n text: brand.brand_name,\r\n },\r\n ],\r\n });\r\n\r\n const listId = useMemo(() => `brands > ${brand.id}`, [brand]);\r\n\r\n const dispatch = useDispatch();\r\n const auth = useSelector(authUserSelector);\r\n useEffect(() => {\r\n if (auth) return;\r\n const timer = setTimeout(\r\n () =>\r\n dispatch(\r\n signup({\r\n brand: (brand as unknown) as Brand,\r\n referralId: brand.id,\r\n nextPath: `/brand/${brand.id}?direct=true`,\r\n contactId: contactId as string,\r\n })\r\n ),\r\n 3000\r\n );\r\n return () => {\r\n clearTimeout(timer);\r\n };\r\n }, [auth, brand, contactId]);\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n
\r\n Home /{' '}\r\n {brand.brand_name}\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n {account && !isProtected && !preview && (\r\n \r\n \r\n \r\n )}\r\n
\r\n {account &&\r\n !isProtected &&\r\n !preview &&\r\n (brand?.product?.items?.length ?? 0) > 0 && (\r\n \r\n \r\n \r\n ブランドへの問い合わせ\r\n \r\n \r\n \r\n )}\r\n
\r\n );\r\n};\r\n\r\nexport default ListViewBrandContainerDirect;\r\n","import './styles.scss';\r\nimport qs from 'querystring';\r\nimport React, { useEffect } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { Redirect, useHistory, useParams } from 'react-router';\r\nimport ListViewBrandContainer from './ListViewContainer';\r\nimport ListViewContainerDirect from './ListViewContainerDirect';\r\nimport { signup } from '~redux/auth/reducers/signup';\r\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\r\nimport { authenticatingSelector } from '~redux/auth/selectors/authenticating';\r\nimport { clearBrandDetails } from '~redux/brand/actions/details';\r\nimport { brandInfoSelector } from '~redux/brand/selectors';\r\nimport { getBrandInfo } from '~redux/brand/thunk/details';\r\nimport { Brand } from '~redux/brand/types';\r\nimport { brandViewed } from '~utils/segment';\r\nimport { useThunkQueue } from '~view/hooks/thunk';\r\nimport AuthPage from '~view/widgets/AuthPage';\r\nimport BuyerPage from '~view/widgets/BuyerPage';\r\nimport LoadingContainer from '~view/widgets/LoadingContainer';\r\n\r\ntype ListViewBrandProps = {};\r\n\r\nconst ListViewBrand: React.FC = () => {\r\n const dispatch = useDispatch();\r\n const { brand_id } = useParams<{ brand_id: string }>();\r\n const brand = useSelector(brandInfoSelector);\r\n const user = useSelector(authUserSelector);\r\n const history = useHistory();\r\n const direct = !!qs.parse(history.location.search?.split('?')?.[1])?.direct;\r\n const contactId = qs.parse(history.location.search?.split('?')?.[1])\r\n ?.contactId;\r\n const isAuthLoading = useSelector(authenticatingSelector);\r\n\r\n const { queue, isProcessing } = useThunkQueue('getBrandInfo');\r\n useEffect(() => {\r\n queue(getBrandInfo(brand_id, !user));\r\n }, [brand_id, user]);\r\n\r\n useEffect(() => {\r\n return () => {\r\n dispatch(clearBrandDetails());\r\n };\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (!brand || !contactId || user) return;\r\n dispatch(\r\n signup({\r\n nextPath: `/brand/${brand.id}${location.search}`,\r\n brand: (brand as unknown) as Brand,\r\n contactId: contactId as string,\r\n referralId: brand.id,\r\n })\r\n );\r\n }, [brand, contactId, user]);\r\n\r\n useEffect(() => {\r\n if (!brand || !user) {\r\n return;\r\n }\r\n brandViewed({\r\n brand_id: brand.id,\r\n name: brand.brand_name,\r\n category: brand.brand_category,\r\n });\r\n }, [user, brand]);\r\n\r\n if (isAuthLoading || isProcessing || !brand) {\r\n return ;\r\n }\r\n\r\n if ((user?.attributes.profile ?? 'buyer') !== 'buyer') {\r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n\r\n if (brand.brand_public_status !== '公開') {\r\n return ;\r\n }\r\n\r\n if (brand.is_sale_brand) {\r\n return ;\r\n }\r\n\r\n if (direct && brand.sell_only_direct) {\r\n return (\r\n \r\n \r\n \r\n );\r\n }\r\n\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default ListViewBrand;\r\n"],"sourceRoot":""}