{"version":3,"sources":["redux/actions/compareActions.js","components/product/sub-components/ProductRating.js","components/product/ProductGridListSingle.js","wrappers/product/ProductgridList.js","wrappers/product/ShopProducts.js","redux/reducers/currencyReducer.js","redux/actions/currencyActions.js","redux/reducers/productReducer.js","redux/actions/productActions.js","redux/reducers/cartReducer.js","redux/reducers/wishlistReducer.js","redux/reducers/compareReducer.js","redux/reducers/rootReducer.js","helpers/scroll-top.js","components/product/ProductGridSingleTwo.js","wrappers/product/ProductGridTwo.js","components/header/IconGroup.js","helpers/i18n.js","components/header/NavMenu.js","components/header/sub-components/MobileNavMenu.js","components/header/MobileMenu.js","wrappers/header/HeaderTwo.js","components/header/Logo.js","pages/other/Allures.js","App.js","serviceWorker.js","index.js","redux/actions/cartActions.js","redux/actions/wishlistActions.js","helpers/product.js"],"names":["ADD_TO_COMPARE","DELETE_FROM_COMPARE","addToCompare","item","addToast","dispatch","appearance","autoDismiss","type","payload","ProductRating","ratingValue","rating","i","push","className","key","ProductGridListSingle","product","currency","addToCart","addToWishlist","cartItem","wishlistItem","compareItem","sliderClassName","spaceBottomClass","partnerName","avalaibleColors","useState","useToasts","t","useTranslation","finalProductPrice","price","toFixed","finalDiscountedPrice","bestPrice","currencyRate","discount","amount","onClick","ReactGA","event","category","action","name","target","href","shortURL","src","firstImageUrl","alt","soonOutOfStock","availableSoon","style","backgroundColor","fontSize","color","marginTop","outOfStock","fontWeight","gender","toLowerCase","currencySymbol","new","shortDescription","affiliateLink","rel","variation","length","to","id","stock","undefined","quantity","disabled","title","connect","state","currencyData","cartItems","cartData","wishlistItems","wishlistData","compareItems","compareData","quantityCount","selectedProductColor","selectedProductSize","products","setAvalaibleColors","useEffect","axios","get","then","res","data","catch","err","console","log","map","filter","ShopProducts","layout","ProductgridList","initState","currencyName","currencyReducer","productReducer","cartReducer","ADD_TO_CART","cartItemId","uuid","DECREASE_QUANTITY","remainingItems","DELETE_FROM_CART","DELETE_ALL_FROM_CART","wishlistReducer","ADD_TO_WISHLIST","DELETE_FROM_WISHLIST","DELETE_ALL_FROM_WISHLIST","compareReducer","rootReducer","combineReducers","multilanguage","createMultilanguageReducer","currentLanguageCode","productData","withRouter","props","window","scrollTo","children","ProductGridSingleTwo","colorClass","titlePriceClass","bestDeclinations","bestRetailer","border","borderRadius","slugify","firstImg","declinations","imgs","reference","posts","trainingApproved","raceApproved","margin","ownProps","shopType","origin","setProducts","error","setError","loading","setloading","query","finally","fetchData","showProduct","filterList","productSearch","initialProducts","excludeColumns","lowercasedValue","trim","Object","keys","some","includes","toString","deleteFromCart","iconWhiteClass","user","setUser","setFilteredProducts","i18n","setOrigin","language","token","JSON","parse","localStorage","getItem","post","headers","removeItem","handleClick","e","currentTarget","nextSibling","classList","toggle","wordWrap","firstName","document","querySelector","add","resources","en","translation","translationEN","fr","translationFR","it","es","translationES","be","de","use","initReactI18next","init","debug","lng","location","split","keySeparator","interpolation","escapeValue","strings","menuWhiteClass","sidebarMenu","marginLeft","maxWidth","MobileMenu","offCanvasNav","offCanvasNavSubMenu","querySelectorAll","anchorLinks","insertAdjacentHTML","menuExpand","numMenuExpand","addEventListener","sideMenuExpand","closeMobileMenu","parentElement","remove","getProfileName","pathname","search","setCurrency","response","rates","rate","offer","setProductSearch","setScroll","setHeaderTop","isPortrait","setIsPortrait","header","offsetTop","handleScroll","removeEventListener","scrollY","handleSearch","resWithoutSpace","replaceAll","assign","ReactPixel","track","search_string","content_type","GetUserData","apiConversionRequest","portrait","matchMedia","matches","imageUrl","logoClass","textAlign","InputBase","marginBottom","paddingRight","sx","m","placeholder","inputProps","onChange","value","startAdornment","InputAdornment","position","paddingLeft","Search","onKeyDown","isMobileOnly","letterSpacing","isTablet","ml","flex","Logo","height","paddingTop","paddingBottom","Allures","distance","setDistance","hour","setHour","minutes","setMinutes","seconds","setSeconds","calculated","setCalculated","speed","setSpeed","pace","setPace","passage","setPassage","n","convertMinsToTime","mins","hours","Math","floor","onKeyPress","test","preventDefault","width","maxLength","defaultValue","totalSeconds","parseInt","paceInKmH","parseFloat","rounded","roundedIn","decimal","round","distanceModulo","passageArray","calculate","time","index","ShopGridFullWidth","lazy","getClientTokenData","tokenString","userToken","noSending","a","clientData","email","login","lastName","clientID","stringify","documentElement","setAttribute","loadLanguages","languages","initialize","trackingId","testMode","placement","fallback","path","render","routeProps","queryUser","eventName","eventData","fbp","cookie","c","fbc","Date","body","toISOString","navigator","userAgent","productID","productName","requestOptions","method","fetch","json","Boolean","hostname","match","store","createStore","load","composeWithDevTools","applyMiddleware","thunk","save","fetchProductsSuccess","ReactDOM","getElementById","serviceWorker","ready","registration","unregister","string","p","RegExp","join","replace","charAt","indexOf"],"mappings":"kHAAA,sGAAO,IAAMA,EAAiB,iBACjBC,EAAsB,sBAGtBC,EAAe,SAACC,EAAMC,GACjC,OAAO,SAAAC,GACDD,GACFA,EAAS,mBAAoB,CAC3BE,WAAY,UACZC,aAAa,IAGjBF,EAAS,CAAEG,KAAMR,EAAgBS,QAASN,O,op3ECS/BO,EAlBO,SAAC,GAGrB,IAH0C,IAAnBC,EAAkB,EAAlBA,YACnBC,EAAS,GAEJC,EAAI,EAAGA,EAAI,EAAGA,IACrBD,EAAOE,KAAK,uBAAGC,UAAU,eAAeC,IAAKH,KAE/C,GAAIF,GAAeA,EAAc,EAC/B,IAAK,IAAIE,EAAI,EAAGA,GAAKF,EAAc,EAAGE,IACpCD,EAAOC,GAAK,uBAAGE,UAAU,sBAAsBC,IAAKH,IAGxD,OAAO,kBAAC,WAAD,KAAWD,I,kCC6SLK,EAlTe,SAAC,GAaxB,IAZLC,EAYI,EAZJA,QACAC,EAWI,EAXJA,SACAC,EAUI,EAVJA,UACAC,EASI,EATJA,cACAnB,EAQI,EARJA,aACAoB,EAOI,EAPJA,SACAC,EAMI,EANJA,aACAC,EAKI,EALJA,YACAC,EAII,EAJJA,gBACAC,EAGI,EAHJA,iBAEAC,GACI,EAFJC,gBAEI,EADJD,aAEA,EAAkCE,oBAAS,GAA3C,mBACQzB,GADR,UACqB0B,sBAAb1B,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,SAAU,KAClBA,QAAQ,MAAO,IACfA,QAAQ,MAAO,O","file":"static/js/main.bc48b744.chunk.js","sourcesContent":["export const ADD_TO_COMPARE = \"ADD_TO_COMPARE\";\nexport const DELETE_FROM_COMPARE = \"DELETE_FROM_COMPARE\";\n\n// add to compare\nexport const addToCompare = (item, addToast) => {\n return dispatch => {\n if (addToast) {\n addToast(\"Added To Compare\", {\n appearance: \"success\",\n autoDismiss: true\n });\n }\n dispatch({ type: ADD_TO_COMPARE, payload: item });\n };\n};\n\n// delete from compare\nexport const deleteFromCompare = (item, addToast) => {\n return dispatch => {\n if (addToast) {\n addToast(\"Removed From Compare\", {\n appearance: \"error\",\n autoDismiss: true\n });\n }\n dispatch({ type: DELETE_FROM_COMPARE, payload: item });\n };\n};\n","import PropTypes from \"prop-types\";\nimport React, { Fragment } from \"react\";\n\nconst ProductRating = ({ ratingValue }) => {\n let rating = [];\n\n for (let i = 0; i < 5; i++) {\n rating.push();\n }\n if (ratingValue && ratingValue > 0) {\n for (let i = 0; i <= ratingValue - 1; i++) {\n rating[i] = ;\n }\n }\n return {rating};\n};\n\nProductRating.propTypes = {\n ratingValue: PropTypes.number\n};\n\nexport default ProductRating;\n","import PropTypes from \"prop-types\";\nimport React, {Fragment, useEffect, useState} from \"react\";\nimport { Link } from \"react-router-dom\";\nimport { useToasts } from \"react-toast-notifications\";\nimport Rating from \"./sub-components/ProductRating\";\nimport {getHexaColorFromName, slugify} from \"../../helpers/product\"\nimport {useTranslation} from \"react-i18next\";\nimport ReactGA from \"react-ga4\";\n\nconst ProductGridListSingle = ({\n product,\n currency,\n addToCart,\n addToWishlist,\n addToCompare,\n cartItem,\n wishlistItem,\n compareItem,\n sliderClassName,\n spaceBottomClass,\n avalaibleColors,\n partnerName\n}) => {\n const [modalShow, setModalShow] = useState(false);\n const { addToast } = useToasts();\n const { t } = useTranslation()\n\n const getUniqueColors = (declinations) => {\n let colors = []\n if (declinations && declinations.length > 0){\n declinations.map(declination => {\n colors.push(declination.color)\n })\n const filteredArray = colors.filter(function(ele , pos){\n return colors.indexOf(ele) == pos;\n })\n return filteredArray\n }\n\n return colors\n }\n\n const finalProductPrice = product.price.toFixed(2);\n const discountedPrice = product.bestPrice.toFixed(2);\n const finalDiscountedPrice = +(\n discountedPrice * currency.currencyRate\n ).toFixed(2);\n\n const discount = product.amount\n\n return (\n \n \n \n
{\n ReactGA.event({\n category: 'Affiliate',\n action: partnerName + ' Redirect to ' + product.name\n });\n }\n }>\n \n \n \n {discount > 0 && discount !== 100 ? (\n
\n {discount > 0 && discount !== 100 ? (\n -{discount}%\n ) : null}\n
\n ) : (\n \"\"\n )}\n {product.soonOutOfStock && !product.availableSoon? (\n
\n 0 && discount !== 100) ? \"25px\" : 0}}>Dernières tailles \n
\n ) : (\n \"\"\n )}\n\n {product.outOfStock && !product.availableSoon? (\n
\n Rupture de stock \n
\n ) : (\n \"\"\n )} \n\n {product.availableSoon ?\n
\n Lancement produit 🚀\n
\n : null }\n\n
\n
\n \n
\n
\n
\n
\n {\n ReactGA.event({\n category: 'Affiliate',\n action: partnerName + ' Redirect to ' + product.name\n });\n }}\n >\n

