1(this.webpackJsonpreactapp=this.webpackJsonpreactapp||[]).push([[26],{172:function(e,t,r){"use strict";var a=r(15),s=r.n(a),n=r(17),c=r(8),o=r(170),i=["body"];t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.body,a=Object(o.a)(t,i),l={"Content-Type":"application/json"},d=Object(c.a)(Object(c.a)({method:r?"POST":"GET",credentials:"same-origin"},a),{},{headers:Object(c.a)(Object(c.a)({},l),a.headers)});if(r){if("object"!==typeof r)throw new Error("Body muss ein Objekt sein");d.body=JSON.stringify(r)}var u=window.rejectDebug||!1;return u?Promise.reject("Rejecting for debugging"):window.fetch(e,d).then(function(){var e=Object(n.a)(s.a.mark((function e(t){var r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.json();case 2:if(r=e.sent,!t.ok){e.next=7;break}return e.abrupt("return",r);case 7:return e.abrupt("return",Promise.reject(r));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}},173:function(e,t,r){"use strict";r.d(t,"a",(function(){return v})),r.d(t,"b",(function(){return g}));var a,s,n=r(8),c=r(170),o=r(5),i=r(174),l=r.n(i),d=["title","titleId"];function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},u.apply(this,arguments)}function m(e,t){if(null==e)return{};var r,a,s=function(e,t){if(null==e)return{};var r,a,s={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}function h(e,t){var r=e.title,n=e.titleId,c=m(e,d);return o.createElement("svg",u({width:24,height:24,stroke:"#fff",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},c),r?o.createElement("title",{id:n},r):null,a||(a=o.createElement("style",null,".spinner_V8m1{transform-origin:center;animation:spinner_zKoa 2s linear infinite}.spinner_V8m1 circle{stroke-linecap:round;animation:spinner_YpZS 1.5s ease-in-out infinite}@keyframes spinner_zKoa{100%{transform:rotate(360deg)}}@keyframes spinner_YpZS{0%{stroke-dasharray:0 150;stroke-dashoffset:0}47.5%{stroke-dasharray:42 150;stroke-dashoffset:-16}
195%,100%{stroke-dasharray:42 150;stroke-dashoffset:-59}}")),s||(s=o.createElement("g",{className:"spinner_V8m1"},o.createElement("circle",{cx:12,cy:12,r:9.5,fill:"none",strokeWidth:3}))))}var p=o.forwardRef(h),b=(r.p,r(2)),j=function(){return Object(b.jsx)(p,{})},f=(r(175),["children"]),w=["children"],x="primary",O="secondary",y=function(e){var t=e.children,r=e.variant,a=e.as,s=void 0===a?"button":a,n=e.href,c=void 0===n?null:n,o=e.type,i=void 0===o?"button":o,d=e.onClick,u=e.fullWidth,m=void 0!==u&&u,h=e.style,p=e.loading,f=e.disabled,w=void 0!==f&&f,y=l()("button-default",{"button-primary":r===x,"button-secondary":r===O,"button-fullwidth":m}),v=s;return Object(b.jsxs)(v,{type:"button"===s?i:null,href:c,className:y,onClick:d,style:h,disabled:p||w,children:[p&&Object(b.jsx)("span",{className:"spinner",children:Object(b.jsx)(j,{})}),Object(b.jsx)("span",{className:p?"button-children-loading":void 0,children:t})]})},v=function(e){var t=e.children,r=Object(c.a)(e,f);return Object(b.jsx)(y,Object(n.a)(Object(n.a)({variant:x},r),{},{children:t}))},g=function(e){var t=e.children,r=Object(c.a)(e,w);return Object(b.jsx)(y,Object(n.a)(Object(n.a)({variant:O},r),{},{children:t}))}},175:function(e,t,r){},528:function(e,t,r){"use strict";r.r(t);var a=r(31),s=r(5),n=r.n(s),c=r(30),o=r.n(c),i=r(173),l=r(8),d=r(170),u=r(2),m=["style"],h=window.egumaReact,p=new o.a({phrases:h.translations}),b=function(){var e=[{type:"text",term:p.t("Address.Company"),description:h.details.company},{type:"text",term:p.t("Address.FirstName"),description:h.details.firstName},{type:"text",term:p.t("Address.Name"),description:h.details.familyName},{type:"text",term:p.t("Common.Address"),description:h.details.address1},{type:"text",term:p.t("Address.AdditionalInformation"),description:h.details.address2},{type:"text",term:p.t("Address.PostalCode"),description:h.details.zipCode},{type:"text",term:p.t("Address.City"),description:h.details.place},{type:"text",term:p.t("Address.Country"),description:h.details.country},{type:"tel",term:p.t("Address.Phone"),description:h.details.phone},{type:"email",term:p.t("Address.EMail"),description:h.details.email},{type:"text",term:p.t("Common.Language"),description:h.details.language}];return Object(u.jsx)("dl",{className:"d-flex flex-column",style:{gap:4},children:e.map((function(e){return Object(u.jsxs)("div",{className:"row mb-0",style:{minHeight:32},children:[Object(u.jsx)("dt",{className:"col-sm-3",children:e.term}),Object(u.jsxs)("dd",{className:"col-sm-9",children:["text"===e.type&&Object(u.jsx)(u.Fragment,{children:e.description}),"tel"===e.type&&e.description&&Object(u.jsx)(j,{href:"tel:".concat(e.description),children:e.description}),"email"===e.type&&e.description&&Object(u.jsx)(j,{href:"mailto:".concat(e.description),children:e.description})]})]},e.term)}))})},j=n.a.forwardRef((function(e,t){var r=e.style,a=Object(d.a)(e,m);return Object(u.jsx)("a",Object(l.a)({ref:t,style:Object(l.a)({color:"inherit",textDecoration:"underline"},r)},a))})),f=r(15),w=r.n(f),x=r(17),O=r(507),y=r(172),v=window.egumaReact,g=new o.a({phrases:v.translations}),C=function(e){var t=e.isOpen,r=e.onClose,s=e.onPasswordChanged,c=n.a.useRef(null),o=n.a.useRef(null),l=n.a.useRef(null),d=n.a.useState(!1),m=Object(a.a)(d,2),h=m[0],p=m[1],b=n.a.useState(""),j=Object(a.a)(b,2),f=j[0],C=j[1],N=n.a.useState(""),P=Object(a.a)(N,2),k=P[0],S=P[1],A=n.a.useState(""),E=Object(a.a)(A,2),R=E[0],_=E[1],I=n.a.useState(""),M=Object(a.a)(I,2),z=M[0],D=M[1];n.a.useEffect((function(){var e=c.current;o.current=new O.Modal(e,{backdrop:"static",keyboard:!1});var t=function(e){"Escape"===e.key&&(e.ctrlKey||e.altKey||e.shiftKey||r())};return document.addEventListener("keydown",t),function(){o.current&&(o.current.dispose(),o.current=null),document.removeEventListener("keydown",t)}}),[]),n.a.useEffect((function(){t?o.current.show():o.current.hide()}),[t]);var F=function(){var e=Object(x.a)(w.a.mark((function e(t){var r,a;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),p(!0),e.prev=2,!t.target.checkValidity()||!l.current){e.next=7;break}return(r=l.current.querySelectorAll(":invalid")).length>0&&r[0].focus(),e.abrupt("return");case 7:if(D(""),k===R){e.next=11;break}return D(g.t("Shop.CustomerAccount.ChangePassword.Error.PasswordsDoNotMatch")),e.abrupt("return");case 11:if(!(k.length<8)){e.next=14;break}return D(g.t("Shop.CustomerAccount.ChangePassword.Error.PasswordStrength")),e.abrupt("return");case 14:if(/[0-9]/.test(k)){e.next=17;break}return D("Shop.CustomerAccount.ChangePassword.Error.PasswordStrength"),e.abrupt("return");case 17:if(/[A-Z]/.test(k)&&/[a-z]/.test(k)){e.next=20;break}return D("Shop.CustomerAccount.ChangePassword.Error.PasswordStrength"),e.abrupt("return");case 20:if(/[^a-zA-Z0-9]/.test(k)){e.next=23;break}return D("Shop.CustomerAccount.ChangePassword.Error.PasswordStrength"),e.abrupt("return");case 23:return e.next=25,Object(y.a)("/api/".concat(v.mandantId,"/").concat(v.langId,"/customer/change-password"),{body:{currentPassword:f,newPassword:k}});case 25:"error"===(a=e.sent).status?D(a.message):D(),"redirect"===a.status&&(window.location.href=a.message),"ok"===a.status&&s();case 29:return e.prev=29,p(!1),e.finish(29);case 32:case"end":return e.stop()}}),e,null,[[2,,29,32]])})));return function(t){return e.apply(this,arguments)}}();return Object(u.jsx)("div",{ref:c,className:"modal fade",id:"changePasswordModal",tabIndex:"-1","aria-labelledby":"
1changePasswordModalLabel",children:Object(u.jsx)("div",{className:"modal-dialog modal-dialog-scrollable",children:Object(u.jsxs)("form",{className:"modal-content",onSubmit:F,children:[Object(u.jsxs)("div",{className:"modal-header",children:[Object(u.jsx)("h5",{className:"modal-title",id:"changePasswordModalLabel",children:g.t("Shop.CustomerAccount.ChangePassword.Title")}),Object(u.jsx)("button",{type:"button",className:"close","aria-label":"Close",onClick:r,children:Object(u.jsx)("i",{className:"fa-solid fa-xmark","aria-hidden":"true"})})]}),Object(u.jsx)("div",{className:"modal-body",children:Object(u.jsxs)("div",{className:"d-flex flex-column",style:{gap:16},children:[Object(u.jsxs)("div",{className:"form-group",children:[Object(u.jsx)("label",{htmlFor:"currentPassword",className:"col-form-label",children:g.t("Shop.CustomerAccount.ChangePassword.CurrentPassword")}),Object(u.jsx)("input",{required:!0,type:"password",className:"form-control",id:"currentPassword",name:"currentPassword",style:{maxWidth:350},value:f,onChange:function(e){return C(e.target.value)}})]}),Object(u.jsx)("p",{className:"m-0 p-0",style:{fontSize:"0.8em"},children:g.t("Shop.CustomerAccount.ChangePassword.Description")}),Object(u.jsxs)("div",{className:"form-group",children:[Object(u.jsx)("label",{htmlFor:"newPassword",className:"col-form-label",children:g.t("Shop.CustomerAccount.ChangePassword.NewPassword")}),Object(u.jsx)("input",{required:!0,type:"password",className:"form-control",id:"newPassword",F:!0,name:"newPassword",style:{maxWidth:350},value:k,onChange:function(e){return S(e.target.value)}})]}),Object(u.jsxs)("div",{className:"form-group",children:[Object(u.jsx)("label",{htmlFor:"confirmNewPassword",className:"col-form-label",children:g.t("Shop.CustomerAccount.ChangePassword.ConfirmNewPassword")}),Object(u.jsx)("input",{required:!0,type:"password",className:"form-control",id:"confirmNewPassword",name:"confirmNewPassword",style:{maxWidth:350},value:R,onChange:function(e){return _(e.target.value)}})]}),z&&Object(u.jsx)("div",{id:"errorMessage",className:"common_error-text",role:"alert","aria-live":"assertive",children:z})]})}),Object(u.jsxs)("div",{className:"modal-footer",children:[Object(u.jsx)(i.b,{type:"button",onClick:r,children:g.t("Shop.Action.Cancel")}),Object(u.jsx)(i.a,{type:"submit",loading:h,children:g.t("Shop.Action.Save")})]})]})})})},N=window.egumaReact,P=new o.a({phrases:N.translations});t.default=function(){var e=n.a.useState(!1),t=Object(a.a)(e,2),r=t[0],s=t[1],c=n.a.useState(!1),o=Object(a.a)(c,2),l=o[0],d=o[1];return Object(u.jsxs)("div",{className:"container",children:[Object(u.jsx)("div",{className:"row",children:Object(u.jsxs)("div",{className:"col-md-12",children:[Object(u.jsx)("h1",{className:"lead-title",children:P.t("Shop.CustomerAccount.Title")}),Object(u.jsx)("p",{className:"lead-text",children:P.t("Shop.CustomerAccount.Description")})]})}),Object(u.jsxs)("div",{className:"d-flex flex-column mb-4",style:{gap:4},children:[Object(u.jsx)(b,{}),l&&Object(u.jsx)("div",{className:"row",children:Object(u.jsx)("div",{className:"col-md-12",children:Object(u.jsx)("div",{class:"alert alert-primary",role:"alert",style:{maxWidth:480},children:P.t("Shop.CustomerAccount.ChangePassword.Success")})})}),Object(u.jsx)("div",{className:"row",children:Object(u.jsx)("div",{className:"col-md-12",children:Object(u.jsx)(i.a,{type:"button",children:P.t("Shop.CustomerAccount.ChangePassword"),onClick:function(){s(!0)}})})})]}),Object(u.jsx)(C,{isOpen:r,onClose:function(){s(!1)},onPasswordChanged:function(){s(!1),l||(d(!0),window.setTimeout((function(){d(!1)}),3e3))}})]})}}}]); 2//# sourceMappingURL=26.91652143.chunk.js.map
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.