PageSourceSearch

https://www.jomashop.com/dist/js/1317.584275585d44db166d03.bundle.js

js jomashop.com collected 2026-09-24 08:54:26 UTC 6,529 bytes, 39 lines download raw bytes

1"use strict";(self.webpackChunkJomashop=self.webpackChunkJomashop||[]).push([[1317],{32425:(e,r,t)=>{t.d(r,{DB:()=>ReturnsCenterProvider,WY:()=>o,kl:()=>c})
2var n=t(96540),s=t(31920),a=t(31198),i=t(74848)
3const c={NEXT_STEP:"NEXT_STEP",PREV_STEP:"PREV_STEP",SET_ORDER:"SET_ORDER",SET_PRODUCTS:"SET_PRODUCTS",SET_METHOD:"SET_METHOD",SET_RMA:"SET_RMA",SET_ERROR:"SET_ERROR",SET_EMAIL_VALUE:"SET_EMAIL_VALUE",SET_EMAIL_ERROR:"SET_EMAIL_ERROR",RESET_EMAIL_STATE:"RESET_EMAIL_STATE",SET_ORDER_RMA_LABELS:"SET_ORDER_RMA_LABELS"},l={errorMessage:null,step:1,direction:"forward",currentOrder:null,productsToReturn:[],returnMethod:null,currentRMA:null,emailState:{value:null,error:null},orderRmas:[]},o=(0,n.createContext)(null)
4function reducer(e,{type:r,payload:t}){switch(r){case c.NEXT_STEP:return{...e,step:Math.min(5,e.step+1),direction:"forward"}
5case c.PREV_STEP:return{...e,step:Math.max(1,e.step-1),direction:"backward"}
6case c.SET_ORDER:return{...e,step:2,direction:"forward",currentOrder:t,productsToReturn:[],errorMessage:null}
7case c.SET_PRODUCTS:return{...e,productsToReturn:t}
8case c.SET_METHOD:return{...e,returnMethod:t}
9case c.SET_RMA:return{...e,step:Math.min(5,e.step+1),direction:"forward",currentRMA:t}
10case c.SET_ERROR:return{...e,errorMessage:t}
11case c.SET_EMAIL_VALUE:return{...e,emailState:{...e.emailState,value:t}}
12case c.SET_EMAIL_ERROR:return{...e,emailState:{...e.emailState,error:t}}
13case c.RESET_EMAIL_STATE:return{...e,emailState:{value:null,error:null}}
14case c.SET_ORDER_RMA_LABELS:return{...e,orderRmas:t}
15default:return e}}const ReturnsCenterProvider=({children:e})=>{const{isAppContext:r}=(0,n.useContext)(s.i),[t,u]=(0,n.useReducer)(reducer,l)
16return(0,i.jsx)(o.Provider,{value:{...t,dispatch:u,goForward:()=>{u({type:c.NEXT_STEP})},goBack:()=>{(0,a.eG)(r),u({type:c.PREV_STEP})}},children:e})}},73698:(e,r,t)=>{t.r(r),t.d(r,{default:()=>Modules_ReturnsCenter})
17var n,s,a=t(96540),i=t(25540),c=t(80851),l=t(17241)
18var o="out-in",u="in-out",d=function callHook(e,r,t){return function(){var n
19e.props[r]&&(n=e.props)[r].apply(n,arguments),t()}},E=((n={})[o]=function(e){var r=e.current,t=e.changeState
20return a.cloneElement(r,{in:!1,onExited:d(r,"onExited",function(){t(c.ns,null)})})},n[u]=function(e){var r=e.current,t=e.changeState,n=e.children
21return[r,a.cloneElement(n,{in:!0,onEntered:d(n,"onEntered",function(){t(c.ns)})})]},n),h=((s={})[o]=function(e){var r=e.children,t=e.changeState
22return a.cloneElement(r,{in:!0,onEntered:d(r,"onEntered",function(){t(c._K,a.cloneElement(r,{in:!0}))})})},s[u]=function(e){var r=e.current,t=e.children,n=e.changeState
23return[a.cloneElement(r,{in:!1,onExited:d(r,"onExited",function(){n(c._K,a.cloneElement(t,{in:!0}))})}),a.cloneElement(t,{in:!0})]},s),p=function(e){function SwitchTransition(){for(var r,t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s]
24return(r=e.call.apply(e,[this].concat(n))||this).state={status:c._K,current:null},r.appeared=!1,r.changeState=function(e,t){void 0===t&&(t=r.state.current),r.setState({status:e,current:t})},r}(0,i.A)(SwitchTransition,e)
25var r=SwitchTransition.prototype
26return r.componentDidMount=function componentDidMount(){this.appeared=!0},SwitchTransition.getDerivedStateFromProps=function getDerivedStateFromProps(e,r){return null==e.children?{current:null}:r.status===c.ns&&e.mode===u?{status:c.ns}:r.current&&function areChildrenDifferent(e,r){return!(e===r||a.isValidElement(e)&&a.isValidElement(r)&&null!=e.key&&e.key===r.key)}(r.current,e.children)?{status:c.ze}:{current:a.cloneElement(e.children,{in:!0})}},r.render=function render(){var e,r=this.props,t=r.children,n=r.mode,s=this.state,i=s.status,o=s.current,u={children:t,current:o,changeState:this.changeState,status:i}
27switch(i){case c.ns:e=h[n](u)
28break
29case c.ze:e=E[n](u)
30break
31case c._K:e=o}return a.createElement(l.A.Provider,{value:{isMounting:!this.appeared}},e)},SwitchTransition}(a.Component)
32p.propTypes={},p.defaultProps={mode:o}
33const S=p
34var m=t(73510),T=t(99029),R=t(22022),_=t(32485),f=t(61526),M=t(74848)
35const src_ReturnsCenterFooter=()=>{const[e,r]=(0,a.useState)([]),t=(0,a.useRef)(null)
36return(0,a.useEffect)(()=>{t.current||(t.current=!0,fetch("https://jomashop.zendesk.com/api/v2/help_center/articles/search.json?label_names=Returns%20Related&per_page=8").then(e=>e.json()).then(e=>{e?.results?.length&&r(e.results)}))},[r]),(0,M.jsxs)("div",{className:"returns-center-footer",children:[(0,M.jsx)("h2",{className:"returns-center-title",children:"Need more help?"}),(0,M.jsx)("p",{className:"returns-center-description",children:"Get in touch with our customer service team through any of these options:"}),(0,M.jsxs)("ul",{className:"returns-center-list",children:[(0,M.jsx)("li",{children:(0,M.jsxs)("p",{className:"info",children:["Dial"," ",(0,M.jsx)("a",{href:"tel://1-877-834-1434","data-href":"tel://1-877-834-1434",title:"Tap here to call us!",children:"(877) 834-1434"})," ","for customer service. Our phone hours are 9:00AM - 6:00PM ET (Monday - Thursday) and 9:00AM - 3:00PM ET on Fridays."]})}),(0,M.jsx)("li",{children:(0,M.jsxs)("p",{className:"info",children:["Visting our"," ",(0,M.jsx)(f.N_,{to:"/customer-service",children:"Customer Service Center"})," ","for email support"]})})]}),(0,M.jsx)("h3",{className:"related-article-title",children:"Related articles"}),(0,M.jsx)("ul",{className:"related-article-list",children:e.map(({id:e,html_url:r,title:t})=>(0,M.jsx)("li",{children:(0,M.jsx)("a",{href:r,target:"_blank",rel:"noreferrer",children:t})},e))})]})}
37var x=t(32425)
38const A=(0,a.lazy)(()=>t.e(3122).then(t.bind(t,74889))),v=(0,a.lazy)(()=>t.e(7799).then(t.bind(t,48746))),j=(0,a.lazy)(()=>Promise.all([t.e(805),t.e(444)]).then(t.bind(t,60444))),P=(0,a.lazy)(()=>t.e(2152).then(t.bind(t,92660))),g={1:(0,a.lazy)(()=>Promise.all([t.e(8614),t.e(805),t.e(8491)]).then(t.bind(t,68491))),2:v,3:A,4:j,5:P},ReturnsCenter=()=>{const e=(0,a.useRef)(),[r]=(0,R.Bd)(),{step:t,direction:n,error:s}=(0,a.useContext)(x.WY),i=g[t]??null
39return(0,M.jsxs)("div",{className:"returns-center-page",children:[s&&(0,M.jsx)(T.A,{title:r("Error"),description:r(s),variant:"error",className:"notification-summary"}),(0,M.jsx)("div",{className:_(["page-content-wrapper",n]),children:(0,M.jsx)(S,{mode:"out-in",children:(0,M.jsx)(m.A,{timeout:200,classNames:"slide",unmountOnExit:!0,nodeRef:e,children:(0,M.jsx)("div",{ref:e,className:"slide-content",children:i&&(0,M.jsx)(i,{})})},t)})}),(0,M.jsx)(src_ReturnsCenterFooter,{})]})},Modules_ReturnsCenter=()=>(0,M.jsx)(x.DB,{children:(0,M.jsx)(ReturnsCenter,{})})}}])

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.