PageSourceSearch

https://www.baratza.com/account/_next/static/chunks/2404.047042d9b0e4bb80.js

js baratza.com collected 2026-10-02 04:22:25 UTC 4,646 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2404],{32404:(e,a,t)=>{t.r(a),t.d(a,{CaseDetail:()=>d});var s=t(37876),r=t(14232),i=t(7135),l=t(84034),u=t(10808),n=t(51098),c=t(1002);let d=e=>{var a;let{pathSegments:t}=e,{t:d}=(0,i.Bd)(),o=(0,u.VP)(),{goBack:p}=(0,u.cj)(),{fetchCaseDetail:h}=(0,n.wO)(),b=null!=(a=t[1])?a:"";if((0,r.useEffect)(()=>{b&&h(b)},[b,h]),!b)return(0,s.jsxs)("div",{className:"support-hub-case-detail","data-testid":"support-hub-case-detail",children:[(0,s.jsx)(c.zY,{testId:"support-hub-case-detail-empty-header",title:d("sh-case-detail-title")}),(0,s.jsx)("main",{className:"support-hub-case-detail__main",children:(0,s.jsx)(c.pp,{testId:"support-hub-case-detail-empty",message:d("sh-case-detail-empty"),action:{label:d("sh-case-detail-back"),onClick:p,testId:"support-hub-case-detail-back"}})})]});let y=o.data;return(0,s.jsxs)("div",{className:"support-hub-case-detail","data-testid":"support-hub-case-detail",children:[(0,s.jsx)("div",{className:"support-hub-case-detail__breadcrumb-row",children:(0,s.jsx)(l.ButtonV2,{variant:"primary",fill:"outlined",size:"sm",shape:"pill",text:d("sh-case-detail-back"),onClick:p,"data-testid":"support-hub-back-btn"})}),(0,s.jsx)(c.zY,{testId:"support-hub-case-detail-header",title:d("sh-case-detail-title")}),(0,s.jsxs)("main",{className:"support-hub-case-detail__main",children:[o.isLoading&&(0,s.jsx)(c.Gu,{message:d("sh-case-detail-loading"),testId:"support-hub-case-detail-loading"}),y&&!o.isLoading&&(0,s.jsxs)("div",{className:"support-hub-case-detail__content","data-testid":"support-hub-case-detail-content",children:[(0,s.jsx)("h2",{className:"support-hub-case-detail__case-subject",children:y.Subject||d("sh-case-detail-untitled")}),(0,s.jsx)("p",{className:"support-hub-case-detail__case-description",children:y.Description||""})]})]})]})}},51098:(e,a,t)=>{t.d(a,{dU:()=>b,AS:()=>h,wO:()=>u,bs:()=>l.b});var s=t(14232),r=t(10808),i=t(48187),l=t(22322);let u=()=>{let e=(0,r.pj)(),a=(0,r.A3)(),{trackEvent:t}=(0,l.b)();return{fetchCases:(0,s.useCallback)(async()=>{if(!e.isLoading){a({type:"SET_CASES_LOADING",payload:!0});try{let e=await i.K3.getCases();e.success?a({type:"SET_CASES",payload:e.data||[]}):a({type:"SET_CASES",payload:[]})}catch(e){t({action:"case_data_fetch_failed",error:e instanceof Error?e:Error("fetchCases failed")}),a({type:"SET_CASES",payload:[]})}}},[e.isLoading,a,t]),fetchCaseDetail:(0,s.useCallback)(async e=>{if(e){a({type:"SET_SELECTED_CASE_LOADING",payload:!0});try{let t=await i.K3.getCaseDetail(e);t.success?a({type:"SET_SELECTED_CASE",payload:t.data}):a({type:"SET_SELECTED_CASE",payload:null})}catch(e){t({action:"case_detail_fetch_failed",error:e instanceof Error?e:Error("fetchCaseDetail failed")}),a({type:"SET_SELECTED_CASE",payload:null})}}},[a,t])}};var n=t(89099),c=t(59874),d=t(10552),o=t(95068),p=t(87257);function h(){let e=(0,n.useRouter)(),{globalConfig:a}=(0,c.h5)(),{aemLocale:t="",locale:r="",brand:i=""}=a,l=(0,s.useRef)(!1),u=(0,s.useMemo)(()=>(t||r).replace("-","_"),[t,r]);return{navigateToOrderCase:(0,s.useCallback)(async a=>{if(l.current)return;l.current=!0;let t=(0,p.g2)("/support/create-case",e.locale),s={pathname:t,query:{orderNumber:a}};try{var r;let l=await (0,d.TB)(u,i),n=(null==l?void 0:l.Success)?(0,o.fu)(null!=(r=l.InquiryTypes)?r:[]):null;if(n)return void await e.push({pathname:t,query:{screen:"complaint-code",inquiryType:n.Value,inquiryTypeLabel:n.Label,orderNumber:a}});await e.push(s)}catch(a){await e.push(s)}finally{l.current=!1}},[e,u,i])}}function b(e){let a=(0,s.useRef)(null);return(0,s.useEffect)(()=>{var e;null==(e=a.current)||e.focus()},[e]),a}},95068:(e,a,t)=>{t.d(a,{Hw:()=>u,ME:()=>l,eS:()=>c,fu:()=>d,uw:()=>i});let s=new Set(["inquiry-type","complaint-code","sub-complaint","sub-sub-complaint","vital-signs","select-order"]);function r(e){var a;return"string"==typeof e?e:Array.isArray(e)&&null!=(a=e.at(0))?a:""}function i(e){var a;return{screen:(a=r(e.screen),s.has(a)?a:null),inquiryType:r(e.inquiryType),inquiryTypeLabel:r(e.inquiryTypeLabel),complaintCode:r(e.complaintCode),subComplaintCode:r(e.subComplaintCode),subSubComplaintCode:r(e.subSubComplaintCode),vitalSignsParam:r(e.vs),orderNumber:r(e.orderNumber)}}function l(e){return!!(e.inquiryType&&e.complaintCode)}function u(e,a){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return!t.trim()&&a&&c(e)}let n=new Set(["order issue","order & return"]);function c(e){return n.has(e.trim().toLowerCase())}function d(e){var a;let t=e.find(e=>{var a;return(null!=(a=e.FormConfiguration)?a:[]).some(e=>"Order"===e.fieldValue)});return t||(null!=(a=e.find(e=>c(e.Value)))?a:null)}}}]);

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.