{"version":3,"sources":["core/scripts/Analytics/index.js","core/scripts/Config/index.js","core/scripts/Api/index.jsx","core/redux/endpoints.js","core/redux/actions.js","core/redux/sagas/userSaga.js","core/redux/sagas/rootSaga.js","core/redux/userReducer.js","core/redux/store.js","core/styles/mediaqueries.js","assets/icons/Share.svg","avo/avo.js","core/components/ShareButton/index.jsx","core/components/ShareButton/style.js","core/styles/variables.js","core/scripts/PromotionAnalytics/index.js","core/components/AppointmentButton/index.jsx","core/components/AppointmentButton/style.js","core/components/User/style.js","core/components/User/index.jsx","core/components/LoaderCircular/style.js","assets/icons/arrow.jsx","core/components/Customer/style.js","core/components/Customer/index.jsx","core/utils/getConvertedStoreHours.js","core/components/Store/index.jsx","core/components/Store/style.js","core/components/Modal/style.js","core/components/Modal/index.jsx","core/components/Loader/style.js","core/components/Loader/index.jsx","assets/icons/Logo.svg","core/components/Header/index.jsx","core/components/Header/style.js","core/utils/getBookingUrl.js","core/utils/constants.js","core/components/EmployeeImage/index.jsx","core/components/EmployeeImage/style.js","core/components/AppContainer/style.js","core/components/AppContainer/index.jsx","core/styles/global.js","core/styles/fonts.js","App.jsx","i18n.js","index.jsx","assets/icons/CraftsmanshipWithFlair.png","assets/icons/ExpertKnowledge.png","assets/icons/ExtremelyPatient.png","assets/icons/GreatRetailExperience.png","assets/icons/GreatTailoringService.png","assets/icons/HonestAuthenticAdvice.png","assets/fonts/gt-america-standard-light.woff","assets/fonts/gt-america-standard-light.woff2","assets/fonts/gt-america-standard-light-italic.woff","assets/fonts/gt-america-standard-light-italic.woff2","assets/fonts/gt-america-standard-regular.woff","assets/fonts/gt-america-standard-regular.woff2","assets/fonts/gt-america-standard-regular-italic.woff","assets/fonts/gt-america-standard-regular-italic.woff2","assets/fonts/gt-america-standard-medium.woff","assets/fonts/gt-america-standard-medium.woff2","assets/fonts/gt-america-standard-medium-italic.woff","assets/fonts/gt-america-standard-medium-italic.woff2"],"names":["type","label","window","dataLayer","push","event","eventCategory","eventAction","eventLabel","location","hostname","API_URL","BOOKING_URL","EMPLOYEE_API_URL","GROUP_APPOINTMENT_ID","AVO_ENV","getConfigVariables","REDIRECT_URL","REDIRECT_URL_404","UTM_SHARE_EMPLOYEE","url","options","resolve","reject","baseUrl","Config","params","Object","assign","headers","axios","then","response","catch","err","getUserByID","a","id","Api","method","respones","data","getStoreById","storeId","getTestemonialsByOffset","offset","employeeId","saveUser","user","payload","setState","userSaga","userSagaFlow","takeLatest","URLSearchParams","search","get","action","call","put","sfscDefaultLocationStoreId","store","sfscEmployeeId","testemonials","isLoading","rootSaga","fork","initialState","undefined","isModalOpen","setScroll","modalType","localization","hours","isTopToastDisplayed","isBotToastDisplayed","displayTopShareBtn","sagaMiddleware","createSagaMiddleware","rootReducer","combineReducers","userReducer","state","key","keys","enhancer","composeEnhancers","compose","applyMiddleware","createStore","run","breakpoints","mq","map","bp","mqm","dimensions","width","height","_extends","target","i","arguments","length","source","prototype","hasOwnProperty","apply","this","_objectWithoutProperties","excluded","sourceKeys","indexOf","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","createElement","fillRule","clipRule","d","fill","_ref","svgRef","title","props","viewBox","ref","ForwardRef","forwardRef","support","self","Symbol","Blob","e","viewClasses","isArrayBufferView","ArrayBuffer","isView","obj","toString","Headers","append","name","value","normalizeName","normalizeValue","oldValue","has","set","forEach","callback","thisArg","items","iteratorFor","values","entries","iterator","methods","Request","clone","body","_bodyInit","Body","Response","status","statusText","error","redirectStatuses","redirect","RangeError","DOMException","message","Error","stack","create","constructor","fetch","polyfill","String","test","TypeError","toLowerCase","next","shift","done","Array","isArray","header","getOwnPropertyNames","consumed","bodyUsed","Promise","fileReaderReady","reader","onload","result","onerror","readBlobAsArrayBuffer","blob","FileReader","promise","readAsArrayBuffer","bufferClone","buf","slice","view","Uint8Array","byteLength","buffer","_initBody","_bodyText","isPrototypeOf","_bodyBlob","FormData","_bodyFormData","DataView","_bodyArrayBuffer","rejected","arrayBuffer","text","readAsText","readBlobAsText","chars","fromCharCode","join","readArrayBufferAsText","formData","decode","json","JSON","parse","input","credentials","mode","signal","upcased","toUpperCase","normalizeMethod","referrer","form","trim","split","bytes","replace","decodeURIComponent","parseHeaders","rawHeaders","line","parts","bodyInit","ok","init","request","aborted","xhr","XMLHttpRequest","abortXhr","abort","getAllResponseHeaders","responseURL","responseText","ontimeout","onabort","open","withCredentials","responseType","setRequestHeader","addEventListener","onreadystatechange","readyState","removeEventListener","send","array_difference","AvoAssert","InternalAvoLogger","__AVO_DEV__","__AVO_NOOP__","__AVO_LOGGER__","__AVO_ENV__","__REPORT_FAILURE_AS__","__STRICT__","__WEB_DEBUGGER__","__INSPECTOR__","arg","defineProperty","varArgs","to","index","nextSource","nextKey","writable","configurable","hasDontEnumBug","dontEnums","dontEnumsLength","prop","max","min","member","fromIndex","that","Len","Math","a1","a2","assertObject","propertyId","propName","tag","stringify","actualType","assertString","str","assertInt","int","round","assertLong","long","assertFloat","float","assertBool","bool","assertMax","assertMin","assertList","assertNoAdditionalProperties","eventName","spec","additionalKeys","additionalProperties","assertNoAdditionalUserProperties","_avo_invoke","_avo_invoke_meta","WebDebuggerAssertions","hasKey","assertKey","assert","assertKeys","arrayOfAssertions","every","assertionForKey","Number","isInteger","WebDebuggerPosition","position","BOTTOM_RIGHT","BOTTOM_LEFT","TOP_RIGHT","TOP_LEFT","BottomRight","parameters","bottom","right","BottomLeft","left","TopRight","top","TopLeft","logEventSent","eventProperties","userProperties","groupProperties","logDebug","console","log","warn","logWarn","logError","_avo_debugger_log","_avo_sampling_rate","_avo_invoke_payload","random","res","sa","env","eventId","hash","messages","origin","ac","br","en","ev","ha","sc","se","Date","toISOString","so","va","me","or","ty","_avo_debugger_events_during_boot","_avo_debugger_ready","iframe","document","getElementById","type_","style","schemaId","href","events","contentWindow","postMessage","timestamp","now","Segment","assertStoreId","label_","concat","assertEmployeeName","employeeName","assertEmployeeId","setAvoLogger","avoLogger","Language","EN","ES","FR","DE","IT","SV","PL","ZH","LoggedIn","TRUE","FALSE","Country","US","CA","NL","GB","BE","SE","CH","FI","DK","AT","NO","CZ","HR","HU","EE","LV","LT","GR","IE","SG","IN","AU","CN","BN","JP","HK","MO","MV","MY","IR","LY","PT","RO","CY","SK","BG","SI","AE","GH","GI","GW","IS","JE","LI","MC","MT","QA","DO","GP","MQ","PR","TT","PageType","HOME","PRODUCT","CATEGORY","JOURNAL","STORE","LOOKBUILDER","LOGIN","WISHLIST","ACCOUNT","CHECKOUT","CART","SUPPORT","CUSTOMMADE","GIFTCARD","ERROR","Currency","EUR","USD","CNY","AUD","BGN","CAD","CZK","DKK","HKD","HUF","ISK","INR","JPY","CHF","MOP","MYR","NOK","QAR","RON","SGD","SEK","AED","GBP","EventLocation","SHOPMINUSTHEMINUSLOOK_SLIDER","WISHLIST_PANEL","MINICART_PANEL","SHOPMINUSTHEMINUSLOOK_PANEL","SIZEMINUSPASSPORT_PANEL","PDP","PRODUCTS_MWTW_1","PRODUCTS_MWTW_2","PRODUCTS_MWTW_3","PRODUCTS_MWTW_4","PRODUCTS_MWTW_5","SHARE_MINUSBUTTON_MINUSTOP","SHARE_MINUSBUTTON_MINUSBOTTOM","pageLoaded","properties","assertTitle","path","assertPath","m","language","identifier","variantId","loggedIn","variation","productsCart","localeVisited","amount","country","quantity","pageType","currency","locationId","userId","_avoFunctionTrackSchemaFromEvent","location_id","user_id","logged_in","page_type","locale_visited","products_cart","variant_id","page","customDestinationPageName_","logEvent","bookingToolOpened","store_id","employee_id","employee_name","shareButtonClicked","eventLocation","assertEventLocation","event_location","initAvo","systemProperties","destinationOptions","SegmentDestination","noop","strict","reportFailureAs","webDebugger","inspector","webDebuggerOptions","positionParams","appendChild","src","make","avoInspectorApiKey","StyledShareButton","styled","button","padding","color","cursor","border","borderRadius","backgroundColor","transition","zIndex","borderColor","svg","StyledShareButtonContainer","maxWidth","display","alignItems","margin","minWidth","StlyedEmployeeRoundImage","img","StyledShareButtonText","div","textAlign","fontSize","lineHeight","getShareUrl","city","pathname","ShareButton","labelText","isDefault","dispatch","useDispatch","t","useTranslation","useInView","threshold","inView","useSelector","userState","useEffect","firstName","imageRoundUrl","onClick","shareUrl","shareText","profileUrl","navigator","canShare","share","_ex","toastName","clipboard","setTimeout","Analytics","avo","storeCodeC","lastName","className","data-testid","alt","StyledAppointmentButton","darkStyle","disabledStyle","isBottom","AppointmentButton","openModal","PromotionAnalytics","disabled","defaultProps","StyledUserContainer","flexWrap","justifyContent","StyledEmployeeName","h1","StyledStoreName","p","StyledCopyToast","StyledAppointmentButtonContainer","User","imageUrl","storeState","pulsate","keyframes","ArrowIcon","xmlns","stroke","strokeWidth","NextArrow","innerWidth","PrevArrow","transform","StyledCustomerContainer","StyledCustomerRatingContainer","paddingBottom","StyledCustomerRatingNumber","fontWeight","StyledCustomerRatingLabel","StyledRatingContainer","StyledRatingDivider","borderLeft","marginTop","StyledYearsContainer","StyledCustomerComplimentsTitle","h3","StyledCustomerComplimentsDivider","borderTop","StyledComplimentsContainer","overflowY","StyledComplimentsSliderContainer","StyledAvatar","StyledComplimentContainer","StyledComplimentNumber","paddingTop","StyledComplimentTag","marginLeft","StyledPinterestTitle","borderBottom","span","paddingRight","singleTag","whiteSpace","marginRight","Customer","customerNotesTitleRef","useRef","reducerState","customerRating","yearsAtSuitSupply","compliments","useState","isLoadingTestemonials","setOffset","scriptLoadedRef","current","script","async","dataset","pinBuild","doBuild","scrollIntoView","block","behavior","complimentsSettings","compliment","getComplimentIcon","formatComplimentTag","pinterestUrl","data-pin-do","data-pin-board-width","data-pin-scale-height","data-pin-scale-width","iconName","complimentIcon","iconsArray","icon","charAt","CraftsmanshipWithFlair","ExpertKnowledge","ExtremelyPatient","GreatRetailExperience","GreatTailoringService","HonestAuthenticAdvice","dots","speed","infinite","variableWidth","slidesToShow","slidesToScroll","nextArrow","prevArrow","days","StyledStoreInformationContainer","StyledStoreHeader","h2","StyledStoreImageContainer","StyledStoreImage","objectFit","StyledStoreAddressContainer","StyledStoreAddress","StyledHoursContainer","ul","listStyleType","StyledHoursRow","li","isBold","StyledDaysField","flex","textTransform","StyledHoursField","StyledButtonContainer","marginBottom","StyledClosedHours","Store","hoursRef","cityC","countryC","address1C","zipC","headerImageEmailDesktopC","storeHours","ifKansas","day","StyledModal","motion","StyledOverlay","modalAnimation","y","close","modalAnimationDesktop","x","overlayAnimation","opacity","StyledCloseButton","modalRoot","Modal","modalUrl","isOpen","onClose","elRef","removeChild","createPortal","initial","animate","exit","ease","variants","loaderLineMove","animatedLoaderLineStyle","css","StyledLoaderLine","isBlack","StyledLoader","StyledLoaderStage","overflow","Loader","StyledHeader","flexBasis","StyledLink","Header","queryString","getBookingUrl","analyticsParams","StyledImage","objectPosition","EmployeeImage","formatImgSrcSet","formatSrc","media","srcSet","sizes","vh","innerHeight","documentElement","setProperty","StyledAppContainer","overflowX","StyledImageContainer","StyledUserStoreContainer","AppContainer","i18n","useParams","employeeID","changeLanguage","closeModal","scrollToOpeningHours","idx","createGlobalStyle","GTAmericaStandardLightWoff2","GTAmericaStandardLightWoff","GTAmericaStandardLighItalictWoff2","GTAmericaStandardLighItalictWoff","GTAmericaStandardRegulartWoff2","GTAmericaStandardRegulartWoff","GTAmericaStandardRegularItalicWoff2","GTAmericaStandardRegularItalicWoff","GTAmericaStandardMediumWoff2","GTAmericaStandardMediumWoff","GTAmericaStandardMediumItalicWoff2","GTAmericaStandardMediumItalicWoff","App","component","render","use","Backend","loadPath","initReactI18next","lng","fallbackLng","interpolation","escapeValue","react","useSuspense","ReactDOM","module","exports"],"mappings":"qPAAe,cAAsB,IAAnBA,EAAkB,EAAlBA,KAAMC,EAAY,EAAZA,MACpBC,OAAOC,UAAUC,KAAK,CAClBC,MAAO,UACPC,cAAe,0BACfC,YAAaP,EACbQ,WAAYP,K,mBCLO,WACvB,OAAQC,OAAOO,SAASC,UACpB,IAAK,wBACD,MAAO,CACHC,QAAQ,yCACRC,YAAa,sCACbC,iBACI,wDACJC,qBAAsB,uBACtBC,QAAS,QAEjB,IAAK,4BACL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,CAAEwyB,SAAU,0CAElCF,IAAIG,MACJjnB,KAAK,CACFknB,IAAK,QACLC,YAAa,QACbC,cAAe,CACXC,aAAa,GAEjBC,MAAO,CACHC,aAAa,KAIVhC,GAAf,E,OCXAiC,IAASX,OACL,kBAAC,IAAD,CAAU5yB,MAAOA,GACb,kBAAC,GAAD,OAEJgV,SAASC,eAAe,U,mBCZ5Bue,EAAOC,QAAU,IAA0B,oD,mBCA3CD,EAAOC,QAAU,IAA0B,6C,mBCA3CD,EAAOC,QAAU,IAA0B,8C,mBCA3CD,EAAOC,QAAU,IAA0B,mD,mBCA3CD,EAAOC,QAAU,IAA0B,mD,mBCA3CD,EAAOC,QAAU,IAA0B,mD,mBCA3CD,EAAOC,QAAU,IAA0B,wD,mBCA3CD,EAAOC,QAAU,IAA0B,yD,mBCA3CD,EAAOC,QAAU,IAA0B,+D,mBCA3CD,EAAOC,QAAU,IAA0B,gE,mBCA3CD,EAAOC,QAAU,IAA0B,0D,mBCA3CD,EAAOC,QAAU,IAA0B,2D,mBCA3CD,EAAOC,QAAU,IAA0B,iE,mBCA3CD,EAAOC,QAAU,IAA0B,kE,mBCA3CD,EAAOC,QAAU,IAA0B,yD,mBCA3CD,EAAOC,QAAU,IAA0B,0D,mBCA3CD,EAAOC,QAAU,IAA0B,gE,mBCA3CD,EAAOC,QAAU,IAA0B,iE","file":"static/js/main.e90e4481.chunk.js","sourcesContent":["export default ({ type, label }) => {\r\n window.dataLayer.push({\r\n event: 'GAevent',\r\n eventCategory: 'Booking_Interactions_CM',\r\n eventAction: type,\r\n eventLabel: label,\r\n });\r\n};\r\n\r\n","const getConfigVariables = () => {\r\n switch (window.location.hostname) {\r\n case 'expert.suitsupply.com':\r\n return {\r\n API_URL: `https://appointment.suitsupply.com/api`,\r\n BOOKING_URL: 'https://booking-tool-jet.vercel.app',\r\n EMPLOYEE_API_URL:\r\n 'https://employeeapi-prd-api-web.azurewebsites.net/api',\r\n GROUP_APPOINTMENT_ID: 'T1EC1Exxr1BcIaEq0njq',\r\n AVO_ENV: 'Prod',\r\n };\r\n case 'acc.expert.suitsupply.com':\r\n case 'expert-acc-web.azurewebsites.net':\r\n return {\r\n API_URL: 'https://acc.appointment.suitsupply.com/api',\r\n BOOKING_URL:\r\n 'https://monorepo-booking-tool-acceptance.vercel.app',\r\n EMPLOYEE_API_URL:\r\n 'https://employeeapi-tst-api-web.azurewebsites.net/api',\r\n GROUP_APPOINTMENT_ID: '6J0vJzMo9egISXpngExt',\r\n AVO_ENV: 'Dev',\r\n };\r\n case 'tst.expert.suitsupply.com':\r\n case 'expert-tst-web.azurewebsites.net':\r\n return {\r\n API_URL: 'https://tst.appointment.suitsupply.com/api',\r\n BOOKING_URL: 'https://monorepo-booking-tool-testing.vercel.app',\r\n EMPLOYEE_API_URL:\r\n 'https://employeeapi-tst-api-web.azurewebsites.net/api',\r\n GROUP_APPOINTMENT_ID: '6J0vJzMo9egISXpngExt',\r\n AVO_ENV: 'Dev',\r\n };\r\n default:\r\n return {\r\n API_URL: `https://tst.appointment.suitsupply.com/api`,\r\n BOOKING_URL: 'http://localhost:3333',\r\n EMPLOYEE_API_URL:\r\n 'https://employeeapi-tst-api-web.azurewebsites.net/api',\r\n GROUP_APPOINTMENT_ID: '6J0vJzMo9egISXpngExt',\r\n AVO_ENV: 'Dev',\r\n };\r\n }\r\n};\r\nlet {\r\n API_URL,\r\n BOOKING_URL,\r\n GROUP_APPOINTMENT_ID,\r\n EMPLOYEE_API_URL,\r\n AVO_ENV,\r\n} = getConfigVariables();\r\n\r\n// redirect links\r\nconst REDIRECT_URL = 'https://suitsupply.com';\r\nconst REDIRECT_URL_404 = 'https://suitsupply.com/404';\r\n\r\n// share employeeName and Id for utm\r\nconst UTM_SHARE_EMPLOYEE = `?utm_source=share_style_advisor&utm_medium=style_advisor_button&utm_campaign=style_advisor_`;\r\n\r\nexport default {\r\n API_URL,\r\n BOOKING_URL,\r\n REDIRECT_URL,\r\n REDIRECT_URL_404,\r\n UTM_SHARE_EMPLOYEE,\r\n GROUP_APPOINTMENT_ID,\r\n EMPLOYEE_API_URL,\r\n AVO_ENV,\r\n};\r\n","import axios from 'axios';\r\nimport Config from '../Config';\r\n\r\nexport default (\r\n url = null,\r\n options = {},\r\n resolve = () => {},\r\n reject = () => {},\r\n baseUrl= Config.API_URL\r\n) => {\r\n const params = Object.assign(options, {\r\n url: `${baseUrl}${url}`,\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n },\r\n });\r\n\r\n return axios(params)\r\n .then((response) => {\r\n return response;\r\n })\r\n .then((response) => resolve(response))\r\n .catch((err) => {\r\n return reject(err);\r\n });\r\n};\r\n","import { Api, Config } from 'core/scripts';\r\n\r\nexport const getUserByID = async ({ id }) => {\r\n return Api(\r\n `/v2/employees?employeeIds=${id}`,\r\n {\r\n method: 'GET',\r\n },\r\n (respones) => {\r\n return respones.data[0];\r\n },\r\n () => {},\r\n Config.EMPLOYEE_API_URL\r\n );\r\n};\r\n\r\nexport const getStoreById = async ({ storeId }) => {\r\n return Api(\r\n `/stores/storecode/${storeId}`,\r\n {\r\n method: 'GET',\r\n },\r\n (respones) => {\r\n return respones.data;\r\n },\r\n () => {}\r\n );\r\n};\r\n\r\nexport const getStoreHoursById = async ({ storeId }) => {\r\n return Api(\r\n `/stores/hours/${storeId}`,\r\n {\r\n method: 'GET',\r\n },\r\n (respones) => {\r\n return respones.data;\r\n },\r\n () => {}\r\n );\r\n};\r\n\r\nexport const getTestemonialsByOffset = async ({ offset, employeeId }) => {\r\n return Api(\r\n `/v2/employee/${employeeId}/testemonials/offset/${offset}`,\r\n {\r\n method: 'GET',\r\n },\r\n (respones) => {\r\n return respones.data;\r\n },\r\n () => {},\r\n Config.EMPLOYEE_API_URL\r\n );\r\n};\r\n","export const SAVE_USER = 'SAVE_USER';\r\nexport const GET_USER = 'GET_USER';\r\nexport const SET_LOADING = 'SET_LOADING';\r\nexport const SET_TOAST = 'SET_TOAST';\r\nexport const SET_STATE = 'SET_STATE';\r\nexport const SAVE_STORE = 'SAVE_STORE';\r\n\r\nexport const saveUser = (user) => ({\r\n type: SAVE_USER,\r\n payload: user,\r\n});\r\n\r\nexport const getUser = (id) => ({\r\n type: GET_USER,\r\n payload: id,\r\n});\r\n\r\nexport const setState = (payload) => ({\r\n type: SET_STATE,\r\n payload,\r\n});\r\n\r\nexport const saveStore = (storeId) => ({\r\n type: SAVE_STORE,\r\n payload: storeId,\r\n});\r\n","import { call, takeLatest, put } from 'redux-saga/effects';\r\n\r\nimport {\r\n getUserByID,\r\n getStoreById,\r\n getStoreHoursById,\r\n getTestemonialsByOffset,\r\n} from '../endpoints.js';\r\nimport { saveUser, saveStore, GET_USER, setState } from '../actions';\r\n\r\nexport function* userSaga() {\r\n yield takeLatest(GET_USER, userSagaFlow);\r\n}\r\n\r\nconst query = new URLSearchParams(window.location.search);\r\nconst storeId = query.get('storeId')\r\n\r\n\r\nfunction* userSagaFlow(action) {\r\n const user = yield call(getUserByID, {\r\n id: action.payload,\r\n });\r\n yield put(saveUser(user));\r\n\r\n if (user) {\r\n \r\n\r\n const store = yield call(getStoreById, {\r\n storeId: `${storeId? storeId : user.sfscDefaultLocationStoreId}`,\r\n });\r\n // Api call only for hours from store\r\n // const hours = yield call(getStoreHoursById, {\r\n // storeId: `${user.sfscDefaultLocationStoreId}`,\r\n // });\r\n const testemonials = yield call(getTestemonialsByOffset, {\r\n offset: `0`,\r\n employeeId:user.sfscEmployeeId\r\n });\r\n yield put(saveStore(store));\r\n // Data from store hours Api call placed in state\r\n // yield put(setState({ hours: hours }));\r\n yield put(setState({ testemonials: testemonials }));\r\n }\r\n yield put(setState({ isLoading: false }));\r\n}\r\n","import { fork } from 'redux-saga/effects';\r\nimport { userSaga } from './userSaga';\r\n\r\nexport function* rootSaga() {\r\n yield fork(userSaga);\r\n}\r\n","import { GET_USER, SAVE_USER, SAVE_STORE, SET_STATE } from './actions';\r\n\r\nconst initialState = {\r\n user: undefined,\r\n isLoading: true,\r\n isModalOpen: false,\r\n setScroll: false,\r\n modalType: 'In-store',\r\n localization: 'en-us',\r\n store: undefined,\r\n hours: undefined,\r\n isTopToastDisplayed: false,\r\n isBotToastDisplayed: false,\r\n displayTopShareBtn: true,\r\n testemonials: [],\r\n};\r\n\r\nexport const userReducer = (state = initialState, action) => {\r\n switch (action.type) {\r\n case GET_USER: {\r\n return state;\r\n }\r\n case SAVE_USER: {\r\n return { ...state, user: action.payload };\r\n }\r\n case SAVE_STORE: {\r\n return { ...state, store: action.payload };\r\n }\r\n case SET_STATE: {\r\n const key =\r\n Object.keys(action.payload) && Object.keys(action.payload)[0];\r\n return { ...state, [key]: action.payload[key] };\r\n }\r\n default:\r\n return state;\r\n }\r\n};\r\n","import { compose, createStore, applyMiddleware, combineReducers } from 'redux';\r\nimport createSagaMiddleware from 'redux-saga';\r\n\r\nimport { rootSaga } from './sagas/rootSaga';\r\nimport { userReducer } from './userReducer';\r\n\r\nconst sagaMiddleware = createSagaMiddleware();\r\n\r\nconst rootReducer = combineReducers({\r\n userReducer,\r\n});\r\n\r\nconst composeEnhancers =\r\n process.env.NODE_ENV === 'development'\r\n ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose\r\n : compose;\r\n\r\nconst enhancer = composeEnhancers(\r\n applyMiddleware(sagaMiddleware),\r\n);\r\n\r\nexport const store = createStore(rootReducer, enhancer);\r\n\r\nsagaMiddleware.run(rootSaga);\r\n","export const breakpoints = [390, 768, 1024, 1440, 1920];\r\nexport const mq = breakpoints.map((bp) => `@media (min-width: ${bp}px)`);\r\nexport const mqm = breakpoints.map((bp) => `@media (max-width: ${bp}px)`);\r\n\r\nexport const dimensions = [\r\n [\r\n { width: 780, height: 832 },\r\n { width: 780, height: 832 },\r\n { width: 1170, height: 1248 },\r\n ],\r\n [\r\n { width: 1152, height: 750 },\r\n { width: 1552, height: 750 },\r\n { width: 1536, height: 1000 },\r\n ],\r\n [\r\n { width: 1024, height: 768 },\r\n { width: 1536, height: 1002 },\r\n { width: 2048, height: 1336 },\r\n ],\r\n [\r\n { width: 1080, height: 1266 },\r\n { width: 1080, height: 1266 },\r\n { width: 1440, height: 1688 },\r\n ],\r\n [\r\n { width: 1440, height: 1536 },\r\n { width: 1440, height: 1536 },\r\n { width: 1920, height: 2048 },\r\n ],\r\n];\r\n","function _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\nimport React from \"react\";\n\nvar _ref2 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M7.46596 2.34484V8.58344C7.46596 8.94245 7.17699 9.23349 6.81493 9.23349C6.45538 9.23349 6.16391 8.94216 6.16391 8.58344V2.34273L5.4286 3.07804C5.17671 3.32994 4.76817 3.32981 4.51216 3.0738C4.25792 2.81956 4.25942 2.40585 4.50791 2.15735L6.35778 0.307487C6.48303 0.182235 6.64701 0.119295 6.81171 0.119141L6.81668 0.121084C6.98202 0.121437 7.14642 0.18393 7.26998 0.307487L9.11984 2.15735C9.37174 2.40925 9.37161 2.81778 9.1156 3.0738C8.86136 3.32804 8.44765 3.32654 8.19916 3.07804L7.46596 2.34484ZM1.60674 12.1631H12.0231V7.60293C12.0231 7.24503 12.3121 6.9549 12.6742 6.9549C13.0337 6.9549 13.3252 7.24728 13.3252 7.60293V12.8171C13.3252 12.9959 13.2531 13.1578 13.1357 13.2751C13.0166 13.3927 12.8545 13.4651 12.675 13.4651H0.95483C0.775794 13.4651 0.613659 13.3933 0.496084 13.2764C0.377437 13.1567 0.304688 12.9948 0.304688 12.8171V7.60293C0.304688 7.24503 0.593654 6.9549 0.955712 6.9549C1.31526 6.9549 1.60674 7.24728 1.60674 7.60293V12.1631Z\",\n fill: \"#2D2E2C\"\n});\n\nvar SvgShare = function SvgShare(_ref) {\n var svgRef = _ref.svgRef,\n title = _ref.title,\n props = _objectWithoutProperties(_ref, [\"svgRef\", \"title\"]);\n\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 14,\n height: 14,\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n ref: svgRef\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", null, title) : null, _ref2);\n};\n\nvar ForwardRef = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(SvgShare, _extends({\n svgRef: ref\n }, props));\n});\nexport default __webpack_public_path__ + \"static/media/Share.4a022063.svg\";\nexport { ForwardRef as ReactComponent };","// Generated by Avo VERSION 139.1.0. You should never have to make changes to this file.\r\n// If you find yourself in the situation where you have to edit the file please contact us at hi@avo.app.\r\n// If you encounter a git conflict in this file run `avo pull` and it will be resolved automatically.\r\n/* eslint-disable */\r\n\r\n// fetch() polyfill\r\n(function () {\r\n if (typeof window === 'undefined') {\r\n return;\r\n }\r\n var support = {\r\n searchParams: 'URLSearchParams' in self,\r\n iterable: 'Symbol' in self && 'iterator' in Symbol,\r\n blob:\r\n 'FileReader' in self &&\r\n 'Blob' in self &&\r\n (function () {\r\n try {\r\n new Blob();\r\n return true;\r\n } catch (e) {\r\n return false;\r\n }\r\n })(),\r\n formData: 'FormData' in self,\r\n arrayBuffer: 'ArrayBuffer' in self,\r\n };\r\n\r\n function isDataView(obj) {\r\n return obj && DataView.prototype.isPrototypeOf(obj);\r\n }\r\n\r\n if (support.arrayBuffer) {\r\n var viewClasses = [\r\n '[object Int8Array]',\r\n '[object Uint8Array]',\r\n '[object Uint8ClampedArray]',\r\n '[object Int16Array]',\r\n '[object Uint16Array]',\r\n '[object Int32Array]',\r\n '[object Uint32Array]',\r\n '[object Float32Array]',\r\n '[object Float64Array]',\r\n ];\r\n\r\n var isArrayBufferView =\r\n ArrayBuffer.isView ||\r\n function (obj) {\r\n return (\r\n obj &&\r\n viewClasses.indexOf(Object.prototype.toString.call(obj)) >\r\n -1\r\n );\r\n };\r\n }\r\n\r\n function normalizeName(name) {\r\n if (typeof name !== 'string') {\r\n name = String(name);\r\n }\r\n if (/[^a-z0-9\\-#$%&'*+.^_`|~]/i.test(name)) {\r\n throw new TypeError('Invalid character in header field name');\r\n }\r\n return name.toLowerCase();\r\n }\r\n\r\n function normalizeValue(value) {\r\n if (typeof value !== 'string') {\r\n value = String(value);\r\n }\r\n return value;\r\n }\r\n\r\n // Build a destructive iterator for the value list\r\n function iteratorFor(items) {\r\n var iterator = {\r\n next: function () {\r\n var value = items.shift();\r\n return { done: value === undefined, value: value };\r\n },\r\n };\r\n\r\n if (support.iterable) {\r\n iterator[Symbol.iterator] = function () {\r\n return iterator;\r\n };\r\n }\r\n\r\n return iterator;\r\n }\r\n\r\n function Headers(headers) {\r\n this.map = {};\r\n\r\n if (headers instanceof Headers) {\r\n headers.forEach(function (value, name) {\r\n this.append(name, value);\r\n }, this);\r\n } else if (Array.isArray(headers)) {\r\n headers.forEach(function (header) {\r\n this.append(header[0], header[1]);\r\n }, this);\r\n } else if (headers) {\r\n Object.getOwnPropertyNames(headers).forEach(function (name) {\r\n this.append(name, headers[name]);\r\n }, this);\r\n }\r\n }\r\n\r\n Headers.prototype.append = function (name, value) {\r\n name = normalizeName(name);\r\n value = normalizeValue(value);\r\n var oldValue = this.map[name];\r\n this.map[name] = oldValue ? oldValue + ', ' + value : value;\r\n };\r\n\r\n Headers.prototype['delete'] = function (name) {\r\n delete this.map[normalizeName(name)];\r\n };\r\n\r\n Headers.prototype.get = function (name) {\r\n name = normalizeName(name);\r\n return this.has(name) ? this.map[name] : null;\r\n };\r\n\r\n Headers.prototype.has = function (name) {\r\n return this.map.hasOwnProperty(normalizeName(name));\r\n };\r\n\r\n Headers.prototype.set = function (name, value) {\r\n this.map[normalizeName(name)] = normalizeValue(value);\r\n };\r\n\r\n Headers.prototype.forEach = function (callback, thisArg) {\r\n for (var name in this.map) {\r\n if (this.map.hasOwnProperty(name)) {\r\n callback.call(thisArg, this.map[name], name, this);\r\n }\r\n }\r\n };\r\n\r\n Headers.prototype.keys = function () {\r\n var items = [];\r\n this.forEach(function (value, name) {\r\n items.push(name);\r\n });\r\n return iteratorFor(items);\r\n };\r\n\r\n Headers.prototype.values = function () {\r\n var items = [];\r\n this.forEach(function (value) {\r\n items.push(value);\r\n });\r\n return iteratorFor(items);\r\n };\r\n\r\n Headers.prototype.entries = function () {\r\n var items = [];\r\n this.forEach(function (value, name) {\r\n items.push([name, value]);\r\n });\r\n return iteratorFor(items);\r\n };\r\n\r\n if (support.iterable) {\r\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries;\r\n }\r\n\r\n function consumed(body) {\r\n if (body.bodyUsed) {\r\n return Promise.reject(new TypeError('Already read'));\r\n }\r\n body.bodyUsed = true;\r\n }\r\n\r\n function fileReaderReady(reader) {\r\n return new Promise(function (resolve, reject) {\r\n reader.onload = function () {\r\n resolve(reader.result);\r\n };\r\n reader.onerror = function () {\r\n reject(reader.error);\r\n };\r\n });\r\n }\r\n\r\n function readBlobAsArrayBuffer(blob) {\r\n var reader = new FileReader();\r\n var promise = fileReaderReady(reader);\r\n reader.readAsArrayBuffer(blob);\r\n return promise;\r\n }\r\n\r\n function readBlobAsText(blob) {\r\n var reader = new FileReader();\r\n var promise = fileReaderReady(reader);\r\n reader.readAsText(blob);\r\n return promise;\r\n }\r\n\r\n function readArrayBufferAsText(buf) {\r\n var view = new Uint8Array(buf);\r\n var chars = new Array(view.length);\r\n\r\n for (var i = 0; i < view.length; i++) {\r\n chars[i] = String.fromCharCode(view[i]);\r\n }\r\n return chars.join('');\r\n }\r\n\r\n function bufferClone(buf) {\r\n if (buf.slice) {\r\n return buf.slice(0);\r\n } else {\r\n var view = new Uint8Array(buf.byteLength);\r\n view.set(new Uint8Array(buf));\r\n return view.buffer;\r\n }\r\n }\r\n\r\n function Body() {\r\n this.bodyUsed = false;\r\n\r\n this._initBody = function (body) {\r\n this._bodyInit = body;\r\n if (!body) {\r\n this._bodyText = '';\r\n } else if (typeof body === 'string') {\r\n this._bodyText = body;\r\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\r\n this._bodyBlob = body;\r\n } else if (\r\n support.formData &&\r\n FormData.prototype.isPrototypeOf(body)\r\n ) {\r\n this._bodyFormData = body;\r\n } else if (\r\n support.searchParams &&\r\n URLSearchParams.prototype.isPrototypeOf(body)\r\n ) {\r\n this._bodyText = body.toString();\r\n } else if (\r\n support.arrayBuffer &&\r\n support.blob &&\r\n isDataView(body)\r\n ) {\r\n this._bodyArrayBuffer = bufferClone(body.buffer);\r\n // IE 10-11 can't handle a DataView body.\r\n this._bodyInit = new Blob([this._bodyArrayBuffer]);\r\n } else if (\r\n support.arrayBuffer &&\r\n (ArrayBuffer.prototype.isPrototypeOf(body) ||\r\n isArrayBufferView(body))\r\n ) {\r\n this._bodyArrayBuffer = bufferClone(body);\r\n } else {\r\n this._bodyText = body = Object.prototype.toString.call(body);\r\n }\r\n\r\n if (!this.headers.get('content-type')) {\r\n if (typeof body === 'string') {\r\n this.headers.set(\r\n 'content-type',\r\n 'text/plain;charset=UTF-8'\r\n );\r\n } else if (this._bodyBlob && this._bodyBlob.type) {\r\n this.headers.set('content-type', this._bodyBlob.type);\r\n } else if (\r\n support.searchParams &&\r\n URLSearchParams.prototype.isPrototypeOf(body)\r\n ) {\r\n this.headers.set(\r\n 'content-type',\r\n 'application/x-www-form-urlencoded;charset=UTF-8'\r\n );\r\n }\r\n }\r\n };\r\n\r\n if (support.blob) {\r\n this.blob = function () {\r\n var rejected = consumed(this);\r\n if (rejected) {\r\n return rejected;\r\n }\r\n\r\n if (this._bodyBlob) {\r\n return Promise.resolve(this._bodyBlob);\r\n } else if (this._bodyArrayBuffer) {\r\n return Promise.resolve(new Blob([this._bodyArrayBuffer]));\r\n } else if (this._bodyFormData) {\r\n throw new Error('could not read FormData body as blob');\r\n } else {\r\n return Promise.resolve(new Blob([this._bodyText]));\r\n }\r\n };\r\n\r\n this.arrayBuffer = function () {\r\n if (this._bodyArrayBuffer) {\r\n return (\r\n consumed(this) || Promise.resolve(this._bodyArrayBuffer)\r\n );\r\n } else {\r\n return this.blob().then(readBlobAsArrayBuffer);\r\n }\r\n };\r\n }\r\n\r\n this.text = function () {\r\n var rejected = consumed(this);\r\n if (rejected) {\r\n return rejected;\r\n }\r\n\r\n if (this._bodyBlob) {\r\n return readBlobAsText(this._bodyBlob);\r\n } else if (this._bodyArrayBuffer) {\r\n return Promise.resolve(\r\n readArrayBufferAsText(this._bodyArrayBuffer)\r\n );\r\n } else if (this._bodyFormData) {\r\n throw new Error('could not read FormData body as text');\r\n } else {\r\n return Promise.resolve(this._bodyText);\r\n }\r\n };\r\n\r\n if (support.formData) {\r\n this.formData = function () {\r\n return this.text().then(decode);\r\n };\r\n }\r\n\r\n this.json = function () {\r\n return this.text().then(JSON.parse);\r\n };\r\n\r\n return this;\r\n }\r\n\r\n // HTTP methods whose capitalization should be normalized\r\n var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];\r\n\r\n function normalizeMethod(method) {\r\n var upcased = method.toUpperCase();\r\n return methods.indexOf(upcased) > -1 ? upcased : method;\r\n }\r\n\r\n function Request(input, options) {\r\n options = options || {};\r\n var body = options.body;\r\n\r\n if (input instanceof Request) {\r\n if (input.bodyUsed) {\r\n throw new TypeError('Already read');\r\n }\r\n this.url = input.url;\r\n this.credentials = input.credentials;\r\n if (!options.headers) {\r\n this.headers = new Headers(input.headers);\r\n }\r\n this.method = input.method;\r\n this.mode = input.mode;\r\n this.signal = input.signal;\r\n if (!body && input._bodyInit != null) {\r\n body = input._bodyInit;\r\n input.bodyUsed = true;\r\n }\r\n } else {\r\n this.url = String(input);\r\n }\r\n\r\n this.credentials =\r\n options.credentials || this.credentials || 'same-origin';\r\n if (options.headers || !this.headers) {\r\n this.headers = new Headers(options.headers);\r\n }\r\n this.method = normalizeMethod(options.method || this.method || 'GET');\r\n this.mode = options.mode || this.mode || null;\r\n this.signal = options.signal || this.signal;\r\n this.referrer = null;\r\n\r\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\r\n throw new TypeError('Body not allowed for GET or HEAD requests');\r\n }\r\n this._initBody(body);\r\n }\r\n\r\n Request.prototype.clone = function () {\r\n return new Request(this, { body: this._bodyInit });\r\n };\r\n\r\n function decode(body) {\r\n var form = new FormData();\r\n body.trim()\r\n .split('&')\r\n .forEach(function (bytes) {\r\n if (bytes) {\r\n var split = bytes.split('=');\r\n var name = split.shift().replace(/\\+/g, ' ');\r\n var value = split.join('=').replace(/\\+/g, ' ');\r\n form.append(\r\n decodeURIComponent(name),\r\n decodeURIComponent(value)\r\n );\r\n }\r\n });\r\n return form;\r\n }\r\n\r\n function parseHeaders(rawHeaders) {\r\n var headers = new Headers();\r\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\r\n // https://tools.ietf.org/html/rfc7230#section-3.2\r\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ');\r\n preProcessedHeaders.split(/\\r?\\n/).forEach(function (line) {\r\n var parts = line.split(':');\r\n var key = parts.shift().trim();\r\n if (key) {\r\n var value = parts.join(':').trim();\r\n headers.append(key, value);\r\n }\r\n });\r\n return headers;\r\n }\r\n\r\n Body.call(Request.prototype);\r\n\r\n function Response(bodyInit, options) {\r\n if (!options) {\r\n options = {};\r\n }\r\n\r\n this.type = 'default';\r\n this.status = options.status === undefined ? 200 : options.status;\r\n this.ok = this.status >= 200 && this.status < 300;\r\n this.statusText = 'statusText' in options ? options.statusText : 'OK';\r\n this.headers = new Headers(options.headers);\r\n this.url = options.url || '';\r\n this._initBody(bodyInit);\r\n }\r\n\r\n Body.call(Response.prototype);\r\n\r\n Response.prototype.clone = function () {\r\n return new Response(this._bodyInit, {\r\n status: this.status,\r\n statusText: this.statusText,\r\n headers: new Headers(this.headers),\r\n url: this.url,\r\n });\r\n };\r\n\r\n Response.error = function () {\r\n var response = new Response(null, { status: 0, statusText: '' });\r\n response.type = 'error';\r\n return response;\r\n };\r\n\r\n var redirectStatuses = [301, 302, 303, 307, 308];\r\n\r\n Response.redirect = function (url, status) {\r\n if (redirectStatuses.indexOf(status) === -1) {\r\n throw new RangeError('Invalid status code');\r\n }\r\n\r\n return new Response(null, {\r\n status: status,\r\n headers: { location: url },\r\n });\r\n };\r\n\r\n self.DOMException = self.DOMException;\r\n try {\r\n new self.DOMException();\r\n } catch (err) {\r\n self.DOMException = function (message, name) {\r\n this.message = message;\r\n this.name = name;\r\n var error = Error(message);\r\n this.stack = error.stack;\r\n };\r\n self.DOMException.prototype = Object.create(Error.prototype);\r\n self.DOMException.prototype.constructor = self.DOMException;\r\n }\r\n\r\n function fetch(input, init) {\r\n return new Promise(function (resolve, reject) {\r\n var request = new Request(input, init);\r\n\r\n if (request.signal && request.signal.aborted) {\r\n return reject(new self.DOMException('Aborted', 'AbortError'));\r\n }\r\n\r\n var xhr = new XMLHttpRequest();\r\n\r\n function abortXhr() {\r\n xhr.abort();\r\n }\r\n\r\n xhr.onload = function () {\r\n var options = {\r\n status: xhr.status,\r\n statusText: xhr.statusText,\r\n headers: parseHeaders(xhr.getAllResponseHeaders() || ''),\r\n };\r\n options.url =\r\n 'responseURL' in xhr\r\n ? xhr.responseURL\r\n : options.headers.get('X-Request-URL');\r\n var body = 'response' in xhr ? xhr.response : xhr.responseText;\r\n resolve(new Response(body, options));\r\n };\r\n\r\n xhr.onerror = function () {\r\n reject(new TypeError('Network request failed'));\r\n };\r\n\r\n xhr.ontimeout = function () {\r\n reject(new TypeError('Network request failed'));\r\n };\r\n\r\n xhr.onabort = function () {\r\n reject(new self.DOMException('Aborted', 'AbortError'));\r\n };\r\n\r\n xhr.open(request.method, request.url, true);\r\n\r\n if (request.credentials === 'include') {\r\n xhr.withCredentials = true;\r\n } else if (request.credentials === 'omit') {\r\n xhr.withCredentials = false;\r\n }\r\n\r\n if ('responseType' in xhr && support.blob) {\r\n xhr.responseType = 'blob';\r\n }\r\n\r\n request.headers.forEach(function (value, name) {\r\n xhr.setRequestHeader(name, value);\r\n });\r\n\r\n if (request.signal) {\r\n request.signal.addEventListener('abort', abortXhr);\r\n\r\n xhr.onreadystatechange = function () {\r\n // DONE (success or failure)\r\n if (xhr.readyState === 4) {\r\n request.signal.removeEventListener('abort', abortXhr);\r\n }\r\n };\r\n }\r\n\r\n xhr.send(\r\n typeof request._bodyInit === 'undefined'\r\n ? null\r\n : request._bodyInit\r\n );\r\n });\r\n }\r\n\r\n fetch.polyfill = true;\r\n\r\n if (!self.fetch) {\r\n self.fetch = fetch;\r\n self.Headers = Headers;\r\n self.Request = Request;\r\n self.Response = Response;\r\n }\r\n})();\r\n\r\nvar __AVO_DEV__ = false;\r\nvar __AVO_NOOP__ = false;\r\nvar __AVO_LOGGER__ = null;\r\nvar __AVO_ENV__ = null;\r\nvar __REPORT_FAILURE_AS__ = null;\r\nvar __STRICT__ = null;\r\n\r\nvar __WEB_DEBUGGER__ = true;\r\nconst avoInspectorApiKey = 'QgPQlX0qbPrl32gg3cX6';\r\nvar __INSPECTOR__ = null;\r\n\r\n// polyfill Array.isArray\r\nif (!Array.isArray) {\r\n Array.isArray = function (arg) {\r\n return Object.prototype.toString.call(arg) === '[object Array]';\r\n };\r\n}\r\n\r\n// polyfill Object.assign\r\nif (typeof Object.assign !== 'function') {\r\n // Must be writable: true, enumerable: false, configurable: true\r\n Object.defineProperty(Object, 'assign', {\r\n value: function assign(target, varArgs) {\r\n // .length of function is 2\r\n if (target == null) {\r\n // TypeError if undefined or null\r\n throw new TypeError(\r\n 'Cannot convert undefined or null to object'\r\n );\r\n }\r\n\r\n var to = Object(target);\r\n\r\n for (var index = 1; index < arguments.length; index++) {\r\n var nextSource = arguments[index];\r\n\r\n if (nextSource != null) {\r\n // Skip over if undefined or null\r\n for (var nextKey in nextSource) {\r\n // Avoid bugs when hasOwnProperty is shadowed\r\n if (\r\n Object.prototype.hasOwnProperty.call(\r\n nextSource,\r\n nextKey\r\n )\r\n ) {\r\n to[nextKey] = nextSource[nextKey];\r\n }\r\n }\r\n }\r\n }\r\n return to;\r\n },\r\n writable: true,\r\n configurable: true,\r\n });\r\n}\r\n\r\n// From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys\r\nif (!Object.keys) {\r\n Object.keys = (function () {\r\n 'use strict';\r\n var hasOwnProperty = Object.prototype.hasOwnProperty,\r\n hasDontEnumBug = !{ toString: null }.propertyIsEnumerable(\r\n 'toString'\r\n ),\r\n dontEnums = [\r\n 'toString',\r\n 'toLocaleString',\r\n 'valueOf',\r\n 'hasOwnProperty',\r\n 'isPrototypeOf',\r\n 'propertyIsEnumerable',\r\n 'constructor',\r\n ],\r\n dontEnumsLength = dontEnums.length;\r\n\r\n return function (obj) {\r\n if (\r\n typeof obj !== 'function' &&\r\n (typeof obj !== 'object' || obj === null)\r\n ) {\r\n throw new TypeError('Object.keys called on non-object');\r\n }\r\n\r\n var result = [],\r\n prop,\r\n i;\r\n\r\n for (prop in obj) {\r\n if (hasOwnProperty.call(obj, prop)) {\r\n result.push(prop);\r\n }\r\n }\r\n\r\n if (hasDontEnumBug) {\r\n for (i = 0; i < dontEnumsLength; i++) {\r\n if (hasOwnProperty.call(obj, dontEnums[i])) {\r\n result.push(dontEnums[i]);\r\n }\r\n }\r\n }\r\n return result;\r\n };\r\n })();\r\n}\r\n\r\n// polyfill Array.indexOf\r\nif (!Array.prototype.indexOf)\r\n Array.prototype.indexOf = (function (Object, max, min) {\r\n 'use strict';\r\n return function indexOf(member, fromIndex) {\r\n if (this === null || this === undefined)\r\n throw TypeError(\r\n 'Array.prototype.indexOf called on null or undefined'\r\n );\r\n\r\n var that = Object(this),\r\n Len = that.length >>> 0,\r\n i = min(fromIndex | 0, Len);\r\n if (i < 0) i = max(0, Len + i);\r\n else if (i >= Len) return -1;\r\n\r\n if (member === void 0) {\r\n for (; i !== Len; ++i)\r\n if (that[i] === void 0 && i in that) return i; // undefined\r\n } else if (member !== member) {\r\n for (; i !== Len; ++i) if (that[i] !== that[i]) return i; // NaN\r\n } else for (; i !== Len; ++i) if (that[i] === member) return i; // all else\r\n\r\n return -1; // if the value was not found, then return -1\r\n };\r\n })(Object, Math.max, Math.min);\r\n\r\nvar array_difference, AvoAssert, InternalAvoLogger;\r\narray_difference = function array_difference(a1, a2) {\r\n var result = [];\r\n for (var i = 0; i < a1.length; i++) {\r\n if (a2.indexOf(a1[i]) === -1) {\r\n result.push(a1[i]);\r\n }\r\n }\r\n return result;\r\n};\r\n\r\nAvoAssert = {\r\n assertObject: function assertObject(propertyId, propName, obj) {\r\n if (typeof obj !== 'object') {\r\n var message =\r\n propName +\r\n ' should be of type object but you provided type ' +\r\n typeof obj +\r\n ' with value ' +\r\n JSON.stringify(obj);\r\n return [\r\n {\r\n tag: 'expectedObjectType',\r\n propertyId: propertyId,\r\n message: message,\r\n actualType: typeof obj,\r\n },\r\n ];\r\n } else {\r\n return [];\r\n }\r\n },\r\n\r\n assertString: function assertString(propertyId, propName, str) {\r\n if (typeof str !== 'string') {\r\n var message =\r\n propName +\r\n ' should be of type string but you provided type ' +\r\n typeof str +\r\n ' with value ' +\r\n JSON.stringify(str);\r\n return [\r\n {\r\n tag: 'expectedStringType',\r\n propertyId: propertyId,\r\n message: message,\r\n actualType: typeof str,\r\n },\r\n ];\r\n } else {\r\n return [];\r\n }\r\n },\r\n\r\n assertInt: function assertInt(propertyId, propName, int) {\r\n if (typeof int === 'number' && int !== Math.round(int)) {\r\n var message =\r\n propName +\r\n ' should be of type int but you provided type float with value ' +\r\n JSON.stringify(int);\r\n return [\r\n {\r\n tag: 'expectedIntType',\r\n propertyId: propertyId,\r\n actualType: 'float',\r\n },\r\n ];\r\n } else if (typeof int !== 'number') {\r\n var message =\r\n propName +\r\n ' should be of type int but you provided type ' +\r\n typeof int +\r\n ' with value ' +\r\n JSON.stringify(int);\r\n return [\r\n {\r\n tag: 'expectedIntType',\r\n propertyId: propertyId,\r\n message: message,\r\n actualType: typeof int,\r\n },\r\n ];\r\n } else {\r\n return [];\r\n }\r\n },\r\n\r\n assertLong: function assertLong(propertyId, propName, long) {\r\n if (typeof long === 'number' && long !== Math.round(long)) {\r\n var message =\r\n propName +\r\n ' should be of type long but you provided type float with value ' +\r\n JSON.stringify(long);\r\n return [\r\n {\r\n tag: 'expectedLongType',\r\n propertyId: propertyId,\r\n actualType: 'float',\r\n },\r\n ];\r\n } else if (typeof long !== 'number') {\r\n var message =\r\n propName +\r\n ' should be of type long but you provided type ' +\r\n typeof long +\r\n ' with value ' +\r\n JSON.stringify(long);\r\n return [\r\n {\r\n tag: 'expectedLongType',\r\n propertyId: propertyId,\r\n message: message,\r\n actualType: typeof long,\r\n },\r\n ];\r\n } else {\r\n return [];\r\n }\r\n },\r\n\r\n assertFloat: function assertFloat(propertyId, propName, float) {\r\n if (typeof float !== 'number') {\r\n var message =\r\n propName +\r\n ' should be of type float but you provided type ' +\r\n typeof float +\r\n ' with value ' +\r\n JSON.stringify(float);\r\n return [\r\n {\r\n tag: 'expectedFloatType',\r\n propertyId: propertyId,\r\n message: message,\r\n actualType: typeof float,\r\n },\r\n ];\r\n } else {\r\n return [];\r\n }\r\n },\r\n\r\n assertBool: function assertBool(propertyId, propName, bool) {\r\n if (typeof bool !== 'boolean') {\r\n var message =\r\n propName +\r\n ' should be of type boolean but you provided type ' +\r\n typeof bool +\r\n ' with value ' +\r\n JSON.stringify(bool);\r\n return [\r\n {\r\n tag: 'expectedBoolType',\r\n propertyId: propertyId,\r\n message: message,\r\n actualType: typeof bool,\r\n },\r\n ];\r\n } else {\r\n return [];\r\n }\r\n },\r\n\r\n assertMax: function assertMax(propertyId, propName, max, value) {\r\n if (value > max) {\r\n var message =\r\n propName +\r\n ' has a maximum value of ' +\r\n max +\r\n ' but you provided the value ' +\r\n JSON.stringify(value);\r\n return [\r\n {\r\n tag: 'expectedMax',\r\n propertyId: propertyId,\r\n message: message,\r\n },\r\n ];\r\n } else {\r\n return [];\r\n }\r\n },\r\n\r\n assertMin: function assertMin(propertyId, propName, min, value) {\r\n if (value < min) {\r\n var message =\r\n propName +\r\n ' has a minimum value of ' +\r\n min +\r\n ' but you provided the value ' +\r\n JSON.stringify(value);\r\n return [\r\n {\r\n tag: 'expectedMin',\r\n propertyId: propertyId,\r\n message: message,\r\n },\r\n ];\r\n } else {\r\n return [];\r\n }\r\n },\r\n\r\n assertList: function assertList(propertyId, propName, value) {\r\n if (!Array.isArray(value)) {\r\n var message =\r\n propName +\r\n ' should be of type list but you provided type ' +\r\n typeof value;\r\n return [\r\n {\r\n tag: 'expectedList',\r\n propertyId: propertyId,\r\n message: message,\r\n actualType: typeof value,\r\n },\r\n ];\r\n } else {\r\n return [];\r\n }\r\n },\r\n\r\n assertNoAdditionalProperties: function assertNoAdditionalProperties(\r\n eventName,\r\n input,\r\n spec\r\n ) {\r\n var additionalKeys = array_difference(input, spec);\r\n if (additionalKeys.length) {\r\n var message =\r\n 'Additional properties when sending event ' +\r\n eventName +\r\n ': ' +\r\n JSON.stringify(additionalKeys);\r\n return [\r\n {\r\n tag: 'expectedNoAdditionalProperties',\r\n additionalProperties: additionalKeys,\r\n message: message,\r\n },\r\n ];\r\n } else {\r\n return [];\r\n }\r\n },\r\n\r\n assertNoAdditionalUserProperties: function assertNoAdditionalProperties(\r\n eventName,\r\n input,\r\n spec\r\n ) {\r\n var additionalKeys = array_difference(input, spec);\r\n if (additionalKeys.length) {\r\n var message =\r\n 'Additional user properties when sending event ' +\r\n eventName +\r\n ': ' +\r\n JSON.stringify(additionalKeys);\r\n return [\r\n {\r\n tag: 'expectedNoAdditionalUserProperties',\r\n additionalProperties: additionalKeys,\r\n message: message,\r\n },\r\n ];\r\n } else {\r\n return [];\r\n }\r\n },\r\n};\r\n\r\nconst WebDebuggerAssertions = {\r\n hasKey(obj, key) {\r\n return obj && obj[key] != null;\r\n },\r\n assertKey(obj, key, assert) {\r\n if (this.hasKey(obj, key) && assert(obj[key])) {\r\n return true;\r\n } else {\r\n throw new Error(\r\n 'WebDebugger: Object key: \"' + key + '\" failed assertion.'\r\n );\r\n }\r\n },\r\n assertKeys(obj, arrayOfAssertions) {\r\n return arrayOfAssertions.every((assertionForKey) => {\r\n if (\r\n this.hasKey(assertionForKey, 'key') &&\r\n this.hasKey(assertionForKey, 'assert')\r\n ) {\r\n return this.assertKey(\r\n obj,\r\n assertionForKey.key,\r\n assertionForKey.assert\r\n );\r\n } else {\r\n throw new Error(\r\n 'WebDebugger: Object form for assertion invalid.'\r\n );\r\n }\r\n });\r\n },\r\n assertInt(int) {\r\n return Number.isInteger(int);\r\n },\r\n};\r\n\r\nvar WebDebuggerPosition = {\r\n position: {\r\n BOTTOM_RIGHT: 'BottomRight',\r\n BOTTOM_LEFT: 'BottomLeft',\r\n TOP_RIGHT: 'TopRight',\r\n TOP_LEFT: 'TopLeft',\r\n },\r\n BottomRight(parameters) {\r\n return (\r\n WebDebuggerAssertions.assertKeys(parameters, [\r\n { key: 'bottom', assert: WebDebuggerAssertions.assertInt },\r\n { key: 'right', assert: WebDebuggerAssertions.assertInt },\r\n ]) && {\r\n position: this.position.BOTTOM_RIGHT,\r\n bottom: parameters.bottom,\r\n right: parameters.right,\r\n }\r\n );\r\n },\r\n BottomLeft(parameters) {\r\n return (\r\n WebDebuggerAssertions.assertKeys(parameters, [\r\n { key: 'bottom', assert: WebDebuggerAssertions.assertInt },\r\n { key: 'left', assert: WebDebuggerAssertions.assertInt },\r\n ]) && {\r\n position: this.position.BOTTOM_LEFT,\r\n bottom: parameters.bottom,\r\n left: parameters.left,\r\n }\r\n );\r\n },\r\n TopRight(parameters) {\r\n return (\r\n WebDebuggerAssertions.assertKeys(parameters, [\r\n { key: 'top', assert: WebDebuggerAssertions.assertInt },\r\n { key: 'right', assert: WebDebuggerAssertions.assertInt },\r\n ]) && {\r\n position: this.position.TOP_RIGHT,\r\n top: parameters.top,\r\n right: parameters.right,\r\n }\r\n );\r\n },\r\n TopLeft(parameters) {\r\n return (\r\n WebDebuggerAssertions.assertKeys(parameters, [\r\n { key: 'top', assert: WebDebuggerAssertions.assertInt },\r\n { key: 'left', assert: WebDebuggerAssertions.assertInt },\r\n ]) && {\r\n position: this.position.TOP_LEFT,\r\n top: parameters.top,\r\n left: parameters.left,\r\n }\r\n );\r\n },\r\n};\r\n\r\nInternalAvoLogger = {\r\n logEventSent: function logEventSent(\r\n eventName,\r\n eventProperties,\r\n userProperties,\r\n groupProperties\r\n ) {\r\n const message =\r\n 'Event Sent:' +\r\n eventName +\r\n 'Event Props:' +\r\n JSON.stringify(eventProperties) +\r\n 'User Props:' +\r\n JSON.stringify(userProperties) +\r\n 'Group Props:' +\r\n JSON.stringify(groupProperties);\r\n\r\n if (\r\n __AVO_LOGGER__ &&\r\n __AVO_LOGGER__.logDebug &&\r\n __AVO_LOGGER__.logDebug(__AVO_ENV__, message)\r\n ) {\r\n return;\r\n }\r\n typeof console !== 'undefined' &&\r\n console.log(\r\n '[avo] Event Sent:',\r\n eventName,\r\n 'Event Props:',\r\n eventProperties,\r\n 'User Props:',\r\n userProperties,\r\n 'Group Props:',\r\n groupProperties\r\n );\r\n },\r\n\r\n log: function log(message) {\r\n if (\r\n __AVO_LOGGER__ &&\r\n __AVO_LOGGER__.logDebug &&\r\n __AVO_LOGGER__.logDebug(__AVO_ENV__, message)\r\n ) {\r\n return;\r\n }\r\n typeof console !== 'undefined' && console.log('[avo] ' + message);\r\n },\r\n\r\n warn: function warn(message) {\r\n if (\r\n __AVO_LOGGER__ &&\r\n __AVO_LOGGER__.logWarn &&\r\n __AVO_LOGGER__.logWarn(__AVO_ENV__, message)\r\n ) {\r\n return;\r\n }\r\n typeof console !== 'undefined' && console.warn('[avo] ' + message);\r\n },\r\n\r\n error: function error(message, error) {\r\n if (\r\n __AVO_LOGGER__ &&\r\n __AVO_LOGGER__.logError &&\r\n __AVO_LOGGER__.logError(__AVO_ENV__, message + error)\r\n ) {\r\n return;\r\n }\r\n typeof console !== 'undefined' &&\r\n console.error('[avo] ' + message, error);\r\n },\r\n};\r\n\r\nvar _avo_invoke, _avo_invoke_meta;\r\nvar _avo_sampling_rate = 1.0;\r\nfunction _avo_invoke_payload(body) {\r\n if (typeof window === 'undefined') {\r\n return;\r\n }\r\n if (_avo_sampling_rate > 0) {\r\n if (Math.random() < _avo_sampling_rate) {\r\n fetch('https://api.avo.app/i', {\r\n method: 'POST',\r\n headers: { 'Content-Type': 'application/json' },\r\n body: JSON.stringify(body),\r\n })\r\n .then(function (res) {\r\n return res.json();\r\n })\r\n .then(function (data) {\r\n _avo_sampling_rate = data.sa;\r\n })\r\n .catch(function () {});\r\n }\r\n }\r\n}\r\n\r\n_avo_invoke = function _avo_invoke(env, eventId, hash, messages, origin) {\r\n _avo_invoke_payload({\r\n ac: 'qVphsWZsML75zmhEKjpD',\r\n br: 'LMXy5Jhst',\r\n en: env,\r\n ev: eventId,\r\n ha: hash,\r\n sc: 'JmwsgKTQe50MTmUE9FVs',\r\n se: new Date().toISOString(),\r\n so: '54V-2sh1g',\r\n va: messages.length === 0,\r\n me: messages,\r\n or: origin,\r\n });\r\n};\r\n\r\n_avo_invoke_meta = function _avo_invoke_meta(env, type, messages, origin) {\r\n _avo_invoke_payload({\r\n ac: 'qVphsWZsML75zmhEKjpD',\r\n br: 'LMXy5Jhst',\r\n en: env,\r\n ty: type,\r\n sc: 'JmwsgKTQe50MTmUE9FVs',\r\n se: new Date().toISOString(),\r\n so: '54V-2sh1g',\r\n va: messages.length === 0,\r\n me: messages,\r\n or: origin,\r\n });\r\n};\r\n\r\nvar _avo_debugger_log;\r\nvar _avo_debugger_events_during_boot = [];\r\nvar _avo_debugger_ready = false;\r\n\r\nif (typeof window !== 'undefined') {\r\n window.addEventListener('message', function (event) {\r\n if (event.origin !== 'https://www.avo.app') {\r\n return;\r\n }\r\n var iframe = document.getElementById('avo-debugger');\r\n if (\r\n iframe &&\r\n event &&\r\n event.data &&\r\n event.data.type_ === 'avo-debugger-update-style'\r\n ) {\r\n iframe.style = event.data.style;\r\n } else if (\r\n iframe &&\r\n event &&\r\n event.data &&\r\n event.data.type_ === 'avo-debugger-ready'\r\n ) {\r\n var message = {\r\n type_: 'avo-debugger-boot-events',\r\n schemaId: 'JmwsgKTQe50MTmUE9FVs',\r\n href: window.location.href,\r\n events: _avo_debugger_events_during_boot,\r\n };\r\n _avo_debugger_events_during_boot = [];\r\n _avo_debugger_ready = true;\r\n iframe.contentWindow.postMessage(\r\n message,\r\n 'https://www.avo.app/_debugger'\r\n );\r\n }\r\n });\r\n}\r\n\r\n_avo_debugger_log = function _avo_debugger_log(\r\n eventId,\r\n eventName,\r\n messages,\r\n eventProperties,\r\n userProperties,\r\n groupProperties\r\n) {\r\n if (typeof window === 'undefined') {\r\n return;\r\n }\r\n var event = {\r\n eventId: eventId,\r\n eventName: eventName,\r\n messages: messages,\r\n timestamp: Date.now(),\r\n eventProperties: eventProperties,\r\n userProperties: userProperties,\r\n groupProperties: groupProperties,\r\n };\r\n\r\n if (_avo_debugger_ready) {\r\n var message = { type_: 'avo-debugger-events', events: [event] };\r\n document\r\n .getElementById('avo-debugger')\r\n .contentWindow.postMessage(\r\n message,\r\n 'https://www.avo.app/_debugger'\r\n );\r\n } else {\r\n _avo_debugger_events_during_boot.push(event);\r\n }\r\n};\r\n\r\nfunction _avo_debugger_send_position(position) {\r\n if (typeof window === 'undefined') {\r\n return;\r\n }\r\n window.addEventListener('message', function (event) {\r\n if (event.origin !== 'https://www.avo.app') {\r\n return;\r\n }\r\n if (event.data.type_ === 'avo-debugger-ready' && position !== null) {\r\n var message = {\r\n type_: 'avo-debugger-position',\r\n position: position,\r\n };\r\n document\r\n .getElementById('avo-debugger')\r\n .contentWindow.postMessage(\r\n message,\r\n 'https://www.avo.app/_debugger'\r\n );\r\n }\r\n });\r\n}\r\n\r\nvar Language = {\r\n EN: 'en',\r\n ES: 'es',\r\n FR: 'fr',\r\n DE: 'de',\r\n IT: 'it',\r\n SV: 'sv',\r\n PL: 'pl',\r\n ZH: 'zh',\r\n};\r\n\r\nvar LoggedIn = {\r\n TRUE: 'true',\r\n FALSE: 'false',\r\n};\r\n\r\nvar Country = {\r\n US: 'us',\r\n CA: 'ca',\r\n NL: 'nl',\r\n GB: 'gb',\r\n DE: 'de',\r\n FR: 'fr',\r\n BE: 'be',\r\n IT: 'it',\r\n SE: 'se',\r\n CH: 'ch',\r\n PL: 'pl',\r\n ES: 'es',\r\n FI: 'fi',\r\n DK: 'dk',\r\n AT: 'at',\r\n NO: 'no',\r\n CZ: 'cz',\r\n HR: 'hr',\r\n HU: 'hu',\r\n EE: 'ee',\r\n LV: 'lv',\r\n LT: 'lt',\r\n GR: 'gr',\r\n IE: 'ie',\r\n SG: 'sg',\r\n IN: 'in',\r\n AU: 'au',\r\n CN: 'cn',\r\n BN: 'bn',\r\n JP: 'jp',\r\n HK: 'hk',\r\n MO: 'mo',\r\n MV: 'mv',\r\n MY: 'my',\r\n IR: 'ir',\r\n LY: 'ly',\r\n PT: 'pt',\r\n RO: 'ro',\r\n CY: 'cy',\r\n SK: 'sk',\r\n BG: 'bg',\r\n SI: 'si',\r\n AE: 'ae',\r\n GH: 'gh',\r\n GI: 'gi',\r\n GW: 'gw',\r\n IS: 'is',\r\n JE: 'je',\r\n LI: 'li',\r\n MC: 'mc',\r\n MT: 'mt',\r\n QA: 'qa',\r\n DO: 'do',\r\n GP: 'gp',\r\n MQ: 'mq',\r\n PR: 'pr',\r\n TT: 'tt',\r\n};\r\n\r\nvar PageType = {\r\n HOME: 'home',\r\n PRODUCT: 'product',\r\n CATEGORY: 'category',\r\n JOURNAL: 'journal',\r\n STORE: 'store',\r\n LOOKBUILDER: 'lookbuilder',\r\n LOGIN: 'login',\r\n WISHLIST: 'wishlist',\r\n ACCOUNT: 'account',\r\n CHECKOUT: 'checkout',\r\n CART: 'cart',\r\n SUPPORT: 'support',\r\n CUSTOMMADE: 'custommade',\r\n GIFTCARD: 'giftcard',\r\n ERROR: 'error',\r\n};\r\n\r\nvar Currency = {\r\n EUR: 'eur',\r\n USD: 'usd',\r\n CNY: 'cny',\r\n AUD: 'aud',\r\n BGN: 'bgn',\r\n CAD: 'cad',\r\n CZK: 'czk',\r\n DKK: 'dkk',\r\n HKD: 'hkd',\r\n HUF: 'huf',\r\n ISK: 'isk',\r\n INR: 'inr',\r\n JPY: 'jpy',\r\n CHF: 'chf',\r\n MOP: 'mop',\r\n MYR: 'myr',\r\n NOK: 'nok',\r\n QAR: 'qar',\r\n RON: 'ron',\r\n SGD: 'sgd',\r\n SEK: 'sek',\r\n AED: 'aed',\r\n GBP: 'gbp',\r\n};\r\n\r\nvar EventLocation = {\r\n SHOPMINUSTHEMINUSLOOK_SLIDER: 'shop-the-look_slider',\r\n WISHLIST_PANEL: 'wishlist_panel',\r\n MINICART_PANEL: 'minicart_panel',\r\n SHOPMINUSTHEMINUSLOOK_PANEL: 'shop-the-look_panel',\r\n SIZEMINUSPASSPORT_PANEL: 'size-passport_panel',\r\n PDP: 'pdp',\r\n PRODUCTS_MWTW_1: 'products_mwtw_1',\r\n PRODUCTS_MWTW_2: 'products_mwtw_2',\r\n PRODUCTS_MWTW_3: 'products_mwtw_3',\r\n PRODUCTS_MWTW_4: 'products_mwtw_4',\r\n PRODUCTS_MWTW_5: 'products_mwtw_5',\r\n SHARE_MINUSBUTTON_MINUSTOP: 'share-button-top',\r\n SHARE_MINUSBUTTON_MINUSBOTTOM: 'share-button-bottom',\r\n};\r\n\r\nfunction assertStoreId(storeId, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertString(\r\n '-pzN7Bwo63',\r\n label_ ? 'store_id' + ': ' + label_ : 'store_id',\r\n storeId\r\n )\r\n );\r\n return messages;\r\n}\r\n\r\nfunction assertLanguage(language, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertString(\r\n '8iHihZ0rO',\r\n label_ ? 'language' + ': ' + label_ : 'language',\r\n language\r\n )\r\n );\r\n if (\r\n 'en' !== language &&\r\n 'es' !== language &&\r\n 'fr' !== language &&\r\n 'de' !== language &&\r\n 'it' !== language &&\r\n 'sv' !== language &&\r\n 'pl' !== language &&\r\n 'zh' !== language\r\n ) {\r\n var message =\r\n (label_ ? 'language' + ': ' + label_ : 'language') +\r\n ' should match one of the following values [ en | es | fr | de | it | sv | pl | zh ] but you provided the value ' +\r\n language;\r\n messages = messages.concat([\r\n {\r\n tag: 'expectedStringMatch',\r\n propertyId: '8iHihZ0rO',\r\n message: message,\r\n },\r\n ]);\r\n }\r\n return messages;\r\n}\r\n\r\nfunction assertIdentifier(identifier, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertString(\r\n 'ByxtedqSm',\r\n label_ ? 'identifier' + ': ' + label_ : 'identifier',\r\n identifier\r\n )\r\n );\r\n return messages;\r\n}\r\n\r\nfunction assertEmployeeName(employeeName, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertString(\r\n 'DRGDPSPvIp',\r\n label_ ? 'employee_name' + ': ' + label_ : 'employee_name',\r\n employeeName\r\n )\r\n );\r\n return messages;\r\n}\r\n\r\nfunction assertVariantId(variantId, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertString(\r\n 'F-139zDCY',\r\n label_ ? 'variant_id' + ': ' + label_ : 'variant_id',\r\n variantId\r\n )\r\n );\r\n return messages;\r\n}\r\n\r\nfunction assertLoggedIn(loggedIn, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertString(\r\n 'Kvhizl7kAi',\r\n label_ ? 'logged_in' + ': ' + label_ : 'logged_in',\r\n loggedIn\r\n )\r\n );\r\n if ('true' !== loggedIn && 'false' !== loggedIn) {\r\n var message =\r\n (label_ ? 'logged_in' + ': ' + label_ : 'logged_in') +\r\n ' should match one of the following values [ true | false ] but you provided the value ' +\r\n loggedIn;\r\n messages = messages.concat([\r\n {\r\n tag: 'expectedStringMatch',\r\n propertyId: 'Kvhizl7kAi',\r\n message: message,\r\n },\r\n ]);\r\n }\r\n return messages;\r\n}\r\n\r\nfunction assertVariation(variation, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertString(\r\n 'L3SQfQSDX',\r\n label_ ? 'variation' + ': ' + label_ : 'variation',\r\n variation\r\n )\r\n );\r\n return messages;\r\n}\r\n\r\nfunction assertOptionalProductsCart(productsCart, label_) {\r\n var messages = [];\r\n if (productsCart !== undefined && productsCart !== null) {\r\n messages = messages.concat(\r\n AvoAssert.assertList('NbRKFviNt', 'products_cart', productsCart)\r\n );\r\n productsCart.forEach(function (value, index) {\r\n messages = messages.concat(\r\n AvoAssert.assertObject(\r\n 'NbRKFviNt',\r\n 'item at index ' + index + ' in products_cart',\r\n value\r\n )\r\n );\r\n messages = messages.concat(\r\n assertAmount(\r\n value.amount,\r\n 'item at index ' + index + ' in products_cart'\r\n )\r\n );\r\n messages = messages.concat(\r\n assertIdentifier(\r\n value.identifier,\r\n 'item at index ' + index + ' in products_cart'\r\n )\r\n );\r\n messages = messages.concat(\r\n assertVariation(\r\n value.variation,\r\n 'item at index ' + index + ' in products_cart'\r\n )\r\n );\r\n messages = messages.concat(\r\n assertCurrency(\r\n value.currency,\r\n 'item at index ' + index + ' in products_cart'\r\n )\r\n );\r\n messages = messages.concat(\r\n assertVariantId(\r\n value.variantId,\r\n 'item at index ' + index + ' in products_cart'\r\n )\r\n );\r\n messages = messages.concat(\r\n assertQuantity(\r\n value.quantity,\r\n 'item at index ' + index + ' in products_cart'\r\n )\r\n );\r\n });\r\n }\r\n return messages;\r\n}\r\n\r\nfunction assertTitle(title, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertString(\r\n 'PPpWWiUlN',\r\n label_ ? 'title' + ': ' + label_ : 'title',\r\n title\r\n )\r\n );\r\n return messages;\r\n}\r\n\r\nfunction assertLocaleVisited(localeVisited, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertString(\r\n 'QSRXqGwpG',\r\n label_ ? 'locale_visited' + ': ' + label_ : 'locale_visited',\r\n localeVisited\r\n )\r\n );\r\n return messages;\r\n}\r\n\r\nfunction assertAmount(amount, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertFloat(\r\n 'Vk6lWRKl5',\r\n label_ ? 'amount' + ': ' + label_ : 'amount',\r\n amount\r\n )\r\n );\r\n messages = messages.concat(\r\n AvoAssert.assertMin(\r\n 'Vk6lWRKl5',\r\n label_ ? 'amount' + ': ' + label_ : 'amount',\r\n 0.0,\r\n amount\r\n )\r\n );\r\n return messages;\r\n}\r\n\r\nfunction assertOptionalReferrer(referrer, label_) {\r\n var messages = [];\r\n if (referrer !== undefined && referrer !== null) {\r\n messages = messages.concat(\r\n AvoAssert.assertString(\r\n '_ufgi4Bvc',\r\n label_ ? 'referrer' + ': ' + label_ : 'referrer',\r\n referrer\r\n )\r\n );\r\n }\r\n return messages;\r\n}\r\n\r\nfunction assertCustomDestinationPageName_(customDestinationPageName_, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertString(\r\n 'avo-enriched-type-page-custom-name',\r\n label_\r\n ? 'Custom Destination Page Name' + ': ' + label_\r\n : 'Custom Destination Page Name',\r\n customDestinationPageName_\r\n )\r\n );\r\n return messages;\r\n}\r\n\r\nfunction assertCountry(country, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertString(\r\n 'bCDyX8-bZ',\r\n label_ ? 'country' + ': ' + label_ : 'country',\r\n country\r\n )\r\n );\r\n if (\r\n 'us' !== country &&\r\n 'ca' !== country &&\r\n 'nl' !== country &&\r\n 'gb' !== country &&\r\n 'de' !== country &&\r\n 'fr' !== country &&\r\n 'be' !== country &&\r\n 'it' !== country &&\r\n 'se' !== country &&\r\n 'ch' !== country &&\r\n 'pl' !== country &&\r\n 'es' !== country &&\r\n 'fi' !== country &&\r\n 'dk' !== country &&\r\n 'at' !== country &&\r\n 'no' !== country &&\r\n 'cz' !== country &&\r\n 'hr' !== country &&\r\n 'hu' !== country &&\r\n 'ee' !== country &&\r\n 'lv' !== country &&\r\n 'lt' !== country &&\r\n 'gr' !== country &&\r\n 'ie' !== country &&\r\n 'sg' !== country &&\r\n 'in' !== country &&\r\n 'au' !== country &&\r\n 'cn' !== country &&\r\n 'bn' !== country &&\r\n 'jp' !== country &&\r\n 'hk' !== country &&\r\n 'mo' !== country &&\r\n 'mv' !== country &&\r\n 'my' !== country &&\r\n 'ir' !== country &&\r\n 'ly' !== country &&\r\n 'pt' !== country &&\r\n 'ro' !== country &&\r\n 'cy' !== country &&\r\n 'sk' !== country &&\r\n 'bg' !== country &&\r\n 'si' !== country &&\r\n 'ae' !== country &&\r\n 'gh' !== country &&\r\n 'gi' !== country &&\r\n 'gw' !== country &&\r\n 'is' !== country &&\r\n 'je' !== country &&\r\n 'li' !== country &&\r\n 'mc' !== country &&\r\n 'mt' !== country &&\r\n 'qa' !== country &&\r\n 'do' !== country &&\r\n 'gp' !== country &&\r\n 'mq' !== country &&\r\n 'pr' !== country &&\r\n 'tt' !== country\r\n ) {\r\n var message =\r\n (label_ ? 'country' + ': ' + label_ : 'country') +\r\n ' should match one of the following values [ us | ca | nl | gb | de | fr | be | it | se | ch | pl | es | fi | dk | at | no | cz | hr | hu | ee | lv | lt | gr | ie | sg | in | au | cn | bn | jp | hk | mo | mv | my | ir | ly | pt | ro | cy | sk | bg | si | ae | gh | gi | gw | is | je | li | mc | mt | qa | do | gp | mq | pr | tt ] but you provided the value ' +\r\n country;\r\n messages = messages.concat([\r\n {\r\n tag: 'expectedStringMatch',\r\n propertyId: 'bCDyX8-bZ',\r\n message: message,\r\n },\r\n ]);\r\n }\r\n return messages;\r\n}\r\n\r\nfunction assertQuantity(quantity, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertInt(\r\n 'fg1kaNXr_',\r\n label_ ? 'quantity' + ': ' + label_ : 'quantity',\r\n quantity\r\n )\r\n );\r\n messages = messages.concat(\r\n AvoAssert.assertMin(\r\n 'fg1kaNXr_',\r\n label_ ? 'quantity' + ': ' + label_ : 'quantity',\r\n 1,\r\n quantity\r\n )\r\n );\r\n return messages;\r\n}\r\n\r\nfunction assertPageType(pageType, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertString(\r\n 'gppkY78PuY',\r\n label_ ? 'page_type' + ': ' + label_ : 'page_type',\r\n pageType\r\n )\r\n );\r\n if (\r\n 'home' !== pageType &&\r\n 'product' !== pageType &&\r\n 'category' !== pageType &&\r\n 'journal' !== pageType &&\r\n 'store' !== pageType &&\r\n 'lookbuilder' !== pageType &&\r\n 'login' !== pageType &&\r\n 'wishlist' !== pageType &&\r\n 'account' !== pageType &&\r\n 'checkout' !== pageType &&\r\n 'cart' !== pageType &&\r\n 'support' !== pageType &&\r\n 'custommade' !== pageType &&\r\n 'giftcard' !== pageType &&\r\n 'error' !== pageType\r\n ) {\r\n var message =\r\n (label_ ? 'page_type' + ': ' + label_ : 'page_type') +\r\n ' should match one of the following values [ home | product | category | journal | store | lookbuilder | login | wishlist | account | checkout | cart | support | custommade | giftcard | error ] but you provided the value ' +\r\n pageType;\r\n messages = messages.concat([\r\n {\r\n tag: 'expectedStringMatch',\r\n propertyId: 'gppkY78PuY',\r\n message: message,\r\n },\r\n ]);\r\n }\r\n return messages;\r\n}\r\n\r\nfunction assertCurrency(currency, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertString(\r\n 'jhDpoElQU',\r\n label_ ? 'currency' + ': ' + label_ : 'currency',\r\n currency\r\n )\r\n );\r\n if (\r\n 'eur' !== currency &&\r\n 'usd' !== currency &&\r\n 'cny' !== currency &&\r\n 'aud' !== currency &&\r\n 'bgn' !== currency &&\r\n 'cad' !== currency &&\r\n 'czk' !== currency &&\r\n 'dkk' !== currency &&\r\n 'hkd' !== currency &&\r\n 'huf' !== currency &&\r\n 'isk' !== currency &&\r\n 'inr' !== currency &&\r\n 'jpy' !== currency &&\r\n 'chf' !== currency &&\r\n 'mop' !== currency &&\r\n 'myr' !== currency &&\r\n 'nok' !== currency &&\r\n 'qar' !== currency &&\r\n 'ron' !== currency &&\r\n 'sgd' !== currency &&\r\n 'sek' !== currency &&\r\n 'aed' !== currency &&\r\n 'gbp' !== currency\r\n ) {\r\n var message =\r\n (label_ ? 'currency' + ': ' + label_ : 'currency') +\r\n ' should match one of the following values [ eur | usd | cny | aud | bgn | cad | czk | dkk | hkd | huf | isk | inr | jpy | chf | mop | myr | nok | qar | ron | sgd | sek | aed | gbp ] but you provided the value ' +\r\n currency;\r\n messages = messages.concat([\r\n {\r\n tag: 'expectedStringMatch',\r\n propertyId: 'jhDpoElQU',\r\n message: message,\r\n },\r\n ]);\r\n }\r\n return messages;\r\n}\r\n\r\nfunction assertLocationId(locationId, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertString(\r\n 'memdKZdQJ1',\r\n label_ ? 'location_id' + ': ' + label_ : 'location_id',\r\n locationId\r\n )\r\n );\r\n return messages;\r\n}\r\n\r\nfunction assertPath(path, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertString(\r\n 'oWTNrOLzR',\r\n label_ ? 'path' + ': ' + label_ : 'path',\r\n path\r\n )\r\n );\r\n return messages;\r\n}\r\n\r\nfunction assertUrl(url, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertString(\r\n 'olJP9CQ0tb',\r\n label_ ? 'url' + ': ' + label_ : 'url',\r\n url\r\n )\r\n );\r\n return messages;\r\n}\r\n\r\nfunction assertUserId(userId, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertString(\r\n 'piJkZJx8sqS',\r\n label_ ? 'user_id' + ': ' + label_ : 'user_id',\r\n userId\r\n )\r\n );\r\n return messages;\r\n}\r\n\r\nfunction assertEventLocation(eventLocation, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertString(\r\n 'te07FO5wjg',\r\n label_ ? 'event_location' + ': ' + label_ : 'event_location',\r\n eventLocation\r\n )\r\n );\r\n if (\r\n 'shop-the-look_slider' !== eventLocation &&\r\n 'wishlist_panel' !== eventLocation &&\r\n 'minicart_panel' !== eventLocation &&\r\n 'shop-the-look_panel' !== eventLocation &&\r\n 'size-passport_panel' !== eventLocation &&\r\n 'pdp' !== eventLocation &&\r\n 'products_mwtw_1' !== eventLocation &&\r\n 'products_mwtw_2' !== eventLocation &&\r\n 'products_mwtw_3' !== eventLocation &&\r\n 'products_mwtw_4' !== eventLocation &&\r\n 'products_mwtw_5' !== eventLocation &&\r\n 'share-button-top' !== eventLocation &&\r\n 'share-button-bottom' !== eventLocation\r\n ) {\r\n var message =\r\n (label_ ? 'event_location' + ': ' + label_ : 'event_location') +\r\n ' should match one of the following values [ shop-the-look_slider | wishlist_panel | minicart_panel | shop-the-look_panel | size-passport_panel | pdp | products_mwtw_1 | products_mwtw_2 | products_mwtw_3 | products_mwtw_4 | products_mwtw_5 | share-button-top | share-button-bottom ] but you provided the value ' +\r\n eventLocation;\r\n messages = messages.concat([\r\n {\r\n tag: 'expectedStringMatch',\r\n propertyId: 'te07FO5wjg',\r\n message: message,\r\n },\r\n ]);\r\n }\r\n return messages;\r\n}\r\n\r\nfunction assertEmployeeId(employeeId, label_) {\r\n var messages = [];\r\n messages = messages.concat(\r\n AvoAssert.assertString(\r\n 'vdMICFJ-rs',\r\n label_ ? 'employee_id' + ': ' + label_ : 'employee_id',\r\n employeeId\r\n )\r\n );\r\n return messages;\r\n}\r\n\r\nfunction setAvoLogger(avoLogger) {\r\n __AVO_LOGGER__ = avoLogger;\r\n}\r\n\r\nvar Segment;\r\nfunction setup_(\r\n options,\r\n systemProperties,\r\n SegmentDestination,\r\n destinationOptions\r\n) {\r\n __WEB_DEBUGGER__ = false;\r\n if (options.validateProperties === true) {\r\n __AVO_DEV__ = true;\r\n }\r\n\r\n destinationOptions = destinationOptions || {};\r\n\r\n if (!__AVO_NOOP__) {\r\n if (options.useProductionKey) {\r\n } else {\r\n }\r\n\r\n Segment = SegmentDestination;\r\n Segment?.make(options.useProductionKey);\r\n if (__AVO_DEV__) {\r\n // debug console in Avo\r\n _avo_invoke_meta(__AVO_ENV__, 'setup', [], 'setup');\r\n }\r\n }\r\n}\r\n\r\nfunction initAvo(\r\n options,\r\n systemProperties,\r\n destinationOptions,\r\n SegmentDestination\r\n) {\r\n if (__AVO_ENV__ !== null) {\r\n return;\r\n }\r\n __AVO_ENV__ = options.env.toLowerCase();\r\n if (options.avoLogger !== undefined) {\r\n __AVO_LOGGER__ = options.avoLogger;\r\n }\r\n if (options.noop === true) {\r\n __AVO_NOOP__ = true;\r\n }\r\n if (__AVO_NOOP__ && __AVO_ENV__ == 'prod') {\r\n InternalAvoLogger.warn(\r\n '****************************************************'\r\n );\r\n InternalAvoLogger.warn(\r\n 'WARNING Avo cannot be initialized in noop mode in production:'\r\n );\r\n InternalAvoLogger.warn('- Overwriting configuration with noop=false.');\r\n InternalAvoLogger.warn(\r\n '- Please reach out if you want to be able to run Avo in production mode with noop=true'\r\n );\r\n InternalAvoLogger.warn(\r\n '****************************************************'\r\n );\r\n __AVO_NOOP__ = false;\r\n }\r\n if (__AVO_NOOP__) {\r\n InternalAvoLogger.log(\r\n '****************************************************'\r\n );\r\n InternalAvoLogger.log(\r\n 'Avo is now initialized in noop mode. This means:'\r\n );\r\n InternalAvoLogger.log('- No events will be sent');\r\n InternalAvoLogger.log('- No network requests are made');\r\n InternalAvoLogger.log(\r\n '****************************************************'\r\n );\r\n }\r\n if (options.strict !== undefined) {\r\n __STRICT__ = options.strict !== false;\r\n }\r\n if (options.reportFailureAs !== undefined) {\r\n __REPORT_FAILURE_AS__ = options.reportFailureAs;\r\n }\r\n __WEB_DEBUGGER__ =\r\n !__AVO_NOOP__ &&\r\n ((typeof window !== 'undefined' &&\r\n window.location.search.indexOf('avo_debug=1') > -1) ||\r\n (options.webDebugger !== false && __AVO_ENV__ !== 'prod'));\r\n if (!__AVO_NOOP__ && options.inspector !== undefined) {\r\n __INSPECTOR__ = options.inspector;\r\n } else if (__AVO_ENV__ !== 'prod') {\r\n InternalAvoLogger.warn('Avo Inspector not provided in initAvo() call');\r\n }\r\n if (__AVO_ENV__ !== 'prod') {\r\n __AVO_DEV__ = true;\r\n }\r\n\r\n destinationOptions = destinationOptions || {};\r\n\r\n if (__WEB_DEBUGGER__ && !__AVO_NOOP__) {\r\n if (options.webDebuggerOptions && options.webDebuggerOptions.position) {\r\n const {\r\n BOTTOM_RIGHT,\r\n BOTTOM_LEFT,\r\n TOP_RIGHT,\r\n TOP_LEFT,\r\n } = WebDebuggerPosition.position;\r\n\r\n try {\r\n WebDebuggerAssertions.assertKey(\r\n options.webDebuggerOptions.position,\r\n 'position',\r\n (position) => {\r\n return (\r\n position === BOTTOM_RIGHT ||\r\n position === BOTTOM_LEFT ||\r\n position === TOP_RIGHT ||\r\n position === TOP_LEFT\r\n );\r\n }\r\n );\r\n } catch (e) {\r\n throw new Error(\r\n 'WebDebugger: Position object incorrect. Use methods from WebDebuggerPosition.'\r\n );\r\n }\r\n\r\n const top = options.webDebuggerOptions.position.top || 0;\r\n const right = options.webDebuggerOptions.position.right || 0;\r\n const bottom = options.webDebuggerOptions.position.bottom || 0;\r\n const left = options.webDebuggerOptions.position.left || 0;\r\n\r\n let positionParams;\r\n\r\n switch (options.webDebuggerOptions.position.position) {\r\n case BOTTOM_RIGHT:\r\n positionParams = {\r\n position: BOTTOM_RIGHT,\r\n bottom,\r\n right,\r\n };\r\n break;\r\n case BOTTOM_LEFT:\r\n positionParams = {\r\n position: BOTTOM_LEFT,\r\n bottom,\r\n left,\r\n };\r\n break;\r\n case TOP_RIGHT:\r\n positionParams = {\r\n position: TOP_RIGHT,\r\n top,\r\n right,\r\n };\r\n break;\r\n case TOP_LEFT:\r\n positionParams = {\r\n position: TOP_LEFT,\r\n top,\r\n left,\r\n };\r\n break;\r\n default:\r\n throw new Error(\r\n 'WebDebugger: Position object incorrect. Use methods from WebDebuggerPosition.'\r\n );\r\n }\r\n\r\n _avo_debugger_send_position(positionParams);\r\n }\r\n\r\n (function () {\r\n if (typeof window === 'undefined') {\r\n return;\r\n }\r\n var init = function () {\r\n if (document.getElementById('avo-debugger') === null) {\r\n var iframe = document.createElement('iframe');\r\n document.body.appendChild(iframe);\r\n iframe.id = 'avo-debugger';\r\n iframe.src = 'https://www.avo.app/_debugger';\r\n iframe.style = 'display: none;';\r\n }\r\n };\r\n\r\n if (document.body) {\r\n init();\r\n } else {\r\n document.addEventListener('DOMContentLoaded', init);\r\n }\r\n })();\r\n }\r\n if (!__AVO_NOOP__) {\r\n if (__AVO_ENV__ === 'prod') {\r\n }\r\n if (__AVO_ENV__ === 'dev') {\r\n }\r\n\r\n Segment = SegmentDestination;\r\n if (__AVO_ENV__ === 'prod') {\r\n Segment?.make && Segment?.make(__AVO_ENV__, null);\r\n } else if (__AVO_ENV__ === 'dev') {\r\n Segment?.make && Segment?.make(__AVO_ENV__, null);\r\n } else {\r\n console[__REPORT_FAILURE_AS__ || 'error'](\r\n '[avo] No staging key is set for Segment. Head to destination settings in Avo to set a staging key.'\r\n );\r\n Segment?.make && Segment?.make(__AVO_ENV__, null);\r\n }\r\n if (__AVO_DEV__) {\r\n // debug console in Avo\r\n _avo_invoke_meta(__AVO_ENV__, 'init', [], 'init');\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * Page Loaded: When a page or a virtual page is loaded\r\n for custommade: products_cart and referrer nog needed\r\n *\r\n * When to trigger this event:\r\n * 1. Custommade Suits page 1:\r\n \r\n url:\r\n suitsupply.com/custommade/suit/fabric\r\n location_id: suitsupply.com/en-nl/custommade/suit/fabric\r\n title: \"Select your fabric\"\r\n * View in Avo: https://www.avo.app/schemas/JmwsgKTQe50MTmUE9FVs/branches/LMXy5Jhst/events/4l0ZskS226/trigger/ilo2Fao9X\r\n * 2. Custommade Suits - jacket:\r\n \r\n url:\r\n suitsupply.com/custommade/suit/jacket\r\n location_id: suitsupply.com/en-nl/custommade/suit/jacket\r\n title: \"Customize your jacket\"\r\n * View in Avo: https://www.avo.app/schemas/JmwsgKTQe50MTmUE9FVs/branches/LMXy5Jhst/events/4l0ZskS226/trigger/EJGPRxCWM\r\n * 3. Custommade Suits - jacket - Style:\r\n \r\n url:\r\n suitsupply.com/custommade/suit/jacket/style\r\n location_id: suitsupply.com/en-nl/custommade/suit/jacket/style\r\n title: customize your jacket style\r\n * View in Avo: https://www.avo.app/schemas/JmwsgKTQe50MTmUE9FVs/branches/LMXy5Jhst/events/4l0ZskS226/trigger/8DnMiHdiv\r\n * 4. Custommade Suits - trousers - Style:\r\n \r\n url:\r\n suitsupply.com/custommade/suit/trousers/style\r\n location_id: suitsupply.com/en-nl/custommade/suit/trousers/style\r\n title: customize your trousers style\r\n * View in Avo: https://www.avo.app/schemas/JmwsgKTQe50MTmUE9FVs/branches/LMXy5Jhst/events/4l0ZskS226/trigger/Y-U_FnScC\r\n * 5. Custommade Suits - trousers:\r\n \r\n url:\r\n suitsupply.com/custommade/suit/trousers\r\n location_id: suitsupply.com/en-nl/custommade/suit/trousers\r\n title: \"Customize your trousers\"\r\n * View in Avo: https://www.avo.app/schemas/JmwsgKTQe50MTmUE9FVs/branches/LMXy5Jhst/events/4l0ZskS226/trigger/lDHJUY7uw\r\n * 6. Custommade Suits - Waistcoat:\r\n \r\n url:\r\n suitsupply.com/custommade/suit/waistcoat\r\n location_id: suitsupply.com/en-nl/custommade/suit/waistcoat\r\n title: \"Customize your waistcoat\"\r\n * View in Avo: https://www.avo.app/schemas/JmwsgKTQe50MTmUE9FVs/branches/LMXy5Jhst/events/4l0ZskS226/trigger/hGYSO6MWH\r\n * 7. Custommade Suits - summary\r\n \r\n url:\r\n suitsupply.com/custommade/suit/summary/\r\n location_id: suitsupply.com/en-nl/custommade/suit/summary/\r\n title: \"Your summary\"\r\n * View in Avo: https://www.avo.app/schemas/JmwsgKTQe50MTmUE9FVs/branches/LMXy5Jhst/events/4l0ZskS226/trigger/tB6E44bgl\r\n *\r\n * @param {object} properties - the properties associatied with this event\r\n * @param {string} properties.currency - Currency code, ISO standard in lowercase letters\r\n * @param {string} properties.country - Local country of website, ISO standard, lowercase\r\n * @param {string} properties.language - language used on page, ISO standard, lowercase\r\n * @param {string} properties.url - URL without locale\r\n * @param {string} properties.locationId - Url with locale\r\n * @param {string} properties.userId - Unique customer ID\r\n * @param {string} properties.loggedIn - 'true' or 'false'\r\n * @param {string} properties.pageType - describes the page_type\r\n * @param {string} properties.customDestinationPageName_ - Name of the page or screen\r\n * @param {string} properties.localeVisited - Locale visited, for example en-us or es-us\r\n * @param {string} properties.title - Pagetitle, lowercase in native English\r\n * @param {string} properties.path - Path portion of the page’s URL. Equivalent to canonical path which defaults to location.pathname from the DOM API.\r\n * @param {string} [properties.referrer] - Previous page’s full URL. Equivalent to document.referrer from the DOM API.\r\n \r\n * @param {Array} [properties.productsCart] - Previously known ssm_products. Should contain an array of all products in the cart. Needs to be cleared on the 'Order Completed' event.\r\n *\r\n * @see {@link https://www.avo.app/schemas/JmwsgKTQe50MTmUE9FVs/branches/LMXy5Jhst/events/4l0ZskS226}\r\n */\r\nexport function pageLoaded(properties) {\r\n properties = properties || {};\r\n if (__AVO_DEV__ || __WEB_DEBUGGER__) {\r\n // assert properties\r\n var messages = [];\r\n\r\n messages = messages.concat(assertTitle(properties.title));\r\n messages = messages.concat(assertPath(properties.path));\r\n messages = messages.concat(\r\n AvoAssert.assertNoAdditionalProperties(\r\n 'Page Loaded',\r\n Object.keys(properties),\r\n ['title', 'path']\r\n )\r\n );\r\n // debug console in Avo\r\n if (!__AVO_NOOP__) {\r\n _avo_invoke(\r\n __AVO_ENV__,\r\n '4l0ZskS226',\r\n '69d859151b62b07967f18ac10189fdfb2ff170b09b3bb0eea53b1e3334e29c22',\r\n messages.map(function (m) {\r\n return Object.assign(\r\n {},\r\n {\r\n tag: m.tag,\r\n propertyId: m.propertyId,\r\n additionalProperties: m.additionalProperties,\r\n actualType: m.actualType,\r\n }\r\n );\r\n }),\r\n 'event'\r\n );\r\n }\r\n\r\n InternalAvoLogger.logEventSent(\r\n 'Page Loaded',\r\n {\r\n title: properties.title,\r\n path: properties.path,\r\n },\r\n {},\r\n {}\r\n );\r\n if (__WEB_DEBUGGER__) {\r\n // Avo web debugger\r\n _avo_debugger_log(\r\n '4l0ZskS226',\r\n 'Page Loaded',\r\n messages,\r\n [\r\n {\r\n id: '8iHihZ0rO',\r\n name: 'language',\r\n value: properties.language,\r\n },\r\n {\r\n id: 'ByxtedqSm',\r\n name: 'identifier',\r\n value: properties.identifier,\r\n },\r\n {\r\n id: 'F-139zDCY',\r\n name: 'variant_id',\r\n value: properties.variantId,\r\n },\r\n {\r\n id: 'Kvhizl7kAi',\r\n name: 'logged_in',\r\n value: properties.loggedIn,\r\n },\r\n {\r\n id: 'L3SQfQSDX',\r\n name: 'variation',\r\n value: properties.variation,\r\n },\r\n {\r\n id: 'NbRKFviNt',\r\n name: 'products_cart',\r\n value: properties.productsCart,\r\n },\r\n { id: 'PPpWWiUlN', name: 'title', value: properties.title },\r\n {\r\n id: 'QSRXqGwpG',\r\n name: 'locale_visited',\r\n value: properties.localeVisited,\r\n },\r\n {\r\n id: 'Vk6lWRKl5',\r\n name: 'amount',\r\n value: properties.amount,\r\n },\r\n {\r\n id: '_ufgi4Bvc',\r\n name: 'referrer',\r\n value: properties.referrer,\r\n },\r\n {\r\n id: 'bCDyX8-bZ',\r\n name: 'country',\r\n value: properties.country,\r\n },\r\n {\r\n id: 'fg1kaNXr_',\r\n name: 'quantity',\r\n value: properties.quantity,\r\n },\r\n {\r\n id: 'gppkY78PuY',\r\n name: 'page_type',\r\n value: properties.pageType,\r\n },\r\n {\r\n id: 'jhDpoElQU',\r\n name: 'currency',\r\n value: properties.currency,\r\n },\r\n {\r\n id: 'memdKZdQJ1',\r\n name: 'location_id',\r\n value: properties.locationId,\r\n },\r\n { id: 'oWTNrOLzR', name: 'path', value: properties.path },\r\n { id: 'olJP9CQ0tb', name: 'url', value: properties.url },\r\n {\r\n id: 'piJkZJx8sqS',\r\n name: 'user_id',\r\n value: properties.userId,\r\n },\r\n ],\r\n [],\r\n []\r\n );\r\n }\r\n if (__AVO_DEV__ && (__STRICT__ === null || __STRICT__)) {\r\n // throw exception if messages is not empty\r\n if (messages.length !== 0) {\r\n throw new Error(\r\n \"Error sending event 'Page Loaded': \" + messages[0].message\r\n );\r\n }\r\n } else {\r\n messages.forEach(function (m) {\r\n console[__REPORT_FAILURE_AS__ || 'error']('[avo] ' + m.message);\r\n });\r\n }\r\n }\r\n\r\n if (!__AVO_NOOP__) {\r\n if (__INSPECTOR__ != null) {\r\n __INSPECTOR__._avoFunctionTrackSchemaFromEvent(\r\n 'Page Loaded',\r\n {\r\n currency: properties.currency,\r\n country: properties.country,\r\n language: properties.language,\r\n url: properties.url,\r\n location_id: properties.locationId,\r\n user_id: properties.userId,\r\n logged_in: properties.loggedIn,\r\n page_type: properties.pageType,\r\n locale_visited: properties.localeVisited,\r\n title: properties.title,\r\n path: properties.path,\r\n referrer: properties.referrer,\r\n products_cart:\r\n properties.productsCart !== undefined &&\r\n properties.productsCart !== null\r\n ? properties.productsCart.map(function (value) {\r\n return {\r\n amount: value.amount,\r\n identifier: value.identifier,\r\n variation: value.variation,\r\n currency: value.currency,\r\n variant_id: value.variantId,\r\n quantity: value.quantity,\r\n };\r\n })\r\n : properties.productsCart,\r\n },\r\n '4l0ZskS226',\r\n '69d859151b62b07967f18ac10189fdfb2ff170b09b3bb0eea53b1e3334e29c22'\r\n );\r\n }\r\n // destination Segment\r\n Segment?.page\r\n ? Segment?.page(properties.customDestinationPageName_, {\r\n currency: properties.currency,\r\n country: properties.country,\r\n language: properties.language,\r\n url: properties.url,\r\n location_id: properties.locationId,\r\n user_id: properties.userId,\r\n logged_in: properties.loggedIn,\r\n page_type: properties.pageType,\r\n locale_visited: properties.localeVisited,\r\n title: properties.title,\r\n path: properties.path,\r\n referrer: properties.referrer,\r\n products_cart:\r\n properties.productsCart !== undefined &&\r\n properties.productsCart !== null\r\n ? properties.productsCart.map(function (value) {\r\n return {\r\n amount: value.amount,\r\n identifier: value.identifier,\r\n variation: value.variation,\r\n currency: value.currency,\r\n variant_id: value.variantId,\r\n quantity: value.quantity,\r\n };\r\n })\r\n : properties.productsCart,\r\n })\r\n : InternalAvoLogger.error(\r\n 'Page method is not implemented in the destination',\r\n ''\r\n );\r\n Segment?.logEvent('Page Loaded', {\r\n currency: properties.currency,\r\n country: properties.country,\r\n language: properties.language,\r\n url: properties.url,\r\n location_id: properties.locationId,\r\n user_id: properties.userId,\r\n logged_in: properties.loggedIn,\r\n page_type: properties.pageType,\r\n locale_visited: properties.localeVisited,\r\n title: properties.title,\r\n path: properties.path,\r\n referrer: properties.referrer,\r\n products_cart:\r\n properties.productsCart !== undefined &&\r\n properties.productsCart !== null\r\n ? properties.productsCart.map(function (value) {\r\n return {\r\n amount: value.amount,\r\n identifier: value.identifier,\r\n variation: value.variation,\r\n currency: value.currency,\r\n variant_id: value.variantId,\r\n quantity: value.quantity,\r\n };\r\n })\r\n : properties.productsCart,\r\n });\r\n } else {\r\n // do nothing\r\n }\r\n}\r\n\r\n/**\r\n * booking_tool_opened: When clicking on \"Book your appointment\" on the employee profile page\r\n *\r\n * When to trigger this event:\r\n * 1.\r\n * View in Avo: https://www.avo.app/schemas/JmwsgKTQe50MTmUE9FVs/branches/LMXy5Jhst/events/kry0pvlyM5/trigger/GGgmr-Xqm\r\n *\r\n * @param {object} properties - the properties associatied with this event\r\n * @param {string} properties.storeId - Store Id of the selected store\r\n * @param {string} properties.employeeId - Style Advisor ID of the selected style advisor in the booking tool\r\n * @param {string} properties.employeeName - Name of the style advisor\r\n *\r\n * @see {@link https://www.avo.app/schemas/JmwsgKTQe50MTmUE9FVs/branches/LMXy5Jhst/events/kry0pvlyM5}\r\n */\r\nexport function bookingToolOpened(properties) {\r\n properties = properties || {};\r\n if (__AVO_DEV__ || __WEB_DEBUGGER__) {\r\n // assert properties\r\n var messages = [];\r\n messages = messages.concat(assertStoreId(properties.storeId));\r\n messages = messages.concat(assertEmployeeId(properties.employeeId));\r\n messages = messages.concat(assertEmployeeName(properties.employeeName));\r\n messages = messages.concat(\r\n AvoAssert.assertNoAdditionalProperties(\r\n 'booking_tool_opened',\r\n Object.keys(properties),\r\n ['storeId', 'employeeId', 'employeeName']\r\n )\r\n );\r\n // debug console in Avo\r\n if (!__AVO_NOOP__) {\r\n _avo_invoke(\r\n __AVO_ENV__,\r\n 'kry0pvlyM5',\r\n '5bd9cc839b680194a25109159a5fd59cb5055b1c56c53efb57bb80cda1b7c519',\r\n messages.map(function (m) {\r\n return Object.assign(\r\n {},\r\n {\r\n tag: m.tag,\r\n propertyId: m.propertyId,\r\n additionalProperties: m.additionalProperties,\r\n actualType: m.actualType,\r\n }\r\n );\r\n }),\r\n 'event'\r\n );\r\n }\r\n\r\n InternalAvoLogger.logEventSent(\r\n 'booking_tool_opened',\r\n {\r\n store_id: properties.storeId,\r\n employee_id: properties.employeeId,\r\n employee_name: properties.employeeName,\r\n },\r\n {},\r\n {}\r\n );\r\n if (__WEB_DEBUGGER__) {\r\n // Avo web debugger\r\n _avo_debugger_log(\r\n 'kry0pvlyM5',\r\n 'booking_tool_opened',\r\n messages,\r\n [\r\n {\r\n id: '-pzN7Bwo63',\r\n name: 'store_id',\r\n value: properties.storeId,\r\n },\r\n {\r\n id: 'DRGDPSPvIp',\r\n name: 'employee_name',\r\n value: properties.employeeName,\r\n },\r\n {\r\n id: 'vdMICFJ-rs',\r\n name: 'employee_id',\r\n value: properties.employeeId,\r\n },\r\n ],\r\n [],\r\n []\r\n );\r\n }\r\n if (__AVO_DEV__ && (__STRICT__ === null || __STRICT__)) {\r\n // throw exception if messages is not empty\r\n if (messages.length !== 0) {\r\n throw new Error(\r\n \"Error sending event 'booking_tool_opened': \" +\r\n messages[0].message\r\n );\r\n }\r\n } else {\r\n messages.forEach(function (m) {\r\n console[__REPORT_FAILURE_AS__ || 'error']('[avo] ' + m.message);\r\n });\r\n }\r\n }\r\n\r\n if (!__AVO_NOOP__) {\r\n if (__INSPECTOR__ != null) {\r\n __INSPECTOR__._avoFunctionTrackSchemaFromEvent(\r\n 'booking_tool_opened',\r\n {\r\n store_id: properties.storeId,\r\n employee_id: properties.employeeId,\r\n employee_name: properties.employeeName,\r\n },\r\n 'kry0pvlyM5',\r\n '5bd9cc839b680194a25109159a5fd59cb5055b1c56c53efb57bb80cda1b7c519'\r\n );\r\n }\r\n // destination Segment\r\n Segment?.logEvent('booking_tool_opened', {\r\n store_id: properties.storeId,\r\n employee_id: properties.employeeId,\r\n employee_name: properties.employeeName,\r\n });\r\n } else {\r\n // do nothing\r\n }\r\n}\r\n\r\n/**\r\n * share_button_clicked: When clicking on share button in the Employee Profile Page,\r\n 2 variants: top and bottom, described in property name event_location\r\n *\r\n * When to trigger this event:\r\n * 1.\r\n * View in Avo: https://www.avo.app/schemas/JmwsgKTQe50MTmUE9FVs/branches/LMXy5Jhst/events/ePxeA-Jra8/trigger/58kpY_pVU\r\n * 2.\r\n * View in Avo: https://www.avo.app/schemas/JmwsgKTQe50MTmUE9FVs/branches/LMXy5Jhst/events/ePxeA-Jra8/trigger/q4D0NjtMb\r\n *\r\n * @param {object} properties - the properties associatied with this event\r\n * @param {string} properties.storeId - Store Id of the selected store\r\n * @param {string} properties.eventLocation - Describes where event is located on the website. Never applicable to 'ecommerce' events, and\r\n \r\n - For wishlist panel: wishlist_panel\r\n - For add to bag panel: minicart_panel\r\n - For OOS panel: oos\r\n - For shop the look panel: \"products_mwtw_{{number}}\"\r\n - For mix and match panel: mixandmatch\r\n - for Perfect White shirt finder: pwsf_panel\r\n - For Size Passport: size-passport_panel\r\n - For PDP size guide button: pdp\r\n * @param {string} properties.employeeId - Style Advisor ID of the selected style advisor in the booking tool\r\n * @param {string} properties.employeeName - Name of the style advisor\r\n *\r\n * @see {@link https://www.avo.app/schemas/JmwsgKTQe50MTmUE9FVs/branches/LMXy5Jhst/events/ePxeA-Jra8}\r\n */\r\nexport function shareButtonClicked(properties) {\r\n properties = properties || {};\r\n if (__AVO_DEV__ || __WEB_DEBUGGER__) {\r\n // assert properties\r\n var messages = [];\r\n messages = messages.concat(assertStoreId(properties.storeId));\r\n messages = messages.concat(\r\n assertEventLocation(properties.eventLocation)\r\n );\r\n messages = messages.concat(assertEmployeeId(properties.employeeId));\r\n messages = messages.concat(assertEmployeeName(properties.employeeName));\r\n messages = messages.concat(\r\n AvoAssert.assertNoAdditionalProperties(\r\n 'share_button_clicked',\r\n Object.keys(properties),\r\n ['storeId', 'eventLocation', 'employeeId', 'employeeName']\r\n )\r\n );\r\n // debug console in Avo\r\n if (!__AVO_NOOP__) {\r\n _avo_invoke(\r\n __AVO_ENV__,\r\n 'ePxeA-Jra8',\r\n '197358b91a2d474cfef805fc24dd60109156fe9c564898153c75b11a85f85238',\r\n messages.map(function (m) {\r\n return Object.assign(\r\n {},\r\n {\r\n tag: m.tag,\r\n propertyId: m.propertyId,\r\n additionalProperties: m.additionalProperties,\r\n actualType: m.actualType,\r\n }\r\n );\r\n }),\r\n 'event'\r\n );\r\n }\r\n\r\n InternalAvoLogger.logEventSent(\r\n 'share_button_clicked',\r\n {\r\n store_id: properties.storeId,\r\n event_location: properties.eventLocation,\r\n employee_id: properties.employeeId,\r\n employee_name: properties.employeeName,\r\n },\r\n {},\r\n {}\r\n );\r\n if (__WEB_DEBUGGER__) {\r\n // Avo web debugger\r\n _avo_debugger_log(\r\n 'ePxeA-Jra8',\r\n 'share_button_clicked',\r\n messages,\r\n [\r\n {\r\n id: '-pzN7Bwo63',\r\n name: 'store_id',\r\n value: properties.storeId,\r\n },\r\n {\r\n id: 'DRGDPSPvIp',\r\n name: 'employee_name',\r\n value: properties.employeeName,\r\n },\r\n {\r\n id: 'te07FO5wjg',\r\n name: 'event_location',\r\n value: properties.eventLocation,\r\n },\r\n {\r\n id: 'vdMICFJ-rs',\r\n name: 'employee_id',\r\n value: properties.employeeId,\r\n },\r\n ],\r\n [],\r\n []\r\n );\r\n }\r\n if (__AVO_DEV__ && (__STRICT__ === null || __STRICT__)) {\r\n // throw exception if messages is not empty\r\n if (messages.length !== 0) {\r\n throw new Error(\r\n \"Error sending event 'share_button_clicked': \" +\r\n messages[0].message\r\n );\r\n }\r\n } else {\r\n messages.forEach(function (m) {\r\n console[__REPORT_FAILURE_AS__ || 'error']('[avo] ' + m.message);\r\n });\r\n }\r\n }\r\n\r\n if (!__AVO_NOOP__) {\r\n if (__INSPECTOR__ != null) {\r\n __INSPECTOR__._avoFunctionTrackSchemaFromEvent(\r\n 'share_button_clicked',\r\n {\r\n store_id: properties.storeId,\r\n event_location: properties.eventLocation,\r\n employee_id: properties.employeeId,\r\n employee_name: properties.employeeName,\r\n },\r\n 'ePxeA-Jra8',\r\n '197358b91a2d474cfef805fc24dd60109156fe9c564898153c75b11a85f85238'\r\n );\r\n }\r\n // destination Segment\r\n Segment?.logEvent('share_button_clicked', {\r\n store_id: properties.storeId,\r\n event_location: properties.eventLocation,\r\n employee_id: properties.employeeId,\r\n employee_name: properties.employeeName,\r\n });\r\n } else {\r\n // do nothing\r\n }\r\n}\r\n\r\nexport default {\r\n setAvoLogger: setAvoLogger,\r\n Language: Language,\r\n LoggedIn: LoggedIn,\r\n Country: Country,\r\n PageType: PageType,\r\n Currency: Currency,\r\n EventLocation: EventLocation,\r\n pageLoaded: pageLoaded,\r\n bookingToolOpened: bookingToolOpened,\r\n shareButtonClicked: shareButtonClicked,\r\n initAvo: initAvo,\r\n WebDebuggerPosition: WebDebuggerPosition,\r\n avoInspectorApiKey: avoInspectorApiKey,\r\n};\r\n\r\n// AVOMODULEMAP:\"Avo\"\r\n// AVOEVENTMAP:[\"pageLoaded\",\"bookingToolOpened\",\"shareButtonClicked\"]\r\n","import React, { useEffect } from 'react';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport styled from 'styled-components';\r\nimport PropTypes from 'prop-types';\r\nimport { useInView } from 'react-intersection-observer';\r\nimport * as clipboard from 'clipboard-polyfill/text';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nimport { Analytics, Config } from 'core/scripts';\r\nimport { setState } from 'core/redux/actions';\r\nimport {\r\n getStyledShareButton,\r\n getStyledShareButtonContainer,\r\n getStyledEmployeeImage,\r\n getStyledShareButtonText,\r\n} from './style';\r\nimport { ReactComponent as ShareIcon } from 'assets/icons/Share.svg';\r\nimport avo from '../../../avo/avo';\r\n\r\nconst StyledShareButton = styled.button(getStyledShareButton);\r\nconst StyledShareButtonContainer = styled.button(getStyledShareButtonContainer);\r\nconst StlyedEmployeeRoundImage = styled.img(getStyledEmployeeImage);\r\nconst StyledShareButtonText = styled.div(getStyledShareButtonText);\r\n\r\nconst getShareUrl = (id, country, city) =>\r\n `${window.location.origin}${window.location.pathname}${\r\n Config.UTM_SHARE_EMPLOYEE\r\n }${country ?? ''}_${city ?? ''}&utm_content=${id}`;\r\n\r\nexport const ShareButton = ({\r\n label,\r\n labelText,\r\n isDefault,\r\n sfscEmployeeId,\r\n}) => {\r\n const dispatch = useDispatch();\r\n const { t } = useTranslation();\r\n const [ref, inView] = useInView({\r\n threshold: 0,\r\n });\r\n\r\n const store = useSelector((state) => state?.userReducer?.store);\r\n const userState = useSelector((state) => state?.userReducer?.user);\r\n const displayTopShareBtn = useSelector(\r\n (state) => state.userReducer.displayTopShareBtn\r\n );\r\n\r\n useEffect(() => {\r\n dispatch(setState({ displayTopShareBtn: !inView }));\r\n }, [inView, dispatch]);\r\n\r\n const { country, city } = store || {};\r\n const { firstName, imageRoundUrl } = userState;\r\n\r\n const onClick = async () => {\r\n const shareUrl = getShareUrl(sfscEmployeeId, country, city);\r\n const shareText = t('mobileShareText', {\r\n employeeName: firstName,\r\n profileUrl: shareUrl,\r\n });\r\n if (navigator.canShare && navigator.canShare({ text: shareText })) {\r\n navigator\r\n .share({\r\n text: shareText,\r\n })\r\n .catch((_ex) => {\r\n // ignore the exception\r\n });\r\n } else {\r\n const toastName = displayTopShareBtn\r\n ? 'isTopToastDisplayed'\r\n : 'isBotToastDisplayed';\r\n // Fade in toast\r\n dispatch(setState({ [toastName]: true }));\r\n\r\n try {\r\n await clipboard.writeText(shareUrl);\r\n } catch {\r\n // ignore the error\r\n }\r\n\r\n // Fade out toast\r\n window.setTimeout(() => {\r\n dispatch(setState({ [toastName]: false }));\r\n }, 3000);\r\n }\r\n\r\n // Google Analytics\r\n Analytics({\r\n type: `Share_Button`,\r\n label: `${sfscEmployeeId}-${firstName}`,\r\n });\r\n avo.shareButtonClicked({\r\n storeId: store.storeCodeC,\r\n employeeId: userState.employeeId,\r\n employeeName: `${userState.firstName} ${userState.lastName}`,\r\n eventLocation: isDefault\r\n ? 'share-button-top'\r\n : 'share-button-bottom',\r\n });\r\n };\r\n\r\n return (\r\n <>\r\n {isDefault ? (\r\n displayTopShareBtn && (\r\n \r\n \r\n \r\n )\r\n ) : (\r\n \r\n \r\n \r\n {label}\r\n

