PageSourceSearch

https://hedepy.cz/_next/static/chunks/a303907a2b395879.js

js hedepy.cz collected 2026-09-24 10:47:26 UTC 30,318 bytes, 6 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]="05cb768d-7cac-56eb-a3d3-134eb4d42fd5")}catch(e){}}();
3(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,321999,282496,635255,262719,139912,438997,13239,969641,342804,736291,445873,e=>{"use strict";e.s(["diagnosisSerializerOut",()=>O,"generalErrorHandler",()=>F,"generalSuccessHandler",()=>P,"getDiagnosisShortcutData",()=>z],321999),e.s(["from",()=>S],445873),e.s(["Observable",()=>x],13239),e.s(["Subscriber",()=>h],139912);var r=e.i(575824);function t(e){return"function"==typeof e}var s=!1,n={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value&&Error().stack,s=value},get useDeprecatedSynchronousErrorHandling(){return s}};function i(e){setTimeout(function(){throw e},0)}var o={closed:!0,next:function(e){},error:function(e){if(n.useDeprecatedSynchronousErrorHandling)throw e;i(e)},complete:function(){}};e.s(["Subscription",()=>u],635255),e.s(["isArray",()=>a],282496);var a=Array.isArray||function(e){return e&&"number"==typeof e.length};function l(e){return null!==e&&"object"==typeof e}var c=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,r){return r+1+") "+e.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),u=function(){var e;function r(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return r.prototype.unsubscribe=function(){if(!this.closed){var e,s=this._parentOrParents,n=this._ctorUnsubscribe,i=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,s instanceof r)s.remove(this);else if(null!==s)for(var u=0;u<s.length;++u)s[u].remove(this);if(t(i)){n&&(this._unsubscribe=void 0);try{i.call(this)}catch(r){e=r instanceof c?d(r.errors):[r]}}if(a(o))for(var u=-1,p=o.length;++u<p;){var h=o[u];if(l(h))try{h.unsubscribe()}catch(r){e=e||[],r instanceof c?e=e.concat(d(r.errors)):e.push(r)}}if(e)throw new c(e)}},r.prototype.add=function(e){var t=e;if(!e)return r.EMPTY;switch(typeof e){case"function":t=new r(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof r)){var s=t;(t=new r)._subscriptions=[s]}break;default:throw Error("unrecognized teardown "+e+" added to Subscription.")}var n=t._parentOrParents;if(null===n)t._parentOrParents=this;else if(n instanceof r){if(n===this)return t;t._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return t;n.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[t]:i.push(t),t},r.prototype.remove=function(e){var r=this._subscriptions;if(r){var t=r.indexOf(e);-1!==t&&r.splice(t,1)}},(e=new r).closed=!0,r.EMPTY=e,r}();function d(e){return e.reduce(function(e,r){return e.concat(r instanceof c?r.errors:r)},[])}e.s(["rxSubscriber",()=>p],262719);var p="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),h=function(e){function t(r,s,n){var i=e.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=o;break;case 1:if(!r){i.destination=o;break}if("object"==typeof r){r instanceof t?(i.syncErrorThrowable=r.syncErrorThrowable,i.destination=r,r.add(i)):(i.syncErrorThrowable=!0,i.destination=new m(i,r));break}default:i.syncErrorThrowable=!0,i.destination=new m(i,r,s,n)}return i}return r.__extends(t,e),t.prototype[p]=function(){return this},t.create=function(e,r,s){var n=new t(e,r,s);return n.syncErrorThrowable=!1,n},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(u),m=function(e){function s(r,s,n,i){var a,l=e.call(this)||this;l._parentSubscriber=r;var c=l;
3return t(s)?a=s:s&&(a=s.next,n=s.error,i=s.complete,s!==o&&(t((c=Object.create(s)).unsubscribe)&&l.add(c.unsubscribe.bind(c)),c.unsubscribe=l.unsubscribe.bind(l))),l._context=c,l._next=a,l._error=n,l._complete=i,l}return r.__extends(s,e),s.prototype.next=function(e){if(!this.isStopped&&this._next){var r=this._parentSubscriber;n.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable?this.__tryOrSetError(r,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},s.prototype.error=function(e){if(!this.isStopped){var r=this._parentSubscriber,t=n.useDeprecatedSynchronousErrorHandling;if(this._error)t&&r.syncErrorThrowable?this.__tryOrSetError(r,this._error,e):this.__tryOrUnsub(this._error,e),this.unsubscribe();else if(r.syncErrorThrowable)t?(r.syncErrorValue=e,r.syncErrorThrown=!0):i(e),this.unsubscribe();else{if(this.unsubscribe(),t)throw e;i(e)}}},s.prototype.complete=function(){var e=this;if(!this.isStopped){var r=this._parentSubscriber;if(this._complete){var t=function(){return e._complete.call(e._context)};n.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable?this.__tryOrSetError(r,t):this.__tryOrUnsub(t),this.unsubscribe()}else this.unsubscribe()}},s.prototype.__tryOrUnsub=function(e,r){try{e.call(this._context,r)}catch(e){if(this.unsubscribe(),n.useDeprecatedSynchronousErrorHandling)throw e;i(e)}},s.prototype.__tryOrSetError=function(e,r,t){if(!n.useDeprecatedSynchronousErrorHandling)throw Error("bad call");try{r.call(this._context,t)}catch(r){if(n.useDeprecatedSynchronousErrorHandling)return e.syncErrorValue=r,e.syncErrorThrown=!0,!0;return i(r),!0}return!1},s.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},s}(h),f="function"==typeof Symbol&&Symbol.observable||"@@observable";function b(e){return e}e.s(["identity",()=>b],438997);var x=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(r){var t=new e;return t.source=this,t.operator=r,t},e.prototype.subscribe=function(e,r,t){var s=this.operator,i=function(e,r,t){if(e){if(e instanceof h)return e;if(e[p])return e[p]()}return e||r||t?new h(e,r,t):new h(o)}(e,r,t);if(s?i.add(s.call(i,this.source)):i.add(this.source||n.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),n.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){n.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=r),function(e){for(;e;
3){var r=e,t=r.closed,s=r.destination,n=r.isStopped;if(t||n)return!1;e=s&&s instanceof h?s:null}return!0}(e)?e.error(r):console.warn(r)}},e.prototype.forEach=function(e,r){var t=this;return new(r=g(r))(function(r,s){var n;n=t.subscribe(function(r){try{e(r)}catch(e){s(e),n&&n.unsubscribe()}},s,r)})},e.prototype._subscribe=function(e){var r=this.source;return r&&r.subscribe(e)},e.prototype[f]=function(){return this},e.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return 0===e.length?this:(0===e.length?b:1===e.length?e[0]:function(r){return e.reduce(function(e,r){return r(e)},r)})(this)},e.prototype.toPromise=function(e){var r=this;return new(e=g(e))(function(e,t){var s;r.subscribe(function(e){return s=e},function(e){return t(e)},function(){return e(s)})})},e.create=function(r){return new e(r)},e}();function g(e){if(e||(e=n.Promise||Promise),!e)throw Error("no Promise impl found");return e}e.s(["subscribeTo",()=>_],342804),e.s(["subscribeToArray",()=>v],969641);var v=function(e){return function(r){for(var t=0,s=e.length;t<s&&!r.closed;t++)r.next(e[t]);r.complete()}},y="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",j=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function w(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var _=function(e){if(e&&"function"==typeof e[f])return function(r){var t=e[f]();if("function"==typeof t.subscribe)return t.subscribe(r);throw TypeError("Provided object does not correctly implement Symbol.observable")};if(j(e))return v(e);if(w(e))return function(r){return e.then(function(e){r.closed||(r.next(e),r.complete())},function(e){return r.error(e)}).then(null,i),r};if(e&&"function"==typeof e[y])return function(r){for(var t=e[y]();;){var s=void 0;try{s=t.next()}catch(e){return r.error(e),r}if(s.done){r.complete();break}if(r.next(s.value),r.closed)break}return"function"==typeof t.return&&r.add(function(){t.return&&t.return()}),r};throw TypeError("You provided "+(l(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function N(e,r){return new x(function(t){var s=new u,n=0;return s.add(r.schedule(function(){if(n===e.length)return void t.complete();t.next(e[n++]),t.closed||s.add(this.schedule())})),s})}function S(e,r){return r?function(e,r){if(null!=e)if(e&&"function"==typeof e[f])return new x(function(t){var s=new u;return s.add(r.schedule(function(){var n=e[f]();s.add(n.subscribe({next:function(e){s.add(r.schedule(function(){return t.next(e)}))},error:function(e){s.add(r.schedule(function(){return t.error(e)}))},complete:function(){s.add(r.schedule(function(){return t.complete()}))}}))})),s});else{if(w(e))return new x(function(t){var s=new u;return s.add(r.schedule(function(){return e.then(function(e){s.add(r.schedule(function(){t.next(e),s.add(r.schedule(function(){return t.complete()}))}))},function(e){s.add(r.schedule(function(){return t.error(e)}))})})),s});if(j(e))return N(e,r);if(e&&"function"==typeof e[y]||"string"==typeof e){if(!e)throw Error("Iterable cannot be null");return new x(function(t){var s,n=new u;return n.add(function(){s&&"function"==typeof s.return&&s.return()}),n.add(r.schedule(function(){s=e[y](),n.add(r.schedule(function(){if(!t.closed){try{var e,r,n=s.next();e=n.value,r=n.done}catch(e){t.error(e);return}r?t.complete():(t.next(e),this.schedule())}}))})),n})}}throw TypeError((null!==e&&typeof e||e)+" is not observable")}(e,r):e instanceof x?e:new x(_(e))}e.s(["scheduleArray",()=>N],736291);var E=e.i(246079),T=e.i(302095),k=e.i(939379);let F=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"general",r=arguments.length>1?arguments[1]:void 0;return t=>((0,T.handleError)(e,t),S([E.default.onStopFetching([e]),...r||[]]))},P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"general";return e&&k.default.success(e),E.default.onStopFetching([r])},O=e=>Object.keys(e).reduce((r,t)=>{let s=e[t];return Array.isArray(s)||"object"!=typeof s?r[t]=e[t]:r[t]=Object.values(s).reduce((e,r)=>("number"==typeof r&&(e+=r),e),0),r},{}),z=e=>{let r={...e,lead:5*e.shortDiagnosisV2.lead,emotions:3*e.shortDiagnosisV2.emotions,past:4*e.shortDiagnosisV2.past,personality:
35*e.shortDiagnosisV2.personality,sessionType:e.sessionType,sessionOfficeDistrictIds:e.sessionLocation};return delete r.shortDiagnosisV2,delete r.sessionLocation,r}},915789,204553,e=>{"use strict";e.s(["TherapistsPreviewInRegistration",()=>N],915789);var r=e.i(478902),t=e.i(194194),s=e.i(389959),n=e.i(312873),i=e.i(825846),o=e.i(494775);let a=async(e,r)=>(await e.getDiagnosisPreview(r)).data;var l=e.i(805901);let c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;return(null==e?void 0:e.map(e=>null==r?void 0:r.find(r=>r.therapistId===e)).filter(Boolean))[0]};var u=e.i(611847),d=e.i(714390),p=e.i(21952),h=e.i(454585);e.i(3894);var m=e.i(341922);e.i(282063);var f=e.i(487564);let b={0:"diagnosisTest.register.description.he",1:"diagnosisTest.register.description.she"},x=e=>{let{nameVocative:t,sex:s}=e,{t:n}=(0,d.getTranslate)(),i=void 0===s?void 0:b[s];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.Heading,{variant:"3xl",element:"h1",className:(0,h.cn)("text-center",{"mb-2":void 0!==i,"mb-0":void 0===i}),children:n("diagnosisTest.register.titlePersonalised",{name:t})}),void 0===i?null:(0,r.jsx)(f.Text,{element:"p",className:"mb-0 text-center",children:n(i)})]})},g=e=>{var t;let{therapist:s,nameVocative:n}=e,{t:i}=(0,d.getTranslate)();return(0,r.jsx)("div",{className:"mb-6",children:(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,r.jsxs)("div",{className:"my-6 flex items-center",children:[(0,r.jsx)(p.default,{imgUrl:null!=(t=s.image)?t:"/images/svg/misc/therapist-placeholder.svg",sizeClass:"w-20 h-20",className:"mr-6 inline-block shrink-0"}),(0,r.jsx)(x,{nameVocative:n})]}),(0,r.jsx)("strong",{children:i("diagnosisTest.register.description.default")})]})})};var v=e.i(676297),y=e.i(180221);e.i(668967);var j=e.i(514939);let w=e=>{var t,s,n;let{therapist:i,nameVocative:o,diagnosis:a}=e,{t:l}=(0,d.getTranslate)(),{specializations:c}=(0,y.default)(),u=null==(t=i.prices)?void 0:t.find(e=>{var r;return e.serviceId===(null!=(r=a.service[0])?r:a.service)}),h=[...a.specialization,...i.majorSpecializations,...null!=(s=null==i?void 0:i.minorSpecializations)?s:[]].map(e=>c[e.toString()]).filter((e,r,t)=>t.indexOf(e)===r),b=h.slice(0,4),g=h.length-4;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"mb-10",children:(0,r.jsx)(x,{nameVocative:o,sex:i.sex})}),(0,r.jsxs)("div",{className:"mb-10 flex w-full flex-col items-start gap-10 rounded-3xl bg-blue-500 p-5 tablet:flex-row tablet:items-center tablet:gap-5",children:[(0,r.jsxs)("div",{className:"flex flex-1 items-center gap-3",children:[(0,r.jsx)(p.default,{imgUrl:null!=(n=i.image)?n:"/images/svg/misc/therapist-placeholder.svg",sizeClass:"w-20 h-20",className:"inline-block shrink-0"}),(0,r.jsxs)("div",{className:"flex flex-1 flex-col gap-2",children:[(0,r.jsxs)(m.Heading,{element:"h2",variant:"xl",className:"m-0",children:[i.firstName," ",i.lastName]}),i.recommendations>=5?(0,r.jsxs)("p",{className:"m-0 flex items-center gap-1",children:[(0,r.jsx)(v.default,{icon:"heart-rebrand",className:"mr-1"}),(0,r.jsx)(f.Text,{variant:"sm",element:"span",weight:"bold",children:l("therapistProfile.recommendations",{recommendations:i.recommendations})})]}):null,(0,r.jsxs)("p",{className:"m-0 flex items-center gap-1",children:[(0,r.jsx)(v.default,{icon:"appointment",className:"mr-1"}),(0,r.jsx)(f.Text,{variant:"sm",element:"span",weight:"bold",children:l("therapistProfile.price",{price:null==u?void 0:u.price})})]})]})]}),(0,r.jsxs)("div",{className:"flex flex-1 flex-wrap items-start gap-2",children:[(0,r.jsx)(f.Text,{element:"span",children:l("diagnosisTest.register.versionA.therapist.name",{name:i.firstName})}),(0,r.jsx)(j.Tag,{size:"xs",variant:"yellow",children:l("diagnosisTest.register.therapist.experience",{experience:i.experience})}),(0,r.jsx)(f.Text,{element:"span",children:l("diagnosisTest.register.versionA.therapist.topics")}),(0,r.jsxs)(r.Fragment,{children:[b.map(e=>e?(0,r.jsx)(j.Tag,{size:"xs",variant:"sand",children:e},e):null),g>0?(0,r.jsxs)(j.Tag,{size:"xs",variant:"sand",children:["+",g]}):null]})]})]})]})},_=e=>{var t;let{therapist:s,nameVocative:n}=e,{t:i}=(0,d.getTranslate)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"mb-10",children:(0,r.jsx)(x,{nameVocative:n,sex:s.sex})}),(0,r.jsx)("div",{className:"-mb-10 overflow-hidden rounded-3xl",children:(0,r.jsxs)("div",{className:"flex w-full items-start gap-5 bg-blue-500 p-5 blur-[1.5px] tablet:gap-5",children:[(0,r.jsx)(p.default,{imgUrl:null!=(t=s.image)?t:"/images/svg/misc/therapist-placeholder.svg",sizeClass:"w-20 h-20",className:"inline-block shrink-0"}),(0,r.jsxs)("div",{className:"flex flex-1 flex-col items-start gap-2",children:[(0,r.jsx)(j.Tag,{size:"xs",variant:"yellow",children:i("diagnosisTest.register.therapist.experience",{experience:s.experience})}),(0,r.jsxs)(m.Heading,{element:"h2",variant:"xl",className:"m-0",children:[s.firstName," ",s.lastName]})]})]})})]})},N=e=>{var d,p;let{diagnosis:h,version:m}=e,{user:f}=(0,u.default)(),b=null!=(d=(null==h?void 0:h.name)||(null==f?void 0:f.firstName))?d:"",{data:x,baseName:v}=(0,t.default)(b),y=null!=(p=null==x?void 0:x.vocative)?p:v,{therapist:j}=(e=>{let{data:r,isLoading:t}=(e=>{var r,t,s;let{api:n}=(0,o.useApis)(),l=(null!=(s=null==(r=e.services)?void 0:r.length)?s:0)>0&&(null==(t=e.services)?void 0:t.every(e=>null!=e)),{data:c,error:u}=(0,i.default)(l?["diagnosisPreview"]:null,()=>a(n,e));return{data:c,isLoading:!u&&!c}})((0,n.normalizeDiagnosisData)(e)),{therapists:u}=(0,l.default)("all");return{therapist:(0,s.useMemo)(()=>c(r,u),[r,u]),isLoading:t}})(h);if(void 0===j)return null;switch(m){case"versionA":return(0,r.jsx)(w,{therapist:j,nameVocative:y,diagnosis:h});case"versionB":return(0,r.jsx)(_,{therapist:j,nameVocative:y});default:return(0,r.jsx)(g,{therapist:j,nameVocative:y})}};e.s(["default",()=>U],204553),e.i(827731);var S=e.i(931520),E=e.i(753343),T=e.i(482785),k=e.i(636055);let F=e=>{let{children:t,...s}=e;return(0,r.jsx)(E.Button,{onClick:k.openSupportChat,...s,children:t})};var P=e.i(715487),O=function(e){return e.default="default",e.larger="larger",e}({});!function(e){e.finance="finance",e.manufacturing="manufacturing",e.marketing="marketing",e.it="it",e.insurance="insurance"}({});let z=e=>{let{text:t,headlineSize:s}=e;return(0,r.jsx)("h2",{className:(0,h.cn)("mb-0 text-balance leading-9",s===O.larger?"text-4xl font-normal tablet:text-5xl":"text-3xl"),children:t})},D=e=>{let{children:t,className:s=""}=e;return(0,r.jsx)("div",{className:(0,h.cn)("mt-3 text-lg",s),children:"string"==typeof t?(0,r.jsx)(P.default,{children:t}):t})},A=e=>{let{className:t="",headlineText:s,headlineSize:n=O.default,text:i,buttonLink:o,buttonText:a,image:l,badge:c,align:u="center"}=e;return(0,r.jsxs)("div",{className:(0,h.cn)("mb-6 flex flex-col","left"===u?"items-start":"right"===u?"items-end":"items-center text-center",t),children:[null!=l?l:null,c&&(0,r.jsx)("div",{className:(0,h.cn)("mb-4 rounded-lg bg-secondary px-2 py-1 text-base font-semibold leading-[22px] text-white",c.className),children:c.text}),(0,r.jsxs)("div",{className:"",children:[s?(0,r.jsx)(z,{text:s,headlineSize:n}):null,i&&(0,r.jsx)(D,{className:"mb-0",children:i})]}),a&&o&&(0,r.jsx)(E.ButtonLink,{href:o,size:"default",children:a})]})};var V=e.i(766181),R=e.i(488958);let B=e=>{let{isBusinessPage:t,className:s}=e,n=void 0===t?void 0:t?R.rebrandColors.blue[500]:R.rebrandColors.sand[500];return(0,r.jsxs)("svg",{"aria-hidden":"true",width:"98",height:"30",viewBox:"0 0 98 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,h.cn)("absolute bottom-[-30px] left-0 right-0 z-20 m-auto",s),style:{color:n},children:[(0,r.jsx)("g",{clipPath:"url(#clip0_17308_52960)",children:(0,r.jsx)("path",{d:"M52.4389 25.9025L50 30L46.9183 25.3775C36.3487 9.52304 18.5547 0 -0.5 0V-21H98V0C79.309 0 61.9988 9.84124 52.4389 25.9025Z",fill:"currentColor"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_17308_52960",children:(0,r.jsx)("rect",{width:"98",height:"30"})})})]})};e.i(645175);let C={color:{default:"",white:"bg-white [&+.bg-white]:!pt-0",sand:"bg-sand-500 [&+.bg-sand-500]:!pt-0","sand-400":"bg-sand-400 [&+.bg-sand-400]:!pt-0","sand-500":"bg-sand-500 [&+.bg-sand-500]:!pt-0","sand-600":"bg-sand-600 [&+.bg-sand-600]:!pt-0",blue:"bg-blue-500 [&+.bg-blue-500]:!pt-0",yellow:"bg-yellow-500 [&+.bg-yellow-500]:!pt-0",pink:"bg-pink-500 [&+.bg-pink-500]:!pt-0",petrol:"bg-petrol-500 text-white [&+.bg-petrol-500]:!pt-0","hearme-purple":"bg-hearme-purple [&+.bg-hearme-purple]:!pt-0 text-white"},size:{default:"py-14 tablet:py-24",minimal:"",sm:"py-12 tablet:py-20",xs:"py-8"}},H=(0,V.cva)("relative",{variants:C,defaultVariants:{color:"white",size:"default"}}),I=e=>{let{children:t,color:s,size:n,name:i,className:o="",noBottomSpacing:a,common:l,isBusinessPage:c}=e,u=null==l?void 0:l.backgroundColor,d=Object.keys(C.color).includes(u)?u:s,p=a||(null==l?void 0:l.bottomSpacing)===!1;return(0,r.jsxs)("div",{className:(0,h.cn)(H({color:d,size:n}),o,p&&"!pb-0"),"data-block-name":i||"unknown",children:[(null==l?void 0:l.sectionAnchor)&&(0,r.jsx)("a",{className:"relative -top-[100px] laptop:-top-[160px]",id:l.sectionAnchor}),t,(null==l?void 0:l.bottomArrow)&&(0,r.jsx)(B,{isBusinessPage:c})]})},U=e=>{var t;let{name:s,isBusinessPage:n,data:i}=e,{t:o}=(0,d.getTranslate)();return(0,r.jsx)(I,{name:s,color:"sand",size:"sm",isBusinessPage:n,common:null==i?void 0:i.common,children:(0,r.jsxs)(T.default,{className:"block tablet:flex tablet:items-center tablet:justify-between",children:[(0,r.jsxs)("div",{className:"py-4",children:[(0,r.jsx)(A,{headlineText:o("components.pageBlocks.customerSupport.title"),text:o("components.pageBlocks.customerSupport.note"),badge:{text:o("components.pageBlocks.customerSupport.tag"),className:(null==i||null==(t=i.common)?void 0:t.backgroundColor)==="pink"?"text-pink-500":""},align:"left"}),(0,r.jsxs)("div",{className:"laptop:flex",children:[(0,r.jsxs)(F,{variant:"yellow",size:"medium",className:"my-2 mr-3 w-full tablet:w-auto",children:[(0,r.jsx)(v.default,{icon:"talk",size:"sm",className:"mr-2"}),o("components.pageBlocks.customerSupport.chat"),(0,r.jsx)(v.default,{icon:"up",color:"primary",className:"ml-5 rotate-45"})]}),(0,r.jsxs)(E.ButtonLink,{href:"mailto:".concat("[email protected]"),variant:"yellow",size:"medium",className:"my-2 w-full tablet:w-auto",children:[(0,r.jsx)(v.default,{icon:"email",size:"sm",className:"mr-2"}),o("components.pageBlocks.customerSupport.email"),(0,r.jsx)(v.default,{icon:"up",color:"primary",className:"ml-5 rotate-45"})]})]})]}),(0,r.jsxs)("div",{className:"relative w-full tablet:max-w-max",children:[(0,r.jsx)("img",{src:"/images/svg/styleElements/hy.svg",className:"h-[320px] w-[320px] tablet:mr-10",alt:"Hedepy"}),(0,r.jsxs)("div",{className:"absolute bottom-16 left-12 text-left",children:[(0,r.jsxs)("div",{className:"-mb-4 ml-16",children:[(0,r.jsx)("h4",{className:"m-0 rounded-xl bg-white p-3 text-xl",children:o("components.pageBlocks.customerSupport.textBubble")}),(0,r.jsx)("img",{src:"/images/svg/styleElements/bubble-tip-white.svg",alt:"tip",className:"z-20 -mt-3 h-5 text-left"})]}),(0,r.jsx)(S.CustomerSupportImage,{size:"big"})]})]})]})})}},515851,e=>{"use strict";e.s(["RegisterFormFields",()=>r]);var r=function(e){return e.email="email",e.password="password",e.phone="phone",e.gdpr="gdpr",e.consent="consent",e}({})},208844,e=>{"use strict";e.s(["default",()=>F],208844);var r=e.i(478902),t=e.i(394866),s=e.i(80768),n=e.i(715487),i=e.i(638839),o=e.i(389959),a=e.i(822186);e.i(402617);var l=e.i(832608),c=e.i(945807),u=e.i(179220),d=e.i(676297),p=e.i(68266),h=e.i(515851),m=e.i(753343),f=e.i(283862),b=e.i(494775),x=e.i(321999),g=e.i(816502),v=e.i(483219),y=e.i(714390),j=e.i(405429),w=e.i(591318),_=e.i(159165),N=e.i(939379),S=e.i(417403),E=e.i(206485),T=e.i(707826);let k=S.default.object({[h.RegisterFormFields.email]:S.default.string().email("validationErrors.email.badEmailFormat").nonempty("validationErrors.required"),[h.RegisterFormFields.password]:S.default.string().min(E.PASSWORD_FIELD_MIN_LENGTH,"validationErrors.badPasswordFormat").nonempty("validationErrors.required"),[h.RegisterFormFields.gdpr]:S.default.boolean().refine(e=>!0===e,{message:"validationErrors.notChecked"}),[h.RegisterFormFields.phone]:(0,T.phone)(S.default.string().optional(),"validationErrors.badPhoneFormat")}),F=e=>{let{therapistId:S=null,isDiagnosis:E,gtmEventData:T}=e,F=(0,l.useDispatch)(),P=(0,i.useRouter)(),{userIp:O}=(0,_.useUserIp)(),{t:z}=(0,y.getTranslate)(),{next:D,api:A}=(0,b.useApis)(),[V,R]=(0,o.useState)(!1),[B,C]=(0,o.useState)(!1),[H,I]=(0,o.useState)(!1),{query:U}=P,L=(0,a.useForm)({reValidateMode:"onBlur",defaultValues:{[h.RegisterFormFields.gdpr]:!1,[h.RegisterFormFields.email]:"",[h.RegisterFormFields.phone]:"",[h.RegisterFormFields.password]:""},resolver:(0,t.zodResolver)(k)}),q=async e=>{let{email:r,password:t,gdpr:n,phone:i}=e,o=await (0,w.default)();try{I(!0);let a=await D.register({email:r,password:t,gdpr:n,phone:i,consent:!0,registrationIp:O,registrationCookie:o,...(0,v.isCompanyEmployeeInQuery)(U)?{companyEmployee:(0,v.getCompanyEmployeeFromQuery)(U)}:{}});s.setUser({email:e.email}),N.default.success("component.toaster.registrationSuccess"),(0,j.setTokens)({api:A,data:{refreshToken:a.data.refreshToken,accessToken:a.data.accessToken}}),F(g.default.getUserDataRequest(S,E,{event:"registrationFinished",destination:E?"diagnoseView":"dashboardView",...T},void 0,P.query.redirectUrl))}catch(r){var a;let e=null==r||null==(a=r.response)?void 0:a.data;(null==e?void 0:e.type)==="NOT_ACTIVATED"?C(!0):(0,x.generalErrorHandler)("authorization")(r)}finally{I(!1)}},M=L.handleSubmit(q);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.default,{buttonText:z("login.register.buttonText"),isDiagnosis:E,emphasizeSocials:!0}),V?(0,r.jsx)(a.FormProvider,{...L,children:(0,r.jsxs)("form",{onSubmit:M,children:[(0,r.jsx)(u.default,{name:h.RegisterFormFields.email,label:z("registration.email.label"),required:!0}),(0,r.jsx)(u.default,{name:h.RegisterFormFields.password,label:z("registration.password.label"),required:!0,type:"password",showEye:!0}),(0,r.jsx)(u.default,{name:h.RegisterFormFields.phone,type:"tel",label:z("registration.phone.label"),optional:!0}),(0,r.jsxs)("div",{className:"my-3 flex rounded-md bg-body-bg px-3 py-2 text-sm text-secondary",children:[(0,r.jsx)(d.default,{icon:"customer-support",size:"sm",color:"primary",className:"mr-2"}),(0,r.jsx)(n.default,{children:z("registration.phone.note")})]}),(0,r.jsx)("div",{className:"my-8",children:(0,r.jsx)(c.default,{label:z("registration.gdpr"),name:h.RegisterFormFields.gdpr,className:"flex flex-col !items-start"})}),B&&(0,r.jsx)(f.default,{text:z("registration.notActivated",{url:"/reset"})}),(0,r.jsx)("div",{className:"my-8 flex justify-center",children:(0,r.jsx)(m.Button,{onClick:M,loading:H,className:"whitespace-break-spaces",children:z("registration.email.signUp")})})]})}):(0,r.jsx)("div",{className:"w-full text-center",children:(0,r.jsx)(m.Button,{size:"medium",className:"word mx-auto my-6 whitespace-break-spaces",onClick:()=>R(!0),children:z("registration.email.signUp")})}),(0,r.jsxs)("div",{className:"flex justify-center text-base",children:[(0,r.jsx)("span",{children:z("registration.login.buttonLabel")})," ",(0,r.jsx)("div",{onClick:()=>P.push((0,v.getAuthPageUrl)("login",P.query)),className:"cursor-pointer font-bold text-primary",children:z("component.button.login")})]})]})}},928423,e=>{"use strict";e.s(["default",()=>o]);var r=e.i(478902),t=e.i(714390),s=e.i(715487),n=e.i(676297);e.i(282063);var i=e.i(487564);let o=()=>{let{t:e}=(0,t.getTranslate)();return(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(n.default,{icon:"flash",size:"sm",color:"primary"}),(0,r.jsx)(i.Text,{variant:"sm",element:"span",children:(0,r.jsx)(s.default,{children:e("registration.onlyPassword")})})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)(n.default,{icon:"lock-alt",size:"sm",color:"primary"}),(0,r.jsx)(i.Text,{variant:"sm",element:"span",children:(0,r.jsx)(s.default,{children:e("registration.lock")})})]})]})}},601320,e=>{"use strict";
3e.s(["DiagnosisRegistrationVersion",()=>b,"default",()=>y]);var r=e.i(478902),t=e.i(714390),s=e.i(715487),n=e.i(638839),i=e.i(97429),o=e.i(312873),a=e.i(915789),l=e.i(204553),c=e.i(208844),u=e.i(744833),d=e.i(454585),p=e.i(483219);e.i(282063);var h=e.i(487564),m=e.i(928423),f=e.i(683625),b=function(e){return e.ORIGINAL="original",e.VERSION_A="version_a",e.VERSION_B="version_b",e}({});let x=i.z.object({registrationVersion:i.z.nativeEnum(b).optional().default("original")}),g={original:void 0,version_a:"versionA",version_b:"versionB"},v={original:"",version_a:"diagnosisTest.register.versionA.header",version_b:"diagnosisTest.register.versionB.header"},y=e=>{let{therapistId:i}=e,{t:b}=(0,t.getTranslate)(),y=(0,n.useRouter)(),j=(0,p.getAuthPageModeFromQuery)(y.query),{registrationVersion:w}=x.parse(y.query),_=j===p.AuthPageMode.DIAGNOSIS,N=_?(0,o.parseDiagnosisParams)(y.query.params):null,S="original"!==w,E="original"!==w;return(0,r.jsxs)("div",{className:"signup",children:[(0,r.jsxs)("div",{className:"container",children:[(0,r.jsx)(f.default,{}),(0,r.jsxs)("div",{className:(0,d.cn)("m-auto flex w-full max-w-[680px] flex-col"),children:[_&&N?(0,r.jsx)(a.TherapistsPreviewInRegistration,{diagnosis:N,version:g[w]}):(0,r.jsx)("div",{className:(0,d.cn)("signup__title","text-center"),children:(0,r.jsx)("h1",{className:"h2 text-color-secondary",children:b("registration.title")})}),(0,r.jsxs)("div",{className:"relative flex flex-col",children:[S?(0,r.jsx)("div",{className:"bg-default rounded-t-3xl border-b-2 border-l-0 border-r-0 border-t-0 border-solid border-b-sand-500 px-5 py-5 tablet:px-20",children:(0,r.jsx)(h.Text,{element:"p",className:"m-0 text-center",children:(0,r.jsx)(s.default,{children:b(v[w])})})}):null,(0,r.jsx)("div",{className:(0,d.cn)("bg-default flex w-full flex-col justify-center overflow-hidden rounded-b-3xl px-5 py-5 tablet:px-20 tablet:py-12",{"rounded-t-3xl":!S}),children:(0,r.jsx)(c.default,{isDiagnosis:_,therapistId:i,gtmEventData:_?{registrationVersion:w}:void 0})})]}),(0,r.jsx)("div",{className:"mt-10 w-full max-w-[680px] px-5",children:(0,r.jsx)(m.default,{})})]})]}),E?(0,r.jsx)(l.default,{}):null,(0,r.jsx)(u.default,{})]})}}]);
4
5//# sourceMappingURL=124440dc563d1161.js.map
6//# debugId=05cb768d-7cac-56eb-a3d3-134eb4d42fd5

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.