PageSourceSearch

https://www.jobup.ch/public/scripts/modern/chunk-vendors-_yarn___v…_react-image-crop-npm-10-2427ce.cf722f3a.js

js jobup.ch collected 2026-09-24 17:22:29 UTC 16,655 bytes, 2 lines download raw bytes

1(globalThis.webpackChunk_jobcloud_b2c_frontend=globalThis.webpackChunk_jobcloud_b2c_frontend||[]).push([["vendors-_yarn___virtual___react-image-crop-virtual-cf1693f4cf_0_cache_react-image-crop-npm-10-2427ce"],{81810(t,e,n){var r;r=t=>(()=>{"use strict";var e={899:e=>{e.exports=t}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{r.r(i),r.d(i,{Component:()=>u,areCropsEqual:()=>h,centerCrop:()=>d,clamp:()=>a,containCrop:()=>p,convertToPercentCrop:()=>c,convertToPixelCrop:()=>l,default:()=>u,defaultCrop:()=>o,makeAspectCrop:()=>s,nudgeCrop:()=>g});var t=r(899),e=r.n(t);function n(t){var e,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(r=n(t[e]))&&(i&&(i+=" "),i+=r);else for(e in t)t[e]&&(i&&(i+=" "),i+=e);return i}const o={x:0,y:0,width:0,height:0,unit:"px"};function a(t,e,n){return Math.min(Math.max(t,e),n)}function h(t,e){return t.width===e.width&&t.height===e.height&&t.x===e.x&&t.y===e.y&&t.unit===e.unit}function s(t,e,n,r){const i=l(t,n,r);return t.width&&(i.height=i.width/e),t.height&&(i.width=i.height*e),i.y+i.height>r&&(i.height=r-i.y,i.width=i.height*e),i.x+i.width>n&&(i.width=n-i.x,i.height=i.width/e),"%"===t.unit?c(i,n,r):i}function d(t,e,n){const r=l(t,e,n);return r.x=(e-r.width)/2,r.y=(n-r.height)/2,"%"===t.unit?c(r,e,n):r}function c(t,e,n){return"%"===t.unit?{...o,...t,unit:"%"}:{unit:"%",x:t.x?t.x/e*100:0,y:t.y?t.y/n*100:0,width:t.width?t.width/e*100:0,height:t.height?t.height/n*100:0}}function l(t,e,n){return t.unit?"px"===t.unit?{...o,...t,unit:"px"}:{unit:"px",x:t.x?t.x*e/100:0,y:t.y?t.y*n/100:0,width:t.width?t.width*e/100:0,height:t.height?t.height*n/100:0}:{...o,...t,unit:"px"}}function p(t,e,n,r,i,o=0,a=0,h=r,s=i){const d={...t};let c=Math.min(o,r),l=Math.min(a,i),p=Math.min(h,r),g=Math.min(s,i);e&&(e>1?(c=a?a*e:c,l=c/e,p=h*e):(l=o?o/e:l,c=l*e,g=s/e)),d.y<0&&(d.height=Math.max(d.height+d.y,l),d.y=0),d.x<0&&(d.width=Math.max(d.width+d.x,c),d.x=0);const w=r-(d.x+d.width);w<0&&(d.x=Math.min(d.x,r-c),d.width+=w);const u=i-(d.y+d.height);if(u<0&&(d.y=Math.min(d.y,i-l),d.height+=u),d.width<c&&("sw"!==n&&"nw"!=n||(d.x-=c-d.width),d.width=c),d.height<l&&("nw"!==n&&"ne"!=n||(d.y-=l-d.height),d.height=l),d.width>p&&("sw"!==n&&"nw"!=n||(d.x-=p-d.width),d.width=p),d.height>g&&("nw"!==n&&"ne"!=n||(d.y-=g-d.height),d.height=g),e){const t=d.width/d.height;if(t<e){const t=Math.max(d.width/e,l);"nw"!==n&&"ne"!=n||(d.y-=t-d.height),d.height=t}else if(t>e){const t=Math.max(d.height*e,c);"sw"!==n&&"nw"!=n||(d.x-=t-d.width),d.width=t}}return d}function g(t,e,n,r){const i={...t};return"ArrowLeft"===e?"nw"===r?(i.x-=n,i.y-=n,i.width+=n,i.height+=n):"w"===r?(i.x-=n,i.width+=n):"sw"===r?(i.x-=n,i.width+=n,i.height+=n):"ne"===r?(i.y+=n,i.width-=n,i.height-=n):"e"===r?i.width-=n:"se"===r&&(i.width-=n,i.height-=n):"ArrowRight"===e&&("nw"===r?(i.x+=n,i.y+=n,i.width-=n,i.height-=n):"w"===r?(i.x+=n,i.width-=n):"sw"===r?(i.x+=n,i.width-=n,i.height-=n):"ne"===r?(i.y-=n,i.width+=n,i.height+=n):"e"===r?i.width+=n:"se"===r&&(i.width+=n,i.height+=n)),"ArrowUp"===e?"nw"===r?(i.x-=n,i.y-=n,i.width+=n,i.height+=n):"n"===r?(i.y-=n,i.height+=n):"ne"===r?(i.y-=n,i.width+=n,i.height+=n):"sw"===r?(i.x+=n,i.width-=n,i.height-=n):"s"===r?i.height-=n:"se"===r&&(i.width-=n,i.height-=n):"ArrowDown"===e&&("nw"===r?(i.x+=n,i.y+=n,i.width-=n,i.height-=n):"n"===r?(i.y+=n,i.height-=n):"ne"===r?(i.y+=n,i.width-=n,i.height-=n):"sw"===r?(i.x-=n,i.width+=n,i.height+=n):"s"===r?i.height+=n:"se"===r&&(i.width+=n,i.height+=n)),i}const w={capture:!0,passive:!1};class u extends t.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,t.createRef)(),this.mediaRef=(0,t.createRef)(),this.initChangeCalled=!1,this.state={cropIsActive:!1,newCropIsBeingDrawn:!1},this.onCropPointerDown=t=>{const{crop:e,disabled:n}=this.props,r=this.getBox();if(!e)return;const i=l(e,r.width,r.height);if(n)return;t.cancelable&&t.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const o=t.target.dataset.ord,a=Boolean(o);let h=t.clientX,s=t.clientY,d=i.x,c=i.y;if(o){const e=t.clientX-r.x,n=t.clientY-r.y;let a=0,l=0;
1"ne"===o||"e"==o?(a=e-(i.x+i.width),l=n-i.y,d=i.x,c=i.y+i.height):"se"===o||"s"===o?(a=e-(i.x+i.width),l=n-(i.y+i.height),d=i.x,c=i.y):"sw"===o||"w"==o?(a=e-i.x,l=n-(i.y+i.height),d=i.x+i.width,c=i.y):"nw"!==o&&"n"!=o||(a=e-i.x,l=n-i.y,d=i.x+i.width,c=i.y+i.height),h=d+r.x+a,s=c+r.y+l}this.evData={startClientX:h,startClientY:s,startCropX:d,startCropY:c,clientX:t.clientX,clientY:t.clientY,isResize:a,ord:o},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})},this.onComponentPointerDown=t=>{const{crop:e,disabled:n,locked:r,keepSelection:i,onChange:o}=this.props,a=this.getBox();if(n||r||i&&e)return;t.cancelable&&t.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const h=t.clientX-a.x,s=t.clientY-a.y,d={unit:"px",x:h,y:s,width:0,height:0};this.evData={startClientX:t.clientX,startClientY:t.clientY,startCropX:h,startCropY:s,clientX:t.clientX,clientY:t.clientY,isResize:!0},this.mouseDownOnCrop=!0,o(l(d,a.width,a.height),c(d,a.width,a.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})},this.onDocPointerMove=t=>{const{crop:e,disabled:n,onChange:r,onDragStart:i}=this.props,o=this.getBox();if(n||!e||!this.mouseDownOnCrop)return;t.cancelable&&t.preventDefault(),this.dragStarted||(this.dragStarted=!0,i&&i(t));const{evData:a}=this;let s;a.clientX=t.clientX,a.clientY=t.clientY,s=a.isResize?this.resizeCrop():this.dragCrop(),h(e,s)||r(l(s,o.width,o.height),c(s,o.width,o.height))},this.onComponentKeyDown=t=>{const{crop:e,disabled:n,onChange:r,onComplete:i}=this.props,o=this.getBox();if(n)return;const h=t.key;let s=!1;if(!e)return;const d=this.makePixelCrop(),p=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?u.nudgeStepLarge:t.shiftKey?u.nudgeStepMedium:u.nudgeStep;if("ArrowLeft"===h?(d.x-=p,s=!0):"ArrowRight"===h?(d.x+=p,s=!0):"ArrowUp"===h?(d.y-=p,s=!0):"ArrowDown"===h&&(d.y+=p,s=!0),s){t.cancelable&&t.preventDefault(),d.x=a(d.x,0,o.width-d.width),d.y=a(d.y,0,o.height-d.height);const e=l(d,o.width,o.height),n=c(d,o.width,o.height);r(e,n),i&&i(e,n)}},this.onHandlerKeyDown=(t,e)=>{const{aspect:n=0,crop:r,disabled:i,minWidth:o=0,minHeight:a=0,maxWidth:s,maxHeight:d,onChange:w,onComplete:f}=this.props,m=this.getBox();if(i||!r)return;if("ArrowUp"!==t.key&&"ArrowDown"!==t.key&&"ArrowLeft"!==t.key&&"ArrowRight"!==t.key)return;t.stopPropagation(),t.preventDefault();const y=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?u.nudgeStepLarge:t.shiftKey?u.nudgeStepMedium:u.nudgeStep,v=p(g(l(r,m.width,m.height),t.key,y,e),n,e,m.width,m.height,o,a,s,d);if(!h(r,v)){const t=c(v,m.width,m.height);w(v,t),f&&f(v,t)}},this.onDocPointerDone=t=>{const{crop:e,disabled:n,onComplete:r,onDragEnd:i}=this.props,o=this.getBox();this.unbindDocMove(),!n&&e&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,i&&i(t),r&&r(l(e,o.width,o.height),c(e,o.width,o.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))},this.onDragFocus=t=>{var e;null===(e=this.componentRef.current)||void 0===e||e.scrollTo(0,0)}}get document(){return document}getBox(){const t=this.mediaRef.current;if(!t)return{x:0,y:0,width:0,height:0};const{x:e,y:n,width:r,height:i}=t.getBoundingClientRect();return{x:e,y:n,width:r,height:i}}componentDidUpdate(t){const{crop:e,onComplete:n}=this.props;if(n&&!t.crop&&e){const{width:t,height:r}=this.getBox();t&&r&&n(l(e,t,r),c(e,t,r))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}bindDocMove(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,w),this.document.addEventListener("pointerup",this.onDocPointerDone,w),this.document.addEventListener("pointercancel",this.onDocPointerDone,w),this.docMoveBound=!0)}unbindDocMove(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,w),this.document.removeEventListener("pointerup",this.onDocPointerDone,w),this.document.removeEventListener("pointercancel",this.onDocPointerDone,w),this.docMoveBound=!1)}getCropStyle(){const{crop:t}=this.props;if(t)return{top:`${t.y}${t.unit}`,left:`${t.x}${t.unit}`,width:`${t.width}${t.unit}`,height:`${t.height}${t.unit}`}}dragCrop(){const{evData:t}=this,e=this.getBox(),n=this.makePixelCrop(),r=t.clientX-t.startClientX,i=t.clientY-t.startClientY;return n.x=a(t.startCropX+r,0,e.width-n.width),n.y=a(t.startCropY+i,0,e.height-n.height),n}getPointRegion(t){const{evData:e}=this,n=e.clientX-t.x,r=e.clientY-t.y<e.startCropY;return n<e.startCropX?r?"nw":"sw":r?"ne":"se"}resizeCrop(){const{evData:t}=this,e=this.getBox(),{aspect:n=0,minWidth:r=0,minHeight:i=0,maxWidth:o,maxHeight:a}=this.props,h=this.getPointRegion(e),s=this.makePixelCrop(),d=t.ord?t.ord:h,c=t.clientX-t.startClientX,l=t.clientY-t.startClientY,g={unit:"px",x:0,y:0,width:0,height:0};"ne"===h?(g.x=t.startCropX,g.width=c,n?(g.height=g.width/n,g.y=t.startCropY-g.height):(g.height=Math.abs(l),g.y=t.startCropY-g.height)):"se"===h?(g.x=t.startCropX,g.y=t.startCropY,g.width=c,g.height=n?g.width/n:l):"sw"===h?(g.x=t.startCropX+c,g.y=t.startCropY,g.width=Math.abs(c),g.height=n?g.width/n:l):"nw"===h&&
1(g.x=t.startCropX+c,g.width=Math.abs(c),n?(g.height=g.width/n,g.y=t.startCropY-g.height):(g.height=Math.abs(l),g.y=t.startCropY+l));const w=p(g,n,h,e.width,e.height,r,i,o,a);return n||u.xyOrds.indexOf(d)>-1?(s.x=w.x,s.y=w.y,s.width=w.width,s.height=w.height):u.xOrds.indexOf(d)>-1?(s.x=w.x,s.width=w.width):u.yOrds.indexOf(d)>-1&&(s.y=w.y,s.height=w.height),s}createCropSelection(){const{ariaLabels:t=u.defaultProps.ariaLabels,disabled:n,locked:r,renderSelectionAddon:i,ruleOfThirds:o,crop:a}=this.props,h=this.getCropStyle();if(a)return e().createElement("div",{style:h,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":t.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!n&&!r&&e().createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},e().createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),e().createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),e().createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),e().createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),e().createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":t.nwDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"nw"),role:"button"}),e().createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":t.nDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"n"),role:"button"}),e().createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":t.neDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"ne"),role:"button"}),e().createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":t.eDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"e"),role:"button"}),e().createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":t.seDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"se"),role:"button"}),e().createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":t.sDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"s"),role:"button"}),e().createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":t.swDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"sw"),role:"button"}),e().createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":t.wDragHandle,onKeyDown:t=>this.onHandlerKeyDown(t,"w"),role:"button"})),i&&e().createElement("div",{className:"ReactCrop__selection-addon",onMouseDown:t=>t.stopPropagation()},i(this.state)),o&&e().createElement(e().Fragment,null,e().createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),e().createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(){const t={...o,...this.props.crop||{}},e=this.getBox();return l(t,e.width,e.height)}render(){const{aspect:t,children:r,circularCrop:i,className:o,crop:a,disabled:h,locked:s,style:d,ruleOfThirds:c}=this.props,{cropIsActive:l,newCropIsBeingDrawn:p}=this.state,g=a?this.createCropSelection():null,w=function(){for(var t,e,r=0,i="";r<arguments.length;)(t=arguments[r++])&&(e=n(t))&&(i&&(i+=" "),i+=e);return i}("ReactCrop",o,{"ReactCrop--active":l,"ReactCrop--disabled":h,"ReactCrop--locked":s,"ReactCrop--new-crop":p,"ReactCrop--fixed-aspect":a&&t,"ReactCrop--circular-crop":a&&i,"ReactCrop--rule-of-thirds":a&&c,"ReactCrop--invisible-crop":!this.dragStarted&&a&&!a.width&&!a.height});return e().createElement("div",{ref:this.componentRef,className:w,style:d},e().createElement("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown},r),g)}}u.xOrds=["e","w"],u.yOrds=["n","s"],u.xyOrds=["nw","ne","se","sw"],u.nudgeStep=1,u.nudgeStepMedium=10,u.nudgeStepLarge=100,u.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})(),t.exports=r(n(41711))},87173(t,e,n){"use strict";n.d(e,{A:()=>
1o});var r=n(41298),i=n(67520);function o(t){return(0,i.A)(1,arguments),(0,r.A)(t).getDate()}},12185(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(41298),i=n(67520);function o(t){return(0,i.A)(1,arguments),(0,r.A)(t).getMonth()}},57424(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(41298),i=n(67520);function o(t){return(0,i.A)(1,arguments),(0,r.A)(t).getFullYear()}},65551(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(41298),i=n(67520);function o(t,e){(0,i.A)(2,arguments);var n=(0,r.A)(t),o=(0,r.A)(e);return n.getTime()>o.getTime()}},62212(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(41298),i=n(67520);function o(t,e){(0,i.A)(2,arguments);var n=(0,r.A)(t),o=(0,r.A)(e);return n.getTime()<o.getTime()}},91641(t,e,n){"use strict";n.d(e,{A:()=>o});var r=n(41298),i=n(67520);function o(t,e){(0,i.A)(2,arguments);var n=(0,r.A)(t),o=(0,r.A)(e);return n.getTime()===o.getTime()}},27632(t,e,n){"use strict";n.d(e,{A:()=>o});var r=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function i(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(i=t[n],o=e[n],!(i===o||r(i)&&r(o)))return!1;var i,o;return!0}const o=function(t,e){var n;void 0===e&&(e=i);var r,o=[],a=!1;return function(){for(var i=[],h=0;h<arguments.length;h++)i[h]=arguments[h];return a&&n===this&&e(i,o)||(r=t.apply(this,i),a=!0,n=this,o=i),r}}},82504(t,e,n){"use strict";n.d(e,{A:()=>i});var r=n(34258);const i=function(t,e,n){var i=null==t?void 0:(0,r.A)(t,e);return void 0===i?n:i}},2175(t,e,n){"use strict";n.d(e,{A:()=>i});const r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;const i=function(t){return"string"==typeof t&&r.test(t)}}}]);
2//# sourceMappingURL=chunk-vendors-_yarn___virtual___react-image-crop-virtual-cf1693f4cf_0_cache_react-image-crop-npm-10-2427ce.cf722f3a.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.