!function(){var e=document.createElement("style");e.innerHTML='[data-v-6b7a10c6]:root{--font-regular: "proxima_nova_regular", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--font-semibold: "proxima_nova_semibold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--font-light: "proxima_nova_light", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--font-bold: "proxima_nova_bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--font-black: "proxima_nova_black", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--grey-ultra-dark: #424242;--grey-dark: #626262;--grey-medium: #828282;--grey-light: #c2c2c2;--grey-ultra-light: #f2f2f2;--grey-1: #2e2e2e;--grey-5: #cacaca;--grey-6: #efefef;--white: #ffffff;--transparent: rgba(255, 255, 255, 0);--coral-dark: #ff271e;--coral: #ff6458;--coral-light: #ffefee;--green: #3cb064;--amber: #e6b94f;--accent-color: var(--coral);--error-color: var(--coral-dark);--warning-color: var(--amber);--success-color: var(--green);--background-color: var(--grey-ultra-light);--font-color: var(--grey-dark);--font-accent-color: var(--coral);--font-inverted-color: var(--white);--border-color: var(--grey-light);--link-color: var(--grey-dark);--link-hover-color: var(--grey-ultra-dark);--overlay-color: rgba(255, 255, 255, .7);--shadow-color: rgba(0, 0, 0, .2);--font-size: 1rem;--font-size-12: .75rem;--font-size-14: .875rem;--font-size-16: 1rem;--font-size-20: 1.25rem;--font-size-24: 1.5rem;--font-size-32: 2rem;--font-size-48: 3rem;--font-size-64: 4rem;--font-size-96: 6rem;--line-height: 1.5rem;--line-height-12: 1.3125rem;--line-height-14: 1.3125rem;--line-height-16: 1.5rem;--line-height-20: 1.5625rem;--line-height-24: 1.875rem;--line-height-32: 2.5rem;--line-height-48: 3.75rem;--line-height-1em: 1em;--line-height-125em: 1.25em;--space-unit: .25rem;--space-0: calc(var(--space-unit) * 0);--space-1: calc(var(--space-unit) * 1);--space-2: calc(var(--space-unit) * 2);--space-3: calc(var(--space-unit) * 3);--space-4: calc(var(--space-unit) * 4);--space-5: calc(var(--space-unit) * 5);--space-6: calc(var(--space-unit) * 6);--space-7: calc(var(--space-unit) * 7);--space-8: calc(var(--space-unit) * 8);--space-9: calc(var(--space-unit) * 9);--space-10: calc(var(--space-unit) * 10);--space-12: calc(var(--space-unit) * 12);--space-16: calc(var(--space-unit) * 16);--space-20: calc(var(--space-unit) * 20);--space-24: calc(var(--space-unit) * 24);--uppercase-letter-spacing: .1em;--button-border-radius: 20px;--container-border-radius: 8px;--circle-border-radius: 50%;--box-shadow-blur: 4px;--box-shadow-spread: 8px;--ctf-link-decoration: underline;--ctf-link-color: var(--coral)}[data-v-6b7a10c6]:export{extraSmallBreakpoint:320px;smallBreakpoint:425px;mobileBreakpoint:768px;tabletBreakpoint:970px;desktopBreakpoint:1200px;largeBreakpoint:1400px;extraLargeBreakpoint:1600px;xxlBreakpoint:1800px}.content-justification-override[data-v-6b7a10c6]{justify-content:flex-start!important}@media (max-width: 970px){.content-justification-override[data-v-6b7a10c6]{justify-content:center!important}}.product-unavailable-message-outer[data-v-6b7a10c6]{display:flex;box-sizing:border-box;margin-top:8px}@media (min-width: 1200px){.product-unavailable-message-outer[data-v-6b7a10c6]{justify-content:flex-start}}@media (min-width: 768px) and (max-width: 1200px){.product-unavailable-message-outer[data-v-6b7a10c6]{justify-content:center}}.product-unavailable-message-outer .product-unavailable-message-inner[data-v-6b7a10c6]{background:var(--coral-light);border-radius:4px}.product-unavailable-message-outer .product-unavailable-message-inner .message[data-v-6b7a10c6]{color:var(--coral);margin-bottom:0!important;font-style:normal;font-weight:normal;font-size:14px;line-height:125%;padding:8px 12px!important}@media (min-width: 310px) and (max-width: 375px){.product-unavailable-message-outer .product-unavailable-message-inner .message[data-v-6b7a10c6]{padding:8px 24px!important;text-align:center}}.product-unavailable-message-outer .product-unavailable-message-inner .message .text[data-v-6b7a10c6]{margin-bottom:0!important}.product-unavailable-message-outer .product-unavailable-message-inner .message .shop-available-link[data-v-6b7a10c6]{color:var(--coral-dark);text-decoration:underline;display:inline-block;margin-top:10px}.product-unavailable-message-outer .product-unavailable-message-inner .message .shop-available-link[data-v-6b7a10c6]:hover{text-decoration:none}[data-v-1f06c187]:root{--font-regular: "proxima_nova_regular", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--font-semibold: "proxima_nova_semibold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--font-light: "proxima_nova_light", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--font-bold: "proxima_nova_bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--font-black: "proxima_nova_black", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--grey-ultra-dark: #424242;--grey-dark: #626262;--grey-medium: #828282;--grey-light: #c2c2c2;--grey-ultra-light: #f2f2f2;--grey-1: #2e2e2e;--grey-5: #cacaca;--grey-6: #efefef;--white: #ffffff;--transparent: rgba(255, 255, 255, 0);--coral-dark: #ff271e;--coral: #ff6458;--coral-light: #ffefee;--green: #3cb064;--amber: #e6b94f;--accent-color: var(--coral);--error-color: var(--coral-dark);--warning-color: var(--amber);--success-color: var(--green);--background-color: var(--grey-ultra-light);--font-color: var(--grey-dark);--font-accent-color: var(--coral);--font-inverted-color: var(--white);--border-color: var(--grey-light);--link-color: var(--grey-dark);--link-hover-color: var(--grey-ultra-dark);--overlay-color: rgba(255, 255, 255, .7);--shadow-color: rgba(0, 0, 0, .2);--font-size: 1rem;--font-size-12: .75rem;--font-size-14: .875rem;--font-size-16: 1rem;--font-size-20: 1.25rem;--font-size-24: 1.5rem;--font-size-32: 2rem;--font-size-48: 3rem;--font-size-64: 4rem;--font-size-96: 6rem;--line-height: 1.5rem;--line-height-12: 1.3125rem;--line-height-14: 1.3125rem;--line-height-16: 1.5rem;--line-height-20: 1.5625rem;--line-height-24: 1.875rem;--line-height-32: 2.5rem;--line-height-48: 3.75rem;--line-height-1em: 1em;--line-height-125em: 1.25em;--space-unit: .25rem;--space-0: calc(var(--space-unit) * 0);--space-1: calc(var(--space-unit) * 1);--space-2: calc(var(--space-unit) * 2);--space-3: calc(var(--space-unit) * 3);--space-4: calc(var(--space-unit) * 4);--space-5: calc(var(--space-unit) * 5);--space-6: calc(var(--space-unit) * 6);--space-7: calc(var(--space-unit) * 7);--space-8: calc(var(--space-unit) * 8);--space-9: calc(var(--space-unit) * 9);--space-10: calc(var(--space-unit) * 10);--space-12: calc(var(--space-unit) * 12);--space-16: calc(var(--space-unit) * 16);--space-20: calc(var(--space-unit) * 20);--space-24: calc(var(--space-unit) * 24);--uppercase-letter-spacing: .1em;--button-border-radius: 20px;--container-border-radius: 8px;--circle-border-radius: 50%;--box-shadow-blur: 4px;--box-shadow-spread: 8px;--ctf-link-decoration: underline;--ctf-link-color: var(--coral)}[data-v-1f06c187]:export{extraSmallBreakpoint:320px;smallBreakpoint:425px;mobileBreakpoint:768px;tabletBreakpoint:970px;desktopBreakpoint:1200px;largeBreakpoint:1400px;extraLargeBreakpoint:1600px;xxlBreakpoint:1800px}@media (min-width: 768px) and (max-width: calc(1200px - 1px)){.email-form[data-v-1f06c187]{width:50%;margin-top:-18px}}.email-form svg path[data-v-1f06c187]{fill:#fff!important}@media (min-width: 768px) and (max-width: calc(1200px - 1px)){.email-form .email-box-desktop-container[data-v-1f06c187]{display:none}}.email-form .email-form-checkbox[data-v-1f06c187]{display:flex;flex-direction:row;text-align:left;margin-top:var(--space-3)}@media (min-width: 768px) and (max-width: calc(1200px - 1px)){.email-form .email-form-checkbox[data-v-1f06c187]{display:none}}.email-form .email-form-checkbox-tablet[data-v-1f06c187]{display:flex;flex-direction:row;text-align:left;margin-top:0;align-self:flex-start}@media (min-width: calc(1200px)){.email-form .email-form-checkbox-tablet[data-v-1f06c187]{display:none}}@media (min-width: 768px) and (max-width: calc(1200px - 1px)){.email-form .form-class[data-v-1f06c187]{display:flex}}.email-form .error-message-tablet[data-v-1f06c187]{display:none}@media (min-width: 768px) and (max-width: calc(1200px - 1px)){.email-form .error-message-tablet[data-v-1f06c187]{display:flex;margin-top:var(--space-2);color:var(--coral);align-self:flex-start}}.email-form .error-message[data-v-1f06c187]{text-align:left;margin-top:var(--space-1);color:var(--coral)}@media (min-width: 768px) and (max-width: calc(1200px - 1px)){.email-form .error-message[data-v-1f06c187]{display:none}}.email-form .submit-btn[data-v-1f06c187]{width:100%;margin-top:var(--space-2)}@media (min-width: 768px) and (max-width: calc(1200px - 1px)){.email-form .submit-btn[data-v-1f06c187]{margin-left:10px;width:40%;margin-top:var(--space-0);height:30%}}.email-form .success-container[data-v-1f06c187]{display:flex;justify-content:center}@media (min-width: 320px) and (max-width: calc(768px - 1px)){.email-form .success-container[data-v-1f06c187]{justify-content:left}}.email-form .success-msg[data-v-1f06c187]{margin:0 var(--space-6) 0 0;text-align:left;font-size:14px;line-height:150%}@media (min-width: 768px) and (max-width: calc(1200px - 1px)){.email-form .success-msg[data-v-1f06c187]{margin-top:var(--space-2)}}.email-form .af-checkmark[data-v-1f06c187]{font-size:var(--space-6);margin:0 var(--space-6) 0 var(--space-6);align-self:center}@media (min-width: 768px) and (max-width: calc(1200px - 1px)){.email-form .af-checkmark[data-v-1f06c187]{margin-left:0;margin-top:var(--space-2)}}@media (min-width: 320px) and (max-width: calc(768px - 1px)){.email-form .af-checkmark[data-v-1f06c187]{margin-left:0}}.email-form .email-box-tablet[data-v-1f06c187]{display:flex;justify-content:center;align-items:center}@media (min-width: 768px) and (max-width: calc(1200px - 1px)){.email-form .email-box-tablet[data-v-1f06c187]{display:flex;flex-direction:column;width:60%}}@media (min-width: 1200px){.email-form .email-box-tablet[data-v-1f06c187]{display:none}}@media (max-width: calc(768px - 1px)){.email-form .email-box-tablet[data-v-1f06c187]{display:none}}.email-form .email-box-tablet .email-sub[data-v-1f06c187]{margin-top:var(--space-1)}.email-form .email-box[data-v-1f06c187]{display:flex;justify-content:center;align-items:center}.email-form .checkbox-styling[data-v-1f06c187]{min-width:var(--space-4)!important;align-self:flex-start}.email-form .text-label[data-v-1f06c187]{margin-left:var(--space-3)}.email-form .text-label a[data-v-1f06c187]{text-decoration:underline}[data-v-1c49821c]:root{--font-regular: "proxima_nova_regular", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--font-semibold: "proxima_nova_semibold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--font-light: "proxima_nova_light", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--font-bold: "proxima_nova_bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--font-black: "proxima_nova_black", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--grey-ultra-dark: #424242;--grey-dark: #626262;--grey-medium: #828282;--grey-light: #c2c2c2;--grey-ultra-light: #f2f2f2;--grey-1: #2e2e2e;--grey-5: #cacaca;--grey-6: #efefef;--white: #ffffff;--transparent: rgba(255, 255, 255, 0);--coral-dark: #ff271e;--coral: #ff6458;--coral-light: #ffefee;--green: #3cb064;--amber: #e6b94f;--accent-color: var(--coral);--error-color: var(--coral-dark);--warning-color: var(--amber);--success-color: var(--green);--background-color: var(--grey-ultra-light);--font-color: var(--grey-dark);--font-accent-color: var(--coral);--font-inverted-color: var(--white);--border-color: var(--grey-light);--link-color: var(--grey-dark);--link-hover-color: var(--grey-ultra-dark);--overlay-color: rgba(255, 255, 255, .7);--shadow-color: rgba(0, 0, 0, .2);--font-size: 1rem;--font-size-12: .75rem;--font-size-14: .875rem;--font-size-16: 1rem;--font-size-20: 1.25rem;--font-size-24: 1.5rem;--font-size-32: 2rem;--font-size-48: 3rem;--font-size-64: 4rem;--font-size-96: 6rem;--line-height: 1.5rem;--line-height-12: 1.3125rem;--line-height-14: 1.3125rem;--line-height-16: 1.5rem;--line-height-20: 1.5625rem;--line-height-24: 1.875rem;--line-height-32: 2.5rem;--line-height-48: 3.75rem;--line-height-1em: 1em;--line-height-125em: 1.25em;--space-unit: .25rem;--space-0: calc(var(--space-unit) * 0);--space-1: calc(var(--space-unit) * 1);--space-2: calc(var(--space-unit) * 2);--space-3: calc(var(--space-unit) * 3);--space-4: calc(var(--space-unit) * 4);--space-5: calc(var(--space-unit) * 5);--space-6: calc(var(--space-unit) * 6);--space-7: calc(var(--space-unit) * 7);--space-8: calc(var(--space-unit) * 8);--space-9: calc(var(--space-unit) * 9);--space-10: calc(var(--space-unit) * 10);--space-12: calc(var(--space-unit) * 12);--space-16: calc(var(--space-unit) * 16);--space-20: calc(var(--space-unit) * 20);--space-24: calc(var(--space-unit) * 24);--uppercase-letter-spacing: .1em;--button-border-radius: 20px;--container-border-radius: 8px;--circle-border-radius: 50%;--box-shadow-blur: 4px;--box-shadow-spread: 8px;--ctf-link-decoration: underline;--ctf-link-color: var(--coral)}[data-v-1c49821c]:export{extraSmallBreakpoint:320px;smallBreakpoint:425px;mobileBreakpoint:768px;tabletBreakpoint:970px;desktopBreakpoint:1200px;largeBreakpoint:1400px;extraLargeBreakpoint:1600px;xxlBreakpoint:1800px}.product-risky-eta-message.notify-subscription[data-v-1c49821c]{text-align:left!important}.product-risky-eta-message .content[data-v-1c49821c]{padding:var(--space-3);box-sizing:border-box}.product-risky-eta-message .content h3[data-v-1c49821c]:first-letter{text-transform:uppercase}.product-risky-eta-message .content h3[data-v-1c49821c]{font-weight:bold}.product-risky-eta-message .content .message[data-v-1c49821c]{color:var(--grey-ultra-dark)}.product-risky-eta-message .content .message .linebreak[data-v-1c49821c]{margin-bottom:var(--space-2)}.product-risky-eta-message .content .notify-form-tablet[data-v-1c49821c]{display:none}@media (min-width: 768px) and (max-width: calc(1200px - 1px)){.product-risky-eta-message .content .notify-form-tablet[data-v-1c49821c]{display:flex;justify-content:space-between}}.product-risky-eta-message .content .notify-form-tablet .notify-container-tablet[data-v-1c49821c]{width:50%}.product-risky-eta-message .content .stock-out-msg[data-v-1c49821c]{font-style:normal;text-transform:lowercase;margin-top:var(--space-2);font-size:var(--space-5);line-height:19px;letter-spacing:var(--space-0)}@media (min-width: 768px) and (max-width: calc(1200px - 1px)){.product-risky-eta-message .content .stock-out-msg[data-v-1c49821c]{margin-top:var(--space-0)}}.product-risky-eta-message .content .signup-msg[data-v-1c49821c]{font-size:14px;margin-top:var(--space-3);margin-bottom:var(--space-0)}@media (min-width: 768px) and (max-width: calc(1200px - 1px)){.product-risky-eta-message .content .signup-msg[data-v-1c49821c]{display:none}}@media (min-width: 768px) and (max-width: calc(1200px - 1px)){.product-risky-eta-message .content .signup-msg-tablet[data-v-1c49821c]{margin-top:var(--space-2);margin-bottom:var(--space-0);padding-right:20px}}.product-risky-eta-message .content span[data-v-1c49821c]{white-space:pre-line}.product-risky-eta-message.skeleton[data-v-1c49821c]{color:transparent}.product-risky-eta-message[data-v-1c49821c]{box-sizing:border-box;background:var(--grey-ultra-light);border-radius:var(--space-1);margin-top:var(--space-4);font-style:normal;font-weight:normal;font-size:14px;line-height:150%}.product-risky-eta-message .cta[data-v-1c49821c]{display:inline}.product-risky-eta-message .cta .button-text[data-v-1c49821c]{display:inline!important}.product-risky-eta-message .cta[data-v-1c49821c]{float:auto}.product-risky-eta-message .notify-form[data-v-1c49821c]{text-align:center;margin-top:var(--space-5)}@media (min-width: 768px) and (max-width: calc(1200px - 1px)){.product-risky-eta-message .notify-form[data-v-1c49821c]{margin-top:var(--space-0);display:none}}.product-risky-eta-message .similar-link[data-v-1c49821c]{margin-top:var(--space-4);display:block;text-align:center;font-size:14px;width:-moz-fit-content;width:fit-content}@media (min-width: 768px) and (max-width: calc(1200px - 1px)){.product-risky-eta-message .similar-link[data-v-1c49821c]{margin-top:var(--space-2);text-align:left}}.product-risky-eta-message .similar-link-desktop[data-v-1c49821c]{margin-left:calc(50% - 50px)}@media (min-width: 768px) and (max-width: calc(1200px - 1px)){.product-risky-eta-message .similar-link-desktop[data-v-1c49821c]{display:none}}.product-risky-eta-message .notify-content[data-v-1c49821c]{padding:var(--space-5)}@media (min-width: 768px) and (max-width: calc(1200px - 1px)){.product-risky-eta-message .notify-content[data-v-1c49821c]{padding:var(--space-10) var(--space-5) var(--space-10) var(--space-5)}}\n',document.head.appendChild(e),System.register(["./index-legacy.9b208b5a.js","./InjectionKeys-legacy.93e8f960.js","./vendor-legacy.518112b9.js","./ContentfulCTAButton-legacy.3bf1041b.js","./TextTemplate-legacy.2c14e973.js"],(function(e){"use strict";var a,t,r,i,o,s,c,n,l,m,p,d,u,g,f,v,b,h,x,y,k,S,w,I,E,U,M,B,C,j,A,_,z,R,H;return{setters:[function(e){a=e.b,t=e.C,r=e.y,i=e.ad,o=e.aG,s=e.T,c=e.a4,n=e.G,l=e.aF},function(e){m=e.P},function(e){p=e.ag,d=e.e,u=e.B,g=e.f,f=e.h,v=e.i,b=e.t,h=e.C,x=e.n,y=e.y,k=e.q,S=e.ad,w=e.r,I=e.w,E=e.an,U=e.aV,M=e.a3,B=e.a6,C=e.p,j=e.j,A=e.g,_=e.a2,z=e.m},function(e){R=e.default},function(e){H=e.T}],execute:function(){const T={name:"ProductUnavailableMessage",props:{isProductAvailable:{type:Boolean,default:!0},isUpdatedGallery:{type:Boolean,default:!1}},methods:{formattedCountryName:()=>t.getFormattedCountryNameByCurrencyId(r.getCurrencyId())},setup(){const e=p(m);return{shopSimilarItemsRoute:d((()=>e?.value||""))}}},F={class:"product-unavailable-message-inner"},L={class:"message"},P={class:"text"},O=S("Shop Similar Available Items");e("a",a(T,[["render",function(e,a,t,r,i,o){const s=u("router-link");return t.isProductAvailable?y("",!0):(g(),f("div",{key:0,class:k(["product-unavailable-message-outer",{"content-justification-override":!t.isUpdatedGallery}])},[v("div",F,[v("div",L,[v("p",P,"Sorry, this item is currently unavailable in "+b(o.formattedCountryName())+".",1),r.shopSimilarItemsRoute?(g(),h(s,{key:0,to:r.shopSimilarItemsRoute,class:"shop-available-link","aria-label":"Shop Similar Availabe Items"},{default:x((()=>[O])),_:1},8,["to"])):y("",!0)])])],2))}],["__scopeId","data-v-6b7a10c6"]]));const N={name:"NotifyMeBoxForm",props:{center:{type:Boolean,default:!1},sending:{type:Boolean,default:!1},done:{type:Boolean,default:!1},message:{type:String,default:""}},setup(){const e=w(""),a=w(!1);let t=w(!1),o=w(!1),s=w({});const c=d((()=>r.isCanada())),{called:n}=i();return{email:e,validationError:t,selected:o,subscriptionErrorMsg:s,isCountryCanada:c,called:n,newsletterSelected:a}},methods:{subscribe(e){this.subscriptionErrorMsg={};const a=this.email.trim();this.sending||this.done||(this.email||(this.subscriptionErrorMsg.invalidEmail="Please enter your email",this.validationError=!0),o(a)||this.subscriptionErrorMsg.invalidEmail||(this.subscriptionErrorMsg.invalidEmail="Please enter a valid email address",this.validationError=!0),!this.selected&&this.isCountryCanada&&(this.subscriptionErrorMsg.checkboxRequired="Please accept the Terms & Conditions",this.validationError=!0),0===Object.keys(this.subscriptionErrorMsg).length&&(this.validationError=!1,this.newsletterSelected&&!this.called&&s.heapIdentifyEmail(a),r.isUS()&&(this.newsletterSelected=!0),this.$emit("submitEmail",a,this.newsletterSelected)),e.preventDefault())},errorMessage(e){return this.subscriptionErrorMsg[e]}},watch:{message:{handler(e){e&&(this.subscriptionErrorMsg.unsuccessfulSubscription=e)}},done:{handler(e){e&&0===Object.keys(this.subscriptionErrorMsg).length&&(this.email="",this.subscriptionErrorMsg={})}}}},$=e=>(C("data-v-1f06c187"),e=e(),j(),e),q={class:"email-form"},V={class:"email-box-desktop-container"},Y={key:0,class:"email-box"},G={class:"accent error-message"},D={key:1,class:"accent error-message"},K={key:2},W={class:"email-form-checkbox"},J=$((()=>v("label",{class:"text-label",for:"termsAgreed"},[S(" I agree to the "),v("a",{href:"/tou",target:"_blank"},"Terms & Conditions"),S(". ")],-1))),Q={key:0,class:"accent error-message"},X={class:"email-form-checkbox"},Z=$((()=>v("label",{class:"text-label",for:"email-sub"}," Yes, I would like to receive emails about special offers and new products from Article. I understand that I can unsubscribe at any time. ",-1))),ee={key:0,class:"email-box-tablet"},ae={class:"accent error-message-tablet"},te={key:0,class:"accent error-message"},re={key:1},ie={class:"email-form-checkbox-tablet"},oe=$((()=>v("label",{class:"text-label",for:"termsAgreed"},[S(" I agree to the "),v("a",{href:"/tou",target:"_blank"},"Terms & Conditions"),S(". ")],-1))),se={key:0,class:"accent error-message-tablet"},ce={class:"email-form-checkbox-tablet email-sub"},ne=$((()=>v("label",{class:"text-label",for:"email-sub"}," Yes, I would like to receive emails about special offers and new products from Article. I understand that I can unsubscribe at any time. ",-1))),le={key:1,type:"submit",class:"submit-btn"},me={key:0,class:"loader tiny"},pe=S("Notify Me"),de={key:2,class:"success-container"},ue=[$((()=>v("span",{class:"af af-checkmark accent"},null,-1))),$((()=>v("p",{class:"success-msg"},"Success! You’ll receive an email as soon as this item is ready to order.",-1)))];const ge={name:"ProductRiskyETAWarning",props:{messageSlug:{type:String,required:!0},defaultMessage:{type:String,default:""},productId:{type:String,default:null},currencyCode:{type:String,default:""},showOnProductPage:{type:Boolean,default:!1}},components:{ContentfulCTAButton:R,TextTemplate:H,NotifyMeBoxForm:a(N,[["render",function(e,a,t,r,i,o){return g(),f("div",q,[v("form",{onSubmit:a[6]||(a[6]=B((e=>o.subscribe(e)),["prevent"])),class:"form-class"},[v("div",V,[t.done?y("",!0):(g(),f("div",Y,[I(v("input",{type:"text",placeholder:"Your email","onUpdate:modelValue":a[0]||(a[0]=e=>r.email=e),class:k([(r.validationError||t.message)&&"error"])},null,2),[[E,r.email]])])),v("p",G,b(o.errorMessage("invalidEmail")),1),o.errorMessage("unsuccessfulSubscription")?(g(),f("p",D,b(o.errorMessage("unsuccessfulSubscription")),1)):y("",!0),!t.done&&r.isCountryCanada?(g(),f("div",K,[v("div",W,[I(v("input",{id:"termsAgreed",type:"checkbox",class:"checkbox-styling","onUpdate:modelValue":a[1]||(a[1]=e=>r.selected=e)},null,512),[[U,r.selected]]),J]),o.errorMessage("checkboxRequired")?(g(),f("p",Q,b(o.errorMessage("checkboxRequired")),1)):y("",!0),v("div",X,[I(v("input",{id:"email-sub",type:"checkbox",class:"checkbox-styling","onUpdate:modelValue":a[2]||(a[2]=e=>r.newsletterSelected=e)},null,512),[[U,r.newsletterSelected]]),Z])])):y("",!0)]),t.done?y("",!0):(g(),f("div",ee,[I(v("input",{type:"text",placeholder:"Your email","onUpdate:modelValue":a[3]||(a[3]=e=>r.email=e),class:k([(r.validationError||t.message)&&"error"])},null,2),[[E,r.email]]),v("p",ae,b(o.errorMessage("invalidEmail")),1),o.errorMessage("unsuccessfulSubscription")?(g(),f("p",te,b(o.errorMessage("unsuccessfulSubscription")),1)):y("",!0),!t.done&&r.isCountryCanada?(g(),f("div",re,[v("div",ie,[I(v("input",{id:"termsAgreed",type:"checkbox","onUpdate:modelValue":a[4]||(a[4]=e=>r.selected=e),class:"checkbox-styling"},null,512),[[U,r.selected]]),oe]),o.errorMessage("checkboxRequired")?(g(),f("p",se,b(o.errorMessage("checkboxRequired")),1)):y("",!0),v("div",ce,[I(v("input",{id:"email-sub",type:"checkbox",class:"checkbox-styling","onUpdate:modelValue":a[5]||(a[5]=e=>r.newsletterSelected=e)},null,512),[[U,r.newsletterSelected]]),ne])])):y("",!0)])),t.done?(g(),f("div",de,ue)):(g(),f("button",le,[t.sending?(g(),f("span",me)):(g(),f(M,{key:1},[pe],64))]))],32)])}],["__scopeId","data-v-1f06c187"]])},async setup(e){const{storefrontSettings:a}=n(),t=_(),{data:r,loading:i,init:o}=l(e.messageSlug,e.defaultMessage),{subscribeUserEmail:u,subscriptionResult:g,loader:f,done:v}=function(){const e=w({message:"",success:!1}),a=w(!1),t=w(!1),r=A`
    mutation PRODUCT_SUBSCRIBE($email: String!, $productId: String!, $currencyCode: String!, $marketingConsent: Boolean!) {
      productSubscribe(email: $email, productId: $productId, currencyCode: $currencyCode, marketingConsent: $marketingConsent) {
        success
        message
      }
    }
  `;return{subscribeUserEmail:async function(i,o,n,l){t.value=!0;const m=await c(r,{email:i,productId:o,currencyCode:n,marketingConsent:l}),{success:p,message:d}=m.productSubscribe;t.value=!1,e.value={success:p,message:d},p?a.value=p:s.sentryCaptureError(d)},subscriptionResult:e,loader:t,done:a}}(),b=p(m);await o();const h=d((()=>r.value)),x=d((()=>b?.value||"")),y={};y["cta-risky-eta-shop-similar-items"]=t.resolve(x.value).href;const k=d((()=>a.value.notifyme?.enabled));return{message:h,defaultMessage:e.defaultMessage,ctaButtonUrlOverrideMap:y,messageLoading:i,shopSimilarItemsRoute:x,subscribeUserEmail:u,subscriptionResult:g,loader:f,done:v,isNotifyMeEnabled:k,submitEmail:async function(a,t){f.value||(await u(a,e.productId,e.currencyCode,t),s.heapIdentifyEmail(a))},heading:"Out of stock&hellip; but not for long.",subHeading:"Ooh, that <em>is</em> nice. Leave your email and we'll let you know when it's back."}}},fe=e=>(C("data-v-1c49821c"),e=e(),j(),e),ve={class:"content notify-content"},be=["innerHTML"],he=["innerHTML"],xe={class:"notify-form"},ye={class:"notify-form-tablet"},ke={class:"notify-container-tablet"},Se=["innerHTML"],we=S("Shop Similar Items"),Ie=S("Shop Similar Items"),Ee={class:"content"},Ue={class:"message"},Me=fe((()=>v("div",{class:"linebreak"},null,-1))),Be=S("   ");e("P",a(ge,[["render",function(e,a,t,r,i,o){const s=u("NotifyMeBoxForm"),c=u("router-link"),n=u("ContentfulCTAButton"),l=u("TextTemplate");return t.showOnProductPage&&r.isNotifyMeEnabled?(g(),f("div",{key:0,class:k(["product-risky-eta-message notify-subscription",{skeleton:r.messageLoading}])},[v("div",null,[v("div",ve,[v("h3",{class:"message stock-out-msg",innerHTML:r.heading},null,8,be),v("p",{class:"signup-msg",innerHTML:r.subHeading},null,8,he),v("div",xe,[z(s,{sending:r.loader,done:r.done,onSubmitEmail:r.submitEmail,message:r.subscriptionResult?.message},null,8,["sending","done","onSubmitEmail","message"])]),v("div",ye,[v("div",ke,[v("p",{class:"signup-msg-tablet",innerHTML:r.subHeading},null,8,Se),z(c,{class:"accent similar-link",to:r.shopSimilarItemsRoute},{default:x((()=>[we])),_:1},8,["to"])]),z(s,{sending:r.loader,done:r.done,onSubmitEmail:r.submitEmail,message:r.subscriptionResult?.message},null,8,["sending","done","onSubmitEmail","message"])]),z(c,{class:"accent similar-link similar-link-desktop",to:r.shopSimilarItemsRoute},{default:x((()=>[Ie])),_:1},8,["to"])])])],2)):(g(),f("div",{key:1,class:k(["product-risky-eta-message",{skeleton:r.messageLoading}])},[v("div",Ee,[v("div",Ue,[z(l,{template:"string"==typeof r.message?r.message:r.defaultMessage,isMarkdown:!0},{cta:x((({slug:e})=>[z(n,{class:"cta",slug:e,urlOverride:r.ctaButtonUrlOverrideMap[e]},null,8,["slug","urlOverride"])])),linebreak:x((()=>[Me])),space:x((()=>[Be])),_:1},8,["template"])])])],2))}],["__scopeId","data-v-1c49821c"]]))}}}))}();
//# sourceMappingURL=ProductRiskyETAWarning-legacy.e8abc0c7.js.map
