PageSourceSearch

https://www.jobs.ch/public/scripts/modern/chunk-personal-data-form.450c9e3b.js

js jobs.ch collected 2026-09-24 18:35:59 UTC 82,176 bytes, 3 lines download raw bytes

1/*! For license information please see chunk-personal-data-form.450c9e3b.js.LICENSE.txt */
2(globalThis.webpackChunk_jobcloud_b2c_frontend=globalThis.webpackChunk_jobcloud_b2c_frontend||[]).push([["personal-data-form"],{81810(e,t,r){var n;n=e=>(()=>{"use strict";var t={899:t=>{t.exports=e}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{n.r(i),n.d(i,{Component:()=>g,areCropsEqual:()=>s,centerCrop:()=>l,clamp:()=>a,containCrop:()=>u,convertToPercentCrop:()=>d,convertToPixelCrop:()=>h,default:()=>g,defaultCrop:()=>o,makeAspectCrop:()=>c,nudgeCrop:()=>p});var e=n(899),t=n.n(e);function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}const o={x:0,y:0,width:0,height:0,unit:"px"};function a(e,t,r){return Math.min(Math.max(e,t),r)}function s(e,t){return e.width===t.width&&e.height===t.height&&e.x===t.x&&e.y===t.y&&e.unit===t.unit}function c(e,t,r,n){const i=h(e,r,n);return e.width&&(i.height=i.width/t),e.height&&(i.width=i.height*t),i.y+i.height>n&&(i.height=n-i.y,i.width=i.height*t),i.x+i.width>r&&(i.width=r-i.x,i.height=i.width/t),"%"===e.unit?d(i,r,n):i}function l(e,t,r){const n=h(e,t,r);return n.x=(t-n.width)/2,n.y=(r-n.height)/2,"%"===e.unit?d(n,t,r):n}function d(e,t,r){return"%"===e.unit?{...o,...e,unit:"%"}:{unit:"%",x:e.x?e.x/t*100:0,y:e.y?e.y/r*100:0,width:e.width?e.width/t*100:0,height:e.height?e.height/r*100:0}}function h(e,t,r){return e.unit?"px"===e.unit?{...o,...e,unit:"px"}:{unit:"px",x:e.x?e.x*t/100:0,y:e.y?e.y*r/100:0,width:e.width?e.width*t/100:0,height:e.height?e.height*r/100:0}:{...o,...e,unit:"px"}}function u(e,t,r,n,i,o=0,a=0,s=n,c=i){const l={...e};let d=Math.min(o,n),h=Math.min(a,i),u=Math.min(s,n),p=Math.min(c,i);t&&(t>1?(d=a?a*t:d,h=d/t,u=s*t):(h=o?o/t:h,d=h*t,p=c/t)),l.y<0&&(l.height=Math.max(l.height+l.y,h),l.y=0),l.x<0&&(l.width=Math.max(l.width+l.x,d),l.x=0);const m=n-(l.x+l.width);m<0&&(l.x=Math.min(l.x,n-d),l.width+=m);const g=i-(l.y+l.height);if(g<0&&(l.y=Math.min(l.y,i-h),l.height+=g),l.width<d&&("sw"!==r&&"nw"!=r||(l.x-=d-l.width),l.width=d),l.height<h&&("nw"!==r&&"ne"!=r||(l.y-=h-l.height),l.height=h),l.width>u&&("sw"!==r&&"nw"!=r||(l.x-=u-l.width),l.width=u),l.height>p&&("nw"!==r&&"ne"!=r||(l.y-=p-l.height),l.height=p),t){const e=l.width/l.height;if(e<t){const e=Math.max(l.width/t,h);"nw"!==r&&"ne"!=r||(l.y-=e-l.height),l.height=e}else if(e>t){const e=Math.max(l.height*t,d);"sw"!==r&&"nw"!=r||(l.x-=e-l.width),l.width=e}}return l}function p(e,t,r,n){const i={...e};return"ArrowLeft"===t?"nw"===n?(i.x-=r,i.y-=r,i.width+=r,i.height+=r):"w"===n?(i.x-=r,i.width+=r):"sw"===n?(i.x-=r,i.width+=r,i.height+=r):"ne"===n?(i.y+=r,i.width-=r,i.height-=r):"e"===n?i.width-=r:"se"===n&&(i.width-=r,i.height-=r):"ArrowRight"===t&&("nw"===n?(i.x+=r,i.y+=r,i.width-=r,i.height-=r):"w"===n?(i.x+=r,i.width-=r):"sw"===n?(i.x+=r,i.width-=r,i.height-=r):"ne"===n?(i.y-=r,i.width+=r,i.height+=r):"e"===n?i.width+=r:"se"===n&&(i.width+=r,i.height+=r)),"ArrowUp"===t?"nw"===n?(i.x-=r,i.y-=r,i.width+=r,i.height+=r):"n"===n?(i.y-=r,i.height+=r):"ne"===n?(i.y-=r,i.width+=r,i.height+=r):"sw"===n?(i.x+=r,i.width-=r,i.height-=r):"s"===n?i.height-=r:"se"===n&&(i.width-=r,i.height-=r):"ArrowDown"===t&&("nw"===n?(i.x+=r,i.y+=r,i.width-=r,i.height-=r):"n"===n?(i.y+=r,i.height-=r):"ne"===n?(i.y+=r,i.width-=r,i.height-=r):"sw"===n?(i.x-=r,i.width+=r,i.height+=r):"s"===n?i.height+=r:"se"===n&&(i.width+=r,i.height+=r)),i}const m={capture:!0,passive:!1};class g extends e.PureComponent{constructor(){super(...arguments),this.docMoveBound=!1,this.mouseDownOnCrop=!1,this.dragStarted=!1,this.evData={startClientX:0,startClientY:0,startCropX:0,startCropY:0,clientX:0,clientY:0,isResize:!0},this.componentRef=(0,e.createRef)(),this.mediaRef=(0,e.createRef)(),this.initChangeCalled=!1,this.state={cropIsActive:!1,newCropIsBeingDrawn:!1},this.onCropPointerDown=e=>{const{crop:t,disabled:r}=this.props,n=this.getBox();if(!t)return;const i=h(t,n.width,n.height);if(r)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const o=e.target.dataset.ord,a=Boolean(o);let s=e.clientX,c=e.clientY,l=i.x,d=i.y;if(o){const t=e.clientX-n.x,r=e.clientY-n.y;let a=0,h=0;"ne"===o||"e"==o?(a=t-(i.x+i.width),h=r-i.y,l=i.x,d=i.y+i.height):"se"===o||"s"===o?(a=t-(i.x+i.width),h=r-(i.y+i.height),l=i.x,d=i.y):"sw"===o||"w"==o?(a=t-i.x,h=r-(i.y+i.height),l=i.x+i.width,d=i.y):"nw"!==o&&"n"!=o||(a=t-i.x,h=r-i.y,l=i.x+i.width,d=i.y+i.height),s=l+n.x+a,c=d+n.y+h}this.evData={startClientX:s,startClientY:c,startCropX:l,startCropY:d,clientX:e.clientX,clientY:e.clientY,isResize:a,ord:o},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})},this.onComponentPointerDown=e=>{const{crop:t,disabled:r,locked:n,keepSelection:i,onChange:o}=this.props,a=this.getBox();if(r||n||i&&t)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const s=e.clientX-a.x,c=e.clientY-a.y,l={unit:"px",x:s,y:c,width:0,height:0};this.evData={startClientX:e.clientX,startClientY:e.clientY,startCropX:s,startCropY:c,clientX:e.clientX,clientY:e.clientY,isResize:!0},this.mouseDownOnCrop=!0,o(h(l,a.width,a.height),d(l,a.width,a.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})},this.onDocPointerMove=e=>{const{crop:t,disabled:r,onChange:n,onDragStart:i}=this.props,o=this.getBox();if(r||!t||!this.mouseDownOnCrop)return;e.cancelable&&e.preventDefault(),this.dragStarted||(this.dragStarted=!0,i&&i(e));const{evData:a}=this;let c;a.clientX=e.clientX,a.clientY=e.clientY,c=a.isResize?this.resizeCrop():this.dragCrop(),s(t,c)||n(h(c,o.width,o.height),d(c,o.width,o.height))},this.onComponentKeyDown=e=>{const{crop:t,disabled:r,onChange:n,onComplete:i}=this.props,o=this.getBox();if(r)return;const s=e.key;let c=!1;if(!t)return;const l=this.makePixelCrop(),u=(navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)?g.nudgeStepLarge:e.shiftKey?g.nudgeStepMedium:g.nudgeStep;if("ArrowLeft"===s?(l.x-=u,c=!0):"ArrowRight"===s?(l.x+=u,c=!0):"ArrowUp"===s?(l.y-=u,c=!0):"ArrowDown"===s&&(l.y+=u,c=!0),c
2){e.cancelable&&e.preventDefault(),l.x=a(l.x,0,o.width-l.width),l.y=a(l.y,0,o.height-l.height);const t=h(l,o.width,o.height),r=d(l,o.width,o.height);n(t,r),i&&i(t,r)}},this.onHandlerKeyDown=(e,t)=>{const{aspect:r=0,crop:n,disabled:i,minWidth:o=0,minHeight:a=0,maxWidth:c,maxHeight:l,onChange:m,onComplete:y}=this.props,f=this.getBox();if(i||!n)return;if("ArrowUp"!==e.key&&"ArrowDown"!==e.key&&"ArrowLeft"!==e.key&&"ArrowRight"!==e.key)return;e.stopPropagation(),e.preventDefault();const x=(navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)?g.nudgeStepLarge:e.shiftKey?g.nudgeStepMedium:g.nudgeStep,A=u(p(h(n,f.width,f.height),e.key,x,t),r,t,f.width,f.height,o,a,c,l);if(!s(n,A)){const e=d(A,f.width,f.height);m(A,e),y&&y(A,e)}},this.onDocPointerDone=e=>{const{crop:t,disabled:r,onComplete:n,onDragEnd:i}=this.props,o=this.getBox();this.unbindDocMove(),!r&&t&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,i&&i(e),n&&n(h(t,o.width,o.height),d(t,o.width,o.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))},this.onDragFocus=e=>{var t;null===(t=this.componentRef.current)||void 0===t||t.scrollTo(0,0)}}get document(){return document}getBox(){const e=this.mediaRef.current;if(!e)return{x:0,y:0,width:0,height:0};const{x:t,y:r,width:n,height:i}=e.getBoundingClientRect();return{x:t,y:r,width:n,height:i}}componentDidUpdate(e){const{crop:t,onComplete:r}=this.props;if(r&&!e.crop&&t){const{width:e,height:n}=this.getBox();e&&n&&r(h(t,e,n),d(t,e,n))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}bindDocMove(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,m),this.document.addEventListener("pointerup",this.onDocPointerDone,m),this.document.addEventListener("pointercancel",this.onDocPointerDone,m),this.docMoveBound=!0)}unbindDocMove(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,m),this.document.removeEventListener("pointerup",this.onDocPointerDone,m),this.document.removeEventListener("pointercancel",this.onDocPointerDone,m),this.docMoveBound=!1)}getCropStyle(){const{crop:e}=this.props;if(e)return{top:`${e.y}${e.unit}`,left:`${e.x}${e.unit}`,width:`${e.width}${e.unit}`,height:`${e.height}${e.unit}`}}dragCrop(){const{evData:e}=this,t=this.getBox(),r=this.makePixelCrop(),n=e.clientX-e.startClientX,i=e.clientY-e.startClientY;return r.x=a(e.startCropX+n,0,t.width-r.width),r.y=a(e.startCropY+i,0,t.height-r.height),r}getPointRegion(e){const{evData:t}=this,r=t.clientX-e.x,n=t.clientY-e.y<t.startCropY;return r<t.startCropX?n?"nw":"sw":n?"ne":"se"}resizeCrop(){const{evData:e}=this,t=this.getBox(),{aspect:r=0,minWidth:n=0,minHeight:i=0,maxWidth:o,maxHeight:a}=this.props,s=this.getPointRegion(t),c=this.makePixelCrop(),l=e.ord?e.ord:s,d=e.clientX-e.startClientX,h=e.clientY-e.startClientY,p={unit:"px",x:0,y:0,width:0,height:0};"ne"===s?(p.x=e.startCropX,p.width=d,r?(p.height=p.width/r,p.y=e.startCropY-p.height):(p.height=Math.abs(h),p.y=e.startCropY-p.height)):"se"===s?(p.x=e.startCropX,p.y=e.startCropY,p.width=d,p.height=r?p.width/r:h):"sw"===s?(p.x=e.startCropX+d,p.y=e.startCropY,p.width=Math.abs(d),p.height=r?p.width/r:h):"nw"===s&&(p.x=e.startCropX+d,p.width=Math.abs(d),r?(p.height=p.width/r,p.y=e.startCropY-p.height):(p.height=Math.abs(h),p.y=e.startCropY+h));const m=u(p,r,s,t.width,t.height,n,i,o,a);return r||g.xyOrds.indexOf(l)>-1?(c.x=m.x,c.y=m.y,c.width=m.width,c.height=m.height):g.xOrds.indexOf(l)>-1?(c.x=m.x,c.width=m.width):g.yOrds.indexOf(l)>-1&&(c.y=m.y,c.height=m.height),c}createCropSelection(){const{ariaLabels:e=g.defaultProps.ariaLabels,disabled:r,locked:n,renderSelectionAddon:i,ruleOfThirds:o,crop:a}=this.props,s=this.getCropStyle();if(a)return t().createElement("div",{style:s,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":e.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!r&&!n&&t().createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},t().createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),t().createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),t().createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),t().createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":e.nwDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"nw"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":e.nDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"n"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":e.neDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"ne"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":e.eDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"e"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":e.seDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"se"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":e.sDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"s"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":e.swDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"sw"),role:"button"}),t().createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":e.wDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"w"),role:"button"})),i&&t().createElement("div",{className:"ReactCrop__selection-addon",onMouseDown:e=>e.stopPropagation()},i(this.state)),o&&t().createElement(t().Fragment,null,t().createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),t().createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(){const e={...o,...this.props.crop||{}},t=this.getBox();return h(e,t.width,t.height)}render(){const{aspect:e,children:n,circularCrop:i,className:o,crop:a,disabled:s,locked:c,style:l,ruleOfThirds:d}=this.props,{cropIsActive:h,newCropIsBeingDrawn:u}=this.state,p=a?this.createCropSelection():null,m=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}("ReactCrop",o,{"ReactCrop--active":h,"ReactCrop--disabled":s,"ReactCrop--locked":c,"ReactCrop--new-crop":u,"ReactCrop--fixed-aspect":a&&e,"ReactCrop--circular-crop":a&&i,"ReactCrop--rule-of-thirds":a&&d,"ReactCrop--invisible-crop":!this.dragStarted&&a&&!a.width&&!a.height});return t().createElement("div",{ref:this.componentRef,className:m,style:l},t().createElement("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown},n),p)}}g.xOrds=["e","w"],g.yOrds=["n","s"],g.xyOrds=["nw","ne","se","sw"],g.nudgeStep=1,g.nudgeStepMedium=10,g.nudgeStepLarge=100,g.defaultProps={ariaLabels:{cropArea:"Use the arrow keys to move the crop selection area",nwDragHandle:"Use the arrow keys to move the north west drag handle to change the crop selection area",nDragHandle:"Use the up and down arrow keys to move the north drag handle to change the crop selection area",neDragHandle:"Use the arrow keys to move the north east drag handle to change the crop selection area",eDragHandle:"Use the up and down arrow keys to move the east drag handle to change the crop selection area",seDragHandle:"Use the arrow keys to move the south east drag handle to change the crop selection area",sDragHandle:"Use the up and down arrow keys to move the south drag handle to change the crop selection area",swDragHandle:"Use the arrow keys to move the south west drag handle to change the crop selection area",wDragHandle:"Use the up and down arrow keys to move the west drag handle to change the crop selection area"}}})(),i})(),e.exports=n(r(41711))},35322(e,t,r){"use strict";function n(e){const t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";const n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/Math.pow(1024,n));const i=r[n];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+i:(t?"-":"")+e.toFixed(1)+" "+i}r.d(t,{A:()=>n})},30339(e,t,r){"use strict";r.d(t,{Z:()=>a});var n=r(36633),i=r(74124);
2class o extends Error{constructor(e,t){super(e,t),this.name="JwtTokenError"}}class a{static DEFAULT_EXPIRY_LEEWAY_MS=3e4;tokenCache=null;pendingTokenFetch=null;expiryLeewayMs;constructor(e,t,r){this.fetchService=e,this.tokenUrl=t,this.expiryLeewayMs=r?.expiryLeewayMs??a.DEFAULT_EXPIRY_LEEWAY_MS}async getToken(){if(this.tokenCache&&this.isTokenCacheFresh(this.tokenCache))return this.tokenCache.token;if(this.pendingTokenFetch)return this.pendingTokenFetch;this.pendingTokenFetch=this.fetchToken();try{return await this.pendingTokenFetch}finally{this.pendingTokenFetch=null}}isTokenCacheFresh(e){return e.expiresAt>Date.now()+this.expiryLeewayMs}async fetchToken(){try{const e=await this.fetchService.fetch(this.tokenUrl,{preventNavigateToLogin:!0});if(!e.ok)throw new o(`Failed to fetch token: HTTP ${e.statusCode}`);if(!s(e.result))throw new o("Failed to fetch token: invalid response payload");const{jwt:t}=e.result;let r;try{({exp:r}=(0,n.iU)(t))}catch(e){throw new o("Failed to fetch token: cannot decode token",{cause:e})}if("number"!=typeof r)throw new o("Failed to fetch token: exp claim is missing or not a number");const i=1e3*r;if(i<=Date.now())throw new o("Failed to fetch token: received already-expired token");return this.tokenCache={token:t,expiresAt:i},this.tokenCache.token}catch(e){const t=e instanceof Error?e:new o("Failed to fetch token",{cause:e});throw i.v.error(t,{extras:{tokenUrl:this.tokenUrl,cause:t.cause}}),t}}}const s=e=>"object"==typeof e&&null!==e&&"string"==typeof e.jwt},7507(e,t,r){"use strict";r.d(t,{A:()=>h});var n=r(60164),i=r(31504),o=r(18218),a=r(12219),s=r(59033),c=r(67086),l=r(63711),d=r(52695);const h=({avatarSize:e="sm",hasNoBorderWhenImage:t,...r})=>{const{data:h}=(0,o.sg)(),{src:u,type:p}=(0,a.cc)(!!h).data??{},m=(0,n.NQ)(h)||(0,n.XH)(h?.email),g=`${h?.firstName||""} ${h?.lastName||""}`.trim(),y="custom"===p&&u;return(0,d.jsx)(s.zZ,{avatarSize:e,...y&&t?{border:"none",bg:"[transparent]"}:{},"data-clarity-mask":"true",...r,children:y?(0,d.jsx)(c.A,{alt:g,height:"100%",position:"relative",width:"100%",...(0,i.v)(u,e,t)}):m?(0,d.jsx)(s.L9,{color:"purple.900",fontWeight:"bold",children:m}):(0,d.jsx)(l.A,{"data-cy":"icon-user-avatar",color:"gray.300",height:"66%",width:"66%"})})}},60164(e,t,r){"use strict";r.d(t,{J3:()=>o,NQ:()=>n,XH:()=>i});const n=e=>{if(e&&(e.firstName||e.lastName))return`${e?.firstName?.charAt(0).toUpperCase()||""}${e.lastName?.charAt(0).toUpperCase()||""}`},i=e=>e&&e.substring(0,2).toUpperCase(),o=(e,t)=>e.firstName||e.lastName?`${e.firstName||""} ${e.lastName||""}`:t},55082(e,t,r){"use strict";r.d(t,{d:()=>l});r(78944),r(45853),r(18910);var n=r(97229),i=r(30339),o=r(73128),a=r(18960);class s extends i.Z{constructor(e){super(e,`${a.Ok.PLATFORM}media-api/issue-source-token`)}async getSourceToken(){return this.getToken()}}class c{fetchService;locale;tenant;pendingFileUploads={};sourceTokenService;constructor(e,t,r){this.fetchService=e,this.locale=t,this.tenant=r,this.sourceTokenService=new s(e)}getSourceToken=async()=>this.sourceTokenService.getSourceToken();linkDocumentById=async(e,t)=>
2{const r=await this.getSourceToken();return this.fetchService.fetch(`${a.Ok.MEDIA_API_HOST}media/${e}/link?token=${t}`,{...r?{headers:{"x-source-jwt":r}}:{},method:"POST"})};linkDocument=async e=>{const t=e.mediaApiUrl?(0,n.parseUrl)(e.mediaApiUrl).query.token:"";if(!t)return{ok:!1,result:null};const r=await this.getSourceToken();return await this.fetchService.fetch(`${a.Ok.MEDIA_API_HOST}media/${e.mediaApiId}/link?token=${t}`,{...r?{headers:{"x-source-jwt":r}}:{},method:"POST"})};uploadFiles=async(e,t)=>{let r=0;const n=await this.getSourceToken(),i={Accept:"application/json","Accept-Language":this.locale,"x-source":`${this.tenant}_ch_desktop`,...n?{"x-source-jwt":n}:{}},o=e.length;({...t}).fileProgress=(...e)=>{r++,t&&t.progress&&t.progress(100/o*r),t&&t.fileProgress&&t.fileProgress(...e)},t&&t.start&&t.start(),Promise.all(e.map((e=>this.uploadFile(e,`${a.Ok.MEDIA_API_HOST}media`,i,{private:!0},t)))).then((()=>{t&&t.success&&t.success()})).catch((r=>{t&&t.error&&t.error(r),e.forEach((e=>t&&t.fileError&&t.fileError(e,r)))}))};uploadFile=(e,t,r,n={},i)=>new Promise(((o,a)=>{const s=new XMLHttpRequest;s.open("POST",t),this.pendingFileUploads[e.name]=s,i&&i.fileStart&&i.fileStart(e),Object.keys(r).forEach((e=>s.setRequestHeader(e,r[e]))),s.onload=t=>{const r=t&&t.currentTarget;if(r instanceof XMLHttpRequest){const t=this.decodeResponse(r.responseText);if(r.status&&!isNaN(r.status)&&r.status<300){const n={accessToken:r.getResponseHeader("x-access-token")};i&&i.fileSuccess&&i.fileSuccess(e,t,n),o()}else i&&i.fileError&&i.fileError(e,t),a(t)}delete this.pendingFileUploads[e.name]},s.onerror=t=>{const r=t&&t.currentTarget;if(r instanceof XMLHttpRequest){const t=this.decodeResponse(r.responseText);i&&i.fileError&&i.fileError(e,t),a(t)}delete this.pendingFileUploads[e.name]},s.onabort=()=>delete this.pendingFileUploads[e.name],s.upload&&(s.upload.onprogress=t=>{if(t.lengthComputable){const r=t.loaded/t.total*100;i&&i.fileProgress&&i.fileProgress(e,r)}});const c=new FormData;Object.keys(n).forEach((e=>c.append(e,n[e]))),c.append("file",e),s.send(c)}));decodeResponse=e=>{try{return JSON.parse(e)}catch(t){return e}}}const l=e=>new c(e.get("core.fetch"),e.get("core.locale"),o.j5.get());l.identifier="document.service"},49242(e,t,r){"use strict";r.d(t,{A:()=>i});r(84775);var n=r(70119);const i=e=>(0,n.A)((e=>e.featureFlags)).includes(e)},53458(e,t,r){"use strict";r.d(t,{A:()=>l});r(84775);var n=r(44007),i=r(41711),o=r(96777),a=r(59033),s=r(52695);const c=(0,i.forwardRef)((({allowedMimetypes:e=[],label:t,maxSize:r,onError:i,onSelected:c,id:l},d)=>{const h=(0,o.A)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("input",{accept:e.join(","),className:(0,n.IR)(),"data-cy":l,id:l,onChange:t=>{const n=t.target.files?.[0];n?(!e.length||e.length&&e.includes(n.type))&&(!r||n.size<=r)?c?.(n):i?.(n):i?.(),t.target.value=""},ref:d,tabIndex:-1,type:"file"}),(0,s.jsx)(a.JU,{className:(0,n.IR)(),htmlFor:l,children:t||h("accessibility.action.upload")})]})})),l=c;c.displayName="HiddenFileInput"},63489(e,t,r){"use strict";r.d(t,{A:()=>n,o:()=>i});const n=(e={})=>({id:e.id,width:e.width,height:e.height,ratio:e.ratio,mimeType:e.mimeType,bytes:e.bytes}),i=(e={})=>({id:e.id,width:e.width,height:e.height})},93123(e,t,r){"use strict";r.d(t,{e:()=>i});var n=r(18960);const i=(e,t="media")=>n.Ok.MEDIA_API_HOST+t+"/"+e},22849(e,t,r){"use strict";r.d(t,{J0:()=>s,Sz:()=>c,a8:()=>l,vb:()=>d});var n=r(55594),i=r(18960),o=r(77099),a=r(8037);const s=(0,a.m)(o.m.CITY),c=(0,a.m)(o.m.ZIP_CITY),l=(e,t=5)=>(0,n.Ay)(i.Ok.METADATA_API+"gis/type-ahead",(0,n.Gv)(o.m.CITY),{query:{term:e,rows:t,"subTypes[]":"city"}}),d=(e,t=5)=>(0,n.Ay)(i.Ok.METADATA_API+"gis/type-ahead",(0,n.Gv)(o.m.ZIP_CITY),{query:{term:e,rows:t,"subTypes[]":"zip"}})},32777(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(41711),i=r(1444),o=r(70119),a=r(22849);const s=()=>{const e=(0,i.A)(),t=(0,o.A)((e=>e.typeahead?.zipCity?.data))||[];return{onClear:(0,n.useCallback)((()=>e((0,a.Sz)())),[e]),fetchSuggestions:(0,n.useCallback)((t=>e((0,a.vb)(t))),[e]),suggestionGroupsParser:e=>[...e?[{suggestions:t}]:[]],suggestionLoading:(0,o.A)((e=>e.typeahead?.zipCity?.loading))||!1}}},87377(e,t,r){"use strict";r.d(t,{A:()=>p});var n=r(76873),i=r(41711),o=r(96777),a=r(26150),s=r(63848),c=r(72338),l=r(53663),d=r(59033),h=r(52695);const u=({children:e,close:t,isOpen:r=!1})=>{const n=(0,i.useRef)(null),o=(0,i.useRef)(null),a=(0,i.useRef)(null);(0,c.A)(r,t);const{isOpenWithTransition:u,inTransition:p}=(0,l.A)(r);return(0,i.useEffect)((()=>
2{a.current=document.querySelector("#modal-root")}),[]),u&&a.current?(0,s.createPortal)((0,h.jsxs)(d.i,{alignItems:"center",display:"flex",height:"100%",left:"s0",position:"fixed",top:"s0",width:"100%",children:[(0,h.jsx)(d.i,{bg:"grayAlphaDark.700",height:"100%",mixBlendMode:"multiply",onClick:e=>n.current===e.target&&t(),opacity:r&&!p?1:0,position:"fixed",ref:n,transitionDuration:"d200",transitionProperty:"opacity",width:"100%",willChange:"opacity"}),(0,h.jsx)(d.i,{maxHeight:"100%",onClick:e=>o.current===e.target&&t(),opacity:r&&!p?1:0,ref:o,transform:`scale(${r&&!p?"1":"0.95"})`,transitionDuration:"d200",transitionProperty:"transform, opacity",width:"100%",willChange:"transform, opacity",children:(0,h.jsx)(d.mc,{containerSize:"xs",height:"100%",children:e})})]}),a.current):null},p=({context:e,"data-cy":t,hasError:r,headline:s,isOpen:c=!1,isPending:l,primaryHandler:p,primaryLabel:m,secondaryLabel:g})=>{const y=(0,o.A)(),{close:f,closeOverlay:x}=(0,a.A)({isDirty:!1,noOverlayClose:!1}),A=(0,i.useRef)(null);return(0,i.useLayoutEffect)((()=>{if(!c)return;const e=setTimeout((()=>{A.current?.focus()}),200);return()=>clearTimeout(e)}),[c]),(0,h.jsx)(u,{close:x,isOpen:c,children:(0,h.jsxs)(n.I4.dialog,{"aria-labelledby":"dialog-headline","aria-modal":"true",border:"none",borderRadius:"r24","data-cy":t||"modal",display:"block",flexDirection:"column",overflow:"hidden",position:"relative",px:{base:"s16",sm:"s32"},py:{base:"s24",sm:"s32"},width:"100%",children:[(0,h.jsx)(d.H2,{"data-cy":t?`${t}-dialog-headline`:"dialog-headline",id:"dialog-headline",ref:A,tabIndex:-1,textStyle:"title4",width:"100%",children:s}),e&&(0,h.jsx)(d.P,{mt:"s16",children:e}),(0,h.jsxs)(d.so,{flexDirection:{base:"column-reverse",sm:"row-reverse"},gap:"s16",mt:{base:"s24",sm:"s48"},width:"100%",children:[p&&(0,h.jsx)(d.mz,{buttonColor:"destructive",buttonState:l?"pending":r?"error":"default","data-cy":t?`${t}-modal-primary`:"modal-primary",onClick:()=>p(),width:{base:"100%",sm:"auto"},children:m||y("accessibility.action.delete")}),(0,h.jsx)(d.$n,{buttonType:"outlined","data-cy":t?`${t}-modal-secondary`:"modal-secondary",onClick:()=>f(),width:{base:"100%",sm:"auto"},children:g||y("accessibility.action.cancel")})]})]})})}},77945(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(76873),i=r(41711),o=r(96777),a=r(26150),s=r(30553),c=r(15683),l=r(81052),d=r(59033),h=r(52695);const u=({children:e,"data-cy":t,hasError:r,illustrationSrc:u,isDirty:p=!1,isForm:m=!1,isOpen:g=!1,isPending:y,modalSize:f="sm",noFooter:x,noHeader:A,noOverlayClose:C=!1,onClose:w,onOpen:b,onUnmount:v,overlayAction:E,primaryHandler:S,primaryLabel:j,primaryNode:T,secondaryHandler:_,secondaryLabel:D,tertiaryButtonColor:I,tertiaryHandler:R,tertiaryLabel:M,title:P,transitionDuration:L})=>{const O=(0,o.A)(),{close:k,closeOverlay:U}=(0,a.A)({isDirty:p,noOverlayClose:C,onClose:w,overlayAction:E}),{initialContainerRef:N,smContainerRef:F,isScrollable:H}=(0,s.A)(),q=(0,i.useRef)(null);return(0,h.jsx)(c.A,{close:U,isOpen:g,modalSize:f,transitionDuration:L,children:(0,h.jsx)(n.I4.dialog,{...A?{"aria-label":P}:{"aria-labelledby":"modal-header"},border:"none",borderRadius:{base:"r0",sm:"r24"},"data-cy":t||"modal",display:"block",height:{base:"100%",sm:"auto"},overflow:"hidden",p:"s0",position:"relative",width:"100%",children:(0,h.jsx)(l.A,{isForm:m,onOpen:b,onUnmount:v,primaryHandler:S,children:(0,h.jsxs)(d.so,{flexDirection:"column",height:"100%",children:[(0,h.jsxs)(d.so,{className:"sm-scroll-container",flexDirection:{base:"column",sm:"row"},flexGrow:{base:1,sm:"unset"},gap:{base:"s24",sm:"s8"},maxHeight:{sm:x?"[80vh]":"[calc(80vh - 96px)]"},overflowY:{base:"auto",sm:"unset"},ref:N,children:[u&&(0,h.jsx)(d.i,{flex:{sm:"[1 0 200px]",md:"[1 0 240px]"},minHeight:{sm:"[320px]",md:"[360px]"},pl:{sm:"s24",md:"s32"},pt:{base:"s16",sm:"s24",md:"s32"},width:{base:"100%",sm:"auto"},children:(0,h.jsx)(d._V,{alt:"",display:"block",height:{base:"[180px]",sm:"[200px]"},mx:"auto",src:u,width:{base:"[180px]",sm:"[200px]"}})}),(0,h.jsxs)(d.so,{flexDirection:"column",...A?{}:{pt:{base:"s24",md:"s32"}},width:"100%",children:[!A&&(0,h.jsx)(d.Y9,{children:(0,h.jsx)(d.H2,{"data-cy":t?`${t}-modal-header`:"modal-header",pb:"s16",px:{base:"s24",sm:"s32"},textStyle:"title3",width:"100%",children:P})}),(0,h.jsx)(d.n9,{className:"scroll-container",isolation:"isolate",overflowY:{sm:"auto"},...x?{}:{pb:"s8"},pt:"s4",px:{base:"s24",sm:"s32"},ref:F,children:e})]})]}),!x&&(0,h.jsxs)(d.wi,{bg:"white",borderBottomLeftRadius:{base:"r0",sm:"r24"},borderBottomRightRadius:{base:"r0",sm:"r24"},isolation:"isolate",...H?{boxShadow:"bs50"}:{},display:"flex",flexDirection:{base:"column-reverse",sm:"row-reverse"},gap:"s16",justifyContent:"space-between",px:{base:"s24",sm:"s32"},py:{base:"s16",sm:"s24"},width:"100%",children:[(0,h.jsxs)(d.so,{flexDirection:{base:"column-reverse",sm:"row-reverse"}
2,gap:"s16",children:[T||S&&(0,h.jsx)(d.mz,{buttonState:y?"pending":r?"error":"default","data-cy":t?`${t}-modal-primary`:"modal-primary",...m?{type:"submit"}:{onClick:e=>S(e)},width:{base:"100%",sm:"auto"},children:j||O("accessibility.action.save")}),(0,h.jsx)(d.$n,{...T||S?{buttonType:"blended"}:{},...R&&M?{buttonType:"outlined"}:{},"data-cy":t?`${t}-modal-secondary`:"modal-secondary",onClick:()=>_?.()||k(),ref:q,width:{base:"100%",sm:"auto"},children:D||O(S?"accessibility.action.cancel":"accessibility.action.close")})]}),R&&M&&(0,h.jsx)(d.$n,{buttonColor:I,buttonType:"blended","data-cy":t?`${t}-modal-tertiary`:"modal-tertiary",justifySelf:"flex-start",onClick:()=>R(),width:{base:"100%",sm:"auto"},children:M})]})]})})})})}},15683(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(41711),i=r(63848),o=r(72338),a=r(53663),s=r(59033),c=r(52695);const l=({children:e,close:t,isOpen:r=!1,modalSize:l="sm",transitionDuration:d})=>{const h=(0,n.useRef)(null),u=(0,n.useRef)(null),p=(0,n.useRef)(null);(0,o.A)(r,t);const{isOpenWithTransition:m,inTransition:g}=(0,a.A)(r,d);return(0,n.useEffect)((()=>{p.current=document.querySelector("#modal-root")}),[]),m&&p.current?(0,i.createPortal)((0,c.jsxs)(s.i,{alignItems:"center",display:"flex",height:"100%",left:"s0",position:"fixed",top:"s0",width:"100%",children:[(0,c.jsx)(s.i,{bg:"grayAlphaDark.700",height:"100%",mixBlendMode:"multiply",onClick:e=>h.current===e.target&&t?.(),opacity:r&&!g?1:0,position:"fixed",ref:h,transitionDuration:"d200",transitionProperty:"opacity",width:"100%",willChange:"opacity"}),(0,c.jsx)(s.i,{height:{base:"100%",sm:"auto"},maxHeight:"100%",onClick:e=>u.current===e.target&&t?.(),opacity:r&&!g?1:0,overflowY:{base:"unset",sm:"auto"},ref:u,transform:`scale(${r&&!g?"1":"0.95"})`,transitionDuration:"d200",transitionProperty:"transform, opacity",width:"100%",willChange:"transform, opacity",children:(0,c.jsx)(s.i,{height:"100%",maxWidth:{base:"[none]",sm:"xs"===l?"[520px]":"sm"===l?"[720px]":"lg"===l?"[1140px]":"[720px]"},mx:"auto",overflowX:"hidden",width:"100%",children:e})})]}),p.current):null}},81052(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(41711),i=r(34776),o=r(52695);const a=({children:e,isForm:t,onOpen:r,onUnmount:a,primaryHandler:s})=>((0,n.useEffect)((()=>(r?.(),()=>a?.())),[]),t?(0,o.jsx)(i.A,{height:"100%",onSubmit:e=>{e.preventDefault(),s?.()},children:e}):(0,o.jsx)(o.Fragment,{children:e}))},26150(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(37618),i=r.n(n),o=r(41711),a=r(1444),s=r(96777),c=r(48157);const l=({isDirty:e,noOverlayClose:t,onClose:r,overlayAction:n})=>{const l=(0,a.A)(),d=(0,s.A)();return{close:(0,o.useCallback)((()=>(r?.(),l((0,c.V)()))),[l,r]),closeOverlay:(0,o.useCallback)((()=>{if(!t)return n&&n(),r&&r(),e&&i().canUseDOM?window.confirm(d("meta.unsaved_changes"))&&l((0,c.V)(!0)):l((0,c.V)(!0))}),[l,e,t,r,n,d])}}},72338(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(41711);const i=(e,t)=>{(0,n.useEffect)((()=>{const r=e=>"Escape"===e.key&&t?.();if(e)return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r);document.removeEventListener("keydown",r)}),[e,t])}},30553(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(41711);const i=()=>{const e=(0,n.useRef)(null),t=(0,n.useRef)(null),[r,i]=(0,n.useState)(!1),o=(0,n.useCallback)((()=>i((e.current?.scrollHeight||0)>(e.current?.clientHeight||0)||(t.current?.scrollHeight||0)>(t.current?.clientHeight||0))),[]);return(0,n.useEffect)((()=>{const e=setTimeout((()=>{o()}),0);return()=>clearTimeout(e)})),{initialContainerRef:e,smContainerRef:t,isScrollable:r}}},53663(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(41711);const i=(e,t=200)=>{const[r,i]=(0,n.useState)(!1),[o,a]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{let r;return e?(i(!0),a(!0),r=setTimeout((()=>{a(!1)}),t)):(a(!0),r=setTimeout((()=>{i(!1),a(!1)}),t)),()=>clearTimeout(r)}),[e,t]),{isOpenWithTransition:r,inTransition:o}}},22852(e,t,r){"use strict";r.d(t,{A:()=>m});var n=r(41711),i=r(38849),o=r(96777),a=r(32777),s=r(30441),c=r(44207),l=r(4756),d=r(59033),h=r(78978),u=r(52695);const p=/\d{4}/,m=({defaultValue:e=""})=>{const{control:t,formState:{errors:r,isSubmitted:m},setValue:g,getValues:y,clearErrors:f}
2=(0,i.xW)(),x=(0,o.A)(),[A,C]=(0,n.useState)(e),w=(0,s.A)(),b=(0,n.useCallback)((e=>{const[t,...r]=e.split(" "),n=r.join(" ");C(e),!p.test(t)&&e||(g("city",n,{shouldDirty:!0}),g("zipCode",t,{shouldDirty:!0}))}),[g]),v=(0,a.A)(),E="CH"===(0,i.FH)({control:t,name:"countryCode"});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(d.i,{children:(0,u.jsx)(c.A,{control:t,label:x("account_profile.personal_data.edit.form.country.label"),name:"countryCode",onUpdate:()=>{C(""),g("zipCode","",{shouldDirty:!0}),g("city","",{shouldDirty:!0})},...w})}),(0,u.jsx)(d.i,{...E?{}:{display:"none"},children:(0,u.jsx)(h.A,{"data-clarity-mask":"true","data-cy":"zip-city-typeahead",...m?{error:r.city?.message}:{},id:"zip-city-typeahead",label:x("account_profile.personal_data.edit.form.city.label"),onChange:e=>{b(e)},onUpdate:b,value:A,...v})}),(0,u.jsxs)(d.xA,{gap:{base:"s8",sm:"s16"},gridTemplateColumns:{base:"[5fr 7fr]",sm:"[1fr 3fr]"},...E?{display:"none"}:{},children:[(0,u.jsx)(l.A,{control:t,"data-cy":"zip-code-input",label:x("account_profile.personal_data.edit.form.zipcode.label"),name:"zipCode",rules:{validate:e=>(0===e?.length&&0===y("city")?.length&&f("city"),!!e||!y("city")||x("api_messages.form.error.invalid_zip_city"))}}),(0,u.jsx)(l.A,{control:t,"data-cy":"city-input",label:x("account_profile.personal_data.edit.form.city.label"),name:"city",rules:{validate:e=>(0===e?.length&&0===y("zipCode")?.length&&f("zipCode"),!!e||!y("zipCode")||x("api_messages.form.error.invalid_zip_city"))}})]})]})}},98398(e,t,r){"use strict";r.d(t,{f3:()=>i,sU:()=>n,x7:()=>o});const n=["application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/pdf","image/jpg","image/jpeg","image/png"],i=["application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/pdf"],o=33554432},28989(e,t,r){"use strict";r.d(t,{j:()=>d});var n=r(2390),i=r(8179),o=r(94956),a=r(18474),s=r(29154),c=r(39180),l=r(33845);const d=()=>{const e=(0,o.A)(),t=(0,n.jE)(),r=e.get("core.fetch"),{dispatch:d}
2=e.get("core.redux");return(0,i.n)({mutationFn:async({candidateDetail:e})=>(0,a.A)(await r.fetch("user/candidate",{body:e,method:"PATCH"})),onSuccess:async(e,{silent:r})=>{!r&&d((0,l.tj)("GenericConfirmSnackbar",{allowList:["USER_PROFILE","ONBOARDING"],timeout:l.Q9,hideOnLeaveScope:!0})),t.setQueryData(s.qv,(t=>t&&{...t,candidate:{...t.candidate,...(0,c.kh)(e.result)}}))}})}},86484(e,t,r){"use strict";r.d(t,{p:()=>c});var n=r(2390),i=r(8179),o=r(94956),a=r(18474),s=r(29154);const c=()=>{const e=(0,n.jE)(),t=(0,o.A)().get("core.fetch");return(0,i.n)({mutationFn:async e=>(0,a.A)(await t.fetch("user/candidate/driving-license",{body:e,method:"PUT"})),onSuccess:t=>{e.setQueryData(s.qv,(e=>e&&{...e,drivingLicenses:t.result}))}})}},12219(e,t,r){"use strict";r.d(t,{cc:()=>g,qG:()=>x,wQ:()=>y,yo:()=>f});var n=r(62939),i=r(2390),o=r(8179),a=r(94956),s=r(93123),c=r(18474),l=r(1444),d=r(33845);const h="user/candidate/picture",u=[h],p=e=>{const t=e.cropped_media_api_id;if(t)return{src:(0,s.e)(t,"images"),type:"custom"};const r=e.original_media_api_id;return r?{src:(0,s.e)(r,"images"),type:"custom"}:{type:"no-image",src:void 0}},m=async e=>p((0,c.A)(await e.get("core.fetch").fetch(h,{preventNavigateToLogin:!0})).result),g=(e=!0)=>{const t=(0,a.A)();return(0,n.I)({enabled:e,queryFn:async()=>m(t),queryKey:u})},y=()=>{const e=(0,a.A)().get("core.fetch"),t=(0,i.jE)();return(0,o.n)({mutationFn:async({mediaPicture:t,originalImageId:r,croppedMediaObject:n,cropOptions:i})=>{const o=t||{original_media_api_id:r,cropped_media_api_id:n?.id,cropping_position_x:i?.x,cropping_position_y:i?.y,cropping_width:i?.width,cropping_height:i?.width};return(0,c.A)(await e.fetch(u.join(),{body:{...o,cropping_height:o.cropping_height&&Math.round(o.cropping_height),cropping_position_x:o.cropping_position_x&&Math.round(o.cropping_position_x),cropping_position_y:o.cropping_position_y&&Math.round(o.cropping_position_y),cropping_width:o.cropping_width&&Math.round(o.cropping_width)},method:"PUT"}))},onSuccess:e=>{t.setQueryData(u,(()=>p(e.result)))}})},f=()=>{const e=(0,a.A)().get("core.fetch"),t=(0,i.jE)(),r=(0,l.A)();return(0,o.n)({mutationFn:async()=>(0,c.A)(await e.fetch(u.join(),{method:"DELETE"})),onSuccess:()=>{t.setQueryData(u,(()=>null)),r((0,d.tj)("GenericConfirmSnackbar",{timeout:d.Q9,hideOnLeaveScope:!0}))}})},x={queryKey:u,queryFn:m}},91944(e,t,r){"use strict";r.d(t,{Oc:()=>o,iz:()=>i,jR:()=>a});var n=r(46044);const i=e=>e&&(e.year||e.month||e.day)?e.year+"-"+e.month+"-"+e.day:null,o=e=>{if(e){const[t,r,n]=e.split("-");return{year:t,month:r,day:n}}},a=e=>{if(!e)return!0;const{year:t,month:r,day:i}=e;return!(t||r||i)||!!t&&!!r&&!!i&&(0,n.LV)(e)}},88217(e,t,r){"use strict";r.d(t,{C:()=>n});const n={PICTURE:{FETCH:{REQUEST:"PROFILE.PICTURE.FETCH.REQUEST",SUCCESS:"PROFILE.PICTURE.FETCH.SUCCESS",FAILURE:"PROFILE.PICTURE.FETCH.FAILURE"},UPDATE:{REQUEST:"PROFILE.PICTURE.UPDATE.REQUEST",SUCCESS:"PROFILE.PICTURE.UPDATE.SUCCESS",FAILURE:"PROFILE.PICTURE.UPDATE.FAILURE"},DELETE:{REQUEST:"PROFILE.PICTURE.DELETE.REQUEST",SUCCESS:"PROFILE.PICTURE.DELETE.SUCCESS",FAILURE:"PROFILE.PICTURE.DELETE.FAILURE"}},DOCUMENTS:{FETCH:{REQUEST:"PROFILE.DOCUMENTS.FETCH.REQUEST",SUCCESS:"PROFILE.DOCUMENTS.FETCH.SUCCESS",FAILURE:"PROFILE.DOCUMENTS.FETCH.FAILURE"},ADD:{REQUEST:"PROFILE.DOCUMENTS.ADD.REQUEST",SUCCESS:"PROFILE.DOCUMENTS.ADD.SUCCESS",FAILURE:"PROFILE.DOCUMENTS.ADD.FAILURE"},DELETE:{REQUEST:"PROFILE.DOCUMENTS.DELETE.REQUEST",SUCCESS:"PROFILE.DOCUMENTS.DELETE.SUCCESS",FAILURE:"PROFILE.DOCUMENTS.DELETE.FAILURE"},SAVE:{SUCCESS:"PROFILE.DOCUMENTS.SAVE.SUCCESS"}}
2,USER_AVATAR:{DELETE:{REQUEST:"PROFILE.USER_AVATAR.DELETE.REQUEST",CANCEL:"PROFILE.USER_AVATAR.DELETE.CANCEL"},ORIGINAL_IMAGE:{LOADED:"PROFILE.USER_AVATAR.ORIGINAL_IMAGE.LOADED"},UPLOAD:{REQUEST:"PROFILE.USER_AVATAR.UPLOAD.REQUEST",SUCCESS:"PROFILE.USER_AVATAR.UPLOAD.SUCCESS",FAILURE:"PROFILE.USER_AVATAR.UPLOAD.FAILURE"}},INITIAL_FETCH:{PROFILE:"PROFILE.INITIAL_FETCH",PURGE:"PROFILE.INITIAL_FETCH.PURGE"}}},23539(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(64897),i=r(69462),o=r(63489),a=r(88217);const s={originalImage:(0,o.A)()},c=(0,i.A)(s,{[a.C.USER_AVATAR.ORIGINAL_IMAGE.LOADED]:(e,t)=>({...e,originalImage:(0,o.A)(t.payload)})}),l=(0,i.A)({isDeleteOverlayOpen:!1},{[a.C.USER_AVATAR.DELETE.REQUEST]:e=>({...e,isDeleteOverlayOpen:!0}),[a.C.USER_AVATAR.DELETE.CANCEL]:e=>({...e,isDeleteOverlayOpen:!1}),[a.C.PICTURE.DELETE.SUCCESS]:e=>({...e,isDeleteOverlayOpen:!1})}),d={profile:!1},h=(0,i.A)(d,{[a.C.INITIAL_FETCH.PROFILE]:e=>({...e,profile:!0}),[a.C.INITIAL_FETCH.PURGE]:()=>d}),u=(0,n.HY)({croppingModal:c,editUserAvatar:l,initialFetch:h})},11415(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>_e});r(78944),r(18910);var n=r(2390),i=r(41711),o=r(38849),a=r(73128),s=r(32979),c=r(18960),l=r(1444),d=r(53151),h=r(18218),u=r(96777),p=r(65496),m=r(29154),g=r(28989),y=r(86484),f=r(30441),x=r(91944),A=r(90701);const C=({city:e,dateOfBirth:t,countryCode:r,firstName:n,gender:i,lastName:o,nationalityCode:a,phone:s,zipCode:c})=>({candidateDetail:{city:e||null,country_code:r||null,first_name:n||null,gender:i||null,date_of_birth:(0,x.iz)(t)||null,last_name:o||null,nationality_code:a||null,phone:(0,A.dV)(s)||null,zip_code:c||null}});var w=r(23539),b=r(33845),v=r(87377),E=r(22852),S=(r(84775),r(97512),r(62285)),j=r(59033),T=r(9905),_=r(17027),D=r(52695);const I=e=>(0,D.jsx)(j.In,{...e,children:(0,D.jsx)("path",{d:"M6.68 4c-.817 0-1.559.5-1.86 1.262L3.246 9.199l-1.191.399A3 3 0 0 0 0 12.44V18c0 .55.45 1 1 1h2.355c.567 1.176 1.762 2 3.145 2s2.578-.824 3.145-2h3.71c.567 1.176 1.762 2 3.145 2s2.578-.824 3.145-2H23c.55 0 1-.45 1-1v-5.36a3.01 3.01 0 0 0-2.41-2.94l-3.035-.606-3.172-3.965A3 3 0 0 0 13.039 4zm0 2H9v3H5.477zM11 6h2.04c.304 0 .589.137.776.375L15.918 9H11zm-6.84 5h13.742l3.293.66c.473.094.805.5.805.98V17h-2.05c-.247-1.684-1.7-3-3.45-3s-3.203 1.316-3.45 3h-3.1c-.247-1.684-1.7-3-3.45-3s-3.203 1.316-3.45 3H2v-4.559c0-.433.273-.812.684-.949zm2.34 5c.84 0 1.5.66 1.5 1.5S7.34 19 6.5 19 5 18.34 5 17.5 5.66 16 6.5 16m10 0c.84 0 1.5.66 1.5 1.5s-.66 1.5-1.5 1.5-1.5-.66-1.5-1.5.66-1.5 1.5-1.5"})}),R=e=>(0,D.jsx)(j.In,{...e,children:(0,D.jsx)("path",{d:"M22.97 2a1 1 0 0 0-.368.082l-8.067 3.506-.941-.875.107.12A2.16 2.16 0 0 0 12 4H9.623c-.882 0-1.62.728-1.63 1.612v.008L8 9H7c-1.093 0-2 .907-2 2v2c-2.197 0-4 1.803-4 4v1h.203C1.66 19.707 3.156 21 5 21h12c1.844 0 3.34-1.293 3.797-3H21v-1c0-1.855-1.29-3.416-3.014-3.86.004-.047.014-.092.014-.14V9.973c0-.609-.204-1.2-.578-1.68l-.049-.064-1.24-1.154L22 4.525v2.173l-1.832 2.748A1 1 0 0 0 21 11h.846A2.17 2.17 0 0 0 24 8.844v-1.74a1 1 0 0 0 0-.238V3a1 1 0 0 0-1.03-1M9.993 6H12q.075 0 .123.061l.049.062L15.266 9H9l1-.002zM7 11h9v2H7zm-2 4h12c1.117 0 2 .884 2 2s-.883 2-2 2H5c-1.117 0-2-.883-2-2s.883-2 2-2m0 1a1 1 0 1 0 0 2 1 1 0 0 0 0-2m4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2m4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2m4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2"})}),M=e=>(0,D.jsx)(j.In,{...e,children:(0,D.jsx)("path",{d:"M5 19q-2.075 0-3.537-1.462Q0 16.075 0 14c0-2.075.488-2.563 1.463-3.538Q2.925 9 5 9h11.6l-2-2H12a.97.97 0 0 1-.712-.287A.97.97 0 0 1 11 6q0-.425.288-.713A.97.97 0 0 1 12 5h2.975a1 1 0 0 1 .725.3l3.75 3.75q1.95.15 3.25 1.575C24 12.05 24 12.7 24 14q0 2.075-1.462 3.538Q21.075 19 19 19c-2.075 0-2.562-.487-3.537-1.462Q14 16.075 14 14q0-.45.062-.888a3.6 3.6 0 0 1 .238-.862l-2.175 2.175a1.98 1.98 0 0 1-1.4.575H9.9a4.83 4.83 0 0 1-1.725 2.875Q6.8 19 5 19m14-2q1.25 0 2.125-.875A2.9 2.9 0 0 0 22 14q0-1.25-.875-2.125A2.9 2.9 0 0 0 19 11q-1.25 0-2.125.875A2.9 2.9 0 0 0 16 14q0 1.25.875 2.125A2.9 2.9 0 0 0 19 17M5 17q.95 0 1.713-.55Q7.475 15.9 7.8 15H6a.97.97 0 0 1-.713-.288A.97.97 0 0 1 5 14a.97.97 0 0 1 .287-.713A.97.97 0 0 1 6 13h1.8a3 3 0 0 0-1.087-1.45A2.86 2.86 0 0 0 5 11q-1.25 0-2.125.875A2.9 2.9 0 0 0 2 14q0 1.25.875 2.125A2.9 2.9 0 0 0 5 17m4.95-4h.75l2-2H8.95a4.3 4.3 0 0 1 .625.925q.25.5.375 1.075m0-2h-1 3.75z"})}),P=e=>(0,D.jsx)(j.In,{...e,children:(0,D.jsx)("path",{d:"M4 9a.97.97 0 0 1-.712-.288A.97.97 0 0 1 3 8q0-.425.288-.713A.97.97 0 0 1 4 7h3q.824 0 1.412.587Q9 8.175 9 9zm2 9q1.25 0 2.125-.875A2.9 2.9 0 0 0 9 15q0-1.25-.875-2.125A2.9 2.9 0 0 0 6 12q-1.25 0-2.125.875A2.9 2.9 0 0 0 3 15q0 1.25.875 2.125A2.9 2.9 0 0 0 6 18m13.5 0q.625 0 1.062-.438Q21 17.126 21 16.5q0-.625-.438-1.062A1.44 1.44 0 0 0 19.5 15q-.625 0-1.062.438A1.44 1.44 0 0 0 18 16.5q0 .625.438 1.062.436.438 1.062.438M6 16.5q-.625 0-1.062-.438A1.44 1.44 0 0 1 4.5 15q0-.625.438-1.062A1.44 1.44 0 0 1 6 13.5q.625 0 1.062.438.438.437.438 1.062t-.438 1.062A1.44 1.44 0 0 1 6 16.5m14-3.475q.65.125 1.075.337t.925.688V8q0-.824-.587-1.412A1.93 1.93 0 0 0 20 6h-6.3l-1.05-1.1 1.05-1.05a.48.48 0 0 0 0-.7.48.48 0 0 0-.7 0l-2.825 2.825q-.15.15-.15.363a.46.46 0 0 0 .175.362.48.48 0 0 0 .7 0l1.05-1.05L13 6.7V9q0 .825-.587 1.412A1.93 1.93 0 0 1 11 11H8.975q.575.425.925.875T10.6 13h.4q1.65 0 2.825-1.175T15 9V8h5zM16.025 16q.15-.675.363-1.088.212-.413.662-.912H10.9q.1.575.1 1t-.1 1zm3.475 4a3.37 3.37 0 0 1-2.475-1.025A3.37 3.37 0 0 1 16 16.5q0-1.45 1.025-2.475A3.37 3.37 0 0 1 19.5 13q1.45 0 2.475 1.025A3.37 3.37 0 0 1 23 16.5q0 1.45-1.025 2.475A3.37 3.37 0 0 1 19.5 20M6 20q-2.075 0-3.537-1.462Q1 17.075 1 15c0-2.075.488-2.563 1.463-3.538Q3.925 10 6 10c2.075 0 2.563.487 3.538 1.462Q11 12.925 11 15c0 2.075-.487 2.563-1.462 3.538Q8.075 20 6 20"})});var L=r(86517);const O={A:(0,D.jsx)(M,{}),B:(0,D.jsx)(I,{}),C:(0,D.jsx)(L.A,{}),D:(0,D.jsx)(_.A,{}),F:(0,D.jsx)(R,{}),G:(0,D.jsx)(P,{})},k=["A","B","C","D","F","G","CE","DE","BE","C1","A1","B1","C1E","D1","D1E","BPT"],U=()=>{const e=(0,u.A)(),{control:t}=(0,o.xW)(),r=(0,S.kb)(),[n,a]=(0,i.useState)(!1),s=!r||n?k:k.slice(0,5),c=r&&k.length>5;return(0,D.jsx)(o.xI,{control:t,name:"drivingLicenses",render:({field:t})=>(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(j.Ul,{columnGap:"[164px]",columns:{sm:2},mb:"s16",children:s.map((r=>{const n=Object.keys(O).includes(r)&&r,i=t.value?.includes(r);return(0,D.jsx)(j.Li,{children:(0,D.jsx)(T.A,{checked:i,"data-cy":"license",label:`${e("account_profile.driving_licenses.c
2ategory")} ${r}`,name:`license-${r}`,onChange:()=>i?t.onChange(t.value?.filter((e=>e!==r))):t.onChange([...t.value,r]),py:"s8",children:n&&(0,D.jsx)(j.L9,{flexGrow:1,textAlign:"right",children:O[n]})})},`license-${r}`)}))}),c&&(0,D.jsx)(j.so,{justifyContent:"center",children:(0,D.jsx)(j.$n,{buttonType:"blended","data-cy":"teased-content-button",onClick:()=>a(!n),width:{base:"100%",sm:"auto"},children:e(n?"common.action.show_less":"common.action.show_more")})})]})})};var N=r(94956),F=r(35322),H=r(49975),q=r(12219),$=r(38108),z=r(65419),B=r(82183),V=r(63489),Y=r(48157),Q=r(88217);const G=["image/jpeg","image/png","image/gif","image/webp"],K=(e,t,r,n,i)=>async o=>{const a=await(0,z.db)({cookieService:t,...n?{options:{headers:{"x-source-jwt":n}}}:{},locale:r,path:c.Ok.MEDIA_API_HOST+"media",tokenService:i});(0,B.Z)([{physicalFile:e,key:(0,$.A)()}],c.Ok.MEDIA_API_HOST+"media",a,{},{start:()=>{o({type:Q.C.USER_AVATAR.UPLOAD.REQUEST})},success:()=>{},error:()=>{},progress:()=>{},fileStart:()=>{},fileProgress:()=>{},fileError:()=>{o({type:Q.C.USER_AVATAR.UPLOAD.FAILURE})},fileSuccess:(e,t)=>{o({type:Q.C.USER_AVATAR.UPLOAD.SUCCESS});const r=(e=>"object"==typeof e?(0,V.A)(e):(0,V.A)({}))(t);var n;G.includes(r.mimeType||"")||o({type:Q.C.PICTURE.UPDATE.FAILURE}),o([(n=r,{type:Q.C.USER_AVATAR.ORIGINAL_IMAGE.LOADED,payload:n}),(0,Y.h)({key:"cropping"})])}})};var X=r(53458),W=r(81810),Z=r.n(W),J=r(93123),ee=r(86983),te=r(70119),re=(r(82822),r(6799)),ne=r(74124);var ie=r(77945),oe=r(55082);const ae=()=>{const e=(0,l.A)(),t=(0,N.A)(),{isModalOpen:r}=(0,p.A)("cropping"),{originalImage:n}=(0,te.A)((e=>e.profile.croppingModal)),o=(0,u.A)(),a=(0,J.e)(n.id||""),s=(0,i.useRef)(null),[d,h]=(0,i.useState)(),[m,g]=(0,i.useState)(),[y,f]=(0,i.useState)(!1),[x,A]=(0,i.useState)(""),{cropImage:C,isLoading:w,isError:b}=(()=>{const e=(0,re.c)(8),t=(0,N.A)();let r;e[0]!==t?(r=t.get("core.fetch"),e[0]=t,e[1]=r):r=e[1];const n=r,[o,a]=(0,i.useState)(!1),[s,l]=(0,i.useState)(!1);let d;e[2]!==n?(d=async e=>{const{id:t,sourceToken:r,cropOptions:i}=e;a(!0),l(!1);const o=await n.fetch(`${c.Ok.MEDIA_API_HOST}images/${t}/crop`,{method:"POST",headers:{...r?{"x-source-jwt":r}:{},"Content-Type":"application/json"},body:{height:i.height&&Math.round(i.height),width:i.width&&Math.round(i.width),x:i.x&&Math.round(i.x),y:i.y&&Math.round(i.y)}});if(!o.ok){const e=new Error("Failed to crop image");return ne.v.error(e,{tags:{"error.code":o.statusCode},extras:{"API response":JSON.stringify(o.result,null,2),"Image ID":t,"Crop options":JSON.stringify(i,null,2),"Response status":o.statusCode}}),a(!1),l(!0),{isSuccess:!1,data:null}}return a(!1),{isSuccess:!0,data:o.result}},e[2]=n,e[3]=d):d=e[3];const h=d;let u;return e[4]!==h||e[5]!==s||e[6]!==o?(u={cropImage:h,isLoading:o,isError:s},e[4]=h,e[5]=s,e[6]=o,e[7]=u):u=e[7],u})(),{mutateAsync:v}=(0,q.wQ)();(0,i.useEffect)((()=>{f(!1),A("")}),[n]);const E=(0,i.useCallback)((async()=>{if(!n.id||!m)return;A("");const{getSourceToken:r}=t.wire(oe.d),i=await r(),{data:a,isSuccess:s}=await C({id:n.id,cropOptions:m,sourceToken:i});if(!s)return A(o("account_profile.picture.cropping.error"));if(s&&a&&n.id&&m){const t=(0,V.o)(a);v({originalImageId:n.id,croppedMediaObject:t,cropOptions:m}),e((0,Y.V)())}}),[C,m,t,e,n.id,o,v]);return(0,D.jsxs)(ie.A,{"data-cy":"edit-picture-modal",hasError:b,isOpen:r,isPending:w,primaryHandler:E,title:o("account_profile.picture.cropping.header"),children:[(0,D.jsx)(j.so,{justifyContent:"center",overflow:"hidden",p:"s16",...!y&&{display:"none"},children:(0,D.jsx)(Z(),{aspect:1,circularCrop:!0,crop:d,onChange:(e,t)=>
2{h(t),g((0,ee.yS)(t,n))},children:(0,D.jsx)("img",{alt:"Crop me",onLoad:()=>{f(!0);const{width:e,height:t}=n;if(!e||!t)return;const r=(0,ee.G1)(e,t,1);h(r),g((0,ee.yS)(r,n))},ref:s,src:a})})}),x&&(0,D.jsx)(j.so,{color:"input.accent.errorMain",justifyContent:"center",children:o("account_profile.picture.cropping.error")}),!y&&(0,D.jsx)(j.y$,{color:"gray.700",display:"flex",justifyContent:"center"})]})};var se=r(7507),ce=r(42776),le=r(16505);const de=({children:e,...t})=>(0,D.jsxs)(j.so,{alignItems:"center",border:"[2px solid white]",borderRadius:"[50%]",bottom:"s0",justifyContent:"center",left:"s0",overflow:"hidden",position:"absolute",right:"s0",top:"s0",...t,children:[(0,D.jsx)(j.i,{bg:"grayAlphaDark.700",bottom:"s0",left:"s0",mixBlendMode:"multiply",position:"absolute",right:"s0",top:"s0"}),(0,D.jsx)(j.i,{position:"relative",children:e})]}),he=(0,i.forwardRef)((({avatarSize:e="sm",hasError:t,hasNoBorderWhenImage:r,isLoading:n,...o},a)=>{const s=(0,u.A)(),{src:c,type:l}=(0,q.cc)().data??{},d="custom"===l&&c,[h,p]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{if(t){p(!0);const e=setTimeout((()=>p(!1)),1500);return()=>clearTimeout(e)}}),[t]),(0,D.jsxs)(j.ej,{color:"gray.700",position:"relative",ref:a,...o,children:[(0,D.jsx)(se.A,{avatarSize:e,"data-cy":d?"avatar-image":"empty-avatar",hasNoBorderWhenImage:r}),n?(0,D.jsx)(de,{children:(0,D.jsx)(j.y$,{color:"white"})}):h?(0,D.jsx)(de,{children:(0,D.jsxs)(j.so,{alignItems:"center",flexDirection:"column",justifyContent:"center",children:[(0,D.jsx)(ce.A,{color:"red.500",display:"block",iconSize:"lg",mx:"auto"}),(0,D.jsx)(j.L9,{color:"white",textAlign:"center",textStyle:"caption1",children:s("account_profile.header.edit.error")})]})}):(0,D.jsx)(de,{opacity:{_active:1,base:0,_hover:1},transitionDuration:"d125",transitionProperty:"opacity",children:(0,D.jsx)(le.A,{color:"white",iconSize:"lg"})})]})}));he.displayName="UserAvatarLoader";const ue=he;var pe=r(98398),me=r(50632),ge=r(94572);const ye=()=>{const e=(0,N.A)(),t=(0,u.A)(),r=(0,l.A)(),n=e.get("core.cookie"),o=(0,H.A)(),a=(0,i.useRef)(null),s=(0,i.useCallback)((()=>a.current?.click()),[]),{data:c,isLoading:d,error:h}=(0,q.cc)(),{src:p,type:m}=c??{},{mutate:g}=(0,q.yo)(),y="custom"===m&&p;return(0,D.jsxs)(j.so,{alignItems:"center",gap:"s24",my:"s40",children:[(0,D.jsx)(ae,{}),(0,D.jsx)(ue,{avatarSize:{base:"lg",md:"xl"},hasError:!!h,hasNoBorderWhenImage:!0,isLoading:d,onClick:s,width:"[fit-content]"}),y?(0,D.jsxs)(j.$n,{buttonColor:"destructive",buttonType:"blended","data-cy":"delete-picture",gap:"s8",onClick:()=>g(),children:[(0,D.jsx)(ge.A,{})," ",t("account_profile.picture.delete")]}):(0,D.jsxs)(j.$n,{buttonType:"blended","data-cy":"upload-picture",gap:"s8",onClick:s,children:[(0,D.jsx)(me.A,{})," ",t("account_profile.picture.upload")]}),(0,D.jsx)(X.A,{allowedMimetypes:["image/jpeg","image/jpg","image/png","image/gif","image/webp"],id:"hiddenFileInputProfileAvatar",maxSize:pe.x7,onError:e=>r((0,b.tj)("TextSnackbar",{data:{text:(e?.size??0)>pe.x7?t("file_upload.file_error.max_size",{max_size:(0,F.A)(pe.x7)}):t("file_upload.file_error.upload")},severity:"error",timeout:b.Q9})),onSelected:async t=>{const{getSourceToken:i}=e.wire(oe.d),a=await i();r(K(t,n,o,a,e.get("auth.token")))},ref:a})]})};var fe=r(21366),xe=r(74786),Ae=r(35227),Ce=r(44207),we=r(4756),be=r(34776),ve=r(68614),Ee=r(41131),Se=r(61493),je=r(58550);const Te=()=>{const e=(0,u.A)(),t=(0,d.A)(),r=(0,l.A)(),{openModal:s,isModalOpen:A,closeModal:w}=(0,p.A)("dirty-form"),{data:{candidate:S,drivingLicenses:T=[]}={}}=(0,m.B9)(),{data:{email:_}={}}=(0,h.sg)(),{mutateAsync:I}=(0,g.j)(),{mutateAsync:R}=(0,y.p)(),M=(0,n.jE)(),P=(0,f.A)(),L=(0,i.useMemo)((()=>({city:S?.city||"",countryCode:S?.countryCode||"CH",...a.j5.is("jobup")?{drivingLicenses:T.map((e=>e.category))}:{},firstName:S?.firstName||"",gender:S?.gender||null,lastName:S?.lastName||"",...a.j5.is("jobup")?{nationalityCode:S?.nationalityCode}:{},phone:S?.phone||"",dateOfBirth:(0,x.Oc)(S?.dateOfBirth)||{},zipCode:S?.zipCode||""})),[S?.city,S?.countryCode,S?.dateOfBirth,S?.firstName,S?.gender,S?.lastName,S?.nationalityCode,S?.phone,S?.zipCode,T]),O=(0,o.mN)({defaultValues:L}),{control:k,handleSubmit:N,setValue:F,formState:{dirtyFields:H,errors:q,isDirty:$,isSubmitting:z}}=O,B=(0,i.useCallback)((async({drivingLicenses:e=[],...n})=>{try{await Promise.all([I(C(n)),...a.j5.is("jobup")&&H.drivingLicenses?[R(e.map((e=>({category:e}))),{onSuccess:()=>{r((0,b.tj)("GenericConfirmSnackbar",{allowList:["USER_PROFILE"],timeout:b.Q9,hideOnLeaveScope:!0}))}})]:[]]),await M.refetchQueries({queryKey:h.qv}),t({route:c.JZ.USER_PROFILE}
2,{eventData:{event_component_type:"personal_data_submit"}})}catch(e){}}),[H.drivingLicenses,r,I,R,t,M]);return(0,D.jsx)(j.gZ,{children:(0,D.jsx)(o.Op,{...O,children:(0,D.jsxs)(j.mc,{containerSize:"xs",my:"s40",children:[(0,D.jsxs)(j.VS,{alignItems:"center",display:"flex",gap:"s4",mb:"s16",onClick:()=>$?s():t({route:c.JZ.USER_PROFILE},{eventData:{event_component_type:"personal_data_back"}}),children:[(0,D.jsx)(je.A,{})," ",(0,D.jsx)(j.P,{children:e("common.action.back")})]}),(0,D.jsx)(j.H1,{id:"personal-details",textStyle:"display3",children:e("account_profile.completeness.personal_details")}),(0,D.jsx)(ye,{}),(0,D.jsxs)(be.A,{onSubmit:N(B),children:[(0,D.jsx)(j.i,{mb:"s24",children:(0,D.jsxs)(Ae.A,{control:k,"data-cy":"gender-input",mb:{base:"s24",md:"s40"},name:"gender",children:[(0,D.jsx)(ve.I,{label:e("account_profile.personal_data.edit.form.gender.label.f"),value:"f"}),(0,D.jsx)(ve.I,{label:e("account_profile.personal_data.edit.form.gender.label.m"),value:"m"})]})}),(0,D.jsxs)(j.xA,{flexDirection:"column",gap:"s40",children:[(0,D.jsxs)(j.xA,{gap:"s24",children:[(0,D.jsx)(j.H2,{id:"name",textStyle:"title4",children:e("account_profile.personal_data.name.title")}),(0,D.jsx)(we.A,{control:k,"data-cy":"first-name-input",label:e("account_profile.personal_data.edit.form.first_name.label"),name:"firstName"}),(0,D.jsx)(we.A,{control:k,"data-cy":"last-name-input",label:e("account_profile.personal_data.edit.form.last_name.label"),name:"lastName"})]}),(0,D.jsxs)(j.xA,{gap:"s24",children:[(0,D.jsxs)(j.so,{alignItems:"center",gap:"s16",justifyContent:"space-between",children:[(0,D.jsx)(j.H2,{id:"date-of-birth",textStyle:"title4",children:e("account_profile.personal_data.date_of_birth")}),(0,D.jsx)(j.$n,{buttonType:"blended",onClick:()=>F("dateOfBirth",{}),children:e("accessibility.action.clear")})]}),(0,D.jsx)(fe.A,{control:k,error:q?.dateOfBirth&&e("account_profile.form.error.invalid_birth_date"),name:"dateOfBirth",rules:{validate:x.jR},units:"dmy"})]}),a.j5.is("jobup")&&(0,D.jsxs)(j.xA,{gap:"s8",children:[(0,D.jsxs)(j.so,{alignItems:"center",gap:"s24",justifyContent:"space-between",children:[(0,D.jsx)(j.H2,{id:"nationality",textStyle:"title4",children:e("account_profile.personal_data.nationality.label")}),(0,D.jsx)(j.$n,{buttonType:"blended",onClick:()=>F("nationalityCode",""),children:e("accessibility.action.clear")})]}),(0,D.jsx)(Ce.A,{control:k,label:e("account_profile.personal_data.nationality.label"),name:"nationalityCode",...P})]}),(0,D.jsxs)(j.xA,{gap:"s24",children:[(0,D.jsx)(j.H2,{textStyle:"title4",children:e("account_profile.completeness.contact_information")}),(0,D.jsx)(xe.Z,{control:k,"data-cy":"phone-input",label:e("account_profile.personal_data.add.phone_number"),name:"phone"}),(0,D.jsx)(Ee.A,{"data-clarity-mask":"true","data-cy":"email-input",disabled:!0,label:e("account_onboarding.profile_information_form.email_address"),value:_})]}),(0,D.jsxs)(j.xA,{gap:"s24",children:[(0,D.jsx)(j.H2,{id:"residence",textStyle:"title4",children:e("account_profile.personal_data.add.residence")}),(0,D.jsx)(E.A,{defaultValue:L.city&&L.zipCode?`${L.zipCode} ${L.city}`:""})]}),a.j5.is("jobup")&&(0,D.jsxs)(j.xA,{gap:"s24",children:[(0,D.jsx)(j.H2,{id:"driving-licenses",textStyle:"title4",children:e("account_profile.driving_licenses.title")}),(0,D.jsx)(U,{})]}),(0,D.jsxs)(j.so,{flexWrap:{base:"wrap",sm:"nowrap"},gap:"s16",justifyContent:"flex-end",children:[(0,D.jsx)(j.$n,{buttonType:"outlined",onClick:()=>$?s():t({route:c.JZ.USER_PROFILE},{eventData:{event_component_type:"personal_data_cancel"}}),width:{base:"100%",sm:"auto"},children:e("accessibility.action.cancel")}),(0,D.jsx)(j.mz,{buttonState:z?"pending":"default","data-cy":"submit",type:"submit",width:{base:"100%",sm:"auto"},children:e("accessibility.action.save")})]}),(0,D.jsx)(v.A,{headline:e("account_profile.discard_changes.title"),isOpen:A,primaryHandler:()=>{w(),t({route:c.JZ.USER_PROFILE},{eventData:{event_component_type:"personal_data_dialog_back"}})},primaryLabel:e("account_profile.discard_changes.primary")})]})]})]})})})};Te.beforeTransition=async({di:e})=>{await(0,s.C)(e,[m.VB]),e.get("seo.meta").setTitle(e.get("core.translation").t("account_profile.completeness.personal_details"))},Te.loadTranslations=()=>["account_onboarding","account_profile","date","pools/countries","pools/months","typeahead","file_upload"],Te.registerReducers=()=>({profile:w.A,typeahead:Se.yj});const _e=Te},21366(e,t,r){"use strict";r.d(t,{A:()=>m});var n=r(38849),i=(r(78944),r(18910),r(57424)),o=r(41711),a=r(96777),s=r(59033),c=r(58751),l=r(52695),d=function(e){return e.Day="day",e.Month="month",e.Year="year",e}(d||{});const h=(0,i.A)(Date.now()),u=(0,o.forwardRef)((({"data-cy":e,disabled:t,error:r,id:n="date",inputColor:i="default",onChange:u,required:p,tabIndex:m,units:g="my",value:y={},onBlur:f,...x},A)=>{const C=(0,a.A)(),w=(0,o.useCallback)((e=>t=>u({...y,[e]:t})),[u,y]),b=(0,o.useMemo)((()=>{return e=Number.parseInt(y.month||"1"),t=y.year&&Number.parseInt(y.year)||h,new Date(t,e,0).getDate();var e,t}),[y.month,y.year]),v=(0,o.useMemo)((()=>({d:{getDisplayValue:e=>e,label:C("date.day_label"),options:[...Array(b).keys()].map((e=>{const t=`0${e+1}`.slice(-2);return{id:t,key:`day-${t}`,label:t}})),unit:d.Day},m:{getDisplayValue:e=>e?C(`months.${parseInt(e)}`):"",label:C("date.month_label"),options:[...Array(12).keys()].map((e=>{const t=`0${e+1}`.slice(-2);return{id:t,key:`month-${t}`,label:C(`months.${e+1}`)}})),unit:d.Month},y:{getDisplayValue:e=>e,label:C("date.year_label"),options:[...Array(80).keys()].map((e=>{const t=(h-e).toString();return{id:t,key:`year-${t}`,label:t}})),unit:d.Year}})),[b,C]);return(0,o.useEffect)((()=>{y.day&&parseInt(y.day||"0",10)>b&&u({...y,[d.Day]:b.toString()})}),[b,u,y]),(0,l.jsxs)(s.i,{...r?{"data-scroll-anchor":n}:{},...e?{"data-cy":e}:{},width:"100%",...x,children:[(0,l.jsx)(s.so,{_focusVisible:{overflow:"hidden"}
2,ref:A,tabIndex:-1,children:g.split("").map(((e,o)=>{const{getDisplayValue:a,label:d,unit:h,options:u}=v[e],x=y[h]||"";return(0,l.jsx)(s.i,{...g.length>o+1?{pr:"s8"}:{},width:"100%",children:(0,l.jsx)(c.A,{"data-cy":`date-select-${h}`,...t?{disabled:!0}:{},displayValue:a(x),...r?{error:""}:{},id:`${n}-date-select-${h}`,inputColor:i,items:u,label:d,onBlur:f,onChange:w(h),required:p,tabIndex:m,value:x})},`${n}-select-${h}`)}))}),!!r&&(0,l.jsx)(s.P,{color:"colorPalette.errorMain",colorPalette:`input.${i}`,"data-cy":"error-text",pl:"[14px]",textStyle:"caption1",children:r})]})}));u.displayName="DateSelect";const p=u,m=({control:e,defaultValue:t,name:r,rules:i,shouldUnregister:o,...a})=>(0,l.jsx)(n.xI,{control:e,defaultValue:t,name:r,render:({field:{onBlur:e,onChange:t,...r},fieldState:{error:n}})=>(0,l.jsx)(p,{...r,error:n?.message,...i?.required?{required:!0}:{},...a,onBlur:t=>{e?.(),a.onBlur?.(t)},onChange:e=>{t?.(e),a.onChange?.(e)}}),rules:i,shouldUnregister:o})},74786(e,t,r){"use strict";r.d(t,{Z:()=>E});r(78944),r(27025),r(18910);var n=r(41711),i=r(38849),o=r(11175),a=r(90701),s=r(49449);var c=r(96777),l=r(87653),d=r(59033),h=r(1856),u=r(58751),p=r(41131),m=r(92809),g=r(52695);const y={selection:{height:16,width:20},dropdown:{height:18,width:24}},f={selection:{normal:{height:"[16px]",width:"[20px]"},square:{height:"[20px]",width:"[20px]"}},dropdown:{normal:{height:"[18px]",width:"[24px]"},square:{height:"[24px]",width:"[24px]"}}},x=new Set(["CH","VA"]);let A=null;const C=()=>(A||(A=r.e("country-flags").then(r.bind(r,7362)).catch((e=>(A=null,Promise.reject(e))))),A),w=({countryCode:e,size:t="dropdown"})=>{const r=(()=>{const[e,t]=(0,n.useState)(null);return(0,n.useEffect)((()=>{let e=!0;return C().then((r=>{e&&t(r)})).catch((()=>{})),()=>{e=!1}}),[]),e})(),{height:i,width:o}=y[t],a=x.has(e),s=a?o:i;if(!r){const e=f[t][a?"square":"normal"];return(0,g.jsx)(d.i,{"aria-hidden":"true",height:e.height,width:e.width})}const c=r[e];return c?(0,g.jsx)(c,{"aria-hidden":!0,height:s,width:o}):null},b=({countryCode:e})=>{const t=m.H.find((t=>t[0]===e))?.[1],r=(0,c.A)();return(0,g.jsxs)(d.so,{minWidth:"[294px]",px:"s0",children:[(0,g.jsx)(w,{countryCode:e,size:"dropdown"}),(0,g.jsx)(d.i,{ml:"s8",children:`+${t}`}),(0,g.jsx)(d.L9,{"aria-hidden":"true",ml:"s8",children:r(`countries.${e}`)})]})},v=({countryCode:e})=>(0,g.jsxs)(d.so,{alignItems:"center",pr:"s16",children:[(0,g.jsx)(w,{countryCode:e,size:"selection"}),(0,g.jsx)(d.L9,{ml:"s12",mr:"s8",children:e})]}),E=({control:e,disabled:t=!1,id:r,parseError:y,label:f,name:x,ref:A,onBlur:C,rules:w,...E})=>{const S=(0,c.A)(),{getValues:j,setValue:T}=(0,i.xW)(),_=(0,i.FH)({control:e,name:x})??j(x),D=(0,o.aU)(_),[I,R]=(0,n.useState)(!1),M=(0,n.useRef)(null),{countryCode:P,formattedPhone:L,handlePhoneValueChange:O,handleCountryCodeChange:k,dialCode:U}=(0,l.$)(D);(0,n.useEffect)((()=>{const e=D===s.P||D===`${s.P}${U}`?"":D;e!==_&&T(x,e)}),[]);const N=(0,n.useMemo)((()=>(0,o.A_)(o.cr,m.H.map((e=>e[0])),S).map(((e,t)=>({id:e,labelNode:(0,g.jsx)(b,{countryCode:e}),hasDivider:t===o.cr.length-1,key:e,label:S(`countries.${e}`)})))),[S]),F=!!w?.required,H=L||`${s.P}${U}`;return(0,g.jsx)(i.xI,{...E,control:e,name:x,render:({field:{onChange:e,onBlur:n,value:i,...o},fieldState:{error:c}})=>{const l=r||x||!!f&&f.replace(/\s+/g,"_"),m=void 0!==c;return(0,g.jsxs)(d.i,{"data-cy":"phone-input",mb:"s16",position:"relative",children:[!!f&&(0,g.jsx)(h.A,{"aria-hidden":"true",hasError:m,htmlFor:l||f,id:`input-label-${l}`,isFocus:I,mb:"s8",required:F,children:f}),(0,g.jsxs)(d.so,{children:[(0,g.jsx)(u.A,{ariaLabel:S("accessibility.form.phone_country_code"),disabled:t,displayComponent:(0,g.jsx)(v,{countryCode:P}),dropdownTop:"57px",id:"phone-select-dropdown",items:N,label:"",maxHeight:"[360px]",onChange:e=>{k(e),setTimeout((()=>M.current?.focus()),0)},required:!0,selectTriggerProps:{borderBottomRightRadius:"r0",borderTopRightRadius:"r0",pt:"s0",borderRight:"s0"},value:P}),(0,g.jsx)(d.i,{flex:"1",children:(0,g.jsx)(p.A,{...o,borderBottomLeftRadius:"r0",borderLeft:"none",borderTopLeftRadius:"r0",defaultValue:H,error:c?.message,onBlur:t=>{O(t);const r=(0,a.dV)(t.target.value);""!==r&&r!==s.P&&r!==`${s.P}${U}`||e(""),n?.()},onChange:t=>{O(t);const r=(0,a.dV)(t.target.value);""===r||r===s.P||r===`${s.P}${U}`?e(""):e(t)},onFocus:e=>{O(e),R(!0)},ref:M,...F?{required:!0}:{},value:H})})]})]})},rules:{validate:e=>(({dialCode:e,isRequired:t=!1,t:r,value:n})=>{const i=n?(0,a.dV)(n):"",c=!i||i===s.P||i===`${s.P}${e}`;if(!t&&c)return!0;
2if(c)return r("api_messages.form.error.invalid_phone");if(!(0,o.IN)(i))return r("api_messages.form.error.invalid_phone");const l=i.match(new RegExp(`\\+(${e})(.*)$`)),d=l?l[2].length:0,h=i.length,u=(0,o.f9)(i,s.P).length;return!(h&&d<6||u<9||h>s.X+s.P.length)||r("api_messages.form.error.invalid_phone")})({t:S,value:e,isRequired:F,dialCode:U})}})}},87653(e,t,r){"use strict";r.d(t,{$:()=>c});r(78944),r(27025);var n=r(41711),i=r(11175),o=r(90701),a=r(92809),s=r(49449);const c=e=>{const t=(0,o.dV)(e),r=(0,i.pm)(t),[c,l]=(0,n.useState)(r||"CH"),[d,h]=(0,n.useState)(a.H.find((e=>e[0]===c))?.[1]||""),[u,p]=(0,n.useState)(i.uE[c]||i.kW),[m,g]=(0,n.useState)(t&&t.length>d.length?(0,i.LA)(r?t:d,s.P):""),[y,f]=(0,n.useState)((0,i.vN)({value:m,mask:u,maskOffset:d.length+1,maskSymbol:"."})),x=(0,n.useCallback)((e=>{e.target.value=(0,i.aU)(e.target.value);const t=e.target.value;if(!t.startsWith((0,i.LA)((0,o.dV)(d),s.P)))return;if(t.length>s.X+s.P.length)return void(e.target.value=t.substring(0,s.X+s.P.length));if(t.length<d.length+1)return g((0,i.LA)(d,s.P)),void f((0,i.LA)(d,s.P));if(!(0,i.IN)(t))return;const r=(0,i.vN)({value:t,mask:u,maskOffset:(0,o.dV)(d).length+1,maskSymbol:"."});g((0,i.LA)(t,s.P)),f(r)}),[d,u]),A=(0,n.useCallback)((e=>{const t=a.H.find((t=>t[0]===e));t&&(l(e),h(t[1]),g((0,i.LA)(t[1],s.P)),f((0,i.LA)(t[1],s.P)),p(i.uE[e]||i.kW))}),[]),C=!e||""===(0,o.dV)(e);return{countryCode:c,dialCode:d,formattedPhone:C?"":y,handleCountryCodeChange:A,handlePhoneValueChange:x,phoneInput:C?"":m}}},32979(e,t,r){"use strict";r.d(t,{C:()=>n,w:()=>i});r(78944),r(18910);const n=async(e,t)=>Promise.all(t.map((({queryKey:t,queryFn:r})=>e.get("query.client").prefetchQuery({queryKey:t,queryFn:()=>r(e)})))),i=async(e,t)=>Promise.all(t.map((({queryKey:t,queryFn:r})=>e.get("query.client").prefetchInfiniteQuery({queryKey:t,queryFn:()=>r(e),initialPageParam:1}))))},33845(e,t,r){"use strict";r.d(t,{I1:()=>s,OX:()=>d,Q9:()=>o,dG:()=>l,t9:()=>h,tj:()=>c});var n=r(38108),i=r(93565);const o=5e3,a=["COMPANY_INDEX","COMPANY","COMPANY_VACANCIES","COMPANY_REVIEWS","COMPANY_CREATE_REVIEW","COMPANY_CREATE_REVIEW_GUIDELINES"],s={companyPages:a,vacancyPages:["VACANCY_DETAIL"],searchPages:["VACANCY_SEARCH","VACANCY_FILTER","COMPANY_INDEX",...a]},c=(e,t={})=>{const r=t.id||(0,n.A)(),o={type:i.k.ADD,snackType:e,...t,id:r},{timeout:a}=t;if(!a)return o;return[o,e=>{setTimeout((()=>{e(d(r))}),a)}]},l=e=>({type:i.k.DISMISS,id:e}),d=e=>t=>{t({type:i.k.PREPARE_DISMISS,id:e}),setTimeout((()=>t(l(e))),300)},h=e=>({type:i.k.DISMISS_BY_TYPE,snackType:e})},31504(e,t,r){"use strict";r.d(t,{V:()=>c,v:()=>l});r(78944),r(18910);var n=r(71646);const i=["xl","lg","md","sm","xs","base"],o={xxs:24,xs:32,sm:48,md:64,lg:96,xl:128,xxl:200},a=e=>e&&"string"==typeof e?[["",o[e]||0]]:i.reduce(((t,r)=>{const i=(0,n.S)(`breakpoints.${r}`),a=o[e?.[r]||""];return a?[...t,[i?`(min-width:${i})`:"",a]]:t}),[]),s=/(https:\/\/(?:stage.)?media.job(?:s|up)\.ch\/\w+\/\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b)(?:\/\.*?(\d*)x\d*.*)?(?:.*)/,c=(e,t)=>{if(!s.test(e))return{src:e};const r=a(t).map((([t,r])=>{const n=r-2;return{...t?{media:t}:{},srcSet:`${e.replace(s,`$1?format=png&dimensions=${n}x0 1x, $1?format=png&dimensions=${2*n}x0 2x`)}`}}));return{src:e.replace(s,`$1?format=png&dimensions=${o.sm}x0`),sources:r}},l=(e,t,r)=>{if(!s.test(e))return{src:e};const n=a(t).map((([t,n])=>{const i=r?n:n-2;return{...t?{media:t}:{},srcSet:`${e.replace(s,`$1?format=jpg&dimensions=${i}x${i}&transform=crop 1x, $1?format=jpg&dimensions=${2*i}x${2*i}&transform=crop 2x`)}`}})),i=r?o.sm:o.sm-2;return{src:e.replace(s,`$1?format=jpg&dimensions=${i}x${i}&transform=crop`),sources:n}}},9905(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(76873),i=r(44007),o=r(41711),a=r(59033),s=r(52695);const c=(0,o.forwardRef)((({autoFocus:e=!1,checkboxType:t,checked:r,children:o,disabled:c=!1,error:l,hasEllipsis:d,indeterminate:h,label:u,name:p,onChange:m,parseError:g,...y},f)=>{const x=void 0!==l;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(a.JU,{alignItems:"center",...l?{"aria-describedby":`${p}-error`}:{},color:c?"gray.500":"gray.900",...x?{"data-scroll-anchor":p}:{},cursor:c?"not-allowed":"pointer",display:"flex",htmlFor:`checkbox-${p}`,position:"relative",transitionDuration:"d125",transitionProperty:"all",transitionTimingFunction:"ease-in-out",userSelect:"none",...u?{title:u}:{},...y,children:[(0,s.jsx)(n.I4.input,{className:"peer",...e?{autoFocus:e}:{},border:"none","data-cy":`checkbox-${p}`,defaultChecked:r,disabled:c,height:"[0px]",id:`checkbox-${p}`,name:p,onChange:m,opacity:0,position:"absolute",ref:f,type:"checkbox",width:"[0px]",zIndex:"z-1"}),(0,s.jsx)(a.L9,{alignItems:"center",...c?{}:{bg:{_hover:"purpleAlphaDark.200"}},_peerFocusVisible:{outline:"[3px solid {colors.purple.900}]",outlineOffset:"[2px]"},borderRadius:"r4",display:"flex",flexShrink:0,height:"[26px]",justifyContent:"center",width:"[26px]",children:(0,s.jsx)(a.L9,{bgColor:r||h?c?"gray.300":"purple.900":"[transparent]",...r?{bgImage:"url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjIiIGJhc2VQcm9maWxlPSJ0aW55IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTcgMjFjLS41MTIgMC0xLjAyNC0uMTk2LTEuNDE0LS41ODZsLTUtNWMtLjc4LS43OC0uNzgtMi4wNDcgMC0yLjgyOC43OC0uNzggMi4wNDgtLjc4IDIuODI4IDBsMy42MzQgMy42MzRMMjAuNjM2IDMuNTM4Yy44MDYtLjc1MiAyLjA3My0uNzEgMi44MjYuMDk3Ljc1NC44MDguNzEgMi4wNzMtLjA5OCAyLjgyN2wtMTUgMTRDNy45OCAyMC44MjIgNy40OSAyMSA3IDIxeiIvPjwvc3ZnPg==)"}:h?{bgImage:"url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+CiA8cGF0aCAgZD0ibTIsMTJsMjAsMCIgIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlPSIjZmZmIiBmaWxsPSJub25lIi8+Cjwvc3ZnPg==)"}:{},border:"[2px solid]",borderColor:c?"gray.300":r||h?"purple.900":"gray.900",borderRadius:"r2",display:"inline-block",height:"[18px]",width:"[18px]"})}),!!u&&(0,s.jsx)(a.L9,{...d?{className:(0,i.gO)()}:{},flex:"[1 1 auto]",ml:"s8",children:u}),o]}),!!l&&(0,s.jsx)(a.P,{color:"red.700","data-cy":`${p}-error`,id:`${p}-error`,pl:"[14px]",textStyle:"caption1",children:g?g(l):l})]})}));c.displayName="Checkbox";const l=c},34776(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(76873),i=r(41711),o=r(52695);const a=({children:e,scrollToError:t=!1,...r})=>{const a=(0,i.useRef)(null);return(0,i.useEffect)((()=>
2{if(t){const e=a.current?.querySelector("[data-scroll-anchor]");e&&(e.scrollIntoView?.({behavior:"smooth"}),e.querySelector("[data-form-field], input, button, textarea, select")?.focus({preventScroll:!0}))}}),[t]),(0,o.jsx)(n.I4.form,{noValidate:!0,ref:a,...r,children:e})}},30441(e,t,r){"use strict";r.d(t,{A:()=>c});r(78944),r(27025),r(18910);var n=r(41711),i=r(96777);const o=["AF","EG","AX","AL","DZ","AS","VI","UM","AD","AO","AI","AQ","AG","GQ","AR","AM","AW","AC","AZ","ET","AU","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BR","VG","IO","BN","BG","BF","BI","CV","EA","CL","CN","CK","CR","CI","CW","DK","DE","DG","DM","DO","DJ","EC","SV","ER","EE","EZ","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","GH","GI","GD","GR","GL","GP","GU","GT","GG","GN","GW","GY","HT","HN","IN","ID","IQ","IR","IE","IS","IM","IL","IT","JM","JP","YE","JE","JO","KY","KH","CM","CA","IC","KZ","QA","KE","KG","KI","CC","CO","KM","CG","CD","XK","HR","CU","KW","LA","LS","LV","LB","LR","LY","LI","LT","LU","MG","MW","MY","MV","ML","MT","MA","MH","MQ","MR","MU","YT","MK","MX","FM","MC","MN","ME","MS","MZ","MM","NA","NR","NP","NC","NZ","NI","NL","NE","NG","NU","KP","MP","NF","NO","OM","AT","TL","PK","PS","PW","PA","PG","PY","PE","PH","PN","PL","PT","PR","MD","RE","RW","RO","RU","SB","ZM","WS","SM","ST","SA","SE","CH","SN","RS","SC","SL","ZW","SG","SX","SK","SI","SO","MO","HK","ES","SJ","LK","BL","SH","KN","LC","MF","PM","VC","ZA","SD","GS","KR","SS","SR","SZ","SY","TJ","TW","TZ","TH","TG","TK","TO","TT","TA","TD","CZ","TN","TR","TM","TC","TV","UG","UA","HU","UY","UZ","VU","VA","VE","AE","US","GB","UN","VN","WF","CX","EH","CF","CY"],a=["CH","FR","DE","IT","AT","ES","PT"],s=e=>{const t=o.map((t=>({id:t,label:e("countries."+t)})));var r;return[...(r=t,a.map((e=>r.find((({id:t})=>t===e))))).map((({id:e,label:t})=>({id:e,key:`prio-${e}`,label:t}))),{id:"country-divider",label:"┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈",disabled:!0},...t]},c=()=>{const e=(0,i.A)();return{"data-cy":"country-select",displayParser:(0,n.useCallback)((t=>t?e(`countries.${t}`):""),[e]),id:"country_select",items:(0,n.useMemo)((()=>s(e)),[e])}}},67086(e,t,r){"use strict";r.d(t,{A:()=>o});r(78944),r(18910);var n=r(59033),i=r(52695);const o=({sources:e,pictureStyle:t,...r})=>e?(0,i.jsxs)("picture",{style:t,children:[e.map((({media:e,srcSet:t,type:r},n)=>(0,i.jsx)("source",{media:e,srcSet:t,type:r},`${r}-${n}`))),(0,i.jsx)(n._V,{...r})," "]}):(0,i.jsx)(n._V,{...r})},82183(e,t,r){"use strict";r.d(t,{Z:()=>o});r(78944),r(45853),r(18910);const n={},i=e=>{try{return JSON.parse(e)}catch(t){return e}},o=(e,t,r,o,a)=>{let s=0;const c=e.length,l={...a};l.fileProgress=(...e)=>{s++,a&&a.progress&&a.progress(100/c*s),a&&a.fileProgress&&a.fileProgress(...e)},a&&a.start&&a.start(),Promise.all(e.map((e=>((e,t,r,o={},a)=>new Promise(((s,c)=>{const l=new XMLHttpRequest;l.open("POST",t),n[e.key]=l,a&&a.fileStart&&a.fileStart(e),Object.keys(r).forEach((e=>l.setRequestHeader(e,r[e]))),l.onload=t=>{const r=t&&t.currentTarget;if(r instanceof XMLHttpRequest){const t=i(r.responseText);if(r.status&&!isNaN(r.status)&&r.status<300){const n={accessToken:r.getResponseHeader("x-access-token")};a&&a.fileSuccess&&a.fileSuccess(e,t,n),s()}else a&&a.fileError&&a.fileError(e,t),c(t)}delete n[e.key]},l.onerror=t=>{const r=t&&t.currentTarget;if(r instanceof XMLHttpRequest){const t=i(r.responseText);a&&a.fileError&&a.fileError(e,t),c(t)}delete n[e.key]},l.onabort=()=>delete n[e.key],l.upload&&(l.upload.onprogress=t=>{if(t.lengthComputable){const r=t.loaded/t.total*100;a&&a.fileProgress&&a.fileProgress(e,r)}});const d=new FormData;Object.keys(o).forEach((e=>d.append(e,o[e]))),d.append("file",e.physicalFile),l.send(d)})))(e,t,r,o,l)))).then((()=>{a&&a.success&&a.success()})).catch((t=>{a&&a.error&&a.error(t),e.forEach((e=>a&&a.fileError&&a.fileError(e,t)))}))}},58550(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(59033),i=r(52695);const o=e=>(0,i.jsx)(n.In,{...e,children:(0,i.jsx)("path",{d:"m10.875 19.3-6.6-6.6a.9.9 0 0 1-.213-.325A1.1 1.1 0 0 1 4 12q0-.201.062-.375a.9.9 0 0 1 .213-.325l6.6-6.6a.98.98 0 0 1 .687-.288.93.93 0 0 1 .713.288q.3.274.313.687a.93.93 0 0 1-.288.713L7.4 11h11.175a.97.97 0 0 1 .713.287.97.97 0 0 1 .287.713.97.97 0 0 1-.287.712.97.97 0 0 1-.713.288H7.4l4.9 4.9a1 1 0 0 1 .288.7.87.87 0 0 1-.288.7q-.275.3-.7.3a1 1 0 0 1-.725-.3"})})},83143(e,t,r){"use strict";r.d(t,{A:()=>
2o});var n=r(59033),i=r(52695);const o=e=>(0,i.jsx)(n.In,{...e,children:(0,i.jsx)("path",{d:"M2.9 7.15q.375-.375.888-.375.512 0 .887.375L12 14.475l7.35-7.35q.35-.35.875-.35c.525 0 .65.125.9.375s.375.546.375.888q0 .512-.375.887l-8.425 8.4a.9.9 0 0 1-.325.213A1.1 1.1 0 0 1 12 17.6q-.2 0-.375-.062a.9.9 0 0 1-.325-.213L2.875 8.9a1.17 1.17 0 0 1-.35-.862q0-.513.375-.888"})})},17027(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(59033),i=r(52695);const o=e=>(0,i.jsx)(n.In,{...e,children:(0,i.jsx)("path",{d:"M4 4C2.355 4 1 5.355 1 7v10a1 1 0 0 0 1 1h1.05c.248 1.685 1.7 3 3.45 3s3.202-1.315 3.45-3h3.1c.248 1.685 1.7 3 3.45 3s3.202-1.315 3.45-3H21a1 1 0 0 0 1-1v-6a1 1 0 0 0-.148-.525l-3.114-5.05A3 3 0 0 0 16.186 4zm0 2h3v4H3V7c0-.565.435-1 1-1m5 0h4v4H9zm6 0h1.186c.348 0 .666.178.85.475v.002L19.208 10H15zM3 12h17v4h-.355c-.567-1.175-1.762-2-3.145-2s-2.578.825-3.145 2h-3.71c-.567-1.175-1.762-2-3.145-2s-2.578.825-3.145 2H3zm3.5 4c.84 0 1.5.66 1.5 1.5S7.34 19 6.5 19 5 18.34 5 17.5 5.66 16 6.5 16m10 0c.84 0 1.5.66 1.5 1.5s-.66 1.5-1.5 1.5-1.5-.66-1.5-1.5.66-1.5 1.5-1.5"})})},50632(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(59033),i=r(52695);const o=e=>(0,i.jsx)(n.In,{...e,children:(0,i.jsx)("path",{d:"m11.5 12.85-.9.875a.93.93 0 0 1-.687.275.97.97 0 0 1-.713-.3.95.95 0 0 1-.275-.7q0-.425.275-.7l2.6-2.6q.3-.3.7-.3t.7.3l2.6 2.6q.276.274.287.688a.93.93 0 0 1-.287.712.98.98 0 0 1-.687.288.97.97 0 0 1-.713-.263l-.9-.875V18H19q1.05 0 1.775-.725T21.5 15.5t-.725-1.775T19 13h-1.5v-2q0-2.075-1.462-3.537Q14.574 6 12.5 6q-2.075 0-3.537 1.463Q7.5 8.925 7.5 11H7q-1.45 0-2.475 1.025A3.37 3.37 0 0 0 3.5 14.5q0 1.45 1.025 2.475A3.37 3.37 0 0 0 7 18h1.5q.424 0 .713.288.287.287.287.712 0 .424-.287.712A.97.97 0 0 1 8.5 20H7q-2.275 0-3.887-1.575T1.5 14.575q0-1.95 1.175-3.475Q3.849 9.575 5.75 9.15q.625-2.3 2.5-3.725T12.5 4q2.925 0 4.962 2.037T19.5 11q1.725.2 2.863 1.488A4.4 4.4 0 0 1 23.5 15.5q0 1.875-1.312 3.188Q20.875 20 19 20h-5.5q-.825 0-1.412-.587A1.93 1.93 0 0 1 11.5 18z"})})},16505(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(59033),i=r(52695);const o=e=>(0,i.jsx)(n.In,{...e,children:(0,i.jsx)("path",{d:"M5 19h1.4l8.625-8.625-1.4-1.4L5 17.6zM19.3 8.925l-4.25-4.2 1.4-1.4a1.92 1.92 0 0 1 1.413-.575 1.92 1.92 0 0 1 1.412.575l1.4 1.4q.575.575.6 1.388a1.8 1.8 0 0 1-.55 1.387zM17.85 10.4 7.25 21H3v-4.25l10.6-10.6zm-3.525-.725-.7-.7 1.4 1.4z"})})},94572(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(59033),i=r(52695);const o=e=>(0,i.jsx)(n.In,{...e,children:(0,i.jsx)("path",{d:"M7 21q-.824 0-1.412-.587A1.93 1.93 0 0 1 5 19V6a.97.97 0 0 1-.713-.287A.97.97 0 0 1 4 5a.97.97 0 0 1 .287-.713A.97.97 0 0 1 5 4h4q0-.425.288-.713A.97.97 0 0 1 10 3h4a.97.97 0 0 1 .713.287A.97.97 0 0 1 15 4h4a.97.97 0 0 1 .712.287Q20 4.575 20 5a.97.97 0 0 1-.288.713A.97.97 0 0 1 19 6v13a1.93 1.93 0 0 1-.587 1.413A1.93 1.93 0 0 1 17 21zM7 6v13h10V6zm2 10q0 .424.288.712A.97.97 0 0 0 10 17a.97.97 0 0 0 .713-.288A.97.97 0 0 0 11 16V9a.97.97 0 0 0-.287-.713A.97.97 0 0 0 10 8a.97.97 0 0 0-.712.287A.97.97 0 0 0 9 9zm4 0q0 .424.288.712A.97.97 0 0 0 14 17a.97.97 0 0 0 .713-.288A.97.97 0 0 0 15 16V9a.97.97 0 0 0-.287-.713A.97.97 0 0 0 14 8a.97.97 0 0 0-.712.287A.97.97 0 0 0 13 9zM7 6v13z"})})},86517(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(59033),i=r(52695);const o=e=>(0,i.jsx)(n.In,{...e,children:(0,i.jsx)("path",{d:"M6 20a2.9 2.9 0 0 1-2.125-.875A2.9 2.9 0 0 1 3 17q-.824 0-1.412-.587A1.93 1.93 0 0 1 1 15V6q0-.824.588-1.412A1.92 1.92 0 0 1 3 4h12q.825 0 1.413.588Q17 5.175 17 6v2h2.5q.25 0 .45.1c.2.1.25.167.35.3l2.5 3.325a.9.9 0 0 1 .15.275q.05.15.05.325V16q0 .424-.288.712A.97.97 0 0 1 22 17h-1q0 1.25-.875 2.125A2.9 2.9 0 0 1 18 20a2.9 2.9 0 0 1-2.125-.875A2.9 2.9 0 0 1 15 17H9q0 1.25-.875 2.125A2.9 2.9 0 0 1 6 20m0-2a.97.97 0 0 0 .713-.288A.97.97 0 0 0 7 17a.97.97 0 0 0-.287-.712A.97.97 0 0 0 6 16a.97.97 0 0 0-.713.288A.97.97 0 0 0 5 17q0 .424.287.712Q5.575 18 6 18M3 6v9h.8q.425-.45.975-.725A2.7 2.7 0 0 1 6 14q.675 0 1.225.275T8.2 15H15V6zm15 12q.424 0 .712-.288A.97.97 0 0 0 19 17a.97.97 0 0 0-.288-.712A.97.97 0 0 0 18 16a.97.97 0 0 0-.712.288A.97.97 0 0 0 17 17q0 .424.288.712A.97.97 0 0 0 18 18m-1-5h4.25L19 10h-2z"})})},63711(e,t,r){"use strict";r.d(t,{A:()=>
2o});var n=r(59033),i=r(52695);const o=e=>(0,i.jsx)(n.In,{...e,children:(0,i.jsx)("path",{d:"M12 12q-1.65 0-2.825-1.175T8 8c0-1.65.392-2.042 1.175-2.825Q10.35 4 12 4c1.65 0 2.042.392 2.825 1.175Q16 6.35 16 8c0 1.65-.392 2.042-1.175 2.825Q13.65 12 12 12m6 8H6q-.824 0-1.412-.587A1.93 1.93 0 0 1 4 18v-.8q0-.85.438-1.563A2.9 2.9 0 0 1 5.6 14.55a15 15 0 0 1 3.15-1.163A13.8 13.8 0 0 1 12 13q1.65 0 3.25.387 1.6.388 3.15 1.163.724.375 1.162 1.087T20 17.2v.8a1.93 1.93 0 0 1-.587 1.413A1.93 1.93 0 0 1 18 20M6 18h12v-.8a.94.94 0 0 0-.137-.5 1 1 0 0 0-.363-.35 13 13 0 0 0-2.725-1.013 11.6 11.6 0 0 0-5.55 0A13 13 0 0 0 6.5 16.35a.97.97 0 0 0-.5.85zm6-8q.825 0 1.413-.588Q14 8.825 14 8q0-.824-.587-1.412A1.93 1.93 0 0 0 12 6q-.825 0-1.412.588A1.92 1.92 0 0 0 10 8q0 .825.588 1.412Q11.175 10 12 10"})})},87173(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(41298),i=r(67520);function o(e){return(0,i.A)(1,arguments),(0,n.A)(e).getDate()}},12185(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(41298),i=r(67520);function o(e){return(0,i.A)(1,arguments),(0,n.A)(e).getMonth()}},57424(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(41298),i=r(67520);function o(e){return(0,i.A)(1,arguments),(0,n.A)(e).getFullYear()}},37618(e,t,r){var n;!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(n=function(){return o}.call(t,r,t,e))||(e.exports=n)}()},27632(e,t,r){"use strict";r.d(t,{A:()=>o});var n=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function i(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(i=e[r],o=t[r],!(i===o||n(i)&&n(o)))return!1;var i,o;return!0}const o=function(e,t){var r;void 0===t&&(t=i);var n,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&r===this&&t(i,o)||(n=e.apply(this,i),a=!0,r=this,o=i),n}}},4885(e,t,r){"use strict";r.d(t,{A:()=>n});const n=r(61729).A.Symbol},98323(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(4885),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n.A?n.A.toStringTag:void 0;const c=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i};var l=Object.prototype.toString;const d=function(e){return l.call(e)};var h=n.A?n.A.toStringTag:void 0;const u=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":h&&h in Object(e)?c(e):d(e)}},59404(e,t,r){"use strict";r.d(t,{A:()=>n});const n="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis},61729(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(59404),i="object"==typeof self&&self&&self.Object===Object&&self;const o=n.A||i||Function("return this")()},14267(e,t,r){"use strict";r.d(t,{A:()=>x});var n=r(9729),i=r(61729);const o=function(){return i.A.Date.now()};var a=/\s/;const s=function(e){for(var t=e.length;t--&&a.test(e.charAt(t)););return t};var c=/^\s+/;const l=function(e){return e?e.slice(0,s(e)+1).replace(c,""):e};var d=r(68654),h=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,p=/^0o[0-7]+$/i,m=parseInt;const g=function(e){if("number"==typeof e)return e;if((0,d.A)(e))return NaN;if((0,n.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,n.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=l(e);var r=u.test(e);return r||p.test(e)?m(e.slice(2),r?2:8):h.test(e)?NaN:+e};var y=Math.max,f=Math.min;const x=function(e,t,r){var i,a,s,c,l,d,h=0,u=!1,p=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function x(t){var r=i,n=a;return i=a=void 0,h=t,c=e.apply(n,r)}function A(e){var r=e-d;return void 0===d||r>=t||r<0||p&&e-h>=s}function C(){var e=o();if(A(e))return w(e);l=setTimeout(C,function(e){var r=t-(e-d);return p?f(r,s-(e-h)):r}(e))}function w(e){return l=void 0,m&&i?x(e):(i=a=void 0,c)}function b(){var e=o(),r=A(e);if(i=arguments,a=this,d=e,r){if(void 0===l)return function(e){return h=e,l=setTimeout(C,t),u?x(e):c}(d);if(p)return clearTimeout(l),l=setTimeout(C,t),x(d)}return void 0===l&&(l=setTimeout(C,t)),c}return t=g(t)||0,(0,n.A)(r)&&(u=!!r.leading,s=(p="maxWait"in r)?y(g(r.maxWait)||0,t):s,m="trailing"in r?!!r.trailing:m),b.cancel=function(){void 0!==l&&clearTimeout(l),h=0,i=d=a=l=void 0},b.flush=function(){return void 0===l?c:w(o())},b}},9729(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},98686(e,t,r){"use strict";r.d(t,{A:()=>n});const n=function(e){return null!=e&&"object"==typeof e}},68654(e,t,r){"use strict";r.d(t,{A:()=>
2o});var n=r(98323),i=r(98686);const o=function(e){return"symbol"==typeof e||(0,i.A)(e)&&"[object Symbol]"==(0,n.A)(e)}}}]);
3//# sourceMappingURL=chunk-personal-data-form.450c9e3b.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.