1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9525],{30331:(e,a,o)=>{o.d(a,{L:()=>d});var t=o(37876),l=o(14232),i=o(84034),r=o(88038),n=o(59874);let d=e=>{let{appliancesAction:a,locale:o,myAuthUrl:d,isOpen:s,onClose:c,linkType:g="registration"}=e,[p,w]=(0,l.useState)(""),u=(null==a?void 0:a.brands)&&Object.keys(a.brands).length>0,{globalConfig:{brandDomains:b}}=(0,n.h5)();return((0,l.useEffect)(()=>{if(u){let e=Object.keys(a.brands)[0],o=a.brands[e];w((null==o?void 0:o.brandId)||e)}},[a,u]),u)?(0,t.jsx)(i.ImageCardSwitchModal,{isOpen:s,onClose:c,modalContentData:a,onItemSelect:e=>{w(e.brandId||"")},onModalSubmit:()=>{var e;let t;if(!p||!(null==a?void 0:a.brands))return void c();let l=Object.values(a.brands).find(e=>e.brandId===p);if(!l)return void c();let i=null==(e=l.brandId)?void 0:e.toLowerCase(),n=(null==b?void 0:b[i])||(null==b?void 0:b.breville)||"";switch(g){case"ftbp":t=l.ftbpPageLink||l.link||"";break;case"shop":t=l.shop||"";break;default:t=l.link||""}if(t){let e=(0,r.p_)("".concat(o.toLowerCase(),"/").concat(t),{},n,d);window.open(e,"_blank")}c()},activeBrandId:p}):null}},38533:(e,a,o)=>{o.d(a,{O:()=>w});var t=o(14232),l=o(59874),i=o(43454),r=o(25671);let n=function(e,a,o){var t,l,r;let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d={region:a,locale:o,module:e,action:"view",loadTime:performance.now(),...n};(null==(l=window.digitalData)||null==(t=l.page)?void 0:t.globalProfileSettings)||(window.digitalData=window.digitalData||{},window.digitalData.page=window.digitalData.page||{},window.digitalData.page.globalProfileSettings={});let s="GPS ".concat(g(e)," View");window.digitalData.page.globalProfileSettings[s]=d,(0,i.IZ)(s,d),delete window.digitalData.page.globalProfileSettings[s],(null==(r=window.newrelic)?void 0:r.addPageAction)&&window.newrelic.addPageAction("GPSPageLoad",d)},d=function(e,a,o,t){var l,r,n;let d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s={region:o,locale:t,module:e,action:a,timestamp:new Date().toISOString(),...d};(null==(r=window.digitalData)||null==(l=r.page)?void 0:l.globalProfileSettings)||(window.digitalData=window.digitalData||{},window.digitalData.page=window.digitalData.page||{},window.digitalData.page.globalProfileSettings={});let c="GPS ".concat(g(e)," ").concat(p(a));window.digitalData.page.globalProfileSettings[c]=s,(0,i.IZ)(c,s),delete window.digitalData.page.globalProfileSettings[c],(null==(n=window.newrelic)?void 0:n.addPageAction)&&window.newrelic.addPageAction("GPS".concat(g(e)).concat(p(a)),s)},s=function(e,a,o,t){var l,n,d,s;let c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},p={region:o,locale:c.locale||"",module:a,action:"error",errorType:(null==e?void 0:e.name)||"APIError",errorCode:(null==e?void 0:e.code)||(null==e||null==(l=e.status)?void 0:l.toString())||"UNKNOWN",errorMessage:(null==e?void 0:e.message)||"Unknown error",apiEndpoint:t,timestamp:new Date().toISOString(),...c};(null==(d=window.digitalData)||null==(n=d.page)?void 0:n.globalProfileSettings)||(window.digitalData=window.digitalData||{},window.digitalData.page=window.digitalData.page||{},window.digitalData.page.globalProfileSettings={});let w="GPS ".concat(g(a)," API Error");window.digitalData.page.globalProfileSettings[w]=p,(0,i.IZ)(w,p),delete window.digitalData.page.globalProfileSettings[w],(null==(s=window.newrelic)?void 0:s.noticeError)&&window.newrelic.noticeError(e,{...p,module:"gps-".concat(a)}),r.A.sendToNewRelic("GPS ".concat(g(a)," API Error"),p,c.correlationId)},c=function(e,a,o,t){let l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};d("subscriptions",e,o,t,{subscriptionId:a,...l})};function g(e){return({dashboard:"Dashboard",accountSettings:"Account Settings",address:"Address",orders:"Orders",subscriptions:"Subscriptions",coffeeSavings:"Coffee Savings",myAppliances:"My Appliances",cashbackRewards:"Cashback Rewards"})[e]||e}function p(e){return e.charAt(0).toUpperCase()+e.slice(1)}let w=e=>{let{globalConfig:a}=(0,l.h5)(),{countryCode:o,locale:g}=a||{};(0,t.useEffect)(()=>{o&&g&&(window.__gpsErrorHandlerSetup||(window.addEventListener("error",e=>{var a,t,l,i,n,d;if((null==(t=e.error)||null==(a=t.stack)?void 0:a.includes("/GPS/"))||(null==(l=e.filename)?void 0:l.includes("/GPS/"))){let a={region:o,locale:g,module:"dashboard",action:"error",errorType:"ConsoleError",errorMessage:(null==(i=e.error)?void 0:i.message)||e.message,errorStack:null==(n=e.error)?void 0:n.stack,filename:e.filename,lineno:e.lineno,colno:e.colno,timestamp:new Date().toISOString()};(null==(d=window.newrelic)?void 0:d.noticeError)&&window.newrelic.noticeError(e.error||Error(e.message),a),r.A.sendToNewRelic("GPS Console Error",a)}}),window.__gpsErrorHandlerSetup=!0))},[o,g]);let p=(0,t.useCallback)(a=>{o&&g&&n(e,o,g,a)},[e,o,g]),w=(0,t.useCallback)((a,t)=>{o&&g&&d(e,a,o,g,t)},[e,o,g]),u=(0,t.useCallback)((a,t,l)=>{o&&g&&s(a,e,o,t,{locale:g,...l})},[e,o,g]);return{trackPageView:p,trackAction:w,trackAPIError:u,trackAddressValidationError:(0,t.useCallback)(e=>{o&&g&&((e,a,o)=>{var t,l,r;let n={region:a,locale:o,module:"address",action:"error",errorType:"AddressValidationError",validationErrorType:e.type,validationField:e.field,validationMessage:e.message,timestamp:new Date().toISOString()};(null==(l=window.digitalData)||null==(t=l.page)?void 0:t.globalProfileSettings)||(window.digitalData=window.digitalData||{},window.digitalData.page=window.digitalData.page||{},window.digitalData.page.globalProfileSettings={});let d="GPS Address Validation Failed";window.digitalData.page.globalProfileSettings[d]=n,(0,i.IZ)(d,n),delete window.digitalData.page.globalProfileSettings[d],(null==(r=window.newrelic)?void 0:r.addPageAction)&&window.newrelic.addPageAction("GPSAddressValidationFailed",n)})(e,o,g)},[o,g]),trackSubscriptionAction:(0,t.useCallback)((e,a,t)=>{o&&g&&c(e,a,o,g,t)},[o,g]),region:o,locale:g}}},84375:(e,a,o)=>{o.d(a,{k:()=>i});var t=o(37876);o(14232);var l=o(84034);let i=e=>{let{count:a=10,height:o=20}=e;return(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.5rem"},children:Array.from({length:a},(e,a)=>100-10*a).map(e=>(0,t.jsx)(l.Skeleton,{width:"".concat(e,"%"),height:o},e))})}},88038:(e,a,o)=>{o.d(a,{Jv:()=>r,p_:()=>n});var t=o(99742);let l="/{{locale}}/product-registration",i="true"===t.env.NEXT_ENABLE_SUPPORT_PRODUCTHUB_ROUTE?"/{{locale}}/support-legacy/producthub/{{webParentCode}}":"/{{locale}}/producthub/{{webParentCode}}",r={sage:{support:"https://support.sageappliances.com/s/?language={{locale}}®ion={{country}}&brand=breville",parts:"/{{locale}}/shop/{{webCategory}}/parts/{{webParentCode}}",accessories:"/{{locale}}/shop/{{accessoriesName}}/accessories",supportHub:i,shop:"/{{locale}}/shop/{{webParentCode}}",productRegistration:l},breville:{support:"https://support.breville.com/s/?language={{locale}}®ion={{country}}&brand=breville",parts:"/{{locale}}/shop/{{webCategory}}/parts/{{webParentCode}}",accessories:"/{{locale}}/shop/{{accessoriesName}}/accessories",supportHub:i,shop:"/{{locale}}/shop/{{webParentCode}}",productRegistration:l},baratza:{support:"https://support.baratza.com/s/?language={{locale}}®ion={{country}}&brand=baratza",parts:"/{{locale}}/landing/product/parts",accessories:"/{{locale}}/landing/product/accessories",supportHub:"https://support.baratza.com/s/?language={{locale}}®ion={{country}}&brand=baratza",shop:"/{{locale}}/landing/product/grinders",productRegistration:l},lelit:{support:"https://support.lelit.com/s/?language={{locale}}®ion={{country}}&brand=lelit",accessories:"/{{locale}}/shopcoffee/accessories",supportHub:"https://support.lelit.com/s/?language={{locale}}®ion={{country}}&brand=lelit",shop:"/{{locale}}/shopcoffee/{{webParentCode}}",productRegistration:l}};function n(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,t=arguments.length>3?arguments[3]:void 0,l=e;for(let[e,o]of Object.entries(a))l=l.replaceAll(RegExp("\\{\\{?\\s*".concat(e,"\\s*\\}\\}?"),"g"),null!=o?o:"");if(o&&(l="".concat(o.replace(/\/$/,""),"/").concat(l.replace(/^\//,""))),t&&o!==window.location.origin){let e=new URL(t);e.searchParams.set("action","session_transfer"),e.searchParams.set("forwarding_url",l),l=e.toString()}return l}},91351:(e,a,o)=>{o.d(a,{k:()=>d});var t=o(37876),l=o(14232),i=o(84034),r=o(30331),n=o(59874);let d=e=>{let{title:a,cta:o,children:d,brandData:s}=e,[c,g]=(0,l.useState)(!1),{globalConfig:{locale:p,myAuthUrl:w=""}}=(0,n.h5)(),u=o&&s?{...o,onClick:e=>{(null==s?void 0:s.brands)&&Object.keys(s.brands).length>0&&(null==e||e.preventDefault(),g(!0))}}:o;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"profile-content-wrapper",children:[(0,t.jsxs)("div",{className:"profile-content-header",children:[(0,t.jsxs)(i.Text,{type:"h2",tag:"h1",className:"profile-content-header-title",children:[" ",a," "]}),u&&(0,t.jsx)(i.ButtonV2,{...u})]}),(0,t.jsx)("div",{className:"profile-content-holder",children:d})]}),(0,t.jsx)(r.L,{appliancesAction:s,locale:p,myAuthUrl:w,isOpen:c,onClose:()=>g(!1)})]})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.