{labelText}

\r\n
\r\n \r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nShareButton.propTypes = {\r\n label: PropTypes.string.isRequired,\r\n labelText: PropTypes.string.isRequired,\r\n employeeName: PropTypes.string,\r\n sfscEmployeeId: PropTypes.number.isRequired,\r\n isDefault: PropTypes.bool.isRequired,\r\n imageUrl: PropTypes.string,\r\n};\r\n","import { mq } from '../../styles/mediaqueries';\r\nimport { text } from 'core/styles/variables';\r\n\r\nexport const getStyledShareButton = () => {\r\n return {\r\n position: 'fixed',\r\n top: '50px',\r\n right: '10px',\r\n padding: '12px 13.5px',\r\n color: text,\r\n cursor: 'pointer',\r\n border: '1px solid #E1E1E1',\r\n borderRadius: '50%',\r\n backgroundColor: '#fff',\r\n transition: 'all .3s ease-out',\r\n zIndex: '10',\r\n\r\n '&:hover': {\r\n borderColor: '#000',\r\n },\r\n\r\n svg: {\r\n width: '13px',\r\n height: '13px',\r\n },\r\n\r\n [mq[1]]: {\r\n top: '70px',\r\n right: '15px',\r\n padding: '12px 17px',\r\n },\r\n\r\n [mq[3]]: {\r\n right: '30px',\r\n },\r\n };\r\n};\r\n\r\nexport const getStyledShareButtonContainer = () => {\r\n return {\r\n maxWidth: '345px',\r\n width: 'auto',\r\n height: '70px',\r\n backgroundColor: '#fff',\r\n display: 'flex',\r\n alignItems: 'center',\r\n border: '1px solid #E1E1E1',\r\n margin: '54px auto 34px',\r\n padding: '14px 20px 14px 15px',\r\n cursor: 'pointer',\r\n transition: 'all .3s ease-out',\r\n\r\n '&:hover': {\r\n borderColor: '#000',\r\n },\r\n\r\n svg: {\r\n minWidth: '13px',\r\n height: '13px',\r\n },\r\n\r\n [mq[0]]: {\r\n maxWidth: '100%',\r\n width: '410px',\r\n height: '80px',\r\n padding: '14px 23px 14px 15px',\r\n },\r\n };\r\n};\r\n\r\nexport const getStyledEmployeeImage = () => {\r\n return {\r\n height: '50px',\r\n width: '50px',\r\n borderRadius: '50%',\r\n };\r\n};\r\n\r\nexport const getStyledShareButtonText = () => {\r\n return {\r\n padding: '0 37px 0 10px',\r\n textAlign: 'left',\r\n fontSize: '13px',\r\n lineHeight: '21px',\r\n\r\n [mq[1]]: {\r\n padding: '0 50px 0 20px',\r\n },\r\n };\r\n};\r\n","export const lightGrey = '#E1E1E1'; //used in header, button, toast borders\r\nexport const text = '#2D2E2C'; //text color\r\nexport const brandColor = '#2D2E2C'; // used for bg","export default (type) =>{\r\n window.dataLayer.push({\r\n event: type\r\n });\r\n}","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport styled from 'styled-components';\r\nimport { useTranslation } from 'react-i18next';\r\n\r\nimport { Analytics } from 'core/scripts';\r\nimport { getStyledButton } from './style';\r\nimport { useSelector } from 'react-redux';\r\n\r\nimport { INDIVIDUAL_BOOKINGTYPE } from '../../utils/constants';\r\nimport PromotionAnalytics from 'core/scripts/PromotionAnalytics';\r\nimport avo from '../../../avo/avo';\r\nconst StyledAppointmentButton = styled.button(getStyledButton);\r\n\r\nexport const AppointmentButton = ({ openModal, type, isBottom }) => {\r\n const { t } = useTranslation();\r\n\r\n const userState = useSelector((state) => state?.userReducer?.user);\r\n const store = useSelector((state) => state?.userReducer?.store);\r\n const { firstName, sfscEmployeeId } = userState || {};\r\n\r\n // Condition that checks if there is JRNI ID to turn off the button\r\n let isDisabled = false;\r\n\r\n const onClick = () => {\r\n openModal(type);\r\n // Google Analytics\r\n Analytics({\r\n type: `${type}_Appointment_Expertpage`,\r\n label: `${sfscEmployeeId}-${firstName}`,\r\n });\r\n PromotionAnalytics('promotionClick');\r\n avo.bookingToolOpened({\r\n storeId: store.storeCodeC,\r\n employeeId: userState.employeeId,\r\n employeeName: `${userState.firstName} ${userState.lastName}`,\r\n });\r\n };\r\n\r\n return (\r\n \r\n {t('button.individualAppointment')}\r\n \r\n );\r\n};\r\n\r\nAppointmentButton.propTypes = {\r\n openModal: PropTypes.func.isRequired,\r\n type: PropTypes.string.isRequired,\r\n isBottom: PropTypes.bool,\r\n};\r\n\r\nAppointmentButton.defaultProps = {\r\n isBottom: false,\r\n};\r\n","import { mq } from 'core/styles/mediaqueries';\r\nimport { text } from 'core/styles/variables';\r\n\r\nexport const getStyledButton = ({ darkStyle, disabledStyle, isBottom }) => {\r\n let color = text;\r\n let backgroundColor = '#fff';\r\n\r\n if (darkStyle) {\r\n color = '#fff';\r\n backgroundColor = text;\r\n }\r\n\r\n if (disabledStyle) {\r\n backgroundColor = '#fafafa';\r\n color = '#c6c6c6';\r\n }\r\n\r\n return {\r\n width: '100%',\r\n margin: '0 0 10px',\r\n padding: '12px 6px',\r\n color,\r\n backgroundColor,\r\n cursor: 'pointer',\r\n transition: 'all .3s ease-out',\r\n margin: '0 0 10px',\r\n pointerEvents: disabledStyle ? 'none' : 'auto',\r\n\r\n [mq[0]]: {\r\n padding: '14px 6px',\r\n width: isBottom ? '410px' : '250px',\r\n },\r\n\r\n [mq[1]]: {\r\n width: isBottom ? '410px' : '250px',\r\n margin: ' 0 0 10px 0',\r\n padding: '12px 6px',\r\n },\r\n\r\n '&:hover': {\r\n backgroundColor: darkStyle ? '#000' : 'none',\r\n borderColor: darkStyle ? 'unset' : '#000',\r\n },\r\n\r\n };\r\n};\r\n","import { mq } from 'core/styles/mediaqueries';\r\n\r\nexport const getUserContainerStyle = () => {\r\n return {\r\n padding: '40px 0 30px',\r\n\r\n [mq[1]]: {\r\n display: 'flex',\r\n flexWrap: 'wrap',\r\n justifyContent: 'center',\r\n padding: '60px 0 30px',\r\n },\r\n\r\n [mq[3]]: {\r\n padding: '150px 15px 30px',\r\n },\r\n };\r\n};\r\n\r\nexport const getStyledName = () => {\r\n return {\r\n margin: '0 auto',\r\n [mq[1]]: {\r\n width: '100%',\r\n },\r\n };\r\n};\r\n\r\nexport const getStyledStoreName = () => {\r\n return {\r\n margin: '9px auto 50px',\r\n fontSize: '1.4rem',\r\n lineHeight: '20px',\r\n color: '#878787',\r\n\r\n [mq[1]]: {\r\n width: '100%',\r\n margin: '10px 0 60px',\r\n lineHeight: '16px',\r\n color: '#898989',\r\n },\r\n };\r\n};\r\n\r\nexport const getStyledCopyToast = {};\r\n\r\nexport const getStyledAppointmentButtonContainer = () => {\r\n return {\r\n display: 'block',\r\n\r\n [mq[0]]: {\r\n display: 'inline-block',\r\n },\r\n };\r\n};\r\n","import React from 'react';\r\nimport { useSelector } from 'react-redux';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport styled from 'styled-components';\r\n\r\nimport { ShareButton } from '../ShareButton';\r\nimport { AppointmentButton } from '../AppointmentButton';\r\n\r\nimport {\r\n getUserContainerStyle,\r\n getStyledName,\r\n getStyledStoreName,\r\n getStyledCopyToast,\r\n getStyledAppointmentButtonContainer,\r\n} from './style';\r\n\r\nconst StyledUserContainer = styled.div(getUserContainerStyle);\r\nconst StyledEmployeeName = styled.h1(getStyledName);\r\nconst StyledStoreName = styled.p(getStyledStoreName);\r\nconst StyledCopyToast = styled.p(getStyledCopyToast);\r\nconst StyledAppointmentButtonContainer = styled.div(\r\n getStyledAppointmentButtonContainer\r\n);\r\n\r\nexport const User = ({ openModal }) => {\r\n const { t } = useTranslation();\r\n\r\n const userState = useSelector((state) => state?.userReducer?.user);\r\n const {\r\n firstName,\r\n imageUrl,\r\n sfscEmployeeId,\r\n\r\n } = userState;\r\n const storeState = useSelector((state) => state?.userReducer?.store);\r\n const { name } = storeState || {};\r\n\r\n const isTopToastDisplayed = useSelector(\r\n (state) => state?.userReducer?.isTopToastDisplayed\r\n );\r\n\r\n useEffect(() => {\r\n document.title = `${firstName} ${name && name.length > 0 ? name : ''}`;\r\n }, [firstName, storeState, name]);\r\n\r\n return (\r\n <>\r\n \r\n {firstName}\r\n {name}\r\n \r\n \r\n \r\n\r\n \r\n {isTopToastDisplayed && (\r\n \r\n {t('copiedToClipboard')}\r\n \r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nUser.propTypes = {\r\n openModal: PropTypes.func.isRequired,\r\n};\r\n","import { mq } from 'core/styles/mediaqueries';\r\nimport styled, { keyframes } from 'styled-components';\r\n\r\nexport const StyledCircularLoader = styled.div`\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n background: none;\r\n height: 100%;\r\n width: 100%;\r\n`;\r\n\r\nconst pulsate = keyframes`\r\n 0% {\r\n transform: scale(0.1);\r\n opacity: 0;\r\n }\r\n\r\n 50% {\r\n opacity: 1;\r\n }\r\n\r\n 100% {\r\n transform: scale(1.2);\r\n opacity: 0;\r\n}`;\r\n\r\nexport const StyledPulse = styled.div`\r\n border: solid 3px black;\r\n border-radius: 100%;\r\n height: 2em;\r\n width: 2em;\r\n animation: ${pulsate} 1s ease-in-out infinite;\r\n\r\n ${[mq[2]]} {\r\n height: 3em;\r\n width: 3em;\r\n }\r\n`;\r\n","import React from 'react';\r\n\r\nexport const ArrowIcon = () => (\r\n \r\n \r\n \r\n);\r\n","import React from 'react'\r\nimport { mq,mqm } from 'core/styles/mediaqueries';\r\nimport { ArrowIcon } from 'assets/icons/arrow';\r\n\r\n// Customer ratings\r\nexport const getStyledCustomerContainer = () => {\r\n return {};\r\n};\r\n\r\nexport const getStyledCustomerNumbersContainer = () => {\r\n return {\r\n display: 'flex',\r\n justifyContent: 'center',\r\n paddingBottom: '72px',\r\n\r\n [mq[0]]: {\r\n paddingBottom: '80px',\r\n },\r\n };\r\n};\r\n\r\nexport const getStyledCustomerRatingNumber = () => {\r\n return {\r\n fontSize: '44px',\r\n lineHeight: '50px',\r\n fontWeight: '300',\r\n };\r\n};\r\n\r\nexport const getStyledCustomerRatingLabel = () => {\r\n return {\r\n fontSize: '14px',\r\n color: '#898989',\r\n lineHeight: '16px',\r\n fontWeight: '200',\r\n width: '55px',\r\n };\r\n};\r\n\r\nexport const getStyledRatingDivider = () => {\r\n return {\r\n borderLeft: '1px solid #E1E1E1',\r\n height: '56px',\r\n marginTop: '50px',\r\n };\r\n};\r\n\r\nexport const getStyledRatingContainer = () => {\r\n return {\r\n padding: '30px 46px 0 30px',\r\n\r\n // padding: '30px 0px 0 0px',\r\n };\r\n};\r\n\r\nexport const getStyledYearsContainer = () => {\r\n return {\r\n padding: '30px 30px 0 48px',\r\n };\r\n};\r\n\r\nexport const getStyledCustomerComplimentsDivider = () => {\r\n return {\r\n borderTop: '1px solid #E1E1E1',\r\n width: '100%',\r\n\r\n [mq[0]]: {\r\n width: '520px',\r\n margin: '0 auto',\r\n },\r\n };\r\n};\r\n\r\n// Customer compliments\r\nexport const getStyledCustomerComplimentsTitle = () => {\r\n return {\r\n fontSize: '18px',\r\n lineHeight: '24px',\r\n padding: '80px 0 28px 0',\r\n fontWeight: 'normal',\r\n margin: 0,\r\n width: '520px',\r\n [mqm[1]]: {\r\n textAlign: 'left',\r\n padding: '80px 0 32px 0',\r\n },\r\n \r\n };\r\n};\r\n\r\nexport const getStyledComplimentsContainer = () => {\r\n return {\r\n width: '100%',\r\n height: '200px',\r\n margin: 'auto',\r\n overflowY: ' hidden',\r\n padding: '0 10px',\r\n\r\n [mq[0]]: {\r\n width: '380px',\r\n },\r\n };\r\n};\r\n\r\nexport const getStyledComplimentsSliderContainer = () => {\r\n return {};\r\n};\r\n\r\nexport const getStyledAvatar = () => {\r\n return {\r\n width: 80,\r\n height: 85,\r\n };\r\n};\r\n\r\nexport const getStyledComplimentContainer = () => {\r\n return {\r\n width: '80px',\r\n };\r\n};\r\n\r\nexport const getStyledComplimentNumber = () => {\r\n return {\r\n backgroundColor: '#FFF',\r\n height: '16px',\r\n paddingTop: '3px',\r\n width: '40px',\r\n border: '1px solid #D1D1D1',\r\n borderRadius: '20px',\r\n position: 'relative',\r\n lineHeight: '13px',\r\n fontSize: '10px',\r\n top: '-27px',\r\n right: '-37px',\r\n\r\n [mq[0]]: {\r\n right: '-42px',\r\n },\r\n };\r\n};\r\n\r\nexport const getStyledComplimentTag = () => {\r\n return {\r\n width: '80px',\r\n fontSize: '14px',\r\n lineHeight: '16px',\r\n fontWeight: '200',\r\n marginTop: '-21px',\r\n marginLeft: '15px',\r\n };\r\n};\r\n\r\n\r\nexport function NextArrow(props) {\r\n const { className, style, onClick } = props;\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport function PrevArrow(props) {\r\n const { className, style, onClick } = props;\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\n\r\n// Customer notes\r\nexport const getStyledCustomerNotesContainer = () => {\r\n return {};\r\n};\r\n\r\nexport const getStyledCustomerNotesTitle = () => {\r\n return {\r\n fontSize: '18px',\r\n lineHeight: '24px',\r\n borderBottom: '1px solid #E1E1E1',\r\n width: '345px',\r\n display: 'inline-block',\r\n padding: '0 0 28px 0',\r\n fontWeight: 'normal',\r\n width: '520px',\r\n [mqm[1]]: {\r\n textAlign: 'left',\r\n padding: '30px 0 20px 0',\r\n },\r\n };\r\n};\r\n\r\nexport const getStyledCustomerInformationContainer = () => {\r\n return {};\r\n};\r\n\r\nexport const getStyledCustomerInformation = () => {\r\n return {\r\n width: '520px',\r\n display: 'inline-block',\r\n paddingTop: '20px',\r\n\r\n [mqm[1]]: {\r\n width: '350px',\r\n },\r\n };\r\n};\r\n\r\nexport const getStyledCustomerName = () => {\r\n return {\r\n float: 'left',\r\n fontSize: '12px',\r\n lineHeight: '18px',\r\n fontWeight: '400',\r\n color: '#2D2E2C',\r\n };\r\n};\r\n\r\nexport const getStyledCustomerDate = () => {\r\n return {\r\n float: 'right',\r\n fontSize: '12px',\r\n lineHeight: '18px',\r\n fontWeight: '200',\r\n color: '#898989',\r\n paddingRight:'10px',\r\n \r\n };\r\n \r\n};\r\n\r\nexport const getStyledCustomerComment = () => {\r\n return {\r\n textAlign: 'left',\r\n margin: '20px auto 0',\r\n fontSize: '16px',\r\n lineHeight: '24px',\r\n width: '520px',\r\n\r\n [mqm[1]]: {\r\n width: '390px',\r\n fontSize: '18px',\r\n },\r\n [mqm[0]]: {\r\n width: '360px',\r\n fontSize: '18px',\r\n },\r\n \r\n };\r\n};\r\n\r\nexport const getStyledCustomerRatingTagContainer = () => {\r\n return {\r\n width: '345px',\r\n margin: '30px auto 0',\r\n paddingBottom: '20px',\r\n borderBottom: '1px solid #E1E1E1',\r\n\r\n [mq[0]]: {\r\n width: '520px',\r\n },\r\n };\r\n};\r\n\r\nexport const getStyledRatingTag = ({ singleTag }) => {\r\n return {\r\n fontSize: '12px',\r\n lineHeight: '18px',\r\n border: '1px solid #E1E1E1',\r\n borderRadius: '20px',\r\n whiteSpace: 'nowrap',\r\n padding: singleTag ? '6px 6px' : '6px 15px',\r\n marginLeft: singleTag ? '20px' : '3px',\r\n marginRight: '3px',\r\n width: singleTag ? 'auto' : 'auto !important',\r\n };\r\n};\r\n\r\nexport const getStyledMoreNotesButton = () => {\r\n return {\r\n height: '46px',\r\n width: '122px',\r\n backgroundColor: '#fff',\r\n cursor: 'pointer',\r\n transition: 'all .3s ease-out',\r\n margin: '20px auto 30px',\r\n lineHeight: '16px',\r\n fontSize: '14px',\r\n fontWeight: '300',\r\n\r\n '&:hover': {\r\n backgroundColor: 'none',\r\n borderColor: '#000',\r\n },\r\n\r\n [mq[0]]: {\r\n height: '46px',\r\n width: '169px',\r\n },\r\n };\r\n};\r\n\r\nexport const getStyledPinterestTitle = () => {\r\n return {\r\n lineHeight: '24px',\r\n fontSize: '18px',\r\n\r\n }\r\n}\r\n","import React, { useEffect, useRef, useState } from 'react';\r\nimport styled from 'styled-components';\r\nimport { useDispatch, useSelector } from 'react-redux';\r\nimport { useTranslation } from 'react-i18next';\r\nimport Slider from 'react-slick';\r\nimport 'slick-carousel/slick/slick.css';\r\nimport 'slick-carousel/slick/slick-theme.css';\r\nimport { useInView } from 'react-intersection-observer';\r\n\r\nimport { getTestemonialsByOffset } from 'core/redux/endpoints';\r\nimport { setState } from 'core/redux/actions.js';\r\n\r\nimport { LoaderCircular } from 'core/components/LoaderCircular';\r\n\r\nimport {\r\n getStyledPinterestTitle,\r\n getStyledCustomerContainer,\r\n getStyledCustomerNumbersContainer,\r\n getStyledCustomerRatingNumber,\r\n getStyledCustomerRatingLabel,\r\n getStyledRatingContainer,\r\n getStyledRatingDivider,\r\n getStyledYearsContainer,\r\n getStyledCustomerComplimentsDivider,\r\n getStyledCustomerNotesContainer,\r\n getStyledCustomerNotesTitle,\r\n getStyledCustomerInformation,\r\n getStyledCustomerName,\r\n getStyledCustomerDate,\r\n getStyledCustomerInformationContainer,\r\n getStyledCustomerComment,\r\n getStyledCustomerRatingTagContainer,\r\n getStyledRatingTag,\r\n getStyledMoreNotesButton,\r\n getStyledCustomerComplimentsTitle,\r\n getStyledComplimentsContainer,\r\n getStyledComplimentsSliderContainer,\r\n getStyledAvatar,\r\n getStyledComplimentContainer,\r\n getStyledComplimentNumber,\r\n getStyledComplimentTag,\r\n NextArrow,\r\n PrevArrow,\r\n} from './style.js';\r\n\r\n// Compliments icons\r\nimport CraftsmanshipWithFlair from 'assets/icons/CraftsmanshipWithFlair.png';\r\nimport ExpertKnowledge from 'assets/icons/ExpertKnowledge.png';\r\nimport ExtremelyPatient from 'assets/icons/ExtremelyPatient.png';\r\nimport GreatRetailExperience from 'assets/icons/GreatRetailExperience.png';\r\nimport GreatTailoringService from 'assets/icons/GreatTailoringService.png';\r\nimport HonestAuthenticAdvice from 'assets/icons/HonestAuthenticAdvice.png';\r\n\r\n// Customer ratings\r\nconst StyledCustomerContainer = styled.div(getStyledCustomerContainer);\r\nconst StyledCustomerRatingContainer = styled.div(\r\n getStyledCustomerNumbersContainer\r\n);\r\nconst StyledCustomerRatingNumber = styled.div(getStyledCustomerRatingNumber);\r\nconst StyledCustomerRatingLabel = styled.div(getStyledCustomerRatingLabel);\r\nconst StyledRatingContainer = styled.div(getStyledRatingContainer);\r\nconst StyledRatingDivider = styled.div(getStyledRatingDivider);\r\nconst StyledYearsContainer = styled.div(getStyledYearsContainer);\r\n\r\n// Customer compliments\r\nconst StyledCustomerComplimentsTitle = styled.h3(\r\n getStyledCustomerComplimentsTitle\r\n);\r\nconst StyledCustomerComplimentsDivider = styled.div(\r\n getStyledCustomerComplimentsDivider\r\n);\r\nconst StyledComplimentsContainer = styled.div(getStyledComplimentsContainer);\r\nconst StyledComplimentsSliderContainer = styled.div(\r\n getStyledComplimentsSliderContainer\r\n);\r\nconst StyledAvatar = styled.img(getStyledAvatar);\r\nconst StyledComplimentContainer = styled.div(getStyledComplimentContainer);\r\nconst StyledComplimentNumber = styled.div(getStyledComplimentNumber);\r\nconst StyledComplimentTag = styled.div(getStyledComplimentTag);\r\n\r\n// Customer notes\r\nconst StyledCustomerNotesContainer = styled.div(\r\n getStyledCustomerNotesContainer\r\n);\r\nconst StyledCustomerNotesTitle = styled.h3(getStyledCustomerNotesTitle);\r\nconst StyledCustomerInformation = styled.p(getStyledCustomerInformation);\r\nconst StyledCustomerInformationContainer = styled.div(\r\n getStyledCustomerInformationContainer\r\n);\r\nconst StyledCustomerName = styled.span(getStyledCustomerName);\r\nconst StyledCustomerDate = styled.span(getStyledCustomerDate);\r\nconst StyledCustomerComment = styled.p(getStyledCustomerComment);\r\nconst StyledCustomerRatingTagContainer = styled.div(\r\n getStyledCustomerRatingTagContainer\r\n);\r\nconst StyledRatingTag = styled.div(getStyledRatingTag);\r\nconst StyledMoreNotesButton = styled.button(getStyledMoreNotesButton);\r\nconst StyledPinterestTitle = styled.h3(getStyledPinterestTitle);\r\n\r\nexport const Customer = () => {\r\n const { t } = useTranslation();\r\n const dispatch = useDispatch();\r\n const [ref, inView] = useInView({\r\n threshold: 0,\r\n });\r\n const bottomScrollRef = useRef(null);\r\n const customerNotesTitleRef = useRef(null);\r\n\r\n const reducerState = useSelector((state) => state?.userReducer);\r\n const userState = useSelector((state) => state?.userReducer?.user);\r\n const testemonials = useSelector(\r\n (state) => state?.userReducer?.testemonials\r\n );\r\n const {\r\n customerRating,\r\n yearsAtSuitSupply,\r\n compliments,\r\n sfscEmployeeId,\r\n } = userState;\r\n\r\n const [displayMoreNotesBtn, setDisplayMoreNotesBtn] = useState(true);\r\n const [isLoadingTestemonials, setIsLoadingTestemonials] = useState(false);\r\n const [offset, setOffset] = useState(3);\r\n const scriptLoadedRef = useRef(false);\r\n\r\n useEffect(() => {\r\n if (!scriptLoadedRef.current) {\r\n const script = document.createElement('script');\r\n script.async = true;\r\n script.type = 'text/javascript';\r\n script.dataset.pinBuild = 'doBuild';\r\n script.src = '//assets.pinterest.com/js/pinit.js';\r\n document.body.appendChild(script);\r\n\r\n scriptLoadedRef.current = true;\r\n if (window.doBuild) window.doBuild();\r\n }\r\n });\r\n\r\n useEffect(() => {\r\n if (!inView && offset !== 3 && !isLoadingTestemonials) {\r\n setOffset((offset) => (offset = 3));\r\n dispatch(\r\n setState({\r\n testemonials: [...reducerState.testemonials.slice(0, 3)],\r\n })\r\n );\r\n customerNotesTitleRef.current.scrollIntoView({\r\n block: 'start',\r\n behavior: 'smooth',\r\n });\r\n }\r\n }, [inView]);\r\n\r\n const handleMoreTestemonials = async () => {\r\n setIsLoadingTestemonials(true);\r\n let additionalTestimonials = await getTestemonialsByOffset({\r\n offset: offset,\r\n employeeId: sfscEmployeeId,\r\n });\r\n if (additionalTestimonials.length > 0) {\r\n dispatch(\r\n setState({\r\n testemonials: [\r\n ...reducerState.testemonials,\r\n ...additionalTestimonials,\r\n ],\r\n })\r\n );\r\n setOffset((offset) => (offset += 3));\r\n bottomScrollRef.current.scrollIntoView({\r\n block: 'end',\r\n behavior: 'smooth',\r\n });\r\n } else if (additionalTestimonials.length === 0) {\r\n setDisplayMoreNotesBtn(false);\r\n }\r\n setIsLoadingTestemonials(false);\r\n return;\r\n };\r\n\r\n return (\r\n \r\n {/* Customer Ratings */}\r\n {customerRating > 0 && (\r\n \r\n \r\n \r\n {customerRating?.toString().replace('.', ',')}\r\n \r\n \r\n {t('customerRating')}\r\n \r\n \r\n \r\n \r\n \r\n {yearsAtSuitSupply}\r\n \r\n \r\n {t('yearsAtSuitsupply')}\r\n \r\n \r\n \r\n )}\r\n {compliments?.length > 0 && (\r\n \r\n \r\n {t('customerCompliments')}\r\n \r\n \r\n )}\r\n\r\n {/* Customer Compliments */}\r\n {compliments?.length > 0 && (\r\n \r\n \r\n \r\n {compliments?.length > 0 &&\r\n compliments.map((compliment) => {\r\n for (const [key, value] of Object.entries(\r\n compliment\r\n )) {\r\n return (\r\n \r\n \r\n \r\n {value}\r\n \r\n \r\n {formatComplimentTag(key)}\r\n \r\n \r\n );\r\n }\r\n })}\r\n \r\n \r\n \r\n )}\r\n\r\n {userState.pinterestUrl && (\r\n
\r\n \r\n {t('pinterestTitle')}\r\n \r\n \r\n
\r\n )}\r\n\r\n {/* Customer Notes */}\r\n {/* Remove comments section for now */}\r\n {/* {testemonials?.length > 0 && (\r\n \r\n \r\n {t('customerNotes')}\r\n \r\n {testemonials.map((customer, i) => (\r\n
\r\n \r\n \r\n \r\n {customer.name &&\r\n customer.name.split(' ')[0]}\r\n \r\n \r\n {customer.commentDate}\r\n \r\n \r\n \r\n \r\n {customer.comment}\r\n \r\n \r\n \r\n {customer?.ratingTags?.length > 0 &&\r\n customer.ratingTags.map(\r\n (ratingTag, j) => (\r\n \r\n {ratingTag}\r\n \r\n )\r\n )}\r\n \r\n \r\n
\r\n ))}\r\n {displayMoreNotesBtn && !isLoadingTestemonials && (\r\n handleMoreTestemonials()}\r\n ref={ref}\r\n >\r\n {t('moreNotes')}\r\n \r\n )}\r\n {isLoadingTestemonials && (\r\n Loading...\r\n )}\r\n
\r\n
\r\n )} */}\r\n
\r\n );\r\n};\r\n\r\nconst getComplimentIcon = (iconName) => {\r\n let complimentIcon;\r\n iconsArray.forEach((icon) => {\r\n for (const [key, value] of Object.entries(icon)) {\r\n if (key === iconName) {\r\n complimentIcon = value;\r\n }\r\n }\r\n });\r\n return complimentIcon;\r\n};\r\n\r\nconst formatComplimentTag = (compliment) => {\r\n compliment = compliment.replace(/([A-Z])/g, ' $1');\r\n return compliment.charAt(1) + compliment.slice(2).toLowerCase();\r\n};\r\n\r\nconst iconsArray = [\r\n { CraftsmanshipWithFlair: CraftsmanshipWithFlair },\r\n { ExpertKnowledge: ExpertKnowledge },\r\n { ExtremelyPatient: ExtremelyPatient },\r\n { GreatRetailExperience: GreatRetailExperience },\r\n { GreatTailoringService: GreatTailoringService },\r\n { HonestAuthenticAdvice: HonestAuthenticAdvice },\r\n];\r\n\r\nconst settings = {\r\n dots: false,\r\n speed: 200,\r\n infinite: false,\r\n variableWidth: true,\r\n slidesToShow: window.innerWidth < 990 ? 1.5 : 2,\r\n slidesToShow: window.innerWidth < 990 ? 1 : 2,\r\n arrows: false,\r\n};\r\n\r\nconst complimentsSettings = {\r\n dots: false,\r\n infinite: true,\r\n speed: 200,\r\n slidesToShow: 3,\r\n slidesToScroll: 1,\r\n nextArrow: ,\r\n prevArrow: ,\r\n};\r\n","export const days = [\r\n 'monday',\r\n 'tuesday',\r\n 'wednesday',\r\n 'thursday',\r\n 'friday',\r\n 'saturday',\r\n 'sunday',\r\n];\r\n\r\nexport const getConvertedStoreHours = (hours) => {\r\n let today = new Date();\r\n let convertedArray = [];\r\n\r\n function addDays(dateObj, numDays) {\r\n dateObj.setDate(dateObj.getDate() + numDays);\r\n return dateObj;\r\n }\r\n\r\n for (let i = 0; i < 7; i++) {\r\n // Starting from today\r\n let day = addDays(new Date(), i);\r\n\r\n /**\r\n * *In the future, it can be translated into various languages based on the language of the local browser.\r\n * *Just change field inside toLocaleString first paramether\r\n * */\r\n\r\n let getDayNum = day.getDate();\r\n let getDayString = day.toLocaleString('en-us', { weekday: 'long' });\r\n let getMonth = day.toLocaleString('default', { month: 'short' });\r\n\r\n // Looking for specific day from storeHoursApi array and get back object\r\n let storeDay = hours.find((e) => e.day == day.getDay());\r\n\r\n // Fill in object with other fields, month, currentDay (number) and currentDayString (string)\r\n storeDay.month = getMonth;\r\n storeDay.currentDay = getDayNum;\r\n storeDay.currentDayString = getDayString;\r\n\r\n // Small fix for first day that is today!\r\n if (day.getDate() == today.getDate()) {\r\n storeDay.currentDayString = 'Today';\r\n }\r\n\r\n convertedArray.push(storeDay);\r\n }\r\n\r\n return convertedArray;\r\n};\r\n","import React, { useRef, useEffect } from 'react';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { useSelector, useDispatch } from 'react-redux';\r\nimport styled from 'styled-components';\r\nimport PropTypes from 'prop-types';\r\nimport { setState } from 'core/redux/actions';\r\nimport {\r\n getConvertedStoreHours,\r\n days,\r\n} from '../../utils/getConvertedStoreHours';\r\n\r\nimport { AppointmentButton } from 'core/components/AppointmentButton';\r\nimport { ShareButton } from 'core/components/ShareButton';\r\n\r\nimport {\r\n getSyledStoreHeader,\r\n getStyledStoreImageContainer,\r\n getStyledStoreImage,\r\n getStyledStoreAddressContainer,\r\n getStyledStoreName,\r\n getStyledStoreAddress,\r\n getStyledHoursHeader,\r\n getStyledHoursContainer,\r\n getStyledHoursRow,\r\n getStyledDaysField,\r\n getStyledDateField,\r\n getStyledHoursField,\r\n getStyledStoreInformationContainer,\r\n getStyledButtonContainer,\r\n getStyledCopyToast,\r\n getStyledHoursClosed\r\n} from './style';\r\n\r\nconst StyledStoreInformationContainer = styled.div(\r\n getStyledStoreInformationContainer\r\n);\r\nconst StyledStoreHeader = styled.h2(getSyledStoreHeader);\r\nconst StyledStoreImageContainer = styled.div(getStyledStoreImageContainer);\r\nconst StyledStoreImage = styled.img(getStyledStoreImage);\r\nconst StyledStoreAddressContainer = styled.div(getStyledStoreAddressContainer);\r\nconst StyledStoreName = styled.h2(getStyledStoreName);\r\nconst StyledStoreAddress = styled.p(getStyledStoreAddress);\r\nconst StyledHoursHeader = styled.h2(getStyledHoursHeader);\r\nconst StyledHoursContainer = styled.ul(getStyledHoursContainer);\r\nconst StyledHoursRow = styled.li(getStyledHoursRow);\r\nconst StyledDaysField = styled.span(getStyledDaysField);\r\nconst StyledDateField = styled.span(getStyledDateField);\r\nconst StyledHoursField = styled.span(getStyledHoursField);\r\nconst StyledButtonContainer = styled.div(getStyledButtonContainer);\r\nconst StyledClosedHours = styled.span(getStyledHoursClosed)\r\nconst StyledCopyToast = styled.p(getStyledCopyToast);\r\n\r\nexport const Store = ({ openModal }) => {\r\n const dispatch = useDispatch();\r\n const hoursRef = useRef();\r\n\r\n const { t } = useTranslation();\r\n\r\n const isBotToastDisplayed = useSelector(\r\n (state) => state.userReducer.isBotToastDisplayed\r\n );\r\n const userState = useSelector((state) => state?.userReducer?.user);\r\n const { firstName, imageUrl, sfscEmployeeId } = userState;\r\n const storeState = useSelector((state) => state?.userReducer?.store);\r\n const {\r\n name,\r\n cityC,\r\n countryC,\r\n address1C,\r\n zipC,\r\n country,\r\n headerImageEmailDesktopC,\r\n } = storeState || {};\r\n const storeHoursAPI = useSelector(\r\n (state) => state?.userReducer?.store?.storeHours\r\n );\r\n const setScroll = useSelector((state) => state?.userReducer?.setScroll);\r\n \r\n const ifKansas = name==='Kansas City'\r\n //let storeHoursArray = getConvertedStoreHours(storeHoursAPI);\r\n\r\n useEffect(() => {\r\n if (hoursRef.current && setScroll) {\r\n setTimeout(() => {\r\n hoursRef.current.scrollIntoView({ behavior: 'smooth' });\r\n dispatch(setState({ setScroll: false }));\r\n }, 500);\r\n }\r\n }, [setScroll]);\r\n\r\n return (\r\n <>\r\n \r\n {isBotToastDisplayed && (\r\n \r\n {t('copiedToClipboard')}\r\n \r\n )}\r\n \r\n \r\n {storeState && (\r\n <>\r\n {t('theStore')}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {name}\r\n \r\n {!ifKansas && ( \r\n <> \r\n {address1C}\r\n \r\n \r\n {cityC}\r\n {', '}\r\n {zipC}
\r\n {countryC}\r\n
\r\n {country}\r\n \r\n )}\r\n
\r\n\r\n {/* {storeHoursArray && storeHoursArray.length > 0 && (\r\n \r\n {t('openingHours')}\r\n \r\n )} */}\r\n \r\n \r\n {days.map((day) => (\r\n \r\n {day}{' '}\r\n \r\n {ifKansas?\r\n ({'Closed'})\r\n \r\n : \r\n ({ifKansas?'Closed':storeState[`${day}C`]})\r\n \r\n }\r\n \r\n ))}\r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n
\r\n \r\n );\r\n};\r\n\r\nStore.propTypes = {\r\n openModal: PropTypes.func.isRequired,\r\n};\r\n","import { mq } from '../../styles/mediaqueries';\r\n\r\nexport const getStyledStoreInformationContainer = () => {\r\n return {\r\n position: 'relative',\r\n [mq[3]]: {\r\n padding: '0 15px',\r\n },\r\n };\r\n};\r\nexport const getSyledStoreHeader = () => {\r\n return {\r\n padding: '20px 0',\r\n };\r\n};\r\n\r\nexport const getStyledStoreImageContainer = () => {\r\n return {\r\n width: '100%',\r\n height: '100%',\r\n [mq[1]]: {\r\n margin: '0 auto',\r\n width: '520px',\r\n height: '270px',\r\n },\r\n };\r\n};\r\n\r\nexport const getStyledStoreImage = () => {\r\n return {\r\n width: '100%',\r\n height: '100%',\r\n objectFit: 'cover',\r\n };\r\n};\r\n\r\nexport const getStyledStoreAddressContainer = () => {\r\n return {\r\n margin: '40px 0',\r\n };\r\n};\r\n\r\nexport const getStyledStoreName = () => {\r\n return {\r\n paddingBottom: '10px',\r\n };\r\n};\r\n\r\nexport const getStyledStoreAddress = () => {\r\n return {};\r\n};\r\n\r\nexport const getStyledHoursHeader = () => {\r\n return {\r\n paddingBottom: '10px',\r\n };\r\n};\r\n\r\nexport const getStyledHoursContainer = () => {\r\n return {\r\n width: '290px',\r\n margin: '0 auto 60px',\r\n padding: '0',\r\n listStyleType: 'none',\r\n };\r\n};\r\n\r\nexport const getStyledHoursRow = ({ isBold }) => {\r\n let fontWeight = '300';\r\n\r\n if (isBold) {\r\n fontWeight = '500';\r\n }\r\n return {\r\n display: 'flex',\r\n fontWeight,\r\n };\r\n};\r\n\r\nexport const getStyledDaysField = () => {\r\n return {\r\n flex: '1 1 0px',\r\n textAlign: 'left',\r\n textTransform: 'capitalize',\r\n };\r\n};\r\n\r\nexport const getStyledDateField = () => {\r\n return {\r\n flex: '1 1 0px',\r\n };\r\n};\r\n\r\nexport const getStyledHoursField = () => {\r\n return {\r\n flex: '1 1 0px',\r\n };\r\n};\r\n\r\nexport const getStyledHoursClosed = () => {\r\n return {\r\n textAlign:'right'\r\n };\r\n};\r\n\r\nexport const getStyledButtonContainer = () => {\r\n return {\r\n display: 'flex',\r\n marginBottom: '55px',\r\n\r\n [mq[0]]: {\r\n justifyContent: 'center',\r\n },\r\n\r\n [mq[1]]: {\r\n \r\n },\r\n };\r\n};\r\n\r\nexport const getStyledCopyToast = {};\r\n","import { motion } from 'framer-motion';\r\nimport styled from 'styled-components';\r\n\r\nimport { mq } from 'core/styles/mediaqueries';\r\n\r\nexport const StyledModal = styled(motion.div)`\r\n height: 100%;\r\n width: 100%;\r\n background-color: white;\r\n border-radius:0;\r\n position: fixed;\r\n bottom: 0;\r\n right: 0;\r\n z-index: 20;\r\n\r\n ${[mq[2]]} {\r\n width: 444px;\r\n height: calc(100vh - 32px);\r\n margin: 14px 14px 18px;\r\n }\r\n`;\r\n\r\nexport const StyledOverlay = styled(motion.div)`\r\n background-color: rgba(0, 0, 0, 0.7);\r\n position: fixed;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;s\r\n z-index: 15;\r\n\r\n ${[mq[2]]} {\r\n background-color: rgba(0, 0, 0, 0.3);\r\n }\r\n`;\r\n\r\nexport const getCloseButtonStyle = {\r\n display: 'flex',\r\n position: 'absolute',\r\n right: 0,\r\n top:0,\r\n padding: '22px 22px',\r\n border: 0,\r\n backgroundColor: 'transparent', \r\n cursor: 'pointer',\r\n transition: 'all .3s ease-out',\r\n\r\n '&:hover, &:focus': {\r\n opacity: 0.5,\r\n },\r\n};\r\n\r\nexport const modalAnimation = {\r\n init: {\r\n y: 100,\r\n },\r\n open: {\r\n y: 0,\r\n },\r\n close: {\r\n y: 100,\r\n },\r\n};\r\n\r\nexport const modalAnimationDesktop = {\r\n init: {\r\n x: 100,\r\n },\r\n open: {\r\n x: 0,\r\n },\r\n close: {\r\n x: 100,\r\n },\r\n};\r\n\r\nexport const overlayAnimation = {\r\n close: {\r\n opacity: 0,\r\n },\r\n open: {\r\n opacity: 1,\r\n },\r\n};\r\n","import React, { useRef } from 'react';\r\nimport { useEffect } from 'react';\r\nimport styled from 'styled-components';\r\nimport { createPortal } from 'react-dom';\r\nimport { AnimatePresence } from 'framer-motion';\r\nimport IFrame from 'react-iframe';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport {\r\n StyledModal,\r\n StyledOverlay,\r\n getCloseButtonStyle,\r\n overlayAnimation,\r\n modalAnimationDesktop,\r\n modalAnimation,\r\n} from './style';\r\n\r\nconst StyledCloseButton = styled.button(getCloseButtonStyle);\r\n\r\nconst modalRoot = document.getElementById('modal');\r\n\r\nconst responsiveVariants = () => {\r\n return window.innerWidth >= 992 ? modalAnimationDesktop : modalAnimation;\r\n};\r\n\r\nexport const Modal = ({ modalUrl, isOpen, onClose }) => {\r\n const elRef = useRef(null);\r\n\r\n if (!elRef.current) {\r\n elRef.current = document.createElement('div');\r\n }\r\n\r\n useEffect(() => {\r\n window.addEventListener('message', function (event) {\r\n if (event && event.data === 'redirectRadicalPersonalModal') {\r\n window.location.href = 'https://suitsupply.com';\r\n }\r\n });\r\n });\r\n\r\n useEffect(() => {\r\n if (modalRoot) {\r\n modalRoot.appendChild(elRef.current);\r\n }\r\n\r\n return () => modalRoot.removeChild(elRef.current);\r\n }, []);\r\n\r\n return createPortal(\r\n \r\n {isOpen && (\r\n <>\r\n \r\n \r\n\r\n