PageSourceSearch

https://www.trendhim.cz/_next/static/chunks/pages/returns-205b33b3edca82f2.js

js trendhim.cz collected 2026-10-06 04:53:53 UTC 6,385 bytes, 5 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4a729ec1-5bd3-5c60-95b3-465a9fa9a93a")}catch(e){}}();
3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5949],{1313:(e,r,t)=>{"use strict";t.d(r,{p:()=>u});var n=t(83804),s=t(65744),o=t(11171),i=t(73131),a=t(4103),l=t(61382),_=t(96451);let u=(0,s.forwardRef)((e,r)=>{let{children:t,withoutBackToTop:s}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_.B,{footer:(0,n.jsx)(a.b,{}),header:(0,n.jsx)(l.p,{}),children:(0,n.jsx)(i.H,{ref:r,children:t})}),!s&&(0,n.jsx)(o.sW,{})]})})},11171:(e,r,t)=>{"use strict";t.d(r,{sW:()=>N});var n=t(83804),s=t(67906),o=t(89453),i=t.n(o),a=t(43112),l=t.n(a),_=t(65744),u=t(26914),c=t(87482),d=t(10139),h=t(90221),p=t(23651),m=t.n(p);let R=(0,_.createContext)({raise:!1,setRaiseBottom:l()}),E=e=>{let{onClick:r,show:t}=e,{bottom:o,raise:a}=(0,_.useContext)(R),[l,u]=(0,_.useState)(t),[h,p]=(0,_.useState)(t),[E,N]=(0,_.useState)(!1);(0,_.useEffect)(()=>{var e;if(i()(null==(e=document)?void 0:e.getElementsByClassName("dixa-messenger-wrapper"))?N(!1):N(!0),t){u(!0);let e=requestAnimationFrame(()=>{p(!0)});return()=>cancelAnimationFrame(e)}p(!1)},[t]);let x=(0,_.useCallback)(()=>{u(!1)},[]);return l?(0,n.jsx)("div",{className:(0,s.A)(m().backToTop,E&&m().isShowingChat,a&&m().raiseBottom,h&&m().show),onClick:r,onTransitionEnd:h?void 0:x,style:o&&a?{bottom:o}:{},children:(0,n.jsx)("div",{className:m().icon,children:(0,n.jsx)(d.C,{icon:c.A})})}):null},N=()=>{var e,r;let t=null==(e=(0,h.fw)("header"))||e,s=null!=(r=(0,h.fw)("footer"))&&r,o=(0,_.useCallback)(()=>{window.scrollTo({behavior:"smooth",top:0}),u.m3.goToTop()},[]);return(0,n.jsx)(E,{onClick:o,show:!t&&!s})}},16370:e=>{e.exports={returnsWrapper:"returns_returnsWrapper___eSXE"}},23651:e=>{e.exports={backToTop:"BackToTop_backToTop__I1aFe",show:"BackToTop_show__vOQaZ",raiseBottom:"BackToTop_raiseBottom__X2xKP",isShowingChat:"BackToTop_isShowingChat__ZhgNa",icon:"BackToTop_icon__MOpmZ"}},41242:(e,r,t)=>{"use strict";t.r(r),t.d(r,{__N_SSP:()=>w,default:()=>S});var n=t(83804),s=t(65744),o=t(1313),i=t(67906),a=t(32810),l=t.n(a),_=t(89453),u=t.n(_),c=t(44542),d=t(16566),h=t(24584),p=t(67877),m=t(42658),R=t(25415),E=t(68491),N=t(66347),x=t(36838),g=t(48738),L=t(56137),T=t.n(L);let b="th_returning_order",v=e=>{let{className:r}=e,{t}=(0,E.B)(),{storeURL:o}=(0,s.useContext)(R.B),[a,_]=(0,s.useState)(!1),[L,v]=(0,s.useState)(!1),[,f]=(0,c.A)([b]),[j,I]=(0,s.useState)(""),[O,k]=(0,s.useState)(""),w=(0,s.useRef)(null),S=(0,s.useRef)(null),A=(0,m.i)(),{loading:B,refetch:C}=(0,p.tas)({context:{domainProxy:!0,userSpecific:!0,ssr:!1},fetchPolicy:"standby",nextFetchPolicy:"standby",skip:!1});return(0,n.jsxs)("form",{className:(0,i.A)(T().returnLogin,r),onSubmit:e=>{var r,t;e.preventDefault();let n=null==(r=w.current)?void 0:r.validate(),s=null==(t=S.current)?void 0:t.validate();n&&s&&(_(!1),v(!1),C({orderNumber:j,email:O}).then(e=>{var r,t,n,s;if(((null==e||null==(r=e.errors)?void 0:r.length)||0)>0)throw Error(null==(s=l()(e.errors))?void 0:s.message);let i=null==e||null==(n=e.data)||null==(t=n.returnOptionsByEmail)?void 0:t.orderNumber;i&&(f(b,JSON.stringify({orderNumber:i,email:O})),window.location.href=o("returns/".concat(i)))}).catch(e=>{"9 FAILED_PRECONDITION: return right expired"===e.message?v(!0):_(!0)}))},children:[(0,n.jsxs)("div",{className:(0,i.A)(T().header,(a||L)&&T().error),children:[(0,n.jsx)("h1",{className:T().title,children:t("return:RETURN_FLOW_LOGIN_TITLE")}),(0,n.jsx)("span",{className:T().subTitle,children:t("return:RETURN_LOGIN_DESCRIPTION")})]}),(0,n.jsxs)("div",{className:T().limitWidth,children:[(0,n.jsx)("label",{className:T().label,htmlFor:"return-login-order-number-input",children:t("return:ORDER_NUMBER_LABEL")}),(0,n.jsx)("span",{children:t("return:RETURN_LOGIN_ORDER_NUMBER_FIELD_TEXT")}),(0,n.jsx)(x.k,{actionRef:S,label:t("return:ORDER_NUMBER_LABEL"),onChange:e=>
3I(e.trim()),validations:[e=>({errorMessage:t("cms:COF_YOU_ARE_MISSING_THIS_FIELD"),success:!u()(e)})],value:j})]}),(0,n.jsxs)("div",{className:T().limitWidth,children:[(0,n.jsx)("label",{className:T().label,htmlFor:"return-login-email-input",children:t("common:EMAIL_LABEL")}),(0,n.jsx)("span",{children:t("return:RETURN_LOGIN_EMAIL_FIELD_TEXT")}),(0,n.jsx)(x.k,{actionRef:w,label:t("common:EMAIL_LABEL"),onChange:e=>k(e.trim()),validations:[e=>({errorMessage:t("validation:YOUR_EMAIL_IS_INVALID"),success:(0,N.R)(e)})],value:O})]}),(0,n.jsxs)(d.$,{className:(0,i.A)(T().limitWidth,T().button),disabled:!(0,N.R)(O)||u()(j),type:"submit",children:[!B&&t("return:NEXT_LABEL"),B&&(0,n.jsx)(g.y,{className:T().spinner})]}),(0,n.jsxs)("div",{className:(0,i.A)(T().bigError,T().expiredError),children:[a&&t("return:RETURN_LOGIN_NOT_FOUND"),L&&(0,n.jsx)(h.k,{components:{Link:(0,n.jsx)("button",{onClick:()=>A(p.g6_.Modal,"contact-us"),type:"button"})},wordbook:{defaults:t("return:RETURN_LOGIN_ERROR_EXPIRATION")}})]})]})};var f=t(77872),j=t(93104),I=t(16370),O=t.n(I);let k=(0,j.g)(e=>{let{item:r}=e,t=(0,f.V)(r.blocks||[]);return(0,n.jsxs)(o.p,{children:[(0,n.jsx)(v,{className:O().returnsWrapper}),t]})});var w=!0;let S=k},42949:e=>{e.exports={singlePostWrap:"SinglePostWrap_singlePostWrap__hcAvd"}},56137:e=>{e.exports={returnLogin:"ReturnLogin_returnLogin___YoF2",limitWidth:"ReturnLogin_limitWidth__HvQse",button:"ReturnLogin_button__CgfK9",spinner:"ReturnLogin_spinner__rRMJ1",header:"ReturnLogin_header__nDOV5",title:"ReturnLogin_title__RZ8pQ",subTitle:"ReturnLogin_subTitle__HGDkQ",label:"ReturnLogin_label__JOoHe",error:"ReturnLogin_error__aklPr",errorWrapper:"ReturnLogin_errorWrapper__StepV",bigError:"ReturnLogin_bigError__7EkRq",expiredError:"ReturnLogin_expiredError__Sqhfy"}},73131:(e,r,t)=>{"use strict";t.d(r,{H:()=>a});var n=t(83804),s=t(65744),o=t(42949),i=t.n(o);let a=(0,s.forwardRef)((e,r)=>{let{children:t,...s}=e;return(0,n.jsx)("div",{className:i().singlePostWrap,ref:r,...s,children:t})})},86034:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/returns",function(){return t(41242)}])}},e=>
3{e.O(0,[5394,7300,473,3104,5138,6182,636,6593,8792],()=>e(e.s=86034)),_N_E=e.O()}]);
4//# sourceMappingURL=returns-205b33b3edca82f2.js.map
5//# debugId=4a729ec1-5bd3-5c60-95b3-465a9fa9a93a

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.