{"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","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","redux/brand/thunk/details.ts","view/hooks/head.ts","../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","../node_modules/react-slick/lib/index.js","redux/menu/selectors/index.ts","utils/compare.ts","../node_modules/@material-ui/core/esm/Button/Button.js","../node_modules/lodash.debounce/index.js","../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","view/widgets/SendMessage/index.tsx","../node_modules/react-intersection-observer/react-intersection-observer.esm.js","view/widgets/SendMessage/MessageModal/index.tsx","webpack:///./src/view/widgets/SendMessage/MessageModal/styles.scss?3846","view/widgets/SendMessage/MessageModal/styles.scss","view/widgets/InViewContainer/index.tsx","../node_modules/react-modal/lib/helpers/safeHTMLElement.js","webpack:///./src/view/widgets/SendMessage/styles.scss?70be","view/widgets/SendMessage/styles.scss","view/widgets/ProductSlider/SkeletonItems/index.tsx","view/widgets/ProductSlider/index.tsx","../node_modules/react-modal/lib/helpers/tabbable.js","../node_modules/react-modal/lib/helpers/ariaAppHider.js","../node_modules/react-modal/lib/helpers/portalOpenInstances.js","view/hooks/thunk.ts","view/widgets/Preview/Lightbox.tsx","../node_modules/react-image-lightbox/dist/index.es.js","../node_modules/react-instantsearch-core/dist/es/connectors/connectRefinementList.js","domain/product/ProductVideo.ts","../node_modules/react-modal/lib/index.js","../node_modules/react-modal/lib/components/Modal.js","../node_modules/react-modal/lib/components/ModalPortal.js","../node_modules/react-modal/lib/helpers/focusManager.js","../node_modules/react-modal/lib/helpers/scopeTab.js","../node_modules/exenv/index.js","../node_modules/react-modal/lib/helpers/classList.js","../node_modules/react-modal/lib/helpers/bodyTrap.js","webpack:///./src/view/widgets/Preview/styles.scss?f7f2","webpack:///./src/view/widgets/Preview/styles.modules.scss?8509","../node_modules/@react-icons/all-files/md/MdKeyboardArrowLeft.js","../node_modules/@react-icons/all-files/md/MdKeyboardArrowRight.js","../node_modules/@react-icons/all-files/hi/HiLockClosed.js","redux/product/thunk/index.ts","../node_modules/@material-ui/lab/esm/internal/svg-icons/Star.js","../node_modules/@material-ui/lab/esm/Rating/Rating.js","view/widgets/Preview/ThumbnailList.tsx","view/widgets/Preview/index.tsx","webpack:///./src/view/widgets/ProductReviewList/styles.scss?2d18","view/widgets/ProductReviewList/styles.scss","view/widgets/Preview/styles.scss","view/widgets/Preview/styles.modules.scss","view/widgets/CategoryProducts/index.tsx","view/widgets/RecentlyViewedProducts/index.tsx","../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/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","webpack:///./src/view/widgets/MagProductDetail/styles.scss?2d31","view/widgets/MagProductDetail/styles.scss","webpack:///./src/view/widgets/MagProductDetail/styles.modules.scss?5e13","view/widgets/MagProductDetail/styles.modules.scss","webpack:///./src/view/widgets/MagRelatedProducts/styles.scss?e65f","view/widgets/MagRelatedProducts/styles.scss","webpack:///./src/view/widgets/ProductPostDetails/styles.scss?3820","view/widgets/ProductPostDetails/styles.scss","webpack:///./src/view/widgets/ProductPostDetails/styles.modules.scss?60d9","view/widgets/ProductPostDetails/styles.modules.scss","webpack:///./src/view/widgets/RelatedProducts/styles.scss?80e1","view/widgets/RelatedProducts/styles.scss","view/widgets/MagBrandLink/index.tsx","view/widgets/MagRelatedProducts/index.tsx","view/widgets/MagProductDetail/index.tsx","view/widgets/RelatedProducts/index.tsx","view/widgets/SimilarProducts/SkeletonItems/index.tsx","view/widgets/SimilarProducts/Items/index.tsx","view/widgets/SimilarProducts/index.tsx","view/widgets/ProductPostDetails/index.tsx","view/pages/buyer/ProductDetail/CheckPublicStatus/index.tsx","view/pages/buyer/ProductDetail/index.tsx","view/pages/supplier/ProductDetail/index.tsx","view/pages/common/ProductDetail/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","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","getBrandInfo","_brandData$brand_moda","brandData","signedUrl","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","replace","_callee8","signedProducts","_context8","getSignedBrandProductsStart","_callee7","_item$imageKeys","_item$imageKeys$items","_item$imageKeys2","_item$imageKeys2$item","_context7","_x8","setBrandProducts","addBrandProducts","_x7","useHeadContent","headContent","setHeadContent","useHeadContext","isFunction","isArray","prototype","toString","each","fn","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","videoKey","_default","menuSelector","menu","menuListSelector","createSelector","menuList","makeSearchCategoriesSelector","_menu$menuList$find$s","_menu$menuList$find","m","search_categories","makeSelectCategory","productCategory","menus","_menus$find","cat","makeSelectCategoryByPathCategory","categoryPath","subCategoryPath","_menus$find3","_menus$find2","sub_categories","path","product_list_path","makeSelectCategoryPathByPathCategory","_menus$find5","_menus$find4","makeSelectSubCategoryByPathCategory","makeSelectCategoryByBrandPathCategory","_menus$find6","brand_list_path","makeSelectListPath","_menu$sub_categories$","ref","classes","_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","call","isSymbol","valueOf","isBinary","test","func","wait","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","leadingEdge","timerExpired","shouldInvoke","timeSinceLastCall","trailingEdge","remainingWait","debounced","isInvoking","cancel","clearTimeout","flush","_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","timer","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","SendMessage","productName","tel","isInitOpen","showModal","setShowModal","MessageModal","isShow","observerMap","Map","RootIds","WeakMap","rootId","unsupportedValue","optionsToId","has","set","fallbackInView","IntersectionObserver","bounds","getBoundingClientRect","isIntersecting","intersectionRatio","threshold","boundingClientRect","intersectionRect","rootBounds","_createObserver","thresholds","elements","observer","entry","_elements$get","inView","trackVisibility","isVisible","createObserver","callbacks","unobserve","disconnect","isPlainChildren","InView","node","_unobserveCb","handleNode","triggerOnce","skip","initialInView","observeNode","handleChange","_proto","componentDidUpdate","prevProps","rootMargin","delay","componentWillUnmount","render","_this$state","_this$props2","as","useInView","_temp","_state$entry","_React$useState","setRef","_React$useState2","current","entryTarget","_shipping_address","_message$length","brandInfoSelector","sendMessage","submit","msg","companyName","shopName","buyerName","description","buyer_owner","owners","show","onHide","Header","Title","getResizeImageUrl","Body","maxLength","company_name","shop_name","last_name","first_name","shipping_address","phone_number","required","Footer","InViewContainer","Placeholder","_useInView","Fade","in","timeout","_exenv","EE","SafeHTMLElement","HTMLElement","SkeletonItems","Container","_","ProductSlider","title2","listPath","tabbable","tabbableNode","hidesContents","zeroSize","innerHTML","getComputedStyle","getPropertyValue","scrollWidth","scrollHeight","focusable","isTabIndexNotNaN","nodeName","parentElement","body","visible","getAttribute","isTabIndexNaN","assertNodeList","setElement","useElement","_safeHTMLElement","el","globalElement","validateElement","hide","appElement","setAttribute","removeAttribute","documentNotReadyOrSSRTesting","resetForTesting","_warning","_warning2","nodeList","portalOpenInstances","PortalOpenInstances","openInstance","openInstances","emit","deregister","subscribe","subscribers","eventType","subscriber","useThunkQueue","isProcessing","setIsProcessing","queue","extrArgument","Lightbox","defaultImageIndex","currentImageIndex","setCurrentImageIndex","newIndex","maxIndex","LightboxComponent","mainSrc","nextSrc","prevSrc","onCloseRequest","enableZoom","onMovePrevRequest","onMoveNextRequest","arr","_arrayWithHoles","_n","_d","_e","_s","done","err","_iterableToArrayLimit","_nonIterableRest","arr2","_arrayWithoutHoles","iter","_iterableToArray","_nonIterableSpread","replaceStrings","translated","getWindowWidth","innerWidth","KEYS","ReactImageLightbox","_Component","isClosing","animationDisabled","shouldAnimate","zoomLevel","offsetX","offsetY","loadErrorStatus","outerEl","createRef","zoomInBtn","zoomOutBtn","caption","closeIfClickInner","handleImageDoubleClick","handleImageMouseWheel","handleKeyInput","handleMouseUp","handleMouseDown","handleMouseMove","handleOuterMousewheel","handleTouchStart","handleTouchMove","handleTouchEnd","handlePointerEvent","handleCaptionMousewheel","handleWindowResize","handleZoomInButtonClick","handleZoomOutButtonClick","requestClose","requestMoveNext","requestMovePrev","mouseEvent","touchPointer","identifier","pointerEvent","pointerId","_ref$x","_ref$y","_ref$zoom","zoom","targetWidth","nextX","windowWidth","scaleFactor","timeouts","currentAction","eventsSource","pointerList","preventInnerClose","preventInnerCloseTimeout","keyPressed","imageCache","lastKeyDownTime","resizeTimeout","wheelActionTimeout","resetScrollTimeout","scrollX","scrollY","moveStartX","moveStartY","moveStartOffsetX","moveStartOffsetY","swipeStartX","swipeStartY","swipeEndX","swipeEndY","pinchTouchList","pinchDistance","keyCounter","moveRequested","windowContext","getHighestSafeWindowContext","referrer","getOrigin","parent","listeners","resize","mouseup","touchend","touchcancel","pointerdown","pointermove","pointerup","pointercancel","loadAllImages","sourcesChanged","prevSrcDict","nextSrcDict","getSrcTypes","srcType","loaded","_this4","didUnmount","tid","_setTimeout","_this5","_this6","imageSrc","fitSizes","isImageLoaded","getFitSizes","targetHeight","stretch","boxSize","getLightboxRect","maxHeight","imagePadding","currentImageInfo","getBestImageForType","maxX","minX","maxY","minY","zoomMultiplier","getZoomMultiplier","keyEnding","innerHeight","_clearTimeout","nextZoomLevel","imageBaseSize","currentZoomMultiplier","nextZoomMultiplier","boxRect","pointerX","pointerY","currentImageOffsetX","currentImageOffsetY","nextImageRealOffsetX","nextImageRealOffsetY","nextOffsetX","nextOffsetY","maxOffsets","getMaxOffsets","isAnimating","which","currentTime","keyRepeatLimit","keyRepeatKeyupBonus","_this7","actionDelay","deltaY","deltaX","xThreshold","changeZoom","filterPointersBySource","pointer","_this8","shouldHandleEvent","isTargetMatchImage","addPointer","parseMouseEvent","multiPointerStart","multiPointerMove","removePointer","multiPointerEnd","parsePointerEvent","_this9","changedTouches","eventTouch","parseTouchPointer","_this10","touch","handleSwipeStart","handleMoveStart","handleEnd","decideMoveOrSwipe","handlePinchStart","handleMove","handleSwipe","handlePinch","setPreventInnerClose","handleMoveEnd","handleSwipeEnd","handlePinchEnd","newOffsetX","newOffsetY","_this11","animationDuration","xDiff","xDiffAbs","yDiffAbs","_ref12","calculatePinchDistance","oldPointer","newDistance","_this$calculatePinchC","calculatePinchCenter","forceUpdate","_this$caption$current2","scrollTop","_this12","inMemoryImage","Image","imageCrossOrigin","crossOrigin","errorEvent","onImageLoadError","onImageLoad","_this13","generateLoadDoneCallback","loadImage","_this14","closeLightbox","animationOnKeyInput","_this15","requestMove","_this16","clickOutsideToClose","discourageDownloads","imageTitle","toolbarButtons","reactModalStyle","_onAfterOpen","onAfterOpen","reactModalProps","transitionStyle","keyEndings","_ref13","addImage","imageClass","transforms","bestImageInfo","imageStyle","getTransform","cursor","object","imageLoadErrorMessage","backgroundImage","onDoubleClick","onWheel","onDragStart","loadingIcon","modalStyle","overlay","overflow","onRequestClose","contentLabel","wrapperClassName","animationDirection","onKeyUp","prevLabel","nextLabel","zoomInLabel","zoomOutLabel","closeLabel","imageCaption","propTypes","string","isRequired","mainSrcThumbnail","prevSrcThumbnail","nextSrcThumbnail","bool","number","arrayOf","defaultProps","getId","getCurrentRefinement","searchState","context","currentRefinement","getValue","selectedValue","getLimit","showMore","showMoreLimit","_refine","nextRefinement","nextValue","sortBy","displayName","operator","oneOf","defaultRefinement","oneOfType","searchable","transformItems","facetOrdering","getProvidedProps","metadata","searchForFacetValuesResults","indexContextValue","results","ais","contextValue","multiIndexContext","canRefine","Boolean","getFacetByName","isFromSearch","v","_highlightResult","highlighted","isRefined","getFacetValues","transformedItems","searchForFacetValues","facetName","maxFacetHits","cleanUp","_cleanUp","getSearchParameters","searchParameters","addKey","addRefinementKey","setQueryParameters","maxValuesPerFacet","val","getMetadata","nextSelectedItems","ProductVideo","getDirectory","thumbUrl","upload","toJson","_register","createProductVideoKey","deleteProductVideoKey","lastModified","lastModifiedDate","percent","linkProps","xhr","_createByVideoKey","_ProductVideo","limitSize","shortenLimitSize","_Modal","_Modal2","bodyOpenClassName","portalClassName","defineProperties","_react2","_reactDom2","_propTypes2","_ModalPortal2","ariaAppHider","newObj","_interopRequireWildcard","_safeHTMLElement2","_reactLifecyclesCompat","isReact16","createPortal","getCreatePortal","unstable_renderSubtreeIntoContainer","getParentElement","parentSelector","_len","_key","removePortal","unmountComponentAtNode","removeChild","portalRef","portal","renderPortal","defaultStyles","appendChild","prevParent","nextParent","snapshot","_props","closesAt","closeTimeoutMS","beforeClose","closeWithTimeout","htmlOpenClassName","base","afterOpen","overlayClassName","instanceOf","ariaHideApp","shouldFocusAfterRender","shouldCloseOnOverlayClick","shouldReturnFocusAfterClose","aria","role","shouldCloseOnEsc","overlayRef","contentRef","WebkitOverflowScrolling","polyfill","focusManager","_scopeTab2","classList","_portalOpenInstances2","CLASS_NAMES","ariaHiddenInstances","ModalPortal","setOverlayRef","setContentRef","afterClose","getElementsByTagName","returnFocus","teardownScopedFocus","popWithoutFocus","onAfterClose","beforeOpen","closeTimer","setupScopedFocus","markForFocusLater","overlayEl","contentEl","closeWithoutTimeout","focusContent","contentHasFocus","handleKeyDown","handleOverlayOnClick","shouldClose","ownerHandlesClose","handleContentOnMouseUp","handleOverlayOnMouseDown","handleContentOnClick","handleContentOnMouseDown","shouldBeClosed","activeElement","contains","buildClassName","additional","classNames","attributesFromObject","prefix","acc","moveFromContentToOverlay","add","_props2","contentStyles","overlayStyles","testId","handleBlur","handleFocus","focusLaterElements","toFocus","pop","modalElement","_tabbable","_tabbable2","needToFocus","shiftKey","head","tail","checkSafari","navigator","userAgent","ExecutionEnvironment","canUseWorkers","Worker","canUseEventListeners","canUseViewport","screen","dumpClassLists","htmlClassList","docBodyClassList","classString","classListRef","poll","incrementReference","decrementReference","_portalOpenInstances","before","after","instances","cloneNode","firstChild","insertBefore","lastChild","GenIcon","MdKeyboardArrowLeft","MdKeyboardArrowRight","HiLockClosed","getProduct","productModel","signedImages","signedTypes","signedProduct","getPublishedProductUnAuth","getPublishedProductPreview","getPublishedProduct","t1","t2","removeItems","t3","t4","t5","createByVideoKey","t6","t7","t8","reviews","t9","videos","t10","setProduct","createSvgIcon","d","roundValueToPrecision","precision","decimalPart","nearest","toFixed","IconContainer","defaultIcon","Star","defaultLabelText","_props$defaultValue","emptyIcon","_props$emptyLabelText","emptyLabelText","_props$getLabelText","getLabelText","_props$icon","icon","_props$IconContainerC","IconContainerComponent","_props$max","nameProp","onChangeActive","_props$precision","_props$readOnly","readOnly","valueProp","_useControlled","useControlled","controlled","_useControlled2","valueDerived","setValueState","valueRounded","useTheme","hover","_React$useState$","_useIsFocusVisible","useIsFocusVisible","isFocusVisible","onBlurVisible","focusVisibleRef","setFocusVisible","rootRef","handleFocusRef","useForkRef","handleRef","newValue","parseFloat","handleClear","newFocus","labelProps","String","container","filled","iconFilled","iconEmpty","iconHover","iconFocus","active","iconActive","visuallyhidden","onFocus","checked","rootNode","_rootNode$getBounding","newHover","clamp","capitalize","itemValue","decimal","$","indexDecimal","itemDecimalValue","defaultChecked","pristine","withStyles","WebkitTapHighlightColor","pointerEvents","clip","shortest","ThumbnailList","previewImageIndex","changePreviewImage","thumbnailUrl","controls","controlsList","playsInline","Preview","setPreviewImageIndex","imageIndex","isOpenLightbox","setIsOpenLightbox","setTransformOrigin","setIsHover","previewImageRef","useRef","openLightbox","handleClickImageSlideButton","previewImageElement","rect","mouseX","mouseY","pageXOffset","pageYOffset","loop","subcategory","selectIsProductSearching","CategoryProducts","brandTag","brand_tags","filterValues","RecentlyViewedProducts","getRecentlyViewedProducts","fetchIds","_useGraphql3","_useGraphql4","fetchProducts","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","setValue","handleProductClick","_review$items","_review$product_ids","product_ids","reviewList","_review$items$map","_review$items2","ids","rate","comment","createdAt","replies","totalRateAverage","sum","_review$items3","allReviews","_products$filter","moment","format","reply","_products$","_products$$brand","_product$imageKeys$it","_product$imageKeys$it2","_product$imageKeys$it3","filterReviews","purchasedReviews","_products$filter2","_products$2","_products$2$brand","_product$imageKeys$it4","Tabs","TabIndicatorProps","Tab","indicator","selected","selectionFollowsFocus","_props$textColor","textColor","_props$wrapped","wrapped","labelIcon","wrapper","_extends2","flexShrink","up","marginBottom","textColorInherit","textColorPrimary","textColorSecondary","flexGrow","flexBasis","flexDirection","cachedType","detectScrollType","dummy","getNormalizedScrollLeft","clientWidth","easeInOutSin","sin","ScrollbarSize","scrollbarHeight","nodeRef","setMeasurements","clientHeight","handleResize","debounce","prevHeight","orientation","colorPrimary","colorSecondary","KeyboardArrowLeft","KeyboardArrowRight","ButtonBase","ariaLabel","ariaLabelledBy","_props$centered","centered","childrenProp","_props$indicatorColor","indicatorColor","_props$orientation","_props$ScrollButtonCo","ScrollButtonComponent","_props$scrollButtons","scrollButtons","_props$TabIndicatorPr","TabScrollButtonProps","scrollable","isRtl","scrollStart","start","end","clientSize","mounted","setMounted","indicatorStyle","setIndicatorStyle","_React$useState3","displayScroll","setDisplayScroll","_React$useState4","scrollerStyle","setScrollerStyle","valueToIndex","tabsRef","tabListRef","getTabsMeta","tabsMeta","tabMeta","tabsNode","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","win","ownerWindow","handleTabsScroll","updateIndicator","updateScrollButtons","childIndex","childValue","conditionalElements","scrollbarSizeListener","scrollButtonsActive","showScrollButtons","scrollButtonStart","scrollButtonsDesktop","scrollButtonEnd","getConditionalElements","scroller","fixed","flexContainer","flexContainerVertical","newFocusTarget","previousItemKey","nextItemKey","previousElementSibling","nextElementSibling","flex","whiteSpace","overflowX","scrollbarWidth","down","MagBrandLink","MagRelatedProducts","_user$attributes","_brand$tags","brandIconUrl","setBrandIconUrl","brandProductsSelector","getBrandIconUrl","clearBrandDetails","clearAllBrandProducts","clearBrandProductsNextToken","handleBrandClick","brand_address","isFreeShipping","brand_shippinng_fee_criteria","formatDate","getFreeShippingPeriod","brand_shippinng_fee","tag","MagProductDetail","_product$brand$brand_","previewData","setPreviewData","setTab","handleTab","retailPrice","singlePrice","handleSignup","handleLogin","pushViewItemEvent","productViewed","previews","setPreviews","_product$videos$map","_product$videos","terms_of_sample","rel","RelatedProducts","Items","SimilarProducts","getSimilarProducts","similarProducts","fetchSimilarProducts","PRODUCT_SEARCH_INDEX","ProductPostDetails","_qs$parse2","_history$location$sea3","_history$location$sea4","_product$brand$review","_product$brand$review2","admin","contactId","signin","scrollToReviews","isOrderedBrand","makeSelectHasOrderedBrand","Redirect","_review$rate","ProductDetails","projectId","selectProjectId","isPublished","_item$contactListConn","_item$contactListConn2","contactListConnections","contact_list_id","flat","_product$product_cont","_product$id","_product$product_name","_product$collections","useParams","decodeURIComponent","productModelSelector","_useThunkQueue","clearProduct","breadcrumbs","BuyerPage","directBrand","CheckPublicStatus","useTitle","AuthPage","authenticating","authenticatingSelector","authUser","ProductDetailSupplier","ProductDetailBuyer"],"mappings":";iaAaaA,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,EAAGS,EAAAa,KAUHrB,GAAgD,QAAlCL,EAAS,QAATC,EAACG,EAAIuB,YAAI,IAAA1B,GAAkB,QAAlBC,EAARD,EAAUiB,wBAAgB,IAAAhB,OAAlB,EAARA,EAA4B0B,aAAK,IAAA5B,IAAI,IAAImB,QAC5D,SAACU,GAAI,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,MACsC,SAAzCJ,SAAa,QAATC,EAAJD,EAAMK,eAAO,IAAAJ,OAAT,EAAJA,EAAeK,yBACkB,KAAjCN,SAAiB,QAAbE,EAAJF,EAAMO,mBAAW,IAAAL,OAAb,EAAJA,EAAmBM,aACU,KAA7BR,SAAa,QAATG,EAAJH,EAAMK,eAAO,IAAAF,OAAT,EAAJA,EAAeM,aACkB,KAAjCT,SAAiB,QAAbI,EAAJJ,EAAMO,mBAAW,IAAAH,OAAb,EAAJA,EAAmBK,gBAEjBhC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yoF,mBAAmB9pF,GACxBnB,EAAWiE,wBACjBknF,EAAgCt6B,aAAc,cAAtCG,EAAKm6B,EAALn6B,MAAOF,EAAYq6B,EAAZr6B,aACT1lD,EAAO7G,sBAAY8G,KACnBtJ,EAAUwC,sBAAY2mF,MAY5B,OAVAh5E,qBAAU,WACR,GAAK9G,EAEL,OADA4lD,EAAM2f,aAAWnuE,OAAIiB,GAAW,IACzB,WACLzD,EAASorF,mBAEV,CAAChgF,EAAM5I,IAEVipF,aAAS,GAADtiF,OAAIpH,aAAO,EAAPA,EAAS2G,aAAY,gBAG/B2E,IAAAC,cAACo+E,KAAQ,KACPr+E,IAAAC,cAAC+N,IAAiB,CAAC1b,WAAY,CAAC6C,IAC9B6K,IAAAC,cAACwQ,KAAgB,CAACxZ,UAAWwsD,GAC3BzjD,IAAAC,cAACugD,IAAS,KACP9rD,GACCsL,IAAAC,cAAC+7E,GAAkB,CAACtnF,QAASA,EAAS4nF,MAAOA,EAAOhqE,SAAO,S,UChB1DwqE,UAjBuC,WACpD,IAAMwB,EAAiBpnF,sBAAYqnF,MAC7BC,EAAWtnF,sBAAY8G,KACvB+hB,EAAUy+D,aAAQ,EAARA,EAAU3+E,WAAWkgB,QAC/BjgB,EAAM0+E,aAAQ,EAARA,EAAU3+E,WAAWC,IAEjC,OAAIw+E,EACKt+E,IAAAC,cAACwQ,KAAgB,CAACxZ,WAAS,IAGhC,CAAC,WAAY,SAASkC,SAAS4mB,UAAW,IACrC/f,IAAAC,cAACw+E,GAAqB,CAAC3+E,IAAKA,EAAKw8E,MAAmB,UAAZv8D,IAG1C/f,IAAAC,cAACy+E,GAAkB","file":"static/js/44.155f7da1.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","\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 { 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","/**\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","\"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;","import { createSelector } from 'reselect';\nimport { RootState } from '../../reducer';\n\nconst menuSelector = (state: RootState) => state.menu;\n\nexport const menuListSelector = createSelector(\n menuSelector,\n (menu) => menu.menuList\n);\n\nexport const makeSearchCategoriesSelector = (category: string) =>\n createSelector(\n menuSelector,\n (menu) =>\n menu.menuList.find((m) => m.title === category)?.search_categories ??\n undefined\n );\n\nexport const makeSelectCategory = (productCategory: string) =>\n createSelector(\n menuListSelector,\n (menus) =>\n menus.find((m) =>\n m.search_categories.some((cat) => cat.name === productCategory)\n )?.title\n );\n\nexport const makeSelectCategoryByPathCategory = (\n categoryPath: string,\n subCategoryPath?: string\n) =>\n createSelector(menuListSelector, (menus) => {\n if (subCategoryPath) {\n return menus.find((menu) =>\n menu.sub_categories.some(\n (sub) =>\n sub.path === `/list/subcategory/${categoryPath}/${subCategoryPath}`\n )\n )?.title;\n }\n return menus.find((m) => m.product_list_path === `/list/${categoryPath}`)\n ?.title;\n });\n\nexport const makeSelectCategoryPathByPathCategory = (\n categoryPath: string,\n subCategoryPath?: string\n) =>\n createSelector(menuListSelector, (menus) => {\n if (subCategoryPath) {\n return menus.find((menu) =>\n menu.sub_categories.some(\n (sub) =>\n sub.path === `/list/subcategory/${categoryPath}/${subCategoryPath}`\n )\n )?.product_list_path;\n }\n return menus.find((m) => m.product_list_path === `/list/${categoryPath}`)\n ?.product_list_path;\n });\n\nexport const makeSelectSubCategoryByPathCategory = (\n categoryPath: string,\n subCategoryPath: string\n) =>\n createSelector(menuListSelector, (menus) => {\n let subCategory: string | undefined;\n menus.some((menu) =>\n menu.sub_categories.some((sub) => {\n if (\n sub.path === `/list/subcategory/${categoryPath}/${subCategoryPath}`\n ) {\n subCategory = sub.name;\n return true;\n }\n return false;\n })\n );\n return subCategory;\n });\n\nexport const makeSelectCategoryByBrandPathCategory = (categoryPath: string) =>\n createSelector(menuListSelector, (menus) => {\n return menus.find(\n (m) => m.brand_list_path === `/BrandListView/${categoryPath}`\n )?.title;\n });\n\nexport const makeSelectListPath = (category?: string, subCategory?: string) =>\n createSelector(menuListSelector, (menus) => {\n const menu = menus.find((m) => m.title === category);\n if (!subCategory) {\n return menu?.product_list_path;\n }\n return menu?.sub_categories.find((sub) => sub.name === subCategory)?.path;\n });\n\nexport const makeSelectBrandListPath = (category?: string) =>\n createSelector(\n menuSelector,\n (menu) =>\n menu.menuList.find((m) => m.title === category)?.brand_list_path ??\n undefined\n );\n","export const deepEquals = (a: any, b: any) =>\n JSON.stringify(a) === JSON.stringify(b);\n","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","\"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 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 * as React from 'react';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n\n _setPrototypeOf(subClass, superClass);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nvar observerMap = new Map();\nvar RootIds = new WeakMap();\nvar rootId = 0;\nvar unsupportedValue = undefined;\n/**\r\n * What should be the default behavior if the IntersectionObserver is unsupported?\r\n * Ideally the polyfill has been loaded, you can have the following happen:\r\n * - `undefined`: Throw an error\r\n * - `true` or `false`: Set the `inView` value to this regardless of intersection state\r\n * **/\n\nfunction defaultFallbackInView(inView) {\n unsupportedValue = inView;\n}\n/**\r\n * Generate a unique ID for the root element\r\n * @param root\r\n */\n\nfunction getRootId(root) {\n if (!root) return '0';\n if (RootIds.has(root)) return RootIds.get(root);\n rootId += 1;\n RootIds.set(root, rootId.toString());\n return RootIds.get(root);\n}\n/**\r\n * Convert the options to a string Id, based on the values.\r\n * Ensures we can reuse the same observer when observing elements with the same options.\r\n * @param options\r\n */\n\n\nfunction optionsToId(options) {\n return Object.keys(options).sort().filter(function (key) {\n return options[key] !== undefined;\n }).map(function (key) {\n return key + \"_\" + (key === 'root' ? getRootId(options.root) : options[key]);\n }).toString();\n}\n\nfunction createObserver(options) {\n // Create a unique ID for this observer instance, based on the root, root margin and threshold.\n var id = optionsToId(options);\n var instance = observerMap.get(id);\n\n if (!instance) {\n // Create a map of elements this observer is going to observe. Each element has a list of callbacks that should be triggered, once it comes into view.\n var elements = new Map();\n var thresholds;\n var observer = new IntersectionObserver(function (entries) {\n entries.forEach(function (entry) {\n var _elements$get;\n\n // While it would be nice if you could just look at isIntersecting to determine if the component is inside the viewport, browsers can't agree on how to use it.\n // -Firefox ignores `threshold` when considering `isIntersecting`, so it will never be false again if `threshold` is > 0\n var inView = entry.isIntersecting && thresholds.some(function (threshold) {\n return entry.intersectionRatio >= threshold;\n }); // @ts-ignore support IntersectionObserver v2\n\n if (options.trackVisibility && typeof entry.isVisible === 'undefined') {\n // The browser doesn't support Intersection Observer v2, falling back to v1 behavior.\n // @ts-ignore\n entry.isVisible = inView;\n }\n\n (_elements$get = elements.get(entry.target)) == null ? void 0 : _elements$get.forEach(function (callback) {\n callback(inView, entry);\n });\n });\n }, options); // Ensure we have a valid thresholds array. If not, use the threshold from the options\n\n thresholds = observer.thresholds || (Array.isArray(options.threshold) ? options.threshold : [options.threshold || 0]);\n instance = {\n id: id,\n observer: observer,\n elements: elements\n };\n observerMap.set(id, instance);\n }\n\n return instance;\n}\n/**\r\n * @param element - DOM Element to observe\r\n * @param callback - Callback function to trigger when intersection status changes\r\n * @param options - Intersection Observer options\r\n * @param fallbackInView - Fallback inView value.\r\n * @return Function - Cleanup function that should be triggered to unregister the observer\r\n */\n\n\nfunction observe(element, callback, options, fallbackInView) {\n if (options === void 0) {\n options = {};\n }\n\n if (fallbackInView === void 0) {\n fallbackInView = unsupportedValue;\n }\n\n if (typeof window.IntersectionObserver === 'undefined' && fallbackInView !== undefined) {\n var bounds = element.getBoundingClientRect();\n callback(fallbackInView, {\n isIntersecting: fallbackInView,\n target: element,\n intersectionRatio: typeof options.threshold === 'number' ? options.threshold : 0,\n time: 0,\n boundingClientRect: bounds,\n intersectionRect: bounds,\n rootBounds: bounds\n });\n return function () {// Nothing to cleanup\n };\n } // An observer with the same options can be reused, so lets use this fact\n\n\n var _createObserver = createObserver(options),\n id = _createObserver.id,\n observer = _createObserver.observer,\n elements = _createObserver.elements; // Register the callback listener for this element\n\n\n var callbacks = elements.get(element) || [];\n\n if (!elements.has(element)) {\n elements.set(element, callbacks);\n }\n\n callbacks.push(callback);\n observer.observe(element);\n return function unobserve() {\n // Remove the callback from the callback list\n callbacks.splice(callbacks.indexOf(callback), 1);\n\n if (callbacks.length === 0) {\n // No more callback exists for element, so destroy it\n elements[\"delete\"](element);\n observer.unobserve(element);\n }\n\n if (elements.size === 0) {\n // No more elements are being observer by this instance, so destroy it\n observer.disconnect();\n observerMap[\"delete\"](id);\n }\n };\n}\n\nvar _excluded = [\"children\", \"as\", \"triggerOnce\", \"threshold\", \"root\", \"rootMargin\", \"onChange\", \"skip\", \"trackVisibility\", \"delay\", \"initialInView\", \"fallbackInView\"];\n\nfunction isPlainChildren(props) {\n return typeof props.children !== 'function';\n}\n/**\r\n ## Render props\r\n\n To use the `` component, you pass it a function. It will be called\r\n whenever the state changes, with the new value of `inView`. In addition to the\r\n `inView` prop, children also receive a `ref` that should be set on the\r\n containing DOM element. This is the element that the IntersectionObserver will\r\n monitor.\r\n\n If you need it, you can also access the\r\n [`IntersectionObserverEntry`](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry)\r\n on `entry`, giving you access to all the details about the current intersection\r\n state.\r\n\n ```jsx\r\n import { InView } from 'react-intersection-observer';\r\n\n const Component = () => (\r\n \r\n {({ inView, ref, entry }) => (\r\n
\r\n

