PageSourceSearch

https://www.breville.com/account/_next/static/chunks/9116.ebab72ee5b8f550c.js

js breville.com collected 2026-09-24 09:23:26 UTC 14,575 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9116],{39753:(e,r,s)=>{s.d(r,{A:()=>a});var t=s(14232);let a=e=>{let[r,s]=(0,t.useState)(!1),[a,o]=(0,t.useState)(!1),[l,i]=(0,t.useState)(!1),[d,n]=(0,t.useState)(null),u=(0,t.useCallback)(async r=>{s(!0);try{let s=await e(r);return n(s),o(!1),s}catch(e){o(!0)}finally{s(!1),i(!0)}},[e]);return{data:d,error:a,isFetched:l,loading:r,setLoading:s,setData:n,setError:o,setFetched:i,makeRequest:u}}},49116:(e,r,s)=>{s.r(r),s.d(r,{OrderCard:()=>k,OrderDetailsModal:()=>R,Orders:()=>V});var t=s(37876),a=s(14232),o=s(48230),l=s.n(o),i=s(89099),d=s(7135),n=s(81796),u=s(84357),c=s(54405),p=s(59874),h=s(33882),m=s(74960),b=s(30948),x=s(98351),y=s(51098),g=s(68425),f=s(1002),v=s(39753),j=s(10552),_=s(95068),N=s(12903);async function w(e,r){var s,t;let a=await (0,j.TB)(e,r),o=(null==a?void 0:a.Success)?(0,_.fu)(null!=(s=a.InquiryTypes)?s:[]):null;if(!o)throw Error("No order inquiry type available for this market");let l=await (0,j.en)({inquiryType:o.Value,locale:e,brand:r});return{inquiry:o,codes:null!=(t=null==l?void 0:l.complaintcodes)?t:[]}}let T=()=>{var e;let{t:r}=(0,d.Bd)(),s=(0,i.useRouter)(),{globalConfig:o}=(0,p.h5)(),{aemLocale:l="",locale:n="",brand:u=""}=o,h=(0,a.useMemo)(()=>(l||n).replace("-","_"),[l,n]),m=(0,a.useCallback)(()=>w(h,u),[h,u]),{data:b,loading:x,error:y,isFetched:j,makeRequest:_}=(0,v.A)(m);(0,a.useEffect)(()=>{_({})},[_]);let T=null!=(e=null==b?void 0:b.inquiry)?e:null,k=(0,a.useMemo)(()=>{var e;return null!=(e=null==b?void 0:b.codes)?e:[]},[b]),C=(0,a.useCallback)(e=>{if(!T)return;let r=k.find(r=>r.complaintcode===e);if(!r)return;let t={inquiryType:T.Value,inquiryTypeLabel:T.Label},a=r.subcomplaintcodes.length>0?{...t,screen:"sub-complaint",complaintCode:e}:{...t,screen:"vital-signs",complaintCode:e,subComplaintCode:"",subSubComplaintCode:""};s.push({pathname:(0,g.g2)("/support/create-case",s.locale),query:a})},[T,k,s]);return(0,t.jsxs)("section",{className:"support-hub-orders__issues","data-testid":"support-hub-orders-issues",children:[(0,t.jsx)(c.Text,{tag:"h2",type:"h4",className:"support-hub-orders__issues-heading",children:r("sh-orders-issues-heading","What issue did you have with your order?")}),T&&(0,t.jsx)(c.Text,{tag:"p",type:"p2",className:"support-hub-orders__issues-current","data-testid":"support-hub-orders-issues-inquiry",children:T.Label||T.Value}),y&&(0,t.jsx)(f.W5,{message:r("sh-orders-issues-error","We couldn't load order issue options. Please try again later."),testId:"support-hub-orders-issues-error"}),!y&&(0,t.jsx)(N.lI,{codes:k,onSelect:C,isLoading:x||!j,layout:"inline",loadingMessage:r("sh-orders-issues-loading","Loading order issue options…"),emptyMessage:r("sh-orders-issues-empty","No order issue options are available right now."),testIdPrefix:"support-hub-orders-issue-pill",gridClassName:"support-hub-orders__issues-grid",loadingTestId:"support-hub-orders-issues-loading",emptyTestId:"support-hub-orders-issues-empty"})]})},k=e=>{let{order:r,formatCurrency:s,onViewDetails:o,onCancelOrder:l,onOrderIssue:i}=e,{t:n}=(0,d.Bd)(),u=(0,a.useMemo)(()=>r.thumbnailImages.filter(e=>!!e.src).slice(0,2),[r.thumbnailImages]),p=(0,a.useMemo)(()=>r.items.some(e=>!!e.itemTrackingLink),[r.items]),h=/deliver/i.test(r.status),m=p?n("sh-orders-view-details-track","View Details and Track"):n("sh-orders-view-details","View Details");return(0,t.jsxs)("div",{className:"support-hub-orders__card","data-testid":"support-hub-order-card-".concat(r.orderNumber),children:[(0,t.jsxs)("div",{className:"support-hub-orders__card-header",children:[u.length>0&&(0,t.jsx)("div",{className:"support-hub-orders__card-thumbnails",children:u.map(e=>(0,t.jsx)("div",{className:"support-hub-orders__card-thumbnail",children:(0,t.jsx)(c.AspectRatio,{ratio:"1-1",children:(0,t.jsx)(c.Image,{src:e.src,alt:e.alt||n("sh-orders-thumbnail-alt-fallback","Order item image"),enableFallback:!0})})},e.src))}),(0,t.jsxs)("div",{className:"support-hub-orders__card-meta",children:[(0,t.jsxs)("div",{className:"support-hub-orders__card-title-row",children:[(0,t.jsx)(c.Text,{tag:"h3",type:"p1-bold",className:"support-hub-orders__card-number",children:r.orderNumber}),(0,t.jsx)(c.Text,{tag:"span",type:"p3",className:"support-hub-orders__status support-hub-orders__status--".concat(r.status.toLowerCase().replaceAll(/[^a-z0-9]+/g,"-")),"data-testid":"support-hub-order-status-".concat(r.orderNumber),children:r.status})]}),(0,t.jsx)(c.Text,{tag:"p",type:"p3",className:"support-hub-orders__card-subline",children:"".concat(r.orderDate," • ").concat(s(r.orderTotal))})]})]}),(0,t.jsx)(c.Separator,{margins:"0"}),(0,t.jsxs)("div",{className:"support-hub-orders__card-actions",children:[(0,t.jsx)(c.ButtonV2,{variant:"primary",fill:"borderless",size:"sm",text:m,onClick:()=>o(r),"data-testid":"support-hub-order-details-".concat(r.orderNumber)}),!h&&(0,t.jsx)(c.ButtonV2,{variant:"primary",fill:"borderless",size:"sm",text:n("sh-orders-cancel-order","Cancel Order"),onClick:l,"data-testid":"support-hub-order-cancel-".concat(r.orderNumber)}),(0,t.jsx)(c.ButtonV2,{variant:"primary",fill:"borderless",size:"sm",text:n("sh-orders-order-issue","Order Issue"),onClick:()=>i(r.orderNumber),"data-testid":"support-hub-order-issue-".concat(r.orderNumber)})]})]})};
1var C=s(29630),S=s(38729),I=s(89388),D=s(20758),O=s(39252);let R=e=>{let{order:r,onClose:s}=e,{t:o}=(0,d.Bd)(),l=(0,i.useRouter)(),n=(0,a.useMemo)(()=>{var e;return{hideSidebar:!1,setHideSidebar:()=>void 0,setIsLoading:()=>void 0,isLoading:!1,switchRouteTo:(e,r)=>{var s,t;let a=null!=(t=null==(s=O.$9[e])?void 0:s.path)?t:"/my-account/".concat(e),o=r?"".concat(a,"/").concat(r):a;l.push((0,g.g2)(o,l.locale))},currentRoute:null,detailedPageId:null!=(e=null==r?void 0:r.orderNumber)?e:null,subPath:null,isDetailedPage:!0,isSubPathPage:!1}},[l,null==r?void 0:r.orderNumber]);if(!r)return null;let u=r.items.filter(e=>"EXTWTY"!==e.productType),p=o("sh-orders-details-title","Order Details"),h=r.orderNumber?"".concat(p," ").concat(r.orderNumber):p;return(0,t.jsx)(c.Modal,{isOpen:!0,onClose:s,onRequestClose:s,title:p,contentLabel:h,className:"support-hub-orders__modal",children:(0,t.jsx)(D.Y9.Provider,{value:n,children:(0,t.jsxs)("div",{className:"order-details-wrapper support-hub-orders__modal-body","data-testid":"support-hub-order-details-modal",children:[(0,t.jsxs)("div",{className:"order-details-header",children:[(0,t.jsx)(c.Text,{type:"h4",tag:"h2",children:"".concat(o("globalProfile.accountSettings.orderDetails.orderTitle","Order #")," ").concat(r.orderNumber)}),(0,t.jsx)(c.Text,{type:"p2",children:"".concat(o("globalProfile.accountSettings.orderDetails.placedOn","Placed on")," ").concat(r.orderDate)})]}),(0,t.jsxs)("div",{className:"order-details-content",children:[(0,t.jsxs)("div",{className:"order-details-content-left",children:[(0,t.jsx)("div",{className:"order-details-content-items",children:u.map(e=>(0,t.jsx)(C.n,{...e},e.id))}),(0,t.jsx)(I.z,{shippingAddress:{...r.shippingAddress},billingAddress:{...r.billingAddress}})]}),(0,t.jsx)("div",{className:"order-details-content-right",children:(0,t.jsx)(S.D,{items:r.items,orderSummaryDetails:{...r.summaryDetails}})})]})]})})})},V=()=>{let{t:e}=(0,d.Bd)(),r=(0,i.useRouter)(),{isAuthenticated:s,isLoading:o}=(0,n.WB)(),{globalConfig:v}=(0,p.h5)(),{locale:j="",currencyCode:_="USD"}=v,{orders:N,isLoading:w,isExecuted:C,fetchOrders:S}=(0,b.useOrders)(),{getProducts:I}=(0,x.Q)(),{navigateToOrderCase:D}=(0,y.AS)(),[O,V]=(0,a.useState)(null),[P,B]=(0,a.useState)(!1);(0,a.useEffect)(()=>{s&&S()},[s,S]),(0,a.useEffect)(()=>{if(!O)return;let e=[...new Set(O.items.map(e=>e.productNumber).filter(Boolean))];e.length>0&&I(e)},[O,I]);let L=(0,a.useMemo)(()=>(0,u.s)({locale:j,currencyCode:_,fractionDigits:2}),[j,_]),[A]=(0,a.useState)(()=>Date.now()),M=(0,a.useMemo)(()=>(function(e,r){let s=r-2592e6;return e.filter(e=>{let r=new Date(e.orderDateWithoutConversion).getTime();return!Number.isNaN(r)&&r>=s})})(null!=N?N:[],A),[N,A]),q=(0,a.useCallback)(e=>{D(e)},[D]),z=(0,a.useCallback)(()=>V(null),[]),E=(0,a.useCallback)(()=>B(!0),[]),W=(0,a.useCallback)(()=>B(!1),[]),Y=o||s&&w&&!C,X=s&&C&&0===M.length;return(0,t.jsxs)("div",{className:"support-hub-orders","data-testid":"support-hub-orders",children:[(0,t.jsx)(f.DQ,{items:[{label:e("sh-categories-breadcrumb-back","Support"),href:(0,g.g2)("/support",r.locale)},{label:e("sh-orders-breadcrumb-current","Orders, Shipping & Returns")}],testId:"support-hub-orders-breadcrumbs"}),(0,t.jsx)(f.zY,{testId:"support-hub-orders-banner",title:e("sh-orders-heading","Orders, Shipping & Returns"),subtitle:e("sh-orders-subtitle","View your recent orders, track shipments, or create a support case for order-related issues."),centered:!0}),(0,t.jsxs)("div",{className:"support-hub-orders__content",children:[(0,t.jsx)(h.i,{returnPath:"/support/orders",className:"support-hub-orders__login-prompt",description:e("sh-orders-login-prompt-description","Sign in to view your open cases and get support faster.")}),!o&&!s&&(0,t.jsx)(T,{}),s&&(0,t.jsxs)("section",{className:"support-hub-orders__recent","data-testid":"support-hub-orders-recent",children:[(0,t.jsxs)("div",{className:"support-hub-orders__recent-header",children:[(0,t.jsx)(c.Text,{tag:"h2",type:"h5",children:e("sh-orders-recent-heading",{defaultValue:"Recent Orders (Last {{days}} Days)",days:30})}),(0,t.jsx)(l(),{href:(0,g.g2)("/my-account/orders",r.locale),className:"support-hub-orders__view-all","data-testid":"support-hub-orders-view-all",children:(0,t.jsx)(c.Text,{tag:"span",type:"p2",children:e("sh-orders-view-all","View all orders")})})]}),Y&&(0,t.jsx)(f.Gu,{message:e("sh-orders-loading","Loading orders…"),testId:"support-hub-orders-loading"}),!Y&&X&&(0,t.jsx)(f.pp,{testId:"support-hub-orders-empty",message:e("sh-orders-empty","You don't have any orders from the last 30 days.")}),!Y&&M.length>0&&(0,t.jsx)("div",{className:"support-hub-orders__grid",children:M.map(e=>(0,t.jsx)(k,{order:e,formatCurrency:L,onViewDetails:V,onCancelOrder:E,onOrderIssue:q},e.orderNumber))})]}),(0,t.jsxs)("button",{type:"button",className:"support-hub-orders__policy-row",onClick:E,"data-testid":"support-hub-orders-policy-row",children:[(0,t.jsx)("span",{className:"support-hub-orders__row-icon","aria-hidden":"true",children:(0,t.jsx)(c.Icon,{iconName:"arrow-rotate",iconPrefix:"fak",iconSize:"3x"})}),(0,t.jsxs)("span",{className:"support-hub-orders__row-body",children:[(0,t.jsx)(c.Text,{tag:"span",type:"p2-bold",children:e("sh-orders-cancellation-title","Order Cancellation & Returns")}),(0,t.jsx)(c.Text,{tag:"span",type:"p3",children:e("sh-orders-cancellation-subtitle","Read up on order cancellation and returns policy")})]}),(0,t.jsx)("span",{className:"support-hub-orders__row-chevron","aria-hidden":"true",children:(0,t.jsx)(c.Icon,{iconName:"
1chevron-right",iconPrefix:"fak",iconSize:"2x"})})]}),(0,t.jsxs)("div",{className:"support-hub-orders__delivery-row","data-testid":"support-hub-orders-delivery-row",children:[(0,t.jsx)("span",{className:"support-hub-orders__row-icon","aria-hidden":"true",children:(0,t.jsx)(c.Icon,{iconName:"box-taped",iconPrefix:"fak",iconSize:"3x"})}),(0,t.jsxs)("span",{className:"support-hub-orders__row-body",children:[(0,t.jsx)(c.Text,{tag:"span",type:"p2-bold",children:e("sh-orders-delivery-title","Standard Delivery")}),(0,t.jsx)(c.Text,{tag:"span",type:"p3",children:e("sh-orders-delivery-subtitle","7 - 10 Business days")}),(0,t.jsx)(c.Text,{tag:"span",type:"p3",children:e("sh-orders-delivery-note","Free standard shipping on subscriptions and orders over $49.")})]})]})]}),(0,t.jsx)(R,{order:O,onClose:z}),(0,t.jsx)(m.X,{isOpen:P,onClose:W})]})}},74960:(e,r,s)=>{s.d(r,{X:()=>d});var t=s(37876);s(14232);var a=s(54405),o=s(7135),l=s(59874);let i=[{key:"support-order-cancellation-bullet-1",defaultValue:"Returns must have been purchased directly from Breville\xae. (We're unable to accept returns for Breville\xae products purchased from other retailers or resellers.)"},{key:"support-order-cancellation-bullet-2",defaultValue:"No returns will be accepted or honored without an RA#, and our pre-paid return label."},{key:"support-order-cancellation-bullet-3",defaultValue:"Return labels must be used within 14 days of issue."},{key:"support-order-cancellation-bullet-4",defaultValue:"The product must be new and in unused condition and returned in its original packaging—including all accessories, manuals, and documentation."},{key:"support-order-cancellation-bullet-5",defaultValue:"If the product shows signs of use, damage, or missing components, it may not be eligible for a refund or reduce the amount of your refund."}],d=e=>{let{isOpen:r,onClose:s}=e,{t:d}=(0,o.Bd)(),n=function(){let{globalConfig:e}=(0,l.h5)(),{countryName:r="us",language:s="en"}=e,t=window.location.origin;return"".concat(t,"/").concat(r,"/").concat(s,"/support/return-policy.html")}(),u=d("support-order-cancellation-title","Order Cancellation & Returns");return(0,t.jsx)(a.Modal,{isOpen:r,onClose:s,title:u,titleType:"h5",contentLabel:u,className:"support-order-cancellation-modal",children:(0,t.jsxs)("div",{className:"support-order-cancellation-modal__content",children:[(0,t.jsx)(a.Text,{type:"p2",tag:"p",richText:d("support-order-cancellation-intro",'Orders placed on our website cannot be cancelled once they\'ve been submitted. However, you can return orders for a complete refund within 30 days in line with our complete Return Policy. If you need to return an item or order, please wait for the complete order to arrive and then contact our support team for a Return Authorization Number (RA#) and pre-paid shipping label. All returns will be inspected to verify product and condition, and applicable refunds will be automatically processed within 14 days to the original form of payment only. You can review the <a href="{{returnPolicyUrl}}" target="_blank" rel="noopener noreferrer">full Return Policy</a> but we\'ve provided some tips and answers to common questions below.',{returnPolicyUrl:n})}),(0,t.jsx)("ul",{className:"support-order-cancellation-modal__list",children:i.map(e=>{let{key:r,defaultValue:s}=e;return(0,t.jsx)("li",{children:(0,t.jsx)(a.Text,{type:"p2",tag:"span",children:d(r,s)})},r)})}),(0,t.jsx)(a.Text,{type:"p2",tag:"p",children:d("support-order-cancellation-footer","If you have any additional questions, please contact our support team.")}),(0,t.jsx)(a.ButtonV2,{variant:"primary",shape:"pill",fill:"outlined",text:d("support-order-cancellation-cta","View our return policy"),href:n,openInNewTab:!0,className:"support-order-cancellation-modal__cta"})]})})}}}]);

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.