\n \n {product.name}\n \n

\n \n
\n {discount > 0 && discount !== 100 ? (\n \n \n {finalDiscountedPrice + currency.currencySymbol}\n \n \n {finalProductPrice + currency.currencySymbol}\n \n \n ) : (\n \n {finalProductPrice + currency.currencySymbol}\n \n )}\n
\n
\n \n \n
\n
\n
\n
\n
\n \n \n \n {discount > 0 && discount !== 100 ? (\n
\n {discount > 0 && discount !== 100 ? (\n -{discount}%\n ) : (\n \"\"\n )}\n {product.new ? New : \"\"}\n
\n ) : (\n \"\"\n )}\n
\n
\n
\n
\n
\n

\n \n {product.name}\n \n

\n
\n {discount > 0 && discount !== 100 ? (\n \n \n {finalDiscountedPrice + currency.currencySymbol}\n {\" \"}\n \n {finalProductPrice + currency.currencySymbol}\n \n \n ) : (\n {finalProductPrice + currency.currencySymbol} \n )}\n
\n {product.rating && product.rating > 0 ? (\n
\n
\n \n
\n
\n ) : (\n \"\"\n )}\n {product.shortDescription ? (\n

{product.shortDescription}

\n ) : (\n \"\"\n )}\n\n
\n
\n {product.affiliateLink ? (\n \n {\" \"}\n Buy now{\" \"}\n \n ) : product.variation && product.variation.length >= 1 ? (\n \n Select Option\n \n ) : product.stock && product.stock > 0 ? (\n addToCart(product, addToast)}\n className={\n cartItem !== undefined && cartItem.quantity > 0\n ? \"active\"\n : \"\"\n }\n disabled={\n cartItem !== undefined && cartItem.quantity > 0\n }\n title={\n cartItem !== undefined\n ? \"Added to cart\"\n : \"Add to cart\"\n }\n >\n {\" \"}\n {\" \"}\n {cartItem !== undefined && cartItem.quantity > 0\n ? \"Added\"\n : \"Add to cart\"}\n \n ) : (\n \n )}\n
\n\n
\n addToWishlist(product, addToast)}\n >\n \n \n
\n
\n addToCompare(product, addToast)}\n >\n \n \n
\n
\n
\n
\n
\n
\n \n
\n );\n};\n\nProductGridListSingle.propTypes = {\n addToCart: PropTypes.func,\n addToCompare: PropTypes.func,\n addToWishlist: PropTypes.func,\n cartItem: PropTypes.object,\n compareItem: PropTypes.object,\n currency: PropTypes.object,\n product: PropTypes.object,\n sliderClassName: PropTypes.string,\n spaceBottomClass: PropTypes.string,\n wishlistItem: PropTypes.object,\n avalaibleColors: PropTypes.any,\n partnerName: PropTypes.string\n};\n\nexport default ProductGridListSingle;\n","import PropTypes from \"prop-types\";\nimport React, {Fragment, useEffect, useState} from \"react\";\nimport { connect } from \"react-redux\";\nimport { addToCart } from \"../../redux/actions/cartActions\";\nimport { addToWishlist } from \"../../redux/actions/wishlistActions\";\nimport { addToCompare } from \"../../redux/actions/compareActions\";\nimport ProductGridListSingle from \"../../components/product/ProductGridListSingle\";\nimport axios from \"axios\";\n\nconst ProductGrid = ({\n products,\n currency,\n addToCart,\n addToWishlist,\n addToCompare,\n cartItems,\n wishlistItems,\n compareItems,\n sliderClassName,\n spaceBottomClass,\n partnerName\n}) => {\n\n const [avalaibleColors, setAvalaibleColors] = useState([]);\n\n const fetchColorsData = () => {\n let query = 'https://api.therunningcollective.fr/api/public/colors'\n axios\n .get(query)\n .then((res) => {\n setAvalaibleColors(res.data);\n })\n .catch((err) => {\n console.log(err);\n })\n };\n\n useEffect(() => {\n fetchColorsData();\n }, []);\n\n return (\n \n {products.map(product => {\n return (\n cartItem.id === product.id)[0]\n }\n wishlistItem={\n wishlistItems.filter(\n wishlistItem => wishlistItem.id === product.id\n )[0]\n }\n compareItem={\n compareItems.filter(\n compareItem => compareItem.id === product.id\n )[0]\n }\n key={product.name}\n />\n );\n })}\n \n );\n};\n\nProductGrid.propTypes = {\n addToCart: PropTypes.func,\n addToCompare: PropTypes.func,\n addToWishlist: PropTypes.func,\n cartItems: PropTypes.array,\n compareItems: PropTypes.array,\n currency: PropTypes.object,\n products: PropTypes.array,\n sliderClassName: PropTypes.string,\n spaceBottomClass: PropTypes.string,\n wishlistItems: PropTypes.array,\n partnerName: PropTypes.string\n};\n\nconst mapStateToProps = state => {\n return {\n currency: state.currencyData,\n cartItems: state.cartData,\n wishlistItems: state.wishlistData,\n compareItems: state.compareData\n };\n};\n\nconst mapDispatchToProps = dispatch => {\n return {\n addToCart: (\n item,\n addToast,\n quantityCount,\n selectedProductColor,\n selectedProductSize\n ) => {\n dispatch(\n addToCart(\n item,\n addToast,\n quantityCount,\n selectedProductColor,\n selectedProductSize\n )\n );\n },\n addToWishlist: (item, addToast) => {\n dispatch(addToWishlist(item, addToast));\n },\n addToCompare: (item, addToast) => {\n dispatch(addToCompare(item, addToast));\n }\n };\n};\n\nexport default connect(mapStateToProps, mapDispatchToProps)(ProductGrid);\n","import PropTypes from \"prop-types\";\nimport React from \"react\";\nimport ProductgridList from \"./ProductgridList\";\n\nconst ShopProducts = ({ products, layout, partnerName }) => {\n return (\n
\n
\n \n
\n
\n );\n};\n\nShopProducts.propTypes = {\n layout: PropTypes.string,\n products: PropTypes.array,\n partnerName: PropTypes.string\n};\n\nexport default ShopProducts;\n","import { SET_CURRENCY } from \"../actions/currencyActions\";\n\nconst initState = {\n currencySymbol: \"€\",\n currencyName: \"EUR\",\n currencyRate: 1\n};\n\nconst currencyReducer = (state = initState, action) => {\n if (action.type === SET_CURRENCY) {\n const currencyName = action.payload.currencyName;\n\n if (currencyName === \"USD\") {\n return {\n ...state,\n currencySymbol: \"$\",\n currencyRate: action.payload.currencyRate,\n currencyName\n };\n }\n if (currencyName === \"EUR\") {\n return {\n ...state,\n currencySymbol: \"€\",\n currencyRate: action.payload.currencyRate,\n currencyName\n };\n }\n if (currencyName === \"GBP\") {\n return {\n ...state,\n currencySymbol: \"£\",\n currencyRate: action.payload.currencyRate,\n currencyName\n };\n }\n }\n\n return state;\n};\n\nexport default currencyReducer;\n","import axios from \"axios\";\nexport const SET_CURRENCY = \"SET_CURRENCY\";\n\nexport const setCurrency = (currencyName) => {\n return (dispatch) => {\n axios\n .get(\n `http://api.exchangeratesapi.io/v1/latest?access_key=523380ab42abd25f9ebdc193dd3b19e7&symbols=USD,GBP,EUR`\n )\n .then((response) => {\n const rates = response.data.rates;\n let currencyRate = 0;\n for (const rate in rates) {\n if (rate === currencyName) {\n currencyRate = rates[rate];\n }\n }\n dispatch({\n type: SET_CURRENCY,\n payload: { currencyName, currencyRate }\n });\n })\n .catch((err) => {\n console.log(\"Error: \", err);\n });\n };\n};\n","import { FETCH_PRODUCTS_SUCCESS } from \"../actions/productActions\";\n\nconst initState = {\n products: []\n};\n\nconst productReducer = (state = initState, action) => {\n if (action.type === FETCH_PRODUCTS_SUCCESS) {\n return {\n ...state,\n products: action.payload\n };\n }\n\n return state;\n};\n\nexport default productReducer;\n","export const FETCH_PRODUCTS_SUCCESS = \"FETCH_PRODUCTS_SUCCESS\";\n\nconst fetchProductsSuccess = products => ({\n type: FETCH_PRODUCTS_SUCCESS,\n payload: products\n});\n\n// fetch products\nexport const fetchProducts = products => {\n return dispatch => {\n dispatch(fetchProductsSuccess(products));\n };\n};\n","import uuid from \"uuid/v4\";\nimport {\n ADD_TO_CART,\n DECREASE_QUANTITY,\n DELETE_FROM_CART,\n DELETE_ALL_FROM_CART\n} from \"../actions/cartActions\";\n\nconst initState = [];\n\nconst cartReducer = (state = initState, action) => {\n const cartItems = state,\n product = action.payload;\n\n if (action.type === ADD_TO_CART) {\n // for non variant products\n if (product.variation === undefined) {\n const cartItem = cartItems.filter(item => item.id === product.id)[0];\n if (cartItem === undefined) {\n return [\n ...cartItems,\n {\n ...product,\n quantity: product.quantity ? product.quantity : 1,\n cartItemId: uuid()\n }\n ];\n } else {\n return cartItems.map(item =>\n item.cartItemId === cartItem.cartItemId\n ? {\n ...item,\n quantity: product.quantity\n ? item.quantity + product.quantity\n : item.quantity + 1\n }\n : item\n );\n }\n // for variant products\n } else {\n const cartItem = cartItems.filter(\n item =>\n item.id === product.id &&\n product.selectedProductColor &&\n product.selectedProductColor === item.selectedProductColor &&\n product.selectedProductSize &&\n product.selectedProductSize === item.selectedProductSize &&\n (product.cartItemId ? product.cartItemId === item.cartItemId : true)\n )[0];\n\n if (cartItem === undefined) {\n return [\n ...cartItems,\n {\n ...product,\n quantity: product.quantity ? product.quantity : 1,\n cartItemId: uuid()\n }\n ];\n } else if (\n cartItem !== undefined &&\n (cartItem.selectedProductColor !== product.selectedProductColor ||\n cartItem.selectedProductSize !== product.selectedProductSize)\n ) {\n return [\n ...cartItems,\n {\n ...product,\n quantity: product.quantity ? product.quantity : 1,\n cartItemId: uuid()\n }\n ];\n } else {\n return cartItems.map(item =>\n item.cartItemId === cartItem.cartItemId\n ? {\n ...item,\n quantity: product.quantity\n ? item.quantity + product.quantity\n : item.quantity + 1,\n selectedProductColor: product.selectedProductColor,\n selectedProductSize: product.selectedProductSize\n }\n : item\n );\n }\n }\n }\n\n if (action.type === DECREASE_QUANTITY) {\n if (product.quantity === 1) {\n const remainingItems = (cartItems, product) =>\n cartItems.filter(\n cartItem => cartItem.cartItemId !== product.cartItemId\n );\n return remainingItems(cartItems, product);\n } else {\n return cartItems.map(item =>\n item.cartItemId === product.cartItemId\n ? { ...item, quantity: item.quantity - 1 }\n : item\n );\n }\n }\n\n if (action.type === DELETE_FROM_CART) {\n const remainingItems = (cartItems, product) =>\n cartItems.filter(cartItem => cartItem.cartItemId !== product.cartItemId);\n return remainingItems(cartItems, product);\n }\n\n if (action.type === DELETE_ALL_FROM_CART) {\n return cartItems.filter(item => {\n return false;\n });\n }\n\n return state;\n};\n\nexport default cartReducer;\n","import {\n ADD_TO_WISHLIST,\n DELETE_FROM_WISHLIST,\n DELETE_ALL_FROM_WISHLIST\n} from \"../actions/wishlistActions\";\n\nconst initState = [];\n\nconst wishlistReducer = (state = initState, action) => {\n const wishlistItems = state,\n product = action.payload;\n\n if (action.type === ADD_TO_WISHLIST) {\n const wishlistItem = wishlistItems.filter(\n item => item.id === product.id\n )[0];\n if (wishlistItem === undefined) {\n return [...wishlistItems, product];\n } else {\n return wishlistItems;\n }\n }\n\n if (action.type === DELETE_FROM_WISHLIST) {\n const remainingItems = (wishlistItems, product) =>\n wishlistItems.filter(wishlistItem => wishlistItem.id !== product.id);\n return remainingItems(wishlistItems, product);\n }\n\n if (action.type === DELETE_ALL_FROM_WISHLIST) {\n return wishlistItems.filter(item => {\n return false;\n });\n }\n\n return wishlistItems;\n};\n\nexport default wishlistReducer;\n","import { ADD_TO_COMPARE, DELETE_FROM_COMPARE } from \"../actions/compareActions\";\n\nconst initState = [];\n\nconst compareReducer = (state = initState, action) => {\n const compareItems = state,\n product = action.payload;\n\n if (action.type === ADD_TO_COMPARE) {\n const compareItem = compareItems.filter(item => item.id === product.id)[0];\n if (compareItem === undefined) {\n return [...compareItems, product];\n } else {\n return compareItems;\n }\n }\n\n if (action.type === DELETE_FROM_COMPARE) {\n const remainingItems = (compareItems, product) =>\n compareItems.filter(compareItem => compareItem.id !== product.id);\n return remainingItems(compareItems, product);\n }\n\n return compareItems;\n};\n\nexport default compareReducer;\n","import currencyReducer from \"./currencyReducer\";\nimport productReducer from \"./productReducer\";\nimport cartReducer from \"./cartReducer\";\nimport wishlistReducer from \"./wishlistReducer\";\nimport compareReducer from \"./compareReducer\";\nimport { combineReducers } from \"redux\";\nimport { createMultilanguageReducer } from \"redux-multilanguage\";\n\nconst rootReducer = combineReducers({\n multilanguage: createMultilanguageReducer({ currentLanguageCode: \"fr\" }),\n currencyData: currencyReducer,\n productData: productReducer,\n cartData: cartReducer,\n wishlistData: wishlistReducer,\n compareData: compareReducer\n});\n\nexport default rootReducer;\n","import { useEffect } from \"react\";\nimport { withRouter } from \"react-router-dom\";\n\nconst ScrollToTop = props => {\n useEffect(() => {\n window.scrollTo(0, 0);\n });\n return props.children;\n};\n\nexport default withRouter(ScrollToTop);\n","import PropTypes from \"prop-types\";\nimport React, { Fragment } from \"react\";\nimport { Link } from \"react-router-dom\";\n\nimport {slugify} from \"../../helpers/product\"\nimport {useTranslation} from \"react-i18next\";\n\nconst ProductGridSingleTwo = ({\n product,\n currency,\n sliderClassName,\n spaceBottomClass,\n colorClass,\n titlePriceClass\n}) => {\n const { t } = useTranslation();\n\n const finalProductPrice = product.bestDeclinations.price;\n const discountedPrice = product.bestDeclinations.bestRetailer.price;\n const finalDiscountedPrice = +(\n discountedPrice * currency.currencyRate\n ).toFixed(2);\n\n const discount = product.bestDeclinations.bestRetailer.amount\n\n return (\n \n \n \n
\n \n \n {product.bestDeclinations.imgs > 0 ? (\n \n ) : (\n \"\"\n )}\n \n {discount > 0 && discount !== 100 ? (\n
\n {discount > 0 && discount !== 100 ? (\n -{discount}%\n ) : (\n \"\"\n )}\n
\n ) : (\n \"\"\n )}\n\n {product.availableSoon && discount == 0 ? (\n
\n {t(\"availablesoon\")}\n
\n ) : (\n \"\"\n )}\n
\n
\n \n

\n \n {product.name}\n \n

\n \n
\n {discount > 0 && discount !== 100 ? (\n \n \n {finalDiscountedPrice + currency.currencySymbol}\n \n \n {finalProductPrice + currency.currencySymbol}\n \n \n ) : (\n {product.declinations[0].price + currency.currencySymbol} \n )}\n
\n \n \n \n
\n {((product.posts && product.posts.length > 0) || product.trainingApproved || product.raceApproved) ?\n
\n \n {product.posts && product.posts.length > 0 ?\n \n  \n \n :\n null}\n {product.trainingApproved ?\n \n 5) \" +\n \"- Confort de la paire testé par nos équipes\"} style={{color: 'green'}} className=\"fas fa-running\">\n \n : null}\n {product.raceApproved ?\n \n  \n \n : null}\n \n
\n :\n null\n }\n \n \n \n
\n );\n};\n\nProductGridSingleTwo.propTypes = {\n addToCart: PropTypes.func,\n addToCompare: PropTypes.func,\n addToWishlist: PropTypes.func,\n cartItem: PropTypes.object,\n compareItem: PropTypes.object,\n currency: PropTypes.object,\n product: PropTypes.object,\n sliderClassName: PropTypes.string,\n spaceBottomClass: PropTypes.string,\n colorClass: PropTypes.string,\n titlePriceClass: PropTypes.string,\n wishlistItem: PropTypes.object\n};\n\nexport default ProductGridSingleTwo;\n","import PropTypes from \"prop-types\";\nimport React, {Fragment, useEffect, useState} from \"react\";\nimport { connect } from \"react-redux\";\nimport ProductGridSingleTwo from \"../../components/product/ProductGridSingleTwo\";\nimport { addToCart } from \"../../redux/actions/cartActions\";\nimport { addToWishlist } from \"../../redux/actions/wishlistActions\";\nimport { addToCompare } from \"../../redux/actions/compareActions\";\nimport axios from \"axios\";\n\nconst ProductGridTwo = ({\n type,\n currency,\n addToCart,\n addToWishlist,\n addToCompare,\n cartItems,\n wishlistItems,\n compareItems,\n sliderClassName,\n spaceBottomClass,\n colorClass,\n titlePriceClass,\n shopType,\n origin\n}) => {\n\n const [products, setProducts] = useState({ products: [] });\n const [error, setError] = useState('');\n const [loading, setloading] = useState(true);\n\n const fetchData = (type, origin) => {\n if (origin && origin == \"be\"){\n origin = \"fr\"\n }\n\n let query\n if (type && type !== \"\") {\n if (shopType!== \"\"){\n query = 'https://api.therunningcollective.fr/api/public/new-products?lang='+origin+'&shopType='+shopType+'&sortType='+type\n } else {\n query = 'https://api.therunningcollective.fr/api/public/new-products?lang='+origin+'&sortType='+type\n }\n } else {\n if (shopType!== \"\"){\n query = 'https://api.therunningcollective.fr/api/public/new-products?lang='+origin+'&shopType='+shopType\n } else {\n query = 'https://api.therunningcollective.fr/api/public/new-products?lang='+origin\n }\n }\n\n axios\n .get(query)\n .then((res) => {\n setProducts(res.data);\n })\n .catch((err) => {\n setError(err);\n })\n .finally(() => {\n setloading(false);\n });\n };\n\n useEffect(() => {\n fetchData(type, origin);\n }, [type, origin]);\n\n return (\n \n {!loading ? products && products.length >0 ? products.map((product) => {\n if(product.showProduct) {\n return (\n cartItem.id === product.id)[0]\n }\n wishlistItem={\n wishlistItems.filter(\n (wishlistItem) => wishlistItem.id === product.id\n )[0]\n }\n compareItem={\n compareItems.filter(\n (compareItem) => compareItem.id === product.id\n )[0]\n }\n key={product.id}\n titlePriceClass={titlePriceClass}\n />\n );\n }\n }) : Aucun produit disponible : Chargement en cours }\n {error ? Erreur durant le chargement des données : null }\n \n );\n};\n\nProductGridTwo.propTypes = {\n addToCart: PropTypes.func,\n addToCompare: PropTypes.func,\n addToWishlist: PropTypes.func,\n cartItems: PropTypes.array,\n compareItems: PropTypes.array,\n currency: PropTypes.object,\n sliderClassName: PropTypes.string,\n spaceBottomClass: PropTypes.string,\n colorClass: PropTypes.string,\n titlePriceClass: PropTypes.string,\n wishlistItems: PropTypes.array,\n shopType: PropTypes.string,\n origin: PropTypes.string\n};\n\nconst mapStateToProps = (state, ownProps) => {\n\n return {\n type: ownProps.type,\n currency: state.currencyData,\n cartItems: state.cartData,\n wishlistItems: state.wishlistData,\n compareItems: state.compareData\n };\n};\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n addToCart: (\n item,\n addToast,\n quantityCount,\n selectedProductColor,\n selectedProductSize\n ) => {\n dispatch(\n addToCart(\n item,\n addToast,\n quantityCount,\n selectedProductColor,\n selectedProductSize\n )\n );\n },\n addToWishlist: (item, addToast) => {\n dispatch(addToWishlist(item, addToast));\n },\n addToCompare: (item, addToast) => {\n dispatch(addToCompare(item, addToast));\n }\n };\n};\n\nexport default connect(mapStateToProps, mapDispatchToProps)(ProductGridTwo);\n","import PropTypes from \"prop-types\";\nimport React, {useEffect, useState} from \"react\";\nimport { Link } from \"react-router-dom\";\nimport { connect } from \"react-redux\";\nimport { deleteFromCart } from \"../../redux/actions/cartActions\";\nimport axios from \"axios\";\nimport {Col, Row} from \"react-bootstrap\";\nimport ReactPixel from \"react-facebook-pixel\";\nimport {apiConversionRequest, GetUserData} from \"../../App\";\nimport {useTranslation} from \"react-i18next\";\n\nconst IconGroup = ({\n iconWhiteClass\n}) => {\n const [user, setUser] = useState(null);\n const [products, setProducts] = useState(null);\n const [productSearch, setProductSearch] = useState(null);\n const [filteredProducts, setFilteredProducts] = useState(null);\n const [slugProductResearched, setSlugProductResearched] = useState(null);\n const { i18n, t } = useTranslation();\n const [origin, setOrigin] = useState(\"fr\")\n\n useEffect(() => {\n setOrigin(i18n.language)\n }, [])\n\n const getProfile = () => {\n let query = 'https://api.therunningcollective.fr/api/protectedFront/profile'\n axios.post(query, null, {\n headers: {\n 'Authorization': `Bearer ${JSON.parse(localStorage.getItem('trc-client-token')).token}`\n }\n ,}\n )\n .then((res) => {\n setUser(res.data)\n })\n .catch((err) => {\n console.log(err);\n localStorage.removeItem('trc-client-token');\n })\n };\n\n const getProducts = () => {\n let query = 'https://api.therunningcollective.fr/api/public/short-products'\n axios.get(query, null)\n .then((res) => {\n setProducts(res.data)\n })\n .catch((err) => {\n console.log(err);\n })\n };\n\n useEffect(() => {\n if (products && productSearch) {\n setFilteredProducts(filterList(productSearch, products))\n }\n }, [productSearch, products])\n\n\n useEffect(() => {\n let token = JSON.parse(localStorage.getItem('trc-client-token'))\n if (token) {\n getProfile(token);\n }\n }, []);\n\n const handleClick = e => {\n e.currentTarget.nextSibling.classList.toggle(\"active\");\n getProducts()\n };\n\n const handleSearch = () => {\n let resWithoutSpace = productSearch.replaceAll(\" \", \"-\")\n let res = resWithoutSpace.toLowerCase()\n setSlugProductResearched(res)\n window.location.assign(\"https://app.therunningcollective.\"+origin+\"/products-researched/\" + res)\n ReactPixel.track('Search', {\n search_string: resWithoutSpace,\n content_type: 'product',\n })\n GetUserData(true).then(data =>\n apiConversionRequest(data.query, \"Search\", {search: resWithoutSpace})\n )\n }\n\n const triggerMobileMenu = () => {\n const offcanvasMobileMenu = document.querySelector(\n \"#offcanvas-mobile-menu\"\n );\n offcanvasMobileMenu.classList.add(\"active\");\n };\n\n return (\n \n
\n handleClick(e)}\n >\n \n \n
\n {user ?\n
    \n
  • \n {user.firstName} {user.name}\n
    \n
  • \n
  • \n \n {t('mygames')}\n \n
  • \n
  • \n \n {t('myaccount')}\n \n
  • \n
  • \n \n {t('logout')}\n \n
  • \n
\n\n :\n
    \n
  • \n {t('login')}\n
  • \n
\n\n }\n
\n
\n
\n triggerMobileMenu()}\n >\n \n \n
\n \n );\n};\n\nIconGroup.propTypes = {\n cartData: PropTypes.array,\n compareData: PropTypes.array,\n currency: PropTypes.object,\n iconWhiteClass: PropTypes.string,\n deleteFromCart: PropTypes.func,\n wishlistData: PropTypes.array\n};\n\nexport function filterList(productSearch, initialProducts){\n const excludeColumns = [\"id\", \"colors\", \"posts\", \"sizes\", \"retailers\"];\n const lowercasedValue = productSearch.toLowerCase().trim();\n\n const filteredData = initialProducts.filter(item => {\n return Object.keys(item).some(key =>\n excludeColumns.includes(key) ? false : item[key] ? item[key].toString().toLowerCase().includes(lowercasedValue) : false\n );\n });\n return filteredData\n}\n\nconst mapStateToProps = state => {\n return {\n currency: state.currencyData,\n cartData: state.cartData,\n wishlistData: state.wishlistData,\n compareData: state.compareData\n };\n};\n\nconst mapDispatchToProps = dispatch => {\n return {\n deleteFromCart: (item, addToast) => {\n dispatch(deleteFromCart(item, addToast));\n }\n };\n};\n\nexport default connect(mapStateToProps, mapDispatchToProps)(IconGroup);\n","import i18n from 'i18next';\nimport { initReactI18next } from 'react-i18next';\nimport translationEN from '../locales/en/translations.json';\nimport translationFR from '../locales/fr/translations.json';\nimport translationES from '../locales/es/translations.json';\nimport translationIT from '../locales/it/translations.json';\nimport translationDE from '../locales/de/translations.json';\n\nconst resources = {\n en: {\n translation: translationEN\n },\n fr: {\n translation: translationFR\n },\n it: {\n translation: translationIT\n },\n es: {\n translation: translationES\n },\n be: {\n translation: translationFR\n },\n de: {\n translation: translationDE\n }\n};\n\ni18n\n .use(initReactI18next)\n .init({\n debug: true, // pratique pour voir les événements dans la console pendant le développement\n resources,\n lng: window.location.origin && window.location.origin.includes(\"https://app.therunningcollective.\") ?\n (\n window.location.origin.includes(\"https://app.therunningcollective.be\") ? \"fr\"\n : window.location.origin.split(\"https://app.therunningcollective.\")[1]\n )\n : \"fr\",\n\n keySeparator: false, // we do not use keys in form messages.welcome\n\n interpolation: {\n escapeValue: false // react already safes from xss\n }\n });\n\nexport default i18n;","import PropTypes from \"prop-types\";\nimport React from \"react\";\nimport { multilanguage } from \"redux-multilanguage\";\nimport {useTranslation} from \"react-i18next\";\nimport i18n from \"../../helpers/i18n\";\n\nconst NavMenu = ({ strings, menuWhiteClass, sidebarMenu }) => {\n const { t, i18n } = useTranslation();\n\n return (\n \n \n \n );\n};\n\nNavMenu.propTypes = {\n menuWhiteClass: PropTypes.string,\n sidebarMenu: PropTypes.bool,\n strings: PropTypes.object\n};\n\nexport default multilanguage(NavMenu);\n","import PropTypes from \"prop-types\";\nimport React, {useEffect, useState} from \"react\";\nimport { a } from \"react-router-dom\";\nimport { multilanguage } from \"redux-multilanguage\";\nimport axios from \"axios\";\nimport {useTranslation} from \"react-i18next\";\n\nconst MobileNavMenu = ({ strings }) => {\n const [user, setUser] = useState(null);\n const { t, i18n } = useTranslation();\n\n const getProfile = () => {\n let query = 'https://api.therunningcollective.fr/api/protectedFront/profile'\n axios.post(query, null, {\n headers: {\n 'Authorization': `Bearer ${JSON.parse(localStorage.getItem('trc-client-token')).token}`\n }\n ,}\n )\n .then((res) => {\n setUser(res.data)\n })\n .catch((err) => {\n console.log(err);\n localStorage.removeItem('trc-client-token');\n })\n };\n\n useEffect(() => {\n let token = JSON.parse(localStorage.getItem('trc-client-token'))\n if (token) {\n getProfile(token);\n\n }\n }, []);\n\n return (\n \n );\n};\n\nMobileNavMenu.propTypes = {\n strings: PropTypes.object\n};\n\nexport default multilanguage(MobileNavMenu);\n","import React, { useEffect } from \"react\";\nimport MobileMenuSearch from \"./sub-components/MobileSearch\";\nimport MobileNavMenu from \"./sub-components/MobileNavMenu\";\n\nconst MobileMenu = () => {\n useEffect(() => {\n const offCanvasNav = document.querySelector(\"#offcanvas-navigation\");\n const offCanvasNavSubMenu = offCanvasNav.querySelectorAll(\".sub-menu\");\n const anchorLinks = offCanvasNav.querySelectorAll(\"a\");\n\n for (let i = 0; i < offCanvasNavSubMenu.length; i++) {\n offCanvasNavSubMenu[i].insertAdjacentHTML(\n \"beforebegin\",\n \"\"\n );\n }\n\n const menuExpand = offCanvasNav.querySelectorAll(\".menu-expand\");\n const numMenuExpand = menuExpand.length;\n\n for (let i = 0; i < numMenuExpand; i++) {\n menuExpand[i].addEventListener(\"click\", e => {\n sideMenuExpand(e);\n });\n }\n\n for (let i = 0; i < anchorLinks.length; i++) {\n anchorLinks[i].addEventListener(\"click\", () => {\n closeMobileMenu();\n });\n }\n });\n\n const sideMenuExpand = e => {\n e.currentTarget.parentElement.classList.toggle(\"active\");\n };\n\n const closeMobileMenu = () => {\n const offcanvasMobileMenu = document.querySelector(\n \"#offcanvas-mobile-menu\"\n );\n offcanvasMobileMenu.classList.remove(\"active\");\n };\n\n return (\n
\n closeMobileMenu()}\n >\n \n \n
\n
\n {/* mobile search\n */}\n\n {/* mobile nav menu */}\n \n\n {/* mobile language and currency\n */}\n\n {/* mobile widgets\n */}\n
\n
\n
\n );\n};\n\nexport default MobileMenu;\n","import PropTypes from \"prop-types\";\nimport React, { useState, useEffect } from \"react\";\nimport { connect } from \"react-redux\";\nimport { setCurrency } from \"../../redux/actions/currencyActions\";\nimport { multilanguage } from \"redux-multilanguage\";\nimport Logo from \"../../components/header/Logo\";\nimport IconGroup from \"../../components/header/IconGroup\";\nimport NavMenu from \"../../components/header/NavMenu\";\nimport MobileMenu from \"../../components/header/MobileMenu\";\nimport {isMobileOnly, isTablet} from \"react-device-detect\";\nimport {InputAdornment, InputBase} from \"@mui/material\";\nimport {Search} from \"@material-ui/icons\";\nimport ReactPixel from \"react-facebook-pixel\";\nimport {apiConversionRequest, GetUserData} from \"../../App\";\nimport { useTranslation } from 'react-i18next';\n\nconst HeaderTwo = ({\n location,\n offer,\n setProductSearch,\n productSearch,\n strings\n}) => {\n const [scroll, setScroll] = useState(0);\n const [headerTop, setHeaderTop] = useState(0);\n const [isPortrait, setIsPortrait] = useState(false);\n const { t } = useTranslation();\n\n useEffect(() => {\n const header = document.querySelector(\".sticky-bar\");\n setHeaderTop(header.offsetTop);\n window.addEventListener(\"scroll\", handleScroll);\n return () => {\n window.removeEventListener(\"scroll\", handleScroll);\n };\n }, []);\n\n const handleScroll = () => {\n setScroll(window.scrollY);\n };\n\n const handleSearch = () => {\n let resWithoutSpace = productSearch.replaceAll(\" \", \"-\")\n let res = resWithoutSpace.toLowerCase()\n window.location.assign(process.env.PUBLIC_URL + '/products-researched/'+res)\n ReactPixel.track('Search', {\n search_string: resWithoutSpace,\n content_type: 'product',\n })\n GetUserData(true).then(data =>\n apiConversionRequest(data.query, \"Search\", {search: resWithoutSpace})\n )\n }\n\n useEffect(() => {\n const portrait = window.matchMedia(\"(orientation: portrait)\").matches;\n setIsPortrait(portrait)\n }, [])\n\n window.matchMedia(\"(orientation: portrait)\").addEventListener(\"change\", e => {\n const portrait = e.matches;\n if (portrait) {\n // do something\n setIsPortrait(true)\n } else {\n // do something else\n setIsPortrait(false)\n }\n });\n\n return (\n
\n
\n
\n
\n
\n {/* language currency changer */}\n {/**/}\n
\n
\n {/* header logo */}\n \n
\n
\n {/* Icon group */}\n \n
\n
\n
\n
\n \n
\n
\n
\n {/* header logo */}\n \n
\n
\n {/* Icon group */}\n \n
\n
\n {/* Nav menu */}\n \n
\n
\n {/* Nav menu */}\n
\n setProductSearch(e.target.value)}\n startAdornment={\n \n \n \n }\n onKeyDown={(e) => {\n if (e.key === \"Enter\") {\n handleSearch()\n }\n }}\n />\n
\n
\n\n
\n {/* mobile menu */}\n \n {isMobileOnly ?\n
\n
\n {t('descriptionhead')}\n
\n
\n : null }\n {isMobileOnly ?\n
\n
\n
\n { offer && offer.title ?\n {offer.title}\n :\n {getProfileName(location, t)}}\n
\n
\n
\n : null }\n\n {(isTablet && isPortrait) || isMobileOnly ?\n
\n setProductSearch(e.target.value)}\n startAdornment={\n \n \n \n }\n onKeyDown={(e) => {\n if (e.key === \"Enter\") {\n handleSearch()\n }\n }}\n />\n
\n : null }\n
\n \n
\n );\n};\n\nexport function getProfileName(location, t){\n\n if (location && location.pathname){\n switch (location.pathname) {\n case \"/athletisme\":\n return t('trackandfield')\n case \"/products/spikes\":\n return t('trackandfield')\n case \"/running\":\n return t('running')\n case \"/trail\":\n return t('trail')\n }\n }\n\n if (location && location.search) {\n if (location.search.includes(\"athletisme\")){\n return t('trackandfield')\n } else if (location.search.includes(\"running\")) {\n return t('running')\n } else if (location.search.includes(\"trail\")) {\n return t('trail')\n }\n }\n}\n\nHeaderTwo.propTypes = {\n setCurrency: PropTypes.func,\n currency: PropTypes.object,\n currentLanguageCode: PropTypes.string,\n dispatch: PropTypes.func,\n location: PropTypes.object,\n offer: PropTypes.object,\n strings: PropTypes.object\n};\n\nconst mapStateToProps = state => {\n return {\n currency: state.currencyData,\n };\n};\n\nconst mapDispatchToProps = dispatch => {\n return {\n setCurrency: currencyName => {\n dispatch(setCurrency(currencyName));\n }\n };\n};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(multilanguage(HeaderTwo));\n","import PropTypes from \"prop-types\";\nimport React from \"react\";\nimport { Link } from \"react-router-dom\";\nimport {BrowserView, isTablet, isMobileOnly} from 'react-device-detect';\nimport {getProfileName} from \"../../wrappers/header/HeaderTwo\";\nimport {useTranslation} from \"react-i18next\";\n\nconst Logo = ({logoClass, location, offer, isPortrait }) => {\n const { t } = useTranslation();\n\n return (\n
\n \n \"The\n \n The Running Collective\n \n \n {!isMobileOnly ?\n
\n {t('descriptionhead')}\n {offer && offer.title ?\n
\n {offer.title}\n
\n :
\n {getProfileName(location, t)}\n
}\n\n
\n : null }\n
\n \n
\n );\n};\n\nLogo.propTypes = {\n imageUrl: PropTypes.string,\n logoClass: PropTypes.string,\n location: PropTypes.any,\n isPortrait:PropTypes.any,\n};\n\nexport default Logo;\n","import PropTypes from \"prop-types\";\nimport React, {Fragment, useEffect, useState} from \"react\";\nimport MetaTags from \"react-meta-tags\";\nimport { BreadcrumbsItem } from \"react-breadcrumbs-dynamic\";\nimport LayoutOne from \"../../layouts/LayoutOne\";\nimport Breadcrumb from \"../../wrappers/breadcrumb/Breadcrumb\";\nimport * as ReactGA from \"react-ga\";\nimport SectionTitle from \"../../components/section-title/SectionTitle\";\nimport {InputBase} from \"@mui/material\";\nimport {useTranslation} from \"react-i18next\";\n\nconst Allures = ({ location }) => {\n const { pathname } = location;\n const { t } = useTranslation();\n useEffect(() => {\n ReactGA.pageview(location.pathname);\n }, [])\n\n const [error, setError] = useState(null)\n const [distance, setDistance] = useState(null)\n const [hour, setHour] = useState(0)\n const [minutes, setMinutes] = useState(0)\n const [seconds, setSeconds] = useState(0)\n const [calculated, setCalculated] = useState(false)\n const [speed, setSpeed] = useState(null)\n const [pace, setPace] = useState(null)\n const [passage, setPassage] = useState(null)\n\n const calculate = (distance, hour, minutes, seconds) => {\n setCalculated(true)\n if(!distance){\n setError(\"Distance manquante\")\n } else {\n setError(null)\n let hourInSecond = parseInt(hour, 10) * 60 * 60\n let minutesInSecond = parseInt(minutes, 10) * 60\n let totalSeconds = hourInSecond + minutesInSecond + parseInt(seconds, 10)\n if (totalSeconds > 0){\n let paceInKmH = parseInt(distance, 10) / totalSeconds * 3.6\n setSpeed(parseFloat(paceInKmH).toFixed(2))\n let paceInKMMin = paceInKmH / 60\n let revert = 1 / paceInKMMin\n let rounded = parseFloat(revert).toFixed(2);\n let roundedIn = Math.floor(rounded);\n let decimal = rounded - roundedIn;\n let pace = (Math.round(parseFloat(decimal).toFixed(2) * 60) % 60)\n setPace(roundedIn + \".\"+ n(pace))\n\n let distanceModulo = Math.floor(distance / 1000)\n if(distanceModulo > 0){\n let passageArray = []\n for(let i = 1; i < distanceModulo + 1; i++){\n let passage = (rounded * i)\n let roundedIn = Math.floor(passage);\n if(passage > 60){\n let decimal = passage - roundedIn;\n let pace = (Math.round(parseFloat(decimal).toFixed(2) * 60) % 60)\n passageArray[i] = convertMinsToTime(roundedIn) + n(pace) + \"s\"\n } else {\n let decimal = passage - roundedIn;\n let pace = (Math.round(parseFloat(decimal).toFixed(2) * 60) % 60)\n passageArray[i] = roundedIn + \"mn\"+ n(pace) + \"s\"\n }\n\n }\n setPassage(passageArray)\n }\n }\n else {\n setError(\"Données erronées\")\n setSpeed(null)\n }\n }\n }\n\n function n(n){\n return n > 9 ? \"\" + n: \"0\" + n;\n }\n\n const convertMinsToTime = (mins) => {\n let hours = Math.floor(mins / 60);\n let minutes = mins % 60;\n minutes = minutes < 10 ? '0' + minutes : minutes;\n return `${hours}h:${minutes}mn`;\n }\n\n return (\n \n
\n
\n
\n

{t('pacecalculatorpage')}

\n
\n
\n
\n
\n
{t('principalfunctions')}
\n
{t('pace1')}
\n
{t('pace2')}
\n
{t('pace3')}
\n
\n
\n\n
\n
\n
\n {t('distance')}\n
\n
\n {\n if (!/[0-9]/.test(event.key)) {\n event.preventDefault();\n }\n }}\n placeholder=\"10000\" type=\"text\" onChange={(e) => setDistance(e.target.value)} style={{width: \"80%\"}}/> m\n
\n
\n
\n
\n
\n {t('time')}\n
\n
\n {\n if (!/[0-9]/.test(event.key)) {\n event.preventDefault();\n }\n }}\n maxLength={2}\n defaultValue={hour} type=\"text\" onChange={(e) => setHour(e.target.value)} style={{width: \"50%\", paddingLeft: \"5px\"}}/> h\n
\n
\n {\n if (!/[0-9]/.test(event.key)) {\n event.preventDefault();\n }\n }}\n maxLength={2}\n defaultValue={minutes} type=\"text\" onChange={(e) => setMinutes(e.target.value)} style={{width: \"50%\", paddingLeft: \"5px\"}}/> mn\n
\n
\n {\n if (!/[0-9]/.test(event.key)) {\n event.preventDefault();\n }\n }}\n maxLength={2}\n defaultValue={seconds} type=\"text\" onChange={(e) => setSeconds(e.target.value)} style={{width: \"50%\", paddingLeft: \"5px\"}}/> s\n
\n
\n
\n
\n
\n
\n
\n calculate(distance, hour, minutes, seconds)}/>\n
\n
\n
\n {\n calculated && !error?\n
\n
\n

{distance}m en {hour}h {minutes}mn {seconds}s

\n
\n {t('speed')} {speed}km/h\n
\n
\n {t('pace')} {pace}mn/km\n
\n
\n
\n
\n {passage && passage.length > 0 ?\n passage.map((time, index) => {\n return (\n

Km {index} : {time}

\n )\n })\n : null }\n
\n
\n : error ?\n
\n
\n {error}\n
\n
\n : null\n }\n
\n
\n );\n};\n\nAllures.propTypes = {\n location: PropTypes.object\n};\n\nexport default Allures;\n","import PropTypes from \"prop-types\";\nimport React, {useEffect, Suspense, lazy, useState} from \"react\";\nimport ScrollToTop from \"./helpers/scroll-top\";\nimport { BrowserRouter as Router, Switch, Route } from \"react-router-dom\";\nimport { ToastProvider } from \"react-toast-notifications\";\nimport { multilanguage, loadLanguages } from \"redux-multilanguage\";\nimport { connect } from \"react-redux\";\nimport { BreadcrumbsProvider } from \"react-breadcrumbs-dynamic\";\nimport Logout from \"./components/Logout\";\nimport ReactGA from \"react-ga4\";\nimport ReactPixel from 'react-facebook-pixel';\nimport axios from \"axios\";\nimport MobileBanner from \"react-mobile-banner\";\nimport {MobileView, isMobileOnly} from \"react-device-detect\";\nimport {getWithExpiry, setWithExpiry} from \"./pages/home/HomeFashionTwo\";\nimport TagManager from 'react-gtm-module'\nimport {useTranslation} from \"react-i18next\";\nimport {LanguagePopup} from \"./components/LanguagePop\";\nimport {sleep} from \"./helpers/tools\";\nimport Allures from \"./pages/other/Allures\";\n\n// home pages\nconst ShopGridFullWidth = lazy(() => import(\"./pages/shop/ShopGridFullWidth\"));\n \nconst getToken = () => {\n const tokenString = localStorage.getItem('trc-client-token');\n const userToken = JSON.parse(tokenString);\n return userToken?.token\n};\n\nexport const getClientTokenData = () => {\n const tokenString = localStorage.getItem('trc-client-token');\n const userToken = JSON.parse(tokenString);\n return userToken?.user\n};\n\n//creating function to load ip address from the API\nexport const GetUserData = async (noSending, origin) => {\n var url = \"https://pro.ip-api.com/json/?key=Y1hZznfd2inZrpm&fields=status,message,continent,continentCode,country,countryCode,region,regionName,city,district,zip,lat,lon,timezone,offset,currency,isp,org,as,asname,reverse,mobile,proxy,hosting,query\"\n const res = await axios.get(url)\n if (res.data){\n res.data.location = window.location.href\n var query = \"https://api.therunningcollective.fr/api/public/data\"\n if (!noSending) {\n var clientData = getClientTokenData()\n if (clientData) {\n res.data.email = clientData.email\n res.data.login = clientData.login\n res.data.firstName = clientData.firstName\n res.data.lastName = clientData.name\n res.data.clientID = clientData.id\n }\n axios.post(query, JSON.stringify(res.data))\n }\n return res.data\n }\n}\n\nconst App = (props) => {\n const { i18n } = useTranslation();\n\n const [origin, setOrigin] = useState(\"fr\")\n\n useEffect(() => {\n setOrigin(i18n.language)\n document.documentElement.setAttribute('lang', i18n.language);\n }, [])\n\n\n useEffect(() => {\n props.dispatch(\n loadLanguages({\n languages: {\n }\n })\n );\n });\n\n const setAlt = () => {\n var div = document.querySelector(\".styles_bannerIcon__3zngJ\");\n if (div){\n div.setAttribute(\"alt\", \"application The Running Collective\");\n }\n }\n\n ReactGA.initialize(\n [\n {\n trackingId: \"G-F0WQSXBFFB\",\n }\n ], {testMode: false});\n\n return (\n \n \n\n \n \n
\n \n \n
\n \n }\n >\n \n (\n \n )}\n />\n (\n \n )}\n />\n \n \n \n
\n
\n
\n );\n};\n\nApp.propTypes = {\n dispatch: PropTypes.func\n};\n\nexport default connect()(multilanguage(App));\n\nexport function apiConversionRequest(queryUser, eventName, eventData){\n let fbp = document.cookie.split(';').filter(c => c.includes('_fbp=')).map(c => c.split('_fbp=')[1]);\n let fbc = document.cookie.split(';').filter(c => c.includes('_fbc=')).map(c => c.split('_fbc=')[1]);\n fbp = (fbp.length && fbp[0]) || null;\n fbc = (fbc.length && fbc[0]) || null;\n\n if(!fbc && window.location.search.includes('fbclid=')){\n fbc = 'fb.1.'+ (+new Date()) +'.'+ window.location.search.split('fbclid=')[1];\n }\n\n let body = {};\n\n if (eventData && eventData != \"\"){\n body = {\n \"data\": [\n {\n \"event_name\": eventName,\n \"event_time\": new Date().toISOString(),\n \"user_data\": {\n \"fbp\": fbp,\n \"fbc\": fbc,\n \"client_user_agent\": navigator.userAgent,\n \"client_ip_address\": queryUser,\n },\n \"custom_data\": {\n \"value\": eventData.value,\n \"currency\": \"EUR\",\n \"content_ids\": [\n eventData.productID\n ],\n \"content_name\": eventData.productName,\n \"content_type\": \"product\"\n },\n \"event_source_url\": window.location.origin + window.location.pathname,\n \"action_source\": \"website\"\n }\n ]\n }\n } else if (eventData && eventData != \"Search\"){\n body = {\n \"data\": [\n {\n \"event_name\": eventName,\n \"event_time\": new Date().toISOString(),\n \"user_data\": {\n \"fbp\": fbp,\n \"fbc\": fbc,\n \"client_user_agent\": navigator.userAgent,\n \"client_ip_address\": queryUser,\n },\n \"custom_data\": {\n \"search_string\": eventData.search,\n \"content_type\": \"product\"\n },\n \"event_source_url\": window.location.origin + window.location.pathname,\n \"action_source\": \"website\"\n }\n ]\n }\n } else {\n body = {\n \"data\": [\n {\n \"event_name\": eventName,\n \"event_time\": new Date().toISOString(),\n \"user_data\": {\n \"fbp\": fbp,\n \"fbc\": fbc,\n \"client_user_agent\": navigator.userAgent,\n \"client_ip_address\": queryUser,\n },\n \"event_source_url\": window.location.origin + window.location.pathname,\n \"action_source\": \"website\"\n }\n ]\n }\n }\n let query = \"https://graph.facebook.com/v13.0/1219438635083129/events?access_token=EAAStngtBnw0BAEbbRh60krdUcZCFix7MLaxQoh59ZCgeWZAubEv27fBp2nFNS7r5kJKum4BfbhygIhUfyRFkfdq9sfpD4ege2ZCBMzZAYwJn5yFpI6QTcC2BySqMnmNAIXMysobqP3XmYjGjLqfVDKCEukJ2aGiYZCBGdIxb6h05uuDq9ZBUocj\"\n\n const requestOptions = {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify(body)\n };\n fetch(query, requestOptions)\n .then(response => response.json())\n}","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === \"localhost\" ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === \"[::1]\" ||\n // 127.0.0.1/8 is considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === \"production\" && \"serviceWorker\" in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener(\"load\", () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n \"This web app is being served cache-first by a service \" +\n \"worker. To learn more, visit https://bit.ly/CRA-PWA\"\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === \"installed\") {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n \"New content is available and will be used when all \" +\n \"tabs for this page are closed. See https://bit.ly/CRA-PWA.\"\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log(\"Content is cached for offline use.\");\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch(error => {\n console.error(\"Error during service worker registration:\", error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl)\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get(\"content-type\");\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf(\"javascript\") === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n \"No internet connection found. App is running in offline mode.\"\n );\n });\n}\n\nexport function unregister() {\n if (\"serviceWorker\" in navigator) {\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister();\n });\n }\n}\n","import \"react-app-polyfill/ie11\";\nimport \"react-app-polyfill/stable\";\nimport React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { createStore, applyMiddleware } from \"redux\";\nimport thunk from \"redux-thunk\";\nimport { save, load } from \"redux-localstorage-simple\";\nimport { Provider } from \"react-redux\";\nimport { fetchProducts } from \"./redux/actions/productActions\";\nimport rootReducer from \"./redux/reducers/rootReducer\";\nimport products from \"./data/products.json\";\nimport App from \"./App\";\nimport \"./assets/scss/style.scss\";\nimport * as serviceWorker from \"./serviceWorker\";\nimport i18n from './helpers/i18n'; // initialisation de i18next\n\nimport { composeWithDevTools } from \"redux-devtools-extension\";\n\nconst store = createStore(\n rootReducer,\n load(),\n composeWithDevTools(applyMiddleware(thunk, save()))\n);\n\n// fetch products from json file\nstore.dispatch(fetchProducts(products));\n\nReactDOM.render(\n \n \n ,\n document.getElementById(\"root\")\n);\n\n\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();\n","export const ADD_TO_CART = \"ADD_TO_CART\";\nexport const DECREASE_QUANTITY = \"DECREASE_QUANTITY\";\nexport const DELETE_FROM_CART = \"DELETE_FROM_CART\";\nexport const DELETE_ALL_FROM_CART = \"DELETE_ALL_FROM_CART\";\n\n//add to cart\nexport const addToCart = (\n item,\n addToast,\n quantityCount,\n selectedProductColor,\n selectedProductSize\n) => {\n return dispatch => {\n if (addToast) {\n addToast(\"Added To Cart\", { appearance: \"success\", autoDismiss: true });\n }\n dispatch({\n type: ADD_TO_CART,\n payload: {\n ...item,\n quantity: quantityCount,\n selectedProductColor: selectedProductColor\n ? selectedProductColor\n : item.selectedProductColor\n ? item.selectedProductColor\n : null,\n selectedProductSize: selectedProductSize\n ? selectedProductSize\n : item.selectedProductSize\n ? item.selectedProductSize\n : null\n }\n });\n };\n};\n//decrease from cart\nexport const decreaseQuantity = (item, addToast) => {\n return dispatch => {\n if (addToast) {\n addToast(\"Item Decremented From Cart\", {\n appearance: \"warning\",\n autoDismiss: true\n });\n }\n dispatch({ type: DECREASE_QUANTITY, payload: item });\n };\n};\n//delete from cart\nexport const deleteFromCart = (item, addToast) => {\n return dispatch => {\n if (addToast) {\n addToast(\"Removed From Cart\", { appearance: \"error\", autoDismiss: true });\n }\n dispatch({ type: DELETE_FROM_CART, payload: item });\n };\n};\n//delete all from cart\nexport const deleteAllFromCart = addToast => {\n return dispatch => {\n if (addToast) {\n addToast(\"Removed All From Cart\", {\n appearance: \"error\",\n autoDismiss: true\n });\n }\n dispatch({ type: DELETE_ALL_FROM_CART });\n };\n};\n\n// get stock of cart item\nexport const cartItemStock = (item, color, size) => {\n if (item.stock) {\n return item.stock;\n } else {\n return item.variation\n .filter(single => single.color === color)[0]\n .size.filter(single => single.name === size)[0].stock;\n }\n};\n","export const ADD_TO_WISHLIST = \"ADD_TO_WISHLIST\";\nexport const DELETE_FROM_WISHLIST = \"DELETE_FROM_WISHLIST\";\nexport const DELETE_ALL_FROM_WISHLIST = \"DELETE_ALL_FROM_WISHLIST\";\n\n// add to wishlist\nexport const addToWishlist = (item, addToast) => {\n return dispatch => {\n if (addToast) {\n addToast(\"Added To Wishlist\", {\n appearance: \"success\",\n autoDismiss: true\n });\n }\n dispatch({ type: ADD_TO_WISHLIST, payload: item });\n };\n};\n\n// delete from wishlist\nexport const deleteFromWishlist = (item, addToast) => {\n return dispatch => {\n if (addToast) {\n addToast(\"Removed From Wishlist\", {\n appearance: \"error\",\n autoDismiss: true\n });\n }\n dispatch({ type: DELETE_FROM_WISHLIST, payload: item });\n };\n};\n\n//delete all from wishlist\nexport const deleteAllFromWishlist = addToast => {\n return dispatch => {\n if (addToast) {\n addToast(\"Removed All From Wishlist\", {\n appearance: \"error\",\n autoDismiss: true\n });\n }\n dispatch({ type: DELETE_ALL_FROM_WISHLIST });\n };\n};\n","// get products\nimport {newCheckExistingSize} from \"../pages/shop-product/tools\";\n\nexport const getProducts = (products, category, type, limit) => {\n const finalProducts = category\n ? products.filter(\n product => product.category.filter(single => single === category)[0]\n )\n : products;\n\n if (type && type === \"new\") {\n const newProducts = finalProducts.filter(single => single.new);\n return newProducts.slice(0, limit ? limit : newProducts.length);\n }\n if (type && type === \"bestSeller\") {\n return finalProducts\n .sort((a, b) => {\n return b.saleCount - a.saleCount;\n })\n .slice(0, limit ? limit : finalProducts.length);\n }\n if (type && type === \"saleItems\") {\n const saleItems = finalProducts.filter(\n single => single.discount && single.discount > 0\n );\n return saleItems.slice(0, limit ? limit : saleItems.length);\n }\n return finalProducts.slice(0, limit ? limit : finalProducts.length);\n};\n\n// get product discount price\nexport const getDiscountPrice = (price, discount) => {\n return discount && discount > 0 ? price - price * (discount / 100) : null;\n};\n\n// get product cart quantity\nexport const getProductCartQuantity = (cartItems, product, color, size) => {\n let productInCart = cartItems.filter(\n single =>\n single.id === product.id &&\n (single.selectedProductColor\n ? single.selectedProductColor === color\n : true) &&\n (single.selectedProductSize ? single.selectedProductSize === size : true)\n )[0];\n if (cartItems.length >= 1 && productInCart) {\n if (product.variation) {\n return cartItems.filter(\n single =>\n single.id === product.id &&\n single.selectedProductColor === color &&\n single.selectedProductSize === size\n )[0].quantity;\n } else {\n return cartItems.filter(single => product.id === single.id)[0].quantity;\n }\n } else {\n return 0;\n }\n};\n\nexport const getShowProducts = (products) => {\n let productsFiltered = products\n if (products && products.length > 0) {\n productsFiltered = productsFiltered.filter(\n product => product.showProduct === true\n );\n }\n\n return productsFiltered\n}\n\n//get products based on category\nexport const getSortedProducts = (products, sortType, sortValue, categorySortType, categorySortValue, brandSortType, brandSortValue, genderSortType, genderSortValue, colorSortType, colorSortValue, sizeSortType, sizeSortValue, priceSortType, priceSortValue, retailerSortType, retailerSortValue, weighSortType, weighSortValue, dropSortType, dropSortValue, filtersSortType, filtersSortValue) => {\n let productsFiltered = products\n\n if (products && products.length > 0) {\n\n if (products && retailerSortType && retailerSortValue) {\n if (retailerSortType === \"retailer\") {\n if(productsFiltered.length > 0){\n if(productsFiltered.length > 0){\n let newProductsFiltered = []\n productsFiltered.forEach(product => {\n let newProduct = product\n if(product.declinations && product.declinations.length > 0) {\n let declinations = product.declinations.sort((a, b) => (a.bestRetailer.price !=0 ? a.bestRetailer.price : a.price) - (b.bestRetailer.price !=0 ? b.bestRetailer.price : b.price)).reverse();\n declinations.forEach(declination => {\n if (declination.analysedRetailers) {\n declination.analysedRetailers.forEach(retailer => {\n if (retailer.retailerName == retailerSortValue) {\n newProduct.bestDeclinations = declination\n }\n })\n }\n })\n }\n newProductsFiltered.push(newProduct)\n })\n productsFiltered.bestDeclinations = newProductsFiltered\n }\n }\n }\n\n }\n\n if (products && colorSortType && colorSortValue) {\n if (colorSortType === \"color\") {\n let colors = colorSortValue.split('_');\n\n if(productsFiltered.length > 0){\n let newProductsFiltered = []\n productsFiltered.forEach(product => {\n let newProduct = product\n if(product.declinations && product.declinations.length > 0) {\n let declinations = product.declinations.sort((a, b) => (a.bestRetailer.price !=0 ? a.bestRetailer.price : a.price) - (b.bestRetailer.price !=0 ? b.bestRetailer.price : b.price)).reverse();\n declinations.forEach(declination => {\n if (colors.includes(declination.color)) {\n newProduct.bestDeclinations = declination\n }\n })\n }\n newProductsFiltered.push(newProduct)\n })\n productsFiltered.bestDeclinations = newProductsFiltered\n }\n }\n }\n\n if (products && sizeSortType && sizeSortValue) {\n if (sizeSortType === \"size\") {\n if(productsFiltered.length > 0){\n let newProductsFiltered = []\n productsFiltered.forEach(product => {\n let newProduct = product\n if(product.declinations && product.declinations.length > 0) {\n let declinations = product.declinations.sort((a, b) => (a.bestRetailer.price !=0 ? a.bestRetailer.price : a.price) - (b.bestRetailer.price !=0 ? b.bestRetailer.price : b.price)).reverse();\n declinations.forEach(declination => {\n if (declination.analysedRetailers) {\n declination.analysedRetailers.forEach(retailer => {\n if (retailer.sizes && retailer.sizes.indexOf(sizeSortValue) > -1) {\n newProduct.bestDeclinations = declination\n }\n })\n }\n })\n }\n newProductsFiltered.push(newProduct)\n })\n productsFiltered.bestDeclinations = newProductsFiltered\n }\n }\n }\n\n if(products){\n productsFiltered = productsFiltered.sort((a, b) => {\n return a.order - b.order;\n });\n }\n\n if (products && filtersSortType && filtersSortValue) {\n if (filtersSortType === \"filters\") {\n let sortProducts = [...productsFiltered];\n if (filtersSortValue === \"Meilleures ventes\" || filtersSortValue === \"\") {\n productsFiltered = sortProducts.sort((a, b) => {\n return a.order - b.order;\n });\n }\n if (filtersSortValue === \"Prix décroissant\") {\n productsFiltered = sortProducts.sort((a, b) => {\n if (b.bestDeclinations.bestRetailer.price > 0 && a.bestDeclinations.bestRetailer.price > 0){\n return b.bestDeclinations.bestRetailer.price - a.bestDeclinations.bestRetailer.price;\n }\n });\n }\n if (filtersSortValue === \"Prix croissant\") {\n productsFiltered = sortProducts.sort((a, b) => {\n if (b.bestDeclinations.bestRetailer.price > 0 && a.bestDeclinations.bestRetailer.price > 0){\n return a.bestDeclinations.bestRetailer.price - b.bestDeclinations.bestRetailer.price;\n }\n });\n }\n }\n }\n }\n return productsFiltered;\n};\n\n// get individual element\nexport const getIndividualItemArray = array => {\n let individualItemArray = array.filter(function(v, i, self) {\n return i === self.indexOf(v);\n });\n return individualItemArray;\n};\n\n// get individual categories\nexport const getIndividualCategories = products => {\n let productCategories = [];\n products &&\n products.map(product => {\n return (\n product.categories &&\n product.categories.map(single => {\n return productCategories.push(single);\n })\n );\n });\n const individualProductCategories = getIndividualItemArray(productCategories);\n return individualProductCategories;\n};\n\n// get individual tags\nexport const getIndividualTags = products => {\n let productTags = [];\n products &&\n products.map(product => {\n return productTags.push(product.brand);\n });\n const individualProductTags = getIndividualItemArray(productTags);\n return individualProductTags;\n};\n\n// get individual tags\nexport const getIndividualGenders = products => {\n let productGenders = [];\n products &&\n products.map(product => {\n return productGenders.push(product.gender);\n });\n const individualProductGenders = getIndividualItemArray(productGenders);\n return individualProductGenders;\n};\n\n// get individual colors\nexport const getIndividualColors = products => {\n let productColors = [];\n products &&\n products.map(product => {\n return (\n product.colors &&\n product.colors.map(single => {\n return productColors.push(single);\n })\n );\n });\n const individualProductColors = getIndividualItemArray(productColors);\n return individualProductColors;\n};\n\n// get individual colors\nexport const getIndividualRetailers = products => {\n let productRetailers = [];\n products &&\n products.map(product => {\n return (\n product.retailers &&\n product.retailers.map(single => {\n return productRetailers.push(single);\n })\n );\n });\n const individualProductRetailers = getIndividualItemArray(productRetailers);\n return individualProductRetailers;\n};\n\n// get individual sizes\nexport const getProductsIndividualSizes = products => {\n let productSizes = [];\n products &&\n products.map(product => {\n return (\n product.sizes &&\n product.sizes.map(size => {\n if (size !== \"Votretaille\" && size !== \"questions les plus utiles\" && size !== \"questions les plus récentes\" && size !== \"questions les plus commentées\") {\n return productSizes.push(size);\n } else {\n return productSizes\n }\n })\n );\n });\n\n let uniqueSize = [...new Set(productSizes.sort())]\n const individualProductSizes = getIndividualItemArray(uniqueSize);\n return individualProductSizes;\n};\n\n// get product individual sizes\nexport const getIndividualSizes = product => {\n let productSizes = [];\n product.variation &&\n product.variation.map(singleVariation => {\n return (\n singleVariation.size &&\n singleVariation.size.map(singleSize => {\n return productSizes.push(singleSize.name);\n })\n );\n });\n const individualSizes = getIndividualItemArray(productSizes);\n return individualSizes;\n};\n\nexport const setActiveSort = e => {\n if (e.currentTarget.classList.contains('active')) {\n e.currentTarget.classList.remove(\"active\")\n } else {\n const filterButtons = document.querySelectorAll(\n \".sidebar-widget-list-left button, .sidebar-widget-tag button, .product-filter button\"\n );\n filterButtons.forEach(item => {\n item.classList.remove(\"active\");\n });\n e.currentTarget.classList.add(\"active\");\n }\n};\n\nexport const deleteActiveGenderSort = e => {\n e.currentTarget.classList.remove(\"active\")\n};\n\nexport const removeActiveGenderSort = () => {\n const filterButtons = document.querySelectorAll(\n \".sidebar-widget-tag-gender button\"\n );\n\n filterButtons.forEach(item => {\n item.classList.remove(\"active\");\n });\n};\n\n\nexport const removeActiveSizeSort = () => {\n const filterButtons = document.querySelectorAll(\n \".sidebar-widget-tag-size button\"\n );\n\n filterButtons.forEach(item => {\n item.classList.remove(\"active\");\n });\n};\n\nexport const removeActiveBrandsSort = () => {\n const filterButtons = document.querySelectorAll(\n \".sidebar-widget-tag-brand button\"\n );\n\n filterButtons.forEach(item => {\n item.classList.remove(\"active\");\n });\n};\n\nexport const removeActiveColorsSort = () => {\n const filterButtons = document.querySelectorAll(\n \".sidebar-widget-tag-color button\"\n );\n\n filterButtons.forEach(item => {\n item.classList.remove(\"active\");\n });\n};\n\nexport const removeActiveRetailersSort = () => {\n const filterButtons = document.querySelectorAll(\n \".sidebar-widget-tag-retailer button\"\n );\n\n filterButtons.forEach(item => {\n item.classList.remove(\"active\");\n });\n};\n\nexport const setActiveGenderSort = e => {\n if (e.currentTarget.classList.contains('active')) {\n e.currentTarget.classList.remove(\"active\")\n } else {\n const filterButtons = document.querySelectorAll(\n \".sidebar-widget-tag-gender button\"\n );\n\n filterButtons.forEach(item => {\n item.classList.remove(\"active\");\n });\n e.currentTarget.classList.add(\"active\");\n }\n};\n\nexport const setActiveCategoriesSort = e => {\n if (e.currentTarget.classList.contains('active')) {\n e.currentTarget.classList.remove(\"active\")\n } else {\n const filterButtons = document.querySelectorAll(\n \".sidebar-widget-list-left-category button\"\n );\n filterButtons.forEach(item => {\n item.classList.remove(\"active\");\n });\n e.currentTarget.classList.add(\"active\");\n }\n};\n\nexport const setActiveColorsSort = e => {\n if (e.currentTarget.classList.contains('active')) {\n e.currentTarget.classList.remove(\"active\")\n } else {\n const filterButtons = document.querySelectorAll(\n \".sidebar-widget-list-left-color button\"\n );\n filterButtons.forEach(item => {\n item.classList.remove(\"active\");\n });\n e.currentTarget.classList.add(\"active\");\n }\n};\n\nexport const setActiveBrandsSort = e => {\n if (e.currentTarget.classList.contains('active')) {\n e.currentTarget.classList.remove(\"active\")\n } else {\n const filterButtons = document.querySelectorAll(\n \".sidebar-widget-tag-brand button\"\n );\n filterButtons.forEach(item => {\n item.classList.remove(\"active\");\n });\n e.currentTarget.classList.add(\"active\");\n }\n};\n\nexport const setActiveSizesSort = e => {\n if (e.currentTarget.classList.contains('active')) {\n e.currentTarget.classList.remove(\"active\")\n } else {\n const filterButtons = document.querySelectorAll(\n \".sidebar-widget-tag-size button\"\n );\n filterButtons.forEach(item => {\n item.classList.remove(\"active\");\n });\n e.currentTarget.classList.add(\"active\");\n }\n};\n\nexport const setActiveLayout = e => {\n const gridSwitchBtn = document.querySelectorAll(\".shop-tab button\");\n gridSwitchBtn.forEach(item => {\n item.classList.remove(\"active\");\n });\n e.currentTarget.classList.add(\"active\");\n};\n\nexport const toggleShopTopFilter = e => {\n const shopTopFilterWrapper = document.querySelector(\n \"#product-filter-wrapper\"\n );\n shopTopFilterWrapper.classList.toggle(\"active\");\n if (shopTopFilterWrapper.style.height) {\n shopTopFilterWrapper.style.height = null;\n } else {\n shopTopFilterWrapper.style.height =\n shopTopFilterWrapper.scrollHeight + \"px\";\n }\n e.currentTarget.classList.toggle(\"active\");\n};\n\nexport function slugify(string) {\n const a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;'\n const b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------'\n const p = new RegExp(a.split('').join('|'), 'g')\n\n return string.toString().toLowerCase()\n .replace(/\\s+/g, '-') // Replace spaces with -\n .replace(p, c => b.charAt(a.indexOf(c))) // Replace special characters\n .replace(/&/g, '-and-') // Replace & with 'and'\n //eslint-disable-next-line\n .replace(/[^\\w\\-]+/g, '') // Remove all non-word characters\n //eslint-disable-next-line\n .replace(/\\-\\-+/g, '-') // Replace multiple - with single -\n .replace(/^-+/, '') // Trim - from start of text\n .replace(/-+$/, '') // Trim - from end of text\n}\n\n\nexport function getRGBColorFromName(colorName, colors){\n if (colors && colors.length > 0) {\n return colors.filter(color => { return color.name === colorName})[0].hexaColor\n }\n}\n\nexport function getHexaColorFromName(colorName, colors){\n if (colors && colors.length > 0) {\n let hexaColor = colors.filter(color => { return color.name === colorName})[0].hexaColor\n return rgbToHex(hexaColor.r, hexaColor.g, hexaColor.b)\n }\n}\n\nfunction rgbToHex(r, g, b) {\n return \"#\" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);\n}\n\nexport function getHighPrice(products) {\n let sortedProducts = products.sort((a, b) => {\n return b.calculatedPrice - a.calculatedPrice;\n });\n\n if (sortedProducts.length > 0) {\n return sortedProducts[0].calculatedPrice\n } else {\n return 1\n }\n}\n\nexport function getLowPrice(products) {\n let sortedProducts = products.sort((a, b) => {\n return a.calculatedPrice - b.calculatedPrice;\n });\n\n if (sortedProducts.length > 0) {\n return sortedProducts[0].calculatedPrice\n } else {\n return 1\n }\n}\n\n// get individual sizes\nexport const newGetProductsIndividualSizes = (pathname, sizes) => {\n let productSizes = [];\n\n sizes.map(size => {\n if (size !== \"questions les plus utiles\"\n && size !== \"questions les plus récentes\"\n && size !== \"questions les plus commentées\"\n && size !== \"\" && newCheckExistingSize(pathname, size)) {\n return productSizes.push(size);\n } else {\n return productSizes\n }\n })\n\n let uniqueSize = [...new Set(productSizes.sort())]\n const individualProductSizes = getIndividualItemArray(uniqueSize);\n return individualProductSizes;\n\n};\n\nexport const setActiveFiltersSort = e => {\n if (e.currentTarget.classList.contains('active')) {\n e.currentTarget.classList.remove(\"active\")\n } else {\n const filterButtons = document.querySelectorAll(\n \".sidebar-widget-list-left-filter button\"\n );\n filterButtons.forEach(item => {\n item.classList.remove(\"active\");\n });\n e.currentTarget.classList.add(\"active\");\n }\n};"],"sourceRoot":""}