diff --git a/assets/app.css.liquid b/assets/app.css.liquid new file mode 100644 index 0000000..592647a --- /dev/null +++ b/assets/app.css.liquid @@ -0,0 +1,3117 @@ +/*============================================================================ + [replace with theme name] | Built with Slate + - You cannot use native CSS/Sass @imports in this file without a build script +==============================================================================*/ +/*================ SASS HELPERS ================*/ +/*============================================================================ + Grid Breakpoints and Class Names + - Do not change the variable names +==============================================================================*/ +/*============================================================================ + Generate breakpoint-specific column widths and push classes + - Default column widths: $grid-breakpoint-has-widths: ($small, $medium-up); + - Default is no push classes + - Will not work if `theme/_grid.scss` is removed +==============================================================================*/ +/*================ Color Variables ================*/ +/*================ Media Query Mixin ================*/ +@font-face { + font-family: "circular"; + src: url("CircularStd-Black.woff2") format("woff2"), url("CircularStd-Black.woff") format("woff"); + font-weight: 900; + font-style: normal; +} +@font-face { + font-family: "circular"; + src: url("CircularStd-Medium.woff2") format("woff2"), url("CircularStd-Medium.woff") format("woff"); + font-weight: 500; + font-style: normal; +} +@font-face { + font-family: "circular-book"; + src: url("CircularStd-Book.woff2") format("woff2"), url("CircularStd-Book.woff") format("woff"); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: "circular"; + src: url("CircularStd-Bold.woff2") format("woff2"), url("CircularStd-Bold.woff") format("woff"); + font-weight: bold; + font-style: normal; +} +body { + font-family: "circular", arial, sans-serif !important; +} + +h1, h2, h3, h4, h5, h6 { + font-family: "circular", arial, sans-serif !important; + line-height: 1 !important; +} + +input { + font-family: "circular", arial, sans-serif !important; +} + +button { + font-family: "circular", arial, sans-serif !important; +} + +select { + font-family: "circular", arial, sans-serif !important; +} + +.top-bar { + padding-top: 1.5px; + background-color: #efefec; +} + +#HeaderLogo { + max-width: 80px !important; +} + +#HeaderLogoWrapper { + margin: 0; + padding-top: 10px; + position: relative; + z-index: 2000000; +} +#HeaderLogoWrapper #HeaderLogo { + top: 6px; +} +#HeaderLogoWrapper a { + padding: 0 !important; +} + +.site-header { + background-color: #333; + padding-bottom: 6px; + height: 70px !important; + display: block; +} +.site-header .rf-wrapper .grid__item { + padding-left: 0px; +} + +.collection-list--1589364306473 { + width: 93%; + margin-left: auto; + margin-right: auto; + position: relative; + height: auto; +} +@media only screen and (min-width: 1400px) { + .collection-list--1589364306473 { + width: 1270px; + } +} + +.rf-wrapper { + width: 93%; + margin-left: auto; + margin-right: auto; + overflow: hidden; + position: relative; + height: 80px; +} +@media only screen and (min-width: 1400px) { + .rf-wrapper { + width: 1270px; + } +} +.rf-wrapper.slideshow-container { + bottom: 0px; + position: absolute; + overflow: visible; + left: 50%; + transform: translateX(-50%); + height: auto; +} +.rf-wrapper.slideshow-container .slides__text-content { + background-color: transparent; +} +@media only screen and (min-width: 750px) { + .rf-wrapper.slideshow-container .slides__text-content { + background-color: #fdd72b; + } +} +.rf-wrapper.curated { + width: 100% !important; +} +.rf-wrapper.products-wrapper { + overflow: visible; + height: auto; +} +.rf-wrapper.breadcrumb-wrapper { + overflow: visible; + height: auto; +} +@media only screen and (max-width: 989px) { + .rf-wrapper.breadcrumb-wrapper { + width: 100%; + } +} +.rf-wrapper.reccomended-wrapper { + overflow: visible; + height: auto; +} + +.top-bar { + margin-top: 0; + margin-left: 0 !important; +} +.top-bar .rf-wrapper { + height: 30px; +} +.top-bar .rf-wrapper .grid__item { + padding-left: 0px; +} + +nav { + position: relative; +} +nav ul { + display: none; + flex-direction: column; + margin-left: auto; + width: -webkit-max-content; + width: max-content; + margin-top: -8px; +} +@media only screen and (min-width: 750px) { + nav ul { + flex-direction: row; + display: flex; + } +} +nav ul li { + margin-left: 20px; + font-size: 20px; +} +nav ul li a { + color: #fff !important; +} +nav ul li a.cart { + color: #fdd72b !important; +} +nav ul li a[aria-current] { + border-top: 5px solid #0792d1; +} +nav ul li > ul { + display: none; +} + +.slideshow__mobile-text-container .slides__text-content { + width: 100%; + margin-top: 0px; +} + +.shopify-slideshow-section { + margin-bottom: 0px !important; +} + +.slides__text-content { + position: relative; + background-color: #fdd72b; + padding: 10px 10px 20px 10px; +} +@media only screen and (min-width: 750px) { + .slides__text-content { + top: 80%; + width: 400px; + margin: 0; + transform: none; + } +} +.slides__text-content .slides-text-content-wrapper-left { + width: 100%; +} +.slides__text-content .slides-text-content-wrapper-left h2 { + color: #333 !important; +} +.slides__text-content .slides-text-content-wrapper-left a.btn { + background-color: #333; + font-weight: 900; + text-transform: capitalize; + font-size: 20px; + letter-spacing: 0px; +} +.slides__text-content .slides-text-content-wrapper-left a.btn:hover { + background-color: #0792d1; +} + +.slides__slide::before { + display: none !important; +} + +.flex-control-nav { + position: absolute; + bottom: 0px; +} + +.flex-control-paging a { + background-color: transparent; + border-color: #333; +} +.flex-control-paging a:hover { + background-color: #333; +} +.flex-control-paging a.flex-active { + background-color: #333; + border-color: #333; +} + +.rf-featured-block-wrapper { + background-color: #efefec; + padding-top: 10px; + padding-bottom: 10px; +} +@media only screen and (min-width: 750px) { + .rf-featured-block-wrapper { + padding-top: 20px; + padding-bottom: 40px; + } + .rf-featured-block-wrapper h2 { + float: left; + width: 400px; + font-size: 28px; + } + .rf-featured-block-wrapper .rich-text__text--large { + width: 400px; + float: left; + } + .rf-featured-block-wrapper .rich-text__text--large p { + line-height: 1.2; + } +} +.rf-featured-block-wrapper .rf-wrapper { + overflow: hidden; + height: auto; +} + +/*Promotion */ +.rf-new-product-promotion { + background-position-y: 363px; + background-color: #060808; +} +@media only screen and (min-width: 750px) { + .rf-new-product-promotion { + height: 324px; + overflow: hidden; + } +} +.rf-special-product-wrapper .rf-new-product-promotion { + margin-bottom: 20px; +} +@media only screen and (min-width: 750px) { + .rf-special-product-wrapper .rf-new-product-promotion { + height: 350px; + overflow: hidden; + } +} +.rf-new-product-promotion.hide { + display: none; +} +.rf-new-product-promotion .rf-wrapper { + display: flex; + flex-direction: column; + justify-content: space-between; + height: auto; +} +@media only screen and (min-width: 750px) { + .rf-new-product-promotion .rf-wrapper { + flex-direction: row; + } +} + +.product-promotion-header, .product-promotion-image, .product-promotion-logos { + flex-basis: 100%; +} +@media only screen and (min-width: 750px) { + .product-promotion-header, .product-promotion-image, .product-promotion-logos { + flex-basis: 43%; + } +} + +.product-promotion-header { + padding-top: 10px; + padding-bottom: 20px; +} +.product-promotion-header h1, .product-promotion-header h2 { + color: #fff; + font-family: "circular", arial, sans-serif; + font-size: "large"; + line-height: "large"; + margin-bottom: 0 !important; + margin-top: 0 !important; +} +@media only screen and (min-width: 750px) { + .product-promotion-header h1, .product-promotion-header h2 { + font-size: 38px; + line-height: 35px; + } +} +@media only screen and (min-width: 1400px) { + .product-promotion-header h1, .product-promotion-header h2 { + font-size: 50px; + line-height: 45px; + } +} +.product-promotion-header h2 { + color: #fdd72b; + font-family: "circular-book", arial, sans-serif; +} +.product-promotion-header p { + font-size: 16px; + line-height: 19px; + font-family: "circular", arial, sans-serif; + color: #fff; + margin-top: 20px; +} +@media only screen and (min-width: 1400px) { + .product-promotion-header p { + width: 490px; + } +} +.product-promotion-header .rf-button { + color: #515151; + background-color: #fff; + padding-left: 12px; + padding-top: 14px; + padding-right: 10px; + padding-bottom: 14px; + display: inline-block; + font-family: "circular", arial, sans-serif; + font-size: 16px; +} +.product-promotion-header .rf-button a { + text-decoration: none; + color: inherit; +} +.product-promotion-header .rf-button:hover { + background-color: #fdd72b; +} + +.product-promotion-image { + width: -webkit-max-content; + width: max-content; + position: relative; + right: 0; + width: 100%; +} +@media only screen and (min-width: 750px) { + .product-promotion-image { + height: 280px; + position: absolute; + width: -webkit-max-content; + width: max-content; + } +} +.product-promotion-image img { + width: 100%; + height: 115.5%; + object-fit: cover; +} +@media only screen and (min-width: 750px) { + .product-promotion-image img { + width: 610px; + object-fit: cover; + } +} +.rf-new-shop .product-promotion-image img { + width: 100%; + height: 103%; + object-fit: cover; +} +@media only screen and (min-width: 750px) { + .rf-new-shop .product-promotion-image img { + width: 670px; + height: 125%; + object-fit: cover; + } +} + +.product-promotion-logos { + position: relative; +} +.product-promotion-logos svg { + position: absolute; + right: 0; + bottom: 20px; +} + +.small--text-center { + font-size: 28px !important; +} + +.product .product__title { + font-size: 20px; + text-align: left !important; + line-height: 1; +} +.product .product__price { + color: #0792d1; + font-family: "circular", arial, sans-serif; +} + +.product.grid__item .product__price--on-sale + .visually-hidden + s { + display: none; +} +.product.grid__item .product__price--on-sale + .visually-hidden + s.showme { + display: block; +} + +.product-single__price, .product-single__price--compare { + font-family: "circular", arial, sans-serif; +} + +#shopify-section-1564505903027 .rich-text__text--large, #shopify-section-1564505903027 .rich-text__text--medium, #shopify-section-1565433542862 .rich-text__text--large, #shopify-section-1565433542862 .rich-text__text--medium { + width: 94%; +} +@media only screen and (min-width: 750px) { + #shopify-section-1564505903027 .rich-text__text--large, #shopify-section-1564505903027 .rich-text__text--medium, #shopify-section-1565433542862 .rich-text__text--large, #shopify-section-1565433542862 .rich-text__text--medium { + width: 68%; + } +} +#shopify-section-1564505903027 .rich-text__text--large .rf-wrapper, #shopify-section-1564505903027 .rich-text__text--medium .rf-wrapper, #shopify-section-1565433542862 .rich-text__text--large .rf-wrapper, #shopify-section-1565433542862 .rich-text__text--medium .rf-wrapper { + overflow: hidden; + height: auto; +} +#shopify-section-1564505903027 .rich-text__text--large p:before, #shopify-section-1564505903027 .rich-text__text--medium p:before, #shopify-section-1565433542862 .rich-text__text--large p:before, #shopify-section-1565433542862 .rich-text__text--medium p:before { + content: '"'; + display: inline-block; + color: #eb5d42; + font-size: 40px; + margin-right: 5px; + line-height: 0; + transform: translate(0px, 14px); +} +@media only screen and (min-width: 750px) { + #shopify-section-1564505903027 .rich-text__text--large p, #shopify-section-1564505903027 .rich-text__text--medium p, #shopify-section-1565433542862 .rich-text__text--large p, #shopify-section-1565433542862 .rich-text__text--medium p { + width: 45%; + margin-right: 1%; + float: left; + } +} + +.breadcrumb-nav { + padding-left: 10px; +} +@media only screen and (min-width: 750px) { + .breadcrumb-nav { + padding-left: 0; + } +} +.breadcrumb-nav.small--text-center { + font-size: 16px !important; +} + +#the-kubrick-collection { + background-color: #333; +} +#the-kubrick-collection h1.grid__item { + color: #fdd72b; +} +#the-kubrick-collection .collection-description { + color: #fff; + width: 100%; + line-height: 1.2; + margin-left: 0px !important; +} +@media only screen and (min-width: 750px) { + #the-kubrick-collection .collection-description { + width: 50%; + margin-left: 0px !important; + } +} +#the-kubrick-collection .breadcrumb-nav.small--text-center { + color: #fdd72b; +} +#the-kubrick-collection .breadcrumb-nav.small--text-center a { + color: #efefec; +} +#the-kubrick-collection .product__title a { + color: #fff !important; +} +#the-kubrick-collection .product__price { + color: #fdd72b; +} +#the-kubrick-collection .collection-description { + margin-left: 20px; +} + +#artists h1.small--text-center { + background-color: transparent !important; + font-size: 97px !important; + padding-bottom: 0; + margin-bottom: 50px; + letter-spacing: -2px; +} +#artists h1.small--text-center:after { + display: none; +} +#artists h1.small--text-center { + color: #333 !important; +} +#artists .rte { + column-count: 1; + column-gap: 20px; + column-fill: balance; + max-width: 100%; +} +@media only screen and (min-width: 750px) { + #artists .rte { + column-count: 4; + } +} +#artists .rte h1 { + border-top: 4px solid #333; + padding-top: 6px; +} +#artists .rte h2 { + margin: 0 !important; + margin-bottom: 12px !important; +} +#artists .rte a.text-link { + color: #333; +} +#artists footer .rte { + columns: 1; +} + +.site-footer { + background-color: #efefec; + padding-top: 10px; + border-top: 1px solid #d0d0d0; +} +.site-footer .rf-wrapper { + height: auto; + overflow: visible; +} +.site-footer .sub-footer.small--text-center { + font-size: 16px !important; +} +.site-footer .site-footer__menu li a { + border-bottom: 1px solid #333; +} +.site-footer .grid__item:first-child .site-footer__section-title { + color: #eb5d42; +} + +.site-footer__section-title { + margin-bottom: 10px; + font-size: 28px; + color: #333; +} + +.instagram-container .rf-wrapper { + height: auto; +} + +#about { + background-color: #efefec; +} +#about .breadcrumb-nav + h1 { + display: none; +} +#about .breadcrumb-nav { + display: none; +} +#about .image { + background-color: #fff; + position: relative; + margin-top: -15px; + max-height: 700px; + overflow: hidden; + width: 100%; + margin-bottom: 20px; + display: inline-block; +} +#about .image img { + width: 100%; + height: auto; +} +#about .about-title { + display: none; +} +#about .about-columns img { + border-radius: 50%; + margin-left: 10px; +} +#about .about-columns .rf-col h2 { + color: #0792d1; + margin-left: 10px; + font-size: 28px; +} +#about .about-columns .rf-col p { + color: #333; + margin-left: 10px; +} +#about .values h1, #about .values h2, #about .values p { + color: #333; +} +#about .about-extra { + color: #333; + margin-bottom: 20px; + font-size: 18px; + line-height: 1.2; + margin-top: 40px; +} +@media only screen and (min-width: 750px) { + #about .about-extra { + font-size: 28px; + line-height: 1.2; + margin-bottom: 60px; + } +} +#about .inner-content-wrapper { + max-width: 900px; +} +#about .about-rte { + color: #333; + margin-bottom: 20px; + font-size: 18px; + line-height: 1.2; + max-width: 100% !important; +} +@media only screen and (min-width: 750px) { + #about .about-rte { + font-size: 28px; + line-height: 1.2; + margin-bottom: 60px; + } +} +#about .about-rte img:after { + height: 1px; + background-color: #333; + display: block; + content: ""; +} +#about .about-rte img[alt="Leon Portrait"], #about .about-rte img[alt="Chris Portrait"], #about .about-rte img[alt="Ben Portrait"], #about .about-rte img[alt="Ellie Portrait"], #about .about-rte img[alt="Mabel Portrait"] { + border-radius: 50%; + margin-right: 10px !important; +} + +.rf-single__arists-description p { + max-width: 600px; + font-size: 18px; +} + +.collection-description { + border-bottom: 1px solid #333; + padding-bottom: 10px; + padding-left: 20px !important; +} +.collection-description .rf-single__artists-name p { + max-width: 700px; + font-size: 18px; +} +.collection-description .rf-single__artists-name p img { + filter: grayscale(100%); + margin-right: 20px !important; + width: 100px; + height: auto; +} +@media only screen and (min-width: 750px) { + .collection-description .rf-single__artists-name p img { + width: 180px; + } +} + +.testing .form-message { + font-size: 18px; + text-align: left; +} +.testing .form-message h2 { + font-size: 18px; +} +.testing .form-message h2 a { + border-bottom: 1px solid #0792d1; + color: #0792d1; +} +.testing .varient-size-title { + font-size: 18px; + line-height: 1.2; +} +.testing .selector-wrapper { + display: none; +} +.testing .single-option-selector { + display: none; +} +.testing .product-single__cart-submit-wrapper { + display: none; +} +.testing .product-form__item { + margin-bottom: 20px; +} +.testing .framed-varient, .testing .print-varient, .testing .print-selector { + border: 1px solid #121212; + padding: 10px; + display: inline-block; + font-size: 14px; + margin-bottom: 10px; + cursor: pointer; +} +.testing .framed-varient.selected-print, .testing .print-varient.selected-print, .testing .print-selector.selected-print { + background-color: #fdd72b; +} +.testing .framed-varient.selected, .testing .print-varient.selected, .testing .print-selector.selected { + background-color: #fdd72b; +} +.testing .varient-sizes { + display: none; +} +.testing .varient-sizes.display { + display: block; +} +.testing .form-message { + text-align: left; + margin-top: 10px; + margin-bottom: 20px; + display: none; +} +.testing .form-message.display { + display: block; +} +.testing .form-message h2 { + margin-bottom: 0; +} +.testing .form-message a { + color: #121212; +} + +.new-buy-buttons { + display: none; +} +.new-buy-buttons.testing { + display: block; +} + +.product-single__title { + font-size: 32px; + margin-right: 10px; +} + +@media only screen and (max-width: 989px) { + .template-product .breadcrumb-nav { + margin-left: 14px; + } +} +.template-product .grid__item { + position: relative; +} +.template-product .rf-wrapper.products-wrapper { + width: 100%; +} +.template-product .product-single__featured-image-wrapper { + height: auto; + background-color: #fff; + max-width: 100% !important; + margin-bottom: 0; + overflow: hidden; +} +@media only screen and (min-width: 750px) { + .template-product .product-single__featured-image-wrapper { + height: 83vh; + } +} +.template-product .product-single__photos { + height: auto; +} +@media only screen and (min-width: 750px) { + .template-product .product-single__photos { + height: 83vh; + padding-top: 0 !important; + } +} +.template-product .product-single__photo { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +} +@media only screen and (max-width: 989px) { + .template-product .product-single__photo { + top: 50%; + max-width: 90% !important; + } +} +.template-product .product-single__thumbnails { + position: relative; + margin-left: 0 !important; + margin-top: 10px; + margin-bottom: 10px; +} +.template-product .product-single__thumbnails li { + width: 40px; + height: 40px; + left: 0 !important; + overflow: hidden; + padding: 0; + margin: 0; + margin-right: 10px; + border: 4px solid #fff; + display: none; +} +.template-product .product-single__thumbnails li:nth-child(1), .template-product .product-single__thumbnails li:nth-child(2), .template-product .product-single__thumbnails li:nth-child(3) { + display: block; +} +@media only screen and (min-width: 750px) { + .template-product .product-single__thumbnails li { + width: 80px; + height: 80px; + } +} +.template-product .product-single__thumbnails li img { + height: 100%; + width: 100%; + object-fit: cover; +} +.template-product .product-single__cart-submit-wrapper { + margin-top: 0 !important; +} +.template-product .product-single { + border-bottom: 1px solid #121212; +} +.template-product .product-single .medium-up--one-half.testing { + border-left: 1px solid #121212; +} +.template-product .rf-colours h1 { + margin-top: 10px; + margin-bottom: 10px; +} +.template-product .rf-colours .rf-wrapper { + height: auto; + overflow: auto; +} +.template-product .rf-colours-wrapper { + display: flex; + flex-direction: row; + justify-content: space-between; + flex-wrap: wrap; + padding-top: 20px; +} +.template-product .rf-colours-wrapper .rf-colour { + width: 47%; + flex-basis: 16%; + margin-right: 10px; + height: 15vw; + margin-bottom: 20px; + border-radius: 50%; +} +@media only screen and (min-width: 750px) { + .template-product .rf-colours-wrapper .rf-colour { + width: 5vw; + flex-basis: 6vw; + height: 6vw; + } +} +.template-product .rf-lifestyle { + margin-top: 20px; + margin-bottom: 50px; +} +.template-product .rf-lifestyle .rf-lifestyle-product { + position: absolute; + left: 50%; + top: 0%; + transform: translate(-50%, 0); + opacity: 0.9; + left: 55%; + top: 9%; + mix-blend-mode: multiply; +} +@media only screen and (min-width: 1400px) { + .template-product .rf-lifestyle .rf-lifestyle-product { + left: 56%; + } +} +.template-product .rf-lifestyle .rf-lifestyle-product img { + width: 25vw; +} +@media only screen and (min-width: 750px) { + .template-product .rf-lifestyle .rf-lifestyle-product img { + width: 25vw; + } +} +@media only screen and (min-width: 1400px) { + .template-product .rf-lifestyle .rf-lifestyle-product img { + width: 347px; + } +} +.template-product .rf-lifestyle .rf-wrapper { + overflow: auto; + height: auto; +} +.template-product .rf-lifestyle-text { + background-color: #121212; + padding-left: 10px; + padding-top: 10px; + padding-bottom: 10px; + padding-right: 10px; + margin-top: -7px; +} +@media only screen and (min-width: 750px) { + .template-product .rf-lifestyle-text { + position: absolute; + bottom: 30px; + left: 30px; + width: 300px; + } +} +.template-product .rf-lifestyle-text p { + font-size: 22px; + line-height: 1.2; + color: #fff; +} +.template-product .rf-lifestyle-image { + width: 100%; + height: auto; +} +.template-product .product-single__description { + font-size: 20px; + line-height: 1.1; + max-width: 450px; + margin-top: 0px; +} +.template-product .product-single__meta { + margin-left: 20px; +} +.template-product .product-single__prices { + display: inline; +} +.template-product .product-single__policies { + font-size: 18px; + color: #0792d1; + display: inline; +} +.template-product .product-form { + margin-top: 20px; +} + +#shopify-section-product-template, #shopify-section-product-giftcard-template { + border-top: 1px solid #ABABAB; + border-bottom: 1px solid #ABABAB; +} +#shopify-section-product-template .social-sharing, #shopify-section-product-giftcard-template .social-sharing { + margin-bottom: 0; +} + +#shopify-section-product-template .shopify-payment-button .shopify-payment-button__more-options { + font-size: 18px !important; + color: #0792d1; + text-align: left !important; + padding: 0; +} + +#shopify-section-product-giftcard-template .shopify-payment-button .shopify-payment-button__more-options { + font-size: 18px !important; + color: #0792d1; + text-align: left !important; + padding: 0; +} + +#shopify-section-values, #shopify-section-1565174826191 { + border-bottom: 1px solid #ABABAB; +} + +.rf-columns { + font-family: "circular", arial, sans-serif; + display: flex; + flex-direction: row; + flex-wrap: wrap; +} +.rf-columns h1 { + font-size: 28px; + margin-bottom: 20px; +} +.rf-columns h2, .rf-columns li { + font-size: 18px; + margin-bottom: 20px; + padding-top: 4px; + margin-top: 10px !important; +} +.rf-columns h2.rf-theme-header, .rf-columns li.rf-theme-header { + color: #0792d1; +} +.rf-columns li { + margin-bottom: 0; +} +.rf-columns p { + font-size: 18px; + line-height: 1.2; + margin: 0; + font-family: "circular", arial, sans-serif; +} +.rf-columns .rf-col { + border-top: 1px solid #d8d8d8; + flex-basis: 50%; + box-sizing: border-box; + padding-right: 10px; + padding-bottom: 10px; + position: relative; + padding-top: 10px; +} +@media only screen and (min-width: 750px) { + .rf-columns .rf-col { + border-left: 1px solid #d8d8d8; + border-top: none; + flex-basis: 20%; + padding-right: 20px; + padding-bottom: 40px; + padding-top: 0; + } +} +.rf-columns .rf-col.rf-col-4 { + flex-basis: 100%; +} +@media only screen and (min-width: 750px) { + .rf-columns .rf-col.rf-col-4 { + flex-basis: 70%; + } +} +.rf-columns .rf-col a { + position: absolute; + top: 0; + bottom: 0; + right: 0; + left: 0; + display: block; + z-index: 20; +} +.rf-columns .rf-col .rf-home-image-wrapper { + position: relative; + overflow: hidden; + margin-left: 10px; + padding-bottom: 25%; +} +.rf-columns .rf-col .rf-image-hover { + display: none; +} +.rf-columns .rf-col .rf-image-flat { + width: 72%; + margin-left: 14%; + margin-top: 14%; +} +@media only screen and (min-width: 750px) { + .rf-columns .rf-col .rf-image-flat { + width: 119px; + margin-left: 23px; + margin-top: 23px; + } +} +@media only screen and (min-width: 1400px) { + .rf-columns .rf-col .rf-image-flat { + width: 163px; + margin-left: 33px; + margin-top: 33px; + } +} +.rf-columns .rf-col .rf-image-framed { + width: 100%; + mix-blend-mode: multiply; + position: absolute; + left: 0; + top: 0; +} +.rf-columns .rf-col img { + width: 100%; +} +.rf-columns .rf-col:first-child { + flex-basis: 100%; +} +@media only screen and (min-width: 750px) { + .rf-columns .rf-col:first-child { + flex-basis: 20%; + } +} +.rf-columns .rf-col:nth-child(odd) .rf-theme-header { + color: #eb5d42; +} + +.rf-columns-container { + padding-top: 20px; + padding-bottom: 20px; +} +.rf-columns-container .rf-wrapper { + overflow: visible; + height: auto; +} +@media only screen and (min-width: 750px) { + .rf-columns-container { + padding-bottom: 0; + } +} +@media only screen and (min-width: 750px) { + .rf-columns-container h1, .rf-columns-container h2, .rf-columns-container p, .rf-columns-container li { + padding-left: 10px; + } +} +.rf-columns-container.values { + background-position: #efefec; +} +.rf-columns-container + p { + display: none; +} + +.values-icon { + height: 80px; + width: 80px; + margin-left: 10px; + margin-bottom: 10px; +} +.values-icon svg { + width: auto; + height: 100%; +} + +.rf-filters-wrapper { + width: 100%; + position: fixed; + height: 46px; + bottom: 0; + background-color: #0792d1; + z-index: 10000; + cursor: pointer; + transition: height 0.5s ease-in-out; +} +.rf-filters-wrapper.clicked { + height: auto; + z-index: 30000000; +} +.rf-filters-wrapper.clicked .arrow { + transform: rotate(0deg) translateY(-58px); + transform-origin: center; +} +.rf-filters-wrapper a { + position: relative !important; + color: #fff; +} +.rf-filters-wrapper .arrow { + float: right; + transform: translateY(-52px) rotate(180deg); + transition: translate 0.5s ease-in-out; +} +.rf-filters-wrapper .arrow svg { + width: 30px !important; + height: auto !important; +} +.rf-filters-wrapper .rf-filters-header svg { + height: 13px; + width: auto; +} +@media only screen and (min-width: 750px) { + .rf-filters-wrapper .rf-filters-header svg { + height: 22px; + } +} +.rf-filters-wrapper .rf-filters-header h1 { + padding-left: 0; + color: #fff; +} +@media only screen and (max-width: 989px) { + .rf-filters-wrapper .rf-filters-header h1 { + font-size: 18px; + width: 210px; + } +} +@media only screen and (max-width: 989px) { + .rf-filters-wrapper .rf-columns .rf-col:first-child { + flex-basis: 50%; + } +} +.rf-filters-wrapper .rf-columns-container { + padding-top: 10px; +} +.rf-filters-wrapper .filters { + visibility: hidden; + opacity: 0; + transition: opacity 0.5s ease-in-out; +} +.rf-filters-wrapper .filters.clicked { + visibility: visible; + opacity: 1; +} +.rf-filters-wrapper h2, .rf-filters-wrapper li { + font-size: 28px; + line-height: 1.2; +} +@media only screen and (max-width: 989px) { + .rf-filters-wrapper h2, .rf-filters-wrapper li { + font-size: 17px; + line-height: 1.1; + } +} +.rf-filters-wrapper h2 { + margin-top: 0px !important; + color: #fdd72b !important; +} +@media only screen and (max-width: 989px) { + .rf-filters-wrapper h2 { + margin-bottom: 0px !important; + } +} +.rf-filters-wrapper ul { + margin: 0; + padding: 0; +} +.rf-filters-wrapper ul li { + margin-top: 0 !important; + padding-top: 0; +} + +#shopify-section-1564140336829 { + margin-bottom: 0 !important; +} + +.mobile-menu { + float: right; + display: block; + position: relative; + z-index: 2000000; +} +@media only screen and (min-width: 750px) { + .mobile-menu { + display: none; + } +} +.mobile-menu svg { + overflow: visible; +} +.mobile-menu svg polygon { + fill: #fff; + transition: all 0.5s ease-in-out; +} +.mobile-menu.clicked { + position: fixed; + right: 14px; +} +.mobile-menu.clicked #Fill-1 { + transform-origin: center; + transform: rotate(45deg) translate(0px, 12px); +} +.mobile-menu.clicked #Fill-2 { + opacity: 0; +} +.mobile-menu.clicked #Fill-3 { + transform-origin: center; + transform: rotate(-45deg) translate(0px, -10px); +} + +@keyframes showMenu { + 0% { + opacity: 0; + filter: blur(4px); + } + 100% { + opacity: 1; + filter: blur(0); + } +} +.mobile-nav-links { + position: fixed; + top: 0; + bottom: 0; + left: 0; + right: 0; + background-color: #333; + z-index: 15000; + display: none; + opacity: 0; + transition: opacity 0.5s ease-in-out; +} +.mobile-nav-links.clicked { + display: block; + animation-name: showMenu; + animation-duration: 1s; + animation-delay: 0; + animation-fill-mode: forwards; + animation-iteration-count: 1; +} +.mobile-nav-links ul { + list-style: none; + margin: 0; + padding-left: 0; + margin-top: 140px; +} +.mobile-nav-links ul li { + font-size: 32px; + line-height: 1.2; +} +.mobile-nav-links ul li:before { + display: inline-block; + content: ""; + height: 4px; + width: 10px; + background-color: #fff; + transform: translateY(-10px); +} +.mobile-nav-links ul li a { + color: #fff; +} +.mobile-nav-links ul li ul { + display: none; +} + +.menu-description { + margin-left: 20px; + margin-top: 40px; +} +.menu-description h1, .menu-description p { + color: #fff; +} +.menu-description h1 { + font-size: 32px; + color: #fdd72b; +} +.menu-description p { + font-size: 18px; + line-height: 1; +} + +.menu-extras ul { + margin-top: 20px; +} +.menu-extras ul li { + color: #fff; +} + +@media only screen and (max-width: 989px) { + .collection-sorting__dropdown { + width: 40%; + } +} + +.template-page h1.small--text-center { + background-color: #eb5d42; + padding-top: 6px; + padding-bottom: 100px; + padding-left: 6px; + color: #fff; + font-size: 32px !important; + line-height: 0.9 !important; + max-width: 600px; +} +.template-page h1.small--text-center:after { + content: ""; + height: 1px; + background-color: #ABABAB; + width: 152%; + margin-left: -50%; + display: block; + position: absolute; + top: 177px; +} +@media only screen and (min-width: 750px) { + .template-page h1.small--text-center:after { + top: 173px; + width: 200%; + } +} +.template-page h3 { + margin-top: 15px; +} +.template-page .rte { + max-width: 600px; +} + +.pagination { + margin-bottom: 30px; + display: inline-block; +} +.pagination .page { + width: 42px; + height: 42px; + display: inline-block; + text-align: center; + font-size: 24px; + border: 1px solid #eb5d42; + border-radius: 50%; + padding-bottom: 5px; +} +.pagination .page:hover { + background-color: #eb5d42; + opacity: 1; + color: #fff; +} +.pagination .page:hover a { + color: #fff; + opacity: 1; +} +.pagination .page.current { + background-color: #eb5d42; + color: #fff; +} +.pagination .page a { + color: #eb5d42; +} +.pagination .deco { + visibility: hidden; + width: 0px; +} +.pagination .deco:after { + display: inline-block; + content: "/"; + visibility: visible; + font-size: 24px; + color: #ABABAB; + margin-left: -13px; +} +.pagination .next { + display: none; +} +.pagination .prev { + display: none; +} + +.custom-previous, .custom-next { + display: inline-block; +} +.custom-previous svg, .custom-next svg { + width: 42px; + height: auto; + margin-bottom: -12px; +} + +.custom-previous { + transform: scale(-1) translateY(-6px); +} + +.custom-next { + margin-left: -3px; +} + +.feature-row { + background-color: #dd392c; +} +.feature-row .featured-row__subtext { + max-width: 400px; + color: #fff; +} +.feature-row .feature-row__text { + flex: 0 1 38%; +} +.feature-row .feature-row__text h2 { + color: #fdd72b; + font-size: 50px !important; + max-width: 370px; + margin-bottom: 20px; + border-top: 1px solid #fff; + border-left: 1px solid #fff; + padding-left: 10px; + padding-top: 10px; + transform: rotate(8deg) translateY(-8px); +} +@media only screen and (min-width: 750px) { + .feature-row .feature-row__text h2 { + margin-left: -130px; + } +} +@media only screen and (min-width: 990px) { + .feature-row .feature-row__text h2 { + margin-left: -180px; + } +} +.feature-row a { + transform: rotate(-4deg); +} +@media only screen and (min-width: 750px) { + .feature-row a { + margin-left: -60px; + } +} +@media only screen and (min-width: 990px) { + .feature-row a { + margin-left: -60px; + } +} + +@keyframes zoom { + 0% { + transform: scale(1.2); + } + 100% { + transform: scale(1); + } +} +.curated-wrapper .curated-content-wrapper { + height: 300px; + position: relative; + overflow: hidden; +} +.curated-wrapper .curated-content-wrapper:hover img { + transform: scale(1.2); + animation-name: zoom; + animation-duration: 10s; + animation-fill-mode: forwards; + animation-iteration-count: 1; +} +.curated-wrapper .curated-content-wrapper .collection-description { + padding-left: 0 !important; + max-width: 300px; + border-bottom: none; + margin-top: 20px; +} +.curated-wrapper .curated-content-wrapper .collection-description p { + padding: 0; + margin: 0; +} +.curated-wrapper .curated-content-wrapper .collection-description blockquote { + display: none; +} +.curated-wrapper .curated-content-wrapper h1 { + margin-bottom: 0; +} +@media only screen and (min-width: 750px) { + .curated-wrapper .curated-content-wrapper h1 { + font-size: 40px; + } +} +@media only screen and (min-width: 990px) { + .curated-wrapper .curated-content-wrapper h1 { + font-size: 50px; + } +} +.curated-wrapper .curated-content-wrapper h1:nth-child(1) { + color: #eb5d42; + margin-top: 10px; +} +.curated-wrapper .curated-content-wrapper .rf-wrapper { + height: auto; +} +.curated-wrapper .curated-content-wrapper a { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + z-index: 10; +} +.curated-wrapper img { + width: 100%; + height: 100%; + position: absolute; + top: 0; + object-fit: cover; +} + +.edition-wrapper .split-headline { + display: block; +} +.edition-wrapper .split-headline:nth-child(1) { + color: #eb5d42; +} +@media only screen and (min-width: 750px) { + .edition-wrapper .split-headline { + font-size: 40px; + } +} +@media only screen and (min-width: 990px) { + .edition-wrapper .split-headline { + font-size: 50px; + } +} +.edition-wrapper .collection-description { + border-bottom: none; +} +.edition-wrapper .collection-description p { + width: 100%; +} +@media only screen and (min-width: 750px) { + .edition-wrapper .collection-description p { + width: 50%; + } +} +.edition-wrapper .collection-description blockquote { + margin: 0; + width: 50%; + padding: 0; + font-size: 16px; + text-align: left; +} +.edition-wrapper .collection-description blockquote p { + width: 100%; +} + +.curated .edition_collection-wrapper { + display: flex; + min-height: 100vh; + background-color: #ececec; + flex-direction: column; +} +@media only screen and (min-width: 750px) { + .curated .edition_collection-wrapper { + flex-direction: row; + } +} +.curated .edition_collection-wrapper .edition_collection_left { + width: 100%; + background-color: #fff; + min-height: auto; + padding-left: 10px; +} +@media only screen and (min-width: 750px) { + .curated .edition_collection-wrapper .edition_collection_left { + width: 50%; + min-height: 100vh; + padding-left: 0; + } +} +.curated .edition_collection-wrapper .edition_collection_left .edition_collection-description { + min-height: auto; + width: 100%; + margin-left: auto; + background-color: #fff; + padding-right: 40px; + box-sizing: border-box; + padding-bottom: 20px; +} +@media only screen and (min-width: 750px) { + .curated .edition_collection-wrapper .edition_collection_left .edition_collection-description { + width: 100%; + min-height: 100vh; + padding-left: 20px; + } +} +@media only screen and (min-width: 1400px) { + .curated .edition_collection-wrapper .edition_collection_left .edition_collection-description { + width: 633px; + padding-left: 0; + } +} +.curated .edition_collection-wrapper .edition_collection_left .edition_collection-description h1 { + margin-top: 20px; +} +.curated .edition_collection-wrapper .edition_collection_left .edition_collection-description h1:after { + content: ""; + display: block; + height: 1px; + width: 50px; + background-color: #121212; + margin-top: 40px; +} +.curated .edition_collection-wrapper .edition_collection_left .edition_collection-description h1 .split-headline { + display: block; + font-weight: 400; +} +.curated .edition_collection-wrapper .edition_collection_left .edition_collection-description h1 .split-headline:nth-child(1) { + color: #eb5d42; +} +@media only screen and (min-width: 750px) { + .curated .edition_collection-wrapper .edition_collection_left .edition_collection-description h1 .split-headline { + font-size: 40px; + } +} +@media only screen and (min-width: 990px) { + .curated .edition_collection-wrapper .edition_collection_left .edition_collection-description h1 .split-headline { + font-size: 50px; + } +} +.curated .edition_collection-wrapper .edition_collection_left .edition_collection-description p { + text-align: left; +} +.curated .edition_collection-wrapper .edition_collection_left .edition_collection-description blockquote { + text-align: left; + margin: 0; + padding: 0; +} +.curated .edition_collection-wrapper .edition_collection_left .edition_collection-description p, .curated .edition_collection-wrapper .edition_collection_left .edition_collection-description blockquote { + font-size: 22px; + line-height: 1.3; + font-family: "Volkhov"; + font-weight: 400 !important; +} +.curated .edition_collection-wrapper .edition_collection_right { + width: 100%; + background-color: #efefec; + min-height: auto; +} +@media only screen and (min-width: 750px) { + .curated .edition_collection-wrapper .edition_collection_right { + width: 50%; + min-height: 100vh; + } +} +.curated .edition_collection-wrapper .edition_collection_right .product-wrapper { + min-height: 100vh; + width: 100%; + margin-right: auto; + padding-left: 20px; + box-sizing: border-box; + padding-top: 20px; +} +@media only screen and (min-width: 750px) { + .curated .edition_collection-wrapper .edition_collection_right .product-wrapper { + width: 100%; + } +} +@media only screen and (min-width: 1400px) { + .curated .edition_collection-wrapper .edition_collection_right .product-wrapper { + width: 633px; + } +} +.curated .edition_collection-wrapper .edition_collection_right .product { + margin-bottom: 20px; + max-width: 100%; + padding: 10px; + margin-bottom: 0; + position: relative; + transition: transform 0.5s ease-in-out; +} +.curated .edition_collection-wrapper .edition_collection_right .product.swing { + transform: rotate(0) !important; +} +.curated .edition_collection-wrapper .edition_collection_right .product a { + position: absolute; + top: 0; + bottom: 0; + right: 0; + left: 0; + z-index: 10; +} +@media only screen and (min-width: 1400px) { + .curated .edition_collection-wrapper .edition_collection_right .product { + margin-bottom: -130px; + max-width: 330px; + } +} +.curated .edition_collection-wrapper .edition_collection_right .product:last-child { + margin-bottom: 50px; +} +.curated .edition_collection-wrapper .edition_collection_right .product:nth-child(odd) { + transform: rotate(-7deg); +} +.curated .edition_collection-wrapper .edition_collection_right .product:nth-child(even) { + transform: rotate(10deg); + margin-left: auto; +} +.curated .edition_collection-wrapper .edition_collection_right .product img { + width: 100%; + height: auto; + position: relative; + z-index: 0; +} +.curated .edition_collection-wrapper .edition_collection_right .product-title { + text-align: center; +} +.curated .edition_collection-wrapper .edition_collection_right .product-title h1 { + font-size: 18px; + line-height: 1; + margin: 0; + max-width: 200px; + margin-left: auto; + margin-right: auto; + position: relative; + z-index: 10; +} +.curated .edition_collection-wrapper .edition_collection_right .product-title h1:nth-child(1) { + color: #eb5d42; +} +.curated .edition_collection-wrapper .edition_collection_right .product-title h2 { + font-family: "Volkhov" !important; + font-size: 18px; + margin-top: 6px; + font-weight: 400; + font-style: italic; + margin-bottom: 0; +} + +.template-article { + background-color: #efefec; +} +.template-article .rf-wrapper.products-wrapper { + width: 100% !important; +} + +#shopify-section-article-template .article, #inspiration .article { + margin-left: auto; + margin-right: auto; +} +#shopify-section-article-template .article .feature-image, #inspiration .article .feature-image { + max-height: 400px; + width: 100%; + height: 400px; +} +#shopify-section-article-template .article .feature-image img, #inspiration .article .feature-image img { + width: 100%; + height: 100%; + object-fit: cover; +} +#shopify-section-article-template .article header, #inspiration .article header { + padding-bottom: 10px; + margin-bottom: 10px; + background-color: #0792d1; + margin-left: 0%; + margin-right: 10%; + padding-left: 10px; + padding-right: 10px; + box-sizing: border-box; + padding-top: 20px; + margin-top: -100px; + position: relative; + z-index: 10; +} +@media only screen and (min-width: 750px) { + #shopify-section-article-template .article header, #inspiration .article header { + margin-left: 20%; + margin-right: 20%; + } +} +#shopify-section-article-template .article .list--inline, #shopify-section-article-template .article .social-sharing, #inspiration .article .list--inline, #inspiration .article .social-sharing { + padding-left: 20%; + padding-right: 20%; +} +#shopify-section-article-template .article .rte, #inspiration .article .rte { + padding-left: 2%; + padding-right: 2%; +} +@media only screen and (min-width: 750px) { + #shopify-section-article-template .article .rte, #inspiration .article .rte { + padding-left: 20%; + padding-right: 20%; + } +} +#shopify-section-article-template .article .rte ul, #inspiration .article .rte ul { + display: flex; + flex-wrap: wrap; + list-style: none; + margin-right: 0; + margin-left: 0; + flex-direction: column; +} +@media only screen and (min-width: 750px) { + #shopify-section-article-template .article .rte ul, #inspiration .article .rte ul { + margin-right: -100px; + margin-left: -100px; + flex-direction: row; + margin-top: 60px; + } +} +#shopify-section-article-template .article .rte ul li, #inspiration .article .rte ul li { + width: 100%; + padding-right: 30px; + padding-right: 0px; + box-sizing: border-box; + margin-bottom: 10px; +} +@media only screen and (min-width: 750px) { + #shopify-section-article-template .article .rte ul li, #inspiration .article .rte ul li { + width: 50%; + margin-bottom: 60px; + padding-right: 30px; + } +} +#shopify-section-article-template .article .rte ul li:nth-child(even), #inspiration .article .rte ul li:nth-child(even) { + flex-direction: row-reverse; +} +#shopify-section-article-template .article .rte ul li img, #inspiration .article .rte ul li img { + width: 100%; + height: 100%; + object-fit: cover; +} +#shopify-section-article-template .article p, #shopify-section-article-template .article div, #inspiration .article p, #inspiration .article div { + text-align: left !important; + font-size: 22px; + line-height: 1.4; + font-family: "Volkhov"; + font-weight: 400 !important; + margin-bottom: 20px; +} +#shopify-section-article-template .article p img, #shopify-section-article-template .article div img, #inspiration .article p img, #inspiration .article div img { + width: 100%; + height: auto; + margin-bottom: 10px; + margin-top: 10px; +} +@media only screen and (min-width: 750px) { + #shopify-section-article-template .article h1, #inspiration .article h1 { + font-size: 40px; + } +} +@media only screen and (min-width: 990px) { + #shopify-section-article-template .article h1, #inspiration .article h1 { + font-size: 50px; + } +} + +#latest-from-roomfifty .roomfifty-blog-posts-wrapper { + display: flex; + flex-direction: column; + flex-wrap: wrap; + margin-bottom: 20px; +} +#latest-from-roomfifty .roomfifty-blog-posts-wrapper .roomfifty-blog-posts { + flex-basis: 32%; + padding-top: 10px; + padding-left: 10px; + padding-right: 10px; + padding-bottom: 10px; + margin-right: 1%; + margin-bottom: 10px; + background-color: #fff; +} +#latest-from-roomfifty .roomfifty-blog-posts-wrapper .roomfifty-blog-posts .article__image-wrapper { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; +} +#latest-from-roomfifty .roomfifty-blog-posts-wrapper .roomfifty-blog-posts .roomfifty-image-flex { + width: 100%; + height: 20vw; + overflow: hidden; + position: relative; +} +#latest-from-roomfifty .roomfifty-blog-posts-wrapper .roomfifty-blog-posts .roomfifty-image-flex img { + width: 100%; + height: 100%; + object-fit: cover; +} +#latest-from-roomfifty .roomfifty-blog-posts-wrapper .roomfifty-blog-posts .rte { + display: none; +} +#latest-from-roomfifty .roomfifty-blog-posts-wrapper .roomfifty-blog-posts .read-more { + display: none; +} +#latest-from-roomfifty .roomfifty-blog-posts-wrapper .roomfifty-blog-posts .list--inline { + display: none; +} +@media only screen and (min-width: 750px) { + #latest-from-roomfifty .roomfifty-blog-posts-wrapper { + flex-direction: row; + } +} + +.template-page .rte { + margin-bottom: 50px; +} + +.template-blog { + background-color: #e6e6e6; +} + +.rf-logos .rf-col { + display: flex; + flex-direction: column; + justify-content: center; +} +.rf-logos .rf-col:nth-child(1) { + justify-content: flex-start; +} +.rf-logos .rf-col img { + margin-left: 10px; + width: 90%; + height: auto; +} + +#shopify-section-1589364306473 { + margin-bottom: 0; +} +#shopify-section-1589364306473 .collection-grid-item__title { + bottom: 10px; + top: auto; + text-align: left; + font-size: 34px; + transform: translate(0); + margin-bottom: 10px; + color: #fff !important; +} +@media only screen and (min-width: 750px) { + #shopify-section-1589364306473 .collection-grid-item__title { + font-size: 44px; + } +} +#shopify-section-1589364306473 .collection-grid-item__title-wrapper::before { + background-color: #000 !important; +} + +#shopify-section-1604006995af9f27ae { + border-bottom: 1px solid #d8d8d8; + margin-bottom: 40px; +} + +.season-card { + width: 100%; + height: 250px; + background-color: yellow; + position: relative; +} +.season-card .rf-button { + background-color: #000; + padding: 10px; + position: absolute; + bottom: 10px; + left: 10px; + color: #fff; + opacity: 0; + transition: all ease-in-out 0.5s; +} +.season-card:hover .rf-button { + opacity: 1; +} +.season-card a { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; +} +.season-card .big-number { + font-size: 140px; + margin-left: 10px; + line-height: 0.8; + color: #fff; +} + +.season-cards .rf-wrapper { + overflow-y: scroll; +} +.season-cards .rf-columns { + flex-wrap: nowrap; +} +.season-cards .rf-columns .rf-col { + border-left: none; +} +.season-cards .rf-columns .rf-col:nth-child(1) { + border-left: 1px solid #d8d8d8; +} +.season-cards .rf-columns .rf-col:nth-child(1) .season-card { + background-color: #BFDFD2; +} +.season-cards .rf-columns .rf-col:nth-child(2) .season-card { + background-color: #eb5d42; +} +.season-cards .rf-columns .rf-col:nth-child(3) .season-card { + background-color: #0792d1; +} +.season-cards .rf-columns .rf-col:nth-child(4) .season-card { + background-color: #094E83; +} +.season-cards .rf-columns .rf-col:nth-child(5) .season-card { + background-color: #fdd72b; +} +.season-cards .rf-columns .rf-col:nth-child(6) .season-card { + background-color: #0792d1; +} +.season-cards .rf-columns .rf-col:nth-child(7) .season-card { + background-color: #094E83; +} +.season-cards .rf-columns .rf-col:nth-child(8) .season-card { + background-color: #fdd72b; +} +.season-cards .rf-columns .rf-col:nth-child(9) .season-card { + background-color: #0792d1; +} +.season-cards .rf-columns .rf-col { + flex: none; + width: 70%; + flex-basis: 190px; +} + +.top-bar__search .search-bar__input { + width: 0; + padding: 0; + transition: width ease-in-out 0.5s; +} +.top-bar__search:hover .search-bar__input { + width: 200px; + padding: 3px; +} +.top-bar__search .search-bar__submit { + background-color: #333; +} +.top-bar__search .search-bar__submit svg path { + fill: #fff; +} + +.mobile-cart { + display: block; + margin-right: 10px; +} +.mobile-cart svg.icon-cart path { + fill: #fff !important; +} +.mobile-cart .site-header__cart { + display: flex; +} +.mobile-cart .small--hide { + color: #fff !important; + display: block !important; + font-size: 15px; + margin-left: 6px; +} +@media only screen and (min-width: 750px) { + .mobile-cart { + display: none; + } +} + +.mobile-cart-nav-wrapper { + margin-left: auto; + display: flex; + width: -webkit-max-content; + width: max-content; +} + +#christmas { + background-color: #eb5d42; + height: 100vh; +} +#christmas .site-header { + background-color: transparent !important; +} +#christmas .breadcrumb-wrapper { + display: none !important; +} +#christmas .rf-wrapper { + background-color: #eb5d42; + height: 84vh; +} +@media only screen and (min-width: 750px) { + #christmas .rf-wrapper { + height: 88vh; + } +} +#christmas .rf-christmas-wrapper { + position: relative; +} +#christmas .christmas-frame-wrapper { + height: 54vh; +} +@media only screen and (min-width: 750px) { + #christmas .christmas-frame-wrapper { + height: 68vh; + } +} +#christmas .christmas-frame-wrapper .christmas-frame__inner__background { + background-color: #fee7da; + position: absolute; + bottom: 10px; + top: 10px; + left: 50%; + width: 100%; + z-index: 0; + transform: translateX(-50%); +} +@media only screen and (min-width: 750px) { + #christmas .christmas-frame-wrapper .christmas-frame__inner__background { + width: 33vw; + } +} +@media only screen and (min-width: 1400px) { + #christmas .christmas-frame-wrapper .christmas-frame__inner__background { + width: 26vw; + } +} +#christmas .christmas-frame-wrapper .christmas-frame__inner__background .christmas__copy { + padding: 10px; + padding-left: 20px; +} +#christmas .christmas-frame-wrapper .christmas-frame__inner__background .christmas__copy h1, #christmas .christmas-frame-wrapper .christmas-frame__inner__background .christmas__copy h2, #christmas .christmas-frame-wrapper .christmas-frame__inner__background .christmas__copy p { + color: #333; +} +#christmas .christmas-frame-wrapper .christmas-frame__inner__background .christmas__copy h1 { + font-size: 45px; + margin-bottom: 8px; +} +#christmas .christmas-frame-wrapper .christmas-frame__inner__background .christmas__copy h2 { + color: #eb5d42; + font-size: 45px; + margin-bottom: 12px; +} +#christmas .christmas-frame-wrapper .christmas-frame__inner__background .christmas__copy p { + color: #333; + font-size: 22px; +} +#christmas .christmas-frame-wrapper .christmas-frame__inner { + position: absolute; + bottom: 10px; + top: 10px; + left: 50%; + overflow: hidden; + width: 100%; + transform: translateX(-50%); + transition: all ease-in-out 0.5s; + z-index: 10; + cursor: pointer; + background-color: #b42d13; +} +@media only screen and (min-width: 750px) { + #christmas .christmas-frame-wrapper .christmas-frame__inner { + width: 33vw; + } +} +@media only screen and (min-width: 1400px) { + #christmas .christmas-frame-wrapper .christmas-frame__inner { + width: 26vw; + } +} +#christmas .christmas-frame-wrapper .christmas-frame__inner.open { + left: -48%; +} +@media only screen and (min-width: 750px) { + #christmas .christmas-frame-wrapper .christmas-frame__inner.open { + left: 16%; + } +} +#christmas .christmas-frame-wrapper .christmas-frame__inner h1 { + color: #fff; + font-size: 30px; + margin-left: 10px; + margin-top: 10px; + margin-bottom: 0; +} +@media only screen and (min-width: 1400px) { + #christmas .christmas-frame-wrapper .christmas-frame__inner h1 { + font-size: 50px; + } +} +#christmas .christmas-frame-wrapper .christmas-frame__inner p { + color: #f5ac9e; + font-size: 22px; + margin-left: 10px; + margin-top: 10px; +} +#christmas .christmas-frame-wrapper .christmas-frame__inner img { + height: 58vw; + width: 43vw; + object-fit: cover; + position: absolute; + bottom: 0; + left: 50%; + transform: translateX(-50%); +} +@media only screen and (min-width: 750px) { + #christmas .christmas-frame-wrapper .christmas-frame__inner img { + height: 20vw; + width: 15vw; + } +} +#christmas .christmas-frame-text { + position: relative; + margin-top: 10px; + width: 100%; + text-align: center; +} +@media only screen and (min-width: 750px) { + #christmas .christmas-frame-text { + position: absolute; + bottom: 20px; + margin-top: 0; + } +} +#christmas .christmas-frame-text h1 { + font-size: 30px; + line-height: 0; + margin-bottom: 6px; + color: #fff; +} +@media only screen and (min-width: 750px) { + #christmas .christmas-frame-text h1 { + font-size: 45px; + } +} +#christmas .christmas-frame-text h2 { + color: #fff; + margin-bottom: 5px; + font-size: 18px; +} +@media only screen and (min-width: 750px) { + #christmas .christmas-frame-text h2 { + font-size: 23px; + } +} +#christmas .rf-button { + border: 1px solid #fff; + padding: 10px; + border-radius: 25px; + width: -webkit-max-content; + width: max-content; + margin-left: auto; + margin-right: auto; + color: #fff; +} +#christmas .rf-button a { + color: #121212; +} +#christmas .rf-button.left { + margin-right: unset; + margin-left: unset; + border: 1px solid #333; + color: #333; +} +#christmas .rf-button:hover { + background-color: #fdd72b; + border: #fdd72b 1px solid; + color: #333; +} +#christmas #shopify-section-footer { + display: none; +} + +@keyframes wobble { + 0% { + transform: rotate(0deg); + } + 25% { + transform: rotate(3deg); + } + 50% { + transform: rotate(-3deg); + } + 100% { + transform: rotate(0deg); + } +} +.wobble { + animation-name: wobble; + animation-duration: 4s; + animation-timing-function: linear; + animation-iteration-count: infinite; + transform-origin: bottom; +} + +@keyframes spin { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(-360deg); + } +} +.yuc-header { + background-color: #f1eedf; + padding-top: 20px; + padding-bottom: 20px; + min-height: 32vh; + position: relative; + padding-bottom: 8vw; + overflow: hidden; +} +@media only screen and (min-width: 750px) { + .yuc-header { + min-height: 50vh; + } +} +.yuc-header .spinning-head { + position: absolute; + top: 12px; + right: 9px; + width: 103px; + height: 160px; +} +@media only screen and (min-width: 750px) { + .yuc-header .spinning-head { + top: 0px; + right: 110px; + width: 340px; + height: 380px; + } +} +.yuc-header .spinning-head .text img { + top: 20px; +} +@media only screen and (min-width: 750px) { + .yuc-header .spinning-head .text img { + top: 50px; + } +} +.yuc-header .spinning-head img { + position: absolute; + top: 0; + bottom: 0; +} +.yuc-header h1 { + font-size: 19vw; + line-height: 0.9 !important; + color: #f97372; + margin-bottom: 0 !important; + font-family: "Libre Caslon Text", serif !important; + font-weight: 200; + letter-spacing: -1vw; +} +.yuc-header h1 span.italic { + font-style: italic; + letter-spacing: -6px; +} +.yuc-header h1 span.black { + color: #333; +} +@media only screen and (min-width: 750px) { + .yuc-header h1 { + font-size: 15vw; + } +} +@media only screen and (min-width: 1400px) { + .yuc-header h1 { + font-size: 13vw; + } +} + +.intro-yuk { + padding-top: 20px; + padding-bottom: 20px; + font-family: "Libre Caslon Text", serif; +} +.intro-yuk:before { + position: absolute; + top: 0; + bottom: 0; + left: -10px; + width: 1px; + background-color: #000000; + display: none; + content: ""; +} +@media only screen and (min-width: 1400px) { + .intro-yuk:before { + display: block; + } +} +.intro-yuk h1, .intro-yuk h2 { + font-size: 45px; + font-family: "Libre Caslon Text", serif !important; + font-weight: 200; +} +.intro-yuk h1.red, .intro-yuk h2.red { + color: #f97372; +} +.intro-yuk h1.italic, .intro-yuk h2.italic { + font-style: italic; + margin-bottom: 25px; +} +.intro-yuk h2 { + margin-bottom: 0; +} +.intro-yuk h1 { + font-size: 70px; + margin-bottom: 10px; +} +@media only screen and (min-width: 1400px) { + .intro-yuk h1 { + letter-spacing: -3px; + } +} +.intro-yuk ol { + margin-left: 0; + padding-left: 0; + counter-reset: my-awesome-counter; + font-size: 22px; + line-height: 1.2; +} +@media only screen and (min-width: 750px) { + .intro-yuk ol { + font-size: 30px; + } +} +.intro-yuk ol li { + counter-increment: my-awesome-counter; + color: #f1eedf; +} +.intro-yuk ol li::before { + content: counter(my-awesome-counter) " "; + color: #f1eedf; + font-weight: bold; +} + +.judges .flex { + margin-top: 40px; +} +.judges .flex p { + margin-bottom: 30px; +} + +.rules h1 { + margin-bottom: 30px; +} + +.yuk-red { + background-color: #f97372; +} +.yuk-red > * h1, .yuk-red > * p { + color: #f1eedf; +} + +.yuk-beige { + background-color: #f1eedf; +} + +.intro-yuk { + position: relative; +} +.intro-yuk p { + font-size: 22px; + line-height: 1.2; +} +@media only screen and (min-width: 750px) { + .intro-yuk p { + font-size: 30px; + } +} + +.rf-button { + border: 1px solid #f1eedf; + padding: 10px; + padding-right: 15px; + padding-left: 15px; + font-size: 26px; + width: -webkit-max-content; + width: max-content; + color: #f1eedf; + margin-top: 20px; + margin-bottom: 20px; +} +.rf-button a { + color: #f1eedf; +} +.rf-button:hover { + color: #f97372; + background-color: #f1eedf; +} + +.intro-yuk.enter img { + height: 300px; + width: auto; + float: left; + margin-right: 0px; +} +@media only screen and (min-width: 1400px) { + .intro-yuk.enter img { + margin-right: 30px; + height: 460px; + } +} +.intro-yuk.enter .rf-button { + margin-left: 0; +} +@media only screen and (min-width: 1400px) { + .intro-yuk.enter .rf-button { + margin-left: 313px; + } +} + +.intro-yuk.rules { + display: flex; + flex-direction: column; +} +@media only screen and (min-width: 1400px) { + .intro-yuk.rules { + flex-direction: row; + } +} +.intro-yuk.rules img { + height: auto; + max-width: 500px; + width: 100%; + margin-right: 0px; + flex: 1; +} +@media only screen and (min-width: 1400px) { + .intro-yuk.rules img { + margin-right: 30px; + max-width: unset; + height: 527px; + width: auto; + } +} + +.winners-products.flex { + display: flex; + flex-direction: column; + justify-content: space-between; +} +@media only screen and (min-width: 750px) { + .winners-products.flex { + flex-direction: row; + } +} +@media only screen and (min-width: 750px) { + .winners-products.flex .winner-product { + width: 33%; + } +} +.winners-products.flex .winner-product img { + width: 100%; +} +.winners-products.flex .winner-product h2 { + font-size: 30px; + line-height: 1.2 !important; +} +.winners-products.flex .winner-product p { + color: #f97372; + font-size: 18px; + font-style: italic; + margin-top: 15px; +} +.winners-products.flex .winner-product .rf-button { + border: 1px solid #f97372; + color: #f97372; +} +.winners-products.flex .winner-product .rf-button a { + color: #f97372; +} +.winners-products.flex .winner-product .rf-button:hover { + background-color: #f97372; + color: #fff; +} +.winners-products.flex .winner-product .rf-button:hover a { + color: #fff; +} + +.gallery-placeholder { + display: flex; + flex-direction: column; +} +@media only screen and (min-width: 750px) { + .gallery-placeholder { + flex-direction: row; + flex-wrap: wrap; + } +} +@media only screen and (min-width: 750px) { + .gallery-placeholder > * { + width: 32%; + margin-right: 10px; + margin-bottom: 20px; + } +} + +.gallery-wrapper-box h2 { + font-size: 30px !important; +} +.gallery-wrapper-box p { + font-size: 18px !important; + color: #f97372 !important; + margin-top: 10px; +} + +button.wk-button-collection, button.wk-button-product { + color: #0792d1 !important; +} + +#wishlist.template-page h1.small--text-center { + background-color: #0792d1; + max-width: 100%; +} + +#wishlist .wk-add-item-form, #wishlist .wk-purchase { + display: none; +} + +.js-nav .wk-icon svg { + padding-bottom: 1px; +} + +a.wk-link .wk-icon { + top: 1px !important; +} + +.rf-colours { + margin-top: 24px; + border-top: 1px solid #ABABAB; + padding-top: 20px; +} + +.site-footer .site-footer__section-title { + margin-top: 20px; +} +.site-footer .site-footer__menu { + margin-top: 20px; + margin-left: 20px; +} +.site-footer .sub-footer { + display: flex; +} +.site-footer .sub-footer .grid__item { + display: flex; + flex-wrap: wrap; +} +.site-footer .sub-footer .grid__item.copy { + width: 70%; +} +.site-footer .sub-footer .grid__item.payments { + justify-content: flex-end; +} +.site-footer .sub-footer .grid__item small { + display: block; + padding-right: 20px; +} +.site-footer .sub-footer .grid__item .site-legal-menu { + font-size: 80%; + padding-left: 0; + margin-left: 0; + margin-top: 0; + display: flex; +} +.site-footer .sub-footer .grid__item .site-legal-menu li { + padding-right: 20px; +} +@media (max-width: 749px) { + .site-footer .rte { + margin-bottom: 20px; + } + .site-footer .site-footer__section-title { + margin-top: 15px; + } + .site-footer .grid .grid__item:nth-child(3) { + padding-top: 0; + } + .site-footer .site-footer__menu { + margin-top: 0; + margin-left: 0; + margin-bottom: 0; + } + .site-footer .sub-footer { + flex-wrap: wrap; + flex-direction: column-reverse; + } + .site-footer .sub-footer .grid__item { + width: 100%; + } + .site-footer .sub-footer .grid__item.copy { + width: 100%; + flex-direction: column-reverse; + } + .site-footer .sub-footer .grid__item.payments { + justify-content: flex-start; + } + .site-footer .sub-footer .grid__item small { + width: 100%; + padding: 5px 0; + } + .site-footer .sub-footer .grid__item .site-legal-menu { + flex-wrap: wrap; + justify-content: flex-start; + padding: 5px 0; + margin-bottom: 0; + } + .site-footer .sub-footer .grid__item .site-legal-menu li { + padding-right: 15px; + } +} + +.testing .varient-sizes { + margin-bottom: 20px; +} +.testing .varient-sizes label { + display: block; +} +.testing .varient-sizes select { + min-width: 196px; +} + +.product-option-row { + margin: 10px 0 20px 0; +} + +.product-form__item .btn { + min-width: 196px; +} + +.template-product .product-single { + border-bottom: none; +} +.template-product .product-single.grid { + display: flex; +} +@media (max-width: 749px) { + .template-product .product-single.grid { + display: block; + } +} +.template-product .product-single .medium-up--one-half.testing { + border-left: 1px solid #ABABAB; +} + +.jdgm-rev-widg__title { + margin-bottom: 20px !important; +} + +.rf-wrapper.about { + display: none; +} + +.about-page .feature-image { + max-height: 400px; + width: 100%; + height: 400px; +} +.about-page .feature-image img { + width: 100%; + height: 100%; + object-fit: cover; + object-position: center; +} +.about-page .about-new-title { + padding-top: 30px; +} + +#about .inner-content-wrapper { + padding-left: 0; + padding-right: 0; +} + +.collection-header .rf-filters-wrapper { + top: 0; + margin-top: 70px; + bottom: auto; + transition: height 0.6s ease-in-out; + transition: opacity 0.6s ease-in-out; +} +.collection-header .rf-filters-wrapper .rf-filters-header { + position: relative; +} +.collection-header .rf-filters-wrapper .head-filters { + display: none; +} +.collection-header .rf-filters-wrapper a { + text-decoration: none; +} +.collection-header .rf-filters-wrapper .arrow { + transition: transform 0.3s ease-in-out; + transform: rotate(0deg) translateY(-50%); + transform-origin: center; + position: absolute; + top: 50%; + right: 0; +} +.collection-header .rf-filters-wrapper.clicked { + height: auto; +} +.collection-header .rf-filters-wrapper.clicked .arrow { + transform: rotate(180deg) translateY(10%); +} +.collection-header .rf-filters-wrapper.clicked .head-filters { + display: flex; +} + +.template-collection #shopify-section-header.on-scroll { + position: fixed; + top: 0; + margin: 0 auto; + width: 100%; + z-index: 100000; +} + +.template-collection main { + margin-top: 46px; + padding-top: 20px; +} +.template-collection main.on-scroll { + margin-top: 116px; +} + +@media (max-width: 989px) { + .rf-filters-wrapper .rf-filters-header h1 { + width: auto; + } +} +@media (max-width: 749px) { + .rf-filters-wrapper { + height: 55px; + } + .rf-filters-wrapper .rf-filters-header h1 { + width: 210px; + } +} +nav ul li { + position: relative; +} + +.site-header { + padding-bottom: 0; +} + +.sub-menu { + display: none; + background-color: #efefec; + min-height: 135px; + padding-bottom: 10px; + border-bottom: 1px solid #333; + position: absolute; + width: 100%; + opacity: 0; + pointer-events: none; + transition: opacity 0.6s ease-in-out; + font-size: 20px; + z-index: 10000; +} +.sub-menu .rf-wrapper { + height: auto; +} +.sub-menu .sub-menu-inner { + margin-left: auto; + display: flex; + align-items: flex-start; + justify-content: flex-start; + width: 564px; +} +.sub-menu.active { + opacity: 1; + pointer-events: all; +} + +.child-wrap { + min-width: 16%; + padding-left: 20px; + margin: 5px 0; + grid-template-rows: repeat(4, 1fr); + grid-auto-flow: column; + width: 100%; + width: 100%; + transition: opacity 0.6s ease-in-out; + opacity: 0; + display: none; +} +.child-wrap.active-visible { + opacity: 1; + display: grid; +} +.child-wrap li { + height: 50%; + width: auto; + grid-column: span 1; + grid-row: span 1; +} +.child-wrap li a { + color: #0792d1; +} + +.menu-extras ul { + margin-top: 0; +} + +html.menu-open { + overflow-y: hidden; +} +html.menu-open #shopify-section-header { + z-index: 100000; +} +html.menu-open .mobile-cart { + padding-right: 44px; +} +html.menu-open main { + overflow-y: auto; + max-height: 100%; +} + +#modal { + z-index: 20000; + width: 33%; + margin-right: auto; + margin-left: auto; + position: fixed; + top: 50vh; + left: 50%; + transform: translatex(-50%) translateY(-50%); + padding: 20px; + box-shadow: 0px 1px 0px rgba(17, 17, 26, 0.05), 0px 0px 8px rgba(17, 17, 26, 0.1); + display: none; +} +#modal .modal-inner { + padding: 10px; +} +#modal .modal-inner .close { + position: absolute; + right: 0; + top: 0; + padding: 10px 15px; + cursor: pointer; +} +#modal .modal-inner .close h2 { + color: #fff; +} +#modal .modal-inner form { + padding-top: 30px; + padding-bottom: 10px; +} +#modal .modal-inner .newsletter-label { + display: none; +} + +@media (max-width: 749px) { + #modal { + width: 93%; + top: 33vh; + } +} +.template-page .feature-image { + max-height: 400px; + width: 100%; + height: 400px; +} +.template-page .feature-image img { + width: 100%; + height: 100%; + object-fit: cover; + object-position: center; +} +.template-page .rf-wrapper.breadcrumb-wrapper { + width: 100%; +} +.template-page h1.small--text-center { + width: 100%; + min-height: 140px; + max-width: 60%; + margin-left: auto; + margin-right: auto; +} +.template-page h1.small--text-center.banner-position { + position: absolute; + top: -70px; + left: 50%; + transform: translateX(-50%); +} +.template-page h1.small--text-center::after { + display: none; +} +.template-page .inner-content-wrapper { + font-size: 20px; + padding-left: 20%; + padding-right: 20%; +} +.template-page .inner-content-wrapper.banner-position { + padding-top: 90px; +} +.template-page .inner-content-wrapper * { + max-width: 900px; +} +.template-page .inner-content-wrapper * img { + width: 100%; + margin-bottom: 15px; +} +.template-page .rte { + max-width: 100%; + margin-right: auto; + margin-left: auto; +} +@media (max-width: 1400px) { + .template-page .breadcrumb-wrapper .breadcrumb-nav { + padding-left: 0; + } + .template-page h1.small--text-center { + left: 0; + transform: none; + max-width: 100%; + } + .template-page .inner-content-wrapper { + padding-left: 0; + padding-right: 0; + } +} +@media (max-width: 740px) { + .template-page h1.small--text-center { + line-height: 1 !important; + padding-bottom: 20px; + min-height: 100px; + max-height: none; + } + .template-page h1.small--text-center.banner-position { + max-height: 140px; + min-height: 140px; + padding-top: 0; + } + .template-page .page-rte .rf-wrapper { + margin-left: 0; + } +} \ No newline at end of file diff --git a/assets/app.js b/assets/app.js new file mode 100644 index 0000000..b9b7579 --- /dev/null +++ b/assets/app.js @@ -0,0 +1,591 @@ +$(document).ready(function () { + + // Add to Cart Form ––––––––––––––––––––––––––– + +// let +// addToCartFormSelector = '.add-to-cart-form', +// productOptionSelector = addToCartFormSelector + ' [name*=option]'; + +// let productForm = { +// onProductOptionChanged: function(event) { +// let +// $form = $(this).closest(addToCartFormSelector), +// selectedVariant = productForm.getActiveVariant($form); + +// $form.trigger('form:change', [selectedVariant]) + +// console.log($form) +// // console.log($form.attr('data-variants')) +// }, +// getActiveVariant: function($form) { +// let +// variants = JSON.parse(decodeURIComponent($form.attr('data-variants'))), +// formData = $form.serializeArray(), +// formOptions = { +// option1: null, +// option2: null, +// option3: null +// }, +// selectedVariant = null; + + +// $.each(formData, function(index, item) { +// if (item.name.indexOf('option') !== -1) { +// formOptions[item.name] = item.value; +// } +// }); + +// $.each(variants, function(index, variant) { +// if (variant.option1 === formOptions.option1 && variant.option2 === formOptions.option2 && variant.option3 === formOptions.option3) { +// selectedVariant = variant; +// return false; +// } +// }); + +// console.log(variants) +// console.log(formOptions) + +// return selectedVariant; +// }, +// validate: function(event, selectedVariant) { +// console.log(selectedVariant); + + +// let +// $form = $(this).closest(addToCartFormSelector), +// hasVariant = selectedVariant !== null, +// canAddToCart = hasVariant, +// $id = $form.find('.js-variant-id'), +// $addToCartButton = $form.find('.add-to-cart-button'), +// $price = $form.find('.js-price'), +// formattedVariantPrice = null, +// priceHtml = null, +// addMsg = '.add-to-cart-button .add-msg', +// priceWrap = '.add-to-cart-button h3 .price-wrap', +// formID = $form.attr('id'), +// localAddMsg = '#' + formID + ' ' + addMsg, +// localPriceWrap = '#' + formID + ' ' + priceWrap, +// localButton = '#' + formID + ' .add-to-cart-button'; + +// if (hasVariant) { +// formattedVariantPrice = '£' + (selectedVariant.price/100).toFixed(2); +// priceHtml = '' + formattedVariantPrice + ''; +// window.history.replaceState(null, null, '?variant=' + selectedVariant.id); +// // $(addMsg).html('Add to Bag'); +// } else { +// priceHtml = $price.attr('data-default-price'); +// } + + + +// if (canAddToCart) { + +// console.log(formID) +// $id.val(selectedVariant.id); +// $(localButton).prop('disabled', false); +// $addToCartButton.removeClass('unavailable'); + +// $(localAddMsg).html('Add to Bag') +// $(localPriceWrap).removeClass('visually-hidden') + +// console.log('can add to cart ' + selectedVariant.id) + +// } else { + +// console.log('disabled') + +// $id.val(''); +// $(localButton).prop('disabled', true); +// $addToCartButton.addClass('unavailable'); +// $(localPriceWrap).addClass('visually-hidden') + +// $(localAddMsg).html('Select Coffee') + +// // $(addMsg).html('Out of Stock') +// } + +// $price.html(priceHtml); + +// console.log(canAddToCart); + +// }, +// init: function () { +// $(document).on('change', productOptionSelector, productForm.onProductOptionChanged); +// $(document).on('form:change', addToCartFormSelector, productForm.validate); +// } +// }; + +// productForm.init(); + + + +// // Ajax Cart ––––––––––––––––––––––––––––––––– + +// let +// miniCartContentSelector = '.js-mini-cart-contents'; + +// let ajaxify = { +// onAddToCart: function (event) { +// event.preventDefault(); + +// $.ajax({ +// type: 'POST', +// url: '/cart/add.js', +// data: $(this).serialize(), +// dataType: 'json', +// success: ajaxify.onCartUpdated, +// error: ajaxify.onError +// }); +// }, +// onCartUpdated: function() { + +// let +// $miniCartFieldset = $(miniCartContentSelector + '.js-cart-fieldset'); + +// $miniCartFieldset.prop('disabled', true); + + +// $.ajax({ +// type: 'GET', +// url: '/cart', +// context: document.body, +// success: function(context) { +// let +// $dataCartContents = $(context).find('.js-cart-page-contents'), +// dataCartHtml = $dataCartContents.html(), +// dataCartItemCount = $dataCartContents.attr('data-cart-item-count'), +// $miniCartContents = $(miniCartContentSelector), +// $cartItemCount = $('.js-cart-item-count'); + +// $cartItemCount.text(dataCartItemCount); +// $miniCartContents.html(dataCartHtml); +// // currencyPicker.onMoneySpanAdded(); + +// console.log('added') + +// if (parseInt(dataCartItemCount) > 0) { +// ajaxify.openCart(); +// } +// else { +// ajaxify.closeCart(); +// } +// } +// }); +// }, +// onError: function(XMLHttpRequest, textStatus) { +// let data = XMLHttpRequest.responseJSON; +// alert(data.status + ' - ' + data.message + ': ' + data.description); +// console.log('error') +// }, +// onCartButtonClick: function(event) { +// event.preventDefault(); + +// let isCartOpen = $('html').hasClass('mini-cart-open'); + +// if (!isCartOpen) { +// ajaxify.openCart(); +// } +// else { +// ajaxify.closeCart(); +// } +// }, +// openCart: function() { +// $('html').addClass('mini-cart-open'); +// // $('#mini-cart').removeClass('visually-hidden'); +// // $('#mini-cart').removeClass('mini-cart-close'); +// }, +// closeCart: function() { +// $('html').removeClass('mini-cart-open'); +// // $('#mini-cart').addClass('visually-hidden'); +// // $('html').addClass('mini-cart-close'); +// }, +// init: function() { +// $(document).on('submit', addToCartFormSelector, ajaxify.onAddToCart); +// $(document).on('click', '.cart-close', ajaxify.closeCart); +// $(document).on('click', '.js-cart-link', ajaxify.onCartButtonClick); + +// } +// } + +// ajaxify.init(); + + +// // Line Item ––––––––––––––– + + +// let +// removeLineSelector = '.js-remove-line', +// lineQuantitySelector = '.js-line-quantity'; + +// let lineItem = { +// isInMiniCart: function(element) { +// let +// $element = $(element), +// $miniCart = $element.closest(miniCartContentSelector), +// isInMiniCart = $miniCart.length !== 0; + +// return isInMiniCart; + +// }, +// onLineQuantityChanged: function () { +// let +// quantity = this.value, +// id = $(this).attr('id').replace('updates_', ''); +// changes = { +// quantity: quantity, +// id: id +// }, +// isInMiniCart = lineItem.isInMiniCart(this); + +// console.log(changes) + +// if (isInMiniCart) { +// $.post('/cart/change.js', changes, ajaxify.onCartUpdated, 'json'); +// } +// }, +// onLineRemoved: function(event) { + +// let +// isInMiniCart = lineItem.isInMiniCart(this); + +// if (isInMiniCart) { + +// event.preventDefault(); + +// let +// $removeLink = $(this), +// removeQuery = $removeLink.attr('href').split('change?')[1]; + +// $.post('/cart/change.js', removeQuery, ajaxify.onCartUpdated, 'json'); +// } +// }, +// init: function() { +// $(document).on('click', removeLineSelector, lineItem.onLineRemoved); +// $(document).on('change', lineQuantitySelector, lineItem.onLineQuantityChanged) +// } +// }; + +// lineItem.init(); + + + + + let productSelector = '.new-buy-buttons', + productButton = productSelector + ' .new-button', + printSelector = productSelector + ' .print', + frameSelector = productSelector + ' .framed', + printId = $(printSelector).data('prod'), + frameId= $(frameSelector).data('prod'), + atcForm = '.add-to-cart-form', + printForm = '#add-to-cart-form-' + printId, + frameForm = '#add-to-cart-form-' + frameId, + current = $(productSelector).data('current'), + currentClass = '.' + current, + currentButton = $(productButton).hasClass(current); + + + $(atcForm+currentClass).show().addClass('selected'); + $(atcForm).not(currentClass).hide().removeClass('selected'); + + $(productButton + '.' + current).addClass('selected'); + + + + + + $(productButton).on('click', function(event) { + event.preventDefault() + + var thisId = $(this).data('prod'); + var idClass = '.' + thisId + var match = $(atcForm).hasClass(thisId); + + + $(productButton).toggleClass('selected') + + + if (match) { + console.log(atcForm+idClass) + $(atcForm+idClass).show().addClass('selected') + $(atcForm).not(idClass).hide().removeClass('selected') + } + + }) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + var collectionGrid = '#shopify-section-collection-template .scroll-container'; + var collectionGridInner = collectionGrid + ' .scroll-container-inner'; + var gridProduct = collectionGridInner + ' .product'; + var isCollection = $('body').hasClass('template-collection'); + let + pagNext = '.custom-next a', + pagHide = '.pag-hide', + pagStatus = '.page-load-status'; + + + // Collection Check, Infinite Scroll + + if (isCollection) { + // console.log('is a collection') + + $(collectionGridInner).infiniteScroll({ + // options + path: pagNext, + append: gridProduct, + history: false, + // hideNav: pagHide, + scrollThreshold: 600, + status: pagStatus + }); + + $(collectionGridInner).on( 'request.infiniteScroll', function() { + $(pagHide).addClass('visually-hidden') + console.log('threshold') + }); + + $(collectionGridInner).on( 'load.infiniteScroll', function( event, body, path, response ) { + console.log('Loaded: ' + path); + }); + + + $(collectionGridInner).on( 'append.infiniteScroll', function (items, path, response) { + console.log('append ' + response) + }); + + $(collectionGridInner).on( 'error.infiniteScroll', function( event, error, path, response ) { + console.error(`Could not load: ${path}. ${error}`); + }) + } else { + // console.log('not a collection') + } + + // var optionSelector = 'select#print-selector'; + // var optionSelectorOption = optionSelector + ' option'; + + // $(optionSelectorOption).each(function() { + // if($(this).is(':selected')) { + // $(this).addClass('selected-print') + // } + // }) + + // $(optionSelector).on('change', function () { + // $(optionSelectorOption).each(function() { + // if($(this).is(':selected')) { + // $(this).addClass('selected-print') + // } else { + // $(this).removeClass('selected-print') + // } + // }) + // }) + + // Collection Check, Fix Header and Filters + + if (isCollection) { + + var header = '.template-collection #shopify-section-header'; + var collectionMain = '.template-collection main'; + + console.log('fix header') + $(header).addClass('on-scroll') + $(collectionMain).addClass('on-scroll') + + } else { + $(header).removeClass('on-scroll') + $(collectionMain).removeClass('on-scroll') + console.log('unfix header') + } + + + let mainNav = '.js-nav', + wishlistLink = '.wishlist-link-li', + subMenu = '.sub-menu', + subMenuWrap = subMenu + ' .child-wrap', + subMenuInner = $(subMenu + ' .sub-menu-inner'), + mainNavWidth = $(mainNav).width(); + + + + // $(wishlistLink).ready(function() { + // console.log('wishlist link loaded') + + // // subMenuInner.width(mainNavWidth); + + // console.log('resize to' + mainNavWidth) + // }) + + + let + collHeader = 'section.collection-header .coll-header-wrapper' + $link = $(mainNav + ' li a') + $mainNavlink = $(mainNav + ' li a.has-child'), + childList = subMenuWrap; + + // $(window).resize(function () { + + // if ($(wishlistLink).ready()) { + // subMenuInner.width(mainNavWidth); + // console.log('resize to' + mainNavWidth) + // } + // }) + + + // Dropdown Navigation + + $link.hover(function () { + // console.log('resize to' + mainNavWidth) + + // if ($(wishlistLink).ready()) { + // // subMenuInner.width(mainNavWidth); + // console.log('resize to' + mainNavWidth) + // } + + var linkCheck = $(this).hasClass('has-child'); + + if (linkCheck) { + $(subMenu).addClass('active') + $(subMenu).show() + + + if (isCollection) { + $(collHeader).addClass('coll-move'); + $(collHeader).css('z-index', '-1'); + $(collHeader).css('opacity', '0'); + } + } else { + $(subMenu).removeClass('active', function(){ + $(subMenu).fadeOut(300) + }) + + + if (isCollection) { + $(collHeader).removeClass('coll-move'); + $(collHeader).css('z-index', '10000'); + $(collHeader).css('opacity', '1'); + } + } + + }) + + $(subMenu).on('mouseleave', function() { + $(subMenu).removeClass('active', function(){ + $(subMenu).fadeOut(300) + }) + + if (isCollection) { + $(collHeader).removeClass('coll-move'); + $(collHeader).css('z-index', '10000'); + $(collHeader).css('opacity', '1'); + } + }) + + + // Sub Nav Filter + + $mainNavlink.hover(function(event) { + + event.preventDefault(); + + + var filter = $(this).data('filter') + var filterClass = '.' + filter; + + // console.log(filter) + + let filterMatch = $(childList).hasClass(filter), + $filterMatch = $(childList + filterClass), + $filterFalse = $(childList).not(filterClass), + $tabFalse = $mainNavlink.not(filterClass); + + + if (filterMatch) { + $(this).addClass('active-visible'); + $filterMatch.addClass('active-visible'); + $filterFalse.removeClass('active-visible'); + $tabFalse.removeClass('active-visible'); + } + + }) + + // if (isCollection && subActiveCheck) { + // $(collHeader).addClass('coll-move'); + // } else { + // $(collHeader).removeClass('coll-move'); + // } + + + + + // Newsletter Modal + + + let modal = '#modal', + modalClose = modal + ' .close', + modalTiming = $(modal).data('timing'), + modalSubmit = modal + ' form' + // console.log('timing is ' + modalTiming); + + if (localStorage.hasOwnProperty("modalHide")) { + console.log('modal previously hidden'); + } else { + + setTimeout(function(){ + // console.log('this took ' + modalTiming); + $(modal).fadeIn(); + }, modalTiming); + + $(modalClose).on('click', function(event) { + + event.preventDefault(); + + $(modal).fadeOut(); + + window.localStorage.setItem("modalHide", "true"); + window.localStorage.setItem("origin", "https://roomfifty.com/"); + + console.log(localStorage); + }) + + $(modalSubmit).on('submit', function() { + + window.localStorage.setItem("modalHide", "true"); + window.localStorage.setItem("origin", "https://roomfifty.com/"); + + }) + + + } + + document.addEventListener("shopify:section:load", function(event) { + if (event.detail.sectionId === "modal") { + $(modal).fadeIn(); + } + }); + + +}); \ No newline at end of file diff --git a/assets/app_wishlist-king.min.js b/assets/app_wishlist-king.min.js new file mode 100644 index 0000000..55d6427 --- /dev/null +++ b/assets/app_wishlist-king.min.js @@ -0,0 +1,152 @@ +/* Wishlist King v2.1.0 */ +!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}(function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(typeof t[e]){case"function":break;case"object":t[e]=function(e){var n=e.slice(1),r=t[e[0]];return function(t,e,i){r.apply(this,[t,e,i].concat(n))}}(t[e]);break;default:t[e]=t[t[e]]}return t}([function(t,e,n){t.exports=n(1)},function(t,e,n){!function(){"use strict";var t=n(2),e=function(){var t=n(9),e=n(11),r=(n(17),n(18),n(20)),i=n(21),o=n(22),s=!1,a=!1,u=!1,c=!1,l={version:t.version,config:t,globals:{},init:function(n){s||(s=!0,e(t,n),t.app.autoLoad===!0&&this.load(),this.config=t,this.globals=t.globals,this.domReady())},domReady:function(){r.debug("DOM is ready"),u=!0,this.runWhenReady()},load:function(){a||(r.info("Load Appmate client"),a=!0)},runWhenReady:function(){r.debug("Check if ready",u,!c),u&&!c&&(r.info("Create Appmate client"),i.touch&&(document.body?document.body.classList.add("wk-touch"):document.addEventListener("DOMContentLoaded",function(){document.body.classList.add("wk-touch")})),window.Appmate.wk=new o(t),window.Appmate.wk.run({eventMap:this.wkEvents}),this.wkReady&&this.wkReady(),c=!0)},wk:{ready:function(t){l.wkReady=t},on:function(t){l.wkEvents=t}}};return l};t.checkAll()&&(window.Appmate=new e,"function"==typeof initAppmate&&initAppmate(window.Appmate))}()},function(t,e,n){var r=n(3);r(),t.exports={checkAll:function(){for(var t=[this.checkForEach,this.checkFind,this.checkBind,this.checkMutationObserver,this.checkLocalStorage],e=0;e>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;n>i;){var o=e[i];if(t.call(r,o,i,e))return o;i++}return void 0},configurable:!0,writable:!0})}},function(t,e,n){var r;(function(t,i,o){/*! + * @overview es6-promise - a tiny implementation of Promises/A+. + * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) + * @license Licensed under MIT license + * See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE + * @version 3.0.2 + */ +(function(){"use strict";function s(t){return"function"==typeof t||"object"==typeof t&&null!==t}function a(t){return"function"==typeof t}function u(t){return"object"==typeof t&&null!==t}function c(t){V=t}function l(t){G=t}function f(){return function(){t.nextTick(m)}}function h(){return function(){$(m)}}function p(){var t=0,e=new tt(m),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function d(){var t=new MessageChannel;return t.port1.onmessage=m,function(){t.port2.postMessage(0)}}function g(){return function(){setTimeout(m,1)}}function m(){for(var t=0;X>t;t+=2){var e=rt[t],n=rt[t+1];e(n),rt[t]=void 0,rt[t+1]=void 0}X=0}function v(){try{var t=n(!function(){var t=new Error('Cannot find module "vertx"');throw t.code="MODULE_NOT_FOUND",t}());return $=t.runOnLoop||t.runOnContext,h()}catch(e){return g()}}function y(){}function b(){return new TypeError("You cannot resolve a promise with itself")}function w(){return new TypeError("A promises callback cannot return that same promise.")}function x(t){try{return t.then}catch(e){return at.error=e,at}}function _(t,e,n,r){try{t.call(e,n,r)}catch(i){return i}}function T(t,e,n){G(function(t){var r=!1,i=_(n,e,function(n){r||(r=!0,e!==n?E(t,n):O(t,n))},function(e){r||(r=!0,P(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&i&&(r=!0,P(t,i))},t)}function S(t,e){e._state===ot?O(t,e._result):e._state===st?P(t,e._result):j(e,void 0,function(e){E(t,e)},function(e){P(t,e)})}function A(t,e){if(e.constructor===t.constructor)S(t,e);else{var n=x(e);n===at?P(t,at.error):void 0===n?O(t,e):a(n)?T(t,e,n):O(t,e)}}function E(t,e){t===e?P(t,b()):s(e)?A(t,e):O(t,e)}function k(t){t._onerror&&t._onerror(t._result),C(t)}function O(t,e){t._state===it&&(t._result=e,t._state=ot,0!==t._subscribers.length&&G(C,t))}function P(t,e){t._state===it&&(t._state=st,t._result=e,G(k,t))}function j(t,e,n,r){var i=t._subscribers,o=i.length;t._onerror=null,i[o]=e,i[o+ot]=n,i[o+st]=r,0===o&&t._state&&G(C,t)}function C(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,i,o=t._result,s=0;ss;s++)j(r.resolve(t[s]),void 0,e,n);return i}function B(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(y);return E(n,t),n}function F(t){var e=this,n=new e(y);return P(n,t),n}function q(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Y(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function H(t){this._id=dt++,this._state=void 0,this._result=void 0,this._subscribers=[],y!==t&&(a(t)||q(),this instanceof H||Y(),L(this,t))}function z(){var t;if("undefined"!=typeof i)t=i;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;(!n||"[object Promise]"!==Object.prototype.toString.call(n.resolve())||n.cast)&&(t.Promise=gt)}var W;W=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var $,V,J,K=W,X=0,G=({}.toString,function(t,e){rt[X]=t,rt[X+1]=e,X+=2,2===X&&(V?V(m):J())}),Z="undefined"!=typeof window?window:void 0,Q=Z||{},tt=Q.MutationObserver||Q.WebKitMutationObserver,et="undefined"!=typeof t&&"[object process]"==={}.toString.call(t),nt="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,rt=new Array(1e3);J=et?f():tt?p():nt?d():void 0===Z?v():g();var it=void 0,ot=1,st=2,at=new I,ut=new I;N.prototype._validateInput=function(t){return K(t)},N.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},N.prototype._init=function(){this._result=new Array(this.length)};var ct=N;N.prototype._enumerate=function(){for(var t=this,e=t.length,n=t.promise,r=t._input,i=0;n._state===it&&e>i;i++)t._eachEntry(r[i],i)},N.prototype._eachEntry=function(t,e){var n=this,r=n._instanceConstructor;u(t)?t.constructor===r&&t._state!==it?(t._onerror=null,n._settledAt(t._state,e,t._result)):n._willSettleAt(r.resolve(t),e):(n._remaining--,n._result[e]=t)},N.prototype._settledAt=function(t,e,n){var r=this,i=r.promise;i._state===it&&(r._remaining--,t===st?P(i,n):r._result[e]=n),0===r._remaining&&O(i,r._result)},N.prototype._willSettleAt=function(t,e){var n=this;j(t,void 0,function(t){n._settledAt(ot,e,t)},function(t){n._settledAt(st,e,t)})};var lt=M,ft=U,ht=B,pt=F,dt=0,gt=H;H.all=lt,H.race=ft,H.resolve=ht,H.reject=pt,H._setScheduler=c,H._setAsap=l,H._asap=G,H.prototype={constructor:H,then:function(t,e){var n=this,r=n._state;if(r===ot&&!t||r===st&&!e)return this;var i=new this.constructor(y),o=n._result;if(r){var s=arguments[r-1];G(function(){D(r,i,s,o)})}else j(n,i,t,e);return i},"catch":function(t){return this.then(null,t)}};var mt=z,vt={Promise:gt,polyfill:mt};n(7).amd?(r=function(){return vt}.call(e,n,e,o),!(void 0!==r&&(o.exports=r))):"undefined"!=typeof o&&o.exports?o.exports=vt:"undefined"!=typeof this&&(this.ES6Promise=vt),mt()}).call(this)}).call(e,n(5),function(){return this}(),n(6)(t))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function s(){g&&p&&(g=!1,p.length?d=p.concat(d):m=-1,d.length&&a())}function a(){if(!g){var t=i(s);g=!0;for(var e=d.length;e;){for(p=d,d=[];++m1)for(var n=1;n-1?e:t}function c(t,e){e=e||{};var r=e.body;if(c.prototype.isPrototypeOf(t)){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new n(t.headers)),this.method=t.method,this.mode=t.mode,r||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=t;if(this.credentials=e.credentials||this.credentials||"omit",(e.headers||!this.headers)&&(this.headers=new n(e.headers)),this.method=u(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function l(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}}),e}function f(t){var e=new n,r=t.getAllResponseHeaders().trim().split("\n");return r.forEach(function(t){var n=t.trim().split(":"),r=n.shift().trim(),i=n.join(":").trim();e.append(r,i)}),e}function h(t,e){e||(e={}),this._initBody(t),this.type="default",this.status=e.status,this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText,this.headers=e.headers instanceof n?e.headers:new n(e.headers),this.url=e.url||""}if(!self.fetch){n.prototype.append=function(n,r){n=t(n),r=e(r);var i=this.map[n];i||(i=[],this.map[n]=i),i.push(r)},n.prototype["delete"]=function(e){delete this.map[t(e)]},n.prototype.get=function(e){var n=this.map[t(e)];return n?n[0]:null},n.prototype.getAll=function(e){return this.map[t(e)]||[]},n.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},n.prototype.set=function(n,r){this.map[t(n)]=[e(r)]},n.prototype.forEach=function(t,e){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){t.call(e,r,n,this)},this)},this)};var p={blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in self},d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},a.call(c.prototype),a.call(h.prototype),h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},h.error=function(){var t=new h(null,{status:0,statusText:""});return t.type="error",t};var g=[301,302,303,307,308];h.redirect=function(t,e){if(-1===g.indexOf(e))throw new RangeError("Invalid status code");return new h(null,{status:e,headers:{location:t}})},self.Headers=n,self.Request=c,self.Response=h,self.fetch=function(t,e){return new Promise(function(n,r){function i(){return"responseURL"in s?s.responseURL:/^X-Request-URL:/m.test(s.getAllResponseHeaders())?s.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(t)&&!e?t:new c(t,e);var s=new XMLHttpRequest;s.onload=function(){var t=1223===s.status?204:s.status;if(100>t||t>599)return void r(new TypeError("Network request failed"));var e={status:t,statusText:s.statusText,headers:f(s),url:i()},o="response"in s?s.response:s.responseText;n(new h(o,e))},s.onerror=function(){r(new TypeError("Network request failed"))},s.open(o.method,o.url,!0),"include"===o.credentials&&(s.withCredentials=!0),"responseType"in s&&p.blob&&(s.responseType="blob"),o.headers.forEach(function(t,e){s.setRequestHeader(e,t)}),s.send("undefined"==typeof o._bodyInit?null:o._bodyInit)})},self.fetch.polyfill=!0}}()},function(t,e,n){var r=n(10);-1!==window.location.hostname.indexOf("appmate-dev")&&(r.app.host="https://appmate-restapi.serveo.net/v1",r.session.cacheScripts=!1),t.exports=r},function(t,e){t.exports={version:"2.1.0",app:{host:"https://api.appmate.io/v1",autoLoad:!0},shop:{domain:""},session:{customer:"",expiration:90,cacheScripts:!1},wishlist:{productsPerPage:100,loginRequired:!1,handle:"/pages/wishlist",proxyHandle:"/a/wk",share:{handle:"/pages/shared-wishlist",title:"My Wishlist",description:"Check out some of my favourite things.",imageTitle:!1,hashTags:"wishlist",twitterUser:!1}},globals:{},tracking:{drip:!1,facebook:!1,google:!1,klaviyo:!1,simonData:!1}}},function(t,e,n){function r(t,e){i(t,e)}var i=n(12);t.exports=r},function(t,e,n){(function(e){/*! + * @description Recursive object extending + * @author Viacheslav Lotsmanov + * @license MIT + * + * The MIT License (MIT) + * + * Copyright (c) 2013-2015 Viacheslav Lotsmanov + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ +"use strict";function n(t){return t instanceof e||t instanceof Date||t instanceof RegExp?!0:!1}function r(t){if(t instanceof e){var n=new e(t.length);return t.copy(n),n}if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}function i(t){var e=[];return t.forEach(function(t,s){"object"==typeof t&&null!==t?Array.isArray(t)?e[s]=i(t):n(t)?e[s]=r(t):e[s]=o({},t):e[s]=t}),e}var o=t.exports=function(){if(arguments.length<1||"object"!=typeof arguments[0])return!1;if(arguments.length<2)return arguments[0];var t,e,s=arguments[0],a=Array.prototype.slice.call(arguments,1);return a.forEach(function(a){"object"!=typeof a||null===a||Array.isArray(a)||Object.keys(a).forEach(function(u){return e=s[u],t=a[u],t===s?void 0:"object"!=typeof t||null===t?void(s[u]=t):Array.isArray(t)?void(s[u]=i(t)):n(t)?void(s[u]=r(t)):"object"!=typeof e||null===e||Array.isArray(e)?void(s[u]=o({},t)):void(s[u]=o(e,t))})}),s}}).call(e,n(13).Buffer)},function(t,e,n){(function(t,r){/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +"use strict";function i(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function o(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,n){if(o()t)throw new RangeError('"size" argument must not be negative')}function c(t,e,n,r){return u(e),0>=e?s(t,e):void 0!==n?"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}function l(e,n){if(u(n),e=s(e,0>n?0:0|g(n)),!t.TYPED_ARRAY_SUPPORT)for(var r=0;n>r;++r)e[r]=0;return e}function f(e,n,r){if(("string"!=typeof r||""===r)&&(r="utf8"),!t.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var i=0|v(n,r);e=s(e,i);var o=e.write(n,r);return o!==i&&(e=e.slice(0,o)),e}function h(t,e){var n=e.length<0?0:0|g(e.length);t=s(t,n);for(var r=0;n>r;r+=1)t[r]=255&e[r];return t}function p(e,n,r,i){if(n.byteLength,0>r||n.byteLength=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function m(e){return+e!=e&&(e=0),t.alloc(+e)}function v(e,n){if(t.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var i=!1;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return J(e).length;default:if(i)return W(e).length;n=(""+n).toLowerCase(),i=!0}}function y(t,e,n){var r=!1;if((void 0===e||0>e)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),0>=n)return"";if(n>>>=0,e>>>=0,e>=n)return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,n);case"utf8":case"utf-8":return P(this,e,n);case"ascii":return C(this,e,n);case"latin1":case"binary":return I(this,e,n);case"base64":return O(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function b(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function w(e,n,r,i,o){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:-2147483648>r&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),0>r&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(0>r){if(!o)return-1;r=0}if("string"==typeof n&&(n=t.from(n,i)),t.isBuffer(n))return 0===n.length?-1:x(e,n,r,i,o);if("number"==typeof n)return n=255&n,t.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,n,r):Uint8Array.prototype.lastIndexOf.call(e,n,r):x(e,[n],r,i,o);throw new TypeError("val must be string, number or Buffer")}function x(t,e,n,r,i){function o(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var s=1,a=t.length,u=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,n/=2}var c;if(i){var l=-1;for(c=n;a>c;c++)if(o(t,c)===o(e,-1===l?0:c-l)){if(-1===l&&(l=c),c-l+1===u)return l*s}else-1!==l&&(c-=c-l),l=-1}else for(n+u>a&&(n=a-u),c=n;c>=0;c--){for(var f=!0,h=0;u>h;h++)if(o(t,c+h)!==o(e,h)){f=!1;break}if(f)return c}return-1}function _(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;r>s;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function T(t,e,n,r){return K(W(e,t.length-n),t,n,r)}function S(t,e,n,r){return K($(e),t,n,r)}function A(t,e,n,r){return S(t,e,n,r)}function E(t,e,n,r){return K(J(e),t,n,r)}function k(t,e,n,r){return K(V(e,t.length-n),t,n,r)}function O(t,e,n){return 0===e&&n===t.length?G.fromByteArray(t):G.fromByteArray(t.slice(e,n))}function P(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;n>i;){var o=t[i],s=null,a=o>239?4:o>223?3:o>191?2:1;if(n>=i+a){var u,c,l,f;switch(a){case 1:128>o&&(s=o);break;case 2:u=t[i+1],128===(192&u)&&(f=(31&o)<<6|63&u,f>127&&(s=f));break;case 3:u=t[i+1],c=t[i+2],128===(192&u)&&128===(192&c)&&(f=(15&o)<<12|(63&u)<<6|63&c,f>2047&&(55296>f||f>57343)&&(s=f));break;case 4:u=t[i+1],c=t[i+2],l=t[i+3],128===(192&u)&&128===(192&c)&&128===(192&l)&&(f=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l,f>65535&&1114112>f&&(s=f))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=a}return j(r)}function j(t){var e=t.length;if(tt>=e)return String.fromCharCode.apply(String,t);for(var n="",r=0;e>r;)n+=String.fromCharCode.apply(String,t.slice(r,r+=tt));return n}function C(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;n>i;++i)r+=String.fromCharCode(127&t[i]);return r}function I(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;n>i;++i)r+=String.fromCharCode(t[i]);return r}function R(t,e,n){var r=t.length;(!e||0>e)&&(e=0),(!n||0>n||n>r)&&(n=r);for(var i="",o=e;n>o;++o)i+=z(t[o]);return i}function D(t,e,n){for(var r=t.slice(e,n),i="",o=0;ot)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,n,r,i,o,s){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>o||s>n)throw new RangeError('"value" argument is out of bounds');if(r+i>e.length)throw new RangeError("Index out of range")}function M(t,e,n,r){0>e&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);o>i;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function U(t,e,n,r){0>e&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);o>i;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function B(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(0>n)throw new RangeError("Index out of range")}function F(t,e,n,r,i){return i||B(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(t,e,n,r,23,4),n+4}function q(t,e,n,r,i){return i||B(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(t,e,n,r,52,8),n+8}function Y(t){if(t=H(t).replace(et,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function H(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function z(t){return 16>t?"0"+t.toString(16):t.toString(16)}function W(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],s=0;r>s;++s){if(n=t.charCodeAt(s),n>55295&&57344>n){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(56320>n){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,128>n){if((e-=1)<0)break;o.push(n)}else if(2048>n){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(65536>n){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(1114112>n))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function $(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function J(t){return G.toByteArray(Y(t))}function K(t,e,n,r){for(var i=0;r>i&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function X(t){return t!==t}var G=n(14),Z=n(15),Q=n(16);e.Buffer=t,e.SlowBuffer=m,e.INSPECT_MAX_BYTES=50,t.TYPED_ARRAY_SUPPORT=void 0!==r.TYPED_ARRAY_SUPPORT?r.TYPED_ARRAY_SUPPORT:i(),e.kMaxLength=o(),t.poolSize=8192,t._augment=function(e){return e.__proto__=t.prototype,e},t.from=function(t,e,n){return a(null,t,e,n)},t.TYPED_ARRAY_SUPPORT&&(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0})),t.alloc=function(t,e,n){return c(null,t,e,n)},t.allocUnsafe=function(t){return l(null,t)},t.allocUnsafeSlow=function(t){return l(null,t)},t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(e,n){if(!t.isBuffer(e)||!t.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var r=e.length,i=n.length,o=0,s=Math.min(r,i);s>o;++o)if(e[o]!==n[o]){r=e[o],i=n[o];break}return i>r?-1:r>i?1:0},t.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(e,n){if(!Q(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return t.alloc(0);var r;if(void 0===n)for(n=0,r=0;re;e+=2)b(this,e,e+1);return this},t.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;t>e;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},t.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;t>e;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},t.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?P(this,0,t):y.apply(this,arguments)},t.prototype.equals=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===t.compare(this,e)},t.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},t.prototype.compare=function(e,n,r,i,o){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),0>n||r>e.length||0>i||o>this.length)throw new RangeError("out of range index");if(i>=o&&n>=r)return 0;if(i>=o)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var s=o-i,a=r-n,u=Math.min(s,a),c=this.slice(i,o),l=e.slice(n,r),f=0;u>f;++f)if(c[f]!==l[f]){s=c[f],a=l[f];break}return a>s?-1:s>a?1:0},t.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},t.prototype.indexOf=function(t,e,n){return w(this,t,e,n,!0)},t.prototype.lastIndexOf=function(t,e,n){return w(this,t,e,n,!1)},t.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e=0|e,isFinite(n)?(n=0|n,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(0>n||0>e)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return T(this,t,e,n);case"ascii":return S(this,t,e,n);case"latin1":case"binary":return A(this,t,e,n);case"base64":return E(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tt=4096;t.prototype.slice=function(e,n){var r=this.length;e=~~e,n=void 0===n?r:~~n,0>e?(e+=r,0>e&&(e=0)):e>r&&(e=r),0>n?(n+=r,0>n&&(n=0)):n>r&&(n=r),e>n&&(n=e);var i;if(t.TYPED_ARRAY_SUPPORT)i=this.subarray(e,n),i.__proto__=t.prototype;else{var o=n-e;i=new t(o,void 0);for(var s=0;o>s;++s)i[s]=this[s+e]}return i},t.prototype.readUIntLE=function(t,e,n){t=0|t,e=0|e,n||L(t,e,this.length);for(var r=this[t],i=1,o=0;++o0&&(i*=256);)r+=this[t+--e]*i;return r},t.prototype.readUInt8=function(t,e){return e||L(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,e){return e||L(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,e){return e||L(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,e){return e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,e){return e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,e,n){t=0|t,e=0|e,n||L(t,e,this.length);for(var r=this[t],i=1,o=0;++o=i&&(r-=Math.pow(2,8*e)),r},t.prototype.readIntBE=function(t,e,n){t=0|t,e=0|e,n||L(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},t.prototype.readInt8=function(t,e){return e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},t.prototype.readInt16LE=function(t,e){e||L(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt16BE=function(t,e){e||L(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt32LE=function(t,e){return e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,e){return e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,e){return e||L(t,4,this.length),Z.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,e){return e||L(t,4,this.length),Z.read(this,t,!1,23,4)},t.prototype.readDoubleLE=function(t,e){return e||L(t,8,this.length),Z.read(this,t,!0,52,8)},t.prototype.readDoubleBE=function(t,e){return e||L(t,8,this.length),Z.read(this,t,!1,52,8)},t.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e=0|e,n=0|n,!r){var i=Math.pow(2,8*n)-1;N(this,t,e,n,i,0)}var o=1,s=0;for(this[e]=255&t;++s=0&&(s*=256);)this[e+o]=t/s&255;return e+n},t.prototype.writeUInt8=function(e,n,r){return e=+e,n=0|n,r||N(this,e,n,1,255,0),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=255&e,n+1},t.prototype.writeUInt16LE=function(e,n,r){return e=+e,n=0|n,r||N(this,e,n,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):M(this,e,n,!0),n+2},t.prototype.writeUInt16BE=function(e,n,r){return e=+e,n=0|n,r||N(this,e,n,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):M(this,e,n,!1),n+2},t.prototype.writeUInt32LE=function(e,n,r){return e=+e,n=0|n,r||N(this,e,n,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e):U(this,e,n,!0),n+4},t.prototype.writeUInt32BE=function(e,n,r){return e=+e,n=0|n,r||N(this,e,n,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):U(this,e,n,!1),n+4},t.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e=0|e,!r){var i=Math.pow(2,8*n-1);N(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++ot&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},t.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e=0|e,!r){var i=Math.pow(2,8*n-1);N(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)0>t&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},t.prototype.writeInt8=function(e,n,r){return e=+e,n=0|n,r||N(this,e,n,1,127,-128),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[n]=255&e,n+1},t.prototype.writeInt16LE=function(e,n,r){return e=+e,n=0|n,r||N(this,e,n,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):M(this,e,n,!0),n+2},t.prototype.writeInt16BE=function(e,n,r){return e=+e,n=0|n,r||N(this,e,n,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):M(this,e,n,!1),n+2},t.prototype.writeInt32LE=function(e,n,r){return e=+e,n=0|n,r||N(this,e,n,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):U(this,e,n,!0),n+4},t.prototype.writeInt32BE=function(e,n,r){return e=+e,n=0|n,r||N(this,e,n,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):U(this,e,n,!1),n+4},t.prototype.writeFloatLE=function(t,e,n){return F(this,t,e,!0,n)},t.prototype.writeFloatBE=function(t,e,n){return F(this,t,e,!1,n)},t.prototype.writeDoubleLE=function(t,e,n){return q(this,t,e,!0,n)},t.prototype.writeDoubleBE=function(t,e,n){return q(this,t,e,!1,n)},t.prototype.copy=function(e,n,r,i){if(r||(r=0),i||0===i||(i=this.length),n>=e.length&&(n=e.length),n||(n=0),i>0&&r>i&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(0>n)throw new RangeError("targetStart out of bounds");if(0>r||r>=this.length)throw new RangeError("sourceStart out of bounds");if(0>i)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-nr&&i>n)for(o=s-1;o>=0;--o)e[o+n]=this[o+r];else if(1e3>s||!t.TYPED_ARRAY_SUPPORT)for(o=0;s>o;++o)e[o+n]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+s),n);return s},t.prototype.fill=function(e,n,r,i){if("string"==typeof e){if("string"==typeof n?(i=n,n=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),1===e.length){var o=e.charCodeAt(0);256>o&&(e=o)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!t.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e=255&e);if(0>n||this.length=r)return this;n>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var s;if("number"==typeof e)for(s=n;r>s;++s)this[s]=e;else{var a=t.isBuffer(e)?e:W(new t(e,i).toString()),u=a.length;for(s=0;r-n>s;++s)this[s+n]=a[s%u]}return this};var et=/[^+\/0-9A-Za-z-_]/g}).call(e,n(13).Buffer,function(){return this}())},function(t,e){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function r(t){return 3*t.length/4-n(t)}function i(t){var e,r,i,o,s,a=t.length;o=n(t),s=new l(3*a/4-o),r=o>0?a-4:a;var u=0;for(e=0;r>e;e+=4)i=c[t.charCodeAt(e)]<<18|c[t.charCodeAt(e+1)]<<12|c[t.charCodeAt(e+2)]<<6|c[t.charCodeAt(e+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=c[t.charCodeAt(e)]<<2|c[t.charCodeAt(e+1)]>>4,s[u++]=255&i):1===o&&(i=c[t.charCodeAt(e)]<<10|c[t.charCodeAt(e+1)]<<4|c[t.charCodeAt(e+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}function o(t){return u[t>>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}function s(t,e,n){for(var r,i=[],s=e;n>s;s+=3)r=(t[s]<<16)+(t[s+1]<<8)+t[s+2],i.push(o(r));return i.join("")}function a(t){for(var e,n=t.length,r=n%3,i="",o=[],a=16383,c=0,l=n-r;l>c;c+=a)o.push(s(t,c,c+a>l?l:c+a));return 1===r?(e=t[n-1],i+=u[e>>2],i+=u[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=u[e>>10],i+=u[e>>4&63],i+=u[e<<2&63],i+="="),o.push(i),o.join("")}e.byteLength=r,e.toByteArray=i,e.fromByteArray=a;for(var u=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,p=f.length;p>h;++h)u[h]=f[h],c[f.charCodeAt(h)]=h;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,u=(1<>1,l=-7,f=n?i-1:0,h=n?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=256*o+t[e+f],f+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:(p?-1:1)*(1/0);s+=Math.pow(2,r),o-=c}return(p?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),e+=s+f>=1?h/u:h*Math.pow(2,1-f),e*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*u-1)*Math.pow(2,i),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[n+p]=255&a,p+=d,a/=256,i-=8);for(s=s<0;t[n+p]=255&s,p+=d,s/=256,c-=8);t[n+p-d]|=128*g}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){function r(t,e){this.url=t,this.cache=e}var i=n(18),o=n(20);r.prototype.load=function(t,e){this.cache===!0?this.loadScript(this.url,t,e):this.addScript(this.url,t,e)},r.prototype.loadScript=function(t,e,n){var r=new i({url:t,cache:this.cache});o.debug("Load script",t),r.get(function(t){this.injectScript(t),e()}.bind(this),n)},r.prototype.addScript=function(t,e,n){var r=document.createElement("script");r.src=t,r.onload=function(){e()},r.onerror=function(){n(new Error("Script Error: "+this.url))},o.debug("Add script",r),document.head.appendChild(r)},r.prototype.injectScript=function(t){var e=document.createElement("script");e.type="text/javascript",e.text=t,document.head.appendChild(e)},t.exports=r},function(t,e,n){function r(t){if(t.data&&t.data.expires){var e=(new Date).getTime(),n=t.data.expires;return s.debug("Data expires in",n-e),e>n}return!0}function i(t){this.config=t,this.request=new a,this.storage=new o("appmate-xhr")}var o=n(19).TinyStore,s=n(20),a=window.XMLHttpRequest;i.prototype.fromCache=function(){return this.storage.get(this.config.url)},i.prototype.cache=function(t){this.storage.set(this.config.url,t)},i.prototype.clearCache=function(){this.storage.clear()},i.prototype.setHeader=function(t,e){s.debug("Set header",t,e),this.request.setRequestHeader(t,e)},i.prototype.get=function(t,e){var n=!1,i=this.fromCache();if(this.config.cache&&i){n=!0;var o=JSON.parse(i);if(t(o),this.config.refresh===!1&&!r(o))return void s.debug("Do not refresh "+this.config.url)}this.request.open("GET",this.config.url);for(var a in this.config.headers)this.setHeader(a,this.config.headers[a]);this.request.onerror=function(){this.clearCache(),s.error("XHR Error:",this.request.responseText),e(this.request.responseText)}.bind(this),this.request.onload=function(){var r=this.request.status;if(r>=200&&300>r||304===r){var i=!0,o=this.request.getResponseHeader("content-type"),a=this.request.responseText;-1!==o.indexOf("json")&&(a=JSON.parse(a),i=a.success===!0),i?(this.config.cache&&this.cache(JSON.stringify(a)),n||t(a)):(this.clearCache(),e(a))}else this.clearCache(),s.error("XHR Error:",this.request.responseText),e(this.request.responseText)}.bind(this),this.request.send()},t.exports=i},function(t,e){!function(t){function e(t,e){if(this.session={},this.store="undefined"!=typeof e?e:localStorage,this.name=t||"TinyStore",this.enabled=n(this.store),this.enabled)try{this.session=JSON.parse(this.store[this.name])||{}}catch(r){}}function n(t){if(!t)return!1;var e=typeof t,n="function"==typeof t.getItem&&"function"==typeof t.setItem,r="object"===e||"function"===e;return n||r?!0:!1}e.prototype.save=function(){return this.enabled&&(this.store[this.name]=JSON.stringify(this.session)),this.session},e.prototype.set=function(t,e){return this.session[t]=e,this.save(),this.session[t]},e.prototype.get=function(t){return this.session[t]},e.prototype.remove=function(t){var e=this.session[t];return delete this.session[t],this.save(),e},e.prototype.clear=function(){this.session={},this.enabled&&delete this.store[this.name]},t.TinyStore=e}(this)},function(t,e){var n={all:-1,debug:1,info:2,warn:4,error:5,off:100},r=n.error;window.localStorage&&window.localStorage.logLevel&&(r=window.localStorage.logLevel);var i={debug:function(t){r<=n.debug&&console.log.apply(console,arguments)},info:function(t){r<=n.info&&console.info.apply(console,arguments)},error:function(t){r<=n.error&&console.error.apply(console,arguments)}};i.log=i.debug,i.debug("Init logger with level %s",r),t.exports=i},function(t,e){function n(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}t.exports={touch:n()}},function(t,e,n){t.exports=function(t){var e=n(23),r=n(25),i=n(42),o=n(67),s=n(71)(),a=n(72),u=n(100)(t),c=n(96),l=n(76),f=n(83),h=n(101),p=n(79),d=n(102),g=n(110),m=n(111)(t.tracking),v=n(20);v.debug("Init Wishlist King with config",t),f.init(t),p.init(t.session);var y=!1,b={version:t.version,collection:c,sharedWishlists:l,config:t,$:g,globals:t.globals,filters:u.getAll(),trackEvent:m,getShareLink:function(t){var e=c.getLocal({permaId:t.wkShare});return f.getShareLink(t,e)},createShareUrl:function(e,n){return f.createShareUrl(e,n,t.wishlist.share.title,t.wishlist.share.description,t.wishlist.share.imageTitle,t.wishlist.share.hashTags,t.wishlist.share.twitterUser,t.wishlist.proxyHandle,t.wishlist.share.handle)},createShareLink:function(e){return f.createShareLink(e,t.wishlist.share.title,t.wishlist.share.description,t.wishlist.share.imageTitle,t.wishlist.share.hashTags,t.wishlist.share.twitterUser,t.wishlist.proxyHandle,t.wishlist.share.handle)},clipboard:function(t){return new d(t)},getProduct:function(t){var e=c.getProduct(t);return e?e:(v.debug("Product not found. Try shared list."),l.getProduct(t))},addProduct:function(t,e){return c.loginRequired()?(this.emit("login-required",{action:"addProduct",product:t,variant:e}),Promise.reject("Login required")):(t=parseInt(t,10),e=parseInt(e,10),c.get().then(function(n){return n.add(t,e)}).then(function(t){return c.cacheAll(),m("Added Product",{product:t,variant:t.selected_or_first_available_variant||{}}),t})["catch"](function(t){throw c.clearCache(),t}))},removeProduct:function(t,e){return c.loginRequired()?(this.emit("login-required",{action:"removeProduct",product:t,variant:e}),Promise.reject("Login required")):(t=parseInt(t,10),e=parseInt(e,10),c.get().then(function(n){var r={id:t};e&&(r.selected_variant_id=e);var i=n.findOne(r);return n.remove(i.wishlist_item_id)}).then(function(t){return c.cacheAll(),m("Removed Product",{product:t,variant:t.selected_or_first_available_variant||{}}),t})["catch"](function(t){throw c.clearCache(),t}))},getItem:function(t){return v.debug("Get item",t),c.get().then(function(e){var n=e.get(t);return n?Promise.resolve(n):(v.debug("Product not found. Try shared list."),l.getItem(t))})},updateItem:function(t,e){return c.loginRequired()?(this.emit("login-required",{action:"updateItem",itemId:t,update:JSON.stringify(e)}),Promise.reject("Login required")):(v.debug("Update item",t,e),c.get().then(function(n){return n.updateItem(t,e)}).then(function(t){return t.product&&t.changed&&c.cacheAll(),t.product})["catch"](function(t){throw c.clearCache(),t}))},removeItem:function(t){return c.loginRequired()?(this.emit("login-required",{action:"removeItem",itemId:t}),Promise.reject("Login required")):(v.debug("Remove item",t),c.get().then(function(e){return e.remove(t)}).then(function(t){return c.cacheAll(),m("Removed Product",{product:t,variant:t.selected_or_first_available_variant||{}}),t})["catch"](function(t){throw c.clearCache(),t}))},addToCart:function(t){return c.loginRequired()?(this.emit("login-required",{action:"addToCart"}),Promise.reject("Login required")):h.addToCart(t)},loadProduct:function(t){return h.loadProduct(t)},moveToCart:function(t,e){return c.loginRequired()?(this.emit("login-required",{action:"moveToCart"}),Promise.reject("Login required")):Promise.all([this.removeItem(t),this.addToCart(e)]).then(function(t){return t[0]})},clear:function(){return c.loginRequired()?(this.emit("login-required",{action:"clear"}),Promise.reject("Login required")):(v.debug("Clear wishlist"),c.get().then(function(t){return t.removeAll()}).then(function(t){return c.cacheAll(),m("Cleared Wishlist",{}),t})["catch"](function(t){throw c.clearCache(),t}))},addLoginRedirect:function(t,e){if(t&&e&&e.path){var n=t.find("input[name=checkout_url]");n.length||(n=g(''),t.append(n)),e.intent?n.attr("value",e.path+"?wk-intent="+encodeURIComponent(JSON.stringify(e.intent))):n.attr("value",e.path)}},getQueryParam:function(t,e){e||(e=window.location.href),t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)"),r=n.exec(e);return r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null},run:function(e){var n=e.eventMap;if(!y){v.info("Run Wishlist King."),n.hasOwnProperty("login-required")&&(this.on("login-required",n["login-required"]),delete n["login-required"]),n.hasOwnProperty("ready")&&(this.on("ready",n.ready),delete n.ready),s.init(n),"function"==typeof t.wishlist.filter&&(c.filter=t.wishlist.filter);try{a.parseAll(t.globals,"wishlist-king"),c.load()}catch(r){throw c.clearCache(),r}y=!0,this.observer=new window.MutationObserver(function(e){var n=e.find(function(t){return t.addedNodes.length});n&&(clearTimeout(this.autoUpdateTimeout),this.autoUpdateTimeout=setTimeout(function(){try{a.parseAll(t.globals,"wishlist-king",!0)}catch(e){throw c.clearCache(),e}}))}.bind(this)),this.observer.observe(document,{subtree:!0,childList:!0,attributes:!1}),document.addEventListener("DOMContentLoaded",function(){v.info("Views update (DOMContentLoaded)"),a.parseAll(t.globals,"wishlist-king",!0)}.bind(this)),this.emit("ready")}}};return e(b),r(b),i(o,b),b}},function(t,e,n){function r(t){var e,n,r,o=Object.keys(t),s=o.length;for(e=0;s>e;++e)n=o[e],r=t[n],i(r)&&(t[n]=r.bind(t))}var i=n(24);t.exports=function(t){return t?r(t):void 0}},function(t,e){function n(t){return"function"==typeof t}t.exports=n},function(t,e,n){"use strict";var r,i,o,s,a,u,c,l=n(26),f=n(41),h=Function.prototype.apply,p=Function.prototype.call,d=Object.create,g=Object.defineProperty,m=Object.defineProperties,v=Object.prototype.hasOwnProperty,y={configurable:!0,enumerable:!1,writable:!0};r=function(t,e){var n;return f(e),v.call(this,"__ee__")?n=this.__ee__:(n=y.value=d(null),g(this,"__ee__",y),y.value=null),n[t]?"object"==typeof n[t]?n[t].push(e):n[t]=[n[t],e]:n[t]=e,this},i=function(t,e){var n,i;return f(e),i=this,r.call(this,t,n=function(){o.call(i,t,n),h.call(e,this,arguments)}),n.__eeOnceListener__=e,this},o=function(t,e){var n,r,i,o;if(f(e),!v.call(this,"__ee__"))return this; +if(n=this.__ee__,!n[t])return this;if(r=n[t],"object"==typeof r)for(o=0;i=r[o];++o)(i===e||i.__eeOnceListener__===e)&&(2===r.length?n[t]=r[o?0:1]:r.splice(o,1));else(r===e||r.__eeOnceListener__===e)&&delete n[t];return this},s=function(t){var e,n,r,i,o;if(v.call(this,"__ee__")&&(i=this.__ee__[t]))if("object"==typeof i){for(n=arguments.length,o=new Array(n-1),e=1;n>e;++e)o[e-1]=arguments[e];for(i=i.slice(),e=0;r=i[e];++e)h.call(r,this,o)}else switch(arguments.length){case 1:p.call(i,this);break;case 2:p.call(i,this,arguments[1]);break;case 3:p.call(i,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,o=new Array(n-1),e=1;n>e;++e)o[e-1]=arguments[e];h.call(i,this,o)}},a={on:r,once:i,off:o,emit:s},u={on:l(r),once:l(i),off:l(o),emit:l(s)},c=m({},u),t.exports=e=function(t){return null==t?d(c):m(Object(t),u)},e.methods=a},function(t,e,n){"use strict";var r,i=n(27),o=n(36),s=n(37),a=n(38);r=t.exports=function(t,e){var n,r,s,u,c;return arguments.length<2||"string"!=typeof t?(u=e,e=t,t=null):u=arguments[2],null==t?(n=s=!0,r=!1):(n=a.call(t,"c"),r=a.call(t,"e"),s=a.call(t,"w")),c={value:e,configurable:n,enumerable:r,writable:s},u?i(o(u),c):c},r.gs=function(t,e,n){var r,u,c,l;return"string"!=typeof t?(c=n,n=e,e=t,t=null):c=arguments[3],null==e?e=void 0:s(e)?null==n?n=void 0:s(n)||(c=n,n=void 0):(c=e,e=n=void 0),null==t?(r=!0,u=!1):(r=a.call(t,"c"),u=a.call(t,"e")),l={get:e,set:n,configurable:r,enumerable:u},c?i(o(c),l):l}},function(t,e,n){"use strict";t.exports=n(28)()?Object.assign:n(29)},function(t,e){"use strict";t.exports=function(){var t,e=Object.assign;return"function"!=typeof e?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}},function(t,e,n){"use strict";var r=n(30),i=n(35),o=Math.max;t.exports=function(t,e){var n,s,a,u=o(arguments.length,2);for(t=Object(i(t)),a=function(r){try{t[r]=e[r]}catch(i){n||(n=i)}},s=1;u>s;++s)e=arguments[s],r(e).forEach(a);if(void 0!==n)throw n;return t}},function(t,e,n){"use strict";t.exports=n(31)()?Object.keys:n(32)},function(t,e){"use strict";t.exports=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}},function(t,e,n){"use strict";var r=n(33),i=Object.keys;t.exports=function(t){return i(r(t)?Object(t):t)}},function(t,e,n){"use strict";var r=n(34)();t.exports=function(t){return t!==r&&null!==t}},function(t,e){"use strict";t.exports=function(){}},function(t,e,n){"use strict";var r=n(33);t.exports=function(t){if(!r(t))throw new TypeError("Cannot use null or undefined");return t}},function(t,e,n){"use strict";var r=n(33),i=Array.prototype.forEach,o=Object.create,s=function(t,e){var n;for(n in t)e[n]=t[n]};t.exports=function(t){var e=o(null);return i.call(arguments,function(t){r(t)&&s(Object(t),e)}),e}},function(t,e){"use strict";t.exports=function(t){return"function"==typeof t}},function(t,e,n){"use strict";t.exports=n(39)()?String.prototype.contains:n(40)},function(t,e){"use strict";var n="razdwatrzy";t.exports=function(){return"function"!=typeof n.contains?!1:n.contains("dwa")===!0&&n.contains("foo")===!1}},function(t,e){"use strict";var n=String.prototype.indexOf;t.exports=function(t){return n.call(this,t,arguments[1])>-1}},function(t,e){"use strict";t.exports=function(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");return t}},function(t,e,n){"use strict";var r=n(43),i=n(60),o=n(65),s=n(26),a=n(25).methods.emit,u=Object.defineProperty,c=Object.prototype.hasOwnProperty,l=Object.getOwnPropertyDescriptor;t.exports=function(t,e){var n,f,h,p;return o(t)&&o(e),p=arguments[2],void 0===p&&(p="emit"),f={close:function(){i.call(n,e)}},c.call(t,"__eePipes__")?((n=t.__eePipes__).push(e),f):(u(t,"__eePipes__",s("c",n=[e])),h=l(t,p),h?(delete h.get,delete h.set):h=s("c",void 0),h.value=function(){var t,e,i=r(n);for(a.apply(this,arguments),t=0;e=i[t];++t)a.apply(e,arguments)},u(t,p,h),f)}},function(t,e,n){"use strict";t.exports=n(44)()?Array.from:n(45)},function(t,e){"use strict";t.exports=function(){var t,e,n=Array.from;return"function"!=typeof n?!1:(t=["raz","dwa"],e=n(t),Boolean(e&&e!==t&&"dwa"===e[1]))}},function(t,e,n){"use strict";var r=n(46).iterator,i=n(52),o=n(53),s=n(54),a=n(41),u=n(35),c=n(33),l=n(59),f=Array.isArray,h=Function.prototype.call,p={configurable:!0,enumerable:!0,writable:!0,value:null},d=Object.defineProperty;t.exports=function(t){var e,n,g,m,v,y,b,w,x,_,T=arguments[1],S=arguments[2];if(t=Object(u(t)),c(T)&&a(T),this&&this!==Array&&o(this))e=this;else{if(!T){if(i(t))return v=t.length,1!==v?Array.apply(null,t):(m=new Array(1),m[0]=t[0],m);if(f(t)){for(m=new Array(v=t.length),n=0;v>n;++n)m[n]=t[n];return m}}m=[]}if(!f(t))if(void 0!==(x=t[r])){for(b=a(x).call(t),e&&(m=new e),w=b.next(),n=0;!w.done;)_=T?h.call(T,S,w.value,n):w.value,e?(p.value=_,d(m,n,p)):m[n]=_,w=b.next(),++n;v=n}else if(l(t)){for(v=t.length,e&&(m=new e),n=0,g=0;v>n;++n)_=t[n],v>n+1&&(y=_.charCodeAt(0),y>=55296&&56319>=y&&(_+=t[++n])),_=T?h.call(T,S,_,g):_,e?(p.value=_,d(m,g,p)):m[g]=_,++g;v=g}if(void 0===v)for(v=s(t.length),e&&(m=new e(v)),n=0;v>n;++n)_=T?h.call(T,S,t[n],n):t[n],e?(p.value=_,d(m,n,p)):m[n]=_;return e&&(p.value=null,m.length=v),m}},function(t,e,n){"use strict";t.exports=n(47)()?Symbol:n(48)},function(t,e){"use strict";var n={object:!0,symbol:!0};t.exports=function(){var t;if("function"!=typeof Symbol)return!1;t=Symbol("test symbol");try{String(t)}catch(e){return!1}return n[typeof Symbol.iterator]&&n[typeof Symbol.toPrimitive]&&n[typeof Symbol.toStringTag]?!0:!1}},function(t,e,n){"use strict";var r,i,o,s,a=n(49),u=n(50),c=Object.create,l=Object.defineProperties,f=Object.defineProperty,h=Object.prototype,p=c(null);if("function"==typeof Symbol){r=Symbol;try{String(r()),s=!0}catch(d){}}var g=function(){var t=c(null);return function(e){for(var n,r,i=0;t[e+(i||"")];)++i;return e+=i||"",t[e]=!0,n="@@"+e,f(h,n,a.gs(null,function(t){r||(r=!0,f(this,n,a(t)),r=!1)})),n}}();o=function(t){if(this instanceof o)throw new TypeError("Symbol is not a constructor");return i(t)},t.exports=i=function m(t){var e;if(this instanceof m)throw new TypeError("Symbol is not a constructor");return s?r(t):(e=c(o.prototype),t=void 0===t?"":String(t),l(e,{__description__:a("",t),__name__:a("",g(t))}))},l(i,{"for":a(function(t){return p[t]?p[t]:p[t]=i(String(t))}),keyFor:a(function(t){var e;u(t);for(e in p)if(p[e]===t)return e}),hasInstance:a("",r&&r.hasInstance||i("hasInstance")),isConcatSpreadable:a("",r&&r.isConcatSpreadable||i("isConcatSpreadable")),iterator:a("",r&&r.iterator||i("iterator")),match:a("",r&&r.match||i("match")),replace:a("",r&&r.replace||i("replace")),search:a("",r&&r.search||i("search")),species:a("",r&&r.species||i("species")),split:a("",r&&r.split||i("split")),toPrimitive:a("",r&&r.toPrimitive||i("toPrimitive")),toStringTag:a("",r&&r.toStringTag||i("toStringTag")),unscopables:a("",r&&r.unscopables||i("unscopables"))}),l(o.prototype,{constructor:a(i),toString:a("",function(){return this.__name__})}),l(i.prototype,{toString:a(function(){return"Symbol ("+u(this).__description__+")"}),valueOf:a(function(){return u(this)})}),f(i.prototype,i.toPrimitive,a("",function(){var t=u(this);return"symbol"==typeof t?t:t.toString()})),f(i.prototype,i.toStringTag,a("c","Symbol")),f(o.prototype,i.toStringTag,a("c",i.prototype[i.toStringTag])),f(o.prototype,i.toPrimitive,a("c",i.prototype[i.toPrimitive]))},26,function(t,e,n){"use strict";var r=n(51);t.exports=function(t){if(!r(t))throw new TypeError(t+" is not a symbol");return t}},function(t,e){"use strict";t.exports=function(t){return t?"symbol"==typeof t?!0:t.constructor?"Symbol"!==t.constructor.name?!1:"Symbol"===t[t.constructor.toStringTag]:!1:!1}},function(t,e){"use strict";var n=Object.prototype.toString,r=n.call(function(){return arguments}());t.exports=function(t){return n.call(t)===r}},function(t,e,n){"use strict";var r=Object.prototype.toString,i=r.call(n(34));t.exports=function(t){return"function"==typeof t&&r.call(t)===i}},function(t,e,n){"use strict";var r=n(55),i=Math.max;t.exports=function(t){return i(0,r(t))}},function(t,e,n){"use strict";var r=n(56),i=Math.abs,o=Math.floor;t.exports=function(t){return isNaN(t)?0:(t=Number(t),0!==t&&isFinite(t)?r(t)*o(i(t)):t)}},function(t,e,n){"use strict";t.exports=n(57)()?Math.sign:n(58)},function(t,e){"use strict";t.exports=function(){var t=Math.sign;return"function"!=typeof t?!1:1===t(10)&&-1===t(-20)}},function(t,e){"use strict";t.exports=function(t){return t=Number(t),isNaN(t)||0===t?t:t>0?1:-1}},function(t,e){"use strict";var n=Object.prototype.toString,r=n.call("");t.exports=function(t){return"string"==typeof t||t&&"object"==typeof t&&(t instanceof String||n.call(t)===r)||!1}},function(t,e,n){"use strict";var r=n(61),i=Array.prototype.forEach,o=Array.prototype.splice;t.exports=function(t){i.call(arguments,function(t){var e=r.call(this,t);-1!==e&&o.call(this,e,1)},this)}},function(t,e,n){"use strict";var r=n(62),i=n(54),o=n(35),s=Array.prototype.indexOf,a=Object.prototype.hasOwnProperty,u=Math.abs,c=Math.floor;t.exports=function(t){var e,n,l,f;if(!r(t))return s.apply(this,arguments);for(n=i(o(this).length),l=arguments[1],l=isNaN(l)?0:l>=0?c(l):i(this.length)-c(u(l)),e=l;n>e;++e)if(a.call(this,e)&&(f=this[e],r(f)))return e;return-1}},function(t,e,n){"use strict";t.exports=n(63)()?Number.isNaN:n(64)},function(t,e){"use strict";t.exports=function(){var t=Number.isNaN;return"function"!=typeof t?!1:!t({})&&t(NaN)&&!t(34)}},function(t,e){"use strict";t.exports=function(t){return t!==t}},function(t,e,n){"use strict";var r=n(66);t.exports=function(t){if(!r(t))throw new TypeError(t+" is not an Object");return t}},function(t,e,n){"use strict";var r=n(33),i={"function":!0,object:!0};t.exports=function(t){return r(t)&&i[typeof t]||!1}},function(t,e,n){var r=n(25),i=n(68),o=n(70);o.readTemplateFile=function(t){var e=document.getElementById(t);return e?e.innerHTML.trim():"Couldn't find template: "+t};var s,a=document.createDocumentFragment(),u=document.createElement("body"),c=[];t.exports={render:function(t){i(t)&&(t=[t]);var e,n,r,l,f,h,p=t.length;for(e=0;p>e;++e)if(n=t[e],n.startTag.parentNode){f=[],r={},r[n.model]=n.data;for(var d in n.globals)r.hasOwnProperty(d)===!1&&(r[d]=n.globals[d]);for(n.template||(n.template=o.parse(o.readTemplateFile(n.templateId))),h=n.endTag.previousSibling,l=h;l&&l!==n.startTag;)h=l.previousSibling,l.parentNode.removeChild(l),l=h;for(u.innerHTML=n.template.render(r),l=u.firstChild;l;)a.appendChild(l),f.push(l),l=u.firstChild;n.startTag.parentNode.insertBefore(a,n.startTag.nextSibling),c.push(f)}clearTimeout(s),s=setTimeout(function(){var t=[];c.forEach(function(e){t=t.concat(e)}.bind(this)),c=[],this.emit("render",t)}.bind(this))}},r(t.exports)},function(t,e,n){function r(t){return"object"==typeof t&&i(t)&&!Array.isArray(t)&&!(t instanceof RegExp)&&!(t instanceof String)&&!(t instanceof Number)}var i=n(69);t.exports=r},function(t,e){function n(t){return void 0!==t&&null!==t}t.exports=n},function(t,e,n){var r={author:"Matt McCray ",version:"1.3.2",readTemplateFile:function(t){throw"This liquid context does not allow includes."},registerFilters:function(t){r.Template.registerFilter(t)},parse:function(t){return r.Template.parse(t)}};r.extensions={},r.extensions.object={},r.extensions.object.update=function(t){for(var e in t)this[e]=t[e];return this},r.extensions.object.hasKey=function(t){return!!this[t]},r.extensions.object.hasValue=function(t){for(var e in this)if(this[e]==t)return!0;return!1},r.extensions.object.isEmpty=function(t){if(!t||""===r.extensions.stringTools.strip(t.toString()))return!0;if(t.length&&t.length>0)return!1;if("number"==typeof t)return!1;for(var e in t)if(t[e])return!1;return!0},r.extensions.stringTools={},r.extensions.stringTools.capitalize=function(t){return t.charAt(0).toUpperCase()+t.substring(1).toLowerCase()},r.extensions.stringTools.strip=function(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")},r.extensions.arrayTools={},r.extensions.arrayTools.last=function(t){return t[t.length-1]},r.extensions.arrayTools.indexOf=function(t,e){for(var n=0;no;o++)o in t&&(r[o]=e.call(i,t[o],o,t));return r},r.extensions.arrayTools.flatten=function(t){for(var e=t.length,n=[],r=0;e>r;r++)t[r]instanceof Array?n=n.concat(t[r]):n.push(t[r]);return n},r.extensions.arrayTools.each=function(t,e){var n=t.length;if("function"!=typeof e)throw"Liquid.extensions.arrayTools.each requires first argument to be a function";for(var r=arguments[2],i=0;n>i;i++)i in t&&e.call(r,t[i],i,t);return null},r.extensions.arrayTools.include=function(t,e){t.length;return r.extensions.arrayTools.indexOf(t,e)>=0},function(){var t=!1,e=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){},this.Class.extend=function(n){function r(){!t&&this.init&&this.init.apply(this,arguments)}var i=this.prototype;t=!0;var o=new this;t=!1;for(var s in n)o[s]="function"==typeof n[s]&&"function"==typeof i[s]&&e.test(n[s])?function(t,e){return function(){var n=this._super;this._super=i[t];var r=e.apply(this,arguments);return this._super=n,r}}(s,n[s]):n[s];return r.prototype=o,r.prototype.constructor=r,r.extend=arguments.callee,r}}.call(r),r.Tag=r.Class.extend({init:function(t,e,n){this.tagName=t,this.markup=e,this.nodelist=this.nodelist||[],this.parse(n)},parse:function(t){},render:function(t){return""}}),r.Block=r.Tag.extend({init:function(t,e,n){this.blockName=t,this.blockDelimiter="end"+this.blockName,this._super(t,e,n)},parse:function(t){this.nodelist||(this.nodelist=[]),this.nodelist.length=0;var e=t.shift();for(t.push("");t.length;){if(/^\{\%/.test(e)){var n=e.match(/^\{\%\s*(\w+)\s*(.*)?\%\}$/);if(!n)throw"Tag '"+e+"' was not properly terminated with: %}";if(this.blockDelimiter==n[1])return void this.endTag();n[1]in r.Template.tags?this.nodelist.push(new r.Template.tags[n[1]](n[1],n[2],t)):this.unknownTag(n[1],n[2],t)}else/^\{\{/.test(e)?this.nodelist.push(this.createVariable(e)):this.nodelist.push(e);e=t.shift()}this.assertMissingDelimitation()},endTag:function(){},unknownTag:function(t,e,n){switch(t){case"else":throw this.blockName+" tag does not expect else tag";case"end":throw"'end' is not a valid delimiter for "+this.blockName+" tags. use "+this.blockDelimiter;default:throw"Unknown tag: "+t}},createVariable:function(t){var e=t.match(/^\{\{(.*)\}\}$/);if(e)return new r.Variable(e[1]);throw"Variable '"+t+"' was not properly terminated with: }}"},render:function(t){return this.renderAll(this.nodelist,t)},renderAll:function(t,e){return r.extensions.arrayTools.map(t||[],function(t,n){var r="";try{r=t.render?t.render(e):t}catch(i){r=e.handleError(i)}return r})},assertMissingDelimitation:function(){throw this.blockName+" tag was never closed"}}),r.Document=r.Block.extend({init:function(t){this.blockDelimiter=[],this.parse(t)},assertMissingDelimitation:function(){}}),r.Strainer=r.Class.extend({init:function(t){this.context=t},respondTo:function(t){return t=t.toString(),t.match(/^__/)?!1:r.extensions.arrayTools.include(r.Strainer.requiredMethods,t)?!1:t in this}}),r.Strainer.filters={},r.Strainer.globalFilter=function(t){for(var e in t)r.Strainer.filters[e]=t[e]},r.Strainer.requiredMethods=["respondTo","context"],r.Strainer.create=function(t){var e=new r.Strainer(t);for(var n in r.Strainer.filters)e[n]=r.Strainer.filters[n];return e},r.Context=r.Class.extend({init:function(t,e,n){this.scopes=[t?t:{}],this.registers=e?e:{},this.errors=[],this.rethrowErrors=n,this.strainer=r.Strainer.create(this)},get:function(t){return this.resolve(t)},set:function(t,e){this.scopes[0][t]=e},hasKey:function(t){return this.resolve(t)?!0:!1},push:function(){var t={};return this.scopes.unshift(t),t},merge:function(t){return r.extensions.object.update.call(this.scopes[0],t)},pop:function(){if(1==this.scopes.length)throw"Context stack error";return this.scopes.shift()},stack:function(t,e){var n=null;this.push();try{n=t.apply(e?e:this.strainer)}finally{this.pop()}return n},invoke:function(t,e){if(this.strainer.respondTo(t)){var n=this.strainer[t].apply(this.strainer,e);return n}return 0==e.length?null:e[0]},resolve:function(t){switch(t){case null:case"nil":case"null":case"":return null;case"true":return!0;case"false":return!1;case"blank":case"empty":return"";default:if(/^'(.*)'$/.test(t))return t.replace(/^'(.*)'$/,"$1");if(/^"(.*)"$/.test(t))return t.replace(/^"(.*)"$/,"$1");if(/^(\d+)$/.test(t))return parseInt(t.replace(/^(\d+)$/,"$1"));if(/^(\d[\d\.]+)$/.test(t))return parseFloat(t.replace(/^(\d[\d\.]+)$/,"$1"));if(/^\((\S+)\.\.(\S+)\)$/.test(t)){var e=t.match(/^\((\S+)\.\.(\S+)\)$/),n=parseInt(e[1]),r=parseInt(e[2]),i=[];if(isNaN(n)){var o=this.resolve(e[1]);if(n=parseInt(o),isNaN(n))throw new Error("Incorrect param for range: "+t)}if(isNaN(r)){var s=this.resolve(e[2]);if(r=parseInt(s),isNaN(r))throw new Error("Incorrect param for range: "+t)}for(var a=r-n+1,u=0;a>u;u++)i.push(u+n);return i}var c=this.variable(t);return c}},findVariable:function(t){for(var e=0;e"}}),r.Condition.operators={"==":function(t,e){return t==e},"=":function(t,e){return t==e},"!=":function(t,e){return t!=e},"<>":function(t,e){return t!=e},"<":function(t,e){return e>t},">":function(t,e){return t>e},"<=":function(t,e){return e>=t},">=":function(t,e){return t>=e},contains:function(t,e){return t?"[object Array]"===Object.prototype.toString.call(t)?r.extensions.arrayTools.indexOf(t,e)>=0:t.match(e):!1},hasKey:function(t,e){return r.extensions.object.hasKey.call(t,e)},hasValue:function(t,e){return r.extensions.object.hasValue.call(t,e)}},r.ElseCondition=r.Condition.extend({isElse:!0,evaluate:function(t){return!0},toString:function(){return""}}),r.Drop=r.Class.extend({setContext:function(t){this.context=t},beforeMethod:function(t){},invokeDrop:function(t){var e=this.beforeMethod();return!e&&t in this&&(e=this[t].apply(this)),e},hasKey:function(t){return!0}});var i=function(t){if("function"!=typeof t)throw"Object.each requires first argument to be a function";var e=0,n=arguments[1];for(var r in this){var i=this[r],o=[r,i];o.key=r,o.value=i,t.call(n,o,e,this),e++}return null};r.Template.registerTag("assign",r.Tag.extend({tagSyntax:/((?:\(?[\w\-\.\[\]]\)?)+)\s*=\s*(.+)/,init:function(t,e,n){var r=e.match(this.tagSyntax);if(!r)throw"Syntax error in 'assign' - Valid syntax: assign [var] = [source]";this.to=r[1],this.from=r[2],this._super(t,e,n)},render:function(t){var e=new r.Variable(this.from);return r.extensions.arrayTools.last(t.scopes)[this.to.toString()]=e.render(t),""}})),r.Template.registerTag("cache",r.Block.extend({tagSyntax:/(\w+)/,init:function(t,e,n){var r=e.match(this.tagSyntax);if(!r)throw"Syntax error in 'cache' - Valid syntax: cache [var]";this.to=r[1],this._super(t,e,n)},render:function(t){var e=this._super(t);return r.extensions.arrayTools.last(t.scopes)[this.to]=r.extensions.arrayTools.flatten([e]).join(""),""}})),r.Template.registerTag("capture",r.Block.extend({tagSyntax:/(\w+)/,init:function(t,e,n){var r=e.match(this.tagSyntax);if(!r)throw"Syntax error in 'capture' - Valid syntax: capture [var]";this.to=r[1],this._super(t,e,n)},render:function(t){var e=this._super(t);return r.extensions.arrayTools.last(t.scopes)[this.to.toString()]=r.extensions.arrayTools.flatten([e]).join(""),""}})),r.Template.registerTag("case",r.Block.extend({tagSyntax:/("[^"]+"|'[^']+'|[^\s,|]+)/,tagWhenSyntax:/("[^"]+"|'[^']+'|[^\s,|]+)(?:(?:\s+or\s+|\s*\,\s*)("[^"]+"|'[^']+'|[^\s,|]+.*))?/,init:function(t,e,n){this.blocks=[],this.nodelist=[];var r=e.match(this.tagSyntax);if(!r)throw"Syntax error in 'case' - Valid syntax: case [condition]";this.left=r[1],this._super(t,e,n)},unknownTag:function(t,e,n){switch(t){case"when":this.recordWhenCondition(e);break;case"else":this.recordElseCondition(e);break;default:this._super(t,e,n)}},render:function(t){var e=this,n=[],i=!0;return t.stack(function(){for(var o=0;oa-z_]+)?\s*("[^"]+"|'[^']+'|[^\s,|]+)?/,init:function(t,e,n){this.nodelist=[],this.blocks=[],this.pushBlock("if",e),this._super(t,e,n)},unknownTag:function(t,e,n){r.extensions.arrayTools.include(["elsif","else"],t)?this.pushBlock(t,e):this._super(t,e,n)},render:function(t){var e=this,n="";return t.stack(function(){for(var r=0;r0;){var a=i.shift(),o=i.shift().match(this.tagSyntax);if(!o)throw"Syntax Error in tag '"+t+"' - Valid syntax: "+t+" [expression]";var u=new r.Condition(o[1],o[2],o[3]);u[a](s),s=u}n=s}n.attach([]),this.blocks.push(n),this.nodelist=n.attachment}})),r.Template.registerTag("ifchanged",r.Block.extend({render:function(t){var e=this,n="";return t.stack(function(){var r=e.renderAll(e.nodelist,t).join("");r!=t.registers.ifchanged&&(n=r,t.registers.ifchanged=n)}),n}})),r.Template.registerTag("include",r.Tag.extend({tagSyntax:/((?:"[^"]+"|'[^']+'|[^\s,|]+)+)(\s+(?:with|for)\s+((?:"[^"]+"|'[^']+'|[^\s,|]+)+))?/,init:function(t,e,n){var i=(e||"").match(this.tagSyntax);if(!i)throw"Error in tag 'include' - Valid syntax: include '[template]' (with|for) [object|collection]";this.templateName=i[1],this.templateNameVar=this.templateName.substring(1,this.templateName.length-1),this.variableName=i[3],this.attributes={};var o=e.match(/(\w*?)\s*\:\s*("[^"]+"|'[^']+'|[^\s,|]+)/g);o&&r.extensions.arrayTools.each(o,function(t){t=t.split(":"),this.attributes[r.extensions.stringTools.strip(t[0])]=r.extensions.stringTools.strip(t[1])},this),this._super(t,e,n)},render:function(t){var e=this,n=r.readTemplateFile(t.get(this.templateName)),o=r.parse(n),s=t.get(this.variableName||this.templateNameVar),a="";return t.stack(function(){e.attributes.each=i,e.attributes.each(function(e){t.set(e.key,t.get(e.value))}),s instanceof Array?a=r.extensions.arrayTools.map(s,function(n){return t.set(e.templateNameVar,n),o.render(t)}):(t.set(e.templateNameVar,s),a=o.render(t))}),a=r.extensions.arrayTools.flatten([a]).join("")}})),r.Template.registerTag("unless",r.Template.tags["if"].extend({render:function(t){var e=this,n="";return t.stack(function(){var r=e.blocks[0];if(!r.evaluate(t))return void(n=e.renderAll(r.attachment,t));for(var i=1;i":">","<":"<",'"':""","'":"'"},size:function(t){ +return t.length?t.length:0},downcase:function(t){return t.toString().toLowerCase()},upcase:function(t){return t.toString().toUpperCase()},capitalize:function(t){return r.extensions.stringTools.capitalize(t.toString())},escape:function(t){var e=this;return t.replace(/[&<>"']/g,function(t){return e._HTML_ESCAPE_MAP[t]})},h:function(t){var e=this;return t.replace(/[&<>"']/g,function(t){return e._HTML_ESCAPE_MAP[t]})},"default":function(t,e){return r.extensions.object.isEmpty(t)?e:t},truncate:function(t,e,n){if(!t||""==t)return"";e=e||50,n=n||"...";t.slice(0,e);return t.length>e?t.slice(0,e)+n:t},truncatewords:function(t,e,n){if(!t||""==t)return"";e=parseInt(e||15),n=n||"...";var r=t.toString().split(" "),i=Math.max(e,0);return r.length>i?r.slice(0,i).join(" ")+n:t},truncate_words:function(t,e,n){if(!t||""==t)return"";e=parseInt(e||15),n=n||"...";var r=t.toString().split(" "),i=Math.max(e,0);return r.length>i?r.slice(0,i).join(" ")+n:t},strip_html:function(t){return t.toString().replace(/<.*?>/g,"")},strip_newlines:function(t){return t.toString().replace(/\n/g,"")},join:function(t,e){return e=e||" ",t.join(e)},split:function(t,e){return e=e||" ",t.split(e)},sort:function(t){return t.sort()},reverse:function(t){return t.reverse()},replace:function(t,e,n){return n=n||"",t.toString().replace(new RegExp(e,"g"),n)},replace_first:function(t,e,n){return n=n||"",t.toString().replace(new RegExp(e,""),n)},newline_to_br:function(t){return t.toString().replace(/\n/g,"
\n")},date:function(t,e){var n;return t instanceof Date&&(n=t),n instanceof Date||"now"!=t||(n=new Date),n instanceof Date||"number"!=typeof t||(n=new Date(1e3*t)),n instanceof Date||"string"!=typeof t||(n=new Date(Date.parse(t))),n instanceof Date?n.strftime(e):t},first:function(t){return t[0]},last:function(t){return t=t,t[t.length-1]},minus:function(t,e){return(Number(t)||0)-(Number(e)||0)},plus:function(t,e){return(Number(t)||0)+(Number(e)||0)},times:function(t,e){return(Number(t)||0)*(Number(e)||0)},divided_by:function(t,e){return(Number(t)||0)/(Number(e)||0)},modulo:function(t,e){return(Number(t)||0)%(Number(e)||0)},map:function(t,e){t=t||[];for(var n=[],r=0;r<']|&(?!([a-zA-Z]+|(#\d+));)/g,function(t){return e._HTML_ESCAPE_MAP[t]})},remove:function(t,e){return t.toString().replace(new RegExp(e,"g"),"")},remove_first:function(t,e){return t.toString().replace(e,"")},prepend:function(t,e){return""+(e||"").toString()+(t||"").toString()},append:function(t,e){return""+(t||"").toString()+(e||"").toString()}}),(new Date).strftime||!function(){Date.ext={},Date.ext.util={},Date.ext.util.xPad=function(t,e,n){for("undefined"==typeof n&&(n=10);parseInt(t,10)1;n/=10)t=e.toString()+t;return t.toString()},Date.prototype.locale="en-GB",document.getElementsByTagName("html")&&document.getElementsByTagName("html")[0].lang&&(Date.prototype.locale=document.getElementsByTagName("html")[0].lang),Date.ext.locales={},Date.ext.locales.en={a:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],A:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],B:["January","February","March","April","May","June","July","August","September","October","November","December"],c:"%a %d %b %Y %T %Z",p:["AM","PM"],P:["am","pm"],x:"%d/%m/%y",X:"%T"},"undefined"!=typeof JSON?Date.ext.locales["en-US"]=JSON.parse(JSON.stringify(Date.ext.locales.en)):Date.ext.locales["en-US"]=Date.ext.locales.en,Date.ext.locales["en-US"].c="%a %d %b %Y %r %Z",Date.ext.locales["en-US"].x="%D",Date.ext.locales["en-US"].X="%r",Date.ext.locales["en-GB"]=Date.ext.locales.en,Date.ext.locales["en-AU"]=Date.ext.locales["en-GB"],Date.ext.formats={a:function(t){return Date.ext.locales[t.locale].a[t.getDay()]},A:function(t){return Date.ext.locales[t.locale].A[t.getDay()]},b:function(t){return Date.ext.locales[t.locale].b[t.getMonth()]},B:function(t){return Date.ext.locales[t.locale].B[t.getMonth()]},c:"toLocaleString",C:function(t){return Date.ext.util.xPad(parseInt(t.getFullYear()/100,10),0)},d:["getDate","0"],e:["getDate"," "],g:function(t){return Date.ext.util.xPad(parseInt(Date.ext.util.G(t)/100,10),0)},G:function(t){var e=t.getFullYear(),n=parseInt(Date.ext.formats.V(t),10),r=parseInt(Date.ext.formats.W(t),10);return r>n?e++:0===r&&n>=52&&e--,e},H:["getHours","0"],I:function(t){var e=t.getHours()%12;return Date.ext.util.xPad(0===e?12:e,0)},j:function(t){var e=t-new Date(""+t.getFullYear()+"/1/1 GMT");e+=6e4*t.getTimezoneOffset();var n=parseInt(e/6e4/60/24,10)+1;return Date.ext.util.xPad(n,0,100)},m:function(t){return Date.ext.util.xPad(t.getMonth()+1,0)},M:["getMinutes","0"],p:function(t){return Date.ext.locales[t.locale].p[t.getHours()>=12?1:0]},P:function(t){return Date.ext.locales[t.locale].P[t.getHours()>=12?1:0]},S:["getSeconds","0"],u:function(t){var e=t.getDay();return 0===e?7:e},U:function(t){var e=parseInt(Date.ext.formats.j(t),10),n=6-t.getDay(),r=parseInt((e+n)/7,10);return Date.ext.util.xPad(r,0)},V:function(t){var e=parseInt(Date.ext.formats.W(t),10),n=new Date(""+t.getFullYear()+"/1/1").getDay(),r=e+(n>4||1>=n?0:1);return 53==r&&new Date(""+t.getFullYear()+"/12/31").getDay()<4?r=1:0===r&&(r=Date.ext.formats.V(new Date(""+(t.getFullYear()-1)+"/12/31"))),Date.ext.util.xPad(r,0)},w:"getDay",W:function(t){var e=parseInt(Date.ext.formats.j(t),10),n=7-Date.ext.formats.u(t),r=parseInt((e+n)/7,10);return Date.ext.util.xPad(r,0,10)},y:function(t){return Date.ext.util.xPad(t.getFullYear()%100,0)},Y:"getFullYear",z:function(t){var e=t.getTimezoneOffset(),n=Date.ext.util.xPad(parseInt(Math.abs(e/60),10),0),r=Date.ext.util.xPad(e%60,0);return(e>0?"-":"+")+n+r},Z:function(t){return t.toString().replace(/^.*\(([^)]+)\)$/,"$1")},"%":function(t){return"%"}},Date.ext.aggregates={c:"locale",D:"%m/%d/%y",h:"%b",n:"\n",r:"%I:%M:%S %p",R:"%H:%M",t:" ",T:"%H:%M:%S",x:"locale",X:"locale"},Date.ext.aggregates.z=Date.ext.formats.z(new Date),Date.ext.aggregates.Z=Date.ext.formats.Z(new Date),Date.ext.unsupported={},Date.prototype.strftime=function(t){this.locale in Date.ext.locales||(this.locale.replace(/-[a-zA-Z]+$/,"")in Date.ext.locales?this.locale=this.locale.replace(/-[a-zA-Z]+$/,""):this.locale="en-GB");for(var e=this;t.match(/%[cDhnrRtTxXzZ]/);)t=t.replace(/%([cDhnrRtTxXzZ])/g,function(t,n){var r=Date.ext.aggregates[n];return"locale"==r?Date.ext.locales[e.locale][n]:r});var n=t.replace(/%([aAbBCdegGHIjmMpPSuUVwWyY%])/g,function(t,n){var r=Date.ext.formats[n];return"string"==typeof r?e[r]():"function"==typeof r?r.call(e,e):"object"==typeof r&&"string"==typeof r[0]?Date.ext.util.xPad(e[r[0]](),r[1]):n});return e=null,n}}();/*! + * Cross-Browser Split 1.1.1 + * Copyright 2007-2012 Steven Levithan + * Available under the MIT License + * ECMAScript compliant, uniform cross-browser split method + */ +var o;o=o||function(t){var e,n=String.prototype.split,r=/()??/.exec("")[1]===t;return e=function(e,i,o){if("[object RegExp]"!==Object.prototype.toString.call(i))return n.call(e,i,o);var s,a,u,c,l=[],f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.extended?"x":"")+(i.sticky?"y":""),h=0,i=new RegExp(i.source,f+"g");for(e+="",r||(s=new RegExp("^"+i.source+"$(?!\\s)",f)),o=o===t?-1>>>0:o>>>0;(a=i.exec(e))&&(u=a.index+a[0].length,!(u>h&&(l.push(e.slice(h,a.index)),!r&&a.length>1&&a[0].replace(s,function(){for(var e=1;e1&&a.index=o)));)i.lastIndex===a.index&&i.lastIndex++;return h===e.length?(c||!i.test(""))&&l.push(""):l.push(e.slice(h)),l.length>o?l.slice(0,o):l},String.prototype.split=function(t,n){return e(this,t,n)},e}(),"undefined"!=typeof t&&t.exports&&(e=t.exports=r),e.Liquid=r},function(t,e,n){var r=n(20);t.exports=function(){return{init:function(t){this.events=t||{},r.debug("Init event map",t),this.observer=new MutationObserver(function(t){t.forEach(function(t){for(var e=0;ec;++c){var l=this.parseView(i[c],t,e);l&&(o.push(l),n===!0&&(a.debug("Render view immediately",l),l.loadData(!0)))}return a.debug("Views for %s",e,o),o},parseView:function(t,e,n){var s,a,u,c,l=t.data.trim().replace(/,/g,"").replace(/:/g,"").split(" ");l.length>1&&(s=i(l[1]),a=document.getElementById(s));var f=a?a.getAttribute("data"):null,h=a?a.getAttribute("app"):null;if(!h||-1===h.indexOf(n))return null;if(l.length>3&&"with"===l[2])u=i(l[3]),c=void 0,r(u)&&(u=parseInt(u,10));else if(l.length>3){c={},u=void 0;for(var p=2;pa;a++){var c=s[a];Object.getOwnPropertyDescriptor(o,c),r[c]=o[c]}}return r}t.exports=n},function(t,e,n){var r=n(76),i=n(97),o=n(96);t.exports={collections:[],register:function(t,e){this.collections[t]=e},get:function(t){var e=this.collections[t];return e?e:a}},t.exports.register("product",i),t.exports.register("wishlist",o),t.exports.register("shared_wishlist",r);var s={then:function(){return this},"catch":function(){return this}},a={get:function(){return s},getAll:function(){return s}}},function(t,e,n){var r=n(77),i=n(23),o=n(25),s=n(42),a=n(82),u=n(96),c=n(20);t.exports={items:[],load:function(){if(this.apiPromise&&this._loaded)return this.apiPromise;var t=window.location.pathname.split("/"),e=t[t.length-1];return c.debug("Load shared wishlists.",e),this.apiPromise=new Promise(function(t,n){c.debug("Load shared wishlist data from server"),r.load(e).then(function(e){c.debug("Shared wishlist loaded.",e),this.setData([e.data]),t(this.items),this.emit("load"),this._loaded=!0}.bind(this))["catch"](function(t){c.error(t),this.apiPromise=null,this._loaded=!1,n(t)}.bind(this))}.bind(this)),this.apiPromise},setData:function(t){this.items=t,this.parseModels(this.items)},parseModels:function(t){0===t.length&&t.push({products:[]}),t.forEach(function(t){a(t,u),t.read_only=!0,s(t,this)}.bind(this)),u.on("change",function(t){this.emit("change",this.items[0])}.bind(this))},get:function(t){return this.load(t)},getItem:function(t){return this.items.length<1?Promise.reject(new Error("Not found")):Promise.resolve(this.items[0].get(t))},getProduct:function(t){var e,n,r,i=this.items.length;for(e=0;i>e;++e)if(n=this.items[e],r=n.findOne({id:parseInt(t,10)}))return r;return null}},i(t.exports),o(t.exports)},function(t,e,n){var r=n(23),i=n(78);t.exports={init:function(t){this.config=t,i.config=t},load:function(t){var e=["shared-wishlist"];return t&&e.push(t),i.fetch(i.url(e),i.options())}},r(t.exports)},function(t,e,n){var r=n(23),i=window.fetch,o=n(79),s=n(20);t.exports={config:{},fetch:function(t,e){return s.debug("Fetch %s with",t,e),i(t,e).then(this.status).then(this.json).then(this.successful)},status:function(t){if(304===t.status)return Promise.resolve("unchanged");if(t.status>=200&&t.status<300)return Promise.resolve(t);var e=new Error(t.statusText);return e.status=t.status,Promise.reject(e)},json:function(t){return t.json?t.json():t},successful:function(t){return"string"==typeof t?Promise.resolve(t):t.success===!0?Promise.resolve(t):Promise.reject(new Error(t.message))},url:function(t){var e=[this.config.app.host,"shop",this.config.shop.permanent_domain?this.config.shop.permanent_domain:this.config.shop.domain];return e.concat(t).join("/")},options:function(t,e){t||(t="get");var n={method:t,headers:{"Content-Type":"application/json","X-Appmate-AFK":this.config.affiliate,"X-Appmate-SID":o.getSessionId(),"X-Appmate-CID":o.getCustomerId(),"X-Appmate-TKV":this.config.version}};return e&&(n.body=JSON.stringify(e)),n}},r(t.exports)},function(t,e,n){const r=n(23),i=n(80),o=n(19).TinyStore,s=n(81);var a=n(20);t.exports={init:function(t){this.storage=new o("appmate-session"),this.config=t,this.storage.session.cache||(a.debug("Init session cache"),this.storage.session.cache={}),!this.config.customer&&this.getCustomerId()&&this.clear(),this.setState(this.getSessionId()||this.createTempId(),this.config.customer||!1)},save:function(){if(this.isEnabled())try{this.storage.save()}catch(t){console.log("Failed caching wishlist data."),console.log(t)}},clear:function(){this.storage.clear(),this.storage.session.cache={},this.storage.session.state={},this.save()},cache:s(function(t,e){if("undefined"==typeof e){a.debug("Load %s from cache with",t);var n=this.storage.session.cache[t];return"undefined"==typeof n&&(n={}),n}a.debug("Save %s to cache.",t),this.storage.session.cache[t]={data:e,time:Date.now()},this.save()},50,{leading:!0,trailing:!0}),clearCache:function(){this.storage.session.cache={},this.save()},setState:function(t,e){this.storage.session.state={sid:t,cid:e},a.debug("Set state:",this.storage.session.state),this.save()},getCustomerId:function(){return this.isEnabled()&&this.hasState()?this.storage.session.state.cid:!1},getSessionId:function(){return this.isEnabled()&&this.hasState()?this.storage.session.state.sid:!1},isEnabled:function(){return this.storage.enabled},isLoggedIn:function(){return Boolean(this.config.customer)},hasState:function(){return Boolean(this.storage.session.state)},setCookie:function(t,e,n){"string"==typeof n&&(n=i(n));var r=new Date(Date.now()+n),o="expires="+r.toUTCString();document.cookie=t+"="+e+"; "+o+"; path=/"},getCookie:function(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r1e4)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*a;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function r(t){return t>=c?Math.round(t/c)+"d":t>=u?Math.round(t/u)+"h":t>=a?Math.round(t/a)+"m":t>=s?Math.round(t/s)+"s":t+"ms"}function i(t){return o(t,c,"day")||o(t,u,"hour")||o(t,a,"minute")||o(t,s,"second")||t+" ms"}function o(t,e,n){return e>t?void 0:1.5*e>t?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var s=1e3,a=60*s,u=60*a,c=24*u,l=365.25*c;t.exports=function(t,e){return e=e||{},"string"==typeof t?n(t):e["long"]?i(t):r(t)}},function(t,e){(function(e){function n(t,e,n){function i(e){var n=g,r=m;return g=m=void 0,S=e,y=t.apply(r,n)}function o(t){return S=t,b=setTimeout(l,e),A?i(t):y}function u(t){var n=t-T,r=t-S,i=e-n;return E?x(i,v-r):i}function c(t){var n=t-T,r=t-S;return void 0===T||n>=e||0>n||E&&r>=v}function l(){var t=_();return c(t)?f(t):void(b=setTimeout(l,u(t)))}function f(t){return b=void 0,k&&g?i(t):(g=m=void 0,y)}function h(){void 0!==b&&clearTimeout(b),S=0,g=T=m=b=void 0}function p(){return void 0===b?y:f(_())}function d(){var t=_(),n=c(t);if(g=arguments,m=this,T=t,n){if(void 0===b)return o(T);if(E)return b=setTimeout(l,e),i(T)}return void 0===b&&(b=setTimeout(l,e)),y}var g,m,v,y,b,T,S=0,A=!1,E=!1,k=!0;if("function"!=typeof t)throw new TypeError(a);return e=s(e)||0,r(n)&&(A=!!n.leading,E="maxWait"in n,v=E?w(s(n.maxWait)||0,e):v,k="trailing"in n?!!n.trailing:k),d.cancel=h,d.flush=p,d}function r(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function i(t){return!!t&&"object"==typeof t}function o(t){return"symbol"==typeof t||i(t)&&b.call(t)==c}function s(t){if("number"==typeof t)return t;if(o(t))return u;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(l,"");var n=h.test(t);return n||p.test(t)?d(t.slice(2),n?2:8):f.test(t)?u:+t}var a="Expected a function",u=NaN,c="[object Symbol]",l=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,p=/^0o[0-7]+$/i,d=parseInt,g="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,v=g||m||Function("return this")(),y=Object.prototype,b=y.toString,w=Math.max,x=Math.min,_=function(){return v.Date.now()};t.exports=n}).call(e,function(){return this}())},function(t,e,n){function r(t,e){return t?(c(t),e||(e=t),t.read_only=!1,t.products.forEach(function(t){d(t,e)}),Object.defineProperty(t,"item_count",{configurable:!1,enumerable:!1,get:function(){return this.products.length}}),Object.defineProperty(t,"url",{configurable:!1,enumerable:!1,get:function(){var t=window.Appmate.config.wishlist.handle;return s.loginRequired()?"/account/login?wk-redirect="+encodeURIComponent(JSON.stringify({path:t})):t}}),Object.defineProperty(t,"state",{configurable:!1,enumerable:!1,get:function(){return this.item_count>0?"filled":"empty"}}),p(t,r.prototype),t.setPage(1,!0),setTimeout(function(){t.emit("change",t)}),this):void 0}function i(t,e,n){var e=Math.ceil(e/t);return n>e?n=e:1>n&&(n=1),{total:e,current:n,perPage:t}}function o(t,e,n){if(n.read_only)return!1;for(var r in e)if(e[r]!==t[r])return!0;return!1}var s=n(83),a=n(84),u=n(74),c=n(25),l=n(85),f=n(86),h=n(87),p=n(93),d=n(94),g=n(95),m=n(20);t.exports=r,r.prototype.get=function(t){return this.findOne({wishlist_item_id:t})},r.prototype.getIndex=function(t){return this.findIndex({wishlist_item_id:t})},r.prototype.findOne=function(t){return l(this.products,h(t))},r.prototype.findIndex=function(t){return f(this.products,h(t))},r.prototype.containsProduct=function(t){return f(this.products,h({id:t}))>-1},r.prototype.add=function(t,e){if(this.permaId){m.debug("Add %s (%s) to %s",t,e,this.name);var n={id:t};e&&(n.selected_variant_id=e);var r=this.findOne(n);return r||(r=d({id:t,selected_variant_id:e},this),this.products.push(r),this.emit("add:"+r.id,r),this.emit("add",r),this.emit("change",this),m.debug("Append %s to %s",t,this.name)),a.create(this.permaId,t,e).then(function(e){return m.debug("Update %s in %s",t,this.name),u(r,e.data),this.emit("change",this),r}.bind(this))["catch"](function(e){var n=this.findIndex({id:t});throw m.debug("Revert adding %s to %s at %s",t,this.name,n),n>-1&&this.products.splice(n,1),e}.bind(this))}return m.debug("Create wishlist."),s.create("My Wish List").then(function(n){return m.debug("Wishlist created",n.data),this.id=n.data.id,this.permaId=n.data.permaId,this.name=n.data.name,this.created_at=n.data.created_at,this.updated_at=n.data.updated_at,this.add(t,e)}.bind(this))},r.prototype.setPage=function(t,e){this.pages=i(window.Appmate.config.wishlist.productsPerPage,this.item_count,t),e!==!0&&this.emit("change",this)},r.prototype.updateItem=function(t,e){var n=this.get(t);if(!n)return Promise.reject(new Error("Product not found"));if(!o(n,e,this))return Promise.resolve({product:n,changed:!1});m.debug("Update Wishlist Item",t,e);var r=g.pick(n,Object.keys(e));return u(n,e),this.emit("update:"+this.permaId,n),this.emit("update",n),a.update(this.permaId,t,e).then(function(t){return Promise.resolve({product:n,changed:!0})})["catch"](function(e){throw m.debug("Revert update to %s in %s",t,this.name),u(n,r),e})},r.prototype.remove=function(t){m.debug("Remove %s from $s",t,this.name);var e=this.getIndex(t),n=this.get(t);return n&&(m.debug("Remove %s at index $s",t,e),this.products.splice(e,1),this.emit("remove:"+t,n),this.emit("remove",n),this.emit("change",this)),a.remove(this.permaId,t).then(function(t){return n})["catch"](function(r){if(404!==r.status)throw m.debug("Revert removing %s from %s",t,this.name),this.products.splice(e,0,n),this.emit("remove:"+t,n),this.emit("remove",n),this.emit("change",this),r}.bind(this))},r.prototype.removeAll=function(){return s.clear(this.permaId).then(function(t){this.products.forEach(function(t){}),this.products=[],this.emit("clear",this),this.emit("change",this)}.bind(this))}},function(t,e,n){var r=n(23),i=n(78),o=n(79);t.exports={init:function(t){this.config=t,i.config=t},load:function(t,e){var n=["wishlist"];return t&&n.push(t),e&&(n[n.length-1]+="?since="+encodeURIComponent(e)),i.fetch(i.url(n),i.options())},migrate:function(t){var e=["wishlist?migrate="+t];return i.fetch(i.url(e),i.options())},create:function(t){var e=["wishlist"],n={name:t};return i.fetch(i.url(e),i.options("post",n))},add:function(t,e){var n=["wishlist"],r={productId:parseInt(t,10),variantId:parseInt(e,10)};return i.fetch(i.url(n),i.options("post",r))},update:function(t,e){var n=["wishlist",t];return i.fetch(i.url(n),i.options("put",e))},remove:function(t){var e=["wishlist",t];return i.fetch(i.url(e),i.options("delete"))},clear:function(t){return this.update(t,{products:[]})},getShareLink:function(t,e){var n={id:t.wkShare,service:t.wkShareService,title:t.wkShareTitle||this.config.wishlist.share.title,description:t.wkShareDescription||this.config.wishlist.share.description,imageTitle:t.wkShareImageTitle||this.config.wishlist.share.imageTitle,hashTags:t.wkShareHashTags||this.config.wishlist.share.hashTags,twitterUser:t.wkShareTwitterUser||this.config.wishlist.share.twitterUser,proxy:this.config.wishlist.proxyHandle,page:this.config.wishlist.share.handle,image:t.wkShareImage||this.config.wishlist.share.image,emailBcc:this.config.wishlist.share.emailBcc},r=["id="+n.id,"service="+n.service,"title="+encodeURIComponent(n.title),"description="+encodeURIComponent(n.description),"hashTags="+encodeURIComponent(n.hashTags),"proxy="+n.proxy,"page="+n.page,"sid="+o.getSessionId(),"host="+encodeURIComponent(window.location.host)];n.imageTitle&&r.push("imageTitle="+encodeURIComponent(n.imageTitle)),n.image&&r.push("image="+encodeURIComponent(n.image)),n.twitterUser&&r.push("twitterUser="+encodeURIComponent(n.twitterUser)),"https:"===window.location.protocol&&r.push("secure=1");var i=window.location.protocol+"//"+window.location.host,s=i+n.page+"/"+n.id;switch(n.service){case"facebook":return"https://www.facebook.com/dialog/share?app_id=100282410426423&display=popup&href="+encodeURIComponent(s);case"twitter":var a="?text="+encodeURIComponent(n.description)+"&hashtags="+encodeURIComponent(n.hashTags)+"&url="+encodeURIComponent(s);return n.twitterUser&&(a+="&via="+encodeURIComponent(n.twitterUser)),encodeURI("https://twitter.com/intent/tweet")+a;case"pinterest":return encodeURI("https://pinterest.com/pin/create/button/")+"?url="+encodeURIComponent(s)+"&media="+encodeURIComponent(n.image)+"&description="+encodeURIComponent(n.description);case"whatsapp":return"https://api.whatsapp.com/send?text="+encodeURIComponent(s);case"email":var u="";return n.emailBcc&&(u="&bcc="+encodeURIComponent(n.emailBcc)),"mailto:?&subject="+encodeURIComponent(n.title)+"&body="+encodeURIComponent(n.description)+"%0A%0A"+encodeURIComponent(s)+u;default:return s}},createShareUrl:function(t,e,n,r,s,a,u,c,l){var f=["id="+t,"service="+e,"title="+encodeURIComponent(n),"description="+encodeURIComponent(r),"hashTags="+encodeURIComponent(a),"proxy="+c,"page="+l,"sid="+o.getSessionId()];s&&f.push("imageTitle="+encodeURIComponent(s)),u&&f.push("twitterUser="+encodeURIComponent(u)),"https:"===window.location.protocol&&f.push("secure=1");var h=i.url(["shared-wishlist","share","redirect"]);return h+="?"+f.join("&")},createShareLink:function(t,e,n,r,s,a,u,c){var l=["shared-wishlist"],f={id:t,title:e,description:n,hashTags:s,proxy:u,page:c,sid:o.getSessionId()};return"https:"===window.location.protocol&&(f.secure=!0),i.fetch(i.url(l),i.options("post",f))},loginRequired:function(){var t=this.config.wishlist.loginRequired,e=o.isLoggedIn(),n=o.isEnabled();return(t||!n)&&!e}},r(t.exports)},function(t,e,n){var r=n(23),i=n(78);t.exports={init:function(t){this.config=t,i.config=t},load:function(t,e){var n=["wishlist",t,"wishlist-item"];return e&&n.push(e),i.fetch(i.url(n),i.options())},create:function(t,e,n){var r=["wishlist",t,"wishlist-item"],o={productId:e,variantId:n};return i.fetch(i.url(r),i.options("post",o))},update:function(t,e,n){var r=["wishlist",t,"wishlist-item",e];return i.fetch(i.url(r),i.options("put",n))},remove:function(t,e){var n=["wishlist",t,"wishlist-item",e];return i.fetch(i.url(n),i.options("delete"))}},r(t.exports)},function(t,e,n){function r(t,e){if(o(t&&t.length)&&!i(t)){var n=s(t,e);return~n?t[n]:null}if(i(t))return e=t,function(t){if(!o(t&&t.length))throw new TypeError("list must have length property");var n=s(t,e);return~n?t[n]:null};throw new TypeError("first argument must be a list (have length) or function")}var i=n(24),o=n(69),s=n(86);t.exports=r},function(t,e,n){function r(t,e){if(!o(t&&t.length))throw new TypeError("list must have length property");if(!i(e))throw new TypeError("predicate must be a function");var n=-1;return t=Array.prototype.slice.call(t),t.some(function(r,i){return e(r,i,t)?(n=i,!0):void 0}),n}var i=n(24),o=n(69);t.exports=function(t,e){if(o(t&&t.length)&&!i(t))return r(t,e);if(i(t))return e=t,function(t){return r(t,e)};throw new TypeError("first argument must be a list (have length) or function")}},function(t,e,n){function r(t,e,n){var r=!1;return n=s(n)?n:!0,o(e)?r=Object.keys(e).every(function(r){return n?i(t[r],e[r]):t[r]===e[r]}):a(e)&&(r=e.every(function(e){return n?e in t:t.hasOwnProperty(e)})),r}var i=n(88),o=n(68),s=n(92),a=Array.isArray;t.exports=function(t,e,n){return s(e)&&(n=e,e=null),1===arguments.length||2===arguments.length&&!e?(e=t,function(t){return r(t,e,n)}):r(t,e,n)}},function(t,e,n){t.exports=n(89)},function(t,e,n){function r(t,e,n){return i(t,e)?!0:"date"===g(t)?s(t,e):"regexp"===g(t)?a(t,e):d.isBuffer(t)?f(t,e):"arguments"===g(t)?u(t,e,n):o(t,e)?"object"!==g(t)&&"object"!==g(e)&&"array"!==g(t)&&"array"!==g(e)?i(t,e):p(t,e,n):!1}/*! + * Strict (egal) equality test. Ensures that NaN always + * equals NaN and `-0` does not equal `+0`. + * + * @param {Mixed} a + * @param {Mixed} b + * @return {Boolean} equal match + */ +function i(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}/*! + * Compare the types of two given objects and + * return if they are equal. Note that an Array + * has a type of `array` (not `object`) and arguments + * have a type of `arguments` (not `array`/`object`). + * + * @param {Mixed} a + * @param {Mixed} b + * @return {Boolean} result + */ +function o(t,e){return g(t)===g(e)}/*! + * Compare two Date objects by asserting that + * the time values are equal using `saveValue`. + * + * @param {Date} a + * @param {Date} b + * @return {Boolean} result + */ +function s(t,e){return"date"!==g(e)?!1:i(t.getTime(),e.getTime())}/*! + * Compare two regular expressions by converting them + * to string and checking for `sameValue`. + * + * @param {RegExp} a + * @param {RegExp} b + * @return {Boolean} result + */ +function a(t,e){return"regexp"!==g(e)?!1:i(t.toString(),e.toString())}/*! + * Assert deep equality of two `arguments` objects. + * Unfortunately, these must be sliced to arrays + * prior to test to ensure no bad behavior. + * + * @param {Arguments} a + * @param {Arguments} b + * @param {Array} memoize (optional) + * @return {Boolean} result + */ +function u(t,e,n){return"arguments"!==g(e)?!1:(t=[].slice.call(t),e=[].slice.call(e),r(t,e,n))}/*! + * Get enumerable properties of a given object. + * + * @param {Object} a + * @return {Array} property names + */ +function c(t){var e=[];for(var n in t)e.push(n);return e}/*! + * Simple equality for flat iterable objects + * such as Arrays or Node.js buffers. + * + * @param {Iterable} a + * @param {Iterable} b + * @return {Boolean} result + */ +function l(t,e){if(t.length!==e.length)return!1;for(var n=0,r=!0;n=0;i--)if(u=o[i],!r(t[u],e[u],n))return!1;return!0}/*! + * deep-eql + * Copyright(c) 2013 Jake Luer + * MIT Licensed + */ +/*! + * Module dependencies + */ +var d,g=n(90);try{d=n(13).Buffer}catch(m){d={},d.isBuffer=function(){return!1}}/*! + * Primary Export + */ +t.exports=r},function(t,e,n){t.exports=n(91)},function(t,e){function n(t){var e=Object.prototype.toString.call(t);return i[e]?i[e]:null===t?"null":void 0===t?"undefined":t===Object(t)?"object":typeof t}function r(){this.tests={}}/*! + * type-detect + * Copyright(c) 2013 jake luer + * MIT Licensed + */ +/*! + * Primary Exports + */ +var e=t.exports=n,i={"[object Array]":"array","[object RegExp]":"regexp","[object Function]":"function","[object Arguments]":"arguments","[object Date]":"date"};e.Library=r,r.prototype.of=n,r.prototype.define=function(t,e){return 1===arguments.length?this.tests[t]:(this.tests[t]=e,this)},r.prototype.test=function(t,e){if(e===n(t))return!0;var r=this.tests[e];if(r&&"regexp"===n(r))return r.test(t);if(r&&"function"===n(r))return r(t);throw new ReferenceError('Type test "'+e+'" not defined or invalid.')}},function(t,e){function n(t){return"boolean"==typeof t}t.exports=n},function(t,e){t.exports=function(t,e){var n,r,i=Object.keys(e),o=i.length;for(n=0;o>n;++n)r=i[n],t[r]=e[r];return t}},function(t,e,n){function r(t,e){return t?(e&&(Object.defineProperty(t,"in_wishlist",{configurable:!1,enumerable:!1,get:function(){return e.containsProduct(this.id)}}),Object.defineProperty(t,"wishlist_state",{configurable:!1,enumerable:!1,get:function(){return this.in_wishlist?"added":"not-added"}})),Object.defineProperty(t,"content",{configurable:!1,enumerable:!1,get:function(){return this.description}}),Object.defineProperty(t,"price",{configurable:!1,enumerable:!1,get:function(){var t=this.selected_or_first_available_variant;return t?t.price:this.price_min}}),Object.defineProperty(t,"featured_image",{configurable:!1,enumerable:!1,get:function(){return this.images.length?this.images[0]:void 0}}),Object.defineProperty(t,"selected_variant",{configurable:!1,enumerable:!1,get:function(){return i(this.variants,o({id:this.selected_variant_id}))}}),Object.defineProperty(t,"first_available_variant",{configurable:!1,enumerable:!1,get:function(){var t=i(this.variants,o({available:!0}));return t||(t=this.variants[0]),t}}),Object.defineProperty(t,"selected_or_first_available_variant",{configurable:!1,enumerable:!1,get:function(){var t=this.selected_variant;return t?t:this.first_available_variant}}),t):void 0}var i=n(85),o=n(87);t.exports=r},function(t,e,n){var r,i;(function(){function n(t){function e(e,n,r,i,o,s){for(;o>=0&&s>o;o+=t){var a=i?i[o]:o;r=n(r,e[a],a,e)}return r}return function(n,r,i,o){r=T(r,o,4);var s=!j(n)&&_.keys(n),a=(s||n).length,u=t>0?0:a-1;return arguments.length<3&&(i=n[s?s[u]:u],u+=t),e(n,r,i,s,u,a)}}function o(t){return function(e,n,r){n=S(n,r);for(var i=P(e),o=t>0?0:i-1;o>=0&&i>o;o+=t)if(n(e[o],o,e))return o;return-1}}function s(t,e,n){return function(r,i,o){var s=0,a=P(r);if("number"==typeof o)t>0?s=o>=0?o:Math.max(o+a,s):a=o>=0?Math.min(o+1,a):o+a+1;else if(n&&o&&a)return o=n(r,i),r[o]===i?o:-1;if(i!==i)return o=e(d.call(r,s,a),_.isNaN),o>=0?o+s:-1;for(o=t>0?s:a-1;o>=0&&a>o;o+=t)if(r[o]===i)return o;return-1}}function a(t,e){var n=L.length,r=t.constructor,i=_.isFunction(r)&&r.prototype||f,o="constructor";for(_.has(t,o)&&!_.contains(e,o)&&e.push(o);n--;)o=L[n],o in t&&t[o]!==i[o]&&!_.contains(e,o)&&e.push(o)}var u=this,c=u._,l=Array.prototype,f=Object.prototype,h=Function.prototype,p=l.push,d=l.slice,g=f.toString,m=f.hasOwnProperty,v=Array.isArray,y=Object.keys,b=h.bind,w=Object.create,x=function(){},_=function(t){return t instanceof _?t:this instanceof _?void(this._wrapped=t):new _(t)};"undefined"!=typeof t&&t.exports&&(e=t.exports=_),e._=_,_.VERSION="1.8.3";var T=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)}}return function(){return t.apply(e,arguments)}},S=function(t,e,n){return null==t?_.identity:_.isFunction(t)?T(t,e,n):_.isObject(t)?_.matcher(t):_.property(t)};_.iteratee=function(t,e){return S(t,e,1/0)};var A=function(t,e){return function(n){var r=arguments.length;if(2>r||null==n)return n;for(var i=1;r>i;i++)for(var o=arguments[i],s=t(o),a=s.length,u=0;a>u;u++){var c=s[u];e&&void 0!==n[c]||(n[c]=o[c])}return n}},E=function(t){if(!_.isObject(t))return{};if(w)return w(t);x.prototype=t;var e=new x;return x.prototype=null,e},k=function(t){return function(e){return null==e?void 0:e[t]}},O=Math.pow(2,53)-1,P=k("length"),j=function(t){var e=P(t);return"number"==typeof e&&e>=0&&O>=e};_.each=_.forEach=function(t,e,n){e=T(e,n);var r,i;if(j(t))for(r=0,i=t.length;i>r;r++)e(t[r],r,t);else{var o=_.keys(t);for(r=0,i=o.length;i>r;r++)e(t[o[r]],o[r],t)}return t},_.map=_.collect=function(t,e,n){e=S(e,n);for(var r=!j(t)&&_.keys(t),i=(r||t).length,o=Array(i),s=0;i>s;s++){var a=r?r[s]:s;o[s]=e(t[a],a,t)}return o},_.reduce=_.foldl=_.inject=n(1),_.reduceRight=_.foldr=n(-1),_.find=_.detect=function(t,e,n){var r;return r=j(t)?_.findIndex(t,e,n):_.findKey(t,e,n),void 0!==r&&-1!==r?t[r]:void 0},_.filter=_.select=function(t,e,n){var r=[];return e=S(e,n),_.each(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r},_.reject=function(t,e,n){return _.filter(t,_.negate(S(e)),n)},_.every=_.all=function(t,e,n){e=S(e,n);for(var r=!j(t)&&_.keys(t),i=(r||t).length,o=0;i>o;o++){var s=r?r[o]:o;if(!e(t[s],s,t))return!1}return!0},_.some=_.any=function(t,e,n){e=S(e,n);for(var r=!j(t)&&_.keys(t),i=(r||t).length,o=0;i>o;o++){var s=r?r[o]:o;if(e(t[s],s,t))return!0}return!1},_.contains=_.includes=_.include=function(t,e,n,r){return j(t)||(t=_.values(t)),("number"!=typeof n||r)&&(n=0),_.indexOf(t,e,n)>=0},_.invoke=function(t,e){var n=d.call(arguments,2),r=_.isFunction(e);return _.map(t,function(t){var i=r?e:t[e];return null==i?i:i.apply(t,n)})},_.pluck=function(t,e){return _.map(t,_.property(e))},_.where=function(t,e){return _.filter(t,_.matcher(e))},_.findWhere=function(t,e){return _.find(t,_.matcher(e))},_.max=function(t,e,n){var r,i,o=-(1/0),s=-(1/0);if(null==e&&null!=t){t=j(t)?t:_.values(t);for(var a=0,u=t.length;u>a;a++)r=t[a],r>o&&(o=r)}else e=S(e,n),_.each(t,function(t,n,r){i=e(t,n,r),(i>s||i===-(1/0)&&o===-(1/0))&&(o=t,s=i)});return o},_.min=function(t,e,n){var r,i,o=1/0,s=1/0;if(null==e&&null!=t){t=j(t)?t:_.values(t);for(var a=0,u=t.length;u>a;a++)r=t[a],o>r&&(o=r)}else e=S(e,n),_.each(t,function(t,n,r){i=e(t,n,r),(s>i||i===1/0&&o===1/0)&&(o=t,s=i)});return o},_.shuffle=function(t){for(var e,n=j(t)?t:_.values(t),r=n.length,i=Array(r),o=0;r>o;o++)e=_.random(0,o),e!==o&&(i[o]=i[e]),i[e]=n[o];return i},_.sample=function(t,e,n){return null==e||n?(j(t)||(t=_.values(t)),t[_.random(t.length-1)]):_.shuffle(t).slice(0,Math.max(0,e))},_.sortBy=function(t,e,n){return e=S(e,n),_.pluck(_.map(t,function(t,n,r){return{value:t,index:n,criteria:e(t,n,r)}}).sort(function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(r>n||void 0===r)return-1}return t.index-e.index}),"value")};var C=function(t){return function(e,n,r){var i={};return n=S(n,r),_.each(e,function(r,o){var s=n(r,o,e);t(i,r,s)}),i}};_.groupBy=C(function(t,e,n){_.has(t,n)?t[n].push(e):t[n]=[e]}),_.indexBy=C(function(t,e,n){t[n]=e}),_.countBy=C(function(t,e,n){_.has(t,n)?t[n]++:t[n]=1}),_.toArray=function(t){return t?_.isArray(t)?d.call(t):j(t)?_.map(t,_.identity):_.values(t):[]},_.size=function(t){return null==t?0:j(t)?t.length:_.keys(t).length},_.partition=function(t,e,n){e=S(e,n);var r=[],i=[];return _.each(t,function(t,n,o){(e(t,n,o)?r:i).push(t)}),[r,i]},_.first=_.head=_.take=function(t,e,n){return null==t?void 0:null==e||n?t[0]:_.initial(t,t.length-e)},_.initial=function(t,e,n){return d.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},_.last=function(t,e,n){return null==t?void 0:null==e||n?t[t.length-1]:_.rest(t,Math.max(0,t.length-e))},_.rest=_.tail=_.drop=function(t,e,n){return d.call(t,null==e||n?1:e)},_.compact=function(t){return _.filter(t,_.identity)};var I=function(t,e,n,r){for(var i=[],o=0,s=r||0,a=P(t);a>s;s++){var u=t[s];if(j(u)&&(_.isArray(u)||_.isArguments(u))){e||(u=I(u,e,n));var c=0,l=u.length;for(i.length+=l;l>c;)i[o++]=u[c++]}else n||(i[o++]=u)}return i};_.flatten=function(t,e){return I(t,e,!1)},_.without=function(t){return _.difference(t,d.call(arguments,1))},_.uniq=_.unique=function(t,e,n,r){_.isBoolean(e)||(r=n,n=e,e=!1),null!=n&&(n=S(n,r));for(var i=[],o=[],s=0,a=P(t);a>s;s++){var u=t[s],c=n?n(u,s,t):u;e?(s&&o===c||i.push(u),o=c):n?_.contains(o,c)||(o.push(c),i.push(u)):_.contains(i,u)||i.push(u)}return i},_.union=function(){return _.uniq(I(arguments,!0,!0))},_.intersection=function(t){for(var e=[],n=arguments.length,r=0,i=P(t);i>r;r++){var o=t[r];if(!_.contains(e,o)){for(var s=1;n>s&&_.contains(arguments[s],o);s++);s===n&&e.push(o)}}return e},_.difference=function(t){var e=I(arguments,!0,!0,1);return _.filter(t,function(t){return!_.contains(e,t)})},_.zip=function(){return _.unzip(arguments)},_.unzip=function(t){for(var e=t&&_.max(t,P).length||0,n=Array(e),r=0;e>r;r++)n[r]=_.pluck(t,r);return n},_.object=function(t,e){for(var n={},r=0,i=P(t);i>r;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n},_.findIndex=o(1),_.findLastIndex=o(-1),_.sortedIndex=function(t,e,n,r){n=S(n,r,1);for(var i=n(e),o=0,s=P(t);s>o;){var a=Math.floor((o+s)/2);n(t[a])o;o++,t+=n)i[o]=t;return i};var R=function(t,e,n,r,i){if(!(r instanceof e))return t.apply(n,i);var o=E(t.prototype),s=t.apply(o,i);return _.isObject(s)?s:o};_.bind=function(t,e){if(b&&t.bind===b)return b.apply(t,d.call(arguments,1));if(!_.isFunction(t))throw new TypeError("Bind must be called on a function");var n=d.call(arguments,2),r=function(){return R(t,r,e,this,n.concat(d.call(arguments)))};return r},_.partial=function(t){var e=d.call(arguments,1),n=function(){for(var r=0,i=e.length,o=Array(i),s=0;i>s;s++)o[s]=e[s]===_?arguments[r++]:e[s];for(;r=r)throw new Error("bindAll must be passed function names");for(e=1;r>e;e++)n=arguments[e],t[n]=_.bind(t[n],t);return t},_.memoize=function(t,e){var n=function(r){var i=n.cache,o=""+(e?e.apply(this,arguments):r);return _.has(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return n.cache={},n},_.delay=function(t,e){var n=d.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},_.defer=_.partial(_.delay,_,1),_.throttle=function(t,e,n){var r,i,o,s=null,a=0;n||(n={});var u=function(){a=n.leading===!1?0:_.now(),s=null,o=t.apply(r,i),s||(r=i=null)};return function(){var c=_.now();a||n.leading!==!1||(a=c);var l=e-(c-a);return r=this,i=arguments,0>=l||l>e?(s&&(clearTimeout(s),s=null),a=c,o=t.apply(r,i),s||(r=i=null)):s||n.trailing===!1||(s=setTimeout(u,l)),o}},_.debounce=function(t,e,n){var r,i,o,s,a,u=function(){var c=_.now()-s;e>c&&c>=0?r=setTimeout(u,e-c):(r=null,n||(a=t.apply(o,i),r||(o=i=null)))};return function(){o=this,i=arguments,s=_.now();var c=n&&!r;return r||(r=setTimeout(u,e)),c&&(a=t.apply(o,i),o=i=null),a}},_.wrap=function(t,e){return _.partial(e,t)},_.negate=function(t){return function(){return!t.apply(this,arguments)}},_.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},_.after=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}},_.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),1>=t&&(e=null),n}},_.once=_.partial(_.before,2);var D=!{toString:null}.propertyIsEnumerable("toString"),L=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];_.keys=function(t){if(!_.isObject(t))return[];if(y)return y(t);var e=[];for(var n in t)_.has(t,n)&&e.push(n);return D&&a(t,e),e},_.allKeys=function(t){if(!_.isObject(t))return[];var e=[];for(var n in t)e.push(n);return D&&a(t,e),e},_.values=function(t){for(var e=_.keys(t),n=e.length,r=Array(n),i=0;n>i;i++)r[i]=t[e[i]];return r},_.mapObject=function(t,e,n){e=S(e,n);for(var r,i=_.keys(t),o=i.length,s={},a=0;o>a;a++)r=i[a],s[r]=e(t[r],r,t);return s},_.pairs=function(t){for(var e=_.keys(t),n=e.length,r=Array(n),i=0;n>i;i++)r[i]=[e[i],t[e[i]]];return r},_.invert=function(t){for(var e={},n=_.keys(t),r=0,i=n.length;i>r;r++)e[t[n[r]]]=n[r];return e},_.functions=_.methods=function(t){var e=[];for(var n in t)_.isFunction(t[n])&&e.push(n);return e.sort()},_.extend=A(_.allKeys),_.extendOwn=_.assign=A(_.keys),_.findKey=function(t,e,n){e=S(e,n);for(var r,i=_.keys(t),o=0,s=i.length;s>o;o++)if(r=i[o],e(t[r],r,t))return r},_.pick=function(t,e,n){var r,i,o={},s=t;if(null==s)return o;_.isFunction(e)?(i=_.allKeys(s),r=T(e,n)):(i=I(arguments,!1,!1,1),r=function(t,e,n){return e in n},s=Object(s));for(var a=0,u=i.length;u>a;a++){var c=i[a],l=s[c];r(l,c,s)&&(o[c]=l)}return o},_.omit=function(t,e,n){if(_.isFunction(e))e=_.negate(e);else{var r=_.map(I(arguments,!1,!1,1),String);e=function(t,e){return!_.contains(r,e)}}return _.pick(t,e,n)},_.defaults=A(_.allKeys,!0),_.create=function(t,e){var n=E(t);return e&&_.extendOwn(n,e),n},_.clone=function(t){return _.isObject(t)?_.isArray(t)?t.slice():_.extend({},t):t},_.tap=function(t,e){return e(t),t},_.isMatch=function(t,e){var n=_.keys(e),r=n.length;if(null==t)return!r;for(var i=Object(t),o=0;r>o;o++){var s=n[o];if(e[s]!==i[s]||!(s in i))return!1}return!0};var N=function(t,e,n,r){if(t===e)return 0!==t||1/t===1/e;if(null==t||null==e)return t===e;t instanceof _&&(t=t._wrapped),e instanceof _&&(e=e._wrapped);var i=g.call(t);if(i!==g.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!==+t?+e!==+e:0===+t?1/+t===1/e:+t===+e;case"[object Date]":case"[object Boolean]":return+t===+e}var o="[object Array]"===i;if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var s=t.constructor,a=e.constructor;if(s!==a&&!(_.isFunction(s)&&s instanceof s&&_.isFunction(a)&&a instanceof a)&&"constructor"in t&&"constructor"in e)return!1}n=n||[],r=r||[];for(var u=n.length;u--;)if(n[u]===t)return r[u]===e;if(n.push(t),r.push(e),o){if(u=t.length,u!==e.length)return!1;for(;u--;)if(!N(t[u],e[u],n,r))return!1}else{var c,l=_.keys(t);if(u=l.length,_.keys(e).length!==u)return!1;for(;u--;)if(c=l[u],!_.has(e,c)||!N(t[c],e[c],n,r))return!1}return n.pop(),r.pop(),!0};_.isEqual=function(t,e){return N(t,e)},_.isEmpty=function(t){return null==t?!0:j(t)&&(_.isArray(t)||_.isString(t)||_.isArguments(t))?0===t.length:0===_.keys(t).length},_.isElement=function(t){return!(!t||1!==t.nodeType)},_.isArray=v||function(t){return"[object Array]"===g.call(t)},_.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},_.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){_["is"+t]=function(e){return g.call(e)==="[object "+t+"]"}}),_.isArguments(arguments)||(_.isArguments=function(t){return _.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(_.isFunction=function(t){return"function"==typeof t||!1}),_.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},_.isNaN=function(t){return _.isNumber(t)&&t!==+t},_.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"===g.call(t)},_.isNull=function(t){return null===t},_.isUndefined=function(t){return void 0===t},_.has=function(t,e){return null!=t&&m.call(t,e)},_.noConflict=function(){return u._=c,this},_.identity=function(t){return t},_.constant=function(t){return function(){return t}},_.noop=function(){},_.property=k,_.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},_.matcher=_.matches=function(t){return t=_.extendOwn({},t),function(e){return _.isMatch(e,t)}},_.times=function(t,e,n){var r=Array(Math.max(0,t));e=T(e,n,1);for(var i=0;t>i;i++)r[i]=e(i);return r},_.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},_.now=Date.now||function(){return(new Date).getTime()};var M={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},U=_.invert(M),B=function(t){var e=function(e){return t[e]},n="(?:"+_.keys(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,e):t}};_.escape=B(M),_.unescape=B(U),_.result=function(t,e,n){var r=null==t?void 0:t[e];return void 0===r&&(r=n),_.isFunction(r)?r.call(t):r};var F=0;_.uniqueId=function(t){var e=++F+"";return t?t+e:e},_.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var q=/(.)^/,Y={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},H=/\\|'|\r|\n|\u2028|\u2029/g,z=function(t){return"\\"+Y[t]};_.template=function(t,e,n){!e&&n&&(e=n),e=_.defaults({},e,_.templateSettings);var r=RegExp([(e.escape||q).source,(e.interpolate||q).source,(e.evaluate||q).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,function(e,n,r,s,a){return o+=t.slice(i,a).replace(H,z),i=a+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":s&&(o+="';\n"+s+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var s=new Function(e.variable||"obj","_",o)}catch(a){throw a.source=o,a}var u=function(t){return s.call(this,t,_)},c=e.variable||"obj";return u.source="function("+c+"){\n"+o+"}",u},_.chain=function(t){var e=_(t);return e._chain=!0,e};var W=function(t,e){return t._chain?_(e).chain():e};_.mixin=function(t){_.each(_.functions(t),function(e){var n=_[e]=t[e];_.prototype[e]=function(){var t=[this._wrapped];return p.apply(t,arguments),W(this,n.apply(_,t))}})},_.mixin(_),_.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=l[t];_.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],W(this,n)}}),_.each(["concat","join","slice"],function(t){var e=l[t];_.prototype[t]=function(){return W(this,e.apply(this._wrapped,arguments))}}),_.prototype.value=function(){return this._wrapped},_.prototype.valueOf=_.prototype.toJSON=_.prototype.value,_.prototype.toString=function(){return""+this._wrapped},r=[],i=function(){return _}.apply(e,r),!(void 0!==i&&(t.exports=i))}).call(this)},function(t,e,n){function r(t){for(var e=new Date(1983,0,0,0).getTime(),n=0;ne&&(e=i)}return e}var i=n(83),o=n(23),s=n(25),a=n(69),u=n(42),c=n(85),l=n(86),f=n(87),h=n(79),p=n(82),d=n(20);t.exports={items:[],filter:function(){return!0},load:function(t){if(i.loginRequired())return this.setData([]),Promise.resolve(this.items);if(this.apiPromise&&this._loaded)return this.apiPromise;if(!t&&this.cachePromise)return this.cachePromise;d.debug("Load wishlists.");var e,n=this.cache();return t||!n||(d.debug("Use cached data.",n),e=JSON.stringify(n),this.setData(n),this.emit("load"),this.cachePromise=Promise.resolve(this.items),this.cacheExpired()||h.isLoggedIn())?(this.apiPromise=new Promise(function(t,o){d.debug("Load wishlist data from server");var s=!1;Array.isArray(n)&&(s=r(n)),i.load(!1,s).then(function(n){d.debug("Wishlist loaded.",n);var r=!0;if(s!==!1&&"unchanged"===n&&(r=!1),r){var i=JSON.stringify(n.data);r=e!==i}d.debug("Wishlist data changed",r),r?(this.cache(n.data),this.setData(n.data)):this.cache(this.items),t(this.items),this.emit("load"),this._loaded=!0}.bind(this))["catch"](function(t){d.error(t),this.cachePromise=null,this.apiPromise=null,this._loaded=!1,h.clearCache(),n||o(t)}.bind(this))}.bind(this)),this.cachePromise||(this.cachePromise=this.apiPromise),t?this.apiPromise:this.cachePromise):this.cachePromise},setData:function(t){t.forEach(function(t){t.products=(t.products||[]).filter(this.filter)}.bind(this)),this.items=t,this.parseModels(this.items)},parseModels:function(t){0===t.length&&t.push({products:[]}),t.forEach(function(t){p(t),u(t,this)}.bind(this))},cache:function(t){if(!a(t))return h.cache("wishlists").data;if(!Array.isArray(t))throw new Error("Collections can only cache arrays!");h.cache("wishlists",t)},cacheExpired:function(){var t=h.cache("wishlists");if(!t)return!0;var e=Date.now()-t.time;return e>2e4},cacheAll:function(){this.cache(this.items)},clearCache:function(){h.clearCache()},get:function(t){return a(t)?this.findOne({id:t}):this.findOne({})},getLocal:function(t){return c(this.items,f(t))},getAll:function(){return this.load()},findOne:function(t){return this.load().then(function(e){return c(e,f(t))})},findIndex:function(t){return this.load().then(function(e){return l(e,f(t))})},containsProduct:function(t,e){var n,r,i,o,s=this.items.length;for(n=0;s>n;++n)if(r=this.items[n],o={id:parseInt(t,10)},e&&(o.selected_variant_id=e),i=r.findIndex(o),i>-1)return!0;return!1},getProduct:function(t){var e,n,r,i=this.items.length;for(e=0;i>e;++e)if(n=this.items[e],r=n.findOne({id:parseInt(t,10)}))return r;return null},add:function(t){return i.create(t).then(function(t){return t.data})},loginRequired:function(){return i.loginRequired()}},o(t.exports),s(t.exports)},function(t,e,n){function r(){Object.keys(u).forEach(function(e){t.exports.emit("change:"+e,u[e])})}var i=n(74),o=n(23),s=n(25),a=n(96),u={};t.exports={get:function(t){return this.findOne({id:t})},getAll:function(){return Promise.resolve([])},findOne:function(t){var e=i({},t);return Object.defineProperty(e,"in_wishlist",{configurable:!1,enumerable:!1,get:function(){return a.containsProduct(this.id,this.variant)}}),Object.defineProperty(e,"wishlist_state",{configurable:!1,enumerable:!1,get:function(){return this.in_wishlist?"added":"not-added"}}),u[e.id]=e,Promise.resolve(e)}},a.on("change",r),o(t.exports),s(t.exports)},function(t,e,n){function r(t){return t?(i(t),o(t,r.prototype)):void 0}var i=n(25),o=n(93);t.exports=r,r.prototype.get=function(){return this[key]},r.prototype.set=function(t,e){return this[t]=e,this.emitChange(t),this},r.prototype.emitChange=function(t){t&&this.emit("change:"+t),this.emit("change")}},function(t,e){t.exports={load:function(t){for(var e=document.createTreeWalker(document,NodeFilter.SHOW_COMMENT,null,!1),n=[],r=e.nextNode();r;)(!t||t.test(r.data))&&n.push(r),r=e.nextNode();return n}}},function(t,e,n){function r(t,e){return t.toLowerCase().localeCompare(e.toLowerCase())}function i(t,e){return e>t?-1:t>e?1:0}function o(t,e){try{var n=parseFloat(Shopify.currency.rate);if(1===n)return t;var r=t*n;if(!e)return r;switch(Shopify.currency.active){case"EUR":return Math.ceil(r)-.05;case"JPY":return 100*Math.ceil(r/100);default:return Math.ceil(r)}}catch(i){return t}}var s=n(70),a=function(t,e){if(e){var n=t.lastIndexOf(".");-1!==n&&(t=t.substr(0,n)+"_"+e+t.substr(n))}return t};t.exports=function(t){return s.Template.registerFilter({variant_url:function(e){var n=t.globals.settings.root_url||"";return e.hidden?"":e.selected_variant?n+e.selected_variant.url:n+e.url},img_url:function(t,e,n){var r;return t.hasOwnProperty("sku")?r=t.image:t.images&&t.images.length&&(r=t.images[n||0]),r?a(r.src,e):""},variant_img_url:function(t,e,n){var r=t.selected_or_first_available_variant,i=r?r.image:null;return!i&&t.images&&t.images.length&&(i=t.images[n||0]),i?a(i.src,e):""},json:function(t){return t},stringify:function(t){return JSON.stringify(t)},reverse:function(t){return Array.isArray(t)?t.slice().reverse():t},sortNumber:function(t,e){return Array.isArray(t)?t.slice().sort(function(t,n){return t=parseFloat(t[e]),n=parseFloat(n[e]),i(t,n)}):t},sortText:function(t,e){return Array.isArray(t)?t.slice().sort(function(t,n){return t=t[e],n=n[e],"string"==typeof t&&"string"==typeof n?r(t,n):i(t,n)}):t},money:function(e,n){void 0===n&&(n=!0);var r=o(e,n),i=t.globals.settings.money_format||'${{amount}}';if(window.Shopify&&window.Shopify.formatMoney){var s=i;try{s=window.Shopify.formatMoney(100*r,s)}catch(a){}try{s=window.Shopify.formatMoney(100*r,s)}catch(a){}return s}return r},round:function(t,e){return parseFloat(t).toFixed(e)},handle:function(t){return t.toLowerCase().split(" ").filter(function(t){return t}).join("-")},langify:function(t,e){try{const n=window.langify.locale.language_id,r=t.metafields[n][e];if(r)return r}catch(i){return t[e]}return t[e]}}),{getAll:function(){return s.Strainer.filters}}}},function(t,e,n){var r=n(23),i=window.fetch;t.exports={init:function(t){this.config=t},addToCart:function(t){var e="/cart/add.js",n={method:"post",body:t,credentials:"same-origin",dataType:"json",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}};return i(e,n)},loadProduct:function(t){return i("https://"+Appmate.wk.config.shop.domain+Appmate.wk.globals.settings.root_url+"/products/"+t+".js").then(function(t){return t.json()})}},r(t.exports)},function(t,e,n){var r,i,o;!function(s,a){i=[t,n(103),n(105),n(106)],r=a,o="function"==typeof r?r.apply(e,i):r,!(void 0!==o&&(t.exports=o))}(this,function(t,e,n,r){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var c=i(e),l=i(n),f=i(r),h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===h(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=f["default"](t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c["default"]({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return u("action",t)}},{key:"defaultTarget",value:function(t){var e=u("target",t);return e?document.querySelector(e):void 0}},{key:"defaultText",value:function(t){return u("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),e}(l["default"]);t.exports=d})},function(t,e,n){var r,i,o;!function(s,a){i=[t,n(104)],r=a,o="function"==typeof r?r.apply(e,i):r,!(void 0!==o&&(t.exports=o))}(this,function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=n(e),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=i["default"](this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=i["default"](this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==("undefined"==typeof t?"undefined":o(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=a})},function(t,e){function n(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(t),r.removeAllRanges(),r.addRange(i),e=r.toString()}return e}t.exports=n},function(t,e){function n(){}n.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function r(){i.off(t,r),e.apply(n,arguments)}var i=this;return r._=e,this.on(t,r,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length; +for(r;i>r;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],i=[];if(r&&e)for(var o=0,s=r.length;s>o;o++)r[o].fn!==e&&r[o].fn._!==e&&i.push(r[o]);return i.length?n[t]=i:delete n[t],this}},t.exports=n},function(t,e,n){function r(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!a.string(e))throw new TypeError("Second argument must be a String");if(!a.fn(n))throw new TypeError("Third argument must be a Function");if(a.node(t))return i(t,e,n);if(a.nodeList(t))return o(t,e,n);if(a.string(t))return s(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function i(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function o(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}function s(t,e,n){return u(document.body,t,e,n)}var a=n(107),u=n(108);t.exports=r},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e}},function(t,e,n){function r(t,e,n,r,i){var s=o.apply(this,arguments);return t.addEventListener(n,s,i),{destroy:function(){t.removeEventListener(n,s,i)}}}function i(t,e,n,i,o){return"function"==typeof t.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return r(t,e,n,i,o)}))}function o(t,e,n,r){return function(n){n.delegateTarget=s(n.target,e),n.delegateTarget&&r.call(t,n)}}var s=n(109);t.exports=i},function(t,e){function n(t,e){for(;t&&t.nodeType!==r;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}var r=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}t.exports=n},function(t,e,n){var r,i;!function(o,s){r=s,i="function"==typeof r?r.call(e,n,e,t):r,!(void 0!==i&&(t.exports=i))}(this,function(){function t(t,e){e=e||k;var n=M.test(t)?e.getElementsByClassName(t.slice(1)):B.test(t)?e.getElementsByTagName(t):e.querySelectorAll(t);return n}function e(t){if(!E){E=k.implementation.createHTMLDocument(null);var e=E.createElement("base");e.href=k.location.href,E.head.appendChild(e)}return E.body.innerHTML=t,E.body.childNodes}function n(t){"loading"!==k.readyState?setTimeout(t):k.addEventListener("DOMContentLoaded",t)}function r(r,i){if(!r)return this;if(r.cash&&r!==O)return r;var o,s=r,a=0;if(L(r))s=N.test(r)?k.getElementById(r.slice(1)):U.test(r)?e(r):t(r,i);else if(D(r))return n(r),this;if(!s)return this;if(s.nodeType||s===O)this[0]=s,this.length=1;else for(o=this.length=s.length;o>a;a++)this[a]=s[a];return this}function i(t,e){return new r(t,e)}function o(t,e){for(var n=t.length,r=0;n>r&&e.call(t[r],t[r],r,t)!==!1;r++);}function s(t,e){var n=t&&(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector);return!!n&&n.call(t,e)}function a(t){return L(t)?s:t.cash?function(e){return t.is(e)}:function(t,e){return t===e}}function u(t){return i(j.call(t).filter(function(t,e,n){return n.indexOf(t)===e}))}function c(t){return t[q]=t[q]||{}}function l(t,e,n){return c(t)[e]=n}function f(t,e){var n=c(t);return void 0===n[e]&&(n[e]=t.dataset?t.dataset[e]:i(t).attr("data-"+e)),n[e]}function h(t,e){var n=c(t);n?delete n[e]:t.dataset?delete t.dataset[e]:i(t).removeAttr("data-"+name)}function p(t){return L(t)&&t.match(Y)}function d(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}function g(t,e){t.classList?t.classList.add(e):d(t,e)||(t.className+=" "+e)}function m(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(e,"")}function v(t,e){return parseInt(O.getComputedStyle(t[0],null)[e],10)||0}function y(t,e,n){var r=f(t,"_cashEvents")||l(t,"_cashEvents",{});r[e]=r[e]||[],r[e].push(n),t.addEventListener(e,n)}function b(t,e,n){var r,i=f(t,"_cashEvents"),s=i&&i[e];s&&(n?(t.removeEventListener(e,n),r=s.indexOf(n),r>=0&&s.splice(r,1)):(o(s,function(n){t.removeEventListener(e,n)}),s=[]))}function w(t,e){return"&"+encodeURIComponent(t)+"="+encodeURIComponent(e).replace(/%20/g,"+")}function x(t){var e=[];return o(t.options,function(t){t.selected&&e.push(t.value)}),e.length?e:null}function _(t){var e=t.selectedIndex;return e>=0?t.options[e].value:null}function T(t){var e=t.type;if(!e)return null;switch(e.toLowerCase()){case"select-one":return _(t);case"select-multiple":return x(t);case"radio":return t.checked?t.value:null;case"checkbox":return t.checked?t.value:null;default:return t.value?t.value:null}}function S(t,e,n){if(n){var r=t.childNodes[0];t.insertBefore(e,r)}else t.appendChild(e)}function A(t,e,n){var r=L(e);return!r&&e.length?void o(e,function(e){return A(t,e,n)}):void o(t,r?function(t){return t.insertAdjacentHTML(n?"afterbegin":"beforeend",e)}:function(t,r){return S(t,0===r?e:e.cloneNode(!0),n)})}var E,k=document,O=window,P=Array.prototype,j=P.slice,C=P.filter,I=P.push,R=function(){},D=function(t){return typeof t==typeof R&&t.call},L=function(t){return"string"==typeof t},N=/^#[\w-]*$/,M=/^\.[\w-]*$/,U=/<.+>/,B=/^\w+$/,F=i.fn=i.prototype=r.prototype={cash:!0,length:0,push:I,splice:P.splice,map:P.map,init:r};Object.defineProperty(F,"constructor",{value:i}),i.parseHTML=e,i.noop=R,i.isFunction=D,i.isString=L,i.extend=F.extend=function(t){t=t||{};var e=j.call(arguments),n=e.length,r=1;for(1===e.length&&(t=this,r=0);n>r;r++)if(e[r])for(var i in e[r])e[r].hasOwnProperty(i)&&(t[i]=e[r][i]);return t},i.extend({merge:function(t,e){for(var n=+e.length,r=t.length,i=0;n>i;r++,i++)t[r]=e[i];return t.length=r,t},each:o,matches:s,unique:u,isArray:Array.isArray,isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)}});var q=i.uid="_cash"+Date.now();F.extend({data:function(t,e){if(L(t))return void 0===e?f(this[0],t):this.each(function(n){return l(n,t,e)});for(var n in t)this.data(n,t[n]);return this},removeData:function(t){return this.each(function(e){return h(e,t)})}});var Y=/\S+/g;F.extend({addClass:function(t){var e=p(t);return e?this.each(function(t){o(e,function(e){g(t,e)})}):this},attr:function(t,e){if(!t)return void 0;if(L(t))return void 0===e?this[0]?this[0].getAttribute?this[0].getAttribute(t):this[0][t]:void 0:this.each(function(n){n.setAttribute?n.setAttribute(t,e):n[t]=e});for(var n in t)this.attr(n,t[n]);return this},hasClass:function(t){var e=!1,n=p(t);return n&&n.length&&this.each(function(t){return e=d(t,n[0]),!e}),e},prop:function(t,e){if(L(t))return void 0===e?this[0][t]:this.each(function(n){n[t]=e});for(var n in t)this.prop(n,t[n]);return this},removeAttr:function(t){return this.each(function(e){e.removeAttribute?e.removeAttribute(t):delete e[t]})},removeClass:function(t){if(!arguments.length)return this.attr("class","");var e=p(t);return e?this.each(function(t){o(e,function(e){m(t,e)})}):this},removeProp:function(t){return this.each(function(e){delete e[t]})},toggleClass:function(t,e){if(void 0!==e)return this[e?"addClass":"removeClass"](t);var n=p(t);return n?this.each(function(t){o(n,function(e){d(t,e)?m(t,e):g(t,e)})}):this}}),F.extend({add:function(t,e){return u(i.merge(this,i(t,e)))},each:function(t){return o(this,t),this},eq:function(t){return i(this.get(t))},filter:function(t){if(!t)return this;var e=D(t)?t:a(t);return i(C.call(this,function(n){return e(n,t)}))},first:function(){return this.eq(0)},get:function(t){return void 0===t?j.call(this):0>t?this[t+this.length]:this[t]},index:function(t){var e=t?i(t)[0]:this[0],n=t?this:i(e).parent().children();return j.call(n).indexOf(e)},last:function(){return this.eq(-1)}});var H=function(){var t=/(?:^\w|[A-Z]|\b\w)/g,e=/[\s-_]+/g;return function(n){return n.replace(t,function(t,e){return t[0===e?"toLowerCase":"toUpperCase"]()}).replace(e,"")}}(),z=function(){var t={},e=document,n=e.createElement("div"),r=n.style;return function(e){if(e=H(e),t[e])return t[e];var n=e.charAt(0).toUpperCase()+e.slice(1),i=["webkit","moz","ms","o"],s=(e+" "+i.join(n+" ")+n).split(" ");return o(s,function(n){return n in r?(t[n]=e=t[e]=n,!1):void 0}),t[e]}}();i.prefixedProp=z,i.camelCase=H,F.extend({css:function(t,e){if(L(t))return t=z(t),arguments.length>1?this.each(function(n){return n.style[t]=e}):O.getComputedStyle(this[0])[t];for(var n in t)this.css(n,t[n]);return this}}),o(["Width","Height"],function(t){var e=t.toLowerCase();F[e]=function(){return this[0].getBoundingClientRect()[e]},F["inner"+t]=function(){return this[0]["client"+t]},F["outer"+t]=function(e){return this[0]["offset"+t]+(e?v(this,"margin"+("Width"===t?"Left":"Top"))+v(this,"margin"+("Width"===t?"Right":"Bottom")):0)}}),F.extend({off:function(t,e){return this.each(function(n){return b(n,t,e)})},on:function(t,e,r,i){var o;if(!L(t)){for(var a in t)this.on(a,e,t[a]);return this}return D(e)&&(r=e,e=null),"ready"===t?(n(r),this):(e&&(o=r,r=function(t){for(var n=t.target;!s(n,e);){if(n===this)return n=!1;n=n.parentNode}n&&o.call(n,t)}),this.each(function(e){var n=r;i&&(n=function(){r.apply(this,arguments),b(e,t,n)}),y(e,t,n)}))},one:function(t,e,n){return this.on(t,e,n,!0)},ready:n,trigger:function(t,e){var n=k.createEvent("HTMLEvents");return n.data=e,n.initEvent(t,!0,!1),this.each(function(t){return t.dispatchEvent(n)})}}),F.extend({serialize:function(){var t="";return o(this[0].elements||this,function(e){if(!e.disabled&&"FIELDSET"!==e.tagName){var n=e.name;switch(e.type.toLowerCase()){case"file":case"reset":case"submit":case"button":break;case"select-multiple":var r=T(e);null!==r&&o(r,function(e){t+=w(n,e)});break;default:var i=T(e);null!==i&&(t+=w(n,i))}}}),t.substr(1)},val:function(t){return void 0===t?T(this[0]):this.each(function(e){return e.value=t})}}),F.extend({after:function(t){return i(t).insertAfter(this),this},append:function(t){return A(this,t),this},appendTo:function(t){return A(i(t),this),this},before:function(t){return i(t).insertBefore(this),this},clone:function(){return i(this.map(function(t){return t.cloneNode(!0)}))},empty:function(){return this.html(""),this},html:function(t){if(void 0===t)return this[0].innerHTML;var e=t.nodeType?t[0].outerHTML:t;return this.each(function(t){return t.innerHTML=e})},insertAfter:function(t){var e=this;return i(t).each(function(t,n){var r=t.parentNode,i=t.nextSibling;e.each(function(t){r.insertBefore(0===n?t:t.cloneNode(!0),i)})}),this},insertBefore:function(t){var e=this;return i(t).each(function(t,n){var r=t.parentNode;e.each(function(e){r.insertBefore(0===n?e:e.cloneNode(!0),t)})}),this},prepend:function(t){return A(this,t,!0),this},prependTo:function(t){return A(i(t),this,!0),this},remove:function(){return this.each(function(t){return t.parentNode.removeChild(t)})},text:function(t){return void 0===t?this[0].textContent:this.each(function(e){return e.textContent=t})}});var W=k.documentElement;return F.extend({position:function(){var t=this[0];return{left:t.offsetLeft,top:t.offsetTop}},offset:function(){var t=this[0].getBoundingClientRect();return{top:t.top+O.pageYOffset-W.clientTop,left:t.left+O.pageXOffset-W.clientLeft}},offsetParent:function(){return i(this[0].offsetParent)}}),F.extend({children:function(t){var e=[];return this.each(function(t){I.apply(e,t.children)}),e=u(e),t?e.filter(function(e){return s(e,t)}):e},closest:function(t){return!t||this.length<1?i():this.is(t)?this.filter(t):this.parent().closest(t)},is:function(t){if(!t)return!1;var e=!1,n=a(t);return this.each(function(r){return e=n(r,t),!e}),e},find:function(e){if(!e||e.nodeType)return i(e&&this.has(e).length?e:null);var n=[];return this.each(function(r){I.apply(n,t(e,r))}),u(n)},has:function(e){var n=L(e)?function(n){return 0!==t(e,n).length}:function(t){return t.contains(e)};return this.filter(n)},next:function(){return i(this[0].nextElementSibling)},not:function(t){if(!t)return this;var e=a(t);return this.filter(function(n){return!e(n,t)})},parent:function(){var t=[];return this.each(function(e){e&&e.parentNode&&t.push(e.parentNode)}),u(t)},parents:function(t){var e,n=[];return this.each(function(r){for(e=r;e&&e.parentNode&&e!==k.body.parentNode;)e=e.parentNode,(!t||t&&s(e,t))&&n.push(e)}),u(n)},prev:function(){return i(this[0].previousElementSibling)},siblings:function(){var t=this.parent().children(),e=this[0];return t.filter(function(t){return t!==e})}}),i})},function(t,e){function n(t,e,n){const l=e.product?e.product:{},f=e.variant?e.variant:{},h=e.shareService,p=e.callback,d={hitType:"event",eventCategory:"Wishlist",eventLabel:"Wishlist King",hitCallback:p},g={id:f.sku||f.id,name:l.title,category:l.type,brand:l.vendor,variant:f.title},m={URL:"https://"+Appmate.config.shop.domain+Appmate.wk.filters.variant_url(l),Name:l.title,ProductID:l.id,VariantID:f.id,SKU:f.sku,Tags:l.tags,Brand:l.vendor,ImageURL:Appmate.wk.filters.variant_img_url(l,"1000x"),Price:parseFloat(f.price),CompareAtPrice:parseFloat(f.compare_at_price)},v={url:"https://"+Appmate.config.shop.domain+Appmate.wk.filters.variant_url(l),name:l.title,product_id:l.id,variant_id:f.id,ski:f.sku,tags:l.tags,brand:l.vendor,image_url:Appmate.wk.filters.variant_img_url(l,"1000x"),price:parseFloat(f.price),compare_at_price:parseFloat(f.compare_at_price)},y={productId:l.id,variant:f.id,productImageUrl:Appmate.wk.filters.variant_img_url(l,"1000x"),productUrl:"https://"+Appmate.config.shop.domain+Appmate.wk.filters.variant_url(l),brand:l.vendor,productName:l.title,price:parseFloat(f.price),style:f.title,category:l.type,properties:{sku:f.sku,tags:l.tags,compareAtPrice:parseFloat(f.compare_at_price)}};switch(t){case"Added Product":n.google&&s(Object.assign({eventAction:"WK Added Product"},d),g),n.facebook&&a("AddToWishlist",{value:f.price,currency:Appmate.wk.config.shop.currency,content_ids:[f.id],content_name:[l.title,f.title].join(" - "),content_category:l.type,content_type:"product",num_items:1}),n.simonData&&r("favorite",y),n.klaviyo&&o("Added To Wishlist",m),n.klaviyo&&i(),n.drip&&c("Added to wishlist",v),n.drip&&u();break;case"Removed Product":n.google&&s(Object.assign({eventAction:"WK Removed Product"},d),g),n.klaviyo&&o("Removed From Wishlist",m),n.klaviyo&&i(),n.drip&&c("Removed from wishlist",v),n.drip&&u();break;case"Added to Cart":n.google&&s(Object.assign({eventAction:"WK Added to Cart"},d),g),n.facebook&&a("AddToCart",{value:f.price,currency:Appmate.wk.config.shop.currency,content_ids:[f.id],content_name:[l.title,f.title].join(" - "),content_category:l.type,content_type:"product",num_items:1});break;case"Shared Wishlist":n.google&&s(Object.assign({eventAction:"WK Shared Wishlist ("+h+")"},d),g);break;case"Cleared Wishlist":n.google&&s(Object.assign({eventAction:"WK Cleared Wishlist"},d),g),n.klaviyo&&o("Cleared Wishlist"),n.klaviyo&&i(),n.drip&&c("Cleared wishlist"),n.drip&&u()}}function r(t,e){window.sd&&"function"==typeof window.sd.track&&window.sd.track(t,e)}function i(){const t=Appmate.wk.config.session.customer_email;t&&(window._learnq||(window._learnq=[]),Appmate.wk.collection.get().then(function(e){window._learnq.push(["identify",{$email:t,WishlistShareLink:Appmate.wk.getShareLink({wkShare:e.permaId,wkShareService:"link"}),WishlistProductIDs:e.products.map(function(t){return t.id})}])}))}function o(t,e){window._learnq||(window._learnq=[]),window._learnq.push(["track",t,e])}function s(t,e){return"function"==typeof ga&&ga.loaded?(e&&ga("ec:addProduct",e),void(t&&ga("send",t))):void(t&&t.hitCallback&&t.hitCallback())}function a(t,e){"function"==typeof fbq&&fbq("track",t,e)}function u(){const t=Appmate.wk.config.session.customer_email;t&&(window._dcq||(window._dcq=[]),Appmate.wk.collection.get().then(function(e){window._dcq.push(["identify",{email:t,wishlist_share_link:Appmate.wk.getShareLink({wkShare:e.permaId,wkShareService:"link"}),wishlist_product_ids:e.products.map(function(t){return t.id})}])}))}function c(t,e){window._dcq||(window._dcq=[]),window._dcq.push(["track",t,e])}t.exports=function(t){return function(e,r){return n(e,r,t)}}}])); \ No newline at end of file diff --git a/assets/app_wishlist-king.scss.liquid b/assets/app_wishlist-king.scss.liquid new file mode 100644 index 0000000..f67706f --- /dev/null +++ b/assets/app_wishlist-king.scss.liquid @@ -0,0 +1,852 @@ +/*/////////////////////////////////////////////////////////////////////////////*/ +/* !Style Settings */ +/*////////////////////////////////////////////////////////////////////////////*/ + +/* -- Wishlist button collection -- */ +$wk-button-collection-icon-color: currentColor; +$wk-button-collection-backgrund-color: rgba(0, 0, 0, 0); +$wk-button-collection-icon-size: 18px; + +/* -- Wishlist button product -- */ +$wk-button-product-icon-color: currentColor; +$wk-button-product-text-color: currentColor; +$wk-button-product-icon-size: 18px; +$wk-button-product-icon-padding: 0; + +/* -- Wishlist button wishlist page -- */ +$wk-button-wishlist-page-icon-color: currentColor; +$wk-button-wishlist-page-backgrund-color: rgba(0, 0, 0, 0); +$wk-button-wishlist-page-icon-size: 18px; + +/* -- Clear wishlist button (on wishlist page) -- */ +$wk-button-wishlist-clear-background: #333; +$wk-button-wishlist-clear-text-color: #fff; +$wk-button-wishlist-clear-background-hover: #333; +$wk-button-wishlist-clear-text-color-hover: #fff; + +/* -- Wishlist link (in header) -- */ +$wk-header-link-icon-color: currentColor; +$wk-header-link-icon-color-hover: currentColor; +$wk-header-link-icon-size: 18px; +$wk-header-link-icon-padding: 0; + +/* -- Wishlist page -- */ +$wk-page-price-color: #555; +$wk-page-title-color: #333; +$wk-variant-form-background: rgba(255, 255, 255, 0.95); +$wk-add-to-cart-background: #333; +$wk-add-to-cart-color: #fff; +$wk-add-to-cart-background-hover: #333; +$wk-add-to-cart-color-hover: #fff; + +/* -- Link Sharing --*/ +$link-sharing-color: #333; +$copy-link-color: #fff; +$copy-link-background: #999; + +/*/////////////////////////////////////////////////////////////////////////////*/ +/* !Mixins */ +/*////////////////////////////////////////////////////////////////////////////*/ + +@mixin wk-icon($color: #000, $icon-size: 15px, $icon-padding: 5px) { + .wk-icon { + display: inline-block; + width: $icon-size; + height: $icon-size; + padding: $icon-padding; + + svg { + overflow: visible; + width: $icon-size; + height: $icon-size; + } + } +} + +@mixin wk-button($text-color: #000, $background-color: rgba(0, 0, 0, 0)) { + width: auto; + height: auto; + background: none; + border: none; + line-height: normal; + cursor: pointer; + color: $text-color; + background: $background-color; + + display: flex; + align-content: center; + justify-content: flex-start; + flex-direction: row; + + &:focus { + outline: 0; + } +} + +@mixin wk-icon-button( + $color, + $backgrund-color, + $icon-size: 15px, + $icon-padding: 5px +) { + @include wk-button(#000, $backgrund-color); + @include wk-icon($color, $icon-size, $icon-padding); + + .wk-label { + display: none; + } + + border-radius: 0; + padding: 0; + margin: 0; +} + +@mixin wk-text-button( + $icon-color, + $text-color, + $icon-size: 15px, + $icon-padding: 5px +) { + @include wk-button($text-color); + @include wk-icon($icon-color, $icon-size, $icon-padding); +} + +/*/////////////////////////////////////////////////////////////////////////////*/ +/* !Buttons */ +/*////////////////////////////////////////////////////////////////////////////*/ + +.wk-disabled { + pointer-events: none; + opacity: 0.8; +} + +.wk-col-item { + position: relative; +} + +button.wk-button-collection { + @include wk-icon-button( + $wk-button-collection-icon-color, + $wk-button-collection-backgrund-color, + $wk-button-collection-icon-size + ); + display: inline-block; + + position: absolute; + z-index: 1; + + top: 0; + right: 0; + left: auto; + bottom: auto; + + line-height: 0; + width: 32px; + height: 32px; + text-align: center; + min-width: 0; + + .wk-icon-label { + margin: 0 auto; + text-transform: uppercase; + } + + .wk-icon { + display: inline-block; + padding: 0; + margin: 0 auto !important; + color: $wk-button-collection-icon-color; + } + + svg { + fill: transparent; + stroke: currentColor; + stroke-width: 1px; + } + + &.wk-remove-product { + svg { + fill: currentColor; + } + } + + .wk-label { + display: none; + } + + &:hover { + opacity: 0.8; + } + + -webkit-transition: opacity 0.3s; + transition: opacity 0.3s; +} + +* > button.wk-button-collection.wk-add-product { + // opacity: 0; +} + +*:hover > button.wk-button-collection { + opacity: 1; +} + +button.wk-button-product { + @include wk-text-button( + $wk-button-product-icon-color, + $wk-button-product-text-color, + $wk-button-product-icon-size, + $wk-button-product-icon-padding + ); + + display: block; + margin: 20px 0px 20px 0px; + padding: 0; + border: none; + border-radius: 0; + + .wk-icon { + display: inline-block; + + margin: 0 0px 0 0; + padding: 0; + + position: relative; + top: 3px; + + color: $wk-button-product-icon-color; + } + + svg { + fill: transparent; + stroke: currentColor; + stroke-width: 1px; + } + + &.wk-remove-product { + svg { + fill: currentColor; + } + } + + .wk-label { + text-align: center; + margin: 0; + display: inline; + // text-transform: uppercase; + // font-size: 13px; + font-weight: normal; + } + + &:hover { + opacity: 0.8; + } +} + +button.wk-button-wishlist-page { + @include wk-icon-button( + $wk-button-wishlist-page-icon-color, + $wk-button-wishlist-page-backgrund-color, + $wk-button-wishlist-page-icon-size + ); + display: inline-block; + + &.wk-remove-item, + &.wk-add-product { + opacity: 0; + } + + position: absolute; + z-index: 1; + + top: 8px; + right: 8px; + left: auto; + bottom: auto; + + line-height: 0; + width: 32px; + height: 32px; + text-align: center; + min-width: 0; + + .wk-icon-label { + margin: 0 auto; + text-transform: uppercase; + } + + .wk-icon { + display: inline-block; + padding: 0; + margin: 0 auto !important; + } + + .wk-label { + display: none; + } + + &:hover { + opacity: 0.8; + } + + -webkit-transition: opacity 0.3s; + transition: opacity 0.3s; +} + +*:hover > button.wk-button-wishlist-page { + opacity: 1; +} + +button.wk-button-wishlist-clear { + @include wk-button( + $wk-button-wishlist-clear-text-color, + $wk-button-wishlist-clear-background + ); + + padding: 8px 12px; + text-align: center; + margin: 5px auto; + width: auto; + min-width: 0; + box-shadow: none; + border: none; + text-shadow: none; + text-transform: initial; + border-radius: 0; + display: none; + + &:hover { + background: $wk-button-wishlist-clear-background-hover; + color: $wk-button-wishlist-clear-text-color-hover; + } +} + +/*/////////////////////////////////////////////////////////////////////////////*/ +/* !Wishlist Link in header / top bar */ +/*////////////////////////////////////////////////////////////////////////////*/ + +a.wk-link { + @include wk-icon( + $wk-header-link-icon-color, + $wk-header-link-icon-size, + $wk-header-link-icon-padding + ); + + display: inline-block; + margin: 0 20px 0 0; + + .wk-icon svg path { + transition: 0.3s all; + } + + .wk-icon { + position: relative; + top: 3px; + + width: $wk-header-link-icon-size; + height: $wk-header-link-icon-size; + + margin: 0 5px 0 0; + padding: 0; + + color: $wk-header-link-icon-color; + } + + &:hover { + .wk-icon { + color: $wk-header-link-icon-color-hover; + } + } + + svg { + fill: transparent; + stroke: currentColor; + stroke-width: 1.5px; + vertical-align: baseline; + } + + &.wk-filled { + svg { + fill: currentColor; + } + } + + .wk-label { + display: none; + } + + .wk-count { + // display: none; + // margin-left: 3px; + + &::before { + content: "("; + } + + &::after { + content: ")"; + } + } + + &.wk-empty { + .wk-count { + // display: none; + } + } +} + +.mobile-cart-nav-wrapper a.wk-link { + color: white; + + font-size: 15px; + + .wk-count { + font-size: 15px; + } +} + +@media only screen and (min-width: 750px) { + .mobile-cart-nav-wrapper a.wk-link { + display: none; + } +} + +.wk-variant-image { + max-width: 100%; + max-height: 100%; +} + +// use this for mixed aspect ratios +/* +.wk-content { + position: relative; + padding-top: 100%; + margin-bottom: 1em; +} + +.wk-variant-image { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + width: 100%; + height: 100%; + max-width: 100%; + max-height: 100%; + -o-object-fit: contain; + object-fit: contain; +} +*/ + +/*/////////////////////////////////////////////////////////////////////////////*/ +/* !Wishlist row (e.g. in cart) */ +/*////////////////////////////////////////////////////////////////////////////*/ + +.wk-wishlist-row { + position: relative; + padding: 0 15px; + margin-top: 2em; + + .wk-item { + margin: 0; + } + + .swiper-button-next.swiper-button-disabled, + .swiper-button-prev.swiper-button-disabled { + pointer-events: all; + } +} + +.wk-wishlist-row-title { + // text-align: center; +} + +/*/////////////////////////////////////////////////////////////////////////////*/ +/* !Grid System */ +/*////////////////////////////////////////////////////////////////////////////*/ + +.wk-row { + display: flex; + flex-flow: row wrap; + justify-content: flex-start; + align-items: baseline; + box-sizing: border-box; +} + +.wk-span2 { + width: 16.6666%; +} +.wk-span3 { + width: 25%; +} +.wk-span4 { + width: 33.3333%; +} +.wk-span6 { + width: 50%; +} +.wk-span12 { + width: 100%; +} + +@media (max-width: 720px) { + .wk-span2 { + width: 33.3333%; + } + .wk-span3 { + width: 50%; + } + .wk-span4 { + width: 50%; + } + .wk-item-column { + width: 50% !important; + } +} + +@media (max-width: 480px) { + .wk-span2 { + width: 100%; + } + .wk-span3 { + width: 100%; + } + .wk-span4 { + width: 100%; + } + .wk-span6 { + width: 100%; + } + .wk-item-column { + width: 100% !important; + } +} + +/*/////////////////////////////////////////////////////////////////////////////*/ +/* !Wishlist Page */ +/*////////////////////////////////////////////////////////////////////////////*/ + +h1#wk-page-title { + display: block; + text-align: center; + margin: 0 0 25px 0; + padding: 0; + border: none; +} + +.wk-wishlist-empty-note { + text-align: center; + margin-bottom: 35px; +} + +p.wk-login-note { + text-align: center; + margin-bottom: 35px; + background: rgba(0, 0, 0, 0.02); + padding: 10px; + margin-bottom: 30px; + font-style: italic; + + a { + text-decoration: underline; + } +} + +.wk-item { + position: relative; + text-align: center; + + margin: 0 10px 30px 5px; + + .wk-variant-link { + display: block; + float: none; + text-decoration: none; + color: $wk-page-title-color; + border: none; + } + + .wk-price { + color: $wk-page-price-color; + border: none; + } + + .wk-product-options { + border-bottom: none; + + .selector-wrapper { + // display: block !important; + } + + label { + display: block; + text-align: center; + } + + select { + box-sizing: border-box; + display: block; + width: 100% !important; + border-radius: 0; + margin-bottom: 10px; + } + } + + .wk-purchase-section { + margin-top: 1em; + } +} + +.wk-add-item-form { + position: absolute; + bottom: 0; + margin: 0 auto; + left: 0; + right: 0; + + background: $wk-variant-form-background; + padding: 10px; + opacity: 0; + + -webkit-transition: opacity 0.5s; + transition: opacity 0.5s; + + input.wk-add-to-cart { + box-sizing: content-box; + border: none; + margin: 0; + padding: 14px 24px; + color: $wk-add-to-cart-color; + background: $wk-add-to-cart-background; + color: $wk-add-to-cart-color; + width: auto; + min-width: 0; + height: auto; + min-height: 0; + line-height: 1; + border-radius: 0; + text-transform: initial; + -webkit-appearance: none; + appearance: none; + + &:hover { + background: $wk-add-to-cart-background-hover; + color: $wk-add-to-cart-color-hover; + } + } +} + +.wk-item:hover { + .wk-add-item-form { + opacity: 1; + } +} + +/*/////////////////////////////////////////////////////////////////////////////*/ +/* !Share Buttons */ +/*////////////////////////////////////////////////////////////////////////////*/ + +h3#wk-share-head { + font-size: 1.1em; + text-align: center; + margin: 5px 0 7px 0; + padding: 0; + text-transform: uppercase; + border: none; +} + +ul#wk-share-list { + list-style: none; + width: 100%; + margin: 0 0 50px 0; + padding: 0; + text-align: center; + + li { + display: inline-block; + margin: 0; + padding: 0 5px; + } +} + +#wk-share-link-text { + margin-top: -30px; + margin-bottom: 40px; + color: $link-sharing-color; + padding: 3px 10px; + display: none; + text-align: center; + font-size: 0.8em; + font-style: italic; + + .wk-text { + display: inline-block; + padding: 0; + margin: 0; + } + + .wk-clipboard { + margin-left: 10px; + background: $copy-link-background; + border: none; + font-size: 13px; + color: $copy-link-color; + padding: 1px 6px; + border-radius: 0px; + min-height: auto; + height: auto; + + &:focus { + outline: none; + } + } + + &.wk-visible { + display: block; + } +} + +.wk-button-share { + cursor: pointer; + + &:hover { + color: #fff; + } +} + +.resp-sharing-button__link, +.resp-sharing-button__icon { + display: inline-block; +} + +.resp-sharing-button__link { + font-size: 12px; + text-decoration: none; + color: #fff; + margin: 0; + min-height: 0; + line-height: 1; +} + +.resp-sharing-button { + transition: 25ms ease-out; + padding: 5px 8px 7px; +} + +.resp-sharing-button__icon svg { + width: 15px; + height: 15px; +} + +.resp-sharing-button span { + padding-left: 0.4em; + display: none; +} + +/* Non solid icons get a stroke */ +.resp-sharing-button__icon { + stroke: #fff; + fill: none; + + svg { + position: relative; + top: 2px; + } +} + +/* Solid icons get a fill */ +.resp-sharing-button__icon--solid { + fill: #fff; + stroke: none; +} + +.resp-sharing-button--facebook { + background-color: #333; +} + +.resp-sharing-button--pinterest { + background-color: #333; +} + +.resp-sharing-button--twitter { + background-color: #333; +} + +.resp-sharing-button--link { + background-color: #333; +} + +.resp-sharing-button--email { + background-color: #333; +} + +.resp-sharing-button--whatsapp { + background-color: #333; +} + +#wk-share-whatsapp { + display: none !important; +} + +.resp-sharing-button--facebook:hover { + background-color: #3b5998; +} + +.resp-sharing-button--pinterest:hover { + background-color: #bd081c; +} + +.resp-sharing-button--twitter:hover { + background-color: #55acee; +} + +.resp-sharing-button--link:hover { + background-color: #777; +} + +.resp-sharing-button--email:hover { + background-color: #777; +} + +.resp-sharing-button--whatsapp:hover { + background-color: #25d366; +} + +.wk-touch { + .resp-sharing-button--facebook, + .resp-sharing-button--pinterest, + .resp-sharing-button--twitter, + .resp-sharing-button--email, + .resp-sharing-button--link, + .resp-sharing-button--whatsapp { + &:hover { + background-color: #333; + } + } + + button.wk-button-collection, + button.wk-button-product, + button.wk-button-wishlist-page { + &.wk-add-product, + &.wk-remove-product, + &.wk-remove-item { + opacity: 1; + } + } + + .wk-add-item-form { + position: static; + opacity: 1; + } +} + +/*/////////////////////////////////////////////////////////////////////////////*/ +/* !Responsive Styles */ +/*////////////////////////////////////////////////////////////////////////////*/ +@media (max-width: 1024px) { + .wk-touch { + #wk-share-whatsapp { + display: inline-block !important; + } + } +} diff --git a/assets/appmate-wishlist-king.scss.liquid b/assets/appmate-wishlist-king.scss.liquid new file mode 100644 index 0000000..e9c25bb --- /dev/null +++ b/assets/appmate-wishlist-king.scss.liquid @@ -0,0 +1,823 @@ +/*/////////////////////////////////////////////////////////////////////////////*/ +/* !Style Settings */ +/*////////////////////////////////////////////////////////////////////////////*/ + +/* -- Wishlist button collection -- */ +$wk-button-collection-icon-color: currentColor; +$wk-button-collection-backgrund-color: rgba(0,0,0,0); +$wk-button-collection-icon-size: 16px; + +/* -- Wishlist button product -- */ +$wk-button-product-icon-color: currentColor; +$wk-button-product-text-color: currentColor; +$wk-button-product-icon-size: 16px; +$wk-button-product-icon-padding: 0; + +/* -- Wishlist button wishlist page -- */ +$wk-button-wishlist-page-icon-color: currentColor; +$wk-button-wishlist-page-backgrund-color: rgba(0,0,0,0); +$wk-button-wishlist-page-icon-size: 18px; + +/* -- Clear wishlist button (on wishlist page) -- */ +$wk-button-wishlist-clear-background: #333; +$wk-button-wishlist-clear-text-color: #fff; +$wk-button-wishlist-clear-background-hover: #333; +$wk-button-wishlist-clear-text-color-hover: #fff; + +/* -- Wishlist link (in header) -- */ +$wk-header-link-icon-color: currentColor; +$wk-header-link-icon-color-hover: currentColor; +$wk-header-link-icon-size: 15px; +$wk-header-link-icon-padding: 0; + +/* -- Wishlist page -- */ +$wk-page-price-color: #555; +$wk-page-title-color: #333; +$wk-variant-form-background: rgba(255,255,255,0.95); +$wk-add-to-cart-background: #333; +$wk-add-to-cart-color: #fff; +$wk-add-to-cart-background-hover: #333; +$wk-add-to-cart-color-hover: #fff; + +/* -- Link Sharing --*/ +$link-sharing-color: #333; +$copy-link-color: #fff; +$copy-link-background: #999; + +/* -- Upsell Widget --*/ +$swiper-button-color: #999; + +/*/////////////////////////////////////////////////////////////////////////////*/ +/* !Mixins */ +/*////////////////////////////////////////////////////////////////////////////*/ + +@mixin wk-hide-text { + text-indent: 100%; + white-space: nowrap; + overflow: hidden; +} + +@mixin wk-clearfix { + clear: both; + overflow: hidden; +} + +@mixin wk-icon($color: #000, $icon-size: 15px, $icon-padding: 5px) { + .wk-icon { + display: inline-block; + width: $icon-size; + height: $icon-size; + padding: $icon-padding; + + svg { + overflow: visible; + width: 100%; + height: 100%; + + path { + fill: $color; + stroke: $color; + } + } + } +} + +@mixin wk-button($text-color: #000, $background-color: rgba(0,0,0,0)) { + width: auto; + height: auto; + background: none; + border: none; + line-height: normal; + cursor: pointer; + color: $text-color; + background: $background-color; + + display: flex; + align-content: center; + justify-content: flex-start; + flex-direction: row; + + &:focus { + outline:0; + } +} + +@mixin wk-icon-button($color, $backgrund-color, $icon-size: 15px, $icon-padding: 5px) { + @include wk-button(#000, $backgrund-color); + @include wk-icon($color, $icon-size, $icon-padding); + + .wk-label { + display: none; + } + + {% if settings.app_wk_col_bg_shape == "square" %} + border-radius: 0; + {% elsif settings.app_wk_col_bg_shape == "circle" %} + border-radius: 50%; + {% elsif settings.app_wk_col_bg_shape == "none" %} + background: transparent; + {% endif %} + + padding: 0; + margin: 0; +} + +@mixin wk-text-button($icon-color, $text-color, $icon-size: 15px, $icon-padding: 5px) { + @include wk-button($text-color); + @include wk-icon($icon-color, $icon-size, $icon-padding); +} + + +/*/////////////////////////////////////////////////////////////////////////////*/ +/* !Buttons */ +/*////////////////////////////////////////////////////////////////////////////*/ + +.wk-disabled { + pointer-events: none; + opacity: 0.8; +} + +.wk-col-item { + position: relative; +} + +button.wk-button-collection { + @include wk-icon-button($wk-button-collection-icon-color, $wk-button-collection-backgrund-color, $wk-button-collection-icon-size); + display: inline-block; + + position: absolute; + z-index: 1; + + {% if settings.app_wk_col_bg_shape == "square" %} + top: 0; + right: 0; + left: auto; + bottom: auto; + {% else %} + top: 5px; + right: 5px; + left: auto; + bottom: auto; + {% endif %} + + line-height: 0; + width: 32px; + height: 32px; + text-align: center; + min-width: 0; + + .wk-icon-label { + margin: 0 auto; + text-transform: uppercase; + } + + .wk-icon { + display: inline-block; + padding: 0; + margin: 0 auto !important; + } + + .wk-label { + /*display: inline-block; + color: #FFF; + font-size: 22px; + text-transform: lowercase;*/ + display: none; + } + + &:hover { + opacity: .8; + } + + -webkit-transition: opacity .3s; + transition: opacity .3s; +} + +* > button.wk-button-collection.wk-add-product { + opacity: 0; +} + +*:hover > button.wk-button-collection { + opacity: 1; +} + +button.wk-button-product { + @include wk-text-button($wk-button-product-icon-color, $wk-button-product-text-color, $wk-button-product-icon-size, $wk-button-product-icon-padding); + + /* Icon and Text */ + display: block; + margin: 18px 0 0 0 !important; + padding: 0; + border: none; + border-radius: 0; + + /* Icon ONLY */ + /* background: #FFFFFF; + display: inline-block; + margin: 0 0 0 10px !important; + padding: 8px 12px !important; + width: auto; + border: 1px solid #333333; + border-radius: 0; + vertical-align: bottom;*/ + + .wk-icon { + display: inline-block; + + margin: 0 5px 0 0; + padding: 0; + + position: relative; + top: 2px; + } + + .wk-label { + text-align: center; + margin: 0; + display: inline; + text-transform: uppercase; + font-size: 13px; + font-weight: normal; + } + + &:hover { + opacity: .8; + } +} + +button.wk-button-wishlist-page { + @include wk-icon-button($wk-button-wishlist-page-icon-color, $wk-button-wishlist-page-backgrund-color, $wk-button-wishlist-page-icon-size); + display: inline-block; + + &.wk-with-hover { + opacity: 0; + } + + position: absolute; + z-index: 1; + + {% if settings.app_wk_col_bg_shape == "square" %} + top: 8px; + right: 8px; + left: auto; + bottom: auto; + {% else %} + top: 5px; + right: 5px; + left: auto; + bottom: auto; + {% endif %} + + line-height: 0; + width: 32px; + height: 32px; + text-align: center; + min-width: 0; + + .wk-icon-label { + margin: 0 auto; + text-transform: uppercase; + } + + .wk-icon { + display: inline-block; + padding: 0; + margin: 0 auto !important; + } + + .wk-label { + /*display: inline-block; + color: #FFF; + font-size: 22px; + text-transform: lowercase;*/ + display: none; + } + + &:hover { + opacity: .8; + } + + -webkit-transition: opacity .3s; + transition: opacity .3s; +} + +*:hover > button.wk-button-wishlist-page { + opacity: 1; +} + +button.wk-button-wishlist-clear { + @include wk-button($wk-button-wishlist-clear-text-color, $wk-button-wishlist-clear-background); + + padding: 8px 12px; + text-align: center; + margin: 5px auto; + width: auto; + min-width: 0; + box-shadow: none; + border: none; + text-shadow: none; + text-transform: initial; + border-radius:0; + display: none; + + &:hover { + background: $wk-button-wishlist-clear-background-hover; + color: $wk-button-wishlist-clear-text-color-hover; + } +} + + +/*/////////////////////////////////////////////////////////////////////////////*/ +/* !Wishlist Link in header / top bar */ +/*////////////////////////////////////////////////////////////////////////////*/ + +a.wk-link { + @include wk-icon($wk-header-link-icon-color, $wk-header-link-icon-size, $wk-header-link-icon-padding); + + display: inline-block; + //margin: 0 10px 0 0; + + .wk-icon svg path { + transition: 0.3s all; + } + + &:hover { + .wk-icon svg path { + fill: $wk-header-link-icon-color-hover; + stroke: $wk-header-link-icon-color-hover; + } + } + + .wk-icon { + width: $wk-header-link-icon-size; + height: $wk-header-link-icon-size; + + margin: 0 5px 0 0; + padding: 0; + } + + .wk-label { + //display: none; + } + + .wk-count { + //display: none; + } + + &.wk-empty { + .wk-count { + display: none; + } + } +} + +.wk-variant-image { + max-width: 100%; + max-height: 100%; +} + +// use this for mixed aspect ratios +/* +.wk-content { + position: relative; + padding-top: 100%; + margin-bottom: 1em; +} + +.wk-variant-image { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + width: 100%; + height: 100%; + max-width: 100%; + max-height: 100%; + -o-object-fit: contain; + object-fit: contain; +} +*/ + +/*/////////////////////////////////////////////////////////////////////////////*/ +/* !Wishlist row (e.g. in cart) */ +/*////////////////////////////////////////////////////////////////////////////*/ + +.wk-wishlist-row { + position: relative; + padding: 0 15px; + margin-top: 2em; + + .wk-item { + margin: 0; + } + + .swiper-button-next.swiper-button-disabled, + .swiper-button-prev.swiper-button-disabled { + pointer-events: all; + } +} + +.wk-wishlist-row-title { + //text-align: center; +} + +/*/////////////////////////////////////////////////////////////////////////////*/ +/* !Grid System */ +/*////////////////////////////////////////////////////////////////////////////*/ + +.wk-row { + display: flex; + flex-flow: row wrap; + justify-content: flex-start; + align-items: baseline; + box-sizing: border-box; +} + +.wk-span2 { width: 16.6666%; } +.wk-span3 { width: 25%; } +.wk-span4 { width: 33.3333%; } +.wk-span6 { width: 50%; } +.wk-span12 { width: 100%; } + +@media (max-width: 720px) { + .wk-span2 { width: 33.3333%; } + .wk-span3 { width: 50%; } + .wk-span4 { width: 50%; } + .wk-item-column { width: 50% !important; } +} + +@media (max-width: 480px) { + .wk-span2 { width: 100%; } + .wk-span3 { width: 100%; } + .wk-span4 { width: 100%; } + .wk-span6 { width: 100%; } + .wk-item-column { width: 100% !important; } +} + + +/*/////////////////////////////////////////////////////////////////////////////*/ +/* !Wishlist Page */ +/*////////////////////////////////////////////////////////////////////////////*/ + +h1#wk-page-title { + display: block; + text-align: center; + margin: 0 0 25px 0; + padding: 0; + border: none; +} + +.wk-wishlist-empty-note { + text-align: center; + margin-bottom: 35px; +} + +p.wk-login-note { + text-align: center; + margin-bottom: 35px; + background: rgba(0,0,0,.02); + padding: 10px; + margin-bottom: 30px; + font-style: italic; + + a { + text-decoration: underline; + } +} + +.wk-item { + position: relative; + text-align: center; + + margin: 0 10px 30px 5px; + + .wk-variant-link { + display: block; + float: none; + text-decoration: none; + color: $wk-page-title-color; + border: none; + } + + .wk-price { + color: $wk-page-price-color; + border: none; + } + + .wk-product-options { + border-bottom: none; + + .selector-wrapper { + //display: block !important; + } + + label { + display: block; + text-align: center; + } + + select { + box-sizing: border-box; + display: block; + width: 100% !important; + border-radius: 0; + margin-bottom: 10px; + } + } + + .wk-purchase-section { + margin-top: 1em; + } +} + +.wk-add-item-form { + position: absolute; + bottom: 0; + margin: 0 auto; + left: 0; + right: 0; + + background: $wk-variant-form-background; + padding: 10px; + opacity: 0; + + -webkit-transition: opacity .5s; + transition: opacity .5s; + + input.wk-add-to-cart { + box-sizing: content-box; + border: none; + margin: 0; + padding: 14px 24px; + color: $wk-add-to-cart-color; + background: $wk-add-to-cart-background; + color: $wk-add-to-cart-color; + width: auto; + min-width: 0; + height: auto; + min-height: 0; + line-height: 1; + border-radius: 0; + text-transform: initial; + -webkit-appearance: none; + appearance: none; + + &:hover { + background: $wk-add-to-cart-background-hover; + color: $wk-add-to-cart-color-hover; + } + } +} + +.wk-item:hover { + .wk-add-item-form { + opacity: 1; + } +} + +/*/////////////////////////////////////////////////////////////////////////////*/ +/* !Share Buttons */ +/*////////////////////////////////////////////////////////////////////////////*/ + +h3#wk-share-head { + font-size: 1.1em; + text-align: center; + margin: 5px 0 7px 0; + padding: 0; + text-transform: uppercase; + border: none; +} + +ul#wk-share-list { + list-style: none; + width: 100%; + margin: 0 0 50px 0; + padding: 0; + text-align: center; + + li { + display: inline-block; + margin: 0; + padding: 0 5px; + } +} + +#wk-share-link-text { + margin-top: -30px; + margin-bottom: 40px; + color: $link-sharing-color; + padding: 3px 10px; + display: none; + text-align: center; + font-size: .8em; + font-style: italic; + + .wk-text { + display: inline-block; + padding: 0; + margin: 0; + } + + .wk-clipboard { + margin-left: 10px; + background: $copy-link-background; + border: none; + color: $copy-link-color; + padding: 4px 7px; + border-radius: 0px; + min-height: auto; + height: auto; + + &:focus { + outline: none; + } + } + + &.wk-visible { + display: block; + } +} + +.wk-button-share { + cursor: pointer; + + &:hover { + color: #fff; + } +} + +.resp-sharing-button__link, +.resp-sharing-button__icon { + display: inline-block; +} + +.resp-sharing-button__link { + font-size: 12px; + text-decoration: none; + color: #fff; + margin: 0; + min-height: 0; + line-height: 1; +} + +.resp-sharing-button { + transition: 25ms ease-out; + padding: 5px 8px 7px; +} + +.resp-sharing-button__icon svg { + width: 15px; + height: 15px; +} + +.resp-sharing-button span { + padding-left: 0.4em; + display:none; +} + +/* Non solid icons get a stroke */ +.resp-sharing-button__icon { + stroke: #fff; + fill: none; + + svg { + position: relative; + top: 2px; + } +} + +/* Solid icons get a fill */ +.resp-sharing-button__icon--solid { + fill: #fff; + stroke: none; +} + +.resp-sharing-button--facebook { + background-color: #333; +} + +.resp-sharing-button--pinterest { + background-color: #333; +} + +.resp-sharing-button--twitter { + background-color: #333; +} + +.resp-sharing-button--link { + background-color: #333; +} + +.resp-sharing-button--email { + background-color: #333; +} + +.resp-sharing-button--whatsapp { + background-color: #333; +} + +#wk-share-whatsapp { + display: none !important; +} + +.resp-sharing-button--facebook:hover { + background-color: #3b5998; +} + +.resp-sharing-button--pinterest:hover { + background-color: #bd081c; +} + +.resp-sharing-button--twitter:hover { + background-color: #55acee; +} + +.resp-sharing-button--link:hover { + background-color: #777; +} + +.resp-sharing-button--email:hover { + background-color: #777; +} + +.resp-sharing-button--whatsapp:hover { + background-color: #25D366; +} + +.wk-touch { + .resp-sharing-button--facebook, + .resp-sharing-button--pinterest, + .resp-sharing-button--twitter, + .resp-sharing-button--email, + .resp-sharing-button--link, + .resp-sharing-button--whatsapp { + &:hover { + background-color: #333; + } + } + + button.wk-button-collection, + button.wk-button-product, + button.wk-button-wishlist-page { + &.wk-add-product, + &.wk-remove-product, + &.wk-remove-item { + opacity: 1; + } + } + + .wk-add-item-form { + position: static; + opacity: 1; + } +} + +/*/////////////////////////////////////////////////////////////////////////////*/ +/* !Upsell Widget */ +/*////////////////////////////////////////////////////////////////////////////*/ +.swiper-button-prev, +.swiper-container-rtl .swiper-button-next { + left: -24px; + background: none; + + svg { + width: 48px; + height: 48px; + fill: $swiper-button-color; + } +} + +.swiper-button-next, +.swiper-container-rtl .swiper-button-prev { + right: -24px; + background: none; + + svg { + width: 48px; + height: 48px; + fill: $swiper-button-color; + } +} + + + + +/*/////////////////////////////////////////////////////////////////////////////*/ +/* !Responsive Styles */ +/*////////////////////////////////////////////////////////////////////////////*/ +@media (max-width: 1024px) { + .wk-touch { + #wk-share-whatsapp { + display: inline-block !important; + } + } +} + +@media (max-width: 767px) { + +} + +@media (max-width: 320px) { + +} diff --git a/assets/artist-data.json b/assets/artist-data.json index 7ba496a..3d8af87 100644 --- a/assets/artist-data.json +++ b/assets/artist-data.json @@ -3,287 +3,287 @@ "What's your full name?": "Sammi Lynch", "What is the name of the piece?": "Tall Trees", "Instagram handle": "sammijlynch", - "Insta link": "https://www.instagram.com/sammijlynch", + "Insta link": "https:\/\/www.instagram.com\/sammijlynch", "Filename": "TallTrees_SammiLynch.jpg" }, { "What's your full name?": "Yogee Chandrasekaran", "What is the name of the piece?": "Before a Night Out with the Girls", "Instagram handle": "yogeechandra", - "Insta link": "https://www.instagram.com/yogeechandra", + "Insta link": "https:\/\/www.instagram.com\/yogeechandra", "Filename": "YogeeChandrasekaran_YUCSubmission_LowRes.jpg" }, { "What's your full name?": "Sam Johnson", "What is the name of the piece?": "Palm of Hand", "Instagram handle": "samjohnsn_", - "Insta link": "https://www.instagram.com/samjohnsn_", + "Insta link": "https:\/\/www.instagram.com\/samjohnsn_", "Filename": "palm_of_hand_SJ.jpg" }, { "What's your full name?": "Nicole Gureli", "What is the name of the piece?": "Carnevale", "Instagram handle": "nicolegureliart", - "Insta link": "https://www.instagram.com/nicolegureliart", + "Insta link": "https:\/\/www.instagram.com\/nicolegureliart", "Filename": "Gureli_Nicole_Carnevale_YUC.jpg" }, { "What's your full name?": "Emily Lynn Perelman", "What is the name of the piece?": "Celestial Casino", "Instagram handle": "emilylynndesign", - "Insta link": "https://www.instagram.com/emilylynndesign", + "Insta link": "https:\/\/www.instagram.com\/emilylynndesign", "Filename": "Celestial_Casino___Emily_Lynn_Perelman.jpg" }, { "What's your full name?": "Anna Niklova", "What is the name of the piece?": "Fountain", "Instagram handle": "anickart", - "Insta link": "https://www.instagram.com/anickart", + "Insta link": "https:\/\/www.instagram.com\/anickart", "Filename": "AnnaNiklova_Fountain.JPG" }, { "What's your full name?": "Ebony Rose Howard", "What is the name of the piece?": "Misty Doe", "Instagram handle": "ehoward05art", - "Insta link": "https://www.instagram.com/ehoward05art", + "Insta link": "https:\/\/www.instagram.com\/ehoward05art", "Filename": "Ebony_Rose_Howard_entry.jpg" }, { "What's your full name?": "Joshua Rush", "What is the name of the piece?": "A Sustainable Life", "Instagram handle": "j.osh.r.ush", - "Insta link": "https://www.instagram.com/j.osh.r.ush", + "Insta link": "https:\/\/www.instagram.com\/j.osh.r.ush", "Filename": "1000x1333px_VER..jpg" }, { "What's your full name?": "Alexandria Hall", "What is the name of the piece?": "Should have stayed in Spring", "Instagram handle": "alexandriaolivia", - "Insta link": "https://www.instagram.com/alexandriaolivia", + "Insta link": "https:\/\/www.instagram.com\/alexandriaolivia", "Filename": "entry.jpg" }, { "What's your full name?": "Anastacia Sholik", "What is the name of the piece?": "Dance with Tiger", "Instagram handle": "sh0lik", - "Insta link": "https://www.instagram.com/sh0lik", + "Insta link": "https:\/\/www.instagram.com\/sh0lik", "Filename": "sholik_small.jpg" }, { "What's your full name?": "Hoi Chan", "What is the name of the piece?": "Quiet Seabed", "Instagram handle": "hoichandraws", - "Insta link": "https://www.instagram.com/hoichandraws", + "Insta link": "https:\/\/www.instagram.com\/hoichandraws", "Filename": "Quiet_Seabed.jpg" }, { "What's your full name?": "Taylor Dow", "What is the name of the piece?": "Weeping Man", "Instagram handle": "taydowtaydow", - "Insta link": "https://www.instagram.com/taydowtaydow", + "Insta link": "https:\/\/www.instagram.com\/taydowtaydow", "Filename": "dow_superpanel_YUC.jpg" }, { "What's your full name?": "Emily Widdoes", "What is the name of the piece?": "Midnight Mushrooms", "Instagram handle": "emilywiddoes", - "Insta link": "https://www.instagram.com/emilywiddoes", + "Insta link": "https:\/\/www.instagram.com\/emilywiddoes", "Filename": "midnightmushrooms.jpg" }, { "What's your full name?": "Fiona Ye - FIYE", "What is the name of the piece?": "We'll Meet Again", "Instagram handle": "_fiye_", - "Insta link": "https://www.instagram.com/_fiye_", + "Insta link": "https:\/\/www.instagram.com\/_fiye_", "Filename": "FIYE_YUC_submission.jpg" }, { "What's your full name?": "Jack Holland", "What is the name of the piece?": "One Adult Please", "Instagram handle": "jckholland", - "Insta link": "https://www.instagram.com/jckholland", + "Insta link": "https:\/\/www.instagram.com\/jckholland", "Filename": "jackhollandyucsentry.jpg" }, { "What's your full name?": "Ellie Shay", "What is the name of the piece?": "Blueside", "Instagram handle": "dimpledoodles_", - "Insta link": "https://www.instagram.com/dimpledoodles_", + "Insta link": "https:\/\/www.instagram.com\/dimpledoodles_", "Filename": "8C821086_6577_45E9_A380_1B267F614929.jpeg" }, { "What's your full name?": "Alexandra Turban", "What is the name of the piece?": "A little Break", "Instagram handle": "alexandraturban", - "Insta link": "https://www.instagram.com/alexandraturban", + "Insta link": "https:\/\/www.instagram.com\/alexandraturban", "Filename": "A_little_Break_Alexandra_Turban.jpg" }, { "What's your full name?": "Colin Matthes", "What is the name of the piece?": "Essential Knowledge: Work From Home", "Instagram handle": "colinmatthes", - "Insta link": "https://www.instagram.com/colinmatthes", + "Insta link": "https:\/\/www.instagram.com\/colinmatthes", "Filename": "MatthesC_ek76_graphic.jpg" }, { "What's your full name?": "AJ HIGGINS", "What is the name of the piece?": "Magic Beans", "Instagram handle": "a.j_higgins", - "Insta link": "https://www.instagram.com/a.j_higgins", + "Insta link": "https:\/\/www.instagram.com\/a.j_higgins", "Filename": "AJHIGGINS_Magic_Beans_YUC_small.jpg" }, { "What's your full name?": "Connor Parker", "What is the name of the piece?": "Flat perspective", "Instagram handle": "connorparker.png", - "Insta link": "https://www.instagram.com/connorparker.png", + "Insta link": "https:\/\/www.instagram.com\/connorparker.png", "Filename": "Flat_perspective.jpg" }, { "What's your full name?": "Maya Halko", "What is the name of the piece?": "Submarine Fish", "Instagram handle": "m.aymo", - "Insta link": "https://www.instagram.com/m.aymo", + "Insta link": "https:\/\/www.instagram.com\/m.aymo", "Filename": "SubmarineFish_YUCsubmission_Halko.jpg" }, { "What's your full name?": "BOUCKA Fred Therence", "What is the name of the piece?": "Letter to the blackness in me", "Instagram handle": "bftlepictographe", - "Insta link": "https://www.instagram.com/bftlepictographe", + "Insta link": "https:\/\/www.instagram.com\/bftlepictographe", "Filename": "DSC_0999.jpg" }, { "What's your full name?": "Julia Feingold", "What is the name of the piece?": "Modern Day Shopping", "Instagram handle": "j_feingold", - "Insta link": "https://www.instagram.com/j_feingold", + "Insta link": "https:\/\/www.instagram.com\/j_feingold", "Filename": "Feingold_Julia_ModernDayShopping.jpg" }, { "What's your full name?": "Kiran Joan", "What is the name of the piece?": "Love Garden", "Instagram handle": "kiran.joan", - "Insta link": "https://www.instagram.com/kiran.joan", + "Insta link": "https:\/\/www.instagram.com\/kiran.joan", "Filename": "Lovegarden_KiranJoan.jpg" }, { "What's your full name?": "Charlotte MacMillan-Scott", "What is the name of the piece?": "Gas, 1950", "Instagram handle": "charlottemscott_illustration", - "Insta link": "https://www.instagram.com/charlottemscott_illustration", + "Insta link": "https:\/\/www.instagram.com\/charlottemscott_illustration", "Filename": "GAS__1950_print.jpg" }, { "What's your full name?": "Annelie Akesson", "What is the name of the piece?": "She's in Fashion", "Instagram handle": "rita_mera", - "Insta link": "https://www.instagram.com/rita_mera", + "Insta link": "https:\/\/www.instagram.com\/rita_mera", "Filename": "RoomFifty.jpg" }, { "What's your full name?": "Grace Fairley", "What is the name of the piece?": "BEST FRIENDS", "Instagram handle": "fairley_decent", - "Insta link": "https://www.instagram.com/fairley_decent", + "Insta link": "https:\/\/www.instagram.com\/fairley_decent", "Filename": "146267174_268796068106318_6743968769896244062_n.jpg" }, { "What's your full name?": "Benjamin Clark", "What is the name of the piece?": "Underwater Scene", "Instagram handle": "benclarkart", - "Insta link": "https://www.instagram.com/benclarkart", + "Insta link": "https:\/\/www.instagram.com\/benclarkart", "Filename": "Underwater_Scene.jpg" }, { "What's your full name?": "Isabell Altmaier", "What is the name of the piece?": "Jungle Cat", "Instagram handle": "Isabellaltmaier", - "Insta link": "https://www.instagram.com/Isabellaltmaier", + "Insta link": "https:\/\/www.instagram.com\/Isabellaltmaier", "Filename": "43E0626D_8A77_4F59_B0F5_D43B4BD52A8E.jpeg" }, { "What's your full name?": "Ruta Vaketaite", "What is the name of the piece?": "Playground", "Instagram handle": "rutavakk", - "Insta link": "https://www.instagram.com/rutavakk", + "Insta link": "https:\/\/www.instagram.com\/rutavakk", "Filename": "0CC1820D_4223_40BB_BEFC_8B056FAC86E7.jpeg" }, { "What's your full name?": "Tsai Mu Ling", "What is the name of the piece?": "Dreamy organic", "Instagram handle": "moooling", - "Insta link": "https://www.instagram.com/moooling", + "Insta link": "https:\/\/www.instagram.com\/moooling", "Filename": "YUC_Tsai_Mu_Ling.jpg" }, { "What's your full name?": "Sam Moore", "What is the name of the piece?": "Neighbour", "Instagram handle": "smamuel.design", - "Insta link": "https://www.instagram.com/smamuel.design", + "Insta link": "https:\/\/www.instagram.com\/smamuel.design", "Filename": "SAM_MOORE_YUC_NEIGHBOUR.jpg" }, { "What's your full name?": "Vicki Wirkijowski", "What is the name of the piece?": "Finger Puppet (BFF)", "Instagram handle": "victoriawirkijowski", - "Insta link": "https://www.instagram.com/victoriawirkijowski", + "Insta link": "https:\/\/www.instagram.com\/victoriawirkijowski", "Filename": "finger_puppet_BFF_wirkijowski.jpeg" }, { "What's your full name?": "Louis Bartlett", "What is the name of the piece?": "Refracted Audio Volumes", "Instagram handle": "_louisbartlett_", - "Insta link": "https://www.instagram.com/_louisbartlett_", + "Insta link": "https:\/\/www.instagram.com\/_louisbartlett_", "Filename": "YUC_SUBMISSION.jpg" }, { "What's your full name?": "Julia Lowe", "What is the name of the piece?": "The Solo Parent", "Instagram handle": "julia_peculiar_", - "Insta link": "https://www.instagram.com/julia_peculiar_", + "Insta link": "https:\/\/www.instagram.com\/julia_peculiar_", "Filename": "Solo_Mum.jpg" }, { "What's your full name?": "Sara Nye", "What is the name of the piece?": "Putting Down Roots", "Instagram handle": "sundaygrandma", - "Insta link": "https://www.instagram.com/sundaygrandma", + "Insta link": "https:\/\/www.instagram.com\/sundaygrandma", "Filename": "Nye_Sara_YUC_submission.jpg" }, { "What's your full name?": "Amogh Bhatnagar", "What is the name of the piece?": "Untitled with Agate and Tentacles", "Instagram handle": "_amoghbhatnagar_", - "Insta link": "https://www.instagram.com/_amoghbhatnagar_", + "Insta link": "https:\/\/www.instagram.com\/_amoghbhatnagar_", "Filename": "Amogh_Collage_Artwork_2.jpg" }, { "What's your full name?": "Lois Laryea", "What is the name of the piece?": "Self portrait", "Instagram handle": "lois.laryea", - "Insta link": "https://www.instagram.com/lois.laryea", + "Insta link": "https:\/\/www.instagram.com\/lois.laryea", "Filename": "EA69B0EC_5D64_4C18_ACBE_75C2217CAD52.jpeg" }, { "What's your full name?": "Florence Poppy Dennis", "What is the name of the piece?": "Good Morning Raccoon", "Instagram handle": "florencepoppydennis", - "Insta link": "https://www.instagram.com/florencepoppydennis", + "Insta link": "https:\/\/www.instagram.com\/florencepoppydennis", "Filename": "GOOD_MORNING___FLORENCE_POPPY_ENTRY_FOR_ROOM_FIFTY.jpg" }, { "What's your full name?": "Giovanni Gastaldi", "What is the name of the piece?": "The Drummer", "Instagram handle": "giovanni.gastaldi", - "Insta link": "https://www.instagram.com/giovanni.gastaldi", + "Insta link": "https:\/\/www.instagram.com\/giovanni.gastaldi", "Filename": "Giovanni.Gastaldi_The_Drummer.jpg" }, { "What's your full name?": "Andrei Popa", "What is the name of the piece?": "Quarantine Alphabet", "Instagram handle": "probablyanillustrator", - "Insta link": "https://www.instagram.com/probablyanillustrator", + "Insta link": "https:\/\/www.instagram.com\/probablyanillustrator", "Filename": "QuarantineAlphabet_Andrei_Popa.jpg" } ] \ No newline at end of file diff --git a/assets/dmr.js b/assets/dmr.js index 9856bc5..4195555 100644 --- a/assets/dmr.js +++ b/assets/dmr.js @@ -4,8 +4,8 @@ Spurit.Discountmanager.settings = { enabled: true, badge: {}, enabledCollection: false, - collectionPageSelector: ".product__image", - productPageSelector: ".product-single__photo", + collectionPageSelector: "", + productPageSelector: "", productIds: [], variantIds: [] }; \ No newline at end of file diff --git a/assets/infinite-scroll.pkgd.min.js b/assets/infinite-scroll.pkgd.min.js new file mode 100644 index 0000000..b0381cb --- /dev/null +++ b/assets/infinite-scroll.pkgd.min.js @@ -0,0 +1,17 @@ +/*! + * Infinite Scroll PACKAGED v4.0.1 + * Automatically add next page + * + * Licensed GPLv3 for open source use + * or Infinite Scroll Commercial License for commercial use + * + * https://infinite-scroll.com + * Copyright 2018-2020 Metafizzy + */ +!function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,(function(t,e){let i=t.console,n=void 0===i?function(){}:function(t){i.error(t)};return function(i,o,s){(s=s||e||t.jQuery)&&(o.prototype.option||(o.prototype.option=function(t){t&&(this.options=Object.assign(this.options||{},t))}),s.fn[i]=function(t,...e){return"string"==typeof t?function(t,e,o){let r,l=`$().${i}("${e}")`;return t.each((function(t,h){let a=s.data(h,i);if(!a)return void n(`${i} not initialized. Cannot call method ${l}`);let c=a[e];if(!c||"_"==e.charAt(0))return void n(`${l} is not a valid method`);let u=c.apply(a,o);r=void 0===r?u:r})),void 0!==r?r:t}(this,t,e):(r=t,this.each((function(t,e){let n=s.data(e,i);n?(n.option(r),n._init()):(n=new o(e,r),s.data(e,i,n))})),this);var r})}})),function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},n=i[t]=i[t]||[];return n.includes(e)||n.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let n=i.indexOf(e);return-1!=n&&i.splice(n,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let n=this._onceEvents&&this._onceEvents[t];for(let o of i){n&&n[o]&&(this.off(t,o),delete n[o]),o.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t):t.fizzyUIUtils=e(t)}(this,(function(t){let e={extend:function(t,e){return Object.assign(t,e)},modulo:function(t,e){return(t%e+e)%e},makeArray:function(t){if(Array.isArray(t))return t;if(null==t)return[];return"object"==typeof t&&"number"==typeof t.length?[...t]:[t]},removeFrom:function(t,e){let i=t.indexOf(e);-1!=i&&t.splice(i,1)},getParent:function(t,e){for(;t.parentNode&&t!=document.body;)if((t=t.parentNode).matches(e))return t},getQueryElement:function(t){return"string"==typeof t?document.querySelector(t):t},handleEvent:function(t){let e="on"+t.type;this[e]&&this[e](t)},filterFindElements:function(t,i){return(t=e.makeArray(t)).filter((t=>t instanceof HTMLElement)).reduce(((t,e)=>{if(!i)return t.push(e),t;e.matches(i)&&t.push(e);let n=e.querySelectorAll(i);return t=t.concat(...n)}),[])},debounceMethod:function(t,e,i){i=i||100;let n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){clearTimeout(this[o]);let t=arguments;this[o]=setTimeout((()=>{n.apply(this,t),delete this[o]}),i)}},docReady:function(t){let e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},toDashed:function(t){return t.replace(/(.)([A-Z])/g,(function(t,e,i){return e+"-"+i})).toLowerCase()}},i=t.console;return e.htmlInit=function(n,o){e.docReady((function(){let s="data-"+e.toDashed(o),r=document.querySelectorAll(`[${s}]`),l=t.jQuery;[...r].forEach((t=>{let e,r=t.getAttribute(s);try{e=r&&JSON.parse(r)}catch(e){return void(i&&i.error(`Error parsing ${s} on ${t.className}: ${e}`))}let h=new n(t,e);l&&l.data(t,o,h)}))}))},e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("fizzy-ui-utils")):t.InfiniteScroll=e(t,t.EvEmitter,t.fizzyUIUtils)}(window,(function(t,e,i){let n=t.jQuery,o={};function s(t,e){let r=i.getQueryElement(t);if(r){if((t=r).infiniteScrollGUID){let i=o[t.infiniteScrollGUID];return i.option(e),i}this.element=t,this.options={...s.defaults},this.option(e),n&&(this.$element=n(this.element)),this.create()}else console.error("Bad element for InfiniteScroll: "+(r||t))}s.defaults={},s.create={},s.destroy={};let r=s.prototype;Object.assign(r,e.prototype);let l=0;r.create=function(){let t=this.guid=++l;if(this.element.infiniteScrollGUID=t,o[t]=this,this.pageIndex=1,this.loadCount=0,this.updateGetPath(),this.getPath&&this.getPath()){this.updateGetAbsolutePath(),this.log("initialized",[this.element.className]),this.callOnInit();for(let t in s.create)s.create[t].call(this)}else console.error("Disabling InfiniteScroll")},r.option=function(t){Object.assign(this.options,t)},r.callOnInit=function(){let t=this.options.onInit;t&&t.call(this,this)},r.dispatchEvent=function(t,e,i){this.log(t,i);let o=e?[e].concat(i):i;if(this.emitEvent(t,o),!n||!this.$element)return;let s=t+=".infiniteScroll";if(e){let i=n.Event(e);i.type=t,s=i}this.$element.trigger(s,i)};let h={initialized:t=>`on ${t}`,request:t=>`URL: ${t}`,load:(t,e)=>`${t.title||""}. URL: ${e}`,error:(t,e)=>`${t}. URL: ${e}`,append:(t,e,i)=>`${i.length} items. URL: ${e}`,last:(t,e)=>`URL: ${e}`,history:(t,e)=>`URL: ${e}`,pageIndex:function(t,e){return`current page determined to be: ${t} from ${e}`}};r.log=function(t,e){if(!this.options.debug)return;let i=`[InfiniteScroll] ${t}`,n=h[t];n&&(i+=". "+n.apply(this,e)),console.log(i)},r.updateMeasurements=function(){this.windowHeight=t.innerHeight;let e=this.element.getBoundingClientRect();this.top=e.top+t.scrollY},r.updateScroller=function(){let e=this.options.elementScroll;if(e){if(this.scroller=!0===e?this.element:i.getQueryElement(e),!this.scroller)throw new Error(`Unable to find elementScroll: ${e}`)}else this.scroller=t},r.updateGetPath=function(){let t=this.options.path;if(!t)return void console.error(`InfiniteScroll path option required. Set as: ${t}`);let e=typeof t;"function"!=e?"string"==e&&t.match("{{#}}")?this.updateGetPathTemplate(t):this.updateGetPathSelector(t):this.getPath=t},r.updateGetPathTemplate=function(t){this.getPath=()=>{let e=this.pageIndex+1;return t.replace("{{#}}",e)};let e=t.replace(/(\\\?|\?)/,"\\?").replace("{{#}}","(\\d\\d?\\d?)"),i=new RegExp(e),n=location.href.match(i);n&&(this.pageIndex=parseInt(n[1],10),this.log("pageIndex",[this.pageIndex,"template string"]))};let a=[/^(.*?\/?page\/?)(\d\d?\d?)(.*?$)/,/^(.*?\/?\?page=)(\d\d?\d?)(.*?$)/,/(.*?)(\d\d?\d?)(?!.*\d)(.*?$)/],c=s.getPathParts=function(t){if(t)for(let e of a){let i=t.match(e);if(i){let[,t,e,n]=i;return{begin:t,index:e,end:n}}}};r.updateGetPathSelector=function(t){let e=document.querySelector(t);if(!e)return void console.error(`Bad InfiniteScroll path option. Next link not found: ${t}`);let i=e.getAttribute("href"),n=c(i);if(!n)return void console.error(`InfiniteScroll unable to parse next link href: ${i}`);let{begin:o,index:s,end:r}=n;this.isPathSelector=!0,this.getPath=()=>o+(this.pageIndex+1)+r,this.pageIndex=parseInt(s,10)-1,this.log("pageIndex",[this.pageIndex,"next link"])},r.updateGetAbsolutePath=function(){let t=this.getPath();if(t.match(/^http/)||t.match(/^\//))return void(this.getAbsolutePath=this.getPath);let{pathname:e}=location,i=t.match(/^\?/),n=e.substring(0,e.lastIndexOf("/")),o=i?e:n+"/";this.getAbsolutePath=()=>o+this.getPath()},s.create.hideNav=function(){let t=i.getQueryElement(this.options.hideNav);t&&(t.style.display="none",this.nav=t)},s.destroy.hideNav=function(){this.nav&&(this.nav.style.display="")},r.destroy=function(){this.allOff();for(let t in s.destroy)s.destroy[t].call(this);delete this.element.infiniteScrollGUID,delete o[this.guid],n&&this.$element&&n.removeData(this.element,"infiniteScroll")},s.throttle=function(t,e){let i,n;return e=e||200,function(){let o=+new Date,s=arguments,r=()=>{i=o,t.apply(this,s)};i&&o{if(!i.ok){let t=new Error(i.statusText);return this.onPageError(t,o,i),{response:i}}return i[t]().then((s=>("text"==t&&e&&(s=n.parseFromString(s,"text/html")),204==i.status?(this.lastPageReached(s,o),{body:s,response:i}):this.onPageLoad(s,o,i))))})).catch((t=>{this.onPageError(t,o)}));return this.dispatchEvent("request",null,[o,s]),s},i.onPageLoad=function(t,e,i){return this.options.append||(this.isLoading=!1),this.pageIndex++,this.loadCount++,this.dispatchEvent("load",null,[t,e,i]),this.appendNextPage(t,e,i)},i.appendNextPage=function(t,e,i){let{append:n,responseBody:s,domParseResponse:r}=this.options;if(!("text"==s&&r)||!n)return{body:t,response:i};let l=t.querySelectorAll(n),h={body:t,response:i,items:l};if(!l||!l.length)return this.lastPageReached(t,e),h;let a=o(l),c=()=>(this.appendItems(l,a),this.isLoading=!1,this.dispatchEvent("append",null,[t,e,l,i]),h);return this.options.outlayer?this.appendOutlayerItems(a,c):c()},i.appendItems=function(t,e){t&&t.length&&(function(t){let e=t.querySelectorAll("script");for(let t of e){let e=document.createElement("script"),i=t.attributes;for(let t of i)e.setAttribute(t.name,t.value);e.innerHTML=t.innerHTML,t.parentNode.replaceChild(e,t)}}(e=e||o(t)),this.element.appendChild(e))},i.appendOutlayerItems=function(i,n){let o=e.imagesLoaded||t.imagesLoaded;return o?new Promise((function(t){o(i,(function(){let e=n();t(e)}))})):(console.error("[InfiniteScroll] imagesLoaded required for outlayer option"),void(this.isLoading=!1))},i.onAppendOutlayer=function(t,e,i){this.options.outlayer.appended(i)},i.checkLastPage=function(t,e){let i,{checkLastPage:n,path:o}=this.options;if(n){if("function"==typeof o){if(!this.getPath())return void this.lastPageReached(t,e)}"string"==typeof n?i=n:this.isPathSelector&&(i=o),i&&t.querySelector&&(t.querySelector(i)||this.lastPageReached(t,e))}},i.lastPageReached=function(t,e){this.canLoad=!1,this.dispatchEvent("last",null,[t,e])},i.onPageError=function(t,e,i){return this.isLoading=!1,this.canLoad=!1,this.dispatchEvent("error",null,[t,e,i]),t},e.create.prefill=function(){if(!this.options.prefill)return;let t=this.options.append;t?(this.updateMeasurements(),this.updateScroller(),this.isPrefilling=!0,this.on("append",this.prefill),this.once("error",this.stopPrefill),this.once("last",this.stopPrefill),this.prefill()):console.error(`append option required for prefill. Set as :${t}`)},i.prefill=function(){let t=this.getPrefillDistance();this.isPrefilling=t>=0,this.isPrefilling?(this.log("prefill"),this.loadNextPage()):this.stopPrefill()},i.getPrefillDistance=function(){return this.options.elementScroll?this.scroller.clientHeight-this.scroller.scrollHeight:this.windowHeight-this.element.clientHeight},i.stopPrefill=function(){this.log("stopPrefill"),this.off("append",this.prefill)},e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,i){let n=e.prototype;return Object.assign(e.defaults,{scrollThreshold:400}),e.create.scrollWatch=function(){this.pageScrollHandler=this.onPageScroll.bind(this),this.resizeHandler=this.onResize.bind(this);let t=this.options.scrollThreshold;(t||0===t)&&this.enableScrollWatch()},e.destroy.scrollWatch=function(){this.disableScrollWatch()},n.enableScrollWatch=function(){this.isScrollWatching||(this.isScrollWatching=!0,this.updateMeasurements(),this.updateScroller(),this.on("last",this.disableScrollWatch),this.bindScrollWatchEvents(!0))},n.disableScrollWatch=function(){this.isScrollWatching&&(this.bindScrollWatchEvents(!1),delete this.isScrollWatching)},n.bindScrollWatchEvents=function(e){let i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.pageScrollHandler),t[i]("resize",this.resizeHandler)},n.onPageScroll=e.throttle((function(){this.getBottomDistance()<=this.options.scrollThreshold&&this.dispatchEvent("scrollThreshold")})),n.getBottomDistance=function(){let e,i;return this.options.elementScroll?(e=this.scroller.scrollHeight,i=this.scroller.scrollTop+this.scroller.clientHeight):(e=this.top+this.element.clientHeight,i=t.scrollY+this.windowHeight),e-i},n.onResize=function(){this.updateMeasurements()},i.debounceMethod(e,"onResize",150),e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,i){let n=e.prototype;Object.assign(e.defaults,{history:"replace"});let o=document.createElement("a");return e.create.history=function(){if(!this.options.history)return;o.href=this.getAbsolutePath(),(o.origin||o.protocol+"//"+o.host)==location.origin?this.options.append?this.createHistoryAppend():this.createHistoryPageLoad():console.error(`[InfiniteScroll] cannot set history with different origin: ${o.origin} on ${location.origin} . History behavior disabled.`)},n.createHistoryAppend=function(){this.updateMeasurements(),this.updateScroller(),this.scrollPages=[{top:0,path:location.href,title:document.title}],this.scrollPage=this.scrollPages[0],this.scrollHistoryHandler=this.onScrollHistory.bind(this),this.unloadHandler=this.onUnload.bind(this),this.scroller.addEventListener("scroll",this.scrollHistoryHandler),this.on("append",this.onAppendHistory),this.bindHistoryAppendEvents(!0)},n.bindHistoryAppendEvents=function(e){let i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.scrollHistoryHandler),t[i]("unload",this.unloadHandler)},n.createHistoryPageLoad=function(){this.on("load",this.onPageLoadHistory)},e.destroy.history=n.destroyHistory=function(){this.options.history&&this.options.append&&this.bindHistoryAppendEvents(!1)},n.onAppendHistory=function(t,e,i){if(!i||!i.length)return;let n=i[0],s=this.getElementScrollY(n);o.href=e,this.scrollPages.push({top:s,path:o.href,title:t.title})},n.getElementScrollY=function(e){if(this.options.elementScroll)return e.offsetTop-this.top;return e.getBoundingClientRect().top+t.scrollY},n.onScrollHistory=function(){let t=this.getClosestScrollPage();t!=this.scrollPage&&(this.scrollPage=t,this.setHistory(t.title,t.path))},i.debounceMethod(e,"onScrollHistory",150),n.getClosestScrollPage=function(){let e,i;e=this.options.elementScroll?this.scroller.scrollTop+this.scroller.clientHeight/2:t.scrollY+this.windowHeight/2;for(let t of this.scrollPages){if(t.top>=e)break;i=t}return i},n.setHistory=function(t,e){let i=this.options.history;i&&history[i+"State"]&&(history[i+"State"](null,t,e),this.options.historyTitle&&(document.title=t),this.dispatchEvent("history",null,[t,e]))},n.onUnload=function(){if(0===this.scrollPage.top)return;let e=t.scrollY-this.scrollPage.top+this.top;this.destroyHistory(),scrollTo(0,e)},n.onPageLoadHistory=function(t,e){this.setHistory(t.title,e)},e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,i){class n{constructor(t,e){this.element=t,this.infScroll=e,this.clickHandler=this.onClick.bind(this),this.element.addEventListener("click",this.clickHandler),e.on("request",this.disable.bind(this)),e.on("load",this.enable.bind(this)),e.on("error",this.hide.bind(this)),e.on("last",this.hide.bind(this))}onClick(t){t.preventDefault(),this.infScroll.loadNextPage()}enable(){this.element.removeAttribute("disabled")}disable(){this.element.disabled="disabled"}hide(){this.element.style.display="none"}destroy(){this.element.removeEventListener("click",this.clickHandler)}}return e.create.button=function(){let t=i.getQueryElement(this.options.button);t&&(this.button=new n(t,this))},e.destroy.button=function(){this.button&&this.button.destroy()},e.Button=n,e})),function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,(function(t,e,i){let n=e.prototype;function o(t){r(t,"none")}function s(t){r(t,"block")}function r(t,e){t&&(t.style.display=e)}return e.create.status=function(){let t=i.getQueryElement(this.options.status);t&&(this.statusElement=t,this.statusEventElements={request:t.querySelector(".infinite-scroll-request"),error:t.querySelector(".infinite-scroll-error"),last:t.querySelector(".infinite-scroll-last")},this.on("request",this.showRequestStatus),this.on("error",this.showErrorStatus),this.on("last",this.showLastStatus),this.bindHideStatus("on"))},n.bindHideStatus=function(t){let e=this.options.append?"append":"load";this[t](e,this.hideAllStatus)},n.showRequestStatus=function(){this.showStatus("request")},n.showErrorStatus=function(){this.showStatus("error")},n.showLastStatus=function(){this.showStatus("last"),this.bindHideStatus("off")},n.showStatus=function(t){s(this.statusElement),this.hideStatusEventElements(),s(this.statusEventElements[t])},n.hideAllStatus=function(){o(this.statusElement),this.hideStatusEventElements()},n.hideStatusEventElements=function(){for(let t in this.statusEventElements){o(this.statusEventElements[t])}},e})), +/*! + * imagesLoaded v4.1.4 + * JavaScript is all like "You images are done yet or what?" + * MIT License + */ +function(t,e){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],(function(i){return e(t,i)})):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){"use strict";var i=t.jQuery,n=t.console;function o(t,e){for(var i in e)t[i]=e[i];return t}var s=Array.prototype.slice;function r(t,e,l){if(!(this instanceof r))return new r(t,e,l);var h,a=t;("string"==typeof t&&(a=document.querySelectorAll(t)),a)?(this.elements=(h=a,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?s.call(h):[h]),this.options=o({},this.options),"function"==typeof e?l=e:o(this.options,e),l&&this.on("always",l),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):n.error("Bad element for imagesLoaded "+(a||t))}r.prototype=Object.create(e.prototype),r.prototype.options={},r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},r.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&l[e]){for(var i=t.querySelectorAll("img"),n=0;nCurated Art for Everybody<\/p>" } }, @@ -172,12 +173,6 @@ "collection": "allison-filice" } }, - "e849b824-6859-45f9-8879-aa79f90d9958": { - "type": "collection", - "settings": { - "collection": "alva-skog" - } - }, "62746c54-a71c-4779-b5f3-da0e4f00769e": { "type": "collection", "settings": { @@ -700,6 +695,12 @@ "collection": "melanie-johnsson" } }, + "846d32fd-924a-4800-99fb-610cf9bec0eb": { + "type": "collection", + "settings": { + "collection": "melanie-lambrick" + } + }, "04a751d7-9cff-418a-ae38-9fe1c4f0ea00": { "type": "collection", "settings": { @@ -948,7 +949,6 @@ "186a212c-5471-4f42-b079-8a661f320197", "dbba7b5b-dead-447d-85cf-1bc52bea7c25", "ed5da497-7390-418e-81cd-4d8416599931", - "e849b824-6859-45f9-8879-aa79f90d9958", "62746c54-a71c-4779-b5f3-da0e4f00769e", "ca6de937-f0b1-469c-87c6-02c9fb4929e6", "ab933c98-ecc9-44c7-92c0-30fa147aeb41", @@ -1036,6 +1036,7 @@ "312ebe00-22dd-47ea-9218-4c1082183e82", "4d386ee4-71bc-4c4b-9e86-95039b4483c2", "b4c59e7e-3b0b-4ee2-9e8a-a003cead4cd5", + "846d32fd-924a-4800-99fb-610cf9bec0eb", "04a751d7-9cff-418a-ae38-9fe1c4f0ea00", "e12c4549-b252-4bef-ac40-8e338148171d", "01f9753c-5439-4dfc-b07f-4ff85cd10b95", @@ -1108,6 +1109,32 @@ "1564138757180": { "type": "slideshow", "blocks": { + "5a6a944c-2c5c-4b27-8546-47ca98fbf2f3": { + "type": "image", + "settings": { + "image": "shopify:\/\/shop_images\/Screenshot_2021-03-08_at_13.28.38.png", + "alignment": "center center", + "overlay_opacity": 30, + "color_text": "#ffffff", + "text_alignment": "left", + "slide_heading": "Celebrate International Women's Day 2021", + "button_label": "10% of profits to Women's Aid", + "button_link": "shopify:\/\/collections\/all" + } + }, + "e164fce9-c423-420d-a9a0-4b11196d065c": { + "type": "image", + "settings": { + "image": "shopify:\/\/shop_images\/Screenshot_2021-02-26_at_17.55.26.png", + "alignment": "right top", + "overlay_opacity": 30, + "color_text": "#ffffff", + "text_alignment": "left", + "slide_heading": "Mother's Day is 14th March - send a print that's full of love", + "button_label": "Shop our love prints", + "button_link": "https:\/\/roomfifty.com\/collections\/all\/love" + } + }, "8ae8742a-1f9b-40b0-afba-aec41eca7b9c": { "type": "image", "settings": { @@ -1116,14 +1143,30 @@ "overlay_opacity": 30, "color_text": "#ffffff", "text_alignment": "left", - "slide_heading": "The new season is here!", - "button_label": "Shop exclusive season 8 prints", + "slide_heading": "Our latest collection: Season 8", + "button_label": "Shop exclusive prints", "button_link": "shopify:\/\/collections\/season-8" } + }, + "946febec-e765-48bd-90be-f1202c96ca11": { + "type": "image", + "settings": { + "image": "shopify:\/\/shop_images\/Artboard_15.png", + "alignment": "center center", + "overlay_opacity": 30, + "color_text": "#ffffff", + "text_alignment": "left", + "slide_heading": "The Winners have been chosen!", + "button_label": "Buy the winning prints", + "button_link": "shopify:\/\/pages\/yuc" + } } }, "block_order": [ - "8ae8742a-1f9b-40b0-afba-aec41eca7b9c" + "5a6a944c-2c5c-4b27-8546-47ca98fbf2f3", + "e164fce9-c423-420d-a9a0-4b11196d065c", + "8ae8742a-1f9b-40b0-afba-aec41eca7b9c", + "946febec-e765-48bd-90be-f1202c96ca11" ], "settings": { "slider_height": "large", @@ -1286,7 +1329,9 @@ }, "filters": { "type": "filters", - "settings": {} + "settings": { + "display": false + } }, "1604006995af9f27ae": { "type": "advanced-content", @@ -1314,6 +1359,105 @@ "home_page_featured_products": "season-8", "home_featured_products_row_num": 3 } + }, + "161426355581233b6c": { + "type": "instafeed", + "settings": { + "heading_font": "helvetica_n4", + "heading_size": 20, + "feed_width": 100, + "html_area": "" + } + }, + "about-page": { + "type": "about-page", + "blocks": { + "c281e198-ae00-4cd8-b40b-331e96207964": { + "type": "profiles", + "settings": { + "profileImg": "shopify:\/\/shop_images\/RF-portrait-Leon_160x160_551c3efe-c7c6-465f-ac54-8adb025172e9.jpg", + "profileName": "Leon Edler", + "profileBio": "

is an award winning conceptual illustrator and regularly contributes to newspapers and magazines including the New York Times, Vanity Fair and Die Zeit. He has exhibited his work in the UK and US. He lives in Brighton with his wife, twin daughters and dog (see Mabel Edler).<\/p>" + } + }, + "66ab017e-bd6a-4d1c-a15a-d56c09254415": { + "type": "profiles", + "settings": { + "profileImg": "shopify:\/\/shop_images\/RF-portrait-Leon_160x160_551c3efe-c7c6-465f-ac54-8adb025172e9.jpg", + "profileName": "Chris Clarke", + "profileBio": "

is a global creative director at The Guardian and a design consultant. Chris' work spans across countless facets of the design industry and has been noted on numerous occasions by award bodies and his peers.<\/p>" + } + }, + "85573f7b-1ced-4856-8e37-ac595397db8c": { + "type": "profiles", + "settings": { + "profileImg": "shopify:\/\/shop_images\/RF-portrait-Leon_160x160_551c3efe-c7c6-465f-ac54-8adb025172e9.jpg", + "profileName": "Ben Longden", + "profileBio": "

is a multi-disciplinary designer, part time teacher and digital design director at The Guardian. Alongside his work in design, Ben also competes in trialathons and smells like wheaty biscuits<\/p>" + } + }, + "cd1c9de1-6c63-468f-9a23-859f69441610": { + "type": "profiles", + "settings": { + "profileImg": "shopify:\/\/shop_images\/RF-portrait-Leon_160x160_551c3efe-c7c6-465f-ac54-8adb025172e9.jpg", + "profileName": "Ellie Davey", + "profileBio": "

is from London and is now based in Berlin, Germany where she has a Gallery called Kuratiert, a combined illustration gallery, shop, and studio. Her life in Berlin consists of non-competitive ping-pong, beer, and finding a reliable source of good tea.<\/p>" + } + }, + "2f4f9773-fb7e-46d6-ba1e-e0af6c9ca67a": { + "type": "profiles", + "settings": { + "profileImg": "shopify:\/\/shop_images\/RF-portrait-Leon_160x160_551c3efe-c7c6-465f-ac54-8adb025172e9.jpg", + "profileName": "Mabel Edler", + "profileBio": "

is a cross between a Staffordshire Bull Terrier and a Jack Russell. As well as sleeping, she also likes to sunbathe, chase squirrels and spoon. She is 8 years old and used to be a stray but now lives with her loving family in Brighton. She smells like a wheaty biscuit.<\/p>" + } + } + }, + "block_order": [ + "c281e198-ae00-4cd8-b40b-331e96207964", + "66ab017e-bd6a-4d1c-a15a-d56c09254415", + "85573f7b-1ced-4856-8e37-ac595397db8c", + "cd1c9de1-6c63-468f-9a23-859f69441610", + "2f4f9773-fb7e-46d6-ba1e-e0af6c9ca67a" + ], + "settings": { + "banner": "shopify:\/\/shop_images\/Screenshot_2021-03-08_at_13.28.38.png", + "textarea1": "

We launched RoomFifty in 2017 as a place to make the best contemporary art accessible to everyone. As a group of professional illustrators and art directors, we love using images to tell stories – reducing complex ideas into simple, beautiful images. We wanted to start a company that would connect amazing artists, producing the best commercial work, with an art-loving audience.<\/p>", + "textarea2": "

We want to become the first place you think of when buying high-quality prints at an affordable price. Curated by award-winning illustrators and art directors, we have unique access to the best commercial artists working today, and we want their work to reach an art buying audience all over the world – whether you’re an art lover or simply looking for a fantastic print for your home.<\/p>

We’d love to hear from you. If you have any feedback about our site, the work or have pics of our prints in your home, we’d love to hear from you. Please email us<\/a>.<\/p>" + } + }, + "collection-header": { + "type": "collection-header", + "settings": { + "linklist01": "theme", + "linklist02": "seasons", + "linklist03": "colour", + "linklist04": "space" + } + }, + "modal": { + "type": "modal", + "settings": { + "timing": 3, + "headline": "Sign up to our Newsletter Here", + "copy": "The latest news and offers from Room Fifty More here", + "bgColor": "#eb5d42", + "buttonColor": "#333333" + } + }, + "product-giftcard-template": { + "type": "product-giftcard-template", + "settings": { + "product_quantity_enable": false, + "vendor_show": false, + "social_sharing_products": true, + "product_description_position": "right", + "show_extra_tab": false, + "extra_tab_content": "", + "product_image_zoom_type": "lightbox", + "enable_payment_button": true, + "add_to_cart_width": "regular" + } } }, "content_for_index": [ @@ -1329,7 +1473,8 @@ "1564140336829", "1607335746e882f637", "1564135843653", - "1564505903027" + "1564505903027", + "161426355581233b6c" ] }, "presets": { diff --git a/config/settings_schema.json b/config/settings_schema.json index bc340fd..f48f0f1 100644 --- a/config/settings_schema.json +++ b/config/settings_schema.json @@ -1558,5 +1558,49 @@ } } ] + }, + { + "name": "App: Wishlist King", + "settings": [ + { + "type": "header", + "content": "Styling & Customisations", + "info": "Please note: Wishlist King is 100% customisable to integrate seamlessly with any theme. If you need customisations beyond what you can change below, please get in touch: support@appmate.io" + }, + { + "type": "checkbox", + "id": "app_wk_login_required", + "label": "Customer Login Required", + "default": false + }, + { + "type": "header", + "content": "Wishlist Page" + }, + { + "type": "select", + "id": "app_wk_products_per_row", + "label": "Products per Row", + "options": [ + { + "value": "3", + "label": "3" + }, + { + "value": "4", + "label": "4" + }, + { + "value": "5", + "label": "5" + }, + { + "value": "6", + "label": "6" + } + ], + "default": "4" + } + ] } ] \ No newline at end of file diff --git a/layout/theme.liquid b/layout/theme.liquid index f542680..7aac135 100644 --- a/layout/theme.liquid +++ b/layout/theme.liquid @@ -32,17 +32,20 @@ addressQueryLimit: {{ 'homepage.map.address_query_limit_html' | t | json }}, authError: {{ 'homepage.map.auth_error_html' | t | json }} } - } + } + {{ 'appmate-wishlist-king.scss' | asset_url | stylesheet_tag }} {{ 'theme.scss.css' | asset_url | stylesheet_tag }} - {{ 'rf-style.scss.css' | asset_url | stylesheet_tag }} - + {% comment %} {{ 'rf-style.scss.css' | asset_url | stylesheet_tag }} {% endcomment %} + {{ 'app.css' | asset_url | stylesheet_tag }} {{ content_for_header }} + {% render 'app_wishlist-king' %} - {{ 'jquery-1.11.0.min.js' | asset_url | script_tag }} + {{ 'modernizr.min.js' | asset_url | script_tag }} + @@ -57,15 +60,17 @@ + {% section 'modal' %} {% section "mobileNav" %} {% section "header" %} + {% comment %}


{% endcomment %} - {% unless template.name == 'index' or page.template_suffix == 'yuk' %}
{% endunless %} + {% unless template.name == 'index' or page.template_suffix == 'yuk' %}
{% endunless %}
@@ -104,6 +109,7 @@ {%- if template.name == 'collection' -%} {% section 'filters' %} + {% section 'collection-header' %} {%- endif -%} {%- if template.name == 'index' -%} @@ -176,6 +182,12 @@ {% section "footer" %} + + + + {% if template.name == 'product' or template.name == 'index' %} {{ 'option_selection.js' | shopify_asset_url | script_tag }} {% endif %} - - {{ 'theme.js' | asset_url | script_tag }} {{ 'rf-script.js' | asset_url | script_tag }} + {{ 'app.js' | | asset_url | script_tag }} -{% include 'swymSnippet' %} - -{% render 'spurit_dmr_theme_snippet' %} - - -{% render 'spurit_uev-theme-snippet' %} - - diff --git a/locales/en.default.json b/locales/en.default.json index 8f6d1c5..47f54fd 100644 --- a/locales/en.default.json +++ b/locales/en.default.json @@ -1,5 +1,9 @@ { "general": { + "404": { + "title": "404 Page Not Found", + "subtext_html": "The page you requested does not exist. Click here<\/a> to continue shopping." + }, "accessibility": { "skip_to_content": "Skip to content", "refresh_page": "choosing a selection results in a full page refresh" @@ -8,10 +12,6 @@ "tags": "Tagged \"{{ tags }}\"", "page": "Page {{ page }}" }, - "404": { - "title": "404 Page Not Found", - "subtext_html": "The page you requested does not exist. Click here<\/a> to continue shopping." - }, "password_page": { "login_form_heading": "Enter store using password", "login_form_password_label": "Password", @@ -311,5 +311,33 @@ "remaining_html": "{{ balance }} left", "add_to_apple_wallet": "Add to Apple Wallet" } + }, + "app_wishlist-king": { + "general": { + "wishlist": "Wishlist", + "wishlist_empty_note": "Your wishlist is empty!", + "add_to_wishlist": "Add to Wishlist", + "remove_from_wishlist": "Remove from Wishlist", + "clear_wishlist": "Clear Wishlist", + "in_wishlist": "In Wishlist", + "share_wishlist": "Share Wishlist", + "copy_share_link": "Copy Link", + "share_link_copied": "Link Copied", + "share_by_email_body": "Here is the link to my list:", + "share_list_title": "My Wishlist", + "share_list_description": "Check out some of my favorite things @ {{ shopName }}.", + "login_or_signup_note_html": "To save your wishlist please login<\/a> or sign up<\/a>.", + "add_to_cart": "Add to Cart", + "sold_out": "Sold Out", + "view_product": "View product", + "view_wishlist": "View Wishlist", + "share_on_facebook": "Share on Facebook", + "share_on_twitter": "Share on Twitter", + "share_on_pinterest": "Share on Pinterest", + "share_with_whatsapp": "Share with WhatsApp", + "share_by_email": "Share with Email", + "get_link": "Get link", + "send_to_customer_service": "Send to customer service" + } } } \ No newline at end of file diff --git a/prepros.config b/prepros.config new file mode 100644 index 0000000..4e1abda --- /dev/null +++ b/prepros.config @@ -0,0 +1,926 @@ +{ + "version": "7", + "about": "This is a Prepros (https://prepros.io) configuration file. You can commit this file to a git repo to backup and sync project configurations.", + "config": { + "proxy": { + "enable": true, + "target": "https://qs9s9iwi8wflrnkz-25672510.shopifypreview.com", + "useLocalAssets": false + }, + "reload": { + "enable": true, + "delay": 5000, + "animate": false, + "afterUpload": false + }, + "sync": { + "enable": false, + "mouse": true, + "keyboard": true, + "form": true, + "scroll": true + }, + "watcher": { + "enable": true, + "maxFiles": 2000, + "usePolling": false, + "pollingInterval": 500, + "extensions": [ + ".html", + ".htm", + ".php", + ".liquid" + ], + "ignore": { + "patterns": [ + ".*", + "wp-admin", + "wp-includes", + "node_modules", + "Prepros Export", + "bower_components" + ], + "exceptions": [] + } + }, + "exporter": { + "ignore": { + "patterns": [ + ".*", + "desktop.ini", + "prepros.cfg", + "node_modules", + "Prepros Export", + "prepros.config", + "prepros-6.config", + "*-original.jpg", + "*-original.jpeg", + "*-original.png", + "*-original.svg", + "*.scss", + "*.sass", + "*.less", + "*.pug", + "*.jade", + "*.styl", + "*.haml", + "*.slim", + "*.coffee", + "*.kit", + "*.turf", + "*.ts" + ], + "exceptions": [] + } + }, + "uploader": { + "remotePath": "", + "timeout": 20000, + "autoUpload": false, + "reuseConnection": true, + "connectionType": "ftp", + "history": [] + }, + "packages": { + "createPackageLock": true + }, + "images": { + "preserveOriginal": true + }, + "tasks": { + "autoprefixer": { + "cascade": true, + "add": true, + "remove": true, + "supports": true, + "flexbox": true, + "grid": "autoplace", + "browsers": [ + "> 2%", + "not dead" + ], + "sourceMap": false + }, + "babel": { + "sourceMap": false, + "presets": { + "@babel/preset-env": { + "enable": true, + "options": { + "targets": [ + "> 2%", + "not dead" + ], + "preserveImports": false, + "polyfills": false + } + }, + "@babel/preset-react": true, + "@babel/preset-flow": false + }, + "plugins": { + "@babel/plugin-proposal-class-static-block": false, + "@babel/plugin-proposal-class-properties": false, + "@babel/plugin-proposal-decorators": { + "enable": false, + "options": { + "decoratorsBeforeExport": true + } + }, + "@babel/plugin-proposal-export-namespace-from": false, + "@babel/plugin-proposal-function-sent": false, + "@babel/plugin-proposal-logical-assignment-operators": false, + "@babel/plugin-proposal-nullish-coalescing-operator": false, + "@babel/plugin-proposal-numeric-separator": false, + "@babel/plugin-proposal-optional-chaining": false, + "@babel/plugin-proposal-private-methods": false, + "@babel/plugin-proposal-throw-expressions": false + }, + "customPresets": [], + "customPlugins": [] + }, + "bundle-js": { + "sourceMap": false, + "exclude": [ + "node_modules", + "bower_components" + ], + "devMode": true, + "globals": [], + "externals": [], + "babel": { + "enable": true, + "options": { + "sourceMap": false, + "presets": { + "@babel/preset-env": { + "enable": true, + "options": { + "targets": [ + "> 2%", + "not dead" + ], + "preserveImports": false, + "polyfills": false + } + }, + "@babel/preset-react": true, + "@babel/preset-flow": false + }, + "plugins": { + "@babel/plugin-proposal-class-static-block": false, + "@babel/plugin-proposal-class-properties": false, + "@babel/plugin-proposal-decorators": { + "enable": false, + "options": { + "decoratorsBeforeExport": true + } + }, + "@babel/plugin-proposal-export-namespace-from": false, + "@babel/plugin-proposal-function-sent": false, + "@babel/plugin-proposal-logical-assignment-operators": false, + "@babel/plugin-proposal-nullish-coalescing-operator": false, + "@babel/plugin-proposal-numeric-separator": false, + "@babel/plugin-proposal-optional-chaining": false, + "@babel/plugin-proposal-private-methods": false, + "@babel/plugin-proposal-throw-expressions": false + }, + "customPresets": [], + "customPlugins": [] + } + }, + "css": { + "enable": true + }, + "fonts": { + "enable": true + } + }, + "coffeescript": { + "header": false, + "bare": false, + "sourceMap": false + }, + "command": { + "command": "", + "rootDir": "" + }, + "concat-js": { + "sourceMap": false, + "rootDir": "" + }, + "copy": { + "sourceMap": false + }, + "dart-sass": { + "indentType": "space", + "indentWidth": 2, + "linefeed": "lf", + "sourceMap": false + }, + "haml": { + "doubleQuoteAttributes": true + }, + "jpg": { + "quality": 90 + }, + "less": { + "javascriptEnabled": false, + "strictImports": false, + "insecure": false, + "math": "always", + "strictUnits": false, + "dumpLineNumbers": false, + "sourceMap": false + }, + "markdown": { + "githubFlavored": true, + "wrapWithHtml": false + }, + "minify-css": { + "sourceMap": false + }, + "minify-html": { + "caseSensitive": false, + "collapseBooleanAttributes": true, + "collapseInlineTagWhitespace": false, + "collapseWhitespace": true, + "conservativeCollapse": false, + "decodeEntities": false, + "html5": true, + "includeAutoGeneratedTags": true, + "keepClosingSlash": false, + "minifyCSS": true, + "minifyJS": true, + "preserveLineBreaks": false, + "preventAttributesEscaping": false, + "processConditionalComments": false, + "removeAttributeQuotes": false, + "removeComments": true, + "removeEmptyAttributes": false, + "removeEmptyElement": false, + "removeOptionalTags": false, + "removeRedundantAttributes": false, + "removeScriptTypeAttributes": false, + "removeStyleLinkTypeAttributes": false, + "removeTagWhitespace": false, + "sortAttributes": false, + "sortClassName": false, + "useShortDoctype": true + }, + "minify-js": { + "parse": { + "bare_returns": false + }, + "compress": { + "arrows": true, + "arguments": false, + "booleans": true, + "booleans_as_integers": false, + "collapse_vars": true, + "comparisons": true, + "computed_props": true, + "conditionals": true, + "dead_code": true, + "directives": true, + "drop_console": false, + "drop_debugger": true, + "evaluate": true, + "expression": false, + "global_defs": [], + "hoist_funs": false, + "hoist_props": true, + "hoist_vars": false, + "if_return": true, + "inline": 3, + "join_vars": true, + "keep_fargs": true, + "keep_infinity": false, + "loops": true, + "negate_iife": true, + "properties": true, + "pure_funcs": [], + "pure_getters": false, + "reduce_vars": true, + "sequences": true, + "side_effects": true, + "switches": true, + "top_retain": [], + "typeofs": true, + "unsafe": false, + "unsafe_arrows": false, + "unsafe_comps": false, + "unsafe_Function": false, + "unsafe_math": false, + "unsafe_proto": false, + "unsafe_regexp": false, + "unsafe_undefined": false, + "unused": true + }, + "mangle": { + "eval": false, + "reserved": [] + }, + "output": { + "ascii_only": false, + "braces": false, + "comments": "none", + "inline_script": true, + "keep_numbers": false, + "keep_quoted_props": false, + "preamble": null, + "quote_keys": false, + "quote_style": 0, + "semicolons": true, + "shebang": true, + "webkit": false, + "wrap_iife": false, + "wrap_func_args": true + }, + "sourceMap": false, + "toplevel": false, + "ie8": false, + "keep_classnames": false, + "keep_fnames": false, + "safari10": false + }, + "node-sass": { + "indentType": "space", + "indentWidth": 2, + "linefeed": "lf", + "outputStyle": "expanded", + "precision": 10, + "sourceMap": false, + "sourceComments": false + }, + "png": { + "quality": 90 + }, + "postcss-import": { + "ignoreKeywords": [], + "sourceMap": false + }, + "postcss-preset-env": { + "stage": 2, + "browsers": [ + "> 2%", + "not dead" + ], + "sourceMap": false + }, + "pug": { + "pretty": true + }, + "slim": { + "indent": "space", + "indentSize": 2, + "pretty": true + }, + "stylus": { + "useNib": true, + "sourceMap": false, + "linenos": false + }, + "svg": { + "cleanupAttrs": true, + "removeDoctype": true, + "removeXMLProcInst": true, + "removeComments": true, + "removeMetadata": true, + "removeTitle": true, + "removeDesc": true, + "removeUselessDefs": true, + "removeEditorsNSData": true, + "removeEmptyAttrs": true, + "removeHiddenElems": true, + "removeEmptyText": true, + "removeEmptyContainers": true, + "removeViewBox": false, + "cleanupEnableBackground": true, + "convertStyleToAttrs": true, + "convertColors": true, + "convertPathData": true, + "convertTransform": true, + "removeUnknownsAndDefaults": true, + "removeNonInheritableGroupAttrs": true, + "removeUselessStrokeAndFill": true, + "removeUnusedNS": true, + "cleanupIDs": true, + "cleanupNumericValues": true, + "moveElemsAttrsToGroup": true, + "moveGroupAttrsToElems": true, + "collapseGroups": true, + "removeRasterImages": false, + "mergePaths": true, + "convertShapeToPath": true, + "sortAttrs": true, + "removeDimensions": true + }, + "turf": { + "rootDir": "" + }, + "typescript": { + "allowJs": false, + "allowSyntheticDefaultImports": true, + "allowUmdGlobalAccess": false, + "allowUnreachableCode": false, + "allowUnusedLabels": false, + "alwaysStrict": false, + "charset": "utf8", + "checkJs": false, + "declaration": false, + "disableSizeLimit": false, + "downlevelIteration": false, + "emitBOM": false, + "emitDecoratorMetadata": false, + "experimentalDecorators": false, + "forceConsistentCasingInFileNames": false, + "importHelpers": false, + "jsx": "React", + "keyofStringsOnly": false, + "lib": [], + "maxNodeModuleJsDepth": 0, + "module": "ES2015", + "moduleResolution": "NodeJs", + "newLine": "LineFeed", + "noFallthroughCasesInSwitch": false, + "noImplicitAny": false, + "noImplicitReturns": false, + "noImplicitThis": false, + "noStrictGenericChecks": false, + "noUnusedLocals": false, + "noUnusedParameters": false, + "noImplicitUseStrict": false, + "noLib": false, + "noResolve": false, + "preserveConstEnums": false, + "jsxFactory": "React.createElement", + "removeComments": false, + "skipLibCheck": false, + "sourceMap": false, + "strict": false, + "strictFunctionTypes": false, + "strictBindCallApply": false, + "strictNullChecks": false, + "strictPropertyInitialization": false, + "suppressExcessPropertyErrors": false, + "suppressImplicitAnyIndexErrors": false, + "target": "ES3", + "resolveJsonModule": false, + "esModuleInterop": false, + "useDefineForClassFields": false + } + }, + "fileTypes": { + "sass": { + "extensions": [ + ".scss", + ".sass" + ], + "autoCompile": true, + "sourceMap": false, + "tasks": [ + { + "task": "dart-sass", + "enable": true + }, + { + "task": "autoprefixer", + "enable": true + }, + { + "task": "minify-css", + "enable": false + } + ], + "output": { + "extension": ".css", + "type": "REPLACE_SEGMENTS", + "segments": [ + { + "segment": "scss", + "replaceWith": "css" + }, + { + "segment": "sass", + "replaceWith": "css" + } + ] + } + }, + "less": { + "extensions": [ + ".less" + ], + "autoCompile": true, + "sourceMap": false, + "tasks": [ + { + "task": "less", + "enable": true + }, + { + "task": "autoprefixer", + "enable": true + }, + { + "task": "minify-css", + "enable": false + } + ], + "output": { + "extension": ".css", + "type": "REPLACE_SEGMENTS", + "segments": [ + { + "segment": "less", + "replaceWith": "css" + } + ] + } + }, + "pug": { + "extensions": [ + ".pug", + ".jade" + ], + "autoCompile": true, + "tasks": [ + { + "task": "pug", + "enable": true + }, + { + "task": "minify-html", + "enable": false + } + ], + "output": { + "extension": ".html", + "type": "REPLACE_SEGMENTS", + "segments": [ + { + "segment": "pug", + "replaceWith": "html" + } + ] + } + }, + "css": { + "extensions": [ + ".css" + ], + "autoCompile": false, + "sourceMap": false, + "tasks": [ + { + "task": "copy", + "enable": true + }, + { + "task": "postcss-import", + "enable": false + }, + { + "task": "postcss-preset-env", + "enable": false + }, + { + "task": "autoprefixer", + "enable": true + }, + { + "task": "minify-css", + "enable": true + } + ], + "output": { + "extension": ".css", + "type": "SOURCE_RELATIVE", + "relativePath": "", + "suffix": "-dist", + "alwaysSuffix": false + } + }, + "javascript": { + "extensions": [ + ".js", + ".jsx" + ], + "autoCompile": false, + "sourceMap": false, + "tasks": [ + { + "task": "copy", + "enable": true + }, + { + "task": "concat-js", + "enable": false + }, + { + "task": "babel", + "enable": false + }, + { + "task": "bundle-js", + "enable": false + }, + { + "task": "minify-js", + "enable": true + } + ], + "output": { + "extension": ".js", + "type": "SOURCE_RELATIVE", + "relativePath": "", + "suffix": "-dist", + "alwaysSuffix": false + } + }, + "stylus": { + "extensions": [ + ".styl" + ], + "autoCompile": true, + "sourceMap": false, + "tasks": [ + { + "task": "stylus", + "enable": true + }, + { + "task": "autoprefixer", + "enable": true + }, + { + "task": "minify-css", + "enable": false + } + ], + "output": { + "extension": ".css", + "type": "REPLACE_SEGMENTS", + "segments": [ + { + "segment": "stylus", + "replaceWith": "css" + }, + { + "segment": "styl", + "replaceWith": "css" + } + ] + } + }, + "markdown": { + "extensions": [ + ".md", + ".markdown", + ".mkd" + ], + "autoCompile": false, + "tasks": [ + { + "task": "markdown", + "enable": true + }, + { + "task": "minify-html", + "enable": false + } + ], + "output": { + "extension": ".html", + "type": "REPLACE_SEGMENTS", + "segments": [ + { + "segment": "markdown", + "replaceWith": "html" + } + ] + } + }, + "haml": { + "extensions": [ + ".haml" + ], + "autoCompile": true, + "tasks": [ + { + "task": "haml", + "enable": true + }, + { + "task": "minify-html", + "enable": false + } + ], + "output": { + "extension": ".html", + "type": "REPLACE_SEGMENTS", + "segments": [ + { + "segment": "haml", + "replaceWith": "html" + } + ] + } + }, + "slim": { + "extensions": [ + ".slim" + ], + "autoCompile": true, + "tasks": [ + { + "task": "slim", + "enable": true + }, + { + "task": "minify-html", + "enable": false + } + ], + "output": { + "extension": ".html", + "type": "REPLACE_SEGMENTS", + "segments": [ + { + "segment": "slim", + "replaceWith": "html" + } + ] + } + }, + "coffeescript": { + "extensions": [ + ".coffee" + ], + "autoCompile": true, + "sourceMap": false, + "tasks": [ + { + "task": "coffeescript", + "enable": true + }, + { + "task": "babel", + "enable": false + }, + { + "task": "bundle-js", + "enable": false + }, + { + "task": "minify-js", + "enable": false + } + ], + "output": { + "extension": ".js", + "type": "REPLACE_SEGMENTS", + "segments": [ + { + "segment": "coffee-script", + "replaceWith": "js" + }, + { + "segment": "coffeescript", + "replaceWith": "js" + }, + { + "segment": "coffee", + "replaceWith": "js" + } + ] + } + }, + "turf": { + "extensions": [ + ".turf", + ".kit" + ], + "autoCompile": true, + "tasks": [ + { + "task": "turf", + "enable": true + }, + { + "task": "minify-html", + "enable": false + } + ], + "output": { + "extension": ".html", + "type": "REPLACE_SEGMENTS", + "segments": [ + { + "segment": "turf", + "replaceWith": "html" + } + ] + } + }, + "typescript": { + "extensions": [ + ".ts", + ".tsx" + ], + "autoCompile": true, + "sourceMap": false, + "tasks": [ + { + "task": "typescript", + "enable": true + }, + { + "task": "babel", + "enable": false + }, + { + "task": "bundle-js", + "enable": false + }, + { + "task": "minify-js", + "enable": false + } + ], + "output": { + "extension": ".js", + "type": "REPLACE_SEGMENTS", + "segments": [ + { + "segment": "typescript", + "replaceWith": "js" + }, + { + "segment": "ts", + "replaceWith": "js" + } + ] + } + }, + "jpg": { + "extensions": [ + ".jpg", + ".jpeg" + ], + "tasks": [ + { + "task": "jpg", + "enable": true + } + ], + "output": { + "extension": ".jpg", + "type": "SOURCE_RELATIVE", + "relativePath": "" + } + }, + "png": { + "extensions": [ + ".png" + ], + "tasks": [ + { + "task": "png", + "enable": true + } + ], + "output": { + "extension": ".png", + "type": "SOURCE_RELATIVE", + "relativePath": "" + } + }, + "svg": { + "extensions": [ + ".svg" + ], + "tasks": [ + { + "task": "svg", + "enable": true + } + ], + "output": { + "extension": ".svg", + "type": "SOURCE_RELATIVE", + "relativePath": "" + } + } + }, + "files": [ + { + "file": "stylesheets/main.scss", + "config": { + "customOutput": "assets/app.css.liquid" + } + } + ] + } +} diff --git a/sections/about-page.liquid b/sections/about-page.liquid new file mode 100644 index 0000000..516d9f0 --- /dev/null +++ b/sections/about-page.liquid @@ -0,0 +1,97 @@ +{% schema %} + { + "name": "About Page", + "class": "about-page", + "max_blocks": 5, + "settings": [ + { + "type": "text", + "id": "headline", + "label": "Page Headline", + "default": "About RoomFifty" + }, + { + "type": "image_picker", + "id": "banner", + "label": "Banner Image" + }, + { + "type": "richtext", + "id": "textarea1", + "label": "Text area 1", + "default": "

" + }, + { + "type": "richtext", + "id": "textarea2", + "label": "Text Area 2", + "default": "

" + } + ], + "blocks":[ + { + "type": "profiles", + "name": "Profile", + "settings":[ + { + "type": "image_picker", + "id": "profileImg", + "label": "Profile Image" + }, + { + "type": "text", + "id": "profileName", + "label": "Name" + }, + { + "type": "richtext", + "id": "profileBio", + "label": "Description", + "default": "

" + } + ] + } + ] + + } +{% endschema %} + + + +
+ +
+ +
+
+ +

{{ section.settings.headline }}

+ +
+ {{ section.settings.textarea1 }} +
+
+
+
+
+
+ + {% for block in section.blocks %} + +
+ +

{{ block.settings.profileName }}

+

{{ block.settings.profileBio }}

+
+ + {% endfor %} + +
+ +
+
+ {{ section.settings.textarea2 }} +
+
+
+
\ No newline at end of file diff --git a/sections/article-template.liquid b/sections/article-template.liquid index 508e387..1420839 100644 --- a/sections/article-template.liquid +++ b/sections/article-template.liquid @@ -144,13 +144,13 @@
- {% endpaginate %} + {% assign dm_paginate_by = paginate.page_size %}{% endpaginate %} {% endif %} -{% schema %} +{% if dm_paginate_by %}{% render 'spurit_dmr_collection_template_snippet', paginate_by: dm_paginate_by %}{% endif %}{% schema %} { "name": { "de": "Artikelseiten", diff --git a/sections/collection-header.liquid b/sections/collection-header.liquid new file mode 100644 index 0000000..5856063 --- /dev/null +++ b/sections/collection-header.liquid @@ -0,0 +1,69 @@ +{% schema %} + { + "name": "New Collection Menus", + "class": "new-collection-header", + "settings": [ + { + "type": "link_list", + "id": "linklist01", + "label": "Link List 1" + }, + { + "type": "link_list", + "id": "linklist02", + "label": "Link List 2" + }, + { + "type": "link_list", + "id": "linklist03", + "label": "Link List 3" + }, + { + "type": "link_list", + "id": "linklist04", + "label": "Link List 4" + } + ] + } +{% endschema %} + +{{ section.settings.linklist.title }} + +
+ +
+
+
+
+

Find the perfect print to match your style

+
+ +
+
+
+
+

{{ section.settings.linklist01 | capitalize }}

+ {% include 'navlist' with handle: section.settings.linklist01, class: section.settings.linklist01.handle %} +
+
+

{{ section.settings.linklist02 | capitalize }}

+ {% include 'navlist' with handle:section.settings.linklist02, class: section.settings.linklist02.handle %} +
+
+

{{ section.settings.linklist03 | capitalize }}

+ {% include 'navlist' with handle: section.settings.linklist03, class: section.settings.linklist03.handle %} +
+
+

{{ section.settings.linklist04 | capitalize}}

+ {% include 'navlist' with handle: section.settings.linklist04, class: section.settings.linklist04.handle %} + +
+
+
+
+
+ + + + +
\ No newline at end of file diff --git a/sections/collection-template.liquid b/sections/collection-template.liquid index cb4bf05..911df82 100644 --- a/sections/collection-template.liquid +++ b/sections/collection-template.liquid @@ -1,6 +1,10 @@ {% paginate collection.products by 50 %} + + + + {% if collection.title contains 'Edition' %}
@@ -33,7 +37,7 @@
{% else %} -
+

{% if current_tags.size > 0 %} @@ -50,7 +54,7 @@ {% if section.settings.collection_sort_enable or section.settings.collection_tag_enable %}
- {% if section.settings.collection_tag_enable and collection.all_tags.size > 0 %} + {% comment %} {% if section.settings.collection_tag_enable and collection.all_tags.size > 0 %}
- {% endif %} + {% endif %} {% endcomment %} {% if section.settings.collection_sort_enable and collection.products.size > 1 %}
@@ -92,7 +96,9 @@ {% endif %}

-
+ + +
{% for product in collection.products %} {% if collection.products.size == 1 %} @@ -143,28 +149,33 @@
{% if paginate.pages > 1 %} -
+ - -
+

{{ product.title }}

@@ -121,106 +121,54 @@ {% endfor %} - {% endif %} + {% endif %} + + + +
+ +
+ + {% if product.handle contains 'fine-art-print' %} + {% assign masterHandle = product.handle | remove: 'fine-art-print' %} + {% elsif product.handle contains 'framed-print' %} + {% assign masterHandle = product.handle | remove: 'framed-print' %} + {% endif %} - {% form 'product', product, class:'product-form' %} - - {% if section.settings.product_quantity_enable %} -
- - -
- {% endif %} + {% assign print = masterHandle | append: 'fine-art-print' %} + {% assign framed = masterHandle | append: 'framed-print' %} -
- - {% if section.settings.enable_payment_button %} - {{ form | payment_button }} - {% endif %} -
+ {% assign printProd = all_products[print] %} + {% assign framedProd = all_products[framed] %} - {% endform %} - -
- {% assign FramedFriend = product.description | split: '||' %} - {% assign stripped = FramedFriend[1] | strip %} + {% assign printID = all_products[print].id %} + {% assign framedID = all_products[framed].id %} +
Select framing
-
No Frame
-
Framed print
- -
- {% assign varientIDS = product.variants %} -
Select size & frame style
- {% for varient in varientIDS %} - - {{varient.title}} - - {% endfor %} -
+ + -
- - {% assign Producthandle = product.description | split: '||' %} - {% assign useHandle = Producthandle[1] | strip %} -
Select size
- {% for handle in Producthandle %} - {% assign testHandle = handle | strip | strip_html | strip_newlines %} - {% assign varientFramedIDS = all_products[testHandle].variants %} - {% for varient in varientFramedIDS %} - - {{varient.title}} - - {% endfor %} + - {% endfor %} -
+ {% include 'add-to-cart-option-form' %} + -
-

👆 Select print style

-
-
-

🖼️ Adding print to basket please wait...

-
-
-

🖼️👍 Added print to basket Go to basket

-
-
-
- -
-
- - Add print to basket - - - - -
-
-
-
+ {% comment %} {% include 'add-to-cart-option-form' with product: framedProd %} {% endcomment %} + +{% comment %} + {% include 'cart-script' %} + {% endcomment %} + +
- {% if product.tags contains 'Testing'%} - {{ '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js' | script_tag }} - - {% include 'rf-auto' %} - {% endif %} -
+ + + + + {% if section.settings.product_description_position == 'right' %} {%- assign position = 'right' -%} @@ -230,75 +178,9 @@
-
-
-

Match these colours

-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ 'color-thief.min.js' | asset_url | script_tag }} - -
-
-
- -
-
- -
-
-

Museum-quality giclée print on premium, heavyweight art paper. Choose from unframed or framed in black and white.

-
-
-
-
-
-
- -
-
- -
-
-

Our frames are handmade from high-quality ash, milled with simple, clean lines and presented with a satin finish.

-
-
-
+ + + {% if section.settings.product_description_position == 'below' %} {%- assign position = 'below' -%} @@ -306,11 +188,10 @@ {% endif %}
-{% unless product == empty %} - -{% endunless %} + + + + diff --git a/snippets/app_wishlist-king.liquid b/snippets/app_wishlist-king.liquid new file mode 100644 index 0000000..06cecc2 --- /dev/null +++ b/snippets/app_wishlist-king.liquid @@ -0,0 +1,844 @@ + + +{% raw %} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{% endraw %} + + + + diff --git a/snippets/appmate-wishlist-king.liquid b/snippets/appmate-wishlist-king.liquid new file mode 100644 index 0000000..408d79e --- /dev/null +++ b/snippets/appmate-wishlist-king.liquid @@ -0,0 +1,962 @@ +{% assign wkShopName = shop.name | replace: '&', '&' %} + + + +{% raw %} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{% endraw %} + + + + + diff --git a/snippets/cart-script.liquid b/snippets/cart-script.liquid new file mode 100644 index 0000000..be0f0f1 --- /dev/null +++ b/snippets/cart-script.liquid @@ -0,0 +1,69 @@ + + +{% comment %} {% endcomment %} + + + \ No newline at end of file diff --git a/snippets/get-variants-with-quantity-json.liquid b/snippets/get-variants-with-quantity-json.liquid new file mode 100644 index 0000000..be7f638 --- /dev/null +++ b/snippets/get-variants-with-quantity-json.liquid @@ -0,0 +1,14 @@ +{% assign variants_with_quantity_json = product.variants | json %} +{% unless variants_with_quantity_json contains 'inventory_quantity' %} + {% for variant in product.variants %} + {% assign replace_hook_variant_id = '"id":' | append: variant.id %} + {% assign replace_id_plus_inventory = replace_hook_variant_id | append: ',' | append: '"inventory_quantity":' | append: variant.inventory_quantity %} + {% assign variants_with_quantity_json = variants_with_quantity_json | replace: replace_hook_variant_id, replace_id_plus_inventory %} + {% endfor %} +{% endunless %} + + +{% comment %}
+    {{variants_with_quantity_json}}
+
{% endcomment %} + diff --git a/snippets/menu.liquid b/snippets/menu.liquid index 7ccca0d..4f60184 100644 --- a/snippets/menu.liquid +++ b/snippets/menu.liquid @@ -1,11 +1,12 @@