1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="10c19902-873a-45de-bc90-d84d821f8f29",e._sentryDebugIdIdentifier="sentry-dbid-10c19902-873a-45de-bc90-d84d821f8f29")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2920,2960,3788,5713,6645,7614],{180:(e,t,o)=>{"use strict";o.d(t,{A:()=>f});var n=o(18153),l=o(14232),a=o(93577),i=o(95805),r=o(46767),s=o(29182),c=o(88314),d=o(74222),u=o(9878),g=o(28888),_=o(38993);function p(){let e=(0,g._)(["\n display: inline-block;\n\n .image-upload-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: calc(25vw - 9px); //dynamic photo size: 25$ of width - static margins and paddings\n height: calc(25vw - 9px);\n background: var(--neutralLightGrey);\n border-radius: 6px;\n cursor: pointer;\n\n &__content {\n display: flex;\n flex-direction: column;\n align-items: center;\n\n &-title {\n margin-top: 8px;\n }\n\n &-description {\n margin-top: 8px;\n text-align: center;\n }\n }\n\n &.desktop {\n padding: 48px 24px;\n width: 222px;\n height: 222px;\n }\n\n &.sticky {\n width: 130px;\n height: 106px;\n padding: 0;\n }\n\n .IconCamera_wrap {\n svg {\n width: 26px;\n height: 24px;\n min-width: 26px;\n min-height: 24px;\n }\n }\n }\n\n #image-upload-input {\n display: none;\n }\n"]);return p=function(){return e},e}let h=()=>(0,_.AH)(p()),f=e=>{let{description:t,imagesLength:o,isPhotosExist:g,maxImagesLength:_,title:p,uploadIcon:f,uploadPhoto:m}=e,{isDesktopDevice:y}=(0,l.useContext)(s.q),A=y?g?"sticky image":"desktop":"mobile";return(0,n.FD)("div",{css:h,className:"ImageUploaderButton",children:[(0,n.Y)("label",{htmlFor:"image-upload-input",className:"image-upload-button ".concat(A),children:(0,n.FD)("div",{className:"image-upload-button__content",children:[f||(0,n.Y)("div",{className:"IconCamera_wrap",children:(0,n.Y)(i.A,{size:"24"})}),y&&(0,n.FD)(n.FK,{children:[(0,n.Y)(a.A,{size:"12",text:p,color:r.zu,customClass:"image-upload-button__content-title"}),!g&&(0,n.Y)(a.A,{size:"12",text:t,color:r.zu,customClass:"image-upload-button__content-description"})]})]})}),(0,n.Y)("input",{id:"image-upload-input",className:"d-none",type:"file",onChange:e=>{let t=e.target.files;o+t.length>_&&c.z(d.A.YOU_CANT_UPLOAD_MORE_IMAGES,{count:_}),[...o+t.length>_?[...t].slice(0,_-o):[...t]].map(e=>(0,u.A)(e,m)),e.target.value=null},multiple:!0})]})}},9878:(e,t,o)=>{"use strict";o.d(t,{A:()=>h,x:()=>_});var n=o(33877),l=o.n(n),a=o(91423),i=o(94937),r=o(79668),s=o(90415),c=o(88314),d=o(74222);let u=["image/png","image/jpeg","image/jpg","image/heic"],g=(e,t)=>{if(e){let o=e.split(","),n=o[0].match(/:(.*?);/),l=n?n[1]:"",a=atob(o[1]),i=a.length,r=new Uint8Array(i);for(;i--;)r[i]=a.charCodeAt(i);return new File([r],t,{type:l})}},_=async e=>{if(!u.includes(e.type))throw c.z(d.A.INVALID_IMAGE,{formats:"jpg, jpeg, png, heic"}),{file:e,reason:"INVALID_TYPE"};if(e.size>i.oH.POSTING_MAX_IMAGE_SIZE)throw c.z(d.A.MAX_FILE_SIZE),{file:e,reason:"MAX_SIZE"};if(e.size<i.oH.POSTING_MIN_IMAGE_SIZE)throw c.z(d.A.MIN_FILE_SIZE),{file:e,reason:"MIN_SIZE"};let t=e;if("image/heic"===e.type)try{let{default:n}=await o.e(2246).then(o.t.bind(o,3290,23)),l=await n({blob:e,toType:"image/jpeg",quality:.8}),a=Array.isArray(l)?l[0]:l;t=new File([a],e.name.replace(/\.heic$/i,".jpg"),{type:"image/jpeg"})}catch(t){throw console.error(t),c.z(d.A.FAILED_TO_CONVERT_HEIC_IMAGE_TEXT),{file:e,reason:"HEIC_CONVERT_FAILED"}}return new Promise((o,n)=>{let u=new FileReader;u.onerror=()=>n({file:e,reason:"FILE_READER_ERROR"}),u.onload=()=>{let _=new Image;_.src=u.result,_.onload=()=>{let u=_.width,h=_.height;if(u<i.oH.POSTING_MIN_IMAGE_WIDTH||h<i.oH.POSTING_MIN_IMAGE_HEIGHT){c.z(d.A.MIN_IMAGE_SIZE),n({file:e,reason:"MIN_DIMENSIONS"});return}u>h&&u>1920?(h=Math.round(1920*h/u),u=1920):h>1080&&(u=Math.round(1080*u/h),h=1080);let f=document.createElement("canvas"),m=f.getContext("2d");f.width=u,f.height=h;let y=1;function A(e){var n;let l=e.toDataURL(t.type,.7),i=null!=(n=g(l,t.name))?n:t;o({id:(0,a.A)(),file:i,imageURI:l})}(0,r.C)()===i.lx.IOS&&14>Number((0,s.v)())||(0,r.C)()===i.lx.ANDROID&&9>Number((0,s.v)())?l().getData(_,function(){p(m,l().getTag(_,"Orientation")||1,u,h),m.drawImage(_,0,0,u,h),A(f)}):(m.drawImage(_,0,0,u,h),A(f))},_.onerror=()=>n({file:e,reason:"IMAGE_LOAD_ERROR"})}
1,u.readAsDataURL(t)})},p=(e,t,o,n)=>{switch(t){case 2:e.transform(-1,0,0,1,o,0);break;case 3:e.transform(-1,0,0,-1,o,n);break;case 4:e.transform(1,0,0,-1,0,n);break;case 5:e.transform(0,1,1,0,0,0);break;case 6:e.transform(0,1,-1,0,n,0);break;case 7:e.transform(0,-1,-1,0,n,o);break;case 8:e.transform(0,-1,1,0,0,o);break;default:e.setTransform(1,0,0,1,0,0)}},h=async(e,t)=>{let n=new FileReader;if(!u.includes(e.type)||!e)return void c.z(d.A.INVALID_IMAGE,{formats:"jpg, jpeg, png, heic"});if(e.size>i.oH.POSTING_MAX_IMAGE_SIZE)return void c.z(d.A.MAX_FILE_SIZE);if(e.size<i.oH.POSTING_MIN_IMAGE_SIZE)return void c.z(d.A.MIN_FILE_SIZE);let _=e;if("image/heic"===e.type)try{let t=(await o.e(2246).then(o.t.bind(o,3290,23))).default,n=await t({blob:e,toType:"image/jpeg",quality:1}),l=Array.isArray(n)?n:[n];_=new File(l,e.name.replace(/\.heic$/i,".jpg"),{type:"image/jpeg"})}catch(e){console.error("HEIC to JPEG conversion failed:",e),c.z(d.A.FAILED_TO_CONVERT_HEIC_IMAGE_TEXT);return}n.onload=()=>{let e,o=n.result,u=new Image;u.src=o,u.onload=function(){let o=(()=>{let t=document.createElement("canvas"),o=t.getContext("2d"),n=u.width,a=u.height;if(u.width<i.oH.POSTING_MIN_IMAGE_WIDTH||u.height<i.oH.POSTING_MIN_IMAGE_HEIGHT)return c.z(d.A.MIN_IMAGE_SIZE),null;if(n>a?n>1920&&(a=Math.round(1920*a/n),n=1920):a>1080&&(n=Math.round(1080*n/a),a=1080),t.width=n,t.height=a,(0,r.C)()===i.lx.IOS&&14>parseInt((0,s.v)(),10)||(0,r.C)()===i.lx.ANDROID&&9>parseInt((0,s.v)(),10))switch(l().getData(u,()=>{e=l().getAllTags(this).Orientation}),[5,6,7,8].indexOf(e)>-1?(t.width=a,t.height=n):(t.width=n,t.height=a),e){case 2:o.transform(-1,0,0,1,n,0);break;case 3:o.transform(-1,0,0,-1,n,a);break;case 4:o.transform(1,0,0,-1,0,a);break;case 5:o.transform(0,1,1,0,0,0);break;case 6:o.transform(0,1,-1,0,a,0);break;case 7:o.transform(0,-1,-1,0,a,n);break;case 8:o.transform(0,-1,1,0,0,n);break;default:o.transform(1,0,0,1,0,0)}return o.drawImage(u,0,0,n,a),t.toDataURL(_.type,1)})();if(o){let e=g(o,_.name);"ios"===(0,r.C)()&&11>=parseInt((0,s.v)(),10)?t({id:(0,a.A)(),file:_,imageURI:o}):e&&t({id:(0,a.A)(),file:e,imageURI:o})}}},_&&n.readAsDataURL(_)}},15700:e=>{e.exports={modalMobileFullScreenViewContainer:"MobileFullScreen_modalMobileFullScreenViewContainer__ffU0o",modalBody:"MobileFullScreen_modalBody__JH3VA",withTopBar:"MobileFullScreen_withTopBar__KG5fq"}},19026:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>_});var n=o(18153),l=o(47377),a=o(32131),i=o(27142),r=o(77043),s=o(50222),c=o(85866),d=o(62920),u=o(61362),g=o.n(u);let _=e=>{let{cancelText:t,confirmText:o,descriptionText:u,isDesktopDevice:_,isInverseActionButton:p=!1,yesText:h,customClass:f,confirmButtonType:m,onCloseRequest:y}=e,A=_?"large":"medium",S=(0,l.k)();return(0,n.Y)(d.default,{onCloseRequest:()=>y({confirm:!1,defaultCloseButton:!0}),children:(0,n.FD)("div",{className:"modal-conformation__wrapper ".concat(g().modalConformationContainer," ").concat(S," ").concat(f||""),children:[(0,n.Y)(s.A,{onClick:()=>y({confirm:!1,defaultCloseButton:!0}),customClass:g().modalConformationCloseButton}),(0,n.Y)(c.A,{colorAttention:"var(--primaryWhite)",customIconId:"modal-conformation-attention-icon"}),(0,n.Y)(i.A,{size:"20",text:o,type:"h2",weight:"500"}),u&&(Array.isArray(u)?u:[u]).map((e,t)=>(0,n.Y)(r.A,{size:"16",color:"var(--neutralDarkGrey)",text:e},t)),(0,n.FD)("div",{className:"modalConformationActionHolder ".concat(g().modalConformationActionHolder),children:[(0,n.Y)(a.A,{size:A,text:t,type:p?"secondary-green":"secondary-pink",onClick:()=>y({confirm:!1})}),(0,n.Y)(a.A,{size:A,text:h,type:m||(p?"secondary-pink":"secondary-green"),onClick:()=>y({confirm:!0})})]})]})})}},24400:e=>{e.exports={defaultModal:"Default_defaultModal__Y4_CU",modalClose:"Default_modalClose__fn63T",backButton:"Default_backButton__iiuLF",large:"Default_large__iCA_7","extra-large":"Default_extra-large__OQqtn"}},24641:(e,t,o)=>{"use strict";o.d(t,{_:()=>l});var n=o(14232);function l(){(0,n.useLayoutEffect)(()=>(document.body&&(document.body.style.overflow="hidden",document.body.style.width="100%",document.body.style.height="100%"),()=>{document.body&&(document.body.style.overflow="visible",document.body.style.position="relative")}),[])}},48786:e=>{e.exports={LFSubHeading:"LFSubHeading_LFSubHeading__bFlVS",profileSettingGallery:"AccountSettingsProfileSettingGallery_profileSettingGallery____Oq_",profileSettingGalleryTitleContainer:"AccountSettingsProfileSettingGallery_profileSettingGalleryTitleContainer___5mq8",profileSettingGalleryPhotosContainer:"AccountSettingsProfileSettingGallery_profileSettingGalleryPhotosContainer__7O7oU",profileSettingGalleryPhotosTitle:"AccountSettingsProfileSettingGallery_profileSettingGalleryPhotosTitle__yUT4g"}},55713:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>c});var n=o(18153);o(14232);var l=o(47377),a=o(50222),i=o(88299),r=o(24400),s=o.n(r);let c=e=>{let{children:t,closeIconColor:o,styles:r=null,size:c="",closeButton:d,customClass:u,isShowBackButton:g=!1,backButtonClickHandler:_}=e,p=(0,l.k)(),h=c?s()[c]:"";return(0,n.FD)("div",{className:"default-modal-view ".concat(s().defaultModal," ").concat(h," ").concat(p," ").concat(u),...r&&{style:r},children:[(0,n.Y)("span",{className:s().modalClose,onClick:d,children:(0,n.Y)(a.A,{color:o})}),g&&(0,n.Y)("span",{className:s().backButton,onClick:_,children:(0,n.Y)(i.A,{size:"24"})}),(0,n.Y)("div",{className:"modal__body",children:t})]})}},55956:e=>{e.exports={profileSettingGalleryUploadButton:"AccountSettingsProfileSettingGalleryListPhotos_profileSettingGalleryUploadButton__O0yV2",profileSettingGalleryLoaderContainer:"AccountSettingsProfileSettingGalleryListPhotos_profileSettingGalleryLoaderContainer__CwRRh",profileSettingGalleryListPhotos:"AccountSettingsProfileSettingGalleryListPhotos_profileSettingGalleryListPhotos__reYTv"}},61362:e=>{e.exports={modalConformationContainer:"ViewConformation_modalConformationContainer__Im9YM",modalConformationCloseButton:"ViewConformation_modalConformationCloseButton__h4f_o",modalConformationActionHolder:"ViewConformation_modalConformationActionHolder__KcJ3t"}},62920:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>d});var n=o(18153),l=o(14232),a=o(98477),i=o(47377),r=o(24641),s=o(65333),c=o.n(s);let d=e=>{let{onCloseRequest:t,idElementForMount:o,customModalOverlayClass:s,name:d,children:u}=e,g=(0,i.k)(),_=o||"modal",p=document.getElementById(_);p||((p=document.createElement("div")).id=_,document.body.appendChild(p));let h=(0,l.useRef)(null),f=s||"modal-overlay",m=(0,l.useCallback)(e=>
1{27===e.keyCode&&(e.preventDefault(),t(e))},[t]),y=(0,l.useCallback)(e=>{null!==h&&"string"==typeof e.target.className&&e.target.className.includes(f)&&t(e)},[h,t]);return(0,l.useEffect)(()=>(window.addEventListener("keyup",m,!1),window.addEventListener("click",y,!1),()=>{window.removeEventListener("keyup",m,!1),window.removeEventListener("click",y,!1)}),[m,y]),(0,r._)(),a.createPortal((0,n.Y)("div",{className:"".concat(c().modal," ").concat(f," ").concat(g),ref:h,"data-modal":d,children:u}),p)}},65333:e=>{e.exports={modal:"Modal_modal__C9hTa"}},82198:e=>{e.exports={profileSettingGalleryPhotoWrapper:"AccountSettingsProfileSettingGalleryPhoto_profileSettingGalleryPhotoWrapper__XCDRw",profileSettingGalleryPhotoContainer:"AccountSettingsProfileSettingGalleryPhoto_profileSettingGalleryPhotoContainer__cPgZs",show:"AccountSettingsProfileSettingGalleryPhoto_show__I3zsD",useMain:"AccountSettingsProfileSettingGalleryPhoto_useMain__mKfPi",profileSettingGalleryPhoto:"AccountSettingsProfileSettingGalleryPhoto_profileSettingGalleryPhoto__c6Gni",profileSettingGalleryPhotoLabel:"AccountSettingsProfileSettingGalleryPhoto_profileSettingGalleryPhotoLabel__8T2W9",mainPhoto:"AccountSettingsProfileSettingGalleryPhoto_mainPhoto__mELN4",profileSettingGalleryPhotoDescriptionContainer:"AccountSettingsProfileSettingGalleryPhoto_profileSettingGalleryPhotoDescriptionContainer__O_2jB"}},85233:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>s});var n=o(18153),l=o(50222),a=o(66517),i=o(15700),r=o.n(i);let s=e=>{let{isShowTopBar:t=!0,children:o,closeIcon:i,title:s,closeModal:c,rightIcon:d,rightButtonClickHandler:u,isChangeTopBar:g=!1,styles:_,withoutHideContainer:p}=e,h=t?r().withTopBar:"";return(0,n.FD)("div",{className:"modal-mobile-fullscreen-view ".concat(r().modalMobileFullScreenViewContainer),children:[t&&(0,n.Y)(a.A,{title:s,leftButton:i||(0,n.Y)(l.A,{}),leftButtonClickHandler:c,rightButton:d,rightButtonClickHandler:u,isChangeTopBar:g,styles:_,withoutHideContainer:p}),(0,n.Y)("div",{className:"modal__body ".concat(h," ").concat(r().modalBody),children:o})]})}},90210:e=>{e.exports={profilePhotoGalleryModal:"AccountSettingsProfilePhotoGalleryModal_profilePhotoGalleryModal__VkZqt"}},92960:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>F});var n=o(37876),l=o(14232),a=o(37004),i=o(47377),r=o(29182),s=o(94937),c=o(32047),d=o(15946),u=o(88299),g=o(9169),_=o(46767),p=o(62920),h=o(55713),f=o(85233),m=o(19026),y=o(79827),A=o(86412),S=o(93577),C=o(5574),I=o(76091),x=o(180),G=o(61407),P=o(82198),E=o.n(P);let N=e=>{let{photo:t,photoIndex:o,deletePhotoHandler:a,onChangePhotoDescriptionHandler:i,setMainPhotoHandler:c}=e,{translations:d}=(0,l.useContext)(r.q);return(0,n.jsxs)("li",{className:E().profileSettingGalleryPhotoWrapper,"data-component":"account-settings-profile-setting-gallery-photo",children:[(0,n.jsxs)("div",{className:E().profileSettingGalleryPhotoContainer,children:[(0,n.jsx)("img",{className:E().profileSettingGalleryPhoto,src:t.original_url,alt:t.description,loading:"lazy"}),o>0&&(0,n.jsx)("span",{className:"".concat(E().profileSettingGalleryPhotoLabel," ").concat(E().useMain),onClick:()=>c(t.id),children:d.USE_AS_MAIN_IMAGE}),(0,n.jsx)(G.A,{color:_.qT,secondaryColor:_.zu,onClick:()=>a(t.id)}),0===o&&(0,n.jsx)("span",{className:"".concat(E().profileSettingGalleryPhotoLabel," ").concat(E().mainPhoto),children:d.MAIN_IMAGE})]}),(0,n.jsx)("div",{className:E().profileSettingGalleryPhotoDescriptionContainer,children:(0,n.jsx)(y.A,{onChange:e=>i(e.value,t.id),placeholder:d.DESCRIBE_YOUR_PHOTO,value:t.description,maxLength:s.sU.PHOTO_DESCRIPTION.MAX_SYMBOL})})]})};var b=o(55956),M=o.n(b);let w=e=>{let{photosGallery:t,deletePhotoHandler:o,onChangePhotoDescriptionHandler:i,setMainPhotoHandler:c,uploadPhotoHandler:d}=e,{translations:u}=(0,l.useContext)(r.q),g=(0,a.d4)(e=>e.businessProfile.photoGallery.photos);return(0,n.jsxs)("ul",{className:M().profileSettingGalleryListPhotos,"data-component":"account-settings-profile-setting-gallery-list-photos",children:[t&&t.length<s.sU.ALBUM.MAX_PHOTOS&&(0,n.jsxs)("li",{className:M().profileSettingGalleryUploadButton,children:[(0,n.jsx)(x.A,{maxImagesLength:s.sU.ALBUM.MAX_PHOTOS,imagesLength:t.length,isPhotosExist:!0,title:u.ADD_PHOTO,uploadIcon:(0,n.jsx)(C.A,{color:_.ie,size:"20"}),uploadPhoto:d}),(0,n.jsx)(S.A,{size:"12",text:u.MAX_PHOTOS_IN_ALBUM_TEXT,color:_.zw})]}),g.status===s._?(0,n.jsx)("li",{className:M().profileSettingGalleryLoaderContainer,children:(0,n.jsx)(I.A,{})}):t&&t.map((e,t)=>(0,n.jsx)(N,{photo:e,photoIndex:t,deletePhotoHandler:o,onChangePhotoDescriptionHandler:i,setMainPhotoHandler:c},e.id))]})};var v=o(48786),T=o.n(v);let D=e=>{let{nameGallery:t,photosGallery:o,deletePhotoHandler:a,onChangeNameGalleryHandler:i,onChangePhotoDescriptionHandler:c,setMainPhotoHandler:d,uploadPhotoHandler:u}=e,{translations:g}=(0,l.useContext)(r.q);return(0,n.jsxs)("div",{className:T().profileSettingGallery,"data-component":"account-settings-profile-setting-gallery",children:[(0,n.jsxs)("div",{className:T().profileSettingGalleryTitleContainer,children:[(0,n.jsx)(A.A,{size:"16",text:g.ADD_TITLE_TO_ALBUM,weight:"700"}),(0,n.jsx)(y.A,{onChange:e=>i(e.value),placeholder:g.NAME_YOUR_ALBUM,value:t,maxLength:s.sU.ALBUM.MAX_SYMBOL})]}),(0,n.jsxs)("div",{className:T().profileSettingGalleryPhotosContainer,children:[(0,n.jsx)(A.A,{customClass:T().profileSettingGalleryPhotosTitle,size:"16",text:g.ADD_IMAGE,weight:"700"}),(0,n.jsx)(w,{photosGallery:o,uploadPhotoHandler:u,deletePhotoHandler:a,onChangePhotoDescriptionHandler:c,setMainPhotoHandler:d})]})]})};var L=o(32131),O=o(95010),k=o.n(O);let H=e=>{let{currentActiveGallery:t,isDisabledButton:o,isShowModalConfirmDeleteGalleryHandler:a,onClickButtonSaveHandler:i}=e,{translations:s,isDesktopDevice:c}=(0,l.useContext)(r.q);return(0,n.jsxs)("div",{className:k().profileSettingGalleryActionsButton,"data-component":"account-settings-profile-setting-gallery-actions-button",children:[c&&t&&(0,n.jsx)(L.A,{size:"large",text:s.DELETE_ALBUM,type:"secondary-pink",onClick:a}),(0,n.jsx)(L.A,{size:"large",text:s.SAVE,type:"primary-green",onClick:i,disabled:o})]})};var j=o(90210),B=o.n(j);let F=e=>{let{currentActiveGallery:t,closeModalHandler:o}=e,y=(0,a.wA)(),{sendInternalAnalytics:A}=(0,d.A)(),{isDesktopDevice:S,translations:C}=(0,l.useContext)(r.q),I=(0,i.k)(),x=(0,a.d4)(e=>
1e.businessProfile.photoGallery.photos),[G,P]=(0,l.useState)(!1),[E,N]=(0,l.useState)(!1),[b,M]=(0,l.useState)((null==t?void 0:t.title)||""),[w,v]=(0,l.useState)([]),[T,L]=(0,l.useState)(!1),O=x.status===s.$g&&x.data&&t?[...x.data[t.id]]:[],k=e=>{let t={id:e.id,description:"",imageFile:e.file,original_url:e.imageURI,thumbnail_url:e.imageURI};v(e=>[t,...e])},j=e=>{M(e)},F=e=>{v(w&&w.filter(t=>t.id!==e))},z=(e,t)=>{v(w&&w.map(o=>o={...o,description:o.id===t?e:o.description}))},R=e=>{let t=w.findIndex(t=>t.id===e),o=w.splice(t,1)[0];w.splice(0,0,o),v([...w])},U=()=>{if(T)return P(!0);o()},Y=()=>{if(A({eventParams:"edit_pro_profile:fields:pro_account:button:tap"}),null===t)return y((0,c.kB)({photos:w,nameGallery:b})),o();y((0,c.Rg)({gallery:t,photos:w,nameGallery:b})),o()},q=()=>N(!0);return(0,l.useEffect)(()=>{t&&x.data&&x.status===s.$g&&v(O)},[x.data]),(0,l.useEffect)(()=>{let e=t?null==t?void 0:t.title:"";if(JSON.stringify(w)!==JSON.stringify(O)||b!==e)return L(!0);L(!1)},[w,b]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p.default,{onCloseRequest:U,children:(0,n.jsx)("div",{className:"".concat(B().profilePhotoGalleryModal," ").concat(I),"data-component":"account-settings-profile-photo-gallery-modal",children:S?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.default,{closeButton:U,children:(0,n.jsx)(D,{nameGallery:b,photosGallery:w,deletePhotoHandler:F,onChangeNameGalleryHandler:j,onChangePhotoDescriptionHandler:z,setMainPhotoHandler:R,uploadPhotoHandler:k})}),(0,n.jsx)(H,{currentActiveGallery:t,isDisabledButton:!T||0===w.length,isShowModalConfirmDeleteGalleryHandler:q,onClickButtonSaveHandler:Y})]}):(0,n.jsxs)(f.default,{closeIcon:(0,n.jsx)(u.A,{size:"24",onClick:U}),rightIcon:t&&(0,n.jsx)(g.A,{color:_.uU,size:"24",onClick:q}),children:[(0,n.jsx)(D,{nameGallery:b,photosGallery:w,deletePhotoHandler:F,onChangeNameGalleryHandler:j,onChangePhotoDescriptionHandler:z,setMainPhotoHandler:R,uploadPhotoHandler:k}),(0,n.jsx)(H,{currentActiveGallery:t,isDisabledButton:!T||0===w.length,isShowModalConfirmDeleteGalleryHandler:q,onClickButtonSaveHandler:Y})]})})}),G&&(0,n.jsx)(m.default,{cancelText:C.CANCEL,confirmText:C.INFORMATION_NOT_SAVED_TEXT,yesText:C.YES,onCloseRequest:e=>{let{confirm:t}=e;P(!1),t&&(L(!1),o())},descriptionText:C.THIS_ACTION_CANNOT_BE_UNDONE,isDesktopDevice:S}),E&&(0,n.jsx)(m.default,{cancelText:C.CANCEL,confirmText:C.DELETE_PHOTO_GALLERY,yesText:C.DELETE,onCloseRequest:e=>{let{confirm:n}=e;N(!1),n&&(t&&y((0,c.Hc)({gallery:t})),o())},descriptionText:C.THIS_ACTION_CANNOT_BE_UNDONE,isDesktopDevice:S})]})}},95010:e=>{e.exports={LFButton:"LFButton_LFButton__cJp8r",profileSettingGalleryActionsButton:"AccountSettingsProfileSettingGalleryActionsButton_profileSettingGalleryActionsButton__h6vMv"}}}]); 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="677de0a6-ecf7-555e-b8dc-81f4df7e0178")}catch(e){}}(); 3//# debugId=677de0a6-ecf7-555e-b8dc-81f4df7e0178
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.