PageSourceSearch

https://www.altherr.de/_next/static/chunks/pages/appointment-cancel-d7ec5e5087b12054.js

js altherr.de collected 2026-10-08 12:09:46 UTC 16,246 bytes, 1 lines download raw bytes

1try{!function(){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]="c31b24ce-5b7d-4864-a9e9-54947792e227",e._sentryDebugIdIdentifier="sentry-dbid-c31b24ce-5b7d-4864-a9e9-54947792e227")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4664],{99180:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/appointment-cancel",function(){return t(24469)}])},33959:function(e,n,t){"use strict";t.d(n,{Z:function(){return m}});var i=t(85893);t(67294);var a=t(25675),r=t.n(a),s=t(60869),l=t(79780),o=t.n(l);let c=["Standort","Service","Details","Termin","Kontaktdaten"],d=["W\xe4hle deinen Beratungsort aus","W\xe4hle deinen Service aus","F\xfclle alle Informationen aus","W\xe4hle deinen Termin aus","Gib Deine Kontaktdaten an"];function _(e){let{currentStep:n,onStepClick:t,isComplete:a,isMobile:r}=e,l=c.length,_=100/l,p=100/l,u=a?100:r?p*n:_*n+_/2;return(0,i.jsxs)("div",{className:o().progress_wrapper,children:[(0,i.jsx)("div",{className:o().steps,children:r?a?(0,i.jsx)(s.A7,{className:o().step,children:"Dein Beratungstermin"}):d.map((e,t)=>n===t?(0,i.jsx)(s.A7,{className:o().step,children:e},e):null):c.map((e,r)=>(0,i.jsx)(s.A7,{fontWeight:a||r!==n?"light":"bold",className:"".concat(o().step," ").concat(a||r!==n?"":o().step_active," ").concat(r>=n||a?o().step_disabled:""),onClick:()=>t(r),children:e},e))}),(0,i.jsxs)("div",{className:o().progress_bar,children:[(0,i.jsx)("div",{className:o().progress_fill,style:{width:"".concat(u,"%")}}),r?(0,i.jsxs)(i.Fragment,{children:[d.map((e,t)=>{let r=p*t;return(0,i.jsx)("span",{className:"".concat(o().progress_dot," ").concat(!a&&t===n||t<n||a?"":o().progress_dot_inactive),style:{left:"".concat(r,"%"),transform:"translateX(-".concat(r,"%)")}},e)}),(0,i.jsx)("span",{className:"".concat(o().progress_dot," ").concat(a?"":o().progress_dot_inactive),style:{left:"100%",transform:"translateX(-100%)"}})]}):(0,i.jsx)("span",{className:o().progress_dot,style:{left:"".concat(u,"%"),transform:"translateX(-".concat(u,"%)")}})]})]})}var p=t(60440),u=t.n(p);function m(e){let{title:n,mobileTitle:t,description:a,imageSrc:l,imageAlt:o,imageWidth:c=254,imageHeight:d=184,currentStep:p,onStepClick:m,isComplete:h,isMobile:g,progressBarRef:b}=e;return(0,i.jsx)("div",{className:u().header,children:(0,i.jsxs)("div",{className:"container container_magazin",children:[(0,i.jsx)("div",{className:u().header_inner,children:g?(0,i.jsx)(s.UE,{className:u().page_title,customTag:"h1",children:t||n}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:u().header_text,children:[(0,i.jsx)(s.UE,{customTag:"h1",children:n}),a?(0,i.jsx)(s.Wr,{className:u().header_description,children:a}):null]}),l?(0,i.jsx)("div",{className:u().header_image,children:(0,i.jsx)(r(),{src:l,alt:o||"",width:c,height:d})}):null]})}),(0,i.jsx)("div",{ref:b,children:(0,i.jsx)(_,{currentStep:p,onStepClick:m,isComplete:h,isMobile:g})})]})})}},72827:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var i=t(85893);t(67294);var a=t(6864),r=t(16485),s=t(89953),l=t.n(s);function o(e){let{nextLabel:n,backLabel:t,onNext:s,onBack:o,nextDisabled:c,isMobile:d,isFixed:_=!1,nextClassName:p="",backClassName:u=""}=e;return(0,i.jsxs)(i.Fragment,{children:[d?null:(0,i.jsx)("div",{className:l().divider}),(0,i.jsxs)("div",{className:"".concat(l().buttons_wrapper," ").concat(_?l().buttons_wrapper_fixed:""),children:[o&&t?(0,i.jsx)(r.Z,{onClick:o,className:"".concat(l().btn," ").concat(u).trim(),children:t}):d?null:(0,i.jsx)("div",{}),(0,i.jsx)(a.Z,{disabled:c,onClick:()=>c?{}:s(),className:"".concat(l().btn," ").concat(p).trim(),children:n})]})]})}},16485:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});var i=t(85893);t(67294);var a=t(70701),r=t.n(a);function s(e){var n,t;return(0,i.jsx)("button",{type:"button",disabled:null!==(n=e.disabled)&&void 0!==n&&n,className:"btn ".concat(r().btn," ").concat(null!==(t=null==e?void 0:e.className)&&void 0!==t?t:""," ").concat(e.disabled?r().btn_disabled:""),style:{fontSize:"0.9rem",...e.style},onClick:e.onClick,...(null==e?void 0:e.id)?{id:e.id}:{},children:(0,i.jsx)("span",{children:e.children})})}},90473:function(e,n,t){"use strict";t.d(n,{R:function(){return i}});let i=[{key:"koln",label:"K\xf6ln",address:"Neusser Stra\xdfe 541, \n50737 K\xf6ln",image:"/images/appointment/store_koln.jpg",brandsKey:"koln",phone:"+49 (0) 221 741782",email:"[email protected]"}
1,{key:"berlin",label:"Berlin",address:"Oranienburger Stra\xdfe 9, \n10178 Berlin",image:"/images/appointment/store_berlin.jpg",brandsKey:"berlin",phone:"+49 (0) 30 20847878",email:"[email protected]"},{key:"hannover",label:"Hannover",address:"Luisenstra\xdfe 5, \n30159 Hannover",image:"/images/appointment/store_hannover.jpg",brandsKey:"hannover",phone:"+49 (0) 511 60539787",email:"[email protected]"},{key:"digital",label:"Digital",address:"",image:null,brandsKey:"digital",phone:"+49 (0) 30 20847878",email:"[email protected]"}]},24469:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return E},default:function(){return k}});var i=t(85893),a=t(67294),r=t(9008),s=t.n(r),l=t(25675),o=t.n(l),c=t(41664),d=t.n(c),_=t(11163),p=t(60869),u=t(93041),m=t(33959),h=t(72827),g=t(90473),b=t(64596),f=t(49167),v=t(92807),x=t.n(v);let N={LOADING:"loading",READY:"ready",CONFIRMED:"confirmed",ALREADY_CANCELLED:"already_cancelled",NOT_FOUND:"not_found",ERROR:"error"};function j(e){return e?e.includes("T")?e.slice(11,16):e.length>=5?e.slice(0,5):e:""}function w(e){var n,t,a,r;let{appointment:s,isMobile:l,isConfirmed:c,status:d,onCancel:_,isSubmitting:u}=e,m=(t=null==s?void 0:s.location,g.R.find(e=>e.key===t)||null),f=(null==m?void 0:m.label)||(0,b.fm)((null==s?void 0:s.location)||""),v=(0,b.fm)({beratung:"Beratung",inzahlungnahme:"Inzahlungnahme\nfinalisieren",reparatur:"Uhrenservice und Reparatur"}[null==(a=null==s?void 0:s.serviceType)?void 0:null===(r=a.trim())||void 0===r?void 0:r.toLowerCase()]||a||""),w=function(e){if(!e)return"";let n=new Date("".concat(e,"T00:00:00"));if(Number.isNaN(n.getTime()))return"";let t=n.toLocaleDateString("de-DE",{weekday:"long",day:"numeric",month:"numeric",year:"numeric"});return(0,b.fm)(t)}((null==s?void 0:s.date)||(null==s?void 0:null===(n=s.startTime)||void 0===n?void 0:n.slice(0,10))),D=function(e,n){let t=j(e),i=j(n);return t&&i?"".concat(t.replace(":","."),"–").concat(i.replace(":",".")," Uhr"):t||i||""}(null==s?void 0:s.startTime,null==s?void 0:s.endTime),E=d===N.ALREADY_CANCELLED?"Dieser Termin wurde bereits abgesagt.":"Wir hoffen Dich bald wieder bei uns begr\xfc\xdfen zu d\xfcrfen!",k=(0,i.jsxs)("div",{className:x().image_wrapper,children:[(0,i.jsx)("div",{className:x().image_circle}),(0,i.jsx)(o(),{src:"/images/appointment/appointment_cancelled.png",alt:"Termin abgesagt",width:316,height:316,className:x().image})]});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:x().panel,children:(0,i.jsxs)("div",{className:x().summary_row,children:[(0,i.jsxs)("div",{className:x().summary_text,children:[(0,i.jsx)(p.A7,{className:x().top_message,children:c?"Die Terminabsage war erfolgreich. Sie erhalten in K\xfcrze eine Best\xe4tigung per E-Mail.":"Soll dieser Termin wirklich storniert werden?"}),c?(0,i.jsx)(p.A7,{fontWeight:"bold",className:x().highlight,children:E}):(0,i.jsxs)("div",{className:x().details_wrapper,children:[(0,i.jsxs)("div",{className:x().field,children:[(0,i.jsx)(p.A7,{children:"Standort:"}),(0,i.jsx)(p.A7,{fontWeight:"bold",children:f})]}),(0,i.jsxs)("div",{className:x().field,children:[(0,i.jsx)(p.A7,{children:"Dienstleistung:"}),(0,i.jsx)(p.A7,{fontWeight:"bold",style:{whiteSpace:"pre-line"},children:v})]}),(null==s?void 0:s.notes)?(0,i.jsxs)("div",{className:x().field,children:[(0,i.jsx)(p.A7,{children:"Details:"}),(0,i.jsx)(p.A7,{fontWeight:"bold",children:s.notes})]}):null,(0,i.jsxs)("div",{className:x().field,children:[(0,i.jsx)(p.A7,{children:"Gew\xe4hlter Termin:"}),(0,i.jsx)(p.A7,{fontWeight:"bold",children:w}),D?(0,i.jsx)(p.A7,{fontWeight:"bold",children:D}):null]})]}),!c&&m?(0,i.jsxs)("div",{className:x().rebooking,children:[(0,i.jsx)(p.A7,{fontWeight:"bold",className:x().rebooking_title,children:"Andere Zeit gew\xfcnscht?"}),(0,i.jsx)(p.A7,{children:"Ein Anruf im Store gen\xfcgt und wir helfen Dir gerne bei der Suche nach einem neuen Termin:"}),(0,i.jsxs)("div",{className:x().contact,children:[(0,i.jsx)(p.A7,{children:"Juwelier ALTHERR ".concat(m.label)}),(0,i.jsx)(p.A7,{fontWeight:"bold",children:(0,i.jsx)("a",{href:"tel:".concat(m.phone.replace(/\s+/g,"")),children:"Tel.: ".concat(m.phone)})}),(0,i.jsx)(p.A7,{fontWeight:"bold",children:(0,i.jsx)("a",{href:"mailto:".concat(m.email),children:"E-Mail: ".concat(m.email)})})]})]}):null]}),k]})}),(0,i.jsx)(h.Z,{nextLabel:c?"Neuen Termin buchen":"Termin trotzdem absagen",onNext:_,nextDisabled:u,isMobile:l,isFixed:!0,nextClassName:c||u?"":x().cancel_button})]})}function D(e){let{message:n}=e;return(0,i.jsx)("div",{className:x().panel,children:(0,i.jsx)("div",{className:x().status_panel,children:(0,i.jsx)(p.A7,{children:n})})})}var E=!0;function k(e){let{isMobile:n}=e,t=(0,_.useRouter)(),{id:r,status:l}=t.query,{isMobile:o}=(0,f.Z)(),c=o||n,[h,g]=(0,a.useState)(N.LOADING),[b,v]=(0,a.useState)(null),[j,E]=(0,a.useState)(!1),k=(0,a.useRef)(null),A=h===N.CONFIRMED;(0,a.useEffect)(()=>{t.isReady&&r&&async function(){var e,n;try{let n=await (0,u.t9)({url:"/api/v2/appointment-detail?id=".concat(r),method:"get"}),t=(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.appointment)||null;if(v(t),!t){g(N.NOT_FOUND);return}if("cancelled"===t.status){g(l===N.CONFIRMED?N.CONFIRMED:N.ALREADY_CANCELLED);return}g(N.READY)}catch(e){if((null==e?void 0:null===(n=e.response)||void 0===n?void 0:n.status)===404){g(N.NOT_FOUND);return}g(N.ERROR)}}()},[t.isReady,r,l]),(0,a.useEffect)(()=>
1{if(t.isReady){if(!A){t.beforePopState(()=>!0);return}return t.beforePopState(()=>!1),()=>{t.beforePopState(()=>!0)}}},[A,t]),(0,a.useEffect)(()=>{if(t.isReady&&b&&A&&!c&&k.current){let e=k.current.getBoundingClientRect().top+window.scrollY-150;window.scrollTo({top:e,behavior:"smooth"})}},[b,A,c,t.isReady]);let y=(0,a.useMemo)(()=>A||h===N.ALREADY_CANCELLED?"Dein Beratungstermin wurde abgesagt":"Dein Beratungstermin",[A,h]),R=async()=>{if(A){t.push("/appointment");return}if(r){E(!0);try{await (0,u.t9)({url:"/api/v2/appointment-cancel",method:"post",data:{id:r}}),g(N.CONFIRMED),t.replace({pathname:t.pathname,query:{id:r,status:N.CONFIRMED}},void 0,{shallow:!0})}catch(r){var e,n,i,a,s,l,o;let t=((null==r?void 0:null===(n=r.response)||void 0===n?void 0:null===(e=n.data)||void 0===e?void 0:e.error)||(null==r?void 0:null===(l=r.response)||void 0===l?void 0:null===(s=l.data)||void 0===s?void 0:null===(a=s.errors)||void 0===a?void 0:null===(i=a[0])||void 0===i?void 0:i.detail)||"").toLowerCase();(null==r?void 0:null===(o=r.response)||void 0===o?void 0:o.status)===404?g(N.NOT_FOUND):t.includes("already cancelled")?g(N.ALREADY_CANCELLED):g(N.ERROR),E(!1)}}};return(0,i.jsxs)("div",{className:x().base,children:[(0,i.jsxs)(s(),{children:[(0,i.jsx)("title",{children:"Termin stornieren | Juwelier ALTHERR"}),(0,i.jsx)("meta",{name:"description",content:"Termin bei Juwelier ALTHERR stornieren oder direkt einen neuen Termin buchen."})]}),(0,i.jsx)(m.Z,{title:(0,i.jsxs)(i.Fragment,{children:["Buche Deine ",(0,i.jsx)("b",{children:"pers\xf6nliche Beratung"})]}),mobileTitle:"Beratung buchen",description:"Ob in einer unserer drei Filialen oder bequem von zu Hause: Wir beraten individuell, pers\xf6nlich und mit Leidenschaft.",imageSrc:"/images/appointment/appointment_sale.png",imageAlt:"ALTHERR Berater",currentStep:4,onStepClick:()=>{},isComplete:!0,isMobile:c,progressBarRef:k}),(0,i.jsx)("div",{className:x().title_row,children:c?null:(0,i.jsx)("div",{className:"container container_magazin",children:(0,i.jsx)(p.Wr,{customTag:"h1",children:y})})}),(0,i.jsx)("div",{className:c?"":"container container_magazin",children:(0,i.jsxs)("div",{className:x().content,children:[h===N.LOADING?(0,i.jsx)(D,{title:"Termin wird geladen",message:"Die Informationen zu Deinem Termin werden gerade geladen."}):null,h===N.READY&&b?(0,i.jsx)(w,{appointment:b,isMobile:c,isConfirmed:!1,status:h,onCancel:R,isSubmitting:j}):null,(h===N.CONFIRMED||h===N.ALREADY_CANCELLED)&&b?(0,i.jsx)(w,{appointment:b,isMobile:c,isConfirmed:!0,status:h,onCancel:R,isSubmitting:!1}):null,h===N.NOT_FOUND?(0,i.jsx)(D,{message:"Der angegebene Termin konnte nicht gefunden werden."}):null,h===N.ERROR?(0,i.jsx)(D,{message:"Dein Termin konnte leider nicht storniert werden. Bitte versuche es sp\xe4ter erneut oder kontaktiere uns direkt."}):null,(h===N.NOT_FOUND||h===N.ERROR)&&(0,i.jsx)("div",{className:x().fallback_link_wrapper,children:(0,i.jsx)(d(),{href:"/appointment",className:x().fallback_link,children:"Neuen Termin buchen"})})]})})]})}},64596:function(e,n,t){"use strict";t.d(n,{bC:function(){return a},fm:function(){return i}});let i=e=>{var n;return(null==e?void 0:null===(n=e.charAt(0))||void 0===n?void 0:n.toUpperCase())+(null==e?void 0:e.slice(1))},a=e=>{let n,t;let i=e.trim().split(/\s+/);return 0!==i.length&&e.trim()?1===i.length?(n=i[0],t=i[0]):(n=i[0],t=i.slice(1).join(" ")):(n="",t=""),{firstName:n,lastName:t}}},79780:function(e){e.exports={progress_wrapper:"ProgressBar_progress_wrapper__nYrJ8",steps:"ProgressBar_steps__bgSDt",step:"ProgressBar_step__MX_TV",step_disabled:"ProgressBar_step_disabled__1zvac",step_active:"ProgressBar_step_active__Xt1DZ",progress_bar:"ProgressBar_progress_bar__vdrqr",progress_fill:"ProgressBar_progress_fill__vZAg_",progress_dot:"ProgressBar_progress_dot__XM0sF",progress_dot_inactive:"ProgressBar_progress_dot_inactive__nEeiD"}},89953:function(e){e.exports={divider:"StepFooter_divider__iXkNE",buttons_wrapper:"StepFooter_buttons_wrapper__wxeCo",btn:"StepFooter_btn__Jzwv_",buttons_wrapper_fixed:"StepFooter_buttons_wrapper_fixed__G_J75"}},70701:function(e){e.exports={btn:"BtnOutline_btn__akmkh",btn_disabled:"BtnOutline_btn_disabled__8jdnC"}},60440:function(e){e.exports={base:"appointment2_base__8Yitu",header:"appointment2_header__CyRxl",header_inner:"appointment2_header_inner__SKHzS",header_text:"appointment2_header_text__Y1wGp",header_description:"appointment2_header_description__v5bzI",header_image:"appointment2_header_image__cXOw9",step_header_wrapper:"appointment2_step_header_wrapper__6H96H",inzahlungnahme_disturber_wrapper:"appointment2_inzahlungnahme_disturber_wrapper__x8aVT",step_header:"appointment2_step_header__oA38m",step_header_description:"appointment2_step_header_description__m03Q4",step_header_cta:"appointment2_step_header_cta__GYHrE",content:"appointment2_content__zyXyI",step_title:"appointment2_step_title__Q5Q2u",page_title:"appointment2_page_title__WK9Cw",header_standort:"appointment2_header_standort__2LnWk",content_standort:"appointment2_content_standort__jpbqR"}},92807:function(e){e.exports={base:"appointment_cancel_base__BIfxW",title_row:"appointment_cancel_title_row__k7if2",content:"appointment_cancel_content__UPrOP",panel:"appointment_cancel_panel__vNf_A",summary_row:"appointment_cancel_summary_row__Wsafj",summary_text:"appointment_cancel_summary_text__K0OVb",top_message:"appointment_cancel_top_message__NbFEd",details_wrapper:"appointment_cancel_details_wrapper__RGaS1",field:"appointment_cancel_field__rNnM_",highlight:"appointment_cancel_highlight__Lg2nT",rebooking:"appointment_cancel_rebooking__N6akK",rebooking_title:"appointment_cancel_rebooking_title__9ttGM",contact:"appointment_cancel_contact__hqKpQ",image_wrapper:"appointment_cancel_image_wrapper__jHNnF",image_circle:"appointment_cancel_image_circle__uaggq",image:"appointment_cancel_image__7MkVT",cancel_button:"appointment_cancel_cancel_button__zKwgk",cancel_button_loading:"appointment_cancel_cancel_button_loading__Q4845",status_panel:"appointment_cancel_status_panel__31iTW",status_message:"appointment_cancel_status_message__8qWEt",fallback_link_wrapper:"appointment_cancel_fallback_link_wrapper__s_4Gx",fallback_link:"appointment_cancel_fallback_link__EuJiM"}}},function(e){e.O(0,[5675,2888,9774,179],function(){return e(e.s=99180)}),_N_E=e.O()}]);

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.