{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./source/components/contained-image/contained-image.jsx","webpack:///./source/components/debounce/debounce.jsx","webpack:///./source/hooks/use-click-outside.js","webpack:///./source/assets/logo.png","webpack:///./source/components/edit-cart-response/edit-cart-response.jsx","webpack:///./source/components/image/image.jsx","webpack:///./source/js/form-validators.js","webpack:///./source/js/omit.js","webpack:///./source/components/form/use-validation-logic.js","webpack:///./source/components/form/form.jsx","webpack:///./source/components/checkbox/checkbox.jsx","webpack:///./source/components/on-page-editing/on-page-editing.jsx","webpack:///./source/components/rich-text/rich-text.jsx","webpack:///./source/components/accordion/accordion.jsx","webpack:///./source/components/accordion-list/accordion-list.jsx","webpack:///./source/components/content-container/content-container.jsx","webpack:///./source/components/modal/tab-trapper.jsx","webpack:///./source/components/modal/modal.jsx","webpack:///./source/components/add-to-cart-confirmation/add-to-cart-confirmation.jsx","webpack:///./source/components/anything/anything.jsx","webpack:///./source/js/breakpoints.js","webpack:///./source/hooks/use-breakpoints.js","webpack:///./source/context/modal.js","webpack:///./source/js/google-maps-loader.js","webpack:///./source/js/user-address-handler.js","webpack:///./source/js/google-maps-helper.js","webpack:///./source/js/find-nearest-shops.js","webpack:///./source/components/appointment-booking-modal/appointment-booking-title.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-step-back-button.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-subtitle.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-hint.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-region-item.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-region-list.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-shop-item.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-shop-list.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-progress.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-result-region.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-result-shop.jsx","webpack:///./source/components/avatar/avatar.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-result-appointment.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-result-time.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-result-agree.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-result-list.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-service-accordion.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-service-list.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-see-nearest.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-assistant-accordion.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-assistant.jsx","webpack:///./source/hooks/use-non-passive-event.js","webpack:///./source/hooks/use-interval.js","webpack:///./source/contexts/carousel-context.jsx","webpack:///./source/contexts/carousel-context-provider.jsx","webpack:///./source/components/assistive-drawer/assistive-drawer.jsx","webpack:///./source/components/carousel/carousel.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-date-item.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-date-list.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-time-item.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-time-list.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-availability.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-agree-box.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-form.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-footer.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking.jsx","webpack:///./source/components/appointment-booking-modal/appointment-booking-modal.jsx","webpack:///./source/components/appointment-booking-trigger/appointment-booking-trigger.jsx","webpack:///./source/components/appointments/appointments.jsx","webpack:///./source/js/log.js","webpack:///./source/components/react-component/react-component.jsx","webpack:///./source/components/component-list-item/component-list-item.jsx","webpack:///./source/components/component-list-item/supported-blocks.js","webpack:///./source/components/component-list/component-list.jsx","webpack:///./source/components/main-title/main-title.jsx","webpack:///./source/components/video/video.jsx","webpack:///./source/components/page-header/page-header.jsx","webpack:///./source/components/fluid-image/fluid-image.jsx","webpack:///./source/components/product-card/product-card.jsx","webpack:///./source/components/product-list/product-list.jsx","webpack:///./source/components/magazine-category/magazine-category.jsx","webpack:///./source/components/inspirational-items/inspirational-item.jsx","webpack:///./source/components/magazine-list-item/magazine-list-item.jsx","webpack:///./source/components/image-link-list/image-link.jsx","webpack:///./source/components/magazine-related-pages/magazine-related-pages.jsx","webpack:///./source/components/article-page/article-page.jsx","webpack:///./source/components/availability/availability.jsx","webpack:///./source/hoc/with-modal-provider.jsx","webpack:///./source/components/booking-link/booking-link.jsx","webpack:///./source/components/booking-page/booking-page.jsx","webpack:///./source/components/brand-page/brand-page.jsx","webpack:///./source/components/breadcrumbs/breadcrumbs.jsx","webpack:///./source/components/collapse-list/collapse-list.jsx","webpack:///./source/components/generic-filter/generic-filter.jsx","webpack:///./source/components/color-select/color-select.jsx","webpack:///./source/components/shape-select/shape-select.jsx","webpack:///./source/components/category-filters/filter-group.jsx","webpack:///./source/components/category-filters/category-filters.jsx","webpack:///./source/components/pagination-controls/pagination-controls.jsx","webpack:///./source/components/empty-list-message/empty-list-message.jsx","webpack:///./source/components/image-link-list/image-link-list.jsx","webpack:///./source/components/category-page/products-header.jsx","webpack:///./source/components/category-page/products-footer.jsx","webpack:///./source/components/search/search.jsx","webpack:///./source/components/category-page/category-page.jsx","webpack:///./source/components/grid/grid.jsx","webpack:///./source/components/my-page-layout/my-page-layout.jsx","webpack:///./source/components/my-page-section/my-page-section.jsx","webpack:///./source/components/change-email-page/change-email-page.jsx","webpack:///./source/components/change-password-page/change-password-page.jsx","webpack:///./source/components/chat/chat.jsx","webpack:///./source/components/chat/script.js","webpack:///./source/components/checkout-page/checkout-context.js","webpack:///./source/components/checkout-login-form/checkout-login-form.jsx","webpack:///./source/components/checkout-register-form/checkout-register-form.jsx","webpack:///./source/components/checkout-login/checkout-login.jsx","webpack:///./source/components/checkout-logout/checkout-logout.jsx","webpack:///./source/hooks/use-previous.js","webpack:///./source/components/checkout-page/checkout-step.jsx","webpack:///./source/components/terms-form/terms-form.jsx","webpack:///./source/components/klarna-iframe/klarna-iframe.jsx","webpack:///./source/components/delivery-widget/porter-buddy.jsx","webpack:///./source/components/klarna-and-porterbuddy/klarna-and-porterbuddy.jsx","webpack:///./source/components/delivery-widget/delivery-widget.jsx","webpack:///./source/components/radio/radio.jsx","webpack:///./source/components/delivery-form/delivery-form.jsx","webpack:///./source/components/checkout-page/checkout-page.jsx","webpack:///./source/components/collapsable-rich-text/collapsable-rich-text.jsx","webpack:///./source/components/consent-page/consent-page.jsx","webpack:///./source/components/contact-lens-page/add-to-cart-response.jsx","webpack:///./source/components/input-table/input-table.jsx","webpack:///./source/components/contact-lens-page/contact-lens-form.jsx","webpack:///./source/components/product-images/image-container.jsx","webpack:///./source/components/product-images/zoom-modal.jsx","webpack:///./source/components/product-images/product-images.jsx","webpack:///./source/components/product-logo/product-logo.jsx","webpack:///./source/components/product-selling-points/product-selling-points.jsx","webpack:///./source/components/contact-lens-page/replacement-product-banner.jsx","webpack:///./source/components/selling-points/selling-points.jsx","webpack:///./source/components/contact-lens-page/update-form-response.jsx","webpack:///./source/components/product-variant-text/product-variant-text.jsx","webpack:///./source/components/contact-lens-page/contact-lens-header.jsx","webpack:///./source/components/product-list-block/product-list-block.jsx","webpack:///./source/components/teaser-expander/teaser-expander.jsx","webpack:///./source/components/product-text/product-text.jsx","webpack:///./source/components/contact-lens-page/contact-lens-page.jsx","webpack:///./source/components/cta-block/cta-block.jsx","webpack:///./source/components/cta-carousel/cta-carousel.jsx","webpack:///./source/components/customer-data-import-form/customer-data-import-form.jsx","webpack:///./source/components/personal-information-form/personal-information-form.jsx","webpack:///./source/components/personal-information-page/personal-information-page.jsx","webpack:///./source/components/edit-profile-page/edit-profile-page.jsx","webpack:///./source/components/email-template/email-template-content.jsx","webpack:///./source/components/email-template/email-template-header.jsx","webpack:///./source/components/email-template/email-template-summary.jsx","webpack:///./source/components/email-template/email-template.jsx","webpack:///./source/components/email-template/email-template.css","webpack:///./source/components/embed-video/youtube-config.js","webpack:///./source/components/embed-video/embed-video.jsx","webpack:///./source/components/error-page/error-404-svg.jsx","webpack:///./source/components/error-page/error-500-svg.jsx","webpack:///./source/components/error-page/error-page.jsx","webpack:///./source/components/error-page/error-page.css","webpack:///./source/components/find-store/filter-stores.js","webpack:///./source/components/find-store/get-place-matches.js","webpack:///./source/components/find-store/store.jsx","webpack:///./source/components/find-store/find-store.jsx","webpack:///./source/components/find-store-block/find-store-block.jsx","webpack:///./source/components/store-map/map-popup.jsx","webpack:///./source/components/store-map/map-marker.jsx","webpack:///./source/components/store-map/store-map.jsx","webpack:///./source/components/find-store-page/stores-list.jsx","webpack:///./source/components/find-store-page/find-store-page.jsx","webpack:///./source/components/footer/footer-image-list.jsx","webpack:///./source/components/footer/footer-link-list.jsx","webpack:///./source/components/newsletter-form/newsletter-form.jsx","webpack:///./source/components/footer/footer-social-media.jsx","webpack:///./source/components/footer/footer.jsx","webpack:///./source/components/forgot-password-page/forgot-password-page.jsx","webpack:///./source/components/frontpage/frontpage.jsx","webpack:///./source/components/reserve-in-store/reserve-in-store-form.jsx","webpack:///./source/components/reserve-in-store/reserve-stores-list-item.jsx","webpack:///./source/components/reserve-in-store/reserve-stores-list.jsx","webpack:///./source/components/reserve-in-store/reserve-in-store.jsx","webpack:///./source/components/glasses-page/glasses-form.jsx","webpack:///./source/components/glasses-page/product-colors.jsx","webpack:///./source/components/glasses-page/glasses-header.jsx","webpack:///./source/components/glasses-page/glasses-measurement.jsx","webpack:///./source/components/lens-visualisation/lens-visualisation.jsx","webpack:///./source/components/metadata/metadata.jsx","webpack:///./source/components/glasses-page/glasses-page.jsx","webpack:///./source/components/global-search/search-result-header.jsx","webpack:///./source/components/global-search/search-results.jsx","webpack:///./source/components/global-search/global-search-response.jsx","webpack:///./source/components/global-search/global-search.jsx","webpack:///./source/components/login-modal/login-modal.jsx","webpack:///./source/components/mouseover-link/mouseover-link.jsx","webpack:///./source/components/header/category-link.jsx","webpack:///./source/components/header/shape-link.jsx","webpack:///./source/components/header/sub-menu.jsx","webpack:///./source/components/header/main-nav.jsx","webpack:///./source/components/skip-to-main-button/skip-to-main-button.jsx","webpack:///./source/components/site-info-banner/banner.jsx","webpack:///./source/components/site-info-banner/site-info-banner.jsx","webpack:///./source/components/header/mobile-sticky-header.jsx","webpack:///./source/components/header/header-inner.jsx","webpack:///./source/components/header/header-modals.jsx","webpack:///./source/components/header/header.jsx","webpack:///./source/components/image-and-products/image-and-products.jsx","webpack:///./source/components/inspirational-items/inspirational-items.jsx","webpack:///./source/components/link-list/link-list.jsx","webpack:///./source/components/link-row/link-row.jsx","webpack:///./source/components/link-to-main-site/link-to-main-site.jsx","webpack:///./source/components/login-form/login-form.jsx","webpack:///./source/components/login-page/login-page.jsx","webpack:///./source/components/logo/logo.jsx","webpack:///./source/components/magazine-footer/magazine-footer.jsx","webpack:///./source/components/magazine-header/magazine-header-search.jsx","webpack:///./source/components/magazine-header/magazine-header-cta.jsx","webpack:///./source/components/magazine-header/magazine-header-appointment.jsx","webpack:///./source/components/magazine-header/magazine-header.jsx","webpack:///./source/components/tag-item/tag-item.jsx","webpack:///./source/components/tag-filter/tag-filter.jsx","webpack:///./source/components/magazine-landing-page/magazine-landing-page.jsx","webpack:///./source/components/magazine-section-page/magazine-section-page.jsx","webpack:///./source/components/map-block/map-block.jsx","webpack:///./source/components/message/message.jsx","webpack:///./source/components/moodboard-block/moodboard-block-item.jsx","webpack:///./source/components/moodboard-block/moodboard-block.jsx","webpack:///./source/components/my-consents/my-consents.jsx","webpack:///./source/components/my-orders/my-orders-item.jsx","webpack:///./source/components/my-orders/my-orders.jsx","webpack:///./source/components/select-sorted-on-geolocation/select-sorted-on-geolocation.jsx","webpack:///./source/components/my-store/my-store.jsx","webpack:///./source/components/my-page/my-page-sidebar-section.jsx","webpack:///./source/components/order-list/order-list-item.jsx","webpack:///./source/components/order-list/order-list.jsx","webpack:///./source/components/personal-details/personal-details.jsx","webpack:///./source/components/my-page/my-page.jsx","webpack:///./source/components/my-store-banner/my-store-banner.jsx","webpack:///./source/components/newsletter-form-block/newsletter-form-block.jsx","webpack:///./source/components/openingHoursMeta/openingHoursMeta.jsx","webpack:///./source/components/opticians-list/optician.jsx","webpack:///./source/components/opticians-list/opticians-list.jsx","webpack:///./source/components/registration-banner/registration-banner.jsx","webpack:///./source/components/order-summary/order-summary.jsx","webpack:///./source/components/photo-block/photo-block-item.jsx","webpack:///./source/components/photo-block/photo-block.jsx","webpack:///./source/components/register-page/register-page.jsx","webpack:///./source/components/search-page/search-page.jsx","webpack:///./source/components/static-container/static-container.jsx","webpack:///./source/components/store-body/store-body.jsx","webpack:///./source/components/store-meta/store-meta.jsx","webpack:///./source/components/store-page/store-page.jsx","webpack:///./source/components/text-with-bg-color-block/text-with-bg-color-block.jsx","webpack:///./source/components/tiny-cta-block/tiny-cta-block.jsx","webpack:///./source/app.components.js","webpack:///./source/components/page-spinner/page-spinner.jsx","webpack:///./source/app.components.js-exposed","webpack:///./source/components/link/link.jsx","webpack:///./source/assets/icons sync \\.svg$","webpack:///./source/assets/icons/arrow-left.svg","webpack:///./source/assets/icons/arrow-right.svg","webpack:///./source/assets/icons/basket.svg","webpack:///./source/assets/icons/big-chevron-right.svg","webpack:///./source/assets/icons/checkmark.svg","webpack:///./source/assets/icons/chevron-down.svg","webpack:///./source/assets/icons/chevron-left.svg","webpack:///./source/assets/icons/chevron-right.svg","webpack:///./source/assets/icons/eye.svg","webpack:///./source/assets/icons/icon-back.svg","webpack:///./source/assets/icons/icon-clock.svg","webpack:///./source/assets/icons/icon-edit.svg","webpack:///./source/assets/icons/icon-eye-drops.svg","webpack:///./source/assets/icons/icon-glasses.svg","webpack:///./source/assets/icons/icon-info.svg","webpack:///./source/assets/icons/icon-lens.svg","webpack:///./source/assets/icons/in-stok.svg","webpack:///./source/assets/icons/interoptik-logo-back.svg","webpack:///./source/assets/icons/magnifier.svg","webpack:///./source/assets/icons/mail.svg","webpack:///./source/assets/icons/next-enabled.svg","webpack:///./source/assets/icons/out-of-stok.svg","webpack:///./source/assets/icons/pause.svg","webpack:///./source/assets/icons/pen.svg","webpack:///./source/assets/icons/phone.svg","webpack:///./source/assets/icons/pin.svg","webpack:///./source/assets/icons/previous-enabled.svg","webpack:///./source/assets/icons/small-minus.svg","webpack:///./source/assets/icons/small-plus.svg","webpack:///./source/assets/icons/small-x.svg","webpack:///./source/assets/icons/spinner.svg","webpack:///./source/assets/icons/truck.svg","webpack:///./source/assets/icons/x.svg","webpack:///./source/assets/icons/zoom.svg","webpack:///./source/js/api-helper.js","webpack:///./source/components/price/price.jsx","webpack:///./source/components/hidden-input/hidden-input.jsx","webpack:///./source/components/text/text.jsx","webpack:///./source/components/select/select.jsx","webpack:///./source/js/polyfills/class-list.js","webpack:///./source/js/input-detection.js","webpack:///./source/js/input-detection-loader.js","webpack:///./source/components/cart/cart-discount-form.jsx","webpack:///./source/components/cart/cart-discount-delete-form.jsx","webpack:///./source/components/cart/cart.jsx","webpack:///./source/js/utils/prop-type-theme.js","webpack:///./source/components/clickable/clickable.jsx","webpack:///./source/components/validation-error-texts/validation-error-texts.jsx","webpack:///./source/js/check-api-prop-types.js","webpack:///./source/hooks/use-toggle.js","webpack:///./source/assets/icons/icons.js","webpack:///./source/components/icon/icon.jsx","webpack:///./source/hooks/use-event.js","webpack:///./source/js/utils/messenger.js","webpack:///./source/hooks/use-is-mounted.js","webpack:///./source/hooks/use-form-validation.js","webpack:///./source/components/spinner/spinner.jsx","webpack:///./source/js/responsive-images.js","webpack:///./source/components/button/button.jsx","webpack:///./source/js/analytics.js","webpack:///./source/components/cart/cart-product-details.jsx","webpack:///./source/components/cart/cart-product-status.jsx","webpack:///./source/components/cart/cart-product.jsx","webpack:///./source/components/text-input/text-input.jsx","webpack:///./source/hooks/use-escape.js","webpack:///./source/components/info-note/info-note.jsx"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","0","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","ContainedImage","alt","className","position","src","cn","style","backgroundImage","backgroundPosition","propTypes","PropTypes","string","Debounce","children","props","clearTimeout","this","timer","prevProps","setTimeout","setState","wait","state","React","Component","node","number","useClickOutside","ref","callback","useEvent","e","current","target","contains","EditCartResponse","cart","exact","Cart","numberOfProductsInCart","themes","contained","Image","ImageLoader","getNewSrc","initialSize","parentNode","image","parentElement","responsive","offsetWidth","scale","theme","containedPosition","draggable","img","bool","oneOf","values","isRequired","Array","isArray","keys","isUserName","match","isEmail","isBirthDate","day","parseInt","substr","month","year","isPostalCode","isPhoneNumber","omit","entries","reduce","accum","includes","defaultErrorMessages","isNotEmpty","serializeForm","form","serialize","hash","empty","newValue","filter","maybeCastBoolean","Context","createContext","attachInput","detachInput","dirtyFields","errors","onChange","Form","endpoint","id","onRef","onResponse","onSubmit","showSubmitButton","submitLabel","validationErrors","validationEndpoint","useState","setForm","isLoading","setLoading","errorMessages","fields","setFields","setDirtyFields","setErrors","useCallback","validationRules","forEach","ruleName","validators","Error","validate","violation","find","validationName","validateForm","formContent","map","every","valid","useEffect","onInputChange","setAllFieldsDirty","useValidationLogic","submitToApi","console","log","apiHelper","execute","then","res","catch","finally","onFormSubmit","preventDefault","messenger","hideMessage","validations","submitValidation","submit","action","Provider","type","oneOfType","func","ValidationErrorTexts","defaultProps","alignTop","grid","hiddenCheckbox","link","Checkbox","defaultChecked","disabled","idPrefix","label","description","tooltip","title","validationMessageHidden","useFormValidation","error","checked","htmlFor","InfoNote","arrayOf","editTypes","floating","flyout","inline","webcontrol","OnPageEditing","createElement","element","editType","PureComponent","big","checkmarks","compactWhite","fancyBullets","withinCollapsable","RichText","text","isCentered","hasBottomMargin","dangerouslySetInnerHTML","__html","Accordion","OPE","isNarrow","htmlId","setHtmlId","useToggle","isExpanded","toggle","requestAnimationFrame","Date","getTime","aria-controls","aria-expanded","onClick","componentProps","isOpen","AccordionList","items","item","showBorder","ContentContainer","Element","TabTrapper","shiftKeyIsPressed","shiftKey","afterWrapper","focus","beforeWrapper","width","height","left","overflow","container","addEventListener","onKeyDown","isActive","previouslyFocusedElement","document","activeElement","removeEventListener","div","onFocus","trapFirst","getButtonStyle","tabIndex","trapLast","Modal","contentHeight","fitsOnScreen","isMounted","modal","modalWrapper","scrollTop","offsetHeight","innerHeight","scrollHeight","which","hide","handleEscPress","isVisible","onAfterShowModal","ReactDOM","createPortal","animate","role","containerClassName","minHeight","contentClassName","modalLabel","showCloseButton","hideCloseText","aria-label","closeButtonText","closeButtonClassName","plainCloseButton","Button","plain","circle","body","AddToCartConfirmation","products","response","PubSub","publish","topics","cartUpdate","subscriber","subscribe","msg","confirmation","showAddToCartConfirmation","shouldContainInParent","data-test-add-to-cart-confirmation","animateChildren","product","onProductEdit","onUpdate","onProductEditResponse","shouldBeEditable","shouldShowDetails","buttonOutline","wide","data-test-confirmation-go-to-cart-button","iconAfter","Link","buttonCyan","cartLink","CartProduct","Anything","minWidth","size","isRunningOnClient","matchMedia","matches","maxWidth","breakpoints","xl","xxl","sMax","mMax","lMax","xlMax","xxlMax","useBreakpoints","initiallyDesktop","initiallyTablet","initiallyMobile","isDesktop","isTablet","isMobile","onResize","modalContext","isAppointmentBookingModalOpen","isLoginModalOpen","isSearchModalOpen","isCartModalOpen","isMobileMenuOpen","toggleAppointmentBookingModal","toggleLoginModal","toggleSearchModal","toggleCartModal","toggleMobileMenu","closeMobileMenu","closeModals","GoogleMapsLoader","require","apiKey","Promise","resolve","KEY","LIBRARIES","load","google","checkCoords","addressObj","addressData","latitude","longitude","getCurrentCoords","useCurrentPosition","address","navigator","geolocation","getCurrentPosition","coords","findCoords","APIKey","googleMapsLoader","maps","Geocoder","geocode","results","status","geometry","location","lat","lng","setCoords","addressCoords","api","complete","arr","newArr","obj","newObj","replace","service","origins","destinations","travelMode","avoidHighways","avoidTolls","places","rows","elements","place","index","distance","findNearestShops","originCoords","shopsData","limit","nearestShopsNum","shopsSortedInAlphOrder","sort","a","b","textA","toUpperCase","textB","newOrigin","googleMapsHelper","origin","LatLng","shops","arrOfShopsArr","arrOfDestinationsArr","arrOfPromises","arrOfShopsWithDistance","shopsSortedByDistance","nearestShops","shopsResult","shopsArr","shop","destination","DistanceMatrixService","newPromise","getDistanceMatrix","all","arrOfShopsArrWithDistance","shopsArrWithDistance","concat","AppointmentBookingTitle","AppointmentBookingStepBackButton","isSafari","test","userAgent","isAndroid","AppointmentBookingSubtitle","AppointmentBookingHint","AppointmentBookingRegionItem","onClickHandle","AppointmentBookingRegionList","regions","onClickRegion","shape","postalCode","AppointmentBookingShopItem","AppointmentBookingShopList","onClickShop","AppointmentBookingProgress","max","progress","AppointmentBookingResultRegion","region","AppointmentBookingResultShop","Avatar","setSrc","setAlt","AppointmentBookingResultAppointment","appointment","appointmentName","appointmentTime","timeText","priceText","appointmentPrice","paymentTypeText","assistant","assistantId","assistantText","timeSlots","AppointmentBookingResultTime","dayNumber","date","getDate","weekday","preposition","time","AppointmentBookingResultAgree","AppointmentBookingResultList","step","onClickGoToStep","activeDate","activeWeekday","activeMonth","timeSlot","agreeText","agreeStatus","AppointmentBookingServiceAccordion","mainIcon","appointments","onClickService","appointmentId","appointmentLabel","appointmentDescription","AppointmentBookingServiceList","services","appointmentGroupId","appointmentGroupName","appointmentGroupMainIconName","AppointmentBookingSeeNearest","onClickSeeNearestShops","AppointmentBookingAssistantAccordion","defaultText","setText","imagePath","setImagePath","imageAlt","setImageAlt","filled","setFilled","assistants","preselectedOpticianId","event","stopPropagation","onClickRemoveAssistant","cancelText","onClickAssistant","AppointmentBookingAssistant","dates","weekdayShort","useNonPassiveEvent","listener","dependencies","options","passive","useInterval","delayInSeconds","savedCallback","useRef","seconds","setSeconds","isPaused","setIsPaused","isStopped","setIsStopped","interval","clearInterval","setInterval","reset","stop","start","pause","unpause","CarouselContext","CarouselContextProvider","currentSlideIndex","AssistiveDrawer","setIsOpen","onBlur","block","small","cta","Carousel","nextItemText","pauseItemText","playItemText","stopItemText","autoPlayDelayInSeconds","numberOfSlidesToShow","previousItemText","dotButtonText","shouldShowDots","carouselLabelText","isAutoPlayEnabled","numberOfSlidesToJump","startIndex","thumbnails","shouldShowNavText","shouldLoop","carouselAnnouncementText","carouselItemLabelText","hasQuickAnimations","slidesCount","useMemo","Children","count","hasThumbnails","announcementText","slideRefs","currentIndex","wrapper","setWrapper","navVisible","setNavVisible","animationParams","stiffness","damping","precision","useSpringStyle","x","transform","animationRef","transitionTo","update","newState","newIndex","lastIndex","newIndexClamped","clamp","currentIndexRounded","Math","round","hasNextItem","hasPreviousItem","getNewState","goToItem","goToNextItem","undefined","resetTimer","isTimerPaused","isTimerStopped","stopTimer","startTimer","pauseTimer","unpauseTimer","hasMultiTouch","isZoomed","initialScreenWidth","indexOnTouchStart","previousX","touchStartX","innerWidth","touches","touch","abs","travel","clientX","travelRelative","onTouchMove","itemWidth","currentSlide","maxSteps","ceil","steps","fill","_","memoizedAnnoucementText","aria-roledescription","aria-live","aria-atomic","onMouseEnter","onMouseLeave","onTouchStart","onTouchEnd","child","isCurrent","aria-hidden","currentTarget","relatedTarget","slideIndex","data-carousel-element","navigateByDot","propTypeTheme","shouldAutoRotate","AppointmentBookingDateItem","isDateActive","onClickDate","isFirstDayOfMonth","isDateDisabled","AppointmentBookingDateList","activeDateIndex","findIndex","carouselPreviousItemText","carouselNextItemText","carouselTitle","currentWeekDay","AppointmentBookingTimeItem","onClickTime","AppointmentBookingTimeList","AppointmentBookingAvailability","assistantDefaultText","assistantCancelText","assistantLabel","timeListTitle","AppointmentBookingAgreeBox","infoState","setInfoState","checkboxValue","setCheckboxValue","onClickHandler","prevState","toString","onClickAgree","infoTitle","infoDescription","AppointmentBookingForm","appointmentBookingUserName","appointmentBookingBirthDate","appointmentBookingEmail","appointmentBookingPhoneNumber","appointmentBookingAddInfo","appointmentBookingAttentionText","onComplete","setAssistantChosenOnBE","setReservedBooking","reservedBookingId","shopId","agreeBoxData","conditionalTextAppointmentType","conditionalBookingUserNameText","isFormSent","setIsFormSent","reservedDate","setReservedDate","reservedTime","setReservedTime","reservedShop","setReservedShop","reservedOpticianId","setReservedOpticianId","reservedAppType","setReservedAppType","useReservedBooking","setUseReservedBooking","conditionalUserNameText","opticianId","appType","Fragment","autocomplete","labelConditionalText","TextInput","AppointmentBookingFooter","linkText","url","linkUrl","AppointmentBooking","regionsState","setRegionsState","regionNameState","setRegionNameState","shopsState","setShopsState","userCoords","setUserCoords","setShop","setShopId","setStep","appointmentGroupList","setAppointmentGroupList","dateList","setDateList","dateListAllOpticians","setDateListAllOpticians","appointmentList","setAppointmentList","setAppointment","setAppointmentId","setProgress","setActiveDate","setActiveWeekday","setActiveMonth","assistantList","setAssistantList","setAssistant","setAssistantId","setTimeSlots","setTimeListTitle","setTimeSlot","setAgreeStatus","setAgreeText","setReservedBookingId","showSeeNearest","showSubtitle","subtitles","showHint","hints","showRegions","showShops","showServiceList","useBottomPadding","showAvailability","showForm","showFooter","updateStep","newStep","history","pushState","getAppointments","getAppointmentsEndpoint","group","setAppointments","setAvailability","getAvailability","getAvailabilityEndpoint","regionIndex","shopIndex","serviceId","firstDateWithTimeSlots","setCheckedDateParams","checkedDate","to_find","datesWithTimeSlots","absDate","checkedDateAbs","closestDateAbsWithTimeSlots","closestDate","getRegionsEndpoint","handlePopstate","googleMapsApiKey","preselectedShopId","regionItem","z","shopItem","regionName","findShopAndRegionByShopId","setPreselectedShop","preselectedAppointmentId","setPreselectedOpticianId","seeNearestText","userAddressHandler","userAddress","stepBackButtonText","logo","titles","footerData","AppointmentBookingModal","ModalContentWrapper","useContext","ModalContext","openOnPageLoad","unmountChildren","bookingFormData","AppointmentBookingTrigger","isStorePreselected","isPreselectedAppointmentId","isPreselectedOpticianId","isNoFollow","any","Appointments","Text","noop","ReactComponent","sizes","half","third","article","full","backgrounds","cyan","ComponentListItem","additionalComponentProps","blockNotSupportedText","onPageEditing","background","additionalProps","componentToRender","OPEProps","contentId","contentName","enableElementSizing","ComponentList","additionalItemProps","components","componentName","MainTitle","preTitle","span","uppercase","h1","Video","autoPlay","poster","attributes","PageHeader","imageCaption","mediaShouldFillWidth","video","extraSmall","FluidImage","focusPoint","y","jumbo","moodboard","ProductCard","analyticsData","brand","colors","colorsTag","price","details","tag","ctaType","onProductClick","analytics","send","WrapperElement","wrapperProps","href","boldUppercaseSmall","uppercaseSmall","code","backgroundColor","Price","narrow","noMargin","productBackgrounds","vertical","oneColumn","twoColumns","ProductList","productTheme","MagazineCategory","right","InspirationalItem","titleText","titleUrl","leadText","imageCreditText","category","arrowRight","ctaTitle","MagazineListItem","assign","ImageLink","ctaText","ingress","data-cta-title","data-cta-type","MagazineRelatedPages","h2","uppercaseBig","listItem","ArticlePage","blocks","firstText","header","secondText","sidebar","hasSidebar","magazineRelatedPages","ProductListBlock","productListSize","Availability","WithModalProvider","defaultModalState","appointmentBooking","login","search","mobileMenu","modalState","setModalState","closeModalsHandler","toggleModal","currentState","store_preselected","appointment_preselected","optician_preselected","BookingLink","appointmentBookingModal","BookingPage","iframeUrl","queryParams","getSrc","screenWidth","debounce","iframeResizer","iframe","debouncedResize","BrandPage","links","BreadCrumbs","isMagazine","itemScope","itemType","itemProp","linkGrayUnderline","content","CollapseList","maxLength","sliceIndex","visibleChildren","hiddenChildren","toggleExpanded","collapseLabel","expandLabel","GenericFilter","option","brightness","hexColor","g","ColorSelect","colorCode","input","color","ShapeSelect","FilterGroup","colorSelect","genericFilter","shapeSelect","h3","FilterComponent","CategoryFilters","categoryId","filterGroups","hideFilters","hideFiltersLabel","onReset","resetLabel","useIsMounted","iconBefore","Clickable","HiddenInput","PaginationControls","previousLink","nextLink","isDisabled","EmptyListMessage","ImageLinkList","hasSingleColumn","ProductsHeader","hasImage","contentRef","setHeight","updateHeight","getBoundingClientRect","maxHeight","aria-labelledby","ProductsFooter","Search","autoComplete","buttonText","placeholder","submitButtonText","textInputTheme","defaultValue","shouldShowErrorMessage","CategoryPage","articles","articlesButtonText","filters","filtersVisible","hasMoreProducts","isArticlesVisible","showArticles","moreProductsEndpoint","numberOfProducts","productList","productsButtonText","paginationControls","productsHeader","productsFooter","showNewProductsOnly","sorting","selected","newSearchTerm","searchTerm","shouldRefresh","previousFormData","replaceState","pathname","toQueryString","mobileFilterContainer","shouldReplaceProducts","previousState","oldProducts","newProducts","hasProducts","onFiltersChange","bigText","showProducts","display","hideSidebar","inlineLabel","Select","simple","showFilters","showFiltersLabel","noResultsMessage","moreProductsLabel","centered","compact","leftColumnWider","leftColumnSuperWide","rightColumnWider","Grid","Column","MyPageLayout","logoutLink","MyPageSection","headingLevel","ChangeEmailPage","layout","newEmail","oldEmail","section","ChangePasswordPage","newPassword","oldPassword","Chat","script","scriptElement","styleElement","innerHTML","async","appendChild","removeChild","setIsLoading","setHasIframeHTML","hasIframeHTML","CheckoutLoginForm","forgotPasswordLink","onLoggedIn","password","userId","CheckoutContext","isLoggedIn","CheckoutRegisterForm","bullets","onRegistered","isRegistered","bullet","CheckoutLogin","register","data-test-checkout-step-2-button","CheckoutLogout","usePrevious","initialValue","padding","CheckoutStep","forceInitialAnimation","isEnabled","isComplete","setElement","setIsExpanded","wasComplete","wasEnabled","scrollToElement","delay","disableInitialAnimation","TermsForm","isDesktopKey","legalConsent","privacyConsent","privacyConsentLink","marketingConsents","marketingTitle","marketingDisclaimer","reminderConsents","termsDescriptionBody","termsDescriptionLead","legalConsentLink","setIsDesktop","String","data-test-checkout-checkbox","data-test-checkout-step-3-button","KlarnaIframe","htmlString","shouldEvalScript","scriptsTags","getElementsByTagName","newScriptTag","data-test-klarna-iframe","PorterBuddy","config","onSelect","scriptSrc","styleHref","hasError","onload","rel","porterbuddy","onSelectDeliveryWindow","onSetCallbacks","forceRefresh","setSelectedDeliveryWindow","handleOnRefresh","handleOnSelectDeliveryWindow","availabilityResponse","KlarnaAndPorterbuddy","klarnaIframeHtml","porterBuddyConfig","onKlarnaChange","onDeliveryWindowChange","klarnaErrorMessage","setConfig","availability","deliveryWindow","handleOnKlarnaSuspend","handleOnKlarnaResume","handleOnKlarnaChange","postCode","_klarnaCheckout","on","suspend","resume","shipping_address","postal_code","shipping_address_change","validation_callback","_data","should_proceed","message","fetchHeaders","accept","DeliveryWidget","porterBuddyWidgetConfig","porterBuddyPublicToken","porterBuddyAvailabilityEndpoint","priceEndpoint","porterBuddyErrorMessage","handleDeliveryFail","handleDeliverySucceed","setHasError","currentHasError","handleOnDeliveryWindowChange","fetchPorterBuddyAvailability","payload","JSON","stringify","destinationAddress","fetch","method","headers","ok","json","originAddress","streetName","streetNumber","city","country","parcels","widthCm","heightCm","depthCm","weightGrams","token","view","Radio","DeliveryForm","deliveryWidget","showPorterBuddy","setShowPorterBuddy","showOnlyKlarna","setShowOnlyKlarna","klarnaIframe","setKlarnaIframe","currentShipmentId","setCurrentShipmentId","currentShipmentRef","handleOnChange","iframeHTML","enablePorterBuddy","firstShipping","stepIds","CheckoutPage","analyticsEndpoint","cartButtonText","cartTitle","terms","delivery","paymentTitle","termsTitle","logout","loginTitle","stepCompletenessMap","setStepCompletnessMap","stepIsComplete","stepId","setStepComplete","stepNumber","currentActiveStep","validities","onCartUpdate","reload","data-test-checkout-step-1-button","didLoginOrRegister","klarnaTitle","CollapsableRichText","hiddenText","showInlineCloseButton","readLessButtonText","onCloseClick","readMoreButtonText","isInitiallyOpen","textIsExpanded","setTextIsExpanded","showButton","setShowButton","handleOnReadMoreClick","duration","classNames","beforeEnter","entering","beforeLeave","leaving","ConsentPage","abortLink","consentGroups","bold","labelDescriptions","AddToCartResponse","InputTable","columnLabels","row","rowIndex","inputs","colIndex","ariaId","ariaLabelledBy","ContactLensForm","enableValidation","formData","changeTimeout","checkApiPropTypes","priceSummary","productSelect","propertySelect","shippingBanner","showPurchaseSection","addToCartEndpoint","onInvalidSubmit","onAddToCartResponse","boldUppercase","subtitle","availabilityInformation","buttonGray","quantitySelect","labelVisible","availabilityBanner","summary","data-test-add-to-cart-button","priceLabel","ImageContainer","ZoomModal","imagePadding","imageWidth","onCloseButtonClick","imageHeight","setImageHeight","setImage","useMultiSpringEffect","naturalHeight","onMouseMove","winW","winH","xDiff","yDiff","rangeMap","clientY","Spinner","ProductImages","modalIsVisible","modalSrc","portalNode","firstImage","images","imageScale","documentElement","showModal","hideModal","ProductLogo","fallbackText","ProductSellingPoints","ReplacementProductBanner","productName","productType","SellingPoints","UpdateFormResponse","purchaseForm","ProductVariantText","textHtml","ContactLensHeader","productVariantText","transformedFormData","val","updateFormEndpoint","replacementProductBanner","replacementProductTitle","productSellingPoints","productImages","productLogo","onFormChange","sellingPoints","TeaserExpander","isCollapsable","showLessText","showMoreText","ProductText","ContactLensPage","contentTitle","productTextHtml","productInformation","productMetadata","relatedProducts","gray","transparent","orange","cold","clinical","blue","nude","mint","purple","linkThemes","getLinkThemes","blockColor","listLength","buttonWhite","CtaBlock","imageAlign","isFocusable","bookingLink","uppercaseHuge","uppercaseJumbo","BlockChild","CtaCarousel","CustomerDataImportForm","secondaryAction","textInput","getTextInput","validation","PersonalInformationForm","birthDate","birthDateLink","changeEmailLink","changePasswordLink","deliveryAddress","deliveryAddressTitle","deliveryCity","deliveryFirstName","deliveryLastName","deliveryPostalCode","email","firstName","lastName","phone","registerAccount","separateDeliveryAddress","showDeliveryAddress","showDeliveryAddressCheckbox","showDelivery","setShowDelivery","onValidate","PersonalInformationPage","EditProfilePage","EmailTemplateContent","expectedDeliveryDate","orderConfirmationLabel","orderNumber","orderDateLabel","orderDate","addressLabel","customerName","customerEmail","customerAddress","customerTelephoneNumber","quantityLabel","totalPriceLabel","unitPriceLabel","detail","quantity","cellSpacing","cellPadding","unitPrice","originalPrice","align","productUrl","EmailTemplateHeader","EmailTemplateSummary","discount","discountLabel","reorderLink","shippingLabel","paymentMethodLabel","paymentMethod","shippingCost","totalPrice","EmailTemplate","customer","orderDetails","customerLabel","array","modestbranding","showinfo","controls","playing","EmbedVideo","Error404Svg","version","xmlns","xmlnsXlink","viewBox","enableBackground","xmlSpace","stroke","strokeWidth","fillRule","Error500Svg","ErrorPage","isServerError","stores","geocoder","nameMatches","toLowerCase","componentRestrictions","googleMatches","googlePlacesData","addressComponents","bounds","viewport","types","isValidResult","storesInBounds","store","nearbyStores","p1","p2","spherical","computeDistanceBetween","getDistance","storesByAddress","addressMatches","component","str","postPlace","county","some","filterByAddressComponents","getPlaceMatches","allMatches","Store","openingHours","productInStock","FindStore","doSubmit","leading","shouldDoLiveSearch","updateOnChange","debouncedSubmit","defaultStores","getFilter","googleMapsAPIKey","wrapperClassName","heading","onSearch","onSearchInput","searchClassName","FindStoreBlock","resultsVisible","searchWrapper","onInteract","dark","findStore","noResultsText","MapPopup","MapMarker","StoreMap","LatLngBounds","extend","getBounds","setCenter","getCenter","setZoom","fitBounds","Map","fitMapToStores","popupsAndMarkers","popup","InfoWindow","ReactDOMServer","renderToString","marker","Marker","icon","mapMarker","scaledSize","addListener","close","open","mobileViewIsLink","mobileLink","buttonCyanSmall","StoresList","storeLabels","hours","FindStorePage","list","FooterImageList","FooterLinkList","linkBig","linkList","NewsletterForm","termsLink","hiddenLabel","noValidation","linkWhite","FooterSocialMedia","Row","Footer","imageLists","linkLists","mainLinks","newsLetterForm","secondaryLinks","socialMedia","text1","text2","linkBigUppercase","ForgotPasswordPage","Frontpage","ReserveInStoreForm","inputName","inputPhone","posId","bordered","ReserveStoresListItem","reservetionErrorMessageText","reservetionConfirmationText","reserveInStoreButtonText","reserveForm","formIsShown","setFormIsShown","buttonIsShown","setButtonIsShown","inStock","reservetionText","setReservetionText","showGreenIcon","setShowGreenIcon","itemRef","cx","cy","outOfStock","success","scrollIntoView","behavior","ReserveStoresList","storeList","setStoreList","storesWithProduct","storesWithoutProduct","ReservInStore","searchLabel","resultsHeading","reserveUpdate","unsubscribe","ActionTypes","GlassesForm","reserveEndpoint","registerLabel","updateSizeEndpoint","hideAddToCartyButton","purchaseInformation","actionType","setActionType","labelAnchorScrollText","ProductColors","urlAnchorText","colorName","GlassesHeader","productColors","hidePurchaseInformation","GlassesMeasurement","glassesMeasurementId","measures","colorNames","Brown","Green","LensVisualisation","lensColor","isOverlayEnabled","isDragging","sliderIsMoving","xStart","overlay","setOverlay","sliderEl","setSliderEl","useSpringEffect","slider","pageX","xMove","onMouseDown","onMouseUp","onTouchCancel","Metadata","descriptionList","GlassesPage","updateSize","frameMetadata","glassesMeasurement","lensVisualisation","lensMetadata","SearchResultHeader","SearchResults","articlesHeader","articlesBottomLink","productsBottomLink","hasResults","GlobalSearchResponse","searchResults","GlobalSearch","isSearchResultsVisible","suggestionEndpoint","queryParameter","LoginModal","registerLink","registerLinkLabel","MouseoverLink","createRef","timeout","onMousehold","onMouseIn","onMouseOut","CategoryLink","ShapeLink","SubMenu","categoriesTitle","categories","shapesTitle","shapes","closeLabel","extraLink","linkGray","MainNav","bookAppointmentLink","findStoreLink","hideMobileMenu","raf","activeSubMenu","setActiveSubMenu","shouldAnimateSubMenu","setShouldAnimateSubMenu","hideSubMenus","openSubMenu","menuName","cancelAnimationFrame","shouldAnimate","Transition","hasActiveSubMenu","data-test-main-nav-link","SkipToMainButton","targetId","Banner","richText","cookieExpirationTimeInSeconds","cookies","Cookies","SiteInfoBanner","cookieClientId","rest","showBanner","setShowBanner","set","path","maxAge","MobileStickyHeader","headerRef","isHidden","setIsHidden","isMenuOpened","headerHeight","handleScroll","scrollY","lastScrollY","ThemedLink","HeaderInner","loginId","searchId","cartId","supportLink","magazineLink","myPageLink","linkToHome","phoneLink","searchPageLink","mobileTopBarLinks","hideMenuText","showMenuText","skipToMainText","siteInfoBanner","showSiteInfoBanner","scrollDestination","toggleLogin","toggleSearch","mainContent","circleDark","HeaderModals","loginModal","mainNavigation","hideModals","mini","Header","setNumberOfProducts","appointmentBookingModalData","ImageAndProducts","editorTheme","hasSingleProduct","alignLeft","alignRight","InspirationalItems","LinkList","buttonCyanLight","LinkRow","LinkToMainSite","maxi","LoginForm","forgotPassword","Wrapper","LoginPage","Logo","imageClassName","MagazineFooter","linkToMainSite","textHtmlcolumn1","textHtmlcolumn2","textHtmlcolumn3","MagazineHeaderSearch","MagazineHeaderCTA","MagazineHeaderAppointment","MagazineHeader","headerSearch","TagItem","isSelected","TagFilter","clearLabel","multiselect","clearOption","setClearOption","optionsMap","setOptions","refreshOptions","handleOptionChange","targetOption","selectedValues","MagazineLandingPage","heroImage","tagFilter","listItems","selectedTags","setSelectedTags","setItems","setList","getNthItem","nth","tagsArr","tmpList","filteredList","indexOf","filterItemsByTags","dataLength","next","currentLength","hasMore","textPosition","MagazineSectionPage","relatedPages","MapBlock","storeMap","Message","isErrorMessage","numberOfSecondsToShowMessage","show","onErrorMessage","onMessage","onHideMessage","formats","squareSmall","square","tall","rectangle","MoodboardBlockItem","format","masonryOptions","columnWidth","itemSelector","gutter","percentPosition","isFitWidth","transitionDuration","horizontal","rowHeight","stagger","MoodboardBlock","updateOnEachImageLoad","MyConsents","consentList","consent","MyOrdersItem","packageTrackingLink","MyOrders","showExpandButton","visibleRows","hiddenRows","SelectSortedOnGeoLocation","seeNearestShops","newShop","setShops","onSelectShop","MyStore","selectedStoreText","toggleText","submitEndpoint","selectedShop","MyPageSidebarSection","OrderListItem","amount","productDescription","OrderList","orderAgain","PersonalDetails","MyPage","myStore","myStoreSection","appointmentsSection","customerDataImport","customerDataImportSection","orders","ordersSection","previousOrder","previousOrderSection","previousStorePurchase","previousStorePurchaseSection","consentListSection","personalDetails","personalDetailsSection","nearestShopsSection","MyStoreBanner","lead","NewsletterFormBlock","OpeningHoursMeta","monday","tuesday","wednesday","thursday","friday","saturday","sunday","Optician","bodyText","readMoreLabel","textThresholdInNumberOfChars","showReadMore","setShowReadMore","OpticiansList","opticians","aboutTextThresholdInNumberOfChars","optician","RegistrationBanner","print","OrderSummary","getIframeEndpoint","orderConfirmationHeading","orderConfirmationDescription","myStoreBanner","registrationBanner","order","printLabel","PhotoBlockItem","caption","squareBig","landscape","PhotoBlock","photos","formatOneImage","formatTwoImages","itemFormat","photo","RegisterPage","SearchPage","StaticContainer","shouldUpdate","StoreBody","bigAndBold","StoreMeta","storeName","openingHoursLabel","openingHoursMeta","contactInfoLabel","addressMeta","geoMeta","streetAddress","addressLocality","StorePage","bgColors","white","TextWithBgColorBlock","bgColor","orientations","TinyCtaBlock","hasFrame","orientation","buttonThemes","uppercaseLarge","PageSpinner","forwardRef","restProps","displayName","webpackContext","req","webpackContextResolve","ArrowLeft","default","ArrowRight","Basket","BigChevronRight","Checkmark","ChevronDown","ChevronLeft","ChevronRight","Eye","IconBack","IconClock","IconEdit","IconEyeDrops","IconGlasses","IconInfo","IconLens","InStok","InteroptikLogoBack","Magnifier","Mail","NextEnabled","OutOfStok","Pause","Pen","Phone","Pin","PreviousEnabled","SmallMinus","SmallPlus","SmallX","Truck","X","Zoom","defaultFetchOptions","Accept","credentials","parseResponse","handleUserMessages","messageToUser","sendMessage","sendErrorMessage","handleAnalytics","handleNotOk","statusText","handleRedirect","redirectUrl","handleResponse","handleFetchError","getData","reject","request","startsWith","post","lineThrough","discountedPrice","smallPrice","bigPrice","h4","h5","defaultSelectedValue","defaultScrollToValue","labelLink","labelAnchorScrollHref","hasTouch","setHasTouch","fakeSelectRef","setValue","handleChange","valueLabel","scrollContainer","setScrollContainer","scrollToOption","setScrollToOption","elementPosition","offsetTop","elementHeight","containerHeight","selectedValue","isScrollToOption","defaultSelectedId","activate","HTMLElement","self","fn","classes","split","join","ret","add","remove","touchEndHappened","classListPolyfill","classList","keyCodeWhiteList","CartDiscountForm","toggleCheckbox","codeInput","useFormsy","easing","unmountClosed","el","CartDiscountDeleteForm","discountCode","circleSmall","decreaseQuantityLabel","discountsList","increaseQuantityLabel","removeFromCartLabel","showDiscountForm","discountCodeForm","didPublishNewCart","isMaxi","productLabels","cartSummaryClassNames","singlePropType","themeNames","typeSpec","typeName","process","setActive","active","icons","filename","Icon","focusable","eventName","eventHandler","onTopic","topic","errorMessage","off","setIsMounted","isDirty","transformBase","breakpointResolution","originalSrc","imageNodeWidth","currentImageWidth","endsWith","adjustedWidth","devicePixelRatio","loadAppropriateImage","imageNodeContainer","imageNode","getAttribute","newSrc","setAttribute","imageNodeContainers","getElementsByClassName","Timeout","clear","cleared","getCallbackEnhancedData","callbackTimeout","eventCallback","dataLayer","dataObject","CartProductDetails","colSpan","CartProductStatus","isDetailsExpanded","priceThemes","data-test-cart-product","decreaseQuantityEndpoint","increaseQuantityEndpoint","mediumFontWeight","removeFromCartEndpoint","formId","shouldShowErrorOnBottom","togglePasswordLabel","makeValidations","inputType","setInputType","isFilled","setIsFilled","inputValue","isEscape","showButtonText","textIsShown","setTextIsShown","textPositionLeft","setTextPositionLeft","isClicked","setIsClicked","parent","hideText","setTooltipPosition","buttonLeftPosition","buttonRightPossition","aria-describedby"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAKlC,IAFGe,GAAqBA,EAAoBhB,GAEtCO,EAASC,QACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAA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A3BJ4+D,EACFG,KAEAN,GAAe,GACfI,GAAa,GACbG,MAyBEx+D,KAAK,SACLoH,aAAY42D,EAAc32D,EAAkB02D,EAC5CY,mBAAkBjiE,IAEpB,yBACEhG,UAAWG,IAAG,kBAAmB,CAC/B,4BAA6BmnE,EAC7B,iCAAkCE,IAEpCxhE,GAAIA,EACJmK,KAAK,WAEJrE,KAMTlB,EAASrK,UAAY,CACnByF,GAAIxF,IAAUC,OAAOgD,WACrBzD,UAAWQ,IAAUC,OACrBqL,KAAMtL,IAAUC,OAChB4mE,eAAgB7mE,IAAUC,OAAOgD,WACjCkN,gBAAiBnQ,IAAUC,OAAOgD,YAOrBmH","file":"client.ec3fa8ac34fac5c64797.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t0: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([340,3]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nconst ContainedImage = ({ alt, className, position, src }) => {\r\n return !src ? null : (\r\n \r\n {alt}\r\n \r\n );\r\n};\r\n\r\nContainedImage.propTypes = {\r\n alt: PropTypes.string,\r\n className: PropTypes.string,\r\n position: PropTypes.string,\r\n src: PropTypes.string\r\n};\r\n\r\nContainedImage.propTypesMeta = 'exclude';\r\n\r\nexport default ContainedImage;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nclass Debounce extends React.Component {\r\n static propTypes = {\r\n children: PropTypes.node,\r\n wait: PropTypes.number\r\n };\r\n\r\n static propTypesMeta = 'exclude';\r\n\r\n static defaultProps = {\r\n wait: 0\r\n };\r\n\r\n state = {\r\n children: this.props.children\r\n };\r\n\r\n timer = null;\r\n\r\n componentWillUnmount() {\r\n clearTimeout(this.timer);\r\n }\r\n\r\n componentDidUpdate(prevProps) {\r\n if (prevProps !== this.props) {\r\n clearTimeout(this.timer);\r\n this.timer = setTimeout(() => {\r\n this.setState({ children: this.props.children });\r\n }, this.props.wait);\r\n }\r\n }\r\n\r\n render() {\r\n return this.state.children;\r\n }\r\n}\r\n\r\nexport default Debounce;\r\n","import useEvent from './use-event';\r\n\r\n/** Executes the provided callback when a click event occurs outside of the provided ref */\r\nconst useClickOutside = (ref, callback = () => {}) => {\r\n useEvent('click', e => {\r\n if (\r\n ref.current &&\r\n e.target !== ref.current &&\r\n !ref.current.contains(e.target)\r\n ) {\r\n callback();\r\n }\r\n });\r\n};\r\n\r\nexport default useClickOutside;\r\n","module.exports = \"/Frontend/logo.6ee805fe81d48ff9dcd7eed366bfad8c.png\";","import PropTypes from 'prop-types';\r\n\r\nimport Cart from 'components/cart';\r\n\r\nconst EditCartResponse = {};\r\n\r\nEditCartResponse.propTypes = {\r\n cart: PropTypes.exact(Cart.propTypes),\r\n numberOfProductsInCart: PropTypes.number\r\n};\r\n\r\nexport default EditCartResponse;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport ContainedImage from 'components/contained-image';\r\nimport ImageLoader from '../../js/responsive-images';\r\n\r\nconst themes = {\r\n contained: 'theme-contained'\r\n};\r\n\r\nclass Image extends React.Component {\r\n static propTypes = {\r\n alt: PropTypes.string,\r\n className: PropTypes.string,\r\n containedPosition: PropTypes.string,\r\n draggable: PropTypes.bool,\r\n initialSize: PropTypes.number,\r\n responsive: PropTypes.bool,\r\n scale: PropTypes.number,\r\n src: PropTypes.string,\r\n theme: PropTypes.oneOf(Object.values(themes))\r\n };\r\n\r\n static propTypesMeta = {\r\n className: 'exclude',\r\n containedPosition: 'exclude',\r\n draggable: 'exclude',\r\n initialSize: 'exclude',\r\n responsive: 'exclude',\r\n scale: 'exclude',\r\n theme: 'exclude'\r\n };\r\n\r\n static defaultProps = {\r\n initialSize: 300,\r\n scale: 1,\r\n responsive: true\r\n };\r\n\r\n state = {\r\n src: ImageLoader.getNewSrc(this.props.src, this.props.initialSize)\r\n };\r\n\r\n componentDidMount() {\r\n const parentNode = this.image && this.image.parentElement;\r\n\r\n if (parentNode && this.props.responsive) {\r\n this.setState({\r\n src: ImageLoader.getNewSrc(\r\n this.props.src,\r\n parentNode.offsetWidth * this.props.scale,\r\n this.props.initialSize\r\n )\r\n });\r\n }\r\n }\r\n\r\n render() {\r\n if (!this.props.src) {\r\n return null;\r\n }\r\n if (this.props.theme === themes.contained) {\r\n return (\r\n \r\n );\r\n }\r\n\r\n return !this.props.src ? null : (\r\n (this.image = img)}\r\n />\r\n );\r\n }\r\n}\r\n\r\nImage.themes = themes;\r\n\r\nexport default Image;\r\n","export const isRequired = value => {\r\n if (Array.isArray(value)) return value.length > 0;\r\n if (typeof value === 'object') return Object.keys(value).length > 0;\r\n return !!value;\r\n};\r\n\r\nexport const isUserName = value => {\r\n if (value.match(/^(([a-z\\-'æøåÆØÅA-Z]{2,})\\s*){2,}$/)) return true;\r\n return false;\r\n};\r\n\r\nexport const isEmail = value => {\r\n if (typeof value !== 'string') return true;\r\n return !!value.match(/^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z0-9-]{1,63}$/);\r\n};\r\n\r\nexport const isBirthDate = value => {\r\n if (!value) return true;\r\n if (!value.match(/\\d{8}/)) {\r\n return false;\r\n }\r\n\r\n const day = parseInt(value.substr(0, 2));\r\n const month = parseInt(value.substr(2, 2));\r\n const year = parseInt(value.substr(4));\r\n\r\n if (day >= 1 && day <= 31 && month >= 1 && month <= 12 && year > 1900) {\r\n return true;\r\n }\r\n};\r\n\r\nexport const isPostalCode = value => {\r\n if (!value) return true;\r\n return value.match(/^\\d{4}$/) ? true : false;\r\n};\r\n\r\nexport const isPhoneNumber = value => {\r\n return !value || value.match(/^\\+?[\\d-()\\s]{7,}\\d$/);\r\n};\r\n","/** Returns a new object with properties matching 'keys' stripped (like `lodash/omit`) */\r\nexport default function omit(object = {}, keys = []) {\r\n return Object.entries(object).reduce(\r\n (accum, [key, value]) =>\r\n keys.includes(key) ? accum : { ...accum, [key]: value },\r\n {}\r\n );\r\n}\r\n","import React from 'react';\r\nimport serialize from 'form-serialize';\r\n\r\nimport * as validators from 'js/form-validators';\r\nimport omit from 'js/omit';\r\n\r\nconst defaultErrorMessages = {\r\n isRequired: 'Feltet er påkrevd',\r\n isUserName:\r\n 'Navnet må inneholde både fornavn og etternavn på mer enn 1 bokstav',\r\n isBirthDate: 'Datoen er ikke riktig',\r\n isEmail: 'E-postadressen er ikke riktig',\r\n isPostalCode: 'Postnummer er feil',\r\n isPhoneNumber: 'Telefonnummeret er ikke riktig'\r\n};\r\n\r\n/*\r\nWhen input elements call `attachInput` (preferrably with the useFormValidation hook), an entry is added in `validations` with the input name as key and the list of validation names as value. Whenever the input calls the `onInputChange` function, the input value is determined using 'form-serialize' and the value is checked for all of the validation rules specified in its entry in `validations`\r\n*/\r\nexport default function useValidationLogic(form, errorMessages) {\r\n // NOTE: 'fields' has input names as keys and a list of validation rule names as values\r\n const [fields, setFields] = React.useState({});\r\n // NOTE: 'dirtyFields' has input names as keys and booleans as values and indicates whether a field has been interacted with by a user.\r\n const [dirtyFields, setDirtyFields] = React.useState({});\r\n // NOTE: 'errors' has input names as keys and the values can be an error message (string) or `undefined` (when the input has no validation errors).\r\n const [errors, setErrors] = React.useState({});\r\n\r\n const attachInput = React.useCallback((name, validationRules = []) => {\r\n validationRules.forEach(ruleName => {\r\n if (typeof validators[ruleName] !== 'function') {\r\n throw new Error(`Found no validator named '${ruleName}'`);\r\n }\r\n });\r\n setDirtyFields(state => ({ ...state, [name]: false }));\r\n setFields(state => ({ ...state, [name]: validationRules }));\r\n }, []);\r\n\r\n const detachInput = React.useCallback(\r\n name => setFields(state => omit(state, [name])),\r\n []\r\n );\r\n\r\n const validate = React.useCallback(\r\n (name, value) => {\r\n const violation = (fields[name] || []).find(\r\n validationName => !validators[validationName](value)\r\n );\r\n if (violation) {\r\n setErrors(errors => ({\r\n ...errors,\r\n [name]: errorMessages[violation] || defaultErrorMessages[violation]\r\n }));\r\n return false;\r\n } else {\r\n setErrors(errors => omit(errors, [name]));\r\n return true;\r\n }\r\n },\r\n [fields, errorMessages]\r\n );\r\n\r\n const validateForm = React.useCallback(() => {\r\n const formContent = serialize(form, { hash: true, empty: true });\r\n const validities = Object.entries(formContent).map(([name, value]) =>\r\n validate(name, value)\r\n );\r\n return validities.every(valid => valid);\r\n }, [form, validate]);\r\n\r\n // This performs an initial validity check of the entire form\r\n React.useEffect(() => {\r\n validateForm();\r\n }, [validateForm]);\r\n\r\n const onInputChange = React.useCallback(\r\n name => {\r\n const formContent = serialize(form, { hash: true, empty: true });\r\n validate(name, formContent[name]);\r\n setDirtyFields(state => ({ ...state, [name]: true }));\r\n },\r\n [form, validate]\r\n );\r\n\r\n const setAllFieldsDirty = React.useCallback(() => {\r\n setDirtyFields(state =>\r\n Object.entries(state).reduce(\r\n (accum, [key]) => ({ ...accum, [key]: true }),\r\n {}\r\n )\r\n );\r\n }, []);\r\n\r\n return {\r\n attachInput,\r\n detachInput,\r\n dirtyFields,\r\n errors,\r\n onInputChange,\r\n setErrors,\r\n setAllFieldsDirty,\r\n validateForm\r\n };\r\n}\r\n","/* eslint-disable no-console */\r\nimport React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport serialize from 'form-serialize';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport messenger from 'js/utils/messenger';\r\nimport apiHelper from 'js/api-helper';\r\nimport useValidationLogic from './use-validation-logic';\r\n\r\nimport Button from 'components/button';\r\nimport ValidationErrorTexts from 'components/validation-error-texts';\r\n\r\nconst isNotEmpty = value => !!value;\r\n\r\nconst maybeCastBoolean = value =>\r\n value === 'true' ? true : value === 'false' ? false : value;\r\n\r\nconst serializeForm = form => {\r\n const data = serialize(form, { hash: true, empty: true });\r\n\r\n return Object.entries(data).reduce((accum, [key, value]) => {\r\n const newValue = Array.isArray(value)\r\n ? value.filter(isNotEmpty)\r\n : maybeCastBoolean(value);\r\n\r\n return newValue === '' ? accum : { ...accum, [key]: newValue };\r\n }, {});\r\n};\r\n\r\nconst Context = React.createContext({\r\n attachInput: () => {},\r\n detachInput: () => {},\r\n dirtyFields: {},\r\n errors: {},\r\n onChange: () => {}\r\n});\r\n\r\nconst Form = ({\r\n children,\r\n className,\r\n endpoint,\r\n id,\r\n onChange,\r\n onRef,\r\n onResponse,\r\n onSubmit,\r\n showSubmitButton,\r\n submitLabel,\r\n validationErrors,\r\n validationEndpoint\r\n}) => {\r\n const [form, setForm] = React.useState();\r\n const [isLoading, setLoading] = React.useState(false);\r\n const {\r\n attachInput,\r\n detachInput,\r\n dirtyFields,\r\n errors,\r\n onInputChange,\r\n setErrors,\r\n setAllFieldsDirty,\r\n validateForm\r\n } = useValidationLogic(form, validationErrors);\r\n\r\n const submitToApi = React.useCallback(\r\n data => {\r\n onSubmit(data);\r\n console.log(data);\r\n return apiHelper\r\n .execute(endpoint, data)\r\n .then(res => {\r\n onResponse(res);\r\n })\r\n .catch(() => {\r\n onResponse({});\r\n })\r\n .finally(() => {\r\n if (isLoading) {\r\n setLoading(false);\r\n }\r\n });\r\n },\r\n [endpoint, onSubmit, onResponse]\r\n );\r\n const submitValidation = data => {\r\n apiHelper\r\n .execute(validationEndpoint, data)\r\n .then(validations => {\r\n if (Object.keys(validations).length === 0) {\r\n submitToApi(data);\r\n return;\r\n }\r\n\r\n setErrors(validations);\r\n\r\n setAllFieldsDirty();\r\n\r\n return;\r\n })\r\n .finally(() => setLoading(false));\r\n };\r\n\r\n const onFormSubmit = React.useCallback(\r\n e => {\r\n e && e.preventDefault();\r\n\r\n messenger.hideMessage();\r\n\r\n const isValid = validateForm();\r\n\r\n if (!isValid) {\r\n setAllFieldsDirty();\r\n\r\n return;\r\n }\r\n\r\n const data = serializeForm(form);\r\n\r\n setLoading(true);\r\n\r\n validationEndpoint ? submitValidation(data) : submitToApi(data);\r\n },\r\n [form, validateForm, setErrors, setAllFieldsDirty, submitToApi]\r\n );\r\n\r\n // NOTE: Yes, this is dirty. As far as I can tell this is the only way of exposing the submit function while still having it be preventable.\r\n React.useEffect(() => {\r\n onRef({ submit: onFormSubmit });\r\n }, [onRef, onFormSubmit]);\r\n\r\n return (\r\n \r\n {\r\n onInputChange(name);\r\n\r\n onChange(serializeForm(form));\r\n }\r\n }}\r\n >\r\n {typeof children === 'function' ? children({ isLoading }) : children}\r\n\r\n {showSubmitButton && (\r\n \r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nForm.propTypes = {\r\n children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),\r\n className: PropTypes.string,\r\n endpoint: PropTypes.string,\r\n id: PropTypes.string,\r\n onChange: PropTypes.func,\r\n onRef: PropTypes.func,\r\n onResponse: PropTypes.func,\r\n onSubmit: PropTypes.func,\r\n showSubmitButton: PropTypes.bool,\r\n submitLabel: PropTypes.string,\r\n validationErrors: PropTypes.exact(ValidationErrorTexts.propTypes),\r\n validationEndpoint: PropTypes.string\r\n};\r\n\r\nForm.defaultProps = {\r\n validationErrors: {},\r\n onChange: () => {},\r\n onRef: () => {},\r\n onResponse: () => {},\r\n onSubmit: () => {}\r\n};\r\n\r\nForm.propTypesMeta = {\r\n children: 'exclude',\r\n className: 'exclude',\r\n id: 'exclude',\r\n showSubmitButton: 'exclude'\r\n};\r\n\r\nForm.Context = Context;\r\n\r\nexport default Form;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport useFormValidation from 'hooks/use-form-validation';\r\n\r\nimport Icon from 'components/icon';\r\n\r\nimport InfoNote from 'components/info-note';\r\n\r\nconst themes = {\r\n alignTop: 'theme-align-top',\r\n grid: 'theme-grid',\r\n hiddenCheckbox: 'theme-hidden-checkbox',\r\n link: 'theme-link'\r\n};\r\n\r\nconst Checkbox = ({\r\n children,\r\n className,\r\n defaultChecked,\r\n disabled,\r\n idPrefix,\r\n label,\r\n description,\r\n tooltip,\r\n name,\r\n title,\r\n onChange,\r\n theme,\r\n value,\r\n validationMessageHidden,\r\n validations\r\n}) => {\r\n const [error, validate] = useFormValidation(name, validations);\r\n const id = idPrefix + '-' + name + (value ? '-' + value : '');\r\n\r\n return (\r\n
\r\n {\r\n validate();\r\n onChange(e.target.checked);\r\n }}\r\n disabled={disabled}\r\n />\r\n\r\n \r\n {description && (\r\n
\r\n
{description}
\r\n {tooltip && (\r\n \r\n )}\r\n
\r\n )}\r\n {!!error && !validationMessageHidden && (\r\n
{error}
\r\n )}\r\n
\r\n );\r\n};\r\n\r\nCheckbox.propTypes = {\r\n children: PropTypes.node,\r\n className: PropTypes.string,\r\n defaultChecked: PropTypes.bool,\r\n disabled: PropTypes.bool,\r\n idPrefix: PropTypes.string,\r\n title: PropTypes.string,\r\n label: PropTypes.string,\r\n description: PropTypes.string,\r\n tooltip: PropTypes.exact(InfoNote.propTypes),\r\n name: PropTypes.string.isRequired,\r\n onChange: PropTypes.func,\r\n theme: PropTypes.oneOf(Object.values(themes)),\r\n value: PropTypes.string,\r\n validationMessageHidden: PropTypes.bool,\r\n validations: PropTypes.arrayOf(PropTypes.string)\r\n};\r\n\r\nCheckbox.propTypesMeta = {\r\n className: 'exclude',\r\n idPrefix: 'exclude',\r\n theme: 'exclude',\r\n title: 'exclude',\r\n validationMessageHidden: 'exclude',\r\n validations: 'exclude'\r\n};\r\n\r\nCheckbox.defaultProps = {\r\n idPrefix: '',\r\n onChange: () => {}\r\n};\r\n\r\nCheckbox.themes = themes;\r\n\r\nexport default Checkbox;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst editTypes = {\r\n floating: 'floating',\r\n flyout: 'flyout',\r\n inline: 'inlin',\r\n webcontrol: 'webcontrol'\r\n};\r\n\r\nclass OnPageEditing extends React.PureComponent {\r\n static propTypes = {\r\n children: PropTypes.node,\r\n editType: PropTypes.oneOf(Object.values(editTypes)),\r\n element: PropTypes.string,\r\n name: PropTypes.string\r\n };\r\n\r\n static propTypesMeta = 'exclude';\r\n\r\n render() {\r\n if (this.props.name) {\r\n return React.createElement(\r\n this.props.element || 'div',\r\n {\r\n 'data-epi-property-name': this.props.name,\r\n 'data-epi-use-mvc': 'True',\r\n 'data-epi-property-edittype': this.props.editType\r\n },\r\n this.props.children\r\n );\r\n }\r\n\r\n return this.props.children || null;\r\n }\r\n}\r\n\r\nOnPageEditing.editTypes = editTypes;\r\n\r\nexport default OnPageEditing;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nconst themes = {\r\n big: 'theme-big',\r\n checkmarks: 'theme-checkmarks',\r\n compactWhite: 'theme-compact-white',\r\n fancyBullets: 'theme-fancy-bullets',\r\n withinCollapsable: 'theme-within-collapsable'\r\n};\r\n\r\nconst RichText = ({\r\n className,\r\n element,\r\n text,\r\n theme,\r\n isCentered,\r\n hasBottomMargin\r\n}) =>\r\n React.createElement(element, {\r\n className: cn(\r\n 'rich-text',\r\n { 'text-centered': isCentered, 'bottom-margin': hasBottomMargin },\r\n className,\r\n theme\r\n ),\r\n dangerouslySetInnerHTML: { __html: text }\r\n });\r\n\r\nRichText.propTypes = {\r\n className: PropTypes.string,\r\n element: PropTypes.string,\r\n text: PropTypes.string,\r\n isCentered: PropTypes.bool,\r\n hasBottomMargin: PropTypes.bool,\r\n theme: PropTypes.oneOf(Object.values(themes))\r\n};\r\n\r\nRichText.propTypesMeta = {\r\n className: 'exclude',\r\n element: 'exclude',\r\n theme: 'exclude',\r\n isCentered: 'exclude',\r\n hasBottomMargin: 'exclude'\r\n};\r\n\r\nRichText.defaultProps = {\r\n element: 'div',\r\n isCentered: true,\r\n hasBottomMargin: true\r\n};\r\n\r\nRichText.themes = themes;\r\n\r\nexport default RichText;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport Collapse from 'react-tiny-collapse';\r\n\r\nimport useToggle from 'hooks/use-toggle';\r\n\r\nimport Icon from 'components/icon';\r\nimport OnPageEditing from 'components/on-page-editing';\r\nimport RichText from 'components/rich-text';\r\n\r\nconst Accordion = ({ id, OPE, text, title, isNarrow }) => {\r\n const [htmlId, setHtmlId] = React.useState(null);\r\n const [isExpanded, toggle] = useToggle(false);\r\n\r\n React.useEffect(() => {\r\n // Setting the id inside of a requestAnimationFrame callback seems to ensure that no two Accordions get the same id.\r\n requestAnimationFrame(() => {\r\n setHtmlId(new Date().getTime());\r\n });\r\n }, []);\r\n\r\n return (\r\n \r\n \r\n
\r\n \r\n \r\n {title}\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\nAccordion.propTypes = {\r\n id: PropTypes.string, // NOTE: Used as key in AccordionList\r\n isNarrow: PropTypes.bool,\r\n OPE: PropTypes.exact({\r\n text: PropTypes.string,\r\n title: PropTypes.string\r\n }),\r\n text: PropTypes.exact(RichText.propTypes),\r\n title: PropTypes.string\r\n};\r\n\r\nAccordion.propTypesMeta = {\r\n isNarrow: 'exclude'\r\n};\r\n\r\nAccordion.defaultProps = {\r\n OPE: {}\r\n};\r\n\r\nexport default Accordion;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Accordion from '../accordion';\r\n\r\nconst AccordionList = ({ items, isNarrow }) =>\r\n !items.length ? null : (\r\n
    \r\n {items.map(item => (\r\n
  • \r\n \r\n
  • \r\n ))}\r\n
\r\n );\r\n\r\nAccordionList.propTypes = {\r\n items: PropTypes.arrayOf(PropTypes.exact(Accordion.propTypes)),\r\n isNarrow: PropTypes.bool\r\n};\r\n\r\nAccordionList.propTypesMeta = {\r\n isNarrow: 'exclude'\r\n};\r\n\r\nAccordionList.defaultProps = {\r\n items: []\r\n};\r\n\r\nexport default AccordionList;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\n// Use class component to be able to ref\r\nclass ContentContainer extends React.Component {\r\n static propTypes = {\r\n children: PropTypes.node,\r\n className: PropTypes.string,\r\n element: PropTypes.string\r\n };\r\n\r\n static propTypesMeta = 'exclude';\r\n\r\n static defaultProps = {\r\n element: 'div'\r\n };\r\n\r\n state = {};\r\n\r\n render() {\r\n const Element = this.props.element;\r\n\r\n return (\r\n \r\n {this.props.children}\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default ContentContainer;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nclass TabTrapper extends React.Component {\r\n static propTypes = {\r\n children: PropTypes.oneOfType([\r\n PropTypes.node,\r\n PropTypes.arrayOf(PropTypes.node)\r\n ]),\r\n isActive: PropTypes.bool\r\n };\r\n\r\n static propTypesMeta = 'exclude';\r\n\r\n state = {\r\n shiftKeyIsPressed: false\r\n };\r\n\r\n previouslyFocusedElement = null;\r\n\r\n componentDidMount() {\r\n this.container.addEventListener('keydown', this.onKeyDown);\r\n }\r\n\r\n componentDidUpdate(prevProps) {\r\n if (!prevProps.isActive && this.props.isActive) {\r\n this.previouslyFocusedElement = document.activeElement;\r\n }\r\n\r\n if (\r\n prevProps.isActive &&\r\n !this.props.isActive &&\r\n this.previouslyFocusedElement\r\n ) {\r\n this.previouslyFocusedElement.focus();\r\n }\r\n }\r\n\r\n componentWillUnmount() {\r\n this.container.removeEventListener('keydown', this.onKeyDown);\r\n\r\n if (this.previouslyFocusedElement) {\r\n this.previouslyFocusedElement.focus();\r\n }\r\n }\r\n\r\n onKeyDown = e => {\r\n this.setState({ shiftKeyIsPressed: e.shiftKey });\r\n };\r\n\r\n trapFirst = () => {\r\n this.afterWrapper.focus();\r\n };\r\n\r\n trapLast = () => {\r\n this.beforeWrapper.focus();\r\n };\r\n\r\n getButtonStyle = () => {\r\n return {\r\n position: 'absolute',\r\n width: 0,\r\n height: 0,\r\n left: '-999em',\r\n overflow: 'hidden'\r\n };\r\n };\r\n\r\n render() {\r\n return (\r\n
(this.container = div)}>\r\n {this.props.isActive && (\r\n \r\n )}\r\n
(this.beforeWrapper = div)} tabIndex={-1} />\r\n\r\n {this.props.children}\r\n\r\n
(this.afterWrapper = div)} tabIndex={-1} />\r\n {this.props.isActive && (\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default TabTrapper;\r\n","import React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport Button from '../button';\r\nimport ContentContainer from '../content-container';\r\nimport Icon from '../icon';\r\nimport TabTrapper from './tab-trapper';\r\n\r\nclass Modal extends React.Component {\r\n static propTypes = {\r\n animate: PropTypes.bool,\r\n className: PropTypes.string,\r\n closeButtonClassName: PropTypes.string,\r\n plainCloseButton: PropTypes.bool,\r\n children: PropTypes.oneOfType([\r\n PropTypes.node,\r\n PropTypes.arrayOf(PropTypes.node)\r\n ]).isRequired,\r\n modalLabel: PropTypes.string,\r\n closeButtonText: PropTypes.string,\r\n containerClassName: PropTypes.string,\r\n contentClassName: PropTypes.string,\r\n hide: PropTypes.func.isRequired, // will be triggered by click on close button, modal background or by pressing the esc key\r\n id: PropTypes.string,\r\n isVisible: PropTypes.bool,\r\n showCloseButton: PropTypes.bool,\r\n hideCloseText: PropTypes.bool\r\n };\r\n\r\n static propTypesMeta = 'exclude';\r\n\r\n static defaultProps = {\r\n animate: true,\r\n modalLabel: '',\r\n closeButtonText: 'Lukk',\r\n showCloseButton: true,\r\n hideCloseText: true,\r\n plainCloseButton: false\r\n };\r\n\r\n state = {\r\n contentHeight: 0,\r\n fitsOnScreen: false,\r\n isMounted: false\r\n };\r\n\r\n componentDidMount() {\r\n this.setState({ isMounted: true }, () => {\r\n this.modal.addEventListener('keyup', this.handleEscPress);\r\n this.setState({\r\n fitsOnScreen: this.modal.offsetHeight < window.innerHeight\r\n });\r\n });\r\n }\r\n\r\n componentWillUnmount() {\r\n this.modal.removeEventListener('keyup', this.handleEscPress);\r\n }\r\n\r\n componentDidUpdate(prevProps) {\r\n if (this.props.isVisible !== prevProps.isVisible && this.props.isVisible) {\r\n this.onAfterShowModal();\r\n }\r\n }\r\n\r\n onAfterShowModal = () => {\r\n requestAnimationFrame(() => {\r\n this.modal.focus();\r\n this.modalWrapper.scrollTop = 0;\r\n });\r\n\r\n this.setState(\r\n {\r\n fitsOnScreen: this.modal.offsetHeight < window.innerHeight\r\n },\r\n () => {\r\n this.setState({ contentHeight: this.modalWrapper.scrollHeight });\r\n }\r\n );\r\n };\r\n\r\n handleEscPress = e => {\r\n if (e.which === 27) {\r\n this.props.hide();\r\n }\r\n };\r\n\r\n render() {\r\n const ariaProps = { 'aria-modal': true, role: 'dialog' };\r\n return !this.state.isMounted\r\n ? null\r\n : ReactDOM.createPortal(\r\n (this.modalWrapper = d)}\r\n {...ariaProps}\r\n >\r\n \r\n \r\n\r\n (this.modal = d)}\r\n tabIndex={-1}\r\n >\r\n \r\n {this.props.children}\r\n {this.props.modalLabel && (\r\n {this.props.modalLabel}\r\n )}\r\n {this.props.showCloseButton && this.props.hideCloseText && (\r\n \r\n \r\n \r\n )}\r\n {!this.props.hideCloseText && (\r\n \r\n {this.props.closeButtonText}\r\n \r\n )}\r\n \r\n
\r\n \r\n
,\r\n document.body\r\n );\r\n }\r\n}\r\n\r\nexport default Modal;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport PubSub from 'pubsub-js';\r\n\r\nimport topics from 'js/topics.json';\r\n\r\nimport Collapse from 'react-tiny-collapse';\r\n\r\nimport Button from '../button';\r\nimport CartProduct from '../cart/cart-product';\r\nimport Icon from '../icon';\r\nimport Link from 'components/link';\r\nimport Modal from '../modal';\r\nimport PageSpinner from '../page-spinner';\r\n\r\nclass AddToCartConfirmation extends React.Component {\r\n static propTypes = {\r\n cartLink: PropTypes.exact(Link.propTypes),\r\n closeButtonText: PropTypes.string,\r\n products: PropTypes.arrayOf(PropTypes.exact(CartProduct.propTypes)),\r\n showAddToCartConfirmation: PropTypes.bool,\r\n title: PropTypes.string\r\n };\r\n\r\n static defaultProps = {\r\n showAddToCartConfirmation: true\r\n };\r\n\r\n state = {\r\n isLoading: false,\r\n isVisible: false,\r\n products: []\r\n };\r\n\r\n componentDidMount() {\r\n this.subscriber = PubSub.subscribe(\r\n topics.cartUpdate,\r\n (msg, { confirmation }) => {\r\n if (!confirmation || !confirmation.products) return;\r\n\r\n this.setState({\r\n ...confirmation,\r\n isVisible: this.props.showAddToCartConfirmation\r\n });\r\n }\r\n );\r\n }\r\n\r\n hide = () => {\r\n this.setState({ isVisible: false });\r\n };\r\n\r\n onProductEdit = () => {\r\n this.setState({ isLoading: true });\r\n };\r\n\r\n onProductEditResponse = response => {\r\n this.setState({ isLoading: false });\r\n PubSub.publish(topics.cartUpdate, response);\r\n };\r\n\r\n render() {\r\n return (\r\n \r\n \r\n\r\n \r\n

\r\n \r\n {this.props.title}\r\n

\r\n {this.state.products.length > 0 && (\r\n \r\n \r\n {this.state.products.map(product => (\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\nexport default AddToCartConfirmation;\r\n","const Anything = {};\r\n\r\n// Empty propTypes needed in order for Anything.cs to be generated.\r\nAnything.propTypes = {};\r\n\r\n// This component exists in order to generate Anything.cs, and to be able to reference this class in propTypes. Use Anything.propTypes to describe a prop where a valid value can be any object. For an example, see ProductCard, where this class is used to represent arbitrary analytics data to be received from the server\r\nexport default Anything;\r\n","import isRunningOnClient from '@creuna/utils/is-running-on-client';\r\n\r\nfunction minWidth(size) {\r\n return function() {\r\n return isRunningOnClient\r\n ? window.matchMedia(`(min-width: ${size}px)`).matches\r\n : null;\r\n };\r\n}\r\n\r\nfunction maxWidth(size) {\r\n return function() {\r\n return isRunningOnClient\r\n ? window.matchMedia(`(max-width: ${size}px)`).matches\r\n : null;\r\n };\r\n}\r\n\r\nconst breakpoints = {\r\n s: 480,\r\n m: 700,\r\n l: 1024,\r\n xl: 1280,\r\n xxl: 1600\r\n};\r\n\r\nexport default {\r\n s: minWidth(breakpoints.s),\r\n m: minWidth(breakpoints.m),\r\n l: minWidth(breakpoints.l),\r\n xl: minWidth(breakpoints.xl),\r\n xxl: minWidth(breakpoints.xxl),\r\n\r\n sMax: maxWidth(breakpoints.s - 1),\r\n mMax: maxWidth(breakpoints.m - 1),\r\n lMax: maxWidth(breakpoints.l - 1),\r\n xlMax: maxWidth(breakpoints.xl - 1),\r\n xxlMax: maxWidth(breakpoints.xxl - 1)\r\n};\r\n","import React from 'react';\r\n\r\nimport breakpoints from 'js/breakpoints';\r\n\r\nexport default function useBreakpoints(\r\n initiallyDesktop,\r\n initiallyTablet,\r\n initiallyMobile\r\n) {\r\n const [state, setState] = React.useState({\r\n isDesktop: initiallyDesktop,\r\n isTablet: initiallyTablet,\r\n isMobile: initiallyMobile\r\n });\r\n\r\n const onResize = () => {\r\n setState({\r\n isDesktop: breakpoints.l(),\r\n isTablet: breakpoints.m(),\r\n isMobile: breakpoints.s()\r\n });\r\n };\r\n\r\n React.useEffect(() => {\r\n onResize();\r\n window.addEventListener('resize', onResize);\r\n return () => window.removeEventListener('resize', onResize);\r\n }, []);\r\n\r\n return state;\r\n}\r\n","import React from 'react';\r\n\r\nconst modalContext = React.createContext({\r\n isAppointmentBookingModalOpen: false,\r\n isLoginModalOpen: false,\r\n isSearchModalOpen: false,\r\n isCartModalOpen: false,\r\n isMobileMenuOpen: false,\r\n toggleAppointmentBookingModal: () => {},\r\n toggleLoginModal: () => {},\r\n toggleSearchModal: () => {},\r\n toggleCartModal: () => {},\r\n toggleMobileMenu: () => {},\r\n closeMobileMenu: () => {},\r\n closeModals: () => {}\r\n});\r\n\r\nexport default modalContext;\r\n","import isRunningOnClient from '@creuna/utils/is-running-on-client';\r\n\r\nconst GoogleMapsLoader = isRunningOnClient ? require('google-maps') : false;\r\n\r\nexport default function(apiKey) {\r\n return new Promise(resolve => {\r\n GoogleMapsLoader.KEY = apiKey;\r\n GoogleMapsLoader.LIBRARIES = ['geometry', 'places'];\r\n GoogleMapsLoader.load(google => {\r\n resolve(google);\r\n });\r\n });\r\n}\r\n","import googleMapsLoader from './google-maps-loader';\r\nimport api from '../js/api-helper';\r\n\r\nconst checkCoords = (addressObj, callback) => {\r\n const addressData = { ...addressObj };\r\n // if we have coords on BE we will return them\r\n if (addressData.latitude && addressData.longitude) {\r\n callback({\r\n latitude: addressData.latitude,\r\n longitude: addressData.longitude\r\n });\r\n }\r\n};\r\n\r\nconst getCurrentCoords = (addressObj, useCurrentPosition, callback) => {\r\n const addressData = { ...addressObj };\r\n // if we don't have any data\r\n if (addressData.address || (addressData.latitude && addressData.longitude))\r\n return;\r\n // we will use current user coords if useCurrentPosition set to true\r\n if (useCurrentPosition && navigator.geolocation) {\r\n navigator.geolocation.getCurrentPosition(position => {\r\n callback({\r\n latitude: position.coords.latitude,\r\n longitude: position.coords.longitude\r\n });\r\n });\r\n // otherwise we will return null\r\n } else {\r\n callback(null);\r\n }\r\n};\r\n\r\nconst findCoords = (addressObj, APIKey, callback) => {\r\n const addressData = { ...addressObj };\r\n // if we have only user address we will find coords\r\n if (addressData.address && !(addressData.latitude && addressData.longitude)) {\r\n googleMapsLoader(APIKey).then(google => {\r\n const geocoder = new google.maps.Geocoder();\r\n geocoder.geocode({ address: addressData.address }, function(\r\n results,\r\n status\r\n ) {\r\n if (status === 'OK') {\r\n callback({\r\n latitude: results[0].geometry.location.lat(),\r\n longitude: results[0].geometry.location.lng()\r\n });\r\n }\r\n });\r\n });\r\n }\r\n};\r\n\r\nconst setCoords = (addressCoords, addressObj, callback) => {\r\n const addressData = { ...addressObj };\r\n // here we update coords on BE\r\n api.execute(addressData.endpoint, {\r\n complete: true,\r\n address: addressData.address,\r\n latitude: addressCoords.latitude,\r\n longitude: addressCoords.longitude\r\n });\r\n callback(addressCoords);\r\n};\r\n\r\nconst handle = (addressObj, APIKey, useCurrentPosition, callback) => {\r\n checkCoords(addressObj, callback);\r\n getCurrentCoords(addressObj, useCurrentPosition, callback);\r\n findCoords(addressObj, APIKey, function(coords) {\r\n setCoords(coords, addressObj, callback);\r\n });\r\n};\r\n\r\nexport default {\r\n getCurrentCoords,\r\n checkCoords,\r\n findCoords,\r\n setCoords,\r\n handle\r\n};\r\n","const prepareLatLongFormatArr = arr => {\r\n const newArr = [];\r\n for (let obj of arr) {\r\n let newObj = { ...obj };\r\n newObj.latitude = obj.latitude.replace(/,/g, '.');\r\n newObj.longitude = obj.longitude.replace(/,/g, '.');\r\n newArr.push(newObj);\r\n }\r\n return newArr;\r\n};\r\n\r\nconst prepareLatLongFormatObj = obj => {\r\n return {\r\n latitude: `${obj.latitude}`.replace(/,/g, '.'),\r\n longitude: `${obj.longitude}`.replace(/,/g, '.')\r\n };\r\n};\r\n\r\nconst getDistance = (\r\n service,\r\n origins,\r\n destinations,\r\n travelMode,\r\n avoidHighways,\r\n avoidTolls,\r\n places\r\n) => {\r\n return new Promise(resolve => {\r\n service(\r\n {\r\n origins: origins,\r\n destinations: destinations,\r\n travelMode: travelMode,\r\n avoidHighways: avoidHighways,\r\n avoidTolls: avoidTolls\r\n },\r\n callback\r\n );\r\n\r\n function callback(response, status) {\r\n if (status === 'OK') {\r\n const result = response.rows[0].elements;\r\n places.forEach((place, index) => {\r\n if (result[index]) {\r\n place.distance = result[index].distance.value;\r\n }\r\n });\r\n resolve(places);\r\n }\r\n }\r\n });\r\n};\r\n\r\nexport default {\r\n prepareLatLongFormatArr,\r\n prepareLatLongFormatObj,\r\n getDistance\r\n};\r\n","import googleMapsLoader from './google-maps-loader';\r\nimport googleMapsHelper from './google-maps-helper';\r\n\r\nconst findNearestShops = (\r\n originCoords,\r\n shopsData,\r\n limit,\r\n nearestShopsNum,\r\n APIKey\r\n) => {\r\n // Google Maps DistanceMatrixService has string length limitation\r\n // we can't send more than 25 shops in one time\r\n // as data converted to string goes out of that limit\r\n // the lower limit property the more safe request we will get\r\n // for safe request we split our data on smaller parts\r\n // and use multiple requests\r\n\r\n return new Promise(resolve => {\r\n if (originCoords === null) {\r\n let shopsSortedInAlphOrder = [];\r\n\r\n (function sortShopsInAlphOrder() {\r\n shopsSortedInAlphOrder = shopsData.sort((a, b) => {\r\n let textA = a.name.toUpperCase();\r\n let textB = b.name.toUpperCase();\r\n return textA < textB ? -1 : textA > textB ? 1 : 0;\r\n });\r\n })();\r\n\r\n resolve(shopsSortedInAlphOrder);\r\n return;\r\n }\r\n\r\n googleMapsLoader(APIKey).then(google => {\r\n const newOrigin = googleMapsHelper.prepareLatLongFormatObj(originCoords);\r\n const origin = new google.maps.LatLng(\r\n newOrigin.latitude,\r\n newOrigin.longitude\r\n );\r\n const travelMode = 'DRIVING';\r\n const avoidHighways = false;\r\n const avoidTolls = false;\r\n const shops = googleMapsHelper.prepareLatLongFormatArr(shopsData);\r\n let arrOfShopsArr = [];\r\n let arrOfDestinationsArr = [];\r\n let arrOfPromises = [];\r\n let arrOfShopsWithDistance = [];\r\n let shopsSortedByDistance = [];\r\n let nearestShops = [];\r\n let shopsSortedInAlphOrder = [];\r\n let shopsResult = [];\r\n\r\n (function splitShopsIfOutOfLimit() {\r\n if (shops.length <= limit) {\r\n arrOfShopsArr.push(shops);\r\n } else {\r\n while (shops.length) {\r\n const newArr = shops.splice(0, limit);\r\n arrOfShopsArr.push(newArr);\r\n }\r\n }\r\n })();\r\n\r\n (function setDestinations() {\r\n for (let shopsArr of arrOfShopsArr) {\r\n const destinations = [];\r\n shopsArr.forEach(shop => {\r\n const destination = new google.maps.LatLng(\r\n shop.latitude,\r\n shop.longitude\r\n );\r\n destinations.push(destination);\r\n });\r\n arrOfDestinationsArr.push(destinations);\r\n }\r\n })();\r\n\r\n const service = new google.maps.DistanceMatrixService();\r\n\r\n (function setPromises() {\r\n for (let i = 0; i < arrOfShopsArr.length; i++) {\r\n const places = arrOfShopsArr[i];\r\n const destinations = arrOfDestinationsArr[i];\r\n const newPromise = googleMapsHelper.getDistance(\r\n service.getDistanceMatrix,\r\n [origin],\r\n destinations,\r\n travelMode,\r\n avoidHighways,\r\n avoidTolls,\r\n places\r\n );\r\n arrOfPromises.push(newPromise);\r\n }\r\n })();\r\n\r\n Promise.all(arrOfPromises).then(arrOfShopsArrWithDistance => {\r\n for (let shopsArrWithDistance of arrOfShopsArrWithDistance) {\r\n arrOfShopsWithDistance = arrOfShopsWithDistance.concat(\r\n shopsArrWithDistance\r\n );\r\n }\r\n\r\n (function sortShopsByDistance() {\r\n shopsSortedByDistance = arrOfShopsWithDistance.sort((a, b) => {\r\n if (a.value === '990') return 1;\r\n else if (b.value === '990') return -1;\r\n\r\n return a.distance > b.distance ? 1 : -1;\r\n });\r\n })();\r\n\r\n (function setNearestShops() {\r\n nearestShops = shopsSortedByDistance.slice(0, nearestShopsNum);\r\n })();\r\n\r\n (function sortShopsInAlphOrder() {\r\n shopsSortedInAlphOrder = shopsSortedByDistance\r\n .slice(nearestShopsNum)\r\n .sort((a, b) => {\r\n if (a.value === '990') return 1;\r\n else if (b.value === '990') return -1;\r\n\r\n let textA = a.name.toUpperCase();\r\n let textB = b.name.toUpperCase();\r\n return textA < textB ? -1 : textA > textB ? 1 : 0;\r\n });\r\n })();\r\n\r\n shopsResult = nearestShops.concat(shopsSortedInAlphOrder);\r\n\r\n resolve(shopsResult);\r\n });\r\n });\r\n });\r\n};\r\n\r\nexport default findNearestShops;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst AppointmentBookingTitle = props => {\r\n return {props.value};\r\n};\r\n\r\nAppointmentBookingTitle.propTypes = {\r\n value: PropTypes.string\r\n};\r\n\r\nAppointmentBookingTitle.propTypesMeta = 'exclude';\r\n\r\nexport default AppointmentBookingTitle;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Icon from 'components/icon';\r\nimport cn from 'classnames';\r\n\r\nconst AppointmentBookingStepBackButton = ({ text, onClick = () => {} }) => {\r\n const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);\r\n const isAndroid = /android/i.test(navigator.userAgent);\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nAppointmentBookingStepBackButton.propTypes = {\r\n text: PropTypes.string,\r\n onClick: PropTypes.func\r\n};\r\n\r\nAppointmentBookingStepBackButton.propTypesMeta = 'exclude';\r\n\r\nexport default AppointmentBookingStepBackButton;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst AppointmentBookingSubtitle = props => {\r\n return {props.value};\r\n};\r\n\r\nAppointmentBookingSubtitle.propTypes = {\r\n value: PropTypes.string\r\n};\r\n\r\nAppointmentBookingSubtitle.propTypesMeta = 'exclude';\r\n\r\nexport default AppointmentBookingSubtitle;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst AppointmentBookingHint = props => {\r\n return (\r\n
\r\n {props.value}\r\n
\r\n );\r\n};\r\n\r\nAppointmentBookingHint.propTypes = {\r\n value: PropTypes.string\r\n};\r\n\r\nAppointmentBookingHint.propTypesMeta = 'exclude';\r\n\r\nexport default AppointmentBookingHint;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst AppointmentBookingRegionItem = props => {\r\n return (\r\n \r\n {props.name}\r\n \r\n );\r\n};\r\n\r\nAppointmentBookingRegionItem.propTypes = {\r\n onClickHandle: PropTypes.func,\r\n name: PropTypes.string.isRequired\r\n};\r\n\r\nAppointmentBookingRegionItem.propTypesMeta = 'exclude';\r\n\r\nexport default AppointmentBookingRegionItem;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport AppointmentBookingRegionItem from 'components/appointment-booking-modal/appointment-booking-region-item';\r\n\r\nconst AppointmentBookingRegionList = props => {\r\n return (\r\n
\r\n {props.regions.map((item, index) => {\r\n return (\r\n {\r\n props.onClickRegion(index);\r\n }}\r\n />\r\n );\r\n })}\r\n
\r\n );\r\n};\r\n\r\nAppointmentBookingRegionList.propTypes = {\r\n onClickRegion: PropTypes.func,\r\n regions: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n name: PropTypes.string.isRequired,\r\n id: PropTypes.string.isRequired, // NOTE: Used as key in region list\r\n // shops neede for BE json structure\r\n shops: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n name: PropTypes.string.isRequired,\r\n id: PropTypes.string.isRequired, // NOTE: Used as key in shop list\r\n address: PropTypes.string,\r\n postalCode: PropTypes.string,\r\n latitude: PropTypes.string,\r\n longitude: PropTypes.string\r\n })\r\n )\r\n })\r\n )\r\n};\r\n\r\nexport default AppointmentBookingRegionList;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst AppointmentBookingShopItem = props => {\r\n return (\r\n \r\n {props.name}\r\n \r\n {props.address}\r\n \r\n \r\n );\r\n};\r\n\r\nAppointmentBookingShopItem.propTypes = {\r\n name: PropTypes.string.isRequired,\r\n address: PropTypes.string.isRequired,\r\n onClickHandle: PropTypes.func\r\n};\r\n\r\nAppointmentBookingShopItem.propTypesMeta = 'exclude';\r\n\r\nexport default AppointmentBookingShopItem;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport AppointmentBookingShopItem from 'components/appointment-booking-modal/appointment-booking-shop-item';\r\n\r\nconst AppointmentBookingShopList = props => {\r\n return (\r\n
\r\n
\r\n {props.shops &&\r\n props.shops.map((item, index) => {\r\n return (\r\n {\r\n props.onClickShop(index);\r\n }}\r\n />\r\n );\r\n })}\r\n
\r\n
\r\n );\r\n};\r\n\r\nAppointmentBookingShopList.propTypes = {\r\n onClickShop: PropTypes.func,\r\n shops: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n name: PropTypes.string.isRequired,\r\n id: PropTypes.string.isRequired, // NOTE: Used as key in region list\r\n address: PropTypes.string.isRequired\r\n })\r\n )\r\n};\r\n\r\nexport default AppointmentBookingShopList;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst AppointmentBookingProgress = props => {\r\n return (\r\n \r\n );\r\n};\r\n\r\nAppointmentBookingProgress.propTypes = {\r\n progress: PropTypes.string\r\n};\r\n\r\nAppointmentBookingProgress.propTypesMeta = 'exclude';\r\n\r\nexport default AppointmentBookingProgress;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Icon from '../icon';\r\n\r\nconst AppointmentBookingResultRegion = props => {\r\n return (\r\n \r\n
\r\n \r\n
\r\n \r\n {props.region}\r\n \r\n
\r\n \r\n
\r\n \r\n );\r\n};\r\n\r\nAppointmentBookingResultRegion.propTypes = {\r\n region: PropTypes.string,\r\n onClickHandle: PropTypes.func\r\n};\r\n\r\nAppointmentBookingResultRegion.propTypesMeta = 'exclude';\r\n\r\nexport default AppointmentBookingResultRegion;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Icon from '../icon';\r\n\r\nconst AppointmentBookingResultShop = props => {\r\n return (\r\n \r\n
\r\n \r\n
\r\n \r\n {props.shop.name}\r\n \r\n \r\n {props.shop.address}\r\n \r\n
\r\n \r\n
\r\n \r\n );\r\n};\r\n\r\nAppointmentBookingResultShop.propTypes = {\r\n onClickHandle: PropTypes.func,\r\n shop: PropTypes.shape({\r\n name: PropTypes.string,\r\n address: PropTypes.string\r\n })\r\n};\r\n\r\nAppointmentBookingResultShop.propTypesMeta = 'exclude';\r\n\r\nexport default AppointmentBookingResultShop;\r\n","import React, { useState, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\n\r\nconst Avatar = props => {\r\n const [src, setSrc] = useState('');\r\n const [alt, setAlt] = useState('');\r\n useEffect(() => {\r\n // runs when component changed\r\n setSrc(props.src);\r\n setAlt(props.alt);\r\n });\r\n\r\n return (\r\n
\r\n {!src ? null : {alt}}\r\n
\r\n );\r\n};\r\n\r\nAvatar.propTypes = {\r\n className: PropTypes.string,\r\n src: PropTypes.string,\r\n alt: PropTypes.string\r\n};\r\n\r\nAvatar.propTypesMeta = {\r\n className: 'exclude'\r\n};\r\n\r\nexport default Avatar;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Icon from '../icon';\r\nimport Avatar from 'components/avatar';\r\n\r\nconst AppointmentBookingResultAppointment = props => {\r\n return (\r\n \r\n
\r\n \r\n
\r\n \r\n {props.appointment.appointmentName}\r\n \r\n \r\n \r\n {props.appointment.appointmentTime} {props.timeText} ·{' '}\r\n \r\n \r\n {props.priceText} {props.appointment.appointmentPrice}\r\n \r\n – {props.paymentTypeText}\r\n \r\n
\r\n \r\n
\r\n {Object.keys(props.assistant).length !== 0 && props.assistantId && (\r\n
\r\n \r\n \r\n {props.assistantText} {props.assistant.name}\r\n \r\n
\r\n )}\r\n \r\n );\r\n};\r\n\r\nAppointmentBookingResultAppointment.propTypes = {\r\n appointment: PropTypes.shape({\r\n appointmentName: PropTypes.string,\r\n appointmentTime: PropTypes.string,\r\n appointmentPrice: PropTypes.string\r\n }),\r\n timeText: PropTypes.string,\r\n priceText: PropTypes.string,\r\n paymentTypeText: PropTypes.string,\r\n assistant: PropTypes.shape({\r\n id: PropTypes.string,\r\n image: PropTypes.string,\r\n name: PropTypes.string,\r\n timeSlots: PropTypes.arrayOf(PropTypes.string)\r\n }),\r\n assistantId: PropTypes.string,\r\n assistantText: PropTypes.string,\r\n onClickHandle: PropTypes.func\r\n};\r\n\r\nAppointmentBookingResultAppointment.propTypesMeta = {\r\n appointment: 'exclude',\r\n assistant: 'exclude',\r\n assistantId: 'exclude'\r\n};\r\n\r\nexport default AppointmentBookingResultAppointment;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Icon from '../icon';\r\n\r\nconst AppointmentBookingResultTime = props => {\r\n const dayNumber = new Date(props.date).getDate();\r\n\r\n return (\r\n \r\n
\r\n \r\n
\r\n \r\n {`${props.weekday} ${dayNumber} `}\r\n \r\n {props.month}\r\n \r\n \r\n \r\n  · {props.preposition} {props.time}\r\n \r\n
\r\n \r\n
\r\n \r\n );\r\n};\r\n\r\nAppointmentBookingResultTime.propTypes = {\r\n onClickHandle: PropTypes.func,\r\n date: PropTypes.string,\r\n weekday: PropTypes.string,\r\n month: PropTypes.string,\r\n time: PropTypes.string,\r\n preposition: PropTypes.string\r\n};\r\n\r\nAppointmentBookingResultTime.propTypesMeta = {\r\n date: 'exclude',\r\n weekday: 'exclude',\r\n month: 'exclude',\r\n time: 'exclude'\r\n};\r\n\r\nexport default AppointmentBookingResultTime;\r\n","import React, { Fragment } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Icon from '../icon';\r\n\r\nconst AppointmentBookingResultAgree = props => {\r\n return (\r\n
\r\n {props.status && (\r\n \r\n
\r\n \r\n
\r\n \r\n {props.text}\r\n \r\n
\r\n )}\r\n
\r\n );\r\n};\r\n\r\nAppointmentBookingResultAgree.propTypes = {\r\n text: PropTypes.string,\r\n status: PropTypes.bool\r\n};\r\n\r\nAppointmentBookingResultAgree.propTypesMeta = 'exclude';\r\n\r\nexport default AppointmentBookingResultAgree;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport AppointmentBookingResultRegion from 'components/appointment-booking-modal/appointment-booking-result-region';\r\nimport AppointmentBookingResultShop from 'components/appointment-booking-modal/appointment-booking-result-shop';\r\nimport AppointmentBookingResultAppointment from 'components/appointment-booking-modal/appointment-booking-result-appointment';\r\nimport AppointmentBookingResultTime from 'components/appointment-booking-modal/appointment-booking-result-time';\r\nimport AppointmentBookingResultAgree from 'components/appointment-booking-modal/appointment-booking-result-agree';\r\n\r\nconst AppointmentBookingResultList = props => {\r\n return (\r\n
\r\n {props.step === 1 && (\r\n {\r\n props.onClickGoToStep(0);\r\n }}\r\n />\r\n )}\r\n {props.step > 1 && (\r\n {\r\n props.onClickGoToStep(1);\r\n }}\r\n />\r\n )}\r\n {props.step > 2 && (\r\n {\r\n props.onClickGoToStep(2);\r\n }}\r\n />\r\n )}\r\n {props.step > 3 && (\r\n {\r\n props.onClickGoToStep(3);\r\n }}\r\n />\r\n )}\r\n {props.step === 5 && (\r\n \r\n )}\r\n
\r\n );\r\n};\r\n\r\nAppointmentBookingResultList.propTypes = {\r\n region: PropTypes.string,\r\n step: PropTypes.number,\r\n onClickGoToStep: PropTypes.func,\r\n shop: PropTypes.shape({\r\n name: PropTypes.string,\r\n address: PropTypes.string\r\n }),\r\n appointment: PropTypes.shape({\r\n appointmentName: PropTypes.string,\r\n appointmentTime: PropTypes.string,\r\n appointmentPrice: PropTypes.string\r\n }),\r\n timeText: PropTypes.string,\r\n priceText: PropTypes.string,\r\n paymentTypeText: PropTypes.string,\r\n assistant: PropTypes.shape({\r\n id: PropTypes.string,\r\n image: PropTypes.string,\r\n name: PropTypes.string,\r\n timeSlots: PropTypes.arrayOf(PropTypes.string)\r\n }),\r\n assistantId: PropTypes.string,\r\n assistantText: PropTypes.string,\r\n activeDate: PropTypes.string,\r\n activeWeekday: PropTypes.string,\r\n activeMonth: PropTypes.string,\r\n preposition: PropTypes.string,\r\n timeSlot: PropTypes.string,\r\n agreeStatus: PropTypes.bool,\r\n agreeText: PropTypes.string\r\n};\r\n\r\nAppointmentBookingResultList.propTypesMeta = {\r\n region: 'exclude',\r\n step: 'exclude',\r\n shop: 'exclude',\r\n appointment: 'exclude',\r\n assistant: 'exclude',\r\n assistantId: 'exclude',\r\n activeDate: 'exclude',\r\n activeWeekday: 'exclude',\r\n activeMonth: 'exclude',\r\n timeSlot: 'exclude',\r\n agreeStatus: 'exclude',\r\n agreeText: 'exclude'\r\n};\r\n\r\nexport default AppointmentBookingResultList;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport Collapse from 'react-tiny-collapse';\r\n\r\nimport useToggle from 'hooks/use-toggle';\r\n\r\nimport Icon from 'components/icon';\r\nimport Image from 'components/image/image';\r\nimport OnPageEditing from 'components/on-page-editing';\r\nimport RichText from 'components/rich-text';\r\nimport Text from 'components/text';\r\n\r\nconst AppointmentBookingServiceAccordion = props => {\r\n const [isExpanded, toggle] = useToggle(false);\r\n\r\n return (\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n {props.title}\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 {props.appointments.map((item, index) => {\r\n return (\r\n \r\n {\r\n props.onClickService(item.appointmentId);\r\n }}\r\n >\r\n
\r\n
\r\n {item.appointmentLabel && (\r\n \r\n {item.appointmentLabel}\r\n \r\n )}\r\n
\r\n
\r\n \r\n {item.appointmentName}\r\n \r\n
\r\n \r\n {`${item.appointmentTime} `}\r\n {`${props.timeText} `}\r\n \r\n \r\n {`${props.priceText} `}\r\n {item.appointmentPrice}\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\nAppointmentBookingServiceAccordion.propTypes = {\r\n id: PropTypes.string,\r\n title: PropTypes.string,\r\n mainIcon: PropTypes.string,\r\n timeText: PropTypes.string,\r\n priceText: PropTypes.string,\r\n onClickService: PropTypes.func,\r\n appointments: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n appointmentId: PropTypes.string,\r\n appointmentName: PropTypes.string,\r\n appointmentTime: PropTypes.string,\r\n appointmentPrice: PropTypes.string,\r\n appointmentDescription: PropTypes.string\r\n })\r\n )\r\n};\r\n\r\nAppointmentBookingServiceAccordion.propTypesMeta = {\r\n id: 'exclude',\r\n title: 'exclude',\r\n mainIcon: 'exclude'\r\n};\r\n\r\nexport default AppointmentBookingServiceAccordion;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport AppointmentBookingServiceAccordion from 'components/appointment-booking-modal/appointment-booking-service-accordion';\r\n\r\nconst AppointmentBookingServiceList = props => {\r\n return (\r\n
\r\n {props.services.map(item => {\r\n return (\r\n \r\n );\r\n })}\r\n
\r\n );\r\n};\r\n\r\nAppointmentBookingServiceList.propTypes = {\r\n onClickService: PropTypes.func,\r\n timeText: PropTypes.string,\r\n priceText: PropTypes.string,\r\n services: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n appointmentGroupId: PropTypes.string.isRequired,\r\n appointmentGroupName: PropTypes.string.isRequired,\r\n appointmentGroupMainIconName: PropTypes.string.isRequired,\r\n appointments: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n appointmentId: PropTypes.string.isRequired,\r\n appointmentName: PropTypes.string.isRequired,\r\n appointmentTime: PropTypes.string.isRequired,\r\n appointmentPrice: PropTypes.string.isRequired,\r\n appointmentLabel: PropTypes.string,\r\n appointmentDescription: PropTypes.string.isRequired\r\n })\r\n )\r\n })\r\n )\r\n};\r\n\r\nexport default AppointmentBookingServiceList;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Button from '../button';\r\nimport Icon from 'components/icon';\r\n\r\nconst AppointmentBookingSeeNearest = props => {\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n {props.text}\r\n \r\n \r\n
\r\n );\r\n};\r\n\r\nAppointmentBookingSeeNearest.propTypes = {\r\n onClickSeeNearestShops: PropTypes.func,\r\n text: PropTypes.string\r\n};\r\n\r\nexport default AppointmentBookingSeeNearest;\r\n","import React, { useState, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport Collapse from 'react-tiny-collapse';\r\n\r\nimport useToggle from 'hooks/use-toggle';\r\n\r\nimport Icon from 'components/icon';\r\nimport OnPageEditing from 'components/on-page-editing';\r\nimport Text from 'components/text';\r\nimport Avatar from 'components/avatar';\r\n\r\nconst AppointmentBookingAssistantAccordion = props => {\r\n const [isExpanded, toggle] = useToggle(false);\r\n const [text, setText] = useState(props.defaultText);\r\n const [imagePath, setImagePath] = useState('');\r\n const [imageAlt, setImageAlt] = useState('');\r\n const [filled, setFilled] = useState(false);\r\n\r\n useEffect(() => {\r\n setText(props.defaultText);\r\n setImagePath('');\r\n setImageAlt('');\r\n setFilled(false);\r\n }, [props.assistants]);\r\n\r\n const onClickAssistant = (id, image, name) => {\r\n toggle();\r\n setText(`${props.label} ${name}`);\r\n setImagePath(image);\r\n setImageAlt(name);\r\n setFilled(true);\r\n props.onClickAssistant(id);\r\n };\r\n\r\n const onClickRemoveAssistant = event => {\r\n event.stopPropagation();\r\n setText(props.defaultText);\r\n setImagePath('');\r\n setImageAlt('');\r\n setFilled(false);\r\n props.onClickRemoveAssistant();\r\n };\r\n\r\n useEffect(() => {\r\n if (props.assistants.length > 0 && props.assistantId !== '') {\r\n const assistant = props.assistants.find(obj => {\r\n return obj.id === props.assistantId;\r\n });\r\n if (assistant) {\r\n setText(`${props.label} ${assistant.name}`);\r\n setImagePath(assistant.image);\r\n setImageAlt(assistant.name);\r\n setFilled(true);\r\n }\r\n } else if (props.assistants.length > 0 && props.preselectedOpticianId) {\r\n const assistant = props.assistants.find(obj => {\r\n return obj.id === props.preselectedOpticianId;\r\n });\r\n if (assistant) {\r\n setText(`${props.label} ${assistant.name}`);\r\n setImagePath(assistant.image);\r\n setImageAlt(assistant.name);\r\n setFilled(true);\r\n }\r\n }\r\n }, [props.assistants, props.preselectedOpticianId]);\r\n\r\n return (\r\n
\r\n \r\n
\r\n {filled && (\r\n \r\n )}\r\n
\r\n \r\n \r\n {text}\r\n \r\n \r\n
\r\n {!filled && (\r\n
\r\n \r\n
\r\n )}\r\n {filled && (\r\n \r\n {props.cancelText}\r\n
\r\n )}\r\n
\r\n \r\n\r\n \r\n
\r\n {props.assistants.map(item => {\r\n return (\r\n \r\n {\r\n onClickAssistant(item.id, item.image, item.name);\r\n }}\r\n >\r\n
\r\n \r\n \r\n {item.name}\r\n \r\n
\r\n
\r\n \r\n );\r\n })}\r\n \r\n
\r\n \r\n );\r\n};\r\n\r\nAppointmentBookingAssistantAccordion.propTypes = {\r\n defaultText: PropTypes.string.isRequired,\r\n cancelText: PropTypes.string.isRequired,\r\n label: PropTypes.string.isRequired,\r\n onClickAssistant: PropTypes.func,\r\n onClickRemoveAssistant: PropTypes.func,\r\n assistants: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n id: PropTypes.string.isRequired,\r\n image: PropTypes.string.isRequired,\r\n name: PropTypes.string.isRequired\r\n })\r\n ),\r\n assistantId: PropTypes.string,\r\n preselectedOpticianId: PropTypes.string\r\n};\r\n\r\nAppointmentBookingAssistantAccordion.propTypesMeta = {\r\n assistants: 'exclude',\r\n assistantId: 'exclude',\r\n preselectedOpticianId: 'exclude'\r\n};\r\n\r\nexport default AppointmentBookingAssistantAccordion;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport AppointmentBookingAssistantAccordion from 'components/appointment-booking-modal/appointment-booking-assistant-accordion';\r\n\r\nconst AppointmentBookingAssistant = props => {\r\n return (\r\n
\r\n \r\n
\r\n );\r\n};\r\n\r\nAppointmentBookingAssistant.propTypes = {\r\n defaultText: PropTypes.string.isRequired,\r\n cancelText: PropTypes.string.isRequired,\r\n label: PropTypes.string.isRequired,\r\n onClickAssistant: PropTypes.func,\r\n onClickRemoveAssistant: PropTypes.func,\r\n assistants: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n id: PropTypes.string.isRequired,\r\n image: PropTypes.string.isRequired,\r\n name: PropTypes.string.isRequired,\r\n dates: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n date: PropTypes.string,\r\n weekday: PropTypes.string,\r\n weekdayShort: PropTypes.string,\r\n month: PropTypes.string,\r\n timeSlots: PropTypes.arrayOf(PropTypes.string)\r\n })\r\n )\r\n })\r\n ),\r\n assistantId: PropTypes.string,\r\n preselectedOpticianId: PropTypes.string\r\n};\r\n\r\nAppointmentBookingAssistant.propTypesMeta = {\r\n assistants: 'exclude',\r\n assistantId: 'exclude',\r\n preselectedOpticianId: 'exclude'\r\n};\r\n\r\nexport default AppointmentBookingAssistant;\r\n","import React from 'react';\r\n\r\n/** Attach an event listener to `element` with the `passive` option set to false. */\r\nexport default function useNonPassiveEvent(\r\n event,\r\n element,\r\n listener,\r\n dependencies = []\r\n) {\r\n React.useEffect(() => {\r\n if (!element) return;\r\n const options = { passive: false };\r\n element.addEventListener(event, listener, options);\r\n return () => element.removeEventListener(event, listener, options);\r\n }, [event, element, ...dependencies]);\r\n}\r\n","import { useEffect, useRef, useState } from 'react';\r\n\r\nconst useInterval = (callback, delayInSeconds) => {\r\n const savedCallback = useRef();\r\n\r\n const [seconds, setSeconds] = useState(0);\r\n\r\n const [isPaused, setIsPaused] = useState(false);\r\n const [isStopped, setIsStopped] = useState(false);\r\n\r\n // Remember the latest callback.\r\n useEffect(() => {\r\n savedCallback.current = callback;\r\n }, [callback]);\r\n\r\n function reset() {\r\n setSeconds(0);\r\n }\r\n\r\n function stop() {\r\n setIsStopped(true);\r\n }\r\n\r\n function start() {\r\n setIsStopped(false);\r\n }\r\n\r\n function pause() {\r\n setIsPaused(true);\r\n }\r\n\r\n function unpause() {\r\n setIsPaused(false);\r\n }\r\n\r\n // Set up the interval.\r\n useEffect(() => {\r\n let interval = null;\r\n\r\n if (!delayInSeconds) return () => clearInterval(interval);\r\n\r\n function tick() {\r\n savedCallback.current();\r\n }\r\n\r\n if (!isPaused && !isStopped) {\r\n interval = setInterval(() => {\r\n setSeconds(seconds => seconds + 1);\r\n\r\n if (seconds === 0) return; // we skip the first iteration\r\n\r\n if (seconds % delayInSeconds === 0) tick();\r\n }, 1000);\r\n } else if ((isPaused || isStopped) && seconds !== 0) {\r\n clearInterval(interval);\r\n }\r\n\r\n return () => clearInterval(interval);\r\n }, [isPaused, isStopped, seconds]);\r\n\r\n return {\r\n reset,\r\n stop,\r\n start,\r\n pause,\r\n unpause,\r\n isPaused,\r\n isStopped\r\n };\r\n};\r\n\r\nexport default useInterval;\r\n","import React from 'react';\r\n\r\nconst CarouselContext = React.createContext();\r\n\r\nCarouselContext.propTypes = {};\r\n\r\nCarouselContext.propTypesMeta = 'exclude';\r\n\r\nexport default CarouselContext;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport CarouselContext from './carousel-context';\r\n\r\nconst CarouselContextProvider = ({ children, currentSlideIndex }) => {\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n};\r\n\r\nCarouselContextProvider.propTypes = {\r\n children: PropTypes.node,\r\n currentSlideIndex: PropTypes.number\r\n};\r\n\r\nCarouselContextProvider.propTypesMeta = 'exclude';\r\n\r\nexport default CarouselContextProvider;\r\n","import React, { useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\n\r\n// Wrapper component that appears during keyboard navigation. Usefull for adding assistive functions like skipping content, etc.\r\n\r\nconst AssistiveDrawer = ({ description, children }) => {\r\n const [isOpen, setIsOpen] = useState(false);\r\n\r\n return (\r\n setIsOpen(true)}\r\n onBlur={() => setIsOpen(false)}\r\n >\r\n
{children}
\r\n \r\n );\r\n};\r\n\r\nAssistiveDrawer.propTypes = {\r\n children: PropTypes.node.isRequired,\r\n description: PropTypes.string.isRequired\r\n};\r\n\r\nAssistiveDrawer.propTypesMeta = 'exclude';\r\n\r\nexport default AssistiveDrawer;\r\n","import React, { useRef, useState, useMemo, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\nimport clamp from '@creuna/utils/clamp';\r\nimport { useSpringStyle } from 'use-spring-effect';\r\n\r\nimport propTypeTheme from 'utils/prop-type-theme';\r\nimport useNonPassiveEvent from 'hooks/use-non-passive-event';\r\n\r\nimport useInterval from '../../hooks/use-interval';\r\nimport CarouselContextProvider from '../../contexts/carousel-context-provider';\r\nimport AssistiveDrawer from 'components/assistive-drawer';\r\n\r\nimport Icon from '../icon';\r\n\r\nconst themes = {\r\n block: 'theme-block',\r\n small: 'theme-small',\r\n cta: 'theme-cta'\r\n};\r\n\r\nconst getNewState = (newIndex, children, numberOfSlidesToShow) => {\r\n const numberOfItems = React.Children.count(children);\r\n const lastIndex = numberOfItems - numberOfSlidesToShow;\r\n const newIndexClamped = clamp(newIndex, 0, lastIndex);\r\n\r\n return {\r\n currentIndex: newIndexClamped,\r\n currentIndexRounded: Math.round(newIndexClamped),\r\n hasNextItem: newIndexClamped < lastIndex,\r\n hasPreviousItem: newIndexClamped > 0\r\n };\r\n};\r\n\r\nconst Carousel = ({\r\n children,\r\n nextItemText,\r\n pauseItemText,\r\n playItemText,\r\n stopItemText,\r\n autoPlayDelayInSeconds,\r\n numberOfSlidesToShow,\r\n previousItemText,\r\n dotButtonText,\r\n shouldShowDots,\r\n carouselLabelText,\r\n isAutoPlayEnabled,\r\n numberOfSlidesToJump,\r\n startIndex,\r\n theme,\r\n thumbnails,\r\n shouldShowNavText,\r\n shouldLoop,\r\n title,\r\n carouselAnnouncementText,\r\n carouselItemLabelText,\r\n hasQuickAnimations\r\n}) => {\r\n const slidesCount = useMemo(() => React.Children.count(children), [children]);\r\n\r\n const hasThumbnails = React.Children.count(thumbnails) > 0;\r\n\r\n const announcementText = carouselAnnouncementText.replace(\r\n /\\$\\{1\\}/g,\r\n slidesCount\r\n );\r\n\r\n const slideRefs = useRef([]);\r\n\r\n const [state, setState] = useState({ currentIndex: startIndex });\r\n const [wrapper, setWrapper] = useState();\r\n const [navVisible, setNavVisible] = useState(slidesCount > 0);\r\n\r\n const animationParams = hasQuickAnimations\r\n ? { stiffness: 2000, damping: 50, precision: 1000 }\r\n : { stiffness: 130, damping: 20, precision: 1000 };\r\n\r\n const [animationRef, transitionTo] = useSpringStyle(\r\n startIndex,\r\n x => ({\r\n transform: `translateX(${-((100 / slidesCount) * x) /\r\n numberOfSlidesToShow}%)`\r\n }),\r\n animationParams,\r\n [slidesCount, numberOfSlidesToShow]\r\n );\r\n\r\n const update = index => {\r\n const newState = getNewState(index, children, numberOfSlidesToShow);\r\n\r\n setState(newState);\r\n\r\n transitionTo(newState.currentIndex);\r\n };\r\n\r\n const goToItem = newIndex => update(Math.round(newIndex));\r\n\r\n const goToNextItem = () => {\r\n if (\r\n shouldLoop &&\r\n state.currentIndex === slidesCount - numberOfSlidesToShow\r\n ) {\r\n goToItem(0);\r\n return;\r\n }\r\n\r\n goToItem(state.currentIndex + numberOfSlidesToJump);\r\n };\r\n\r\n const goToPreviousItem = () => {\r\n if (shouldLoop && state.currentIndex === startIndex) {\r\n goToItem(slidesCount);\r\n return;\r\n }\r\n\r\n goToItem(state.currentIndex - numberOfSlidesToJump);\r\n };\r\n\r\n const {\r\n reset: resetTimer,\r\n isPaused: isTimerPaused,\r\n isStopped: isTimerStopped,\r\n stop: stopTimer,\r\n start: startTimer,\r\n pause: pauseTimer,\r\n unpause: unpauseTimer\r\n } = useInterval(\r\n () => {\r\n goToNextItem();\r\n },\r\n isAutoPlayEnabled ? autoPlayDelayInSeconds : undefined\r\n );\r\n\r\n // On children update\r\n useEffect(() => {\r\n update(startIndex);\r\n setNavVisible(slidesCount);\r\n }, [slidesCount]);\r\n\r\n // Non-render state\r\n const hasMultiTouch = useRef();\r\n const isZoomed = useRef();\r\n const initialScreenWidth = useRef();\r\n const indexOnTouchStart = useRef();\r\n const previousX = useRef();\r\n const touchStartX = useRef();\r\n\r\n useEffect(() => {\r\n initialScreenWidth.current = window.innerWidth;\r\n }, []);\r\n\r\n useEffect(() => {\r\n goToItem(startIndex);\r\n }, [startIndex]);\r\n\r\n const onTouchEnd = () => {\r\n goToItem(state.currentIndex);\r\n touchStartX.current = undefined;\r\n previousX.current = 0;\r\n };\r\n\r\n const onTouchStart = touch => {\r\n if (!touch) return;\r\n\r\n touchStartX.current = touch.clientX;\r\n indexOnTouchStart.current = state.currentIndex;\r\n previousX.current = touch.clientX;\r\n };\r\n\r\n const onTouchMove = (e, touch) => {\r\n isZoomed.current =\r\n Math.abs(window.innerWidth - initialScreenWidth.current) > 10;\r\n\r\n if (isZoomed.current || hasMultiTouch.current || !touch) {\r\n return;\r\n }\r\n\r\n const travel = touchStartX.current - touch.clientX;\r\n\r\n if (Math.abs(travel) > 5) {\r\n e.preventDefault(); // Disable scrolling while interacting with carousel\r\n }\r\n\r\n // NOTE: Go to next slide on fast swipe\r\n if (Math.abs(touch.clientX - previousX.current) > 20) {\r\n update(indexOnTouchStart.current + (travel > 0 ? 1 : -1));\r\n return;\r\n }\r\n\r\n const travelRelative = travel / wrapper.offsetWidth;\r\n\r\n previousX.current = touch.clientX;\r\n\r\n update(indexOnTouchStart.current + travelRelative);\r\n };\r\n\r\n const navigateByDot = index => {\r\n resetTimer();\r\n goToItem(index);\r\n // slideRefs.current[index].focus();\r\n };\r\n\r\n const onWrapperTouchMove = e => {\r\n hasMultiTouch.current = e.touches.length > 1;\r\n onTouchMove(e, e.touches[0]);\r\n };\r\n\r\n const toggleStopAutoPlay = () => {\r\n isTimerStopped ? startTimer() : stopTimer();\r\n };\r\n\r\n // NOTE: Using non-passive event because passive event listeners can't call event.preventDefault\r\n useNonPassiveEvent('touchmove', wrapper, onWrapperTouchMove);\r\n\r\n const itemWidth = 100 / slidesCount;\r\n const currentSlide = state.currentIndexRounded;\r\n const maxSteps = Math.ceil(slidesCount / numberOfSlidesToShow);\r\n const steps = new Array(maxSteps).fill(0).map((_, i) => i);\r\n\r\n const memoizedAnnoucementText = useMemo(() => {\r\n return announcementText.replace(/\\$\\{0\\}/g, currentSlide + 1);\r\n }, [currentSlide]);\r\n\r\n return slidesCount === 0 ? null : (\r\n \r\n 1,\r\n 'default-state': !state.hasPreviousItem\r\n })}\r\n >\r\n {isAutoPlayEnabled && (\r\n \r\n \r\n {isTimerStopped ? playItemText : stopItemText}\r\n \r\n \r\n )}\r\n {carouselAnnouncementText && (\r\n \r\n {memoizedAnnoucementText}\r\n \r\n )}\r\n
\r\n \r\n onTouchStart(e.touches[0])}\r\n onTouchEnd={onTouchEnd}\r\n >\r\n \r\n {React.Children.map(children, (child, index) => {\r\n const isCurrent = currentSlide === index;\r\n\r\n return (\r\n (slideRefs.current[index] = ref)}\r\n tabIndex=\"-1\"\r\n onFocus={e => {\r\n if (!e.currentTarget.contains(e.relatedTarget))\r\n pauseTimer();\r\n }}\r\n onBlur={e => {\r\n if (!e.currentTarget.contains(e.relatedTarget))\r\n unpauseTimer();\r\n }}\r\n className={cn({ 'is-current': isCurrent })}\r\n style={{ width: `${itemWidth / numberOfSlidesToShow}%` }}\r\n >\r\n {child}\r\n \r\n );\r\n })}\r\n \r\n
\r\n {navVisible && (\r\n <>\r\n {title && {title}}\r\n
\r\n {\r\n resetTimer();\r\n goToPreviousItem();\r\n }}\r\n >\r\n {shouldShowNavText && (\r\n \r\n {previousItemText}\r\n \r\n )}\r\n \r\n \r\n {\r\n resetTimer();\r\n goToNextItem();\r\n }}\r\n type=\"button\"\r\n >\r\n {shouldShowNavText && (\r\n {nextItemText}\r\n )}\r\n \r\n \r\n
\r\n \r\n )}\r\n \r\n {shouldShowDots && (\r\n
\r\n {isAutoPlayEnabled && (\r\n <>\r\n \r\n {shouldShowNavText && (\r\n \r\n {pauseItemText}\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 {steps.map(index => {\r\n const isActive = index === currentSlide;\r\n const slideIndex = index + 1;\r\n\r\n return (\r\n navigateByDot(index)}\r\n disabled={isActive}\r\n className={cn('carousel-dot', {\r\n 'is-active': isActive\r\n })}\r\n key={index}\r\n >\r\n \r\n {`${dotButtonText} ${slideIndex} ${\r\n isActive ? '(aktiv)' : ''\r\n }`}\r\n \r\n \r\n );\r\n })}\r\n
\r\n )}\r\n {hasThumbnails && (\r\n
    \r\n {React.Children.map(thumbnails, (child, index) => (\r\n
  • \r\n goToItem(index)}\r\n >\r\n {child}\r\n \r\n
  • \r\n ))}\r\n
\r\n )}\r\n
\r\n \r\n \r\n );\r\n};\r\n\r\nCarousel.propTypes = {\r\n children: PropTypes.arrayOf(PropTypes.node).isRequired,\r\n nextItemText: PropTypes.string,\r\n pauseItemText: PropTypes.string,\r\n playItemText: PropTypes.string,\r\n stopItemText: PropTypes.string,\r\n numberOfSlidesToShow: PropTypes.number,\r\n previousItemText: PropTypes.string,\r\n dotButtonText: PropTypes.string,\r\n shouldShowDots: PropTypes.bool,\r\n shouldLoop: PropTypes.bool,\r\n isAutoPlayEnabled: PropTypes.bool,\r\n autoPlayDelayInSeconds: PropTypes.number,\r\n startIndex: PropTypes.number,\r\n numberOfSlidesToJump: PropTypes.number,\r\n theme: propTypeTheme(themes),\r\n thumbnails: PropTypes.arrayOf(PropTypes.node),\r\n shouldShowNavText: PropTypes.bool,\r\n hasQuickAnimations: PropTypes.bool,\r\n title: PropTypes.string,\r\n carouselAnnouncementText: PropTypes.string,\r\n carouselLabelText: PropTypes.string,\r\n carouselItemLabelText: PropTypes.string\r\n};\r\n\r\nCarousel.propTypesMeta = 'exclude';\r\n\r\nCarousel.defaultProps = {\r\n nextItemText: 'Neste bilde',\r\n carouselLabelText: 'karusell',\r\n numberOfSlidesToShow: 1,\r\n carouselItemLabelText: 'Karusellelement',\r\n dotButtonText: 'Karusellelement',\r\n pauseItemText: 'Pause karusell',\r\n stopItemText: 'Stopp karusell',\r\n playItemText: 'Spill av karusell',\r\n carouselAnnouncementText: 'Side ${0} av ${1}',\r\n previousItemText: 'Forrige bilde',\r\n shouldShowDots: true,\r\n shouldLoop: true,\r\n shouldAutoRotate: false,\r\n hasQuickAnimations: false,\r\n autoPlayDelayInSeconds: 0,\r\n startIndex: 0,\r\n shouldShowNavText: false,\r\n title: '',\r\n numberOfSlidesToJump: 1\r\n};\r\n\r\nCarousel.themes = themes;\r\n\r\nexport default Carousel;\r\n","import React, { useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\n\r\nconst AppointmentBookingDateItem = props => {\r\n useEffect(() => {\r\n if (props.isDateActive) props.onClickDate(props.date);\r\n }, []);\r\n\r\n return (\r\n {\r\n props.onClickDate(props.date);\r\n }}\r\n >\r\n \r\n {props.weekday}\r\n \r\n \r\n {props.dayNumber}\r\n \r\n \r\n {props.month}\r\n \r\n
\r\n );\r\n};\r\n\r\nAppointmentBookingDateItem.propTypes = {\r\n date: PropTypes.string.isRequired,\r\n dayNumber: PropTypes.number.isRequired,\r\n weekday: PropTypes.string.isRequired,\r\n month: PropTypes.string.isRequired,\r\n isDateActive: PropTypes.bool.isRequired,\r\n isFirstDayOfMonth: PropTypes.bool.isRequired,\r\n isDateDisabled: PropTypes.bool.isRequired,\r\n onClickDate: PropTypes.func\r\n};\r\n\r\nAppointmentBookingDateItem.propTypesMeta = 'exclude';\r\n\r\nexport default AppointmentBookingDateItem;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Carousel from 'components/carousel';\r\nimport AppointmentBookingDateItem from 'components/appointment-booking-modal/appointment-booking-date-item';\r\n\r\nconst AppointmentBookingDateList = props => {\r\n const dayNumber = props.dates.map(item => {\r\n let dN = new Date(item.date).getDate();\r\n return dN;\r\n });\r\n\r\n const isFirstDayOfMonth = props.dates.map((item, index) => {\r\n if (index === 0 || dayNumber[index] === 1) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n });\r\n\r\n const isDateDisabled = props.dates.map(item => {\r\n return item.timeSlots.length === 0;\r\n });\r\n\r\n const activeDateIndex = props.dates.findIndex(\r\n item => item.date === props.activeDate\r\n );\r\n\r\n return (\r\n
\r\n \r\n {props.dates.map((item, index) => (\r\n \r\n ))}\r\n \r\n
\r\n );\r\n};\r\n\r\nAppointmentBookingDateList.propTypes = {\r\n onClickDate: PropTypes.func,\r\n dates: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n date: PropTypes.string.isRequired,\r\n weekday: PropTypes.string.isRequired,\r\n weekdayShort: PropTypes.string.isRequired,\r\n month: PropTypes.string.isRequired,\r\n timeSlots: PropTypes.arrayOf(PropTypes.string).isRequired\r\n })\r\n ),\r\n activeDate: PropTypes.string,\r\n currentWeekDay: PropTypes.string.isRequired,\r\n carouselTitle: PropTypes.string.isRequired,\r\n carouselPreviousItemText: PropTypes.string.isRequired,\r\n carouselNextItemText: PropTypes.string.isRequired\r\n};\r\n\r\nAppointmentBookingDateList.propTypesMeta = {\r\n activeDate: 'exclude'\r\n};\r\n\r\nexport default AppointmentBookingDateList;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst AppointmentBookingTimeItem = props => {\r\n return (\r\n
\r\n {\r\n props.onClickTime(props.time);\r\n }}\r\n >\r\n {props.time}\r\n \r\n
\r\n );\r\n};\r\n\r\nAppointmentBookingTimeItem.propTypes = {\r\n time: PropTypes.string.isRequired,\r\n onClickTime: PropTypes.func\r\n};\r\n\r\nAppointmentBookingTimeItem.propTypesMeta = 'exclude';\r\n\r\nexport default AppointmentBookingTimeItem;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport AppointmentBookingTimeItem from 'components/appointment-booking-modal/appointment-booking-time-item';\r\n\r\nconst AppointmentBookingTimeList = props => {\r\n return (\r\n
\r\n \r\n {props.title}\r\n \r\n
\r\n {props.timeSlots.map((time, index) => (\r\n \r\n ))}\r\n
\r\n
\r\n );\r\n};\r\n\r\nAppointmentBookingTimeList.propTypes = {\r\n title: PropTypes.string.isRequired,\r\n timeSlots: PropTypes.arrayOf(PropTypes.string).isRequired,\r\n onClickTime: PropTypes.func\r\n};\r\n\r\nAppointmentBookingTimeList.propTypesMeta = {\r\n timeSlots: 'exclude'\r\n};\r\n\r\nexport default AppointmentBookingTimeList;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport AppointmentBookingAssistant from 'components/appointment-booking-modal/appointment-booking-assistant';\r\nimport AppointmentBookingDateList from 'components/appointment-booking-modal/appointment-booking-date-list';\r\nimport AppointmentBookingTimeList from 'components/appointment-booking-modal/appointment-booking-time-list';\r\n\r\nconst AppointmentBookingAvailability = props => {\r\n return (\r\n
\r\n \r\n \r\n \r\n
\r\n );\r\n};\r\n\r\nAppointmentBookingAvailability.propTypes = {\r\n assistantDefaultText: PropTypes.string.isRequired,\r\n assistantCancelText: PropTypes.string.isRequired,\r\n assistantLabel: PropTypes.string.isRequired,\r\n onClickAssistant: PropTypes.func,\r\n onClickRemoveAssistant: PropTypes.func,\r\n assistants: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n id: PropTypes.string.isRequired,\r\n image: PropTypes.string.isRequired,\r\n name: PropTypes.string.isRequired,\r\n dates: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n date: PropTypes.string,\r\n weekday: PropTypes.string,\r\n weekdayShort: PropTypes.string,\r\n month: PropTypes.string,\r\n timeSlots: PropTypes.arrayOf(PropTypes.string),\r\n timeListTitle: PropTypes.string.isRequired\r\n })\r\n )\r\n })\r\n ),\r\n assistantId: PropTypes.string,\r\n onClickDate: PropTypes.func,\r\n dates: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n date: PropTypes.string.isRequired,\r\n weekday: PropTypes.string.isRequired,\r\n weekdayShort: PropTypes.string.isRequired,\r\n month: PropTypes.string.isRequired,\r\n timeSlots: PropTypes.arrayOf(PropTypes.string).isRequired,\r\n timeListTitle: PropTypes.string.isRequired\r\n })\r\n ),\r\n activeDate: PropTypes.string,\r\n currentWeekDay: PropTypes.string.isRequired,\r\n carouselTitle: PropTypes.string.isRequired,\r\n carouselPreviousItemText: PropTypes.string.isRequired,\r\n carouselNextItemText: PropTypes.string.isRequired,\r\n timeListTitle: PropTypes.string.isRequired,\r\n timeSlots: PropTypes.arrayOf(PropTypes.string).isRequired,\r\n onClickTime: PropTypes.func,\r\n preselectedOpticianId: PropTypes.string\r\n};\r\n\r\nAppointmentBookingAvailability.propTypesMeta = {\r\n assistantId: 'exclude',\r\n activeDate: 'exclude',\r\n timeSlots: 'exclude',\r\n preselectedOpticianId: 'exclude'\r\n};\r\n\r\nexport default AppointmentBookingAvailability;\r\n","import React, { useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\nimport Checkbox from 'components/checkbox';\r\nimport Icon from 'components/icon';\r\nimport HiddenInput from 'components/hidden-input';\r\n\r\nconst AppointmentBookingAgreeBox = props => {\r\n const [infoState, setInfoState] = useState(false);\r\n const [checkboxValue, setCheckboxValue] = useState('false');\r\n\r\n const onChangeHandler = checked => {\r\n setCheckboxValue(checked.toString());\r\n props.onClickAgree(checked, props.label);\r\n };\r\n\r\n const onClickHandler = () => {\r\n setInfoState(prevState => !prevState);\r\n };\r\n\r\n return (\r\n
\r\n \r\n \r\n \r\n
\r\n\r\n \r\n {infoState && (\r\n
\r\n \r\n \r\n
\r\n \r\n {props.infoTitle}\r\n \r\n \r\n {props.infoDescription}\r\n \r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nAppointmentBookingAgreeBox.propTypes = {\r\n className: PropTypes.string,\r\n label: PropTypes.string,\r\n infoTitle: PropTypes.string,\r\n infoDescription: PropTypes.string,\r\n name: PropTypes.string,\r\n onClickAgree: PropTypes.func\r\n};\r\n\r\nAppointmentBookingAgreeBox.propTypesMeta = {\r\n className: 'exclude'\r\n};\r\n\r\nexport default AppointmentBookingAgreeBox;\r\n","import React, { useState, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Form from 'components/form';\r\nimport PageSpinner from 'components/page-spinner';\r\nimport TextInput from 'components/text-input/text-input';\r\nimport HiddenInput from 'components/hidden-input';\r\nimport AppointmentBookingAgreeBox from 'components/appointment-booking-modal/appointment-booking-agree-box';\r\n\r\nconst AppointmentBookingForm = ({\r\n form,\r\n appointmentBookingUserName,\r\n appointmentBookingBirthDate,\r\n appointmentBookingEmail,\r\n appointmentBookingPhoneNumber,\r\n appointmentBookingAddInfo,\r\n appointmentBookingAttentionText,\r\n onComplete,\r\n setAssistantChosenOnBE,\r\n setReservedBooking,\r\n reservedBookingId,\r\n shopId,\r\n appointmentId,\r\n assistantId,\r\n activeDate,\r\n timeSlot,\r\n agreeBoxData,\r\n onClickAgree,\r\n conditionalTextAppointmentType,\r\n conditionalBookingUserNameText\r\n}) => {\r\n const [isFormSent, setIsFormSent] = useState(false);\r\n const [reservedDate, setReservedDate] = useState('');\r\n const [reservedTime, setReservedTime] = useState('');\r\n const [reservedShop, setReservedShop] = useState('');\r\n const [reservedOpticianId, setReservedOpticianId] = useState('');\r\n const [reservedAppType, setReservedAppType] = useState('');\r\n const [useReservedBooking, setUseReservedBooking] = useState('');\r\n\r\n const conditionalUserNameText =\r\n conditionalTextAppointmentType &&\r\n appointmentId === conditionalTextAppointmentType\r\n ? conditionalBookingUserNameText\r\n : null;\r\n\r\n useEffect(() => {\r\n // runs when form sent successfully\r\n if (isFormSent) onComplete();\r\n }, [isFormSent]);\r\n\r\n useEffect(() => {\r\n setUseReservedBooking(\r\n reservedDate === activeDate &&\r\n reservedTime === timeSlot &&\r\n reservedShop.toString() === shopId &&\r\n (assistantId ? reservedOpticianId === assistantId : true) &&\r\n reservedAppType === appointmentId\r\n );\r\n });\r\n\r\n return (\r\n {\r\n // set assistant from BE only in case if user did not set it before\r\n complete && !assistantId && setAssistantChosenOnBE(opticianId);\r\n complete && setIsFormSent(true);\r\n\r\n if (!complete && appointmentId) {\r\n setReservedBooking(appointmentId);\r\n setReservedDate(date);\r\n setReservedTime(time);\r\n setReservedShop(shop);\r\n setReservedOpticianId(opticianId);\r\n setReservedAppType(appType);\r\n setUseReservedBooking(true);\r\n setAssistantChosenOnBE(opticianId);\r\n }\r\n }}\r\n {...form}\r\n >\r\n {({ isLoading }) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {useReservedBooking && (\r\n \r\n )}\r\n \r\n \r\n \r\n \r\n \r\n {appointmentBookingAttentionText}\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nAppointmentBookingForm.propTypes = {\r\n form: PropTypes.exact(Form.propTypes),\r\n appointmentBookingUserName: PropTypes.exact(TextInput.propTypes),\r\n conditionalTextAppointmentType: PropTypes.string,\r\n conditionalBookingUserNameText: PropTypes.string,\r\n appointmentBookingBirthDate: PropTypes.exact(TextInput.propTypes),\r\n appointmentBookingEmail: PropTypes.exact(TextInput.propTypes),\r\n appointmentBookingPhoneNumber: PropTypes.exact(TextInput.propTypes),\r\n appointmentBookingAttentionText: PropTypes.string,\r\n appointmentBookingAddInfo: PropTypes.exact(TextInput.propTypes),\r\n onComplete: PropTypes.func,\r\n setAssistantChosenOnBE: PropTypes.func,\r\n setReservedBooking: PropTypes.func,\r\n reservedBookingId: PropTypes.string,\r\n shopId: PropTypes.string,\r\n appointmentId: PropTypes.string,\r\n assistantId: PropTypes.string,\r\n activeDate: PropTypes.string,\r\n timeSlot: PropTypes.string,\r\n agreeBoxData: PropTypes.shape({\r\n label: PropTypes.string,\r\n infoTitle: PropTypes.string,\r\n infoDescription: PropTypes.string,\r\n name: PropTypes.string\r\n }),\r\n onClickAgree: PropTypes.func\r\n};\r\n\r\nAppointmentBookingForm.propTypesMeta = {\r\n shopId: 'exclude',\r\n appointmentId: 'exclude',\r\n assistantId: 'exclude',\r\n activeDate: 'exclude',\r\n timeSlot: 'exclude',\r\n conditionalTextAppointmentType: 'exclude',\r\n conditionalBookingUserNameText: 'exclude'\r\n};\r\n\r\nAppointmentBookingForm.defaultProps = {\r\n onComplete: () => {}\r\n};\r\n\r\nexport default AppointmentBookingForm;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Link from 'components/link';\r\n\r\nconst AppointmentBookingFooter = props => {\r\n return (\r\n
\r\n {props.text}\r\n \r\n
\r\n );\r\n};\r\n\r\nAppointmentBookingFooter.propTypes = {\r\n text: PropTypes.string,\r\n linkText: PropTypes.string,\r\n linkUrl: PropTypes.string\r\n};\r\n\r\nexport default AppointmentBookingFooter;\r\n","import React, { useState, useCallback, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\nimport apiHelper from 'js/api-helper';\r\nimport userAddressHandler from 'js/user-address-handler';\r\nimport findNearestShops from 'js/find-nearest-shops';\r\nimport AppointmentBookingTitle from 'components/appointment-booking-modal/appointment-booking-title';\r\nimport AppointmentBookingStepBackButton from 'components/appointment-booking-modal/appointment-booking-step-back-button';\r\nimport AppointmentBookingSubtitle from 'components/appointment-booking-modal/appointment-booking-subtitle';\r\nimport AppointmentBookingHint from 'components/appointment-booking-modal/appointment-booking-hint';\r\nimport AppointmentBookingRegionList from 'components/appointment-booking-modal/appointment-booking-region-list';\r\nimport AppointmentBookingShopList from 'components/appointment-booking-modal/appointment-booking-shop-list';\r\nimport AppointmentBookingProgress from 'components/appointment-booking-modal/appointment-booking-progress';\r\nimport AppointmentBookingResultList from 'components/appointment-booking-modal/appointment-booking-result-list';\r\nimport AppointmentBookingServiceList from 'components/appointment-booking-modal/appointment-booking-service-list';\r\nimport AppointmentBookingSeeNearest from 'components/appointment-booking-modal/appointment-booking-see-nearest';\r\nimport AppointmentBookingAvailability from 'components/appointment-booking-modal/appointment-booking-availability';\r\nimport AppointmentBookingForm from 'components/appointment-booking-modal/appointment-booking-form';\r\nimport Form from 'components/form/form';\r\nimport TextInput from 'components/text-input/text-input';\r\nimport AppointmentBookingAgreeBox from 'components/appointment-booking-modal/appointment-booking-agree-box';\r\nimport AppointmentBookingFooter from 'components/appointment-booking-modal/appointment-booking-footer';\r\nimport Image from 'components/image/image';\r\nimport logo from '../../assets/logo.png';\r\nimport PageSpinner from '../page-spinner';\r\n\r\nconst AppointmentBooking = props => {\r\n const [regionsState, setRegionsState] = useState([]);\r\n const [regionNameState, setRegionNameState] = useState('');\r\n const [shopsState, setShopsState] = useState([]);\r\n const [userCoords, setUserCoords] = useState({});\r\n const [shop, setShop] = useState({});\r\n const [shopId, setShopId] = useState('');\r\n const [step, setStep] = useState(0);\r\n const [appointmentGroupList, setAppointmentGroupList] = useState([]);\r\n const [dateList, setDateList] = useState([]);\r\n const [dateListAllOpticians, setDateListAllOpticians] = useState([]);\r\n const [appointmentList, setAppointmentList] = useState([]);\r\n const [appointment, setAppointment] = useState({});\r\n const [appointmentId, setAppointmentId] = useState('');\r\n const [progress, setProgress] = useState('20');\r\n const [activeDate, setActiveDate] = useState('');\r\n const [activeWeekday, setActiveWeekday] = useState('');\r\n const [activeMonth, setActiveMonth] = useState('');\r\n const [assistantList, setAssistantList] = useState([]);\r\n const [assistant, setAssistant] = useState({});\r\n const [assistantId, setAssistantId] = useState('');\r\n const [timeSlots, setTimeSlots] = useState([]);\r\n const [timeListTitle, setTimeListTitle] = useState('');\r\n const [timeSlot, setTimeSlot] = useState('');\r\n const [agreeStatus, setAgreeStatus] = useState(false);\r\n const [agreeText, setAgreeText] = useState('');\r\n const [isLoading, setLoading] = useState(false);\r\n const [reservedBookingId, setReservedBookingId] = useState('');\r\n const showSeeNearest = step === 1;\r\n const showSubtitle = props.subtitles[step];\r\n const showHint = props.hints[step];\r\n const showRegions = regionsState\r\n ? step < 1 && regionsState.length > 0\r\n : false;\r\n const showShops = step === 1;\r\n const showServiceList = step === 2;\r\n const useBottomPadding = step < 2;\r\n const showAvailability = step === 3 && activeDate;\r\n const showForm = step === 4;\r\n const showFooter = step === 5;\r\n\r\n const updateStep = newStep => {\r\n setStep(newStep);\r\n window.history.pushState({ step: newStep }, null);\r\n };\r\n\r\n const setAppointments = services => {\r\n setAppointmentGroupList(services);\r\n if (!appointmentList.length) {\r\n let appointments = [];\r\n services.map(group => {\r\n appointments = appointments.concat(group.appointments);\r\n });\r\n setAppointmentList(appointments);\r\n }\r\n };\r\n\r\n const getAppointments = useCallback(id => {\r\n if (id)\r\n apiHelper\r\n .get(props.getAppointmentsEndpoint + '?shopId=' + id)\r\n .then(response => {\r\n response.services && setAppointments(response.services);\r\n });\r\n });\r\n\r\n const setAvailability = (dates, assistants) => {\r\n setDateList(dates);\r\n setDateListAllOpticians(dates);\r\n setAssistantList(assistants);\r\n };\r\n\r\n const getAvailability = useCallback(id => {\r\n if (id) {\r\n setLoading(true);\r\n\r\n apiHelper\r\n .get(\r\n props.getAvailabilityEndpoint +\r\n '?shopId=' +\r\n shopId +\r\n '&appointmentTypeCode=' +\r\n id\r\n )\r\n .then(response => {\r\n setAvailability([], []);\r\n setAvailability(response.dates, response.assistants);\r\n })\r\n .finally(() => setLoading(false));\r\n }\r\n });\r\n\r\n const onClickRegion = useCallback(\r\n regionIndex => {\r\n setRegionNameState(regionsState[regionIndex].name);\r\n const shopsArr = [...regionsState[regionIndex].shops];\r\n setShopsState(shopsArr);\r\n updateStep(step + 1);\r\n },\r\n [regionsState]\r\n );\r\n\r\n const onClickShop = useCallback(\r\n shopIndex => {\r\n getAppointments(shopsState[shopIndex].id);\r\n setShop(shopsState[shopIndex]);\r\n setShopId(shopsState[shopIndex].id);\r\n updateStep(step + 1);\r\n },\r\n [shopsState]\r\n );\r\n\r\n const onClickGoToStep = useCallback(\r\n newStep => {\r\n // if not final step\r\n if (step !== 5) updateStep(newStep);\r\n // when we go back from step 3 we need to clear assistant\r\n if (step === 3 && newStep < 3) setAssistantId('');\r\n },\r\n [step]\r\n );\r\n\r\n const onClickService = useCallback(\r\n serviceId => {\r\n getAvailability(serviceId);\r\n setAppointment(\r\n appointmentList.find(obj => {\r\n return obj.appointmentId === serviceId;\r\n })\r\n );\r\n setAppointmentId(serviceId);\r\n updateStep(step + 1);\r\n },\r\n [appointmentList, shopId]\r\n );\r\n\r\n const seeNearestShops = () => {\r\n const limit = 25;\r\n const nearestShopsNum = shopsState.length;\r\n findNearestShops(\r\n userCoords,\r\n shopsState,\r\n limit,\r\n nearestShopsNum,\r\n props.googleMapsApiKey\r\n ).then(shopsResult => {\r\n setShopsState(shopsResult);\r\n });\r\n };\r\n\r\n const onClickSeeNearestShops = () => {\r\n userAddressHandler.handle(\r\n props.userAddress,\r\n props.googleMapsApiKey,\r\n true,\r\n function(coords) {\r\n setUserCoords(coords);\r\n }\r\n );\r\n };\r\n\r\n const firstDateWithTimeSlots =\r\n dateList &&\r\n dateList.length > 0 &&\r\n dateList.find(date => date.timeSlots.length > 0);\r\n\r\n const setCheckedDateParams = checkedDate => {\r\n setActiveDate(checkedDate.date);\r\n setActiveWeekday(checkedDate.weekday);\r\n setActiveMonth(checkedDate.month);\r\n setTimeSlots(checkedDate.timeSlots);\r\n setTimeListTitle(checkedDate.timeListTitle);\r\n };\r\n\r\n const onClickDate = useCallback(\r\n date => {\r\n const checkedDate = dateList.find(obj => {\r\n return obj.date === date;\r\n });\r\n setCheckedDateParams(checkedDate);\r\n },\r\n [dateList, activeDate]\r\n );\r\n\r\n const closestAbsDate = (dates, to_find) =>\r\n dates.reduce(({ absDate }, { absDate: a }) =>\r\n Math.abs(to_find - a) < Math.abs(to_find - absDate)\r\n ? { absDate: a }\r\n : { absDate }\r\n );\r\n\r\n const onClickAssistant = useCallback(\r\n id => {\r\n const assistant = assistantList.find(obj => {\r\n return obj.id === id;\r\n });\r\n setAssistant(assistant);\r\n setAssistantId(id);\r\n setDateList(assistant.dates);\r\n const datesWithTimeSlots = assistant.dates.filter(obj => {\r\n if (obj.timeSlots && obj.timeSlots.length > 0)\r\n // set abs date number for future calculations\r\n return (obj.absDate = Math.abs(new Date(obj.date)));\r\n });\r\n // get abs number of checked date\r\n const checkedDateAbs = Math.abs(new Date(activeDate));\r\n // get abs number of closest date\r\n const closestDateAbsWithTimeSlots = closestAbsDate(\r\n datesWithTimeSlots,\r\n checkedDateAbs\r\n );\r\n // find closest date by abs number of closest date\r\n const closestDate = datesWithTimeSlots.find(obj => {\r\n return obj.absDate === closestDateAbsWithTimeSlots.absDate;\r\n });\r\n setCheckedDateParams(closestDate);\r\n },\r\n [assistantList, activeDate]\r\n );\r\n\r\n const onClickRemoveAssistant = useCallback(() => {\r\n setDateList(dateListAllOpticians);\r\n const checkedDate = dateListAllOpticians.find(obj => {\r\n return obj.date === activeDate;\r\n });\r\n setAssistant({});\r\n setAssistantId('');\r\n setTimeSlots(checkedDate.timeSlots);\r\n setTimeListTitle(checkedDate.timeListTitle);\r\n });\r\n\r\n const setAssistantChosenOnBE = id => {\r\n const assistant = assistantList.find(obj => {\r\n return obj.id === id;\r\n });\r\n setAssistant(assistant);\r\n setAssistantId(id);\r\n };\r\n\r\n const setReservedBookingIdFromFailedForm = id => {\r\n setReservedBookingId(id);\r\n };\r\n\r\n const onClickTime = useCallback(\r\n time => {\r\n setTimeSlot(time);\r\n updateStep(step + 1);\r\n },\r\n [timeSlots]\r\n );\r\n\r\n const onClickAgree = useCallback((status, text) => {\r\n setAgreeStatus(status);\r\n setAgreeText(text);\r\n });\r\n\r\n const onComplete = () => {\r\n updateStep(step + 1);\r\n };\r\n\r\n const onClickBackToPrevStep = () => {\r\n updateStep(step - 1);\r\n };\r\n\r\n const findShopAndRegionByShopId = (id, regions) => {\r\n for (let i = 0; i < regions.length; i++) {\r\n const regionItem = regions[i];\r\n const shops = regionItem.shops;\r\n for (let z = 0; z < shops.length; z++) {\r\n const shopItem = shops[z];\r\n if (shopItem.id === id) {\r\n const obj = {};\r\n obj.shop = shopItem;\r\n obj.shops = shops;\r\n obj.regionName = regionItem.name;\r\n return obj;\r\n }\r\n }\r\n }\r\n };\r\n\r\n const setPreselectedShop = id => {\r\n // contains region name and shops info\r\n const data = findShopAndRegionByShopId(id, regionsState);\r\n setRegionNameState(data.regionName);\r\n const shopsArr = [...data.shops];\r\n setShopsState(shopsArr);\r\n getAppointments(id);\r\n setShop(data.shop);\r\n setShopId(id);\r\n updateStep(2);\r\n };\r\n\r\n const setPreselectedAppointmentId = id => {\r\n getAvailability(id);\r\n setAppointment(\r\n appointmentList.find(obj => {\r\n return obj.appointmentId === id;\r\n })\r\n );\r\n setAppointmentId(id);\r\n updateStep(3);\r\n };\r\n\r\n const setPreselectedOpticianId = id => {\r\n const assistant = assistantList.find(obj => {\r\n return obj.id === id;\r\n });\r\n if (assistant) {\r\n setAssistant(assistant);\r\n setAssistantId(id);\r\n setDateList(assistant.dates);\r\n const checkedDate = assistant.dates.find(obj => {\r\n return obj.timeSlots && obj.timeSlots.length > 0;\r\n });\r\n setCheckedDateParams(checkedDate);\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n apiHelper.get(props.getRegionsEndpoint).then(response => {\r\n setRegionsState(response.regions);\r\n });\r\n }, []);\r\n\r\n const handlePopstate = event => {\r\n const newStep =\r\n event.state &&\r\n event.state.step &&\r\n event.state.step !== undefined &&\r\n event.state.step !== null\r\n ? event.state.step\r\n : 0;\r\n setStep(newStep);\r\n };\r\n\r\n useEffect(() => {\r\n window.addEventListener('popstate', handlePopstate);\r\n return () => window.removeEventListener('popstate', handlePopstate);\r\n }, []);\r\n\r\n useEffect(() => {\r\n // in case when we do not have any data we return null\r\n // in this case find-nearest-shops will sort shops in alph order\r\n // otherwise we always have lat and long\r\n if (\r\n userCoords === null ||\r\n (userCoords && userCoords.latitude && userCoords.longitude)\r\n )\r\n seeNearestShops();\r\n }, [userCoords]);\r\n\r\n useEffect(() => {\r\n if (regionsState && regionsState.length > 0 && props.preselectedShopId) {\r\n setPreselectedShop(props.preselectedShopId);\r\n }\r\n }, [regionsState]);\r\n\r\n useEffect(() => {\r\n if (appointmentList.length > 0 && props.preselectedAppointmentId) {\r\n setPreselectedAppointmentId(props.preselectedAppointmentId);\r\n }\r\n }, [appointmentList]);\r\n\r\n useEffect(() => {\r\n if (\r\n assistantList &&\r\n assistantList.length > 0 &&\r\n props.preselectedOpticianId\r\n ) {\r\n setPreselectedOpticianId(props.preselectedOpticianId);\r\n }\r\n }, [assistantList, props.preselectedOpticianId]);\r\n\r\n useEffect(() => {\r\n // runs when component changed\r\n if (step === 0) setProgress('20');\r\n if (step === 1) setProgress('35');\r\n if (step === 2) setProgress('60');\r\n if (step === 3) setProgress('80');\r\n if (step === 4) setProgress('95');\r\n if (step === 5) setProgress('100');\r\n if (!activeDate && firstDateWithTimeSlots) {\r\n // set date params after date list response\r\n setCheckedDateParams(firstDateWithTimeSlots);\r\n }\r\n });\r\n\r\n return (\r\n \r\n \r\n
\r\n {showSeeNearest && (\r\n \r\n )}\r\n {step !== 0 && (\r\n \r\n )}\r\n \r\n \r\n \r\n {showSubtitle && (\r\n \r\n )}\r\n {showHint && }\r\n \r\n {showRegions && (\r\n \r\n )}\r\n {showShops && (\r\n <>\r\n \r\n \r\n )}\r\n {showServiceList && (\r\n \r\n )}\r\n {showAvailability && (\r\n \r\n )}\r\n {showForm && (\r\n \r\n )}\r\n {showFooter && }\r\n \r\n );\r\n};\r\n\r\nAppointmentBooking.propTypes = {\r\n getRegionsEndpoint: PropTypes.string,\r\n getAppointmentsEndpoint: PropTypes.string,\r\n getAvailabilityEndpoint: PropTypes.string,\r\n googleMapsApiKey: PropTypes.string,\r\n form: PropTypes.exact(Form.propTypes),\r\n conditionalTextAppointmentType: PropTypes.string,\r\n conditionalBookingUserNameText: PropTypes.string,\r\n appointmentBookingUserName: PropTypes.exact(TextInput.propTypes),\r\n appointmentBookingBirthDate: PropTypes.exact(TextInput.propTypes),\r\n appointmentBookingEmail: PropTypes.exact(TextInput.propTypes),\r\n appointmentBookingPhoneNumber: PropTypes.exact(TextInput.propTypes),\r\n appointmentBookingAttentionText: PropTypes.string,\r\n appointmentBookingAddInfo: PropTypes.exact(TextInput.propTypes),\r\n agreeBoxData: PropTypes.exact(AppointmentBookingAgreeBox.propTypes),\r\n footerData: PropTypes.shape({\r\n text: PropTypes.string,\r\n linkText: PropTypes.string,\r\n linkUrl: PropTypes.string\r\n }),\r\n titles: PropTypes.arrayOf(PropTypes.string),\r\n subtitles: PropTypes.arrayOf(PropTypes.string),\r\n hints: PropTypes.arrayOf(PropTypes.string),\r\n seeNearestText: PropTypes.string,\r\n assistantText: PropTypes.string,\r\n assistantDefaultText: PropTypes.string,\r\n assistantCancelText: PropTypes.string,\r\n assistantLabel: PropTypes.string,\r\n timeText: PropTypes.string,\r\n priceText: PropTypes.string,\r\n paymentTypeText: PropTypes.string,\r\n currentWeekDay: PropTypes.string,\r\n carouselTitle: PropTypes.string,\r\n carouselPreviousItemText: PropTypes.string,\r\n carouselNextItemText: PropTypes.string,\r\n preposition: PropTypes.string,\r\n preselectedShopId: PropTypes.string,\r\n preselectedAppointmentId: PropTypes.string,\r\n preselectedOpticianId: PropTypes.string,\r\n stepBackButtonText: PropTypes.string,\r\n userAddress: PropTypes.shape({\r\n endpoint: PropTypes.string,\r\n address: PropTypes.string,\r\n latitude: PropTypes.string,\r\n longitude: PropTypes.string\r\n })\r\n};\r\n\r\nAppointmentBooking.propTypesMeta = {\r\n conditionalTextAppointmentType: 'exclude',\r\n conditionalBookingUserNameText: 'exclude'\r\n};\r\n\r\nexport default AppointmentBooking;\r\n","import React, { useContext, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport useBreakpoints from 'hooks/use-breakpoints';\r\nimport ModalContext from '../../context/modal';\r\nimport AppointmentBooking from 'components/appointment-booking-modal/appointment-booking';\r\nimport Modal from 'components/modal';\r\nimport Collapse from 'react-tiny-collapse';\r\nimport ContentContainer from 'components/content-container';\r\nimport Form from 'components/form/form';\r\nimport TextInput from 'components/text-input/text-input';\r\nimport AppointmentBookingAgreeBox from 'components/appointment-booking-modal/appointment-booking-agree-box';\r\nimport AppointmentBookingFooter from 'components/appointment-booking-modal/appointment-booking-footer';\r\n\r\nconst AppointmentBookingModal = props => {\r\n const { isTablet } = useBreakpoints(true, true);\r\n const ModalContentWrapper = isTablet ? 'div' : ContentContainer;\r\n const modalContext = useContext(ModalContext);\r\n const appBookId = 'appointment-booking-modal';\r\n\r\n useEffect(() => {\r\n if (props.openOnPageLoad && !modalContext.isAppointmentBookingModalOpen) {\r\n modalContext.toggleAppointmentBookingModal();\r\n }\r\n }, []);\r\n\r\n return (\r\n \r\n {modalContext.isAppointmentBookingModalOpen && (\r\n \r\n \r\n \r\n \r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nAppointmentBookingModal.propTypes = {\r\n getRegionsEndpoint: PropTypes.string,\r\n getAppointmentsEndpoint: PropTypes.string,\r\n getAvailabilityEndpoint: PropTypes.string,\r\n googleMapsApiKey: PropTypes.string,\r\n bookingFormData: PropTypes.shape({\r\n stepBackButtonText: PropTypes.string,\r\n form: PropTypes.exact(Form.propTypes),\r\n conditionalTextAppointmentType: PropTypes.string,\r\n conditionalBookingUserNameText: PropTypes.string,\r\n appointmentBookingUserName: PropTypes.exact(TextInput.propTypes),\r\n appointmentBookingBirthDate: PropTypes.exact(TextInput.propTypes),\r\n appointmentBookingEmail: PropTypes.exact(TextInput.propTypes),\r\n appointmentBookingPhoneNumber: PropTypes.exact(TextInput.propTypes),\r\n appointmentBookingAttentionText: PropTypes.string,\r\n appointmentBookingAddInfo: PropTypes.exact(TextInput.propTypes),\r\n agreeBoxData: PropTypes.exact(AppointmentBookingAgreeBox.propTypes)\r\n }),\r\n footerData: PropTypes.exact(AppointmentBookingFooter.propTypes),\r\n titles: PropTypes.arrayOf(PropTypes.string),\r\n subtitles: PropTypes.arrayOf(PropTypes.string),\r\n hints: PropTypes.arrayOf(PropTypes.string),\r\n seeNearestText: PropTypes.string,\r\n assistantText: PropTypes.string,\r\n assistantDefaultText: PropTypes.string,\r\n assistantCancelText: PropTypes.string,\r\n assistantLabel: PropTypes.string,\r\n timeText: PropTypes.string,\r\n priceText: PropTypes.string,\r\n paymentTypeText: PropTypes.string,\r\n currentWeekDay: PropTypes.string,\r\n carouselTitle: PropTypes.string,\r\n carouselPreviousItemText: PropTypes.string,\r\n carouselNextItemText: PropTypes.string,\r\n timeListTitle: PropTypes.string,\r\n preposition: PropTypes.string,\r\n logo: PropTypes.string,\r\n preselectedShopId: PropTypes.string,\r\n preselectedAppointmentId: PropTypes.string,\r\n preselectedOpticianId: PropTypes.string,\r\n userAddress: PropTypes.shape({\r\n endpoint: PropTypes.string,\r\n address: PropTypes.string,\r\n latitude: PropTypes.string,\r\n longitude: PropTypes.string\r\n }),\r\n openOnPageLoad: PropTypes.bool\r\n};\r\n\r\nexport default AppointmentBookingModal;\r\n","import React, { useContext } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport ModalContext from '../../context/modal';\r\nimport Link from 'components/link';\r\n\r\nconst AppointmentBookingTrigger = ({\r\n className,\r\n themes,\r\n url,\r\n text,\r\n tabIndex,\r\n isStorePreselected,\r\n isPreselectedAppointmentId,\r\n isPreselectedOpticianId\r\n}) => {\r\n const modalContext = useContext(ModalContext);\r\n\r\n const toggleAppointmentBookingModal = e => {\r\n e.preventDefault();\r\n\r\n modalContext.toggleAppointmentBookingModal(\r\n isStorePreselected,\r\n isPreselectedAppointmentId,\r\n isPreselectedOpticianId\r\n );\r\n };\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nAppointmentBookingTrigger.propTypes = {\r\n className: PropTypes.string,\r\n url: PropTypes.string,\r\n text: PropTypes.string,\r\n themes: PropTypes.any,\r\n tabIndex: PropTypes.number,\r\n isStorePreselected: PropTypes.bool,\r\n isPreselectedAppointmentId: PropTypes.bool,\r\n isPreselectedOpticianId: PropTypes.bool\r\n};\r\n\r\nAppointmentBookingTrigger.propTypesMeta = {\r\n className: 'exclude',\r\n themes: 'exclude',\r\n tabIndex: 'exclude',\r\n isStorePreselected: 'exclude',\r\n isPreselectedAppointmentId: 'exclude',\r\n isPreselectedOpticianId: 'exclude'\r\n};\r\n\r\nAppointmentBookingTrigger.defaultProps = {\r\n themes: [Link.themes.buttonCyan],\r\n className: 'booking-link',\r\n isStorePreselected: false,\r\n isPreselectedAppointmentId: false,\r\n isPreselectedOpticianId: false\r\n};\r\n\r\nAppointmentBookingTrigger.themes = Link.themes;\r\n\r\nexport default AppointmentBookingTrigger;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Text from 'components/text';\r\n\r\nconst Appointments = ({ items, text }) => (\r\n
\r\n {items && (\r\n
\r\n {items.map(({ label, value }) => (\r\n \r\n \r\n {label}\r\n \r\n
{value}
\r\n
\r\n ))}\r\n
\r\n )}\r\n\r\n {text && {text}}\r\n
\r\n);\r\n\r\nAppointments.propTypes = {\r\n items: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n label: PropTypes.string,\r\n value: PropTypes.string\r\n })\r\n ),\r\n text: PropTypes.string\r\n};\r\n\r\nAppointments.defaultProps = {\r\n items: []\r\n};\r\n\r\nexport default Appointments;\r\n","/* eslint-disable no-console */\r\nconst shouldLog = process.env.NODE_ENV === 'development';\r\nconst noop = () => {};\r\n\r\nexport const log = shouldLog ? console.log : noop;\r\nexport const warn = shouldLog ? console.warn : noop;\r\nexport const error = shouldLog ? console.error : noop;\r\n","const ReactComponent = {};\r\n\r\n// Empty propTypes needed in order for ReactComponent.cs to be generated.\r\nReactComponent.propTypes = {};\r\n\r\n// This component exists in order to generate ReactComponent.cs, and to be able to reference this class in propTypes. The ReactComponent C# class is used in order to have a type that matches any React component view model. It is used in component-list-item.jsx to describe 'props'.\r\n// 'ReactComponent' is used as the base class in all generated .cs-files (configurerd in CSharpWebpackPlugin options in webpack.config.js)\r\nexport default ReactComponent;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport supportedBlocks from './supported-blocks';\r\nimport { error } from 'js/log';\r\n\r\nimport ReactComponent from 'components/react-component';\r\n\r\nconst sizes = {\r\n half: 'size-half',\r\n third: 'size-third',\r\n article: 'size-article',\r\n full: 'size-full'\r\n};\r\n\r\nconst backgrounds = {\r\n cyan: 'cyan'\r\n};\r\n\r\nconst ComponentListItem = ({\r\n additionalComponentProps,\r\n blockNotSupportedText,\r\n name,\r\n props,\r\n id,\r\n onPageEditing,\r\n size,\r\n background\r\n}) => {\r\n const Component = supportedBlocks()[name];\r\n\r\n if (!Component) {\r\n error(`😵 ContentArea does not support rendering of '${name}'.`);\r\n return blockNotSupportedText ? (\r\n
\r\n {blockNotSupportedText} {name}\r\n
\r\n ) : null;\r\n }\r\n\r\n if (!props || !Object.keys(props).length) {\r\n return null;\r\n }\r\n\r\n const additionalProps = additionalComponentProps[name];\r\n\r\n const componentToRender = (\r\n \r\n );\r\n\r\n if (process.env.NODE_ENV !== 'production') {\r\n // NOTE: wrapping in 'props' in order to do strict validation with 'exact' (top level propTypes are loosely validated)\r\n PropTypes.checkPropTypes(\r\n { props: PropTypes.exact(Component.propTypes) },\r\n { props: { ...props, ...additionalProps } },\r\n 'prop',\r\n name\r\n );\r\n }\r\n\r\n const OPEProps = onPageEditing.contentId\r\n ? {\r\n 'data-epi-block-id': onPageEditing.contentId,\r\n 'data-epi-content-name': onPageEditing.contentName,\r\n 'data-epi-use-mvc': 'True',\r\n 'data-content-group': true\r\n }\r\n : {};\r\n\r\n return (\r\n \r\n {componentToRender}\r\n \r\n );\r\n};\r\n\r\nComponentListItem.propTypes = {\r\n additionalComponentProps: PropTypes.object,\r\n blockNotSupportedText: PropTypes.string,\r\n id: PropTypes.string.isRequired,\r\n name: PropTypes.string.isRequired,\r\n onPageEditing: PropTypes.exact({\r\n contentName: PropTypes.string,\r\n contentId: PropTypes.string\r\n }),\r\n props: PropTypes.shape(ReactComponent.propTypes).isRequired, // Intentional use of 'shape' because validation of 'componentData' is handled by the components themselves\r\n size: PropTypes.oneOf(Object.values(sizes)),\r\n background: PropTypes.oneOf(Object.keys(backgrounds))\r\n};\r\n\r\nComponentListItem.propTypesMeta = {\r\n additionalComponentProps: 'exclude',\r\n blockNotSupportedText: 'exclude',\r\n theme: 'exclude',\r\n background: 'exclude'\r\n};\r\n\r\nComponentListItem.defaultProps = {\r\n blockNotSupportedText: null,\r\n enableElementSizing: true,\r\n onPageEditing: {}\r\n};\r\n\r\nComponentListItem.sizes = sizes;\r\nComponentListItem.backgrounds = backgrounds;\r\n\r\nexport default ComponentListItem;\r\n","/*\r\nThis is exported as a function rather than a plain object because:\r\n - This file imports all components\r\n - Some components indirectly import this file, creating a circular dependency\r\n - Webpack solves the problem of circular dependencies by setting the circular imports to 'undefined', meaning rendering will fail\r\n - Exporting as a function rather than a plain object magically solves this\r\n*/\r\n\r\nexport default function() {\r\n return require('../../app.components');\r\n}\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport OnPageEditing from 'components/on-page-editing';\r\n\r\nimport ComponentListItem from 'components/component-list-item';\r\n\r\n/*\r\nNOTE: additionalComponentProps can be used to send props to all components of a specific type.\r\nThis only applies to the components rendered directly by ContentAreaItem (in other words these props don't trickle all the way down the render tree)\r\nExample: forcing the 'green' theme for all CtaBlock rendered by a content area:\r\n \r\n*/\r\n\r\n/*\r\nNOTE: additionalItemProps works in much the same way as 'additionalComponentProps', except for the fact that it controls the ContentAreaItem wrapper instead of the component itself.\r\n \r\nExample: forcing full width for all wrappers around InfoBlocks rendered by a content area:\r\n \r\n*/\r\n\r\nconst ComponentList = ({\r\n additionalComponentProps, // See above comment\r\n additionalItemProps, // Same as 'additionalComponentProps' but for the ContentAreaItem component\r\n components,\r\n blockNotSupportedText,\r\n className,\r\n onPageEditing\r\n}) =>\r\n components.length === 0 && !onPageEditing.name ? null : (\r\n \r\n
\r\n {components.map(block => (\r\n \r\n ))}\r\n
\r\n
\r\n );\r\n\r\nComponentList.propTypes = {\r\n additionalComponentProps: PropTypes.object,\r\n additionalItemProps: PropTypes.object,\r\n blockNotSupportedText: PropTypes.string,\r\n components: PropTypes.arrayOf(PropTypes.exact(ComponentListItem.propTypes)),\r\n className: PropTypes.string,\r\n onPageEditing: PropTypes.exact({\r\n name: PropTypes.string\r\n })\r\n};\r\n\r\nComponentList.propTypesMeta = {\r\n additionalComponentProps: 'exclude',\r\n additionalItemProps: 'exclude',\r\n className: 'exclude'\r\n};\r\n\r\nComponentList.defaultProps = {\r\n additionalComponentProps: {},\r\n additionalItemProps: {},\r\n components: [],\r\n onPageEditing: {}\r\n};\r\n\r\nexport default ComponentList;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport Text from 'components/text';\r\n\r\nconst themes = {\r\n small: 'theme-small'\r\n};\r\n\r\nconst MainTitle = ({ preTitle, title, theme }) => {\r\n return (\r\n \r\n {preTitle && (\r\n \r\n {preTitle}\r\n \r\n )}\r\n \r\n \r\n {title}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nMainTitle.propTypes = {\r\n preTitle: PropTypes.string,\r\n title: PropTypes.string,\r\n theme: PropTypes.oneOf(Object.values(themes))\r\n};\r\n\r\nMainTitle.propTypesMeta = {\r\n theme: 'exclude'\r\n};\r\n\r\nMainTitle.themes = themes;\r\n\r\nexport default MainTitle;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nconst themes = {\r\n fill: 'theme-fill'\r\n};\r\n\r\n// NOTE: Uses dangerouslySetInnerHTML because react for some reason strips the 'muted' attribute, breaking autoplay. See https://github.com/facebook/react/issues/10389\r\nconst Video = ({ autoPlay, poster, src, theme }) => {\r\n const attributes = autoPlay ? 'muted autoplay playsinline loop' : 'controls';\r\n\r\n return (\r\n `\r\n }}\r\n />\r\n );\r\n};\r\n\r\nVideo.propTypes = {\r\n autoPlay: PropTypes.bool,\r\n poster: PropTypes.string,\r\n src: PropTypes.string,\r\n theme: PropTypes.oneOf(Object.values(themes))\r\n};\r\n\r\nVideo.propTypesMeta = {\r\n theme: 'exclude'\r\n};\r\n\r\nVideo.themes = themes;\r\n\r\nexport default Video;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\n\r\nimport ContentContainer from 'components/content-container';\r\nimport FluidImage from 'components/image';\r\nimport OnPageEditing from 'components/on-page-editing';\r\nimport MainTitle from 'components/main-title';\r\nimport RichText from 'components/rich-text';\r\nimport Text from 'components/text';\r\nimport Video from 'components/video';\r\n\r\nconst PageHeader = ({\r\n image,\r\n imageCaption,\r\n OPE,\r\n preTitle,\r\n text,\r\n mediaShouldFillWidth,\r\n title,\r\n video\r\n}) => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n\r\n
\r\n {video ? (\r\n
\r\n
\r\n ) : (\r\n \r\n {image && (\r\n
\r\n \r\n
\r\n )}\r\n
\r\n )}\r\n\r\n {imageCaption && (\r\n \r\n {imageCaption}\r\n \r\n )}\r\n
\r\n\r\n \r\n {text && (\r\n
\r\n {text && }\r\n
\r\n )}\r\n
\r\n
\r\n \r\n );\r\n};\r\n\r\nPageHeader.propTypes = {\r\n image: PropTypes.exact(FluidImage.propTypes),\r\n imageCaption: PropTypes.string,\r\n mediaShouldFillWidth: PropTypes.bool,\r\n OPE: PropTypes.exact({\r\n image: PropTypes.string,\r\n text: PropTypes.string,\r\n title: PropTypes.string\r\n }),\r\n preTitle: PropTypes.string,\r\n title: PropTypes.string,\r\n text: PropTypes.string,\r\n video: PropTypes.exact(Video.propTypes)\r\n};\r\n\r\nPageHeader.defaultProps = {\r\n OPE: {},\r\n mediaShouldFillWidth: false\r\n};\r\n\r\nexport default PageHeader;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport ImageLoader from '../../js/responsive-images';\r\n\r\nclass FluidImage extends React.Component {\r\n static propTypes = {\r\n alt: PropTypes.string,\r\n className: PropTypes.string,\r\n focusPoint: PropTypes.shape({\r\n x: PropTypes.number.isRequired,\r\n y: PropTypes.number.isRequired\r\n }),\r\n initialSize: PropTypes.number,\r\n src: PropTypes.string\r\n };\r\n\r\n static propTypesMeta = {\r\n className: 'exclude',\r\n focusPoint: { x: 'float', y: 'float' }\r\n };\r\n\r\n static defaultProps = {\r\n initialSize: 200\r\n };\r\n\r\n state = {\r\n src: ImageLoader.getNewSrc(this.props.src, this.props.initialSize)\r\n };\r\n\r\n componentDidMount() {\r\n if (this.container) {\r\n this.setState({\r\n src: ImageLoader.getNewSrc(\r\n this.props.src,\r\n this.container.offsetWidth,\r\n this.props.initialSize\r\n )\r\n });\r\n }\r\n }\r\n\r\n render() {\r\n return !this.props.src ? null : (\r\n (this.container = div)}\r\n >\r\n {this.props.alt}\r\n \r\n );\r\n }\r\n}\r\n\r\nexport default FluidImage;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport analytics from '../../js/analytics';\r\n\r\nimport Anything from 'components/anything';\r\nimport FluidImage from 'components/fluid-image';\r\nimport Price from 'components/price';\r\nimport Text from 'components/text';\r\n\r\nconst themes = {\r\n jumbo: 'theme-jumbo',\r\n moodboard: 'moodboard'\r\n};\r\n\r\nconst ProductCard = ({\r\n analyticsData,\r\n brand,\r\n colors,\r\n colorsTag,\r\n image,\r\n price,\r\n details,\r\n name,\r\n url,\r\n tag,\r\n theme,\r\n ctaType\r\n}) => {\r\n const onProductClick = React.useCallback(\r\n e => {\r\n if (!analyticsData) return;\r\n e.preventDefault();\r\n analytics.send(analyticsData, () => url && (window.location = url));\r\n },\r\n [analyticsData, url]\r\n );\r\n\r\n const className = cn('product-card', theme);\r\n\r\n const useLinkElement = url;\r\n const WrapperElement = useLinkElement ? 'a' : 'div';\r\n const wrapperProps = useLinkElement\r\n ? {\r\n 'data-test-product-card': '',\r\n href: url,\r\n className,\r\n onClick: onProductClick,\r\n 'data-cta-type': ctaType ? ctaType : null,\r\n 'data-cta-title': name ? name : null\r\n }\r\n : { className };\r\n\r\n return (\r\n \r\n
\r\n {theme === themes.moodboard ? (\r\n
\r\n
\r\n \r\n
\r\n
\r\n ) : (\r\n
\r\n \r\n
\r\n )}\r\n {tag && (\r\n \r\n {tag}\r\n \r\n )}\r\n\r\n
\r\n {!!details.length && (\r\n
    \r\n {details.map(text => (\r\n
  • \r\n {text}\r\n
  • \r\n ))}\r\n
\r\n )}\r\n
\r\n\r\n
\r\n
\r\n \r\n {brand}\r\n \r\n \r\n {name}\r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n
\r\n\r\n {colors.length > 0 && (\r\n
\r\n {colors.map(({ name, code, image }) => (\r\n \r\n ))}\r\n \r\n {colorsTag}\r\n \r\n
\r\n )}\r\n
\r\n
\r\n );\r\n};\r\n\r\nProductCard.propTypes = {\r\n analyticsData: PropTypes.shape(Anything.propTypes),\r\n brand: PropTypes.string,\r\n colors: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n name: PropTypes.string,\r\n code: PropTypes.string,\r\n image: PropTypes.string\r\n })\r\n ),\r\n colorsTag: PropTypes.string,\r\n image: PropTypes.exact(FluidImage.propTypes),\r\n price: PropTypes.exact(Price.propTypes),\r\n details: PropTypes.arrayOf(PropTypes.string),\r\n name: PropTypes.string,\r\n url: PropTypes.string,\r\n tag: PropTypes.string,\r\n theme: PropTypes.oneOfType([\r\n PropTypes.string,\r\n PropTypes.arrayOf(PropTypes.string)\r\n ]),\r\n ctaType: PropTypes.string\r\n};\r\n\r\nProductCard.propTypesMeta = {\r\n theme: 'exclude',\r\n ctaType: 'exclude'\r\n};\r\n\r\nProductCard.defaultProps = {\r\n colors: [],\r\n details: []\r\n};\r\n\r\nProductCard.themes = themes;\r\n\r\nexport default ProductCard;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport propTypeTheme from 'utils/prop-type-theme';\r\n\r\nimport ProductCard from 'components/product-card';\r\n\r\nconst themes = {\r\n narrow: 'theme-narrow',\r\n noMargin: 'theme-no-margin',\r\n productBackgrounds: 'theme-product-backgrounds',\r\n vertical: 'theme-vertical'\r\n};\r\n\r\nconst sizes = {\r\n oneColumn: 'size-one-column',\r\n twoColumns: 'size-two-columns'\r\n};\r\n\r\nconst ProductList = ({\r\n products,\r\n productTheme,\r\n size,\r\n theme,\r\n ctaType = 'product-list'\r\n}) => {\r\n return (\r\n
\r\n
    \r\n {products.map(product => (\r\n
  • \r\n \r\n
  • \r\n ))}\r\n
\r\n
\r\n );\r\n};\r\n\r\nProductList.propTypes = {\r\n products: PropTypes.arrayOf(PropTypes.exact(ProductCard.propTypes)),\r\n productTheme: PropTypes.any,\r\n size: PropTypes.oneOf(Object.values(sizes)),\r\n theme: propTypeTheme(themes),\r\n ctaType: PropTypes.string\r\n};\r\n\r\nProductList.propTypesMeta = {\r\n productTheme: 'exclude',\r\n size: 'exclude',\r\n theme: 'exclude',\r\n ctaType: 'exclude'\r\n};\r\n\r\nProductList.defaultProps = {\r\n products: []\r\n};\r\n\r\nProductList.themes = themes;\r\nProductList.sizes = sizes;\r\n\r\nexport default ProductList;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\n\r\nconst MagazineCategory = ({ className, text }) => {\r\n return
{text}
;\r\n};\r\n\r\nMagazineCategory.propTypes = {\r\n className: PropTypes.string,\r\n text: PropTypes.string\r\n};\r\n\r\nMagazineCategory.propTypesMeta = 'exclude';\r\n\r\nexport default MagazineCategory;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\n\r\nimport FluidImage from '../fluid-image';\r\nimport Link from '../link';\r\nimport Text from '../text';\r\nimport MagazineCategory from 'components/magazine-category/magazine-category';\r\n\r\nconst themes = {\r\n left: 'left',\r\n right: 'right'\r\n};\r\n\r\nconst InspirationalItem = ({\r\n titleText,\r\n titleUrl,\r\n leadText,\r\n imageCreditText,\r\n image,\r\n link,\r\n theme,\r\n category,\r\n className\r\n}) => {\r\n return (\r\n \r\n
\r\n
\r\n
\r\n {React.createElement(\r\n link || titleUrl ? 'a' : 'div',\r\n { href: (link && link.url) || titleUrl },\r\n \r\n \r\n {category && (\r\n \r\n )}\r\n \r\n )}\r\n
\r\n {imageCreditText && (\r\n
\r\n {imageCreditText}\r\n
\r\n )}\r\n
\r\n
\r\n
\r\n {category && (\r\n \r\n )}\r\n {titleText && (\r\n
\r\n {titleUrl ? (\r\n \r\n ) : (\r\n \r\n {titleText}\r\n \r\n )}\r\n
\r\n )}\r\n {leadText && (\r\n
\r\n {leadText}\r\n
\r\n )}\r\n {link && (\r\n
\r\n \r\n
\r\n )}\r\n
\r\n
\r\n
\r\n \r\n );\r\n};\r\n\r\nInspirationalItem.propTypes = {\r\n titleText: PropTypes.string,\r\n theme: PropTypes.oneOf(Object.keys(themes)),\r\n titleUrl: PropTypes.string,\r\n imageCreditText: PropTypes.string,\r\n leadText: PropTypes.string,\r\n image: PropTypes.exact(FluidImage.propTypes),\r\n link: PropTypes.exact(Link.propTypes),\r\n category: PropTypes.string,\r\n className: PropTypes.string\r\n};\r\n\r\nInspirationalItem.propTypesMeta = {\r\n category: 'exclude',\r\n className: 'exclude'\r\n};\r\n\r\nInspirationalItem.themes = themes;\r\n\r\nexport default InspirationalItem;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport InspirationalItem from 'components/inspirational-items/inspirational-item';\r\n\r\nconst MagazineListItem = ({ ...props }) => {\r\n return (\r\n \r\n );\r\n};\r\n\r\nMagazineListItem.propTypes = Object.assign({}, InspirationalItem.propTypes, {\r\n category: PropTypes.string.isRequired,\r\n id: PropTypes.string.isRequired\r\n});\r\n\r\nexport default MagazineListItem;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\n\r\nimport FluidImage from 'components/fluid-image';\r\nimport Icon from 'components/icon';\r\nimport Text from 'components/text';\r\nimport MagazineCategory from 'components/magazine-category/magazine-category';\r\n\r\nconst ImageLink = ({ ctaText, ingress, image, text, url, category }) => {\r\n return (\r\n
\r\n \r\n \r\n
\r\n
\r\n {category && }\r\n \r\n
\r\n
\r\n
\r\n \r\n {text}\r\n {!ingress && }\r\n \r\n {ingress && (\r\n \r\n {ingress}\r\n \r\n )}\r\n {ctaText && !!ingress && (\r\n
\r\n {ctaText}\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\nImageLink.propTypes = {\r\n ctaText: PropTypes.string,\r\n ingress: PropTypes.string,\r\n image: PropTypes.exact(FluidImage.propTypes),\r\n text: PropTypes.string,\r\n url: PropTypes.string,\r\n category: PropTypes.string\r\n};\r\n\r\nImageLink.propTypesMeta = {\r\n category: 'exclude'\r\n};\r\n\r\nexport default ImageLink;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Text from '../text';\r\nimport MagazineListItem from 'components/magazine-list-item/magazine-list-item';\r\nimport ImageLink from 'components/image-link-list/image-link';\r\n\r\nconst MagazineRelatedPages = ({ title, items }) => {\r\n return items && items.length > 0 ? (\r\n
\r\n {title && (\r\n
\r\n {title}\r\n
\r\n )}\r\n
    \r\n {items.map(listItem => {\r\n return (\r\n \r\n \r\n
\r\n );\r\n })}\r\n \r\n \r\n ) : null;\r\n};\r\n\r\nMagazineRelatedPages.propTypes = {\r\n title: PropTypes.string,\r\n items: PropTypes.arrayOf(PropTypes.exact(MagazineListItem.propTypes))\r\n};\r\n\r\nMagazineRelatedPages.defaultProps = {};\r\n\r\nexport default MagazineRelatedPages;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\n\r\nimport ComponentList from 'components/component-list';\r\nimport ContentContainer from 'components/content-container';\r\nimport PageHeader from 'components/page-header';\r\nimport ProductList from 'components/product-list';\r\nimport RichText from 'components/rich-text';\r\nimport MagazineRelatedPages from 'components/magazine-related-pages/magazine-related-pages';\r\n\r\nconst ArticlePage = ({\r\n blocks,\r\n firstText,\r\n header,\r\n ingress,\r\n secondText,\r\n sidebar,\r\n hasSidebar,\r\n magazineRelatedPages\r\n}) => {\r\n return (\r\n \r\n {header && }\r\n\r\n \r\n
\r\n
\r\n
\r\n {ingress && (\r\n \r\n )}\r\n {firstText && }\r\n
\r\n {blocks && (\r\n \r\n )}\r\n {secondText && }\r\n
\r\n\r\n {sidebar && hasSidebar && (\r\n
\r\n \r\n
\r\n )}\r\n
\r\n {magazineRelatedPages && (\r\n \r\n )}\r\n
\r\n \r\n );\r\n};\r\n\r\nArticlePage.propTypes = {\r\n blocks: PropTypes.exact(ComponentList.propTypes),\r\n firstText: PropTypes.exact(RichText.propTypes),\r\n hasSidebar: PropTypes.bool,\r\n header: PropTypes.exact(PageHeader.propTypes),\r\n ingress: PropTypes.exact(RichText.propTypes),\r\n secondText: PropTypes.exact(RichText.propTypes),\r\n sidebar: PropTypes.exact(ComponentList.propTypes),\r\n magazineRelatedPages: PropTypes.exact(MagazineRelatedPages.propTypes)\r\n};\r\n\r\nArticlePage.defaultProps = {\r\n hasSidebar: true\r\n};\r\n\r\nexport default ArticlePage;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Icon from 'components/icon';\r\nimport Text from 'components/text';\r\n\r\nconst Availability = ({ text }) =>\r\n !text ? null : (\r\n \r\n
\r\n \r\n
\r\n {text}\r\n
\r\n );\r\n\r\nAvailability.propTypes = {\r\n text: PropTypes.string\r\n};\r\n\r\nexport default Availability;\r\n","import React, { useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport modalContext from '../context/modal';\r\nimport analytics from 'js/analytics';\r\nimport isRunningOnClient from '@creuna/utils/is-running-on-client';\r\n\r\nconst WithModalProvider = props => {\r\n const [defaultModalState] = useState({\r\n appointmentBooking: false,\r\n login: false,\r\n search: false,\r\n cart: false,\r\n mobileMenu: false\r\n });\r\n\r\n const [modalState, setModalState] = useState({\r\n appointmentBooking: false,\r\n login: false,\r\n search: false,\r\n cart: false,\r\n mobileMenu: false\r\n });\r\n\r\n const closeModalsHandler = () => {\r\n if (isRunningOnClient) document.body.style.overflow = 'unset';\r\n\r\n setModalState({ ...defaultModalState });\r\n };\r\n\r\n const toggleModal = (\r\n modal,\r\n isStorePreselected,\r\n isPreselectedAppointmentId,\r\n isPreselectedOpticianId\r\n ) => {\r\n setModalState(currentState => {\r\n if (!currentState[modal]) {\r\n if (isRunningOnClient) document.body.style.overflow = 'hidden';\r\n analytics.send({\r\n event: modal + '-open',\r\n ...(modal === 'appointmentBooking'\r\n ? {\r\n store_preselected: isStorePreselected ? true : false,\r\n appointment_preselected: isPreselectedAppointmentId\r\n ? true\r\n : false,\r\n optician_preselected: isPreselectedOpticianId ? true : false\r\n }\r\n : {})\r\n });\r\n } else {\r\n if (isRunningOnClient) document.body.style.overflow = 'unset';\r\n }\r\n\r\n return { ...defaultModalState, [modal]: !modalState[modal] };\r\n });\r\n };\r\n\r\n return (\r\n {\r\n toggleModal(\r\n 'appointmentBooking',\r\n isStorePreselected,\r\n isPreselectedAppointmentId,\r\n isPreselectedOpticianId\r\n );\r\n },\r\n isLoginModalOpen: modalState.login,\r\n toggleLoginModal: () => {\r\n toggleModal('login');\r\n },\r\n isSearchModalOpen: modalState.search,\r\n toggleSearchModal: () => {\r\n toggleModal('search');\r\n },\r\n isCartModalOpen: modalState.cart,\r\n toggleCartModal: () => {\r\n toggleModal('cart');\r\n },\r\n isMobileMenuOpen: modalState.mobileMenu,\r\n toggleMobileMenu: () => {\r\n toggleModal('mobileMenu');\r\n },\r\n closeMobileMenu: closeModalsHandler,\r\n closeModals: closeModalsHandler\r\n }}\r\n >\r\n {props.children}\r\n \r\n );\r\n};\r\n\r\nWithModalProvider.propTypes = {\r\n children: PropTypes.node\r\n};\r\n\r\nexport default WithModalProvider;\r\n","import React, { Fragment } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport WithModalProvider from '../../hoc/with-modal-provider';\r\n\r\nimport AppointmentBookingTrigger from 'components/appointment-booking-trigger';\r\nimport AppointmentBookingModal from 'components/appointment-booking-modal/appointment-booking-modal';\r\n\r\nconst BookingLink = props => {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nBookingLink.propTypes = {\r\n preselectedShopId: PropTypes.string,\r\n preselectedAppointmentId: PropTypes.string,\r\n preselectedOpticianId: PropTypes.string,\r\n className: PropTypes.string,\r\n tabIndex: PropTypes.number,\r\n appointmentBookingModal: PropTypes.exact(AppointmentBookingModal.propTypes),\r\n url: PropTypes.string,\r\n text: PropTypes.string,\r\n themes: PropTypes.any\r\n};\r\n\r\nBookingLink.propTypesMeta = {\r\n className: 'exclude',\r\n themes: 'exclude',\r\n tabIndex: 'exclude'\r\n};\r\n\r\nBookingLink.themes = AppointmentBookingTrigger.themes;\r\n\r\nexport default BookingLink;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport debounce from 'lodash/debounce';\r\nimport { iframeResizer } from 'iframe-resizer';\r\n\r\nimport isRunningOnClient from '@creuna/utils/is-running-on-client';\r\n\r\nimport ContentContainer from '../content-container';\r\nimport RichText from '../rich-text';\r\n\r\nclass BookingPage extends React.Component {\r\n static propTypes = {\r\n iframeUrl: PropTypes.string,\r\n text: PropTypes.string,\r\n title: PropTypes.string\r\n };\r\n\r\n getSrc = () => {\r\n if (!this.props.iframeUrl) {\r\n return '';\r\n }\r\n\r\n const isMobile = isRunningOnClient && window.innerWidth < 700;\r\n const queryParams = (isMobile ? '?mobil=1&' : '?') + new Date().getTime();\r\n\r\n return this.props.iframeUrl + queryParams;\r\n };\r\n\r\n state = {\r\n src: this.getSrc()\r\n };\r\n\r\n screenWidth = 0;\r\n\r\n onResize = () => {\r\n if (window.innerWidth !== this.screenWidth) {\r\n this.screenWidth = window.innerWidth;\r\n this.setState({ src: this.getSrc() });\r\n }\r\n };\r\n\r\n debouncedResize = debounce(this.onResize, 300);\r\n\r\n componentDidMount() {\r\n iframeResizer(null, this.iframe);\r\n\r\n this.screenWidth = window.innerWidth;\r\n window.addEventListener('resize', this.debouncedResize);\r\n }\r\n\r\n componentWillUnmount() {\r\n window.removeEventListener('resize', this.debouncedResize);\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n
\r\n

{this.props.title}

\r\n \r\n\r\n {this.state.src && (\r\n (this.iframe = iframe)}\r\n />\r\n )}\r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default BookingPage;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport ComponentList from 'components/component-list';\r\nimport ContentContainer from 'components/content-container';\r\nimport Link from 'components/link';\r\nimport PageHeader from 'components/page-header';\r\nimport RichText from 'components/rich-text';\r\n\r\nconst BrandPage = ({ blocks, header, ingress, links, text }) => {\r\n return (\r\n \r\n {header && }\r\n\r\n \r\n
\r\n {ingress && (\r\n \r\n )}\r\n {text && }\r\n {links.length > 0 && (\r\n
    \r\n {links.map(link => (\r\n
  • \r\n \r\n
  • \r\n ))}\r\n
\r\n )}\r\n
\r\n
\r\n\r\n \r\n {blocks && }\r\n \r\n
\r\n );\r\n};\r\n\r\nBrandPage.propTypes = {\r\n blocks: PropTypes.exact(ComponentList.propTypes),\r\n header: PropTypes.exact(PageHeader.propTypes),\r\n ingress: PropTypes.exact(RichText.propTypes),\r\n links: PropTypes.arrayOf(PropTypes.exact(Link.propTypes)),\r\n text: PropTypes.exact(RichText.propTypes)\r\n};\r\n\r\nBrandPage.defaultProps = {\r\n links: []\r\n};\r\n\r\nexport default BrandPage;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport ContentContainer from 'components/content-container';\r\nimport Link from 'components/link';\r\nimport Text from 'components/text';\r\nimport cn from 'classnames';\r\n\r\nconst BreadCrumbs = ({ isMagazine, items }) =>\r\n !items.length ? null : (\r\n \r\n \r\n
    \r\n {items.map(({ text, url }, index) => (\r\n \r\n {url ? (\r\n \r\n ) : (\r\n {text}\r\n )}\r\n\r\n \r\n \r\n ))}\r\n
\r\n
\r\n \r\n );\r\n\r\nBreadCrumbs.propTypes = {\r\n isMagazine: PropTypes.bool,\r\n items: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n url: PropTypes.string,\r\n text: PropTypes.string.isRequired\r\n })\r\n )\r\n};\r\n\r\nBreadCrumbs.propTypesMeta = {\r\n isMagazine: 'exclude'\r\n};\r\n\r\nBreadCrumbs.defaultProps = {\r\n isMagazine: false,\r\n items: []\r\n};\r\n\r\nexport default BreadCrumbs;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport Collapse from 'react-tiny-collapse';\r\n\r\nclass CollapseList extends React.Component {\r\n static propTypes = {\r\n children: PropTypes.node,\r\n collapseLabel: PropTypes.string,\r\n expandLabel: PropTypes.string,\r\n maxLength: PropTypes.number\r\n };\r\n\r\n state = {\r\n isExpanded: false\r\n };\r\n\r\n toggleExpanded = () => {\r\n this.setState(state => ({ isExpanded: !state.isExpanded }));\r\n };\r\n\r\n render() {\r\n const { maxLength, children } = this.props;\r\n const sliceIndex = maxLength || React.Children.count(children);\r\n const visibleChildren = children.slice(0, sliceIndex);\r\n const hiddenChildren = children.slice(\r\n sliceIndex,\r\n React.Children.count(children)\r\n );\r\n\r\n return (\r\n
\r\n
    \r\n {React.Children.map(visibleChildren, child => (\r\n
  • {child}
  • \r\n ))}\r\n
\r\n {!!hiddenChildren.length && [\r\n \r\n
    \r\n {React.Children.map(hiddenChildren, child => (\r\n
  • {child}
  • \r\n ))}\r\n
\r\n
,\r\n \r\n \r\n {this.state.isExpanded\r\n ? this.props.collapseLabel\r\n : this.props.expandLabel}\r\n \r\n \r\n ]}\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default CollapseList;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport CollapseList from 'components/collapse-list';\r\nimport Checkbox from 'components/checkbox';\r\n\r\nconst GenericFilter = ({\r\n collapseLabel,\r\n expandLabel,\r\n idPrefix,\r\n maxLength,\r\n options\r\n}) => {\r\n return (\r\n
\r\n \r\n {options.map(option => (\r\n \r\n ))}\r\n \r\n
\r\n );\r\n};\r\n\r\nGenericFilter.propTypes = {\r\n collapseLabel: PropTypes.string,\r\n expandLabel: PropTypes.string,\r\n idPrefix: PropTypes.string,\r\n maxLength: PropTypes.number,\r\n options: PropTypes.arrayOf(PropTypes.exact(Checkbox.propTypes))\r\n};\r\n\r\nGenericFilter.propTypesMeta = {\r\n idPrefix: 'exclude'\r\n};\r\n\r\nGenericFilter.defaultProps = {\r\n options: []\r\n};\r\n\r\nexport default GenericFilter;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Icon from 'components/icon';\r\nimport Checkbox from 'components/checkbox';\r\n\r\nconst brightness = (hexColor = '#ffffff') => {\r\n const r = parseInt(hexColor.slice(1, 3), 16);\r\n const g = parseInt(hexColor.slice(3, 5), 16);\r\n const b = parseInt(hexColor.slice(5, 7), 16);\r\n // NOTE: https://en.wikipedia.org/wiki/Relative_luminance\r\n return 0.2125 * r + 0.7152 * g + 0.0722 * b;\r\n};\r\n\r\nconst ColorSelect = ({ idPrefix, options }) => {\r\n return (\r\n
\r\n
    \r\n {options.map(({ colorCode, input, image, label }) => (\r\n
  • \r\n \r\n 128 ? 'black' : 'white'\r\n }}\r\n >\r\n {label}\r\n \r\n \r\n \r\n
  • \r\n ))}\r\n
\r\n
\r\n );\r\n};\r\n\r\nColorSelect.propTypes = {\r\n idPrefix: PropTypes.string,\r\n options: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n colorCode: PropTypes.string,\r\n image: PropTypes.string,\r\n label: PropTypes.string,\r\n input: PropTypes.exact(Checkbox.propTypes)\r\n })\r\n )\r\n};\r\n\r\nColorSelect.propTypesMeta = {\r\n idPrefix: 'exclude'\r\n};\r\n\r\nColorSelect.defaultProps = {\r\n options: []\r\n};\r\n\r\nexport default ColorSelect;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport CollapseList from 'components/collapse-list';\r\nimport Icon from 'components/icon';\r\nimport Image from 'components/image';\r\nimport Checkbox from 'components/checkbox';\r\nimport Text from 'components/text';\r\n\r\nconst ShapeSelect = ({\r\n collapseLabel,\r\n expandLabel,\r\n idPrefix,\r\n maxLength,\r\n options\r\n}) => {\r\n return (\r\n
\r\n \r\n {options.map(({ input, image, label }) => (\r\n \r\n \r\n \r\n \r\n {label}\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\nShapeSelect.propTypes = {\r\n collapseLabel: PropTypes.string,\r\n expandLabel: PropTypes.string,\r\n idPrefix: PropTypes.string,\r\n maxLength: PropTypes.number,\r\n options: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n input: PropTypes.exact(Checkbox.propTypes),\r\n image: PropTypes.exact(Image.propTypes),\r\n label: PropTypes.string\r\n })\r\n )\r\n};\r\n\r\nShapeSelect.propTypesMeta = {\r\n idPrefix: 'exclude'\r\n};\r\n\r\nShapeSelect.defaultProps = {\r\n options: []\r\n};\r\n\r\nexport default ShapeSelect;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport GenericFilter from 'components/generic-filter';\r\nimport ColorSelect from 'components/color-select';\r\nimport Link from 'components/link';\r\nimport ShapeSelect from 'components/shape-select';\r\nimport Text from 'components/text';\r\n\r\nconst FilterGroup = ({\r\n colorSelect,\r\n genericFilter,\r\n link,\r\n shapeSelect,\r\n title\r\n}) => {\r\n let FilterComponent;\r\n\r\n const filter = colorSelect ? (\r\n \r\n ) : shapeSelect ? (\r\n \r\n ) : genericFilter ? (\r\n \r\n ) : null;\r\n\r\n return !FilterComponent && !filter ? null : (\r\n \r\n {title}\r\n
\r\n {filter}\r\n {FilterComponent}\r\n
\r\n {link && }\r\n
\r\n );\r\n};\r\n\r\nFilterGroup.propTypes = {\r\n colorSelect: PropTypes.exact(ColorSelect.propTypes),\r\n genericFilter: PropTypes.exact(GenericFilter.propTypes),\r\n link: PropTypes.exact(Link.propTypes),\r\n shapeSelect: PropTypes.exact(ShapeSelect.propTypes),\r\n title: PropTypes.string\r\n};\r\n\r\nexport default FilterGroup;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport useIsMounted from 'hooks/use-is-mounted';\r\n\r\nimport Button from '../button';\r\nimport Clickable from 'components/clickable';\r\nimport ContentContainer from '../content-container';\r\nimport FilterGroup from './filter-group';\r\nimport HiddenInput from 'components/hidden-input';\r\n\r\nconst CategoryFilters = ({\r\n categoryId,\r\n filterGroups,\r\n hideFilters,\r\n hideFiltersLabel,\r\n isVisible,\r\n onReset,\r\n resetLabel,\r\n submitLabel,\r\n title\r\n}) => {\r\n const isMounted = useIsMounted();\r\n\r\n return (\r\n \r\n

{title}

\r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n {submitLabel}\r\n \r\n \r\n {resetLabel}\r\n \r\n
\r\n
\r\n {categoryId && }\r\n
\r\n {filterGroups.map(group => (\r\n \r\n ))}\r\n
\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nCategoryFilters.propTypes = {\r\n categoryId: PropTypes.exact(HiddenInput.propTypes),\r\n filterGroups: PropTypes.arrayOf(PropTypes.exact(FilterGroup.propTypes)),\r\n hideFilters: PropTypes.func,\r\n hideFiltersLabel: PropTypes.string,\r\n isVisible: PropTypes.bool,\r\n onReset: PropTypes.func,\r\n resetLabel: PropTypes.string,\r\n submitLabel: PropTypes.string,\r\n title: PropTypes.string\r\n};\r\n\r\nCategoryFilters.propTypesMeta = {\r\n isVisible: 'exclude'\r\n};\r\n\r\nCategoryFilters.defaultProps = {\r\n filterGroups: [],\r\n submitLabel: 'Filtrér'\r\n};\r\n\r\nexport default CategoryFilters;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Icon from 'components/icon';\r\n\r\nconst PaginationControls = ({ previousLink, nextLink, links }) => {\r\n return (\r\n
\r\n \r\n
\r\n );\r\n};\r\n\r\nPaginationControls.propTypes = {\r\n previousLink: PropTypes.exact({\r\n text: PropTypes.string,\r\n url: PropTypes.string,\r\n isDisabled: PropTypes.bool\r\n }),\r\n nextLink: PropTypes.exact({\r\n text: PropTypes.string,\r\n url: PropTypes.string,\r\n isDisabled: PropTypes.bool\r\n }),\r\n links: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n text: PropTypes.string,\r\n url: PropTypes.string,\r\n isDisabled: PropTypes.bool\r\n })\r\n )\r\n};\r\n\r\nPaginationControls.defaultProps = {\r\n links: []\r\n};\r\n\r\nexport default PaginationControls;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nconst EmptyListMessage = ({ className, text }) => (\r\n
{text}
\r\n);\r\n\r\nEmptyListMessage.propTypes = {\r\n className: PropTypes.string,\r\n text: PropTypes.string\r\n};\r\n\r\nEmptyListMessage.propTypesMeta = 'exclude';\r\n\r\nexport default EmptyListMessage;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\n\r\nimport Text from 'components/text';\r\nimport ImageLink from './image-link';\r\n\r\nconst ImageLinkList = ({ items, title, hasSingleColumn }) => (\r\n
\r\n {title && {title}}\r\n \r\n {items.map((item, index) => (\r\n
  • \r\n \r\n
  • \r\n ))}\r\n \r\n
    \r\n);\r\n\r\nImageLinkList.propTypes = {\r\n title: PropTypes.string,\r\n hasSingleColumn: PropTypes.bool,\r\n items: PropTypes.arrayOf(PropTypes.exact(ImageLink.propTypes))\r\n};\r\n\r\nImageLinkList.defaultProps = {\r\n items: []\r\n};\r\n\r\nexport default ImageLinkList;\r\n","import React, { useState, useRef, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\n\r\nimport Text from 'components/text';\r\nimport Image from 'components/image';\r\nimport RichText from 'components/rich-text';\r\nimport Icon from 'components/icon';\r\n\r\nconst ProductsHeader = ({ title, text, image }) => {\r\n const hasImage = image && image.src;\r\n const [isOpen, setIsOpen] = useState(false);\r\n const contentRef = useRef(null);\r\n const [height, setHeight] = useState(0);\r\n\r\n useEffect(() => {\r\n const updateHeight = () => {\r\n if (contentRef.current) {\r\n const content = contentRef.current;\r\n setHeight(isOpen ? content.getBoundingClientRect().height : 0);\r\n }\r\n };\r\n\r\n updateHeight();\r\n\r\n if (isOpen) {\r\n window.addEventListener('resize', updateHeight);\r\n } else {\r\n window.removeEventListener('resize', updateHeight);\r\n }\r\n\r\n return () => {\r\n window.removeEventListener('resize', updateHeight);\r\n };\r\n }, [isOpen]);\r\n\r\n const handleToggle = event => {\r\n event.preventDefault();\r\n setIsOpen(!isOpen);\r\n };\r\n const ariaControl = 'products-header-content';\r\n const ariaLabelledby = 'products-header-title';\r\n\r\n return (\r\n \r\n \r\n {title}\r\n \r\n \r\n\r\n \r\n
    \r\n
    \r\n
    \r\n {text && (\r\n \r\n )}\r\n
    \r\n
    \r\n {hasImage && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n \r\n \r\n );\r\n};\r\n\r\nProductsHeader.propTypes = {\r\n title: PropTypes.string,\r\n text: PropTypes.string,\r\n image: PropTypes.exact(Image.propTypes)\r\n};\r\n\r\nProductsHeader.propTypesMeta = {};\r\n\r\nexport default ProductsHeader;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Text from 'components/text';\r\nimport RichText from 'components/rich-text';\r\n\r\nconst ProductsFooter = ({ title, text }) => {\r\n return (\r\n
    \r\n {title && {title}}\r\n {text && (\r\n \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nProductsFooter.propTypes = {\r\n title: PropTypes.string,\r\n text: PropTypes.string\r\n};\r\n\r\nProductsFooter.propTypesMeta = {};\r\n\r\nexport default ProductsFooter;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Button from 'components/button';\r\nimport Icon from 'components/icon';\r\nimport TextInput from 'components/text-input';\r\nimport cn from 'classnames';\r\n\r\nconst Search = ({\r\n autoComplete,\r\n buttonText,\r\n name,\r\n value,\r\n onChange,\r\n onRef,\r\n placeholder,\r\n label,\r\n showSubmitButton,\r\n submitButtonText,\r\n textInputTheme,\r\n className\r\n}) => (\r\n
    \r\n \r\n\r\n {showSubmitButton && (\r\n
    \r\n \r\n {submitButtonText ? (\r\n {submitButtonText}\r\n ) : (\r\n \r\n )}\r\n \r\n
    \r\n )}\r\n
    \r\n);\r\n\r\nSearch.propTypes = {\r\n autoComplete: PropTypes.string,\r\n buttonText: PropTypes.string,\r\n name: PropTypes.string,\r\n onChange: PropTypes.func,\r\n onRef: PropTypes.func,\r\n placeholder: PropTypes.string,\r\n showSubmitButton: PropTypes.bool,\r\n submitButtonText: PropTypes.string,\r\n textInputTheme: PropTypes.any,\r\n value: PropTypes.string,\r\n label: PropTypes.string,\r\n className: PropTypes.string\r\n};\r\n\r\nSearch.propTypesMeta = {\r\n autoComplete: 'exclude',\r\n showSubmitButton: 'exclude',\r\n textInputTheme: 'exclude',\r\n className: 'exclude'\r\n};\r\n\r\nSearch.defaultProps = {\r\n name: 'search-term',\r\n showSubmitButton: true,\r\n value: '',\r\n submitButtonText: ''\r\n};\r\n\r\nexport default Search;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\nimport debounce from 'lodash/debounce';\r\nimport get from 'lodash/get';\r\nimport toQueryString from '@creuna/utils/to-query-string';\r\n\r\nimport breakpoints from 'js/breakpoints';\r\nimport propTypeTheme from 'utils/prop-type-theme';\r\n\r\nimport Button from '../button';\r\nimport CategoryFilters from '../category-filters';\r\nimport PaginationControls from '../pagination-controls';\r\nimport ContentContainer from '../content-container';\r\nimport EmptyListMessage from '../empty-list-message';\r\nimport MainTitle from 'components/main-title';\r\nimport Form from 'components/form';\r\nimport Checkbox from 'components/checkbox';\r\nimport ImageLinkList from '../image-link-list';\r\nimport PageSpinner from '../page-spinner';\r\nimport ProductsHeader from './products-header';\r\nimport ProductsFooter from './products-footer';\r\nimport ProductList from '../product-list';\r\nimport Select from '../select';\r\nimport Search from 'components/search';\r\nimport Text from 'components/text';\r\nimport TextInput from 'components/text-input';\r\n\r\nconst themes = {\r\n search: 'theme-search'\r\n};\r\n\r\nclass CategoryPage extends React.Component {\r\n static propTypes = {\r\n articles: PropTypes.exact(ImageLinkList.propTypes),\r\n articlesButtonText: PropTypes.string,\r\n endpoint: PropTypes.string.isRequired,\r\n paginationControls: PropTypes.exact(PaginationControls.propTypes),\r\n hideSidebar: PropTypes.bool,\r\n filters: PropTypes.exact(CategoryFilters.propTypes),\r\n hasMoreProducts: PropTypes.bool,\r\n moreProductsEndpoint: PropTypes.string,\r\n moreProductsLabel: PropTypes.string,\r\n noResultsMessage: PropTypes.string,\r\n numberOfProducts: PropTypes.string,\r\n productList: PropTypes.exact(ProductList.propTypes),\r\n productsButtonText: PropTypes.string,\r\n preTitle: PropTypes.string,\r\n search: PropTypes.exact(Search.propTypes),\r\n showArticles: PropTypes.bool,\r\n productsHeader: PropTypes.exact(ProductsHeader.propTypes),\r\n showFiltersLabel: PropTypes.string,\r\n showNewProductsOnly: PropTypes.exact(Checkbox.propTypes),\r\n sorting: PropTypes.exact(Select.propTypes),\r\n theme: propTypeTheme(themes),\r\n title: PropTypes.string,\r\n productsFooter: PropTypes.exact(ProductsFooter.propTypes)\r\n };\r\n\r\n static propTypesMeta = {\r\n theme: 'exclude'\r\n };\r\n\r\n static defaultProps = {\r\n products: []\r\n };\r\n\r\n state = {\r\n articles: this.props.articles,\r\n articlesButtonText: this.props.articlesButtonText,\r\n filters: this.props.filters,\r\n filtersVisible: false,\r\n hasMoreProducts: this.props.hasMoreProducts,\r\n isArticlesVisible: this.props.showArticles,\r\n isDesktop: true,\r\n isLoading: false,\r\n moreProductsEndpoint: this.props.moreProductsEndpoint,\r\n numberOfProducts: this.props.numberOfProducts,\r\n productList: this.props.productList,\r\n productsButtonText: this.props.productsButtonText,\r\n preTitle: this.props.preTitle,\r\n title: this.props.title,\r\n paginationControls: this.props.paginationControls,\r\n productsHeader: this.props.productsHeader,\r\n productsFooter: this.props.productsFooter\r\n };\r\n\r\n form = null;\r\n searchTerm = get(this.props.search, 'value', '');\r\n previousFormData = {\r\n [get(this.props.showNewProductsOnly, 'name', '')]: get(\r\n this.props.showNewProductsOnly,\r\n 'selected'\r\n ),\r\n [get(this.props.sorting, 'name', '')]:\r\n get(this.props.sorting, 'options', []).find(option => option.selected) ||\r\n get(this.props.sorting, 'options[0].value')\r\n };\r\n\r\n componentDidMount() {\r\n this.onResize();\r\n window.addEventListener('resize', this.debouncedResize);\r\n }\r\n\r\n componentWillUnmount() {\r\n window.removeEventListener('resize', this.debouncedResize);\r\n }\r\n\r\n onFiltersChange = data => {\r\n if (this.state.isLoading) {\r\n return;\r\n }\r\n\r\n if (this.props.search) {\r\n const newSearchTerm = get(data, get(this.props.search, 'name', ''), '');\r\n\r\n if (this.searchTerm !== newSearchTerm) {\r\n // NOTE: We don't want to search while the user is typing\r\n this.searchTerm = newSearchTerm;\r\n return;\r\n }\r\n }\r\n\r\n // We need a separate check for 'show only new products' and result sorting, because these should refresh page on change\r\n let shouldRefresh = false;\r\n\r\n if (this.props.showNewProductsOnly) {\r\n const key = get(this.props.showNewProductsOnly, 'name', '');\r\n if (this.previousFormData[key] !== data[key]) {\r\n shouldRefresh = true;\r\n }\r\n }\r\n\r\n if (this.props.sorting) {\r\n const key = get(this.props.sorting, 'name', '');\r\n if (this.previousFormData[key] !== data[key]) {\r\n shouldRefresh = true;\r\n }\r\n }\r\n\r\n this.previousFormData = data;\r\n\r\n if ((this.form && this.state.isDesktop) || shouldRefresh) {\r\n window.history.replaceState(\r\n {},\r\n null,\r\n window.location.pathname + toQueryString(data)\r\n );\r\n this.form.submit();\r\n }\r\n };\r\n\r\n onResize = () => {\r\n this.setState({ isDesktop: breakpoints.m() });\r\n };\r\n\r\n debouncedResize = debounce(this.onResize, 400);\r\n\r\n hideFilters = () => {\r\n document.body.style.position = '';\r\n document.body.style.overflow = '';\r\n this.setState({ filtersVisible: false });\r\n };\r\n\r\n showFilters = () => {\r\n if (!this.state.isDesktop) {\r\n document.body.style.position = 'fixed';\r\n document.body.style.overflow = 'hidden';\r\n this.mobileFilterContainer.scrollTop = 0;\r\n }\r\n this.setState({ filtersVisible: true });\r\n };\r\n\r\n showArticles = () => {\r\n this.setState({ isArticlesVisible: true });\r\n };\r\n\r\n showProducts = () => {\r\n this.setState({ isArticlesVisible: false });\r\n };\r\n\r\n onSubmit = () => {\r\n this.setState({ isLoading: true });\r\n };\r\n\r\n onResponse = (response, shouldReplaceProducts) => {\r\n this.setState(\r\n previousState => {\r\n const products = get(response, 'productList.products', []);\r\n\r\n const oldProducts = get(previousState, 'productList.products', []);\r\n\r\n const newProducts = shouldReplaceProducts\r\n ? products\r\n : oldProducts.concat(products);\r\n\r\n return Object.assign({}, response, {\r\n isLoading: false,\r\n filters: {\r\n ...previousState.filters,\r\n ...response.filters\r\n },\r\n productList: {\r\n ...previousState.productList,\r\n products: newProducts\r\n },\r\n paginationControls: response.paginationControls\r\n });\r\n },\r\n () => {\r\n this.hideFilters();\r\n }\r\n );\r\n };\r\n\r\n // Reset needs to be applied before submitting\r\n onReset = () => setTimeout(() => this.form.submit(), 200);\r\n\r\n render() {\r\n const loadMoreFormId = 'load-more-products';\r\n const hasProducts = get(this.state.productList, 'products', []).length > 0;\r\n\r\n return (\r\n
    \r\n (this.form = form)}\r\n onResponse={r => this.onResponse(r, true)}\r\n onSubmit={this.onSubmit}\r\n showSubmitButton={false}\r\n >\r\n \r\n \r\n \r\n {this.props.search && (\r\n \r\n
    \r\n \r\n
    \r\n\r\n
    \r\n \r\n \r\n {this.state.productsButtonText}\r\n \r\n \r\n\r\n \r\n \r\n {this.state.articlesButtonText}\r\n \r\n \r\n
    \r\n
    \r\n )}\r\n
    \r\n\r\n \r\n \r\n {!this.props.hideSidebar && (\r\n
    \r\n
    \r\n
    \r\n \r\n {this.state.numberOfProducts}\r\n \r\n\r\n
    \r\n {this.props.showNewProductsOnly && (\r\n \r\n )}\r\n
    \r\n\r\n {this.props.sorting && (\r\n
    \r\n \r\n
    \r\n )}\r\n\r\n \r\n
    \r\n
    \r\n\r\n {this.state.filters && (\r\n (this.mobileFilterContainer = div)}\r\n >\r\n
    \r\n \r\n
    \r\n
    \r\n )}\r\n
    \r\n )}\r\n
    \r\n {this.state.productsHeader && (\r\n
    \r\n \r\n
    \r\n )}\r\n {hasProducts ? (\r\n \r\n ) : (\r\n \r\n )}\r\n
    \r\n {this.state.hasMoreProducts &&\r\n !this.state.isArticlesVisible && (\r\n \r\n )}\r\n
    \r\n {this.state.paginationControls && (\r\n
    \r\n \r\n
    \r\n )}\r\n {this.state.productsFooter && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n \r\n \r\n \r\n this.onResponse(response, false)}\r\n showSubmitButton={false}\r\n />\r\n {this.state.isArticlesVisible && (\r\n \r\n \r\n \r\n )}\r\n \r\n );\r\n }\r\n}\r\n\r\nCategoryPage.themes = themes;\r\n\r\nexport default CategoryPage;\r\n","/* eslint-disable react/no-multi-comp */\r\nimport React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport propTypeTheme from 'utils/prop-type-theme';\r\n\r\nconst themes = {\r\n centered: 'theme-centered',\r\n compact: 'theme-compact',\r\n leftColumnWider: 'theme-left-column-wider',\r\n leftColumnSuperWide: 'theme-left-column-super-wide',\r\n rightColumnWider: 'theme-right-column-wider',\r\n narrow: 'theme-narrow',\r\n noMargin: 'theme-no-margin'\r\n};\r\n\r\nconst Grid = ({ children, className, theme }) => (\r\n
    {children}
    \r\n);\r\n\r\nGrid.propTypes = {\r\n children: PropTypes.node,\r\n className: PropTypes.string,\r\n theme: propTypeTheme(themes)\r\n};\r\n\r\nGrid.propTypesMeta = 'exclude';\r\n\r\nGrid.Column = ({ children }) =>
    {children}
    ;\r\n\r\nGrid.themes = themes;\r\n\r\nGrid.Column.propTypes = {\r\n children: PropTypes.node\r\n};\r\n\r\nexport default Grid;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport ContentContainer from '../content-container';\r\nimport Link from '../link';\r\nimport Text from 'components/text';\r\n\r\nconst MyPageLayout = ({\r\n children,\r\n className,\r\n ingress,\r\n title,\r\n link,\r\n logoutLink\r\n}) => (\r\n
    \r\n \r\n {link && (\r\n \r\n )}\r\n \r\n\r\n {(title || ingress) && (\r\n
    \r\n \r\n {title && {title}}\r\n {ingress &&

    {ingress}

    }\r\n {logoutLink && (\r\n \r\n )}\r\n
    \r\n
    \r\n )}\r\n\r\n \r\n
    {children}
    \r\n
    \r\n
    \r\n);\r\n\r\nMyPageLayout.propTypes = {\r\n children: PropTypes.node,\r\n className: PropTypes.string,\r\n ingress: PropTypes.string,\r\n title: PropTypes.string,\r\n link: PropTypes.exact(Link.propTypes),\r\n logoutLink: PropTypes.exact(Link.propTypes)\r\n};\r\n\r\nMyPageLayout.propTypesMeta = {\r\n className: 'exclude'\r\n};\r\n\r\nexport default MyPageLayout;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Link from '../link';\r\nimport RichText from '../rich-text';\r\nimport Text from 'components/text';\r\n\r\nconst MyPageSection = ({\r\n children,\r\n headingLevel,\r\n ingress,\r\n label,\r\n link,\r\n links,\r\n title\r\n}) => {\r\n return (\r\n
    \r\n
    \r\n \r\n {title}\r\n \r\n {ingress && (\r\n \r\n )}\r\n\r\n {label &&

    {label}

    }\r\n {link && (\r\n \r\n \r\n \r\n )}\r\n\r\n {links.length > 0 &&\r\n links.map(link => (\r\n \r\n ))}\r\n
    \r\n {children}\r\n
    \r\n );\r\n};\r\n\r\nMyPageSection.propTypes = {\r\n children: PropTypes.node,\r\n headingLevel: PropTypes.number,\r\n ingress: PropTypes.exact(RichText.propTypes),\r\n label: PropTypes.string,\r\n link: PropTypes.exact(Link.propTypes),\r\n links: PropTypes.arrayOf(PropTypes.exact(Link.propTypes)),\r\n title: PropTypes.string\r\n};\r\n\r\nMyPageSection.propTypesMeta = {\r\n headingLevel: 'exclude'\r\n};\r\n\r\nMyPageSection.defaultProps = {\r\n headingLevel: 2,\r\n links: []\r\n};\r\n\r\nexport default MyPageSection;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Grid from 'components/grid';\r\nimport MyPageLayout from 'components/my-page-layout';\r\nimport MyPageSection from 'components/my-page-section';\r\nimport Form from 'components/form';\r\nimport TextInput from 'components/text-input';\r\nimport PageSpinner from 'components/page-spinner';\r\n\r\nconst ChangeEmailPage = ({ form, layout, newEmail, oldEmail, section }) => {\r\n return (\r\n \r\n \r\n \r\n \r\n
    \r\n {({ isLoading }) => (\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\nChangeEmailPage.propTypes = {\r\n form: PropTypes.exact(Form.propTypes),\r\n layout: PropTypes.exact(MyPageLayout.propTypes),\r\n newEmail: PropTypes.exact(TextInput.propTypes),\r\n oldEmail: PropTypes.exact(TextInput.propTypes),\r\n section: PropTypes.exact(MyPageSection.propTypes)\r\n};\r\n\r\nexport default ChangeEmailPage;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Grid from 'components/grid';\r\nimport TextInput from 'components/text-input';\r\nimport Form from 'components/form';\r\nimport MyPageLayout from 'components/my-page-layout';\r\nimport MyPageSection from 'components/my-page-section';\r\nimport PageSpinner from 'components/page-spinner';\r\n\r\nconst ChangePasswordPage = ({\r\n form,\r\n layout,\r\n newPassword,\r\n oldPassword,\r\n section\r\n}) => {\r\n return (\r\n \r\n \r\n \r\n \r\n
    \r\n {({ isLoading }) => (\r\n \r\n \r\n {oldPassword && (\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\nChangePasswordPage.propTypes = {\r\n form: PropTypes.exact(Form.propTypes),\r\n layout: PropTypes.exact(MyPageLayout.propTypes),\r\n newPassword: PropTypes.shape(TextInput.propTypes),\r\n oldPassword: PropTypes.shape(TextInput.propTypes),\r\n section: PropTypes.exact(MyPageSection.propTypes)\r\n};\r\n\r\nexport default ChangePasswordPage;\r\n","import { useEffect } from 'react';\r\nimport isRunningOnClient from '@creuna/utils/is-running-on-client';\r\nimport chatScript from '!raw-loader!./script.js';\r\n\r\nconst Chat = () => {\r\n if (!isRunningOnClient) return null;\r\n\r\n let script = '';\r\n let style = '';\r\n\r\n const createScriptElement = () => {\r\n const scriptElement = document.createElement('script');\r\n\r\n scriptElement.innerHTML = chatScript;\r\n scriptElement.async = true;\r\n\r\n return scriptElement;\r\n };\r\n\r\n const createStyleElement = () => {\r\n const styleElement = document.createElement('style');\r\n\r\n styleElement.innerHTML = `\r\n @media (max-width: 700px) {\r\n #magic-widget-launcher-parent { bottom: 25px !important; }\r\n }`;\r\n styleElement.async = true;\r\n\r\n return styleElement;\r\n };\r\n\r\n useEffect(() => {\r\n script = createScriptElement();\r\n style = createStyleElement();\r\n\r\n document.body.appendChild(script);\r\n document.body.appendChild(style);\r\n\r\n return () => {\r\n document.body.removeChild(script);\r\n document.body.removeChild(style);\r\n };\r\n }, []);\r\n\r\n return null;\r\n};\r\n\r\nChat.propTypesMeta = 'exclude';\r\n\r\nexport default Chat;\r\n","export default \"/* eslint-disable */\\r\\n\\r\\nvar scriptElement = document.createElement(\\\"script\\\");\\r\\nscriptElement.async = 1;\\r\\nscriptElement.src = \\\"https://magicwidget.socialboards.com/magic-widget.js\\\";\\r\\ndocument.body.appendChild(scriptElement);\\r\\n\\r\\nvar o = {\\r\\n community: 'interoptik',\\r\\n moduleMask: 7,\\r\\n initModule: 0,\\r\\n widgetId: 1495,\\r\\n language: 'nb',\\r\\n messenger: {\\r\\n right: '20px',\\r\\n bottom: '85px',\\r\\n animationDirection: 'bottom-to-top',\\r\\n translate: '20px',\\r\\n home: {\\r\\n logoDimensions: { width: '154px' },\\r\\n chatLink: { order: 1, startChatText: 'Start Chat-samtale', continueChatText: 'Fortsett Chat-samtale' },\\r\\n faqLink: { order: 2, text: 'Søk i FAQ' },\\r\\n formLink: { order: 3, text: 'Send E-post via skjema' }\\r\\n },\\r\\n faq: {\\r\\n areStickyTopicsFirst: false,\\r\\n faqCategoryId: null,\\r\\n faqName: 'interoptik',\\r\\n tags: \\\"\\\"\\r\\n },\\r\\n form: {\\r\\n formName: ''\\r\\n },\\r\\n chat: {\\r\\n authenticationMask: 14,\\r\\n queueMessageBackgroundColor: 'white',\\r\\n queueMessageFontSizeRem: '1.3rem',\\r\\n agentMessageBackgroundColor: 'rgb(255,189,0)',\\r\\n botMessageBackgroundColor: 'rgb(255,189,0)'\\r\\n }\\r\\n },\\r\\n launcher: {\\r\\n enabled: true,\\r\\n height: '45px',\\r\\n width: '45px',\\r\\n right: '20px',\\r\\n bottom: '20px'\\r\\n }\\r\\n}\\r\\nwindow.magicWidgetAsyncInit = function () {\\r\\n magicWidget.initializeAsync(o)\\r\\n .then(function () {})\\r\\n .catch(function () {});\\r\\n magicWidget.isLaunched$.subscribe(function (isLaunched) {});\\r\\n}\\r\\n\"","import React from 'react';\r\n\r\nconst Context = React.createContext({\r\n isLoading: false,\r\n setIsLoading: () => {},\r\n setHasIframeHTML: () => {},\r\n hasIframeHTML: false\r\n});\r\n\r\nexport default Context;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport CheckoutContext from 'components/checkout-page/checkout-context';\r\n\r\nimport Button from 'components/button';\r\nimport Form from 'components/form';\r\nimport Link from 'components/link';\r\nimport TextInput from 'components/text-input';\r\n\r\nconst CheckoutLoginForm = ({\r\n endpoint,\r\n forgotPasswordLink,\r\n onLoggedIn,\r\n password,\r\n submitLabel,\r\n text,\r\n title,\r\n userId\r\n}) => {\r\n const { setIsLoading } = React.useContext(CheckoutContext);\r\n\r\n return (\r\n setIsLoading(true)}\r\n onResponse={({ isLoggedIn }) => {\r\n isLoggedIn && onLoggedIn();\r\n setIsLoading(false);\r\n }}\r\n >\r\n {title &&

    {title}

    }\r\n {text &&

    {text}

    }\r\n \r\n \r\n\r\n
    \r\n \r\n {forgotPasswordLink && }\r\n
    \r\n \r\n );\r\n};\r\n\r\nCheckoutLoginForm.propTypes = {\r\n endpoint: PropTypes.string,\r\n forgotPasswordLink: PropTypes.exact(Link.propTypes),\r\n onLoggedIn: PropTypes.func,\r\n password: PropTypes.exact(TextInput.propTypes),\r\n submitLabel: PropTypes.string,\r\n text: PropTypes.string,\r\n title: PropTypes.string,\r\n userId: PropTypes.exact(TextInput.propTypes)\r\n};\r\n\r\nCheckoutLoginForm.defaultProps = {\r\n onLoggedIn: () => {}\r\n};\r\n\r\nexport default CheckoutLoginForm;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport CheckoutContext from 'components/checkout-page/checkout-context';\r\n\r\nimport Button from 'components/button';\r\nimport Form from 'components/form';\r\nimport TextInput from 'components/text-input';\r\n\r\nconst CheckoutRegisterForm = ({\r\n bullets,\r\n endpoint,\r\n onRegistered,\r\n submitLabel,\r\n text,\r\n title,\r\n userId\r\n}) => {\r\n const { setIsLoading } = React.useContext(CheckoutContext);\r\n\r\n return (\r\n setIsLoading(true)}\r\n onResponse={({ isRegistered }) => {\r\n isRegistered && onRegistered();\r\n setIsLoading(false);\r\n }}\r\n >\r\n {title &&

    {title}

    }\r\n {bullets.length > 0 && (\r\n
      \r\n {bullets.map(bullet => (\r\n
    • {bullet}
    • \r\n ))}\r\n
    \r\n )}\r\n {text &&

    {text}

    }\r\n \r\n\r\n
    \r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nCheckoutRegisterForm.propTypes = {\r\n bullets: PropTypes.arrayOf(PropTypes.string),\r\n endpoint: PropTypes.string,\r\n onRegistered: PropTypes.func,\r\n submitLabel: PropTypes.string,\r\n text: PropTypes.string,\r\n title: PropTypes.string,\r\n userId: PropTypes.exact(TextInput.propTypes)\r\n};\r\n\r\nCheckoutRegisterForm.defaultProps = {\r\n bullets: []\r\n};\r\n\r\nexport default CheckoutRegisterForm;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport Button from 'components/button';\r\nimport CheckoutLoginForm from 'components/checkout-login-form';\r\nimport CheckoutRegisterForm from 'components/checkout-register-form';\r\n\r\nconst CheckoutLogin = ({\r\n login,\r\n isRegistered,\r\n onComplete,\r\n register,\r\n buttonText\r\n}) => {\r\n return (\r\n
    \r\n {login && (\r\n
    \r\n onComplete(true)} {...login} />\r\n
    \r\n )}\r\n\r\n {register && (\r\n
    \r\n onComplete(true)}\r\n {...register}\r\n />\r\n
    \r\n )}\r\n\r\n \r\n onComplete(false)}\r\n iconAfter=\"chevron-right\"\r\n themes={\r\n isRegistered\r\n ? [Button.themes.buttonCyan]\r\n : [Button.themes.buttonOutline]\r\n }\r\n text={buttonText}\r\n />\r\n
    \r\n \r\n );\r\n};\r\n\r\nCheckoutLogin.propTypes = {\r\n login: PropTypes.exact(CheckoutLoginForm.propTypes),\r\n isRegistered: PropTypes.bool,\r\n onComplete: PropTypes.func,\r\n register: PropTypes.exact(CheckoutRegisterForm.propTypes),\r\n buttonText: PropTypes.string\r\n};\r\n\r\nexport default CheckoutLogin;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Button from 'components/button';\r\nimport Link from 'components/link';\r\n\r\nconst CheckoutLogout = ({ buttonText, link, onComplete, text }) => {\r\n return (\r\n
    \r\n
    \r\n

    {text}

    \r\n \r\n
    \r\n\r\n
    \r\n \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nCheckoutLogout.propTypes = {\r\n buttonText: PropTypes.string.isRequired,\r\n link: PropTypes.exact(Link.propTypes),\r\n onComplete: PropTypes.func,\r\n text: PropTypes.string.isRequired\r\n};\r\n\r\nexport default CheckoutLogout;\r\n","import React from 'react';\r\n\r\n/** Returns the value of `value` from the previous render.\r\n```js\r\nconst [value, setValue] = useState();\r\nconst previousValue = usePrevious(value);\r\n```\r\n */\r\nexport default function usePrevious(value, initialValue) {\r\n const state = React.useRef(initialValue);\r\n\r\n React.useEffect(() => {\r\n state.current = value;\r\n }, [value]);\r\n\r\n return state.current;\r\n}\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\nimport scrollToElement from '@creuna/utils/scroll-to-element';\r\n\r\nimport Collapse from 'react-tiny-collapse';\r\nimport TinyTransition from 'react-tiny-transition';\r\n\r\nimport useIsMounted from 'hooks/use-is-mounted';\r\nimport usePrevious from 'hooks/use-previous';\r\n\r\nimport Button from 'components/button';\r\nimport Icon from 'components/icon';\r\n\r\nconst themes = {\r\n padding: 'theme-padding'\r\n};\r\n\r\nconst CheckoutStep = ({\r\n children,\r\n collapseLabel,\r\n forceInitialAnimation,\r\n expandLabel,\r\n isEnabled,\r\n isComplete,\r\n number,\r\n theme,\r\n title\r\n}) => {\r\n const [element, setElement] = React.useState();\r\n const [isExpanded, setIsExpanded] = React.useState(true);\r\n\r\n const isMounted = useIsMounted();\r\n\r\n const toggle = () => setIsExpanded(isExpanded => !isExpanded);\r\n\r\n const wasComplete = usePrevious(isComplete);\r\n const wasEnabled = usePrevious(isEnabled);\r\n\r\n React.useEffect(() => {\r\n if (!wasComplete && isComplete) setIsExpanded(false);\r\n }, [isComplete]);\r\n\r\n React.useEffect(() => {\r\n if (!wasEnabled && isEnabled) {\r\n setTimeout(() => {\r\n element && scrollToElement(element);\r\n }, 500);\r\n }\r\n }, [isEnabled]);\r\n\r\n return (\r\n \r\n {}}\r\n >\r\n \r\n {!isComplete && (\r\n
    \r\n {number}\r\n
    \r\n )}\r\n \r\n\r\n \r\n {isComplete && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n

    {title}

    \r\n\r\n {isComplete && (\r\n
    \r\n {\r\n e.stopPropagation();\r\n toggle();\r\n }}\r\n text={isExpanded ? collapseLabel : expandLabel}\r\n themes={[Button.themes.link]}\r\n />\r\n
    \r\n )}\r\n \r\n\r\n {(!isMounted || isEnabled) && (\r\n \r\n \r\n {children}\r\n \r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nCheckoutStep.propTypes = {\r\n children: PropTypes.node,\r\n collapseLabel: PropTypes.string,\r\n forceInitialAnimation: PropTypes.bool,\r\n expandLabel: PropTypes.string,\r\n isEnabled: PropTypes.bool,\r\n isComplete: PropTypes.bool,\r\n number: PropTypes.number,\r\n theme: PropTypes.oneOf(Object.values(themes)),\r\n title: PropTypes.string\r\n};\r\n\r\nCheckoutStep.propTypesMeta = 'exclude';\r\n\r\nCheckoutStep.themes = themes;\r\n\r\nexport default CheckoutStep;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport CheckoutContext from 'components/checkout-page/checkout-context';\r\n\r\nimport useEvent from 'hooks/use-event';\r\n\r\nimport Button from 'components/button';\r\nimport Link from 'components/link';\r\nimport HiddenInput from 'components/hidden-input';\r\nimport Form from 'components/form';\r\nimport Checkbox from 'components/checkbox';\r\nimport RichText from 'components/rich-text';\r\nimport ValidationErrorTexts from 'components/validation-error-texts';\r\n\r\nconst TermsForm = ({\r\n buttonText,\r\n endpoint,\r\n isDesktopKey,\r\n onResponse,\r\n legalConsent,\r\n privacyConsent,\r\n privacyConsentLink,\r\n marketingConsents,\r\n marketingTitle,\r\n marketingDisclaimer,\r\n reminderConsents,\r\n termsDescriptionBody,\r\n termsDescriptionLead,\r\n legalConsentLink,\r\n validationErrors\r\n}) => {\r\n const desktopThreshold = 780;\r\n const { setIsLoading } = React.useContext(CheckoutContext);\r\n const [isDesktop, setIsDesktop] = React.useState(false);\r\n\r\n useEvent('resize', () => setIsDesktop(window.innerWidth > desktopThreshold));\r\n React.useEffect(() => setIsDesktop(window.innerWidth > desktopThreshold), []);\r\n\r\n return (\r\n
    \r\n setIsLoading(true)}\r\n onResponse={data => {\r\n onResponse(data);\r\n setIsLoading(false);\r\n }}\r\n validationErrors={validationErrors}\r\n >\r\n \r\n
    \r\n
    \r\n {termsDescriptionLead && (\r\n
    \r\n \r\n
    \r\n )}\r\n {reminderConsents && reminderConsents.length > 0 && (\r\n
    \r\n {reminderConsents.map((input, index) => (\r\n
    \r\n \r\n
    \r\n ))}\r\n
    \r\n )}\r\n {termsDescriptionBody && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n\r\n {legalConsent && (\r\n
    \r\n \r\n {legalConsentLink && (\r\n \r\n )}\r\n
    \r\n )}\r\n\r\n {privacyConsent && (\r\n
    \r\n \r\n {privacyConsentLink && (\r\n \r\n )}\r\n
    \r\n )}\r\n\r\n {marketingConsents && (\r\n
    \r\n {marketingTitle && (\r\n

    {marketingTitle}

    \r\n )}\r\n {marketingConsents.map(input => (\r\n \r\n ))}\r\n {marketingDisclaimer && (\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\nTermsForm.propTypes = {\r\n buttonText: PropTypes.string.isRequired,\r\n endpoint: PropTypes.string.isRequired,\r\n isDesktopKey: PropTypes.string.isRequired,\r\n onResponse: PropTypes.func,\r\n legalConsent: PropTypes.exact(Checkbox.propTypes).isRequired,\r\n privacyConsent: PropTypes.exact(Checkbox.propTypes).isRequired,\r\n privacyConsentLink: PropTypes.exact(Link.propTypes),\r\n termsDescriptionBody: PropTypes.string,\r\n termsDescriptionLead: PropTypes.string,\r\n marketingTitle: PropTypes.string,\r\n marketingDisclaimer: PropTypes.string,\r\n reminderConsents: PropTypes.arrayOf(PropTypes.exact(Checkbox.propTypes)),\r\n marketingConsents: PropTypes.arrayOf(PropTypes.exact(Checkbox.propTypes)),\r\n legalConsentLink: PropTypes.exact(Link.propTypes),\r\n validationErrors: PropTypes.exact(ValidationErrorTexts.propTypes)\r\n};\r\n\r\nTermsForm.defaultProps = {\r\n reminderConsents: [],\r\n marketingConsents: []\r\n};\r\n\r\nexport default TermsForm;\r\n","import React, { useEffect, useRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst KlarnaIframe = ({ htmlString, shouldEvalScript }) => {\r\n const container = useRef();\r\n\r\n useEffect(() => {\r\n if (shouldEvalScript) {\r\n // Klarna has decided to include script tags in their returned HTML. On the checkout page the HTML is returned from an API call and we are forced to assume the risk of evaluating these network-delivered script tags by finding them all and adding them to the DOM manually (since setting innerHTML does not evaluate scripts for good reasons).\r\n const scriptsTags = container.current.getElementsByTagName('script');\r\n\r\n for (var i = 0; i < scriptsTags.length; i++) {\r\n const parentNode = scriptsTags[i].parentNode;\r\n const newScriptTag = document.createElement('script');\r\n newScriptTag.type = 'text/javascript';\r\n newScriptTag.text = scriptsTags[i].text;\r\n parentNode.removeChild(scriptsTags[i]);\r\n parentNode.appendChild(newScriptTag);\r\n }\r\n }\r\n }, []);\r\n\r\n return (\r\n \r\n );\r\n};\r\n\r\nKlarnaIframe.propTypes = {\r\n htmlString: PropTypes.string,\r\n shouldEvalScript: PropTypes.bool\r\n};\r\n\r\nKlarnaIframe.propTypesMeta = 'exclude';\r\n\r\nexport default KlarnaIframe;\r\n","import React, { useEffect, useRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\n\r\nconst PORTER_BUDDY_ID = 'porterbuddy-widget';\r\n\r\nconst PorterBuddy = ({ config, onSelect, scriptSrc, styleHref, hasError }) => {\r\n const container = useRef();\r\n\r\n useEffect(() => {\r\n const script = document.createElement('script');\r\n const link = document.createElement('link');\r\n\r\n script.src = scriptSrc;\r\n script.async = true;\r\n script.onload = () => {\r\n // console.log('--> Loaded script');\r\n };\r\n\r\n link.href = styleHref;\r\n link.rel = 'stylesheet';\r\n link.type = 'text/css';\r\n\r\n container.current.appendChild(script);\r\n container.current.appendChild(link);\r\n\r\n return () => {\r\n container.current.removeChild(script);\r\n container.current.removeChild(link);\r\n };\r\n }, []);\r\n\r\n useEffect(() => {\r\n window.porterbuddy = {\r\n ...window.porterbuddy,\r\n ...config,\r\n onSelectDeliveryWindow: onSelect,\r\n onSetCallbacks: ({ forceRefresh, setSelectedDeliveryWindow }) => {\r\n PorterBuddy.handleOnRefresh = () => {\r\n console.log('--> Refreshing porterbuddy');\r\n\r\n forceRefresh(null, true);\r\n };\r\n PorterBuddy.handleOnSelectDeliveryWindow = () => {\r\n console.log('--> Setting default window in porterbuddy');\r\n\r\n setSelectedDeliveryWindow();\r\n };\r\n }\r\n };\r\n\r\n if (!config.availabilityResponse) return;\r\n\r\n PorterBuddy.handleOnRefresh();\r\n\r\n PorterBuddy.handleOnSelectDeliveryWindow();\r\n\r\n return () => {\r\n window.porterbuddy = undefined;\r\n };\r\n }, [config]);\r\n\r\n return (\r\n \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nPorterBuddy.handleOnRefresh = () => {};\r\nPorterBuddy.handleOnSelectDeliveryWindow = () => {};\r\n\r\nPorterBuddy.propTypes = {\r\n styleHref: PropTypes.string,\r\n scriptSrc: PropTypes.string,\r\n hasError: PropTypes.bool,\r\n onSelect: PropTypes.func,\r\n config: PropTypes.shape({\r\n availabilityResponse: PropTypes.object\r\n })\r\n};\r\n\r\nPorterBuddy.defaultProps = {\r\n styleHref: 'https://widget.porterbuddy.com/porterbuddy-widget.css',\r\n scriptSrc: 'https://widget.porterbuddy.com/porterbuddy-widget.js'\r\n};\r\n\r\nPorterBuddy.propTypesMeta = 'exclude';\r\n\r\nexport default PorterBuddy;\r\n","import React, { useEffect, useState, useRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport PorterBuddy from 'components/delivery-widget/porter-buddy';\r\n\r\nconst KlarnaAndPorterbuddy = ({\r\n klarnaIframeHtml,\r\n porterBuddyConfig,\r\n onKlarnaChange,\r\n onDeliveryWindowChange,\r\n hasError,\r\n klarnaErrorMessage\r\n}) => {\r\n const container = useRef();\r\n\r\n const [config, setConfig] = useState({\r\n ...porterBuddyConfig,\r\n availabilityResponse: undefined\r\n });\r\n const [availability, setAvailability] = useState();\r\n\r\n async function handleOnDeliveryWindowSelect(deliveryWindow) {\r\n KlarnaAndPorterbuddy.handleOnKlarnaSuspend();\r\n\r\n await onDeliveryWindowChange(deliveryWindow);\r\n\r\n KlarnaAndPorterbuddy.handleOnKlarnaResume();\r\n }\r\n\r\n async function handleOnKlarnaChange(postCode) {\r\n let availabilityResponse = {};\r\n\r\n try {\r\n availabilityResponse = await onKlarnaChange(postCode);\r\n setAvailability(availabilityResponse);\r\n } catch (e) {\r\n // eslint-disable-next-line no-console\r\n console.log(e);\r\n setAvailability(undefined);\r\n }\r\n }\r\n\r\n useEffect(() => {\r\n const scriptsTags = container.current.getElementsByTagName('script');\r\n\r\n for (var i = 0; i < scriptsTags.length; i++) {\r\n const parentNode = scriptsTags[i].parentNode;\r\n const newScriptTag = document.createElement('script');\r\n newScriptTag.type = 'text/javascript';\r\n newScriptTag.text = scriptsTags[i].text;\r\n parentNode.removeChild(scriptsTags[i]);\r\n parentNode.appendChild(newScriptTag);\r\n }\r\n }, []);\r\n\r\n useEffect(() => {\r\n window._klarnaCheckout(({ on, suspend, resume }) => {\r\n on({\r\n load: ({ shipping_address }) => {\r\n const { postal_code } = shipping_address;\r\n\r\n //console.log('--> Loaded Klarna!');\r\n\r\n handleOnKlarnaChange(postal_code);\r\n },\r\n shipping_address_change: ({ postal_code }) => {\r\n //console.log('--> Klarna shipping address change!');\r\n\r\n handleOnKlarnaChange(postal_code);\r\n }\r\n });\r\n\r\n KlarnaAndPorterbuddy.handleOnKlarnaSuspend = () => {\r\n //console.log('--> Suspending Klarna!');\r\n\r\n suspend();\r\n };\r\n\r\n KlarnaAndPorterbuddy.handleOnKlarnaResume = () => {\r\n //console.log('--> Resuming Klarna!');\r\n\r\n resume();\r\n };\r\n });\r\n\r\n return () => {\r\n window._klarnaCheckout(({ on }) => {\r\n on({\r\n load: undefined,\r\n shipping_address_change: undefined,\r\n validation_callback: undefined\r\n });\r\n });\r\n\r\n window._klarnaCheckout = undefined;\r\n };\r\n }, []);\r\n\r\n useEffect(() => {\r\n KlarnaAndPorterbuddy.handleOnKlarnaSuspend();\r\n if (hasError) {\r\n console.log('--> Klarna validation enabled, should_proceed: false');\r\n window._klarnaCheckout(({ on }) => {\r\n on({\r\n validation_callback: function (_data, callback) {\r\n callback({\r\n should_proceed: false,\r\n message: klarnaErrorMessage\r\n });\r\n }\r\n });\r\n });\r\n }\r\n else {\r\n console.log('--> Klarna validation removed, validation_callback: undefined');\r\n window._klarnaCheckout(({ on }) => {\r\n on({\r\n validation_callback: undefined\r\n });\r\n });\r\n }\r\n KlarnaAndPorterbuddy.handleOnKlarnaResume();\r\n }, [hasError]);\r\n\r\n useEffect(() => {\r\n setConfig({\r\n ...config,\r\n availabilityResponse: availability\r\n });\r\n }, [availability]);\r\n\r\n return (\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\nKlarnaAndPorterbuddy.handleOnKlarnaSuspend = () => {};\r\nKlarnaAndPorterbuddy.handleOnKlarnaResume = () => {};\r\n\r\nKlarnaAndPorterbuddy.propTypes = {\r\n klarnaIframeHtml: PropTypes.string,\r\n porterBuddyConfig: PropTypes.object,\r\n onKlarnaChange: PropTypes.func,\r\n onDeliveryWindowChange: PropTypes.func,\r\n hasError: PropTypes.bool,\r\n klarnaErrorMessage: PropTypes.string\r\n};\r\n\r\nKlarnaAndPorterbuddy.propTypesMeta = 'exclude';\r\n\r\nexport default KlarnaAndPorterbuddy;\r\n","/* eslint-disable no-console */\r\nimport React, { useState, useRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport api from '../../js/api-helper';\r\n\r\nimport KlarnaAndPorterbuddy from 'components/klarna-and-porterbuddy';\r\n\r\nconst fetchHeaders = {\r\n 'content-type': 'application/json',\r\n accept: 'application/json'\r\n};\r\n\r\nconst DeliveryWidget = ({\r\n klarnaIframeHtml,\r\n porterBuddyConfig,\r\n porterBuddyWidgetConfig,\r\n porterBuddyPublicToken,\r\n porterBuddyAvailabilityEndpoint,\r\n priceEndpoint,\r\n porterBuddyErrorMessage,\r\n klarnaErrorMessage,\r\n handleDeliveryFail,\r\n handleDeliverySucceed\r\n}) => {\r\n const [hasError, setHasError] = useState(false);\r\n const currentHasError = useRef();\r\n currentHasError.current = hasError;\r\n\r\n const handleOnDeliveryWindowChange = async deliveryWindow => {\r\n //console.log('Update delivery method if the state has error:');\r\n //console.log(currentHasError.current);\r\n if (currentHasError.current) {\r\n await handleDeliverySucceed();\r\n }\r\n\r\n setHasError(false);\r\n\r\n try {\r\n return await api.execute(priceEndpoint, { deliveryWindow });\r\n } catch (e) {\r\n console.log(e.toString());\r\n setHasError(true);\r\n await handleDeliveryFail();\r\n }\r\n };\r\n\r\n const fetchPorterBuddyAvailability = async postalCode => {\r\n const payload = JSON.stringify({\r\n ...porterBuddyConfig,\r\n destinationAddress: {\r\n ...porterBuddyConfig.destinationAddress,\r\n postalCode\r\n }\r\n });\r\n\r\n try {\r\n const availabilityResponse = await fetch(\r\n porterBuddyAvailabilityEndpoint,\r\n {\r\n method: 'POST',\r\n headers: {\r\n ...fetchHeaders,\r\n 'x-public-token': porterBuddyPublicToken\r\n },\r\n body: payload\r\n }\r\n );\r\n\r\n if (!availabilityResponse.ok) {\r\n // conditionally, the response is an array of error objects.\r\n const errors = await availabilityResponse.json();\r\n\r\n const { code, message } = errors[0];\r\n\r\n // We assume this is because porterBuddy does not deliver to the specificed postalCode\r\n if (code === 'LOCATION_NODELIVERY') throw Error(message);\r\n\r\n // We assume that this is because of missing data from Klarna on init\r\n throw Error(message);\r\n }\r\n\r\n return await availabilityResponse.json();\r\n } catch (e) {\r\n console.log(e.toString());\r\n setHasError(true);\r\n await handleDeliveryFail();\r\n }\r\n };\r\n\r\n return (\r\n
    \r\n {hasError && (\r\n
    \r\n

    \r\n {porterBuddyErrorMessage}\r\n

    \r\n
    \r\n )}\r\n
    \r\n \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nDeliveryWidget.propTypes = {\r\n klarnaIframeHtml: PropTypes.string,\r\n porterBuddyAvailabilityEndpoint: PropTypes.string.isRequired,\r\n porterBuddyConfig: PropTypes.shape({\r\n originAddress: PropTypes.shape({\r\n streetName: PropTypes.string.isRequired,\r\n streetNumber: PropTypes.string.isRequired,\r\n city: PropTypes.string.isRequired,\r\n postalCode: PropTypes.string.isRequired,\r\n country: PropTypes.string.isRequired\r\n }).isRequired,\r\n destinationAddress: PropTypes.shape({\r\n postalCode: PropTypes.string.isRequired,\r\n country: PropTypes.string.isRequired\r\n }).isRequired,\r\n products: PropTypes.arrayOf(PropTypes.string),\r\n parcels: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n widthCm: PropTypes.number,\r\n heightCm: PropTypes.number,\r\n depthCm: PropTypes.number,\r\n weightGrams: PropTypes.number\r\n })\r\n )\r\n }).isRequired,\r\n porterBuddyWidgetConfig: PropTypes.shape({\r\n token: PropTypes.string.isRequired,\r\n view: PropTypes.string.isRequired\r\n }).isRequired,\r\n priceEndpoint: PropTypes.string.isRequired,\r\n porterBuddyErrorMessage: PropTypes.string.isRequired,\r\n porterBuddyPublicToken: PropTypes.string.isRequired,\r\n klarnaErrorMessage: PropTypes.string.isRequired,\r\n handleDeliveryFail: PropTypes.func,\r\n handleDeliverySucceed: PropTypes.func\r\n};\r\n\r\nDeliveryWidget.propTypesMeta = {\r\n klarnaIframeHtml: 'exclude'\r\n};\r\n\r\nexport default DeliveryWidget;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport useFormValidation from 'hooks/use-form-validation';\r\n\r\nconst Radio = ({\r\n attributes,\r\n children,\r\n defaultChecked,\r\n idPrefix,\r\n label,\r\n name,\r\n onChange,\r\n value,\r\n validations,\r\n validationMessageHidden\r\n}) => {\r\n const [error, validate] = useFormValidation(name, validations);\r\n\r\n const id = idPrefix + '-' + name + '-' + value;\r\n\r\n return (\r\n
    \r\n {\r\n onChange(e.target.value);\r\n validate();\r\n }}\r\n value={value}\r\n />\r\n\r\n \r\n\r\n {!validationMessageHidden && error && (\r\n
    {error}
    \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nRadio.propTypes = {\r\n attributes: PropTypes.object,\r\n children: PropTypes.node,\r\n defaultChecked: PropTypes.bool,\r\n idPrefix: PropTypes.string,\r\n onChange: PropTypes.func,\r\n label: PropTypes.string,\r\n name: PropTypes.string.isRequired,\r\n value: PropTypes.string,\r\n validations: PropTypes.arrayOf(PropTypes.string),\r\n validationMessageHidden: PropTypes.bool\r\n};\r\n\r\nRadio.propTypesMeta = {\r\n attributes: 'exclude',\r\n idPrefix: 'exclude',\r\n validations: 'exclude',\r\n validationMessageHidden: 'exclude'\r\n};\r\n\r\nRadio.defaultProps = {\r\n idPrefix: '',\r\n onChange: () => {}\r\n};\r\n\r\nexport default Radio;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport api from '../../js/api-helper';\r\n\r\nimport CheckoutContext from 'components/checkout-page/checkout-context';\r\nimport KlarnaIframe from '../klarna-iframe';\r\nimport DeliveryWidget from '../delivery-widget';\r\n\r\nimport Radio from 'components/radio';\r\n\r\nconst DeliveryForm = ({ title, deliveryWidget, options, endpoint }) => {\r\n const { setIsLoading, setHasIframeHTML } = React.useContext(CheckoutContext);\r\n\r\n const [showPorterBuddy, setShowPorterBuddy] = React.useState(false);\r\n const [showOnlyKlarna, setShowOnlyKlarna] = React.useState(false);\r\n const [klarnaIframe, setKlarnaIframe] = React.useState();\r\n const [currentShipmentId, setCurrentShipmentId] = React.useState('');\r\n const currentShipmentRef = React.useRef();\r\n currentShipmentRef.current = currentShipmentId;\r\n\r\n const handleOnChange = async value => {\r\n setIsLoading(true);\r\n setShowPorterBuddy(false);\r\n setShowOnlyKlarna(false);\r\n setKlarnaIframe('');\r\n setCurrentShipmentId('');\r\n setHasIframeHTML(false);\r\n\r\n const { iframeHTML, enablePorterBuddy } = await api.execute(endpoint, {\r\n value\r\n });\r\n\r\n if (iframeHTML) {\r\n setHasIframeHTML(true);\r\n setKlarnaIframe(iframeHTML);\r\n }\r\n\r\n enablePorterBuddy ? setShowPorterBuddy(true) : setShowOnlyKlarna(true);\r\n //console.log('setting delivery method id: ' + value);\r\n setCurrentShipmentId(value);\r\n\r\n setIsLoading(false);\r\n };\r\n\r\n async function handleDeliveryFail() {\r\n //console.log('delivery failed: method id = ' + currentShipmentRef.current);\r\n const firstShipping = options.find(\r\n option => option.input.value !== currentShipmentRef.current\r\n );\r\n\r\n //console.log('setting another method id: ');\r\n //console.log(firstShipping);\r\n if (firstShipping !== undefined) {\r\n await api.execute(endpoint, {\r\n value: firstShipping.input.value\r\n });\r\n }\r\n }\r\n\r\n async function handleDeliverySucceed() {\r\n //console.log('delivery succeed: method id = ' + currentShipmentRef.current)\r\n if (currentShipmentRef.current !== '') {\r\n await api.execute(endpoint, {\r\n value: currentShipmentRef.current\r\n });\r\n }\r\n }\r\n\r\n return (\r\n
    \r\n
    \r\n {title &&

    {title}

    }\r\n {options.map(({ description, input, label, price }) => (\r\n
    \r\n \r\n \r\n \r\n {label} {price || ''}\r\n \r\n {description && (\r\n \r\n {description}\r\n \r\n )}\r\n \r\n \r\n
    \r\n ))}\r\n
    \r\n {showPorterBuddy && (\r\n \r\n )}\r\n {showOnlyKlarna && (\r\n \r\n )}\r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nDeliveryForm.propTypes = {\r\n options: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n input: PropTypes.exact(Radio.propTypes),\r\n label: PropTypes.string,\r\n description: PropTypes.string,\r\n price: PropTypes.string\r\n })\r\n ),\r\n title: PropTypes.string,\r\n deliveryWidget: PropTypes.shape(DeliveryWidget.propTypes),\r\n endpoint: PropTypes.string.isRequired\r\n};\r\n\r\nDeliveryForm.defaultProps = {\r\n options: []\r\n};\r\n\r\nexport default DeliveryForm;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport get from 'lodash/get';\r\nimport api from 'js/api-helper';\r\n\r\nimport CheckoutContext from './checkout-context';\r\n\r\nimport Button from 'components/button';\r\nimport Cart from 'components/cart';\r\nimport CheckoutLogin from 'components/checkout-login';\r\nimport CheckoutLogout from 'components/checkout-logout';\r\nimport CheckoutStep from './checkout-step';\r\nimport ContentContainer from '../content-container';\r\nimport TermsForm from 'components/terms-form';\r\nimport DeliveryForm from 'components/delivery-form';\r\nimport PageSpinner from '../page-spinner';\r\n\r\nconst stepIds = {\r\n cart: 'cart',\r\n terms: 'terms',\r\n login: 'login',\r\n payment: 'payment'\r\n};\r\n\r\nconst CheckoutPage = ({\r\n analyticsEndpoint,\r\n cart,\r\n cartButtonText,\r\n cartTitle,\r\n collapseLabel,\r\n terms,\r\n delivery,\r\n paymentTitle,\r\n termsTitle,\r\n expandLabel,\r\n isLoggedIn,\r\n logout,\r\n login,\r\n loginTitle,\r\n title\r\n}) => {\r\n const [hasIframeHTML, setHasIframeHTML] = React.useState();\r\n const [isLoading, setIsLoading] = React.useState(false);\r\n const [stepCompletenessMap, setStepCompletnessMap] = React.useState({\r\n [stepIds.cart]: false,\r\n [stepIds.terms]: false,\r\n [stepIds.payment]: false\r\n });\r\n\r\n const stepIsComplete = stepId => stepCompletenessMap[stepId];\r\n const setStepComplete = React.useCallback((stepId, stepNumber) => {\r\n // NOTE: `stepNumber` is the number of the completed step (the previously active step). The analytics endpoint is interested in what the currently active step is, which is the step after `stepNumber`.\r\n analyticsEndpoint &&\r\n api.execute(analyticsEndpoint, { currentActiveStep: stepNumber + 1 });\r\n setStepCompletnessMap(validities => ({ ...validities, [stepId]: true }));\r\n }, []);\r\n\r\n const onCartUpdate = React.useCallback(() => {\r\n // If the Klarna iframe has been loaded, the page needs to be refreshed when the cart changes in order to update the cart in the iframe.\r\n hasIframeHTML && window.location.reload();\r\n }, [hasIframeHTML]);\r\n\r\n return (\r\n \r\n \r\n\r\n
    \r\n \r\n

    {title}

    \r\n 0}\r\n number={1}\r\n theme={CheckoutStep.themes.padding}\r\n title={cartTitle}\r\n >\r\n \r\n \r\n setStepComplete(stepIds.cart, 1)}\r\n iconAfter=\"chevron-right\"\r\n text={cartButtonText}\r\n />\r\n \r\n \r\n {login && (\r\n \r\n {isLoggedIn ? (\r\n setStepComplete(stepIds.login, 2)}\r\n {...logout}\r\n />\r\n ) : (\r\n {\r\n setStepComplete(stepIds.login, 2);\r\n didLoginOrRegister &&\r\n hasIframeHTML &&\r\n window.location.reload();\r\n }}\r\n {...login}\r\n />\r\n )}\r\n \r\n )}\r\n {terms && (\r\n \r\n setStepComplete(stepIds.terms, 3)}\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\nCheckoutPage.propTypes = {\r\n cart: PropTypes.exact(Cart.propTypes),\r\n analyticsEndpoint: PropTypes.string,\r\n cartButtonText: PropTypes.string,\r\n cartTitle: PropTypes.string,\r\n collapseLabel: PropTypes.string,\r\n terms: PropTypes.exact(TermsForm.propTypes),\r\n termsTitle: PropTypes.string,\r\n paymentTitle: PropTypes.string,\r\n delivery: PropTypes.exact(DeliveryForm.propTypes),\r\n expandLabel: PropTypes.string,\r\n isLoggedIn: PropTypes.bool,\r\n klarnaTitle: PropTypes.string,\r\n logout: PropTypes.exact(CheckoutLogout.propTypes),\r\n login: PropTypes.exact(CheckoutLogin.propTypes),\r\n loginTitle: PropTypes.string,\r\n title: PropTypes.string\r\n};\r\n\r\nexport default CheckoutPage;\r\n","import React, { useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Collapse from 'react-tiny-collapse';\r\nimport TinyTransition from 'react-tiny-transition';\r\nimport Icon from '../icon';\r\n\r\nimport RichText from '../rich-text';\r\n\r\nconst CollapsableRichText = ({\r\n text,\r\n children,\r\n hiddenText,\r\n showInlineCloseButton,\r\n readLessButtonText,\r\n onCloseClick,\r\n readMoreButtonText,\r\n closeButtonText,\r\n isInitiallyOpen\r\n}) => {\r\n const [textIsExpanded, setTextIsExpanded] = useState(isInitiallyOpen);\r\n const [showButton, setShowButton] = useState(!isInitiallyOpen);\r\n\r\n const handleOnReadMoreClick = () => {\r\n setTextIsExpanded(!textIsExpanded);\r\n setShowButton(textIsExpanded);\r\n };\r\n\r\n return (\r\n
    \r\n {showInlineCloseButton && (\r\n \r\n \r\n {closeButtonText}\r\n \r\n \r\n \r\n \r\n \r\n )}\r\n \r\n {readMoreButtonText && (\r\n \r\n {showButton && (\r\n \r\n {readMoreButtonText}\r\n \r\n )}\r\n \r\n )}\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n {children && (\r\n
    {children}
    \r\n )}\r\n {readLessButtonText && (\r\n \r\n {readLessButtonText}\r\n \r\n )}\r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nCollapsableRichText.propTypesMeta = {\r\n closeButtonText: 'exclude',\r\n showInlineCloseButton: 'exclude'\r\n};\r\n\r\nCollapsableRichText.propTypes = {\r\n isInitiallyOpen: PropTypes.bool,\r\n children: PropTypes.node,\r\n onCloseClick: PropTypes.func,\r\n closeButtonText: PropTypes.string,\r\n showInlineCloseButton: PropTypes.bool,\r\n readLessButtonText: PropTypes.string,\r\n readMoreButtonText: PropTypes.string,\r\n text: PropTypes.string.isRequired,\r\n hiddenText: PropTypes.string.isRequired\r\n};\r\n\r\nexport default CollapsableRichText;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Button from '../button';\r\nimport Grid from 'components/grid';\r\nimport Link from 'components/link';\r\nimport MyPageLayout from 'components/my-page-layout';\r\nimport MyPageSection from 'components/my-page-section';\r\nimport Form from 'components/form';\r\nimport Checkbox from 'components/checkbox';\r\nimport PageSpinner from 'components/page-spinner';\r\nimport Text from 'components/text';\r\n\r\nconst ConsentPage = ({\r\n form,\r\n abortLink,\r\n consentGroups,\r\n layout,\r\n section,\r\n submitLabel\r\n}) => (\r\n \r\n \r\n \r\n \r\n
    \r\n {({ isLoading }) => (\r\n \r\n \r\n\r\n {consentGroups.map(({ title, options = [] }) => (\r\n
    \r\n {title}\r\n {options.map(({ input, label, description }) => (\r\n \r\n \r\n \r\n \r\n {label}\r\n \r\n \r\n {description}\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\nConsentPage.propTypes = {\r\n abortLink: PropTypes.shape(Link.propTypes),\r\n form: PropTypes.exact(Form.propTypes),\r\n consentGroups: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n title: PropTypes.string,\r\n options: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n input: PropTypes.exact(Checkbox.propTypes),\r\n label: PropTypes.string,\r\n description: PropTypes.string\r\n })\r\n )\r\n })\r\n ),\r\n layout: PropTypes.exact(MyPageLayout.propTypes),\r\n section: PropTypes.exact(MyPageSection.propTypes),\r\n submitLabel: PropTypes.string\r\n};\r\n\r\nConsentPage.defaultProps = {\r\n consentGroups: [],\r\n labelDescriptions: []\r\n};\r\n\r\nexport default ConsentPage;\r\n","import PropTypes from 'prop-types';\r\n\r\nimport Cart from 'components/cart';\r\nimport AddToCartConfirmation from 'components/add-to-cart-confirmation';\r\n\r\nconst AddToCartResponse = {};\r\nAddToCartResponse.propTypes = {\r\n cart: PropTypes.exact(Cart.propTypes),\r\n confirmation: PropTypes.exact(AddToCartConfirmation.propTypes),\r\n numberOfProductsInCart: PropTypes.number\r\n};\r\n\r\nexport default AddToCartResponse;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Select from 'components/select';\r\n\r\nconst InputTable = ({ columnLabels, rows }) => {\r\n if (!rows) return null;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n \r\n\r\n \r\n {rows.map((row, rowIndex) => (\r\n \r\n \r\n {row.inputs.map((input, colIndex) => {\r\n const ariaId = `colum-${colIndex}-header row-${rowIndex}-header`;\r\n\r\n return (\r\n \r\n );\r\n })}\r\n \r\n ))}\r\n \r\n
    \r\n {columnLabels.map((label, index) => (\r\n \r\n {label}\r\n
    {row.label}\r\n
    \r\n );\r\n};\r\n\r\nInputTable.propTypes = {\r\n columnLabels: PropTypes.arrayOf(PropTypes.string),\r\n rows: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n label: PropTypes.string,\r\n inputs: PropTypes.arrayOf(PropTypes.exact(Select.propTypes))\r\n })\r\n )\r\n};\r\n\r\nInputTable.defaultProps = {\r\n columnLabels: [],\r\n rows: []\r\n};\r\n\r\nexport default InputTable;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\n\r\nimport PubSub from 'pubsub-js';\r\n\r\nimport topics from 'js/topics.json';\r\nimport checkApiPropTypes from 'js/check-api-prop-types.js';\r\n\r\nimport AddToCartResponse from './add-to-cart-response';\r\nimport Availability from 'components/availability';\r\nimport Button from 'components/button';\r\nimport Form from 'components/form';\r\nimport Icon from 'components/icon';\r\nimport InputTable from 'components/input-table';\r\nimport Radio from 'components/radio';\r\nimport PageSpinner from 'components/page-spinner';\r\nimport Price from 'components/price';\r\nimport Select from 'components/select';\r\nimport Text from 'components/text';\r\nimport Link from 'components/link';\r\nimport ValidationErrorTexts from 'components/validation-error-texts';\r\n\r\nclass ContactLensForm extends React.Component {\r\n static propTypes = {\r\n showPurchaseSection: PropTypes.bool,\r\n addToCartEndpoint: PropTypes.string,\r\n availability: PropTypes.exact(Availability.propTypes),\r\n availabilityBanner: PropTypes.string,\r\n onChange: PropTypes.func,\r\n availabilityInformation: PropTypes.exact({\r\n text: PropTypes.string,\r\n link: PropTypes.exact(Link.propTypes)\r\n }),\r\n priceSummary: PropTypes.exact({\r\n price: PropTypes.string,\r\n priceLabel: PropTypes.string,\r\n summary: PropTypes.string\r\n }),\r\n productSelect: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n input: PropTypes.exact(Radio.propTypes),\r\n label: PropTypes.string,\r\n price: PropTypes.exact(Price.propTypes)\r\n })\r\n ),\r\n propertySelect: PropTypes.exact(InputTable.propTypes),\r\n quantitySelect: PropTypes.exact(Select.propTypes),\r\n shippingBanner: PropTypes.string,\r\n submitLabel: PropTypes.string,\r\n subtitle: PropTypes.string,\r\n tag: PropTypes.string,\r\n title: PropTypes.string,\r\n validationErrors: PropTypes.exact(ValidationErrorTexts.propTypes),\r\n validationEndpoint: PropTypes.string\r\n };\r\n\r\n static defaultProps = {\r\n productSelect: [],\r\n showPurchaseSection: true\r\n };\r\n\r\n state = {\r\n enableValidation: false,\r\n isLoading: false\r\n };\r\n\r\n componentDidUpdate(prevProps) {\r\n if (prevProps !== this.props) {\r\n this.setState({ isLoading: false });\r\n }\r\n }\r\n\r\n onChange = formData => {\r\n clearTimeout(this.changeTimeout);\r\n this.changeTimeout = setTimeout(() => {\r\n this.setState({ isLoading: true }, () => {\r\n this.props.onChange(formData);\r\n });\r\n }, 100);\r\n };\r\n\r\n onAddToCartResponse = response => {\r\n checkApiPropTypes(\r\n response,\r\n AddToCartResponse.propTypes,\r\n 'AddToCartResponse'\r\n );\r\n PubSub.publish(topics.cartUpdate, response);\r\n };\r\n\r\n render() {\r\n const {\r\n priceSummary,\r\n productSelect,\r\n propertySelect,\r\n shippingBanner\r\n } = this.props;\r\n\r\n return (\r\n \r\n {({ isLoading }) => (\r\n \r\n \r\n\r\n
    \r\n {this.props.tag && (\r\n
    \r\n \r\n {this.props.tag}\r\n \r\n
    \r\n )}\r\n\r\n {this.props.title && (\r\n \r\n {this.props.title}\r\n \r\n )}\r\n {this.props.subtitle && (\r\n

    \r\n {this.props.subtitle}\r\n

    \r\n )}\r\n\r\n {!this.props.showPurchaseSection && (\r\n <>\r\n {this.props.availabilityInformation && (\r\n
    \r\n {this.props.availabilityInformation.text && (\r\n

    {this.props.availabilityInformation.text}

    \r\n )}\r\n \r\n
    \r\n )}\r\n \r\n )}\r\n
    \r\n\r\n {this.props.showPurchaseSection && (\r\n
    \r\n {productSelect.length > 0 && (\r\n
    \r\n {productSelect.map(({ input, label, price }, index) => (\r\n \r\n \r\n \r\n {label}\r\n \r\n \r\n \r\n
    \r\n ))}\r\n
    \r\n )}\r\n\r\n {shippingBanner && (\r\n
    \r\n \r\n

    {shippingBanner}

    \r\n
    \r\n )}\r\n\r\n {this.props.quantitySelect && (\r\n
    \r\n \r\n
    \r\n )}\r\n\r\n {propertySelect && (\r\n \r\n \r\n \r\n )}\r\n\r\n {this.props.availabilityBanner && (\r\n
    \r\n

    {this.props.availabilityBanner}

    \r\n
    \r\n )}\r\n\r\n {priceSummary && (\r\n
    \r\n \r\n {priceSummary.summary}\r\n \r\n \r\n {priceSummary.price}\r\n \r\n
    \r\n )}\r\n\r\n {this.props.submitLabel && (\r\n \r\n )}\r\n\r\n {this.props.availability && (\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\nexport default ContactLensForm;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Icon from 'components/icon';\r\n\r\nconst ImageContainer = ({ children, onClick }) => (\r\n
    \r\n
    \r\n \r\n
    \r\n {children}\r\n
    \r\n);\r\n\r\nImageContainer.propTypes = {\r\n children: PropTypes.node.isRequired,\r\n onClick: PropTypes.func.isRequired\r\n};\r\n\r\nImageContainer.propTypesMeta = 'exclude';\r\n\r\nexport default ImageContainer;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport rangeMap from '@creuna/utils/range-map';\r\nimport { useMultiSpringEffect } from 'use-spring-effect';\r\n\r\nimport ImageLoader from 'js/responsive-images';\r\n\r\nimport Button from 'components/button';\r\nimport Icon from 'components/icon';\r\nimport Spinner from 'components/spinner';\r\n\r\nconst ZoomModal = ({ src, imagePadding, imageWidth, onCloseButtonClick }) => {\r\n const [imageHeight, setImageHeight] = React.useState(0);\r\n const [image, setImage] = React.useState();\r\n\r\n const [transitionTo] = useMultiSpringEffect(\r\n { x: 0, y: 0 },\r\n ({ x, y }) => {\r\n if (image) image.style.transform = `translate(${x}px, ${y}px)`;\r\n },\r\n { stiffness: 150, damping: 20 },\r\n [image]\r\n );\r\n\r\n const onMouseMove = e => {\r\n const padding = imagePadding;\r\n const winW = window.innerWidth;\r\n const winH = window.innerHeight;\r\n const xDiff = (imageWidth - winW) / 2 + padding;\r\n const yDiff = (imageHeight - winH) / 2 + padding;\r\n\r\n const x =\r\n winW < imageWidth + 2 * padding\r\n ? rangeMap(e.clientX, 0, winW, xDiff, -xDiff)\r\n : 0;\r\n\r\n const y =\r\n winH < imageHeight + 2 * padding\r\n ? rangeMap(e.clientY, 0, winH, yDiff, -yDiff)\r\n : 0;\r\n\r\n transitionTo({ x, y });\r\n };\r\n\r\n React.useEffect(() => {\r\n if (!image) return;\r\n if (!image.complete || !image.naturalHeight) {\r\n image.onload = () => {\r\n setImageHeight(image.offsetHeight);\r\n };\r\n } else {\r\n setImageHeight(image.offsetHeight);\r\n }\r\n }, [image]);\r\n\r\n return (\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\nZoomModal.propTypes = {\r\n src: PropTypes.string.isRequired,\r\n imagePadding: PropTypes.number,\r\n imageWidth: PropTypes.number,\r\n onCloseButtonClick: PropTypes.func.isRequired\r\n};\r\n\r\nZoomModal.propTypesMeta = 'exclude';\r\n\r\nZoomModal.defaultProps = {\r\n imagePadding: 100,\r\n imageWidth: 1400\r\n};\r\n\r\nexport default ZoomModal;\r\n","import React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport isRunningOnClient from '@creuna/utils/is-running-on-client';\r\n\r\nimport TinyTransition from 'react-tiny-transition';\r\n\r\nimport Carousel from 'components/carousel';\r\nimport Image from 'components/image';\r\nimport ImageContainer from './image-container';\r\nimport ZoomModal from './zoom-modal';\r\n\r\nclass ProductImages extends React.Component {\r\n static propTypes = {\r\n images: PropTypes.arrayOf(PropTypes.exact(Image.propTypes))\r\n };\r\n\r\n static defaultProps = {\r\n images: []\r\n };\r\n\r\n state = {\r\n modalIsVisible: false,\r\n modalSrc: '',\r\n portalNode: null\r\n };\r\n\r\n componentDidMount() {\r\n this.setState({ portalNode: document.body });\r\n }\r\n\r\n showModal(src) {\r\n this.setState({\r\n modalIsVisible: true,\r\n modalSrc: src\r\n });\r\n }\r\n\r\n hideModal = () => {\r\n this.setState({ modalIsVisible: false });\r\n };\r\n\r\n render() {\r\n const firstImage = this.props.images[0];\r\n const isTouch =\r\n isRunningOnClient && 'ontouchstart' in document.documentElement;\r\n const imageScale = isTouch ? 2 : 1;\r\n\r\n const thumbnails = this.props.images.map(image => (\r\n \r\n ));\r\n\r\n return (\r\n
    \r\n {this.props.images.length === 1 ? (\r\n \r\n \r\n \r\n ) : (\r\n \r\n {this.props.images.map(image => (\r\n \r\n \r\n \r\n ))}\r\n \r\n )}\r\n\r\n {this.state.portalNode &&\r\n ReactDOM.createPortal(\r\n \r\n {this.state.modalIsVisible && (\r\n \r\n )}\r\n ,\r\n this.state.portalNode\r\n )}\r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default ProductImages;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Image from '../image';\r\n\r\nconst ProductLogo = ({ alt, fallbackText, src }) => (\r\n
    \r\n {src ? (\r\n {alt}\r\n ) : (\r\n

    {fallbackText}

    \r\n )}\r\n
    \r\n);\r\n\r\nProductLogo.propTypes = {\r\n alt: PropTypes.string,\r\n fallbackText: PropTypes.string,\r\n src: PropTypes.string\r\n};\r\n\r\nexport default ProductLogo;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport Icon from '../icon';\r\n\r\nconst ProductSellingPoints = ({ className, items }) => (\r\n
      \r\n {items.map(item => (\r\n
    • \r\n \r\n {item}\r\n
    • \r\n ))}\r\n
    \r\n);\r\n\r\nProductSellingPoints.propTypes = {\r\n className: PropTypes.string,\r\n items: PropTypes.arrayOf(PropTypes.string).isRequired\r\n};\r\n\r\nProductSellingPoints.propTypesMeta = {\r\n className: 'exclude'\r\n};\r\n\r\nProductSellingPoints.defaultProps = {\r\n items: []\r\n};\r\n\r\nexport default ProductSellingPoints;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Image from 'components/image';\r\nimport Text from 'components/text';\r\n\r\nconst ReplacementProductBanner = ({\r\n image,\r\n productName,\r\n productType,\r\n text,\r\n title\r\n}) => (\r\n
    \r\n {title}\r\n {productName}\r\n

    {productType}

    \r\n

    {text}

    \r\n {image && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n);\r\n\r\nReplacementProductBanner.propTypes = {\r\n image: PropTypes.exact(Image.propTypes),\r\n productName: PropTypes.string,\r\n productType: PropTypes.string,\r\n text: PropTypes.string,\r\n title: PropTypes.string\r\n};\r\n\r\nexport default ReplacementProductBanner;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Image from 'components/image';\r\nimport Text from 'components/text';\r\n\r\nconst SellingPoints = ({ items }) => (\r\n
    \r\n {items.map(({ image, text, url } = {}) => {\r\n const Element = url ? 'a' : 'div';\r\n\r\n return (\r\n \r\n
    \r\n \r\n
    \r\n \r\n {text}\r\n \r\n
    \r\n );\r\n })}\r\n
    \r\n);\r\n\r\nSellingPoints.propTypes = {\r\n items: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n image: PropTypes.exact(Image.propTypes),\r\n text: PropTypes.string,\r\n url: PropTypes.string\r\n })\r\n )\r\n};\r\n\r\nSellingPoints.defaultProps = {\r\n items: []\r\n};\r\n\r\nexport default SellingPoints;\r\n","import PropTypes from 'prop-types';\r\n\r\nimport ContactLensForm from './contact-lens-form';\r\n\r\nconst UpdateFormResponse = {};\r\nUpdateFormResponse.propTypes = {\r\n purchaseForm: PropTypes.exact(ContactLensForm.propTypes)\r\n};\r\n\r\nexport default UpdateFormResponse;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\n\r\nconst ProductVariantText = ({ textHtml, className }) => {\r\n return textHtml ? (\r\n \r\n ) : null;\r\n};\r\n\r\nProductVariantText.propTypes = {\r\n textHtml: PropTypes.string,\r\n className: PropTypes.string\r\n};\r\n\r\nProductVariantText.propTypesMeta = 'exclude';\r\n\r\nexport default ProductVariantText;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport api from '../../js/api-helper';\r\nimport checkApiPropTypes from 'js/check-api-prop-types';\r\n\r\nimport ContactLensForm from './contact-lens-form';\r\nimport Grid from '../grid';\r\nimport ProductImages from '../product-images';\r\nimport ProductLogo from '../product-logo';\r\nimport ProductSellingPoints from '../product-selling-points';\r\nimport ReplacementProductBanner from './replacement-product-banner';\r\nimport SellingPoints from '../selling-points';\r\nimport UpdateFormResponse from './update-form-response';\r\nimport Text from 'components/text';\r\nimport ProductVariantText from 'components/product-variant-text';\r\n\r\nclass ContactLensHeader extends React.Component {\r\n static propTypes = {\r\n getAvailabilityEndpoint: PropTypes.string,\r\n productImages: PropTypes.exact(ProductImages.propTypes),\r\n productLogo: PropTypes.exact(ProductLogo.propTypes),\r\n productSellingPoints: PropTypes.arrayOf(PropTypes.string),\r\n purchaseForm: PropTypes.exact(ContactLensForm.propTypes),\r\n replacementProductBanner: PropTypes.exact(\r\n ReplacementProductBanner.propTypes\r\n ),\r\n replacementProductTitle: PropTypes.string,\r\n sellingPoints: PropTypes.exact(SellingPoints.propTypes),\r\n updateFormEndpoint: PropTypes.string,\r\n productVariantText: PropTypes.string\r\n };\r\n\r\n static defaultProps = {\r\n productSellingPoints: []\r\n };\r\n\r\n state = {\r\n purchaseForm: this.props.purchaseForm,\r\n productVariantText: this.props.productVariantText\r\n };\r\n\r\n isLoading = false;\r\n\r\n onFormChange = formData => {\r\n if (this.isLoading) {\r\n return;\r\n }\r\n\r\n this.isLoading = true;\r\n\r\n const transformedFormData = Object.entries(formData).reduce(\r\n (accum, [key, val]) => Object.assign({}, accum, { [key]: val || '' }),\r\n {}\r\n );\r\n\r\n api\r\n .execute(this.props.updateFormEndpoint, transformedFormData)\r\n .then(({ purchaseForm, productVariantText }) => {\r\n this.isLoading = false;\r\n\r\n checkApiPropTypes(\r\n { purchaseForm },\r\n UpdateFormResponse.propTypes,\r\n 'UpdateFormResponse'\r\n );\r\n\r\n this.setState(state => ({\r\n purchaseForm: Object.assign({}, state.purchaseForm, purchaseForm),\r\n productVariantText: productVariantText\r\n }));\r\n });\r\n\r\n // NOTE: This endpoint is separate from updateFormEndpoint because the availability check is much slower on the server than the price calculation.\r\n if (this.props.getAvailabilityEndpoint) {\r\n api\r\n .execute(this.props.getAvailabilityEndpoint, transformedFormData)\r\n .then(({ purchaseForm }) => {\r\n checkApiPropTypes(\r\n { purchaseForm },\r\n UpdateFormResponse.propTypes,\r\n 'UpdateFormResponse'\r\n );\r\n this.setState(state => ({\r\n purchaseForm: Object.assign({}, state.purchaseForm, purchaseForm)\r\n }));\r\n });\r\n }\r\n };\r\n\r\n render() {\r\n return (\r\n \r\n \r\n
    \r\n {this.props.replacementProductBanner && (\r\n \r\n
    \r\n \r\n
    \r\n\r\n
    \r\n \r\n {this.props.replacementProductTitle}\r\n \r\n\r\n {this.props.productSellingPoints && (\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 {!this.props.replacementProductBanner && (\r\n
    \r\n
    \r\n \r\n
    \r\n\r\n
    \r\n \r\n
    \r\n\r\n {this.props.productSellingPoints && (\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 {this.state.productVariantText && (\r\n \r\n )}\r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default ContactLensHeader;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport ProductList from 'components/product-list';\r\nimport Text from 'components/text';\r\n\r\nconst ProductListBlock = ({ title, products, productListSize }) => {\r\n return (\r\n
    \r\n {title && (\r\n \r\n {title}\r\n \r\n )}\r\n {products && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nProductListBlock.propTypes = {\r\n products: PropTypes.exact(ProductList.propTypes),\r\n productListSize: PropTypes.any,\r\n title: PropTypes.string\r\n};\r\n\r\nProductListBlock.propTypesMeta = {\r\n productListSize: 'exclude'\r\n};\r\n\r\nexport default ProductListBlock;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\nimport useToggle from 'hooks/use-toggle';\r\n\r\nimport Collapse from 'react-tiny-collapse';\r\nimport Button from 'components/button';\r\n\r\nconst themes = {\r\n cyan: 'theme-cyan'\r\n};\r\n\r\nconst TeaserExpander = ({\r\n children,\r\n isCollapsable,\r\n showLessText,\r\n showMoreText,\r\n theme\r\n}) => {\r\n const [isActive, toggle] = useToggle(!isCollapsable);\r\n\r\n return (\r\n
    \r\n \r\n {children}\r\n \r\n\r\n {isCollapsable && (\r\n <>\r\n {!isActive && (\r\n
    \r\n )}\r\n\r\n \r\n \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nTeaserExpander.propTypes = {\r\n children: PropTypes.node,\r\n isCollapsable: PropTypes.bool,\r\n showLessText: PropTypes.string.isRequired,\r\n showMoreText: PropTypes.string.isRequired,\r\n theme: PropTypes.oneOf(Object.values(themes))\r\n};\r\n\r\nTeaserExpander.propTypesMeta = 'exclude';\r\n\r\nTeaserExpander.themes = themes;\r\n\r\nexport default TeaserExpander;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport RichText from 'components/rich-text';\r\n\r\nconst ProductText = ({ textHtml }) => (\r\n \r\n);\r\nProductText.propTypes = {\r\n textHtml: PropTypes.string\r\n};\r\n\r\nProductText.propTypesMeta = 'exclude';\r\n\r\nexport default ProductText;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport ContentContainer from 'components/content-container';\r\nimport ContactLensHeader from './contact-lens-header';\r\nimport Grid from 'components/grid';\r\nimport MainTitle from 'components/main-title';\r\nimport ProductListBlock from 'components/product-list-block';\r\nimport TeaserExpander from 'components/teaser-expander';\r\nimport Text from 'components/text';\r\nimport ProductText from 'components/product-text';\r\n\r\nconst ContactLensPage = ({\r\n contentTitle,\r\n header,\r\n productTextHtml,\r\n productInformation,\r\n productMetadata,\r\n relatedProducts,\r\n isCollapsable,\r\n showLessText,\r\n showMoreText,\r\n title\r\n}) => (\r\n
    \r\n \r\n \r\n\r\n \r\n {productTextHtml && }\r\n\r\n
    \r\n {contentTitle}\r\n\r\n \r\n \r\n {productInformation.length > 0 && (\r\n \r\n
    \r\n {productInformation.map(item => [\r\n \r\n {item.title}\r\n ,\r\n

    {item.text}

    \r\n ])}\r\n
    \r\n
    \r\n )}\r\n\r\n {productMetadata && (\r\n \r\n
    \r\n \r\n {productMetadata.title}\r\n \r\n \r\n \r\n {productMetadata.content.map(item => (\r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n
    {`${item.title}:`}{item.text}
    \r\n
    \r\n
    \r\n )}\r\n
    \r\n \r\n
    \r\n\r\n
    \r\n {relatedProducts && }\r\n
    \r\n
    \r\n
    \r\n);\r\n\r\nContactLensPage.propTypes = {\r\n contentTitle: PropTypes.string,\r\n header: PropTypes.exact(ContactLensHeader.propTypes),\r\n productTextHtml: PropTypes.string,\r\n productType: PropTypes.string,\r\n isCollapsable: PropTypes.bool,\r\n productInformation: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n title: PropTypes.string,\r\n text: PropTypes.string\r\n })\r\n ),\r\n productMetadata: PropTypes.exact({\r\n title: PropTypes.string,\r\n content: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n title: PropTypes.string,\r\n text: PropTypes.string\r\n })\r\n )\r\n }),\r\n relatedProducts: PropTypes.exact(ProductListBlock.propTypes),\r\n showLessText: PropTypes.string,\r\n showMoreText: PropTypes.string,\r\n title: PropTypes.string\r\n};\r\n\r\nContactLensPage.defaultProps = {\r\n productInformation: [],\r\n isCollapsable: true\r\n};\r\n\r\nexport default ContactLensPage;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport FluidImage from 'components/fluid-image';\r\nimport Link from 'components/link';\r\nimport OnPageEditing from 'components/on-page-editing';\r\nimport Text from 'components/text';\r\nimport BookingLink from 'components/booking-link';\r\n\r\nconst themes = {\r\n full: 'theme-full',\r\n small: 'theme-small',\r\n compact: 'theme-compact'\r\n};\r\n\r\nconst imageAlignments = {\r\n left: 'image-left',\r\n right: 'image-right'\r\n};\r\n\r\nconst colors = {\r\n cyan: 'color-cyan',\r\n gray: 'color-gray',\r\n transparent: 'color-transparent',\r\n orange: 'color-orange',\r\n cold: 'color-cold',\r\n clinical: 'color-clinical',\r\n blue: 'color-blue',\r\n nude: 'color-nude',\r\n mint: 'color-mint',\r\n purple: 'color-purple'\r\n};\r\n\r\nconst linkThemes = {\r\n 'color-cyan': [Link.themes.buttonGray],\r\n 'color-gray': [Link.themes.buttonCyan],\r\n 'color-transparent': [Link.themes.buttonCyan],\r\n 'color-orange': [Link.themes.buttonGray],\r\n 'color-cold': [Link.themes.buttonGray],\r\n 'color-clinical': [Link.themes.buttonGray],\r\n 'color-blue': [Link.themes.buttonGray],\r\n 'color-nude': [Link.themes.buttonGray],\r\n 'color-mint': [Link.themes.buttonGray],\r\n 'color-purple': [Link.themes.buttonGray]\r\n};\r\n\r\nconst getLinkThemes = (blockColor, index, listLength) =>\r\n index < listLength - 1\r\n ? linkThemes[blockColor] || [Link.themes.buttonGray]\r\n : [Link.themes.buttonWhite, Link.themes.arrowRight];\r\n\r\nconst CtaBlock = ({\r\n color,\r\n image,\r\n imageAlign,\r\n links,\r\n OPE,\r\n isFocusable,\r\n subtitle,\r\n text,\r\n theme,\r\n title,\r\n bookingLink,\r\n ctaType = 'cta-block'\r\n}) => {\r\n const tabIndex = isFocusable ? 0 : -1;\r\n\r\n return (\r\n \r\n
    \r\n \r\n \r\n {title}\r\n \r\n \r\n\r\n \r\n {subtitle && {subtitle}}\r\n \r\n\r\n \r\n {text && {text}}\r\n \r\n\r\n \r\n {(links.length > 0 || bookingLink) && (\r\n
      \r\n {links.map((link, index) => (\r\n
    • \r\n \r\n
    • \r\n ))}\r\n {bookingLink && bookingLink.text && (\r\n
    • \r\n \r\n
    • \r\n )}\r\n
    \r\n )}\r\n
    \r\n
    \r\n\r\n \r\n {image && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n
    \r\n );\r\n};\r\n\r\nCtaBlock.propTypes = {\r\n color: PropTypes.oneOf(Object.values(colors)),\r\n image: PropTypes.exact(FluidImage.propTypes),\r\n imageAlign: PropTypes.oneOf(Object.values(imageAlignments)),\r\n links: PropTypes.arrayOf(PropTypes.exact(Link.propTypes)),\r\n OPE: PropTypes.exact({\r\n image: PropTypes.string,\r\n links: PropTypes.string,\r\n subtitle: PropTypes.string,\r\n text: PropTypes.string,\r\n title: PropTypes.string\r\n }),\r\n subtitle: PropTypes.string,\r\n theme: PropTypes.oneOf(Object.values(themes)),\r\n text: PropTypes.string,\r\n title: PropTypes.string,\r\n isFocusable: PropTypes.bool,\r\n bookingLink: PropTypes.exact(BookingLink.propTypes),\r\n ctaType: PropTypes.string\r\n};\r\n\r\nCtaBlock.propTypesMeta = {\r\n isFocusable: 'exclude',\r\n ctaType: 'exclude'\r\n};\r\n\r\nCtaBlock.defaultProps = {\r\n links: [],\r\n OPE: {},\r\n theme: themes.full,\r\n color: colors.cyan,\r\n isFocusable: true\r\n};\r\n\r\nCtaBlock.themes = themes;\r\nCtaBlock.colors = colors;\r\n\r\nexport default CtaBlock;\r\n","/* eslint-disable react/no-multi-comp */\r\nimport React, { Fragment, useContext } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Carousel from 'components/carousel';\r\nimport CtaBlock from 'components/cta-block';\r\n\r\nimport CarouselContext from '../../contexts/carousel-context';\r\n\r\nconst BlockChild = ({ block, index }) => {\r\n const { currentSlideIndex } = useContext(CarouselContext);\r\n\r\n const isCurrent = currentSlideIndex === index;\r\n\r\n return ;\r\n};\r\n\r\nBlockChild.propTypes = {\r\n index: PropTypes.number,\r\n block: PropTypes.exact(CtaBlock.propTypes)\r\n};\r\n\r\nBlockChild.propTypesMeta = 'exclude';\r\n\r\nconst CtaCarousel = ({\r\n title,\r\n blocks,\r\n isAutoPlayEnabled,\r\n autoPlayDelayInSeconds,\r\n pauseItemText,\r\n playItemText,\r\n stopItemText,\r\n previousItemText,\r\n nextItemText,\r\n carouselLabelText,\r\n carouselAnnouncementText\r\n}) => {\r\n return (\r\n
    \r\n \r\n {blocks.map((block, index) => {\r\n return (\r\n \r\n \r\n \r\n );\r\n })}\r\n \r\n
    \r\n );\r\n};\r\n\r\nCtaCarousel.propTypes = {\r\n title: PropTypes.string,\r\n carouselLabelText: PropTypes.string.isRequired,\r\n previousItemText: PropTypes.string,\r\n nextItemText: PropTypes.string,\r\n pauseItemText: PropTypes.string,\r\n playItemText: PropTypes.string,\r\n stopItemText: PropTypes.string,\r\n carouselAnnouncementText: PropTypes.string,\r\n blocks: PropTypes.arrayOf(PropTypes.exact(CtaBlock.propTypes)),\r\n isAutoPlayEnabled: PropTypes.bool,\r\n autoPlayDelayInSeconds: PropTypes.number\r\n};\r\n\r\nCtaCarousel.propTypesMeta = {};\r\n\r\nCtaCarousel.defaultProps = {\r\n blocks: [],\r\n autoPlayDelayInSeconds: 0\r\n};\r\n\r\nexport default CtaCarousel;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Button from 'components/button';\r\nimport Link from 'components/link';\r\nimport TextInput from 'components/text-input';\r\n\r\nconst CustomerDataImportForm = ({\r\n endpoint,\r\n secondaryAction,\r\n submitLabel,\r\n textInput\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\nCustomerDataImportForm.propTypes = {\r\n endpoint: PropTypes.string,\r\n secondaryAction: PropTypes.exact(Link.propTypes),\r\n submitLabel: PropTypes.string,\r\n textInput: PropTypes.exact(TextInput.propTypes)\r\n};\r\n\r\nexport default CustomerDataImportForm;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Collapse from 'react-tiny-collapse';\r\n\r\nimport useIsMounted from 'hooks/use-is-mounted';\r\n\r\nimport Checkbox from 'components/checkbox';\r\nimport Link from '../link';\r\nimport TextInput from 'components/text-input';\r\nimport Text from 'components/text';\r\n\r\n/* eslint-disable react/no-multi-comp */\r\n// Utility function to make the render method more compact.\r\nconst getTextInput = (props, validation, type, autocomplete) =>\r\n props ? (\r\n \r\n ) : null;\r\n\r\nconst PersonalInformationForm = ({\r\n address,\r\n birthDate,\r\n birthDateLink,\r\n changeEmailLink,\r\n changePasswordLink,\r\n city,\r\n deliveryAddress,\r\n deliveryAddressTitle,\r\n deliveryCity,\r\n deliveryFirstName,\r\n deliveryLastName,\r\n deliveryPostalCode,\r\n email,\r\n firstName,\r\n lastName,\r\n password,\r\n phone,\r\n postalCode,\r\n registerAccount,\r\n separateDeliveryAddress,\r\n showDeliveryAddress,\r\n showDeliveryAddressCheckbox,\r\n title\r\n}) => {\r\n const isMounted = useIsMounted();\r\n\r\n const [showDelivery, setShowDelivery] = React.useState(showDeliveryAddress);\r\n\r\n const toggleSeparateDeliveryAddress = checked => {\r\n setShowDelivery(checked);\r\n };\r\n\r\n return (\r\n \r\n
    \r\n {title &&

    {title}

    }\r\n\r\n
    \r\n {getTextInput(email, ['isEmail'], 'email', 'email')}\r\n
    \r\n\r\n {(changeEmailLink || changePasswordLink) && (\r\n
    \r\n \r\n {changeEmailLink && }\r\n\r\n {changePasswordLink && }\r\n \r\n
    \r\n )}\r\n\r\n
    \r\n {getTextInput(password, [], 'password', 'new-password')}\r\n
    \r\n\r\n
    \r\n {getTextInput(firstName, [], '', 'given-name')}\r\n
    \r\n\r\n
    \r\n {getTextInput(lastName, [], '', 'family-name')}\r\n
    \r\n\r\n
    \r\n {getTextInput(phone, ['isPhoneNumber'], '', 'tel')}\r\n
    \r\n\r\n
    \r\n {getTextInput(address, [], '', 'street-address')}\r\n
    \r\n\r\n
    \r\n {getTextInput(postalCode, ['isPostalCode'], '', 'postal-code')}\r\n
    \r\n\r\n
    \r\n {getTextInput(city, [], '', '')}\r\n
    \r\n\r\n {separateDeliveryAddress && showDeliveryAddressCheckbox && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n\r\n {deliveryFirstName &&\r\n deliveryLastName &&\r\n deliveryAddress &&\r\n deliveryPostalCode && (\r\n
    \r\n \r\n
    \r\n

    {deliveryAddressTitle}

    \r\n\r\n
    \r\n {getTextInput(deliveryFirstName, [], '', 'given-name')}\r\n
    \r\n\r\n
    \r\n {getTextInput(deliveryLastName, [], '', 'family-name')}\r\n
    \r\n\r\n
    \r\n {getTextInput(deliveryAddress, [], '', 'street-address')}\r\n
    \r\n\r\n
    \r\n {getTextInput(\r\n deliveryPostalCode,\r\n ['isPostalCode'],\r\n '',\r\n 'postal-code'\r\n )}\r\n
    \r\n\r\n
    \r\n {getTextInput(deliveryCity, [], '', '')}\r\n
    \r\n
    \r\n \r\n
    \r\n )}\r\n\r\n
    \r\n
    \r\n {getTextInput(birthDate, ['isBirthDate'], '', '')}\r\n
    \r\n {birthDateLink && (\r\n \r\n \r\n \r\n )}\r\n
    \r\n\r\n {registerAccount && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nPersonalInformationForm.propTypes = {\r\n address: PropTypes.exact(TextInput.propTypes).isRequired,\r\n birthDate: PropTypes.exact(TextInput.propTypes).isRequired,\r\n birthDateLink: PropTypes.exact(Link.propTypes),\r\n changeEmailLink: PropTypes.exact(Link.propTypes),\r\n changePasswordLink: PropTypes.exact(Link.propTypes),\r\n city: PropTypes.exact(TextInput.propTypes),\r\n deliveryAddress: PropTypes.exact(TextInput.propTypes),\r\n deliveryAddressTitle: PropTypes.string,\r\n deliveryCity: PropTypes.exact(TextInput.propTypes),\r\n deliveryFirstName: PropTypes.exact(TextInput.propTypes),\r\n deliveryLastName: PropTypes.exact(TextInput.propTypes),\r\n deliveryPostalCode: PropTypes.exact(TextInput.propTypes),\r\n email: PropTypes.exact(TextInput.propTypes).isRequired,\r\n firstName: PropTypes.exact(TextInput.propTypes).isRequired,\r\n lastName: PropTypes.exact(TextInput.propTypes).isRequired,\r\n password: PropTypes.exact(TextInput.propTypes),\r\n phone: PropTypes.exact(TextInput.propTypes).isRequired,\r\n postalCode: PropTypes.exact(TextInput.propTypes).isRequired,\r\n registerAccount: PropTypes.exact(Checkbox.propTypes),\r\n separateDeliveryAddress: PropTypes.exact(Checkbox.propTypes),\r\n showDeliveryAddress: PropTypes.bool,\r\n showDeliveryAddressCheckbox: PropTypes.bool,\r\n title: PropTypes.string\r\n};\r\n\r\nPersonalInformationForm.propTypesMeta = {\r\n loginFormId: 'exclude',\r\n showDeliveryAddress: 'exclude',\r\n showDeliveryAddressCheckbox: 'exclude'\r\n};\r\n\r\nPersonalInformationForm.defaultProps = {\r\n onValidate: () => {},\r\n showDeliveryAddress: false,\r\n showDeliveryAddressCheckbox: true\r\n};\r\n\r\nexport default PersonalInformationForm;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Grid from 'components/grid';\r\nimport MyPageLayout from 'components/my-page-layout';\r\nimport MyPageSection from 'components/my-page-section';\r\nimport Form from 'components/form';\r\nimport PageSpinner from 'components/page-spinner';\r\nimport PersonalInformationForm from '../personal-information-form';\r\n\r\nconst PersonalInformationPage = ({\r\n form,\r\n formContent,\r\n layout,\r\n section,\r\n showDeliveryAddress\r\n}) => {\r\n return (\r\n \r\n \r\n \r\n \r\n
    \r\n {({ isLoading }) => (\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\nPersonalInformationPage.propTypes = {\r\n form: PropTypes.exact(Form.propTypes),\r\n formContent: PropTypes.exact(PersonalInformationForm.propTypes),\r\n layout: PropTypes.exact(MyPageLayout.propTypes),\r\n section: PropTypes.exact(MyPageSection.propTypes),\r\n showDeliveryAddress: PropTypes.bool\r\n};\r\n\r\nPersonalInformationPage.propTypesMeta = {\r\n showDeliveryAddress: 'exclude'\r\n};\r\n\r\nexport default PersonalInformationPage;\r\n","import React from 'react';\r\n\r\nimport PersonalInformationPage from 'components/personal-information-page';\r\n\r\nconst EditProfilePage = props => (\r\n \r\n);\r\n\r\nEditProfilePage.propTypes = PersonalInformationPage.propTypes;\r\n\r\nexport default EditProfilePage;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst EmailTemplateContent = ({\r\n expectedDeliveryDate,\r\n orderConfirmationLabel,\r\n orderNumber,\r\n orderDateLabel,\r\n orderDate,\r\n products,\r\n addressLabel,\r\n customerName,\r\n customerEmail,\r\n customerAddress,\r\n customerTelephoneNumber,\r\n quantityLabel,\r\n totalPriceLabel,\r\n unitPriceLabel\r\n}) => (\r\n
    \r\n

    \r\n {orderConfirmationLabel}: {orderNumber}\r\n

    \r\n

    \r\n {orderDateLabel}: {orderDate}\r\n

    \r\n
    \r\n

    \r\n {addressLabel}\r\n

    \r\n

    \r\n {customerAddress}\r\n

    \r\n

    \r\n {expectedDeliveryDate}\r\n

    \r\n

    {customerName}

    \r\n

    \r\n {customerTelephoneNumber}\r\n

    \r\n

    {customerEmail}

    \r\n
    \r\n
    \r\n
    \r\n {products.map(product => (\r\n
    \r\n \r\n

    {product.title}

    \r\n

    \r\n {product.details.map((detail, i) => (\r\n \r\n {detail.label}: {detail.data}\r\n {product.details.length - 1 > i ? (\r\n , \r\n ) : null}\r\n \r\n ))}\r\n

    \r\n
    \r\n

    \r\n {quantityLabel}: {product.quantity}\r\n

    \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n {unitPriceLabel}:\r\n {product.unitPrice.originalPrice}\r\n \r\n {' '}\r\n {totalPriceLabel}:{' '}\r\n {product.price.originalPrice}\r\n
    \r\n
    \r\n
    \r\n
    \r\n ))}\r\n
    \r\n
    \r\n);\r\n\r\nEmailTemplateContent.defaultProps = {\r\n products: []\r\n};\r\n\r\nEmailTemplateContent.propTypes = {\r\n expectedDeliveryDate: PropTypes.string,\r\n orderConfirmationLabel: PropTypes.string,\r\n orderNumber: PropTypes.string,\r\n orderDateLabel: PropTypes.string,\r\n addressLabel: PropTypes.string,\r\n orderDate: PropTypes.string,\r\n customerName: PropTypes.string,\r\n customerAddress: PropTypes.string,\r\n customerEmail: PropTypes.string,\r\n customerTelephoneNumber: PropTypes.string,\r\n products: PropTypes.arrayOf(\r\n PropTypes.shape({\r\n details: PropTypes.arrayOf(\r\n PropTypes.shape({ label: PropTypes.string, data: PropTypes.string })\r\n ),\r\n image: PropTypes.object,\r\n price: PropTypes.shape({\r\n originalPrice: PropTypes.string\r\n }),\r\n id: PropTypes.string,\r\n productUrl: PropTypes.string,\r\n quantity: PropTypes.number,\r\n title: PropTypes.string,\r\n unitPrice: PropTypes.shape({\r\n originalPrice: PropTypes.string\r\n })\r\n })\r\n ),\r\n quantityLabel: PropTypes.string,\r\n totalPriceLabel: PropTypes.string,\r\n unitPriceLabel: PropTypes.string\r\n};\r\n\r\nEmailTemplateContent.propTypesMeta = 'exclude';\r\n\r\nexport default EmailTemplateContent;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Image from '../image';\r\n\r\nconst EmailTemplateHeader = ({ title, logo, text }) => (\r\n
    \r\n \r\n
    \r\n

    {title}

    \r\n

    {text}

    \r\n
    \r\n);\r\n\r\nEmailTemplateHeader.propTypes = {\r\n title: PropTypes.string,\r\n logo: PropTypes.object,\r\n text: PropTypes.string\r\n};\r\n\r\nEmailTemplateHeader.propTypesMeta = 'exclude';\r\n\r\nexport default EmailTemplateHeader;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst EmailTemplateSummary = ({\r\n discount,\r\n discountLabel,\r\n reorderLink,\r\n shippingLabel,\r\n paymentMethodLabel,\r\n paymentMethod,\r\n shippingCost,\r\n totalPriceLabel,\r\n totalPrice\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
    {discountLabel}: {discount}
    {shippingLabel}: {shippingCost}
    \r\n {totalPriceLabel}:\r\n \r\n \r\n {totalPrice}\r\n \r\n
    \r\n

    \r\n {paymentMethodLabel}: {paymentMethod}\r\n

    \r\n \r\n
    \r\n
    \r\n);\r\n\r\nEmailTemplateSummary.propTypes = {\r\n discount: PropTypes.string,\r\n discountLabel: PropTypes.string,\r\n reorderLink: PropTypes.object,\r\n paymentMethodLabel: PropTypes.string,\r\n paymentMethod: PropTypes.string,\r\n shippingLabel: PropTypes.string,\r\n shippingCost: PropTypes.string,\r\n totalPriceLabel: PropTypes.string,\r\n totalPrice: PropTypes.string\r\n};\r\n\r\nEmailTemplateSummary.propTypesMeta = 'exclude';\r\n\r\nexport default EmailTemplateSummary;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport EmailTemplateContent from './email-template-content';\r\nimport EmailTemplateHeader from './email-template-header';\r\nimport EmailTemplateSummary from './email-template-summary';\r\n\r\nimport css from './email-template.css';\r\n\r\nconst EmailTemplate = ({\r\n addressLabel,\r\n address,\r\n cart,\r\n customer,\r\n email,\r\n expectedDeliveryDate,\r\n logo,\r\n title,\r\n orderConfirmationLabel,\r\n orderDetails,\r\n orderDate,\r\n orderDateLabel,\r\n orderNumber,\r\n paymentMethodLabel,\r\n paymentMethod,\r\n phone,\r\n reorderLink,\r\n text\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\nEmailTemplate.propTypes = {\r\n addressLabel: PropTypes.string,\r\n address: PropTypes.string,\r\n cart: PropTypes.object,\r\n customerLabel: PropTypes.string,\r\n customer: PropTypes.string,\r\n email: PropTypes.string,\r\n expectedDeliveryDate: PropTypes.string,\r\n logo: PropTypes.object,\r\n title: PropTypes.string,\r\n orderConfirmationLabel: PropTypes.string,\r\n orderDetails: PropTypes.array,\r\n orderDate: PropTypes.string,\r\n orderDateLabel: PropTypes.string,\r\n orderNumber: PropTypes.string,\r\n paymentMethodLabel: PropTypes.string,\r\n paymentMethod: PropTypes.string,\r\n phone: PropTypes.string,\r\n reorderLink: PropTypes.object,\r\n text: PropTypes.string\r\n};\r\n\r\nEmailTemplate.propTypesMeta = 'exclude';\r\n\r\nexport default EmailTemplate;\r\n","export default \".email-template td {\\r\\n padding: 0;\\r\\n}\\r\\n\\r\\n.email-template {\\r\\n padding: 20px 0;\\r\\n max-width: 600px;\\r\\n margin: 0 auto;\\r\\n font-family: Verdana, sans-serif;\\r\\n color: #4a4a4a;\\r\\n text-align: left;\\r\\n}\\r\\n\\r\\n.email-template-wrapper {\\r\\n width: 100%;\\r\\n}\\r\\n\\r\\n.email-template a {\\r\\n color: #136e3e;\\r\\n}\\r\\n\\r\\n.email-template-header p {\\r\\n font-size: 1em;\\r\\n line-height: 1.4;\\r\\n}\\r\\n\\r\\n.email-template-header img {\\r\\n max-width: 200px;\\r\\n margin: 0 auto 20px auto;\\r\\n}\\r\\n\\r\\n.email-template-header h1 {\\r\\n margin-top: 1em;\\r\\n font-size: 1.5em;\\r\\n}\\r\\n\\r\\n.email-template-content {\\r\\n margin-top: 20px;\\r\\n}\\r\\n\\r\\n.email-template-content p {\\r\\n margin: 0;\\r\\n}\\r\\n\\r\\n.email-template-content-delivery {\\r\\n margin-top: 30px;\\r\\n}\\r\\n\\r\\np.email-template-content-delivery-date {\\r\\n margin-bottom: 20px;\\r\\n}\\r\\n\\r\\n.email-template-product {\\r\\n margin-top: 30px;\\r\\n}\\r\\n\\r\\n.email-template-product img {\\r\\n max-width: 250px;\\r\\n}\\r\\n\\r\\n.email-template-product h2 {\\r\\n margin-bottom: 0;\\r\\n}\\r\\n\\r\\n.email-template-product-details {\\r\\n color: #868686;\\r\\n font-size: 14px;\\r\\n}\\r\\n\\r\\n.email-template-price {\\r\\n margin: 30px 0;\\r\\n}\\r\\n\\r\\n.email-template-price p {\\r\\n margin-top: 0;\\r\\n}\\r\\n\\r\\n.email-template-unit-total {\\r\\n text-align: right;\\r\\n margin: 0;\\r\\n}\\r\\n\\r\\n.email-template-summary-price p {\\r\\n margin: 0;\\r\\n}\\r\\n\\r\\n.email-template-summary-price span {\\r\\n font-size: 20px;\\r\\n}\\r\\n\\r\\n.email-template-summary-reorder {\\r\\n margin-top: 40px;\\r\\n}\\r\\n\\r\\np.email-template-summary-payment-method {\\r\\n margin-top: 10px;\\r\\n}\\r\\n\\r\\n.email-template-summary-price td {\\r\\n border-bottom: 1px solid #949494;\\r\\n line-height: 2;\\r\\n}\\r\\n\\r\\n.email-template-delivery-information,\\r\\n.email-template-payment-informastion {\\r\\n margin-top: 40px;\\r\\n}\\r\\n\\r\\n.email-template-product-list {\\r\\n margin: 30px 0;\\r\\n}\\r\\n\"","export default {\r\n width: '100%',\r\n height: '100%',\r\n modestbranding: 1,\r\n showinfo: 0,\r\n controls: true,\r\n rel: 0,\r\n playing: false\r\n};\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport YouTubePlayer from 'react-player/lib/players/YouTube';\r\nimport config from './youtube-config';\r\n\r\nimport OnPageEditing from '../on-page-editing';\r\n\r\nconst EmbedVideo = ({ OPE, url }) => {\r\n return (\r\n
    \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nEmbedVideo.propTypes = {\r\n OPE: PropTypes.exact({\r\n url: PropTypes.string\r\n }),\r\n url: PropTypes.string.isRequired\r\n};\r\n\r\nEmbedVideo.defaultProps = {\r\n OPE: {}\r\n};\r\n\r\nexport default EmbedVideo;\r\n","import React from 'react';\r\n\r\nconst Error404Svg = () => (\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\nError404Svg.propTypesMeta = 'exclude';\r\n\r\nexport default Error404Svg;\r\n","import React from 'react';\r\n\r\nconst Error500Svg = () => (\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\nError500Svg.propTypesMeta = 'exclude';\r\n\r\nexport default Error500Svg;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Error404Svg from './error-404-svg';\r\nimport Error500Svg from './error-500-svg';\r\nimport Icon from 'components/icon';\r\n\r\nimport css from './error-page.css';\r\n\r\nconst ErrorPage = ({ linkUrl, linkText, text, title, isServerError }) => (\r\n \r\n \r\n
    \r\n
    \r\n {isServerError ? : }\r\n
    \r\n {title &&

    {title}

    }\r\n {text &&

    {text}

    }\r\n {linkUrl && (\r\n \r\n {linkText || linkUrl}\r\n \r\n \r\n )}\r\n
    \r\n
    \r\n);\r\n\r\nErrorPage.propTypesMeta = {\r\n isServerError: 'exclude'\r\n};\r\n\r\nErrorPage.propTypes = {\r\n linkUrl: PropTypes.string,\r\n isServerError: PropTypes.bool,\r\n linkText: PropTypes.string,\r\n text: PropTypes.string,\r\n title: PropTypes.string\r\n};\r\n\r\nexport default ErrorPage;\r\n","export default \".error-page {\\r\\n font-family: Verdana, sans-serif;\\r\\n display: flex;\\r\\n flex-direction: column;\\r\\n align-items: center;\\r\\n justify-content: center;\\r\\n padding: 120px 20px;\\r\\n background-color: #eef6f5;\\r\\n box-sizing: border-box;\\r\\n}\\r\\n\\r\\n.error-page h1 {\\r\\n margin-top: 0;\\r\\n margin-bottom: 10px;\\r\\n text-align: center;\\r\\n font-size: 20px;\\r\\n}\\r\\n\\r\\n.error-page p {\\r\\n font-size: 1em;\\r\\n margin-top: 0;\\r\\n}\\r\\n\\r\\n.error-page-image {\\r\\n width: auto;\\r\\n margin-bottom: 40px;\\r\\n}\\r\\n\\r\\n.error-page a {\\r\\n margin-top: 20px;\\r\\n display: flex;\\r\\n align-items: center;\\r\\n background-color: white;\\r\\n padding: 0.5rem 1rem;\\r\\n color: black;\\r\\n text-decoration: none;\\r\\n text-transform: uppercase;\\r\\n font-size: 0.9rem;\\r\\n}\\r\\n\\r\\n.error-page a :hover {\\r\\n text-decoration: underline;\\r\\n}\\r\\n\\r\\n.error-page a svg {\\r\\n margin-left: 10px;\\r\\n color: #d44218;\\r\\n}\\r\\n\"","import googleMapsLoader from 'js/google-maps-loader';\r\nimport getPlaceMatches from './get-place-matches';\r\n\r\nconst removeDuplicates = arr =>\r\n arr.reduce(\r\n (accum, value) => (accum.includes(value) ? accum : accum.concat(value)),\r\n []\r\n );\r\n\r\n// Returns a filter function that takes a search term and a search callback\r\nexport default function(APIKey, stores) {\r\n return new Promise(resolve => {\r\n googleMapsLoader(APIKey).then(google => {\r\n const geocoder = new google.maps.Geocoder();\r\n\r\n // Return filter function\r\n resolve(searchTerm => {\r\n return new Promise(resolve => {\r\n if (!searchTerm) {\r\n resolve(stores);\r\n return;\r\n }\r\n\r\n const nameMatches = stores.filter(({ name }) =>\r\n name.toLowerCase().includes(searchTerm.toLowerCase())\r\n );\r\n\r\n geocoder.geocode(\r\n { address: searchTerm, componentRestrictions: { country: 'NO' } },\r\n data => {\r\n const googleMatches = getPlaceMatches(google, stores, data);\r\n\r\n const allMatches = removeDuplicates(\r\n [].concat(nameMatches, googleMatches)\r\n );\r\n\r\n return resolve(allMatches);\r\n }\r\n );\r\n });\r\n });\r\n });\r\n });\r\n}\r\n","import get from 'lodash/get';\r\n\r\nexport default (google, stores, googlePlacesData) => {\r\n // No matches\r\n if (!googlePlacesData || googlePlacesData.length === 0) {\r\n return [];\r\n }\r\n\r\n const result = googlePlacesData[0];\r\n const addressComponents = get(result, 'address_components', []);\r\n const bounds = result.geometry.bounds || result.geometry.viewport;\r\n const location = result.geometry.location;\r\n\r\n if (!isValidResult(addressComponents)) {\r\n return [];\r\n }\r\n\r\n // Attempt to find a store in the bounds provided by google\r\n if (bounds) {\r\n const storesInBounds = stores.filter(store =>\r\n bounds.contains(new google.maps.LatLng(store.lat, store.lng))\r\n );\r\n\r\n if (storesInBounds.length) {\r\n return storesInBounds;\r\n }\r\n }\r\n\r\n // If no match was found within bounds, try to find a match in a larger area around the match\r\n const nearbyStores = stores.filter(\r\n ({ lat, lng }) =>\r\n getDistance(google, new google.maps.LatLng(lat, lng), location) < 5000 // look within 5km\r\n );\r\n\r\n if (nearbyStores.length) {\r\n return nearbyStores;\r\n }\r\n\r\n // If no match was dound within or near bounds, try to find a match to one of the address components\r\n const storesByAddress = filterByAddressComponents(stores, addressComponents);\r\n\r\n if (storesByAddress.length) {\r\n return storesByAddress;\r\n }\r\n\r\n return [];\r\n};\r\n\r\n// Google, being helpful, will always return a match. If no useful match is found, there will be one match, matching the entire country. This function checks whether this has happened in order to detect cases where no match is found\r\nfunction isValidResult(addressComponents) {\r\n return addressComponents.length === 1 &&\r\n addressComponents[0].types.includes('country')\r\n ? false\r\n : true;\r\n}\r\n\r\nfunction getDistance(google, p1, p2) {\r\n return google.maps.geometry.spherical.computeDistanceBetween(p1, p2);\r\n}\r\n\r\nfunction filterByAddressComponents(stores, addressComponents) {\r\n // Convert google maps address_components (array of objects) into an array of strings\r\n const addressMatches = addressComponents\r\n .reduce((accum, component) => accum.concat(component['long_name']), [])\r\n .filter(str => str); // Remove any undefined values\r\n\r\n return stores.filter(({ postPlace, postCode, county }) => {\r\n // Include store in search result if one or more of the address components match postPlace, postCode or county\r\n return addressMatches.some(match =>\r\n [postPlace, postCode, county].includes(match)\r\n );\r\n });\r\n}\r\n","import PropTypes from 'prop-types';\r\n\r\nimport RichText from 'components/rich-text';\r\n\r\n// NOTE: This propType definition is shared between several components, including `find-store.jsx`, `store-list.jsx` and `store-map.jsx` in order to not duplicate a lot of data.\r\nconst Store = {};\r\nStore.propTypes = {\r\n name: PropTypes.string,\r\n lat: PropTypes.number,\r\n lng: PropTypes.number,\r\n address: PropTypes.string,\r\n phone: PropTypes.string,\r\n email: PropTypes.string,\r\n url: PropTypes.string,\r\n postPlace: PropTypes.string,\r\n postCode: PropTypes.string,\r\n county: PropTypes.string,\r\n openingHours: PropTypes.exact(RichText.propTypes),\r\n shopId: PropTypes.string,\r\n productInStock: PropTypes.bool\r\n};\r\n\r\nStore.propTypesMeta = {\r\n lat: 'float',\r\n lng: 'float'\r\n};\r\n\r\nexport default Store;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport debounce from 'lodash/debounce';\r\n\r\nimport getFilter from './filter-stores';\r\n\r\nimport Search from '../search';\r\nimport Store from './store';\r\n\r\nclass FindStore extends React.Component {\r\n static propTypes = {\r\n children: PropTypes.func,\r\n className: PropTypes.string,\r\n wrapperClassName: PropTypes.string,\r\n searchClassName: PropTypes.string,\r\n googleMapsAPIKey: PropTypes.string,\r\n search: PropTypes.exact(Search.propTypes),\r\n stores: PropTypes.arrayOf(PropTypes.exact(Store.propTypes)),\r\n textInputTheme: PropTypes.any,\r\n updateOnChange: PropTypes.bool,\r\n heading: PropTypes.string\r\n };\r\n\r\n static propTypesMeta = {\r\n className: 'exclude',\r\n wrapperClassName: 'exclude',\r\n searchClassName: 'exclude',\r\n textInputTheme: 'exclude',\r\n updateOnChange: 'exclude',\r\n heading: 'exclude'\r\n };\r\n\r\n static defaultProps = {\r\n search: {},\r\n stores: []\r\n };\r\n\r\n state = {\r\n isLoading: false,\r\n searchTerm: '',\r\n stores: this.props.stores\r\n };\r\n\r\n defaultStores = this.props.stores;\r\n\r\n doSubmit = () => {\r\n this.setState({ isLoading: true }, () => {\r\n this.filter(this.state.searchTerm)\r\n .then(stores => {\r\n this.setState({\r\n isLoading: false,\r\n stores\r\n });\r\n })\r\n .catch(() => {\r\n this.setState({ isLoading: false });\r\n });\r\n });\r\n };\r\n\r\n debouncedSubmit = debounce(this.doSubmit, 500, { leading: true });\r\n\r\n onSearchInput = searchTerm => {\r\n const shouldDoLiveSearch =\r\n this.props.updateOnChange && searchTerm.length >= 2;\r\n\r\n this.setState({ searchTerm });\r\n\r\n // If the input had a value but is now empty, run doSubmit in order to reset the stores list\r\n if (shouldDoLiveSearch) {\r\n this.debouncedSubmit(searchTerm);\r\n }\r\n\r\n if (!searchTerm) {\r\n this.setState({ stores: this.defaultStores });\r\n }\r\n };\r\n\r\n onSearch = e => {\r\n e.preventDefault();\r\n this.doSubmit();\r\n };\r\n\r\n componentDidMount() {\r\n getFilter(this.props.googleMapsAPIKey, this.props.stores).then(filter => {\r\n this.filter = filter;\r\n });\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n
    \r\n {this.props.heading && (\r\n \r\n {this.props.heading}\r\n \r\n )}\r\n
    \r\n \r\n \r\n
    \r\n {this.props.children({\r\n apiKey: this.props.googleMapsAPIKey,\r\n isLoading: this.state.isLoading,\r\n searchTerm: this.state.searchTerm,\r\n stores: this.state.stores\r\n })}\r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default FindStore;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport FindStore from '../find-store';\r\nimport Icon from '../icon';\r\nimport Link from '../link';\r\nimport Text from 'components/text';\r\nimport TextInput from 'components/text-input';\r\n\r\nclass FindStoreBlock extends React.Component {\r\n static propTypes = {\r\n findStore: PropTypes.exact(FindStore.propTypes),\r\n noResultsText: PropTypes.string,\r\n title: PropTypes.string\r\n };\r\n\r\n state = {\r\n resultsVisible: false\r\n };\r\n\r\n onInteract = e => {\r\n if (!this.searchWrapper || !this.searchWrapper.contains) {\r\n return;\r\n }\r\n\r\n this.setState({\r\n resultsVisible: this.searchWrapper.contains(e.target)\r\n });\r\n };\r\n\r\n componentDidMount() {\r\n window.addEventListener('focusin', this.onInteract);\r\n window.addEventListener('click', this.onInteract);\r\n }\r\n\r\n componentWillUnmount() {\r\n window.addEventListener('focusin', this.onInteract);\r\n window.removeEventListener('click', this.onInteract);\r\n }\r\n\r\n render() {\r\n return (\r\n
    \r\n \r\n {this.props.title}\r\n (this.searchWrapper = div)}\r\n >\r\n
    \r\n \r\n
    \r\n \r\n {({ isLoading, searchTerm, stores }) =>\r\n this.state.resultsVisible &&\r\n !isLoading &&\r\n searchTerm &&\r\n searchTerm.length >= 2 ? (\r\n
      \r\n {stores.length > 0 ? (\r\n stores.map(store => (\r\n
    • \r\n \r\n
    • \r\n ))\r\n ) : (\r\n
    • {this.props.noResultsText}
    • \r\n )}\r\n
    \r\n ) : null\r\n }\r\n \r\n
    \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default FindStoreBlock;\r\n","import React from 'react';\r\n\r\nimport Link from 'components/link';\r\nimport RichText from 'components/rich-text';\r\nimport Store from 'components/find-store/store';\r\n\r\n// NOTE: This component inherits propTypes from 'components/find-store/store.jsx'.\r\n/* eslint-disable react/prop-types */\r\nconst MapPopup = ({\r\n name,\r\n address,\r\n phone,\r\n email,\r\n url,\r\n openingHours,\r\n postPlace,\r\n postCode\r\n}) => (\r\n
    \r\n \r\n

    {address}

    \r\n

    {`${postCode} ${postPlace}`}

    \r\n\r\n \r\n\r\n
    \r\n \r\n \r\n
    \r\n
    \r\n);\r\n\r\nMapPopup.propTypes = Store.propTypes;\r\n\r\nexport default MapPopup;\r\n","import PropTypes from 'prop-types';\r\n\r\nconst MapMarker = () => {};\r\n\r\nMapMarker.propTypes = {\r\n url: PropTypes.string.isRequired,\r\n size: PropTypes.shape({\r\n width: PropTypes.number.isRequired,\r\n height: PropTypes.number.isRequired\r\n }).isRequired\r\n};\r\n\r\nexport default MapMarker;\r\n","import React from 'react';\r\nimport ReactDOMServer from 'react-dom/server';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\n\r\nimport googleMapsLoader from 'js/google-maps-loader';\r\n\r\nimport MapPopup from './map-popup';\r\nimport MapMarker from './map-marker';\r\nimport Link from '../link';\r\nimport Store from 'components/find-store/store';\r\n\r\nclass StoreMap extends React.Component {\r\n static propTypes = {\r\n googleMapsAPIKey: PropTypes.string,\r\n mapMarker: PropTypes.exact(MapMarker.propTypes),\r\n stores: PropTypes.arrayOf(PropTypes.exact(Store.propTypes)),\r\n mobileLink: PropTypes.exact(Link.propTypes),\r\n mobileViewIsLink: PropTypes.bool\r\n };\r\n\r\n static propTypesMeta = {\r\n mobileViewIsLink: 'exclude'\r\n };\r\n\r\n state = {};\r\n\r\n google = null;\r\n map = null;\r\n\r\n getBounds = stores => {\r\n const google = this.google;\r\n const bounds = new google.maps.LatLngBounds();\r\n\r\n //loop through all markers and create bounds\r\n if (stores && stores.length) {\r\n stores.forEach(store => {\r\n bounds.extend(new google.maps.LatLng(store.lat, store.lng));\r\n });\r\n }\r\n\r\n return bounds;\r\n };\r\n\r\n fitMapToStores = stores => {\r\n const bounds = this.getBounds(stores);\r\n // only 1 marker?\r\n if (stores.length === 1) {\r\n this.map.setCenter(bounds.getCenter());\r\n this.map.setZoom(16);\r\n } else {\r\n // fit to bounds\r\n this.map.fitBounds(bounds);\r\n }\r\n };\r\n\r\n componentDidMount() {\r\n googleMapsLoader(this.props.googleMapsAPIKey).then(google => {\r\n this.google = google;\r\n this.map = new google.maps.Map(this.wrapper);\r\n\r\n this.fitMapToStores(this.props.stores);\r\n\r\n const popupsAndMarkers = this.props.stores.map(store => {\r\n return {\r\n popup: new google.maps.InfoWindow({\r\n content: ReactDOMServer.renderToString()\r\n }),\r\n marker: new google.maps.Marker({\r\n position: { lat: store.lat, lng: store.lng },\r\n icon: {\r\n ...this.props.mapMarker,\r\n scaledSize: {\r\n ...this.props.mapMarker.size // we use the same width/height parameters in scaledSize\r\n }\r\n },\r\n title: store.name,\r\n map: this.map\r\n })\r\n };\r\n });\r\n\r\n popupsAndMarkers.forEach(({ popup, marker }) => {\r\n marker.addListener('click', () => {\r\n popupsAndMarkers.forEach(({ popup }) => popup.close());\r\n popup.open(this.map, marker);\r\n });\r\n });\r\n });\r\n }\r\n\r\n componentDidUpdate(prevProps) {\r\n if (prevProps.stores !== this.props.stores) {\r\n this.fitMapToStores(this.props.stores);\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n
    (this.wrapper = div)} />\r\n {this.props.mobileViewIsLink && this.props.mobileLink && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default StoreMap;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Icon from '../icon';\r\nimport Link from '../link';\r\nimport RichText from 'components/rich-text';\r\nimport Store from 'components/find-store/store';\r\n\r\nconst StoresList = ({ storeLabels, stores }) => {\r\n const { name, address, hours, phone, email } = storeLabels;\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {stores.map(store => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n
    {name}{address}{hours}{phone}{email}\r\n
    \r\n \r\n {store.address}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nStoresList.propTypes = {\r\n storeLabels: PropTypes.shape({\r\n name: PropTypes.string,\r\n address: PropTypes.string,\r\n hours: PropTypes.string,\r\n phone: PropTypes.string,\r\n email: PropTypes.string\r\n }),\r\n stores: PropTypes.arrayOf(PropTypes.exact(Store.propTypes))\r\n};\r\n\r\nStoresList.propTypesMeta = {\r\n stores: 'exclude' // NOTE: stores are provided by FindStorePage\r\n};\r\n\r\nStoresList.defaultProps = {\r\n stores: [],\r\n storeLabels: {}\r\n};\r\n\r\nexport default StoresList;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport ContentContainer from '../content-container';\r\nimport FindStore from '../find-store';\r\nimport StoreMap from '../store-map';\r\nimport MapMarker from '../store-map/map-marker';\r\nimport PageSpinner from '../page-spinner';\r\nimport StoresList from './stores-list';\r\n\r\nconst FindStorePage = ({\r\n findStore,\r\n title,\r\n ingress,\r\n list,\r\n mapMarker,\r\n noResultsText\r\n}) => {\r\n return (\r\n \r\n

    {title}

    \r\n

    {ingress}

    \r\n\r\n \r\n {({ apiKey, isLoading, stores }) => (\r\n \r\n \r\n\r\n {stores.length > 0 ? (\r\n \r\n
    \r\n \r\n
    \r\n\r\n
    \r\n \r\n
    \r\n
    \r\n ) : (\r\n
    {noResultsText}
    \r\n )}\r\n
    \r\n )}\r\n
    \r\n
    \r\n );\r\n};\r\n\r\nFindStorePage.propTypes = {\r\n findStore: PropTypes.exact(FindStore.propTypes),\r\n title: PropTypes.string,\r\n ingress: PropTypes.string,\r\n list: PropTypes.exact(StoresList.propTypes),\r\n mapMarker: PropTypes.exact(MapMarker.propTypes),\r\n noResultsText: PropTypes.string\r\n};\r\n\r\nFindStorePage.defaultProps = {\r\n noResultsText: 'Vi fant dessverre ingen butikker.'\r\n};\r\n\r\nexport default FindStorePage;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Image from 'components/image';\r\nimport Text from 'components/text';\r\n\r\nconst FooterImageList = ({ title, images }) => (\r\n
    \r\n {title}\r\n
      \r\n {images.map(image => (\r\n
    • \r\n \r\n
    • \r\n ))}\r\n
    \r\n
    \r\n);\r\n\r\nFooterImageList.propTypes = {\r\n title: PropTypes.string,\r\n images: PropTypes.arrayOf(PropTypes.exact(Image.propTypes))\r\n};\r\n\r\nFooterImageList.defaultProps = {\r\n images: []\r\n};\r\n\r\nexport default FooterImageList;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Link from '../link';\r\n\r\nconst FooterLinkList = ({ id, links }) => (\r\n
    \r\n
      \r\n {links.map(link => (\r\n
    • \r\n \r\n
    • \r\n ))}\r\n
    \r\n
    \r\n);\r\n\r\nFooterLinkList.defaultProps = {\r\n linkList: []\r\n};\r\n\r\nFooterLinkList.propTypes = {\r\n id: PropTypes.string,\r\n links: PropTypes.arrayOf(PropTypes.exact(Link.propTypes))\r\n};\r\n\r\nexport default FooterLinkList;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Button from 'components/button';\r\nimport Form from 'components/form';\r\nimport TextInput from 'components/text-input';\r\nimport Link from 'components/link';\r\nimport cn from 'classnames';\r\n\r\nconst colors = {\r\n cyan: 'cyan',\r\n gray: 'gray',\r\n orange: 'orange',\r\n cold: 'cold',\r\n clinical: 'clinical',\r\n blue: 'blue',\r\n nude: 'nude',\r\n mint: 'mint',\r\n purple: 'purple'\r\n};\r\n\r\nconst NewsletterForm = ({ endpoint, submitLabel, input, termsLink, color }) => (\r\n \r\n
    \r\n
    \r\n \r\n
    \r\n \r\n {submitLabel}\r\n \r\n
    \r\n
    \r\n
    \r\n\r\n {termsLink && (\r\n \r\n )}\r\n \r\n);\r\n\r\nNewsletterForm.propTypes = {\r\n input: PropTypes.exact(TextInput.propTypes),\r\n endpoint: PropTypes.string,\r\n submitLabel: PropTypes.string,\r\n termsLink: PropTypes.exact(Link.propTypes),\r\n color: PropTypes.oneOf(Object.values(colors))\r\n};\r\n\r\nNewsletterForm.propTypesMeta = {\r\n color: 'exclude'\r\n};\r\n\r\nexport default NewsletterForm;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Image from 'components/image';\r\nimport Link from 'components/link';\r\nimport Text from 'components/text';\r\n\r\nconst FooterSocialMedia = ({ title, links }) => (\r\n
    \r\n {title}\r\n
      \r\n {links.map(({ image, link }) => (\r\n
    • \r\n \r\n \r\n \r\n
    • \r\n ))}\r\n
    \r\n
    \r\n);\r\n\r\nFooterSocialMedia.defaultProps = {\r\n links: []\r\n};\r\n\r\nFooterSocialMedia.propTypes = {\r\n title: PropTypes.string,\r\n links: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n link: PropTypes.exact(Link.propTypes),\r\n image: PropTypes.exact(Image.propTypes)\r\n })\r\n )\r\n};\r\n\r\nexport default FooterSocialMedia;\r\n","/* eslint-disable react/no-multi-comp */\r\n\r\nimport React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport ContentContainer from '../content-container';\r\nimport FooterImageList from './footer-image-list';\r\nimport FooterLinkList from './footer-link-list';\r\nimport NewsletterForm from 'components/newsletter-form';\r\n\r\nimport FooterSocialMedia from './footer-social-media';\r\nimport Image from '../image';\r\nimport Link from '../link';\r\nimport Text from 'components/text';\r\n\r\nconst Row = ({ children }) =>
    {children}
    ;\r\nRow.propTypes = { children: PropTypes.node };\r\n\r\nconst Column = ({ children }) => (\r\n
    {children}
    \r\n);\r\nColumn.propTypes = { children: PropTypes.node };\r\n\r\nconst Footer = ({\r\n imageLists,\r\n linkLists,\r\n mainLinks,\r\n newsLetterForm,\r\n secondaryLinks,\r\n socialMedia,\r\n text1,\r\n text2\r\n}) => (\r\n
    \r\n
    \r\n \r\n \r\n {mainLinks.map(({ link, image }) => (\r\n \r\n
    \r\n \r\n \r\n
    \r\n
    \r\n ))}\r\n
    \r\n\r\n \r\n {linkLists.map(linkList => (\r\n \r\n \r\n \r\n ))}\r\n \r\n\r\n \r\n {secondaryLinks.map(link => (\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 {imageLists.map(list => (\r\n \r\n ))}\r\n\r\n \r\n
    \r\n\r\n
    \r\n {text1 && {text1}}\r\n {text2 && {text2}}\r\n
    \r\n
    \r\n
    \r\n
    \r\n);\r\n\r\nFooter.propTypes = {\r\n imageLists: PropTypes.arrayOf(PropTypes.exact(FooterImageList.propTypes)),\r\n linkLists: PropTypes.arrayOf(PropTypes.exact(FooterLinkList.propTypes)),\r\n mainLinks: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n image: PropTypes.exact(Image.propTypes),\r\n link: PropTypes.exact(Link.propTypes)\r\n })\r\n ),\r\n newsLetterForm: PropTypes.exact(NewsletterForm.propTypes),\r\n secondaryLinks: PropTypes.arrayOf(PropTypes.exact(Link.propTypes)),\r\n socialMedia: PropTypes.exact(FooterSocialMedia.propTypes),\r\n text1: PropTypes.string,\r\n text2: PropTypes.string\r\n};\r\n\r\nFooter.defaultProps = {\r\n imageLists: [],\r\n linkLists: [],\r\n mainLinks: [],\r\n secondaryLinks: []\r\n};\r\n\r\nexport default Footer;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Grid from 'components/grid';\r\nimport TextInput from 'components/text-input';\r\nimport Form from 'components/form';\r\nimport MyPageLayout from 'components/my-page-layout';\r\nimport MyPageSection from 'components/my-page-section';\r\nimport PageSpinner from 'components/page-spinner';\r\n\r\nconst ForgotPasswordPage = ({ form, email, layout, section }) => {\r\n return (\r\n \r\n \r\n \r\n \r\n
    \r\n {({ isLoading }) => (\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\nForgotPasswordPage.propTypes = {\r\n form: PropTypes.exact(Form.propTypes),\r\n email: PropTypes.exact(TextInput.propTypes),\r\n layout: PropTypes.exact(MyPageLayout.propTypes),\r\n section: PropTypes.exact(MyPageSection.propTypes)\r\n};\r\n\r\nexport default ForgotPasswordPage;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport ContentContainer from 'components/content-container';\r\nimport ComponentList from 'components/component-list';\r\n\r\nconst Frontpage = ({ blocks }) => {\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nFrontpage.propTypes = {\r\n blocks: PropTypes.exact(ComponentList.propTypes)\r\n};\r\n\r\nexport default Frontpage;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Form from 'components/form';\r\nimport TextInput from 'components/text-input';\r\nimport PageSpinner from 'components/page-spinner';\r\nimport ValidationErrorTexts from 'components/validation-error-texts';\r\nimport Button from 'components/button';\r\nimport HiddenInput from 'components/hidden-input';\r\n\r\nconst ReserveInStoreForm = ({\r\n inputName,\r\n inputPhone,\r\n form,\r\n validationErrors,\r\n posId,\r\n shopId,\r\n onResponse = () => {}\r\n}) => {\r\n const [isLoading, setLoading] = React.useState(false);\r\n const onSubmit = () => setLoading(true);\r\n\r\n const onResponseComplete = res => {\r\n setLoading(false);\r\n onResponse(res);\r\n };\r\n\r\n return (\r\n \r\n \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n {form.submitLabel}\r\n \r\n
    \r\n \r\n );\r\n};\r\n\r\nReserveInStoreForm.propTypes = {\r\n inputName: PropTypes.exact(TextInput.propTypes),\r\n inputPhone: PropTypes.exact(TextInput.propTypes),\r\n form: PropTypes.exact(Form.propTypes),\r\n onResponse: PropTypes.func,\r\n validationErrors: PropTypes.exact(ValidationErrorTexts.propTypes),\r\n posId: PropTypes.string,\r\n shopId: PropTypes.string\r\n};\r\n\r\nReserveInStoreForm.propTypesMeta = {\r\n posId: 'exclude',\r\n shopId: 'exclude'\r\n};\r\n\r\nexport default ReserveInStoreForm;\r\n","/* eslint-disable react/prop-types */\r\nimport React, { useState, useRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Link from '../link';\r\nimport RichText from 'components/rich-text';\r\nimport Store from 'components/find-store/store';\r\nimport Button from 'components/button';\r\nimport ReserveInStoreForm from './reserve-in-store-form';\r\nimport cn from 'classnames';\r\n\r\nconst ReserveStoresListItem = ({\r\n storeLabels,\r\n reservetionErrorMessageText,\r\n reservetionConfirmationText,\r\n reserveInStoreButtonText,\r\n name,\r\n address,\r\n openingHours,\r\n phone,\r\n email,\r\n productInStock,\r\n reserveForm,\r\n posId,\r\n shopId\r\n}) => {\r\n const [formIsShown, setFormIsShown] = useState(false);\r\n const [buttonIsShown, setButtonIsShown] = useState(true);\r\n const [reservetionText, setReservetionText] = useState(storeLabels.inStock);\r\n const [showGreenIcon, setShowGreenIcon] = useState(productInStock);\r\n\r\n const itemRef = useRef();\r\n\r\n const onReservetionComplete = res => {\r\n if (res.success === false) {\r\n setShowGreenIcon(false);\r\n setReservetionText(reservetionErrorMessageText);\r\n itemRef.current.scrollIntoView({ behavior: 'smooth' });\r\n } else {\r\n setReservetionText(reservetionConfirmationText);\r\n setShowGreenIcon(true);\r\n setFormIsShown(false);\r\n }\r\n };\r\n\r\n const onButtonClick = () => {\r\n setFormIsShown(true);\r\n setButtonIsShown(false);\r\n };\r\n\r\n return (\r\n
    \r\n {name &&

    {name}

    }\r\n
    \r\n
    \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n {storeLabels.address}\r\n \r\n {address}\r\n
    \r\n {storeLabels.hours}\r\n \r\n \r\n
    \r\n {storeLabels.phone}\r\n \r\n \r\n
    \r\n {storeLabels.email}\r\n \r\n \r\n
    \r\n
    \r\n
    \r\n
    \r\n \r\n \r\n {showGreenIcon ? (\r\n \r\n ) : (\r\n \r\n )}\r\n \r\n \r\n {productInStock ? reservetionText : storeLabels.outOfStock}\r\n \r\n
    \r\n {productInStock && (\r\n <>\r\n \r\n \r\n
    \r\n {buttonIsShown && (\r\n \r\n )}\r\n \r\n )}\r\n
    \r\n
    \r\n \r\n );\r\n};\r\n\r\nReserveStoresListItem.propTypes = Object.assign({}, Store.propTypes, {\r\n storeLabels: PropTypes.shape({\r\n address: PropTypes.string,\r\n hours: PropTypes.string,\r\n phone: PropTypes.string,\r\n email: PropTypes.string,\r\n inStock: PropTypes.string,\r\n outOfStock: PropTypes.string\r\n }),\r\n reservetionErrorMessageText: PropTypes.string,\r\n reservetionConfirmationText: PropTypes.string,\r\n reserveInStoreButtonText: PropTypes.string,\r\n reserveForm: PropTypes.exact(ReserveInStoreForm.propTypes),\r\n posId: PropTypes.string,\r\n shopId: PropTypes.string\r\n});\r\n\r\nReserveStoresListItem.propTypesMeta = 'exclude';\r\n\r\nReserveStoresListItem.defaultProps = {\r\n stores: [],\r\n storeLabels: {}\r\n};\r\n\r\nexport default ReserveStoresListItem;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport ReserveStoresListItem from './reserve-stores-list-item';\r\nimport ReserveInStoreForm from './reserve-in-store-form';\r\n\r\nconst ReserveStoresList = ({\r\n storeLabels,\r\n stores,\r\n reservetionErrorMessageText,\r\n reservetionConfirmationText,\r\n reserveInStoreButtonText,\r\n reserveForm,\r\n posId\r\n}) => {\r\n const [storeList, setStoreList] = React.useState([]);\r\n\r\n React.useEffect(() => {\r\n let storesWithProduct = stores.filter(item => item.productInStock === true);\r\n let storesWithoutProduct = stores.filter(\r\n item => item.productInStock !== true\r\n );\r\n //stores with product are shown first in the list\r\n setStoreList(storesWithProduct.concat(storesWithoutProduct));\r\n }, [stores]);\r\n\r\n return (\r\n
    \r\n {storeList.map((store, i) => (\r\n \r\n ))}\r\n
    \r\n );\r\n};\r\n\r\nReserveStoresList.propTypes = {\r\n storeLabels: PropTypes.shape({\r\n address: PropTypes.string,\r\n hours: PropTypes.string,\r\n phone: PropTypes.string,\r\n email: PropTypes.string,\r\n inStock: PropTypes.string,\r\n outOfStock: PropTypes.string\r\n }),\r\n posId: PropTypes.string.isRequired,\r\n stores: PropTypes.arrayOf(PropTypes.exact(ReserveStoresListItem.propTypes)),\r\n reservetionErrorMessageText: PropTypes.string,\r\n reservetionConfirmationText: PropTypes.string,\r\n reserveInStoreButtonText: PropTypes.string,\r\n reserveForm: PropTypes.exact(ReserveInStoreForm.propTypes)\r\n};\r\n\r\nReserveStoresList.propTypesMeta = {\r\n stores: 'exclude' // NOTE: stores are provided by FindStorePage\r\n};\r\n\r\nReserveStoresList.defaultProps = {\r\n stores: [],\r\n storeLabels: {}\r\n};\r\n\r\nexport default ReserveStoresList;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport FindStore from 'components/find-store/find-store';\r\nimport PageSpinner from '../page-spinner';\r\nimport ReserveStoresList from './reserve-stores-list';\r\nimport Modal from '../modal';\r\nimport PubSub from 'pubsub-js';\r\nimport topics from 'js/topics.json';\r\n\r\nclass ReservInStore extends React.Component {\r\n static propTypes = {\r\n heading: PropTypes.string,\r\n productName: PropTypes.string,\r\n searchLabel: PropTypes.string,\r\n noResultsText: PropTypes.string,\r\n resultsHeading: PropTypes.string,\r\n findStore: PropTypes.exact(FindStore.propTypes),\r\n list: PropTypes.exact(ReserveStoresList.propTypes)\r\n };\r\n\r\n static propTypesMeta = {};\r\n\r\n static defaultProps = {\r\n noResultsText: 'Vi fant dessverre ingen butikker.'\r\n };\r\n\r\n state = {\r\n isVisible: false,\r\n productName: this.props.productName,\r\n heading: this.props.heading,\r\n searchLabel: this.props.searchLabel,\r\n findStore: this.props.findStore,\r\n list: this.props.list,\r\n noResultsText: this.props.noResultsText,\r\n resultsHeading: this.props.resultsHeading\r\n };\r\n\r\n componentDidMount() {\r\n this.subscriber = PubSub.subscribe(\r\n topics.reserveUpdate,\r\n (msg, newState) => {\r\n this.setState({\r\n ...newState,\r\n isVisible: true\r\n });\r\n }\r\n );\r\n }\r\n\r\n componentWillUnmount() {\r\n PubSub.unsubscribe(this.subscriber);\r\n }\r\n\r\n render() {\r\n const {\r\n isVisible,\r\n productName,\r\n heading,\r\n findStore,\r\n searchLabel,\r\n resultsHeading,\r\n list,\r\n noResultsText\r\n } = this.state;\r\n\r\n const hide = () => {\r\n this.setState({ isVisible: false });\r\n };\r\n return (\r\n \r\n
    \r\n

    {heading}

    \r\n
    {productName}
    \r\n {findStore && (\r\n \r\n {({ isLoading, stores }) => (\r\n \r\n \r\n {stores.length > 0 ? (\r\n \r\n {resultsHeading && (\r\n

    \r\n {resultsHeading}\r\n

    \r\n )}\r\n
    \r\n \r\n
    \r\n
    \r\n ) : (\r\n
    \r\n {noResultsText}\r\n
    \r\n )}\r\n
    \r\n )}\r\n \r\n )}\r\n
    \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default ReservInStore;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport PubSub from 'pubsub-js';\r\n\r\nimport api from 'js/api-helper';\r\nimport checkApiPropTypes from 'js/check-api-prop-types';\r\nimport topics from 'js/topics.json';\r\n\r\nimport AddToCartResponse from 'components/contact-lens-page/add-to-cart-response';\r\nimport Button from 'components/button';\r\nimport Form from 'components/form';\r\nimport PageSpinner from 'components/page-spinner';\r\nimport Select from 'components/select';\r\nimport Text from 'components/text';\r\nimport Link from 'components/link';\r\nimport ValidationErrorTexts from 'components/validation-error-texts';\r\nimport ReservInStore from 'components/reserve-in-store/reserve-in-store';\r\nimport cn from 'classnames';\r\n\r\nconst ActionTypes = {\r\n addToCard: 'addToCard',\r\n reserve: 'reserve'\r\n};\r\n\r\nconst GlassesForm = ({\r\n addToCartEndpoint,\r\n reserveEndpoint,\r\n inputs,\r\n onUpdate,\r\n onRef,\r\n submitLabel,\r\n registerLabel,\r\n updateSizeEndpoint,\r\n validationErrors,\r\n hideAddToCartyButton = false,\r\n purchaseInformation\r\n}) => {\r\n const [isLoading, setLoading] = React.useState(false);\r\n const [actionType, setActionType] = React.useState(ActionTypes.addToCard);\r\n\r\n const onSubmit = () => setLoading(true);\r\n\r\n const onResponse = response => {\r\n if (actionType === ActionTypes.reserve) {\r\n PubSub.publish(topics.reserveUpdate, response);\r\n checkApiPropTypes(response, ReservInStore.propTypes, 'ReservInStore');\r\n } else {\r\n PubSub.publish(topics.cartUpdate, response);\r\n checkApiPropTypes(\r\n response,\r\n AddToCartResponse.propTypes,\r\n 'AddToCartResponse'\r\n );\r\n }\r\n setLoading(false);\r\n };\r\n\r\n const onChange = value => {\r\n if (updateSizeEndpoint) {\r\n setLoading(true);\r\n api\r\n .execute(updateSizeEndpoint, value)\r\n .then(onUpdate)\r\n .finally(() => setLoading(false));\r\n }\r\n };\r\n\r\n if (inputs.length === 0) return null;\r\n\r\n return (\r\n <>\r\n \r\n {inputs.map((input, i) => {\r\n return input.options && input.options.length > 0 ? (\r\n
    \r\n \r\n \r\n \r\n
    \r\n ) : null;\r\n })}\r\n\r\n \r\n
    \r\n {hideAddToCartyButton &&\r\n purchaseInformation &&\r\n purchaseInformation.text &&\r\n purchaseInformation.link && (\r\n

    \r\n {purchaseInformation.text}\r\n

    \r\n )}\r\n
    \r\n {!hideAddToCartyButton && (\r\n setActionType(ActionTypes.addToCard)}\r\n />\r\n )}\r\n {registerLabel && (\r\n setActionType(ActionTypes.reserve)}\r\n text={registerLabel}\r\n themes={[Button.themes.buttonCyan]}\r\n />\r\n )}\r\n\r\n {hideAddToCartyButton &&\r\n purchaseInformation &&\r\n purchaseInformation.link && (\r\n \r\n )}\r\n
    \r\n
    \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nGlassesForm.propTypes = {\r\n addToCartEndpoint: PropTypes.string,\r\n reserveEndpoint: PropTypes.string,\r\n inputs: PropTypes.arrayOf(PropTypes.exact(Select.propTypes)),\r\n onUpdate: PropTypes.func,\r\n onRef: PropTypes.func,\r\n submitLabel: PropTypes.string,\r\n registerLabel: PropTypes.string,\r\n updateSizeEndpoint: PropTypes.string,\r\n validationErrors: PropTypes.exact(ValidationErrorTexts.propTypes),\r\n productName: PropTypes.string,\r\n hideAddToCartyButton: PropTypes.bool,\r\n purchaseInformation: PropTypes.exact({\r\n text: PropTypes.string,\r\n link: PropTypes.exact(Link.propTypes)\r\n })\r\n};\r\n\r\nGlassesForm.propTypesMeta = {\r\n productName: 'exclude',\r\n purchaseInformation: 'exclude'\r\n};\r\n\r\nGlassesForm.defaultProps = {\r\n inputs: [],\r\n onRef: () => {}\r\n};\r\n\r\nexport default GlassesForm;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport Link from '../link';\r\nimport Text from 'components/text';\r\n\r\nconst ProductColors = ({ title, colors, urlAnchorText }) => {\r\n return colors.length === 0 ? null : (\r\n
    \r\n {title}\r\n
      \r\n {colors.map(({ code, isCurrent, link, image } = {}) => {\r\n const colorName = link && link.text;\r\n\r\n return (\r\n
    • \r\n \r\n
    • \r\n );\r\n })}\r\n
    \r\n
    \r\n );\r\n};\r\n\r\nProductColors.propTypes = {\r\n title: PropTypes.string,\r\n urlAnchorText: PropTypes.string,\r\n colors: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n code: PropTypes.string,\r\n image: PropTypes.string,\r\n isCurrent: PropTypes.bool,\r\n link: PropTypes.exact(Link.propTypes)\r\n })\r\n )\r\n};\r\n\r\nProductColors.defaultProps = {\r\n colors: [],\r\n urlAnchorText: 'colors'\r\n};\r\n\r\nexport default ProductColors;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Availability from 'components/availability';\r\nimport GlassesForm from './glasses-form';\r\nimport Grid from 'components/grid';\r\nimport Link from 'components/link';\r\nimport Price from 'components/price';\r\nimport ProductColors from './product-colors';\r\nimport ProductImages from 'components/product-images';\r\nimport ProductLogo from 'components/product-logo';\r\nimport ProductSellingPoints from 'components/product-selling-points';\r\nimport SellingPoints from 'components/selling-points';\r\nimport Text from 'components/text';\r\nimport ProductVariantText from 'components/product-variant-text';\r\n\r\nconst GlassesHeader = ({\r\n availability,\r\n onUpdate,\r\n price,\r\n productColors,\r\n productImages,\r\n productLogo,\r\n productSellingPoints,\r\n purchaseForm,\r\n purchaseInformation,\r\n sellingPoints,\r\n subtitle,\r\n title,\r\n tag,\r\n productVariantText\r\n}) => {\r\n const hidePurchaseInformation =\r\n purchaseForm && purchaseForm.hideAddToCartyButton === true;\r\n return (\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 {tag && (\r\n
    \r\n \r\n {tag}\r\n \r\n
    \r\n )}\r\n
    \r\n
    \r\n \r\n {title}\r\n \r\n {subtitle}\r\n
    \r\n\r\n \r\n
    \r\n\r\n {productColors && }\r\n\r\n {purchaseForm && (\r\n \r\n )}\r\n\r\n {availability && (\r\n
    \r\n \r\n
    \r\n )}\r\n\r\n {purchaseInformation && !hidePurchaseInformation && (\r\n
    \r\n

    {purchaseInformation.text}

    \r\n \r\n
    \r\n )}\r\n\r\n {productVariantText && (\r\n \r\n )}\r\n\r\n {productSellingPoints && (\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\nGlassesHeader.propTypes = {\r\n availability: PropTypes.exact(Availability.propTypes),\r\n onUpdate: PropTypes.func,\r\n price: PropTypes.exact(Price.propTypes),\r\n productColors: PropTypes.exact(ProductColors.propTypes),\r\n productImages: PropTypes.exact(ProductImages.propTypes),\r\n productLogo: PropTypes.exact(ProductLogo.propTypes),\r\n productSellingPoints: PropTypes.arrayOf(PropTypes.string),\r\n purchaseForm: PropTypes.exact(GlassesForm.propTypes),\r\n purchaseInformation: PropTypes.exact({\r\n text: PropTypes.string,\r\n link: PropTypes.exact(Link.propTypes)\r\n }),\r\n sellingPoints: PropTypes.exact(SellingPoints.propTypes),\r\n subtitle: PropTypes.string,\r\n tag: PropTypes.string,\r\n title: PropTypes.string,\r\n productVariantText: PropTypes.string\r\n};\r\n\r\nGlassesHeader.defaultProps = {\r\n productSellingPoints: []\r\n};\r\n\r\nGlassesHeader.propTypesMeta = {\r\n productVariantText: 'exclude'\r\n};\r\n\r\nexport default GlassesHeader;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Image from '../image';\r\nimport { glassesMeasurementId } from '../../js/local-ids.json';\r\n\r\nconst GlassesMeasurement = ({ items }) => (\r\n
    \r\n {items.map(({ image, measures = [] } = {}) => (\r\n
    \r\n \r\n
    \r\n {measures.map(({ label, value } = {}) => (\r\n
    \r\n {label}\r\n {value}\r\n
    \r\n ))}\r\n
    \r\n
    \r\n ))}\r\n
    \r\n);\r\n\r\nGlassesMeasurement.defaultProps = {\r\n items: []\r\n};\r\n\r\nGlassesMeasurement.propTypes = {\r\n items: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n image: PropTypes.string,\r\n measures: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n label: PropTypes.string,\r\n value: PropTypes.string\r\n })\r\n )\r\n })\r\n )\r\n};\r\n\r\nexport default GlassesMeasurement;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport useSpringEffect from 'use-spring-effect';\r\n\r\nimport useNonPassiveEvent from 'hooks/use-non-passive-event';\r\n\r\nimport Icon from 'components/icon';\r\nimport Image from '../image';\r\nimport Text from 'components/text';\r\n\r\nconst colorNames = {\r\n 'Grey/Black': 'lens-visualisation-overlay-gray-black',\r\n Brown: 'lens-visualisation-overlay-brown',\r\n Green: 'lens-visualisation-overlay-green'\r\n};\r\n\r\nconst LensVisualisation = ({ image, lensColor, text, isOverlayEnabled }) => {\r\n const isDragging = React.useRef(false);\r\n const sliderIsMoving = React.useRef(false);\r\n const xStart = React.useRef(false);\r\n\r\n // HTML elements:\r\n const [wrapper, setWrapper] = React.useState();\r\n const [overlay, setOverlay] = React.useState();\r\n const [sliderEl, setSliderEl] = React.useState();\r\n\r\n const [transitionTo] = useSpringEffect(\r\n 0,\r\n value => {\r\n if (!overlay || !sliderEl) return;\r\n\r\n const transform = `translateX(${value}px)`;\r\n overlay.style.transform = transform;\r\n sliderEl.style.transform = transform;\r\n },\r\n { stiffness: 200, damping: 17 },\r\n [overlay, sliderEl]\r\n );\r\n\r\n const onMouseDown = () => (isDragging.current = true);\r\n const onMouseUp = () => (isDragging.current = false);\r\n\r\n const slider = event => {\r\n const x =\r\n event.pageX -\r\n wrapper.getBoundingClientRect().left -\r\n wrapper.offsetWidth / 2;\r\n\r\n transitionTo(x);\r\n };\r\n\r\n const onTouchStart = event => {\r\n xStart.current = event.touches[0].clientX;\r\n };\r\n\r\n const onTouchEnd = () => {\r\n sliderIsMoving.current = false;\r\n };\r\n\r\n const onTouchMove = event => {\r\n if (!xStart.current) return;\r\n\r\n const xMove = event.touches[0].clientX;\r\n\r\n const xDiff = xStart.current - xMove;\r\n\r\n if (Math.abs(xDiff) > 20 || sliderIsMoving.current) {\r\n event.preventDefault();\r\n slider(event.touches[0]);\r\n sliderIsMoving.current = true;\r\n }\r\n };\r\n\r\n const onMouseMove = event => {\r\n if (isDragging.current) slider(event);\r\n };\r\n\r\n useNonPassiveEvent('touchmove', wrapper, onTouchMove);\r\n\r\n return (\r\n
    \r\n {isOverlayEnabled && colorNames[lensColor] ? (\r\n
    \r\n \r\n {image.alt}\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 {text}\r\n \r\n ) : (\r\n
    \r\n {image.alt}\r\n
    \r\n )}\r\n \r\n );\r\n};\r\n\r\nLensVisualisation.propTypes = {\r\n image: PropTypes.exact(Image.propTypes),\r\n lensColor: PropTypes.oneOf(Object.keys(colorNames)),\r\n text: PropTypes.string,\r\n isOverlayEnabled: PropTypes.bool\r\n};\r\n\r\nexport default LensVisualisation;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Link from 'components/link';\r\nimport RichText from 'components/rich-text';\r\nimport Text from 'components/text';\r\n\r\nconst Metadata = ({ title, descriptionList, text, link }) => (\r\n \r\n {title}\r\n
    \r\n {descriptionList.map(description => (\r\n \r\n
    {description.tag}
    \r\n
    {description.description}
    \r\n
    \r\n ))}\r\n
    \r\n \r\n {link && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n);\r\n\r\nMetadata.defaultProps = {\r\n descriptionList: []\r\n};\r\n\r\nMetadata.propTypes = {\r\n title: PropTypes.string,\r\n descriptionList: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n tag: PropTypes.string,\r\n description: PropTypes.string\r\n })\r\n ),\r\n text: PropTypes.string,\r\n link: PropTypes.exact(Link.propTypes)\r\n};\r\n\r\nexport default Metadata;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Grid from '../grid';\r\nimport ContentContainer from '../content-container';\r\nimport GlassesHeader from './glasses-header';\r\nimport GlassesMeasurement from './glasses-measurement';\r\nimport LensVisualisation from '../lens-visualisation';\r\nimport MainTitle from 'components/main-title';\r\nimport Metadata from '../metadata';\r\nimport ProductListBlock from '../product-list-block';\r\nimport ProductText from 'components/product-text';\r\n\r\nclass GlassesPage extends React.Component {\r\n static propTypes = {\r\n frameMetadata: PropTypes.exact(Metadata.propTypes),\r\n glassesMeasurement: PropTypes.exact(GlassesMeasurement.propTypes),\r\n header: PropTypes.exact(GlassesHeader.propTypes),\r\n productTextHtml: PropTypes.string,\r\n lensMetadata: PropTypes.exact(Metadata.propTypes),\r\n lensVisualisation: PropTypes.exact(LensVisualisation.propTypes),\r\n relatedProducts: PropTypes.exact(ProductListBlock.propTypes),\r\n title: PropTypes.string,\r\n productVariantText: PropTypes.string\r\n };\r\n\r\n state = {\r\n ...this.props\r\n };\r\n\r\n updateSize = newState => {\r\n this.setState({ ...newState });\r\n };\r\n\r\n render() {\r\n return (\r\n
    \r\n \r\n \r\n\r\n \r\n {this.props.productTextHtml && (\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 {this.state.lensVisualisation && (\r\n \r\n )}\r\n \r\n \r\n {this.state.lensMetadata && (\r\n \r\n )}\r\n \r\n \r\n \r\n\r\n \r\n {this.state.relatedProducts && (\r\n \r\n )}\r\n \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default GlassesPage;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Link from 'components/link';\r\nimport Text from 'components/text';\r\n\r\nconst SearchResultHeader = ({ label, link }) => (\r\n \r\n {label}\r\n /\r\n \r\n \r\n);\r\n\r\nSearchResultHeader.propTypes = {\r\n label: PropTypes.string,\r\n link: PropTypes.exact(Link.propTypes)\r\n};\r\n\r\nexport default SearchResultHeader;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport get from 'lodash/get';\r\n\r\nimport Grid from '../grid';\r\nimport Image from 'components/image';\r\nimport ProductList from '../product-list';\r\nimport SearchResultHeader from './search-result-header';\r\n\r\nimport Link from 'components/link';\r\n\r\nconst SearchResults = ({\r\n articles,\r\n articlesHeader,\r\n articlesBottomLink,\r\n children,\r\n products,\r\n productsHeader,\r\n productsBottomLink\r\n}) => {\r\n const hasResults =\r\n get(products, 'products', []).length > 0 || articles.length > 0;\r\n return (\r\n \r\n {hasResults && (\r\n \r\n \r\n {productsHeader && }\r\n {products && (\r\n
    \r\n \r\n
    \r\n )}\r\n {productsBottomLink && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n\r\n \r\n {articlesHeader && }\r\n {articles.length > 0 && (\r\n \r\n )}\r\n {articlesBottomLink && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n
    \r\n )}\r\n\r\n {children(hasResults)}\r\n
    \r\n );\r\n};\r\n\r\nSearchResults.propTypes = {\r\n articles: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n image: PropTypes.exact(Image.propTypes),\r\n text: PropTypes.string,\r\n url: PropTypes.string\r\n })\r\n ),\r\n articlesBottomLink: PropTypes.exact(Link.propTypes),\r\n productsBottomLink: PropTypes.exact(Link.propTypes),\r\n articlesHeader: PropTypes.exact(SearchResultHeader.propTypes),\r\n children: PropTypes.func,\r\n products: PropTypes.exact(ProductList.propTypes),\r\n productsHeader: PropTypes.exact(SearchResultHeader.propTypes)\r\n};\r\n\r\nSearchResults.defaultProps = {\r\n articles: [],\r\n children: () => {}\r\n};\r\n\r\nexport default SearchResults;\r\n","import PropTypes from 'prop-types';\r\n\r\nimport SearchResults from './search-results';\r\n\r\nconst GlobalSearchResponse = {};\r\nGlobalSearchResponse.propTypes = {\r\n searchResults: PropTypes.exact(SearchResults.propTypes)\r\n};\r\n\r\nexport default GlobalSearchResponse;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport debounce from 'lodash/debounce';\r\n\r\nimport api from '../../js/api-helper';\r\nimport checkApiPropTypes from 'js/check-api-prop-types';\r\n\r\nimport Collapse from 'react-tiny-collapse';\r\n\r\nimport ContentContainer from 'components/content-container';\r\nimport EmptyListMessage from 'components/empty-list-message';\r\nimport GlobalSearchResponse from './global-search-response';\r\nimport PageSpinner from 'components/page-spinner';\r\nimport SearchResults from './search-results';\r\nimport Search from 'components/search';\r\nimport TextInput from 'components/text-input';\r\n\r\nclass GlobalSearch extends React.Component {\r\n static propTypes = {\r\n label: PropTypes.string.isRequired,\r\n noResultsMessage: PropTypes.string,\r\n search: PropTypes.exact(Search.propTypes),\r\n suggestionEndpoint: PropTypes.string,\r\n url: PropTypes.string.isRequired\r\n };\r\n\r\n static defaultProps = {\r\n queryParameter: 'q'\r\n };\r\n\r\n state = {\r\n isLoading: false,\r\n isSearchResultsVisible: false,\r\n searchResults: null\r\n };\r\n\r\n isLoading = false;\r\n searchTerm = '';\r\n\r\n onSearchInput = debounce(searchTerm => {\r\n if (!this.props.search || !this.props.search.name) return;\r\n\r\n this.searchTerm = searchTerm;\r\n\r\n if (searchTerm && searchTerm.length >= 3 && !this.isLoading) {\r\n this.isLoading = true;\r\n\r\n this.setState({ isLoading: true }, () => {\r\n api\r\n .execute(this.props.suggestionEndpoint, {\r\n [this.props.search.name]: searchTerm\r\n })\r\n .then(newState => {\r\n this.isLoading = false;\r\n\r\n checkApiPropTypes(\r\n newState,\r\n GlobalSearchResponse.propTypes,\r\n 'GlobalSearchResponse'\r\n );\r\n\r\n this.setState({\r\n ...newState,\r\n isLoading: false,\r\n isSearchResultsVisible: true\r\n });\r\n\r\n // In case someone types while loading\r\n if (this.searchTerm !== searchTerm) {\r\n this.onSearchInput(this.searchTerm);\r\n }\r\n })\r\n .catch(() => {\r\n this.isLoading = false;\r\n this.setState({ isLoading: false });\r\n });\r\n });\r\n }\r\n }, 500);\r\n\r\n render() {\r\n return (\r\n
    (this.wrapper = div)}>\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n
    \r\n \r\n {hasResults =>\r\n !this.state.isLoading &&\r\n !hasResults && (\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\nexport default GlobalSearch;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Link from 'components/link';\r\n\r\nconst LoginModal = ({ links, registerLink, registerLinkLabel, title }) => (\r\n
    \r\n

    {title}

    \r\n {links.map(link => (\r\n
    \r\n

    {link.label}

    \r\n \r\n
    \r\n ))}\r\n
    \r\n

    {registerLinkLabel}

    \r\n \r\n
    \r\n
    \r\n);\r\n\r\nLoginModal.propTypes = {\r\n links: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n label: PropTypes.string,\r\n link: PropTypes.exact(Link.propTypes)\r\n })\r\n ),\r\n registerLink: PropTypes.exact(Link.propTypes),\r\n registerLinkLabel: PropTypes.string,\r\n title: PropTypes.string\r\n};\r\n\r\nLoginModal.defaultProps = {\r\n links: []\r\n};\r\n\r\nexport default LoginModal;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Link from '../link';\r\n\r\nclass MouseoverLink extends React.Component {\r\n static propTypes = {\r\n ...Link.propTypes,\r\n delay: PropTypes.number,\r\n onMousehold: PropTypes.func.isRequired\r\n };\r\n\r\n static propTypesMeta = 'exclude';\r\n\r\n static defaultProps = {\r\n delay: 500\r\n };\r\n\r\n link = React.createRef();\r\n timeout = null;\r\n\r\n onMouseIn = () => {\r\n this.timeout = setTimeout(() => {\r\n if (!this) return;\r\n\r\n this.props.onMousehold();\r\n }, this.props.delay);\r\n };\r\n\r\n onMouseOut = () => {\r\n clearTimeout(this.timeout);\r\n };\r\n\r\n componentDidMount() {\r\n if (!this.link.current) return;\r\n\r\n this.link.current.addEventListener('mouseenter', this.onMouseIn);\r\n this.link.current.addEventListener('mouseleave', this.onMouseOut);\r\n }\r\n\r\n componentWillUnmount() {\r\n if (!this.link.current) return;\r\n\r\n this.link.current.removeEventListener('mouseenter', this.onMouseIn);\r\n this.link.current.removeEventListener('mouseleave', this.onMouseOut);\r\n }\r\n\r\n render() {\r\n // Eslint rule is ignored so that 'delay' and 'onMouseover' can be omitted from Link props\r\n // eslint-disable-next-line no-unused-vars\r\n const { delay, onMousehold, ...props } = this.props;\r\n\r\n return ;\r\n }\r\n}\r\n\r\nexport default MouseoverLink;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport FluidImage from 'components/fluid-image';\r\nimport Text from 'components/text';\r\n\r\nconst CategoryLink = ({ image, text, url }) => {\r\n return (\r\n \r\n
    \r\n \r\n
    \r\n \r\n {text}\r\n \r\n
    \r\n );\r\n};\r\n\r\nCategoryLink.propTypes = {\r\n image: PropTypes.exact(FluidImage.propTypes),\r\n text: PropTypes.string,\r\n url: PropTypes.string\r\n};\r\n\r\nexport default CategoryLink;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Image from 'components/image';\r\n\r\nconst ShapeLink = ({ image, text, url, tabIndex = null }) => {\r\n return (\r\n \r\n
    \r\n \r\n
    \r\n
    {text}
    \r\n
    \r\n );\r\n};\r\n\r\nShapeLink.propTypes = {\r\n image: PropTypes.exact(Image.propTypes),\r\n text: PropTypes.string,\r\n url: PropTypes.string,\r\n tabIndex: PropTypes.number\r\n};\r\n\r\nShapeLink.propTypesMeta = {\r\n tabIndex: 'exclude'\r\n};\r\n\r\nexport default ShapeLink;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport Button from '../button';\r\nimport CategoryLink from './category-link';\r\nimport ShapeLink from './shape-link';\r\nimport ContentContainer from 'components/content-container';\r\nimport Icon from 'components/icon';\r\nimport Link from 'components/link';\r\nimport Text from 'components/text';\r\n\r\nconst SubMenu = ({\r\n categoriesTitle,\r\n categories,\r\n shapesTitle,\r\n shapes,\r\n closeLabel,\r\n hide,\r\n isActive,\r\n linkLists\r\n}) => {\r\n return (\r\n
    \r\n \r\n \r\n {categories.length > 0 && (\r\n 0\r\n })}\r\n >\r\n {categoriesTitle && (\r\n \r\n {categoriesTitle}\r\n \r\n )}\r\n
      \r\n {categories.map(link => (\r\n
    • \r\n \r\n
    • \r\n ))}\r\n
    \r\n
    \r\n )}\r\n\r\n {shapes && shapes.length > 0 && (\r\n
    \r\n {shapesTitle && (\r\n \r\n {shapesTitle}\r\n \r\n )}\r\n
      \r\n {shapes.map(link => (\r\n
    • \r\n \r\n
    • \r\n ))}\r\n
    \r\n
    \r\n )}\r\n {linkLists.map(({ extraLink, links, title } = {}, index) => (\r\n 10\r\n })}\r\n key={title || index}\r\n >\r\n {title && (\r\n \r\n {title}\r\n \r\n )}\r\n
      \r\n {links.map(link => (\r\n
    • \r\n \r\n
    • \r\n ))}\r\n
    \r\n {extraLink && }\r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nSubMenu.propTypesMeta = {\r\n isActive: 'exclude'\r\n};\r\n\r\nSubMenu.propTypes = {\r\n categoriesTitle: PropTypes.string,\r\n isActive: PropTypes.bool,\r\n categories: PropTypes.arrayOf(PropTypes.exact(CategoryLink.propTypes)),\r\n shapesTitle: PropTypes.string,\r\n shapes: PropTypes.arrayOf(PropTypes.exact(ShapeLink.propTypes)),\r\n closeLabel: PropTypes.string,\r\n hide: PropTypes.func,\r\n linkLists: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n extraLink: PropTypes.exact(Link.propTypes),\r\n links: PropTypes.arrayOf(PropTypes.exact(Link.propTypes)),\r\n title: PropTypes.string\r\n })\r\n )\r\n};\r\n\r\nSubMenu.defaultProps = {\r\n categories: [],\r\n linkLists: []\r\n};\r\n\r\nexport default SubMenu;\r\n","import React, { useContext } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport Collapse from 'react-tiny-collapse';\r\nimport Transition from 'react-tiny-transition';\r\n\r\nimport ContentContainer from 'components/content-container';\r\nimport Icon from 'components/icon';\r\nimport Link from 'components/link';\r\nimport MouseoverLink from 'components/mouseover-link';\r\nimport Text from 'components/text';\r\nimport SubMenu from './sub-menu';\r\nimport ModalContext from '../../context/modal';\r\n\r\nconst MainNav = ({\r\n bookAppointmentLink,\r\n findStoreLink,\r\n hideMobileMenu,\r\n isDesktop,\r\n isExpanded = false,\r\n items\r\n}) => {\r\n const raf = React.useRef();\r\n const [activeSubMenu, setActiveSubMenu] = React.useState('');\r\n const [shouldAnimateSubMenu, setShouldAnimateSubMenu] = React.useState(false);\r\n\r\n const hideSubMenus = () => {\r\n setShouldAnimateSubMenu(true);\r\n raf.current = requestAnimationFrame(() => setActiveSubMenu(''));\r\n };\r\n\r\n const openSubMenu = menuName => {\r\n const hasActiveSubMenu = !!activeSubMenu;\r\n\r\n setShouldAnimateSubMenu(!hasActiveSubMenu);\r\n\r\n if (menuName === activeSubMenu) {\r\n hideSubMenus();\r\n } else {\r\n raf.current = requestAnimationFrame(() => setActiveSubMenu(menuName));\r\n }\r\n };\r\n\r\n // Cleanup on unmount\r\n React.useEffect(() => () => cancelAnimationFrame(raf.current), []);\r\n\r\n const shouldAnimate = shouldAnimateSubMenu || !isDesktop;\r\n const WrapperElement = isDesktop ? 'div' : Transition;\r\n const hasActiveSubMenu = !!activeSubMenu;\r\n const modalContext = useContext(ModalContext);\r\n const toggleAppointmentBookingModal = e => {\r\n e.preventDefault();\r\n modalContext.toggleAppointmentBookingModal();\r\n };\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n
      \r\n {items.map(({ link, content }) => {\r\n const isActive = activeSubMenu === link.url;\r\n\r\n return (\r\n
    • \r\n openSubMenu(link.url)}\r\n {...link}\r\n />\r\n\r\n \r\n \r\n \r\n \r\n {link.text}\r\n \r\n \r\n openSubMenu(link.url)}\r\n className=\"main-nav-button-inner-button\"\r\n >\r\n \r\n \r\n \r\n \r\n {shouldAnimate ? (\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 {findStoreLink && (\r\n \r\n )}\r\n\r\n {bookAppointmentLink && (\r\n \r\n )}\r\n
    \r\n
    \r\n \r\n
    \r\n\r\n \r\n {isDesktop && hasActiveSubMenu && (\r\n
    \r\n )}\r\n \r\n\r\n \r\n {!isDesktop && isExpanded && (\r\n
    \r\n )}\r\n \r\n \r\n );\r\n};\r\n\r\nMainNav.propTypes = {\r\n bookAppointmentLink: PropTypes.exact(Link.propTypes),\r\n findStoreLink: PropTypes.exact(Link.propTypes),\r\n hideMobileMenu: PropTypes.func,\r\n isDesktop: PropTypes.bool,\r\n isExpanded: PropTypes.bool,\r\n items: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n link: PropTypes.exact({\r\n url: PropTypes.string,\r\n text: PropTypes.string\r\n }),\r\n content: PropTypes.exact(SubMenu.propTypes)\r\n })\r\n )\r\n};\r\n\r\nMainNav.propTypesMeta = {\r\n isDesktop: 'exclude',\r\n isExpanded: 'exclude'\r\n};\r\n\r\nMainNav.defaultProps = {\r\n items: []\r\n};\r\n\r\nexport default MainNav;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst SkipToMainButton = ({ text, targetId }) => {\r\n return (\r\n \r\n );\r\n};\r\n\r\nSkipToMainButton.propTypes = {\r\n text: PropTypes.string.isRequired,\r\n targetId: PropTypes.string.isRequired\r\n};\r\n\r\nSkipToMainButton.propTypesMeta = 'exclude';\r\n\r\nexport default SkipToMainButton;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport TinyTransition from 'react-tiny-transition';\r\nimport Icon from '../icon';\r\n\r\nimport CollapsableRichText from '../collapsable-rich-text';\r\nimport Link from '../link';\r\n\r\nconst Banner = ({ title, richText, onClick, link, buttonText }) => {\r\n return (\r\n
    \r\n \r\n
    \r\n
    \r\n {title && (\r\n <>\r\n
    \r\n \r\n \r\n {buttonText}\r\n \r\n \r\n \r\n \r\n \r\n
    \r\n

    {title}

    \r\n \r\n )}\r\n {richText && (\r\n \r\n {link && link.url && (\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\nBanner.propTypesMeta = 'exclude';\r\n\r\nBanner.propTypes = {\r\n title: PropTypes.string,\r\n onClick: PropTypes.func,\r\n richText: PropTypes.exact(CollapsableRichText.propTypes),\r\n buttonText: PropTypes.string,\r\n cookieExpirationTimeInSeconds: PropTypes.number,\r\n link: PropTypes.exact(Link.propTypes)\r\n};\r\n\r\nexport default Banner;\r\n","import React, { useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Cookies from 'universal-cookie';\r\n\r\nimport Banner from './banner';\r\nimport CollapsableRichText from '../collapsable-rich-text';\r\nimport Link from '../link';\r\n\r\nconst cookies = new Cookies();\r\n\r\nconst SiteInfoBanner = props => {\r\n const { cookieClientId, cookieExpirationTimeInSeconds, ...rest } = props;\r\n\r\n const [showBanner, setShowBanner] = useState(true);\r\n\r\n const handleOnBannerClick = () => {\r\n cookies.set(cookieClientId, true, {\r\n path: '/',\r\n maxAge: cookieExpirationTimeInSeconds\r\n });\r\n\r\n setShowBanner(false);\r\n };\r\n\r\n return showBanner ? : null;\r\n};\r\n\r\nSiteInfoBanner.propTypes = {\r\n title: PropTypes.string,\r\n cookieClientId: PropTypes.string,\r\n onClick: PropTypes.func,\r\n richText: PropTypes.exact(CollapsableRichText.propTypes),\r\n buttonText: PropTypes.string,\r\n cookieExpirationTimeInSeconds: PropTypes.number,\r\n link: PropTypes.exact(Link.propTypes)\r\n};\r\n\r\nexport default SiteInfoBanner;\r\n","import React, { useContext, useState, useEffect, useRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\nimport ModalContext from '../../context/modal';\r\n\r\nconst MobileStickyHeader = ({ children }) => {\r\n const headerRef = useRef(null);\r\n const [isHidden, setIsHidden] = useState(null);\r\n const modalContext = useContext(ModalContext);\r\n const isMenuOpened = useRef(false);\r\n\r\n useEffect(() => {\r\n const headerHeight = headerRef.current.offsetHeight;\r\n\r\n function handleScroll() {\r\n if (\r\n window.scrollY > window.lastScrollY &&\r\n window.scrollY > headerHeight &&\r\n !isMenuOpened.current\r\n ) {\r\n setIsHidden(true);\r\n } else if (window.scrollY < window.lastScrollY) {\r\n setIsHidden(false);\r\n }\r\n window.lastScrollY = window.scrollY;\r\n }\r\n window.addEventListener('scroll', handleScroll);\r\n\r\n return () => {\r\n window.removeEventListener('scroll', handleScroll);\r\n };\r\n }, []);\r\n\r\n useEffect(() => {\r\n isMenuOpened.current = modalContext.isMobileMenuOpen;\r\n }, [modalContext]);\r\n\r\n return (\r\n <>\r\n \r\n {children}\r\n
    \r\n
    \r\n \r\n );\r\n};\r\n\r\nMobileStickyHeader.propTypes = {\r\n children: PropTypes.node\r\n};\r\nMobileStickyHeader.propTypesMeta = 'exclude';\r\n\r\nexport default MobileStickyHeader;\r\n","/* eslint-disable no-unused-vars */\r\nimport React, { useContext, Fragment, useRef } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport ContentContainer from 'components/content-container';\r\nimport Icon from 'components/icon';\r\nimport Link from 'components/link';\r\nimport Text from 'components/text';\r\nimport ModalContext from '../../context/modal';\r\nimport SkipToMainButton from 'components/skip-to-main-button';\r\nimport SiteInfoBanner from 'components/site-info-banner';\r\nimport MobileStickyHeader from './mobile-sticky-header';\r\n\r\nimport logo from '../../assets/logo.png';\r\nimport { mainContent } from '../../js/local-ids.json';\r\n\r\nconst ThemedLink = props => ;\r\n\r\n/* eslint-disable react/no-multi-comp */\r\nconst HeaderInner = ({\r\n isDesktop,\r\n numberOfProducts,\r\n loginId,\r\n searchId,\r\n cartId,\r\n cartLink,\r\n supportLink,\r\n magazineLink,\r\n myPageLink,\r\n linkToHome,\r\n phoneLink,\r\n searchPageLink,\r\n mobileTopBarLinks,\r\n isLoggedIn,\r\n hideMenuText,\r\n showMenuText,\r\n skipToMainText,\r\n siteInfoBanner,\r\n showSiteInfoBanner,\r\n bookAppointmentLink\r\n}) => {\r\n const scrollDestination = useRef();\r\n const modalContext = useContext(ModalContext);\r\n\r\n const toggleMobileMenu = () => {\r\n if (scrollDestination.current) scrollDestination.current.scrollIntoView();\r\n\r\n modalContext.toggleMobileMenu();\r\n };\r\n\r\n const toggleLogin = e => {\r\n e.preventDefault();\r\n modalContext.toggleLoginModal();\r\n };\r\n\r\n const toggleCart = e => {\r\n e.preventDefault();\r\n modalContext.toggleCartModal();\r\n };\r\n\r\n const toggleSearch = e => {\r\n e.preventDefault();\r\n modalContext.toggleSearchModal();\r\n };\r\n\r\n const toggleAppointmentBookingModal = e => {\r\n e.preventDefault();\r\n modalContext.toggleAppointmentBookingModal();\r\n };\r\n\r\n return (\r\n \r\n {skipToMainText && (\r\n // eslint-disable-next-line no-warning-comments\r\n //TODO: get id of next element, blockId, etc\r\n )}\r\n {showSiteInfoBanner && }\r\n
    \r\n \r\n
    \r\n {/*{mobileTopBarLinks.map(link => (\r\n \r\n ))}*/}\r\n {myPageLink && (\r\n \r\n )}\r\n\r\n {supportLink && (\r\n \r\n )}\r\n {/*{magazineLink && (\r\n \r\n )}*/}\r\n
    \r\n {bookAppointmentLink && (\r\n \r\n )}\r\n {searchPageLink && (\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 {phoneLink && (\r\n
    • \r\n \r\n \r\n {phoneLink.text}\r\n \r\n
    • \r\n )}\r\n {supportLink && (\r\n
    • \r\n \r\n
    • \r\n )}\r\n {magazineLink && (\r\n
    • \r\n \r\n
    • \r\n )}\r\n
    \r\n \r\n \"Interoptik\r\n \r\n\r\n
      \r\n {isDesktop && myPageLink && (\r\n
    • \r\n \r\n
    • \r\n )}\r\n {searchPageLink && (\r\n
    • \r\n \r\n \r\n \r\n
    • \r\n )}\r\n {cartLink && (\r\n
    • \r\n 0\r\n ? [Link.themes.circleDark]\r\n : [Link.themes.circle]\r\n }\r\n {...cartLink}\r\n >\r\n \r\n \r\n {numberOfProducts > 0 && (\r\n \r\n {numberOfProducts}\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\nHeaderInner.propTypes = {\r\n isDesktop: PropTypes.bool,\r\n numberOfProducts: PropTypes.number,\r\n loginId: PropTypes.string,\r\n searchId: PropTypes.string,\r\n cartId: PropTypes.string,\r\n cartLink: PropTypes.exact(Link.propTypes),\r\n supportLink: PropTypes.exact(Link.propTypes),\r\n magazineLink: PropTypes.exact(Link.propTypes),\r\n myPageLink: PropTypes.exact(Link.propTypes),\r\n linkToHome: PropTypes.exact(Link.propTypes),\r\n phoneLink: PropTypes.exact(Link.propTypes),\r\n searchPageLink: PropTypes.exact(Link.propTypes),\r\n mobileTopBarLinks: PropTypes.arrayOf(PropTypes.exact(Link.propTypes)),\r\n isLoggedIn: PropTypes.bool,\r\n hideMenuText: PropTypes.string,\r\n showMenuText: PropTypes.string,\r\n skipToMainText: PropTypes.string,\r\n showSiteInfoBanner: PropTypes.bool,\r\n siteInfoBanner: PropTypes.shape(SiteInfoBanner.propTypes),\r\n bookAppointmentLink: PropTypes.exact(Link.propTypes)\r\n};\r\n\r\nHeaderInner.propTypesMeta = 'exclude';\r\n\r\nHeaderInner.defaultProps = {\r\n mobileTopBarLinks: []\r\n};\r\n\r\nexport default HeaderInner;\r\n","import React, { useEffect, useContext, Fragment } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Collapse from 'react-tiny-collapse';\r\n\r\nimport ContentContainer from 'components/content-container';\r\nimport Cart from 'components/cart';\r\nimport GlobalSearch from 'components/global-search';\r\nimport Link from 'components/link';\r\nimport LoginModal from 'components/login-modal';\r\nimport MainNav from './main-nav';\r\nimport Modal from 'components/modal';\r\n\r\nimport ModalContext from '../../context/modal';\r\n\r\nconst HeaderModals = ({\r\n isDesktop,\r\n isTablet,\r\n isMobile,\r\n cart,\r\n cartId,\r\n cartLink,\r\n loginModal,\r\n myPageLink,\r\n mainNavigation,\r\n search,\r\n searchId,\r\n onCartUpdate\r\n}) => {\r\n const modalContext = useContext(ModalContext);\r\n const ModalContentWrapper = isTablet ? 'div' : ContentContainer;\r\n\r\n useEffect(() => {\r\n if (!isMobile && modalContext.isMobileMenuOpen)\r\n modalContext.closeMobileMenu();\r\n }, [isMobile]);\r\n\r\n const hideMobileMenu = () => {\r\n modalContext.closeMobileMenu();\r\n };\r\n\r\n const toggleLogin = e => {\r\n e.preventDefault();\r\n modalContext.toggleLoginModal();\r\n };\r\n\r\n const hideModals = () => {\r\n modalContext.closeModals();\r\n };\r\n\r\n return (\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\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nHeaderModals.propTypes = {\r\n isDesktop: PropTypes.bool,\r\n isTablet: PropTypes.bool,\r\n isMobile: PropTypes.bool,\r\n cart: PropTypes.exact(Cart.propTypes),\r\n cartId: PropTypes.string,\r\n cartLink: PropTypes.exact(Link.propTypes),\r\n loginModal: PropTypes.exact(LoginModal.propTypes),\r\n myPageLink: PropTypes.exact(Link.propTypes),\r\n mainNavigation: PropTypes.exact(MainNav.propTypes),\r\n search: PropTypes.exact(GlobalSearch.propTypes),\r\n searchId: PropTypes.string,\r\n onCartUpdate: PropTypes.func\r\n};\r\n\r\nexport default HeaderModals;\r\n","import React, { useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport WithModalProvider from '../../hoc/with-modal-provider';\r\nimport useBreakpoints from 'hooks/use-breakpoints';\r\nimport Cart from 'components/cart';\r\nimport GlobalSearch from 'components/global-search';\r\nimport Link from 'components/link';\r\nimport LoginModal from 'components/login-modal';\r\nimport MainNav from './main-nav';\r\nimport HeaderInner from 'components/header/header-inner';\r\nimport HeaderModals from 'components/header/header-modals';\r\nimport AppointmentBookingModal from 'components/appointment-booking-modal/appointment-booking-modal';\r\nimport SiteInfoBanner from 'components/site-info-banner';\r\n\r\nconst Header = props => {\r\n const [numberOfProducts, setNumberOfProducts] = useState(\r\n props.numberOfProductsInCart\r\n );\r\n const { isDesktop, isTablet, isMobile } = useBreakpoints(true, true);\r\n\r\n const onCartUpdate = ({ numberOfProductsInCart }) => {\r\n if (typeof numberOfProductsInCart === 'number') {\r\n setNumberOfProducts(numberOfProductsInCart);\r\n }\r\n };\r\n\r\n const loginId = 'header-login-modal';\r\n const searchId = 'header-search-modal';\r\n const cartId = 'header-cart-modal';\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n \r\n
    \r\n );\r\n};\r\n\r\nHeader.propTypes = {\r\n cart: PropTypes.exact(Cart.propTypes),\r\n cartLink: PropTypes.exact(Link.propTypes),\r\n hideMenuText: PropTypes.string,\r\n isLoggedIn: PropTypes.bool,\r\n linkToHome: PropTypes.exact(Link.propTypes),\r\n loginModal: PropTypes.exact(LoginModal.propTypes),\r\n myPageLink: PropTypes.exact(Link.propTypes),\r\n mainNavigation: PropTypes.exact(MainNav.propTypes),\r\n mobileTopBarLinks: PropTypes.arrayOf(PropTypes.exact(Link.propTypes)),\r\n numberOfProductsInCart: PropTypes.number,\r\n phoneLink: PropTypes.exact(Link.propTypes),\r\n search: PropTypes.exact(GlobalSearch.propTypes),\r\n searchPageLink: PropTypes.exact(Link.propTypes),\r\n showMenuText: PropTypes.string,\r\n supportLink: PropTypes.exact(Link.propTypes),\r\n magazineLink: PropTypes.exact(Link.propTypes),\r\n appointmentBookingModalData: PropTypes.exact(\r\n AppointmentBookingModal.propTypes\r\n ),\r\n skipToMainText: PropTypes.string,\r\n showSiteInfoBanner: PropTypes.bool,\r\n siteInfoBanner: PropTypes.shape(SiteInfoBanner.propTypes)\r\n};\r\n\r\nHeader.defaultProps = {\r\n mobileTopBarLinks: []\r\n};\r\n\r\nexport default Header;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport FluidImage from 'components/fluid-image';\r\nimport ProductCard from 'components/product-card';\r\nimport ProductList from 'components/product-list';\r\nimport Text from 'components/text';\r\n\r\nconst editorThemes = {\r\n alignLeft: 'theme-align-left',\r\n alignRight: 'theme-align-right'\r\n};\r\n\r\nconst ImageAndProducts = ({ editorTheme, title, image, products }) => {\r\n const hasSingleProduct = products.length === 1;\r\n\r\n return (\r\n
    \r\n {title && (\r\n
    \r\n {title}\r\n
    \r\n )}\r\n \r\n
    \r\n \r\n
    \r\n
    \r\n {hasSingleProduct ? (\r\n \r\n ) : (\r\n = 3\r\n ? ProductList.sizes.twoColumns\r\n : ProductList.sizes.oneColumn\r\n }\r\n />\r\n )}\r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nImageAndProducts.propTypes = {\r\n title: PropTypes.string,\r\n editorTheme: PropTypes.oneOf(Object.values(editorThemes)),\r\n image: PropTypes.exact(FluidImage.propTypes),\r\n products: PropTypes.arrayOf(PropTypes.exact(ProductCard.propTypes))\r\n};\r\n\r\nImageAndProducts.defaultProps = {\r\n products: []\r\n};\r\n\r\nexport default ImageAndProducts;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\n\r\nimport InspirationalItem from './inspirational-item';\r\nimport Text from '../text';\r\n\r\nconst InspirationalItems = ({ items, title }) => {\r\n return (\r\n \r\n {title && (\r\n
    \r\n {title}\r\n
    \r\n )}\r\n {items && items.length > 0 && (\r\n
      \r\n {items.map((item, index) => {\r\n return (\r\n
    • \r\n \r\n
    • \r\n );\r\n })}\r\n
    \r\n )}\r\n \r\n );\r\n};\r\n\r\nInspirationalItems.propTypes = {\r\n title: PropTypes.string,\r\n items: PropTypes.arrayOf(PropTypes.exact(InspirationalItem.propTypes))\r\n};\r\n\r\nInspirationalItems.propTypesMeta = {};\r\n\r\nexport default InspirationalItems;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Link from 'components/link';\r\nimport OnPageEditing from 'components/on-page-editing';\r\nimport Text from 'components/text';\r\n\r\nconst LinkList = ({ items, OPE, title }) => (\r\n
    \r\n \r\n {title && {title}}\r\n \r\n\r\n \r\n
      \r\n {items.map(item => (\r\n
    • \r\n \r\n
    • \r\n ))}\r\n
    \r\n
    \r\n
    \r\n);\r\n\r\nLinkList.propTypes = {\r\n items: PropTypes.arrayOf(PropTypes.exact(Link.propTypes)),\r\n OPE: PropTypes.exact({\r\n items: PropTypes.string,\r\n title: PropTypes.string\r\n }),\r\n title: PropTypes.string\r\n};\r\n\r\nLinkList.defaultProps = {\r\n items: [],\r\n OPE: {}\r\n};\r\n\r\nexport default LinkList;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Link from '../link';\r\n\r\nconst LinkRow = ({ items }) => {\r\n return (\r\n
    \r\n
      \r\n {items.map(({ title, link }, index) => (\r\n
    • \r\n
      \r\n {title &&
      {title}
      }\r\n \r\n
      \r\n
    • \r\n ))}\r\n
    \r\n
    \r\n );\r\n};\r\n\r\nLinkRow.propTypes = {\r\n items: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n link: PropTypes.exact(Link.propTypes),\r\n title: PropTypes.string\r\n })\r\n )\r\n};\r\n\r\nLinkRow.defaultProps = {\r\n items: []\r\n};\r\n\r\nexport default LinkRow;\r\n","/* eslint-disable react/prop-types */\r\nimport React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Link from '../link';\r\nimport Icon from 'components/icon';\r\nimport cn from 'classnames';\r\n\r\nconst LinkToMainSite = ({ className, url, text }) => {\r\n return (\r\n \r\n \r\n {text && {text}}\r\n \r\n \r\n );\r\n};\r\n\r\nLinkToMainSite.propTypes = Object.assign({}, Link.propTypes, {\r\n className: PropTypes.string\r\n});\r\n\r\nLinkToMainSite.propTypesMeta = {\r\n className: 'exclude'\r\n};\r\n\r\nexport default LinkToMainSite;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport propTypeTheme from 'utils/prop-type-theme';\r\n\r\nimport Button from 'components/button';\r\nimport ContentContainer from 'components/content-container';\r\nimport Form from 'components/form';\r\nimport Link from 'components/link';\r\nimport PageSpinner from 'components/page-spinner';\r\nimport TextInput from 'components/text-input';\r\nimport Text from 'components/text';\r\nimport ValidationErrorTexts from 'components/validation-error-texts';\r\n\r\nconst themes = {\r\n maxi: 'theme-maxi',\r\n mini: 'theme-mini'\r\n};\r\n\r\nconst LoginForm = ({\r\n endpoint,\r\n forgotPassword,\r\n headingLevel,\r\n idPrefix,\r\n password,\r\n registerLink,\r\n registerLinkLabel,\r\n submitLabel,\r\n title,\r\n theme,\r\n userId,\r\n validationErrors\r\n}) => {\r\n const Wrapper = theme === themes.maxi ? ContentContainer : 'div';\r\n\r\n return (\r\n \r\n \r\n {title}\r\n \r\n\r\n \r\n {({ isLoading }) => (\r\n \r\n \r\n\r\n \r\n \r\n\r\n {forgotPassword && (\r\n \r\n )}\r\n\r\n \r\n \r\n )}\r\n \r\n\r\n
    \r\n

    {registerLinkLabel}

    \r\n
    \r\n \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nLoginForm.propTypes = {\r\n endpoint: PropTypes.string,\r\n forgotPassword: PropTypes.exact(Link.propTypes),\r\n headingLevel: PropTypes.number,\r\n idPrefix: PropTypes.string,\r\n password: PropTypes.exact(TextInput.propTypes),\r\n registerLink: PropTypes.exact(Link.propTypes),\r\n registerLinkLabel: PropTypes.string,\r\n submitLabel: PropTypes.string,\r\n title: PropTypes.string,\r\n theme: propTypeTheme(themes),\r\n userId: PropTypes.exact(TextInput.propTypes),\r\n validationErrors: PropTypes.exact(ValidationErrorTexts.propTypes)\r\n};\r\n\r\nLoginForm.propTypesMeta = {\r\n headingLevel: 'exclude',\r\n idPrefix: 'exclude',\r\n theme: 'exclude'\r\n};\r\n\r\nLoginForm.defaultProps = {\r\n headingLevel: 1\r\n};\r\n\r\nLoginForm.themes = themes;\r\n\r\nexport default LoginForm;\r\n","import React from 'react';\r\n\r\nimport LoginForm from '../login-form';\r\n\r\nconst LoginPage = props => (\r\n
    \r\n \r\n
    \r\n);\r\n\r\nLoginPage.propTypes = LoginForm.propTypes;\r\n\r\nexport default LoginPage;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Link from '../link';\r\nimport Image from 'components/image/image';\r\nimport cn from 'classnames';\r\n\r\nconst Logo = ({ className, imageClassName, link, image }) => {\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nLogo.propTypes = {\r\n className: PropTypes.string,\r\n imageClassName: PropTypes.string,\r\n image: PropTypes.exact(Image.propTypes).isRequired,\r\n link: PropTypes.exact(Link.propTypes).isRequired\r\n};\r\n\r\nLogo.propTypesMeta = {\r\n className: 'exclude',\r\n imageClassName: 'exclude'\r\n};\r\n\r\nexport default Logo;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Logo from 'components/logo';\r\nimport RichText from 'components/rich-text';\r\nimport LinkToMainSite from 'components/link-to-main-site';\r\nimport ContentContainer from 'components/content-container';\r\n\r\nconst MagazineFooter = ({\r\n linkToMainSite,\r\n logo,\r\n textHtmlcolumn1,\r\n textHtmlcolumn2,\r\n textHtmlcolumn3\r\n}) => {\r\n return (\r\n
    \r\n \r\n
    \r\n {logo && }\r\n\r\n {textHtmlcolumn1 && (\r\n \r\n )}\r\n
    \r\n
    \r\n {textHtmlcolumn2 && (\r\n \r\n )}\r\n
    \r\n
    \r\n {textHtmlcolumn3 && (\r\n \r\n )}\r\n
    \r\n\r\n {linkToMainSite && (\r\n \r\n )}\r\n
    \r\n
    \r\n );\r\n};\r\n\r\nMagazineFooter.propTypes = {\r\n linkToMainSite: PropTypes.exact(LinkToMainSite.propTypes).isRequired,\r\n logo: PropTypes.exact(Logo.propTypes).isRequired,\r\n textHtmlcolumn1: PropTypes.string,\r\n textHtmlcolumn2: PropTypes.string,\r\n textHtmlcolumn3: PropTypes.string\r\n};\r\n\r\nexport default MagazineFooter;\r\n","import React, { useContext } from 'react';\r\nimport ModalContext from '../../context/modal';\r\nimport Icon from 'components/icon';\r\nimport Link from 'components/link';\r\nimport PropTypes from 'prop-types';\r\nimport Modal from 'components/modal';\r\nimport Collapse from 'react-tiny-collapse';\r\nimport GlobalSearch from 'components/global-search';\r\n\r\nconst MagazineHeaderSearch = ({ searchId, search, searchPageLink }) => {\r\n const modalContext = useContext(ModalContext);\r\n\r\n const hideModals = () => {\r\n modalContext.closeModals();\r\n };\r\n\r\n const toggleSearch = e => {\r\n e.preventDefault();\r\n modalContext.toggleSearchModal();\r\n };\r\n\r\n return (\r\n
    \r\n {searchPageLink && (\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\nMagazineHeaderSearch.propTypes = {\r\n searchId: PropTypes.string,\r\n searchPageLink: PropTypes.exact(Link.propTypes),\r\n search: PropTypes.exact(GlobalSearch.propTypes)\r\n};\r\n\r\nMagazineHeaderSearch.propTypesMeta = {};\r\n\r\nexport default MagazineHeaderSearch;\r\n","/* eslint-disable react/prop-types */\r\nimport React from 'react';\r\nimport Link from 'components/link';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst MagazineHeaderCTA = ({ url, text, onClick }) => {\r\n return (\r\n \r\n );\r\n};\r\n\r\nMagazineHeaderCTA.propTypes = Object.assign({}, Link.propTypes, {\r\n onClick: PropTypes.func\r\n});\r\n\r\nMagazineHeaderCTA.propTypesMeta = 'exclude';\r\n\r\nexport default MagazineHeaderCTA;\r\n","import React, { useContext } from 'react';\r\nimport ModalContext from '../../context/modal';\r\nimport Link from 'components/link';\r\nimport PropTypes from 'prop-types';\r\nimport AppointmentBookingModal from 'components/appointment-booking-modal/appointment-booking-modal';\r\n\r\nimport MagazineHeaderCTA from './magazine-header-cta';\r\n\r\nconst MagazineHeaderAppointment = ({\r\n bookAppointmentLink,\r\n appointmentBookingModalData\r\n}) => {\r\n const modalContext = useContext(ModalContext);\r\n\r\n const toggleModal = e => {\r\n e.preventDefault();\r\n modalContext.toggleAppointmentBookingModal();\r\n };\r\n\r\n return (\r\n <>\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nMagazineHeaderAppointment.propTypes = {\r\n bookAppointmentLink: PropTypes.exact(Link.propTypes),\r\n appointmentBookingModalData: PropTypes.exact(\r\n AppointmentBookingModal.propTypes\r\n )\r\n};\r\n\r\nMagazineHeaderAppointment.propTypesMeta = 'exclude';\r\n\r\nexport default MagazineHeaderAppointment;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport WithModalProvider from '../../hoc/with-modal-provider';\r\nimport MagazineHeaderSearch from './magazine-header-search';\r\nimport ContentContainer from 'components/content-container';\r\nimport LinkToMainSite from 'components/link-to-main-site';\r\nimport Logo from 'components/logo';\r\nimport Link from 'components/link';\r\nimport AppointmentBookingModal from 'components/appointment-booking-modal/appointment-booking-modal';\r\nimport MagazineHeaderAppointment from './magazine-header-appointment';\r\nimport MagazineHeaderCTA from './magazine-header-cta';\r\n\r\nconst MagazineHeader = ({\r\n linkToMainSite,\r\n logo,\r\n headerSearch,\r\n findStoreLink,\r\n bookAppointmentLink,\r\n appointmentBookingModalData\r\n}) => {\r\n return (\r\n
    \r\n
    \r\n \r\n {linkToMainSite && (\r\n \r\n )}\r\n\r\n \r\n {(findStoreLink || bookAppointmentLink) && (\r\n
    \r\n {findStoreLink && }\r\n {bookAppointmentLink && (\r\n \r\n )}\r\n
    \r\n )}\r\n \r\n
    \r\n
    \r\n
    \r\n {logo && logo.link && (\r\n \r\n \r\n \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nMagazineHeader.propTypes = {\r\n linkToMainSite: PropTypes.exact(LinkToMainSite.propTypes).isRequired,\r\n bookAppointmentLink: PropTypes.exact(Link.propTypes),\r\n findStoreLink: PropTypes.exact(Link.propTypes),\r\n appointmentBookingModalData: PropTypes.exact(\r\n AppointmentBookingModal.propTypes\r\n ),\r\n logo: PropTypes.exact(Logo.propTypes).isRequired,\r\n headerSearch: PropTypes.exact(MagazineHeaderSearch.propTypes)\r\n};\r\n\r\nMagazineHeader.defaultProps = {};\r\n\r\nexport default MagazineHeader;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\n\r\nconst TagItem = ({ id, value, label, isSelected, onChange, isDisabled }) => {\r\n const handleChange = () => {\r\n onChange({ value: value });\r\n };\r\n\r\n return (\r\n
    \r\n \r\n {label}\r\n \r\n
    \r\n );\r\n};\r\n\r\nTagItem.propTypes = {\r\n id: PropTypes.string,\r\n value: PropTypes.string.isRequired,\r\n label: PropTypes.string.isRequired,\r\n isSelected: PropTypes.bool,\r\n onChange: PropTypes.func,\r\n isDisabled: PropTypes.bool\r\n};\r\n\r\nTagItem.propTypesMeta = {\r\n inputName: 'exclude',\r\n id: 'exclude',\r\n isDisabled: 'exclude'\r\n};\r\n\r\nexport default TagItem;\r\n","import React, { useState, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport TagItem from 'components/tag-item';\r\n\r\nconst TagFilter = ({\r\n options = [],\r\n name,\r\n clearLabel,\r\n multiselect = false,\r\n onChange = () => {}\r\n}) => {\r\n const [clearOption, setClearOption] = useState(\r\n clearLabel ? { label: clearLabel, value: '' } : null\r\n );\r\n const [optionsMap, setOptions] = useState(\r\n new Map(options.map(o => [o.value, o]))\r\n );\r\n\r\n useEffect(() => {\r\n if (clearOption) {\r\n clearOption.isSelected = ![...optionsMap.values()].find(\r\n o => o.isSelected\r\n );\r\n setClearOption(Object.assign({}, clearOption));\r\n }\r\n }, [optionsMap]);\r\n\r\n const refreshOptions = () => {\r\n setOptions(new Map(optionsMap));\r\n };\r\n\r\n const handleClearOptionChange = () => {\r\n for (var option of optionsMap.values()) {\r\n option.isSelected = false;\r\n }\r\n refreshOptions();\r\n onChange({\r\n options: [],\r\n selectedValues: [],\r\n value: null\r\n });\r\n };\r\n\r\n const handleOptionChange = e => {\r\n var targetOption = optionsMap.get(e.value);\r\n if (!multiselect && targetOption.isSelected) return;\r\n\r\n targetOption.isSelected = !targetOption.isSelected;\r\n if (!multiselect && targetOption.isSelected) {\r\n for (var option of optionsMap.values()) {\r\n option.isSelected = option === targetOption;\r\n }\r\n }\r\n refreshOptions();\r\n const options = [...optionsMap.values()];\r\n const selectedValues = options.filter(o => o.isSelected).map(o => o.value);\r\n const value = (options.find(o => o.isSelected) || {}).value || null;\r\n onChange({\r\n options: options,\r\n selectedValues: selectedValues,\r\n value: value\r\n });\r\n };\r\n\r\n return (\r\n
    \r\n
      \r\n {clearOption && (\r\n
    • \r\n \r\n
    • \r\n )}\r\n {[...optionsMap.values()].map((option, index) => (\r\n
    • \r\n \r\n
    • \r\n ))}\r\n
    \r\n
    \r\n );\r\n};\r\n\r\nTagFilter.propTypes = {\r\n name: PropTypes.string.isRequired,\r\n multiselect: PropTypes.bool,\r\n options: PropTypes.arrayOf(PropTypes.exact(TagItem.propTypes)),\r\n clearLabel: PropTypes.string,\r\n onChange: PropTypes.func\r\n};\r\n\r\nTagFilter.propTypesMeta = {\r\n multiselect: 'exclude'\r\n};\r\nexport default TagFilter;\r\n","import React, { useState, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport FluidImage from 'components/fluid-image';\r\nimport ContentContainer from 'components/content-container';\r\nimport TagFilter from 'components/tag-filter';\r\nimport MagazineListItem from 'components/magazine-list-item';\r\nimport InfiniteScroll from 'react-infinite-scroll-component';\r\n\r\nconst MagazineLandingPage = ({ heroImage, tagFilter, listItems }) => {\r\n const [selectedTags, setSelectedTags] = useState([]);\r\n const [items, setItems] = useState([...listItems]);\r\n const [list, setList] = useState([]);\r\n const numberItemsToLoad = 18;\r\n const onFelterChange = options => {\r\n setSelectedTags(options.selectedValues);\r\n };\r\n\r\n const filterItemsByTags = tagsArr => {\r\n let tmpList = [...listItems];\r\n\r\n if (tagsArr.length > 0) {\r\n let filteredList = tmpList.filter(function(item) {\r\n return tagsArr.indexOf(item.category) > -1;\r\n });\r\n\r\n setItems(filteredList);\r\n } else {\r\n setItems(tmpList);\r\n }\r\n };\r\n\r\n const getNthItem = (index, nth) => {\r\n return index % nth === nth - 1;\r\n };\r\n\r\n useEffect(() => {\r\n filterItemsByTags(selectedTags);\r\n }, [selectedTags]);\r\n\r\n useEffect(() => {\r\n setList(items.slice(0, numberItemsToLoad));\r\n }, [items]);\r\n\r\n const fakeFetchMoreData = () => {\r\n const currentLength = list.length;\r\n\r\n setList(\r\n list.concat(items.slice(currentLength, numberItemsToLoad + currentLength))\r\n );\r\n };\r\n\r\n return (\r\n
    \r\n {heroImage && (\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 {list.map((listItem, index) => {\r\n let textPosition = null;\r\n\r\n if (getNthItem(index, 6)) {\r\n textPosition = 'left';\r\n }\r\n\r\n if (getNthItem(index, 12)) {\r\n textPosition = 'right';\r\n }\r\n\r\n return (\r\n \r\n \r\n
    \r\n );\r\n })}\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nMagazineLandingPage.propTypes = {\r\n heroImage: PropTypes.exact(FluidImage.propTypes),\r\n tagFilter: PropTypes.exact(TagFilter.propTypes).isRequired,\r\n listItems: PropTypes.arrayOf(PropTypes.exact(MagazineListItem.propTypes))\r\n};\r\n\r\nMagazineLandingPage.defaultProps = {};\r\n\r\nexport default MagazineLandingPage;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport PageHeader from 'components/page-header';\r\nimport ComponentList from 'components/component-list';\r\nimport ContentContainer from 'components/content-container';\r\nimport MagazineRelatedPages from 'components/magazine-related-pages/magazine-related-pages';\r\n\r\nconst MagazineSectionPage = ({ header, blocks, relatedPages }) => {\r\n return (\r\n
    \r\n {header && }\r\n \r\n
    \r\n {blocks && }\r\n
    \r\n\r\n {relatedPages && }\r\n
    \r\n
    \r\n );\r\n};\r\n\r\nMagazineSectionPage.propTypes = {\r\n header: PropTypes.exact(PageHeader.propTypes),\r\n blocks: PropTypes.exact(ComponentList.propTypes),\r\n relatedPages: PropTypes.exact(MagazineRelatedPages.propTypes)\r\n};\r\n\r\nMagazineSectionPage.defaultProps = {};\r\n\r\nexport default MagazineSectionPage;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport StoreMap from 'components/store-map';\r\n\r\nconst MapBlock = ({ storeMap }) => (\r\n
    \r\n \r\n
    \r\n);\r\n\r\nMapBlock.propTypes = {\r\n storeMap: PropTypes.exact(StoreMap.propTypes)\r\n};\r\n\r\nexport default MapBlock;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport messenger from 'utils/messenger';\r\n\r\nimport TinyTransition from 'react-tiny-transition';\r\n\r\nimport Button from '../button';\r\nimport ContentContainer from '../content-container';\r\nimport Icon from '../icon';\r\n\r\nclass Message extends React.Component {\r\n static propTypes = {\r\n numberOfSecondsToShowMessage: PropTypes.number,\r\n isErrorMessage: PropTypes.bool,\r\n text: PropTypes.string\r\n };\r\n\r\n static defaultProps = {\r\n numberOfSecondsToShowMessage: 10\r\n };\r\n\r\n state = {\r\n isErrorMessage: this.props.isErrorMessage,\r\n isVisible: false,\r\n text: this.props.text\r\n };\r\n\r\n show = ({ message, isErrorMessage }) => {\r\n this.setState(\r\n { isVisible: !!message, isErrorMessage, text: message },\r\n\r\n () => {\r\n if (this.state.isErrorMessage) return;\r\n\r\n setTimeout(() => {\r\n this.hide();\r\n }, this.props.numberOfSecondsToShowMessage * 1000);\r\n }\r\n );\r\n };\r\n\r\n hide = () => {\r\n this.setState({ isVisible: false });\r\n };\r\n\r\n componentDidMount() {\r\n if (this.props.text) {\r\n this.show({\r\n message: this.props.text,\r\n isErrorMessage: this.props.isErrorMessage\r\n });\r\n }\r\n\r\n messenger.onErrorMessage(({ message }) => {\r\n this.show({ message, isErrorMessage: true });\r\n });\r\n\r\n messenger.onMessage(({ message }) => {\r\n this.show({ message, isErrorMessage: false });\r\n });\r\n\r\n messenger.onHideMessage(() => this.hide());\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n {this.state.isVisible && (\r\n \r\n \r\n
    \r\n

    {this.state.text}

    \r\n \r\n \r\n \r\n
    \r\n
    \r\n \r\n )}\r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default Message;\r\n","import React from 'react';\r\nimport FluidImage from 'components/fluid-image';\r\nimport ProductCard from 'components/product-card';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\n\r\nconst formats = {\r\n squareSmall: 'square-small',\r\n square: 'square-big',\r\n tall: 'tall', //not supported for the product\r\n rectangle: 'rectangle'\r\n};\r\n\r\nconst MoodboardBlockItem = ({\r\n text,\r\n format = formats.squareSmall,\r\n image,\r\n product\r\n}) => {\r\n return (\r\n \r\n
    \r\n {product ? (\r\n \r\n ) : (\r\n <>\r\n {image && (\r\n \r\n )}\r\n {text &&
    {text}
    }\r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nMoodboardBlockItem.propTypes = {\r\n text: PropTypes.string,\r\n image: PropTypes.exact(FluidImage.propTypes),\r\n format: PropTypes.oneOf(Object.values(formats)).isRequired,\r\n product: PropTypes.exact(ProductCard.propTypes)\r\n};\r\n\r\nexport default MoodboardBlockItem;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport MoodboardBlockItem from './moodboard-block-item';\r\nimport Masonry from 'react-masonry-component';\r\nimport Text from 'components/text';\r\n\r\nconst masonryOptions = {\r\n columnWidth: '.moodboard-block__sizer',\r\n itemSelector: '.moodboard-block__item',\r\n gutter: 10,\r\n percentPosition: true,\r\n isFitWidth: false,\r\n transitionDuration: 0,\r\n horizontal: false,\r\n rowHeight: 0,\r\n stagger: 0\r\n};\r\n\r\nconst MoodboardBlock = ({ title, items }) => {\r\n return (\r\n
    \r\n {title && (\r\n \r\n {title}\r\n \r\n )}\r\n {items && (\r\n \r\n
    \r\n {items.map((item, i) => {\r\n return ;\r\n })}\r\n \r\n )}\r\n
    \r\n );\r\n};\r\n\r\nMoodboardBlock.propTypes = {\r\n title: PropTypes.string,\r\n items: PropTypes.arrayOf(PropTypes.exact(MoodboardBlockItem.propTypes))\r\n};\r\n\r\nexport default MoodboardBlock;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Icon from '../icon';\r\nimport Text from 'components/text';\r\n\r\nconst MyConsents = ({ consentList }) => (\r\n \r\n {consentList.map(consent => {\r\n return (\r\n
  • \r\n \r\n {consent.text}\r\n
  • \r\n );\r\n })}\r\n
    \r\n);\r\n\r\nMyConsents.propTypes = {\r\n consentList: PropTypes.arrayOf(\r\n PropTypes.exact({ id: PropTypes.string, text: PropTypes.string })\r\n )\r\n};\r\n\r\nMyConsents.defaultProps = {\r\n consentList: []\r\n};\r\n\r\nexport default MyConsents;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Link from '../link';\r\n\r\nconst MyOrdersItem = ({\r\n columnLabels,\r\n date,\r\n id,\r\n orderNumber,\r\n status,\r\n packageTrackingLink\r\n}) => (\r\n \r\n \r\n {columnLabels[0]}\r\n {date}\r\n \r\n \r\n {orderNumber && (\r\n \r\n {columnLabels[1]}\r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n {columnLabels[2]}\r\n {status}\r\n \r\n \r\n {packageTrackingLink && (\r\n \r\n \r\n \r\n \r\n \r\n )}\r\n \r\n \r\n);\r\n\r\nMyOrdersItem.propTypes = {\r\n columnLabels: PropTypes.arrayOf(PropTypes.string),\r\n date: PropTypes.string,\r\n id: PropTypes.string, // NOTE: Used as key in MyOrders\r\n orderNumber: PropTypes.exact(Link.propTypes),\r\n status: PropTypes.string,\r\n packageTrackingLink: PropTypes.exact(Link.propTypes)\r\n};\r\n\r\nMyOrdersItem.propTypesMeta = {\r\n columnLabels: 'exclude'\r\n};\r\n\r\nMyOrdersItem.defaultProps = {\r\n columnLabels: []\r\n};\r\n\r\nexport default MyOrdersItem;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Collapse from 'react-tiny-collapse';\r\n\r\nimport Button from '../button';\r\nimport MyOrdersItem from './my-orders-item';\r\nimport Text from 'components/text';\r\n\r\nclass MyOrders extends React.Component {\r\n static propTypes = {\r\n columnLabels: PropTypes.arrayOf(PropTypes.string),\r\n collapseLabel: PropTypes.string,\r\n expandLabel: PropTypes.string,\r\n showExpandButton: PropTypes.bool,\r\n maxLength: PropTypes.number,\r\n rows: PropTypes.arrayOf(PropTypes.exact(MyOrdersItem.propTypes)),\r\n title: PropTypes.string\r\n };\r\n\r\n static defaultProps = {\r\n columnLabels: [],\r\n maxLength: 3,\r\n showExpandButton: true,\r\n rows: []\r\n };\r\n\r\n state = {\r\n isExpanded: !this.props.showExpandButton\r\n };\r\n\r\n toggle = () => {\r\n this.setState(state => ({ isExpanded: !state.isExpanded }));\r\n };\r\n\r\n render() {\r\n const visibleRows = this.props.rows.slice(0, this.props.maxLength);\r\n const hiddenRows = this.props.rows.slice(\r\n this.props.maxLength,\r\n this.props.rows.length\r\n );\r\n\r\n return (\r\n
    \r\n \r\n \r\n \r\n \r\n {this.props.columnLabels.map(label => (\r\n \r\n {label}\r\n \r\n ))}\r\n \r\n \r\n \r\n {visibleRows\r\n .concat(this.state.isExpanded ? hiddenRows : [])\r\n .map(row => (\r\n \r\n ))}\r\n \r\n
    \r\n
    \r\n
    \r\n\r\n {this.props.showExpandButton && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default MyOrders;\r\n","import React, { useState, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport userAddressHandler from 'js/user-address-handler';\r\nimport findNearestShops from 'js/find-nearest-shops';\r\nimport Select from 'components/select';\r\n\r\nconst SelectSortedOnGeoLocation = props => {\r\n const [shopsState, setShopsState] = useState([]);\r\n const [userCoords, setUserCoords] = useState({});\r\n\r\n const updateUserAddressInfo = () => {\r\n userAddressHandler.handle(\r\n props.userAddress,\r\n props.googleMapsApiKey,\r\n false,\r\n function(coords) {\r\n setUserCoords(coords);\r\n }\r\n );\r\n };\r\n\r\n // here we update shops model\r\n // we leave only needed values for select\r\n // such as label and value\r\n // key name renamed to label to support select component\r\n const setShops = shops => {\r\n const shopsArr = [];\r\n for (let shop of shops) {\r\n let newShop = {\r\n label: shop.name,\r\n value: shop.value\r\n };\r\n shopsArr.push(newShop);\r\n }\r\n setShopsState(shopsArr);\r\n };\r\n\r\n const seeNearestShops = () => {\r\n const limit = 25;\r\n const nearestShopsNum = 10;\r\n findNearestShops(\r\n userCoords,\r\n props.options,\r\n limit,\r\n nearestShopsNum,\r\n props.googleMapsApiKey\r\n ).then(shopsResult => {\r\n setShops(shopsResult);\r\n });\r\n };\r\n\r\n useEffect(() => {\r\n updateUserAddressInfo();\r\n }, []);\r\n\r\n useEffect(() => {\r\n // in case when we do not have any data we return null\r\n // in this case find-nearest-shops will sort shops in alph order\r\n // otherwise we always have lat and long\r\n if (\r\n userCoords === null ||\r\n (userCoords && userCoords.latitude && userCoords.longitude)\r\n )\r\n seeNearestShops();\r\n }, [userCoords]);\r\n\r\n return (\r\n
    \r\n \r\n
    \r\n );\r\n};\r\n\r\nSelectSortedOnGeoLocation.propTypes = {\r\n userAddress: PropTypes.shape({\r\n endpoint: PropTypes.string,\r\n address: PropTypes.string,\r\n latitude: PropTypes.string,\r\n longitude: PropTypes.string\r\n }),\r\n onSelectShop: PropTypes.func,\r\n placeholder: PropTypes.string,\r\n name: PropTypes.string.isRequired,\r\n idPrefix: PropTypes.string,\r\n googleMapsApiKey: PropTypes.string,\r\n options: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n name: PropTypes.string.isRequired,\r\n value: PropTypes.string.isRequired,\r\n latitude: PropTypes.string.isRequired,\r\n longitude: PropTypes.string.isRequired,\r\n distance: PropTypes.number\r\n })\r\n )\r\n};\r\n\r\nexport default SelectSortedOnGeoLocation;\r\n","import React, { useState, useCallback } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport api from '../../js/api-helper';\r\n\r\nimport Icon from '../icon';\r\nimport PageSpinner from '../page-spinner';\r\nimport Button from '../button';\r\nimport TextInput from '../text-input';\r\nimport SelectSortedOnGeoLocation from 'components/select-sorted-on-geolocation';\r\n\r\nconst MyStore = ({\r\n selectedStoreText,\r\n toggleText,\r\n nearestShops,\r\n submitEndpoint,\r\n textInput,\r\n isInitiallyOpen,\r\n submitButtonText\r\n}) => {\r\n const [text, setText] = useState(selectedStoreText);\r\n const [shopId, setShopId] = useState('');\r\n const [state, setState] = useState({\r\n isOpen: isInitiallyOpen,\r\n isLoading: false\r\n });\r\n\r\n const handleOnSave = () => {\r\n setState({ ...state, isLoading: true });\r\n\r\n api.execute(submitEndpoint, { shopId }).then(() => {\r\n setState({ ...state, isLoading: false, isOpen: false });\r\n });\r\n };\r\n\r\n const onSelectShop = useCallback(shopId => {\r\n const selectedShop = nearestShops.options.find(o => o.value === shopId);\r\n setText(selectedShop.name);\r\n setShopId(selectedShop.value);\r\n });\r\n\r\n return (\r\n <>\r\n
    \r\n {!state.isOpen && (\r\n <>\r\n
    \r\n \r\n
    {text}
    \r\n
    \r\n
    \r\n setState({ isOpen: true })}\r\n themes={[Button.themes.link]}\r\n >\r\n {toggleText}\r\n \r\n
    \r\n \r\n )}\r\n {state.isOpen && (\r\n <>\r\n
    \r\n setText(value)}\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\nMyStore.propTypes = {\r\n selectedStoreText: PropTypes.string,\r\n toggleText: PropTypes.string,\r\n isInitiallyOpen: PropTypes.bool,\r\n submitEndpoint: PropTypes.string,\r\n submitButtonText: PropTypes.string,\r\n textInput: PropTypes.exact(TextInput.propTypes),\r\n nearestShops: PropTypes.exact(SelectSortedOnGeoLocation.propTypes)\r\n};\r\n\r\nMyStore.defaultProps = {};\r\n\r\nexport default MyStore;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Link from '../link';\r\nimport Text from 'components/text';\r\n\r\nconst MyPageSidebarSection = ({ children, ingress, link, title }) => (\r\n
    \r\n {title}\r\n {ingress}\r\n {children}\r\n {link && (\r\n \r\n \r\n \r\n )}\r\n
    \r\n);\r\n\r\nMyPageSidebarSection.propTypes = {\r\n children: PropTypes.node,\r\n ingress: PropTypes.string,\r\n link: PropTypes.exact(Link.propTypes),\r\n title: PropTypes.string\r\n};\r\n\r\nexport default MyPageSidebarSection;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Text from 'components/text';\r\n\r\nconst OrderListItem = ({ amount, details, product, productDescription }) => (\r\n \r\n \r\n
    \r\n {product}\r\n {productDescription}\r\n
    \r\n\r\n {details && (\r\n
    \r\n {details.map(({ label, value }) => (\r\n \r\n
    {label}
    \r\n
    {value}
    \r\n \r\n ))}\r\n
    \r\n )}\r\n \r\n\r\n {amount && (\r\n \r\n {amount}\r\n \r\n )}\r\n \r\n);\r\n\r\nOrderListItem.propTypes = {\r\n amount: PropTypes.number,\r\n details: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n label: PropTypes.string,\r\n value: PropTypes.string\r\n })\r\n ),\r\n product: PropTypes.string,\r\n productDescription: PropTypes.string\r\n};\r\n\r\nexport default OrderListItem;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Link from 'components/link';\r\nimport OrderListItem from './order-list-item';\r\nimport Text from 'components/text';\r\n\r\nconst OrderList = ({ columnLabels, orderAgain, rows }) => (\r\n
    \r\n \r\n \r\n \r\n {columnLabels.map(label => (\r\n \r\n {label}\r\n \r\n ))}\r\n \r\n \r\n\r\n \r\n {rows.map((row, i) => (\r\n \r\n ))}\r\n \r\n
    \r\n\r\n
    \r\n {orderAgain && (\r\n \r\n )}\r\n
    \r\n
    \r\n);\r\n\r\nOrderList.defaultProps = {\r\n columnLabels: [],\r\n rows: []\r\n};\r\n\r\nOrderList.propTypes = {\r\n columnLabels: PropTypes.arrayOf(PropTypes.string),\r\n orderAgain: PropTypes.exact(Link.propTypes),\r\n rows: PropTypes.arrayOf(PropTypes.exact(OrderListItem.propTypes))\r\n};\r\n\r\nexport default OrderList;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Text from 'components/text';\r\n\r\nconst PersonalDetails = ({ items }) => (\r\n
    \r\n {items.map(detail => (\r\n \r\n \r\n {detail.tag}\r\n \r\n
    {detail.detail}
    \r\n
    \r\n ))}\r\n
    \r\n);\r\n\r\nPersonalDetails.propTypes = {\r\n items: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n id: PropTypes.string,\r\n tag: PropTypes.string,\r\n detail: PropTypes.string\r\n })\r\n )\r\n};\r\n\r\nPersonalDetails.defaultProps = {\r\n items: []\r\n};\r\n\r\nexport default PersonalDetails;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Appointments from '../appointments';\r\nimport MyStore from '../my-store';\r\nimport CustomerDataImportForm from '../customer-data-import-form';\r\nimport MyConsents from '../my-consents';\r\nimport MyPageSidebarSection from './my-page-sidebar-section';\r\nimport MyPageLayout from '../my-page-layout';\r\nimport Grid from '../grid';\r\nimport MyOrders from '../my-orders';\r\nimport MyPageSection from '../my-page-section';\r\nimport OrderList from '../order-list';\r\nimport PersonalDetails from '../personal-details';\r\nimport SelectSortedOnGeoLocation from 'components/select-sorted-on-geolocation';\r\n\r\nconst MyPage = ({\r\n myStore,\r\n myStoreSection,\r\n appointments,\r\n appointmentsSection,\r\n customerDataImport,\r\n customerDataImportSection,\r\n layout,\r\n orders,\r\n ordersSection,\r\n previousOrder,\r\n previousOrderSection,\r\n previousStorePurchase,\r\n previousStorePurchaseSection,\r\n consentList,\r\n consentListSection,\r\n personalDetails,\r\n personalDetailsSection,\r\n nearestShopsSection,\r\n nearestShops\r\n}) => {\r\n return (\r\n \r\n \r\n \r\n {customerDataImport && (\r\n \r\n \r\n \r\n )}\r\n {previousStorePurchase && (\r\n \r\n \r\n \r\n )}\r\n {previousOrder && (\r\n \r\n \r\n \r\n )}\r\n {orders && (\r\n \r\n \r\n \r\n )}\r\n \r\n\r\n \r\n
    \r\n {myStore && (\r\n \r\n \r\n \r\n )}\r\n {appointments && (\r\n \r\n \r\n \r\n )}\r\n {consentList && (\r\n \r\n \r\n \r\n )}\r\n {personalDetails && (\r\n \r\n \r\n \r\n )}\r\n {personalDetails && (\r\n \r\n \r\n \r\n )}\r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nMyPage.propTypes = {\r\n myStore: PropTypes.exact(MyStore.propTypes),\r\n myStoreSection: PropTypes.exact(MyPageSidebarSection.propTypes),\r\n appointments: PropTypes.exact(Appointments.propTypes),\r\n appointmentsSection: PropTypes.exact(MyPageSidebarSection.propTypes),\r\n customerDataImportSection: PropTypes.exact(MyPageSection.propTypes),\r\n customerDataImport: PropTypes.exact(CustomerDataImportForm.propTypes),\r\n layout: PropTypes.exact(MyPageLayout.propTypes),\r\n orders: PropTypes.exact(MyOrders.propTypes),\r\n ordersSection: PropTypes.exact(MyPageSection.propTypes),\r\n previousStorePurchase: PropTypes.exact(OrderList.propTypes),\r\n previousStorePurchaseSection: PropTypes.exact(MyPageSection.propTypes),\r\n previousOrder: PropTypes.exact(OrderList.propTypes),\r\n previousOrderSection: PropTypes.exact(MyPageSection.propTypes),\r\n consentList: PropTypes.exact(MyConsents.propTypes),\r\n consentListSection: PropTypes.exact(MyPageSidebarSection.propTypes),\r\n personalDetails: PropTypes.exact(PersonalDetails.propTypes),\r\n personalDetailsSection: PropTypes.exact(MyPageSidebarSection.propTypes),\r\n nearestShopsSection: PropTypes.exact(MyPageSidebarSection.propTypes),\r\n nearestShops: PropTypes.exact(SelectSortedOnGeoLocation.propTypes)\r\n};\r\n\r\nexport default MyPage;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Link from 'components/link';\r\nimport Text from 'components/text';\r\nimport MyStore from 'components/my-store';\r\n\r\nconst MyStoreBanner = ({ title, lead, myStore }) => (\r\n
    \r\n {title && {title}}\r\n {lead && {lead}}\r\n \r\n
    \r\n);\r\n\r\nMyStoreBanner.propTypes = {\r\n link: PropTypes.exact(Link.propTypes),\r\n title: PropTypes.string,\r\n lead: PropTypes.string,\r\n myStore: PropTypes.exact(MyStore.propTypes)\r\n};\r\n\r\nexport default MyStoreBanner;\r\n","/* eslint-disable react/prop-types */\r\nimport React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport NewsletterForm from 'components/newsletter-form';\r\nimport cn from 'classnames';\r\n\r\nconst themes = {\r\n full: 'theme-full',\r\n small: 'theme-small',\r\n compact: 'theme-compact'\r\n};\r\n\r\nconst colors = {\r\n cyan: 'cyan',\r\n gray: 'gray',\r\n orange: 'orange',\r\n cold: 'cold',\r\n clinical: 'clinical',\r\n blue: 'blue',\r\n nude: 'nude',\r\n mint: 'mint',\r\n purple: 'purple'\r\n};\r\n\r\nconst NewsletterFormBlock = ({ ...props }) => {\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nNewsletterFormBlock.propTypes = Object.assign({}, NewsletterForm.propTypes, {\r\n color: PropTypes.oneOf(Object.values(colors)),\r\n theme: PropTypes.oneOf(Object.values(themes))\r\n});\r\n\r\nNewsletterFormBlock.themes = themes;\r\n\r\nexport default NewsletterFormBlock;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst OpeningHoursMeta = ({\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\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\nOpeningHoursMeta.propTypes = {\r\n monday: PropTypes.string,\r\n tuesday: PropTypes.string,\r\n wednesday: PropTypes.string,\r\n thursday: PropTypes.string,\r\n friday: PropTypes.string,\r\n saturday: PropTypes.string,\r\n sunday: PropTypes.string\r\n};\r\n\r\nexport default OpeningHoursMeta;\r\n","import React, { useState, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Text from '../text';\r\nimport RichText from '../rich-text';\r\nimport BookingLink from '../booking-link';\r\nimport Button from '../button';\r\nimport Image from '../image';\r\nimport Collapse from 'react-tiny-collapse';\r\n\r\nconst Optician = ({\r\n image,\r\n title,\r\n subtitle,\r\n bodyText,\r\n readMoreLabel,\r\n textThresholdInNumberOfChars,\r\n bookingLink\r\n}) => {\r\n const [textIsExpanded, setTextIsExpanded] = useState(true);\r\n const [showReadMore, setShowReadMore] = useState(false);\r\n\r\n useEffect(() => {\r\n if (!bodyText) return undefined;\r\n\r\n const { text } = bodyText;\r\n\r\n if (text.length > textThresholdInNumberOfChars) {\r\n setShowReadMore(true);\r\n setTextIsExpanded(false);\r\n }\r\n }, []);\r\n\r\n return (\r\n
    \r\n
    \r\n {image && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n \r\n {title}\r\n \r\n
    \r\n
    \r\n {subtitle}\r\n
    \r\n {bodyText && (\r\n
    \r\n \r\n \r\n \r\n
    \r\n )}\r\n {showReadMore && (\r\n
    \r\n setTextIsExpanded(!textIsExpanded)}\r\n text={readMoreLabel}\r\n themes={[Button.themes.link]}\r\n />\r\n
    \r\n )}\r\n {bookingLink && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n
    \r\n );\r\n};\r\n\r\nOptician.propTypes = {\r\n image: PropTypes.exact(Image.propTypes),\r\n title: PropTypes.string.isRequired,\r\n subtitle: PropTypes.string.isRequired,\r\n bodyText: PropTypes.exact(RichText.propTypes),\r\n readMoreLabel: PropTypes.string,\r\n textThresholdInNumberOfChars: PropTypes.number,\r\n bookingLink: PropTypes.exact(BookingLink.propTypes)\r\n};\r\n\r\nOptician.defaultProps = {\r\n textThresholdInNumberOfChars: 200\r\n};\r\n\r\nOptician.propTypesMeta = {\r\n textThresholdInNumberOfChars: 'exclude'\r\n};\r\n\r\nexport default Optician;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Optician from './optician';\r\nimport ContentContainer from '../content-container';\r\nimport Text from '../text';\r\n\r\nconst OpticiansList = ({\r\n title,\r\n opticians,\r\n aboutTextThresholdInNumberOfChars\r\n}) => {\r\n if (!opticians) return null;\r\n\r\n return (\r\n \r\n
    \r\n
    \r\n {title}\r\n
    \r\n
      \r\n {opticians.map((optician, index) => (\r\n
    • \r\n \r\n
    • \r\n ))}\r\n
    \r\n
    \r\n
    \r\n );\r\n};\r\n\r\nOpticiansList.propTypes = {\r\n opticians: PropTypes.arrayOf(PropTypes.exact(Optician.propTypes)).isRequired,\r\n title: PropTypes.string,\r\n aboutTextThresholdInNumberOfChars: PropTypes.number\r\n};\r\n\r\nexport default OpticiansList;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Icon from 'components/icon';\r\nimport Link from 'components/link';\r\nimport Text from 'components/text';\r\n\r\nconst RegistrationBanner = ({ description, link, title }) => (\r\n
    \r\n {title}\r\n \r\n
      \r\n {description.map(text => (\r\n
    • \r\n \r\n {text}\r\n
    • \r\n ))}\r\n
    \r\n
    \r\n);\r\n\r\nRegistrationBanner.propTypes = {\r\n description: PropTypes.arrayOf(PropTypes.string),\r\n link: PropTypes.exact(Link.propTypes),\r\n title: PropTypes.string\r\n};\r\n\r\nexport default RegistrationBanner;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport isRunningOnClient from '@creuna/utils/is-running-on-client';\r\n\r\nimport api from 'js/api-helper';\r\n\r\nimport Button from 'components/button';\r\nimport Cart from 'components/cart';\r\nimport KlarnaIFrame from 'components/klarna-iframe';\r\nimport MyStoreBanner from 'components/my-store-banner';\r\nimport Link from 'components/link';\r\nimport MyPageSection from 'components/my-page-section';\r\nimport MyPageLayout from 'components/my-page-layout';\r\nimport RegistrationBanner from 'components/registration-banner';\r\n\r\nconst print = () => {\r\n window.print();\r\n};\r\n\r\nclass OrderSummary extends React.Component {\r\n static propTypes = {\r\n layout: PropTypes.exact(MyPageLayout.propTypes),\r\n getIframeEndpoint: PropTypes.string,\r\n orderAgain: PropTypes.exact(Link.propTypes),\r\n orderDetails: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n label: PropTypes.string,\r\n detail: PropTypes.string\r\n })\r\n ),\r\n cart: PropTypes.exact(Cart.propTypes),\r\n printLabel: PropTypes.string,\r\n section: PropTypes.exact(MyPageSection.propTypes),\r\n registrationBanner: PropTypes.exact(RegistrationBanner.propTypes),\r\n myStoreBanner: PropTypes.exact(MyStoreBanner.propTypes),\r\n orderConfirmationHeading: PropTypes.string,\r\n orderConfirmationDescription: PropTypes.string\r\n };\r\n\r\n static defaultProps = {\r\n orderDetails: []\r\n };\r\n\r\n state = {\r\n iframeHTML: null\r\n };\r\n\r\n componentDidMount() {\r\n if (this.props.getIframeEndpoint) {\r\n api.execute(this.props.getIframeEndpoint).then(({ iframeHTML }) => {\r\n this.setState({ iframeHTML });\r\n });\r\n }\r\n }\r\n\r\n render() {\r\n const {\r\n orderConfirmationHeading,\r\n orderConfirmationDescription\r\n } = this.props;\r\n\r\n return (\r\n \r\n \r\n {this.props.myStoreBanner && (\r\n
    \r\n \r\n
    \r\n )}\r\n {this.props.registrationBanner && (\r\n \r\n )}\r\n\r\n {orderConfirmationHeading && (\r\n

    \r\n {orderConfirmationHeading}\r\n

    \r\n )}\r\n {orderConfirmationDescription && (\r\n

    \r\n {orderConfirmationDescription}\r\n

    \r\n )}\r\n\r\n {this.state.iframeHTML && (\r\n \r\n )}\r\n
    \r\n \r\n \r\n \r\n {this.props.orderDetails.map(order => (\r\n \r\n ))}\r\n \r\n \r\n \r\n \r\n {this.props.orderDetails.map(order => (\r\n \r\n ))}\r\n \r\n \r\n
    {order.label}\r\n
    \r\n {order.label}\r\n {order.detail}\r\n
    \r\n
    \r\n \r\n
    \r\n {this.props.orderAgain && (\r\n \r\n )}\r\n {isRunningOnClient && (\r\n \r\n )}\r\n
    \r\n
    \r\n
    \r\n
    \r\n );\r\n }\r\n}\r\n\r\nexport default OrderSummary;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\nimport FluidImage from 'components/fluid-image';\r\n\r\nconst formats = {\r\n square: 'square',\r\n tall: 'tall',\r\n squareBig: 'square-big',\r\n landscape: 'landscape'\r\n};\r\n\r\nconst PhotoBlockItem = ({\r\n caption,\r\n image,\r\n imageCreditText,\r\n className,\r\n format\r\n}) => {\r\n return (\r\n
    \r\n \r\n \r\n
    \r\n {imageCreditText && (\r\n
    {imageCreditText}
    \r\n )}\r\n {caption &&
    {caption}
    }\r\n \r\n );\r\n};\r\n\r\nPhotoBlockItem.propTypes = {\r\n className: PropTypes.string,\r\n imageCreditText: PropTypes.string,\r\n caption: PropTypes.string,\r\n image: PropTypes.exact(FluidImage.propTypes).isRequired,\r\n format: PropTypes.oneOf(Object.values(formats))\r\n};\r\n\r\nPhotoBlockItem.propTypesMeta = {\r\n className: 'exclude',\r\n format: 'exclude'\r\n};\r\n\r\nexport default PhotoBlockItem;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport PhotoBlockItem from './photo-block-item';\r\n\r\nconst formatsOneImage = {\r\n squareBig: 'square-big',\r\n landscape: 'landscape'\r\n};\r\n\r\nconst formatsTwoImages = {\r\n square: 'square',\r\n tall: 'tall'\r\n};\r\n\r\nconst PhotoBlock = ({ photos, formatOneImage, formatTwoImages }) => {\r\n const itemFormat = photos.length === 2 ? formatTwoImages : formatOneImage;\r\n return photos && photos.length > 0 ? (\r\n
    \r\n
    \r\n {photos.map((photo, index) => (\r\n \r\n ))}\r\n
    \r\n
    \r\n ) : null;\r\n};\r\n\r\nPhotoBlock.propTypes = {\r\n formatOneImage: PropTypes.oneOf(Object.values(formatsOneImage)).isRequired,\r\n formatTwoImages: PropTypes.oneOf(Object.values(formatsTwoImages)).isRequired,\r\n photos: PropTypes.arrayOf(PropTypes.exact(PhotoBlockItem.propTypes))\r\n};\r\n\r\nPhotoBlock.defaultProps = {};\r\n\r\nexport default PhotoBlock;\r\n","import React from 'react';\r\n\r\nimport PersonalInformationPage from 'components/personal-information-page';\r\n\r\nconst RegisterPage = props => ;\r\n\r\nRegisterPage.propTypes = PersonalInformationPage.propTypes;\r\n\r\nexport default RegisterPage;\r\n","import React from 'react';\r\nimport CategoryPage from '../category-page';\r\n\r\nconst SearchPage = props => (\r\n \r\n);\r\n\r\nSearchPage.propTypes = CategoryPage.propTypes;\r\n\r\nexport default SearchPage;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nclass StaticContainer extends React.Component {\r\n static propTypes = {\r\n children: PropTypes.node,\r\n shouldUpdate: PropTypes.bool\r\n };\r\n\r\n static propTypesMeta = 'exclude';\r\n\r\n shouldComponentUpdate() {\r\n return this.props.shouldUpdate;\r\n }\r\n\r\n render() {\r\n return this.props.children;\r\n }\r\n}\r\n\r\nexport default StaticContainer;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Text from '../text';\r\nimport Image from '../image';\r\nimport RichText from '../rich-text';\r\n\r\nconst StoreBody = ({ leadText, bodyText, image }) => (\r\n
    \r\n
    \r\n {leadText}\r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n \r\n
    \r\n
    \r\n);\r\n\r\nStoreBody.propTypes = {\r\n leadText: PropTypes.string,\r\n bodyText: PropTypes.exact(RichText.propTypes),\r\n image: PropTypes.exact(Image.propTypes)\r\n};\r\n\r\nexport default StoreBody;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Link from '../link';\r\nimport RichText from '../rich-text';\r\nimport BookingLink from 'components/booking-link';\r\nimport OpeningHoursMeta from 'components/openingHoursMeta/openingHoursMeta';\r\n\r\nconst StoreMeta = ({\r\n storeName,\r\n openingHours,\r\n openingHoursLabel,\r\n openingHoursMeta,\r\n contactInfoLabel,\r\n address,\r\n addressMeta,\r\n geoMeta,\r\n bookingLink,\r\n phone,\r\n email\r\n}) => (\r\n
    \r\n
    \r\n
    \r\n

    \r\n {storeName}\r\n

    \r\n \r\n {addressMeta && (\r\n \r\n {addressMeta.streetAddress && (\r\n \r\n )}\r\n {addressMeta.postalCode && (\r\n \r\n )}\r\n {addressMeta.addressLocality && (\r\n \r\n )}\r\n
    \r\n )}\r\n {geoMeta && (\r\n \r\n {geoMeta.lat && }\r\n {geoMeta.lng && }\r\n
    \r\n )}\r\n
    \r\n
    \r\n

    {openingHoursLabel}

    \r\n \r\n {openingHoursMeta && }\r\n
    \r\n
    \r\n

    {contactInfoLabel}

    \r\n \r\n \r\n\r\n {phone && phone.text && (\r\n \r\n )}\r\n {email && email.text && }\r\n
    \r\n \r\n
    \r\n \r\n
    \r\n \r\n);\r\n\r\nStoreMeta.propTypes = {\r\n storeName: PropTypes.string,\r\n openingHours: PropTypes.string,\r\n openingHoursLabel: PropTypes.string,\r\n openingHoursMeta: PropTypes.exact(OpeningHoursMeta.propTypes),\r\n contactInfoLabel: PropTypes.string,\r\n address: PropTypes.string,\r\n addressMeta: PropTypes.shape({\r\n streetAddress: PropTypes.string,\r\n postalCode: PropTypes.string,\r\n addressLocality: PropTypes.string\r\n }),\r\n geoMeta: PropTypes.shape({\r\n lat: PropTypes.string,\r\n lng: PropTypes.string\r\n }),\r\n phone: PropTypes.exact(Link.propTypes),\r\n email: PropTypes.exact(Link.propTypes),\r\n bookingLink: PropTypes.exact(BookingLink.propTypes)\r\n};\r\n\r\nexport default StoreMeta;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport ContentContainer from '../content-container';\r\nimport ComponentList from 'components/component-list';\r\nimport ComponentListItem from 'components/component-list-item';\r\n\r\nimport MainTitle from '../main-title';\r\n\r\nconst StorePage = ({ heading, components }) => {\r\n return (\r\n
    \r\n \r\n \r\n \r\n {\r\n return { size: ComponentListItem.sizes.article, ...block };\r\n })}\r\n />\r\n
    \r\n );\r\n};\r\n\r\nStorePage.propTypes = {\r\n heading: PropTypes.exact(MainTitle.propTypes),\r\n components: PropTypes.arrayOf(PropTypes.exact(ComponentListItem.propTypes))\r\n};\r\n\r\nexport default StorePage;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\nimport RichText from 'components/rich-text';\r\n\r\nconst bgColors = {\r\n white: 'white',\r\n mint: 'mint',\r\n orange: 'orange',\r\n blue: 'blue',\r\n purple: 'purple'\r\n};\r\n\r\nconst TextWithBgColorBlock = ({ textHtml, bgColor = bgColors.white }) => {\r\n return (\r\n \r\n \r\n \r\n );\r\n};\r\n\r\nTextWithBgColorBlock.propTypes = {\r\n bgColor: PropTypes.oneOf(Object.values(bgColors)),\r\n textHtml: PropTypes.string\r\n};\r\n\r\nexport default TextWithBgColorBlock;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport cn from 'classnames';\r\n\r\nimport FluidImage from '../fluid-image';\r\nimport Link from '../link';\r\nimport Text from '../text';\r\nimport BookingLink from 'components/booking-link';\r\n\r\nconst colors = {\r\n cyan: 'cyan',\r\n gray: 'gray',\r\n // transparent: 'transparent',\r\n orange: 'orange',\r\n cold: 'cold',\r\n clinical: 'clinical',\r\n blue: 'blue',\r\n nude: 'nude',\r\n mint: 'mint',\r\n purple: 'purple'\r\n};\r\n\r\nconst orientations = {\r\n horizontal: 'horizontal',\r\n vertical: 'vertical'\r\n};\r\n\r\nconst TinyCtaBlock = ({\r\n image,\r\n title,\r\n lead,\r\n link,\r\n color,\r\n hasFrame,\r\n orientation,\r\n bookingLink,\r\n ctaType = 'tiny-cta-block'\r\n}) => {\r\n const buttonThemes =\r\n color === colors.transparent\r\n ? [Link.themes.arrowRight, Link.themes.buttonCyan]\r\n : [Link.themes.arrowRight, Link.themes.buttonWhite];\r\n\r\n return (\r\n \r\n
    \r\n {image && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n {title && (\r\n \r\n {title}\r\n \r\n )}\r\n {lead &&

    {lead}

    }\r\n {link && link.url && (\r\n
    \r\n \r\n
    \r\n )}\r\n {bookingLink && bookingLink.text && (\r\n
    \r\n \r\n
    \r\n )}\r\n
    \r\n
    \r\n \r\n );\r\n};\r\n\r\nTinyCtaBlock.propTypes = {\r\n color: PropTypes.oneOf(Object.values(colors)),\r\n image: PropTypes.exact(FluidImage.propTypes),\r\n title: PropTypes.string,\r\n lead: PropTypes.string,\r\n link: PropTypes.exact(Link.propTypes),\r\n hasFrame: PropTypes.bool,\r\n orientation: PropTypes.oneOf(Object.values(orientations)),\r\n bookingLink: PropTypes.exact(BookingLink.propTypes),\r\n ctaType: PropTypes.string\r\n};\r\n\r\nTinyCtaBlock.propTypesMeta = {\r\n hasFrame: 'exclude',\r\n ctaType: 'exclude'\r\n};\r\n\r\nTinyCtaBlock.defaultProps = {\r\n color: colors.blue,\r\n hasFrame: false,\r\n orientation: orientations.vertical\r\n};\r\n\r\nexport default TinyCtaBlock;\r\n","// NOTE: Do not edit this file. It is built by running `/codegen/components.js`\n// NOTE: The imported/exported components are exposed to the global scope\n\nimport Accordion from './components/accordion/accordion.jsx';\nimport AccordionList from './components/accordion-list/accordion-list.jsx';\nimport AddToCartConfirmation from './components/add-to-cart-confirmation/add-to-cart-confirmation.jsx';\nimport Anything from './components/anything/anything.jsx';\nimport AppointmentBookingModal from './components/appointment-booking-modal/appointment-booking-modal.jsx';\nimport AppointmentBookingTrigger from './components/appointment-booking-trigger/appointment-booking-trigger.jsx';\nimport Appointments from './components/appointments/appointments.jsx';\nimport ArticlePage from './components/article-page/article-page.jsx';\nimport AssistiveDrawer from './components/assistive-drawer/assistive-drawer.jsx';\nimport Availability from './components/availability/availability.jsx';\nimport Avatar from './components/avatar/avatar.jsx';\nimport BookingLink from './components/booking-link/booking-link.jsx';\nimport BookingPage from './components/booking-page/booking-page.jsx';\nimport BrandPage from './components/brand-page/brand-page.jsx';\nimport Breadcrumbs from './components/breadcrumbs/breadcrumbs.jsx';\nimport Button from './components/button/button.jsx';\nimport Carousel from './components/carousel/carousel.jsx';\nimport Cart from './components/cart/cart.jsx';\nimport CategoryFilters from './components/category-filters/category-filters.jsx';\nimport CategoryPage from './components/category-page/category-page.jsx';\nimport ChangeEmailPage from './components/change-email-page/change-email-page.jsx';\nimport ChangePasswordPage from './components/change-password-page/change-password-page.jsx';\nimport Chat from './components/chat/chat.jsx';\nimport Checkbox from './components/checkbox/checkbox.jsx';\nimport CheckoutLogin from './components/checkout-login/checkout-login.jsx';\nimport CheckoutLoginForm from './components/checkout-login-form/checkout-login-form.jsx';\nimport CheckoutLogout from './components/checkout-logout/checkout-logout.jsx';\nimport CheckoutPage from './components/checkout-page/checkout-page.jsx';\nimport CheckoutRegisterForm from './components/checkout-register-form/checkout-register-form.jsx';\nimport Clickable from './components/clickable/clickable.jsx';\nimport CollapsableRichText from './components/collapsable-rich-text/collapsable-rich-text.jsx';\nimport CollapseList from './components/collapse-list/collapse-list.jsx';\nimport ColorSelect from './components/color-select/color-select.jsx';\nimport ComponentList from './components/component-list/component-list.jsx';\nimport ComponentListItem from './components/component-list-item/component-list-item.jsx';\nimport ConsentPage from './components/consent-page/consent-page.jsx';\nimport ContactLensPage from './components/contact-lens-page/contact-lens-page.jsx';\nimport ContainedImage from './components/contained-image/contained-image.jsx';\nimport ContentContainer from './components/content-container/content-container.jsx';\nimport CtaBlock from './components/cta-block/cta-block.jsx';\nimport CtaCarousel from './components/cta-carousel/cta-carousel.jsx';\nimport CustomerDataImportForm from './components/customer-data-import-form/customer-data-import-form.jsx';\nimport Debounce from './components/debounce/debounce.jsx';\nimport DeliveryForm from './components/delivery-form/delivery-form.jsx';\nimport DeliveryWidget from './components/delivery-widget/delivery-widget.jsx';\nimport EditCartResponse from './components/edit-cart-response/edit-cart-response.jsx';\nimport EditProfilePage from './components/edit-profile-page/edit-profile-page.jsx';\nimport EmailTemplate from './components/email-template/email-template.jsx';\nimport EmbedVideo from './components/embed-video/embed-video.jsx';\nimport EmptyListMessage from './components/empty-list-message/empty-list-message.jsx';\nimport ErrorPage from './components/error-page/error-page.jsx';\nimport FindStore from './components/find-store/find-store.jsx';\nimport FindStoreBlock from './components/find-store-block/find-store-block.jsx';\nimport FindStorePage from './components/find-store-page/find-store-page.jsx';\nimport FluidImage from './components/fluid-image/fluid-image.jsx';\nimport Footer from './components/footer/footer.jsx';\nimport ForgotPasswordPage from './components/forgot-password-page/forgot-password-page.jsx';\nimport Form from './components/form/form.jsx';\nimport Frontpage from './components/frontpage/frontpage.jsx';\nimport GenericFilter from './components/generic-filter/generic-filter.jsx';\nimport GlassesPage from './components/glasses-page/glasses-page.jsx';\nimport GlobalSearch from './components/global-search/global-search.jsx';\nimport Grid from './components/grid/grid.jsx';\nimport Header from './components/header/header.jsx';\nimport HiddenInput from './components/hidden-input/hidden-input.jsx';\nimport Icon from './components/icon/icon.jsx';\nimport Image from './components/image/image.jsx';\nimport ImageAndProducts from './components/image-and-products/image-and-products.jsx';\nimport ImageLinkList from './components/image-link-list/image-link-list.jsx';\nimport InfoNote from './components/info-note/info-note.jsx';\nimport InputTable from './components/input-table/input-table.jsx';\nimport InspirationalItems from './components/inspirational-items/inspirational-items.jsx';\nimport KlarnaAndPorterbuddy from './components/klarna-and-porterbuddy/klarna-and-porterbuddy.jsx';\nimport KlarnaIframe from './components/klarna-iframe/klarna-iframe.jsx';\nimport LensVisualisation from './components/lens-visualisation/lens-visualisation.jsx';\nimport Link from './components/link/link.jsx';\nimport LinkList from './components/link-list/link-list.jsx';\nimport LinkRow from './components/link-row/link-row.jsx';\nimport LinkToMainSite from './components/link-to-main-site/link-to-main-site.jsx';\nimport LoginForm from './components/login-form/login-form.jsx';\nimport LoginModal from './components/login-modal/login-modal.jsx';\nimport LoginPage from './components/login-page/login-page.jsx';\nimport Logo from './components/logo/logo.jsx';\nimport MagazineCategory from './components/magazine-category/magazine-category.jsx';\nimport MagazineFooter from './components/magazine-footer/magazine-footer.jsx';\nimport MagazineHeader from './components/magazine-header/magazine-header.jsx';\nimport MagazineLandingPage from './components/magazine-landing-page/magazine-landing-page.jsx';\nimport MagazineListItem from './components/magazine-list-item/magazine-list-item.jsx';\nimport MagazineRelatedPages from './components/magazine-related-pages/magazine-related-pages.jsx';\nimport MagazineSectionPage from './components/magazine-section-page/magazine-section-page.jsx';\nimport MainTitle from './components/main-title/main-title.jsx';\nimport MapBlock from './components/map-block/map-block.jsx';\nimport Message from './components/message/message.jsx';\nimport Metadata from './components/metadata/metadata.jsx';\nimport Modal from './components/modal/modal.jsx';\nimport MoodboardBlock from './components/moodboard-block/moodboard-block.jsx';\nimport MouseoverLink from './components/mouseover-link/mouseover-link.jsx';\nimport MyConsents from './components/my-consents/my-consents.jsx';\nimport MyOrders from './components/my-orders/my-orders.jsx';\nimport MyPage from './components/my-page/my-page.jsx';\nimport MyPageLayout from './components/my-page-layout/my-page-layout.jsx';\nimport MyPageSection from './components/my-page-section/my-page-section.jsx';\nimport MyStore from './components/my-store/my-store.jsx';\nimport MyStoreBanner from './components/my-store-banner/my-store-banner.jsx';\nimport NewsletterForm from './components/newsletter-form/newsletter-form.jsx';\nimport NewsletterFormBlock from './components/newsletter-form-block/newsletter-form-block.jsx';\nimport OnPageEditing from './components/on-page-editing/on-page-editing.jsx';\nimport Openinghoursmeta from './components/openingHoursMeta/openingHoursMeta.jsx';\nimport OpticiansList from './components/opticians-list/opticians-list.jsx';\nimport OrderList from './components/order-list/order-list.jsx';\nimport OrderSummary from './components/order-summary/order-summary.jsx';\nimport PageHeader from './components/page-header/page-header.jsx';\nimport PageSpinner from './components/page-spinner/page-spinner.jsx';\nimport PaginationControls from './components/pagination-controls/pagination-controls.jsx';\nimport PersonalDetails from './components/personal-details/personal-details.jsx';\nimport PersonalInformationForm from './components/personal-information-form/personal-information-form.jsx';\nimport PersonalInformationPage from './components/personal-information-page/personal-information-page.jsx';\nimport PhotoBlock from './components/photo-block/photo-block.jsx';\nimport Price from './components/price/price.jsx';\nimport ProductCard from './components/product-card/product-card.jsx';\nimport ProductImages from './components/product-images/product-images.jsx';\nimport ProductList from './components/product-list/product-list.jsx';\nimport ProductListBlock from './components/product-list-block/product-list-block.jsx';\nimport ProductLogo from './components/product-logo/product-logo.jsx';\nimport ProductSellingPoints from './components/product-selling-points/product-selling-points.jsx';\nimport ProductText from './components/product-text/product-text.jsx';\nimport ProductVariantText from './components/product-variant-text/product-variant-text.jsx';\nimport Radio from './components/radio/radio.jsx';\nimport ReactComponent from './components/react-component/react-component.jsx';\nimport RegisterPage from './components/register-page/register-page.jsx';\nimport RegistrationBanner from './components/registration-banner/registration-banner.jsx';\nimport ReserveInStore from './components/reserve-in-store/reserve-in-store.jsx';\nimport RichText from './components/rich-text/rich-text.jsx';\nimport Search from './components/search/search.jsx';\nimport SearchPage from './components/search-page/search-page.jsx';\nimport Select from './components/select/select.jsx';\nimport SelectSortedOnGeolocation from './components/select-sorted-on-geolocation/select-sorted-on-geolocation.jsx';\nimport SellingPoints from './components/selling-points/selling-points.jsx';\nimport ShapeSelect from './components/shape-select/shape-select.jsx';\nimport SiteInfoBanner from './components/site-info-banner/site-info-banner.jsx';\nimport SkipToMainButton from './components/skip-to-main-button/skip-to-main-button.jsx';\nimport Spinner from './components/spinner/spinner.jsx';\nimport StaticContainer from './components/static-container/static-container.jsx';\nimport StoreBody from './components/store-body/store-body.jsx';\nimport StoreMap from './components/store-map/store-map.jsx';\nimport StoreMeta from './components/store-meta/store-meta.jsx';\nimport StorePage from './components/store-page/store-page.jsx';\nimport TagFilter from './components/tag-filter/tag-filter.jsx';\nimport TagItem from './components/tag-item/tag-item.jsx';\nimport TeaserExpander from './components/teaser-expander/teaser-expander.jsx';\nimport TermsForm from './components/terms-form/terms-form.jsx';\nimport Text from './components/text/text.jsx';\nimport TextInput from './components/text-input/text-input.jsx';\nimport TextWithBgColorBlock from './components/text-with-bg-color-block/text-with-bg-color-block.jsx';\nimport TinyCtaBlock from './components/tiny-cta-block/tiny-cta-block.jsx';\nimport ValidationErrorTexts from './components/validation-error-texts/validation-error-texts.jsx';\nimport Video from './components/video/video.jsx';\n\nexport {\n Accordion,\n AccordionList,\n AddToCartConfirmation,\n Anything,\n AppointmentBookingModal,\n AppointmentBookingTrigger,\n Appointments,\n ArticlePage,\n AssistiveDrawer,\n Availability,\n Avatar,\n BookingLink,\n BookingPage,\n BrandPage,\n Breadcrumbs,\n Button,\n Carousel,\n Cart,\n CategoryFilters,\n CategoryPage,\n ChangeEmailPage,\n ChangePasswordPage,\n Chat,\n Checkbox,\n CheckoutLogin,\n CheckoutLoginForm,\n CheckoutLogout,\n CheckoutPage,\n CheckoutRegisterForm,\n Clickable,\n CollapsableRichText,\n CollapseList,\n ColorSelect,\n ComponentList,\n ComponentListItem,\n ConsentPage,\n ContactLensPage,\n ContainedImage,\n ContentContainer,\n CtaBlock,\n CtaCarousel,\n CustomerDataImportForm,\n Debounce,\n DeliveryForm,\n DeliveryWidget,\n EditCartResponse,\n EditProfilePage,\n EmailTemplate,\n EmbedVideo,\n EmptyListMessage,\n ErrorPage,\n FindStore,\n FindStoreBlock,\n FindStorePage,\n FluidImage,\n Footer,\n ForgotPasswordPage,\n Form,\n Frontpage,\n GenericFilter,\n GlassesPage,\n GlobalSearch,\n Grid,\n Header,\n HiddenInput,\n Icon,\n Image,\n ImageAndProducts,\n ImageLinkList,\n InfoNote,\n InputTable,\n InspirationalItems,\n KlarnaAndPorterbuddy,\n KlarnaIframe,\n LensVisualisation,\n Link,\n LinkList,\n LinkRow,\n LinkToMainSite,\n LoginForm,\n LoginModal,\n LoginPage,\n Logo,\n MagazineCategory,\n MagazineFooter,\n MagazineHeader,\n MagazineLandingPage,\n MagazineListItem,\n MagazineRelatedPages,\n MagazineSectionPage,\n MainTitle,\n MapBlock,\n Message,\n Metadata,\n Modal,\n MoodboardBlock,\n MouseoverLink,\n MyConsents,\n MyOrders,\n MyPage,\n MyPageLayout,\n MyPageSection,\n MyStore,\n MyStoreBanner,\n NewsletterForm,\n NewsletterFormBlock,\n OnPageEditing,\n Openinghoursmeta,\n OpticiansList,\n OrderList,\n OrderSummary,\n PageHeader,\n PageSpinner,\n PaginationControls,\n PersonalDetails,\n PersonalInformationForm,\n PersonalInformationPage,\n PhotoBlock,\n Price,\n ProductCard,\n ProductImages,\n ProductList,\n ProductListBlock,\n ProductLogo,\n ProductSellingPoints,\n ProductText,\n ProductVariantText,\n Radio,\n ReactComponent,\n RegisterPage,\n RegistrationBanner,\n ReserveInStore,\n RichText,\n Search,\n SearchPage,\n Select,\n SelectSortedOnGeolocation,\n SellingPoints,\n ShapeSelect,\n SiteInfoBanner,\n SkipToMainButton,\n Spinner,\n StaticContainer,\n StoreBody,\n StoreMap,\n StoreMeta,\n StorePage,\n TagFilter,\n TagItem,\n TeaserExpander,\n TermsForm,\n Text,\n TextInput,\n TextWithBgColorBlock,\n TinyCtaBlock,\n ValidationErrorTexts,\n Video\n};\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport TinyTransition from 'react-tiny-transition';\r\n\r\nimport Spinner from 'components/spinner';\r\n\r\nconst PageSpinner = ({ shouldContainInParent, isLoading }) => (\r\n \r\n {isLoading && (\r\n \r\n
    \r\n \r\n
    \r\n \r\n )}\r\n
    \r\n);\r\n\r\nPageSpinner.propTypes = {\r\n shouldContainInParent: PropTypes.bool,\r\n isLoading: PropTypes.bool\r\n};\r\n\r\nPageSpinner.propTypesMeta = 'exclude';\r\n\r\nexport default PageSpinner;\r\n","module.exports = global[\"Components\"] = require(\"-!D:\\\\a\\\\1\\\\s\\\\Interoptik.Frontend\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\a\\\\1\\\\s\\\\Interoptik.Frontend\\\\node_modules\\\\eslint-loader\\\\dist\\\\cjs.js!.\\\\app.components.js\");","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Clickable from 'components/clickable';\r\n\r\n// NOTE: Any valid DOM prop is a valid prop for Link\r\nconst Link = React.forwardRef(\r\n (\r\n {\r\n children,\r\n className,\r\n hiddenText,\r\n text,\r\n url,\r\n themes,\r\n isNoFollow,\r\n ctaTitle,\r\n ctaType,\r\n ...restProps\r\n },\r\n ref\r\n ) => {\r\n return (\r\n \r\n {hiddenText ? null : text}\r\n {children}\r\n \r\n );\r\n }\r\n);\r\n\r\nLink.propTypes = {\r\n children: PropTypes.node,\r\n className: PropTypes.string,\r\n hiddenText: PropTypes.bool,\r\n isNoFollow: PropTypes.bool,\r\n text: PropTypes.string,\r\n url: PropTypes.string,\r\n themes: PropTypes.any,\r\n ctaTitle: PropTypes.string,\r\n ctaType: PropTypes.string\r\n};\r\n\r\nLink.propTypesMeta = {\r\n className: 'exclude',\r\n hiddenText: 'exclude',\r\n themes: 'exclude',\r\n ctaTitle: 'exclude',\r\n ctaType: 'exclude'\r\n};\r\n\r\nLink.defaultProps = {\r\n themes: [Clickable.themes.link]\r\n};\r\n\r\n// NOTE: Show 'Link' in error messages instead of 'forwardRef'\r\nLink.displayName = 'Link';\r\n\r\nLink.themes = Clickable.themes;\r\n\r\nexport default Link;\r\n","var map = {\n\t\"./arrow-left.svg\": 203,\n\t\"./arrow-right.svg\": 204,\n\t\"./basket.svg\": 205,\n\t\"./big-chevron-right.svg\": 206,\n\t\"./checkmark.svg\": 207,\n\t\"./chevron-down.svg\": 208,\n\t\"./chevron-left.svg\": 209,\n\t\"./chevron-right.svg\": 210,\n\t\"./eye.svg\": 211,\n\t\"./icon-back.svg\": 212,\n\t\"./icon-clock.svg\": 213,\n\t\"./icon-edit.svg\": 214,\n\t\"./icon-eye-drops.svg\": 215,\n\t\"./icon-glasses.svg\": 216,\n\t\"./icon-info.svg\": 217,\n\t\"./icon-lens.svg\": 218,\n\t\"./in-stok.svg\": 219,\n\t\"./interoptik-logo-back.svg\": 220,\n\t\"./magnifier.svg\": 221,\n\t\"./mail.svg\": 222,\n\t\"./next-enabled.svg\": 223,\n\t\"./out-of-stok.svg\": 224,\n\t\"./pause.svg\": 225,\n\t\"./pen.svg\": 226,\n\t\"./phone.svg\": 227,\n\t\"./pin.svg\": 228,\n\t\"./previous-enabled.svg\": 229,\n\t\"./small-minus.svg\": 230,\n\t\"./small-plus.svg\": 231,\n\t\"./small-x.svg\": 232,\n\t\"./spinner.svg\": 233,\n\t\"./truck.svg\": 234,\n\t\"./x.svg\": 235,\n\t\"./zoom.svg\": 236\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 202;","var React = require('react');\n\nfunction ArrowLeft (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M6.751 12l1.177-1.183-3.962-3.98h14.816V5.163H3.966l3.962-3.982L6.75 0 1.957 4.818.78 6l1.177 1.182L6.751 12z\"}));\n}\n\nArrowLeft.defaultProps = {\"width\":\"18\",\"height\":\"12\",\"viewBox\":\"0 0 18 12\"};\n\nmodule.exports = ArrowLeft;\n\nArrowLeft.default = ArrowLeft;\n","var React = require('react');\n\nfunction ArrowRight (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M14.457 0l-1.414 1.415 4.761 4.76H0v2h17.804l-4.761 4.761 1.414 1.414 5.761-5.761 1.414-1.414-1.414-1.414z\",\"fillRule\":\"evenodd\"}));\n}\n\nArrowRight.defaultProps = {\"width\":\"22\",\"height\":\"15\"};\n\nmodule.exports = ArrowRight;\n\nArrowRight.default = ArrowRight;\n","var React = require('react');\n\nfunction Basket (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M2.148 17l.714-10h12.276l.714 10H2.148zM7 4c0-1.103.898-2 2-2 1.103 0 2 .897 2 2v1H7V4zm10.133 2.857A2 2 0 0015.138 5H13V4a4 4 0 00-8 0v1H2.862A2 2 0 00.867 6.857L0 19h18l-.867-12.143z\",\"fillRule\":\"evenodd\"}));\n}\n\nBasket.defaultProps = {\"width\":\"18\",\"height\":\"19\"};\n\nmodule.exports = Basket;\n\nBasket.default = Basket;\n","var React = require('react');\n\nfunction BigChevronRight (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M1.5 28c-.4 0-.8-.1-1.1-.4-.6-.6-.6-1.5 0-2.1L11.9 14 .4 2.6C-.1 2-.1 1 .4.4 1-.1 2-.1 2.6.4l12.5 12.5c.3.3.4.7.4 1.1s-.2.8-.4 1.1L2.5 27.6c-.3.3-.7.4-1 .4z\"}));\n}\n\nBigChevronRight.defaultProps = {\"width\":\"16\",\"height\":\"28\",\"viewBox\":\"0 0 16 28\"};\n\nmodule.exports = BigChevronRight;\n\nBigChevronRight.default = BigChevronRight;\n","var React = require('react');\n\nfunction Checkmark (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M5 11c-.3 0-.6-.1-.8-.4l-4-5c-.3-.4-.2-1 .2-1.4.4-.3 1.1-.3 1.4.2l3.1 3.9L10.1.4c.3-.5.9-.6 1.4-.3.5.3.6.9.3 1.4l-6 9c-.1.3-.4.5-.8.5z\"}));\n}\n\nCheckmark.defaultProps = {\"width\":\"12\",\"height\":\"11\",\"viewBox\":\"0 0 12 11\"};\n\nmodule.exports = Checkmark;\n\nCheckmark.default = Checkmark;\n","var React = require('react');\n\nfunction ChevronDown (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M0 1C0 .7.1.5.3.3c.4-.4 1-.4 1.4 0L7 5.6 12.3.3c.4-.4 1-.4 1.4 0 .4.4.4 1 0 1.4l-6 6c-.4.4-1 .4-1.4 0l-6-6C.1 1.5 0 1.3 0 1z\"}));\n}\n\nChevronDown.defaultProps = {\"width\":\"14\",\"height\":\"8\",\"viewBox\":\"0 0 14 8\"};\n\nmodule.exports = ChevronDown;\n\nChevronDown.default = ChevronDown;\n","var React = require('react');\n\nfunction ChevronLeft (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M6.3 13.7l-6-6c-.4-.4-.4-1 0-1.4l6-6c.4-.4 1-.4 1.4 0 .4.4.4 1 0 1.4L2.4 7l5.3 5.3c.4.4.4 1 0 1.4-.2.2-.4.3-.7.3-.3 0-.5-.1-.7-.3z\"}));\n}\n\nChevronLeft.defaultProps = {\"width\":\"8\",\"height\":\"14\",\"viewBox\":\"0 0 8 14\"};\n\nmodule.exports = ChevronLeft;\n\nChevronLeft.default = ChevronLeft;\n","var React = require('react');\n\nfunction ChevronRight (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M1 14c-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4L5.6 7 .3 1.7C-.1 1.3-.1.7.3.3s1-.4 1.4 0l6 6c.4.4.4 1 0 1.4l-6 6c-.2.2-.4.3-.7.3z\"}));\n}\n\nChevronRight.defaultProps = {\"width\":\"8\",\"height\":\"14\",\"viewBox\":\"0 0 8 14\"};\n\nmodule.exports = ChevronRight;\n\nChevronRight.default = ChevronRight;\n","var React = require('react');\n\nfunction Eye (props) {\n return React.createElement(\"svg\",props,[React.createElement(\"path\",{\"d\":\"M11 13.9c-3.6 0-7.3-2.1-10.8-6.4l-.1-.6.1-.7c7-8.4 14.5-8.4 21.5 0l.2.6-.2.6c-3.4 4.4-7.1 6.5-10.7 6.5zm-8.7-7c5.9 6.6 11.5 6.6 17.4 0C13.8.3 8.2.3 2.3 6.9z\",\"key\":0}),React.createElement(\"circle\",{\"cx\":\"11\",\"cy\":\"7\",\"r\":\"3\",\"key\":1})]);\n}\n\nEye.defaultProps = {\"width\":\"22\",\"height\":\"14\",\"viewBox\":\"0 0 22 14\"};\n\nmodule.exports = Eye;\n\nEye.default = Eye;\n","var React = require('react');\n\nfunction IconBack (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"fillRule\":\"evenodd\",\"clipRule\":\"evenodd\",\"d\":\"M7.175 0L8.59 1.415l-4.76 4.76H21.63v2H3.828l4.761 4.761-1.414 1.414-5.76-5.761L0 7.175l1.414-1.414L7.175 0z\"}));\n}\n\nIconBack.defaultProps = {\"width\":\"22\",\"height\":\"15\",\"viewBox\":\"0 0 22 15\"};\n\nmodule.exports = IconBack;\n\nIconBack.default = IconBack;\n","var React = require('react');\n\nfunction IconClock (props) {\n return React.createElement(\"svg\",props,[React.createElement(\"path\",{\"d\":\"M279.99 0C125.601 0 0 125.601 0 279.99c0 154.39 125.601 279.99 279.99 279.99 154.39 0 279.99-125.601 279.99-279.99S434.38 0 279.99 0zm0 498.78c-120.644 0-218.79-98.146-218.79-218.79 0-120.638 98.146-218.79 218.79-218.79s218.79 98.152 218.79 218.79c0 120.644-98.146 218.79-218.79 218.79z\",\"key\":0}),React.createElement(\"path\",{\"d\":\"M304.226 280.326v-117.35c0-13.103-10.618-23.721-23.716-23.721-13.102 0-23.721 10.618-23.721 23.721v124.928c0 .373.092.723.11 1.096-.312 6.45 1.91 12.999 6.836 17.926l88.343 88.336c9.266 9.266 24.284 9.266 33.543 0 9.26-9.266 9.266-24.284 0-33.544l-81.395-81.392z\",\"key\":1})]);\n}\n\nIconClock.defaultProps = {\"width\":\"559.98\",\"height\":\"559.98\",\"viewBox\":\"0 0 559.98 559.98\"};\n\nmodule.exports = IconClock;\n\nIconClock.default = IconClock;\n","var React = require('react');\n\nfunction IconEdit (props) {\n return React.createElement(\"svg\",props,[React.createElement(\"path\",{\"d\":\"M392.533 238.937c-9.426 0-17.067 7.641-17.067 17.067V426.67c0 9.426-7.641 17.067-17.067 17.067H51.2c-9.426 0-17.067-7.641-17.067-17.067V85.337c0-9.426 7.641-17.067 17.067-17.067H256c9.426 0 17.067-7.641 17.067-17.067S265.426 34.137 256 34.137H51.2C22.923 34.137 0 57.06 0 85.337V426.67c0 28.277 22.923 51.2 51.2 51.2h307.2c28.277 0 51.2-22.923 51.2-51.2V256.003c0-9.425-7.641-17.066-17.067-17.066z\",\"key\":0}),React.createElement(\"path\",{\"d\":\"M458.742 19.142A65.328 65.328 0 00412.536.004a64.85 64.85 0 00-46.199 19.149L141.534 243.937a17.254 17.254 0 00-4.113 6.673l-34.133 102.4c-2.979 8.943 1.856 18.607 10.799 21.585 1.735.578 3.552.873 5.38.875a17.336 17.336 0 005.393-.87l102.4-34.133c2.515-.84 4.8-2.254 6.673-4.13l224.802-224.802c25.515-25.512 25.518-66.878.007-92.393zm-24.139 68.277L212.736 309.286l-66.287 22.135 22.067-66.202L390.468 43.353c12.202-12.178 31.967-12.158 44.145.044a31.215 31.215 0 019.12 21.955 31.043 31.043 0 01-9.13 22.067z\",\"key\":1})]);\n}\n\nIconEdit.defaultProps = {\"viewBox\":\"0 0 477.873 477.873\"};\n\nmodule.exports = IconEdit;\n\nIconEdit.default = IconEdit;\n","var React = require('react');\n\nfunction IconEyeDrops (props) {\n return React.createElement(\"svg\",props,[React.createElement(\"circle\",{\"cx\":\"216.6\",\"cy\":\"253.48\",\"r\":\"36.5\",\"key\":0}),React.createElement(\"path\",{\"d\":\"M432 249.177c-10.8-17.2-23.7-33.1-38.3-47.3 4.3-17.9 1.9-36.9-6.9-53.1-.1-.3-.3-.5-.4-.7l-60.6-88.1c-1.5-2.2-4-3.5-6.6-3.5-2.6 0-5.1 1.3-6.6 3.5l-51.1 74.2c-14.8-2.6-29.8-4-44.9-4-87.5-.1-168.9 44.9-215.4 119-1.6 2.6-1.6 5.9 0 8.5 74.8 119 231.9 154.8 350.9 79.9 32.3-20.3 59.6-47.6 79.9-79.9 1.6-2.6 1.6-5.9 0-8.5zm-173.3-66.4c.3-9.1 2.6-18 6.7-26l5.9-8.6 47.9-69.6 53.8 78.2c7.4 13.9 8.9 30.3 4.1 45.3v.1c0 .1 0 .2-.1.3-.1.2-.2.4-.2.6-3 9.2-8 17.6-14.8 24.6-16.7 16.7-41.6 22.2-63.8 14h-.1c-8.2-3-15.6-7.8-21.8-14-11.8-11.9-18.2-28.2-17.6-44.9zm28.1 71.4c-.4 38.8-32.2 69.9-71 69.5-38.8-.4-69.9-32.2-69.5-71 .4-38.5 31.7-69.5 70.2-69.5 8.9 0 17.8 1.7 26.1 5 .9 19.1 8.8 37.2 22.3 50.7 6.4 6.4 13.8 11.6 21.9 15.3zm46.9 75.8c-109.1 61.5-247.3 28.1-316.2-76.6 51-77.4 142.3-118.2 234.1-104.7 0 0 0 .1-.1.1-3.8 7.1-6.4 14.7-7.7 22.7-45.2-15-94.1 9.5-109.1 54.7s9.5 94.1 54.7 109.1 94.1-9.5 109.1-54.7c2.3-6.8 3.7-13.9 4.2-21 25.6 5.7 52.2-2.1 70.7-20.7l.1-.1c5.8-6 10.6-12.8 14.3-20.3 10.4 10.7 19.8 22.4 28 34.9-21 31.7-49.1 58-82.1 76.6z\",\"key\":1}),React.createElement(\"path\",{\"d\":\"M351.3 166.077c-2.7-3.5-7.7-4.1-11.2-1.4s-4.2 7.7-1.5 11.2c8.9 11.7 6.7 28.3-4.9 37.3-3.5 2.7-4.2 7.7-1.5 11.2 1.6 2 3.9 3.1 6.4 3.1 1.8 0 3.5-.6 4.9-1.7 18.6-14.4 22.1-41 7.8-59.7z\",\"key\":2})]);\n}\n\nIconEyeDrops.defaultProps = {\"viewBox\":\"0 0 433.2 433.2\"};\n\nmodule.exports = IconEyeDrops;\n\nIconEyeDrops.default = IconEyeDrops;\n","var React = require('react');\n\nfunction IconGlasses (props) {\n return React.createElement(\"svg\",props,[React.createElement(\"linearGradient\",{\"gradientUnits\":\"userSpaceOnUse\",\"x1\":\"256\",\"x2\":\"256\",\"y1\":\"361\",\"y2\":\"151\",\"key\":0},[React.createElement(\"stop\",{\"offset\":\"0\",\"stopColor\":\"#007a7d\",\"key\":0}),React.createElement(\"stop\",{\"offset\":\"1\",\"stopColor\":\"#007a7d\",\"key\":1})]),React.createElement(\"path\",{\"d\":\"M407 151h-60c-31.267 0-58.068 19.266-69.311 46.525-6.387-3.032-14.292-5.07-21.689-5.07s-15.302 2.038-21.689 5.07C223.068 170.266 196.267 151 165 151h-60C47.109 151 0 198.109 0 256s47.109 105 105 105c72.502 0 131.382-57.567 134.427-129.333 6.85-11.045 26.296-11.047 33.146-.002C275.618 303.432 334.498 361 407 361c57.891 0 105-47.109 105-105s-47.109-105-105-105zM105 331c-41.353 0-75-33.647-75-75s33.647-75 75-75h60c24.814 0 45 20.186 45 45 0 57.891-47.109 105-105 105zm302 0c-57.891 0-105-47.109-105-105 0-24.814 20.186-45 45-45h60c41.353 0 75 33.647 75 75s-33.647 75-75 75z\",\"key\":1})]);\n}\n\nIconGlasses.defaultProps = {\"height\":\"512\",\"viewBox\":\"0 0 512 512\",\"width\":\"512\"};\n\nmodule.exports = IconGlasses;\n\nIconGlasses.default = IconGlasses;\n","var React = require('react');\n\nfunction IconInfo (props) {\n return React.createElement(\"svg\",props,[React.createElement(\"path\",{\"d\":\"M277.332 128c0 11.781-9.55 21.332-21.332 21.332s-21.332-9.55-21.332-21.332 9.55-21.332 21.332-21.332 21.332 9.55 21.332 21.332zm0 0M256 405.332c-8.832 0-16-7.168-16-16V224h-21.332c-8.832 0-16-7.168-16-16s7.168-16 16-16H256c8.832 0 16 7.168 16 16v181.332c0 8.832-7.168 16-16 16zm0 0\",\"key\":0}),React.createElement(\"path\",{\"d\":\"M256 512C114.836 512 0 397.164 0 256S114.836 0 256 0s256 114.836 256 256-114.836 256-256 256zm0-480C132.48 32 32 132.48 32 256s100.48 224 224 224 224-100.48 224-224S379.52 32 256 32zm0 0\",\"key\":1}),React.createElement(\"path\",{\"d\":\"M304 405.332h-96c-8.832 0-16-7.168-16-16s7.168-16 16-16h96c8.832 0 16 7.168 16 16s-7.168 16-16 16zm0 0\",\"key\":2})]);\n}\n\nIconInfo.defaultProps = {\"height\":\"512pt\",\"viewBox\":\"0 0 512 512\",\"width\":\"512pt\"};\n\nmodule.exports = IconInfo;\n\nIconInfo.default = IconInfo;\n","var React = require('react');\n\nfunction IconLens (props) {\n return React.createElement(\"svg\",props,[React.createElement(\"path\",{\"d\":\"M316.618 60.618c-107.733 0-195.382 87.648-195.382 195.382s87.648 195.382 195.382 195.382S512 363.733 512 256 424.352 60.618 316.618 60.618zm-156.315 249.22c-5.831-16.885-9.008-34.996-9.008-53.838s3.176-36.953 9.008-53.838c8.493 16.578 13.035 35.062 13.035 53.838s-4.542 37.26-13.035 53.838zm15.342 32.433c17.953-25.067 27.752-55.356 27.752-86.271s-9.799-61.205-27.752-86.271a166.376 166.376 0 0122.023-28.421c26.727 32.282 41.299 72.468 41.299 114.692s-14.571 82.41-41.299 114.692a166.337 166.337 0 01-22.023-28.421zm140.973 79.052c-35.862 0-69.09-11.483-96.211-30.958 31.459-37.75 48.618-84.853 48.618-134.364s-17.159-96.614-48.618-134.364c27.121-19.475 60.349-30.958 96.211-30.958 91.159 0 165.323 74.164 165.323 165.323s-74.164 165.321-165.323 165.321z\",\"key\":0}),React.createElement(\"path\",{\"d\":\"M91.178 256c0-55.307 13.536-110.225 39.145-158.818 5.515-10.464 3.05-23.069-5.994-30.652-9.047-7.585-21.892-7.812-31.234-.556-28.329 22-51.768 50.535-67.778 82.517C8.518 182.049 0 218.219 0 256c0 37.781 8.518 73.951 25.317 107.508 16.01 31.983 39.449 60.517 67.778 82.517 4.549 3.533 9.926 5.291 15.293 5.291 5.657 0 11.299-1.955 15.941-5.847 9.044-7.583 11.508-20.186 5.993-30.652C104.715 366.225 91.178 311.307 91.178 256zm-61.119 0c0-56.996 22.511-110.311 62.502-149.687C71.935 153.2 61.119 204.451 61.119 256S71.934 358.8 92.56 405.687C52.57 366.311 30.059 312.996 30.059 256z\",\"key\":1})]);\n}\n\nIconLens.defaultProps = {\"viewBox\":\"0 0 512 512\"};\n\nmodule.exports = IconLens;\n\nIconLens.default = IconLens;\n","var React = require('react');\n\nfunction InStok (props) {\n return React.createElement(\"svg\",props,[React.createElement(\"circle\",{\"cx\":\"15\",\"cy\":\"15\",\"r\":\"15\",\"key\":0}),React.createElement(\"path\",{\"d\":\"M7.5 15.5l6 5 9-11\",\"stroke\":\"#fff\",\"strokeWidth\":\"2\",\"key\":1})]);\n}\n\nInStok.defaultProps = {\"width\":\"30\",\"height\":\"30\",\"viewBox\":\"0 0 30 30\"};\n\nmodule.exports = InStok;\n\nInStok.default = InStok;\n","var React = require('react');\n\nfunction InteroptikLogoBack (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M6.45 7.81C2.89 7.81 0 6.06 0 3.92S2.89 0 6.45 0s6.45 1.74 6.45 3.92S10.12 7.8 6.45 7.8zM25.84 7.81c-3.55 0-6.45-1.74-6.45-3.88S22.28.01 25.84.01s6.46 1.74 6.46 3.92-2.8 3.88-6.46 3.88zM19.65 11.8h-6.84c-.41 0-.74.34-.74.75v29.63c0 .42.33.75.74.75h6.84c.41 0 .74-.34.74-.75V12.55a.74.74 0 00-.74-.75zM36.81 16.38c1.7-.51 3.48-.76 5.26-.71 5.24 0 6.61 2.65 6.61 5.2v21.32c0 .2.08.39.22.52.14.14.33.22.52.22h6.84c.19 0 .38-.08.52-.22s.22-.33.22-.52V20.74c0-5.02-3.61-9.53-14.59-9.53-4.72-.14-9.43.57-13.9 2.09a.694.694 0 00-.48.71V42.2c0 .2.08.39.22.52.14.14.33.22.52.22h6.84c.19 0 .38-.08.52-.22s.22-.33.22-.52V17.07c0-.15.04-.3.13-.42a.7.7 0 01.34-.27zM138.64 15.46v-3.47c0-.19-.07-.37-.2-.51a.729.729 0 00-.49-.23c-8.8-.11-12.69.64-16.31 2.06a.5.5 0 00-.32.23c-.07.11-.11.25-.08.39v28.26c0 .2.08.38.21.52.14.14.32.22.52.22h6.85a.734.734 0 00.73-.74V17.96a.61.61 0 01.4-.55c2.61-.77 5.32-1.18 8.04-1.21.09 0 .18-.02.27-.06.09-.04.16-.09.22-.16s.11-.15.14-.24c.03-.09.03-.18.02-.28zM155.44 43.82c-10.3 0-15.28-7-15.28-16.27s4.99-16.34 15.28-16.34 15.27 6.94 15.27 16.34-4.97 16.27-15.27 16.27zm0-28.11c-5.86 0-7.03 5.78-7.03 11.78s1.35 11.48 7.03 11.48 7.03-5.49 7.03-11.48-1.1-11.78-7.03-11.78zM176.45 13.94v40.31a.75.75 0 00.75.75h6.76a.75.75 0 00.75-.75V43.48c0-.09 0-.18.04-.26a.541.541 0 01.64-.34c1.59.31 3.21.46 4.84.45 9.62 0 16.22-6.19 16.22-16.35s-6.49-15.78-17.19-15.78h-1.12c-3.82 0-7.62.69-11.2 2.04-.13.06-.24.16-.32.29-.08.12-.13.27-.14.41zm8.26 24.05V16.56c0-.14.04-.28.12-.4.08-.12.19-.2.33-.25 1.26-.33 2.55-.49 3.85-.48 6.76 0 9.13 4.34 9.13 11.78s-3.2 11.89-9.76 11.89h-.59c-.91-.02-1.82-.14-2.7-.36a.839.839 0 01-.29-.33.851.851 0 01-.09-.44zM235.27 42.93a.734.734 0 01-.73-.74V12.54a.776.776 0 01.22-.52.776.776 0 01.52-.22h6.84a.776.776 0 01.52.22.692.692 0 01.21.52v29.65c0 .1-.02.19-.05.28-.04.09-.09.17-.16.24a.776.776 0 01-.52.22h-6.84zM271.84 42.93c-.23-.01-.45-.07-.66-.17-.21-.1-.39-.24-.54-.42l-11.36-14.71c-.15-.22-.33-.42-.53-.59-.04.25-.04.5 0 .75v14.39c0 .2-.08.39-.21.52-.14.14-.32.22-.52.22h-6.76a.734.734 0 01-.73-.74V4.66c0-.2.08-.38.21-.52.14-.14.32-.22.52-.22h6.76a.734.734 0 01.73.74v20.47c-.04.25-.04.5 0 .75.2-.17.39-.36.55-.58L270 12.36c.32-.35.75-.55 1.22-.58h6.99c.4 0 .51.25.24.55l-11.7 13.16c-.13.16-.2.36-.2.56s.07.4.2.56l13.2 15.74c.26.32.15.56-.26.56h-7.85zM112.79 40.73l-1.35-3.11a.859.859 0 00-.43-.41.915.915 0 00-.59-.05c-2.78.87-5.66 1.38-8.57 1.51-9.3 0-9.99-7.26-10.38-10.65-.69-7.44 1.81-12.35 7.85-12.35 4.27 0 6.97 2.36 7.22 8.16 0 .18-.08.35-.21.48s-.3.2-.48.2h-9.2a.776.776 0 00-.52.22.776.776 0 00-.22.53v2.5c0 .1 0 .2.04.3.04.09.09.18.16.25s.15.13.25.16c.09.04.19.05.29.05h16.94c.19 0 .38-.08.52-.23a.74.74 0 00.21-.53v-1.23c.07-9.96-5.22-15.2-14.73-15.2s-16.22 5.42-16.22 15.58 7.09 16.71 17.57 16.71h1.08c3.56 0 7.09-.64 10.43-1.89.09-.04.17-.1.24-.17a.72.72 0 00.09-.83zM220.2 17.05a.75.75 0 01.75-.75h6.59a.75.75 0 00.75-.75v-3c0-.2-.08-.39-.22-.52a.744.744 0 00-.52-.22h-6.59a.75.75 0 01-.75-.75V4.68c0-.2-.08-.39-.21-.53a.78.78 0 00-.52-.23h-6.85c-.19 0-.38.08-.52.23a.74.74 0 00-.21.53v30.18c0 4.34 2.86 8.44 10.09 8.44 1.86-.08 3.72-.26 5.57-.53a.89.89 0 00.73-.87v-2.88a.683.683 0 00-.55-.66.605.605 0 00-.19 0s-2.55.22-3.31.22c-.17.01-.34.01-.51 0-.5 0-.99-.1-1.45-.3-.46-.2-.87-.51-1.2-.88a3.596 3.596 0 01-.86-2.81V17.05zM72.66 17.05a.75.75 0 01.75-.75h6.55c.19 0 .38-.08.52-.23a.74.74 0 00.21-.53v-3a.776.776 0 00-.22-.52.776.776 0 00-.52-.22h-6.59a.75.75 0 01-.75-.75V4.68a.75.75 0 00-.75-.75h-6.78a.75.75 0 00-.75.75v30.18c0 4.34 2.86 8.44 10.09 8.44 1.86-.08 3.72-.26 5.57-.53.2-.03.39-.14.52-.3a.91.91 0 00.21-.57v-2.88a.663.663 0 00-.54-.66.605.605 0 00-.19 0s-2.57.22-3.31.22c-.18.01-.35.01-.53 0-.5 0-.99-.1-1.45-.3-.46-.2-.86-.51-1.2-.88a3.596 3.596 0 01-.86-2.81V17.05z\"}));\n}\n\nInteroptikLogoBack.defaultProps = {\"viewBox\":\"0 0 280.08 55\"};\n\nmodule.exports = InteroptikLogoBack;\n\nInteroptikLogoBack.default = InteroptikLogoBack;\n","var React = require('react');\n\nfunction Magnifier (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M7.246 12.074c-2.854 0-5.176-2.256-5.176-5.03 0-2.775 2.322-5.032 5.176-5.032s5.176 2.257 5.176 5.031c0 2.775-2.322 5.031-5.176 5.031zM18 16.577l-5.18-5.035a6.898 6.898 0 001.672-4.499C14.492 3.153 11.248 0 7.246 0 3.244 0 0 3.153 0 7.043s3.244 7.044 7.246 7.044c1.494 0 2.883-.44 4.036-1.194L16.536 18 18 16.577z\",\"fillRule\":\"evenodd\"}));\n}\n\nMagnifier.defaultProps = {\"width\":\"18\",\"height\":\"18\"};\n\nmodule.exports = Magnifier;\n\nMagnifier.default = Magnifier;\n","var React = require('react');\n\nfunction Mail (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M0 18h24V0H0v18zM2.482 2h19.035L12 9.713 2.482 2zM22 4.183V16H2V4.183l10 8.104 10-8.104z\",\"fillRule\":\"evenodd\"}));\n}\n\nMail.defaultProps = {\"width\":\"24\",\"height\":\"18\",\"viewBox\":\"0 0 24 18\"};\n\nmodule.exports = Mail;\n\nMail.default = Mail;\n","var React = require('react');\n\nfunction NextEnabled (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M1.482 0L0 1.38 6.036 7 0 12.62 1.482 14 9 7z\",\"fillRule\":\"evenodd\"}));\n}\n\nNextEnabled.defaultProps = {\"width\":\"9\",\"height\":\"14\",\"viewBox\":\"0 0 9 14\"};\n\nmodule.exports = NextEnabled;\n\nNextEnabled.default = NextEnabled;\n","var React = require('react');\n\nfunction OutOfStok (props) {\n return React.createElement(\"svg\",props,[React.createElement(\"circle\",{\"cx\":\"15\",\"cy\":\"15\",\"r\":\"15\",\"key\":0}),React.createElement(\"path\",{\"d\":\"M20.76 7.83L15 13.59 9.24 7.83 7.83 9.24 13.59 15l-5.76 5.76 1.41 1.41L15 16.41l5.76 5.76 1.41-1.41L16.41 15l5.76-5.76-1.41-1.41z\",\"fillRule\":\"evenodd\",\"key\":1})]);\n}\n\nOutOfStok.defaultProps = {\"width\":\"30\",\"height\":\"30\",\"viewBox\":\"0 0 30 30\"};\n\nmodule.exports = OutOfStok;\n\nOutOfStok.default = OutOfStok;\n","var React = require('react');\n\nfunction Pause (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M16 13h4v19h-4zM26 13h4v19h-4z\"}));\n}\n\nPause.defaultProps = {\"width\":\"45\",\"height\":\"45\",\"viewBox\":\"0 0 45 45\"};\n\nmodule.exports = Pause;\n\nPause.default = Pause;\n","var React = require('react');\n\nfunction Pen (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M6 0H2C.9 0 0 .9 0 2v19.4c0 .4.1.9.4 1.2l2 3.5.1.2c.4.4.9.7 1.5.7s1.1-.3 1.5-.7l2.1-3.6c.3-.4.4-.8.4-1.3V2c0-1.1-.9-2-2-2zM4 24.9L2 21h4l-2 3.9zM6 19H2V2h4v17z\"}));\n}\n\nPen.defaultProps = {\"width\":\"8\",\"height\":\"27\",\"viewBox\":\"0 0 8 27\"};\n\nmodule.exports = Pen;\n\nPen.default = Pen;\n","var React = require('react');\n\nfunction Phone (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M3.07 3.01c-.14.149-.271.333-.403.56-.754 1.207-.87 2.66-.331 3.917l.26.609c.673 1.988 1.958 3.972 3.646 5.66 1.688 1.688 3.673 2.974 5.587 3.619l.682.287a4.203 4.203 0 003.885-.31c.257-.15.44-.281.588-.418l-.012-.015.129-.11.703-.696-3.306-1.837-2.188 1.889-.64-.461c-1.31-.943-2.681-2.121-3.968-3.407-1.29-1.29-2.467-2.662-3.407-3.97l-.461-.638 1.887-2.19-1.836-3.306-.8.829-.015-.012zM14.155 20a6.178 6.178 0 01-2.433-.5l-.606-.258c-2.126-.714-4.386-2.17-6.288-4.071-1.901-1.902-3.358-4.162-4.1-6.362l-.231-.533A6.209 6.209 0 01.953 2.54c.218-.378.47-.714.752-.996l.005.005c.038-.045.07-.081.105-.115L2.75.499A1.679 1.679 0 014.19.018c.533.074.989.387 1.25.859l2.132 3.835c.367.66.25 1.495-.284 2.029l-.902 1.048a32.287 32.287 0 002.73 3.094 32.18 32.18 0 003.093 2.728l1.102-.95c.48-.486 1.316-.602 1.976-.234l3.835 2.13c.472.262.785.719.859 1.252.075.534-.1 1.058-.481 1.439l-.936.936a1.625 1.625 0 01-.115.105l.005.005-.088.086a5.015 5.015 0 01-.938.684 6.183 6.183 0 01-3.273.936z\",\"fillRule\":\"evenodd\"}));\n}\n\nPhone.defaultProps = {\"width\":\"20\",\"height\":\"20\"};\n\nmodule.exports = Phone;\n\nPhone.default = Phone;\n","var React = require('react');\n\nfunction Pin (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M8 0a8 8 0 015.657 13.657L8 19.313l-5.657-5.656A8 8 0 018 0zm0 2c-1.603 0-3.11.624-4.242 1.757a6.005 6.005 0 000 8.485L8 16.485l4.242-4.243a6.005 6.005 0 000-8.485A5.96 5.96 0 008 2zm0 4.2c1.104 0 2 .806 2 1.8s-.896 1.8-2 1.8S6 8.994 6 8s.896-1.8 2-1.8z\",\"fillRule\":\"evenodd\"}));\n}\n\nPin.defaultProps = {\"width\":\"16\",\"height\":\"20\",\"viewBox\":\"0 0 16 20\"};\n\nmodule.exports = Pin;\n\nPin.default = Pin;\n","var React = require('react');\n\nfunction PreviousEnabled (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M7.518 14L9 12.62 2.964 7 9 1.38 7.518 0 0 7z\",\"fillRule\":\"evenodd\"}));\n}\n\nPreviousEnabled.defaultProps = {\"width\":\"9\",\"height\":\"14\",\"viewBox\":\"0 0 9 14\"};\n\nmodule.exports = PreviousEnabled;\n\nPreviousEnabled.default = PreviousEnabled;\n","var React = require('react');\n\nfunction SmallMinus (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M11 7H1c-.6 0-1-.4-1-1s.4-1 1-1h10c.6 0 1 .4 1 1s-.4 1-1 1z\"}));\n}\n\nSmallMinus.defaultProps = {\"width\":\"12\",\"height\":\"12\",\"viewBox\":\"0 0 12 12\"};\n\nmodule.exports = SmallMinus;\n\nSmallMinus.default = SmallMinus;\n","var React = require('react');\n\nfunction SmallPlus (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M11 5H7V1c0-.6-.4-1-1-1S5 .4 5 1v4H1c-.6 0-1 .4-1 1s.4 1 1 1h4v4c0 .6.4 1 1 1s1-.4 1-1V7h4c.6 0 1-.4 1-1s-.4-1-1-1z\"}));\n}\n\nSmallPlus.defaultProps = {\"width\":\"12\",\"height\":\"12\",\"viewBox\":\"0 0 12 12\"};\n\nmodule.exports = SmallPlus;\n\nSmallPlus.default = SmallPlus;\n","var React = require('react');\n\nfunction SmallX (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M5.9 4.5l2.8-2.8c.4-.4.4-1 0-1.4s-1-.4-1.4 0L4.5 3.1 1.7.3C1.3-.1.7-.1.3.3s-.4 1 0 1.4l2.8 2.8L.3 7.3c-.4.4-.4 1 0 1.4.2.2.4.3.7.3s.5-.1.7-.3l2.8-2.8 2.8 2.8c.2.2.4.3.7.3s.5-.1.7-.3c.4-.4.4-1 0-1.4L5.9 4.5z\"}));\n}\n\nSmallX.defaultProps = {\"width\":\"9\",\"height\":\"9\",\"viewBox\":\"0 0 9 9\"};\n\nmodule.exports = SmallX;\n\nSmallX.default = SmallX;\n","var React = require('react');\n\nfunction Spinner (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M38 19C38 8.507 29.494 0 19 0 8.507 0 0 8.507 0 19h4.137c0-8.208 6.654-14.863 14.863-14.863S33.863 10.791 33.863 19H38z\"}));\n}\n\nSpinner.defaultProps = {\"width\":\"38\",\"height\":\"38\",\"viewBox\":\"0 0 38 38\"};\n\nmodule.exports = Spinner;\n\nSpinner.default = Spinner;\n","var React = require('react');\n\nfunction Truck (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M20 0a3 3 0 012.82 2h4.58c1.41 0 2.62.969 2.92 2.349l.02.141.47 6.26c.07.82-.21 1.66-.78 2.28-.32.35-.72.609-1.15.779A2.995 2.995 0 0126 16a3 3 0 01-2.82-2h-8.36A3 3 0 0112 16a3 3 0 01-2.82-2H6V9H3V7h3V3c0-1.651 1.35-3 3-3zm6 12c-.55 0-1 .45-1 1 0 .549.45 1 1 1s1-.451 1-1c0-.55-.45-1-1-1zm-14 0c-.55 0-1 .45-1 1 0 .549.45 1 1 1s1-.451 1-1c0-.55-.45-1-1-1zm-8-1v2H0v-2h4zm20-7h-1v8h.18A3 3 0 0126 10c1.13 0 2.13.639 2.64 1.57.14-.19.19-.42.17-.66L28.67 9H24V4zm-3 5H8v3h1.18A3 3 0 0112 10a3 3 0 012.82 2H21V9zm6.4-5H26v3h2.53l-.17-2.281A.997.997 0 0027.4 4zM20 2H9c-.55 0-1 .45-1 1v4h13V3c0-.55-.45-1-1-1zM4 2v2H0V2h4z\",\"fillRule\":\"evenodd\"}));\n}\n\nTruck.defaultProps = {\"width\":\"31\",\"height\":\"16\"};\n\nmodule.exports = Truck;\n\nTruck.default = Truck;\n","var React = require('react');\n\nfunction X (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M12.932 0L7.173 5.759 1.414 0 0 1.414l5.759 5.759L0 12.932l1.414 1.414 5.759-5.759 5.759 5.759 1.414-1.414-5.759-5.759 5.759-5.759z\",\"fillRule\":\"evenodd\"}));\n}\n\nX.defaultProps = {\"width\":\"15\",\"height\":\"15\"};\n\nmodule.exports = X;\n\nX.default = X;\n","var React = require('react');\n\nfunction Zoom (props) {\n return React.createElement(\"svg\",props,React.createElement(\"path\",{\"d\":\"M8.61 0a8.61 8.61 0 016.624 14.11l6.155 6.155-1.74 1.739-6.243-6.244A8.61 8.61 0 118.61 0zm0 2.46a6.157 6.157 0 00-6.15 6.15 6.157 6.157 0 006.15 6.15 6.157 6.157 0 006.15-6.15 6.157 6.157 0 00-6.15-6.15zm1.23 2.46v2.46h2.46v2.46H9.84v2.46H7.38V9.84H4.92V7.38h2.46V4.92h2.46z\",\"fillRule\":\"evenodd\"}));\n}\n\nZoom.defaultProps = {\"width\":\"22\",\"height\":\"22\"};\n\nmodule.exports = Zoom;\n\nZoom.default = Zoom;\n","import analytics from './analytics';\r\nimport getData from '@creuna/utils/get-data';\r\nimport messenger from './utils/messenger';\r\n\r\nconst defaultFetchOptions = {\r\n headers: {\r\n Accept: 'application/json',\r\n 'Content-Type': 'application/json'\r\n },\r\n credentials: 'include'\r\n};\r\n\r\nfunction parseResponse(response) {\r\n return response.json().then(json => ({ json, response }));\r\n}\r\n\r\nfunction handleUserMessages({ json, response }) {\r\n if (json.messageToUser) {\r\n if (json.success) {\r\n messenger.sendMessage({ message: json.messageToUser });\r\n } else {\r\n messenger.sendErrorMessage({ message: json.messageToUser });\r\n }\r\n }\r\n\r\n return { json, response };\r\n}\r\n\r\nfunction handleAnalytics({ json, response }) {\r\n if (json.analytics) {\r\n analytics.send(json.analytics);\r\n }\r\n\r\n return { json, response };\r\n}\r\n\r\nfunction handleNotOk({ json, response }) {\r\n // NOTE: `response.ok` is true when the returned status is in the inclusive range 200-299.\r\n if (!response.ok && !json.messageToUser) {\r\n const error = new Error(response.statusText);\r\n\r\n error.name = `${response.status} on ${response.url}`;\r\n\r\n throw error;\r\n }\r\n\r\n return { json, response };\r\n}\r\n\r\nfunction handleRedirect({ json }) {\r\n if (json.redirectUrl) {\r\n window.location = json.redirectUrl;\r\n }\r\n return { json };\r\n}\r\n\r\nfunction handleResponse({ json }) {\r\n return json.payload || json;\r\n}\r\n\r\nfunction handleFetchError(error) {\r\n messenger.sendErrorMessage({\r\n message:\r\n getData('generic-error-message') ||\r\n 'Noe gikk galt. Vennligst prøv igjen senere.'\r\n });\r\n\r\n return Promise.reject(error);\r\n}\r\n\r\nfunction request(url, options) {\r\n return fetch(url, options)\r\n .then(parseResponse)\r\n .then(handleUserMessages)\r\n .then(handleAnalytics)\r\n .then(handleNotOk)\r\n .then(handleRedirect)\r\n .then(handleResponse)\r\n .catch(handleFetchError);\r\n}\r\n\r\nfunction post(endpoint, data) {\r\n return request(\r\n endpoint,\r\n Object.assign({}, defaultFetchOptions, {\r\n body: data,\r\n method: 'post'\r\n })\r\n );\r\n}\r\n\r\nfunction get(endpoint) {\r\n return request(endpoint, defaultFetchOptions);\r\n}\r\n\r\nfunction execute(endpoint, data) {\r\n if (endpoint.startsWith('/static-site/api')) {\r\n console.log('Requesting mock data from', endpoint, Object.assign({}, data)); // eslint-disable-line no-console\r\n return new Promise(resolve => {\r\n setTimeout(() => {\r\n resolve(\r\n request(endpoint, defaultFetchOptions).then(result => {\r\n console.log('Response from', endpoint, result); // eslint-disable-line no-console\r\n return result;\r\n })\r\n );\r\n }, 1000);\r\n });\r\n }\r\n\r\n return post(endpoint, JSON.stringify(data));\r\n}\r\n\r\nexport default {\r\n execute,\r\n get\r\n};\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport propTypeTheme from 'utils/prop-type-theme';\r\n\r\nimport Text from 'components/text';\r\n\r\nconst themes = {\r\n big: 'theme-big',\r\n lineThrough: 'theme-line-through',\r\n vertical: 'theme-vertical'\r\n};\r\n\r\nconst Price = ({\r\n children,\r\n className,\r\n discountedPrice,\r\n element,\r\n originalPrice,\r\n priceLabel,\r\n theme\r\n}) => {\r\n const Element = element;\r\n const smallPrice = discountedPrice && (\r\n \r\n {originalPrice}\r\n \r\n );\r\n const bigPrice = (\r\n
    \r\n {priceLabel && {priceLabel}}\r\n {discountedPrice || originalPrice}\r\n
    \r\n );\r\n\r\n return children ? (\r\n children(smallPrice, bigPrice)\r\n ) : (\r\n \r\n {bigPrice}\r\n {smallPrice}\r\n \r\n );\r\n};\r\n\r\nPrice.propTypes = {\r\n children: PropTypes.func,\r\n className: PropTypes.string,\r\n discountedPrice: PropTypes.string,\r\n element: PropTypes.string,\r\n originalPrice: PropTypes.string,\r\n priceLabel: PropTypes.string,\r\n theme: propTypeTheme(themes)\r\n};\r\n\r\nPrice.propTypesMeta = {\r\n className: 'exclude',\r\n element: 'exclude',\r\n theme: 'exclude'\r\n};\r\n\r\nPrice.defaultProps = {\r\n element: 'div'\r\n};\r\n\r\nPrice.themes = themes;\r\n\r\nexport default Price;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst HiddenInput = ({ name, value }) => (\r\n \r\n);\r\n\r\nHiddenInput.propTypes = {\r\n name: PropTypes.string.isRequired,\r\n value: PropTypes.string.isRequired\r\n};\r\n\r\nexport default HiddenInput;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nconst themes = {\r\n big: 'theme-big',\r\n bold: 'theme-bold',\r\n bigAndBold: 'theme-big-and-bold',\r\n boldUppercase: 'theme-bold-uppercase',\r\n boldUppercaseSmall: 'theme-bold-uppercase-small',\r\n filled: 'theme-filled',\r\n extraSmall: 'theme-extra-small',\r\n h1: 'theme-h1',\r\n h2: 'theme-h2',\r\n h3: 'theme-h3',\r\n small: 'theme-small',\r\n uppercase: 'theme-uppercase',\r\n uppercaseBig: 'theme-uppercase-big',\r\n uppercaseLarge: 'theme-uppercase-large',\r\n uppercaseHuge: 'theme-uppercase-huge',\r\n uppercaseJumbo: 'theme-uppercase-jumbo',\r\n uppercaseSmall: 'theme-uppercase-small'\r\n};\r\n\r\nconst Text = ({ children, className, element, theme, ...restProps }) => {\r\n return React.createElement(\r\n element,\r\n { ...restProps, className: cn('text', theme, className) },\r\n children\r\n );\r\n};\r\n\r\nText.propTypes = {\r\n children: PropTypes.node,\r\n className: PropTypes.string,\r\n element: PropTypes.string,\r\n theme: PropTypes.oneOf(Object.values(themes))\r\n};\r\n\r\nText.propTypesMeta = 'exclude';\r\n\r\nText.defaultProps = {\r\n element: 'p'\r\n};\r\n\r\nText.themes = themes;\r\n\r\n/* eslint-disable react/no-multi-comp */\r\nText.h1 = props => ;\r\nText.h2 = props => ;\r\nText.h3 = props => ;\r\nText.h4 = props => ;\r\nText.h5 = props => ;\r\nText.p = props => ;\r\nText.span = props => ;\r\nText.div = props => ;\r\n\r\nexport default Text;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\nimport get from 'lodash/get';\r\n\r\nimport useIsMounted from 'hooks/use-is-mounted';\r\nimport useEvent from 'hooks/use-event';\r\nimport useToggle from 'hooks/use-toggle';\r\nimport useClickOutside from 'hooks/use-click-outside';\r\nimport useFormValidation from 'hooks/use-form-validation';\r\n\r\nimport HiddenInput from 'components/hidden-input';\r\nimport Icon from 'components/icon';\r\nimport Link from 'components/link';\r\nimport Text from 'components/text';\r\n\r\n// NOTE: Since an option can't have `null` or `false` as a value (the text label of the option will be used instead), the \"null\" choice is represented using a single space. An empty string is serialized to an empty value when submitting a form (which is what we want). Comparing against `magicNullValue` also lets the component return `null` from its `onChange` callback when selecting the placeholder option.\r\nconst magicNullValue = '';\r\n\r\nconst themes = {\r\n simple: 'theme-simple'\r\n};\r\n\r\nconst Select = ({\r\n ariaLabelledBy,\r\n defaultSelectedValue,\r\n defaultScrollToValue,\r\n disabled,\r\n idPrefix,\r\n inlineLabel,\r\n label,\r\n labelLink,\r\n labelVisible,\r\n name,\r\n onChange,\r\n options,\r\n placeholder,\r\n theme,\r\n labelAnchorScrollText,\r\n labelAnchorScrollHref,\r\n validations\r\n}) => {\r\n const [error, validate] = useFormValidation(name, validations);\r\n\r\n const [isOpen, toggle, close] = useToggle(false);\r\n\r\n const [hasTouch, setHasTouch] = React.useState(false);\r\n useEvent('touchstart', () => setHasTouch(true));\r\n\r\n const fakeSelectRef = React.useRef();\r\n useClickOutside(fakeSelectRef, close);\r\n\r\n const [value, setValue] = React.useState(defaultSelectedValue);\r\n\r\n const isMounted = useIsMounted();\r\n React.useEffect(() => {\r\n // NOTE: The `onChange` callback indicates the user action of selecting, so it's not called for the initial render\r\n isMounted && onChange(value);\r\n }, [value]);\r\n\r\n const handleChange = value => {\r\n setValue(value === magicNullValue ? null : value);\r\n close();\r\n // NOTE: Let DOM update before validating\r\n requestAnimationFrame(validate);\r\n };\r\n\r\n const valueLabel = React.useMemo(\r\n () => get(options.find(o => o.value === value), 'label', placeholder),\r\n [options, value]\r\n );\r\n\r\n // HTML elements:\r\n const [scrollContainer, setScrollContainer] = React.useState();\r\n const [scrollToOption, setScrollToOption] = React.useState();\r\n\r\n // Scroll dropdown so that the selected option or the 'defaultScrollToValue' option is visible\r\n React.useEffect(() => {\r\n if (!isOpen || value || !scrollContainer || !scrollToOption) return;\r\n\r\n const elementPosition = scrollToOption.offsetTop;\r\n const elementHeight = scrollToOption.offsetHeight;\r\n const containerHeight = scrollContainer.offsetHeight;\r\n scrollContainer.scrollTop =\r\n elementPosition + elementHeight - containerHeight / 2;\r\n }, [isOpen, scrollContainer, scrollToOption, value]);\r\n\r\n // NOTE: Proxy variable to be able to use in map function for options\r\n const selectedValue = value;\r\n const id = idPrefix + name;\r\n\r\n return (\r\n \r\n {labelVisible && (\r\n \r\n {label}\r\n {labelLink && (\r\n \r\n \r\n \r\n )}\r\n {labelAnchorScrollText && labelAnchorScrollHref && (\r\n \r\n \r\n \r\n )}\r\n \r\n )}\r\n\r\n \r\n {options.length === 1 && (\r\n
    \r\n {options.map(({ label, value }) => (\r\n \r\n \r\n {label}\r\n \r\n ))}\r\n
    \r\n )}\r\n\r\n {options.length > 1 && (\r\n \r\n handleChange(e.target.value)}\r\n value={value || ''}\r\n >\r\n {placeholder && (\r\n \r\n )}\r\n\r\n {options.map(({ label, value }) => (\r\n \r\n ))}\r\n \r\n\r\n
    \r\n {} : toggle}\r\n ref={fakeSelectRef}\r\n >\r\n {inlineLabel && (\r\n {label}\r\n )}\r\n\r\n {valueLabel}\r\n \r\n
    \r\n {isOpen && (\r\n
      \r\n {options.map(({ label, value }) => {\r\n const isSelected = value === selectedValue;\r\n const isScrollToOption = selectedValue\r\n ? value\r\n : value === defaultScrollToValue;\r\n return (\r\n handleChange(value)}\r\n ref={isScrollToOption ? setScrollToOption : () => {}}\r\n >\r\n {label}\r\n \r\n );\r\n })}\r\n
    \r\n )}\r\n \r\n\r\n {error &&
    {error}
    }\r\n
    \r\n )}\r\n \r\n
    \r\n );\r\n};\r\n\r\nSelect.propTypes = {\r\n ariaLabelledBy: PropTypes.string,\r\n defaultSelectedValue: PropTypes.string,\r\n defaultScrollToValue: PropTypes.string,\r\n disabled: PropTypes.bool,\r\n inlineLabel: PropTypes.bool,\r\n idPrefix: PropTypes.string,\r\n label: PropTypes.string,\r\n labelLink: PropTypes.exact(Link.propTypes),\r\n labelVisible: PropTypes.bool,\r\n labelAnchorScrollText: PropTypes.string,\r\n labelAnchorScrollHref: PropTypes.string,\r\n name: PropTypes.string.isRequired,\r\n onChange: PropTypes.func,\r\n options: PropTypes.arrayOf(\r\n PropTypes.exact({\r\n label: PropTypes.string.isRequired,\r\n value: PropTypes.string.isRequired\r\n })\r\n ),\r\n placeholder: PropTypes.string,\r\n theme: PropTypes.oneOf(Object.values(themes)),\r\n validations: PropTypes.arrayOf(PropTypes.string)\r\n};\r\n\r\nSelect.propTypesMeta = {\r\n ariaLabelledBy: 'exclude',\r\n disabled: 'exclude',\r\n idPrefix: 'exclude',\r\n inlineLabel: 'exclude',\r\n labelAnchorScrollHref: 'exclude',\r\n labelVisible: 'exclude',\r\n theme: 'exclude',\r\n validations: 'exclude'\r\n};\r\n\r\nSelect.defaultProps = {\r\n defaultSelectedId: null,\r\n onChange: () => {},\r\n options: []\r\n};\r\n\r\nSelect.themes = themes;\r\n\r\nexport default Select;\r\n","/*\r\n * Minimal classList shim for IE 9\r\n * By Devon Govett\r\n * MIT LICENSE\r\n */\r\n\r\n// NOTE: https://gist.github.com/devongovett/1381839\r\n\r\nfunction activate() {\r\n if (\r\n !('classList' in document.documentElement) &&\r\n Object.defineProperty &&\r\n typeof HTMLElement !== 'undefined'\r\n ) {\r\n Object.defineProperty(HTMLElement.prototype, 'classList', {\r\n get: function() {\r\n var self = this;\r\n function update(fn) {\r\n return function(value) {\r\n var classes = self.className.split(/\\s+/),\r\n index = classes.indexOf(value);\r\n\r\n fn(classes, index, value);\r\n self.className = classes.join(' ');\r\n };\r\n }\r\n\r\n var ret = {\r\n add: update(function(classes, index, value) {\r\n ~index || classes.push(value);\r\n }),\r\n\r\n remove: update(function(classes, index) {\r\n ~index && classes.splice(index, 1);\r\n }),\r\n\r\n toggle: update(function(classes, index, value) {\r\n ~index ? classes.splice(index, 1) : classes.push(value);\r\n }),\r\n\r\n contains: function(value) {\r\n return !!~self.className.split(/\\s+/).indexOf(value);\r\n },\r\n\r\n item: function(i) {\r\n return self.className.split(/\\s+/)[i] || null;\r\n }\r\n };\r\n\r\n Object.defineProperty(ret, 'length', {\r\n get: function() {\r\n return self.className.split(/\\s+/).length;\r\n }\r\n });\r\n\r\n return ret;\r\n }\r\n });\r\n }\r\n}\r\n\r\nexport default {\r\n activate\r\n};\r\n","import classListPolyfill from './polyfills/class-list';\r\n\r\n/* NOTE: https://www.html5rocks.com/en/mobile/touchandmouse/\r\n First, you have to be careful when designing more advanced touch interactions:\r\n when the user uses a mouse it will respond via a click event, but when the user\r\n touches the screen both touch and click events will occur.\r\n\r\n For a single click the order of events is:\r\n\r\n 1. touchstart\r\n 2. touchmove\r\n 3. touchend\r\n 4. mouseover\r\n 5. mousemove\r\n 6. mousedown\r\n 7. mouseup\r\n 8. click\r\n*/\r\n\r\nfunction activate() {\r\n let touchEndHappened = false;\r\n\r\n classListPolyfill.activate();\r\n\r\n const onMouseDown = () => {\r\n if (touchEndHappened) {\r\n return;\r\n }\r\n\r\n document.documentElement.classList.add('mouse-user');\r\n document.documentElement.classList.add('no-touchevents');\r\n document.documentElement.classList.remove('touchevents');\r\n };\r\n\r\n const onTouchEnd = () => {\r\n touchEndHappened = true;\r\n setTimeout(() => {\r\n touchEndHappened = false;\r\n }, 100);\r\n };\r\n\r\n const onTouchStart = () => {\r\n document.documentElement.classList.add('mouse-user');\r\n document.documentElement.classList.add('touchevents');\r\n document.documentElement.classList.remove('no-touchevents');\r\n };\r\n\r\n document.addEventListener('touchstart', onTouchStart);\r\n document.addEventListener('touchend', onTouchEnd);\r\n document.addEventListener('mousedown', onMouseDown);\r\n\r\n const keyCodeWhiteList = [9, 33, 34, 35, 36, 37, 38, 39, 40];\r\n\r\n document.addEventListener('keydown', e => {\r\n if (keyCodeWhiteList.indexOf(e.which) !== -1) {\r\n document.documentElement.classList.remove('mouse-user');\r\n }\r\n });\r\n}\r\n\r\nexport default {\r\n activate\r\n};\r\n","import inputDetection from './input-detection';\r\n\r\ninputDetection.activate();\r\n","import React, { useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Collapse from 'react-tiny-collapse';\r\nimport Form from 'components/form';\r\nimport Checkbox from 'components/checkbox';\r\nimport TextInput from 'components/text-input';\r\nimport Button from 'components/button';\r\nimport cn from 'classnames';\r\n\r\nconst CartDiscountForm = ({\r\n className,\r\n endpoint,\r\n toggleCheckbox,\r\n input,\r\n submitLabel,\r\n onSubmit = () => {},\r\n onUpdate = () => {}\r\n}) => {\r\n const [isExpanded, setIsExpanded] = useState(false);\r\n\r\n const toggleSeparateDeliveryAddress = checked => {\r\n setIsExpanded(checked);\r\n };\r\n\r\n let codeInput = null;\r\n\r\n const onInputRef = el => {\r\n codeInput = el;\r\n };\r\n\r\n React.useEffect(() => {\r\n if (isExpanded && codeInput) {\r\n codeInput.focus();\r\n }\r\n }, [isExpanded]);\r\n\r\n return (\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\nCartDiscountForm.propTypes = {\r\n endpoint: PropTypes.string.isRequired,\r\n toggleCheckbox: PropTypes.exact(Checkbox.propTypes).isRequired,\r\n input: PropTypes.exact(TextInput.propTypes).isRequired,\r\n submitLabel: PropTypes.string.isRequired,\r\n onSubmit: PropTypes.func,\r\n onUpdate: PropTypes.func,\r\n className: PropTypes.string\r\n};\r\n\r\nCartDiscountForm.propTypesMeta = {\r\n className: 'exclude'\r\n};\r\n\r\nCartDiscountForm.defaultProps = {\r\n endpoint: ''\r\n};\r\n\r\nexport default CartDiscountForm;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Form from 'components/form';\r\nimport HiddenInput from 'components/hidden-input';\r\nimport Button from 'components/button';\r\nimport Icon from '../icon';\r\nimport cn from 'classnames';\r\n\r\nconst CartDiscountDeleteForm = ({\r\n text,\r\n discountCode,\r\n className,\r\n endpoint,\r\n submitLabel,\r\n onSubmit = () => {},\r\n onUpdate = () => {}\r\n}) => {\r\n return (\r\n
    \r\n
    \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n
    \r\n
    {text}
    \r\n
    \r\n );\r\n};\r\n\r\nCartDiscountDeleteForm.propTypes = {\r\n discountCode: PropTypes.string,\r\n text: PropTypes.string,\r\n endpoint: PropTypes.string.isRequired,\r\n submitLabel: PropTypes.string.isRequired,\r\n onSubmit: PropTypes.func,\r\n onUpdate: PropTypes.func,\r\n className: PropTypes.string\r\n};\r\n\r\nCartDiscountDeleteForm.propTypesMeta = {\r\n className: 'exclude'\r\n};\r\n\r\nCartDiscountDeleteForm.defaultProps = {\r\n endpoint: ''\r\n};\r\n\r\nexport default CartDiscountDeleteForm;\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\nimport PubSub from 'pubsub-js';\r\n\r\nimport checkApiPropTypes from 'js/check-api-prop-types';\r\nimport topics from 'js/topics.json';\r\n\r\nimport Collapse from 'react-tiny-collapse';\r\n\r\nimport CartProduct from './cart-product';\r\n\r\nimport CartDiscountForm from './cart-discount-form';\r\nimport CartDiscountDeleteForm from './cart-discount-delete-form';\r\n\r\nimport PageSpinner from '../page-spinner';\r\nimport Price from '../price';\r\n\r\nconst themes = {\r\n maxi: 'theme-maxi',\r\n mini: 'theme-mini'\r\n};\r\n\r\n// NOTE: EditCartResponse depends on Cart, which means there is a circular dependency between Cart and EditCartResponse. Webpack solves circular dependencies by setting one of the imports to `undefined`. Importing EditCartResponse asynchronously fixes this.\r\nconst EditCartResponse = () => require('components/edit-cart-response').default;\r\n\r\nclass Cart extends React.Component {\r\n static propTypes = {\r\n children: PropTypes.node,\r\n decreaseQuantityLabel: PropTypes.string,\r\n discount: PropTypes.string,\r\n discountLabel: PropTypes.string,\r\n discountsList: PropTypes.arrayOf(\r\n PropTypes.exact(CartDiscountDeleteForm.propTypes)\r\n ),\r\n discountCodeForm: PropTypes.exact(CartDiscountForm.propTypes),\r\n increaseQuantityLabel: PropTypes.string,\r\n numberOfProducts: PropTypes.string,\r\n onUpdate: PropTypes.func,\r\n priceLabel: PropTypes.string,\r\n products: PropTypes.arrayOf(PropTypes.exact(CartProduct.propTypes)),\r\n quantityLabel: PropTypes.string,\r\n removeFromCartLabel: PropTypes.string,\r\n shippingLabel: PropTypes.string,\r\n shippingCost: PropTypes.string,\r\n shouldBeEditable: PropTypes.bool,\r\n theme: PropTypes.oneOf(Object.keys(themes).map(key => themes[key])),\r\n totalPrice: PropTypes.string,\r\n totalPriceLabel: PropTypes.string,\r\n unitPriceLabel: PropTypes.string\r\n };\r\n\r\n static propTypesMeta = {\r\n shouldBeEditable: 'exclude',\r\n theme: 'exclude'\r\n };\r\n\r\n static defaultProps = {\r\n onUpdate: () => {},\r\n products: [],\r\n theme: themes.maxi,\r\n shouldBeEditable: true\r\n };\r\n\r\n state = {\r\n decreaseQuantityLabel: this.props.decreaseQuantityLabel,\r\n discount: this.props.discount,\r\n discountLabel: this.props.discountLabel,\r\n discountsList: this.props.discountsList,\r\n increaseQuantityLabel: this.props.increaseQuantityLabel,\r\n isLoading: false,\r\n numberOfProducts: this.props.numberOfProducts,\r\n priceLabel: this.props.priceLabel,\r\n products: this.props.products,\r\n quantityLabel: this.props.quantityLabel,\r\n removeFromCartLabel: this.props.removeFromCartLabel,\r\n shippingLabel: this.props.shippingLabel,\r\n shippingCost: this.props.shippingCost,\r\n totalPrice: this.props.totalPrice,\r\n totalPriceLabel: this.props.totalPriceLabel,\r\n unitPriceLabel: this.props.unitPriceLabel,\r\n showDiscountForm: true\r\n };\r\n\r\n // This flag allows the current instance of Cart to ignore data on the subscriber if the data comes from the instance itself. This is done to prevent unnecessary calls to setState. (Useful on the Checkout page where the cart compnent is rendered both in the header and on the page)\r\n didPublishNewCart = false;\r\n\r\n componentDidMount() {\r\n this.subscriber = PubSub.subscribe(topics.cartUpdate, (msg, newState) => {\r\n if (this.didPublishNewCart) {\r\n this.didPublishNewCart = false;\r\n } else {\r\n const { cart } = newState;\r\n\r\n if (cart) {\r\n this.setState({ ...cart });\r\n this.props.onUpdate(newState);\r\n }\r\n }\r\n });\r\n }\r\n\r\n componentWillUnmount() {\r\n PubSub.unsubscribe(this.subscriber);\r\n }\r\n\r\n componentDidUpdate(prevProps) {\r\n if (prevProps !== this.props) {\r\n this.setState({ isLoading: false });\r\n }\r\n }\r\n\r\n onFormSubmit = () => {\r\n this.setState({ isLoading: true });\r\n };\r\n\r\n onResponse = response => {\r\n const { cart } = response;\r\n this.setState({\r\n isLoading: false,\r\n showDiscountForm: !!cart.discountCodeForm,\r\n ...cart\r\n });\r\n this.props.onUpdate(response);\r\n\r\n checkApiPropTypes(\r\n response,\r\n EditCartResponse().propTypes,\r\n 'EditCartResponse'\r\n );\r\n\r\n this.didPublishNewCart = true;\r\n PubSub.publish(topics.cartUpdate, response);\r\n };\r\n\r\n render() {\r\n const isMaxi = this.props.theme === themes.maxi;\r\n\r\n // These labels are omitted for the 'mini' theme to avoid rendering them\r\n const productLabels = isMaxi\r\n ? {\r\n priceLabel: this.state.priceLabel,\r\n quantityLabel: this.state.quantityLabel,\r\n unitPriceLabel: this.state.unitPriceLabel\r\n }\r\n : {};\r\n\r\n const cartSummaryClassNames = cn('cart-summary', {\r\n 'not-editable': !this.props.shouldBeEditable\r\n });\r\n\r\n return (\r\n
    \r\n \r\n {this.state.numberOfProducts && (\r\n

    \r\n {this.state.numberOfProducts}\r\n

    \r\n )}\r\n {!!this.state.products.length && (\r\n \r\n
    \r\n \r\n {this.state.products.map(product => (\r\n \r\n ))}\r\n
    \r\n
    \r\n
    \r\n )}\r\n {this.state.discount && (\r\n
    \r\n

    {this.state.discountLabel}

    \r\n \r\n {this.state.discountsList && !!this.state.discountsList.length && (\r\n \r\n
      \r\n {this.state.discountsList.map((discount, i) => (\r\n
    • \r\n \r\n
    • \r\n ))}\r\n
    \r\n \r\n )}\r\n
    \r\n )}\r\n {this.state.shippingCost && (\r\n
    \r\n

    {this.state.shippingLabel}

    \r\n \r\n
    \r\n )}\r\n {this.state.totalPrice && (\r\n
    \r\n

    {this.state.totalPriceLabel}

    \r\n \r\n
    \r\n )}\r\n\r\n {this.props.discountCodeForm && this.state.showDiscountForm && (\r\n \r\n )}\r\n\r\n {this.props.children && (\r\n
    {this.props.children}
    \r\n )}\r\n
    \r\n );\r\n }\r\n}\r\n\r\nCart.themes = themes;\r\n\r\nexport default Cart;\r\n","import PropTypes from 'prop-types';\r\n\r\n// Creates proptype definition from themes\r\nexport default function(themes) {\r\n const singlePropType = PropTypes.oneOf(\r\n Object.keys(themes).map(key => themes[key])\r\n );\r\n\r\n return PropTypes.oneOfType([\r\n singlePropType,\r\n PropTypes.arrayOf(singlePropType)\r\n ]);\r\n}\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport Icon from 'components/icon';\r\n\r\nconst themeNames = {\r\n arrowRight: 'theme-arrow-right',\r\n buttonGray: 'theme-button-gray',\r\n buttonCyan: 'theme-button-cyan',\r\n buttonCyanSmall: 'theme-button-cyan-small',\r\n buttonCyanLight: 'theme-button-cyan-light',\r\n buttonOutline: 'theme-button-outline',\r\n buttonWhite: 'theme-button-white',\r\n circle: 'theme-circle',\r\n circleDark: 'theme-circle-dark',\r\n circleSmall: 'theme-circle-small',\r\n link: 'theme-link',\r\n plain: 'theme-plain',\r\n linkBig: 'theme-link-big',\r\n linkBigUppercase: 'theme-link-big-uppercase',\r\n linkGray: 'theme-link-gray',\r\n linkGrayUnderline: 'theme-link-gray-underline',\r\n linkWhite: 'theme-link-white',\r\n uppercase: 'theme-uppercase',\r\n wide: 'theme-wide'\r\n};\r\n\r\n// NOTE: This component exists because designers often get confused about links and buttons, styling links as buttons and buttons as links willy nilly. Clickable is a place for both link and button styles. This is an attempt to reduce complexity by decoupling visual style from function.\r\nconst Clickable = React.forwardRef(\r\n (\r\n {\r\n children,\r\n className,\r\n element,\r\n iconAfter,\r\n iconBefore,\r\n themes,\r\n ctaTitle,\r\n ctaType,\r\n ...restProps\r\n },\r\n ref\r\n ) => {\r\n return React.createElement(\r\n element,\r\n {\r\n ...restProps,\r\n ref,\r\n className: cn('clickable', themes, className, {\r\n 'has-icon-after': iconAfter,\r\n 'has-icon-before': iconBefore\r\n }),\r\n 'data-cta-type': ctaType ? ctaType : null,\r\n 'data-cta-title': ctaTitle ? ctaTitle : null,\r\n itemProp: restProps.itemProp ? 'item' : null\r\n },\r\n \r\n {iconBefore && }\r\n {children && (\r\n \r\n {children}\r\n \r\n )}\r\n {themes.includes(themeNames.arrowRight) && (\r\n \r\n )}\r\n {iconAfter && }\r\n \r\n );\r\n }\r\n);\r\n\r\nClickable.propTypes = {\r\n children: PropTypes.node,\r\n className: PropTypes.string,\r\n element: PropTypes.string.isRequired,\r\n iconAfter: PropTypes.string,\r\n iconBefore: PropTypes.string,\r\n themes: PropTypes.arrayOf(PropTypes.oneOf(Object.values(themeNames))),\r\n ctaTitle: PropTypes.string,\r\n ctaType: PropTypes.string\r\n};\r\n\r\n// NOTE: Show 'Clickable' in error messages instead of 'forwardRef'\r\nClickable.displayName = 'Clickable';\r\n\r\nClickable.propTypesMeta = 'exclude';\r\n\r\nClickable.defaultProps = {\r\n themes: []\r\n};\r\n\r\nClickable.themes = themeNames;\r\n\r\nexport default Clickable;\r\n","import PropTypes from 'prop-types';\r\n\r\n// NOTE: This file exists in order to generate a viewmodel for validation messages. Do not use this for rendering.\r\nconst ValidationErrorTexts = {};\r\nValidationErrorTexts.propTypes = {\r\n isRequired: PropTypes.string,\r\n isBirthDate: PropTypes.string,\r\n isUserName: PropTypes.string,\r\n isEmail: PropTypes.string,\r\n isPostalCode: PropTypes.string,\r\n isPhoneNumber: PropTypes.string\r\n};\r\n\r\nexport default ValidationErrorTexts;\r\n","import PropTypes from 'prop-types';\r\n\r\nexport default function checkApiPropTypes(data, typeSpec, typeName) {\r\n if (process.env.NODE_ENV !== 'production') {\r\n PropTypes.checkPropTypes(\r\n { response: PropTypes.exact(typeSpec) },\r\n { response: data },\r\n '',\r\n typeName\r\n );\r\n }\r\n}\r\n","import React from 'react';\r\n\r\nexport default function useToggle(initialValue = false) {\r\n const [isActive, setActive] = React.useState(initialValue);\r\n\r\n const toggle = () => setActive(active => !active);\r\n const deactivate = () => setActive(false);\r\n\r\n return [isActive, toggle, deactivate];\r\n}\r\n","const req = require.context('./', true, /\\.svg$/);\r\n\r\nexport default req.keys().reduce((icons, filename) => {\r\n const id = filename.replace('./', '').replace('.svg', '');\r\n return { ...icons, [id]: req(filename) };\r\n}, {});\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport icons from '../../assets/icons/icons';\r\n\r\nconst Icon = ({ className, name }) =>\r\n icons[name]\r\n ? React.createElement(icons[name], {\r\n className: cn('icon', className),\r\n focusable: 'false'\r\n })\r\n : null;\r\n\r\nIcon.propTypes = {\r\n className: PropTypes.string,\r\n name: PropTypes.oneOf(Object.keys(icons)).isRequired\r\n};\r\n\r\nIcon.propTypesMeta = 'exclude';\r\n\r\nexport default Icon;\r\n","import React from 'react';\r\n\r\n/** Attaches an event listener for `eventName` to `window`. */\r\nexport default function useEvent(\r\n eventName = '',\r\n eventHandler = () => {},\r\n dependencies = []\r\n) {\r\n React.useEffect(() => {\r\n window.addEventListener(eventName, eventHandler);\r\n return () => window.removeEventListener(eventName, eventHandler);\r\n }, dependencies);\r\n}\r\n","import PubSub from 'pubsub-js';\r\n\r\nimport topics from 'js/topics.json';\r\n\r\nfunction onTopic(topic, func) {\r\n if (typeof func !== 'function') return;\r\n\r\n return PubSub.subscribe(topic, (topic, { message, title }) => {\r\n func({ message, title });\r\n });\r\n}\r\n\r\nfunction send(topic, payload = {}) {\r\n PubSub.publish(topic, payload);\r\n}\r\n\r\nconst onErrorMessage = func => onTopic(topics.errorMessage, func);\r\n\r\nfunction off(token) {\r\n if (!token) {\r\n return;\r\n }\r\n\r\n PubSub.unsubscribe(token);\r\n}\r\n\r\nconst onMessage = func => onTopic(topics.message, func);\r\n\r\nconst onHideMessage = func => onTopic(topics.hideMessage, func);\r\n\r\nconst hideMessage = () => send(topics.hideMessage);\r\n\r\nconst sendErrorMessage = ({ message, title }) =>\r\n send(topics.errorMessage, { message, title });\r\n\r\nconst sendMessage = ({ message, title }) =>\r\n send(topics.message, { message, title });\r\n\r\nexport default {\r\n onErrorMessage,\r\n off,\r\n onMessage,\r\n hideMessage,\r\n onHideMessage,\r\n sendErrorMessage,\r\n sendMessage\r\n};\r\n","import React from 'react';\r\n\r\nexport default function useIsMounted() {\r\n const [isMounted, setIsMounted] = React.useState(false);\r\n React.useEffect(() => setIsMounted(true), []);\r\n return isMounted;\r\n}\r\n","import React from 'react';\r\n\r\nimport Form from 'components/form';\r\n\r\nexport default function useFormValidation(name, validations) {\r\n const {\r\n attachInput,\r\n detachInput,\r\n errors,\r\n onChange,\r\n dirtyFields\r\n } = React.useContext(Form.Context);\r\n\r\n const isDirty = dirtyFields[name];\r\n const errorMessage = isDirty ? errors[name] : undefined;\r\n const validate = () => onChange(name);\r\n\r\n // NOTE: Do NOT use 'validations' as a dependency here. You'll create an infinite update loop.\r\n React.useEffect(() => {\r\n attachInput(name, validations);\r\n return () => detachInput(name);\r\n }, [name]);\r\n\r\n return [errorMessage, validate, isDirty];\r\n}\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport cn from 'classnames';\r\n\r\nimport Icon from 'components/icon';\r\n\r\nimport propTypeTheme from 'utils/prop-type-theme';\r\n\r\nconst themes = {\r\n big: 'theme-big',\r\n white: 'theme-white'\r\n};\r\n\r\nconst Spinner = ({ className, theme }) => (\r\n
    \r\n \r\n
    \r\n);\r\n\r\nSpinner.propTypes = {\r\n className: PropTypes.string,\r\n theme: propTypeTheme(themes)\r\n};\r\n\r\nSpinner.propTypesMeta = 'exclude';\r\n\r\nSpinner.themes = themes;\r\n\r\nexport default Spinner;\r\n","var transformBase = '?transform=DownFit&width=';\r\nvar breakpointResolution = 100;\r\n\r\nfunction getNewSrc(originalSrc, imageNodeWidth, currentImageWidth = 0) {\r\n if (typeof originalSrc !== 'string') {\r\n return originalSrc;\r\n }\r\n\r\n // NOTE: the image resizer plugin can't scale animated GIFs, so they are left as is.\r\n if (originalSrc.endsWith('.gif')) {\r\n return originalSrc;\r\n }\r\n\r\n var devicePixelRatio =\r\n typeof window !== 'undefined' ? window.devicePixelRatio || 1 : 1;\r\n var adjustedWidth = imageNodeWidth * devicePixelRatio;\r\n\r\n // Return image resized up to closest 100px relative to imageNodeWidth\r\n return (\r\n originalSrc +\r\n transformBase +\r\n (adjustedWidth > currentImageWidth\r\n ? Math.ceil(adjustedWidth / breakpointResolution) * breakpointResolution\r\n : currentImageWidth)\r\n );\r\n}\r\n\r\nfunction loadAppropriateImage(imageNodeContainer) {\r\n var imageNode = imageNodeContainer.getElementsByTagName('img')[0],\r\n src = imageNodeContainer.getAttribute('data-src');\r\n\r\n // Remove transforms to get precise width\r\n imageNodeContainer.style.transform = 'none';\r\n var width = imageNodeContainer.offsetWidth;\r\n imageNodeContainer.style.transform = '';\r\n\r\n var newSrc = getNewSrc(src, width);\r\n\r\n imageNode.setAttribute('src', newSrc);\r\n imageNodeContainer.style.backgroundImage = `url(\"${newSrc}\")`;\r\n}\r\n\r\nfunction activate() {\r\n if (typeof window !== 'undefined' && window.document) {\r\n var imageNodeContainers = document.getElementsByClassName('fluid-image');\r\n var length = imageNodeContainers.length;\r\n\r\n for (var i = 0; i < length; i++) {\r\n loadAppropriateImage(imageNodeContainers[i]);\r\n }\r\n }\r\n}\r\n\r\nexport default {\r\n activate,\r\n getNewSrc,\r\n loadAppropriateImage\r\n};\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Clickable from 'components/clickable';\r\n\r\n// NOTE: Any valid DOM prop is a valid prop for Button\r\nconst Button = React.forwardRef(\r\n ({ children, className, text, themes, type, ...restProps }, ref) => {\r\n return (\r\n \r\n {text}\r\n {children}\r\n \r\n );\r\n }\r\n);\r\n\r\nButton.propTypes = {\r\n children: PropTypes.node,\r\n className: PropTypes.string,\r\n text: PropTypes.string,\r\n themes: PropTypes.any,\r\n type: PropTypes.string\r\n};\r\n\r\nButton.propTypesMeta = {\r\n className: 'exclude',\r\n themes: 'exclude',\r\n type: 'exclude'\r\n};\r\n\r\nButton.defaultProps = {\r\n type: 'button',\r\n themes: [Clickable.themes.buttonCyan]\r\n};\r\n\r\n// NOTE: Show 'Button' in error messages instead of 'forwardRef'\r\nButton.displayName = 'Button';\r\n\r\nButton.themes = Clickable.themes;\r\n\r\nexport default Button;\r\n","import isRunningOnClient from '@creuna/utils/is-running-on-client';\r\n\r\n/* NOTE: Implement Google Tag Manager for this module to work correctly\r\n\r\n Step 1\r\n Copy the following JavaScript and paste it as close to the opening tag as possible on every page of your website\r\n \r\n\r\n Step 2\r\n Copy the following snippet and paste it immediately after the opening tag on every page of your website\r\n \r\n*/\r\n\r\n// NOTE: See https://docs.google.com/spreadsheets/d/1Q5eLVcFdGxVhnz-17I_V77QQeCZPPum7PwAeuMkwFms/ for the initial/incomplete/confusing tracking spec.\r\n\r\nfunction Timeout(fn, delay) {\r\n const id = setTimeout(() => {\r\n this.clear();\r\n fn();\r\n }, delay);\r\n\r\n this.cleared = false;\r\n this.clear = () => {\r\n this.cleared = true;\r\n clearTimeout(id);\r\n };\r\n}\r\n\r\nfunction getCallbackEnhancedData(data, callback) {\r\n if (typeof callback !== 'function') {\r\n return data;\r\n }\r\n\r\n // NOTE: The timeout will call the callback after the delay unless eventCallback is called first, clearing the timeout.\r\n // This ensures that the callback will be called even if GTM is unavailable or can't handle the event fast enough.\r\n const callbackTimeout = new Timeout(callback, 300);\r\n\r\n return Object.assign({}, data, {\r\n eventCallback: () => {\r\n if (!callbackTimeout.cleared) {\r\n callbackTimeout.clear();\r\n callback();\r\n }\r\n }\r\n });\r\n}\r\n\r\nfunction send(data, callback) {\r\n if (!data || !isRunningOnClient) {\r\n return;\r\n }\r\n\r\n window.dataLayer = window.dataLayer || [];\r\n\r\n if (data.length) {\r\n data.forEach(dataObject => {\r\n window.dataLayer.push(getCallbackEnhancedData(dataObject, callback));\r\n });\r\n } else {\r\n window.dataLayer.push(getCallbackEnhancedData(data, callback));\r\n }\r\n}\r\n\r\nexport default {\r\n send\r\n};\r\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport Collapse from 'react-tiny-collapse';\r\n\r\nimport Form from 'components/form';\r\nimport Select from 'components/select';\r\n\r\nconst CartProductDetails = ({ endpoint, inputs, isExpanded }) => {\r\n return (\r\n \r\n \r\n \r\n \r\n
    \r\n
    \r\n {inputs.map(detail => (\r\n
    \r\n