{`Header inside viewport ${inView}.`}

\r\n
\r\n )}\r\n
\r\n );\r\n\n export default Component;\r\n ```\r\n\n ## Plain children\r\n\n You can pass any element to the ``, and it will handle creating the\r\n wrapping DOM element. Add a handler to the `onChange` method, and control the\r\n state in your own component. Any extra props you add to `` will be\r\n passed to the HTML element, allowing you set the `className`, `style`, etc.\r\n\n ```jsx\r\n import { InView } from 'react-intersection-observer';\r\n\n const Component = () => (\r\n console.log('Inview:', inView)}>\r\n

Plain children are always rendered. Use onChange to monitor state.

\r\n
\r\n );\r\n\n export default Component;\r\n ```\r\n */\n\n\nvar InView = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(InView, _React$Component);\n\n function InView(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n _this.node = null;\n _this._unobserveCb = null;\n\n _this.handleNode = function (node) {\n if (_this.node) {\n // Clear the old observer, before we start observing a new element\n _this.unobserve();\n\n if (!node && !_this.props.triggerOnce && !_this.props.skip) {\n // Reset the state if we get a new node, and we aren't ignoring updates\n _this.setState({\n inView: !!_this.props.initialInView,\n entry: undefined\n });\n }\n }\n\n _this.node = node ? node : null;\n\n _this.observeNode();\n };\n\n _this.handleChange = function (inView, entry) {\n if (inView && _this.props.triggerOnce) {\n // If `triggerOnce` is true, we should stop observing the element.\n _this.unobserve();\n }\n\n if (!isPlainChildren(_this.props)) {\n // Store the current State, so we can pass it to the children in the next render update\n // There's no reason to update the state for plain children, since it's not used in the rendering.\n _this.setState({\n inView: inView,\n entry: entry\n });\n }\n\n if (_this.props.onChange) {\n // If the user is actively listening for onChange, always trigger it\n _this.props.onChange(inView, entry);\n }\n };\n\n _this.state = {\n inView: !!props.initialInView,\n entry: undefined\n };\n return _this;\n }\n\n var _proto = InView.prototype;\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n // If a IntersectionObserver option changed, reinit the observer\n if (prevProps.rootMargin !== this.props.rootMargin || prevProps.root !== this.props.root || prevProps.threshold !== this.props.threshold || prevProps.skip !== this.props.skip || prevProps.trackVisibility !== this.props.trackVisibility || prevProps.delay !== this.props.delay) {\n this.unobserve();\n this.observeNode();\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.unobserve();\n this.node = null;\n };\n\n _proto.observeNode = function observeNode() {\n if (!this.node || this.props.skip) return;\n var _this$props = this.props,\n threshold = _this$props.threshold,\n root = _this$props.root,\n rootMargin = _this$props.rootMargin,\n trackVisibility = _this$props.trackVisibility,\n delay = _this$props.delay,\n fallbackInView = _this$props.fallbackInView;\n this._unobserveCb = observe(this.node, this.handleChange, {\n threshold: threshold,\n root: root,\n rootMargin: rootMargin,\n // @ts-ignore\n trackVisibility: trackVisibility,\n // @ts-ignore\n delay: delay\n }, fallbackInView);\n };\n\n _proto.unobserve = function unobserve() {\n if (this._unobserveCb) {\n this._unobserveCb();\n\n this._unobserveCb = null;\n }\n };\n\n _proto.render = function render() {\n if (!isPlainChildren(this.props)) {\n var _this$state = this.state,\n inView = _this$state.inView,\n entry = _this$state.entry;\n return this.props.children({\n inView: inView,\n entry: entry,\n ref: this.handleNode\n });\n }\n\n var _this$props2 = this.props,\n children = _this$props2.children,\n as = _this$props2.as,\n props = _objectWithoutPropertiesLoose(_this$props2, _excluded);\n\n return React.createElement(as || 'div', _extends({\n ref: this.handleNode\n }, props), children);\n };\n\n return InView;\n}(React.Component);\n\n/**\r\n * React Hooks make it easy to monitor the `inView` state of your components. Call\r\n * the `useInView` hook with the (optional) [options](#options) you need. It will\r\n * return an array containing a `ref`, the `inView` status and the current\r\n * [`entry`](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry).\r\n * Assign the `ref` to the DOM element you want to monitor, and the hook will\r\n * report the status.\r\n *\r\n * @example\r\n * ```jsx\r\n * import React from 'react';\r\n * import { useInView } from 'react-intersection-observer';\r\n *\r\n * const Component = () => {\r\n * const { ref, inView, entry } = useInView({\r\n * threshold: 0,\r\n * });\r\n *\r\n * return (\r\n *
\r\n *

{`Header inside viewport ${inView}.`}

\r\n *
\r\n * );\r\n * };\r\n * ```\r\n */\n\nfunction useInView(_temp) {\n var _state$entry;\n\n var _ref = _temp === void 0 ? {} : _temp,\n threshold = _ref.threshold,\n delay = _ref.delay,\n trackVisibility = _ref.trackVisibility,\n rootMargin = _ref.rootMargin,\n root = _ref.root,\n triggerOnce = _ref.triggerOnce,\n skip = _ref.skip,\n initialInView = _ref.initialInView,\n fallbackInView = _ref.fallbackInView,\n onChange = _ref.onChange;\n\n var _React$useState = React.useState(null),\n ref = _React$useState[0],\n setRef = _React$useState[1];\n\n var callback = React.useRef();\n\n var _React$useState2 = React.useState({\n inView: !!initialInView,\n entry: undefined\n }),\n state = _React$useState2[0],\n setState = _React$useState2[1]; // Store the onChange callback in a `ref`, so we can access the latest instance\n // inside the `useEffect`, but without triggering a rerender.\n\n\n callback.current = onChange;\n React.useEffect(function () {\n // Ensure we have node ref, and that we shouldn't skip observing\n if (skip || !ref) return;\n var unobserve;\n unobserve = observe(ref, function (inView, entry) {\n setState({\n inView: inView,\n entry: entry\n });\n if (callback.current) callback.current(inView, entry);\n\n if (entry.isIntersecting && triggerOnce && unobserve) {\n // If it should only trigger once, unobserve the element after it's inView\n unobserve();\n unobserve = undefined;\n }\n }, {\n root: root,\n rootMargin: rootMargin,\n threshold: threshold,\n // @ts-ignore\n trackVisibility: trackVisibility,\n // @ts-ignore\n delay: delay\n }, fallbackInView);\n return function () {\n if (unobserve) {\n unobserve();\n }\n };\n }, // We break the rule here, because we aren't including the actual `threshold` variable\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [// If the threshold is an array, convert it to a string, so it won't change between renders.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n Array.isArray(threshold) ? threshold.toString() : threshold, ref, root, rootMargin, triggerOnce, skip, trackVisibility, fallbackInView, delay]);\n var entryTarget = (_state$entry = state.entry) == null ? void 0 : _state$entry.target;\n React.useEffect(function () {\n if (!ref && entryTarget && !triggerOnce && !skip) {\n // If we don't have a node ref, then reset the state (unless the hook is set to only `triggerOnce` or `skip`)\n // This ensures we correctly reflect the current state - If you aren't observing anything, then nothing is inView\n setState({\n inView: !!initialInView,\n entry: undefined\n });\n }\n }, [ref, entryTarget, triggerOnce, skip, initialInView]);\n var result = [setRef, state.inView, state.entry]; // Support object destructuring, by adding the specific values.\n\n result.ref = result[0];\n result.inView = result[1];\n result.entry = result[2];\n return result;\n}\n\nexport { InView, defaultFallbackInView, observe, useInView };\n//# sourceMappingURL=react-intersection-observer.esm.js.map\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","import { Fade } from '@material-ui/core';\nimport React from 'react';\nimport { useInView } from 'react-intersection-observer';\n\nconst InViewContainer: React.FC<{\n placeholder?: React.ComponentType;\n fade?: boolean;\n}> = ({ placeholder: Placeholder, fade, children }) => {\n const { ref, inView } = useInView({\n triggerOnce: true,\n });\n if (fade) {\n return (\n \n
\n {!inView && Placeholder && }\n {inView && children}\n
\n
\n );\n }\n return (\n
\n {!inView && Placeholder && }\n {inView && children}\n
\n );\n};\n\nexport default InViewContainer;\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.canUseDOM = undefined;\n\nvar _exenv = require(\"exenv\");\n\nvar _exenv2 = _interopRequireDefault(_exenv);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar EE = _exenv2.default;\n\nvar SafeHTMLElement = EE.canUseDOM ? window.HTMLElement : {};\n\nvar canUseDOM = exports.canUseDOM = EE.canUseDOM;\n\nexports.default = SafeHTMLElement;","\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 React from 'react';\nimport { Container } from 'reactstrap';\nimport HorizontalSlider from '~view/widgets/HorizontalSlider';\nimport ProductListViewItem from '~view/widgets/ProductListViewItem';\nimport Skeleton from '~view/widgets/Skeleton';\n\nconst SkeletonItems: React.FC = () => {\n return (\n \n
\n \n
\n \n {[...new Array(10)].map((_, i) => (\n \n ))}\n \n
\n );\n};\n\nexport default SkeletonItems;\n","import React from 'react';\nimport { Link } from 'react-router-dom';\nimport { Container } from 'reactstrap';\nimport HorizontalSlider from '../HorizontalSlider';\nimport InventoryProvider from '../InventoryProvider';\nimport { ProductListViewItemByAlgolia } from '../ProductListViewItemByAlgolia';\nimport SkeletonItems from './SkeletonItems';\nimport { ProductReadModel } from '~types/api';\n\nconst ProductSlider: React.FC<{\n isLoading?: boolean;\n title?: string;\n title2?: string;\n products?: ProductReadModel[];\n listPath?: string;\n}> = ({ isLoading, title, title2, products, listPath }) => {\n if (isLoading) {\n return ;\n }\n if (!products?.length) {\n return null;\n }\n return (\n product.id!)}>\n \n
\n
\n {title2 && {title}}\n
{title2 ?? title}
\n
\n {listPath && (\n \n もっと見る\n \n )}\n
\n \n {products.map((product, i) => (\n \n ))}\n \n
\n
\n );\n};\n\nexport default ProductSlider;\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = findTabbableDescendants;\n/*!\n * Adapted from jQuery UI core\n *\n * http://jqueryui.com\n *\n * Copyright 2014 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n *\n * http://api.jqueryui.com/category/ui-core/\n */\n\nvar tabbableNode = /input|select|textarea|button|object/;\n\nfunction hidesContents(element) {\n var zeroSize = element.offsetWidth <= 0 && element.offsetHeight <= 0;\n\n // If the node is empty, this is good enough\n if (zeroSize && !element.innerHTML) return true;\n\n // Otherwise we need to check some styles\n var style = window.getComputedStyle(element);\n return zeroSize ? style.getPropertyValue(\"overflow\") !== \"visible\" ||\n // if 'overflow: visible' set, check if there is actually any overflow\n element.scrollWidth <= 0 && element.scrollHeight <= 0 : style.getPropertyValue(\"display\") == \"none\";\n}\n\nfunction visible(element) {\n var parentElement = element;\n while (parentElement) {\n if (parentElement === document.body) break;\n if (hidesContents(parentElement)) return false;\n parentElement = parentElement.parentNode;\n }\n return true;\n}\n\nfunction focusable(element, isTabIndexNotNaN) {\n var nodeName = element.nodeName.toLowerCase();\n var res = tabbableNode.test(nodeName) && !element.disabled || (nodeName === \"a\" ? element.href || isTabIndexNotNaN : isTabIndexNotNaN);\n return res && visible(element);\n}\n\nfunction tabbable(element) {\n var tabIndex = element.getAttribute(\"tabindex\");\n if (tabIndex === null) tabIndex = undefined;\n var isTabIndexNaN = isNaN(tabIndex);\n return (isTabIndexNaN || tabIndex >= 0) && focusable(element, !isTabIndexNaN);\n}\n\nfunction findTabbableDescendants(element) {\n return [].slice.call(element.querySelectorAll(\"*\"), 0).filter(tabbable);\n}\nmodule.exports = exports[\"default\"];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.assertNodeList = assertNodeList;\nexports.setElement = setElement;\nexports.validateElement = validateElement;\nexports.hide = hide;\nexports.show = show;\nexports.documentNotReadyOrSSRTesting = documentNotReadyOrSSRTesting;\nexports.resetForTesting = resetForTesting;\n\nvar _warning = require(\"warning\");\n\nvar _warning2 = _interopRequireDefault(_warning);\n\nvar _safeHTMLElement = require(\"./safeHTMLElement\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar globalElement = null;\n\nfunction assertNodeList(nodeList, selector) {\n if (!nodeList || !nodeList.length) {\n throw new Error(\"react-modal: No elements were found for selector \" + selector + \".\");\n }\n}\n\nfunction setElement(element) {\n var useElement = element;\n if (typeof useElement === \"string\" && _safeHTMLElement.canUseDOM) {\n var el = document.querySelectorAll(useElement);\n assertNodeList(el, useElement);\n useElement = \"length\" in el ? el[0] : el;\n }\n globalElement = useElement || globalElement;\n return globalElement;\n}\n\nfunction validateElement(appElement) {\n if (!appElement && !globalElement) {\n (0, _warning2.default)(false, [\"react-modal: App element is not defined.\", \"Please use `Modal.setAppElement(el)` or set `appElement={el}`.\", \"This is needed so screen readers don't see main content\", \"when modal is opened. It is not recommended, but you can opt-out\", \"by setting `ariaHideApp={false}`.\"].join(\" \"));\n\n return false;\n }\n\n return true;\n}\n\nfunction hide(appElement) {\n if (validateElement(appElement)) {\n (appElement || globalElement).setAttribute(\"aria-hidden\", \"true\");\n }\n}\n\nfunction show(appElement) {\n if (validateElement(appElement)) {\n (appElement || globalElement).removeAttribute(\"aria-hidden\");\n }\n}\n\nfunction documentNotReadyOrSSRTesting() {\n globalElement = null;\n}\n\nfunction resetForTesting() {\n globalElement = null;\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n// Tracks portals that are open and emits events to subscribers\n\nvar PortalOpenInstances = function PortalOpenInstances() {\n var _this = this;\n\n _classCallCheck(this, PortalOpenInstances);\n\n this.register = function (openInstance) {\n if (_this.openInstances.indexOf(openInstance) !== -1) {\n if (process.env.NODE_ENV !== \"production\") {\n // eslint-disable-next-line no-console\n console.warn(\"React-Modal: Cannot register modal instance that's already open\");\n }\n return;\n }\n _this.openInstances.push(openInstance);\n _this.emit(\"register\");\n };\n\n this.deregister = function (openInstance) {\n var index = _this.openInstances.indexOf(openInstance);\n if (index === -1) {\n if (process.env.NODE_ENV !== \"production\") {\n // eslint-disable-next-line no-console\n console.warn(\"React-Modal: Unable to deregister \" + openInstance + \" as \" + \"it was never registered\");\n }\n return;\n }\n _this.openInstances.splice(index, 1);\n _this.emit(\"deregister\");\n };\n\n this.subscribe = function (callback) {\n _this.subscribers.push(callback);\n };\n\n this.emit = function (eventType) {\n _this.subscribers.forEach(function (subscriber) {\n return subscriber(eventType,\n // shallow copy to avoid accidental mutation\n _this.openInstances.slice());\n });\n };\n\n this.openInstances = [];\n this.subscribers = [];\n};\n\nvar portalOpenInstances = new PortalOpenInstances();\n\nexports.default = portalOpenInstances;\nmodule.exports = exports[\"default\"];","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 'react-image-lightbox/style.css';\nimport React, { useCallback, useEffect, useState } from 'react';\nimport LightboxComponent from 'react-image-lightbox';\n\ntype LightboxProps = {\n images: string[];\n defaultImageIndex: number;\n close: () => void;\n};\n\nconst Lightbox: React.FC = ({\n close,\n images,\n defaultImageIndex,\n}) => {\n const [currentImageIndex, setCurrentImageIndex] = useState(\n defaultImageIndex\n );\n const prev = useCallback(() => {\n const newIndex = currentImageIndex - 1;\n const maxIndex = images.length - 1;\n setCurrentImageIndex(newIndex < 0 ? maxIndex : newIndex);\n }, [currentImageIndex, images.length]);\n const next = useCallback(() => {\n const newIndex = currentImageIndex + 1;\n const maxIndex = images.length - 1;\n setCurrentImageIndex(newIndex > maxIndex ? 0 : newIndex);\n }, [currentImageIndex, images.length]);\n\n useEffect(() => {\n setCurrentImageIndex(defaultImageIndex);\n }, [defaultImageIndex]);\n\n return (\n \n );\n};\n\nexport default Lightbox;\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport Modal from 'react-modal';\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (typeof call === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n\n return arr2;\n }\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\n/**\n * Placeholder for future translate functionality\n */\nfunction translate(str) {\n var replaceStrings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n if (!str) {\n return '';\n }\n\n var translated = str;\n\n if (replaceStrings) {\n Object.keys(replaceStrings).forEach(function (placeholder) {\n translated = translated.replace(placeholder, replaceStrings[placeholder]);\n });\n }\n\n return translated;\n}\nfunction getWindowWidth() {\n return typeof global.window !== 'undefined' ? global.window.innerWidth : 0;\n}\nfunction getWindowHeight() {\n return typeof global.window !== 'undefined' ? global.window.innerHeight : 0;\n} // Get the highest window context that isn't cross-origin\n// (When in an iframe)\n\nfunction getHighestSafeWindowContext() {\n var self = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.window.self;\n var referrer = self.document.referrer; // If we reached the top level, return self\n\n if (self === global.window.top || !referrer) {\n return self;\n }\n\n var getOrigin = function getOrigin(href) {\n return href.match(/(.*\\/\\/.*?)(\\/|$)/)[1];\n }; // If parent is the same origin, we can move up one context\n // Reference: https://stackoverflow.com/a/21965342/1601953\n\n\n if (getOrigin(self.location.href) === getOrigin(referrer)) {\n return getHighestSafeWindowContext(self.parent);\n } // If a different origin, we consider the current level\n // as the top reachable one\n\n\n return self;\n}\n\n// Min image zoom level\nvar MIN_ZOOM_LEVEL = 0; // Max image zoom level\n\nvar MAX_ZOOM_LEVEL = 300; // Size ratio between previous and next zoom levels\n\nvar ZOOM_RATIO = 1.007; // How much to increase/decrease the zoom level when the zoom buttons are clicked\n\nvar ZOOM_BUTTON_INCREMENT_SIZE = 100; // Used to judge the amount of horizontal scroll needed to initiate a image move\n\nvar WHEEL_MOVE_X_THRESHOLD = 200; // Used to judge the amount of vertical scroll needed to initiate a zoom action\n\nvar WHEEL_MOVE_Y_THRESHOLD = 1;\nvar KEYS = {\n ESC: 27,\n LEFT_ARROW: 37,\n RIGHT_ARROW: 39\n}; // Actions\n\nvar ACTION_NONE = 0;\nvar ACTION_MOVE = 1;\nvar ACTION_SWIPE = 2;\nvar ACTION_PINCH = 3;\n\nvar SOURCE_ANY = 0;\nvar SOURCE_MOUSE = 1;\nvar SOURCE_TOUCH = 2;\nvar SOURCE_POINTER = 3; // Minimal swipe distance\n\nvar MIN_SWIPE_DISTANCE = 200;\n\nvar ReactImageLightbox =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(ReactImageLightbox, _Component);\n\n _createClass(ReactImageLightbox, null, [{\n key: \"isTargetMatchImage\",\n value: function isTargetMatchImage(target) {\n return target && /ril-image-current/.test(target.className);\n }\n }, {\n key: \"parseMouseEvent\",\n value: function parseMouseEvent(mouseEvent) {\n return {\n id: 'mouse',\n source: SOURCE_MOUSE,\n x: parseInt(mouseEvent.clientX, 10),\n y: parseInt(mouseEvent.clientY, 10)\n };\n }\n }, {\n key: \"parseTouchPointer\",\n value: function parseTouchPointer(touchPointer) {\n return {\n id: touchPointer.identifier,\n source: SOURCE_TOUCH,\n x: parseInt(touchPointer.clientX, 10),\n y: parseInt(touchPointer.clientY, 10)\n };\n }\n }, {\n key: \"parsePointerEvent\",\n value: function parsePointerEvent(pointerEvent) {\n return {\n id: pointerEvent.pointerId,\n source: SOURCE_POINTER,\n x: parseInt(pointerEvent.clientX, 10),\n y: parseInt(pointerEvent.clientY, 10)\n };\n } // Request to transition to the previous image\n\n }, {\n key: \"getTransform\",\n value: function getTransform(_ref) {\n var _ref$x = _ref.x,\n x = _ref$x === void 0 ? 0 : _ref$x,\n _ref$y = _ref.y,\n y = _ref$y === void 0 ? 0 : _ref$y,\n _ref$zoom = _ref.zoom,\n zoom = _ref$zoom === void 0 ? 1 : _ref$zoom,\n width = _ref.width,\n targetWidth = _ref.targetWidth;\n var nextX = x;\n var windowWidth = getWindowWidth();\n\n if (width > windowWidth) {\n nextX += (windowWidth - width) / 2;\n }\n\n var scaleFactor = zoom * (targetWidth / width);\n return {\n transform: \"translate3d(\".concat(nextX, \"px,\").concat(y, \"px,0) scale3d(\").concat(scaleFactor, \",\").concat(scaleFactor, \",1)\")\n };\n }\n }]);\n\n function ReactImageLightbox(props) {\n var _this;\n\n _classCallCheck(this, ReactImageLightbox);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(ReactImageLightbox).call(this, props));\n _this.state = {\n //-----------------------------\n // Animation\n //-----------------------------\n // Lightbox is closing\n // When Lightbox is mounted, if animation is enabled it will open with the reverse of the closing animation\n isClosing: !props.animationDisabled,\n // Component parts should animate (e.g., when images are moving, or image is being zoomed)\n shouldAnimate: false,\n //-----------------------------\n // Zoom settings\n //-----------------------------\n // Zoom level of image\n zoomLevel: MIN_ZOOM_LEVEL,\n //-----------------------------\n // Image position settings\n //-----------------------------\n // Horizontal offset from center\n offsetX: 0,\n // Vertical offset from center\n offsetY: 0,\n // image load error for srcType\n loadErrorStatus: {}\n }; // Refs\n\n _this.outerEl = React.createRef();\n _this.zoomInBtn = React.createRef();\n _this.zoomOutBtn = React.createRef();\n _this.caption = React.createRef();\n _this.closeIfClickInner = _this.closeIfClickInner.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleImageDoubleClick = _this.handleImageDoubleClick.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleImageMouseWheel = _this.handleImageMouseWheel.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleKeyInput = _this.handleKeyInput.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleMouseUp = _this.handleMouseUp.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleMouseDown = _this.handleMouseDown.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleMouseMove = _this.handleMouseMove.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleOuterMousewheel = _this.handleOuterMousewheel.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleTouchStart = _this.handleTouchStart.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleTouchMove = _this.handleTouchMove.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleTouchEnd = _this.handleTouchEnd.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handlePointerEvent = _this.handlePointerEvent.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleCaptionMousewheel = _this.handleCaptionMousewheel.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleWindowResize = _this.handleWindowResize.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleZoomInButtonClick = _this.handleZoomInButtonClick.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.handleZoomOutButtonClick = _this.handleZoomOutButtonClick.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.requestClose = _this.requestClose.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.requestMoveNext = _this.requestMoveNext.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n _this.requestMovePrev = _this.requestMovePrev.bind(_assertThisInitialized(_assertThisInitialized(_this)));\n return _this;\n }\n\n _createClass(ReactImageLightbox, [{\n key: \"componentWillMount\",\n value: function componentWillMount() {\n // Timeouts - always clear it before umount\n this.timeouts = []; // Current action\n\n this.currentAction = ACTION_NONE; // Events source\n\n this.eventsSource = SOURCE_ANY; // Empty pointers list\n\n this.pointerList = []; // Prevent inner close\n\n this.preventInnerClose = false;\n this.preventInnerCloseTimeout = null; // Used to disable animation when changing props.mainSrc|nextSrc|prevSrc\n\n this.keyPressed = false; // Used to store load state / dimensions of images\n\n this.imageCache = {}; // Time the last keydown event was called (used in keyboard action rate limiting)\n\n this.lastKeyDownTime = 0; // Used for debouncing window resize event\n\n this.resizeTimeout = null; // Used to determine when actions are triggered by the scroll wheel\n\n this.wheelActionTimeout = null;\n this.resetScrollTimeout = null;\n this.scrollX = 0;\n this.scrollY = 0; // Used in panning zoomed images\n\n this.moveStartX = 0;\n this.moveStartY = 0;\n this.moveStartOffsetX = 0;\n this.moveStartOffsetY = 0; // Used to swipe\n\n this.swipeStartX = 0;\n this.swipeStartY = 0;\n this.swipeEndX = 0;\n this.swipeEndY = 0; // Used to pinch\n\n this.pinchTouchList = null;\n this.pinchDistance = 0; // Used to differentiate between images with identical src\n\n this.keyCounter = 0; // Used to detect a move when all src's remain unchanged (four or more of the same image in a row)\n\n this.moveRequested = false;\n\n if (!this.props.animationDisabled) {\n // Make opening animation play\n this.setState({\n isClosing: false\n });\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n\n // Prevents cross-origin errors when using a cross-origin iframe\n this.windowContext = getHighestSafeWindowContext();\n this.listeners = {\n resize: this.handleWindowResize,\n mouseup: this.handleMouseUp,\n touchend: this.handleTouchEnd,\n touchcancel: this.handleTouchEnd,\n pointerdown: this.handlePointerEvent,\n pointermove: this.handlePointerEvent,\n pointerup: this.handlePointerEvent,\n pointercancel: this.handlePointerEvent\n };\n Object.keys(this.listeners).forEach(function (type) {\n _this2.windowContext.addEventListener(type, _this2.listeners[type]);\n });\n this.loadAllImages();\n }\n }, {\n key: \"componentWillReceiveProps\",\n value: function componentWillReceiveProps(nextProps) {\n var _this3 = this;\n\n // Iterate through the source types for prevProps and nextProps to\n // determine if any of the sources changed\n var sourcesChanged = false;\n var prevSrcDict = {};\n var nextSrcDict = {};\n this.getSrcTypes().forEach(function (srcType) {\n if (_this3.props[srcType.name] !== nextProps[srcType.name]) {\n sourcesChanged = true;\n prevSrcDict[_this3.props[srcType.name]] = true;\n nextSrcDict[nextProps[srcType.name]] = true;\n }\n });\n\n if (sourcesChanged || this.moveRequested) {\n // Reset the loaded state for images not rendered next\n Object.keys(prevSrcDict).forEach(function (prevSrc) {\n if (!(prevSrc in nextSrcDict) && prevSrc in _this3.imageCache) {\n _this3.imageCache[prevSrc].loaded = false;\n }\n });\n this.moveRequested = false; // Load any new images\n\n this.loadAllImages(nextProps);\n }\n }\n }, {\n key: \"shouldComponentUpdate\",\n value: function shouldComponentUpdate() {\n // Wait for move...\n return !this.moveRequested;\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n var _this4 = this;\n\n this.didUnmount = true;\n Object.keys(this.listeners).forEach(function (type) {\n _this4.windowContext.removeEventListener(type, _this4.listeners[type]);\n });\n this.timeouts.forEach(function (tid) {\n return clearTimeout(tid);\n });\n }\n }, {\n key: \"setTimeout\",\n value: function (_setTimeout) {\n function setTimeout(_x, _x2) {\n return _setTimeout.apply(this, arguments);\n }\n\n setTimeout.toString = function () {\n return _setTimeout.toString();\n };\n\n return setTimeout;\n }(function (func, time) {\n var _this5 = this;\n\n var id = setTimeout(function () {\n _this5.timeouts = _this5.timeouts.filter(function (tid) {\n return tid !== id;\n });\n func();\n }, time);\n this.timeouts.push(id);\n return id;\n })\n }, {\n key: \"setPreventInnerClose\",\n value: function setPreventInnerClose() {\n var _this6 = this;\n\n if (this.preventInnerCloseTimeout) {\n this.clearTimeout(this.preventInnerCloseTimeout);\n }\n\n this.preventInnerClose = true;\n this.preventInnerCloseTimeout = this.setTimeout(function () {\n _this6.preventInnerClose = false;\n _this6.preventInnerCloseTimeout = null;\n }, 100);\n } // Get info for the best suited image to display with the given srcType\n\n }, {\n key: \"getBestImageForType\",\n value: function getBestImageForType(srcType) {\n var imageSrc = this.props[srcType];\n var fitSizes = {};\n\n if (this.isImageLoaded(imageSrc)) {\n // Use full-size image if available\n fitSizes = this.getFitSizes(this.imageCache[imageSrc].width, this.imageCache[imageSrc].height);\n } else if (this.isImageLoaded(this.props[\"\".concat(srcType, \"Thumbnail\")])) {\n // Fall back to using thumbnail if the image has not been loaded\n imageSrc = this.props[\"\".concat(srcType, \"Thumbnail\")];\n fitSizes = this.getFitSizes(this.imageCache[imageSrc].width, this.imageCache[imageSrc].height, true);\n } else {\n return null;\n }\n\n return {\n src: imageSrc,\n height: this.imageCache[imageSrc].height,\n width: this.imageCache[imageSrc].width,\n targetHeight: fitSizes.height,\n targetWidth: fitSizes.width\n };\n } // Get sizing for when an image is larger than the window\n\n }, {\n key: \"getFitSizes\",\n value: function getFitSizes(width, height, stretch) {\n var boxSize = this.getLightboxRect();\n var maxHeight = boxSize.height - this.props.imagePadding * 2;\n var maxWidth = boxSize.width - this.props.imagePadding * 2;\n\n if (!stretch) {\n maxHeight = Math.min(maxHeight, height);\n maxWidth = Math.min(maxWidth, width);\n }\n\n var maxRatio = maxWidth / maxHeight;\n var srcRatio = width / height;\n\n if (maxRatio > srcRatio) {\n // height is the constraining dimension of the photo\n return {\n width: width * maxHeight / height,\n height: maxHeight\n };\n }\n\n return {\n width: maxWidth,\n height: height * maxWidth / width\n };\n }\n }, {\n key: \"getMaxOffsets\",\n value: function getMaxOffsets() {\n var zoomLevel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.state.zoomLevel;\n var currentImageInfo = this.getBestImageForType('mainSrc');\n\n if (currentImageInfo === null) {\n return {\n maxX: 0,\n minX: 0,\n maxY: 0,\n minY: 0\n };\n }\n\n var boxSize = this.getLightboxRect();\n var zoomMultiplier = this.getZoomMultiplier(zoomLevel);\n var maxX = 0;\n\n if (zoomMultiplier * currentImageInfo.width - boxSize.width < 0) {\n // if there is still blank space in the X dimension, don't limit except to the opposite edge\n maxX = (boxSize.width - zoomMultiplier * currentImageInfo.width) / 2;\n } else {\n maxX = (zoomMultiplier * currentImageInfo.width - boxSize.width) / 2;\n }\n\n var maxY = 0;\n\n if (zoomMultiplier * currentImageInfo.height - boxSize.height < 0) {\n // if there is still blank space in the Y dimension, don't limit except to the opposite edge\n maxY = (boxSize.height - zoomMultiplier * currentImageInfo.height) / 2;\n } else {\n maxY = (zoomMultiplier * currentImageInfo.height - boxSize.height) / 2;\n }\n\n return {\n maxX: maxX,\n maxY: maxY,\n minX: -1 * maxX,\n minY: -1 * maxY\n };\n } // Get image src types\n\n }, {\n key: \"getSrcTypes\",\n value: function getSrcTypes() {\n return [{\n name: 'mainSrc',\n keyEnding: \"i\".concat(this.keyCounter)\n }, {\n name: 'mainSrcThumbnail',\n keyEnding: \"t\".concat(this.keyCounter)\n }, {\n name: 'nextSrc',\n keyEnding: \"i\".concat(this.keyCounter + 1)\n }, {\n name: 'nextSrcThumbnail',\n keyEnding: \"t\".concat(this.keyCounter + 1)\n }, {\n name: 'prevSrc',\n keyEnding: \"i\".concat(this.keyCounter - 1)\n }, {\n name: 'prevSrcThumbnail',\n keyEnding: \"t\".concat(this.keyCounter - 1)\n }];\n }\n /**\n * Get sizing when the image is scaled\n */\n\n }, {\n key: \"getZoomMultiplier\",\n value: function getZoomMultiplier() {\n var zoomLevel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.state.zoomLevel;\n return Math.pow(ZOOM_RATIO, zoomLevel);\n }\n /**\n * Get the size of the lightbox in pixels\n */\n\n }, {\n key: \"getLightboxRect\",\n value: function getLightboxRect() {\n if (this.outerEl.current) {\n return this.outerEl.current.getBoundingClientRect();\n }\n\n return {\n width: getWindowWidth(),\n height: getWindowHeight(),\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n }\n }, {\n key: \"clearTimeout\",\n value: function (_clearTimeout) {\n function clearTimeout(_x3) {\n return _clearTimeout.apply(this, arguments);\n }\n\n clearTimeout.toString = function () {\n return _clearTimeout.toString();\n };\n\n return clearTimeout;\n }(function (id) {\n this.timeouts = this.timeouts.filter(function (tid) {\n return tid !== id;\n });\n clearTimeout(id);\n }) // Change zoom level\n\n }, {\n key: \"changeZoom\",\n value: function changeZoom(zoomLevel, clientX, clientY) {\n // Ignore if zoom disabled\n if (!this.props.enableZoom) {\n return;\n } // Constrain zoom level to the set bounds\n\n\n var nextZoomLevel = Math.max(MIN_ZOOM_LEVEL, Math.min(MAX_ZOOM_LEVEL, zoomLevel)); // Ignore requests that don't change the zoom level\n\n if (nextZoomLevel === this.state.zoomLevel) {\n return;\n }\n\n if (nextZoomLevel === MIN_ZOOM_LEVEL) {\n // Snap back to center if zoomed all the way out\n this.setState({\n zoomLevel: nextZoomLevel,\n offsetX: 0,\n offsetY: 0\n });\n return;\n }\n\n var imageBaseSize = this.getBestImageForType('mainSrc');\n\n if (imageBaseSize === null) {\n return;\n }\n\n var currentZoomMultiplier = this.getZoomMultiplier();\n var nextZoomMultiplier = this.getZoomMultiplier(nextZoomLevel); // Default to the center of the image to zoom when no mouse position specified\n\n var boxRect = this.getLightboxRect();\n var pointerX = typeof clientX !== 'undefined' ? clientX - boxRect.left : boxRect.width / 2;\n var pointerY = typeof clientY !== 'undefined' ? clientY - boxRect.top : boxRect.height / 2;\n var currentImageOffsetX = (boxRect.width - imageBaseSize.width * currentZoomMultiplier) / 2;\n var currentImageOffsetY = (boxRect.height - imageBaseSize.height * currentZoomMultiplier) / 2;\n var currentImageRealOffsetX = currentImageOffsetX - this.state.offsetX;\n var currentImageRealOffsetY = currentImageOffsetY - this.state.offsetY;\n var currentPointerXRelativeToImage = (pointerX - currentImageRealOffsetX) / currentZoomMultiplier;\n var currentPointerYRelativeToImage = (pointerY - currentImageRealOffsetY) / currentZoomMultiplier;\n var nextImageRealOffsetX = pointerX - currentPointerXRelativeToImage * nextZoomMultiplier;\n var nextImageRealOffsetY = pointerY - currentPointerYRelativeToImage * nextZoomMultiplier;\n var nextImageOffsetX = (boxRect.width - imageBaseSize.width * nextZoomMultiplier) / 2;\n var nextImageOffsetY = (boxRect.height - imageBaseSize.height * nextZoomMultiplier) / 2;\n var nextOffsetX = nextImageOffsetX - nextImageRealOffsetX;\n var nextOffsetY = nextImageOffsetY - nextImageRealOffsetY; // When zooming out, limit the offset so things don't get left askew\n\n if (this.currentAction !== ACTION_PINCH) {\n var maxOffsets = this.getMaxOffsets();\n\n if (this.state.zoomLevel > nextZoomLevel) {\n nextOffsetX = Math.max(maxOffsets.minX, Math.min(maxOffsets.maxX, nextOffsetX));\n nextOffsetY = Math.max(maxOffsets.minY, Math.min(maxOffsets.maxY, nextOffsetY));\n }\n }\n\n this.setState({\n zoomLevel: nextZoomLevel,\n offsetX: nextOffsetX,\n offsetY: nextOffsetY\n });\n }\n }, {\n key: \"closeIfClickInner\",\n value: function closeIfClickInner(event) {\n if (!this.preventInnerClose && event.target.className.search(/\\bril-inner\\b/) > -1) {\n this.requestClose(event);\n }\n }\n /**\n * Handle user keyboard actions\n */\n\n }, {\n key: \"handleKeyInput\",\n value: function handleKeyInput(event) {\n event.stopPropagation(); // Ignore key input during animations\n\n if (this.isAnimating()) {\n return;\n } // Allow slightly faster navigation through the images when user presses keys repeatedly\n\n\n if (event.type === 'keyup') {\n this.lastKeyDownTime -= this.props.keyRepeatKeyupBonus;\n return;\n }\n\n var keyCode = event.which || event.keyCode; // Ignore key presses that happen too close to each other (when rapid fire key pressing or holding down the key)\n // But allow it if it's a lightbox closing action\n\n var currentTime = new Date();\n\n if (currentTime.getTime() - this.lastKeyDownTime < this.props.keyRepeatLimit && keyCode !== KEYS.ESC) {\n return;\n }\n\n this.lastKeyDownTime = currentTime.getTime();\n\n switch (keyCode) {\n // ESC key closes the lightbox\n case KEYS.ESC:\n event.preventDefault();\n this.requestClose(event);\n break;\n // Left arrow key moves to previous image\n\n case KEYS.LEFT_ARROW:\n if (!this.props.prevSrc) {\n return;\n }\n\n event.preventDefault();\n this.keyPressed = true;\n this.requestMovePrev(event);\n break;\n // Right arrow key moves to next image\n\n case KEYS.RIGHT_ARROW:\n if (!this.props.nextSrc) {\n return;\n }\n\n event.preventDefault();\n this.keyPressed = true;\n this.requestMoveNext(event);\n break;\n }\n }\n /**\n * Handle a mouse wheel event over the lightbox container\n */\n\n }, {\n key: \"handleOuterMousewheel\",\n value: function handleOuterMousewheel(event) {\n var _this7 = this;\n\n // Prevent scrolling of the background\n event.stopPropagation();\n var xThreshold = WHEEL_MOVE_X_THRESHOLD;\n var actionDelay = 0;\n var imageMoveDelay = 500;\n this.clearTimeout(this.resetScrollTimeout);\n this.resetScrollTimeout = this.setTimeout(function () {\n _this7.scrollX = 0;\n _this7.scrollY = 0;\n }, 300); // Prevent rapid-fire zoom behavior\n\n if (this.wheelActionTimeout !== null || this.isAnimating()) {\n return;\n }\n\n if (Math.abs(event.deltaY) < Math.abs(event.deltaX)) {\n // handle horizontal scrolls with image moves\n this.scrollY = 0;\n this.scrollX += event.deltaX;\n var bigLeapX = xThreshold / 2; // If the scroll amount has accumulated sufficiently, or a large leap was taken\n\n if (this.scrollX >= xThreshold || event.deltaX >= bigLeapX) {\n // Scroll right moves to next\n this.requestMoveNext(event);\n actionDelay = imageMoveDelay;\n this.scrollX = 0;\n } else if (this.scrollX <= -1 * xThreshold || event.deltaX <= -1 * bigLeapX) {\n // Scroll left moves to previous\n this.requestMovePrev(event);\n actionDelay = imageMoveDelay;\n this.scrollX = 0;\n }\n } // Allow successive actions after the set delay\n\n\n if (actionDelay !== 0) {\n this.wheelActionTimeout = this.setTimeout(function () {\n _this7.wheelActionTimeout = null;\n }, actionDelay);\n }\n }\n }, {\n key: \"handleImageMouseWheel\",\n value: function handleImageMouseWheel(event) {\n var yThreshold = WHEEL_MOVE_Y_THRESHOLD;\n\n if (Math.abs(event.deltaY) >= Math.abs(event.deltaX)) {\n event.stopPropagation(); // If the vertical scroll amount was large enough, perform a zoom\n\n if (Math.abs(event.deltaY) < yThreshold) {\n return;\n }\n\n this.scrollX = 0;\n this.scrollY += event.deltaY;\n this.changeZoom(this.state.zoomLevel - event.deltaY, event.clientX, event.clientY);\n }\n }\n /**\n * Handle a double click on the current image\n */\n\n }, {\n key: \"handleImageDoubleClick\",\n value: function handleImageDoubleClick(event) {\n if (this.state.zoomLevel > MIN_ZOOM_LEVEL) {\n // A double click when zoomed in zooms all the way out\n this.changeZoom(MIN_ZOOM_LEVEL, event.clientX, event.clientY);\n } else {\n // A double click when zoomed all the way out zooms in\n this.changeZoom(this.state.zoomLevel + ZOOM_BUTTON_INCREMENT_SIZE, event.clientX, event.clientY);\n }\n }\n }, {\n key: \"shouldHandleEvent\",\n value: function shouldHandleEvent(source) {\n if (this.eventsSource === source) {\n return true;\n }\n\n if (this.eventsSource === SOURCE_ANY) {\n this.eventsSource = source;\n return true;\n }\n\n switch (source) {\n case SOURCE_MOUSE:\n return false;\n\n case SOURCE_TOUCH:\n this.eventsSource = SOURCE_TOUCH;\n this.filterPointersBySource();\n return true;\n\n case SOURCE_POINTER:\n if (this.eventsSource === SOURCE_MOUSE) {\n this.eventsSource = SOURCE_POINTER;\n this.filterPointersBySource();\n return true;\n }\n\n return false;\n\n default:\n return false;\n }\n }\n }, {\n key: \"addPointer\",\n value: function addPointer(pointer) {\n this.pointerList.push(pointer);\n }\n }, {\n key: \"removePointer\",\n value: function removePointer(pointer) {\n this.pointerList = this.pointerList.filter(function (_ref2) {\n var id = _ref2.id;\n return id !== pointer.id;\n });\n }\n }, {\n key: \"filterPointersBySource\",\n value: function filterPointersBySource() {\n var _this8 = this;\n\n this.pointerList = this.pointerList.filter(function (_ref3) {\n var source = _ref3.source;\n return source === _this8.eventsSource;\n });\n }\n }, {\n key: \"handleMouseDown\",\n value: function handleMouseDown(event) {\n if (this.shouldHandleEvent(SOURCE_MOUSE) && ReactImageLightbox.isTargetMatchImage(event.target)) {\n this.addPointer(ReactImageLightbox.parseMouseEvent(event));\n this.multiPointerStart(event);\n }\n }\n }, {\n key: \"handleMouseMove\",\n value: function handleMouseMove(event) {\n if (this.shouldHandleEvent(SOURCE_MOUSE)) {\n this.multiPointerMove(event, [ReactImageLightbox.parseMouseEvent(event)]);\n }\n }\n }, {\n key: \"handleMouseUp\",\n value: function handleMouseUp(event) {\n if (this.shouldHandleEvent(SOURCE_MOUSE)) {\n this.removePointer(ReactImageLightbox.parseMouseEvent(event));\n this.multiPointerEnd(event);\n }\n }\n }, {\n key: \"handlePointerEvent\",\n value: function handlePointerEvent(event) {\n if (this.shouldHandleEvent(SOURCE_POINTER)) {\n switch (event.type) {\n case 'pointerdown':\n if (ReactImageLightbox.isTargetMatchImage(event.target)) {\n this.addPointer(ReactImageLightbox.parsePointerEvent(event));\n this.multiPointerStart(event);\n }\n\n break;\n\n case 'pointermove':\n this.multiPointerMove(event, [ReactImageLightbox.parsePointerEvent(event)]);\n break;\n\n case 'pointerup':\n case 'pointercancel':\n this.removePointer(ReactImageLightbox.parsePointerEvent(event));\n this.multiPointerEnd(event);\n break;\n }\n }\n }\n }, {\n key: \"handleTouchStart\",\n value: function handleTouchStart(event) {\n var _this9 = this;\n\n if (this.shouldHandleEvent(SOURCE_TOUCH) && ReactImageLightbox.isTargetMatchImage(event.target)) {\n [].forEach.call(event.changedTouches, function (eventTouch) {\n return _this9.addPointer(ReactImageLightbox.parseTouchPointer(eventTouch));\n });\n this.multiPointerStart(event);\n }\n }\n }, {\n key: \"handleTouchMove\",\n value: function handleTouchMove(event) {\n if (this.shouldHandleEvent(SOURCE_TOUCH)) {\n this.multiPointerMove(event, [].map.call(event.changedTouches, function (eventTouch) {\n return ReactImageLightbox.parseTouchPointer(eventTouch);\n }));\n }\n }\n }, {\n key: \"handleTouchEnd\",\n value: function handleTouchEnd(event) {\n var _this10 = this;\n\n if (this.shouldHandleEvent(SOURCE_TOUCH)) {\n [].map.call(event.changedTouches, function (touch) {\n return _this10.removePointer(ReactImageLightbox.parseTouchPointer(touch));\n });\n this.multiPointerEnd(event);\n }\n }\n }, {\n key: \"decideMoveOrSwipe\",\n value: function decideMoveOrSwipe(pointer) {\n if (this.state.zoomLevel <= MIN_ZOOM_LEVEL) {\n this.handleSwipeStart(pointer);\n } else {\n this.handleMoveStart(pointer);\n }\n }\n }, {\n key: \"multiPointerStart\",\n value: function multiPointerStart(event) {\n this.handleEnd(null);\n\n switch (this.pointerList.length) {\n case 1:\n {\n event.preventDefault();\n this.decideMoveOrSwipe(this.pointerList[0]);\n break;\n }\n\n case 2:\n {\n event.preventDefault();\n this.handlePinchStart(this.pointerList);\n break;\n }\n }\n }\n }, {\n key: \"multiPointerMove\",\n value: function multiPointerMove(event, pointerList) {\n switch (this.currentAction) {\n case ACTION_MOVE:\n {\n event.preventDefault();\n this.handleMove(pointerList[0]);\n break;\n }\n\n case ACTION_SWIPE:\n {\n event.preventDefault();\n this.handleSwipe(pointerList[0]);\n break;\n }\n\n case ACTION_PINCH:\n {\n event.preventDefault();\n this.handlePinch(pointerList);\n break;\n }\n }\n }\n }, {\n key: \"multiPointerEnd\",\n value: function multiPointerEnd(event) {\n if (this.currentAction !== ACTION_NONE) {\n this.setPreventInnerClose();\n this.handleEnd(event);\n }\n\n switch (this.pointerList.length) {\n case 0:\n {\n this.eventsSource = SOURCE_ANY;\n break;\n }\n\n case 1:\n {\n event.preventDefault();\n this.decideMoveOrSwipe(this.pointerList[0]);\n break;\n }\n\n case 2:\n {\n event.preventDefault();\n this.handlePinchStart(this.pointerList);\n break;\n }\n }\n }\n }, {\n key: \"handleEnd\",\n value: function handleEnd(event) {\n switch (this.currentAction) {\n case ACTION_MOVE:\n this.handleMoveEnd(event);\n break;\n\n case ACTION_SWIPE:\n this.handleSwipeEnd(event);\n break;\n\n case ACTION_PINCH:\n this.handlePinchEnd(event);\n break;\n }\n } // Handle move start over the lightbox container\n // This happens:\n // - On a mouseDown event\n // - On a touchstart event\n\n }, {\n key: \"handleMoveStart\",\n value: function handleMoveStart(_ref4) {\n var clientX = _ref4.x,\n clientY = _ref4.y;\n\n if (!this.props.enableZoom) {\n return;\n }\n\n this.currentAction = ACTION_MOVE;\n this.moveStartX = clientX;\n this.moveStartY = clientY;\n this.moveStartOffsetX = this.state.offsetX;\n this.moveStartOffsetY = this.state.offsetY;\n } // Handle dragging over the lightbox container\n // This happens:\n // - After a mouseDown and before a mouseUp event\n // - After a touchstart and before a touchend event\n\n }, {\n key: \"handleMove\",\n value: function handleMove(_ref5) {\n var clientX = _ref5.x,\n clientY = _ref5.y;\n var newOffsetX = this.moveStartX - clientX + this.moveStartOffsetX;\n var newOffsetY = this.moveStartY - clientY + this.moveStartOffsetY;\n\n if (this.state.offsetX !== newOffsetX || this.state.offsetY !== newOffsetY) {\n this.setState({\n offsetX: newOffsetX,\n offsetY: newOffsetY\n });\n }\n }\n }, {\n key: \"handleMoveEnd\",\n value: function handleMoveEnd() {\n var _this11 = this;\n\n this.currentAction = ACTION_NONE;\n this.moveStartX = 0;\n this.moveStartY = 0;\n this.moveStartOffsetX = 0;\n this.moveStartOffsetY = 0; // Snap image back into frame if outside max offset range\n\n var maxOffsets = this.getMaxOffsets();\n var nextOffsetX = Math.max(maxOffsets.minX, Math.min(maxOffsets.maxX, this.state.offsetX));\n var nextOffsetY = Math.max(maxOffsets.minY, Math.min(maxOffsets.maxY, this.state.offsetY));\n\n if (nextOffsetX !== this.state.offsetX || nextOffsetY !== this.state.offsetY) {\n this.setState({\n offsetX: nextOffsetX,\n offsetY: nextOffsetY,\n shouldAnimate: true\n });\n this.setTimeout(function () {\n _this11.setState({\n shouldAnimate: false\n });\n }, this.props.animationDuration);\n }\n }\n }, {\n key: \"handleSwipeStart\",\n value: function handleSwipeStart(_ref6) {\n var clientX = _ref6.x,\n clientY = _ref6.y;\n this.currentAction = ACTION_SWIPE;\n this.swipeStartX = clientX;\n this.swipeStartY = clientY;\n this.swipeEndX = clientX;\n this.swipeEndY = clientY;\n }\n }, {\n key: \"handleSwipe\",\n value: function handleSwipe(_ref7) {\n var clientX = _ref7.x,\n clientY = _ref7.y;\n this.swipeEndX = clientX;\n this.swipeEndY = clientY;\n }\n }, {\n key: \"handleSwipeEnd\",\n value: function handleSwipeEnd(event) {\n var xDiff = this.swipeEndX - this.swipeStartX;\n var xDiffAbs = Math.abs(xDiff);\n var yDiffAbs = Math.abs(this.swipeEndY - this.swipeStartY);\n this.currentAction = ACTION_NONE;\n this.swipeStartX = 0;\n this.swipeStartY = 0;\n this.swipeEndX = 0;\n this.swipeEndY = 0;\n\n if (!event || this.isAnimating() || xDiffAbs < yDiffAbs * 1.5) {\n return;\n }\n\n if (xDiffAbs < MIN_SWIPE_DISTANCE) {\n var boxRect = this.getLightboxRect();\n\n if (xDiffAbs < boxRect.width / 4) {\n return;\n }\n }\n\n if (xDiff > 0 && this.props.prevSrc) {\n event.preventDefault();\n this.requestMovePrev();\n } else if (xDiff < 0 && this.props.nextSrc) {\n event.preventDefault();\n this.requestMoveNext();\n }\n }\n }, {\n key: \"calculatePinchDistance\",\n value: function calculatePinchDistance() {\n var _ref8 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.pinchTouchList,\n _ref9 = _slicedToArray(_ref8, 2),\n a = _ref9[0],\n b = _ref9[1];\n\n return Math.sqrt(Math.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2));\n }\n }, {\n key: \"calculatePinchCenter\",\n value: function calculatePinchCenter() {\n var _ref10 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.pinchTouchList,\n _ref11 = _slicedToArray(_ref10, 2),\n a = _ref11[0],\n b = _ref11[1];\n\n return {\n x: a.x - (a.x - b.x) / 2,\n y: a.y - (a.y - b.y) / 2\n };\n }\n }, {\n key: \"handlePinchStart\",\n value: function handlePinchStart(pointerList) {\n if (!this.props.enableZoom) {\n return;\n }\n\n this.currentAction = ACTION_PINCH;\n this.pinchTouchList = pointerList.map(function (_ref12) {\n var id = _ref12.id,\n x = _ref12.x,\n y = _ref12.y;\n return {\n id: id,\n x: x,\n y: y\n };\n });\n this.pinchDistance = this.calculatePinchDistance();\n }\n }, {\n key: \"handlePinch\",\n value: function handlePinch(pointerList) {\n this.pinchTouchList = this.pinchTouchList.map(function (oldPointer) {\n for (var i = 0; i < pointerList.length; i += 1) {\n if (pointerList[i].id === oldPointer.id) {\n return pointerList[i];\n }\n }\n\n return oldPointer;\n });\n var newDistance = this.calculatePinchDistance();\n var zoomLevel = this.state.zoomLevel + newDistance - this.pinchDistance;\n this.pinchDistance = newDistance;\n\n var _this$calculatePinchC = this.calculatePinchCenter(this.pinchTouchList),\n clientX = _this$calculatePinchC.x,\n clientY = _this$calculatePinchC.y;\n\n this.changeZoom(zoomLevel, clientX, clientY);\n }\n }, {\n key: \"handlePinchEnd\",\n value: function handlePinchEnd() {\n this.currentAction = ACTION_NONE;\n this.pinchTouchList = null;\n this.pinchDistance = 0;\n } // Handle the window resize event\n\n }, {\n key: \"handleWindowResize\",\n value: function handleWindowResize() {\n this.clearTimeout(this.resizeTimeout);\n this.resizeTimeout = this.setTimeout(this.forceUpdate.bind(this), 100);\n }\n }, {\n key: \"handleZoomInButtonClick\",\n value: function handleZoomInButtonClick() {\n var nextZoomLevel = this.state.zoomLevel + ZOOM_BUTTON_INCREMENT_SIZE;\n this.changeZoom(nextZoomLevel);\n\n if (nextZoomLevel === MAX_ZOOM_LEVEL) {\n this.zoomOutBtn.current.focus();\n }\n }\n }, {\n key: \"handleZoomOutButtonClick\",\n value: function handleZoomOutButtonClick() {\n var nextZoomLevel = this.state.zoomLevel - ZOOM_BUTTON_INCREMENT_SIZE;\n this.changeZoom(nextZoomLevel);\n\n if (nextZoomLevel === MIN_ZOOM_LEVEL) {\n this.zoomInBtn.current.focus();\n }\n }\n }, {\n key: \"handleCaptionMousewheel\",\n value: function handleCaptionMousewheel(event) {\n event.stopPropagation();\n\n if (!this.caption.current) {\n return;\n }\n\n var _this$caption$current = this.caption.current.getBoundingClientRect(),\n height = _this$caption$current.height;\n\n var _this$caption$current2 = this.caption.current,\n scrollHeight = _this$caption$current2.scrollHeight,\n scrollTop = _this$caption$current2.scrollTop;\n\n if (event.deltaY > 0 && height + scrollTop >= scrollHeight || event.deltaY < 0 && scrollTop <= 0) {\n event.preventDefault();\n }\n } // Detach key and mouse input events\n\n }, {\n key: \"isAnimating\",\n value: function isAnimating() {\n return this.state.shouldAnimate || this.state.isClosing;\n } // Check if image is loaded\n\n }, {\n key: \"isImageLoaded\",\n value: function isImageLoaded(imageSrc) {\n return imageSrc && imageSrc in this.imageCache && this.imageCache[imageSrc].loaded;\n } // Load image from src and call callback with image width and height on load\n\n }, {\n key: \"loadImage\",\n value: function loadImage(srcType, imageSrc, done) {\n var _this12 = this;\n\n // Return the image info if it is already cached\n if (this.isImageLoaded(imageSrc)) {\n this.setTimeout(function () {\n done();\n }, 1);\n return;\n }\n\n var inMemoryImage = new global.Image();\n\n if (this.props.imageCrossOrigin) {\n inMemoryImage.crossOrigin = this.props.imageCrossOrigin;\n }\n\n inMemoryImage.onerror = function (errorEvent) {\n _this12.props.onImageLoadError(imageSrc, srcType, errorEvent); // failed to load so set the state loadErrorStatus\n\n\n _this12.setState(function (prevState) {\n return {\n loadErrorStatus: _objectSpread({}, prevState.loadErrorStatus, _defineProperty({}, srcType, true))\n };\n });\n\n done(errorEvent);\n };\n\n inMemoryImage.onload = function () {\n _this12.props.onImageLoad(imageSrc, srcType, inMemoryImage);\n\n _this12.imageCache[imageSrc] = {\n loaded: true,\n width: inMemoryImage.width,\n height: inMemoryImage.height\n };\n done();\n };\n\n inMemoryImage.src = imageSrc;\n } // Load all images and their thumbnails\n\n }, {\n key: \"loadAllImages\",\n value: function loadAllImages() {\n var _this13 = this;\n\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props;\n\n var generateLoadDoneCallback = function generateLoadDoneCallback(srcType, imageSrc) {\n return function (err) {\n // Give up showing image on error\n if (err) {\n return;\n } // Don't rerender if the src is not the same as when the load started\n // or if the component has unmounted\n\n\n if (_this13.props[srcType] !== imageSrc || _this13.didUnmount) {\n return;\n } // Force rerender with the new image\n\n\n _this13.forceUpdate();\n };\n }; // Load the images\n\n\n this.getSrcTypes().forEach(function (srcType) {\n var type = srcType.name; // there is no error when we try to load it initially\n\n if (props[type] && _this13.state.loadErrorStatus[type]) {\n _this13.setState(function (prevState) {\n return {\n loadErrorStatus: _objectSpread({}, prevState.loadErrorStatus, _defineProperty({}, type, false))\n };\n });\n } // Load unloaded images\n\n\n if (props[type] && !_this13.isImageLoaded(props[type])) {\n _this13.loadImage(type, props[type], generateLoadDoneCallback(type, props[type]));\n }\n });\n } // Request that the lightbox be closed\n\n }, {\n key: \"requestClose\",\n value: function requestClose(event) {\n var _this14 = this;\n\n // Call the parent close request\n var closeLightbox = function closeLightbox() {\n return _this14.props.onCloseRequest(event);\n };\n\n if (this.props.animationDisabled || event.type === 'keydown' && !this.props.animationOnKeyInput) {\n // No animation\n closeLightbox();\n return;\n } // With animation\n // Start closing animation\n\n\n this.setState({\n isClosing: true\n }); // Perform the actual closing at the end of the animation\n\n this.setTimeout(closeLightbox, this.props.animationDuration);\n }\n }, {\n key: \"requestMove\",\n value: function requestMove(direction, event) {\n var _this15 = this;\n\n // Reset the zoom level on image move\n var nextState = {\n zoomLevel: MIN_ZOOM_LEVEL,\n offsetX: 0,\n offsetY: 0\n }; // Enable animated states\n\n if (!this.props.animationDisabled && (!this.keyPressed || this.props.animationOnKeyInput)) {\n nextState.shouldAnimate = true;\n this.setTimeout(function () {\n return _this15.setState({\n shouldAnimate: false\n });\n }, this.props.animationDuration);\n }\n\n this.keyPressed = false;\n this.moveRequested = true;\n\n if (direction === 'prev') {\n this.keyCounter -= 1;\n this.setState(nextState);\n this.props.onMovePrevRequest(event);\n } else {\n this.keyCounter += 1;\n this.setState(nextState);\n this.props.onMoveNextRequest(event);\n }\n } // Request to transition to the next image\n\n }, {\n key: \"requestMoveNext\",\n value: function requestMoveNext(event) {\n this.requestMove('next', event);\n } // Request to transition to the previous image\n\n }, {\n key: \"requestMovePrev\",\n value: function requestMovePrev(event) {\n this.requestMove('prev', event);\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this16 = this;\n\n var _this$props = this.props,\n animationDisabled = _this$props.animationDisabled,\n animationDuration = _this$props.animationDuration,\n clickOutsideToClose = _this$props.clickOutsideToClose,\n discourageDownloads = _this$props.discourageDownloads,\n enableZoom = _this$props.enableZoom,\n imageTitle = _this$props.imageTitle,\n nextSrc = _this$props.nextSrc,\n prevSrc = _this$props.prevSrc,\n toolbarButtons = _this$props.toolbarButtons,\n reactModalStyle = _this$props.reactModalStyle,\n _onAfterOpen = _this$props.onAfterOpen,\n imageCrossOrigin = _this$props.imageCrossOrigin,\n reactModalProps = _this$props.reactModalProps;\n var _this$state = this.state,\n zoomLevel = _this$state.zoomLevel,\n offsetX = _this$state.offsetX,\n offsetY = _this$state.offsetY,\n isClosing = _this$state.isClosing,\n loadErrorStatus = _this$state.loadErrorStatus;\n var boxSize = this.getLightboxRect();\n var transitionStyle = {}; // Transition settings for sliding animations\n\n if (!animationDisabled && this.isAnimating()) {\n transitionStyle = _objectSpread({}, transitionStyle, {\n transition: \"transform \".concat(animationDuration, \"ms\")\n });\n } // Key endings to differentiate between images with the same src\n\n\n var keyEndings = {};\n this.getSrcTypes().forEach(function (_ref13) {\n var name = _ref13.name,\n keyEnding = _ref13.keyEnding;\n keyEndings[name] = keyEnding;\n }); // Images to be displayed\n\n var images = [];\n\n var addImage = function addImage(srcType, imageClass, transforms) {\n // Ignore types that have no source defined for their full size image\n if (!_this16.props[srcType]) {\n return;\n }\n\n var bestImageInfo = _this16.getBestImageForType(srcType);\n\n var imageStyle = _objectSpread({}, transitionStyle, ReactImageLightbox.getTransform(_objectSpread({}, transforms, bestImageInfo)));\n\n if (zoomLevel > MIN_ZOOM_LEVEL) {\n imageStyle.cursor = 'move';\n } // support IE 9 and 11\n\n\n var hasTrueValue = function hasTrueValue(object) {\n return Object.keys(object).some(function (key) {\n return object[key];\n });\n }; // when error on one of the loads then push custom error stuff\n\n\n if (bestImageInfo === null && hasTrueValue(loadErrorStatus)) {\n images.push(React.createElement(\"div\", {\n className: \"\".concat(imageClass, \" ril__image ril-errored\"),\n style: imageStyle,\n key: _this16.props[srcType] + keyEndings[srcType]\n }, React.createElement(\"div\", {\n className: \"ril__errorContainer\"\n }, _this16.props.imageLoadErrorMessage)));\n return;\n }\n\n if (bestImageInfo === null) {\n var loadingIcon = React.createElement(\"div\", {\n className: \"ril-loading-circle ril__loadingCircle ril__loadingContainer__icon\"\n }, _toConsumableArray(new Array(12)).map(function (_, index) {\n return React.createElement(\"div\", {\n // eslint-disable-next-line react/no-array-index-key\n key: index,\n className: \"ril-loading-circle-point ril__loadingCirclePoint\"\n });\n })); // Fall back to loading icon if the thumbnail has not been loaded\n\n images.push(React.createElement(\"div\", {\n className: \"\".concat(imageClass, \" ril__image ril-not-loaded\"),\n style: imageStyle,\n key: _this16.props[srcType] + keyEndings[srcType]\n }, React.createElement(\"div\", {\n className: \"ril__loadingContainer\"\n }, loadingIcon)));\n return;\n }\n\n var imageSrc = bestImageInfo.src;\n\n if (discourageDownloads) {\n imageStyle.backgroundImage = \"url('\".concat(imageSrc, \"')\");\n images.push(React.createElement(\"div\", {\n className: \"\".concat(imageClass, \" ril__image ril__imageDiscourager\"),\n onDoubleClick: _this16.handleImageDoubleClick,\n onWheel: _this16.handleImageMouseWheel,\n style: imageStyle,\n key: imageSrc + keyEndings[srcType]\n }, React.createElement(\"div\", {\n className: \"ril-download-blocker ril__downloadBlocker\"\n })));\n } else {\n images.push(React.createElement(\"img\", _extends({}, imageCrossOrigin ? {\n crossOrigin: imageCrossOrigin\n } : {}, {\n className: \"\".concat(imageClass, \" ril__image\"),\n onDoubleClick: _this16.handleImageDoubleClick,\n onWheel: _this16.handleImageMouseWheel,\n onDragStart: function onDragStart(e) {\n return e.preventDefault();\n },\n style: imageStyle,\n src: imageSrc,\n key: imageSrc + keyEndings[srcType],\n alt: typeof imageTitle === 'string' ? imageTitle : translate('Image'),\n draggable: false\n })));\n }\n };\n\n var zoomMultiplier = this.getZoomMultiplier(); // Next Image (displayed on the right)\n\n addImage('nextSrc', 'ril-image-next ril__imageNext', {\n x: boxSize.width\n }); // Main Image\n\n addImage('mainSrc', 'ril-image-current', {\n x: -1 * offsetX,\n y: -1 * offsetY,\n zoom: zoomMultiplier\n }); // Previous Image (displayed on the left)\n\n addImage('prevSrc', 'ril-image-prev ril__imagePrev', {\n x: -1 * boxSize.width\n });\n var modalStyle = {\n overlay: _objectSpread({\n zIndex: 1000,\n backgroundColor: 'transparent'\n }, reactModalStyle.overlay),\n content: _objectSpread({\n backgroundColor: 'transparent',\n overflow: 'hidden',\n // Needed, otherwise keyboard shortcuts scroll the page\n border: 'none',\n borderRadius: 0,\n padding: 0,\n top: 0,\n left: 0,\n right: 0,\n bottom: 0\n }, reactModalStyle.content)\n };\n return React.createElement(Modal, _extends({\n isOpen: true,\n onRequestClose: clickOutsideToClose ? this.requestClose : undefined,\n onAfterOpen: function onAfterOpen() {\n // Focus on the div with key handlers\n if (_this16.outerEl.current) {\n _this16.outerEl.current.focus();\n }\n\n _onAfterOpen();\n },\n style: modalStyle,\n contentLabel: translate('Lightbox'),\n appElement: typeof global.window !== 'undefined' ? global.window.document.body : undefined\n }, reactModalProps), React.createElement(\"div\", {\n // eslint-disable-line jsx-a11y/no-static-element-interactions\n // Floating modal with closing animations\n className: \"ril-outer ril__outer ril__outerAnimating \".concat(this.props.wrapperClassName, \" \").concat(isClosing ? 'ril-closing ril__outerClosing' : ''),\n style: {\n transition: \"opacity \".concat(animationDuration, \"ms\"),\n animationDuration: \"\".concat(animationDuration, \"ms\"),\n animationDirection: isClosing ? 'normal' : 'reverse'\n },\n ref: this.outerEl,\n onWheel: this.handleOuterMousewheel,\n onMouseMove: this.handleMouseMove,\n onMouseDown: this.handleMouseDown,\n onTouchStart: this.handleTouchStart,\n onTouchMove: this.handleTouchMove,\n tabIndex: \"-1\" // Enables key handlers on div\n ,\n onKeyDown: this.handleKeyInput,\n onKeyUp: this.handleKeyInput\n }, React.createElement(\"div\", {\n // eslint-disable-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events\n // Image holder\n className: \"ril-inner ril__inner\",\n onClick: clickOutsideToClose ? this.closeIfClickInner : undefined\n }, images), prevSrc && React.createElement(\"button\", {\n // Move to previous image button\n type: \"button\",\n className: \"ril-prev-button ril__navButtons ril__navButtonPrev\",\n key: \"prev\",\n \"aria-label\": this.props.prevLabel,\n onClick: !this.isAnimating() ? this.requestMovePrev : undefined // Ignore clicks during animation\n\n }), nextSrc && React.createElement(\"button\", {\n // Move to next image button\n type: \"button\",\n className: \"ril-next-button ril__navButtons ril__navButtonNext\",\n key: \"next\",\n \"aria-label\": this.props.nextLabel,\n onClick: !this.isAnimating() ? this.requestMoveNext : undefined // Ignore clicks during animation\n\n }), React.createElement(\"div\", {\n // Lightbox toolbar\n className: \"ril-toolbar ril__toolbar\"\n }, React.createElement(\"ul\", {\n className: \"ril-toolbar-left ril__toolbarSide ril__toolbarLeftSide\"\n }, React.createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, React.createElement(\"span\", {\n className: \"ril-toolbar__item__child ril__toolbarItemChild\"\n }, imageTitle))), React.createElement(\"ul\", {\n className: \"ril-toolbar-right ril__toolbarSide ril__toolbarRightSide\"\n }, toolbarButtons && toolbarButtons.map(function (button, i) {\n return React.createElement(\"li\", {\n key: \"button_\".concat(i + 1),\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, button);\n }), enableZoom && React.createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, React.createElement(\"button\", {\n // Lightbox zoom in button\n type: \"button\",\n key: \"zoom-in\",\n \"aria-label\": this.props.zoomInLabel,\n className: ['ril-zoom-in', 'ril__toolbarItemChild', 'ril__builtinButton', 'ril__zoomInButton'].concat(_toConsumableArray(zoomLevel === MAX_ZOOM_LEVEL ? ['ril__builtinButtonDisabled'] : [])).join(' '),\n ref: this.zoomInBtn,\n disabled: this.isAnimating() || zoomLevel === MAX_ZOOM_LEVEL,\n onClick: !this.isAnimating() && zoomLevel !== MAX_ZOOM_LEVEL ? this.handleZoomInButtonClick : undefined\n })), enableZoom && React.createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, React.createElement(\"button\", {\n // Lightbox zoom out button\n type: \"button\",\n key: \"zoom-out\",\n \"aria-label\": this.props.zoomOutLabel,\n className: ['ril-zoom-out', 'ril__toolbarItemChild', 'ril__builtinButton', 'ril__zoomOutButton'].concat(_toConsumableArray(zoomLevel === MIN_ZOOM_LEVEL ? ['ril__builtinButtonDisabled'] : [])).join(' '),\n ref: this.zoomOutBtn,\n disabled: this.isAnimating() || zoomLevel === MIN_ZOOM_LEVEL,\n onClick: !this.isAnimating() && zoomLevel !== MIN_ZOOM_LEVEL ? this.handleZoomOutButtonClick : undefined\n })), React.createElement(\"li\", {\n className: \"ril-toolbar__item ril__toolbarItem\"\n }, React.createElement(\"button\", {\n // Lightbox close button\n type: \"button\",\n key: \"close\",\n \"aria-label\": this.props.closeLabel,\n className: \"ril-close ril-toolbar__item__child ril__toolbarItemChild ril__builtinButton ril__closeButton\",\n onClick: !this.isAnimating() ? this.requestClose : undefined // Ignore clicks during animation\n\n })))), this.props.imageCaption && // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n React.createElement(\"div\", {\n // Image caption\n onWheel: this.handleCaptionMousewheel,\n onMouseDown: function onMouseDown(event) {\n return event.stopPropagation();\n },\n className: \"ril-caption ril__caption\",\n ref: this.caption\n }, React.createElement(\"div\", {\n className: \"ril-caption-content ril__captionContent\"\n }, this.props.imageCaption))));\n }\n }]);\n\n return ReactImageLightbox;\n}(Component);\n\nReactImageLightbox.propTypes = {\n //-----------------------------\n // Image sources\n //-----------------------------\n // Main display image url\n mainSrc: PropTypes.string.isRequired,\n // eslint-disable-line react/no-unused-prop-types\n // Previous display image url (displayed to the left)\n // If left undefined, movePrev actions will not be performed, and the button not displayed\n prevSrc: PropTypes.string,\n // Next display image url (displayed to the right)\n // If left undefined, moveNext actions will not be performed, and the button not displayed\n nextSrc: PropTypes.string,\n //-----------------------------\n // Image thumbnail sources\n //-----------------------------\n // Thumbnail image url corresponding to props.mainSrc\n mainSrcThumbnail: PropTypes.string,\n // eslint-disable-line react/no-unused-prop-types\n // Thumbnail image url corresponding to props.prevSrc\n prevSrcThumbnail: PropTypes.string,\n // eslint-disable-line react/no-unused-prop-types\n // Thumbnail image url corresponding to props.nextSrc\n nextSrcThumbnail: PropTypes.string,\n // eslint-disable-line react/no-unused-prop-types\n //-----------------------------\n // Event Handlers\n //-----------------------------\n // Close window event\n // Should change the parent state such that the lightbox is not rendered\n onCloseRequest: PropTypes.func.isRequired,\n // Move to previous image event\n // Should change the parent state such that props.prevSrc becomes props.mainSrc,\n // props.mainSrc becomes props.nextSrc, etc.\n onMovePrevRequest: PropTypes.func,\n // Move to next image event\n // Should change the parent state such that props.nextSrc becomes props.mainSrc,\n // props.mainSrc becomes props.prevSrc, etc.\n onMoveNextRequest: PropTypes.func,\n // Called when an image fails to load\n // (imageSrc: string, srcType: string, errorEvent: object): void\n onImageLoadError: PropTypes.func,\n // Called when image successfully loads\n onImageLoad: PropTypes.func,\n // Open window event\n onAfterOpen: PropTypes.func,\n //-----------------------------\n // Download discouragement settings\n //-----------------------------\n // Enable download discouragement (prevents [right-click -> Save Image As...])\n discourageDownloads: PropTypes.bool,\n //-----------------------------\n // Animation settings\n //-----------------------------\n // Disable all animation\n animationDisabled: PropTypes.bool,\n // Disable animation on actions performed with keyboard shortcuts\n animationOnKeyInput: PropTypes.bool,\n // Animation duration (ms)\n animationDuration: PropTypes.number,\n //-----------------------------\n // Keyboard shortcut settings\n //-----------------------------\n // Required interval of time (ms) between key actions\n // (prevents excessively fast navigation of images)\n keyRepeatLimit: PropTypes.number,\n // Amount of time (ms) restored after each keyup\n // (makes rapid key presses slightly faster than holding down the key to navigate images)\n keyRepeatKeyupBonus: PropTypes.number,\n //-----------------------------\n // Image info\n //-----------------------------\n // Image title\n imageTitle: PropTypes.node,\n // Image caption\n imageCaption: PropTypes.node,\n // Optional crossOrigin attribute\n imageCrossOrigin: PropTypes.string,\n //-----------------------------\n // Lightbox style\n //-----------------------------\n // Set z-index style, etc., for the parent react-modal (format: https://github.com/reactjs/react-modal#styles )\n reactModalStyle: PropTypes.shape({}),\n // Padding (px) between the edge of the window and the lightbox\n imagePadding: PropTypes.number,\n wrapperClassName: PropTypes.string,\n //-----------------------------\n // Other\n //-----------------------------\n // Array of custom toolbar buttons\n toolbarButtons: PropTypes.arrayOf(PropTypes.node),\n // When true, clicks outside of the image close the lightbox\n clickOutsideToClose: PropTypes.bool,\n // Set to false to disable zoom functionality and hide zoom buttons\n enableZoom: PropTypes.bool,\n // Override props set on react-modal (https://github.com/reactjs/react-modal)\n reactModalProps: PropTypes.shape({}),\n // Aria-labels\n nextLabel: PropTypes.string,\n prevLabel: PropTypes.string,\n zoomInLabel: PropTypes.string,\n zoomOutLabel: PropTypes.string,\n closeLabel: PropTypes.string,\n imageLoadErrorMessage: PropTypes.node\n};\nReactImageLightbox.defaultProps = {\n imageTitle: null,\n imageCaption: null,\n toolbarButtons: null,\n reactModalProps: {},\n animationDisabled: false,\n animationDuration: 300,\n animationOnKeyInput: false,\n clickOutsideToClose: true,\n closeLabel: 'Close lightbox',\n discourageDownloads: false,\n enableZoom: true,\n imagePadding: 10,\n imageCrossOrigin: null,\n keyRepeatKeyupBonus: 40,\n keyRepeatLimit: 180,\n mainSrcThumbnail: null,\n nextLabel: 'Next image',\n nextSrc: null,\n nextSrcThumbnail: null,\n onAfterOpen: function onAfterOpen() {},\n onImageLoadError: function onImageLoadError() {},\n onImageLoad: function onImageLoad() {},\n onMoveNextRequest: function onMoveNextRequest() {},\n onMovePrevRequest: function onMovePrevRequest() {},\n prevLabel: 'Previous image',\n prevSrc: null,\n prevSrcThumbnail: null,\n reactModalStyle: {},\n wrapperClassName: '',\n zoomInLabel: 'Zoom in',\n zoomOutLabel: 'Zoom out',\n imageLoadErrorMessage: 'This image failed to load'\n};\n\nexport default ReactImageLightbox;\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 { UploadFile } from 'antd/lib/upload/interface';\nimport { API, graphqlOperation } from 'aws-amplify';\nimport {\n createProductVideoKey,\n deleteProductVideoKey,\n} from '../../graphql/mutations';\nimport { Entity } from '~core/domain/Entity';\nimport { Video } from '~domain/file/Video';\nimport { PartialOptionaled } from '~types/utils';\nimport { getImageUrl } from '~utils/image';\n\nexport type ProductVideoType = {\n videoKey: string;\n product_id: string;\n product_brand_id: string;\n product_owner: string;\n video: Video;\n};\n\ntype ProductVideoJson = Omit &\n PartialOptionaled;\n\nexport class ProductVideo extends Entity {\n static limitSize = 31457280;\n static shortenLimitSize = `${ProductVideo.limitSize / 1024 ** 2}MB`;\n\n private constructor(params: ProductVideoType) {\n super(params);\n }\n\n static async create({\n uid,\n size,\n url,\n name,\n type,\n ...params\n }: ProductVideoJson) {\n const video = await Video.create({\n uid,\n name,\n url,\n size: size ?? 0,\n type: type ?? 'video',\n directory: ProductVideo.getDirectory({\n product_brand_id: params.product_brand_id,\n product_id: params.product_id,\n }),\n originFileObj: params.originFileObj,\n });\n\n return new ProductVideo({\n ...params,\n video,\n });\n }\n\n static async createByVideoKey({\n videoKey,\n uid,\n product_brand_id,\n product_id,\n product_owner,\n }: Pick<\n ProductVideoJson,\n 'videoKey' | 'uid' | 'product_brand_id' | 'product_id' | 'product_owner'\n >) {\n const url = await getImageUrl(\n `${ProductVideo.getDirectory({\n product_brand_id,\n product_id,\n })}${videoKey}`\n );\n\n return await ProductVideo.create({\n product_id,\n product_brand_id: product_brand_id,\n product_owner: product_owner,\n uid: uid,\n name: videoKey,\n status: 'done',\n url: url as string,\n videoKey: videoKey,\n });\n }\n\n static getPath(brandId: string, productId: string, videoKey: string) {\n return `${ProductVideo.getDirectory({\n product_brand_id: brandId,\n product_id: productId,\n })}${videoKey}`;\n }\n\n private static getDirectory(params: {\n product_brand_id: string;\n product_id: string;\n }) {\n return `videos/product/${params.product_brand_id}/${params.product_id}/`;\n }\n\n private get directory() {\n return ProductVideo.getDirectory({\n product_brand_id: this.product_brand_id,\n product_id: this.product_id,\n });\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 = ProductVideo.getDirectory({\n product_brand_id: this.product_brand_id,\n product_id: this.product_id,\n });\n const fileName = key.replace(directory, '');\n return await ProductVideo.create({\n ...this.toJson(),\n name: fileName,\n videoKey: fileName,\n });\n }\n\n async register() {\n return API.graphql(\n graphqlOperation(createProductVideoKey, {\n input: {\n videoKey: this.videoKey,\n product_id: this.product_id,\n owner: this.product_owner,\n },\n })\n );\n }\n\n async delete() {\n await this.video.delete();\n return await API.graphql(\n graphqlOperation(deleteProductVideoKey, {\n input: {\n id: this.video.uid,\n },\n })\n );\n }\n\n toJson(): ProductVideoJson {\n return {\n videoKey: this.videoKey,\n product_id: this.product_id,\n product_brand_id: this.product_brand_id,\n product_owner: this.product_owner,\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","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Modal = require(\"./components/Modal\");\n\nvar _Modal2 = _interopRequireDefault(_Modal);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _Modal2.default;\nmodule.exports = exports[\"default\"];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.bodyOpenClassName = exports.portalClassName = undefined;\n\nvar _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; };\n\nvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require(\"react\");\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require(\"react-dom\");\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nvar _propTypes = require(\"prop-types\");\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _ModalPortal = require(\"./ModalPortal\");\n\nvar _ModalPortal2 = _interopRequireDefault(_ModalPortal);\n\nvar _ariaAppHider = require(\"../helpers/ariaAppHider\");\n\nvar ariaAppHider = _interopRequireWildcard(_ariaAppHider);\n\nvar _safeHTMLElement = require(\"../helpers/safeHTMLElement\");\n\nvar _safeHTMLElement2 = _interopRequireDefault(_safeHTMLElement);\n\nvar _reactLifecyclesCompat = require(\"react-lifecycles-compat\");\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\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 (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar portalClassName = exports.portalClassName = \"ReactModalPortal\";\nvar bodyOpenClassName = exports.bodyOpenClassName = \"ReactModal__Body--open\";\n\nvar isReact16 = _reactDom2.default.createPortal !== undefined;\n\nvar getCreatePortal = function getCreatePortal() {\n return isReact16 ? _reactDom2.default.createPortal : _reactDom2.default.unstable_renderSubtreeIntoContainer;\n};\n\nfunction getParentElement(parentSelector) {\n return parentSelector();\n}\n\nvar Modal = function (_Component) {\n _inherits(Modal, _Component);\n\n function Modal() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, Modal);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Modal.__proto__ || Object.getPrototypeOf(Modal)).call.apply(_ref, [this].concat(args))), _this), _this.removePortal = function () {\n !isReact16 && _reactDom2.default.unmountComponentAtNode(_this.node);\n var parent = getParentElement(_this.props.parentSelector);\n if (parent) {\n parent.removeChild(_this.node);\n } else {\n // eslint-disable-next-line no-console\n console.warn('React-Modal: \"parentSelector\" prop did not returned any DOM ' + \"element. Make sure that the parent element is unmounted to \" + \"avoid any memory leaks.\");\n }\n }, _this.portalRef = function (ref) {\n _this.portal = ref;\n }, _this.renderPortal = function (props) {\n var createPortal = getCreatePortal();\n var portal = createPortal(_this, _react2.default.createElement(_ModalPortal2.default, _extends({ defaultStyles: Modal.defaultStyles }, props)), _this.node);\n _this.portalRef(portal);\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(Modal, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (!_safeHTMLElement.canUseDOM) return;\n\n if (!isReact16) {\n this.node = document.createElement(\"div\");\n }\n this.node.className = this.props.portalClassName;\n\n var parent = getParentElement(this.props.parentSelector);\n parent.appendChild(this.node);\n\n !isReact16 && this.renderPortal(this.props);\n }\n }, {\n key: \"getSnapshotBeforeUpdate\",\n value: function getSnapshotBeforeUpdate(prevProps) {\n var prevParent = getParentElement(prevProps.parentSelector);\n var nextParent = getParentElement(this.props.parentSelector);\n return { prevParent: prevParent, nextParent: nextParent };\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, _, snapshot) {\n if (!_safeHTMLElement.canUseDOM) return;\n var _props = this.props,\n isOpen = _props.isOpen,\n portalClassName = _props.portalClassName;\n\n\n if (prevProps.portalClassName !== portalClassName) {\n this.node.className = portalClassName;\n }\n\n var prevParent = snapshot.prevParent,\n nextParent = snapshot.nextParent;\n\n if (nextParent !== prevParent) {\n prevParent.removeChild(this.node);\n nextParent.appendChild(this.node);\n }\n\n // Stop unnecessary renders if modal is remaining closed\n if (!prevProps.isOpen && !isOpen) return;\n\n !isReact16 && this.renderPortal(this.props);\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (!_safeHTMLElement.canUseDOM || !this.node || !this.portal) return;\n\n var state = this.portal.state;\n var now = Date.now();\n var closesAt = state.isOpen && this.props.closeTimeoutMS && (state.closesAt || now + this.props.closeTimeoutMS);\n\n if (closesAt) {\n if (!state.beforeClose) {\n this.portal.closeWithTimeout();\n }\n\n setTimeout(this.removePortal, closesAt - now);\n } else {\n this.removePortal();\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n if (!_safeHTMLElement.canUseDOM || !isReact16) {\n return null;\n }\n\n if (!this.node && isReact16) {\n this.node = document.createElement(\"div\");\n }\n\n var createPortal = getCreatePortal();\n return createPortal(_react2.default.createElement(_ModalPortal2.default, _extends({\n ref: this.portalRef,\n defaultStyles: Modal.defaultStyles\n }, this.props)), this.node);\n }\n }], [{\n key: \"setAppElement\",\n value: function setAppElement(element) {\n ariaAppHider.setElement(element);\n }\n\n /* eslint-disable react/no-unused-prop-types */\n\n /* eslint-enable react/no-unused-prop-types */\n\n }]);\n\n return Modal;\n}(_react.Component);\n\nModal.propTypes = {\n isOpen: _propTypes2.default.bool.isRequired,\n style: _propTypes2.default.shape({\n content: _propTypes2.default.object,\n overlay: _propTypes2.default.object\n }),\n portalClassName: _propTypes2.default.string,\n bodyOpenClassName: _propTypes2.default.string,\n htmlOpenClassName: _propTypes2.default.string,\n className: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.shape({\n base: _propTypes2.default.string.isRequired,\n afterOpen: _propTypes2.default.string.isRequired,\n beforeClose: _propTypes2.default.string.isRequired\n })]),\n overlayClassName: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.shape({\n base: _propTypes2.default.string.isRequired,\n afterOpen: _propTypes2.default.string.isRequired,\n beforeClose: _propTypes2.default.string.isRequired\n })]),\n appElement: _propTypes2.default.instanceOf(_safeHTMLElement2.default),\n onAfterOpen: _propTypes2.default.func,\n onRequestClose: _propTypes2.default.func,\n closeTimeoutMS: _propTypes2.default.number,\n ariaHideApp: _propTypes2.default.bool,\n shouldFocusAfterRender: _propTypes2.default.bool,\n shouldCloseOnOverlayClick: _propTypes2.default.bool,\n shouldReturnFocusAfterClose: _propTypes2.default.bool,\n parentSelector: _propTypes2.default.func,\n aria: _propTypes2.default.object,\n data: _propTypes2.default.object,\n role: _propTypes2.default.string,\n contentLabel: _propTypes2.default.string,\n shouldCloseOnEsc: _propTypes2.default.bool,\n overlayRef: _propTypes2.default.func,\n contentRef: _propTypes2.default.func\n};\nModal.defaultProps = {\n isOpen: false,\n portalClassName: portalClassName,\n bodyOpenClassName: bodyOpenClassName,\n role: \"dialog\",\n ariaHideApp: true,\n closeTimeoutMS: 0,\n shouldFocusAfterRender: true,\n shouldCloseOnEsc: true,\n shouldCloseOnOverlayClick: true,\n shouldReturnFocusAfterClose: true,\n parentSelector: function parentSelector() {\n return document.body;\n }\n};\nModal.defaultStyles = {\n overlay: {\n position: \"fixed\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n backgroundColor: \"rgba(255, 255, 255, 0.75)\"\n },\n content: {\n position: \"absolute\",\n top: \"40px\",\n left: \"40px\",\n right: \"40px\",\n bottom: \"40px\",\n border: \"1px solid #ccc\",\n background: \"#fff\",\n overflow: \"auto\",\n WebkitOverflowScrolling: \"touch\",\n borderRadius: \"4px\",\n outline: \"none\",\n padding: \"20px\"\n }\n};\n\n\n(0, _reactLifecyclesCompat.polyfill)(Modal);\n\nexports.default = Modal;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _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; };\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _createClass = function () { function 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); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require(\"react\");\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require(\"prop-types\");\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _focusManager = require(\"../helpers/focusManager\");\n\nvar focusManager = _interopRequireWildcard(_focusManager);\n\nvar _scopeTab = require(\"../helpers/scopeTab\");\n\nvar _scopeTab2 = _interopRequireDefault(_scopeTab);\n\nvar _ariaAppHider = require(\"../helpers/ariaAppHider\");\n\nvar ariaAppHider = _interopRequireWildcard(_ariaAppHider);\n\nvar _classList = require(\"../helpers/classList\");\n\nvar classList = _interopRequireWildcard(_classList);\n\nvar _safeHTMLElement = require(\"../helpers/safeHTMLElement\");\n\nvar _safeHTMLElement2 = _interopRequireDefault(_safeHTMLElement);\n\nvar _portalOpenInstances = require(\"../helpers/portalOpenInstances\");\n\nvar _portalOpenInstances2 = _interopRequireDefault(_portalOpenInstances);\n\nrequire(\"../helpers/bodyTrap\");\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\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 (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n// so that our CSS is statically analyzable\nvar CLASS_NAMES = {\n overlay: \"ReactModal__Overlay\",\n content: \"ReactModal__Content\"\n};\n\nvar TAB_KEY = 9;\nvar ESC_KEY = 27;\n\nvar ariaHiddenInstances = 0;\n\nvar ModalPortal = function (_Component) {\n _inherits(ModalPortal, _Component);\n\n function ModalPortal(props) {\n _classCallCheck(this, ModalPortal);\n\n var _this = _possibleConstructorReturn(this, (ModalPortal.__proto__ || Object.getPrototypeOf(ModalPortal)).call(this, props));\n\n _this.setOverlayRef = function (overlay) {\n _this.overlay = overlay;\n _this.props.overlayRef && _this.props.overlayRef(overlay);\n };\n\n _this.setContentRef = function (content) {\n _this.content = content;\n _this.props.contentRef && _this.props.contentRef(content);\n };\n\n _this.afterClose = function () {\n var _this$props = _this.props,\n appElement = _this$props.appElement,\n ariaHideApp = _this$props.ariaHideApp,\n htmlOpenClassName = _this$props.htmlOpenClassName,\n bodyOpenClassName = _this$props.bodyOpenClassName;\n\n // Remove classes.\n\n bodyOpenClassName && classList.remove(document.body, bodyOpenClassName);\n\n htmlOpenClassName && classList.remove(document.getElementsByTagName(\"html\")[0], htmlOpenClassName);\n\n // Reset aria-hidden attribute if all modals have been removed\n if (ariaHideApp && ariaHiddenInstances > 0) {\n ariaHiddenInstances -= 1;\n\n if (ariaHiddenInstances === 0) {\n ariaAppHider.show(appElement);\n }\n }\n\n if (_this.props.shouldFocusAfterRender) {\n if (_this.props.shouldReturnFocusAfterClose) {\n focusManager.returnFocus();\n focusManager.teardownScopedFocus();\n } else {\n focusManager.popWithoutFocus();\n }\n }\n\n if (_this.props.onAfterClose) {\n _this.props.onAfterClose();\n }\n\n _portalOpenInstances2.default.deregister(_this);\n };\n\n _this.open = function () {\n _this.beforeOpen();\n if (_this.state.afterOpen && _this.state.beforeClose) {\n clearTimeout(_this.closeTimer);\n _this.setState({ beforeClose: false });\n } else {\n if (_this.props.shouldFocusAfterRender) {\n focusManager.setupScopedFocus(_this.node);\n focusManager.markForFocusLater();\n }\n\n _this.setState({ isOpen: true }, function () {\n _this.setState({ afterOpen: true });\n\n if (_this.props.isOpen && _this.props.onAfterOpen) {\n _this.props.onAfterOpen({\n overlayEl: _this.overlay,\n contentEl: _this.content\n });\n }\n });\n }\n };\n\n _this.close = function () {\n if (_this.props.closeTimeoutMS > 0) {\n _this.closeWithTimeout();\n } else {\n _this.closeWithoutTimeout();\n }\n };\n\n _this.focusContent = function () {\n return _this.content && !_this.contentHasFocus() && _this.content.focus();\n };\n\n _this.closeWithTimeout = function () {\n var closesAt = Date.now() + _this.props.closeTimeoutMS;\n _this.setState({ beforeClose: true, closesAt: closesAt }, function () {\n _this.closeTimer = setTimeout(_this.closeWithoutTimeout, _this.state.closesAt - Date.now());\n });\n };\n\n _this.closeWithoutTimeout = function () {\n _this.setState({\n beforeClose: false,\n isOpen: false,\n afterOpen: false,\n closesAt: null\n }, _this.afterClose);\n };\n\n _this.handleKeyDown = function (event) {\n if (event.keyCode === TAB_KEY) {\n (0, _scopeTab2.default)(_this.content, event);\n }\n\n if (_this.props.shouldCloseOnEsc && event.keyCode === ESC_KEY) {\n event.stopPropagation();\n _this.requestClose(event);\n }\n };\n\n _this.handleOverlayOnClick = function (event) {\n if (_this.shouldClose === null) {\n _this.shouldClose = true;\n }\n\n if (_this.shouldClose && _this.props.shouldCloseOnOverlayClick) {\n if (_this.ownerHandlesClose()) {\n _this.requestClose(event);\n } else {\n _this.focusContent();\n }\n }\n _this.shouldClose = null;\n };\n\n _this.handleContentOnMouseUp = function () {\n _this.shouldClose = false;\n };\n\n _this.handleOverlayOnMouseDown = function (event) {\n if (!_this.props.shouldCloseOnOverlayClick && event.target == _this.overlay) {\n event.preventDefault();\n }\n };\n\n _this.handleContentOnClick = function () {\n _this.shouldClose = false;\n };\n\n _this.handleContentOnMouseDown = function () {\n _this.shouldClose = false;\n };\n\n _this.requestClose = function (event) {\n return _this.ownerHandlesClose() && _this.props.onRequestClose(event);\n };\n\n _this.ownerHandlesClose = function () {\n return _this.props.onRequestClose;\n };\n\n _this.shouldBeClosed = function () {\n return !_this.state.isOpen && !_this.state.beforeClose;\n };\n\n _this.contentHasFocus = function () {\n return document.activeElement === _this.content || _this.content.contains(document.activeElement);\n };\n\n _this.buildClassName = function (which, additional) {\n var classNames = (typeof additional === \"undefined\" ? \"undefined\" : _typeof(additional)) === \"object\" ? additional : {\n base: CLASS_NAMES[which],\n afterOpen: CLASS_NAMES[which] + \"--after-open\",\n beforeClose: CLASS_NAMES[which] + \"--before-close\"\n };\n var className = classNames.base;\n if (_this.state.afterOpen) {\n className = className + \" \" + classNames.afterOpen;\n }\n if (_this.state.beforeClose) {\n className = className + \" \" + classNames.beforeClose;\n }\n return typeof additional === \"string\" && additional ? className + \" \" + additional : className;\n };\n\n _this.attributesFromObject = function (prefix, items) {\n return Object.keys(items).reduce(function (acc, name) {\n acc[prefix + \"-\" + name] = items[name];\n return acc;\n }, {});\n };\n\n _this.state = {\n afterOpen: false,\n beforeClose: false\n };\n\n _this.shouldClose = null;\n _this.moveFromContentToOverlay = null;\n return _this;\n }\n\n _createClass(ModalPortal, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (this.props.isOpen) {\n this.open();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps, prevState) {\n if (process.env.NODE_ENV !== \"production\") {\n if (prevProps.bodyOpenClassName !== this.props.bodyOpenClassName) {\n // eslint-disable-next-line no-console\n console.warn('React-Modal: \"bodyOpenClassName\" prop has been modified. ' + \"This may cause unexpected behavior when multiple modals are open.\");\n }\n if (prevProps.htmlOpenClassName !== this.props.htmlOpenClassName) {\n // eslint-disable-next-line no-console\n console.warn('React-Modal: \"htmlOpenClassName\" prop has been modified. ' + \"This may cause unexpected behavior when multiple modals are open.\");\n }\n }\n\n if (this.props.isOpen && !prevProps.isOpen) {\n this.open();\n } else if (!this.props.isOpen && prevProps.isOpen) {\n this.close();\n }\n\n // Focus only needs to be set once when the modal is being opened\n if (this.props.shouldFocusAfterRender && this.state.isOpen && !prevState.isOpen) {\n this.focusContent();\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.state.isOpen) {\n this.afterClose();\n }\n clearTimeout(this.closeTimer);\n }\n }, {\n key: \"beforeOpen\",\n value: function beforeOpen() {\n var _props = this.props,\n appElement = _props.appElement,\n ariaHideApp = _props.ariaHideApp,\n htmlOpenClassName = _props.htmlOpenClassName,\n bodyOpenClassName = _props.bodyOpenClassName;\n\n // Add classes.\n\n bodyOpenClassName && classList.add(document.body, bodyOpenClassName);\n\n htmlOpenClassName && classList.add(document.getElementsByTagName(\"html\")[0], htmlOpenClassName);\n\n if (ariaHideApp) {\n ariaHiddenInstances += 1;\n ariaAppHider.hide(appElement);\n }\n\n _portalOpenInstances2.default.register(this);\n }\n\n // Don't steal focus from inner elements\n\n }, {\n key: \"render\",\n value: function render() {\n var _props2 = this.props,\n id = _props2.id,\n className = _props2.className,\n overlayClassName = _props2.overlayClassName,\n defaultStyles = _props2.defaultStyles;\n\n var contentStyles = className ? {} : defaultStyles.content;\n var overlayStyles = overlayClassName ? {} : defaultStyles.overlay;\n\n return this.shouldBeClosed() ? null : _react2.default.createElement(\n \"div\",\n {\n ref: this.setOverlayRef,\n className: this.buildClassName(\"overlay\", overlayClassName),\n style: _extends({}, overlayStyles, this.props.style.overlay),\n onClick: this.handleOverlayOnClick,\n onMouseDown: this.handleOverlayOnMouseDown\n },\n _react2.default.createElement(\n \"div\",\n _extends({\n id: id,\n ref: this.setContentRef,\n style: _extends({}, contentStyles, this.props.style.content),\n className: this.buildClassName(\"content\", className),\n tabIndex: \"-1\",\n onKeyDown: this.handleKeyDown,\n onMouseDown: this.handleContentOnMouseDown,\n onMouseUp: this.handleContentOnMouseUp,\n onClick: this.handleContentOnClick,\n role: this.props.role,\n \"aria-label\": this.props.contentLabel\n }, this.attributesFromObject(\"aria\", this.props.aria || {}), this.attributesFromObject(\"data\", this.props.data || {}), {\n \"data-testid\": this.props.testId\n }),\n this.props.children\n )\n );\n }\n }]);\n\n return ModalPortal;\n}(_react.Component);\n\nModalPortal.defaultProps = {\n style: {\n overlay: {},\n content: {}\n },\n defaultStyles: {}\n};\nModalPortal.propTypes = {\n isOpen: _propTypes2.default.bool.isRequired,\n defaultStyles: _propTypes2.default.shape({\n content: _propTypes2.default.object,\n overlay: _propTypes2.default.object\n }),\n style: _propTypes2.default.shape({\n content: _propTypes2.default.object,\n overlay: _propTypes2.default.object\n }),\n className: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object]),\n overlayClassName: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object]),\n bodyOpenClassName: _propTypes2.default.string,\n htmlOpenClassName: _propTypes2.default.string,\n ariaHideApp: _propTypes2.default.bool,\n appElement: _propTypes2.default.instanceOf(_safeHTMLElement2.default),\n onAfterOpen: _propTypes2.default.func,\n onAfterClose: _propTypes2.default.func,\n onRequestClose: _propTypes2.default.func,\n closeTimeoutMS: _propTypes2.default.number,\n shouldFocusAfterRender: _propTypes2.default.bool,\n shouldCloseOnOverlayClick: _propTypes2.default.bool,\n shouldReturnFocusAfterClose: _propTypes2.default.bool,\n role: _propTypes2.default.string,\n contentLabel: _propTypes2.default.string,\n aria: _propTypes2.default.object,\n data: _propTypes2.default.object,\n children: _propTypes2.default.node,\n shouldCloseOnEsc: _propTypes2.default.bool,\n overlayRef: _propTypes2.default.func,\n contentRef: _propTypes2.default.func,\n id: _propTypes2.default.string,\n testId: _propTypes2.default.string\n};\nexports.default = ModalPortal;\nmodule.exports = exports[\"default\"];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.handleBlur = handleBlur;\nexports.handleFocus = handleFocus;\nexports.markForFocusLater = markForFocusLater;\nexports.returnFocus = returnFocus;\nexports.popWithoutFocus = popWithoutFocus;\nexports.setupScopedFocus = setupScopedFocus;\nexports.teardownScopedFocus = teardownScopedFocus;\n\nvar _tabbable = require(\"../helpers/tabbable\");\n\nvar _tabbable2 = _interopRequireDefault(_tabbable);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar focusLaterElements = [];\nvar modalElement = null;\nvar needToFocus = false;\n\nfunction handleBlur() {\n needToFocus = true;\n}\n\nfunction handleFocus() {\n if (needToFocus) {\n needToFocus = false;\n if (!modalElement) {\n return;\n }\n // need to see how jQuery shims document.on('focusin') so we don't need the\n // setTimeout, firefox doesn't support focusin, if it did, we could focus\n // the element outside of a setTimeout. Side-effect of this implementation\n // is that the document.body gets focus, and then we focus our element right\n // after, seems fine.\n setTimeout(function () {\n if (modalElement.contains(document.activeElement)) {\n return;\n }\n var el = (0, _tabbable2.default)(modalElement)[0] || modalElement;\n el.focus();\n }, 0);\n }\n}\n\nfunction markForFocusLater() {\n focusLaterElements.push(document.activeElement);\n}\n\n/* eslint-disable no-console */\nfunction returnFocus() {\n var toFocus = null;\n try {\n if (focusLaterElements.length !== 0) {\n toFocus = focusLaterElements.pop();\n toFocus.focus();\n }\n return;\n } catch (e) {\n console.warn([\"You tried to return focus to\", toFocus, \"but it is not in the DOM anymore\"].join(\" \"));\n }\n}\n/* eslint-enable no-console */\n\nfunction popWithoutFocus() {\n focusLaterElements.length > 0 && focusLaterElements.pop();\n}\n\nfunction setupScopedFocus(element) {\n modalElement = element;\n\n if (window.addEventListener) {\n window.addEventListener(\"blur\", handleBlur, false);\n document.addEventListener(\"focus\", handleFocus, true);\n } else {\n window.attachEvent(\"onBlur\", handleBlur);\n document.attachEvent(\"onFocus\", handleFocus);\n }\n}\n\nfunction teardownScopedFocus() {\n modalElement = null;\n\n if (window.addEventListener) {\n window.removeEventListener(\"blur\", handleBlur);\n document.removeEventListener(\"focus\", handleFocus);\n } else {\n window.detachEvent(\"onBlur\", handleBlur);\n document.detachEvent(\"onFocus\", handleFocus);\n }\n}","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = scopeTab;\n\nvar _tabbable = require(\"./tabbable\");\n\nvar _tabbable2 = _interopRequireDefault(_tabbable);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction scopeTab(node, event) {\n var tabbable = (0, _tabbable2.default)(node);\n\n if (!tabbable.length) {\n // Do nothing, since there are no elements that can receive focus.\n event.preventDefault();\n return;\n }\n\n var target = void 0;\n\n var shiftKey = event.shiftKey;\n var head = tabbable[0];\n var tail = tabbable[tabbable.length - 1];\n\n // proceed with default browser behavior on tab.\n // Focus on last element on shift + tab.\n if (node === document.activeElement) {\n if (!shiftKey) return;\n target = tail;\n }\n\n if (tail === document.activeElement && !shiftKey) {\n target = head;\n }\n\n if (head === document.activeElement && shiftKey) {\n target = tail;\n }\n\n if (target) {\n event.preventDefault();\n target.focus();\n return;\n }\n\n // Safari radio issue.\n //\n // Safari does not move the focus to the radio button,\n // so we need to force it to really walk through all elements.\n //\n // This is very error prone, since we are trying to guess\n // if it is a safari browser from the first occurence between\n // chrome or safari.\n //\n // The chrome user agent contains the first ocurrence\n // as the 'chrome/version' and later the 'safari/version'.\n var checkSafari = /(\\bChrome\\b|\\bSafari\\b)\\//.exec(navigator.userAgent);\n var isSafariDesktop = checkSafari != null && checkSafari[1] != \"Chrome\" && /\\biPod\\b|\\biPad\\b/g.exec(navigator.userAgent) == null;\n\n // If we are not in safari desktop, let the browser control\n // the focus\n if (!isSafariDesktop) return;\n\n var x = tabbable.indexOf(document.activeElement);\n\n if (x > -1) {\n x += shiftKey ? -1 : 1;\n }\n\n target = tabbable[x];\n\n // If the tabbable element does not exist,\n // focus head/tail based on shiftKey\n if (typeof target === \"undefined\") {\n event.preventDefault();\n target = shiftKey ? tail : head;\n target.focus();\n return;\n }\n\n event.preventDefault();\n\n target.focus();\n}\nmodule.exports = exports[\"default\"];","/*!\n Copyright (c) 2015 Jed Watson.\n Based on code that is Copyright 2013-2015, Facebook, Inc.\n All rights reserved.\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar canUseDOM = !!(\n\t\ttypeof window !== 'undefined' &&\n\t\twindow.document &&\n\t\twindow.document.createElement\n\t);\n\n\tvar ExecutionEnvironment = {\n\n\t\tcanUseDOM: canUseDOM,\n\n\t\tcanUseWorkers: typeof Worker !== 'undefined',\n\n\t\tcanUseEventListeners:\n\t\t\tcanUseDOM && !!(window.addEventListener || window.attachEvent),\n\n\t\tcanUseViewport: canUseDOM && !!window.screen\n\n\t};\n\n\tif (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\tdefine(function () {\n\t\t\treturn ExecutionEnvironment;\n\t\t});\n\t} else if (typeof module !== 'undefined' && module.exports) {\n\t\tmodule.exports = ExecutionEnvironment;\n\t} else {\n\t\twindow.ExecutionEnvironment = ExecutionEnvironment;\n\t}\n\n}());\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.dumpClassLists = dumpClassLists;\nvar htmlClassList = {};\nvar docBodyClassList = {};\n\nfunction dumpClassLists() {\n if (process.env.NODE_ENV !== \"production\") {\n var classes = document.getElementsByTagName(\"html\")[0].className;\n var buffer = \"Show tracked classes:\\n\\n\";\n\n buffer += \" (\" + classes + \"):\\n\";\n for (var x in htmlClassList) {\n buffer += \" \" + x + \" \" + htmlClassList[x] + \"\\n\";\n }\n\n classes = document.body.className;\n\n // eslint-disable-next-line max-len\n buffer += \"\\n\\ndoc.body (\" + classes + \"):\\n\";\n for (var _x in docBodyClassList) {\n buffer += \" \" + _x + \" \" + docBodyClassList[_x] + \"\\n\";\n }\n\n buffer += \"\\n\";\n\n // eslint-disable-next-line no-console\n console.log(buffer);\n }\n}\n\n/**\n * Track the number of reference of a class.\n * @param {object} poll The poll to receive the reference.\n * @param {string} className The class name.\n * @return {string}\n */\nvar incrementReference = function incrementReference(poll, className) {\n if (!poll[className]) {\n poll[className] = 0;\n }\n poll[className] += 1;\n return className;\n};\n\n/**\n * Drop the reference of a class.\n * @param {object} poll The poll to receive the reference.\n * @param {string} className The class name.\n * @return {string}\n */\nvar decrementReference = function decrementReference(poll, className) {\n if (poll[className]) {\n poll[className] -= 1;\n }\n return className;\n};\n\n/**\n * Track a class and add to the given class list.\n * @param {Object} classListRef A class list of an element.\n * @param {Object} poll The poll to be used.\n * @param {Array} classes The list of classes to be tracked.\n */\nvar trackClass = function trackClass(classListRef, poll, classes) {\n classes.forEach(function (className) {\n incrementReference(poll, className);\n classListRef.add(className);\n });\n};\n\n/**\n * Untrack a class and remove from the given class list if the reference\n * reaches 0.\n * @param {Object} classListRef A class list of an element.\n * @param {Object} poll The poll to be used.\n * @param {Array} classes The list of classes to be untracked.\n */\nvar untrackClass = function untrackClass(classListRef, poll, classes) {\n classes.forEach(function (className) {\n decrementReference(poll, className);\n poll[className] === 0 && classListRef.remove(className);\n });\n};\n\n/**\n * Public inferface to add classes to the document.body.\n * @param {string} bodyClass The class string to be added.\n * It may contain more then one class\n * with ' ' as separator.\n */\nvar add = exports.add = function add(element, classString) {\n return trackClass(element.classList, element.nodeName.toLowerCase() == \"html\" ? htmlClassList : docBodyClassList, classString.split(\" \"));\n};\n\n/**\n * Public inferface to remove classes from the document.body.\n * @param {string} bodyClass The class string to be added.\n * It may contain more then one class\n * with ' ' as separator.\n */\nvar remove = exports.remove = function remove(element, classString) {\n return untrackClass(element.classList, element.nodeName.toLowerCase() == \"html\" ? htmlClassList : docBodyClassList, classString.split(\" \"));\n};","\"use strict\";\n\nvar _portalOpenInstances = require(\"./portalOpenInstances\");\n\nvar _portalOpenInstances2 = _interopRequireDefault(_portalOpenInstances);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// Body focus trap see Issue #742\n\nvar before = void 0,\n after = void 0,\n instances = [];\n\nfunction focusContent() {\n if (instances.length === 0) {\n if (process.env.NODE_ENV !== \"production\") {\n // eslint-disable-next-line no-console\n console.warn(\"React-Modal: Open instances > 0 expected\");\n }\n return;\n }\n instances[instances.length - 1].focusContent();\n}\n\nfunction bodyTrap(eventType, openInstances) {\n if (!before || !after) {\n before = document.createElement(\"div\");\n before.setAttribute(\"data-react-modal-body-trap\", \"\");\n before.style.position = \"absolute\";\n before.style.opacity = \"0\";\n before.setAttribute(\"tabindex\", \"0\");\n before.addEventListener(\"focus\", focusContent);\n after = before.cloneNode();\n after.addEventListener(\"focus\", focusContent);\n }\n\n instances = openInstances;\n\n if (instances.length > 0) {\n // Add focus trap\n if (document.body.firstChild !== before) {\n document.body.insertBefore(before, document.body.firstChild);\n }\n if (document.body.lastChild !== after) {\n document.body.appendChild(after);\n }\n } else {\n // Remove focus trap\n if (before.parentElement) {\n before.parentElement.removeChild(before);\n }\n if (after.parentElement) {\n after.parentElement.removeChild(after);\n }\n }\n}\n\n_portalOpenInstances2.default.subscribe(bodyTrap);","\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}","\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}","// THIS FILE IS AUTO GENERATED\nvar GenIcon = require('../lib').GenIcon\nmodule.exports.MdKeyboardArrowLeft = function MdKeyboardArrowLeft (props) {\n return GenIcon({\"tag\":\"svg\",\"attr\":{\"viewBox\":\"0 0 24 24\"},\"child\":[{\"tag\":\"path\",\"attr\":{\"d\":\"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z\"}}]})(props);\n};\n","// THIS FILE IS AUTO GENERATED\nvar GenIcon = require('../lib').GenIcon\nmodule.exports.MdKeyboardArrowRight = function MdKeyboardArrowRight (props) {\n return GenIcon({\"tag\":\"svg\",\"attr\":{\"viewBox\":\"0 0 24 24\"},\"child\":[{\"tag\":\"path\",\"attr\":{\"d\":\"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z\"}}]})(props);\n};\n","// THIS FILE IS AUTO GENERATED\nvar GenIcon = require('../lib').GenIcon\nmodule.exports.HiLockClosed = function HiLockClosed (props) {\n return GenIcon({\"tag\":\"svg\",\"attr\":{\"viewBox\":\"0 0 20 20\",\"fill\":\"currentColor\"},\"child\":[{\"tag\":\"path\",\"attr\":{\"fillRule\":\"evenodd\",\"d\":\"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z\",\"clipRule\":\"evenodd\"}}]})(props);\n};\n","import { Dispatch } from 'redux';\nimport { Product } from '~domain/product/Product';\nimport { ProductVideo } from '~domain/product/ProductVideo';\nimport {\n Product as ProductJson,\n ProductType,\n VideoKey,\n} from '~redux/brand/types';\nimport { request } from '~redux/request/thunk';\nimport { executeQuery, removeItems } from '~utils/graphql';\nimport { getPublicImageUrl } from '~utils/image';\nimport {\n getPublishedProduct,\n getPublishedProductPreview,\n getPublishedProductUnAuth,\n} from '../../../graphql/custom_queries';\nimport { getProductStart, getSignedProductStart, setProduct } from '../actions';\n\nexport const getSignedProduct = (product: ProductJson) => {\n return async (dispatch: Dispatch) => {\n dispatch(getSignedProductStart());\n\n const signedPosts = [\n ...product.imageKeys.map((item: any) => {\n const signedUrl = getPublicImageUrl(item.imageKey);\n item.imageUrl = signedUrl;\n return item;\n }),\n ];\n\n const signedTypes = product.producttype.map((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 const signedProduct = {\n ...product,\n imageKeys: signedPosts,\n producttype: signedTypes,\n };\n\n dispatch(setProduct(signedProduct));\n };\n};\n\nexport const getProduct = (id: string, unAuth?: boolean, preview?: boolean) => {\n return async (dispatch: Dispatch) => {\n const productData = await executeQuery(\n unAuth\n ? getPublishedProductUnAuth\n : preview\n ? getPublishedProductPreview\n : getPublishedProduct,\n { id },\n unAuth\n );\n // console.log(productData);\n\n const {\n data: { getProduct: product },\n } = productData;\n\n if (!product) {\n return;\n }\n\n const productModel = await Product.create({\n ...removeItems(product),\n discount: product.discount,\n collections: product.collections,\n videos: await Promise.all(\n product.videoKeys.items.map((videoKey: VideoKey) =>\n ProductVideo.createByVideoKey({\n videoKey: videoKey.videoKey,\n uid: videoKey.videoKey.replace(/\\.[^.]+$/, ''),\n product_brand_id: product.product_brand_id,\n product_id: product.id,\n product_owner: product.product_owner,\n })\n )\n ),\n producttype: product?.producttype?.items?.filter(\n (item: ProductType) => !item.suspended\n ),\n brand: {\n ...(product.brand ?? {}),\n reviews: product.brand?.reviews,\n },\n });\n\n const signedImages = [\n ...productModel.imageKeys.map((item: any) => {\n const signedUrl = getPublicImageUrl(item.imageKey);\n item.imageUrl = signedUrl;\n return item;\n }),\n ];\n\n const signedTypes = productModel.producttype.map((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 const signedProduct = {\n ...productModel,\n imageKeys: signedImages,\n producttype: signedTypes,\n };\n\n dispatch(setProduct(signedProduct));\n };\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 './styles.scss';\nimport './styles.modules.scss';\nimport React from 'react';\nimport { getResizeImageUrl } from '~utils/image';\n\ntype PreviewData = {\n src: string;\n thumbnailUrl: string;\n type: 'image' | 'video';\n};\n\ntype PreviewProps = {\n images: PreviewData[];\n previewImageIndex: number;\n changePreviewImage: (index: number) => void;\n};\n\nexport const ThumbnailList: React.FC = ({\n images,\n previewImageIndex,\n changePreviewImage,\n}) => {\n return (\n \n
\n );\n};\n","import './styles.scss';\nimport './styles.modules.scss';\nimport { MdKeyboardArrowLeft } from '@react-icons/all-files/md/MdKeyboardArrowLeft';\nimport { MdKeyboardArrowRight } from '@react-icons/all-files/md/MdKeyboardArrowRight';\nimport React, { useCallback, useState, useRef, MouseEvent } from 'react';\nimport SwipeableViews from 'react-swipeable-views';\nimport Lightbox from './Lightbox';\nimport { ThumbnailList } from './ThumbnailList';\nimport { getResizeImageUrl } from '~utils/image';\n\ntype PreviewData = {\n src: string;\n thumbnailUrl: string;\n type: 'image' | 'video';\n};\n\ntype PreviewProps = {\n images: PreviewData[];\n};\n\nconst Preview: React.FC = ({ images }) => {\n const [previewImageIndex, setPreviewImageIndex] = useState(0);\n const changePreviewImage = useCallback((imageIndex: number) => {\n setPreviewImageIndex(imageIndex);\n }, []);\n\n const [isOpenLightbox, setIsOpenLightbox] = useState(false);\n const [transformOrigin, setTransformOrigin] = useState({ x: 0, y: 0 });\n const [isHover, setIsHover] = useState(false);\n\n const previewImageRef = useRef(null);\n const openLightbox = useCallback(() => {\n if (images.length) {\n setIsOpenLightbox(true);\n }\n }, [images]);\n const closeLightbox = useCallback(() => {\n setIsOpenLightbox(false);\n }, []);\n\n const handleClickImageSlideButton = (type: 'prev' | 'next') => {\n const updatedImageIndex = () => {\n if (type === 'prev') {\n if (previewImageIndex === 0) return images.length - 1;\n return previewImageIndex - 1;\n } else {\n if (previewImageIndex === images.length - 1) return 0;\n return previewImageIndex + 1;\n }\n };\n setPreviewImageIndex(updatedImageIndex());\n };\n\n const handleMouseMove = (event: MouseEvent) => {\n const previewImageElement = previewImageRef.current;\n if (!previewImageElement) return;\n const rect = previewImageElement.getBoundingClientRect();\n const { pageX: mouseX, pageY: mouseY } = event;\n const positionX = rect.left + window.pageXOffset;\n const positionY = rect.top + window.pageYOffset;\n const offsetX = mouseX - positionX;\n const offsetY = mouseY - positionY;\n setTransformOrigin({\n x: Math.floor(offsetX),\n y: Math.floor(offsetY),\n });\n };\n\n // const previewImageStyle = (isHover: boolean) =>\n // isHover\n // ? {\n // transform: ` scale(2.0)`,\n // transformOrigin: `${transformOrigin.x}px ${transformOrigin.y}px`,\n // }\n // : undefined;\n\n return (\n <>\n
\n \n handleClickImageSlideButton('prev')}\n >\n \n \n\n \n {images.map((image) => (\n
\n
\n !isHover && setIsHover(true)}\n onMouseLeave={() => setIsHover(false)}\n onMouseMove={handleMouseMove}\n ref={previewImageRef}\n >\n {image?.type === 'image' && (\n ) =>\n (e.target.src =\n 'https://placehold.jp/500x200.png?text=No image')\n }\n alt=\"product image\"\n // style={previewImageStyle(isHover)}\n />\n )}\n {image?.type === 'video' && (\n \n \n \n )}\n
\n
\n
\n ))}\n \n\n
\n\n handleClickImageSlideButton('next')}\n >\n \n \n
\n \n \n
\n \n
\n {isOpenLightbox && (\n type === 'image')\n .map(({ src }) => src)}\n defaultImageIndex={previewImageIndex}\n close={closeLightbox}\n />\n )}\n
\n \n );\n};\n\nexport default Preview;\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, \".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","// 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, \".preview-thumbnail{position:relative;width:100%;max-width:calc(10% - 9px);aspect-ratio:3/4}.preview-thumbnail:not(:nth-child(10n)){margin-right:10px}.preview-thumbnail:before{content:\\\"\\\";display:block;padding-top:100%}.preview-thumbnail a{position:absolute;top:0;left:0;bottom:0;right:0}.preview-thumbnail img{object-position:50% 50%;object-fit:contain;top:0px;left:0px;width:100%;height:100%;vertical-align:top}.preview-thumbnail.active{border:1px solid #000}.preview-thumbnail.video::before{position:absolute;content:\\\"\\\";display:block;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:50%;padding:0;width:60%;height:45%;z-index:100;background:rgba(255,255,255,.45)}.preview-thumbnail.video::after{position:absolute;content:\\\"\\\";display:block;top:50%;left:50%;transform:translate(-40%, -50%);border-style:solid;border-color:transparent transparent transparent rgba(0,0,0,.45);border-width:.8vw 0 .8vw 1.3vw;z-index:100}@media screen and (min-width: 992px){.preview-thumbnail.video::after{border-width:5px 0 5px 8px}}.preview-image{display:inline-flex !important;justify-content:center;align-items:center;position:relative;width:100%;aspect-ratio:1/1;cursor:pointer;overflow:hidden;border:1px solid #dee2e6}.preview-image:before{content:\\\"\\\";display:block;padding-top:100%}.preview-image>img{position:absolute;top:0;left:0;bottom:0;right:0}.preview-image img{object-position:50% 50%;object-fit:contain;top:0px;left:0px;width:100%;height:100%;transition:all .3s ease 0s;overflow:hidden}.slick-track{max-height:100vh !important}.image-slide-button{position:absolute;display:flex;align-items:center;justify-content:center;width:25px;height:25px;padding:0;margin:0;color:#fff;cursor:pointer;background-color:rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.7);border-radius:100%;outline:0;appearance:none;top:50%;z-index:100;transform:translateY(-50%)}.image-slide-button.left{left:0}.image-slide-button.right{right:0}\", \"\"]);\n// Exports\nmodule.exports = exports;\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-Preview-___styles-modules__ciyashop-product-images{height:100%}@media screen and (max-width: 480px){.src-view-widgets-Preview-___styles-modules__ciyashop-product-images{grid-template-columns:60px 1fr}}.src-view-widgets-Preview-___styles-modules__thumnails-wrapper{position:relative;height:100%}.src-view-widgets-Preview-___styles-modules__thumbnails-inner{display:flex;flex-wrap:wrap;width:100%;height:100%}.src-view-widgets-Preview-___styles-modules__ciyashop-product-thumbnails{position:relative;place-self:stretch;margin-top:20px}.src-view-widgets-Preview-___styles-modules__ciyashop-product-images-wrapper{position:relative}.src-view-widgets-Preview-___styles-modules__arrow-up,.src-view-widgets-Preview-___styles-modules__arrow-down{width:100%;border:0;background:none}.src-view-widgets-Preview-___styles-modules__arrow-up svg,.src-view-widgets-Preview-___styles-modules__arrow-down svg{font-size:1.6em}.src-view-widgets-Preview-___styles-modules__arrow-up{position:absolute;top:-30px}.src-view-widgets-Preview-___styles-modules__arrow-down{position:absolute;bottom:-30px}\", \"\"]);\n// Exports\nexports.locals = {\n\t\"ciyashop-product-images\": \"src-view-widgets-Preview-___styles-modules__ciyashop-product-images\",\n\t\"thumnails-wrapper\": \"src-view-widgets-Preview-___styles-modules__thumnails-wrapper\",\n\t\"thumbnails-inner\": \"src-view-widgets-Preview-___styles-modules__thumbnails-inner\",\n\t\"ciyashop-product-thumbnails\": \"src-view-widgets-Preview-___styles-modules__ciyashop-product-thumbnails\",\n\t\"ciyashop-product-images-wrapper\": \"src-view-widgets-Preview-___styles-modules__ciyashop-product-images-wrapper\",\n\t\"arrow-up\": \"src-view-widgets-Preview-___styles-modules__arrow-up\",\n\t\"arrow-down\": \"src-view-widgets-Preview-___styles-modules__arrow-down\"\n};\nmodule.exports = exports;\n","import React, { useMemo } from 'react';\nimport ProductSearchProvider, {\n productEquals,\n useProductSearchSelector,\n} from '../ProductSearchProvider';\nimport ProductSlider from '../ProductSlider';\nimport {\n selectIsProductSearching,\n selectProducts,\n} from '~redux/search/product';\nimport { ProductReadModel } from '~types/api';\n\nconst Slider: React.FC<{\n listId: string;\n category?: string;\n subcategory?: string;\n title?: string;\n listPath?: string;\n}> = React.memo(({ listId, category, subcategory, title, listPath }) => {\n const products = useProductSearchSelector(\n selectProducts,\n listId,\n productEquals\n );\n const isLoading = useProductSearchSelector(selectIsProductSearching, listId);\n return (\n \n );\n});\n\nconst CategoryProducts: React.FC<{\n category?: string;\n subcategory?: string;\n brandTag?: string;\n title?: string;\n listPath?: string;\n isLoading?: boolean;\n}> = ({ category, subcategory, brandTag, title, listPath, isLoading }) => {\n const listId = useMemo(\n () =>\n brandTag\n ? brandTag\n : `products > carousel > ${category}${\n subcategory ? ` > ${subcategory}` : ''\n }`,\n [brandTag, category, subcategory]\n );\n const filters = useMemo(\n () =>\n (brandTag ? { brand_tags: [brandTag] } : {}) as Record,\n [brandTag]\n );\n const filterValues = useMemo(\n () =>\n (brandTag ? { brand_tags: [`brand_tags:${brandTag}`] } : {}) as Record<\n string,\n string[]\n >,\n [brandTag]\n );\n\n if (isLoading) {\n return ;\n }\n // if (!category) {\n // return null;\n // }\n\n return (\n \n \n \n );\n};\n\nexport default CategoryProducts;\n","import React, { useEffect, useMemo } from 'react';\nimport { useSelector } from 'react-redux';\nimport HorizontalSlider from '../HorizontalSlider';\nimport InventoryProvider from '../InventoryProvider';\nimport ProductListViewItem from '../ProductListViewItem';\nimport Skeleton from '../Skeleton';\nimport { searchProductswithimagekey } from '~graphql/custom_queries';\nimport { getRecentlyViewedProducts } from '~graphql/queries';\nimport { authUserSelector } from '~redux/auth/selectors/authUser';\nimport { Product } from '~types/api';\nimport { useGraphql } from '~view/hooks/graphql';\n\nconst RecentlyViewedProducts: React.FC = () => {\n const user = useSelector(authUserSelector);\n const [productIds, fetchIds, loading] = useGraphql(\n getRecentlyViewedProducts,\n (data) => {\n return data.getRecentlyViewedProducts;\n }\n );\n const [items, fetchProducts, searching] = useGraphql(\n searchProductswithimagekey,\n (data) => {\n return data.searchProducts.items;\n }\n );\n const products = useMemo(() => {\n if (!productIds?.length || !items?.length) {\n return [];\n }\n return productIds\n .map((id: string) => items.find((item: any) => item.id === id))\n .filter((item: any) => item);\n }, [productIds, items]);\n\n useEffect(() => {\n if (!user) return;\n fetchIds({ userId: user.attributes.sub });\n }, [user]);\n\n useEffect(() => {\n if (!productIds?.length) return;\n fetchProducts({\n filter: { or: productIds.map((id: string) => ({ id: { eq: id } })) },\n });\n }, [productIds]);\n\n if (loading || searching) {\n return (\n
\n
\n \n
\n \n {[...new Array(10)].map((_, i) => (\n \n ))}\n \n
\n );\n }\n\n if (!products.length) {\n return null;\n }\n\n return (\n product.id!)}>\n
\n
チェックした商品
\n
\n \n {products.map((product, i) => (\n \n ))}\n \n
\n );\n};\n\nexport default RecentlyViewedProducts;\n","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