1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1822],{3315:function(e,s,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/p/[...slug]",function(){return l(7088)}])},8486:function(e,s,l){"use strict";var i=l(5893),a=l(8182),n=l(5005),t=l(1376),o=l(1649),r=l(1356),c=l(7294),d=l(2821),m=l(9451),x=l(1664),u=l.n(x);s.Z=e=>{let{data:s,setData:l,type:x}=e,[h,p]=(0,c.useState)(!1),j=(0,o.I0)(),f=(0,o.v9)(e=>e.auth.user),v=async(e,s)=>{if(s.preventDefault(),f){let s=e.is_current_user_upvoted,i=s?(e.upvotes_count||0)-1:(e.upvotes_count||0)+1;j((0,r.pt)(e.id,d.Rr,d.Nd,d.V,!s)),"home"==x?l(l=>l.map(l=>({...l,posts:l.posts.map(l=>l.id===e.id?{...l,upvotes_count:i,is_current_user_upvoted:!s}:l)}))):l(l=>l.map(l=>l.id===e.id?{...l,upvotes_count:i,is_current_user_upvoted:!s}:l)),p(!1)}else p(!0)};return(0,i.jsxs)(i.Fragment,{children:[s&&s.length?s.map((e,s)=>(0,i.jsx)(u(),{href:"/launches/".concat(e.slug),children:(0,i.jsx)("div",{className:"cursor-pointer",children:(0,i.jsx)(a.Z.Body,{className:"homeMainCard",children:(0,i.jsxs)("div",{className:"home-main-div d-flex justify-content-between align-items-center",children:[(0,i.jsxs)("div",{className:"d-flex",children:[(0,i.jsx)("div",{className:"d-inline-block me-2 rounded",children:(0,i.jsx)("img",{src:(null==e?void 0:e.thumbnail_link)||"/assets/images/Frame-1000004434.png",width:80,height:80,alt:"Example Image",className:"rounded",loading:"lazy",style:{objectFit:"cover"}})}),(0,i.jsxs)("div",{className:"px-1",children:[(0,i.jsx)("h5",{className:"mb-0 button-hover launch-title truncate-text",children:e.name}),(0,i.jsx)("p",{className:"home-card-text mb-2 pb-1 launch-tagline",children:e.tagline}),(0,i.jsx)("div",{className:"d-flex w-100 main-subtext d-none d-md-block",children:(0,i.jsx)("span",{children:e.pricing_type})})]})]}),(0,i.jsxs)(n.Z,{block:"true",variant:e.is_current_user_upvoted?"outline-primary border border-0":"outline-secondary",className:"home-main-btn ".concat(e.is_current_user_upvoted?"":"secondary-custom-home-btn"),onClick:s=>{s.stopPropagation(),v(e,s)},children:[(0,i.jsx)(t.qwl,{size:"40px",className:e.is_current_user_upvoted?"home-main-btn-color-primary":"home-main-btn-color-secondary",style:{marginBottom:"-4px"}}),(0,i.jsx)("span",{className:"upvote-count-text",children:e.upvotes_count})]})]})})})},s)):(0,i.jsx)("p",{className:"text-secondary",children:"No data available yet"}),h&&(0,i.jsx)(m.Z,{handleClose:()=>p(!1)})]})}},1648:function(e,s,l){"use strict";l(5893),l(1664)},7088:function(e,s,l){"use strict";l.r(s),l.d(s,{__N_SSP:function(){return ev},default:function(){return eN}});var i=l(5893),a=l(7294),n=l(682),t=l(4051),o=l(1555),r=l(8166),c=l(5005),d=l(6212),m=l(6968),x=l(2777),u=l(2458),h=l(1176),p=l.n(h),j=l(2091),f=l(9301),v=l(2925),N=function(){let[e,s]=(0,a.useState)("");return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(f.Z,{className:"mb-4",children:(0,i.jsxs)(f.Z.Group,{children:[(0,i.jsx)("label",{className:"form-label",children:"About"}),(0,i.jsx)("div",{style:{position:"relative"},children:(0,i.jsx)(v.gN,{name:"about",placeholder:"Tell us everything about yourself",className:"form-control",rows:8,maxLength:1e3,as:"textarea"})}),(0,i.jsx)(v.Bc,{name:"about",component:f.Z.Text})]})})})},g=l(1062),_=l(1649),b=l(1015),y=l(2820),w=e=>{let[s,l]=(0,a.useState)(!1),i=(0,_.I0)(),n=(0,_.v9)(e=>e.profile.isLoading),t=(0,_.v9)(e=>e.profile.isError),o=(0,_.v9)(e=>e.profile.errorMessage),r=(0,_.v9)(e=>e.profile.editFormResponded),c={about:e.about};return(0,a.useEffect)(()=>
1{l(!1)},[r]),{openProfileModal:s,setOpenProfileModal:l,handleSubmit:s=>{i((0,b.VQ)(e.user_name,s,y.Xe,y.N0,y.DW))},isLoading:n,isError:t,errorMessage:o,editAboutInitialValues:c}},k=l(6310);let C=k.Ry().shape({about:k.Z_().required("This field is required")});var Z=e=>{let{profileData:s,isMyProfile:l}=e,{openProfileModal:a,setOpenProfileModal:n,handleSubmit:r,isError:c,isLoading:m,errorMessage:x,editAboutInitialValues:u}=w(s);return(0,i.jsxs)("div",{className:"mt-4 overflow-hidden",children:[(0,i.jsxs)("div",{className:"pb-0",children:[(0,i.jsxs)(t.Z,{className:"row",children:[(0,i.jsx)(o.Z,{sm:6,className:"d-flex align-items-center",children:(0,i.jsx)("h3",{className:"mb-3 custom-card-title-2",children:"About"})}),(0,i.jsx)(o.Z,{className:"text-end",sm:6,children:l&&(0,i.jsx)("img",{src:"/assets/images/edit-2.png",className:"edit-button-image",onClick:()=>{n(!0)}})})]}),(0,i.jsxs)("p",{className:"home-card-text",children:[!s.about&&!l&&(0,i.jsx)("span",{className:"text-secondary",children:"No about info yet..."}),!s.about&&l&&(0,i.jsx)("span",{className:"text-secondary",children:"Add something about you..."}),s.about&&s.about]})]}),(0,i.jsxs)(d.Z,{show:a,centered:!0,children:[(0,i.jsxs)(d.Z.Header,{className:"d-flex align-items-center justify-content-between",children:[(0,i.jsx)(d.Z.Title,{children:(0,i.jsx)("span",{children:"Edit About"})}),(0,i.jsx)(j.aHS,{className:"cursor-pointer",onClick:()=>{n(!1)}})]}),(0,i.jsx)(d.Z.Body,{className:"p-4",children:(0,i.jsx)(g.Z,{initialValues:u,validationSchema:C,onSubmit:r,formFields:N,isError:c,isLoading:m,errorMessage:x,type:"edit-about-user-profile"})})]})]})},S=e=>{let{profileData:s,isMyProfile:l}=e;return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"",children:(0,i.jsx)(Z,{isMyProfile:l,profileData:s})})})},L=l(8486),F=()=>{let e=(0,_.v9)(e=>{var s;return null===(s=e.profile.data.object)||void 0===s?void 0:s.upvote_launches}),[s,l]=(0,a.useState)(e);return(0,a.useEffect)(()=>{!s&&e&&l(e)},[e]),{launchesList:s,setLaunchesList:l}},P=()=>{let{launchesList:e,setLaunchesList:s}=F();return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"mt-4",children:[(0,i.jsx)("div",{className:"pb-0",children:(0,i.jsx)("h3",{className:"mb-3 custom-card-title-2",children:"Upvotes"})}),(0,i.jsx)("div",{className:"p-0",children:(0,i.jsx)(L.Z,{data:e,setData:s,type:"profile"})})]})})},B=l(7453),z=l.n(B),E=l(1163),M=e=>{let{collectionsList:s,openCollectionModal:l,setOpenCollectionModal:a,isMyProfile:n}=e,r=(0,E.useRouter)();return(0,i.jsxs)(i.Fragment,{children:[s&&s.length?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(t.Z,{children:[s.map((e,s)=>(0,i.jsx)(o.Z,{lg:4,md:6,className:z().colMain,children:(0,i.jsxs)(t.Z,{className:z().mainDiv,children:[(0,i.jsx)("div",{className:"w-50 p-0",children:(0,i.jsx)("img",{loading:"lazy",src:e.collection_images_links[0]||"/assets/images/placeholder-image.png",alt:"image",className:z().imageLarge})}),(0,i.jsxs)("div",{className:"w-50 p-0",children:[(0,i.jsx)("img",{loading:"lazy",style:{maxHeight:"82px",objectFit:"cover"},src:e.collection_images_links[1]||"/assets/images/placeholder-image.png",alt:"image",className:z().imageSmallTop}),(0,i.jsx)("img",{loading:"lazy",style:{maxHeight:"82px",objectFit:"cover"},src:e.collection_images_links[2]||"/assets/images/placeholder-image.png",alt:"image",className:z().imageSmallBottom})]}),(0,i.jsxs)("div",{className:z().bottomDiv,children:[(0,i.jsx)("h5",{onClick:()=>{r.push("/collections/".concat(e.slug))},className:"mb-1",children:e.name}),(0,i.jsxs)("span",{children:[e.lauches_count," products"]})]})]})},s)),(0,i.jsx)(o.Z,{lg:4,md:6,className:z().colMain,children:(0,i.jsxs)(t.Z,{className:z().createMainDiv,children:[(0,i.jsx)("span",{className:z().createText,children:"Looking to create a new collection?"}),(0,i.jsx)("button",{onClick:()=>{a(!0)},className:z().createBtn,children:"Create now"})]})},"end")]})}):"",n&&s&&!s.length&&(0,i.jsx)(o.Z,{lg:4,md:6,className:z().colMain,children:(0,i.jsxs)(t.Z,{className:z().createMainDiv,children:[(0,i.jsx)("span",{className:z().createText,children:"Looking to create a new collection?"}),(0,i.jsx)("button",{onClick:()=>{a(!0)},className:z().createBtn,children:"Create now"})]})},"end"),!n&&!s.length&&(0,i.jsx)("p",{className:"mt-2 mb-0 text-secondary",children:"No data available yet"})]})},D=()=>{let e=(0,_.I0)(),[s,l]=(0,a.useState)(""),[n,r]=(0,a.useState)(!1),[d,m]=(0,a.useState)(!1),x=e=>{""!==e?r(!1):r(!0),l(e)},u=(0,_.v9)(e=>{var s,l,i;return null==e?void 0:null===(s=e.profile)||void 0===s?void 0:null===(l=s.allC
1ollections)||void 0===l?void 0:null===(i=l.object)||void 0===i?void 0:i.collections});return(0,i.jsxs)(f.Z,{children:[(0,i.jsx)(t.Z,{children:(0,i.jsxs)(o.Z,{sm:12,className:"mb-3",children:[(0,i.jsx)("label",{className:"form-label",children:"Name"}),(0,i.jsx)("input",{value:s,onChange:e=>{x(e.target.value)},type:"text",name:"role",placeholder:"Enter collection's name",className:"form-control"}),n&&(0,i.jsx)("p",{children:"Name is required"}),d&&(0,i.jsx)("p",{children:"Name already taken"})]})}),(0,i.jsx)("div",{className:"text-end",children:(0,i.jsx)(c.Z,{onClick:()=>{if(""==s)r(!0);else{let l=!1;for(let e of u)if(s==e.name){m(!0),l=!0;break}if(!l){let l=new FormData;l.append("collection[name]",s),e((0,b.BL)(l,y.KP,y.hC,y.pJ))}}},className:"btn btn-primary custom-btn",children:"Create"})})]})},T=()=>{let e=(0,_.I0)(),[s,l]=(0,a.useState)(!1),[i,n]=(0,a.useState)([]),[t,o]=(0,a.useState)(!0),r=(0,_.v9)(e=>{var s,l,i;return null==e?void 0:null===(s=e.profile)||void 0===s?void 0:null===(l=s.allCollections)||void 0===l?void 0:null===(i=l.object)||void 0===i?void 0:i.collections}),c=(0,_.v9)(e=>{var s,l;return null==e?void 0:null===(s=e.profile)||void 0===s?void 0:null===(l=s.data)||void 0===l?void 0:l.object.profile}),d=(0,_.v9)(e=>{var s;return null==e?void 0:null===(s=e.profile)||void 0===s?void 0:s.editFormResponded}),m=(0,_.v9)(e=>{var s;return null==e?void 0:null===(s=e.profile)||void 0===s?void 0:s.newCollection});return(0,a.useEffect)(()=>{e((0,b.is)(null==c?void 0:c.user_name,y.gv,y.uK,y.$))},[]),(0,a.useEffect)(()=>{t||l(!1),o(!1)},[d]),(0,a.useEffect)(()=>{r&&n([...r])},[r]),(0,a.useEffect)(()=>{if(m){let e=i.some(e=>e===m);if(!e){let e=[...i,m];n(e)}}},[m]),{allCollections:i,openCollectionModal:s,setOpenCollectionModal:l}},I=e=>{let{isMyProfile:s}=e,{openCollectionModal:l,setOpenCollectionModal:a,allCollections:n}=T();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"mt-4",children:[(0,i.jsx)("div",{className:"pb-0",children:(0,i.jsx)("h3",{className:"mb-3 custom-card-title-2",children:"Collections"})}),(0,i.jsx)("div",{children:(0,i.jsx)(M,{isMyProfile:s,collectionsList:n,openCollectionModal:l,setOpenCollectionModal:a})})]}),(0,i.jsxs)(d.Z,{show:l,centered:!0,children:[(0,i.jsxs)(d.Z.Header,{className:"d-flex align-items-center justify-content-between",children:[(0,i.jsx)(d.Z.Title,{children:(0,i.jsx)("span",{children:"Create new collections"})}),(0,i.jsx)(j.aHS,{onClick:()=>{a(!1)}})]}),(0,i.jsx)(d.Z.Body,{className:"p-4",children:(0,i.jsx)(D,{})})]})]})},H=()=>{let e=(0,_.v9)(e=>{var s;return null===(s=e.profile.data.object)||void 0===s?void 0:s.user_launches}),[s,l]=(0,a.useState)(e);return(0,a.useEffect)(()=>{!s&&e&&l(e)},[e]),{launchesList:s,setLaunchesList:l}},U=()=>{let{launchesList:e,setLaunchesList:s}=H();return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"mt-4",children:[(0,i.jsx)("div",{className:"pb-0",children:(0,i.jsx)("h3",{className:"mb-3 custom-card-title-2",children:"Launches"})}),(0,i.jsx)("div",{className:"p-0",children:(0,i.jsx)(L.Z,{data:e,setData:s,type:"profile"})})]})})},R=e=>{let s=(0,_.I0)(),l=(0,_.v9)(e=>{var s;return null==e?void 0:null===(s=e.launchesSlice)||void 0===s?void 0:s.topLaunches}),i=(0,_.v9)(e=>{var s;return null==e?void 0:null===(s=e.profile)||void 0===s?void 0:s.isLoading}),n=(0,_.v9)(e=>{var s;return null==e?void 0:null===(s=e.profile)||void 0===s?void 0:s.editProfileResponded}),[t,o]=(0,a.useState)([{name:"Home",active:!0,key:0},{name:"Upvotes",active:!1,key:2},{name:"Collections",active:!1,key:3}]),[r,c]=(0,a.useState)("Home"),[d,m]=(0,a.useState)(!1),[x,u]=(0,a.useState)(!1),[h,p]=(0,a.useState)(""),[j,f]=(0,a.useState)(!1),[v,N]=(0,a.useState)(),[g,w]=(0,a.useState)(""),[k,C]=(0,a.useState)(!1),[Z,S]=(0,a.useState)(),[L,F]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{!1==n&&(F(!1),u(!1))},[n]),{handleLinkClick:e=>{let s=[...t];for(let l of s)l.name===e?(l.active=!0,c(l.name)):l.active=!1;o(s)},links:t,setLinks:o,linkSelected:r,topProducts:l,setOpenEditProfileModal:m,openEditProfileModal:d,setOpenProfilePictureModal:F,openProfilePictureModal:L,setImagePreview:p,imagePreview:h,image:v,setImage:N,imagePlaceholderShow:j,setImagePlaceholderShow:f,handleFileSelect:e=>{let s=e.target.files[0];p(s);let l=URL.createObjectURL(s);N(l),f(!0)},handleCoverImageUpload:()=>
1{if(!h)return;let l=new FormData;l.append("profile[cover]",h),s((0,b.zo)(e.user_name,l,y.Rn,y.mq,y.ZN))},setOpenCoverModal:u,openCoverModal:x,followUnfollowUserFn:e=>{s((0,b.yD)(e,y.Z3,y.Ob,y.A3))},isLoading:i,handlePorfileSelect:e=>{let s=e.target.files[0];w(s);let l=URL.createObjectURL(s);S(l),C(!0)},handlePorfileImageUpload:()=>{if(!g)return;let l=new FormData;l.append("profile[profile]",g),s((0,b._p)(e.user_name,l,y.vq,y.h_,y.JN))},imageProfilePlaceholderShow:k,imageProfilePreview:g,imageProfile:Z,setImageProfilePlaceholderShow:C,setImageProfilePreview:w}},q=l(8182),O=l(2186),A=l.n(O),V=l(378),J=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{children:(0,i.jsx)("h2",{style:{fontSize:"24px",marginBottom:"25px"},children:"Basic Profile"})}),(0,i.jsx)(v.l0,{children:(0,i.jsxs)(t.Z,{children:[(0,i.jsxs)(o.Z,{sm:12,className:"mb-3",children:[(0,i.jsx)("h6",{children:"First Name*"}),(0,i.jsx)(v.gN,{name:"first_name",type:"text",className:"form-control",placeholder:"First name"}),(0,i.jsx)("div",{className:"error-msg-color",children:(0,i.jsx)(v.Bc,{name:"first_name"})})]}),(0,i.jsxs)(o.Z,{sm:12,className:"mb-3",children:[(0,i.jsx)("h6",{children:"Last Name*"}),(0,i.jsx)(v.gN,{name:"last_name",type:"text",className:"form-control",placeholder:"Last name"}),(0,i.jsx)("div",{className:"error-msg-color",children:(0,i.jsx)(v.Bc,{name:"last_name"})})]}),(0,i.jsxs)(o.Z,{sm:12,className:"mb-3",children:[(0,i.jsx)("h6",{children:"Email*"}),(0,i.jsx)(v.gN,{name:"email",type:"text",className:"form-control",placeholder:"Email",disabled:!0}),(0,i.jsx)("div",{className:"error-msg-color",children:(0,i.jsx)(v.Bc,{name:"email"})})]}),(0,i.jsxs)(o.Z,{sm:12,className:"mb-3",children:[(0,i.jsx)("h6",{children:"Username*"}),(0,i.jsx)(v.gN,{name:"user_name",type:"text",className:"form-control",placeholder:"Username"}),(0,i.jsx)("div",{className:"error-msg-color",children:(0,i.jsx)(v.Bc,{name:"user_name"})})]}),(0,i.jsxs)(o.Z,{sm:12,className:"mb-3",children:[(0,i.jsx)("h6",{children:"Website*"}),(0,i.jsx)(v.gN,{name:"website_url",type:"text",className:"form-control",placeholder:"https://example.com"}),(0,i.jsx)("div",{className:"error-msg-color",children:(0,i.jsx)(v.Bc,{name:"website_url"})})]}),(0,i.jsx)("h6",{children:"Location*"}),(0,i.jsxs)(o.Z,{sm:6,className:"mb-3",children:[(0,i.jsxs)(v.gN,{as:"select",size:"lg",className:"form-control form-select custom-select",name:"country",style:{fontSize:"16px"},children:[(0,i.jsx)("option",{value:"",children:"Select country"}),V.nh.map((e,s)=>(0,i.jsx)("option",{value:e,children:e},s))]}),(0,i.jsx)("div",{className:"error-msg-color",children:(0,i.jsx)(v.Bc,{name:"country"})})]}),(0,i.jsxs)(o.Z,{sm:6,className:"mb-3",children:[(0,i.jsx)(v.gN,{size:"lg",type:"text",className:"form-control",name:"city",placeholder:"Ex: San Francisco",style:{fontSize:"16px"}}),(0,i.jsx)("div",{className:"error-msg-color",children:(0,i.jsx)(v.Bc,{name:"city"})})]})]})})]}),G=(e,s)=>{let[l,i]=(0,a.useState)(""),n=(0,_.I0)(),t=(0,_.v9)(e=>e.profile.isLoading),o=(0,_.v9)(e=>e.profile.isError),r=(0,_.v9)(e=>e.profile.errorMessage),c=(0,_.v9)(e=>e.profile.editProfileResponded),d={first_name:e.first_name,last_name:e.last_name,website_url:e.website_url,country:e.country,city:e.city,user_name:e.user_name,email:e.email},m={pronoun:e.pronoun,headline:e.headline};(0,a.useEffect)(()=>{p("Basic profile")},[]),(0,a.useEffect)(()=>{j||s(!1),f(!1)},[c]);let[x,u]=(0,a.useState)([{name:"Basic profile",active:!0,key:0},{name:"Account details",active:!1,key:1},{name:"Social links",active:!1,key:2},{name:"Email notifications",active:!1,key:3}]),[h,p]=(0,a.useState)(),[j,f]=(0,a.useState)(!0);return{links:x,setLinks:u,linkSelected:h,setLinkSelected:p,handleLinkClick:e=>{p(e);let s=[...x];for(let l of s)l.name===e?(l.active=!0,u(l.name)):l.active=!1;u(s)},handleSubmitBasicProfile:s=>{let l=new FormData;l.append("profile[first_name]",s.first_name),l.append("profile[last_name]",s.last_name),l.append("profile[website_url]",s.website_url),l.append("profile[country]",s.country),l.append("profile[city]",s.city),l.append("profile[user_name]",s.user_name),n((0,b.q3)(e.user_name,l,y.J7,y.QX,y.Sm))},isLoading:t,isError:o,errorMessage:r,handleSubmitAccountDetails:s=>{let l=new FormData;l.append("profile[pronoun]",s.pronoun),l.append("profile[headline]",s.headline),n((0,b.Nw)(e.user_name,l,y.et,y.SC,y.Mc))},basicProfileInitialValues:d,accountDetailsInitialValues:m,handleFileSelect:e=>{let s=e.target.files[0],l=URL.createObjectURL(s);console.log(l),i(l)},imageProfile:l}};let W=k.Ry().shape({first_name:k.Z_().required("This field is required"),last_name:k.Z_().required("This field is required"),website_url:k.Z_().required("This field is required").url("Invalid URL format"),country:k.Z_().required("This field is required"),
1city:k.Z_().required("This field is required")}),Y=["He/Him","She/Her","They/Their","Prefer not to say"];var K=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{children:(0,i.jsx)("h2",{style:{fontSize:"24px",marginBottom:"25px"},children:"Account Details"})}),(0,i.jsx)(v.l0,{children:(0,i.jsxs)(t.Z,{children:[(0,i.jsx)("h6",{children:"Pronoun*"}),(0,i.jsxs)(o.Z,{sm:12,className:"mb-3",children:[(0,i.jsxs)(v.gN,{name:"pronoun",as:"select",className:"form-select",children:[(0,i.jsx)("option",{value:"",disabled:!0,selected:!0,children:"Select"}),Y.map(e=>(0,i.jsx)("option",{value:e,children:e},e))]}),(0,i.jsx)(v.Bc,{name:"pronoun",component:f.Z.Text})]}),(0,i.jsxs)(o.Z,{sm:12,className:"mb-3",children:[(0,i.jsx)("h6",{children:"Headline*"}),(0,i.jsx)(v.gN,{name:"headline",type:"text",className:"form-control",placeholder:"Headline here"})]})]})})]});let X=k.Ry().shape({pronoun:k.Z_().required("This field is required"),headline:k.Z_().required("This field is required")});var $=e=>{let{profileData:s}=e,l=(0,_.I0)(),[n,t]=(0,a.useState)(s.is_subscribed),o=e=>{t(e);let i=new FormData;i.append("profile[is_subscribed]",e),l((0,b.Yk)(s.user_name,i,y.Dn,y._L,y.P$))};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{children:(0,i.jsx)("h2",{style:{fontSize:"24px",marginBottom:"25px"},children:"Email notifications"})}),(0,i.jsxs)("div",{className:"row",children:[(0,i.jsx)("div",{style:{width:"80%"},children:(0,i.jsx)(f.Z.Label,{htmlFor:"toggle-switch",children:"Get the best of Fazier in your inbox"})}),(0,i.jsx)("div",{style:{width:"20%"},children:(0,i.jsx)(f.Z.Check,{type:"switch",id:"toggle-switch",label:"",checked:n,onChange:e=>{o(e.target.checked)}})})]})]})},Q=l(8633);let ee=["Website","Twitter","LinkedIn","Facebook","Youtube","TikTok","Instagram","Dribbble","Behance","Figma","Medium","Dev.to","Stack Overflow","Product Hunt","Wellfound","Mastodon"];var es=e=>{let{profileData:s}=e,l=(0,_.I0)(),[n,t]=(0,a.useState)(),o=e=>{let s=[...n];s.splice(s.indexOf(e),1),t(s)},r=()=>{let e=[...n];e.push({name:"website",url:""}),t(e)};(0,a.useEffect)(()=>{s&&s.social_links&&t(s.social_links)},[s]);let d=(e,s)=>{let l=[...n],i=l.indexOf(s);l[i]={...l[i],url:e},t(l)},m=(e,s)=>{let l=[...n],i=l.indexOf(s);l[i]={...l[i],name:e},t(l)},x=()=>{let e=[...n],s=!1;for(let[l,i]of e.entries())""==i.url?(e[l]={...e[l],errorEmpty:!0},s=!0):i.url.includes("http")&&i.url.includes(".")?(delete e[l].errorinValid,delete e[l].errorEmpty):(e[l]={...e[l],errorinValid:!0},s=!0);s?t(e):l((0,b.kv)(JSON.stringify({links:{social_links:e}}),y.FN,y.Cr,y.Yh))};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{children:(0,i.jsx)("h2",{style:{fontSize:"24px",marginBottom:"25px"},children:"Social links"})}),(0,i.jsxs)("div",{className:"row",children:[(0,i.jsx)("div",{className:"col-12",children:(0,i.jsxs)("div",{className:"row",children:[(0,i.jsx)("div",{className:"col-3",children:(0,i.jsx)("h6",{children:"Link"})}),(0,i.jsx)("div",{className:"col-8",children:(0,i.jsx)("h6",{children:"URL"})}),(0,i.jsx)("div",{className:"col-1"})]})}),n&&n.map(e=>(0,i.jsx)("div",{className:"col-12",children:(0,i.jsxs)("div",{className:"row mb-4",children:[(0,i.jsx)("div",{className:"col-3",children:(0,i.jsx)("select",{name:"name",onChange:s=>{m(s.target.value,e)},value:e.name,className:"form-select",children:ee.map(e=>(0,i.jsx)("option",{value:e,children:e},e))})}),(0,i.jsxs)("div",{className:"col-8",children:[(0,i.jsx)("input",{name:"url",onChange:s=>{d(s.target.value,e)},value:e.url,type:"text",className:"form-control",placeholder:"URL"}),e.errorEmpty&&(0,i.jsx)("span",{style:{fontSize:"12px"},children:"URL is required"}),e.errorValid&&(0,i.jsx)("span",{style:{fontSize:"12px"},children:"URL is invalid"})]}),(0,i.jsx)("div",{className:"col-1",children:(0,i.jsx)(c.Z,{variant:"light",onClick:()=>{o(e)},className:"close-button",children:(0,i.jsx)(Q.z3f,{size:17})})})]})},e.id)),n&&n.length<6&&(0,i.jsx)("p",{className:"cursor-pointer",onClick:()=>{r()},children:"+ Add"})]}),(0,i.jsx)(c.Z,{type:"button",onClick:()=>{x()},className:"modals-btn edit-profile-btn",children:"Update"})]})},el=function(e){let{profileData:s,setOpenEditProfileModal:l}=e,{links:a,linkSelected:n,handleLinkClick:c,handleSubmitBasicProfile:d,isError:m,isLoading:x,errorMessage:u,handleSubmitAccountDetails:h,basicProfileInitialValues:p,accountDetailsInitialValues:j}=G(s,l);return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(t.Z,{style:{minHeight:"670px"},className:"custom-modal-body-edit-profile",children:[(0,i.jsx)(o.Z,{lg:4,className:"".concat(A().leftContainer," pe-0"),children:(0,i.jsx)("div",{className:"scrollable-container",children:(0,i.jsx)(q.Z.Body,{className:"border-bottom pb-0 myNavLink-profile topbar-a nav-links-edit-profile-custom",children:a.map(e=>(0,i.jsx)(r.Z.Link,{active:e.active,className:A().navLink,onClick:()=>c(e.name),children:e.name},e.key))})})}),(0,i.jsxs)(o.Z,{lg:8,className:"px-4 py-2",children:["Basic profile"===n&&(0,i.jsx)(g.Z,{initialValues:p,validationSchema:W,onSubmit:d,formFields:J,isError:m,isLoading:x,errorMessage:u,type:"edit-profile-basic-profile"}),"Account details"===n&&(0,i.jsx)(g.Z,{initialValues:j,validationSchema:X,onSubmit:h,formFields:K,isError:m,isLoading:x,errorMessage:u,type:"edit-profile-account-details"}),"Social links"===n&&(0,i.jsx)(es,{profileData:s}),"Email notifications"===n&&(0,i.jsx)($,{profileData:s})]})]})})},ei=l(8318),ea=l(6670),en=l(2168);l(1648);var et=l(5926),eo=l(9715),er=e=>{let{options:s}=e;return(0,i.jsx)("div",{className:"d-flex align-items-center gap-2",children:s.map(e=>(0,i.jsxs)("span",{style:{cursor:"pointer",color:"var(--text-color)",borderRadius:"50%",padding:"9px",backgroundColor:"var(--bs-card-border-color)",transition:"color 0.3s ease"},onMouseOver:e=>e.currentTarget.style.color="var(--primary-blue-600)",onMouseOut:e=>e.currentTarget.style.color="var(--text-color)",children:["facebook"===e.name||"Facebook"===e.name&&(0,i.jsx)(j.Am9,{size:22,className:"cursor-pointer"}),"website"===e.name||"Website"===e.name&&(0,i.jsx)(j.ssk,{size:22,className:"cursor-pointer"}),"twitter"===e.name||"Twitter"===e.name&&(0,i.jsx)(j.fWC,{size:22,className:"cursor-pointer"}),"linkedIn"===e.name||"LinkedIn"===e.name&&(0,i.jsx)(j.ltd,{size:22,className:"cursor-pointer"}),"youtube"===e.name||"Youtube"===e.name&&(0,i.jsx)(j.V2E,{size:22,className:"cursor-pointer"}),"instagram"===e.name||"Instagram"===e.name&&(0,i.jsx)(j.Zf_,{size:22,className:"cursor-pointer"}),"dribble"===e.name||"Dribble"===e.name&&(0,i.jsx)(eo.UY$,{size:22,className:"cursor-pointer"}),"tiktok"===e.name||"Tiktok"===e.name&&(0,i.jsx)(Q.dKm,{size:22,className:"cursor-pointer"})]},e.name))})},ec=l(3502),ed=l.n(ec),em=e=>{let{data:s,type:l}
1=e,[n,t]=(0,a.useState)([...s]),o=(0,_.I0)(),r=(0,_.v9)(e=>e.auth.user);(0,a.useEffect)(()=>{let e=[...n];for(let s=0;s<e.length;s++)e[s]={...e[s],showFollowingBtn:!0};t(e)},[]);let c=e=>{let s=[...n];s[e].showFollowingBtn=!0,t(s)},d=e=>{let s=[...n];s[e].showFollowingBtn=!1,t(s)},m=(e,s)=>{if(r){o((0,b.yD)(e,y.Z3,y.Ob,y.A3));let l=[...n];l[s].is_user_followed=!0,t(l)}else(0,en.c)("Please login first!")},x=(e,s)=>{if(r){o((0,b.yD)(e,y.Z3,y.Ob,y.A3));let l=[...n];l[s].is_user_followed=!1,t(l)}else(0,en.c)("Please login first!")};return(0,i.jsx)(i.Fragment,{children:n&&n.length?n.map((e,l)=>(0,i.jsxs)("div",{className:"d-flex w-100 ".concat(l!==s.length-1?"mb-3":""),children:[(0,i.jsx)("img",{className:"".concat(ed()["profile-image"]," me-2"),loading:"lazy",src:e.profile_link||"/assets/images/dp.png"}),(0,i.jsxs)("div",{className:"".concat(ed()["main-content-div"]),children:[(0,i.jsxs)("div",{className:"d-flex justify-content-between align-items-end",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"".concat(ed()["user-title"]),children:e.name}),(0,i.jsxs)("div",{className:"".concat(ed()["user-name"]),children:["@",e.user_name]})]}),(0,i.jsx)("div",{children:r&&r.id===e.id?null:e.is_user_followed?e.showFollowingBtn?(0,i.jsx)("button",{onClick:()=>{x(e.id,l)},onMouseEnter:()=>{d(l)},onMouseLeave:()=>{c(l)},className:"following-btn",children:"Following"}):(0,i.jsx)("button",{onClick:()=>{x(e.id,l)},onMouseEnter:()=>{d(l)},onMouseLeave:()=>{c(l)},className:"unfollow-btn",children:"Unfollow"}):(0,i.jsx)("button",{onClick:()=>{m(e.id,l)},className:"follow-btn",children:"Follow"})})]}),(0,i.jsx)("div",{className:"".concat(ed().description),children:e.headline})]})]},l)):(0,i.jsx)("p",{className:"mt-4 text-secondary",children:"No data available yet"})})},ex=l(6647),eu=l(1844),eh=l(7506),ep=l(4859),ej=l(9008),ef=l.n(ej),ev=!0;function eN(e){let{type:s,sponsorAds:l,premiumAds:h}=e,f=(0,_.v9)(e=>{var s;return null===(s=e.profile.data.object)||void 0===s?void 0:s.profile}),[v,N]=(0,a.useState)(!0);(0,a.useEffect)(()=>{"string"==typeof f&&((0,en.c)(f,"error"),g.push("/"))},[]);let g=(0,E.useRouter)(),[w,k]=(0,a.useState)(!1),[C,Z]=(0,a.useState)(null==f?void 0:f.is_user_followed),[L,F]=(0,a.useState)(!1),[B,z]=(0,a.useState)(null==f?void 0:f.followers_count);(0,a.useEffect)(()=>{let e=()=>{let e=window.scrollY/(document.documentElement.scrollHeight-window.innerHeight)*100;k(e>=30)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]);let M=()=>{F(!0)},D=()=>{F(!1)},{handleLinkClick:T,links:H,linkSelected:q,setOpenEditProfileModal:O,openEditProfileModal:A,setOpenProfilePictureModal:V,openProfilePictureModal:J,setImagePreview:G,imagePreview:W,image:Y,imagePlaceholderShow:K,setImagePlaceholderShow:X,handleFileSelect:$,handleCoverImageUpload:Q,openCoverModal:ee,setOpenCoverModal:es,followUnfollowUserFn:eo,isLoading:ec,handlePorfileSelect:ed,handlePorfileImageUpload:ej,imageProfilePlaceholderShow:ev,imageProfilePreview:eN,imageProfile:eg,setImageProfilePlaceholderShow:e_,setImageProfilePreview:eb}=R(f),[ey,ew]=(0,a.useState)("followers"),ek=e=>{ew(e),g.replace("".concat(f.user_name,"/").concat(e))},eC=(0,_.I0)();(0,a.useEffect)(()=>{s&&(ew(s),N(!1)),eC((0,b.h5)(f.id,y.Nt,y.k7,y.mV)),eC((0,b.t_)(f.id,y.ul,y.$e,y.lI))},[s]);let eZ=(0,_.v9)(e=>e.auth.user),eS=(0,_.v9)(e=>{var s,l;return null===(s=e.profile.followingData)||void 0===s?void 0:null===(l=s.object)||void 0===l?void 0:l.followings}),eL=(0,_.v9)(e=>{var s,l;return null===(s=e.profile.followersData)||void 0===s?void 0:null===(l=s.object)||void 0===l?void 0:l.followers});return v?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(u.Z,{children:[(0,i.jsx)(ef(),{children:(0,i.jsx)("link",{rel:"canonical",href:"https://fazier.com/p/"+f.user_name})}),(0,i.jsx)(ex.Z,{title:f.name+" - Fazier",description:f.headline,image:f.profile_link}),(0,i.jsx)(et.Z,{data:{type:"Profile",image:f.profile_link,title:f.first_name,userName:f.user_name},isVisible:w,actions:{}}),f&&"string"!=typeof f&&(0,i.jsxs)(n.Z,{className:"main-content-font-change",children:[(0,i.jsxs)(t.Z,{className:"row mt-4",children:[(0,i.jsxs)(o.Z,{lg:9,children:[(0,i.jsxs)("div",{className:"overflow-hidden",children:[(0,i.jsx)("div",{className:"pt-0 pb-4",style:{position:"relative",overflow:"hidden",minHeight:"170px"},children:(0,i.jsxs)("div",{onClick:()=>{(null==eZ?void 0:eZ.id)===f.id&&es(!0)},className:"cover-image-profile",children:[(0,i.jsx)("img",{onClick:()=>{(null==eZ?void 0:eZ.id)===f.id&&es(!0)},loading:"lazy",src:f.cover_link||"/assets/images/Default_background.png",alt:"...",style:{position:"absolute",width:"100%",height:"auto"}}),(null==eZ?void 0:eZ.id)===f.id&&(0,i.jsx)("div",{onClick:()=>{(null==eZ?void 0:eZ.id)===f.id&&es(!0)},className:"overlay-cover",children:(0,i.jsx)("span",{className:"overlay-text",children:"Change"})})]})}),(0,i.jsx)("div",{className:"media align-items-end mx-3 ".concat(p().profileHeader),children:(0,i.jsxs)("div",{className:"profile",children:[(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"round-profile-image",children:[(0,i.jsx)("img",{width:120,height:120,onClick:()=>{(null==eZ?void 0:eZ.id)===f.id&&V(!0)},loading:"lazy",className:"border-rounded mb-2 img-thumbnail",style:{objectFit:"cover"},src:f.profile_link||"/assets/images/placeholder-image.png",alt:"Profile Image"}),(null==eZ?void 0:eZ.id)===f.id&&(0,i.jsx)("div",{className:"overlay",onClick:()=>{V(!0)},children:(0,i.jsx)("span",{className:"overlay-text",children:"Change"})})]})}),(0,i.jsxs)("div",{className:"ps-0 mt-3 row d-flex justify-content-end align-items-start",children:[(0,i.jsxs)("div",{className:"col-12 col-md-6",children:[(0,i.jsx)("h1",{className:"user-profile-name mb-0",children:f.name}),(0,i.jsxs)("p",{className:"user-profile-tagline mt-2 mb-2",style:{width:"100%"},children:["@",f.user_name]})]}),(0,i.jsx)("div",{className:"col-12 col-md-6 align-items-start justify-content-start justify-content-md-end d-flex",children:(0,i.jsx)("div",{className:"d-flex mt-2 mt-md-0",children:eZ&&(0,i.jsxs)(i.Fragment,{children:[eZ.id!==f.id&&C?L?(0,i.jsxs)(c.Z,{onMouseEnter:M,onMouseLeave:D,onClick:()=>{eo(f.id),Z(!1),z(B-1)},variant:"outline-primary",className:"px-3 me-2 fixedSizeFollowUnfollowBtn",children:[" ","Unfollow"]}):(0,i.jsxs)(c.Z,{onMouseEnter:M,onMouseLeave:D,onClick:()=>{eo(f.id),Z(!1),z(B-1)},variant:"outline-primary",className:"px-3 me-2 fixedSizeFollowUnfollowBtn",children:[" ","Following"]}):(0,i.jsxs)(c.Z,{onClick:()=>{eo(f.id),Z(!0),z(B+1)},variant:"primary",className:"px-3 me-2",children:[(0,i.jsx)(x.OvN,{size:"16px",className:"mb-1"})," ","Follow"]}),(null==eZ?void 0:eZ.id)===f.id&&(0,i.jsxs)(c.Z,{onClick:()=>{O(!0)},variant:"outline-primary",className:"px-4",children:[(0,i.jsx)(x.IYd,{size:"16px",className:"mb-1"})," ","Edit"]})]})})})]})]})}),(0,i.jsxs)("div",{className:"".concat(p().companyHeaderMainContent," px-3 pt-2 pb-4"),children:[(0,i.jsx)("p",{className:"mb-2 user-profile-tagline",children:f.headline}),(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"".concat(p()["follow-div"]," cursor-pointer"),children:[(0,i.jsxs)("span",{onClick:()=>{g.push("".concat(f.user_name,"/followers"))},className:"".concat(p()["follow-div-span"]," cursor-pointer"),children:[(0,i.jsx)("span",{className:"".concat(p()["follow-count"]),children:B})," ",(0,i.jsx)("span",{className:"".concat(p()["follow-text"]," me-2"),children:"Followers"})]})," ",(0,i.jsxs)("span",{onClick:()=>{g.push("".concat(f.user_name,"/following"))},className:"".concat(p()["follow-div-span"]," cursor-pointer"),children:[(0,i.jsx)("span",{className:"".concat(p()["follow-count"]),children:f.followings_count})," ",(0,i.jsx)("span",{className:"".concat(p()["follow-text"]),children:"Following"})]})]})}),(0,i.jsx)("div",{className:"social-icons mt-3",children:f.social_links&&(0,i.jsx)(er,{title:"Social links",options:f.social_links.slice(0,6)})})]}),(0,i.jsx)("div",{className:"border-bottom pb-0 myNavLink topbar-a d-flex",style:{overflowX:"auto"},children:H.map(e=>(0,i.jsx)(r.Z.Link,{className:"px-3 pb-3",active:e.active,onClick:()=>T(e.name),children:e.name},e.key))})]}),"Home"==q&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(S,{isMyProfile:(null==eZ?void 0:eZ.id)===f.id,profileData:f}),(0,i.jsx)(U,{})]}),"Upvotes"==q&&(0,i.jsx)(P,{}),"Collections"==q&&(0,i.jsx)(I,{isMyProfile:(null==eZ?void 0:eZ.id)===f.id}),(null==h?void 0:h.length)>0&&(0,i.jsx)("div",{className:"mt-4",children:(0,i.jsx)(ep.fD,{premiumAds:h})}),(0,i.jsx)("div",{className:"mt-4",children:(null==l?void 0:l.length)>0&&(0,i.jsx)("div",{className:"mb-4 d-block d-lg-none",children:(0,i.jsx)(eh.PC,{sponsorAds:l})})})]}),(0,i.jsx)(o.Z,{className:"px-2 mt-4 side-bar-main-div-profile",lg:3,children:(null==l?void 0:l.length)>0&&(0,i.jsx)("div",{className:"mb-4 d-none d-lg-block",children:(0,i.jsx)(eh.PC,{sponsorAds:l})})})]}),(0,i.jsxs)(d.Z,{show:A,centered:!0,size:"lg",children:[(0,i.jsxs)(d.Z.Header,{className:"d-flex align-items-center justify-content-between",children:[(0,i.jsx)(d.Z.Title,{children:(0,i.jsx)("span",{children:"Edit Profile"})}),(0,i.jsx)(j.aHS,{onClick:()=>{O(!1)}})]}),(0,i.jsx)(d.Z.Body,{className:"ps-0",style:{padding:"0px !important"},children:(0,i.jsx)(el,{profileData:f,setOpenEditProfileModal:O})})]}),(0,i.jsxs)(d.Z,{show:ee,centered:!0,size:"lg",children:[(0,i.jsxs)(d.Z.Header,{className:"d-flex align-items-center justify-content-between",children:[(0,i.jsx)(d.Z.Title,{children:(0,i.jsx)("span",{children:"Edit Profile"})}),(0,i.jsx)(j.aHS,{onClick:()=>{es(!1)}})]}),(0,i.jsxs)(d.Z.Body,{className:"p-4",children:[(0,i.jsx)("h6",{children:"Cover photo"}),!K&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:p().fileUpload,children:[(0,i.jsxs)("label",{htmlFor:"logo",className:p().uploadLabel,children:[(0,i.jsx)(ea.aBR,{className:p().uploadIcon,size:"24px"}),(0,i.jsx)("span",{className:p().uploadText,children:"Choose a file"})]}),(0,i.jsx)("span",{className:"".concat(p().uploadSubtext," upload-label my-2"),children:"Upload to see preview"}),(0,i.jsx)("input",{id:"logo",name:"cover",type:"file",accept:".png, .jpeg, .jpg",className:p().fileInput,onChange:$})]}),(0,i.jsx)("span",{className:p().uploadBottomText,children:"1500 x 325px recommended. JPGs, JPEGs, and PNGs supported."})]}),K&&(0,i.jsxs)("div",{className:" imagePlaceholderBox d-flex justify-content-between mt-3",children:[(0,i.jsxs)("div",{className:"d-flex",children:[(0,i.jsx)("img",{src:Y||"/assets/images/placeholder-image.png",loading:"lazy",className:"img-fluid",width:"87"}),(0,i.jsxs)("div",{className:"mt-2 mx-3",children:[(0,i.jsx)("span",{className:"",children:W.name}),(0,i.jsx)("br",{}),(0,i.jsxs)("span",{className:"main-subtext",children:[(W.size/1024).toFixed(2),"KB"]})]})]}),(0,i.jsx)("div",{children:(0,i.jsx)("a",{className:"close-modal me-2",onClick:()=>{X(!1),G(null)},children:(0,i.jsx)(ei.bjh,{size:14})})})]}),(0,i.jsxs)("div",{className:"d-flex justify-content-between mt-4",children:[(0,i.jsx)("a",{className:"mx-2 button-hover"}),(0,i.jsxs)(c.Z,{type:"button",onClick:()=>{Q()},className:"modals-btn",children:["Save",ec&&(0,i.jsx)(m.Z,{animation:"border",size:"sm"})]})]})]})]}),(0,i.jsxs)(d.Z,{show:J,centered:!0,children:[(0,i.jsxs)(d.Z.Header,{className:"d-flex align-items-center justify-content-between",children:[(0,i.jsx)(d.Z.Title,{children:(0,i.jsx)("span",{children:"Edit Profile"})}),(0,i.jsx)(j.aHS,{onClick:()=>{V(!1)}})]}),(0,i.jsxs)(d.Z.Body,{className:"p-4",children:[(0,i.jsx)("h6",{children:"Porfile photo"}),!ev&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:p().fileUpload,children:[(0,i.jsxs)("label",{htmlFor:"logo",className:p().uploadLabel,children:[(0,i.jsx)(ea.aBR,{className:p().uploadIcon,size:"24px"}),(0,i.jsx)("span",{className:p().uploadText,children:"Choose a file"})]}),(0,i.jsx)("span",{className:"".concat(p().uploadSubtext," upload-label my-2"),children:"Upload to see preview"}),(0,i.jsx)("input",{id:"logo",name:"profile",type:"file",accept:".png, .jpeg, .jpg",className:p().fileInput,onChange:ed})]}),(0,i.jsx)("span",{className:p().uploadBottomText,children:"500 x 500px recommended. JPGs, JPEGs, and PNGs supported."})]}),ev&&(0,i.jsxs)("div",{className:" imagePlaceholderBox d-flex justify-content-between mt-3",children:[(0,i.jsxs)("div",{className:"d-flex",children:[(0,i.jsx)("img",{src:eg||"/assets/images/placeholder-image.png",loading:"lazy",className:"img-fluid",width:"87"}),(0,i.jsxs)("div",{className:"mt-2 mx-3",children:[(0,i.jsx)("span",{className:"",children:eN.name}),(0,i.jsx)("br",{}),(0,i.jsxs)("span",{className:"main-subtext",children:[(eN.size/1024).toFixed(2),"KB"]})]})]}),(0,i.jsx)("div",{children:(0,i.jsx)("a",{className:"close-modal me-2",onClick:()=>{e_(!1),eb(null)},children:(0,i.jsx)(ei.bjh,{size:14})})})]}),(0,i.jsxs)("div",{className:"d-flex justify-content-between mt-4",children:[(0,i.jsx)("a",{className:"mx-2 button-hover"}),(0,i.jsxs)(c.Z,{type:"button",onClick:()=>{ej()},className:"modals-btn",children:["Save",ec&&(0,i.jsx)(m.Z,{animation:"border",size:"sm"})]})]})]})]})]}),(0,i.jsx)(eu.Z,{})]})}):(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(u.Z,{children:[(0,i.jsx)(n.Z,{className:"my-4",children:(0,i.jsxs)(t.Z,{className:"my-4",style:{minHeight:"50vh"},children:[(0,i.jsxs)(o.Z,{className:"px-3 px-md-4",sm:9,children:[(0,i.jsxs)("div",{className:"mb-4",children:[(0,i.jsx)("div",{className:"",children:(0,i.jsxs)("div",{className:"d-flex align-items-center",children:[(0,i.jsx)("a",{href:"/p/".concat(f.user_name),children:(0,i.jsxs)("svg",{onClick:()=>{},className:"me-2 cursor-pointer",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,i.jsx)("path",{d:"M7.97533 4.94141L2.91699 9.99974L7.97533 15.0581",stroke:"#4B6182",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M17.0836 10H3.05859",stroke:"#4B6182",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,i.jsxs)("div",{className:"px-3",children:[(0,i.jsx)("div",{className:"prime-text",children:f.name}),(0,i.jsxs)("div",{className:"sub-primary-text",children:["@",f.user_name]})]})]})}),(0,i.jsxs)("div",{className:"border-bottom mt-4 pb-0 myNavLink topbar-a d-flex",children:[(0,i.jsx)(r.Z.Link,{className:"px-3 pb-3",active:"followers"===ey,onClick:()=>ek("followers"),children:"Followers"}),(0,i.jsx)(r.Z.Link,{className:"mx-4 px-3 pb-3",active:"following"===ey,onClick:()=>ek("following"),children:"Following"})]}),(0,i.jsxs)("div",{className:"w-100 mt-4",children:["followers"===ey&&eL&&(0,i.jsx)(em,{type:ey,data:eL}),"following"===ey&&eS&&(0,i.jsx)(em,{type:ey,data:eS})]})]}),(null==h?void 0:h.length)>0&&(0,i.jsx)("div",{className:"mt-5",children:(0,i.jsx)(ep.fD,{premiumAds:h})}),(0,i.jsx)("div",{className:"mt-4",children:(null==l?void 0:l.length)>0&&(0,i.jsx)("div",{className:"mb-4 d-block d-lg-none",children:(0,i.jsx)(eh.PC,{sponsorAds:l})})})]}),(0,i.jsx)(o.Z,{className:"px-2 d-none d-md-inline-block",sm:3,children:(null==l?void 0:l.length)>0&&(0,i.jsx)("div",{className:"mb-4 d-none d-lg-block",children:(0,i.jsx)(eh.PC,{sponsorAds:l})})})]})}),(0,i.jsx)(eu.Z,{})]})})}},3502:function(e){e.exports={"profile-image":"followList_profile-image__JcH81","main-content-div":"followList_main-content-div__eONFa","user-title":"followList_user-title__8wIG6","user-name":"followList_user-name__lKLpg",description:"followList_description__0tjGk"}},7453:function(e){e.exports={imageLarge:"profileCollectionsCardComponent_imageLarge__I9zmj",imageSmallTop:"profileCollectionsCardComponent_imageSmallTop__fQfyr",imageSmallBottom:"profileCollectionsCardComponent_imageSmallBottom__auIbl",mainDiv:"profileCollectionsCardComponent_mainDiv__B4ACd",bottomDiv:"profileCollectionsCardComponent_bottomDiv__Vuxva",colMain:"profileCollectionsCardComponent_colMain__pcWN2",createMainDiv:"profileCollectionsCardComponent_createMainDiv__i4efL",createBtn:"profileCollectionsCardComponent_createBtn__3gs0V",createText:"profileCollectionsCardComponent_createText__rD1wo"}},2186:function(e){e.exports={navLink:"editProfileModal_navLink__xAUia",leftContainer:"editProfileModal_leftContainer__sa7bx",formHeading:"editProfileModal_formHeading__ypHOk"}},1176:function(e){e.exports={profileHeader:"Profile_profileHeader__arpuo",companyHeaderMainContent:"Profile_companyHeaderMainContent__Mhqym",sel
1ectMore:"Profile_selectMore__nzzSb",companyFooter:"Profile_companyFooter__wX0mV",fileUpload:"Profile_fileUpload__RWPkD",uploadLabel:"Profile_uploadLabel__JwvZ0",uploadSubtext:"Profile_uploadSubtext__fmE0z",fileInput:"Profile_fileInput__N2tTX",uploadIcon:"Profile_uploadIcon__io4_5",uploadText:"Profile_uploadText__n_RtH",uploadBottomText:"Profile_uploadBottomText__xmR9Y",pagePreviewOuterDiv:"Profile_pagePreviewOuterDiv__4Pjzs",pagePreviewInnerDiv:"Profile_pagePreviewInnerDiv__5ht5e",pagePreviewIcon:"Profile_pagePreviewIcon__9JB7t","follow-count":"Profile_follow-count__IuJ7f","follow-text":"Profile_follow-text__emGLy","follow-div-span":"Profile_follow-div-span__6KIWx"}}},function(e){e.O(0,[2678,2961,4738,8151,1691,6212,2458,5500,2897,9774,2888,179],function(){return e(e.s=3315)}),_N_E=e.O()}]);
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.