1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[82264],{85219:function(e,t,r){var o=r(57437),i=r(55788),n=r(39155),a=r(4662),l=r(76147);t.Z=e=>{let{handleClose:t,handleSave:r,cancelBtnIsDisabled:s,saveBtnIsDisabled:d,saveBtnText:c="common.save",saveBtnSx:p,cancelBtnSx:h,hideActionButtons:u,saveButtonProps:x={}}=e;const{t:m}=(0,i.$G)();if(u)return null;const g=Array.isArray(p)?p:[p],f=Array.isArray(h)?h:[h],{restrictionTooltipProps:C,...v}=x;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.Z,{color:"neutral",disabled:s,onClick:t,sx:f,children:m("common.cancel")}),(0,o.jsx)(a.Z,{...C,children:(0,o.jsx)(l.Z,{sx:g,onClick:r,disabled:d,...v,children:m(c||"common.save")})})]})}},16666:function(e,t,r){r.d(t,{Z:function(){return _}});var o=r(57437),i=r(2265),n=r(72566),a=(r(89921),r(55788)),l=r(21170),s=r(62069),d=r(95576),c=r(44866),p=r(41530),h=r(46387),u=r(41554),x=r(92978),m=r(39132),g=r(60358),f=r(12824),C=r(41345);var v=r(8389),j=r(85219),w=r(82775),y=r(2634);const Z={cancelBtn:{"&.MuiButton-root.MuiButtonBase-root":{borderRadius:"3px"}},chooseFileBlock:{alignItems:"flex-start",gap:"8px",mb:"20px"},dragHint:{"&.MuiTypography-root":{mt:"12px",mb:"12px"}},previewSubTitle:{"&.MuiTypography-root":{mt:1.5,mb:3}},cardViewTitle:{"&.MuiTypography-root":{mb:1,color:"colors.textSecondary",textTransform:"uppercase"}},thumbnailPreview:{width:50,height:50,overflow:"hidden",mb:2,"& > div":{transform:"translate(calc(-50% + 25px), calc(-50% + 25px))"}},preview:{width:152,height:152,overflow:"hidden",border:"1px solid",borderColor:"colors.borderGreyLight"},roundPreview:{borderRadius:"50%"},rotateImg:{my:2.5,mx:1},zoomIcon:{mr:2,height:"100%"},zoomPlusIcon:{ml:2,height:"100%"},sliderWrapper:{"&.MuiSlider-root":{margin:0,display:"flex",py:"9px"}},zoomContainer:{alignItems:"center",justifyContent:"space-between",flexWrap:"nowrap","& .MuiSvgIcon-root":{width:"20px",height:"20px","&:hover":{cursor:"pointer"}}},chooseFileInput:{width:"100%",height:"100%",display:"none"},cropperWrapper:e=>({"& > .cropper":{height:"356px",width:"356px","@media (max-width: 450px)":{my:0,mx:"auto",maxWidth:"356px",width:"auto"},...e&&{"& .cropper-crop-box, .cropper-view-box":{borderRadius:"50%"},"& .cropper-view-box":{boxShadow:"0 0 0 1px #39f",outline:"inherit !important"},"& .cropper-face":{backgroundColor:"inherit !important"},"& .cropper-dashed, & .cropper-point.point-se, & .cropper-point.point-sw, & .cropper-point.point-nw, & .cropper-point.point-ne, & .cropper-line":{display:"none !important"}}}})};var _=e=>{let{open:t,width:r=900,handleClose:_,handleConfirmCropper:b,imageSrc:H,setNewImage:k,aspectRatio:I=1,isCircleCropper:z,hidePreviewBlock:D,title:S,onlyCropPhoto:M,isThumbnailPreview:P,acceptedFormats:T,maxFileSize:F}=e;const{t:L}=(0,a.$G)(),W=F||C.C,B=[...new Set((0,v.R)(null!==T&&void 0!==T?T:""))],R=B.length?{accept:B.join(",")}:void 0,V=(0,i.useRef)({}),A=(0,i.useRef)(1),[N,G]=(0,i.useState)(1),[O,E]=(0,i.useState)(!1),[$,U]=(0,i.useState)(),q=()=>{const{cropper:e}=V.current;if(!e)return;const{naturalWidth:t,naturalHeight:r,rotate:o}=e.getImageData(),{width:i,height:n}=e.getContainerData();A.current=(e=>{let{naturalWidth:t,naturalHeight:r,containerWidth:o,containerHeight:i,rotate:n=0}=e;if(!t||!r)return 1;const a=Math.abs(n)%180===90,l=a?r:t,s=a?t:r;return Math.min(o/l,i/s)})({naturalWidth:t,naturalHeight:r,containerWidth:i,containerHeight:n,rotate:o})},Y=e=>{const{cropper:t}=V.current;if(!t)return;const r=Math.min(3,Math.max(1,e));G(r),t.zoomTo(A.current*r)},J=e=>{const{cropper:t}=V.current;t&&(t.rotate(e),q(),Y(1))},K=()=>{U(void 0),k({}),_(),G(1),E(!1)},Q=()=>{U(L("profile_common.add_image_drop_zone.please_use_files_with_only",{size:W/1e6}))},X=z?"shared.cropper.logo_view":"shared.cropper.card_view",ee={handleClose:K,handleSave:()=>{const{cropper:e}=V.current;if(!e)return;E(!0),U(void 0),k({});const t=e.getCroppedCanvas();let{height:o,width:i}=t;const n=Math.min(1920/i,1920/o);n<1&&(i*=n,o*=n);const a=document.createElement("canvas");a.height=o,a.width=i;const l=a.getContext("2d");l&&(l.fillStyle="rgb(0,0,0,0)",l.drawImage(t,0,0,i,o));const s=l?a.toDataURL():t.toDataURL(),d=e.getData(),c={img64:s,title:S,height:o,width:i,crop:t.width!==r,x:d.x,y:d.y};b(c),E(!1)},saveBtnText:"shared.cropper.save_photo",saveButtonProps:{savingProcess:O,color:"primary"}};return(0,o.jsx)(f.Z,{open:t,onClose:K,width:r,title:L("shared.cropper.edit_p
1hoto"),ActionButtons:(0,o.jsx)(j.Z,{...ee}),children:(0,o.jsxs)(s.ZP,{container:!0,justifyContent:"center",spacing:3,children:[(0,o.jsxs)(s.ZP,{item:!0,xs:12,md:D?12:6,children:[!M&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(h.Z,{variant:"h4",children:L("shared.cropper.adjust_picture")}),(0,o.jsx)(h.Z,{variant:"subtitle3",component:"p",sx:Z.dragHint,children:L("shared.cropper.drag_the_square_to_change")}),(0,o.jsxs)(p.Z,{sx:Z.chooseFileBlock,children:[(0,o.jsx)(w.Z,{id:"cropper-choose-new-file",onChange:e=>{var t;const r=e.target,o=null===(t=r.files)||void 0===t?void 0:t[0];if(r.value="",!o)return;if(!(e=>(!B.length||B.includes(e.type))&&e.size<=W)(o))return void Q();const i=new FileReader;i.onerror=Q,i.onload=()=>{const{result:e}=i;if("string"!==typeof e)return void Q();const t=new Image;t.onerror=Q,t.onload=()=>{U(void 0),k({src:e,width:t.width,height:t.height,title:o.name})},t.src=e},i.readAsDataURL(o)},inputProps:R}),(0,o.jsx)(y.Z,{error:$})]})]}),(0,o.jsx)(l.Z,{sx:Z.cropperWrapper(z),children:(0,o.jsx)(n.Z,{ref:V,src:H||"",viewMode:0,minCropBoxHeight:50,minCropBoxWidth:50,preview:".img-preview",responsive:!0,autoCropArea:1,checkOrientation:!1,minCanvasWidth:152,guides:!0,zoom:e=>{if(!e.detail)return;const t=e.detail.ratio/A.current;t<.999999||t>3.000001?e.preventDefault():G(t)},className:"cropper",aspectRatio:I,ready:()=>{const{cropper:e}=V.current;if(!e)return;q(),Y(1);const{width:t,height:r}=e.getImageData(),{width:o,height:i}=e.getContainerData();e.moveTo((o-t)/2,(i-r)/2),e.setCropBoxData({width:t,left:(o-t)/2,top:(i-t/I)/2})}})}),(0,o.jsxs)(s.ZP,{container:!0,item:!0,xs:12,alignItems:"center",justifyContent:"center",children:[(0,o.jsx)(d.Z,{color:"neutral",sx:Z.rotateImg,onClick:()=>{J(-90)},children:(0,o.jsx)(m.Z,{})}),(0,o.jsx)(d.Z,{color:"neutral",sx:Z.rotateImg,onClick:()=>{J(90)},children:(0,o.jsx)(g.Z,{})})]}),(0,o.jsxs)(s.ZP,{container:!0,item:!0,xs:12,sx:Z.zoomContainer,children:[(0,o.jsx)(x.Z,{sx:Z.zoomIcon,className:"pointer",onClick:()=>{Y(N-.1)}}),(0,o.jsx)(s.ZP,{item:!0,xs:9,children:(0,o.jsx)(c.ZP,{id:"slider",value:N,onChange:(e,t)=>
1{"number"===typeof t&&Y(t)},step:.1,max:3,min:1,sx:Z.sliderWrapper,size:"small"})}),(0,o.jsx)(u.Z,{sx:Z.zoomPlusIcon,className:"pointer",onClick:()=>{Y(N+.1)}})]})]}),!D&&(0,o.jsx)(s.ZP,{item:!0,xs:12,md:5,children:(0,o.jsxs)(s.ZP,{container:!0,direction:"column",children:[(0,o.jsx)(h.Z,{variant:"h4",children:L("common.preview")}),(0,o.jsx)(h.Z,{variant:"subtitle3",sx:Z.previewSubTitle,children:L("shared.cropper.how_the_picture_appears_across")}),P&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(h.Z,{variant:"overline",sx:Z.cardViewTitle,children:L("shared.cropper.thumbnail")}),(0,o.jsx)(l.Z,{sx:Z.thumbnailPreview,children:(0,o.jsx)(l.Z,{sx:[Z.preview,Boolean(z)&&Z.roundPreview],className:"img-preview"})})]}),(0,o.jsx)(h.Z,{variant:"overline",sx:Z.cardViewTitle,children:L(X)}),(0,o.jsx)(l.Z,{sx:[Z.preview,Boolean(z)&&Z.roundPreview],className:"img-preview"})]})})]})})}},82775:function(e,t,r){r.d(t,{Z:function(){return p}});var o=r(57437),i=r(2265),n=r(98689),a=r(21170),l=r(46387),s=r(55788);var d={root:{height:"42px",backgroundColor:"colors.white",color:"colors.primary",borderRadius:"4px",textTransform:"uppercase",border:"1px dashed",borderColor:"colors.primary",display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",width:"fit-content",padding:"9px 16px 9px 8px",cursor:"pointer"}};const c=(0,i.forwardRef)(((e,t)=>{let{id:r,onChange:i,sx:c,inputProps:p,label:h,...u}=e;const{t:x}=(0,s.$G)();return(0,o.jsxs)(a.Z,{component:"label",sx:[d.root,...Array.isArray(c)?c:[c]],htmlFor:r,...u,children:[(0,o.jsx)(n.Z,{fontSize:"small"}),(0,o.jsx)(l.Z,{variant:"overline",children:null!==h&&void 0!==h?h:x("ui.choose_file_input.choose_file")}),(0,o.jsx)("input",{id:r,hidden:!0,type:"file",onChange:i,...p,ref:t})]})}));c.displayName="ChooseFileInput";var p=c},76147:function(e,t,r){var o=r(57437),i=r(2265),n=r(79965),a=r(55788),l=r(6551),s=r(47144);const d=(0,i.forwardRef)(((e,t)=>{let{color:r="success",loading:i,children:d,...c}=e;const{t:p}=(0,a.$G)(),h=d||p("common.save");return(0,o.jsxs)(o.Fragment,{children:[i&&(0,o.jsx)(s.Z,{}),(0,o.jsx)(n.Z,{color:r,loading:i,ref:t,"data-styleid":"string"===typeof h&&"button-".concat((0,l.bS)(h)),...c,children:h})]})}));d.displayName="SaveButton",t.Z=d},47144:function(e,t,r){var o=r(57437),i=r(21170),n=r(35389),a=r(55788);t.Z=()=>{const{t:e}=(0,a.$G)();return(0,o.jsx)(i.Z,{id:"overlay",sx:{position:"fixed",top:0,right:0,bottom:0,left:0,background:"transparent !important",userSelect:"none",zIndex:"pageClickDefender"},children:(0,o.jsxs)(i.Z,{sx:{position:"absolute",right:"1rem",bottom:"1rem"},children:[(0,o.jsx)(n.Z,{color:"primary",size:10,sx:{mr:1}}),(0,o.jsxs)("span",{children:[e("shared.page_click_defender.please_wait"),"..."]})]})})}},2634:function(e,t,r){r.d(t,{Z:function(){return a}});var o=r(57437),i=r(253),n=r(56326);var a=e=>{let{error:t}=e;return t?(0,o.jsxs)(n.Z,{error:!0,component:"div","aria-label":t,children:[(0,o.jsx)(i.Z,{}),(0,o.jsx)("span",{children:t})]}):null}},82264:function(e,t,r){r.d(t,{Z:function(){return T}});var o=r(57437),i=r(67293),n=r(2265),a=r(14672),l=r(55788),s=r(21170),d=r(46387),c=r(26220),p=r(96662),h=r(77598),u=r(48236),x=r(7220),m=r(74663),g=r(8389),f=r(41345),C=r(16666),v=r(96381),j=r(30938);const w={width:48,height:48,fill:"none"};var y=e=>{let{sx:t,...r}=e;const i=Array.isArray(t)?t:[t];return(0,o.jsxs)(j.Z,{sx:[w,...i],viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",...r,children:[(0,o.jsx)("path",{d:"M33.99
165 44.0003C33.6886 44.0003 33.3732 43.9622 33.0616 43.8803L4.71472 36.3512C2.77152 35.8203 1.61293 33.8239 2.12257 31.8966L5.69915 18.6746C5.83114 18.1892 6.33344 17.9074 6.82107 18.031C7.31054 18.1601 7.60019 18.6601 7.47003 19.1437L3.89528 32.362C3.64046 33.3257 4.22342 34.3293 5.19685 34.5966L33.5327 42.1221C34.5062 42.3767 35.5108 41.8021 35.7637 40.8421L37.1955 35.5802C37.3275 35.0948 37.8298 34.8057 38.3192 34.9384C38.8087 35.0693 39.0965 35.5693 38.9664 36.053L37.5365 41.3076C37.1057 42.9258 35.6208 44.0003 33.9965 44.0003Z",fill:"#5D7189"}),(0,o.jsx)("path",{d:"M42.3322 33.0912H13.0009C10.9789 33.0912 9.33447 31.4603 9.33447 29.4548V7.6364C9.33447 5.63092 10.9789 4 13.0009 4H42.3322C44.3542 4 45.9986 5.63092 45.9986 7.6364V29.4548C45.9986 31.4603 44.3542 33.0912 42.3322 33.0912ZM13.0009 5.8182C11.9908 5.8182 11.1677 6.63457 11.1677 7.6364V29.4548C11.1677 30.4566 11.9908 31.273 13.0009 31.273H42.3322C43.3423 31.273 44.1654 30.4566 44.1654 29.4548V7.6364C44.1654 6.63457 43.3423 5.8182 42.3322 5.8182H13.0009Z",fill:"#5D7189"}),(0,o.jsx)("path",{d:"M18.5004 16.7269C16.4784 16.7269 14.834 15.096 14.834 13.0905C14.834 11.085 16.4784 9.4541 18.5004 9.4541C20.5224 9.4541 22.1668 11.085 22.1668 13.0905C22.1668 15.096 20.5224 16.7269 18.5004 16.7269ZM18.5004 11.2723C17.4903 11.2723 16.6672 12.0887 16.6672 13.0905C16.6672 14.0923 17.4903 14.9087 18.5004 14.9087C19.5105 14.9087 20.3336 14.0923 20.3336 13.0905C20.3336 12.0887 19.5105 11.2723 18.5004 11.2723Z",fill:"#5D7189"}),(0,o.jsx)("path",{d:"M10.3795 31.1455C10.1448 31.1455 9.91016 31.0564 9.73051 30.8801C9.37303 30.5255 9.37303 29.9491 9.73051 29.5946L18.3887 21.0072C19.4263 19.9781 21.2394 19.9781 22.277 21.0072L24.8545 23.5636L31.9893 15.0726C32.5081 14.4563 33.2707 14.0981 34.0828 14.0908H34.103C34.9059 14.0908 35.6667 14.4363 36.191 15.0417L45.7787 26.1364C46.1086 26.5164 46.0646 27.0909 45.6797 27.4182C45.2965 27.7455 44.7191 27.7037 44.3873 27.32L34.7996 16.2254C34.6218 16.0217 34.3761 15.909 34.103 15.909C33.9123 15.8927 33.5769 16.0236 33.399 16.2363L25.6207 25.4927C25.4557 25.6891 25.2156 25.8073 24.9571 25.8182C24.6968 25.8364 24.4493 25.7346 24.2678 25.5527L20.9809 22.2927C20.6344 21.9509 20.0313 21.9509 19.6848 22.2927L11.0266 30.8801C10.8488 31.0564 10.6141 31.1455 10.3795 31.1455Z",fill:"#5D7189"})]})};const Z={width:48,height:48,fill:"none"};var _=e=>{let{sx:t,...r}=e;const i=Array.isArray(t)?t:[t];return(0,o.jsxs)(j.Z,{sx:[Z,...i],viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",...r,children:[(0,o.jsx)("path",{d:"M39.4412 46H17.5588C15.046 46 13 43.9262 13 41.375V13.625C13 11.0739 15.046 9 17.5588 9H39.4412C41.954 9 44 11.0739 44 13.625V41.375C44 43.9262 41.954 46 39.4412 46ZM17.5588 10.85C16.0508 10.85 14.8235 12.0951 14.8235 13.625V41.375C14.8235 42.9049 16.0508 44.15 17.5588 44.15H39.4412C40.9492 44.15 42.1765 42.9049 42.1765 41.375V13.625C42.1765 12.0951 40.9492 10.85 39.4412 10.85H17.5588Z",fill:"#5D7189"}),(0,o.jsx)("path",{d:"M10.3824 41H8.55882C6.046 41 4 38.9181 4 36.3571V6.64286C4 4.08186 6.046 2 8.55882 2H30.4412C32.954 2 35 4.08186 35 6.64286C35 7.15543 34.5915 7.57143 34.0882 7.57143C33.5849 7.57143 33.1765 7.15543 33.1765 6.64286C33.1765 5.107 31.9492 3.85714 30.4412 3.85714H8.55882C7.05076 3.85714 5.82353 5.107 5.82353 6.64286V36.3571C5.82353 37.893 7.05076 39.1429 8.55882 39.1429H10.3824C10.8856 39.1429 11.2941 39.5589 11.2941 40.0714C11.2941 40.584 10.8856 41 10.3824 41Z",fill:"#5D7189"}),(0,o.jsx)("path",{d:"M36.0556 33H20.9444C20.4231 33 20 32.552 20 32C20 3
11.448 20.4231 31 20.9444 31H36.0556C36.5769 31 37 31.448 37 32C37 32.552 36.5769 33 36.0556 33Z",fill:"#5D7189"}),(0,o.jsx)("path",{d:"M36.0556 40H20.9444C20.4231 40 20 39.552 20 39C20 38.448 20.4231 38 20.9444 38H36.0556C36.5769 38 37 38.448 37 39C37 39.552 36.5769 40 36.0556 40Z",fill:"#5D7189"}),(0,o.jsx)("path",{d:"M36.0556 26H20.9444C20.4231 26 20 25.552 20 25C20 24.448 20.4231 24 20.9444 24H36.0556C36.5769 24 37 24.448 37 25C37 25.552 36.5769 26 36.0556 26Z",fill:"#5D7189"}),(0,o.jsx)("path",{d:"M36.0556 19H20.9444C20.4231 19 20 18.552 20 18C20 17.448 20.4231 17 20.9444 17H36.0556C36.5769 17 37 17.448 37 18C37 18.552 36.5769 19 36.0556 19Z",fill:"#5D7189"})]})};const b={width:32,height:32,fill:"none"};var H=e=>{let{sx:t,...r}=e;const i=Array.isArray(t)?t:[t];return(0,o.jsxs)(j.Z,{sx:[b,...i],viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...r,children:[(0,o.jsx)("path",{d:"M27.265 7.45874H24.9682V5.27115C24.9682 3.83522 23.7416 2.66699 22.2339 2.66699H4.73431C3.22661 2.66699 2 3.83522 2 5.27115V21.9377C2 23.3737 3.22661 24.5419 4.73431 24.5419H7.03118V26.7295C7.03118 28.1654 8.25779 29.3337 9.76548 29.3337H27.265C28.7727 29.3337 29.9993 28.1654 29.9993 26.7295V10.0628C29.9994 8.62692 28.7728 7.45874 27.265 7.45874ZM4.73431 23.5002C3.82969 23.5002 3.09372 22.7994 3.09372 21.9377V5.27115C3.09372 4.40959 3.82969 3.70865 4.73431 3.70865H22.2339C23.1385 3.70865 23.8744 4.40959 23.8744 5.27115V21.9377C23.8744 22.7993 23.1385 23.5002 22.2339 23.5002H4.73431ZM28.9056 26.7295C28.9056 27.5911 28.1697 28.292 27.265 28.292H9.76548C8.86087 28.292 8.1249 27.5911 8.1249 26.7295V24.5419H22.2339C23.7416 24.5419 24.9682 23.3737 24.9682 21.9377V8.50041H27.265C28.1697 8.50041 28.9056 9.20134 28.9056 10.0629V26.7295Z",fill:"#5D7189"}),(0,o.jsx)("path",{d:"M9.77891 26.4688H9.76415C9.46211 26.4688 9.21729 26.7019 9.21729 26.9896C9.21729 27.2772 9.46211 27.5104 9.76415 27.5104H9.77891C10.0809 27.5104 10.3258 27.2772 10.3258 26.9896C10.3258 26.7019 10.081 26.4688 9.77891 26.4688Z",fill:"#5D7189"}),(0,o.jsx)("path",{d:"M27.2657 26.4688H11.3496C11.0476 26.4688 10.8027 26.7019 10.8027 26.9896C10.8027 27.2772 11.0476 27.5104 11.3496 27.5104H27.2657C27.5676 27.5104 27.8125 27.2772 27.8125 26.9896C27.8125 26.7019 27.5677 26.4688 27.2657 26.4688Z",fill:"#5D7189"}),(0,o.jsx)("path",{d:"M8.0167 4.48926H8.00194C7.69991 4.48926 7.45508 4.72243 7.45508 5.01009C7.45508 5.29774 7.69991 5.53092 8.00194 5.53092H8.0167C8.31874 5.53092 8.56357 5.29774 8.56357 5.01009C8.56357 4.72243 8.31879 4.48926 8.0167 4.48926Z",fill:"#5D7189"}),(0,o.jsx)("path",{d:"M6.43106 4.48926H4.73387C4.43184 4.48926 4.18701 4.72243 4.18701 5.01009C4.18701 5.29774 4.43184 5.53092 4.73387 5.53092H6.431C6.73303 5.53092 6.97786 5.29774 6.97786 5.01009C6.97792 4.72243 6.73309 4.48926 6.43106 4.48926Z",fill:"#5D7189"}),(0,o.jsx)("path",{d:"M18.0491 13.1419C17.9192 12.6837 17.6096 12.301 17.1784 12.0651L14.5033 10.5941C14.4764 10.5775 14.4494 10.5616 14.4221 10.5467L11.7539 9.07941C11.4483 8.88749 11.093 8.78613 10.7251 8.78613C9.69311 8.78613 8.85352 9.58571 8.85352 10.5686V16.6421C8.85352 16.6633 8.85488 16.6842 8.85745 16.7047C8.86823 16.9954 8.95436 17.2808 9.10824 17.5339C9.44128 18.0816 10.0613 18.4218 10.7264 18.4218C11.0538 18.4218 11.3772 18.3389 11.6609 18.1823L14.4221 16.664C14.4378 16.6553 14.4528 16.6461 14.4673 16.6363L17.1589 15.1564C17.4527 15.0001 17.697 14.7701 17.8656 14.4908C18.1139 14.0792 18.1791 13.6002 18.0491 13.1419ZM16.9174 13.9717C16.8472 14.088 16.7456 14.1836 16.6238 14.248C16.6211 14.2494 16.6184 14.2509 16.6157 14.2523L13.8741 15.7597C13.8584 15.7683 13.8434 15.7776 13.829 15.7874L11.1135 17.2806C10.9954 17.3457 10.8615 17.3802 10.7264 17.3802C10.4502 17.3802 10.1928 17.2391 10.0547 17.0119C9.98617 16.8992 9.95003 16.7715 9.95014 16.6426C9.95014 16.6249 9.94921 16.6072 9.94729 16.5897V10.5686H9.94735C9.94735 10.1601 10.2963 9.8278 10.7252 9.8278C10.8811 9.8278 11.0312 9.87134 11.1592 9.95368C11.1699 9.9605 11.1807 9.96701 11.1918 9.97316L13.8764 11.4494C13.8899 11.4568 13.9028 11.4646 13.9156 11.4727C13.9247 11.4784 13.9339 11.4838 13.9433 11.489L16.6326 12.9677C16.8114 13.0656 16.9395 13.2239 16.9933 13.4136C17.0471 13.6033 17.0201 13.8015 16.9174 13.9717Z",fill:"#5D7189"})]})},k=r(6684);var I={loaderPlug:{svg:{width:"32px",height:"32px",color:"colors.brand1"}},dropZoneWrapper:{display:"flex",justifyContent:"center",position:"relative"},iconSize:e=>({width:e||"48px",height:e||"48px"}),addPhotoTitlePrimary:{color:"colors.primary"},addPhotoTitle:{textTransform:"uppercase",fontWeight:700,textAlign:"center",mt:1,color:"colors.textPrimary","@media (max-width: 600px)":{display:"none"}},addIconDropzone:e=>
1{let{zoneWidth:t,zoneHeight:r,dropZoneBackground:o,readOnly:i}=e;return{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",p:1.5,maxWidth:100===t?"100%":t,width:100===t?"100%":t,height:r,backgroundColor:o||"colors.statusNeutralLight",borderRadius:2.5,backgroundImage:e=>(0,k.vR)({stroke:e.palette.colors.primary||"#072D5E",strokeOpacity:i?.6:1,strokeWidth:2}),cursor:"pointer","& svg:not(.MuiSvgIcon-colorPrimary)":{color:"colors.iconSecondary"},opacity:i?.6:1,"&:hover":{filter:i?"unset":"brightness(98%)",cursor:i?"auto":"pointer"},"&:focus":{outline:0,backgroundImage:e=>(0,k.vR)({stroke:e.palette.colors.functionalInfo||"#2988FF",strokeWidth:3})}}},circleDropzone:e=>{let{readOnly:t,zoneWidth:r,zoneHeight:o}=e;return{borderRadius:"50% !important",backgroundImage:e=>(0,k.vR)({stroke:e.palette.colors.primary||"#072D5E",strokeOpacity:t?.6:1,strokeWidth:2,ry:o,rx:Number(r)}),"&:focus":{backgroundImage:e=>(0,k.vR)({stroke:e.palette.colors.functionalInfo||"#2988FF",strokeWidth:3,ry:o,rx:Number(r)})}}},uploadFile:e=>{let{readOnly:t}=e;return{flexDirection:"row",py:0,pl:2,borderRadius:1,justifyContent:"start",backgroundImage:e=>(0,k.vR)({stroke:e.palette.colors.primary||"#072D5E",strokeOpacity:t?.6:1,strokeWidth:2,ry:3,rx:3}),"&:focus":{backgroundImage:e=>(0,k.vR)({stroke:e.palette.colors.functionalInfo||"#2988FF",strokeWidth:3,ry:3,rx:3})}}},input:{width:0,height:0,visibility:"hidden"}};var z=e=>{let{isSingleMediaFile:t}=e;const{t:r}=(0,l.$G)(),i=t?"file":"files";return(0,o.jsxs)(d.Z,{variant:"overline",sx:I.addPhotoTitle,children:[r("profile.drop_zone_file.drop_your_media_files",{fileText:i})," ",(0,o.jsx)(s.Z,{component:"span",sx:I.addPhotoTitlePrimary,children:r("profile_common.drop_zone_file.upload_the_file")})]})};var D=e=>{let{title:t,sx:r}=e;const{t:i}=(0,l.$G)(),n=Array.isArray(r)?r:[r];return(0,o.jsx)(d.Z,{variant:"overline",sx:[I.addPhotoTitle,I.addPhotoTitlePrimary,...n],children:i(t)})};const S=(e,t)=>e.map(((e,r)=>({id:"".concat((new Date).getTime(),"_").concat(r),file:e,track_id:null===t||void 0===t?void 0:t.track,...t}))),M={style:I.input},P=(0,n.forwardRef)(((e,t)=>{let{setImage:r,onImageChange:j,zoneWidth:w,zoneHeight:Z,maxSize:b=f.C,formats:k=".png, .jpg",multiFiles:P,mediaLimit:T=0,mediaLength:F=0,onSaveCallback:L,realtimeUpload:W,dropZoneBackground:B,readOnly:R,additionalInputProps:V,onCropperClose:A,isNeedFillContentData:N,variant:G="photo",cropperProps:O,selectCardProps:E}=e;const{t:$}=(0,l.$G)(),U=(0,n.useRef)(null),q=(0,a.CGy)(a.SLc),{showErrorMessage:Y,showSuccessMessage:J}=(0,x.Z)(),[K,Q]=(0,n.useState)({}
1),[X,ee]=(0,n.useState)(!1),[te,re]=(0,n.useState)(),[oe,ie]=(0,n.useState)(!1),[ne,ae]=(0,n.useState)(),[le,se]=(0,n.useState)(!1),{Icon:de,Text:ce,isCircle:pe,defaultWidth:he,defaultHeight:ue}=(0,n.useMemo)((()=>(e=>{let{variant:t}=e;switch(t){case"mediaFiles":return{defaultWidth:100,defaultHeight:104,Icon:()=>(0,o.jsx)(_,{sx:I.iconSize(32)}),Text:z};case"mediaFile":return{defaultWidth:100,defaultHeight:104,Icon:()=>(0,o.jsx)(_,{sx:I.iconSize(32)}),Text:()=>(0,o.jsx)(z,{isSingleMediaFile:!0})};case"video":return{defaultWidth:100,defaultHeight:128,Icon:()=>(0,o.jsx)(H,{sx:I.iconSize(32)}),Text:z};case"photo":return{defaultWidth:456,defaultHeight:271,Icon:()=>(0,o.jsx)(y,{sx:I.iconSize(48)}),Text:()=>(0,o.jsx)(D,{title:"profile_common.add_image_drop_zone.add_photo"})};case"image":return{defaultWidth:128,defaultHeight:128,isCircle:!0,Icon:()=>(0,o.jsx)(y,{sx:I.iconSize(32)}),Text:()=>(0,o.jsx)(D,{title:"common.add_image"})};case"smallImage":return{defaultWidth:96,defaultHeight:96,Icon:()=>(0,o.jsx)(p.Z,{color:"primary",sx:I.iconSize(24)}),Text:()=>(0,o.jsx)(D,{title:"profile_common.add_image_drop_zone.add_photo"})};case"uploadFile":return{defaultWidth:130,defaultHeight:38,Icon:()=>(0,o.jsx)(c.Z,{color:"primary",sx:I.iconSize(17)}),Text:()=>(0,o.jsx)(D,{title:"common.upload_file",sx:{mt:0,ml:1.5}})};default:return{Icon:()=>null,Text:()=>null}}})({variant:G})),[G]),xe=q||b,me=e=>{r?r((t=>[...t,...S(e,ne)])):j&&j(S(e,ne))},ge=e=>{if(!W)return me(e),void ae(null);se(!0);const t={files:e,apiUrl:(0,m.t)(),addId:!0,title:null===ne||void 0===ne?void 0:ne.title,id:null===ne||void 0===ne?void 0:ne.id};(0,u.IL)(t).then((e=>{e.map((e=>{var t;const o=(null===e||void 0===e||null===(t=e.list)||void 0===t?void 0:t.length)?e.list[0]:null;if(o){var i;if(!L)return r&&r((e=>[...e,o])),j&&j([o]),e;null===(i=L(o.id,ne))||void 0===i||i.then((e=>{200===(null===e||void 0===e?void 0:e.code)&&(r&&r((e=>[...e,{...o,id:+o.id}])),j&&j([{...o,id:+o.id}]))})).then((()=>{J($("common.saved")),N&&ae(null)}))}return e}))})).catch((e=>{Y(e)})).finally((()=>{se(!1)}))};(0,n.useEffect)((()=>{N&&te&&ne&&(ge(te),re(null))}),[N,te,ne]);const fe=()=>{Y($("profile_common.add_image_drop_zone.please_use_files_with_only",{size:xe/1e6}))},Ce=()=>{ee(!1),A&&A()},ve=e=>{var r,o;return e&&e.stopPropagation(),(null===(r=U.current)||void 0===r?void 0:r.open)?U.current.open():t&&"current"in t&&(null===(o=t.current)||void 0===o?void 0:o.open)?t.current.open():null},je=(0,n.useMemo)((()=>(0,g.R)(k||"")),[k]),we={...{zoneWidth:w||he,zoneHeight:Z||ue},dropZoneBackground:B,readOnly:R},ye="mediaFiles"===G||"video"===G||"mediaFile"===G,Ze="uploadFile"===G,_e=xe&&"smallImage"!==G&&!Ze,be=$("profile_common.add_image_drop_zone.up_to_size_mb",{size:xe/1e6}),He=X?{}:{onClickCapture:ve},ke=ye?(e,t)=>{if(!e.length)return fe(),null;0!==Object.keys(t).length&&fe();if(0!==T&&e.length+F>T&&Y("no more than ".concat(T," files")),N&&!ne&&!W)return ie(!0),re(e),!0;if(!W){if(ae(null),P)return me(e),null;if(!e.length)return!0;if(r)return r([e[0]]);if(j)return j([e[0]])}const o=0!==T?e.slice(0,T-F):e;return N&&!ne?(re(o),ie(!0),!0):(ge(o),!0)}:(e,t)=>{const r=e[0];if(!r)return fe(),null;0!==Object.keys(t).length&&fe();const o=new FileReader;return o.readAsDataURL(r),o.onloadend=()=>{const{result:e}=o,t=new Image;t.src=e||"",t.onload=()=>{Q({src:e||"",width:t.width,title:r.name})}},ee(!0),!0},Ie=[I.addIconDropzone(we),pe?I.circleDropzone(we):{},Ze?I.uploadFile(we):{}];return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.Z,{...He,sx:I.dropZoneWrapper,children:(0,o.jsx)(h.ZP,{disabled:R,onDrop:ke,accept:je,maxSize:xe,ref:t||U,multiple:P,children:e=>
1{let{getRootProps:t,getInputProps:r}=e;return(0,o.jsx)(s.Z,{...t(),sx:Ie,children:(0,o.jsx)(i.default,{size:32,showText:!0,sx:I.loaderPlug,isLoading:le,children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(de,{}),(0,o.jsx)(ce,{}),_e&&(0,o.jsx)(d.Z,{variant:"subtitle3",color:"textSecondary",children:be}),(0,o.jsx)("input",{...r(M),...V})]})})})}})}),(0,o.jsx)(C.Z,{imageSrc:K.src,title:K.title,open:X,handleClose:Ce,handleConfirmCropper:async e=>{r&&r(P?t=>[...t,e]:[e]),j&&j([e]),Ce()},setNewImage:Q,acceptedFormats:k,maxFileSize:xe,...O}),(0,o.jsx)(v.Z,{open:oe,handleClose:ie.bind(null,!1),setFileData:e=>{ae(e),te||setTimeout((()=>{ve(null)}))},...E})]})}));P.displayName="AddImageDropZone";var T=(0,n.memo)(P)},96381:function(e,t,r){var o=r(57437),i=r(2265),n=r(14672),a=r(55788),l=r(21170),s=r(8350),d=r(72608),c=r(28181),p=r(26225),h=r(46387),u=r(12824),x=r(72291),m=r(91200),g=r(85219),f=r(7220);const C={bodyContainer:{display:"flex",flexDirection:{xs:"column",sm:"row"},gap:2.5},divider:{"&.MuiDivider-root":{borderColor:"colors.borderGreyLight"},mb:2.5},descriptionStyle:{"& .MuiTextField-root":{minHeight:"342px",width:"100%","& > .MuiInputBase-multiline":{"& textarea":{height:"342px !important",overflowY:"auto !important"}}}},radioGroup:{mt:"16px",mb:"8px",gap:"16px",pb:"8px"}},v={track:null,title:"",description:""};t.Z=e=>{let{open:t,handleClose:r,setFileData:j,fileData:w,hideTracks:y,hideDescription:Z,descriptionLimit:_=200}=e;var b;const{t:H}=(0,a.$G)(),k=(0,n.TL5)(),{showErrorMessage:I}=(0,f.Z)(),z=(0,n.CGy)(n.c5O),[D,S]=(0,i.useState)(v);(0,i.useEffect)((()=>{k((0,n.kZD)())}),[k]),(0,i.useEffect)((()=>{S(w?{track:w.track_id,title:w.title||w.name||"",description:w.description||""}:v)}),[j,w]);const M=0!==_,P=_||200,T=!Z&&M&&D.description.length>P,F=z.length>0,L=F&&!D.track&&!y||(null===(b=D.title)||void 0===b?void 0:b.length)<1||T,W=F&&!y,B=Z&&y,R={handleClose:r,handleSave:()=>{D.title?(j&&j(D),r()):I(H("profile_common.select_card_modal.title_is_required"))},saveBtnIsDisabled:L,saveButtonProps:{color:"primary"}};var V;return(0,o.jsx)(u.Z,{open:t,width:B?"590px":"910px",onClose:r,title:H("profile_common.select_card_modal.file_settings"),ActionButtons:(0,o.jsx)(g.Z,{...R}),children:(0,o.jsxs)(l.Z,{sx:C.bodyContainer,children:[(0,o.jsxs)(l.Z,{minWidth:B?"100%":"300px",children:[W&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(h.Z,{variant:"h6",children:"".concat(H("profile_common.select_card_modal.choose_track_for_file")," *")}),(0,o.jsx)(p.Z,{row:!0,value:null!==(V=D.track)&&void 0!==V?V:"",onChange:e=>{const t=z.find((t=>"".concat(t.id)===e.target.value));S({...D,track:null===t||void 0===t?void 0:t.id})},sx:C.radioGroup,children:z.map((e=>(0,o.jsx)(d.Z,{value:e.id,control:(0,o.jsx)(c.Z,{id:"".concat(e.id)}),label:(0,o.jsx)(m.Z,{label:e.title,color:"neutral",size:"small"}),disableTypography:!0},e.id)))}),(0,o.jsx)(s.Z,{sx:C.divider})]}),(0,o.jsx)(x.Z,{placeholder:H("profile_common.select_card_modal.enter_title"),onChange:e=>S({...D,title:e.target.value}),value:D.title,fullWidth:!0,required:!0,label:H("common.title")})]}),!Z&&(0,o.jsx)(x.Z,{sx:C.descriptionStyle,placeholder:H("profile_common.select_card_modal.enter_file_description"),onChange:e=>S({...D,description:e.target.value}),value:D.description,fullWidth:!0,multiline:!0,...M&&{maxLength:P},error:T,showMaxLength:!0,label:H("profile_common.select_card_modal.description")})]})})}},41345:function(e,t,r){r.d(t,{C:function(){return o}});const o=2e6},8389:function(e,t,r){r.d(t,{R:function(){return i}});const o={avi:"video/x-msvideo",bmp:"image/bmp",csv:"text/csv",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",mp3:"audio/mpeg",mp4:"video/mp4",mpeg:"video/mpeg",pdf:"application/pdf",png:"image/png",ppt:"application/vnd.ms-powerpoint",rtf:"application/rtf",txt:"text/plain",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",odt:"application/vnd.oasis.opendocument.text",z
1ip:"application/zip",rar:["application/x-rar-compressed","application/vnd.rar"],gz:"application/gzip","7z":"application/x-7z-compressed"},i=e=>e.replace(/(\.|\s)/gi,"").split(",").flatMap((e=>{if(!(e=>Object.prototype.hasOwnProperty.call(o,e))(e))return[];const t=o[e];return"string"===typeof t?[t]:[...t]}))}}]);
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.